5777a3a61dc0a8b0833909ffb0c2a4d2b10077d541d04a55aff79aafe5907caf

Source Code:

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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var ba,da,aaa,ha,ia,ka,pa,qa,ra,sa,ta,ua,baa,caa,va,wa,daa,xa,ya,za,Aa,Ca,Da,Ea,Ia,Ga,La,Ma,gaa,haa,Wa,Xa,Ya,iaa,jaa,Za,kaa,bb,cb,laa,maa,eb,lb,naa,sb,tb,oaa,yb,vb,paa,wb,qaa,raa,saa,Gb,Ib,Jb,Nb,Pb,Qb,Zb,ac,dc,ec,hc,ic,vaa,jc,kc,mc,vc,wc,zc,Ec,Kc,Lc,Qc,Nc,zaa,Caa,Daa,Eaa,Uc,Vc,Xc,Wc,Zc,bd,Faa,Gaa,ad,Haa,id,jd,kd,nd,pd,qd,Jaa,rd,sd,wd,xd,yd,zd,Ad,Bd,Cd,Dd,Hd,Jd,Kd,Md,Nd,Od,Laa,Rd,Sd,Td,Ud,Vd,Wd,ce,ee,he,le,me,se,te,we,ue,ye,Be,Ae,ze,Qaa,je,Ne,Le,Me,Se,Oe,ie,Te,Ue,Saa,Ye,$e,Xe,bf,cf,df,ef,ff,gf,hf,
jf,Taa,sf,mf,Ff,Uaa,Jf,Lf,Nf,Of,Pf,Qf,Rf,Tf,Sf,Vf,Wf,Xaa,Zaa,$aa,bba,ag,bg,cg,eg,gg,hg,cba,ig,dba,jg,eba,kg,ng,tg,ug,xg,fba,Ag,zg,Bg,gba,Kg,hba,Lg,Ng,Og,Pg,Qg,Rg,iba,Sg,Tg,Ug,Vg,Wg,Xg,Yg,jba,Zg,$g,ah,kba,lba,bh,dh,ch,fh,gh,jh,hh,nba,ih,kh,lh,nh,mh,pba,oba,oh,rba,qba,sba,rh,tba,th,uh,vh,sh,wh,uba,xh,vba,wba,Ah,yba,Bh,Ch,Eh,zba,Gh,Ih,Lh,Oh,Qh,Nh,Mh,Rh,Aba,Th,Uh,Vh,Wh,Cba,ai,bi,ci,di,Eba,ei,fi,gi,hi,ii,Fba,ki,li,mi,ni,oi,pi,ri,si,ti,ui,vi,qi,wi,xi,yi,Gba,Ci,Di,Hba,Ei,Fi,Iba,Hi,Jba,Ii,Ji,Ki,Kba,Li,Mi,
Oi,Qi,Ri,Si,Ti,Wi,Ni,Pi,Mba,Xi,Yi,$i,Zi,Nba,Oba,Pba,aj,bj,cj,dj,Tba,Uba,Vba,ej,gj,Wba,Xba,Yba,ij,jj,Zba,kj,$ba,aca,lj,mj,nj,bca,pj,qj,rj,sj,tj,uj,vj,wj,xj,yj,zj,cca,dca,Aj,eca,Cj,Bj,Fj,Gj,Ej,fca,jca,ica,Ij,kca,lca,mca,oca,nca,pca,Jj,Lj,Nj,Oj,Pj,rca,Tj,Uj,sca,tca,Vj,Wj,Xj,Yj,uca,Zj,ak,wca,bk,xca,ck,ek,dk,fk,gk,ik,zca,jk,yca,kk,Aca,lk,Bca,Cca,nk,qk,rk,sk,tk,pk,wk,xk,uk,Dca,Fca,Gca,zk,Ak,Bk,Ck,Hca,Dk,Ek,Fk,Gk,Hk,Ik,Jk,Kk,Nk,Mk,Jca,Kca,Ok,Qk,Lk,Pk,Ica,Rk,Sk,Mca,Nca,Oca,Pca,Wk,Xk,Yk,Qca,Tk,Zk,$k,Lca,Rca,
Sca,Tca,cl,al,dl,fl,Yca,Uca,jl,kl,ll,ml,nl,ol,oj,Zca,sl,tl,$ca,ada,bda,cda,dda,vl,wl,xl,yl,zl,Al,gda,hda,Bl,Cl,El,Gl,jda,Hl,Il,Jl,Kl,Ml,Ol,kda,Ll,Ul,Vl,Rl,Yl,Xl,mda,Pl,Nl,am,bm,cm,dm,fm,oda,gm,hm,pda,mm,om,qm,rm,tm,um,vm,xm,qda,rda,zm,Bm,Cm,ym,Am,pm,wm,tda,Fm,Dm,Em,Hm,sda,Gm,Lm,Om,Nm,Tm,Um,Wm,wda,Vm,Ym,$m,Zm,uda,cn,en,zda,hn,jn,nn,on,pn,qn,wn,Ada,yn,zn,Cda,An,Bn,Hda,Dda,In,Mda,Jn,Kn,Oda,Nn,On,Xn,Yn,Pda,ao,bo,co,eo,go,ho,io,jo,lo,mo,po,qo,ro,Sda,Tda,to,uo,yo,vo,zo,Bo,Co,Ao,Uda,Fo,Io,So,Ro,Xda,Yda,
Uo,Xo,Yo,Zo,$o,$da,aea,gp,hp,ip,bea,op,pp,qp,sp,up,rp,xp,Ap,zp,yp,Cp,Ip,Hp,cea,fea,eea,Tp,Up,Vp,Xp,Yp,Zp,$p,dq,bq,eq,fq,gq,Wp,jq,iq,kea,lq,lea,pq,oq,nea,qq,rq,oea,vq,pea,qea,tq,wq,rea,Bq,Cq,Dq,Fq,sea,Kq,Jq,Eq,Lq,Mq,tea,Nq,Oq,Qq,Rq,Tq,Uq,Vq,Xq,Yq,Zq,ar,cr,dr,Pq,uea,mr,pr,qr,vea,wea,rr,tr,ur,sr,vr,wr,xr,Rr,Sr,Tr,Ur,Yr,Vr,yea,$r,as,zea,Aea,Wr,bs,Bea,ds,xea,Cea,Xr,es,Dea,fs,cs,Eea,gs,hs,is,ks,ls,Fea,os,ps,rs,us,ts,Gea,Hea,Iea,Jea,vs,ws,ys,As,zs,Lea,Kea,Bs,Ds,Cs,Fs,Gs,Mea,Is,Oea,Ks,Ls,Pea,Ms,Os,Ns,Ps,
hr,Rea,Vs,Ws,Sea,Ys,$s,bt,at,dt,et,ft,ht,gt,Uea,kt,lt,mt,nt,tt,ut,qt,Xea,Vea,vt,zt,At,Zea,wt,xt,Bt,Ct,Et,Ft,Kt,Gt,Mt,Lt,Nt,$ea,Pt,Qt,St,bfa,Ut,Vt,Wt,Yt,cfa,$t,bu,cu,gu,hu,dfa,du,efa,pu,zu,xu,ffa,Du,Cu,Fu,Bu,Eu,Gu,Iu,Ju,Hu,Ku,Lu,Mu,Nu,Ou,Ru,Pu,hfa,Su,Tu,Uu,Vu,Wu,ifa,Qu,Xu,Yu,Zu,$u,av,bv,cv,dv,ev,fv,gv,hv,jfa,iv,kfa,jv,kv,mv,ov,lfa,pv,uv,rv,nv,vv,qv,tv,wv,xv,yv,mfa,Av,Bv,Hv,nfa,Dv,Jv,Lv,Ov,Nv,Fv,Kv,Iv,ofa,Pv,Rv,Sv,pfa,Tv,Uv,Cv,Ev,Gv,Mv,Vv,Wv,Xv,Yv,Zv,$v,aw,bw,cw,dw,ew,fw,gw,hw,iw,kw,mw,lw,nw,ow,pw,
rw,tw,vw,xw,yw,Aw,wfa,Bw,Cw,Dw,Ew,Fw,Hw,Iw,Jw,Kw,Gw,zfa,Lw,Mw,Nw,Ow,Pw,Afa,Rw,Sw,Tw,Bfa,Cfa,Dfa,Vw,Ww,Efa,Yw,Ffa,Xw,Zw,ax,bx,cx,Fx,Gx,Hx,Kx,Lx,Ix,Px,Qx,Rx,Sx,Tx,Ux,Nx,Vx,Wx,Yx,Zx,ay,by,cy,ey,fy,gy,hy,iy,jy,ky,Gfa,ly,Hfa,qy,Ifa,ry,Kfa,Lfa,Mfa,Nfa,uy,Ofa,Pfa,Qfa,Rfa,vy,Sfa,Tfa,wy,Ufa,oy,sy,ty,Jfa,yy,Vfa,Wfa,Cy,Ey,Dy,Xfa,zy,Ay,By,Fy,Gy,Hy,Yfa,Iy,Jy,Ky,Zfa,$fa,aga,cga,Ly,My,Ny,Oy,Py,Qy,Ry,Sy,Zy,Vy,dga,az,Wy,Xy,Uy,Yy,Ty,$y,ez,dz,cz,gz,hz,fga,gga,jz,kz,hga,nz,tz,rz,wz,oz,xz,lz,zz,pz,mz,vz,Az,Bz,Cz,Ez,Dz,
Fz,Hz,Iz,Jz,Mz,Nz,Oz,Lz,Qz,Xz,mga,Rz,pga,Sz,eA,gA,fA,$z,nga,qga,aA,kga,hA,iA,jA,rga,kA,lA,mA,nA,oA,sga,pA,qA,rA,sA,tA,uA,vA,wA,yA,xA,zA,AA,EA,GA,HA,IA,JA,LA,MA,PA,FA,CA,BA,DA,QA,RA,SA,TA,OA,KA,NA,UA,VA,WA,XA,YA,$A,ZA,aB,vga,qz,cA,bA,cB,sz,dB,eB,iz,bB,fB,gB,iB,hB,xga,jB,kB,lB,mB,nB,pB,oB,qB,yga,rB,sB,tB,uB,vB,zga,Aga,Ega,Fga,Bga,Cga,Dga,wB,xB,Gga,Hga,Iga,zB,AB,BB,Jga,CB,EB,FB,GB,HB,IB,KB,LB,MB,NB,OB,Kga,QB,PB,SB,RB,TB,UB,Lga,VB,XB,Nga,YB,Oga,Pga,ZB,$B,Qga,Rga,Sga,aC,Tga,eC,bC,hC,Uga,Vga,iC,Wga,jC,
kC,Xga,lC,mC,Yga,Zga,$ga,nC,fC,aha,oC,pC,qC,rC,sC,tC,dha,cha,vC,wC,uC,eha,fha,gha,BC,CC,EC,FC,GC,HC,IC,JC,DC,LC,hha,NC,OC,PC,xC,iha,RC,SC,TC,UC,VC,WC,XC,YC,$C,aD,ZC,mha,nha,dD,cD,lha,kha,bD,eD,tga,fD,oha,gD,pha,qha,iD,kD,jD,hD,R,mD,nD,oD,pD,qD,PD,QD,TD,UD,BD,GD,rD,KD,JD,ND,XD,ZD,aE,eE,yD,fE,xD,gE,ID,zha,Cha,Dha,Eha,oE,pE,qE,rE,Fha,kE,sE,tE,jE,Aha,vE,lE,mE,Bha,wE,nE,Gha,Hha,BE,Iha,CE,Jha,GE,DE,FE,EE,Kha,HE,Mha,Nha,ME,NE,OE,PE,QE,RE,SE,TE,UE,VE,WE,XE,YE,ZE,$E,aF,bF,cF,dF,eF,fF,gF,hF,iF,jF,kF,lF,mF,
nF,oF,pF,qF,rF,sF,tF,uF,vF,wF,xF,yF,zF,AF,BF,CF,Oha,FF,GF,HF,IF,JF,KF,LF,MF,DF,NF,Pha,OF,RF,Rha,VF,WF,XF,Sha,YF,ZF,aG,bG,Tha,dG,eG,fG,hG,iG,cG,jG,gG,lG,mG,oG,nG,pG,qG,sG,tG,uG,vG,BG,xG,EG,yG,HG,FG,IG,AG,Yha,JG,wG,LG,$ha,MG,NG,aia,Zha,bia,OG,PG,cia,QG,RG,dia,eia,SG,TG,fia,jia,UG,gia,iia,hia,VG,kia,WG,lia,mia,XG,nia,aH,bH,eH,dH,fH,gH,hH,iH,pia,qia,ria,kH,mH,nH,qH,sH,rH,xia,tH,vH,wH,oH,xH,yH,yia,CH,GH,HH,JH,Bia,PH,RH,MH,SH,Aia,Cia,dI,fI,gI,eI,hI,Dia,LH,QH,lI,Eia,Fia,Gia,Iia,mI,nI,Hia,pI,qI,rI,tI,uI,
OH,DH,wI,FH,EH,yI,kI,Jia,DI,EI,FI,GI,HI,IH,JI,II,jI,iI,KI,vI,KH,NH,Kia,BH,NI,AH,jH,Lia,OI,PI,Mia,QI,Nia,RI,TI,Oia,Pia,Ria,Qia,UI,VI,Sia,WI,XI,YI,ZI,$I,aJ,bJ,cJ,dJ,eJ,Tia,fJ,gJ,hJ,iJ,kJ,Wia,jJ,Xia,Uia,lJ,Via,nJ,Yia,oJ,pJ,qJ,rJ,sJ,tJ,uJ,wJ,vJ,xJ,zJ,AJ,$ia,BJ,HJ,JJ,DJ,GJ,MJ,FJ,OJ,IJ,PJ,LJ,KJ,RJ,EJ,CJ,SJ,UJ,TJ,VJ,WJ,YJ,$J,aK,cK,dK,bK,eK,fK,gK,hK,iK,jK,kK,lK,mK,nK,oK,pK,qK,rK,sK,tK,uK,vK,wK,xK,yK,zK,BK,CK,DK,EK,FK,GK,IK,JK,aja,KK,dja,bja,cja,eja,LK,MK,OK,PK,NK,QK,RK,fja,gja,SK,TK,qla,sla,tla,rla,VK,UK,
WK,XK,YK,ZK,$K,aL,bL,fL,gL,hL,iL,jL,kL,lL,ula,oL,pL,mL,sL,qL,rL,vla,tL,wla,uL,vL,xla,wL,xL,yL,zL,BL,yla,Ala,Bla,Cla,DL,CL,zla,EL,GL,FL,HL,JL,IL,KL,Dla,LL,OL,PL,QL,RL,UL,Fla,WL,XL,YL,ZL,$L,bM,Gla,dM,cM,Hla,Ila,eM,fM,gM,Jla,iM,hM,Kla,jM,lM,kM,nM,oM,mM,pM,sM,uM,vM,Nla,Ola,wM,xM,BM,Rla,Sla,zM,Pla,HM,ama,$la,IM,KM,LM,JM,cma,MM,NM,dma,OM,PM,QM,RM,ema,fma,gma,hma,SM,TM,ima,jma,kma,mma,nma,oma,pma,qma,aN,rma,sma,YM,ZM,$M,cN,vma,tma,dN,Ama,xma,yma,zma,Bma,eN,Cma,Ema,Fma,Dma,Gma,fN,Jma,Hma,hN,Ima,Kma,iN,Mma,
Nma,aM,AL,Lma,mN,nN,Pma,oN,pN,qN,Qma,Rma,Sma,rN,tN,Uma,uN,V,Vma,xN,Wma,Xma,AN,DN,EN,FN,GN,Zma,$ma,ana,bna,cna,dna,LN,ena,MN,fna,gna,hna,ina,jna,kna,QN,RN,SN,lna,TN,UN,VN,WN,XN,YN,$N,aO,bO,cO,dO,mna,eO,fO,nna,gO,ona,pna,qna,sna,rna,tna,una,vna,hO,wna,iO,xna,kO,zna,yna,lO,mO,Dna,Ana,Cna,Bna,Ena,nO,Fna,oO,pO,Gna,Hna,Ina,Jna,qO,Kna,Lna,rO,sO,uO,vO,wO,Mna,xO,zO,Pna,AO,BO,CO,Qna,Rna,Sna,FO,Tna,Una,Vna,Wna,GO,EO,Xna,IO,Yna,JO,KO,LO,OO,PO,QO,RO,SO,Zna,TO,$na,UO,VO,WO,XO,YO,ZO,$O,aoa,aP,bP,cP,dP,eP,boa,doa,
coa,eoa,fP,foa,goa,gP,hoa,hP,iP,jP,ioa,joa,koa,kP,mP,moa,nP,oP,pP,qP,ooa,noa,rP,sP,tP,uP,vP,wP,qoa,poa,xP,roa,yP,W,zP,toa,AP,woa,voa,xoa,CP,yoa,DP,BP,EP,FP,HP,Aoa,PP,Boa,QP,nL,OP,RP,Eoa,Foa,Goa,Hoa,zoa,Ioa,GP,Koa,Loa,TP,LP,ZP,UP,JP,Moa,Joa,IP,SP,WP,$P,MP,NP,YP,XP,Ooa,aQ,Qoa,Poa,bQ,X,Uoa,cQ,Voa,Roa,Woa,dQ,Zoa,Xoa,dpa,apa,$oa,gpa,fpa,hpa,kpa,jpa,npa,ppa,spa,tpa,xpa,nQ,upa,zpa,ypa,oQ,LE,Apa,qQ,IE,uQ,Lha,vQ,bN,wQ,xQ,eQ,yQ,Cpa,mQ,fQ,Dpa,zQ,AQ,iQ,Epa,cpa,gQ,hQ,lQ,Fpa,Gpa,BQ,CQ,pQ,kQ,jQ,qpa,vpa,ipa,lpa,
DQ,EQ,Hpa,FQ,GQ,HQ,IQ,JQ,KQ,LQ,MQ,NQ,EF,Jpa,Ipa,rpa,Kpa,opa,bpa,Yoa,Toa,Soa,epa,wpa,mpa,OQ,Lpa,PQ,AK,KP,Coa,rQ,QQ,RQ,Mpa,Npa,SQ,Opa,TQ,UQ,VQ,WQ,gN,Ppa,XQ,Qpa,Rpa,Nna,ZQ,$Q,Tpa,Spa,aR,bR,cR,Ona,tO,Upa,Vpa,eR,KE,fR,VP,YQ,Xpa,Ypa,Zpa,gR,hR,$pa,aqa,bqa,cqa,iR,jR,tQ,sQ,dqa,kR,lR,eqa,mR,nR,fqa,gqa,oR,pR,qR,rR,sR,hqa,tR,iqa,uR,jqa,vR,wR,xR,yR,AR,BR,CR,ER,kqa,DR,lqa,mqa,FR,oqa,nqa,GR,HR,pqa,IR,qqa,rqa,JR,sqa,tqa,uqa,KR,LR,MR,NR,OR,PR,vqa,QR,RR,wqa,SR,zR,TR,UR,VR,xqa,WR,yqa,YR,ZR,$R,aS,zqa,Aqa,Cqa,Eqa,Bqa,
bS,Fqa,Gqa,Hqa,cS,dS,eS,Bpa,Iqa,fS,Jqa,gS,Dqa,Kqa,Lqa,Mqa,Oqa,hS,iS,Pqa,jS,Qqa,Rqa,kS,Sqa,lS,mS,nS,oS,pS,Tqa,qS,Uqa,Vqa,Wqa,Xqa,sS,Yqa,Zqa,$qa,ara,cra,bra,dra,uS,era,fra,JE,gra,AS,hra,ira,CS,jra,DS,kra,lra,ES,FS,GS,nra,HS,KS,ora,pra,LS,NS,AM,qra,tra,sra,rra,ura,wra,MS,OS,PS,QS,RS,SS,TS,xra,yra,VS,zra,Bra,Cra,Ara,Dra,WS,XS,Gra,Fra,fr,kr,Ira,Hra,Jra,Kra,Lra,Mra,Nra,Pra,ZS,Ora,Qra,$S,Rra,Tra,Ura,Vra,aT,bT,Xra,Wra,$ra,eT,asa,cT,Zra,bsa,dsa,dT,csa,Yra,fsa,hT,gT,iT,Y,wma,gsa,hsa,isa,jsa,nT,mT,tT,Oma,ET,
Nqa,vsa,NT,wsa,nsa,QT,zsa,Asa,RT,xsa,ysa,ST,TT,UT,Gsa,Isa,WT,Nsa,$T,Psa,Msa,Qsa,Rsa,ZT,Osa,bU,cU,dU,eU,kT,fU,Ssa,hU,Tsa,gU,jU,Usa,mU,nU,sU,Wsa,Xsa,uU,tU,vU,Ysa,Zsa,wU,$sa,ata,yU,zU,cta,bta,CU,eta,EU,AU,fta,gta,hta,dta,FU,IU,ita,HU,KU,JU,MU,kta,lta,QU,mta,nta,TU,ota,rta,pta,XU,YU,sta,aV,bV,dV,fV,tta,uta,hV,wta,vta,xta,yta,kV,zta,Ata,nV,oV,pV,Bta,qV,rV,Cta,Dta,uV,Fta,Eta,vV,wV,xV,Gta,yV,zV,AV,BV,Hta,CV,Ita,DV,Kta,Jta,IV,GV,HV,Lta,Mta,JV,Nta,KV,LV,MV,NV,Ota,QV,Pta,SV,TV,UV,Qta,WV,XV,YV,ZV,Rta,Uta,$V,
Sta,Tta,Yta,Zta,bW,aua,$ta,bua,cua,dua,eW,gW,hW,iW,jW,eua,fua,gua,hua,jua,kua,lua,nW,rW,nua,oua,pW,lW,oW,tW,rua,uW,qW,iua,qua,sW,mua,pua,sua,tua,wW,xW,yW,zW,vua,CW,DW,EW,FW,GW,HW,wua,lX,nX,mX,oX,pX,xua,qX,yua,Aua,zua,rX,sX,Bua,tX,uX,Cua,vX,Dua,wX,Eua,xX,yX,CX,BX,Fua,AX,FX,Gua,Hua,GX,HX,JX,Iua,RU,Mua,lV,Jua,EX,Lua,mV,Kua,Nua,Rua,Qua,NX,Sua,OX,Tua,PX,Uua,Vua,Wua,Xua,SX,bva,eva,cva,Zua,TX,RX,Yua,dva,YX,gva,fva,ZX,jva,lva,mva,kva,bY,nva,dY,tva,gY,sva,rva,hY,cY,iY,LT,uva,fY,yva,xva,vva,eY,wva,pva,zva,
kY,Eva,mY,Gva,Hva,Cva,oY,Iva,pY,Ava,rY,Dva,Jva,qY,nY,Kva,MT,Lva,lY,Nva,vY,tY,wY,uY,xY,Ova,yY,zY,AY,BY,Pva,CY,DY,Rva,IY,Tva,yJ,Uva,Vva,LY,KY,JY,Wva,Xva,ssa,tsa,Yva,Zva,NY,OY,PY,$va,yz,iga,QY,RY,SY,ewa,fwa,VY,WY,gwa,YY,$Y,bZ,jwa,iwa,kwa,mwa,nwa,cZ,owa,TY,pwa,WX,qwa,rwa,twa,uwa,eZ,swa,bwa,dwa,aZ,hwa,vwa,wwa,xwa,cwa,UY,dZ,ZY,XY,fZ,ywa,awa,zwa,gZ,hZ,Awa,Bwa,Cwa,Ewa,Dwa,iZ,Fwa,Hwa,Gwa,Jwa,kZ,Nwa,Kwa,Owa,Pwa,Mwa,Qwa,lZ,Uwa,Swa,Twa,Xwa,Ywa,Zwa,$wa,axa,jZ,bxa,Wwa,Rwa,cxa,nZ,dxa,Lwa,exa,oZ,pZ,fxa,gxa,ixa,jxa,
qZ,hxa,rZ,sZ,tZ,vZ,lxa,nxa,oxa,qxa,pxa,wZ,mxa,yZ,xZ,rxa,uZ,sxa,zZ,CZ,txa,vxa,uxa,BZ,wxa,xxa,zxa,yxa,Axa,DZ,AZ,Bxa,Cxa,EZ,FZ,Exa,Fxa,Gxa,Dxa,Hxa,Ixa,Kxa,Mxa,Nxa,Jxa,Pxa,Qxa,Lxa,IZ,Rxa,Sxa,Txa,Uxa,JZ,KZ,NZ,OZ,Wxa,PZ,Xxa,Yxa,QZ,Zxa,TZ,$xa,aya,cya,bya,dya,UZ,VZ,eya,WZ,XZ,YZ,iya,$Z,ZZ,jya,c_,hya,kya,gya,b_,lya,a_,mya,d_,nya,Vxa,SZ,pya,qya,rya,sya,tya,uya,wya,xya,yya,vya,zya,f_,g_,psa,Aya,Bya,Cya,Dya,h_,i_,Eya,Fya,Gya,k_,Iya,m_,Jya,Kya,l_,j_,Hya,p_,o_,q_,n_,Lya,s_,Pya,v_,Qya,Nya,t_,w_,Oya,Rya,Sya,Uya,r_,
Vya,Wya,Tya,u_,Xya,Mya,x_,y_,Yya,z_,$ya,bza,aza,cza,eza,dza,A_,B_,fza,C_,D_,E_,F_,G_,H_,gza,hza,jza,kza,lza,mza,nza,oza,pza,I_,qza,rza,J_,K_,L_,M_,N_,O_,sza,P_,tza,uza,vza,wza,xza,zza,Q_,Aza,R_,Bza,Dza,Cza,Eza,Kza,Fza,Iza,Lza,Jza,Gza,Mza,Hza,Oza,S_,Qza,Rza,Sza,$_,QJ,a0,fT,Vza,ova,Xza,b0,Z_,Yza,Zza,h0,d0,aY,Wza,j0,aAa,k0,esa,g0,l0,U_,$za,Tza,X_,o0,p0,fAa,UX,gAa,VX,iva,n0,jY,c0,hAa,jAa,iAa,kAa,q0,ava,msa,lAa,dAa,T_,mAa,r0,e0,V_,Y_,XX,Uza,s0,nAa,oAa,f0,pAa,$ua,m0,eAa,u0,xAa,sAa,yM,rAa,AAa,BAa,x0,KT,
DAa,CAa,y0,usa,t0,C0,D0,FAa,E0,G0,vAa,wAa,M0,JAa,L0,v0,Q0,yAa,R0,GAa,vT,KAa,LAa,I0,J0,H0,U0,QAa,z0,RAa,SAa,TAa,Fva,VAa,V0,P0,hva,A0,sY,W0,X0,WAa,K0,EAa,T0,MAa,YAa,osa,jT,$Aa,O0,Z0,bBa,B0,FT,$0,cBa,dBa,a1,fBa,uAa,S0,gBa,tAa,b1,c1,Sva,hBa,kBa,mBa,g1,h1,aa,fa,ea,eaa,Ha,Qa,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:{for(var c=ea,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];if(!(f in c))break a;c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&fa(c,d,{configurable:!0,writable:!0,value:f})}};
ia=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
g.q=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:da(a)}};
ka=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.ma=function(a){return a instanceof Array?a:ka(g.q(a))};
g.u=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.Gd=b.prototype};
pa=function(){this.J=!1;this.D=null;this.B=void 0;this.u=1;this.P=this.C=0;this.F=null};
qa=function(a){if(a.J)throw new TypeError("Generator is already running");a.J=!0};
ra=function(a,b){a.F={RC:b,tL:!0};a.u=a.C||a.P};
sa=function(a,b,c){a.u=c;return{value:b}};
ta=function(a,b){a.u=b;a.C=0};
ua=function(a){a.C=0;var b=a.F.RC;a.F=null;return b};
baa=function(a){this.u=new pa;this.B=a};
caa=function(a,b){qa(a.u);var c=a.u.D;if(c)return va(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.u["return"]);
a.u["return"](b);return wa(a)};
va=function(a,b,c,d){try{var e=b.call(a.u.D,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.u.J=!1,e;var f=e.value}catch(h){return a.u.D=null,ra(a.u,h),wa(a)}a.u.D=null;d.call(a.u,f);return wa(a)};
wa=function(a){for(;a.u.u;)try{var b=a.B(a.u);if(b)return a.u.J=!1,{value:b.value,done:!1}}catch(c){a.u.B=void 0,ra(a.u,c)}a.u.J=!1;if(a.u.F){b=a.u.F;a.u.F=null;if(b.tL)throw b.RC;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
daa=function(a){this.next=function(b){qa(a.u);a.u.D?b=va(a,a.u.D.next,b,a.u.K):(a.u.K(b),b=wa(a));return b};
this["throw"]=function(b){qa(a.u);a.u.D?b=va(a,a.u.D["throw"],b,a.u.K):(ra(a.u,b),b=wa(a));return b};
this["return"]=function(b){return caa(a,b)};
this[Symbol.iterator]=function(){return this}};
xa=function(a,b){var c=new daa(new baa(b));oa&&a.prototype&&oa(c,a.prototype);return c};
ya=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+""};
za=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{OD:e,CI:f}}return{OD:-1,CI:void 0}};
Aa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Ca=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};
Da=function(a){return a?a:Array.prototype.fill};
Ea=function(a){return a?a:Array.prototype.copyWithin};
g.Fa=function(a,b,c){a=a.split(".");c=c||g.v;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
Ia=function(a){if(a&&a!=g.v)return Ga(a.document);null===Ha&&(Ha=Ga(g.v.document));return Ha};
Ga=function(a){return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&eaa.test(a)?a:""};
g.Ja=function(a,b){for(var c=a.split("."),d=b||g.v,e=0;e<c.length;e++)if(d=d[c[e]],null==d)return null;return d};
g.Ka=function(){};
La=function(a){a.rf=void 0;a.getInstance=function(){return a.rf?a.rf:a.rf=new a}};
Ma=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Na=function(a){var b=Ma(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Oa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Ra=function(a){return Object.prototype.hasOwnProperty.call(a,Qa)&&a[Qa]||(a[Qa]=++faa)};
gaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
haa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.z=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.z=gaa:g.z=haa;return g.z.apply(null,arguments)};
g.Ta=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
g.Ua=function(a,b){for(var c in b)a[c]=b[c]};
g.A=function(){return Date.now()};
g.Va=function(a,b){function c(){}
c.prototype=b.prototype;a.Gd=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.qg=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
Wa=function(a){return a};
Xa=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Xa);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
Ya=function(a,b){for(var c=Xa.call,d=a.split("%s"),e="",f=d.length-1,h=0;h<f;h++)e+=d[h]+(h<b.length?b[h]:"%s");c.call(Xa,this,e+d[f])};
iaa=function(){};
jaa=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.C=!b&&/[?&]ae=1(&|$)/.test(a);this.D=!b&&/[?&]ae=2(&|$)/.test(a);if((this.u=/[?&]adurl=([^&]*)/.exec(a))&&this.u[1]){try{var c=decodeURIComponent(this.u[1])}catch(d){c=null}this.B=c}};
Za=function(a){return function(){return a}};
g.ab=function(a){return a};
kaa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
bb=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
cb=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
laa=function(a,b){var c=0;return function(d){g.v.clearTimeout(c);var e=arguments;c=g.v.setTimeout(function(){a.apply(b,e)},50)}};
g.db=function(a){return a[a.length-1]};
maa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.fb=function(a,b,c){b=eb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
eb=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.gb=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.jb=function(a,b){return 0<=ib(a,b)};
g.kb=function(a){return 0==a.length};
lb=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.ob=function(a,b){var c=ib(a,b),d;(d=0<=c)&&g.nb(a,c);return d};
g.nb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.pb=function(a,b){var c=eb(a,b,void 0);0<=c&&g.nb(a,c)};
naa=function(a,b){var c=0;maa(a,function(d,e){b.call(void 0,d,e,a)&&g.nb(a,e)&&c++})};
g.qb=function(a){return Array.prototype.concat.apply([],arguments)};
g.rb=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[]};
sb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Na(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
g.ub=function(a,b,c,d){Array.prototype.splice.apply(a,tb(arguments,1))};
tb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
oaa=function(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++];var f=e;f=g.Oa(f)?"o"+g.Ra(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};
g.xb=function(a,b,c){return vb(a,c||wb,!1,b)};
yb=function(a,b){return vb(a,b,!0,void 0,void 0)};
vb=function(a,b,c,d,e){for(var f=0,h=a.length,l;f<h;){var m=f+(h-f>>>1),n;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.zb=function(a,b){a.sort(b||wb)};
paa=function(a,b){var c=wb;g.zb(a,function(d,e){return c(b(d),b(e))})};
g.Ab=function(a,b){if(!g.Na(a)||!g.Na(b)||a.length!=b.length)return!1;for(var c=a.length,d=qaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
wb=function(a,b){return a>b?1:a<b?-1:0};
qaa=function(a,b){return a===b};
g.Bb=function(a,b,c){c=g.xb(a,b,c);0>c&&g.ub(a,-(c+1),0,b)};
g.Db=function(a,b,c){var d={};(0,g.Cb)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
raa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
saa=function(a,b){var c=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,c[0])};
g.Eb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Fb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Gb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Hb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Ib=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Jb=function(a){for(var b in a)return a[b]};
g.Kb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Lb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Mb=function(a,b){var c=g.Na(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(null==a)return;a=a[d[c]]}return a};
Nb=function(a,b){return null!==a&&b in a};
g.Ob=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Pb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Qb=function(a,b){var c=Pb(a,b,void 0);return c&&a[c]};
g.Rb=function(a){for(var b in a)return!1;return!0};
g.Sb=function(a){for(var b in a)delete a[b]};
g.Tb=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0};
g.Ub=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.Vb=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();var b=Array.isArray(a)?[]:"function"!==typeof ArrayBuffer||"function"!==typeof ArrayBuffer.isView||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.Vb(a[c]);return b};
g.Xb=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Wb.length;f++)c=Wb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
Zb=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
ac=function(){if(void 0===$b){var a=null,b=g.v.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Wa,createScript:Wa,createScriptURL:Wa})}catch(c){g.v.console&&g.v.console.error(c.message)}$b=a}else $b=a}return $b};
dc=function(a,b){this.u=a===bc&&b||"";this.C=cc};
ec=function(a){return a instanceof dc&&a.constructor===dc&&a.C===cc?a.u:"type_error:Const"};
g.fc=function(a){return new dc(bc,a)};
hc=function(a,b){this.C=b===gc?a:""};
ic=function(a){return a instanceof hc&&a.constructor===hc?a.C:"type_error:TrustedResourceUrl"};
vaa=function(a,b){var c=ec(a);if(!taa.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);var d=c.replace(uaa,function(e,f){if(!Object.prototype.hasOwnProperty.call(b,f))throw Error('Found marker, "'+f+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));var h=b[f];return h instanceof dc?ec(h):encodeURIComponent(String(h))});
return jc(d)};
jc=function(a){var b=ac();a=b?b.createScriptURL(a):a;return new hc(a,gc)};
kc=function(a,b){return 0==a.lastIndexOf(b,0)};
mc=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.oc=function(a){return/^[\s\xa0]*$/.test(a)};
vc=function(a,b){if(b)a=a.replace(pc,"&").replace(qc,"<").replace(rc,">").replace(sc,""").replace(tc,"'").replace(uc,"�");else{if(!waa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(pc,"&"));-1!=a.indexOf("<")&&(a=a.replace(qc,"<"));-1!=a.indexOf(">")&&(a=a.replace(rc,">"));-1!=a.indexOf('"')&&(a=a.replace(sc,"""));-1!=a.indexOf("'")&&(a=a.replace(tc,"'"));-1!=a.indexOf("\x00")&&(a=a.replace(uc,"�"))}return a};
wc=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
g.Ac=function(a,b){for(var c=0,d=xc(String(a)).split("."),e=xc(String(b)).split("."),f=Math.max(d.length,e.length),h=0;0==c&&h<f;h++){var l=d[h]||"",m=e[h]||"";do{l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];if(0==l[0].length&&0==m[0].length)break;c=zc(0==l[1].length?0:parseInt(l[1],10),0==m[1].length?0:parseInt(m[1],10))||zc(0==l[2].length,0==m[2].length)||zc(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
zc=function(a,b){return a<b?-1:a>b?1:0};
g.Cc=function(a,b){this.C=b===Bc?a:""};
g.Dc=function(a){return a instanceof g.Cc&&a.constructor===g.Cc?a.C:"type_error:SafeUrl"};
Ec=function(a){a=String(a);a=a.replace(/(%0A|%0D)/g,"");var b=a.match(xaa);return b&&yaa.test(b[1])?new g.Cc(a,Bc):null};
g.Hc=function(a){a instanceof g.Cc||(a="object"==typeof a&&a.Sj?a.Vg():String(a),a=Fc.test(a)?new g.Cc(a,Bc):Ec(a));return a||Gc};
g.Ic=function(a,b){if(a instanceof g.Cc)return a;a="object"==typeof a&&a.Sj?a.Vg():String(a);if(b&&/^data:/i.test(a)){var c=Ec(a)||Gc;if(c.Vg()==a)return c}Fc.test(a)||(a="about:invalid#zClosurez");return new g.Cc(a,Bc)};
Kc=function(a,b){this.u=b===Jc?a:""};
Lc=function(a){return a instanceof Kc&&a.constructor===Kc?a.u:"type_error:SafeStyle"};
Qc=function(a){var b="",c;for(c in a)if(Object.prototype.hasOwnProperty.call(a,c)){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var d=a[c];null!=d&&(d=Array.isArray(d)?g.Mc(d,Nc).join(" "):Nc(d),b+=c+":"+d+";")}return b?new Kc(b,Jc):Pc};
Nc=function(a){if(a instanceof g.Cc)return'url("'+g.Dc(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';a=a instanceof dc?ec(a):zaa(String(a));if(/[{;}]/.test(a))throw new Ya("Value does not allow [{;}], got: %s.",[a]);return a};
zaa=function(a){var b=a.replace(Rc,"$1").replace(Rc,"$1").replace(Sc,"url");if(Aaa.test(b)){if(Baa.test(a))return"zClosurez";for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}if(!b||!c||!Caa(a))return"zClosurez"}else return"zClosurez";return Daa(a)};
Caa=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b};
Daa=function(a){return a.replace(Sc,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.Hc(d).Vg();return c+f+b+f+e})};
Eaa=function(a){function b(d){Array.isArray(d)?g.Cb(d,b):c+=Lc(d)}
var c="";g.Cb(arguments,b);return c?new Kc(c,Jc):Pc};
Uc=function(a){return-1!=g.Tc.indexOf(a)};
Vc=function(){return Uc("Firefox")||Uc("FxiOS")};
Xc=function(){return Uc("Safari")&&!(Wc()||Uc("Coast")||Uc("Opera")||Uc("Edge")||Uc("Edg/")||Uc("OPR")||Vc()||Uc("Silk")||Uc("Android"))};
Wc=function(){return(Uc("Chrome")||Uc("CriOS"))&&!Uc("Edge")};
Zc=function(a,b,c){this.C=c===Yc?a:"";this.D=b};
g.$c=function(a){return a instanceof Zc&&a.constructor===Zc?a.C:"type_error:SafeHtml"};
bd=function(a){if(a instanceof Zc)return a;var b="object"==typeof a,c=null;b&&a.B&&(c=a.u());return ad(vc(b&&a.Sj?a.Vg():String(a)),c)};
Faa=function(a){function b(f){Array.isArray(f)?g.Cb(f,b):(f=bd(f),e.push(g.$c(f).toString()),f=f.u(),0==d?d=f:0!=f&&d!=f&&(d=null))}
var c=bd(cd),d=c.u(),e=[];g.Cb(a,b);return ad(e.join(g.$c(c).toString()),d)};
Gaa=function(a){return Faa(Array.prototype.slice.call(arguments))};
ad=function(a,b){var c=ac();c=c?c.createHTML(a):a;return new Zc(c,b,Yc)};
g.dd=function(a,b){ec(a);ec(a);return ad(b,null)};
Haa=function(a){var b=g.fc("Output of CSS sanitizer");ec(b);ec(b);return new Kc(a,Jc)};
g.ed=function(a,b){if(Iaa())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.$c(b)};
g.gd=function(a,b){var c=b instanceof g.Cc?b:g.Ic(b);a.href=g.Dc(c)};
g.hd=function(a,b){a.src=ic(b);var c=Ia(a.ownerDocument&&a.ownerDocument.defaultView);c&&a.setAttribute("nonce",c)};
id=function(a,b,c,d){a=a instanceof g.Cc?a:g.Ic(a);b=b||g.v;c=c instanceof dc?ec(c):c||"";return void 0!==d?b.open(g.Dc(a),c,d,void 0):b.open(g.Dc(a),c)};
jd=function(a){return encodeURIComponent(String(a))};
kd=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.ld=function(a){return a=vc(a,void 0)};
g.md=function(a){return null==a?"":String(a)};
nd=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
g.od=function(a){var b=Number(a);return 0==b&&g.oc(a)?NaN:b};
pd=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
qd=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Jaa=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
rd=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};
sd=function(a){return a?decodeURI(a):a};
g.ud=function(a,b){return b.match(td)[a]||null};
g.vd=function(a){return sd(g.ud(3,a))};
wd=function(a){a=a.match(td);return rd(a[1],null,a[3],a[4])};
xd=function(a){a=a.match(td);return rd(null,null,null,null,a[5],a[6],a[7])};
yd=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null;if(0<=e){var h=c[d].substring(0,e);f=c[d].substring(e+1)}else h=c[d];b(h,f?kd(f):"")}};
zd=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)]};
Ad=function(a,b){return b?a?a+"&"+b:b:a};
Bd=function(a,b){if(!b)return a;var c=zd(a);c[1]=Ad(c[1],b);return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Cd=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Cd(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+jd(b)))};
Dd=function(a,b){for(var c=[],d=b||0;d<a.length;d+=2)Cd(a[d],a[d+1],c);return c.join("&")};
g.Ed=function(a){var b=[],c;for(c in a)Cd(c,a[c],b);return b.join("&")};
Hd=function(a,b){var c=2==arguments.length?Dd(arguments[1],0):Dd(arguments,1);return Bd(a,c)};
g.Id=function(a,b){var c=g.Ed(b);return Bd(a,c)};
Jd=function(a,b,c){c=null!=c?"="+jd(c):"";return Bd(a,b+c)};
Kd=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1};
Md=function(a,b){var c=a.search(Ld),d=Kd(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return kd(a.substr(d,e-d))};
Nd=function(a,b){for(var c=a.search(Ld),d=0,e,f=[];0<=(e=Kd(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(Kaa,"$1")};
Od=function(a,b,c){return Jd(Nd(a,b),b,c)};
Laa=function(a,b){var c=zd(a),d=c[1],e=[];d&&d.split("&").forEach(function(f){var h=f.indexOf("=");b.hasOwnProperty(0<=h?f.substr(0,h):f)||e.push(f)});
c[1]=Ad(e.join("&"),g.Ed(b));return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
Rd=function(){return Uc("iPhone")&&!Uc("iPod")&&!Uc("iPad")};
Sd=function(){return Rd()||Uc("iPad")||Uc("iPod")};
Td=function(a){Td[" "](a);return a};
Ud=function(a,b){try{return Td(a[b]),!0}catch(c){}return!1};
Vd=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};
Wd=function(){var a=g.v.document;return a?a.documentMode:void 0};
g.Yd=function(a){return Vd(Maa,a,function(){return 0<=g.Ac(Xd,a)})};
g.Zd=function(a){return Number(Naa)>=a};
g.$d=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.ae=function(a,b){var c=a%b;return 0>c*b?c+b:c};
g.be=function(a,b,c){return a+c*(b-a)};
ce=function(a,b){return 1E-6>=Math.abs(a-b)};
g.de=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
ee=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.fe=function(a,b){this.width=a;this.height=b};
g.ge=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
he=function(a){return a.width*a.height};
le=function(a){return a?new ie(je(a)):ke||(ke=new ie)};
me=function(a){var b=document;return"string"===typeof a?b.getElementById(a):a};
g.oe=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.ne(document,"*",a,b)};
g.pe=function(a,b){var c=b||document;if(c.getElementsByClassName)c=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;c=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.ne(c,"*",a,b)[0]||null}return c||null};
g.ne=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.jb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
se=function(a,b){g.Eb(b,function(c,d){c&&"object"==typeof c&&c.Sj&&(c=c.Vg());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:qe.hasOwnProperty(d)?a.setAttribute(qe[d],c):kc(d,"aria-")||kc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
te=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.fe(a.clientWidth,a.clientHeight)};
we=function(a){var b=ue(a);a=a.parentWindow||a.defaultView;return g.ve&&g.Yd("10")&&a.pageYOffset!=b.scrollTop?new g.de(b.scrollLeft,b.scrollTop):new g.de(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
ue=function(a){return a.scrollingElement?a.scrollingElement:g.xe||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
ye=function(a){return a?a.parentWindow||a.defaultView:window};
Be=function(a,b,c){var d=arguments,e=document,f=String(d[0]),h=d[1];if(!Oaa&&h&&(h.name||h.type)){f=["<",f];h.name&&f.push(' name="',g.ld(h.name),'"');if(h.type){f.push(' type="',g.ld(h.type),'"');var l={};g.Xb(l,h);delete l.type;h=l}f.push(">");f=f.join("")}f=ze(e,f);h&&("string"===typeof h?f.className=h:Array.isArray(h)?f.className=h.join(" "):se(f,h));2<d.length&&Ae(e,f,d,2);return f};
Ae=function(a,b,c,d){function e(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
for(;d<c.length;d++){var f=c[d];if(!g.Na(f)||g.Oa(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Oa(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}g.Cb(h?g.rb(f):f,e)}}};
g.Ce=function(a){return ze(document,a)};
ze=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.De=function(a){return document.createTextNode(String(a))};
g.Ee=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.Fe=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Ge=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Qaa=function(a){return Paa&&void 0!=a.children?a.children:g.He(a.childNodes,function(b){return 1==b.nodeType})};
g.Ie=function(a){var b;if(Raa&&!(g.ve&&g.Yd("9")&&!g.Yd("10")&&g.v.SVGElement&&a instanceof g.v.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.Oa(b)&&1==b.nodeType?b:null};
g.Je=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};
je=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Ke=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.Ee(a);var c=je(a);a.appendChild(c.createTextNode(String(b)))}};
Ne=function(a){var b;"A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?b=!a.disabled&&(!Le(a)||Me(a)):b=Le(a)&&Me(a);if(b&&g.ve){var c;"function"!==typeof a.getBoundingClientRect||g.ve&&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};
Le=function(a){return g.ve&&!g.Yd("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
Me=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Se=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Oe(a,function(f){return(!e||f.nodeName==e)&&(!c||"string"===typeof f.className&&g.jb(f.className.split(/\s+/),c))},!0,d)};
Oe=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};
ie=function(a){this.u=a||g.v.document||document};
Te=function(a,b,c,d){var e=window,f="//pagead2.googlesyndication.com/bg/"+g.ld(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=le(c).createElement("SCRIPT");e.type="text/javascript";e.async=!0;a=vaa(g.fc("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.ld(a)+".js"});g.hd(e,a);c.getElementsByTagName("head")[0].appendChild(e)};
Ue=function(a,b){var c=void 0;return new (c||(c=Promise))(function(d,e){function f(m){try{l(b.next(m))}catch(n){e(n)}}
function h(m){try{l(b["throw"](m))}catch(n){e(n)}}
function l(m){m.done?d(m.value):(new c(function(n){n(m.value)})).then(f,h)}
l((b=b.apply(a,void 0)).next())})};
Saa=function(a){return g.Mc(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
g.Ve=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.We=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("")};
Ye=function(a,b,c){this.B=null;this.u=this.C=this.D=0;this.F=!1;a&&Xe(this,a,b,c)};
$e=function(a,b,c){if(Ze.length){var d=Ze.pop();a&&Xe(d,a,b,c);return d}return new Ye(a,b,c)};
Xe=function(a,b,c,d){b=b.constructor===Uint8Array?b:b.constructor===ArrayBuffer?new Uint8Array(b):b.constructor===Array?new Uint8Array(b):b.constructor===String?g.af(b):new Uint8Array(0);a.B=b;a.D=void 0!==c?c:0;a.C=void 0!==d?a.D+d:a.B.length;a.u=a.D};
bf=function(a){for(var b=128,c=0,d=0,e=0;4>e&&128<=b;e++)b=a.B[a.u++],c|=(b&127)<<7*e;128<=b&&(b=a.B[a.u++],c|=(b&127)<<28,d|=(b&127)>>4);if(128<=b)for(e=0;5>e&&128<=b;e++)b=a.B[a.u++],d|=(b&127)<<7*e+3;if(128>b){a=c>>>0;b=d>>>0;if(d=b&2147483648)a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0);a=4294967296*b+(a>>>0);return d?-a:a}a.F=!0};
cf=function(a){var b=a.B;var c=b[a.u+0];var d=c&127;if(128>c)return a.u+=1,d;c=b[a.u+1];d|=(c&127)<<7;if(128>c)return a.u+=2,d;c=b[a.u+2];d|=(c&127)<<14;if(128>c)return a.u+=3,d;c=b[a.u+3];d|=(c&127)<<21;if(128>c)return a.u+=4,d;c=b[a.u+4];d|=(c&15)<<28;if(128>c)return a.u+=5,d>>>0;a.u+=5;128<=b[a.u++]&&128<=b[a.u++]&&128<=b[a.u++]&&128<=b[a.u++]&&a.u++;return d};
df=function(a){this.u=$e(a,void 0,void 0);this.F=this.u.u;this.B=this.C=-1;this.D=!1};
ef=function(a){var b=a.u;if(b.u==b.C||a.getError())return!1;a.F=a.u.u;b=cf(a.u);var c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.D=!0,!1;a.C=b>>>3;a.B=c;return!0};
ff=function(a){switch(a.B){case 0:if(0!=a.B)ff(a);else{for(a=a.u;a.B[a.u]&128;)a.u++;a.u++}break;case 1:1!=a.B?ff(a):a.u.advance(8);break;case 2:if(2!=a.B)ff(a);else{var b=cf(a.u);a.u.advance(b)}break;case 5:5!=a.B?ff(a):a.u.advance(4);break;case 3:b=a.C;do{if(!ef(a)){a.D=!0;break}if(4==a.B){a.C!=b&&(a.D=!0);break}ff(a)}while(1);break;default:a.D=!0}};
gf=function(a){var b=cf(a.u);a=a.u;var c=a.B,d=a.u,e=d+b;b=[];for(var f="";d<e;){var h=c[d++];if(128>h)b.push(h);else if(192>h)continue;else if(224>h){var l=c[d++];b.push((h&31)<<6|l&63)}else if(240>h){l=c[d++];var m=c[d++];b.push((h&15)<<12|(l&63)<<6|m&63)}else if(248>h){l=c[d++];m=c[d++];var n=c[d++];h=(h&7)<<18|(l&63)<<12|(m&63)<<6|n&63;h-=65536;b.push((h>>10&1023)+55296,(h&1023)+56320)}8192<=b.length&&(f+=String.fromCharCode.apply(null,b),b.length=0)}c=f;if(8192>=b.length)b=String.fromCharCode.apply(null,
b);else{e="";for(f=0;f<b.length;f+=8192)h=tb(b,f,f+8192),e+=String.fromCharCode.apply(null,h);b=e}a.u=d;return c+b};
hf=function(a){var b=cf(a.u);a=a.u;if(0>b||a.u+b>a.B.length)a.F=!0,b=new Uint8Array(0);else{var c=a.B.subarray(a.u,a.u+b);a.u+=b;b=c}return b};
jf=function(){this.u=[]};
g.kf=function(a,b){for(;127<b;)a.u.push(b&127|128),b>>>=7;a.u.push(b)};
g.lf=function(a,b){a.u.push(b>>>0&255);a.u.push(b>>>8&255);a.u.push(b>>>16&255);a.u.push(b>>>24&255)};
g.qf=function(a,b){void 0===b&&(b=0);mf();for(var c=pf[b],d=[],e=0;e<a.length;e+=3){var f=a[e],h=e+1<a.length,l=h?a[e+1]:0,m=e+2<a.length,n=m?a[e+2]:0,p=f>>2;f=(f&3)<<4|l>>4;l=(l&15)<<2|n>>6;n&=63;m||(n=64,h||(l=64));d.push(c[p],c[f],c[l]||"",c[n]||"")}return d.join("")};
g.rf=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.qf(b,3)};
Taa=function(a){var b=[];sf(a,function(c){b.push(c)});
return b};
g.af=function(a){!g.ve||g.Yd("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;sf(a,function(f){d[e++]=f});
return d.subarray(0,e)};
sf=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=tf[n];if(null!=p)return p;if(!g.oc(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
mf();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))}};
mf=function(){if(!tf){tf={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));pf[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===tf[f]&&(tf[f]=e)}}}};
g.uf=function(){this.C=[];this.B=0;this.u=new jf};
g.vf=function(a){for(var b=new Uint8Array(a.B+a.u.length()),c=a.C,d=c.length,e=0,f=0;f<d;f++){var h=c[f];b.set(h,e);e+=h.length}c=a.u.end();b.set(c,e);a.C=[b];return b};
g.wf=function(a,b,c){if(null!=c&&null!=c)if(g.kf(a.u,8*b),a=a.u,0<=c)g.kf(a,c);else{for(b=0;9>b;b++)a.u.push(c&127|128),c>>=7;a.u.push(1)}};
g.zf=function(a,b,c){if(null!=c&&null!=c){g.kf(a.u,8*b);a=a.u;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)));g.xf=b;g.yf=d;c=g.xf;for(b=g.yf;0<b||127<c;)a.u.push(c&127|128),c=(c>>>7|b<<25)>>>0,b>>>=7;a.u.push(c)}};
g.Af=function(a,b,c){if(null!=c){g.kf(a.u,8*b+1);a=a.u;var d=c;d=(c=0>d?1:0)?-d:d;if(0===d)g.yf=0<1/d?0:2147483648,g.xf=0;else if(isNaN(d))g.yf=2147483647,g.xf=4294967295;else if(1.7976931348623157E308<d)g.yf=(c<<31|2146435072)>>>0,g.xf=0;else if(2.2250738585072014E-308>d)d/=Math.pow(2,-1074),g.yf=(c<<31|d/4294967296)>>>0,g.xf=d>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022<b;)e*=2,b--;d*=Math.pow(2,-b);g.yf=(c<<31|b+1023<<20|1048576*d&1048575)>>>0;g.xf=4503599627370496*
d>>>0}g.lf(a,g.xf);g.lf(a,g.yf)}};
g.Cf=function(){};
g.Hf=function(a,b,c,d){a.u=null;b||(b=[]);a.J=void 0;a.C=-1;a.Gf=b;a:{if(b=a.Gf.length){--b;var e=a.Gf[b];if(!(null===e||"object"!=typeof e||Array.isArray(e)||Df&&e instanceof Uint8Array)){a.D=b-a.C;a.B=e;break a}}a.D=Number.MAX_VALUE}a.F={};if(c)for(b=0;b<c.length;b++)e=c[b],e<a.D?(e+=a.C,a.Gf[e]=a.Gf[e]||Ef):(Ff(a),a.B[e]=a.B[e]||Ef);if(d&&d.length)for(b=0;b<d.length;b++)g.Gf(a,d[b])};
Ff=function(a){var b=a.D+a.C;a.Gf[b]||(a.B=a.Gf[b]={})};
g.If=function(a,b){if(b<a.D){var c=b+a.C,d=a.Gf[c];return d!==Ef?d:a.Gf[c]=[]}if(a.B)return d=a.B[b],d===Ef?a.B[b]=[]:d};
Uaa=function(a){return null==a||a instanceof Uint8Array?a:"string"===typeof a?g.af(a):null};
Jf=function(a,b){var c=g.If(a,b);return null==c?0:c};
g.Kf=function(a,b,c){b<a.D?a.Gf[b+a.C]=c:(Ff(a),a.B[b]=c);return a};
Lf=function(a,b,c){0!==c?g.Kf(a,b,c):b<a.D?a.Gf[b+a.C]=null:(Ff(a),delete a.B[b]);return a};
g.Gf=function(a,b){for(var c,d,e=0;e<b.length;e++){var f=b[e],h=g.If(a,f);null!=h&&(c=f,d=h,g.Kf(a,f,void 0))}return c?(g.Kf(a,c,d),c):0};
g.Mf=function(a,b,c){a.u||(a.u={});if(!a.u[c]){for(var d=g.If(a,c),e=[],f=0;f<d.length;f++)e[f]=new b(d[f]);a.u[c]=e}b=a.u[c];b==Ef&&(b=a.u[c]=[]);return b};
Nf=function(a){if(Array.isArray(a)){for(var b=Array(a.length),c=0;c<a.length;c++){var d=a[c];null!=d&&(b[c]="object"==typeof d?Nf(d):d)}return b}if(Df&&a instanceof Uint8Array)return new Uint8Array(a);b={};for(c in a)d=a[c],null!=d&&(b[c]="object"==typeof d?Nf(d):d);return b};
Of=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};
Pf=function(a){return a?a.passive&&Vaa()?a:a.capture||!1:!1};
Qf=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Pf(d)),!0):!1};
Rf=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,Pf(void 0))};
Tf=function(){return!Sf()&&(Uc("iPod")||Uc("iPhone")||Uc("Android")||Uc("IEMobile"))};
Sf=function(){return Uc("iPad")||Uc("Android")&&!Uc("Mobile")||Uc("Silk")};
Vf=function(a){try{return!!a&&null!=a.location.href&&Ud(a,"foo")}catch(b){return!1}};
Wf=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
Xaa=function(){var a=[];Wf(Waa,function(b){a.push(b)});
return a};
Zaa=function(a){return(a=Yaa.exec(a))&&a[0]||""};
$aa=function(){var a=Xf;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec(decodeURIComponent(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};
bba=function(){var a=g.Ce("IFRAME"),b={};g.Cb(aba(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
g.B=function(){this.Xb=this.Xb;this.Lb=this.Lb};
g.C=function(a,b){g.Yf(a,g.Ta(g.Zf,b))};
g.Yf=function(a,b){a.Xb?b():(a.Lb||(a.Lb=[]),a.Lb.push(b))};
g.Zf=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.$f=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Na(d)?g.$f.apply(null,d):g.Zf(d)}};
ag=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
bg=function(a){return a.right-a.left};
cg=function(a,b,c){b instanceof g.de?(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.dg=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
eg=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};
gg=function(a){if(a!==fg)throw Error("Bad secret");};
hg=function(){var a="undefined"!==typeof window?window.trustedTypes:void 0;return null!==a&&void 0!==a?a:null};
cba=function(){};
ig=function(a,b){gg(b);this.u=a};
dba=function(){};
jg=function(a,b){gg(b);this.u=a};
eba=function(){};
kg=function(a,b){gg(b);this.u=a};
g.mg=function(a){lg();return jc(a)};
g.og=function(a,b,c){if("string"===typeof b)(b=ng(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=ng(c,d);f&&(c.style[f]=e)}};
ng=function(a,b){var c=pg[b];if(!c){var d=pd(b);c=d;void 0===a.style[d]&&(d=(g.xe?"Webkit":qg?"Moz":g.ve?"ms":g.rg?"O":null)+Jaa(d),void 0!==a.style[d]&&(c=d));pg[b]=c}return c};
g.sg=function(a,b){var c=a.style[pd(b)];return"undefined"!==typeof c?c:a.style[ng(a,b)]||""};
tg=function(a,b){var c=je(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
ug=function(a,b){return tg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.wg=function(a,b,c){if(b instanceof g.de){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.vg(d,!1);a.style.top=g.vg(b,!1)};
xg=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
fba=function(a){if(g.ve&&!g.Zd(8))return a.offsetParent;var b=je(a),c=ug(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=ug(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.yg=function(a){var b=je(a),c=new g.de(0,0);var d=b?je(b):document;d=!g.ve||g.Zd(9)||"CSS1Compat"==le(d).u.compatMode?d.documentElement:d.body;if(a==d)return c;a=xg(a);b=we(le(b).u);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Ag=function(a,b){var c=new g.de(0,0),d=ye(je(a));if(!Ud(d,"parent"))return c;var e=a;do{var f=d==b?g.yg(e):zg(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c};
g.Cg=function(a,b){var c=Bg(a),d=Bg(b);return new g.de(c.x-d.x,c.y-d.y)};
zg=function(a){a=xg(a);return new g.de(a.left,a.top)};
Bg=function(a){if(1==a.nodeType)return zg(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.de(a.clientX,a.clientY)};
g.Dg=function(a,b,c){if(b instanceof g.fe)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.vg(b,!0);a.style.height=g.vg(c,!0)};
g.vg=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Eg=function(a){var b=gba;if("none"!=ug(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a};
gba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.xe&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=xg(a),new g.fe(a.right-a.left,a.bottom-a.top)):new g.fe(b,c)};
g.Fg=function(a,b){a.style.display=b?"":"none"};
Kg=function(){if(Gg&&!Vf(Hg)){var a="."+Ig.domain;try{for(;2<a.split(".").length&&!Vf(Hg);)Ig.domain=a=a.substr(a.indexOf(".")+1),Hg=window.parent}catch(b){}Vf(Hg)||(Hg=window)}return Hg};
hba=function(a){var b=g.Ja("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.v.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Lg(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,Mg[c])c=Mg[c];else{c=String(c);if(!Mg[c]){var f=/function\s+([^\(]+)/m.exec(c);Mg[c]=f?f[1]:"[Anonymous]"}c=Mg[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 a};
Lg=function(a,b){b||(b={});b[Ng(a)]=!0;var c=a.stack||"",d=a.R4;d&&!b[Ng(d)]&&(c+="\nCaused by: ",d.stack&&0==d.stack.indexOf(d.toString())||(c+="string"===typeof d?d:d.message+"\n"),c+=Lg(d,b));return c};
Ng=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
Og=function(a){this.u=a||{cookie:""}};
Pg=function(a){a=(a.u.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=xc(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}};
Qg=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.fe(b.innerWidth,b.innerHeight)).round():te(b||window).round()}catch(d){return new g.fe(-12245933,-12245933)}};
Rg=function(a,b,c){try{a&&(b=b.top);var d=Qg(a,b,void 0===c?!1:c),e=we(le(b.document).u);if(-12245933==d.width){var f=d.width;var h=new ag(f,f,f,f)}else h=new ag(e.y,e.x+d.width,e.y+d.height,e.x);return h}catch(l){return new ag(-12245933,-12245933,-12245933,-12245933)}};
iba=function(a){var b={};g.Cb(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.B(e)||(b[d]=null)):b[d]=c});
naa(a,function(c){return null===b[c.event]})};
Sg=function(){this.uc=0;this.u=!1;this.B=-1;this.Fm=!1;this.kg=0};
Tg=function(){this.B=null;this.u=!1};
Ug=function(a){Tg.call(this);this.C=a};
Vg=function(){Tg.call(this)};
Wg=function(){Tg.call(this)};
Xg=function(){this.u={};this.B=!0;this.C={}};
Yg=function(a,b,c){a.u[b]||(a.u[b]=new Ug(c));return a.u[b]};
jba=function(a){a.u.queryid||(a.u.queryid=new Wg)};
Zg=function(a,b,c){(a=a.u[b])&&a.setValue(c)};
$g=function(a,b){if(Nb(a.C,b))return a.C[b];var c=a.u[b];if(c)return c.getValue()};
ah=function(a){var b={},c=g.Fb(a.u,function(d){return d.u});
g.Eb(c,function(d,e){var f=void 0!==a.C[e]?String(a.C[e]):d.u&&null!==d.B?String(d.B):"";0<f.length&&(b[e]=f)},a);
return b};
kba=function(a){a=ah(a);var b=[];g.Eb(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
lba=function(){this.u=this.jl=null};
bh=function(){};
dh=function(){if(!ch())throw Error();};
ch=function(){return!(!eh||!eh.performance)};
fh=function(a){return{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
gh=function(){};
jh=function(a){a=a||hh();for(var b=new ih(g.v.location.href,g.v,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&mba.test(f.url)&&(c=f);if(f.url&&!f.Yy){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new nba(b,e,c)};
hh=function(){var a=g.v,b=[],c=null;do{var d=a;if(Vf(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new ih(e||"",d));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.v;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.Yy=!0);return b};
nba=function(a,b,c){this.u=a;this.B=b;this.C=c};
ih=function(a,b,c){this.url=a;this.yf=b;this.Yy=!!c;this.depth=null};
kh=function(){this.C="&";this.B={};this.D=0;this.u=[]};
lh=function(a,b){var c={};c[a]=b;return[c]};
nh=function(a,b,c,d,e){var f=[];Wf(a,function(h,l){var m=mh(h,b,c,d,e);m&&f.push(l+"="+m)});
return f.join(b)};
mh=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(mh(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(nh(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
pba=function(a,b,c){b=b+"//pagead2.googlesyndication.com"+c;var d=oba(a)-c.length;if(0>d)return"";a.u.sort(function(p,r){return p-r});
c=null;for(var e="",f=0;f<a.u.length;f++)for(var h=a.u[f],l=a.B[h],m=0;m<l.length;m++){if(!d){c=null==c?h:c;break}var n=nh(l[m],a.C,",$");if(n){n=e+n;if(d>=n.length){d-=n.length;b+=n;e=a.C;break}c=null==c?h:c}}a="";null!=c&&(a=e+"trn="+c);return b+a+""};
oba=function(a){var b=1,c;for(c in a.B)b=c.length>b?c.length:b;return 3997-b-a.C.length-1};
oh=function(a,b){this.u=a;this.depth=b};
rba=function(){function a(l,m){return null==l?m:l}
var b=hh(),c=Math.max(b.length-1,0),d=jh(b);b=d.u;var e=d.B,f=d.C,h=[];f&&h.push(new oh([f.url,f.Yy?2:0],a(f.depth,1)));e&&e!=f&&h.push(new oh([e.url,2],0));b.url&&b!=f&&h.push(new oh([b.url,0],a(b.depth,c)));d=g.Mc(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=Zaa(b.url))&&d.push([new oh([e,1],a(b.depth,c))]);d.push([]);return g.Mc(d,function(l){return qba(c,l)})};
qba=function(a,b){g.ph(b,function(e){return 0<=e.depth});
var c=g.qh(b,function(e,f){return Math.max(e,f.depth)},-1),d=raa(c+2);
d[0]=a;g.Cb(b,function(e){return d[e.depth+1]=e.u});
return d};
sba=function(){var a=rba();return g.Mc(a,function(b){return mh(b)})};
rh=function(){this.B=new gh;this.u=ch()?new dh:new bh};
tba=function(){sh();var a=eh.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof eh.setInterval&&"function"===typeof eh.clearInterval&&"function"===typeof eh.setTimeout&&"function"===typeof eh.clearTimeout)};
th=function(a){sh();var b=Kg()||eh;b.google_image_requests||(b.google_image_requests=[]);var c=b.document.createElement("img");c.src=a;b.google_image_requests.push(c)};
uh=function(){sh();return sba()};
vh=function(){};
sh=function(){return vh.getInstance().getContext()};
wh=function(a){g.Hf(this,a,null,null)};
uba=function(a){this.D=a;this.u=-1;this.B=this.C=0};
xh=function(a,b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];if(-1<a.u)return b.apply(null,g.ma(d));try{return a.u=a.D.u.now(),b.apply(null,g.ma(d))}finally{a.C+=a.D.u.now()-a.u,a.u=-1,a.B+=1}}};
vba=function(a,b){this.B=a;this.C=b;this.u=new uba(a)};
wba=function(){};
Ah=function(){this.C=void 0;this.B=this.J=0;this.F=-1;this.wb=new Xg;Yg(this.wb,"mv",yh).u=!0;Yg(this.wb,"omid",zh);Yg(this.wb,"epoh",zh).u=!0;Yg(this.wb,"epph",zh).u=!0;Yg(this.wb,"umt",zh).u=!0;Yg(this.wb,"phel",zh).u=!0;Yg(this.wb,"phell",zh).u=!0;Yg(this.wb,"oseid",xba).u=!0;var a=this.wb;a.u.sloi||(a.u.sloi=new Vg);a.u.sloi.u=!0;Yg(this.wb,"xdi",zh).u=!0;Yg(this.wb,"amp",zh).u=!0;Yg(this.wb,"prf",zh).u=!0;Yg(this.wb,"gtx",zh).u=!0;Yg(this.wb,"mvp_lv",zh).u=!0;Yg(this.wb,"vcm",zh).u=!0;Yg(this.wb,
"dov",yh).u=!0;Yg(this.wb,"mpv",zh).u=!0;Yg(this.wb,"ssmol",zh).u=!0;Yg(this.wb,"zocl",zh).u=!0;this.u=new vba(sh(),this.wb);this.D=!1;this.flags=new wba};
yba=function(){var a="https:";eh&&eh.location&&"http:"===eh.location.protocol&&(a="http:");this.B=a;this.u=.01;this.C=Math.random()};
Bh=function(a,b,c,d,e){if((d?a.C:Math.random())<(e||a.u))try{if(c instanceof kh)var f=c;else f=new kh,Wf(c,function(l,m){var n=f,p=n.D++,r=lh(m,l);n.u.push(p);n.B[p]=r});
var h=pba(f,a.B,"/pagead/gen_204?id="+b+"&");h&&th(h)}catch(l){}};
Ch=function(){var a=g.v.performance;return a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.A()};
Eh=function(){var a=void 0===a?g.v:a;return(a=a.performance)&&a.now?a.now():null};
zba=function(a,b){var c=Eh()||Ch();this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.slotId=void 0};
Gh=function(){var a=Kg();this.events=[];this.B=a||g.v;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.u=Fh()||(null!=b?b:1>Math.random())};
Ih=function(a){a&&Hh&&Fh()&&(Hh.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Hh.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Lh=function(){var a=Jh;this.F=Kh;this.D="jserror";this.C=!0;this.u=null;this.J=this.B;this.gb=void 0===a?null:a};
Oh=function(a,b,c,d){return xh(Ah.getInstance().u.u,function(){try{if(a.gb&&a.gb.u){var e=a.gb.start(b.toString(),3);var f=c();a.gb.end(e)}else f=c()}catch(m){var h=a.C;try{Ih(e);var l=new Mh(Nh(m));h=a.J(b,l,void 0,d)}catch(n){a.B(217,n)}if(!h)throw m;}return f})()};
Qh=function(a,b,c){var d=Ph;return xh(Ah.getInstance().u.u,function(e){for(var f=[],h=0;h<arguments.length;++h)f[h-0]=arguments[h];return Oh(d,a,function(){return b.apply(void 0,f)},c)})};
Nh=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};
Mh=function(a){Of.call(this,Error(a),{message:a})};
Rh=function(){var a=Kg();a&&"undefined"!=typeof a.google_measure_js_timing&&(a.google_measure_js_timing||Jh.disable())};
Aba=function(a){Ph.u=function(b){g.Cb(a,function(c){c(b)})}};
Th=function(a,b){return Oh(Ph,a,b,void 0)};
Uh=function(a,b){return Qh(a,b,void 0)};
Vh=function(a,b,c,d){Ph.B(a,b,c,d)};
Wh=function(){return Date.now()-Bba};
Cba=function(){var a=Ah.getInstance().C,b=0<=Xh?Wh()-Xh:-1,c=Yh?Wh()-Zh:-1,d=0<=$h?Wh()-$h:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Vh(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};
ai=function(a,b,c){var d=new ag(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.u=d;this.B=c};
bi=function(a,b,c,d,e,f,h){this.D=a;this.C=b;this.J=c;this.u=d;this.F=e;this.B=f;this.K=h};
ci=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,Vf(a)&&(c=a,b=d);return{yf:c,level:b}};
di=function(a){var b=a!==a.top,c=a.top===ci(a).yf,d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),Ib(Dba,function(h){return"function"===typeof f[h]})||(e=1));
return{Xh:f,compatibility:e,gS:d}};
Eba=function(a){return(a=a.document)&&"function"===typeof a.elementFromPoint};
ei=function(a,b,c,d){var e=void 0===e?!1:e;c=Qh(d,c,void 0);Qf(a,b,c,{capture:e})};
fi=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
gi=function(a){return new ag(a.top,a.right,a.bottom,a.left)};
hi=function(a){var b=a.top||0,c=a.left||0;return new ag(b,c+(a.width||0),b+(a.height||0),c)};
ii=function(a){return null!=a&&0<=a&&1>=a};
Fba=function(){var a=g.Tc;return a?ji("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return wc(a,b)})||wc(a,"OMI/")&&!wc(a,"XiaoMi/")?!0:wc(a,"Presto")&&wc(a,"Linux")&&!wc(a,"X11")&&!wc(a,"Android")&&!wc(a,"Mobi"):!1};
ki=function(){this.C=!Vf(eh.top);this.isMobileDevice=Sf()||Tf();var a=hh();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.vd(a[a.length-1].url)||"":"";this.u=new ag(0,0,0,0);this.D=new g.fe(0,0);this.F=new g.fe(0,0);this.K=new ag(0,0,0,0);this.J=0;this.P=!1;this.B=!(!eh||!di(eh).Xh);this.update(eh)};
li=function(a,b){b&&b.screen&&(a.D=new g.fe(b.screen.width,b.screen.height))};
mi=function(a,b){var c=a.u?new g.fe(bg(a.u),a.u.getHeight()):new g.fe(0,0);var d=b;d=void 0===d?eh:d;null!==d&&d!=d.top&&(d=d.top);var e=0,f=0;try{var h=d.document,l=h.body,m=h.documentElement;if("CSS1Compat"==h.compatMode&&m.scrollHeight)e=m.scrollHeight!=c.height?m.scrollHeight:m.offsetHeight,f=m.scrollWidth!=c.width?m.scrollWidth:m.offsetWidth;else{var n=m.scrollHeight,p=m.scrollWidth,r=m.offsetHeight,t=m.offsetWidth;m.clientHeight!=r&&(n=l.scrollHeight,p=l.scrollWidth,r=l.offsetHeight,t=l.offsetWidth);
n>c.height?n>r?(e=n,f=p):(e=r,f=t):n<r?(e=n,f=p):(e=r,f=t)}var w=new g.fe(f,e)}catch(x){w=new g.fe(-12245933,-12245933)}a.F=w};
ni=function(){var a=ki.getInstance();if(0<a.J||a.P)return!0;a=sh().B.isVisible();var b=0===fh(Ig);return a||b};
oi=function(a){this.C=a;this.B=0;this.u=null};
pi=function(a,b,c){this.yf=a;this.na=void 0===c?"na":c;this.D=[];this.Vd=!1;this.C=new ai(-1,!0,this);this.u=this;this.K=b;this.S=this.la=this.P=!1;this.da="uk";this.fa=!1;this.F=!0};
ri=function(a,b,c){if(!a.S||(void 0===c?0:c))a.S=!0,a.da=b,a.K=0,a.u!=a||qi(a)};
si=function(a,b){g.jb(a.D,b)||(a.D.push(b),b.co(a.u),b.Xk(a.C),b.pj()&&(a.P=!0))};
ti=function(a){a=a.u;a.PE();a.OE();var b=ki.getInstance();b.K=Rg(!1,a.yf,b.isMobileDevice);a.QL();a.C.u=a.vD()};
ui=function(a){a.P=a.D.length?ji(a.D,function(b){return b.pj()}):!1};
vi=function(a){var b=g.rb(a.D);g.Cb(b,function(c){c.Xk(a.C)})};
qi=function(a){var b=g.rb(a.D);g.Cb(b,function(c){c.co(a.u)});
a.u!=a||vi(a)};
wi=function(a,b,c,d){this.element=a;this.u=new ag(0,0,0,0);this.X=null;this.D=new ag(0,0,0,0);this.B=b;this.wb=c;this.da=d;this.Y=!1;this.timestamp=-1;this.K=new bi(b.C,this.u,new ag(0,0,0,0),0,0,Wh(),0)};
xi=function(a){this.F=!1;this.u=a;this.D=g.Ka};
yi=function(a,b,c){this.C=void 0===c?0:c;this.B=a;this.u=null==b?"":b};
Gba=function(a){switch(Math.trunc(a.C)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Ci=function(a,b){return a.C<b.C?!0:a.C>b.C?!1:a.B<b.B?!0:a.B>b.B?!1:typeof a.u<typeof b.u?!0:typeof a.u>typeof b.u?!1:a.u<b.u};
Di=function(){this.C=0;this.u=[];this.B=!1};
Hba=function(a,b){(0,g.Cb)(b.u,function(c){a.add(c.getParameter(),c.u,Gba(c))})};
Ei=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Wf(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
Fi=function(a){var b=Iba;a.B&&(g.zb(a.u,function(c,d){return Ci(d,c)?1:Ci(c,d)?-1:0}),a.B=!1);
return(0,g.qh)(a.u,function(c,d){var e=b(d);return""+c+(""!=c&&""!=e?"&":"")+e},"")};
Iba=function(a){var b=a.getParameter();a=a.u;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.jb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Hi=function(a){var b=void 0===b?!0:b;this.u=new Di;void 0!==a&&Hba(this.u,a);b&&this.u.add("v",Gi,-16)};
Jba=function(a){var b=[],c=[];g.Eb(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d){Array.isArray(d)&&(d=d.join(","));var f=[e,"=",d].join("");switch(e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(f);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(f);break;default:b.push(f)}}});
return b.concat(c)};
Ii=function(){if(Gi&&"unreleased"!==Gi)return Gi};
Ji=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Ii();a=c?a+"&v="+encodeURIComponent(c):a}a=a.substring(0,b);th(a)};
Ki=function(){this.u=0};
Kba=function(a,b,c){(0,g.Cb)(a.C,function(d){var e=a.u;if(!d.u&&(d.C(b,c),d.D())){d.u=!0;var f=d.B(),h=new Di;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.F);d=Ki.getInstance();h.add("i",d.u++);h.add("adk",e);Ei(h,f);e=new Hi(h);Ji(e)}})};
Li=function(){this.B=this.C=this.D=this.u=0};
Mi=function(a){this.B=a=void 0===a?Lba:a;this.u=g.Mc(this.B,function(){return new Li})};
Oi=function(a,b){return Ni(a,function(c){return c.u},void 0===b?!0:b)};
Qi=function(a,b){return Pi(a,b,function(c){return c.u})};
Ri=function(a,b){return Ni(a,function(c){return c.C},void 0===b?!0:b)};
Si=function(a,b){return Pi(a,b,function(c){return c.C})};
Ti=function(a,b){return Pi(a,b,function(c){return c.B})};
Wi=function(a){g.Cb(a.u,function(b){b.B=0})};
Ni=function(a,b,c){a=g.Mc(a.u,function(d){return b(d)});
return c?a:Mba(a)};
Pi=function(a,b,c){var d=g.gb(a.B,function(e){return b<=e});
return-1==d?0:c(a.u[d])};
Mba=function(a){return g.Mc(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Xi=function(){this.B=new Mi;this.na=new Li;this.Y=this.K=-1;this.Xb=1E3;this.Ma=new Mi([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.ra=this.da=-1};
Yi=function(a,b){return Ri(a.B,void 0===b?!0:b)};
$i=function(a,b){var c=Zi(b);return 0===c?0:Zi(a)/c};
Zi=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Nba=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.Ie(a)||a){var d=je(a),e=d&&ye(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
Oba=function(a,b,c){if(!a||!b)return!1;b=cg(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;var d=Kg();Vf(d.top)&&d.top&&d.top.document&&(d=d.top);if(!Eba(d))return!1;a=d.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=je(c))&&b.defaultView&&b.defaultView.frameElement)&&Nba(b,a);d=a===c;a=!d&&a&&Oe(a,function(e){return e===c});
return!(b||d||a)};
Pba=function(a,b,c,d){return ki.getInstance().C?!1:0>=bg(a)||0>=a.getHeight()?!0:c&&d?Th(208,function(){return Oba(a,b,c)}):!1};
aj=function(a,b,c){g.B.call(this);this.position=Qba.clone();this.Nu=this.Wt();this.jz=-2;this.uS=Date.now();this.dI=-1;this.lastUpdateTime=b;this.Au=null;this.zt=!1;this.Av=null;this.opacity=-1;this.requestSource=c;this.oI=this.kz=g.Ka;this.Sf=new lba;this.Sf.jl=a;this.Sf.u=a;this.mo=!1;this.lm={Iz:null,Gz:null};this.NH=!0;this.hs=null;this.eo=this.wL=!1;Ah.getInstance().J++;this.Ee=this.py();this.cI=-1;this.Bc=null;this.sL=!1;a=this.wb=new Xg;Yg(a,"od",Rba);Yg(a,"opac",zh).u=!0;Yg(a,"sbeos",zh).u=
!0;Yg(a,"prf",zh).u=!0;Yg(a,"mwt",zh).u=!0;Yg(a,"iogeo",zh);(a=this.Sf.jl)&&a.getAttribute&&!/-[a-z]/.test("googleAvInapp")&&(Sba&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+qd()):a.getAttribute("data-"+qd()))&&(ki.getInstance().B=!0);1==this.requestSource?Zg(this.wb,"od",1):Zg(this.wb,"od",0)};
bj=function(a,b){if(b!=a.eo){a.eo=b;var c=ki.getInstance();b?c.J++:0<c.J&&c.J--}};
cj=function(a,b){if(a.Bc){if(b.getName()===a.Bc.getName())return;a.Bc.dispose();a.Bc=null}var c=b.create(a.Sf.u,a.wb,a.pj());if(c=null!=c&&c.oz()?c:null)a.Bc=c};
dj=function(a,b,c){if(!a.Au||-1==a.lastUpdateTime||-1===b.B||-1===a.Au.B)return 0;a=b.B-a.Au.B;return a>c?0:a};
Tba=function(a,b,c){if(a.Bc){a.Bc.Dk();var d=a.Bc.K,e=d.D,f=e.u;if(null!=d.J){var h=d.C;a.Av=new g.de(h.left-f.left,h.top-f.top)}f=a.iw()?Math.max(d.u,d.F):d.u;h={};null!==e.volume&&(h.volume=e.volume);e=a.qD(d);a.Au=d;a.oa(f,b,c,!1,h,e,d.K)}};
Uba=function(a){if(a.zt&&a.hs){var b=1==$g(a.wb,"od"),c=ki.getInstance().u,d=a.hs,e=a.Bc?a.Bc.getName():"ns",f=new g.fe(bg(c),c.getHeight());c=a.iw();a={kS:e,Av:a.Av,OS:f,iw:c,uc:a.Ee.uc,LS:b};if(b=d.B){b.Dk();e=b.K;f=e.D.u;var h=null,l=null;null!=e.J&&f&&(h=e.C,h=new g.de(h.left-f.left,h.top-f.top),l=new g.fe(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.u,e.F):e.u;c={kS:b.getName(),Av:h,OS:l,iw:c,LS:!1,uc:e}}else c=null;c&&Kba(d,a,c)}};
Vba=function(a,b,c){b&&(a.kz=b);c&&(a.oI=c)};
ej=function(){};
gj=function(a){if(a instanceof ej)return a;if("function"==typeof a.wj)return a.wj(!1);if(g.Na(a)){var b=0,c=new ej;c.next=function(){for(;;){if(b>=a.length)throw fj;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
g.hj=function(a,b,c){if(g.Na(a))try{g.Cb(a,b,c)}catch(d){if(d!==fj)throw d;}else{a=gj(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==fj)throw d;}}};
Wba=function(a){if(g.Na(a))return g.rb(a);a=gj(a);var b=[];g.hj(a,function(c){b.push(c)});
return b};
Xba=function(){this.D=this.u=this.C=this.B=this.F=0};
Yba=function(a){var b={};b=(b.ptlt=g.A()-a.F,b);var c=a.B;c&&(b.pnk=c);(c=a.C)&&(b.pnc=c);(c=a.D)&&(b.pnmm=c);(a=a.u)&&(b.pns=a);return b};
ij=function(){Sg.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
jj=function(a){return ii(a.volume)&&.1<=a.volume};
Zba=function(){var a={};this.B=(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.u={};for(var b in this.B)0<this.B[b][1]&&(this.u[b]=0);this.C=0};
kj=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];0<d&&0==a.u[b]&&(a.u[b]=1)};
$ba=function(a){var b=g.Lb(a.B),c=0,d;for(d in a.u)g.jb(b,d)&&1==a.u[d]&&(c+=a.B[d][1],a.u[d]=2);return c};
aca=function(a){var b=0,c;for(c in a.u){var d=a.u[c];if(1==d||2==d)b+=a.B[c][1]}return b};
lj=function(){this.u=this.B=0};
mj=function(){Xi.call(this);this.C=new Li;this.la=this.S=this.fa=0;this.P=-1;this.Ha=new Li;this.F=new Li;this.u=new Mi;this.J=this.D=-1;this.X=new Li;this.Xb=2E3;this.ga=new lj;this.Lb=new lj;this.Ba=new lj};
nj=function(a,b,c){var d=a.la;Yh||c||-1==a.P||(d+=b-a.P);return d};
bca=function(){this.u=!1};
pj=function(a,b){if(!a.u){if(a.C(b)){var c=oj(a.P,a.D,b);a.B|=c;c=0==c}else c=!1;a.u=c}};
qj=function(a,b){this.u=!1;this.D=a;this.P=b;this.B=0};
rj=function(a,b,c,d){wi.call(this,a,b,c,d)};
sj=function(a,b,c){wi.call(this,null,a,b,c);this.J=a.isActive();this.F=0};
tj=function(a){return[a.top,a.left,a.bottom,a.right]};
uj=function(a,b,c,d,e,f){e=void 0===e?null:e;f=void 0===f?[]:f;aj.call(this,b,c,d);this.Kx=0;this.He={};this.se=new Zba;this.FI={};this.ff="";this.Po=null;this.Za=!1;this.u=[];this.C=e;this.K=f;this.F=null;this.D=-1;this.na=this.S=void 0;this.Y=this.X=0;this.ga=-1;this.Pa=this.Ha=!1;this.ra=this.P=this.B=this.xp=this.Ta=0;new Mi;this.la=this.Ba=0;this.Ma=-1;this.je=0;this.da=g.Ka;this.fa=[this.Wt()];this.qb=2;this.nn={};this.nn.pause="p";this.nn.resume="r";this.nn.skip="s";this.nn.mute="m";this.nn.unmute=
"um";this.nn.exitfullscreen="ef";this.J=null;this.rH=!1};
vj=function(a){0!=a.je&&(a.je=3)};
wj=function(a){!a.mo&&a.C&&0!=a.je&&($g(Ah.getInstance().wb,"mpv")?a.rH&&a.Bc&&2===a.Bc.Oi()&&pj(a.C,a):pj(a.C,a))};
xj=function(a){return void 0===a?a:Number(a)?fi(a,3):0};
yj=function(a,b){return a.fa[null!=b&&b<a.fa.length?b:a.fa.length-1]};
zj=function(a){var b=!!$g(Ah.getInstance().wb,"umt");return a.S||!b&&!a.na?0:1};
cca=function(a,b){if(2==a.je)var c=0;else-1==a.lastUpdateTime?c=0:(c=b-a.lastUpdateTime,c=c>Math.max(1E4,a.D/3)?0:c);var d=a.da(a)||{};d=void 0!==d.currentTime?d.currentTime:a.X;var e=d-a.X,f=0;0<=e?(a.Y+=c,a.la+=Math.max(c-e,0),f=Math.min(e,a.Y)):a.Ba+=Math.abs(e);0!=e&&(a.Y=0);-1==a.Ma&&0<e&&(a.Ma=0<=$h?Wh()-$h:-1);a.X=d;return f};
dca=function(a,b){ji(a.K,function(c){return c.D==b.D})||a.K.push(b)};
Aj=function(a,b,c){return 15E3<=b?!0:a.Ha?(void 0===c?0:c)?!0:0<a.D?b>=a.D/2:0<a.ga?b>=a.ga:!1:!1};
eca=function(a){var b=fi(a.Ee.uc,2),c=a.se.C,d=a.Ee,e=yj(a),f=xj(e.D),h=xj(e.J),l=xj(d.volume),m=fi(e.K,2),n=fi(e.Y,2),p=fi(d.uc,2),r=fi(e.da,2),t=fi(e.ra,2);d=fi(d.kg,2);a=a.Qk().clone();a.round();e=Yi(e,!1);return{NS:b,Iq:c,Ou:f,Ku:h,Op:l,Pu:m,Lu:n,uc:p,Qu:r,Mu:t,kg:d,position:a,xv:e}};
Cj=function(a,b){Bj(a.u,b,function(){return{NS:0,Iq:void 0,Ou:-1,Ku:-1,Op:-1,Pu:-1,Lu:-1,uc:-1,Qu:-1,Mu:-1,kg:-1,position:void 0,xv:[]}});
a.u[b]=eca(a)};
Bj=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Fj=function(a,b,c){var d=a.FI[b];if(null!=d)return d;d=fca(a,b);var e=Pb(Dj,function(f){return f==b});
a=Ej(a,d,d,c,gca[Dj[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
Gj=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Ej=function(a,b,c,d,e){if(a.mo)return{"if":0};var f=a.Qk().clone();f.round();var h=ki.getInstance(),l=Ah.getInstance(),m=a.Vf(),n=a.Bc?a.Bc.getName():"ns",p={};p["if"]=h.C?1:void 0;p.sdk=a.F?a.F:void 0;p.t=a.uS;p.p=[f.top,f.left,f.bottom,f.right];if(f=a.Bc?a.Bc.X:null)f=f.clone(),f.round(),p.cp=tj(f);p.tos=Oi(m.B,!1);p.mtos=Yi(m);p.mcvt=m.na.C;p.ps=void 0;p.vht=nj(m,Wh(),2==a.je);p.mut=m.Ha.C;p.a=xj(a.Ee.volume);p.mv=xj(m.J);p.fs=a.eo?1:0;p.ft=m.X.u;p.at=m.F.u;p.as=.1<=m.D?1:0;p.atos=Oi(m.u);p.ssb=
Oi(m.Ma,!1);p.amtos=Ri(m.u);p.uac=a.Ta;p.vpt=m.C.u;"nio"==n&&(p.nio=1,p.avms="nio");p.gmm="4";p.gdr=Aj(a,m.C.u,!0)?1:0;p.efpf=a.qb;if("gsv"==n||"nis"==n)n=a.Bc,0<n.F&&(p.nnut=n.F);p.tcm=zj(a);p.nmt=a.Ba;p.bt=a.la;p.pst=a.Ma;p.vpaid=a.S;p.dur=a.D;p.vmtime=a.X;p.is=a.se.C;1<=a.u.length&&(p.i0=a.u[0].Iq,p.a0=[a.u[0].Op],p.c0=[a.u[0].uc],p.ss0=[a.u[0].kg],n=a.u[0].position,p.p0=n?tj(n):void 0);2<=a.u.length&&(p.i1=a.u[1].Iq,p.a1=Gj(a.u[1].Ou,a.u[1].Op,a.u[1].Ku),p.c1=Gj(a.u[1].Pu,a.u[1].uc,a.u[1].Lu),
p.ss1=Gj(a.u[1].Qu,a.u[1].kg,a.u[1].Mu),n=a.u[1].position,p.p1=n?tj(n):void 0,p.mtos1=a.u[1].xv);3<=a.u.length&&(p.i2=a.u[2].Iq,p.a2=Gj(a.u[2].Ou,a.u[2].Op,a.u[2].Ku),p.c2=Gj(a.u[2].Pu,a.u[2].uc,a.u[2].Lu),p.ss2=Gj(a.u[2].Qu,a.u[2].kg,a.u[2].Mu),n=a.u[2].position,p.p2=n?tj(n):void 0,p.mtos2=a.u[2].xv);4<=a.u.length&&(p.i3=a.u[3].Iq,p.a3=Gj(a.u[3].Ou,a.u[3].Op,a.u[3].Ku),p.c3=Gj(a.u[3].Pu,a.u[3].uc,a.u[3].Lu),p.ss3=Gj(a.u[3].Qu,a.u[3].kg,a.u[3].Mu),n=a.u[3].position,p.p3=n?tj(n):void 0,p.mtos3=a.u[3].xv);
p.cs=aca(a.se);b&&(p.ic=$ba(a.se),p.dvpt=m.C.B,p.dvs=Ti(m.B,.5),p.dfvs=Ti(m.B,1),p.davs=Ti(m.u,.5),p.dafvs=Ti(m.u,1),c&&(m.C.B=0,Wi(m.B),Wi(m.u)),a.Im()&&(p.dtos=m.fa,p.dav=m.S,p.dtoss=a.Kx+1,c&&(m.fa=0,m.S=0,a.Kx++)),p.dat=m.F.B,p.dft=m.X.B,c&&(m.F.B=0,m.X.B=0));p.ps=[h.F.width,h.F.height];p.bs=[bg(h.u),h.u.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.xp&&(p.vds=a.xp);if(0<a.K.length||a.C)b=g.rb(a.K),a.C&&b.push(a.C),p.pings=g.Mc(b,function(r){return r.toString()});
b=g.Mc(g.He(a.K,function(r){return r.F()}),function(r){return r.getId()});
oaa(b);p.ces=b;a.B&&(p.vmer=a.B);a.P&&(p.vmmk=a.P);a.ra&&(p.vmiec=a.ra);p.avms=a.Bc?a.Bc.getName():"ns";a.Bc&&g.Xb(p,a.Bc.Nk());d?(p.c=fi(a.Ee.uc,2),p.ss=fi(a.Ee.kg,2)):p.tth=Wh()-Hj;p.mc=fi(m.Y,2);p.nc=fi(m.K,2);p.mv=xj(m.J);p.nv=xj(m.D);p.lte=fi(a.jz,2);d=yj(a,e);Yi(m);p.qmtos=Yi(d);p.qnc=fi(d.K,2);p.qmv=xj(d.J);p.qnv=xj(d.D);p.qas=.1<=d.D?1:0;p.qi=a.ff;p.avms||(p.avms="geo");p.psm=m.ga.u;p.psv=m.ga.getValue();p.psfv=m.Lb.getValue();p.psa=m.Ba.getValue();l=kba(l.wb);l.length&&(p.veid=l);a.J&&g.Xb(p,
Yba(a.J));return p};
fca=function(a,b){if(g.jb(hca,b))return!0;var c=a.He[b];return void 0!==c?(a.He[b]=!0,!c):!1};
jca=function(){this.u={};var a=ye();Ij(this,a,document);var b=ica();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Ij(this,c,c.document);Ij(this,a.top,a.top.document)}}catch(d){}};
ica=function(){var a=document.documentElement;try{if(!Vf(ye().top))return"2";var b=[],c=ye(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"}};
Ij=function(a,b,c){ei(c,"mousedown",function(){return kca(a)},301);
ei(b,"scroll",function(){return lca(a)},302);
ei(c,"touchmove",function(){return mca(a)},303);
ei(c,"mousemove",function(){return nca(a)},304);
ei(c,"keydown",function(){return oca(a)},305)};
kca=function(a){g.Eb(a.u,function(b){1E5<b.C||++b.C})};
lca=function(a){g.Eb(a.u,function(b){1E5<b.u||++b.u})};
mca=function(a){g.Eb(a.u,function(b){1E5<b.u||++b.u})};
oca=function(a){g.Eb(a.u,function(b){1E5<b.B||++b.B})};
nca=function(a){g.Eb(a.u,function(b){1E5<b.D||++b.D})};
g.Kj=function(a){var b=[];Jj(new pca,a,b);return b.join("")};
pca=function(){};
Jj=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),Jj(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),Lj(d,c),c.push(":"),Jj(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Lj(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);}}};
Lj=function(a,b){b.push('"',a.replace(qca,function(c){var d=Mj[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).substr(1),Mj[c]=d);return d}),'"')};
Nj=function(){this.u=[];this.B=[]};
Oj=function(a,b){return g.fb(a.u,function(c){return c.ff==b})};
Pj=function(a,b){return b?g.fb(a.u,function(c){return c.Sf.jl==b}):null};
rca=function(a,b){return g.fb(a.B,function(c){return 2==c.Mi()&&c.ff==b})};
Tj=function(){var a=Sj;return 0==a.u.length?a.B:0==a.B.length?a.u:g.qb(a.B,a.u)};
Uj=function(a,b){var c=1==b.Mi()?a.u:a.B,d=eb(c,function(e){return e==b});
return-1!=d?(c.splice(d,1),b.Bc&&b.Bc.dr(),b.dispose(),!0):!1};
sca=function(a){var b=Sj;if(Uj(b,a)){switch(a.Mi()){case 0:var c=function(){return null};
case 2:c=function(){return rca(b,a.ff)};
break;case 1:c=function(){return Oj(b,a.ff)}}for(var d=c();d;d=c())Uj(b,d)}};
tca=function(a,b){var c=Sj,d=g.He(a,(void 0===b?0:b)?function(e){return!Oj(c,e.ff)}:function(e){return!Pj(c,e.Sf.jl)});
c.u.push.apply(c.u,g.ma(d))};
Vj=function(a){var b=Sj,c=[];g.Cb(a,function(d){ji(b.u,function(e){return e.Sf.jl===d.Sf.jl&&e.ff===d.ff})||(b.u.push(d),c.push(d))})};
Wj=function(){this.u=this.B=null};
Xj=function(a,b){function c(d,e){b(d,e)}
if(null==a.B)return!1;a.u=g.fb(a.B,function(d){return null!=d&&d.CE()});
a.u&&(a.u.init(c)?ti(a.u.u):b(a.u.u.Wn(),a.u));return null!=a.u};
Yj=function(a){a=uca(a);xi.call(this,a.length?a[a.length-1]:new pi(eh,0));this.C=a;this.B=null};
uca=function(a){if(!a.length)return[];a=(0,g.He)(a,function(c){return null!=c&&c.QE()});
for(var b=1;b<a.length;b++)si(a[b-1],a[b]);return a};
Zj=function(a,b,c,d){wi.call(this,a,b,c,d);this.S=this.P=this.F=this.J=this.C=null};
ak=function(a){return a.C&&a.C.takeRecords?a.C.takeRecords():[]};
wca=function(a){if(!a.element)return!1;var b=a.element,c=a.B.u.yf,d=Ah.getInstance().u.u;a.C=new c.IntersectionObserver(xh(d,function(e){return bk(a,e)}),vca);
d=xh(d,function(){a.C.unobserve(b);a.C.observe(b);bk(a,ak(a))});
c.ResizeObserver?(a.J=new c.ResizeObserver(d),a.J.observe(b)):c.MutationObserver&&(a.F=new g.v.MutationObserver(d),a.F.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.C.observe(b);bk(a,ak(a));return!0};
bk=function(a,b){try{if(b.length){a.P||(a.P=Wh());var c=xca(b),d=Ag(a.element,a.B.u.yf),e=d.x,f=d.y;a.u=new ag(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=gi(c.intersectionRect);a.D=cg(h,a.u.left-h.left,a.u.top-h.top)}}catch(l){a.dr(),Vh(299,l)}};
xca=function(a){return(0,g.qh)(a,function(b,c){return b.time>c.time?b:c},a[0])};
ck=function(a){a=void 0===a?eh:a;xi.call(this,new pi(a,2))};
ek=function(){var a=dk();pi.call(this,eh.top,a,"geo")};
dk=function(){Ah.getInstance();var a=ki.getInstance();return a.C||a.B?0:2};
fk=function(){};
gk=function(){this.done=!1;this.u={BJ:0,UB:0,u5:0,NC:0,Ly:-1,WJ:0,VJ:0,XJ:0};this.F=null;this.J=!1;this.B=null;this.K=0;this.C=new oi(this)};
ik=function(){var a=hk;a.J||(a.J=!0,yca(a,function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];return a.D.apply(a,g.ma(c))}),a.D())};
zca=function(){fk.getInstance();var a=Wj.getInstance();null!=a.u&&a.u.u?ti(a.u.u):ki.getInstance().update(eh)};
jk=function(a,b,c){if(!a.done&&(a.C.cancel(),0!=b.length)){a.B=null;try{zca();var d=Wh(),e=Ah.getInstance();e.F=d;if(null!=Wj.getInstance().u)for(e=0;e<b.length;e++)Tba(b[e],d,c);else Bh(Kh,"",{strategy_not_selected:1,bin:e.B},!0,void 0);for(d=0;d<b.length;d++)Uba(b[d]);++a.u.NC;Aca()}finally{c?g.Cb(b,function(f){f.Ee.uc=0}):a.C.schedule()}}};
yca=function(a,b){if(!a.F){var c=Qh(142,b,void 0);sh();var d;Ig.visibilityState?d="visibilitychange":Ig.mozVisibilityState?d="mozvisibilitychange":Ig.webkitVisibilityState&&(d="webkitvisibilitychange");d&&Qf(Ig,d,c,{capture:!1})&&(a.F=c)}};
kk=function(){var a=Wj.getInstance();if(null!=a.u){var b=a.u;g.Cb(Tj(),function(c){return cj(c,b)})}};
Aca=function(){var a=Ah.getInstance();$g(a.wb,"llp")};
lk=function(a,b){var c=a.K;Yh&&(c+=b-Zh);return c};
Bca=function(a){var b=hk;a=void 0===a?function(){return{}}:a;
Ph.D="av-js";Kh.u=.01;Aba([function(c){var d=Ah.getInstance(),e={};e=(e.bin=d.B,e.type="error",e);d=ah(d.wb);if(!b.B){var f=eh.document,h=0<=Xh?Wh()-Xh:-1,l=Wh();-1==b.u.Ly&&(h=l);var m=ki.getInstance(),n=Ah.getInstance(),p=ah(n.wb),r=Tj();try{if(0<r.length){var t=m.u;t&&(p.bs=[bg(t),t.getHeight()]);var w=m.F;w&&(p.ps=[w.width,w.height]);eh.screen&&(p.scs=[eh.screen.width,eh.screen.height])}else p.url=encodeURIComponent(eh.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,
512)));p.tt=h;p.pt=Xh;p.bin=n.B;void 0!==eh.google_osd_load_pub_page_exp&&(p.olpp=eh.google_osd_load_pub_page_exp);p.deb=[1,b.u.BJ,b.u.UB,b.u.NC,b.u.Ly,0,b.C.B,b.u.WJ,b.u.VJ,b.u.XJ].join("-");p.tvt=lk(b,l);m.B&&(p.inapp=1);if(null!==eh&&eh!=eh.top){0<r.length&&(p.iframe_loc=encodeURIComponent(eh.location.href.substring(0,512)));var x=m.K;p.is=[bg(x),x.getHeight()]}}catch(E){p.error=1}b.B=p}t=g.Ub(b.B);w=Ah.getInstance().u;if(1==$g(w.C,"prf")){x=new wh;f=w.u;h=0;-1<f.u&&(h=f.D.u.now()-f.u);x=Lf(x,
1,f.C+h);f=w.u;x=Lf(x,5,-1<f.u?f.B+1:f.B);x=Lf(x,2,w.B.u.C());x=Lf(x,3,w.B.u.B());x=Lf(x,4,w.B.u.u());w={};f=new g.uf;var y=void 0===y?0:y;h=g.If(x,1);h=null==h?h:+h;y=null==h?y:h;0!==y&&g.Af(f,1,y);y=Jf(x,2);0!==y&&g.zf(f,2,y);y=Jf(x,3);0!==y&&g.zf(f,3,y);y=Jf(x,4);0!==y&&g.zf(f,4,y);y=Jf(x,5);0!==y&&g.wf(f,5,y);y=g.vf(f);y=(w.pf=g.qf(y),w)}else y={};g.Xb(t,y);g.Xb(c,e,d,t,a());if(e=Ii())d={},g.Xb(c,(d.v=encodeURIComponent(e),d))}])};
Cca=function(){var a=mk||eh;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("&")};
nk=function(a){return function(b){return void 0===b[a]?0:b[a]}};
qk=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?pk(c,a):c}}};
rk=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 pk(f,b,c)}};
sk=function(a,b){return function(c){return b(c)?c[a]:void 0}};
tk=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}};
pk=function(a,b,c){return void 0===c||c?g.He(a,function(d,e){return g.jb(b,e)}):g.Mc(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)})};
wk=function(a,b){var c={sv:"884",cb:"j"};c.nas=Sj.u.length;c.msg=a;if(void 0!==b){var d=uk(b);d&&(c.e=vk[d])}return c};
xk=function(a){return kc(a,"custom_metric_viewable")};
uk=function(a){var b=xk(a)?"custom_metric_viewable":a.toLowerCase();return Pb(Dj,function(c){return c==b})};
Dca=function(){this.u=void 0;this.B=!1;this.C=0;this.D=-1;this.F="tos"};
Fca=function(a){try{var b=a.split(",");return b.length>g.Lb(Eca).length?null:(0,g.qh)(b,function(c,d){var e=d.toLowerCase().split("=");if(2!=e.length||void 0===yk[e[0]]||!yk[e[0]](e[1]))throw Error("Entry ("+e[0]+", "+e[1]+") is invalid.");c[e[0]]=e[1];return c},{})}catch(c){return null}};
Gca=function(a,b){if(void 0==a.u)return 0;switch(a.F){case "mtos":return a.B?Si(b.u,a.u):Si(b.B,a.u);case "tos":return a.B?Qi(b.u,a.u):Qi(b.B,a.u)}return 0};
zk=function(a,b,c,d){qj.call(this,b,d);this.K=a;this.J=c};
Ak=function(a){qj.call(this,"fully_viewable_audible_half_duration_impression",a)};
Bk=function(a,b){qj.call(this,a,b)};
Ck=function(){this.B=this.D=this.J=this.F=this.C=this.u=""};
Hca=function(){};
Dk=function(a,b,c,d,e){var f={};if(void 0!==a)if(null!=b)for(var h in b){var l=b[h];h in Object.prototype||null!=l&&(f[h]="function"===typeof l?l(a):a[l])}else g.Xb(f,a);void 0!==c&&g.Xb(f,c);a=Fi(Ei(new Di,f));0<a.length&&void 0!==d&&void 0!==e&&(e=e(a),a+="&"+d+"="+e);return a};
Ek=function(){};
Fk=function(a,b,c){sj.call(this,a,b,c)};
Gk=function(a){a=void 0===a?eh:a;xi.call(this,new pi(a,2))};
Hk=function(a,b,c){sj.call(this,a,b,c)};
Ik=function(a){a=void 0===a?eh:a;xi.call(this,new pi(a,2))};
Jk=function(){pi.call(this,eh,2,"mraid");this.ra=0;this.X=this.Y=!1;this.J=null;this.B=di(this.yf);this.C.u=new ag(0,0,0,0);this.ga=!1};
Kk=function(a,b,c){a.Jl("addEventListener",b,c)};
Nk=function(a){Ah.getInstance().D=!!a.Jl("isViewable");Kk(a,"viewableChange",Ica);"loading"===a.Jl("getState")?Kk(a,"ready",Lk):Mk(a)};
Mk=function(a){"string"===typeof a.B.Xh.AFMA_LIDAR?(a.Y=!0,Jca(a)):(a.B.compatibility=3,a.J="nc",ri(a,"w"))};
Jca=function(a){a.X=!1;var b=1==$g(Ah.getInstance().wb,"rmmt"),c=!!a.Jl("isViewable");(b?!c:1)&&sh().setTimeout(Uh(524,function(){a.X||(Ok(a),Vh(540,Error()),a.J="mt",ri(a,"w"))}),500);
Kca(a);Kk(a,a.B.Xh.AFMA_LIDAR,Pk)};
Kca=function(a){var b=1==$g(Ah.getInstance().wb,"sneio"),c=void 0!==a.B.Xh.AFMA_LIDAR_EXP_1,d=void 0!==a.B.Xh.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.B.Xh.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Xh.AFMA_LIDAR_EXP_1=!b)};
Ok=function(a){a.Jl("removeEventListener",a.B.Xh.AFMA_LIDAR,Pk);a.Y=!1};
Qk=function(a,b){if("loading"===a.Jl("getState"))return new g.fe(-1,-1);var c=a.Jl(b);if(!c)return new g.fe(-1,-1);var d=parseInt(c.width,10);c=parseInt(c.height,10);return isNaN(d)||isNaN(c)?new g.fe(-1,-1):new g.fe(d,c)};
Lk=function(){try{var a=Jk.getInstance();a.Jl("removeEventListener","ready",Lk);Mk(a)}catch(b){Vh(541,b)}};
Pk=function(a,b){try{var c=Jk.getInstance();c.X=!0;var d=a?new ag(a.y,a.x+a.width,a.y+a.height,a.x):new ag(0,0,0,0);var e=Wh(),f=ni();var h=new ai(e,f,c);h.u=d;h.volume=b;c.Xk(h)}catch(l){Vh(542,l)}};
Ica=function(a){var b=Ah.getInstance(),c=Jk.getInstance();a&&!b.D&&(b.D=!0,c.ga=!0,c.J&&ri(c,"w",!0))};
Rk=function(){this.Vd=!1;this.u=null;this.C=new Ek;this.B=null;var a={};this.K=(a.start=this.hL,a.firstquartile=this.cL,a.midpoint=this.eL,a.thirdquartile=this.iL,a.complete=this.aL,a.pause=this.Vz,a.resume=this.DH,a.skip=this.gL,a.viewable_impression=this.Sk,a.mute=this.rp,a.unmute=this.rp,a.fullscreen=this.dL,a.exitfullscreen=this.bL,a.fully_viewable_audible_half_duration_impression=this.Sk,a.measurable_impression=this.Sk,a.abandon=this.Vz,a.engagedview=this.Sk,a.impression=this.Sk,a.creativeview=
this.Sk,a.progress=this.rp,a.custom_metric_viewable=this.Sk,a.bufferstart=this.Vz,a.bufferfinish=this.DH,a);a={};this.X=(a.overlay_resize=this.fL,a.abandon=this.Fy,a.close=this.Fy,a.collapse=this.Fy,a.overlay_unmeasurable_impression=function(b){return Fj(b,"overlay_unmeasurable_impression",ni())},a.overlay_viewable_immediate_impression=function(b){return Fj(b,"overlay_viewable_immediate_impression",ni())},a.overlay_unviewable_impression=function(b){return Fj(b,"overlay_unviewable_impression",ni())},
a.overlay_viewable_end_of_session_impression=function(b){return Fj(b,"overlay_viewable_end_of_session_impression",ni())},a);
Ah.getInstance().B=3;Lca(this);this.S=this.D=!1};
Sk=function(a,b,c,d){b=a.Lr(null,d,!0,b);b.F=c;tca([b],a.D);return b};
Mca=function(a,b,c){iba(b);var d=a.B;g.Cb(b,function(e){var f=g.Mc(e.u,function(h){var l=Fca(h);if(null==l)h=null;else if(h=new Dca,null!=l.visible&&(h.u=l.visible/100),null!=l.audible&&(h.B=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=mc(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);"ms"==n?(h.C=l,h.D=-1):(h.C=-1,h.D=l);h.F=void 0===m?"tos":m}return h});
ji(f,function(h){return null==h})||dca(c,new zk(e.id,e.event,f,d))})};
Nca=function(a){a=a.B;return[new Bk("viewable_impression",a),new Ak(a)]};
Oca=function(){var a=[];ki.getInstance();var b=Ah.getInstance();$g(b.wb,"dov");a.push(ek.getInstance());$g(b.wb,"mvp_lv")&&a.push(Jk.getInstance());b=[new Gk,new Ik];b.push(new Yj(a));b.push(new ck(eh));return b};
Pca=function(a){if(!a.Vd){a.Vd=!0;try{var b=Wh(),c=Ah.getInstance(),d=ki.getInstance();Xh=b;c.C=79463069;"o"!==a.u&&(mk=ci(eh).yf);if(tba()){hk.u.UB=0;hk.u.Ly=Wh()-b;var e=Oca(),f=Wj.getInstance();f.B=e;Xj(f,function(){Tk(a)})?hk.done||(kk(),si(f.u.u,a),ik()):d.C?Tk(a):ik()}else Uk=!0}catch(h){throw Sj.reset(),h;
}}};
Wk=function(a){hk.C.cancel();Vk=a;hk.done=!0};
Xk=function(a){if(a.u)return a.u;var b=Wj.getInstance().u;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u};
Yk=function(a,b,c){if(null==a.B)return b.xp|=4,!1;a=oj(a.B,c,b);b.xp|=a;return 0==a};
Qca=function(){g.Cb(Sj.u,function(a){return wj(a)})};
Tk=function(a){if(!a.S){a.S=!0;var b=[new ck(eh)],c=Wj.getInstance();c.B=b;Xj(c,function(){Wk("i")})?hk.done||(kk(),si(c.u.u,a),ik()):Wk("i")}};
Zk=function(a,b,c){if(!b.Za){var d=Fj(b,"start",ni());a=a.C.u(d).u;var e={id:"lidarv"};e.r=c;e.v="884v";yd(a,function(f,h){return e[f]="mtos"==f||"tos"==f?h:encodeURIComponent(h)});
c=Cca();yd(c,function(f,h){return e[f]=encodeURIComponent(h)});
c="//pagead2.googlesyndication.com/pagead/gen_204?"+Fi(Ei(new Di,e));Ji(c);b.Za=!0}};
$k=function(a,b,c){jk(hk,[a],!ni());Cj(a,c);4!=c&&Bj(a.fa,c,a.Wt);return Fj(a,b,ni())};
Lca=function(a){Bca(function(){var b=al();null!=a.u&&(b.sdk=a.u);var c=Wj.getInstance();null!=c.u&&(b.avms=c.u.getName());return b})};
Rca=function(a,b,c,d){if(a.D)var e=Oj(Sj,b);else e=Pj(Sj,c),null!==e&&e.ff!==b&&(a.eq(e),e=null);e||(b=a.Lr(c,Wh(),!1,b),0==Sj.B.length&&(Ah.getInstance().C=79463069),Vj([b]),e=b,e.F=Xk(a),d&&(e.Po=d));return e};
Sca=function(a,b){b.P=0;for(var c in bl)null==a[c]&&(b.P|=bl[c]);cl(a,"currentTime");cl(a,"duration")};
Tca=function(a){g.Cb(Sj.u,function(b){3==b.je&&a.eq(b)})};
cl=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
al=function(){var a=ki.getInstance(),b={};return b.sv="884",b["if"]=a.C?"1":"0",b.nas=String(Sj.u.length),b};
dl=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
fl=function(a){return!!(1<<a&el)};
Yca=function(){try{Uca()}catch(d){}var a="a=1&b="+el+"&",b=[],c=99;g.Cb(Vca,function(d,e){var f=!1;try{f=d(eh)}catch(h){}b[e/32>>>0]|=f<<e%32});
g.Cb(b,function(d,e){a+=String.fromCharCode(c+e)+"="+(d>>>0).toString(16)+"&"});
c=105;g.Cb(Wca,function(d){var e="false";try{e=d(eh)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
g.Cb(Xca,function(d){var e="";try{e=g.rf(d(eh))}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
Uca=function(){if(!gl){var a=function(){hl=!0;eh.document.removeEventListener("webdriver-evaluate",a,!0)};
eh.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){il=!0;eh.document.removeEventListener("webdriver-evaluate-response",b,!0)};
eh.document.addEventListener("webdriver-evaluate-response",b,!0);gl=!0}};
jl=function(){this.B=-1};
kl=function(){this.B=64;this.u=Array(4);this.F=Array(this.B);this.D=this.C=0;this.reset()};
ll=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.u[0];c=a.u[1];e=a.u[2];var f=a.u[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.u[0]=a.u[0]+b&4294967295;a.u[1]=a.u[1]+(e+(h<<21&4294967295|h>>>11))&4294967295;a.u[2]=a.u[2]+e&4294967295;a.u[3]=a.u[3]+f&4294967295};
ml=function(){this.B=null};
nl=function(a){return function(b){var c=new kl;c.update(b+a);return Saa(c.digest()).slice(-8)}};
ol=function(a,b){this.B=a;this.C=b};
oj=function(a,b,c){var d=a.u(c);if("function"===typeof d){var e={};e=(e.sv="884",e.cb="j",e.e=Zca(b),e);var f=Fj(c,b,ni());g.Xb(e,f);c.FI[b]=f;a=2==c.Mi()?Jba(e).join("&"):a.C.u(e).u;try{return d(c.ff,a,b),0}catch(h){return 2}}else return 1};
Zca=function(a){var b=xk(a)?"custom_metric_viewable":a;a=Pb(Dj,function(c){return c==b});
return vk[a]};
sl=function(a,b,c){ol.call(this,a,b);this.D=c};
tl=function(){Rk.call(this);this.J=null;this.F=!1;this.P={};this.C=new ml};
$ca=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.B&&Array.isArray(c)&&Mca(a,c,b)};
ada=function(a,b,c){var d=Oj(Sj,b);d||(d=c.opt_nativeTime||-1,d=Sk(a,b,Xk(a),d),c.opt_osdId&&(d.Po=c.opt_osdId));return d};
bda=function(a,b,c){var d=Oj(Sj,b);d||(d=Sk(a,b,"n",c.opt_nativeTime||-1));return d};
cda=function(a,b){var c=Oj(Sj,b);c||(c=Sk(a,b,"h",-1));return c};
dda=function(a){Ah.getInstance();switch(Xk(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};
vl=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.Xb(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);if(e.opt_bounds)return a.C.u(wk("ol",d));if(void 0!==d)if(void 0!==uk(d))if(Uk)b=wk("ue",d);else if(Pca(a),"i"==Vk)b=wk("i",d),b["if"]=0;else if(b=a.au(b,e))if(a.D&&3==b.je)b="stopped";else{b:{"i"==Vk&&(b.mo=!0,a.tA());c=e.opt_fullscreen;void 0!==c&&bj(b,!!c);var f;if(c=!ki.getInstance().B)(c=wc(g.Tc,"CrKey")||wc(g.Tc,"PlayStation")||wc(g.Tc,"Roku")||Fba()||wc(g.Tc,"Xbox"))||(c=g.Tc,c=wc(c,"AppleTV")||
wc(c,"Apple TV")||wc(c,"CFNetwork")||wc(c,"tvOS")),c||(c=g.Tc,c=wc(c,"sdk_google_atv_x86")||wc(c,"Android TV")),c=!c;c&&(sh(),c=0===fh(Ig));if(f=c){switch(b.Mi()){case 1:Zk(a,b,"pv");break;case 2:a.jA(b)}Wk("pv")}c=d.toLowerCase();if(f=!f)f=$g(Ah.getInstance().wb,"ssmol")&&"loaded"===c?!1:g.jb(eda,c);if(f&&0==b.je){"i"!=Vk&&(hk.done=!1);f=void 0!==e?e.opt_nativeTime:void 0;$h=f="number"===typeof f?f:Wh();b.zt=!0;var h=ni();b.je=1;b.He={};b.He.start=!1;b.He.firstquartile=!1;b.He.midpoint=!1;b.He.thirdquartile=
!1;b.He.complete=!1;b.He.resume=!1;b.He.pause=!1;b.He.skip=!1;b.He.mute=!1;b.He.unmute=!1;b.He.viewable_impression=!1;b.He.measurable_impression=!1;b.He.fully_viewable_audible_half_duration_impression=!1;b.He.fullscreen=!1;b.He.exitfullscreen=!1;b.Kx=0;h||(b.Vf().P=f);jk(hk,[b],!h)}(f=b.nn[c])&&kj(b.se,f);g.jb(fda,c)&&(b.rH=!0,wj(b));switch(b.Mi()){case 1:var l=xk(c)?a.K.custom_metric_viewable:a.K[c];break;case 2:l=a.X[c]}if(l&&(d=l.call(a,b,e,d),void 0!==d)){e=wk(void 0,c);g.Xb(e,d);d=e;break b}d=
void 0}3==b.je&&(a.D?b.Bc&&b.Bc.dr():a.eq(b));b=d}else b=wk("nf",d);else b=void 0;else Uk?b=wk("ue"):(b=a.au(b,e))?(d=wk(),g.Xb(d,Ej(b,!0,!1,!1)),b=d):b=wk("nf");return"string"===typeof b?a.D&&"stopped"===b?ul:a.C.u(void 0):a.C.u(b)};
wl=function(a){return Ah.getInstance(),"h"!=Xk(a)&&Xk(a),!1};
xl=function(a){var b={};return b.viewability=a.u,b.googleViewability=a.C,b.moatInit=a.F,b.moatViewability=a.J,b.integralAdsViewability=a.D,b.doubleVerifyViewability=a.B,b};
yl=function(a,b,c){c=void 0===c?{}:c;a=vl(tl.getInstance(),b,c,a);return xl(a)};
zl=function(a,b){b=void 0===b?!1:b;var c=tl.getInstance().au(a,{});c?vj(c):b&&(c=tl.getInstance().Lr(null,Wh(),!1,a),c.je=3,Vj([c]))};
Al=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};
gda=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(r){for(var t=h,w=0;64>w;w+=4)t[w/4]=r[w]<<24|r[w+1]<<16|r[w+2]<<8|r[w+3];for(w=16;80>w;w++)r=t[w-3]^t[w-8]^t[w-14]^t[w-16],t[w]=(r<<1|r>>>31)&4294967295;r=e[0];var x=e[1],y=e[2],E=e[3],D=e[4];for(w=0;80>w;w++){if(40>w)if(20>w){var G=E^x&(y^E);var I=1518500249}else G=x^y^E,I=1859775393;else 60>w?(G=x&y|E&(x|y),I=2400959708):(G=x^y^E,I=3395469782);G=((r<<5|r>>>27)&4294967295)+G+D+I+t[w]&4294967295;D=E;E=y;y=(x<<30|x>>>2)&4294967295;x=r;r=G}e[0]=e[0]+r&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+y&4294967295;e[3]=e[3]+E&4294967295;e[4]=e[4]+D&4294967295}
function c(r,t){if("string"===typeof r){r=unescape(encodeURIComponent(r));for(var w=[],x=0,y=r.length;x<y;++x)w.push(r.charCodeAt(x));r=w}t||(t=r.length);w=0;if(0==n)for(;w+64<t;)b(r.slice(w,w+64)),w+=64,p+=64;for(;w<t;)if(f[n++]=r[w++],p++,64==n)for(n=0,b(f);w+64<t;)b(r.slice(w,w+64)),w+=64,p+=64}
function d(){var r=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var w=63;56<=w;w--)f[w]=t&255,t>>>=8;b(f);for(w=t=0;5>w;w++)for(var x=24;0<=x;x-=8)r[t++]=e[w]>>x&255;return r}
for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,cK:function(){for(var r=d(),t="",w=0;w<r.length;w++)t+="0123456789ABCDEF".charAt(Math.floor(r[w]/16))+"0123456789ABCDEF".charAt(r[w]%16);return t}}};
hda=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.Cb(d,function(l){e.push(l)}),Bl(e.join(" "));
var f=[],h=[];g.Cb(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.kb(f)?[c,b,a]:[f.join(":"),c,b,a];g.Cb(d,function(l){e.push(l)});
a=Bl(e.join(" "));a=[c,a];g.kb(h)||a.push(h.join(""));return a.join("_")};
Bl=function(a){var b=gda();b.update(a);return b.cK().toLowerCase()};
Cl=function(a){var b=Al(String(g.v.location.href)),c;(c=g.v.__SAPISID||g.v.__APISID||g.v.__OVERRIDE_SID)?c=!0:(c=new Og(document),c=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID"),c=!!c);if(c&&(c=(b=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:")||0==b.indexOf("moz-extension:"))?g.v.__SAPISID:g.v.__APISID,c||(c=new Og(document),c=c.get(b?"SAPISID":"APISID")||c.get("__Secure-3PAPISID")),c)){b=b?"SAPISIDHASH":"APISIDHASH";var d=String(g.v.location.href);return d&&
c&&b?[b,hda(Al(d),c,a||null)].join(" "):null}return null};
g.Dl=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
El=function(a,b){g.Dl.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.B=null;a&&this.init(a,b)};
Gl=function(a){return!(!a||!a[Fl])};
jda=function(a,b,c,d,e){this.listener=a;this.u=null;this.src=b;this.type=c;this.capture=!!d;this.Te=e;this.key=++ida;this.bp=this.it=!1};
Hl=function(a){a.bp=!0;a.listener=null;a.u=null;a.src=null;a.Te=null};
Il=function(a){this.src=a;this.listeners={};this.u=0};
Jl=function(a,b){var c=b.type;c in a.listeners&&g.ob(a.listeners[c],b)&&(Hl(b),0==a.listeners[c].length&&(delete a.listeners[c],a.u--))};
Kl=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.bp&&f.listener==b&&f.capture==!!c&&f.Te==d)return e}return-1};
Ml=function(a,b,c,d,e){if(d&&d.once)return Ll(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ml(a,b[f],c,d,e);return null}c=Nl(c);return Gl(a)?a.xa(b,c,g.Oa(d)?!!d.capture:!!d,e):Ol(a,b,c,!1,d,e)};
Ol=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Oa(e)?!!e.capture:!!e,l=Pl(a);l||(a[Ql]=l=new Il(a));c=l.add(b,c,d,h,f);if(c.u)return c;d=kda();c.u=d;d.src=a;d.listener=c;if(a.addEventListener)lda||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Rl(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");Sl++;return c};
kda=function(){var a=mda,b=Tl?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);
if(!c)return c};
return b};
Ll=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ll(a,b[f],c,d,e);return null}c=Nl(c);return Gl(a)?a.hz(b,c,g.Oa(d)?!!d.capture:!!d,e):Ol(a,b,c,!0,d,e)};
Ul=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Ul(a,b[f],c,d,e);else d=g.Oa(d)?!!d.capture:!!d,c=Nl(c),Gl(a)?a.Kb(b,c,d,e):a&&(a=Pl(a))&&(b=a.wq(b,c,d,e))&&Vl(b)};
Vl=function(a){if("number"!==typeof a&&a&&!a.bp){var b=a.src;if(Gl(b))Jl(b.B,a);else{var c=a.type,d=a.u;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Rl(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Sl--;(c=Pl(b))?(Jl(c,a),0==c.u&&(c.src=null,b[Ql]=null)):Hl(a)}}};
Rl=function(a){return a in Wl?Wl[a]:Wl[a]="on"+a};
Yl=function(a,b,c,d){var e=!0;if(a=Pl(a))if(b=a.listeners[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.bp&&(f=Xl(f,d),e=e&&!1!==f)}return e};
Xl=function(a,b){var c=a.listener,d=a.Te||a.src;a.it&&Vl(a);return c.call(d,b)};
mda=function(a,b){if(a.bp)return!0;if(!Tl){var c=b||g.Ja("window.event"),d=new El(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(m){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);f=a.type;for(var h=c.length-1;!d.u&&0<=h;h--){d.currentTarget=c[h];var l=Yl(c[h],f,!0,d);e=e&&l}for(h=0;!d.u&&h<c.length;h++)d.currentTarget=c[h],l=Yl(c[h],f,!1,d),e=e&&l}return e}return Xl(a,new El(b,
this))};
Pl=function(a){a=a[Ql];return a instanceof Il?a:null};
Nl=function(a){if("function"===typeof a)return a;a[Zl]||(a[Zl]=function(b){return a.handleEvent(b)});
return a[Zl]};
g.$l=function(){g.B.call(this);this.B=new Il(this);this.Ha=this;this.na=null};
am=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.bp&&h.capture==c){var l=h.listener,m=h.Te||h.src;h.it&&Jl(a.B,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
bm=function(a,b){this.C=a;this.D=b;this.B=0;this.u=null};
cm=function(a,b){a.D(b);100>a.B&&(a.B++,b.next=a.u,a.u=b)};
dm=function(a){g.v.setTimeout(function(){throw a;},0)};
fm=function(a){a=nda(a);"function"!==typeof g.v.setImmediate||g.v.Window&&g.v.Window.prototype&&!Uc("Edge")&&g.v.Window.prototype.setImmediate==g.v.setImmediate?(em||(em=oda()),em(a)):g.v.setImmediate(a)};
oda=function(){var a=g.v.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Uc("Presto")&&(a=function(){var e=g.Ce("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.z)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()},this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}});
if("undefined"!==typeof a&&!Uc("Trident")&&!Uc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.mC;c.mC=null;e()}};
return function(e){d.next={mC:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.v.setTimeout(e,0)}};
gm=function(){this.B=this.u=null};
hm=function(){this.next=this.scope=this.u=null};
g.lm=function(a,b){im||pda();jm||(im(),jm=!0);km.add(a,b)};
pda=function(){if(g.v.Promise&&g.v.Promise.resolve){var a=g.v.Promise.resolve(void 0);im=function(){a.then(mm)}}else im=function(){fm(mm)}};
mm=function(){for(var a;a=km.remove();){try{a.u.call(a.scope)}catch(b){dm(b)}cm(nm,a)}jm=!1};
om=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
qm=function(a){this.Ja=0;this.Il=void 0;this.Ln=this.Ek=this.Um=null;this.fu=this.Wx=!1;if(a!=g.Ka)try{var b=this;a.call(void 0,function(c){pm(b,2,c)},function(c){pm(b,3,c)})}catch(c){pm(this,3,c)}};
rm=function(){this.next=this.context=this.onRejected=this.C=this.u=null;this.B=!1};
tm=function(a,b,c){var d=sm.get();d.C=a;d.onRejected=b;d.context=c;return d};
um=function(a){if(a instanceof qm)return a;var b=new qm(g.Ka);pm(b,2,a);return b};
vm=function(a){return new qm(function(b,c){c(a)})};
xm=function(a,b,c){wm(a,b,c,null)||g.lm(g.Ta(b,a))};
qda=function(a){return new qm(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],xm(e,b,c)})};
rda=function(a){return new qm(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],xm(m,g.Ta(f,l),h);
else b(e)})};
zm=function(a,b){var c=tm(b,b,void 0);c.B=!0;ym(a,c);return a};
Bm=function(a,b){return Am(a,null,b,void 0)};
Cm=function(a,b){if(0==a.Ja)if(a.Um){var c=a.Um;if(c.Ek){for(var d=0,e=null,f=null,h=c.Ek;h&&(h.B||(d++,h.u==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.Ja&&1==d?Cm(c,b):(f?(d=f,d.next==c.Ln&&(c.Ln=d),d.next=d.next.next):Dm(c),Em(c,e,3,b)))}a.Um=null}else pm(a,3,b)};
ym=function(a,b){a.Ek||2!=a.Ja&&3!=a.Ja||Fm(a);a.Ln?a.Ln.next=b:a.Ek=b;a.Ln=b};
Am=function(a,b,c,d){var e=tm(null,null,null);e.u=new qm(function(f,h){e.C=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 Gm?h(l):f(m)}catch(n){h(n)}}:h});
e.u.Um=a;ym(a,e);return e.u};
pm=function(a,b,c){0==a.Ja&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.Ja=1,wm(c,a.CS,a.DS,a)||(a.Il=c,a.Ja=b,a.Um=null,Fm(a),3!=b||c instanceof Gm||sda(a,c)))};
wm=function(a,b,c,d){if(a instanceof qm)return ym(a,tm(b||g.Ka,c||null,d)),!0;if(om(a))return a.then(b,c,d),!0;if(g.Oa(a))try{var e=a.then;if("function"===typeof e)return tda(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
tda=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)}};
Fm=function(a){a.Wx||(a.Wx=!0,g.lm(a.jK,a))};
Dm=function(a){var b=null;a.Ek&&(b=a.Ek,a.Ek=b.next,b.next=null);a.Ek||(a.Ln=null);return b};
Em=function(a,b,c,d){if(3==c&&b.onRejected&&!b.B)for(;a&&a.fu;a=a.Um)a.fu=!1;if(b.u)b.u.Um=null,Hm(b,c,d);else try{b.B?b.C.call(b.context):Hm(b,c,d)}catch(e){Im.call(null,e)}cm(sm,b)};
Hm=function(a,b,c){2==b?a.C.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};
sda=function(a,b){a.fu=!0;g.lm(function(){a.fu&&Im.call(null,b)})};
Gm=function(a){Xa.call(this,a)};
g.Jm=function(a,b){g.$l.call(this);this.sf=a||1;this.ts=b||g.v;this.fC=(0,g.z)(this.tS,this);this.qE=g.A()};
g.Km=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.z)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.z)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.v.setTimeout(a,b||0)};
Lm=function(a,b){var c=null;return Bm(new qm(function(d,e){c=g.Km(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))}),function(d){g.v.clearTimeout(c);
throw d;})};
g.Mm=function(a,b){this.B={};this.u=[];this.Ql=this.C=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.Mm)for(c=a.Ug(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Om=function(a){if(a.C!=a.u.length){for(var b=0,c=0;b<a.u.length;){var d=a.u[b];Nm(a.B,d)&&(a.u[c++]=d);b++}a.u.length=c}if(a.C!=a.u.length){var e={};for(c=b=0;b<a.u.length;)d=a.u[b],Nm(e,d)||(a.u[c++]=d,e[d]=1),b++;a.u.length=c}};
Nm=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.Pm=function(a,b){this.u=this.P=this.F="";this.D=null;this.J=this.B="";this.K=!1;var c;a instanceof g.Pm?(this.K=void 0!==b?b:a.K,g.Qm(this,a.F),this.P=a.P,g.Rm(this,a.u),g.Sm(this,a.D),this.B=a.B,Tm(this,a.C.clone()),this.J=a.J):a&&(c=String(a).match(td))?(this.K=!!b,g.Qm(this,c[1]||"",!0),this.P=Um(c[2]||""),g.Rm(this,c[3]||"",!0),g.Sm(this,c[4]),this.B=Um(c[5]||"",!0),Tm(this,c[6]||"",!0),this.J=Um(c[7]||"")):(this.K=!!b,this.C=new Vm(null,this.K))};
g.Qm=function(a,b,c){a.F=c?Um(b,!0):b;a.F&&(a.F=a.F.replace(/:$/,""))};
g.Rm=function(a,b,c){a.u=c?Um(b,!0):b};
g.Sm=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null};
Tm=function(a,b,c){b instanceof Vm?(a.C=b,uda(a.C,a.K)):(c||(b=Wm(b,vda)),a.C=new Vm(b,a.K))};
g.Xm=function(a){return a instanceof g.Pm?a.clone():new g.Pm(a,void 0)};
Um=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Wm=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,wda),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
wda=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Vm=function(a,b){this.B=this.u=null;this.C=a||null;this.D=!!b};
Ym=function(a){a.u||(a.u=new g.Mm,a.B=0,a.C&&yd(a.C,function(b,c){a.add(kd(b),c)}))};
$m=function(a,b){Ym(a);b=Zm(a,b);return Nm(a.u.B,b)};
g.an=function(a,b,c){a.remove(b);0<c.length&&(a.C=null,a.u.set(Zm(a,b),g.rb(c)),a.B=a.B+c.length)};
Zm=function(a,b){var c=String(b);a.D&&(c=c.toLowerCase());return c};
uda=function(a,b){b&&!a.D&&(Ym(a),a.C=null,a.u.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.an(this,e,c))},a));
a.D=b};
cn=function(a){if(g.oc(g.md(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Pm(a)}catch(c){return null!=g.fb(bn,function(d){return 0<a.search(d)})}return b.J.match(xda)?!0:null!=g.fb(bn,function(c){return null!=a.match(c)})};
g.dn=function(a,b){return a.replace(yda,function(c,d){try{var e=null!==b&&d in b?b[d]:void 0;if(null==e)return c;e=e.toString();if(""==e||!g.oc(g.md(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
en=function(){this.B=[];this.u=-1};
zda=function(a){-1==a.u&&(a.u=g.qh(a.B,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.u};
g.fn=function(a,b,c){g.B.call(this);this.u=null;this.D=!1;this.J=a;this.F=c;this.B=b||window;this.C=(0,g.z)(this.IK,this)};
g.gn=function(a){a.isActive()||a.start()};
hn=function(a){a=a.B;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
jn=function(a){a=a.B;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.F=function(a,b,c){g.B.call(this);this.u=a;this.sf=b||0;this.B=c;this.C=(0,g.z)(this.xD,this)};
g.kn=function(a,b){a.isActive()||a.start(b)};
g.ln=function(a){a.stop();a.xD()};
g.mn=function(a){a.isActive()&&g.ln(a)};
nn=function(){this.B=64;this.u=[];this.J=[];this.K=[];this.F=[];this.F[0]=128;for(var a=1;a<this.B;++a)this.F[a]=0;this.D=this.C=0;this.reset()};
on=function(a,b,c){c||(c=0);var d=a.K;if("string"===typeof b)for(var e=0;16>e;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;16>e;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(e=16;80>e;e++){var f=d[e-3]^d[e-8]^d[e-14]^d[e-16];d[e]=(f<<1|f>>>31)&4294967295}b=a.u[0];c=a.u[1];var h=a.u[2],l=a.u[3],m=a.u[4];for(e=0;80>e;e++){if(40>e)if(20>e){f=l^c&(h^l);var n=1518500249}else f=c^h^l,n=1859775393;else 60>e?(f=c&h|l&(c|h),n=2400959708):
(f=c^h^l,n=3395469782);f=(b<<5|b>>>27)+f+m+n+d[e]&4294967295;m=l;l=h;h=(c<<30|c>>>2)&4294967295;c=b;b=f}a.u[0]=a.u[0]+b&4294967295;a.u[1]=a.u[1]+c&4294967295;a.u[2]=a.u[2]+h&4294967295;a.u[3]=a.u[3]+l&4294967295;a.u[4]=a.u[4]+m&4294967295};
pn=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
qn=function(a){return a.classList?a.classList:pn(a).match(/\S+/g)||[]};
g.rn=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.sn=function(a,b){return a.classList?a.classList.contains(b):g.jb(qn(a),b)};
g.J=function(a,b){if(a.classList)a.classList.add(b);else if(!g.sn(a,b)){var c=pn(a);g.rn(a,c+(0<c.length?" "+b:b))}};
g.tn=function(a,b){if(a.classList)g.Cb(b,function(f){g.J(a,f)});
else{var c={};g.Cb(qn(a),function(f){c[f]=!0});
g.Cb(b,function(f){c[f]=!0});
var d="",e;for(e in c)d+=0<d.length?" "+e:e;g.rn(a,d)}};
g.un=function(a,b){a.classList?a.classList.remove(b):g.sn(a,b)&&g.rn(a,g.He(qn(a),function(c){return c!=b}).join(" "))};
g.vn=function(a,b){a.classList?g.Cb(b,function(c){g.un(a,c)}):g.rn(a,g.He(qn(a),function(c){return!g.jb(b,c)}).join(" "))};
g.K=function(a,b,c){c?g.J(a,b):g.un(a,b)};
wn=function(a,b){var c=!g.sn(a,b);g.K(a,b,c)};
g.xn=function(){g.$l.call(this);this.Ja=0;this.endTime=this.startTime=null};
Ada=function(a,b){Array.isArray(b)||(b=[b]);var c=g.Mc(b,function(d){return"string"===typeof d?d:d.property+" "+d.duration+"s "+d.timing+" "+d.delay+"s"});
g.og(a,"transition",c.join(","))};
yn=function(a,b,c,d,e){g.xn.call(this);this.u=a;this.F=b;this.J=c;this.C=d;this.K=Array.isArray(e)?e:[e]};
zn=function(a,b,c,d){return new yn(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Cda=function(a){a=xc(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 Bda))return null}return a};
An=function(a){var b=g.v.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Bn=function(a,b,c,d){if(a)return a.apply(b,d);if(g.ve&&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)};
Hda=function(a){if(!a)return Pc;var b=document.createElement("div").style,c=Dda(a);g.Cb(c,function(d){var e=g.xe&&d in Eda?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");kc(e,"--")||kc(e,"var")||(d=Bn(Fda,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[d])||"",d=Cda(d),null!=d&&Bn(Gda,b,b.setProperty?"setProperty":"setAttribute",[e,d]))});
return Haa(b.cssText||"")};
Dda=function(a){g.Na(a)?a=g.rb(a):(a=g.Lb(a),g.ob(a,"cssText"));return a};
g.Dn=function(a){var b,c=b=0,d=!1;a=a.split(Ida);for(var e=0;e<a.length;e++){var f=a[e];g.Cn.test(f)?(b++,c++):Jda.test(f)?d=!0:Kda.test(f)?c++:Lda.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.En=function(a,b,c,d,e,f,h,l){this.u=a;this.F=b;this.C=c;this.J=d;this.D=e;this.K=f;this.B=h;this.P=l};
g.Fn=function(a,b){if(0==b)return a.u;if(1==b)return a.B;var c=g.be(a.u,a.C,b),d=g.be(a.C,a.D,b),e=g.be(a.D,a.B,b);c=g.be(c,d,b);d=g.be(d,e,b);return g.be(c,d,b)};
g.Gn=function(a,b,c){this.D=a;this.F=b;this.u=this.C=a;this.J=c||0};
g.Hn=function(a){a.u=Math.min(a.F,2*a.u);a.C=Math.min(a.F,a.u+(a.J?Math.round(a.J*(Math.random()-.5)*2*a.u):0));a.B++};
In=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Mda=function(a,b){for(var c=[a],d=b.length-1;0<=d;--d)c.push(typeof b[d],b[d]);return c.join("\x0B")};
Jn=function(a){return(a=a.exec(g.Tc))?a[1]:""};
Kn=function(a){return 0<=g.Ac(Nda,a)};
g.Ln=function(a){g.B.call(this);this.F=1;this.C=[];this.D=0;this.u=[];this.B={};this.J=!!a};
Oda=function(a,b,c){g.lm(function(){a.apply(b,c)})};
g.Mn=function(a){this.u=a};
Nn=function(a){this.u=a};
On=function(a){this.data=a};
Xn=function(a){return void 0===a||a instanceof On?a:new On(a)};
Yn=function(a){this.u=a};
g.Zn=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.A()||!!b&&b>g.A()};
g.$n=function(a){this.u=a};
Pda=function(){};
ao=function(){};
bo=function(a){this.u=a};
co=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.u=a};
eo=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.u=a};
go=function(a,b){this.B=a;this.u=null;if(g.ve&&!g.Zd(9)){fo||(fo=new g.Mm);this.u=fo.get(a);this.u||(b?this.u=document.getElementById(b):(this.u=document.createElement("userdata"),this.u.addBehavior("#default#userData"),document.body.appendChild(this.u)),fo.set(a,this.u));try{this.u.load(this.B)}catch(c){this.u=null}}};
ho=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Qda[b]})};
io=function(a){try{a.u.save(a.B)}catch(b){throw"Storage mechanism: Quota exceeded";}};
jo=function(a,b){this.B=a;this.u=b+"::"};
g.ko=function(a){var b=new co;return b.isAvailable()?a?new jo(b,a):b:null};
lo=function(a,b){this.u=a;this.B=b};
mo=function(a){this.u=[];if(a)a:{if(a instanceof mo){var b=a.Ug();a=a.Bf();if(0>=this.u.length){for(var c=this.u,d=0;d<b.length;d++)c.push(new lo(b[d],a[d]));break a}}else b=g.Lb(a),a=g.Kb(a);for(d=0;d<b.length;d++)g.no(this,b[d],a[d])}};
g.no=function(a,b,c){var d=a.u;d.push(new lo(b,c));b=d.length-1;a=a.u;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};
g.oo=function(){mo.call(this)};
po=function(){};
qo=function(a){g.Hf(this,a,Rda,null)};
ro=function(a){g.Hf(this,a,null,null)};
Sda=function(a,b){for(;ef(b)&&4!=b.B;)switch(b.C){case 1:var c=hf(b);g.Kf(a,1,c);break;case 2:c=hf(b);g.Kf(a,2,c);break;case 3:c=hf(b);g.Kf(a,3,c);break;case 4:c=hf(b);g.Kf(a,4,c);break;case 5:c=cf(b.u);g.Kf(a,5,c);break;default:ff(b)}return a};
Tda=function(a){a=a.split("");var b=[function(c){for(var d=c.length;d;)c.push(c.splice(--d,1)[0])},
741641504,516185203,-12032606,function(c,d){d=(d%c.length+c.length)%c.length;c.splice(-d).reverse().forEach(function(e){c.unshift(e)})},
-1364757574,function(c,d){for(var e=64,f=[];++e-f.length-32;){switch(e){case 58:e-=14;case 91:case 92:case 93:continue;case 123:e=47;case 94:case 95:case 96:continue;case 46:e=95}f.push(String.fromCharCode(e))}c.forEach(function(h,l,m){this.push(m[l]=f[(f.indexOf(h)-f.indexOf(this[l])+l-32+e--)%f.length])},d.split(""))},
1519249349,"let",-1888161017,null,a,489500879,690828633,896723671,365848948,function(c){for(var d=c.length;d;)c.push(c.splice(--d,1)[0])},
1583292793,-838646323,-905525337,578587637,876387679,-1915091813,528205950,function(c,d){c.push(d)},
null,753638992,a,-993928191,-46326738,545312322,function(c){c.reverse()},
function(c,d){d=(d%c.length+c.length)%c.length;c.splice(0,1,c.splice(d,1,c[0])[0])},
a,-378998145,-1649313555,-1461767413,1269593364,-1054056803,function(c,d){d=(d%c.length+c.length)%c.length;var e=c[0];c[0]=c[d];c[d]=e},
1531317601,419891722,function(c,d){d=(d%c.length+c.length)%c.length;var e=c[0];c[0]=c[d];c[d]=e},
null,function(c,d){for(d=(d%c.length+c.length)%c.length;d--;)c.unshift(c.pop())},
389865245,-957052037,1383307981,528205950,749271271,396697909];b[10]=b;b[25]=b;b[43]=b;b[39](b[10],b[21]);b[39](b[25],b[29]);b[44](b[33],b[0]);b[31](b[10]);b[6](b[39],b[32]);b[6](b[17],b[31]);b[26](b[7],b[32]);b[18](b[7],b[30]);b[46](b[25],b[16]);b[26](b[47]);b[26](b[44],b[43]);b[36](b[4],b[51]);b[33](b[5],b[24]);b[36](b[37],b[35]);b[26](b[44],b[8]);b[10](b[21]);b[25](b[5]);b[50](b[5],b[48]);b[36](b[5],b[32]);b[50](b[19],b[49]);b[22](b[42],b[27]);b[24](b[42],b[8]);b[41](b[40],b[30]);b[38](b[19],b[20]);
b[2](b[13],b[7]);b[14](b[20],b[39]);b[9](b[32],b[44]);b[26](b[20],b[10]);b[14](b[33],b[16]);b[14](b[47],b[31]);b[41](b[31],b[29]);b[37](b[24],b[34]);b[5](b[11],b[49]);b[5](b[38],b[43]);b[22](b[17],b[3]);b[46](b[17],b[25]);b[34](b[1],b[13]);b[21](b[40]);b[34](b[1],b[2]);b[46](b[33],b[5]);return a.join("")};
to=function(a){var b=arguments;1<b.length?so[b[0]]=b[1]:1===b.length&&Object.assign(so,b[0])};
g.L=function(a,b){return a in so?so[a]:b};
uo=function(a){return g.L(a,void 0)};
g.wo=function(a){a=vo(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.xo=function(a,b){var c=vo(a);return void 0===c&&void 0!==b?b:Number(c||0)};
yo=function(a){a=vo(a);return Array.isArray(a)?g.Mc(a,function(b){return String(b||"")}):[String(a||"")]};
vo=function(a){var b=g.L("EXPERIMENTS_FORCED_FLAGS",{});return void 0!==b[a]?b[a]:g.L("EXPERIMENT_FLAGS",{})[a]};
zo=function(){var a=[],b=g.L("EXPERIMENTS_FORCED_FLAGS",{});for(c in b)a.push({key:c,value:String(b[c])});var c=g.L("EXPERIMENT_FLAGS",{});for(var d in c)d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
Bo=function(a,b,c){a&&(a.dataset?a.dataset[Ao(b)]=String(c):a.setAttribute("data-"+b,c))};
Co=function(a){return a?a.dataset?a.dataset[Ao("loaded")]:a.getAttribute("data-loaded"):null};
Ao=function(a){return Do[a]||(Do[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
Uda=function(a){Eo.forEach(function(b){return b(a)})};
Fo=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.M(b),Uda(b)}}:a};
g.M=function(a,b,c,d){var e=g.Ja("yt.logging.errors.log");e?e(a,"ERROR",b,c,d):(e=g.L("ERRORS",[]),e.push([a,"ERROR",b,c,d]),to("ERRORS",e))};
g.Go=function(a){var b=g.Ja("yt.logging.errors.log");b?b(a,"WARNING",void 0,void 0,void 0):(b=g.L("ERRORS",[]),b.push([a,"WARNING",void 0,void 0,void 0]),to("ERRORS",b))};
g.Ho=function(a,b){"function"===typeof a&&(a=Fo(a));return window.setTimeout(a,b)};
Io=function(a,b){"function"===typeof a&&(a=Fo(a));return window.setInterval(a,b)};
g.Jo=function(a){window.clearTimeout(a)};
g.Oo=function(a,b,c){var d=g.Ko();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){Lo[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.Mo[a]?h():g.Ho(h,0)}catch(l){g.M(l)}},c);
Lo[e]=!0;No[a]||(No[a]=[]);No[a].push(e);return e}return 0};
g.Po=function(a){var b=g.Ko();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Cb(a,function(c){b.unsubscribeByKey(c);delete Lo[c]}))};
g.Qo=function(a,b){var c=g.Ko();return c?c.publish.apply(c,arguments):!1};
So=function(a){var b=g.Ko();if(b)if(b.clear(a),a)Ro(a);else for(var c in No)Ro(c)};
g.Ko=function(){return g.v.ytPubsubPubsubInstance};
Ro=function(a){No[a]&&(a=No[a],g.Cb(a,function(b){Lo[b]&&delete Lo[b]}),a.length=0)};
g.To=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(Vda,""),c=c.replace(Wda,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Xda(a,b,c)};
Xda=function(a,b,c){c=void 0===c?null:c;var d=Uo(a),e=document.getElementById(d),f=e&&Co(e),h=e&&!f;f?b&&b():(b&&(f=g.Oo(d,b),b=""+g.Ra(b),Vo[b]=f),h||(e=Yda(a,d,function(){Co(e)||(Bo(e,"loaded","true"),g.Qo(d),g.Ho(g.Ta(So,d),0))},c)))};
Yda=function(a,b,c,d){d=void 0===d?null:d;var e=g.Ce("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.hd(e,g.mg(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Uo=function(a){var b=document.createElement("a");g.gd(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+nd(a)};
Xo=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Wo+"VisibilityState";if(b in a)return a[b]};
Yo=function(a,b){var c;ji(a,function(d){c=b[d];return!!c});
return c};
Zo=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 Zda||(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.u=a.pageX;this.B=a.pageY}}catch(e){}};
$o=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.u=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.B=a.clientY+b}};
$da=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 Pb(ap,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Oa(e[4])&&g.Oa(d)&&g.Tb(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.dp=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=$da(a,b,c,d);if(e)return e;e=++bp.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Zo(l);if(!Oe(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Zo(l);
l.currentTarget=a;return c.call(a,l)};
h=Fo(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),cp()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);ap[e]=[a,b,c,h,d];return e};
aea=function(a,b){var c=document.body||document;return g.dp(c,"click",function(d){var e=Oe(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.ep=function(a){a&&("string"==typeof a&&(a=[a]),g.Cb(a,function(b){if(b in ap){var c=ap[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?cp()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete ap[b]}}))};
g.fp=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
gp=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.fp(a)};
hp=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};
ip=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.de(b,c)};
g.jp=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.lp=function(a){a=a||window.event;return!1===a.returnValue||a.aE&&a.aE()};
g.mp=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
bea=function(a){return aea(a,function(b){return g.sn(b,"ytp-ad-has-logging-urls")})};
g.np=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.dp(a,b,function(){g.ep(e);c.apply(a,arguments)},d)};
op=function(a){for(var b in ap)ap[b][0]==a&&g.ep(b)};
pp=function(a){this.S=a;this.u=null;this.D=0;this.J=null;this.F=0;this.B=[];for(a=0;4>a;a++)this.B.push(0);this.C=0;this.P=g.dp(window,"mousemove",(0,g.z)(this.Y,this));this.X=Io((0,g.z)(this.K,this),25)};
qp=function(){};
sp=function(a,b){return rp(a,0,b)};
g.tp=function(a,b){return rp(a,1,b)};
up=function(){qp.apply(this,arguments)};
g.vp=function(){return!!g.Ja("yt.scheduler.instance")};
rp=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ja("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Ho(a,c||0)};
g.wp=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ja("yt.scheduler.instance.cancelJob");b?b(a):g.Jo(a)}};
xp=function(a){var b=g.Ja("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
Ap=function(){var a={},b=void 0===a.nL?!0:a.nL;a=void 0===a.IR?!1:a.IR;if(null==g.Ja("_lact",window)){var c=parseInt(g.L("LACT"),10);c=isFinite(c)?g.A()-Math.max(c,0):-1;g.Fa("_lact",c,window);g.Fa("_fact",c,window);-1==c&&yp();g.dp(document,"keydown",yp);g.dp(document,"keyup",yp);g.dp(document,"mousedown",yp);g.dp(document,"mouseup",yp);b&&(a?g.dp(window,"touchmove",function(){zp("touchmove",200)},{passive:!0}):(g.dp(window,"resize",function(){zp("resize",200)}),g.dp(window,"scroll",function(){zp("scroll",
200)})));
new pp(function(){zp("mouse",100)});
g.dp(document,"touchstart",yp,{passive:!0});g.dp(document,"touchend",yp,{passive:!0})}};
zp=function(a,b){Bp[a]||(Bp[a]=!0,g.tp(function(){yp();Bp[a]=!1},b))};
yp=function(){null==g.Ja("_lact",window)&&(Ap(),g.Ja("_lact",window));var a=g.A();g.Fa("_lact",a,window);-1==g.Ja("_fact",window)&&g.Fa("_fact",a,window);(a=g.Ja("ytglobal.ytUtilActivityCallback_"))&&a()};
Cp=function(){var a=g.Ja("_lact",window),b;null==a?b=-1:b=Math.max(g.A()-a,0);return b};
Ip=function(a){a=void 0===a?!1:a;return new qm(function(b){g.Jo(Dp);g.Jo(Ep);Ep=0;Fp&&Fp.isReady()?(cea(b,a),Gp.clear()):(Hp(),b())})};
Hp=function(){g.wo("web_gel_timeout_cap")&&!Ep&&(Ep=g.Ho(Ip,6E4));g.Jo(Dp);var a=g.L("LOGGING_BATCH_TIMEOUT",g.xo("web_gel_debounce_ms",1E4));g.wo("shorten_initial_gel_batch_timeout")&&Jp&&(a=dea);Dp=g.Ho(Ip,a)};
cea=function(a,b){var c=Fp;b=void 0===b?!1:b;for(var d=Math.round((0,g.N)()),e=Gp.size,f=g.q(Gp),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;var m=l.next().value;l=g.Vb(g.Kp(c.Zf||g.Lp()));l.events=m;(m=Mp[h])&&eea(l,h,m);delete Mp[h];fea(l,d);g.Np(c,"log_event",l,{retry:!0,onSuccess:function(){e--;e||a();Op=Math.round((0,g.N)()-d)},
onError:function(){e--;e||a()},
QS:b});Jp=!1}};
fea=function(a,b){a.requestTimeMs=String(b);g.wo("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);var c=g.L("EVENT_ID",void 0);if(c){var d=g.L("BATCH_CLIENT_COUNTER",void 0)||0;!d&&g.wo("web_client_counter_random_seed")&&(d=Math.floor(Math.random()*Pp/2));d++;d>Pp&&(d=1);to("BATCH_CLIENT_COUNTER",d);c={serializedEventId:c,clientCounter:String(d)};a.serializedClientEventId=c;Qp&&Op&&g.wo("log_gel_rtt_web")&&(a.previousBatchInfo={serializedClientEventId:Qp,roundtripMs:String(Op)});Qp=
c;Op=0}};
eea=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}]};
Tp=function(a,b,c,d){d=void 0===d?{}:d;var e={};e.eventTimeMs=Math.round(d.timestamp||(0,g.N)());e[a]=b;a=Cp();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.wo("log_sequence_info_on_gel_web")&&d.rk&&(a=e.context,b=d.rk,Rp[b]=b in Rp?Rp[b]+1:0,a.sequence={index:Rp[b],groupKey:b},d.gK&&delete Rp[d.rk]);d=d.Hi;a="";d&&(a={},d.videoId?a.videoId=d.videoId:d.playlistId&&(a.playlistId=d.playlistId),Mp[d.token]=a,a=d.token);d=Gp.get(a)||[];Gp.set(a,d);d.push(e);c&&(Fp=new c);c=g.xo("web_logging_max_batch")||
100;e=(0,g.N)();d.length>=c?Ip(!0):10<=e-Sp&&(Hp(),Sp=e)};
Up=function(){return g.Ja("yt.ads.biscotti.lastId_")||""};
Vp=function(a){g.Fa("yt.ads.biscotti.lastId_",a,void 0)};
Xp=function(a,b){for(var c=a.split(b),d={},e=0,f=c.length;e<f;e++){var h=c[e].split("=");if(1==h.length&&h[0]||2==h.length)try{var l=Wp(h[0]||""),m=Wp(h[1]||"");l in d?Array.isArray(d[l])?sb(d[l],m):d[l]=[d[l],m]:d[l]=m}catch(t){var n=t,p=h[0],r=String(Xp);n.args=[{key:p,value:h[1],query:a,method:gea==r?"unchanged":r}];hea.hasOwnProperty(p)||("ReferenceError"===n.name?g.Go(n):g.M(n))}}return d};
Yp=function(a){var b=[];g.Eb(a,function(c,d){var e=jd(d),f;Array.isArray(c)?f=c:f=[c];g.Cb(f,function(h){""==h?b.push(e):b.push(e+"="+jd(h))})});
return b.join("&")};
Zp=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Xp(a,"&")};
$p=function(a){a=a.split(",");return a=a.map(function(b){return Zp(b)})};
g.aq=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Zp(1<a.length?a[1]:a[0])):{}};
g.cq=function(a,b){return bq(a,b||{},!0)};
dq=function(a,b){return bq(a,b||{},!1)};
bq=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=Zp(e[1]||"");for(var f in b)if(c||!Nb(e,f))e[f]=b[f];return g.Id(a,e)+d};
eq=function(a){if(!b)var b=window.location.href;var c=g.ud(1,a),d=g.vd(a);c&&d?(a=a.match(td),b=b.match(td),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.vd(b)==d&&(Number(g.ud(4,b))||null)==(Number(g.ud(4,a))||null):!0;return a};
fq=function(a){a||(a=document.location.href);a=g.ud(1,a);return null!==a&&"https"==a};
gq=function(a){a=g.vd(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Wp=function(a){return a&&a.match(iea)?a:kd(a)};
jq=function(a){var b=hq;a=void 0===a?Up():a;var c=Object,d=c.assign,e=iq(b);var f=b.u;try{var h=f.screenX;var l=f.screenY}catch(t){}try{var m=f.outerWidth;var n=f.outerHeight}catch(t){}try{var p=f.innerWidth;var r=f.innerHeight}catch(t){}f=[f.screenLeft,f.screenTop,h,l,f.screen?f.screen.availWidth:void 0,f.screen?f.screen.availTop:void 0,m,n,p,r];h=Qg(!1,b.u.top);l={};m=new en;g.v.SVGElement&&g.v.document.createElementNS&&m.set(0);n=bba();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&
m.set(2);g.v.crypto&&g.v.crypto.subtle&&m.set(3);g.v.TextDecoder&&g.v.TextEncoder&&m.set(4);m=zda(m);b=(l.bc=m,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=fh(b.B),l.wgl=!!eh.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
iq=function(a){var b={};b.dt=jea;b.flash="0";a:{try{var c=a.u.top.location.href}catch(f){a=2;break a}a=c?c===a.B.location.href?0:1:2}b=(b.frm=a,b);b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?eh:d;try{var e=d.history.length}catch(f){e=0}b.u_his=e;b.u_java=!!eh.navigator&&"unknown"!==typeof eh.navigator.javaEnabled&&!!eh.navigator.javaEnabled&&eh.navigator.javaEnabled();eh.screen&&(b.u_h=eh.screen.height,b.u_w=eh.screen.width,b.u_ah=eh.screen.availHeight,b.u_aw=eh.screen.availWidth,b.u_cd=
eh.screen.colorDepth);eh.navigator&&eh.navigator.plugins&&(b.u_nplug=eh.navigator.plugins.length);eh.navigator&&eh.navigator.mimeTypes&&(b.u_nmime=eh.navigator.mimeTypes.length);return b};
kea=function(){if(!kq)return null;var a=kq();return"open"in a?a:null};
g.mq=function(a){switch(lq(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
lq=function(a){return a&&"status"in a?a.status:-1};
lea=function(a,b){b=void 0===b?{}:b;var c=eq(a),d=g.wo("web_ajax_ignore_global_headers_if_set"),e;for(e in nq){var f=g.L(nq[e]);!f||!c&&!oq(a,e)||d&&void 0!==b[e]||(b[e]=f)}if(c||oq(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());(c||oq(a,"X-YouTube-Time-Zone"))&&(d="undefined"!=typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone:null)&&(b["X-YouTube-Time-Zone"]=d);if(c||oq(a,"X-YouTube-Ad-Signals"))b["X-YouTube-Ad-Signals"]=Yp(jq(void 0));
return b};
pq=function(a,b){var c=g.vd(a),d=sd(g.ud(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=Zp(b),f={};g.Cb(mea,function(h){e[h]&&(f[h]=e[h])});
return dq(a,f)};
oq=function(a){return g.vd(a)?!1:!0};
nea=function(a,b){if(window.fetch&&"XML"!=b.format){var c={method:b.method||"GET",credentials:"same-origin"};b.headers&&(c.headers=b.headers);a=qq(a,b);var d=rq(a,b);d&&(c.body=d);b.withCredentials&&(c.credentials="include");var e=!1,f;fetch(a,c).then(function(h){if(!e){e=!0;f&&g.Jo(f);var l=h.ok,m=function(n){n=n||{};var p=b.context||g.v;l?b.onSuccess&&b.onSuccess.call(p,n,h):b.onError&&b.onError.call(p,n,h);b.ag&&b.ag.call(p,n,h)};
"JSON"==(b.format||"JSON")&&(l||400<=h.status&&500>h.status)?h.json().then(m,function(){m(null)}):m(null)}});
b.UF&&0<b.timeout&&(f=g.Ho(function(){e||(e=!0,g.Jo(f),b.UF.call(b.context||g.v))},b.timeout))}else g.sq(a,b)};
g.sq=function(a,b){var c=b.format||"JSON";a=qq(a,b);var d=rq(a,b),e=!1,f=tq(a,function(m){if(!e){e=!0;l&&g.Jo(l);var n=g.mq(m),p=null,r=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||r||t)p=oea(a,c,m,b.S4);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};r=b.context||g.v;n?b.onSuccess&&b.onSuccess.call(r,m,p):b.onError&&b.onError.call(r,m,p);b.ag&&b.ag.call(r,m,p)}},b.method,d,b.headers,b.responseType,
b.withCredentials);
if(b.Cg&&0<b.timeout){var h=b.Cg;var l=g.Ho(function(){e||(e=!0,f.abort(),g.Jo(l),h.call(b.context||g.v,f))},b.timeout)}return f};
qq=function(a,b){b.X4&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.L("XSRF_FIELD_NAME",void 0),d=b.sj;d&&(d[c]&&delete d[c],a=g.cq(a,d));return a};
rq=function(a,b){var c=g.L("XSRF_FIELD_NAME",void 0),d=g.L("XSRF_TOKEN",void 0),e=b.postBody||"",f=b.pc,h=uo("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.Ux||g.vd(a)&&!b.withCredentials&&g.vd(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.pc&&b.pc[h]||(f||(f={}),f[c]=d);f&&"string"===typeof e&&(e=Zp(e),g.Xb(e,f),e=b.NG&&"JSON"==b.NG?JSON.stringify(e):g.Ed(e));f=e||f&&!g.Rb(f);!uq&&f&&"POST"!=b.method&&(uq=!0,g.M(Error("AJAX request with postData should use POST")));
return e};
oea=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,g.Go(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)?pea(a):null)e={},g.Cb(a.getElementsByTagName("*"),function(h){e[h.tagName]=qea(h)})}d&&vq(e);
return e};
vq=function(a){if(g.Oa(a))for(var b in a)"html_content"==b||mc(b,"_html")?a[b]=g.dd(g.fc("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):vq(a[b])};
pea=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
qea=function(a){var b="";g.Cb(a.childNodes,function(c){b+=c.nodeValue});
return b};
tq=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Fo(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=kea();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.wo("debug_forward_web_query_parameters")&&(a=pq(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=lea(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};
wq=function(){return"INNERTUBE_API_KEY"in so&&"INNERTUBE_API_VERSION"in so};
g.Lp=function(){return{innertubeApiKey:g.L("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.L("INNERTUBE_API_VERSION",void 0),TD:g.L("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),ou:g.L("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Oy:g.L("INNERTUBE_CONTEXT_HL",void 0),Ny:g.L("INNERTUBE_CONTEXT_GL",void 0),VD:g.L("INNERTUBE_HOST_OVERRIDE",void 0)||"",XD:!!g.L("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),WD:!!g.L("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.L("SERIALIZED_CLIENT_CONFIG_DATA",void 0)}};
rea=function(a,b,c){c=void 0===c?{}:c;var d={"X-Goog-Visitor-Id":c.visitorData||g.L("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;(b=c.aC||g.L("AUTHORIZATION"))||(a?b="Bearer "+g.Ja("gapi.auth.getToken")().P4:b=Cl([]));b&&(d.Authorization=b,d["X-Goog-AuthUser"]=g.L("SESSION_INDEX",0),g.wo("pageid_as_header_web")&&(d["X-Goog-PageId"]=g.L("DELEGATED_SESSION_ID")));return d};
g.Kp=function(a){var b={client:{hl:a.Oy,gl:a.Ny,clientName:a.ou,clientVersion:a.innertubeContextClientVersion,configInfo:a.TD}},c=window.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=g.L("EXPERIMENTS_TOKEN","");""!==c&&(b.client.experimentsToken=c);c=zo();0<c.length&&(b.request={internalExperimentFlags:c});a.appInstallData&&g.wo("web_log_app_install_experiments")&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=a.appInstallData);g.L("DELEGATED_SESSION_ID")&&
!g.wo("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.L("DELEGATED_SESSION_ID")});a=Object;c=a.assign;for(var d=b.client,e={},f=g.q(Object.entries(Zp(g.L("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;"cbrand"===h?e.deviceMake=l:"cmodel"===h?e.deviceModel=l:"cbr"===h?e.browserName=l:"cbrver"===h?e.browserVersion=l:"cos"===h?e.osName=l:"cosver"===h?e.osVersion=l:"cplatform"===h&&(e.platform=l)}b.client=c.call(a,d,e);return{context:b}};
g.yq=function(a,b,c,d,e){xq.set(""+a,b,{xE:c,path:"/",domain:void 0===d?"youtube.com":d,YR:void 0===e?!1:e})};
g.zq=function(a,b){return xq.get(""+a,b)};
g.Aq=function(a,b,c){xq.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
Bq=function(a){var b;(b=g.ko(a))||(a=new go(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.u=(a=b)?new Yn(a):null;this.B=document.domain||window.location.hostname};
Cq=function(a,b){this.version=a;this.args=b};
Dq=function(a,b){this.topic=a;this.u=b};
Fq=function(a,b){var c=Eq();c&&c.publish.call(c,a.toString(),a,b)};
sea=function(a,b,c){var d=Eq();if(!d)return 0;var e=d.subscribe(a.toString(),function(f,h){var l=g.Ja("ytPubsub2Pubsub2SkipSubKey");l&&l==e||(l=function(){if(Gq[e])try{if(h&&a instanceof Dq&&a!=f)try{var m=a.u,n=h;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!m.Ql){var p=new m;m.Ql=p.version}var r=m.Ql}catch(t){}if(!r||n.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{h=Reflect.construct(m,
g.rb(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.M(t)}},Hq[a.toString()]?g.vp()?g.tp(l):g.Ho(l,0):l())});
Gq[e]=!0;Iq[a.toString()]||(Iq[a.toString()]=[]);Iq[a.toString()].push(e);return e};
Kq=function(a,b,c){var d=sea(a,function(e){b.apply(c,arguments);Jq(d)},c);
return d};
Jq=function(a){var b=Eq();b&&("number"===typeof a&&(a=[a]),g.Cb(a,function(c){b.unsubscribeByKey(c);delete Gq[c]}))};
Eq=function(){return g.Ja("ytPubsub2Pubsub2Instance")};
Lq=function(){this.C=!0};
Mq=function(){Lq.u||(Lq.u=new Lq);return Lq.u};
tea=function(a,b,c){return um(a.u(b,c))};
Nq=function(){var a=/Chrome\/(\d+)/.exec(g.Tc);return a?parseFloat(a[1]):NaN};
Oq=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.Tc);if(!a)return NaN;var b=[];a=g.q(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),0<=c&&b.push(c);return parseFloat(b.join("."))};
Qq=function(){return Pq("android")&&Pq("chrome")&&!(Pq("trident/")||Pq("edge/"))&&!Pq("cobalt")};
Rq=function(){return Pq("armv7")||Pq("aarch64")||Pq("android")};
g.Sq=function(){return Pq("cobalt")};
Tq=function(){return Pq("cobalt")&&Pq("appletv")};
Uq=function(){return Pq("(ps3; leanback shell)")||Pq("ps3")&&g.Sq()};
Vq=function(){return Pq("(ps4; leanback shell)")||Pq("ps4")&&g.Sq()};
g.Wq=function(){return g.Sq()&&(Pq("ps4 vr")||Pq("ps4 pro vr"))};
Xq=function(){var a=/WebKit\/([0-9]+)/.exec(g.Tc);return!!(a&&600<=parseInt(a[1],10))};
Yq=function(){var a=/WebKit\/([0-9]+)/.exec(g.Tc);return!!(a&&602<=parseInt(a[1],10))};
Zq=function(){return Pq("iemobile")||Pq("windows phone")&&Pq("edge")};
ar=function(){return $q&&Pq("applewebkit")&&!Pq("version")&&(!Pq("safari")||Pq("gsa/"))};
cr=function(){return g.br&&Pq("version/")};
dr=function(){return Pq("smart-tv")&&Pq("samsung")};
Pq=function(a){var b=g.Tc;return b?0<=b.toLowerCase().indexOf(a):!1};
uea=function(){var a={};for(er=new fr(void 0===a.Gy?g.gr:a.Gy,void 0===a.handleError?hr:a.handleError,void 0===a.logEvent?g.ir:a.logEvent);0<jr.length;)switch(a=jr.shift(),a.type){case "ERROR":kr(a.payload);break;case "EVENT":er.logEvent(a.eventType,a.payload)}};
mr=function(a,b){lr||(er?er.logEvent(a,b):(jr.push({type:"EVENT",eventType:a,payload:b}),10<jr.length&&jr.shift()))};
g.nr=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];d=Error.call(this,a);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.args=[].concat(g.ma(c))};
pr=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?or[a]:c;g.nr.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;Object.setPrototypeOf(this,pr.prototype);lr||(er?kr(this):(jr.push({type:"ERROR",payload:this}),10<jr.length&&jr.shift()))};
qr=function(a){pr.call(this,"MISSING_OBJECT_STORE",{g5:a},or.MISSING_OBJECT_STORE);Object.setPrototypeOf(this,qr.prototype)};
vea=function(a){if(!a)throw Error();throw a;};
wea=function(a){return a};
rr=function(a){var b=this;this.B=a;this.state={status:"PENDING"};this.u=[];this.onRejected=[];this.B(function(c){if("PENDING"===b.state.status){b.state={status:"FULFILLED",value:c};c=g.q(b.u);for(var d=c.next();!d.done;d=c.next())d=d.value,d()}},function(c){if("PENDING"===b.state.status){b.state={status:"REJECTED",
reason:c};c=g.q(b.onRejected);for(var d=c.next();!d.done;d=c.next())d=d.value,d()}})};
tr=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 rr?sr(a,b,f,d,e):d(f)}catch(h){e(h)}};
ur=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 rr?sr(a,b,f,d,e):d(f)}catch(h){e(h)}};
sr=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof rr?sr(a,b,f,d,e):d(f)},function(f){e(f)})};
vr=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)};
wr=function(a){return new Promise(function(b,c){vr(a,b,c)})};
xr=function(a){return new rr(function(b,c){vr(a,b,c)})};
Rr=function(a,b){return new rr(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()})};
Sr=function(a,b){this.request=a;this.cursor=b};
Tr=function(a){return xr(a).then(function(b){return null===b?null:new Sr(a,b)})};
Ur=function(a,b){this.u=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.N)());this.B=!1};
Yr=function(a,b,c,d){return Vr(a,[b],"readwrite",function(e){return Wr(Xr(e,b),c,d)})};
Vr=function(a,b,c,d){c=void 0===c?"readonly":c;a.transactionCount++;var e=a.u.transaction(b,c);d=xea(e,d)["catch"](function(f){var h=a.u.name,l=b.join();f instanceof pr||f instanceof g.nr||("QuotaExceededError"===f.name?f=new pr("QUOTA_EXCEEDED",{objectStoreNames:l,dbName:h}):g.Zr&&"UnknownError"===f.name?f=new pr("QUOTA_MAYBE_EXCEEDED",{objectStoreNames:l,dbName:h}):(Object.setPrototypeOf(f,g.nr.prototype),f.args=[{name:"IdbError",l5:f.name,dbName:h,objectStoreNames:l}]));throw f;});
yea(a,d,b.join(),c);return d};
yea=function(a,b,c,d){Ue(a,function f(){var h,l,m=this,n,p,r;return xa(f,function(t){if(1==t.u)return h=Math.round((0,g.N)()),t.C=2,sa(t,b,4);if(2!=t.u)return l=Math.round((0,g.N)()),$r(m,!0,c,l-h),ta(t,0);n=ua(t);p=Math.round((0,g.N)());r=p-h;n instanceof pr&&("QUOTA_EXCEEDED"===n.type||"QUOTA_MAYBE_EXCEEDED"===n.type)&&mr("QUOTA_EXCEEDED",{dbName:m.u.name,objectStoreNames:c,transactionCount:m.transactionCount,transactionMode:d});n instanceof pr&&"UNKNOWN_ABORT"===n.type&&(mr("TRANSACTION_UNEXPECTEDLY_ABORTED",
{objectStoreNames:c,transactionDuration:r,transactionCount:m.transactionCount,dbDuration:p-m.C}),m.B=!0);$r(m,!1,c,r);t.u=0})})};
$r=function(a,b,c,d){mr("TRANSACTION_ENDED",{objectStoreNames:c,connectionHasUnknownAbortedTransaction:a.B,duration:d,isSuccessful:b})};
as=function(a){this.u=a};
zea=function(a,b){return bs(a,{query:b},function(c){return c["delete"]().then(function(){return c["continue"]()})}).then(function(){})};
Aea=function(a,b,c){var d=[];return bs(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e["continue"]()}).then(function(){return d})};
Wr=function(a,b,c){return xr(a.u.put(b,c))};
bs=function(a,b,c){a=a.u.openCursor(b.query,b.direction);return cs(a).then(function(d){return Rr(d,c)})};
Bea=function(a,b){var c={},d=c.query;c=c.direction;d="openKeyCursor"in IDBObjectStore.prototype?a.u.openKeyCursor(d,c):a.u.openCursor(d,c);return Tr(d).then(function(e){return Rr(e,b)})};
ds=function(a){var b=this;this.u=a;this.B=new Map;this.aborted=!1;this.done=new Promise(function(c,d){b.u.addEventListener("complete",function(){c()});
b.u.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.u.error)});
b.u.addEventListener("abort",function(){var e=b.u.error;if(e)d(e);else if(!b.aborted){e=pr;for(var f=b.u.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.u.db.name,mode:b.u.mode});d(e)}})})};
xea=function(a,b){var c=new ds(a);return Cea(c,b)};
Cea=function(a,b){var c=new Promise(function(d,e){b(a).then(function(f){a.commit();d(f)})["catch"](e)});
return Promise.all([c,a.done]).then(function(d){return g.q(d).next().value})};
Xr=function(a,b){var c=a.u.objectStore(b),d=a.B.get(c);d||(d=new as(c),a.B.set(c,d));return d};
es=function(a){this.u=a};
Dea=function(a,b,c){a=a.u.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return cs(a).then(function(d){return Rr(d,c)})};
fs=function(a,b){this.request=a;this.cursor=b};
cs=function(a){return xr(a).then(function(b){return null===b?null:new fs(a,b)})};
Eea=function(a,b,c){return Ue(this,function e(){var f,h,l,m,n,p,r,t,w,x;return xa(e,function(y){if(1==y.u)return f=self.indexedDB.open(a,b),h=c,l=h.blocked,m=h.blocking,n=h.rS,p=h.upgrade,r=h.closed,w=function(){t||(t=new Ur(f.result,{closed:r}));return t},f.addEventListener("upgradeneeded",function(E){if(null===E.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");
if(null===f.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");E.dataLoss&&"none"!==E.dataLoss&&mr("IDB_DATA_CORRUPTED",{reason:E.dataLossMessage||"unknown reason",dbName:a});var D=w(),G=new ds(f.transaction);p&&p(D,E.oldVersion,E.newVersion,G)}),l&&f.addEventListener("blocked",function(){l()}),sa(y,wr(f),2);
x=y.B;m&&x.addEventListener("versionchange",function(){m(w())});
x.addEventListener("close",function(){mr("IDB_UNEXPECTEDLY_CLOSED",{dbName:a,dbVersion:x.version});n&&n()});
return y["return"](w())})})};
gs=function(a,b,c){c=void 0===c?{}:c;return Eea(a,b,c)};
hs=function(a,b){b=void 0===b?{}:b;return Ue(this,function d(){var e,f,h;return xa(d,function(l){e=self.indexedDB.deleteDatabase(a);f=b;(h=f.blocked)&&e.addEventListener("blocked",function(){h()});
return sa(l,wr(e),0)})})};
is=function(a,b){this.name=a;this.options=b;this.C=!1};
ks=function(a){return Ue(this,function c(){var d;return xa(c,function(e){if(1==e.u)return sa(e,js.open(),2);d=e.B;return e["return"](Vr(d,["databases"],"readwrite",function(f){var h=Xr(f,"databases");return h.get(a.actualName).then(function(l){if(l?a.actualName!==l.actualName||a.publicName!==l.publicName||a.userIdentifier!==l.userIdentifier||a.signedIn!==l.signedIn||a.clearDataOnAuthChange!==l.clearDataOnAuthChange:1)return Wr(h,a).then(function(){})})}))})})};
ls=function(a){return Ue(this,function c(){var d;return xa(c,function(e){if(1==e.u)return sa(e,js.open(),2);d=e.B;return e["return"](d["delete"]("databases",a))})})};
Fea=function(){return Ue(this,function b(){var c,d;return xa(b,function(e){switch(e.u){case 1:if($q&&Xq()&&!Yq()&&!g.wo("ytidb_allow_on_ios_safari_v8_and_v9")||g.ms)return e["return"](!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e["return"](!1)}catch(f){return e["return"](!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e["return"](!1);e.C=2;d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0,
signedIn:!1};return sa(e,ks(d),4);case 4:return sa(e,ls("yt-idb-test-do-not-use"),5);case 5:return e["return"](!0);case 2:return ua(e),e["return"](!1)}})})};
os=function(){if(void 0!==ns)return ns;lr=!0;return ns=Fea().then(function(a){lr=!1;return a})};
ps=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
rs=function(a){if(void 0===qs)throw new pr("AUTH_INVALID");if(void 0===qs)throw Error("Datasync ID not set");var b=qs;return{actualName:a+":"+b,publicName:a,userIdentifier:b,signedIn:"LOGGED_OUT"!==b}};
us=function(a,b,c,d){var e;return Ue(this,function h(){var l,m;return xa(h,function(n){switch(n.u){case 1:return sa(n,ts(),2);case 2:return ps(a),c?l={actualName:a,publicName:a,userIdentifier:void 0,signedIn:!1}:l=rs(a),l.clearDataOnAuthChange=null!==(e=d.clearDataOnAuthChange)&&void 0!==e?e:!1,n.C=3,sa(n,ks(l),5);case 5:return sa(n,gs(l.actualName,b,d),6);case 6:return n["return"](n.B);case 3:return m=ua(n),n.C=7,sa(n,ls(l.actualName),9);case 9:ta(n,8);break;case 7:ua(n);case 8:throw m;}})})};
ts=function(){return Ue(this,function b(){var c;return xa(b,function(d){if(1==d.u)return sa(d,os(),2);c=d.B;if(!c)throw new pr("IDB_NOT_SUPPORTED");d.u=0})})};
Gea=function(a,b,c){c=void 0===c?{}:c;return us(a,b,!1,c)};
Hea=function(a,b,c){c=void 0===c?{}:c;return us(a,b,!0,c)};
Iea=function(a,b){b=void 0===b?{}:b;return Ue(this,function d(){var e;return xa(d,function(f){return 1==f.u?(ps(a),sa(f,ts(),2)):3!=f.u?(e=rs(a),sa(f,hs(e.actualName,b),3)):sa(f,ls(e.actualName),0)})})};
Jea=function(a,b){b=void 0===b?{}:b;return Ue(this,function d(){return xa(d,function(e){return 1==e.u?(ps(a),sa(e,ts(),2)):3!=e.u?sa(e,hs(a,b),3):sa(e,ls(a),0)})})};
vs=function(a,b){is.call(this,a,b);this.options=b;ps(a)};
ws=function(){rr.call(this,function(){});
throw Error("Not allowed to instantiate the thennable outside of the core library.");};
ys=function(){xs||(xs=new Bq("yt.offline"));return xs};
As=function(){g.$l.call(this);this.D=this.F=this.u=!1;this.C=zs();Kea(this);Lea(this)};
zs=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
Lea=function(a){window.addEventListener("online",function(){a.C=!0;a.u&&a.dispatchEvent("ytnetworkstatus-online");Bs(a);if(a.D&&g.wo("offline_error_handling")){var b=ys().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.nr(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;g.M(d)}ys().set("errors",{},2592E3,!0)}}})};
Kea=function(a){window.addEventListener("offline",function(){a.C=!1;a.u&&a.dispatchEvent("ytnetworkstatus-offline");Bs(a)})};
Bs=function(a){a.F&&(g.Go(new g.nr("NetworkStatusManager state did not match poll",(0,g.N)()-0)),a.F=!1)};
Ds=function(a){a=void 0===a?{}:a;g.$l.call(this);var b=this;this.C=this.F=0;As.u||(As.u=new As);this.u=As.u;this.u.u=!0;a.CL&&(this.u.D=!0);a.Sv?(this.Sv=a.Sv,this.u.xa("ytnetworkstatus-online",function(){Cs(b,"publicytnetworkstatus-online")}),this.u.xa("ytnetworkstatus-offline",function(){Cs(b,"publicytnetworkstatus-offline")})):(this.u.xa("ytnetworkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),this.u.xa("ytnetworkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")}))};
Cs=function(a,b){a.Sv?a.C?(g.wp(a.F),a.F=g.tp(function(){a.D!==b&&(a.dispatchEvent(b),a.D=b,a.C=(0,g.N)())},a.Sv-((0,g.N)()-a.C))):(a.dispatchEvent(b),a.D=b,a.C=(0,g.N)()):a.dispatchEvent(b)};
Fs=function(a,b){b=void 0===b?{}:b;os().then(function(){Es||(Es=new Ds({CL:!0}));Es.u.C!==zs()&&g.Go(new g.nr("NetworkStatusManager isOnline does not match window status"));g.sq(a,b)})};
Gs=function(a,b){b=void 0===b?{}:b;os().then(function(){g.sq(a,b)})};
Mea=function(a,b){b=void 0===b?{}:b;os().then(function(){g.sq(a,b)})};
g.Hs=function(a){this.Zf=null;a?this.Zf=a:wq()&&(this.Zf=g.Lp())};
g.Np=function(a,b,c,d){!g.L("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&g.Go(new g.nr("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.nr("innertube xhrclient not ready",b,c,d),g.M(a),a;var e={headers:{"Content-Type":"application/json"},method:"POST",pc:c,NG:"JSON",Cg:function(){d.Cg()},
UF:d.Cg,onSuccess:function(l,m){if(d.onSuccess)d.onSuccess(m)},
k5:function(l){if(d.onSuccess)d.onSuccess(l)},
onError:function(l,m){if(d.onError)d.onError(m)},
j5:function(l){if(d.onError)d.onError(l)},
timeout:d.timeout,withCredentials:!0};c="";var f=a.Zf.VD;f&&(c=f);f=rea(a.Zf.XD||!1,c,d);Object.assign(e.headers,f);e.headers.Authorization&&!c&&(e.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.Zf.innertubeApiVersion+"/"+b;f={alt:"json"};a.Zf.WD&&e.headers.Authorization||(f.key=a.Zf.innertubeApiKey);var h=g.cq(""+c+b,f);os().then(function(){try{g.wo("use_fetch_for_op_xhr")?nea(h,e):g.wo("networkless_gel")&&d.retry?(e.method="POST",!d.QS&&g.wo("nwl_send_fast_on_unload")?Mea(h,e):Fs(h,
e)):(e.method="POST",e.pc||(e.pc={}),g.sq(h,e))}catch(l){if("InvalidAccessError"==l.name)g.Go(Error("An extension is blocking network request."));else throw l;}})};
g.ir=function(a,b,c){c=void 0===c?{}:c;var d=g.Hs;g.L("ytLoggingEventsDefaultDisabled",!1)&&g.Hs==g.Hs&&(d=null);Tp(a,b,d,c)};
Is=function(a){for(var b=g.q(Nea),c=b.next();!c.done;c=b.next())if(c=c.value,c.Uz[a.name])for(var d=g.q(c.Uz[a.name]),e=d.next();!e.done;e=d.next()){var f=e.value;if(e=a.message.match(f.lh)){a.params["params.error.original"]=e[0];d=f.groups;f={};for(var h=0;h<d.length;h++)f[d[h]]=e[h+1],a.params["params.error."+d[h]]=e[h+1];a.message=c.AE(f);break}}return a};
Oea=function(){this.Mn=[];this.Nm=[]};
Ks=function(){Js||(Js=new Oea);return Js};
Ls=function(a){return"msg="+a.Nm.length+"&cb="+a.Mn.length};
Pea=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=Ms(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=Ms(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Ms(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)};
Ms=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};
Os=function(a,b,c,d){c+="."+a;a=Ns(b);d[c]=a;return c.length+a.length};
Ns=function(a){return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)};
Ps=function(a,b){var c=hba(a),d=c.message||"Unknown Error",e=c.name||"UnknownError",f=c.stack||a.u||"Not available";if(f.startsWith(e+": "+d)){var h=f.split("\n");h.shift();f=h.join("\n")}h=c.lineNumber||"Not available";c=c.fileName||"Not available";if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var l=0,m=0;m<a.args.length;m++){var n=a.args[m],p="params."+m;l+=p.length;if(n)if(Array.isArray(n)){var r=b,t=l;for(l=0;l<n.length&&!(n[l]&&(t+=Os(l,n[l],p,r),500<t));l++);l=t}else if("object"===
typeof n)for(r in r=void 0,t=b,n){if(n[r]){var w=r;var x=n[r],y=t;w="string"!==typeof x||"clickTrackingParams"!==w&&"trackingParams"!==w?0:(x=Pea(atob(x.replace(/-/g,"+").replace(/_/g,"/"))))?Os(w+".ve",x,p,y):0;l+=w;l+=Os(r,n[r],p,t);if(500<l)break}}else b[p]=Ns(n),l+=b[p].length;else b[p]=Ns(n),l+=b[p].length;if(500<=l)break}else if(a.hasOwnProperty("params")&&a.params)if(n=a.params,"object"===typeof a.params)for(m in p=0,n){if(n[m]&&(r="params."+m,t=Ns(n[m]),b[r]=t,p+=r.length+t.length,500<p))break}else b.params=
Ns(n);navigator.vendor&&!b.hasOwnProperty("vendor")&&(b["device.vendor"]=navigator.vendor);d={message:d,name:e,lineNumber:h,fileName:c,stack:f,params:b,sampleWeight:1};e=Number(a.columnNumber);isNaN(e)||(d.lineNumber=d.lineNumber+":"+e);if(void 0!==a.sampleWeight)e=a.sampleWeight;else a:{e=Ks();h=g.q(e.Nm);for(c=h.next();!c.done;c=h.next())if(c=c.value,d.message&&d.message.match(c.FL)){e=c.weight;break a}e=g.q(e.Mn);for(h=e.next();!h.done;h=e.next())if(h=h.value,h.callback(d)){e=h.weight;break a}e=
1}d.sampleWeight=e;return d};
hr=function(a){g.Qs(a)};
g.gr=function(a){g.Qs(a,"WARNING")};
g.Qs=function(a,b){var c=void 0===c?{}:c;c.name=g.L("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.L("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0);c=c||{};var d=void 0===b?"ERROR":b;d=void 0===d?"ERROR":d;if(a){if(g.wo("console_log_js_exceptions")){var e=[];e.push("Name: "+a.name);e.push("Message: "+a.message);a.hasOwnProperty("params")&&e.push("Error Params: "+JSON.stringify(a.params));e.push("File name: "+a.fileName);e.push("Stacktrace: "+a.stack);window.console.log(e.join("\n"),a)}if(!(5<=Rs||(g.wo("kevlar_js_fixes")?
(c=Is(Ps(a,c)),c.params||(c.params={}),e=Ks(),c.params["params.errorServiceSignature"]=Ls(e),c.params["params.serviceWorker"]="false",c.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length)):c=Is(Ps(a,c)),window.yterr&&"function"===typeof window.yterr&&window.yterr(c),e=g.wo("kevlar_js_fixes")?0===c.sampleWeight:0<=c.stack.indexOf("/YouTubeCenter.js")||0<=c.stack.indexOf("/mytube.js"),Ss.has(c.message)||e))){"ERROR"===d?(Ts.V("handleError",c),g.wo("record_app_crashed_web")&&
0===Us&&g.ir("appCrashed",{appCrashType:"APP_CRASH_TYPE_BREAKPAD"}),Us++):"WARNING"===d&&Ts.V("handleWarning",c);if(g.wo("kevlar_gel_error_routing")){var f=d;a:{e=g.q(Qea);for(var h=e.next();!h.done;h=e.next())if(Pq(h.value.toLowerCase())){e=!0;break a}e=!1}if(!e){h={stackTrace:c.stack};c.fileName&&(h.filename=c.fileName);e=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):[];0!==e.length&&(1!==e.length||isNaN(Number(e[0]))?2!==e.length||isNaN(Number(e[0]))||isNaN(Number(e[1]))||(h.lineNumber=
Number(e[0]),h.columnNumber=Number(e[1])):h.lineNumber=Number(e[0]));e={level:"ERROR_LEVEL_UNKNOWN",message:c.message,errorClassName:c.name,sampleWeight:c.sampleWeight};"ERROR"===f?e.level="ERROR_LEVEL_ERROR":"WARNING"===f&&(e.level="ERROR_LEVEL_WARNNING");f={isObfuscated:!0,browserStackInfo:h};h={pageUrl:window.location.href};g.L("FEXP_EXPERIMENTS")&&(h.experimentIds=g.L("FEXP_EXPERIMENTS"));h.kvPairs=g.wo("kevlar_js_fixes")?[]:[{key:"client.params.errorServiceSignature",value:Ls(Ks())},{key:"client.params.serviceWorker",
value:"false"}];var l=c.params;if(l)for(var m=g.q(Object.keys(l)),n=m.next();!n.done;n=m.next())n=n.value,h.kvPairs.push({key:"client."+n,value:String(l[n])});l=g.L("SERVER_NAME",void 0);m=g.L("SERVER_VERSION",void 0);l&&m&&(h.kvPairs.push({key:"server.name",value:l}),h.kvPairs.push({key:"server.version",value:m}));g.ir("clientError",{errorMetadata:h,stackTrace:f,logMessage:e});Ip()}}if(!g.wo("suppress_error_204_logging")){e=c.params||{};d={sj:{a:"logerror",t:"jserror",type:c.name,msg:c.message.substr(0,
250),line:c.lineNumber,level:d,"client.name":e.name},pc:{url:g.L("PAGE_NAME",window.location.href),file:c.fileName},method:"POST"};e.version&&(d["client.version"]=e.version);if(d.pc){c.stack&&(d.pc.stack=c.stack);f=g.q(Object.keys(e));for(h=f.next();!h.done;h=f.next())h=h.value,d.pc["client."+h]=e[h];if(e=g.L("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(f=g.q(Object.keys(e)),h=f.next();!h.done;h=f.next())h=h.value,d.pc[h]=e[h];e=g.L("SERVER_NAME",void 0);f=g.L("SERVER_VERSION",void 0);e&&
f&&(d.pc["server.name"]=e,d.pc["server.version"]=f)}g.sq(g.L("ECATCHER_REPORT_HOST","")+"/error_204",d)}Ss.add(c.message);Rs++}}};
Rea=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];a.args||(a.args=[]);a.args.push.apply(a.args,g.ma(c))};
Vs=function(){this.Nd=!1;this.u=null};
Ws=function(a,b,c,d,e){e=e?window.trayride.ad:window.botguard.bg;if(d)try{a.u=new e(b,c?function(){return c(b)}:g.Ka)}catch(f){g.gr(f)}else{try{a.u=new e(b)}catch(f){g.gr(f)}c&&c(b)}};
Sea=function(a){var b=Xs;a=void 0===a?{}:a;return b.u?Promise.race([new Promise(function(c,d){setTimeout(function(){setTimeout(function(){setTimeout(function(){d(Error("Timed out waiting for snapshot"))},0)},0)},g.xo("botguard_async_snapshot_timeout_ms",3E3),null)}),
new Promise(function(c){return b.u.hot?b.u.hot(c,!0,a):b.u.invoke(c,!0,a)})]):Promise.resolve(null)};
Ys=function(){return g.zq("CONSENT","").startsWith("YES+")};
$s=function(){if(!g.wo("disable_ad_status_on_html5_clients")&&(!g.wo("condition_ad_status_fetch_on_consent_cookie_html5_clients")||Ys())&&"1"!=g.Mb(g.L("PLAYER_CONFIG",{}),"args","privembed")){var a=function(){Zs=!0;"google_ad_status"in window?to("DCLKSTAT",1):to("DCLKSTAT",2)};
try{g.To("//static.doubleclick.net/instream/ad_status.js",a)}catch(b){}Tea.push(g.tp(function(){if(!(Zs||"google_ad_status"in window)){try{if(a){var b=""+g.Ra(a),c=Vo[b];c&&g.Po(c)}}catch(d){}Zs=!0;to("DCLKSTAT",3)}},5E3))}};
bt=function(a,b){var c=g.Ub(b),d;return Bm(new qm(function(e,f){c.onSuccess=function(h){g.mq(h)?e(h):f(new at("Request failed, status="+lq(h),"net.badstatus",h))};
c.onError=function(h){f(new at("Unknown request error","net.unknown",h))};
c.Cg=function(h){f(new at("Request timed out","net.timeout",h))};
d=g.sq(a,c)}),function(e){e instanceof Gm&&d.abort();
return vm(e)})};
g.ct=function(a,b,c,d){function e(h,l,m){return Bm(h,function(n){return 0>=l||403===lq(n.xhr)?vm(new at("Request retried too many times","net.retryexhausted",n.xhr)):f(m).then(function(){return e(bt(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(h){return new qm(function(l){setTimeout(l,h)})}
return e(bt(a,b),c-1,d)};
at=function(a,b,c){Xa.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
dt=function(){this.Ja=0;this.u=null};
et=function(a){var b=new dt;a=void 0===a?null:a;b.Ja=2;b.u=void 0===a?null:a;return b};
ft=function(a){var b=new dt;a=void 0===a?null:a;b.Ja=1;b.u=void 0===a?null:a;return b};
ht=function(a){Xa.call(this,a.message||a.description||a.name);this.isMissing=a instanceof gt;this.isTimeout=a instanceof at&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Gm};
gt=function(){Xa.call(this,"Biscotti ID is missing from server")};
Uea=function(){if(g.wo("disable_biscotti_fetch_on_html5_clients"))return vm(Error("Fetching biscotti ID is disabled."));if(g.wo("condition_biscotti_fetch_on_consent_cookie_html5_clients")&&!Ys())return vm(Error("User has not consented - not fetching biscotti id."));if("1"===g.Mb(g.L("PLAYER_CONFIG",{}),"args","privembed"))return vm(Error("Biscotti ID is not available in private embed mode"));it||(it=Bm(bt("//googleads.g.doubleclick.net/pagead/id",jt).then(kt),function(a){return lt(2,a)}));
return it};
kt=function(a){a=a.responseText;if(!kc(a,")]}'"))throw new gt;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new gt;a=a.id;Vp(a);it=ft(a);mt(18E5,2);return a};
lt=function(a,b){var c=new ht(b);Vp("");it=et(c);0<a&&mt(12E4,a-1);throw c;};
mt=function(a,b){g.Ho(function(){Bm(bt("//googleads.g.doubleclick.net/pagead/id",jt).then(kt,function(c){return lt(b,c)}),g.Ka)},a)};
nt=function(){try{var a=g.Ja("yt.ads.biscotti.getId_");return a?a():Uea()}catch(b){return vm(b)}};
g.pt=function(){this.u=g.L("ALT_PREF_COOKIE_NAME","PREF");this.B=g.L("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.zq(this.u);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])&&(ot[d]=c.toString())}}};
g.rt=function(a,b){return!!((qt("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
tt=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
ut=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
qt=function(a){a=void 0!==ot[a]?ot[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Xea=function(){var a=void 0===a?window.location.href:a;if(g.wo("kevlar_disable_theme_param"))return null;var b=sd(g.ud(5,a));if(Vea(b))return"USER_INTERFACE_THEME_DARK";try{var c=g.aq(a).theme;return Wea.get(c)||null}catch(d){}return null};
Vea=function(a){var b=Yea.map(function(c){return c.toLowerCase()});
return!g.wo("disable_dark_fashion_destination_launch")&&b.some(function(c){return a.toLowerCase().startsWith(c)})?!0:!1};
vt=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()};
zt=function(a){var b;wt()?xt()==a&&(b=document):b=a;return b&&(a=Yo(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
At=function(a){return g.fb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Zea=function(){var a=document;return g.fb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
wt=function(){return!!Yo(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
xt=function(a){a=void 0===a?!1:a;var b=Yo(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
Bt=function(a){g.B.call(this);this.J=[];this.Ha=a||this};
Ct=function(a,b,c,d){for(var e=0;e<c.length;e++)a.N(b,c[e],d)};
g.Dt=function(a){for(;a.J.length;){var b=a.J.pop();b.target.removeEventListener(b.name,b.callback)}};
g.O=function(a){a=void 0===a?!1:a;g.B.call(this);this.ra=new g.Ln(a);g.C(this,this.ra)};
Et=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
Ft=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.Jt=function(a,b,c,d){g.O.call(this);this.C=!!b;this.J=a;this.S=c||a;this.P=!!d;this.u=new Bt(this);g.C(this,this.u);this.F=this.K=null;this.D=this.B=!1;b&&(g.xe&&a.setAttribute("draggable","true"),a.style.touchAction="none");Gt(this)};
Kt=function(a,b,c){a.u.N(a.S,b,c,void 0,!a.C)};
Gt=function(a){a.F=null;a.K=null;Kt(a,Lt("over"),a.uF);Kt(a,"touchstart",a.XA);a.C&&Kt(a,Lt("down"),a.RN)};
Mt=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};
Lt=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
Nt=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Ub(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Ub(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
$ea=function(a){a instanceof Nt||(a=new Nt(a));return a};
Pt=function(){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new Uint8Array(16);window.crypto.getRandomValues(b);for(var c=0;c<a.length;c++)a[c]=b[c];return a}catch(e){}a=Array(16);for(b=0;16>b;b++){c=g.A();for(var d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(Ot)for(b=1,c=0;c<Ot.length;c++)a[b%16]=a[b%16]^a[(b-1)%16]/4^Ot.charCodeAt(c),b++;return a};
Qt=function(){for(var a=Pt(),b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Rt=function(){return g.Mc(Pt(),function(a){return(a&15).toString(16)}).join("")};
St=function(a){this.u=a};
g.Tt=function(a){return new St({trackingParams:a})};
bfa=function(a){var b=afa++;return new St({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0})};
Ut=function(a){a=void 0===a?0:a;return 0==a?"client-screen-nonce":"client-screen-nonce."+a};
Vt=function(a){a=void 0===a?0:a;return 0==a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Wt=function(a){return g.L(Vt(void 0===a?0:a),void 0)};
g.Xt=function(a){return(a=Wt(void 0===a?0:a))?new St({veType:a,youtubeData:void 0}):null};
Yt=function(){var a=g.L("csn-to-ctt-auth-info");a||(a={},to("csn-to-ctt-auth-info",a));return a};
g.Zt=function(a){a=void 0===a?0:a;var b=g.L(Ut(a));if(!b&&!g.L("USE_CSN_FALLBACK",!0))return null;b||0!=a||(b="UNDEFINED_CSN");return b?b:null};
cfa=function(a,b,c){var d=Yt();(c=g.Zt(c))&&delete d[c];b&&(d[a]=b)};
$t=function(a){return Yt()[a]};
bu=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.L(Ut(c))||b!==g.L(Vt(c)))if(cfa(a,d,c),to(Ut(c),a),to(Vt(c),b),0==c||g.wo("web_screen_associated_all_layers"))b=function(){setTimeout(function(){a&&Tp("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:au,clientScreenNonce:a},g.Hs)},0)},"requestAnimationFrame"in window?window.requestAnimationFrame(b):b()};
cu=function(a){Cq.call(this,1,arguments);this.csn=a};
g.eu=function(a,b,c,d){c={csn:b,parentVe:c.getAsJson(),childVes:g.Mc(d,function(f){return f.getAsJson()})};
d=g.q(d);for(var e=d.next();!e.done;e=d.next())e=e.value.getAsJson(),(g.Rb(e)||!e.trackingParams&&!e.veType)&&g.gr(Error("Child VE logged with no data"));d={Hi:$t(b),rk:b};"UNDEFINED_CSN"==b?du("visualElementAttached",c,d):a?Tp("visualElementAttached",c,a,d):g.ir("visualElementAttached",c,d)};
g.fu=function(a,b,c){var d=g.wo("use_default_events_client")?void 0:g.Hs;b={csn:a,ve:b.getAsJson(),eventType:1};c&&(b.clientData=c);c={Hi:$t(a),rk:a};"UNDEFINED_CSN"==a?du("visualElementShown",b,c):d?Tp("visualElementShown",b,d,c):g.ir("visualElementShown",b,c)};
gu=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={Hi:$t(b),rk:b,gK:d};"UNDEFINED_CSN"==b?du("visualElementHidden",c,d):a?Tp("visualElementHidden",c,a,d):g.ir("visualElementHidden",c,d)};
hu=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={Hi:$t(b),rk:b};"UNDEFINED_CSN"==b?du("visualElementGestured",c,d):a?Tp("visualElementGestured",c,a,d):g.ir("visualElementGestured",c,d)};
dfa=function(){return g.rf(Math.random()+"")};
du=function(a,b,c){iu.push({payloadName:a,payload:b,options:c});ju||(ju=Kq(ku,efa))};
efa=function(a){if(iu){for(var b=g.q(iu),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,Tp(c.payloadName,c.payload,null,c.options));iu.length=0}ju=0};
g.lu=function(a,b,c){g.eu(g.wo("use_default_events_client")?void 0:g.Hs,a,b,[c])};
g.mu=function(a,b){var c=g.wo("use_default_events_client")?void 0:g.Hs;g.Cb(b,function(d){d={csn:a,ve:d.getAsJson(),eventType:4};var e={Hi:$t(a),rk:a};"UNDEFINED_CSN"==a?du("visualElementShown",d,e):c?Tp("visualElementShown",d,c,e):g.ir("visualElementShown",d,e)})};
g.nu=function(a,b){var c=g.wo("use_default_events_client")?void 0:g.Hs;g.Cb(b,function(d){gu(c,a,d,void 0,void 0)})};
g.ou=function(a,b,c){hu(g.wo("use_default_events_client")?void 0:g.Hs,a,b,c)};
pu=function(){this.B=new Set;this.u=new Set;this.C=new Map};
g.tu=function(a,b,c){var d=c&&0<c?c:0;c=d?g.A()+1E3*d:0;if((d=d?(0,g.qu)():ru())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.uu=function(a){var b=ru(),c=(0,g.qu)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if("string"!==typeof d)try{d=c.get(a)}catch(e){}if("string"!==typeof d)return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
g.vu=function(a){try{var b=ru(),c=(0,g.qu)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.wu=function(){return g.uu("yt-remote-session-screen-id")};
g.yu=function(a,b,c,d,e){e=void 0===e?"":e;if(a)if(c&&!g.Sq())a&&(a=g.Dc(g.Hc(a)),"about:invalid#zClosurez"===a||a.startsWith("data")?a="":(a=g.$c(bd(a)).toString(),a=jd(g.Kj(a))),g.oc(a)||(a=Be("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),je(a).body.appendChild(a)));else if(e)tq(a,b,"POST",e,d);else if(g.L("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)tq(a,b,"GET","",d);else{b:{try{var f=new jaa({url:a});if(f.C&&f.B||f.D){var h=sd(g.ud(5,a));var l=!(!h||!h.endsWith("/aclk")||
"1"!==Md(a,"ri"));break b}}catch(m){}l=!1}l?xu(a)?(b&&b(),c=!0):c=!1:c=!1;c||ffa(a,b)}};
zu=function(a,b,c){c=void 0===c?"":c;xu(a,c)?b&&b():g.yu(a,b,void 0,void 0,c)};
xu=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
ffa=function(a,b){var c=new Image,d=""+gfa++;Au[d]=c;c.onload=c.onerror=function(){b&&Au[d]&&b();delete Au[d]};
c.src=a};
Du=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!Bu(a)||c.some(function(e){return!Bu(e)}))throw Error("Only objects may be merged.");
c=g.q(c);for(d=c.next();!d.done;d=c.next())Cu(a,d.value);return a};
Cu=function(a,b){for(var c in b)if(Bu(b[c])){if(c in a&&!Bu(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Cu(a[c],b[c])}else if(Eu(b[c])){if(c in a&&!Eu(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Fu(a[c],b[c])}else a[c]=b[c];return a};
Fu=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())d=d.value,Bu(d)?a.push(Cu({},d)):Eu(d)?a.push(Fu([],d)):a.push(d);return a};
Bu=function(a){return"object"===typeof a&&!Array.isArray(a)};
Eu=function(a){return"object"===typeof a&&Array.isArray(a)};
Gu=function(a,b,c,d,e,f){this.startSecs=a;this.durationSecs=b;this.context=c;this.identifier=d;this.event=e;this.u=f};
Iu=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.u=Hu(this,"Sequence-Number");this.J=Hu(this,"Segment-Count");this.K=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=Hu(this,"Ingestion-Walltime-Us")/1E6;this.B=(Hu(this,"First-Frame-Time-Us")+Hu(this,"First-Frame-Uncertainty-Us"))/1E6;this.oh=Hu(this,"Target-Duration-Us")/1E6;this.F="T"===this.data["Stream-Finished"];this.C="T"===this.data.Streamable;this.cryptoPeriodIndex=Hu(this,"Crypto-Period-Index");
this.D=Hu(this,"Crypto-Period-Seconds")};
Ju=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
Hu=function(a,b){return Number(a.data[b])||0};
Ku=function(a,b,c,d,e,f,h,l,m){this.kb=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.B=void 0===m?null:m;this.endTime=b+c;this.u=h||0;this.range=f||null;this.pending=l||!1};
Lu=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
Mu=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);return isNaN(b)||isNaN(c)?null:2===a.length&&(a=new Lu(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null};
Nu=function(a,b){return new Lu(a,a+b-1)};
Ou=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
Ru=function(a,b,c,d,e,f,h,l,m,n,p){this.u=b;this.range=c;this.type=a;this.P="";this.B=-1;this.P=d;this.B=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.C=l||0;this.ob=0<=m?m:this.range?this.range.length:NaN;this.F=!!n;a=this.range?this.C+this.ob==this.range.length:void 0===p?!!this.ob:p;this.D=a;this.range?(this.K=this.startTime+this.duration*this.C/this.range.length,this.S=this.duration*this.ob/this.range.length,this.J=this.K+this.S):Pu(this);this.X=[];3!=this.type||0<=this.B||!this.u.mf()||
g.gr(new g.nr("b168859904",Qu(this)))};
Pu=function(a){a.K=a.startTime;a.S=a.duration;a.J=a.K+a.S};
hfa=function(a,b,c){var d=!(!b||b.u!=a.u||b.type!=a.type||b.B!=a.B);return c?d&&!!b&&(a.range&&b.range?b.range.end==a.range.end:b.range==a.range)&&b.C+b.ob==a.C+a.ob:d};
Su=function(a){return 1==a.type||2==a.type};
Tu=function(a){return 3==a.type||6==a.type};
Uu=function(a,b){return a.u==b.u?a.range&&b.range?a.range.start+a.C+a.ob==b.range.start+b.C:a.B==b.B?a.C+a.ob==b.C:a.B+1==b.B&&0==b.C&&a.D:!1};
Vu=function(a,b){return Uu(a,b)||ce(a.J,b.K)||a.B+1==b.B&&0==b.C&&a.D?!0:!1};
Wu=function(a){return a.B+(a.D?1:0)};
ifa=function(a){1==a.length||g.ph(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new Lu(a[0].range.start+a[0].C,b.range.start+b.C+b.ob-1)};
Qu=function(a){a=Xu(a);var b="";g.Eb(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
Xu=function(a){var b={};b.itag=a.u.info.dc();b.type=a.type;b.seg=String(a.B);a.range&&(b.range=""+(a.range.start+a.C)+"-"+(a.range.start+a.C+a.ob-1));b.time=""+a.K.toFixed(1)+"-"+(a.K+a.S).toFixed(1);b.off=String(a.C);b.len=String(a.ob);a.D&&(b.end="1");a.F&&(b.eos="1");return b};
Yu=function(a,b){var c=b.u;a.P="updateWithEmsg";a.B=c;b.F&&(a.F=b.F)};
Zu=function(a,b){var c=b.kb;a.P="updateWithSegmentInfo";a.B=c;if(a.startTime!=b.startTime||a.duration!=b.duration)a.startTime=b.startTime,a.duration=b.duration,Pu(a)};
$u=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
av=function(a){return String.fromCharCode.apply(null,a)};
bv=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.u=(this.B=e)?0:8;this.dataOffset=this.offset+this.u};
cv=function(a){var b=a.data.getUint8(a.offset+a.u);a.u+=1;return b};
dv=function(a){var b=a.data.getUint16(a.offset+a.u);a.u+=2;return b};
ev=function(a){var b=a.data.getInt32(a.offset+a.u);a.u+=4;return b};
fv=function(a){var b=a.data.getUint32(a.offset+a.u);a.u+=4;return b};
gv=function(a){var b=a.data;var c=a.offset+a.u;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.u+=8;return b};
hv=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.u;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;var d=new Uint8Array(a.data.buffer,a.offset+a.u+a.data.byteOffset,c-a.u);a.u=Math.min(c+1,a.size);return av(d)};
jfa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
iv=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};
kfa=function(a,b){this.u=a;this.duration=b};
jv=function(a,b,c,d,e){this.B=e;this.u=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
kv=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};
mv=function(a,b){var c=g.lv(a,0,1952868452),d=g.lv(a,0,1953658222);if(c&&d){c.skip(1);var e=cv(c)<<16|dv(c);c.skip(4);e&1&&c.skip(8);e&2&&c.skip(4);if(e&8){e=c.u;var f=fv(c);c.data.setUint32(c.offset+e,1<b?Math.ceil(f*b):Math.floor(f*b))}d.skip(1);c=cv(d)<<16|dv(d);if(c&256){e=c&1;f=c&4;var h=c&512,l=c&1024,m=c&2048;c=fv(d);e&&d.skip(4);f&&d.skip(4);e=(h?4:0)+(l?4:0)+(m?4:0);for(f=0;f<c;f++)h=d.u,l=fv(d),d.data.setUint32(d.offset+h,1<b?Math.ceil(l*b):Math.floor(l*b)),d.skip(e)}}};
ov=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.lv(a,0,1836476516))?nv(a):NaN};
lfa=function(a){var b=g.lv(a,0,1937011556);if(!b)return null;b=pv(a,b.dataOffset+8,1635148593);if(!b)return null;var c=pv(a,b.dataOffset+78,1936995172),d=pv(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),cv(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=pv(a,d.dataOffset,1886547818)){var h=pv(a,d.dataOffset,1886546020),l=pv(a,d.dataOffset,2037673328);if(!l&&(l=pv(a,d.dataOffset,1836279920),!l))return null;h&&(h.skip(4),c=
ev(h)/65536,f=ev(h)/65536,e=ev(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new jv(b,c,f,e,a)}return null};
pv=function(a,b,c){for(;qv(a,b);){var d=rv(a,b);if(d.type===c)return d;b+=d.size}return null};
g.lv=function(a,b,c){for(;qv(a,b);){var d=rv(a,b);if(d.type===c)return d;b=tv(d.type)?b+8:b+d.size}return null};
uv=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)};
rv=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new bv(a,b,c,d)};
nv=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
vv=function(a){a=new bv(a.data,a.offset,a.size,a.type,a.B);var b=cv(a);a.skip(7);var c=fv(a);if(0===b){b=fv(a);var d=fv(a)}else b=gv(a),d=gv(a);a.skip(2);for(var e=dv(a),f=[],h=[],l=0;l<e;l++){var m=fv(a);f.push(m);h.push(fv(a));a.skip(4)}return{uw:c,fK:b,VC:d,gA:f,qw:h}};
qv=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};
tv=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
wv=function(a){a.skip(4);return{B:hv(a,0),value:hv(a,0),uw:fv(a),D:fv(a),C:fv(a),id:fv(a),u:hv(a),offset:a.offset}};
xv=function(a,b){for(var c=pv(a,0,b);c;)c.markAsSkip(),c=pv(a,c.offset+c.size,b)};
yv=function(a,b){for(var c=0,d=[];qv(a,c);){var e=rv(a,c);e.type===b&&d.push(e);c=tv(e.type)?c+8:c+e.size}return d};
mfa=function(a,b){var c=g.lv(a,0,1937011556),d=g.lv(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.lv(e,0,1937011556);if(!f)return null;d=e.getUint32(f.dataOffset+8);var h=e.getUint32(f.dataOffset+12);if(1701733217!==h&&1701733238!==h)return null;h=new jfa(a.byteLength+d);iv(h,a,0,c.offset+12);h.data.setInt32(h.offset,2);h.offset+=4;iv(h,a,c.offset+16,c.size-16);iv(h,e,e.byteOffset+f.dataOffset+8,d);iv(h,a,c.offset+c.size,
a.byteLength-(c.offset+c.size));c=g.q([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.lv(a,0,e.value),h.data.setUint32(e.offset,e.size+d);if(zv)return h.data;d=g.lv(h.data,0,1953654136);h.data.setUint32(d.offset+16,2);return h.data};
Av=function(a,b){this.B=a;this.u=0;this.start=b||0};
Bv=function(a){return a.u>=a.B.byteLength};
Hv=function(a,b,c){var d=new Av(c);if(!Cv(d,a))return!1;d=Dv(d);if(!Ev(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.u;var e=Fv(d,!0);d=a+(d.start+d.u-b)+e;d=9<d?Gv(d-9,8):Gv(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
nfa=function(a){var b=new Av(a);Iv(b);if(Cv(b,[408125543,374648427,174,224]))b=Dv(b);else return null;for(var c=a=null;!Bv(b);){var d=Fv(b,!1);if(21432===d)switch(Jv(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=Dv(b):Kv(b)}if(!c)return null;for(var e,f=d=b=null;!Bv(c);)switch(Fv(c,!1)){case 30321:if(3!==Jv(c))return null;break;case 30324:b=Lv(c);break;case 30323:f=Lv(c);break;case 30325:d=Lv(c);break;case 30322:e=Fv(c,!0);e=Mv(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:Kv(c)}return e?new jv(a,b,f,d,e):null};
Dv=function(a){var b=Fv(a,!0),c=a.B.byteOffset+a.u;c=new DataView(a.B.buffer,c,Math.min(b,a.B.buffer.byteLength-c));c=new Av(c,a.start+a.u);a.u+=b;return c};
Jv=function(a){for(var b=Fv(a,!0),c=Nv(a),d=1;d<b;d++)c=256*c+Nv(a);return c};
Lv=function(a){var b=Fv(a,!0),c=0;4===b?c=a.B.getFloat32(a.u):8===b&&(c=a.B.getFloat64(a.u));a.u+=b;return c};
Ov=function(a){var b=Fv(a,!0);return av(Mv(a,b))};
Nv=function(a){return a.B.getUint8(a.u++)};
Fv=function(a,b){var c=Nv(a);if(1===c){for(var d=c=0;7>d;d++)c=256*c+Nv(a);return c}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+Nv(a),d*=128;return b?c-d:c};
Kv=function(a){var b=Fv(a,!0);a.u+=b};
Iv=function(a){var b=a.u;a.u=0;var c=!1;try{Ev(a,440786851)&&(a.u=0,Ev(a,408125543)&&(c=!0))}catch(d){if(d instanceof RangeError)a.u=0,c=!1,g.Go(d);else throw d;}a.u=b;return c};
ofa=function(a){if(!Ev(a,440786851,!0))return null;var b=a.u;Fv(a,!1);var c=Fv(a,!0)+a.u-b;a.u=b+c;if(!Ev(a,408125543,!1))return null;Fv(a,!0);if(!Ev(a,357149030,!0))return null;var d=a.u;Fv(a,!1);var e=Fv(a,!0)+a.u-d;a.u=d+e;if(!Ev(a,374648427,!0))return null;var f=a.u;Fv(a,!1);var h=Fv(a,!0)+a.u-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.B.buffer,a.B.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);l.set(new Uint8Array(a.B.buffer,
a.B.byteOffset+d,e),c+12);l.set(new Uint8Array(a.B.buffer,a.B.byteOffset+f,h),c+12+e);return l};
Pv=function(a){var b=a.u,c={NA:1E6,OA:1E9,duration:0,qA:0,Tr:0};if(!Ev(a,408125543))return a.u=b,null;c.qA=Fv(a,!0);c.Tr=a.start+a.u;if(Ev(a,357149030))for(var d=Dv(a);!Bv(d);){var e=Fv(d,!1);2807729===e?c.NA=Jv(d):2807730===e?c.OA=Jv(d):17545===e?c.duration=Lv(d):Kv(d)}else return a.u=b,null;a.u=b;return c};
Rv=function(a,b,c){var d=a.u,e=[];if(!Ev(a,475249515))return a.u=d,null;for(var f=Dv(a);Ev(f,187);){var h=Dv(f);if(Ev(h,179)){var l=Jv(h);if(Ev(h,183)){h=Dv(h);for(var m=b;Ev(h,241);)m=Jv(h)+b;e.push({km:m,vt:l})}}}if(0<e.length&&c===e[0].km)for(Qv&&g.Go(Error("opus_oboe")),b=0;b<e.length;b++)e[b].km+=1;a.u=d;return e};
Sv=function(a){var b=a.u;a.u=0;var c=1E6;Cv(a,[408125543,357149030,2807729])&&(c=Jv(a));a.u=b;return c};
pfa=function(a,b){var c=a.u;a.u=0;if(160!==a.B.getUint8(a.u)&&!Tv(a)||!Ev(a,160))return a.u=c,NaN;Fv(a,!0);var d=a.u;if(!Ev(a,161))return a.u=c,NaN;Fv(a,!0);Nv(a);var e=Nv(a)<<8|Nv(a);a.u=d;if(!Ev(a,155))return a.u=c,NaN;d=Jv(a);a.u=c;return(e+d)*b/1E9};
Tv=function(a){if(!Uv(a)||!Ev(a,524531317))return!1;Fv(a,!0);return!0};
Uv=function(a){if(Iv(a)){if(!Ev(a,408125543))return!1;Fv(a,!0)}return!0};
Cv=function(a,b){for(var c=0;c<b.length;c++){if(!Ev(a,b[c]))return!1;c!==b.length-1&&Fv(a,!0)}return!0};
Ev=function(a,b,c){c=void 0===c?!1:c;if(Bv(a))return!1;for(var d=a.u;Fv(a,!1)!==b;)if(Kv(a),d=a.u,Bv(a))return!1;c&&(a.u=d);return!0};
Gv=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};
Mv=function(a,b){var c=new Uint8Array(a.B.buffer,a.B.byteOffset+a.u,b);a.u+=b;return c};
Vv=function(a){var b=this;a=void 0===a?[]:a;this.u=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
Wv=function(a,b){if(0===a.u.length)return!1;var c=a.u[a.u.length-1];return c&&c.buffer===b.buffer&&c.byteOffset+c.length===b.byteOffset};
Xv=function(a,b){for(var c=g.q(b.u),d=c.next();!d.done;d=c.next())a.append(d.value)};
Yv=function(a){a.D=void 0;a.B=0;a.C=0};
Zv=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.u[a.B].length};
$v=function(a){if(!a.D){var b=a.u[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D};
aw=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(!Zv(a,b,c)){var d=a.B,e=a.C;a.focus(b+c-1);e=new Uint8Array(a.C+a.u[a.B].length-e);for(var f=0,h=d;h<=a.B;h++)e.set(a.u[h],f),f+=a.u[h].length;a.u.splice(d,a.B-d+1,e);Yv(a);a.focus(b)}d=a.u[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)};
bw=function(a,b,c){a=aw(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
cw=function(a){a=bw(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};
dw=function(a,b){a.focus(b);return a.u[a.B][b-a.C]};
ew=function(a,b){a.focus(b);return Zv(a,b,4)?$v(a).getUint32(b-a.C):256*(256*(256*dw(a,b)+dw(a,b+1))+dw(a,b+2))+dw(a,b+3)};
fw=function(a,b,c){this.info=a;this.u=b instanceof Vv?b:new Vv([b]);this.u.getLength();this.C=c;this.B=null;this.D=-1;this.F=0};
gw=function(a){return aw(a.u)};
hw=function(a,b){if(1!=a.info.u.info.containerType||0!=a.info.C||!a.info.D)return!0;for(var c=gw(a),d=0,e=0;d+4<c.byteLength;){e=c.getUint32(d);if(!e)return!1;d+=e}return d!==c.byteLength?(b&&(b.lastboxlen=e.toString(),4<=c.byteLength&&(b.lastbytes=c.getUint32(c.byteLength-4).toString()),b.boxlen=d.toString(),b.bytelen=c.byteLength.toString()),!1):!0};
iw=function(a,b,c){var d;if(!(d=!Uu(a.info,b.info)||a.info.D)){if(c=void 0===c?!1:c)c=b.u,c=!(c.u.length?Wv(a.u,c.u[0]):1);d=c}if(d)return null;c=new Ru(a.info.type,a.info.u,a.info.range,a.info.P,a.info.B,a.info.startTime,a.info.duration,a.info.C,a.info.ob,a.info.F,a.info.D);d=b.info;c.ob+=d.ob;c.range&&(c.S+=d.S);c.J=d.J;c.D=d.D;c.F=c.F||d.F;d=new Vv;Xv(d,a.u);Xv(d,b.u);c=new fw(c,d,a.C);c.B=b.B||a.B;if(a=c.info.range)a=c.u,a=!(1===a.u.length&&0<a.u[0].byteOffset);a&&(c.C=!1);return c};
kw=function(a){g.jw(a.info.u.info)||a.info.u.info.Wd();if(-1!=a.D)return a.D;if(a.B&&Ju(a.B))return a.D=Ju(a.B),a.D;if(g.jw(a.info.u.info)){var b=gw(a);for(var c=a.info.u.u,d=NaN,e=NaN,f=0;qv(b,f);){var h=rv(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=nv(h):1952867444===h.type&&isNaN(d)&&(d=uv(h));f=tv(h.type)?f+8:f+h.size}!e&&c&&(e=ov(c));b=d/e}else b=new Av(gw(a)),c=a.C?b:new Av(new DataView(a.info.u.u.buffer)),d=Sv(c),c=b.u,b.u=0,Tv(b)?Ev(b,231)?(d=Jv(b)*d/
1E9,b.u=c,b=d):(b.u=c,b=NaN):(b.u=c,b=NaN);a.D=b||a.info.K;return a.D};
mw=function(a,b){0<a.F&&(b-=a.F);var c=kw(a)+b;lw(a,c);a.F=b};
lw=function(a,b){g.jw(a.info.u.info)||a.info.u.info.Wd();a.D=b;if(g.jw(a.info.u.info)){for(var c=gw(a),d=a.info.u.u,e=NaN,f=NaN,h=0;qv(c,h);){var l=rv(c,h);isNaN(e)&&(1936286840===l.type?e=l.data.getUint32(l.dataOffset+8):1836476516===l.type&&(e=nv(l)));if(1952867444===l.type){!e&&d&&(e=ov(d));var m=uv(l);isNaN(f)&&(f=Math.round(b*e)-m);m+=f;if(l.data.getUint8(l.dataOffset)){var n=l.data,p=l.dataOffset+4;n.setUint32(p,Math.floor(m/4294967296));n.setUint32(p+4,m&4294967295)}else l.data.setUint32(l.dataOffset+
4,m)}h=tv(l.type)?h+8:h+l.size}return!0}c=new Av(gw(a));e=a.C?c:new Av(new DataView(a.info.u.u.buffer));d=b;f=Sv(e);e=c.u;c.u=0;if(Tv(c)&&Ev(c,231))if(h=Fv(c,!0),d=Math.floor(1E9*d/f),Math.ceil(Math.log(d)/Math.log(2)/8)>h)c=!1;else{for(f=h-1;0<=f;f--)c.B.setUint8(c.u+f,d&255),d>>>=8;c.u=e;c=!0}else c=!1;return c};
nw=function(a){g.jw(a.info.u.info)||a.info.u.info.Wd();if(a.B&&6==a.info.type)return a.B.oh;if(g.jw(a.info.u.info)){var b=gw(a);var c=0;b=yv(b,1936286840);b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=vv(d.value),c+=d.qw[0]/d.uw;c=c||NaN;if(!(0<=c))a:{c=gw(a);b=a.info.u.u;for(var e=d=0,f=0;qv(c,d);){var h=rv(c,d);if(1836476516===h.type)e=nv(h);else if(1836019558===h.type){!e&&b&&(e=ov(b));if(!e){c=NaN;break a}var l=pv(h.data,h.dataOffset,1953653094),m=e,n=pv(l.data,l.dataOffset,1952868452);l=pv(l.data,
l.dataOffset,1953658222);var p=ev(n);ev(n);p&2&&ev(n);n=p&8?ev(n):0;var r=ev(l),t=r&1;p=r&4;var w=r&256,x=r&512,y=r&1024;r&=2048;var E=fv(l);t&&ev(l);p&&ev(l);for(var D=t=0;D<E;D++){var G=w?ev(l):n;x&&ev(l);p&&0===D||!y||ev(l);r&&ev(l);t+=G}f+=t/m}d=tv(h.type)?d+8:d+h.size}c=f||NaN}}else c=new Av(gw(a)),b=a.C?c:new Av(new DataView(a.info.u.u.buffer)),c=pfa(c,Sv(b));return c||a.info.S};
ow=function(a){var b=gw(a);var c=(c=g.lv(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.u.u,c=(b=g.lv(b,0,1836476516))?nv(b):a?ov(a):NaN);return c};
pw=function(a){if(!a.B){g.jw(a.info.u.info)||a.info.u.info.Wd();if(g.jw(a.info.u.info)){var b=gw(a),c=pv(b,0,1701671783);if(c){var d=wv(c);var e=d.B;d=kv(d.u);if(b=pv(b,c.offset+c.size,1701671783))if(b=wv(b),b=kv(b.u),d&&b){c=g.q(Object.keys(b));for(var f=c.next();!f.done;f=c.next())f=f.value,d[f]=b[f]}e=d?new Iu(d,e):null}else e=null}else{e=new Av(gw(a));d=e.u;e.u=0;c=b=null;if(Cv(e,[408125543,307544935,29555,26568]))for(f=Dv(e);!Bv(f);){var h=Fv(f,!1);17543===h?c=kv(Ov(f)):17827===h?b=Ov(f):Kv(f)}e.u=
d;e=c?new Iu(c,b):null}a.B=e}};
rw=function(a){a=a.split("");qw.Lv(a,2);qw.dQ(a,77);qw.Lv(a,2);qw.sJ(a,1);qw.sJ(a,8);return a.join("")};
tw=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.gr(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
vw=function(a,b,c){return b&&b.test(a)||uw&&c&&c.test(a)?!0:!1};
xw=function(a){return(a=ww&&ww.exec(a))?a[0]:""};
yw=function(a){var b=void 0===b?!1:b;return tw(vw(a,qfa,rfa),a,b,"Trusted Stream URL")};
g.zw=function(a){var b=void 0===b?!1:b;return tw(vw(a,sfa,tfa),a,b,"Trusted Image URL")};
Aw=function(a){var b=void 0===b?!1:b;return tw(vw(a,ufa,null),a,b,"Trusted Promoted Video Domain URL")};
wfa=function(a){var b=void 0===b?!1:b;return tw(vw(a,vfa,null),a,b,"Drm Licensor URL")};
Bw=function(a,b){b=void 0===b?!1:b;return tw(vw(a,xfa,yfa),a,b,"Captions URL")};
Cw=function(a){a=new g.Pm(a);g.Qm(a,document.location.protocol);g.Rm(a,document.location.hostname);document.location.port&&g.Sm(a,document.location.port);return a.toString()};
Dw=function(a){a=new g.Pm(a);g.Qm(a,document.location.protocol);return a.toString()};
Ew=function(a,b){this.B=a;this.D=void 0===b?!1:b;this.C=this.path=this.scheme="";this.u={};this.url=""};
Fw=function(a){a.url||(a.url=zfa(a));return a.url};
Hw=function(a){Gw(a);return a.C};
Iw=function(a){return a.B?kc(a.B,"local"):"local"===a.scheme};
Jw=function(a){Gw(a);return g.Hb(a.u,function(b){return null!==b})};
Kw=function(a){Gw(a);if("/videoplayback"!==a.path){var b=a.clone();b.set("playerfallback","1");return b}var c=Fw(a);b=new g.Pm(c);var d=a.get("fvip");a=decodeURIComponent(a.get("mn")||"").split(",");if(d&&a&&1<a.length&&a[1])return c=b.u.replace(/^[^.]*/,""),g.Rm(b,"r"+d+"---"+a[1]+c),b=new Ew(b.toString()),b.set("fallback_count","1"),b;d=b.u.match("\\.a1\\.googlevideo\\.com$");b.u.match("\\.googlevideo\\.com$")?(g.Rm(b,"redirector.googlevideo.com"),c=b.toString()):b.u.match("r[1-9].*\\.c\\.youtube\\.com$")?
(g.Rm(b,"www.youtube.com"),c=b.toString()):c=Cw(c);b=new Ew(c);b.set("cmo=pf","1");d&&b.set("cmo=td","a1.googlevideo.com");return b};
Gw=function(a){if(a.B){if(!yw(a.B)&&!a.B.startsWith("local"))throw Error("Untrusted URL: "+a.B);var b=g.Xm(a.B);a.scheme=b.F;a.C=b.u+(null!=b.D?":"+b.D:"");var c=b.B;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.u;a.u=Lw(c);g.Ua(a.u,
Mw(b.C.toString()));g.Ua(a.u,d);"index.m3u8"===a.u.file&&(delete a.u.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(b=a.get("n"))&&(b=Tda(b),a.set("n",b))}};
zfa=function(a){Gw(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(Jw(a)){var c=[];g.Eb(a.u,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
Lw=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&Nw(c,a[b],a[b+1]);return c};
Mw=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?Nw(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
Nw=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};
Ow=function(a){this.qg=a;this.u={};this.url=""};
Pw=function(a,b){var c=b.indexOf("?");if(0<c){var d=Mw(b.substr(c+1));g.Eb(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}c=Lw(b);g.Eb(c,function(e,f){this.set(f,e)},a)};
g.Qw=function(a){a.url||(a.url=Afa(a));return a.url};
Afa=function(a){var b=Fw(a.qg),c=[];g.Eb(a.u,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=Jw(a.qg)?"&":"?";return b+a+d};
Rw=function(a,b){var c=new Ew(b),d=c.get("req_id");d&&a.set("req_id",d);g.Eb(a.u,function(e,f){c.set(f,null)});
return c};
Sw=function(){this.u=.125;this.B=!1;this.C=0;this.kf=!1};
Tw=function(a,b){var c=void 0===b?{}:b,d=void 0===c.hasSubfragmentedFmp4?!1:c.hasSubfragmentedFmp4;c=void 0===c.Ti?!1:c.Ti;var e=new Sw;e.B=a.aa("html5_streaming_xhr_no_mp4_holdback_chunk");e.C=g.P(a.experiments,"html5_time_based_consolidation_ms");a.aa("html5_resume_streaming_requests")&&(e.u=0);e.kf=d||c;return e};
g.Uw=function(){this.D=new Sw;this.vB=this.uB=!1;this.MI=2;this.J=20971520;this.K=8388608;this.F=120;this.Lb=3145728;this.X=62914560;this.Xb=10485760;this.VI=this.nB=this.pg=0;this.JC=!1;this.yb=NaN;this.Fn=0;this.Os=this.kE=2;this.yn=3;this.BB=2;this.Y=2097152;this.AB=1048576;this.la=!1;this.xn=1800;this.HI=5;this.Kg=10;this.S=15;this.vf=1;this.u=1.15;this.B=1.05;this.qB=!0;this.fa=!1;this.CB=.8;this.zv=this.qb=!1;this.Ma=6;this.EH=this.Ba=!1;this.En=.5;this.Ub=0;this.Ms=this.lc=!1;this.Sl=this.Jg=
0;this.TB=2;this.Ta=5E3;this.wu=6;this.na=!1;this.P=.5;this.gd=2;this.Ac=this.NB=0;this.OB=1.5;this.PB=this.Cn=.5;this.Qf=15;this.DI=1;this.EB=this.rB=this.Ai=!1;this.KI=0;this.nu=this.Gj=this.LB=this.yB=this.qH=this.Tl=this.xB=this.tB=!1;this.Ul=0;this.FB=this.lI=this.JB=this.Ge=!1;this.Hg=0;this.jd=this.Pa=this.Gu=this.sE=this.vn=this.ga=this.MB=this.zi=this.HB=!1;this.ra=!0;this.Lg=this.da=this.wB=this.Bl=!1;this.Pt=!0;this.zn=!1;this.C="";this.Bn=!1;this.bO=1048576;this.lH=this.pB=this.Dd=this.Bh=
!1;this.Ig=46800;this.Za=this.xt=this.Ns=this.Lf=this.Rf=!1;this.jE=!0;this.Et=this.Ts=this.zB=this.DB=this.Dn=this.Rs=this.Ps=this.KB=!1;this.Ha=0;this.vu="";this.Ys=this.Qs=!1;this.vb=!0;this.Gp=this.oB=this.yv=this.JD=this.Vl=!1;this.ng=0;this.SC=this.ZH=this.An=!1};
Bfa=function(a,b){1080<b.Na().Cc&&!a.uB&&(a.J=36700160,a.K=5242880,a.Lb=10485760,a.Y=4194304,a.uB=!0);2160<b.Na().Cc&&!a.vB&&(a.J=104857600,a.yb=13107200,a.vB=!0);a.AB=Math.max(65536,Math.min(a.Y,5*b.yb))};
Cfa=function(){this.C=this.u=this.B=this.started=this.D=0};
Dfa=function(a){a.D=(0,g.N)();a.started+=1};
Vw=function(a){return Math.pow(1.6,a.started+a.C+4*a.u)};
Ww=function(a,b){a[b]||(a[b]=new Cfa);return a[b]};
Efa=function(a){this.C=null;this.F=this.B=0;this.u=a;this.D=a.clone()};
Yw=function(a,b,c){var d=Ww(c,Hw(a.u));if(d.B>=b.TB||1<=d.u)if(a=Xw(a),c=Ww(c,Hw(a)),c.B+c.u<=d.B+d.u)return!0;return!1};
Ffa=function(a,b){var c=b?Xw(a):a.u;return new Ow(c)};
Xw=function(a){a.C||(a.C=Kw(a.D));return a.C};
Zw=function(a){return 1<a.B?a.F+1E3*Math.pow(1.6,a.B-1)<(0,g.N)():!0};
g.$w=function(a,b,c){b.qg===a.u&&(a.u=Rw(b,c));b.qg===a.C&&(a.C=Rw(b,c))};
ax=function(a,b){this.B=a[0].u.B;this.C=b||"";this.F="";this.u=a;this.range=this.u[0].range&&0<this.u[0].ob?ifa(this.u):null;this.D=this.ae=NaN;this.J=this.requestId=null};
bx=function(a){return!Su(a.u[a.u.length-1])};
cx=function(a){return 4==a.u[a.u.length-1].type};
g.dx=function(a,b,c){if(a.F){var d=new Ow(new Ew(a.F));a.C&&Pw(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new Ow(new Ew(a.C)):(b=null===a.J?Yw(a.B,b,c):a.J,d=Ffa(a.B,b),a.C&&Pw(d,a.C));(b=a.range)&&d.set("range",b.toString());a.requestId&&d.set("req_id",a.requestId);isNaN(a.ae)||d.set("headm",a.ae.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.K&&g.Eb(a.K,function(e,f){d.set(f,e)});
return d};
Fx=function(a){if(a.range)return a.range.length;a=a.u[0];return Math.round(a.S*a.u.info.yb)};
Gx=function(a,b,c){var d=null,e=a.u[0];if(a.range)d=Nu(a.range.start,Math.min(4096,a.range.length));else if(c){if(a.C&&0<=a.C.indexOf("/range/")||"1"==a.B.D.get("defrag")||"1"==a.B.D.get("otf"))return null;d=Nu(0,4096)}else if(e.u.info.video)return null;c=new Ru(5,e.u,d,"createProbeRequestInfo_"+e.P,e.B);a=new ax([c],a.C);a.J=b;return a};
Hx=function(a,b,c,d){this.sampleRate=a||0;this.u=b||0;this.spatialAudioType=c||0;this.itag=d||""};
Kx=function(a,b,c,d,e,f,h,l,m,n){this.width=a;this.height=b;this.isAccelerated=!1;this.quality=f||Ix(a,b);this.Cc=g.Jx[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.Jx[this.quality],0===a?a="\u81ea\u52d5":(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||"";this.streamType=n||0};
Lx=function(a){return 1280<=a.width||720<=a.height};
Ix=function(a,b){for(var c=Math.max(a,b),d=Math.min(a,b),e=Mx[0],f=0;f<Mx.length;f++){var h=Mx[f],l=g.Jx[h];if(c>=1.3*Math.floor(16*l/9)||d>=1.3*l)return e;e=h}return"tiny"};
Px=function(a,b,c,d,e,f,h,l,m){this.id=a;this.mimeType=b;this.audio=void 0===c?null:c;this.video=void 0===d?null:d;this.u=void 0===e?null:e;this.Sd=void 0===f?null:f;this.captionTrack=void 0===m?null:m;this.D=!0;this.B=null;this.containerType=Nx(b);this.yb=h||0;this.C=l||0;this.Bb=Ox[this.dc()]||""};
Qx=function(a){return"9"===a.Bb||"("===a.Bb||"9h"===a.Bb||"(h"===a.Bb};
Rx=function(a){return"9h"===a.Bb||"(h"===a.Bb};
Sx=function(a){return"1"===a.Bb};
g.jw=function(a){return 1===a.containerType};
Tx=function(a){return"application/x-mpegURL"===a.mimeType};
Ux=function(a){return a.includes("vtt")||a.includes("text/mp4")};
Nx=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};
Vx=function(a,b,c,d,e){var f=new Hx;b in g.Jx||(b="small");d&&e?(e=Number(e),d=Number(d)):(e=g.Jx[b],d=Math.round(16*e/9));d=new Kx(d,e,0,null,void 0,b,void 0,void 0,void 0);a=unescape(a.replace(/"/g,'"'));return new Px(c,a,f,d)};
Wx=function(a,b,c,d){this.info=b;this.initRange=c||null;this.indexRange=d||null;this.u=null;this.C=!1;this.F=null;this.S=0;this.B=new Efa(a);this.D=null;this.X=NaN;this.K=null};
g.Xx=function(){this.segments=[]};
Yx=function(a,b){if(b>a.Vb())a.segments=[];else{var c=eb(a.segments,function(d){return d.kb>=b},a);
0<c&&a.segments.splice(0,c)}};
Zx=function(a,b,c,d,e,f){f=void 0===f?0:f;Wx.call(this,a,b,d);this.index=e||new g.Xx;this.oh=f;this.Y=c;this.P=!0;if(this.J=!c)this.C=!0};
g.$x=function(){this.count=0;this.C=1;this.B=!1;this.offsets=new Float64Array(128);this.u=new Float64Array(128)};
ay=function(a){if(a.offsets.length<a.count+1){var b=2*a.offsets.length;b+=2;var c=a.offsets;a.offsets=new Float64Array(b+1);var d=a.u;a.u=new Float64Array(b+1);for(b=0;b<a.count+1;b++)a.offsets[b]=c[b],a.u[b]=d[b]}};
by=function(a,b,c,d,e,f){Wx.call(this,a,b,c||void 0,d||void 0);this.P=null;this.index=new g.$x;this.J=e;this.lastModified=f};
cy=function(a,b,c,d){for(var e=[];b<=a.index.Vb();b++){var f=a.index,h=b;f=Nu(f.Yu(h),h+1<f.count||f.B?f.offsets[h+1]-f.offsets[h]:-1);h=a.index.Re(b);var l=a.index.getDuration(b),m=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+m),p=b==a.index.Vb()&&m+n==f.length;e.push(new Ru(3,a,f,"getRequestInfoForRange_",b,h,l,m,n,p));if(f.start+m+n>=c+d)break}return new ax(e)};
ey=function(){void 0===dy&&(dy=g.ko());return dy};
fy=function(){var a=ey();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
gy=function(a){var b=ey();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
hy=function(a){return fy()[a]||0};
iy=function(){var a=fy();return Object.keys(a)};
jy=function(a){var b=fy();return Object.keys(b).filter(function(c){return b[c]===a})};
ky=function(a,b,c){c=void 0===c?!1:c;var d=fy();if(c&&Object.keys(d).pop()!==a)delete d[a];else if(b===d[a])return;0!==b?d[a]=b:delete d[a];gy(d)};
Gfa=function(a){var b=fy();b=Object.assign({},b);a=Object.assign({},a);for(var c in b)a[c]?(4!==b[c]&&(b[c]=a[c]),delete a[c]):3!==b[c]&&2!==b[c]&&(b[c]=4);Object.assign(b,a);gy(b);JSON.stringify(b);return b};
ly=function(a){return!!a&&1===hy(a)};
Hfa=function(){var a=ey();if(!a)return!1;try{return null!==a.get("yt-player-lv-id")}catch(b){return!1}};
qy=function(){return Ue(this,function b(){var c,d,e,f;return xa(b,function(h){if(1==h.u){c=ey();if(!c)return h["return"](Promise.reject("No LocalStorage"));if(my){h.u=2;return}d=Mq().u(ny);var l=Object.assign({},d);delete l.Authorization;var m=Cl();if(m){var n=new nn;n.update(g.L("INNERTUBE_API_KEY",void 0));n.update(m);l.hash=g.qf(n.digest(),3)}m=new nn;m.update(JSON.stringify(l,Object.keys(l).sort()));l=m.digest();m="";for(n=0;n<l.length;n++)m+="0123456789ABCDEF".charAt(Math.floor(l[n]/16))+"0123456789ABCDEF".charAt(l[n]%
16);e=m;f=c.get("yt-player-lv-id");if(!f){c.set("yt-player-lv-id",e);h.u=2;return}if(f===e){h.u=2;return}return sa(h,oy(),5)}2!=h.u&&(c.set("yt-player-lv-id",e),my=!0);return h["return"](py().open())})})};
Ifa=function(){return Ue(this,function b(){var c;return xa(b,function(d){c=py();return d["return"](c["delete"]())})})};
ry=function(a,b){return Ue(this,function d(){var e;return xa(d,function(f){if(1==f.u)return sa(f,qy(),2);e=f.B;return f["return"](Vr(e,["index","media","metadata","playerdata"],"readwrite",function(h){var l=IDBKeyRange.bound(a+"|",a+"~");l=[Xr(h,"index")["delete"](l),Xr(h,"media")["delete"](l),Xr(h,"playerdata")["delete"](l)];b&&l.push(Xr(h,"metadata")["delete"](a));return ws.all(l).then(function(){})}))})})};
Kfa=function(){return Ue(this,function b(){var c;return xa(b,function(d){if(1==d.u)return sa(d,qy(),2);c=d.B;return d["return"](Vr(c,["index","media"],"readwrite",function(e){var f={};return bs(Xr(e,"index"),{},function(h){var l,m=h.getKey().match(/^([\w\-_]+)\|(a|v)$/),n=ws.resolve(void 0);if(m){var p=m[1];m=m[2];f[p]=f[p]||{};f[p][m]=sy(null===(l=h.getValue())||void 0===l?void 0:l.fmts)}else n=h["delete"]().then(function(){}),Jfa("Deleting unexpected index key "+h.getKey());
return ws.all([h["continue"](),n]).then(function(r){return g.q(r).next().value})}).then(function(){for(var h={},l=g.q(Object.keys(f)),m=l.next();!m.done;m=l.next()){m=m.value;
var n=f[m].v;h[m]=f[m].a&&n?1:2}var p=Gfa(h);return Bea(Xr(e,"media"),function(r){var t=r.getKey().match(/^([\w\-_]+)\|(\d+)\|(\d+)$/);t&&h[t[1]]||(Xr(e,"media")["delete"](r.getKey()),r.getKey());return r["continue"]()}).then(function(){return p})})}))})})};
Lfa=function(a,b,c){Ue(this,function e(){var f;return xa(e,function(h){if(1==h.u)return sa(h,qy(),2);f=h.B;return h["return"](Vr(f,["index","media"],"readwrite",function(l){var m={},n=b;return bs(Xr(l,"index"),{},function(p){var r,t=p.getKey().match(/^([\w\-_]+)\|(a|v)$/);if(t){t=t[1];var w=(null===(r=p.getValue())||void 0===r?void 0:r.fmts)||"";w=$p(w);!m[t]&&0<w.length&&(w=+w[0].mket,isNaN(w)||(m[t]=w,n+=w))}return p["continue"]()}).then(function(){for(var p=iy(),r=[];0<p.length&&n>c;){var t=p.shift();
if(t!==a){n-=m[t]||0;delete m[t];var w=IDBKeyRange.bound(t+"|",t+"~");r.push(Xr(l,"index")["delete"](w));r.push(Xr(l,"media")["delete"](w));ky(t,0)}}return ws.all(r).then(function(){})})}))})})};
Mfa=function(a,b){return Ue(this,function d(){var e,f;return xa(d,function(h){if(1==h.u)return sa(h,qy(),2);e=h.B;f={offlineVideoData:b};return sa(h,Yr(e,"metadata",f,a),0)})})};
Nfa=function(a,b){var c=Math.floor(Date.now()/1E3);Ue(this,function e(){var f,h;return xa(e,function(l){if(1==l.u)return JSON.stringify(b.offlineState),f={timestampSecs:c,player:b},sa(l,qy(),2);h=l.B;return sa(l,Yr(h,"playerdata",f,a),0)})})};
uy=function(a,b,c,d,e,f){return Ue(this,function l(){var m,n,p,r;return xa(l,function(t){switch(t.u){case 1:return m=hy(a),4===m?t["return"](Promise.resolve(4)):sa(t,qy(),2);case 2:return n=t.B,t.C=3,sa(t,Vr(n,["index","media"],"readwrite",function(w){if(void 0!==e&&void 0!==f){var x=""+a+"|"+b.id+"|"+e;x=Wr(Xr(w,"media"),f,x)}else x=ws.resolve(void 0);var y=ty(a,b.isVideo()),E=ty(a,!b.isVideo()),D={fmts:d,format:c||{}};y=Wr(Xr(w,"index"),D,y);var G=sy(d);w=G?Xr(w,"index").get(E):ws.resolve(void 0);
return ws.all([w,x,y]).then(function(I){I=g.q(I).next().value;var H=hy(a);4!==H&&G&&void 0!==I&&sy(I.fmts)&&(H=1,ky(a,H));return H})}),5);
case 5:return t["return"](t.B);case 3:p=ua(t);r=hy(a);if(4===r)return t["return"](r);ky(a,4);throw p;}})})};
Ofa=function(a){return Ue(this,function c(){var d;return xa(c,function(e){if(1==e.u)return sa(e,qy(),2);d=e.B;return e["return"](Vr(d,["index"],"readonly",function(f){var h=IDBKeyRange.bound(a+"|",a+"~");return Xr(f,"index").getAll(h).then(function(l){return l.map(function(m){return m?m.format:{}})})}))})})};
Pfa=function(a,b,c){return Ue(this,function e(){var f;return xa(e,function(h){if(1==h.u)return sa(h,qy(),2);f=h.B;return h["return"](Vr(f,["media"],"readonly",function(l){var m=""+a+"|"+b+"|"+c;return Xr(l,"media").get(m)}))})})};
Qfa=function(a){return Ue(this,function c(){var d;return xa(c,function(e){if(1==e.u)return sa(e,qy(),2);d=e.B;return e["return"](Vr(d,["playerdata","index"],"readonly",function(f){var h=Xr(f,"playerdata").get(a),l=IDBKeyRange.bound(a+"|",a+"~");return Xr(f,"index").getAll(l).then(function(m){return h.then(function(n){if(!n||!n.player)return n;delete n.player.streamingData;if(0===m.length)return n;for(var p=[],r=g.q(m),t=r.next();!t.done;t=r.next())t=t.value,t.format&&p.push(t.format);n.player.streamingData=
{adaptiveFormats:p};return n})})}))})})};
Rfa=function(a){return Ue(this,function c(){var d,e,f,h;return xa(c,function(l){return 1==l.u?sa(l,qy(),2):3!=l.u?(d=l.B,e=[],f=[],h=[],sa(l,Vr(d,["metadata"],"readonly",function(m){return bs(Xr(m,"metadata"),{},function(n){var p,r,t=n.getKey(),w=null===(p=n.getValue())||void 0===p?void 0:p.offlineVideoData;if(!w)return n["continue"]();if(t===a){if(t=null===(r=w.thumbnail)||void 0===r?void 0:r.thumbnails){t=g.q(t);for(var x=t.next();!x.done;x=t.next())x=x.value,x.url&&e.push(x.url)}f.push.apply(f,
g.ma(vy(w)))}else h.push.apply(h,g.ma(vy(w)));return n["continue"]()})}),3)):l["return"](e.concat(f.filter(function(m){return!h.includes(m)})))})})};
vy=function(a){var b,c,d,e=null===(d=null===(c=null===(b=a.channel)||void 0===b?void 0:b.offlineChannelData)||void 0===c?void 0:c.thumbnail)||void 0===d?void 0:d.thumbnails;if(!e)return[];a=[];e=g.q(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.url&&a.push(f.url);return a};
Sfa=function(a){return Ue(this,function c(){var d;return xa(c,function(e){if(1==e.u)return sa(e,qy(),2);d=e.B;return e["return"](Vr(d,["index","metadata"],"readonly",function(f){return wy(f,a)}))})})};
Tfa=function(){return Ue(this,function b(){var c;return xa(b,function(d){if(1==d.u)return sa(d,qy(),2);c=d.B;return d["return"](Vr(c,["index","metadata"],"readonly",function(e){return ws.all(iy().map(function(f){return wy(e,f)}))}))})})};
wy=function(a,b){var c=Xr(a,"metadata").get(b),d=IDBKeyRange.bound(b+"|",b+"~");return Xr(a,"index").getAll(d).then(function(e){e=e.map(function(l){return l?l.fmts:""}).join(",");
var f={videoId:b,totalSize:0,downloadedSize:0,status:hy(b),videoData:null};if(e.length){e=$p(e);e=g.q(e);for(var h=e.next();!h.done;h=e.next())h=h.value,f.totalSize+=+h.mket*+h.avbr,f.downloadedSize+=h.hasOwnProperty("dlt")?(+h.dlt||0)*+h.avbr:+h.mket*+h.avbr}return c.then(function(l){f.videoData=(null===l||void 0===l?void 0:l.offlineVideoData)||null;return f})})};
Ufa=function(a){return Ue(this,function c(){return xa(c,function(d){ky(a,0);return d["return"](ry(a,!0))})})};
oy=function(){return Ue(this,function b(){var c;return xa(b,function(d){c=ey();if(!c)return d["return"](Promise.reject("No LocalStorage"));c.remove("yt-player-lv-id");var e=ey();e&&e.remove("yt-player-lv");return sa(d,Ifa(),0)})})};
sy=function(a){return!!a&&-1===a.indexOf("dlt")};
ty=function(a,b){return""+a+"|"+(b?"v":"a")};
Jfa=function(){};
yy=function(){var a=this;this.u=this.B=iaa;this.promise=new qm(function(b,c){a.B=b;a.u=c})};
Vfa=function(a,b){this.K=a;this.B=b;this.J=a.bO;this.F=new Uint8Array(this.J);this.D=this.C=0;this.u=null;this.P=[];this.X=this.Y=null;this.S=new yy};
Wfa=function(a){var b=zy(a);b=uy(a.K.C,a.B.info,Ay(a),b);By(a,b)};
Cy=function(a){return!!a.u&&a.u.F};
Ey=function(a,b){if(!Cy(a)){if(1==b.info.type)a.Y=Nu(0,b.u.getLength());else if(2==b.info.type){if(!a.u||1!=a.u.type)return;a.X=Nu(a.D*a.J+a.C,b.u.getLength())}else if(3==b.info.type){if(3==a.u.type&&!Uu(a.u,b.info)&&(a.P=[],b.info.B!=Wu(a.u)||0!=b.info.C))return;if(b.info.D)a.P.map(function(c){return Dy(a,c)}),a.P=[];
else{a.P.push(b);a.u=b.info;return}}a.u=b.info;Dy(a,b);Xfa(a)}};
Dy=function(a,b){for(var c=0,d=bw(b.u);c<d.length;){var e=Math.min(d.length-c,a.F.byteLength-a.C),f=new Uint8Array(d.buffer,d.byteOffset+c,e);a.F.set(f,a.C);a.C+=e;c+=e;if(a.C==a.F.length){if(b.info===a.u&&Cy(a)&&c===d.length)break;e=zy(a);e=uy(a.K.C,a.B.info,Ay(a),e,a.D,a.F);By(a,e);a.F=new Uint8Array(a.J);a.C=0;a.D+=1}}};
Xfa=function(a){if(Cy(a)){var b=new Uint8Array(a.F.buffer,0,a.C);var c={mket:Math.round(a.B.index.Ok()).toString(),avbr:Math.round(a.B.info.C).toString()};c=Yp(c);b=uy(a.K.C,a.u.u.info,Ay(a),c,a.D,b);By(a,b,!0)}};
zy=function(a){a={dlt:Math.round(a.u?a.u.J:0),mket:Math.round(a.B.index.Ok()),avbr:Math.round(a.B.info.C)};return Yp(a)};
Ay=function(a){var b={lmt:a.B.lastModified,docid:a.K.C,fmtid:a.B.info.id,type:a.B.info.mimeType.split(";")[0],csz:a.J,clen:a.D*a.J+a.C};b="local://localhost/videoplayback?"+Yp(b);var c,d;b={itag:+a.B.info.dc(),mimeType:a.B.info.mimeType,bitrate:8*a.B.info.yb,lastModified:""+a.B.lastModified,initRange:null==(c=a.Y)?void 0:Ou(c),indexRange:null==(d=a.X)?void 0:Ou(d),url:b};a=a.B.info;if(a=0<a.id.indexOf(";")?a.id.split(";")[1]:null)b.xtags=a;return b};
By=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){(c||4===d)&&a.S.resolve(d)},function(d){a.S.reject(d)})};
Fy=function(a,b){this.B=a;this.K=this.J=!1;this.length=b?b:0;this.C=0;this.D=null;this.u=[];this.F=null;this.length?1!==this.B.length||this.B[0].ob||(this.B[0].ob=this.length):1===this.B.length||g.ph(this.B,function(c){return!!c.range})};
Gy=function(a,b,c){a.D&&(Xv(a.D,b),b=a.D,a.D=null);for(var d=0,e=0,f=g.q(a.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.range&&d+h.ob<=a.C)d+=h.ob;else{b.getLength();if(Su(h)&&!c&&a.C+b.getLength()-e<d+h.ob){a.D=b.split(e).hn;return}var l=a.C-d;var m=a;if(1===h.type)m.J=!0,m=!1;else if(3==h.type||4==h.type){var n=m.J&&!m.K;m.K=!0;m=n}else m=!1;m=m||h.u.LE()&&!l;n=a;var p=e,r=b,t=!!c,w=r.getLength()-p;h.range&&(w=Math.min(h.ob-l,w));t=h.range?h.C+l+w===h.range.length:t;l=new Ru(h.type,h.u,h.range,
"reslice_"+h.P,h.B,h.startTime,h.duration,h.C+l,w,t&&h.F,t);t=w;p=r.split(p).hn.split(t).ku;n.u.push(new fw(l,p,m));l=w;a.C+=l;e+=l;d+=h.ob;if(e===b.getLength())break}b.getLength()};
Hy=function(a){var b=a.u;a.u=[];a.F=g.db(b).info;return b};
Yfa=function(a){return a.length-a.C+a.u.reduce(function(b,c){return b+c.u.getLength()},0)};
Iy=function(a,b){this.state=1;this.info=a;this.C=!1;this.callback=b;this.mk=0;this.No=!1;this.nd=null};
Jy=function(a){return g.ph(a.info.u,function(b){return 3==b.type})};
Ky=function(a,b){a.state=b;a.Br(b)};
Zfa=function(a){for(var b=new Uint8Array(0),c=new DataView(a.buffer,a.byteOffset,a.length),d=0;d<a.length-8;){var e=c.getUint32(d);if(1>=e)break;var f=c.getUint32(d+4);if(1836019574===f)d+=8;else{if(1886614376===f){f=a.subarray(d,d+e);var h=new Uint8Array(b.length+f.length);h.set(b);h.set(f,b.length);b=h}d+=e}}return b};
$fa=function(a){a=yv(a,1886614376);g.Cb(a,function(b){return!b.B});
return g.Mc(a,function(b){return new Uint8Array(b.data.buffer,b.offset+b.data.byteOffset,b.size)})};
aga=function(a){var b=g.qh(a,function(e,f){return e+f.length},0),c=new Uint8Array(b),d=0;
g.Cb(a,function(e){c.set(e,d);d+=e.length});
return c};
cga=function(a,b){this.ids=a;this.u=b};
Ly=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.u=this.cryptoPeriodIndex=NaN;this.B=[];this.Wd=!1};
My=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{var m=new df(b.subarray(c+f,c+f+l)),n=new qo;for(f=m;ef(f)&&4!=f.B;)switch(f.C){case 2:var p=hf(f),r=p;g.If(n,2).push(r);break;case 4:p=hf(f);g.Kf(n,4,p);break;case 7:p=cf(f.u);g.Kf(n,7,p);break;case 9:p=cf(f.u);g.Kf(n,9,p);break;case 10:p=cf(f.u);
g.Kf(n,10,p);break;case 11:p=bf(f.u);g.Kf(n,11,p);break;case 12:p=cf(f.u);g.Kf(n,12,p);break;case 13:r=p=hf(f);g.If(n,13).push(r);break;case 14:p=new ro;r=f;var t=p,w=Sda,x=r.u.C,y=cf(r.u),E=r.u.u+y;r.u.C=E;w(t,r);r.u.u=E;r.u.C=x;r=n;t=p;w=ro;var D=g.Mf(r,w,14),G=t?t:new w;var I=g.If(r,14);D.push(G);I.push(G.Gf);break;case 15:p=gf(f);g.Kf(n,15,p);break;case 16:p=gf(f);g.Kf(n,16,p);break;case 1:p=bf(f.u);g.Kf(n,1,p);break;case 3:p=gf(f);g.Kf(n,3,p);break;case 5:p=gf(f);g.Kf(n,5,p);break;case 6:p=gf(f);
g.Kf(n,6,p);break;case 8:p=hf(f);g.Kf(n,8,p);break;default:ff(f)}f=n;if(null!==f){var H=f;break a}}catch(Ba){}}c+=e}H=null}catch(Ba){H=null}}if(null!=H)for(b=g.If(H,7),null==b||a.Wd||(a.cryptoPeriodIndex=b),b=g.If(H,10),null!=b&&0<b&&!a.Wd&&(a.u=b),H=g.If(H,2),H=!H.length||H[0]instanceof Uint8Array?H:g.Mc(H,Uaa),H=g.q(H),b=H.next();!b.done;b=H.next())a.B.push(g.qf(b.value,4))};
Ny=function(a){this.u=a;this.offset=0};
Oy=function(a){if(a.offset>=a.u.getLength())throw Error();return dw(a.u,a.offset++)};
Py=function(a,b){b=void 0===b?!1:b;var c=Oy(a);if(1===c){c=-1;for(var d=0;7>d;d++){var e=Oy(a);-1===c&&255!==e&&(c=0);-1<c&&(c=256*c+e)}return c}d=128;for(e=0;6>e&&d>c;e++)c=256*c+Oy(a),d*=128;return b?c:c-d};
Qy=function(a,b,c){g.O.call(this);var d=this;this.C=a;this.B=[];this.u=null;this.Y=-1;this.P=0;this.la=NaN;this.S=0;this.D=b;this.Ta=c;this.F=NaN;this.Ba=0;this.Ma=-1;this.J=this.X=this.Ha=this.da=this.ga=this.K=this.fa=null;this.C.C&&(this.J=new Vfa(this.C,this.D),this.J.S.promise.then(function(e){d.J=null;1==e&&d.V("localmediachange",e)},function(){d.J=null;
d.V("localmediachange",4)}),Wfa(this.J));
this.Pa=!1;this.na=0};
Ry=function(a){return a.B.length?a.B[0]:null};
Sy=function(a){return a.B.length?a.B[a.B.length-1]:null};
Zy=function(a,b,c){if(a.ga){if(a.C.Qs){var d=a.ga;var e=c.info;d=d.B!=e.B&&e.B!=d.B+1||d.type!=e.type||ce(d.K,e.K)&&d.B===e.B?!1:Vu(d,e)}else d=Vu(a.ga,c.info);d||(a.F=NaN,a.Ba=0,a.Ma=-1)}a.ga=c.info;a.D=c.info.u;0==c.info.C?Ty(a):!a.D.mf()&&a.K&&Yu(c.info,a.K);a.u?(c=iw(a.u,c),a.u=c):a.u=c;a:{c=g.jw(a.u.info.u.info);if(3!=a.u.info.type){if(!a.u.info.D)break a;6==a.u.info.type?Uy(a,b,a.u):Vy(a,a.u);a.u=null}for(;a.u;){d=a.u.u.getLength();if(0>=a.Y&&0==a.P){var f=a.u.u,h=-1;e=-1;if(c){for(var l=0;l+
8<f.getLength();){var m=ew(f,l),n=ew(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 Ny(f);for(m=l=!1;;){n=f.offset;var p=f;try{var r=Py(p,!0),t=Py(p,!1);var w=r;var x=t}catch(E){x=w=-1}p=w;var y=x;if(0>p)break;if(408125543!==p)if(524531317===p)l=!0,0<=y&&(e=f.offset+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.offset+y);if(160===p){0>h&&(e=h=f.offset+y);break}f.skip(y)}}0>h&&(e=-1)}if(0>h)break;a.Y=h;a.P=
e-h}if(a.Y>d)break;a.Y?(d=Wy(a,a.Y),d.C&&!a.D.mf()&&Xy(a,d),Uy(a,b,d),Yy(a,d),a.Y=0):a.P&&(d=Wy(a,0>a.P?Infinity:a.P),a.P-=d.u.getLength(),Yy(a,d))}}a.u&&a.u.info.D&&(Yy(a,a.u),a.u=null)};
Vy=function(a,b){!a.D.mf()&&0==b.info.C&&(g.jw(b.info.u.info)||b.info.u.info.Wd())&&pw(b);if(1==b.info.type)try{Xy(a,b),$y(a,b)}catch(d){g.M(d);var c=Xu(b.info);c.hms="1";a.V("error",c||{})}b.info.u.iu(b);a.J&&Ey(a.J,b)};
dga=function(a){var b=a.B.reduce(function(c,d){return c+d.u.getLength()},0);
a.u&&(b+=a.u.u.getLength());return b};
az=function(a){return g.Mc(a.B,function(b){return b.info})};
Wy=function(a,b){var c=a.u,d=Math.min(b,c.u.getLength());if(d==c.u.getLength())return a.u=null,c;c.u.getLength();d=Math.min(d,c.info.ob);var e=c.u.split(d),f=e.ku;e=e.hn;var h=new Ru(c.info.type,c.info.u,c.info.range,c.info.P,c.info.B,c.info.startTime,c.info.duration,c.info.C,d,!1,!1);f=new fw(h,f,c.C);c=new Ru(c.info.type,c.info.u,c.info.range,c.info.P,c.info.B,c.info.startTime,c.info.duration,c.info.C+d,c.info.ob-d,c.info.F,c.info.D);c=new fw(c,e,!1);c=[f,c];a.u=c[1];return c[0]};
Xy=function(a,b){b.u.getLength();var c=gw(b);if(!a.C.yB&&Rx(b.info.u.info)&&"bt2020"===b.info.u.info.Na().primaries){var d=new Av(c);Cv(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.u,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.u.info;Qx(d)&&!Rx(d)&&(d=gw(b),Iv(new Av(d)),Hv([408125543,374648427,174,224],21936,d));b.info.u.info.isVideo()&&(d=b.info.u,d.info&&d.info.video&&4==d.info.video.projectionType&&!d.D&&(g.jw(d.info)?d.D=lfa(c):d.info.Wd()&&(d.D=nfa(c))));
b.info.u.info.Wd()&&b.info.isVideo()&&(c=gw(b),Iv(new Av(c)),Hv([408125543,374648427,174,224],30320,c)&&Hv([408125543,374648427,174,224],21432,c));if(a.C.An&&b.info.u.info.Wd()){c=gw(b);var e=new Av(c);if(Cv(e,[408125543,374648427,174,29637])){d=Fv(e,!0);e=e.start+e.u;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.D.info.audio&&g.jw(b.info.u.info)){d=gw(b);c=g.lv(d,0,1701606260);f=g.lv(d,0,1836476516);if(c&&f){c.skip(2);var h=dv(c),l=fv(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<
l;++h)d.push(gv(c)),e.push(gv(c)),m.push(dv(c)),n.push(dv(c));else for(h=0;h<l;++h)d.push(ev(c)),e.push(ev(c)),m.push(dv(c)),n.push(dv(c));c=nv(f);c=new kfa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.jw(b.info.u.info))for(d=gw(b),e=g.lv(d,0,1701082227);e;)e.markAsSkip(),e=g.lv(d,e.offset+e.size,1701082227);a.Pa=!0;b.info.u.K=c}}a.D.mf()||b.info.u.u||b.info.u.indexRange||(g.jw(b.info.u.info)?(c=gw(b),(d=pv(c,0,1836019574))?(d=d.offset+d.size,e=new Uint8Array(d),e.set(new Uint8Array(c.buffer,c.byteOffset,
d)),c=e):c=null):c=ofa(new Av(gw(b))),c&&(b.info.u.u=c))};
Uy=function(a,b,c){if(a.D.mf()){if(a.Pa&&a.D.mf()&&c.info.B==c.info.u.index.Vb()&&(b=gw(c),b=g.lv(b,0,1953658222))){b.skip(1);var d=cv(b)<<16|dv(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=fv(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=fv(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.u,e))}}if(b=a.fa&&!!a.fa.D.K)if(b=c.info.isVideo())b=ow(c),h=a.fa,bz?(l=1/b,b=cz(a,b)>=cz(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&a.D.mf()&&c.info.B==c.info.u.index.Vb()&&
(b=a.fa,bz?(l=ow(c),h=1/l,l=cz(a,l),b=cz(b)+h-l):b=b.getDuration()-a.getDuration(),b=1+b/c.info.duration,mv(gw(c),b))}else{h=!1;a.K||(pw(c),c.B&&(a.K=c.B,h=!0,Yu(c.info,c.B),e=c.info.u.info,d=gw(c),g.jw(e)?xv(d,1701671783):e.Wd()&&Hv([408125543],307544935,d)));if(d=e=nw(c))d=c.info.u.info.Wd()&&160==dw(c.u,0);if(d)a.S+=e,a.F=a.C.SC?a.F+e:l+e;else{if(a.C.JB){if(l=f=a.Ta(kw(c),1),0<=a.F&&6!=c.info.type){f-=a.F;var n=f-a.Ba;d=c.info.B;var p=c.info.K,r=a.da?a.da.B:-1,t=a.da?a.da.K:-1,w=a.da?a.da.duration:
-1;m=a.C.Hg&&f>a.C.Hg;var x=a.C.ng&&n>a.C.ng;1E-4<Math.abs(n)&&(a.C.lI&&a.V("avsyncissue",{audio:""+ +!!a.D.info.audio,sq:d.toFixed(),sliceStart:p,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:w,totalDrift:(1E3*f).toFixed(),segDrift:(1E3*n).toFixed(),skipRewrite:""+(+m||x)}),a.Ma=d);n=0;a.C.FB&&(m||x||(l=a.F),a.C.HB&&a.fa&&!a.D.info.audio&&g.jw(c.info.u.info)&&(x=a.fa,m=x.Ma,x=x.Ba,p=.02<Math.abs(x-f),(d==m||d>m&&d>a.Ma)&&p&&(d=Math.max(.95,Math.min(1.05,(e-(x-f))/e)),mv(gw(c),d),d=nw(c),
n=e-d,e=d)));a.Ba=f+n}}else isNaN(a.F)?f=c.info.startTime:f=a.F,l=f;lw(c,l)?(isNaN(a.la)&&(a.la=l),a.S+=e,a.F=l+e):(l=Xu(c.info),l.smst="1",a.V("error",l||{}))}if(h&&a.K){h=dz(a,!0);Zu(c.info,h);a.u&&Zu(a.u.info,h);b=g.q(b.info.u);for(l=b.next();!l.done;l=b.next())Zu(l.value,h);(c.info.D||a.u&&a.u.info.D)&&6!=c.info.type||(a.X=h,a.V("placeholderinfo",h),ez(a))}}$y(a,c);a.na&&mw(c,a.na);a.da=c.info};
Yy=function(a,b){if(b.info.D){a.Ha=b.info;if(a.K){var c=dz(a,!1);a.V("segmentinfo",c);a.X||ez(a);a.X=null}Ty(a)}a.J&&Ey(a.J,b);if(c=Sy(a))if(c=iw(c,b,a.C.Ps)){a.B.pop();a.B.push(c);return}a.B.push(b)};
Ty=function(a){a.u=null;a.Y=-1;a.P=0;a.K=null;a.la=NaN;a.S=0;a.X=null};
$y=function(a,b){if(a.D.info.Sd){if(b.info.u.info.Wd()){var c=new Av(gw(b));if(Cv(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=Fv(c,!0);c=16!==d?null:Mv(c,d)}else c=null;d="webm"}else b.info.X=$fa(gw(b)),c=aga(b.info.X),d="cenc";c&&c.length&&(c=new Ly(c,d),c.Wd=b.info.u.info.Wd(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),a.C.Ts&&b.B&&b.B.D&&(c.u=b.B.D),a.V("needkeyinfo",c))}};
ez=function(a){var b=a.K,c;b.data["Cuepoint-Type"]?c=new Gu(fz?Number(b.data["Cuepoint-Playhead-Time-Sec"])||0:-(Number(b.data["Cuepoint-Playhead-Time-Sec"])||0),Number(b.data["Cuepoint-Total-Duration-Sec"])||0,b.data["Cuepoint-Context"],b.data["Cuepoint-Identifier"]||"",ega[b.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(b.data["Cuepoint-Playhead-Time-Sec"])||0)):c=null;c&&(c.startSecs+=a.la,a.V("cuepoint",c,b.u))};
dz=function(a,b){var c=a.K;if(c.data["Stitched-Video-Id"]||c.data["Stitched-Video-Duration-Us"]||c.data["Stitched-Video-Start-Frame-Index"]||c.data["Serialized-State"]){var d=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var e=[];if(c.data["Stitched-Video-Duration-Us"])for(var f=g.q(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),h=f.next();!h.done;h=f.next())e.push((Number(h.value)||0)/1E6);e=[];if(c.data["Stitched-Video-Start-Frame-Index"])for(f=
g.q(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1)),h=f.next();!h.done;h=f.next())e.push(Number(h.value)||0);d=new cga(d,c.data["Serialized-State"]?c.data["Serialized-State"]:"")}return new Ku(c.u,a.la,b?c.oh:a.S,c.ingestionTime,"sq/"+c.u,void 0,void 0,b,d)};
cz=function(a,b){b=void 0===b?0:b;var c=b?Math.round(a.na*b)/b:a.na;a.D.K&&c&&(c+=a.D.K.u);return c+a.getDuration()};
gz=function(a,b){0>b||(a.B.forEach(function(c){return mw(c,b)}),a.na=b)};
hz=function(a,b,c){var d=this;this.fl=a;this.de=b;this.loaded=this.status=0;this.error="";a=Mu(this.fl.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new Vv;fga(this).then(c,function(e){d.error=""+e||"unknown_err";c()})};
fga=function(a){return Ue(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,w,x,y,E;return xa(c,function(D){if(1==D.u){d.status=200;e=d.fl.get("docid");f=kd(d.fl.get("fmtid")||"");h=+(d.fl.get("csz")||0);if(!e||!f||!h)throw Error("Invalid local URL");l=d.range;m=Math.floor(l.start/h);n=Math.floor(l.end/h);p=m}if(5!=D.u)return p<=n?D=sa(D,Pfa(e,f,p),5):(D.u=0,D=void 0),D;r=D.B;if(void 0===r)throw Error("invariant: data is undefined");t=p*h;w=(p+1)*h;x=Math.max(0,l.start-t);y=Math.min(l.end+1,w)-(x+t);E=
new Uint8Array(r.buffer,x,y);d.u.append(E);d.loaded+=y;d.loaded<l.length&&d.de(g.A(),d.loaded);p++;D.u=2})})};
gga=function(a){this.schedule=a;this.u=NaN;this.B=[];this.totalBytes=0};
jz=function(a,b,c,d){var e=void 0===d?{}:d;d=void 0===e.Pg?!1:e.Pg;var f=void 0===e.Zi?!1:e.Zi,h=void 0===e.Em?!1:e.Em,l=e.Yf,m=e.kb;e=e.ae;this.ra=null;this.fa=this.u=NaN;this.Xb=0;this.Y=this.ga=this.B=this.D=NaN;this.Ba=this.la=this.isActive=!1;this.C=0;this.da=NaN;this.P=this.J=Infinity;this.X=NaN;this.Lb=!1;this.K=this.S=NaN;this.F=this.na=void 0;this.Pg=d;this.Zi=f;this.Em=h;this.Yf=l;this.kb=m;this.ae=e;this.schedule=a;this.Ma=b;this.Ha=c;this.snapshot=iz(this.schedule)};
kz=function(a){return{rt:(g.A()-a.u).toFixed(),lb:a.B.toFixed(),pt:(1E3*a.da).toFixed(),pb:a.Ma.toFixed(),stall:(1E3*a.C).toFixed(),elbowTime:(a.fa-a.u).toFixed(),elbowBytes:a.Xb.toFixed()}};
hga=function(a){a.u=g.A();a.D=a.u;a.B=0;a.ga=a.u;a.Y=0;a.F&&(a.F=[]);a.la=!1;a.Ba=!1;a.C=0;a.snapshot=iz(a.schedule);a.J=Infinity;a.P=Infinity;lz(a);mz(a,a.u);a.da=(a.S-a.u)/1E3;a.K=NaN;a.na=void 0};
nz=function(a){!a.K&&a.ra&&(a.K=a.ra(),3===a.K&&(a.na=new gga(a.schedule)));return a.K};
tz=function(a,b,c,d){var e=(b-a.D)/1E3,f=c-a.B,h=nz(a);if(3===h&&f){var l=a.na;l.B.push({e5:f,y5:isNaN(l.u)?NaN:d-l.u,o5:d});l.u=d}a.isActive?1===h&&0<f&&(.2<e||1024>f?(a.C+=e,.2<e&&rz(a,.05,f)):rz(a,e,f),a.Ba=!0):oz(a,c)&&(1===h&&(d=(b-a.u)/1E3,pz(a)||a.Zi||qz(a.schedule,d)),a.fa=b,a.Xb=c,a.isActive=!0);a.Zi||sz(a.schedule,e,f);a.D=b;a.B=c};
rz=function(a,b,c){if(!a.Zi){b=Math.max(b,.05);var d=a.schedule,e=b;a=a.Em;a=void 0===a?!1:a;d.u.C(void 0===b?e:b,c/e);a||(d.J=uz())}};
wz=function(a,b,c){c=Math.round(c/1024);a.F&&a.F.push(vz(b-a.ga,c-a.Y));a.ga=b;a.Y=c};
oz=function(a,b){return b?a.Yf&&1!==nz(a)?!0:2048<=b:!1};
xz=function(a){return oz(a,a.B)};
lz=function(a){a.X=a.u+1E3*a.snapshot.delay;a.Lb=!1};
zz=function(a,b){if(a.Yf&&void 0!==a.kb&&void 0!==a.ae){var c=Math,d=c.min,e=a.J;var f=a.Yf;var h=a.u;if(yz(f,a.kb))f=b;else{var l=0;f.kf&&(l=.2);f=h+1E3*(f.Nf+l)}a.J=d.call(c,e,f);c=Math;d=c.min;e=a.P;f=a.Yf;h=a.u;l=iga(f,a.kb,a.ae);2===l?f=b:(h=l?b:h+1E3*f.Nf,f.kf&&(h+=1E3*f.Nf),f=h);a.P=d.call(c,e,f);a.J<=a.u?lz(a):(a.X=a.J,a.Lb=!0)}};
pz=function(a){a.Yf&&zz(a,g.A());return a.Lb};
mz=function(a,b){b=void 0===b?g.A():b;if(a.Yf){zz(a,b);var c=a.K?a.Yf?1!==nz(a):!1:a.J!==a.P;if(c){if(c=a.P,b<c){a.S=a.P;return}}else c=a.J;c=Math.max(c,a.X)}else c=a.X;var d=a.Ma-a.B;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=xz(a)?d+b:d+Math.max(b,c);a.S=d};
vz=function(a,b){for(var c="";4095<a;)c+=vz(4095,0),a-=4095;for(;4095<b;)c+=vz(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))};
Az=function(){return!("function"!==typeof window.fetch||!window.ReadableStream)};
Bz=function(a){if(a.oq())return!1;a=a.ke("content-type");return"audio/mp4"===a||"video/mp4"===a||"video/webm"===a};
Cz=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.method?"GET":h.method;var l=h.headers,m=h.body;h=void 0===h.credentials?"include":h.credentials;this.da=b;this.Y=c;this.fa=d;this.policy=e;this.status=0;this.response=void 0;this.X=!1;this.B=0;this.P=NaN;this.aborted=this.J=this.S=!1;this.errorMessage="";this.method=f;this.headers=l;this.body=m;this.credentials=h;this.u=new Vv;this.id=jga++;this.D=window.AbortController?new AbortController:void 0;this.start(a);this.startTime=Date.now()};
Ez=function(a){a.C.read().then(function(b){if(!a.ma()){var c;window.performance&&window.performance.now&&(c=window.performance.now());var d=Date.now(),e=b.value?b.value:void 0;a.F&&(a.u.append(a.F),a.F=void 0);b.done?(a.C=void 0,a.onDone()):(a.B+=e.length,Dz(a)?a.u.append(e):a.F=e,a.da(d,a.B,c),Ez(a))}},function(b){a.onError(b)}).then(void 0,g.M)};
Dz=function(a){var b=a.ke("content-type");b="audio/mp4"===b||"video/mp4"===b;return a.policy.B&&a.policy.kf&&Bz(a)&&b};
Fz=function(a,b,c,d){var e=this;this.status=0;this.ma=this.B=!1;this.u=NaN;this.xhr=new XMLHttpRequest;this.xhr.open("GET",a);this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){2===e.xhr.readyState&&e.F()};
this.C=c;this.D=b;this.F=d;a=Fo(function(f){e.onDone(f)});
this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);this.xhr.send();this.xhr.addEventListener("progress",Fo(function(f){e.de(f)}),!1)};
Hz=function(){this.C=this.u=0;this.B=Array.from({length:Gz.length}).fill(0)};
Iz=function(){};
Jz=function(a){this.name=a;this.startTimeMs=(0,g.N)();this.u=!1};
Mz=function(a,b){var c=this;return Kz?function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];f=(0,g.N)();e=b.apply(c,e);Lz(a,(0,g.N)()-f);return e}:b};
Nz=function(a,b){b=void 0===b?1:b;a&&(Lz(a.name,(0,g.N)()-a.startTimeMs,b),a.u=!0)};
Oz=function(a,b){if(Kz){var c=(0,g.N)();b();Lz(a,(0,g.N)()-c)}else b()};
Lz=function(a,b,c){c=void 0===c?1:c;0>b||(a in Pz||(Pz[a]=new Hz),Pz[a].sH(b,c))};
Qz=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
Xz=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.GG?[]:h.GG;var l=void 0===h.ks?!1:h.ks;h=void 0===h.fm?0:h.fm;Iy.call(this,b,e);var m=this;this.u=a;this.timing=c;this.timing.ra=function(){var n;if(kga(m)){if(n=m.u.nu&&!(!window.performance||!window.performance.now)&&m.Mb&&m.Mb.Cm()&&m.Yj())n=m.Mb,n=n.policy.kf&&Bz(n);n=n?m.info.u[0].u.info.video?3:4:2}else n=1;return n};
this.K=d;this.ks=l;this.Qr=++lga;this.Ie=g.dx(this.info,this.u,this.K);this.Ie.set("rn",this.Qr.toString());this.Ie.set("rbuf",(1E3*h).toFixed().toString());this.ks&&this.Ie.set("smb","1");this.P=f||null;this.No=mga(this);this.eh=null;this.J=this.gj=0;this.HH=!1;this.D=this.B=null;this.S=this.u.xn*(this.u.vb?Vw(Rz(this)):1);this.F=new g.F(this.SR,this.S,this);this.info.B.F=(0,g.N)();Dfa(Rz(this));hga(this.timing);try{this.Mb=nga(this),this.F.start()}catch(n){g.Go(n),this.eh="net.ssl",g.lm(function(){return Sz(m)})}};
mga=function(a){if(!(cx(a.info)&&a.info.Pg()&&a.u.Ai&&a.P)||2<=a.info.B.B||Yz()||!Zz())return!1;var b=a.Ie.get("aitags");if(!b)return!1;var c=kd(b).split(","),d=[];g.Cb(a.P,function(e){g.jb(c,e)&&d.push(e)});
if(!d.length)return!1;a.Ie.set("altitags",jd(d.join(",")));return!0};
Rz=function(a){return Ww(a.K,Hw(a.Ie.qg))};
pga=function(a,b){if(400<=b.status)return a.eh="net.badstatus",6;if(!b.ju())return a.eh=204===b.status?"net.nocontent":"net.connect",6;var c="";if($z(a)){var d=b.mz();2048>=d.getLength()&&(c=bw(d),c=av(c),c=yw(c)?c:"")}if(c){d=Rz(a);(0,g.N)();d.started=0;d.B=0;d.u=0;d=a.info;var e=a.Ie;g.$w(d.B,e,c);d.requestId=e.get("req_id");return 4}c=b.Wu();if((d=!!a.info.range&&a.info.range.length)&&d!==c||b.fA())return a.eh="net.closed",6;aA(a,!0);if(a.u.jE&&!d&&a.nd&&(d=a.nd.u,d.length&&!hw(d[0])))return a.eh=
"net.closed",6;e=Jy(a)?b.ke("X-Bandwidth-Est"):0;if(d=Jy(a)?b.ke("X-Bandwidth-Est3"):0)a.HH=!0,a.u.xB&&(e=d);d=a.timing;var f=e?parseInt(e,10):0;e=g.A();if(!d.la){d.la=!0;if(!d.Zi){e=e>d.u&&4E12>e?e:g.A();wz(d,e,c);tz(d,e,c);var h=nz(d);if(2===h&&f)rz(d,d.B/f,d.B);else if(2===h||1===h)f=(e-d.u)/1E3,(f<=d.schedule.S.u||!d.schedule.S.u)&&!d.Ba&&xz(d)&&rz(d,f,c),xz(d)&&bA(d.schedule,c,d.C);cA(d.schedule,(e-d.u)/1E3||.05,d.B,d.da,d.Pg,d.Em)}d.deactivate()}c=Rz(a);(0,g.N)();c.started=0;c.B=0;c.u=0;a.info.B.B=
0;(0,g.N)()<dA+3E5||!a.Ie||Iw(a.Ie.qg)||!(c=Hw(a.Ie.qg))||0>c.indexOf("googlevideo.com")||(oga({primary:c}),dA=(0,g.N)());return 5};
Sz=function(a){if("net.timeout"===a.eh){var b=a.timing,c=g.A();if(!b.Zi){c=c>b.u&&4E12>c?c:g.A();wz(b,c,1024*b.Y);var d=(c-b.u)/1E3;2!==nz(b)&&(xz(b)?(b.C+=(c-b.D)/1E3,bA(b.schedule,b.B,b.C)):(pz(b)||b.Zi||qz(b.schedule,d),b.fa=c));cA(b.schedule,d,b.B,b.da,b.Pg,b.Em);sz(b.schedule,(c-b.D)/1E3,0)}}"net.nocontent"!=a.eh&&("net.timeout"===a.eh||"net.connect"===a.eh?(b=Rz(a),b.B+=1):(b=Rz(a),b.u+=1),a.info.B.B++);Ky(a,6)};
eA=function(a){a.ma();var b=Rz(a);return 100>b.B&&b.u<a.u.wu};
gA=function(a,b){if(b){var c=Rz(a);c.C+=1}fA(a);a.eh="net.timeout";Sz(a)};
fA=function(a){a.Mb&&a.Mb.abort();a.timing.deactivate()};
$z=function(a){var b=a.Mb.ke("content-type"),c=a.Mb.oq();return(!a.Yj()||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)};
nga=function(a){var b=(0,g.z)(a.sR,a),c=(0,g.z)(a.uR,a),d=(0,g.z)(a.tR,a);if(Iw(a.Ie.qg))return new hz(a.Ie,c,b);var e=g.Qw(a.Ie);return a.u.fa&&(a.u.EB&&!isNaN(a.info.ae)&&a.info.ae>a.u.KI?0:Az())?new Cz(e,c,b,d,a.u.D):new Fz(e,c,b,d)};
qga=function(a){a.nd&&a.nd.F?(a=a.nd.F,a=new Ru(a.type,a.u,a.range,"getEmptyStubAfter_"+a.P,a.B,a.startTime+a.duration,0,a.C+a.ob,0,!1)):(a=a.info.u[0],a=new Ru(a.type,a.u,a.range,"getEmptyStubBefore_"+a.P,a.B,a.startTime,0,a.C,0,!1));return a};
aA=function(a,b){if(b||a.Mb.Cm()&&a.Mb.Uh()&&!$z(a)&&!a.No){if(!a.nd){if(a.Yj())a.info.range&&(c=a.info.range.length);else var c=a.Mb.Wu();a.nd=new Fy(a.info.u,c)}for(;a.Mb.Uh();)Gy(a.nd,a.Mb.Xu(),b&&!a.Mb.Uh())}};
kga=function(a){if(!a.u.D.kf||!isNaN(a.info.ae)&&0<a.info.ae)return!1;if(!a.Mb.Cm())return!0;if(!Bz(a.Mb))return!1;if(isNaN(a.info.ae)){var b=a.Mb.ke("x-head-seqnum");if(b&&parseInt(b,10)>a.info.u[0].B)return!1}return!0};
hA=function(){g.O.apply(this,arguments);this.u={}};
iA=function(a,b){var c=a.u[b];c=c&&c.slices;return!(!c||!c.getLength())};
jA=function(a,b,c,d){Iy.call(this,b,d);this.u=a;this.B=c;this.nd=new Fy(this.info.u,this.info.range.length);rga(this);this.B.isComplete(this.u)?Ky(this,5):iA(this.B,this.u)&&Ky(this,2)};
rga=function(a){a.B.subscribe("PROGRESS",function(b){b.formatId===a.u&&Ky(a,Math.max(2,a.state))});
a.B.subscribe("DONE",function(b){b.formatId===a.u&&Ky(a,5)})};
kA=function(a){for(;iA(a.B,a.u);){var b=a.nd;var c=a.B;var d=a.u,e=c.u[d].slices;c.u[d].bytesShifted+=e.getLength();c.u[d].slices=new Vv;c=e;d=a.B;e=a.u;d=0===d.u[e].expectedBytes-d.u[e].bytesShifted&&d.isComplete(e);Gy(b,c,d)}};
lA=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
mA=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)};
nA=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};
oA=function(a,b){return 0<=nA(a,b)};
sga=function(a,b){if(!a)return NaN;var c=nA(a,b);return 0<=c?a.start(c):NaN};
pA=function(a,b){if(!a)return NaN;var c=nA(a,b);return 0<=c?a.end(c):NaN};
qA=function(a){return a&&a.length?a.end(a.length-1):NaN};
rA=function(a,b){var c=pA(a,b);return 0<=c?c-b:0};
sA=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 lA(d,e)};
tA=function(a,b,c){this.da=a;this.u=b;this.D=[];this.C=new Qy(a,b,c);this.B=this.K=null;this.la=0;this.yb=b.info.yb;this.ga=0;this.P=b.lo();this.J=-1;this.na=b.lo();this.F=this.P;this.S=!1;this.Y=-1;this.ra=null;this.fa=0;this.X=!1};
uA=function(a,b){b&&bz&&gz(a.C,b.sy());a.K=b};
vA=function(a){return a.K&&a.K.St()};
wA=function(a,b){a.D.push(b);a.B=g.db(b.info.u)};
yA=function(a){for(;a.D.length&&5==a.D[0].state;){var b=a.D.shift();xA(a,b);a.la=b.fD()}a.D.length&&(b=a.D[0],b.To()&&(!b.info.Pg()||b instanceof jA)&&xA(a,b))};
xA=function(a,b){if(b.To())for(var c=g.q(b.jF()),d=c.next();!d.done;d=c.next())zA(a,b,d.value)};
zA=function(a,b,c){switch(c.info.type){case 1:case 2:Vy(a.C,c);break;case 4:var d=c.info.u.ME(c);c=c.info;var e=a.B;e&&e.u==c.u&&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.B==c.B&&e.C==c.C&&e.ob==c.ob&&(a.B=g.db(d).info);d=g.q(d);for(c=d.next();!c.done;c=d.next())zA(a,b,c.value);break;case 3:Zy(a.C,b,c);break;case 6:Zy(a.C,b,c),a.B=c.info}};
AA=function(a,b){var c=b.info;c.u.info.yb>=a.yb&&(a.yb=c.u.info.yb)};
EA=function(a,b,c){c=void 0===c?!1:c;if(a.K){var d=a.K.xe(),e=pA(d,b),f=NaN,h=vA(a);h&&(f=pA(d,h.u.index.Re(h.B)));if(e==f&&a.B&&a.B.ob&&BA(CA(a),0))return b}a=DA(a,b,c);return 0<=a?a:NaN};
GA=function(a,b){a.u.Ae();var c=DA(a,b);if(0<=c)return c;c=a.C;c.J?(c=c.J,c=c.u&&3==c.u.type?c.u.startTime:0):c=Infinity;b=Math.min(b,c);a.B=a.u.Mj(b).u[0];FA(a)&&a.K&&a.K.abort();a.ga=0;return a.B.startTime};
HA=function(a){a.P=!0;a.F=!0;a.J=-1;GA(a,Infinity)};
IA=function(a){var b=0;g.Cb(a.D,function(c){var d=b;c=c.nd&&c.nd.length?Yfa(c.nd):Fx(c.info);b=d+c},a);
return b+=dga(a.C)};
JA=function(a,b){if(!a.K)return 0;var c=vA(a);if(c&&c.F)return c.J;c=a.K.xe(!0);return rA(c,b)};
LA=function(a){KA(a);a=a.C;a.B=[];Ty(a)};
MA=function(a,b,c,d){KA(a);for(var e=a.C,f=!1,h=e.B.length-1;0<=h;h--){var l=e.B[h];l.info.B>=b&&(e.B.pop(),e.F-=nw(l),f=!0)}f&&(e.ga=0<e.B.length?e.B[e.B.length-1].info:null);d>c?GA(a,d):a.B=a.u.rl(b-1,!1).u[0]};
PA=function(a,b){var c;for(c=0;c<a.D.length&&b!==a.D[c];c++);if(c==a.D.length)NA(a,b);else{for(;c<a.D.length;)NA(a,a.D.pop());var d=OA(a);a.da.vb&&d&&d.u.mf()&&ji(b.info.u,function(e){return e.u==d.u&&e.B==d.B&&!!d.ob&&d.C+d.ob>e.C&&d.C+d.ob<=e.C+e.ob})?a.B=d:Tu(b.info.u[0])?a.B=qga(b):a.B=null}};
FA=function(a){var b;!(b=!a.da.Ns&&"f"===a.u.info.Bb)&&(b=a.da.Bh)&&(b=a.C,b=!!b.J&&Cy(b.J));if(b)return!0;b=vA(a);if(!b)return!1;var c=b.F&&b.D;return a.na&&0<a.Y?c||b.B>=a.Y:c};
CA=function(a){var b=[],c=vA(a);c&&b.push(c);b=g.qb(b,az(a.C));g.Cb(a.D,function(d){g.Cb(d.info.u,function(e){d.C&&(b=g.He(b,function(f){return!(f.u!=e.u?0:f.range&&e.range?f.range.start+f.C>=e.range.start+e.C&&f.range.start+f.C+f.ob<=e.range.start+e.C+e.ob:f.B==e.B&&f.C>=e.C&&(f.C+f.ob<=e.C+e.ob||e.D))}));
(Tu(e)||4==e.type)&&b.push(e)})});
a.B&&!hfa(a.B,g.db(b),a.B.u.mf())&&b.push(a.B);return b};
BA=function(a,b){if(!a.length)return!1;for(var c=b+1;c<a.length;c++)if(!Vu(a[c-1],a[c]))return!1;return!0};
DA=function(a,b,c){c=void 0===c?!1:c;if(!a.B||!a.B.ob)return NaN;a=CA(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.K<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:BA(a,c?b:0)?a[b].startTime:NaN};
QA=function(a){return ji(a.D,function(b){return 3<=b.state})};
RA=function(a){return!(!a.B||a.B.u==a.u)};
SA=function(a){return RA(a)&&a.u.Ae()&&a.B.u.info.yb<a.u.info.yb};
TA=function(a,b,c){return(a=OA(a))&&!a.F?a.J>b&&a.J<b+c:!1};
OA=function(a){var b=Sy(a.C);return b?b.info:vA(a)};
KA=function(a){g.Cb(a.D,function(b){NA(this,b)},a);
a.D=[];a.B=null};
NA=function(a,b){var c=a.da.vb&&b.info.u[0].u.mf();b.C&&!c&&(c=a.C,c.X&&!c.C.zi&&c.V("placeholderrollback",c.X),c.X=null,c.K=null,c.ga=c.Ha,c.F-=c.S,Ty(c));b.dispose()};
UA=function(a){return!!a.B&&-1!=a.B.B&&a.B.B<a.u.index.Hh()};
VA=function(a){var b=a.B;b&&-1==b.B&&(a=Sy(a.C))&&Tu(a.info)&&(a=a.info.B,b.P="updateLastSliceRequested",b.B=a)};
WA=function(a,b,c,d){a.C.subscribe(b,c,d)};
XA=function(a){return ji(a.D,function(b){return b.No})};
YA=function(a){this.B=this.D=0;this.alpha=Math.exp(Math.log(.5)/a)};
$A=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.valueIndex=0;this.D=!1;this.J=!0;this.B=Math.round(a*this.resolution);this.values=Array(this.B);for(a=0;a<this.B;a++)this.values[a]=Infinity;this.P=ZA(this);this.F=c;this.K=d};
ZA=function(a){for(var b=Array(a.B),c=0;c<a.B;c++)b[c]=c;return b};
aB=function(a,b){if(!a.D&&0===a.valueIndex)return 0;a.J&&(g.zb(a.P,function(c,d){return a.values[c]-a.values[d]}),a.J=!1);
return a.values[a.P[Math.round(b*((a.D?a.B:a.valueIndex)-1))]]||0};
vga=function(a){var b=new tga;this.policy=a;this.S=b;this.K=this.Y=0;this.B=-1;this.F=this.J=uz();this.X=new $A(4,1,.6,.4);this.C=new $A(10,1,.5,.4);this.u=a.B?new YA(a.u):new $A(a.u,20,.5,.4);this.P=new $A(5,1,.25);this.D=new $A(30,1,.5);a=uga();this.u.C(this.policy.D,0<a.byterate?a.byterate:this.policy.C);0<a.delay&&this.X.C(1,Math.min(+a.delay,2));0<a.stall&&this.C.C(1,+a.stall);0<a.init&&(this.F=Math.min(a.init,this.F));this.B=uz()};
qz=function(a,b){a.X.C(1,b);-1<a.B&&3E4<uz()-a.B&&bB(a)};
cA=function(a,b,c,d,e,f){f=void 0===f?!1:f;a.P.C(b,c/b);f||(a.J=uz());e||a.D.C(1,b-d)};
bA=function(a,b,c){b=Math.max(b,2048);a.C.C(1,c/b);-1<a.B&&3E4<uz()-a.B&&bB(a)};
cB=function(a){a=a.X.u();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
sz=function(a,b,c){isNaN(c)||(a.K+=c);isNaN(b)||(a.Y+=b)};
dB=function(a){a=a.u.u();return 0<a?a:1};
eB=function(a){var b=dB(a);b=1/((a.C.u()||0)+1/b);a=a.P.u();return Math.max(b,0<a?a:1)};
iz=function(a){return{delay:cB(a),stall:a.C.u()||0,byterate:dB(a),init:a.F}};
bB=function(a){wga(iz(a));a.B=uz()};
fB=function(a){return 4E3<=uz()-a.J};
gB=function(a,b){this.B=a;this.u=b;this.C=1};
iB=function(a,b,c,d,e){e=void 0===e?!1:e;a.u.Dd&&(d=Math.abs(d));d/=a.C;var f=1/eB(a.B);var h=.9*(d-a.u.yn);h=Math.max(h,cB(a.B)+2048*f);c=h/f*a.u.CB/(b+c);c=Math.min(c,d);a.u.Qf&&e&&(c=Math.max(c,a.u.Qf));return hB(a,c,b)};
hB=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.u.BB*c),Math.min(Math.min(a.u.Y,31*c),Math.ceil(b*c))))||65536};
xga=function(a,b){var c=hB(a,b.video?a.u.kE:a.u.Os,b.yb);return a.u.Fn&&b.video?Math.max(c,a.u.Fn):c};
jB=function(a){var b=eB(a.B);if(a.u.zv)return b;var c=a.u.AB,d=1E-9+cB(a.B);b*=Math.min(1,c/(b*d));a.u.En&&(c=((aB(a.B.D,.98)||0)-1)/2,c=Math.max(0,Math.min(1,c)),b*=1-a.u.En*c);return b};
kB=function(a){return jB(a)/a.C};
lB=function(a){a=void 0===a?{}:a;var b=void 0===a.Ti?!1:a.Ti,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.HA?!1:a.HA;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e&&Az()?3:2:c&&d?-1:1};
mB=function(a){return lB({hasSubfragmentedFmp4:a.D.kf,Ti:a.D.kf,defraggedFromSubfragments:a.Gj,isManifestless:!0,HA:a.fa})};
nB=function(a){var b=void 0===a?{}:a;a=void 0===b.oh?0:b.oh;var c=void 0===b.Ci?!1:b.Ci,d=void 0===b.Ij?0:b.Ij,e=void 0===b.Ed?0:b.Ed,f=void 0===b.Ff?Infinity:b.Ff,h=void 0===b.Uq?0:b.Uq;b=void 0===b.ce?!1:b.ce;this.segments=[];this.u=this.D=-1;this.B=null;this.Nf=a;this.Ij=d;this.Ci=c;this.Ed=e;this.Ff=f;this.Uq=h;this.ce=b};
pB=function(a,b,c){b=oB(a,b);return 0<=b&&(c||!a.segments[b].pending)};
oB=function(a,b){return yb(a.segments,function(c){return b-c.kb})};
qB=function(a,b,c){c=void 0===c?{}:c;Zx.call(this,a,b,"",void 0,void 0,c.oh||0);this.index=new nB(c)};
yga=function(a,b,c,d,e){this.kb=a;this.startSecs=b;this.durationSecs=c;this.u=d||NaN;this.B=e||NaN};
rB=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""};
sB=function(a,b){for(var c=a;c;c=c.parentNode){var d=c.getElementsByTagName(b);if(0<d.length)return d[0]}return null};
tB=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};
uB=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
vB=function(){this.u=[];this.B=null;this.J=0;this.D=[];this.C=!1;this.K="";this.F=-1};
zga=function(a){var b=a.D;a.D=[];return b};
Aga=function(){this.D=[];this.u=null;this.B={};this.C={}};
Ega=function(a,b,c){var d=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.q(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.parentNode.parentNode,h=null;"Period"==f.nodeName?h=Bga(a):"AdaptationSet"==f.nodeName?h=Cga(a,f.attributes.id?f.attributes.id.value:f.attributes.mimetype.value):"Representation"==f.nodeName&&(h=Dga(a,f.attributes.id.value));if(null==h)return;h.update(e,c);sb(d,zga(h))}sb(a.D,d);paa(a.D,function(l){return 1E3*l.startSecs+l.u})};
Fga=function(a){a.u&&(a.u.u=[]);g.Eb(a.B,function(b){b.u=[]});
g.Eb(a.C,function(b){b.u=[]})};
Bga=function(a){a.u||(a.u=new vB);return a.u};
Cga=function(a,b){a.B[b]||(a.B[b]=new vB);return a.B[b]};
Dga=function(a,b){a.C[b]||(a.C[b]=new vB);return a.C[b]};
wB=function(a,b,c,d,e){Wx.call(this,a,b,d||void 0,e||void 0);this.index=new g.Xx;this.J=c};
xB=function(a,b,c){var d=a.index.ry(b),e=a.index.Re(b),f=a.index.getDuration(b),h;c?f=h=0:0<a.info.yb&&(h=a.info.yb*f);c=b==a.index.Vb()&&0<h;a=new Ru(3,a,null,"otfCreateRequestInfoForSegment",b,e,f,0,h,c);return new ax([a],d)};
Gga=function(a,b){if(!a.index.Qc()){for(var c=[],d=b.J,e=b.K.split(",").filter(function(r){return 0<r.length}),f=0,h=0,l=0,m=/^(\d+)/,n=/r=(\d+)/,p=0;p<d;p++){if(0>=l)if(l=e.shift(),h=(h=m.exec(l))?+h[1]/1E3:0)l=(l=n.exec(l))?+l[1]:0,l+=1;
else return;c.push(new Ku(p,f,h,NaN,"sq/"+(p+1)));f+=h;l--}a.index.append(c)}};
Hga=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Xp(b||"","&");var c={};g.Cb(this.experimentIds,function(d){c[d]=!0});
this.experiments=c};
g.Q=function(a,b){return"true"===a.flags[b]};
g.P=function(a,b){return Number(a.flags[b])||0};
g.yB=function(a,b){var c=a.flags[b];return c?c.toString():""};
Iga=function(a,b,c,d){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d};
zB=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
AB=function(){var a=g.Ja("yt.player.utils.videoElement_");a||(a=g.Ce("VIDEO"),g.Fa("yt.player.utils.videoElement_",a,void 0));return a};
BB=function(a){var b=AB();return!!(b&&b.canPlayType&&b.canPlayType(a))};
Jga=function(a){try{var b=CB('video/mp4; codecs="avc1.42001E"')||CB('video/webm; codecs="vp9"');return(CB('audio/mp4; codecs="mp4a.40.2"')||CB('audio/webm; codecs="opus"'))&&(b||!a)||BB('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
CB=function(a){if(/opus/.test(a)&&(g.DB&&!Kn("38")||g.DB&&Pq("crkey")))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Vq())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!BB(a)};
EB=function(){return"pictureInPictureEnabled"in window.document&&!!window.document.pictureInPictureEnabled};
FB=function(){var a=AB();return!!a.webkitSupportsPresentationMode&&"function"===typeof a.webkitSetPresentationMode};
GB=function(){var a=AB();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
HB=function(a,b,c,d){g.O.call(this);var e=this;this.Lc=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.GD={error:function(){!e.ma()&&e.isActive&&e.V("error",e)},
updateend:function(){!e.ma()&&e.isActive&&e.V("updateend",e)}};
Et(this.Lc,this.GD);this.Ds=this.isActive};
IB=function(a,b,c){this.errorCode=a;this.u=b;this.details=c||{}};
g.JB=function(a){var b;for(b in a)if(a.hasOwnProperty(b)){var c=(""+a[b]).replace(/[:,=]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""};
KB=function(a){var b=void 0===b?!1:b;if(a instanceof IB)return a;a=a&&a instanceof Error?a:Error(""+a);b?g.Qs(a):g.gr(a);return new IB(b?"player.fatalexception":"player.exception",b,{name:""+a.name,message:""+a.message})};
LB=function(a,b,c,d,e){var f;g.O.call(this);var h=this;this.jc=a;this.Yd=b;this.id=c;this.containerType=d;this.isVideo=e;this.mE=this.zu=this.dz=null;this.appendWindowStart=this.timestampOffset=0;this.hC=lA([],[]);this.gt=!1;this.Te=function(l){return h.V(l.type,h)};
if(null===(f=this.jc)||void 0===f?0:f.addEventListener)this.jc.addEventListener("updateend",this.Te),this.jc.addEventListener("error",this.Te)};
MB=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
NB=function(a,b){this.u=a;this.B=void 0===b?!1:b;this.C=!1};
OB=function(a,b,c){c=void 0===c?!1:c;g.B.call(this);this.mediaSource=a;this.Yd=b;this.isView=c;this.C=0;this.callback=null;this.events=new Bt(this);g.C(this,this.events);this.Vq=new NB(this.mediaSource?window.URL.createObjectURL(this.mediaSource):this.Yd.webkitMediaSourceURL,!0);a=this.mediaSource||this.Yd;Ct(this.events,a,["sourceopen","webkitsourceopen"],this.RQ);Ct(this.events,a,["sourceclose","webkitsourceclose"],this.QQ)};
Kga=function(a,b){PB(a)?g.lm(function(){return b(a)}):a.callback=b};
QB=function(a){return!!a.u||!!a.B};
PB=function(a){try{return"open"===RB(a)}catch(b){return!1}};
SB=function(a){try{return"closed"===RB(a)}catch(b){return!0}};
RB=function(a){if(a.mediaSource)return a.mediaSource.readyState;switch(a.Yd.webkitSourceState){case a.Yd.SOURCE_OPEN:return"open";case a.Yd.SOURCE_ENDED:return"ended";default:return"closed"}};
TB=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
UB=function(a,b,c,d){if(!a.u||!a.B)return null;var e=a.u.isView()?a.u.Lc:a.u,f=a.B.isView()?a.B.Lc:a.B,h=new OB(a.mediaSource,a.Yd,!0);h.Vq=a.Vq;e=new HB(e,b,c,d);b=new HB(f,b,c,d);h.u=e;h.B=b;g.C(h,e);g.C(h,b);PB(a)||a.u.ip(a.u.wc());return h};
Lga=function(a,b){return VB(function(c,d){return g.ct(c,d,4,1E3)},a,b)};
g.WB=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=av(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
VB=function(a,b,c){b.match(Mga);return a(b,c).then(function(d){var e=g.WB(d);return e?VB(a,e,c):d})};
XB=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.O.call(this);this.ga=this.duration=0;this.ce=this.J=this.isLive=this.C=!1;this.Ff=this.Ed=0;this.isOtf=this.Yg=!1;this.Y=(0,g.N)();this.K=Infinity;this.u={};this.sourceUrl=a||"";this.Ja=this.da=0;this.F=null;this.Ma=!!b&&g.Q(b,"html5_live_nonzero_first_segment_start_time");this.isManifestless=!1;this.S=[];this.Pa=!!b&&g.Q(b,"html5_live_self_init_segments");this.D=null;this.Ta=c;this.Ba=!b||!g.Q(b,"html5_manifest_without_credentials");
this.P=0;this.fa=!!b&&g.Q(b,"disable_html5_manifest_namespace_redux");this.la="";this.X=NaN;this.na=b&&g.Q(b,"disable_html5_duration_caching")?Infinity:10;this.dk=this.Mm=this.B=0;this.Ha=!!b&&g.Q(b,"html5_reset_index_on_mismatch")};
Nga=function(a){return g.Hb(a.u,function(b){return!!b.info.video&&b.info.video.Xg()})};
YB=function(a){return g.Hb(a.u,function(b){return!!b.info.Sd})};
Oga=function(a){return g.Hb(a.u,function(b){return Ux(b.info.mimeType)})};
Pga=function(a){return Ib(a.u,function(b){return b.info.video?b.Iv():!0})};
ZB=function(a){return g.Hb(a.u,function(b){return Iw(b.B.u)})};
$B=function(a,b){a.u[b.info.id]=b};
Qga=function(a,b,c,d){c=void 0===c?0:c;var e=new XB("",d,!1);e.duration=c||0;g.Cb(a,function(f){var h=aC(f,b,e.duration),l=Mu(f.init),m=Mu(f.index),n=parseInt(f.clen,10),p=bC(f.url,f.sp,f.s);f=parseInt(f.lmt,10);p&&$B(e,new by(p,h,l,m,n,f))});
return e};
Rga=function(a,b,c,d){c=void 0===c?0:c;var e=new XB("",d,!1);e.duration=c||0;g.Cb(a,function(f){var h=aC(f,b,e.duration),l=bC(f.url,f.sp,f.s);if(!g.jw(h)){var m=d&&g.Q(d,"html5_manifestless_vp9_otf"),n=d&&g.Q(d,"html5_otf_webm_audio_killswitch");if(!m||!h.isVideo()&&n)return}l&&(h.video&&3==h.video.streamType?$B(e,new wB(l,h,"sq/0",null,null)):(m=Mu(f.init),f=Mu(f.index),$B(e,new wB(l,h,"",m,f))))});
e.isOtf=!0;return e};
Sga=function(a,b,c,d){var e=new XB("",d,!0);g.Cb(a,function(f){var h=aC(f,c),l=bC(f.url,f.sp,f.s),m=parseInt(f.target_duration_sec,10)||5;f=parseInt(f.max_dvr_duration_sec,10)||14400;var n=parseInt(l.get("mindsq"),10)||parseInt(l.get("min_sq"),10)||0,p=parseInt(l.get("maxdsq"),10)||parseInt(l.get("max_sq"),10)||Infinity;e.Ed=e.Ed||n;e.Ff=e.Ff||p;var r=!Ux(h.mimeType),t=d&&g.P(d,"html5_manifestless_max_segment_history");l&&$B(e,new qB(l,h,{oh:m,Ci:r,Ij:f,Ed:n,Ff:p,Uq:t,ce:b}))});
e.C=!b;e.Yg=!0;e.isManifestless=!0;e.isLive=!b;e.ce=b;e.J=!!e.Ed&&!!e.Ff&&isFinite(e.Ff);return e};
aC=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);var h=null;f=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){h=(a.size||"640x360").split("x");h=new Kx(+h[0],+h[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries,+a.stream_type);var l=h;null===cC&&(cC=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((cC||dC)&&('video/webm; codecs="vp9"'==d||'video/webm; codecs="vp9.2"'==d)){var m="00",n="08",p="01",r="01",t="01";'video/webm; codecs="vp9.2"'==d&&(m="02",n="10","bt2020"===l.primaries&&(t=p="09"),"smpte2084"==l.u&&(r="16"),"arib-std-b67"==l.u&&(r="18"));d='video/webm; codecs="'+["vp09",m,"51",n,"01",p,r,t,"00"].join(".")+'"'}}m=l=null;/(opus|mp4a|dtse|ac-3|ec-3)/.test(d)&&(l=new Hx(+a.audio_sample_rate||void 0,+a.audio_channels||0,+a.spatial_audio_type),a.name&&(m=new zB(a.name,a.audio_track_id,
"1"==a.isDefault)));a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(f=new Iga(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind));n=parseInt(a.bitrate,10)/8;p=parseInt(a.clen,10);c=c&&p?p/c:0;p=null;if(b&&a.drm_families)for(p={},a=g.q(a.drm_families.split(",")),r=a.next();!r.done;r=a.next())r=r.value,p[r]=b[r];return new Px(e,d,l,h,m,p,n,c,f)};
Tga=function(a){return ji(a,function(b){return 3==+b.stream_type})?3:0};
eC=function(a,b){return a.F?tb(a.F.D,b):a.S.length?tb(a.S,b):[]};
bC=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new Ew(a,!0);a.set("alr","yes");c&&(c=rw(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
hC=function(a,b){var c=rB(b,"id");c=c.replace(":",";");var d=rB(b,"mimeType"),e=rB(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=parseInt(rB(b,"bandwidth"),10)/8;var f=parseInt(sB(b,"BaseURL").getAttribute(fC(a,"contentLength")),10);f=a.duration&&f?f/a.duration:0;var h=null;if(/(vp9|vp09|vp8|avc1|av01)/.test(d)){h=parseInt(rB(b,"width"),10);var l=parseInt(rB(b,"height"),10),m=parseInt(rB(b,"frameRate"),10),n=Uga(rB(b,fC(a,"projectionType")));a:switch(rB(b,fC(a,"stereoLayout"))){case "layout_left_right":var p=
1;break a;case "layout_top_bottom":p=2;break a;default:p=0}rB(b,"video_level");h=new Kx(h,l,m,n,p,void 0,void 0,void 0,void 0)}m=l=null;if(/(opus|mp4a|dtse|ac-3|ec-3)/.test(d))if(l=parseInt(rB(b,"audioSamplingRate"),10),m=parseInt(rB(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10),n=Vga(rB(b,fC(a,"spatialAudioType"))),l=new Hx(l,m,n),m=rB(b,"lang")||"und",n=sB(b,"Role")){var r=rB(n,"value")||"";Nb(gC,r)?(n=m+"."+gC[r],p="main"==r,m=rB(b,fC(a,"langName"))||m+" - "+r,m=new zB(m,
n,p)):m=null}else m=null;p=null;if(n=sB(b,"ContentProtection"))if(g.Sq())if((p=n.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==p.value)for(p={},n=n.firstChild;null!=n;n=n.nextSibling)"yt:SystemURL"==n.nodeName&&(p[n.attributes.type.value]=n.textContent.trim());else p=null;else if((p=n.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==p.textContent)for(p={},n=n.firstChild;null!=n;n=n.nextSibling)"SystemURL"==n.localName&&"http://youtube.com/yt/2012/10/10"==n.namespaceURI&&
(p[n.attributes.type.textContent]=n.textContent.trim());else p=null;return new Px(c,d,l,h,m,p,e,f)};
Uga=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}};
Vga=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}};
iC=function(a,b){b=void 0===b?"":b;a.Ja=1;a.Y=(0,g.N)();return Bm(Lga(b||a.sourceUrl,{format:"RAW",method:"GET",withCredentials:a.Ba}).then((0,g.z)(a.PK,a)),(0,g.z)(a.QK,a))};
Wga=function(a,b,c){return iC(new XB(a,b,c),a)};
jC=function(a){return a.isLive&&(0,g.N)()-a.Y>=a.K};
kC=function(a){var b=a.K;isFinite(b)&&(jC(a)?a.refresh():(b=Math.max(0,a.Y+b-(0,g.N)()),a.D||(a.D=new g.F(a.refresh,b,a),g.C(a,a.D)),a.D.start(b)))};
Xga=function(a){a=a.u;for(var b in a){var c=a[b].index;if(c.Qc())return c.Vb()+1}return 0};
lC=function(a){return a.Mm&&a.B?a.Mm-a.B:0};
mC=function(a){if(!isNaN(a.X))return a.X;var b=a.u,c;for(c in b){var d=b[c].index;if(d.Qc()){b=0;for(c=d.Hh();c<=d.Vb();c++)b+=d.getDuration(c);b/=d.ao();b=.5*Math.round(b/.5);d.ao()>a.na&&(a.X=b);return b}if(a.isLive&&(d=b[c],d.oh))return d.oh}return NaN};
Yga=function(a,b){var c=Qb(a.u,function(e){return e.index.Qc()});
if(!c)return NaN;c=c.index;var d=c.Jh(b);return c.Re(d)==b?b:d<c.Vb()?c.Re(d+1):NaN};
Zga=function(a,b){g.Eb(a.u,function(c){g.Eb(b,function(d,e){var f=c.B;f.u.set(e,d);f.D.set(e,d);f.C&&f.C.set(e,d)})})};
$ga=function(a,b){if(!a.u["0"]){var c=new Px("0","fakesb",void 0,new Kx(0,0,0,void 0,void 0,"auto"),null,null,1);a.u["0"]=b?new Zx(new Ew("http://www.youtube.com/videoplayback"),c,"fake"):new by(new Ew("http://www.youtube.com/videoplayback"),c,new Lu(0,0),new Lu(0,0),0,NaN)}};
nC=function(a,b,c){for(var d in a.u){var e=Ux(a.u[d].info.mimeType)||a.u[d].info.isVideo();if(c==e){e=a.u[d].index;var f=oB(e,b);0<=f&&e.segments.splice(f,1)}}};
fC=function(a,b){return a.fa?"yt:"+b:a.la+":"+b};
aha=function(a){return g.fb(Object.values(a.u),function(b){return b.info.Sd&&b.info.video?480<b.info.video.Cc&&"H"==b.info.Bb:!1})};
oC=function(a,b,c,d,e){g.O.call(this);this.C=this.u=null;this.K=!1;this.B=e?1:0;this.D=this.F=NaN;this.J=0;this.P=b;this.X=a;this.S=c;WA(this.S,"cuepoint",this.Y,this);this.da=d};
pC=function(a,b){if(a.u){a.C=null;a.K=!1;var c=b.startTime+a.J-a.u.ue.startSecs;0>=c||(c=new Gu(a.u.ue.startSecs-(a.P.jd&&!isNaN(a.J)?a.J:0),c,a.u.ue.context,a.u.ue.identifier,"stop",a.u.ue.u+1E3*b.duration),a.V("ctmp","cuepointdiscontinuity","segNum."+b.kb,!1),a.Y(c,b.kb))}};
qC=function(a,b){a.C=null;a.K=!1;0<b&&4===a.B&&(a.B=5)};
rC=function(a,b,c,d,e){g.O.call(this);this.D=0;this.B=b;this.u=c;this.F=a;this.S=d;this.X=e;this.J=0;this.K=this.F.isManifestless&&!this.F.ce;this.C=!1;this.P=null};
sC=function(a,b){var c=a.u.index,d=a.B.B;pB(c,d)||b&&b.B==d?(a.F=!pB(c,d),a.S=!pB(c,d)):(a.F=!0,a.S=!0)};
tC=function(a,b,c){if(!a.u.Ae())return 0!=b&&KA(a),b;var d=EA(a,b);if(!isNaN(d))return d;LA(a);return c&&(c=pA(c.xe(),b),!isNaN(c))?(GA(a,c+bha),b):GA(a,b)};
dha=function(a,b,c,d){if(a.C&&a.D){var e=cha(a,b,c);if(-1!=e){a.B.F=!1;a.u.F=!1;a.K=!0;g.lm(function(){uC(a,"seekreason","behindMinSq");vC(a,e)});
return}}c?a.B.S=!1:a.u.S=!1;0<=EA(a.B,a.D)&&0<=EA(a.u,a.D)?((a.B.F||a.u.F)&&uC(a,"iterativeSeeking","done;count."+a.J,!1),a.B.F=!1,a.u.F=!1):d&&g.lm(function(){if(a.K||!a.S.ra)a.S.Dn?wC(a):c&&vC(a,b.startTime);else{var f=b.startTime,h=b.duration,l=c?a.B.F:a.u.F;l=!a.ma()&&l;var m=-1!=a.B.J&&-1!=a.u.J,n=!a.B.S&&!a.u.S;l&&m&&n&&(a.D>=f&&a.D<f+h+.1?((c?a.B:a.u).F=!1,a.B.F||a.u.F||(uC(a,"iterativeSeeking","done;count."+a.J,!1),a.J=0)):8>a.J?(a.J++,uC(a,"iterativeSeeking","inprogress;count."+a.J+";target."+
a.D+";actual."+f+";duration."+h+";isVideo."+c,!1),a.seek(a.D)):(uC(a,"iterativeSeeking","incomplete;count."+a.J+";target."+a.D+";actual."+f,!1),a.J=0,a.B.F=!1,a.u.F=!1,a.V("seekplayerrequired",f+.1,!0)))}})};
cha=function(a,b,c){if(!a.C)return-1;c=(c?a.B:a.u).u.index;var d=c.Jh(a.D);return(pB(c,a.F.Ed)||b.kb==a.F.Ed)&&d<a.F.Ed?a.F.Gc():-1};
vC=function(a,b){!a.ma()&&a.K&&-1!=a.B.J&&-1!=a.u.J&&(a.K=!1,a.V("seekplayerrequired",b+.1,a.S.Dn))};
wC=function(a){var b=-1!=a.B.J,c=-1!=a.u.J;if(!b||!c)if(b=!b&&Ry(a.B.C),c=!c&&Ry(a.u.C),b||c)if(c=b?a.B:a.u,b=b?a.u:a.B,c.J=Ry(c.C).info.B,-1!=b.J){var d=Math.max(b.u.index.Re(b.J),c.u.index.Re(c.J));uC(a,"seekreason","initManifestlessSync");g.lm(function(){return vC(a,d)});
a.P&&(a.P.resolve(d+.1),a.P=null)}};
uC=function(a,b,c,d){a.V("ctmp",b,c,void 0===d?!1:d)};
eha=function(){this.ga=this.Lb=this.C=this.F=this.D=this.K=this.P=this.da=this.Y=!1;this.fa=!0;this.ra=!1;this.J=0;this.Ba=!1;this.la=Infinity;this.gx=!1;this.Xb=!0;this.X=this.S=!1;this.B={};this.u=this.na=!1;this.Pl=this.jn=null};
fha=function(a){if(a.da)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Ba&&b.unshift("1");a.C&&b.unshift("h");a.jn&&b.unshift(a.jn);return b};
gha=function(a){var b=["o","a","A"];a.K&&(b=["m","M"].concat(b));a.D&&(b=["mac3","MAC3"].concat(b));a.F&&(b=["meac3","MEAC3"].concat(b));a.Y&&(b=["so","sa"].concat(b));!a.Lb||a.D||a.Pl||b.unshift("a");a.P&&b.unshift("ah");a.Pl&&b.unshift(a.Pl);return b};
BC=function(a,b,c){b=void 0===b?{}:b;if(xC(a.D,yC.AV1_CODECS)&&xC(a.D,yC.HEIGHT)&&xC(a.D,yC.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=zC();if(d)return b.localPref=d}catch(f){}d=g.P(a.experiments,"html5_av1_thresh");var e=g.P(a.experiments,"html5_av1_thresh_lcc");e&&2>=navigator.hardwareConcurrency&&(d=e);(e=g.P(a.experiments,"html5_av1_thresh_hcc"))&&4<navigator.hardwareConcurrency&&(d=e);b.coreCount=navigator.hardwareConcurrency;(a=g.P(a.experiments,"html5_av1_thresh_arm"))&&Rq()&&(b.isArm=
1,d=a);if(c){if((a=c.videoInfos.find(function(f){return Sx(f)}))&&a.B)return d=8192,b.av1Threshold=d;
c=c.videoInfos[0].video;a=Math.min(AC("1",c.fps),AC("1",30));b.perfCap=a;d=Math.min(d,a);c.Xg()&&(b.hdr=1,d*=.75)}else c=AC("1",30),b.perfCap30=c,d=Math.min(d,c),c=AC("1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
CC=function(a,b,c,d){this.flavor=a;this.u=b;this.C=c;this.experiments=d;this.B={};this.Dh=this.keySystemAccess=null;this.Ct=this.Dt=-1;this.Ap=null;this.D="";this.F=!!d&&g.Q(d,"edge_nonprefixed_eme");this.D=d?g.yB(d,"html5_hdcp_probing_stream_url"):""};
EC=function(a){return a.F?!1:!a.keySystemAccess&&!!DC()&&"com.microsoft.playready"===a.u};
FC=function(a){return"com.microsoft.playready"===a.u};
GC=function(a){return g.ms&&"com.microsoft.playready"===a.u&&!!navigator.requestMediaKeySystemAccess};
HC=function(a){return!a.keySystemAccess&&!!DC()&&"com.apple.fps.1_0"===a.u};
IC=function(a){return"com.youtube.fairplay"===a.u};
JC=function(a){return"fairplay"===a.flavor};
DC=function(){var a=window,b=a.MSMediaKeys;Xq()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
LC=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.DB&&!g.Sq())return Kn("45");if(g.ms||g.ve)return g.Q(a,"edge_nonprefixed_eme");if(g.KC)return Kn("47");if(g.Zr){var b=g.P(a,"html5_safari_desktop_eme_min_version");if(b)return Kn(b)}return!g.Q(a,"html5_disable_nonprefixed_eme_for_other")};
hha=function(a,b,c){var d=Tq(),e=d?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&(e.unshift("com.youtube.widevine.l3"),d&&c&&e.unshift("com.youtube.widevine.forcehdcp"));return d?e:a?[].concat(g.ma(e),g.ma(MC.playready)):[].concat(g.ma(MC.playready),g.ma(e))};
NC=function(a,b,c){this.experiments=a;this.X=b;this.Y=void 0===c?!1:c;this.F=!!g.Ja("cast.receiver.platform.canDisplayType");this.D={};this.K=!1;this.P=new Set;this.J=!0;this.B=!g.Q(this.experiments,"html5_disable_protected_hdr");this.C=!1;this.S=g.Q(this.experiments,"html5_disable_vp9_encrypted");a=g.Ja("cast.receiver.platform.getValue");this.u=!this.F&&a&&a("max-video-resolution-vpx")||null};
OC=function(a,b,c){c=void 0===c?1:c;var d=b.dc();if("0"===d)return!0;var e=b.mimeType;if(g.Q(a.experiments,"html5_disable_codec_on_platform_errors")){if(a.P.has(b.Bb))return"byerr"}else if(Sx(b)&&a.K)return"dav1";if(b.video&&(b.video.Xg()||"bt2020"===b.video.primaries)&&!(xC(a,yC.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if("338"===d&&!(g.DB?Kn(53):g.KC&&Kn(64)))return"dopus";
var f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[yC.WIDTH.name]=b.video.width),b.video.height&&(c[yC.HEIGHT.name]=b.video.height),b.video.fps&&(c[yC.FRAMERATE.name]=b.video.fps*f),b.video.u&&(c[yC.EOTF.name]=b.video.u),b.yb&&(c[yC.BITRATE.name]=8*b.yb*f),"("===b.Bb&&(c[yC.CRYPTOBLOCKFORMAT.name]="subsample"),2===b.video.projectionType||3===b.video.projectionType||4===b.video.projectionType)&&(c[yC.DECODETOTEXTURE.name]="true");b.audio&&b.audio.u&&(c[yC.CHANNELS.name]=b.audio.u);a.C&&Qx(b)&&
(c[yC.EXPERIMENTAL.name]="allowed");f=g.q(Object.keys(yC));for(var h=f.next();!h.done;h=f.next()){h=yC[h.value];var l;if(l=c[h.name])(l=h===yC.EOTF&&0<b.mimeType.indexOf("vp09.02"))||(l=b,l=g.Q(a.experiments,"html5_ignore_h264_framerate_cap")&&h===yC.FRAMERATE&&("H"===l.Bb||"h"===l.Bb)),l=!(l||h===yC.DECODETOTEXTURE&&!g.Q(a.experiments,"html5_decode_to_texture_cap"));if(l)if(xC(a,h))if(a.u){if(a.u[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(Rx(b)&&h===yC.EOTF)return"dvp92"}!g.Q(a.experiments,
"disable_html5_cast_hdcp_filter2")&&a.F&&b.video&&1080<b.video.Cc&&b.Sd&&(e+="; hdcp=2.2");return"227"!==d||g.Q(a.experiments,"html5_enable_1080p_hq_cenc")?"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||g.Q(a.experiments,"html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc":"hqcenc"};
PC=function(){var a=Qq()&&!Kn(29),b=Pq("google tv")&&Pq("chrome")&&!Kn(30),c=Tq();return a||b||c?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
g.QC=function(a,b){b=void 0===b?!1:b;return PC()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(AB(),"application/x-mpegURL")?!0:!1};
xC=function(a,b){b.name in a.D||(a.D[b.name]=iha(a,b));return a.D[b.name]};
iha=function(a,b){if(a.u)return!!a.u[b.name];if(b===yC.BITRATE&&g.Q(a.experiments,"html5_ignore_bad_bitrates")&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===yC.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)};
RC=function(a,b){this.id=a;this.u=b;this.captionTracks=[];this.B=this.D=this.F=null;this.C="UNKNOWN"};
SC=function(a,b,c,d){this.C=c;this.reason=d;this.B=a||0;this.u=b||0};
TC=function(a,b){return a.B===b.B&&a.u===b.u&&a.C===b.C&&a.reason===b.reason};
UC=function(a,b,c,d){return new SC(g.Jx[a]||0,g.Jx[b]||0,c,d)};
VC=function(a){var b=g.Jx.auto;return a.B===b&&a.u===b};
WC=function(a){var b=a.u||a.B;return Qb(jha,function(c){return g.Jx[c]===b})||"auto"};
XC=function(a,b){var c=g.Jx[b];return a.B<=c&&(!a.u||a.u>=c)};
YC=function(a,b,c){this.videoInfos=a;this.audioTracks=[];this.u=b||null;this.B=c||null;if(this.u)for(a=new Set,b=g.q(this.u),c=b.next();!c.done;c=b.next())if(c=c.value,c.u&&!a.has(c.u.id)){var d=new RC(c.id,c.u);a.add(c.u.id);this.audioTracks.push(d)}};
$C=function(a,b,c,d){var e=[],f={};if(ZB(c)){for(var h in c.u)d=c.u[h],f[d.info.Bb]=[d.info];return f}for(var l in c.u){h=c.u[l];var m=h.info.dc();if(""==h.info.Bb)e.push(m),e.push("unkn");else if("304"!=m&&"266"!=m||!a.fa)if(a.ga&&"h"==h.info.Bb&&h.info.video&&1080<h.info.video.Cc)e.push(m),e.push("blkhigh264");else if(a.ra&&h.info.video&&4320<=h.info.video.Cc&&32<h.info.video.fps)e.push(m),e.push("blk8khfr");else{var n=OC(b,h.info);!0!==n?(e.push(m),e.push(n)):"(h"!=h.info.Bb||b.B?(n="MAC3"==h.info.Bb||
"MEAC3"==h.info.Bb||"M"==h.info.Bb,c.isLive&&n&&!a.S?(e.push(m),e.push("blk51live")):(f[h.info.Bb]=f[h.info.Bb]||[],f[h.info.Bb].push(h.info))):(e.push(m),e.push("enchdr"))}else e.push(m),e.push("blk2khfr")}a.u&&(d(e.join(".")),c="bfflt."+ZC(f),d(c));c=g.q(Object.keys(f));for(e=c.next();!e.done;e=c.next())e=e.value,f[e]&&f[e][0].isVideo()&&(f[e]=kha(a,f[e]),f[e]=lha(b,f[e]));b=g.Fb(f,function(p){return!!p.length});
a.u&&(f="aftflt."+ZC(f),d(f));return b};
aD=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
ZC=function(a){for(var b=[],c=g.q(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;b.push(aD(d));d=g.q(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.dc())}return b.join(".")};
mha=function(a,b,c){var d={};g.Eb(b,function(e,f){var h=e.filter(function(l){var m;if(m=l.Sd&&c&&l.Sd[c.flavor]&&c.B[l.mimeType])(l="("!=l.Bb&&"(h"!=l.Bb)||(l=(xC(a,yC.CRYPTOBLOCKFORMAT)||a.Y)&&!a.S),m=l;return m?!0:!1});
h.length&&(d[f]=h)});
return d};
nha=function(a,b,c,d,e,f){function h(E){return!!l[E]}
f=void 0===f?!1:f;var l=$C(a,b,c,e);YB(c)&&(l=mha(b,l,d));if(ZB(c))return e=g.fb(Object.values(l),function(E){return!!E.length&&!!E[0].audio}),a=g.fb(Object.values(l),function(E){return!!E.length&&!!E[0].video}),e&&a||et(),ft(new YC(a,e));
b=gha(a);b=g.fb(b,h);d=l[b];if(!b)return a.u&&e("noaudio"),et();l["9"]&&l.h&&c.Yg&&!a.X&&(a.u&&e("dltvp9"),delete l["9"]);var m=l["9h"]?"9h":"9",n=l["1"],p=l[m];n&&n.length&&(a.B.highestAv1Resolution=n[n.length-1].Na().Cc);p&&p.length&&(a.B.higestVp9Resolution=p[p.length-1].Na().Cc);var r=[],t=[];if(a.na&&!a.C)for(t=Nga(c)?n||l["9h"]?["1","9h"]:["9","h"]:["1","9","h"],a.u&&e("newhybpref."+t.join(".")),c=g.q(t),f=c.next();!f.done;f=c.next())r=r.concat(l[f.value]).filter(function(E){return E});
else if(0<a.J&&p&&n){if(!f){var w=Math.min(a.J,bD(n)),x=bD(p),y=function(E){return E<=w||E>x};
a.u&&e("lth."+w+".uth."+x);n=n.filter(function(E){return y(E.Na().Cc)});
p=p.filter(function(E){return!y(E.Na().Cc)})}t=["1",
m];r=[].concat(n,p).filter(function(E){return E})}if(r.length&&!a.C){cD(r,d,t);
if(a.u){a=[];m=g.q(r);for(c=m.next();!c.done;c=m.next())a.push(c.value.dc());e("hbdfmt."+a.join("."))}return ft(new YC(r,d,dD(l,"",b)))}r=fha(a);r=g.fb(r,h);if(!r)return a.u&&e("novideo"),et();a.Xb&&"1"==r&&l[m]&&(c=bD(l["1"]),bD(l[m])>c&&(r=m));"9"==r&&l.h&&(m=bD(l["9"]),bD(l.h)>1.5*m&&(r="h"));a.u&&e("vfmly."+aD(r));m=l[r];if(!m.length)return a.u&&e("novfmly."+aD(r)),et();cD(m,d);return ft(new YC(m,d,dD(l,r,b)))};
dD=function(a,b,c){var d=a.h;"f"==b&&(d=a[b]);var e=a.a;b=a[b]!=d;a=a[c]!=e;return d&&e&&(b||a)?(cD(d,e),new YC(d,e)):null};
cD=function(a,b,c){c=void 0===c?[]:c;g.zb(a,function(d,e){var f=e.Na().height*e.Na().width-d.Na().height*d.Na().width;if(!f&&c&&0<c.length){f=c.indexOf(d.Bb)+1;var h=c.indexOf(e.Bb)+1;f=0===f||0===h?h||-1:f-h}f||(f=e.yb-d.yb);return f});
g.zb(b,function(d,e){return e.yb-d.yb})};
lha=function(a,b){var c=g.qh(b,function(d,e){return 32<e.Na().fps?Math.min(d,e.Na().width):d},Infinity);
Infinity>c&&(b=a.J&&(a.X||xC(a,yC.FRAMERATE))?g.He(b,function(d){return 32<d.Na().fps||d.Na().width<c}):g.He(b,function(d){return!(32<d.Na().fps)}));
Uq()&&(b=g.He(b,function(d){return"299"!=d.dc()}));
return b};
kha=function(a,b){return b=g.He(b,function(c){return c.Na().Cc<=a.la})};
bD=function(a){return g.qh(a,function(b,c){return Math.max(b,c.Na().Cc)},0)};
eD=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
tga=function(){this.u=0};
fD=function(){g.O.call(this);this.items={}};
oha=function(a,b){this.encryptedClientKey=b;this.u=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
gD=function(a){try{return g.af(a)}catch(b){return null}};
pha=function(a){try{var b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?gD(b.clientKey):null;var c=b.encryptedClientKey?gD(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.N)():null;a&&c&&d&&(this.u=new oha(a,c));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=gD(b.onesieUstreamerConfig));this.baseUrl=b.baseUrl}};
qha=function(){this.u=17;this.C=13E4;this.D=.5;this.B=!1};
iD=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.B.call(this);var c=this;this.values=a;this.Oj=b;this.B={};this.C=this.u=0;this.D=new g.F(function(){hD(c)},1E4);
g.C(this,this.D)};
kD=function(a,b){jD(a,b);return a.values[b]&&a.Oj[b]?a.values[b]/Math.pow(2,a.u/a.Oj[b]):0};
jD=function(a,b){if(!a.values[b]){var c=lD();a.values=c.values||{};a.Oj=c.halfLives||{};a.B=c.values?Object.assign({},c.values):{}}};
hD=function(a){var b=lD();if(b.values){b=b.values;for(var c={},d=g.q(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.B[e]&&(a.values[e]+=b[e]-a.B[e]),c[e]=kD(a,e);a.B=c}rha(a.B,a.Oj)};
R=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
mD=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
nD=function(a,b){return void 0===b||null===b?a:Number(b)};
oD=function(a,b){return void 0===b||null===b?a:b.toString()};
pD=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}if(a){var c=a.match(sha);if(c){var d=Number(c[2]);c=Number(c[1]);if(!isNaN(d)&&!isNaN(c)&&0<d)return c/d}}return NaN};
qD=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||g.wo("parse_video_id_from_serialized_player_response_killswitch")||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
PD=function(a,b,c){var d,e;g.B.call(this);this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.ng=this.gd=this.Ac=this.zi=this.userDisplayName=this.userDisplayImage="";this.deviceParams={};this.controlsType="0";this.Tj=NaN;this.Lf=!1;this.Ba=0;this.vf=this.xn=this.Tg=!1;a=a?g.Ub(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.cspNonce=oD("",a.csp_nonce);this.experiments=new Hga(b?b.serializedExperimentIds:a.fexp,b?
b.serializedExperimentFlags:a.fflags);this.Ma=b?b.serializedForcedExperimentIds:oD("",a.forced_experiments)||void 0;uw=this.aa("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(y){f=""}this.jd=f;this.Kg=(f=window.location.ancestorOrigins)?Array.from(f):[];f=!this.aa("web_player_context_config_embeds_fields_killswitch");this.B=R(!1,b&&f?b.isEmbed:a.is_embed);if(b&&b.device){var h=b.device;h.brand&&(this.deviceParams.cbrand=h.brand);h.browser&&(this.deviceParams.cbr=
h.browser);h.browserVersion&&(this.deviceParams.cbrver=h.browserVersion);this.deviceParams.c=h.interfaceName||"WEB";this.deviceParams.cver=h.interfaceVersion||"html5";h.interfaceTheme&&(this.deviceParams.ctheme=h.interfaceTheme);this.deviceParams.cplayer=h.interfacePlayerType||"UNIPLAYER";h.model&&(this.deviceParams.cmodel=h.model);h.network&&(this.deviceParams.cnetwork=h.network);h.os&&(this.deviceParams.cos=h.os);h.osVersion&&(this.deviceParams.cosver=h.osVersion);h.platform&&(this.deviceParams.cplatform=
h.platform)}else this.deviceParams.c=a.c||"web",this.deviceParams.cver=a.cver||"html5",this.deviceParams.cplayer="UNIPLAYER";b&&!this.aa("wpcc_loader_url_killswitch")?this.loaderUrl=this.B||rD(this)&&b.loaderUrl?b.loaderUrl||"":this.jd:this.loaderUrl=this.B||rD(this)&&a.loaderUrl?oD("",a.loaderUrl):this.jd;this.C=vw(this.loaderUrl,tha,uha);h=this.loaderUrl;var l=void 0===l?!1:l;this.Ys=tw(vw(h,vha,null),h,l,"Trusted Ad Domain URL");this.la=R(!1,a.privembed);this.protocol=0===this.jd.indexOf("http:")?
"http":"https";this.S=xw((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||xw(this.jd)||this.protocol+"://www.youtube.com/";l=b?b.eventLabel:a.el;h="detailpage";"adunit"===l?h=this.B?"embedded":"detailpage":"embedded"===l||this.C?h=mD(h,l,wha):l&&(h="embedded");this.fa=h;Ap();l=null;h=b?b.playerStyle:a.ps;var m=g.jb(sD,h);!h||m&&!this.C||(l=h);this.playerStyle=l;this.K=(this.J=g.jb(sD,this.playerStyle))&&"area120-boutique"!==this.playerStyle&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;
this.Ts=!this.K;this.da=R(!1,a.disableplaybackui);this.Dd=AB().defaultPlaybackRate?tD||g.br||uD?g.KC&&Kn("20")||g.DB&&Kn("4")||g.rg&&Kn("11")||Yq():!(g.rg&&!Pq("chrome")||tD||Pq("android")||Pq("silk")):!1;this.Os=R(!1,a.enable_faster_speeds);this.u=R("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.u?l=!this.J:(l=Number(g.A()/1E3),h=g.pt.getInstance(),l=this.aa("block_desktop_background_playback_with_mobile_cookie")&&h&&l>Number(h.get("dhmu",l.toString())));this.Rs=
l;this.Za="3"===this.controlsType||this.u||R(!1,a.use_media_volume);this.X=GB();this.vu=g.vD;this.yn=R(!1,b&&f?b.embedOptOutDeprecation:a.opt_out_deprecation);this.pfpChazalUi=R(!1,(b&&f?b.pfpChazalUi:a.pfp_chazal_ui)&&!this.aa("embeds_pfp_chazal_ui_killswitch"));var n;b?void 0!==b.hideInfo&&(n=!b.hideInfo):n=a.showinfo;this.Cn=g.wD(this)&&!this.yn||R(!xD(this)&&!yD(this)&&!this.J,n);this.zn=b?!!b.mobileIphoneSupportsInlinePlayback:R(!1,a.playsinline);n=this.u&&zD&&null!=AD&&0<AD&&2.3>=AD;l=b?b.useNativeControls:
a.use_native_controls;h=this.u&&!this.aa("embeds_enable_mobile_custom_controls");l=BD(this)||!n&&R(h,l)?"3":"1";h=b?b.controlsType:a.controls;this.controlsType="0"!==h&&0!==h?l:"0";this.Rf=this.u;this.color=mD("red",b&&f?b.progressBarColor:a.color,xha);this.Et="3"===this.controlsType||R(!1,b&&f?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.Ha=!this.B;this.Dn=(l=!this.Ha&&!yD(this)&&!this.K&&!this.J&&!xD(this))&&!this.Et&&"1"===this.controlsType;this.Ub=g.CD(this)&&l&&"0"===
this.controlsType&&!this.Dn;this.zv=this.Pt=n;this.En=DD&&!g.Yd(601)?!1:!0;this.Qs=this.B||!1;this.Pa=yD(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=oD("",b&&f?b.widgetReferrer:a.widget_referrer);var p;b&&f?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.C||R(!0,p);n=!0;b&&b.disableMdxCast&&(n=!1);this.Ig=p&&n&&"1"===this.controlsType&&!this.u&&(yD(this)||g.CD(this)||g.ED(this))&&!g.FD(this)&&!GD(this);this.yv=EB()||FB();p=b?!!b.supportsAutoplayOverride:
R(!1,a.autoplayoverride);this.Ul=!this.u&&!Pq("nintendo wiiu")&&!Pq("nintendo 3ds")||p;p=b?!!b.enableMutedAutoplay:R(!1,a.mutedautoplay);n=this.aa("embeds_enable_muted_autoplay")&&g.wD(this);this.Vl=p&&n&&this.X&&!BD(this);p=(yD(this)||xD(this))&&"blazer"===this.playerStyle;this.Jg=b?!!b.disableFullscreen:!R(!0,a.fs);this.na=!this.Jg&&(p||wt());this.vn=this.aa("uniplayer_block_pip")&&(Qq()&&Kn(58)&&!cr()||$q);p=g.wD(this)&&!this.yn;var r;b?void 0!==b.disableRelatedVideos&&(r=!b.disableRelatedVideos):
r=a.rel;this.vb=p||R(!this.J,r);this.Bn=R(!1,b&&f?b.enableContentOwnerRelatedVideos:a.co_rel);this.F=cr()&&0<AD&&4.4>=AD?"_top":"_blank";this.Qf=g.ED(this);this.Sl=R("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":r="bl";break;case "gmail":r="gm";break;case "books":r="gb";break;case "docs":r="gd";break;case "duo":r="gu";break;case "google-live":r="gl";break;case "google-one":r="go";break;case "play":r="gp";break;case "chat":r="hc";break;case "hangouts-meet":r=
"hm";break;case "photos-edu":case "picasaweb":r="pw";break;default:r="yt"}this.Y=r;this.lf=oD("",b&&f?b.authorizedUserIndex:a.authuser);var t;b?void 0!==b.disableWatchLater&&(t=!b.disableWatchLater):t=a.showwatchlater;this.Nl=(this.B&&!this.la||!!this.lf)&&R(!this.K,this.C?t:void 0);this.Hg=b?!!b.disableKeyboardControls:R(!1,a.disablekb);this.loop=R(!1,a.loop);this.pageId=oD("",a.pageid);this.wu=R(!0,a.canplaylive);this.Yi=R(!1,a.livemonitor);this.disableSharing=R(this.J,b?b.disableSharing:a.ss);
(t=a.video_container_override)?(r=t.split("x"),2!==r.length?t=null:(t=Number(r[0]),r=Number(r[1]),t=isNaN(t)||isNaN(r)||0>=t*r?null:new g.fe(t,r))):t=null;this.Fn=t;this.mute=b?!!b.startMuted:R(!1,a.mute);this.Tl=!this.mute&&R("0"!==this.controlsType,a.store_user_volume);t=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:mD(void 0,t,HD);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":oD("",a.cc_lang_pref);t=mD(2,b&&f?b.captionsLanguageLoadPolicy:
a.cc_load_policy,HD);"3"===this.controlsType&&2===t&&(t=3);this.zj=t;this.Lg=b?b.hl||"en_US":oD("en_US",a.hl);this.region=b?b.contentRegion||"US":oD("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":oD("en",a.host_language);this.Ms=!this.la&&Math.random()<g.P(this.experiments,"web_player_api_logging_fraction");this.ga=!this.la;this.enabledEngageTypes=new Set;this.deviceHasDisplay=b?!b.deviceIsAudioOnly:R(!0,a.deviceHasDisplay);this.Tj=nD(this.Tj,a.ismb);t=a;g.yB(this.experiments,"html5_qoe_intercept")?
t=g.yB(this.experiments,"html5_qoe_intercept"):this.Ts?(t=t.vss_host||"s.youtube.com",this.aa("www_for_videostats")&&"s.youtube.com"===t&&(t=ID(this.S)||"www.youtube.com")):t="video.google.com";this.Gp=t;this.sh(a,!0);this.P=new fD;g.C(this,this.P);t=b?b.innertubeApiKey:oD("",a.innertube_api_key);r=b?b.innertubeApiVersion:oD("",a.innertube_api_version);p=b?b.innertubeContextClientVersion:oD("",a.innertube_context_client_version);this.ra={innertubeApiKey:uo("INNERTUBE_API_KEY")||t,innertubeApiVersion:uo("INNERTUBE_API_VERSION")||
r,TD:g.L("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),ou:this.deviceParams.c,innertubeContextClientVersion:uo("INNERTUBE_CONTEXT_CLIENT_VERSION")||p,Oy:this.hostLanguage,Ny:this.region,VD:uo("INNERTUBE_HOST_OVERRIDE")||"",XD:!!g.L("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),WD:!!g.L("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.An=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.D=new NC(this.experiments,this.aa("html5_force_hfr_support")?!0:JD(this)||Uq()||Vq()||KD(this),g.DB&&g.Yd(56)||
g.KC&&g.Yd(54)||KD(this));t=this.Tj;r=this.experiments;p=new qha;g.LD(this)&&(p.B=!0,p.D=.1);g.Q(r,"html5_ewma_bandwidth_estimator")&&(p.B=!0);g.Q(r,"html5_pctile_bandwidth_estimator")&&(p.B=!1);t&&(p.C=t/8);p.u=g.P(r,"html5_bandwidth_window_size")||p.u;this.schedule=new vga(p);this.enableSafetyMode=null!==(d=null===b||void 0===b?void 0:b.initialEnableSafetyMode)&&void 0!==d?d:R(!1,a.enable_safety_mode);t=this.da?!1:yD(this)&&"blazer"!==this.playerStyle;var w;b&&f?null!=b.disableAutonav&&(w=!b.disableAutonav):
w=a.allow_autonav;this.lc=R(t,w);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:R(!1,a.send_visitor_id_header);this.Ta=(0,g.N)();var x;"docs"===this.playerStyle&&(b&&f?x=b.disableNativeContextMenu:x=a.disable_native_context_menu);this.disableNativeContextMenu=R(!1,x);this.Ps=JD(this)&&this.aa("enable_skip_intro_button");this.embedConfig=oD("",b&&f?b.serializedEmbedConfig:a.embed_config);this.pg=R(!1,a.full_window);this.qb=!g.MD(this)&&!ND(this)&&!g.FD(this)&&!GD(this)&&!0;this.livingRoomAppMode=
mD("LIVING_ROOM_APP_MODE_UNSPECIFIED",b?null===(e=b.device)||void 0===e?void 0:e.livingRoomAppMode:a.living_room_app_mode,OD);this.transparentBackground=b?!!b.transparentBackground:R(!1,a.transparent_background);this.useFastSizingOnWatchDefault=R(!0,b?b.useFastSizingOnWatchDefault:a.use_fast_sizing_on_watch_default);this.showMiniplayerButton=b?!!b.showMiniplayerButton:R(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:R(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=
b?!!b.showMiniplayerUiWhenMinimized:R(!1,a.use_miniplayer_ui);this.showBackButton=R(!1,a.showbackbutton);this.xt=1E-4>Math.random();this.Ai=a.onesie_hot_config?new pha(a.onesie_hot_config):void 0;this.isTectonic=b&&!this.aa("fill_is_tectonic_from_wpcc_killswitch")?!!b.isTectonic:!!a.isTectonic;this.nu=c;this.Ge=new iD;g.C(this,this.Ge);a=this.datasyncId=null===b||void 0===b?void 0:b.datasyncId;qs=null!==a&&void 0!==a?a:"LOGGED_OUT"};
QD=function(a,b){return!a.J&&Qq()&&Kn(55)&&"3"===a.controlsType&&!b};
g.RD=function(a){a=ID(a.S);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.SD=function(a){return g.FD(a)?"music.youtube.com":g.RD(a)};
TD=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
UD=function(a){return yD(a)&&!g.MD(a)};
BD=function(a){return DD&&!a.zn||Pq("nintendo wiiu")||Pq("nintendo 3ds")?!0:!1};
GD=function(a){return"area120-boutique"===a.playerStyle};
g.FD=function(a){return"music-embed"===a.playerStyle};
g.LD=function(a){return/^TVHTML5/.test(a.deviceParams.c)?!0:"TV"===a.deviceParams.cplatform};
rD=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===a.deviceParams.c};
KD=function(a){return"CHROMECAST ULTRA/STEAK"===a.deviceParams.cmodel||"CHROMECAST/STEAK"===a.deviceParams.cmodel};
g.VD=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
JD=function(a){return"web"===a.deviceParams.c.toLowerCase().substr(0,3)};
g.WD=function(a){return"WEB"===a.deviceParams.c.toUpperCase()};
ND=function(a){return"WEB_KIDS"===a.deviceParams.c};
g.MD=function(a){return"WEB_UNPLUGGED"===a.deviceParams.c};
XD=function(a){return"TVHTML5_UNPLUGGED"===a.deviceParams.c};
g.YD=function(a){return g.MD(a)||"TV_UNPLUGGED_CAST"===a.deviceParams.c||XD(a)};
ZD=function(a){return"WEB_REMIX"===a.deviceParams.c};
g.$D=function(a){return"WEB_EMBEDDED_PLAYER"===a.deviceParams.c};
aE=function(a){return"WEB_MUSIC_EMBEDDED_PLAYER"===a.deviceParams.c};
g.bE=function(a){return g.WD(a)&&a.aa("web_player_i_see_captions")};
g.dE=function(a){return(a.deviceHasDisplay&&g.DB&&!$q&&"3"!==a.controlsType?g.br?a.B&&g.Yd(51):!0:!1)||(a.deviceHasDisplay&&g.KC&&!$q&&"3"!==a.controlsType?g.br?a.B&&g.Yd(48):g.Yd(38):!1)||(a.deviceHasDisplay&&g.rg&&!$q&&"3"!==a.controlsType?g.br?a.B&&g.Yd(37):g.Yd(27):!1)||a.deviceHasDisplay&&g.cE&&!Zq()&&g.Yd(11)||a.deviceHasDisplay&&g.Zr&&g.Yd("604.4")};
eE=function(a){if(g.CD(a)&&zD)return!1;if(g.KC){if(!g.Yd(47)||!g.Yd(52)&&g.Yd(51))return!1}else if(g.Zr)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
yD=function(a){return"detailpage"===a.fa};
g.CD=function(a){return"embedded"===a.fa};
fE=function(a){return"leanback"===a.fa};
xD=function(a){return"adunit"===a.fa||"gvn"===a.playerStyle};
g.ED=function(a){return"profilepage"===a.fa};
g.wD=function(a){return a.B&&g.CD(a)&&!xD(a)&&!a.J};
gE=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.gr(new g.nr("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.hE=function(a){var b=g.SD(a);!a.aa("yt_embeds_disable_new_error_lozenge_url")&&yha.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
ID=function(a){var b=g.vd(a);return(a=Number(g.ud(4,a))||null)?b+":"+a:b};
zha=function(a,b,c,d){this.ra=a;this.u=b;this.K=c;this.P=d;this.F=iE;this.B=this.X=null;this.da=-1;this.D=this.J=null;this.C=[];this.la={};this.S=0;this.Lb=this.fa=this.Y=!1;this.ga=0;this.Ba=new Set;this.Xb=!1;this.na=null};
Cha=function(a,b,c){jE(a,b);Aha(a,c);a.X=a.J;Bha(a);a.B=a.D;return kE(a)};
Dha=function(a,b){if(TC(a.F,b))return null;if("m"==b.reason&&b.isLocked())return jE(a,b),a.S=a.C.length-1,lE(a),mE(a),a.fa=a.fa||a.B!=a.D,a.B=a.D,new eD(a.J,a.B,b.reason);"r"==b.reason&&(a.da=-1);jE(a,b);mE(a);if("r"==b.reason&&a.D==a.B)return new eD(a.J,a.D,b.reason);if(a.B&&a.D&&nE(a,a.B.info)<nE(a,a.D.info)){var c=a.F.reason;a.Y=a.Y||"r"==c||"u"==c||"v"==c}return null};
Eha=function(a,b){if(b.info.video){if(a.B!=b)return a.B=b,kE(a)}else a.Lb=a.X!=b,a.X=b;return null};
oE=function(a,b){b.X=(0,g.N)();a.da=-1;jE(a,a.F);a.Y=a.u.JD};
pE=function(a){for(var b=(0,g.N)()-6E4,c=g.q(a.P.videoInfos),d=c.next();!d.done;d=c.next())if(a.K.u[d.value.id].X>b)return!0;return!1};
qE=function(a,b){return new eD(a.X,a.B,b||a.F.reason)};
rE=function(a){return a.F.isLocked()};
Fha=function(a){return 0<a.C.length&&0==a.S};
kE=function(a){a.da=(0,g.N)();a.Y=!1;return new eD(a.X,a.B,a.F.reason)};
sE=function(a){var b=!rE(a)&&-1<a.da&&8E3>(0,g.N)()-a.da,c=a.D&&3*nE(a,a.D.info)<kB(a.ra);if(!b||c)lE(a),mE(a),a.fa=a.fa||a.D!=a.B};
tE=function(a,b){for(var c={},d=g.q(b),e=d.next();!e.done;e=d.next())if((e=e.value)&&e.video){var f=e.video.Cc,h=c[f],l=h&&Sx(h)&&h.video.Cc>a.u.Ha,m=f<=a.u.Ha?Sx(e):Qx(e);if(!h||l||m)c[f]=e}return c};
jE=function(a,b){a.F=b;var c=a.P.videoInfos;if(!rE(a)){var d=(0,g.N)()-6E4;c=g.He(c,function(p){if(p.yb>this.u.yb)return!1;p=this.K.u[p.id];var r=p.info.Bb;return this.u.Ys&&this.Ba.has(r)||p.X>d?!1:4<p.B.B||4<p.S||p.F?!1:!0},a);
if(pE(a)){var e=g.He(c,function(p){p=p.dc();return"140"===p||"134"===p||"243"===p});
e.length&&(c=e)}}c.length||(c=a.P.videoInfos);e=g.He(c,b.D,b);if(a.u.Et||a.u.oB){var f="m"===b.reason||"s"===b.reason;a.u.yv&&uE&&g.Zr&&(!f||1080>b.u)&&(e=e.filter(function(p){return!!p&&!!p.video&&!!p.B}));
if(!MB()&&0<e.length){var h=(f=e[0])&&f.video&&f.video.Cc;if(h){f=e.filter(function(p){return!!p&&!!p.video&&p.video.Cc==h});
var l=tE(a,f)[h].Bb;e=e.filter(function(p){return!!p&&!!p.video&&p.Bb==l})}}var m=tE(a,e);
e=e.filter(function(p){return!!p&&!!p.video&&p.Bb==m[p.video.Cc].Bb})}e.length||(e=[c[0]]);
e.sort((0,g.z)(function(p,r){return nE(this,p)-nE(this,r)},a));
for(c=1;c<e.length;c++){f=e[c-1];var n=e[c];f.video.width>n.video.width?(g.nb(e,c),c--):nE(a,f)*a.u.u>nE(a,n)&&(g.nb(e,c-1),c--)}c=e[e.length-1];a.Xb=!!a.B&&!!a.B.info&&a.B.info.Bb!=c.Bb;a.C=e;Bfa(a.u,c)};
Aha=function(a,b){if(b)a.J=a.K.u[b];else{var c=g.fb(a.P.u,function(d){return!!d.u&&d.u.isDefault});
c=c||a.P.u[0];a.J=a.K.u[c.id]}lE(a)};
vE=function(a,b){for(var c=0;c+1<a.C.length&&"tiny"==a.C[c].Na().quality;)c++;var d=kB(a.ra)/a.u.u;return nE(a,b.info)+nE(a,a.C[c])>d};
lE=function(a){if(!a.J||!a.u.C&&!a.u.Bn)if(!a.J||!a.J.info.u)if(a.J=a.K.u[a.P.u[0].id],1<a.P.u.length){var b=!1;if(a.u.Bl){if(b=!0,a.u.wB){var c=eb(a.P.u,function(d){return"250"===d.dc()});
0<=c&&(a.J=a.K.u[a.P.u[c].id],b=vE(a,a.J))}}else b=a.F.isLocked()?240>a.F.u:vE(a,a.J);b&&(a.J=a.K.u[g.db(a.P.u).id])}};
mE=function(a){a.u.Vl&&(a.na=a.na||new g.F(function(){a.u.Vl&&a.B&&!pE(a)&&1===Math.floor(10*Math.random())?oE(a,a.B):a.na.start()},6E4),g.kn(a.na));
if(!a.D||!a.u.C&&!a.u.Bn)if(rE(a))a.D=360>=a.F.u?a.K.u[a.C[0].id]:a.K.u[g.db(a.C).id];else{for(var b=Math.min(a.S,a.C.length-1),c=kB(a.ra),d=nE(a,a.J.info),e=c/a.u.B-d;0<b&&!(nE(a,a.C[b])<=e);b--);for(c=c/a.u.u-d;b<a.C.length-1&&!(nE(a,a.C[b+1])>=c);b++);a.D=a.K.u[a.C[b].id];a.S=b}};
Bha=function(a){var b=a.u.B,c=kB(a.ra)/b-nE(a,a.J.info);b=g.gb(a.C,function(d){return nE(this,d)<c},a);
0>b&&(b=0);a.S=b;a.D=a.K.u[a.C[b].id]};
wE=function(a,b){a.u.Ha=BC(b,{},a.P);jE(a,a.F);sE(a);a.Y=a.D!=a.B};
nE=function(a,b){if(!a.la[b.id]){var c=a.K.u[b.id].index.pD(a.ga,15);c=b.C&&a.B&&a.B.index.Qc()?c||b.C:c||b.yb;a.la[b.id]=c}c=a.la[b.id];a.u.Ub&&b.video&&b.video.Cc>a.u.Ub&&(c*=1.5);return c};
Gha=function(a,b){var c=Qb(a.K.u,function(d){return d.info.dc()==b});
if(!c)throw Error("Itag "+b+" from server not known.");return c};
Hha=function(a){var b=[];if("m"==a.F.reason||"s"==a.F.reason)return b;var c=!1;if(Pga(a.K)){for(var d=Math.max(0,a.S-2);d<a.S&&d<a.C.length;d++){var e=a.C[d].dc();Lx(a.C[d].Na())||(c=!0);b.push(e)}b.reverse();if(!c&&a.u.rB)for(d=Math.max(0,a.S-3);0<=d&&!c;d--)Lx(a.C[d].Na())||(c=!0,b.push(a.C[d].dc()))}return b};
BE=function(a,b,c,d){g.O.call(this);this.u=a;this.ga=b;this.fa=c;this.Y=d;this.da=NaN;this.C=this.S=this.F=null;this.B=this.K=this.P=this.J=NaN;this.D=!1;this.X=NaN};
Iha=function(a,b,c,d){return a.na&&a.ga&&3===mB(a)?new BE(a,b,c,d):null};
CE=function(a,b){if(a.u.MB){var c=b.info.yb;if(0>=c)a.X=NaN;else{var d=eB(a.ga),e=b.index.Nf;c=Math.max(1,d/c);a.X=Math.round(1E3*Math.max(((c-1)*e+a.u.P)/c,e-a.u.gd))}}};
Jha=function(a,b){var c=g.A()/1E3,d=c-a.J,e=c-a.P,f=e>=a.u.Cn,h=!1;if(f){var l=0;!isNaN(b)&&b>a.K&&(l=b-a.K,a.K=b);l/e<a.u.OB&&(h=!0);a.P=c}c=d>=a.u.gd&&!a.D;if(!f&&!c&&DE(a,b))return NaN;c&&(a.D=!0);a:{d=h;c=g.A()/1E3-(a.fa.u()||0)-a.S.B-a.u.P;f=a.C.startTime;c=f+c;if(d){if(isNaN(b)){EE(a,NaN,"n",b);f=NaN;break a}d=b-a.u.Ac;d<c&&(c=d)}else a.D&&(d=c+a.u.P-a.da+a.u.PB,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.u.Ac))),c=d);f=c=Math.max(c,f)}a.B=f;if(isNaN(a.B))return FE(a),NaN;if(!h&&DE(a,b))return GE(a,
b),NaN;if(a.B<=a.C.startTime)return EE(a,NaN,"y",b),FE(a),NaN;if(!a.Y(a.B,!1))return!GE(a,b)&&h&&(EE(a,NaN,"t",b),FE(a)),NaN;h=a.B;EE(a,h,"s",b);FE(a);return h};
GE=function(a,b){return a.Y(a.B,!0)?!1:(EE(a,NaN,"ns",b),FE(a),!0)};
DE=function(a,b){return isNaN(b)?!0:isNaN(a.B)?!1:b<a.B+(a.D?a.u.Ac:a.u.NB)};
FE=function(a){a.F=null;a.S=null;a.C=null;a.J=NaN;a.P=NaN;a.K=NaN;a.B=NaN;a.D=!1};
EE=function(a,b,c,d){var e=a.F.lv();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.B).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.J).toFixed(0);e.ssr_n=g.A().toFixed(0);e.ssr_f=(1E3*a.S.B).toFixed(0);e.ssr_fa=a.D?"1":"0";e.ssr_o=(1E3*a.fa.u()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.C.u.index;pB(b,a.C.B,!0)&&(e.ssr_ist=(1E3*b.Re(a.C.B)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.C.B)).toFixed(0));e=g.JB(e);a.V("ctmp","ssr",e,!1)};
Kha=function(a,b){Bo(a,"version",b)};
HE=function(a,b,c,d,e,f){g.B.call(this);this.sb=a;this.fb=b;this.qc=c;this.Da=d;this.B=e;this.u=f};
Mha=function(a,b,c){c.kn?(IE(a.sb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),Lha(a.B,b)):JE(a.u,c.wh,b.slotId)};
Nha=function(a,b,c,d){var e=KE(a.Da.get(),1);IE(a.sb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return LE(a.qc.get(),c,d,e.clientPlaybackNonce,e.xC,e.daiEnabled,e)},b)};
ME=function(a){this.value=a};
NE=function(a){this.value=a};
OE=function(a){this.value=a};
PE=function(a){this.value=a};
QE=function(){ME.apply(this,arguments)};
RE=function(a){this.value=a};
SE=function(a){this.value=a};
TE=function(a){this.value=a};
UE=function(a){this.value=a};
VE=function(a){this.value=a};
WE=function(a){this.value=a};
XE=function(){ME.apply(this,arguments)};
YE=function(a){this.value=a};
ZE=function(a){this.value=a};
$E=function(a){this.value=a};
aF=function(a){this.value=a};
bF=function(a){this.value=a};
cF=function(a){this.value=a};
dF=function(a){this.value=a};
eF=function(a){this.value=a};
fF=function(a){this.value=a};
gF=function(a){this.value=a};
hF=function(a){this.value=a};
iF=function(a){this.value=a};
jF=function(a){this.value=a};
kF=function(a){this.value=a};
lF=function(a){this.value=a};
mF=function(a){this.value=a};
nF=function(a){this.value=a};
oF=function(a){this.value=a};
pF=function(a){this.value=a};
qF=function(a){this.value=a};
rF=function(a){this.value=a};
sF=function(a){this.value=a};
tF=function(a){this.value=a};
uF=function(a){this.value=a};
vF=function(a){this.value=a};
wF=function(a){this.value=a};
xF=function(a){this.value=a};
yF=function(){ME.apply(this,arguments)};
zF=function(){ME.apply(this,arguments)};
AF=function(a,b,c){if(c&&c!==a.Ya)return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.wa.u.has(c.value))return!1;return!0};
BF=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)};
CF=function(a,b,c){c=void 0===c?!1:c;Xa.call(this,a);this.Wl=c;this.args=[];b&&this.args.push(b)};
Oha=function(a,b,c,d,e,f,h){b=DF(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof CF?b:EF(a,d,e,b,c);return a instanceof CF?a:[a]};
FF=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)};
GF=function(a,b){this.C=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=a(this.triggerType)};
HF=function(a){return"SLOT_TYPE_PLAYER_BYTES"===a.Ya&&a.Wb instanceof GF};
IF=function(a,b){this.u=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
JF=function(a,b,c,d,e,f){this.C=b;this.D=c;this.visible=d;this.F=void 0===e?!1:e;this.J=void 0===f?!1:f;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
KF=function(a){return a?"layout:  "+a.layoutType:""};
LF=function(a,b){var c=a?"trigger type: "+a.triggerType:"empty";if(b){var d=String(b.end);if(a instanceof JF&&a.F||a instanceof IF&&0x7ffffffffffff===b.end)d="MediaEnd";c+=" |start: "+b.start+(" |end: "+d)}return c};
MF=function(a,b,c,d,e){d=void 0===d?{}:d;if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.nr(a);if(a.args)for(var f=g.q(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign(Object.assign({},h),d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.Ya:"");c&&(d.layout=KF(c));e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.gr(a)}};
DF=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={kh:new In(-0x8000000000000,-0x8000000000000),Rv:d},null!=c&&(d.Sn=new In(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={kh:new In(0x7ffffffffffff,0x8000000000000),Rv:d},null!=c&&(d.Sn=new In(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||MF("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||MF("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 CF("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},e===b&&a-500<=e);d={kh:new In(a,e),Rv:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Sn=new In(a,e)}return d;default:return new CF("AdPlacementKind not supported in convertToRange.",
{kind:e,adPlacementConfig:a})}};
NF=function(a,b,c,d,e,f){g.B.call(this);this.sb=a;this.qc=b;this.Yw=c;this.Ca=d;this.u=e;this.Da=f};
Pha=function(a,b,c){var d=[];a=g.q(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.renderer.invideoOverlayAdRenderer||e.renderer.adBreakServiceRenderer&&FF(e);"AD_PLACEMENT_KIND_MILLISECONDS"===e.config.adPlacementConfig.kind&&f&&(f=DF(e.config.adPlacementConfig,0x7ffffffffffff),f instanceof CF||d.push({range:f.kh,renderer:e.renderer.invideoOverlayAdRenderer?"overlay":"ABSR"}))}d.sort(function(h,l){return h.range.start-l.range.start});
a=!1;for(e=0;e<d.length-1;e++)if(d[e].range.end>d[e+1].range.start){a=!0;break}a&&(d=d.map(function(h){return h.renderer+"|s:"+h.range.start+("|e:"+h.range.end)}).join(","),MF("Conflicting renderers.",void 0,void 0,{detail:d,
cpn:b,videoId:c}))};
OF=function(a,b,c,d){this.C=a;this.ue=null;this.B=b;this.u=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.D=void 0===d?!1:d};
g.QF=function(a,b,c){this.start=a;this.end=b;this.active=!0;this.color="";this.D=Qha++;a=c||{};this.id=a.id||"";this.priority=a.priority||7;this.visible=a.visible||!1;this.style=a.style||PF.AD_MARKER;this.namespace=a.namespace||"";if(b=a.color)b=b.toString(16),this.color="#"+Array(7-b.length).join("0")+b;this.tooltip=a.tooltip;this.icons=a.icons?a.icons.filter(function(d){return g.ph(d.thumbnails,function(e){return g.zw(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
RF=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Rha=function(a,b){switch(a.style){case PF.CHAPTER_MARKER:return b?8:5;case PF.AD_MARKER:return 6;case PF.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.SF=function(a,b){return a.start-b.start||a.priority-b.priority||a.D-b.D};
g.TF=function(a){return"crn_"+a};
g.UF=function(a){return"crx_"+a};
VF=function(a,b,c,d,e){g.QF.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.u=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.B=!1;this.C=null};
WF=function(a){return"AD_PLACEMENT_KIND_START"==a.u};
XF=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.u};
Sha=function(a){return a.end-a.start};
YF=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new In(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new In(Math.max(0,b.C-b.u),0x7ffffffffffff):new In(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.C);if(c&&(d=a,a=Math.max(0,a-b.u),a==d))break;return new In(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.ue;a=1E3*d.startSecs;if(c){if(a<b.B)return new In(a-4E3,a);c=Math.max(0,a-b.B-1E4);return new In(b.D?b.B:Math.floor(b.B+Math.random()*c),a)}return new In(a,a+(0<d.durationSecs?1E3*d.durationSecs:5E3))}return null};
ZF=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.S=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.q(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
g.$F=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=Be("B",null,h||l));d.italics&&(h=Be("I",null,h||l));d.strikethrough&&(h=Be("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=Be("A",null,h||l),g.gd(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||Be("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:Be("SPAN",null,b)};
aG=function(a,b){Cq.call(this,1,arguments)};
bG=function(a,b){Cq.call(this,1,arguments);this.u=a};
Tha=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
dG=function(a){var b=cG(a);if(b.aft)return b.aft;a=g.L((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};
eG=function(a){return!!g.Ja("yt.timing."+(a||"")+"pingSent_")};
fG=function(a,b){g.Fa("yt.timing."+(b||"")+"pingSent_",a,void 0)};
hG=function(a){return g.Ja("ytcsi."+(a||"")+"data_")||gG(a)};
iG=function(a){a=hG(a);a.info||(a.info={});return a.info};
cG=function(a){a=hG(a);a.tick||(a.tick={});return a.tick};
jG=function(a){var b=hG(a).nonce;b||(b=Qt(),hG(a).nonce=b);return b};
gG=function(a){var b={tick:{},info:{}};g.Fa("ytcsi."+(a||"")+"data_",b,void 0);return b};
lG=function(a){var b=cG(a||""),c=dG(a);c&&!kG&&(Fq(Uha,new aG(Math.round(c-b._start),a)),kG=!0)};
mG=function(){var a=g.Ja("ytcsi.debug");a||(a=[],g.Fa("ytcsi.debug",a,void 0),g.Fa("ytcsi.reference",{},void 0));return a};
oG=function(a){a=a||"";var b=nG();if(b[a])return b[a];var c=mG(),d={timerName:a,info:{},tick:{},span:{}};c.push(d);return b[a]=d};
nG=function(){var a=g.Ja("ytcsi.reference");if(a)return a;mG();return g.Ja("ytcsi.reference")};
pG=function(){this.u=0};
qG=function(){pG.u||(pG.u=new pG);return pG.u};
sG=function(a,b){rG[b]=rG[b]||{count:0};var c=rG[b];c.count++;c.time=(0,g.N)();a.u||(a.u=sp(function(){var d=(0,g.N)(),e;for(e in rG)rG[e]&&6E4<d-rG[e].time&&delete rG[e];a&&(a.u=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.nr("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.gr(c)),!0):!1};
tG=function(a){return!!g.L("FORCE_CSI_ON_GEL",!1)||g.wo("csi_on_gel")||!!hG(a).useGel};
uG=function(a){a=hG(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
vG=function(a){gG(a);Vha();fG(!1,a);a||(g.L("TIMING_ACTION")&&to("PREVIOUS_ACTION",g.L("TIMING_ACTION")),to("TIMING_ACTION",""))};
BG=function(a,b,c,d){d=d?d:a;wG(d);var e=d||"",f=nG();f[e]&&delete f[e];var h=mG(),l={timerName:e,info:{},tick:{},span:{}};h.push(l);f[e]=l;oG(d||"").info.actionType=a;vG(d);hG(d).useGel=!0;to(d+"TIMING_AFT_KEYS",b);to(d+"TIMING_ACTION",a);xG("yt_sts","c",d);yG("_start",c,d);if(tG(d)){a={actionType:zG[uo((d||"")+"TIMING_ACTION")]||"LATENCY_ACTION_UNKNOWN",previousAction:zG[uo("PREVIOUS_ACTION")]||"LATENCY_ACTION_UNKNOWN"};if(b=g.Zt())a.clientScreenNonce=b;b=jG(d);qG().info(a,b)}g.Fa("ytglobal.timing"+
(d||"")+"ready_",!0,void 0);AG(d)};
xG=function(a,b,c){if(null!==b)if(iG(c)[a]=b,tG(c)){var d=b;b=uG(c);if(b.gelInfos)b.gelInfos["info_"+a]=!0;else{var e={};b.gelInfos=(e["info_"+a]=!0,e)}if(a.match("_rid")){var f=a.split("_rid")[0];a="REQUEST_ID"}if(a in CG){b=CG[a];g.jb(Wha,b)&&(d=!!d);a in DG&&"string"===typeof d&&(d=DG[a]+d.toUpperCase());a=d;d=b.split(".");for(var h=e={},l=0;l<d.length-1;l++){var m=d[l];h[m]={};h=h[m]}h[d[d.length-1]]="requestIds"===b?[{id:a,endpoint:f}]:a;b=Du({},e)}else g.jb(Xha,a)||g.gr(new g.nr("Unknown label logged with GEL CSI",
a)),b=void 0;b&&EG(b,c)}else oG(c||"").info[a]=b};
EG=function(a,b){if(tG(b)){var c=oG(b||"");Du(c.info,a);c=uG(b);c.gelInfos||(c.gelInfos={});Du(c.gelInfos,a);c=jG(b);qG().info(a,c)}};
yG=function(a,b,c){var d=cG(c);if(g.wo("use_first_tick")&&FG(a,c))return d[a];if(!b&&"_"!==a[0]){var e=a;GG.mark&&(kc(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),GG.mark(e))}e=b||(0,g.N)();d[a]=e;e=uG(c);e.gelTicks&&(e.gelTicks["tick_"+a]=!0);c||b||(0,g.N)();if(tG(c)){oG(c||"").tick[a]=b||(0,g.N)();e=jG(c);if("_start"===a){var f=qG();sG(f,"baseline_"+e)||g.ir("latencyActionBaselined",{clientActionNonce:e},{timestamp:b})}else qG().tick(a,e,b);lG(c);e=!0}else e=!1;e||(AG(c),oG(c||"").tick[a]=b||(0,g.N)());
return d[a]};
HG=function(a){var b="above_the_fold";GG&&GG.measure&&(kc(b,"measure_")||(b="measure_"+b),a?GG.measure(b,a):GG.measure(b))};
FG=function(a,b){var c=cG(b);return a in c};
IG=function(a,b){FG("_start",b)&&!FG(a,b)&&yG(a,void 0,b)};
AG=function(a){if(!eG(a)){var b=g.L((a||"")+"TIMING_ACTION",void 0),c=cG(a);if(g.Ja("ytglobal.timing"+(a||"")+"ready_")&&b&&FG("_start")&&dG(a))if(lG(a),a)JG(a);else{b=!0;var d=g.L("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&JG(a)}}};
Yha=function(){switch(Xo()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
JG=function(a){if(!tG(a)){var b=cG(a),c=iG(a),d=b._start,e=g.L("CSI_SERVICE_NAME","youtube"),f={v:2,s:e,action:g.L((a||"")+"TIMING_ACTION",void 0)},h=c.srt;void 0!==b.srt&&delete c.srt;b.aft=dG(a);var l=cG(a),m=l.pbr,n=l.vc;l=l.pbs;m&&n&&l&&m<n&&n<l&&iG(a).yt_pvis&&"youtube"===e&&(xG("yt_lt","hot_bg",a),e=b.vc,m=b.pbs,delete b.aft,c.aft=Math.round(m-e));for(var p in c)"_"!==p.charAt(0)&&(f[p]=c[p]);b.ps=(0,g.N)();p={};e=[];for(var r in b)"_"!==r.charAt(0)&&(m=Math.round(b[r]-d),p[r]=m,e.push(r+"."+
m));f.rt=e.join(",");b=!!c.ap;g.wo("debug_csi_data")&&(c=g.Ja("yt.timing.csiData"),c||(c=[],g.Fa("yt.timing.csiData",c,void 0)),c.push({page:location.href,time:new Date,args:f}));c="";for(var t in f)f.hasOwnProperty(t)&&(c+="&"+t+"="+f[t]);f="/csi_204?"+c.substring(1);window.navigator&&window.navigator.sendBeacon&&(b||g.wo("always_send_csi_204_with_beacon"))?zu(f):g.yu(f);fG(!0,a);Fq(KG,new bG(p.aft+(Number(h)||0),a))}};
wG=function(a){if(tG(a))FG("_start",a)&&yG("aa",void 0,a);else if(!eG(a)){var b=g.L("CSI_SERVICE_NAME","youtube");g.L((a||"")+"TIMING_ACTION",void 0)&&b&&(yG("aa",void 0,a),xG("ap",1,a),xG("yt_fss","c",a),JG(a))}};
LG=function(a,b,c,d){d=void 0===d?!1:d;g.B.call(this);this.experiments=b;this.useCobaltWidevine=d;this.u=[];this.B={};this.D={};this.callback=null;this.F=!1;this.C=[];this.initialize(a,!c);this.ba()};
$ha=function(a,b){a.callback=b;a.C=[];LC(a.experiments)?MG(a):Zha(a)};
MG=function(a){if(!a.ma())if(0===a.u.length)a.callback(a.C);else{var b=a.u[0],c=a.B[b],d=aia(a,c);a.ba();navigator.requestMediaKeySystemAccess(b,d).then(Fo(function(e){if(!a.ma()){a.ba();c.keySystemAccess=e;if(FC(c)){e=AB();for(var f=g.q(Object.keys(a.D[c.flavor])),h=f.next();!h.done;h=f.next())h=h.value,c.B[h]=!!e.canPlayType(h)}else{e=c.keySystemAccess.getConfiguration();if(e.audioCapabilities)for(f=g.q(e.audioCapabilities),h=f.next();!h.done;h=f.next())NG(a,c,h.value);if(e.videoCapabilities)for(e=
g.q(e.videoCapabilities),f=e.next();!f.done;f=e.next())NG(a,c,f.value)}a.C.push(c);a.aa("html5_drm_fallback_to_playready_on_retry")||a.useCobaltWidevine?(a.u.shift(),MG(a)):a.callback(a.C)}}),Fo(function(){a.ba();
a.F=!a.F&&"widevine"===a.B[a.u[0]].flavor;a.F||a.u.shift();MG(a)}))}};
NG=function(a,b,c){a.aa("log_robustness_for_drm")?b.B[c.contentType]=c.robustness||!0:b.B[c.contentType]=!0};
aia=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};FC(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.q(Object.keys(a.D[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.F?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(h.push({contentType:e,robustness:"HW_SECURE_ALL"}),h.push({contentType:e,robustness:"SW_SECURE_DECODE"}),
a.aa("html5_query_sw_secure_crypto_for_android")&&(cr()||Qq())&&h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}))}return[c]};
Zha=function(a){if(DC()&&g.Zr)a.ba(),a.C.push(new CC("fairplay","com.apple.fps.1_0","",a.experiments));else{var b=bia(),c=g.fb(a.u,function(d){var e=a.B[d],f=!1,h=!1,l;for(l in a.D[e.flavor])b(l,d)&&(e.B[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c?(a.ba(),a.C.push(a.B[c])):a.ba();a.u=[]}a.callback(a.C)};
bia=function(){var a=DC();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=AB();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
OG=function(a){this.Oa=a};
PG=function(a,b,c){if(c)return et();var d={};c=AB();b=g.q(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(c,e.Oe().mimeType)){var f=e.Oa.Na().quality;if(!d[f]||d[f].Oe().Wd())d[f]=e}var h=[];d.auto&&h.push(d.auto);g.Cb(Mx,function(l){(l=d[l])&&h.push(l)});
return h.length?ft(h):et()};
cia=function(a,b,c){this.C=a;this.B=b;this.cpn=c;this.D=0;this.u=""};
QG=function(a,b,c){a.cpn&&(b=g.Id(b,{cpn:a.cpn}));c&&(b=g.Id(b,{m5:c}));return b};
RG=function(a,b){var c=a.itag.toString();null!==b&&(c+=b.itag.toString());return c};
dia=function(a){for(var b=[],c=[],d=g.q(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.D?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.B=b.concat(c)};
eia=function(a,b,c,d,e,f,h,l,m,n,p,r){this.itag=a;this.url=b;this.codecs=c;this.width=d;this.height=e;this.fps=f;this.bitrate=h;this.u=void 0===p?null:p;this.audioChannels=r;this.D=(null===l||void 0===l?void 0:l.split(","))||[];this.C=m||null;this.Sd=n||"";this.B=""};
SG=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!0:c;var d={};a=g.q(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var f=e.type;e.audio_channels&&(f=f+"; channels="+e.audio_channels);if(!MediaSource.isTypeSupported(f))continue}if(c||!e.drm_families||"smpte2084"!==e.eotf&&"arib-std-b67"!==e.eotf){f={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"};var h=e.type.match(/codecs="([^"]*)"/);h=h?h[1]:"";var l=null;e.audio_track_id&&(l=new zB(e.name,
e.audio_track_id,!!e.is_default));var m=e.eotf;e=new eia(e.itag,e.url,h,+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,m?f[m]:void 0,e.drm_families,l,+e.audio_channels);d[e.itag]=d[e.itag]||[];d[e.itag].push(e)}}return d};
TG=function(a,b,c){this.Oa=a;this.B=b;this.expiration=c;this.u=null};
fia=function(a,b){if(!($q||Xq()||Tq()))return null;var c=SG(b,g.Q(a.experiments,"html5_filter_fmp4_in_hls"));if(!c)return null;for(var d=[],e={},f=g.q(Object.keys(c)),h=f.next();!h.done;h=f.next()){h=g.q(c[h.value]);for(var l=h.next();!l.done;l=h.next()){var m=l.value;m.u&&(l=m.u.getId(),e[l]||(m=new RC(l,m.u),e[l]=m,d.push(m)))}}return 0<d.length?d:null};
jia=function(a,b,c,d,e){if(!($q||Xq()||Tq()))return et();var f=gia(c),h=SG(c,g.Q(a.experiments,"html5_filter_fmp4_in_hls"),a.D.B);if(!h)return et();g.Q(a.experiments,"html5_filter_video_m2ts_in_hls_killswitch")||hia(h);c={};var l=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c);c=[];for(var m=[],n=[],p=g.P(a.experiments,"html5_hls_min_video_height"),r=null,t="",w=g.q(Object.keys(h)),x=w.next();!x.done;x=w.next())if(x=x.value,!g.Q(a.experiments,"html5_disable_drm_hfr_1080")||"383"!==
x&&"373"!==x){x=g.q(h[x]);for(var y=x.next();!y.done;y=x.next())if(y=y.value,y.width){if(!(y.height<p)){var E=g.q(y.D);for(var D=E.next();!D.done;D=E.next())if(D=D.value,h[D]){y.B=D;break}y.B||(y.B=iia(h,y));if(D=h[y.B]){c.push(y);E="fairplay"===y.Sd?l:null;var G="";"PQ"===y.C?G="smpte2084":"HLG"===y.C&&(G="arib-std-b67");G&&(t=G);n.push(UG(D,[y],e,y.itag,y.width,y.height,y.fps,f,void 0,void 0,E,G));if(!r||y.width*y.height*y.fps>r.width*r.height*r.fps)r=y}}}else m.push(y)}E=n.reduce(function(I,H){return H.Oe().isEncrypted()&&
I},!0)?l:null;
d=Math.max(d,g.P(a.experiments,"html5_hls_initial_bitrate"));h=r||{};n.push(UG(m,c,e,"93",void 0===h.width?0:h.width,void 0===h.height?0:h.height,void 0===h.fps?0:h.fps,f,"auto",d,E,t));return PG(a.D,n,QD(a,b))};
UG=function(a,b,c,d,e,f,h,l,m,n,p,r){for(var t=0,w="",x=g.q(a),y=x.next();!y.done;y=x.next())y=y.value,w||(w=y.itag),y.audioChannels&&y.audioChannels>t&&(t=y.audioChannels,w=y.itag);d=new Px(d,"application/x-mpegURL",new Hx(0,t,null,w),new Kx(e,f,h,null,void 0,m,void 0,r),void 0,p);a=new cia(a,b,c);a.D=n?n:1369843;return new TG(d,a,l)};
gia=function(a){a=g.q(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN};
iia=function(a,b){for(var c=g.q(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Sd===b.Sd&&!e.audioChannels)return d}return""};
hia=function(a){for(var b=new Set,c=g.q(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.q(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.q(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
VG=function(a,b){this.Oa=a;this.u=b};
kia=function(a,b,c,d){var e=[];c=g.q(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new Ew(h.url,!0);if(h.s){var l=h.sp,m=rw(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.q(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=Vx(h.type,h.quality,h.itag,h.width,h.height);e.push(new VG(h,f))}}return PG(a.D,e,QD(a,b))};
WG=function(a,b){this.Oa=a;this.u=b};
lia=function(a){var b=[];g.Cb(a,function(c){if(c&&c.url){var d=Vx(c.type,"medium","0");b.push(new WG(d,c.url))}});
return b};
mia=function(a,b,c){c=lia(c);return PG(a.D,c,QD(a,b))};
XG=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.isHeadless?!1:d.isHeadless;var e=void 0===d.Qo?!1:d.Qo,f=void 0===d.qu?!1:d.qu;d=void 0===d.videoDuration?0:d.videoDuration;this.videoId=a;this.status=b;this.isHeadless=c;this.Qo=e;this.qu=f;this.videoDuration=d};
nia=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.ustreamerConfig=gD(a.ustreamerConfig))};
g.YG=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.u=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.ZG=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (\u81ea\u52d5\u5b57\u5e55\u8d77\u3053\u3057)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")};
aH=function(a){for(var b={},c=g.q(Object.keys($G)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[$G[d]];e&&(b[d]=e)}return b};
bH=function(a,b){for(var c={},d=g.q(Object.keys($G)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.zw(f)&&(c[$G[e]]=f)}return c};
eH=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url});
a.sort(function(l,m){return l.width-m.width||l.height-m.height});
for(var c=g.q(Object.keys(cH)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=cH[e];for(var f=g.q(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=dH(h.url);g.zw(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=dH(a.url),g.zw(a)&&(b["maxresdefault.jpg"]=a));return b};
dH=function(a){return a.startsWith("//")?"https:"+a:a};
fH=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return oia[a];return null};
gH=function(a){return a&&a.baseUrl||""};
hH=function(a){a=g.aq(a);for(var b=g.q(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a};
iH=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;var c=b.playerAttestationRenderer.challenge;null!=c&&(a.yh=c)};
pia=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.q(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=jH(d.baseUrl);if(!e)return;d=new g.YG({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.S(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.tx=b.audioTracks||[];a.kC=b.defaultAudioTrackIndex||0;a.lC=b.translationLanguages?g.Mc(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.S(f.languageName)}}):
[];
a.kt=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
qia=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.interstitials.map(function(l){var m=l.unserializedPlayerResponse;if(m)return{is_yto_interstitial:!0,raw_player_response:m};if(l=l.playerVars)return Object.assign({is_yto_interstitial:!0},Zp(l))});
e=g.q(e);for(var f=e.next();!f.done;f=e.next())switch(f=f.value,d.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:f,xi:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:f,xi:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var h=Number(d.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:h,playerVars:f,
xi:0===h?5:7})}}};
ria=function(a,b){var c=b.find(function(d){return!(!d||!d.tooltipRenderer)});
c&&(a.tooltipRenderer=c.tooltipRenderer)};
kH=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)};
mH=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=Zp(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=sia[c]);(c=a.projectionType)&&(b.projection_type=tia[c]);(c=a.stereoLayout)&&(b.stereo_layout=uia[c]);(c=a.spatialAudioType)&&(b.spatial_audio_type=via[c]);if(d=a.drmFamilies){c=[];d=g.q(d);for(var e=d.next();!e.done;e=d.next())c.push(lH[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=fH(a))&&(b.eotf=c);(a=a.colorInfo)&&(a=a.primaries)&&(a=wia[a])&&(b.primaries=a);return g.Ed(b)};
nH=function(a){g.O.call(this);this.u=null;this.C=new g.oo;this.u=null;this.J=new Set;this.crossOrigin=a||""};
qH=function(a,b,c){for(c=oH(a,c);0<=c;){var d=a.levels[c];if(d.Qc(Math.floor(b/(d.columns*d.rows)))&&(d=g.pH(d,b)))return d;c--}return g.pH(a.levels[0],b)};
sH=function(a,b,c){c=oH(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=Math.floor(b/(d.columns*d.rows)),!d.Qc(e)){d=a;var f=c,h=f+"-"+e;d.J.has(h)||(d.J.add(h),g.no(d.C,f,{tE:f,qF:e}))}rH(a)};
rH=function(a){if(!a.u&&!a.C.isEmpty()){var b=a.C.remove();a.u=xia(a,b)}};
xia=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=tH(a.levels[b.tE],b.qF);c.onload=function(){var d=b.tE,e=b.qF;null!==a.u&&(a.u.onload=null,a.u=null);d=a.levels[d];d.loaded.add(e);rH(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.my()-1);e=[e,d];a.V("l",e[0],e[1])};
return c};
g.uH=function(a,b,c,d){this.level=a;this.F=b;this.loaded=new Set;this.level=a;this.F=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.C=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.u=Math.floor(Number(a[5]));this.D=a[6];this.signature=a[7];this.videoLength=d};
tH=function(a,b){var c=a.F;c=c.replace("$N",a.D);c=c.replace("$L",a.level.toString());c=c.replace("$M",b.toString());a.signature&&(c=g.Id(c,{sigh:a.signature}));return Dw(c)};
g.pH=function(a,b){b>=a.vz()&&a.gr();var c=Math.floor(b/(a.columns*a.rows)),d=a.columns*a.rows,e=b%d,f=e%a.columns;e=Math.floor(e/a.columns);var h=a.gr()+1-d*c;if(h<a.columns){var l=h;d=1}else l=a.columns,d=h<d?Math.ceil(h/a.columns):a.rows;return{url:tH(a,c),column:f,columns:l,row:e,rows:d,vv:a.width*l,tv:a.height*d}};
vH=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;nH.call(this,c);this.isLive=d;this.K=!!e;this.levels=this.B(a,b);this.D=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
wH=function(a,b,c){return(a=a.levels[b])?a.gv(c):-1};
oH=function(a,b){var c=a.D.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.D.set(b,d),d;a.D.set(b,c-1);return c-1};
xH=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.uH.call(this,a,b,c,0);this.B=null;this.J=d?3:0};
yH=function(a,b,c,d){vH.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].WE(c)};
yia=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Id(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.zH=function(a,b){g.O.call(this);this.Ra=a;this.adModule=!1;this.adaptiveFormats="";this.XB=this.adSafetyReason=this.adQueryId=this.ax=null;this.dx={start:NaN,end:NaN};this.Mp="";this.Sd=null;this.drmParams="";this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Ng="";this.hx=this.Ws=this.vE=!1;this.iE=null;this.Bp=this.qn=this.Hs=this.uu=!1;this.pd=null;this.cm=!1;this.Mr=NaN;this.Wz={};this.PA=this.cycToken=null;this.author="";this.rg=0;this.vx=!1;this.zj=null;this.ox=
this.KC=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.channelBanner=this.Fk=this.Tp="";this.contentCheckOk=!1;this.Ah=0;this.At=this.iq=!1;this.endSeconds=0;this.Ap=this.Dh=this.Oa=this.Px=null;this.dy="";this.Nd=!1;this.Tj=this.fo=0;this.fx=this.pipable=this.Nh=!1;this.paidContentOverlayDurationMs=0;this.isLivePlayback=this.Yi=this.isPrivate=this.isListed=this.Vy=this.mutedAutoplay=this.ih=!1;this.iz="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=
this.Xy=this.Mq=this.ce=!1;this.latencyClass="UNKNOWN";this.enableServerStitchedDai=this.Zc=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=!1;this.oj=0;this.reloadReason="";this.az=this.fE=this.Vj=!1;this.keywords={};this.Rh="";this.Oq=0;this.zs=!1;this.liveChunkReadahead=NaN;this.Cu=0;this.po=null;this.Tq=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.paygated=!1;this.cj=[];this.Kf=[];this.racyCheckOk=!1;this.LG={};this.Sr=0;this.La=
null;this.autonavState=1;this.cC=null;this.shortDescription="";this.Tg=this.DA=!1;this.ow=this.Zk=this.startSeconds=0;this.Dw=this.gC=this.BI=iE;this.suggestions=null;this.Pl=this.jn=void 0;this.np=null;this.MA=!1;this.expandedSubtitle=this.Yx=this.subtitle=this.title="";this.multiMarkersPlayerBarRenderer=this.yx=void 0;this.Ea=[];this.hlsFormats=this.As="";this.Du=this.nw=this.uh=this.lk=this.jh=this.Ur=this.mu=null;this.Gg="vvt";this.Be=!1;this.lB=null;this.NI="";this.Js=NaN;this.Ow=this.Kw=this.Jw=
this.Iw=this.Hw=this.Nw=this.Gs=this.Mw=this.Is=this.Lw="";this.Cp=null;this.BH=!1;this.qd={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";this.LD=this.KD=NaN;this.Cl=this.Nq=this.Zl=this.UD=this.MD=!1;this.Zr=!0;this.oi={};this.captionTracks=[];this.tx=[];this.kC=0;this.lC=[];this.kt=!1;this.cq=new RC("und",new zB("Default","und",!0));this.cz=0;this.hd=null;this.Vo=[];this.Xl=[];this.hB=this.Xo="";this.slotPosition=-1;this.breakType=0;this.watchNextResponse=this.playerResponse=this.PC=
this.hq=this.Sg=this.Nx=this.ex=this.Xw=null;this.wt=!1;this.qe=null;this.Ty=this.gq=this.useCobaltWidevine=this.OH=this.Gm=this.nk=!1;this.al=this.Dm=NaN;this.defraggedFromSubfragments=this.Ti=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.Bl=this.jB=this.pn=!1;this.interstitials=[];this.oc=this.Wy=!1;this.Fr=this.xF=this.Hj="";this.isVisualizerEligible=!1;this.Fv=null;this.Hc="";this.Oh=this.SD=!1;this.vF=this.Fs="";this.Xz=this.Sz=this.Py=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=
this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.gs=!1;this.kp=this.Nl=!0;this.errorDetail=this.userGenderAge="";this.QA=this.RA=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Li=this.errorReason=this.errorCode=null;this.nt=this.mt="";this.Bh=this.Rn=!1;this.dk=this.Mm=this.Ff=this.Ed=0;this.Sq=this.fetchType=null;this.OG=!0;this.hI=void 0;this.Xs=-1;this.jp=this.Ml=!1;this.nq=
null;this.aa("web_player_ux_module_wait")&&this.Ra.qb&&this.Kf.push("ux");this.Ml=this.aa("web_new_autonav_countdown");this.jp=this.aa("web_new_big_thumbnail_endscreen");this.setData(b)};
CH=function(a,b){a.fflags=oD(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Ng=Dw(c));a.Ws=R(a.Ws,b.iv_ads_only);a.hx=R(a.hx,b.iv_allow_in_place_switch);a.isPharma=R(a.isPharma,b.is_pharma);a.author=oD(a.author,b.author);a.Tp=jH(b.ttsurl)||a.Tp;a.vx=R(a.vx,b.cc_asr);a.Fk=oD(a.Fk,b.channel_path);a.channelBanner=oD(a.channelBanner,b.channel_banner);if(c=b.profile_picture)a.df=oD(c,a.df);a.videoCountText=oD(a.videoCountText,b.video_count_text);a.autonavState=mD(a.autonavState,b.autonav_state,zia);a.clientPlaybackNonce=
oD(a.clientPlaybackNonce,b.cpn);a.subscribed=R(a.subscribed,b.subscribed);a.rawViewCount=nD(a.rawViewCount,b.view_count);a.shortViewCount=oD(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=oD(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=oD(a.lengthText||"",b.lengthText);a.Bu=oD(a.Bu||"",b.Bu);a.Qp=oD(a.Qp||"",b.Qp);a.title=oD(a.title,b.title);a.subtitle=oD(a.subtitle,b.subtitle);a.Yx=oD(a.Yx,b.expanded_title);a.expandedSubtitle=oD(a.expandedSubtitle,b.expanded_subtitle);
a.Mp=oD(a.Mp,b.aria_label);a.ypcPreview=oD(a.ypcPreview,b.ypc_preview);a.mB=oD(a.mB,b.ypc_origin);a.Be=R(a.Be,b.ypc_is_premiere_trailer);a.Fs=oD(a.Fs,b.ypc_clickwrap_message);a.paygated=R(a.paygated,b.paygated);a.BH=R(a.BH,b.requires_purchase);a.showShareButton=!R(!a.showShareButton,b.ss);a.Nl=R(a.Nl,b.showwatchlater);a.kp=R(a.kp,b.shownotifybutton);a.gs=R(a.gs,b.copy_share);if(c=b.keywords)a.keywords=AH(c.split(","));if(c=b.rvs)a.suggestions=$p(c);a.contentCheckOk=R(a.contentCheckOk,b.cco);a.racyCheckOk=
R(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=R(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=oD(a.oauthToken,b.oauth_token);a.Rh=oD(a.Rh,b.kpt);a.visitorData=oD(a.visitorData,b.visitor_data);if(c=b.session_data)a.wd=Xp(c,"&");if(c=b.endscreen_autoplay_session_data)a.Px=Xp(c,"&");a.Bt=oD(a.Bt,b.endscreen_ad_tracking_data);a.GI=R(a.GI,b.wait_for_vast_info_cards_xml);a.JA=R(a.JA,b.suppress_creator_endscreen);a.eE=R(a.eE,b.is_trueview_action);a.gI=oD(a.gI,b.tracking_list);a.mt=oD(a.mt,
b.clip);a.nt=oD(a.nt,b.clipt);BH(a,b)};
GH=function(a,b){var c,d,e,f,h,l,m,n,p,r,t,w,x,y,E=b.raw_watch_next_response;if(!E){var D=b.watch_next_response;D&&(E=JSON.parse(D))}if(E){a.watchNextResponse=E;var G=a.watchNextResponse.contents;if(G){var I=G.singleColumnWatchNextResults;if(I){var H=nD(0,b.autoplay_count);if(I.autoplay&&I.autoplay.autoplay&&!I.playlist){var Ba=I.autoplay.autoplay.sets,la={},Pa={},Sa=null;if(Ba){for(var $a=g.q(Ba),lc=$a.next();!lc.done;lc=$a.next()){var Yb=lc.value.autoplayVideoRenderer;if(Yb&&Yb.compactVideoRenderer){Sa=
Yb.compactVideoRenderer;break}}var Pe=Ba[0].autoplayVideo;if(Pe){var re=Pe.clickTrackingParams;re&&(la.itct=re);la.autonav="1";la.playnext=String(H)}}else la.feature="related-auto";if(Sa){Pa.autonav="1";Pa.video_id=Sa.videoId;var nf=Sa.shortBylineText;nf&&(Pa.author=g.S(nf));var Uf=Sa.title;Uf&&(Pa.title=g.S(Uf))}Pa.endscreen_autoplay_session_data=g.Ed(la);a.suggestions=[Pa]}}var Oc=G.twoColumnWatchNextResults}var ex=a.watchNextResponse.playerOverlays;if(ex){var Pd=ex.playerOverlayRenderer;if(Pd){var Fd=
Pd.endScreen;if(Fd){var fx=Fd.watchNextEndScreenRenderer;if(fx)var zi=fx.results}var yr=Pd.videoDetails;if(yr){var gx=yr.embeddedPlayerOverlayVideoDetailsRenderer;var zr=yr.musicEmbeddedPlayerOverlayVideoDetailsRenderer;zr&&(a.by=zr.title,a.ay=zr.byline)}var of=Pd.actions;if(of)for(var hx=g.q(of),Ar=hx.next();!Ar.done;Ar=hx.next()){var ix=Ar.value;ix.likeButtonRenderer&&(a.likeButtonRenderer=ix.likeButtonRenderer)}var Pn=null===(c=Pd.decoratedPlayerBarRenderer)||void 0===c?void 0:c.decoratedPlayerBarRenderer;
Pn&&(a.multiMarkersPlayerBarRenderer=null===(d=Pn.playerBar)||void 0===d?void 0:d.multiMarkersPlayerBarRenderer,a.yx=null===(f=null===(e=Pn.playerBar)||void 0===e?void 0:e.chapteredPlayerBarRenderer)||void 0===f?void 0:f.chapters,a.FR=null===(h=Pn.playerBarActionButton)||void 0===h?void 0:h.buttonRenderer);g.CD(a.Ra)&&(a.Nl=!!Pd.addToMenu);DH(a,Pd.shareButton);var Qn=Pd.productsInVideoOverlayRenderer;Qn&&(a.shoppingOverlayRenderer=Qn.shoppingOverlayRenderer);var jx=Pd.autoplay;if(jx)var Dh=jx.playerOverlayAutoplayRenderer}}if(!zi&&
Oc){var kx=Oc.endScreen&&Oc.endScreen.endScreen;kx&&(zi=kx.results)}if(Oc){var Br=Oc.desktopOverlay&&Oc.desktopOverlay.desktopOverlayConfigRenderer;Br&&(Br.suppressShareButton&&(a.showShareButton=!1),Br.suppressWatchLaterButton&&(a.Nl=!1))}gx&&EH(a,b,gx);var lx=nD(0,b.autoplay_count);if(zi){for(var xE=Oc||null,Rn=Dh||null,Cr=[],Dr=!0,mx=g.q(zi),Sn=mx.next();!Sn.done;Sn=mx.next()){var Tn=Sn.value,Er=void 0,yc=null;if(Tn.endScreenVideoRenderer){var Jg=Tn.endScreenVideoRenderer,Fr=Jg.title;yc={id:Jg.videoId,
length_seconds:Jg.lengthInSeconds};var nx=Jg.publishedTimeText;nx&&(yc.publishedTimeText=g.S(nx));var fd=Jg.shortBylineText;fd&&(yc.author=g.S(fd));var ox=Jg.shortViewCountText;ox&&(yc.short_view_count_text=g.S(ox));if(Fr){yc.title=g.S(Fr);var px=Fr.accessibility;if(px){var Gr=px.accessibilityData;Gr&&Gr.label&&(yc.aria_label=Gr.label)}}var Hr=Jg.navigationEndpoint;if(Hr){Er=Hr.clickTrackingParams;var qx=Hr.watchEndpoint;qx&&(yc.Qx=qx)}var rx=Jg.thumbnailOverlays;if(rx)for(var sx=g.q(rx),Ir=sx.next();!Ir.done;Ir=
sx.next()){var Jr=Ir.value.thumbnailOverlayTimeStatusRenderer;if(Jr)if("LIVE"===Jr.style){yc.live_playback="1";break}else if("UPCOMING"===Jr.style){yc.isUpcoming=!0;break}}var yE=eH(Jg.thumbnail),pl=aH(yE);pl.iurlmq&&(pl={iurlmq:pl.iurlmq,iurlhq:pl.iurlmq});Object.assign(yc,pl)}else if(Tn.endScreenPlaylistRenderer){var Qj=Tn.endScreenPlaylistRenderer,Kr=Qj.navigationEndpoint;if(!Kr)continue;var Lr=Kr.watchEndpoint;if(!Lr)continue;var tx=Lr.videoId;yc={list:Qj.playlistId,video_id:tx,playlist_length:Qj.videoCount,
thumbnail_ids:tx};var ux=Qj.title;ux&&(yc.playlist_title=g.S(ux));var vx=Qj.shortBylineText;vx&&(yc.playlist_author=g.S(vx));Er=Kr.clickTrackingParams;var zE=eH(Qj.thumbnail);Object.assign(yc,aH(zE))}yc&&(yc.session_data=g.Ed({itct:Er}),Dr?(FH(yc,xE,Rn,lx),Cr.splice(0,0,yc),Dr=!1):Cr.push(yc))}a.suggestions=Cr}if(Dh){a.OG=!!Dh.preferImmediateRedirect;a.Ml=a.Ml||!!Dh.webShowNewAutonavCountdown;a.jp=a.jp||!!Dh.webShowBigThumbnailEndscreen;if(a.Ml||a.jp){var Qe=Dh,Re=Oc||null,wx=void 0,Qd={id:Qe.videoId},
Mr=Qe.videoTitle;if(Mr){Qd.title=g.S(Mr);var Nr=Mr.accessibility;if(Nr){var Or=Nr.accessibilityData;Or&&Or.label&&(Qd.aria_label=Or.label)}}var xx=Qe.byline;xx&&(Qd.author=g.S(xx));var Rj=Qe.publishedTimeText;Rj&&(Qd.publishedTimeText=g.S(Rj));var Gd=Qe.shortViewCountText;Gd&&(Qd.short_view_count_text=g.S(Gd));var ql=Qe.thumbnailOverlays;if(ql)for(var yx=g.q(ql),Pr=yx.next();!Pr.done;Pr=yx.next()){var Ai=Pr.value.thumbnailOverlayTimeStatusRenderer;if(Ai)if("LIVE"===Ai.style){Qd.live_playback="1";
break}else if("UPCOMING"===Ai.style){Qd.isUpcoming=!0;break}else if("DEFAULT"===Ai.style&&Ai.text){Qd.lengthText=g.S(Ai.text);var zx=Ai.text.accessibility;if(zx){var Un=zx.accessibilityData;Un&&Un.label&&(Qd.Bu=Un.label)}break}}var AE=eH(Qe.background),Bi=aH(AE);Bi.iurlmq&&(Bi={iurlmq:Bi.iurlmq,iurlhq:Bi.iurlmq});Object.assign(Qd,Bi);var Ax=Qe.nextButton;if(Ax){var Bx=Ax.buttonRenderer;if(Bx){var Qr=Bx.navigationEndpoint;if(Qr){wx=Qr.clickTrackingParams;Qd.session_data=g.Ed({itct:wx});var Vn=Qr.watchEndpoint;
Vn&&(Qd.Qx=Vn)}}}if(Qe.topBadges){var Cx=Qe.topBadges[0];if(Cx){var Dx=Cx.metadataBadgeRenderer;Dx&&"BADGE_STYLE_TYPE_PREMIUM"==Dx.style&&(Qd.jw=!0)}}var Ex=Qe.alternativeTitle;Ex&&(Qd.Qp=g.S(Ex));FH(Qd,Re,Qe,lx);a.suggestions||(a.suggestions=[]);a.suggestions[0]=Qd}null!=Dh.countDownSecs&&(a.Xs=1E3*Dh.countDownSecs)}a.watchNextResponse.currentVideoThumbnail&&(a.oi=eH(a.watchNextResponse.currentVideoThumbnail));if(!a.aa("player_parse_profile_picture_from_watch_next_killswitch")){var rl=null===(r=
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.results)||void 0===p?void 0:p.results)||void 0===r?void 0:r.contents;if(rl&&rl[1]){var Wn=null===(y=null===(x=null===(w=null===(t=rl[1].videoSecondaryInfoRenderer)||void 0===t?void 0:t.owner)||void 0===w?void 0:w.videoOwnerRenderer)||void 0===x?void 0:x.thumbnail)||void 0===y?void 0:y.thumbnails;Wn&&Wn.length&&(a.df=Wn[Wn.length-1].url)}}}};
HH=function(a){return!!(a.La&&a.La.videoInfos&&a.La.videoInfos.length)};
JH=function(a){if(a.aa("html5_single_format_policy")&&a.nq)return a.nq;var b=a.Oh,c=!!a.va&&(a.va.Wj()||a.va.Xj()||a.va.Qj()),d=a.Ra,e=!!a.va&&a.va.Yg,f=IH(a),h=a.jB;a.isAd();var l=a.isOtf(),m=a.gx(),n=new eha;g.Q(d.experiments,"html5_high_res_logging")&&(n.u=!0);n.da=f;n.P=h&&d.C;Pq("windows nt 5.1")&&!g.KC&&(n.C=!0);if(f=c)f=d.aa("disable_html5_ambisonic_audio")||!(g.dE(d)||d.aa("html5_enable_spherical")||d.aa("html5_enable_spherical3d"))?!1:eE(d);f&&(n.Y=!0);b&&(n.C=!0,n.Lb=!0);l&&!g.Q(d.experiments,
"html5_otf_prefer_vp9")&&(n.C=!0);xC(d.D,yC.CHANNELS)&&(g.Q(d.experiments,"html5_enable_aac51")&&(n.K=!0),g.Q(d.experiments,"html5_enable_ac3")&&(n.D=!0),g.Q(d.experiments,"html5_enable_eac3")&&(n.F=!0));g.Q(d.experiments,"html5_block_8k_hfr")&&(n.ra=!0);!g.Q(d.experiments,"html5_kaios_hd_killswitch")&&uD&&(n.la=480);if(e||c)n.fa=!1;n.ga=!1;b=BC(d,n.B);0<b&&2160>b&&(MB()||g.Q(d.experiments,"html5_format_hybridization"))&&(n.B.supportsChangeType=+MB(),n.J=b);2160<=b&&(n.Ba=!0);zC()&&(n.B.serveVp9OverAv1IfHigherRes=
0,n.Xb=!1);n.gx=m;m=g.ms||dr()&&!m?!1:!0;n.X=m;n.na=g.Q(d.experiments,"html5_format_hybridization");Tq()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(n.D=!0,n.F=!0);a.jn&&(n.jn=a.jn);a.Pl&&(n.Pl=a.Pl);a.isLivePlayback&&(d=a.Zc&&a.Ra.aa("html5_enable_audio_51_for_live_dai"),m=!a.Zc&&a.Ra.aa("html5_enable_audio_51_for_live_non_dai"),n.S=d||m);return a.nq=n};
Bia=function(a){a.Dh||a.va&&YB(a.va);var b={};a.va&&(b=$C(JH(a),a.Ra.D,a.va,function(c){return a.V("ctmp","fmtflt",c)}));
b=new LG(b,a.Ra.experiments,a.OH,Aia(a));g.C(a,b);a.Nq=!1;a.Nd=!0;$ha(b,function(c){for(var d=g.q(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Dh=a.Dh;e.Dt=a.Dt;e.Ct=a.Ct;break;case "widevine":e.Ap=a.Ap}a.Vo=c;if(0<a.Vo.length&&(a.hd=a.Vo[0],KH(a))){c=[];d=g.q(Object.entries(a.hd.B));for(e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c.push(h+"_"+f)}a.Ka("drmProbe",c.join("."))}LH(a)})};
PH=function(a,b){var c;(c=!b)||(c=!(!MH(a)&&a.adaptiveFormats));if(c)return null;NH(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(dC=!0);c=OH(b);var d=a.Sd;var e=a.lengthSeconds,f=a.isLivePlayback,h=a.ce,l=a.Ra.experiments,m=Tga(c);d=f||h?Sga(c,h,d,l):3==m?Rga(c,d,e,l):Qga(c,d,e,l);0<c.length&&(c=c[0],c.url&&c.sp&&c.s&&(c=bC(c.url,c.sp,c.s),c=Number(c.get("max_sq"))||Infinity,isFinite(c)&&(a.Mq=!0)));if(c=d.isManifestless)c=!(a.aa("html5_manifestless_vp9")||a.aa("html5_manifestless_vp9_normal_latency")&&
(!a.isLowLatencyLiveStream||"NORMAL"==a.latencyClass)||!Cia(d));return c?(d.dispose(),null):d};
RH=function(a,b){var c=PH(a,b);if(!c)return!1;QH(a,c);return!0};
MH=function(a){return Tq()&&!SH(a)};
SH=function(a){return NH(a,"html5_enable_tvos_dash_dogfood")||a.aa("html5_enable_tvos_dash")&&(a.aa("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"'))};
Aia=function(a){return a.useCobaltWidevine?a.aa("html5_enable_tvos_widevine")&&Tq()?SH(a):NH(a,"html5_enable_androidtv_cobalt_widevine")&&Pq("cobalt")&&Pq("android")?!0:!1:!1};
Cia=function(a){return a.isManifestless&&CB('video/webm; codecs="vp9"')&&g.Hb(a.u,function(b){return Qx(b.info)})};
dI=function(a){return!(!a.va||!a.va.isManifestless)};
fI=function(a){if(!Az())return!1;if(a.aa("html5_streaming_debug"))return!0;if(g.ms)return!1;if(g.Sq()){var b=Oq();if(16<=b&&17>b)return!1}return!dI(a)||"ULTRALOW"!=a.latencyClass&&21530001!=eI(a)?window.AbortController?a.aa("html5_streaming_xhr")||a.aa("html5_streaming_xhr_manifestless")&&dI(a)?!0:!1:!1:!0};
gI=function(a){return lB({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Ti:a.Ti,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:dI(a),HA:fI(a)})};
eI=function(a){return a.isLowLatencyLiveStream&&void 0!=a.va&&5<=mC(a.va)?21530001:a.liveExperimentalContentId};
hI=function(a){return Tq()&&SH(a)?!1:!PC()||a.KC?!0:!1};
Dia=function(a){a.Nd=!0;a.Zl=!1;if(!a.Qg&&iI(a))Ofa(a.videoId).then(function(d){var e=[];d=g.q(d);for(var f=d.next();!f.done;f=d.next())f=mH(f.value),e.push(f);a:if(d=e.join(","),e=PH(a,a.adaptiveFormats))if(d=PH(a,d)){if(0<g.P(a.Ra.experiments,"hoffle_cache_size_secs")){f=a.videoId;var h=hy(f);0!==h&&ky(f,h,!0)}f=g.q(Object.keys(d.u));for(h=f.next();!h.done;h=f.next()){var l=h.value;h=d.u[l];l=e.u[l];if(!l||h.lastModified<l.lastModified){jI(a,!0);a.Sq=new XG(a.videoId,2,{Qo:!0});d.dispose();QH(a,
e);a.Ka("dlacfb",h.lastModified+"-"+(null===l||void 0===l?void 0:l.lastModified));break a}}e.dispose();QH(a,d)}else QH(a,e);a.Ka("dlac","r")},function(){return RH(a,a.adaptiveFormats)}).then(function(){LH(a)});
else{yw(a.Qg)||g.gr(new g.nr("DASH MPD Origin invalid: ",a.Qg));var b=a.Qg,c=g.P(a.Ra.experiments,"dash_manifest_version")||4;b=g.Id(b,{mpd_version:c});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Id(b,{pacing:0}));Wga(b,a.Ra.experiments,a.isLivePlayback).then(function(d){a.ma()||(QH(a,d,!0),yG("mrc"),LH(a))},function(d){a.ma()||(a.Nd=!1,a.V("dataloaderror",new IB("manifest.net.retryexhausted",!0,{backend:"manifest",
rc:d.status})))});
yG("mrs")}};
LH=function(a){a.ma()||(a.Nd=!1,a.V("dataloaded"))};
QH=function(a,b,c){c=void 0===c?!1:c;a.va=b;g.C(a,b);b.Ed=a.Ed;b.Ff=a.Ff;b.dk=a.dk;b.Mm=a.Mm;kI(a)&&a.Kf.push("webgl");a.va.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.po=Number(d[d.indexOf("manifest_duration")+1]));b.C&&(b.subscribe("clienttemp",a.Ka,a),c?b.subscribe("refresh",a.SF,a):b.subscribe("cuepointsadded",a.tC,a));YB(b)&&(a.Nq=!0)};
lI=function(a){return a.Sd?!0:!!a.va&&YB(a.va)};
Eia=function(a,b){var c=b||hI(a);return a.va&&!c?(IH(a)&&$ga(a.va,a.isLivePlayback),NH(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(a.Ra.D.C=!0),nha(JH(a),a.Ra.D,a.va,a.hd,function(d){return a.V("ctmp","fmtflt",d)},a.aa("html5_dynamic_av1_hybrid_threshold")).then(function(d){mI(a,d);
/^av/.test(a.clientPlaybackNonce)&&a.nq&&a.Ka("av1",g.JB(a.nq.B))})):et()};
Fia=function(a,b){if(b&&a.hlsvp)return et();if(a.hlsFormats){var c=OH(a.hlsFormats);a.mu=fia(a.Ra,c);var d=a.clientPlaybackNonce;return jia(a.Ra,a.isAd(),c,a.Tj,d).then(function(e){for(var f,h,l=0,m=g.q(e),n=m.next();!n.done;n=m.next())n=n.value,(null===(h=null===(f=n.Oe())||void 0===f?void 0:f.audio)||void 0===h?void 0:h.u)>l&&(l=n.Oe().audio.u);2<l&&a.Ka("hlschl",""+l);nI(a,e)})}return et()};
Gia=function(a){return a.np&&a.fE?mia(a.Ra,a.isAd(),a.np).then(function(b){nI(a,b)}):et()};
Iia=function(a){var b=OH(a.As,a.dy);if(a.hlsvp){var c=yia(a.hlsvp,a.clientPlaybackNonce,a.Tj);b.push(c)}return kia(a.Ra,a.isAd(),b,Hia(a)).then(function(d){nI(a,d)})};
mI=function(a,b){a.La=b;var c=a.getAvailableAudioTracks();c=c.concat(a.cq);for(var d=0;d<a.tx.length;d++)for(var e=a.tx[d],f=0;f<c.length;f++){var h=c[f],l=h.u.id==e.audioTrackId;if(h.u.isDefault&&d==a.kC||l){if(e.captionTrackIndices)for(l=0;l<e.captionTrackIndices.length;l++)h.captionTracks[l]=a.captionTracks[e.captionTrackIndices[l]];void 0!==e.defaultCaptionTrackIndex&&(h.D=a.captionTracks[e.defaultCaptionTrackIndex]);void 0!==e.forcedCaptionTrackIndex&&(h.B=a.captionTracks[e.forcedCaptionTrackIndex]);
h.C=e.visibility||"UNKNOWN"}}if(a.hd&&a.La&&a.La.videoInfos&&!(0>=a.La.videoInfos.length)&&(c=Tx(a.La.videoInfos[0]),c!=("fairplay"==a.hd.flavor)))for(d=g.q(a.Vo),e=d.next();!e.done;e=d.next())if(e=e.value,c==("fairplay"==e.flavor)){a.hd=e;break}};
nI=function(a,b){a.lk=b;mI(a,new YC(g.Mc(a.lk,function(c){return c.Oe()})))};
Hia=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Ra.deviceParams.c,cver:a.Ra.deviceParams.cver};a.Hv&&(b.ptk=a.Hv,b.oid=a.EG,b.ptchn=a.DG,b.pltype=a.FG);return b};
g.oI=function(a){return MH(a)&&a.Dh?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.Oa&&a.Oa.Sd||null};
pI=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.S(b.text):a.paidContentOverlayText};
qI=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?g.od(b.durationMs):a.paidContentOverlayDurationMs};
rI=function(a){var b="";if(a.iz)return a.iz;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":"live");return b};
g.sI=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
tI=function(a){return!!(a.Qg||a.adaptiveFormats||a.As||a.np||a.hlsvp)};
uI=function(a){var b=g.jb(a.Kf,"ypc");a.ypcPreview&&(b=!1);return a.isValid()&&!a.Nd&&(tI(a)||g.jb(a.Kf,"heartbeat")||b)};
OH=function(a,b){var c=$p(a),d={};if(b)for(var e=g.q(b.split(",")),f=e.next();!f.done;f=e.next())(f=f.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[f[1]]={width:f[2],height:f[3]});e=g.q(c);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d[f.itag];h&&(f.width=h.width,f.height=h.height)}return c};
DH=function(a,b){a.showShareButton=!!b;if(b){var c=b.buttonRenderer&&b.buttonRenderer.navigationEndpoint;c&&(a.gs=!!c.copyTextEndpoint)}};
wI=function(a,b){var c=b.raw_embedded_player_response;if(!c){var d=b.embedded_player_response;d&&(c=JSON.parse(d))}c&&(a.Sg=c);if(a.Sg){if(c=a.Sg.videoFlags)c.playableInEmbed&&(a.allowEmbed=!0),c.isPrivate&&(a.isPrivate=!0),c.userDisplayName&&(b.user_display_name=c.userDisplayName),c.userDisplayImage&&(b.user_display_image=c.userDisplayImage);if(c=a.Sg.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;null!=d?(a.Hj=d,a.oc=!0):(a.Hj="",a.oc=!1);if(d=c.defaultThumbnail)a.oi=eH(d);(d=c.videoDetails&&
c.videoDetails.embeddedPlayerOverlayVideoDetailsRenderer)&&EH(a,b,d);if(d=c.videoDetails&&c.videoDetails.musicEmbeddedPlayerOverlayVideoDetailsRenderer)a.by=d.title,a.ay=d.byline,d.musicVideoType&&(a.musicVideoType=d.musicVideoType);a.Nl=!!c.addToWatchLaterButton;DH(a,c.shareButton);c.playButton&&c.playButton.buttonRenderer&&c.playButton.buttonRenderer.navigationEndpoint&&(d=c.playButton.buttonRenderer.navigationEndpoint,d.watchEndpoint&&(d=d.watchEndpoint,d.watchEndpointSupportedOnesieConfig&&d.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig&&
(a.Fv=new nia(d.watchEndpointSupportedOnesieConfig.html5PlaybackOnesieConfig))));c.videoDurationSeconds&&(a.lengthSeconds=g.od(c.videoDurationSeconds));a.aa("web_player_include_innertube_commands")&&c.webPlayerActionsPorting&&kH(a,c.webPlayerActionsPorting);if(a.aa("embeds_wexit_list_ajax_migration")&&c.playlist&&c.playlist.playlistPanelRenderer){c=c.playlist.playlistPanelRenderer;d=[];var e=Number(c.currentIndex);if(c.contents)for(var f=0,h=c.contents.length;f<h;f++){var l=c.contents[f].playlistPanelVideoRenderer;
if(l){var m=l.shortBylineText?g.S(l.shortBylineText):"",n=l.title?g.S(l.title):"";d.push({author:m,encrypted_id:l.videoId,title:n,channel_path:f===e?b.channel_path:"",profile_picture:f===e?b.profile_picture:""})}}d={index:c.currentIndex,list:c.playlistId,playlist_length:c.totalVideos,video:d};c.titleText&&(d.title=g.S(c.titleText));c.shortBylineText&&(d.author=g.S(c.shortBylineText));a.PC=d}}a.Sg.playabilityStatus&&(a.hq=a.Sg.playabilityStatus,vI(a)&&(a.errorDetail="0",a.hq&&(c=a.hq.embeddedPlayerErrorMessageRenderer)))&&
(a.OC=c.embeddedPlayerErrorMessageRenderer);(c=a.Sg.attestation)&&iH(a,c)}};
FH=function(a,b,c,d){d={autonav:1,playnext:d};a.list&&(d.autoplay="1");if(b){if(b=b.autoplay)if(b=b.autoplay)if(b=b.sets)if(b=b[0])if(b=b.autoplayVideo)if((c=b.clickTrackingParams)&&(d.itct=c),b=b.watchEndpoint)a.autonav_watch_endpoint=b}else c&&(b=c.nextButton)&&(b=b.buttonRenderer)&&(b=b.navigationEndpoint)&&b.clickTrackingParams&&(d.itct=b.clickTrackingParams);d.itct||(d.feature="related-auto");a.endscreen_autoplay_session_data=g.Ed(d)};
EH=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);if(d=c.channelThumbnailEndpoint&&c.channelThumbnailEndpoint.channelThumbnailEndpoint)if(d=d.urlEndpoint&&d.urlEndpoint.urlEndpoint)b.channel_path=d.url;if(d=c.collapsedRenderer)if(d=d.embeddedPlayerOverlayVideoDetailsCollapsedRenderer){var e=d.title;e&&(b.title=g.S(e));if(d=d.subtitle)b.subtitle=g.S(d)}if(c=c.expandedRenderer)if(c=c.embeddedPlayerOverlayVideoDetailsExpandedRenderer){if(d=c.title)b.expanded_title=
g.S(d);if(d=c.subtitle)b.expanded_subtitle=g.S(d);if(c=c.subscribeButton)if(c=c.subscribeButtonRenderer)b.ucid=c.channelId,b.subscribed=c.subscribed,a.kp=!!c.notificationPreferenceToggleButton,c.notificationPreferenceToggleButton&&c.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=c.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.RA=b.toggledServiceEndpoint||null,a.QA=b.defaultServiceEndpoint||null):(a.RA=b.defaultServiceEndpoint||null,a.QA=b.toggledServiceEndpoint||
null))}};
g.xI=function(a){return a.isLivePlayback&&!a.allowLiveDvr};
yI=function(a){return a.isLivePlayback&&a.allowLiveDvr};
kI=function(a){return a.Xj()||a.Wj()||a.ho()||a.Qj()};
Jia=function(a){a.La=a.La.B};
g.zI=function(a){if(a.JA)return null;var b=a.iE;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.AI=function(a){return a.JA?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.BI=function(a){return a.playerResponse&&a.playerResponse.cards&&a.playerResponse.cards.cardCollectionRenderer||null};
g.CI=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.q(a.playerResponse.annotations);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.playerAnnotationsExpandedRenderer&&b.playerAnnotationsExpandedRenderer.featuredChannel)return b.playerAnnotationsExpandedRenderer;return null};
DI=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.Ra.fa};
EI=function(a){if(a.isAd()&&a.videoId!=a.Ra.gd)return a.Ra.gd};
FI=function(a){return a.ih||"detailpage"==DI(a)||a.mutedAutoplay};
GI=function(a){if(FI(a)){if("detailpage"==DI(a))return a.Nh||0<a.oj;if("adunit"!=DI(a)||!a.Wo)return!0}return!1};
HI=function(a){var b=1,c=g.P(a.Ra.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);c=a.Mr;g.Q(a.Ra.experiments,"html5_enable_per_format_loudness")&&a.La&&a.La.u&&a.La.u[0]&&a.Wz[a.La.u[0].id]&&(c=a.Wz[a.La.u[0].id]);return Math.min(1,Math.pow(10,-c/20))||b};
IH=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===a.Ra.deviceParams.c&&"MUSIC"===a.Ra.deviceParams.ctheme;!a.pn&&(ZD(a.Ra)||c)&&b.includes(a.musicVideoType)&&(a.pn=!0);if(b=g.Sq())b=/Starboard\/([0-9]+)/.exec(g.Tc),b=10>(b?parseInt(b[1],10):NaN);c=a.Ra;c=("TVHTML5_CAST"===c.deviceParams.c||"TVHTML5"===c.deviceParams.c&&(c.deviceParams.cver.startsWith("6.20130725")||c.deviceParams.cver.startsWith("6.20130726")))&&"MUSIC"===a.Ra.deviceParams.ctheme;
var d;if(d=!a.pn)c||(c=a.Ra,c="TVHTML5"===c.deviceParams.c&&c.deviceParams.cver.startsWith("7")),d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.aa("cast_prefer_audio_only_for_atv_and_uploads")||a.aa("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.pn=!0);return!a.Ra.deviceHasDisplay||a.pn&&a.Ra.C};
JI=function(a){return II(a)&&!!a.adaptiveFormats};
II=function(a){return!!(a.aa("hoffle_save")&&a.Rn&&a.Ra.C)};
jI=function(a,b){if(a.Rn!=b&&(a.Rn=b)&&a.va){var c=a.va,d;for(d in c.u){var e=c.u[d];e.C=!1;e.u=null}}};
iI=function(a){return!(!(a.aa("hoffle_load")&&a.adaptiveFormats&&ly(a.videoId))||a.Rn)};
KI=function(a){if(!a.va||!a.Oa||!a.pd)return!1;var b=a.va.u;return!!b[a.Oa.id]&&Iw(b[a.Oa.id].B.u)&&!!b[a.pd.id]&&Iw(b[a.pd.id].B.u)};
vI=function(a){return(a=a.hq)&&a.showError?a.showError:!1};
KH=function(a){return a.aa("disable_rqs")?!1:NH(a,"html5_high_res_logging")};
NH=function(a,b){return a.aa(b)?!0:(a.fflags||"").includes(b+"=true")};
Kia=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
BH=function(a,b){var c=b.video_masthead_ad_quartile_urls;c&&(a.aA=c.quartile_0_url,a.VG=c.quartile_25_url,a.WG=c.quartile_50_url,a.XG=c.quartile_75_url,a.UG=c.quartile_100_url,a.Qv=c.quartile_0_urls,a.cA=c.quartile_25_urls,a.dA=c.quartile_50_urls,a.eA=c.quartile_75_urls,a.bA=c.quartile_100_urls)};
NI=function(a){return a?PC()?!0:LI&&5>MI?!1:!0:!1};
AH=function(a){var b={};a=g.q(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b};
jH=function(a){if(a){if(Bw(a))return a;a=Cw(a);if(Bw(a,!0))return a}return""};
Lia=function(){this.contentVideoId=null;this.macros={};this.imageCompanionAdRenderer=this.iframeCompanionRenderer=null};
OI=function(a){this.u=a};
PI=function(a){var b=a.u.getVideoData(1);a.u.ya("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})};
Mia=function(a){var b=new OI(a.I);return{vK:function(){return b}}};
QI=function(a,b){this.u=a;this.Lb=b||{};this.K=String(Math.floor(1E9*Math.random()));this.P={};this.S=0};
Nia=function(a){switch(a){case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression";case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";
case "viewable_impression":return"adviewableimpression";default:return null}};
RI=function(){g.O.call(this);var a=this;this.u={};g.Yf(this,function(){return Object.keys(a.u).forEach(function(b){return delete a.u[b]})})};
TI=function(){if(null===SI){SI=new RI;tl.getInstance().u="b";var a=tl.getInstance(),b="h"==Xk(a)||"b"==Xk(a),c=!(Ah.getInstance(),!1);b&&c&&(a.F=!0,a.J=new jca)}return SI};
Oia=function(a,b,c){a.u[b]=c};
Pia=function(a){this.C=a;this.B={};this.u=Tf()?500:g.LD(a.T())?1E3:2500};
Ria=function(a,b){if(!b.length)return null;var c=b.filter(function(d){if(!d.mimeType)return!1;d.mimeType in a.B||(a.B[d.mimeType]=a.C.canPlayType(d.mimeType));return a.B[d.mimeType]?!!d.mimeType&&"application/x-mpegurl"==d.mimeType.toLowerCase()||!!d.mimeType&&"application/dash+xml"==d.mimeType.toLowerCase()||"PROGRESSIVE"==d.delivery:!1});
return Qia(a,c)};
Qia=function(a,b){for(var c=null,d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.minBitrate,h=e.maxBitrate;f>a.u||h<a.u||c&&!(f<c.minBitrate)||(c=e)}if(!c)for(c=null,d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.maxBitrate,h=e.minBitrate,f>a.u||(!c||f>c.maxBitrate?c=e:c&&f==c.maxBitrate&&h<c.minBitrate&&(c=e));if(!c)for(c=null,d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,f=e.minBitrate,h=e.maxBitrate,f<a.u||(!c||f<c.minBitrate?c=e:c&&f==c.minBitrate&&h>c.maxBitrate&&(c=e));return c};
UI=function(a,b){this.u=a;this.F=b;this.B=b.length;this.adBreakLengthSeconds=b.reduce(function(e,f){return e+f},0);
for(var c=0,d=a+1;d<b.length;d++)c+=b[d];this.adBreakRemainingLengthSeconds=c};
VI=function(a){return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",a.activeViewMeasurablePings||
[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",a.firstQuartilePings||[]],["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]]])};
Sia=function(a){return(a=a.pings)?Object.fromEntries(VI(a)):{}};
WI=function(a,b,c,d,e){QI.call(this,a,Sia(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Xb=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.D=new UI(0,[]);this.J=this.fa=null;this.Ma=b;this.ga=[];this.F={};this.Ba=null;this.B=0;this.X=this.da=this.C=null;this.la=d;this.na=e;this.Y=null;b=this.u.skipOffsetMilliseconds||0;0<b&&(this.Ba=b);this.F=Zp(this.u.playerVars||"");if(b=this.u.external)this.ga=b.mediaFiles||[],b=b.durationMilliseconds,"number"===typeof b&&(this.B=b/1E3,this.F.length_seconds=
this.B.toString()),(b=Ria(this.Ma,this.ga))?(this.da=b.uri,b=b.mimeType,this.F.url_encoded_third_party_media="url="+encodeURIComponent(this.da)+"&type="+encodeURIComponent(b)):this.X=Error("Nonplayable third party ad media file.");else if(this.la&&g.Q(this.la,"use_ivar_to_extract_ad_video_id")?this.C=this.u.externalVideoId||null:this.C=this.F.video_id,this.fa=this.F.ucid||null,this.B=nD(this.B,this.F.length_seconds),this.na&&this.C&&(this.Y=this.na(this.C)),this.F.cta_conversion_urls)try{this.F.cta_conversion_urls=
JSON.parse(this.F.cta_conversion_urls)}catch(f){g.M(f)}this.J=this.u.clickthroughEndpoint||null;this.D=new UI(0,[this.B])};
XI=function(a){var b=a.F||{};1<a.D.B&&(b.slot_pos=a.D.u);b.autoplay="1";return b};
YI=function(a){return 0<a.B&&7.05>=a.B};
ZI=function(){QI.apply(this,arguments)};
$I=function(){this.B=[];this.D=null;this.C=0};
aJ=function(a,b){b&&a.B.push(b)};
bJ=function(a){if(!a)return[];var b=[];a=g.q(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.q(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
cJ=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};
dJ=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
eJ=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
Tia=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=bJ(a.impressionCommands)||[];b.error=bJ(a.errorCommands)||[];b.mute=bJ(a.muteCommands)||[];b.unmute=bJ(a.unmuteCommands)||[];b.pause=bJ(a.pauseCommands)||[];b.rewind=bJ(a.rewindCommands)||[];b.resume=bJ(a.resumeCommands)||[];b.skip=bJ(a.skipCommands)||[];b.close=bJ(a.closeCommands)||[];b.clickthrough=bJ(a.clickthroughCommands)||[];b.fullscreen=bJ(a.fullscreenCommands)||[];b.active_view_viewable=bJ(a.activeViewViewableCommands)||
[];b.active_view_measurable=bJ(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=bJ(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];b.end_fullscreen=bJ(a.endFullscreenCommands)||[];b.channel_clickthrough=bJ(a.channelClickthroughCommands)||[];b.abandon=bJ(a.abandonCommands)||[];b.progress=cJ(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=cJ(a.progressCommands.filter(function(c){return eJ(c)&&ce(dJ(c),0)}));
b.first_quartile=cJ(a.progressCommands.filter(function(c){return eJ(c)&&ce(dJ(c),.25)}));
b.midpoint=cJ(a.progressCommands.filter(function(c){return eJ(c)&&ce(dJ(c),.5)}));
b.third_quartile=cJ(a.progressCommands.filter(function(c){return eJ(c)&&ce(dJ(c),.75)}));
b.complete=cJ(a.progressCommands.filter(function(c){return eJ(c)&&ce(dJ(c),1)}));
return b};
fJ=function(a){QI.call(this,a,Tia(a));this.B=a.questions?a.questions.reduce(function(b,c){var d=c.instreamSurveyAdSingleSelectQuestionRenderer||c.instreamSurveyAdMultiSelectQuestionRenderer;return d?b+(d.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0):0};
gJ=function(a,b,c,d){this.id=b;this.Y=a.placementStartPings||[];this.X=a.placementEndPings||[];this.D=d.ue;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.C=(this.J=e.getAdBreakUrl||"")?0:2;d.u=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=YF(b,d);if(null==f)d=new VF(b,new In(-1,-1),!1,"adcuerange:invalid",
2),d.deactivate(),d=[null,d];else{e=":"+(po.getInstance().u++).toString(36);var h=d.daiEnabled||d.ue;f=new VF(b,f,d.visible&&!h,"adcuerange:"+e,2);h=null;if(d.ue||0<d.u)if(d=YF(b,d,!0))h=new VF(b,d,!1,"prefetch:"+e,3),f.C=h,h.C=f;d=[h,f]}this.da=d[0];this.u=d[1];this.B=c;this.K=!1;this.F={};this.S={};this.P=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
hJ=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.u.u||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.u.u};
iJ=function(a){return"AD_PLACEMENT_KIND_START"==a.u.u};
kJ=function(a){var b={};Uia(a,b);Via(b);b.LACT=jJ(function(){return Cp().toString()});
b.VIS=jJ(function(){return a.getVisibilityState().toString()});
b.SDKV="h.3.0";b.VOL=jJ(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
b.VED="";return b};
Wia=function(a){var b={};if(!a.kind)return g.Qs(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.Qs(Error("malformed AdPlacementConfig")),b;b.MIDROLL_POS=jJ(Za(Math.round(g.od(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else b.MIDROLL_POS=jJ(Za("0"));return b};
jJ=function(a){return{toString:function(){return a()}}};
Xia=function(a,b,c){function d(l,m){var n=b[m];n&&(f[l]=n)}
function e(l,m){var n=b[m];n&&(f[l]=h(n))}
if(!b||g.Rb(b))return a;var f=Object.assign({},a),h=c?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
Uia=function(a,b){b.CPN=jJ(function(){var c;(c=a.getVideoData(1))?c=c.clientPlaybackNonce:(g.gr(Error("Video data is null.")),c=null);return c});
b.AD_MT=jJ(function(){return lJ(a,2)});
b.MT=jJ(function(){return lJ(a,1)});
b.P_H=jJ(function(){return g.mJ(a).Cf().height.toString()});
b.P_W=jJ(function(){return g.mJ(a).Cf().width.toString()});
b.PV_H=jJ(function(){return g.mJ(a).getVideoContentRect().height.toString()});
b.PV_W=jJ(function(){return g.mJ(a).getVideoContentRect().width.toString()})};
lJ=function(a,b){var c=1E3*a.getCurrentTime(b,!1);return Math.round(Math.max(0,c)).toString()};
Via=function(a){a.CONN=jJ(Za("0"));a.WT=jJ(function(){return Date.now().toString()})};
nJ=function(a){var b=Object.assign({},{});b.MIDROLL_POS=hJ(a)?jJ(Za(Math.round(a.u.start/1E3).toString())):jJ(Za("0"));return b};
Yia=function(a){var b={};b.SLOT_POS=jJ(Za(a.D.u.toString()));return b};
oJ=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};
pJ=function(a){for(var b={},c=g.q(Zia),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
qJ=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c={};Object.assign.apply(Object,[c].concat(g.ma(b)));return c};
rJ=function(){};
sJ=function(a){this.u=a};
tJ=function(a){this.u=a;fq()};
uJ=function(a){g.B.call(this);var b=this;this.B=a;this.u=null;g.Yf(this,function(){return b.u=null})};
wJ=function(a){return vJ(a)&&1==a.getPlayerState(2)};
vJ=function(a){a=a.fc();return void 0!==a&&2==a.getPlayerType()};
xJ=function(a){a=a.T();return JD(a)&&!g.YD(a)&&"desktop-polymer"==a.playerStyle};
zJ=function(a,b){var c=a.T();BD(c)||"3"!=c.controlsType||yJ(g.mJ(a),b)};
AJ=function(a){switch(a){case "abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "complete":return"complete";case "end_fullscreen":return"exitfullscreen";case "first_quartile":return"firstquartile";case "fullscreen":return"fullscreen";case "impression":return"impression";case "midpoint":return"midpoint";
case "mute":return"mute";case "pause":return"pause";case "progress":return"progress";case "resume":return"resume";case "skip":return"skip";case "start":return"start";case "third_quartile":return"thirdquartile";case "unmute":return"unmute"}return null};
$ia=function(a){this.u=a;var b=tl.getInstance(),c=a.Zc();b.D!==c&&((b.D=c)||Tca(b));g.Q(a.T().experiments,"active_view_stop_starting_measurement_on_loaded")&&Zg(Ah.getInstance().wb,"ssmol",1)};
BJ=function(a,b,c,d,e,f,h){f=void 0===f?new tJ(new sJ(d.getVideoData(1))):f;h=void 0===h?!1:h;g.B.call(this);this.B=a;this.P=b;this.C=c;this.u=d;this.K=e;this.X=f;this.J=Array.from(this.B.Lb.progress||[]);this.J.sort(function(l,m){return l.offsetMilliseconds-m.offsetMilliseconds});
this.D={sB:.25,GB:.5,IB:.75};this.F=null;this.S=h};
HJ=function(a,b,c){!CJ(a)&&0<c&&(DJ(a,b),EJ(a)?FJ(a,b,c):GJ(a,b,c))};
JJ=function(a,b){CJ(a)||(EJ(a)?(DJ(a,0,!0),FJ(a,b,b)):(DJ(a,0,!0),GJ(a,0,0,!0)),IJ(a,"complete"))};
DJ=function(a,b,c){for(c=void 0===c?!1:c;a.B.S<a.J.length;){var d=KJ(a,"progress"),e=a.J[a.B.S];if(e.offsetMilliseconds<=1E3*b||c){var f=e.baseUrl;f&&LJ(a,f,d,e.headers||[]);a.B.S++}else break}};
GJ=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.D.sB||d)&&IJ(a,"first_quartile");(b>=c*a.D.GB||d)&&IJ(a,"midpoint");(b>=c*a.D.IB||d)&&IJ(a,"third_quartile")};
MJ=function(a,b,c,d){if(null==a.F){if(c<d||1<c-d)return}else if(a.F>d||d>c)return;IJ(a,b)};
FJ=function(a,b,c){if(0<c&&0<b){var d=g.NJ(a.u,a.u.getPresentingPlayerType());g.T(d,16)||g.T(d,32)||(MJ(a,"first_quartile",b,c*a.D.sB),MJ(a,"midpoint",b,c*a.D.GB),MJ(a,"third_quartile",b,c*a.D.IB))}a.F=b};
OJ=function(a,b){for(var c=KJ(a,b),d=g.q(a.B.Lb[b]||[]),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.baseUrl;f&&LJ(a,f,c,e.headers||[])}a.B.P[b]=!0};
IJ=function(a,b){a.B.P.hasOwnProperty(b)||OJ(a,b)};
PJ=function(a,b){return a.B.P.hasOwnProperty(b)};
LJ=function(a,b,c,d){for(var e=a.X,f=e.send,h={},l=kJ(a.u),m=g.q(Object.keys(l)),n=m.next();!n.done;n=m.next())n=n.value,h[n]=l[n].toString();a=Object.assign(h,a.C);f.call(e,b,a,c,d)};
KJ=function(a,b){var c=a.P;var d=a.B;if(d.Lq()){var e=AJ(b);if(null==e)d={};else{var f;(f=d.ra()())||(f=(f=c.u)&&f.fc?(f=f.fc())&&2==f.getPlayerType()?QJ(f):null:null);f?(c={opt_adElement:f,opt_fullscreen:c.u.isFullscreen()},d=yl(e,d.K,c)):d={}}}else d={};return d?Object.assign({},d):{}};
RJ=function(a,b){switch(b){case "action-companion":case "shopping-companion":case "image-companion":case "ads-engagement-panel":if(2==a.u.getPresentingPlayerType())a.u.sendVideoStatsEngageEvent(1,void 0,2);else if(a.K){var c=a.K.u;c&&c()}else g.M(Error("trackCompanionEngagement is called butcompanionEngagementHandler is null"),"ERROR")}};
EJ=function(a){return!g.Q(a.u.T().experiments,"html5_bulleit_dai_logging_policy_upg_livestream_killswitch")&&a.S};
CJ=function(a){return EJ(a)&&!PJ(a,"impression")};
SJ=function(a){return EJ(a)&&PJ(a,"seek")};
UJ=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.u=e;this.B=f;this.id=TJ(a)};
TJ=function(a){return a+(":"+(po.getInstance().u++).toString(36))};
VJ=function(a){this.W=a};
WJ=function(a,b){if(0===b||1===b&&(a.W.u||g.YD(a.W)||g.LD(a.W)||ND(a.W)||!g.Zr))return!0;var c=g.pe("video-ads");return null!=c&&"none"!==tg(c,"display")};
g.XJ=function(a,b){this.state=a;this.wl=b};
YJ=function(a,b){return g.T(a.state,b)&&!g.T(a.wl,b)?1:!g.T(a.state,b)&&g.T(a.wl,b)?-1:0};
g.ZJ=function(a,b){return 0<YJ(a,b)};
$J=function(a,b,c,d,e,f){f=void 0===f?0:f;g.O.call(this);this.I=a;this.Ia=d;this.B=e;this.B.u[b.K]=this;this.B.subscribe("adactiveviewmeasurable",this.eH,this);this.B.subscribe("adfullyviewableaudiblehalfdurationimpression",this.fH,this);this.B.subscribe("adoverlaymeasurableimpression",this.gH,this);this.B.subscribe("adoverlayunviewableimpression",this.hH,this);this.B.subscribe("adoverlayviewableendofsessionimpression",this.iH,this);this.B.subscribe("adoverlayviewableimmediateimpression",this.jH,
this);this.B.subscribe("adviewableimpression",this.kH,this);this.ad=b;this.Y=[];this.macros=c;this.J=!1;this.fa=!WJ(new VJ(this.I.T()),f)};
aK=function(a){a.fa?a.Td("ui_unstable"):a.le()};
cK=function(a,b){sb(a.Y,b);bK(a,b,1)};
dK=function(a){a=a.Ia;a.C=qJ(a.C,oJ(0,"No playable media files can be selected"));IJ(a,"error")};
bK=function(a,b,c){0!=b.length&&(b=g.Mc(b,function(d){return new ZF(d,c,d.id)}),a.V("onAdUxUpdate",b))};
eK=function(a,b,c,d,e,f,h,l,m){$J.call(this,b,c,f,h,l);this.u=this.D=null;this.P=!1;this.ga=d;this.X=e;this.la=m;this.Uc=a};
fK=function(a){if(!a.la)return!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===a.ga)return a.Ll(),!0;var b=a.I.getVideoData(2);a.P=b?a.X===b.videoId:!1;a.D=function(c,d){a.P=d?a.X===d.videoId:!1};
a.I.addEventListener("videodatachange",a.D);a.u=function(){if(a.P){a.D&&(a.I.removeEventListener("videodatachange",a.D),a.D=null);a.u&&(a.I.removeEventListener("onAdStart",a.u),a.u=null);var c=a.Uc;g.Zf(c.fa);c.fa=null;a.Ll()}};
a.I.addEventListener("onAdStart",a.u);return!0};
gK=function(){QI.apply(this,arguments)};
hK=function(a,b,c,d,e){UJ.call(this,"action-companion",a,b,c,d,e)};
iK=function(a,b,c,d,e,f,h){eK.call(this,a,b,c,void 0===h?"AD_PLACEMENT_KIND_UNKNOWN":h,c.u.adVideoId,d,e,f,g.Q(b.T().experiments,"only_show_companion_with_video_ad_or_command_for_action"));this.C=null;this.F=new hK(this.ad.u,this.macros)};
jK=function(a,b){if(!b)return!1;var c=a.F.renderer;return c&&c.adVideoId==b.videoId};
kK=function(a){var b={};b.abandon=a.abandonCommands&&bJ(a.abandonCommands.commands)||[];QI.call(this,a,b)};
lK=function(a,b,c,d){UJ.call(this,"ad-action-interstitial",a,b,c,d);this.u=d};
mK=function(a,b,c,d,e,f){$J.call(this,a,b,c,d,e,1);this.C=b;this.u=b.u.durationMilliseconds||0;this.gb=null;this.D=f};
nK=function(a,b){UJ.call(this,"ad-choice-interstitial",a,b)};
oK=function(a,b,c,d,e,f){$J.call(this,a,b,c,d,e,1);this.u=b;this.C=f};
pK=function(a){QI.call(this,a);this.B=Zp(this.u.playerVars||"")};
qK=function(){QI.apply(this,arguments)};
rK=function(){QI.apply(this,arguments)};
sK=function(){QI.apply(this,arguments)};
tK=function(){QI.apply(this,arguments)};
uK=function(){QI.apply(this,arguments)};
vK=function(){QI.apply(this,arguments)};
wK=function(a,b,c,d,e,f,h,l,m,n,p,r){this.da=a;this.J=b;this.P=c;this.S=d;this.B=e;this.K=f;this.u=h;this.Y=l;this.X=m;this.C=n;this.F=p;this.D=r};
xK=function(a,b,c,d,e){$J.call(this,a,b,c,d,e);var f=this;this.D=b;this.u=new g.F(function(){f.Td("load_timeout")},1E4);
g.C(this,this.u);this.C=new Bt(this);g.C(this,this.C)};
yK=function(a){UJ.call(this,"ad-message",a)};
zK=function(a,b,c,d,e,f,h){$J.call(this,a,b,c,d,e);var l=this;this.C=b;this.K=b.u.durationMs||0;this.F=h;this.P=!1;this.D=this.u=0;this.S=function(){var m=l.I.getProgressState().current;m<l.u?l.ie():m>l.D&&l.Se()}};
BK=function(a){if(a.F&&a.P){a.P=!1;a=g.q(a.F.listeners);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(c.u){b=c.u;c.u=void 0;c.B=void 0;c=c.C();AK(c.Eb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);c=g.q(c.B);for(var d=c.next();!d.done;d=c.next())d.value.Xe(b)}else MF("Received AdNotify terminated event when no slot is active")}}};
CK=function(a,b,c,d){UJ.call(this,"invideo-overlay",a,b,c,d);this.u=d};
DK=function(a,b,c,d,e){$J.call(this,a,b,c,d,e);this.u=b};
EK=function(a,b){UJ.call(this,"persisting-overlay",a,b)};
FK=function(a,b,c,d,e){$J.call(this,a,b,c,d,e);this.u=b};
GK=function(){UJ.call(this,"ad-attribution-bar");this.adPodPositionInfoString=null;this.adPodPosition=0;this.adPodLength=1;this.adBreakLengthSeconds=0;this.adBadgeText=null;this.adBreakRemainingLengthSeconds=0;this.adBreakEndSeconds=null;this.adVideoId=""};
g.HK=function(a,b){for(var c={},d=g.q(Object.keys(b)),e=d.next();!e.done;c={Tw:c.Tw},e=d.next())e=e.value,c.Tw=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.Tw}}(c));
return a};
IK=function(a){return a?g.S(a):null};
JK=function(a){if(!a)return[];var b=a.loggingUrls;if(!b)return[];a=[];b=g.q(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&a.push(c.baseUrl);return 0===a.length?[]:a};
aja=function(a){return a.cancelRenderer&&a.cancelRenderer.buttonRenderer?(a=a.cancelRenderer.buttonRenderer.serviceEndpoint)&&a.muteAdEndpoint?a:null:null};
KK=function(a){var b={};b.baseUrl=a;return{loggingUrls:[b],pingingEndpoint:{hack:!0}}};
dja=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&&(bja(a,e.adInfoDialogRenderer,c),a.whyThisAdInfo.menuTitle=IK(b.hoverText)||"",e.adInfoDialogRenderer.muteAdRenderer&&(b=e.adInfoDialogRenderer.muteAdRenderer.buttonRenderer)&&
cja(a,b,c,d))}};
bja=function(a,b,c){var d=IK(b.confirmLabel)||"",e=IK(b.title)||"",f=[];if(b.adReasons)for(var h=g.q(b.adReasons),l=h.next();!l.done;l=h.next())f.push(IK(l.value)||"");d={closeButton:d,menuTitle:"",targetingReasonHeader:e,targetingReasons:f,dialogMessage:IK(b.dialogMessage)||"",adSettingsLink:null,cancelButton:null,continueButton:null,controlText:null};a.whyThisAdInfo=d;a.whyThisAdClicked=function(){if(b.impressionEndpoints)for(var m=g.q(b.impressionEndpoints),n=m.next();!n.done;n=m.next())c(n.value)};
a.whyThisAdClosed=function(){b.confirmServiceEndpoint&&c(b.confirmServiceEndpoint)}};
cja=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:IK(b.text)||"",surveyOptions:[],confirmMuteWithoutFeedbackLabel:""};a.muteAdInfo=f;b=JK(b.navigationEndpoint);var h=KK(b[1]),l=[KK(b[0])];(b=aja(e))&&l.push(b);var m=!1;a.muteAdClicked=function(){m=!0;c(h)};
a.muteAd=function(){m||c(h);m=!1;for(var n=g.q(l),p=n.next();!p.done;p=n.next())c(p.value)};
eja(a,e,d)}}};
eja=function(a,b,c){a.muteAdInfo.goneText=IK(b.title)||"";a.muteAdInfo.questionText=IK(b.reasonsTitle)||"";b.undoRenderer&&(a.muteAdInfo.undoText=IK(b.undoRenderer.buttonRenderer.text)||"");a.sendAdsPing=function(f){c(f)};
a=a.muteAdInfo.surveyOptions;b=g.q(b.reasons||[]);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=IK(e.reason)||"";e=JK(e.endpoint)[0];a.push({label:d,url:e})}};
LK=function(a,b){var c=new GK;c.adBadgeText="\u5e83\u544a";1<a.B&&(c.adPodPositionInfoString=g.HK("$AD_INDEX/$ADS_COUNT",{AD_INDEX:String(a.u+1),ADS_COUNT:String(a.B)}));c.adBreakLengthSeconds=a.adBreakLengthSeconds;c.adBreakRemainingLengthSeconds=a.adBreakRemainingLengthSeconds;c.adPodPosition=a.u+1;c.adPodLength=a.B;null!=a.C&&(c.adBreakEndSeconds=a.C/1E3);b&&(c.adVideoId=b);return c};
MK=function(a,b,c,d,e,f){this.B=a;this.C=b;this.u=kJ(d);if(f)for(a=g.q(Object.keys(f)),b=a.next();!b.done;b=a.next())b=b.value,this.u[b]=f[b];this.D=c;this.J=d;this.F=e};
OK=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?NK(a,e):a.D.Wk()};
b.skipShown=function(){NK(a,d.adRendererCommands&&d.adRendererCommands.impressionCommand)}}};
PK=function(a,b,c){dja(b,c,function(d){NK(a,d)},function(d){a.sendAdsPing(d)})};
NK=function(a,b){if(b){var c=QK(a);Array.isArray(b)?b.forEach(function(d){return a.B.executeCommand(d,c)}):a.B.executeCommand(b,c)}};
QK=function(a){if(g.Q(a.J.T().experiments,"dynamic_command_macro_resolution_on_tvhtml5_killswitch"))return a.C;for(var b={},c=g.q(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.u[d].toString();return Object.assign(b,a.C)};
RK=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}};
fja=function(a,b,c,d,e,f,h){this.u=c;this.B=new MK(a,b,d,e,f);this.C=h};
gja=function(a,b,c){var d=RK();d.instreamAdPlayerOverlayRenderer=b;c&&(d.adNextParams=c);d.executeCommand=function(e){NK(a.B,e)};
if(b.skipOrPreviewRenderer)switch(Object.keys(b.skipOrPreviewRenderer)[0]){case "skipAdRenderer":OK(a.B,d,b.skipOrPreviewRenderer.skipAdRenderer)}if(b.adInfoRenderer)switch(Object.keys(b.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":PK(a.B,d,b.adInfoRenderer.adHoverTextButtonRenderer)}d.isBumper=YI(a.u)&&!d.isSkippable;d.isPostroll=a.u.isPostroll;a.u.isSkippable();b=a.u.C;c=a.u.getVideoUrl();b?d.videoId=b:c&&(d.videoUrl=c);if(b=(b=a.u.J)&&b.urlEndpoint)d.clickThroughUrl=b.url||"";d.sendAdsPing=
function(e){a.B.sendAdsPing(e)};
d.daiEnabled=a.C;d.remoteSlotsData=a.u.Y;return d};
SK=function(a,b,c,d,e){UJ.call(this,"shopping-companion",a,b,c,d,e)};
TK=function(a,b,c,d,e,f,h){eK.call(this,a,b,c,void 0===h?"AD_PLACEMENT_KIND_UNKNOWN":h,c.u.adVideoId,d,e,f,g.Q(b.T().experiments,"only_show_companion_with_video_ad_or_command_for_shopping"));this.C=new SK(this.ad.u,this.macros)};
qla=function(a){var b={};if(!a.questions||0===a.questions.length)return b;a=(a.questions[0].instreamSurveyAdSingleSelectQuestionRenderer||a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer).surveyAdQuestionCommon;return(a=a.instreamAdPlayerOverlay&&a.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)?a:b};
sla=function(a,b,c,d,e,f){this.u=new MK(a,b,c,d,e,rla(f))};
tla=function(a,b){var c=RK();c.instreamSurveyAdRenderer=b;c.executeCommand=function(e){NK(a.u,e)};
var d=qla(b);if(d.skipOrPreviewRenderer)switch(Object.keys(d.skipOrPreviewRenderer)[0]){case "skipAdRenderer":OK(a.u,c,d.skipOrPreviewRenderer.skipAdRenderer)}if(d.adInfoRenderer)switch(Object.keys(d.adInfoRenderer)[0]){case "adHoverTextButtonRenderer":PK(a.u,c,d.adInfoRenderer.adHoverTextButtonRenderer)}c.sendAdsPing=function(e){a.u.sendAdsPing(e)};
return c};
rla=function(a){var b={};b.SURVEY_LOCAL_TIME_EPOCH_S=jJ(function(){var c=new Date;return""+(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset())});
b.SURVEY_ELAPSED_MS=jJ(a);return b};
VK=function(a,b,c){g.O.call(this,!0);var d=this;this.J=b;this.F=c;this.B=a;this.gb=new g.Jm(200);this.gb.xa("tick",function(){var e=Date.now(),f=e-d.D;d.D=e;d.u+=f;d.u>=d.B&&(d.u=d.B,d.gb.stop());e=d.u/1E3;d.F&&d.F.Ob(e);UK(d,{current:e,duration:d.B/1E3})});
g.C(this,this.gb);this.u=0;this.C=null;g.Yf(this,function(){d.C=null});
this.D=0};
UK=function(a,b){a.J.ya("onAdPlaybackProgress",b);a.C=b};
WK=function(a){UJ.call(this,"survey",a)};
XK=function(a,b,c,d,e,f,h){$J.call(this,a,b,c,d,e,1);var l=this;this.D=b;this.C=new Bt;g.C(this,this.C);this.C.N(this.I,"resize",function(){450>g.mJ(l.I).Cf().width&&(g.Dt(l.C),l.ie())});
this.K=0;this.F=h(this,function(){return""+(Date.now()-l.K)});
if(this.u=g.LD(a.T())?new VK(1E3*b.B,a,f):null)g.C(this,this.u),this.C.N(a,"onAdPlaybackProgress",function(m){m.current===m.duration&&(m=l.D.u,(m=m.questions&&m.questions[0])?(m=(m=m.instreamSurveyAdMultiSelectQuestionRenderer||m.instreamSurveyAdSingleSelectQuestionRenderer)&&m.surveyAdQuestionCommon,NK(l.F.u,m&&m.timeoutCommands)):g.Qs(Error("Expected a survey question in InstreamSurveyAdRenderer.")))})};
YK=function(a,b){UJ.call(this,"survey-interstitial",a,b)};
ZK=function(a,b,c,d,e){$J.call(this,a,b,c,d,e,1);this.u=b};
$K=function(a){UJ.call(this,"ad-text-interstitial",a)};
aL=function(a,b,c,d,e,f){$J.call(this,a,b,c,d,e);this.C=b;this.u=b.u.durationMilliseconds||0;this.gb=null;this.D=f};
bL=function(a,b){var c=void 0===c?!0:c;var d=g.L("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.vd(window.location.href);e&&d.push(e);e=g.vd(a);if(g.jb(d,e)||!e&&kc(a,"/"))if(g.wo("autoescape_tempdata_url")&&(d=document.createElement("a"),g.gd(d,a),a=d.href),a&&(d=xd(a),e=d.indexOf("#"),d=0>e?d:d.substr(0,e)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Zt()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&(c=b,d="ST-"+nd(d).toString(36),c=c?g.Ed(c):"",g.yq(d,c,f||5))}else f=b,c="ST-"+nd(d).toString(36),
f=f?g.Ed(f):"",g.yq(c,f,5)};
g.cL=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;d=d.location;a=g.Id(a,b)+c;a=a instanceof g.Cc?a:g.Ic(a);d.href=g.Dc(a)};
g.dL=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.L("EVENT_ID");d&&(b.ei||(b.ei=d));b&&bL(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.cL(a))};
g.eL=function(a,b,c){c&&bL(a,c);c=g.Hc(a);c=g.Dc(c);a!=c&&g.Go(Error("Unsafe window.open URL: "+a));a=c;window.open(a,b||nd(a).toString(36))};
fL=function(a){a=void 0===a?null:a;UJ.call(this,"ad-channel-thumbnail");this.channelIconThumbnailUrl=a};
gL=function(a){a=void 0===a?null:a;UJ.call(this,"ad-title");this.videoTitle=a};
hL=function(a){a=void 0===a?null:a;UJ.call(this,"advertiser-name");this.channelName=a};
iL=function(a,b,c,d){UJ.call(this,"player-overlay",a,{},b,d);this.C=c;this.u=d};
jL=function(a){UJ.call(this,"skip-button",a)};
kL=function(a){UJ.call(this,"visit-advertiser",a);var b={};var c=a.text;a=a.navigationEndpoint;null!=c&&null!=c.runs&&null!=a?(b.runs=[g.Ub(c.runs[0])],b.runs[0].navigationEndpoint=a):(b={text:"\u5e83\u544a\u4e3b\u306e\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9"},a&&(b.navigationEndpoint=a),b={runs:[b]});this.visitAdvertiserLabel=b};
lL=function(a,b,c,d,e,f,h,l,m,n,p){$J.call(this,a,b,c,d,e,1);var r=this;this.da=!0;this.F=n;this.u=b;this.C=h;this.ga=new Bt(this);g.C(this,this.ga);this.D=new g.F(function(){r.Td("load_timeout")},1E4);
g.C(this,this.D);this.Ba=!g.Q(a.T().experiments,"bulleit_unstarted_event_killswitch");this.S=!1;this.na=m(this);this.la=f;this.K=l;this.P=p;this.X=!1};
ula=function(a){if(a.K&&g.Q(a.I.T().experiments,"enable_topsoil_wta_for_halftime")){var b=a.u.D,c=b.D,d=b.C,e=b.u;b=b.F;if(void 0===c)g.Qs(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.Qs(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.u.B)}};
oL=function(a,b){if(null!==a.F&&a.X){a.X=!1;for(var c=mL(a),d=g.q(a.F.listeners),e=d.next();!e.done;e=d.next())if(e=e.value,e.u&&e.u.layoutId===c){var f="adabandoned"===b?"abandoned":"normal";nL(e.C(),e.B,e.u,f);e.B=null;e.u=null}else MF("Received AD_ENDED for unknown layout")}};
pL=function(a){return(a=a.I.getVideoData(2))?a.clientPlaybackNonce:""};
mL=function(a){if(a=a.u.u.elementId)return a;g.Qs(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
sL=function(a){var b=a.u.u,c=b.playerOverlay&&b.playerOverlay.instreamAdPlayerOverlayRenderer;c||(c={});var d=a.I.T();if(g.YD(d)&&!c.skipOrPreviewRenderer){var e=a.I.getDuration(2);isFinite(e)&&33<e&&!a.u.isSkippable()&&!g.YD(d)&&g.Qs(new g.nr("Instream ad is skippable by length, but was was marked nonskippable.",{adLengthSecs:e,IVAR:b}));d={};a.u.isSkippable()&&!YI(a.u)?d.skipAdRenderer=qL(a):d.adPreviewRenderer=rL(a,!1,YI(a.u));c.skipOrPreviewRenderer=d}c.skipOrPreviewRenderer&&g.Rb(c.skipOrPreviewRenderer)&&
g.Qs(new g.nr("IAPOR.skipOrPreview was filled, but empty.",b));return c};
qL=function(a){var b={preskipRenderer:{}};b.preskipRenderer.adPreviewRenderer=rL(a,!0,!1);b.skippableRenderer={};a=b.skippableRenderer;var c={message:{}};c.message.text="\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7";a.skipButtonRenderer=c;return b};
rL=function(a,b,c){var d=a.I.getVideoData(1),e={};if(b||c){var f={},h={};c=c?g.HK("\u52d5\u753b\u958b\u59cb\u307e\u3067\u3042\u3068 $TIME_REMAINING \u79d2",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"}):g.HK("$TIME_REMAINING \u79d2\u5f8c\u306b\u30b9\u30ad\u30c3\u30d7\u3057\u3066\u52d5\u753b\u3092\u518d\u751f\u3067\u304d\u307e\u3059",{NEW_LINE:"\n",TIME_REMAINING:"{TIME_REMAINING}"});h.text=c;h.isTemplated=!0;f.templatedAdText=h;e.templatedCountdown=f}else f={},h=g.HK("\u52d5\u753b\u306f\u5e83\u544a\u306e\u5f8c\u306b\u518d\u751f\u3055\u308c\u307e\u3059",
{NEW_LINE:"\n"}),f.text=h,f.isTemplated=!1,e.staticPreview=f;b&&(e.durationMilliseconds=5E3);e.thumbnail={};b=e.thumbnail;f={};f.url=TD(a.I.T(),d.videoId,"mqdefault.jpg");f.width=320;f.height=180;b.thumbnail={thumbnails:[f]};return e};
vla=function(a){function b(w,x){var y=a.GR,E=Object.assign({},{});E.FINAL=jJ(Za("1"));E.SLOT_POS=jJ(Za("0"));return qJ(y,pJ(E),x)}
function c(w){return null==w?{create:function(){return null}}:{create:function(x,y,E){var D=b(x,y);
y=a.ws(x,D);x=w(x,D,y,E);g.C(x,y);return x}}}
var d=c(function(w,x,y){return new DK(a.I,w,x,y,a.Tf)}),e=c(function(w,x,y,E){return new TK(a.Fa,a.I,w,x,y,a.Tf,E)}),f=c(function(w,x,y){return new mK(a.I,w,x,y,a.Tf,a.Fa)}),h=c(function(w,x,y){return new FK(a.I,w,x,y,a.Tf)}),l=c(function(w,x,y,E){return new iK(a.Fa,a.I,w,x,y,a.Tf,E)}),m=c(function(w,x,y){return new aL(a.I,w,x,y,a.Tf,a.Fa)}),n=c(function(w,x,y){return new ZK(a.I,w,x,y,a.Tf)}),p=c(function(w,x,y){return new oK(a.I,w,x,y,a.Tf,a.Fa)}),r=c(function(w,x,y){return new zK(a.I,w,x,y,a.Tf,
a.Fa,a.bk)}),t=c(function(w,x,y){return new xK(a.I,w,x,y,a.Tf,a.Fa)});
this.u=new wK({create:function(w,x){var y=qJ(b(w,x),pJ(Yia(w))),E=a.ws(w,y),D=new lL(a.I,w,y,E,a.Tf,a.TJ,a.Fa,a.daiEnabled,function(G){return new fja(a.Fa,y,w,G,a.I,a.gi,a.daiEnabled)},a.ck,a.tg);
g.C(D,E);return D}},d,e,{create:function(w,x){var y=a.ws(w,x),E=new XK(a.I,w,x,y,a.Tf,a.Fa,function(D,G){return new sla(a.Fa,x,D,a.I,a.gi,G)});
g.C(E,y);return E}},f,h,l,m,n,p,r,t)};
tL=function(a,b){this.B=a;this.u={};this.C=void 0===b?!1:b};
wla=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}var d=Math.max(a.startSecs,0);return{YJ:new In(d,c),qL:new Gu(d,c-d,a.context,a.identifier,a.event,a.u)}};
uL=function(){this.u=[]};
vL=function(a,b,c){var d=g.xb(a.u,b);if(0<=d)return b;b=-d-1;return b>=a.u.length||a.u[b]>c?null:a.u[b]};
xla=function(){this.u=new uL};
wL=function(){QI.apply(this,arguments)};
xL=function(a){wL.call(this,a);g.Mc((a.image&&a.image.thumbnail?a.image.thumbnail.thumbnails:null)||[],function(b){return new g.fe(b.width,b.height)})};
yL=function(a){this.u=a};
zL=function(a){a=[a,a.C].filter(function(d){return!!d});
for(var b=g.q(a),c=b.next();!c.done;c=b.next())c.value.deactivate();return a};
BL=function(a,b){var c=a.u;g.lm(function(){return AL(c,b,1)})};
yla=function(a,b,c){this.C=a;this.u=b;this.B=c;this.D=a.getCurrentTime()};
Ala=function(a,b){var c=void 0===c?Date.now():c;if(a.B)for(var d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=c,h=a.u;CL({cuepointTrigger:{type:"CUEPOINT_TYPE_AD",event:zla(e.event),cuepointId:e.identifier,totalCueDurationMs:1E3*e.durationSecs,playheadTimeMs:e.u,cueStartTimeMs:1E3*e.startSecs,cuepointReceivedTimeMs:f,contentCpn:h}});"unknown"===e.event&&DL("DAI_ERROR_TYPE_CUEPOINT_WITH_INVALID_EVENT",a.u);e=e.startSecs+e.u/1E3;e>a.D&&a.C.getCurrentTime()>e&&DL("DAI_ERROR_TYPE_LATE_CUEPOINT",
a.u)}};
Bla=function(a,b,c){a.B&&CL({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
Cla=function(a,b){a.B&&CL({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.KJ}})};
DL=function(a,b){CL({daiStateTrigger:{errorType:a,contentCpn:b}})};
CL=function(a){g.ir("adsClientStateChange",a)};
zla=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"}};
EL=function(a){this.I=a;this.preloadType="2";this.adVideoId=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.D=this.u=this.Mh=!1;this.adFormat=null;this.clientName=(a=!g.Q(this.I.T().experiments,"html5_ad_csi_tracker_initialization_killswitch"))?this.I.T().deviceParams.c:g.L("INNERTUBE_CLIENT_NAME",void 0);this.clientVersion=a?this.I.T().deviceParams.cver:g.L("INNERTUBE_CLIENT_VERSION",void 0);this.F=a?this.I.T().deviceParams.cbrand:"";this.J=a?this.I.T().deviceParams.cmodel:"";this.playerType=
"html5";this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="vod"};
GL=function(a,b,c,d,e,f){FL(a);var h=a.I.getVideoData(1),l=a.I.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=e?FL(a):(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=f?"live":"vod",a.D=d+1===e,a.Mh=!0,a.Mh&&(xG("c",a.clientName,a.actionType),xG("cver",a.clientVersion,a.actionType),g.Q(a.I.T().experiments,"html5_ad_csi_tracker_initialization_killswitch")||
(xG("cbrand",a.F,a.actionType),xG("cmodel",a.J,a.actionType)),xG("yt_pt",a.playerType,a.actionType),xG("yt_pre",a.preloadType,a.actionType),xG("yt_abt",Dla(a.B),a.actionType),a.contentCpn&&xG("cpn",a.contentCpn,a.actionType),a.videoId&&xG("docid",a.videoId,a.actionType),a.adCpn&&xG("ad_cpn",a.adCpn,a.actionType),a.adVideoId&&xG("ad_docid",a.adVideoId,a.actionType),xG("yt_vst",a.videoStreamType,a.actionType),a.adFormat&&xG("ad_at",a.adFormat,a.actionType)))};
FL=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.Mh=!1;a.u=!1};
HL=function(a){a.u=!1;BG("video_to_ad",["apbs"],void 0,void 0)};
JL=function(a){a.D?IL(a):(a.u=!1,BG("ad_to_ad",["apbs"],void 0,void 0))};
IL=function(a){a.u=!1;BG("ad_to_video",["pbresume"],void 0,void 0)};
KL=function(a){a.Mh&&!a.u&&(a.C=!1,a.u=!0,"ad_to_video"!==a.actionType&&yG("apbs",void 0,a.actionType))};
Dla=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"1";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"2";case "AD_PLACEMENT_KIND_END":return"3";default:return"unknown"}};
LL=function(){};
g.ML=function(a){return(a=Ela[a.toString()])?a:"LICENSE"};
g.NL=function(a,b){this.stateData=void 0===b?null:b;this.state=a||64};
OL=function(a,b,c){return b===a.state&&c===a.stateData||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.NL(b,c)};
PL=function(a,b){return OL(a,a.state|b)};
QL=function(a,b){return OL(a,a.state&~b)};
RL=function(a,b,c){return OL(a,(a.state|b)&~c)};
g.T=function(a,b){return!!(a.state&b)};
g.SL=function(a,b){return b.state===a.state&&b.stateData===a.stateData};
g.TL=function(a){return g.T(a,8)&&!g.T(a,2)&&!g.T(a,1024)};
UL=function(a){return a.Fb()&&!g.T(a,16)&&!g.T(a,32)};
Fla=function(a){return g.T(a,8)&&g.T(a,16)};
g.VL=function(a){return g.T(a,1)&&!g.T(a,2)};
WL=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};
XL=function(a,b,c,d,e,f,h,l){g.O.call(this);this.Uc=a;this.I=b;this.u=d;this.F=this.u.B instanceof QI?this.u.B:null;this.B=null;this.Y=!1;this.K=c;this.X=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.fa=0;this.ga=!1;this.Ej=e;this.Pn=f;this.Ak=h;this.da=!1;this.daiEnabled=l};
YL=function(a){if(vJ(a.I)){var b=a.I.getVideoData(2);b=a.u.S[b.Hc]||null;if(!b)return a.qv(),!0;(!a.B||a.B&&a.B.ad!==b)&&a.le(b)}else if(1===a.I.getPresentingPlayerType()&&a.B)return a.qv(),!0;return!1};
ZL=function(a){(a=a.baseUrl)&&g.yu(a,void 0,cn(a))};
$L=function(a,b){GL(a.K,a.u.u.u,b,a.ZC(),a.bD(),a.isLiveStream())};
bM=function(a){aM(a.Uc,a.u.u,a);a.daiEnabled&&!a.u.K&&(Gla(a,a.cD()),a.u.K=!0)};
Gla=function(a,b){for(var c=cM(a),d=a.u.u.start,e=[],f=g.q(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=dM(h);e.push({externalVideoId:h.C,originalMediaDurationMs:(1E3*h.B).toString(),trimmedMediaDurationMs:(parseInt(h.u.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.D.D=a.u.u.start;h.D.C=c;if(!Hla(a,h,d,m)||l!==m)break;d=l}c=b.reduce(function(n,p){return n+dM(p)},0);
Bla(a.Ej,Sha(a.u.u),c);Cla(a.Ej,{cueIdentifier:a.u.D&&a.u.D.identifier,KJ:e})};
dM=function(a){var b=1E3*a.B;return 0<parseInt(a.u.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.u.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.u.trimmedMaxNonSkippableAdDurationMs,10):b};
cM=function(a){var b=a.u.u.end;a=vL(a.Pn,a.u.u.start,b);return Math.min(b,null===a?Infinity:a)};
Hla=function(a,b,c,d){var e=a.Ak.create(b,pJ(nJ(a.u)),a.u.u.u);c=e.QC(c,d);g.Zf(e);if(!c)return!1;a.u.S[c]=b;return!0};
Ila=function(a){if(a.ga)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.A()/1E3)-a.fa;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
eM=function(a,b,c,d){this.u=a;this.B=b;this.C=c;this.D=d};
fM=function(){this.D=[];this.F=[];this.u=[];this.B=!1;this.J=new Map};
gM=function(){fM.u||(fM.u=new fM);return fM.u};
Jla=function(a,b,c){c=void 0===c?0:c;b.then(function(d){var e,f;a.B&&a.C&&a.C();var h=g.Zt(c),l=g.Xt(c);h&&l&&(d.csn=h,(null===(e=d.response)||void 0===e?0:e.trackingParams)&&g.eu(a.client,h,l,[g.Tt(d.response.trackingParams)]),(null===(f=d.playerResponse)||void 0===f?0:f.trackingParams)&&g.eu(a.client,h,l,[g.Tt(d.playerResponse.trackingParams)]))})};
iM=function(a,b){hM(a,g.Tt(b),void 0,void 0)};
hM=function(a,b,c,d){if(a.B&&!d)a.D.push([b,c]);else{var e=g.Zt(d);c=c||g.Xt(d);e&&c&&g.eu(a.client,e,c,[b])}};
Kla=function(a,b,c){c=void 0===c?{}:c;a.B=!0;a.C=function(){jM(a,b,c);var f=g.Xt(c.layer);if(f){for(var h=g.q(a.D),l=h.next();!l.done;l=h.next())l=l.value,hM(a,l[0],l[1]||f,c.layer);f=g.q(a.F);for(h=f.next();!h.done;h=f.next()){l=h.value;h=l[0];var m=l[1];if(a.B)a.F.push([h,m]);else{var n=g.Tt(h);if(l=g.Zt())h=a.client,m={csn:l,ve:n.getAsJson(),clientData:m},n={Hi:$t(l),rk:l},"UNDEFINED_CSN"==l?du("visualElementStateChanged",m,n):h?Tp("visualElementStateChanged",m,h,n):g.ir("visualElementStateChanged",
m,n)}}}};
g.Zt(c.layer)||a.C();if(c.IC)for(var d=g.q(c.IC),e=d.next();!e.done;e=d.next())Jla(a,e.value,c.layer);else g.Qs(Error("Delayed screen needs a data promise."))};
jM=function(a,b,c){c=void 0===c?{}:c;c.layer||(c.layer=0);var d=void 0!==c.CR?c.CR:c.layer;var e=g.Zt(d);d=g.Xt(d);var f;d&&(void 0!==c.parentCsn?f={clientScreenNonce:c.parentCsn,visualElement:d}:e&&"UNDEFINED_CSN"!==e&&(f={clientScreenNonce:e,visualElement:d}));try{var h=a.client,l=f,m=c.FC,n=c.Hi,p=Lla(),r={csn:p,pageVe:(new St({veType:b,youtubeData:void 0})).getAsJson()};l&&l.visualElement?r.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()}:l&&g.gr(new g.nr("newScreen() parent element does not have a VE - rootVe",
b));m&&(r.cloneCsn=m);m={Hi:n,rk:p};h?Tp("screenCreated",r,h,m):g.ir("screenCreated",r,m);Fq(ku,new cu(p));var t=p}catch(w){Rea(w,{Sr:b,rootVe:d,parentVisualElement:void 0,V4:e,n5:f,FC:c.FC});g.Qs(w);return}bu(t,b,c.layer,c.Hi);if((b=e&&"UNDEFINED_CSN"!==e&&d)&&!(b=g.wo("screen_manager_skip_hide_killswitch"))){a:{b=g.q(Object.values(Mla));for(f=b.next();!f.done;f=b.next())if(g.Zt(f.value)==e){b=!0;break a}b=!1}b=!b}b&&gu(a.client,e,d,!0);a.u[a.u.length-1]&&!a.u[a.u.length-1].csn&&(a.u[a.u.length-
1].csn=t||"");xG("csn",t);pu.getInstance().clear();d=g.Xt(c.layer);e&&"UNDEFINED_CSN"!==e&&d&&(g.wo("web_mark_root_visible")||g.wo("music_web_mark_root_visible"))&&g.fu(t,d,void 0);a.B=!1;a.C=void 0;e=g.q(a.J);for(t=e.next();!t.done;t=e.next())t=g.q(t.value),b=t.next().value,t.next().value===c.layer&&d&&hM(a,b,d,c.layer)};
lM=function(){this.u={};var a=g.zq("CONSISTENCY");a&&kM(this,{encryptedTokenJarContents:a})};
kM=function(a,b){if(b.encryptedTokenJarContents&&(a.u[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.u[b.encryptedTokenJarContents]},1E3*c);
g.yq("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
nM=function(){var a=g.L("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.L("INNERTUBE_CLIENT_NAME")&&(this.localStorage=mM(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.u=void 0)};
oM=function(){nM.u||(nM.u=new nM);return nM.u};
mM=function(a){return void 0===a.localStorage?new Bq("yt-client-location"):a.localStorage};
pM=function(a){var b=this;this.u=void 0;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.u=c})};
g.rM=function(a,b){b=void 0===b?!1:b;var c=g.L("INNERTUBE_CONTEXT");if(!c)return g.Qs(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};c=g.Vb(c);var d=b,e,f;c.client||(c.client={});var h=c.client;"MWEB"===h.clientName&&(h.clientFormFactor=g.L("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.pt.getInstance();var m="USER_INTERFACE_THEME_LIGHT";g.rt(0,165)?m="USER_INTERFACE_THEME_DARK":g.rt(0,174)?m="USER_INTERFACE_THEME_LIGHT":!g.wo("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:Xea()||m;h.userInterfaceTheme=l;if(g.wo("web_log_connection")&&!d){a:{if(m=
(l=window.navigator)?l.connection:void 0){l=qM[m.type||"unknown"]||"CONN_UNKNOWN";m=qM[m.u||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===l&&"CONN_UNKNOWN"!==m&&(l=m);if("CONN_UNKNOWN"!==l)break a;if("CONN_UNKNOWN"!==m){l=m;break a}}l=void 0}l&&(h.connectionType=l)}g.wo("web_populate_graft_url_killswitch")||"MWEB"!==h.clientName&&"WEB"!==h.clientName||(h.mainAppWebInfo={graftUrl:g.v.location.href});g.wo("kevlar_woffle")&&pM.u&&("MWEB"===h.clientName||"WEB"===h.clientName)&&(c.client.mainAppWebInfo||
(c.client.mainAppWebInfo={}),c.client.mainAppWebInfo.pwaInstallabilityStatus=pM.u.u?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN");g.wo("web_populate_time_zone_itc_killswitch")||(l="undefined"!==typeof Intl?(new Intl.DateTimeFormat).resolvedOptions().timeZone:void 0,l&&(h.timeZone=l));(l="MWEB"===h.clientName||g.wo("it_context_exp_goog_cookie_killswitch")?g.zq("EXPERIMENTS_DEBUG"):xq.get("EXPERIMENTS_DEBUG"))?h.experimentsToken="ZERO"===l?"GgIQAQ%3D%3D":l:delete h.experimentsToken;
h=zo();lM.u||(lM.u=new lM);l=g.Kb(lM.u.u);c.request=Object.assign(Object.assign({},c.request),{internalExperimentFlags:h,consistencyTokenJars:l});l=g.pt.getInstance();h=g.rt(0,58);l=l.get("gsml","");c.user=Object.assign({},c.user);h&&(c.user.enableSafetyMode=h);l&&(c.user.lockedSafetyMode=!0);(h=g.L("DELEGATED_SESSION_ID"))&&!g.wo("pageid_as_header_web")&&(c.user.onBehalfOfUser=h);!d&&(d=g.Zt())&&(c.clientScreenNonce=d);a&&(c.clickTracking={clickTrackingParams:a});g.wo("web_enable_client_location_service")&&
(d=oM(),c.client||(c.client={}),d.u?(c.client.locationInfo||(c.client.locationInfo={}),c.client.locationInfo.latitudeE7=1E7*d.u.coords.latitude,c.client.locationInfo.longitudeE7=1E7*d.u.coords.longitude,c.client.locationInfo.horizontalAccuracyMeters=d.u.coords.accuracy):d.locationPlayabilityToken&&(c.client.locationPlayabilityToken=d.locationPlayabilityToken));if(g.wo("web_enable_ad_signals_in_it_context")){d=null===(e=c.adSignalsInfo)||void 0===e?void 0:e.consentBumpParams;e=jq(void 0);h=e.bid;delete e.bid;
c.adSignalsInfo={params:[],bid:h};e=g.q(Object.entries(e));for(h=e.next();!h.done;h=e.next())l=g.q(h.value),h=l.next().value,l=l.next().value,null===(f=c.adSignalsInfo.params)||void 0===f?void 0:f.push({key:h,value:""+l});!Ys()&&d&&(c.adSignalsInfo.consentBumpParams=d)}return c};
sM=function(){Lq.apply(this,arguments);this.B=new Headers};
uM=function(){tM||(tM=new sM);return tM};
vM=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
Nla=function(){var a=null;nt().then(function(b){return a=b},function(b){return a=vM(b)});
return a};
Ola=function(){var a=Lm(1E3,"NO_BID");return zm(Bm(qda([nt(),a]),vM),function(){return a.cancel()})};
wM=function(a){return a.lc?g.rt(g.pt.getInstance(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
xM=function(a){this.player=a;this.C=this.u=1;this.B=g.P(a.T().experiments,"bulleit_get_midroll_info_timeout_ms")||8E3};
BM=function(a,b,c,d){var e=void 0===c?{}:c;c=e.Zp;e=e.Hd;d=void 0===d?"":d;var f=a.player.getVideoData(1),h=a.player.T().Ns,l={AD_BLOCK:a.u++,AD_BREAK_LENGTH:c?c.durationSecs:0,AUTONAV_STATE:wM(a.player.T()),CA_TYPE:"image",CPN:f.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Mk(),LACT:Cp(),LIVE_INDEX:c?a.C++:1,LIVE_TARGETING_CONTEXT:c&&c.context?c.context:"",MIDROLL_POS:e?Math.round(e.start/1E3):0,MIDROLL_POS_MS:e?Math.round(e.start):0,VIS:a.player.getVisibilityState(),P_H:g.mJ(a.player).Cf().height,
P_W:g.mJ(a.player).Cf().width,YT_REMOTE:h?h.join(","):""},m=iq(hq);Object.keys(m).forEach(function(r){null!=m[r]&&(l[r.toUpperCase()]=m[r].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};(c=a.player.T().Ma)&&gq(b)&&(d.forced_experiments=c);b=dq(g.dn(b,l),d);a.player.getVideoData().enableServerStitchedDai&&(b=b.concat("&expflag=enable_midroll_notify_for_bulleit%3Afalse"));d=b.split("?");if(2!==d.length)return vm(Error("Invalid AdBreakInfo URL"));c=g.q(d);d=c.next().value;c=c.next().value;g.Q(a.player.T().experiments,"get_midroll_info_wexit")&&(e=Pla(a,b,l),e={rpc_data:JSON.stringify(e)},b=dq(b,e));e={};h=a.player.T();if((null===f||void 0===f?0:f.oauthToken)&&
fq()){var n="Bearer "+f.oauthToken;e.Authorization=n;if(g.Q(h.experiments,"get_midroll_info_use_client_rpc")){var p=uM();Object.assign(p.B,{Authorization:n})}}c=Zp(c);return g.Q(h.experiments,"get_midroll_info_wexit")?bt(b,{Ux:!0,format:"RAW",headers:e,method:"POST",pc:c,timeout:a.B,withCredentials:!0}):g.Q(h.experiments,"get_midroll_info_use_client_rpc")?(p=yM(a.player.app,p),a=zM(a,b,l),MF("WExit exp sends ad break request directly",void 0,void 0,{cpn:f.clientPlaybackNonce}),AM(p,a,"/youtubei/v1/player/ad_break").then(function(r){var t,
w,x,y;if(!r)return MF("WExit exp gets an undefined response",void 0,void 0,{cpn:f.clientPlaybackNonce}),r;(r.error||r.errorMetadata)&&MF("WExit exp gets an error response",void 0,void 0,{cpn:f.clientPlaybackNonce,reason:null===(t=r.error)||void 0===t?void 0:t.message,code:null===(w=r.error)||void 0===w?void 0:w.code,status:null===(x=r.error)||void 0===x?void 0:x.status,error_metatdata_status:null===(y=r.errorMetadata)||void 0===y?void 0:y.status});return r})):g.YD(h)?bt(d,{Ux:!0,
format:"RAW",headers:e,method:"POST",pc:c,timeout:a.B,withCredentials:!0}):bt(b,{Ux:!0,format:"RAW",headers:e,method:"GET",timeout:a.B,withCredentials:!0})};
Rla=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=eq(b),f=CM(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=CM(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=Yp(jq(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=[];Qla.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};
Sla=function(a,b,c){var d=!1;if(""===b)return d;b.split(",").forEach(function(e){var f={},h={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},l="ACTIVE";"!"===e[0]&&(e=e.substring(1),l="INACTIVE");e=e.split("-");3>e.length||(e[0]in DM&&(h.clientName=DM[e[0]]),e[1]in EM&&(h.platform=EM[e[1]]),h.applicationState=l,h.clientVersion=2<e.length?e[2]:"",c?(f.remoteClient=h,a.remoteContexts?a.remoteContexts.push(f):a.remoteContexts=[f]):a.remoteClients?a.remoteClients.push(h):
a.remoteClients=[h],d=!0)});
return d};
zM=function(a,b,c){var d=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?c.DRIFT_FROM_HEAD_MS:0,e=Tla.exec(b);e=null!=e&&2<=e.length?e[1]:"";var f=Ula.test(b),h=Vla.exec(b);h=null!=h&&2<=h.length?h[1]:"";var l=Wla.exec(b);l=null!=l&&2<=l.length&&!Number.isNaN(Number(l[1]))?Number(l[1]):1;var m=Xla.exec(b);m=null!=m&&2<=m.length?m[1]:"0";var n=g.RD(a.player.T()),p=g.rM(a.player.getVideoData(1).Wg,!0),r="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";Rla(p,b,r.toString(),a.player.T());var t={splay:!1,
lactMilliseconds:c.LACT.toString(),playerHeightPixels:c.P_H,playerWidthPixels:c.P_W,vis:c.VIS,signatureTimestamp:18634,autonavState:wM(a.player.T())},w={};Sla(w,c.YT_REMOTE,g.Q(a.player.T().experiments,"use_remote_context_in_populate_remote_client_info"))&&(t.mdxContext=w);if(a=FM.includes(n)?void 0:g.zq("PREF")){w=a.split(/[:&]/);for(var x=0,y=w.length;x<y;x++){var E=w[x].split("=");if(("SML"===E[0].toUpperCase()||"GSML"===E[0].toUpperCase())&&1<E.length&&"TRUE"===E[1].toUpperCase()){p.user.lockedSafetyMode=
!0;break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in GM)for(a=a.split(/[:&]/),x=GM.FLAG_AUTO_CAPTIONS_DEFAULT_ON,w="f"+(1+Math.floor(x/31)).toString(),x=1<<Math.floor(x%31),y=0,E=a.length;y<E;y++){var D=a[y].split("=");if(D[0]===w&&parseInt("0x"+D[1],16)&x){a=!0;break a}}a=!1}t.autoCaptionsDefaultOn=a}b=Yla.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&h&&(p.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:t};e={adBlock:c.AD_BLOCK,params:e,breakIndex:l,breakPositionMs:m,
clientPlaybackNonce:c.CPN,topLevelDomain:n,isProxyAdTagRequest:f,context:p,adSignalsInfoString:Yp(jq(r.toString())),overridePlaybackContext:b};h&&(e.videoId=h);c.LIVE_TARGETING_CONTEXT&&(e.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(e.breakLengthMs=(1E3*c.AD_BREAK_LENGTH).toString());d&&(e.driftFromHeadMs=d.toString());return e};
Pla=function(a,b,c){var d=g.zq("dkv"),e=Zla.exec(b);e=null!=e&&2<=e.length?Number(e[1]):0;e=isNaN(e)?0:e;var f=g.RD(a.player.T()),h={clientName:a.player.T().ra.ou.toString(),host:f,Y4:void 0};f=FM.includes(f)?void 0:g.zq("PREF");return{adBreakRequest:zM(a,b,c),adsCookie:d,clientInfo:h,lact:c.LACT.toString(),mediaTimeMs:e,vis:c.VIS,playerHeightPixels:c.P_H,playerWidthPixels:c.P_W,ytRemote:c.YT_REMOTE,prefCookie:f,signatureTimestamp:18634}};
HM=function(a,b,c,d,e,f){g.O.call(this);this.F=a;this.B=b;this.C=c;this.J=d;this.u=e;this.D=f;$la(this)};
ama=function(a,b){var c={isEmpty:!0,dE:!1,wh:[]};if(!b)return c;b&&b.trackingParams&&iM(gM(),b.trackingParams);if(b&&b.adThrottled)return c.dE=!0,c;var d=b.playerAds;if(!d||!d.length)return c;d=d.map(function(f){return f.adPlacementRenderer}).filter(function(f){return f&&null!=f.renderer});
if(g.kb(d))return c;if(0<a.u.u.end){var e=a.u.u.end.toString();d.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==f.kind&&"-1"==f.adTimeOffset.offsetEndMilliseconds&&f.adTimeOffset.offsetEndMilliseconds!=e&&(f.adTimeOffset.offsetEndMilliseconds=e)})}c.wh=d;
c.isEmpty=!1;return c};
$la=function(a){[a.u.da,a.u.u].filter(function(b){return null!=b}).forEach(function(b){aM(a.B,b,a)})};
IM=function(a,b,c,d,e,f,h){eK.call(this,a,b,d.B,d.u.u,d.B.u.adVideoId,e,f,h,g.Q(b.T().experiments,"only_show_companion_with_video_ad_or_command_for_image"));this.S=c;this.C=d;this.K=d.B;this.F=this.da=null;a=this.C.u;a.visible=!1;aM(this.Uc,a,this)};
KM=function(a,b,c,d,e,f,h,l){XL.call(this,a,b,c,d,e,f,h,l);this.D=d.B;this.J=-1;this.P=this.C=null;this.S=JM(this.Xt())};
LM=function(a){a.J++;var b=a.Xt();b?a.le(b):a.Jk()};
JM=function(a){return a?bma.some(function(b){return a instanceof b}):!1};
cma=function(a){this.u=new eM(function(b){b=new XL(a.Uc,a.I,a.EC(),b,a.Ej,a.Pn,a.Ak,a.daiEnabled);bM(b);return b},function(b){return new HM(a.Yw,a.Uc,a.I,a.Vw,b,a.Ej)},function(b){var c=a.ws(b.B);
b=new IM(a.Uc,a.I,a.UJ,b,a.jS,c,a.Tf);g.C(b,c);return b},function(b){b=new KM(a.Uc,a.I,a.EC(),b,a.Ej,a.Pn,a.Ak,a.daiEnabled);
bM(b);return b})};
MM=function(a,b){$I.call(this);a.adStart&&a.adStart.adMessageRenderer&&(g.ir("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),aJ(this,new qK(a.adStart.adMessageRenderer)));if(a.linearAds)for(var c=[],d=g.q(a.linearAds),e=d.next();!e.done;e=d.next())e=e.value,e.instreamVideoAdRenderer?(e=b(e.instreamVideoAdRenderer),aJ(this,e),c.push(e.B)):e.adActionInterstitialRenderer?(e=new kK(e.adActionInterstitialRenderer),aJ(this,e)):e.adIntroRenderer&&(e=new pK(e.adIntroRenderer),
aJ(this,e),this.C=1),this.B.filter(function(f){return f instanceof WI}).forEach(function(f,h){if(f instanceof WI){var l=new UI(h,c);
f.D=l}})};
NM=function(a,b){$I.call(this);var c=a.persistingOverlay;this.D=c&&c.persistingAdOverlayRenderer?new sK(c.persistingAdOverlayRenderer):null;aJ(this,dma(this,a.adVideoStart));a:{if(c=a.linearAd){if(c.instreamVideoAdRenderer){c=b(c.instreamVideoAdRenderer);break a}if(c.instreamSurveyAdRenderer){c=new fJ(c.instreamSurveyAdRenderer);break a}}c=null}aJ(this,c);(c=a.adVideoEnd)?c.adActionInterstitialRenderer?(this.C=1,c=new kK(c.adActionInterstitialRenderer)):c=null:c=null;aJ(this,c)};
dma=function(a,b){return null==b?null:b.adActionInterstitialRenderer?(a.C=1,new kK(b.adActionInterstitialRenderer)):b.adTextInterstitialRenderer?new vK(b.adTextInterstitialRenderer):b.adMessageRenderer?(g.ir("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new qK(b.adMessageRenderer)):b.surveyTextInterstitialRenderer?new uK(b.surveyTextInterstitialRenderer):null};
OM=function(a,b,c){this.C=a;this.u=b;this.B=c};
PM=function(a){var b=new sJ(a.yC),c=new tJ(b);return{rK:function(){return b},
qy:function(){return c}}};
QM=function(a){this.u=a};
RM=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.u.create(e,f):null;return new gJ(b,c,h,d)}catch(l){g.M(l)}};
ema=function(a){var b=new QM(a.CJ);return{YC:function(){return b}}};
fma=function(a){g.B.call(this);this.u=a;this.C=new $ia(a.I);this.B=new uJ(a.I);g.C(this,this.B)};
gma=function(a){return function(){return new EL(a.u.I)}};
hma=function(a){return function(b,c){return new BJ(b,a.C,c,a.u.I,a.B,a.u.gi,a.u.daiEnabled)}};
SM=function(a){g.B.call(this);var b=this;this.B=a;this.u=null;g.Yf(this,function(){return b.u=null});
var c=At(a);if(c){var d=function(){b.u&&b.u(!!xt())};
this.B.addEventListener(c,d);g.Yf(this,function(){b.B.removeEventListener(c,d)})}};
TM=function(a){g.B.call(this);this.u=a};
ima=function(a){var b=window.document;return g.YD(a.T())?new SM(b):new TM(a)};
jma=function(a){g.B.call(this);this.u=new yla(a.I,a.contentCpn,a.daiEnabled)};
kma=function(a){UM=a&&a.data};
mma=function(a){lma=a&&a.data};
nma=function(a){VM=a&&a.data};
oma=function(a){WM=a&&a.data};
pma=function(a){XM=a&&a.data};
qma=function(){XM=WM=VM=UM=null};
aN=function(a,b){g.B.call(this);var c=this;this.tc=a;this.uf=b;this.dd=new Map;this.u=new Map;YM(this,"commandExecutorCommand",function(d,e,f){d=d.commands;d=void 0===d?[]:d;e=void 0===e?{}:e;f=void 0===f?{}:f;c.ma();d=g.q(d);for(var h=d.next();!h.done;h=d.next())c.executeCommand(h.value,e,f)});
ZM(this,"commandExecutorCommand",function(d,e,f){$M(c,d.commands,e,f)});
YM(this,"clickTrackingParams",function(){});
ZM(this,"clickTrackingParams",function(){})};
rma=function(a,b){YM(a,b.Gh(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
sma=function(a,b){ZM(a,b.Gh(),function(c,d,e,f){b.Ri(c,d,e,f)})};
YM=function(a,b,c){a.ma();a.dd.get(b)&&g.M(Error("Extension name "+b+" already registered"));a.dd.set(b,c)};
ZM=function(a,b,c){a.ma();a.u.get(b)&&g.M(Error("Extension name "+b+" already registered"));a.u.set(b,c)};
$M=function(a,b,c,d){b=void 0===b?[]:b;a.ma();var e=[],f=[],h=(bN(a.uf,c)?"Layout retrievable. ":"Layout not retrievable. ")+"Ordered commands: ";b=g.q(b);for(var l=b.next();!l.done;l=b.next()){l=l.value;var m="";l.loggingUrls&&(m="loggingUrls filled on ");var n="not recognized command";l.adPingingEndpoint?n="adPingingEndpoint":l.pingingEndpoint?n="pingingEndpoint":l.muteAdEndpoint?n="muteAdEndpoint: "+l.muteAdEndpoint.type:l.adLifecycleCommand?n="adLifecycleCommand: "+l.adLifecycleCommand.action:
l.adPlayerControlsCommand?n="adPlayerControlsCommand":l.clearCueRangesCommand?n="clearCueRangesCommand":l.openPopupAction?n="openPopupAction":l.changeEngagementPanelVisibilityAction?n="changeEngagementPanelVisibilityAction":l.clearCueRangesCommand?n="clearCueRangesCommand":l.urlEndpoint&&(n="urlEndpoint");h=h.concat(m.concat(n),", ");l.hasOwnProperty("pingingEndpoint")||l.hasOwnProperty("adPingingEndpoint")?e.push(l):f.push(l)}e=g.q(e);for(l=e.next();!l.done;l=e.next())cN(a,l.value,c,d,h);1<f.length&&
MF("Trying to execute multiple non-logging command in a CEC.");d=g.q(f);for(l=d.next();!l.done;l=d.next())cN(a,l.value,c)};
cN=function(a,b,c,d,e){a.ma();b.loggingUrls&&tma(a,"loggingUrls",b.loggingUrls,c,d,e);b=g.q(Object.entries(b));for(var f=b.next();!f.done;f=b.next()){var h=g.q(f.value);f=h.next().value;h=h.next().value;uma.hasOwnProperty(f)||tma(a,f,h,c,d,e)}};
vma=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.dd.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.M(f)}else b=new g.nr("Unhandled field",b),g.Go(b)};
tma=function(a,b,c,d,e,f){(a=a.u.get(b))||new g.nr("Unhandled field",b);try{a(c,d,e,f)}catch(h){g.M(h)}};
dN=function(a,b,c,d,e){g.O.call(this);var f=this;this.u=b;this.Ma=null;this.Ac=c;this.Ba=e.tg;this.ga=e.Al;this.Ub=Mia({I:b}).vK();this.B=this.fa=this.C=null;this.D=new Map;c=this.u.T().experiments;var h=PM({yC:b.getVideoData(1)}),l=new fma({gi:h.qy(),I:b,daiEnabled:!1});g.C(this,l);this.F=new Set;this.na=-1;this.la=[];this.X=null;this.S=new Map;this.Y=new Map;this.J=new Set;this.K=new Bt(this);g.C(this,this.K);this.P=new Bt(this);g.C(this,this.P);this.Ha=this.vb=this.Pa=!1;this.da=g.YD(b.T());this.jd=
d;d=new jma({contentCpn:this.u.getVideoData(1).clientPlaybackNonce,T4:this,daiEnabled:!1,I:this.u});g.C(this,d);this.lc=d.u;this.Za=(new xla({U4:this,r5:g.Q(c,"html5_recognize_predict_start_cue_point"),p5:g.Q(c,"html5_persist_cue_range_killswitch")})).u;var m=Zb(pJ(kJ(this.u)));e=new vla({Fa:this,TJ:l.B,Tf:TI(),gi:h.qy(),I:this.u,GR:m,ws:hma(l),daiEnabled:!1,ck:e.ck,tg:this.Ba,bk:e.bk});this.gd=(new cma({Vw:this.Ac,Ak:e.u,Yw:a,Uc:this,UJ:this.Ub,Tf:TI(),EC:gma(l),Ej:this.lc,Pn:this.Za,I:this.u,jS:m,
ws:function(n){return hma(l)(n,m)},
daiEnabled:!1})).u;this.Ta=ema({CJ:new OM(new Pia(b),c,function(n){return f.Y.has(n)?f.Y.get(n):null})}).YC();
this.qb=ima(this.u);g.C(this,this.qb);this.Dd=fE(this.u.T())?g.Q(this.u.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit_living_room"):g.Q(this.u.T().experiments,"align_ad_to_video_player_lifecycle_for_bulleit")};
Ama=function(a,b){var c=a.u.getVideoData(1);if(c.ox||g.L("SERVED_VIA_SPF_HISTORY"))g.Q(a.u.T().experiments,"directly_unlock_preroll_on_cached_playbacks_for_bulleit")?a.ga.u():eN(a);else{if(xJ(a.u)){var d=wma(a.u);d.addEventListener("updateKevlarOrC3Companion",kma);d.addEventListener("onPlaShelfInfoCardsReady",mma);d.addEventListener("updateEngagementPanelAction",nma);d.addEventListener("changeEngagementPanelVisibility",oma);d.addEventListener("scrollToEngagementPanel",pma);window.addEventListener("yt-navigate-start",
qma)}a.K.N(a.u,"applicationplayerstatechange",a.BO);a.K.N(a.u,g.TF("ad"),a.Mz,a);a.K.N(a.u,g.UF("ad"),a.XO,a);a.K.N(a.u,"aduxclicked",a.nO);a.K.N(a.u,"videodatachange",a.jR);d=xma(a,b);d=yma(a,d);d=zma(a,d);0<d.length&&fN(a,d);a.X&&c.subscribe("cuepointupdated",a.QF,a);gN(a.Ba)||eN(a);g.lm(a.HS,a)}};
xma=function(a,b){return b.filter(function(c){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)?(g.YD(a.u.T())&&a.u.getVideoData(1).Yg()||(a.X=c),!1):!0})};
yma=function(a,b){a.S=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.S.set(c.elementId,c),!1):!0})};
zma=function(a,b){a.Y=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.Y.set(c.hostElementId,c),!1):!0})};
Bma=function(a,b){return b.every(function(c){c=a.D.get(c);return null==c?(g.M(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof HM?!1:c instanceof XL?!c.Wi():!0})};
eN=function(a){var b=Cma(a);if(0<b.length){gN(a.Ba)||Bma(a,b)&&a.ga.u();var c=g.P(a.u.T().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.da&&g.LD(a.u.T())?(c=new g.F(function(){Dma(a,b)},c),g.C(a,c),c.start()):g.lm(function(){Dma(a,b)})}else gN(a.Ba)||a.ga.u()};
Cma=function(a){for(var b=Ema(a),c=g.q(b),d=c.next();!d.done;d=c.next())a.F["delete"](d.value);return b};
Ema=function(a){var b=[];a=g.q(a.F);for(var c=a.next();!c.done;c=a.next())c=c.value,WF(c)&&b.push(c);return b};
Fma=function(a,b,c){c=void 0===c?null:c;var d=a.Ta,e=d.create;var f=1E3*a.u.getDuration(1);f=new OF(f,1E3*a.u.getCurrentTime(1)||0,g.Q(a.u.T().experiments,"enable_upg_processed_dvr_dai")?!1:a.u.getVideoData(1).Yg(),g.Q(a.u.T().experiments,"html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.la.length,c);a.la=a.la.concat(b);return b};
Dma=function(a,b){if(!a.ma())for(var c=g.q(b),d=c.next();!d.done;d=c.next())a.Mz(d.value)};
Gma=function(a,b){var c=a.D.get(b);c&&((g.Q(a.u.T().experiments,"enable_eviction_protection_for_bulleit")?c.jo()&&a.C?a.C.mr():!c.jo()&&a.B?a.B.mr():1:1)?c.Dy(b):b.deactivate())};
fN=function(a,b,c){b=Fma(a,b,void 0===c?null:c);return 0==b.length?null:b.map(function(d){return a.gd.create(d)})};
Jma=function(a,b){b.jo()?(g.Q(a.u.T().experiments,"html5_enable_consistent_companion_clearing")?a.fa=a.C:g.Zf(a.C),a.C=b):(Hma(a,b),b.cE()&&Ima(a,b))};
Hma=function(a,b){a.C&&a.C.lr().start<b.lr().start&&((g.Q(a.u.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_action")||g.Q(a.u.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_image")||g.Q(a.u.T().experiments,"html5_enable_clear_companion_for_composite_in_player_ads_for_shopping"))&&b.Wi()?hN(a):b.Uy()&&hN(a))};
hN=function(a){g.Q(a.u.T().experiments,"html5_enable_consistent_companion_clearing")||PI(a.Ub);g.Zf(a.C);a.C=null};
Ima=function(a,b){a.B&&iN(a,!1);a.B=b;b.Wi()&&Kma(a)};
Kma=function(a){a.Pa||(a.P.N(a.u,"presentingplayerstatechange",a.GN),a.P.N(a.u,"internalAbandon",a.dO),a.P.N(a.u,"progresssync",a.mR),a.P.N(a.u,"onVolumeChange",a.nR),a.P.N(a.qb,"fullscreentoggled",a.kP),a.Pa=!0);g.J(a.u.getRootNode(),"ad-showing");g.J(a.u.getRootNode(),"ad-interrupting");g.Q(a.u.T().experiments,"enable_html5_teal_ad_badge")&&xJ(a.u)&&g.J(a.u.getRootNode(),"ad-teal-design");g.Q(a.u.T().experiments,"html5_activate_deferred_cue_ranges_on_video_ad")&&(a.J.forEach(function(b){Gma(a,b)}),
a.J.clear());
g.jN(a.u.app,2)};
iN=function(a,b,c){var d=!!a.B&&a.B||null,e=d&&d.Wi()&&(vJ(a.u)||!1);d=b&&d&&d.reset()||null;a.B&&Lma(a,a.B);a.B=null;a.na=-1;e&&Mma(a,c);a.Ha||a.ga.u();b&&d&&(d.lr().B=!1,bM(d))};
Mma=function(a,b){g.Dt(a.P);a.Pa=!1;g.un(a.u.getRootNode(),"ad-showing");a.Dd?(a.Ha||a.ga.u(),Nma(a),a.u.cueVideoByPlayerVars({},2)):(a.u.cueVideoByPlayerVars({},2),Nma(a));g.un(a.u.getRootNode(),"ad-interrupting");g.Q(a.u.T().experiments,"enable_html5_teal_ad_badge")&&g.un(a.u.getRootNode(),"ad-teal-design");b&&b(a.u)};
Nma=function(a){if(a.vb)!a.da&&g.LD(a.u.T())&&(g.Q(a.u.T().experiments,"release_player_on_abandon_for_bulleit_living_room")||g.Q(a.u.T().experiments,"release_player_on_abandon_for_bulleit_lr_ads_frontend"))&&g.kN(a.u,2);else if(g.kN(a.u,2),!a.da){var b=g.NJ(a.u,1);g.T(b,4)&&!g.T(b,2)&&a.u.playVideo()}};
aM=function(a,b,c){if(b instanceof VF){if(a.da&&XF(b)&&g.T(g.NJ(a.u,1),64)){var d=1E3*a.u.getCurrentTime(1)||0;d!=b.start&&b.contains(d)&&b.deactivate()}a.D.has(b)?g.M(Error(b.toString()+" has already been seen")):(a.F.add(b),a.D.set(b,c),WF(b)||g.lN(a.u,[b],1))}else g.M(Error("Should use AdCueRange instead of CueRange"))};
AL=function(a,b,c){a.u.app.Zo(b,c);b=g.q(b);for(c=b.next();!c.done;c=b.next())c=c.value,a.F["delete"](c),a.D["delete"](c)};
Lma=function(a,b){for(var c=a.D,d=g.q(c),e=d.next();!e.done;e=d.next()){e=g.q(e.value);var f=e.next().value;if(e.next().value==b){c["delete"](f);break}}g.Zf(b)};
mN=function(a,b){Oma(a.u,b);switch(b){case 1:a.na=1;break;case 0:a.na=0}};
nN=function(a){Bt.call(this);this.u=a;this.N(this.u,"onAdUxUpdate",this.P)};
Pma=function(a,b,c,d,e){UJ.call(this,"image-companion",a,b,c,d,e)};
oN=function(a){nN.call(this,a)};
pN=function(a){g.B.call(this);this.B=a};
qN=function(a){pN.call(this,!0);this.u=a};
Qma=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.adSafetyReason||null});
d.EI=c(function(){return e&&e.eventId||null});
d.AD_CPN=c(function(){return b.Ma});
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 Cp().toString()});
d.VIS=c(function(){return a.getVisibilityState().toString()});
d.VOL=c(function(){return a.getVolume().toString()});
return d};
Rma=function(a,b){g.B.call(this);var c=this;this.C=[];this.K=!1;this.B=0;this.F=this.J=this.D=!1;this.X=null;var d=(0,g.z)(a,b);this.u=new g.F(function(){return d(c.X)},300);
g.C(this,this.u);this.S=this.P=Infinity};
Sma=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.C.includes(d.identifier))return!0}return!1};
rN=function(){var a="ytp-id-"+Tma.toString();Tma++;return a};
g.sN=function(a){g.B.call(this);this.Ma={};this.Dd={};this.element=this.createElement(a)};
tN=function(a,b,c,d){if("{{"===d.substr(0,2))a.Dd[d]=[b,c];else return d};
Uma=function(a,b){var c=[];if(!b)return c;for(var d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,null!=e){var f=e.nodeType;1===f||3===f?c.push(e):e&&"string"===typeof e.G?c.push(a.createElement(e)):e.element?c.push(e.element):"string"===typeof e&&-1!==e.indexOf("\n")?e.split("\n").forEach(function(h,l){0<l&&c.push(g.Ce("BR"));c.push(g.De(h))}):c.push(g.De(e))}return c};
uN=function(a,b,c,d){if("child"===c){g.Ee(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.G?[d]:d;c=Uma(a,e);c=g.q(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.og(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.Dc(g.Hc(a))),b.setAttribute(c,a))};
g.U=function(a){g.sN.call(this,a);this.bb=!0;this.P=!1;this.listeners=[]};
g.vN=function(a,b){b?a.show():a.hide()};
g.wN=function(a){g.U.call(this,a);this.fa=new g.O;g.C(this,this.fa)};
V=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.wN.call(this,c);this.api=a;this.Fa=b;this.macros={};this.componentType=d;this.K=null;this.vb=h;this.layoutId=e;this.u=f;this.Pa=null;this.Ub=new qN(this.element);g.C(this,this.Ub);this.qb=this.N(this.element,"click",this.onClick);this.ra=[];this.da=new Rma(this.onClick,this);g.C(this,this.da);this.lc=!1;this.X=null};
Vma=function(a,b,c){a.Fa?a.Fa.executeCommand(b,a.macros,c):g.M(Error("null or undefined adService"))};
xN=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.Go(Error("Got null or undefined adText object")),"";var c=g.md(a.text);if(!a.isTemplated)return c;if(null==b)return g.Go(Error("Missing required parameters for a templated message")),c;for(var d=g.q(Object.entries(b)),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;f=f.next().value;c=c.replace("{"+e+"}",f)}return c};
Wma=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.kb(a.thumbnails)||null==a.thumbnails[0].url)?"":g.md(a.thumbnails[0].url)};
Xma=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.kb(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.fe(0,0):new g.fe(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
AN=function(a,b,c){g.yN(a.api,b,a);g.zN(a.api,b,c)};
DN=function(a,b,c){g.BN(a.api,b)&&g.CN(a.api,b,c,a.u)};
EN=function(a){return a&&a.thumbnails&&!g.kb(a.thumbnails||null)&&a.thumbnails[0].url?g.md(a.thumbnails[0].url):""};
FN=function(a,b,c,d,e,f){f=void 0===f?!1:f;V.call(this,a,b,{G:"img",L:"ytp-ad-image"},"ad-image",c,d,void 0===e?null:e);this.B=f;this.hide()};
g.Yma=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,U:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
GN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",U:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.HN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},R:[{G:"path",U:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.IN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},R:[{G:"path",U:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
Zma=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},R:[{G:"path",U:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{G:"path",U:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
$ma=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},R:[{G:"path",ub:!0,U:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
ana=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},R:[{G:"path",ub:!0,U:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.JN=function(){return{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},R:[{G:"path",U:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
bna=function(){return{G:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",U:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
cna=function(){return{G:"svg",U:{viewBox:"0 0 24 24"},R:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",U:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
dna=function(){return{G:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},R:[{G:"path",U:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",U:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
g.KN=function(){return{G:"svg",U:{viewBox:"0 0 24 24"},R:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",U:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
LN=function(){return{G:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",U:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
ena=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},R:[{G:"path",ub:!0,U:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
MN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,L:"ytp-svg-fill",U:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.NN=function(){return{G:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},R:[{G:"path",U:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
fna=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,L:"ytp-svg-fill",U:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
gna=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,U:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
hna=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,L:"ytp-svg-fill",U:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
ina=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,L:"ytp-svg-fill",U:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.ON=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,L:"ytp-svg-fill",U:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
g.PN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,U:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
jna=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,L:"ytp-svg-fill",U:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
kna=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,U:{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"}}]}};
QN=function(){return{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,L:"ytp-svg-fill",U:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
RN=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return{G:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},R:[{G:"path",U:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",U:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]};case "CHECK_BOX":return{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},R:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},
{G:"path",U:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},R:[{G:"path",U:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.JN();case "INFO_OUTLINE":return dna();case "REMOVE_CIRCLE":return{G:"svg",
U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},R:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",U:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return MN();case "LIKE":return g.KN();case "DISLIKE":return cna();default:return g.gr(new g.nr("Unexpected icon:",a)),null}};
SN=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={G:"button",ka:["ytp-ad-button"].concat(e)};null!=l&&(e.U={tabindex:l});V.call(this,a,b,e,void 0===f?"button":f,c,d);this.B=this.C=this.D=null;this.F=h;this.hide()};
lna=function(a){var b=null;null!=a.B&&(b=[a.B.serviceEndpoint,a.B.navigationEndpoint].filter(function(c){return null!=c}),a.B.command&&(b=b.concat(a.B.command)));
return b||[]};
TN=function(a,b,c,d,e,f,h){V.call(this,a,b,c,d,e,f);this.B=h;g.C(this,this.B);this.la=this.J=-1};
UN=function(a){a.B&&-1===a.J&&(a.J=a.B.subscribe("b",a.Fl,a),a.la=a.B.subscribe("a",a.Ym,a),a.Fl())};
VN=function(a){null!=a.B&&-1!==a.J&&(a.B.nl(a.J),a.B.nl(a.la),a.la=-1,a.J=-1)};
WN=function(a,b,c,d,e,f){f=void 0===f?!1:f;TN.call(this,a,b,{G:"div",L:"ytp-ad-timed-pie-countdown-container",R:[{G:"svg",L:"ytp-ad-timed-pie-countdown",U:{viewBox:"0 0 20 20"},R:[{G:"circle",L:"ytp-ad-timed-pie-countdown-background",U:{r:10,cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-inner",U:{r:5,cx:"10",cy:"10"}},{G:"circle",L:"ytp-ad-timed-pie-countdown-outer",U:{r:10,cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,d,e);this.D=this.ia("ytp-ad-timed-pie-countdown-inner");this.C=Math.ceil(10*
Math.PI);this.F=f;this.hide()};
XN=function(a,b,c,d,e,f){V.call(this,a,b,{G:"div",L:"ytp-ad-text"},void 0===f?"ad-text":f,c,d,void 0===e?null:e);this.B=null;this.hide()};
YN=function(a,b){b&&g.Ke(a.element,xN(a.B,b))};
g.ZN=function(a,b,c,d,e,f){g.B.call(this);this.element=a;this.state=null;c||a.hide();this.C=b;this.D=void 0===d?b:d;this.u=f;this.B=e;this.delay=new g.F(this.Bw,0,this);g.C(this,this.delay)};
$N=function(a,b){var c=a.element.element;b?c.setAttribute("aria-hidden","true"):c.removeAttribute("aria-hidden")};
aO=function(a,b,c,d,e,f){TN.call(this,a,b,{G:"div",L:"ytp-ad-preview-slot"},"ad-preview",c,d,e);var h=this;this.Ba=-1;this.C=new g.wN({G:"span",L:"ytp-ad-preview-container"});g.C(this,this.C);this.D=new XN(this.api,this.Fa,this.layoutId,this.u,"ytp-ad-preview-text");g.C(this,this.D);this.D.ha(this.C.element);this.S=new g.wN({G:"span",L:"ytp-ad-preview-image"});g.C(this,this.S);this.F=new FN(this.api,this.Fa,this.layoutId,this.u);g.C(this,this.F);this.F.ha(this.S.element);this.S.ha(this.C.element);
this.C.ha(this.element);this.Y=new g.ZN(this.C,400,!1,100,function(){return h.hide()});
g.C(this,this.Y);this.ga=0;this.na=!1;this.Ha=f;this.hide()};
bO=function(a){a.Y.show(100);a.show()};
cO=function(a,b,c,d,e){e=void 0===e?0:e;g.B.call(this);this.C=a;this.B=!1;this.S=d;this.J=!1;this.u=null;0<b&&(this.u=new g.F(this.bC,b,this),g.C(this,this.u));this.D=new g.F(this.bC,c,this);g.C(this,this.D);this.P=zn(this.C,e,1,d);g.C(this,this.P);this.K=zn(this.C,0,d,1);g.C(this,this.K);this.F=new Bt;g.C(this,this.F)};
dO=function(a,b,c,d,e){TN.call(this,a,b,{G:"div",L:"ytp-ad-skip-button-slot"},"skip-button",c,d,e);var f=this;this.S=null;this.ga=!1;this.D=new g.wN({G:"span",ka:["ytp-ad-skip-button-container"]});g.C(this,this.D);this.D.ha(this.element);this.C=this.F=null;this.na=new g.ZN(this.D,500,!1,100,function(){return f.hide()});
g.C(this,this.na);this.Y=new cO(this.D.element,15E3,5E3,.5,.5);g.C(this,this.Y);this.hide()};
mna=function(a){a=a.S&&a.S.adRendererCommands;return(a&&a.clickCommand&&a.clickCommand.commandExecutorCommand&&a.clickCommand.commandExecutorCommand.commands||[]).some(function(b){return b.adLifecycleCommand||b.adPlayerControlsCommand})};
eO=function(a,b){g.O.call(this);this.Fa=b;this.C=!1;this.B=0;this.Te=new Bt(this);g.C(this,this.Te);this.durationMs=a;this.u=new g.Jm(100);g.C(this,this.u);this.Te.N(this.u,"tick",this.Ob);this.D={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
fO=function(a,b,c,d){V.call(this,a,b,{G:"div",L:"ytp-ad-action-interstitial",U:{tabindex:"0"},R:[{G:"div",L:"ytp-ad-action-interstitial-background-container"},{G:"div",L:"ytp-ad-action-interstitial-slot",R:[{G:"div",L:"ytp-ad-action-interstitial-card",R:[{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.Ta=this.ia("ytp-ad-action-interstitial-image-container");this.S=new FN(this.api,this.Fa,this.layoutId,this.u,"ytp-ad-action-interstitial-image");g.C(this,this.S);this.S.ha(this.Ta);this.Ha=this.ia("ytp-ad-action-interstitial-headline-container");this.la=new XN(this.api,this.Fa,this.layoutId,this.u,"ytp-ad-action-interstitial-headline");g.C(this,this.la);this.la.ha(this.Ha);this.Ba=this.ia("ytp-ad-action-interstitial-description-container");this.ga=new XN(this.api,
this.Fa,this.layoutId,this.u,"ytp-ad-action-interstitial-description");g.C(this,this.ga);this.ga.ha(this.Ba);this.Ac=this.ia("ytp-ad-action-interstitial-background-container");this.Y=new FN(this.api,this.Fa,this.layoutId,this.u,"ytp-ad-action-interstitial-background",!0);g.C(this,this.Y);this.Y.ha(this.Ac);this.Za=this.ia("ytp-ad-action-interstitial-action-button-container");this.C=this.F=this.D=this.B=null;this.J=new Bt;g.C(this,this.J);this.na=null;this.hide()};
nna=function(a){var b=g.pe("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
gO=function(a,b,c,d){V.call(this,a,b,{G:"div",L:"ytp-ad-choice-interstitial",R:[{G:"div",L:"ytp-ad-choice-interstitial-main-content",R:[{G:"div",L:"ytp-ad-choice-interstitial-head-title"},{G:"div",L:"ytp-ad-choice-interstitial-button-container"}]}]},"ad-choice-interstitial",c,d);this.F=this.D=this.B=this.C=null;this.J=new g.ZN(this,0,!1,0);g.C(this,this.J);this.hide()};
ona=function(a,b){var c=EN(b)||"";g.oc(c)?g.Go(Error("Found ThumbnailDetails without valid image URL")):g.og(a,"backgroundImage","url("+c+")")};
pna=function(a,b){var c=a.ia("ytp-ad-choice-interstitial-head-title");g.Ke(c,g.S(b))};
qna=function(a){switch(a){case 0:case 1:return a;default:return g.M(Error("AdChoiceInterstitialRenderer received an invalid value for default button choice index (i.e., not 0 or 1): "+a)),1}};
sna=function(a,b,c,d){if(2!==b.length)return!1;a.B=rna(a,b[0],c,0===d);a.B.show();a.D=rna(a,b[1],c,1===d);a.D.show();return!0};
rna=function(a,b,c,d){var e=a.ia("ytp-ad-choice-interstitial-button-container"),f=d?1:2,h=["ytp-ad-choice-interstitial-button"],l=g.Q(a.api.T().experiments,"self_podding_highlighted_button_blue")?"ytp-ad-choice-interstitial-button-highlight-blue":"ytp-ad-choice-interstitial-button-highlight",m=g.Q(a.api.T().experiments,"self_podding_highlight_non_default_button");d&&h.push("ytp-ad-choice-interstitial-button-default");d===!m&&h.push(l);d=new SN(a.api,a.Fa,a.layoutId,a.u,h,"button",!1,f);g.C(a,d);d.init(TJ("button"),
b,a.macros);d.ha(e);d.element.style.width=8*c+32+"px";return d};
tna=function(a,b){var c=8*b+32,d=a.ia("ytp-ad-choice-interstitial-button-container");190<c?(d.classList.add("ytp-ad-choice-interstitial-button-container-stacked"),d.style.width=c+"px"):(d.classList.remove("ytp-ad-choice-interstitial-button-container-stacked"),d.style.width="")};
una=function(a,b,c,d){a.C=new eO(d);a.C.subscribe("a",function(){a.J.hide();for(var e=g.q(b),f=e.next();!f.done;f=e.next())a.Fa.executeCommand(f.value,c)});
g.C(a,a.C)};
vna=function(a,b,c){var d=a.ia("ytp-ad-choice-interstitial");a.F=new WN(a.api,a.Fa,a.layoutId,a.u,a.C,!0);g.C(a,a.F);a.F.init(TJ("timed-pie-countdown"),b,c);a.F.ha(d)};
hO=function(a,b,c,d){V.call(this,a,b,{G:"div",L:"ytp-ad-text-interstitial"},"ad-text-interstitial",c,d);this.C=this.ia("ytp-ad-text-interstitial");this.B=new XN(this.api,this.Fa,this.layoutId,this.u,"ytp-ad-text-interstitial-message");g.C(this,this.B);this.B.ha(this.C);this.hide()};
wna=function(a){var b=g.pe("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
iO=function(){g.B.call(this);var a=this;this.u=new Map;this.B=bea(function(b){if(b.target&&(b=a.u.get(b.target))&&b)for(var c=0;c<b.length;c++)g.yu(b[c],void 0,void 0)})};
xna=function(){null==jO&&(jO=new iO);return jO};
kO=function(a,b){if(a.simpleText){a:{var c=a.simpleText;if(b){var d=yna(c);if(d){c=Be("SPAN",null,d);break a}}c=g.De(c)}return c}c=[];if(a.runs)for(d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(zna(e,b))}return 1==c.length?c[0]:Be("SPAN",null,c)};
zna=function(a,b){var c=null,d=a.text;b&&(d=yna(d)||d);a.bold&&(c=Be("B",null,c||d));a.italics&&(c=Be("I",null,c||d));a.strikethrough&&(c=Be("STRIKE",null,c||d));if(a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint){var e=a.navigationEndpoint.urlEndpoint;c=Be("A",null,c||d);g.gd(c,e.url);"TARGET_NEW_WINDOW"==e.target&&(c.target="_blank");if(e=a.navigationEndpoint.loggingUrls)e=e.map(function(f){return f.baseUrl}),xna().register(c,e),g.J(c,"ytp-ad-has-logging-urls")}return c||Be("SPAN",null,d)};
yna=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(Be("BR")),b.push(a[c]);return b}return null};
lO=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;V.call(this,a,b,{G:"span",ka:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,c,d);this.button=this.C=null;this.J=f;this.F=e;this.hide()};
mO=function(a,b,c,d){V.call(this,a,b,{G:"div",L:"ytp-ad-feedback-dialog-background",R:[{G:"div",L:"ytp-ad-feedback-dialog-container",R:[{G:"div",L:"ytp-ad-feedback-dialog-form",U:{role:"dialog",tabindex:"-1"},R:[{G:"div",L:"ytp-ad-feedback-dialog-title",R:[{G:"span",Z:"{{title}}"}]},{G:"span",L:"ytp-ad-info-dialog-feedback-options-title",Z:"{{reasonsTitle}}"},{G:"div",L:"ytp-ad-info-dialog-feedback-options"},{G:"div",L:"ytp-ad-feedback-dialog-confirm-container",R:[{G:"button",L:"ytp-ad-feedback-dialog-cancel-button",
Z:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-feedback-dialog-confirm-button",Z:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",c,d);this.D=[];this.B=null;this.F=this.ia("ytp-ad-feedback-dialog-cancel-button");this.S=this.ia("ytp-ad-feedback-dialog-confirm-button");this.Y=this.ia("ytp-ad-info-dialog-feedback-options");this.ga=this.ia("ytp-ad-feedback-dialog-title");this.J=this.C=null;this.hide()};
Dna=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.B=new SN(a.api,a.Fa,a.layoutId,a.u,["ytp-ad-feedback-dialog-close-button"],"button"),g.C(a,a.B),a.B.init(TJ("button"),c,a.macros),a.B.xa("click",a.oF,a),a.B.ha(a.element));b.title&&(c=g.S(b.title),a.za("title",c));b.reasonsTitle&&(c=g.S(b.reasonsTitle),a.za("reasonsTitle",c));b.reasons&&Ana(a,b.reasons);b.cancelLabel&&(c=g.S(b.cancelLabel),a.za("cancelLabel",c),g.dp(a.F,"click",function(){return a.oF()}));
b.confirmLabel&&(c=g.S(b.confirmLabel),a.za("confirmLabel",c),g.dp(a.S,"click",function(){return Bna(a)}));
b.undoRenderer&&Cna(a,b.undoRenderer)};
Ana=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=e.reason;null==d?g.Go(Error("AdFeedbackReason.reason was not set.")):(e=e.endpoint,null==e?g.Go(Error("AdFeedbackReason.endpoint was not set.")):(d=new Ena(d,e),g.C(a,d),a.Y.appendChild(d.u.element),a.D.push(d)))}};
Cna=function(a,b){var c=b&&b.buttonRenderer||null;c&&(c.serviceEndpoint?(a.C=new SN(a.api,a.Fa,a.layoutId,a.u,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.C(a,a.C),a.C.init(TJ("ad-feedback-undo-mute-button"),c,a.macros),a.C.xa("click",a.hR,a),a.C.ha(a.ga)):g.Go(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint.")))};
Bna=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(a.Fa.executeCommand(b[0].B,a.macros),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.V("f"),a.hide())};
Ena=function(a,b){this.B=b;this.u=new g.wN({G:"label",L:"ytp-ad-feedback-dialog-reason-label",R:[{G:"input",L:"ytp-ad-feedback-dialog-reason-input",U:{type:"radio",name:"feedback-reason-group"}},{G:"span",L:"ytp-ad-feedback-dialog-reason-text",Z:g.S(a)}]});this.C=this.u.ia("ytp-ad-feedback-dialog-reason-input")};
nO=function(a,b,c,d,e,f){e=void 0===e?[]:e;V.call(this,a,b,{G:"div",ka:["ytp-ad-confirm-dialog-background"],R:[{G:"div",L:"ytp-ad-confirm-dialog-container",R:[{G:"div",ka:["ytp-ad-confirm-dialog"].concat(e),U:{role:"dialog",tabindex:"-1"},R:[{G:"div",L:"ytp-ad-confirm-dialog-title",Z:"{{title}}"},{G:"div",L:"ytp-ad-confirm-dialog-messages"},{G:"div",L:"ytp-ad-confirm-dialog-confirm-container",R:[{G:"button",L:"ytp-ad-confirm-dialog-cancel-button",Z:"{{cancelLabel}}"},{G:"button",L:"ytp-ad-confirm-dialog-confirm-button",
Z:"{{confirmLabel}}"}]}]}]},{G:"button",ka:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],R:[{G:"span",L:"ytp-ad-button-icon",R:[g.JN()]}]}]},void 0===f?"confirm-dialog":f,c,d);this.J=this.ia("ytp-ad-confirm-dialog-close-overlay-button");this.F=this.ia("ytp-ad-confirm-dialog-cancel-button");this.Y=this.ia("ytp-ad-confirm-dialog-confirm-button");this.S=this.ia("ytp-ad-confirm-dialog-messages");this.D=null;this.B=new Bt;g.C(this,this.B);this.C=null;this.hide()};
Fna=function(a,b){if(b.title){var c=g.S(b.title);a.za("title",c)}if(b.dialogMessages){c=g.q(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=kO(d.value),a.S.appendChild(d)}b.cancelLabel&&(c=g.S(b.cancelLabel),a.za("cancelLabel",c),a.B.N(a.F,"click",function(e){return a.Dz(e)}));
b.confirmLabel&&(c=g.S(b.confirmLabel),a.za("confirmLabel",c),a.B.N(a.Y,"click",function(e){return a.Kz(e)}));
a.B.N(a.J,"click",function(e){return a.Jz(e)})};
oO=function(a,b,c,d){nO.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
pO=function(a,b,c,d,e){V.call(this,a,b,{G:"div",L:"ytp-ad-info-dialog-background",R:[{G:"div",L:"ytp-ad-info-dialog-container",R:[{G:"div",L:"ytp-ad-info-dialog-form",U:{role:"dialog",tabindex:"-1"},R:[{G:"div",L:"ytp-ad-info-dialog-title",Z:"{{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",R:[{G:"button",L:"ytp-ad-info-dialog-confirm-button",Z:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",c,d);this.B=this.C=null;this.S=this.ia("ytp-ad-info-dialog-confirm-button");this.Ha=this.ia("ytp-ad-info-dialog-mute-container");this.Ba=this.ia("ytp-ad-info-dialog-message");this.ga=this.ia("ytp-ad-info-dialog-ad-reasons");this.F=this.D=null;this.na=e;this.J=null;this.la=!1;this.Y=null;this.hide()};
Gna=function(a){(a.J&&a.J.impressionEndpoints||[]).forEach(function(b){return a.Fa.executeCommand(b,a.macros)})};
Hna=function(a,b){var c=b.content&&b.content.adFeedbackRenderer||null;c&&(a.C=new mO(a.api,a.Fa,a.layoutId,a.u),g.C(a,a.C),a.C.init(TJ("ad-feedback-dialog"),c,a.macros),a.C.ha(a.na),a.C.subscribe("f",function(){return a.V("h")}))};
Ina=function(a,b){var c=b.content&&b.content.confirmDialogRenderer||null;c&&(a.F=new oO(a.api,a.Fa,a.layoutId,a.u),g.C(a,a.F),a.F.init(TJ("ad-mute-confirm-dialog"),c,a.macros),a.F.ha(a.na),a.F.subscribe("g",function(){return a.V("h")}))};
Jna=function(a){a.B&&a.B.xa("click",a.pF,a);g.dp(a.S,"click",function(){return a.pF()})};
qO=function(a,b,c,d,e,f){lO.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.B=null;this.D=e;this.hide()};
Kna=function(a,b,c){b=b.dialog&&b.dialog.adInfoDialogRenderer||null;null==b?g.M(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.B=new pO(a.api,a.Fa,a.layoutId,a.u,a.D),g.C(a,a.B),a.B.init(TJ("ad-info-dialog"),b,c),a.B.ha(a.D),a.B.subscribe("i",function(){return a.V("k")}),a.B.subscribe("h",function(){return a.V("j")}))};
Lna=function(a,b,c){null==a.button?g.M(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(b=b&&b.serviceEndpoint&&b.serviceEndpoint.adInfoDialogEndpoint||null,null==b?a.C&&g.J(a.C.element,"ytp-ad-info-hover-text-long"):(Kna(a,b,c),a.C&&g.J(a.C.element,"ytp-ad-info-hover-text-short"),a.button.xa("click",function(){a.B&&!a.B.bb&&(a.B.show(),a.api.onAdUxClicked("ad-info-icon-button"))})))};
rO=function(a,b,c,d,e){e=void 0===e?null:e;this.D=a;this.Ga=b;this.layoutId=d;this.B=0;this.u=new Set;this.C=Array.from(this.D.get("progress")||[]);this.C.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.F={adPlacementConfig:c,zE:e}};
sO=function(){return["metadata_type_ad_placement_config"]};
uO=function(a){var b=a.Ga.get();return tO(b,a.F)};
vO=function(a,b){var c=a.D.get(b)||[];Mna(a,b,c);a.u.add(b)};
wO=function(a,b){a.u.has(b)||vO(a,b)};
Mna=function(a,b,c){var d=a.Ga.get();a=a.layoutId;c=void 0===c?[]:c;var e=bN(d.Ld.get(),a);if(e)for(b=Nna(d.ib.get(),a,b),a=tO(d,Ona(e),e),c=g.q(c),e=c.next();!e.done;e=c.next())e=e.value,e.baseUrl&&d.gi.send(e.baseUrl,a,b,e.headers);else MF("Trying to track from an unknown layout.",void 0,void 0,{layoutId:a,trackingType:b})};
xO=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
zO=function(a,b,c){c=void 0===c?yO:c;c.width<yO.width&&(c=yO);if(a.width<c.width||a.height<c.height)return{Pw:3,Bs:501,errorMessage:"ad("+xO(c)+") larger than container("+xO(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{Pw:3,Bs:501,errorMessage:"ad("+xO(c)+") to container("+xO(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{Pw:3,Bs:501,errorMessage:"ad("+xO(c)+") covers container("+xO(a)+") center."}};
Pna=function(a,b){var c=W(a.wa,"metadata_type_ad_placement_config");return new rO(a.Nc,b,c,a.layoutId)};
AO=function(a){return W(a.wa,"metadata_type_invideo_overlay_ad_renderer")};
BO=function(a){return g.Q(a.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
CO=function(a,b,c,d){V.call(this,a,b,{G:"div",L:"ytp-ad-overlay-slot",R:[{G:"div",L:"ytp-ad-overlay-container"}]},"invideo-overlay",c,d);this.S=[];this.F=this.Ta=this.Ba=null;a=this.ia("ytp-ad-overlay-container");this.na=new cO(a,45E3,6E3,.3,.4);g.C(this,this.na);BO(this.api)||(this.la=new g.F(this.clear,45E3,this),g.C(this,this.la));this.D=Qna(this);g.C(this,this.D);this.D.ha(a);this.C=Rna(this);g.C(this,this.C);this.C.ha(a);this.B=Sna(this);g.C(this,this.B);this.B.ha(a);this.Za=this.ga=null;this.Ha=
!1;this.J=null;this.Y=0;this.hide()};
Qna=function(a){var b=new g.wN({G:"div",L:"ytp-ad-text-overlay",R:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",R:[{G:"button",L:"ytp-ad-overlay-close-button",R:[RN(DO)]}]},{G:"div",L:"ytp-ad-overlay-title",Z:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",Z:"{{description}}"},{G:"div",ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Z:"{{displayUrl}}"}]});a.N(b.ia("ytp-ad-overlay-title"),"click",function(c){return EO(a,b.element,c)});
a.N(b.ia("ytp-ad-overlay-link"),"click",function(c){return EO(a,b.element,c)});
a.N(b.ia("ytp-ad-overlay-close-container"),"click",a.Ez);b.hide();return b};
Rna=function(a){var b=new g.wN({G:"div",ka:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],R:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",R:[{G:"button",L:"ytp-ad-overlay-close-button",R:[RN(DO)]}]},{G:"div",L:"ytp-ad-overlay-text-image",R:[{G:"img",U:{src:"{{imageUrl}}"}}]},{G:"div",L:"ytp-ad-overlay-title",Z:"{{title}}"},{G:"div",L:"ytp-ad-overlay-desc",Z:"{{description}}"},{G:"div",ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
Z:"{{displayUrl}}"}]});a.N(b.ia("ytp-ad-overlay-title"),"click",function(c){return EO(a,b.element,c)});
a.N(b.ia("ytp-ad-overlay-link"),"click",function(c){return EO(a,b.element,c)});
a.N(b.ia("ytp-ad-overlay-close-container"),"click",a.Ez);a.N(b.ia("ytp-ad-overlay-text-image"),"click",a.YQ);b.hide();return b};
Sna=function(a){var b=new g.wN({G:"div",L:"ytp-ad-image-overlay",R:[{G:"div",L:"ytp-ad-overlay-ad-info-button-container"},{G:"div",L:"ytp-ad-overlay-close-container",R:[{G:"button",L:"ytp-ad-overlay-close-button",R:[RN(DO)]}]},{G:"div",L:"ytp-ad-overlay-image",R:[{G:"img",U:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.N(b.ia("ytp-ad-overlay-image"),"click",function(c){return EO(a,b.element,c)});
a.N(b.ia("ytp-ad-overlay-close-container"),"click",a.Ez);b.hide();return b};
FO=function(a,b){if(b){var c=b.adHoverTextButtonRenderer||null;if(null==c)g.M(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else{var d=g.pe("video-ads ytp-ad-module")||null;null==d?g.M(Error("Could not locate the root ads container element to attach the ad info dialog.")):(a.ga=new g.wN({G:"div",L:"ytp-ad-overlay-ad-info-dialog-container"}),g.C(a,a.ga),a.ga.ha(d),d=new qO(a.api,a.Fa,a.layoutId,a.u,a.ga.element,!1),g.C(a,d),d.init(TJ("ad-info-hover-text-button"),c,a.macros),
a.J?(d.ha(a.J,0),d.subscribe("k",a.hO,a),d.subscribe("j",a.IP,a),a.N(a.J,"click",a.iO),c=g.pe("ytp-ad-button",d.element),a.N(c,"click",a.MN),a.Za=d):g.M(Error("Ad info button container within overlay ad was not present.")))}}else g.Go(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
Tna=function(a){return a.F&&a.F.closeButton&&a.F.closeButton.buttonRenderer&&(a=a.F.closeButton.buttonRenderer,a.serviceEndpoint)?[a.serviceEndpoint]:[]};
Una=function(a,b){if(GO(a,HO)||a.api.app.visibility.u)return!1;var c=xN(b.title),d=xN(b.description);if(g.oc(c)||g.oc(d))return!1;AN(a,a.D.element,b.trackingParams||null);a.D.za("title",xN(b.title));a.D.za("description",xN(b.description));a.D.za("displayUrl",xN(b.displayUrl));b.navigationEndpoint&&sb(a.S,b.navigationEndpoint);a.D.show();a.na.start();DN(a,a.D.element,!0);BO(a.api)||(a.N(a.api,"resize",function(){GO(a,HO)&&a.clear()}),a.N(a.api,"minimized",a.FP));
a.N(a.D.element,"mouseover",function(){a.Y++});
return!0};
Vna=function(a,b){if(GO(a,HO)||a.api.app.visibility.u)return!1;var c=xN(b.title),d=xN(b.description);if(g.oc(c)||g.oc(d))return!1;AN(a,a.C.element,b.trackingParams||null);a.C.za("title",xN(b.title));a.C.za("description",xN(b.description));a.C.za("displayUrl",xN(b.displayUrl));a.C.za("imageUrl",Wma(b.image));b.navigationEndpoint&&sb(a.S,b.navigationEndpoint);a.Ta=b.imageNavigationEndpoint||null;a.C.show();a.na.start();DN(a,a.C.element,!0);BO(a.api)||a.N(a.api,"resize",function(){GO(a,HO)&&a.clear()});
a.N(a.C.element,"mouseover",function(){a.Y++});
return!0};
Wna=function(a,b){if(a.api.app.visibility.u)return!1;var c=Xma(b.image),d=c;c.width<HO.width&&(d=HO);if(0==c.width||0==c.height||GO(a,d))return!1;AN(a,a.B.element,b.trackingParams||null);a.B.za("imageUrl",Wma(b.image));a.B.za("width",c.width);a.B.za("height",c.height);b.navigationEndpoint&&sb(a.S,b.navigationEndpoint);d=a.B.ia("ytp-ad-image-overlay");g.og(d,"max-width",c.width+"px");a.B.show();DN(a,a.B.element,!0);BO(a.api)||(a.la.start(),a.N(a.api,"resize",function(){GO(a,c)&&a.clear()}));
a.N(a.B.element,"mouseover",function(){a.Y++;BO(a.api)?a.api.V("aduxmouseover","invideo-overlay",a.layoutId):a.la.stop()});
a.N(a.B.element,"mouseout",function(){BO(a.api)?a.api.V("aduxmouseout","invideo-overlay",a.layoutId):a.la.start()});
return!0};
GO=function(a,b){var c=g.mJ(a.api).Cf(),d=a.api.Ni(!0,!1);return(c=zO(c,c.height-(d.height+d.top),b))?(a.Ba&&c&&(d=g.Ub(a.macros),d.ERRORCODE=c.Bs.toString(),d.ERROR_MSG=c.errorMessage,a.Fa.executeCommand(a.Ba,d)),!0):!1};
EO=function(a,b,c){var d=g.Ub(a.macros),e=g.Eg(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Cg(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
d.NX={toString:function(){return f.x.toString()}};
d.I_Y={toString:function(){return f.y.toString()}};
d.NY={toString:function(){return f.y.toString()}};
d.NM={toString:function(){return a.Y.toString()}};
a.S.forEach(function(h){return a.Fa.executeCommand(h,d)});
a.api.pauseVideo()};
Xna=function(a,b){var c=a.api.getRootNode();g.K(c,"ytp-ad-overlay-open",b);g.K(c,"ytp-ad-overlay-closed",!b)};
IO=function(a,b,c,d,e){TN.call(this,a,b,{G:"div",L:"ytp-ad-message-overlay",R:[{G:"div",L:"ytp-ad-message-slot"}]},"ad-message",c,d,e);var f=this;this.ga=-1;this.na=this.ia("ytp-ad-message-slot");this.D=new g.wN({G:"span",L:"ytp-ad-message-container"});this.D.ha(this.na);g.C(this,this.D);this.C=new XN(this.api,this.Fa,this.layoutId,this.u,"ytp-ad-message-text");g.C(this,this.C);this.C.ha(this.D.element);this.S=new g.ZN(this.D,400,!1,100,function(){return f.hide()});
g.C(this,this.S);this.F=0;this.Y=!1;this.hide()};
Yna=function(a,b){var c=a.api.getRootNode();g.K(c,"ytp-ad-overlay-open",b);g.K(c,"ytp-ad-overlay-closed",!b)};
JO=function(a,b,c,d,e){TN.call(this,a,b,{G:"div",L:"ytp-ad-skip-ad-slot"},"skip-ad",c,d,e);this.S=!1;this.F=0;this.D=this.C=null;this.hide()};
KO=function(a,b){if(!a.S)if(a.S=!0,a.C&&(b?a.C.Y.hide():a.C.hide()),b){var c=a.D;c.na.show();c.show()}else a.D.show()};
LO=function(a,b,c,d,e){V.call(this,a,b,{G:"div",L:"ytp-ad-persisting-overlay",R:[{G:"div",L:"ytp-ad-persisting-overlay-skip"}]},"persisting-overlay",c,d);this.C=this.ia("ytp-ad-persisting-overlay-skip");this.B=e;g.C(this,this.B);this.hide()};
g.MO=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){var h="";0<d&&(h+=" "+d+" \u65e5");if(0<d||0<e)h+=" "+e+" \u6642\u9593";d=(h+(" "+f+" \u5206 ")+(c+" \u79d2")).trim()}else{h="";0<d&&(h+=d+":",10>e&&(h+="0"));if(0<d||0<e)h+=e+":",10>f&&(h+="0");h+=f+":";10>c&&(h+="0");d=h+c}return 0<=a?d:"-"+d};
g.NO=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)};
OO=function(a,b,c,d,e,f){TN.call(this,a,b,{G:"span",L:"ytp-ad-duration-remaining"},"ad-duration-remaining",c,d,e);this.C=null;this.D=f;this.hide()};
PO=function(a,b,c,d){XN.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
QO=function(a,b,c,d,e){TN.call(this,a,b,{G:"div",ka:["ytp-flyout-cta","ytp-flyout-cta-inactive"],R:[{G:"div",L:"ytp-flyout-cta-icon-container"},{G:"div",L:"ytp-flyout-cta-body",R:[{G:"div",L:"ytp-flyout-cta-text-container",R:[{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.D=new FN(this.api,this.Fa,this.layoutId,this.u,"ytp-flyout-cta-icon");g.C(this,this.D);this.D.ha(this.ia("ytp-flyout-cta-icon-container"));
this.S=new XN(this.api,this.Fa,this.layoutId,this.u,"ytp-flyout-cta-headline");g.C(this,this.S);this.S.ha(this.ia("ytp-flyout-cta-headline-container"));this.F=new XN(this.api,this.Fa,this.layoutId,this.u,"ytp-flyout-cta-description");g.C(this,this.F);this.F.ha(this.ia("ytp-flyout-cta-description-container"));this.C=new SN(this.api,this.Fa,this.layoutId,this.u,["ytp-flyout-cta-action-button"]);g.C(this,this.C);this.C.ha(this.ia("ytp-flyout-cta-action-button-container"));this.Y=null;this.ga=0;this.hide()};
RO=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=TJ("ytp-ad-toggle-button-input");V.call(this,a,b,{G:"div",ka:["ytp-ad-toggle-button"].concat(e),R:[{G:"label",L:"ytp-ad-toggle-button-label",U:{"for":h},R:[{G:"span",L:"ytp-ad-toggle-button-icon",U:{role:"button","aria-label":"{{tooltipText}}"},R:[{G:"span",L:"ytp-ad-toggle-button-untoggled-icon",Z:"{{untoggledIconTemplateSpec}}"},{G:"span",L:"ytp-ad-toggle-button-toggled-icon",Z:"{{toggledIconTemplateSpec}}"}]},{G:"input",
L:"ytp-ad-toggle-button-input",U:{id:h,type:"checkbox"}},{G:"span",L:"ytp-ad-toggle-button-text",Z:"{{buttonText}}"},{G:"span",L:"ytp-ad-toggle-button-tooltip",Z:"{{tooltipText}}"}]}]},f,c,d);this.D=this.ia("ytp-ad-toggle-button");this.B=this.ia("ytp-ad-toggle-button-input");this.ia("ytp-ad-toggle-button-label");this.Y=this.ia("ytp-ad-toggle-button-icon");this.J=this.ia("ytp-ad-toggle-button-untoggled-icon");this.F=this.ia("ytp-ad-toggle-button-toggled-icon");this.ga=this.ia("ytp-ad-toggle-button-text");
this.C=null;this.S=!1;this.hide()};
SO=function(a){a.S&&(a.isToggled()?(g.Fg(a.J,!1),g.Fg(a.F,!0)):(g.Fg(a.J,!0),g.Fg(a.F,!1)))};
Zna=function(a,b){var c=null;a.C&&(c=(b?[a.C.defaultServiceEndpoint,a.C.defaultNavigationEndpoint]:[a.C.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
TO=function(a,b,c,d,e){V.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.B=null;this.D=new RO(this.api,this.Fa,this.layoutId,this.u,["ytp-ad-instream-user-sentiment-like-button"]);g.C(this,this.D);this.D.ha(this.element);this.C=new RO(this.api,this.Fa,this.layoutId,this.u,["ytp-ad-instream-user-sentiment-dislike-button"]);g.C(this,this.C);this.C.ha(this.element);this.F=new g.ZN(this,400,!1,500,function(){return f.hide()});
g.C(this,this.F);this.hide()};
$na=function(a,b){a.D.init(TJ("toggle-button"),a.B.likeButton.toggleButtonRenderer,b);a.C.init(TJ("toggle-button"),a.B.dislikeButton.toggleButtonRenderer,b);a.N(a.element,"change",a.nF)};
UO=function(a,b,c,d){SN.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
VO=function(a,b,c,d,e){e=void 0===e?!1:e;V.call(this,a,b,{G:"span",L:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,d);this.B=e;this.hide()};
WO=function(a,b){this.B=a;this.u=b};
XO=function(a,b){return a.B+b*a.getLength()};
YO=function(a,b,c){if(!a.getLength())return null!=c?c:Infinity;a=(b-a.B)/a.getLength();return g.$d(a,0,1)};
ZO=function(a,b){g.wN.call(this,{G:"div",L:"ytp-ad-persistent-progress-bar-container",R:[{G:"div",L:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.B=b;g.C(this,this.B);this.Sc=this.ia("ytp-ad-persistent-progress-bar");this.u=-1;this.N(a,"presentingplayerstatechange",this.C);this.hide();this.C()};
$O=function(a,b,c,d,e){V.call(this,a,b,{G:"div",L:"ytp-ad-player-overlay",R:[{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.J=this.ia("ytp-ad-player-overlay-flyout-cta");this.C=this.ia("ytp-ad-player-overlay-instream-info");this.D=null;aoa(this)&&(a=Be("div"),g.J(a,
"ytp-ad-player-overlay-top-bar-gradients"),b=this.C,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new PO(this.api,this.Fa,this.layoutId,this.u),c.ha(a),c.init(TJ("ad-title"),{text:b.title},this.macros),g.C(this,c)),this.D=a);this.F=this.ia("ytp-ad-player-overlay-skip-or-preview");this.Y=this.ia("ytp-ad-player-overlay-progress-bar");this.S=this.ia("ytp-ad-player-overlay-instream-user-sentiment");this.B=e;g.C(this,this.B);this.hide()};
aoa=function(a){a=a.api.T();return ZD(a)&&a.u};
aP=function(a,b,c,d){V.call(this,a,b,{G:"div",L:"ytp-ad-survey-answer"},"survey-answer",c,d);this.C=this.ia("ytp-ad-survey-answer");this.B=null;this.D="";this.hide()};
bP=function(a,b,c,d){V.call(this,a,b,{G:"div",L:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",c,d);this.C=this.ia("ytp-ad-survey-none-of-the-above");this.B=null;this.hide()};
cP=function(a,b,c,d){SN.call(this,a,b,c,d,["ytp-ad-survey-submit-button"],"survey-submit")};
dP=function(a,b,c,d,e){V.call(this,a,b,{G:"div",L:"ytp-ad-survey-player-overlay",R:[{G:"div",L:"ytp-ad-survey-player-overlay-instream-info"},{G:"div",L:"ytp-ad-survey-player-overlay-skip-preview-submit",R:[{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.J=this.ia("ytp-ad-survey-player-overlay-instream-info");this.C={};this.S=this.ia("ytp-ad-survey-player-overlay-skip-or-preview");
this.B=null;this.Y=this.ia("ytp-ad-survey-player-overlay-submit");this.D=null;this.F=e;g.C(this,this.F);this.hide()};
eP=function(a,b,c,d,e){V.call(this,a,b,{G:"div",L:"ytp-ad-survey-question",R:[{G:"div",ka:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{G:"div",ka:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{G:"div",ka:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{G:"div",L:"ytp-ad-survey-question-background"}]},e,c,d);this.question=this.ia("ytp-ad-survey-question");this.na=this.ia("ytp-ad-survey-question-background");this.ga=this.ia("ytp-ad-survey-question-text");
this.answers=this.ia("ytp-ad-survey-answers");this.Y=this.ia("ytp-ad-survey-question-player-overlay");this.J=null;this.D=[];this.B=null;this.F=g.A()};
boa=function(a,b,c){var d=new aP(a.api,a.Fa,a.layoutId,a.u);d.ha(a.answers);d.init(TJ("survey-answer"),b,c);a.D.push(d)};
doa=function(a,b){if(b){var c=b.background;c&&c.instreamSurveyAdBackgroundImageRenderer&&(c=(c=c.instreamSurveyAdBackgroundImageRenderer.image)&&EN(c)||"",g.oc(c)?g.Go(Error("Found ThumbnailDetails without valid image URL")):g.og(a.na,"backgroundImage","url("+c+")"));coa(a,b)}else g.M(Error("addCommonComponents() needs to be called before starting countdown."))};
coa=function(a,b){if(null==b.durationMilliseconds||void 0==b.durationMilliseconds||0==b.durationMilliseconds)g.M(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.F=g.A();a.B=new eO(b.durationMilliseconds,a.Fa);g.C(a,a.B);if(b.timeoutCommands){var c=b.timeoutCommands;a.B.subscribe("a",function(){c.forEach(function(e){return a.Fa.executeCommand(e,a.macros)})})}if(a.B&&b.instreamAdPlayerOverlay&&b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer)try{var d=
new dP(a.api,a.Fa,a.layoutId,a.u,a.B);
d.ha(a.Y);d.init(TJ("survey-player-overlay"),b.instreamAdPlayerOverlay.instreamSurveyAdPlayerOverlayRenderer,a.macros);a.J=d;g.C(a,d);a.uH()}catch(e){g.M(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.M(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.B&&b.durationMilliseconds&&0<b.durationMilliseconds?(d=new ZO(a.api,a.B),d.ha(a.Y),g.C(a,d)):g.M(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+
JSON.stringify(b)))}};
eoa=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()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return g.A()-a.F})};
fP=function(a,b,c,d){eP.call(this,a,b,c,d,"survey-question-multi-select");this.C=null;this.la=[];this.S=null;this.hide()};
foa=function(a,b,c){a.C=new bP(a.api,a.Fa,a.layoutId,a.u);a.C.ha(a.answers);a.C.init(TJ("survey-none-of-the-above"),b,c)};
goa=function(a){a.D.forEach(function(b){b.B.toggleButton(!1)});
gP(a,!0)};
gP=function(a,b){var c=a.J,d=hoa(a),e=b;e=void 0===e?!1:e;c.B&&(d?c.B.hide():c.B.show(),e&&c.B instanceof JO&&!c.B.S&&KO(c.B,!1));c.D&&(d?c.D.show():c.D.hide())};
hoa=function(a){return a.D.some(function(b){return b.B.isToggled()})||a.C.B.isToggled()};
hP=function(a,b,c,d){eP.call(this,a,b,c,d,"survey-question-single-select");this.hide()};
iP=function(a,b,c,d){V.call(this,a,b,{G:"div",L:"ytp-ad-survey",R:[{G:"div",L:"ytp-ad-survey-questions"}]},"survey",c,d);this.B=this.ia("ytp-ad-survey-questions");this.C=[];this.hide()};
jP=function(a,b,c,d){V.call(this,a,b,{G:"div",L:"ytp-ad-survey-interstitial",R:[{G:"div",L:"ytp-ad-survey-interstitial-contents",R:[{G:"div",L:"ytp-ad-survey-interstitial-logo",R:[{G:"div",L:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",L:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,d);this.F=this.ia("ytp-ad-survey-interstitial");this.J=this.ia("ytp-ad-survey-interstitial-contents");this.B=null;this.Y=this.ia("ytp-ad-survey-interstitial-text");this.S=this.ia("ytp-ad-survey-interstitial-logo-image");
this.D=null;this.C=new g.ZN(this,500,!1,300);g.C(this,this.C)};
ioa=function(a,b,c){c=c.dismissCommands;var d=b.target==a.F;b=a.B.element.contains(b.target);if(d||b)a.C.hide(),d&&c.forEach(function(e){return a.Fa.executeCommand(e,a.macros)})};
joa=function(a,b){var c=b&&EN(b)||"";if(g.oc(c))g.Go(Error("Found ThumbnailDetails without valid image URL"));else{var d=a.style.cssText;if(g.ve&&10>document.documentMode)d=Pc;else{var e=document;"function"===typeof HTMLTemplateElement&&(e=g.Ce("TEMPLATE").content.ownerDocument);e=e.implementation.createHTMLDocument("").createElement("DIV");e.style.cssText=d;d=Hda(e.style)}c=Eaa(d,Qc({"background-image":'url("'+c+'")'}));a.style.cssText=Lc(c)}};
koa=function(a){var b=g.pe("html5-video-player");b&&g.K(b,"ytp-ad-display-override",a)};
kP=function(a,b){b=void 0===b?2:b;g.O.call(this);this.api=a;this.u=null;this.Te=new Bt(this);g.C(this,this.Te);this.B=loa;this.Te.N(this.api,"presentingplayerstatechange",this.Zb);this.u=this.Te.N(this.api,"progresssync",this.Ob);this.xi=b;1===this.xi&&this.Ob()};
mP=function(a,b){nN.call(this,a);this.D=a;this.K=b;this.B={};var c=new g.U({G:"div",ka:["video-ads","ytp-ad-module"]});g.C(this,c);uD&&g.J(c.element,"ytp-ads-tiny-mode");this.F=new qN(c.element);g.C(this,this.F);g.lP(this.D,c.element,4);g.C(this,xna())};
moa=function(a,b){var c=a.B;var d=b.id;c=null!==c&&d in c?c[d]:null;null==c&&g.Go(Error("Component not found for element id: "+b.id));return c||null};
nP=function(a){this.controller=a};
oP=function(a){this.Xp=a};
pP=function(a){this.Xp=a};
qP=function(a,b,c){this.Xp=a;this.uf=b;this.Yh=c};
ooa=function(a,b,c){var d=a.Xp();switch(b.type){case "SKIP":b=!1;for(var e=g.q(a.uf.u.entries()),f=e.next();!f.done;f=e.next()){f=g.q(f.value);var h=f.next().value;f.next();"SLOT_TYPE_PLAYER_BYTES"===h.Ya&&"core"===h.Xa&&(b=!0)}b?(c=noa(a,c))?a.Yh.Fq(c):MF("No triggering layout ID available when attempting to mute."):g.lm(function(){d.Xq()})}};
noa=function(a,b){if(b)return b;for(var c=g.q(a.uf.u.entries()),d=c.next();!d.done;d=c.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;if("SLOT_TYPE_IN_PLAYER"===d.Ya&&"core"===d.Xa)return e.layoutId}};
rP=function(){};
sP=function(){};
tP=function(){};
uP=function(a,b){this.Ip=a;this.Ga=b};
vP=function(a){this.I=a};
wP=function(a,b){this.gi=a;this.Ga=b};
qoa=function(a){g.B.call(this);this.u=a;this.B=poa(this)};
poa=function(a){var b=new aN(a.u.tc,a.u.uf);g.C(a,b);a=g.q([new nP(a.u.EJ),new uP(a.u.Ip,a.u.Ga),new oP(a.u.FJ),new vP(a.u.I),new wP(a.u.gi,a.u.Ga),new qP(a.u.XN,a.u.uf,a.u.Yh),new pP(a.u.QJ),new sP,new tP,new rP]);for(var c=a.next();!c.done;c=a.next())c=c.value,rma(b,c),sma(b,c);a=g.q(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())YM(b,c.value,function(){});
return b};
xP=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.q(b);for(c=b.next();!c.done;c=b.next())if(!a.wa.u.has(c.value))return!1;return!0};
roa=function(a,b){switch(a){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;default:return b(a),7}};
yP=function(a){var b=new Map;a.forEach(function(c){b.set(c.u(),c)});
this.u=b};
W=function(a,b){var c=a.u.get(b);if(void 0!==c)return c.get()};
zP=function(a){return Array.from(a.u.keys())};
toa=function(a){var b;return(null===(b=soa.get(a))||void 0===b?void 0:b.ls)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
AP=function(a,b){var c={type:b.Ya,controlFlowManagerLayer:uoa.get(b.Xa)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.Wb&&(c.entryTriggerType=b.Wb.triggerType);1!==b.feedPosition&&(c.feedPosition=b.feedPosition);if(a){c.debugData={slotId:b.slotId};var d=b.Wb;d&&(c.debugData.slotEntryTriggerData=voa(d))}return c};
woa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:uoa.get(b.Xa)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
voa=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.B&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.B);null!=a.u&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.u);return c};
xoa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(b.debugData={slots:g.Mc(d||[],function(e){return AP(a,e)}),
associatedSlotId:c});return b};
CP=function(a,b){return function(c){return yoa(BP(a),b.slotId,b.Ya,b.feedPosition,b.Xa,b.Wb,c.layoutId,c.layoutType,c.Xa)}};
yoa=function(a,b,c,d,e,f,h,l,m){return{adClientDataEntry:{slotData:AP(a,{slotId:b,Ya:c,feedPosition:d,Xa:e,Wb:f,oe:[],jf:[],wa:new yP([])}),layoutData:woa(a,{layoutId:h,layoutType:l,Xa:m,Jd:[],ld:[],kd:[],Kd:[],Nc:new Map,wa:new yP([]),Yc:{}})}}};
DP=function(a){this.Ca=a;this.u=.1>Math.random()};
BP=function(a){return a.u||g.Q(a.Ca.get().I.T().experiments,"html5_force_debug_data_for_client_tmp_logs")};
EP=function(a,b,c,d){g.B.call(this);this.B=b;this.Eb=c;this.Ca=d;this.u=a(this,this,this,this,this);g.C(this,this.u);a=g.q(b);for(b=a.next();!b.done;b=a.next())g.C(this,b.value)};
FP=function(a,b){a.B.add(b);g.C(a,b)};
HP=function(a,b,c){MF(c,b,void 0,void 0,c.Wl);GP(a,b,!0)};
Aoa=function(a,b,c){if(IP(a.u,b))if(JP(a.u,b).D=c?"filled":"not_filled",null===c){KP(a.Eb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.q(a.B);for(var d=c.next();!d.done;d=c.next())d.value.kj(b);GP(a,b,!1)}else{KP(a.Eb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);var e=g.q(a.B);for(d=e.next();!d.done;d=e.next())d.value.lj(b);if(JP(a.u,b).F)GP(a,b,!1);else{KP(a.Eb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.u;if(!JP(f,b))throw new LP("Unknown slotState for onLayout");
if(!f.dd.ak.get(b.Ya))throw new LP("No LayoutRenderingAdapterFactory registered for slot of type: "+b.Ya);if(g.kb(c.Jd)&&g.kb(c.ld)&&g.kb(c.kd)&&g.kb(c.Kd))throw new LP("Layout has no exit triggers.");MP(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Jd);MP(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.ld);MP(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.kd);MP(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Kd)}catch(n){a.If(b,c,n);GP(a,b,!0);return}JP(a.u,b).J=!0;try{var h=a.u,l=JP(h,b),m=
h.dd.ak.get(b.Ya).get().u(h.D,h.B,b,c);m.init();l.layout=c;if(l.C)throw new LP("Already had LayoutRenderingAdapter registered for slot");l.C=m;NP(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.Jd);NP(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.ld);NP(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.kd);NP(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.Kd)}catch(n){OP(a,b);GP(a,b,!0);a.If(b,c,n);return}KP(a.Eb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);e=g.q(a.B);for(d=e.next();!d.done;d=
e.next())d.value.ci(b,c);OP(a,b);zoa(a,b)}}};
PP=function(a,b,c){KP(a.Eb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.q(a.B);for(var d=a.next();!d.done;d=a.next())d.value.ci(b,c)};
Boa=function(a,b){AK(a.Eb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",b);IP(a.u,b)&&(JP(a.u,b).D="fill_canceled",GP(a,b,!1))};
QP=function(a,b,c){KP(a.Eb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.q(a.B);for(var d=a.next();!d.done;d=a.next())d.value.md(b,c)};
nL=function(a,b,c,d){KP(a.Eb,toa(d),b,c);a=g.q(a.B);for(var e=a.next();!e.done;e=a.next())e.value.td(b,c,d)};
OP=function(a,b){if(IP(a.u,b)){JP(a.u,b).J=!1;var c=RP,d=JP(a.u,b),e=[].concat(g.ma(d.P));lb(d.P);c(a,e)}};
RP=function(a,b){b.sort(function(h,l){function m(n){MF("TriggerCategoryOrder enum does not contain trigger category: "+n)}
return h.category===l.category?h.trigger.triggerId.localeCompare(l.trigger.triggerId):roa(h.category,m)-roa(l.category,m)});
for(var c=new Map,d=g.q(b),e=d.next();!e.done;e=d.next())if(e=e.value,IP(a.u,e.slot))if(JP(a.u,e.slot).J)JP(a.u,e.slot).P.push(e);else{Coa(a.Eb,e.slot,e,e.layout);var f=c.get(e.category);f||(f=[]);f.push(e);c.set(e.category,f)}d=g.q(Doa.entries());for(e=d.next();!e.done;e=d.next())f=g.q(e.value),e=f.next().value,f=f.next().value,(e=c.get(e))&&Eoa(a,e,f);(d=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&Foa(a,d);(d=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&Goa(a,d);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
Hoa(a,c)};
Eoa=function(a,b,c){b=g.q(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&SP(a.u,d.slot)&&Ioa(a,d.slot,d.layout,c)};
Foa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next())GP(a,d.value.slot,!1)};
Goa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;a:switch(JP(a.u,d.slot).D){case "not_filled":var e=!0;break a;default:e=!1}e&&(AK(a.Eb,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",d.slot),d=JP(a.u,d.slot),d.D="fill_requested",d.K.B())}};
Hoa=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;AK(a.Eb,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",d.slot);for(var e=g.q(a.B),f=e.next();!f.done;f=e.next())f.value.di(d.slot);try{var h=a.u,l=d.slot,m=JP(h,l);if(!m)throw new CF("Got enter request for unknown slot");if(!m.B)throw new CF("Tried to enter slot with no assigned slotAdapter");if("scheduled"!==m.u)throw new CF("Tried to enter a slot from stage: "+m.u);if(TP(m))throw new CF("Got enter request for already active slot");
for(var n=g.q(UP(h,l.Ya+"_"+l.feedPosition).values()),p=n.next();!p.done;p=n.next()){var r=p.value;if(m!==r&&TP(r)){var t=void 0;f=e=void 0;var w=h,x=r,y=l,E=VP(w.ua.get(),1,!1),D=KE(w.Da.get(),1),G=KF(x.layout),I=x.slot.Wb,H=Joa(w,I),Ba=LF(I,H),la=y.wa.u.has("metadata_type_fulfilled_layout")?KF(W(y.wa,"metadata_type_fulfilled_layout")):"unknown",Pa=y.Wb,Sa=Joa(w,Pa),$a=LF(Pa,Sa);w=H;var lc=Sa;if(w&&lc){if(w.start>lc.start){var Yb=g.q([lc,w]);w=Yb.next().value;lc=Yb.next().value}t=w.end>lc.start}else t=
!1;var Pe={details:E+" |"+(Ba+" |"+$a),activeSlotStatus:x.u,activeLayout:G?G:"empty",activeLayoutId:(null===(f=x.layout)||void 0===f?void 0:f.layoutId)||"empty",enteringLayout:la,enteringLayoutId:(null===(e=W(y.wa,"metadata_type_fulfilled_layout"))||void 0===e?void 0:e.layoutId)||"empty",hasOverlap:String(t),contentCpn:D.clientPlaybackNonce,contentVideoId:D.videoId,isAutonav:String(D.Nh),isAutoplay:String(D.ih)};throw new CF("Trying to enter a slot when a slot of same type is already active.",Pe);
}}}catch(re){MF(re,d.slot,WP(a.u,d.slot),void 0,re.Wl);GP(a,d.slot,!0);continue}d=JP(a.u,d.slot);"scheduled"!==d.u&&XP(d.slot,d.u,"enterSlot");d.u="enter_requested";d.B.Sx()}};
zoa=function(a,b){var c;if(IP(a.u,b)&&TP(JP(a.u,b))&&WP(a.u,b)&&!SP(a.u,b)){KP(a.Eb,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!==(c=WP(a.u,b))&&void 0!==c?c:void 0);var d=JP(a.u,b);"entered"!==d.u&&XP(d.slot,d.u,"enterLayoutForSlot");d.u="rendering";d.C.startRendering(d.layout)}};
Ioa=function(a,b,c,d){if(IP(a.u,b)){var e=a.Eb,f;var h=(null===(f=soa.get(d))||void 0===f?void 0:f.Pr)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";KP(e,h,b,c);a=JP(a.u,b);"rendering"!==a.u&&XP(a.slot,a.u,"exitLayout");a.u="rendering_stop_requested";a.C.nh(c,d)}};
GP=function(a,b,c){if(IP(a.u,b)){a:switch(JP(a.u,b).u){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(JP(a.u,b).u){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(JP(a.u,b).F=!0,!c))return;if(TP(JP(a.u,b)))JP(a.u,b).F=!0,Koa(a,b,c);else{a:switch(JP(a.u,b).D){case "fill_requested":c=!0;break a;default:c=!1}if(c)JP(a.u,b).F=!0,IP(a.u,b)&&(AK(a.Eb,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=JP(a.u,b),b.D="fill_cancel_requested",b.K.u());else{c=
WP(a.u,b);AK(a.Eb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);d=JP(a.u,b);var e=b.Wb,f=d.da.get(e.triggerId);f&&(f.qh(e),d.da["delete"](e.triggerId));e=g.q(b.oe);for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d.X.get(f.triggerId);h&&(h.qh(f),d.X["delete"](f.triggerId))}e=g.q(b.jf);for(f=e.next();!f.done;f=e.next())if(f=f.value,h=d.S.get(f.triggerId))h.qh(f),d.S["delete"](f.triggerId);null!=d.layout&&(e=d.layout,YP(d,e.Jd),YP(d,e.ld),YP(d,e.kd),YP(d,e.Kd));d.K=void 0;null!=d.B&&(d.B.release(),
d.B=void 0);null!=d.C&&(d.C.release(),d.C=void 0);d=a.u;JP(d,b)&&(d=UP(d,b.Ya+"_"+b.feedPosition))&&d["delete"](b.slotId);AK(a.Eb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=g.q(a.B);for(d=a.next();!d.done;d=a.next())d=d.value,d.mj(b),c&&d.ij(b,c)}}}};
Koa=function(a,b,c){if(IP(a.u,b)&&TP(JP(a.u,b))){var d=WP(a.u,b);if(d&&SP(a.u,b))Ioa(a,b,d,c?"error":"abandoned");else{AK(a.Eb,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=JP(a.u,b);if(!e)throw new CF("Cannot exit slot it is unregistered");"enter_requested"!==e.u&&"entered"!==e.u&&"rendering"!==e.u&&XP(e.slot,e.u,"exitSlot");e.u="exit_requested";if(void 0===e.B)throw e.u="scheduled",new CF("Cannot exit slot because adapter is not defined");e.B.Xx()}catch(f){MF(f,b,void 0,void 0,f.Wl)}}}};
Loa=function(a){this.slot=a;this.da=new Map;this.X=new Map;this.S=new Map;this.Y=new Map;this.C=this.layout=this.B=this.K=void 0;this.J=this.F=!1;this.P=[];this.u="not_scheduled";this.D="not_filled"};
TP=function(a){return"enter_requested"===a.u||a.isActive()};
LP=function(a,b,c){c=void 0===c?!1:c;Xa.call(this,a);this.Wl=c;this.args=[];b&&this.args.push(b)};
ZP=function(a,b,c,d,e,f,h,l){g.B.call(this);this.dd=a;this.C=b;this.F=c;this.D=d;this.B=e;this.Gb=f;this.ua=h;this.Da=l;this.u=new Map};
UP=function(a,b){var c=a.u.get(b);return c?c:new Map};
JP=function(a,b){return UP(a,b.Ya+"_"+b.feedPosition).get(b.slotId)};
Moa=function(a){var b=[];a.u.forEach(function(c){c=g.q(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
Joa=function(a,b){if(b instanceof JF)return b.D;if(b instanceof IF){var c=bN(a.Gb.get(),b.u);if(c=null===c||void 0===c?void 0:W(c.wa,"metadata_type_ad_placement_config"))return c=DF(c,0x7ffffffffffff),c instanceof CF?void 0:c.kh}};
IP=function(a,b){return null!=JP(a,b)};
SP=function(a,b){var c=JP(a,b),d;if(d=null!=c.layout)a:switch(c.u){case "rendering":case "rendering_stop_requested":d=!0;break a;default:d=!1}return d};
WP=function(a,b){var c=JP(a,b);return null!=c.layout?c.layout:null};
$P=function(a,b,c){if(g.kb(c))throw new CF("No "+Noa.get(b)+" triggers found for slot.");c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.dd.Eg.get(d.triggerType))throw new CF("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType);};
MP=function(a,b,c){c=g.q(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.dd.Eg.get(d.triggerType))throw new LP("No trigger adapter registered for "+Noa.get(b)+" trigger of type: "+d.triggerType);};
NP=function(a,b,c,d){d=g.q(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.dd.Eg.get(e.triggerType);f.mh(c,e,b.slot,b.layout?b.layout:null);b.Y.set(e.triggerId,f)}};
YP=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.Y.get(d.triggerId);e&&(e.qh(d),a.Y["delete"](d.triggerId))}};
XP=function(a,b,c){MF("Slot stage was "+b+" when calling method "+c,a)};
Ooa=function(a){return aQ(a.Tm).concat(aQ(a.Eg)).concat(aQ(a.Kj)).concat(aQ(a.tk)).concat(aQ(a.ak))};
aQ=function(a){var b=[];a=g.q(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Vi&&b.push(c);return b};
Qoa=function(a){g.B.call(this);this.u=a;this.B=Poa(this)};
Poa=function(a){var b=new EP(function(c,d,e,f){return new ZP(a.u.dd,c,d,e,f,a.u.Gb,a.u.ua,a.u.Da)},new Set(Ooa(a.u.dd).concat(a.u.listeners)),a.u.Eb,a.u.Ca);
g.C(a,b);return b};
bQ=function(a){g.B.call(this);var b=this;this.B=a;this.u=null;g.Yf(this,function(){g.Zf(b.u);b.u=null})};
X=function(a){return new bQ(a)};
Uoa=function(a,b,c,d,e){b=g.q(b);for(var f=b.next();!f.done;f=b.next())f=f.value,cQ(a,f.renderer,f.config.adPlacementConfig.kind);f=Array.from(a.values()).filter(function(n){return Roa(n)});
a=[];b={};f=g.q(f);for(var h=f.next();!h.done;b={Dp:b.Dp},h=f.next()){b.Dp=h.value;h={};for(var l=g.q(b.Dp.bx),m=l.next();!m.done;h={yk:h.yk},m=l.next())h.yk=m.value,m=function(n,p){return function(r){return n.yk.CC(r,p.Dp.instreamVideoAdRenderer.elementId,n.yk.VB)}}(h,b),"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===h.yk.In?a.push(Soa(c,d,h.yk.WB,e,h.yk.adSlotLoggingData,m)):a.push(Toa(c,d,e,b.Dp.instreamVideoAdRenderer.elementId,h.yk.adSlotLoggingData,m))}return a};
cQ=function(a,b,c){if(b=Voa(b)){b=g.q(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=Woa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.pu=c)}else MF("InstreamVideoAdRenderer without externalVideoId")}};
Voa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&a.sandwichedLinearAdRenderer.linearAd.instreamVideoAdRenderer;if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.q(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,c.instreamVideoAdRenderer&&b.push(c.instreamVideoAdRenderer);return b}return null};
Roa=function(a){if(void 0===a.instreamVideoAdRenderer)return MF("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.q(a.bx),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.CC)return!1;if(void 0===c.VB)return MF("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.pu||void 0===c.In||a.pu!==c.In&&"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"!==c.In)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return MF("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.pu,"matching APSR kind":c.In}),!1;if("AD_PLACEMENT_KIND_COMMAND_TRIGGERED"===c.In&&void 0===c.WB)return MF("Command Triggered AdPlacementSupportedRenderer's AdPlacementRenderer does not have an element ID"),!1}return!0};
Woa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,pu:void 0,adVideoId:b,bx:[]});return a.get(b)};
dQ=function(a,b,c,d,e,f,h){d?Woa(a,d).bx.push({WB:b,In:c,VB:e,adSlotLoggingData:f,CC:h}):MF("Companion AdPlacementSupportedRenderer without adVideoId")};
Zoa=function(a,b,c,d,e,f,h){if(!Xoa(a))return new CF("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Yoa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=eQ(e.Sa.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Xa:"core"},r=new fQ(e.u,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Nc:new Map,Jd:[r],ld:[],
kd:[],Kd:[],Xa:"core",wa:new yP([new bF(l)]),Yc:n(p)}})]};
Xoa=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};
dpa=function(a,b,c,d,e){var f;if(null===(f=a.playerOverlay)||void 0===f||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!$oa(a))return function(){return new CF("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=apa(h);return 0>=l?function(){return new CF("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=bpa(m,c,d,function(t){var w=n(t);
t=t.slotId;t=eQ(e.Sa.get(),"LAYOUT_TYPE_SURVEY",t);var x={layoutId:t,layoutType:"LAYOUT_TYPE_SURVEY",Xa:"core"},y=new fQ(e.u,d),E=new gQ(e.u,t),D=new hQ(e.u,t),G=new cpa(e.u);return{layoutId:t,layoutType:"LAYOUT_TYPE_SURVEY",Nc:new Map,Jd:[y,G],ld:[E],kd:[],Kd:[D],Xa:"core",wa:new yP([new aF(h),new VE(b),new xF(l/1E3)]),Yc:w(x),adLayoutLoggingData:h.adLayoutLoggingData}}),r=Zoa(a,c,p.slotId,d,e,m,n);
return r instanceof CF?r:[p].concat(g.ma(r))}};
apa=function(a){var b=0;a=g.q(a.questions);for(var c=a.next();!c.done;c=a.next())b+=c.value.instreamSurveyAdMultiSelectQuestionRenderer.surveyAdQuestionCommon.durationMilliseconds;return b};
$oa=function(a){a=((null===a||void 0===a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;if(!a||!a.questions||1!==a.questions.length)return!1;a=a.questions[0].instreamSurveyAdMultiSelectQuestionRenderer;if(null===a||void 0===a||!a.surveyAdQuestionCommon)return!1;a=(a.surveyAdQuestionCommon.instreamAdPlayerOverlay||{}).instreamSurveyAdPlayerOverlayRenderer;var b=((null===a||void 0===a?void 0:a.adInfoRenderer)||{}).adHoverTextButtonRenderer;return((null===a||void 0===a?void 0:a.skipOrPreviewRenderer)||
{}).skipAdRenderer&&b?!0:!1};
gpa=function(a,b,c,d,e){var f=[];try{var h=[],l=epa(a,d,function(t){t=fpa(t.slotId,c,b,e(t),d);h=t.oS;return t.aK});
f.push(l);for(var m=g.q(h),n=m.next();!n.done;n=m.next()){var p=n.value,r=p(a,e);if(r instanceof CF)return r;f.push.apply(f,g.ma(r))}}catch(t){return new CF(t,{errorMessage:t.message,AdPlacementRenderer:c})}return f};
fpa=function(a,b,c,d,e){var f=b.config.adPlacementConfig,h=f.adTimeOffset||{},l=h.offsetEndMilliseconds;h=Number(h.offsetStartMilliseconds);if(isNaN(h))throw new TypeError("Expected valid start offset");var m=Number(l);if(isNaN(m))throw new TypeError("Expected valid end offset");l=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null===l||void 0===l||!l.length)throw new TypeError("Expected linear ads");var n=[],p={WH:h,XH:0,lS:n};l=l.map(function(t){return hpa(a,t,p,c,d,f,e,m)}).map(function(t,
w){var x=new UI(w,n);
return t(x)});
var r=l.map(function(t){return t.bK});
return{aK:ipa(c,a,h,r,f,new Map([["ad_placement_start",b.placementStartPings||[]],["ad_placement_end",b.placementEndPings||[]]]),jpa(b),d,m),oS:l.map(function(t){return t.nS})}};
hpa=function(a,b,c,d,e,f,h,l){var m=b.instreamVideoAdRenderer;if(!m)throw new TypeError("Expected instream video ad renderer");if(!m.playerVars)throw new TypeError("Expected player vars in url encoded string");var n=Zp(m.playerVars);b=Number(n.length_seconds);if(isNaN(b))throw new TypeError("Expected valid length seconds in player vars");var p=kpa(n,m);if(!p)throw new TypeError("Expected valid video id in IVAR");var r=c.WH,t=c.XH,w=Number(m.trimmedMaxNonSkippableAdDurationMs),x=isNaN(w)?b:Math.min(b,
w/1E3),y=Math.min(r+1E3*x,l);c.WH=y;c.XH++;c.lS.push(x);var E=m.pings?VI(m.pings):new Map;c=m.playerOverlay||{};var D=void 0===c.instreamAdPlayerOverlayRenderer?null:c.instreamAdPlayerOverlayRenderer;return function(G){2<=G.B&&(n.slot_pos=G.u);n.autoplay="1";var I=m.adLayoutLoggingData,H=m.sodarExtensionData,Ba=eQ(d.Sa.get(),"LAYOUT_TYPE_MEDIA",a),la={layoutId:Ba,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"adapter"};G={layoutId:Ba,layoutType:"LAYOUT_TYPE_MEDIA",Nc:E,Jd:[],ld:[],kd:[],Kd:[],Xa:"adapter",wa:new yP([new YE(h),
new jF(x),new kF(n),new mF(r),new nF(y),new oF(t),new gF({current:null}),D&&new ZE(D),new VE(f),new XE(p),new WE(G),H&&new lF(H)].filter(lpa)),Yc:e(la),adLayoutLoggingData:I};I=dpa(m,f,h,G.layoutId,d);return{bK:G,nS:I}}};
kpa=function(a,b){var c=a.video_id;if(c||(c=b.externalVideoId))return c};
jpa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
npa=function(a,b,c,d,e,f,h,l){a=mpa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=eQ(b.Sa.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Xa:"core"},r=new Map,t=e.impressionUrls;t&&r.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Nc:r,Jd:[new iQ(b.u,n)],ld:[],kd:[],Kd:[],Xa:"core",wa:new yP([new rF(e),new VE(c)]),Yc:m(p)}});
return a instanceof CF?a:[a]};
ppa=function(a,b,c,d,e,f,h,l){a=opa(a,c,f,h,d,function(m,n){var p=m.slotId,r=l(m),t=e.contentSupportedRenderer;t?t.textOverlayAdContentRenderer?(t=eQ(b.Sa.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),r=jQ(b,t,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,r,kQ(b,n,p))):t.enhancedTextOverlayAdContentRenderer?(t=eQ(b.Sa.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),r=jQ(b,t,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,r,kQ(b,n,p))):t.imageOverlayAdContentRenderer?(t=eQ(b.Sa.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),p=kQ(b,n,p),p.push(new lQ(b.u,t)),r=jQ(b,t,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,r,p)):r=new LP("InvideoOverlayAdRenderer without appropriate sub renderer"):r=new LP("InvideoOverlayAdRenderer without contentSupportedRenderer");return r});
return a instanceof CF?a:[a]};
spa=function(a,b,c,d,e,f){return function(h){h=qpa(b,h.slotId,c,f(h),d.adLayoutLoggingData);var l=rpa(a,h.pw.layoutId,e,function(m,n){var p=f(m),r=m.slotId,t=new $E(d);r=eQ(b.Sa.get(),"LAYOUT_TYPE_ENDCAP",r);var w={layoutId:r,layoutType:"LAYOUT_TYPE_ENDCAP",Xa:"core"};return{layoutId:r,layoutType:"LAYOUT_TYPE_ENDCAP",Nc:new Map,Jd:[new fQ(b.u,n)],ld:[],kd:[],Kd:[],Xa:"core",wa:new yP([new VE(c),t]),Yc:p(w)}});
return{en:h,fi:[l]}}};
tpa=function(a,b,c,d){if(!c.playerVars)return new CF("No playerVars available in AdIntroRenderer.");var e=Zp(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=eQ(a.Sa.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"adapter"};return{en:{pw:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Nc:new Map,Jd:[],ld:[],kd:[],Kd:[],Xa:"adapter",wa:new yP([new qF({}),new VE(b),new gF({current:null}),new kF(e)]),Yc:f(l)},Fx:[new mQ(a.u,h)],Ex:[]},fi:[]}}};
xpa=function(a,b,c,d,e,f,h,l,m,n,p){function r(w){var x=new UI(0,[t.Vs]),y=upa(t.playerVars,t.pH,l,p,x);w=m(w);var E=n.get(t.Ew.externalVideoId);x=vpa(b,"core",t.Ew,c,y,t.Vs,f,x,w,E);return{layout:{layoutId:x.layoutId,layoutType:x.layoutType,Nc:x.Nc,Jd:x.Jd,ld:x.ld,kd:x.kd,Kd:x.Kd,Xa:x.Xa,wa:x.wa,Yc:x.Yc,adLayoutLoggingData:x.adLayoutLoggingData},fi:[]}}
var t=nQ(e);if(t instanceof LP)return new CF(t);if(r instanceof CF)return r;a=wpa(a,c,f,h,d,r);return a instanceof CF?a:a.fi.concat(a.JG)};
nQ=function(a){if(!a.playerVars)return new LP("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 LP("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=Zp(a.playerVars);var c=Number(b.length_seconds);return isNaN(c)?new LP("Expected valid length seconds in player vars"):
{Ew:a,playerVars:b,pH:a.playerVars,Vs:c}};
upa=function(a,b,c,d,e){a.iv_load_policy=d;b=Zp(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){MF(f)}c.hg&&(a.ctrl=c.hg);c.gf&&(a.ytr=c.gf);c.Cj&&(a.ytrcc=c.Cj);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Gg&&(a.vss_credentials_token_type=c.Gg),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.B&&(a.slot_pos=e.u);a.autoplay="1";return a};
zpa=function(a,b,c,d,e,f,h,l,m,n,p){if(null==e.linearAds)return new CF("Received invalid LinearAdSequenceRenderer.");b=ypa(a,b,c,e,f,l,m,n,p);if(b instanceof CF)return new CF(b);a=wpa(a,c,f,h,d,b);return a instanceof CF?a:a.fi.concat(a.JG)};
ypa=function(a,b,c,d,e,f,h,l,m){return function(n){a:{b:{var p=[];for(var r=g.q(d.linearAds),t=r.next();!t.done;t=r.next())if(t=t.value,t.instreamVideoAdRenderer){t=nQ(t.instreamVideoAdRenderer);if(t instanceof LP){p=new CF(t);break b}p.push(t.Vs)}}if(!(p instanceof CF)){r=0;t=[];for(var w=[],x=[],y=[],E=g.q(d.linearAds),D=E.next();!D.done;D=E.next())if(D=D.value,D.adIntroRenderer){D=tpa(b,c,D.adIntroRenderer,h);if(D instanceof CF){p=D;break a}D=D(n);t.push(D.en.pw);w=[].concat(g.ma(D.en.Fx),g.ma(w));
x=[].concat(g.ma(D.en.Ex),g.ma(x));y=[].concat(g.ma(D.fi),g.ma(y))}else if(D.instreamVideoAdRenderer){D=nQ(D.instreamVideoAdRenderer);if(D instanceof LP){p=new CF(D);break a}var G=new UI(r,p),I=upa(D.playerVars,D.pH,f,m,G),H=h(n),Ba=l.get(D.Ew.externalVideoId);I=vpa(b,"adapter",D.Ew,c,I,D.Vs,e,G,H,Ba);D={layoutId:I.layoutId,layoutType:I.layoutType,Nc:I.Nc,Jd:[],ld:[],kd:[],Kd:[],Xa:I.Xa,wa:I.wa,Yc:I.Yc,adLayoutLoggingData:I.adLayoutLoggingData};G=I.ld;I=I.kd;r++;t.push(D);w=[].concat(g.ma(G),g.ma(w));
x=[].concat(g.ma(I),g.ma(x))}else if(D.adActionInterstitialRenderer){D=spa(a,b,c,D.adActionInterstitialRenderer,e,h);if(D instanceof CF){p=D;break a}D=D(n);t.push(D.en.pw);w=[].concat(g.ma(D.en.Fx),g.ma(w));x=[].concat(g.ma(D.en.Ex),g.ma(x));y=[].concat(g.ma(D.fi),g.ma(y))}else{p=new CF("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}p={mS:t,ld:w,kd:x,fi:y}}}p instanceof CF?n=p:(x=n.slotId,r=p.mS,t=p.ld,w=p.kd,n=h(n),x=eQ(b.Sa.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",x),y={layoutId:x,
layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Xa:"core"},n={layout:{layoutId:x,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Nc:new Map,Jd:[new iQ(b.u,x)],ld:t,kd:w,Kd:[],Xa:"core",wa:new yP([new hF(r)]),Yc:n(y)},fi:p.fi});return n}};
oQ=function(a,b,c,d,e,f){this.fb=a;this.Ab=b;this.eb=c;this.u=d;this.Ii=e;this.loadPolicy=void 0===f?1:f};
LE=function(a,b,c,d,e,f,h){var l,m,n,p,r,t,w,x,y,E,D,G=[];if(0===b.length)return G;b=b.filter(BF);for(var I=new Map,H=new Map,Ba=g.q(b),la=Ba.next();!la.done;la=Ba.next())(la=la.value.renderer.remoteSlotsRenderer)&&la.hostElementId&&H.set(la.hostElementId,la);Ba=g.q(b);for(la=Ba.next();!la.done;la=Ba.next()){la=la.value;var Pa=Apa(a,I,la,d,e,f,h,H);Pa instanceof CF?MF(Pa,void 0,void 0,{renderer:la.renderer,config:la.config.adPlacementConfig,kind:la.config.adPlacementConfig.kind,contentCpn:d,daiEnabled:f}):
G.push.apply(G,g.ma(Pa))}if(null===a.u||f)return a=f&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null===(m=null===(l=b[0].config)||void 0===l?void 0:l.adPlacementConfig)||void 0===m?void 0:m.kind)&&(null===(n=b[0].renderer)||void 0===n?void 0:n.adBreakServiceRenderer),G.length||a||MF("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(t=null===(r=null===(p=b[0])||void 0===p?void 0:p.config)||
void 0===r?void 0:r.adPlacementConfig)||void 0===t?void 0:t.kind,renderer:null===(w=b[0])||void 0===w?void 0:w.renderer}),G;c=c.filter(BF);G.push.apply(G,g.ma(Uoa(I,c,a.fb.get(),a.u,d)));G.length||MF("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:d,daiEnabled:f,"first APR kind":null===(E=null===(y=null===(x=b[0])||void 0===x?void 0:x.config)||void 0===y?void 0:y.adPlacementConfig)||void 0===E?void 0:E.kind,renderer:null===(D=b[0])||
void 0===D?void 0:D.renderer});return G};
Apa=function(a,b,c,d,e,f,h,l){function m(w){return CP(a.eb.get(),w)}
var n=c.renderer,p=c.config.adPlacementConfig,r=p.kind,t=c.adSlotLoggingData;if(null!=n.actionCompanionAdRenderer)dQ(b,c.elementId,r,n.actionCompanionAdRenderer.adVideoId,p,t,function(w,x,y){var E=a.Ab.get(),D=n.actionCompanionAdRenderer,G=CP(a.eb.get(),w);return pQ(E,w.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new NE(D),x,y,D.impressionPings,G,n.actionCompanionAdRenderer.adLayoutLoggingData)});
else if(n.imageCompanionAdRenderer)dQ(b,c.elementId,r,n.imageCompanionAdRenderer.adVideoId,p,t,function(w,x,y){var E=a.Ab.get(),D=n.imageCompanionAdRenderer,G=CP(a.eb.get(),w);return pQ(E,w.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new RE(D),x,y,D.impressionPings,G,n.imageCompanionAdRenderer.adLayoutLoggingData)});
else if(n.shoppingCompanionCarouselRenderer)dQ(b,c.elementId,r,n.shoppingCompanionCarouselRenderer.adVideoId,p,t,function(w,x,y){var E=a.Ab.get(),D=n.shoppingCompanionCarouselRenderer,G=CP(a.eb.get(),w);return pQ(E,w.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new SE(D),x,y,D.impressionPings,G,n.shoppingCompanionCarouselRenderer.adLayoutLoggingData)});
else{if(n.adBreakServiceRenderer){if(!FF(c))return[];if(f&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===p.kind){if(!a.Ii)return new CF("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");Bpa(a.Ii,{adPlacementRenderer:c,contentCpn:d,xC:e});return[]}return Oha(a.fb.get(),p,t,c.renderer.adBreakServiceRenderer,d,e,f)}if(n.clientForecastingAdRenderer)return npa(a.fb.get(),a.Ab.get(),p,t,n.clientForecastingAdRenderer,d,e,m);if(n.invideoOverlayAdRenderer)return ppa(a.fb.get(),
a.Ab.get(),p,t,n.invideoOverlayAdRenderer,d,e,m);if(n.linearAdSequenceRenderer){if(f)return gpa(a.fb.get(),a.Ab.get(),c,d,m);cQ(b,n,r);return zpa(a.fb.get(),a.Ab.get(),p,t,n.linearAdSequenceRenderer,d,e,h,m,l,a.loadPolicy)}if((!n.remoteSlotsRenderer||f)&&n.instreamVideoAdRenderer&&!f)return cQ(b,n,r),xpa(a.fb.get(),a.Ab.get(),p,t,n.instreamVideoAdRenderer,d,e,h,m,l,a.loadPolicy)}return[]};
qQ=function(a){g.B.call(this);this.u=a};
IE=function(a,b,c,d){a.u().fh(b,d);c=c();a=a.u();rQ(a.Eb,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.q(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;AK(d.Eb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.u;if(g.oc(c.slotId))throw new CF("Slot ID was empty");if(JP(e,c))throw new CF("Duplicate registration for slot.");if(!e.dd.Kj.has(c.Ya))throw new CF("No fulfillment adapter factory registered for slot of type: "+c.Ya);if(!e.dd.tk.has(c.Ya))throw new CF("No SlotAdapterFactory registered for slot of type: "+
c.Ya);$P(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.Wb?[c.Wb]:[]);$P(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",c.oe);$P(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.jf);var f=d.u,h=c.Ya+"_"+c.feedPosition,l=UP(f,h);if(JP(f,c))throw new CF("Duplicate slots not supported");l.set(c.slotId,new Loa(c));f.u.set(h,l)}catch(lc){MF(lc,c,void 0,void 0,lc.Wl);break a}JP(d.u,c).J=!0;try{var m=d.u,n=JP(m,c),p=c.Wb,r=m.dd.Eg.get(p.triggerType);r&&(r.mh("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.da.set(p.triggerId,r));for(var t=g.q(c.oe),
w=t.next();!w.done;w=t.next()){var x=w.value,y=m.dd.Eg.get(x.triggerType);y&&(y.mh("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.X.set(x.triggerId,y))}for(var E=g.q(c.jf),D=E.next();!D.done;D=E.next()){var G=D.value,I=m.dd.Eg.get(G.triggerType);I&&(I.mh("TRIGGER_CATEGORY_SLOT_EXPIRATION",G,c,null),n.S.set(G.triggerId,I))}var H=m.dd.Kj.get(c.Ya).get(),Ba=m.C,la=c;var Pa=sQ(la,{ge:["metadata_type_fulfilled_layout"]})?new tQ(Ba,la):H.u(Ba,la);n.K=Pa;var Sa=m.dd.tk.get(c.Ya).get().u(m.F,c);Sa.init();
n.B=Sa}catch(lc){MF(lc,c,void 0,void 0,lc.Wl);GP(d,c,!0);break a}AK(d.Eb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.u.Bg(c);la=g.q(d.B);for(var $a=la.next();!$a.done;$a=la.next())$a.value.Bg(c);OP(d,c)}};
uQ=function(a,b,c,d){g.B.call(this);var e=this;this.sb=a;this.fb=b;this.zb=c;this.u=new Map;d.get().addListener(this);g.Yf(this,function(){d.get().removeListener(e)})};
Lha=function(a,b){var c=0x8000000000000;for(var d=0,e=g.q(b.oe),f=e.next();!f.done;f=e.next())f=f.value,f instanceof JF?(c=Math.min(c,f.D.start),d=Math.max(d,f.D.end)):MF("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new In(c,d);d="throttledadcuerange:"+b.slotId;a.u.set(d,b);a.zb.get().addCueRange(d,c.start,c.end,!1,a)};
vQ=function(){g.B.apply(this,arguments);this.Vi=!0;this.u=new Map;this.B=new Map};
bN=function(a,b){for(var c=g.q(a.B.values()),d=c.next();!d.done;d=c.next()){d=g.q(d.value);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.layoutId===b)return e}MF("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.oc(b)),layoutId:b})};
wQ=function(){this.B=new Map;this.u=new Map;this.C=new Map};
xQ=function(a,b){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return Qt()};
eQ=function(a,b,c){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.u.get(b)||0;d++;a.u.set(b,d);return c+"_"+b+"_"+d}return Qt()};
yQ=function(a,b){if(g.L("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return Qt()};
Cpa=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=a(this.triggerType)};
mQ=function(a,b){this.u=b;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=a(this.triggerType)};
fQ=function(a,b){this.u=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
Dpa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
zQ=function(a,b){this.D=b;this.Ya="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
AQ=function(a,b){this.D=b;this.Ya="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
iQ=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=a(this.triggerType)};
Epa=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)};
cpa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
gQ=function(a,b){this.u=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=a(this.triggerType)};
hQ=function(a,b){this.u=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=a(this.triggerType)};
lQ=function(a,b){this.durationMs=45E3;this.u=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
Fpa=function(a){return[new cF(a.ww),new ZE(a.instreamAdPlayerOverlayRenderer),new fF(a.IG),new VE(a.adPlacementConfig),new jF(a.videoLengthSeconds),new xF(a.yE)]};
Gpa=function(a,b,c,d,e,f){a=c.Iy?c.Iy:eQ(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Xa:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Nc:new Map,Jd:[new fQ(function(l){return yQ(f,l)},c.ww)],
ld:[],kd:[],Kd:[],Xa:b,wa:d,Yc:e(h),adLayoutLoggingData:c.adLayoutLoggingData}};
BQ=function(a,b){var c=this;this.Ca=a;this.Sa=b;this.u=function(d){return yQ(c.Sa.get(),d)}};
CQ=function(a,b,c,d,e){return Gpa(b,c,d,new yP(Fpa(d)),e,a.Sa.get())};
pQ=function(a,b,c,d,e,f,h,l,m){b=eQ(a.Sa.get(),c,b);var n={layoutId:b,layoutType:c,Xa:"core"},p=new Map;h&&p.set("impression",h);return{layoutId:b,layoutType:c,Nc:p,Jd:[new iQ(a.u,b),new zQ(a.u,e)],ld:[],kd:[],Kd:[],Xa:"core",wa:new yP([d,new VE(f),new cF(e)]),Yc:l(n),adLayoutLoggingData:m}};
kQ=function(a,b,c){var d=[];d.push(new AQ(a.u,c));g.Q(a.Ca.get().I.T().experiments,"html5_make_pacf_in_video_overlay_evictable")||b&&d.push(b);return d};
jQ=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Xa:"core"};return{layoutId:b,layoutType:c,Nc:new Map,Jd:h,ld:[new Cpa(a.u,b)],kd:[],Kd:[],Xa:"core",wa:new yP([new QE(d),new VE(e)]),Yc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
qpa=function(a,b,c,d,e){var f=eQ(a.Sa.get(),"LAYOUT_TYPE_MEDIA_BREAK",b),h={layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xa:"adapter"};b=new Map;new iQ(a.u,f);a=[new gQ(a.u,f)];c=new yP([new VE(c)]);d=d(h);return{pw:{layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Nc:b,Jd:[],ld:[],kd:[],Kd:[],Xa:"adapter",wa:c,Yc:d,adLayoutLoggingData:e},Fx:a,Ex:[]}};
vpa=function(a,b,c,d,e,f,h,l,m,n){var p=c.elementId,r={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",Xa:b};d=[new VE(d),new WE(l),new XE(c.externalVideoId),new YE(h),new ZE(c.playerOverlay.instreamAdPlayerOverlayRenderer),new zF({impressionCommands:c.impressionCommands,onAbandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands,adVideoProgressCommands:c.adVideoProgressCommands}),new kF(e),new gF({current:null}),new jF(f)];e=xQ(a.Sa.get(),"SLOT_TYPE_IN_PLAYER");f=eQ(a.Sa.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",
e);d.push(new dF(f));d.push(new eF(e));c.adNextParams&&d.push(new OE(c.adNextParams));c.clickthroughEndpoint&&d.push(new PE(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new yF(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new lF(c.sodarExtensionData));n&&d.push(new wF(n));return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA",Nc:VI(c.pings),Jd:[new iQ(a.u,p)],ld:c.skipOffsetMilliseconds?[new gQ(a.u,f)]:[],kd:[new gQ(a.u,f)],Kd:[],Xa:b,wa:new yP(d),Yc:m(r),adLayoutLoggingData:c.adLayoutLoggingData}};
ipa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return xP(p,[],["LAYOUT_TYPE_MEDIA"])})||MF("Unexpect subLayout type for DAI composite layout");
b=eQ(a.Sa.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Xa:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Nc:f,Jd:[new Dpa(a.u)],ld:[],kd:[],Kd:[],Xa:"core",wa:new yP([new mF(c),new nF(m),new hF(d),new VE(e),new sF(h)]),Yc:l(n)}};
lpa=function(a){return null!=a};
DQ=function(a,b,c){this.C=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
EQ=function(a,b,c){this.u=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
Hpa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
FQ=function(a,b,c){this.C=b;this.D=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
GQ=function(a,b){this.D=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=a(this.triggerType)};
HQ=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
IQ=function(a,b){this.B=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=a(this.triggerType)};
JQ=function(a,b){this.B=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=a(this.triggerType)};
KQ=function(a,b){this.B=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
LQ=function(a,b){this.B=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
MQ=function(a,b){this.B=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
NQ=function(a){var b=this;this.Sa=a;this.u=function(c){return yQ(b.Sa.get(),c)}};
EF=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=xQ(a.Sa.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Sn&&d.Sn.start!==d.kh.start&&l.push(new JF(a.u,c,new In(d.Sn.start,d.kh.start),!1));l.push(new JF(a.u,c,new In(d.kh.start,d.kh.end),d.Rv));d={getAdBreakUrl:b.getAdBreakUrl,oH:d.kh.start,nH:d.kh.end};b=new LQ(a.u,h);f=[new uF(d)].concat(g.ma(f));return{slotId:h,Ya:"SLOT_TYPE_AD_BREAK_REQUEST",feedPosition:1,Wb:b,oe:l,jf:[new GQ(a.u,c),new JQ(a.u,h),new KQ(a.u,h)],Xa:"core",wa:new yP(f),adSlotLoggingData:e}};
Jpa=function(a,b,c){var d=[];c=g.q(c);for(var e=c.next();!e.done;e=c.next())d.push(Ipa(a,b,e.value));return d};
Ipa=function(a,b,c){return null!=c.B&&c.B===a?c.clone(b):c};
rpa=function(a,b,c,d){var e=xQ(a.Sa.get(),"SLOT_TYPE_IN_PLAYER"),f=new IF(a.u,b),h={slotId:e,Ya:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Xa:"core",Wb:f};return{slotId:e,Ya:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Wb:f,oe:[new IQ(a.u,e)],jf:[new JQ(a.u,e),new GQ(a.u,c)],Xa:"core",wa:new yP([new tF(d(h,b))]),adSlotLoggingData:void 0}};
Kpa=function(a,b,c,d,e){e=e?e:xQ(a.Sa.get(),"SLOT_TYPE_IN_PLAYER");c=new IF(a.u,c);var f={slotId:e,Ya:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Xa:"core",Wb:c};return{slotId:e,Ya:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Wb:c,oe:[new IQ(a.u,e)],jf:[new GQ(a.u,b),new JQ(a.u,e)],Xa:"core",wa:new yP([new tF(d(f))])}};
opa=function(a,b,c,d,e,f){var h=OQ(a,b,c,d);if(h instanceof CF)return h;h instanceof JF&&(h=new JF(a.u,h.C,h.D,h.visible,h.F,!0));d=h instanceof JF?new FQ(a.u,c,h.D):null;b=xQ(a.Sa.get(),"SLOT_TYPE_IN_PLAYER");f=f({slotId:b,Ya:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Xa:"core",Wb:h},d);return f instanceof LP?new CF(f):{slotId:b,Ya:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Wb:h,oe:[new IQ(a.u,b)],jf:[new GQ(a.u,c),new JQ(a.u,b)],Xa:"core",wa:new yP([new tF(f)]),adSlotLoggingData:e}};
bpa=function(a,b,c,d){var e=xQ(a.Sa.get(),"SLOT_TYPE_IN_PLAYER");c=new IF(a.u,c);var f={slotId:e,Ya:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Xa:"core",Wb:c};return{slotId:e,Ya:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Wb:c,oe:[new IQ(a.u,e)],jf:[new GQ(a.u,b),new JQ(a.u,e)],Xa:"core",wa:new yP([new tF(d(f))])}};
Yoa=function(a,b,c,d,e){var f=xQ(a.Sa.get(),"SLOT_TYPE_IN_PLAYER");c=new EQ(a.u,d,c);d={slotId:f,Ya:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Xa:"core",Wb:c};return{slotId:f,Ya:"SLOT_TYPE_IN_PLAYER",feedPosition:1,Wb:c,oe:[new IQ(a.u,f)],jf:[new GQ(a.u,b)],Xa:"core",wa:new yP([new tF(e(d))])}};
Toa=function(a,b,c,d,e,f){var h=xQ(a.Sa.get(),b);return Lpa(a,h,b,new IF(a.u,d),c,e,f)};
Soa=function(a,b,c,d,e,f){return Lpa(a,c,b,new HQ(a.u,c),d,e,f)};
epa=function(a,b,c){var d=xQ(a.Sa.get(),"SLOT_TYPE_PLAYER_BYTES"),e=new Hpa(a.u),f={slotId:d,Ya:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,Xa:"core",Wb:e};return{slotId:d,Ya:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,Wb:e,oe:[new MQ(a.u,d)],jf:[new GQ(a.u,b)],Xa:"core",wa:new yP([new tF(c(f)),new pF({})])}};
wpa=function(a,b,c,d,e,f){var h=xQ(a.Sa.get(),"SLOT_TYPE_PLAYER_BYTES");b=OQ(a,b,c,d);if(b instanceof CF)return b;f=f({slotId:h,Ya:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,Xa:"core",Wb:b});return f instanceof CF?f:{JG:{slotId:h,Ya:"SLOT_TYPE_PLAYER_BYTES",feedPosition:1,Wb:b,oe:[new IQ(a.u,h)],jf:[new JQ(a.u,h),new GQ(a.u,c)],Xa:"core",wa:new yP([new tF(f.layout)]),adSlotLoggingData:e},fi:f.fi}};
mpa=function(a,b,c,d,e,f){var h=xQ(a.Sa.get(),"SLOT_TYPE_FORECASTING");b=OQ(a,b,c,d);if(b instanceof CF)return b;d={slotId:h,Ya:"SLOT_TYPE_FORECASTING",feedPosition:1,Xa:"core",Wb:b};return{slotId:h,Ya:"SLOT_TYPE_FORECASTING",feedPosition:1,Wb:b,oe:[new IQ(a.u,h)],jf:[new JQ(a.u,h),new GQ(a.u,c)],Xa:"core",wa:new yP([new tF(f(d))]),adSlotLoggingData:e}};
OQ=function(a,b,c,d){var e=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new GF(a.u,c);case "AD_PLACEMENT_KIND_MILLISECONDS":b=DF(b,d);if(b instanceof CF)return b;b=b.kh;return new JF(a.u,c,b,e,b.end===d);case "AD_PLACEMENT_KIND_END":return new DQ(a.u,c,e);default:return new CF("Cannot construct entry trigger",{kind:b.kind})}};
Lpa=function(a,b,c,d,e,f,h){var l={slotId:b,Ya:c,feedPosition:1,Xa:"core",Wb:d};return{slotId:b,Ya:c,feedPosition:1,Wb:d,oe:[new MQ(a.u,b)],jf:[new GQ(a.u,e),new JQ(a.u,b)],Xa:"core",wa:new yP([new tF(h(l))]),adSlotLoggingData:f}};
PQ=function(a,b,c){g.B.call(this);this.Ca=a;this.u=b;this.Da=c;this.eventCount=0};
AK=function(a,b,c){rQ(a,b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData,void 0)};
KP=function(a,b,c,d){rQ(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,void 0,d?d.adLayoutLoggingData:void 0)};
Coa=function(a,b,c,d){g.Q(a.Ca.get().I.T().experiments,"html5_control_flow_include_trigger_logging_in_tmp_logs")&&rQ(a,"ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,void 0,d?d.adLayoutLoggingData:void 0)};
rQ=function(a,b,c,d,e,f,h,l,m,n){if(g.Q(a.Ca.get().I.T().experiments,"html5_enable_ads_client_monitoring_log")&&!g.Q(a.Ca.get().I.T().experiments,"html5_disable_client_tmp_logs")&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){var p=BP(a.u.get());b={eventType:b,eventOrder:++a.eventCount};var r=g.P(a.Ca.get().I.T().experiments,"html5_experiment_id_label"),t={organicPlaybackContext:{contentCpn:KE(a.Da.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=KE(a.Da.get(),1).Yg;0<r&&(t.html5ExperimentContext=
{ytExperimentId:r});a={};f&&(a.slotData=AP(p,f));h&&(a.layoutData=woa(p,h));l&&(a.triggerData=voa(l.trigger,l.category));c&&(a.opportunityData=xoa(p,c,d,e));t&&(a.externalContext=t);b.adClientData=a;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);g.ir("adsClientStateChange",{adsClientEvent:b})}};
QQ=function(){this.u=new Map};
RQ=function(a,b,c,d,e){g.B.call(this);this.C=b;this.ua=c;this.Ca=d;this.Zd=e;this.listeners=[];var f=new Bt(this);g.C(this,f);f.N(a,"internalAbandon",this.B);g.Yf(this,function(){g.Dt(f)})};
Mpa=function(a,b,c,d,e,f,h){var l;if(""===b)MF("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else{a.u=b;a.ua.get().dj(b,c,d,e,f,h);null===(l=a.Zd)||void 0===l?void 0:l.get().dj(b,c,d,e,f,h);a.C.dj(b,c,d,e,f,h);a=g.q(a.listeners);for(var m=a.next();!m.done;m=a.next())m.value.dj(b,c,d,e,f,h)}};
Npa=function(a,b){a.u=void 0;for(var c=g.q(a.listeners),d=c.next();!d.done;d=c.next())d.value.Om(b)};
SQ=function(a){g.B.call(this);this.I=a;this.u=new Map;this.B=new Bt(this);g.C(this,this.B);this.B.N(this.I,g.TF("ad"),this.C,this);this.B.N(this.I,g.UF("ad"),this.D,this)};
Opa=function(a,b,c,d,e){g.QF.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
TQ=function(a){this.I=a};
UQ=function(a){this.I=a};
VQ=function(a){return g.Q(a.I.T().experiments,"html5_enable_in_video_overlay_ad_in_pacf")};
WQ=function(a){if(g.YD(a.I.T()))return!1;if(ZD(a.I.T()))return g.Q(a.I.T().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_remix");var b=g.WD(a.I.T())||a.I.T().u||g.$D(a.I.T())||aE(a.I.T())||ND(a.I.T());a=g.LD(a.I.T())&&g.Q(a.I.T().experiments,"html5_enable_video_overlay_on_inplayer_slot_for_tv");return b||a};
gN=function(a){return g.Q(a.I.T().experiments,"html5_handle_preroll_lock_in_pacf")};
Ppa=function(a){return g.Q(a.I.T().experiments,"html5_recognize_predict_start_cue_point")};
XQ=function(a,b){this.ua=a;this.I=b;this.u=new Map;TI().subscribe("adactiveviewmeasurable",this.C,this);TI().subscribe("adfullyviewableaudiblehalfdurationimpression",this.B,this);TI().subscribe("adviewableimpression",this.D,this)};
Qpa=function(a,b,c,d){d=void 0===d?null:d;a.u.has(b)?MF("Unexpected registration of layout in LidarApi"):(a.u.set(b,d),Oia(TI(),b,{qq:function(){return c?{currentTime:VP(a.ua.get(),2,!1),duration:c,Fb:2===a.ua.get().getPresentingPlayerType()&&1===YQ(a.ua.get(),2),c5:!1,d5:!0,volume:a.ua.get().isMuted()?0:a.ua.get().getVolume()/100}:{}}}))};
Rpa=function(a,b){a.u.has(b)?(a.u["delete"](b),delete TI().u[b]):MF("Unexpected unregistration of layout in LidarApi")};
Nna=function(a,b,c){if(!a.u.has(b))return{};if("seek"===c)return a=g.Q(a.I.T().experiments,"html5_dai_enable_active_view_creating_completed_adblock"),zl(b,a),{};c=AJ(c);if(null===c)return{};var d=a.I.fc();d=d&&2===d.getPlayerType()&&QJ(d);if(!d)return{};a={opt_adElement:d,opt_fullscreen:a.ua.get().isFullscreen()};return yl(c,b,a)};
ZQ=function(a,b){this.u=a;this.C=b};
$Q=function(a,b,c,d){var e=void 0===e?new ZQ(function(){var f=a.getVideoData(1);return f?f.nf():""},function(){return a.T().pageId}):e;
this.I=a;this.Ld=b;this.ib=c;this.Da=d;this.Ip=e;this.B=null;this.u=new Map;this.gi=new tJ(e)};
Tpa=function(a,b,c,d,e,f){d=void 0===d?[]:d;var h=bN(a.Ld.get(),c);h?(c=tO(a,Ona(h),h),b.hasOwnProperty("baseUrl")?a.Ip.send(b,c):a.gi.send(b,c,{},d)):b.hasOwnProperty("baseUrl")?MF("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c,adPodDebugInfo:f,playerType:String(a.I.getPresentingPlayerType()),ping:Spa(b.baseUrl),commandsDebugInfo:e}):MF("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c,adPodDebugInfo:f,playerType:String(a.I.getPresentingPlayerType()),ping:Spa(b),
commandsDebugInfo:e})};
Spa=function(a){if(!a)return"empty url";var b=a.length;if(300>b)return a;var c="";if(a.includes("event=")){var d=a.indexOf("event=");c=c.concat(a.substring(d,d+100),", ")}a.includes("label=")&&(d=a.indexOf("label="),c=c.concat(a.substring(d,d+100)));return 0<c.length?c:a.substring(0,Math.min(b,300))};
aR=function(a,b){g.ir("adsClientStateChange",b)};
bR=function(a,b){a.u.has(b.uq())?MF("Trying to register an existing AdErrorInfoSupplier."):a.u.set(b.uq(),b)};
cR=function(a,b){a.u["delete"](b.uq())||MF("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
Ona=function(a){var b=W(a.wa,"metadata_type_ad_placement_config");a=W(a.wa,"metadata_type_sub_layout_index");return{adPlacementConfig:b,zE:a}};
tO=function(a,b,c){var d=c?Upa(a):{};c=c?Vpa(a,c.layoutId):{};var e={},f={};d=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kJ(a.I)),Wia(b.adPlacementConfig)),(e.SLOT_POS=jJ(function(){return(b.zE||0).toString()}),e)),c),d),(f.FINAL=jJ(function(){return"1"}),f.AD_CPN=jJ(function(){var l;
return(null===(l=KE(a.Da.get(),2))||void 0===l?void 0:l.clientPlaybackNonce)||""}),f));
c={};e=g.q(Object.values(Wpa));for(f=e.next();!f.done;f=e.next()){f=f.value;var h=d[f];null!=h&&(c[f]=h.toString())}return c};
Upa=function(a){var b,c={},d=null===(b=a.B)||void 0===b?void 0:b.u();null!=d&&(c.SURVEY_ELAPSED_MS=jJ(function(){return(1E3*d).toString()}));
c.SURVEY_LOCAL_TIME_EPOCH_S=jJ(function(){return Math.round(Date.now()/1E3).toString()});
return c};
Vpa=function(a,b){var c=a.u.get(b);if(!c)return{};c=c.fy();if(!c)return{};var d={};return d.YT_ERROR_CODE=c.Pw.toString(),d.ERRORCODE=c.Bs.toString(),d.ERROR_MSG=c.errorMessage,d};
g.dR=function(){Bt.apply(this,arguments)};
eR=function(a,b){g.B.call(this);this.I=a;this.Mc=b;this.listeners=[];var c=new g.dR(this);g.C(this,c);c.N(a,"videodatachange",this.kR);this.u=KE(this);this.contentCpn=KE(this,1).clientPlaybackNonce};
KE=function(a,b){var c=a.I.getVideoData(b);return c?a.Zs(c,b||a.I.getPresentingPlayerType()):null};
fR=function(a){g.B.call(this);this.I=a;this.listeners=[];this.u=function(){MF("Called 'doUnlockPreroll' before it's initialized.")};
var b=new Bt(this);g.C(this,b);b.N(a,"progresssync",this.jQ);b.N(a,"presentingplayerstatechange",this.ZP);b.N(a,"fullscreentoggled",this.iM);b.N(a,"onVolumeChange",this.jM);b.N(a,"minimized",this.jj);b.N(a,"resize",this.Ua)};
VP=function(a,b,c){return a.I.getCurrentTime(b,c)};
YQ=function(a,b){return g.NJ(a.I,b)};
Xpa=function(a){var b=g.mJ(a.I).Cf();a=a.I.Ni(!0,!0);return b.height-(a.height+a.top)};
Ypa=function(a,b){var c=a.I.T();BD(c)||"3"!==c.controlsType||yJ(g.mJ(a.I),b)};
Zpa=function(a,b,c){g.B.call(this);var d=this;this.Sa=X(function(){return new wQ});
g.C(this,this.Sa);this.Ab=X(function(){return new BQ(d.Ca,d.Sa)});
g.C(this,this.Ab);this.Gb=X(function(){return new vQ});
g.C(this,this.Gb);this.sb=X(function(){return new qQ(a)});
g.C(this,this.sb);this.fb=X(function(){return new NQ(d.Sa)});
g.C(this,this.fb);this.Mc=X(function(){return new QQ});
g.C(this,this.Mc);this.zb=X(function(){return new SQ(b)});
g.C(this,this.zb);this.tc=X(function(){return new TQ(b)});
g.C(this,this.tc);this.Ca=X(function(){return new UQ(b)});
g.C(this,this.Ca);this.eb=X(function(){return new DP(d.Ca)});
g.C(this,this.eb);this.qc=X(function(){return new oQ(d.fb,d.Ab,d.eb,null,null)});
g.C(this,this.qc);this.Da=X(function(){return new eR(b,d.Mc)});
g.C(this,this.Da);this.Eb=new PQ(this.Ca,this.eb,this.Da);g.C(this,this.Eb);this.ua=X(function(){return new fR(b)});
g.C(this,this.ua);this.ib=X(function(){return new XQ(d.ua,b)});
g.C(this,this.ib);this.Ga=X(function(){return new $Q(b,d.Gb,d.ib,d.Da)});
g.C(this,this.Ga);this.Nb=new NF(this.sb,this.qc,c,this.Ca,a,this.Da);g.C(this,this.Nb);var e=new RQ(b,this.Nb,this.ua,this.Ca);this.Rd=X(function(){return e});
this.ik=e;this.fd=new uQ(this.sb,this.fb,this.zb,this.Rd);g.C(this,this.fd);this.Pb=new HE(this.sb,this.fb,this.qc,this.Da,this.fd,c);g.C(this,this.Pb);this.dd={Tm:new Map,Kj:new Map,Eg:new Map,tk:new Map,ak:new Map};this.listeners=[];this.Fe={Pb:this.Pb,Bi:null,ck:null,tg:this.Ca.get(),Al:this.ua.get(),Nb:this.Nb,bk:null,Yh:{Fq:function(){}},
uf:this.Gb.get()}};
gR=function(a){this.u=a};
hR=function(){};
$pa=function(a,b){b.siub&&b.bgub&&b.scs&&b.bgp&&Te(b.siub,b.scs,b.bgub,b.bgp)};
aqa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.Ab=c;this.eb=d;this.Ca=e;this.u=null};
bqa=function(a,b,c){a.u&&MF("Currently active request ongoing for slot. This should never happen",a.slot);a.u=b();a.u.then(function(d){a.u=null;c&&c(d);var e;if(e=VQ(a.Ca.get()))if(e=!d.kn)a:{e=g.q(a.slot.oe);for(var f=e.next();!f.done;f=e.next())if(f.value instanceof GF){e=!0;break a}e=!1}if(e)for(e=g.q(d.wh),f=e.next();!f.done;f=e.next())f=f.value,f.renderer&&f.renderer.invideoOverlayAdRenderer&&MF("Detected deferred preroll overlay.",a.slot,void 0,{kind:f.config&&f.config.adPlacementConfig&&f.config.adPlacementConfig.kind||
"unknown"});e=d.kn?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE";f=a.Ab.get();var h=a.slot.slotId,l=CP(a.eb.get(),{slotId:a.slot.slotId,Ya:a.slot.Ya,feedPosition:a.slot.feedPosition,Xa:a.slot.Xa,Wb:a.slot.Wb}),m=eQ(f.Sa.get(),e,h),n={layoutId:m,layoutType:e,Xa:"core"};d={layoutId:m,layoutType:e,Nc:new Map,Jd:[new Epa(f.u,h)],ld:[],kd:[],Kd:[],Xa:"core",wa:new yP([new vF(d)]),Yc:l(n)};Aoa(a.callback,a.slot,d)},function(d){a.u=null;
d instanceof Gm||HP(a.callback,a.slot,new CF(d,void 0,!0))})};
cqa=function(a){if(null==a.u)Boa(a.callback,a.slot);else try{a.u.cancel(),a.u=null,Boa(a.callback,a.slot)}catch(b){a.u=null,HP(a.callback,a.slot,new CF(b))}};
iR=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.od=c;this.C=new aqa(a,b,d,e,f)};
jR=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.od=c;this.C=new aqa(a,b,d,e,f)};
tQ=function(a,b){this.callback=a;this.slot=b};
sQ=function(a,b){return AF(a,b.ge,b.Ya)?!0:!1};
dqa=function(){};
kR=function(a,b,c,d){this.od=a;this.Ab=b;this.eb=c;this.Ca=d};
lR=function(){};
eqa=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.u=d};
mR=function(a,b){return xP(a,b.ge,b.Xf)?!0:!1};
nR=function(a){this.B=a};
fqa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ga=d;this.u=e;a=W(this.layout.wa,"metadata_type_ad_placement_config");this.Ia=new rO(c.Nc,this.Ga,a,c.layoutId)};
gqa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];sO().forEach(function(b){a.push(b)});
return{ge:a,Xf:["LAYOUT_TYPE_FORECASTING"]}};
oR=function(a,b,c){this.Ga=a;this.B=b;this.ib=c};
pR=function(a,b,c,d){g.O.call(this);this.callback=a;this.slot=b;this.layout=c;this.u=d;this.tj=[]};
qR=function(a,b,c,d,e,f,h){e=W(c.wa,e);a=uO(a);var l=cb(function(){d.md(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.Yc},function(){l()}))};
rR=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.q(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.Ya&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.I.sendVideoStatsEngageEvent(1,void 0,2):e?e():MF("Tried to call engagePingCallback but it is null",h,l)}}else MF("Companion AdUxClick received without a layoutId",h,l)};
sR=function(a,b,c,d,e,f,h,l){pR.call(this,a,b,c,d);this.Ga=e;this.ee=f;this.Ld=l;this.Vi=!0;this.Ch=null;this.Jp="action-companion";this.bj=W(c.wa,"metadata_type_linked_player_bytes_layout_id");FP(this.ee(),this);a=W(c.wa,"metadata_type_ad_placement_config");this.Ia=new rO(c.Nc,this.Ga,a,c.layoutId)};
hqa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];sO().forEach(function(b){a.push(b)});
return{ge:a,Xf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
tR=function(a,b,c,d,e){pR.call(this,a,b,c,d);a=W(c.wa,"metadata_type_ad_placement_config");this.Ia=new rO(c.Nc,e,a,c.layoutId)};
iqa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];sO().forEach(function(b){a.push(b)});
return{ge:a,Xf:["LAYOUT_TYPE_ENDCAP"]}};
uR=function(a,b,c,d,e,f,h){pR.call(this,a,b,c,d);this.ua=e;this.Ga=f;this.Ld=h;this.B=!1;this.bj=W(this.layout.wa,"metadata_type_linked_player_bytes_layout_id")};
jqa=function(){return{ge:["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"],Xf:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
vR=function(a,b,c,d,e,f,h){return mR(c,jqa())?new uR(a,b,c,d,e,f,h):mR(c,iqa())?new tR(a,b,c,d,f):null};
wR=function(a,b,c,d){this.Sb=a;this.ua=b;this.Ga=c;this.Ld=d};
xR=function(a,b,c,d){g.B.call(this);this.callback=a;this.Vc=b;this.ua=c;this.Oc=d};
yR=function(a,b,c,d,e,f,h,l){xR.call(this,a,b,c,d);this.D=e;this.slot=f;this.layout=h;this.F=l;this.u=[];this.B=-1};
AR=function(a){a.B===a.u.length-1?zR(a.F,a.layout.layoutId):(-1===a.B&&a.callback.md(a.slot,a.layout),a.B++,a=a.u[a.B],a.startRendering(a.Pc()))};
BR=function(a){return!a.wl.Fb()&&a.state.Fb()};
CR=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
ER=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,E,D,G,I){g.B.call(this);var H=this;this.callback=a;this.slot=b;this.layout=c;this.ee=d;this.Ga=e;this.ib=f;this.xd=h;this.Vc=l;this.Da=m;this.ua=n;this.zb=p;this.Oc=r;this.tc=t;this.zd=w;this.kc=x;this.Cd=y;this.C=E;this.position=G;this.S=I;this.Vi=!0;this.adCpn="";this.J=!1;this.B="not_rendering";a=W(this.layout.wa,"metadata_type_ad_placement_config");this.Ia=new rO(c.Nc,this.Ga,a,c.layoutId);this.D=new g.F(function(){DR(H,"load_timeout",new LP("Media layout load timeout.",
{},!0))},1E4);
this.K=cb(function(){"rendering_stop_requested"!==H.B&&D(H);H.F?H.callback.td(H.slot,H.layout,H.F):MF("Received layout exit signal when not in layout exit flow.",H.slot,H.layout)})};
kqa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.q(sO()),c=b.next();!c.done;c=b.next())a.push(c.value);return{ge:a,Xf:["LAYOUT_TYPE_MEDIA"]}};
DR=function(a,b,c){a.P={Pw:3,Bs:"load_timeout"===b?402:400,errorMessage:c.message};wO(a.Ia,"error");a.callback.If(a.slot,a.layout,c)};
lqa=function(a,b,c){c=void 0===c?!1:c;var d,e=a.Ia,f=1E3*b,h=c;for(h=void 0===h?!1:h;e.B<e.C.length;){var l=e.C[e.B];if(l.offsetMilliseconds<=f||h)Mna(e,"progress",[l]),e.B++;else break}if(e=null===(d=KE(a.Da.get(),2))||void 0===d?void 0:d.playbackDurationMs)e/=1E3,(b>=.25*e||c)&&wO(a.Ia,"first_quartile"),(b>=.5*e||c)&&wO(a.Ia,"midpoint"),(b>=.75*e||c)&&wO(a.Ia,"third_quartile")};
mqa=function(a,b){GL(a.Oc.get(),W(a.layout.wa,"metadata_type_ad_placement_config").kind,b,a.position,a.S,!1)};
FR=function(a,b,c,d,e){xR.call(this,a,b,c,d);this.u=e};
oqa=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,E,D){if(mR(d,{ge:["metadata_type_sub_layouts"],Xf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})){var G=W(d.wa,"metadata_type_sub_layouts");a=new yR(a,n,r,w,b,c,d,f);b=[];for(var I={Rl:0};I.Rl<G.length;I={Rl:I.Rl},I.Rl++){var H=nqa({md:a.TQ.bind(a),td:a.VQ.bind(a),If:a.UQ.bind(a)},c,G[I.Rl],e,h,l,m,n,p,r,t,w,x,y,E,D,function(Ba){return function(la){la.nh(G[Ba.Rl],"normal")}}(I),I.Rl,G.length);
if(!H)return;b.push(H)}a.u=b;return a}if(mR(d,{ge:[],Xf:["LAYOUT_TYPE_MEDIA"]}))return(c=nqa({md:a.md.bind(a),td:a.td.bind(a),If:a.If.bind(a)},c,d,e,h,l,m,n,p,r,t,w,x,y,E,D,function(){zR(f,d.layoutId)},0,1))?new FR(a,n,r,w,c):c};
nqa=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,E,D,G){if(mR(c,kqa()))return c.wa.u.has("metadata_type_ad_intro")?new ER(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,function(I){t.get().u("onAdIntroStateChange",I)},E,D,G):new ER(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,function(I){var H=t.get();
Oma(H.I,I)},E,D,G)};
GR=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w){this.ee=a;this.B=b;this.Ga=c;this.ib=d;this.xd=e;this.Vc=f;this.Da=h;this.ua=l;this.zb=m;this.Oc=n;this.tc=p;this.zd=r;this.kc=t;this.Cd=w};
HR=function(a,b,c,d,e,f,h,l){g.B.call(this);this.u=a;this.C=b;this.B=c;this.sb=d;this.fb=e;this.eb=f;this.Ca=h;this.Da=l;this.Vi=!0};
pqa=function(a){var b;return WQ(a.Ca.get())?!0:!(null===(b=KE(a.Da.get()))||void 0===b||!b.daiEnabled)};
IR=function(a){var b,c=null===(b=W(a.wa,"metadata_type_player_bytes_callback_ref"))||void 0===b?void 0:b.current;if(c){var d=a.layoutId,e=W(a.wa,"metadata_type_content_cpn"),f=W(a.wa,"metadata_type_instream_ad_player_overlay_renderer"),h=W(a.wa,"metadata_type_ad_placement_config"),l=W(a.wa,"metadata_type_video_length_seconds");var m=a.wa.u.has("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?W(a.wa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):a.wa.u.has("metadata_type_layout_enter_ms")&&a.wa.u.has("metadata_type_layout_exit_ms")?
(W(a.wa,"metadata_type_layout_exit_ms")-W(a.wa,"metadata_type_layout_enter_ms"))/1E3:void 0;a={ww:d,contentCpn:e,IG:c,instreamAdPlayerOverlayRenderer:f,adPlacementConfig:h,videoLengthSeconds:l,yE:m,adLayoutLoggingData:a.adLayoutLoggingData,Iy:W(a.wa,"metadata_type_linked_in_player_layout_id"),QD:W(a.wa,"metadata_type_linked_in_player_slot_id")}}else a=null;return a};
qqa=function(a,b){var c,d=null===(c=W(a.wa,"metadata_type_player_bytes_callback_ref"))||void 0===c?void 0:c.current;if(!d)return null;if(a.wa.u.has("metadata_ad_video_is_listed"))var e=W(a.wa,"metadata_ad_video_is_listed");else b?e=b.isListed:(MF("No layout metadata nor AdPlayback specified for ad video isListed"),e=!1);if(a.wa.u.has("metadata_type_ad_info_ad_metadata"))var f=W(a.wa,"metadata_type_ad_info_ad_metadata");else b?f={channelId:b.lg,channelThumbnailUrl:b.df,channelTitle:b.author,videoTitle:b.title}:
(MF("No layout metadata nor AdPlayback specified for AdMetaData"),f={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{DJ:f,adLayoutLoggingData:a.adLayoutLoggingData,adPlacementConfig:W(a.wa,"metadata_type_ad_placement_config"),GJ:e,contentCpn:W(a.wa,"metadata_type_content_cpn"),Iy:W(a.wa,"metadata_type_linked_in_player_layout_id"),QD:W(a.wa,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:W(a.wa,"metadata_type_instream_ad_player_overlay_renderer"),
yE:void 0,IG:d,ww:a.layoutId,videoLengthSeconds:W(a.wa,"metadata_type_video_length_seconds")}};
rqa=function(a,b){this.callback=a;this.slot=b};
JR=function(){};
sqa=function(a,b,c){this.callback=a;this.slot=b;this.ua=c};
tqa=function(a,b,c){this.callback=a;this.slot=b;this.ua=c;this.u=!1};
uqa=function(a){a.u&&(a.ua.get().u(),a.u=!1)};
KR=function(a){this.ua=a};
LR=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
MR=function(a){g.B.call(this);this.pz=a;this.nb=new Map};
NR=function(a,b){MR.call(this,a);var c=this;b.get().addListener(this);g.Yf(this,function(){b.get().removeListener(c)})};
OR=function(a){g.B.call(this);this.u=a;this.Vi=!0;this.nb=new Map;this.F=new Set;this.C=new Set;this.D=new Set;this.J=new Set;this.B=new Set};
PR=function(a,b){g.B.call(this);var c=this;this.u=a;this.nb=new Map;b.get().addListener(this);g.Yf(this,function(){b.get().removeListener(c)})};
vqa=function(a,b,c){var d=[];a=g.q(a.values());for(var e=a.next();!e.done;e=a.next())e=e.value,e.trigger instanceof GQ&&e.trigger.D===b===c&&d.push(e);return d};
QR=function(a,b,c,d){g.B.call(this);var e=this;this.C=a;this.zb=b;this.ua=c;this.Da=d;this.nb=new Map;this.u=new Set;this.B=new Set;c.get().addListener(this);g.Yf(this,function(){c.get().removeListener(e)})};
RR=function(a,b,c,d,e,f,h,l,m,n){if(KE(a.Da.get(),1).clientPlaybackNonce!==m)throw new CF("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.nb.set(c.triggerId,{bundle:new LR(b,c,d,e),u:f});a.zb.get().addCueRange(f,h,l,n,a)};
wqa=function(a,b){for(var c=g.q(a.nb.entries()),d=c.next();!d.done;d=c.next()){var e=g.q(d.value);d=e.next().value;e=e.next().value;if(b===e.u)return d}return""};
SR=function(a){g.B.call(this);this.C=a;this.Vi=!0;this.nb=new Map;this.B=this.u=null};
zR=function(a,b){for(var c=[],d=g.q(a.nb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof iQ){var f;if(f=e.trigger.layoutId===b)f=(f=Doa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&RP(a.C(),c)};
TR=function(a){g.B.call(this);this.u=a;this.Vi=!0;this.nb=new Map};
UR=function(a,b,c,d,e,f){g.B.call(this);this.C=a;this.Md=b;this.eb=c;this.Da=d;this.Ca=e;this.Sa=f;this.u=this.B=null;this.Md.get().addListener(this)};
VR=function(a,b){this.Vw=a;this.Ca=b};
xqa=function(a,b){if(!a)return{wh:[],kn:!0};a.trackingParams&&iM(gM(),a.trackingParams);if(a.adThrottled)return{wh:[],kn:!0};var c=a.playerAds;if(!c||!c.length)return{wh:[],kn:!1};c=c.map(function(e){return e.adPlacementRenderer}).filter(function(e){return!(!e||!e.renderer)});
if(!c.length)return{wh:[],kn:!1};if(0<b.end){var d=b.end.toString();c.forEach(function(e){(e=e.config&&e.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===e.kind&&e.adTimeOffset&&"-1"===e.adTimeOffset.offsetEndMilliseconds&&e.adTimeOffset.offsetEndMilliseconds!==d&&(e.adTimeOffset.offsetEndMilliseconds=d)})}return{wh:c,
kn:!1}};
WR=function(a){g.B.call(this);this.I=a;this.listeners=[];this.u=new Bt(this);g.C(this,this.u);this.u.N(this.I,"aduxclicked",this.onAdUxClicked);this.u.N(this.I,"aduxmouseover",this.hM);this.u.N(this.I,"aduxmouseout",this.gM);this.u.N(this.I,"muteadaccepted",this.oO)};
yqa=function(a,b,c){b=g.Mc(b,function(d){return new ZF(d,c,d.id)});
a.I.ya("onAdUxUpdate",b)};
YR=function(a,b){for(var c=g.q(a.listeners),d=c.next();!d.done;d=c.next())b(d.value)};
ZR=function(a){this.I=a};
$R=function(a){this.I=a};
aS=function(){this.listeners=[]};
zqa=function(a){this.I=a};
Aqa=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Da=d;this.fg=e;this.Zd=f;this.ua=h;this.Ia=l;this.Ga=m;this.B=n;this.u=null;this.driftRecoveryMs=W(c.wa,"metadata_type_drift_recovery_ms")||null};
Cqa=function(a,b){var c=Bqa(a,b);a.u={Mg:c};c&&c.startRendering(c.Pc())};
Eqa=function(a){var b=W(a.layout.wa,"metadata_type_layout_enter_ms"),c=W(a.layout.wa,"metadata_type_layout_exit_ms");a=Dqa(a.Zd.get(),b,c);return Math.min(c,null!==a?a:Infinity)};
Bqa=function(a,b){return null==b?null:a.B.find(function(c){return c.Pc().layoutId===b})||null};
bS=function(a,b){var c;aR(a.Ga.get(),{driftRecoveryInfo:Object.assign({contentCpn:null===(c=a.Da.get().u)||void 0===c?void 0:c.clientPlaybackNonce,adClientData:a.layout.Yc.adClientDataEntry},b)})};
Fqa=function(a,b,c,d,e,f,h,l,m){this.callback=a;this.slot=b;this.layout=c;this.fg=d;this.Ia=e;this.ua=f;this.Mc=h;this.ib=l;this.xd=m;this.da=!0;this.u=null};
Gqa=function(a,b,c,d){var e=W(a.layout.wa,"metadata_type_video_length_seconds");0>=e||0>=c||g.T(b,16)||g.T(b,32)||(CR(c,.25*e,d)&&wO(a.Ia,"first_quartile"),CR(c,.5*e,d)&&wO(a.Ia,"midpoint"),CR(c,.75*e,d)&&wO(a.Ia,"third_quartile"))};
Hqa=function(a){return Object.assign(Object.assign({},cS(a)),{adPlacementConfig:W(a.wa,"metadata_type_ad_placement_config"),subLayouts:W(a.wa,"metadata_type_sub_layouts").map(cS)})};
cS=function(a){return{enterMs:W(a.wa,"metadata_type_layout_enter_ms"),exitMs:W(a.wa,"metadata_type_layout_exit_ms")}};
dS=function(a,b,c,d,e,f,h,l,m,n,p,r,t,w,x,y,E){this.ee=a;this.B=b;this.Da=c;this.fg=d;this.ua=e;this.Ga=f;this.Mc=h;this.Zd=l;this.ib=m;this.xd=n;this.Vc=p;this.zb=r;this.Oc=t;this.tc=w;this.zd=x;this.kc=y;this.Cd=E};
eS=function(a,b,c,d,e,f,h){g.B.call(this);var l=this;this.sb=a;this.fb=b;this.Da=c;this.Zd=e;this.ua=f;this.Ca=h;this.u=null;d.get().addListener(this);g.Yf(this,function(){d.get().removeListener(l)});
e.get().addListener(this);g.Yf(this,function(){e.get().removeListener(l)})};
Bpa=function(a,b){if(KE(a.Da.get(),1).daiEnabled&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===b.adPlacementRenderer.config.adPlacementConfig.kind)if(a.u)MF("Unexpected multiple fetch instructions for the current content");else{a.u=b;for(var c=g.q(a.Zd.get().u),d=c.next();!d.done;d=c.next())Iqa(a,a.u,d.value)}};
Iqa=function(a,b,c){var d=VP(a.ua.get(),1,!1);IE(a.sb.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.fb.get(),f=g.Q(a.Ca.get().I.T().experiments,"enable_server_stitched_dai");var h=1E3*c.startSecs;h={kh:new In(h,h+1E3*c.durationSecs),Rv:!1};var l=c.startSecs+c.durationSecs;if(c.startSecs<=d)f=new In(1E3*(c.startSecs-4),1E3*l);else{var m=Math.max(0,c.startSecs-d-10);f=new In(1E3*Math.floor(d+Math.random()*(f?0===d?0:Math.min(m,5):m)),1E3*l)}h.Sn=f;return[EF(e,b.adPlacementRenderer.renderer.adBreakServiceRenderer,
b.contentCpn,h,b.adPlacementRenderer.adSlotLoggingData,[new iF(c)])]})};
fS=function(a,b){var c;g.B.call(this);var d=this;this.D=a;this.B=new Map;this.C=new Map;this.u=null;b.get().addListener(this);g.Yf(this,function(){b.get().removeListener(d)});
this.u=(null===(c=b.get().u)||void 0===c?void 0:c.slotId)||null};
Jqa=function(a,b){for(var c=[],d=g.q(a.values()),e=d.next();!e.done;e=d.next())e=e.value,e.slot.slotId===b&&c.push(e);return c};
gS=function(a,b,c,d){g.B.call(this);this.I=a;this.Da=b;this.Ca=c;this.Ga=d;this.listeners=[];this.B=new Set;this.u=[];this.D=new tL(this,Ppa(c.get()));this.C=new uL;Kqa(this)};
Dqa=function(a,b,c){return vL(a.C,b,c)};
Kqa=function(a){var b,c=a.I.getVideoData(1);c.subscribe("cuepointupdated",a.Lz,a);a.B.clear();a.u.length=0;c=(null===(b=c.va)||void 0===b?void 0:eC(b,0))||[];a.Lz(c)};
Lqa=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");}};
Mqa=function(a){this.I=a};
Oqa=function(a,b,c){Nqa(a.I,b,c)};
hS=function(){this.listeners=new Set};
iS=function(a,b,c,d,e,f,h,l){pR.call(this,a,b,c,d);this.Ga=e;this.ee=f;this.Ld=l;this.Vi=!0;this.Ch=null;this.Jp="image-companion";this.bj=W(c.wa,"metadata_type_linked_player_bytes_layout_id");FP(this.ee(),this);a=W(c.wa,"metadata_type_ad_placement_config");this.Ia=new rO(c.Nc,this.Ga,a,c.layoutId)};
Pqa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];sO().forEach(function(b){a.push(b)});
return{ge:a,Xf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
jS=function(a,b,c,d,e,f,h,l){pR.call(this,a,b,c,d);this.Ga=e;this.ee=f;this.Ld=l;this.Vi=!0;this.Ch=null;this.Jp="shopping-companion";this.bj=W(c.wa,"metadata_type_linked_player_bytes_layout_id");FP(this.ee(),this);a=W(c.wa,"metadata_type_ad_placement_config");this.Ia=new rO(c.Nc,this.Ga,a,c.layoutId)};
Qqa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];sO().forEach(function(b){a.push(b)});
return{ge:a,Xf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
Rqa=function(a,b,c,d,e){this.Sb=a;this.Ga=b;this.ee=c;this.Ld=d;this.ib=e};
kS=function(a,b,c,d,e,f,h,l,m,n){pR.call(this,f,a,b,e);this.Ga=c;this.B=h;this.ua=l;this.kc=m;this.Ca=n;this.Ia=Pna(b,c)};
Sqa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];sO().forEach(function(b){a.push(b)});
return{ge:a,Xf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
lS=function(a,b,c,d,e,f,h,l,m,n,p){pR.call(this,f,a,b,e);this.Ga=c;this.B=h;this.D=l;this.ua=m;this.kc=n;this.Ca=p;this.Ia=Pna(b,c)};
mS=function(a,b,c,d,e,f,h,l,m){this.Sb=a;this.ua=b;this.Ga=c;this.Ld=d;this.ib=e;this.B=f;this.C=h;this.kc=l;this.Ca=m};
nS=function(a){g.B.call(this);this.u=a;this.nb=new Map};
oS=function(a,b){for(var c=[],d=g.q(a.nb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.layoutId===b.layoutId&&c.push(e);c.length&&RP(a.u(),c)};
pS=function(a){g.B.call(this);this.C=a;this.Vi=!0;this.nb=new Map;this.u=new Map;this.B=new Map};
Tqa=function(a,b){var c=[],d=a.u.get(b.layoutId);if(d){d=g.q(d);for(var e=d.next();!e.done;e=d.next())(e=a.B.get(e.value.triggerId))&&c.push(e)}return c};
qS=function(a,b,c){g.B.call(this);this.C=a;this.aj=b;this.Sa=c;this.u=this.B=void 0;this.aj.get().addListener(this)};
Uqa=function(a,b,c,d,e){g.B.call(this);var f=this;this.Sa=X(function(){return new wQ});
g.C(this,this.Sa);this.Ab=X(function(){return new BQ(f.Ca,f.Sa)});
g.C(this,this.Ab);this.Gb=X(function(){return new vQ});
g.C(this,this.Gb);this.sb=X(function(){return new qQ(a)});
g.C(this,this.sb);this.fb=X(function(){return new NQ(f.Sa)});
g.C(this,this.fb);this.Mc=X(function(){return new QQ});
g.C(this,this.Mc);this.zd=X(function(){return new VJ(b.T())});
g.C(this,this.zd);this.Sb=X(function(){return new WR(b)});
g.C(this,this.Sb);this.kc=X(function(){return new gR(e)});
g.C(this,this.kc);this.Oc=X(function(){return new EL(b)});
g.C(this,this.Oc);this.zb=X(function(){return new SQ(b)});
g.C(this,this.zb);this.Vc=X(function(){return new ZR(b)});
g.C(this,this.Vc);this.tc=X(function(){return new TQ(b)});
g.C(this,this.tc);this.Ca=X(function(){return new UQ(b)});
g.C(this,this.Ca);this.od=X(function(){return new VR(d,f.Ca)});
g.C(this,this.od);this.eb=X(function(){return new DP(f.Ca)});
g.C(this,this.eb);this.qc=X(function(){return new oQ(f.fb,f.Ab,f.eb,"SLOT_TYPE_ABOVE_FEED",f.Ii)});
g.C(this,this.qc);this.Cd=X(function(){return new $R(b)});
g.C(this,this.Cd);this.Md=X(function(){return new aS});
g.C(this,this.Md);this.aj=X(function(){return new hS});
g.C(this,this.aj);this.Da=X(function(){return new eR(b,f.Mc)});
g.C(this,this.Da);this.Eb=new PQ(this.Ca,this.eb,this.Da);g.C(this,this.Eb);this.Zd=X(function(){return new gS(b,f.Da,f.Ca,f.Ga)});
g.C(this,this.Zd);this.fg=X(function(){return new Mqa(b)});
g.C(this,this.fg);this.ua=X(function(){return new fR(b)});
g.C(this,this.ua);this.xd=X(function(){return new hR});
this.ib=X(function(){return new XQ(f.ua,b)});
g.C(this,this.ib);this.Ga=X(function(){return new $Q(b,f.Gb,f.ib,f.Da)});
g.C(this,this.Ga);this.bf=new HR(IR,rS,function(l,m,n,p){return CQ(f.Ab.get(),l,m,n,p)},this.sb,this.fb,this.eb,this.Ca,this.Da);
g.C(this,this.bf);this.Nb=new NF(this.sb,this.qc,c,this.Ca,a,this.Da);g.C(this,this.Nb);var h=new RQ(b,this.Nb,this.ua,this.Ca,this.Zd);this.Rd=X(function(){return h});
this.ik=h;this.Ii=new eS(this.sb,this.fb,this.Da,this.Rd,this.Zd,this.ua,this.Ca);g.C(this,this.Ii);this.fd=new uQ(this.sb,this.fb,this.zb,this.Rd);g.C(this,this.fd);this.Pb=new HE(this.sb,this.fb,this.qc,this.Da,this.fd,c);g.C(this,this.Pb);this.Le=X(function(){return new kR(f.od,f.Ab,f.eb,f.Ca)});
g.C(this,this.Le);this.xc=X(function(){return new lR});
g.C(this,this.xc);this.Ad=new NR(a,this.Sb);g.C(this,this.Ad);this.Va=new OR(a);g.C(this,this.Va);this.jm=new nS(a);g.C(this,this.jm);this.Bd=new PR(a,this.Rd);g.C(this,this.Bd);this.rd=new QR(a,this.zb,this.ua,this.Da);g.C(this,this.rd);this.Km=new fS(a,this.Da);g.C(this,this.Km);this.hc=new SR(a);g.C(this,this.hc);this.Ze=new TR(a);g.C(this,this.Ze);this.ln=new pS(a);g.C(this,this.ln);this.sc=X(function(){return new JR});
g.C(this,this.sc);this.cf=X(function(){return new KR(f.ua)});
g.C(this,this.cf);this.SB=X(function(){return new Rqa(f.Sb,f.Ga,a,f.Gb,f.ib)});
g.C(this,this.SB);this.Ke=X(function(){return new nR(f.Pb)});
g.C(this,this.Ke);this.Ne=X(function(){return new oR(f.Ga,f.hc,f.ib)});
g.C(this,this.Ne);this.af=X(function(){return new dS(a,f.hc,f.Da,f.fg,f.ua,f.Ga,f.Mc,f.Zd,f.ib,f.xd,f.Vc,f.zb,f.Oc,f.tc,f.zd,f.kc,f.Cd)});
g.C(this,this.af);this.Lh=X(function(){return new mS(f.Sb,f.ua,f.Ga,f.Gb,f.ib,f.jm,f.ln,f.kc,f.Ca)});
g.C(this,this.Lh);this.Zw=new qS(a,this.aj,this.Sa);g.C(this,this.Zw);this.kk=new UR(a,this.Md,this.eb,this.Da,this.Ca,this.Sa);g.C(this,this.kk);this.dd={Tm:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Pb],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ii],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.bf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Nb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.fd]]),Kj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Le],["SLOT_TYPE_ABOVE_FEED",this.xc],["SLOT_TYPE_FORECASTING",this.xc],["SLOT_TYPE_IN_PLAYER",this.xc],["SLOT_TYPE_PLAYER_BYTES",this.xc]]),Eg:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ad],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Va],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Va],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",
this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Va],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Va],["TRIGGER_TYPE_CLOSE_REQUESTED",this.jm],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Bd],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.rd],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.rd],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.rd],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Km],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Km],
["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.hc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bd],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ze],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.ln]]),tk:new Map([["SLOT_TYPE_ABOVE_FEED",this.sc],["SLOT_TYPE_AD_BREAK_REQUEST",this.sc],["SLOT_TYPE_FORECASTING",this.sc],["SLOT_TYPE_IN_PLAYER",this.sc],["SLOT_TYPE_PLAYER_BYTES",this.cf]]),ak:new Map([["SLOT_TYPE_ABOVE_FEED",
this.SB],["SLOT_TYPE_AD_BREAK_REQUEST",this.Ke],["SLOT_TYPE_FORECASTING",this.Ne],["SLOT_TYPE_PLAYER_BYTES",this.af],["SLOT_TYPE_IN_PLAYER",this.Lh]])};this.listeners=[this.Gb.get()];this.Fe={Pb:this.Pb,Bi:this.hc,ck:this.Md.get(),tg:this.Ca.get(),Al:this.ua.get(),Nb:this.Nb,bk:this.aj.get(),Yh:this.Ad,uf:this.Gb.get()}};
Vqa=function(a,b,c,d,e){g.B.call(this);var f=this;this.Sa=X(function(){return new wQ});
g.C(this,this.Sa);this.Ab=X(function(){return new BQ(f.Ca,f.Sa)});
g.C(this,this.Ab);this.Gb=X(function(){return new vQ});
g.C(this,this.Gb);this.sb=X(function(){return new qQ(a)});
g.C(this,this.sb);this.fb=X(function(){return new NQ(f.Sa)});
g.C(this,this.fb);this.Mc=X(function(){return new QQ});
g.C(this,this.Mc);this.zd=X(function(){return new VJ(b.T())});
g.C(this,this.zd);this.Sb=X(function(){return new WR(b)});
g.C(this,this.Sb);this.kc=X(function(){return new gR(e)});
g.C(this,this.kc);this.Oc=X(function(){return new EL(b)});
g.C(this,this.Oc);this.zb=X(function(){return new SQ(b)});
g.C(this,this.zb);this.Vc=X(function(){return new ZR(b)});
g.C(this,this.Vc);this.tc=X(function(){return new TQ(b)});
g.C(this,this.tc);this.Ca=X(function(){return new UQ(b)});
g.C(this,this.Ca);this.od=X(function(){return new VR(d,f.Ca)});
g.C(this,this.od);this.eb=X(function(){return new DP(f.Ca)});
g.C(this,this.eb);this.qc=X(function(){return new oQ(f.fb,f.Ab,f.eb,null,null)});
g.C(this,this.qc);this.Cd=X(function(){return new $R(b)});
g.C(this,this.Cd);this.Md=X(function(){return new aS});
g.C(this,this.Md);this.aj=X(function(){return new hS});
g.C(this,this.aj);this.Da=X(function(){return new eR(b,f.Mc)});
g.C(this,this.Da);this.Eb=new PQ(this.Ca,this.eb,this.Da);g.C(this,this.Eb);this.ua=X(function(){return new fR(b)});
g.C(this,this.ua);this.ib=X(function(){return new XQ(f.ua,b)});
g.C(this,this.ib);this.Ga=X(function(){return new $Q(b,f.Gb,f.ib,f.Da)});
g.C(this,this.Ga);this.xd=X(function(){return new hR});
g.C(this,this.xd);this.bf=new HR(IR,rS,function(l,m,n,p){return CQ(f.Ab.get(),l,m,n,p)},this.sb,this.fb,this.eb,this.Ca,this.Da);
g.C(this,this.bf);this.Nb=new NF(this.sb,this.qc,c,this.Ca,a,this.Da);g.C(this,this.Nb);var h=new RQ(b,this.Nb,this.ua,this.Ca);this.Rd=X(function(){return h});
this.ik=h;this.fd=new uQ(this.sb,this.fb,this.zb,this.Rd);g.C(this,this.fd);this.Pb=new HE(this.sb,this.fb,this.qc,this.Da,this.fd,c);g.C(this,this.Pb);this.Le=X(function(){return new kR(f.od,f.Ab,f.eb,f.Ca)});
g.C(this,this.Le);this.xc=X(function(){return new lR});
g.C(this,this.xc);this.Ad=new NR(a,this.Sb);g.C(this,this.Ad);this.Va=new OR(a);g.C(this,this.Va);this.jm=new nS(a);g.C(this,this.jm);this.Bd=new PR(a,this.Rd);g.C(this,this.Bd);this.rd=new QR(a,this.zb,this.ua,this.Da);g.C(this,this.rd);this.hc=new SR(a);g.C(this,this.hc);this.Ze=new TR(a);g.C(this,this.Ze);this.ln=new pS(a);g.C(this,this.ln);this.sc=X(function(){return new JR});
g.C(this,this.sc);this.cf=X(function(){return new KR(f.ua)});
g.C(this,this.cf);this.Ke=X(function(){return new nR(f.Pb)});
g.C(this,this.Ke);this.Ne=X(function(){return new oR(f.Ga,f.hc,f.ib)});
g.C(this,this.Ne);this.Lh=X(function(){return new mS(f.Sb,f.ua,f.Ga,f.Gb,f.ib,f.jm,f.ln,f.kc,f.Ca)});
g.C(this,this.Lh);this.af=X(function(){return new GR(a,f.hc,f.Ga,f.ib,f.xd,f.Vc,f.Da,f.ua,f.zb,f.Oc,f.tc,f.zd,f.kc,f.Cd)});
g.C(this,this.af);this.Zw=new qS(a,this.aj,this.Sa);g.C(this,this.Zw);this.kk=new UR(a,this.Md,this.eb,this.Da,this.Ca,this.Sa);g.C(this,this.kk);this.dd={Tm:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Pb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.bf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Nb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.fd]]),Kj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Le],["SLOT_TYPE_FORECASTING",this.xc],
["SLOT_TYPE_IN_PLAYER",this.xc],["SLOT_TYPE_PLAYER_BYTES",this.xc]]),Eg:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ad],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Va],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Va],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.Va],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Va],["TRIGGER_TYPE_CLOSE_REQUESTED",this.jm],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Bd],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.rd],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.rd],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.rd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.hc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bd],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",
this.Ze],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.ln]]),tk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.sc],["SLOT_TYPE_FORECASTING",this.sc],["SLOT_TYPE_IN_PLAYER",this.sc],["SLOT_TYPE_PLAYER_BYTES",this.cf]]),ak:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ke],["SLOT_TYPE_FORECASTING",this.Ne],["SLOT_TYPE_IN_PLAYER",this.Lh],["SLOT_TYPE_PLAYER_BYTES",this.af]])};this.listeners=[this.Gb.get()];this.Fe={Pb:this.Pb,Bi:null,ck:this.Md.get(),tg:this.Ca.get(),Al:this.ua.get(),Nb:this.Nb,bk:this.aj.get(),
Yh:this.Ad,uf:this.Gb.get()}};
Wqa=function(a,b,c,d,e){g.B.call(this);var f=this;this.Sa=X(function(){return new wQ});
g.C(this,this.Sa);this.Ab=X(function(){return new BQ(f.Ca,f.Sa)});
g.C(this,this.Ab);this.Gb=X(function(){return new vQ});
g.C(this,this.Gb);this.sb=X(function(){return new qQ(a)});
g.C(this,this.sb);this.fb=X(function(){return new NQ(f.Sa)});
g.C(this,this.fb);this.Mc=X(function(){return new QQ});
g.C(this,this.Mc);this.zd=X(function(){return new VJ(b.T())});
g.C(this,this.zd);this.Sb=X(function(){return new WR(b)});
g.C(this,this.Sb);this.kc=X(function(){return new gR(e)});
g.C(this,this.kc);this.Oc=X(function(){return new EL(b)});
g.C(this,this.Oc);this.zb=X(function(){return new SQ(b)});
g.C(this,this.zb);this.Vc=X(function(){return new ZR(b)});
g.C(this,this.Vc);this.tc=X(function(){return new TQ(b)});
g.C(this,this.tc);this.Ca=X(function(){return new UQ(b)});
g.C(this,this.Ca);this.od=X(function(){return new VR(d,f.Ca)});
g.C(this,this.od);this.eb=X(function(){return new DP(f.Ca)});
g.C(this,this.eb);this.qc=X(function(){return new oQ(f.fb,f.Ab,f.eb,null,null)});
g.C(this,this.qc);this.Cd=X(function(){return new $R(b)});
g.C(this,this.Cd);this.Md=X(function(){return new aS});
g.C(this,this.Md);this.Da=X(function(){return new eR(b,f.Mc)});
g.C(this,this.Da);this.Eb=new PQ(this.Ca,this.eb,this.Da);g.C(this,this.Eb);this.ua=X(function(){return new fR(b)});
g.C(this,this.ua);this.ib=X(function(){return new XQ(f.ua,b)});
g.C(this,this.ib);this.Ga=X(function(){return new $Q(b,f.Gb,f.ib,f.Da)});
g.C(this,this.Ga);this.xd=X(function(){return new hR});
g.C(this,this.xd);this.bf=new HR(IR,rS,function(l,m,n,p){return CQ(f.Ab.get(),l,m,n,p)},this.sb,this.fb,this.eb,this.Ca,this.Da);
g.C(this,this.bf);this.Nb=new NF(this.sb,this.qc,c,this.Ca,a,this.Da);g.C(this,this.Nb);var h=new RQ(b,this.Nb,this.ua,this.Ca);this.Rd=X(function(){return h});
this.ik=h;this.fd=new uQ(this.sb,this.fb,this.zb,this.Rd);g.C(this,this.fd);this.Pb=new HE(this.sb,this.fb,this.qc,this.Da,this.fd,c);g.C(this,this.Pb);this.Le=X(function(){return new kR(f.od,f.Ab,f.eb,f.Ca)});
g.C(this,this.Le);this.xc=X(function(){return new lR});
g.C(this,this.xc);this.Ad=new NR(a,this.Sb);g.C(this,this.Ad);this.Va=new OR(a);g.C(this,this.Va);this.Bd=new PR(a,this.Rd);g.C(this,this.Bd);this.rd=new QR(a,this.zb,this.ua,this.Da);g.C(this,this.rd);this.hc=new SR(a);g.C(this,this.hc);this.Ze=new TR(a);g.C(this,this.Ze);this.sc=X(function(){return new JR});
g.C(this,this.sc);this.cf=X(function(){return new KR(f.ua)});
g.C(this,this.cf);this.Ke=X(function(){return new nR(f.Pb)});
g.C(this,this.Ke);this.Ne=X(function(){return new oR(f.Ga,f.hc,f.ib)});
g.C(this,this.Ne);this.CG=X(function(){return new wR(f.Sb,f.ua,f.Ga,f.Gb)});
g.C(this,this.CG);this.af=X(function(){return new GR(a,f.hc,f.Ga,f.ib,f.xd,f.Vc,f.Da,f.ua,f.zb,f.Oc,f.tc,f.zd,f.kc,f.Cd)});
g.C(this,this.af);this.kk=new UR(a,this.Md,this.eb,this.Da,this.Ca,this.Sa);g.C(this,this.kk);this.dd={Tm:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Pb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.bf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Nb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.fd]]),Kj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Le],["SLOT_TYPE_FORECASTING",this.xc],["SLOT_TYPE_IN_PLAYER",this.xc],["SLOT_TYPE_PLAYER_BYTES",
this.xc]]),Eg:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ad],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Va],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Va],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Va],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Bd],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.rd],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.rd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.hc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bd],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ze]]),tk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.sc],["SLOT_TYPE_ABOVE_FEED",this.sc],["SLOT_TYPE_FORECASTING",this.sc],["SLOT_TYPE_IN_PLAYER",this.sc],["SLOT_TYPE_PLAYER_BYTES",
this.cf]]),ak:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ke],["SLOT_TYPE_FORECASTING",this.Ne],["SLOT_TYPE_IN_PLAYER",this.CG],["SLOT_TYPE_PLAYER_BYTES",this.af]])};this.listeners=[this.Gb.get()];this.Fe={Pb:this.Pb,Bi:null,ck:this.Md.get(),tg:this.Ca.get(),Al:this.ua.get(),Nb:this.Nb,bk:null,Yh:this.Ad,uf:this.Gb.get()}};
Xqa=function(a,b,c,d,e){g.B.call(this);var f=this;this.Sa=X(function(){return new wQ});
g.C(this,this.Sa);this.Ab=X(function(){return new BQ(f.Ca,f.Sa)});
g.C(this,this.Ab);this.Gb=X(function(){return new vQ});
g.C(this,this.Gb);this.sb=X(function(){return new qQ(a)});
g.C(this,this.sb);this.fb=X(function(){return new NQ(f.Sa)});
g.C(this,this.fb);this.Mc=X(function(){return new QQ});
g.C(this,this.Mc);this.zd=X(function(){return new VJ(b.T())});
g.C(this,this.zd);this.Sb=X(function(){return new WR(b)});
g.C(this,this.Sb);this.kc=X(function(){return new gR(e)});
g.C(this,this.kc);this.Oc=X(function(){return new EL(b)});
g.C(this,this.Oc);this.zb=X(function(){return new SQ(b)});
g.C(this,this.zb);this.Vc=X(function(){return new ZR(b)});
g.C(this,this.Vc);this.tc=X(function(){return new TQ(b)});
g.C(this,this.tc);this.Ca=X(function(){return new UQ(b)});
g.C(this,this.Ca);this.od=X(function(){return new VR(d,f.Ca)});
g.C(this,this.od);this.eb=X(function(){return new DP(f.Ca)});
g.C(this,this.eb);this.qc=X(function(){return new oQ(f.fb,f.Ab,f.eb,null,null)});
g.C(this,this.qc);this.Cd=X(function(){return new $R(b)});
g.C(this,this.Cd);this.Md=X(function(){return new aS});
g.C(this,this.Md);this.Da=X(function(){return new eR(b,f.Mc)});
g.C(this,this.Da);this.Eb=new PQ(this.Ca,this.eb,this.Da);g.C(this,this.Eb);this.ua=X(function(){return new fR(b)});
g.C(this,this.ua);this.ib=X(function(){return new XQ(f.ua,b)});
g.C(this,this.ib);this.Ga=X(function(){return new $Q(b,f.Gb,f.ib,f.Da)});
g.C(this,this.Ga);this.xd=X(function(){return new hR});
g.C(this,this.xd);this.bf=new HR(IR,rS,function(l,m,n,p){return CQ(f.Ab.get(),l,m,n,p)},this.sb,this.fb,this.eb,this.Ca,this.Da);
g.C(this,this.bf);this.Nb=new NF(this.sb,this.qc,c,this.Ca,a,this.Da);g.C(this,this.Nb);var h=new RQ(b,this.Nb,this.ua,this.Ca);this.Rd=X(function(){return h});
this.ik=h;this.fd=new uQ(this.sb,this.fb,this.zb,this.Rd);g.C(this,this.fd);this.Pb=new HE(this.sb,this.fb,this.qc,this.Da,this.fd,c);g.C(this,this.Pb);this.Le=X(function(){return new kR(f.od,f.Ab,f.eb,f.Ca)});
g.C(this,this.Le);this.xc=X(function(){return new lR});
g.C(this,this.xc);this.Ad=new NR(a,this.Sb);g.C(this,this.Ad);this.Va=new OR(a);g.C(this,this.Va);this.Bd=new PR(a,this.Rd);g.C(this,this.Bd);this.rd=new QR(a,this.zb,this.ua,this.Da);g.C(this,this.rd);this.hc=new SR(a);g.C(this,this.hc);this.Ze=new TR(a);g.C(this,this.Ze);this.sc=X(function(){return new JR});
g.C(this,this.sc);this.cf=X(function(){return new KR(f.ua)});
g.C(this,this.cf);this.Ke=X(function(){return new nR(f.Pb)});
g.C(this,this.Ke);this.Ne=X(function(){return new oR(f.Ga,f.hc,f.ib)});
g.C(this,this.Ne);this.Lh=X(function(){return new wR(f.Sb,f.ua,f.Ga,f.Gb)});
g.C(this,this.Lh);this.af=X(function(){return new GR(a,f.hc,f.Ga,f.ib,f.xd,f.Vc,f.Da,f.ua,f.zb,f.Oc,f.tc,f.zd,f.kc,f.Cd)});
g.C(this,this.af);this.kk=new UR(a,this.Md,this.eb,this.Da,this.Ca,this.Sa);g.C(this,this.kk);this.dd={Tm:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Pb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.bf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Nb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.fd]]),Kj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Le],["SLOT_TYPE_FORECASTING",this.xc],["SLOT_TYPE_IN_PLAYER",this.xc],["SLOT_TYPE_PLAYER_BYTES",
this.xc]]),Eg:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ad],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Va],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Va],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Va],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Bd],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.rd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.hc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bd],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ze]]),tk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.sc],["SLOT_TYPE_FORECASTING",this.sc],["SLOT_TYPE_IN_PLAYER",this.sc],["SLOT_TYPE_PLAYER_BYTES",this.cf]]),ak:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ke],["SLOT_TYPE_FORECASTING",
this.Ne],["SLOT_TYPE_IN_PLAYER",this.Lh],["SLOT_TYPE_PLAYER_BYTES",this.af]])};this.listeners=[this.Gb.get()];this.Fe={Pb:this.Pb,Bi:null,ck:this.Md.get(),tg:this.Ca.get(),Al:this.ua.get(),Nb:this.Nb,bk:null,Yh:this.Ad,uf:this.Gb.get()}};
sS=function(a,b,c,d,e,f,h,l){uR.call(this,a,b,c,d,e,f,h);this.Hn=l};
Yqa=function(a,b,c,d,e){this.Sb=a;this.ua=b;this.Ga=c;this.Ld=d;this.Hn=e};
Zqa=function(a,b,c,d,e){g.B.call(this);var f=this;this.Sa=X(function(){return new wQ});
g.C(this,this.Sa);this.Ab=X(function(){return new BQ(f.Ca,f.Sa)});
g.C(this,this.Ab);this.Gb=X(function(){return new vQ});
g.C(this,this.Gb);this.sb=X(function(){return new qQ(a)});
g.C(this,this.sb);this.fb=X(function(){return new NQ(f.Sa)});
g.C(this,this.fb);this.Mc=X(function(){return new QQ});
g.C(this,this.Mc);this.Hn=X(function(){return new zqa(b)});
g.C(this,this.Hn);this.zd=X(function(){return new VJ(b.T())});
g.C(this,this.zd);this.Sb=X(function(){return new WR(b)});
g.C(this,this.Sb);this.kc=X(function(){return new gR(e)});
g.C(this,this.kc);this.Oc=X(function(){return new EL(b)});
g.C(this,this.Oc);this.zb=X(function(){return new SQ(b)});
g.C(this,this.zb);this.Vc=X(function(){return new ZR(b)});
g.C(this,this.Vc);this.tc=X(function(){return new TQ(b)});
g.C(this,this.tc);this.Ca=X(function(){return new UQ(b)});
g.C(this,this.Ca);this.od=X(function(){return new VR(d,f.Ca)});
g.C(this,this.od);this.eb=X(function(){return new DP(f.Ca)});
g.C(this,this.eb);this.qc=X(function(){return new oQ(f.fb,f.Ab,f.eb,null,null)});
g.C(this,this.qc);this.Cd=X(function(){return new $R(b)});
g.C(this,this.Cd);this.Md=X(function(){return new aS});
g.C(this,this.Md);this.Da=X(function(){return new eR(b,f.Mc)});
g.C(this,this.Da);this.Eb=new PQ(this.Ca,this.eb,this.Da);g.C(this,this.Eb);this.ua=X(function(){return new fR(b)});
g.C(this,this.ua);this.ib=X(function(){return new XQ(f.ua,b)});
g.C(this,this.ib);this.Ga=X(function(){return new $Q(b,f.Gb,f.ib,f.Da)});
g.C(this,this.Ga);this.xd=X(function(){return new hR});
g.C(this,this.xd);this.bf=new HR(qqa,rS,function(l,m,n,p){var r=f.Ab.get(),t=Fpa(n);t.push(new TE(n.DJ));t.push(new UE(n.GJ));return Gpa(l,m,n,new yP(t),p,r.Sa.get())},this.sb,this.fb,this.eb,this.Ca,this.Da);
g.C(this,this.bf);this.Nb=new NF(this.sb,this.qc,c,this.Ca,a,this.Da);g.C(this,this.Nb);var h=new RQ(b,this.Nb,this.ua,this.Ca);this.Rd=X(function(){return h});
this.ik=h;this.fd=new uQ(this.sb,this.fb,this.zb,this.Rd);g.C(this,this.fd);this.Pb=new HE(this.sb,this.fb,this.qc,this.Da,this.fd,c);g.C(this,this.Pb);this.Le=X(function(){return new kR(f.od,f.Ab,f.eb,f.Ca)});
g.C(this,this.Le);this.xc=X(function(){return new lR});
g.C(this,this.xc);this.Ad=new NR(a,this.Sb);g.C(this,this.Ad);this.Va=new OR(a);g.C(this,this.Va);this.Bd=new PR(a,this.Rd);g.C(this,this.Bd);this.rd=new QR(a,this.zb,this.ua,this.Da);g.C(this,this.rd);this.hc=new SR(a);g.C(this,this.hc);this.Ze=new TR(a);g.C(this,this.Ze);this.sc=X(function(){return new JR});
g.C(this,this.sc);this.cf=X(function(){return new KR(f.ua)});
g.C(this,this.cf);this.Ke=X(function(){return new nR(f.Pb)});
g.C(this,this.Ke);this.Ne=X(function(){return new oR(f.Ga,f.hc,f.ib)});
g.C(this,this.Ne);this.af=X(function(){return new GR(a,f.hc,f.Ga,f.ib,f.xd,f.Vc,f.Da,f.ua,f.zb,f.Oc,f.tc,f.zd,f.kc,f.Cd)});
g.C(this,this.af);this.II=X(function(){return new Yqa(f.Sb,f.ua,f.Ga,f.Gb,f.Hn)});
g.C(this,this.II);this.kk=new UR(a,this.Md,this.eb,this.Da,this.Ca,this.Sa);g.C(this,this.kk);this.dd={Tm:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Pb],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.bf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Nb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.fd]]),Kj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Le],["SLOT_TYPE_FORECASTING",this.xc],["SLOT_TYPE_IN_PLAYER",this.xc],["SLOT_TYPE_PLAYER_BYTES",
this.xc]]),Eg:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ad],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Va],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Va],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Va],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Bd],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.rd],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.rd],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.hc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bd],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ze]]),tk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.sc],["SLOT_TYPE_FORECASTING",this.sc],["SLOT_TYPE_IN_PLAYER",this.sc],["SLOT_TYPE_PLAYER_BYTES",this.cf]]),ak:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Ke],["SLOT_TYPE_FORECASTING",this.Ne],["SLOT_TYPE_IN_PLAYER",this.II],["SLOT_TYPE_PLAYER_BYTES",this.af]])};this.listeners=[this.Gb.get()];this.Fe={Pb:this.Pb,Bi:null,ck:this.Md.get(),tg:this.Ca.get(),Al:this.ua.get(),Nb:this.Nb,bk:null,Yh:this.Ad,uf:this.Gb.get()}};
$qa=function(a,b,c,d){this.Sb=a;this.ua=b;this.Ga=c;this.Ld=d};
ara=function(a,b,c,d,e){g.B.call(this);var f=this;this.Sa=X(function(){return new wQ});
g.C(this,this.Sa);this.Ab=X(function(){return new BQ(f.Ca,f.Sa)});
g.C(this,this.Ab);this.Gb=X(function(){return new vQ});
g.C(this,this.Gb);this.sb=X(function(){return new qQ(a)});
g.C(this,this.sb);this.fb=X(function(){return new NQ(f.Sa)});
g.C(this,this.fb);this.Mc=X(function(){return new QQ});
g.C(this,this.Mc);this.zd=X(function(){return new VJ(b.T())});
g.C(this,this.zd);this.Sb=X(function(){return new WR(b)});
g.C(this,this.Sb);this.kc=X(function(){return new gR(e)});
g.C(this,this.kc);this.Oc=X(function(){return new EL(b)});
g.C(this,this.Oc);this.zb=X(function(){return new SQ(b)});
g.C(this,this.zb);this.Vc=X(function(){return new ZR(b)});
g.C(this,this.Vc);this.tc=X(function(){return new TQ(b)});
g.C(this,this.tc);this.Ca=X(function(){return new UQ(b)});
g.C(this,this.Ca);this.od=X(function(){return new VR(d,f.Ca)});
g.C(this,this.od);this.eb=X(function(){return new DP(f.Ca)});
g.C(this,this.eb);this.qc=X(function(){return new oQ(f.fb,f.Ab,f.eb,null,f.Ii,3)});
g.C(this,this.qc);this.Cd=X(function(){return new $R(b)});
g.C(this,this.Cd);this.Da=X(function(){return new eR(b,f.Mc)});
g.C(this,this.Da);this.Eb=new PQ(this.Ca,this.eb,this.Da);g.C(this,this.Eb);this.Zd=X(function(){return new gS(b,f.Da,f.Ca,f.Ga)});
g.C(this,this.Zd);this.fg=X(function(){return new Mqa(b)});
g.C(this,this.fg);this.ua=X(function(){return new fR(b)});
g.C(this,this.ua);this.xd=X(function(){return new hR});
this.ib=X(function(){return new XQ(f.ua,b)});
g.C(this,this.ib);this.Ga=X(function(){return new $Q(b,f.Gb,f.ib,f.Da)});
g.C(this,this.Ga);this.Nb=new NF(this.sb,this.qc,c,this.Ca,a,this.Da);g.C(this,this.Nb);var h=new RQ(b,this.Nb,this.ua,this.Ca,this.Zd);this.Rd=X(function(){return h});
this.ik=h;this.bf=new HR(IR,rS,function(l,m,n,p){return CQ(f.Ab.get(),l,m,n,p)},this.sb,this.fb,this.eb,this.Ca,this.Da);
g.C(this,this.bf);this.Ii=new eS(this.sb,this.fb,this.Da,this.Rd,this.Zd,this.ua,this.Ca);g.C(this,this.Ii);this.fd=new uQ(this.sb,this.fb,this.zb,this.Rd);g.C(this,this.fd);this.Pb=new HE(this.sb,this.fb,this.qc,this.Da,this.fd,c);g.C(this,this.Pb);this.Le=X(function(){return new kR(f.od,f.Ab,f.eb,f.Ca)});
g.C(this,this.Le);this.xc=X(function(){return new lR});
g.C(this,this.xc);this.Ad=new NR(a,this.Sb);g.C(this,this.Ad);this.Va=new OR(a);g.C(this,this.Va);this.Bd=new PR(a,this.Rd);g.C(this,this.Bd);this.rd=new QR(a,this.zb,this.ua,this.Da);g.C(this,this.rd);this.Km=new fS(a,this.Da);g.C(this,this.Km);this.hc=new SR(a);g.C(this,this.hc);this.Ze=new TR(a);g.C(this,this.Ze);this.sc=X(function(){return new JR});
g.C(this,this.sc);this.cf=X(function(){return new KR(f.ua)});
g.C(this,this.cf);this.Ke=X(function(){return new nR(f.Pb)});
g.C(this,this.Ke);this.Ne=X(function(){return new oR(f.Ga,f.hc,f.ib)});
g.C(this,this.Ne);this.af=X(function(){return new dS(a,f.hc,f.Da,f.fg,f.ua,f.Ga,f.Mc,f.Zd,f.ib,f.xd,f.Vc,f.zb,f.Oc,f.tc,f.zd,f.kc,f.Cd)});
g.C(this,this.af);this.Lh=X(function(){return new $qa(f.Sb,f.ua,f.Ga,f.Gb)});
g.C(this,this.Lh);this.dd={Tm:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Pb],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ii],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.bf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Nb],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.fd]]),Kj:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Le],["SLOT_TYPE_FORECASTING",this.xc],["SLOT_TYPE_IN_PLAYER",this.xc],["SLOT_TYPE_PLAYER_BYTES",this.xc]]),Eg:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
this.Ad],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Va],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Va],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Va],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Va],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Va],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Bd],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
this.rd],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.rd],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Km],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Km],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hc],["TRIGGER_TYPE_ON_SLOT_SELF_ENTER_REQUESTED",this.hc],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Bd],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ze]]),tk:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.sc],["SLOT_TYPE_FORECASTING",this.sc],["SLOT_TYPE_IN_PLAYER",this.sc],["SLOT_TYPE_PLAYER_BYTES",
this.cf]]),ak:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ke],["SLOT_TYPE_FORECASTING",this.Ne],["SLOT_TYPE_PLAYER_BYTES",this.af],["SLOT_TYPE_IN_PLAYER",this.Lh]])};this.listeners=[this.Gb.get()];this.Fe={Pb:this.Pb,Bi:null,ck:null,tg:this.Ca.get(),Al:this.ua.get(),Nb:this.Nb,bk:null,Yh:this.Ad,uf:this.Gb.get()}};
cra=function(a,b,c,d){g.B.call(this);var e=this;this.u=bra(function(){return e.B},a,b,c,d);
g.C(this,this.u);this.B=(new Qoa(this.u)).B;g.C(this,this.B)};
bra=function(a,b,c,d,e){try{var f=b.T();if(g.WD(f))var h=new Uqa(a,b,c,d,e);else if(g.$D(f))h=new Vqa(a,b,c,d,e);else if(aE(f))h=new Xqa(a,b,c,d,e);else if(ND(f))h=new Wqa(a,b,c,d,e);else if(ZD(f))h=new Zqa(a,b,c,d,e);else if(g.MD(f))h=new ara(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return e=b.T(),MF("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:e.deviceParams.cplatform,"interface":e.deviceParams.c,b5:e.deviceParams.cver,a5:e.deviceParams.ctheme,
Z4:e.deviceParams.cplayer,q5:e.playerStyle}),new Zpa(a,b,c,d)}};
dra=function(a,b,c){this.u=a;this.Bi=b;this.B=c};
g.tS=function(a){g.O.call(this);this.loaded=!1;this.player=a};
uS=function(a){g.tS.call(this,a);var b=this;this.u=null;this.D=new xM(this.player);this.C=null;this.F=function(){function d(){return b.u}
if(null!=b.C)return b.C;var e=PM({yC:a.getVideoData(1)});e=new qoa({EJ:new dra(d,b.B.u.Fe.Bi,b.B.B),Ip:e.rK(),FJ:d,QJ:d,XN:d,Yh:b.B.u.Fe.Yh,gi:e.qy(),I:b.player,tg:b.B.u.Fe.tg,Ga:b.B.u.Ga,uf:b.B.u.Fe.uf,tc:b.B.u.tc});b.C=e.B;return b.C};
this.B=new cra(this.player,this,this.D,this.F);g.C(this,this.B);this.created=!1;var c=a.T();!JD(c)||g.MD(c)||ND(c)||(c=function(){return b.u},g.C(this,new mP(a,c)),g.C(this,new oN(a,c)))};
era=function(a){var b=a.B.u.Fe.Nb,c=b.u().u;c=UP(c,"SLOT_TYPE_PLAYER_BYTES_1");var d=[];c=g.q(c.values());for(var e=c.next();!e.done;e=c.next())d.push(e.value.slot);b=KE(b.Da.get(),1).clientPlaybackNonce;c=!1;e=void 0;d=g.q(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var h=HF(f)?f.Wb.C:void 0;h&&h===b&&(h=W(f.wa,"metadata_type_fulfilled_layout"),c&&MF("More than 1 preroll playerBytes slot detected",f,h,{matches_layout_id:String(e&&h?e.layoutId===h.layoutId:!1),found_layout_id:(null===e||void 0===
e?void 0:e.layoutId)||"empty",collide_layout_id:(null===h||void 0===h?void 0:h.layoutId)||"empty"}),c=!0,e=h)}(b=c)||(b=a.u,b=!Bma(b,Ema(b)));b||a.B.u.Fe.Al.u()};
fra=function(a){a=g.q(a.B.u.Fe.uf.u.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.Ya&&"core"===b.Xa)return!0;return!1};
JE=function(a,b,c){c=void 0===c?"":c;var d=a.B.u.Fe.tg,e=a.player.getVideoData(1);e=e&&e.getPlayerResponse()||{};d=gra(b,d,e&&e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1);Nha(a.B.u.Fe.Pb,c,d.Lo,b);a.u&&0<d.gm.length&&(a=a.u,b=d.gm,b=yma(a,b),b=zma(a,b),fN(a,b))};
gra=function(a,b,c){var d={gm:[],Lo:[]};a=g.q(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&null!=e.renderer){var f=e.renderer,h=e.config&&e.config.adPlacementConfig&&e.config.adPlacementConfig.kind,l=b;c||null!=f.clientForecastingAdRenderer||null!=f.adBreakServiceRenderer&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==h||(null!=f.actionCompanionAdRenderer?f.actionCompanionAdRenderer.controlFlowExperimentEnabled:null!=f.imageCompanionAdRenderer?f.imageCompanionAdRenderer.controlFlowExperimentEnabled:
null!=f.shoppingCompanionCarouselRenderer?f.shoppingCompanionCarouselRenderer.controlFlowExperimentEnabled:null!=f.invideoOverlayAdRenderer?VQ(l):null!=f.instreamVideoAdRenderer||null!=f.remoteSlotsRenderer?g.Q(l.I.T().experiments,"html5_enable_single_video_vod_ivar_on_pacf"):f.linearAdSequenceRenderer&&f.linearAdSequenceRenderer.linearAds&&(f.linearAdSequenceRenderer.adStart?0:g.Q(l.I.T().experiments,"html5_enable_non_notify_composite_vod_lsar_pacf")))?d.Lo.push(e):d.gm.push(e)}return d};
AS=function(a){if(!vS){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);vS=new Uint8Array(256);wS=[];xS=[];yS=[];zS=[];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;vS[f]=e;b=e<<1^(e>>7&&283);var h=b^e;wS.push(b<<24|e<<16|e<<8|h);xS.push(h<<24|wS[f]>>>8);yS.push(e<<24|xS[f]>>>8);zS.push(e<<24|yS[f]>>>8)}}this.u=[0,0,0,0];this.C=new Uint8Array(16);e=[];for(c=0;4>c;c++)e.push(a[4*c]<<24|a[4*c+1]<<16|a[4*
c+2]<<8|a[4*c+3]);for(d=1;44>c;c++)a=e[c-1],c%4||(a=(vS[a>>16&255]^d)<<24|vS[a>>8&255]<<16|vS[a&255]<<8|vS[a>>>24],d=d<<1^(d>>7&&283)),e.push(e[c-4]^a);this.D=e;this.B=16};
hra=function(a,b){for(var c=0;4>c;c++)a.u[c]=b[4*c]<<24|b[4*c+1]<<16|b[4*c+2]<<8|b[4*c+3];a.B=16};
ira=function(a){for(var b=a.D,c=a.u[0]^b[0],d=a.u[1]^b[1],e=a.u[2]^b[2],f=a.u[3]^b[3],h=3;0<=h&&!(a.u[h]=-~a.u[h]);h--);for(h=4;40>h;){var l=wS[c>>>24]^xS[d>>16&255]^yS[e>>8&255]^zS[f&255]^b[h++];var m=wS[d>>>24]^xS[e>>16&255]^yS[f>>8&255]^zS[c&255]^b[h++];var n=wS[e>>>24]^xS[f>>16&255]^yS[c>>8&255]^zS[d&255]^b[h++];f=wS[f>>>24]^xS[c>>16&255]^yS[d>>8&255]^zS[e&255]^b[h++];c=l;d=m;e=n}a=a.C;c=[c,d,e,f];for(d=0;16>d;)a[d++]=vS[c[0]>>>24]^b[h]>>>24,a[d++]=vS[c[1]>>16&255]^b[h]>>16&255,a[d++]=vS[c[2]>>
8&255]^b[h]>>8&255,a[d++]=vS[c[3]&255]^b[h++]&255,c.push(c.shift())};
g.BS=function(){g.B.call(this);this.C=null;this.K=this.J=!1;this.F=new g.$l;g.C(this,this.F)};
CS=function(a){a=a.zq();return 1>a.length?NaN:a.end(a.length-1)};
jra=function(a,b){a.C&&null!==b&&b.u===a.C.u||(a.C&&a.C.dispose(),a.C=b)};
DS=function(a){return rA(a.Af(),a.getCurrentTime())};
kra=function(a,b){if(0==a.zg()||0<a.Vh())return!1;var c=0<a.getCurrentTime();if(0<=b){var d=a.zq();if(d.length||!c)return oA(d,b)}return c};
lra=function(a){var b=a.Af();return 0<qA(b)&&a.getDuration()?b.end(b.length-1):0};
ES=function(a){switch(a.Vh()){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}};
FS=function(a,b,c){g.Dl.call(this,b,a);this.B=c||null};
GS=function(){this.u=[];this.B=[];this.C=[]};
nra=function(a,b,c){c=g.Ce(c?"AUDIO":"VIDEO");g.Ua(c,mra);g.dp(c,"loadeddata",(0,g.z)(c.NJ,c));DD&&6<=MI&&g.dp(c,"webkitbeginfullscreen",(0,g.z)(c.play,c));a.B.push(c);b?a.C.push(c):HS(a,c);return c};
HS=function(a,b){g.jb(a.B,b)&&!g.jb(a.u,b)&&(b.src||b.load(),g.ob(a.C,b)||a.u.push(b))};
g.IS=function(a){g.BS.call(this);this.u=a;this.B={}};
g.JS=function(a,b,c,d){d=void 0===d?!1:d;g.BS.call(this);this.u=a;this.B=b;this.D=c;this.P=d};
KS=function(a,b,c){var d={};b&&(d.v=b);c&&(d.list=c);a={name:a,locale:void 0,feature:void 0};for(var e in d)a[e]=d[e];d=g.Id("/sharing_services",a);g.yu(d)};
ora=function(a){a=dq(a,{key:g.L("INNERTUBE_API_KEY")});var b=g.L("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(xd(a)));return a};
pra=function(a){return{method:"POST",mode:eq(a)?"same-origin":"cors",credentials:eq(a)?"same-origin":"include"}};
LS=function(a,b,c,d,e){this.u=a;this.D=b;this.B=c;this.handleError=d;this.C=e};
NS=function(a,b,c){var d=void 0===d?ny:d;a:{var e,f;if((null===(e=b.signalServiceEndpoint)||void 0===e?0:e.signal)&&a.u.EA&&(e=a.u.EA[b.signalServiceEndpoint.signal])){var h=new e;break a}if((null===(f=b.continuationCommand)||void 0===f?0:f.request)&&a.u.Hx&&(f=a.u.Hx[b.continuationCommand.request])){h=new f;break a}for(h in b)if(a.u.qt[h]&&(f=a.u.qt[h])){h=new f;break a}h=void 0}if(!h)return a.handleError(new g.nr("Error: No request builder found for command.",b)),um({});var l;f=c;f=void 0===f?{}:
f;d=void 0===d?ny:d;c={context:g.rM(b.clickTrackingParams)};if(e=h.getExtension(b)){h.u(c,e,f);var m;h=MS(h.B());(f=null===(m=null===(l=b.commandMetadata)||void 0===l?void 0:l.webCommandMetadata)||void 0===m?void 0:m.apiUrl)&&(h=f);l=ora(h);l={input:l,ep:pra(l),My:c,config:Object.assign({},void 0)};l.config.dm?l.config.dm.identity=d:l.config.dm={identity:d}}else g.Qs(new g.nr("Error: Failed to create Request from Command.",b)),l=void 0;if(l)return um(qra(a,l));a.handleError(new g.nr("Error: Failed to build request for command.",
b));return um({})};
AM=function(a,b,c){var d=void 0===d?{dm:{identity:ny}}:d;var e=void 0===e?!0:e;b.context||(b.context=g.rM(void 0,e));c=ora(c);b={input:c,ep:pra(c),My:b,config:d};return um(qra(a,b))};
qra=function(a,b){return Ue(a,function d(){var e=this,f,h,l,m,n,p;return xa(d,function(r){switch(r.u){case 1:f=e;r.u=2;break;case 3:if((h=r.B)&&!h.isExpired())return r["return"](Promise.resolve(h.u()));case 2:l=JSON.stringify(b.My);if(e.B.C){m=rra(e,b);r.u=4;break}return sa(r,sra(e,b),5);case 5:m=r.B;case 4:return b.ep=Object.assign(Object.assign({},b.ep),{headers:m}),g.wo("enable_get_account_switcher_endpoint_on_webfe")?(n=Object.assign({},b.ep),"POST"===b.ep.method&&(n=Object.assign(Object.assign({},
n),{body:l}))):n=Object.assign(Object.assign({},b.ep),{body:l}),p=e.D.fetch(b.input,n),r["return"](p.then(function(t){if(t&&f.C)for(var w=g.q(f.C),x=w.next();!x.done;x=w.next())x.value.B(t,b);return Promise.resolve(t)}))}})})};
tra=function(a,b){var c,d;if(!b)return!1;if((null===(c=b.signalServiceEndpoint)||void 0===c?0:c.signal)&&a.u.EA)return-1<yo("web_op_signal_type_banlist").indexOf(b.signalServiceEndpoint.signal)?!1:!!a.u.EA[b.signalServiceEndpoint.signal];if((null===(d=b.continuationCommand)||void 0===d?0:d.request)&&a.u.Hx)return-1<yo("web_op_continuation_type_banlist").indexOf(b.continuationCommand.request)?!1:!!a.u.Hx[b.continuationCommand.request];for(var e in b)if(a.u.qt[e]){if(-1<yo("web_op_endpoint_banlist").indexOf(e))break;
return!0}return!1};
sra=function(a,b){var c,d,e,f,h=(null===(d=null===(c=b.config)||void 0===c?void 0:c.dm)||void 0===d?void 0:d.identity)||ny,l=null===(f=null===(e=b.config)||void 0===e?void 0:e.dm)||void 0===f?void 0:f.sessionIndex;return tea(a.B,h,{sessionIndex:l}).then(function(m){return Promise.resolve(Object.assign(Object.assign({},ura()),m))})};
rra=function(a,b){var c,d,e,f,h=(null===(d=null===(c=b.config)||void 0===c?void 0:c.dm)||void 0===d?void 0:d.identity)||ny,l=null===(f=null===(e=b.config)||void 0===e?void 0:e.dm)||void 0===f?void 0:f.sessionIndex;h=a.B.u(h,{sessionIndex:l});return Object.assign(Object.assign({},ura()),h)};
ura=function(){var a={"Content-Type":"application/json"},b=g.L("VISITOR_DATA");b&&(a["X-Goog-Visitor-Id"]=b);g.wo("enable_get_account_switcher_endpoint_on_webfe")&&((b=g.L("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(a["X-Youtube-Client-Name"]=b),(b=g.L("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(a["X-Youtube-Client-Version"]=b));g.wo("webfe_track_one_platform_auth_mismatch")&&(a["X-Youtube-Bootstrap-Logged-In"]=g.L("LOGGED_IN",!1));return a};
wra=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=vra[b];if(c){var d=new RegExp(c),e=g.q(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(vra).forEach(function(h){var l=g.q(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
d=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
e=g.q(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
MS=function(a){return"/youtubei/v1/"+wra(a)};
OS=function(){};
PS=function(){};
QS=function(){};
RS=function(){};
SS=function(){};
TS=function(){this.u=this.B=void 0};
xra=function(){TS.u||(TS.u=new TS);return TS.u};
yra=function(a,b){var c=g.wo("enable_get_account_switcher_endpoint_on_webfe")?b.text().then(function(d){return JSON.parse(d.replace(")]}'",""))}):b.json();
b.redirected||b.ok?a.u&&a.u.success():(a.u&&a.u.failure(),c=c.then(function(d){g.gr(new g.nr("Error: API fetch failed",b.status,b.url,d));return Object.assign(Object.assign({},d),{errorMetadata:{status:b.status}})}));
return c};
VS=function(a,b){if(!US){var c={qt:{playlistEditEndpoint:SS,subscribeEndpoint:PS,unsubscribeEndpoint:QS,modifyChannelNotificationPreferenceEndpoint:RS}},d=g.wo("web_enable_client_location_service")?oM():void 0,e=[];d&&e.push(d);void 0===a&&(a=Mq());void 0===b&&(b=xra());LS.u=new LS(c,b,a,hr,e);US=LS.u}return US};
zra=function(a,b){var c={commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",url:"/service_ajax",sendPost:!0}},playlistEditEndpoint:{playlistId:"WL",actions:b}},d={list_id:"WL"};c=NS(VS(),c);zm(c.then(function(e){if(e&&"STATUS_SUCCEEDED"===e.status){if(a.onSuccess)a.onSuccess({},d)}else if(a.onError)a.onError({},d)}),function(){a.ag&&a.ag({},d)})};
Bra=function(a,b,c){g.wo("web_classic_playlist_one_platform_update")?zra(a,[{addedVideoId:a.videoIds,action:"ACTION_ADD_VIDEO"}]):Ara("add_to_watch_later_list",a,b,c)};
Cra=function(a,b,c){g.wo("web_classic_playlist_one_platform_update")?zra(a,[{removedVideoId:a.videoIds,action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID"}]):Ara("delete_from_watch_later_list",a,b,c)};
Ara=function(a,b,c,d){g.sq(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",sj:{feature:b.feature||null,authuser:b.lf||null,pageid:b.pageId||null},pc:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.s5||null,add_to_playlists:b.Q4||null,plid:g.L("PLAYBACK_ID")||null},context:b.context,onError:b.onError,onSuccess:function(e,f){b.onSuccess.call(this,e,f)},
ag:b.ag,withCredentials:!!d})};
g.Era=function(a,b,c){b=Dra(null,b,c);if(b=window.open(b,"loginPopup","width=800,height=600,resizable=yes,scrollbars=yes",!0))c=g.Oo("LOGGED_IN",function(d){g.Po(g.L("LOGGED_IN_PUBSUB_KEY",void 0));to("LOGGED_IN",!0);a(d)}),to("LOGGED_IN_PUBSUB_KEY",c),b.moveTo((screen.width-800)/2,(screen.height-600)/2)};
Dra=function(a,b,c){var d="/signin?context=popup";c&&(d=document.location.protocol+"//"+c+d);c=document.location.protocol+"//"+document.domain+"/post_login";a&&(c=Hd(c,"mode",a));a=Hd(d,"next",c);b&&(a=Hd(a,"feature",b));return a};
WS=function(){};
XS=function(){};
Gra=function(){var a,b;return Ue(this,function d(){var e;return xa(d,function(f){e=navigator;return(null===(a=e.storage)||void 0===a?0:a.estimate)?f["return"](e.storage.estimate()):(null===(b=e.webkitTemporaryStorage)||void 0===b?0:b.u)?f["return"](Fra()):f["return"]()})})};
Fra=function(){var a=navigator;return new Promise(function(b,c){var d;null!==(d=a.webkitTemporaryStorage)&&void 0!==d&&d.u?a.webkitTemporaryStorage.u(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
fr=function(a,b,c){var d=this;this.Gy=a;this.handleError=b;this.u=c;this.B=!1;void 0===self.document||self.addEventListener("beforeunload",function(){d.B=!0})};
kr=function(a){var b=er;if(a instanceof pr)switch(a.type){case "UNKNOWN_ABORT":case "QUOTA_EXCEEDED":case "QUOTA_MAYBE_EXCEEDED":b.Gy(a);break;case "EXPLICIT_ABORT":a.sampleWeight=0;break;default:b.handleError(a)}else b.handleError(a)};
Ira=function(a,b){Gra().then(function(c){c=Object.assign(Object.assign({},b),{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:Hra(null===c||void 0===c?void 0:c.usage),deviceStorageQuotaMbytes:Hra(null===c||void 0===c?void 0:c.quota)});a.u("idbQuotaExceeded",c)})};
Hra=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
Jra=function(){IG("bg_l","player_att");YS=(0,g.N)()};
Kra=function(a){a=void 0===a?{}:a;var b=Xs;a=void 0===a?{}:a;return b.u?b.u.hot?b.u.hot(void 0,void 0,a):b.u.invoke(void 0,void 0,a):null};
Lra=function(a){a=void 0===a?{}:a;return Sea(a)};
Mra=function(a,b){var c=this;this.videoData=a;this.C=b;var d={};this.B=(d.c1a=function(){if(ZS(c)){var e="";c.videoData&&c.videoData.yh&&(e=c.videoData.yh+("&r1b="+c.videoData.clientPlaybackNonce));var f={};e=(f.atr_challenge=e,f);IG("bg_v","player_att");e=c.C?Kra(e):g.Ja("yt.abuse.player.invokeBotguard")(e);IG("bg_s","player_att");e=e?"r1a="+e:"r1c=2"}else IG("bg_e","player_att"),e="r1c=1";return e},d.c3a=function(e){return"r3a="+Math.floor(c.videoData.lengthSeconds%Number(e.c3a)).toString()},d.c6a=
function(e){e=Number(e.c);
var f=c.C?parseInt(g.L("DCLKSTAT",0),10):(f=g.Ja("yt.abuse.dclkstatus.checkDclkStatus"))?f():NaN;return"r6a="+(e^f)},d);
this.videoData&&this.videoData.yh?this.u=Zp(this.videoData.yh):this.u={}};
Nra=function(a){if(a.videoData&&a.videoData.yh){for(var b=[a.videoData.yh],c=g.q(Object.keys(a.B)),d=c.next();!d.done;d=c.next())d=d.value,a.u[d]&&a.B[d]&&(d=a.B[d](a.u))&&b.push(d);return b.join("&")}return null};
Pra=function(a){var b={};Object.assign(b,a.B);"c1b"in a.u&&(b.c1a=function(){return Ora(a)});
if(a.videoData&&a.videoData.yh){for(var c=[a.videoData.yh],d=g.q(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.u[e]&&b[e]&&(e=b[e](a.u))&&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)};
ZS=function(a){return a.C?Xs.Vd():(a=g.Ja("yt.abuse.player.botguardInitialized"))&&a()};
Ora=function(a){if(!ZS(a))return IG("bg_e","player_att"),Promise.resolve("r1c=1");var b="";a.videoData&&a.videoData.yh&&(b=a.videoData.yh+("&r1b="+a.videoData.clientPlaybackNonce));var c={},d=(c.atr_challenge=b,c),e=a.C?Lra:g.Ja("yt.abuse.player.invokeBotguardAsync");return new Promise(function(f){IG("bg_v","player_att");e(d).then(function(h){h?(IG("bg_s","player_att"),f("r1a="+h)):(IG("bg_e","player_att"),f("r1c=2"))},function(){IG("bg_e","player_att");
f("r1c=3")})})};
Qra=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 $S(a)};
$S=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};
Rra=function(a,b,c,d){if(g.Oa(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
Tra=function(a){var b,c;return Ue(this,function e(){var f,h,l,m,n;return xa(e,function(p){if(1==p.u)return f=VS(),h={context:g.rM(),videoIds:[a]},l=MS(Sra),sa(p,AM(f,h,l),2);m=p.B;if(!m)throw Error("Network request failed");if(!m.videos||1!==m.videos.length)throw Error("Failed request: "+(null!==(c=null===(b=m.error)||void 0===b?void 0:b.code)&&void 0!==c?c:"?"));n=m.videos[0].offlineVideoData;if(!n)throw Error("No data");return p["return"](n)})})};
Ura=function(a){return"caches"in window&&a.length?window.caches.open("yt-player-local-img").then(function(b){return Promise.all(a.map(function(c){return b["delete"](c)}))}).then(function(){return Promise.resolve()}):Promise.resolve()};
Vra=function(a){return"caches"in window&&fetch&&a.length?window.caches.open("yt-player-local-img").then(function(b){return b.addAll(a)}):Promise.resolve()};
aT=function(a,b,c){this.api=a;this.player=b;this.player.subscribe("localmediachange",this.u,this);this.B=c;Wra(this);this.ba()};
bT=function(a){return Ue(this,function c(){var d;return xa(c,function(e){return 1==e.u?sa(e,Rfa(a),2):3!=e.u?(d=e.B,sa(e,Ura(d),3)):e["return"](Ufa(a))})})};
Xra=function(){return Ue(this,function b(){return xa(b,function(c){return 1==c.u?sa(c,Promise.all(["caches"in window?window.caches["delete"]("yt-player-local-img"):Promise.resolve(!0),oy()]),2):c["return"]()})})};
Wra=function(a){Kfa().then(function(){var b=jy(2);b=g.q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=cT(a,c);a.ba();d||ky(c,3)}a.ba();dT(a)})};
$ra=function(a,b){return Ue(a,function d(){var e,f=this;return xa(d,function(h){if(1==h.u)return hy(b)?h["return"]():sa(h,Tra(b),2);if(3!=h.u)return e=h.B,sa(h,Yra(f,b,e),3);0===jy(2).length?Zra(f,b):ky(b,3);h.u=0})})};
eT=function(a,b){var c=hy(b);if(1===c||0===c)return Promise.resolve();c=cT(a,b);c===a.player?(a.player.stopVideo(),a.player.Di()):c&&(c.Di(),jI(c.getVideoData(),!1));return bT(b)};
asa=function(a,b){var c,d;return Ue(a,function f(){var h,l,m;return xa(f,function(n){if(1==n.u)return sa(n,Qfa(b),2);h=n.B;if(!h)return n["return"](null);l=h.timestampSecs;m=null===(d=null===(c=h.player)||void 0===c?void 0:c.offlineState)||void 0===d?void 0:d.expiresInSeconds;return!m||l+m<=Math.floor(Date.now()/1E3)?n["return"](null):n["return"](h.player)})})};
cT=function(a,b){var c=a.api.fc(),d=c?c.getVideoData():null;return c&&(null===d||void 0===d?0:JI(d))&&d.videoId===b?c:a.player.getVideoData().videoId===b?a.player:null};
Zra=function(a,b){ky(b,2);var c=bsa(a,{videoId:b,download_media:!0,download_media_headlessly:!0,start:Infinity,disable_watch_next:!0});c.subscribe("dataloaded",function(){return void csa(a,c)});
a.player.ki(c,a.B);var d=dsa();g.Q(a.player.T().experiments,"hoffle_lmqf_killswitch")||(d=UC(d,d,!0,"m"),esa(a.player,d));a.ba();fT(a.player,!1)};
bsa=function(a,b){return new g.zH(a.player.T(),b)};
dsa=function(){switch(g.pt.getInstance().get("lmqf")){case "HD_1080":return"hd1080";case "HD":return"hd720";case "SD":return"large";case "LD":return"tiny";default:return"hd720"}};
dT=function(a){if(g.Q(a.api.T().experiments,"hoffle_api"))0<jy(2).length||(b=jy(3),0<b.length&&Zra(a,b[0]));else{a=g.q(jy(3));for(var b=a.next();!b.done;b=a.next())bT(b.value)}};
csa=function(a,b){var c;if(g.Q(a.api.T().experiments,"hoffle_api")){var d=b.getPlayerResponse(),e=null===(c=null===d||void 0===d?void 0:d.videoDetails)||void 0===c?void 0:c.videoId;d&&e&&Nfa(e,d)}};
Yra=function(a,b,c){return Ue(a,function e(){var f=this;return xa(e,function(h){if(1==h.u)h=g.Q(f.api.T().experiments,"hoffle_api")?sa(h,Mfa(b,c),2):h["return"]();else{var l=h["return"],m,n,p=fsa(c.thumbnail);p=p.concat(fsa(null===(n=null===(m=c.channel)||void 0===m?void 0:m.offlineChannelData)||void 0===n?void 0:n.thumbnail));m=p.length?Vra(p):Promise.resolve(void 0);h=l.call(h,m)}return h})})};
fsa=function(a){if(!a||!a.thumbnails)return[];var b=[];a=g.q(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&b.push(c.url);return b};
hT=function(a,b){g.B.call(this);var c=this;this.app=a;this.playerType=b;this.u=!0;this.element=null;this.F={};this.K={};this.B={};this.P=[];this.J={};this.D={};this.C=null;this.X=new Set;gT(this,"cueVideoById",this.cueVideoById);gT(this,"loadVideoById",this.loadVideoById);gT(this,"cueVideoByUrl",this.cueVideoByUrl);gT(this,"loadVideoByUrl",this.loadVideoByUrl);gT(this,"playVideo",this.playVideo);gT(this,"pauseVideo",this.pauseVideo);gT(this,"stopVideo",this.stopVideo);gT(this,"clearVideo",this.clearVideo);
gT(this,"getVideoBytesLoaded",this.getVideoBytesLoaded);gT(this,"getVideoBytesTotal",this.getVideoBytesTotal);gT(this,"getVideoLoadedFraction",this.getVideoLoadedFraction);gT(this,"getVideoStartBytes",this.getVideoStartBytes);gT(this,"cuePlaylist",this.cuePlaylist);gT(this,"loadPlaylist",this.loadPlaylist);gT(this,"nextVideo",this.nextVideo);gT(this,"previousVideo",this.previousVideo);gT(this,"playVideoAt",this.playVideoAt);gT(this,"setShuffle",this.setShuffle);gT(this,"setLoop",this.setLoop);gT(this,
"getPlaylist",this.CK);gT(this,"getPlaylistIndex",this.getPlaylistIndex);gT(this,"getPlaylistId",this.getPlaylistId);gT(this,"loadModule",this.loadModule);gT(this,"unloadModule",this.unloadModule);gT(this,"setOption",this.setOption);gT(this,"getOption",this.getOption);gT(this,"getOptions",this.getOptions);gT(this,"mute",this.mute);gT(this,"unMute",this.unMute);gT(this,"isMuted",this.isMuted);gT(this,"setVolume",this.setVolume);gT(this,"getVolume",this.getVolume);gT(this,"seekTo",this.seekTo);gT(this,
"getPlayerState",this.getPlayerState);gT(this,"getPlaybackRate",this.getPlaybackRate);gT(this,"setPlaybackRate",this.setPlaybackRate);gT(this,"getAvailablePlaybackRates",this.getAvailablePlaybackRates);gT(this,"getPlaybackQuality",function(){return c.getPlaybackQuality(1)});
gT(this,"setPlaybackQuality",this.setPlaybackQuality);gT(this,"getAvailableQualityLevels",this.getAvailableQualityLevels);gT(this,"getCurrentTime",this.getCurrentTime);gT(this,"getDuration",this.getDuration);gT(this,"addEventListener",this.HJ);gT(this,"removeEventListener",this.PR);gT(this,"getDebugText",this.getDebugText);gT(this,"getVideoData",function(){return c.cu()});
gT(this,"addCueRange",this.addCueRange);gT(this,"removeCueRange",this.removeCueRange);gT(this,"setSize",this.setSize);gT(this,"getApiInterface",this.getApiInterface);gT(this,"destroy",this.destroy);gT(this,"showVideoInfo",this.showVideoInfo);gT(this,"hideVideoInfo",this.hideVideoInfo);gT(this,"isVideoInfoVisible",this.isVideoInfoVisible);gT(this,"getSphericalProperties",this.getSphericalProperties);gT(this,"setSphericalProperties",this.setSphericalProperties);this.app.T().J||(gT(this,"getVideoEmbedCode",
this.getVideoEmbedCode),gT(this,"getVideoUrl",this.getVideoUrl));gT(this,"getMediaReferenceTime",this.getMediaReferenceTime);Y(this,"getInternalApiInterface",this.getInternalApiInterface);Y(this,"cueVideoByPlayerVars",this.cueVideoByPlayerVars);Y(this,"loadVideoByPlayerVars",this.loadVideoByPlayerVars);Y(this,"preloadVideoByPlayerVars",this.preloadVideoByPlayerVars);Y(this,"getAdState",this.getAdState);Y(this,"sendAbandonmentPing",this.sendAbandonmentPing);Y(this,"setLoopRange",this.setLoopRange);
Y(this,"getLoopRange",this.getLoopRange);Y(this,"setAutonavState",this.setAutonavState);Y(this,"seekToLiveHead",this.seekToLiveHead);Y(this,"seekToStreamTime",this.seekToStreamTime);Y(this,"seekToChapterWithAnimation",this.seekToChapterWithAnimation);Y(this,"getStreamTimeOffset",this.getStreamTimeOffset);Y(this,"getVideoData",this.cu);Y(this,"setIsExternalPlaylist",this.setIsExternalPlaylist);Y(this,"deleteLocalMediaById",this.deleteLocalMediaById);Y(this,"deleteAllLocalMedia",this.deleteAllLocalMedia);
Y(this,"cancelPendingLocalMediaById",this.cancelPendingLocalMediaById);Y(this,"fetchLocalMedia",this.fetchLocalMedia);Y(this,"fetchLocalMediaById",this.fetchLocalMediaById);Y(this,"getLocalPlayerResponse",this.getLocalPlayerResponse);Y(this,"getLocalMediaInfoById",this.getLocalMediaInfoById);Y(this,"getAllLocalMediaInfo",this.getAllLocalMediaInfo);Y(this,"getAppState",this.getAppState);Y(this,"addInfoCardXml",this.addInfoCardXml);Y(this,"updateLastActiveTime",this.updateLastActiveTime);Y(this,"setBlackout",
this.setBlackout);Y(this,"setAccountLinkState",this.setAccountLinkState);Y(this,"updateAccountLinkingConfig",this.updateAccountLinkingConfig);Y(this,"setUserEngagement",this.setUserEngagement);Y(this,"updateSubtitlesUserSettings",this.updateSubtitlesUserSettings);Y(this,"setFauxFullscreen",this.setFauxFullscreen);Y(this,"setUseFastSizingOnWatch",this.setUseFastSizingOnWatch);Y(this,"getPresentingPlayerType",this.getPresentingPlayerType);Y(this,"canPlayType",this.canPlayType);Y(this,"updatePlaylist",
this.updatePlaylist);Y(this,"updateVideoData",this.updateVideoData);Y(this,"updateEnvironmentData",this.updateEnvironmentData);Y(this,"sendVideoStatsEngageEvent",this.sendVideoStatsEngageEvent);Y(this,"setCardsVisible",this.setCardsVisible);Y(this,"productsInVideoVisibilityUpdated",this.productsInVideoVisibilityUpdated);Y(this,"setSafetyMode",this.setSafetyMode);Y(this,"isAtLiveHead",function(d){c.isAtLiveHead(void 0,d)});
Y(this,"getVideoAspectRatio",this.getVideoAspectRatio);Y(this,"getPreferredQuality",this.getPreferredQuality);Y(this,"setPlaybackQualityRange",this.setPlaybackQualityRange);Y(this,"onAdUxClicked",this.onAdUxClicked);Y(this,"getFeedbackProductData",this.getFeedbackProductData);Y(this,"getStoryboardFrame",this.getStoryboardFrame);Y(this,"getStoryboardFrameIndex",this.getStoryboardFrameIndex);Y(this,"getStoryboardLevel",this.getStoryboardLevel);Y(this,"getNumberOfStoryboardLevels",this.getNumberOfStoryboardLevels);
Y(this,"setAutonav",this.setAutonav);Y(this,"isNotServable",this.isNotServable);Y(this,"channelSubscribed",this.channelSubscribed);Y(this,"channelUnsubscribed",this.channelUnsubscribed);Y(this,"isPictureInPictureAllowed",this.isPictureInPictureAllowed);Y(this,"togglePictureInPicture",this.togglePictureInPicture);Y(this,"supportsGaplessAudio",this.supportsGaplessAudio);Y(this,"enqueueVideoByPlayerVars",function(d){return void c.enqueueVideoByPlayerVars(d)});
Y(this,"clearQueue",this.clearQueue);Y(this,"isFastLoad",function(){return!1});
Y(this,"getPlayerResponse",this.getPlayerResponse);Y(this,"getAudioTrack",this.kK);Y(this,"setAudioTrack",this.setAudioTrack);Y(this,"getAvailableAudioTracks",this.lK);Y(this,"getMaxPlaybackQuality",this.getMaxPlaybackQuality);Y(this,"getUserPlaybackQualityPreference",this.getUserPlaybackQualityPreference);Y(this,"getSubtitlesUserSettings",this.getSubtitlesUserSettings);Y(this,"resetSubtitlesUserSettings",this.resetSubtitlesUserSettings);Y(this,"setMinimized",this.setMinimized);Y(this,"confirmYpcRental",
this.confirmYpcRental);Y(this,"handleExternalCall",this.handleExternalCall);Y(this,"isExternalMethodAvailable",this.isExternalMethodAvailable);Y(this,"getStatsForNerds",this.getStatsForNerds);Y(this,"setScreenLayer",this.setScreenLayer);Y(this,"getCurrentPlaylistSequence",this.getCurrentPlaylistSequence);Y(this,"getPlaylistSequenceForTime",this.getPlaylistSequenceForTime);Y(this,"shouldSendVisibilityState",this.shouldSendVisibilityState);Y(this,"updateFullerscreenEduButtonVisibility",this.updateFullerscreenEduButtonVisibility);
Y(this,"updateFullerscreenEduButtonSubtleModeState",this.updateFullerscreenEduButtonSubtleModeState);Y(this,"setGlobalCrop",this.setGlobalCrop);Y(this,"getVisibilityState",this.getVisibilityState);Y(this,"isMutedByMutedAutoplay",this.isMutedByMutedAutoplay);Y(this,"setInternalSize",this.setInternalSize)};
gT=function(a,b,c){a.F[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.ba();return c.apply(a,e)};
a.B.hasOwnProperty(b)||Y(a,b,c);a.P.push(b)};
iT=function(a,b,c){a.K[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.ba();return c.apply(a,e)};
a.B.hasOwnProperty(b)||Y(a,b,c);a.P.push(b)};
Y=function(a,b,c){a.B[b]=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];a.ba();return c.apply(a,e)}};
wma=function(a){a.C||(a.C={},g.Ua(a.C,a.F),g.Ua(a.C,a.K),a.C.addEventListener=function(b,c){gsa(a,b,c)},a.C.removeEventListener=function(b,c){var d="string"===typeof c?b+c:b+String(g.Ra(c)),e=a.D[d];
e&&(a.app.ra.unsubscribe(b,e),e=a.D,d in e&&delete e[d])});
return a.C};
gsa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Ra(c));if(!a.D[d]){var e;"string"===typeof c?e=function(h){for(var l=[],m=0;m<arguments.length;++m)l[m-0]=arguments[m];g.Ja(c).apply(window,l)}:e=c;
var f=function(h){e({target:a.C,data:h})};
a.D[d]=f;a.app.ra.subscribe(b,f)}};
hsa=function(a,b,c){b=g.$d(Math.floor(b),0,100);isFinite(b)&&jT(a.app,{volume:b,muted:a.isMuted()},c)};
isa=function(a,b){jT(a.app,{muted:!0,volume:a.getVolume()},b)};
jsa=function(a,b){jT(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.lT=function(a){var b=kT(a.app.C);if(b)return b.chrome;a=a.app.C;a=g.FD(a.I.T())?a.Rc.get("music"):void 0;return a?a.chrome:null};
nT=function(a,b){hT.call(this,a,b);var c=this;this.u=!1;iT(this,"cueVideoByPlayerVars",function(d,e){c.cueVideoByPlayerVars(mT(c,d),e)});
iT(this,"loadVideoByPlayerVars",function(d,e,f,h){c.loadVideoByPlayerVars(mT(c,d),e,f,h)});
iT(this,"preloadVideoByPlayerVars",function(d,e,f,h){return void c.preloadVideoByPlayerVars(mT(c,d),e,f,h)});
iT(this,"seekBy",this.seekBy);iT(this,"mutedAutoplay",this.mutedAutoplay);iT(this,"showControls",this.showControls);iT(this,"hideControls",this.hideControls);iT(this,"cancelPlayback",this.cancelPlayback);iT(this,"getProgressState",this.getProgressState);iT(this,"isInline",this.isInline);iT(this,"setInline",this.setInline);iT(this,"getStoryboardFormat",this.getStoryboardFormat);iT(this,"getVideoContentRect",this.getVideoContentRect);iT(this,"toggleFullscreen",this.toggleFullscreen);iT(this,"isFullscreen",
this.isFullscreen);iT(this,"getVideoStats",this.getVideoStats);iT(this,"getPlayerSize",this.getPlayerSize);iT(this,"toggleSubtitles",this.toggleSubtitles);iT(this,"setCenterCrop",this.setCenterCrop);iT(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);iT(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);iT(this,"setSizeStyle",this.setSizeStyle);iT(this,"wakeUpControls",this.wakeUpControls)};
mT=function(a,b){var c={};if(a.app.T().K)for(var d=g.q(ksa),e=d.next();!e.done;e=d.next())e=e.value,b.hasOwnProperty(e)&&(c[e]=b[e]);else for(d=g.q(lsa),e=d.next();!e.done;e=d.next())e=e.value,b.hasOwnProperty(e)&&(c[e]=b[e]);return c};
g.oT=function(a){nT.call(this,a);this.S=null};
g.qT=function(a,b,c,d,e,f){return g.pT(a.app,b,c,d,e,f)};
g.rT=function(a){return a.app.C};
g.sT=function(a){a=g.rT(a).Rc.get("endscreen");return!!a&&a.IE()};
tT=function(a){a=g.rT(a);var b=a.Rc.get("endscreen");return b&&b.JE()?!0:a.Xr()||g.FD(a.I.T())};
g.uT=function(a,b){3===a.getPresentingPlayerType()?a.V("mdxautoplaycancel"):a.V("autonavcancel",b)};
g.NJ=function(a,b){return vT(a.app,b)};
g.mJ=function(a){return a.app.template};
g.xT=function(a){var b=g.wT(g.rT(a));return a.app.P&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.hasNext()&&b.Si()||!!a.getPlaylist()};
g.yT=function(a,b,c){a.app.B.handleError(new IB(b,!1,c))};
Oma=function(a,b){var c=a.app;1===b&&(c.ab.tick("vr"),c.na||(c.na=Kq(KG,c.OF,c)),msa(c.D),nsa(c.ab,c.D.getVideoData(),osa(c)));var d=c.W;(fE(d)&&d.C||g.MD(d))&&(c.Zc()||c.u.ya("onAdStateChange",b))};
g.AT=function(a){return(a=g.zT(g.rT(a)))?a.IL():{}};
g.CT=function(a){a=g.BT(g.rT(a));return!!a&&a.Yq()};
g.DT=function(a){a=g.BT(g.rT(a));return!!a&&a.HE()};
ET=function(a){a=g.rT(a).Rc.get("heartbeat");return!!a&&a.GL()};
g.lN=function(a,b,c){a.app.Kp(b,c)};
g.GT=function(a,b,c){a=a.app;var d=g.Z(a,c);d&&(b=psa(d.Me,b),c&&a.getPresentingPlayerType()!==c||FT(a,"cuerangesremoved",b))};
g.qsa=function(a){a=(a=a.getVideoData())&&a.Oa;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.rsa=function(a){a=a.getVideoData();return!!a&&!!(a.adaptiveFormats||a.hlsFormats||a.Qg)};
g.lP=function(a,b,c){a=g.mJ(a).element;var d=yb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.Fe(a,b,d);b.setAttribute("data-layer",String(c))};
g.HT=function(a){var b=a.T();if(!b.lc)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=!c.isLiveDefaultBroadcast||g.Q(b.experiments,"allow_poltergust_autoplay");d=c.isLivePlayback&&(!g.Q(b.experiments,"allow_live_autoplay")||!d);var e=c.isLivePlayback&&g.Q(b.experiments,"allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.hasNext();var f=c.watchNextResponse&&c.watchNextResponse.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);
f=c.oc&&f;return!c.ypcPreview&&(!d||e)&&!g.jb(c.Kf,"ypc")&&!a&&(!g.wD(b)||f)};
g.IT=function(a,b,c,d,e){a.T().ga&&ssa(a.app.ga,b,c,d,void 0===e?!1:e)};
g.yN=function(a,b,c,d){a.T().ga&&tsa(a.app.ga,b,c,void 0===d?!1:d)};
g.zN=function(a,b,c){a.T().ga&&(a.app.ga.elements.has(b),c&&(b.visualElement=g.Tt(c)))};
g.JT=function(a,b,c){a.T().ga&&a.app.ga.click(b,c)};
g.CN=function(a,b,c,d){if(a.T().ga){a=a.app.ga;a.elements.has(b);c?a.u.add(b):a.u["delete"](b);var e=g.Zt(),f=b.visualElement;a.B.has(b)?e&&f&&(c?g.mu(e,[f]):g.nu(e,[f])):c&&!a.C.has(b)&&(e&&f&&g.fu(e,f,d),a.C.add(b))}};
g.BN=function(a,b){return a.T().ga?a.app.ga.elements.has(b):!1};
g.kN=function(a,b){if(a.app.getPresentingPlayerType()===b){var c=a.app,d=g.Z(c,b);d&&(c.ba("release presenting player, type "+d.getPlayerType()+", vid "+d.getVideoData().videoId),d!==c.B?KT(c,c.B):usa(c))}};
Nqa=function(a,b,c){c=void 0===c?Infinity:c;a=a.app;b=void 0===b?-1:b;b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.F?LT(a.F,b,c):MT(a.pe,b,c)};
vsa=function(a){if(!a.aa("html5_inline_video_quality_survey"))return!1;var b=g.Z(a.app);if(!b)return!1;var c=b.getVideoData();if(!c.Oa||!c.Oa.video||1080>c.Oa.video.Cc||c.SD)return!1;var d=/^qsa/.test(c.clientPlaybackNonce),e="r";0<=c.Oa.id.indexOf(";")&&(d=/^[a-p]/.test(c.clientPlaybackNonce),e="x");a.aa("html5_inline_video_quality_survey_always")&&(d=!0,e="a");return d?(b.Ka("iqss",e,!0),!0):!1};
NT=function(a,b){this.W=a;this.timerName="";this.B=!1;this.u=b||null;this.B=!1};
wsa=function(a){a=a.timerName;xG("yt_sts","p",a);yG("_start",void 0,a)};
nsa=function(a,b,c){var d=g.CD(b.Ra)&&b.Ra.Ul&&FI(b);if(b.Ra.Sl&&(yD(b.Ra)||fE(b.Ra)||d)&&!a.B){a.B=!0;g.L("TIMING_ACTION")||to("TIMING_ACTION",a.W.csiPageType);a.W.csiServiceName&&to("CSI_SERVICE_NAME",a.W.csiServiceName);if(a.u){b=a.u.B;d=g.q(Object.keys(b));for(var e=d.next();!e.done;e=d.next())e=e.value,yG(e,b[e],a.timerName);b=a.u.u;d=g.q(Object.keys(b));for(e=d.next();!e.done;e=d.next())e=e.value,xG(e,b[e],a.timerName);b=a.u;b.B={};b.u={}}xG("yt_pvis",Yha(),a.timerName);xG("yt_pt","html5",a.timerName);
c&&!FG("pbs",a.timerName)&&a.tick("pbs",c);c=a.W;!fE(c)&&!yD(c)&&FG("_start",a.timerName)&&JG(a.timerName)}};
g.OT=function(a,b){this.type=a||"";this.id=b||""};
g.PT=function(a,b){g.O.call(this);this.Ra=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.Nd=this.loaded=!1;this.wd=this.Px=this.Gr=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.oi={};this.yu=0;var c=b.session_data;c&&(this.wd=Xp(c,"&"));this.LJ=0!==b.fetch;this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.WN="1"===b.mob;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(c=b.api)"string"===typeof c&&16===c.length?b.list="PL"+c:b.playlist=c;if(c=b.list)switch(b.listType){case "user_uploads":this.Nd||(this.listId=new g.OT("UU","PLAYER_"+c),this.loadPlaylist("/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:c}));break;case "search":xsa(this,c);break;default:var d=b.playlist_length;d&&(this.length=Number(d)||0);this.listId=new g.OT(c.substr(0,
2),c.substr(2));(c=b.video)?(this.items=c.slice(0),this.loaded=!0):ysa(this)}else if(b.playlist){c=b.playlist.toString().split(",");0<this.index&&(this.items=[]);c=g.q(c);for(d=c.next();!d.done;d=c.next())(d=d.value)&&this.items.push({video_id:d});this.length=this.items.length;c=this.items.map(function(e){return e.video_id});
this.loadPlaylist("/list_ajax?style=json&action_get_templist=1",{video_ids:c.join(",")});this.loaded=!0}this.setShuffle(!!b.shuffle);if(c=b.suggestedQuality)this.quality=c;this.oi=bH(b,"playlist_");this.bI=(c=b.thumbnail_ids)?c.split(","):[]};
QT=function(a){return!!(a.playlist||a.list||a.api)};
zsa=function(a){var b=a.index+1;return b>=a.length?0:b};
Asa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
RT=function(a,b){a.index=g.$d(b,0,a.length-1);a.startSeconds=0};
xsa=function(a,b){if(!a.Nd){a.listId=new g.OT("SR",b);var c={search_query:b};a.WN&&(c.mob="1");a.loadPlaylist("/search_ajax?style=json&embeddable=1",c)}};
ysa=function(a){if(!a.Nd){var b=b||a.listId;b={list:b};var c=a.Na();c&&c.videoId&&(b.v=c.videoId);a.loadPlaylist("/list_ajax?style=json&action_get_list=1",b)}};
ST=function(a,b){if(b.video&&b.video.length){a.title=b.title||"";a.description=b.description;a.views=b.views;a.likes=b.likes;a.dislikes=b.dislikes;a.author=b.author||"";var c=b.loop;c&&(a.loop=c);c=a.Na();a.items=[];for(var d=g.q(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(d=b.index)?a.index=d:a.findIndex(c);a.setShuffle(!1);a.Nd=!1;a.loaded=!0;a.yu++;a.Gr&&a.Gr()}};
TT=function(a){var b=g.rM(),c=a.Wg;c&&(b.clickTracking={clickTrackingParams:c});var d=b.client||{},e="EMBED",f=DI(a);c=a.T();"leanback"===f?e="WATCH":c.aa("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.Yi?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(c.Ma){f=c.Ma.split(",");e=[];f=g.q(f);for(var h=f.next();!h.done;h=f.next())e.push(Number(h.value));d.experimentIds=e}if(e=c.homeGroupInfo)d.homeGroupInfo=
JSON.parse(e);if(e=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(e);(f=a.Oq)&&!e&&(d.kidsAppInfo={contentSettings:{ageUpMode:Bsa[f]}});if(e=c.getPlayerType())d.playerType=e;if(e=c.deviceParams.ctheme)d.theme=e;if(e=c.livingRoomAppMode)d.tvAppInfo={livingRoomAppMode:e};a.zs&&(d.unpluggedAppInfo={enableFilterMode:!0});if(e=a.qe)d.unpluggedLocationInfo=e;b.client=d;d=b.request||{};a.Cl&&(d.isPrefetch=!0);if(e=a.mdxEnvironment)d.mdxEnvironment=e;if(e=a.mdxControlMode)d.mdxControlMode=Csa[e];b.request=d;d=b.user||
{};if(e=a.mg)d.credentialTransferTokens=[{token:e,scope:"VIDEO"}];if(e=a.Rh)d.delegatePurchases={oauthToken:e},d.kidsParent={oauthToken:e};c.enableSafetyMode&&(d.enableSafetyMode=!0);b.user=d;if(d=a.contextParams)b.activePlayers=[{playerContextParams:d}];if(a=a.clientScreenNonce)b.clientScreenNonce=a;if(a=c.Pa)b.thirdParty={embedUrl:a};return b};
UT=function(a,b,c){var d=a.videoId,e=TT(a),f=a.T(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Cp()),referer:document.location.toString(),signatureTimestamp:18634};g.pt.getInstance();a.Nh&&(h.autonav=!0);g.rt(0,141)&&(h.autonavState=g.rt(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.rt(0,66);GI(a)&&(h.autoplay=!0);f.C&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.Sy&&(h.fling=!0);var l=a.Un;if(l){var m={},n=l.split("|");3===n.length?
(m.breakType=Dsa[n[0]],m.offset={kind:"OFFSET_MILLISECONDS",value:String(Number(n[1])||0)},m.url=n[2]):m.url=l;h.forceAdParameters={videoAds:[m]}}a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);l=a.Cu;if(null!=l){l={startWalltime:String(l)};if(m=a.po)l.manifestDuration=String(m||14400);h.liveContext=l}a.mutedAutoplay&&(h.mutedAutoplay=!0);a.Vj&&(h.splay=!0);l=a.vnd;5===l&&(h.vnd=l);if((l=a.isMdxPlayback)||g.Q(f.experiments,"send_mdx_remote_data_if_present")){l={triggeredByMdx:l};if(n=a.gf)m=n.startsWith("!"),
n=n.split("-"),3===n.length?(m&&(n[0]=n[0].substr(1)),m={clientName:Esa[n[0]]||"UNKNOWN_INTERFACE",platform:Fsa[n[1]]||"UNKNOWN_PLATFORM",applicationState:m?"INACTIVE":"ACTIVE",clientVersion:n[2]||""},f.aa("use_remote_context_in_populate_remote_client_info")?l.remoteContexts=[{remoteClient:m}]:l.remoteClients=[m]):(m={clientName:"UNKNOWN_INTERFACE"},f.aa("use_remote_context_in_populate_remote_client_info")?l.remoteContexts=[{remoteClient:m}]:l.remoteClients=[m]);if(m=a.Cj)l.skippableAdsSupported=
m.split(",").includes("ska");h.mdxContext=l}l=b.width;0<l&&(h.playerWidthPixels=l);if(b=b.height)h.playerHeightPixels=b;0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);a.aa("hoffle_save")&&II(a)&&(d.forOffline=!0);a=a.T();if(e=a.embedConfig)d.serializedThirdPartyEmbedConfig=
e;e=g.rt(g.pt.getInstance(),65);g.bE(a)&&(d.captionParams={deviceCaptionsOn:null!=e?!e:!1});return d};
Gsa=function(a){var b=a.T();g.pt.getInstance();var c={context:TT(a),videoId:a.videoId,racyCheckOk:a.racyCheckOk,contentCheckOk:a.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===DI(a)&&(c.isAdPlayback=!0);b.embedConfig&&(c.serializedThirdPartyEmbedConfig=b.embedConfig);b.Bn&&(c.showContentOwnerOnly=!0);g.rt(0,141)&&(c.autonavState=g.rt(0,140)?"STATE_OFF":"STATE_ON");return c};
Isa=function(a,b){return Ue(this,function d(){var e,f,h,l;return xa(d,function(m){if(1==m.u){e=VS();var n=a.T(),p={context:TT(a)};n=n.embedConfig;var r=a.videoId,t=a.playlistId?a.playlistId:b.list;if(t){t={playlistId:t};var w=a.playlistIndex;t.playlistIndex=String(w?w:1);t.videoId=r?r:"";n&&(t.serializedThirdPartyEmbedConfig=n);p.playlistRequest=t}else b.playlist?(r={templistVideoIds:b.playlist.toString().split(",")},n&&(r.serializedThirdPartyEmbedConfig=n),p.playlistRequest=r):r&&(r={videoId:r},
n&&(r.serializedThirdPartyEmbedConfig=n),p.singleVideoRequest=r);f=p;h=MS(Hsa);return sa(m,AM(e,f,h),2)}l=m.B;a.sh({raw_embedded_player_response:l},!1);m.u=0})})};
g.VT=function(a,b){return Ux(a.info.mimeType)?b?a.info.dc()===b:!0:!1};
g.Jsa=function(a,b){if(null!=a.va&&g.YD(b.T())&&!a.va.isManifestless&&null!=a.va.u.rawcc)return!0;if(!a.Yg())return!1;var c=!!a.va&&a.va.isManifestless&&Object.values(a.va.u).some(function(e){return g.VT(e,"386")}),d=!!a.va&&!a.va.isManifestless&&Oga(a.va);
return c||d};
WT=function(a,b){g.B.call(this);this.I=a;this.F=b;this.u={};this.B={};this.C=null;this.Rc=new Map;this.D=g.Q(a.T().experiments,"web_player_defer_modules")};
g.XT=function(a){return a.Rc.get("captions")};
Nsa=function(a,b){switch(b){case "ad":return ZT(a);case "annotations_module":return a.MH();case "attribution":var c=a.I.T();return g.Q(c.experiments,"web_player_show_music_in_this_video")&&"desktop-polymer"===c.playerStyle;case "creatorendscreen":return c=a.I.T(),"3"===c.controlsType?c=!1:"creator-endscreen-editor"===c.playerStyle?c=!0:(c=a.I.getVideoData(),c=!!c&&(!!g.zI(c)||!!g.AI(c))),c;case "embed":return g.wD(a.I.T());case "endscreen":return g.Ksa(a);case "heartbeat":return a.BA();case "kids":return ND(a.I.T());
case "remote":return a.I.T().Ig;case "miniplayer":return a.I.T().showMiniplayerUiWhenMinimized;case "music":return g.FD(a.I.T());case "captions":return c=a.I.getVideoData(),!!c.Tp||!!c.captionTracks.length||g.Jsa(c,a.I);case "unplugged":return g.MD(a.I.T());case "ux":return a.I.T().qb;case "visualizer":return g.Lsa(a);case "webgl":return Msa(a);case "ypc":return a.Xr();case "ypc_clickwrap":return c=a.I.getVideoData(),c.Bp&&!c.Wy;case "yto":return!!a.I.getVideoData().Kf.includes("yto");default:return g.Qs(Error("Module descriptor "+
b+" does not match")),!1}};
$T=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;var f=a.Rc.get(b);if(!f||e)if(c||(c=function(){$T(a,b,void 0,d,e)}),f=f||Osa(a,b,c,Nsa(a,b)))a.Rc.set(b,f),f.create(),d&&a.I.ya("onApiChange")};
Psa=function(a){a.D&&($T(a,"endscreen"),a.Ix(),$T(a,"creatorendscreen",void 0,!0))};
g.Ksa=function(a){var b=a.I.T();if(fE(b)||b.J||!b.vb&&!b.Qf)return!1;var c=a.I.getPresentingPlayerType();if(2===c)return!1;if(3===c)return g.Q(b.experiments,"desktop_enable_autoplay");a=a.I.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||g.Q(b.experiments,"allow_poltergust_autoplay");c=a.isLivePlayback&&(!g.Q(b.experiments,"allow_live_autoplay")||!c);b=a.isLivePlayback&&g.Q(b.experiments,"allow_live_autoplay_on_mweb");return!c||b};
g.zT=function(a){return a.Rc.get("webgl")};
Msa=function(a){var b=a.I.getVideoData(),c=a.I.T().experiments,d=g.Wq(),e=g.Q(c,"enable_spherical_kabuki");a=g.dE(a.I.T());if(b.Qj())return d||e||a||g.Q(c,"html5_enable_spherical");if(b.Wj())return a||d||e||g.Q(c,"html5_enable_spherical");if(b.Xj())return a||d||g.Q(c,"html5_enable_spherical3d");if(b.ho())return a||g.Q(c,"html5_enable_anaglyph3d")||!1;d=b.Oa&&b.Oa.video&&b.Oa.video.Xg();return a&&!g.oI(b)&&!b.isVisualizerEligible&&!d&&(g.Q(c,"enable_webgl_noop")||g.Q(c,"html5_enable_bicubicsharp")||
g.Q(c,"html5_enable_smartsharp"))};
Qsa=function(a){g.Q(a.I.T().experiments,"web_player_ux_module_wait")&&a.Rc.get("ux")&&a.I.Tc("ux")};
Rsa=function(a){Qsa(a);$T(a,"ux",void 0,!0)};
ZT=function(a){if(a=a.I.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
g.Lsa=function(a){var b=a.I.T();return a.I.getVideoData().isVisualizerEligible&&eE(b)&&g.Q(b.experiments,"web_player_music_visualizer")&&"desktop-polymer"===b.playerStyle&&g.dE(b)&&!(g.ms&&!g.Yd(42))};
Osa=function(a,b,c,d){try{if(d){var e=g.aU[b];if(e)return new e(a.I);"creatorendscreen"===b?Ssa(a,"annotations_module",c):Ssa(a,b,c)}else a.I.Tc(b)}catch(f){a.I.Tc(b),g.Qs(f)}return null};
bU=function(a,b,c){for(var d=g.q(a.Rc),e=d.next();!e.done;e=d.next()){var f=g.q(e.value);e=f.next().value;(f=f.next().value)&&(c||f.li(b))&&(g.Zf(f),a.Rc["delete"](e))}};
cU=function(a){return a.Rc.get("ad")};
dU=function(a){if(ND(a.I.T()))return a.Rc.get("kids")};
g.wT=function(a){if(a.I.T().Ig)return a.Rc.get("remote")};
eU=function(a){if(g.MD(a.I.T()))return a.Rc.get("unplugged")};
kT=function(a){if(a.I.T().qb)return a.Rc.get("ux")};
g.BT=function(a){return a.Rc.get("annotations_module")};
fU=function(a){return a.Rc.get("creatorendscreen")};
Ssa=function(a,b,c){if(a.F){for(var d=a.F+b+".js",e=document.getElementsByTagName("SCRIPT"),f=!1,h,l=0;l<e.length;l++){var m=e[l];if(m.src===d||m.getAttribute("data-original-src")===d)h=m}h||(h=g.Ce("SCRIPT"),h.setAttribute("data-original-src",d),f=!0);var n=function(){a.ma()||c.call(a)},p=function(){a.ma()||a.I.Tc(b)},r=h.onload;
h.onload=function(y){fm(n);r&&r.apply(window,[y])};
var t=h.onerror;h.onerror=function(y){if(.01>Math.random()){var E=new g.nr("Unable to load player module",b+".js from "+d+" on "+(document.location&&document.location.origin)+".");g.Qs(E)}fm(p);t&&t(y)};
var w=h,x=w.onreadystatechange;w.onreadystatechange=function(y){switch(w.readyState){case "loaded":case "complete":fm(n)}x&&x(y)};
f&&((e=a.I.T().cspNonce)&&h.setAttribute("nonce",e),g.hd(h,g.mg(d)),e=document.getElementsByTagName("HEAD")[0]||document.body,e.insertBefore(h,e.firstChild),g.Yf(a,function(){h.parentNode&&h.parentNode.removeChild(h);g.aU[b]=null;"annotations_module"===b&&(g.aU.creatorendscreen=null)}))}};
hU=function(a,b,c,d){g.O.call(this);var e=this;this.target=a;this.da=b;this.B=0;this.J=!1;this.D=new g.de(NaN,NaN);this.u=new g.dR(this);this.ga=this.C=this.K=null;g.C(this,this.u);b=d?4E3:3E3;this.S=new g.F(function(){gU(e,1,!1)},b,this);
g.C(this,this.S);this.X=new g.F(function(){gU(e,2,!1)},b,this);
g.C(this,this.X);this.Y=new g.F(function(){gU(e,512,!1)},b,this);
g.C(this,this.Y);this.fa=c&&0<c.Xl.length?5E3:3E3;d||(this.C=this.u.N(a,"mouseover",this.wv),this.u.N(a,"mousemove",this.SN),this.u.N(a,"mouseleave",this.TN));qg?this.u.N(a,"keypress",this.yL):this.u.N(a,"focusin",this.oK);this.F=this.u.N(a,"mousedown",this.rF);this.P=this.u.N(a,"touchstart",this.fI,void 0,!0);gU(this,640,!0)};
Tsa=function(a){gU(a,4,!1);a.K&&(a.u.Kb(a.K),a.K=null,a.C=a.u.N(a.target,"mouseover",a.wv));a.C&&(a.u.Kb(a.C),a.C=a.u.N(a.target,"mouseover",a.wv))};
gU=function(a,b,c){a.ma();var d=!a.B;c?(a.B|=b,b&1&&a.S.start(),b&2&&a.X.start()):(a.B&=~b,b&1&&a.S.stop(),b&2&&a.X.stop(),b&512&&a.Y.stop());a.B&512&&!(a.B&128)&&g.kn(a.Y,a.fa);b=!a.B;d!==b&&a.V("autohideupdate",b)};
g.iU=function(a){g.U.call(this,{G:"button",ka:["ytp-large-play-button","ytp-button"],U:{"aria-label":"\u518d\u751f"},R:["{{largePlayButtonChildren}}"]});this.api=a;this.N(a,"videodatachange",this.oa);this.oa()};
jU=function(a){var b=a.T(),c=["ytp-cued-thumbnail-overlay"];(g.Q(b.experiments,"web_player_contain_thumbnail")||b.J)&&c.push("ytp-exp-contain-thumbnail");g.U.call(this,{G:"div",ka:c,R:[{G:"div",L:"ytp-cued-thumbnail-overlay-image"}]});b=this.ia("ytp-cued-thumbnail-overlay");c=new g.iU(a);g.C(this,c);c.ha(b);this.C=new g.dR(this);g.C(this,this.C);this.api=a;this.F=this.ia("ytp-cued-thumbnail-overlay-image");this.D=c;this.B=new g.ZN(this,250);g.C(this,this.B);this.u=new g.F(this.oa,0,this);g.C(this,
this.u);this.oa();this.N(a,"appresize",this.Ua);this.N(a,"presentingplayerstatechange",this.dN);this.N(a,"ypcStateChanged",this.wR);yD(a.T())&&this.N(a,"videoplayerreset",this.cN)};
Usa=function(a){var b=!a.T().Jg&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.kU=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.NO(a))return g.jp(a),!0;b.pauseVideo();a=e.getAttribute("href");g.dL(a,d,!0);return!1};
g.lU=function(a,b,c){if(UD(b.T())&&2!==b.getPresentingPlayerType()){if(g.NO(c))return b.isFullscreen()&&!b.T().externalFullscreen&&b.toggleFullscreen(),g.jp(c),!0}else{var d=g.NO(c);d&&b.pauseVideo();g.dL(a,void 0,!0);d&&(g.eL(a),g.jp(c))}return!1};
mU=function(){return{G:"div",L:"ytp-spinner-container",R:[{G:"div",L:"ytp-spinner-rotator",R:[{G:"div",L:"ytp-spinner-left",R:[{G:"div",L:"ytp-spinner-circle"}]},{G:"div",L:"ytp-spinner-right",R:[{G:"div",L:"ytp-spinner-circle"}]}]}]}};
nU=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
g.oU=function(a,b,c){a=a.T();return g.Q(a.experiments,"desktop_player_button_tooltip_with_shortcut")&&!a.Hg?g.HK("$DESCRIPTION\uff08$SHORTCUT\uff09",{DESCRIPTION:b,SHORTCUT:c}):b};
g.pU=function(a){g.U.call(this,{G:"div",ka:["ytp-error"],U:{role:"alert"},R:[{G:"div",L:"ytp-error-content",R:[{G:"div",L:"ytp-error-icon-container",R:[{G:"svg",U:{fill:"#fff",viewBox:"0 0 48 48"},R:[{G:"path",U:{d:"M0 0h48v48H0V0z",fill:"none"}},{G:"path",U:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{G:"div",L:"ytp-error-content-wrap",
R:[{G:"div",L:"ytp-error-content-wrap-reason",Z:"{{content}}"},{G:"div",L:"ytp-error-content-wrap-subreason",Z:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.qU=function(a){a=a.split(Vsa);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",U:{href:a[c],target:a[c+1]},Z:a[c+2]})}return{G:"span",R:b}};
sU=function(a,b,c,d,e,f,h){d=void 0===d?!1:d;e=void 0===e?!1:e;h=void 0===h?!0:h;e||(e=a.api.T().B);a=a.api.getVideoData();b=g.HK(g.rU[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({G:"h2",Z:f});d.push(b[0]);h&&d.push({G:"br"});d.push({G:"a",U:{href:c,target:e?"_blank":null},Z:b[2]});d.push(b[4]);return{G:"span",R:d}};
Wsa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.N(c[d],"click",b);a.keys.push(e)}};
Xsa=function(a){for(var b=0;b<a.keys.length;b++)a.Kb(a.keys[b]);a.keys=[]};
uU=function(a){g.dR.call(this);this.I=a;this.u=new Set;this.mediaSession=navigator.mediaSession;tU(this,"play",function(){a.playVideo()});
tU(this,"pause",function(){a.pauseVideo()});
tU(this,"seekbackward",function(){a.seekBy(-5*a.getPlaybackRate())});
tU(this,"seekforward",function(){a.seekBy(5*a.getPlaybackRate())});
this.N(a,"videodatachange",this.Qa);this.N(a,"presentingplayerstatechange",this.B);this.Qa()};
tU=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.u.add(b)};
vU=function(a){g.U.call(this,{G:"div",L:"ytp-paid-content-overlay",U:{"aria-live":"assertive","aria-atomic":"true"}});this.I=a;this.D=new g.U({G:"div",ka:["ytp-button","ytp-paid-content-overlay-text"]});this.videoId=null;this.C=!1;this.B=new g.ZN(this.D,250,!1,100);this.Kc=this.u=null;g.C(this,this.D);this.D.ha(this.element);g.C(this,this.B);this.N(a,"videodatachange",this.Qa);this.N(a,"presentingplayerstatechange",this.Zb)};
Ysa=function(a,b){var c=pI(b),d=qI(b);a.u?b.videoId&&b.videoId!==a.videoId&&(g.mn(a.u),a.videoId=b.videoId,a.C=!!d):c&&d&&(a.u=new g.F(a.jb,d,a),g.C(a,a.u),g.Ke(g.pe("ytp-paid-content-overlay-text",a.element),c))};
Zsa=function(a,b){a.u&&(g.T(b,8)&&a.C?(a.C=!1,a.zc(),a.u.start()):(g.T(b,2)||g.T(b,64))&&a.videoId&&(a.videoId=null))};
wU=function(a){g.U.call(this,{G:"div",L:"ytp-spinner",R:[mU(),{G:"div",L:"ytp-spinner-message",Z:"\u3059\u3050\u306b\u518d\u751f\u304c\u958b\u59cb\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u30c7\u30d0\u30a4\u30b9\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002"}]});this.api=a;this.message=this.ia("ytp-spinner-message");this.u=new g.F(this.show,500,this);g.C(this,this.u);this.N(a,"presentingplayerstatechange",this.B);this.N(a,"playbackstalledatstart",this.C);a=g.NJ(a);$sa(a)?this.u.start():
this.hide()};
$sa=function(a){return g.T(a,128)?!1:g.T(a,16)||g.T(a,1)?!0:!1};
g.xU=function(a,b,c,d){d=void 0===d?!1:d;g.wN.call(this,b);var e=this;this.I=a;this.Y=d;this.K=new g.dR(this);this.X=new g.ZN(this,c,!0,void 0,void 0,function(){e.B&&e.element&&(e.B.getAttribute("aria-haspopup"),e.B.setAttribute("aria-expanded","true"),g.Q(e.I.T().experiments,"embeds_enable_new_playlist_killswitch")?document.activeElement&&g.Je(e.B,document.activeElement)&&e.focus():e.focus())});
g.C(this,this.K);g.C(this,this.X)};
ata=function(a){a.B&&(document.activeElement&&g.Je(a.element,document.activeElement)&&(Ne(a.B),a.B.focus()),a.B.removeAttribute("aria-expanded"),a.B=void 0);g.Dt(a.K);a.S=void 0};
yU=function(a,b,c){a.tf()?a.jb():a.zc(b,c)};
zU=function(a){var b=g.yB(a.T().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",ka:["ytp-unmute-icon"],R:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,L:"ytp-svg-fill",U:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{G:"div",ka:["ytp-unmute-text"],Z:"\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",ka:["ytp-unmute-box"],R:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.xU.call(this,a,{G:"button",ka:["ytp-unmute","ytp-popup","ytp-button"].concat(c),R:[{G:"div",L:"ytp-unmute-inner",R:d}]},100);this.seen=this.u=!1;this.api=a;g.IT(this.api,this.element,this,51663);this.N(a,"onMutedAutoplayChange",this.D,this);this.N(a,
"presentingplayerstatechange",this.F);this.xa("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.wD(this.api.T());g.vN(this,a);a&&bta(this);this.C=a};
cta=function(a){a.u||(a.u=!0,g.JT(a.api,a.element))};
bta=function(a){a.seen||(a.seen=!0,g.CN(a.api,a.element,!0))};
g.BU=function(a){g.dR.call(this);var b=this;this.api=a;this.AA=!1;this.Ui=null;this.ut=!1;this.u=null;this.Y=this.P=!1;this.ga=this.la=null;this.Ba=NaN;this.ra=this.C=!1;this.D=0;this.X=[];var c=a.T(),d=g.mJ(a);this.na=new g.F(this.DO,0,this);g.C(this,this.na);g.FD(c)||(this.B=new jU(a),g.C(this,this.B),g.lP(a,this.B.element,4));if(dta()){var e=new wU(a);g.C(this,e);e=e.element;g.lP(a,e,4)}var f=a.getVideoData();this.Ic=new hU(d,function(l){a:{try{if(!g.Je(b.api.getRootNode(),l)){var m=!1;break a}}catch(n){m=
!1;break a}for(;l&&!Ne(l);)l=l===b.api.getRootNode()?null:g.Ie(l);m=!!l}return m},f,c.Rf);
g.C(this,this.Ic);this.Ic.subscribe("autohideupdate",this.ai,this);var h=new vU(a);g.C(this,h);g.lP(a,h.element,4);this.S=new zU(a);g.C(this,this.S);g.lP(this.api,this.S.element,2);this.da=this.api.isMutedByMutedAutoplay();this.N(a,"onMutedAutoplayChange",this.WM);this.K=new g.F(this.hv,200,this);g.C(this,this.K);this.fa=f.videoId;this.Ma=new g.F(function(){b.D=0},350);
g.C(this,this.Ma);this.F=new g.F(function(){b.ra||AU(b)},350,this);
g.C(this,this.F);f=a.getRootNode();f.setAttribute("aria-label","YouTube \u52d5\u753b\u30d7\u30ec\u30fc\u30e4\u30fc");switch(c.color){case "white":g.J(f,"ytp-color-white")}g.FD(c)&&g.J(f,"ytp-music-player");!g.Q(a.T().experiments,"disable_mediasession2")&&navigator.mediaSession&&!navigator.mediaSession.metadata&&navigator.mediaSession.setActionHandler&&(f=new uU(a),g.C(this,f));this.N(a,"appresize",this.Ua);this.N(a,"presentingplayerstatechange",this.XM);this.N(a,"videodatachange",this.Qa);this.N(a,
"videoplayerreset",this.XP);this.N(a,"autonavvisibility",function(){b.xk()});
this.N(a,"sizestylechange",function(){b.xk()});
this.N(d,"click",this.zQ,this);this.N(d,"dblclick",this.AQ,this);c.na&&(this.N(d,"gesturechange",this.BQ,this),this.N(d,"gestureend",this.CQ,this));this.sl=[d.C];this.B&&this.sl.push(this.B.element);e&&this.sl.push(e)};
CU=function(a,b){if(!b)return!1;var c=a.api.Wc();if(c.ol()&&(c=c.Xd())&&g.Je(c,b))return c.controls;for(c=0;c<a.sl.length;c++)if(g.Je(a.sl[c],b))return!1;return g.sn(b,"ytp-player-content")||g.sn(b,"html5-endscreen")||b===a.api.getRootNode()?!1:!0};
eta=function(a){return!!(2===a.api.getPresentingPlayerType()&&g.mJ(a.api).J&&a.api.T().u&&DU&&11<=MI)};
EU=function(a,b){return!CU(a,gp(b))&&g.NO(b)};
AU=function(a){a.Ic.vk();if(g.Q(a.api.T().experiments,"web_player_touch_mode_improvements")&&a.P&&a.Y)a.Y=!1;else if(!a.api.T().da&&!a.Jj()){var b=g.NJ(a.api);g.T(b,2)&&tT(a.api)||a.dn(b);if(!a.api.T().na||b.isCued()||g.T(b,1024)){var c=a.api.app.Ma;g.ir("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.T(b,2048);c&&(b.isCued()||d)?(g.ir("embedsRequestStorageAccessState",{isCued:b.isCued(),isAutoplayBlocked:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||
g.ir("embedsRequestStorageAccessFailedState",{state:b.state}),a.hv())}else a.K.isActive()?(a.lu(),a.K.stop()):a.K.start()}};
fta=function(a,b){if(g.NO(b)&&a.api.isMutedByMutedAutoplay()){a.api.unMute();2===a.api.getPresentingPlayerType()&&a.api.playVideo();var c=g.NJ(a.api);!g.T(c,4)||g.T(c,8)||g.T(c,2)||a.hv();return!0}return!1};
gta=function(a){String(a).includes("fullscreen error")?g.gr(a):g.Qs(a)};
hta=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
dta=function(){var a=Qq()&&67<=Nq();return!Pq("tizen")&&!uD&&!a&&!0};
FU=function(a){g.U.call(this,{G:"button",ka:["ytp-button","ytp-back-button"],R:[{G:"div",L:"ytp-arrow-back-icon",R:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},R:[{G:"path",U:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",ub:!0,U:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.I=a;g.vN(this,a.T().showBackButton);this.xa("click",this.onClick)};
g.GU=function(a){g.U.call(this,{G:"div",R:[{G:"div",L:"ytp-bezel-text-wrapper",R:[{G:"div",L:"ytp-bezel-text",Z:"{{title}}"}]},{G:"div",L:"ytp-bezel",U:{role:"status","aria-label":"{{label}}"},R:[{G:"div",L:"ytp-bezel-icon",Z:"{{icon}}"}]}]});this.I=a;this.B=new g.F(this.show,10,this);this.u=new g.F(this.hide,500,this);g.C(this,this.B);g.C(this,this.u);this.hide()};
IU=function(a,b,c){if(0>=b){c=QN();b="\u30df\u30e5\u30fc\u30c8\u6e08\u307f";var d=0}else c=c?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},d=Math.floor(b),b=d+"\u97f3\u91cf";HU(a,c,b,d+"%")};
ita=function(a,b){var c=b?{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,L:"ytp-svg-fill",U:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,L:"ytp-svg-fill",U:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]},d=a.I.getPlaybackRate(),e=g.HK("\u901f\u5ea6: $RATE",{RATE:String(d)});HU(a,c,e,d+"x")};
HU=function(a,b,c,d){d=void 0===d?"":d;a.za("label",void 0===c?"":c);a.za("icon",b);g.mn(a.u);a.B.start();a.za("title",d);g.K(a.element,"ytp-bezel-text-hide",!d)};
KU=function(a,b,c){g.U.call(this,{G:"button",ka:["ytp-button","ytp-cards-button"],U:{"aria-label":"\u30ab\u30fc\u30c9\u3092\u8868\u793a","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.wD(a.T()))},R:[{G:"span",L:"ytp-cards-button-icon-default",R:[{G:"div",L:"ytp-cards-button-icon",R:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,L:"ytp-svg-fill",U:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{G:"div",L:"ytp-cards-button-title",Z:"\u60c5\u5831"}]},{G:"span",L:"ytp-cards-button-icon-shopping",R:[{G:"div",L:"ytp-cards-button-icon",R:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",L:"ytp-svg-shadow",U:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",L:"ytp-svg-fill",U:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{G:"path",L:"ytp-svg-shadow-fill",U:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div",
L:"ytp-cards-button-title",Z:"\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0"}]}]});this.I=a;this.D=b;this.C=c;this.u=null;this.B=new g.ZN(this,250,!0,100);g.C(this,this.B);g.K(this.C,"ytp-show-cards-title",g.wD(a.T()));this.hide();this.xa("click",this.onClicked);this.xa("mouseover",this.mP);JU(this,!0)};
JU=function(a,b){b?a.u=g.LU(a.D.Qb(),a.element):(a.u=a.u,a.u(),a.u=null)};
MU=function(a,b,c){g.U.call(this,{G:"div",L:"ytp-cards-teaser",R:[{G:"div",L:"ytp-cards-teaser-box"},{G:"div",L:"ytp-cards-teaser-text",R:[{G:"span",L:"ytp-cards-teaser-label",Z:"{{text}}"}]}]});var d=this;this.I=a;this.X=b;this.Fi=c;this.D=new g.ZN(this,250,!1,250);this.u=null;this.K=new g.F(this.HP,300,this);this.J=new g.F(this.GP,2E3,this);this.F=[];this.B=null;this.S=new g.F(function(){d.element.style.margin="0"},250);
this.C=null;g.C(this,this.D);g.C(this,this.K);g.C(this,this.J);g.C(this,this.S);this.N(c.element,"mouseover",this.ZE);this.N(c.element,"mouseout",this.YE);this.N(a,"cardsteasershow",this.XQ);this.N(a,"cardsteaserhide",this.jb);this.N(a,"cardstatechange",this.qI);this.N(a,"presentingplayerstatechange",this.qI);this.N(a,"appresize",this.fB);this.N(a,"onShowControls",this.fB);this.N(a,"onHideControls",this.RJ);this.xa("click",this.qS);this.xa("mouseenter",this.YM)};
kta=function(a,b,c,d){var e=window.location.search;if(38===b.gh&&"books"===a.playerStyle)return e=b.videoId.indexOf(":"),g.Id("//play.google.com/books/volumes/"+b.videoId.slice(0,e)+"/content/media",{aid:b.videoId.slice(e+1),sig:b.cO});if(30===b.gh&&"docs"===a.playerStyle)return g.Id("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.lf,authkey:b.authKey,eurl:a.Pa});if(33===b.gh&&"google-live"===a.playerStyle)return g.Id("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});
"yt"!==a.Y&&g.Qs(Error("getVideoInfoUrl for invalid namespace: "+a.Y));var f={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.Pa,ps:a.playerStyle,el:DI(b),hl:a.Lg,list:b.playlistId,agcid:b.XB,aqi:b.adQueryId,sts:18634,lact:Cp()};g.Ua(f,a.deviceParams);a.Ma&&(f.forced_experiments=a.Ma);b.mg?(f.vvt=b.mg,b.mdxEnvironment&&(f.mdx_environment=b.mdxEnvironment)):b.nf()&&(f.access_token=b.nf());b.adFormat&&(f.adformat=b.adFormat);0<=b.slotPosition&&(f.slot_pos=b.slotPosition);b.breakType&&
(f.break_type=b.breakType);null!==b.Xw&&(f.ad_id=b.Xw);null!==b.ex&&(f.ad_sys=b.ex);null!==b.Nx&&(f.encoded_ad_playback_context=b.Nx);b.MA&&(f.tpra="1");a.captionsLanguagePreference&&(f.cc_lang_pref=a.captionsLanguagePreference);a.zj&&2!==a.zj&&(f.cc_load_policy=a.zj);var h=g.rt(g.pt.getInstance(),65);g.bE(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.Bt&&(f.endscreen_ad_tracking=
b.Bt);(h=a.P.get(b.videoId))&&h.xs&&(f.ic_track=h.xs);b.Wg&&(f.itct=b.Wg);GI(b)&&(f.autoplay="1");b.mutedAutoplay&&(f.mutedautoplay=b.mutedAutoplay);b.Nh&&(f.autonav="1");b.Vy&&(f.noiba="1");g.Q(a.experiments,"send_mdx_remote_data_if_present")?(b.isMdxPlayback&&(f.mdx="1"),b.gf&&(f.ytr=b.gf)):b.isMdxPlayback&&(f.mdx="1",f.ytr=b.gf);b.mdxControlMode&&(f.mdx_control_mode=b.mdxControlMode);b.Cj&&(f.ytrcc=b.Cj);b.az&&(f.utpsa="1");b.Sy&&(f.is_fling="1");b.Ty&&(f.mute="1");b.vnd&&(f.vnd=b.vnd);b.Un&&(h=
3===b.Un.split("|").length,f.force_ad_params=h?b.Un:"||"+b.Un);b.Cl&&(f.preload=b.Cl);c.width&&(f.width=c.width);c.height&&(f.height=c.height);b.Vj&&(f.splay="1");b.ypcPreview&&(f.ypc_preview="1");EI(b)&&(f.content_v=EI(b));b.Yi&&(f.livemonitor=1);a.lf&&(f.authuser=a.lf);a.pageId&&(f.pageid=a.pageId);a.Ac&&(f.ei=a.Ac);a.B&&(f.iframe="1");b.contentCheckOk&&(f.cco="1");b.racyCheckOk&&(f.rco="1");a.C&&b.Cu&&(f.live_start_walltime=b.Cu);a.C&&b.po&&(f.live_manifest_duration=b.po);a.C&&b.playerParams&&
(f.player_params=b.playerParams);a.C&&b.cycToken&&(f.cyc=b.cycToken);a.C&&b.PA&&(f.tkn=b.PA);0!==d&&(f.vis=d);a.enableSafetyMode&&(f.enable_safety_mode="1");b.Rh&&(f.kpt=b.Rh);b.Oq&&(f.kids_age_up_mode=b.Oq);b.kidsAppInfo&&(f.kids_app_info=b.kidsAppInfo);b.zs&&(f.upg_content_filter_mode="1");a.widgetReferrer&&(f.widget_referrer=a.widgetReferrer.substring(0,128));b.qe?(h=null!=b.qe.latitudeE7&&null!=b.qe.longitudeE7?b.qe.latitudeE7+","+b.qe.longitudeE7:",",h+=","+(b.qe.clientPermissionState||0)+","+
(b.qe.locationRadiusMeters||"")+","+(b.qe.locationOverrideToken||"")):h=null;h&&(f.uloc=h);b.Jq&&(f.internalipoverride=b.Jq);a.embedConfig&&(f.embed_config=a.embedConfig);a.Bn&&(f.co_rel="1");0<a.Kg.length&&(f.ancestor_origins=Array.from(a.Kg).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.mt&&b.nt&&(f.clip=b.mt,f.clipt=b.nt);b.wt&&(f.disable_watch_next="1");a.aa("web_player_gvi_wexit_diff")&&(f.player_request=JSON.stringify(UT(b,c,d)));a.aa("html5_onesie_watch_next_diff")&&(f.watch_next_request=JSON.stringify(Gsa(b)));for(var l in f)!jta.has(l)&&f[l]&&512<String(f[l]).length&&(g.gr(Error("GVI param too long: "+l)),f[l]="");b=a.S;g.MD(a)&&(b=xw(b.replace(/\b(?:www|web)([.-])/,"tv$1"))||a.S);a=g.Id(b+"get_video_info",f);e&&(a=pq(a,e));return a};
g.NU=function(a,b){return a.S+"timedtext_video?ref=player&v="+b.videoId};
g.OU=function(a){var b={};b.feature=a;return b};
lta=function(a){var b={};a.wH&&(b.ytrext=a.wH);return g.Rb(b)?void 0:b};
QU=function(a,b){g.U.call(this,{G:"button",ka:[PU.BUTTON,PU.TITLE_NOTIFICATIONS],U:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},R:[{G:"div",L:PU.TITLE_NOTIFICATIONS_ON,U:{title:"\u65b0\u7740\u52d5\u753b\u306b\u95a2\u3059\u308b\u901a\u77e5\u304c\u5c4a\u304b\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059","aria-label":"\u767b\u9332\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u901a\u77e5"},R:[g.NN()]},{G:"div",L:PU.TITLE_NOTIFICATIONS_OFF,U:{title:"\u65b0\u7740\u52d5\u753b\u306b\u95a2\u3059\u308b\u901a\u77e5\u304c\u5c4a\u304d\u307e\u3059",
"aria-label":"\u767b\u9332\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u901a\u77e5"},R:[{G:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},R:[{G:"path",U:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=a;this.channelId=b;this.u=!1;g.IT(a,this.element,this,36927);this.xa("click",this.onClick,this);
this.za("pressed",!1);this.za("label","\u65b0\u7740\u52d5\u753b\u306b\u95a2\u3059\u308b\u901a\u77e5\u304c\u5c4a\u304d\u307e\u3059")};
mta=function(a,b){a.u=b;a.element.classList.toggle(PU.NOTIFICATIONS_ENABLED,a.u);if(g.Q(a.api.T().experiments,"web_player_innertube_subscription_update")){var c=a.api.getVideoData();if(c)if(c=b?c.RA:c.QA){var d=yM(a.api.app,void 0);d?NS(d,c):g.M(Error("No innertube service available when updating notification preferences."))}else g.M(Error("No update preferences command available."));else g.M(Error("No video data when updating notification preferences."))}else g.sq("/subscription_ajax?action_update_subscription_preferences=1",
{method:"POST",pc:{channel_id:a.channelId,receive_all_updates:!a.u}})};
nta=function(a,b,c){return b?a.S+"subscription_ajax":c?"/subscription_service":""};
g.SU=function(a,b,c,d,e,f,h,l,m,n,p,r,t){t=void 0===t?null:t;f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var w=r.T();if(p){c={href:p,"aria-label":"\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332"};if(g.CD(w)||g.ED(w))c.target=w.F;g.U.call(this,{G:"div",ka:["ytp-button","ytp-sb"],R:[{G:"a",L:"ytp-sb-subscribe",U:c,R:[{G:"div",L:"ytp-sb-text",R:[{G:"div",L:"ytp-sb-icon"},a]},b?{G:"div",L:"ytp-sb-count",
Z:b}:""]}]});f&&g.J(this.element,"ytp-sb-classic");this.channelId=h;this.u=t}else{p=w.userDisplayName&&g.CD(w)&&!g.Q(w.experiments,"subscribe_tooltipkillswitch");g.U.call(this,{G:"div",ka:["ytp-button","ytp-sb"],R:[{G:"div",L:"ytp-sb-subscribe",U:p?{title:g.HK("$USER_NAME \u3068\u3057\u3066\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332\u3059\u308b",{USER_NAME:w.userDisplayName}),"aria-label":"\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332","data-tooltip-image":gE(w),"data-tooltip-opaque":String(g.wD(w)),
tabindex:"0",role:"button"}:{"aria-label":"\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332"},R:[{G:"div",L:"ytp-sb-text",R:[{G:"div",L:"ytp-sb-icon"},a]},b?{G:"div",L:"ytp-sb-count",Z:b}:""]},{G:"div",L:"ytp-sb-unsubscribe",U:p?{title:g.HK("$USER_NAME \u3067\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332\u6e08\u307f",{USER_NAME:w.userDisplayName}),"aria-label":"\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332\u3092\u89e3\u9664","data-tooltip-image":gE(w),"data-tooltip-opaque":String(g.wD(w)),tabindex:"0",role:"button"}:
{"aria-label":"\u30c1\u30e3\u30f3\u30cd\u30eb\u767b\u9332\u3092\u89e3\u9664"},R:[{G:"div",L:"ytp-sb-text",R:[{G:"div",L:"ytp-sb-icon"},c]},d?{G:"div",L:"ytp-sb-count",Z:d}:""]}]});var x=this;this.channelId=h;this.u=t;var y=this.ia("ytp-sb-subscribe"),E=this.ia("ytp-sb-unsubscribe");f&&g.J(this.element,"ytp-sb-classic");if(e){l?this.B():this.C();var D=function(){a:{var I=x.channelId;if(m||n){var H=r.T();var Ba={c:I};if(g.Q(H.experiments,"embeds_botguard_with_subscribe_killswitch"))Ba="";else{var la;
Xs.Vd()&&(la=Kra(Ba));Ba=la||""}if(g.Q(H.experiments,"web_player_innertube_subscription_update")){H=r.getVideoData();if(!H){g.M(Error("No video data available when updating subscription."));break a}H=H.subscribeCommand;if(!H){g.M(Error("No subscribe command in videoData."));break a}la=yM(r.app,void 0);if(!la){g.M(Error("No innertube service available when updating subscriptions."));break a}NS(la,H,{botguardResponse:Ba,feature:m})}else g.sq(nta(H,!!m,!!n),m?{method:"POST",sj:{action_create_subscription_to_channel:1,
c:I},pc:{feature:m,silo_name:null,r2b:Ba},withCredentials:!0}:n?{method:"POST",sj:{action_subscribe:1},pc:{channel_ids:I,itct:n}}:{});r.ya("SUBSCRIBE",I)}}E.focus();E.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")},G=function(){var I=x.channelId;
if(m||n){var H=r.T();g.Q(H.experiments,"web_player_innertube_subscription_update")?(H=r.getVideoData(),NS(yM(r.app,void 0),H.unsubscribeCommand,{feature:m})):g.sq(nta(H,null!=m,null!=n),m?{method:"POST",sj:{action_remove_subscriptions:1},pc:{c:I,silo_name:null,feature:m},withCredentials:!0}:n?{method:"POST",sj:{action_unsubscribe:1},pc:{channel_ids:I,itct:n}}:{});r.ya("UNSUBSCRIBE",I)}y.focus();y.removeAttribute("aria-hidden");E.setAttribute("aria-hidden","true")};
this.N(y,"click",D);this.N(E,"click",G);this.N(y,"keypress",function(I){13===I.keyCode&&D(I)});
this.N(E,"keypress",function(I){13===I.keyCode&&G(I)});
this.N(r,"SUBSCRIBE",this.B);this.N(r,"UNSUBSCRIBE",this.C);this.u&&p&&(this.tooltip=this.u.Qb(),RU(this.tooltip),g.Yf(this,g.LU(this.tooltip,y)),g.Yf(this,g.LU(this.tooltip,E)))}else g.J(y,"ytp-sb-disabled"),g.J(E,"ytp-sb-disabled")}};
TU=function(a,b){g.U.call(this,{G:"div",L:"ytp-title-channel",R:[{G:"div",L:"ytp-title-beacon"},{G:"a",L:"ytp-title-channel-logo",U:{href:"{{channelLink}}",target:a.T().F,"aria-label":"{{channelLogoLabel}}"}},{G:"div",L:"ytp-title-expanded-overlay",U:{"aria-hidden":"{{flyoutUnfocusable}}"},R:[{G:"div",L:"ytp-title-expanded-heading",R:[{G:"h2",L:"ytp-title-expanded-title",R:[{G:"a",Z:"{{expandedTitle}}",U:{href:"{{channelTitleLink}}",target:a.T().F,tabIndex:"{{channelTitleFocusable}}"}}]},{G:"h3",
L:"ytp-title-expanded-subtitle",Z:"{{expandedSubtitle}}"}]}]}]});this.api=a;this.K=b;this.channel=this.ia("ytp-title-channel");this.u=this.ia("ytp-title-channel-logo");this.D=this.ia("ytp-title-expanded-overlay");this.C=this.B=this.subscribeButton=null;this.F=g.wD(this.api.T());g.IT(a,this.u,this,36925);this.F&&ota(this);this.N(a,"videodatachange",this.oa);this.N(a,"videoplayerreset",this.oa);this.oa()};
ota=function(a){var b=a.api.T(),c=a.api.getVideoData();if(!b.la){var d=b.lf?null:Dra(),e=new g.SU("\u767b\u9332",null,"\u767b\u9332\u6e08\u307f",null,!0,!1,c.lg,c.subscribed,"channel_avatar",null,d,a.api,a.K);a.subscribeButton=e;g.C(a,e);e.ha(a.D);g.IT(a.api,e.element,a,36926);e.hide();a.N(e.element,"click",function(){g.JT(a.api,e.element)});
var f=new QU(a.api,c.lg);a.B=f;g.C(a,f);f.ha(a.D);f.hide();a.N(a.api,"SUBSCRIBE",function(){c.kp&&f.show()});
a.N(a.api,"UNSUBSCRIBE",function(){c.kp&&(f.hide(),mta(f,!1))})}a.za("flyoutUnfocusable","true");
a.za("channelTitleFocusable","-1");b.u?a.N(a.u,"click",function(h){pta(a)&&(h.preventDefault(),a.isExpanded()?a.Dx():a.Zx());g.JT(a.api,a.u)}):(a.N(a.channel,"mouseenter",a.Zx),a.N(a.channel,"mouseleave",a.Dx),a.N(a.channel,"focusin",a.Zx),a.N(a.channel,"focusout",function(h){a.channel.contains(h.relatedTarget)||a.Dx()}),a.N(a.u,"click",function(){g.JT(a.api,a.u)}));
a.C=new g.F(function(){a.isExpanded()&&(a.subscribeButton&&(a.subscribeButton.hide(),g.CN(a.api,a.subscribeButton.element,!1)),a.B&&(a.B.hide(),g.CN(a.api,a.B.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.C(a,a.C);a.N(a.channel,qta,function(){rta(a)});
a.N(a.api,"onHideControls",a.lA);a.N(a.api,"appresize",a.lA);a.N(a.api,"fullscreentoggled",a.lA)};
rta=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
pta=function(a){var b=a.api.getPlayerSize();return a.F&&524<=b.width};
g.VU=function(a,b,c,d){g.wN.call(this,a);this.priority=b;c&&g.UU(this,c);d&&this.Dc(d)};
g.WU=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",ka:b,U:a,R:[{G:"div",L:"ytp-menuitem-icon",Z:"{{icon}}"},{G:"div",L:"ytp-menuitem-label",Z:"{{label}}"},{G:"div",L:"ytp-menuitem-content",Z:"{{content}}"}]}};
XU=function(a,b){a.za("icon",b)};
g.UU=function(a,b){a.za("label",b)};
YU=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",R:[{G:"button",ka:["ytp-button",l],R:[c]}]};if(e){var n="ytp-panel-options";m.R.unshift({G:"button",ka:["ytp-button",n],R:[d]})}h.R=[m]}d=!1;f&&(f={G:"div",L:"ytp-panel-footer",R:[f]},d=!0,h.R?h.R.push(f):h.R=[f]);g.wN.call(this,h);this.content=b;d&&h.R?b.ha(this.element,h.R.length-1):b.ha(this.element);this.HD=!1;this.jL=d;c&&(c=this.ia(l),this.N(c,"click",this.FO),this.HD=!0,
e&&(n=this.ia(n),this.N(n,"click",e)));b.subscribe("size-change",this.NF,this);this.N(a,"fullscreentoggled",this.NF)};
g.ZU=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.wN({G:"div",L:"ytp-panel-menu",U:h});YU.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.C(this,this.menuItems)};
g.$U=function(a){for(var b=g.q(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.Pz,a);a.items=[];g.Ee(a.menuItems.element);a.menuItems.V("size-change")};
sta=function(a,b){return b.priority-a.priority};
aV=function(a){var b=g.WU({"aria-haspopup":"true"});g.VU.call(this,b,a);this.xa("keydown",this.u)};
bV=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
g.cV=function(a,b){g.VU.call(this,g.WU({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",L:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.xa("click",this.onClick)};
dV=function(a,b,c,d){g.ZU.call(this,a);this.I=a;this.Wa=c;this.Rb=d;this.Th=new g.cV("\u30eb\u30fc\u30d7\u518d\u751f",7);this.getVideoUrl=new aV(6);this.Kh=new aV(5);this.Fh=new aV(4);this.rb=new aV(3);this.Or=new g.VU(g.WU({href:"{{href}}",target:this.I.T().F},void 0,!0),2,"\u518d\u751f\u306b\u95a2\u3059\u308b\u554f\u984c\u3092\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3059\u308b");this.On=new g.wN({G:"div",ka:["ytp-copytext","ytp-no-contextmenu"],U:{draggable:"false",tabindex:"1"},
Z:"{{text}}"});this.zC=new YU(this.I,this.On);this.Yk=null;g.C(this,this.Th);this.Tb(this.Th,!0);this.Th.xa("click",this.BR,this);g.IT(a,this.Th.element,this.Th,28661);g.C(this,this.getVideoUrl);this.Tb(this.getVideoUrl,!0);this.getVideoUrl.xa("click",this.zR,this);g.IT(a,this.getVideoUrl.element,this.getVideoUrl,28659);g.C(this,this.Kh);this.Tb(this.Kh,!0);this.Kh.xa("click",this.AR,this);g.IT(a,this.Kh.element,this.Kh,28660);g.C(this,this.Fh);this.Tb(this.Fh,!0);this.Fh.xa("click",this.yR,this);
g.IT(a,this.Fh.element,this.Fh,28658);g.C(this,this.rb);this.Tb(this.rb,!0);this.rb.xa("click",this.xR,this);g.C(this,this.Or);this.Tb(this.Or,!0);this.Or.xa("click",this.uQ,this);b=new g.VU(g.WU(),1,"\u8a73\u7d30\u7d71\u8a08\u60c5\u5831");g.C(this,b);this.Tb(b,!0);b.xa("click",this.LQ,this);g.C(this,this.On);this.On.xa("click",this.WO,this);g.C(this,this.zC);c=document.queryCommandSupported&&document.queryCommandSupported("copy");g.DB&&g.Yd(43)&&(c=!0);g.KC&&!g.Yd(41)&&(c=!1);c&&(this.Yk=new g.U({G:"textarea",
L:"ytp-html5-clipboard",U:{readonly:""}}),g.C(this,this.Yk),this.Yk.ha(this.element));XU(this.Th,{G:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},R:[{G:"path",U:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});XU(this.rb,{G:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},R:[{G:"path",U:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
fill:"white","fill-rule":"evenodd"}}]});XU(this.Or,{G:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},R:[{G:"path",U:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
fill:"white","fill-rule":"evenodd"}}]});XU(b,dna());this.N(a,"loopchange",this.XF);this.N(a,"videodatachange",this.Qa);tta(this);this.ki(this.I.getVideoData())};
fV=function(a,b){var c=!1;if(a.Yk){var d=a.Yk.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Wa.jb():(a.On.Dc(b,"text"),g.eV(a.Wa,a.zC),nU(a.On.element),a.Yk&&(a.Yk=null,tta(a)));return c};
tta=function(a){var b=!!a.Yk;g.UU(a.rb,b?"\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3092\u30b3\u30d4\u30fc":"\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u3092\u53d6\u5f97");bV(a.rb,!b);g.UU(a.Fh,b?"\u57cb\u3081\u8fbc\u307f\u30b3\u30fc\u30c9\u3092\u30b3\u30d4\u30fc":"\u57cb\u3081\u8fbc\u307f\u30b3\u30fc\u30c9\u3092\u53d6\u5f97");bV(a.Fh,!b);g.UU(a.getVideoUrl,b?"\u52d5\u753b\u306e URL \u3092\u30b3\u30d4\u30fc":"\u52d5\u753b\u306e URL \u3092\u53d6\u5f97");bV(a.getVideoUrl,!b);g.UU(a.Kh,b?"\u73fe\u6642\u70b9\u306e\u52d5\u753b\u306e URL \u3092\u30b3\u30d4\u30fc":
"\u3053\u306e\u5834\u6240\u306e\u52d5\u753b URL \u3092\u53d6\u5f97");bV(a.Kh,!b);XU(a.Fh,b?bna():null);XU(a.getVideoUrl,b?LN():null);XU(a.Kh,b?LN():null)};
g.gV=function(a,b){g.xU.call(this,a,{G:"div",ka:["ytp-popup",b||""]},100,!0);this.u=[];this.C=this.F=null;this.jv=this.maxWidth=0;this.size=new g.fe(0,0);this.xa("keydown",this.hN)};
uta=function(a){var b=a.u[a.u.length-1];if(b){g.Dg(a.element,a.maxWidth||"100%",a.jv||"100%");g.og(b.element,"minWidth","250px");g.og(b.element,"width","");g.og(b.element,"height","");g.og(b.element,"maxWidth","100%");g.og(b.element,"maxHeight","100%");g.og(b.content.element,"height","");var c=g.Eg(b.element);c.width+=1;c.height+=1;g.og(b.element,"width",c.width+"px");g.og(b.element,"height",c.height+"px");g.og(b.element,"maxWidth","");g.og(b.element,"maxHeight","");var d=0;b.HD&&(d=b.ia("ytp-panel-header"),
d=g.Eg(d).height);var e=0;b.jL&&(e=b.ia("ytp-panel-footer"),g.og(e,"width",c.width+"px"),e=g.Eg(e).height);g.og(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.og(b.element,"width",c.width+"px")));a.size=c}};
g.eV=function(a,b){var c=a.u[a.u.length-1];a.u.push(b);hV(a,c,b)};
g.iV=function(a){if(!(1>=a.u.length)){var b=a.u.pop(),c=a.u[0];a.u=[c];hV(a,b,c,!0)}};
hV=function(a,b,c,d){vta(a);b&&(b.unsubscribe("size-change",a.vp,a),b.unsubscribe("back",a.gg,a));c.subscribe("size-change",a.vp,a);c.subscribe("back",a.gg,a);if(a.bb){g.J(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.ha(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;uta(a);g.Dg(a.element,e);a.F=new g.F(function(){wta(a,b,c,d)},20,a);
a.F.start()}else c.ha(a.element),b&&b.detach()};
wta=function(a,b,c,d){a.F.dispose();a.F=null;g.J(a.element,"ytp-popup-animating");d?(g.J(b.element,"ytp-panel-animate-forward"),g.un(c.element,"ytp-panel-animate-back")):(g.J(b.element,"ytp-panel-animate-back"),g.un(c.element,"ytp-panel-animate-forward"));g.Dg(a.element,a.size);a.C=new g.F(function(){g.un(a.element,"ytp-popup-animating");b.detach();g.vn(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.C.dispose();a.C=null},250,a);
a.C.start()};
vta=function(a){a.F&&g.ln(a.F);a.C&&g.ln(a.C)};
g.jV=function(a,b,c){g.gV.call(this,a);this.da=b;this.Rb=c;this.J=new g.dR(this);this.D=null;g.C(this,this.J);g.IT(a,this.element,this,28656);g.J(this.element,"ytp-contextmenu");xta(this);this.hide()};
xta=function(a){g.Dt(a.J);"gvn"!==a.I.T().playerStyle&&a.J.N(g.mJ(a.I),"contextmenu",a.TO)};
yta=function(a){a.I.isFullscreen()?g.lP(a.I,a.element,9):a.ha(document.body)};
kV=function(a,b){g.U.call(this,{G:"button",ka:["ytp-button","ytp-copylink-button"],U:{title:"{{title-attr}}","data-tooltip-opaque":String(g.wD(a.T()))},R:[{G:"div",L:"ytp-copylink-icon",Z:"{{icon}}"},{G:"div",L:"ytp-copylink-title",Z:"\u30ea\u30f3\u30af\u3092\u30b3\u30d4\u30fc",U:{"aria-hidden":"true"}}]});this.api=a;this.u=b;this.visible=!1;this.tooltip=this.u.Qb();var c=a.T();RU(this.tooltip);g.K(this.element,"ytp-show-copylink-title",g.wD(c)&&!g.FD(c));g.IT(a,this.element,this,86570);this.xa("click",
this.onClick);this.N(a,"videodatachange",this.oa);this.N(a,"videoplayerreset",this.oa);this.N(a,"appresize",this.oa);this.oa();g.Yf(this,g.LU(this.tooltip,this.element))};
zta=function(a){a.za("icon",GN());if(a.api.T().u)lV(a.tooltip,a.element,"\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f");else{a.za("title-attr","\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30d7\u30dc\u30fc\u30c9\u306b\u30b3\u30d4\u30fc\u3057\u307e\u3057\u305f");mV(a.tooltip);lV(a.tooltip,a.element);var b=a.xa("mouseleave",function(){a.Kb(b);a.oa();a.tooltip.Ei()})}};
Ata=function(a,b){return Ue(a,function d(){var e=this;return xa(d,function(f){if(1==f.u)return f.C=2,sa(f,navigator.clipboard.writeText(b),4);if(2!=f.u)return f["return"](!0);ua(f);var h=f["return"],l=!1,m=g.Ce("TEXTAREA");m.value=b;m.setAttribute("readonly","");var n=e.api.getRootNode();n.appendChild(m);if($q){var p=window.getSelection();p.removeAllRanges();var r=document.createRange();r.selectNodeContents(m);p.addRange(r);m.setSelectionRange(0,b.length)}else m.select();try{l=document.execCommand("copy")}catch(t){}n.removeChild(m);
return h.call(f,l)})})};
nV=function(a){g.U.call(this,{G:"div",L:"ytp-doubletap-ui",R:[{G:"div",L:"ytp-doubletap-fast-forward-ve"},{G:"div",L:"ytp-doubletap-rewind-ve"},{G:"div",L:"ytp-doubletap-static-circle",R:[{G:"div",L:"ytp-doubletap-ripple"}]},{G:"div",L:"ytp-doubletap-overlay-a11y"},{G:"div",L:"ytp-doubletap-seek-info-container",R:[{G:"div",L:"ytp-doubletap-arrows-container",R:[{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",
R:[{G:"div",L:"ytp-chapter-seek-text",Z:"{{seekText}}"},{G:"div",L:"ytp-doubletap-tooltip-label",Z:"{{seekTime}}"}]}]}]});this.I=a;this.B=new g.F(this.show,10,this);this.u=new g.F(this.hide,700,this);g.C(this,this.B);g.C(this,this.u);this.hide();this.C=this.ia("ytp-doubletap-fast-forward-ve");this.D=this.ia("ytp-doubletap-rewind-ve");g.IT(this.I,this.C,this,28240);g.IT(this.I,this.D,this,28239);g.CN(this.I,this.C,!0);g.CN(this.I,this.D,!0)};
oV=function(a,b,c){var d=g.mJ(a.I).getPlayerSize();g.mn(a.u);a.B.start();a.element.setAttribute("data-side",-1===b?"back":"forward");var e=a.ia("ytp-doubletap-static-circle");e.style.width="110px";e.style.height="110px";1===b?(e.style.right="",e.style.left=.8*d.width-30+"px"):-1===b&&(e.style.right="",e.style.left=.1*d.width-15+"px");e.style.top=.5*d.height+15+"px";Bta(a,c)};
pV=function(a,b,c){g.mn(a.u);a.B.start();a.element.setAttribute("data-side",-1===b?"back":"forward");b=a.ia("ytp-doubletap-static-circle");b.style.width="0";b.style.height="0";g.J(a.element,"ytp-chapter-seek");a.za("seekText",c);a.za("seekTime","")};
Bta=function(a,b){var c=g.HK("$TOTAL_SEEK_TIME \u79d2",{TOTAL_SEEK_TIME:b.toString()});a.za("seekTime",c)};
qV=function(a){var b=null;try{b=a.toLocaleString("ja",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
rV=function(a,b){for(var c=0,d=g.q(a),e=d.next();!(e.done||e.value.startTime>b);e=d.next())c++;return 0===c?c:c-1};
Cta=function(a,b){var c=rV(a,b)+1;return c<a.length?c:-1};
Dta=function(a,b){return rV(a,b)-1};
g.sV=function(a,b,c,d,e,f,h){g.dR.call(this);var l=this;this.api=a;this.contextMenu=c;this.Ic=d;this.Rb=e;this.u=f;this.D=h;this.C=new g.F(function(){Eta(l,!1)},1E3);
this.B="";g.C(this,this.C);a=g.Ta(this.xA,!1);this.N(b,"mousedown",a);this.N(c.element,"mousedown",a);this.N(b,"keydown",this.ED);this.N(c.element,"keydown",this.ED);this.N(b,"keyup",this.FD);this.N(c.element,"keyup",this.FD)};
uV=function(a,b,c,d){var e=g.XT(g.rT(a.api));if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.tV.length;h++){var l=g.tV[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);Eta(a,!0);a.C.start()}};
Fta=function(a,b){a.api.Ce();if(g.T(g.NJ(a.api),4)){var c=a.api.getVideoData().Oa;c&&(c=c.video)&&a.api.seekBy(b/(c.fps||30))}};
Eta=function(a,b){g.XT(g.rT(a.api))&&a.api.setOption("captions","sampleSubtitles",b)};
vV=function(a,b,c){g.U.call(this,{G:"button",ka:["ytp-button","ytp-overflow-button"],U:{title:"\u3055\u3089\u306b\u8868\u793a","aria-haspopup":"true","aria-owns":c.element.id},R:[{G:"div",L:"ytp-overflow-icon",R:[{G:"svg",U:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},R:[{G:"path",U:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var d=this;this.I=a;this.u=b;this.visible=
!1;this.tooltip=this.u.Qb();g.IT(a,this.element,this,16499);this.N(a,"appresize",this.oa);this.N(a,"fullscreentoggled",this.oa);this.N(a,"presentingplayerstatechange",this.oa);this.oa();g.Yf(this,g.LU(this.tooltip,this.element));this.xa("click",function(){g.JT(a,d.element);yU(c,d.element,!1)})};
wV=function(a,b){g.xU.call(this,a,{G:"div",L:"ytp-overflow-panel",U:{id:rN(),role:"dialog"},R:[{G:"div",L:"ytp-overflow-panel-content",R:[{G:"div",L:"ytp-overflow-panel-action-buttons",Z:"{{buttons}}"}]},{G:"button",ka:["ytp-overflow-panel-close","ytp-button"],U:{title:"\u9589\u3058\u308b"},R:[g.JN()]}]},250);this.actionButtons=[];this.tooltip=b.Qb();this.u=this.ia("ytp-overflow-panel-content");this.closeButton=this.ia("ytp-overflow-panel-close");this.N(this.closeButton,"click",this.jb);g.Yf(this,
g.LU(this.tooltip,this.closeButton));this.xa("click",this.gN);this.N(a,"videoplayerreset",this.hide);this.N(a,"fullscreentoggled",this.fN);this.hide()};
xV=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.za("buttons",a.actionButtons))};
Gta=function(a,b){for(var c=g.q(a.actionButtons),d=c.next();!d.done;d=c.next())d.value.Cb(b)};
yV=function(a,b,c){var d=b.Na(c),e=a.T(),f=d.he("default.jpg");g.U.call(this,{G:"a",ka:["ytp-video-menu-item","ytp-button"],U:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},R:[{G:"div",L:"ytp-video-menu-item-index",Z:String(c+1)},{G:"div",L:"ytp-video-menu-item-now-playing",Z:"\u25b6"},{G:"div",L:"ytp-video-menu-item-thumbnail",U:{style:f?"background-image: url("+f+");":void 0}},{G:"div",L:"ytp-video-menu-item-title",Z:d.title},{G:"div",
L:"ytp-video-menu-item-author",Z:d.author}]});this.api=a;this.index=c;this.xa("click",this.onClick)};
zV=function(a){g.xU.call(this,a,{G:"div",L:"ytp-playlist-menu",U:{role:"dialog",id:rN()},R:[{G:"div",L:"ytp-playlist-menu-header",R:[{G:"div",L:"ytp-playlist-menu-title",R:[{G:"a",L:"ytp-playlist-menu-title-name",U:{href:"{{playlisturl}}"},Z:"{{title}}"},{G:"button",ka:["ytp-playlist-menu-close","ytp-button"],U:{"aria-label":"\u9589\u3058\u308b"},R:[g.JN()]}]},{G:"div",L:"ytp-playlist-menu-subtitle",Z:"{{subtitle}}"}]},{G:"div",L:"ytp-playlist-menu-items",U:{role:"menu"}}]},250);this.api=a;this.selected=
this.D=this.playlist=null;this.items=this.ia("ytp-playlist-menu-items");this.C=new g.dR(this);this.u=[];a=this.ia("ytp-playlist-menu-close");this.N(a,"click",this.jb);a=this.ia("ytp-playlist-menu-title-name");this.N(a,"click",this.bR);g.C(this,this.C);this.hide()};
AV=function(a,b,c){g.U.call(this,{G:"button",ka:["ytp-playlist-menu-button","ytp-button"],U:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"\u518d\u751f\u30ea\u30b9\u30c8"},R:[{G:"div",L:"ytp-playlist-menu-button-icon",R:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,U:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{G:"div",L:"ytp-playlist-menu-button-text",Z:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.Qb();g.IT(a,this.element,this,70344);this.N(a,"videodatachange",this.u);this.N(a,"onPlaylistUpdate",this.u);this.N(a,"presentingplayerstatechange",this.oa);this.N(a,"appresize",this.oa);this.hide();this.u();g.Yf(this,g.LU(this.tooltip,this.element));this.xa("click",function(){g.JT(a,d.element);yU(c,d.element,!1)})};
BV=function(a,b,c){g.U.call(this,{G:"div",L:"ytp-promotooltip-wrapper",R:[{G:"div",L:"ytp-promotooltip-container",R:[{G:"div",L:"ytp-promotooltip-content",R:[{G:"div",L:"ytp-promotooltip-title",Z:"{{title}}"},{G:"div",L:"ytp-promotooltip-details",Z:"{{details}}"}]},{G:"div",L:"ytp-promotooltip-buttons",R:[{G:"div",L:"ytp-promotooltip-dismiss-button",Z:"{{dismissButtonText}}",U:{tabindex:"0"}},{G:"div",L:"ytp-promotooltip-accept-button",Z:"{{acceptButtonText}}",U:{tabindex:"0","aria-haspopup":"true"}}]}]},
{G:"div",L:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=a;this.J=b;this.I=c;this.u=this.B=null;this.title=this.ia("ytp-promotooltip-title");this.details=this.ia("ytp-promotooltip-details");this.acceptButton=this.ia("ytp-promotooltip-accept-button");this.dismissButton=this.ia("ytp-promotooltip-dismiss-button");this.F=this.D=this.C=!1;g.vN(this,!1);this.N(c,"onShowControls",this.yz);this.N(c,"onHideControls",this.VO);this.N(c,"resize",this.Ua);this.N(this.acceptButton,"click",this.eO);this.N(this.dismissButton,
"click",this.aP);this.N(document,"click",this.nN)};
Hta=function(a){a=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');return 0<a.length?a[0]:null};
CV=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){e={feedbackTokens:[f.feedbackEndpoint.feedbackToken]};var h=yM(a.I.app,void 0);(null===h||void 0===h?0:tra(h,f))&&NS(h,f,e)}}};
Ita=function(a){var b,c,d,e,f,h,l,m,n,p,r=(null===(e=null===(d=null===(c=null===(b=a.acceptButton)||void 0===b?void 0:b.buttonRenderer)||void 0===c?void 0:c.text)||void 0===d?void 0:d.runs)||void 0===e?void 0:e.length)&&!(null===(f=a.acceptButton)||void 0===f||!f.buttonRenderer.text.runs[0].text);a=(null===(n=null===(m=null===(l=null===(h=a.dismissButton)||void 0===h?void 0:h.buttonRenderer)||void 0===l?void 0:l.text)||void 0===m?void 0:m.runs)||void 0===n?void 0:n.length)&&!(null===(p=a.dismissButton)||
void 0===p||!p.buttonRenderer.text.runs[0].text);return r||a};
DV=function(a,b){g.U.call(this,{G:"button",ka:["ytp-replay-button","ytp-button"],U:{title:"\u3082\u3046\u4e00\u56de\u898b\u308b"},R:[g.ON()]});this.I=a;this.N(a,"presentingplayerstatechange",this.u);this.xa("click",this.onClick,this);var c=g.NJ(a);g.vN(this,g.T(c,2));g.LU(b.Qb(),this.element)};
g.EV=function(a,b,c,d){d=void 0===d?240:d;g.U.call(this,{G:"button",ka:["ytp-button","ytp-share-button"],U:{title:"\u5171\u6709","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.wD(a.T()))},R:[{G:"div",L:"ytp-share-icon",Z:"{{icon}}"},{G:"div",L:"ytp-share-title",Z:"\u5171\u6709"}]});this.api=a;this.u=b;this.C=c;this.B=d;this.visible=!1;this.tooltip=this.u.Qb();b=a.T();g.IT(a,this.element,this,28664);this.xa("click",this.onClick);this.N(a,"videodatachange",this.oa);this.N(a,
"videoplayerreset",this.oa);this.N(a,"appresize",this.oa);this.N(a,"presentingplayerstatechange",this.oa);this.oa();g.K(this.element,"ytp-show-share-title",g.wD(b)&&!g.FD(b));g.Yf(this,g.LU(this.tooltip,this.element))};
g.FV=function(a,b){var c=rN(),d=a.T();c={G:"div",L:"ytp-share-panel",U:{id:rN(),role:"dialog","aria-labelledby":c},R:[{G:"div",L:"ytp-share-panel-inner-content",R:[{G:"div",L:"ytp-share-panel-title",U:{id:c},Z:"\u5171\u6709"},{G:"a",ka:["ytp-share-panel-link","ytp-no-contextmenu"],U:{href:"{{link}}",target:d.F,title:"\u30ea\u30f3\u30af\u3092\u5171\u6709","aria-label":"{{shareLinkWithUrl}}"},Z:"{{linkText}}"},{G:"label",L:"ytp-share-panel-include-playlist",R:[{G:"input",L:"ytp-share-panel-include-playlist-checkbox",
U:{type:"checkbox",checked:!0}},"\u518d\u751f\u30ea\u30b9\u30c8\u3092\u542b\u3081\u308b"]},{G:"div",L:"ytp-share-panel-loading-spinner",R:[mU()]},{G:"div",L:"ytp-share-panel-service-buttons",Z:"{{buttons}}"},{G:"div",L:"ytp-share-panel-error",Z:"\u5171\u6709\u60c5\u5831\u306e\u53d6\u5f97\u4e2d\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u3057\u3070\u3089\u304f\u3057\u3066\u304b\u3089\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002"}]},{G:"button",
ka:["ytp-share-panel-close","ytp-button"],U:{title:"\u9589\u3058\u308b"},R:[g.JN()]}]};g.xU.call(this,a,c,250);this.api=a;this.tooltip=b.Qb();this.u=[];this.F=this.ia("ytp-share-panel-inner-content");this.closeButton=this.ia("ytp-share-panel-close");this.N(this.closeButton,"click",this.jb);g.Yf(this,g.LU(this.tooltip,this.closeButton));this.D=this.ia("ytp-share-panel-include-playlist-checkbox");this.N(this.D,"click",this.oa);this.C=this.ia("ytp-share-panel-link");g.Yf(this,g.LU(this.tooltip,this.C));
this.xa("click",this.qN);this.N(a,"videoplayerreset",this.hide);this.N(a,"fullscreentoggled",this.pN);this.N(a,"onLoopRangeChange",this.oa);this.hide()};
Kta=function(a,b){Jta(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={zk:e.zk},f++){e.zk=c[f];a:switch(e.zk.img||e.zk.iconId){case "facebook":var h={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},R:[{G:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",U:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},R:[{G:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",U:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:h=null}h&&(h=new g.U({G:"a",ka:["ytp-share-panel-service-button","ytp-button"],U:{href:e.zk.url,target:"_blank",title:e.zk.sname||e.zk.serviceName},R:[h]}),h.xa("click",function(m){return function(n){if(g.NO(n)){var p=m.zk.url;var r=void 0===r?{}:r;r.target=r.target||"YouTube";r.width=r.width||"600";r.height=r.height||"600";r||(r={});var t=window;var w=p instanceof g.Cc?p:g.Hc("undefined"!=typeof p.href?p.href:String(p));p=r.target||p.target;var x=[];for(y in r)switch(y){case "width":case "height":case "top":case "left":x.push(y+
"="+r[y]);break;case "target":case "noopener":case "noreferrer":break;default:x.push(y+"="+(r[y]?1:0))}var y=x.join(",");Sd()&&t.navigator&&t.navigator.standalone&&p&&"_self"!=p?(y=g.Ce("A"),g.gd(y,w),y.setAttribute("target",p),r.noreferrer&&y.setAttribute("rel","noreferrer"),r=document.createEvent("MouseEvent"),r.initMouseEvent("click",!0,!0,t,1),y.dispatchEvent(r),t={}):r.noreferrer?(t=id("",t,p,y),r=g.Dc(w),t&&(g.cE&&-1!=r.indexOf(";")&&(r="'"+r.replace(/'/g,"%27")+"'"),t.opener=null,r=g.dd(g.fc("b/12014412, meta tag with sanitized URL"),
'<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.ld(r)+'">'),(w=t.document)&&w.write&&(w.write(g.$c(r)),w.close()))):(t=id(w,t,p,y))&&r.noopener&&(t.opener=null);if(r=t)r.opener||(r.opener=window),r.focus();g.jp(n)}}}(e)),g.Yf(h,g.LU(a.tooltip,h.element)),a.u.push(h),d++)}var l=b.more||b.moreLink;
c=new g.U({G:"a",ka:["ytp-share-panel-service-button","ytp-button"],R:[{G:"span",L:"ytp-share-panel-service-button-more",R:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},R:[{G:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",U:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],U:{href:l,target:"_blank",title:"\u3082\u3063\u3068\u898b\u308b"}});c.xa("click",function(m){g.lU(l,a.api,m)&&a.api.ya("SHARE_CLICKED")});
g.Yf(c,g.LU(a.tooltip,c.element));a.u.push(c);a.za("buttons",a.u)};
Jta=function(a){for(var b=g.q(a.u),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.Zf(c);a.u=[]};
IV=function(a,b){g.U.call(this,{G:"div",L:"ytp-suggested-action"});var c=this;this.I=a;this.Ta=b;this.na=this.J=this.u=this.C=this.B=this.F=this.expanded=this.enabled=this.dismissed=!1;this.Pa=!0;this.ra=new g.F(function(){c.badge.element.style.width=""},200,this);
this.la=new g.F(function(){GV(c);HV(c)},200,this);
this.dismissButton=new g.U({G:"button",ka:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.C(this,this.dismissButton);this.D=new g.U({G:"div",L:"ytp-suggested-action-badge-expanded-content-container",R:[{G:"label",L:"ytp-suggested-action-badge-title",Z:"{{badgeLabel}}"},this.dismissButton]});g.C(this,this.D);this.badge=new g.U({G:"button",ka:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],R:[{G:"div",L:"ytp-suggested-action-badge-icon"},this.D]});
g.C(this,this.badge);this.badge.ha(this.element);this.S=new g.ZN(this.badge,250,!1,100);g.C(this,this.S);this.Y=new g.ZN(this.D,250,!1,100);g.C(this,this.Y);this.ga=new g.fn(this.hS,null,this);g.C(this,this.ga);this.X=new g.fn(this.hK,null,this);g.C(this,this.X);g.C(this,this.ra);g.C(this,this.la);g.yN(this.I,this.badge.element,this.badge,!0);g.yN(this.I,this.dismissButton.element,this.dismissButton,!0);this.N(this.I,"onHideControls",function(){c.u=!1;HV(c);GV(c);c.vi()});
this.N(this.I,"onShowControls",function(){c.u=!0;HV(c);GV(c);c.vi()});
this.N(this.badge.element,"click",this.HF);this.N(this.dismissButton.element,"click",this.IF);this.N(this.I,"pageTransition",this.iN);this.N(this.I,"appresize",this.vi);this.N(this.I,"fullscreentoggled",this.jP);this.N(this.I,"cardstatechange",this.JO);this.N(this.I,"annotationvisibility",this.FS,this)};
GV=function(a){g.K(a.badge.element,"ytp-suggested-action-badge-with-controls",a.u||!a.F)};
HV=function(a,b){var c=a.J||a.u||!a.F;a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.ga.stop(),a.X.stop(),a.ra.stop(),a.ga.start()):(g.vN(a.D,a.expanded),g.K(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),Lta(a))};
Lta=function(a){a.B&&g.CN(a.I,a.badge.element,a.hw());a.C&&g.CN(a.I,a.dismissButton.element,a.hw()&&(a.J||a.u||!a.F))};
Mta=function(a,b){b?a.C&&g.JT(a.I,a.dismissButton.element):a.B&&g.JT(a.I,a.badge.element)};
JV=function(a,b){IV.call(this,a,b);var c=this;this.K=this.da=this.fa=!1;this.N(this.I,g.TF("shopping_overlay_visible"),function(){c.Ye(!0)});
this.N(this.I,g.UF("shopping_overlay_visible"),function(){c.Ye(!1)});
this.N(this.I,g.TF("shopping_overlay_expanded"),function(){c.J=!0;HV(c)});
this.N(this.I,g.UF("shopping_overlay_expanded"),function(){c.J=!1;HV(c)});
this.N(this.I,"changeProductsInVideoVisibility",this.bQ);this.N(this.I,"videodatachange",this.Qa);this.N(this.I,"paidcontentoverlayvisibilitychange",this.SP)};
Nta=function(a,b){b=void 0===b?0:b;var c=[],d=a.timing.visible,e=a.timing.expanded;d&&c.push(new g.QF(1E3*(d.startSec+b),1E3*(d.endSec+b),{priority:7,namespace:"shopping_overlay_visible"}));e&&c.push(new g.QF(1E3*(e.startSec+b),1E3*(e.endSec+b),{priority:7,namespace:"shopping_overlay_expanded"}));g.lN(a.I,c)};
KV=function(a){g.GT(a.I,"shopping_overlay_visible");g.GT(a.I,"shopping_overlay_expanded")};
LV=function(a){g.xU.call(this,a,{G:"button",ka:["ytp-skip-intro-button","ytp-popup","ytp-button"],R:[{G:"div",L:"ytp-skip-intro-button-text",Z:"\u30a4\u30f3\u30c8\u30ed\u3092\u30b9\u30ad\u30c3\u30d7"}]},100);var b=this;this.C=!1;this.u=new g.F(function(){b.hide()},5E3);
this.al=this.Dm=NaN;g.C(this,this.u);this.J=function(){b.show()};
this.F=function(){b.hide()};
this.D=function(){var c=b.I.getCurrentTime();c>b.Dm/1E3&&c<b.al/1E3&&b.show()};
this.N(this.I,"videodatachange",function(c,d){if("dataloaded"===c)if(b.Dm=d.Dm,b.al=d.al,isNaN(b.Dm)||isNaN(b.al))b.C&&(g.GT(b.I,"intro"),b.I.removeEventListener(g.TF("intro"),b.J),b.I.removeEventListener(g.UF("intro"),b.F),b.I.removeEventListener("onShowControls",b.D),b.hide(),b.C=!1);else{b.I.addEventListener(g.TF("intro"),b.J);b.I.addEventListener(g.UF("intro"),b.F);b.I.addEventListener("onShowControls",b.D);var e=new g.QF(b.Dm,b.al,{priority:7,namespace:"intro"});g.lN(b.I,[e]);b.C=!0}});
this.N(this.element,"click",function(){b.I.seekTo(b.al/1E3)});
this.hide()};
MV=function(a,b){g.U.call(this,{G:"button",ka:["ytp-airplay-button","ytp-button"],U:{title:"AirPlay"},Z:"{{icon}}"});this.I=a;this.xa("click",this.onClick);this.N(a,"airplayactivechange",this.oa);this.N(a,"airplayavailabilitychange",this.oa);this.oa();g.Yf(this,g.LU(b.Qb(),this.element))};
NV=function(a,b){g.U.call(this,{G:"button",ka:["ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}","data-tooltip-target-id":"ytp-autonav-toggle-button"},R:[{G:"div",L:"ytp-autonav-toggle-button-container",R:[{G:"div",L:"ytp-autonav-toggle-button",U:{"aria-checked":"true"}}]}]});this.I=a;this.B=[];this.u=!1;this.isChecked=!0;g.IT(a,this.element,this,113681);this.N(a,"presentingplayerstatechange",this.ir);this.xa("click",this.onClick);this.tooltip=b.Qb();g.Yf(this,g.LU(b.Qb(),this.element));
this.ir()};
Ota=function(a){a.setValue(a.isChecked);var b=a.isChecked?"\u81ea\u52d5\u518d\u751f\u304c\u30aa\u30f3\u306b\u306a\u3063\u3066\u3044\u307e\u3059":"\u81ea\u52d5\u518d\u751f\u304c\u30aa\u30d5\u306b\u306a\u3063\u3066\u3044\u307e\u3059";a.za("title",b);a.za("label",b);mV(a.tooltip)};
g.PV=function(a){g.U.call(this,{G:"div",L:"ytp-gradient-bottom"});this.canvas=g.Ce("CANVAS");this.u=this.canvas.getContext("2d");this.B=NaN;this.canvas.width=1;this.C=g.FD(a.T());g.OV(this,g.mJ(a).getPlayerSize().height)};
g.OV=function(a,b){if(a.u){var c=Math.floor(b*(a.C?1:.4));c=Math.max(c,47);var d=c+2;if(a.B!==d){a.B=d;a.canvas.height=d;a.u.clearRect(0,0,1,d);var e=a.u.createLinearGradient(0,2,0,2+c);if(a.C)e.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),e.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),e.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var f=c-42;e.addColorStop(0,"rgba(0, 0, 0, 0)");e.addColorStop(f/c,"rgba(0, 0, 0, 0.3)");e.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.u.fillStyle=e;a.u.fillRect(0,2,1,c);a.element.style.height=
d+"px";try{a.element.style.backgroundImage="url("+a.canvas.toDataURL()+")"}catch(h){}}}};
QV=function(a,b,c,d,e){g.U.call(this,{G:"div",L:"ytp-chapter-container",R:[{G:"button",ka:["ytp-chapter-title","ytp-button"],U:{title:"\u30c1\u30e3\u30d7\u30bf\u30fc\u3092\u8868\u793a","aria-label":"\u30c1\u30e3\u30d7\u30bf\u30fc\u3092\u8868\u793a"},R:[{G:"span",U:{"aria-hidden":"true"},L:"ytp-chapter-title-prefix",Z:"\u2022"},{G:"div",L:"ytp-chapter-title-content",Z:"{{title}}"},{G:"div",L:"ytp-chapter-title-chevron",R:[{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},R:[{G:"path",U:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",
fill:"#fff"}}]}]}]}]});this.I=a;this.K=b;this.S=c;this.J=d;this.X=e;this.F="";this.currentIndex=0;this.C=void 0;this.B=!0;this.D=this.ia("ytp-chapter-container");this.u=this.ia("ytp-chapter-title");this.updateVideoData("newdata",this.I.getVideoData());this.N(a,"videodatachange",this.updateVideoData);this.N(this.D,"click",this.onClick);a.T().aa("html5_ux_control_flexbox_killswitch")&&this.N(a,"resize",this.Y);this.N(a,"onVideoProgress",this.Ob);this.N(a,"SEEK_TO",this.Ob)};
Pta=function(a,b,c,d,e){var f=b.tv/b.rows,h=Math.min(c/(b.vv/b.columns),d/f),l=b.vv*h,m=b.tv*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,r=-b.column*n,t=-b.row*p;e&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+r+"px "+t+"px/"+l+"px "+m+"px"};
g.RV=function(a){g.U.call(this,{G:"div",L:"ytp-storyboard-framepreview",R:[{G:"div",L:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.ia("ytp-storyboard-framepreview-img");this.uh=null;this.B=NaN;this.events=new g.dR(this);this.u=new g.ZN(this,100);g.C(this,this.events);g.C(this,this.u);this.N(this.api,"presentingplayerstatechange",this.Zb)};
SV=function(a,b){var c=!!a.uh;a.uh=b;a.uh?(c||(a.events.N(a.api,"videodatachange",function(){SV(a,a.api.vg())}),a.events.N(a.api,"progresssync",a.de),a.events.N(a.api,"appresize",a.C)),a.B=NaN,TV(a),a.u.show(200)):(c&&g.Dt(a.events),a.u.hide(),a.u.stop())};
TV=function(a){var b=a.uh,c=a.api.getCurrentTime(),d=g.mJ(a.api).getPlayerSize(),e=oH(b,d.width);c=wH(b,e,c);c!==a.B&&(a.B=c,sH(b,c,d.width),b=qH(b,c,d.width),Pta(a.D,b,d.width,d.height))};
UV=function(a,b){g.U.call(this,{G:"button",ka:["ytp-fullerscreen-edu-button","ytp-button"],R:[{G:"div",ka:["ytp-fullerscreen-edu-text"],Z:"\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3066\u8a73\u7d30\u3092\u8868\u793a"},{G:"div",ka:["ytp-fullerscreen-edu-chevron"],R:[{G:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},R:[{G:"path",U:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.u=a;this.F=b;this.C=new g.ZN(this,250,void 0,100);this.D=this.B=!1;g.IT(a,this.element,
this,61214);this.F=b;g.C(this,this.C);this.N(a,"fullscreentoggled",this.oa);this.N(a,"presentingplayerstatechange",this.oa);this.xa("click",this.onClick);this.oa()};
g.VV=function(a,b){g.U.call(this,{G:"button",ka:["ytp-fullscreen-button","ytp-button"],U:{title:"{{title}}"},Z:"{{icon}}"});this.I=a;this.C=b;this.message=null;this.u=g.LU(this.C.Qb(),this.element);this.B=new g.F(this.OJ,2E3,this);g.C(this,this.B);this.N(a,"fullscreentoggled",this.aF);this.N(a,"presentingplayerstatechange",this.oa);this.xa("click",this.onClick);if(wt()){var c=g.mJ(this.I);this.N(c,Zea(),this.Nz);this.N(c,At(document),this.jk)}a.T().na||a.T().aa("embeds_enable_mobile_custom_controls")||
this.disable();this.oa();this.aF(a.isFullscreen())};
Qta=function(a,b){String(b).includes("fullscreen error")?g.gr(b):g.Qs(b);a.Nz()};
WV=function(a,b){g.U.call(this,{G:"button",ka:["ytp-miniplayer-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button"},R:[gna()]});this.I=a;this.visible=!1;this.xa("click",this.onClick);this.N(a,"fullscreentoggled",this.oa);this.za("title",g.oU(a,"\u30df\u30cb\u30d7\u30ec\u30fc\u30e4\u30fc","i"));g.Yf(this,g.LU(b.Qb(),this.element));g.IT(a,this.element,this,62946);this.oa()};
XV=function(a,b,c){g.U.call(this,{G:"button",ka:["ytp-multicam-button","ytp-button"],U:{title:"\u30ab\u30e1\u30e9\u3092\u5207\u308a\u66ff\u3048\u308b","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},R:[{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,U:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});var d=this;this.I=a;this.u=!1;this.B=new g.F(this.C,400,this);this.tooltip=b.Qb();RU(this.tooltip);g.C(this,this.B);this.xa("click",function(){yU(c,d.element,!1)});
this.N(a,"presentingplayerstatechange",function(){d.oa(!1)});
this.N(a,"videodatachange",this.Qa);this.oa(!0);g.Yf(this,g.LU(this.tooltip,this.element))};
YV=function(a){g.xU.call(this,a,{G:"div",L:"ytp-multicam-menu",U:{role:"dialog"},R:[{G:"div",L:"ytp-multicam-menu-header",R:[{G:"div",L:"ytp-multicam-menu-title",R:["\u30ab\u30e1\u30e9\u3092\u5207\u308a\u66ff\u3048\u308b",{G:"button",ka:["ytp-multicam-menu-close","ytp-button"],U:{"aria-label":"\u9589\u3058\u308b"},R:[g.JN()]}]}]},{G:"div",L:"ytp-multicam-menu-items"}]},250);this.api=a;this.C=new g.dR(this);this.items=this.ia("ytp-multicam-menu-items");this.u=[];g.C(this,this.C);a=this.ia("ytp-multicam-menu-close");
this.N(a,"click",this.jb);this.hide()};
ZV=function(){g.B.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.fn(this.u,null,this);g.C(this,this.delay)};
Rta=function(a,b){if("path"===b.G)return b.U.d;if(b.R)for(var c=0;c<b.R.length;c++){var d=b.R[c];if(d&&"string"!==typeof d&&(d=Rta(a,d)))return d}};
Uta=function(a,b,c){c=Rta(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=rN();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=Sta(e),m=Sta(c);$V(a,function(n){d.setAttribute("d",Tta(l,m,n))},200)};
$V=function(a,b,c){a.B=b;a.startTime=(0,g.N)();a.duration=c;a.u()};
Sta=function(a){var b=[];a=a.match(Vta);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};
Tta=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.aW=function(a,b){g.U.call(this,{G:"button",ka:["ytp-mute-button","ytp-button"],U:a.T().X?{title:"{{title}}","aria-label":"{{label}}"}:{"aria-disabled":"true","aria-haspopup":"true"},Z:"{{icon}}"});this.I=a;this.u=null;this.D=this.S=this.F=this.Y=NaN;this.da=this.J=null;this.C=[];this.B=[];this.visible=!1;this.K=null;var c=this.I.T();this.za("icon",QN());this.tooltip=b.Qb();this.u=new g.sN({G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"defs",R:[{G:"clipPath",U:{id:"ytp-svg-volume-animation-mask"},
R:[{G:"path",U:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",U:{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",U:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{G:"clipPath",U:{id:"ytp-svg-volume-animation-slash-mask"},R:[{G:"path",L:"ytp-svg-volume-animation-mover",U:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{G:"path",ub:!0,ka:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],U:{"clip-path":"url(#ytp-svg-volume-animation-mask)",
d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{G:"path",ub:!0,ka:["ytp-svg-fill","ytp-svg-volume-animation-hider"],U:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.C(this,this.u);this.J=this.u.ia("ytp-svg-volume-animation-speaker");this.da=this.J.getAttribute("d");this.C=g.oe("ytp-svg-volume-animation-mover",this.u.element);
this.B=g.oe("ytp-svg-volume-animation-hider",this.u.element);this.fa=new ZV;g.C(this,this.fa);this.X=new ZV;g.C(this,this.X);this.xa("click",this.JP);this.N(a,"appresize",this.bF);this.N(a,"onVolumeChange",this.eN);var d=null;if(c.X)g.Yf(this,g.LU(b.Qb(),this.element));else{var e="\u304a\u4f7f\u3044\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u306f\u97f3\u91cf\u3092\u5909\u66f4\u3067\u304d\u307e\u305b\u3093\u3002$BEGIN_LINK\u8a73\u7d30$END_LINK".split(/\$(BEGIN|END)_LINK/);d=new g.xU(a,{G:"span",ka:["ytp-popup",
"ytp-generic-popup"],U:{tabindex:"0"},R:[e[0],{G:"a",U:{href:"https://support.google.com/youtube/?p=noaudio",target:c.F},Z:e[2]},e[4]]},100,!0);g.C(this,d);d.hide();d.subscribe("show",function(f){b.jq(d,f)});
g.lP(a,d.element,4)}this.message=d;g.IT(a,this.element,this,28662);this.bF(g.mJ(a).getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
Yta=function(a,b){a.Y=b;var c=a.da;b&&(c+=Tta(Wta,Xta,b));a.J.setAttribute("d",c)};
Zta=function(a,b){a.S=b;for(var c=20*b,d=0;d<a.C.length;d++)a.C[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=QN():e=a.u;for(c=0;c<a.B.length;c++)a.B[c].style.display=0===b?"none":"";e!==a.K&&(a.za("icon",e),a.K=e)};
bW=function(a,b){g.U.call(this,{G:"button",ka:["ytp-pip-button","ytp-button"],U:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},R:[gna()]});this.I=a;this.za("title","PIP");this.xa("click",this.onClick);g.Yf(this,g.LU(b.Qb(),this.element))};
g.cW=function(a,b){g.U.call(this,{G:"button",ka:["ytp-play-button","ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}"},Z:"{{icon}}"});this.I=a;this.u=null;this.transition=new ZV;this.tooltip=b.Qb();g.C(this,this.transition);this.N(a,"fullscreentoggled",this.Qa);this.N(a,"presentingplayerstatechange",this.B);this.N(a,"videodatachange",this.Qa);$ta(this,g.NJ(a));this.xa("click",this.C,this);g.Yf(this,g.LU(b.Qb(),this.element))};
aua=function(a){switch(a){case 1:return hna();case 2:return fna();case 3:return g.ON();case 4:return jna();default:return null}};
$ta=function(a,b){var c=g.xI(a.I.getVideoData()),d=!1;if(g.TL(b))var e=c?4:2;else g.T(b,2)?(e=3,d=c):e=1;a.element.disabled=d;if(a.u!==e){c=null;switch(e){case 2:c=g.oU(a.I,"\u4e00\u6642\u505c\u6b62","k");break;case 3:c="\u3082\u3046\u4e00\u56de\u898b\u308b";break;case 1:c=g.oU(a.I,"\u518d\u751f","k");break;case 4:c="\u30e9\u30a4\u30d6\u518d\u751f\u3092\u505c\u6b62"}3===e?a.update({title:c,label:null,icon:aua(e)}):(a.update({title:c,label:c}),(c=aua(e))&&a.u&&3!==a.u?Uta(a.transition,a.element,c):
a.za("icon",c));mV(a.tooltip);a.u=e}};
g.dW=function(a,b){return QT(b)?(b.fetch=0,new g.PT(a,b)):new g.zH(a,b)};
g.fW=function(a,b,c){g.U.call(this,{G:"a",ka:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],U:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},R:[c?MN():ina()]});var d=this;this.I=a;this.u=c;this.playlist=this.videoData=null;this.J=!1;this.D=this.F=this.B=null;this.C=!1;this.tooltip=b.Qb();this.N(a,"fullscreentoggled",this.Qa);
this.N(a,"videodatachange",this.Qa);this.N(a,"onPlaylistUpdate",this.Qa);this.u||this.N(a,"appresize",this.wz);this.N(a,"mdxpreviousnextchange",function(){eW(d);d.wz()});
this.Qa()};
bua=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.Qa,a)};
cua=function(a){return!!a.playlist&&!a.u&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.I.getCurrentTime()&&2!==a.I.getPresentingPlayerType()};
dua=function(a){var b=g.wT(g.rT(a.I));return b?a.u?b.hasNext():b.Si():!1};
eW=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=null!=a.playlist&&a.playlist.hasNext();c=g.xT(a.I)&&(!a.u||c);var d=a.u&&g.HT(a.I),e=dua(a),f=a.u&&5===a.I.getPresentingPlayerType(),h=g.oU(a.I,"\u6b21\u3078","SHIFT+n"),l=g.oU(a.I,"\u524d\u3078","SHIFT+p");if(f)b.title="\u52d5\u753b\u3092\u958b\u59cb";else if(a.C)b.title="\u3082\u3046\u4e00\u56de\u898b\u308b";else if(c){var m=null;a.playlist&&(m=a.playlist.Na(a.u?zsa(a.playlist):Asa(a.playlist)));if(m){if(m.videoId){var n=
a.playlist.listId;b.url=a.I.T().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthSeconds?g.MO(m.lengthSeconds):null;b.preview=m.he("mqdefault.jpg")}b.title=a.u?h:l}else d&&(a.videoData&&a.videoData.suggestions&&a.videoData.suggestions.length&&(l=g.dW(a.I.T(),a.videoData.suggestions[0]),b.url=l.Tk(),b.text=l.title,b.duration=l instanceof g.zH?g.MO(l.lengthSeconds):null,b.preview=l.he("mqdefault.jpg")),b.title=h);b.disabled=!d&&!c&&!e&&!f;a.update(b);a.J=!!b.url;d||c||
a.C||e||f?a.B||(a.B=g.LU(a.tooltip,a.element),a.F=a.xa("click",a.onClick,a)):a.B&&(a.B(),a.B=null,a.Kb(a.F),a.F=null);mV(a.tooltip)};
gW=function(){g.U.call(this,{G:"div",L:"ytp-chapter-hover-container",R:[{G:"div",L:"ytp-progress-bar-padding"},{G:"div",L:"ytp-progress-list",R:[{G:"div",ka:["ytp-play-progress","ytp-swatch-background-color"]},{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.width=0;this.C=this.ia("ytp-ad-progress-list");this.D=this.ia("ytp-load-progress");this.F=this.ia("ytp-play-progress");this.B=this.ia("ytp-hover-progress");
this.u=this.ia("ytp-chapter-hover-container")};
hW=function(a,b){g.og(a.u,"width",b)};
iW=function(a,b){g.og(a.u,"margin-right",b+"px")};
jW=function(a,b){return"PLAY_PROGRESS"===b?a.F:"LOAD_PROGRESS"===b?a.D:a.B};
eua=function(){this.C=this.position=this.D=this.u=this.F=this.B=this.width=NaN};
fua=function(){g.U.call(this,{G:"div",L:"ytp-timed-marker"});this.timeRangeStartMillis=NaN;this.thumbnailUrl=this.title="";this.onActiveCommand=void 0};
g.kW=function(a,b){g.wN.call(this,{G:"div",L:"ytp-progress-bar-container",U:{"aria-disabled":"true"},R:[{G:"div",ka:["ytp-progress-bar",a.T().u?"ytp-mobile":""],U:{tabindex:"0",role:"slider","aria-label":"\u79fb\u52d5\u30b9\u30e9\u30a4\u30c0\u30fc","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},R:[{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",R:[{G:"div",ka:["ytp-scrubber-button","ytp-swatch-background-color"],R:[{G:"div",L:"ytp-scrubber-pull-indicator"}]}]}]},{G:"div",L:"ytp-bound-time-left",Z:"{{boundTimeLeft}}"},{G:"div",L:"ytp-bound-time-right",Z:"{{boundTimeRight}}"},{G:"div",L:"ytp-clip-start",U:{title:"{{clipstarttitle}}"},Z:"{{clipstarticon}}"},{G:"div",L:"ytp-clip-end",U:{title:"{{clipendtitle}}"},Z:"{{clipendicon}}"}]});this.api=
a;this.vf=!1;this.C=this.Hg=0;this.ra=1;this.Ig=this.S=0;this.D=null;this.X=this.vb=0;this.Qf=this.ia("ytp-marker-crenellation-list");this.da={};this.qb={};this.clipEnd=Infinity;this.Ha=this.ia("ytp-clip-end");this.lc=new g.Jt(this.Ha,!0);this.Lf=this.ia("ytp-clip-end-exclude");this.Kg=this.ia("ytp-clip-start-exclude");this.clipStart=0;this.Pa=this.ia("ytp-clip-start");this.Ac=new g.Jt(this.Pa,!0);this.K=this.la=0;this.Sc=this.ia("ytp-progress-bar");this.Ta=void 0;this.gd={};this.Ub=this.ia("ytp-chapters-container");
this.pg=this.ia("ytp-timed-markers-container");this.Ea=[];this.Ba=[];this.ga=-1;this.jd=g.P(this.api.T().experiments,"web_macro_markers_snapping_threshold");this.na=this.Y=0;this.J=null;this.Jg=this.ia("ytp-scrubber-button");this.Lg=this.ia("ytp-scrubber-container");this.Za=new g.de;this.Rf=new eua;this.u=new WO(0,0);this.F=null;this.B=this.Ge=!1;this.ng=null;this.tooltip=b.Qb();g.Yf(this,g.LU(this.tooltip,this.Ha));g.C(this,this.lc);this.lc.subscribe("hoverstart",this.LF,this);this.lc.subscribe("hoverend",
this.KF,this);this.N(this.Ha,"click",this.Wv);g.Yf(this,g.LU(this.tooltip,this.Pa));g.C(this,this.Ac);this.Ac.subscribe("hoverstart",this.LF,this);this.Ac.subscribe("hoverend",this.KF,this);this.N(this.Pa,"click",this.Wv);gua(this);this.N(a,"resize",this.Ua);this.N(a,"presentingplayerstatechange",this.lN);this.N(a,"videodatachange",this.cF);this.N(a,"videoplayerreset",this.VK);this.N(a,"cuerangesadded",this.uI);this.N(a,"cuerangesremoved",this.QR);this.N(a,"cuerangemarkersupdated",this.uI);this.N(a,
"onLoopRangeChange",this.sI);this.updateVideoData(a.getVideoData(),!0);this.sI(a.getLoopRange())};
gua=function(a){if(0===a.Ea.length){var b=new gW;a.Ea.push(b);g.C(a,b);b.ha(a.Ub,0)}for(;1<a.Ea.length;)a.Ea.pop().dispose();hW(a.Ea[0],"100%");a.Ea[0].startTime=0;a.Ea[0].title=""};
hua=function(a){for(;a.Ba.length;)a.Ba.pop().dispose()};
jua=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=iua(a,d.timeRangeStartMillis/(1E3*a.u.u),lW(a));g.og(d.element,"transform","translateX("+e+"px)")}};
kua=function(a,b){for(var c=0,d=g.q(b),e=d.next();!e.done;e=d.next()){e=e.value;if(e.chapterRenderer){e=e.chapterRenderer;var f={startTime:NaN,title:null,onActiveCommand:void 0},h;if((h=e.title)&&h.simpleText)h=h.simpleText;else{var l="";if(h&&h.runs)for(var m=0;m<h.runs.length;m++)h.runs[m].text&&(l+=h.runs[m].text);h=l}f.title=h;h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.Ea[c].startTime=0,a.Ea[c].title="",a.Ea[c].onActiveCommand=
e.onActiveCommand,c++);a.Ea.length<=c&&(f=new gW,a.Ea.push(f),g.C(a,f),f.ha(a.Ub,a.Ub.children.length));a.Ea[c].startTime=e.startTime;a.Ea[c].title=e.title?e.title:"";a.Ea[c].onActiveCommand=e.onActiveCommand}c++}for(;c<a.Ea.length;)a.Ea.pop().dispose();g.mW(a);nW(a)};
g.mW=function(a){a.Y=a.Ea.length-1;a.na=0;lua(a,!0)&&lua(a,!1);for(var b=0,c=0;c<a.Ea.length;c++)if(0===a.Ea[c].width){if(c===a.Ea.length-1)for(var d=a.Ea.length-1;0<=d;d--)if(0<a.Ea[d].width){iW(a.Ea[d],0);hW(a.Ea[d],Math.floor(a.Ea[d].width)+"px");break}hW(a.Ea[c],"0")}else c===a.Ea.length-1?hW(a.Ea[c],Math.floor(a.Ea[c].width+b)+"px"):(b=a.Ea[c].width+b,d=Math.round(b),b-=d,hW(a.Ea[c],d+"px"))};
lua=function(a,b){var c=0,d=!1,e=a.Ea.length,f=1E3*a.u.u;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.C){for(var h=a.C-(a.B?3:2)*a.Y,l=0===a.na?3:h*a.na,m=g.q(a.Ea),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.Ea[c].startTime;c<e-1&&(m=a.Ea[c+1].startTime-a.Ea[c].startTime,iW(a.Ea[c],a.B?3:2));g.K(a.Ea[c].u,"ytp-exp-chapter-hover-container",1<a.Ea.length);n=(0===f?0:m/f*h)+a.Ea[c].width;if(n>l)a.Ea[c].width=n;else{a.Ea[c].width=0;var p=a,r=c,t=p.Ea[r-1];void 0!==
t&&0<t.width?t.width+=n:r<p.Ea.length-1&&(p.Ea[r+1].width+=n);iW(p.Ea[r],0);b&&(a.Y--,m/f>a.na&&(a.na=m/f),d=!0)}c++}}return d};
nW=function(a){if(a.C){var b=a.api.getProgressState(),c=new WO(b.seekableStart,b.seekableEnd),d=YO(c,b.loaded,0);b=YO(c,b.current,0);var e=a.u.B!==c.B||a.u.u!==c.u;a.u=c;oW(a,b,d);e&&pW(a);mua(a)}};
rW=function(a,b){var c=XO(a.u,b.C);if(1<a.Ea.length){c=qW(a,b.D,!0);for(var d=0,e=0;e<c;e++)0<a.Ea[e].width&&(d+=a.Ea[e].width,d+=a.B?3:2);c=(a.Ea[c].startTime+(b.D-d)/a.Ea[c].width*((c===a.Ea.length-1?1E3*a.u.u:a.Ea[c+1].startTime)-a.Ea[c].startTime))/1E3}return c};
nua=function(a,b,c){return c>=a.Ea.length?!1:Math.abs(b-a.Ea[c].startTime/1E3)/a.u.u*(a.C-(a.B?3:2)*a.Y)<a.jd};
oua=function(a,b,c,d){b=g.$d(b,0,a.B?60:40);a.S=b;var e=a.ra,f=Math.max(a.u.getLength()/a.C,1);a.ra=b/(a.B?60:40)*(f-1)+1;b=a.C*a.ra;a.X=g.$d(d*b-c,0,b-a.C);e!==a.ra&&pW(a)};
pW=function(a){var b=lW(a),c=-b.B/b.u,d=(-b.B+b.width)/b.u,e=Qaa(a.Qf),f=0;if(a.S>.2*(a.B?60:40)&&1===a.Ea.length){var h=c*(a.u.getLength()/60),l=d*(a.u.getLength()/60);for(h=Math.ceil(h);h<l;h++){var m=e[f];m||(m=g.Ce("DIV"),a.Qf.appendChild(m));f++;0===h%60?g.rn(m,"ytp-60m-progress"):0===h%30?g.rn(m,"ytp-30m-progress"):0===h%15?g.rn(m,"ytp-15m-progress"):g.rn(m,"ytp-1m-progress");var n=(60*h/a.u.getLength()-c)*b.u;m.style.left=n+"px"}}b=a.Ge?a.u.u:0;a.update({boundTimeLeft:g.MO(XO(a.u,c)-b),boundTimeRight:g.MO(XO(a.u,
d)-b)});for(c=e.length-1;c>=f;c--)g.Ge(e[c]);a.element.style.height=a.S+(a.B?8:5)+"px";a.V("height-change",a.S);a.Jg.style.height=a.S+(a.B?20:13)+"px";e=g.q(Object.keys(a.da));for(f=e.next();!f.done;f=e.next())pua(a,f.value);sW(a);oW(a,a.K,a.la)};
lW=function(a){var b=a.Za.x,c=a.C*a.ra;b=g.$d(b,0,a.C);a.Rf.update(b,a.C,-a.X,-(c-a.X-a.C));return a.Rf};
oW=function(a,b,c){a.K=b;a.la=c;var d=lW(a),e=a.u.u,f=XO(a.u,a.K),h=g.HK("$PLAY_PROGRESS / $DURATION",{PLAY_PROGRESS:g.MO(f,!0),DURATION:g.MO(e,!0)}),l=rV(a.Ea,1E3*f);l=a.Ea[l].title;a.update({ariamin:Math.floor(a.u.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.F&&2!==a.api.getPresentingPlayerType()&&(e=a.F.startTimeMs/1E3,f=a.F.endTimeMs/1E3);e=YO(a.u,e,0);h=YO(a.u,f,1);f=g.$d(b,e,h);c=g.$d(c,e,h);b=iua(a,b,d);g.og(a.Lg,"transform","translateX("+
b+"px)");tW(a,d,e,f,"PLAY_PROGRESS");tW(a,d,e,c,"LOAD_PROGRESS")};
tW=function(a,b,c,d,e){var f=a.Ea.length,h=b.u-a.Y*(a.B?3:2),l=c*h;c=qW(a,l);var m=d*h;h=qW(a,m);"HOVER_PROGRESS"===e&&(h=qW(a,b.u*d,!0),m=b.u*d-qua(a,b.u*d)*(a.B?3:2));b=Math.max(l-rua(a,c),0);for(d=c;d<f;d++)jW(a.Ea[d],e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.Ea[f].width,uW(a,jW(a.Ea[f],e),f===c?d-b:d,d);f=a.Ea[h].width;m=g.$d(m-rua(a,h),0,f);c===h&&(m-=b);uW(a,jW(a.Ea[h],e),m,f);m=a.Ea.length;for(h+=1;h<m;h++)uW(a,jW(a.Ea[h],e),0,a.Ea[h].width);for(h=0;h<c;h++)uW(a,jW(a.Ea[h],e),0,a.Ea[h].width)};
rua=function(a,b){if(b>=a.Ea.length)return a.C;for(var c=0,d=0;d<b;)c+=a.Ea[d].width,d++;return c};
uW=function(a,b,c,d,e){e||a.api.T().u?b.style.width=c+"px":g.og(b,"transform","scalex("+(d?c/d:0)+")")};
qW=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=qua(a,b)*(a.B?3:2));c=g.q(a.Ea);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.Ea.length?d-1:d};
iua=function(a,b,c){for(var d=b*a.u.u*1E3,e=-1,f=g.q(a.Ea),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.u-(a.B?3:2)*a.Y)+(a.B?3:2)*(0>e?0:e)+c.B};
qua=function(a,b){for(var c=a.Ea.length,d=0,e=g.q(a.Ea),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.vW=function(a,b,c,d){var e=a.C!==c;a.Hg=b;a.C=c;a.B=d;pW(a);1===a.Ea.length&&(a.Ea[0].width=c||0);e&&g.mW(a)};
sW=function(a){var b=!!a.F&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.F?(c=a.F.startTimeMs/1E3,d=a.F.endTimeMs/1E3):(e=c>a.u.B,f=0<a.u.u&&d<a.u.u);g.K(a.element,"ytp-loop-range-enabled",b);g.K(a.element,"ytp-clip-start-enabled",e);g.K(a.element,"ytp-clip-end-enabled",f);b=e?YO(a.u,c,0):0;d=f?YO(a.u,d,1):1;a.Pa.style.left=Math.round(1E3*b)/10+"%";a.Ha.style.left=Math.round(1E3*d)/10+"%";a.Kg.style.width=Math.round(1E3*b)/10+"%";a.Lf.style.left=Math.round(1E3*d)/10+
"%";a.Lf.style.width=Math.round(1E3*(1-d))/10+"%"};
mua=function(a){var b=lW(a);tW(a,b,a.K,Math.max(b.C,a.K),"HOVER_PROGRESS");for(var c=qW(a,b.u*a.K,!0),d=qW(a,b.D,!0),e=c;e<=d;e++)g.K(a.Ea[e].B,"ytp-hover-progress-light",b.C>a.K);g.K(a.Jg,"ytp-scrubber-button-hover",c===d&&1<a.Ea.length)};
pua=function(a,b){var c=a.da[b],d=a.qb[b],e=lW(a),f=YO(a.u,c.start/1E3,0),h=Rha(c,a.B)/e.width;var l=YO(a.u,c.end/1E3,1);h!==Number.POSITIVE_INFINITY&&(f=g.$d(f,0,l-h));l=Math.min(l,f+h);c.color&&(d.style.background=c.color);c=f;f=!0;d.style.left=Math.max(c*e.u+e.B,0)+"px";uW(a,d,g.$d((l-c)*e.u+e.B,0,e.width),e.width,void 0===f?!1:f)};
sua=function(a,b){var c=b.getId();a.da[c]===b&&(g.Ge(a.qb[c]),delete a.da[c],delete a.qb[c])};
tua=function(a,b){b?a.J||(a.element.removeAttribute("aria-disabled"),a.J=new g.Jt(a.Sc,!0),a.J.subscribe("hovermove",a.fQ,a),a.J.subscribe("hoverend",a.eQ,a),a.J.subscribe("dragstart",a.cQ,a),a.J.subscribe("dragmove",a.hQ,a),a.J.subscribe("dragend",a.gQ,a),a.ng=a.xa("keydown",a.mN)):a.J&&(a.element.setAttribute("aria-disabled","true"),a.Kb(a.ng),a.J.cancel(),a.J.dispose(),a.J=null)};
g.uua=function(a){var b=2*a.C*g.VD();return 1E3*a.u.getLength()/a.api.getPlaybackRate()/b};
wW=function(a,b,c){g.U.call(this,{G:"button",L:"ytp-button",U:{title:"\u30c6\u30ec\u30d3\u3067\u518d\u751f","aria-haspopup":"true"},Z:"{{icon}}"});this.I=a;this.Wa=c;this.u=null;this.N(a,"onMdxReceiversChange",this.oa);this.N(a,"presentingplayerstatechange",this.oa);this.N(a,"appresize",this.oa);this.oa();this.xa("click",this.B,this);g.Yf(this,g.LU(b.Qb(),this.element))};
xW=function(a,b,c){g.U.call(this,{G:"button",ka:["ytp-button","ytp-settings-button"],U:{"aria-haspopup":"true","aria-owns":rN(),title:"\u8a2d\u5b9a","data-tooltip-target-id":"ytp-settings-button"},R:[g.PN()]});this.I=a;this.Wa=c;this.B=!0;this.xa("click",this.C);this.N(a,"onPlaybackQualityChange",this.updateBadge);this.N(a,"videodatachange",this.updateBadge);this.N(a,"webglsettingschanged",this.updateBadge);this.N(a,"appresize",this.u);g.Yf(this,g.LU(b.Qb(),this.element));g.IT(this.I,this.element,
this,28663);this.updateBadge();this.u(g.mJ(a).getPlayerSize())};
yW=function(a,b){a.B=!!b;a.u(g.mJ(a.I).getPlayerSize())};
zW=function(a,b){g.cV.call(this,"\u30a2\u30ce\u30c6\u30fc\u30b7\u30e7\u30f3",6);this.I=a;this.Wa=b;this.u=!1;this.N(a,"videodatachange",this.oa);this.N(a,"onApiChange",this.oa);this.subscribe("select",this.B,this);this.oa()};
g.AW=function(a,b,c,d,e,f,h){g.VU.call(this,g.WU({"aria-haspopup":"true"}),b,a);this.Wa=d;this.F=!1;this.B=null;this.options={};this.C=new g.ZU(c,void 0,a,e,f,h);g.C(this,this.C);this.xa("keydown",this.oN);this.xa("click",this.open)};
vua=function(a){if(a.B){var b=a.options[a.B];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.B=null}};
g.BW=function(a,b){g.$U(a.C);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.B;l&&(d=!0);h&&h.priority===-e?(l=a,g.UU(l.options[f],l.Wh(f,!0)),delete a.options[f]):h=a.nx(f,-e,l);c[f]=h;a.C.Tb(h,!0)}d||(a.B=null);d=g.q(Object.keys(a.options));for(e=d.next();!e.done;e=d.next())a.options[e.value].dispose();a.options=c};
CW=function(a,b){g.AW.call(this,"\u97f3\u58f0\u30c8\u30e9\u30c3\u30af",3,a,b);this.I=a;this.tracks={};this.u=new g.U({G:"div",R:[{G:"span",Z:"\u97f3\u58f0\u30c8\u30e9\u30c3\u30af"},{G:"span",L:"ytp-menuitem-label-count",Z:"{{content}}"}]});g.C(this,this.u);g.UU(this,this.u);this.N(a,"videodatachange",this.oa);this.N(a,"onPlaybackAudioChange",this.oa);this.oa()};
DW=function(a,b){g.cV.call(this,"\u81ea\u52d5\u518d\u751f",7);this.I=a;this.Wa=b;this.u=!1;this.B=[];this.N(a,"presentingplayerstatechange",this.C);this.subscribe("select",this.F,this);g.IT(a,this.element,this,113682);this.C()};
EW=function(a,b,c,d){d=new g.U({G:"div",ka:["ytp-linked-account-popup-button"],Z:d,U:{role:"button",tabindex:"0"}});b=new g.U({G:"div",L:"ytp-linked-account-popup",U:{role:"dialog","aria-modal":"true",tabindex:"-1"},R:[{G:"div",L:"ytp-linked-account-popup-title",Z:b},{G:"div",L:"ytp-linked-account-popup-description",Z:c},{G:"div",L:"ytp-linked-account-popup-buttons",R:[d]}]});g.xU.call(this,a,{G:"div",L:"ytp-linked-account-popup-container",R:[b]},100);var e=this;this.dialog=b;g.C(this,this.dialog);
d.xa("click",function(){e.jb()});
g.C(this,d);g.lP(this.I,this.element,4);this.hide()};
FW=function(a,b){g.VU.call(this,g.WU({"aria-haspopup":"true"}),1);this.I=a;this.Wa=b;this.B=this.u=!1;this.N(this.I,"videodatachange",this.D);this.xa("click",this.onClick);this.D()};
GW=function(a){return a?g.S(a):""};
HW=function(a,b){g.AW.call(this,"\u753b\u8cea",2,a,b);this.I=a;this.D={};this.u="unknown";g.J(this.C.element,"ytp-quality-menu");this.N(a,"videodatachange",this.kr);this.N(a,"videoplayerreset",this.kr);this.N(a,"onPlaybackQualityChange",this.dF);this.kr()};
wua=function(a,b,c){a=a.D[b];var d=g.Jx[b];c={G:"span",ka:c,R:[a?a.qualityLabel:d?d+"p":"\u81ea\u52d5"]};var e;"highres"===b?e="8K":"hd2880"===b?e="5K":"hd2160"===b?e="4K":0===b.indexOf("hd")&&"hd720"!==b&&(e="HD");e&&(c.R.push(" "),c.R.push({G:"sup",L:"ytp-swatch-color",Z:e}));return c};
lX=function(a,b,c,d,e,f,h){g.U.call(this,{G:"div",L:"ytp-slider-section",U:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},R:[{G:"div",L:"ytp-slider",R:[{G:"div",L:"ytp-slider-handle"}]}]});this.J=a;this.F=b;this.minimumValue=c;this.maximumValue=d;this.K=e;this.S=f;this.range=this.maximumValue-this.minimumValue;this.da=this.ia("ytp-slider-section");this.B=this.ia("ytp-slider");this.X=this.ia("ytp-slider-handle");
this.D=new g.Jt(this.B,!0);this.u=h?h:c;g.C(this,this.D);this.D.subscribe("dragmove",this.sN,this);this.N(this.element,"keydown",this.tN);this.N(this.element,"wheel",this.rN);this.init()};
nX=function(a){lX.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.I=a;this.C=g.Ce("P");this.fa=laa(this.Y,this);g.J(this.B,"ytp-speedslider");g.J(this.C,"ytp-speedslider-text");a=this.C;var b=this.B;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);mX(this);this.N(this.I,"onPlaybackRateChange",this.ra)};
mX=function(a){a.C.textContent=oX(a,a.u)+"x"};
oX=function(a,b){var c=Number(g.$d(b,a.minimumValue,a.maximumValue).toFixed(2)),d=Math.floor(100*(c+.001)%5+2E-15),e=c;0!==d&&(e=c-.01*d);return Number(e.toFixed(2))};
pX=function(a){g.wN.call(this,{G:"div",L:"ytp-speedslider-component"});this.u=new nX(a);g.C(this,this.u);this.element.appendChild(this.u.element)};
xua=function(a){var b=new pX(a);YU.call(this,a,b,"\u30ab\u30b9\u30bf\u30e0");g.C(this,b)};
qX=function(a,b){var c=new xua(a);g.AW.call(this,"\u518d\u751f\u901f\u5ea6",5,a,b,"\u30ab\u30b9\u30bf\u30e0",function(){g.eV(b,c)});
g.C(this,c);this.I=a;this.D=this.u=this.K=null;this.J=this.I.getAvailablePlaybackRates();this.N(a,"presentingplayerstatechange",this.oa);this.oa()};
yua=function(a,b){var c=rX(b);a.options[c]?a.dh(c):b===a.D&&a.u&&(a.dh(a.u),a.Dc(b.toString()))};
Aua=function(a){g.BW(a,a.J.map(rX));a.u=null;a.D=null;var b=a.I.getPlaybackRate();a.J.includes(b)||(zua(a,b),g.AW.prototype.Ve.call(a,a.u))};
zua=function(a,b){a.D=b;a.u=g.HK("\u30ab\u30b9\u30bf\u30e0\uff08$CURRENT_CUSTOM_SPEED\uff09",{CURRENT_CUSTOM_SPEED:b.toString()});var c=a.J.map(rX);c.unshift(a.u);g.BW(a,c)};
rX=function(a){return a.toString()};
sX=function(a,b,c,d){var e=new g.ZU(b,void 0,"\u52d5\u753b\u306e\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9");g.AW.call(this,d.text||"",a,b,c,"\u52d5\u753b\u306e\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9",function(){g.eV(c,e)});
var f=this;g.J(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.Db(a,this.getKey,this);this.J=e;g.C(this,this.J);b=new g.VU({G:"div",L:"ytp-menuitemtitle",Z:"\u52d5\u753b\u3067\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u5225\u306e\u5b57\u5e55\u30b9\u30bf\u30a4\u30eb\u3092\u8a31\u53ef\u3057\u307e\u3059\u3002"},0);g.C(this,b);this.J.Tb(b,!0);this.D=new g.VU({G:"div",L:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},
R:[{G:"div",L:"ytp-menuitem-label",Z:"\u30aa\u30f3"}]},-1);g.C(this,this.D);this.J.Tb(this.D,!0);this.N(this.D.element,"click",function(){Bua(f,!0)});
this.u=new g.VU({G:"div",L:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},R:[{G:"div",L:"ytp-menuitem-label",Z:"\u30aa\u30d5"}]},-2);g.C(this,this.u);this.J.Tb(this.u,!0);this.N(this.u.element,"click",function(){Bua(f,!1)});
g.BW(this,g.Mc(a,this.getKey))};
Bua=function(a,b){a.V("settingChange",a.setting+"Override",!b);a.Wa.gg()};
tX=function(a,b){g.ZU.call(this,a,void 0,"\u30aa\u30d7\u30b7\u30e7\u30f3");var c=this;this.kl={};for(var d=0;d<g.tV.length;d++){var e=g.tV[d],f=new sX(-d,a,b,e);g.C(this,f);f.subscribe("settingChange",this.cg,this);this.kl[e.option.toString()]=f;this.Tb(f,!0)}d=new g.VU(g.WU(),-g.tV.length,"\u30ea\u30bb\u30c3\u30c8");g.C(this,d);d.xa("click",function(){c.cg("reset",!0)});
this.Tb(d,!0)};
uX=function(a,b){g.AW.call(this,"\u81ea\u52d5\u7ffb\u8a33",0,a,b);this.languages={}};
Cua=function(a,b){a.languages=g.Db(b,a.getKey,a);g.BW(a,g.Mc(b,a.getKey))};
vX=function(a,b){var c=new tX(a,b),d=["\u3053\u306e\u8a2d\u5b9a\u306f\u73fe\u5728\u306e\u52d5\u753b\u306b\u306e\u307f\u9069\u7528\u3055\u308c\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u52d5\u753b\u306e\u5b57\u5e55\u306e\u8868\u793a\u8a2d\u5b9a\u306f "," \u3067\u8abf\u6574\u3067\u304d\u307e\u3059\u3002"],e;g.bE(a.T())&&(e={G:"div",L:"ytp-panel-footer-content",R:[{G:"span",Z:d[0]},{G:"a",L:"ytp-panel-footer-content-link",Z:"\u8a2d\u5b9a",U:{href:"/account_playback"}},{G:"span",Z:d[1]}]});g.AW.call(this,
"\u5b57\u5e55",4,a,b,"\u30aa\u30d7\u30b7\u30e7\u30f3",function(){g.eV(b,c)},e);
var f=this;this.I=a;this.Wa=b;this.tracks={};this.J=new g.F(function(){Dua(f,!1)},3E3);
g.C(this,this.J);this.K=new g.U({G:"div",R:[{G:"span",Z:"\u5b57\u5e55"},{G:"span",L:"ytp-menuitem-label-count",Z:"{{content}}"}]});g.C(this,this.K);g.UU(this,this.K);this.u=new uX(a,b);g.C(this,this.u);this.u.subscribe("select",this.yN,this);this.D=c;g.C(this,this.D);this.D.subscribe("settingChange",this.cg,this);b.subscribe("show",this.KQ,this);this.N(a,"videodatachange",this.oa);this.N(a,"onApiChange",this.oa);this.N(a,"onCaptionsTrackListChanged",this.oa);this.N(a,"captionschanged",this.oa);this.oa()};
Dua=function(a,b){a.I.setOption("captions","sampleSubtitles",b)};
wX=function(a){g.gV.call(this,a,"ytp-settings-menu");var b=this;this.sd=new g.ZU(this.I);this.gz=this.settingsButton=null;this.Vd=!1;g.C(this,this.sd);this.hide();g.eV(this,this.sd);g.IT(a,this.element,this,108341,!0);this.subscribe("show",function(c){b.Ye(c)})};
Eua=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-owns")};
xX=function(a,b){g.U.call(this,{G:"button",ka:["ytp-size-button","ytp-button"],U:{title:"{{title}}"},Z:"{{icon}}"});this.I=a;this.isWidescreen=null;this.transition=new ZV;this.tooltip=b.Qb();g.C(this,this.transition);this.N(a,"sizestylechange",this.oa);this.N(a,"fullscreentoggled",this.oa);this.N(a,"presentingplayerstatechange",this.oa);this.oa();this.xa("click",this.onClick);g.Yf(this,g.LU(this.tooltip,this.element))};
yX=function(a,b){g.U.call(this,{G:"button",ka:["ytp-subtitles-button","ytp-button"],U:{"aria-pressed":"{{pressed}}",title:g.oU(a,"\u5b57\u5e55","c")},R:[kna()]});this.I=a;this.N(a,"videodatachange",this.oa);this.N(a,"appresize",this.oa);this.N(a,"promotooltipacceptbuttonclicked",this.u);this.N(a,"onApiChange",this.oa);this.N(a,"onCaptionsTrackListChanged",this.oa);this.N(a,"captionschanged",this.oa);this.oa();this.xa("click",this.onClick);g.Yf(this,g.LU(b.Qb(),this.element))};
g.zX=function(a,b,c){c=void 0===c?350:c;g.U.call(this,{G:"div",ka:["ytp-time-display","notranslate"],R:[{G:"span",L:"ytp-time-current",Z:"{{currenttime}}"},{G:"span",L:"ytp-time-separator",Z:" / "},{G:"span",L:"ytp-time-duration",Z:"{{duration}}"}]});this.api=a;this.K=c;this.liveBadge=new g.U({G:"button",ka:["ytp-live-badge","ytp-button"],U:{disabled:"true"},Z:"{{content}}"});this.u=null;this.B=!1;this.J=this.F=null;this.isPremiere=!1;this.D=this.C=null;this.liveBadge.Dc("\u30e9\u30a4\u30d6");g.C(this,
this.liveBadge);this.liveBadge.ha(this.element);this.tooltip=b.Qb();this.xa("click",this.onClick);this.N(a,"presentingplayerstatechange",this.Ob);this.N(a,"appresize",this.Ob);this.N(a,"videodatachange",this.Qa);(a=a.getVideoData())&&this.updateVideoData(a);this.Ob()};
CX=function(a,b,c){g.U.call(this,{G:"div",L:"ytp-volume-panel",U:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},R:[{G:"div",L:"ytp-volume-slider",R:[{G:"div",L:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.B=b;this.J=c;this.Ph=!1;this.X=this.volume=0;this.K=null;this.hasFocus=this.u=this.C=!1;this.B=b;this.J=c;this.D=b.be();this.S=this.ia("ytp-volume-slider");this.Y=this.ia("ytp-volume-slider-handle");
this.F=new g.Jt(this.S,!0);g.C(this,this.F);this.F.subscribe("dragstart",this.OQ,this);this.F.subscribe("dragmove",this.CN,this);this.F.subscribe("dragend",this.NQ,this);this.N(a,"onVolumeChange",this.EN);this.N(a,"appresize",this.gF);this.N(a,"fullscreentoggled",this.jk);this.N(a,"onShowControls",this.uC);this.N(a,"onHideControls",this.uC);this.N(this.element,"keydown",this.DN);this.N(this.element,"focus",function(){AX(d,d.u,d.C,!0,d.B.Ph())});
this.N(this.element,"blur",function(){AX(d,d.u,d.C,!1,d.B.Ph())});
this.gF(g.mJ(a).getPlayerSize());BX(this,a.getVolume(),a.isMuted())};
BX=function(a,b,c){var d=Math.floor(b),e=d+"% \u97f3\u91cf"+(c?" \u30df\u30e5\u30fc\u30c8\u6e08\u307f":"");c=c?0:b/100;a.za("valuenow",d);a.za("valuetext",e);a.Y.style.left=(a.D?60:40)*c+"px";a.volume=b};
Fua=function(a,b){g.K(a.element,"ytp-volume-control-hover",b);AX(a,b,a.C,a.hasFocus,a.B.Ph())};
AX=function(a,b,c,d,e){var f=a.u||a.C||a.hasFocus||a.Ph;a.u=b;a.C=c;a.hasFocus=d;a.Ph=e;b=a.u||a.C||a.hasFocus||a.Ph;f!==b&&(b?a.K=a.N(a.element,"wheel",a.BN):(a.Kb(a.K),a.K=null),g.K(a.J,"ytp-volume-slider-active",b))};
g.DX=function(a,b){var c=a.T(),d=g.SD(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"],f=g.FD(c);f&&e.push("ytp-youtube-music-button");g.U.call(this,{G:"a",ka:e,U:{href:"{{url}}",target:c.F,title:g.HK("$WEBSITE \u3067\u8996\u8074\u3059\u308b",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},R:[f?{G:"svg",U:{viewBox:"0 0 77 20"},R:[{G:"g",U:{fill:"none"},R:[{G:"path",U:{d:"M27.71 3.30a3.53 3.53 0 0 0-2.49-2.49c-2.19-.59-11.00-.59-11.00-.59s-8.81 0-11.00.59A3.53 3.53 0 0 0 .71 3.30c-.59 2.20-.59 6.8-.59 6.8s0 4.59.59 6.8a3.53 3.53 0 0 0 2.49 2.49c2.19.59 11.00.59 11.00.59s8.81 0 11.00-.59a3.53 3.53 0 0 0 2.49-2.49c.59-2.20.59-6.8.59-6.8s-.00-4.59-.59-6.8z",
fill:"red"}},{G:"path",U:{d:"M11.39 14.34l7.32-4.23-7.32-4.24zM40.69 7.88c-.50 2.56-.88 5.69-1.08 6.98h-.14c-.16-1.33-.54-4.44-1.06-6.97l-1.29-6.28h-3.92v16.95h2.43V4.60l.24 1.30 2.47 12.66h2.43L43.21 5.91l.26-1.31v13.97h2.43V1.62h-3.96L40.7 7.88zm11.80 8.14c-.22.46-.70.78-1.19.78-.56 0-.78-.44-.78-1.53V6.19h-2.78v9.25c0 2.28.74 3.33 2.39 3.33 1.12 0 2.03-.50 2.66-1.71h.06l.24 1.51h2.17V6.19h-2.78v9.84h.00zm8.15-4.94c-.90-.66-1.47-1.11-1.47-2.08 0-.68.32-1.07 1.08-1.07.78 0 1.04.54 1.06 2.40l2.33-.1c.18-3.01-.80-4.26-3.36-4.26-2.37 0-3.54 1.07-3.54 3.27 0 2 .96 2.91 2.53 4.1 1.35 1.05 2.13 1.63 2.13 2.48 0 .64-.40 1.09-1.10 1.09-.82 0-1.31-.78-1.18-2.16l-2.35.04c-.36 2.56.66 4.06 3.40 4.06 2.39 0 3.64-1.11 3.64-3.33.00-2.02-1.00-2.82-3.18-4.44zm4.71-4.88h2.66v12.38h-2.66zm1.35-4.88c-1.02 0-1.51.38-1.51 1.71 0 1.37.48 1.71 1.51 1.71 1.04 0 1.51-.34 1.51-1.71 0-1.27-.46-1.71-1.51-1.71zm10.25 12.80l-2.43-.12c0 2.18-.24 2.88-1.06 2.88s-.96-.78-.96-3.35V11.12c0-2.48.16-3.27.98-3.27.76 0 .96.74.96 3.05l2.41-.16c.16-1.92-.08-3.23-.82-3.98-.54-.54-1.37-.80-2.51-.80-2.7 0-3.80 1.45-3.80 5.53v1.73c0 4.20.94 5.55 3.70 5.55 1.17 0 1.97-.24 2.51-.76.78-.73 1.08-1.98 1.02-3.90z",
fill:"#fff"}}]}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},R:[{G:"path",ub:!0,L:"ytp-svg-fill",U:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}]});
this.api=a;this.visible=!1;g.IT(a,this.element,this,28666);this.xa("click",this.onClick);this.N(a,"videodatachange",this.Qa);this.N(a,"onLoopRangeChange",this.Qa);this.Qa();g.Yf(this,g.LU(b.Qb(),this.element))};
FX=function(a,b,c){g.dR.call(this);var d=this;this.I=a;this.C=b;this.Ic=c;this.na=NaN;this.ra=this.la=null;this.u=new wX(this.I);this.Sc=new g.kW(this.I,this.C);this.muteButton=null;this.ri=new g.zX(this.I,this.C);this.D=this.F=this.S=this.P=null;this.Y=new bW(this.I,this.C);this.ga=new g.VV(this.I,this.C);this.Ud=new g.fn(this.yr,null,this);this.K=null;c=a.T();this.Ic.subscribe("autohideupdate",this.ai,this);var e=!g.NJ(a).isCued(),f=this.I.T().aa("html5_player_bottom_linear_gradient");f||!g.FD(c)&&
!g.Q(a.T().experiments,"html5_player_dynamic_bottom_gradient")?f=f?new g.U({G:"div",L:"ytp-gradient-bottom-container",R:[{G:"div",L:"ytp-gradient-bottom-extension"},{G:"div",L:"ytp-gradient-bottom"}]}):new g.U({G:"div",L:"ytp-gradient-bottom"}):this.ra=f=new g.PV(a);g.C(this,f);g.lP(a,f.element,8);this.fa=new g.ZN(f,250,e,100);g.C(this,this.fa);this.B=new g.U({G:"div",L:"ytp-chrome-bottom",R:[{G:"div",L:"ytp-chrome-controls"}]});g.C(this,this.B);g.lP(a,this.B.element,8);this.da=new g.ZN(this.B,250,
e,100);g.C(this,this.da);this.X=this.B.element.children[0];g.Yf(this.u,function(){a.Rk()===d.u&&(a.S=null)});
g.C(this,this.u);a.S=this.u;g.lP(a,this.u.element,6);this.u.subscribe("show",function(m){var n=d.C.Qb(),p=!m;if(null!=n.type)if(p)switch(n.type){case 3:case 2:EX(n);n.F.show();break;default:n.F.show()}else n.F.hide();n.J=p;b.yA(d.u,m)});
g.C(this,this.Sc);this.Sc.ha(this.B.element,0);e=new g.RV(a);g.C(this,e);g.lP(a,e.element,4);f=new g.sN({G:"div",L:"ytp-left-controls"});g.C(this,f);f.ha(this.X);e=new g.fW(a,b,!1);g.C(this,e);e.ha(f.element);c.da||(e=new g.cW(a,b),g.C(this,e),e.ha(f.element));e=new g.fW(a,b,!0);g.C(this,e);e.ha(f.element);e=new g.U({G:"span",L:"ytp-volume-area"});g.C(this,e);e.ha(f.element);if(!c.Za&&(this.muteButton=new g.aW(a,b),g.C(this,this.muteButton),this.muteButton.ha(e.element),c.X)){var h=new CX(a,b,this.B.element);
g.C(this,h);h.ha(e.element);e=new g.Jt(e.element);g.C(this,e);e.subscribe("hoverstart",function(){Fua(h,!0)});
e=new g.Jt(f.element);g.C(this,e);e.subscribe("hoverend",function(){Fua(h,!1)})}g.C(this,this.ri);
this.ri.ha(f.element);e=new g.sN({G:"div",L:"ytp-right-controls"});g.C(this,e);this.P=new QV(a,b,this.Sc,f.element,e.element);g.C(this,this.P);a.T().aa("html5_ux_control_flexbox_killswitch")?this.P.ha(this.X):this.P.ha(f.element);e.ha(this.X);a.T().lc&&g.Q(c.experiments,"web_player_move_autonav_toggle")&&(f=new NV(a,b),g.C(this,f),f.ha(e.element));g.Q(c.experiments,"external_fullscreen_with_edu")&&c.externalFullscreen&&UD(c)&&(this.S=new UV(a,b),g.C(this,this.S),this.S.ha(e.element));f=new yX(a,b);
g.C(this,f);f.ha(e.element);f=new xW(a,b,this.u);g.C(this,f);Eua(this.u,f);f.ha(e.element);var l=new YV(a);g.C(this,l);g.lP(a,l.element,5);l.subscribe("show",function(m){b.om(l,m)});
f=new XV(a,b,l);g.C(this,f);f.ha(e.element);f=a.getVideoData();if(c.Dn||f.oc&&"1"===c.controlsType)this.F=new g.DX(a,b),g.C(this,this.F),this.F.ha(e.element);c.showMiniplayerButton&&!g.Q(a.T().experiments,"web_player_pip")&&(this.D=new WV(a,b),g.C(this,this.D),this.D.ha(e.element));g.C(this,this.Y);this.Y.ha(e.element);f.DA||this.Y.hide();c.pg||(f=new xX(a,b),g.C(this,f),f.ha(e.element));c.Ig&&(f=new wW(a,b,this.u),g.C(this,f),f.ha(e.element));c.An&&(c=new MV(a,b),g.C(this,c),c.ha(e.element));g.C(this,
this.ga);this.ga.ha(e.element);g.C(this,this.Ud);this.N(a,"appresize",this.Ua);this.N(a,"fullscreentoggled",this.Ua);this.N(a,"presentingplayerstatechange",this.zz);this.N(a,"videodatachange",this.Qa);this.Ua()};
Gua=function(a,b){g.NJ(a.I).isCued()||b?b&&(a.da.hide(),a.fa.hide(),a.muteButton&&a.muteButton.Cb(!1),a.F&&a.F.Cb(!1),a.D&&a.D.Cb(!1),a.C.Qb().Ei(a.B.element)):b||(a.da.show(),a.fa.show(),a.muteButton&&a.muteButton.Cb(!0),a.F&&a.F.Cb(!0),a.D&&a.D.Cb(!0),a.ai())};
Hua=function(a){var b=g.mJ(a.I).getPlayerSize().width;return Math.max(b-2*GX(a),100)};
GX=function(a){var b=a.C.be();return 12*(a.I.getVideoData().oc?0:b?2:1)};
HX=function(a){var b=a.C.be()?72:50;a=a.I.T();g.WD(a)&&(b=54,g.Q(a.experiments,"web_player_bigger_buttons_like_mobile")&&(b=62));return b};
JX=function(a){g.U.call(this,{G:"div",L:IX.TITLE,R:[{G:"div",L:IX.TEXT,R:[{G:"a",ka:[IX.LINK,IX.SESSIONLINK],U:{target:a.T().F,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},Z:"{{title}}"},{G:"div",L:IX.SUBTEXT,R:[{G:"a",L:IX.CHANNEL_NAME,U:{href:"{{channelLink}}",target:"_blank"},Z:"{{channelName}}"}]}]}]});this.api=a;this.u=null;this.link=this.ia(IX.LINK);g.IT(a,this.element,this,23851);this.N(a,"videodatachange",this.oa);this.N(a,"videoplayerreset",
this.oa);this.oa()};
Iua=function(a){a.za("channelLink","");a.za("channelName","");a.za("channelTitleFocusable","-1")};
g.KX=function(a,b){g.U.call(this,{G:"div",R:[{G:"div",L:"ytp-tooltip-text-wrapper",R:[{G:"div",L:"ytp-tooltip-image"},{G:"div",L:"ytp-tooltip-title",Z:"{{title}}"},{G:"span",L:"ytp-tooltip-text",Z:"{{text}}"}]},{G:"div",L:"ytp-tooltip-bg",R:[{G:"div",L:"ytp-tooltip-duration",Z:"{{duration}}"}]}]});var c=this;this.api=a;this.ga=b;this.env=this.api.T();this.ra=this.env.u;this.bg=this.ia("ytp-tooltip-bg");this.image=this.ia("ytp-tooltip-image");this.text=this.ia("ytp-tooltip-text");this.title=this.ia("ytp-tooltip-title");
this.S=function(e){(e=hp(e))&&g.Je(c.activeElement,e)||c.fj()};
this.C=function(e){3===c.type&&c.fj();(e=e.currentTarget)&&1===e.nodeType&&!c.type&&(e.removeEventListener("mouseover",c.C),e.addEventListener("mouseout",c.S),e.removeEventListener("focus",c.C),e.addEventListener("blur",c.S),Jua(c,e,2))};
this.X=function(){c.fj()};
this.activeElement=null;this.F=new g.ZN(this,100);this.type=null;this.K=!1;this.u=null;this.B=NaN;this.D="";this.da=g.mJ(this.api).getPlayerSize().width;this.J=!0;this.scale=1;this.Y=new g.F(this.zL,250,this);this.fa=new g.F(this.fj,5E3,this);g.C(this,this.F);g.C(this,this.Y);g.C(this,this.fa);if(tD){var d=this.ia("ytp-tooltip-text");d.setAttribute("role","text");d.setAttribute("aria-live","polite")}};
RU=function(a){a.element.setAttribute("aria-live","polite")};
Mua=function(a,b,c,d,e,f,h,l){if(!a.ra){3===a.type&&a.fj();1!==a.type&&(g.rn(a.element,"ytp-tooltip ytp-bottom"),a.type=1,a.J&&a.F.show(),a.u&&a.u.dispose(),a.u=a.api.vg(),a.u&&a.u.subscribe("l",a.VF,a));a.update({text:d,title:h?h:""});g.K(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);g.K(a.element,"ytp-text-detail",!!e);d=-1;a.u&&(d=oH(a.u,160*a.scale),g.Q(a.env.experiments,"web_l3_storyboard")&&4===a.u.levels.length&&(d=a.u.levels.length-1),d=wH(a.u,d,c));Kua(a,d);if(l)switch(c=g.Eg(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"}Lua(a,!!e,b,f)}};
g.LX=function(a){1===a.type&&a.fj()};
g.LU=function(a,b){if(a.ra)return g.Ka;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.activeElement===b&&a.fj();b.removeEventListener("mouseover",a.C);b.removeEventListener("focus",a.C)}};
lV=function(a,b,c){if(a.type)if(3===a.type)a.fj();else return;Jua(a,b,3,c)};
Jua=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.nr("showElementTooltip called with non-element.",b.toString()),g.Qs(a);else{isNaN(a.B)||(a.B=NaN,a.bg.style.background="");a.activeElement=b;a.K=!!d;d?a.D=d:(a.D=b.getAttribute("title"),b.removeAttribute("title"));g.rn(a.element,"ytp-tooltip");if(d=b.getAttribute("data-tooltip-image"))a.image.style.backgroundImage="url("+d+")";g.K(a.element,"ytp-tooltip-image-enabled",!!d);b=b.getAttribute("data-tooltip-opaque");g.K(a.element,"ytp-tooltip-opaque",
!!b);a.type=c;a.api.addEventListener("appresize",a.X);a.J&&(EX(a),a.F.show(0))}};
EX=function(a){var b;a.activeElement&&(b=a.activeElement.getAttribute("data-tooltip-text"));if(b&&!a.K){var c=a.activeElement;a.za("text",b);var d=c.getAttribute("data-duration");a.update({title:a.D,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.tn(a.element,
["ytp-text-detail","ytp-preview"]);g.K(a.element,"ytp-has-duration",!!d)}else a.za("text",a.D),g.vn(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);Lua(a,!!b)};
Lua=function(a,b,c,d){var e=Math.min(a.da,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.ga.So(a.element,a.activeElement,c,1===a.type,d);a.element.style.top?g.J(a.element,"ytp-bottom"):a.element.style.bottom&&g.J(a.element,"ytp-top");3===a.type&&a.fa.start()};
mV=function(a){a.activeElement&&!a.K&&a.activeElement.hasAttribute("title")&&(a.D=a.activeElement.getAttribute("title")||"",a.activeElement.removeAttribute("title"),a.J&&EX(a))};
Kua=function(a,b){g.K(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.B)){a.B=b;var c=160*a.scale,d=160*a.scale,e=qH(a.u,a.B,c);Pta(a.bg,e,c,d,!0);a.Y.start()}};
Nua=function(a){var b=a.activeElement;3===a.type&&a.fa.stop();a.api.removeEventListener("appresize",a.X);a.K||b.setAttribute("title",a.D);a.D="";a.activeElement=null};
g.MX=function(a,b){g.U.call(this,{G:"button",ka:["ytp-watch-later-button","ytp-button"],U:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.wD(a.T()))},R:[{G:"div",L:"ytp-watch-later-icon",Z:"{{icon}}"},{G:"div",L:"ytp-watch-later-title",Z:"\u5f8c\u3067\u898b\u308b"}]});this.I=a;this.icon=null;this.visible=this.B=this.u=!1;this.tooltip=b.Qb();RU(this.tooltip);g.IT(a,this.element,this,28665);this.xa("click",this.onClick,this);this.N(a,"videoplayerreset",this.FN);this.N(a,
"appresize",this.kv);this.N(a,"videodatachange",this.kv);this.N(a,"presentingplayerstatechange",this.kv);this.kv();var c=this.I.T(),d=Oua();c.B&&d?(Pua(),Qua(this,d.videoId)):this.oa(2);g.K(this.element,"ytp-show-watch-later-title",g.wD(c));g.Yf(this,g.LU(b.Qb(),this.element))};
Rua=function(a,b){g.Era(function(){Pua({videoId:b});window.location.reload()},"wl_button",g.RD(a.I.T()))};
Qua=function(a,b){if(!a.B)if(a.B=!0,a.oa(3),g.Q(a.I.T().experiments,"web_player_innertube_playlist_update")){var c=a.I.getVideoData();c=a.u?c.removeFromWatchLaterCommand:c.addToWatchLaterCommand;var d=yM(a.I.app,void 0),e=a.u?function(){a.BG()}:function(){a.AG()};
NS(d,c).then(e,function(){a.B=!1;NX(a,"\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u3057\u3070\u3089\u304f\u3057\u3066\u304b\u3089\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002")})}else c=a.I.T(),(a.u?Cra:Bra)({videoIds:b,
lf:c.lf,pageId:c.pageId,onError:a.pR,onSuccess:a.u?a.BG:a.AG,context:a},c.S,!0)};
NX=function(a,b){a.oa(4,b);a.I.T().C&&a.I.ya("WATCH_LATER_ERROR",b)};
Sua=function(a,b){var c=a.I.T();if(b!==a.icon){switch(b){case 3:var d=mU();break;case 1:d=GN();break;case 2:d={G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,L:"ytp-svg-fill",U:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:d=g.Q(c.experiments,"watch_later_iconchange_killswitch")?{G:"svg",U:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,L:"ytp-svg-fill",U:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}:{G:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{G:"path",ub:!0,U:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.za("icon",d);
a.icon=b}};
OX=function(a){g.BU.call(this,a);var b=this;this.ko=g.wD(this.api.T());this.Bx=48;this.Cx=69;this.Ji=null;this.ul=[];this.Rb=new g.GU(this.api);this.fq=new nV(this.api);this.Dg=new g.U({G:"div",L:"ytp-chrome-top"});this.us=[];this.tooltip=new g.KX(this.api,this);this.backButton=this.Ro=null;this.channelAvatar=new TU(this.api,this);this.title=new JX(this.api,this);this.Of=new g.sN({G:"div",L:"ytp-chrome-top-buttons"});this.og=null;this.Fi=new KU(this.api,this,this.Dg.element);this.overflowButton=this.eg=
null;this.wf="1"===this.api.T().controlsType?new FX(this.api,this,this.Ic):null;this.contextMenu=new g.jV(this.api,this,this.Rb);this.lx=!1;this.Kt=new g.U({G:"div",U:{tabindex:"0"}});this.Jt=new g.U({G:"div",U:{tabindex:"0"}});this.Er=null;this.AA=this.ut=!1;var c=g.mJ(a),d=a.T(),e=a.getVideoData();this.ko&&(g.J(a.getRootNode(),"ytp-embed"),g.J(a.getRootNode(),"ytp-embed-playlist"),this.Bx=60,this.Cx=89);this.Sg=e&&e.Sg;g.C(this,this.Rb);g.lP(a,this.Rb.element,4);g.C(this,this.fq);g.lP(a,this.fq.element,
4);e=new g.U({G:"div",L:"ytp-gradient-top"});g.C(this,e);g.lP(a,e.element,1);this.WA=new g.ZN(e,250,!0,100);g.C(this,this.WA);g.C(this,this.Dg);g.lP(a,this.Dg.element,1);this.VA=new g.ZN(this.Dg,250,!0,100);g.C(this,this.VA);g.C(this,this.tooltip);g.lP(a,this.tooltip.element,4);var f=new zV(a);g.C(this,f);g.lP(a,f.element,5);f.subscribe("show",function(l){b.om(f,l)});
this.us.push(f);this.Ro=new AV(a,this,f);g.C(this,this.Ro);d.showBackButton&&(this.backButton=new FU(a),g.C(this,this.backButton),this.backButton.ha(this.Dg.element));this.ko||this.Ro.ha(this.Dg.element);this.channelAvatar.ha(this.Dg.element);g.C(this,this.channelAvatar);g.C(this,this.title);this.title.ha(this.Dg.element);g.C(this,this.Of);this.Of.ha(this.Dg.element);this.og=new g.MX(a,this);g.C(this,this.og);this.og.ha(this.Of.element);var h=new g.FV(a,this);g.C(this,h);g.lP(a,h.element,5);h.subscribe("show",
function(l){b.om(h,l)});
this.us.push(h);this.shareButton=new g.EV(a,this,h);g.C(this,this.shareButton);this.shareButton.ha(this.Of.element);this.Dj=new kV(a,this);g.C(this,this.Dj);this.Dj.ha(this.Of.element);d.Ps&&(e=new LV(a),g.C(this,e),g.lP(a,e.element,4));this.ko&&this.Ro.ha(this.Of.element);g.C(this,this.Fi);this.Fi.ha(this.Of.element);e=new MU(a,this,this.Fi);g.C(this,e);e.ha(this.Of.element);this.eg=new wV(a,this);g.C(this,this.eg);g.lP(a,this.eg.element,5);this.eg.subscribe("show",function(){b.om(b.eg,b.eg.tf())});
this.us.push(this.eg);this.overflowButton=new vV(a,this,this.eg);g.C(this,this.overflowButton);this.overflowButton.ha(this.Of.element);this.wf&&g.C(this,this.wf);"3"===d.controlsType&&(e=new DV(a,this),g.C(this,e),g.lP(a,e.element,8));g.C(this,this.contextMenu);this.contextMenu.subscribe("show",this.zI,this);e=new ZO(a,new kP(a));g.C(this,e);g.lP(a,e.element,4);this.Kt.xa("focus",this.pK,this);g.C(this,this.Kt);this.Jt.xa("focus",this.qK,this);g.C(this,this.Jt);(this.Zj=d.Rf?null:new g.sV(a,c,this.contextMenu,
this.Ic,this.Rb,this.fq,function(){return b.Jj()}))&&g.C(this,this.Zj);
this.ko||(this.LH=new JV(this.api,this),g.C(this,this.LH),g.lP(a,this.LH.element,4));this.sl.push(this.Rb.element);this.N(a,"fullscreentoggled",this.jk);this.N(a,"offlineslatestatechange",function(){ET(b.api)&&gU(b.Ic,128,!1)});
this.N(a,"cardstatechange",function(){b.rh()});
this.N(a,"resize",this.UO);this.N(a,"showpromotooltip",this.yP)};
Tua=function(a){var b=a.api.T(),c=g.T(g.NJ(a.api),128);return b.B&&c&&!a.api.isFullscreen()};
PX=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==tg(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=PX(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};
Uua=function(a,b,c){var d;if(g.Q(a.api.T().experiments,"web_player_nitrate_promo_tooltip")){var e=a.api.getVideoData();if(null===e||void 0===e?0:e.tooltipRenderer){e=e.tooltipRenderer;var f;if(f=!a.Er){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.Er=new BV(e,a,a.api),g.C(a,a.Er),g.lP(a.api,a.Er.element,8));null===
(d=a.Er)||void 0===d?void 0:d.yz(e,c)}}};
g.QX=function(a){g.tS.call(this,a);this.chrome=null;this.load()};
Vua=function(){this.B=200;this.u=12};
Wua=function(a){var b=new Vua;b.B=g.P(a.experiments,"html5_gapless_ended_transition_buffer_ms");b.u=g.P(a.experiments,"html5_gapless_max_played_ranges");return b};
Xua=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return"player-error";c=f.La;if(b.Lj()>d/1E3+1)return"in-the-past";if(f.isLivePlayback&&!isFinite(d))return"live-infinite";if(a.u&&((b=b.Wc())&&b.isView()&&(b=b.u),b&&b.xm().length>a.u&&g.oI(e)))return"played-ranges";if(!e.La)return null;if(!e.La.u||!c.u)return"non-dash";if(e.La.videoInfos[0].containerType!==c.videoInfos[0].containerType)return"container";if(g.oI(f)&&g.oI(e))return"content-protection";a=
c.u[0].audio;e=e.La.u[0].audio;return a.sampleRate===e.sampleRate||g.DB?(a.u||2)!==(e.u||2)?"channel-count":null:"sample-rate"};
SX=function(a,b,c,d){g.B.call(this);var e=this;this.policy=a;this.u=b;this.B=c;this.D=this.C=null;this.J=-1;this.K=!1;this.F=new yy;this.xf=d-1E3*b.wc();this.F.then(void 0,function(){});
this.timeout=new g.F(function(){RX(e,"timeout")},1E4);
g.C(this,this.timeout);this.P=isFinite(d);this.status={status:0,error:null};this.ba()};
bva=function(a){return Ue(a,function c(){var d=this,e,f,h,l,m,n,p,r,t,w;return xa(c,function(x){if(1==x.u){e=d;if(d.ma())return x["return"](Promise.reject(Error(d.status.error||"disposed")));d.ba();d.timeout.start();f=Kz?new Jz("gtfta"):null;return sa(x,d.F,2)}Nz(f);h=d.u.Wc();if(h.Xi())return RX(d,"ended_in_finishTransition"),x["return"](Promise.reject(Error(d.status.error||"")));if(!d.D||!PB(d.D))return RX(d,"next_mse_closed"),x["return"](Promise.reject(Error(d.status.error||"")));if(d.B.wm()!==
d.D)return RX(d,"next_mse_mismatch"),x["return"](Promise.reject(Error(d.status.error||"")));l=Yua(d);m=l.AF;n=l.HC;p=l.zF;d.u.Mf(!1,!0);r=Zua(h,m,p,!d.B.getVideoData().isAd());d.B.setMediaElement(r);d.P&&(d.B.seekTo(d.B.getCurrentTime()+.001,{Hq:!0,UA:3}),r.play()||ft());t=h.rb();t.cpn=d.u.getVideoData().clientPlaybackNonce;t.st=""+m;t.et=""+p;d.B.Ka("gapless",g.JB(t));d.u.Ka("gaplessTo",d.B.getVideoData().clientPlaybackNonce);w=d.u.getPlayerType()===d.B.getPlayerType();$ua(d.u,n,!1,w,d.B.getVideoData().clientPlaybackNonce);
$ua(d.B,d.B.getCurrentTime(),!0,w,d.u.getVideoData().clientPlaybackNonce);g.lm(function(){!e.B.getVideoData().Tg&&g.TL(e.B.getPlayerState())&&ava(e.B)});
TX(d,6);d.dispose();return x["return"](Promise.resolve())})})};
eva=function(a){if(a.B.getVideoData().La){UX(a.B,a.D);TX(a,3);cva(a);var b=dva(a),c=b.KH;b=b.fS;c.subscribe("updateend",a.Do,a);b.subscribe("updateend",a.Do,a);a.Do(c);a.Do(b)}};
cva=function(a){a.u.unsubscribe("internalvideodatachange",a.Yl,a);a.B.unsubscribe("internalvideodatachange",a.Yl,a);a.u.unsubscribe("mediasourceattached",a.Yl,a);a.B.unsubscribe("statechange",a.Zb,a)};
Zua=function(a,b,c,d){a=a.isView()?a.u:a;return new g.JS(a,b,c,d)};
TX=function(a,b){a.ba();b<=a.status.status||(a.status={status:b,error:null},5===b&&a.F.resolve(void 0))};
RX=function(a,b){if(!a.ma()&&!a.isFinished()){a.ba();var c=4<=a.status.status&&"player-reload-after-handoff"!==b;a.status={status:Infinity,error:b};if(a.u&&a.B){var d=a.B.getVideoData().clientPlaybackNonce;a.u.Ka("gaplessError","cpn."+d+";msg."+b);d=a.u;d.videoData.Oh=!1;c&&VX(d);d.Aa&&(c=d.Aa,c.policy.da=!1,c.mediaSource&&WX(c))}a.F.reject(void 0);a.dispose()}};
Yua=function(a){var b=a.u.Wc();b=b.isView()?b.B:0;var c=a.u.getVideoData().isLivePlayback?Infinity:XX(a.u,!0);c=Math.min(a.xf/1E3,c)+b;var d=a.P?100:0;a=c-a.B.Lj()+d;return{ZJ:b,AF:a,HC:c,zF:Infinity}};
dva=function(a){return{KH:a.C.u.Lc,fS:a.C.B.Lc}};
YX=function(a){g.B.call(this);var b=this;this.api=a;this.F=this.u=this.B=null;this.K=!1;this.D=null;this.P=Wua(this.api.T());this.C=null;this.J=function(){g.lm(function(){fva(b)})}};
gva=function(a,b,c,d){d=void 0===d?0:d;a.ba();!a.B||ZX(a);a.D=new yy;a.B=b;var e=c,f=a.api.fc(),h=f.getVideoData().isLivePlayback?Infinity:1E3*XX(f,!0);e>h&&(e=h-a.P.B,a.K=!0);f.getCurrentTime()>=e/1E3?a.J():(a.u=f,f=e,e=a.u,a.api.addEventListener(g.TF("vqueued"),a.J),f=isFinite(f)||f/1E3>e.getDuration()?f:0x8000000000000,a.F=new g.QF(f,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(a.F));f=d/=1E3;e=b.getVideoData().va;if(d&&e&&a.u){h=d;var l=0;b.getVideoData().isLivePlayback&&(f=Math.min(c/
1E3,XX(a.u,!0)),l=Math.max(0,f-a.u.getCurrentTime()),h=Math.min(d,XX(b)+l));f=Yga(e,h)||d;f!==d&&a.B.Ka("qvaln","st."+d+";at."+f+";rm."+(l+";ct."+h))}b=f;d=a.B;if(e=a.api.fc())d.Ov=e;d.getVideoData().Cl=!0;d.getVideoData().Oh=!0;fT(d,!0);e="";a.u&&(e=g.$X(a.u.Hb.provider),f=a.u.getVideoData().clientPlaybackNonce,e="crt."+(1E3*e).toFixed()+";cpn."+f);d.Ka("queued",e);0!==b&&d.seekTo(b+.01,{Hq:!0,UA:3});a.C=new SX(a.P,a.api.fc(),a.B,c);c=a.C;c.ba();Infinity!==c.status.status&&(TX(c,1),c.u.subscribe("internalvideodatachange",
c.Yl,c),c.B.subscribe("internalvideodatachange",c.Yl,c),c.u.subscribe("mediasourceattached",c.Yl,c),c.B.subscribe("statechange",c.Zb,c),c.u.subscribe("newelementrequired",c.bG,c),c.Yl());return a.D};
fva=function(a){Ue(a,function c(){var d=this,e,f,h,l;return xa(c,function(m){switch(m.u){case 1:e=d;if(d.ma())return m["return"]();d.ba();if(!d.D||!d.B)return d.ba(),m["return"]();d.K&&aY(d.api.fc(),!0,!1);f=null;if(!d.C){m.u=2;break}m.C=3;return sa(m,bva(d.C),5);case 5:ta(m,2);break;case 3:f=h=ua(m);case 2:return hva(d.api.app,d.B),Oz("vqsp",function(){var n=e.B.getPlayerType();g.jN(e.api.app,n)}),Oz("vqpv",function(){e.api.playVideo()}),f&&iva(d.B,f.message),l=d.D,ZX(d),m["return"](l.resolve(void 0))}})})};
ZX=function(a){if(a.u){var b=a.u;a.api.removeEventListener(g.TF("vqueued"),a.J);b.removeCueRange(a.F);a.u=null;a.F=null}a.C&&(a.C.isFinished()||(b=a.C,Infinity!==b.status.status&&RX(b,"Canceled")),a.C=null);a.D=null;a.B=null;a.K=!1};
jva=function(){var a=Xo();return!(!a||"visible"===a)};
lva=function(a){var b=kva();b&&document.addEventListener(b,a,!1)};
mva=function(a){var b=kva();b&&document.removeEventListener(b,a,!1)};
kva=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Wo+"VisibilityState"])return"";a=Wo+"visibilitychange"}return a};
bY=function(){g.O.call(this);var a=this;this.fullscreen=0;this.B=this.pictureInPicture=this.C=this.u=this.inline=!1;this.D=function(){a.Ye()};
lva(this.D);this.F=this.getVisibilityState(this.Ue(),this.isFullscreen(),this.u,this.isInline(),this.pictureInPicture,this.B)};
nva=function(a){this.end=this.start=a};
dY=function(a,b,c){g.B.call(this);var d=this;this.api=a;this.W=b;this.u=c;this.fa=new Map;this.C=new Map;this.B=[];this.ra=NaN;this.P=this.F=null;this.da=new g.F(function(){cY(d,d.ra)});
this.events=new g.dR(this);this.isLiveNow=!0;this.ga=g.P(this.W.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.D=new g.F(function(){d.J=!0;d.u.Ka("sdai","aftimeout."+d.ga.toString());d.gu(!0)},this.ga);
this.J=!1;this.Y=new Map;this.X=[];this.K=null;this.S=[];this.la=[];this.u.getPlayerType();ova(this.u,this);g.C(this,this.da);g.C(this,this.events);g.C(this,this.D);this.events.N(this.api,g.TF("serverstitchedcuerange"),this.SM);this.events.N(this.api,g.UF("serverstitchedcuerange"),this.TM)};
tva=function(a,b,c,d,e){if(g.Q(a.W.experiments,"web_player_ss_timeout_skip_ads")&&pva(a,d,d+c))return"";a.J&&a.u.Ka("sdai","adaftto");var f=a.u;e=void 0===e?d+c:e;if(d>e)return eY(a,"Invalid playback enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var h=1E3*f.Gc();if(d<h)return eY(a,"Invalid playback enterTimeMs="+d+" is less than parentMinSeekableTimeMs="+h),"";h=1E3*f.getDuration();if(e>h)return eY(a,"Invalid playback parentReturnTimeMs="+e+" is greater than parentDurationMs="+h),"";
h=null;for(var l=g.q(a.B),m=l.next();!m.done;m=l.next()){m=m.value;if(d>=m.Yb&&d<m.cd||e<=m.cd&&e>m.Yb)return eY(a,"Overlapping child playbacks not allowed. New playback {video_id="+(b.video_id+" enterTimeMs="+d+" parentReturnTimeMs="+e+"} overlaps existing ChildPlayback "+fY(m))),"";if(e===m.Yb)return eY(a,"Neighboring child playbacks must be added sequentially. New playback {video_id="+(b.video_id+" enterTimeMs="+d+" parentReturnTimeMs="+e+"} added after existing ChildPlayback "+fY(m))),"";d===
m.cd&&(h=m)}l="childplayback_"+qva++;m={Hd:gY(c,!0),xf:Infinity,target:null};var n=b.raw_player_response;if(!n&&!g.Q(a.W.experiments,"web_player_parse_ad_response_killswitch")){var p=b.player_response;p&&(n=JSON.parse(p))}b.cpn||(b.cpn=a.ey());b={Hc:l,playerVars:b,playerType:2,durationMs:c,Yb:d,cd:e,sg:m,playerResponse:n,cpn:b.cpn};a.B=a.B.concat(b).sort(function(r,t){return r.Yb-t.Yb});
h?(b.xj=h.xj,rva(h,{Hd:gY(h.durationMs,!0),xf:Infinity,target:b})):(b.xj=b.cpn,d={Hd:gY(d,!1),xf:d,target:b},a.fa.set(d.Hd,d),a.ba(),f.addCueRange(d.Hd));d=sva(b.Yb,b.Yb+b.durationMs);a.C.set(d,b);f.addCueRange(d);a.D.isActive()&&(a.J=!1,a.D.stop(),a.gu(!1));a.ba();return l};
gY=function(a,b){return new g.QF(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"serverstitchedtransitioncuerange",priority:7})};
sva=function(a,b){return new g.QF(a,b,{namespace:"serverstitchedcuerange",priority:7})};
rva=function(a,b){a.sg=b};
hY=function(a,b,c){c=void 0===c?0:c;var d=0;a=g.q(a.B);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.Yb/1E3+d,h=f+e.durationMs/1E3;if(f>b+c)break;if(h>b)return{Og:e,vl:b-d};d=h-e.cd/1E3}return{Og:null,vl:b-d}};
cY=function(a,b){var c=a.P||a.api.fc().getPlayerState();iY(a,!0);var d=hY(a,b).vl;a.ba();a.ba();a.u.seekTo(d);d=a.api.fc();var e=d.getPlayerState();g.TL(c)&&!g.TL(e)?d.playVideo():g.T(c,4)&&!g.T(e,4)&&d.pauseVideo()};
iY=function(a,b){a.ra=NaN;a.da.stop();a.F&&b&&jY(a.F);a.P=null;a.F=null};
LT=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.ba();for(var d=b,e=c,f=g.q(a.fa),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.xf>=d&&l.target&&l.target.cd<=e&&(a.u.removeCueRange(h),a.fa["delete"](h))}d=b;e=c;f=[];h=g.q(a.B);for(l=h.next();!l.done;l=h.next())l=l.value,(l.Yb<d||l.cd>e)&&f.push(l);a.B=f;d=b;e=c;f=g.q(a.C.keys());for(h=f.next();!h.done;h=f.next())h=h.value,h.start>=d&&h.end<=e&&(a.u.removeCueRange(h),a.C["delete"](h));d=hY(a,b/
1E3);b=d.Og;d=d.vl;b&&(d=1E3*d-b.Yb,uva(a,b,d,b.Yb+d));(b=hY(a,c/1E3).Og)&&eY(a,"Invalid clearEndTimeMs="+c+" that falls during "+fY(b)+".Child playbacks can only have duration updated not their start.")};
uva=function(a,b,c,d){a.ba();b.durationMs=c;b.cd=d;c={Hd:gY(c,!0),xf:c,target:null};b.sg=c;c=null;d=g.q(a.C);for(var e=d.next();!e.done;e=d.next()){e=g.q(e.value);var f=e.next().value;e.next().value.Hc===b.Hc&&(c=f)}c&&(a.u.removeCueRange(c),c=sva(b.Yb,b.Yb+b.durationMs),a.C.set(c,b),a.u.addCueRange(c))};
fY=function(a){return"playback={timelinePlaybackId="+a.Hc+" video_id="+a.playerVars.video_id+" durationMs="+a.durationMs+" enterTimeMs="+a.Yb+" parentReturnTimeMs="+a.cd+"}"};
yva=function(a,b,c,d){if(vva(a,c))return null;var e=a.Y.get(c);e||(e=0,a.W.aa("web_player_ss_media_time_offset")&&(e=0===a.u.getStreamTimeOffset()?a.u.wc():a.u.getStreamTimeOffset()),e=hY(a,b+e,1).Og);var f=Number(d.split(";")[0]);if(e&&e.playerResponse&&e.playerResponse.streamingData&&(b=e.playerResponse.streamingData.adaptiveFormats)){var h=b.find(function(m){return m.itag===f});
if(h&&h.url){b=a.u.getVideoData();var l=b.va.u[d].index.uD(c-1);d=h.url;l&&l.u&&(d=d.concat("&daistate="+l.u));(b=b.clientPlaybackNonce)&&(d=d.concat("&cpn="+b));e.xj&&(b=wva(a,e.xj),0<b.length&&(d=d.concat("&acpns="+b.join(","))));g.Q(a.W.experiments,"html5_high_res_logging")&&a.u.Ka("sdai","ast."+e.Yb.toFixed(3)+".alen."+e.durationMs.toFixed(3)+".acpn."+e.cpn);a.Y.set(c,e);return d}}xva(a,c);return null};
xva=function(a,b){for(var c=g.q(a.X),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.X.push(new nva(b))};
vva=function(a,b){for(var c=g.q(a.X),d=c.next();!d.done;d=c.next())if(d=d.value,b>=d.start&&b<=d.end)return!0;return!1};
eY=function(a,b){a.u.Ka("timelineerror",b)};
wva=function(a,b){for(var c=[],d=g.q(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.xj===b&&e.cpn&&c.push(e.cpn);return c};
pva=function(a,b,c){if(!a.S.length)return!1;for(var d={},e=g.q(a.S),f=e.next();!f.done;d={sn:d.sn},f=e.next()){d.sn=f.value;f=1E3*d.sn.startSecs;var h=1E3*d.sn.durationSecs+f;if(b>f&&b<h||c>f&&c<h)return ji(a.la,function(l){return function(m){return m.identifier===l.sn.identifier}}(d))||(a.u.Ka("sdai","adskip_"+b),a.la.push(d.sn)),!0}return!1};
zva=function(a,b){ji(a.S,function(c){return c.identifier===b.identifier})?(a.u.Ka("sdai","timedoutcp.1"),a.D.start(0)):a.D.isActive()||(g.Q(a.W.experiments,"html5_high_res_logging")&&a.u.Ka("sdai","adf.1"),a.J=!1,a.D.start(),a.K=b,a.Y.clear(),a.X=[])};
kY=function(a,b,c){g.B.call(this);var d=this;this.api=a;this.W=b;this.B=c;this.F=new Map;this.u=[];this.C=this.K=null;this.X=NaN;this.J=this.D=null;this.S=new g.F(function(){Ava(d,d.X)});
this.P=[];this.Y=new g.F(function(){var e=d.P.pop();if(e){var f=e.Hc,h=e.playerVars;e=e.playerType;h.prefer_gapless=!0;d.api.preloadVideoByPlayerVars(h,e,NaN,"",f);d.P.length&&g.kn(d.Y,4500)}});
this.events=new g.dR(this);c.getPlayerType();g.C(this,this.S);g.C(this,this.Y);g.C(this,this.events);this.events.N(this.api,g.TF("childplayback"),this.UM);this.events.N(this.api,"onQueuedVideoLoaded",this.mQ);this.events.N(this.api,"presentingplayerstatechange",this.VM)};
Eva=function(a,b,c,d,e){var f=a.B;e=void 0===e?d+c:e;if(d>e)return lY(a,"e.enterAfterReturn enterTimeMs="+d+" is greater than parentReturnTimeMs="+e),"";var h=1E3*f.Gc();if(d<h)return lY(a,"e.enterBeforeMinSeekable enterTimeMs="+d+"is less than parentMinSeekableTimeMs="+h),"";h=1E3*f.getDuration();if(e>h)return lY(a,"e.returnAfterDuration parentReturnTimeMs="+e+" is greater than parentDurationMs="+h),"";h=null;for(var l=g.q(a.u),m=l.next();!m.done;m=l.next()){m=m.value;if(d>=m.Yb&&d<m.cd)return lY(a,
"e.overlappingEnter"),a.ba(),"";if(e<=m.cd&&e>m.Yb)return lY(a,"e.overlappingReturn"),a.ba(),"";if(e===m.Yb)return lY(a,"e.outOfOrder"),a.ba(),"";d===m.cd&&(h=m)}l="childplayback_"+Bva++;m={Hd:mY(c,!0),xf:Infinity,target:null};var n={Hc:l,playerVars:b,playerType:2,durationMs:c,Yb:d,cd:e,sg:m};a.u=a.u.concat(n).sort(function(t,w){return t.Yb-w.Yb});
h?Cva(a,h,{Hd:mY(h.durationMs,!0),xf:a.W.aa("timeline_manager_transition_killswitch")?Infinity:h.sg.xf,target:n}):(b={Hd:mY(d,!1),xf:d,target:n},a.F.set(b.Hd,b),a.ba(),f.addCueRange(b.Hd));b=g.Q(a.W.experiments,"html5_gapless_preloading");if(a.B===a.api.fc()&&(f=1E3*f.getCurrentTime(),f>=n.Yb&&f<n.cd)){var p=a.api.fc().getPlayerState(),r=f-n.Yb;fm(function(){Dva(a,n,r/1E3,p)});
b=!1}b&&(a.P.unshift(n),g.kn(a.Y,0));a.ba();return l};
mY=function(a,b){return new g.QF(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:7})};
Gva=function(a,b,c,d){a.ba();a.C=d;Fva(a.api.app,a.B,c,void 0===b?0:b)};
Hva=function(a,b,c,d){a.ba();a.C=d;d=b.Hc;var e=b.playerVars,f=b.playerType;a.K=b;a.api.enqueueVideoByPlayerVars(e,f,c,d)};
Cva=function(a,b,c){var d=b.sg;b.sg=c;nY(a,b)&&(c=a.api.fc(),d.Hd===a.C&&oY(a),a.ba(),c.removeCueRange(d.Hd),b=b.sg,a.ba(),c.addCueRange(b.Hd))};
oY=function(a){a.K=null;a.C=null;!a.api.app.Ha.B||a.api.clearQueue()};
Iva=function(a,b){nY(a,b)||lY(a,"e.childPlaybackIsNotPresenting");return b.cd===b.Yb+b.durationMs?b.Yb+1E3*a.api.fc().getCurrentTime():b.cd};
pY=function(a,b){for(var c=0,d=g.q(a.u),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.Yb/1E3+c,h=f+e.durationMs/1E3;if(f>b)break;if(h>b)return{Og:e,vl:b-f};c=h-e.cd/1E3}return{Og:null,vl:b-c}};
Ava=function(a,b){var c=a.J||a.api.fc().getPlayerState();qY(a,!0);var d=g.Q(a.W.experiments,"html5_playbacktimeline_seektoinf_killswitch")||isFinite(b)?b:a.B.Ih(),e=pY(a,d);d=e.Og;e=e.vl;var f=d&&!nY(a,d)||!d&&a.B!==a.api.fc(),h=1E3*e;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||oY(a);a.ba();d?(a.ba(),Dva(a,d,e,c)):(a.ba(),rY(a,e,c))};
rY=function(a,b,c){var d=a.B;if(d!==a.api.fc()){var e=d.getPlayerType();g.jN(a.api.app,e)}d.seekTo(b);Jva(a,c)};
Dva=function(a,b,c,d){var e=nY(a,b);if(!e){g.jN(a.api.app,b.playerType);b.playerVars.prefer_gapless=!0;var f=new g.zH(a.W,b.playerVars);f.Hc=b.Hc;sY(a.api.app,f,b.playerType,void 0)}f=a.api.fc();e||(b=b.sg,a.ba(),f.addCueRange(b.Hd));f.seekTo(c);Jva(a,d)};
Jva=function(a,b){var c=a.api.fc(),d=c.getPlayerState();g.TL(b)&&!g.TL(d)?c.playVideo():g.T(b,4)&&!g.T(d,4)&&c.pauseVideo()};
qY=function(a,b){a.X=NaN;a.S.stop();a.D&&b&&jY(a.D);a.J=null;a.D=null};
nY=function(a,b){var c=a.api.fc();return!!c&&c.getVideoData().Hc===b.Hc};
Kva=function(a){var b=a.u.find(function(d){return nY(a,d)});
if(b){oY(a);var c=new g.NL(8);b=Iva(a,b)/1E3;rY(a,b,c)}};
MT=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;a.ba();for(var d=b,e=c,f=g.q(a.F),h=f.next();!h.done;h=f.next()){var l=g.q(h.value);h=l.next().value;l=l.next().value;l.xf>=d&&l.target&&l.target.cd<=e&&(a.B.removeCueRange(h),a.F["delete"](h))}d=b;e=c;f=[];h=g.q(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Yb>=d&&l.cd<=e){var m=a;m.K===l&&oY(m);nY(m,l)&&g.kN(m.api,l.playerType)}else f.push(l);a.u=f;d=pY(a,b/1E3);b=d.Og;d=d.vl;b&&(d*=1E3,Lva(a,b,d,b.cd===b.Yb+b.durationMs?b.Yb+
d:b.cd));(b=pY(a,c/1E3).Og)&&lY(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Hc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Yb+" parentReturnTimeMs="+b.cd+"}.Child playbacks can only have duration updated not their start."))};
Lva=function(a,b,c,d){a.ba();b.durationMs=c;b.cd=d;d={Hd:mY(c,!0),xf:c,target:null};Cva(a,b,d);nY(a,b)&&1E3*a.api.fc().getCurrentTime()>c&&(b=Iva(a,b)/1E3,c=a.api.fc().getPlayerState(),rY(a,b,c))};
lY=function(a,b){a.B.Ka("timelineerror",b)};
Nva=function(a){a&&"web"!==a&&Mva.includes(a)};
vY=function(a,b){g.B.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.u=new g.F(function(){tY(c);uY(c)});
g.C(this,this.u)};
tY=function(a){var b=(0,g.N)();a.data.forEach(function(c){c.expire<b&&wY(a,c,!0)});
a.data=g.He(a.data,function(c){return!(c.expire<b)})};
wY=function(a,b,c){c&&a.B&&a.B(b.value)};
uY=function(a){a.u.stop();var b=Infinity;for(var c=g.q(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&a.u.start(Math.max(b-g.A(),0))};
xY=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.B=this.u=a-1};
Ova=function(a){return a.data[a.u]||0};
yY=function(a){g.B.call(this);this.D=a;this.u=new Map;this.B=new g.F(this.C,250,this);g.C(this,this.B);this.start()};
zY=function(a,b){var c;if(null===(c=a.u.get(b))||void 0===c)var d=void 0;else{d=c.buffer;for(var e=[];d.B!==d.u;)d.B=(d.B+1)%d.data.length,e.push(d.data[d.B]);d=e}return d||[]};
AY=function(a,b){var c;return(null===(c=a.u.get(b))||void 0===c?void 0:Ova(c.buffer))||0};
BY=function(a){this.B=a;this.u=NaN;this.buffer=new xY(100)};
Pva=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.dc()+")":a.dc()};
CY=function(a,b){g.B.call(this);var c=this;this.u=null;for(var d=[],e=0;100>=e;e++)d.push(e/100);e={threshold:d};b&&(e={threshold:d,trackVisibility:!0,delay:1E3});(this.B=window.IntersectionObserver?new IntersectionObserver(function(f){f=f[f.length-1];b?"undefined"===typeof f.isVisible?c.u=null:c.u=f.isVisible?f.intersectionRatio:0:c.u=f.intersectionRatio},e):null)&&this.B.observe(a)};
DY=function(a,b){this.u=a;this.ea=b;this.B=null;this.C=[];this.D=!1};
g.EY=function(a){a.B||(a.B=a.u.createMediaElementSource(a.ea.Xd()));return a.B};
g.FY=function(a){for(var b;0<a.C.length;)(b=a.C.pop())&&b.disconnect();a.B&&a.B.disconnect()};
Rva=function(a,b){if(g.Sq())return null;var c=Qva();if(!c)return g.yT(a,"html5.webaudio",{name:"null context"}),null;if("string"===typeof c)return g.yT(a,"html5.webaudio",{name:c}),null;if(!c.createMediaElementSource)return g.yT(a,"html5.webaudio",{name:"missing createMediaElementSource"}),null;if("suspended"===c.state){var d=function(e){"suspended"===c.state&&g.TL(e.state)&&c.resume().then(function(){a.removeEventListener("presentingplayerstatechange",d);GY=!1},null)};
GY||(a.addEventListener("presentingplayerstatechange",d),GY=!0)}return new DY(c,b)};
IY=function(a){g.U.call(this,{G:"div",ka:["html5-video-player"],U:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},R:[{G:"div",L:g.HY.VIDEO_CONTAINER,U:{"data-layer":"0"}}]});var b=this;this.app=a;this.C=this.ia(g.HY.VIDEO_CONTAINER);this.B=new g.dg(0,0,0,0);this.u=null;this.K=new g.dg(0,0,0,0);this.Y=this.ra=this.fa=NaN;this.J=this.na=!1;this.X=NaN;this.da=!1;this.F=null;this.dispatchEvent=function(){};
this.ga=function(){b.element.focus()};
this.S=null;var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
var e=a.T();e.transparentBackground&&this.jr("ytp-transparent");"0"===e.controlsType&&this.jr("ytp-hide-controls");e.aa("html5_ux_control_flexbox_killswitch")||g.J(this.element,"ytp-exp-bottom-control-flexbox");e.aa("html5_player_bottom_linear_gradient")&&g.J(this.element,"ytp-linear-gradient-bottom-experiment");Kha(this.element,Sva(a));UD(e)&&"blazer"!==e.playerStyle&&window.matchMedia&&(this.S="desktop-polymer"===e.playerStyle?[{query:window.matchMedia("(max-width: 656px)"),size:new g.fe(426,240)},
{query:window.matchMedia("(max-width: 856px)"),size:new g.fe(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.fe(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.fe(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.fe(854,480)},{query:window.matchMedia("(min-width: 1000px)"),size:new g.fe(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.fe(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),
size:new g.fe(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.fe(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.fe(640,360)}]);this.la=e.useFastSizingOnWatchDefault;this.D=new g.fe(NaN,NaN);Tva(this);this.N(a.u,"onMutedAutoplayChange",this.ZM)};
Tva=function(a){function b(){a.u&&JY(a);KY(a)!==a.da&&a.Ag()}
function c(h,l){a.updateVideoData(l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.K=new g.dg(0,0,0,0);a.B=new g.dg(0,0,0,0)}
var f=a.app.u;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.Yf(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
yJ=function(a,b){BD(a.app.T());a.J=!b;JY(a)};
Uva=function(a){var b=g.Q(a.app.T().experiments,"html5_aspect_from_adaptive_format"),c=g.Z(a.app);if(c=c?c.getVideoData():null){if(c.Wj()||c.Xj()||c.Qj())return 16/9;if(b&&HH(c)&&c.La.u)return b=c.La.videoInfos[0].video,LY(b.width,b.height)}return(a=a.u)?LY(a.videoWidth,a.videoHeight):b?16/9:NaN};
Vva=function(a,b,c,d){var e=c,f=LY(b.width,b.height);a.na?e=c<f?Infinity:0:isNaN(a.Y)?isNaN(a.ra)||(e=a.ra):e=a.Y;isFinite(e)||(e=Math.max(c,f));var h;e>f?h={width:b.width,height:b.width/e,aspectRatio:e}:e<f?h={width:b.height*e,height:b.height,aspectRatio:e}:h={width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?h.width=h.height*c:c<e&&(h.height=h.width/c),h.aspectRatio=c);return h};
LY=function(a,b){return 1>Math.abs(MY*b-a)||1>Math.abs(MY/a-b)?MY:a/b};
KY=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.Z(a.app);if(!b||b.Rj())return!1;var c=g.NJ(a.app.u);a=!g.T(c,2)||!g.Q(a.app.T().experiments,"html5_leanback_gapless_elem_display_killswitch")&&b&&b.getVideoData().Oh;b=g.T(c,1024);return c&&a&&!b&&!c.isCued()};
JY=function(a){var b="3"===a.app.T().controlsType&&!a.J&&KY(a)&&!a.app.Ta||!1;a.u.controls=b;a.u.tabIndex=b?0:-1;b?a.u.removeEventListener("focus",a.ga):g.Q(a.app.T().experiments,"disable_focus_redirect")||a.u.addEventListener("focus",a.ga)};
Wva=function(a){var b=a.Cf(),c=1,d=!1,e=Vva(a,b,a.getVideoAspectRatio()),f=Zq();if(KY(a)){var h=Uva(a);var l=isNaN(h)||g.ms||uE&&g.Zr;$q&&!g.Yd(601)?h=e.aspectRatio:l=l||"3"===a.app.T().controlsType;l?l=new g.dg(0,0,b.width,b.height):(c=e.aspectRatio/h,l=new g.dg((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.Zr&&(h=l.width-b.height*h,0<h&&(l.width+=h,l.height+=h)));f&&(a.u.style.display="");a.da=!0}else l=-b.height,$q?l*=window.devicePixelRatio:g.cE&&(l-=window.screen.height),
l=new g.dg(0,l,b.width,b.height),f&&(a.u.style.display="none"),a.da=!1;eg(a.K,l)||(a.K=l,g.MD(a.app.T())?(a.u.style.setProperty("width",l.width+"px","important"),a.u.style.setProperty("height",l.height+"px","important")):g.Dg(a.u,new g.fe(l.width,l.height)),d=new g.de(l.left,l.top),g.wg(a.u,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.dg((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);eg(a.B,b)||(a.B=b,d=!0);g.og(a.u,"transform",1===c?"":"scaleX("+c+")");return d};
Xva=function(){this.csn=g.Zt();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.u=new Set;this.B=new Set};
ssa=function(a,b,c,d,e){e=void 0===e?!1:e;a.elements.has(b);a.elements.add(b);d=bfa(d);b.visualElement=d;var f=g.Zt(),h=g.Xt();f&&h&&g.lu(f,h,d);g.Yf(c,function(){Yva(a,b)});
e&&a.B.add(b)};
tsa=function(a,b,c,d){d=void 0===d?!1:d;a.elements.has(b);a.elements.add(b);g.Yf(c,function(){Yva(a,b)});
d&&a.B.add(b)};
Yva=function(a,b){a.elements.has(b);a.elements["delete"](b);a.C["delete"](b);a.u["delete"](b);a.B["delete"](b)};
Zva=function(a){if(a.csn!==g.Zt())if("UNDEFINED_CSN"===a.csn)a.csn=g.Zt();else{var b=g.Zt(),c=g.Xt();if(b&&c){a.csn=b;for(var d=g.q(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.lu(b,c,e)}if(b)for(a=g.q(a.u),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.fu(b,c,void 0)}};
NY=function(a,b,c,d,e){g.U.call(this,{G:"div",L:"ytp-horizonchart"});this.J=b;this.sampleCount=c;this.D=d;this.F=e;this.index=0;this.heightPx=-1;this.C=this.B=null;this.u=Math.round(a/c);this.element.style.width=this.u*this.sampleCount+"px";this.element.style.height=this.J+"em"};
OY=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.Ce("CANVAS"),a.B=c.getContext("2d")}catch(e){}if(a.B){var d=a.u*a.sampleCount;a.C=c;a.C.width=d;a.C.style.width=d+"px";a.element.appendChild(a.C)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.u*=4,c=0;c<a.sampleCount;c++)d=g.Ce("SPAN"),d.style.width=a.u+"px",d.style.left=a.u*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.B&&(c=1<(window.devicePixelRatio||1)?2:1,a.C.height=a.heightPx*c,a.C.style.height=
a.heightPx+"px",a.B.scale(1,c)));c=g.q(b);for(d=c.next();!d.done;d=c.next())a.setValue(a.index,d.value),a.index=(a.index+1)%a.sampleCount;c=a.index;a.B?a.B.clearRect(c*a.u,0,a.u,a.heightPx):(c=a.element.children[c],c.style.height="0px",c.style.borderTop="")};
PY=function(a){var b=null;b={G:"button",ka:["html5-video-info-panel-close","ytp-button"],U:{title:"close"},Z:"[x]"};g.U.call(this,{G:"div",L:"html5-video-info-panel",R:[b,{G:"div",L:"html5-video-info-panel-content",R:[{G:"div",R:[{G:"div",Z:"Video ID / sCPN"},{G:"span",Z:"{{video_id_and_cpn}}"}]},{G:"div",R:[{G:"div",Z:"Viewport / Frames"},{G:"span",Z:"{{dims_and_frames}}"}]},{G:"div",R:[{G:"div",Z:"Current / Optimal Res"},{G:"span",Z:"{{resolution}}"}]},{G:"div",R:[{G:"div",Z:"Volume / Normalized"},
{G:"span",Z:"{{volume}}"}]},{G:"div",R:[{G:"div",Z:"Codecs"},{G:"span",Z:"{{codecs}}"}]},{G:"div",U:{style:"{{shader_info_style}}"},R:[{G:"div",Z:"Shader Info"},{G:"span",Z:"{{shader_info}}"}]},{G:"div",U:{style:"{{color_style}}"},R:[{G:"div",Z:"Color"},{G:"span",Z:"{{color}}"}]},{G:"div",U:{style:"{{drm_style}}"},R:[{G:"div",Z:"Protected"},{G:"span",Z:"{{drm}}"}]},{G:"div",U:{style:"{{bandwidth_style}}"},R:[{G:"div",Z:"Connection Speed"},{G:"span",R:[{G:"span",Z:"{{bandwidth_chart}}"},{G:"span",
Z:"{{bandwidth_kbps}}"}]}]},{G:"div",U:{style:"{{network_activity_style}}"},R:[{G:"div",Z:"Network Activity"},{G:"span",R:[{G:"span",Z:"{{network_activity_chart}}"},{G:"span",Z:"{{network_activity_bytes}}"}]}]},{G:"div",R:[{G:"div",Z:"Buffer Health"},{G:"span",R:[{G:"span",Z:"{{buffer_health_chart}}"},{G:"span",Z:"{{buffer_health_seconds}}"}]}]},{G:"div",U:{style:"{{live_latency_style}}"},R:[{G:"div",Z:"Live Latency"},{G:"span",R:[{G:"span",Z:"{{live_latency_chart}}"},{G:"span",Z:"{{live_latency_secs}}"}]}]},
{G:"div",U:{style:"{{live_mode_style}}"},R:[{G:"div",Z:"Live Mode"},{G:"span",Z:"{{live_mode}}"}]},{G:"div",U:{style:"{{playback_categories_style}}"},R:[{G:"div",Z:"Playback Categories"},{G:"span",Z:"{{playback_categories}}"}]},{G:"div",R:[{G:"div",Z:"Mystery Text"},{G:"span",Z:"{{debug_info}}"}]},{G:"div",U:{style:"{{release_style}}"},R:[{G:"div",Z:"Player Release"},{G:"span",Z:"{{release_name}}"}]}]}]});b&&(b=this.ia("html5-video-info-panel-close"),this.N(b,"click",this.hide));b=[0,18750,37500,
81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];var c="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" "),d=b.map(function(e){return e/4});
this.u=new NY(300,1,150,b,c);g.C(this,this.u);this.za("bandwidth_chart",this.u);this.C=new NY(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.C(this,this.C);this.za("live_latency_chart",this.C);this.B=new NY(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.C(this,this.B);this.za("buffer_health_chart",this.B);this.D=new NY(300,1,150,d,c);g.C(this,this.D);this.za("network_activity_chart",this.D);this.delay=new g.F(this.oa,
500,this);g.C(this,this.delay);this.F=a};
$va=function(a){a=void 0===a?{}:a;var b=a.kf,c=a.Nf,d=a.Vb,e=a.Xn;this.Gj=a.Gj;this.kf=b;this.Nf=c;this.Vb=d;this.Xn=e};
yz=function(a,b){if(0>b)return!0;var c=a.Vb();return b<c||b===c&&!a.Gj||b===c&&(c=a.Xn())&&b===c.kb?!0:!1};
iga=function(a,b,c){if(!yz(a,b))return 0;if(!a.kf||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.Vb();return b<c||b===c&&(a=a.Xn())&&b===a.kb&&!a.pending?2:1};
QY=function(){this.C=this.D=0;this.ticks={}};
RY=function(a,b,c,d){this.target=a;this.trigger=b;this.C=c;this.D=d;this.u=0};
SY=function(a,b,c,d,e,f,h,l,m){l=void 0===l?!1:l;g.O.call(this);var n=this;this.schedule=a;this.policy=b;this.u=c;this.Me=h;this.Ko=m;this.timing=new QY;this.mediaSource=null;this.K=this.currentTime=NaN;this.Y=this.Ha=0;this.X=this.Ba=this.isSuspended=!1;this.la="";this.da={};this.Za=this.ae=NaN;this.Yf=null;this.timestampOffset=NaN;this.qb=!1;this.Ma=0;this.P=!1;this.fa=null;this.J=new gB(a,b);this.B=new zha(this.J,b,this.u,d);a=Cha(this.B,e,f&&f.id);this.audioTrack=new tA(this.policy,a.audio,function(p,
r){return awa(n,p,r)});
this.videoTrack=new tA(this.policy,a.video,function(p,r){return awa(n,p,r)});
bwa(this,this.audioTrack);bwa(this,this.videoTrack);this.videoTrack.C.fa=this.audioTrack.C;this.na={updateend:this.aM,error:this.xO};this.S=new g.F(this.Zg,0,this);g.C(this,this.S);this.Pa=new g.F(this.Zg,1E3,this);g.C(this,this.Pa);this.vb=new g.F(this.Zg,void 0,this);g.C(this,this.vb);this.Ta=new g.F(this.Zg,1E4,this);g.C(this,this.Ta);this.ga=new YA(5);(this.F=Iha(this.policy,this.schedule,this.ga,function(p,r){return cwa(n,p,r)}))&&this.F.subscribe("ctmp",this.bd,this);
this.C=new oC(this.u,this.policy,this.videoTrack,this.audioTrack,l);g.C(this,this.C);this.C.subscribe("ctmp",this.bd,this);this.D=new rC(this.u,this.videoTrack,this.audioTrack,this.policy,this.C);g.C(this,this.D);dwa(this,this.D);this.ba()};
ewa=function(a,b,c){function d(l){TY(a,l)&&a.Zg()}
var e=c.kD(),f=c.Pk((a.Ko.u[e].expectedBytes||0)-(c.indexRange.length+c.initRange.length));c.C=!0;for(c=0;c<f.length;c++){var h=new jA(e,f[c],a.Ko,d);wA(b,h)}};
fwa=function(a){var b=a.videoTrack.u.index;a.Yf=new $va({Gj:a.policy.Gj,kf:a.policy.D.kf,Nf:b.Nf,Vb:function(){return b.Vb()},
Xn:function(){return b.Xn()}})};
VY=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.currentTime;var c=a.videoTrack,d=a.B,e=d.D&&d.D.index.Jh(b)||0;d.ga!=e&&(d.la={},d.ga=e,jE(d,d.F));sE(d);d.D&&!d.D.index.Qc()&&(d.ga=-1);UY(a,c,d.D);UY(a,a.audioTrack,a.B.J)};
WY=function(a,b){a.Ba=b;a.P||(a.ba(),a.isSuspended=!0)};
gwa=function(a){a.mediaSource&&a.mediaSource.u&&a.mediaSource.B&&(Ft(a.mediaSource.u,a.na,a),Ft(a.mediaSource.B,a.na,a));uA(a.audioTrack,null);uA(a.videoTrack,null);a.mediaSource=null};
YY=function(a,b){b=void 0===b?!1:b;a.ba();gwa(a);b?(a.ba(),a.P=!0):a.policy.Lg?WY(a,a.qb):WY(a,!1);XY(a)};
$Y=function(a){a.mediaSource&&SB(a.mediaSource)&&(YY(a),a.policy.DB&&ZY(a,!0,"fmt.unplayable",{unexpected:1}))};
bZ=function(a,b,c){var d=a.C;if(2===d.B||3===d.B||a.isSuspended&&(!fB(a.schedule)||a.Ba)||a.policy.Bh&&!fB(a.schedule))return!1;if(a.u.isManifestless){if(0<b.D.length&&b.B&&-1===b.B.B||b.D.length>=a.policy.DI&&!a.policy.lc||!a.policy.tB&&0<b.D.length&&!a.policy.D.kf)return!1;if(b.P)return!a.u.isLive||!isNaN(a.ae)}if(XA(b))return a.ba(),!1;if(!(b.B||a.u.isManifestless&&a.policy.lc&&b.P)){if(!b.u.Ae())return!1;GA(b,a.currentTime)}d=b.D.length+c.D.length;(QA(b)||QA(c)||a.u.isLive&&(!a.policy.lc||!b.D.length))&&
--d;if(d+1>=a.policy.MI)return!1;if(!b.B)return!0;d=b.B;if(!Zw(d.u.B))return!1;4==d.type&&d.u.Ae()&&(b.B=g.db(d.u.cw(d)),d=b.B);if(!d.F&&!d.u.fk(d))return!1;var e=a.u.ce||a.u.J;if(a.u.isManifestless&&e){e=b.u.index.Vb();var f=c.u.index.Vb();e=Math.min(e,f);if(0<b.u.index.D&&0<e&&d.B>=e)return b.Y=e,c.Y=e,!1}if(d.u.info.audio&&4==d.type)return!1;if(SA(b)&&!a.policy.la)return!0;if(d.F||IA(b)&&IA(b)+IA(c)>a.policy.Lb)return!1;e=!b.F&&!c.F;f=b===a.videoTrack&&a.P;if(!(c=!!(c.B&&!c.B.F&&c.B.J<d.J)&&(!a.u.isManifestless||
c.B&&c.B.J&&d.J)&&e&&!f||a.policy.ra&&!b.F&&c.F)&&(c=Tu(d))){c=d.J;a:if(d=a.C,d=d.u?d.u.ue:null,a.P&&d)a=d.startSecs+d.durationSecs;else{d=aZ(a,b,!0);!rE(a.B)&&0<a.policy.S&&(e=((0,g.N)()-a.Ha)/1E3,d=Math.min(d,a.policy.S+a.policy.vf*e));d=a.currentTime+d;if(a.policy.Sl&&(e=hwa(a)+a.policy.Sl,e<d)){a.bd("mrl","ori."+d+";mod."+e,!0);a.policy.lH&&(a.Ha=(0,g.N)());a=e;break a}a=d}c=c>a}return c?!1:(b=b.K)&&b.isLocked()?!1:!0};
jwa=function(a,b,c){if(bZ(a,b,c))if(c=iwa(a,b,c),a.policy.KB&&a.u.isManifestless&&!b.P&&0>c.u[0].B)a.bd("invalidsq",Qu(c.u[0]));else{if(a.fa){var d=a.C;var e=c.u[0].B;d=0>e&&!isNaN(d.D)?d.D:e;e=a.C;var f=(0>d||d===e.D)&&!isNaN(e.F)?e.F:c.u[0].K;if(e=yva(a.fa.pe,f,d,c.u[0].u.info.id))d="decurl_itag"+c.u[0].u.info.dc()+"_sg"+d+"_st"+f.toFixed(3)+".",a.bd("sdai",d),c.F=e}a.policy.Rs&&-1!==c.u[0].B&&c.u[0].B<a.u.Ed&&(c=b.u.rl(a.u.Ed,!1));d=c.u[0].B;b.ra===d?b.fa++:(b.ra=d,b.fa=0);20<b.fa&&!b.X&&(a.bd("requestLoopRequest",
"segNum."+d,!0),g.Go(new g.nr("b172965563","requestLoopRequest.segNum."+d)),b.X=!0);wA(b,cZ(a,c))}};
iwa=function(a,b,c){if(b.P){if(a.u.isLive){var d=a.u.Ed&&a.u.J?b.u.rl(a.u.Ed,!1):b.u.Mj(Infinity);d.ae=a.ae}else d=b.u.rl(0,!1);a.F?0==d.ae&&(d.D=a.F.X):d.D=a.Za;return d}d=b.B;if(!d.u.Ae())return d.u.mf()?(a=iB(a.J,b.u.info.yb,c.u.info.yb,0),a=d.u.Rm(d,a)):a=d.u.wo(d),a;var e=d.J-a.currentTime,f=!d.range||0==d.ob&&0==d.C?0:d.range.length-(d.C+d.ob),h=d.u;kwa(a,b,e)&&0===f&&(a.u.isManifestless?h=b.u:(h=d.startTime+lwa,d.ob&&(h+=d.duration),GA(b,h),d=b.B,h=d.u));h.mf()?(c=iB(a.J,h.info.yb,c.u.info.yb,
e,Fha(a.B)&&a.X),d=mwa(d,c,RA(b))):(0>d.B&&(c=Xu(d),c.pr=""+b.D.length,a.D.C&&(c.sk="1"),a.bd("nosq",d.P+";"+g.JB(c))),d=h.wo(d));a.P&&d.u.forEach(function(l){l.type=6});
return d};
kwa=function(a,b,c){if(!RA(b)||!b.u.Ae())return!1;var d=Math.min(15,.5*aZ(a,b,!0)),e=SA(b)||c<=d||a.B.Y;a.ba("ready to adapt: "+e+", upgrade pending: "+SA(b)+", health: "+c+", max health: "+d);return e};
mwa=function(a,b,c){b=a.u.Rm(a,b);if(b.range&&1<b.u.length)if(c||b.B.B||b.u[0].u!==a.u)b=a.u.Rm(a,b.u[0].ob);else{c=b.u[b.u.length-1];var d=c.ob/b.range.length;!c.D&&.4>d&&(b=a.u.Rm(a,b.range.length-c.ob))}return b};
nwa=function(a,b){var c=Fx(b),d=a.J,e=Math.min(2.5,cB(d.B));d=jB(d);var f=Su(b.u[0]),h=Iw(b.B.u),l=a.policy.Bh,m;a.Yf?m={Pg:f,Zi:h,Em:l,Yf:a.Yf,kb:b.u[0].B,ae:b.ae}:m={Pg:f,Zi:h,Em:l};return new jz(a.schedule,c,c-e*d,m)};
cZ=function(a,b){Tu(b.u[b.u.length-1])&&owa(a,Eha(a.B,b.u[0].u));var c=nwa(a,b);a.policy.EH&&(c.F=[]);var d={fm:Math.max(0,b.u[0].K-a.currentTime),GG:a.policy.Ai&&cx(b)&&b.u[0].u.info.video?Hha(a.B):void 0,ks:a.P};return new Xz(a.policy,b,c,a.da,function(e){a:{var f=e.info.u[0].u,h=f.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||!e.Yj()||e.mk||!(!a.mediaSource||a.isSuspended||3<JA(h,a.currentTime))){var l=a.policy.Ul;if(!(!l||e.isComplete()||e.mk<l||Yw(e.info.B,a.policy,a.da))){l=
a.da;var m=Hw(Xw(e.info.B));l=Ww(l,m);l.u||l.B||l.started||(l=Gx(e.info,!0,a.policy.Tl))&&cZ(a,l)}if(!a.ma()&&2<=e.state){l=a.timing;var n=e.info.u[0].u;m=!l.B&&n.info.video;n=!l.u&&n.info.audio;4===e.state?m?l.tick("vrr"):n&&l.tick("arr"):5===e.state?m?(l.B=g.Qw(e.Ie),xp(4)):n&&(l.u=g.Qw(e.Ie)):3===e.state&&m&&xp(4);e.isComplete()&&(a.policy.Ba&&(l=kz(e.timing),m=e.timing,a.bd("rqs",g.JB({rn:e.Qr.toString(),rt:l.rt,pt:l.pt,stall:l.stall,elt:l.elbowTime,elb:l.elbowBytes,strm:""+e.Yj(),d:m.F?m.F.join(""):
""}))),e.HH&&a.bd("sbwe3","1",!0));if(4===e.state)PA(h,e),cx(e.info)&&dZ(a,h,f,!0),a.Zg();else if(e.isComplete()&&5===e.info.u[0].type)5===e.state&&(f=(e.info.u[0].u.info.video?a.videoTrack:a.audioTrack).D[0]||null)&&f instanceof Xz&&f.mk&&gA(f,!0),e.dispose();else{if(!e.isFailed()&&e.No&&2<=e.state&&4!==e.state)if(f=e.Mb?e.Mb.ke("X-Response-Itag"):null){a.ba();f=Gha(a.B,f);h=e.info.range.length-f.Tt();f.C=!0;e.info.u[0].u.C=!1;l=f.Pk(h)[0];e.info=l;if(e.nd){h=e.nd;l=l.u;h.B=l;m=l[0].range;n=bw(h.u[0].u);
bw(g.db(h.u).u);for(var p=0;p<h.u.length;p++){h.u[p].info=l[p];var r=l[p].range;h.u[p].u=new Vv([new Uint8Array(n.buffer,r.start-m.start,r.length)])}}e.No=!1;UY(a,a.videoTrack,f);h=a.videoTrack;h.B&&(h.B.u=f);a.V("constraint",f.info.Na().quality);(h=e.Mb?e.Mb.ke("X-Segment-Lmt"):null)&&f instanceof by&&(isNaN(f.lastModified)||f.lastModified===+h||PA(a.videoTrack,e))}else e.No=!1;if(5===e.state){if(TY(a,e),a.C&&(f=a.C,h=e.info,l=a.fa,0!==f.B&&l&&h.u[0].isVideo()))if(h.u[0].B>f.D&&(f.D=NaN,f.F=NaN),
f.u&&f.u.kb===h.u[0].B)if(m=f.u.ue.event,"start"===m||"continue"===m){if(1===f.B||5===f.B)f.D=h.u[0].B,f.F=h.u[0].K,f.B=2,f.V("ctmp","sdai","joinad_sg_"+f.D+"_st_"+f.F.toFixed(3),!1),zva(l.pe,f.u.ue)}else f.B=5;else 1===f.B&&(f.B=5)}else if(a.policy.fa&&e.To()&&!e.isComplete()&&!TY(a,e)&&!e.isFailed())break a;e.isFailed()&&(f=e.info.u[0].u,h=e.eh,Iw(f.B.u)&&(l=g.rf(e.Mb.Pm()||""),a.bd("dldbrerr",l||"none")),eA(e)?(l=(f.info.video&&1<f.B.B||410===e.gj||500===e.gj||503===e.gj)&&!pE(a.B),m=e.lv(),n=
f.info.video?a.videoTrack:a.audioTrack,l&&(m.stun="1"),ZY(a,!1,h,m),a.ma()||(l&&(a.ba(),oE(a.B,f)),a.policy.vn&&1===e.info.u.length&&0<e.info.u[0].C&&f!==n.u&&a.X?a.V("reattachrequired"):(PA(n,e),a.Zg()))):Iw(f.B.u)?(a.V("localplaybackfailed"),ZY(a,!1,"net.closed",{err:e.eh||"",rn:e.Qr.toString()})):(ZY(a,!1,h,e.lv()),e.info.Pg()?(f.F=h,a.Zg()):ZY(a,!0,"net.retryexhausted",{err:h,rn:e.Qr.toString()})));a.Zg();a.policy.Ta&&e.isComplete()&&eA(e)&&Yw(e.info.B,a.policy,a.da)&&(f=a.da,h=Hw(e.info.B.u),
f=Ww(f,h),f.D+a.policy.Ta*Vw(f)>(0,g.N)()||(e=Gx(e.info,!1,a.policy.Tl))&&cZ(a,e))}}}}},d)};
owa=function(a,b){b&&(a.ba(),a.V("videoformatchange",b));a.policy.ZH&&a.B.Lb&&a.V("audioformatchange",qE(a.B,"a"))};
TY=function(a,b){var c=b.info.u[0].u,d=c.info.video?a.videoTrack:a.audioTrack;pwa(a,d,b);b.info.Pg()&&!bx(b.info)&&(g.Cb(b.Az(),function(e){Vy(d.C,e)}),a.V("metadata",c));
yA(d);return!!Ry(d.C)};
pwa=function(a,b,c){if(a.u.isManifestless&&b){b.P&&(c.ma(),c.isComplete()||c.Yj()||c.To(),b.P=!1);c.iy()&&a.ga.C(1,c.iy());b=c.iF();c=c.lD();a=a.u;for(var d in a.u){var e=a.u[d].index;e.Ci&&(b&&(e.D=Math.max(e.D,b)),c&&(e.u=Math.max(e.u||0,c)))}}};
WX=function(a){var b=a.mediaSource.u,c=a.mediaSource.B;if(qwa(a)){if(a.policy.Ms){if(!b.rm()){var d=Ry(a.audioTrack.C);d&&eZ(a,b,d)}c.rm()||(b=Ry(a.videoTrack.C))&&eZ(a,c,b)}a.Y||(a.Y=(0,g.N)())}else{if(a.Y){d=(0,g.N)()-a.Y;var e=JA(a.audioTrack,a.currentTime),f=JA(a.videoTrack,a.currentTime);a.ba();a.bd("appendpause","dur."+d.toFixed()+";abuf."+((1E3*e).toFixed()+";vbuf.")+(1E3*f).toFixed());a.Y=0}if(a.F){d=a.F;e=a.audioTrack;f=qA(a.mediaSource.B.xe());if(d.F)d=Jha(d,f);else{if(f=Ry(e.C)){var h=
f.B;h&&h.C&&h.B&&(e=e.D.length?e.D[0]:null)&&2<=e.state&&!e.isFailed()&&0==e.info.ae&&e.Yj()&&(d.F=e,d.S=h,d.C=f.info,d.J=g.A()/1E3,d.P=d.J,d.K=d.C.startTime)}d=NaN}d&&a.V("seekplayerrequired",d,!0)}d=!1;rwa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.D||(e.D=g.A(),e.tick("vda"),IG("vda","video_to_ad"),e.C&&xp(4)));if(a.mediaSource&&!SB(a.mediaSource)&&(rwa(a,a.audioTrack,b)&&(d=a.timing,d.C||(d.C=g.A(),d.tick("ada"),IG("ada","video_to_ad"),d.D&&xp(4)),d=!0),!a.ma()&&a.mediaSource)){!a.policy.da&&FA(a.videoTrack)&&
FA(a.audioTrack)&&PB(a.mediaSource)&&!a.mediaSource.Ef()&&(e=vA(a.audioTrack).u,e===a.u.u[e.info.id]&&(a.ba(),e=a.mediaSource,PB(e)&&(e.mediaSource?e.mediaSource.endOfStream():e.Yd.webkitSourceEndOfStream(e.Yd.EOS_NO_ERROR)),bB(a.schedule)));e=a.policy.VI;f=a.policy.JC;d||!(0<e||f)||!PB(a.mediaSource)||FA(a.videoTrack)||FA(a.audioTrack)||(b.ys(a.currentTime,f,e),c.ys(a.currentTime,f,e));if(c=d)c=a.mediaSource,c=!(c.u?c.u.supports(0):TB());c&&g.kn(a.S)}}};
qwa=function(a){if(XA(a.videoTrack))return a.ba(),!0;var b=a.C;if(1===b.B||2===b.B||3===b.B)return!0;if(a.policy.Pa)return!1;if(b=a.D.C){b=a.J;var c=a.videoTrack,d=a.audioTrack;if(0==c.D.length&&0==d.D.length)b=!0;else{var e=0,f=az(c.C).concat(az(d.C));f=g.q(f);for(var h=f.next();!h.done;h=f.next())e+=h.value.ob;c=c.u.info.yb+d.u.info.yb;e/=c;b=10<e?!0:10>c*(10-e)/kB(b)}(b=!b)||(b=a.videoTrack,b=0<b.D.length&&1==b.C.B.length&&Ry(b.C).info.S<b.la)}if(b)return!0;if(!a.X||!a.policy.Ma||10>a.currentTime||
360<a.videoTrack.u.info.Na().Cc)return!1;b=TA(a.videoTrack,a.currentTime,a.policy.Ma)||TA(a.audioTrack,a.currentTime,a.policy.Ma);return(0<a.videoTrack.D.length||0<a.audioTrack.D.length||bZ(a,a.videoTrack,a.audioTrack)||bZ(a,a.audioTrack,a.videoTrack))&&b};
rwa=function(a,b,c){if(c.Ef())return!0;if(!c.rx())return!1;var d=Ry(b.C),e;if(!(e=!d||6===d.info.type)&&(e=a.C)){e=a.C;var f;if(f=0!=e.B&&b===e.da)e=OA(e.S),f=d.info.B>(e?e.B:-1);e=!!f}if(e)return!1;e=d.info;f=vA(b);!f||f.D||Uu(f,e)||c.abort();!c.rq()||MB()?c.cB(e.u.info.containerType,e.u.info.mimeType):e.u.info.containerType!==c.rq()&&a.bd("ctu","ct."+MB()+";prev_c."+c.rq()+";curr_c."+e.u.info.containerType);f=e.u.K;a.policy.Pt&&f&&(e=0+f.duration,f=-f.u,0===c.Qt()&&e===c.gy()||c.uA(0,e),f!==c.wc()&&
(c.ip(f),bz&&gz(a.audioTrack.C,c.sy())));if(a.u.C&&0===d.info.C&&(g.jw(d.info.u.info)||a.policy.sE)){if(null==c.rm()){e=vA(b);if(!(f=!e||e.u!==d.info.u)){b:if(e=e.X,f=d.info.X,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.Ab(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.rm(),f=d.info.u.u,e=e!==f&&!g.Ab(e,f);e&&a.bd("initchg","it."+d.info.u.info.id+".ty."+d.info.type+".seg."+d.info.B);a.policy.qb&&!e&&(g.jw(d.info.u.info)?(xv(gw(d),1836019574),xv(gw(d),1718909296)):(e=new Av(gw(d)),
Uv(e),Ev(e,524531317,!0),d.u=d.u.split(e.start+e.u).hn),d.C=!1)}a.policy.zn&&d.C&&(d.C=!1);e=a.F&&!!a.F.F&&b.u.info.audio;f=a.u.isManifestless||d.C;if(!(a.u.C&&0!==d.info.C||f&&!e)&&eZ(a,c,d))return!0;if(e)return!1;e=a.currentTime+aZ(a,b,!1);if(!(e=d.info.K>e)){a:if(a.policy.Rf&&(!d.info.C||d.info.D)&&a.bd("sba",c.rb({as:Qu(d.info)})),e=d.C?d.info.u.u:null,f=bw(d.u),d.C&&(f=new Uint8Array(f.buffer,0,f.byteOffset+f.length)),e=swa(a,c,f,d.info,e),"s"===e)a.Ma=0,e=!0;else{a.policy.xt||(fZ(a,b),c.abort(),
LA(b));if("i"===e||"x"===e)twa(a,"checked",e,d.info);else{if("q"===e&&(d.info.isVideo()?(e=a.policy,e.J=Math.floor(.8*e.J),e.X=Math.floor(.8*e.X),e.F=Math.floor(.8*e.F)):(e=a.policy,e.K=Math.floor(.8*e.K),e.Xb=Math.floor(.8*e.Xb),e.F=Math.floor(.8*e.F)),!c.Ef()&&!a.mediaSource.isView&&c.ys(Math.min(a.currentTime,d.info.startTime),!0,5))){e=!1;break a}a.V("reattachrequired")}e=!1}e=!e}if(e)return!1;b.C.B.shift();AA(b,d);a.ba("Appended "+Qu(d.info)+", buffered: "+mA(c.xe()));return!0};
twa=function(a,b,c,d){var e="fmt.unplayable",f=!0;"x"===c||"m"===c?(e="fmt.unparseable",d.u.F=e,d.u.info.video&&!pE(a.B)&&oE(a.B,d.u)):"i"===c&&(15>a.Ma?(a.Ma++,e="html5.invalidstate",f=!1):e="fmt.unplayable");d=Xu(d);d.mrs=RB(a.mediaSource);d.origin=b;d.reason=c;ZY(a,f,e,d)};
uwa=function(a,b,c){var d=a.u,e=!1,f;for(f in d.u){var h=Ux(d.u[f].info.mimeType)||d.u[f].info.isVideo();if(c==h)if(h=d.u[f].index,!pB(h,b.kb))h.qz(b),e=!0;else if(d.Ha){e=b;var l=h.Eh(e.kb);l&&l.startTime!==e.startTime?(h.segments=[],h.qz(e),e=!0):e=!1;e&&d.V("clienttemp","restMflIndex","1",!1)}}dha(a.D,b,c,e);c&&(a=a.C,a.P.Za&&(c=a.u&&a.C&&a.u.kb==a.C.kb-1,c=a.u&&c&&"stop"!=a.u.ue.event&&"predictStart"!=a.u.ue.event,a.C&&a.C.kb<b.kb&&(c?pC(a,a.C):a.K=!0),a.C=b))};
eZ=function(a,b,c){c.info.u.Ae();var d=c.info.u.u;if(null==d||b.rm()===d)return!1;var e=d,f=b.Rt();if(a.policy.zn&&f&&b.isView()&&g.jw(c.info.u.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=mfa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.bd("fenc","1")}f=null;h=c.info.u.Pk(0);h.length&&(f=h[0].u[0]);a.policy.Gp&&b.abort();d=swa(a,b,e,f,d);if("s"!==d)return twa(a,"sepInit",d,c.info),!0;a.ba();return b.Ef()};
swa=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(11===f.code)return"i";if(12===f.code)return"x";if(22!==f.code&&0!==f.message.indexOf("Not enough storage"))return g.M(f),"u";c=mA(b.xe()).replace(/,/g,"_");d=g.rf(f.message);a.bd("quex","br."+c+";t."+(a.mediaSource?b===a.mediaSource.B?"v":"a":"u")+";e."+d);return"q"}return SB(a.mediaSource)?"m":"s"};
bwa=function(a,b){WA(b,"needkeyinfo",a.ZN,a);WA(b,"error",a.CP,a);WA(b,"avsyncissue",a.BP,a);WA(b,"placeholderinfo",function(c){a.u.isManifestless&&uwa(a,c,b===a.videoTrack)});
WA(b,"placeholderrollback",function(c){a.u.isManifestless&&nC(a.u,c.kb,b===a.videoTrack)});
WA(b,"segmentinfo",function(c){a.u.isManifestless&&uwa(a,c,b===a.videoTrack)});
WA(b,"localmediachange",a.DP.bind(a))};
dwa=function(a,b){b.subscribe("seekplayerrequired",function(c,d){a.P||a.V("seekplayerrequired",c,d)});
b.subscribe("ctmp",function(c,d){a.bd(c,d,!1)});
b.subscribe("error",function(c,d,e){ZY(a,c,d,e)});
b.subscribe("setcurrenttime",function(c){a.currentTime=c})};
aZ=function(a,b,c){if(a.isSuspended)return 1;var d=b.u.info.audio?a.policy.K:a.policy.J;!a.policy.la&&rE(a.B)&&(d=Math.max(d,b.u.info.audio?a.policy.Xb:a.policy.X));c&&(d+=a.policy.Lb);var e=rE(a.B)?b.B?b.B.u.info.yb:b.u.info.yb:b.yb;d/=e;0<a.policy.pg&&a.mediaSource&&PB(a.mediaSource)&&(b=b.u.info.video?a.mediaSource.B:a.mediaSource.u)&&!b.Ef()&&(b=b.xe(),e=nA(b,a.currentTime),0<=e&&(b=a.currentTime-b.start(e),d+=Math.max(0,Math.min(b-a.policy.pg,a.policy.nB))));0<a.policy.F&&(d=Math.min(d,a.policy.F));
a.policy.Jg&&c&&!rE(a.B)&&(c=a.B,c=nE(c,g.db(c.C))+nE(c,c.P.u[0]),c=a.policy.Jg*(c/jB(a.J)),c<d&&15>c&&a.bd("bwcapped","1",!0),c=Math.max(c,15),d=Math.min(d,c));return d};
hwa=function(a){if(!a.Me)return Infinity;var b=g.He(a.Me.Lk(),function(d){return"ad"===d.namespace});
b=g.q(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.currentTime)return c.start/1E3;return Infinity};
vwa=function(a,b){(new RY(b,"cms",null,function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];return a.V.apply(a,["error"].concat(g.ma(d)))})).send()};
wwa=function(a,b){if(a.mediaSource&&a.mediaSource.B){b-=!isNaN(a.timestampOffset)&&a.policy.jd?a.timestampOffset:0;a.currentTime!==b&&a.resume();if(a.D.C&&!SB(a.mediaSource)){var c=a.currentTime<=b&&b<a.currentTime+10,d=oA(a.mediaSource.B.xe(),a.currentTime+lwa);c&&d&&(a.D.C=!1)}a.D.C||(a.currentTime=b);g.kn(a.Pa)}};
xwa=function(a,b){var c=CA(a.videoTrack).find(function(d){return d.startTime>=b&&cwa(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
cwa=function(a,b,c){if(!(a.videoTrack.u.Ae()&&a.audioTrack.u.Ae()&&a.mediaSource&&a.mediaSource.B&&a.mediaSource.u))return!1;if(c&&a.u.isManifestless&&(-1===a.videoTrack.J||-1===a.audioTrack.J))return!0;var d=EA(a.videoTrack,b,c);if(isNaN(d))return!1;a=EA(a.audioTrack,a.policy.ga?b:d,c);return isNaN(a)?!1:!0};
UY=function(a,b,c){b.u!==c&&(a.ba(),b.u=c)};
dZ=function(a,b,c,d){c.Ae()||c.C||!Zw(c.B)||(d=c.Pk(d?xga(a.J,c.info):0),g.Cb(d,function(e){if("f"!==e.u[0].u.info.Bb){var f=cZ(this,e);bx(e)&&wA(b,f)}},a),c.C=!0)};
ZY=function(a,b,c,d){a.ma()||(d=new IB(c,b,d),g.Ra(a),g.JB(d.details),a.V("error",d),"html5.invalidstate"!==c&&"fmt.unplayable"!==d.errorCode&&"fmt.unparseable"!==c&&b&&a.dispose())};
XY=function(a){fZ(a,a.audioTrack);fZ(a,a.videoTrack);LA(a.audioTrack);LA(a.videoTrack)};
fZ=function(a,b){if(20<b.fa&&!b.X){var c=b.ra;a.bd("requestLoopDispose","segNum."+c,!0);g.Go(new g.nr("b172965563","requestLoopDispose.segNum."+c));b.X=!0}};
ywa=function(a,b){var c=b.info.video?a.videoTrack:a.audioTrack;null!=c&&dZ(a,c,b,!1)};
awa=function(a,b,c){b/=c;isNaN(a.timestampOffset)&&(a.timestampOffset=b-Math.min(b,a.policy.Ig),a.C.J=a.timestampOffset,a.V("timestamp",a.timestampOffset),a.u.isManifestless&&(a.u.B=a.timestampOffset));return(b-a.timestampOffset)*c};
zwa=function(a){this.pe=a};
gZ=function(){g.O.apply(this,arguments)};
hZ=function(a,b,c,d){gZ.call(this);var e=this;this.C=-1;this.u={};this.D=new g.F(this.F,0,this);g.C(this,this.D);this.B=new g.F(function(){e.ma()||(e.D.start(Math.random()*c),e.B.start(b))},a,this);
g.C(this,this.B);d.subscribe("fairplay_next_need_key_info",this.J,this)};
Awa=function(a){a=a.subarray(4);a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2);return String.fromCharCode.apply(null,a)};
Bwa=function(a){var b=a.interval,c=a.Rr,d=a.JI,e=a.drmSessionId;this.url=a.url;this.interval=b;this.Rr=c;this.JI=d;this.drmSessionId=e};
Cwa=function(a,b){this.statusCode=a;this.message=b;this.u=this.heartbeatParams=this.errorMessage=null;this.B={};this.nextFairplayKeyId=null};
Ewa=function(a){var b=av(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=kv(b.slice(d+2));if(null==b)return null;a=new Cwa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.ML(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new Bwa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Rr:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.u=c.split(",");if(c=b["Key-Ids"])a.B=Dwa(c);a.nextFairplayKeyId=b["Next-Key-Id"];return a};
Dwa=function(a){if(!a)return{};a=a.split(";");var b={};g.Cb(a,function(c){c=c.split(",");2===c.length&&(b[c[1]]=c[0])});
return b};
iZ=function(a,b){g.B.call(this);this.message=a;this.requestNumber=b;this.onError=this.onSuccess=null;this.u=new g.Gn(5E3,2E4,.2)};
Fwa=function(a,b,c){a.onSuccess=b;a.onError=c};
Hwa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.ma())if(a.ba(),0!==e.status&&e.response)if(yG("drm_net_r"),e=new Uint8Array(e.response),e=Ewa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else Gwa(a,e)},
onError:function(e){Gwa(a,e)}};
c&&(b=Od(b,"access_token",c));g.sq(b,d);a.ba()};
Gwa=function(a,b){if(!a.ma())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
Jwa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.ma()){a.ba();yG("drm_net_r");var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=g.af(f.license)}catch(x){}if(0!==h||l){l=new Cwa(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.q(f.authorizedFormats),r=p.next();!r.done;r=p.next())if(r=r.value,r.trackType&&r.keyId){var t=Iwa[r.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");h[t]||(m.push(t),h[t]=!0);var w=null;
try{w=g.af(r.keyId)}catch(x){}w&&(n[g.qf(w,4)]=t)}}l.u=m;l.B=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.ma())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")},
Cg:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.aC="Bearer "+d);g.Np(c,"player/get_drm_license",b,e)};
kZ=function(a,b,c,d){g.O.call(this);this.videoData=a;this.W=b;this.ga=c;this.sessionId=d;this.D={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.J=this.S=!1;this.C=null;this.da=[];this.F=[];this.X=!1;this.u={};this.Y=NaN;this.status="";this.K=!1;this.B=a.hd;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.W.deviceParams);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.mg&&(a.vvt=this.videoData.mg,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.W.lf&&(a.authuser=this.W.lf);this.W.pageId&&(a.pageid=this.W.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());if(this.videoData.aa("html5_send_device_type_in_drm_license_request")){var e;(e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Tc))?e[1]:"")&&(a.cdt=e)}this.D=a;this.D.session_id=d;this.P=!0;"widevine"===this.B.flavor&&(this.D.hdr="1");"playready"===this.B.flavor&&(b=Number(g.yB(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.D.mfpe=""+
b),this.P=!1,this.videoData.aa("html5_playready_enable_non_persist_license")&&(this.D.pst="0"));b=JC(this.B)?Awa(c.initData).replace("skd://","https://"):this.B.C;this.videoData.aa("enable_shadow_yttv_channels")&&(b=new g.Pm(b),document.location.origin&&document.location.origin.includes("green")?g.Rm(b,"web-green-qa.youtube.com"):g.Rm(b,"www.youtube.com"),b=b.toString());this.baseUrl=b;this.fairplayKeyId=Md(this.baseUrl,"ek")||"";if(b=Md(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.fa=
this.videoData.aa("html5_use_drm_retry");this.da=c.B;this.ba();jZ(this,"sessioninit."+c.cryptoPeriodIndex);this.status="in"};
Nwa=function(a,b){jZ(a,"createkeysession");a.status="gr";yG("drm_gk_s");a.url=Kwa(a);try{a.C=b.createSession(a.ga,function(d){jZ(a,d)})}catch(d){var c="t.g";
d instanceof DOMException&&(c+=";c."+d.code);a.V("licenseerror","drm.unavailable",!0,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.C&&(Lwa(a.C,function(d,e){Mwa(a,d,e)},function(d){a.ma()||(a.ba(),a.error("drm.keyerror",!0,d))},function(){a.ma()||(a.ba(),jZ(a,"onkyadd"),a.J||(a.V("sessionready"),a.J=!0))},function(d){a.zl(d)}),g.C(a,a.C))};
Kwa=function(a){var b=a.baseUrl;wfa(b)||a.error("drm.net",!0,"t.x");if(!Md(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.W.experiments.experiments[e]});
0<c.length&&(a.D.fexp=c.join())}c=g.q(Object.keys(a.D));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Od(b,d,a.D[d]);return b};
Owa=function(a){var b={};Object.assign(b,a.D);return b};
Pwa=function(a,b){var c=new Bwa({JI:g.qf(b),drmSessionId:a.sessionId});a.V("heartbeatparams",c)};
Mwa=function(a,b,c){if(!a.ma())if(b){a.ba();jZ(a,"onkmtyp."+c);a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":Qwa(a,b);return;default:a.V("ctmp","message_type","t."+c+";l."+b.byteLength)}a.S||(yG("drm_gk_f"),a.S=!0,a.V("newsession",a));if(a.videoData.aa("use_innertube_heartbeats_for_widevine")&&a.videoData.useInnertubeDrmService()&&a.K&&"widevine"===a.B.flavor)a.K&&"license-request"!==c&&jZ(a,"wvrenew.mt."+c,!0),
Pwa(a,b);else{if(FC(a.B)&&(b=Rwa(b),!b))return;JC(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=$u(g.qf(b)));b=new iZ(b,++a.requestNumber);Fwa(b,function(d,e){Swa(a,d,e)},function(d,e,f,h){if(!a.ma()){var l=!1,m=3;
void 0!==h&&400<=h&&500>h&&(m=g.P(a.W.experiments,"html5_license_server_error_retry_limit")||3);(h=d.u.B>=m)||(h=a.fa&&36E4<(0,g.N)()-a.Y);h&&(l=!0,e="drm.net.retryexhausted");a.ba();jZ(a,"onlcsrqerr."+e+";"+f);a.error(e,l,f);a.shouldRetry(l,d)&&Twa(a,d)}});
g.C(a,b);Uwa(a,b)}}else a.error("drm.unavailable",!1,"km.empty")};
Qwa=function(a,b){a.ba();jZ(a,"sdpvrq");if("widevine"!==a.B.flavor)a.error("drm.provision",!0,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.W.deviceParams);c=g.Id("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);var d={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:av(b)}),responseType:"arraybuffer"};
g.ct(c,d,3,500).then(Fo(function(e){if(!a.ma()){e=new Uint8Array(e.response);var f=av(e);try{var h=JSON.parse(f)}catch(l){}h&&h.signedResponse?(a.V("ctmp","drminfo","provisioning"),a.C&&a.C.update(e)):(h=h&&h.error&&h.error.message,e="e.parse",h&&(e+=";m."+h),a.error("drm.provision",!0,e))}}),Fo(function(e){a.ma()||a.error("drm.provision",!0,"e."+e.errorCode+";c."+(e.xhr&&e.xhr.status))}))}};
lZ=function(a){var b;if(b=a.P&&null!=a.C)a=a.C,b=!(!a.u||!a.u.keyStatuses);return b};
Uwa=function(a,b){a.status="km";yG("drm_net_s");if(a.videoData.useInnertubeDrmService()){var c=new g.Hs(a.W.ra),d=g.Kp(c.Zf||g.Lp());d.drmSystem=Vwa[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.qf(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);if(!d.context||!d.context.client){a.ba();a.error("drm.net",!0,"t.r;ic.0");return}var e=a.W.deviceParams;
e&&(d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver);d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.mg&&(d.context.user.credentialTransferTokens=[{token:a.videoData.mg,scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Rh&&
(d.context.user.kidsParent={oauthToken:a.videoData.Rh});if(JC(a.B)){e=a.fairplayKeyId;for(var f=[],h=0;h<e.length;h+=2)f.push(parseInt(e.substring(h,h+2),16));d.fairplayKeyId=g.qf(f)}Jwa(b,d,c,a.videoData.nf())}else Hwa(b,a.url,a.videoData.oauthToken);a.status="rs"};
Swa=function(a,b,c){if(!a.ma()){if(a.requestNumber!==c&&"widevine"===a.B.flavor&&((a.W.aa("html5_drm_ignore_out_of_order_responses")||a.W.aa("html5_drm_ignore_out_of_order_responses_cfl"))&&jZ(a,"drmOOO."+a.requestNumber+"."+c,!0),a.W.aa("html5_drm_ignore_out_of_order_responses")))return;jZ(a,"onlcsrsp");a.status="rr";0!==b.statusCode?a.error("drm.auth",!0,"t.f;c."+b.statusCode,b.errorMessage||void 0):(yG("drm_kr_s"),a.videoData.aa("outertube_streaming_data_always_use_staging_license_service")&&b.heartbeatParams&&
b.heartbeatParams.url&&(c=a.B.C.match(/(.*)youtube.com/g))&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url),b.heartbeatParams&&a.V("newlicense",b.heartbeatParams),b.u&&(a.F=b.u,a.K=!0,a.X=ji(a.F,function(d){return d.includes("HDR")})),b.B&&(a.u=Gb(b.B,function(d){return{type:d,
status:"unknown"}})),HC(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=g.af(av(b.message)):IC(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=$u(g.qf(b.message))),a.C&&(a.ba(),jZ(a,"updtks"),a.status="ku",a.C.update(b.message).then(function(){yG("drm_kr_f");
if(!lZ(a))if(jZ(a,"ksApiUnsup"),GC(a.B)){var d=Wwa(a.F);480<g.Jx[d]&&a.V("hdentitled",a)}else a.V("keystatuseschange",a)},function(d){d="msuf.req."+a.requestNumber+";msg."+g.rf(d.message);
a.error("drm.keyerror",!0,d)})),a.J&&(a.Y=(0,g.N)()),JC(a.B)&&a.V("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId))}};
Twa=function(a,b){var c=b.u.getValue();c=new g.F(function(){Uwa(a,b)},c);
g.C(a,c);c.start();g.Hn(b.u);a.ba();jZ(a,"rtyrq")};
Xwa=function(a,b){if(!lZ(a)&&GC(a.B)&&!b)return"large";var c=[],d=!0;if(lZ(a))for(var e=g.q(Object.keys(a.u)),f=e.next();!f.done;f=e.next())f=f.value,"usable"===a.u[f].status&&c.push(a.u[f].type),"unknown"!==a.u[f].status&&(d=!1);if(!lZ(a)||d)c=a.F;return Wwa(c)};
Ywa=function(a,b){for(var c=[],d=g.q(Object.keys(a.u)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.u[e].type+"_"+a.u[e].status);return c.join(b)};
Zwa=function(a){var b=a.status+".";return lZ(a)?b+Ywa(a,"."):b+a.F.join(".")};
$wa=function(a,b,c){a:{switch(b){case "highres":case "hd2880":b="UHD2";break;case "hd2160":case "hd1440":b="UHD1";break;case "hd1080":case "hd720":b="HD";break;case "large":case "medium":case "small":case "light":case "tiny":b="SD";break;default:c="";break a}c&&(b+="HDR");c=b}for(var d in a.u)if("output-restricted"===a.u[d].status&&(b=a.u[d].type,""===c||"AUDIO"===b||c===b))return!0;return!1};
axa=function(a,b){for(var c in a.u)if("usable"===a.u[c].status&&a.u[c].type===b)return!0;return!1};
jZ=function(a,b,c){c=void 0===c?!1:c;a.ba();(c||KH(a.videoData)||"playready"===a.B.flavor&&a.videoData.useInnertubeDrmService())&&a.V("ctmp","drmlog",b)};
bxa=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};
Wwa=function(a){return g.jb(a,"UHD2")?"highres":g.jb(a,"UHD1")?"hd2160":g.jb(a,"HD")?"hd1080":g.jb(a,"HD720")?"hd720":"large"};
Rwa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=(new DOMParser).parseFromString(b,"text/xml");return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array(mZ(Taa(a.childNodes[0].nodeValue)).buffer):null:null};
cxa=function(a,b,c,d,e){var f;"playready"===e?f=Rwa(a):"fairplay"===e&&(f=$u(g.qf(a)));f&&(a={format:"RAW",method:"POST",postBody:f,responseType:"arraybuffer",withCredentials:!0,timeout:3E4},c=Laa(c,d),g.ct(c,a,3,500).then(function(h){h=new Uint8Array(h.response);(h=Ewa(h))&&h.message&&b.update(h.message)}))};
nZ=function(a,b,c,d,e){g.B.call(this);this.element=a;this.P=b;this.initData=c;this.u=d;this.B=e;this.sessionId="";this.K=this.J=this.C=this.F=null;this.D=new Bt(this);g.C(this,this.D);dxa(this)};
dxa=function(a){a.u?(a.D.N(a.u,"message",a.bM),a.D.N(a.u,"keystatuseschange",a.zl),a.u.closed&&a.u.closed.then(Fo(function(){a.ma()||Pq("xboxone")&&a.C&&a.C("closed")}),null)):a.B&&(Ct(a.D,a.B,["mskeymessage",
"webkitkeymessage"],a.kG),Ct(a.D,a.B,["mskeyerror","webkitkeyerror"],a.jG),Ct(a.D,a.B,["mskeyadded","webkitkeyadded"],a.iG))};
Lwa=function(a,b,c,d,e){a.F=b;a.C=c;a.J=d;a.K=e};
exa=function(a,b,c){g.M(c);a.C&&(c instanceof DOMException&&(b+=";n.$(exc.name);m.$(exc.message)"),a.C(b))};
oZ=function(a,b){g.B.call(this);this.element=a;this.u=b;this.J={};this.D=null;this.F=new Bt(this);this.C=this.B=null;g.C(this,this.F)};
pZ=function(a){if(a.u.keySystemAccess)return a.u.keySystemAccess.createMediaKeys().then(function(b){a.ma()||(a.B=b,a.element.setMediaKeys(b))});
EC(a.u)?a.C=new (DC())(a.u.u):HC(a.u)?(a.C=new (DC())(a.u.u),a.element.webkitSetMediaKeys(a.C)):fxa(a);return null};
fxa=function(a){Ct(a.F,a.element,["keymessage","webkitkeymessage"],a.eM);Ct(a.F,a.element,["keyerror","webkitkeyerror"],a.dM);Ct(a.F,a.element,["keyadded","webkitkeyadded"],a.cM)};
gxa=function(a){return"widevine"===a.u.flavor&&a.u.Ap&&a.B.setServerCertificate?a.B.setServerCertificate(a.u.Ap):null};
ixa=function(a,b){var c=hxa(b,a.u.Dh);c=a.C.createSession("video/mp4",c);return new nZ(null,null,null,null,c)};
jxa=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);c=a.C.createSession("video/mp4",b,c);return new nZ(null,null,null,null,c)};
qZ=function(a,b){var c=a.J[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.J[b.sessionId]=c);return c};
hxa=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};
rZ=function(a,b){g.B.call(this);this.u=g.Ce("video");this.B=null;this.D=[];this.F=new Bt(this);this.C=new CC("fairplay","com.youtube.fairplay","",b);this.C.Dh=a;g.C(this,this.F);this.init()};
sZ=function(a,b,c){gZ.call(this);var d=this;this.D=a;this.C=b;this.u=[];this.B=new g.F(function(){var e=d.u.shift().info;a:{var f=e.cryptoPeriodIndex;if(isNaN(f)&&0<d.C.values.length)f=!0;else{for(var h=g.q(d.C.values),l=h.next();!l.done;l=h.next())if(l.value.cryptoPeriodIndex===f){f=!0;break a}f=!1}}f||d.V("rotated_need_key_info_ready",e);0<d.u.length&&(e=d.u[0].time-(0,g.N)(),d.B.start(Math.max(0,e)))},0);
g.C(this,this.B);c.subscribe("widevine_set_need_key_info",this.F,this)};
tZ=function(){this.keys=[];this.values=[]};
vZ=function(a,b,c){g.O.call(this);this.element=a;this.videoData=b;this.W=c;this.u=this.videoData.hd;this.drmSessionId=this.videoData.drmSessionId||g.Rt();this.B=new tZ;this.J=new tZ;this.P=new tZ;this.C=[];this.Ma=2;this.da=new Bt(this);this.Ha=this.la=!1;this.heartbeatParams=null;this.Y=this.ga=this.fa=this.S=!1;this.F=null;this.na=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||DC()||LC(c.experiments);c=g.Q(this.W.experiments,"html5_drm_initial_constraint_from_config")?this.videoData.gq:g.Q(this.W.experiments,
"html5_drm_start_from_null_constraint");this.K="fairplay"===this.u.flavor||c?iE:kxa;this.D=new oZ(this.element,this.u);g.C(this,this.D);EC(this.u)&&(this.X=new oZ(this.element,this.u),g.C(this,this.X));g.C(this,this.da);c=this.element;this.u.keySystemAccess?this.da.N(c,"encrypted",this.fM):Ct(this.da,c,EC(this.u)?["msneedkey"]:["needkey","webkitneedkey"],this.MP);lxa(this);a:switch(c=this.u,a=this.W.experiments,b=this.B,c.flavor){case "fairplay":19.2999<Oq()?(a=c.Dt,c=c.Ct,c>=a&&(c=.75*a),b=.5*(a-
c),c=new hZ(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new sZ(g.Q(a,"disable_license_delay"),b,this);break a;default:c=null}if(this.F=c)g.C(this,this.F),this.F.subscribe("rotated_need_key_info_ready",this.YB,this);this.ba("Created, key system "+this.u.u+", final EME "+LC(this.W.experiments));uZ(this,"cks"+this.u.Oe());c=this.u;"com.youtube.widevine.forcehdcp"===c.u&&c.D&&(this.Pa=new rZ(this.videoData.Dh,this.W.experiments),g.C(this,this.Pa))};
lxa=function(a){var b=pZ(a.D);b?b.then(Fo(function(){mxa(a)}),Fo(function(c){if(!a.ma()){a.ba();
g.M(c);var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.V("licenseerror","drm.unavailable",!0,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.ba(),uZ(a,"mdkrdy"),a.S=!0);
a.X&&(b=pZ(a.X))};
nxa=function(a,b,c){a.Ha=!0;c=new Ly(b,c);a.W.aa("html5_eme_loader_sync")&&(a.J.get(b)||a.J.set(b,c));a.W.aa("html5_process_all_encrypted_events")?wZ(a,c):a.W.aa("html5_eme_loader_sync")?wZ(a,c):0!==a.C.length&&a.videoData.La&&a.videoData.La.u?xZ(a):wZ(a,c)};
oxa=function(a,b){uZ(a,"onneedkeyinfo");g.Q(a.W.experiments,"html5_eme_loader_sync")&&(a.P.get(b.initData)||a.P.set(b.initData,b));wZ(a,b)};
qxa=function(a,b){if(EC(a.u)&&!a.fa){var c=Zfa(b);if(0!==c.length){var d=new Ly(c);a.fa=!0;navigator.requestMediaKeySystemAccess("com.microsoft.playready",[{initDataTypes:["keyids","cenc"],audioCapabilities:[{contentType:'audio/mp4; codecs="mp4a"'}],videoCapabilities:[{contentType:'video/mp4; codecs="avc1"'}]}]).then(function(e){e.createMediaKeys().then(function(f){pxa(a,f,d)})},null)}}};
pxa=function(a,b,c){var d=b.createSession(),e=a.B.values[0],f=Owa(e);d.addEventListener("message",function(h){h=new Uint8Array(h.message);cxa(h,d,a.u.C,f,"playready")});
d.addEventListener("keystatuseschange",function(){"usable"in d.keyStatuses&&(a.ga=!0,rxa(a,Xwa(e,a.ga)))});
d.generateRequest("cenc",c.initData)};
wZ=function(a,b){if(!a.ma()){uZ(a,"onInitData");if(g.Q(a.W.experiments,"html5_eme_loader_sync")&&a.videoData.La&&a.videoData.La.u){var c=a.P.get(b.initData),d=a.J.get(b.initData);if(!c||!d)return;b=c;c=b.initData;a.J.remove(c);a.P.remove(c)}a.ba();uZ(a,"initd."+b.initData.length+";ct."+b.contentType);"widevine"===a.u.flavor?a.la&&!a.videoData.isLivePlayback?a.W.aa("html5_process_all_encrypted_events")&&xZ(a):g.Q(a.W.experiments,"vp9_drm_live")&&a.videoData.isLivePlayback&&b.Wd||(a.la=!0,c=b.cryptoPeriodIndex,
d=b.u,My(b),b.Wd||(d&&b.u!==d?a.V("ctmp","cpsmm","emsg."+d+";pssh."+b.u):c&&b.cryptoPeriodIndex!==c&&a.V("ctmp","cpimm","emsg."+c+";pssh."+b.cryptoPeriodIndex)),a.V("widevine_set_need_key_info",b)):a.YB(b)}};
mxa=function(a){if(!a.ma())if(g.Q(a.W.experiments,"html5_drm_set_server_cert")&&!g.LD(a.W)){var b=gxa(a.D);b?b.then(Fo(function(c){KH(a.videoData)&&a.V("ctmp","ssc",c)}),Fo(function(c){a.V("ctmp","ssce","n."+c.name+";m."+c.message)})).then(Fo(function(){yZ(a)})):yZ(a)}else yZ(a)};
yZ=function(a){a.ma()||(a.S=!0,a.ba(),uZ(a,"onmdkrdy"),xZ(a))};
xZ=function(a){if(a.Ha&&a.S&&!a.Y){for(;a.C.length;){var b=a.C[0];if(a.B.get(b.initData))if("fairplay"===a.u.flavor)a.B.remove(b.initData);else{a.C.shift();continue}My(b);break}a.C.length&&a.createSession(a.C[0])}};
rxa=function(a,b){var c=UC("auto",b,!1,"l");if(g.Q(a.W.experiments,"html5_drm_initial_constraint_from_config")?a.videoData.gq:g.Q(a.W.experiments,"html5_drm_start_from_null_constraint")){if(TC(a.K,c))return}else if(XC(a.K,b))return;a.K=c;a.V("qualitychange");a.ba();uZ(a,"updtlq"+b)};
uZ=function(a,b,c){c=void 0===c?!1:c;a.ma()||(a.ba(),(KH(a.videoData)||c)&&a.V("ctmp","drmlog",b))};
sxa=function(a){var b;if(b=g.Sq()){var c;b=!(null===(c=a.D.B)||void 0===c||!c.u)}b&&(b=a.D,b=b.B&&b.B.u?b.B.u():null,uZ(a,"mtr."+g.qf(b,3),!0))};
zZ=function(a,b,c){g.O.call(this);this.videoData=a;this.Ra=b;this.playerVisibility=c;this.Pq=0;this.ea=this.Aa=null;this.F=this.B=this.u=!1;this.D=this.C=0};
CZ=function(a,b,c){var d=!1,e=a.Pq+3E4<(0,g.N)()||!1,f;if(f=a.videoData.aa("html5_pause_on_nonforeground_platform_errors")&&!e)f=a.playerVisibility,f=!!(f.u||f.isInline()||f.isBackground()||f.pictureInPicture||f.B);f&&(c.nonfg="paused",e=!0,a.V("pausevideo"));f=a.videoData.Oa;if(!e&&((null===f||void 0===f?0:Sx(f))||(null===f||void 0===f?0:Qx(f))))if(a.videoData.aa("html5_disable_codec_on_platform_errors"))a.Ra.D.P.add(f.Bb),d=e=!0,c.cfalls=f.Bb;else{var h;if(h=a.videoData.aa("html5_disable_codec_for_playback_on_error")&&
a.Aa){h=a.Aa.B;var l=f.Bb;h.Ba.has(l)?h=!1:(h.Ba.add(l),h.da=-1,jE(h,h.F),h=!0)}h&&(d=e=!0,c.cfallp=f.Bb)}if(!e)return txa(a,c);a.Pq=(0,g.N)();e=a.videoData;e=e.jh?e.jh.hD()<Date.now()/1E3+1800:!1;c.e=b;e&&(c.staleprog="1");AZ(a,"qoe.restart",c);if(e&&uxa(a))return BZ(a),!0;Pq("philips")&&vxa(a);!a.videoData.aa("html5_disable_codec_on_platform_errors")&&f&&Sx(f)?(a.Ra.D.disableAv1(),d=!0):a.Aa?(b=a.Aa,c=(c=vA(b.videoTrack)||b.videoTrack.B)?c.u:b.videoTrack.u,c.S+=1,oE(b.B,c)):a.videoData.jh&&a.videoData.jh.rA();
a.V("newelementrequired",d);return!0};
txa=function(a,b){if(a.videoData.Tg)return!1;a.Ra.Ba+=1;if(10>=a.Ra.Ba)return!1;b.exiled=""+a.Ra.Ba;AZ(a,"qoe.start15s",b);a.V("playbackstalledatstart");return!0};
vxa=function(a){if("GAME_CONSOLE"!==a.Ra.deviceParams.cplatform)try{window.close()}catch(b){}};
uxa=function(a){return a.u||"yt"!==a.Ra.Y?!1:a.videoData.Tg?25>a.videoData.oj:!a.videoData.oj};
BZ=function(a){a.u||(a.u=!0,a.V("signatureexpiredreloadrequired"))};
wxa=function(a,b){if(a.ea&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.ea.Vh();b.details.merr=c?c.toString():"0";b.details.msg=a.ea.yo()}};
xxa=function(a){return"net.retryexhausted"===a.errorCode||"net.badstatus"===a.errorCode&&!!a.details.fmt_unav};
zxa=function(a,b,c){if("403"===b.details.rc){var d=b.errorCode;d="net.badstatus"===d||"manifest.net.retryexhausted"===d}else d=!1;if(!d)return!1;b.details.sts="18634";if(uxa(a))return c?(a.B=!0,a.V("releaseloader")):(b.u&&(b.details.e=b.errorCode,b.errorCode="qoe.restart",b.u=!1),AZ(a,b.errorCode,b.details),BZ(a)),!0;6048E5<(0,g.N)()-a.Ra.Ta&&yxa(a,"signature");return!1};
yxa=function(a,b){try{window.location.reload();AZ(a,"qoe.restart",{detail:"pr."+b});return}catch(c){}a.Ra.aa("tvhtml5_retire_old_players")&&g.LD(a.Ra)&&vxa(a)};
Axa=function(a,b){a.Ra.D.B=!1;AZ(a,"qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});a.V("formatupdaterequested")};
DZ=function(a,b,c,d){a.V("clienttemp",b,c,(void 0===d?{FA:!1}:d).FA)};
AZ=function(a,b,c){a.V("qoeerror",b,c)};
Bxa=function(a,b,c,d){this.videoData=a;this.u=b;this.reason=c;this.B=d};
Cxa=function(a){navigator.mediaCapabilities?EZ(a.videoInfos).then(function(){return a},function(){return a}):ft(a)};
EZ=function(a){var b=navigator.mediaCapabilities;if(!b)return ft(a);var c=a.map(function(d){return b&&b.decodingInfo({type:"media-source",video:d.video?{contentType:d.mimeType,width:d.video.width||640,height:d.video.height||360,bitrate:8*d.yb||1E6,framerate:d.video.fps||30}:null})});
return rda(c).then(function(d){for(var e=0;e<d.length;e++)a[e].D=d[e].smooth,a[e].B=d[e].powerEfficient;return a},function(){return a})};
FZ=function(a,b,c){this.W=a;this.lp=b;this.u=c;this.S=this.J=this.K=this.C=this.B=this.F=this.P=this.D=0;this.playbackRate=1};
Exa=function(a,b,c){!g.Q(a.W.experiments,"html5_tv_ignore_capable_constraint")&&g.LD(a.W)&&(c=c.compose(Dxa(a,b)));return c};
Fxa=function(a){return a.aa("html5_exponential_memory_for_sticky")?.5>kD(a.W.Ge,"sticky-lifetime")?"auto":GZ():GZ()};
Gxa=function(a,b){var c=new SC(0,0,!1,"o");if(a.aa("html5_varispeed_playback_rate")&&1<a.playbackRate){c=a.W.D;for(var d=a.playbackRate,e=480,f=g.q(b.La.videoInfos),h=f.next();!h.done;h=f.next())if(h=h.value,OC(c,h,d)){e=h.video.Cc;break}c=new SC(0,e,!0,"o")}else 1<a.playbackRate&&(c=new SC(0,480,!0,"o"));return c};
Dxa=function(a,b){if(g.LD(a.W)&&xC(a.W.D,yC.HEIGHT))var c=b.La.videoInfos[0].Na().Cc;else{c=!!b.La.u;var d;BD(a.W)&&(d=window.screen&&window.screen.width?new g.fe(window.screen.width,window.screen.height):null);d||(d=a.W.Fn?a.W.Fn.clone():a.lp.Cf());(DD||uE||c)&&d.scale(g.VD());c=d;IH(b.videoData)||JI(b.videoData);var e=b.La.videoInfos;if(e.length){d=.85;var f=e[0].Na();4!==f.projectionType&&2!==f.projectionType&&3!==f.projectionType||zD||(d=.45);f=e[0];var h=f.Na();e=g.q(e);for(var l=e.next();!l.done&&
!(f=h=l.value,h=h.Na(),null===c||h.width*d<c.width&&h.height*d<c.height);l=e.next());c="93"===f.dc()?Ix(h.width,h.height):h.quality;c=UC("auto",c,!1,"r")}else c=iE;c=c.u}c&&(c=Math.max(c,360));return new SC(0,c,!1,"r")};
Hxa=function(a,b){return Ue(a,function d(){var e;return xa(d,function(f){if(!b.La.u)return f["return"](void 0);e=b.La.videoInfos;return f["return"](EZ(e))})})};
Ixa=function(a,b){return Ue(a,function d(){var e,f,h=this;return xa(d,function(l){if(1==l.u)return(e=b.La.videoInfos.find(function(m){return Sx(m)}))?null!==e.B?(l.u=2,l=void 0):l=sa(l,EZ([e]),2):l=l["return"](!1),l;
f=e.B||!1;h.u.Ka("mcrsp","itag."+e.id+";smooth."+ +e.D+";efficient."+ +f);return l["return"](f)})})};
Kxa=function(a,b){if(!b.videoData.Oa||a.aa("html5_disable_performance_downgrade"))return!1;6E4<g.A()-a.P&&(a.D=0);a.D++;a.P=g.A();if(4!==a.D)return!1;Jxa(a,b.videoData.Oa);return!0};
Mxa=function(a,b,c,d){if(!b||!c||!b.videoData.Oa)return!1;var e=g.P(a.W.experiments,"html5_df_downgrade_thresh"),f=a.aa("html5_log_media_perf_info"),h=g.P(a.W.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.N)()-a.F?0:f||0<e||0<h))return!1;a.F=(0,g.N)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.J,m=c.totalVideoFrames-a.S;a.J=c.droppedVideoFrames;a.S=c.totalVideoFrames;f&&b.videoData.nk&&a.u.Ka("ddf","dr."+c.droppedVideoFrames+";de."+c.totalVideoFrames);
if(d)return a.B=0,a.C=0,!1;d=60<m?l/m:0;0<d&&(a.K=d);a.C=0<h&&60*d>h?a.C+1:0;if(!e||g.LD(a.W))return!1;a.B=d>e?a.B+1:0;if(3!==a.B)return!1;Jxa(a,b.videoData.Oa);a.u.Ka("dfd",Lxa());return!0};
Nxa=function(a,b){return 0>=g.P(a.W.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.Na()&&32<b.Na().fps)?!1:3<=a.C?(a.C=0,!0):!1};
Jxa=function(a,b){var c=b.Na().Cc-1;Oxa(b.Bb,b.Na().fps,c);c=a.u;c.Aa&&wE(c.Aa.B,c.W)};
Pxa=function(a,b){if(!b.La.u)return iE;var c=a.W.aa("html5_dynamic_av1_hybrid_threshold"),d=0,e=g.P(a.W.experiments,"html5_performance_cap_floor");e=a.W.u?240:e;for(var f=g.q(b.La.videoInfos),h=f.next();!h.done;h=f.next()){var l=h.value;if(!c||!Sx(l))if(h=AC(l.Bb,l.Na().fps),l=l.Na().Cc,Math.max(h,e)>=l){d=l;break}}return new SC(0,d,!1,"b")};
Qxa=function(a,b){a.aa("html5_log_media_perf_info")&&(a.u.Ka("perfdb",Lxa()),a.u.Ka("hwc",""+navigator.hardwareConcurrency,!0),b&&a.u.Ka("mcdb",b.La.videoInfos.filter(function(c){return!1===c.D}).map(function(c){return c.dc()}).join("-")))};
Lxa=function(){var a=Gb(HZ(),function(b){return""+b});
return g.JB(a)};
IZ=function(a,b){g.B.call(this);this.provider=a;this.J=b;this.u=-1;this.F=!1;this.B=-1;this.playerState=new g.NL;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.F(this.send,6E4,this);this.C=!1;g.C(this,this.delay)};
Rxa=function(a){0<=a.u||(3===a.provider.u.getVisibilityState()?a.F=!0:(a.u=g.$X(a.provider),a.delay.start()))};
Sxa=function(a){if(!(0>a.B)){var b=g.$X(a.provider),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.VL(a.playerState)&&!g.T(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
Txa=function(a){switch(a.W.nu){case "canary":return"HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";case "holdback":return"HTML5_PLAYER_CANARY_TYPE_CONTROL";default:return"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}};
Uxa=function(a){return(!a.aa("html5_health_to_gel")||a.W.Ta+36E5<(0,g.N)())&&(a.aa("html5_health_to_gel_canary_killswitch")||a.W.Ta+36E5<(0,g.N)()||"HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"===Txa(a))?a.aa("html5_health_to_qoe"):!0};
JZ=function(a,b,c,d,e){var f={format:"RAW"},h={};eq(a)&&fq()&&(c&&(h["X-Goog-Visitor-Id"]=c),b&&(h["X-Goog-PageId"]=b),d&&(h.Authorization="Bearer "+d),c||d||b)&&(f.withCredentials=!0);0<Object.keys(h).length&&(f.headers=h);e&&(f.ag=e);return 1<Object.keys(f).length?f:null};
KZ=function(a,b,c,d,e,f){fq()&&c.token&&(a=g.Id(a,{ctt:c.token,cttype:c.TA,mdx_environment:c.mdxEnvironment}));e?(null==b?b={}:(c=g.aq(a),Object.keys(c).includes("cpn")),f?Gs(a,b):Fs(a,b)):b?(f=g.aq(a),Object.keys(f).includes("cpn"),g.sq(a,b)):g.yu(a,d)};
g.MZ=function(a){g.B.call(this);var b=this;this.provider=a;this.u={};this.sequenceNumber=1;this.Ba=NaN;this.Kc="N";this.J=this.Za=this.Ha=this.la=this.C=0;this.da=this.qb="";this.Pa=this.X=NaN;this.Ma=0;this.vb=-1;this.Ta=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.ra=this.isOffline=this.Y=!1;this.lc=[];this.P=null;this.S=this.fa=this.D=!1;this.B=-1;this.na=!1;this.Ub=new g.F(this.XK,750,this);this.K=this.adCpn="";this.adFormat=void 0;this.Ac=0;g.C(this,this.Ub);(a=navigator.getBattery?navigator.getBattery():
null)&&a.then&&a.then(function(c){b.P=c});
g.LZ(this,0,"vps",["N"])};
g.LZ=function(a,b,c,d){var e=a.u[c];e||(e=[],a.u[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
NZ=function(a,b){var c=a.provider.u.getCurrentTime();g.LZ(a,b,"cmt",[c.toFixed(3)]);c=a.provider.u.Lj();if(a.F&&1E3*c>a.F.BF+100&&a.F){var d=a.F,e=d.isAd;a.ga=1E3*b-d.WR-(1E3*c-d.BF)-d.OR;a.Ka("gllat","l."+a.ga.toFixed()+";prev_ad."+ +e);delete a.F}};
OZ=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.$X(a.provider);var c=a.provider.u.Zt();if(!isNaN(a.X)&&!isNaN(c.B)){var d=c.B-a.X;0<d&&g.LZ(a,b,"bwm",[d,(c.D-a.Pa).toFixed(3)])}isNaN(a.X)&&c.B&&a.isOffline&&(a.isOffline=!1,g.LZ(a,g.$X(a.provider),"is_offline",[a.isOffline?"1":"0"]));a.X=c.B;a.Pa=c.D;isNaN(c.bandwidthEstimate)||g.LZ(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.videoData.nk&&c.u&&a.Ka("bwinfo",c.u);a.P&&g.LZ(a,b,"bat",[a.P.level,a.P.charging?"1":"0"]);d=a.provider.u.getVisibilityState();
a.vb!==d&&(g.LZ(a,b,"vis",[d]),a.vb=d);NZ(a,b);(d=Vxa(a.provider))&&d!==a.Ma&&(g.LZ(a,b,"conn",[d]),a.Ma=d);Wxa(a,b,c)};
Wxa=function(a,b,c){if(!isNaN(c.fm)){var d=c.fm;c.C<d&&(d=c.C);g.LZ(a,b,"bh",[d.toFixed(3)])}};
PZ=function(a){for(var b=0,c=g.q(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(g.qh(a.u[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.F(a.reportStats,0,a)).start()};
Xxa=function(a){a.provider.videoData.Cl&&QZ(a,"prefetch");a.provider.videoData.oj&&a.Ka("reload","r."+a.provider.videoData.reloadReason+";ct."+a.provider.videoData.oj);a.provider.videoData.Yi&&QZ(a,"monitor");a.provider.videoData.isLivePlayback&&QZ(a,"live");a.provider.videoData.hg&&a.Ka("ctrl",a.provider.videoData.hg,!0);if(a.provider.videoData.gf){var b=a.provider.videoData.gf.replace(/,/g,"_");a.Ka("ytp",b,!0)}a.provider.videoData.vH&&(b=a.provider.videoData.vH.replace(/,/g,"."),a.Ka("ytrexp",
b,!0));if(!g.Q(a.provider.W.experiments,"html5_disable_gpu_reporting")){var c=a.provider.W.experiments;b=a.provider.videoData;c=g.Q(c,"enable_white_noise")||g.Q(c,"enable_webgl_noop")||g.Q(c,"enable_gpu_logging");var d=b.ho()||b.Wj()||b.Xj()||b.Qj(),e=b.La&&Sx(g.db(b.La.videoInfos))&&/^g/.test(b.clientPlaybackNonce);b=/^gp/.test(b.clientPlaybackNonce);(c||d||b||e)&&(b=(0,g.RZ)())&&(a.u.gpu=[b])}a.Ba=Io(function(){a.reportStats()},1E4)};
Yxa=function(a){0<=a.B||(a.provider.W.vf||3!==a.provider.u.getVisibilityState()?a.B=g.$X(a.provider):a.na=!0)};
QZ=function(a,b){var c=a.u.cat||[];c.push(b);a.u.cat=c};
Zxa=function(a){this.provider=a;this.K=!1;this.u=0;this.D=-1;this.lastUpdateTime=NaN;this.B=0;this.segments=[];this.J=this.F=0;this.S=this.provider.ye().volume;this.P=this.provider.ye().muted;this.C=SZ(this.provider)};
TZ=function(a){a.C.startTime=a.B;a.C.endTime=a.u;a.segments.length&&g.db(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.C:a.segments.length&&a.C.isEmpty()||a.segments.push(a.C);a.F+=a.u-a.B;a.C=SZ(a.provider);a.B=a.u};
$xa=function(a){return a.F+a.provider.u.getCurrentTime()-a.B};
aya=function(a){a.segments.length&&a.u===a.B||TZ(a);var b=a.segments;a.segments=[];return b};
cya=function(a){bya(a);a.J=Io(function(){a.update()},100);
a.lastUpdateTime=g.$X(a.provider);a.C=SZ(a.provider)};
bya=function(a){window.clearInterval(a.J);a.J=NaN};
dya=function(a,b,c){c-=a.lastUpdateTime;return b===a.u&&.5<c};
UZ=function(a,b,c,d){this.W=b;this.segments=[];this.experimentIds=[];this.Vj=this.la=this.isFinal=this.vb=this.fa=this.autoplay=this.autonav=!1;this.Ha="yt";this.C=this.F=null;this.sendVisitorIdHeader=this.Xb=!1;this.pageId="";this.B="watchtime"===c;this.D="playback"===c;this.ga="delayplay"===c;this.ra="atr"===c;this.Ub="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.ra?"/api/stats/"+c:"//"+b.Gp+"/api/stats/"+c;this.Dd=!b.aa("embeds_disable_event_label_embedded_unbranded_killswitch")&&this.D&&
b.pfpChazalUi&&a.oc;this.Za=b.aa("embeds_enable_intersection_observer_v2");d&&(this.la=d.fs,d.rtn&&(this.C=d.rtn),this.B?(this.playerState=d.state,0<d.rti&&(this.F=d.rti)):(this.lc=d.mos,this.gd=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Ta=d.inview),d.size&&(this.Pa=d.size));this.deviceParams=g.Ub(b.deviceParams);this.qb=b.Pa;this.experimentIds=b.experiments.experimentIds;this.Lb=b.Lg;this.Ha=b.Y;this.region=b.region;this.userAge=b.userAge;this.Ma=
b.zi;this.Ge=Cp();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.P=g.Q(b.experiments,"vss_pings_using_networkless");this.S=g.Q(b.experiments,"vss_send_then_write");this.pageId=b.pageId;b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.accessToken=a.nf();this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=GI(a);this.autonav=a.Nh||this.autonav;this.contentVideoId=EI(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.fa=a.oc;a.yi&&(this.J=a.yi,this.da=a.Gg);
a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.rg=a.rg;this.Ah=a.Ah;a.Oa&&(this.videoFormat=a.Oa.dc(),a.pd&&a.pd.dc()!==this.videoFormat&&(this.Y=a.pd.dc()));a.va&&ZB(a.va)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.Dd?"embedded_unbranded":DI(a);this.Vj=a.Vj;this.fo=a.fo;if(b=rI(a))this.Ac=b;this.Tq=a.Tq;this.gh=a.gh;this.eventId=a.eventId;this.playlistId=a.gI||a.playlistId;this.Vv=a.Vv;this.hg=a.hg;this.gf=a.gf;this.Yr=a.Yr;this.subscribed=a.subscribed;this.videoId=
a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.Tz=a.Tz;this.referrer=a.referrer;this.Kr=a.tH||a.Kr;this.qp=a.qp;this.zw=a.zw;this.userGenderAge=a.userGenderAge;this.Us=a.Us};
VZ=function(a,b){return JZ(a.uri,a.pageId,a.sendVisitorIdHeader?a.visitorData:void 0,a.accessToken,b)};
eya=function(a,b){return function(){var c=a.uri,d=WZ(a),e=VZ(a),f=a.P,h=a.S;d.cmt=d.len;d.lact="0";var l=b().toFixed(3);d.rt=Number(l).toString();c=g.Id(c,d);f?(null==e&&(e={}),h?Gs(c,e):Fs(c,e)):e?g.sq(c,e):g.yu(c)}};
WZ=function(a){var b={ns:a.Ha,el:a.eventLabel,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.u(a.rg),ei:a.eventId,fmt:a.videoFormat,fs:a.la?"1":"0",rt:a.u(a.jd),of:a.Tz,adformat:a.adFormat,content_v:a.contentVideoId,euri:a.qb,lact:a.Ge,live:a.Ac,cl:(350435217).toString(),mos:a.lc,osid:a.osid,state:a.playerState,vm:a.videoMetadata,volume:a.gd};a.adQueryId&&(b.aqi=a.adQueryId);a.subscribed&&(b.subscribed="1");g.Ua(b,a.deviceParams);a.autonav&&(b.autonav="1");a.autoplay&&(b.autoplay=
"1");a.fa&&(b.dni="1");a.isFinal&&(b["final"]="1");a.Vj&&(b.splay="1");a.Ah&&(b.delay=a.Ah);a.Lb&&(b.hl=a.Lb);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.Ma&&(b.uga=a.Ma+a.userAge);void 0!==a.Ba&&(b.len=a.u(a.Ba));!a.B&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.C&&(b.rtn=a.u(a.C));a.Kr&&(b.feature=a.Kr);a.playlistId&&(b.list=a.playlistId);a.hg&&(b.ctrl=a.hg);a.gf&&(b.ytr=a.gf);a.Yr&&(b.ssrt="1");a.Y&&(b.afmt=a.Y);a.offlineDownloadUserChoice&&
(b.ODUC=a.offlineDownloadUserChoice);a.na&&(b.lio=a.u(a.na));a.B?(b.idpj=a.fo,b.ldpj=a.Tq,null!=a.F&&(b.rti=a.u(a.F)),a.Us&&(b.ald=a.Us)):void 0!==a.adType&&(b.at=a.adType);a.Pa&&(a.D||a.ga||a.B&&a.Za)&&(b.size=a.Pa);null!=a.Ta&&(a.D||a.ga||a.B&&a.Za)&&(b.inview=a.u(a.Ta));a.B&&(b.volume=XZ(a,g.Mc(a.segments,function(d){return d.volume})),b.muted=XZ(a,g.Mc(a.segments,function(d){return d.muted?1:0})),b.st=XZ(a,g.Mc(a.segments,function(d){return d.startTime})),b.et=XZ(a,g.Mc(a.segments,function(d){return d.endTime})),
ji(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=XZ(a,g.Mc(a.segments,function(d){return d.playbackRate}))),ji(a.segments,function(d){return"-"!==d.Gn})&&(b.als=g.Mc(a.segments,function(d){return d.Gn}).join(",")));
ji(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=XZ(a,g.Mc(a.segments,function(d){return d.visibilityState})));
ji(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=XZ(a,g.Mc(a.segments,function(d){return d.connectionType})));
ji(a.segments,function(d){return 0!==d.C})&&(b.blo=XZ(a,g.Mc(a.segments,function(d){return d.C})));
ji(a.segments,function(d){return"-"!==d.B})&&(b.cc=g.Mc(a.segments,function(d){return d.B}).join(","));
ji(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Mc(a.segments,function(d){return d.clipId}).join(","));
if(ji(a.segments,function(d){return!!d.u})){var c="au";
a.D&&(c="au_d");b[c]=g.Mc(a.segments,function(d){return d.u}).join(",")}fq()&&a.J&&(b.ctt=a.J,b.cttype=a.da,b.mdx_environment=a.mdxEnvironment);
a.Ub&&(b.etype=void 0!==a.K?a.K:0);a.qp&&(b.uoo=a.qp);a.zw&&(b.upt=a.zw);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=fya[a.livingRoomAppMode]||a.livingRoomAppMode);return b};
XZ=function(a,b){return g.Mc(b,a.u).join(",")};
YZ=function(a){g.B.call(this);this.provider=a;this.currentPlayerState="paused";this.B=NaN;this.J=[10,10,10,40];this.P=this.K=0;this.da=this.Y=this.ra=this.fa=this.X=this.S=this.C=!1;this.D=this.F=NaN;this.u=new Zxa(a)};
iya=function(a){if(!a.C){g.Q(a.provider.W.experiments,"disable_embedpage_playback_logging")||16623!==a.provider.videoData.Sr||g.Go(Error("Playback for EmbedPage"));var b=ZZ(a,"playback");a.J=[10+a.provider.videoData.fo,10,10,40+a.provider.videoData.Tq-a.provider.videoData.fo,40];cya(a.u);b.C=$Z(a,!0);a.provider.videoData.enableServerStitchedDai&&0<a.D&&(b.rg-=a.D);b.send();if(a.provider.videoData.Hv){b=a.provider.W;var c=a.provider.videoData;c={html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,
ei:c.eventId,ptk:c.Hv,oid:c.EG,ptchn:c.DG,pltype:c.FG,content_v:EI(c)};b=g.Id(b.S+"ptracking",c);a_(a,b)}a.provider.videoData.iq&&(b_(a,"playback"),a.F||gya(a));a.provider.videoData.Ah||hya(a);a.C=!0;a=a.u;a.u=a.provider.u.getCurrentTime();a.lastUpdateTime=g.$X(a.provider);!(0===a.B&&5>a.u)&&2<a.u-a.B&&(a.B=a.u);a.K=!0}};
$Z=function(a,b,c){c=void 0===c?NaN:c;var d=g.$X(a.provider);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.J[a.K];a.K+1<a.J.length&&a.K++;var f=c+e;a.B=g.Ho(function(){if(!a.ma()){a.B=NaN;a.u.update();var h=aya(a.u),l=jya(a,h);b&&(l.F=f);var m=a.provider.aa("html5_expanded_max_vss_pings")?1E3:400;m=a.P>m;!(1<h.length)&&h[0].isEmpty()||m||(l.C=$Z(a,!0,f));l.send();a.P++}},1E3*(f-d));
return f};
ZZ=function(a,b){var c=a.provider;c=Object.assign(c.ye(),c.videoData.ye());g.Ua(c,{state:a.currentPlayerState});c=new UZ(a.provider.videoData,a.provider.W,b,c);c.rg=a.provider.u.getCurrentTime();a.provider.videoData.isLivePlayback||(c.Ba=a.provider.u.getDuration());if(a.provider.videoData.va){var d=a.provider.videoData.va.Pe(c.rg);d&&(c.na=d-c.rg)}c.jd=g.$X(a.provider);c.segments=[SZ(a.provider)];return c};
jya=function(a,b){var c=ZZ(a,"watchtime");if(a.provider.videoData.enableServerStitchedDai&&0<a.D){for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.D,e.endTime-=a.D;c.rg-=a.D}else c.rg=a.u.u;c.segments=b;return c};
c_=function(a){a.u.update();return jya(a,aya(a.u))};
hya=function(a){a.provider.videoData.remarketingUrl&&!a.fa&&(a_(a,a.provider.videoData.remarketingUrl),a.fa=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.ra&&(a_(a,a.provider.videoData.youtubeRemarketingUrl),a.ra=!0);a.provider.videoData.googleRemarketingUrl&&!a.Y&&(a_(a,a.provider.videoData.googleRemarketingUrl),a.Y=!0);a.provider.videoData.ppvRemarketingUrl&&!a.da&&(a_(a,a.provider.videoData.ppvRemarketingUrl),a.da=!0);a.tp()};
kya=function(a){if(!a.ma()&&a.C){a.currentPlayerState="paused";var b=c_(a);b.isFinal=!0;b.send();g.Jo(a.F);a.dispose()}};
gya=function(a){a.F=Io(function(){b_(a,"heartbeat")},3E4)};
b_=function(a,b){var c=a.provider.W,d=a.provider.videoData,e={ns:c.Y,el:DI(d),eurl:c.Pa,fmt:d.Oa?d.Oa.dc():0,html5:1,list:d.playlistId,cpn:d.clientPlaybackNonce,ei:d.eventId,ps:c.playerStyle,noflv:1,st:a.provider.u.getCurrentTime(),video_id:d.videoId,metric:b};GI(d)&&(e.autoplay="1");"heartbeat"===b&&(e.tpmt=$xa(a.u));Object.assign(e,c.deviceParams);a_(a,g.Id(c.S+"live_204",e))};
lya=function(a,b,c){a.S||(c||(c=ZZ(a,"atr")),c.X=b,c.send(),a.S=!0)};
a_=function(a,b){var c=a.provider.videoData.nf(),d=a.provider.aa("web_player_vss_pageid_header")?a.provider.W.pageId:void 0,e=a.provider.W.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,f=g.Q(a.provider.W.experiments,"vss_pings_using_networkless"),h=g.Q(a.provider.W.experiments,"vss_send_then_write");c=JZ(b,d,e,c,void 0);KZ(b,c,{token:a.provider.videoData.yi,TA:a.provider.videoData.Gg,mdxEnvironment:a.provider.videoData.mdxEnvironment},void 0,f,h)};
mya=function(){this.endTime=this.startTime=-1;this.B="-";this.playbackRate=1;this.visibilityState=0;this.u="";this.volume=this.connectionType=this.C=0;this.muted=!1;this.Gn=this.clipId="-"};
d_=function(a,b,c,d){this.videoData=a;this.W=b;this.u=c;this.ye=d;this.B=void 0};
g.$X=function(a){return nya(a)()};
nya=function(a){if(!a.B){var b=g.Ta(function(d){var e=(0,g.N)();d&&631152E6>=e&&(g.M(Error("invalid coreTime.now value: "+e)),e=(new Date).getTime()+2);return e},g.Q(a.W.experiments,"html5_validate_yt_now")),c=b();
a.B=function(){return Math.round(b()-c)/1E3};
a.u.Qz()}return a.B};
Vxa=function(a){if(navigator.connection&&navigator.connection.type)return oya[navigator.connection.type]||oya.other;if(g.LD(a.W)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
SZ=function(a){var b=new mya;b.B=a.ye().cc||"-";b.playbackRate=a.u.getPlaybackRate();var c=a.u.getVisibilityState();0!==c&&(b.visibilityState=c);a.W.Lf&&(b.C=1);c=a.u.getAudioTrack();c.u&&c.u.id&&"und"!==c.u.id&&(b.u=c.u.id);b.connectionType=Vxa(a);b.volume=a.ye().volume;b.muted=a.ye().muted;b.clipId=a.ye().clipid||"-";b.Gn=a.videoData.Gn||"-";return b};
g.e_=function(a){g.B.call(this);var b=this;this.provider=a;this.B=this.qoe=this.u=null;this.C=void 0;this.D=new Map;this.provider.videoData.isValid()&&!this.provider.videoData.np&&(this.u=new YZ(this.provider),g.C(this,this.u),this.qoe=new g.MZ(this.provider),g.C(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.C=this.provider.videoData.clientPlaybackNonce)&&this.D.set(this.C,this.u));Uxa(this.provider)&&(this.B=new IZ(this.provider,function(c){b.Ka("h5h",c)}),g.C(this,this.B))};
pya=function(a){var b;a.provider.videoData.enableServerStitchedDai&&a.C?null===(b=a.D.get(a.C))||void 0===b?void 0:TZ(b.u):a.u&&TZ(a.u.u)};
qya=function(a,b){a.u&&lya(a.u,b)};
rya=function(a){if(!a.u)return null;var b=ZZ(a.u,"atr");return function(c){a.u&&lya(a.u,c,b)}};
sya=function(a,b,c,d){var e=new g.zH(b.W,c);e.adFormat=e.Xo;var f=b.u;b=new YZ(new d_(e,b.W,{getDuration:function(){return e.lengthSeconds},
getCurrentTime:function(){return f.getCurrentTime()},
Lj:function(){return f.Lj()},
Zt:function(){return f.Zt()},
getPlayerSize:function(){return f.getPlayerSize()},
getAudioTrack:function(){return e.getAudioTrack()},
getPlaybackRate:function(){return f.getPlaybackRate()},
Bq:function(){return f.Bq()},
getVisibilityState:function(){return f.getVisibilityState()},
Qz:function(){f.Qz()},
vr:function(){f.vr()}},b.ye));
b.D=d;g.C(a,b);return b};
tya=function(){this.fm=0;this.F=this.D=this.B=this.C=NaN;this.u="";this.bandwidthEstimate=NaN};
uya=function(){this.B=g.SF;this.u=[]};
wya=function(a,b,c){var d=[];for(b=vya(a,b);b<a.u.length;++b){var e=a.u[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
xya=function(a,b){for(var c=[],d=g.q(a.u),e=d.next();!e.done&&!(e=e.value,e.contains(b)&&c.push(e),e.start>b);e=d.next());return c};
yya=function(a){return a.u.slice(vya(a,0x7ffffffffffff),a.u.length)};
vya=function(a,b){var c=yb(a.u,function(d){return b-d.start||1});
return 0>c?-(c+1):c};
zya=function(a,b){for(var c=NaN,d=g.q(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,e.contains(b)&&(isNaN(c)||e.end<c)&&(c=e.end),e.start>b&&(isNaN(c)||e.start<c)){c=e.start;break}return c};
f_=function(a,b,c,d){g.B.call(this);this.X=a;this.Y=b;this.K=c;this.P=d;this.C=NaN;this.F=this.J=this.started=!1;this.B=[];this.S=new g.F(this.gk,250,this);g.C(this,this.S);this.D=new g.F(this.gk,0,this);g.C(this,this.D);this.u=new uya};
g_=function(a,b){if(!a.ma()){for(var c=g.q(b),d=c.next();!d.done;d=c.next())if(d=d.value){var e=a.B.indexOf(d);0<=e&&a.B.splice(e,1);var f=a.u;e=f.u;d=g.xb(e,d,f.B);0<=d&&g.nb(e,d)}a.gk()}};
psa=function(a,b){var c=a.Lk().filter(function(d){return d.namespace===b});
g_(a,c);return c};
Aya=function(a,b){var c=[];if(!b.length)return c;for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1===a.B.indexOf(e)&&(a.B.push(e),c.push([1,e]))}return c};
Bya=function(a,b){var c=[];if(!b.length)return c;b.sort(g.SF);for(var d=g.q(b),e=d.next();!e.done;e=d.next())e=e.value,a.B.splice(a.B.indexOf(e),1),c.push([2,e]);return c};
Cya=function(a,b){for(var c=g.q(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[1];1===d[0]?a.P(g.TF(e.namespace),e):a.P(g.UF(e.namespace),e)}};
Dya=function(a){this.D=this.mediaTime=NaN;this.B=this.u=!1;this.C=.001;a&&(this.C=a)};
h_=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
i_=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.u)b!==a.mediaTime&&(a.u=!1);else if(0<b&&a.mediaTime===b)return c-a.D>(d||!a.B?1500:400);a.mediaTime=b;a.D=c;return!1};
Eya=function(a,b){this.videoData=a;this.La=b};
Fya=function(a,b,c){return b.Zs(c).then(function(){return ft(new Eya(b,b.La))},function(d){d instanceof Error&&g.Go(d);
d=b.isLivePlayback&&!g.QC(a.D,!0)?"html5.unsupportedlive":"fmt.noneavailable";var e={buildRej:"1",a:""+ +!!b.adaptiveFormats,d:""+ +!!b.Qg,drm:""+ +lI(b),f18:""+ +(0<=b.As.indexOf("itag=18")),c18:""+ +BB('video/mp4; codecs="avc1.42001E, mp4a.40.2"')};b.va&&(lI(b)?(e.f142=""+ +!!b.va.u["142"],e.f149=""+ +!!b.va.u["149"],e.f279=""+ +!!b.va.u["279"]):(e.f133=""+ +!!b.va.u["133"],e.f140=""+ +!!b.va.u["140"],e.f242=""+ +!!b.va.u["242"]),e.cAVC=""+ +CB('video/mp4; codecs="avc1.42001E"'),e.cAAC=""+ +CB('audio/mp4; codecs="mp4a.40.2"'),
e.cVP9=""+ +CB('video/webm; codecs="vp9"'));if(b.hd){e.drmsys=b.hd.u;var f=0;b.hd.B&&(f=Object.keys(b.hd.B).length);e.drmst=""+f}return new IB(d,!0,e)})};
Gya=function(a){this.F=a;this.C=this.B=0;this.D=new xY(50)};
k_=function(a,b,c){g.O.call(this);this.videoData=a;this.experiments=b;this.P=c;this.B=[];this.D=0;this.C=!0;this.F=!1;this.J=0;c=new Hya;"ULTRALOW"===a.latencyClass&&(c.D=!1);a.Yi?c.B=3:g.xI(a)&&(c.B=2);g.Q(b,"html5_adaptive_seek_to_head_killswitch")||"NORMAL"!==a.latencyClass||(c.J=!0);var d=gI(a);c.F=2===d||-1===d;c.F&&(c.S++,21530001===eI(a)&&(c.X=g.P(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Pq("trident/")||Pq("edge/"))d=g.P(b,"html5_platform_minimum_readahead_seconds")||3,c.C=Math.max(c.C,
d);g.P(b,"html5_minimum_readahead_seconds")&&(c.C=g.P(b,"html5_minimum_readahead_seconds"));g.P(b,"html5_maximum_readahead_seconds")&&(c.K=g.P(b,"html5_maximum_readahead_seconds"));g.Q(b,"html5_force_adaptive_readahead")&&(c.D=!0);g.P(b,"html5_allowable_liveness_drift_chunks")&&(c.u=g.P(b,"html5_allowable_liveness_drift_chunks"));g.P(b,"html5_readahead_ratelimit")&&(c.P=g.P(b,"html5_readahead_ratelimit"));switch(eI(a)){case 21530001:c.u=(c.u+1)/5,"LOW"===a.latencyClass&&(c.u*=2),c.Y=g.Q(b,"html5_live_smoothly_extend_max_seekable_time")}this.policy=
c;this.K=1!==this.policy.B;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Yi&&b--;a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(eI(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.F&&b++;this.u=j_(this,b);this.ba()};
Iya=function(a,b){var c=a.u;(void 0===b?0:b)&&a.policy.Y&&3===gI(a.videoData)&&--c;return l_(a)*c};
m_=function(a,b){var c=a.Ih();var d=a.policy.u;a.F||(d=Math.max(d-1,0));d*=l_(a);return b>=c-d};
Jya=function(a,b,c){b=m_(a,b);c||b?b&&(a.C=!0):a.C=!1;a.K=2===a.policy.B||3===a.policy.B&&a.C};
Kya=function(a,b){var c=m_(a,b);a.F!==c&&a.V("livestatusshift",c);a.F=c};
l_=function(a){return a.videoData.va?mC(a.videoData.va)||5:5};
j_=function(a,b){b=Math.max(Math.max(a.policy.S,Math.ceil(a.policy.C/l_(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.K/l_(a))),b)};
Hya=function(){this.S=1;this.C=0;this.K=Infinity;this.P=0;this.D=!0;this.u=2;this.B=1;this.F=!1;this.X=NaN;this.Y=this.J=!1};
p_=function(a,b,c,d,e){g.B.call(this);this.W=a;this.videoData=b;this.V=c;this.visibility=d;this.S=e;this.Aa=this.ea=null;this.D=this.u=0;this.B={};this.playerState=new g.NL;this.C=new g.F(this.X,1E3,this);g.C(this,this.C);this.fa=new n_({delayMs:g.P(this.W.experiments,"html5_seek_timeout_delay_ms")});this.P=new n_({delayMs:g.P(this.W.experiments,"html5_long_rebuffer_threshold_ms")});this.ra=o_(this,"html5_seek_set_cmt");this.Y=o_(this,"html5_seek_jiggle_cmt");this.da=o_(this,"html5_seek_new_elem");
this.la=o_(this,"html5_unreported_seek_reseek");this.J=o_(this,"html5_long_rebuffer_jiggle_cmt");this.K=o_(this,"html5_reload_element_long_rebuffer");this.F=o_(this,"html5_ads_preroll_lock_timeout");this.ga=new n_({delayMs:g.P(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Yp:!g.Q(this.W.experiments,"html5_report_slow_ads_as_error")})};
o_=function(a,b){var c=g.P(a.W.experiments,b+"_delay_ms"),d=g.Q(a.W.experiments,b+"_cfl");return new n_({delayMs:c,Yp:d})};
q_=function(a,b,c,d,e,f,h){Lya(b,c)?(d=a.rb(b),d.wn=h,d.wdup=a.B[e]?"1":"0",a.V("qoeerror",e,d),a.B[e]=!0,b.Yp||f()):(b.Yv&&b.B&&!b.D?(f=(0,g.N)(),d?b.u||(b.u=f):b.u=0,c=!d&&f-b.B>b.Yv,f=b.u&&f-b.u>b.iA||c?b.D=!0:!1):f=!1,f&&(f=a.rb(b),f.wn=h,f.we=e,f.wsuc=""+ +d,h=g.JB(f),a.V("ctmp","workaroundReport",h),d&&(b.reset(),a.B[e]=!1)))};
n_=function(a){a=void 0===a?{}:a;var b=void 0===a.iA?1E3:a.iA,c=void 0===a.Yv?3E4:a.Yv,d=void 0===a.Yp?!1:a.Yp;this.F=Math.ceil((void 0===a.delayMs?0:a.delayMs)/1E3);this.iA=b;this.Yv=c;this.Yp=d;this.u=this.B=this.C=this.startTimestamp=0;this.D=!1};
Lya=function(a,b){if(!a.F||a.B)return!1;if(!b)return a.reset(),!1;var c=(0,g.N)();if(!a.startTimestamp)a.startTimestamp=c,a.C=0;else if(a.C>=a.F)return a.B=c,!0;a.C+=1;return!1};
s_=function(a,b,c,d){g.O.call(this);var e=this;this.videoData=a;this.W=b;this.visibility=c;this.Ta=d;this.policy=new Mya(this.W);this.J=new p_(this.W,this.videoData,(0,g.z)(this.V,this),this.visibility,this.Ta);a={};this.fa=(a.seekplayerrequired=this.ZR,a.videoformatchange=this.Oz,a);this.playbackData=null;this.Ba=new Bt;this.K=this.u=this.Aa=this.ea=null;this.B=NaN;this.C=0;this.D=null;this.ga=NaN;this.F=this.P=null;this.X=this.S=!1;this.da=new g.F(function(){Nya(e,!1)},this.policy.u);
this.Za=new g.F(function(){r_(e)});
this.na=new g.F(function(){e.ba();e.S=!0;Oya(e)});
this.Ha=this.timestampOffset=0;this.la=!0;this.Ma=0;this.Pa=NaN;this.Y=new g.F(function(){var f=e.W.Ge;f.u+=1E4/36E5;f.u-f.C>1/6&&(hD(f),f.C=f.u);e.Y.start()},1E4);
this.aa("html5_unrewrite_timestamps")?this.fa.timestamp=this.ip:this.fa.timestamp=this.RM;g.C(this,this.Ba);g.C(this,this.da);g.C(this,this.na);g.C(this,this.Za);g.C(this,this.Y)};
Pya=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new Gya(function(){a:{if(a.playbackData&&a.playbackData.La.u){if(dI(a.videoData)&&a.Aa){var c=a.Aa.ga.u()||0;break a}if(a.videoData.va){c=a.videoData.va.P;break a}}c=0}return c}),a.u=new k_(a.videoData,a.W.experiments,function(){return a.Jc(!0)}));
a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds||(a.C=a.C||a.videoData.startSeconds||0)};
v_=function(a,b){a.Aa&&Ft(a.Aa,a.fa,a);(a.Aa=b)?(Et(b,a.fa,a),t_(a,!0)):u_(a);a.J.Aa=b};
Qya=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.K&&d){var e=a.K;if(e.u&&!(c>=e.B&&c<e.C)){var f=e.u.Jh(c);-1!==f&&(e.B=e.u.Re(f),e.C=e.B+e.u.getDuration(f),f=g.A()/1E3-e.u.Pe(f),f-=e.F(),e.D.add(f))}}a.u&&(d&&(d=a.u,e=a.ea?DS(a.ea):0,d.D++,3>d.D||g.A()-d.J<d.policy.P||(d.J=g.A(),d.B.push(e),50<d.B.length&&d.B.shift(),d.ba())),d=a.u,Jya(d,c,void 0===b?!0:b),Kya(d,c),b&&Nya(a,!0))};
Nya=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!m_(c,d)&&c.Uj()?(c.ba(),c.policy.J&&(c.policy.u=Math.max(c.policy.u+1,10)),c=Infinity):d<c.videoData.Gc()?(c.ba(),c=Math.min(c.videoData.Gc()+10,c.Ih())):c=NaN;if(!isNaN(c)){if(a.aa("html5_in_buffer_ptl")&&a.Aa&&b){d=a.da.isActive();var e=a.u.Ih();if((e=xwa(a.Aa,e-a.wc()))&&!d){a.policy.u&&a.da.start();a.V("ctmp","inBufferPtl","cmt."+a.getCurrentTime()+";seekTo"+(e+a.wc()));a.seekTo(e+a.wc());return}}a.aa("html5_peg_to_live_logging")&&
a.V("ctmp","ptl","cmt."+a.getCurrentTime()+";seekTo"+(c+a.wc()));a.seekTo(c)}}};
t_=function(a,b){if(a.u&&a.Aa){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(c=a.u,c.B.length){var d=c.u;b:{if(c.B.length){if(1<Math.min.apply(null,c.B)){c.ba();var e=j_(c,c.u-1);break b}if(c.policy.D){c.ba();e=j_(c,c.u+1);break b}}e=c.u}c.u=e;if(d=d!==c.u)c.ba(),c.B=[],c.D=0;c=d}else c=!1;c&&a.V("livereadaheadchanged",Iya(a.u));c=a.Aa;d=a.u.u;e=a.u;e=(e.u-1+e.policy.u)*l_(e);var f=a.u.policy.X;c.ae=Math.max(d-
1,0);c.F&&(c.F.da=e);c.Za=f}};
w_=function(a){return a.videoData.isLivePlayback&&!!a.videoData.La&&!a.videoData.La.u};
Oya=function(a){Rya(a).then(void 0,function(){u_(a)});
Sya(a).then(function(c){a.ba();a.F&&(a.F.resolve(c),a.V("seekend"),KH(a.videoData)&&(c=a.rb(),c["native"]=""+ +a.X,a.V("ctmp","seekEnd",g.JB(c))));Tya(a)},function(){u_(a)});
a.V("seekstart");if(KH(a.videoData)){var b=a.rb();b["native"]=""+ +a.X;a.V("ctmp","seekStart",g.JB(b))}};
Rya=function(a){if(!a.P)if(a.Aa)if(isFinite(a.B))a.ba(),a.P=a.Aa.seek(a.B-a.timestampOffset);else{a.ba();var b=a.Aa;XY(b);b.D.C&&b.ba();b.F&&CE(b.F,b.videoTrack.u);g.kn(b.S);b=b.D;var c=Math.max(b.B.C.F||0,b.u.C.F||0);HA(b.B);HA(b.u);var d=b.F,e;for(e in d.u)Yx(d.u[e].index,Infinity);b.F.isManifestless&&(b.K=!0);b.V("setcurrenttime",c);b.C=!0;b.P=new yy;a.P=b.P;a.B=a.Aa.getCurrentTime()+a.timestampOffset}else a.P=um(a.B-a.timestampOffset);return a.P};
Sya=function(a){var b=a.D;b||(a.D=new yy,b=a.D,r_(a));return b};
Uya=function(a,b,c){return isNaN(b)?NaN:g.$d(b,a.Gc(),a.Jc(c))};
r_=function(a){if(a.D)if(!a.aa("html5_nondash_live_seek_killswitch")&&w_(a)&&a.ea&&0<a.ea.zg()&&0<CS(a.ea)&&(a.B=Uya(a,a.B,!1)),!a.ea||!Vya(a))a.Za.start(750);else if(!isNaN(a.B)&&isFinite(a.B)&&a.ga!==a.B-a.timestampOffset){var b=a.ea.getCurrentTime()-a.B;if(Math.abs(b)<=a.Ma)Wya(a);else if(!a.videoData.isLivePlayback&&a.B>=a.Jc()-.1)a.B=a.Jc(),a.D.resolve(a.Jc()),a.V("ended");else try{var c=a.B-a.timestampOffset;a.ba();a.ea.seekTo(c);a.J.u=c;a.ga=c;a.C=a.B}catch(d){a.ba()}}};
Vya=function(a){if(!a.ea||0===a.ea.zg()||0<a.ea.Vh())return!1;var b=0<a.ea.getCurrentTime();if(!(a.aa("html5_nondash_mediaelementready_killswitch")||a.videoData.La&&a.videoData.La.u||a.videoData.isLivePlayback)&&lI(a.videoData))return b;if(0<=a.B){var c=a.ea.zq();if(c.length||!b)return oA(c,a.B-a.timestampOffset)}return b};
Wya=function(a){a.D?a.D.resolve(a.ea.getCurrentTime()):a.ba()};
Tya=function(a){a.B=NaN;a.ga=NaN;a.D=null;a.P=null;a.F=null;a.S=!1;a.X=!1;a.Ma=0;a.da.stop();a.na.stop()};
u_=function(a){a.F&&a.ba();Tya(a)};
Xya=function(a){if(a.ea){for(var b=g.q(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Ba.N(a.ea,c.value,function(d){var e=a.ea;d=d.type;a.ba();switch(d){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.D||a.X&&d!==a.B)a.D=new yy,a.ga=d,e=e.getCurrentTime(),a.J.u=e,a.seekTo(d),a.X=!0;break;case "seeked":Wya(a);break;case "loadedmetadata":a.la?(e="ss.",d=0,(yI(a.videoData)||a.videoData.liveUtcStartSeconds)&&(a.videoData.liveUtcStartSeconds||a.videoData.startSeconds&&
isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds)&&a.videoData.va?(d=a.videoData.liveUtcStartSeconds||a.videoData.Zk,e="utc.",d=a.Jc()-a.Pe(a.Jc())+d):a.videoData.va&&a.videoData.va.isManifestless&&a.videoData.Zk?(e="mss.",d=a.videoData.Zk+a.wc()):a.aa("html5_unrewrite_timestamps")&&a.videoData.ow&&(e="stss.",d=a.videoData.ow),d?(a.seekTo(d),a.V("ctmp","startSeconds",e+String(d)),a.la=!1):a.videoData.Zk&&a.V("ctmp","startSeconds",""+e+(a.videoData.Zk+a.wc())),e=!!d):e=!1;a.aa("html5_nondash_live_seek_killswitch")&&
!e&&w_(a)&&(a.B=isFinite(a.B)?g.$d(a.B,a.Gc(),a.Jc()):a.Jc());r_(a);break;case "progress":r_(a)}});
a.F||a.C||a.policy.C||!a.ea.Zv()||a.seekTo(.01)}};
Mya=function(a){this.u=g.P(a.experiments,"html5_in_buffer_ptl_timeout_ms");this.B=g.Q(a.experiments,"html5_live_smoothly_extend_max_seekable_time");this.D=a.aa("html5_seek_over_discontinuities");this.C=a.aa("html5_requires_seek_for_playback_at_zero_killswitch")};
x_=function(){this.u=this.started=!1};
y_=function(){this.u=this.B=void 0};
Yya=function(a,b,c,d){g.wo("enable_get_account_switcher_endpoint_on_webfe")&&(d=d.replace(")]}'",""));try{var e=JSON.parse(d)}catch(f){g.gr(new g.nr("JSON parsing failed after XHR fetch",b,c,d)),e={}}200===c?a.u&&a.u.success():(a.u&&a.u.failure(),g.gr(new g.nr("XHR API fetch failed",b,c,d)),e=Object.assign(Object.assign({},e),{errorMetadata:{status:c}}));return e};
z_=function(a){this.F=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.J=new Uint8Array(64);this.B=0;this.F.set(a);this.C.set(a);for(a=0;64>a;a++)this.F[a]^=92,this.C[a]^=54;this.reset()};
$ya=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.u[0];c=a.u[1];e=a.u[2];for(var f=a.u[3],h=a.u[4],l=a.u[5],m=a.u[6],n=a.u[7],p,r,t=0;64>t;t++)p=n+Zya[t]+d[t]+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^~h&m),r=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&c^b&e^c&e),n=m,m=l,l=h,h=f+p,f=e,e=c,c=b,b=
p+r;a.u[0]=b+a.u[0]|0;a.u[1]=c+a.u[1]|0;a.u[2]=e+a.u[2]|0;a.u[3]=f+a.u[3]|0;a.u[4]=h+a.u[4]|0;a.u[5]=l+a.u[5]|0;a.u[6]=m+a.u[6]|0;a.u[7]=n+a.u[7]|0};
bza=function(a){var b=new Uint8Array(32),c=64-a.B;55<a.B&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.D,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.u[c]>>>24,b[4*c+1]=a.u[c]>>>16&255,b[4*c+2]=a.u[c]>>>8&255,b[4*c+3]=a.u[c]&255;aza(a);return b};
aza=function(a){a.u=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.D=0;a.B=0};
cza=function(a,b,c){return Ue(this,function e(){var f,h,l,m,n,p,r,t;return xa(e,function(w){switch(w.u){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){w.u=2;break}h=window.crypto.subtle;l={name:"HMAC",hash:{name:"SHA-256"}};m=["sign"];n=new Uint8Array(b.length+c.length);n.set(b);n.set(c,b.length);w.C=3;return sa(w,h.importKey("raw",a,l,!1,m),5);case 5:return p=w.B,sa(w,h.sign(l,p,n),6);case 6:r=w.B;f=new Uint8Array(r);ta(w,2);break;case 3:ua(w);case 2:if(!f){t=new z_(a);
t.update(b);t.update(c);var x=bza(t);t.update(t.F);t.update(x);x=bza(t);t.reset();f=x}return w["return"](f)}})})};
eza=function(a,b,c){return Ue(this,function e(){var f,h,l,m,n,p;return xa(e,function(r){switch(r.u){case 1:if(!(window.crypto&&window.crypto.subtle&&window.crypto.subtle.importKey)){r.u=2;break}h=window.crypto.subtle;l={name:"AES-CTR",counter:c,length:128};r.C=3;return sa(r,dza(a),5);case 5:return m=r.B,sa(r,h.encrypt(l,m,b),6);case 6:n=r.B;f=new Uint8Array(n);ta(r,2);break;case 3:ua(r);case 2:return f||(p=new AS(a),hra(p,c),f=p.encrypt(b)),r["return"](f)}})})};
dza=function(a){return window.crypto.subtle.importKey("raw",a,{name:"AES-CTR"},!1,["encrypt"])};
A_=function(a){var b=this,c=new AS(a);return function(d,e){return Ue(b,function h(){return xa(h,function(l){hra(c,e);return l["return"](new Uint8Array(c.encrypt(d)))})})}};
B_=function(a){this.u=a;this.iv=mZ(Pt())};
fza=function(a,b){return Ue(a,function d(){var e=this;return xa(d,function(f){return f["return"](cza(e.u.B,b,e.iv))})})};
C_=function(a){this.B=a;this.D=this.u=0;this.C=-1};
D_=function(a){var b=dw(a.B,a.u);++a.u;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=dw(a.B,a.u),++a.u,d*=128,c+=(b&127)*d;return c};
E_=function(a,b){for(a.D=b;a.u+1<=a.B.totalLength;){var c=a.C;0>c&&(c=D_(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.C=c;break}switch(e){case 0:D_(a);break;case 1:a.u+=8;break;case 2:c=D_(a);a.u+=c;break;case 5:a.u+=4}}return!1};
F_=function(a,b,c){c=void 0===c?0:c;return E_(a,b)?D_(a):c};
G_=function(a,b){var c=void 0===c?"":c;if(!E_(a,b))return c;c=D_(a);if(!c)return"";var d=bw(a.B,a.u,c);a.u+=c;return g.v.TextDecoder?(new TextDecoder).decode(d):g.We(d)};
H_=function(a,b){var c=void 0===c?null:c;if(!E_(a,b))return c;c=D_(a);var d=bw(a.B,a.u,c);a.u+=c;return d};
gza=function(a){this.iv=H_(new C_(a),5)};
hza=function(a){a=H_(new C_(a),4);this.u=new gza(new Vv([a]))};
jza=function(a){a=new C_(a);this.u=F_(a,1);this.itag=F_(a,3);this.lastModifiedTime=F_(a,4);this.xtags=G_(a,5);F_(a,6);F_(a,8);F_(a,9,-1);F_(a,10);this.formatId=this.itag+";"+this.lastModifiedTime+";"+this.xtags;this.isAudio="audio"===iza[Ox[""+this.itag]]};
kza=function(a){this.body=null;a=new C_(a);this.onesieProxyStatus=F_(a,1,-1);this.body=H_(a,4)};
lza=function(a){a=new C_(a);this.startTimeMs=F_(a,1);this.endTimeMs=F_(a,2)};
mza=function(a){var b=new C_(a);a=G_(b,3);var c=F_(b,5);this.u=F_(b,7);var d=H_(b,14);this.B=new lza(new Vv([d]));b=G_(b,15);this.formatId=a+";"+c+";"+b};
nza=function(a){this.C=a;this.B=!1;this.u=[]};
oza=function(a){for(;a.u.length&&!a.u[0].isEncrypted;){var b=a.u.shift();a.C(b.streamId,b.buffer)}};
pza=function(a){var b,c;return Ue(this,function e(){var f=this,h,l,m,n;return xa(e,function(p){switch(p.u){case 1:h=f;if(null===(c=null===(b=window.crypto)||void 0===b?void 0:b.subtle)||void 0===c||!c.importKey)return p["return"](A_(a));l=window.crypto.subtle;p.C=2;return sa(p,dza(a),4);case 4:m=p.B;ta(p,3);break;case 2:return ua(p),p["return"](A_(a));case 3:return p["return"](function(r,t){return Ue(h,function x(){var y,E;return xa(x,function(D){if(1==D.u){if(n)return D["return"](n(r,t));y={name:"AES-CTR",
counter:t,length:128};D.C=2;E=Uint8Array;return sa(D,l.encrypt(y,m,r),4)}if(2!=D.u)return D["return"](new E(D.B));ua(D);n=A_(a);return D["return"](n(r,t))})})})}})})};
I_=function(a){g.O.call(this);var b=this;this.D=a;this.u={};this.B={};this.C=this.iv=null;this.queue=new nza(function(c,d){b.ba();b.V("STREAM_DATA",{formatId:c,data:d})})};
qza=function(a,b,c){if(1!==b.getLength()){var d=dw(b,0);b=bw(b,1);d=a.u[d]||null;a.ba();d&&(a=a.queue,a.u.push({streamId:d,buffer:b,isEncrypted:c}),a.B||oza(a))}};
rza=function(a,b){Ue(a,function d(){var e=this,f,h,l,m,n,p,r,t;return xa(d,function(w){switch(w.u){case 1:return e.ba(),e.V("PLAYER_RESPONSE_RECEIVED"),f=bw(b),w.C=2,sa(w,e.D(f,e.iv),4);case 4:h=w.B;ta(w,3);break;case 2:return l=ua(w),e.ba(),e.V("PLAYER_RESPONSE_FAILED",{errorInfo:l}),w["return"]();case 3:m=new kza(new Vv([h]));if(1!==m.onesieProxyStatus)return n={st:m.onesieProxyStatus},p=new IB("onesie.response.badproxystatus",!1,n),e.V("PLAYER_RESPONSE_FAILED",{errorInfo:p}),w["return"]();r=m.body;
t=g.v.TextDecoder?(new TextDecoder).decode(r):g.We(r);e.ba();e.V("PLAYER_RESPONSE_READY",t);w.u=0}})})};
J_=function(){this.u=0;this.C=void 0;this.B=new Uint8Array(4096);this.view=new DataView(this.B.buffer);g.v.TextEncoder&&(this.C=new TextEncoder)};
K_=function(a,b){var c=a.u+b;if(!(a.B.length>=c)){for(var d=2*a.B.length;d<c;)d*=2;c=new Uint8Array(d);c.set(a.B);a.B=c;a.view=new DataView(a.B.buffer)}};
L_=function(a,b){if(268435455<b){K_(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.u,c&127|128),c>>=7,a.u+=1;b=Math.floor(b/268435456)}for(K_(a,4);127<b;)a.view.setUint8(a.u,b&127|128),b>>=7,a.u+=1;a.view.setUint8(a.u,b);a.u+=1};
M_=function(a,b,c){L_(a,b<<3|2);b=c.length;L_(a,b);K_(a,b);a.B.set(c,a.u);a.u+=b};
N_=function(a,b,c){c=a.C?a.C.encode(c):new Uint8Array(mZ(g.Ve(c)).buffer);M_(a,b,c)};
O_=function(a){return new Uint8Array(a.B.buffer,0,a.u)};
sza=function(a){var b=a.encryptedOnesiePlayerRequest,c=a.encryptedClientKey,d=a.iv;a=a.hmac;this.serializeResponseAsJson=!0;this.encryptedOnesiePlayerRequest=b;this.encryptedClientKey=c;this.iv=d;this.hmac=a};
P_=function(a){var b=a.value;this.name=a.name;this.value=b};
tza=function(a){var b=a.httpHeaders,c=a.postBody;this.url=a.url;this.httpHeaders=b;this.postBody=c};
uza=function(a){this.Ox=a.Ox};
vza=function(a,b){if(b+1<=a.totalLength){var c=dw(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)c=dw(a,b++);else if(2===c){c=dw(a,b++);var d=dw(a,b++);c=(c&63)+64*d}else if(3===c){c=dw(a,b++);d=dw(a,b++);var e=dw(a,b++);c=(c&31)+32*(d+256*e)}else if(4===c){c=dw(a,b++);d=dw(a,b++);e=dw(a,b++);var f=dw(a,b++);c=(c&15)+16*(d+256*(e+256*f))}else c=b+1,a.focus(c),Zv(a,c,4)?c=$v(a).getUint32(c-a.C,!0):(d=dw(a,c+2)+256*dw(a,c+3),c=dw(a,c)+256*(dw(a,
c+1)+256*d)),b+=5;return[c,b]};
wza=function(a){this.B=a;this.u=new Vv};
xza=function(a){var b=g.q(vza(a.u,0));var c=b.next().value;var d=b.next().value;d=g.q(vza(a.u,d));b=d.next().value;d=d.next().value;!(0>c||0>b)&&d+b<=a.u.totalLength&&(d=a.u.split(d).hn.split(b),b=d.ku,d=d.hn,a.B(c,b),a.u=d,xza(a))};
zza=function(a){var b,c;a:{var d,e=a.T().Ai;if(e){var f=null===(c=yza())||void 0===c?void 0:c.primary;if(f&&e.baseUrl){c=new Ew("https://"+f+e.baseUrl);if(e=null===(d=a.Fv)||void 0===d?void 0:d.urlQueryOverride)for(d=Mw(e),d=g.q(Object.entries(d)),e=d.next();!e.done;e=d.next())f=g.q(e.value),e=f.next().value,f=f.next().value,c.set(e,f);if(!c.get("id")){e=gD(a.videoId);d=[];if(e)for(e=g.q(e),f=e.next();!f.done;f=e.next())d.push(f.value.toString(16).padStart(2,"0"));d=d.join("");if(!d){c=void 0;break a}c.set("id",
d)}break a}}c=void 0}!c&&(null===(b=a.Fv)||void 0===b?0:b.url)&&(c=new Ew(a.Fv.url));if(!c)return"";c.set("ack","1");c.set("cpn",a.clientPlaybackNonce);c.set("opr","1");c.set("pvi","135");c.set("pai","140");c.set("oad","0");c.set("ovd","0");c.set("oaad","0");c.set("oavd","0");return Fw(c)};
Q_=function(a,b,c){var d=this;this.videoData=a;this.ab=b;this.playerRequest=c;this.xhr=null;this.B=new yy;this.F=!1;this.D=new g.F(this.J,1E4,this);this.W=a.T();this.C=new B_(this.W.Ai.u);this.P=new wza(function(e,f){d.K.feed(e,f)});
g.Q(this.W.experiments,"html5_onesie_media_bytes")&&(this.u=new hA);this.K=Aza(this)};
Aza=function(a){var b=new I_(function(c,d){return a.C.decrypt(c,d)});
b.subscribe("FIRST_BYTE_RECEIVED",function(){a.ab.tick("orfb");a.F=!0});
b.subscribe("PLAYER_RESPONSE_READY",function(c){a.ab.tick("oprr");a.B.resolve(c);a.D.stop()});
b.subscribe("PLAYER_RESPONSE_RECEIVED",function(){a.ab.tick("orpr")});
b.subscribe("PLAYER_RESPONSE_FAILED",function(c){R_(a,c.errorInfo)});
a.u&&(b.subscribe("STREAM_STARTED",function(c){var d=a.u;d.u[c.formatId]={slices:new Vv,isComplete:!1,bytesShifted:0,bytesReceived:0};d.ba()}),b.subscribe("STREAM_METADATA",function(c){var d=a.u;
d.u[c.formatId].expectedBytes=c.numBytes;d.ba()}),b.subscribe("STREAM_DATA",function(c){var d=a.u,e=c.formatId;
c=c.data;d.u[e].slices.append(c);d.u[e].bytesReceived+=c.length;d.V("PROGRESS",{formatId:e});d.ba()}),b.subscribe("STREAM_ENDED",function(c){var d=a.u;
c=c.formatId;d.u[c].isComplete=!0;d.V("DONE",{formatId:c});d.ba()}));
return b};
R_=function(a,b){a.B.reject(b);a.D.stop();a.ab.tick("ore");a.xhr&&a.xhr.abort()};
Bza=function(a){for(var b=a.xhr;b.Uh();){var c=b.Xu();a.ba("handleAvailableSlices: slice length "+c.getLength());a.P.feed(c)}};
Dza=function(a){return Ue(a,function c(){var d=this,e,f;return xa(c,function(h){if(1==h.u)return sa(h,Cza(d),2);e=h.B;f={Ox:e};return h["return"](new uza(f))})})};
Cza=function(a){return Ue(a,function c(){var d=this,e,f,h,l,m;return xa(c,function(n){if(1==n.u)return sa(n,Eza(d),2);if(3!=n.u)return e=n.B,f=d.C.u.encryptedClientKey,h=d.C.iv,sa(n,fza(d.C,e),3);l=n.B;m={encryptedOnesiePlayerRequest:e,encryptedClientKey:f,iv:h,hmac:l};return n["return"](new sza(m))})})};
Eza=function(a){return Ue(a,function c(){var d=this,e,f,h;return xa(c,function(l){switch(l.u){case 1:var m=d.W.ra;m="https://youtubei.googleapis.com/youtubei/"+m.innertubeApiVersion+"/player?key="+m.innertubeApiKey;var n=[new P_({name:"Content-Type",value:"application/json"})],p=d.videoData.nf();p&&n.push(new P_({name:"Authorization",value:"Bearer "+p}));n.push(new P_({name:"User-Agent",value:g.Tc}));(p=d.videoData.visitorData||uo("VISITOR_DATA"))&&n.push(new P_({name:"X-Goog-Visitor-Id",value:p}));
(p=g.yB(d.W.experiments,"debug_sherlog_username"))&&n.push(new P_({name:"X-Youtube-Sherlog-Username",value:p}));p=JSON.stringify(d.playerRequest);e=new tza({url:m,httpHeaders:n,postBody:p});l.C=2;return sa(l,d.C.encrypt(e.mn()),4);case 4:f=l.B;ta(l,3);break;case 2:return ua(l),h=new IB("onesie.request.encrypt",!1),l["return"](Promise.reject(h));case 3:return l["return"](f)}})})};
Kza=function(a,b,c,d,e,f){function h(m){return Fza(l,a)?Gza(a,e,f,c).then(function(){S_(a)},function(n){S_(a,!0);
throw n;}):Hza(a,b,c,m)}
a.ma();a.Nd=!0;var l=a.T();return g.Q(l.experiments,"html5_onesie")&&g.Q(l.experiments,"html5_onesie_player_config")&&"yt"===l.Y?Iza(a).then(function(){return Jza(a,d,e,f)}).then(function(){S_(a)},function(m){m=KB(m);
if(m.u)return S_(a,!0),Promise.reject(m);c(m);return h("onesie")}):h("gvi")};
Fza=function(a,b){return(a.aa("web_player_gvi_wexit")||("MWEB"===a.deviceParams.c?a.aa("web_player_gvi_wexit_mweb"):g.LD(a)?a.aa("web_player_gvi_wexit_living_room"):g.WD(a)?a.aa("web_player_gvi_wexit_web"):g.$D(a)?a.aa("web_player_gvi_wexit_embeds"):a.aa("web_player_gvi_wexit_other"))||g.Q(a.experiments,"hoffle_api")&&II(b))&&"yt"===a.Y&&"adunit"!==DI(b)?!0:!1};
Iza=function(a){a=a.T().Ai;if(!a||!a.u)return Promise.reject(new IB("onesie.unavailable.hotconfig",!1,{key:"0"}));a={};Az()||(a.fetch="0");window.Uint8Array||(a.uint8="0");return 0<Object.keys(a).length?(a.onesie="0",Promise.reject(new IB("html5.missingapi",!1,a))):Promise.resolve()};
Lza=function(a){a=a.nf();var b=void 0;a&&(b=uM(),Object.assign(b.B,{Authorization:"Bearer "+a}));y_.u||(y_.u=new y_);return VS(b,y_.u)};
Jza=function(a,b,c,d){return Ue(this,function f(){var h,l,m,n,p,r;return xa(f,function(t){if(1==t.u)return a.fetchType="onesie",h=UT(a,c,d),l=new Q_(a,b,h),sa(t,l.fetch(),2);m=t.B;n={player_response:m};a.Nd=!1;a.Ko=l.u;a.sh(n,!0);if(a.Nd||uI(a))return t["return"](Promise.resolve());a.Ko=void 0;p={};a.errorCode?(p.ec=a.errorCode,p.ed=a.errorDetail,p.es=a.Li||""):p.successButUnplayable="1";r=new IB("onesie.response",!1,p);return t["return"](Promise.reject(r))})})};
Gza=function(a,b,c,d){return Ue(this,function f(){var h,l,m,n,p,r;return xa(f,function(t){switch(t.u){case 1:l=(h=a.isAd())?1:3,m=0;case 2:if(!(m<l)){t.u=4;break}if(!(0<m)){t.u=5;break}return sa(t,Lm(5E3),6);case 6:n=new g.nr("Retrying OnePlatform request",{attempt:m}),g.gr(n);case 5:return sa(t,Mza(a,b,c).then(function(){return!0},function(w){w=KB(w);
if(w.u)return Promise.reject(w);d(w);return!1}),7);
case 7:if(p=t.B)return t["return"]();m++;t.u=2;break;case 4:return r=h?"auth":"manifest.net.retryexhausted",t["return"](Promise.reject(new IB(r,!0,{backend:"op"})))}})})};
Mza=function(a,b,c){return Ue(this,function e(){var f,h,l,m,n,p,r,t,w,x,y,E,D,G,I;return xa(e,function(H){if(1==H.u)return f=Lza(a),h=UT(a,b,c),l=MS(Nza),m=(0,g.N)(),n=!1,p="empty",r=200,sa(H,AM(f,h,l),2);t=H.B;if(a.ma())return H["return"]();t?t.error?(n=!0,p="esf:"+t.error.message,r=t.error.code):t.errorMetadata&&(n=!0,p="its",r=t.errorMetadata.status):n=!0;if(n)return w=400===r||429===r,x=((0,g.N)()-m).toFixed(),y=window.fetch,E={backend:"op",rc:""+r,rt:x,reason:p,fetch_exists:y?"1":"0",fetch_polyfill:y.polyfill?
"1":"0",fetch_request:window.Request?"1":"0"},D="manifest.net.connect",429===r?D="auth":200<r&&(D="manifest.net.badstatus"),H["return"](Promise.reject(new IB(D,w,E)));a.Nd=!1;a.sh({raw_player_response:t},!0);if(a.errorCode)return G={ec:a.errorCode,ed:a.errorDetail,es:a.Li||""},H["return"](Promise.reject(new IB("auth",!0,G)));if(!a.Nd&&!uI(a))return I=a.isAd()?"auth":"manifest.net.retryexhausted",H["return"](Promise.reject(new IB(I,!0,{successButUnplayable:"1"})));H.u=0})})};
Hza=function(a,b,c,d){return Ue(this,function f(){var h,l,m,n,p,r,t,w,x;return xa(f,function(y){switch(y.u){case 1:h=function(){return!0},l=function(E){E=KB(E);
if(E.u)return Promise.reject(E);c(E);return!1},n=(m=a.isAd())?1:3,p=0;
case 2:if(!(p<n)){y.u=4;break}r=b;if(!(0<p)){y.u=5;break}return sa(y,Lm(5E3),6);case 6:t={playerretry:p,playerretrysrc:d},m||(t.recover="embedded"),r=dq(b,t);case 5:return sa(y,Oza(a,r).then(h,l),7);case 7:if(w=y.B)return y["return"]();p++;y.u=2;break;case 4:x=m?"auth":"manifest.net.retryexhausted";if(!m&&1E-4>Math.random())try{g.gr(new g.nr("b/152131571",btoa(b)))}catch(E){}return y["return"](Promise.reject(new IB(x,!0,{backend:"gvi"})))}})})};
Oza=function(a,b){return Ue(this,function d(){var e,f,h,l,m,n,p,r,t,w,x,y,E,D;return xa(d,function(G){if(1==G.u)return a.fetchType="gvi",e=a.T(),(l=lta(a))?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,pc:l},h=dq(b,{action_display_post:1})):(f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},h=b),m={},e.sendVisitorIdHeader&&a.visitorData&&(m["X-Goog-Visitor-Id"]=a.visitorData),(n=g.yB(e.experiments,"debug_dapper_trace_id"))&&(m["X-Google-DapperTraceInfo"]=n),(p=g.yB(e.experiments,
"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=p),0<Object.keys(m).length&&(f.headers=m),r=(0,g.N)(),t=function(I){if(!a.ma()){I=I?I.status:-1;var H=400===I||429===I,Ba=((0,g.N)()-r).toFixed();Ba={backend:"gvi",rc:""+I,rt:Ba};var la="manifest.net.connect";429===I?la="auth":200<I&&(la="manifest.net.badstatus");return Promise.reject(new IB(la,H,Ba))}},w=function(I){return t(I.xhr)},sa(G,VB(bt,h,f).then(void 0,w),2);
x=G.B;if(!x||!x.responseText)return G["return"](t(x));a.Nd=!1;y=Zp(x.responseText);a.sh(y,!0,void 0);if(a.errorCode)return E={ec:a.errorCode,ed:a.errorDetail,es:a.Li||""},G["return"](Promise.reject(new IB("auth",!0,E)));if(!a.Nd&&!uI(a))return D=a.isAd()?"auth":"manifest.net.retryexhausted",G["return"](Promise.reject(new IB(D,!0,{successButUnplayable:"1"})));G.u=0})})};
S_=function(a,b){b=void 0===b?!1:b;Ue(this,function d(){var e,f,h,l,m,n;return xa(d,function(p){if(1==p.u){e=a.T();if(b&&(!g.$D(e)||"embedded"!==DI(a))||a.wt||"adunit"!==DI(a)&&(g.LD(e)||ND(e)||ZD(e)||"WEB_CREATOR"===e.deviceParams.c))return p["return"]();p.C=2;f=Lza(a);h=Gsa(a);l=MS(Pza);return sa(p,AM(f,h,l),4)}if(2!=p.u)return m=p.B,(null===m||void 0===m?0:m.error)?g.gr(new g.nr("WatchNext Response Error (b/150306508)",m.error)):a.sh({raw_watch_next_response:m},!1),ta(p,0);n=ua(p);g.gr(new g.nr("WatchNext Request Error (b/150306508)",
n));p.u=0})})};
Qza=function(a,b,c,d,e,f){function h(){yG("virc");IG("virc","video_to_ad")}
yG("vir");IG("vir","video_to_ad");a=Kza(a,b,c,d,e,f);a.then(h,h);return a};
g.W_=function(a,b,c,d,e,f,h){g.O.call(this);var l=this;this.W=a;this.playerType=b;this.ab=c;this.lp=d;this.getVisibilityState=f;this.visibility=h;this.Sp=new Dya(g.P(this.W.experiments,"html5_min_has_advanced_secs_float"));this.Fc=null;this.Oo=new tZ;this.Ki=null;this.dg=new FZ(this.W,this.lp,this);this.Hy=!0;this.mediaSource=this.Aa=null;this.hh=[];this.hi=new x_;this.Fd=this.Mo=null;this.nj=new x_;this.Cr=null;this.ID=this.Hm=!1;this.Jv=NaN;this.tw=new g.F(this.aR,500,this);this.playerState=new g.NL;
this.Mv=[];this.yp=new Bt;this.videoData=new g.zH(this.W);this.ea=null;this.Lm=new g.F(this.tP,15E3,this);this.GA=new g.F(this.PQ,g.P(this.W.experiments,"html5_source_buffer_attach_delay_time")||15E3,this);this.QH=0;this.oA=this.tr=!1;this.El=NaN;this.Jn=!1;this.Np=0;this.kx=new g.F(this.sA,4500,this);this.Kq=!1;this.xu=NaN;this.mw=new yY(new Map([["bufferhealth",function(){var m=l.Ib;return m.ea?DS(m.ea):0}],
["bandwidth",function(){return l.hy()}],
["networkactivity",function(){return l.W.schedule.K}],
["livelatency",function(){return l.isAtLiveHead()&&l.Fb()?T_(l):NaN}],
["rawlivelatency",function(){return T_(l)}]]));
this.sx=!0;this.Pq=0;this.loop=!1;this.playbackRate=1;this.nE=0;this.Dl=null;this.dC=!1;this.Kv=[];this.bz=this.KG=0;this.nA=this.tI=!1;this.Ww=new g.F(this.LK,0,this);this.pe=null;this.Ov=void 0;this.lE=0;this.CF=new g.F(this.PJ,0,this);this.Pv=new g.F(this.zH,3E4,this);this.aO=[this.tw,this.yp,this.Ww,this.Lm,this.Pv,this.tw,this.kx,this.mw,this.CF,this.GA];this.Ye=function(){var m=l.Hb;m.provider.W.vf||3===m.provider.u.getVisibilityState()||(m.provider.W.vf=!0);pya(m);if(m.B){var n=m.B;n.F&&0>
n.u&&3!==n.provider.u.getVisibilityState()&&Rxa(n)}m.qoe&&(m=m.qoe,m.na&&0>m.B&&m.provider.W.vf&&Yxa(m));g.P(l.W.experiments,"html5_background_quality_cap")&&l.Aa&&U_(l);l.W.Rs&&!l.videoData.backgroundable&&l.ea&&!l.Ue()&&(l.isBackground()&&l.ea.av()?(l.Ka("bgmobile","suspend"),l.ii(!0)):l.isBackground()||V_(l)&&l.Ka("bgmobile","resume"))};
this.ba();this.Me=new f_(function(){return l.getCurrentTime()},function(){return l.getPlaybackRate()},function(){return l.getPlayerState()},function(m,n){m!==g.TF("endcr")||g.T(l.playerState,32)||aY(l);
e(m,n,l.playerType)});
g.C(this,this.Me);Rza(this,function(){return{}});
Sza(this);lva(this.Ye);this.visibility.subscribe("visibilitystatechange",this.Ye);Tza(this)};
Rza=function(a,b){!a.Hb||a.Hb.ma();a.Hb=new g.e_(new d_(a.videoData,a.W,a,b))};
Sza=function(a){!a.yc||a.yc.ma();a.yc=new zZ(a.videoData,a.W,a.visibility);a.yc.subscribe("newelementrequired",function(b){return VX(a,b)});
a.yc.subscribe("qoeerror",a.Ir,a);a.yc.subscribe("playbackstalledatstart",function(){return a.V("playbackstalledatstart")});
a.yc.subscribe("signatureexpiredreloadrequired",function(){return a.V("signatureexpired")});
a.yc.subscribe("releaseloader",function(){X_(a)});
a.yc.subscribe("pausevideo",function(){a.pauseVideo()});
a.yc.subscribe("clienttemp",a.Ka,a);a.yc.subscribe("highrepfallback",a.hP,a);a.yc.subscribe("playererror",a.Pd,a);a.yc.subscribe("removedrmplaybackmanager",function(){Y_(a)});
a.yc.subscribe("formatupdaterequested",function(){Z_(a)});
a.yc.subscribe("reattachvideosourcerequired",function(){Uza(a)})};
$_=function(a){var b=a.Hb;b.B&&b.B.send();if(b.qoe){var c=b.qoe;if(c.S){"PL"===c.Kc&&(c.Kc="N");var d=g.$X(c.provider);g.LZ(c,d,"vps",[c.Kc]);c.D||(0<=c.B&&(c.u.user_intent=[c.B.toString()]),c.D=!0);c.reportStats(d)}}if(b.provider.videoData.enableServerStitchedDai)for(c=g.q(b.D.values()),d=c.next();!d.done;d=c.next())kya(d.value);else b.u&&kya(b.u);b.dispose();g.Zf(a.Hb)};
QJ=function(a){return a.ea&&a.ea.ol()?a.ea.Xd():null};
a0=function(a){if(a.videoData.isValid())return!0;a.Pd("api.invalidparam",void 0,"invalidVideodata.1");return!1};
fT=function(a,b){b=void 0===b?!1:b;a.Ov&&a.aa("html5_match_codecs_for_gapless")&&(a.videoData.Oh=!0,a.videoData.Cl=!0,a.videoData.Pl=a.Ov.jy(),a.videoData.jn=a.Ov.ky());a.Hm=b;if(!a0(a)||a.hi.started)g.LD(a.W)&&a.videoData.isLivePlayback&&a.hi.started&&!a.hi.isFinished()&&!a.Hm&&a.Ax();else{a.hi.start();var c=a.Hb;g.$X(c.provider);c.qoe&&Xxa(c.qoe);a.Ax()}};
Vza=function(a){var b=a.videoData,c=a.lp.getPlayerSize(),d=a.getVisibilityState(),e=kta(a.W,a.videoData,c,d,a.isFullscreen());Qza(a.videoData,e,function(f){a.handleError(f)},a.ab,c,d).then(void 0,function(f){a.videoData!==b||b.ma()||(f=KB(f),"auth"===f.errorCode&&a.videoData.errorDetail?a.Pd("auth",unescape(a.videoData.errorReason),g.JB(f.details),a.videoData.errorDetail,a.videoData.Li||void 0):a.handleError(f))})};
ova=function(a,b){a.pe=b;a.Aa&&(a.Aa.fa=new zwa(b))};
Xza=function(a){if(!g.T(a.playerState,128))if(a.videoData.Qc(),a.sx=!0,a.ba(),4!==a.playerType&&(a.hh=g.rb(a.videoData.Kf)),tI(a.videoData)){b0(a).then(function(){a.ma()||(a.Hm&&V_(a),Wza(a,a.videoData),a.hi.finish(),c0(a,"dataloaded"),a.nj.started?d0(a):a.Hm&&a.tb(PL(PL(a.playerState,512),1)),Qxa(a.dg,a.Fd))});
a.Ka("loudness",""+a.videoData.Mr.toFixed(3),!0);var b=Kia(a.videoData);b&&a.Ka("playerResponseExperiment",b,!0);a.jx()}else c0(a,"dataloaded")};
b0=function(a){X_(a);a.Fd=null;var b=Fya(a.W,a.videoData,a.Ue());a.Mo=b;a.Mo.then(function(c){Yza(a,c)},function(c){a.ma()||(c=KB(c),a.visibility.isBackground()?(e0(a,"vp_none_avail"),a.Mo=null,a.hi.reset()):(a.hi.finish(),a.Pd(c.errorCode,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",g.JB(c.details))))});
return b};
Z_=function(a){a.ba();b0(a).then(function(){return V_(a)});
g.TL(a.playerState)&&a.playVideo()};
Yza=function(a,b){if(!a.ma()&&!b.videoData.ma()&&(a.ba(),a.Fd=b,Pya(a.Ib,a.Fd),!a.videoData.isLivePlayback||0<a.videoData.Zk&&!dI(a.videoData)||(a.seekTo(a.Jc()),f0(a,"playbackData")),a.videoData.La.u&&(Zza(a),a.Aa?g.gr(Error("Duplicated Loader")):$za(a)),g0(a),a.aa("html5_nonblocking_media_capabilities"))){var c=Date.now();Hxa(a.dg,b).then(function(){a.Ka("mclatency",(Date.now()-c).toString())})}};
Zza=function(a){!g.Q(a.W.experiments,"hoffle_save")&&!g.Q(a.W.experiments,"hoffle_cfl_lock_format")||!a.W.C||a.videoData.lengthSeconds>g.P(a.W.experiments,"hoffle_max_video_duration_secs")||0!==a.videoData.startSeconds||!a.videoData.offlineable||!a.videoData.va||a.videoData.va.isOtf||a.videoData.va.isLive||a.videoData.va.ce||ly(a.videoData.videoId)||(g.Q(a.W.experiments,"hoffle_cfl_lock_format")?(a.Ka("dlac","cfl"),a.videoData.vE=!0):(jI(a.videoData,!0),a.videoData.Sq=new XG(a.videoData.videoId,2,
{Qo:!0,qu:!0,videoDuration:a.videoData.lengthSeconds}),a.Ka("dlac","w")))};
h0=function(a){a.ba();a.ea&&a.ea.xo();fT(a);a0(a)&&!g.T(a.playerState,128)&&(a.nj.started||(a.nj.start(),a.tb(PL(PL(a.playerState,8),1))),d0(a))};
d0=function(a){a.ma();a.ba();if(a.nj.isFinished())a.ba();else if(a.hi.isFinished())if(g.T(a.playerState,128))a.ba();else if(a.hh.length)a.ba();else{if(!a.Me.started){var b=a.Me;b.started=!0;b.gk()}if(a.Rj())a.ba();else{a.Aa&&(b=a.Aa.timing,a.ID=!!b.u&&!!b.B);a.nj.isFinished()||a.nj.finish();!a.videoData.isLivePlayback||0<a.videoData.Zk&&!dI(a.videoData)||(a.ba(),a.seekTo(Infinity),f0(a,"readying"),a.isBackground()&&(a.oA=!0));b=a.Hb;if(b.u){var c=b.u;c.provider.videoData.iq&&c.provider.videoData.At&&
(b_(c,"connected"),gya(c))}b.qoe&&(b=b.qoe,b.provider.videoData.Fr&&QZ(b,b.provider.videoData.Fr),b.provider.videoData.isLivePlayback&&(c=b.provider.videoData.va,dI(b.provider.videoData)&&QZ(b,"manifestless"),c&&mC(c)&&QZ(b,"live-segment-"+mC(c).toFixed(1))),"yt"!==b.provider.W.Y&&(b.u.len=[b.provider.videoData.lengthSeconds.toFixed(2)]));a.ba();a.V("playbackready",a);FG("pbr",a.ab.timerName)||(a.ab.tick("pbr"),IG("pbr","video_to_ad"))}}else a.ba()};
aY=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.ea&&a.ea.pause();b=b?new g.NL(14):new g.NL;a.tb(b)};
Wza=function(a,b){if(b.endSeconds&&b.endSeconds>b.startSeconds){var c=b.endSeconds;a.Ki&&(a.removeCueRange(a.Ki),a.Ki=null);a.Ki=new g.QF(1E3*c,0x7ffffffffffff);a.Ki.namespace="endcr";a.addCueRange(a.Ki)}};
j0=function(a,b,c,d){a.videoData.Oa=c;d&&aAa(a,b,d);var e=(d=g.i0(a))?d.dc():"";d=a.Hb;c=new Bxa(a.videoData,c,b,e);if(d.qoe){d=d.qoe;e=g.$X(d.provider);g.LZ(d,e,"vfs",[c.u.id,c.B,d.qb,c.reason]);d.qb=c.u.id;var f=d.provider.u.getPlayerSize();if(0<f.width&&0<f.height){f=[Math.round(f.width),Math.round(f.height)];var h=g.VD();1<h&&f.push(h);g.LZ(d,e,"view",f)}d.fa||(d.provider.videoData.nk&&QZ(d,"rqs"),d.provider.videoData.va&&ZB(d.provider.videoData.va)&&(d.u.preload=["1"]));d.fa=!0;d.S=!0;"m"===
c.reason&&100===++d.Ac&&(c=d.u.fcnz,c||(c=[],d.u.fcnz=c),c.push("2"));g.LZ(d,e,"vps",[d.Kc]);d.reportStats(e)}c=a.dg;c.D=0;c.B=0;a.V("internalvideoformatchange",a.videoData,"m"===b)};
g.i0=function(a){var b=k0(a);return VC(b)||!a.Fd?null:g.fb(a.Fd.La.videoInfos,function(c){return b.D(c)})};
aAa=function(a,b,c){if(c!==a.videoData.pd){var d=!a.videoData.pd;a.videoData.pd=c;"m"!==b&&(b=d?"i":"a");var e=a.Hb;c=new Bxa(a.videoData,c,b,"");if(e.qoe){e=e.qoe;var f=g.$X(e.provider);c.u.id!==e.da&&(g.LZ(e,f,"afs",[c.u.id,e.da,c.reason]),e.da=c.u.id)}d||a.V("internalaudioformatchange",a.videoData,"m"===b)}};
k0=function(a){if(a.Fd){var b=a.dg;var c=a.Fd,d=a.Yn(),e=a.isBackground();a=Fxa(b);a=UC("auto",a,!1,"s");if(VC(a)){a=Gxa(b,c);var f=c.videoData.BI,h=Pxa(b,c);var l=g.P(b.W.experiments,"html5_autonav_quality_cap");var m=g.P(b.W.experiments,"html5_autonav_cap_idle_secs");l=l&&c.videoData.Nh&&Cp()/1E3>m?new SC(0,l,!1,"e"):iE;m=g.P(b.W.experiments,"html5_background_quality_cap");var n=g.P(b.W.experiments,"html5_background_cap_idle_secs");e=!m||"auto"!==Fxa(b)||Cp()/1E3<n?iE:e?new SC(0,m,!1,"v"):iE;m=
0;!b.W.u||g.CD(b.W)||Zq()||g.Q(b.W.experiments,"mweb_uniplayer_auto_quality")||g.Q(b.W.experiments,"hls_for_vod")||(m=g.Jx.medium);if(n=g.P(b.W.experiments,"html5_default_quality_cap")){var p=!!c.La.u&&!c.videoData.hg&&!c.videoData.Sd,r=g.P(b.W.experiments,"html5_quality_cap_min_age_secs");p&&r&&(p=b.W.schedule.F,p=(0,g.N)()-p>1E3*r);p&&(m=m?Math.min(m,n):n)}n=g.P(b.W.experiments,"html5_random_playback_cap");r=/[a-h]$/;n&&r.test(c.videoData.clientPlaybackNonce)&&(m=m?Math.min(m,n):n);(n=g.P(b.W.experiments,
"html5_not_vp9_supported_quality_cap"))&&!CB('video/webm; codecs="vp9"')&&(m=m?Math.min(m,n):n);if(r=n=g.P(b.W.experiments,"html5_hfr_quality_cap"))a:{r=c.La;if(r.u)for(r=g.q(r.videoInfos),p=r.next();!p.done;p=r.next())if(32<p.value.Na().fps){r=!0;break a}r=!1}r&&(m=m?Math.min(m,n):n);(n=g.P(b.W.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(m=m?Math.min(m,n):n);m=new SC(0,m,!1,"d");n=Dxa(b,c);r=n.compose;a:if((p=c.La)&&p.videoInfos.length){for(var t=g.q(p.videoInfos),w=t.next();!w.done;w=
t.next())if(w=w.value,w.D){p=w.Na().Cc;break a}p=p.videoInfos[0].Na().Cc}else p=0;Rq()&&!g.LD(b.W)&&Qx(c.La.videoInfos[0])&&(p=Math.min(p,g.Jx.large));p=new SC(0,p,!1,"o");a=r.call(n,p).compose(m).compose(e).compose(l).compose(h).compose(f).compose(a)}else b.aa("html5_perf_cap_override_sticky")&&(a=a.compose(Pxa(b,c)));b.aa("html5_varispeed_playback_rate")&&(a=a.compose(Gxa(b,c)));b=c.videoData.Dw.compose(a).compose(c.videoData.gC).compose(d)}else b=iE;return b};
esa=function(a,b){a.videoData.Dw=b;if(a.Fd){var c=a.dg,d=a.Fd;if(d.La.u){var e=g.Jx[GZ()];d=d.La.videoInfos[0].Na().Cc;if(!(e>d&&0!==d&&b.u===d)){bAa(WC(b));if(c.aa("html5_exponential_memory_for_sticky")){e=c.W.Ge;d=1;var f=void 0===f?!1:f;jD(e,"sticky-lifetime");e.values["sticky-lifetime"]&&e.Oj["sticky-lifetime"]||(e.values["sticky-lifetime"]=0,e.Oj["sticky-lifetime"]=0);f&&.0625<kD(e,"sticky-lifetime")&&(d=2*e.Oj["sticky-lifetime"]);e.values["sticky-lifetime"]+=1*Math.pow(2,e.u/d);e.Oj["sticky-lifetime"]=
d;e.D.start()}c.aa("html5_perf_cap_override_sticky")&&cAa(c.aa("html5_perserve_av1_perf_cap"))}}}g0(a)};
g0=function(a){if(!a.ma()&&!g.T(a.playerState,128)&&a.videoData.La){if(a.videoData.La.u)l0(a);else{var b=k0(a),c=a.videoData;a:{var d=a.videoData.lk;if(b.u){for(var e=g.q(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.Oe(),l=g.Jx[h.Na().quality];if((!b.C||"auto"!==h.Na().quality)&&l<=b.u){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.jh=d;j0(a,b.reason,dAa(a,a.videoData.jh))}a.Fb()&&(a.Ib.la=!1,a.playVideo())}};
l0=function(a){if(a.videoData.La&&a.videoData.La.u){var b=k0(a),c=a.videoData.Oa;if(!a.aa("html5_dynamic_av1_hybrid_threshold")&&c&&Sx(c)){var d=BC(a.W);if(d&&d<c.Na().Cc&&d!==a.lE){a.lE=d;b0(a);return}}if(a.Aa&&(a=a.Aa,!a.ma()&&!TC(a.B.F,b)&&a.videoTrack)){a.ba();var e=a.B.F;owa(a,Dha(a.B,b));VY(a);c=rE(a.B)&&"m"===b.reason&&a.B.fa;d=a.policy.Ge&&"l"===b.reason&&RA(a.videoTrack);b=("b"===b.reason||"o"===b.reason)&&e.u>b.u;e=a.B.Xb&&!MB();c||d||b||e?(a.bd("reattachOnConstraint",c?"u":d?"drm":e?"codec":
"perf"),a.V("reattachrequired")):g.kn(a.S)}}};
U_=function(a){a.aa("html5_nonblocking_media_capabilities")?l0(a):g0(a)};
$za=function(a){a.aa("html5_probe_media_capabilities")&&Cxa(a.videoData.La);Zga(a.videoData.va,{cpn:a.videoData.clientPlaybackNonce,c:a.W.deviceParams.c,cver:a.W.deviceParams.cver});var b=a.W,c=a.videoData,d=new g.Uw,e=Tw(b,{hasSubfragmentedFmp4:c.hasSubfragmentedFmp4,Ti:c.Ti});d.D=e;d.Ys=b.aa("html5_disable_codec_for_playback_on_error");d.Qs=b.aa("html5_max_drift_per_track_secs")||b.aa("html5_rewrite_manifestless_for_sync")||b.aa("html5_check_segnum_discontinuity");d.Dn=b.aa("html5_unify_sqless_flow");
d.jd=b.aa("html5_unrewrite_timestamps");d.lc=b.aa("html5_stop_overlapping_requests");d.pg=g.P(b.experiments,"html5_min_readbehind_secs");d.nB=g.P(b.experiments,"html5_min_readbehind_cap_secs");d.VI=g.P(b.experiments,"html5_max_readbehind_secs");d.JC=g.Q(b.experiments,"html5_trim_future_discontiguous_ranges");d.Ms=b.aa("html5_append_init_while_paused");d.Jg=g.P(b.experiments,"html5_max_readahead_bandwidth_cap");d.Sl=g.P(b.experiments,"html5_post_interrupt_readahead");d.P=g.P(b.experiments,"html5_subsegment_readahead_target_buffer_health_secs");
d.gd=g.P(b.experiments,"html5_subsegment_readahead_timeout_secs");d.NB=g.P(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs");d.Ac=g.P(b.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");d.OB=g.P(b.experiments,"html5_subsegment_readahead_min_load_speed");d.Cn=g.P(b.experiments,"html5_subsegment_readahead_load_speed_check_interval");d.PB=g.P(b.experiments,"html5_subsegment_readahead_seek_latency_fudge");d.Ai=b.aa("html5_peak_shave");d.rB=b.aa("html5_peak_shave_always_include_sd");
d.EB=b.aa("html5_restrict_streaming_xhr_on_sqless_requests");d.KI=g.P(b.experiments,"html5_max_headm_for_streaming_xhr");d.tB=b.aa("html5_pipeline_manifestless_allow_nonstreaming");d.xB=b.aa("html5_prefer_server_bwe3");d.Fn=1024*g.P(b.experiments,"html5_video_tbd_min_kb");d.Tl=b.aa("html5_probe_live_using_range");d.qH=b.aa("html5_last_slice_transition");d.LB=b.aa("html5_store_xhr_headers_readable");d.nu=b.aa("html5_enable_packet_train_response_rate");if(e=g.P(b.experiments,"html5_probe_secondary_during_timeout_miss_count"))d.Ul=
e,d.TB=1;d.Ta=g.P(b.experiments,"html5_probe_primary_delay_base_ms")||d.Ta;d.zi=b.aa("html5_no_placeholder_rollbacks");d.MB=b.aa("html5_subsegment_readahead_enable_mffa");b.aa("html5_allow_video_keyframe_without_audio")&&(d.ga=!0);d.vn=b.aa("html5_reattach_on_stuck");d.sE=b.aa("html5_webm_init_skipping");d.yn=g.P(b.experiments,"html5_request_size_padding_secs")||d.yn;d.Gu=b.aa("html5_log_timestamp_offset");d.Dd=b.aa("html5_abs_buffer_health");d.lH=b.aa("html5_interruption_resets_seeked_time");d.Ig=
g.P(b.experiments,"html5_max_live_dvr_window_plus_margin_secs")||d.Ig;d.Lf=b.aa("html5_explicitly_dispose_xhr");d.KB=b.aa("html5_skip_invalid_sq");d.DB=b.aa("html5_restart_on_unexpected_detach");d.lI=b.aa("html5_log_live_discontinuity");d.FB=b.aa("html5_rewrite_manifestless_for_continuity");d.ng=g.P(b.experiments,"html5_manifestless_seg_drift_limit_secs");d.Hg=g.P(b.experiments,"html5_max_drift_per_track_secs");d.HB=b.aa("html5_rewrite_manifestless_for_sync");d.Ub=g.P(b.experiments,"html5_static_abr_resolution_shelf");
d.Ps=!b.aa("html5_encourage_array_coalescing");d.Ts=b.aa("html5_crypto_period_secs_from_emsg");d.xt=b.aa("html5_disable_reset_on_append_error");d.yv=b.aa("html5_filter_non_efficient_formats_for_safari");d.oB=b.aa("html5_format_hybridization");d.Gp=b.aa("html5_abort_before_separate_init");d.SC=b.aa("html5_update_end_time_for_blockgroup");b.aa("html5_media_common_config_killswitch")||(d.F=c.maxReadAheadMediaTimeMs/1E3||d.F,e=b.schedule,e.u.u()===e.policy.C?d.S=10:d.S=c.minReadAheadMediaTimeMs/1E3||
d.S,d.vf=c.readAheadGrowthRateMs/1E3||d.vf);qg&&(d.X=41943040);d.la=!TB();g.LD(b)||!TB()?(e=b.experiments,d.J=8388608,d.K=524288,d.Os=5,d.Lb=2097152,d.Y=1048576,d.BB=1.5,d.qB=!1,d.yb=4587520,Uq()&&(d.yb=786432),d.u*=1.1,d.B*=1.1,d.qb=!0,d.X=d.J,d.Xb=d.K,d.Lg=g.Q(e,"persist_disable_player_preload_on_tv")||g.Q(e,"persist_disable_player_preload_on_tv_for_living_room")||!1):b.u&&(d.u*=1.3,d.B*=1.3);g.DB&&Pq("crkey")&&(e="CHROMECAST/ANCHOVY"===b.deviceParams.cmodel,d.J=20971520,d.K=1572864,e&&(d.yb=812500,
d.xn=1E3,d.kE=5,d.Y=2097152));!b.aa("html5_disable_firefox_init_skipping")&&g.KC&&(d.qb=!0);b.supportsGaplessAudio()||(d.Pt=!1);uD&&(d.Bl=!0);Yq()&&(d.An=!0);var f,h,l;if(dI(c)){d.zv=!0;d.JB=!0;if("ULTRALOW"===c.latencyClass||"LOW"===c.latencyClass&&!b.aa("html5_disable_low_pipeline"))d.DI=2,d.MI=4;d.Gj=c.defraggedFromSubfragments;c.Zc&&(d.Za=!0);g.xI(c)&&(d.ra=!1);d.Rs=g.YD(b)}c.isAd()&&(d.Ma=0,d.Qf=0);fI(c)&&(d.fa=!0,b.aa("html5_resume_streaming_requests")&&(d.vb=!0,d.xn=400,d.HI=2));d.na=b.aa("html5_enable_subsegment_readahead_v3")||
b.aa("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===c.latencyClass;d.Ba=c.nk;d.EH=d.Ba&&(/^rq[a-f]/.test(c.clientPlaybackNonce)||KH(c));dr()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(b.deviceParams.cmodel)&&!b.aa("html5_disable_move_pssh_to_moov")&&(null===(f=c.va)||void 0===f?0:YB(f))&&(d.qb=!1);if(null===(h=c.va)||void 0===h?0:YB(h))d.vn=!1;h=0;b.aa("html5_live_use_alternate_bandwidth_window_sizes")&&(h=b.schedule.policy.u,c.isLivePlayback&&(h=g.P(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.S.u=dI(c)?.5:0;if(!f.policy.B&&h&&(f=f.u,h=Math.round(h*f.resolution),h!==f.B)){e=Array(h);var m=Math.min(h,f.D?f.B:f.valueIndex),n=f.valueIndex-m;0>n&&(n+=f.B);for(var p=0;p<m;++p)e[p]=f.values[(n+p)%f.B];for(;p<h;++p)e[p]=Infinity;f.B=h;f.values=e;f.valueIndex=m%h;f.D=m===h;f.J=!0;f.P=ZA(f)}d.Pa=c.isLivePlayback;switch(eI(c)){case 21530001:d.pB=
b.aa("html5_live_smoothly_extend_max_seekable_time");d.na=!0;"LOW"===c.latencyClass?d.P=g.P(b.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===c.latencyClass&&(d.P=g.P(b.experiments,"html5_jumbo_ull_subsegment_readahead_target"));d.zi=!0;break;case 2153E4:d.na=!1}d.Bl=d.Bl||c.Bl;d.da=c.Oh;KH(c)&&(d.Rf=!0);!c.Oh||null!==(l=c.va)&&void 0!==l&&YB(l)||!b.aa("html5_hack_gapless_init")||(d.zn=!0);(l=g.P(b.experiments,"html5_gapless_ad_byterate_multiplier"))&&c.Oh&&c.isAd()&&(d.u*=
l,d.B*=l);JI(c)?(d.C=c.videoId,d.Dd=!0,JI(c)&&c.Bh&&(d.Bh=!0)):c.vE&&(d.Bn=!0);b.aa("html5_drm_initial_constraint_from_config")?d.Ge=c.gq:d.Ge=b.aa("html5_drm_start_from_null_constraint");b.aa("html5_dynamic_av1_hybrid_threshold")&&(d.Et=!0,d.Ha=BC(b,{},c.La||void 0));c=Yz();l=g.P(b.experiments,"html5_deadzone_multiplier")||1;(f=g.P(b.experiments,"html5_sticky_reduces_discount_by"))&&c&&(l-=f);d.u*=l;d.B*=l;if(l=g.P(b.experiments,"html5_request_sizing_multiplier"))d.CB=l;d.Kg=g.P(b.experiments,"html5_min_upgrade_health")||
d.Kg;xC(b.D,yC.BITRATE)&&(d.yb=NaN);b.D.C&&(d.vu="; "+yC.EXPERIMENTAL.name+"=allowed");c&&(d.En=0,d.Ub=0);d.yB=b.aa("html5_rec_2020_matrix_correction_killswitch");c=d.Pa&&!b.aa("html5_pause_appends_killswitch");d.Pa=c||b.aa("html5_never_pause_appends");g.Q(b.experiments,"html5_prefer_low_quality_audio_means_64k")&&uD&&(d.wB=!0);g.Q(b.experiments,"debug_html5_random_stun_format")&&(d.Vl=!0);g.Q(b.experiments,"html5_urgent_adaptation_when_stun")&&(d.JD=!0);g.Q(b.experiments,"html5_log_audio_abr")&&
(d.ZH=!0);b=b.experiments;g.Q(b,"html5_validate_lengthless_slices_killswitch")&&(d.jE=!1);g.Q(b,"html5_audio_only_eos_fix_killswitch")&&(d.Ns=!0);g.Q(b,"html5_reject_promise_if_seeking_to_head_killswitch")&&(d.zB=!0);g.Q(b,"html5_check_seeking_for_cuepoints_killswitch");g.Q(b,"html5_rewrite_webm_track_uid_killswitch")&&(d.An=!1);b=a.getAudioTrack();b=b.u.isDefault?void 0:b;c=a.Oo;c.keys=[];c.values=[];a.Aa=new SY(a.W.schedule,d,a.videoData.va,a.videoData.La,k0(a),b,a.Me,a.videoData.enableServerStitchedDai,
a.videoData.Ko);a.Aa.subscribe("needkeyinfo",a.eG,a);a.Aa.subscribe("newDrmInfo",a.NP,a);a.Aa.subscribe("videoformatchange",a.Oz,a);a.Aa.subscribe("audioformatchange",a.vP,a);a.Aa.subscribe("error",a.handleError,a);a.Aa.subscribe("ctmp",a.Ka,a);a.Aa.subscribe("reattachrequired",a.UR,a);a.Aa.subscribe("metadata",a.YF,a);a.Aa.subscribe("constraint",a.iR,a);a.Aa.subscribe("timestamp",a.Gu,a);a.Aa.subscribe("localmediachange",a.wP,a);a.Aa.subscribe("localplaybackfailed",a.zJ,a);d=eAa(a)?!0:a.Hm&&g.LD(a.W)&&
a.videoData.isLivePlayback;a.Aa.initialize(a.getCurrentTime(),k0(a),d);a.videoData.probeUrl&&(a.Aa.la=a.videoData.probeUrl);(a.hh.length||a.Hm)&&m0(a,!1);v_(a.Ib,a.Aa);a.yc.Aa=a.Aa;a.pe&&(a.Aa.fa=new zwa(a.pe));KI(a.videoData)&&(a.Aa.policy.wu=2)};
Tza=function(a){a.Ib=new s_(a.videoData,a.W,a.visibility,function(){return g.jb(a.hh,"ad")});
g.C(a,a.Ib);a.Ib.subscribe("seekto",function(b,c){a.Ib.C=b;var d=a.Sp;d.mediaTime=b;d.u=!0;c||n0(a);a.Ki&&b>a.videoData.endSeconds&&isFinite(b)&&(a.removeCueRange(a.Ki),a.Ki=null);b<a.Jc()-.01&&(d=QL(a.playerState,2),g.T(d,8)&&(d=QL(d,4)),a.tb(d));a.V("SEEK_TO",a,b)});
a.Ib.subscribe("seekstart",function(){jY(a)});
a.Ib.subscribe("seekend",function(){return a.V("SEEK_COMPLETE")});
a.Ib.subscribe("newmediaelementrequired",function(){return VX(a)});
a.Ib.subscribe("ended",function(){aY(a)});
a.Ib.subscribe("ctmp",a.Ka,a);a.Ib.subscribe("qoeerror",a.Ir,a);a.Ib.subscribe("livereadaheadchanged",function(b){var c=a.Hb;c.qoe&&(c=c.qoe,g.LZ(c,g.$X(c.provider),"lra",[b]),c.Ka("live-readahead-seconds",b.toString()))});
a.Ib.subscribe("releaseadsprerolllock",function(){a.Tc("ad")});
a.Ib.subscribe("skipslowad",function(){a.Pd("ad.rebuftimeout","RETRYABLE_ERROR","skipslad.vid."+a.videoData.videoId)})};
X_=function(a){a.Aa&&(a.Aa.dispose(),a.Aa=null,v_(a.Ib,null),a.yc.Aa=null);o0(a)};
o0=function(a){if(a.mediaSource){a.ba();if(a.Aa){var b=dI(a.videoData)&&a.videoData.Zc&&!a.videoData.isAd();YY(a.Aa,b)}a.mediaSource.dispose();a.mediaSource=null}};
p0=function(a){if(a.mediaSource)return a.mediaSource.Vq;a.ba();fAa(a);return a.mediaSource?a.mediaSource.Vq:null};
fAa=function(a){if(a.aa("html5_application_media_source"))a.V("requestmediasource",a);else{var b=g.P(a.W.experiments,"html5_source_buffer_attach_retry_limit")||0;a.QH<b&&a.GA.start();try{var c=a.ea.wm()}catch(d){if(CZ(a.yc,"html5.missingapi",{updateMs:"1"}))return;g.gr(d);d.message="window.URL object overwritten by external code";window.setTimeout(function(){throw d;},0);
a.Pd("html5.missingapi","HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");return}UX(a,c)}};
UX=function(a,b){gAa(a);a.mediaSource=b;Kga(a.mediaSource,function(c){try{if(a.mediaSource&&(!c||a.mediaSource===c)){a.ba();var d=a.getDuration();!d&&dI(a.videoData)&&(d=g.P(a.W.experiments,"html5_manifestless_media_source_duration")||3600);a.mediaSource.isView?(c=d,a.ba(),c>a.mediaSource.getDuration()&&a.mediaSource.ji(c)):a.mediaSource.ji(d);var e=a.Aa,f=a.mediaSource;e.P&&(e.ba(),XY(e),e.P=!1);e.ba();gwa(e);if(!QB(f)){var h=e.videoTrack.u.info.mimeType+e.policy.vu,l=e.audioTrack.u.info.mimeType,
m,n,p=null===(m=f.mediaSource)||void 0===m?void 0:m.addSourceBuffer(l),r="fakesb"===h?void 0:null===(n=f.mediaSource)||void 0===n?void 0:n.addSourceBuffer(h);f.Yd&&(f.Yd.webkitSourceAddId("0",l),f.Yd.webkitSourceAddId("1",h));var t=new LB(p,f.Yd,"0",Nx(l),!1),w=new LB(r,f.Yd,"1",Nx(h),!0);f.u=t;f.B=w;g.C(f,t);g.C(f,w)}uA(e.videoTrack,f.B||null);uA(e.audioTrack,f.u||null);e.mediaSource=f;e.resume();Et(f.u,e.na,e);Et(f.B,e.na,e);e.policy.Gu&&1E-4>=Math.random()&&e.bd("toff",""+f.u.supports(1),!0);e.Zg();
a.V("mediasourceattached");a.GA.stop()}}catch(x){g.gr(x),a.handleError(new IB("fmt.unplayable",!0,{msi:"1",ename:x.name}))}})};
gAa=function(a){a.Aa?Bm(a.Aa.seek(a.getCurrentTime()-a.wc()),function(){}):$za(a)};
VX=function(a,b){b=void 0===b?!1:b;return Ue(a,function d(){var e=this;return xa(d,function(f){if(1==f.u)return e.Aa&&e.Aa.ma()&&X_(e),e.V("newelementrequired"),b?f=sa(f,b0(e),2):(f.u=2,f=void 0),f;g.T(e.playerState,8)&&e.playVideo();f.u=0})})};
iva=function(a,b){a.Ka("newelem",b);VX(a)};
n0=function(a){g.T(a.playerState,32)||(a.tb(PL(a.playerState,32)),g.T(a.playerState,8)&&a.pauseVideo(!0),a.V("beginseeking",a));a.Ob()};
jY=function(a){g.T(a.playerState,32)?(a.tb(RL(a.playerState,16,32)),a.V("endseeking",