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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
/*

 SPDX-License-Identifier: Apache-2.0
*/
/*

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.

 -----------------------------------------------------------------------------
 Ported from zlib, which is under the following license
 https://github.com/madler/zlib/blob/master/zlib.h

 zlib.h -- interface of the 'zlib' general purpose compression library
   version 1.2.8, April 28th, 2013
   Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
   This software is provided 'as-is', without any express or implied
   warranty.  In no event will the authors be held liable for any damages
   arising from the use of this software.
   Permission is granted to anyone to use this software for any purpose,
   including commercial applications, and to alter it and redistribute it
   freely, subject to the following restrictions:
   1. The origin of this software must not be misrepresented; you must not
      claim that you wrote the original software. If you use this software
      in a product, an acknowledgment in the product documentation would be
      appreciated but is not required.
   2. Altered source versions must be plainly marked as such, and must not be
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
   Jean-loup Gailly        Mark Adler
   jloup@gzip.org          madler@alumni.caltech.edu
   The data format used by the zlib library is described by RFCs (Request for
   Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
   (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
*/
/*


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
'use strict';var aa,baa,caa,la,daa,na,eaa,qa,sa,ta,xa,gaa,haa,Ha,Ia,iaa,jaa,Ka,kaa,La,Na,Pa,Ua,Va,maa,naa,lb,oaa,pb,qb,rb,vb,wb,paa,qaa,zb,saa,taa,Nb,uaa,Tb,vaa,waa,Qb,xaa,yaa,zaa,Aaa,Caa,Baa,Daa,cc,Eaa,fc,hc,kc,sc,tc,vc,wc,xc,Ac,Maa,Bc,Dc,Cc,Naa,Oaa,Paa,Qaa,Ec,Raa,Gc,Hc,Ic,Saa,Jc,Kc,Uaa,Vaa,Xaa,Qc,Rc,$aa,Sc,Vc,aba,bba,Zc,id,cba,td,vd,fba,gba,wd,lba,Cd,iba,kba,Ad,zd,Hd,Id,mba,Jd,nba,Md,Nd,oba,Pd,Wd,rba,tba,wba,Zd,Bba,fe,Dba,Cba,Iba,Jba,Kba,Mba,Nba,Pba,Sba,me,Uba,te,ve,ze,Ke,Le,Vba,Wba,Xba,Yba,Ve,
We,af,aca,cca,bca,hf,kf,dca,jf,Ne,Cf,fca,Ef,Df,Me,Kf,gca,Lf,Mf,Nf,hca,jca,lca,Tf,Uf,Vf,pca,rca,eg,sca,dg,wca,Rf,nca,yca,vca,tca,uca,zca,xca,fg,qca,ig,Bca,Cca,Dca,Eca,Fca,Gca,Hca,Ica,Jca,kg,Kca,Nca,Oca,Pca,Uca,og,Tca,Qca,Wca,Yca,$ca,qg,rg,cda,Ig,Jg,eda,Lg,Kg,fda,Mg,gda,hda,Ng,jda,kda,ida,Qg,Sg,Rg,Tg,Ug,Vg,Wg,lda,nda,Yg,oda,pda,Zg,th,wh,rda,sda,uda,vda,xda,xh,yda,yh,zda,zh,Ada,Ah,Bh,Bda,Ch,Dh,Eh,Cda,Dda,Ih,Eda,Jh,Kh,Lh,Mh,Nh,Fda,Gda,gi,hi,ii,Hda,Ida,Jda,Kda,Mda,ji,ki,Nda,Oda,li,mi,ni,Pda,qi,pi,ri,oi,
Qda,Rda,Sda,si,ti,ui,vi,Tda,yi,Vda,M,Wda,Yda,Xda,Zda,$da,Ki,aea,bea,Mi,Ni,Pi,Oi,Ri,Qi,Si,Ui,Vi,eea,fea,Wi,Xi,lj,nj,mj,gea,pj,qj,rj,oj,hea,cea,iea,jea,tj,uj,vj,wj,xj,kea,yj,lea,mea,zj,nea,Aj,Bj,oea,Cj,pea,Ej,qea,Fj,Gj,Hj,Ij,Jj,Kj,N,Lj,ik,O,jk,kk,Q,lk,mk,ok,tea,sea,uea,xea,yea,zea,rk,Aea,Bea,nk,Cea,wea,sk,tk,uk,vk,wk,xk,Eea,Fea,yk,Gea,zk,Ak,Bk,Ck,Dk,Ek,Fk,Iea,Jea,Lea,Kea,Mea,Ik,Jk,Kk,Oea,Pea,Qea,Lk,Mk,Nk,tl,ul,Sea,yl,Tea,zl,Al,Bl,Uea,Vea,El,Wea,Fl,Gl,Zea,Hl,Il,Jl,Kl,Ll,Ml,Nl,Ol,Pl,$ea,nm,bfa,cfa,dfa,
ffa,efa,afa,Ql,gfa,hfa,pm,jfa,om,qm,kfa,sm,lfa,ofa,tm,um,pfa,rfa,sfa,ufa,tfa,vfa,wm,wfa,zm,zfa,Dm,Em,Fm,Afa,Gm,Hm,Im,Bfa,Cfa,Dfa,Jm,Ffa,Km,Gfa,Lm,Hfa,Ifa,Nm,Jfa,Kfa,Lfa,Ofa,Mfa,Om,Pfa,Pm,Qfa,Rfa,Qm,yn,Sfa,zn,An,Ufa,Vfa,Bn,Cn,Xfa,Yfa,Zfa,Fn,Gn,Jn,$fa,cga,aga,dga,ega,hga,Kn,Ln,Mn,Nn,On,Pn,Qn,Rn,iga,Sn,Tn,Un,Vn,Wn,mga,jga,Zn,lga,$n,kga,Yn,Xn,bo,oga,eo,co,pga,qga,ko,lo,no,tga,mo,qo,uga,ro,rga,xga,yga,zga,uo,vo,wo,Aga,xo,yo,zo,Ao,Bga,Bo,Co,Do,Cga,Dga,ap,Ega,bp,Hga,Iga,Jga,Kga,Fga,cp,dp,ep,fp,Mga,Nga,Lga,
gp,Oga,Pga,Qga,kp,Rga,lp,mp,Tga,Uga,np,op,pp,qp,rp,sp,tp,up,Vga,vp,wp,Wga,Yga,Xga,xp,Zga,$ga,yp,zp,Ap,Bp,Cp,Dp,Ep,aha,Fp,Gp,Hp,bha,dha,eha,Jp,Lp,Kp,Np,Op,Pp,gha,hha,Qp,Rp,Sp,jha,kha,nha,lha,oha,sha,Tp,rha,pha,Up,Vp,tha,Wp,uha,Xp,wha,vha,xha,yha,aq,bq,zha,Aha,Bha,cq,dq,Cha,eq,Dha,Eha,Gha,Kha,fq,Lha,Mha,Nha,Oha,Pha,$q,Qha,Rha,Sha,gr,fr,er,Tha,Uha,Vha,hr,ir,jr,Xha,or,pr,qr,rr,sr,tr,Zha,$ha,aia,ur,wr,xr,Br,Cr,Fr,cia,eia,dia,fia,gia,Lr,hia,iia,Mr,jia,kia,lia,mia,Qr,Or,Rr,Sr,Tr,nia,oia,pia,Ur,Vr,Wr,qia,
ria,sia,Xr,tia,Yr,Zr,uia,via,wia,xia,yia,zia,$r,as,bs,ds,Cia,es,fs,Dia,Bia,cs,Eia,gs,hs,is,ks,js,Fia,Gia,Hia,ls,Jia,ms,Lia,Mia,Nia,Oia,Pia,Qia,Ria,Sia,ps,qs,rs,Uia,Tia,Via,Wia,us,Xia,vs,Yia,Zia,ws,Ds,Es,$ia,Fs,Gs,aja,Hs,Is,Js,Ks,Ls,Ms,Ns,Os,bja,cja,dja,eja,Ps,fja,hja,gja,Rs,Ss,jja,ija,oja,nja,Ts,pja,qja,rja,tja,sja,uja,Us,vja,wja,Ws,xja,yja,zja,Aja,Xs,Bja,Ys,Cja,Zs,$s,Eja,at,Fja,bt,ct,Gja,Hja,dt,ft,Jja,gt,Ija,Kja,Lja,Mja,Oja,ht,Pja,lt,mt,Rja,Sja,Vja,Wja,nt,ot,pt,qt,rt,tt,ut,vt,wt,xt,zt,At,Bt,$ja,
Zja,aka,cka,bka,eka,Yja,dka,Xja,Ct,Dt,gka,hka,ika,Ht,It,Jt,Et,kka,Kt,fka,mka,nka,lka,Lt,Mt,Nt,Ot,oka,jka,pka,Pt,qka,rka,ska,tka,uka,xka,yka,zka,Aka,Bka,Eka,St,Gka,Rt,Ut,Hka,Vt,Xt,Yt,Ika,Jka,eu,Kka,Lka,fu,Mka,qu,nu,ou,pu,Nka,uu,tu,Oka,wu,Pka,Rka,xu,Ska,Tka,Yka,Uka,Du,Eu,dla,Fu,Gu,Hu,fla,Ku,gla,hla,Lu,jla,Nu,Ou,Pu,kla,Ru,Su,Tu,Uu,Wu,Xu,mla,nla,$u,av,bv,cv,dv,ev,ola,pla,qla,rla,sla,tla,fv,ula,mv,vla,wla,xla,nv,pv,qv,rv,vv,wv,xv,zla,Av,Bv,Cv,Ala,Bla,Dv,Cla,Dla,Fv,Lla,Mla,Nla,Gv,Ola,Pla,Sla,Tla,Kv,Ula,
Mv,Nv,Ov,Pv,Qv,Rv,Sv,Tv,Uv,Vv,Wv,Xv,Yv,Zv,$v,aw,bw,cw,dw,ew,fw,gw,hw,iw,jw,kw,lw,mw,nw,ow,pw,qw,rw,tw,uw,vw,ww,xw,yw,zw,Aw,Bw,Cw,Dw,Ew,Fw,Gw,Hw,Iw,Jw,Kw,Lw,Mw,Nw,Ow,Pw,Qw,Rw,Sw,Tw,Uw,Vw,Ww,Xw,Yw,gx,hx,ix,jx,kx,Vla,lx,mx,nx,ox,px,qx,rx,sx,tx,ux,wx,xx,yx,zx,Ax,Bx,Cx,Dx,Ex,Fx,Gx,Hx,Ix,Jx,Kx,Lx,Mx,Nx,Ox,Px,Qx,Rx,Sx,Tx,Ux,Vx,Wx,Xx,Yx,Zx,$x,ay,by,cy,dy,ey,fy,gy,hy,iy,jy,ky,ly,my,ny,oy,py,qy,ry,sy,ty,uy,vy,wy,yy,zy,Ay,By,Cy,Dy,Ey,Fy,Gy,Hy,Iy,Jy,Ky,Ly,My,Ny,Oy,Py,Qy,Ry,Sy,Ty,Uy,Vy,Wy,Xy,Yy,Zy,$y,cz,dz,ez,
fz,gz,hz,iz,jz,kz,lz,mz,nz,oz,pz,qz,rz,sz,tz,uz,vz,wz,xz,yz,zz,Az,Bz,Cz,Dz,Ez,Fz,Gz,Hz,Iz,Jz,Kz,Lz,Mz,Nz,Oz,Pz,Qz,Rz,Sz,Tz,Uz,Vz,Wz,Xz,Yz,Zz,$z,aA,bA,cA,dA,eA,fA,gA,hA,iA,jA,kA,sA,tA,uA,vA,wA,xA,yA,zA,AA,BA,CA,DA,EA,FA,GA,HA,IA,JA,KA,LA,MA,NA,OA,PA,QA,RA,SA,TA,UA,VA,WA,XA,YA,ZA,$A,aB,bB,cB,dB,eB,fB,Wla,gB,hB,Xla,iB,jB,Yla,Zla,kB,$la,ama,lB,bma,cma,dma,ema,fma,gma,hma,ima,jma,kma,mB,lma,mma,nB,nma,oB,pB,oma,pma,qB,qma,rma,rB,sma,sB,tma,tB,uB,vB,wB,uma,xB,yB,zB,AB,vma,BB,CB,wma,xma,DB,EB,FB,yma,GB,
zma,Ama,Bma,HB,Cma,Dma,Ema,IB,Fma,Gma,JB,KB,Hma,LB,MB,Ima,NB,Jma,OB,Kma,Lma,Mma,QB,RB,Oma,Pma,Nma,Qma,Rma,XB,YB,ZB,$B,aC,cC,dC,Vma,eC,fC,Wma,Sma,gC,Zma,bna,hC,dna,fna,nC,gna,hna,jna,nna,lna,mna,ona,ina,qC,pC,pna,sC,tC,uC,zna,Ana,Bna,Cna,Dna,Ena,AC,Fna,CC,Gna,Hna,DC,Jna,Kna,GC,IC,Lna,Mna,JC,KC,LC,MC,Ona,NC,Qna,Pna,Sna,PC,Tna,Xna,Vna,Wna,Yna,Zna,$na,doa,eoa,aoa,hoa,RC,ioa,UC,joa,koa,TC,VC,moa,noa,qoa,ZC,roa,soa,$C,aD,bD,dD,uoa,woa,jD,xoa,yoa,zoa,Aoa,Boa,Eoa,Foa,Goa,Doa,Hoa,Joa,Loa,qD,Moa,tD,rD,wD,xD,
Ooa,Roa,CD,DD,ED,FD,Voa,HD,Xoa,Yoa,Zoa,KD,apa,bpa,$oa,cpa,dpa,MD,epa,fpa,ND,gpa,QD,jpa,kpa,hpa,lpa,mpa,opa,npa,UD,ipa,qpa,rpa,spa,XD,tpa,upa,ZD,$D,vpa,xpa,bE,ypa,zpa,Bpa,Dpa,eE,Epa,Fpa,Gpa,Hpa,Ipa,Jpa,Kpa,Lpa,gE,Mpa,iE,Opa,Ppa,Qpa,Rpa,Spa,Tpa,nE,Wpa,Zpa,$pa,aqa,cqa,Vpa,dqa,eqa,fqa,Xpa,Ypa,jE,Upa,mE,bqa,lE,kE,gqa,hqa,iqa,jqa,kqa,lqa,rqa,mqa,qE,rE,sE,uqa,wqa,vqa,sqa,xqa,yE,Fqa,yqa,Eqa,AE,Gqa,Jqa,BE,zE,Hqa,Iqa,Kqa,DE,Mqa,Nqa,Oqa,Pqa,Qqa,Rqa,Sqa,Lqa,Uqa,Vqa,Wqa,Xqa,Yqa,FE,GE,HE,bra,IE,cra,dra,KE,LE,gra,
fra,hra,jra,lra,kra,ora,sra,qra,WE,tra,vra,VE,ura,XE,YE,wra,xra,yra,$E,Ara,cF,bF,dF,eF,fF,Dra,Era,hF,Fra,iF,Hra,Ira,Jra,Lra,Mra,Kra,lF,Ora,Nra,Pra,mF,Rra,nF,Tra,sF,Vra,tF,Ura,uF,vF,Xra,csa,esa,bsa,asa,dsa,zF,fsa,nsa,jsa,ksa,lsa,Wra,wsa,ysa,vsa,Bsa,usa,yF,Asa,isa,msa,xsa,gsa,Zra,Yra,$ra,BF,tsa,IF,Ksa,Jsa,Osa,Rsa,Qsa,Tsa,KF,LF,Vsa,Wsa,Xsa,Ysa,Zsa,$sa,ata,NF,cta,dta,eta,fta,gta,hta,ita,kta,lta,RF,nta,pta,ota,qta,sta,tta,xta,vta,zta,yta,Bta,Ata,SF,Qoa,Jta,Gta,Lta,Mta,Nta,Ota,Uta,Yta,Zta,aua,$ta,bua,bG,
dua,aG,Xta,Wta,YF,hua,fua,kG,jG,nG,oG,qG,jua,rG,kua,uG,vG,lua,mua,oua,pua,qua,rua,sua,tua,uua,vua,BG,xua,yua,Aua,Bua,Cua,Dua,Eua,Fua,Iua,Jua,DG,EG,Kua,FG,Lua,HG,Nua,Mua,JG,KG,LG,MG,Oua,NG,Pua,Qua,Rua,OG,Sua,Wua,Tua,Vua,Uua,Xua,PG,Yua,Zua,$ua,ava,QG,cva,fva,eva,RG,gva,SG,TG,UG,WG,XG,hva,iva,jva,YG,kva,lva,ova,qva,rva,tva,uva,vva,pva,nva,xva,ZG,bH,dH,zva,yva,eH,Ava,Bva,fH,gH,hH,iH,lH,Dva,mH,Eva,nH,oH,pH,Fva,Gva,sH,Hva,tH,Kva,Mva,Ova,Qva,Sva,Uva,vH,Vva,wH,Wva,Zva,$va,yH,bwa,AH,BH,CH,DH,EH,FH,GH,dwa,
HH,cwa,ewa,IH,gwa,fwa,JH,mwa,nwa,KH,LH,NH,owa,pwa,PH,QH,SH,qwa,TH,dI,swa,RH,uwa,vwa,ywa,zwa,Awa,Cwa,xwa,Dwa,Ewa,Fwa,eI,twa,Iwa,wwa,fI,Kwa,Mwa,iI,Nwa,Owa,jI,Pwa,gI,Qwa,kI,Rwa,Lwa,lI,Twa,mI,Ywa,Wwa,Vwa,Uwa,$wa,oI,pI,qI,rI,sI,tI,uI,wI,dxa,fxa,hxa,ixa,jxa,kxa,lxa,mxa,nxa,oxa,pxa,qxa,rxa,txa,xI,uxa,wxa,vxa,xxa,yxa,zxa,Bxa,Axa,Cxa,Fxa,Gxa,zI,AI,Hxa,BI,CI,DI,GI,Jxa,Kxa,EI,FI,Ixa,Nxa,Oxa,HI,Rxa,Pxa,II,JI,KI,Sxa,LI,MI,Txa,Uxa,Vxa,Wxa,Xxa,NI,OI,PI,QI,RI,SI,TI,UI,VI,WI,XI,Yxa,YI,Zxa,$xa,aya,bya,ZI,$I,aJ,cya,
bJ,cJ,dJ,dya,eJ,fJ,gJ,hJ,iJ,jJ,kJ,lJ,mJ,eya,nJ,oJ,pJ,fya,qJ,rJ,sJ,tJ,gya,uJ,vJ,hya,wJ,iya,xJ,jya,zJ,AJ,kya,BJ,CJ,DJ,yJ,EJ,FJ,GJ,mya,oya,pya,HJ,qya,IJ,rya,KJ,sya,tya,uya,xya,yya,zya,Aya,Bya,Cya,vya,VJ,Fya,Gya,Hya,Iya,wya,Kya,MJ,Lya,Mya,XJ,Nya,YJ,OJ,Oya,NJ,Jya,ZJ,Rya,Qya,QJ,RJ,aK,$J,Sya,bK,Tya,cK,Vya,Uya,dK,eK,fK,gK,Wya,Xya,Zya,$ya,iK,jK,bza,kK,fza,hza,jza,kza,mK,mza,nza,pza,qza,rza,sza,tza,uza,rK,sK,vza,xza,wza,yza,zza,Aza,wK,yK,zK,AK,Bza,BK,Cza,CK,DK,xK,FK,GK,Eza,Fza,Dza,Iza,Jza,Kza,Lza,Mza,Nza,Oza,
Pza,Qza,Rza,Sza,Tza,Uza,Vza,Wza,Xza,HK,IK,Yza,JK,KK,Zza,$za,aAa,bAa,cAa,LK,dAa,eAa,fAa,gAa,MK,hAa,iAa,NK,jAa,kAa,OK,lAa,PK,mAa,nAa,oAa,QK,pAa,sAa,RK,tAa,vAa,qAa,rAa,SK,uAa,xAa,yAa,UK,VK,WK,XK,YK,BAa,$K,bL,CAa,eL,fL,EAa,FAa,gL,hL,iL,kL,lL,mL,GAa,nL,HAa,oL,DAa,pL,IAa,qL,rL,tL,KAa,LAa,MAa,uL,vL,wL,xL,NAa,yL,zL,AL,BL,CL,DL,EL,FL,GL,PAa,QAa,SAa,TAa,LL,IL,ML,UAa,VAa,WAa,NL,OL,XAa,YAa,ZAa,JL,$Aa,aBa,PL,bBa,dBa,eBa,RL,SL,TL,UL,VL,hBa,YL,$L,ZL,aM,jBa,bM,kBa,lBa,nBa,mBa,eM,oBa,pBa,sBa,qBa,rBa,fM,uBa,vBa,wBa,
yBa,xBa,zBa,ABa,CBa,BBa,DBa,EBa,FBa,GBa,HBa,IBa,JBa,KBa,LBa,MBa,NBa,OBa,PBa,QBa,RBa,SBa,TBa,iM,UBa,jM,kM,WBa,XBa,lM,YBa,mM,ZBa,nM,$Ba,oM,aCa,bCa,cCa,dCa,pM,eCa,fCa,gCa,qM,rM,sM,tM,uM,hCa,vM,wM,xM,iCa,JM,jCa,kCa,lCa,KM,LM,mCa,nCa,oCa,MM,NM,Yya,pCa,qCa,OM,rCa,PM,QM,RM,SM,TM,UM,VM,WM,sCa,XM,YM,tCa,uCa,vCa,ZM,eN,xCa,BCa,DCa,CCa,FCa,GCa,ECa,ICa,JCa,KCa,nN,OCa,QCa,TCa,UCa,VCa,oN,XCa,aDa,pN,bDa,YCa,cDa,qN,dDa,gDa,fDa,kDa,hDa,rN,sN,qDa,vDa,rDa,sDa,tDa,yDa,xDa,ADa,uDa,wDa,BDa,CDa,DDa,GDa,JDa,HDa,MDa,UDa,TDa,
NDa,VDa,PDa,QDa,ODa,ZDa,aEa,cEa,gEa,jEa,kEa,mEa,oEa,qEa,pEa,yEa,sEa,rEa,zEa,CEa,DEa,EEa,FEa,zN,PCa,IEa,GEa,BN,JEa,KEa,EN,NEa,OEa,MEa,FN,PEa,GN,HN,tK,IN,NCa,JN,QEa,Gza,REa,KN,SEa,TEa,UEa,LN,MN,VEa,NN,ON,PN,QN,RN,WEa,XEa,SN,YEa,ZEa,TN,$Ea,UN,TK,VN,WN,aFa,XN,bFa,cFa,RCa,LEa,YN,uK,hK,uN,dFa,eFa,ZN,pDa,tN,fFa,AN,fEa,eEa,FDa,vN,hEa,lEa,nEa,lDa,AEa,gFa,WDa,RDa,$N,SCa,iFa,hFa,EDa,iEa,jFa,BEa,wN,mDa,oDa,eDa,dEa,bEa,LDa,IDa,$Ca,ZCa,WCa,YDa,SDa,tEa,iDa,jDa,wEa,xEa,uEa,vEa,$Da,mFa,kFa,aO,lFa,bO,WJ,PJ,Dya,LJ,
nFa,cO,dO,eO,kO,pFa,mO,oO,rFa,sFa,tFa,uFa,vFa,wFa,xFa,yFa,AFa,zFa,BFa,CFa,qO,tO,DFa,EFa,GFa,FFa,HFa,IFa,JFa,KFa,LFa,MFa,vO,wO,PFa,xO,yO,QFa,RFa,SFa,TFa,zO,UFa,AO,VFa,WFa,BO,DO,HO,XFa,IO,JO,KO,LO,YFa,MO,NO,OO,PO,QO,RO,ZFa,SO,TO,UO,VO,WO,XO,$Fa,aGa,YO,bGa,bP,eGa,fGa,cP,hGa,gGa,iGa,eP,fP,gP,W,kGa,hP,pGa,tGa,uGa,vGa,DGa,HGa,MGa,NGa,iHa,jHa,kHa,OGa,QGa,WGa,pHa,sHa,qHa,uHa,vHa,rHa,wHa,tIa,DHa,uIa,EHa,FHa,oP,wIa,yIa,AIa,zIa,xIa,JHa,WHa,XHa,EIa,GIa,ZHa,$Ha,bIa,cIa,dIa,NIa,fIa,iIa,pIa,VIa,RIa,SIa,XIa,$Ia,
ZIa,aJa,bJa,jJa,cJa,rP,gJa,pJa,qJa,rJa,sJa,tJa,wJa,BJa,eKa,dKa,vP,wP,xP,yP,zP,AP,lKa,CP,BP,nKa,jKa,kKa,oKa,mKa,DP,pKa,Poa,rKa,qKa,tKa,vKa,xKa,yKa,zKa,wKa,AKa,FKa,EKa,HKa,GP,IKa,JKa,KKa,IP,HP,LKa,MKa,NKa,PKa,JP,LP,NP,PP,RKa,QP,SKa,WKa,YKa,XKa,$Ka,gLa,hLa,SP,ZKa,VKa,UKa,TKa,WP,TP,VP,aQ,bQ,kLa,lLa,cQ,$P,pLa,mLa,nLa,qLa,dQ,rLa,sLa,fQ,gQ,hQ,iQ,jQ,tLa,uLa,vLa,kQ,lQ,nQ,xLa,yLa,mQ,zLa,CLa,DLa,oQ,ELa,rQ,FLa,sQ,uQ,HLa,tQ,vQ,ILa,KLa,LLa,MLa,xQ,yQ,DQ,PLa,AQ,EQ,GQ,QLa,HQ,CQ,FQ,RLa,IQ,SLa,JQ,TLa,zQ,BQ,NLa,OLa,
KQ,ULa,VLa,WLa,LQ,MQ,NQ,XLa,OQ,PQ,YLa,QQ,ZLa,RQ,SQ,TQ,$La,aMa,bMa,cMa,dMa,UQ,eMa,fMa,gMa,hMa,iMa,jMa,VQ,WQ,kMa,XQ,oMa,pMa,qMa,rMa,sMa,ZQ,tMa,YQ,lMa,uMa,vMa,wMa,xMa,$Q,aR,yMa,bR,cR,zMa,AMa,dR,BMa,CMa,GMa,HMa,DMa,EMa,FMa,IMa,eR,fR,gR,JMa,KMa,hR,iR,LMa,jR,MMa,kR,NMa,lR,OMa,PMa,QMa,RMa,SMa,UMa,VMa,mR,WMa,YMa,$Ma,ZMa,pR,eLa,UP,dNa,eNa,fNa,gNa,hNa,iNa,RP,oR,jNa,qR,oNa,pNa,qNa,rNa,rR,vNa,sNa,tNa,xNa,yNa,zNa,wNa,ANa,sR,tR,uR,BNa,CNa,vR,DNa,ENa,FNa,mNa,HNa,fLa,aLa,JNa,xR,zR,AR,BR,CR,DR,yR,KNa,MNa,GR,PNa,NNa,
RNa,SNa,QNa,ONa,TNa,UNa,VNa,LR,WNa,XNa,ZNa,$Na,jLa,MR,aOa,dOa,XP,eOa,fOa,gOa,cLa,dLa,NR,OR,PR,QR,hOa,iOa,RR,jOa,SR,TR,kOa,UR,lOa,mOa,nOa,VR,WR,YR,ZR,pOa,qOa,$R,rOa,oOa,aS,sOa,uOa,wOa,vOa,tOa,JOa,GOa,MOa,sS,tS,xOa,HOa,TJ,pS,wS,NOa,AS,gS,BS,fS,OOa,FOa,ES,FS,QOa,ROa,SOa,TOa,UOa,VOa,WOa,GS,XOa,bPa,aPa,YOa,$Oa,ZOa,HS,cPa,IS,dPa,ePa,gPa,hPa,iPa,nPa,NS,OS,qPa,PS,QS,rPa,uPa,vPa,wPa,xPa,RS,zPa,DPa,EPa,LPa,PPa,IPa,JPa,RPa,$S,SPa,UPa,TPa,VPa,bT,eT,WPa,aT,XPa,fT,YPa,bQa,ZPa,aQa,uQa,DQa,xT,FQa,qQa,rQa,mT,GQa,
EQa,rT,yT,oQa,IQa,HQa,jT,sQa,OQa,KQa,LQa,MQa,NQa,PQa,zT,QQa,SQa,TQa,BT,UQa,iT,oT,RQa,vQa,$Pa,zQa,GT,pT,JQa,NT,PT,QT,gRa,hRa,wT,iRa,ST,jRa,qT,kRa,pQa,lRa,ZQa,nT,hQa,mRa,fQa,eQa,cQa,VT,vRa,xRa,yRa,zRa,XT,ARa,CRa,ZT,DRa,aU,bU,$T,FRa,ERa,GRa,IRa,fU,KRa,gU,LRa,MRa,NRa,ORa,jU,PRa,QRa,TRa,URa,kU,VRa,lU,mU,nU,WRa,ZRa,$Ra,yU,bSa,zU,cSa,eSa,fSa,gSa,hSa,iSa,mSa,lSa,jSa,AU,nSa,CU,oSa,GU,HU,IU,JU,KU,pSa,rSa,qSa,sSa,tSa,uSa,NU,OU,vSa,xSa,ySa,zSa,TU,FSa,ESa,UU,HSa,WU,ISa,JSa,KSa,LSa,XU,YU,MSa,OSa,PSa,ZU,QSa,$U,
USa,SSa,TSa,aV,VSa,WSa,XSa,YSa,dV,bV,ZSa,eV,aTa,$Sa,gV,hV,cTa,fV,eTa,iV,hTa,gTa,lV,mV,nV,kTa,iTa,jTa,oV,lTa,pTa,nTa,mTa,oTa,pV,rTa,sTa,qV,uTa,vTa,wTa,tTa,yTa,xTa,BTa,zTa,ATa,ETa,FTa,GTa,HTa,DTa,JTa,KTa,ITa,CTa,LTa,MTa,NTa,OTa,PTa,QTa,rV,VTa,TTa,UTa,sV,WTa,STa,XTa,YTa,tV,ZTa,$Ta,aUa,uV,bUa,cUa,dUa,eUa,fUa,gUa,jUa,hUa,kUa,lUa,mUa,nUa,pUa,EV,FV,GV,qUa,DV,uUa,tUa,vUa,wUa,xUa,yUa,zUa,AUa,BUa,HUa,KV,KUa,NUa,MUa,LUa,FUa,GUa,CUa,DUa,IUa,LV,MV,OUa,rU,HRa,OV,PUa,RUa,QUa,JUa,TUa,UUa,VUa,QV,WUa,XV,YUa,ZUa,YV,
ZV,$Ua,aVa,bVa,cVa,dVa,fVa,eVa,gVa,$V,aW,hVa,kVa,lVa,cW,jVa,mVa,nVa,iVa,dW,oVa,gW,pVa,qVa,fW,sVa,rVa,tVa,uVa,vVa,wVa,yVa,zVa,xVa,CVa,AVa,lW,mW,EVa,oW,pW,FVa,HVa,rW,GVa,IVa,JVa,KVa,MVa,LVa,NVa,OVa,PVa,QVa,RVa,xW,yW,TVa,SVa,BW,zW,AW,UVa,VVa,CW,WVa,XVa,YVa,$Va,ZVa,DW,aWa,bWa,cWa,EW,eWa,dWa,fWa,kWa,lWa,mWa,pWa,oWa,nWa,qWa,rWa,FW,GW,sWa,tWa,uWa,vWa,HW,KW,wWa,xWa,yWa,zWa,AWa,BWa,MW,CWa,DWa,GWa,NW,HWa,FWa,OW,PW,IWa,JWa,MWa,KWa,LWa,SW,NWa,PWa,QWa,SWa,TWa,TW,UW,UWa,OWa,WWa,VWa,VW,WW,XW,$W,aX,XWa,YWa,ZWa,$Wa,
dX,aXa,eX,bXa,fX,gX,cXa,fXa,gXa,hXa,iXa,kXa,lXa,mXa,jXa,oXa,nXa,pXa,UXa,kX,WXa,VXa,SXa,TXa,XXa,YXa,lX,mX,ZXa,$Xa,aYa,bYa,cYa,dYa,fYa,gYa,oYa,jYa,kYa,hYa,rYa,rX,sYa,wYa,uX,xYa,tYa,qX,xX,wX,sX,yX,AYa,BYa,zX,tX,pYa,zYa,vX,uYa,yYa,CYa,nX,BX,DYa,EYa,vYa,CX,DX,GYa,EX,HYa,HX,IX,IYa,JYa,LYa,MYa,KYa,JX,KX,NYa,OYa,PYa,QYa,RYa,TYa,VYa,UYa,SYa,XYa,WYa,LX,MX,YYa,$Ya,aZa,NX,ZYa,bZa,cZa,dZa,PX,SX,RX,fZa,eZa,gZa,TX,hZa,iZa,kZa,jZa,lZa,mZa,nZa,WX,oZa,jW,sZa,wW,pZa,tZa,rZa,MU,qZa,uZa,wZa,xZa,yZa,vZa,zZa,AZa,BZa,CZa,
DZa,aY,FZa,bY,HZa,cY,GZa,JZa,KZa,IZa,dY,LZa,NZa,OZa,MZa,fY,gY,QZa,hY,RZa,jY,UZa,VZa,WZa,kY,XZa,YZa,ZZa,$Za,b_a,SZa,lY,c_a,d_a,e_a,nY,f_a,g_a,h_a,m_a,q_a,o_a,j_a,qY,i_a,p_a,sY,s_a,r_a,tY,u_a,v_a,w_a,y_a,z_a,x_a,A_a,dTa,xY,B_a,yY,C_a,J_a,DY,K_a,L_a,FY,M_a,N_a,GY,O_a,D_a,HY,Q_a,R_a,T_a,IY,U_a,JY,W_a,V_a,KY,H_a,BY,X_a,Y_a,Z_a,$_a,a0a,E_a,G_a,CY,zY,d0a,e0a,LY,f0a,NY,g0a,h0a,i0a,MY,b0a,j0a,k0a,c0a,o0a,s0a,RY,t0a,u0a,q0a,TY,v0a,w0a,n0a,x0a,r0a,y0a,UY,SY,z0a,B0a,A0a,QY,D0a,XY,E0a,VY,YY,WY,ZY,F0a,$Y,G0a,J0a,
I0a,L0a,M0a,K0a,cZ,bZ,O0a,P0a,Q0a,R0a,S0a,U0a,T0a,eZ,fZ,V0a,gZ,W0a,Y0a,b1a,Z0a,$0a,a1a,c1a,nZ,d1a,e1a,f1a,oZ,g1a,h1a,i1a,pZ,qZ,rZ,sZ,j1a,tZ,uZ,k1a,vZ,l1a,q1a,s1a,t1a,AZ,BZ,p1a,u1a,xZ,m1a,v1a,wZ,yZ,n1a,o1a,zZ,w1a,x1a,r1a,y1a,C1a,z1a,E1a,D1a,F1a,A1a,B1a,G1a,H1a,HPa,OPa,J1a,I1a,DZ,O1a,M1a,N1a,K1a,P1a,EZ,L1a,FZ,GZ,Q1a,R1a,S1a,T1a,V1a,W1a,HZ,X1a,IZ,Y1a,Z1a,$1a,a2a,c2a,d2a,KZ,k2a,g2a,b2a,m2a,h2a,i2a,f2a,j2a,LZ,e2a,l2a,s2a,q2a,p2a,o2a,n2a,NZ,t2a,PZ,QZ,v2a,x2a,y2a,RZ,w2a,SZ,TZ,A2a,B2a,z2a,E2a,F2a,G2a,UZ,
VZ,H2a,I2a,J2a,L2a,K2a,M2a,N2a,WZ,O2a,P2a,YZ,Q2a,XZ,R2a,S2a,U2a,V2a,T2a,ZZ,W2a,X2a,Z2a,Y2a,a3a,$2a,b3a,c3a,d3a,e3a,iZ,f3a,g3a,h3a,i3a,hZ,j3a,a_,b_,k3a,l3a,n3a,m3a,c_,o3a,mZ,p3a,q3a,kZ,lZ,u3a,e_,g_,v3a,i_,f_,d_,j_,s3a,r3a,t3a,k_,x3a,w3a,jZ,h_,y3a,z3a,A3a,B3a,C2a,D2a,C3a,D3a,l_,G3a,E3a,H3a,J3a,m_,K3a,M3a,o_,q_,O3a,P3a,Q3a,U3a,S3a,R3a,T3a,N3a,V3a,W3a,r_,X3a,s_,$3a,b4a,d4a,g4a,k4a,m4a,n4a,l4a,o4a,p4a,u_,q4a,u4a,w4a,x4a,v_,y4a,w_,z4a,A4a,B4a,C4a,D4a,K4a,J4a,C_,L4a,I4a,O4a,P4a,Q4a,R4a,S4a,T4a,U4a,V4a,W4a,
Y4a,Z4a,$4a,X4a,E_,x_,b5a,c5a,D_,e5a,a5a,f5a,g5a,j5a,h5a,i5a,F_,k5a,l5a,m5a,n5a,o5a,p5a,H_,r5a,s5a,I_,J_,t5a,K_,v5a,w5a,x5a,z5a,L3a,M_,u5a,A5a,D5a,E5a,F5a,H5a,r2a,B5a,C5a,G5a,JZ,n_,I5a,J5a,K5a,L5a,q5a,N_,p_,M5a,I3a,P_,Q_,N5a,R_,O5a,P5a,Q5a,R5a,S5a,T5a,V5a,U5a,X5a,Y5a,b6a,Z5a,a6a,c6a,T_,g6a,e6a,f6a,j6a,k6a,l6a,m6a,n6a,S_,o6a,i6a,d6a,U_,p6a,$5a,q6a,V_,s6a,t6a,u6a,r6a,W_,x6a,w6a,A6a,z6a,y6a,B6a,C6a,X_,D6a,E6a,J6a,G6a,H6a,I6a,K6a,L6a,M6a,O6a,N6a,P6a,Q6a,R6a,T6a,V6a,U6a,W6a,S6a,X6a,$6a,Y6a,a7a,b7a,d7a,
c7a,e7a,Z6a,Z_,f7a,g7a,h7a,j7a,l7a,m7a,o7a,p7a,q7a,r7a,u7a,v7a,t7a,w7a,x7a,y7a,A7a,z7a,D7a,c0,OY,B7a,C7a,E7a,f0,G7a,F7a,H7a,J7a,K7a,N7a,L7a,Q7a,g0,M7a,R7a,h0,T7a,j0,l0,U7a,i0,V7a,m0,Y7a,X7a,S7a,Z7a,$7a,k0,a8a,n0,b8a,W7a,s7a,e0,PY,l0a,d8a,m0a,e8a,f8a,g8a,h8a,p0,i8a,k8a,l8a,m8a,j8a,n8a,o8a,q0,p8a,q8a,r0,fBa,r8a,s8a,s0,u0,v8a,w8a,t0,u8a,t8a,x0,w0,y0,v0,A8a,C8a,E8a,H8a,y8a,D8a,I8a,z8a,J8a,K8a,M8a,z0,N8a,O8a,L8a,A0,Q8a,P8a,B8a,R8a,G8a,x8a,B0,X8a,U8a,Y8a,V8a,T8a,Z8a,S8a,b9a,C0,c9a,e9a,KL,g9a,i9a,j9a,k9a,
I0,l9a,F_a,n9a,J0,F6a,o9a,q9a,m9a,vY,G0,r9a,s9a,L_,O0,d5a,h9a,N0,D0,v9a,w9a,y9a,x9a,p9a,L0,z9a,P0,A9a,n_a,B9a,y5a,Y_,t_a,C9a,P_a,fTa,K0,D9a,F9a,E9a,l_a,G9a,I9a,u9a,f9a,K9a,J9a,M0,E0,L9a,R0,rY,M9a,N9a,EY,O9a,P9a,Q9a,k_a,Q0,R9a,b$a,X9a,W9a,d$a,V9a,T0,wY,g$a,e$a,i$a,W0,X0,j$a,k$a,Z0,a$a,d1,m$a,c1,Y0,o$a,p$a,Y9a,g1,q$a,$9a,a1,l$a,$0,w$a,V0,x$a,y$a,i1,n$a,j1,k1,z$a,b1,h$a,s$a,r$a,A$a,B$a,C$a,D$a,hU,E$a,e1,F$a,H$a,U0,l1,f$a,I$a,J$a,Z9a,h1,f1,K$a,L$a,m1,n1,H0a,M$a,N$a,O$a,P$a,o1,R$a,U$a,X$a,Q$a,p1,q1,r1,
gab,fab,s1,t1,iab,jab,kab,wAa,hab,iBa,lab,u1,nab,mab,oab,v1,w1,x1,xN,pab,CN,HEa,qab,rab,nDa,cM,dM,sab,tab,uab,y1,wab,xab,B1,yab,zab,Cab,Dab,D1,Eab,Aab,Bab,Fab,Gab,E1,Hab,F1,Iab,gM,Jab,Kab,Hza,EK,Lab,Mab,Nab,G1,Qab,Pab,H1,I1,Rab,Sab,C1,Uab,Vab,Wab,J1,K1,Xab,L1,M1,Yab,N1,O1,Zab,P1,Q1,$ab,abb,tBa,R1,bbb,dbb,cbb,S1,T1,U1,ebb,fbb,gbb,hbb,ibb,jbb,kbb,mbb,W1,lbb,X1,nbb,obb,pbb,qbb,rbb,vbb,sbb,tbb,ubb,xbb,zbb,Abb,Bbb,ybb,Y1,Cbb,Dbb,Ebb,Fbb,Gbb,$1,Hbb,a2,b2,c2,Ibb,Jbb,Lbb,Mbb,Nbb,Obb,Qbb,Pbb,Rbb,d2,e2,Ubb,
Sbb,Tbb,f2,Vbb,Wbb,g2,h2,Xbb,i2,Zbb,j2,$bb,acb,bcb,k2,l2,m2,ccb,dcb,ecb,hcb,gcb,n2,icb,jcb,kcb,MCa,fcb,lcb,pcb,qcb,scb,aaa,fa;aa=function(a){return function(){return aaa[a].apply(this,arguments)}};
g.ba=function(a,b){return aaa[a]=b};
baa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
caa=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");};
la=function(a,b){if(b)a:{var c=g.da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&fa(c,a,{configurable:!0,writable:!0,value:b})}};
daa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
na=function(a){return a.raw=a};
g.u=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return{next:baa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");};
eaa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.pa=function(a){return a instanceof Array?a:eaa(g.u(a))};
qa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.w=function(a,b){a.prototype=faa(b.prototype);a.prototype.constructor=a;if(ra)ra(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.Rf=b.prototype};
sa=function(){this.S=!1;this.D=null;this.B=void 0;this.j=1;this.G=this.K=0;this.ea=this.C=null};
ta=function(a){if(a.S)throw new TypeError("Generator is already running");a.S=!0};
xa=function(a,b){a.C={vV:b,YW:!0};a.j=a.K||a.G};
g.z=function(a,b,c){a.j=c;return{value:b}};
g.ya=function(a){a.j=0};
g.za=function(a,b,c){a.K=b;void 0!=c&&(a.G=c)};
g.Ba=function(a,b){a.j=b;a.K=0};
g.Ca=function(a){a.K=0;var b=a.C.vV;a.C=null;return b};
g.Fa=function(a){a.ea=[a.C];a.K=0;a.G=0};
g.Ga=function(a,b){var c=a.ea.splice(0)[0];(c=a.C=a.C||c)?c.YW?a.j=a.K||a.G:void 0!=c.Ma&&a.G<c.Ma?(a.j=c.Ma,a.C=null):a.j=a.G:a.j=b};
gaa=function(a){this.j=new sa;this.B=a};
haa=function(a,b){ta(a.j);var c=a.j.D;if(c)return Ha(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return Ia(a)};
Ha=function(a,b,c,d){try{var e=b.call(a.j.D,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.S=!1,e;var f=e.value}catch(h){return a.j.D=null,xa(a.j,h),Ia(a)}a.j.D=null;d.call(a.j,f);return Ia(a)};
Ia=function(a){for(;a.j.j;)try{var b=a.B(a.j);if(b)return a.j.S=!1,{value:b.value,done:!1}}catch(c){a.j.B=void 0,xa(a.j,c)}a.j.S=!1;if(a.j.C){b=a.j.C;a.j.C=null;if(b.YW)throw b.vV;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
iaa=function(a){this.next=function(b){ta(a.j);a.j.D?b=Ha(a,a.j.D.next,b,a.j.ma):(a.j.ma(b),b=Ia(a));return b};
this.throw=function(b){ta(a.j);a.j.D?b=Ha(a,a.j.D["throw"],b,a.j.ma):(xa(a.j,b),b=Ia(a));return b};
this.return=function(b){return haa(a,b)};
this[Symbol.iterator]=function(){return this}};
jaa=function(a){function b(d){return a.next(d)}
function c(d){return a.throw(d)}
return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
f(a.next())})};
g.H=function(a){return jaa(new iaa(new gaa(a)))};
g.Ja=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
Ka=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};
kaa=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{i:e,H_:f}}return{i:-1,H_:void 0}};
La=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+""};
Na=function(a){return a?a:Array.prototype.fill};
Pa=function(a){return a?a:Array.prototype.copyWithin};
g.Sa=function(a,b,c){a=a.split(".");c=c||g.Qa;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};
Ua=function(a,b){var c=g.Ta("CLOSURE_FLAGS");a=c&&c[a];return null!=a?a:b};
g.Ta=function(a,b){a=a.split(".");b=b||g.Qa;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
Va=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Wa=function(a){var b=Va(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Xa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.ab=function(a){return Object.prototype.hasOwnProperty.call(a,Ya)&&a[Ya]||(a[Ya]=++laa)};
maa=function(a,b,c){return a.call.apply(a.bind,arguments)};
naa=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.cb=function(a,b,c){g.cb=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?maa:naa;return g.cb.apply(null,arguments)};
g.db=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.eb=function(){return Date.now()};
g.gb=function(a,b){function c(){}
c.prototype=b.prototype;a.Rf=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=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)}};
lb=function(a){return a};
oaa=function(a){this.QU=a};
pb=function(a,b,c){this.B=a;this.D=b;this.j=c||[];this.Gy=new Map};
qb=function(a,b){pb.call(this,a,3,b)};
rb=function(a,b){pb.call(this,a,2,b)};
g.sb=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.tb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Wa(d)?g.tb.apply(null,d):g.sb(d)}};
g.J=function(){this.Ep=this.Ep;this.Ak=this.Ak};
g.L=function(a,b){g.ub(a,g.db(g.sb,b))};
g.ub=function(a,b){a.Ep?b():(a.Ak||(a.Ak=[]),a.Ak.push(b))};
vb=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,vb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)};
wb=function(a,b){var c=vb.call;a=a.split("%s");for(var d="",e=a.length-1,f=0;f<e;f++)d+=a[f]+(f<b.length?b[f]:"%s");c.call(vb,this,d+a[e])};
paa=function(){};
g.xb=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.B=!1};
g.yb=function(a){return a[a.length-1]};
qaa=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.Bb=function(a,b,c){b=zb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
zb=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.Cb=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.Db=function(a,b){return 0<=raa(a,b)};
saa=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.Fb=function(a,b){b=raa(a,b);var c;(c=0<=b)&&g.Eb(a,b);return c};
g.Eb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.Gb=function(a,b){b=zb(a,b);0<=b&&g.Eb(a,b)};
taa=function(a,b){var c=0;qaa(a,function(d,e){b.call(void 0,d,e,a)&&g.Eb(a,e)&&c++})};
g.Ib=function(a){return Array.prototype.concat.apply([],arguments)};
g.Jb=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
g.Mb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Wa(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.Pb=function(a,b,c,d){Array.prototype.splice.apply(a,Nb(arguments,1))};
Nb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
uaa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Xa(e)?"o"+g.ab(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.Sb=function(a,b,c){return vaa(a,c||Qb,!1,b)};
Tb=function(a,b){return vaa(a,b,!0)};
vaa=function(a,b,c,d){for(var e=0,f=a.length,h;e<f;){var l=e+(f-e>>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);0<m?e=l+1:(f=l,h=!m)}return h?e:-e-1};
g.Ub=function(a,b){a.sort(b||Qb)};
waa=function(a,b){var c=Qb;g.Ub(a,function(d,e){return c(b(d),b(e))})};
g.Wb=function(a,b){if(!g.Wa(a)||!g.Wa(b)||a.length!=b.length)return!1;for(var c=a.length,d=xaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
Qb=function(a,b){return a>b?1:a<b?-1:0};
xaa=function(a,b){return a===b};
g.Xb=function(a,b,c){c=g.Sb(a,b,c);0>c&&g.Pb(a,-(c+1),0,b)};
g.ac=function(a,b,c){var d={};(0,g.Yb)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
yaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
zaa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
Aaa=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};
Caa=function(a){var b=g.Ta("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.Qa.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Baa(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,bc[c])c=bc[c];else{c=String(c);if(!bc[c]){var f=/function\s+([^\(]+)/m.exec(c);bc[c]=f?f[1]:"[Anonymous]"}c=bc[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack=
b;return{message:a.message,name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:a.stack}};
Baa=function(a,b){b||(b={});b[Daa(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Daa(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=Baa(a,b));return c};
Daa=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
cc=function(a,b){return 0==a.lastIndexOf(b,0)};
Eaa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.dc=function(a){return/^[\s\xa0]*$/.test(a)};
fc=function(a){if(!Faa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Gaa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Haa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Iaa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Jaa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Kaa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Laa,"&#0;"));return a};
g.gc=function(a,b){return-1!=a.indexOf(b)};
hc=function(a,b){return g.gc(a.toLowerCase(),b.toLowerCase())};
g.lc=function(a,b){var c=0;a=jc(String(a)).split(".");b=jc(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=kc(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||kc(0==f[2].length,0==h[2].length)||kc(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
kc=function(a,b){return a<b?-1:a>b?1:0};
g.mc=function(){var a=g.Qa.navigator;return a&&(a=a.userAgent)?a:""};
sc=function(a){return oc||pc?qc?qc.brands.some(function(b){return(b=b.brand)&&g.gc(b,a)}):!1:!1};
tc=function(a){return g.gc(g.mc(),a)};
vc=function(){return oc||pc?!!qc&&0<qc.brands.length:!1};
wc=function(){return vc()?!1:tc("Opera")};
xc=function(){return vc()?!1:tc("Trident")||tc("MSIE")};
Ac=function(){return vc()?!1:tc("Edge")};
Maa=function(){return vc()?sc("Microsoft Edge"):tc("Edg/")};
Bc=function(){return tc("Firefox")||tc("FxiOS")};
Dc=function(){return tc("Safari")&&!(Cc()||(vc()?0:tc("Coast"))||wc()||Ac()||Maa()||(vc()?sc("Opera"):tc("OPR"))||Bc()||tc("Silk")||tc("Android"))};
Cc=function(){return vc()?sc("Chromium"):(tc("Chrome")||tc("CriOS"))&&!Ac()||tc("Silk")};
Naa=function(){return tc("Android")&&!(Cc()||Bc()||wc()||tc("Silk"))};
Oaa=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]});
return function(c){return b[c.find(function(d){return d in b})]||""}};
Paa=function(a){var b=g.mc();if("Internet Explorer"===a){if(xc())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),"7.0"==c[1])if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]);
b=Oaa(c);switch(a){case "Opera":if(wc())return b(["Version","Opera"]);if(vc()?sc("Opera"):tc("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Ac())return b(["Edge"]);if(Maa())return b(["Edg"]);break;case "Chromium":if(Cc())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Bc()||"Safari"===a&&Dc()||"Android Browser"===a&&Naa()||"Silk"===a&&tc("Silk")?(b=c[2])&&b[1]||"":""};
Qaa=function(a){if(vc()&&"Silk"!==a){var b=qc.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Paa(a);if(""===b)return NaN;b=b.split(".")}return 0===b.length?NaN:Number(b[0])};
Ec=function(){return oc||pc?!!qc&&!!qc.platform:!1};
Raa=function(){return Ec()?"Android"===qc.platform:tc("Android")};
Gc=function(){return tc("iPhone")&&!tc("iPod")&&!tc("iPad")};
Hc=function(){return Gc()||tc("iPad")||tc("iPod")};
Ic=function(){return Ec()?"macOS"===qc.platform:tc("Macintosh")};
Saa=function(){return Ec()?"Windows"===qc.platform:tc("Windows")};
Jc=function(a){Jc[" "](a);return a};
Kc=function(a,b){try{return Jc(a[b]),!0}catch(c){}return!1};
Uaa=function(a,b){var c=Taa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
Vaa=function(){var a=g.Qa.document;return a?a.documentMode:void 0};
g.Mc=function(a){return Uaa(a,function(){return 0<=g.lc(Lc,a)})};
g.Nc=function(a){return Number(Waa)>=a};
Xaa=function(a){return g.Pc?"webkit"+a:a.toLowerCase()};
Qc=function(a,b){g.xb.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.j=null;a&&this.init(a,b)};
Rc=function(a){return!(!a||!a[Yaa])};
$aa=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Hd=e;this.key=++Zaa;this.removed=this.xG=!1};
Sc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Hd=null};
g.Tc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Uc=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Vc=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Xc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
aba=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.Yc=function(a){for(var b in a)return b};
bba=function(a){for(var b in a)return a[b]};
Zc=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.fd=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.gd=function(a,b){return null!==a&&b in a};
g.hd=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
id=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
cba=function(a,b){return(b=id(a,b))&&a[b]};
g.jd=function(a){for(var b in a)return!1;return!0};
g.dba=function(a){for(var b in a)delete a[b]};
g.md=function(a,b){b in a&&delete a[b]};
g.nd=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.od=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.pd=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.qd=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();if("undefined"!==typeof Map&&a instanceof Map)return new Map(a);if("undefined"!==typeof Set&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());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.qd(a[c]);return b};
g.sd=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<eba.length;f++)c=eba[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
td=function(a){this.src=a;this.listeners={};this.j=0};
g.ud=function(a,b){var c=b.type;c in a.listeners&&g.Fb(a.listeners[c],b)&&(Sc(b),0==a.listeners[c].length&&(delete a.listeners[c],a.j--))};
vd=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.removed&&f.listener==b&&f.capture==!!c&&f.Hd==d)return e}return-1};
g.yd=function(a,b,c,d,e){if(d&&d.once)return wd(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.yd(a,b[f],c,d,e);return null}c=zd(c);return Rc(a)?a.Ua(b,c,g.Xa(d)?!!d.capture:!!d,e):fba(a,b,c,!1,d,e)};
fba=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Xa(e)?!!e.capture:!!e,l=Ad(a);l||(a[Bd]=l=new td(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=gba();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)hba||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(iba(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");jba++;return c};
gba=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=kba;return a};
wd=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)wd(a,b[f],c,d,e);return null}c=zd(c);return Rc(a)?a.kI(b,c,g.Xa(d)?!!d.capture:!!d,e):fba(a,b,c,!0,d,e)};
lba=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)lba(a,b[f],c,d,e);else d=g.Xa(d)?!!d.capture:!!d,c=zd(c),Rc(a)?a.Qc(b,c,d,e):a&&(a=Ad(a))&&(b=a.eD(b,c,d,e))&&Cd(b)};
Cd=function(a){if("number"!==typeof a&&a&&!a.removed){var b=a.src;if(Rc(b))g.ud(b.mm,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(iba(c),d):b.addListener&&b.removeListener&&b.removeListener(d);jba--;(c=Ad(b))?(g.ud(c,a),0==c.j&&(c.src=null,b[Bd]=null)):Sc(a)}}};
iba=function(a){return a in Dd?Dd[a]:Dd[a]="on"+a};
kba=function(a,b){if(a.removed)a=!0;else{b=new Qc(b,this);var c=a.listener,d=a.Hd||a.src;a.xG&&Cd(a);a=c.call(d,b)}return a};
Ad=function(a){a=a[Bd];return a instanceof td?a:null};
zd=function(a){if("function"===typeof a)return a;a[Fd]||(a[Fd]=function(b){return a.handleEvent(b)});
return a[Fd]};
g.Gd=function(){g.J.call(this);this.mm=new td(this);this.v3=this;this.aQ=null};
Hd=function(a,b,c,d){b=a.mm.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.removed&&h.capture==c){var l=h.listener,m=h.Hd||h.src;h.xG&&g.ud(a.mm,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Id=function(a,b){this.C=a;this.D=b;this.B=0;this.j=null};
mba=function(a,b){a.D(b);100>a.B&&(a.B++,b.next=a.j,a.j=b)};
Jd=function(a){return function(){return a}};
g.Ld=function(){};
nba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Md=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
Nd=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
oba=function(a,b){var c=0;return function(d){g.Qa.clearTimeout(c);var e=arguments;c=g.Qa.setTimeout(function(){a.apply(b,e)},50)}};
Pd=function(){if(void 0===Od){var a=null,b=g.Qa.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:lb,createScript:lb,createScriptURL:lb})}catch(c){g.Qa.console&&g.Qa.console.error(c.message)}Od=a}else Od=a}return Od};
g.Qd=function(a,b){this.QZ=a===pba&&b||"";this.l3=qba};
g.Rd=function(a){return a instanceof g.Qd&&a.constructor===g.Qd&&a.l3===qba?a.QZ:"type_error:Const"};
g.Vd=function(a){return new g.Qd(pba,a)};
Wd=function(a){this.nQ=a;this.zn=!0};
rba=function(a){return a instanceof Wd&&a.constructor===Wd?a.nQ:"type_error:SafeScript"};
tba=function(a){var b=Pd();a=b?b.createScript(a):a;return new Wd(a,sba)};
g.Xd=function(a){this.qQ=a};
g.Yd=function(a){return a instanceof g.Xd&&a.constructor===g.Xd?a.qQ:"type_error:TrustedResourceUrl"};
wba=function(a,b){var c=g.Rd(a);if(!uba.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(vba,function(d,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));d=b[e];return d instanceof g.Qd?g.Rd(d):encodeURIComponent(String(d))});
return Zd(a)};
Zd=function(a){var b=Pd();a=b?b.createScriptURL(a):a;return new g.Xd(a,xba)};
g.$d=function(a){this.pQ=a};
g.ae=function(a){return a instanceof g.$d&&a.constructor===g.$d?a.pQ:"type_error:SafeUrl"};
g.ce=function(a){if(a instanceof g.$d)return a;a="object"==typeof a&&a.zn?a.Ok():String(a);yba.test(a)?a=new g.$d(a,be):(a=String(a).replace(/(%0A|%0D)/g,""),a=a.match(zba)?new g.$d(a,be):null);return a};
Bba=function(a){if(a instanceof g.$d)return a;a="object"==typeof a&&a.zn?a.Ok():String(a);a:{var b=a;if(Aba){try{var c=new URL(b)}catch(d){b="https:";break a}b=c.protocol}else b:{c=document.createElement("a");try{c.href=b}catch(d){b=void 0;break b}b=c.protocol;b=":"===b||""===b?"https:":b}}"javascript:"!==b||(a="about:invalid#zClosurez");return new g.$d(a,be)};
g.ee=function(a){this.oQ=a;this.zn=!0};
fe=function(a){return a instanceof g.ee&&a.constructor===g.ee?a.oQ:"type_error:SafeStyle"};
Dba=function(a){var b="",c;for(c in a)if(Object.prototype.hasOwnProperty.call(a,c)){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var d=a[c];null!=d&&(d=Array.isArray(d)?d.map(Cba).join(" "):Cba(d),b+=c+":"+d+";")}return b?new g.ee(b,ge):he};
Cba=function(a){if(a instanceof g.$d)return'url("'+g.ae(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof g.Qd)a=g.Rd(a);else{a=String(a);var b=a.replace(Eba,"$1").replace(Eba,"$1").replace(Fba,"url");if(Gba.test(b)){if(b=!Hba.test(a)){for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}b=b&&c&&Iba(a)}a=b?Jba(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new wb("Value does not allow [{;}], got: %s.",[a]);return a};
Iba=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};
Jba=function(a){return a.replace(Fba,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=(g.ce(d)||g.ie).Ok();return c+f+b+f+e})};
g.je=function(a){this.mQ=a;this.zn=!0};
g.ke=function(a){return a instanceof g.je&&a.constructor===g.je?a.mQ:"type_error:SafeHtml"};
Kba=function(a){return a instanceof g.je?a:g.le(fc("object"==typeof a&&a.zn?a.Ok():String(a)))};
Mba=function(a){function b(e){Array.isArray(e)?e.forEach(b):(e=Kba(e),d.push(g.ke(e).toString()))}
var c=Kba(Lba),d=[];a.forEach(b);return g.le(d.join(g.ke(c).toString()))};
Nba=function(a){return Mba(Array.prototype.slice.call(arguments))};
g.le=function(a){var b=Pd();a=b?b.createHTML(a):a;return new g.je(a,Oba)};
Pba=function(a,b){return new g.ee(b,ge)};
g.Rba=function(a,b){if(Qba())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.ke(b)};
Sba=function(a,b,c,d){a=a instanceof g.$d?a:Bba(a);b=b||g.Qa;c=c instanceof g.Qd?g.Rd(c):c||"";return void 0!==d?b.open(g.ae(a),c,d):b.open(g.ae(a),c)};
me=function(){a:{var a=g.Qa.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&Tba.test(a))break a;a=""}return a};
Uba=function(a,b){return a+Math.random()*(b-a)};
g.ne=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.oe=function(a,b){a%=b;return 0>a*b?a+b:a};
te=function(a,b,c){return a+c*(b-a)};
g.ue=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
ve=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.we=function(a,b){this.width=a;this.height=b};
g.xe=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
g.ye=function(a){return encodeURIComponent(String(a))};
ze=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.Ae=function(a){return a=fc(a)};
g.Be=function(a){return null==a?"":String(a)};
Ke=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Le=function(a){var b=Number(a);return 0==b&&g.dc(a)?NaN:b};
Vba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
Wba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Xba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
Yba=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};
Ve=function(a){return a?new Me(Ne(a)):Zba||(Zba=new Me)};
We=function(a,b){return"string"===typeof b?a.getElementById(b):b};
g.Xe=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.Ze=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.Ye(document,"*",a,b)};
g.$e=function(a,b){var c=b||document;if(c.getElementsByClassName)a=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;a=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.Ye(c,"*",a,b)[0]||null}return a||null};
g.Ye=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.Db(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
af=function(a,b){g.Tc(b,function(c,d){c&&"object"==typeof c&&c.zn&&(c=c.Ok());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:$ba.hasOwnProperty(d)?a.setAttribute($ba[d],c):cc(d,"aria-")||cc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
aca=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.we(a.clientWidth,a.clientHeight)};
cca=function(a){var b=bca(a);a=a.parentWindow||a.defaultView;return g.bf&&a.pageYOffset!=b.scrollTop?new g.ue(b.scrollLeft,b.scrollTop):new g.ue(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
bca=function(a){return a.scrollingElement?a.scrollingElement:g.Pc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
hf=function(a){return a?a.parentWindow||a.defaultView:window};
kf=function(a,b,c){var d=arguments,e=document,f=d[1],h=jf(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):af(h,f));2<d.length&&dca(e,h,d,2);return h};
dca=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.Wa(f)||g.Xa(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Xa(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.Yb(h?g.Jb(f):f,e)}}};
g.lf=function(a){return jf(document,a)};
jf=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.mf=function(a){return document.createTextNode(String(a))};
g.nf=function(a,b){a.appendChild(b)};
g.of=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.pf=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.yf=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
g.zf=function(a){var b;if(eca&&(b=a.parentElement))return b;b=a.parentNode;return g.Xa(b)&&1==b.nodeType?b:null};
g.Af=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};
Ne=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Bf=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.of(a),a.appendChild(Ne(a).createTextNode(String(b)))};
Cf=function(a){var b;if((b="A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!a.hasAttribute("tabindex")||fca(a)):a.hasAttribute("tabindex")&&fca(a))&&g.bf){var c;"function"!==typeof a.getBoundingClientRect||g.bf&&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};
fca=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Ef=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return Df(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Db(e.className.split(/\s+/),c))},!0)};
Df=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
Me=function(a){this.j=a||g.Qa.document||document};
Kf=function(a){"function"!==typeof g.Qa.setImmediate||g.Qa.Window&&g.Qa.Window.prototype&&!Ac()&&g.Qa.Window.prototype.setImmediate==g.Qa.setImmediate?(Ff||(Ff=gca()),Ff(a)):g.Qa.setImmediate(a)};
gca=function(){var a=g.Qa.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!tc("Presto")&&(a=function(){var e=g.lf("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.cb)(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&&!xc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.NU;c.NU=null;e()}};
return function(e){d.next={NU:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.Qa.setTimeout(e,0)}};
Lf=function(a){g.Qa.setTimeout(function(){throw a;},0)};
Mf=function(){this.B=this.j=null};
Nf=function(){this.next=this.scope=this.fn=null};
g.Qf=function(a,b){Of||hca();Pf||(Of(),Pf=!0);ica.add(a,b)};
hca=function(){if(g.Qa.Promise&&g.Qa.Promise.resolve){var a=g.Qa.Promise.resolve(void 0);Of=function(){a.then(jca)}}else Of=function(){Kf(jca)}};
jca=function(){for(var a;a=ica.remove();){try{a.fn.call(a.scope)}catch(b){Lf(b)}mba(kca,a)}Pf=!1};
g.Sf=function(a){this.j=0;this.S=void 0;this.D=this.B=this.C=null;this.G=this.K=!1;if(a!=g.Ld)try{var b=this;a.call(void 0,function(c){Rf(b,2,c)},function(c){Rf(b,3,c)})}catch(c){Rf(this,3,c)}};
lca=function(){this.next=this.context=this.B=this.C=this.j=null;this.D=!1};
Tf=function(a,b,c){var d=mca.get();d.C=a;d.B=b;d.context=c;return d};
Uf=function(a){if(a instanceof g.Sf)return a;var b=new g.Sf(g.Ld);Rf(b,2,a);return b};
Vf=function(a){return new g.Sf(function(b,c){c(a)})};
g.oca=function(a,b,c){nca(a,b,c,null)||g.Qf(g.db(b,a))};
pca=function(a){return new g.Sf(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.oca(e,b,c)})};
rca=function(){var a,b,c=new g.Sf(function(d,e){a=d;b=e});
return new qca(c,a,b)};
eg=function(a,b){b=Tf(b,b);b.D=!0;dg(a,b);return a};
sca=function(a,b){if(0==a.j)if(a.C){var c=a.C;if(c.B){for(var d=0,e=null,f=null,h=c.B;h&&(h.D||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.j&&1==d?sca(c,b):(f?(d=f,d.next==c.D&&(c.D=d),d.next=d.next.next):tca(c),uca(c,e,3,b)))}a.C=null}else Rf(a,3,b)};
dg=function(a,b){a.B||2!=a.j&&3!=a.j||vca(a);a.D?a.D.next=b:a.B=b;a.D=b};
wca=function(a,b,c,d){var e=Tf(null,null,null);e.j=new g.Sf(function(f,h){e.C=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.B=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof fg?h(l):f(m)}catch(n){h(n)}}:h});
e.j.C=a;dg(a,e);return e.j};
Rf=function(a,b,c){0==a.j&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,nca(c,a.saa,a.taa,a)||(a.S=c,a.j=b,a.C=null,vca(a),3!=b||c instanceof fg||xca(a,c)))};
nca=function(a,b,c,d){if(a instanceof g.Sf)return dg(a,Tf(b||g.Ld,c||null,d)),!0;if(a)try{var e=!!a.$goog_Thenable}catch(h){e=!1}else e=!1;if(e)return a.then(b,c,d),!0;if(g.Xa(a))try{var f=a.then;if("function"===typeof f)return yca(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
yca=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)}};
vca=function(a){a.K||(a.K=!0,g.Qf(a.I4,a))};
tca=function(a){var b=null;a.B&&(b=a.B,a.B=b.next,b.next=null);a.B||(a.D=null);return b};
uca=function(a,b,c,d){if(3==c&&b.B&&!b.D)for(;a&&a.G;a=a.C)a.G=!1;if(b.j)b.j.C=null,zca(b,c,d);else try{b.D?b.C.call(b.context):zca(b,c,d)}catch(e){Aca.call(null,e)}mba(mca,b)};
zca=function(a,b,c){2==b?a.C.call(a.context,c):a.B&&a.B.call(a.context,c)};
xca=function(a,b){a.G=!0;g.Qf(function(){a.G&&Aca.call(null,b)})};
fg=function(a){vb.call(this,a)};
qca=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};
g.gg=function(a,b){g.Gd.call(this);this.Ti=a||1;this.BF=b||g.Qa;this.IU=(0,g.cb)(this.caa,this);this.jX=g.eb()};
g.hg=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.cb)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.cb)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.Qa.setTimeout(a,b||0)};
ig=function(a,b){var c=null;return(new g.Sf(function(d,e){c=g.hg(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).xk(function(d){g.Qa.clearTimeout(c);
throw d;})};
g.jg=function(a){g.J.call(this);this.S=a;this.B=new Map;this.K=new Set;this.C=0;this.D=100;this.flushInterval=3E4;this.j=new g.gg(this.flushInterval);this.j.Ua("tick",this.Kx,!1,this);g.L(this,this.j);this.G=!1};
Bca=function(a){a.j.enabled||a.j.start();a.C++;a.C>=a.D&&a.Kx()};
Cca=function(a,b){return a.K.has(b)?void 0:a.B.get(b)};
Dca=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
Eca=function(a){this.j=a;this.j.mG("/client_streamz/po/w/rl",{Zf:3,Yf:"mn"},{Zf:2,Yf:"ac"},{Zf:2,Yf:"sc"},{Zf:3,Yf:"rk"})};
Fca=function(a){this.j=a;this.j.mG("/client_streamz/po/w/el",{Zf:3,Yf:"en"},{Zf:3,Yf:"rk"})};
Gca=function(a){this.j=a;this.j.fm("/client_streamz/po/w/cec",{Zf:2,Yf:"ec"},{Zf:3,Yf:"rk"})};
Hca=function(a){this.j=a;this.j.fm("/client_streamz/po/w/csc",{Zf:2,Yf:"cs"},{Zf:3,Yf:"rk"})};
Ica=function(a){this.j=a;this.j.fm("/client_streamz/po/w/ctav",{Zf:3,Yf:"av"},{Zf:3,Yf:"rk"})};
Jca=function(a){this.j=a;this.j.fm("/client_streamz/po/w/cwsc",{Zf:3,Yf:"su"},{Zf:3,Yf:"rk"})};
kg=function(){throw Error("Invalid UTF8");};
Kca=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
Nca=function(a){var b=!1;b=void 0===b?!1:b;if(Lca){if(b&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a))throw Error("Found an unpaired surrogate");a=(Mca||(Mca=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var f=a.charCodeAt(e);if(128>f)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e<a.length){var h=a.charCodeAt(++e);if(56320<=h&&57343>=h){f=1024*(f-55296)+h-56320+65536;d[c++]=f>>
18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a};
Oca=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
Pca=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.lg=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.mg=function(a,b){void 0===b&&(b=0);Qca();b=Rca[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],l=a[e+1],m=a[e+2],n=b[h>>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")};
g.ng=function(a,b){if(Sca&&!b)a=g.Qa.btoa(a);else{for(var c=[],d=0,e=0;e<a.length;e++){var f=a.charCodeAt(e);255<f&&(c[d++]=f&255,f>>=8);c[d++]=f}a=g.mg(c,b)}return a};
Uca=function(a){var b=[];Tca(a,function(c){b.push(c)});
return b};
og=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.gc("=.",a[b-1])&&(c=g.gc("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Tca(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
Tca=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=pg[n];if(null!=p)return p;if(!g.dc(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
Qca();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))}};
Qca=function(){if(!pg){pg={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Rca[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===pg[f]&&(pg[f]=e)}}}};
Wca=function(a){if(!Vca)return g.mg(a);for(var b="",c=0,d=a.length-10240;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);return btoa(b)};
Yca=function(a){return Xca[a]||""};
$ca=function(a){if(!Vca)return og(a);Zca.test(a)&&(a=a.replace(Zca,Yca));a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
qg=function(a){return ada&&null!=a&&a instanceof Uint8Array};
rg=function(){return bda||(bda=new Uint8Array(0))};
cda=function(a){if(a!==sg)throw Error("illegal external caller");};
Ig=function(a,b){cda(b);this.ge=a;if(null!=a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
Jg=function(){return dda||(dda=new Ig(null,sg))};
eda=function(a){var b=a.ge;return null==b?"":"string"===typeof b?b:a.ge=Wca(b)};
Lg=function(a){return(a=Kg(a))?new Uint8Array(a):rg()};
Kg=function(a){cda(sg);var b=a.ge;b=null==b||qg(b)?b:"string"===typeof b?$ca(b):null;return null==b?b:a.ge=b};
fda=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
Mg=function(){return Error("Failed to read varint, encoding is invalid.")};
gda=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
hda=function(a){return 0==a.length?Jg():new Ig(a,sg)};
Ng=function(a){if("string"===typeof a)return{buffer:$ca(a),Et:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Et:!1};if(a.constructor===Uint8Array)return{buffer:a,Et:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Et:!1};if(a.constructor===Ig)return{buffer:Kg(a)||rg(),Et:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Et:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers");
};
jda=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.u(ida(c,a)),b=c.next().value,a=c.next().value,c=b);Og=c>>>0;Pg=a>>>0};
kda=function(a){if(16>a.length)jda(Number(a));else if("function"===typeof BigInt)a=BigInt(a),Og=Number(a&BigInt(4294967295))>>>0,Pg=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);Pg=Og=0;for(var c=a.length,d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),Pg*=1E6,Og=1E6*Og+d,4294967296<=Og&&(Pg+=Math.trunc(Og/4294967296),Pg>>>=0,Og>>>=0);b&&(b=g.u(ida(Og,Pg)),a=b.next().value,b=b.next().value,Og=a,Pg=b)}};
ida=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
Qg=function(a,b){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.init(a,void 0,void 0,b)};
Sg=function(a){var b=0,c=0,d=0,e=a.B,f=a.j;do{var h=e[f++];b|=(h&127)<<d;d+=7}while(32>d&&h&128);32<d&&(c|=(h&127)>>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<<d;Rg(a,f);if(128>h){a=b>>>0;h=c>>>0;if(c=h&2147483648)a=~a+1>>>0,h=~h>>>0,0==a&&(h=h+1>>>0);a=4294967296*h+(a>>>0);return c?-a:a}throw Mg();};
Rg=function(a,b){a.j=b;if(b>a.C)throw gda(a.C,b);};
Tg=function(a){var b=a.B,c=a.j,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw Mg();Rg(a,c);return e};
Ug=function(a){var b=a.B,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];a.advance(4);return(d<<0|e<<8|f<<16|b<<24)>>>0};
Vg=function(a){var b=Ug(a),c=Ug(a);a=2*(c>>31)+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return 2047==d?b?NaN:Infinity*a:0==d?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)};
Wg=function(a){for(var b=0,c=a.j,d=c+10,e=a.B;c<d;){var f=e[c++];b|=f;if(0===(f&128))return Rg(a,c),!!(b&127)}throw Mg();};
lda=function(a,b){if(0>b)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.C)throw gda(b,a.C-c);a.j=d;return c};
nda=function(a,b){if(0==b)return Jg();var c=lda(a,b);a.nG&&a.G?c=a.B.subarray(c,c+b):(a=a.B,b=c+b,c=c===b?rg():mda?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return hda(c)};
Yg=function(a,b){if(Xg.length){var c=Xg.pop();c.init(a,void 0,void 0,b);a=c}else a=new Qg(a,b);this.j=a;this.C=this.j.j;this.B=this.D=-1;oda(this,b)};
oda=function(a,b){b=void 0===b?{}:b;a.JM=void 0===b.JM?!1:b.JM};
pda=function(a){var b=a.j;if(b.j==b.C)return!1;a.C=a.j.j;var c=Tg(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw fda(c,a.C);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.C+")");a.D=b;a.B=c;return!0};
Zg=function(a){switch(a.B){case 0:0!=a.B?Zg(a):Wg(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.B)Zg(a);else{var b=Tg(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.D;do{if(!pda(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.B){if(a.D!=b)throw Error("Unmatched end-group tag");break}Zg(a)}while(1);break;default:throw fda(a.B,a.C);}};
th=function(a,b,c){var d=a.j.C,e=Tg(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.C=f,c(b,a,void 0,void 0,void 0),h=f-a.j.j);if(h)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-h)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.C=d};
wh=function(a){var b=Tg(a.j)>>>0;a=a.j;var c=lda(a,b);a=a.B;if(qda){var d=a,e;(e=uh)||(e=uh=new TextDecoder("utf-8",{fatal:!0}));a=c+b;d=0===c&&a===d.length?d:d.subarray(c,a);try{var f=e.decode(d)}catch(n){if(void 0===vh){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),vh=!0}catch(p){vh=!1}}!vh&&(uh=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;f<b;)l=a[f++],128>l?c.push(l):224>l?f>=b?kg():(m=a[f++],194>l||128!==(m&192)?(f--,kg()):c.push((l&31)<<6|m&63)):
240>l?f>=b-1?kg():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((d=a[f++])&192)?(f--,kg()):c.push((l&15)<<12|(m&63)<<6|d&63)):244>=l?f>=b-2?kg():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((d=a[f++])&192)||128!==((e=a[f++])&192)?(f--,kg()):(l=(l&7)<<18|(m&63)<<12|(d&63)<<6|e&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):kg(),8192<=c.length&&(h=Kca(h,c),c.length=0);f=Kca(h,c)}return f};
rda=function(a){var b=Tg(a.j)>>>0;return nda(a.j,b)};
sda=function(a,b){this.B=a>>>0;this.j=b>>>0};
uda=function(a){if(!a)return tda||(tda=new sda(0,0));if(!/^\d+$/.test(a))return null;kda(a);return new sda(Og,Pg)};
vda=function(a,b){this.B=a>>>0;this.j=b>>>0};
xda=function(a){if(!a)return wda||(wda=new vda(0,0));if(!/^-?\d+$/.test(a))return null;kda(a);return new vda(Og,Pg)};
xh=function(){this.j=[]};
yda=function(a,b,c){for(;0<c||127<b;)a.j.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.j.push(b)};
yh=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
zda=function(a,b){if(0<=b)yh(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
zh=function(a,b){a.j.push(b>>>0&255);a.j.push(b>>>8&255);a.j.push(b>>>16&255);a.j.push(b>>>24&255)};
Ada=function(){this.C=[];this.B=0;this.j=new xh};
Ah=function(a,b){0!==b.length&&(a.C.push(b),a.B+=b.length)};
Bh=function(a,b,c){yh(a.j,8*b+c)};
Bda=function(a,b,c){null!=c&&("string"===typeof c&&uda(c),Bh(a,b,1),"number"===typeof c?(a=a.j,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,Og=b,Pg=c,zh(a,Og),zh(a,Pg)):(c=uda(c),a=a.j,b=c.j,zh(a,c.B),zh(a,b)))};
Ch=function(a,b,c){Bh(a,b,2);yh(a.j,c.length);Ah(a,a.j.end());Ah(a,c)};
Dh=function(a,b,c){this.j=a;this.B=b;this.C=c};
Eh=function(a){return Array.prototype.slice.call(a)};
Cda=function(a){var b=Fh(a);1!==(b&1)&&(Object.isFrozen(a)&&(a=Eh(a)),Gh(a,b|1))};
Dda=function(a,b){Object.isFrozen(a)&&(a=Eh(a));Gh(a,b);return a};
Ih=function(a){Hh(a,1);return a};
Eda=function(a,b){Gh(b,(a|0)&-255)};
Jh=function(a,b){Gh(b,(a|34)&-221)};
Kh=function(a){a=a>>11&1023;return 0===a?536870912:a};
Lh=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
Mh=function(a,b,c,d){if(null==a){if(!c)throw Error();}else if("string"===typeof a)a=a?new Ig(a,sg):Jg();else if(a.constructor!==Ig)if(qg(a))a=d?hda(a):a.length?new Ig(new Uint8Array(a),sg):Jg();else{if(!b)throw Error();a=void 0}return a};
Nh=function(a){if(a&2)throw Error();};
Fda=function(a,b){if("number"!==typeof b||0>b||b>=a.length)throw Error();};
Gda=function(a,b){(b=Oh?b[Oh]:void 0)&&(a[Oh]=Eh(b))};
gi=function(){var a=Error();Aaa(a,"incident");Lf(a)};
hi=function(){var a=Error();Aaa(a,"warning");return a};
ii=function(a){if(null!=a&&"number"!==typeof a)throw Error("Value of float/double field must be a number, found "+typeof a+": "+a);return a};
Hda=function(a){if(null==a)return a;if("number"===typeof a||"NaN"===a||"Infinity"===a||"-Infinity"===a)return Number(a)};
Ida=function(a){return a.displayName||a.name||"unknown type name"};
Jda=function(a){if("boolean"!==typeof a)throw Error("Expected boolean but got "+Va(a)+": "+a);return!!a};
Kda=function(a){if(null==a)return a;if("boolean"===typeof a||"number"===typeof a)return!!a};
Mda=function(a){var b=typeof a;return"number"===b?Number.isFinite(a):"string"!==b?!1:Lda.test(a)};
ji=function(a){return"number"===typeof a&&Number.isFinite(a)||!!a&&"string"===typeof a&&isFinite(a)};
ki=function(a){Number.isFinite(a)||gi();return a};
Nda=function(a){return a};
Oda=function(a){if("number"!==typeof a)throw hi();Number.isFinite(a)||gi();return a};
li=function(a){return null==a?a:Oda(a)};
mi=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if("number"===typeof a)return a};
ni=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if("number"===typeof a)return a};
Pda=function(a){if(!ji(a))throw hi();Mda(a)||gi();return"string"===typeof a?oi(a):pi(a)};
qi=function(a){return null==a?a:Pda(a)};
pi=function(a){ji(a);return a};
ri=function(a){ji(a);return a};
oi=function(a){ji(a);return a};
Qda=function(a){if(!ji(a))throw hi();Mda(a)||gi();"string"===typeof a?ji(a):a=ri(a);return a};
Rda=function(a){if(null==a)return a;if(ji(a)){if("string"===typeof a)return a;if("number"===typeof a)return ri(a)}};
Sda=function(a){if(null==a||"string"===typeof a||qg(a)||a instanceof Ig)return a};
si=function(a){if("string"!==typeof a)throw Error();return a};
ti=function(a){if(null!=a&&"string"!==typeof a)throw Error();return a};
ui=function(a){return null==a||"string"===typeof a?a:void 0};
vi=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Ida(b)+" but got "+(a&&Ida(a.constructor)));return a};
Tda=function(a,b,c){var d=!1;if(null!=a&&"object"===typeof a&&!(d=Array.isArray(a))&&a.yI===wi)return a;if(d){var e=d=Fh(a);0===e&&(e|=c&32);e|=c&2;e!==d&&Gh(a,e);return new b(a)}};
yi=function(a,b){xi=b;a=new a(b);xi=void 0;return a};
Vda=function(a){switch(typeof a){case "number":return 0<a?void 0:0===a?Uda||(Uda=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}};
M=function(a,b,c){null==a&&(a=xi);xi=void 0;if(null==a){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-2095105|(b&1023)<<11)}else{if(!Array.isArray(a))throw Error();d=Fh(a);if(d&64)return Ji&&delete a[Ji],a;d|=64;if(c&&(d|=512,c!==a[0]))throw Error();a:{c=a;var e=c.length;if(e){var f=e-1,h=c[f];if(Lh(h)){d|=256;b=+!!(d&512)-1;e=f-b;1024<=e&&(Wda(c,b,h),e=1023);d=d&-2095105|(e&1023)<<11;break a}}b&&(h=+!!(d&512)-1,b=Math.max(b,e-h),1024<b&&(Wda(c,h,{}),d|=256,b=1023),d=d&-2095105|(b&1023)<<11)}}Gh(a,d);return a};
Wda=function(a,b,c){for(var d=1023+b,e=a.length,f=d;f<e;f++){var h=a[f];null!=h&&h!==c&&(c[f-b]=h)}a.length=d+1;a[d]=c};
Yda=function(a,b){return Xda(b)};
Xda=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "boolean":return a?1:0;case "object":if(a&&!Array.isArray(a)){if(qg(a))return Wca(a);if(a instanceof Ig)return eda(a)}}return a};
Zda=function(a,b,c){var d=Eh(a),e=d.length,f=b&256?d[e-1]:void 0;e+=f?-1:0;for(b=b&512?1:0;b<e;b++)d[b]=c(d[b]);if(f){b=d[b]={};for(var h in f)b[h]=c(f[h])}Gda(d,a);return d};
$da=function(a,b,c,d,e,f){if(null!=a){if(Array.isArray(a))a=e&&0==a.length&&Fh(a)&1?void 0:f&&Fh(a)&2?a:Ki(a,b,c,void 0!==d,e,f);else if(Lh(a)){var h={},l;for(l in a)h[l]=$da(a[l],b,c,d,e,f);a=h}else a=b(a,d);return a}};
Ki=function(a,b,c,d,e,f){var h=d||c?Fh(a):0;d=d?!!(h&32):void 0;for(var l=Eh(a),m=0;m<l.length;m++)l[m]=$da(l[m],b,c,d,e,f);c&&(Gda(l,a),c(h,l));return l};
aea=function(a){return a.yI===wi?a.toJSON():Xda(a)};
bea=function(a,b,c){c=void 0===c?Jh:c;if(null!=a){if(ada&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=Fh(a);return d&2?a:!b||d&68||!(d&32||0===d)?Ki(a,bea,d&4?Jh:c,!0,!1,!0):(Gh(a,d|34),a)}a.yI===wi&&(b=a.oa,c=Li(b),a=c&2?a:yi(a.constructor,Mi(b,c,!0)));return a}};
Mi=function(a,b,c){var d=c||b&2?Jh:Eda,e=!!(b&32);a=Zda(a,b,function(f){return bea(f,e,d)});
Hh(a,32|(c?2:0));return a};
Ni=function(a){var b=a.oa,c=Li(b);return c&2?yi(a.constructor,Mi(b,c,!1)):a};
Pi=function(a,b){a=a.oa;return Oi(a,Li(a),b)};
Oi=function(a,b,c,d){if(-1===c)return null;if(c>=Kh(b)){if(b&256)return a[a.length-1][c]}else{var e=a.length;if(d&&b&256&&(d=a[e-1][c],null!=d))return d;b=c+(+!!(b&512)-1);if(b<e)return a[b]}};
Ri=function(a,b,c){var d=a.oa,e=Li(d);Nh(e);Qi(d,e,b,c);return a};
Qi=function(a,b,c,d,e){var f=Kh(b);if(c>=f||e){e=b;if(b&256)f=a[a.length-1];else{if(null==d)return;f+=+!!(b&512)-1;f>=a.length&&Number.isInteger(f);f=a[f]={};e|=256}f[c]=d;e!==b&&Gh(a,e)}else a[c+(+!!(b&512)-1)]=d,b&256&&(a=a[a.length-1],c in a&&delete a[c])};
Si=function(a,b,c){return void 0!==cea(a,b,c,!1)};
Ui=function(a,b,c,d,e){var f=b&2,h=Oi(a,b,c,e);Array.isArray(h)||(h=Ti);var l=Fh(h);l&1||Ih(h);if(f)l&2||Hh(h,34),d&1||Object.freeze(h);else{f=!(d&2);var m=l&2;d&1||!m?f&&l&32&&!m&&dea(h,32):(h=Ih(Eh(h)),Qi(a,b,c,h,e))}return h};
Vi=function(a,b,c,d,e){a=a.oa;var f=Li(a),h=f&2,l=Ui(a,f,b,null!=e?e:1,d),m=Fh(l);if(!(m&4)){Object.isFrozen(l)&&(m=0,l=Eh(l),Qi(a,f,b,l,d));for(var n=0,p=0;n<l.length;n++){var q=c(l[n]);null!=q&&(l[p++]=q)}p<n&&(l.length=p);m|=5;h&&(m|=34);Gh(l,m);m&2&&Object.freeze(l)}if(2===e)return l;!h&&(m&2||Object.isFrozen(l))&&(l=Eh(l),Hh(l,5),Qi(a,f,b,l,d));return l};
eea=function(a){return Mh(a,!0,!0,!0)};
fea=function(a){return Mh(a,!0,!0,!1)};
Wi=function(a,b){a=a.oa;var c=Li(a),d=Oi(a,c,b),e=Mh(d,!0,!0,!!(c&34));null!=e&&e!==d&&Qi(a,c,b,e);return null==e?Jg():e};
Xi=function(a,b,c,d){var e=a.oa,f=Li(e);Nh(f);if(null==c)return Qi(e,f,b),a;if(!(Fh(c)&4)){Object.isFrozen(c)&&(c=Eh(c));for(var h=0;h<c.length;h++)c[h]=d(c[h]);Gh(c,5)}Qi(e,f,b,c);return a};
lj=function(a,b,c,d){var e=a.oa,f=Li(e);Nh(f);Qi(e,f,b,("0"===d?0===Number(c):c===d)?void 0:c);return a};
nj=function(a,b,c,d){mj(a.oa,b,c,d);return a};
mj=function(a,b,c,d){var e=Li(a);Nh(e);a=Ui(a,e,b,2);void 0!=d?a.splice(d,0,c):a.push(c)};
gea=function(a,b,c,d,e){Nh(Li(a.oa));b=e(a,b,void 0,2);if("number"!==typeof c||0>c||c>b.length)throw Error();b[c]=d;return a};
pj=function(a,b,c,d){var e=a.oa,f=Li(e);Nh(f);(c=oj(e,f,c))&&c!==b&&null!=d&&Qi(e,f,c);Qi(e,f,b,d);return a};
qj=function(a,b,c,d){var e=Li(a);Nh(e);(c=oj(a,e,c))&&c!==b&&Qi(a,e,c);Qi(a,e,b,d)};
rj=function(a,b,c){a=a.oa;return oj(a,Li(a),b)===c?c:-1};
oj=function(a,b,c){for(var d=0,e=0;e<c.length;e++){var f=c[e];null!=Oi(a,b,f)&&(0!==d&&Qi(a,b,d),d=f)}return d};
hea=function(a,b,c){var d=Li(a);Nh(d);var e=Oi(a,d,c),f;if(null!=e&&e.yI===wi)return b=Ni(e),b!==e&&Qi(a,d,c,b),b.oa;if(Array.isArray(e)){var h=Fh(e);h&2?f=Mi(e,h,!1):f=e;f=M(f,b[0],b[1])}else f=M(void 0,b[0],b[1]);f!==e&&Qi(a,d,c,f);return f};
cea=function(a,b,c,d){a=a.oa;var e=Li(a),f=Oi(a,e,c,d);b=Tda(f,b,e);b!==f&&null!=b&&Qi(a,e,c,b,d);return b};
g.sj=function(a,b,c,d){d=void 0===d?!1:d;b=cea(a,b,c,d);if(null==b)return b;a=a.oa;var e=Li(a);if(!(e&2)){var f=Ni(b);f!==b&&(b=f,Qi(a,e,c,b,d))}return b};
iea=function(a,b,c,d,e){var f=!!(b&2),h=Ui(a,b,d,1);if(h===Ti||!(Fh(h)&4)){var l=h;h=!!(b&2);var m=!!(Fh(l)&2);f=l;!h&&m&&(l=Eh(l));var n=b|(m?2:0);m=m||void 0;for(var p=0,q=0;p<l.length;p++){var r=Tda(l[p],c,n);void 0!==r&&(m=m||Li(r.oa)&2,l[q++]=r)}q<p&&(l.length=q);c=l;l=Fh(c);n=l|5;m=m?n&-9:n|8;l!=m&&(c=Dda(c,m));l=c;f!==l&&Qi(a,b,d,l);(h&&2!==e||1===e)&&Object.freeze(l);return l}if(3===e)return h;f?2===e&&(e=Fh(h),h=Eh(h),Gh(h,e),Qi(a,b,d,h)):(f=Object.isFrozen(h),1===e?f||Object.freeze(h):(e=
Fh(h),c=e&-35,f&&(h=Eh(h),e=0,Qi(a,b,d,h)),e!==c&&Gh(h,c)));return h};
jea=function(a,b){var c=a.oa,d=Li(c);a=!!(d&2);b=iea(c,d,b,3,a?1:2);if(!(a||Fh(b)&8)){for(a=0;a<b.length;a++)c=b[a],d=Ni(c),c!==d&&(b[a]=d);Hh(b,8)}return b};
tj=function(a,b,c,d){null!=d?vi(d,b):d=void 0;return Ri(a,c,d)};
uj=function(a,b,c,d,e){null!=e?vi(e,b):e=void 0;return pj(a,c,d,e)};
vj=function(a,b,c,d){var e=a.oa,f=Li(e);Nh(f);if(null!=d){for(var h=!!d.length,l=0;l<d.length;l++){var m=d[l];vi(m,b);h=h&&!(Fh(m.oa)&2)}b=Fh(d);l=b|1;l=(h?l|8:l&-9)|4;l!=b&&(d=Dda(d,l))}null==d&&(d=void 0);Qi(e,f,c,d);return a};
wj=function(a,b,c,d,e){var f=a.oa,h=Li(f);Nh(h);b=iea(f,h,c,b,2);c=null!=d?vi(d,c):new c;void 0!=e?b.splice(e,void 0,c):b.push(c);c.Et()&&dea(b,8);return a};
xj=function(a,b){a=Pi(a,b);a=null==a?a:ji(a)?"number"===typeof a?pi(a):oi(a):void 0;return a};
kea=function(a){a=Pi(a,1);a=null==a?a:ji(a)?"string"===typeof a?oi(a):pi(a):void 0;return a};
yj=function(a,b){return ui(Pi(a,b))};
lea=function(a,b,c,d){return Vi(a,b,ui,c,d)};
mea=function(a,b,c,d){return Vi(a,b,Nda,c,d)};
zj=function(a,b){return null!=a?a:b};
nea=function(a){return Mh(a,!1,!1,!1)};
Aj=function(a,b,c){c=void 0===c?0:c;return zj(mi(Pi(a,b)),c)};
Bj=function(a,b){var c=void 0===c?0:c;return zj(ni(Pi(a,b)),c)};
oea=function(a,b){var c=void 0===c?0:c;return zj(xj(a,b),c)};
Cj=function(a,b){var c=void 0===c?0:c;a=Pi(a,b);null!=a&&(ji(a)?"number"===typeof a?a=ri(a):ji(a):a=void 0);return zj(a,c)};
pea=function(a,b){var c=void 0===c?0:c;a=a.oa;var d=Li(a),e=Oi(a,d,b),f=Hda(e);null!=f&&f!==e&&Qi(a,d,b,f);return zj(f,c)};
g.Dj=function(a,b){return zj(yj(a,b),"")};
Ej=function(a,b){return zj(Pi(a,b),0)};
qea=function(a,b,c){a=mea(a,b,void 0,2);Fda(a,c);return a[c]};
Fj=function(a,b,c){return Ri(a,b,null==c?c:Jda(c))};
Gj=function(a,b,c){return Ri(a,b,li(c))};
Hj=function(a,b,c){if(null!=c){if("number"!==typeof c)throw hi();Number.isFinite(c)||gi()}Ri(a,b,c)};
Ij=function(a,b,c){return Ri(a,b,qi(c))};
Jj=function(a,b,c){Ri(a,b,null==c?c:Qda(c))};
Kj=function(a,b,c){return Ri(a,b,ii(c))};
N=function(a,b,c){return Ri(a,b,ti(c))};
Lj=function(a,b,c){return lj(a,b,ti(c),"")};
ik=function(a,b,c){Ri(a,b,Mh(c,!1,!0,!1))};
O=function(a,b,c){return Ri(a,b,null==c?c:ki(c))};
jk=function(a,b,c,d){pj(a,b,c,null==d?d:ki(d))};
kk=function(a,b,c,d){return nj(a,b,ki(c),d)};
Q=function(a,b,c){this.oa=M(a,b,c)};
lk=function(a,b,c){var d=a.constructor.Fb,e=Kh(Li(c?a.oa:b)),f=!1;if(d){if(!c){b=Eh(b);var h;if(b.length&&Lh(h=b[b.length-1]))for(f=0;f<d.length;f++)if(d[f]>=e){Object.assign(b[b.length-1]={},h);break}f=!0}e=b;c=!c;h=Li(a.oa);a=Kh(h);h=+!!(h&512)-1;for(var l,m,n=0;n<d.length;n++)if(m=d[n],m<a){m+=h;var p=e[m];null==p?e[m]=c?Ti:Ih([]):c&&p!==Ti&&Cda(p)}else l||(p=void 0,e.length&&Lh(p=e[e.length-1])?l=p:e.push(l={})),p=l[m],null==l[m]?l[m]=c?Ti:Ih([]):c&&p!==Ti&&Cda(p)}d=b.length;if(!d)return b;var q;
if(Lh(l=b[d-1])){a:{var r=l;e={};c=!1;for(var t in r)a=r[t],Array.isArray(a)&&a!=a&&(c=!0),null!=a?e[t]=a:c=!0;if(c){for(var v in e){r=e;break a}r=null}}r!=l&&(q=!0);d--}for(;0<d;d--){l=b[d-1];if(null!=l)break;var x=!0}if(!q&&!x)return b;var B;f?B=b:B=Array.prototype.slice.call(b,0,d);b=B;f&&(b.length=d);r&&b.push(r);return b};
mk=function(a,b,c){if(Array.isArray(b)){var d=Fh(b);if(d&4)return b;for(var e=0,f=0;e<b.length;e++){var h=a(b[e]);null!=h&&(b[f++]=h)}f<e&&(b.length=f);c&&(Gh(b,d|5),d&2&&Object.freeze(b));return b}};
ok=function(a){var b=a[rea];if(!b){var c=nk(a),d=c.C;b=d?function(e,f){return d(e,f,c)}:function(e,f){for(;pda(f)&&4!=f.B;){var h=f.D,l=c[h];
if(!l){var m=c.extensions;m&&(m=m[h])&&(l=c[h]=sea(m))}l&&l(f,e,h)||(l=f,h=l.C,Zg(l),l.JM?l=void 0:(m=l.j.j-h,l.j.j=h,l=nda(l.j,m)),h=e,l&&(Oh||(Oh=Symbol()),(m=h[Oh])?m.push(l):h[Oh]=[l]))}(f=c.B)&&(e[Ji||(Ji=Symbol())]=f)};
a[rea]=b}return b};
tea=function(a){if(a=a.GU)return ok(a)};
sea=function(a){var b=tea(a),c=a.c$.j;if(b){var d=nk(a.GU).j;return function(e,f,h){return c(e,f,h,d,b)}}return function(e,f,h){return c(e,f,h)}};
uea=function(a,b,c,d){b.j=Vda(a[0]);var e=1;if(a.length>e&&!(a[e]instanceof Dh)){var f=a[e++];if(Array.isArray(f))return b.C=f[0],b.extensions=f[1],b;b.extensions=f}for(f=0;e<a.length;){var h=a[e++],l=a[e];"number"===typeof l?(e++,f+=l):f++;h.C&&(l=b.B,l||(b.B=l=[]),l.push(f));for(l=e;l<a.length&&!(a[l]instanceof Dh);)l++;if(l-=e){var m=a,n=e,p=m[n];"function"==typeof p&&(p=p(),m[n]=p);if((m=Array.isArray(p))&&!(m=pk in p||qk in p)&&(m=0<p.length)){m=p;n=m[0];var q=Vda(n);null!=q&&q!==n&&(m[0]=q);
m=null!=q}(p=m?p:void 0)?(e++,b[f]=1===l?d(h,p):d(h,p,a[e++])):b[f]=c(h,a[e++])}else b[f]=c(h)}return b};
xea=function(a){var b=a[vea];if(!b){var c=rk(a);b=function(d,e){return wea(d,e,c)};
a[vea]=b}return b};
yea=function(a){return a.B};
zea=function(a,b){var c,d,e=a.B;return function(f,h,l){return e(f,h,l,d||(d=rk(b).j),c||(c=xea(b)))}};
rk=function(a){var b=a[qk];if(b)return b;b=uea(a,a[qk]={},yea,zea);pk in a&&qk in a&&(a.length=0);return b};
Aea=function(a,b){var c=a.j;return b?function(d,e,f){return c(d,e,f,b)}:c};
Bea=function(a,b,c){var d=a.j,e,f;return function(h,l,m){return d(h,l,m,f||(f=nk(b).j),e||(e=ok(b)),c)}};
nk=function(a){var b=a[pk];if(b)return b;b=uea(a,a[pk]={},Aea,Bea);pk in a&&qk in a&&(a.length=0);return b};
Cea=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){var d=c.GU,e=c.c$.B;if(d){var f=xea(d),h=rk(d).j;c=function(l,m,n){return e(l,m,n,h,f)}}else c=e;
return a[b]=c}};
wea=function(a,b,c){for(var d=Li(a),e=+!!(d&512)-1,f=a.length,h=f+(d&256?-1:0),l=d&512?1:0;l<h;l++){var m=a[l];if(null!=m){var n=l-e,p=Cea(c,n);p&&p(b,m,n)}}if(d&256){d=a[f-1];for(var q in d)e=+q,Number.isNaN(e)||(f=d[q],null!=f&&(h=Cea(c,e))&&h(b,f,e))}if(a=Oh?a[Oh]:void 0)for(Ah(b,b.j.end()),c=0;c<a.length;c++)Ah(b,Kg(a[c])||rg())};
sk=function(a,b){return new Dh(a,b,!1)};
tk=function(a,b){return new Dh(a,b,!0)};
uk=function(a,b,c){Qi(a,Li(a),b,c)};
vk=function(a,b,c){b=Hda(b);null!=b&&(Bh(a,c,1),a=a.j,c=Dea||(Dea=new DataView(new ArrayBuffer(8))),c.setFloat64(0,+b,!0),Og=c.getUint32(0,!0),Pg=c.getUint32(4,!0),zh(a,Og),zh(a,Pg))};
wk=function(a,b,c){a:if(null!=b){if(ji(b)){if("string"===typeof b)break a;if("number"===typeof b){b=pi(b);break a}}b=void 0}null!=b&&("string"===typeof b&&xda(b),null!=b&&(Bh(a,c,0),"number"===typeof b?(a=a.j,jda(b),yda(a,Og,Pg)):(c=xda(b),yda(a.j,c.B,c.j))))};
xk=function(a,b,c){b=mi(b);null!=b&&null!=b&&(Bh(a,c,0),zda(a.j,b))};
Eea=function(a,b,c){b=Kda(b);null!=b&&(Bh(a,c,0),a.j.j.push(b?1:0))};
Fea=function(a,b,c){b=ui(b);null!=b&&Ch(a,c,Nca(b))};
yk=function(a,b,c,d,e){b=b instanceof Q?b.oa:Array.isArray(b)?M(b,d[0],d[1]):void 0;if(null!=b){Bh(a,c,2);c=a.j.end();Ah(a,c);c.push(a.B);e(b,a);e=c.pop();for(e=a.B+a.j.length()-e;127<e;)c.push(e&127|128),e>>>=7,a.B++;c.push(e);a.B++}};
Gea=function(a){return function(){var b=new Ada;wea(this.oa,b,rk(a));Ah(b,b.j.end());for(var c=new Uint8Array(b.B),d=b.C,e=d.length,f=0,h=0;h<e;h++){var l=d[h];c.set(l,f);f+=l.length}b.C=[c];return c}};
zk=function(a){return function(b){if(null==b||""==b)b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error(void 0);Hh(b,32);b=yi(a,b)}return b}};
Ak=function(a){this.oa=M(a)};
Bk=function(a){this.oa=M(a)};
Ck=function(a){this.oa=M(a)};
Dk=function(a){this.oa=M(a)};
Ek=function(a){this.oa=M(a)};
Fk=function(a){this.oa=M(a)};
g.Hea=function(a){var b=new Ek;b=N(b,1,a.B);for(var c=[],d=0;d<a.j.length;d++)c.push(a.j[d].Yf);b=Xi(b,3,c,si);c=[];d=[];for(var e=g.u(a.Gy.keys()),f=e.next();!f.done;f=e.next())d.push(f.value.split(","));for(e=0;e<d.length;e++){f=d[e];var h=a.D;for(var l=a.hN(f)||[],m=[],n=0;n<l.length;n++){var p=l[n],q=p&&p.QU;p=new Ck;switch(h){case 3:q=Number(q);Number.isFinite(q)&&pj(p,1,Gk,qi(q));break;case 2:pj(p,2,Gk,ii(Number(q)))}m.push(p)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new Dk;m=tj(n,Ck,2,m);n=f;p=
[];q=a;for(var r=[],t=0;t<q.j.length;t++)r.push(q.j[t].Zf);q=r;for(r=0;r<q.length;r++){var v=q[r],x=n[r];t=new Bk;switch(v){case 3:pj(t,1,Hk,ti(String(x)));break;case 2:v=Number(x);Number.isFinite(v)&&pj(t,2,Hk,li(v));break;case 1:v=t,x="true"==x,x=null==x?x:Jda(x),pj(v,3,Hk,x)}p.push(t)}vj(m,Bk,1,p);c.push(m)}}vj(b,Dk,4,c);return b};
Iea=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a.startsWith("blob:")&&(a=a.substring(5));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};
Jea=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(q){for(var r=h,t=0;64>t;t+=4)r[t/4]=q[t]<<24|q[t+1]<<16|q[t+2]<<8|q[t+3];for(t=16;80>t;t++)q=r[t-3]^r[t-8]^r[t-14]^r[t-16],r[t]=(q<<1|q>>>31)&4294967295;q=e[0];var v=e[1],x=e[2],B=e[3],G=e[4];for(t=0;80>t;t++){if(40>t)if(20>t){var F=B^v&(x^B);var I=1518500249}else F=v^x^B,I=1859775393;else 60>t?(F=v&x|B&(v|x),I=2400959708):(F=v^x^B,I=3395469782);F=((q<<5|q>>>27)&4294967295)+F+G+I+r[t]&4294967295;G=B;B=x;x=(v<<30|v>>>2)&4294967295;v=q;q=F}e[0]=e[0]+q&4294967295;e[1]=e[1]+v&4294967295;e[2]=
e[2]+x&4294967295;e[3]=e[3]+B&4294967295;e[4]=e[4]+G&4294967295}
function c(q,r){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var t=[],v=0,x=q.length;v<x;++v)t.push(q.charCodeAt(v));q=t}r||(r=q.length);t=0;if(0==n)for(;t+64<r;)b(q.slice(t,t+64)),t+=64,p+=64;for(;t<r;)if(f[n++]=q[t++],p++,64==n)for(n=0,b(f);t+64<r;)b(q.slice(t,t+64)),t+=64,p+=64}
function d(){var q=[],r=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var t=63;56<=t;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;5>t;t++)for(var v=24;0<=v;v-=8)q[r++]=e[t]>>v&255;return q}
for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,s4:function(){for(var q=d(),r="",t=0;t<q.length;t++)r+="0123456789ABCDEF".charAt(Math.floor(q[t]/16))+"0123456789ABCDEF".charAt(q[t]%16);return r}}};
Lea=function(a,b,c){var d=String(g.Qa.location.href);return d&&a&&b?[b,Kea(Iea(d),a,c||null)].join(" "):null};
Kea=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.Yb(d,function(l){e.push(l)}),Mea(e.join(" "));
var f=[],h=[];g.Yb(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];g.Yb(d,function(l){e.push(l)});
a=Mea(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")};
Mea=function(a){var b=Jea();b.update(a);return b.s4().toLowerCase()};
Ik=function(a){this.j=a||{cookie:""}};
Jk=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=jc(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}};
Kk=function(a){return!!Nea.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
Oea=function(a){a=void 0===a?!1:a;var b=g.Qa.__SAPISID||g.Qa.__APISID||g.Qa.__3PSAPISID||g.Qa.__OVERRIDE_SID;Kk(a)&&(b=b||g.Qa.__1PSAPISID);if(b)return!0;if("undefined"!==typeof document){var c=new Ik(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID")||c.get("OSID");Kk(a)&&(b=b||c.get("__Secure-1PAPISID"))}return!!b};
Pea=function(a,b,c,d){(a=g.Qa[a])||"undefined"===typeof document||(a=(new Ik(document)).get(b));return a?Lea(a,c,d):null};
Qea=function(a,b){b=void 0===b?!1:b;var c=Iea(String(g.Qa.location.href)),d=[];if(Oea(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.Qa.__SAPISID:g.Qa.__APISID;e||"undefined"===typeof document||(e=new Ik(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Lea(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&Kk(b)&&((b=Pea("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=Pea("__3PSAPISID","__Secure-3PAPISID",
"SAPISID3PHASH",a))&&d.push(a))}return 0==d.length?null:d.join(" ")};
Lk=function(a){this.oa=M(a)};
Mk=function(a){this.oa=M(a)};
Nk=function(a){this.oa=M(a)};
g.Ok=function(a,b,c,d){this.D=a;this.G=b;this.j=this.C=a;this.K=c||0;this.S=d||2};
g.sl=function(a){a.j=Math.min(a.G,a.j*a.S);a.C=Math.min(a.G,a.j+(a.K?Math.round(a.K*(Math.random()-.5)*2*a.j):0));a.B++};
tl=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};
ul=function(a){return a?decodeURI(a):a};
g.wl=function(a,b){return b.match(vl)[a]||null};
g.xl=function(a){return ul(g.wl(3,a))};
g.Rea=function(a){a=a.match(vl);return tl(a[1],a[2],a[3],a[4])};
Sea=function(a){a=a.match(vl);return tl(a[1],null,a[3],a[4])};
yl=function(a){a=a.match(vl);return tl(null,null,null,null,a[5],a[6],a[7])};
Tea=function(a){var b=a.indexOf("#");return 0>b?a:a.slice(0,b)};
zl=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?ze(e):"")}}};
Al=function(a,b){if(!b)return a;var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
Bl=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Bl(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.ye(b)))};
Uea=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Bl(a[b],a[b+1],c);return c.join("&")};
g.Cl=function(a){var b=[],c;for(c in a)Bl(c,a[c],b);return b.join("&")};
Vea=function(a,b){var c=2==arguments.length?Uea(arguments[1],0):Uea(arguments,1);return Al(a,c)};
g.Dl=function(a,b){b=g.Cl(b);return Al(a,b)};
El=function(a,b,c){c=null!=c?"="+g.ye(c):"";return Al(a,b+c)};
Wea=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};
Fl=function(a,b){var c=a.search(Xea),d=Wea(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 ze(a.slice(d,-1!==e?e:0))};
Gl=function(a,b){for(var c=a.search(Xea),d=0,e,f=[];0<=(e=Wea(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(Yea,"$1")};
Zea=function(a,b,c){return El(Gl(a,b),b,c)};
Hl=function(a){this.oa=M(a)};
Il=function(a){this.oa=M(a)};
Jl=function(a){this.oa=M(a)};
Kl=function(a){this.oa=M(a)};
Ll=function(a){this.oa=M(a)};
Ml=function(a){this.oa=M(a)};
Nl=function(a){this.oa=M(a,34)};
Ol=function(a){this.oa=M(a,19)};
Pl=function(a){this.oa=M(a,6)};
$ea=function(a){this.oa=M(a)};
nm=function(a){g.J.call(this);var b=this;this.componentId="";this.B=[];this.Oa="";this.Pa=this.Fa=-1;this.Ja=!1;this.S=this.experimentIds=null;this.va=this.Ca=this.K=this.D=0;this.Va=1;this.timeoutMillis=0;this.ma=!1;this.logSource=a.logSource;this.fz=a.fz||function(){};
this.C=new afa(a.logSource,a.Lz);this.network=a.network;this.HA=a.HA||null;this.Ya=g.db(Uba,0,1);this.qa=a.Baa||null;this.sessionIndex=a.sessionIndex||null;this.DC=a.DC||!1;this.pageId=a.pageId||null;this.logger=null;this.withCredentials=!a.kV;this.Lz=a.Lz||!1;var c=O(new Kl,1,1);Ql(this.C,c);this.G=new g.Ok(1E4,3E5,.1);this.j=new g.gg(this.G.getValue());g.L(this,this.j);a=bfa(this,a.DU);g.yd(this.j,"tick",a,!1,this);this.ea=new g.gg(6E5);g.L(this,this.ea);g.yd(this.ea,"tick",a,!1,this);this.DC||
this.ea.start();this.Lz||(g.yd(document,"visibilitychange",function(){"hidden"===document.visibilityState&&b.WM()}),g.yd(document,"pagehide",this.WM,!1,this))};
bfa=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};
cfa=function(a){a.qa||(a.qa=.01>a.Ya()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.qa};
dfa=function(a,b){a.G=new g.Ok(1>b?1:b,3E5,.1);a.j.setInterval(a.G.getValue())};
ffa=function(a){efa(a,function(b,c){b=El(b,"format","json");var d=!1;try{d=hf().navigator.sendBeacon(b,c.Dj())}catch(e){}a.ma&&!d&&(a.ma=!1);return d})};
efa=function(a,b){if(0!==a.B.length){var c=Gl(cfa(a),"format");c=Vea(c,"auth",a.fz(),"authuser",a.sessionIndex||"0");for(var d=0;10>d&&a.B.length;++d){var e=a.B.slice(0,32),f=a.C.build(e,a.D,a.K,a.HA,a.Ca,a.va);if(!b(c,f)){++a.K;break}a.D=0;a.K=0;a.Ca=0;a.va=0;a.B=a.B.slice(e.length)}a.j.enabled&&a.j.stop()}};
afa=function(a,b){this.Lz=b=void 0===b?!1:b;this.B=this.locale=null;this.j=new Ol;Number.isInteger(a)&&O(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));Ql(this,new Kl)};
Ql=function(a,b){tj(a.j,Kl,1,b);Pi(b,1)||O(b,1,1);a.Lz||(b=om(a),yj(b,5)||N(b,5,a.locale));a.B&&(b=om(a),g.sj(b,Il,9)||tj(b,Il,9,a.B))};
gfa=function(a,b){Si(pm(a),Jl,11)&&(a=qm(a),O(a,1,b))};
hfa=function(a,b){Si(pm(a),Jl,11)&&(a=qm(a),Fj(a,2,b))};
pm=function(a){return g.sj(a.j,Kl,1)};
jfa=function(a,b){var c=void 0===c?ifa:c;b(hf(),c).then(function(d){a.B=d;d=om(a);tj(d,Il,9,a.B);return!0}).catch(function(){return!1})};
om=function(a){a=pm(a);var b=g.sj(a,Jl,11);b||(b=new Jl,tj(a,Jl,11,b));return b};
qm=function(a){a=om(a);var b=g.sj(a,Hl,10);b||(b=new Hl,Fj(b,2,!1),tj(a,Hl,10,b));return b};
g.rm=function(a){return(new kfa).Dj(a)};
kfa=function(){};
sm=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),sm(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),lfa(d,c),c.push(":"),sm(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":lfa(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);}}};
lfa=function(a,b){b.push('"',a.replace(mfa,function(c){var d=nfa[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),nfa[c]=d);return d}),'"')};
ofa=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};
tm=function(){};
um=function(){};
pfa=function(a){if(!a.B&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.B=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.B};
g.vm=function(a){g.Gd.call(this);this.headers=new Map;this.ma=a||null;this.C=!1;this.Ca=this.j=null;this.qa="";this.B=0;this.D="";this.G=this.Ja=this.ea=this.Fa=!1;this.S=0;this.va=null;this.Oa="";this.Pa=this.K=!1};
rfa=function(a,b,c,d,e,f,h){var l=new g.vm;qfa.push(l);b&&l.Ua("complete",b);l.kI("ready",l.T3);f&&(l.S=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)};
sfa=function(a){return g.bf&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
ufa=function(a,b){a.C=!1;a.j&&(a.G=!0,a.j.abort(),a.G=!1);a.D=b;a.B=5;tfa(a);wm(a)};
tfa=function(a){a.Fa||(a.Fa=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
vfa=function(a){if(a.C&&"undefined"!=typeof xm)if(a.Ca[1]&&4==g.ym(a)&&2==a.getStatus())a.getStatus();else if(a.ea&&4==g.ym(a))g.hg(a.sY,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(zm(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.B=6;try{var b=2<g.ym(a)?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";tfa(a)}}finally{wm(a)}}};
wm=function(a,b){if(a.j){wfa(a);var c=a.j,d=a.Ca[0]?function(){}:null;
a.j=null;a.Ca=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
wfa=function(a){a.j&&a.Pa&&(a.j.ontimeout=null);a.va&&(g.Qa.clearTimeout(a.va),a.va=null)};
zm=function(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=g.wl(1,String(a.qa)),!a&&g.Qa.self&&g.Qa.self.location&&(a=g.Qa.self.location.protocol.slice(0,-1)),b=!xfa.test(a?a.toLowerCase():"");c=b}return c};
g.ym=function(a){return a.j?a.j.readyState:0};
g.Am=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.Bm=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Oa){case "":case "text":return a.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.j)return a.j.mozResponseArrayBuffer}return null}catch(b){return null}};
g.yfa=function(a){var b={};a=(a.j&&2<=g.ym(a)?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.dc(a[c])){var d=Yba(a[c]),e=d[0];d=d[1];if("string"===typeof d){d=d.trim();var f=b[e]||[];b[e]=f;f.push(d)}}return Vc(b,function(h){return h.join(", ")})};
g.Cm=function(a,b){return a.j?a.j.getResponseHeader(b):null};
zfa=function(){};
Dm=function(a,b){g.J.call(this);this.logSource=a;this.sessionIndex=b;this.B="https://play.google.com/log?format=json&hasfast=true";this.C=!1;this.componentId="";this.network=new zfa};
Em=function(a,b,c,d,e,f){a=void 0===a?-1:a;b=void 0===b?"":b;c=void 0===c?"":c;d=void 0===d?!1:d;e=void 0===e?"":e;g.J.call(this);f?b=f:(a=new Dm(a,"0"),a.componentId=b,g.L(this,a),""!=c&&(a.B=c),d&&(a.C=!0),e&&(a.j=e),b=a.build());this.j=b};
Fm=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
Afa=function(a){switch(a){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
Gm=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c};
Hm=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()};
Im=function(a,b){this.logger=a;this.j=b;this.startMillis=Hm()};
Bfa=function(){};
Cfa=function(a,b){this.Pf=a;a=new Dm(1654,"0");a.j="17";if(b){var c=new Ak;b=Xi(c,3,b,Oda);a.vC=b}b=new Em(1654,"","",!1,"",a.build());b=new g.jg(b);this.clientError=new Gca(b);this.D=new Fca(b);this.G=new Eca(b);this.C=new Hca(b);this.B=new Ica(b);this.j=new Jca(b)};
Dfa=function(a,b){try{return globalThis.sessionStorage.setItem(a,b),!0}catch(c){return!1}};
Jm=function(a,b,c,d){b=void 0===b?0:b;c=void 0===c?a.length:c;var e=0;for(d&&(e=Jm(d));b<c;b++)d="string"===typeof a?a.charCodeAt(b):a[b],e=Efa(31,e)+d|0;return e};
Ffa=function(a,b){return[Jm(a,0,a.length/2|0,b),Jm(a,a.length/2|0)]};
Km=function(a,b,c){c=void 0===c?[]:c;this.maxItems=a;this.j=void 0===b?0:b;this.B=c};
Gfa=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new Km(a);var c=b.split(",");if(2>c.length)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Km(a);b=c.slice(1);1===b.length&&""===b[0]&&(b=[]);c=Number(c[0]);return isNaN(c)||0>c||c>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Km(a)):new Km(a,c,b)};
Lm=function(a,b){this.logger=b;this.index=Gfa(a)};
Hfa=function(a){var b=g.u(Ffa(a,Mm));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)};
Ifa=function(a){this.j=a;this.j.fm("/client_streamz/bg/fiec",{Zf:3,Yf:"rk"},{Zf:2,Yf:"ec"},{Zf:3,Yf:"em"})};
Nm=function(a,b,c,d){a.j.Km("/client_streamz/bg/fiec",b,c,d)};
Jfa=function(a){this.j=a;this.j.mG("/client_streamz/bg/fil",{Zf:3,Yf:"rk"})};
Kfa=function(a){this.j=a;this.j.fm("/client_streamz/bg/fsc",{Zf:3,Yf:"rk"})};
Lfa=function(a){this.j=a;this.j.mG("/client_streamz/bg/fsl",{Zf:3,Yf:"rk"})};
Ofa=function(a){function b(){c-=d;c-=e;c^=e>>>13;d-=e;d-=c;d^=c<<8;e-=c;e-=d;e^=d>>>13;c-=d;c-=e;c^=e>>>12;d-=e;d-=c;d^=c<<16;e-=c;e-=d;e^=d>>>5;c-=d;c-=e;c^=e>>>3;d-=e;d-=c;d^=c<<10;e-=c;e-=d;e^=d>>>15}
a=Mfa(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=Om(a,l),d+=Om(a,l+4),e+=Om(a,l+8),b();e+=f;switch(h){case 11:e+=a[l+10]<<24;case 10:e+=a[l+9]<<16;case 9:e+=a[l+8]<<8;case 8:d+=a[l+7]<<24;case 7:d+=a[l+6]<<16;case 6:d+=a[l+5]<<8;case 5:d+=a[l+4];case 4:c+=a[l+3]<<24;case 3:c+=a[l+2]<<16;case 2:c+=a[l+1]<<8;case 1:c+=a[l+0]}b();return Nfa.toString(e)};
Mfa=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
Om=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
Pfa=function(a){this.S=Pm();this.G=new Em(1828);this.j=new g.jg(this.G);this.K=new Jfa(this.j);this.C=new Kfa(this.j);this.D=new Lfa(this.j);this.B=new Ifa(this.j);this.Pf=Ofa(a)};
Pm=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()};
Qfa=function(a){this.oa=M(a)};
Rfa=function(a){this.oa=M(a)};
Qm=function(a){this.oa=M(a,0,"bfkj")};
g.Rm=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
yn=function(a){function b(t,v){Promise.resolve().then(function(){var x;null!=(x=c.Jk)&&x.K.Th(Pm()-x.S,x.Pf);h.resolve({J3:t,K$:v})})}
var c=this;this.j=!1;if(a.challenge instanceof Qm){var d=g.Dj(a.challenge,4);var e=g.Dj(a.challenge,5)}else d=a.program,e=a.globalName;if(!1!==a.d$){var f;this.Jk=null!=(f=a.Jk)?f:new Pfa(e)}var h=new g.Rm;this.B=h.promise;if(!g.Qa[e]){var l;null!=(l=this.Jk)&&Nm(l.B,l.Pf,1,"");var m;null!=(m=this.Jk)&&m.j.Kx()}else if(!g.Qa[e].a){var n;null!=(n=this.Jk)&&Nm(n.B,n.Pf,2,"");var p;null!=(p=this.Jk)&&p.j.Kx()}try{this.C=g.u((0,g.Qa[e].a)(d,b,!0,a.Dgb)).next().value,this.J$=h.promise.then(function(){})}catch(t){var q;
null!=(q=this.Jk)&&Nm(q.B,q.Pf,4,t.message);var r;null!=(r=this.Jk)&&r.j.Kx();throw t;}};
Sfa=function(){};
zn=function(a){this.j=a};
An=function(a){if(a instanceof g.$d)a=g.ae(a);else{b:if(Tfa){try{var b=new URL(a)}catch(c){b="https:";break b}b=b.protocol}else c:{b=document.createElement("a");try{b.href=a}catch(c){b=void 0;break c}b=b.protocol;b=":"===b||""===b?"https:":b}a="javascript:"!==b?a:void 0}return a};
Ufa=function(a){return fe(a)};
Vfa=function(a){var b=g.Ja.apply(1,arguments);if(0===b.length)return Zd(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return Zd(c)};
Bn=function(a){this.Ie=a};
Cn=function(a){return new Bn(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
Xfa=function(a,b){b=void 0===b?Wfa:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Bn&&d.Ie(a))return new g.$d(a,be)}};
g.Dn=function(a,b){b=void 0===b?Wfa:b;return Xfa(a,b)||g.ie};
Yfa=function(a){if(!a)return null;a=yj(a,4);return null===a||void 0===a?null:Zd(a)};
g.En=function(a,b){b=An(b);void 0!==b&&(a.href=b)};
Zfa=function(a,b,c,d){if(0===a.length)throw Error("");a=a.map(function(f){if(f instanceof zn)f=f.j;else throw Error("");return f});
var e=c.toLowerCase();if(a.every(function(f){return 0!==e.indexOf(f)}))throw Error('Attribute "'+c+'" does not match any of the allowed prefixes.');
b.setAttribute(c,d)};
Fn=function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);};
Gn=function(a){var b,c,d=null==(c=(b=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:c.call(b,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};
g.Hn=function(a,b){a.src=g.Yd(b);Gn(a)};
g.In=function(a,b,c){var d=window;a=An(a);return void 0!==a?d.open(a,b,c):null};
Jn=function(){this.j={};this.B=null};
$fa=function(){Jn.instance||(Jn.instance=new Jn);return Jn.instance};
cga=function(a,b,c,d){if(!b&&!c)return Promise.resolve();if(!d)return aga(b,c);var e;(e=a.j)[d]||(e[d]=new Promise(function(f,h){aga(b,c).then(function(){a.B=d;f()},function(l){delete a.j[d];
h(l)})}));
return a.j[d]};
aga=function(a,b){return b?dga(b):a?ega(a):Promise.resolve()};
dga=function(a){return new Promise(function(b,c){var d=g.lf("SCRIPT"),e=Yfa(a)||Vfa(fga);g.Hn(d,e);d.onload=function(){g.yf(d);b()};
d.onerror=function(){g.yf(d);c(Error("EWLS"))};
(g.Xe("HEAD")[0]||document.documentElement).appendChild(d)})};
ega=function(a){return new Promise(function(b){var c=g.lf("SCRIPT");if(a){var d=yj(a,6);d=null===d||void 0===d?null:tba(d)}else d=null;c.textContent=rba(d);Gn(c);(g.Xe("HEAD")[0]||document.documentElement).appendChild(c);g.yf(c);b()})};
hga=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a[c]+97;if(g.Qa.TextDecoder)b=(new TextDecoder).decode(b);else if(8192>=b.length)b=String.fromCharCode.apply(null,b);else{a="";for(c=0;c<b.length;c+=8192)a+=String.fromCharCode.apply(null,Array.prototype.slice.call(b,c,c+8192));b=a}return gga(b)};
Kn=function(a){this.oa=M(a)};
Ln=function(a){this.oa=M(a)};
Mn=function(a){this.oa=M(a)};
Nn=function(a,b,c){this.client=a;this.Pf=b;this.j=c};
On=function(a){this.oa=M(a)};
Pn=function(a,b,c){this.j=a;this.C=b;this.B=c};
Qn=function(a,b,c){c=void 0===c?{}:c;this.s$=a;this.j=c;this.B=b};
Rn=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.B=e};
iga=function(a,b,c){c=void 0===c?{}:c;return new Pn(b,a,c)};
Sn=function(a){this.oa=M(a)};
Tn=function(a){this.oa=M(a)};
Un=function(a){this.oa=M(a)};
Vn=function(a){this.oa=M(a)};
Wn=function(a,b){this.S=a.T6;this.ma=b;this.j=a.xhr;this.C=[];this.G=[];this.K=[];this.D=[];this.B=[];this.S&&jga(this)};
mga=function(a,b){g.yd(a.j,"complete",function(){if(zm(a.j)){var c=g.Am(a.j);if(b&&"text/plain"===a.j.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.ma(c)}catch(h){Xn(a,new Gm(13,"Error when deserializing response data; error: "+h+(", response: "+c)));return}c=Fm(a.j.getStatus());Yn(a,Zn(a));0==c?kga(a,d):Xn(a,new Gm(c,"Xhr succeeded but the status code is not 200"))}else{c=g.Am(a.j);d=Zn(a);if(c){var e=lga(a,c);c=e.code;var f=e.details;
e=e.metadata}else c=2,f="Rpc failed due to xhr error. error code: "+a.j.B+", error: "+a.j.getLastError(),e=d;Yn(a,d);Xn(a,new Gm(c,f,e))}})};
jga=function(a){a.S.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.ma(c)}catch(e){Xn(a,new Gm(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&kga(a,d)}if("2"in b)for(b=lga(a,b["2"]),c=0;c<a.K.length;c++)a.K[c](b)});
a.S.on("end",function(){Yn(a,Zn(a));for(var b=0;b<a.D.length;b++)a.D[b]()});
a.S.on("error",function(){if(0!=a.B.length){var b=a.j.B;0!==b||zm(a.j)||(b=6);var c=-1;switch(b){case 0:var d=2;break;case 7:d=10;break;case 8:d=4;break;case 6:c=a.j.getStatus();d=Fm(c);break;default:d=14}Yn(a,Zn(a));b=ofa(b)+", error: "+a.j.getLastError();-1!=c&&(b+=", http status code: "+c);Xn(a,new Gm(d,b))}})};
Zn=function(a){var b={},c=g.yfa(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
lga=function(a,b){var c=2,d={};try{var e=nga(b);c=Aj(e,1);var f=e.getMessage();jea(e,Un).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.qa)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
$n=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
kga=function(a,b){for(var c=0;c<a.C.length;c++)a.C[c](b)};
Yn=function(a,b){for(var c=0;c<a.G.length;c++)a.G[c](b)};
Xn=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
g.ao=function(a){this.K=a.Laa||null;this.G=a.PZ||!1;this.B=void 0};
bo=function(a,b){g.Gd.call(this);this.va=a;this.K=b;this.G=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.ma=new Headers;this.B=null;this.qa="GET";this.ea="";this.j=!1;this.S=this.C=this.D=null};
oga=function(a){a.C.read().then(a.q5.bind(a)).catch(a.OH.bind(a))};
eo=function(a){a.readyState=4;a.D=null;a.C=null;a.S=null;co(a)};
co=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
pga=function(a){if(a.tm&&"function"==typeof a.tm)return a.tm();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(g.Wa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Zc(a)};
qga=function(a){if(a.hp&&"function"==typeof a.hp)return a.hp();if(!a.tm||"function"!=typeof a.tm){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(g.Wa(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.fd(a)}}};
g.fo=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(g.Wa(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,c);else for(var d=qga(a),e=pga(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)};
g.go=function(a){this.j=this.ma=this.G="";this.D=null;this.K=this.C="";this.S=!1;var b;a instanceof g.go?(this.S=a.S,g.ho(this,a.G),this.ma=a.ma,g.io(this,a.j),g.jo(this,a.D),this.C=a.C,ko(this,a.B.clone()),this.K=a.K):a&&(b=String(a).match(vl))?(this.S=!1,g.ho(this,b[1]||"",!0),this.ma=lo(b[2]||""),g.io(this,b[3]||"",!0),g.jo(this,b[4]),this.C=lo(b[5]||"",!0),ko(this,b[6]||"",!0),this.K=lo(b[7]||"")):(this.S=!1,this.B=new mo(null,this.S))};
g.ho=function(a,b,c){a.G=c?lo(b,!0):b;a.G&&(a.G=a.G.replace(/:$/,""))};
g.io=function(a,b,c){a.j=c?lo(b,!0):b};
g.jo=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};
ko=function(a,b,c){b instanceof mo?(a.B=b,rga(a.B,a.S)):(c||(b=no(b,sga)),a.B=new mo(b,a.S))};
g.oo=function(a,b,c){a.B.set(b,c)};
g.po=function(a){return a instanceof g.go?a.clone():new g.go(a)};
lo=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
no=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,tga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
tga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
mo=function(a,b){this.B=this.j=null;this.C=a||null;this.D=!!b};
qo=function(a){a.j||(a.j=new Map,a.B=0,a.C&&zl(a.C,function(b,c){a.add(ze(b),c)}))};
uga=function(a,b){qo(a);b=ro(a,b);return a.j.has(b)};
g.vga=function(a,b,c){a.remove(b);0<c.length&&(a.C=null,a.j.set(ro(a,b),g.Jb(c)),a.B=a.B+c.length)};
ro=function(a,b){b=String(b);a.D&&(b=b.toLowerCase());return b};
rga=function(a,b){b&&!a.D&&(qo(a),a.C=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.vga(this,e,c))},a));
a.D=b};
g.wga=function(a){var b="";g.Tc(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.so=function(a,b,c){if(g.jd(c))return a;c=g.wga(c);if("string"===typeof a)return El(a,g.ye(b),c);g.oo(a,b,c);return a};
g.to=function(a){g.J.call(this);this.B=a;this.j={}};
xga=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)xga(a,b,c[h],d,e,f);else{b=wd(b,c,d||a.handleEvent,e,f||a.B||a);if(!b)return a;a.j[b.key]=b}return a};
yga=function(){this.C=!0;this.B=0;this.j=""};
zga=function(a,b,c){a.C=!1;throw Error("The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b);};
uo=function(){this.K=null;this.S=[];this.D=this.B=this.C=this.j=this.ea=0;this.G=null;this.ma=0};
vo=function(a,b,c,d){a.j=3;a.K="The stream is broken @"+a.ea+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.K);};
wo=function(){this.j=null;this.B=0;this.C=new yga;this.D=new uo};
Aga=function(a,b,c){a.j="The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
xo=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
yo=function(a){this.ea=null;this.K=[];this.D="";this.va=[];this.C=this.B=0;this.S=!1;this.ma=0;this.Ca=/[\\"]/g;this.j=this.G=0;this.qa=!(!a||!a.o4)};
zo=function(a,b,c){a.G=3;a.ea="The stream is broken @"+a.C+"/"+c+". With input:\n"+b;throw Error(a.ea);};
Ao=function(){this.G=this.C=null;this.B=this.j=0;this.D=[];this.K=!1};
Bga=function(a){var b=g.Cm(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new Ao:new yo:b.startsWith("application/x-protobuf")?(a=g.Cm(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new wo:null:new uo:null};
Bo=function(a){this.j=a;this.B=null;this.D=this.C=0;this.ea=!1;this.G=this.S=this.K=null;this.ma=new g.to(this);this.ma.Ua(this.j,"readystatechange",this.qa)};
Co=function(a,b){a.D!=b&&(a.D=b,a.S&&a.S())};
Do=function(a){a.ma.Of();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
Cga=function(a){this.C=a;a=(0,g.cb)(this.z7,this);this.C.G=a;a=(0,g.cb)(this.i9,this);this.C.S=a;this.B={};this.j={}};
Dga=function(a,b){for(var c={},d=0;d<a.length;c={RO:c.RO},d++)c.RO=a[d],b.forEach(function(e){return function(f){try{f(e.RO)}catch(h){}}}(c))};
ap=function(a,b){var c=a.B[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.j[b])&&c.forEach(function(d){d()});
a.j[b]=[]};
Ega=function(){var a={format:"jspb"};a=void 0===a?{}:a;this.G=a.vgb||g.Ta("suppressCorsPreflight",a)||!1;this.B=a.withCredentials||g.Ta("withCredentials",a)||!1;this.D=a.ugb||[];this.K=a.Agb||[];this.j=a.Egb;this.C=a.Bgb||!1};
bp=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Fga(function(h){return new Gga(function(l,m){var n={},p=Hga(a,h,f);p.on("error",function(q){return m(q)});
p.on("metadata",function(q){n=q});
p.on("data",function(q){var r=n;r=void 0===r?{}:r;l(new Qn(q,h.zH(),r))})})},a.K).call(a,iga(e,c,d)).then(function(h){return h.s$})};
Hga=function(a,b,c){var d=b.zH(),e=b.getMetadata(),f=Iga(a,!0);a=Jga(a,e,f,c+d.getName());c=Kga(f,d.B,!1);mga(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
Iga=function(a,b){b=a.C&&!b;return a.j||b?new g.vm(new g.ao({Laa:a.j,PZ:b})):new g.vm};
Jga=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.B)c.K=!0;if(a.G)d=g.so(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
Kga=function(a,b,c){if(c)if(a.isActive(),!g.bf||g.Nc(10)){c=new Bo(a);var d=new Cga(c)}else d=null;return new Wn({xhr:a,T6:d},b)};
Fga=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
cp=function(){this.j=new Ega;this.B="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
dp=function(a){g.J.call(this);this.owner=a;this.signals=new Set;a&&g.L(a,this)};
ep=function(a,b,c){var d=Lga;a.signals.has(b);d({signal:b,data:c})};
fp=function(a){g.J.call(this);this.JU=a;this.slots=new Map;this.OA=new Set;this.wW=!1};
Mga=function(a,b){a.isDisposed()||a.slots.set(b,{slotId:b,slot:void 0,iV:function(){return a.slots.delete(b)}})};
Nga=function(a,b){return new Promise(function(c){gp(function(){a.JU&&(a.hX=b,a.wW=!0);for(var d=g.u(a.slots.values()),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.slotId;f=f.slot;try{f(b,{signal:a,slotId:e})}catch(h){Lf(h)}}d=g.u(a.OA);for(e=d.next();!e.done;e=d.next())e.value.resolve(b);a.OA.clear();c()})})};
Lga=function(){var a=g.Ja.apply(0,arguments);0===a.length?Promise.resolve():1===a.length?(a=a[0],Nga(a.signal,a.data)):Promise.all(a.map(function(b){return Nga(b.signal,b.data)})).then()};
gp=function(a){hp.push(a);Oga()};
Oga=function(){var a,b;g.H(function(c){switch(c.j){case 1:if(ip){c.Ma(0);break}g.za(c,3,4);ip=!0;a=Pga(0);case 6:if(!(a<hp.length)){c.Ma(4);break}return g.z(c,Promise.resolve(),9);case 9:a=Pga(a);c.Ma(6);break;case 4:g.Fa(c);hp.length=0;ip=!1;g.Ga(c,0);break;case 3:b=g.Ca(c),Lf(b),c.Ma(4)}})};
Pga=function(a){for(var b=a+100;a<b&&a<hp.length;)try{hp[a++]()}catch(c){Lf(c)}return a};
Qga=function(a,b){if(a.isDisposed())b();else{var c=jp.get(a);if(c)c.push(b);else{var d=[b];jp.set(a,d);g.ub(a,function(){for(var e=g.u([].concat(g.pa(d))),f=e.next();!f.done;f=e.next())f=f.value,f();jp.delete(a)})}}};
kp=function(a,b,c){g.J.call(this);this.S=a;this.milliseconds=b;this.Vb=c;this.state=this.D=0};
Rga=function(a,b){if(b)if("function"===typeof b)var c=b;else{c=b.aJ;var d=b.mP}else c=function(){};
return new kp(!1,a,{aJ:c,mP:d})};
lp=function(a){vb.call(this,a);this.name="TimerCancelledError"};
mp=function(a){vb.call(this,a);this.name="TimerDisposedError"};
Tga=function(a){return Sga?Array.from(Sga.encode(a)):g.lg(a)};
Uga=function(a){var b=new cp,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new Nn(b,a,function(){return c})};
np=function(a,b){if(a.rV)return a.rV;if(void 0===a.Ry)return[];b=new Im(b,"c");var c=Tga(a.Ry);b.done();return a.rV=c};
op=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=a;if(b instanceof Error){this.message=b.message;var d;this.stack=null!=(d=b.stack)?d:""}else this.message=String(b),this.stack="";Object.setPrototypeOf(this,op.prototype)};
pp=function(a){g.J.call(this);var b=this;this.logger=a;this.D=new g.Rm;g.ub(this,function(){return b.D.reject()})};
qp=function(a,b){b=Rga(b,function(){a.D.resolve()});
g.L(a,b);b.start()};
rp=function(a,b,c,d,e,f){pp.call(this,a);this.ma=c;this.qa=d;this.S=f;this.C="m";this.B="x";this.ea=0;g.L(this,b);qp(this,e);this.K=(Date.now()+e)/1E3|0};
sp=function(a,b,c){pp.call(this,a);this.K=b;this.C="f";this.B="z";qp(this,c)};
tp=function(a,b,c){pp.call(this,a);this.K=b;this.C="w";this.B="z";qp(this,c)};
up=function(a,b){pp.call(this,a);this.error=b;this.C="e";this.B="y"};
Vga=function(a,b){b=(b(a.error.message)+":"+b(a.error.stack)).substring(0,2048);var c=b.length+1;return new Uint8Array([42,c&127|128,c>>7,a.error.code].concat(Tga(b)))};
vp=function(a,b,c){pp.call(this,a);this.K=b;this.clientState=c;this.C="S";this.B="q"};
wp=function(a){g.J.call(this);var b=this;this.j=void 0;this.D=new g.Rm;this.state=1;this.C=0;this.cache=this.B=void 0;this.cz=a.cz;this.eY=a.eY;this.onError=a.onError;this.logger=a.Vfb?new Bfa:new Cfa(a.Pf,a.vC);g.ub(this,function(){b.j&&(b.j.dispose(),b.j=void 0)})};
Wga=function(a,b,c,d){if(!d)throw new op(4,Error("PMD:Undefined"));d=d(Lg(Wi(b,1)));if(!(d instanceof Function))throw new op(16,Error("APF:Failed"));return new rp(a.logger,c,d,Bj(b,3),1E3*Bj(b,2),function(){return a.cache})};
Yga=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B,G,F,I,P;return g.H(function(R){switch(R.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.Ok(c,6E5,.25,2),e=1;case 2:if(!(2>=e)){R.Ma(4);break}g.za(R,5);a.state=3;a.C=e-1;return g.z(R,a.B&&1===e?a.B:a.PC(e),7);case 7:f=R.B;a.B=void 0;a.state=4;h=new Im(a.logger,"b");var Z=$fa();Z=cga(Z,g.sj(f,Qfa,1),g.sj(f,Rfa,2),g.Dj(f,3));return g.z(R,Z,8);case 8:return a.state=5,l=new yn({challenge:f}),m=[],g.z(R,xp(a,l.snapshot({N_:m}),new op(15,"MDA:Timeout")),
9);case 9:return n=R.B,p=g.u(m),r=q=p.next().value,h.done(),a.state=6,g.z(R,xp(a,a.logger.JO("g",e,a.cz.yV(n)),new op(10,"BWB:Timeout")),10);case 10:return t=R.B,a.state=7,v=new Im(a.logger,"i"),g.Dj(t,4)?(l.dispose(),Z=new tp(a.logger,g.Dj(t,4),1E3*Bj(t,2))):Bj(t,3)?Z=Wga(a,t,l,r):(l.dispose(),Z=new sp(a.logger,Lg(Wi(t,1)),1E3*Bj(t,2))),x=Z,v.done(),G=B=void 0,null==(G=(B=a).eY)||G.call(B,Lg(Wi(t,1))),a.state=8,R.return(x);case 5:F=g.Ca(R);b=F instanceof op?F:F instanceof mp?new op(20,F):F instanceof
Gm?new op(11,F):new op(12,F);a.logger.SD(b.code);P=I=void 0;null==(P=(I=a).onError)||P.call(I,b);a:{if(F instanceof Gm)switch(F.code){case 2:case 13:case 14:case 4:Z=!0;break a;default:Z=!1;break a}Z=F instanceof op?20!==F.code:!0}if(!Z)throw b;return g.z(R,Xga(a,d.getValue()),11);case 11:g.sl(d);case 3:e++;R.Ma(2);break;case 4:throw b;}})};
Xga=function(a,b){b=Rga(b);g.L(a,b);b.start();return b.ma};
xp=function(a,b,c){return Promise.race([b,Xga(a,12E4).then(function(){return Promise.reject(c)})])};
Zga=function(a){var b,c,d;g.H(function(e){switch(e.j){case 1:return b=void 0,g.za(e,5),g.z(e,Yga(a),7);case 7:b=e.B;g.Ba(e,6);break;case 5:c=g.Ca(e);if(a.j){a.logger.SD(13);e.Ma(0);break}a.logger.SD(14);b=new up(a.logger,c instanceof op?c:new op(14,c instanceof Error?c:Error(String(c))));case 6:return d=void 0,null==(d=a.j)||d.dispose(),a.j=b,a.D.resolve(),g.za(e,8),g.z(e,a.j.D.promise,10);case 10:g.Ba(e,1);break;case 8:g.Ca(e),e.Ma(0)}})};
$ga=function(a){var b={};g.Yb(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c});
taa(a,function(c){return null===b[c.event]})};
yp=function(){this.Ge=0;this.j=!1;this.B=-1;this.Tv=!1;this.qk=0};
zp=function(){this.ge=null;this.j=!1};
Ap=function(a){zp.call(this);this.C=a};
Bp=function(){zp.call(this)};
Cp=function(){zp.call(this)};
Dp=function(){this.j={};this.B=!0;this.C={}};
Ep=function(a,b,c){a.j[b]||(a.j[b]=new Ap(c));return a.j[b]};
aha=function(a){a.j.queryid||(a.j.queryid=new Cp)};
Fp=function(a,b,c){(a=a.j[b])&&a.B(c)};
Gp=function(a,b){if(g.gd(a.C,b))return a.C[b];if(a=a.j[b])return a.getValue()};
Hp=function(a){var b={},c=g.Uc(a.j,function(d){return d.j});
g.Tc(c,function(d,e){d=void 0!==a.C[e]?String(a.C[e]):d.j&&null!==d.ge?String(d.ge):"";0<d.length&&(b[e]=d)},a);
return b};
bha=function(a){a=Hp(a);var b=[];g.Tc(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
dha=function(a){Ep(a,"od",cha);Ep(a,"opac",Ip).j=!0;Ep(a,"sbeos",Ip).j=!0;Ep(a,"prf",Ip).j=!0;Ep(a,"mwt",Ip).j=!0;Ep(a,"iogeo",Ip)};
eha=function(){this.j=this.Ot=null};
Jp=function(){};
Lp=function(){if(!Kp())throw Error();};
Kp=function(){return!(!Mp||!Mp.performance)};
Np=function(a){return a?a.passive&&fha()?a:a.capture||!1:!1};
Op=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Np(d)),!0):!1};
Pp=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
gha=function(){};
hha=function(){return(oc||pc)&&qc?qc.mobile:!Qp()&&(tc("iPod")||tc("iPhone")||tc("Android")||tc("IEMobile"))};
Qp=function(){return(oc||pc)&&qc?!qc.mobile&&(tc("iPad")||tc("Android")||tc("Silk")):tc("iPad")||tc("Android")&&!tc("Mobile")||tc("Silk")};
Rp=function(a){try{return!!a&&null!=a.location.href&&Kc(a,"foo")}catch(b){return!1}};
Sp=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
jha=function(){var a=[];Sp(iha,function(b){a.push(b)});
return a};
kha=function(a){var b,c;return null!=(c=null==(b=/https?:\/\/[^\/]+/.exec(a))?void 0:b[0])?c:""};
nha=function(){var a=lha("IFRAME"),b={};g.Yb(mha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
lha=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
oha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Rp(a)&&(b=a);return b};
sha=function(a){a=a||Tp();for(var b=new pha(g.Qa.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&qha.test(f.url)&&(c=f);if(f.url&&!f.pO){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new rha(b,e,c)};
Tp=function(){var a=g.Qa,b=[],c=null;do{var d=a;if(Rp(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new pha(e||""));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);d=0;for(a=b.length-1;d<=a;++d)b[d].depth=a-d;d=g.Qa;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.pO=!0);return b};
rha=function(a,b,c){this.j=a;this.B=b;this.C=c};
pha=function(a,b){this.url=a;this.pO=!!b;this.depth=null};
Up=function(){this.C="&";this.B={};this.D=0;this.j=[]};
Vp=function(a,b){var c={};c[a]=b;return[c]};
tha=function(a,b,c,d,e){var f=[];Sp(a,function(h,l){(h=Wp(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
Wp=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(Wp(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(tha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
uha=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};
Xp=function(a,b){this.j=a;this.depth=b};
wha=function(){function a(l,m){return null==l?m:l}
var b=Tp(),c=Math.max(b.length-1,0),d=sha(b);b=d.j;var e=d.B,f=d.C,h=[];f&&h.push(new Xp([f.url,f.pO?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Xp([e.url,2],0));b.url&&b!=f&&h.push(new Xp([b.url,0],a(b.depth,c)));d=g.Yp(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=kha(b.url))&&d.push([new Xp([e,1],a(b.depth,c))]);d.push([]);return g.Yp(d,function(l){return vha(c,l)})};
vha=function(a,b){g.Zp(b,function(e){return 0<=e.depth});
var c=$p(b,function(e,f){return Math.max(e,f.depth)},-1),d=yaa(c+2);
d[0]=a;g.Yb(b,function(e){return d[e.depth+1]=e.j});
return d};
xha=function(){var a=void 0===a?wha():a;return a.map(function(b){return Wp(b)})};
yha=function(a){var b=!1;b=void 0===b?!1:b;Mp.google_image_requests||(Mp.google_image_requests=[]);var c=lha("IMG",Mp.document);b&&(c.attributionSrc="");c.src=a;Mp.google_image_requests.push(c)};
aq=function(a){var b="ih";if(a.ih&&a.hasOwnProperty(b))return a.ih;var c=new a;a.ih=c;a.hasOwnProperty(b);return c};
bq=function(){this.B=new gha;this.j=Kp()?new Lp:new Jp};
zha=function(){cq();var a=Mp.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Mp.setInterval&&"function"===typeof Mp.clearInterval&&"function"===typeof Mp.setTimeout&&"function"===typeof Mp.clearTimeout)};
Aha=function(){cq();return xha()};
Bha=function(){};
cq=function(){var a=aq(Bha);if(!a.j){if(!Mp)throw Error("Context has not been set and window is undefined.");a.j=aq(bq)}return a.j};
dq=function(a){this.oa=M(a)};
Cha=function(a){this.C=a;this.j=-1;this.B=this.D=0};
eq=function(a,b){return function(){var c=g.Ja.apply(0,arguments);if(-1<a.j)return b.apply(null,g.pa(c));try{return a.j=a.C.j.now(),b.apply(null,g.pa(c))}finally{a.D+=a.C.j.now()-a.j,a.j=-1,a.B+=1}}};
Dha=function(a,b){this.B=a;this.C=b;this.j=new Cha(a)};
Eha=function(){this.j={}};
Gha=function(){var a=fq().flags,b=Fha;a=a.j[b.key];if("proto"===b.valueType){try{var c=JSON.parse(a);if(Array.isArray(c))return c}catch(d){}return b.defaultValue}return typeof a===typeof b.defaultValue?a:b.defaultValue};
Kha=function(){this.C=void 0;this.B=this.K=0;this.G=-1;this.Mc=new Dp;Ep(this.Mc,"mv",Hha).j=!0;Ep(this.Mc,"omid",Ip);Ep(this.Mc,"epoh",Ip).j=!0;Ep(this.Mc,"epph",Ip).j=!0;Ep(this.Mc,"umt",Ip).j=!0;Ep(this.Mc,"phel",Ip).j=!0;Ep(this.Mc,"phell",Ip).j=!0;Ep(this.Mc,"oseid",Iha).j=!0;var a=this.Mc;a.j.sloi||(a.j.sloi=new Bp);a.j.sloi.j=!0;Ep(this.Mc,"mm",gq);Ep(this.Mc,"ovms",Jha).j=!0;Ep(this.Mc,"xdi",Ip).j=!0;Ep(this.Mc,"amp",Ip).j=!0;Ep(this.Mc,"prf",Ip).j=!0;Ep(this.Mc,"gtx",Ip).j=!0;Ep(this.Mc,
"mvp_lv",Ip).j=!0;Ep(this.Mc,"ssmol",Ip).j=!0;Ep(this.Mc,"fmd",Ip).j=!0;this.j=new Dha(cq(),this.Mc);this.D=!1;this.flags=new Eha};
fq=function(){return aq(Kha)};
Lha=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof Up)var e=c;else e=new Up,Sp(c,function(h,l){var m=e,n=m.D++;h=Vp(l,h);m.j.push(n);m.B[n]=h});
var f=e.jf(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(cq(),yha(f))}catch(h){}};
Mha=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};
Nha=function(){var a=void 0===a?g.Qa:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.eb()};
Oha=function(){var a=void 0===a?g.Qa:a;return(a=a.performance)&&a.now?a.now():null};
Pha=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()};
$q=function(){var a=window;this.events=[];this.B=a||g.Qa;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.j=Zq()||(null!=b?b:1>Math.random())};
Qha=function(a){a&&ar&&Zq()&&(ar.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),ar.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Rha=function(){var a=br;this.j=cr;this.uV="jserror";this.mR=!0;this.TL=null;this.B=this.MO;this.pd=void 0===a?null:a};
Sha=function(a,b,c){var d=dr;return eq(fq().j.j,function(){try{if(d.pd&&d.pd.j){var e=d.pd.start(a.toString(),3);var f=b();d.pd.end(e)}else f=b()}catch(l){var h=d.mR;try{Qha(e),h=d.B(a,new er(fr(l)),void 0,c)}catch(m){d.MO(217,m)}if(!h)throw l;}return f})()};
gr=function(a,b,c,d){return eq(fq().j.j,function(){var e=g.Ja.apply(0,arguments);return Sha(a,function(){return b.apply(c,e)},d)})};
fr=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};
er=function(a){Mha.call(this,Error(a),{message:a})};
Tha=function(){Mp&&"undefined"!=typeof Mp.google_measure_js_timing&&(Mp.google_measure_js_timing||br.disable())};
Uha=function(a){dr.TL=function(b){g.Yb(a,function(c){c(b)})}};
Vha=function(a,b){return Sha(a,b)};
hr=function(a,b){return gr(a,b)};
ir=function(a,b,c,d){dr.MO(a,b,c,d)};
jr=function(){return Date.now()-Wha};
Xha=function(){var a=fq().C,b=0<=kr?jr()-kr:-1,c=lr?jr()-mr:-1,d=0<=nr?jr()-nr:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];ir(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};
or=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
pr=function(a){return a.right-a.left};
qr=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1};
rr=function(a,b,c){b instanceof g.ue?(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};
sr=function(a,b,c){var d=new or(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.j=d;this.B=c};
tr=function(a,b,c,d,e,f,h,l){this.D=a;this.S=b;this.C=c;this.K=d;this.j=e;this.G=f;this.B=h;this.ma=l};
Zha=function(a){var b=a!==a.top,c=a.top===oha(a),d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),aba(Yha,function(h){return"function"===typeof f[h]})||(e=1));
return{Mn:f,compatibility:e,O$:d}};
$ha=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
aia=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.we(b.innerWidth,b.innerHeight)).round():aca(b||window).round()}catch(d){return new g.we(-12245933,-12245933)}};
ur=function(a,b,c){try{a&&(b=b.top);var d=aia(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new or(f,f,f,f);var h=cca(Ve(b.document).j),l=h.x,m=h.y;return new or(m,l+f,m+e,l)}catch(n){return new or(-12245933,-12245933,-12245933,-12245933)}};
g.vr=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
wr=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};
g.yr=function(a,b,c){if("string"===typeof b)(b=xr(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=xr(c,d);f&&(c.style[f]=e)}};
xr=function(a,b){var c=bia[b];if(!c){var d=Vba(b);c=d;void 0===a.style[d]&&(d=(g.Pc?"Webkit":zr?"Moz":g.bf?"ms":null)+Xba(d),void 0!==a.style[d]&&(c=d));bia[b]=c}return c};
g.Ar=function(a,b){var c=a.style[Vba(b)];return"undefined"!==typeof c?c:a.style[xr(a,b)]||""};
Br=function(a,b){var c=Ne(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Cr=function(a,b){return Br(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Er=function(a,b,c){if(b instanceof g.ue){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Dr(d,!1);a.style.top=g.Dr(b,!1)};
Fr=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
cia=function(a){if(g.bf&&!g.Nc(8))return a.offsetParent;var b=Ne(a),c=Cr(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=Cr(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.Gr=function(a){var b=Ne(a),c=new g.ue(0,0);var d=b?Ne(b):document;d=!g.bf||g.Nc(9)||"CSS1Compat"==Ve(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=Fr(a);b=cca(Ve(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
eia=function(a,b){var c=new g.ue(0,0),d=hf(Ne(a));if(!Kc(d,"parent"))return c;do{var e=d==b?g.Gr(a):dia(a);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c};
g.Hr=function(a,b){a=fia(a);b=fia(b);return new g.ue(a.x-b.x,a.y-b.y)};
dia=function(a){a=Fr(a);return new g.ue(a.left,a.top)};
fia=function(a){if(1==a.nodeType)return dia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.ue(a.clientX,a.clientY)};
g.Ir=function(a,b,c){if(b instanceof g.we)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Dr(b,!0);a.style.height=g.Dr(c,!0)};
g.Dr=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Jr=function(a){var b=gia;if("none"!=Cr(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};
gia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Pc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Fr(a),new g.we(a.right-a.left,a.bottom-a.top)):new g.we(b,c)};
g.Kr=function(a,b){a.style.display=b?"":"none"};
Lr=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
hia=function(a){return new or(a.top,a.right,a.bottom,a.left)};
iia=function(a){var b=a.top||0,c=a.left||0;return new or(b,c+(a.width||0),b+(a.height||0),c)};
Mr=function(a){return null!=a&&0<=a&&1>=a};
jia=function(){var a=g.mc();return a?Nr("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return hc(a,b)})||hc(a,"OMI/")&&!hc(a,"XiaoMi/")?!0:hc(a,"Presto")&&hc(a,"Linux")&&!hc(a,"X11")&&!hc(a,"Android")&&!hc(a,"Mobi"):!1};
kia=function(){this.C=!Rp(Mp.top);this.isMobileDevice=Qp()||hha();var a=Tp();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.xl(a[a.length-1].url)||"":"";this.j=new or(0,0,0,0);this.D=new g.we(0,0);this.G=new g.we(0,0);this.S=new or(0,0,0,0);this.K=0;this.ma=!1;this.B=!(!Mp||!Zha(Mp).Mn);this.update(Mp)};
lia=function(a,b){b&&b.screen&&(a.D=new g.we(b.screen.width,b.screen.height))};
mia=function(a,b){var c=a.j?new g.we(pr(a.j),a.j.getHeight()):new g.we(0,0);b=void 0===b?Mp:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=q):m<p?(d=m,e=n):(d=p,e=q)}var r=new g.we(e,d)}catch(t){r=new g.we(-12245933,-12245933)}a.G=r};
Qr=function(){var a=Or();if(0<a.K||a.ma)return!0;a=cq().B.isVisible();var b=0===Pp(Pr);return a||b};
Or=function(){return aq(kia)};
Rr=function(a){this.C=a;this.B=0;this.j=null};
Sr=function(a,b,c){this.C=a;this.Va=void 0===c?"na":c;this.G=[];this.isInitialized=!1;this.D=new sr(-1,!0,this);this.j=this;this.ma=b;this.qa=this.ea=!1;this.Ja="uk";this.Fa=!1;this.K=!0};
Tr=function(a,b){g.Db(a.G,b)||(a.G.push(b),b.vz(a.j),b.vt(a.D),b.Qp()&&(a.ea=!0))};
nia=function(a){a=a.j;a.ZS();a.YS();var b=Or();b.S=ur(!1,a.C,b.isMobileDevice);mia(Or(),a.C);a.D.j=a.bW()};
oia=function(a){a.ea=a.G.length?Nr(a.G,function(b){return b.Qp()}):!1};
pia=function(a){var b=g.Jb(a.G);g.Yb(b,function(c){c.vt(a.D)})};
Ur=function(a){var b=g.Jb(a.G);g.Yb(b,function(c){c.vz(a.j)});
a.j!=a||pia(a)};
Vr=function(a,b,c,d){this.element=a;this.j=new or(0,0,0,0);this.D=new or(0,0,0,0);this.B=b;this.Mc=c;this.va=d;this.qa=!1;this.timestamp=-1;this.S=new tr(b.D,this.element,this.j,new or(0,0,0,0),0,0,jr(),0)};
Wr=function(a){this.G=!1;this.j=a;this.D=function(){}};
qia=function(a,b,c){this.B=void 0===c?0:c;this.j=a;this.ge=null==b?"":b};
ria=function(a){switch(Math.trunc(a.B)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
sia=function(a,b){return a.B<b.B?!0:a.B>b.B?!1:a.j<b.j?!0:a.j>b.j?!1:typeof a.ge<typeof b.ge?!0:typeof a.ge>typeof b.ge?!1:a.ge<b.ge};
Xr=function(){this.C=0;this.j=[];this.B=!1};
tia=function(a,b){(0,g.Yb)(b.j,function(c){a.add(c.j,c.ge,ria(c))})};
Yr=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Sp(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
Zr=function(a){var b=uia;a.B&&(g.Ub(a.j,function(c,d){return sia(d,c)?1:sia(c,d)?-1:0}),a.B=!1);
return $p(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
uia=function(a){var b=a.j;a=a.ge;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.Db(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
via=function(a){var b=void 0===b?!0:b;this.j=new Xr;void 0!==a&&tia(this.j,a);b&&this.j.add("v","unreleased",-16)};
wia=function(a){var b=[],c=[];g.Tc(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d)switch(Array.isArray(d)&&(d=d.join(",")),d=[e,"=",d].join(""),e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(d);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(d);break;default:b.push(d)}});
return b.concat(c)};
xia=function(a){a=a.toString();a=a.substring(0,4E3);cq();yha(a)};
yia=function(){this.j=0};
zia=function(a,b,c){(0,g.Yb)(a.C,function(d){var e=a.j;if(!d.j&&(d.C(b,c),d.D())){d.j=!0;var f=d.B(),h=new Xr;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.G);d=aq(yia);h.add("i",d.j++);h.add("adk",e);Yr(h,f);e=new via(h);xia(e)}})};
$r=function(){this.B=this.C=this.D=this.j=0};
as=function(a){this.B=a=void 0===a?Aia:a;this.j=g.Yp(this.B,function(){return new $r})};
bs=function(a,b){return Bia(a,function(c){return c.j},void 0===b?!0:b)};
ds=function(a,b){return cs(a,b,function(c){return c.j})};
Cia=function(a,b){return Bia(a,function(c){return c.C},void 0===b?!0:b)};
es=function(a,b){return cs(a,b,function(c){return c.C})};
fs=function(a,b){return cs(a,b,function(c){return c.B})};
Dia=function(a){g.Yb(a.j,function(b){b.B=0})};
Bia=function(a,b,c){a=g.Yp(a.j,function(d){return b(d)});
return c?a:Eia(a)};
cs=function(a,b,c){var d=g.Cb(a.B,function(e){return b<=e});
return-1==d?0:c(a.j[d])};
Eia=function(a){return g.Yp(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
gs=function(){this.B=new as;this.Va=new $r;this.va=this.S=-1;this.fb=1E3;this.kb=new as([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ja=this.Ca=-1};
hs=function(a,b){return Cia(a.B,void 0===b?!0:b)};
is=function(a,b,c,d){var e=void 0===e?!1:e;c=gr(d,c);Op(a,b,c,{capture:e})};
ks=function(a,b){b=js(b);return 0===b?0:js(a)/b};
js=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Fia=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.zf(a)||a){var d=Ne(a),e=d&&hf(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
Gia=function(a,b,c){if(!a||!b)return!1;b=rr(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Rp(window.top)&&window.top&&window.top.document&&(window=window.top);if(!$ha())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Ne(c))&&b.defaultView&&b.defaultView.frameElement)&&Fia(b,a);var d=a===c;a=!d&&a&&Df(a,function(e){return e===c});
return!(b||d||a)};
Hia=function(a,b,c,d){return Or().C?!1:0>=pr(a)||0>=a.getHeight()?!0:c&&d?Vha(208,function(){return Gia(a,b,c)}):!1};
ls=function(a,b,c){g.J.call(this);this.position=Iia.clone();this.tI=this.DH();this.IO=-2;this.daa=Date.now();this.e_=-1;this.Bp=b;this.jI=null;this.HC=!1;this.KI=null;this.opacity=-1;this.requestSource=c;this.naa=!1;this.OO=function(){};
this.s_=function(){};
this.Nj=new eha;this.Nj.Ot=a;this.Nj.j=a;this.Ct=!1;this.qv={aP:null,ZO:null};this.FZ=!0;this.uF=null;this.Ez=this.k6=!1;fq().K++;this.Qh=this.yN();this.ZZ=-1;this.ag=null;this.hasCompleted=this.f6=!1;this.Mc=new Dp;dha(this.Mc);Jia(this);1==this.requestSource?Fp(this.Mc,"od",1):Fp(this.Mc,"od",0)};
Jia=function(a){a=a.Nj.Ot;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Kia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Wba()):!!a.getAttribute("data-"+Wba());b&&(Or().B=!0)};
ms=function(a,b){b!=a.Ez&&(a.Ez=b,a=Or(),b?a.K++:0<a.K&&a.K--)};
Lia=function(a,b){if(a.ag){if(b.getName()===a.ag.getName())return;a.ag.dispose();a.ag=null}b=b.create(a.Nj.j,a.Mc,a.Qp());if(b=null!=b&&b.WK()?b:null)a.ag=b};
Mia=function(a,b,c){if(!a.jI||-1==a.Bp||-1===b.B||-1===a.jI.B)return 0;a=b.B-a.jI.B;return a>c?0:a};
Nia=function(a,b,c){if(a.ag){a.ag.Fs();var d=a.ag.S,e=d.D,f=e.j;if(null!=d.K){var h=d.C;a.KI=new g.ue(h.left-f.left,h.top-f.top)}f=a.ZJ()?Math.max(d.j,d.G):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.SV(d);a.jI=d;a.Sa(f,b,c,!1,h,e,d.ma)}};
Oia=function(a){if(a.HC&&a.uF){var b=1==Gp(a.Mc,"od"),c=Or().j,d=a.uF,e=a.ag?a.ag.getName():"ns",f=new g.we(pr(c),c.getHeight());c=a.ZJ();a={T$:e,KI:a.KI,Jaa:f,ZJ:c,Ge:a.Qh.Ge,Daa:b};if(b=d.B){b.Fs();e=b.S;f=e.D.j;var h=null,l=null;null!=e.K&&f&&(h=e.C,h=new g.ue(h.left-f.left,h.top-f.top),l=new g.we(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.G):e.j;c={T$:b.getName(),KI:h,Jaa:l,ZJ:c,Daa:!1,Ge:e}}else c=null;c&&zia(d,a,c)}};
Pia=function(a,b,c){b&&(a.OO=b);c&&(a.s_=c)};
g.ns=function(){};
g.os=function(a){return{value:a,done:!1}};
Qia=function(){this.D=this.j=this.C=this.B=this.G=0};
Ria=function(a){var b={};var c=g.eb()-a.G;b=(b.ptlt=c,b);(c=a.B)&&(b.pnk=c);(c=a.C)&&(b.pnc=c);(c=a.D)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b};
Sia=function(){yp.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
ps=function(a){return Mr(a.volume)&&0<a.volume};
qs=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 Tia(f,b,c)}};
rs=function(a,b){return function(c){return b(c)?c[a]:void 0}};
Uia=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}};
Tia=function(a,b,c){return void 0===c||c?g.ts(a,function(d,e){return g.Db(b,e)}):g.Yp(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)})};
Via=function(){this.B=this.j=""};
Wia=function(){};
us=function(a,b){var c={};if(void 0!==a)if(null!=b)for(var d in b){var e=b[d];d in Object.prototype||null!=e&&(c[d]="function"===typeof e?e(a):a[e])}else g.sd(c,a);return Zr(Yr(new Xr,c))};
Xia=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.mut=[33554432,33554432],a.umutb=[67108864,67108864],a.tvoff=[134217728,134217728],a);this.j={};for(var b in this.B)0<this.B[b][1]&&(this.j[b]=0);this.C=0};
vs=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];0<d&&0==a.j[b]&&(a.j[b]=1)};
Yia=function(a){var b=g.fd(a.B),c=0,d;for(d in a.j)g.Db(b,d)&&1==a.j[d]&&(c+=a.B[d][1],a.j[d]=2);return c};
Zia=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(1==d||2==d)b+=a.B[c][1]}return b};
ws=function(){this.j=this.B=0};
Ds=function(){gs.call(this);this.C=new $r;this.Pa=this.ea=this.Fa=0;this.ma=-1;this.rb=new $r;this.G=new $r;this.j=new as;this.K=this.D=-1;this.qa=new $r;this.fb=2E3;this.Oa=new ws;this.eb=new ws;this.Ya=new ws};
Es=function(a,b,c){var d=a.Pa;lr||c||-1==a.ma||(d+=b-a.ma);return d};
$ia=function(){this.C=!1};
Fs=function(a,b){this.C=!1;this.D=a;this.ea=b;this.G=0};
Gs=function(a,b){Fs.call(this,a,b);this.S=[]};
aja=function(){};
Hs=function(){};
Is=function(a,b,c,d){Vr.call(this,a,b,c,d)};
Js=function(a,b,c){Vr.call(this,null,a,b,c);this.K=a.isActive();this.G=0};
Ks=function(a){return[a.top,a.left,a.bottom,a.right]};
Ls=function(a,b,c,d,e,f){f=void 0===f?new Hs:f;ls.call(this,b,c,d);this.dQ=e;this.GM=0;this.Uh={};this.Vg=new Xia;this.K_={};this.Zi="";this.eb=null;this.Ub=!1;this.j=[];this.Zq=f.B();this.K=f.C();this.D=null;this.C=-1;this.Pa=this.ea=void 0;this.va=this.qa=0;this.Ja=-1;this.kb=this.fb=!1;this.Fa=this.ma=this.B=this.qB=this.Cb=0;new as;this.Oa=this.Va=0;this.Ya=-1;this.bk=0;this.S=g.Ld;this.Ca=[this.DH()];this.Mb=2;this.nx={};this.nx.pause="p";this.nx.resume="r";this.nx.skip="s";this.nx.mute="m";
this.nx.unmute="um";this.nx.exitfullscreen="ef";this.G=null;this.rb=this.xb=!1};
Ms=function(a){a.hasCompleted=!0;0!=a.bk&&(a.bk=3)};
Ns=function(a){return void 0===a?a:Number(a)?Lr(a,3):0};
Os=function(a,b){return a.Ca[null!=b&&b<a.Ca.length?b:a.Ca.length-1]};
bja=function(a){var b=!!Gp(fq().Mc,"umt");return a.ea||!b&&!a.Pa?0:1};
cja=function(a,b){a.In()?b=0:-1==a.Bp?b=0:(b-=a.Bp,b=b>Math.max(1E4,a.C/3)?0:b);var c=a.S(a)||{};c=void 0!==c.currentTime?c.currentTime:a.qa;var d=c-a.qa,e=0;0<=d?(a.va+=b,a.Oa+=Math.max(b-d,0),e=Math.min(d,a.va)):a.Va+=Math.abs(d);0!=d&&(a.va=0);-1==a.Ya&&0<d&&(a.Ya=0<=nr?jr()-nr:-1);a.qa=c;return e};
dja=function(a,b){Nr(a.K,function(c){return c.D==b.D})||a.K.push(b)};
eja=function(a){var b=ds(a.lj().j,1);return Ps(a,b)};
Ps=function(a,b,c){return 15E3<=b?!0:a.fb?(void 0===c?0:c)?!0:0<a.C?b>=a.C/2:0<a.Ja?b>=a.Ja:!1:!1};
fja=function(a){var b=Lr(a.Qh.Ge,2),c=a.Vg.C,d=a.Qh,e=Os(a),f=Ns(e.D),h=Ns(e.K),l=Ns(d.volume),m=Lr(e.S,2),n=Lr(e.va,2),p=Lr(d.Ge,2),q=Lr(e.Ca,2),r=Lr(e.Ja,2);d=Lr(d.qk,2);a=a.kt().clone();a.round();e=hs(e,!1);return{Iaa:b,yD:c,zI:f,oI:h,kC:l,AI:m,pI:n,Ge:p,CI:q,qI:r,qk:d,position:a,FI:e}};
hja=function(a,b){gja(a.j,b,function(){return{Iaa:0,yD:void 0,zI:-1,oI:-1,kC:-1,AI:-1,pI:-1,Ge:-1,CI:-1,qI:-1,qk:-1,position:void 0,FI:[]}});
a.j[b]=fja(a)};
gja=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Rs=function(a,b,c){var d=a.K_[b];if(null!=d)return d;d=ija(a,b);var e=id(Qs,function(f){return f==b});
a=jja(a,d,d,c,kja[Qs[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
Ss=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
jja=function(a,b,c,d,e){if(a.Ct)return{"if":0,vs:0};var f=a.kt().clone();f.round();var h=Or(),l=fq(),m=a.lj(),n=a.ag?a.ag.getName():"ns",p={};p["if"]=h.C?1:void 0;p.sdk=a.D?a.D:void 0;p.t=a.daa;p.p=[f.top,f.left,f.bottom,f.right];p.tos=bs(m.B,!1);p.mtos=hs(m);p.mcvt=m.Va.C;p.ps=void 0;f=Es(m,jr(),a.In());p.vht=f;p.mut=m.rb.C;p.a=Ns(a.Qh.volume);p.mv=Ns(m.K);p.fs=a.Ez?1:0;p.ft=m.qa.j;p.at=m.G.j;p.as=0<m.D?1:0;p.atos=bs(m.j);p.ssb=bs(m.kb,!1);p.amtos=Cia(m.j,!1);p.uac=a.Cb;p.vpt=m.C.j;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=Ps(a,m.C.j,!0)?1:0;p.efpf=a.Mb;if("gsv"==n||"nis"==n)n=a.ag,0<n.G&&(p.nnut=n.G);p.tcm=bja(a);p.nmt=a.Va;p.bt=a.Oa;p.pst=a.Ya;p.vpaid=a.ea;p.dur=a.C;p.vmtime=a.qa;p.is=a.Vg.C;1<=a.j.length&&(p.i0=a.j[0].yD,p.a0=[a.j[0].kC],p.c0=[a.j[0].Ge],p.ss0=[a.j[0].qk],n=a.j[0].position,p.p0=n?Ks(n):void 0);2<=a.j.length&&(p.i1=a.j[1].yD,p.a1=Ss(a.j[1].zI,a.j[1].kC,a.j[1].oI),p.c1=Ss(a.j[1].AI,a.j[1].Ge,a.j[1].pI),p.ss1=Ss(a.j[1].CI,a.j[1].qk,a.j[1].qI),n=a.j[1].position,p.p1=n?
Ks(n):void 0,p.mtos1=a.j[1].FI);3<=a.j.length&&(p.i2=a.j[2].yD,p.a2=Ss(a.j[2].zI,a.j[2].kC,a.j[2].oI),p.c2=Ss(a.j[2].AI,a.j[2].Ge,a.j[2].pI),p.ss2=Ss(a.j[2].CI,a.j[2].qk,a.j[2].qI),n=a.j[2].position,p.p2=n?Ks(n):void 0,p.mtos2=a.j[2].FI);4<=a.j.length&&(p.i3=a.j[3].yD,p.a3=Ss(a.j[3].zI,a.j[3].kC,a.j[3].oI),p.c3=Ss(a.j[3].AI,a.j[3].Ge,a.j[3].pI),p.ss3=Ss(a.j[3].CI,a.j[3].qk,a.j[3].qI),n=a.j[3].position,p.p3=n?Ks(n):void 0,p.mtos3=a.j[3].FI);p.cs=Zia(a.Vg);b&&(p.ic=Yia(a.Vg),p.dvpt=m.C.B,p.dvs=fs(m.B,
.5),p.dfvs=fs(m.B,1),p.davs=fs(m.j,.5),p.dafvs=fs(m.j,1),c&&(m.C.B=0,Dia(m.B),Dia(m.j)),a.Tq()&&(p.dtos=m.Fa,p.dav=m.ea,p.dtoss=a.GM+1,c&&(m.Fa=0,m.ea=0,a.GM++)),p.dat=m.G.B,p.dft=m.qa.B,c&&(m.G.B=0,m.qa.B=0));p.ps=[h.G.width,h.G.height];p.bs=[pr(h.j),h.j.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.qB&&(p.vds=a.qB);if(0<a.K.length||a.Zq)b=g.Jb(a.K),a.Zq&&b.push(a.Zq),p.pings=g.Yp(b,function(q){return q.toString()});
b=g.Yp(g.ts(a.K,function(q){return q.K()}),function(q){return q.getId()});
uaa(b);p.ces=b;a.B&&(p.vmer=a.B);a.ma&&(p.vmmk=a.ma);a.Fa&&(p.vmiec=a.Fa);p.avms=a.ag?a.ag.getName():"ns";a.ag&&g.sd(p,a.ag.Ys());d?(p.c=Lr(a.Qh.Ge,2),p.ss=Lr(a.Qh.qk,2)):p.tth=jr()-lja;p.mc=Lr(m.va,2);p.nc=Lr(m.S,2);p.mv=Ns(m.K);p.nv=Ns(m.D);p.lte=Lr(a.IO,2);d=Os(a,e);hs(m);p.qmtos=hs(d);p.qnc=Lr(d.S,2);p.qmv=Ns(d.K);p.qnv=Ns(d.D);p.qas=0<d.D?1:0;p.qi=a.Zi;p.avms||(p.avms="geo");p.psm=m.Oa.j;p.psv=m.Oa.getValue();p.psfv=m.eb.getValue();p.psa=m.Ya.getValue();l=bha(l.Mc);l.length&&(p.veid=l);a.G&&
g.sd(p,Ria(a.G));p.avas=a.oH();p.vs=a.dW();return p};
ija=function(a,b){if(g.Db(mja,b))return!0;var c=a.Uh[b];return void 0!==c?(a.Uh[b]=!0,!c):!1};
oja=function(){this.j={};var a=hf();Ts(this,a,document);var b=nja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Ts(this,c,c.document);Ts(this,a.top,a.top.document)}}catch(d){}};
nja=function(){var a=document.documentElement;try{if(!Rp(hf().top))return"2";var b=[],c=hf(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"}};
Ts=function(a,b,c){is(c,"mousedown",function(){return pja(a)},301);
is(b,"scroll",function(){return qja(a)},302);
is(c,"touchmove",function(){return rja(a)},303);
is(c,"mousemove",function(){return sja(a)},304);
is(c,"keydown",function(){return tja(a)},305)};
pja=function(a){g.Tc(a.j,function(b){1E5<b.C||++b.C})};
qja=function(a){g.Tc(a.j,function(b){1E5<b.j||++b.j})};
rja=function(a){g.Tc(a.j,function(b){1E5<b.j||++b.j})};
tja=function(a){g.Tc(a.j,function(b){1E5<b.B||++b.B})};
sja=function(a){g.Tc(a.j,function(b){1E5<b.D||++b.D})};
uja=function(){this.j=[];this.B=[]};
Us=function(a,b){return g.Bb(a.j,function(c){return c.Zi==b})};
vja=function(a,b){return b?g.Bb(a.j,function(c){return c.Nj.Ot==b}):null};
wja=function(a,b){return g.Bb(a.B,function(c){return 2==c.ip()&&c.Zi==b})};
Ws=function(){var a=Vs;return 0==a.j.length?a.B:0==a.B.length?a.j:g.Ib(a.B,a.j)};
xja=function(a,b){a=1==b.ip()?a.j:a.B;var c=zb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.ag&&b.ag.aG(),b.dispose(),!0):!1};
yja=function(a){var b=Vs;if(xja(b,a)){switch(a.ip()){case 0:var c=function(){return null};
case 2:c=function(){return wja(b,a.Zi)};
break;case 1:c=function(){return Us(b,a.Zi)}}for(var d=c();d;d=c())xja(b,d)}};
zja=function(a){var b=Vs;a=g.ts(a,function(c){return!vja(b,c.Nj.Ot)});
b.j.push.apply(b.j,g.pa(a))};
Aja=function(a){var b=[];g.Yb(a,function(c){Nr(Vs.j,function(d){return d.Nj.Ot===c.Nj.Ot&&d.Zi===c.Zi})||(Vs.j.push(c),b.push(c))})};
Xs=function(){this.j=this.B=null};
Bja=function(a,b){function c(d,e){b(d,e)}
if(null==a.B)return!1;a.j=g.Bb(a.B,function(d){return null!=d&&d.aT()});
a.j&&(a.j.init(c)?nia(a.j.j):b(a.j.j.kz(),a.j));return null!=a.j};
Ys=function(a){a=Cja(a);Wr.call(this,a.length?a[a.length-1]:new Sr(Mp,0));this.C=a;this.B=null};
Cja=function(a){if(!a.length)return[];a=(0,g.ts)(a,function(c){return null!=c&&c.PB()});
for(var b=1;b<a.length;b++)Tr(a[b-1],a[b]);return a};
Zs=function(a,b,c,d){Vr.call(this,a,b,c,d);this.ea=this.ma=this.G=this.K=this.C=null};
$s=function(a){return a.C&&a.C.takeRecords?a.C.takeRecords():[]};
Eja=function(a){if(!a.element)return!1;var b=a.element,c=a.B.j.C,d=fq().j.j;a.C=new c.IntersectionObserver(eq(d,function(e){return at(a,e)}),Dja);
d=eq(d,function(){a.C.unobserve(b);a.C.observe(b);at(a,$s(a))});
c.ResizeObserver?(a.K=new c.ResizeObserver(d),a.K.observe(b)):c.MutationObserver&&(a.G=new g.Qa.MutationObserver(d),a.G.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.C.observe(b);at(a,$s(a));return!0};
at=function(a,b){try{if(b.length){a.ma||(a.ma=jr());var c=Fja(b),d=eia(a.element,a.B.j.C),e=d.x,f=d.y;a.j=new or(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=hia(c.intersectionRect);a.D=rr(h,a.j.left-h.left,a.j.top-h.top)}}catch(l){a.aG(),ir(299,l)}};
Fja=function(a){return $p(a,function(b,c){return b.time>c.time?b:c},a[0])};
bt=function(a){a=void 0===a?Mp:a;Wr.call(this,new Sr(a,2))};
ct=function(){var a=Gja();Sr.call(this,Mp.top,a,"geo")};
Gja=function(){fq();var a=Or();return a.C||a.B?0:2};
Hja=function(){};
dt=function(){this.done=!1;this.j={w3:0,sU:0,Yfb:0,nV:0,cO:-1,e4:0,d4:0,f4:0,S$:0};this.G=null;this.K=!1;this.C=null;this.S=0;this.B=new Rr(this)};
ft=function(){var a=et;a.K||(a.K=!0,Ija(a,function(){return a.D.apply(a,g.pa(g.Ja.apply(0,arguments)))}),a.D())};
Jja=function(){aq(Hja);var a=aq(Xs);null!=a.j&&a.j.j?nia(a.j.j):Or().update(Mp)};
gt=function(a,b,c){if(!a.done&&(a.B.cancel(),0!=b.length)){a.C=null;try{Jja();var d=jr();fq().G=d;if(null!=aq(Xs).j)for(var e=0;e<b.length;e++)Nia(b[e],d,c);for(d=0;d<b.length;d++)Oia(b[d]);++a.j.nV}finally{c?g.Yb(b,function(f){f.Qh.Ge=0}):a.B.schedule()}}};
Ija=function(a,b){if(!a.G){b=gr(142,b);cq();var c;Pr.visibilityState?c="visibilitychange":Pr.mozVisibilityState?c="mozvisibilitychange":Pr.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Op(Pr,c,b,{capture:!1})&&(a.G=b)}};
Kja=function(){var a=aq(Xs);if(null!=a.j){var b=Ws(),c=a.j;g.Yb(b,function(d){return Lia(d,c)})}};
Lja=function(a,b){a=a.S;lr&&(a+=b-mr);return a};
Mja=function(a){a=void 0===a?function(){return{}}:a;
dr.uV="av-js";cr.j=.01;Uha([function(b){var c=fq(),d={};d=(d.bin=c.B,d.type="error",d);c=Hp(c.Mc);if(!et.C){var e=et,f=Mp.document,h=0<=kr?jr()-kr:-1,l=jr();-1==e.j.cO&&(h=l);var m=Or(),n=fq(),p=Hp(n.Mc),q=Ws();try{if(0<q.length){var r=m.j;r&&(p.bs=[pr(r),r.getHeight()]);var t=m.G;t&&(p.ps=[t.width,t.height]);Mp.screen&&(p.scs=[Mp.screen.width,Mp.screen.height])}else p.url=encodeURIComponent(Mp.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512)));
p.tt=h;p.pt=kr;p.bin=n.B;void 0!==Mp.google_osd_load_pub_page_exp&&(p.olpp=Mp.google_osd_load_pub_page_exp);p.deb=[1,e.j.w3,e.j.sU,e.j.nV,e.j.cO,0,e.B.B,e.j.e4,e.j.d4,e.j.f4,e.j.S$,-1].join(";");p.tvt=Lja(e,l);m.B&&(p.inapp=1);if(null!==Mp&&Mp!=Mp.top){0<q.length&&(p.iframe_loc=encodeURIComponent(Mp.location.href.substring(0,512)));var v=m.S;p.is=[pr(v),v.getHeight()]}}catch(x){p.error=1}et.C=p}r=g.pd(et.C);t=fq().j;1==Gp(t.C,"prf")?(v=new dq,e=t.j,f=0,-1<e.j&&(f=e.C.j.now()-e.j),v=lj(v,1,ii(e.D+
f),0),e=t.j,v=lj(v,5,li(-1<e.j?e.B+1:e.B),0),v=lj(v,2,qi(t.B.j.C()),"0"),v=lj(v,3,qi(t.B.j.B()),"0"),t=lj(v,4,qi(t.B.j.j()),"0"),v={},t=(v.pf=g.mg(t.j()),v)):t={};g.sd(r,t);g.sd(b,d,c,r,a())}])};
Oja=function(){var a=Nja||Mp;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("&")};
ht=function(){var a="youtube.player.web_20230917_00_RC01".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20230917_00_RC01".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20230917_00_RC01".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20230917_00_RC01".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20230917_00_RC01".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return 3==(null==(c=a)?void 0:c.length)?"20"+a[1]+a[2]:null};
Pja=function(){return"av.default_js".includes("ima_html5_sdk")?{Uo:"ima",Yo:null}:"av.default_js".includes("ima_native_sdk")?{Uo:"nima",Yo:null}:"av.default_js".includes("admob-native-video-javascript")?{Uo:"an",Yo:null}:"youtube.player.web_20230917_00_RC01".includes("cast_js_sdk")?{Uo:"cast",Yo:ht()}:"youtube.player.web_20230917_00_RC01".includes("youtube.player.web")?{Uo:"yw",Yo:ht()}:"youtube.player.web_20230917_00_RC01".includes("outstream_web_client")?{Uo:"out",Yo:ht()}:"youtube.player.web_20230917_00_RC01".includes("drx_rewarded_web")?
{Uo:"r",Yo:ht()}:"youtube.player.web_20230917_00_RC01".includes("gam_native_web_video")?{Uo:"n",Yo:ht()}:"youtube.player.web_20230917_00_RC01".includes("admob_interstitial_video")?{Uo:"int",Yo:ht()}:{Uo:"j",Yo:null}};
lt=function(a,b){var c={sv:"957"};null!==jt&&(c.v=jt);c.cb=Qja;c.nas=Vs.j.length;c.msg=a;void 0!==b&&(a=Rja(b))&&(c.e=kt[a]);return c};
mt=function(a){return cc(a,"custom_metric_viewable")};
Rja=function(a){var b=mt(a)?"custom_metric_viewable":a.toLowerCase();return id(Qs,function(c){return c==b})};
Sja=function(){this.j=void 0;this.B=!1;this.C=0;this.D=-1;this.G="tos"};
Vja=function(a){try{var b=a.split(",");return b.length>g.fd(Tja).length?null:$p(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===Uja[d[0]]||!Uja[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
Wja=function(a,b){if(void 0==a.j)return 0;switch(a.G){case "mtos":return a.B?es(b.j,a.j):es(b.B,a.j);case "tos":return a.B?ds(b.j,a.j):ds(b.B,a.j)}return 0};
nt=function(a,b,c,d){Fs.call(this,b,d);this.S=a;this.ma=c};
ot=function(){};
pt=function(a){Fs.call(this,"fully_viewable_audible_half_duration_impression",a)};
qt=function(a){this.j=a};
rt=function(a,b){Fs.call(this,a,b)};
tt=function(a){Gs.call(this,"measurable_impression",a)};
ut=function(){qt.apply(this,arguments)};
vt=function(a,b,c){Js.call(this,a,b,c)};
wt=function(a){a=void 0===a?Mp:a;Wr.call(this,new Sr(a,2))};
xt=function(a,b,c){Js.call(this,a,b,c)};
zt=function(a){a=void 0===a?Mp:a;Wr.call(this,new Sr(a,2))};
At=function(){Sr.call(this,Mp,2,"mraid");this.Oa=0;this.va=this.Ca=!1;this.S=null;this.B=Zha(this.C);this.D.j=new or(0,0,0,0);this.Pa=!1};
Bt=function(a,b,c){a.ju("addEventListener",b,c)};
$ja=function(a){fq().D=!!a.ju("isViewable");Bt(a,"viewableChange",Xja);"loading"===a.ju("getState")?Bt(a,"ready",Yja):Zja(a)};
Zja=function(a){"string"===typeof a.B.Mn.AFMA_LIDAR?(a.Ca=!0,aka(a)):(a.B.compatibility=3,a.S="nc",a.fail("w"))};
aka=function(a){a.va=!1;var b=1==Gp(fq().Mc,"rmmt"),c=!!a.ju("isViewable");(b?!c:1)&&cq().setTimeout(hr(524,function(){a.va||(bka(a),ir(540,Error()),a.S="mt",a.fail("w"))}),500);
cka(a);Bt(a,a.B.Mn.AFMA_LIDAR,dka)};
cka=function(a){var b=1==Gp(fq().Mc,"sneio"),c=void 0!==a.B.Mn.AFMA_LIDAR_EXP_1,d=void 0!==a.B.Mn.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.B.Mn.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Mn.AFMA_LIDAR_EXP_1=!b)};
bka=function(a){a.ju("removeEventListener",a.B.Mn.AFMA_LIDAR,dka);a.Ca=!1};
eka=function(a,b){if("loading"===a.ju("getState"))return new g.we(-1,-1);b=a.ju(b);if(!b)return new g.we(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.we(-1,-1):new g.we(a,b)};
Yja=function(){try{var a=aq(At);a.ju("removeEventListener","ready",Yja);Zja(a)}catch(b){ir(541,b)}};
dka=function(a,b){try{var c=aq(At);c.va=!0;var d=a?new or(a.y,a.x+a.width,a.y+a.height,a.x):new or(0,0,0,0);var e=jr(),f=Qr();var h=new sr(e,f,c);h.j=d;h.volume=b;c.vt(h)}catch(l){ir(542,l)}};
Xja=function(a){var b=fq(),c=aq(At);a&&!b.D&&(b.D=!0,c.Pa=!0,c.S&&c.fail("w",!0))};
Ct=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.K=(a.start=this.M5,a.firstquartile=this.H5,a.midpoint=this.J5,a.thirdquartile=this.N5,a.complete=this.E5,a.error=this.F5,a.pause=this.cQ,a.resume=this.iZ,a.skip=this.L5,a.viewable_impression=this.jp,a.mute=this.lB,a.unmute=this.lB,a.fullscreen=this.I5,a.exitfullscreen=this.G5,a.fully_viewable_audible_half_duration_impression=this.jp,a.measurable_impression=this.jp,a.abandon=this.cQ,a.engagedview=this.jp,a.impression=this.jp,a.creativeview=
this.jp,a.progress=this.lB,a.custom_metric_viewable=this.jp,a.bufferstart=this.cQ,a.bufferfinish=this.iZ,a.audio_measurable=this.jp,a.audio_audible=this.jp,a);a={};this.S=(a.overlay_resize=this.K5,a.abandon=this.QN,a.close=this.QN,a.collapse=this.QN,a.overlay_unmeasurable_impression=function(b){return Rs(b,"overlay_unmeasurable_impression",Qr())},a.overlay_viewable_immediate_impression=function(b){return Rs(b,"overlay_viewable_immediate_impression",Qr())},a.overlay_unviewable_impression=function(b){return Rs(b,
"overlay_unviewable_impression",Qr())},a.overlay_viewable_end_of_session_impression=function(b){return Rs(b,"overlay_viewable_end_of_session_impression",Qr())},a);
fq().B=3;fka(this)};
Dt=function(a,b,c,d){a=a.UE(null,d,!0,b);a.D=c;zja([a]);return a};
gka=function(a,b,c){$ga(b);var d=a.j;g.Yb(b,function(e){var f=g.Yp(e.criteria,function(h){var l=Vja(h);if(null==l)h=null;else if(h=new Sja,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.B=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=Eaa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h});
Nr(f,function(h){return null==h})||dja(c,new nt(e.id,e.event,f,d))})};
hka=function(){var a=[],b=fq();a.push(aq(ct));Gp(b.Mc,"mvp_lv")&&a.push(aq(At));b=[new wt,new zt];b.push(new Ys(a));b.push(new bt(Mp));return b};
ika=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=jr(),c=fq(),d=Or();kr=b;c.C=79463069;"o"!==a.B&&(Nja=oha(Mp));if(zha()){et.j.sU=0;et.j.cO=jr()-b;var e=hka(),f=aq(Xs);f.B=e;Bja(f,function(){Et()})?et.done||(Kja(),Tr(f.j.j,a),ft()):d.C?Et():ft()}else Ft=!0}catch(h){throw Vs.reset(),h;
}}};
Ht=function(a){et.B.cancel();Gt=a;et.done=!0};
It=function(a){if(a.B)return a.B;var b=aq(Xs).j;if(b)switch(b.getName()){case "nis":a.B="n";break;case "gsv":a.B="m"}a.B||(a.B="h");return a.B};
Jt=function(a,b,c){if(null==a.j)return b.qB|=4,!1;a=jka(a.j,c,b);b.qB|=a;return 0==a};
Et=function(){var a=[new bt(Mp)],b=aq(Xs);b.B=a;Bja(b,function(){Ht("i")})?et.done||(Kja(),ft()):Ht("i")};
kka=function(a,b){if(!a.Ub){var c=Rs(a,"start",Qr());c=a.dQ.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="957";null!==jt&&(d.v=jt);zl(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=Oja();zl(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//pagead2.googlesyndication.com/pagead/gen_204?"+Zr(Yr(new Xr,d));xia(b);a.Ub=!0}};
Kt=function(a,b,c){gt(et,[a],!Qr());hja(a,c);4!=c&&gja(a.Ca,c,a.DH);return Rs(a,b,Qr())};
fka=function(a){Mja(function(){var b=lka();null!=a.B&&(b.sdk=a.B);var c=aq(Xs);null!=c.j&&(b.avms=c.j.getName());return b})};
mka=function(a,b,c,d){var e=vja(Vs,c);null!==e&&e.Zi!==b&&(a.TG(e),e=null);e||(b=a.UE(c,jr(),!1,b),0==Vs.B.length&&(fq().C=79463069),Aja([b]),e=b,e.D=It(a),d&&(e.eb=d));return e};
nka=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
lka=function(){var a=Or(),b={},c={},d={};return Object.assign({},(b.sv="957",b),null!==jt&&(c.v=jt,c),(d["if"]=a.C?"1":"0",d.nas=String(Vs.j.length),d))};
Lt=function(a){Fs.call(this,"audio_audible",a)};
Mt=function(a){Gs.call(this,"audio_measurable",a)};
Nt=function(){qt.apply(this,arguments)};
Ot=function(){};
oka=function(a){this.j=a};
jka=function(a,b,c){a=a.B();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==jt&&(d.v=jt,d),(e.sv="957",e.cb=Qja,e.e=pka(b),e));e=Rs(c,b,Qr());g.sd(d,e);c.K_[b]=e;d=2==c.ip()?wia(d).join("&"):c.dQ.j(d).j;try{return a(c.Zi,d,b),0}catch(f){return 2}}else return 1};
pka=function(a){var b=mt(a)?"custom_metric_viewable":a;a=id(Qs,function(c){return c==b});
return kt[a]};
Pt=function(){Ct.call(this);this.G=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
qka=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.j&&Array.isArray(c)&&gka(a,c,b)};
rka=function(a,b,c){var d=Us(Vs,b);d||(d=c.opt_nativeTime||-1,d=Dt(a,b,It(a),d),c.opt_osdId&&(d.eb=c.opt_osdId));return d};
ska=function(a,b,c){var d=Us(Vs,b);d||(d=Dt(a,b,"n",c.opt_nativeTime||-1));return d};
tka=function(a,b){var c=Us(Vs,b);c||(c=Dt(a,b,"h",-1));return c};
uka=function(a){fq();switch(It(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};
xka=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.sd(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.IH(b,c);c=f?f.dQ:a.BM();if(e.opt_bounds)return c.j(lt("ol",d));if(void 0!==d)if(void 0!==Rja(d))if(Ft)a=lt("ue",d);else if(ika(a),"i"==Gt)a=lt("i",d),a["if"]=0;else if(b=a.IH(b,e)){b:{"i"==Gt&&(b.Ct=!0);f=e.opt_fullscreen;void 0!==f&&ms(b,!!f);var h;if(f=!Or().B)(f=hc(g.mc(),"CrKey")||hc(g.mc(),"PlayStation")||hc(g.mc(),"Roku")||jia()||hc(g.mc(),"Xbox"))||(f=g.mc(),f=hc(f,"AppleTV")||hc(f,
"Apple TV")||hc(f,"CFNetwork")||hc(f,"tvOS")),f||(f=g.mc(),f=hc(f,"sdk_google_atv_x86")||hc(f,"Android TV")),f=!f;f&&(cq(),f=0===Pp(Pr));if(h=f){switch(b.ip()){case 1:kka(b,"pv");break;case 2:a.FQ(b)}Ht("pv")}f=d.toLowerCase();if(h=!h)h=Gp(fq().Mc,"ssmol")&&"loaded"===f?!1:g.Db(vka,f);if(h&&0==b.bk){"i"!=Gt&&(et.done=!1);h=void 0!==e?e.opt_nativeTime:void 0;nr=h="number"===typeof h?h:jr();b.HC=!0;var l=Qr();b.bk=1;b.Uh={};b.Uh.start=!1;b.Uh.firstquartile=!1;b.Uh.midpoint=!1;b.Uh.thirdquartile=!1;
b.Uh.complete=!1;b.Uh.resume=!1;b.Uh.pause=!1;b.Uh.skip=!1;b.Uh.mute=!1;b.Uh.unmute=!1;b.Uh.viewable_impression=!1;b.Uh.measurable_impression=!1;b.Uh.fully_viewable_audible_half_duration_impression=!1;b.Uh.fullscreen=!1;b.Uh.exitfullscreen=!1;b.GM=0;l||(b.lj().ma=h);gt(et,[b],!l)}(h=b.nx[f])&&vs(b.Vg,h);Gp(fq().Mc,"fmd")||g.Db(wka,f)&&b.Zq&&b.Zq.B(b,null);switch(b.ip()){case 1:var m=mt(f)?a.K.custom_metric_viewable:a.K[f];break;case 2:m=a.S[f]}if(m&&(d=m.call(a,b,e,d),Gp(fq().Mc,"fmd")&&g.Db(wka,
f)&&b.Zq&&b.Zq.B(b,null),void 0!==d)){e=lt(void 0,f);g.sd(e,d);d=e;break b}d=void 0}3==b.bk&&a.TG(b);a=d}else a=lt("nf",d);else a=void 0;else Ft?a=lt("ue"):f?(a=lt(),g.sd(a,jja(f,!0,!1,!1))):a=lt("nf");return"string"===typeof a?c.j():c.j(a)};
yka=function(a,b){b&&(a.C=b)};
zka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.B,b};
Aka=function(a,b,c){c=void 0===c?{}:c;a=xka(aq(Pt),b,c,a);return zka(a)};
Bka=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.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.B=c}};
Eka=function(a){if(g.dc(g.Be(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.go(a)}catch(c){return null!=g.Bb(Cka,function(d){return 0<a.search(d)})}return b.K.match(Dka)?!0:null!=g.Bb(Cka,function(c){return null!=a.match(c)})};
g.Qt=function(a,b){return a.replace(Fka,function(c,d){try{var e=g.nd(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.dc(g.Be(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
St=function(a){g.Gd.call(this);var b=this;this.G=this.B=0;this.Jn=null!=a?a:{Ii:function(e,f){return setTimeout(e,f)},
Lj:function(e){clearTimeout(e)}};
var c,d;this.j=null!=(d=null==(c=window.navigator)?void 0:c.onLine)?d:!0;this.C=function(){return g.H(function(e){return g.z(e,Rt(b),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.G||this.Df()};
Gka=function(){var a=g.Tt;St.instance||(St.instance=new St(a));return St.instance};
Rt=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,h;return g.H(function(l){switch(l.j){case 1:return d=window.AbortController?new window.AbortController:void 0,f=null==(e=d)?void 0:e.signal,h=!1,g.za(l,2,3),d&&(a.B=a.Jn.Ii(function(){d.abort()},b||2E4)),g.z(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:h=!0;case 3:g.Fa(l);a.D=void 0;a.B&&(a.Jn.Lj(a.B),a.B=0);h!==a.j&&(a.j=h,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(h);g.Ga(l,0);break;case 2:g.Ca(l),h=!1,l.Ma(3)}})})};
Ut=function(){this.data=[];this.j=-1};
Hka=function(a){-1===a.j&&(a.j=a.data.reduce(function(b,c,d){return b+(c?Math.pow(2,d):0)},0));
return a.j};
Vt=function(a){a.setAttribute("role","link")};
Xt=function(a,b){Array.isArray(b)&&(b=b.join(" "));""===b||void 0==b?(Wt||(b={},Wt=(b.atomic=!1,b.autocomplete="none",b.dropeffect="none",b.haspopup=!1,b.live="off",b.multiline=!1,b.multiselectable=!1,b.orientation="vertical",b.readonly=!1,b.relevant="additions text",b.required=!1,b.sort="none",b.busy=!1,b.disabled=!1,b.hidden=!1,b.invalid="false",b)),b=Wt,"label"in b?a.setAttribute("aria-label",b.label):a.removeAttribute("aria-label")):a.setAttribute("aria-label",b)};
Yt=function(a){a=a.getAttribute("aria-label");return null==a||void 0==a?"":String(a)};
g.Zt=function(a,b,c){g.J.call(this);this.j=null;this.D=!1;this.K=a;this.G=c;this.B=b||window;this.C=(0,g.cb)(this.R1,this)};
g.$t=function(a){a.isActive()||a.start()};
Ika=function(a){a=a.B;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
Jka=function(a){a=a.B;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.au=function(a,b,c){g.J.call(this);this.j=a;this.Ti=b||0;this.B=c;this.C=(0,g.cb)(this.cT,this)};
g.bu=function(a,b){a.isActive()||a.start(b)};
g.cu=function(a){a.stop();a.cT()};
g.du=function(a){a.isActive()&&g.cu(a)};
eu=function(a,b){this.j=a[g.Qa.Symbol.iterator]();this.B=b};
Kka=function(a,b){return new eu(a,b)};
Lka=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
fu=function(a){return a.classList?a.classList:Lka(a).match(/\S+/g)||[]};
g.gu=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.hu=function(a,b){return a.classList?a.classList.contains(b):g.Db(fu(a),b)};
g.iu=function(a,b){if(a.classList)a.classList.add(b);else if(!g.hu(a,b)){var c=Lka(a);g.gu(a,c+(0<c.length?" "+b:b))}};
g.ju=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.iu(a,e)});
else{var c={};Array.prototype.forEach.call(fu(a),function(e){c[e]=!0});
Array.prototype.forEach.call(b,function(e){c[e]=!0});
b="";for(var d in c)b+=0<b.length?" "+d:d;g.gu(a,b)}};
g.ku=function(a,b){a.classList?a.classList.remove(b):g.hu(a,b)&&g.gu(a,Array.prototype.filter.call(fu(a),function(c){return c!=b}).join(" "))};
g.lu=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.ku(a,c)}):g.gu(a,Array.prototype.filter.call(fu(a),function(c){return!g.Db(b,c)}).join(" "))};
g.mu=function(a,b,c){c?g.iu(a,b):g.ku(a,b)};
Mka=function(a,b){var c=!g.hu(a,b);g.mu(a,b,c)};
qu=function(a){if(a instanceof nu||a instanceof ou||a instanceof pu)return a;if("function"==typeof a.next)return new nu(function(){return a});
if("function"==typeof a[Symbol.iterator])return new nu(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Bk)return new nu(function(){return a.Bk()});
throw Error("Not an iterator or iterable.");};
nu=function(a){this.B=a};
ou=function(a){this.B=a};
pu=function(a){nu.call(this,function(){return a});
this.C=a};
g.ru=function(a,b){this.B={};this.j=[];this.Eu=this.size=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof g.ru)for(c=a.hp(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Nka=function(a,b){return a===b};
uu=function(a){if(a.size!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];tu(a.B,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.size!=a.j.length){var e={};for(c=b=0;b<a.j.length;)d=a.j[b],tu(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};
tu=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.vu=function(){g.Gd.call(this);this.j=0;this.endTime=this.startTime=null};
Oka=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return"string"===typeof c?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"});
g.yr(a,"transition",b.join(","))};
wu=function(a,b,c,d,e){g.vu.call(this);this.B=a;this.G=b;this.K=c;this.D=d;this.S=Array.isArray(e)?e:[e]};
Pka=function(a,b,c,d){return new wu(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Rka=function(a){a=jc(a);if(""==a)return null;var b=String(a.slice(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in Qka))return null}return a};
xu=function(a,b){a=g.Qa[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
Ska=function(a){var b=g.Qa.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Tka=function(a,b,c,d){if(a)return a.apply(b,d);if(g.bf&&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)};
Yka=function(a){if(!a)return he;var b=document.createElement("div").style;Uka(a).forEach(function(c){var d=g.Pc&&c in Vka?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");cc(d,"--")||cc(d,"var")||(c=Tka(Wka,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Rka(c),null!=c&&Tka(Xka,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return Pba(g.Vd("Output of CSS sanitizer"),b.cssText||"")};
Uka=function(a){g.Wa(a)?a=g.Jb(a):(a=g.fd(a),g.Fb(a,"cssText"));return a};
g.Cu=function(a){var b,c=b=0,d=!1;a=a.split(Zka);for(var e=0;e<a.length;e++){var f=a[e];g.Bu.test(f)?(b++,c++):$ka.test(f)?d=!0:ala.test(f)?c++:bla.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
Du=function(a,b,c,d,e,f,h,l){this.j=a;this.C=b;this.x1=c;this.y1=d;this.x2=e;this.y2=f;this.B=h;this.D=l};
Eu=function(a,b){if(0==b)return a.j;if(1==b)return a.B;var c=te(a.j,a.x1,b),d=te(a.x1,a.x2,b);a=te(a.x2,a.B,b);c=te(c,d,b);d=te(d,a,b);return te(c,d,b)};
dla=function(a,b){var c=(b-a.j)/(a.B-a.j);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,h=0;8>h;h++){f=Eu(a,c);var l=(Eu(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else f<b?d=c:e=c,c-=(f-b)/l}for(h=0;1E-6<Math.abs(f-b)&&8>h;h++)f<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),f=Eu(a,c);return c};
Fu=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Gu=function(a){return(a=a.exec(g.mc()))?a[1]:""};
Hu=function(a){return 0<=g.lc(ela,a)};
g.Iu=function(a){g.J.call(this);this.K=1;this.C=[];this.D=0;this.j=[];this.B={};this.S=!!a};
fla=function(a,b,c){g.Qf(function(){a.apply(b,c)})};
g.Ju=function(a){this.j=a};
Ku=function(a){this.j=a};
gla=function(a){this.data=a};
hla=function(a){return void 0===a||a instanceof gla?a:new gla(a)};
Lu=function(a){this.j=a};
g.ila=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.eb()||!!b&&b>g.eb()};
g.Mu=function(a){this.j=a};
jla=function(){};
Nu=function(){};
Ou=function(a){this.j=a};
Pu=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a};
kla=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a};
Ru=function(a,b){this.B=a;this.j=null;if(g.bf&&!g.Nc(9)){Qu||(Qu=new g.ru);this.j=Qu.get(a);this.j||(b?this.j=document.getElementById(b):(this.j=document.createElement("userdata"),this.j.addBehavior("#default#userData"),document.body.appendChild(this.j)),Qu.set(a,this.j));try{this.j.load(this.B)}catch(c){this.j=null}}};
Su=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return lla[b]})};
Tu=function(a){try{a.j.save(a.B)}catch(b){throw"Storage mechanism: Quota exceeded";}};
Uu=function(a,b){this.B=a;this.j=b+"::"};
g.Vu=function(a){var b=new Pu;return b.isAvailable()?a?new Uu(b,a):b:null};
Wu=function(a,b){this.j=a;this.ge=b};
Xu=function(a){this.j=[];if(a)a:{if(a instanceof Xu){var b=a.hp();a=a.tm();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new Wu(b[d],a[d]));break a}}else b=g.fd(a),a=Zc(a);for(c=0;c<b.length;c++)this.Ch(b[c],a[c])}};
mla=function(){Xu.apply(this,arguments)};
g.Yu=function(){};
nla=function(a){var b,c,d=a.length,e=0;for(b=0;b<d;b++){var f=a.charCodeAt(b);if(55296===(f&64512)&&b+1<d){var h=a.charCodeAt(b+1);56320===(h&64512)&&(f=65536+(f-55296<<10)+(h-56320),b++)}e+=128>f?1:2048>f?2:65536>f?3:4}var l=new Zu.tx(e);for(b=c=0;c<e;b++)f=a.charCodeAt(b),55296===(f&64512)&&b+1<d&&(h=a.charCodeAt(b+1),56320===(h&64512)&&(f=65536+(f-55296<<10)+(h-56320),b++)),128>f?l[c++]=f:(2048>f?l[c++]=192|f>>>6:(65536>f?l[c++]=224|f>>>12:(l[c++]=240|f>>>18,l[c++]=128|f>>>12&63),l[c++]=128|f>>>
6&63),l[c++]=128|f&63);return l};
$u=function(a){for(var b=a.length;0<=--b;)a[b]=0};
av=function(a,b,c,d,e){this.OZ=a;this.M4=b;this.L4=c;this.z4=d;this.C6=e;this.EW=a&&a.length};
bv=function(a,b){this.oV=a;this.cA=0;this.xu=b};
cv=function(a,b){a.Eg[a.pending++]=b&255;a.Eg[a.pending++]=b>>>8&255};
dv=function(a,b,c){a.Zh>16-c?(a.jj|=b<<a.Zh&65535,cv(a,a.jj),a.jj=b>>16-a.Zh,a.Zh+=c-16):(a.jj|=b<<a.Zh&65535,a.Zh+=c)};
ev=function(a,b,c){dv(a,c[2*b],c[2*b+1])};
ola=function(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(0<--b);return c>>>1};
pla=function(a,b,c){var d=Array(16),e=0,f;for(f=1;15>=f;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[2*c+1],0!==e&&(a[2*c]=ola(d[e]++,e))};
qla=function(a){var b;for(b=0;286>b;b++)a.Qj[2*b]=0;for(b=0;30>b;b++)a.yv[2*b]=0;for(b=0;19>b;b++)a.Ki[2*b]=0;a.Qj[512]=1;a.wr=a.fB=0;a.zm=a.matches=0};
rla=function(a){8<a.Zh?cv(a,a.jj):0<a.Zh&&(a.Eg[a.pending++]=a.jj);a.jj=0;a.Zh=0};
sla=function(a,b,c){rla(a);cv(a,c);cv(a,~c);Zu.Dy(a.Eg,a.window,b,c,a.pending);a.pending+=c};
tla=function(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]};
fv=function(a,b,c){for(var d=a.Mg[c],e=c<<1;e<=a.Mq;){e<a.Mq&&tla(b,a.Mg[e+1],a.Mg[e],a.depth)&&e++;if(tla(b,d,a.Mg[e],a.depth))break;a.Mg[c]=a.Mg[e];c=e;e<<=1}a.Mg[c]=d};
ula=function(a,b,c){var d=0;if(0!==a.zm){do{var e=a.Eg[a.zC+2*d]<<8|a.Eg[a.zC+2*d+1];var f=a.Eg[a.zO+d];d++;if(0===e)ev(a,f,b);else{var h=gv[f];ev(a,h+256+1,b);var l=hv[h];0!==l&&(f-=iv[h],dv(a,f,l));e--;h=256>e?jv[e]:jv[256+(e>>>7)];ev(a,h,c);l=kv[h];0!==l&&(e-=lv[h],dv(a,e,l))}}while(d<a.zm)}ev(a,256,b)};
mv=function(a,b){var c=b.oV,d=b.xu.OZ,e=b.xu.EW,f=b.xu.z4,h,l=-1;a.Mq=0;a.yz=573;for(h=0;h<f;h++)0!==c[2*h]?(a.Mg[++a.Mq]=l=h,a.depth[h]=0):c[2*h+1]=0;for(;2>a.Mq;){var m=a.Mg[++a.Mq]=2>l?++l:0;c[2*m]=1;a.depth[m]=0;a.wr--;e&&(a.fB-=d[2*m+1])}b.cA=l;for(h=a.Mq>>1;1<=h;h--)fv(a,c,h);m=f;do h=a.Mg[1],a.Mg[1]=a.Mg[a.Mq--],fv(a,c,1),d=a.Mg[1],a.Mg[--a.yz]=h,a.Mg[--a.yz]=d,c[2*m]=c[2*h]+c[2*d],a.depth[m]=(a.depth[h]>=a.depth[d]?a.depth[h]:a.depth[d])+1,c[2*h+1]=c[2*d+1]=m,a.Mg[1]=m++,fv(a,c,1);while(2<=
a.Mq);a.Mg[--a.yz]=a.Mg[1];h=b.oV;m=b.cA;d=b.xu.OZ;e=b.xu.EW;f=b.xu.M4;var n=b.xu.L4,p=b.xu.C6,q,r=0;for(q=0;15>=q;q++)a.iq[q]=0;h[2*a.Mg[a.yz]+1]=0;for(b=a.yz+1;573>b;b++){var t=a.Mg[b];q=h[2*h[2*t+1]+1]+1;q>p&&(q=p,r++);h[2*t+1]=q;if(!(t>m)){a.iq[q]++;var v=0;t>=n&&(v=f[t-n]);var x=h[2*t];a.wr+=x*(q+v);e&&(a.fB+=x*(d[2*t+1]+v))}}if(0!==r){do{for(q=p-1;0===a.iq[q];)q--;a.iq[q]--;a.iq[q+1]+=2;a.iq[p]--;r-=2}while(0<r);for(q=p;0!==q;q--)for(t=a.iq[q];0!==t;)d=a.Mg[--b],d>m||(h[2*d+1]!==q&&(a.wr+=(q-
h[2*d+1])*h[2*d],h[2*d+1]=q),t--)}pla(c,l,a.iq)};
vla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);b[2*(c+1)+1]=65535;for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];++h<l&&n===f||(h<m?a.Ki[2*n]+=h:0!==n?(n!==e&&a.Ki[2*n]++,a.Ki[32]++):10>=h?a.Ki[34]++:a.Ki[36]++,h=0,e=n,0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}};
wla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];if(!(++h<l&&n===f)){if(h<m){do ev(a,n,a.Ki);while(0!==--h)}else 0!==n?(n!==e&&(ev(a,n,a.Ki),h--),ev(a,16,a.Ki),dv(a,h-3,2)):10>=h?(ev(a,17,a.Ki),dv(a,h-3,3)):(ev(a,18,a.Ki),dv(a,h-11,7));h=0;e=n;0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}};
xla=function(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.Qj[2*c])return 0;if(0!==a.Qj[18]||0!==a.Qj[20]||0!==a.Qj[26])return 1;for(c=32;256>c;c++)if(0!==a.Qj[2*c])return 1;return 0};
nv=function(a,b,c){a.Eg[a.zC+2*a.zm]=b>>>8&255;a.Eg[a.zC+2*a.zm+1]=b&255;a.Eg[a.zO+a.zm]=c&255;a.zm++;0===b?a.Qj[2*c]++:(a.matches++,b--,a.Qj[2*(gv[c]+256+1)]++,a.yv[2*(256>b?jv[b]:jv[256+(b>>>7)])]++);return a.zm===a.QD-1};
pv=function(a,b){a.msg=ov[b];return b};
qv=function(a){for(var b=a.length;0<=--b;)a[b]=0};
rv=function(a){var b=a.state,c=b.pending;c>a.Pe&&(c=a.Pe);0!==c&&(Zu.Dy(a.output,b.Eg,b.GE,c,a.kA),a.kA+=c,b.GE+=c,a.ER+=c,a.Pe-=c,b.pending-=c,0===b.pending&&(b.GE=0))};
vv=function(a,b){var c=0<=a.Gk?a.Gk:-1,d=a.Jb-a.Gk,e=0;if(0<a.level){2===a.Be.EM&&(a.Be.EM=xla(a));mv(a,a.hI);mv(a,a.SG);vla(a,a.Qj,a.hI.cA);vla(a,a.yv,a.SG.cA);mv(a,a.HU);for(e=18;3<=e&&0===a.Ki[2*yla[e]+1];e--);a.wr+=3*(e+1)+14;var f=a.wr+3+7>>>3;var h=a.fB+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&-1!==c)dv(a,b?1:0,3),sla(a,c,d);else if(4===a.strategy||h===f)dv(a,2+(b?1:0),3),ula(a,tv,uv);else{dv(a,4+(b?1:0),3);c=a.hI.cA+1;d=a.SG.cA+1;e+=1;dv(a,c-257,5);dv(a,d-1,5);dv(a,e-4,4);for(f=0;f<e;f++)dv(a,
a.Ki[2*yla[f]+1],3);wla(a,a.Qj,c-1);wla(a,a.yv,d-1);ula(a,a.Qj,a.yv)}qla(a);b&&rla(a);a.Gk=a.Jb;rv(a.Be)};
wv=function(a,b){a.Eg[a.pending++]=b};
xv=function(a,b){a.Eg[a.pending++]=b>>>8&255;a.Eg[a.pending++]=b&255};
zla=function(a,b){var c=a.xX,d=a.Jb,e=a.jl,f=a.LX,h=a.Jb>a.dj-262?a.Jb-(a.dj-262):0,l=a.window,m=a.Fu,n=a.Lp,p=a.Jb+258,q=l[d+e-1],r=l[d+e];a.jl>=a.fW&&(c>>=2);f>a.qc&&(f=a.qc);do{var t=b;if(l[t+e]===r&&l[t+e-1]===q&&l[t]===l[d]&&l[++t]===l[d+1]){d+=2;for(t++;l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&d<p;);t=258-(p-d);d=p-258;if(t>e){a.aA=b;e=t;if(t>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&0!==
--c);return e<=a.qc?e:a.qc};
Av=function(a){var b=a.dj,c;do{var d=a.Q_-a.qc-a.Jb;if(a.Jb>=b+(b-262)){Zu.Dy(a.window,a.window,b,b,0);a.aA-=b;a.Jb-=b;a.Gk-=b;var e=c=a.PH;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Lp[--e],a.Lp[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.Be.ij)break;e=a.Be;c=a.window;f=a.Jb+a.qc;var h=e.ij;h>d&&(h=d);0===h?c=0:(e.ij-=h,Zu.Dy(c,e.input,e.ww,h,f),1===e.state.wrap?e.Wd=yv(e.Wd,c,h,f):2===e.state.wrap&&(e.Wd=zv(e.Wd,c,h,f)),e.ww+=h,e.hx+=h,c=h);a.qc+=c;if(3<=a.qc+a.Ch)for(d=a.Jb-a.Ch,
a.He=a.window[d],a.He=(a.He<<a.Jq^a.window[d+1])&a.Iq;a.Ch&&!(a.He=(a.He<<a.Jq^a.window[d+3-1])&a.Iq,a.Lp[d&a.Fu]=a.head[a.He],a.head[a.He]=d,d++,a.Ch--,3>a.qc+a.Ch););}while(262>a.qc&&0!==a.Be.ij)};
Bv=function(a,b){for(var c;;){if(262>a.qc){Av(a);if(262>a.qc&&0===b)return 1;if(0===a.qc)break}c=0;3<=a.qc&&(a.He=(a.He<<a.Jq^a.window[a.Jb+3-1])&a.Iq,c=a.Lp[a.Jb&a.Fu]=a.head[a.He],a.head[a.He]=a.Jb);0!==c&&a.Jb-c<=a.dj-262&&(a.bf=zla(a,c));if(3<=a.bf)if(c=nv(a,a.Jb-a.aA,a.bf-3),a.qc-=a.bf,a.bf<=a.LO&&3<=a.qc){a.bf--;do a.Jb++,a.He=(a.He<<a.Jq^a.window[a.Jb+3-1])&a.Iq,a.Lp[a.Jb&a.Fu]=a.head[a.He],a.head[a.He]=a.Jb;while(0!==--a.bf);a.Jb++}else a.Jb+=a.bf,a.bf=0,a.He=a.window[a.Jb],a.He=(a.He<<a.Jq^
a.window[a.Jb+1])&a.Iq;else c=nv(a,0,a.window[a.Jb]),a.qc--,a.Jb++;if(c&&(vv(a,!1),0===a.Be.Pe))return 1}a.Ch=2>a.Jb?a.Jb:2;return 4===b?(vv(a,!0),0===a.Be.Pe?3:4):a.zm&&(vv(a,!1),0===a.Be.Pe)?1:2};
Cv=function(a,b){for(var c,d;;){if(262>a.qc){Av(a);if(262>a.qc&&0===b)return 1;if(0===a.qc)break}c=0;3<=a.qc&&(a.He=(a.He<<a.Jq^a.window[a.Jb+3-1])&a.Iq,c=a.Lp[a.Jb&a.Fu]=a.head[a.He],a.head[a.He]=a.Jb);a.jl=a.bf;a.TY=a.aA;a.bf=2;0!==c&&a.jl<a.LO&&a.Jb-c<=a.dj-262&&(a.bf=zla(a,c),5>=a.bf&&(1===a.strategy||3===a.bf&&4096<a.Jb-a.aA)&&(a.bf=2));if(3<=a.jl&&a.bf<=a.jl){d=a.Jb+a.qc-3;c=nv(a,a.Jb-1-a.TY,a.jl-3);a.qc-=a.jl-1;a.jl-=2;do++a.Jb<=d&&(a.He=(a.He<<a.Jq^a.window[a.Jb+3-1])&a.Iq,a.Lp[a.Jb&a.Fu]=
a.head[a.He],a.head[a.He]=a.Jb);while(0!==--a.jl);a.lw=0;a.bf=2;a.Jb++;if(c&&(vv(a,!1),0===a.Be.Pe))return 1}else if(a.lw){if((c=nv(a,0,a.window[a.Jb-1]))&&vv(a,!1),a.Jb++,a.qc--,0===a.Be.Pe)return 1}else a.lw=1,a.Jb++,a.qc--}a.lw&&(nv(a,0,a.window[a.Jb-1]),a.lw=0);a.Ch=2>a.Jb?a.Jb:2;return 4===b?(vv(a,!0),0===a.Be.Pe?3:4):a.zm&&(vv(a,!1),0===a.Be.Pe)?1:2};
Ala=function(a,b){for(var c,d,e,f=a.window;;){if(258>=a.qc){Av(a);if(258>=a.qc&&0===b)return 1;if(0===a.qc)break}a.bf=0;if(3<=a.qc&&0<a.Jb&&(d=a.Jb-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.Jb+258;c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&d<e;);a.bf=258-(e-d);a.bf>a.qc&&(a.bf=a.qc)}3<=a.bf?(c=nv(a,1,a.bf-3),a.qc-=a.bf,a.Jb+=a.bf,a.bf=0):(c=nv(a,0,a.window[a.Jb]),a.qc--,a.Jb++);if(c&&(vv(a,!1),0===a.Be.Pe))return 1}a.Ch=0;return 4===
b?(vv(a,!0),0===a.Be.Pe?3:4):a.zm&&(vv(a,!1),0===a.Be.Pe)?1:2};
Bla=function(a,b){for(var c;;){if(0===a.qc&&(Av(a),0===a.qc)){if(0===b)return 1;break}a.bf=0;c=nv(a,0,a.window[a.Jb]);a.qc--;a.Jb++;if(c&&(vv(a,!1),0===a.Be.Pe))return 1}a.Ch=0;return 4===b?(vv(a,!0),0===a.Be.Pe?3:4):a.zm&&(vv(a,!1),0===a.Be.Pe)?1:2};
Dv=function(a,b,c,d,e){this.l5=a;this.B6=b;this.R6=c;this.A6=d;this.func=e};
Cla=function(){this.Be=null;this.status=0;this.Eg=null;this.wrap=this.pending=this.GE=this.Dm=0;this.Rd=null;this.xn=0;this.method=8;this.Qz=-1;this.Fu=this.XR=this.dj=0;this.window=null;this.Q_=0;this.head=this.Lp=null;this.LX=this.fW=this.strategy=this.level=this.LO=this.xX=this.jl=this.qc=this.aA=this.Jb=this.lw=this.TY=this.bf=this.Gk=this.Jq=this.Iq=this.UN=this.PH=this.He=0;this.Qj=new Zu.Zp(1146);this.yv=new Zu.Zp(122);this.Ki=new Zu.Zp(78);qv(this.Qj);qv(this.yv);qv(this.Ki);this.HU=this.SG=
this.hI=null;this.iq=new Zu.Zp(16);this.Mg=new Zu.Zp(573);qv(this.Mg);this.yz=this.Mq=0;this.depth=new Zu.Zp(573);qv(this.depth);this.Zh=this.jj=this.Ch=this.matches=this.fB=this.wr=this.zC=this.zm=this.QD=this.zO=0};
Dla=function(a,b){if(!a||!a.state||5<b||0>b)return a?pv(a,-2):-2;var c=a.state;if(!a.output||!a.input&&0!==a.ij||666===c.status&&4!==b)return pv(a,0===a.Pe?-5:-2);c.Be=a;var d=c.Qz;c.Qz=b;if(42===c.status)if(2===c.wrap)a.Wd=0,wv(c,31),wv(c,139),wv(c,8),c.Rd?(wv(c,(c.Rd.text?1:0)+(c.Rd.xt?2:0)+(c.Rd.Qs?4:0)+(c.Rd.name?8:0)+(c.Rd.comment?16:0)),wv(c,c.Rd.time&255),wv(c,c.Rd.time>>8&255),wv(c,c.Rd.time>>16&255),wv(c,c.Rd.time>>24&255),wv(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),wv(c,c.Rd.os&255),
c.Rd.Qs&&c.Rd.Qs.length&&(wv(c,c.Rd.Qs.length&255),wv(c,c.Rd.Qs.length>>8&255)),c.Rd.xt&&(a.Wd=zv(a.Wd,c.Eg,c.pending,0)),c.xn=0,c.status=69):(wv(c,0),wv(c,0),wv(c,0),wv(c,0),wv(c,0),wv(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),wv(c,3),c.status=113);else{var e=8+(c.XR-8<<4)<<8;e|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.Jb&&(e|=32);c.status=113;xv(c,e+(31-e%31));0!==c.Jb&&(xv(c,a.Wd>>>16),xv(c,a.Wd&65535));a.Wd=1}if(69===c.status)if(c.Rd.Qs){for(e=c.pending;c.xn<(c.Rd.Qs.length&
65535)&&(c.pending!==c.Dm||(c.Rd.xt&&c.pending>e&&(a.Wd=zv(a.Wd,c.Eg,c.pending-e,e)),rv(a),e=c.pending,c.pending!==c.Dm));)wv(c,c.Rd.Qs[c.xn]&255),c.xn++;c.Rd.xt&&c.pending>e&&(a.Wd=zv(a.Wd,c.Eg,c.pending-e,e));c.xn===c.Rd.Qs.length&&(c.xn=0,c.status=73)}else c.status=73;if(73===c.status)if(c.Rd.name){e=c.pending;do{if(c.pending===c.Dm&&(c.Rd.xt&&c.pending>e&&(a.Wd=zv(a.Wd,c.Eg,c.pending-e,e)),rv(a),e=c.pending,c.pending===c.Dm)){var f=1;break}f=c.xn<c.Rd.name.length?c.Rd.name.charCodeAt(c.xn++)&
255:0;wv(c,f)}while(0!==f);c.Rd.xt&&c.pending>e&&(a.Wd=zv(a.Wd,c.Eg,c.pending-e,e));0===f&&(c.xn=0,c.status=91)}else c.status=91;if(91===c.status)if(c.Rd.comment){e=c.pending;do{if(c.pending===c.Dm&&(c.Rd.xt&&c.pending>e&&(a.Wd=zv(a.Wd,c.Eg,c.pending-e,e)),rv(a),e=c.pending,c.pending===c.Dm)){f=1;break}f=c.xn<c.Rd.comment.length?c.Rd.comment.charCodeAt(c.xn++)&255:0;wv(c,f)}while(0!==f);c.Rd.xt&&c.pending>e&&(a.Wd=zv(a.Wd,c.Eg,c.pending-e,e));0===f&&(c.status=103)}else c.status=103;103===c.status&&
(c.Rd.xt?(c.pending+2>c.Dm&&rv(a),c.pending+2<=c.Dm&&(wv(c,a.Wd&255),wv(c,a.Wd>>8&255),a.Wd=0,c.status=113)):c.status=113);if(0!==c.pending){if(rv(a),0===a.Pe)return c.Qz=-1,0}else if(0===a.ij&&(b<<1)-(4<b?9:0)<=(d<<1)-(4<d?9:0)&&4!==b)return pv(a,-5);if(666===c.status&&0!==a.ij)return pv(a,-5);if(0!==a.ij||0!==c.qc||0!==b&&666!==c.status){d=2===c.strategy?Bla(c,b):3===c.strategy?Ala(c,b):Ev[c.level].func(c,b);if(3===d||4===d)c.status=666;if(1===d||3===d)return 0===a.Pe&&(c.Qz=-1),0;if(2===d&&(1===
b?(dv(c,2,3),ev(c,256,tv),16===c.Zh?(cv(c,c.jj),c.jj=0,c.Zh=0):8<=c.Zh&&(c.Eg[c.pending++]=c.jj&255,c.jj>>=8,c.Zh-=8)):5!==b&&(dv(c,0,3),sla(c,0,0),3===b&&(qv(c.head),0===c.qc&&(c.Jb=0,c.Gk=0,c.Ch=0))),rv(a),0===a.Pe))return c.Qz=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(wv(c,a.Wd&255),wv(c,a.Wd>>8&255),wv(c,a.Wd>>16&255),wv(c,a.Wd>>24&255),wv(c,a.hx&255),wv(c,a.hx>>8&255),wv(c,a.hx>>16&255),wv(c,a.hx>>24&255)):(xv(c,a.Wd>>>16),xv(c,a.Wd&65535));rv(a);0<c.wrap&&(c.wrap=-c.wrap);return 0!==
c.pending?0:1};
Fv=function(a){if(!(this instanceof Fv))return new Fv(a);a=this.options=Zu.assign({level:-1,method:8,chunkSize:16384,Gu:15,I6:8,strategy:0,to:""},a||{});a.raw&&0<a.Gu?a.Gu=-a.Gu:a.m5&&0<a.Gu&&16>a.Gu&&(a.Gu+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Be=new Ela;this.Be.Pe=0;var b=this.Be;var c=a.level,d=a.method,e=a.Gu,f=a.I6,h=a.strategy;if(b){var l=1;-1===c&&(c=6);0>e?(l=0,e=-e):15<e&&(l=2,e-=16);if(1>f||9<f||8!==d||8>e||15<e||0>c||9<c||0>h||4<h)b=pv(b,-2);else{8===e&&(e=9);var m=
new Cla;b.state=m;m.Be=b;m.wrap=l;m.Rd=null;m.XR=e;m.dj=1<<m.XR;m.Fu=m.dj-1;m.UN=f+7;m.PH=1<<m.UN;m.Iq=m.PH-1;m.Jq=~~((m.UN+3-1)/3);m.window=new Zu.tx(2*m.dj);m.head=new Zu.Zp(m.PH);m.Lp=new Zu.Zp(m.dj);m.QD=1<<f+6;m.Dm=4*m.QD;m.Eg=new Zu.tx(m.Dm);m.zC=1*m.QD;m.zO=3*m.QD;m.level=c;m.strategy=h;m.method=d;if(b&&b.state){b.hx=b.ER=0;b.EM=2;c=b.state;c.pending=0;c.GE=0;0>c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Wd=2===c.wrap?0:1;c.Qz=0;if(!Fla){d=Array(16);for(f=h=0;28>f;f++)for(iv[f]=h,e=0;e<
1<<hv[f];e++)gv[h++]=f;gv[h-1]=f;for(f=h=0;16>f;f++)for(lv[f]=h,e=0;e<1<<kv[f];e++)jv[h++]=f;for(h>>=7;30>f;f++)for(lv[f]=h<<7,e=0;e<1<<kv[f]-7;e++)jv[256+h++]=f;for(e=0;15>=e;e++)d[e]=0;for(e=0;143>=e;)tv[2*e+1]=8,e++,d[8]++;for(;255>=e;)tv[2*e+1]=9,e++,d[9]++;for(;279>=e;)tv[2*e+1]=7,e++,d[7]++;for(;287>=e;)tv[2*e+1]=8,e++,d[8]++;pla(tv,287,d);for(e=0;30>e;e++)uv[2*e+1]=5,uv[2*e]=ola(e,5);Gla=new av(tv,hv,257,286,15);Hla=new av(uv,kv,0,30,15);Ila=new av([],Jla,0,19,7);Fla=!0}c.hI=new bv(c.Qj,Gla);
c.SG=new bv(c.yv,Hla);c.HU=new bv(c.Ki,Ila);c.jj=0;c.Zh=0;qla(c);c=0}else c=pv(b,-2);0===c&&(b=b.state,b.Q_=2*b.dj,qv(b.head),b.LO=Ev[b.level].B6,b.fW=Ev[b.level].l5,b.LX=Ev[b.level].R6,b.xX=Ev[b.level].A6,b.Jb=0,b.Gk=0,b.qc=0,b.Ch=0,b.bf=b.jl=2,b.lw=0,b.He=0);b=c}}else b=-2;if(0!==b)throw Error(ov[b]);a.header&&(b=this.Be)&&b.state&&2===b.state.wrap&&(b.state.Rd=a.header);if(a.BC){var n;"string"===typeof a.BC?n=nla(a.BC):"[object ArrayBuffer]"===Kla.call(a.BC)?n=new Uint8Array(a.BC):n=a.BC;a=this.Be;
f=n;h=f.length;if(a&&a.state)if(n=a.state,b=n.wrap,2===b||1===b&&42!==n.status||n.qc)b=-2;else{1===b&&(a.Wd=yv(a.Wd,f,h,0));n.wrap=0;h>=n.dj&&(0===b&&(qv(n.head),n.Jb=0,n.Gk=0,n.Ch=0),c=new Zu.tx(n.dj),Zu.Dy(c,f,h-n.dj,n.dj,0),f=c,h=n.dj);c=a.ij;d=a.ww;e=a.input;a.ij=h;a.ww=0;a.input=f;for(Av(n);3<=n.qc;){f=n.Jb;h=n.qc-2;do n.He=(n.He<<n.Jq^n.window[f+3-1])&n.Iq,n.Lp[f&n.Fu]=n.head[n.He],n.head[n.He]=f,f++;while(--h);n.Jb=f;n.qc=2;Av(n)}n.Jb+=n.qc;n.Gk=n.Jb;n.Ch=n.qc;n.qc=0;n.bf=n.jl=2;n.lw=0;a.ww=
d;a.input=e;a.ij=c;n.wrap=b;b=0}else b=-2;if(0!==b)throw Error(ov[b]);this.Edb=!0}};
Lla=function(a,b){b=b||{};b.m5=!0;b=new Fv(b);b.push(a,!0);if(b.err)throw b.msg||ov[b.err];return b.result};
Mla=function(){var a=g.Ja.apply(0,arguments);return 0===a.length?function(b){return b}:1===a.length?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,g.pa(g.Ja.apply(0,arguments))))}})};
Nla=function(){var a=g.Ja.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
c=b(c,d);var f={getState:c.getState,dispatch:function(h){return e.apply(null,[h].concat(g.pa(g.Ja.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=Mla.apply(null,g.pa(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
Gv=function(){return Math.random().toString(36).substring(7).split("").join(".")};
Ola=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:Hv}))throw Error('The slice reducer for key "'+b+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Gv()}))throw Error('The slice reducer for key "'+
b+"\" returned undefined when probed with a random type. Don't try to handle '"+(Hv+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})};
Pla=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m}
function f(t){if("function"!==typeof t)throw Error("Expected the listener to be a function. Instead, received: '"+typeof t+"'");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var v=!0;p===n&&(p=n.slice());p.push(t);return function(){if(v){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
v=!1;p===n&&(p=n.slice());p.splice(p.indexOf(t),1);n=null}}}
function h(t){if("object"!==typeof t||null===t)var v=!1;else{for(v=t;null!==Object.getPrototypeOf(v);)v=Object.getPrototypeOf(v);v=Object.getPrototypeOf(t)===v}if(!v)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof t+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
if("undefined"===typeof t.type)throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,t)}finally{q=!1}v=n=p;for(var x=0;x<v.length;x++)(0,v[x])();return t}
if("function"===typeof b&&"function"===typeof c||"function"===typeof c&&"function"===typeof d)throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");"function"===typeof b&&"undefined"===typeof c&&(c=b,b=void 0);if("undefined"!==typeof c){if("function"!==typeof c)throw Error("Expected the enhancer to be a function. Instead, received: '"+
typeof c+"'");return c(Pla)(a,b)}if("function"!==typeof a)throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof a+"'");var l=a,m=b,n=[],p=n,q=!1;h({type:Hv});a={};var r=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(t){if("function"!==typeof t)throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof t);l=t;h({type:Qla});return r},a[Rla]=function(){var t={};
return t.subscribe=function(v){function x(){v.next&&v.next(e())}
if("object"!==typeof v||null===v)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof v+"'");x();return{unsubscribe:f(x)}},t[Rla]=function(){return this},t},a);
return r};
Sla=function(){var a=g.Iv("WORKER_SERIALIZATION_URL");return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?Zd(a):null:null};
g.Jv=function(a){a=Tla(a);return Zd(a)};
Tla=function(a){return null===a?"null":void 0===a?"undefined":a};
Kv=function(a){this.oa=M(a)};
Ula=function(a){var b=a.split(""),c=[1153704480,1702396733,",50];c[52]=c;",function(d,e){d=(d%e.length+e.length)%e.length;e.splice(-d).reverse().forEach(function(f){e.unshift(f)})},
1409014688,function(d,e){d=(d%e.length+e.length)%e.length;e.splice(d,1)},
1743417781,-278809424,-46007950,function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 91:d=44;continue;case 123:d=65;break;case 65:d-=18;continue;case 58:d=96;continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
-1263509782,"this",692429805,417610010,b,-1157681819,1975713035,function(d,e,f,h,l,m){return e(h,l,m)},
-2070841274,function(d,e){if(0!=e.length){d=(d%e.length+e.length)%e.length;var f=e[0];e[0]=e[d];e[d]=f}},
-1504612448,-1170900681,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
633176150,1920040487,43914163,1064974103,885685688,1751303589,1361409073,function(d,e){d.push(e)},
-357324807,756882853,function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 46:d=95;default:e.push(String.fromCharCode(d));case 94:case 95:case 96:break;case 123:d-=76;case 92:case 93:continue;case 58:d=44;case 91:}return e},
2145928729,-1753032904,function(d,e,f){var h=d.length;e.forEach(function(l,m,n){this.push(n[m]=d[(d.indexOf(l)-d.indexOf(this[m])+m+h--)%d.length])},f.split(""))},
1511866040,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
710328598,-2092695830,-924811535,1833028867,2027441207,null,-1065472446,1656783028,-1784305803,753126192,null,b,-167776591,1064974103,351411,b,"])[],;,",-1581115183,function(d,e){0!=d.length&&(e=(e%d.length+d.length)%d.length,d.splice(0,1,d.splice(e,1,d[0])[0]))},
function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 58:d=96;continue;case 91:d=44;break;case 65:d=47;continue;case 46:d=153;case 123:d-=58;default:e.push(String.fromCharCode(d))}return e},
1357014556,879791778,function(d){d.reverse()},
528987105,null,879791778,1664213431,-842897357,309574833,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
431594961,162752727,1088186442,-401887722,function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 58:d-=14;case 91:case 92:case 93:continue;case 123:d=47;case 94:case 95:case 96:continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
-1373597858,-1060804611,function(d,e,f,h,l,m,n){return d(l,m,n)},
function(d,e,f,h,l,m,n,p,q,r){return e(l,m,n,p,q,r)},
102557665,1829519874,function(d,e,f,h,l){return e(f,h,l)},
")\u224f",167251634,762020353,1894322720];c[44]=c;c[49]=c;c[63]=c;try{try{10>=c[31]&&(0<=c[82]||((0,c[77])((0,c[19])(c[13],c[63]),c[80],(0,c[5])(c[1],c[50]),(0,c[76])(c[19],(((0,c[61])(c[50]),c[61])(c[63]),c[36])((0,c[73])(),c[50],c[11]),(0,c[61])(c[63]),(0,c[36])((0,c[9])(),c[50],c[11])/(0,c[36])((0,c[9])(),c[14],c[11]),c[48],c[49]),(((0,c[36])((0,c[73])(),c[50],c[11]),c[36])((0,c[73])(),c[54],c[11]),c[5])(c[24],c[19-Math.pow(2,4)+47]),c[5],c[0],c[63]),0))&&(0,c[80])((((0,c[80])((0,c[3])(c[141-Math.pow(2,
5)+-70],c[63]),c[6],c[34],c[53]),c[22])(c[11],c[47])%(0,c[22])(c[24],c[52]),((0,c[25])(c[57],c[35]),(0,c[22])(c[45],c[17]),c[25])(c[17],c[26]),((0,c[6])(c[31],c[47]),(((0,c[79])(c[71],c[54]),c[29])(c[16],c[1]),c[79])(c[21],c[73]),c[67])(c[15],c[75])),c[42],c[43],c[6]),-2==c[34]&&((0,c[32])(((0,c[73])((0,c[25])(),c[2],c[48]),c[73])((0,c[46])(),c[6],c[48]),c[40],c[49],c[1]),{})||((0,c[40])(c[78],c[Math.pow(3,3)-120- -95]),(0,c[56])(c[62],c[1]),c[56])(c[72],c[2])}catch(d){((0,c[85])(c[51]),c[73])((0,c[46])(),
c[6],c[48])}try{-9>c[8]?(0,c[32])((0,c[55220+Math.pow(3,4)+-55228])((0,c[10])(),c[6],c[48]),c[73],(0,c[70])(),c[2],c[48]):(0,c[32])((0,c[56])(c[44],c[2]),c[9],c[1],c[36]),9<=c[75-Math.pow(new Date("1970-01-01T10:15:01.000+10:15")/1E3,3)+9]&&(8>c[11]?(((((((0,c[0])((0,c[new Date("1969-12-31T13:30:28.000-10:30")/1E3])(c[73],(0,c[608+-184*Math.pow(3,1)])(c[16],c[2]),(0,c[42])(c[74],c[15]),(0,c[20])(c[2]),(0,c[70])(),c[2],c[48]),c[73],(0,c[70])(),c[2],c[48]),(0,c[42])(c[57],c[2]),c[54])((0,c[20])(c[51]),
c[9],(0,c[73])((0,c[70])(),c[6],c[48]),c[2],c[35]),c[13])(c[51]),(0,c[0])((0,c[40])(c[30],c[1]),c[73],(0,c[10])(),c[6],c[48]),((0,c[75])(c[new Date("1969-12-31T19:15:02.000-04:45")/1E3]),((0,c[73])((0,c[46])(),c[6],c[22%Math.pow(2,4)+42]),c[73])((0,c[70])(),c[6],c[48]),c[56])(c[22],c[6]),c[42])(c[55],c[81]),c[42])(c[21],c[2]),c[9])(c[81],c[27]),c[new Date("1969-12-31T15:15:40.000-08:45")/1E3])(c[4],c[81]):((((0,c[59])(c[6],c[14]),c[59])(c[6],c[84]),(0,c[13])(c[6]),c[0])((0,c[59])(c[1],c[65]),c[52],
c[28]),(0,c[72])(c[64],c[3]),((0,c[63])((0,c[17])(c[18],c[64]),c[9],c[52],c[40]),c[9])(c[57],c[40]),(0,c[79])(c[35],c[54]),c[6])(c[12],c[21])/(((0,c[51])((0,c[37])(c[16168+Math.pow(7,3)-16434],c[59*Math.pow(3,5)+-14334]),c[70],(0,c[233528+-228*Math.pow(4,5)])(c[85],c[16]),(0,c[67])(),c[85],c[45]),(0,c[56])(c[85],c[80]),c[25])(c[37],(0,c[37])(c[new Date("1970-01-01T03:00:28.000+03:00")/1E3],c[3]),(0,c[53])(c[68],c[48]),(0,c[6])(c[new Date("1969-12-31T13:16:18.000-10:45")/1E3],c[0]),c[74],c[3])/(0,c[56])(c[84],
c[14])))}catch(d){(0,c[80])((0,c[Math.pow(7,4)%84+-8])(c[58],c[9]),c[53],c[0],c[46])}finally{9!==c[83-53%Math.pow(1,1)]&&(-7>=c[30]||((0,c[80])((0,c[50])(c[5],c[81]),c[3],c[75],c[85]),0))&&((0,c[41])(c[79],c[45]),c[67])((0,c[4])(),c[2],c[42])}}catch(d){return"enhanced_except_o5kB3Ob-_w8_"+a}return b.join("")};
g.Lv=function(a){this.name=a};
Mv=function(a){this.oa=M(a)};
Nv=function(a){this.oa=M(a)};
Ov=function(a){this.oa=M(a)};
Pv=function(a){this.oa=M(a)};
Qv=function(a){this.oa=M(a)};
Rv=function(a){this.oa=M(a)};
Sv=function(a){this.oa=M(a)};
Tv=function(a){this.oa=M(a)};
Uv=function(a){this.oa=M(a)};
Vv=function(a){this.oa=M(a)};
Wv=function(a){this.oa=M(a)};
Xv=function(a){this.oa=M(a)};
Yv=function(a){this.oa=M(a)};
Zv=function(a){this.oa=M(a)};
$v=function(a){this.oa=M(a)};
aw=function(a){this.oa=M(a)};
bw=function(a){this.oa=M(a)};
cw=function(a){this.oa=M(a)};
dw=function(a){this.oa=M(a)};
ew=function(a){this.oa=M(a)};
fw=function(a){this.oa=M(a)};
gw=function(a){this.oa=M(a)};
hw=function(a){this.oa=M(a)};
iw=function(a){this.oa=M(a)};
jw=function(a){this.oa=M(a)};
kw=function(a){this.oa=M(a)};
lw=function(a){this.oa=M(a)};
mw=function(a){this.oa=M(a)};
nw=function(a){this.oa=M(a)};
ow=function(a){this.oa=M(a)};
pw=function(a){this.oa=M(a)};
qw=function(a){this.oa=M(a)};
rw=function(a){this.oa=M(a)};
tw=function(a){this.oa=M(a)};
uw=function(a){this.oa=M(a)};
vw=function(a){this.oa=M(a)};
ww=function(a){this.oa=M(a)};
xw=function(a){this.oa=M(a)};
yw=function(a){this.oa=M(a)};
zw=function(a){this.oa=M(a)};
Aw=function(a){this.oa=M(a)};
Bw=function(a){this.oa=M(a)};
Cw=function(a){this.oa=M(a)};
Dw=function(a){this.oa=M(a)};
Ew=function(a){this.oa=M(a)};
Fw=function(a){this.oa=M(a)};
Gw=function(a){this.oa=M(a)};
Hw=function(a){this.oa=M(a)};
Iw=function(a){this.oa=M(a)};
Jw=function(a){this.oa=M(a)};
Kw=function(a){this.oa=M(a)};
Lw=function(a){this.oa=M(a)};
Mw=function(a){this.oa=M(a)};
Nw=function(a){this.oa=M(a)};
Ow=function(a){this.oa=M(a)};
Pw=function(a){this.oa=M(a)};
Qw=function(a){this.oa=M(a)};
Rw=function(a){this.oa=M(a)};
Sw=function(a){this.oa=M(a)};
Tw=function(a){this.oa=M(a)};
Uw=function(a){this.oa=M(a)};
Vw=function(a){this.oa=M(a)};
Ww=function(a){this.oa=M(a)};
Xw=function(a){this.oa=M(a)};
Yw=function(a){this.oa=M(a)};
gx=function(a){this.oa=M(a)};
hx=function(a){this.oa=M(a)};
ix=function(a){this.oa=M(a)};
jx=function(a){this.oa=M(a)};
kx=function(a){this.oa=M(a)};
Vla=function(a,b){return Gj(a,1,b)};
lx=function(a){this.oa=M(a)};
mx=function(a){this.oa=M(a)};
nx=function(a){this.oa=M(a)};
ox=function(a){this.oa=M(a)};
px=function(a){this.oa=M(a)};
qx=function(a){this.oa=M(a)};
rx=function(a){this.oa=M(a)};
sx=function(a){this.oa=M(a)};
tx=function(a){this.oa=M(a)};
ux=function(a){this.oa=M(a)};
g.vx=function(a){this.oa=M(a)};
wx=function(a){this.oa=M(a)};
xx=function(a){this.oa=M(a)};
yx=function(a){this.oa=M(a)};
zx=function(a){this.oa=M(a)};
Ax=function(a){this.oa=M(a)};
Bx=function(a){this.oa=M(a)};
Cx=function(a){this.oa=M(a)};
Dx=function(a){this.oa=M(a)};
Ex=function(a){this.oa=M(a)};
Fx=function(a){this.oa=M(a)};
Gx=function(a){this.oa=M(a)};
Hx=function(a){this.oa=M(a)};
Ix=function(a){this.oa=M(a)};
Jx=function(a){this.oa=M(a)};
Kx=function(a){this.oa=M(a)};
Lx=function(a){this.oa=M(a)};
Mx=function(a){this.oa=M(a)};
Nx=function(a){this.oa=M(a)};
Ox=function(a){this.oa=M(a)};
Px=function(a){this.oa=M(a)};
Qx=function(a){this.oa=M(a)};
Rx=function(a){this.oa=M(a)};
Sx=function(a){this.oa=M(a)};
Tx=function(a){this.oa=M(a)};
Ux=function(a){this.oa=M(a)};
Vx=function(a){this.oa=M(a)};
Wx=function(a){this.oa=M(a)};
Xx=function(a){this.oa=M(a)};
Yx=function(a){this.oa=M(a)};
Zx=function(a){this.oa=M(a)};
$x=function(a){this.oa=M(a)};
ay=function(a){this.oa=M(a)};
by=function(a){this.oa=M(a)};
cy=function(a){this.oa=M(a)};
dy=function(a){this.oa=M(a)};
ey=function(a){this.oa=M(a)};
fy=function(a){this.oa=M(a)};
gy=function(a){this.oa=M(a)};
hy=function(a){this.oa=M(a)};
iy=function(a){this.oa=M(a)};
jy=function(a){this.oa=M(a)};
ky=function(a){this.oa=M(a)};
ly=function(a){this.oa=M(a)};
my=function(a){this.oa=M(a)};
ny=function(a){this.oa=M(a)};
oy=function(a){this.oa=M(a)};
py=function(a){this.oa=M(a)};
qy=function(a){this.oa=M(a)};
ry=function(a){this.oa=M(a)};
sy=function(a){this.oa=M(a)};
ty=function(a){this.oa=M(a)};
uy=function(a){this.oa=M(a)};
vy=function(a){this.oa=M(a)};
wy=function(a){this.oa=M(a)};
yy=function(a){this.oa=M(a)};
zy=function(a){this.oa=M(a)};
Ay=function(a){this.oa=M(a)};
By=function(a){this.oa=M(a)};
Cy=function(a){this.oa=M(a)};
Dy=function(a){this.oa=M(a)};
Ey=function(a){this.oa=M(a)};
Fy=function(a){this.oa=M(a)};
Gy=function(a){this.oa=M(a)};
Hy=function(a){this.oa=M(a)};
Iy=function(a){this.oa=M(a)};
Jy=function(a){this.oa=M(a)};
Ky=function(a){this.oa=M(a)};
Ly=function(a){this.oa=M(a)};
My=function(a){this.oa=M(a)};
Ny=function(a){this.oa=M(a)};
Oy=function(a){this.oa=M(a)};
Py=function(a){this.oa=M(a)};
Qy=function(a){this.oa=M(a)};
Ry=function(a){this.oa=M(a)};
Sy=function(a){this.oa=M(a)};
Ty=function(a){this.oa=M(a)};
Uy=function(a){this.oa=M(a)};
Vy=function(a){this.oa=M(a)};
Wy=function(a){this.oa=M(a)};
Xy=function(a){this.oa=M(a)};
Yy=function(a){this.oa=M(a)};
Zy=function(a){this.oa=M(a)};
$y=function(a){this.oa=M(a)};
g.az=function(a){this.oa=M(a)};
g.bz=function(a){this.oa=M(a)};
cz=function(a){this.oa=M(a)};
dz=function(a){this.oa=M(a)};
ez=function(a){this.oa=M(a)};
fz=function(a){this.oa=M(a)};
gz=function(a){this.oa=M(a)};
hz=function(a){this.oa=M(a)};
iz=function(a){this.oa=M(a)};
jz=function(a){this.oa=M(a)};
kz=function(a){this.oa=M(a)};
lz=function(a){this.oa=M(a)};
mz=function(a){this.oa=M(a)};
nz=function(a){this.oa=M(a)};
oz=function(a){this.oa=M(a)};
pz=function(a){this.oa=M(a)};
qz=function(a){this.oa=M(a)};
rz=function(a){this.oa=M(a)};
sz=function(a){this.oa=M(a)};
tz=function(a){this.oa=M(a)};
uz=function(a){this.oa=M(a)};
vz=function(a){this.oa=M(a)};
wz=function(a){this.oa=M(a)};
xz=function(a){this.oa=M(a)};
yz=function(a){this.oa=M(a)};
zz=function(a){this.oa=M(a)};
Az=function(a){this.oa=M(a)};
Bz=function(a){this.oa=M(a)};
Cz=function(a){this.oa=M(a)};
Dz=function(a){this.oa=M(a)};
Ez=function(a){this.oa=M(a)};
Fz=function(a){this.oa=M(a)};
Gz=function(a){this.oa=M(a)};
Hz=function(a){this.oa=M(a)};
Iz=function(a){this.oa=M(a)};
Jz=function(a){this.oa=M(a)};
Kz=function(a){this.oa=M(a)};
Lz=function(a){this.oa=M(a)};
Mz=function(a){this.oa=M(a)};
Nz=function(a){this.oa=M(a)};
Oz=function(a){this.oa=M(a)};
Pz=function(a){this.oa=M(a)};
Qz=function(a){this.oa=M(a)};
Rz=function(a){this.oa=M(a)};
Sz=function(a){this.oa=M(a)};
Tz=function(a){this.oa=M(a)};
Uz=function(a){this.oa=M(a)};
Vz=function(a){this.oa=M(a)};
Wz=function(a){this.oa=M(a)};
Xz=function(a){this.oa=M(a)};
Yz=function(a){this.oa=M(a)};
Zz=function(a){this.oa=M(a)};
$z=function(a){this.oa=M(a)};
aA=function(a){this.oa=M(a)};
bA=function(a){this.oa=M(a)};
cA=function(a){this.oa=M(a)};
dA=function(a){this.oa=M(a)};
eA=function(a){this.oa=M(a)};
fA=function(a){this.oa=M(a)};
gA=function(a){this.oa=M(a)};
hA=function(a){this.oa=M(a)};
iA=function(a){this.oa=M(a)};
jA=function(a){this.oa=M(a)};
kA=function(a){this.oa=M(a)};
sA=function(a){this.oa=M(a)};
tA=function(a){this.oa=M(a)};
uA=function(a){this.oa=M(a)};
vA=function(a){this.oa=M(a)};
wA=function(a){this.oa=M(a)};
xA=function(a){this.oa=M(a)};
yA=function(a){this.oa=M(a)};
zA=function(a){this.oa=M(a)};
AA=function(a){this.oa=M(a)};
BA=function(a){this.oa=M(a)};
CA=function(a){this.oa=M(a)};
DA=function(a){this.oa=M(a)};
EA=function(a){this.oa=M(a)};
FA=function(a){this.oa=M(a)};
GA=function(a){this.oa=M(a)};
HA=function(a){this.oa=M(a)};
IA=function(a){this.oa=M(a)};
JA=function(a){this.oa=M(a)};
KA=function(a){this.oa=M(a)};
LA=function(a){this.oa=M(a)};
MA=function(a){this.oa=M(a)};
NA=function(a){this.oa=M(a)};
OA=function(a){this.oa=M(a)};
PA=function(a){this.oa=M(a)};
QA=function(a){this.oa=M(a)};
RA=function(a){this.oa=M(a)};
SA=function(a){this.oa=M(a)};
TA=function(a){this.oa=M(a)};
UA=function(a){this.oa=M(a)};
VA=function(a){this.oa=M(a)};
WA=function(a){this.oa=M(a)};
XA=function(a){this.oa=M(a)};
YA=function(a){this.oa=M(a)};
ZA=function(a){this.oa=M(a)};
$A=function(a){this.oa=M(a)};
aB=function(a){this.oa=M(a)};
bB=function(a){this.oa=M(a)};
cB=function(a){this.oa=M(a)};
dB=function(a){this.oa=M(a)};
eB=function(a){this.oa=M(a)};
fB=function(a){this.oa=M(a)};
Wla=function(a){this.oa=M(a)};
gB=function(a){this.oa=M(a)};
hB=function(a){this.oa=M(a)};
Xla=function(a){this.oa=M(a)};
iB=function(a){this.oa=M(a)};
jB=function(a){this.oa=M(a)};
Yla=function(a){this.oa=M(a)};
Zla=function(a){this.oa=M(a)};
kB=function(a){this.oa=M(a)};
$la=function(a){this.oa=M(a)};
ama=function(a){this.oa=M(a)};
lB=function(a){this.oa=M(a)};
bma=function(a){this.oa=M(a)};
cma=function(a){this.oa=M(a)};
dma=function(a){this.oa=M(a)};
ema=function(a){this.oa=M(a)};
fma=function(a){this.oa=M(a)};
gma=function(a){this.oa=M(a)};
hma=function(a){this.oa=M(a)};
ima=function(a){this.oa=M(a)};
jma=function(a){this.oa=M(a)};
kma=function(a){this.oa=M(a)};
mB=function(a){this.oa=M(a)};
lma=function(a){this.oa=M(a)};
mma=function(a){this.oa=M(a)};
nB=function(a){this.oa=M(a)};
nma=function(a){this.oa=M(a)};
oB=function(a){this.oa=M(a)};
pB=function(a){this.oa=M(a)};
oma=function(a){this.oa=M(a)};
pma=function(a){this.oa=M(a)};
qB=function(a){this.oa=M(a)};
qma=function(a){this.oa=M(a)};
rma=function(a,b){tj(a,fA,1,b)};
rB=function(a){this.oa=M(a)};
sma=function(a,b){return tj(a,fA,1,b)};
sB=function(a){this.oa=M(a)};
tma=function(a,b){return tj(a,fA,2,b)};
tB=function(a){this.oa=M(a)};
uB=function(a){this.oa=M(a)};
vB=function(a){this.oa=M(a)};
wB=function(a){this.oa=M(a)};
uma=function(a){this.oa=M(a)};
xB=function(a){this.oa=M(a)};
yB=function(a){var b=new xB;return N(b,1,a)};
zB=function(a,b){return N(a,2,b)};
AB=function(a){this.oa=M(a)};
vma=function(a){this.oa=M(a)};
BB=function(a){this.oa=M(a)};
CB=function(a,b){wj(a,68,xB,b)};
wma=function(a){this.oa=M(a)};
xma=function(a){this.oa=M(a)};
DB=function(a){this.oa=M(a)};
EB=function(a){this.oa=M(a)};
FB=function(a){this.oa=M(a)};
yma=function(a){this.oa=M(a)};
GB=function(a){this.oa=M(a)};
zma=function(a){this.oa=M(a)};
Ama=function(a){this.oa=M(a)};
Bma=function(a){this.oa=M(a)};
HB=function(a){this.oa=M(a)};
Cma=function(a){this.oa=M(a)};
Dma=function(a){this.oa=M(a)};
Ema=function(a){this.oa=M(a)};
IB=function(a){this.oa=M(a)};
Fma=function(a){this.oa=M(a)};
Gma=function(a){this.oa=M(a)};
JB=function(a){this.oa=M(a)};
KB=function(a){this.oa=M(a)};
Hma=function(a){this.oa=M(a)};
LB=function(a){this.oa=M(a)};
MB=function(a){this.oa=M(a)};
Ima=function(a){this.oa=M(a)};
NB=function(a){this.oa=M(a,486)};
Jma=function(a){this.oa=M(a)};
OB=function(a){this.oa=M(a)};
Kma=function(a){this.oa=M(a)};
Lma=function(){return g.Ta("yt.ads.biscotti.lastId_")||""};
Mma=function(a){g.Sa("yt.ads.biscotti.lastId_",a)};
QB=function(){var a=arguments,b=PB;1<a.length?b[a[0]]=a[1]:1===a.length&&Object.assign(b,a[0])};
g.Iv=function(a,b){return a in PB?PB[a]:b};
RB=function(a){var b=PB.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.SB=function(a){a=Nma(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.TB=function(a,b){a=Nma(a);return void 0===a&&void 0!==b?b:Number(a||0)};
Oma=function(){var a=Nma("ab_det_sc_inj_val");return Array.isArray(a)?g.Yp(a,function(b){return String(b||"")}):[String(a||"")]};
Pma=function(){return g.Iv("EXPERIMENTS_TOKEN","")};
Nma=function(a){return g.Iv("EXPERIMENT_FLAGS",{})[a]};
Qma=function(){for(var a=[],b=g.Iv("EXPERIMENTS_FORCED_FLAGS",{}),c=g.u(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.Iv("EXPERIMENT_FLAGS",{});var e=g.u(Object.keys(c));for(d=e.next();!d.done;d=e.next())d=d.value,d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
Rma=function(a){UB.forEach(function(b){return b(a)})};
g.WB=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.VB(b)}}:a};
g.VB=function(a){var b=g.Ta("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=g.Iv("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),QB("ERRORS",b));Rma(a)};
XB=function(a,b,c,d,e){var f=g.Ta("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=g.Iv("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),QB("ERRORS",f))};
YB=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1==f.length&&f[0]||2==f.length)try{var h=Sma(f[0]||""),l=Sma(f[1]||"");h in c?Array.isArray(c[h])?g.Mb(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(q){var m=q,n=f[0],p=String(YB);m.args=[{key:n,value:f[1],query:a,method:Tma==p?"unchanged":p}];Uma.hasOwnProperty(n)||XB(m)}}return c};
ZB=function(a){var b=[];g.Tc(a,function(c,d){var e=g.ye(d),f;Array.isArray(c)?f=c:f=[c];g.Yb(f,function(h){""==h?b.push(e):b.push(e+"="+g.ye(h))})});
return b.join("&")};
$B=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return YB(a,"&")};
aC=function(a){a=a.split(",");return a=a.map(function(b){return $B(b)})};
g.bC=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),$B(1<a.length?a[1]:a[0])):{}};
cC=function(a,b){return Vma(a,b||{},!0)};
dC=function(a,b){return Vma(a,b||{},!1)};
Vma=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=$B(e[1]||"");for(var f in b)if(c||!g.gd(e,f))e[f]=b[f];return g.Dl(a,e)+d};
eC=function(a){if(!b)var b=window.location.href;var c=g.wl(1,a),d=g.xl(a);c&&d?(a=a.match(vl),b=b.match(vl),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.xl(b)==d&&(Number(g.wl(4,b))||null)==(Number(g.wl(4,a))||null):!0;return a};
fC=function(a){a||(a=document.location.href);a=g.wl(1,a);return null!==a&&"https"==a};
Wma=function(a){a=g.xl(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Sma=function(a){return a&&a.match(Xma)?a:ze(a)};
gC=function(a){var b=Yma;a=void 0===a?Lma():a;var c=Object,d=c.assign,e=Zma(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(G){}try{var m=f.outerWidth;var n=f.outerHeight}catch(G){}try{var p=f.innerWidth;var q=f.innerHeight}catch(G){}try{var r=f.screenLeft;var t=f.screenTop}catch(G){}try{p=f.innerWidth,q=f.innerHeight}catch(G){}try{var v=f.screen.availWidth;var x=f.screen.availTop}catch(G){}f=[r,t,h,l,v,x,m,n,p,q];h=aia(!1,b.j.top);l={};var B=void 0===B?g.Qa:B;m=new Ut;"SVGElement"in B&&"createElementNS"in
B.document&&m.set(0);n=nha();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);B.crypto&&B.crypto.subtle&&m.set(3);"TextDecoder"in B&&"TextEncoder"in B&&m.set(4);B=Hka(m);b=(l.bc=B,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Pp(b.B),l.wgl=!!Mp.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
Zma=function(a){var b={};b.dt=$ma;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.B.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Mp:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Mp.screen)?void 0:f.height;var h;b.u_w=null==(h=Mp.screen)?void 0:h.width;var l;b.u_ah=null==(l=Mp.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Mp.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Mp.screen)?void 0:
n.colorDepth}catch(p){}return b};
bna=function(){if(!ana)return null;var a=ana();return"open"in a?a:null};
g.iC=function(a){switch(hC(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
hC=function(a){return a&&"status"in a?a.status:-1};
g.jC=function(a,b){"function"===typeof a&&(a=g.WB(a));return window.setTimeout(a,b)};
g.kC=function(a,b){"function"===typeof a&&(a=g.WB(a));return window.setInterval(a,b)};
g.lC=function(a){window.clearTimeout(a)};
g.mC=function(a){window.clearInterval(a)};
dna=function(a,b){b=void 0===b?{}:b;var c=eC(a),d=g.SB("web_ajax_ignore_global_headers_if_set"),e;for(e in cna){var f=g.Iv(cna[e]),h="X-Goog-AuthUser"===e||"X-Goog-PageId"===e;"X-Goog-Visitor-Id"!==e||f||(f=g.Iv("VISITOR_DATA"));!f||!c&&!nC(a,e)||d&&void 0!==b[e]||"TVHTML5_UNPLUGGED"===g.Iv("INNERTUBE_CLIENT_NAME")&&h||(b[e]=f)}c&&g.Iv("SESSION_INDEX")&&"TVHTML5_UNPLUGGED"!==g.Iv("INNERTUBE_CLIENT_NAME")&&(b["X-Yt-Auth-Test"]="test");"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];
if(c||nC(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||nC(a,"X-YouTube-Time-Zone")){try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(m){}l&&(b["X-YouTube-Time-Zone"]=l)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&!nC(a,"X-YouTube-Ad-Signals")||(b["X-YouTube-Ad-Signals"]=ZB(gC()));return b};
fna=function(a,b){var c=g.xl(a);g.SB("debug_handle_relative_url_for_query_forward_killswitch")||!c&&eC(a)&&(c=document.location.hostname);var d=ul(g.wl(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=$B(b),f={};g.Yb(ena,function(h){e[h]&&(f[h]=e[h])});
return dC(a,f)};
nC=function(a){return g.xl(a)?!1:!0};
g.oC=function(a,b){var c=b.format||"JSON";a=gna(a,b);var d=hna(a,b),e=!1,f=ina(a,function(m){if(!e){e=!0;l&&g.lC(l);var n=g.iC(m),p=null,q=400<=m.status&&500>m.status,r=500<=m.status&&600>m.status;if(n||q||r)p=jna(a,c,m,b.convertToSafeHtml);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};q=b.context||g.Qa;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,
p)}},b.method,d,b.headers,b.responseType,b.withCredentials);
d=b.timeout||0;if(b.onTimeout&&0<d){var h=b.onTimeout;var l=g.jC(function(){e||(e=!0,f.abort(),g.lC(l),h.call(b.context||g.Qa,f))},d)}return f};
gna=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.Iv("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=cC(a,b);return a};
hna=function(a,b){var c=g.Iv("XSRF_FIELD_NAME"),d=g.Iv("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.Iv("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.xl(a)&&!b.withCredentials&&g.xl(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);(g.SB("ajax_parse_query_data_only_when_filled")&&f&&0<Object.keys(f).length||f)&&"string"===typeof e&&(e=$B(e),g.sd(e,f),e=b.postBodyFormat&&
"JSON"==b.postBodyFormat?JSON.stringify(e):g.Cl(e));f=e||f&&!g.jd(f);!kna&&f&&"POST"!=b.method&&(kna=!0,g.VB(Error("AJAX request with postData should use POST")));return e};
jna=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,XB(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)?lna(a):null)e={},g.Yb(a.getElementsByTagName("*"),function(h){e[h.tagName]=mna(h)})}d&&nna(e);
return e};
nna=function(a){if(g.Xa(a))for(var b in a)"html_content"==b||Eaa(b,"_html")?a[b]=g.le(a[b]):nna(a[b])};
lna=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
mna=function(a){var b="";g.Yb(a.childNodes,function(c){b+=c.nodeValue});
return b};
ona=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.oC(a,b)};
ina=function(a,b,c,d,e,f,h,l){function m(){4==(n&&"readyState"in n?n.readyState:0)&&b&&g.WB(b)(n)}
c=void 0===c?"GET":c;d=void 0===d?"":d;l=void 0===l?!1:l;var n=bna();if(!n)return null;"onloadend"in n?n.addEventListener("loadend",m,!1):n.onreadystatechange=m;g.SB("debug_forward_web_query_parameters")&&(a=fna(a,window.location.search));n.open(c,a,!0);f&&(n.responseType=f);h&&(n.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=dna(a,e))for(var p in e)n.setRequestHeader(p,e[p]),"content-type"==p.toLowerCase()&&(c=!1);c&&n.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");l&&"setAttributionReporting"in XMLHttpRequest.prototype&&n.setAttributionReporting({eventSourceEligible:!0,triggerEligible:!1});n.send(d);return n};
qC=function(a,b){var c=g.pd(b),d;return(new g.Sf(function(e,f){c.onSuccess=function(h){g.iC(h)?e(new pna(h)):f(new pC("Request failed, status="+hC(h),"net.badstatus",h))};
c.onError=function(h){f(new pC("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new pC("Request timed out","net.timeout",h))};
d=g.oC(a,c)})).xk(function(e){e instanceof fg&&d.abort();
return Vf(e)})};
g.rC=function(a,b,c,d){function e(l,m,n){return l.xk(function(p){if(0>=m||403===hC(p.xhr))return Vf(new pC("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0<h?Math.min(h,p):p;return f(n).then(function(){return e(qC(a,b),m-1,q)})})}
function f(l){return new g.Sf(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(qC(a,b),c-1,d)};
pC=function(a,b,c){vb.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
pna=function(a){this.xhr=a};
sC=function(a){this.j=void 0===a?null:a;this.B=0;this.ge=null};
tC=function(a){var b=new sC;a=void 0===a?null:a;b.B=2;b.ge=void 0===a?null:a;return b};
uC=function(a){var b=new sC;a=void 0===a?null:a;b.B=1;b.ge=void 0===a?null:a;return b};
g.xC=function(a,b,c,d,e){vC||wC.set(""+a,b,{nI:c,path:"/",domain:void 0===d?"youtube.com":d,A$:void 0===e?!1:e})};
g.yC=function(a,b){if(!vC)return wC.get(""+a,b)};
g.qna=function(a,b,c){vC||wC.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
zna=function(){if(!wC.isEnabled())return!1;if(!wC.isEmpty())return!0;wC.set("TESTCOOKIESENABLED","1",{nI:60});if("1"!==wC.get("TESTCOOKIESENABLED"))return!1;wC.remove("TESTCOOKIESENABLED");return!0};
g.S=function(a,b){if(a)return a[b.name]};
Ana=function(a){var b=g.Iv("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(yl(a)));return a};
Bna=function(a,b){var c={};g.Iv("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.Iv("INNERTUBE_API_KEY"));g.SB("json_condensed_response")&&(c.prettyPrint="false");return a=dC(a,c)};
Cna=function(a,b){var c=void 0===c?{}:c;a={method:void 0===b?"POST":b,mode:eC(a)?"same-origin":"cors",credentials:eC(a)?"same-origin":"include"};b={};for(var d=g.u(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);0<Object.keys(b).length&&(a.headers=b);return a};
Dna=function(){var a=/Chrome\/(\d+)/.exec(g.mc());return a?parseFloat(a[1]):NaN};
Ena=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.mc());if(!a)return NaN;var b=[];a=g.u(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("."))};
AC=function(){return g.zC("android")&&g.zC("chrome")&&!(g.zC("trident/")||g.zC("edge/"))&&!g.zC("cobalt")};
Fna=function(){return g.zC("armv7")||g.zC("aarch64")||g.zC("android")};
g.BC=function(){return g.zC("cobalt")};
CC=function(){return g.zC("cobalt")&&g.zC("appletv")};
Gna=function(){return g.zC("(ps3; leanback shell)")||g.zC("ps3")&&g.BC()};
Hna=function(){return g.zC("(ps4; leanback shell)")||g.zC("ps4")&&g.BC()};
g.Ina=function(){return g.BC()&&(g.zC("ps4 vr")||g.zC("ps4 pro vr"))};
DC=function(){var a=/WebKit\/([0-9]+)/.exec(g.mc());return!!(a&&600<=parseInt(a[1],10))};
Jna=function(){var a=/WebKit\/([0-9]+)/.exec(g.mc());return!!(a&&602<=parseInt(a[1],10))};
Kna=function(){return g.zC("iemobile")||g.zC("windows phone")&&g.zC("edge")};
GC=function(){return(EC||FC)&&g.zC("applewebkit")&&!g.zC("version")&&(!g.zC("safari")||g.zC("gsa/"))};
IC=function(){return g.HC&&g.zC("version/")};
Lna=function(){return g.zC("smart-tv")&&g.zC("samsung")};
g.zC=function(a){var b=g.mc();return b?0<=b.toLowerCase().indexOf(a):!1};
Mna=function(){return Oea()||GC()||IC()?!0:g.Iv("EOM_VISITOR_DATA")?!1:!0};
JC=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
KC=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
LC=function(a,b){return void 0===b||null===b?a:Number(b)};
MC=function(a,b){return void 0===b||null===b?a:b.toString()};
Ona=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(Nna))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
NC=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
Qna=function(a){return"EMBEDDED_PLAYER_MODE_PFL"===Pna(a,!1)};
g.OC=function(a){return"EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"===a||"EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"===a?!0:!1};
Pna=function(a,b){b=(void 0===b?0:b)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(d){return b}return c?KC(b,c.embeddedPlayerMode,Rna):b};
Sna=function(a){vb.call(this,a.message||a.description||a.name);this.isMissing=a instanceof PC;this.isTimeout=a instanceof pC&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof fg};
PC=function(){vb.call(this,"Biscotti ID is missing from server")};
Tna=function(){if(g.SB("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Mna())return Error("User has not consented - not fetching biscotti id.");var a=g.Iv("PLAYER_VARS",{});if("1"==g.nd(a,"privembed",!1))return Error("Biscotti ID is not available in private embed mode");if(Qna(a))return Error("Biscotti id fetching has been disabled for pfl.")};
Xna=function(){var a=Tna();if(void 0!==a)return Vf(a);QC||(QC=qC("//googleads.g.doubleclick.net/pagead/id",Una).then(Vna).xk(function(b){return Wna(2,b)}));
return QC};
Vna=function(a){a=a.xhr.responseText;if(!cc(a,")]}'"))throw new PC;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new PC;a=a.id;Mma(a);QC=uC(a);Yna(18E5,2);return a};
Wna=function(a,b){b=new Sna(b);Mma("");QC=tC(b);0<a&&Yna(12E4,a-1);throw b;};
Yna=function(a,b){g.jC(function(){qC("//googleads.g.doubleclick.net/pagead/id",Una).then(Vna,function(c){return Wna(b,c)}).xk(g.Ld)},a)};
Zna=function(){return void 0!==Tna()?Vf(Error("Biscotti id is disabled")):qC("//googleads.g.doubleclick.net/pagead/id",Una)};
$na=function(){try{var a=g.Ta("yt.ads.biscotti.getId_");return a?a():Xna()}catch(b){return Vf(b)}};
doa=function(a,b,c){a&&(a.dataset?a.dataset[aoa(b)]=String(c):Zfa([new zn(boa[0].toLowerCase(),coa)],a,"data-"+b,c.toString()))};
eoa=function(a){return a?a.dataset?a.dataset[aoa("loaded")]:a.getAttribute("data-loaded"):null};
aoa=function(a){return foa[a]||(foa[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
hoa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=goa+"VisibilityState";if(b in a)return a[b]};
RC=function(a,b){var c;Nr(a,function(d){c=b[d];return!!c});
return c};
ioa=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()};
UC=function(a){var b;g.SC()?TC()==a&&(b=document):b=a;return b&&(a=RC(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
joa=function(a){return g.Bb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
koa=function(){var a=document;return g.Bb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.SC=function(){return!!RC(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
TC=function(a){a=void 0===a?!1:a;var b=RC(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
VC=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 loa||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;
if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.j=a.pageX;this.B=a.pageY}}catch(e){}};
moa=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.B=a.clientY+b}};
noa=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 id(WC,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Xa(e[4])&&g.Xa(d)&&g.od(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.XC=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=noa(a,b,c,d);if(e)return e;e=++ooa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new VC(l);if(!Df(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new VC(l);
l.currentTarget=a;return c.call(a,l)};
h=g.WB(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),poa()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);WC[e]=[a,b,c,h,d];return e};
qoa=function(a,b){var c=document.body||document;return g.XC(c,"click",function(d){var e=Df(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.YC=function(a){a&&("string"==typeof a&&(a=[a]),g.Yb(a,function(b){if(b in WC){var c=WC[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?poa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete WC[b]}}))};
ZC=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;b&&b.length?a=b[0]:(a=a||window.event,a=a.target||a.srcElement,3==a.nodeType&&(a=a.parentNode));return a};
roa=function(a){return qoa(a,function(b){return g.hu(b,"ytp-ad-has-logging-urls")})};
soa=function(a){for(var b in WC)WC[b][0]==a&&g.YC(b)};
$C=function(a){this.S=a;this.j=null;this.D=0;this.K=null;this.G=0;this.B=[];for(a=0;4>a;a++)this.B.push(0);this.C=0;this.va=g.XC(window,"mousemove",(0,g.cb)(this.ea,this));this.ma=g.kC((0,g.cb)(this.qa,this),25)};
aD=function(a){g.J.call(this);this.S=[];this.rb=a||this};
bD=function(a,b,c,d){for(var e=0;e<c.length;e++)a.V(b,c[e],d)};
g.cD=function(a,b){for(;a.S.length;){var c=a.S.pop(),d=void 0;b&&toa()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
dD=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.pd(b);this.assets=a.assets||{};this.attrs=a.attrs||g.pd(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||{}};
uoa=function(a){a instanceof dD||(a=new dD(a));return a};
g.fD=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.eD)():voa())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.gD=function(a){var b=voa(),c=(0,g.eD)();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};
woa=function(){var a=(0,g.eD)();if(a&&(a=a.B("yt-player-quality")))return a.creation};
g.hD=function(a){try{var b=voa(),c=(0,g.eD)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.iD=function(){return g.gD("yt-remote-session-screen-id")};
jD=function(){this.UZ=!0};
xoa=function(){jD.instance||(jD.instance=new jD);return jD.instance};
yoa=function(a){var b=this;this.B=void 0;this.j=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.B=c});
a.addEventListener("appinstalled",function(){b.j=!0},{once:!0})};
zoa=function(){if(!g.Qa.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Qa.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Qa.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Qa.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Qa.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
Aoa=function(a){switch(a){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
Boa=function(){this.j=g.Iv("ALT_PREF_COOKIE_NAME","PREF");this.B=g.Iv("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.yC(this.j);a&&this.parse(a)};
g.kD=function(){Coa||(Coa=new Boa);return Coa};
g.lD=function(a,b){return!!((Doa("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
Eoa=function(a,b){var c="f"+(Math.floor(a/31)+1);a=1<<a%31;var d=Doa(c)||0;d=b?d|a:d&~a;0===d?delete mD[c]:(b=d.toString(16),mD[c]=b.toString())};
Foa=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
Goa=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
Doa=function(a){a=void 0!==mD[a]?mD[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Hoa=function(){var a=g.Qa.navigator;return a?a.connection:void 0};
Joa=function(){var a=Hoa();if(a){var b=Ioa[a.type||"unknown"]||"CONN_UNKNOWN";a=Ioa[a.effectiveType||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===b&&"CONN_UNKNOWN"!==a&&(b=a);if("CONN_UNKNOWN"!==b)return b;if("CONN_UNKNOWN"!==a)return a}};
Loa=function(){var a=Hoa();if(null!=a&&a.effectiveType)return Koa.hasOwnProperty(a.effectiveType)?Koa[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.nD=function(a){var b=g.Ja.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.pa(b))};
g.pD=function(){try{return g.oD(),!0}catch(a){return!1}};
g.oD=function(a){if(void 0!==g.Iv("DATASYNC_ID"))return g.Iv("DATASYNC_ID");throw new g.nD("Datasync ID not set",void 0===a?"unknown":a);};
qD=function(){this.j=new WeakMap};
g.sD=function(a,b,c){return rD(b,0,c)};
Moa=function(a){var b=g.Ta("yt.scheduler.instance.addImmediateJob");b?b(a):a()};
tD=function(){qD.apply(this,arguments)};
g.uD=function(){tD.instance||(tD.instance=new tD);return tD.instance};
g.vD=function(){return!!g.Ta("yt.scheduler.instance")};
rD=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ta("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.jC(a,c||0)};
wD=function(a){var b=g.Ta("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
xD=function(a){var b;(b=g.Vu(a))||(a=new Ru(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.j=(a=b)?new Lu(a):null;this.B=document.domain||window.location.hostname};
Ooa=function(){var a;return null==(a=Noa())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
Roa=function(){var a={};for(yD=new Poa(void 0===a.handleError?Qoa:a.handleError,void 0===a.logEvent?g.zD:a.logEvent);0<AD.length;)switch(a=AD.shift(),a.type){case "ERROR":yD.TD(a.payload);break;case "EVENT":yD.logEvent(a.eventType,a.payload)}};
CD=function(a){BD||(yD?yD.TD(a):(AD.push({type:"ERROR",payload:a}),10<AD.length&&AD.shift()))};
DD=function(a,b){BD||(yD?yD.logEvent(a,b):(AD.push({type:"EVENT",eventType:a,payload:b}),10<AD.length&&AD.shift()))};
ED=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
FD=function(a){return a.substr(0,a.indexOf(":"))||a};
g.GD=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?Soa[a]:c;d=void 0===d?Toa[a]:d;e=void 0===e?Uoa[a]:e;g.nD.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:void 0===self.document,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.j=e;Object.setPrototypeOf(this,g.GD.prototype)};
Voa=function(a,b){g.GD.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Soa.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Voa.prototype)};
HD=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=a;this.objectStore=b;Object.setPrototypeOf(this,HD.prototype)};
Xoa=function(a,b,c,d){b=FD(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.GD)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new g.GD("QUOTA_EXCEEDED",a);if(g.ID&&"UnknownError"===e.name)return new g.GD("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof HD)return new g.GD("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&Woa.some(function(f){return e.message.includes(f)}))return new g.GD("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new g.GD("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",hJ:e.name})];e.level="WARNING";return e};
g.JD=function(a,b,c){var d=Ooa();return new g.GD("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
Yoa=function(a){if(!a)throw Error();throw a;};
Zoa=function(a){return a};
KD=function(a){this.j=a};
g.LD=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.u(d.B);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
function c(e){if("PENDING"===d.state.status){d.state={status:"FULFILLED",value:e};e=g.u(d.j);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
var d=this;this.state={status:"PENDING"};this.j=[];this.B=[];a=a.j;try{a(c,b)}catch(e){b(e)}};
apa=function(a,b,c,d,e){try{if("FULFILLED"!==a.state.status)throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof g.LD?$oa(a,b,f,d,e):d(f)}catch(h){e(h)}};
bpa=function(a,b,c,d,e){try{if("REJECTED"!==a.state.status)throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof g.LD?$oa(a,b,f,d,e):d(f)}catch(h){e(h)}};
$oa=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.LD?$oa(a,b,f,d,e):d(f)},function(f){e(f)})};
cpa=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)};
dpa=function(a){return new Promise(function(b,c){cpa(a,b,c)})};
MD=function(a){return new g.LD(new KD(function(b,c){cpa(a,b,c)}))};
epa=function(a,b){return new g.LD(new KD(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
fpa=function(a,b){this.request=a;this.cursor=b};
ND=function(a){return MD(a).then(function(b){return b?new fpa(a,b):null})};
gpa=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.OD)());this.B=!1};
g.PD=function(a,b,c){a=a.j.createObjectStore(b,c);return new hpa(a)};
QD=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
g.TD=function(a,b,c){return g.RD(a,[b],{mode:"readwrite",kc:!0},function(d){return g.SD(d.objectStore(b),c)})};
g.RD=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,t,v,x;return g.H(function(B){switch(B.j){case 1:var G={mode:"readonly",kc:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?G.mode=c:Object.assign(G,c);e=G;a.transactionCount++;f=e.kc?3:1;h=0;case 2:if(l){B.Ma(4);break}h++;m=Math.round((0,g.OD)());g.za(B,5);n=a.j.transaction(b,e.mode);G=new UD(n);G=ipa(G,d);return g.z(B,G,7);case 7:return p=B.B,q=Math.round((0,g.OD)()),jpa(a,m,q,h,void 0,b.join(),e),B.return(p);case 5:r=g.Ca(B);t=Math.round((0,g.OD)());
v=Xoa(r,a.j.name,b.join(),a.j.version);if((x=v instanceof g.GD&&!v.j)||h>=f)jpa(a,m,t,h,v,b.join(),e),l=v;B.Ma(2);break;case 4:return B.return(Promise.reject(l))}})};
jpa=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.GD&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&DD("QUOTA_EXCEEDED",{dbName:FD(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.GD&&"UNKNOWN_ABORT"===e.type&&(c-=a.C,0>c&&c>=Math.pow(2,31)&&(c=0),DD("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),kpa(a,!1,d,f,b,h.tag),CD(e)):kpa(a,!0,d,
f,b,h.tag)};
kpa=function(a,b,c,d,e,f){DD("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
hpa=function(a){this.j=a};
g.VD=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
lpa=function(a,b){return g.WD(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
mpa=function(a,b,c){var d=[];return g.WD(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
opa=function(a){return"getAllKeys"in IDBObjectStore.prototype?MD(a.j.getAllKeys(void 0,void 0)):npa(a)};
npa=function(a){var b=[];return g.ppa(a,{query:void 0},function(c){b.push(c.EH());return c.continue()}).then(function(){return b})};
g.SD=function(a,b,c){return MD(a.j.put(b,c))};
g.WD=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return XD(a).then(function(d){return epa(d,c)})};
g.ppa=function(a,b,c){var d=b.query;b=b.direction;a="openKeyCursor"in IDBObjectStore.prototype?a.j.openKeyCursor(d,b):a.j.openCursor(d,b);return ND(a).then(function(e){return epa(e,c)})};
UD=function(a){var b=this;this.j=a;this.C=new Map;this.B=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()});
b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)});
b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.B){e=g.GD;for(var f=b.j.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");h.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:b.j.db.name,mode:b.j.mode});d(e)}})})};
ipa=function(a,b){var c=new Promise(function(d,e){try{b(a).then(function(f){d(f)}).catch(e)}catch(f){e(f),a.abort()}});
return Promise.all([c,a.done]).then(function(d){return g.u(d).next().value})};
qpa=function(a){this.j=a};
rpa=function(a,b,c){var d=[];return g.YD(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
g.YD=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return XD(a).then(function(d){return epa(d,c)})};
spa=function(a,b){this.request=a;this.cursor=b};
XD=function(a){return MD(a).then(function(b){return b?new spa(a,b):null})};
tpa=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new gpa(h.result,{closed:q}));return r}
var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.Z$,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(t){try{if(null===t.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&"none"!==t.dataLoss&&DD("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:FD(a)});var v=f(),x=new UD(h.transaction);
p&&p(v,function(B){return t.oldVersion<B&&t.newVersion>=B},x);
x.done.catch(function(B){e(B)})}catch(B){e(B)}});
h.addEventListener("success",function(){var t=h.result;m&&t.addEventListener("versionchange",function(){m(f())});
t.addEventListener("close",function(){DD("IDB_UNEXPECTEDLY_CLOSED",{dbName:FD(a),dbVersion:t.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
upa=function(a,b,c){c=void 0===c?{}:c;return tpa(a,b,c)};
ZD=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.H(function(h){if(1==h.j)return g.za(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.z(h,dpa(c),4);
if(2!=h.j)return g.Ba(h,0);f=g.Ca(h);throw Xoa(f,a,"",-1);})};
$D=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0};
vpa=function(a,b){return new g.GD("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.aE=function(a,b){if(!b)throw g.JD("openWithToken",FD(a.name));return a.open()};
xpa=function(a,b){var c;return g.H(function(d){if(1==d.j)return g.z(d,g.aE(wpa,b),2);c=d.B;return d.return(g.RD(c,["databases"],{kc:!0,mode:"readwrite"},function(e){var f=e.objectStore("databases");return f.get(a.actualName).then(function(h){if(h?a.actualName!==h.actualName||a.publicName!==h.publicName||a.userIdentifier!==h.userIdentifier:1)return g.SD(f,a).then(function(){})})}))})};
bE=function(a,b){var c;return g.H(function(d){if(1==d.j)return a?g.z(d,g.aE(wpa,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})};
ypa=function(a,b){var c,d;return g.H(function(e){return 1==e.j?(c=[],g.z(e,g.aE(wpa,b),2)):3!=e.j?(d=e.B,g.z(e,g.RD(d,["databases"],{kc:!0,mode:"readonly"},function(f){c.length=0;return g.WD(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return h.continue()})}),3)):e.return(c)})};
zpa=function(a,b){return ypa(function(c){return c.publicName===a&&void 0!==c.userIdentifier},b)};
Bpa=function(){var a,b,c,d;return g.H(function(e){switch(e.j){case 1:a=Ooa();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(cE&&DC()&&!Jna()||g.dE)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(f){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);g.za(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.z(e,xpa(d,Apa),4);case 4:return g.z(e,bE("yt-idb-test-do-not-use",Apa),5);case 5:return e.return(!0);case 2:return g.Ca(e),e.return(!1)}})};
Dpa=function(){if(void 0!==Cpa)return Cpa;BD=!0;return Cpa=Bpa().then(function(a){BD=!1;var b;if(null!=(b=Noa())&&b.j){var c;b={hasSucceededOnce:(null==(c=Ooa())?void 0:c.hasSucceededOnce)||a};var d;null==(d=Noa())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
eE=function(){return g.Ta("ytglobal.idbToken_")||void 0};
g.fE=function(){var a=eE();return a?Promise.resolve(a):Dpa().then(function(b){(b=b?Apa:void 0)&&g.Sa("ytglobal.idbToken_",b);return b})};
Epa=function(a){if(!g.pD())throw a=new g.GD("AUTH_INVALID",{dbName:a}),CD(a),a;var b=g.oD();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
Fpa=function(a,b,c,d){var e,f,h,l,m,n;return g.H(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.z(p,g.fE(),2);case 2:h=p.B;if(!h)throw l=g.JD("openDbImpl",a,b),g.SB("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),CD(l),l;ED(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Epa(a);g.za(p,3);return g.z(p,xpa(m,h),5);case 5:return g.z(p,upa(m.actualName,b,d),6);case 6:return p.return(p.B);case 3:return n=g.Ca(p),g.za(p,7),g.z(p,bE(m.actualName,
h),9);case 9:g.Ba(p,8);break;case 7:g.Ca(p);case 8:throw n;}})};
Gpa=function(a,b,c){c=void 0===c?{}:c;return Fpa(a,b,!1,c)};
Hpa=function(a,b,c){c=void 0===c?{}:c;return Fpa(a,b,!0,c)};
Ipa=function(a,b){b=void 0===b?{}:b;var c,d;return g.H(function(e){if(1==e.j)return g.z(e,g.fE(),2);if(3!=e.j){c=e.B;if(!c)return e.return();ED(a);d=Epa(a);return g.z(e,ZD(d.actualName,b),3)}return g.z(e,bE(d.actualName,c),0)})};
Jpa=function(a,b,c){a=a.map(function(d){return g.H(function(e){return 1==e.j?g.z(e,ZD(d.actualName,b),2):g.z(e,bE(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
Kpa=function(a){var b=void 0===b?{}:b;var c,d;return g.H(function(e){if(1==e.j)return g.z(e,g.fE(),2);if(3!=e.j){c=e.B;if(!c)return e.return();ED(a);return g.z(e,zpa(a,c),3)}d=e.B;return g.z(e,Jpa(d,b,c),0)})};
Lpa=function(a,b){b=void 0===b?{}:b;var c;return g.H(function(d){if(1==d.j)return g.z(d,g.fE(),2);if(3!=d.j){c=d.B;if(!c)return d.return();ED(a);return g.z(d,ZD(a,b),3)}return g.z(d,bE(a,c),0)})};
gE=function(a,b){$D.call(this,a,b);this.options=b;ED(a)};
Mpa=function(a,b){var c;return function(){c||(c=new gE(a,b));return c}};
g.hE=function(a,b){return Mpa(a,b)};
iE=function(a){return g.aE(Npa(),a)};
Opa=function(a,b,c,d){var e,f,h;return g.H(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:void 0!==d?d:(0,g.OD)()},g.z(l,iE(c),2);case 2:return f=l.B,g.z(l,f.clear("hotConfigStore"),3);case 3:return g.z(l,g.TD(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})};
Ppa=function(a,b,c,d,e){var f,h,l;return g.H(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:void 0!==e?e:(0,g.OD)()},g.z(m,iE(d),2);case 2:return h=m.B,g.z(m,h.clear("coldConfigStore"),3);case 3:return g.z(m,g.TD(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})};
Qpa=function(a){var b,c;return g.H(function(d){return 1==d.j?g.z(d,iE(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.RD(b,["coldConfigStore"],{mode:"readwrite",kc:!0},function(e){return g.YD(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
Rpa=function(a){var b,c;return g.H(function(d){return 1==d.j?g.z(d,iE(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.RD(b,["hotConfigStore"],{mode:"readwrite",kc:!0},function(e){return g.YD(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
Spa=function(){return g.H(function(a){return g.z(a,Kpa("ytGcfConfig"),0)})};
Tpa=function(){g.J.call(this);this.B=[];this.j=[];var a=g.Ta("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.pa(a)),this.j=a):(this.j=[],g.Sa("yt.gcf.config.hotUpdateCallbacks",this.j))};
nE=function(){var a=this;this.G=!1;this.C=this.D=0;this.K=new Tpa;this.Nd={lfb:function(){a.G=!0},
veb:function(){return a.j},
hgb:function(b){jE(a,b)},
Er:function(b){a.Er(b)},
dgb:function(b){Upa(a,b)},
Y4:function(){return a.coldHashData},
b5:function(){return a.hotHashData},
Leb:function(){return a.B},
Feb:function(){return kE()},
Heb:function(){return lE()},
Geb:function(){return g.Ta("yt.gcf.config.coldHashData")},
Ieb:function(){return g.Ta("yt.gcf.config.hotHashData")},
ygb:function(){Vpa(a)},
Wfb:function(){a.Er(void 0);mE(a);delete nE.instance},
fgb:function(b){a.C=b},
Beb:function(){return a.C}}};
Wpa=function(){if(!nE.instance){var a=new nE;nE.instance=a}return nE.instance};
Zpa=function(a){var b;g.H(function(c){if(1==c.j)return g.SB("start_client_gcf")||g.SB("delete_gcf_config_db")?g.SB("start_client_gcf")?g.z(c,g.fE(),3):c.Ma(2):c.return();2!=c.j&&((b=c.B)&&g.pD()&&!g.SB("delete_gcf_config_db")?(a.G=!0,Vpa(a)):(Xpa(a),Ypa(a)));return g.SB("delete_gcf_config_db")?g.z(c,Spa(),0):c.Ma(0)})};
$pa=function(){var a;return null!=(a=lE())?a:null};
aqa=function(a){var b,c,d,e,f,h;return g.H(function(l){switch(l.j){case 1:if(a.B)return l.return(lE());if(!a.G)return b=g.JD("getHotConfig IDB not initialized"),XB(b),l.return(Promise.reject(b));c=eE();d=g.Iv("TIME_CREATED_MS");if(!c){e=g.JD("getHotConfig token error");XB(e);l.Ma(2);break}return g.z(l,Rpa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return jE(a,f.config),a.Er(f.hashData),l.return(lE());case 2:Ypa(a);if(!(c&&a.B&&a.hotHashData)){l.Ma(4);break}return g.z(l,Opa(a.B,a.hotHashData,c,d),4);case 4:return a.B?
l.return(lE()):(h=new g.nD("Config not available in ytConfig"),XB(h),l.return(Promise.reject(h)))}})};
cqa=function(a){var b,c,d,e,f,h;return g.H(function(l){switch(l.j){case 1:if(a.j)return l.return(kE());if(!a.G)return b=g.JD("getColdConfig IDB not initialized"),XB(b),l.return(Promise.reject(b));c=eE();d=g.Iv("TIME_CREATED_MS");if(!c){e=g.JD("getColdConfig");XB(e);l.Ma(2);break}return g.z(l,Qpa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Upa(a,f.config),bqa(a,f.configData),mE(a,f.hashData),l.return(kE());case 2:Xpa(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ma(4);break}return g.z(l,Ppa(a.j,
a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(kE()):(h=new g.nD("Config not available in ytConfig"),XB(h),l.return(Promise.reject(h)))}})};
Vpa=function(a){if(!a.B||!a.j){if(!eE()){var b=g.JD("scheduleGetConfigs");XB(b)}a.D||(a.D=g.Tt.Ii(function(){return g.H(function(c){switch(c.j){case 1:return g.za(c,2),g.z(c,aqa(a),4);case 4:g.Ba(c,3);break;case 2:g.Ca(c);case 3:return g.za(c,5),g.z(c,cqa(a),7);case 7:g.Ba(c,6);break;case 5:g.Ca(c);case 6:a.D&&(a.D=0),g.ya(c)}})},100))}};
dqa=function(a,b,c){var d,e,f;return g.H(function(h){switch(h.j){case 1:if(!g.SB("start_client_gcf")){h.Ma(0);break}c&&jE(a,c);a.Er(b);d=eE();if(!d){h.Ma(3);break}if(c){h.Ma(4);break}return g.z(h,Rpa(d),5);case 5:e=h.B,c=null==(f=e)?void 0:f.config;case 4:return g.z(h,Opa(c,b,d),3);case 3:if(c)for(var l=c,m=g.u(a.K.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.ya(h)}})};
eqa=function(a,b,c){var d,e,f,h;return g.H(function(l){if(1==l.j){if(!g.SB("start_client_gcf"))return l.Ma(0);mE(a,b);return(d=eE())?c?l.Ma(4):g.z(l,Qpa(d),5):l.Ma(0)}4!=l.j&&(e=l.B,c=null==(f=e)?void 0:f.config);if(!c)return l.Ma(0);h=c.configData;return g.z(l,Ppa(c,b,h,d),0)})};
fqa=function(){var a=Wpa(),b=(0,g.OD)()-a.C;if(!(0!==a.C&&b<g.TB("send_config_hash_timer"))){b=g.Ta("yt.gcf.config.coldConfigData");var c=g.Ta("yt.gcf.config.hotHashData"),d=g.Ta("yt.gcf.config.coldHashData");b&&c&&d&&(a.C=(0,g.OD)());return{coldConfigData:b,hotHashData:c,coldHashData:d}}};
Xpa=function(a){Upa(a,g.Iv("RAW_COLD_CONFIG_GROUP"));mE(a,g.Iv("SERIALIZED_COLD_HASH_DATA"));var b;bqa(a,null==(b=a.j)?void 0:b.configData)};
Ypa=function(a){jE(a,g.Iv("RAW_HOT_CONFIG_GROUP"));a.Er(g.Iv("SERIALIZED_HOT_HASH_DATA"))};
jE=function(a,b){a.B=b;g.Sa("yt.gcf.config.hotConfigGroup",a.B||null)};
Upa=function(a,b){a.j=b;g.Sa("yt.gcf.config.coldConfigGroup",a.j||null)};
mE=function(a,b){a.coldHashData=b;g.Sa("yt.gcf.config.coldHashData",a.coldHashData||null)};
bqa=function(a,b){a.configData=b;g.Sa("yt.gcf.config.coldConfigData",a.configData||null)};
lE=function(){return g.Ta("yt.gcf.config.hotConfigGroup")};
kE=function(){return g.Ta("yt.gcf.config.coldConfigGroup")};
gqa=function(){return"INNERTUBE_API_KEY"in PB&&"INNERTUBE_API_VERSION"in PB};
g.oE=function(){return{innertubeApiKey:g.Iv("INNERTUBE_API_KEY"),innertubeApiVersion:g.Iv("INNERTUBE_API_VERSION"),YH:g.Iv("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),eO:g.Iv("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),OW:g.Iv("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.Iv("INNERTUBE_CONTEXT_CLIENT_VERSION"),gO:g.Iv("INNERTUBE_CONTEXT_HL"),fO:g.Iv("INNERTUBE_CONTEXT_GL"),PW:g.Iv("INNERTUBE_HOST_OVERRIDE")||"",QW:!!g.Iv("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),hO:!!g.Iv("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.Iv("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.nqa=function(a){var b={client:{hl:a.gO,gl:a.fO,clientName:a.eO,clientVersion:a.innertubeContextClientVersion,configInfo:a.YH}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.Qa.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=Pma();""!==c&&(b.client.experimentsToken=c);c=Qma();0<c.length&&(b.request={internalExperimentFlags:c});hqa(a,void 0,b);iqa(void 0,b);jqa(void 0,b);kqa(a,void 0,b);lqa(void 0,b);g.SB("start_client_gcf")&&mqa(void 0,b);g.Iv("DELEGATED_SESSION_ID")&&
!g.SB("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.Iv("DELEGATED_SESSION_ID")});!g.SB("fill_delegate_context_in_gel_killswitch")&&(a=g.Iv("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=Object;c=a.assign;for(var d=b.client,e={},f=g.u(Object.entries($B(g.Iv("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.u(h.value);h=l.next().value;l=l.next().value;"cbrand"===h?e.deviceMake=l:"cmodel"===h?e.deviceModel=l:"cbr"===
h?e.browserName=l:"cbrver"===h?e.browserVersion=l:"cos"===h?e.osName=l:"cosver"===h?e.osVersion=l:"cplatform"===h&&(e.platform=l)}b.client=c.call(a,d,e);return b};
hqa=function(a,b,c){a=a.eO;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=g.sj(b,tx,96)||new tx;var d=zoa();d=Object.keys(oqa).indexOf(d);d=-1===d?null:d;null!==d&&O(c,3,d);tj(b,tx,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=zoa())};
iqa=function(a,b){var c=g.Ta("yt.embedded_player.embed_url");c&&(a?(b=g.sj(a,yx,7)||new yx,N(b,4,c),tj(a,yx,7,b)):b&&(b.thirdParty={embedUrl:c}))};
jqa=function(a,b){var c;if(g.SB("web_log_memory_total_kbytes")&&(null==(c=g.Qa.navigator)?0:c.deviceMemory)){var d;c=null==(d=g.Qa.navigator)?void 0:d.deviceMemory;a?Ij(a,95,1E6*c):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
kqa=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=g.sj(b,px,62))?d:new px;N(c,6,a.appInstallData);tj(b,px,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
lqa=function(a,b){var c=Joa();c&&(a?O(a,61,pqa[c]):b&&(b.client.connectionType=c));g.SB("web_log_effective_connection_type")&&(c=Loa())&&(a?O(a,94,qqa[c]):b&&(b.client.effectiveConnectionType=c))};
rqa=function(a,b,c){c=void 0===c?{}:c;var d={};g.Iv("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.Iv("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.Iv("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.yU||g.Iv("AUTHORIZATION");b||(a?b="Bearer "+g.Ta("gapi.auth.getToken")().access_token:(a=xoa().UC(pE),g.SB("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d};
mqa=function(a,b){var c=fqa();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(d&&e&&c)if(a){var f;b=null!=(f=g.sj(a,px,62))?f:new px;N(b,1,d);N(b,3,e);b.Er(c);tj(a,px,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.coldConfigData=d,b.client.configInfo.coldHashData=e,b.client.configInfo.hotHashData=c)}};
qE=function(a,b){this.version=a;this.args=b};
rE=function(a,b){this.topic=a;this.j=b};
sE=function(a,b){var c=sqa();c&&c.publish.call(c,a.toString(),a,b)};
uqa=function(a,b){var c=sqa();if(!c)return 0;var d=c.subscribe(a.toString(),function(e,f){var h=g.Ta("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(tE[d])try{if(f&&a instanceof rE&&a!=e)try{var l=a.j,m=f;if(!m.args||!m.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!l.Eu){var n=new l;l.Eu=n.version}var p=l.Eu}catch(q){}if(!p||m.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(l,
g.Jb(m.args))}catch(q){throw q.message="yt.pubsub2.Data.deserialize(): "+q.message,q;}}catch(q){throw q.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+q.message,q;}b.call(window,f)}catch(q){g.VB(q)}},tqa[a.toString()]?g.vD()?g.Tt.Ii(h):g.jC(h,0):h())});
tE[d]=!0;uE[a.toString()]||(uE[a.toString()]=[]);uE[a.toString()].push(d);return d};
wqa=function(a,b){var c=uqa(a,function(d){b.apply(void 0,arguments);vqa(c)});
return c};
vqa=function(a){var b=sqa();b&&("number"===typeof a&&(a=[a]),g.Yb(a,function(c){b.unsubscribeByKey(c);delete tE[c]}))};
sqa=function(){return g.Ta("ytPubsub2Pubsub2Instance")};
xqa=function(a,b,c){c=void 0===c?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&sE("meta_logging_csi_event",{timerName:a,wgb:b})};
yE=function(a,b,c,d){var e=(0,g.OD)(),f={startTime:e,ticks:{},infos:{}};if(vE)try{var h=yqa(b);if(null==h||!(h>zqa||h<Aqa)){var l=Lla(Bqa(b)),m=(0,g.OD)();f.ticks.gelc=m;wE++;g.SB("disable_compression_due_to_performance_degredation")&&m-e>=Cqa&&(xE++,g.SB("abandon_compression_after_N_slow_zips")?wE===g.TB("compression_disable_point")&&xE>Dqa&&(vE=!1):vE=!1);Eqa(f);c.headers||(c.headers={});c.headers["Content-Encoding"]="gzip";c.postBody=l;c.postParams=void 0}d(a,c)}catch(n){XB(n),d(a,c)}else d(a,
c)};
Fqa=function(a){var b=void 0===b?!1:b;var c=void 0===c?!1:c;var d=(0,g.OD)(),e={startTime:d,ticks:{},infos:{}},f=b?g.Ta("yt.logging.gzipForFetch",!1):!0;if(vE&&f){if(!a.body)return a;try{var h=c?a.body:"string"===typeof a.body?a.body:JSON.stringify(a.body);f=h;if(!c&&"string"===typeof h){var l=yqa(h);if(null!=l&&(l>zqa||l<Aqa))return a;f=Lla(Bqa(h),b?{level:1}:void 0);var m=(0,g.OD)();e.ticks.gelc=m;if(b){wE++;if((g.SB("disable_compression_due_to_performance_degredation")||g.SB("disable_compression_due_to_performance_degradation_lr"))&&
m-d>=Cqa)if(xE++,g.SB("abandon_compression_after_N_slow_zips")||g.SB("abandon_compression_after_N_slow_zips_lr")){b=xE/wE;var n=Dqa/g.TB("compression_disable_point");0<wE&&0===wE%g.TB("compression_disable_point")&&b>=n&&(vE=!1)}else vE=!1;Eqa(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return XB(p),a}}else return a};
yqa=function(a){try{return(new Blob(a.split(""))).size}catch(b){return XB(b),null}};
Eqa=function(a){g.SB("gel_compression_csi_killswitch")||!g.SB("log_gel_compression_latency")&&!g.SB("log_gel_compression_latency_lr")||xqa("gel_compression",a,{sampleRate:.1})};
AE=function(a){var b=this;this.uG=this.wg=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){};
this.wz=function(){};
this.now=Date.now;this.FC=!1;this.Nd={egb:function(p){b.If=p},
zgb:function(){b.iB()},
O3:function(){b.jM()},
wD:function(p){return g.H(function(q){return g.z(q,b.wD(p),0)})},
JJ:function(p,q){return b.JJ(p,q)},
MJ:function(){b.MJ()}};
var c;this.YZ=null!=(c=a.YZ)?c:100;var d;this.lZ=null!=(d=a.lZ)?d:1;var e;this.eZ=null!=(e=a.eZ)?e:2592E6;var f;this.XY=null!=(f=a.XY)?f:12E4;var h;this.kZ=null!=(h=a.kZ)?h:5E3;var l;this.If=null!=(l=a.If)?l:void 0;this.YG=!!a.YG;var m;this.CG=null!=(m=a.CG)?m:.1;var n;this.tJ=null!=(n=a.tJ)?n:10;a.handleError&&(this.handleError=a.handleError);a.wz&&(this.wz=a.wz);a.FC&&(this.FC=a.FC);a.uG&&(this.uG=a.uG);this.ob=a.ob;this.Jn=a.Jn;this.Dh=a.Dh;this.nh=a.nh;this.Dr=a.Dr;this.RP=a.RP;this.gP=a.gP;zE(this)&&
(!this.ob||this.ob("networkless_logging"))&&Gqa(this)};
Gqa=function(a){zE(a)&&!a.FC&&(a.wg=!0,a.YG&&Math.random()<=a.CG&&a.Dh.S3(a.If),a.MJ(),a.nh.Oh()&&a.iB(),a.nh.Ua(a.RP,a.iB.bind(a)),a.nh.Ua(a.gP,a.jM.bind(a)))};
Jqa=function(a,b){if(!zE(a))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var h,l,m,n;return g.H(function(p){switch(p.j){case 1:h=Hqa(f);(l=Iqa(f))&&a.ob&&a.ob("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.ob&&a.ob("nwl_consider_error_code")&&h||a.ob&&!a.ob("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.tJ)){p.Ma(2);break}if(!a.nh.RJ){p.Ma(3);break}return g.z(p,a.nh.RJ(),3);case 3:if(a.nh.Oh()){p.Ma(2);break}c(e,f);if(!a.ob||!a.ob("nwl_consider_error_code")||void 0===(null==(m=
b)?void 0:m.id)){p.Ma(6);break}return g.z(p,a.Dh.NQ(b.id,a.If,!1),6);case 6:return p.return();case 2:if(a.ob&&a.ob("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.tJ)return p.return();a.potentialEsfErrorCounter++;if(void 0===(null==(n=b)?void 0:n.id)){p.Ma(8);break}return b.sendCount<a.lZ?g.z(p,a.Dh.NQ(b.id,a.If,!0,l?!1:void 0),12):g.z(p,a.Dh.Vy(b.id,a.If),8);case 12:a.Jn.Ii(function(){a.nh.Oh()&&a.iB()},a.kZ);
case 8:c(e,f),g.ya(p)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var h;return g.H(function(l){if(1==l.j)return void 0===(null==(h=b)?void 0:h.id)?l.Ma(2):g.z(l,a.Dh.Vy(b.id,a.If),2);a.nh.qw&&a.ob&&a.ob("vss_network_hint")&&a.nh.qw(!0);d(e,f);g.ya(l)})};
return b};
BE=function(a,b){a.R_&&!a.nh.Oh()?a.R_(b):a.handleError(b)};
zE=function(a){return!!a.If||a.uG};
Hqa=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
Iqa=function(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)};
Kqa=function(){if(CE)return CE();var a={};CE=g.hE("LogsDatabaseV2",{ir:(a.LogsRequestsStore={Tm:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.PD(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.VD(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&QD(b,"sapisid");c(9)&&QD(b,"SWHealthLog")},
version:9});return CE()};
DE=function(a){return g.aE(Kqa(),a)};
Mqa=function(a,b){var c,d,e,f;return g.H(function(h){if(1==h.j)return c={startTime:(0,g.OD)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.z(h,DE(b),2);if(3!=h.j)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.Iv("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.z(h,g.TD(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.OD)();Lqa(c);return h.return(f)})};
Nqa=function(a,b){var c,d,e,f,h,l,m;return g.H(function(n){if(1==n.j)return c={startTime:(0,g.OD)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.z(n,DE(b),2);if(3!=n.j)return d=n.B,e=g.Iv("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.OD)()],l=IDBKeyRange.bound(f,h),m=void 0,g.z(n,g.RD(d,["LogsRequestsStore"],{mode:"readwrite",kc:!0},function(p){return g.YD(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(q){q.getValue()&&
(m=q.getValue(),"NEW"===a&&(m.status="QUEUED",q.update(m)))})}),3);
c.ticks.tc=(0,g.OD)();Lqa(c);return n.return(m)})};
Oqa=function(a,b){var c;return g.H(function(d){if(1==d.j)return g.z(d,DE(b),2);c=d.B;return d.return(g.RD(c,["LogsRequestsStore"],{mode:"readwrite",kc:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.SD(f,h).then(function(){return h})})}))})};
Pqa=function(a,b,c,d){c=void 0===c?!0:c;var e;return g.H(function(f){if(1==f.j)return g.z(f,DE(b),2);e=f.B;return f.return(g.RD(e,["LogsRequestsStore"],{mode:"readwrite",kc:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",c&&(m.sendCount+=1),void 0!==d&&(m.options.compress=d),g.SD(l,m).then(function(){return m})):g.LD.resolve(void 0)})}))})};
Qqa=function(a,b){var c;return g.H(function(d){if(1==d.j)return g.z(d,DE(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})};
Rqa=function(a){var b,c;return g.H(function(d){if(1==d.j)return g.z(d,DE(a),2);b=d.B;c=(0,g.OD)()-2592E6;return g.z(d,g.RD(b,["LogsRequestsStore"],{mode:"readwrite",kc:!0},function(e){return g.WD(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
Sqa=function(){g.H(function(a){return g.z(a,Kpa("LogsDatabaseV2"),0)})};
Lqa=function(a){g.SB("nwl_csi_killswitch")||xqa("networkless_performance",a,{sampleRate:1})};
Uqa=function(a){return g.aE(Tqa(),a)};
Vqa=function(a){var b,c;g.H(function(d){if(1==d.j)return g.z(d,Uqa(a),2);b=d.B;c=(0,g.OD)()-2592E6;return g.z(d,g.RD(b,["SWHealthLog"],{mode:"readwrite",kc:!0},function(e){return g.WD(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
Wqa=function(a){var b;return g.H(function(c){if(1==c.j)return g.z(c,Uqa(a),2);b=c.B;return g.z(c,b.clear("SWHealthLog"),0)})};
g.EE=function(a,b,c,d,e,f,h){e=void 0===e?"":e;f=void 0===f?!1:f;h=void 0===h?!1:h;if(a)if(c&&!g.BC()){if(a){a=g.ae(g.Dn(a));if(a===g.ie.toString()||a.startsWith("data"))a="";else{var l=void 0===l?{}:l;a instanceof g.je?l=a:(a=String(a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),l.Rfb&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;")),l.Qfb&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>")),l.Sfb&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>')),
l=g.le(a));a=g.ye(g.rm(g.ke(l).toString()))}g.dc(a)||(l=kf("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),Ne(l).body.appendChild(l))}}else if(e)ina(a,b,"POST",e,d);else if(g.Iv("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)ina(a,b,"GET","",d,void 0,f,h);else{b:{try{var m=new Bka({url:a});if(m.C&&m.B||m.D){var n=ul(g.wl(5,a));var p=!(!n||!n.endsWith("/aclk")||"1"!==Fl(a,"ri"));break b}}catch(q){}p=!1}p?Xqa(a)?(b&&b(),l=!0):l=!1:l=!1;l||Yqa(a,b)}};
Xqa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
Yqa=function(a,b){var c=new Image,d=""+Zqa++;$qa[d]=c;c.onload=c.onerror=function(){b&&$qa[d]&&b();delete $qa[d]};
c.src=a};
FE=function(){this.j=new Map;this.B=!1};
GE=function(){if(!FE.instance){var a=g.Ta("yt.networkRequestMonitor.instance")||new FE;g.Sa("yt.networkRequestMonitor.instance",a);FE.instance=a}return FE.instance};
HE=function(){ara||(ara=new xD("yt.offline"));return ara};
bra=function(a){if(g.SB("offline_error_handling")){var b=HE().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);HE().set("errors",b,2592E3,!0)}};
IE=function(){g.Gd.call(this);var a=this;this.B=!1;this.j=Gka();this.j.Ua("networkstatus-online",function(){if(a.B&&g.SB("offline_error_handling")){var b=HE().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.nD(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.VB(d)}HE().set("errors",{},2592E3,!0)}}})};
cra=function(){if(!IE.instance){var a=g.Ta("yt.networkStatusManager.instance")||new IE;g.Sa("yt.networkStatusManager.instance",a);IE.instance=a}return IE.instance};
g.JE=function(a){a=void 0===a?{}:a;g.Gd.call(this);var b=this;this.j=this.D=0;this.B=cra();var c=g.Ta("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){dra(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){dra(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
dra=function(a,b){a.rateLimit?a.j?(g.Tt.Lj(a.D),a.D=g.Tt.Ii(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.OD)())},a.rateLimit-((0,g.OD)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.OD)()):a.dispatchEvent(b)};
KE=function(){var a=AE.call;era||(era=new g.JE({zfb:!0,Zdb:!0}));a.call(AE,this,{Dh:{S3:Rqa,Vy:Qqa,TV:Nqa,y6:Oqa,NQ:Pqa,set:Mqa},nh:era,handleError:function(b,c,d){var e,f=null==d?void 0:null==(e=d.error)?void 0:e.code;if(400===f||415===f){var h;XB(new g.nD(b.message,c,null==d?void 0:null==(h=d.error)?void 0:h.code),void 0,void 0,void 0,!0)}else g.VB(b)},
wz:XB,Dr:fra,now:g.OD,R_:bra,Jn:g.uD(),RP:"publicytnetworkstatus-online",gP:"publicytnetworkstatus-offline",YG:!0,CG:.1,tJ:g.TB("potential_esf_error_limit",10),ob:g.SB,FC:!(g.pD()&&"www.youtube-nocookie.com"!==g.xl(document.location.toString()))});this.B=new g.Rm;g.SB("networkless_immediately_drop_all_requests")&&Sqa();Lpa("LogsDatabaseV2")};
LE=function(){var a=g.Ta("yt.networklessRequestController.instance");a||(a=new KE,g.Sa("yt.networklessRequestController.instance",a),g.SB("networkless_logging")&&g.fE().then(function(b){a.If=b;Gqa(a);a.B.resolve();a.YG&&Math.random()<=a.CG&&a.If&&Vqa(a.If);g.SB("networkless_immediately_drop_sw_health_store")&&gra(a)}));
return a};
gra=function(a){var b;g.H(function(c){if(!a.If)throw b=g.JD("clearSWHealthLogsDb"),b;return c.return(Wqa(a.If).catch(function(d){a.handleError(d)}))})};
fra=function(a,b,c){b=g.SB("web_fp_via_jspb")?Object.assign({},b):b;g.SB("use_cfr_monitor")&&hra(a,b);if(g.SB("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.OD)())));else{var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.OD)())}c&&0===Object.keys(b).length?g.EE(a):b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),yE(a,b.postBody,b,g.oC)):yE(a,JSON.stringify(b.postParams),
b,ona):g.oC(a,b)};
hra=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){GE().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){GE().requestComplete(a,!0);d(e,f)}};
g.ME=function(a){this.config_=null;a?this.config_=a:gqa()&&(this.config_=g.oE())};
g.NE=function(a,b,c,d){function e(p){try{if((void 0===p?0:p)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?LE().writeThenSend(n,f):LE().sendAndWrite(n,f);else if(d.compress)if(f.postBody){var q=f.postBody;"string"!==typeof q&&(q=JSON.stringify(f.postBody));yE(n,q,f,g.oC)}else yE(n,JSON.stringify(f.postParams),f,ona);else g.SB("web_all_payloads_via_jspb")?g.oC(n,f):ona(n,f)}catch(r){if("InvalidAccessError"==r.name)XB(Error("An extension is blocking network request."));
else throw r;}}
!g.Iv("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&XB(new g.nD("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.nD("innertube xhrclient not ready",b,c,d),g.VB(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)},
onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)},
onError:function(p,q){if(d.onError)d.onError(q)},
onFetchError:function(p){if(d.onError)d.onError(p)},
timeout:d.timeout,withCredentials:!0,compress:d.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.PW;h&&(c=h);var l=a.config_.QW||!1;h=rqa(l,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&l&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;l={alt:"json"};var m=a.config_.hO&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=cC(""+c+b,l);g.Ta("ytNetworklessLoggingInitializationOptions")&&
ira.isNwlInitialized?Dpa().then(function(p){e(p)}):e(!1)};
g.SE=function(a,b,c){var d=g.OE();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){PE[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.QE[a]?h():g.jC(h,0)}catch(l){g.VB(l)}},c);
PE[e]=!0;RE[a]||(RE[a]=[]);RE[a].push(e);return e}return 0};
jra=function(a){var b=g.SE("LOGGED_IN",function(c){a.apply(void 0,arguments);g.TE(b)})};
g.TE=function(a){var b=g.OE();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Yb(a,function(c){b.unsubscribeByKey(c);delete PE[c]}))};
g.UE=function(a,b){var c=g.OE();return c?c.publish.apply(c,arguments):!1};
lra=function(a){var b=g.OE();if(b)if(b.clear(a),a)kra(a);else for(var c in RE)kra(c)};
g.OE=function(){return g.Qa.ytPubsubPubsubInstance};
kra=function(a){RE[a]&&(a=RE[a],g.Yb(a,function(b){PE[b]&&delete PE[b]}),a.length=0)};
g.pra=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(mra,""),c=c.replace(nra,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else ora(a,b,c)};
ora=function(a,b,c){c=void 0===c?null:c;var d=qra(a),e=document.getElementById(d),f=e&&eoa(e),h=e&&!f;f?b&&b():(b&&(f=g.SE(d,b),b=""+g.ab(b),rra[b]=f),h||(e=sra(a,d,function(){eoa(e)||(doa(e,"loaded","true"),g.UE(d),g.jC(g.db(lra,d),0))},c)))};
sra=function(a,b,c,d){d=void 0===d?null:d;var e=g.lf("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.Hn(e,g.Jv(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
qra=function(a){var b=document.createElement("a");g.En(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Ke(a)};
WE=function(a){var b=g.Ja.apply(1,arguments);if(!VE(a)||b.some(function(d){return!VE(d)}))throw Error("Only objects may be merged.");
b=g.u(b);for(var c=b.next();!c.done;c=b.next())tra(a,c.value);return a};
tra=function(a,b){for(var c in b)if(VE(b[c])){if(c in a&&!VE(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});tra(a[c],b[c])}else if(ura(b[c])){if(c in a&&!ura(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);vra(a[c],b[c])}else a[c]=b[c];return a};
vra=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,VE(c)?a.push(tra({},c)):ura(c)?a.push(vra([],c)):a.push(c);return a};
VE=function(a){return"object"===typeof a&&!Array.isArray(a)};
ura=function(a){return"object"===typeof a&&Array.isArray(a)};
XE=function(a){g.J.call(this);this.B=a};
YE=function(a){XE.call(this,!0);this.j=a};
wra=function(a,b){g.J.call(this);var c=this;this.C=[];this.S=!1;this.B=0;this.G=this.K=this.D=!1;this.qa=null;var d=(0,g.cb)(a,b);this.j=new g.au(function(){return d(c.qa)},300);
g.L(this,this.j);this.ea=this.ma=Infinity};
xra=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};
yra=function(a){for(var b=Array(a),c=0;c<a;c++){for(var d=Date.now(),e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(256*Math.random())}if(ZE)for(c=1,d=0;d<ZE.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^ZE.charCodeAt(d),c++;return b};
$E=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(a),c=new Uint8Array(a);window.crypto.getRandomValues(c);for(var d=0;d<b.length;d++)b[d]=c[d];return b}catch(e){}return yra(a)};
g.aF=function(a){a=$E(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.zra=function(){return g.Yp($E(16),function(a){return(a&15).toString(16)}).join("")};
Ara=function(){var a={},b=void 0===a.U9?!1:a.U9;a=void 0===a.D4?!0:a.D4;if(null==g.Ta("_lact",window)){var c=parseInt(g.Iv("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Sa("_lact",c,window);g.Sa("_fact",c,window);-1==c&&bF();g.XC(document,"keydown",bF);g.XC(document,"keyup",bF);g.XC(document,"mousedown",bF);g.XC(document,"mouseup",bF);b?g.XC(window,"touchmove",function(){cF("touchmove",200)},{passive:!0}):(g.XC(window,"resize",function(){cF("resize",200)}),a&&g.XC(window,"scroll",function(){cF("scroll",
200)}));
new $C(function(){cF("mouse",100)});
g.XC(document,"touchstart",bF,{passive:!0});g.XC(document,"touchend",bF,{passive:!0})}};
cF=function(a,b){Bra[a]||(Bra[a]=!0,g.Tt.Ii(function(){bF();Bra[a]=!1},b))};
bF=function(a){var b;if(null!=(b=g.Ta("experiment.flags",window))&&b.enable_lact_reset_by_volume_buttons||!Cra.has(null==a?void 0:a.keyCode))null==g.Ta("_lact",window)&&(Ara(),g.Ta("_lact",window)),a=Date.now(),g.Sa("_lact",a,window),-1==g.Ta("_fact",window)&&g.Sa("_fact",a,window),(a=g.Ta("ytglobal.ytUtilActivityCallback_"))&&a()};
dF=function(){var a=g.Ta("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)};
eF=function(a){this.name=a};
fF=function(a){this.key=a};
Dra=function(){var a=this;this.j=new Map;this.B=new Map;this.Nd={Neb:function(){return new Map(a.j)}}};
Era=function(a,b){a.j.set(b.uQ,b)};
hF=function(a,b,c,d){d=void 0===d?!1:d;if(-1<c.indexOf(b))throw Error("Deps cycle for: "+b);if(a.B.has(b))return a.B.get(b);if(!a.j.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.j.get(b);c.push(b);if(void 0!==d.UR)var e=d.UR;else if(d.Caa)e=d[gF]?Fra(a,d[gF],c):[],e=d.Caa.apply(d,g.pa(e));else if(d.E_){e=d.E_;var f=e[gF]?Fra(a,e[gF],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.pa(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.qgb||a.B.set(b,e);
return e};
Fra=function(a,b,c){return b?b.map(function(d){return d instanceof fF?hF(a,d.key,c,!0):hF(a,d,c)}):[]};
iF=function(){Gra||(Gra=new Dra);return Gra};
Hra=function(){var a,b;return"h5vcc"in jF&&(null==(a=jF.h5vcc.traceEvent)?0:a.traceBegin)&&(null==(b=jF.h5vcc.traceEvent)?0:b.traceEnd)?1:"performance"in jF&&jF.performance.mark&&jF.performance.measure?2:0};
Ira=function(a){var b=Hra();switch(b){case 1:jF.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:jF.performance.mark(a+"-start");break;case 0:break;default:Fn(b,"unknown trace type")}};
Jra=function(a){var b=Hra();switch(b){case 1:jF.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";jF.performance.mark(c);jF.performance.measure(a,b,c);break;case 0:break;default:Fn(b,"unknown trace type")}};
Lra=function(a){var b=this;var c=void 0===c?0:c;var d=void 0===d?g.uD():d;this.C=c;this.scheduler=d;this.B=new g.Rm;this.j=a;for(a={Ov:0};a.Ov<this.j.length;a={DE:a.DE,Ov:a.Ov},a.Ov++)a.DE=this.j[a.Ov],c=function(e){return function(){e.DE.xO();b.j[e.Ov].wJ=!0;b.j.every(function(f){return!0===f.wJ})&&b.B.resolve()}}(a),d=rD(c,Kra(this,a.DE)),this.j[a.Ov]=Object.assign({},a.DE,{xO:c,
jobId:d})};
Mra=function(a){var b=Array.from(a.j.keys()).sort(function(d,e){return Kra(a,a.j[e])-Kra(a,a.j[d])});
b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=a.j[c.value],void 0===c.jobId||c.wJ||(a.scheduler.Lj(c.jobId),rD(c.xO,10))};
Kra=function(a,b){var c;return null!=(c=b.priority)?c:a.C};
lF=function(a){this.state=a;this.plugins=[];this.C=void 0;this.D={};kF&&Ira(this.state)};
Ora=function(a,b){var c=b.filter(function(e){return 10===Nra(a,e)}),d=b.filter(function(e){return 10!==Nra(a,e)});
return a.D.mgb?function(){var e=g.Ja.apply(0,arguments);return g.H(function(f){if(1==f.j)return g.z(f,a.u$.apply(a,[c].concat(g.pa(e))),2);a.yZ.apply(a,[d].concat(g.pa(e)));g.ya(f)})}:function(){var e=g.Ja.apply(0,arguments);
a.v$.apply(a,[c].concat(g.pa(e)));a.yZ.apply(a,[d].concat(g.pa(e)))}};
Nra=function(a,b){var c,d;return null!=(d=null!=(c=a.C)?c:b.priority)?d:0};
Pra=function(a){kF&&a&&Ira(a)};
mF=function(a){kF&&a&&Jra(a)};
Rra=function(a,b,c){Qra&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())};
nF=function(a){lF.call(this,void 0===a?"none":a);this.j=null;this.C=10;this.transitions=[{from:"none",to:"application_navigating",action:this.G},{from:"application_navigating",to:"none",action:this.K},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]};
Tra=function(){Sra||(Sra=new nF);return Sra};
sF=function(){var a=this;this.store={};this.j=0;this.B={};this.Nd={Ceb:function(){return a.j}}};
Vra=function(a,b){var c=Ura(b);if(a.B[c])return a.B[c];var d=Object.keys(a.store)||[];if(1>=d.length&&Ura(b)===d[0])return d;for(var e=[],f=0;f<d.length;f++){var h=d[f].split("/");if(tF(b.auth,h[0])){var l=b.isJspb;tF(void 0===l?"undefined":l?"true":"false",h[1])&&tF(b.cttAuthInfo,h[2])&&(l=b.tier,l=void 0===l?"undefined":JSON.stringify(l),tF(l,h[3])&&e.push(d[f]))}}return a.B[c]=e};
tF=function(a,b){return void 0===a||"undefined"===a?!0:a===b};
Ura=function(a){return[void 0===a.auth?"undefined":a.auth,void 0===a.isJspb?"undefined":a.isJspb,void 0===a.cttAuthInfo?"undefined":a.cttAuthInfo,void 0===a.tier?"undefined":a.tier].join("/")};
uF=function(){this.D=this.j=this.B=0;this.C=!1};
vF=function(){var a=g.Ta("yt.logging.ims");a||(a=new sF,g.Sa("yt.logging.ims",a));return a};
Xra=function(){var a=Sla();!wF&&"Worker"in window&&a&&(wF=new Worker(g.Yd(a),void 0),wF.addEventListener("message",function(b){b=b.data;if("serializedGelBatch"===b.op){var c=xF.get(b.key);c&&(Wra(b.serializedBatch,c.client,c.resolve,c.networklessOptions,c.isIsolated,c.useVSSEndpoint,c.dangerousLogToVisitorSession,c.requestsOutstanding),xF.delete(b.key))}}),wF.onerror=function(){xF.clear()})};
csa=function(a,b){if("log_event"===a.endpoint){yF(a);var c=zF(a),d=Yra(a.payload)||"",e=Zra(d),f=200;if(e){if(!1===e.enabled&&!g.SB("web_payload_policy_disabled_killswitch"))return;f=$ra(e.tier);if(400===f){asa(a,b);return}}AF[c]=!0;e={cttAuthInfo:c,isJspb:!1,tier:f};vF().storePayload(e,a.payload);bsa(b,c,!1,e,BF(d))}};
esa=function(a,b,c){if("log_event"===b.endpoint){yF(void 0,b);var d=zF(b,!0),e=Zra(a),f=200;if(e){if(!1===e.enabled&&!g.SB("web_payload_policy_disabled_killswitch"))return;f=$ra(e.tier);if(400===f){dsa(a,b,c);return}}AF[d]=!0;e={cttAuthInfo:d,isJspb:!0,tier:f};vF().storePayload(e,b.payload.toJSON());bsa(c,d,!0,e,BF(a))}};
bsa=function(a,b,c,d,e){function f(){fsa({writeThenSend:!0},g.SB("flush_only_full_queue")?b:void 0,c,d.tier)}
c=void 0===c?!1:c;e=void 0===e?!1:e;a&&(CF=new a);a=g.TB("tvhtml5_logging_max_batch_ads_fork")||g.TB("web_logging_max_batch")||100;var h=(0,g.OD)(),l=gsa(c,d.tier),m=l.D;e&&(l.C=!0);e=0;d&&(e=vF().getSequenceCount(d));1E3<=e?f():e>=a?hsa||(hsa=isa(function(){f();hsa=void 0},0)):10<=h-m&&(jsa(c,d.tier),l.D=h)};
asa=function(a,b){if("log_event"===a.endpoint){yF(a);var c=zF(a),d=new Map;d.set(c,[a.payload]);var e=Yra(a.payload)||"";b&&(CF=new b);return new g.Sf(function(f,h){CF&&CF.isReady()?ksa(d,CF,f,h,{bypassNetworkless:!0},!0,BF(e)):f()})}};
dsa=function(a,b,c){if("log_event"===b.endpoint){yF(void 0,b);var d=zF(b,!0),e=new Map;e.set(d,[b.payload.toJSON()]);c&&(CF=new c);return new g.Sf(function(f){CF&&CF.isReady()?lsa(e,CF,f,{bypassNetworkless:!0},!0,BF(a)):f()})}};
zF=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new OB;c.videoId?d.setVideoId(c.videoId):c.playlistId&&pj(d,2,DF,ti(c.playlistId));EF[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),FF[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
fsa=function(a,b,c,d){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.Sf(function(e,f){var h=gsa(c,d),l=h.C;h.C=!1;msa(h.B);msa(h.j);h.j=0;CF&&CF.isReady()?void 0===d&&g.SB("enable_web_tiered_gel")?nsa(e,f,a,b,c,300,l):nsa(e,f,a,b,c,d,l):(jsa(c,d),e())})};
nsa=function(a,b,c,d,e,f,h){var l=CF;c=void 0===c?{}:c;e=void 0===e?!1:e;f=void 0===f?200:f;h=void 0===h?!1:h;var m=new Map,n=new Map,p={isJspb:e,cttAuthInfo:d,tier:f},q={isJspb:e,cttAuthInfo:d};if(void 0!==d)e?(b=g.SB("enable_web_tiered_gel")?vF().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):vF().extractMatchingEntries(q),m.set(d,b),lsa(m,l,a,c,!1,h)):(m=g.SB("enable_web_tiered_gel")?vF().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):vF().extractMatchingEntries(q),n.set(d,m),
ksa(n,l,a,b,c,!1,h));else if(e){b=g.u(Object.keys(AF));for(d=b.next();!d.done;d=b.next())n=d.value,f=g.SB("enable_web_tiered_gel")?vF().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):vF().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),0<f.length&&m.set(n,f),(g.SB("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.SB("web_fp_via_jspb_and_json"))&&delete AF[n];lsa(m,l,a,c,!1,h)}else{m=g.u(Object.keys(AF));for(d=m.next();!d.done;d=m.next())p=d.value,q=g.SB("enable_web_tiered_gel")?vF().smartExtractMatchingEntries({keys:[{isJspb:!1,
cttAuthInfo:p,tier:f},{isJspb:!1,cttAuthInfo:p}],sizeLimit:1E3}):vF().extractMatchingEntries({isJspb:!1,cttAuthInfo:p}),0<q.length&&n.set(p,q),(g.SB("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.SB("web_fp_via_jspb_and_json"))&&delete AF[p];ksa(n,l,a,b,c,!1,h)}};
jsa=function(a,b){function c(){fsa({writeThenSend:!0},void 0,a,b)}
a=void 0===a?!1:a;b=void 0===b?200:b;var d=gsa(a,b),e=d===osa||d===psa?5E3:qsa;g.SB("web_gel_timeout_cap")&&!d.j&&(e=isa(function(){c()},e),d.j=e);
msa(d.B);e=g.Iv("LOGGING_BATCH_TIMEOUT",g.TB("web_gel_debounce_ms",1E4));g.SB("shorten_initial_gel_batch_timeout")&&GF&&(e=rsa);e=isa(function(){0<g.TB("gel_min_batch_size")?vF().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=ssa&&c():c()},e);
d.B=e};
ksa=function(a,b,c,d,e,f,h){e=void 0===e?{}:e;var l=Math.round((0,g.OD)()),m=a.size,n=tsa(h);a=g.u(a);var p=a.next();for(h={};!p.done;h={GI:h.GI,batchRequest:h.batchRequest,dangerousLogToVisitorSession:h.dangerousLogToVisitorSession,ZI:h.ZI,QI:h.QI},p=a.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.qd({context:g.nqa(b.config_||g.oE())});if(!g.Wa(q)&&!g.SB("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=FF[p])&&usa(h.batchRequest,
p,q);delete FF[p];h.dangerousLogToVisitorSession="visitorOnlyApprovedKey"===p;vsa(h.batchRequest,l,h.dangerousLogToVisitorSession);wsa(e);h.ZI=function(r){g.SB("start_client_gcf")&&g.Tt.Ii(function(){return g.H(function(t){return g.z(t,xsa(r),0)})});
m--;m||c()};
h.GI=0;h.QI=function(r){return function(){r.GI++;if(e.bypassNetworkless&&1===r.GI)try{g.NE(b,n,r.batchRequest,ysa({writeThenSend:!0},r.dangerousLogToVisitorSession,r.ZI,r.QI,f)),GF=!1}catch(t){g.VB(t),d()}m--;m||c()}}(h);
try{g.NE(b,n,h.batchRequest,ysa(e,h.dangerousLogToVisitorSession,h.ZI,h.QI,f)),GF=!1}catch(r){g.VB(r),d()}}};
lsa=function(a,b,c,d,e,f){d=void 0===d?{}:d;var h=Math.round((0,g.OD)()),l={value:a.size},m=new Map([].concat(g.pa(a)));m=g.u(m);for(var n=m.next();!n.done;n=m.next()){var p=g.u(n.value).next().value,q=a.get(p);n=new Kma;var r=b.config_||g.oE(),t=new Bx,v=new g.vx;N(v,1,r.gO);N(v,2,r.fO);O(v,16,r.OW);N(v,17,r.innertubeContextClientVersion);if(r.YH){var x=r.YH,B=new px;x.coldConfigData&&N(B,1,x.coldConfigData);x.appInstallData&&N(B,6,x.appInstallData);x.coldHashData&&N(B,3,x.coldHashData);x.hotHashData&&
B.Er(x.hotHashData);tj(v,px,62,B)}(x=g.Qa.devicePixelRatio)&&1!=x&&Kj(v,65,x);x=Pma();""!==x&&N(v,54,x);x=Qma();if(0<x.length){B=new xx;for(var G=0;G<x.length;G++){var F=new wx;N(F,1,x[G].key);pj(F,2,zsa,ti(x[G].value));wj(B,15,wx,F)}tj(t,xx,5,B)}hqa(r,v);iqa(t);jqa(v);kqa(r,v);lqa(v);g.SB("start_client_gcf")&&mqa(v);g.Iv("DELEGATED_SESSION_ID")&&!g.SB("pageid_as_header_web")&&(r=new Ax,N(r,3,g.Iv("DELEGATED_SESSION_ID")));!g.SB("fill_delegate_context_in_gel_killswitch")&&(r=g.Iv("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
(x=g.sj(t,Ax,3)||new Ax,r=N(x,18,r),tj(t,Ax,3,r));r=v;x=g.u(Object.entries($B(g.Iv("DEVICE",""))));for(B=x.next();!B.done;B=x.next())G=g.u(B.value),B=G.next().value,G=G.next().value,"cbrand"===B?N(r,12,G):"cmodel"===B?N(r,13,G):"cbr"===B?N(r,87,G):"cbrver"===B?N(r,88,G):"cos"===B?N(r,18,G):"cosver"===B?N(r,19,G):"cplatform"===B&&O(r,42,Aoa(G));t.Qw(v);tj(n,Bx,1,t);if(v=EF[p])a:{if(v.Se())t=1;else if(v.getPlaylistId())t=2;else break a;tj(n,OB,4,v);v=g.sj(n,Bx,1)||new Bx;r=g.sj(v,Ax,3)||new Ax;x=new zx;
x.setToken(p);O(x,1,t);wj(r,12,zx,x);tj(v,Ax,3,r)}delete EF[p];p="visitorOnlyApprovedKey"===p;Asa()||Ij(n,2,h);!p&&(t=g.Iv("EVENT_ID"))&&(v=Bsa(),r=new Jma,N(r,1,t),Ij(r,2,v),tj(n,Jma,5,r));wsa(d);if(g.SB("jspb_serialize_with_worker")&&wF){xF.set(Csa,{client:b,resolve:c,networklessOptions:d,isIsolated:e,useVSSEndpoint:f,dangerousLogToVisitorSession:p,requestsOutstanding:l});wF.postMessage({op:"gelBatchToSerialize",batchRequest:n.toJSON(),clientEvents:q,key:Csa});Csa++;break}if(q){t=[];for(v=0;v<q.length;v++)try{t.push(new NB(q[v]))}catch(I){g.VB(new g.nD("Transport failed to deserialize "+
String(q[v])))}q=t}else q=[];q=g.u(q);for(t=q.next();!t.done;t=q.next())wj(n,3,NB,t.value);q={startTime:(0,g.OD)(),ticks:{},infos:{}};n=n.Dj();q.ticks.geljspc=(0,g.OD)();g.SB("log_jspb_serialize_latency")&&xqa("gel_jspb_serialize",q,{sampleRate:.1});Wra(n,b,c,d,e,f,p,l)}};
Wra=function(a,b,c,d,e,f,h,l){d=void 0===d?{}:d;l=void 0===l?{value:0}:l;f=tsa(f);d=ysa(d,h,function(m){g.SB("start_client_gcf")&&g.Tt.Ii(function(){return g.H(function(n){return g.z(n,xsa(m),0)})});
l.value--;l.value||c()},function(){l.value--;
l.value||c()},e);
d.headers["Content-Type"]="application/json+protobuf";d.postBodyFormat="JSPB";d.postBody=a;g.NE(b,f,"",d);GF=!1};
wsa=function(a){g.SB("always_send_and_write")&&(a.writeThenSend=!1)};
ysa=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,Qdb:!!e,headers:{},postBodyFormat:"",postBody:"",compress:g.SB("compress_gel")||g.SB("compress_gel_lr")};Asa()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.OD)())));return a};
vsa=function(a,b,c){Asa()||(a.requestTimeMs=String(b));g.SB("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.Iv("EVENT_ID"))&&(c=Bsa(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
Bsa=function(){var a=g.Iv("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*Dsa/2));a++;a>Dsa&&(a=1);QB("BATCH_CLIENT_COUNTER",a);return a};
usa=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}]};
yF=function(a,b){if(g.Ta("yt.logging.transport.enableScrapingForTest")){var c=g.Ta("yt.logging.transport.scrapedPayloadsForTesting"),d=g.Ta("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.Ta("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));if(d&&1<=d.length)for(b=0;b<d.length;b++)if(a&&a.payload[d[b]]){var e=void 0;c.push((null==(e=a)?void 0:e.payload)[d[b]])}g.Sa("yt.logging.transport.scrapedPayloadsForTesting",c)}};
Asa=function(){return g.SB("use_request_time_ms_header")||g.SB("lr_use_request_time_ms_header")};
isa=function(a,b){return g.SB("transport_use_scheduler")?g.SB("logging_avoid_blocking_during_navigation")||g.SB("lr_logging_avoid_blocking_during_navigation")?g.sD(0,function(){if("none"===Tra().currentState)a();else{var c={};Tra().install((c.none={callback:a},c))}},b):rD(a,0,b):g.jC(a,b)};
msa=function(a){g.SB("transport_use_scheduler")?g.Tt.Lj(a):g.lC(a)};
xsa=function(a){var b,c,d,e,f,h,l,m,n,p;return g.H(function(q){return 1==q.j?(d=null==(b=a)?void 0:null==(c=b.responseContext)?void 0:c.globalConfigGroup,e=g.S(d,Esa),h=null==(f=d)?void 0:f.hotHashData,l=g.S(d,Fsa),n=null==(m=d)?void 0:m.coldHashData,(p=iF().resolve(new fF(nE)))?h?e?g.z(q,dqa(p,h,e),2):g.z(q,dqa(p,h),2):q.Ma(2):q.return()):n?l?g.z(q,eqa(p,n,l),0):g.z(q,eqa(p,n),0):q.Ma(0)})};
gsa=function(a,b){b=void 0===b?200:b;return a?300===b?osa:Gsa:300===b?psa:Hsa};
Zra=function(a){if(g.SB("enable_web_tiered_gel")){a=Isa[a||""];var b,c,d,e=null==iF().resolve(new fF(nE))?void 0:null==(b=$pa())?void 0:null==(c=b.loggingHotConfig)?void 0:null==(d=c.eventLoggingConfig)?void 0:d.payloadPolicies;if(e)for(b=0;b<e.length;b++)if(e[b].payloadNumber===a)return e[b]}};
Yra=function(a){a=Object.keys(a);a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,Isa[b])return b};
$ra=function(a){switch(a){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
BF=function(a){return"gelDebuggingEvent"===a};
tsa=function(a){return(void 0===a?0:a)&&g.SB("vss_through_gel_video_stats")?"video_stats":"log_event"};
IF=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.OD)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=dF();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};d.sequenceGroup&&!g.SB("web_gel_sequence_info_killswitch")&&(a=e.context,b=d.sequenceGroup,b={index:Jsa(b),groupKey:b},a.sequence=b,d.endOfSequence&&delete HF[d.sequenceGroup]);(d.sendIsolatedPayload?asa:csa)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},
c)};
Ksa=function(a){fsa(void 0,void 0,void 0===a?!1:a)};
Jsa=function(a){HF[a]=a in HF?HF[a]+1:0;return HF[a]};
Osa=function(a,b){Lsa||(Lsa=!0);Msa=a;JF=b;Nsa=!1};
g.zD=function(a,b,c){c=void 0===c?{}:c;var d=Psa;g.Iv("ytLoggingEventsDefaultDisabled",!1)&&Psa===g.ME&&(d=null);if(g.SB("web_all_payloads_via_jspb"))if(c.timestamp||(c.lact=dF(),c.timestamp=(0,g.OD)()),Msa&&JF){var e=Msa[a];if(e){e=e(Qsa(b));var f=e[1];(e[0]||!g.SB("jspb_translator_return_completion"))&&f&&JF[a]?(JF[a](f,c,d||void 0),Rsa()):(XB(new g.nD("Unable to call logFn for payload",a)),IF(a,b,d,c))}else{if(!g.SB("web_translate_player_logs"))XB(new g.nD("Unable to translate payload to JSPB",
a));else if(!1===Nsa){var h=!1;e=wqa("app_received_payload",function(){h=!0});
sE("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c});if(h)return;vqa(e);wqa("app_has_initialized",function(){sE("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c})})}IF(a,b,d,c)}}else Ssa.push({payloadName:a,
payload:b,options:c});else IF(a,b,d,c)};
Rsa=function(a){a=void 0===a?!1:a;var b=Ssa;Ssa=[];if(b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a?IF(c.payloadName,c.payload,Psa,c.options):g.zD(c.payloadName,c.payload,c.options)}};
Qsa=function(a){if(!g.SB("jspb_convert_payloads_to_lower_camel")||!g.Xa(a))return a;for(var b=Object.keys(a),c=0;c<b.length;c++){var d=Tsa(b[c]);b[c]!==d&&(a[d]=a[b[c]],delete a[b[c]]);if("object"===typeof a[d]&&!g.Wa(a[d]))a[d]=Qsa(a[d]);else if(g.Wa(a[d])){for(var e=a[d],f=[],h=0;h<e.length;h++)f.push(Qsa(e[h]));a[d]=f}}return a};
Tsa=function(a){return a.includes("_")?a.toLowerCase().replace(/([_][a-z])/g,function(b){return b.toUpperCase().replace("_","")}):a};
KF=function(a,b,c,d){d=void 0===d?{}:d;var e=Math.round(d.timestamp||(0,g.OD)());Ij(b,1,e<Number.MAX_SAFE_INTEGER?e:0);e=new Ima;if(d.lact)Ij(e,1,isFinite(d.lact)?d.lact:-1);else if(d.timestamp)Ij(e,1,-1);else{var f=dF();Ij(e,1,isFinite(f)?f:-1)}if(d.sequenceGroup&&!g.SB("web_gel_sequence_info_killswitch")){f=d.sequenceGroup;var h=Jsa(f),l=new MB;l.Rw(h);N(l,1,f);tj(e,MB,3,l);d.endOfSequence&&delete Usa[d.sequenceGroup]}tj(b,Ima,33,e);(d.sendIsolatedPayload?dsa:esa)(a,{endpoint:"log_event",payload:b,
cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},c)};
LF=function(a,b,c){c=void 0===c?{}:c;var d=!1;g.Iv("ytLoggingEventsDefaultDisabled",!1)&&(d=!0);KF(a,b,d?null:g.ME,c)};
Vsa=function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,vB,72,MF,a);c?KF("visualElementShown",d,c,b):LF("visualElementShown",d,b)};
Wsa=function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,uB,73,MF,a);c?KF("visualElementHidden",d,c,b):LF("visualElementHidden",d,b)};
Xsa=function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,tB,78,MF,a);c?KF("visualElementGestured",d,c,b):LF("visualElementGestured",d,b)};
Ysa=function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,wB,208,MF,a);c?KF("visualElementStateChanged",d,c,b):LF("visualElementStateChanged",d,b)};
Zsa=function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,rB,156,MF,a);c?KF("screenCreated",d,c,b):LF("screenCreated",d,b)};
$sa=function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,pB,202,MF,a);c?KF("playbackAssociated",d,c,b):LF("playbackAssociated",d,b)};
ata=function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,sB,215,MF,a);c?KF("visualElementAttached",d,c,b):LF("visualElementAttached",d,b)};
NF=function(a){this.j=a};
g.OF=function(a){return new NF({trackingParams:a})};
cta=function(a){var b=bta++;return new NF({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})};
dta=function(a){return g.Iv("client-screen-nonce-store",{})[void 0===a?0:a]};
eta=function(a,b){b=void 0===b?0:b;var c=g.Iv("client-screen-nonce-store");c||(c={},QB("client-screen-nonce-store",c));c[b]=a};
fta=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
gta=function(a){return g.Iv(fta(void 0===a?0:a))};
g.PF=function(a){return(a=gta(void 0===a?0:a))?new NF({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
hta=function(){var a=g.Iv("csn-to-ctt-auth-info");a||(a={},QB("csn-to-ctt-auth-info",a));return a};
ita=function(){return Object.values(g.Iv("client-screen-nonce-store",{})).filter(function(a){return void 0!==a})};
g.QF=function(a){a=dta(void 0===a?0:a);if(!a&&!g.Iv("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
kta=function(a){for(var b=g.u(Object.values(jta)),c=b.next();!c.done;c=b.next())if(g.QF(c.value)===a)return!0;return!1};
lta=function(a,b,c){var d=hta();(c=g.QF(c))&&delete d[c];b&&(d[a]=b)};
RF=function(a){return hta()[a]};
nta=function(a,b,c,d){c=void 0===c?0:c;if(a!==dta(c)||b!==g.Iv(fta(c)))if(lta(a,d,c),eta(a,c),QB(fta(c),b),b=function(){setTimeout(function(){if(a)if(g.SB("web_time_via_jspb")){var e=new ima;N(e,1,mta);N(e,2,a);var f=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(f,ima,111,MF,e);LF("foregroundHeartbeatScreenAssociated",f)}else g.zD("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:mta,clientScreenNonce:a})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
pta=function(a,b){var c=void 0===c?!0:c;var d=g.Iv("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.xl(window.location.href);e&&d.push(e);e=g.xl(a);if(g.Db(d,e)||!e&&cc(a,"/"))if(d=document.createElement("a"),g.En(d,a),a=d.href)if(a=yl(a),a=Tea(a))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.QF()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&ota(a,b,f)}else ota(a,b)};
ota=function(a,b,c){a=qta(a);b=b?g.Cl(b):"";c=c||5;Mna()&&g.xC(a,b,c)};
qta=function(a){if(g.SB("st_skip_debug_params")){for(var b=g.u(rta),c=b.next();!c.done;c=b.next())a=Gl(a,c.value);return"ST-"+Ke(a).toString(36)}return"ST-"+Ke(a).toString(36)};
sta=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
tta=function(){this.Gs=[];this.gr=[]};
xta=function(){if(!uta){var a=uta=new tta;a.gr.length=0;a.Gs.length=0;vta(a,wta)}return uta};
vta=function(a,b){b.gr&&a.gr.push.apply(a.gr,b.gr);b.Gs&&a.Gs.push.apply(a.Gs,b.Gs)};
zta=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=yta(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=yta(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=yta(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)};
yta=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};
Bta=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=Ata(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=a[e];var h=b;var l=c;h="string"!==typeof f||"clickTrackingParams"!==e&&"trackingParams"!==e?0:(f=zta(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?Ata(e+".ve",f,h,l):0;d+=h;d+=Ata(e,a[e],b,c);if(500<d)break}}else c[b]=SF(a),d+=c[b].length;else c[b]=SF(a),d+=c[b].length;return d};
Ata=function(a,b,c,d){c+="."+a;a=SF(b);d[c]=a;return c.length+a.length};
SF=function(a){try{return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}};
Qoa=function(a){g.TF(a)};
g.UF=function(a){g.TF(a,"WARNING")};
g.TF=function(a,b){var c=void 0===c?{}:c;c.name=g.Iv("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.Iv("INNERTUBE_CONTEXT_CLIENT_VERSION");b=void 0===b?"ERROR":b;var d=!1;b=void 0===b?"ERROR":b;d=void 0===d?!1:d;if(a){a.hasOwnProperty("level")&&a.level&&(b=a.level);if(g.SB("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));a.hasOwnProperty("args")&&e.push("Error args: "+JSON.stringify(a.args));
e.push("File name: "+a.fileName);e.push("Stacktrace: "+a.stack);window.console.log(e.join("\n"),a)}if(!(5<=Cta)){e=Dta;var f=Caa(a),h=f.message||"Unknown Error",l=f.name||"UnknownError",m=f.stack||a.B||"Not available";if(m.startsWith(l+": "+h)){var n=m.split("\n");n.shift();m=n.join("\n")}n=f.lineNumber||"Not available";f=f.fileName||"Not available";var p=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var q=0;q<a.args.length&&!(p=Bta(a.args[q],"params."+q,c,p),500<=p);q++);else if(a.hasOwnProperty("params")&&
a.params){var r=a.params;if("object"===typeof a.params)for(q in r){if(r[q]){var t="params."+q,v=SF(r[q]);c[t]=v;p+=t.length+v.length;if(500<p)break}}else c.params=SF(r)}if(e.length)for(q=0;q<e.length&&!(p=Bta(e[q],"params.context."+q,c,p),500<=p);q++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);c={message:h,name:l,lineNumber:n,fileName:f,stack:m,params:c,sampleWeight:1};e=Number(a.columnNumber);isNaN(e)||(c.lineNumber=c.lineNumber+":"+e);if("IGNORED"===a.level)a=
0;else a:{a=xta();e=g.u(a.gr);for(h=e.next();!h.done;h=e.next())if(h=h.value,c.message&&c.message.match(h.fA)){a=h.weight;break a}a=g.u(a.Gs);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.callback(c)){a=e.weight;break a}a=1}c.sampleWeight=a;a=g.u(Eta);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.mJ[c.name])for(l=g.u(e.mJ[c.name]),h=l.next();!h.done;h=l.next())if(q=h.value,h=c.message.match(q.Aj)){c.params["params.error.original"]=h[0];l=q.groups;q={};for(n=0;n<l.length;n++)q[l[n]]=h[n+1],c.params["params.error."+
l[n]]=h[n+1];c.message=e.SO(q);break}c.params||(c.params={});a=xta();c.params["params.errorServiceSignature"]="msg="+a.gr.length+"&cb="+a.Gs.length;c.params["params.serviceWorker"]="false";g.Qa.document&&g.Qa.document.querySelectorAll&&(c.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.Vd("sample").constructor!==g.Qd&&(c.params["params.fconst"]="true");window.yterr&&"function"===typeof window.yterr&&window.yterr(c);if(0!==c.sampleWeight&&!Fta.has(c.message)){if(d&&
g.SB("web_enable_error_204"))Gta(void 0===b?"ERROR":b,c);else{b=void 0===b?"ERROR":b;"ERROR"===b?(VF.ra("handleError",c),g.SB("record_app_crashed_web")&&0===Hta&&1===c.sampleWeight&&(Hta++,g.SB("errors_via_jspb")?(d=new Jz,d=O(d,1,1),g.SB("report_client_error_with_app_crash_ks")||(a=new Iz,e=new rz,h=new qz,l=new pz,l=N(l,1,c.message),h=tj(h,pz,3,l),e=tj(e,qz,5,h),a=tj(a,rz,9,e),tj(d,Iz,4,a)),a=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB,uj(a,Jz,20,MF,d),LF("appCrashed",a)):(d={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
g.SB("report_client_error_with_app_crash_ks")||(d.systemHealth={crashData:{clientError:{logMessage:{message:c.message}}}}),g.zD("appCrashed",d))),Ita++):"WARNING"===b&&VF.ra("handleWarning",c);if(g.SB("kevlar_gel_error_routing"))a:{d=b;if(g.SB("errors_via_jspb")){if(Jta())a=void 0;else{h=new gz;N(h,1,c.stack);c.fileName&&N(h,4,c.fileName);a=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):[];0!==a.length&&(1!==a.length||isNaN(Number(a[0]))?2!==a.length||isNaN(Number(a[0]))||isNaN(Number(a[1]))||
(Gj(h,2,Number(a[0])),Gj(h,3,Number(a[1]))):Gj(h,2,Number(a[0])));a=new pz;N(a,1,c.message);N(a,3,c.name);Gj(a,6,c.sampleWeight);"ERROR"===d?O(a,2,2):"WARNING"===d?O(a,2,1):O(a,2,0);e=new oz;Fj(e,1,!0);uj(e,gz,3,WF,h);h=new ez;N(h,3,window.location.href);l=g.Iv("FEXP_EXPERIMENTS",[]);for(q=0;q<l.length;q++)h.B(l[q]);l=g.Iv("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!RB("web_disable_gel_stp_ecatcher_killswitch")&&l)for(q=g.u(Object.keys(l)),n=q.next();!n.done;n=q.next())n=n.value,f=new Ny,N(f,1,
n),N(f,2,String(l[n])),h.j(f);if(l=c.params)for(q=g.u(Object.keys(l)),n=q.next();!n.done;n=q.next())n=n.value,f=new Ny,N(f,1,"client."+n),N(f,2,String(l[n])),h.j(f);q=g.Iv("SERVER_NAME");l=g.Iv("SERVER_VERSION");q&&l&&(n=new Ny,N(n,1,"server.name"),N(n,2,q),h.j(n),q=new Ny,N(q,1,"server.version"),N(q,2,l),h.j(q));l=new qz;tj(l,ez,1,h);tj(l,oz,2,e);tj(l,pz,3,a);a=l}if(!a)break a;e=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(e,qz,163,MF,a);LF("clientError",e)}else{a=void 0;a=void 0===a?
{}:a;if(Jta())a=void 0;else{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"===d?e.level="ERROR_LEVEL_ERROR":"WARNING"===d&&(e.level=
"ERROR_LEVEL_WARNNING");h={isObfuscated:!0,browserStackInfo:h};a.pageUrl=window.location.href;a.kvPairs=[];g.Iv("FEXP_EXPERIMENTS")&&(a.experimentIds=g.Iv("FEXP_EXPERIMENTS"));q=g.Iv("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!RB("web_disable_gel_stp_ecatcher_killswitch")&&q)for(n=g.u(Object.keys(q)),l=n.next();!l.done;l=n.next())l=l.value,a.kvPairs.push({key:l,value:String(q[l])});if(q=c.params)for(n=g.u(Object.keys(q)),l=n.next();!l.done;l=n.next())l=l.value,a.kvPairs.push({key:"client."+l,value:String(q[l])});
l=g.Iv("SERVER_NAME");q=g.Iv("SERVER_VERSION");l&&q&&(a.kvPairs.push({key:"server.name",value:l}),a.kvPairs.push({key:"server.version",value:q}));a={errorMetadata:a,stackTrace:h,logMessage:e}}if(!a)break a;g.zD("clientError",a)}if("ERROR"===d||g.SB("errors_flush_gel_always_killswitch"))b:{if(g.SB("web_fp_via_jspb")&&(Rsa(!0),Ksa(!0),!g.SB("web_fp_via_jspb_and_json")))break b;Ksa()}}g.SB("suppress_error_204_logging")||Gta(b,c)}try{Fta.add(c.message)}catch(x){}Cta++}}}};
Jta=function(){for(var a=g.u(Kta),b=a.next();!b.done;b=a.next())if(g.zC(b.value.toLowerCase()))return!0;return!1};
Gta=function(a,b){var c=b.params||{};a={urlParams:{a:"logerror",t:"jserror",type:b.name,msg:b.message.substr(0,250),line:b.lineNumber,level:a,"client.name":c.name},postParams:{url:g.Iv("PAGE_NAME",window.location.href),file:b.fileName},method:"POST"};c.version&&(a["client.version"]=c.version);if(a.postParams){b.stack&&(a.postParams.stack=b.stack);b=g.u(Object.keys(c));for(var d=b.next();!d.done;d=b.next())d=d.value,a.postParams["client."+d]=c[d];if(c=g.Iv("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(b=
g.u(Object.keys(c)),d=b.next();!d.done;d=b.next())d=d.value,a.postParams[d]=c[d];c=g.Iv("SERVER_NAME");b=g.Iv("SERVER_VERSION");c&&b&&(a.postParams["server.name"]=c,a.postParams["server.version"]=b)}g.oC(g.Iv("ECATCHER_REPORT_HOST","")+"/error_204",a)};
Lta=function(a){var b=g.Ja.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.pa(b))};
g.XF=function(a,b,c){void 0===c?delete a[b.name]:a[b.name]=c};
Mta=function(a){a=void 0===a||a?$E(16):yra(16);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
Nta=function(a){for(var b=0,c=0;c<a.length;c++)b=31*b+a.charCodeAt(c),c<a.length-1&&(b%=Math.pow(2,47));return b%1E5};
Ota=function(a){qE.call(this,1,arguments);this.csn=a};
Uta=function(a,b,c,d,e,f,h,l){function m(){g.UF(new g.nD("newScreen() parent element does not have a VE - rootVe",b))}
var n=Pta(),p=new NF({veType:b,youtubeData:f,jspbYoutubeData:void 0});f=YF({},n);e&&(f.cttAuthInfo=e);if(g.SB("il_via_jspb")){e=sma((new rB).j(n),p.getAsJspb());c&&c.visualElement?(p=new qma,c.clientScreenNonce&&N(p,2,c.clientScreenNonce),rma(p,c.visualElement.getAsJspb()),h&&O(p,4,Qta[h]),tj(e,qma,5,p)):c&&m();d&&N(e,3,d);if(g.SB("expectation_logging")&&l&&l.screenCreatedLoggingExpectations){c=new mx;l=g.u(l.screenCreatedLoggingExpectations.expectedParentScreens||[]);for(d=l.next();!d.done;d=l.next())d=
d.value,d.screenVeType&&(d=Vla(new kx,d.screenVeType),c.j(d));tj(e,mx,7,c)}Zsa(e,f,a)}else e={csn:n,pageVe:p.getAsJson()},g.SB("expectation_logging")&&l&&l.screenCreatedLoggingExpectations&&(e.screenCreatedLoggingExpectations=l.screenCreatedLoggingExpectations),c&&c.visualElement?(e.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},h&&(e.implicitGesture.gestureType=h)):c&&m(),d&&(e.cloneCsn=d),a?IF("screenCreated",e,a,f):g.zD("screenCreated",e,f);sE(Rta,new Ota(n));
ZF.clear();Sta.clear();Tta.clear();return n};
g.$F=function(a,b,c,d,e){g.Vta(a,b,c,[d],void 0===e?!1:e)};
g.Vta=function(a,b,c,d,e){e=void 0===e?!1:e;for(var f=YF({cttAuthInfo:RF(b)||void 0},b),h=g.u(d),l=h.next();!l.done;l=h.next()){l=l.value;var m=l.getAsJson();(g.jd(m)||!m.trackingParams&&!m.veType)&&g.UF(Error("Child VE logged with no data"));if(g.SB("no_client_ve_attach_unless_shown")){var n=aG(l,b);if(m.veType&&!Sta.has(n)&&!Tta.has(n)&&!e){ZF.set(n,[a,b,c,l]);return}l=aG(c,b);ZF.has(l)?Wta(c,b):Tta.set(l,!0)}}d=d.filter(function(q){q.csn!==b?(q.csn=b,q=!0):q=!1;return q});
if(g.SB("il_via_jspb")){var p=tma((new sB).j(b),c.getAsJspb());g.Yp(d,function(q){q=q.getAsJspb();wj(p,3,fA,q)});
"UNDEFINED_CSN"===b?bG("visualElementAttached",f,void 0,p):ata(p,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.Yp(d,function(q){return q.getAsJson()})},"UNDEFINED_CSN"===b?bG("visualElementAttached",f,c):a?IF("visualElementAttached",c,a,f):g.zD("visualElementAttached",c,f)};
Yta=function(a,b,c,d,e,f){Xta(c,b);d=YF({cttAuthInfo:RF(b)||void 0},b);g.SB("il_via_jspb")?(e=(new vB).j(b),c=c.getAsJspb(),c=tj(e,fA,2,c),c=O(c,4,1),f&&tj(c,qB,3,f),"UNDEFINED_CSN"===b?bG("visualElementShown",d,void 0,c):Vsa(c,d,a)):(f={csn:b,ve:c.getAsJson(),eventType:1},e&&(f.clientData=e),"UNDEFINED_CSN"===b?bG("visualElementShown",d,f):a?IF("visualElementShown",f,a,d):g.zD("visualElementShown",f,d))};
Zta=function(a,b,c,d){var e=(d=void 0===d?!1:d)?16:8,f=YF({cttAuthInfo:RF(b)||void 0,endOfSequence:d},b);g.SB("il_via_jspb")?(e=(new uB).j(b),c=c.getAsJspb(),c=tj(e,fA,2,c),O(c,4,d?16:8),"UNDEFINED_CSN"===b?bG("visualElementHidden",f,void 0,c):Wsa(c,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},"UNDEFINED_CSN"===b?bG("visualElementHidden",f,d):a?IF("visualElementHidden",d,a,f):g.zD("visualElementHidden",d,f))};
aua=function(a,b,c,d,e){$ta(a,b,c,d,e)};
$ta=function(a,b,c,d,e){var f=void 0;Xta(c,b);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var h=YF({cttAuthInfo:RF(b)||void 0},b);g.SB("il_via_jspb")?(d=(new tB).j(b),c=c.getAsJspb(),c=tj(d,fA,2,c),O(c,4,Qta[f]),e&&tj(c,qB,3,e),"UNDEFINED_CSN"===b?bG("visualElementGestured",h,void 0,c):Xsa(c,h,a)):(e={csn:b,ve:c.getAsJson(),gestureType:f},d&&(e.clientData=d),"UNDEFINED_CSN"===b?bG("visualElementGestured",h,e):a?IF("visualElementGestured",e,a,h):g.zD("visualElementGestured",e,h))};
bua=function(){var a;g.SB("enable_web_96_bit_csn")?a=Mta():g.SB("enable_web_96_bit_csn_no_crypto")?a=Mta(!1):a=g.mg(g.lg(Math.random()+""),3);return a};
bG=function(a,b,c,d){cG.push({payloadName:a,payload:c,Kt:d,options:b});cua||(cua=wqa(Rta,dua))};
dua=function(a){if(cG){for(var b=g.u(cG),c=b.next();!c.done;c=b.next())if(c=c.value,g.SB("il_via_jspb")&&c.Kt)switch(c.Kt.j(a.csn),c.payloadName){case "screenCreated":Zsa(c.Kt,c.options);break;case "visualElementAttached":ata(c.Kt,c.options);break;case "visualElementShown":Vsa(c.Kt,c.options);break;case "visualElementHidden":Wsa(c.Kt,c.options);break;case "visualElementGestured":Xsa(c.Kt,c.options);break;case "visualElementStateChanged":Ysa(c.Kt,c.options);break;default:g.UF(new g.nD("flushQueue unable to map payloadName to JSPB setter"))}else c.payload&&
(c.payload.csn=a.csn,g.zD(c.payloadName,c.payload,c.options));cG.length=0}cua=0};
aG=function(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b};
Xta=function(a,b){if(g.SB("no_client_ve_attach_unless_shown")){var c=aG(a,b);Sta.set(c,!0);Wta(a,b)}};
Wta=function(a,b){a=aG(a,b);ZF.has(a)&&(b=ZF.get(a)||[],g.$F(b[0],b[1],b[2],b[3],!0),ZF.delete(a))};
YF=function(a,b){g.SB("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a};
g.dG=function(a,b,c,d){g.WB(Yta)(void 0,a,b,c,d,void 0)};
g.eG=function(a,b){g.WB(function(){g.Yb(b,function(c){Xta(c,a);var d=YF({cttAuthInfo:RF(a)||void 0},a);if(g.SB("il_via_jspb")){var e=(new vB).j(a);c=c.getAsJspb();e=tj(e,fA,2,c);e=O(e,4,4);"UNDEFINED_CSN"===a?bG("visualElementShown",d,void 0,e):Vsa(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"===a?bG("visualElementShown",d,e):g.zD("visualElementShown",e,d)})})()};
g.fG=function(a,b){g.WB(function(){g.Yb(b,function(c){Zta(void 0,a,c)})})()};
g.gG=function(a,b,c){g.WB(aua)(void 0,a,b,c,void 0)};
hua=function(a){var b=g.S(a,hG);if(b)return b;if((b=g.S(a,eua))&&b.commands)return fua(b.commands);if((a=g.S(a,gua))&&a.commands)return fua(a.commands)};
fua=function(a){if(0!==a.length){var b={commands:[]};a=g.u(a);for(var c=a.next();!c.done;c=a.next())(c=hua(c.value))&&b.commands.push(c);a={};g.XF(a,g.iG,b);return a}};
kG=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.interactionLoggingClientData=e;this.j=f;this.id=jG(a)};
jG=function(a){var b=":"+(g.Yu.getInstance().j++).toString(36);return a+b};
g.lG=function(a){a=void 0===a?!1:a;g.J.call(this);this.Pi=new g.Iu(a);g.L(this,this.Pi)};
g.mG=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
nG=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
oG=function(){var a="ytp-id-"+iua.toString();iua++;return a};
g.pG=function(a){g.J.call(this);this.Ub={};this.Ud={};this.element=this.createElement(a)};
qG=function(a,b,c,d){if("{{"===d.substr(0,2))a.Ud[d]=[b,c];else return d};
jua=function(a,b){var c=[];if(!b)return c;b=g.u(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,null!=d){var e=d.nodeType;1===e||3===e?c.push(d):d&&"string"===typeof d.I?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.lf("BR"));c.push(g.mf(f))}):c.push(g.mf(d))}return c};
rG=function(a,b,c,d){if("child"===c){g.of(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.I?[d]:d;c=jua(a,e);c=g.u(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.yr(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.ae(g.Dn(a))),b.setAttribute(c,a))};
g.T=function(a){g.pG.call(this,a);this.Ib=!0;this.ma=!1;this.listeners=[]};
g.sG=function(a,b){b?a.show():a.hide()};
kua=function(a,b){a.element.setAttribute("aria-label",b)};
g.tG=function(a){g.T.call(this,a);this.Va=new g.lG;g.L(this,this.Va)};
uG=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.tG.call(this,b);this.api=a;this.macros={};this.componentType=c;this.K=this.S=null;this.Cb=h;this.layoutId=d;this.interactionLoggingClientData=e;this.qb=f;this.eb=null;this.QQ=new YE(this.element);g.L(this,this.QQ);this.xb=this.V(this.element,"click",this.onClick);this.Fa=[];this.Ca=new wra(this.onClick,this);g.L(this,this.Ca);this.Mb=!1;this.fb=this.qa=null};
vG=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.UF(Error("Got null or undefined adText object")),"";var c=g.Be(a.text);if(!a.isTemplated)return c;if(null==b)return g.UF(Error("Missing required parameters for a templated message")),c;a=g.u(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.u(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
lua=function(a){a=void 0===a?null:a;return null!=a&&(a=a.thumbnail,null!=a&&null!=a.thumbnails&&0!=a.thumbnails.length&&null!=a.thumbnails[0].url)?g.Be(a.thumbnails[0].url):""};
mua=function(a){a=void 0===a?null:a;return null!=a&&(a=a.thumbnail,null!=a&&null!=a.thumbnails&&0!=a.thumbnails.length&&null!=a.thumbnails[0].width&&null!=a.thumbnails[0].height)?new g.we(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.we(0,0)};
g.wG=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.u(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.xG=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=kf("B",null,h||l));d.italics&&(h=kf("I",null,h||l));d.strikethrough&&(h=kf("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=kf("A",null,h||l),g.En(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||kf("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:kf("SPAN",null,b)};
g.nua=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,Y:{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"}}]}};
oua=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Y:{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.yG=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},X:[{I:"path",Y:{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.zG=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},X:[{I:"path",Y:{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"}}]}};
pua=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},X:[{I:"path",Y:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{I:"path",Y:{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"}}]}};
qua=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},X:[{I:"path",Bc:!0,Y:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
rua=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},X:[{I:"path",Bc:!0,Y:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.AG=function(){return{I:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{I:"path",Y:{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"}}]}};
sua=function(){return{I:"svg",Y:{height:"100%",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Y:{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"}}]}};
tua=function(){return{I:"svg",Y:{viewBox:"0 0 24 24"},X:[{I:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",Y:{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"}}]}};
uua=function(){return{I:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},X:[{I:"path",Y:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",Y:{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"}}]}};
vua=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
g.wua=function(){return{I:"svg",Y:{viewBox:"0 0 24 24"},X:[{I:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",Y:{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"}}]}};
BG=function(){return{I:"svg",Y:{height:"100%",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Y:{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"}}]}};
xua=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},X:[{I:"path",Bc:!0,Y:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
yua=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{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.zua=function(){return{I:"svg",Y:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},X:[{I:"path",Y:{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"}}]}};
Aua=function(){return{I:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},X:[{I:"path",Y:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",Y:{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"}}]}};
Bua=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
Cua=function(){return{I:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{I:"path",T:"ytp-svg-fill",Y:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}};
Dua=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,Y:{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"}}]}};
Eua=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{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"}}]}};
Fua=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.Gua=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{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.Hua=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,Y:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
g.CG=function(){return{I:"svg",Y:{height:"100%",viewBox:"0 0 16 16",width:"100%"},X:[{I:"path",Y:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}};
Iua=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
Jua=function(){return{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{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"}}]}};
DG=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return Aua();case "CHECK_BOX":return{I:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{I:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",Y:{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{I:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{I:"path",Y:{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"}},{I:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.AG();case "INFO_OUTLINE":return uua();case "REMOVE_CIRCLE":return{I:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},X:[{I:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",Y:{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 yua();case "SKIP_NEXT_NEW":return{I:"svg",Y:{height:"100%",viewBox:"-6 -6 36 36",
width:"100%"},X:[{I:"path",Y:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return g.wua();case "DISLIKE":return tua();default:return g.UF(new g.nD("Unexpected icon:",a)),null}};
EG=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;f=void 0===f?"button":f;h=void 0===h?!1:h;e={I:"button",Na:["ytp-ad-button"].concat(e)};null!=l&&(e.Y={tabindex:l});uG.call(this,a,e,f,b,c,d);this.j=this.B=this.C=null;this.D=h;this.hide()};
Kua=function(a){var b=null;null!=a.j&&(b=[a.j.serviceEndpoint,a.j.navigationEndpoint].filter(function(c){return null!=c}),a.j.command&&(b=b.concat(a.j.command)));
return b||[]};
FG=function(){g.J.call(this);var a=this;this.j=new Map;this.B=roa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.EE(b[c])})};
Lua=function(){null==GG&&(GG=new FG);return GG};
HG=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=Mua(a))){b=kf("SPAN",null,b);break a}b=g.mf(a)}return b}var c=[];if(a.runs)for(var d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(Nua(e,b))}return 1==c.length?c[0]:kf("SPAN",null,c)};
Nua=function(a,b){var c=null,d=a.text;b&&(d=Mua(d)||d);a.bold&&(c=kf("B",null,c||d));a.italics&&(c=kf("I",null,c||d));a.strikethrough&&(c=kf("STRIKE",null,c||d));a.navigationEndpoint&&g.S(a.navigationEndpoint,g.IG)&&(b=g.S(a.navigationEndpoint,g.IG),c=kf("A",null,c||d),g.En(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),Lua().register(c,a),g.iu(c,"ytp-ad-has-logging-urls"));
return c||kf("SPAN",null,d)};
Mua=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(kf("BR")),b.push(a[c]);return b}return null};
JG=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;l=void 0===l?"ad-hover-text-button":l;uG.call(this,a,{I:"span",Na:["ytp-ad-hover-text-button"].concat(h)},l,b,c,d);this.button=this.B=null;this.G=f;this.D=e;this.hide()};
KG=function(a){return a&&a.thumbnails&&0!=(a.thumbnails||null).length&&a.thumbnails[0].url?g.Be(a.thumbnails[0].url):""};
LG=function(a,b,c,d,e,f){f=void 0===f?!1:f;uG.call(this,a,{I:"img",T:"ytp-ad-image"},"ad-image",b,c,d,void 0===e?null:e);this.j=f;this.hide()};
MG=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"confirm-dialog":f;uG.call(this,a,{I:"div",Na:["ytp-ad-confirm-dialog-background"],X:[{I:"div",T:"ytp-ad-confirm-dialog-container",X:[{I:"div",Na:["ytp-ad-confirm-dialog"].concat(e),Y:{role:"dialog",tabindex:"-1"},X:[{I:"div",T:"ytp-ad-confirm-dialog-title",Aa:"{{title}}"},{I:"div",T:"ytp-ad-confirm-dialog-messages"},{I:"div",T:"ytp-ad-confirm-dialog-confirm-container",X:[{I:"button",T:"ytp-ad-confirm-dialog-cancel-button",Aa:"{{cancelLabel}}"},
{I:"button",T:"ytp-ad-confirm-dialog-confirm-button",Aa:"{{confirmLabel}}"}]}]}]},{I:"button",Na:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],X:[{I:"span",T:"ytp-ad-button-icon",X:[g.AG()]}]}]},f,b,c,d);this.ea=this.Ha("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.Ha("ytp-ad-confirm-dialog-cancel-button");this.G=this.Ha("ytp-ad-confirm-dialog-confirm-button");this.va=this.Ha("ytp-ad-confirm-dialog-messages");this.C=null;this.j=new aD;g.L(this,this.j);
this.B=null;this.hide()};
Oua=function(a,b){if(b.title){var c=g.wG(b.title);a.updateValue("title",c)}if(b.dialogMessages){c=g.u(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=HG(d.value),a.va.appendChild(d)}b.cancelLabel&&(c=g.wG(b.cancelLabel),a.updateValue("cancelLabel",c),a.j.V(a.D,"click",function(e){return a.YK(e)}));
b.confirmLabel&&(b=g.wG(b.confirmLabel),a.updateValue("confirmLabel",b),a.j.V(a.G,"click",function(e){return a.oP(e)}));
a.j.V(a.ea,"click",function(e){return a.nP(e)})};
NG=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=jG("ytp-ad-toggle-button-input"),l={role:"button","aria-label":"{{tooltipText}}"};a.W().experiments.ob("fix_h5_toggle_button_a11y")&&(l.tabindex="0");a.W().experiments.ob("fix_toggle_button_role_for_ad_components")&&(l.role="checkbox");uG.call(this,a,{I:"div",Na:["ytp-ad-toggle-button"].concat(e),X:[{I:"label",T:"ytp-ad-toggle-button-label",Y:{"for":h},X:[{I:"span",T:"ytp-ad-toggle-button-icon",Y:l,X:[{I:"span",T:"ytp-ad-toggle-button-untoggled-icon",
Aa:"{{untoggledIconTemplateSpec}}"},{I:"span",T:"ytp-ad-toggle-button-toggled-icon",Aa:"{{toggledIconTemplateSpec}}"}]},{I:"input",T:"ytp-ad-toggle-button-input",Y:{id:h,type:"checkbox"}},{I:"span",T:"ytp-ad-toggle-button-text",Aa:"{{buttonText}}"},{I:"span",T:"ytp-ad-toggle-button-tooltip",Aa:"{{tooltipText}}"}]}]},f,b,c,d);this.D=this.Ha("ytp-ad-toggle-button");this.j=this.Ha("ytp-ad-toggle-button-input");this.Ha("ytp-ad-toggle-button-label");this.C=this.Ha("ytp-ad-toggle-button-icon");this.ea=
this.Ha("ytp-ad-toggle-button-untoggled-icon");this.G=this.Ha("ytp-ad-toggle-button-toggled-icon");this.Ja=this.Ha("ytp-ad-toggle-button-text");this.B=null;this.va=!1;this.hide()};
Pua=function(a){a.va&&(a.isToggled()?(g.Kr(a.ea,!1),g.Kr(a.G,!0),a.api.W().experiments.ob("fix_toggle_button_role_for_ad_components")&&a.C.setAttribute("aria-checked",!0)):(g.Kr(a.ea,!0),g.Kr(a.G,!1),a.api.W().experiments.ob("fix_toggle_button_role_for_ad_components")&&a.C.setAttribute("aria-checked",!1)))};
Qua=function(a,b){var c=null;a.B&&(c=(b?[a.B.defaultServiceEndpoint,a.B.defaultNavigationEndpoint]:[a.B.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
Rua=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
OG=function(a){aD.call(this);this.j=a;this.V(this.j,"onAdUxUpdate",this.K)};
Sua=function(a,b,c,d){uG.call(this,a,{I:"div",T:"ytp-ad-feedback-dialog-background",X:[{I:"div",T:"ytp-ad-feedback-dialog-container",X:[{I:"div",T:"ytp-ad-feedback-dialog-form",Y:{role:"dialog",tabindex:"-1"},X:[{I:"div",T:"ytp-ad-feedback-dialog-title",X:[{I:"span",Aa:"{{title}}"}]},{I:"span",T:"ytp-ad-info-dialog-feedback-options-title",Aa:"{{reasonsTitle}}"},{I:"div",T:"ytp-ad-info-dialog-feedback-options"},{I:"div",T:"ytp-ad-feedback-dialog-confirm-container",X:[{I:"button",T:"ytp-ad-feedback-dialog-cancel-button",
Aa:"{{cancelLabel}}"},{I:"button",T:"ytp-ad-feedback-dialog-confirm-button",Aa:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",b,c,d);this.D=[];this.j=null;this.G=this.Ha("ytp-ad-feedback-dialog-cancel-button");this.ea=this.Ha("ytp-ad-feedback-dialog-confirm-button");this.va=this.Ha("ytp-ad-info-dialog-feedback-options");this.Ja=this.Ha("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
Wua=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.j=new EG(a.api,a.layoutId,a.interactionLoggingClientData,a.qb,["ytp-ad-feedback-dialog-close-button"],"button"),g.L(a,a.j),a.j.init(jG("button"),c,a.macros),a.j.Ua("click",a.WX,a),a.j.Ga(a.element));b.title&&(c=g.wG(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.wG(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&Tua(a,b.reasons);b.cancelLabel&&(c=g.wG(b.cancelLabel),a.updateValue("cancelLabel",
c),g.XC(a.G,"click",function(){return a.WX()}));
b.confirmLabel&&(c=g.wG(b.confirmLabel),a.updateValue("confirmLabel",c),g.XC(a.ea,"click",function(){return Uua(a)}));
b.undoRenderer&&Vua(a,b.undoRenderer)};
Tua=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;null==c?g.UF(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?g.UF(Error("AdFeedbackReason.endpoint was not set.")):(c=new Xua(c,d),g.L(a,c),d=c.Gb(),a.va.appendChild(d),a.D.push(c)))}};
Vua=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new EG(a.api,a.layoutId,a.interactionLoggingClientData,a.qb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.L(a,a.B),a.B.init(jG("ad-feedback-undo-mute-button"),b,a.macros),a.B.Ua("click",a.y9,a),a.B.Ga(a.Ja)):g.UF(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
Uua=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(b=b[0].B,a.layoutId?a.qb.executeCommand(b,a.layoutId):g.TF(Error("Missing layoutId for ad feedback dialog.")),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.ra("a"),a.hide())};
Xua=function(a,b){this.B=b;this.j=new g.tG({I:"label",T:"ytp-ad-feedback-dialog-reason-label",X:[{I:"input",T:"ytp-ad-feedback-dialog-reason-input",Y:{type:"radio",name:"feedback-reason-group"}},{I:"span",T:"ytp-ad-feedback-dialog-reason-text",Aa:g.wG(a)}]});this.C=this.j.Ha("ytp-ad-feedback-dialog-reason-input")};
PG=function(a,b,c,d){MG.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
Yua=function(a,b,c,d,e){uG.call(this,a,{I:"div",T:"ytp-ad-info-dialog-background",X:[{I:"div",T:"ytp-ad-info-dialog-container",X:[{I:"div",T:"ytp-ad-info-dialog-form",Y:{role:"dialog",tabindex:"-1"},X:[{I:"div",T:"ytp-ad-info-dialog-title",Aa:"{{title}}"},{I:"ul",T:"ytp-ad-info-dialog-ad-reasons"},{I:"div",T:"ytp-ad-info-dialog-message"},{I:"div",T:"ytp-ad-info-dialog-mute-container"},{I:"div",T:"ytp-ad-info-dialog-confirm-container",X:[{I:"button",T:"ytp-ad-info-dialog-confirm-button",Aa:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",b,c,d);this.j=this.B=null;this.ea=this.Ha("ytp-ad-info-dialog-confirm-button");this.kb=this.Ha("ytp-ad-info-dialog-mute-container");this.Ya=this.Ha("ytp-ad-info-dialog-message");this.Oa=this.Ha("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.Ja=e;this.G=null;this.Pa=!1;this.va=null;this.hide()};
Zua=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new Sua(a.api,a.layoutId,a.interactionLoggingClientData,a.qb),g.L(a,a.B),a.B.init(jG("ad-feedback-dialog"),b,a.macros),a.B.Ga(a.Ja),a.B.subscribe("a",function(){return a.ra("c")})};
$ua=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new PG(a.api,a.layoutId,a.interactionLoggingClientData,a.qb),g.L(a,a.D),a.D.init(jG("ad-mute-confirm-dialog"),b,a.macros),a.D.Ga(a.Ja),a.D.subscribe("b",function(){return a.ra("c")})};
ava=function(a){a.j&&a.j.Ua("click",a.eT,a);g.XC(a.ea,"click",function(){return a.eT()})};
QG=function(a,b,c,d,e,f){JG.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.j=null;this.C=e;this.hide()};
cva=function(a,b,c){b=b.dialog&&g.S(b.dialog,bva)||null;null==b?g.TF(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.j=new Yua(a.api,a.layoutId,a.interactionLoggingClientData,a.qb,a.C),g.L(a,a.j),a.j.init(jG("ad-info-dialog"),b,c),a.j.Ga(a.C),a.j.subscribe("d",function(){return a.ra("f")}),a.j.subscribe("c",function(){return a.ra("e")}))};
fva=function(a,b,c){null==a.button?g.TF(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.iu(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&g.S(b.serviceEndpoint,dva)||null)?(cva(a,b,c),a.button.Ua("click",function(){a.j&&!a.j.Ib&&(a.j.show(),eva(a))})):a.button.Ua("click",function(){return eva(a)}))};
eva=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
RG=function(a,b,c,d,e,f){uG.call(this,a,{I:"div",T:"ytp-ad-text"},void 0===f?"ad-text":f,b,c,d,void 0===e?null:e);this.j=null;this.hide()};
gva=function(a,b){b&&g.Bf(a.element,vG(a.j,b))};
SG=function(a,b,c,d,e,f,h){uG.call(this,a,b,c,d,e,f);this.j=h;g.L(this,this.j);this.Pa=this.ea=-1};
TG=function(a){a.j&&-1===a.ea&&(a.ea=a.j.subscribe("h",a.Vn,a),a.Pa=a.j.subscribe("g",a.Mp,a),a.Vn())};
UG=function(a){null!=a.j&&-1!==a.ea&&(a.j.Wh(a.ea),a.j.Wh(a.Pa),a.Pa=-1,a.ea=-1)};
g.VG=function(a,b,c,d,e,f){g.J.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=void 0===d?b:d;this.j=f;this.onHidden=e;this.delay=new g.au(this.cG,0,this);g.L(this,this.delay)};
WG=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
XG=function(a,b,c,d,e,f){SG.call(this,a,{I:"div",T:"ytp-ad-preview-slot"},"ad-preview",b,c,d,e);var h=this;this.kb=-1;this.D=this.api.W().experiments.ob("enable_modern_skip_button_on_web");this.B=new g.tG({I:"span",T:"ytp-ad-preview-container"});this.D&&this.B.element.classList.add("ytp-ad-preview-container-detached");g.L(this,this.B);this.C=this.D?new RG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,"ytp-ad-preview-text-modern"):new RG(this.api,this.layoutId,this.interactionLoggingClientData,
this.qb,"ytp-ad-preview-text");g.L(this,this.C);this.C.Ga(this.B.element);this.va=this.D?new g.tG({I:"span",T:"ytp-ad-preview-image-modern"}):new g.tG({I:"span",T:"ytp-ad-preview-image"});g.L(this,this.va);this.G=new LG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb);g.L(this,this.G);this.G.Ga(this.va.element);this.va.Ga(this.B.element);this.B.Ga(this.element);this.Ja=new g.VG(this.B,400,!1,100,function(){return h.hide()});
g.L(this,this.Ja);this.Oa=0;this.Ya=!1;this.rb=f;this.hide()};
hva=function(a){a.Ja.show(100);a.show()};
iva=function(a,b,c,d,e,f){SG.call(this,a,{I:"div",Na:["ytp-flyout-cta","ytp-flyout-cta-inactive"],X:[{I:"div",T:"ytp-flyout-cta-icon-container"},{I:"div",T:"ytp-flyout-cta-body",X:[{I:"div",T:"ytp-flyout-cta-text-container",X:[{I:"div",T:"ytp-flyout-cta-headline-container"},{I:"div",T:"ytp-flyout-cta-description-container"}]},{I:"div",T:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",b,c,d,e);this.C=new LG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,"ytp-flyout-cta-icon");
g.L(this,this.C);this.C.Ga(this.Ha("ytp-flyout-cta-icon-container"));this.api.W().N("web_rounded_thumbnails")&&this.C.element.classList.add("ytp-flyout-cta-icon-rounded");this.G=new RG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,"ytp-flyout-cta-headline");g.L(this,this.G);this.G.Ga(this.Ha("ytp-flyout-cta-headline-container"));this.D=new RG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,"ytp-flyout-cta-description");g.L(this,this.D);this.D.Ga(this.Ha("ytp-flyout-cta-description-container"));
a=["ytp-flyout-cta-action-button"];this.api.W().N("web_modern_buttons")&&a.push("ytp-flyout-cta-action-button-rounded");this.B=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,a);g.L(this,this.B);this.B.Ga(this.Ha("ytp-flyout-cta-action-button-container"));this.B.element.setAttribute("tabIndex","-1");Vt(this.B.element);this.va=null;this.Ja=0;this.Oa=f;this.hide()};
jva=function(a,b,c,d,e){uG.call(this,a,{I:"div",T:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",b,c,d,void 0===e?null:e);var f=this;this.j=null;this.C=new NG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,["ytp-ad-instream-user-sentiment-like-button"]);g.L(this,this.C);this.C.Ga(this.element);this.B=new NG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.L(this,this.B);this.B.Ga(this.element);
this.D=new g.VG(this,400,!1,500,function(){return f.hide()});
g.L(this,this.D);this.hide()};
YG=function(a,b,c,d,e,f){e=void 0===e?0:e;f=void 0===f?!1:f;g.J.call(this);this.B=a;this.C=!1;this.ea=d;this.qa=f;this.K=!1;this.j=null;0<b&&(this.j=new g.au(this.zU,b,this),g.L(this,this.j));this.G=new g.au(this.zU,c,this);g.L(this,this.G);this.ma=Pka(this.B,e,1,d);g.L(this,this.ma);this.S=Pka(this.B,0,d,1);g.L(this,this.S);this.D=new aD;g.L(this,this.D)};
kva=function(a){switch(a){case "b.f_":return 0;case "j.s_":return 2;case "r.s_":return 4;case "e.h_":return 6;case "i.s_":return 8;default:Fn(a,"Unknown method type")}};
lva=function(a){switch(a){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 1;case 5:return 1;default:Fn(a,"unknown result type")}};
ova=function(a){var b,c;g.H(function(d){b={i_:"vr",metadata:a};c=["b.f_","j.s_","r.s_","e.h_"];c.forEach(function(e){var f;return g.H(function(h){if(1==h.j)return g.z(h,mva[e](),2);f=h.B;nva(f,e,b);g.ya(h)})});
g.ya(d)})};
qva=function(a){nva(pva(),"i.s_",{i_:"sk",metadata:a})};
rva=function(){return g.H(function(a){return 1==a.j?g.z(a,Zna().then(function(){return 2},function(b){if("Biscotti id is disabled"===b.message)return 4;
g.UF("Failed fetching bid");return 3}),2):a.return(a.B)})};
tva=function(){var a=JSON.parse(JSON.stringify(sva));return a.adPlacements&&a.playerAds&&a.playerResponse&&a.playerResponse.adPlacements&&a.playerResponse.playerAds?2:3};
uva=function(){var a;return g.H(function(b){if(1==b.j)return g.za(b,2),g.z(b,(new Response('{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true}}',{status:200})).json(),4);if(2!=b.j)return a=b.B,a.adPlacements&&a.playerAds&&a.playerResponse&&a.playerResponse.adPlacements&&a.playerResponse.playerAds?b.return(2):b.return(3);g.Ca(b);return b.return(1)})};
vva=function(){try{var a=document.createElement("ytd-display-ad-renderer");a.classList.add("ytd-companion-slot-renderer");a.setAttribute("id","masthead-ad");document.body.appendChild(a);var b="none"===getComputedStyle(a).display?3:2;document.body.removeChild(a);return b}catch(c){return 1}};
pva=function(){try{var a=document.querySelector(".ytp-ad-skip-button-slot");return a?"none"===getComputedStyle(a).display?3:2:5}catch(b){return 1}};
nva=function(a,b,c){var d={detected:3===a,source:b+(c.i_+("b.f_"===b&&4===a?"_known.failure":"r.s_"===b&&1===a?"_failure":"i.s_"===b&&5===a?"_skip_not_found":""))};c.metadata&&(d.contentCpn=c.metadata.contentCpn);g.zD("biscottiBasedDetection",d);a=lva(a);b=kva(b);QB("CATSTAT",Number(g.Iv("CATSTAT",0))&~(3<<b)|a<<b)};
xva=function(a){wva=void 0===a?!1:a};
ZG=function(a,b,c,d,e){d=void 0===d?{}:d;wva&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.nD(a);if(a.args)for(var f=g.u(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign({},h,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.slotType:"");c&&(d.layout=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.UF(a)}};
g.$G=function(a,b){this.state=a;this.pA=b};
bH=function(a,b){return g.aH(a.state,b)&&!g.aH(a.pA,b)?1:!g.aH(a.state,b)&&g.aH(a.pA,b)?-1:0};
g.cH=function(a,b){return 0<bH(a,b)};
dH=function(a,b,c,d,e,f){SG.call(this,a,{I:"div",T:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.va=null;this.Ja=!1;this.Ya=f;this.G=this.api.W().experiments.ob("enable_modern_skip_button_on_web");this.kb=!1;this.D=new g.tG({I:"span",Na:["ytp-ad-skip-button-container"]});this.G&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");g.L(this,this.D);this.D.Ga(this.element);this.B=this.C=null;this.rb=new g.VG(this.D,500,!1,100,function(){return h.hide()});
g.L(this,this.rb);this.Oa=new YG(this.D.element,15E3,5E3,.5,.5,this.G);g.L(this,this.Oa);this.hide()};
zva=function(a){a=a.va&&a.va.adRendererCommands;return(a&&a.clickCommand&&g.S(a.clickCommand,g.iG)&&g.S(a.clickCommand,g.iG).commands||[]).some(function(b){return b.adLifecycleCommand?yva(b.adLifecycleCommand):!1})};
yva=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
eH=function(a,b,c,d,e,f){SG.call(this,a,{I:"div",T:"ytp-ad-skip-ad-slot"},"skip-ad",b,c,d,e);this.va=f;this.D=!1;this.G=0;this.C=this.B=null;this.hide()};
Ava=function(a,b){a.D||(a.D=!0,a.B&&(b?a.B.Ja.hide():a.B.hide()),b?(a=a.C,a.rb.show(),a.show()):a.C.show())};
Bva=function(a,b,c,d){EG.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
fH=function(a,b,c,d,e){e=void 0===e?!1:e;uG.call(this,a,{I:"span",T:"ytp-ad-simple-ad-badge"},"simple-ad-badge",b,c,d);this.j=e;this.hide()};
gH=function(a,b,c,d,e){e=void 0===e?!1:e;kG.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.XJ=e};
hH=function(a,b){g.lG.call(this);this.api=a;this.durationMs=b;this.j=null;this.Hd=new aD(this);g.L(this,this.Hd);this.B=Cva;this.Hd.V(this.api,"presentingplayerstatechange",this.Xd);this.j=this.Hd.V(this.api,"onAdPlaybackProgress",this.Ic)};
iH=function(a){g.lG.call(this);this.j=!1;this.aj=0;this.Hd=new aD(this);g.L(this,this.Hd);this.durationMs=a;this.timer=new g.gg(100);g.L(this,this.timer);this.Hd.V(this.timer,"tick",this.Ic);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.jH=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){b="";0<d&&(b+=" "+d+" Days");if(0<d||0<e)b+=" "+e+" Hours";b+=" "+f+" Minutes";b+=" "+c+" Seconds";d=b.trim()}else{b="";0<d&&(b+=d+":",10>e&&(b+="0"));if(0<d||0<e)b+=e+":",10>f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d};
g.kH=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)};
lH=function(a,b,c,d,e,f){SG.call(this,a,{I:"span",T:"ytp-ad-duration-remaining"},"ad-duration-remaining",b,c,d,e);this.videoAdDurationSeconds=f;this.B=null;this.hide()};
Dva=function(a,b,c,d){RG.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
mH=function(a,b){this.B=a;this.j=b};
Eva=function(a,b){return a.B+b*(a.j-a.B)};
nH=function(a,b,c){return a.j-a.B?g.ne((b-a.B)/(a.j-a.B),0,1):null!=c?c:Infinity};
oH=function(a,b){g.tG.call(this,{I:"div",T:"ytp-ad-persistent-progress-bar-container",X:[{I:"div",T:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.B=b;g.L(this,this.B);this.Tc=this.Ha("ytp-ad-persistent-progress-bar");this.j=-1;this.V(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
pH=function(a,b,c,d,e,f){uG.call(this,a,{I:"div",T:"ytp-ad-player-overlay",X:[{I:"div",T:"ytp-ad-player-overlay-flyout-cta"},{I:"div",T:"ytp-ad-player-overlay-instream-info"},{I:"div",T:"ytp-ad-player-overlay-skip-or-preview"},{I:"div",T:"ytp-ad-player-overlay-progress-bar"},{I:"div",T:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",b,c,d);this.ea=f;this.D=this.Ha("ytp-ad-player-overlay-flyout-cta");this.api.W().N("web_rounded_thumbnails")&&this.D.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
this.B=this.Ha("ytp-ad-player-overlay-instream-info");this.C=null;Fva(this)&&(a=kf("div"),g.iu(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.B,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new Dva(this.api,this.layoutId,this.interactionLoggingClientData,this.qb),c.Ga(a),c.init(jG("ad-title"),{text:b.title},this.macros),g.L(this,c)),this.C=a);this.G=this.Ha("ytp-ad-player-overlay-skip-or-preview");this.Ja=this.Ha("ytp-ad-player-overlay-progress-bar");
this.va=this.Ha("ytp-ad-player-overlay-instream-user-sentiment");this.j=e;g.L(this,this.j);this.hide()};
Fva=function(a){a=a.api.W();return g.qH(a)&&a.B};
Gva=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.Dl("/sharing_services",a);g.EE(d)};
g.rH=function(a){a&=16777215;var b=[(a&16711680)>>16,(a&65280)>>8,a&255];a=b[0];var c=b[1];b=b[2];a=Number(a);c=Number(c);b=Number(b);if(a!=(a&255)||c!=(c&255)||b!=(b&255))throw Error('"('+a+","+c+","+b+'") is not a valid RGB color');c=a<<16|c<<8|b;return 16>a?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)};
sH=function(a){this.j=new Lu(a)};
Hva=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return g.SB("copy_login_info_to_st_cookie")&&("WEB"===g.Iv("INNERTUBE_CLIENT_NAME")||"WEB_CREATOR"===g.Iv("INNERTUBE_CLIENT_NAME"))&&a};
tH=function(a){if(g.Iv("LOGGED_IN",!0)&&Hva()){var b=g.Iv("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.xl(window.location.href);c&&b.push(c);c=g.xl(a);g.Db(b,c)||!c&&cc(a,"/")?(b=yl(a),(b=Tea(b))?(b=qta(b),b=(b=g.yC(b)||null)?$B(b):{}):b=null):b=null;null==b&&(b={});c=b;var d=void 0;Hva()?(d||(d=g.Iv("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&pta(a,b)}};
g.Iva=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;a=g.Dl(a,b);tH(a);c=g.Dn(a+c);d=d.location;c=An(c);void 0!==c&&(d.href=c)};
g.Jva=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.Iv("EVENT_ID");d&&(b.ei||(b.ei=d));b&&pta(a,b);c||(tH(a),(window.ytspf||{}).enabled?spf.navigate(a):g.Iva(a))};
g.uH=function(a,b,c,d){c&&pta(a,c);c=g.Dn(a);c=g.ae(c);a!=c&&XB(Error("Unsafe window.open URL: "+a));a=c;b=b||Ke(a).toString(36);try{var e;if("2"===(null==(e=$B(a))?void 0:e.ase)){a=Kva(a);tH(a);window.open(a,b,"attributionsrc");return}}catch(h){g.VB(h)}if(d){a=Kva(a);try{var f=encodeURIComponent(d);tH(a);window.open(a,b,"attributionsrc="+f);return}catch(h){g.VB(h)}}tH(a);window.open(a,b)};
Kva=function(a){if("www.googleadservices.com"!==g.xl(a))return a;var b,c;return"function"===typeof(null==(b=document.featurePolicy)?void 0:b.features)&&(null==(c=document.featurePolicy)?0:c.features().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"};
Mva=function(a){Lva=a&&a.data};
Ova=function(a){Nva=a&&a.data};
Qva=function(a){Pva=a&&a.data};
Sva=function(){Rva=Pva=Nva=Lva=null};
Uva=function(){var a=void 0===a?window.location.href:a;if(g.SB("kevlar_disable_theme_param"))return null;ul(g.wl(5,a));try{var b=g.bC(a).theme;return Tva.get(b)||null}catch(c){}return null};
vH=function(){this.j={};if(this.B=zna()){var a=g.yC("CONSISTENCY");a&&Vva(this,{encryptedTokenJarContents:a})}};
Vva=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},1E3*c);
a.B&&g.xC("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
wH=function(){var a=g.Iv("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.Iv("INNERTUBE_CLIENT_NAME")&&(this.localStorage=Wva(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
Wva=function(a){return void 0===a.localStorage?new xD("yt-client-location"):a.localStorage};
g.xH=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.Iv("INNERTUBE_CONTEXT");if(!d)return g.TF(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.qd(d);g.SB("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.Iv("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||
1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.kD();var h="USER_INTERFACE_THEME_LIGHT";g.lD(0,165)?h="USER_INTERFACE_THEME_DARK":g.lD(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.SB("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(h="USER_INTERFACE_THEME_DARK");f=f?h:Uva()||h;e.userInterfaceTheme=f;if(!b){if(f=
Joa())e.connectionType=f;g.SB("web_log_effective_connection_type")&&(f=Loa())&&(d.client.effectiveConnectionType=f)}var l;if(g.SB("web_log_memory_total_kbytes")&&(null==(l=g.Qa.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.Qa.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}g.SB("web_gcf_hashes_innertube")&&(f=fqa())&&(m=f.coldConfigData,l=f.coldHashData,f=f.hotHashData,d.client.configInfo=d.client.configInfo||{},d.client.configInfo.coldConfigData=m,d.client.configInfo.coldHashData=
l,d.client.configInfo.hotHashData=f);m=g.bC(g.Qa.location.href);!g.SB("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo={graftUrl:g.Qa.location.href},g.SB("kevlar_woffle")&&yoa.instance&&(m=yoa.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=zoa(),e.mainAppWebInfo.isWebNativeShareAvailable=
navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.SB("web_lr_app_quality_killswitch")&&(m=g.Iv("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.Iv("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.SB("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(G){}n=void 0}n&&(e.timeZone=
n)}(n=Pma())?e.experimentsToken=n:delete e.experimentsToken;n=Qma();vH.instance||(vH.instance=new vH);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:Zc(vH.instance.j)});!g.SB("web_prequest_context_killswitch")&&(n=g.Iv("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.kD();n=g.lD(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.SB("warm_op_csn_cleanup")?c&&
(b=g.QF())&&(d.clientScreenNonce=b):!b&&(b=g.QF())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Ta("yt.mdx.remote.remoteClient_"))d.remoteClient=a;wH.getInstance().setLocationOnInnerTubeContext(d);try{var p=gC(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.u(Object.entries(p)),t=r.next();!t.done;t=r.next()){var v=g.u(t.value),x=v.next().value,B=v.next().value;p=x;q=B;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}}catch(G){g.TF(G)}return d};
Zva=function(a,b){if(!a)return!1;var c,d=null==(c=g.S(a,Xva))?void 0:c.signal;if(d&&b.Xw)return!!b.Xw[d];var e;if((c=null==(e=g.S(a,Yva))?void 0:e.request)&&b.wM)return!!b.wM[c];for(var f in a)if(b.sM[f])return!0;return!1};
$va=function(a,b){var c,d=null==(c=g.S(a,Xva))?void 0:c.signal;if(d&&b.Xw&&(c=b.Xw[d]))return c();var e;if((c=null==(e=g.S(a,Yva))?void 0:e.request)&&b.wM&&(e=b.wM[c]))return e();for(var f in a)if(b.sM[f]&&(a=b.sM[f]))return a()};
yH=function(a){return function(){return new a}};
bwa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=awa[b];if(c){var d=new RegExp(c),e=g.u(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(awa).forEach(function(h){var l=g.u(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.u(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
g.zH=function(a){return"/youtubei/v1/"+bwa(a)};
AH=function(){};
BH=function(){};
CH=function(a){return g.Ta("ytcsi."+(a||"")+"data_")||cwa(a)};
DH=function(){var a=CH();a.info||(a.info={});return a.info};
EH=function(a){a=CH(a);a.metadata||(a.metadata={});return a.metadata};
FH=function(a){a=CH(a);a.tick||(a.tick={});return a.tick};
GH=function(a){a=CH(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
dwa=function(a){a=GH(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
HH=function(a){var b=CH(a).nonce;b||(b=g.aF(16),CH(a).nonce=b);return b};
cwa=function(a){var b={tick:{},info:{}};g.Sa("ytcsi."+(a||"")+"data_",b);return b};
ewa=function(){var a=g.Ta("ytcsi.debug");a||(a=[],g.Sa("ytcsi.debug",a),g.Sa("ytcsi.reference",{}));return a};
IH=function(a){a=a||"";var b=fwa();if(b[a])return b[a];var c=ewa(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
gwa=function(a){a=a||"";var b=fwa();b[a]&&delete b[a];var c=ewa(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
fwa=function(){var a=g.Ta("ytcsi.reference");if(a)return a;ewa();return g.Ta("ytcsi.reference")};
JH=function(a){return hwa[a]||"LATENCY_ACTION_UNKNOWN"};
mwa=function(a,b,c){c=GH(c);if(c.gelInfos)c.gelInfos[a]=!0;else{var d={};c.gelInfos=(d[a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in iwa){c=iwa[a];g.Db(jwa,c)&&(b=!!b);a in kwa&&"string"===typeof b&&(b=kwa[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;h<b.length-1;h++){var l=b[h];f[l]={};f=f[l]}f[b[b.length-1]]="requestIds"===c?[{id:a,endpoint:e}]:a;return WE({},d)}g.Db(lwa,a)||g.UF(new g.nD("Unknown label logged with GEL CSI",a))};
nwa=function(a,b){qE.call(this,1,arguments);this.timer=b};
KH=function(){this.j=0};
LH=function(){KH.instance||(KH.instance=new KH);return KH.instance};
NH=function(a,b){MH[b]=MH[b]||{count:0};var c=MH[b];c.count++;c.time=(0,g.OD)();a.j||(a.j=g.sD(0,function(){var d=(0,g.OD)(),e;for(e in MH)MH[e]&&6E4<d-MH[e].time&&delete MH[e];a&&(a.j=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.nD("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.UF(c)),!0):!1};
owa=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
pwa=function(){var a;if(g.SB("csi_use_performance_navigation_timing")||g.SB("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==OH?void 0:null==(a=OH.getEntriesByType)?void 0:null==(b=a.call(OH,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=PH(e.requestStart),e.responseEnd=PH(e.responseEnd),e.redirectStart=PH(e.redirectStart),e.redirectEnd=PH(e.redirectEnd),e.domainLookupEnd=PH(e.domainLookupEnd),e.connectStart=PH(e.connectStart),
e.connectEnd=PH(e.connectEnd),e.responseStart=PH(e.responseStart),e.secureConnectionStart=PH(e.secureConnectionStart),e.domainLookupStart=PH(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=OH.timing}else a=OH.timing;return a};
PH=function(a){return Math.round(QH()+a)};
QH=function(){return(g.SB("csi_use_time_origin")||g.SB("csi_use_time_origin_tvhtml5"))&&OH.timeOrigin?Math.floor(OH.timeOrigin):OH.timing.navigationStart};
SH=function(a,b){RH("_start",a,b)};
qwa=function(a,b,c,d){if(null!==b){if("yt_lt"===a){var e="string"===typeof b?b:""+b;EH(c).loadType=e}(a=mwa(a,b,c))&&TH(a,c,d)}};
TH=function(a,b,c){c=void 0===c?!1:c;if(!g.SB("web_csi_action_sampling_enabled")||!CH(b).actionDisabled)if(g.SB("web_csi_via_jspb")&&!c){c=new BB;var d=Object.keys(a);a=Object.values(a);for(var e=0;e<d.length;e++){var f=d[e];try{switch(f){case "actionType":O(c,1,U[a[e]]);break;case "clientActionNonce":N(c,2,a[e]);break;case "clientScreenNonce":N(c,4,a[e]);break;case "loadType":N(c,3,a[e]);break;case "isPrewarmedLaunch":Fj(c,92,a[e]);break;case "isFirstInstall":Fj(c,55,a[e]);break;case "networkType":O(c,
5,UH[a[e]]);break;case "connectionType":O(c,26,VH[a[e]]);break;case "detailedConnectionType":O(c,27,WH[a[e]]);break;case "isVisible":Fj(c,6,a[e]);break;case "playerType":O(c,7,XH[a[e]]);break;case "clientPlaybackNonce":N(c,8,a[e]);break;case "adClientPlaybackNonce":N(c,28,a[e]);break;case "previousCpn":N(c,77,a[e]);break;case "targetCpn":N(c,76,a[e]);break;case "isMonetized":Fj(c,9,a[e]);break;case "isPrerollAllowed":Fj(c,16,a[e]);break;case "isPrerollShown":Fj(c,17,a[e]);break;case "adType":N(c,
12,a[e]);break;case "adTypesAllowed":N(c,36,a[e]);break;case "adNetworks":N(c,37,a[e]);break;case "previousAction":O(c,13,U[a[e]]);break;case "isRedSubscriber":Fj(c,14,a[e]);break;case "serverTimeMs":Gj(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":N(c,20,a[e]);break;case "targetVideoId":N(c,78,a[e]);break;case "adBreakType":O(c,21,YH[a[e]]);break;case "isNavigation":Fj(c,25,a[e]);break;case "viewportHeight":Gj(c,29,a[e]);break;case "viewportWidth":Gj(c,30,a[e]);break;
case "screenHeight":Gj(c,84,a[e]);break;case "screenWidth":Gj(c,85,a[e]);break;case "browseId":N(c,31,a[e]);break;case "isCacheHit":Fj(c,32,a[e]);break;case "httpProtocol":N(c,33,a[e]);break;case "transportProtocol":N(c,34,a[e]);break;case "searchQuery":N(c,41,a[e]);break;case "isContinuation":Fj(c,42,a[e]);break;case "availableProcessors":Gj(c,43,a[e]);break;case "sdk":N(c,44,a[e]);break;case "isLocalStream":Fj(c,45,a[e]);break;case "navigationRequestedSameUrl":Fj(c,64,a[e]);break;case "shellStartupDurationMs":Gj(c,
70,a[e]);break;case "appInstallDataAgeMs":Gj(c,73,a[e]);break;case "latencyActionError":O(c,71,ZH[a[e]]);break;case "actionStep":Gj(c,79,a[e]);break;case "jsHeapSizeLimit":Ij(c,80,a[e]);break;case "totalJsHeapSize":Ij(c,81,a[e]);break;case "usedJsHeapSize":Ij(c,82,a[e]);break;case "sourceVideoDurationMs":Ij(c,90,a[e]);break;case "videoOutputFrames":Ij(c,93,a[e]);break;case "isResume":Fj(c,104,a[e]);break;case "debugTicksExcluded":Fj(c,105,a[e]);break;case "abandonedPing":Fj(c,113,a[e]);break;case "adPrebufferedTimeSecs":Gj(c,
39,a[e]);break;case "isLivestream":Fj(c,47,a[e]);break;case "liveStreamMode":O(c,91,$H[a[e]]);break;case "adCpn2":N(c,48,a[e]);break;case "adDaiDriftMillis":Ij(c,49,a[e]);break;case "videoStreamType":O(c,53,aI[a[e]]);break;case "playbackRequiresTap":Fj(c,56,a[e]);break;case "performanceNavigationTiming":Fj(c,67,a[e]);break;case "transactionType":O(c,74,bI[a[e]]);break;case "playerRotationType":O(c,101,cI[a[e]]);break;case "allowedPreroll":Fj(c,10,a[e]);break;case "shownPreroll":Fj(c,11,a[e]);break;
case "getHomeRequestId":N(c,57,a[e]);break;case "getSearchRequestId":N(c,60,a[e]);break;case "getPlayerRequestId":N(c,61,a[e]);break;case "getWatchNextRequestId":N(c,62,a[e]);break;case "getBrowseRequestId":N(c,63,a[e]);break;case "getLibraryRequestId":N(c,66,a[e]);break;case "isTransformerEnabledForFeature":Fj(c,106,a[e]);break;case "sourceVideoFrameCount":Ij(c,109,a[e]);break;default:rwa.includes(f)&&g.VB(new g.nD("Codegen laipb translator asked to translate message field",""+f))}}catch(h){g.VB(Error("Codegen laipb translator failed to set "+
f))}}dI(c,b)}else c=IH(b||""),WE(c.info,a),a.loadType&&(c=a.loadType,EH(b).loadType=c),WE(dwa(b),a),c=HH(b),b=CH(b).cttAuthInfo,LH().info(a,c,b)};
dI=function(a,b){if(!g.SB("web_csi_action_sampling_enabled")||!CH(b).actionDisabled){var c=g.Dj(a,3);c&&(EH(b).loadType=c);IH(b||"").jspbInfo.push(a);c=HH(b);b=CH(b).cttAuthInfo;LH().jspbInfo(a,c,b)}};
swa=function(){var a,b,c,d;return(null!=(d=null==iF().resolve(new fF(nE))?void 0:null==(a=$pa())?void 0:null==(b=a.loggingHotConfig)?void 0:null==(c=b.csiConfig)?void 0:c.debugTicks)?d:[]).map(function(e){return Object.values(e)[0]})};
RH=function(a,b,c){if(!g.SB("web_csi_action_sampling_enabled")||!CH(c).actionDisabled){var d=HH(c),e;if(e=g.SB("web_csi_debug_sample_enabled")&&d)if(!1===CH(c).debugTicksExcludedLogged)e=!1;else if(0===swa().length)e=CH(c).debugTicksExcludedLogged=!1;else{var f,h,l;e=(null==iF().resolve(new fF(nE))?void 0:null==(f=$pa())?void 0:null==(h=f.loggingHotConfig)?void 0:null==(l=h.csiConfig)?void 0:l.debugSampleWeight)||0;if(f=0!==e)b:{f=swa();if(0<f.length)for(h=0;h<f.length;h++)if(a===f[h]){f=!0;break b}f=
!1}f?(e=0!==Nta(d)%e,CH(c).debugTicksExcludedLogged||(g.SB("web_csi_via_jspb")?(f=new BB,f=Fj(f,105,e),dI(f,c)):(f={},f.debugTicksExcluded=e,TH(f,c))),CH(c).debugTicksExcludedLogged=!0):e=!1}if(!e){b||"_"===a[0]||(e=a,OH.mark&&(cc(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),OH.mark(e)));e=IH(c||"");e.tick[a]=b||(0,g.OD)();if(e.callback&&e.callback[a])for(e=g.u(e.callback[a]),f=e.next();!f.done;f=e.next())f=f.value,f();e=GH(c);e.gelTicks&&(e.gelTicks[a]=!0);f=FH(c);e=b||(0,g.OD)();g.SB("log_repeated_ytcsi_ticks")?
a in f||(f[a]=e):f[a]=e;f=CH(c).cttAuthInfo;"_start"===a?(a=LH(),NH(a,"baseline_"+d)||(b={timestamp:b,cttAuthInfo:f},g.SB("web_csi_via_jspb")?(a=new uma,N(a,1,d),d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB,uj(d,uma,6,MF,a),LF("latencyActionBaselined",d,b)):g.zD("latencyActionBaselined",{clientActionNonce:d},b))):LH().tick(a,d,b,f);twa(c);return e}}};
uwa=function(){var a,b=null==(a=OH.getEntriesByType)?void 0:a.call(OH,"mark");b&&b.forEach(function(c){if(c.name.startsWith("mark_")){var d;null==(d=OH.clearMarks)||d.call(OH,c.name)}})};
vwa=function(){switch(hoa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
ywa=function(a){var b=pwa(),c=QH(),d=g.Iv("CSI_START_TIMESTAMP_MILLIS",0);0<d&&!g.SB("embeds_web_enable_csi_start_override_killswitch")&&(c=d);c&&(RH("srt",b.responseStart),1!==a.prerender&&SH(c));a=wwa();0<a&&RH("fpt",a);a=pwa();a.isPerformanceNavigationTiming&&TH({performanceNavigationTiming:!0},void 0);RH("nreqs",a.requestStart,void 0);RH("nress",a.responseStart,void 0);RH("nrese",a.responseEnd,void 0);0<a.redirectEnd-a.redirectStart&&(RH("nrs",a.redirectStart,void 0),RH("nre",a.redirectEnd,void 0));
0<a.domainLookupEnd-a.domainLookupStart&&(RH("ndnss",a.domainLookupStart,void 0),RH("ndnse",a.domainLookupEnd,void 0));0<a.connectEnd-a.connectStart&&(RH("ntcps",a.connectStart,void 0),RH("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=QH()&&0<a.connectEnd-a.secureConnectionStart&&(RH("nstcps",a.secureConnectionStart,void 0),RH("ntcpe",a.connectEnd,void 0));OH&&"getEntriesByType"in OH&&xwa()};
zwa=function(a){function b(f,h,l){h=h.match("_rid")?h.split("_rid")[0]:h;"number"===typeof l&&(l=JSON.stringify(l));f.requestIds?f.requestIds.push({endpoint:h,id:l}):f.requestIds=[{endpoint:h,id:l}]}
var c={};a=g.u(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":b(c,d,e);break;case "GetGuide_rid":b(c,d,e);break;case "GetHome_rid":b(c,d,e);break;case "GetPlayer_rid":b(c,d,e);break;case "GetSearch_rid":b(c,d,e);break;case "GetSettings_rid":b(c,d,e);break;case "GetTrending_rid":b(c,d,e);break;case "GetWatchNext_rid":b(c,d,e);break;case "yt_red":c.isRedSubscriber=!!e;break;case "yt_ad":c.isMonetized=!!e}}return c};
Awa=function(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;"SCRIPT"===d?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):"LINK"===d&&(c=a.href);me()&&a.setAttribute("nonce",me());return c?(a=OH.getEntriesByName(c))&&a[0]&&(a=a[0],c=QH(),RH("rsf_"+b,c+Math.round(a.fetchStart)),RH("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
Cwa=function(){var a=[];if(document.querySelector&&OH&&OH.getEntriesByName)for(var b in Bwa)if(Bwa.hasOwnProperty(b)){var c=Bwa[b];Awa(b,c)&&a.push(c)}return a};
xwa=function(){var a=window.location.protocol,b=OH.getEntriesByType("resource");b=g.ts(b,function(c){return 0===c.name.indexOf(a+"//fonts.gstatic.com/s/")});
(b=$p(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(RH("wffs",PH(b.startTime)),RH("wffe",PH(b.responseEnd)))};
Dwa=function(a,b,c){OH&&OH.measure&&(cc(a,"measure_")||(a="measure_"+a),c?OH.measure(a,b,c):b?OH.measure(a,b):OH.measure(a))};
Ewa=function(a){var b=eI("aft",a);if(b)return b;b=g.Iv((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=eI(b[d],a);if(e)return e}return NaN};
Fwa=function(a,b){g.Sa("ytglobal.timing"+(b||"")+"ready_",a)};
eI=function(a,b){if(a=FH(b)[a])return"number"===typeof a?a:a[a.length-1]};
twa=function(a){var b=eI("_start",a),c=Ewa(a);b&&c&&!Gwa&&(sE(Hwa,new nwa(Math.round(c-b),a)),Gwa=!0)};
Iwa=function(a,b){for(var c=g.u(Object.keys(b)),d=c.next();!d.done;d=c.next())if(d=d.value,!Object.keys(a).includes(d)||"object"===typeof b[d]&&!Iwa(a[d],b[d]))return!1;return!0};
wwa=function(){if(OH.getEntriesByType){var a=OH.getEntriesByType("paint");if(a=g.Bb(a,function(b){return"first-paint"===b.name}))return PH(a.startTime)}a=OH.timing;
return a.Q6?Math.max(0,a.Q6):0};
fI=function(a){cwa(a);Jwa();uwa();a||(g.Iv("TIMING_ACTION")&&QB("PREVIOUS_ACTION",g.Iv("TIMING_ACTION")),QB("TIMING_ACTION",""))};
Kwa=function(){var a=["pbs","pbu"];g.WB(function(){IH("").info.actionType="watch";a&&QB("TIMING_AFT_KEYS",a);QB("TIMING_ACTION","watch");if(g.SB("web_csi_via_jspb")){var b=g.Iv("TIMING_INFO",{}),c=new BB;b=g.u(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":CB(c,zB(yB(d),String(e)));break;case "GetGuide_rid":CB(c,zB(yB(d),String(e)));break;case "GetHome_rid":CB(c,zB(yB(d),String(e)));break;case "GetPlayer_rid":CB(c,
zB(yB(d),String(e)));break;case "GetSearch_rid":CB(c,zB(yB(d),String(e)));break;case "GetSettings_rid":CB(c,zB(yB(d),String(e)));break;case "GetTrending_rid":CB(c,zB(yB(d),String(e)));break;case "GetWatchNext_rid":CB(c,zB(yB(d),String(e)));break;case "yt_red":Fj(c,14,!!e);break;case "yt_ad":Fj(c,9,!!e)}}dI(c);c=new BB;c=Fj(c,25,!0);c=O(c,1,U[JH(g.Iv("TIMING_ACTION"))]);(b=g.Iv("PREVIOUS_ACTION"))&&O(c,13,U[JH(b)]);(b=g.Iv("CLIENT_PROTOCOL"))&&N(c,33,b);(b=g.Iv("CLIENT_TRANSPORT"))&&N(c,34,b);(b=g.QF())&&
"UNDEFINED_CSN"!==b&&N(c,4,b);b=vwa();1!==b&&-1!==b||Fj(c,6,!0);b=DH();(d="cold"===EH().loadType)||(d="cold"===b.yt_lt);if(d&&(N(c,3,"cold"),ywa(b),b=Cwa(),0<b.length))for(b=g.u(b),d=b.next();!d.done;d=b.next())d=d.value,e=new vma,N(e,1,d),wj(c,83,vma,e);dI(c)}else{c=g.Iv("TIMING_INFO",{});for(b in c)c.hasOwnProperty(b)&&qwa(b,c[b]);c={isNavigation:!0,actionType:JH(g.Iv("TIMING_ACTION"))};if(b=g.Iv("PREVIOUS_ACTION"))c.previousAction=JH(b);if(b=g.Iv("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.Iv("CLIENT_TRANSPORT"))c.transportProtocol=
b;(b=g.QF())&&"UNDEFINED_CSN"!==b&&(c.clientScreenNonce=b);b=vwa();if(1===b||-1===b)c.isVisible=!0;b="cold"===EH().loadType;d=DH();b||(b="cold"===d.yt_lt);if(b&&(c.loadType="cold",ywa(DH()),b=Cwa(),0<b.length))for(c.resourceInfo=[],b=g.u(b),d=b.next();!d.done;d=b.next())c.resourceInfo.push({resourceCache:d.value});TH(c)}c=DH();b=dwa();if("cold"===EH().loadType&&("cold"===c.yt_lt||"cold"===b.loadType)){d=FH();e=GH();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var f in d)if(!(f in e))if("number"===typeof d[f])RH(f,
eI(f));else if(g.SB("log_repeated_ytcsi_ticks"))for(var h=g.u(d[f]),l=h.next();!l.done;l=h.next())RH(f.slice(1),l.value);f={};d=!1;e=g.u(Object.keys(c));for(h=e.next();!h.done;h=e.next())h=h.value,(h=mwa(h,c[h]))&&!Iwa(dwa(),h)&&(WE(b,h),WE(f,h),d=!0);d&&TH(f)}Fwa(!0);f=g.Iv("TIMING_ACTION");g.Ta("ytglobal.timingready_")&&f&&gI("_start")&&Ewa()&&twa()})()};
Mwa=function(){var a=void 0===a?{}:a;g.WB(function(){Lwa();gwa();fI();Fwa(!1);a.cttAuthInfo&&(CH().cttAuthInfo=a.cttAuthInfo);QB("TIMING_AFT_KEYS",[]);a.qfb?g.hI({loadType:"hot"}):g.hI({loadType:"warm"});QB("TIMING_ACTION","");delete g.Iv("TIMING_INFO",{}).yt_lt;g.WB(SH)(a.startTime,void 0)})()};
iI=function(a,b){b=void 0===b?{}:b;g.WB(function(){Nwa(a);var c=b.sampleRate;if(!g.SB("web_csi_action_sampling_enabled")||void 0===c||1>=c)c=!1;else{var d=HH(a);c=0!==Nta(d)%c}c&&(CH(a).actionDisabled=!0);IH(a||"").info.actionType=a;b.cttAuthInfo&&(CH(a).cttAuthInfo=b.cttAuthInfo);QB(a+"TIMING_ACTION",a);g.WB(SH)(b.startTime,a);c={actionType:JH(a)};(d=g.QF())&&"UNDEFINED_CSN"!==d&&(c.clientScreenNonce=d);g.hI(c,a);Fwa(!0,a)})()};
Nwa=function(a){g.WB(function(){Lwa(a);gwa(a);fI(a)})()};
Owa=function(a,b,c,d){g.WB(qwa)(a,b,c,d)};
g.hI=function(a,b){g.WB(TH)(a,b,!1)};
jI=function(a,b,c){return g.WB(RH)(a,b,c)};
Pwa=function(a){g.WB(Dwa)("above_the_fold",a,void 0)};
gI=function(a,b){return g.WB(function(){var c=FH(b);return a in c})()};
Qwa=function(a,b){return g.WB(function(){if(gI(a,b))return!1;jI(a,void 0,b);return!0})()};
kI=function(a,b,c){g.WB(function(){if(!gI("_start",c)||gI(a,c))return!1;jI(a,b,c);return!0})()};
Rwa=function(){g.WB(function(){var a=HH();requestAnimationFrame(function(){setTimeout(function(){a===HH()&&jI("ftl",void 0,void 0)},0)})})()};
Lwa=function(a){gI("_start",a)&&jI("aa",void 0,a)};
lI=function(a,b,c,d){this.PM=a;this.nh=b;this.j=c;this.D=d;this.C=void 0;this.B=new Map;a.Xw||(a.Xw={});a.Xw=Object.assign({},Swa,a.Xw)};
Twa=function(a,b,c,d){if(void 0!==lI.instance){if(d=lI.instance,a=[a!==d.PM,b!==d.nh,c!==d.j,!1,!1,!1,void 0!==d.C],a.some(function(e){return e}))throw new g.nD("InnerTubeTransportService is already initialized",a);
}else lI.instance=new lI(a,b,c,d)};
mI=function(a,b,c){var d=void 0===d?pE:d;var e=$va(b,a.PM);if(!e)return Vf(new g.nD("Error: No request builder found for command.",b));var f=e.G(b,c,d);return f?(tH(f.input),new g.Sf(function(h){var l,m,n;return g.H(function(p){if(1==p.j)return m="cors"===(null==(l=f.fu)?void 0:l.mode)?"cors":void 0,a.j.UZ?(n=Uwa(a,f.config,m),p.Ma(2)):g.z(p,Vwa(a,f.config,m),3);2!=p.j&&(n=p.B);h(Wwa(a,f,n));g.ya(p)})})):Vf(new g.nD("Error: Failed to build request for command.",b))};
g.nI=function(a,b,c,d,e){e=void 0===e?{Tu:{identity:pE}}:e;var f=void 0===f?!0:f;b.context||(b.context=g.xH(d,f));return new g.Sf(function(h){var l,m,n,p,q;return g.H(function(r){if(1==r.j)return l=Ana(c),m=eC(l)?"same-origin":"cors",a.j.UZ?(n=Uwa(a,e,m),r.Ma(2)):g.z(r,Vwa(a,e,m),3);2!=r.j&&(n=r.B);var t=n;p=Bna(Ana(c),t);q={input:p,fu:Cna(p),yp:b,config:e};h(Wwa(a,q,n));g.ya(r)})})};
Ywa=function(a,b,c){var d;if(b&&!(null==b?0:null==(d=b.cgb)?0:d.sgb)&&a.D){d=g.u(Xwa);for(var e=d.next();!e.done;e=d.next())e=e.value,a.D[e]&&a.D[e].handleResponse(b,c)}};
Wwa=function(a,b,c){var d,e,f,h,l,m,n,p,q,r,t,v,x,B,G,F,I,P,R,Z,ma,ua,oa,ia,Aa,X,wa,ca,Ra;return g.H(function(y){switch(y.j){case 1:y.Ma(2);break;case 3:if((d=y.B)&&!d.isExpired())return y.return(Promise.resolve(d.j()));case 2:if(!(null==(e=b)?0:null==(f=e.yp)?0:f.context)){y.Ma(4);break}h=b.yp.context;y.Ma(5);break;case 5:l=g.u([]),m=l.next();case 7:if(m.done){y.Ma(4);break}n=m.value;return g.z(y,n.Tfb(h),8);case 8:m=l.next();y.Ma(7);break;case 4:if(null==(p=a.C)||!p.lgb(b.input,b.yp)){y.Ma(11);
break}return g.z(y,a.C.xfb(b.input,b.yp),12);case 12:return q=y.B,g.SB("kevlar_process_local_innertube_responses_killswitch")||Ywa(a,q,b),y.return(q);case 11:return(v=null==(t=b.config)?void 0:t.Pf)&&a.B.has(v)&&g.SB("web_memoize_inflight_requests")?r=a.B.get(v):(x=JSON.stringify(b.yp),F=null!=(G=null==(B=b.fu)?void 0:B.headers)?G:{},b.fu=Object.assign({},b.fu,{headers:Object.assign({},F,c)}),I=Object.assign({},b.fu),"POST"===b.fu.method&&(I=Object.assign({},I,{body:x})),(null==(P=b.config)?0:P.o$)&&
jI(b.config.o$),R=function(){return a.nh.fetch(b.input,I,b.config)},r=R(),v&&a.B.set(v,r)),g.z(y,r,13);
case 13:if((Z=y.B)&&"error"in Z&&(null==(ma=Z)?0:null==(ua=ma.error)?0:ua.details))for(oa=Z.error.details,ia=g.u(oa),Aa=ia.next();!Aa.done;Aa=ia.next())X=Aa.value,(wa=X["@type"])&&-1<Zwa.indexOf(wa)&&(delete X["@type"],Z=X);v&&a.B.has(v)&&a.B.delete(v);(null==(ca=b.config)?0:ca.t$)&&jI(b.config.t$);if(Z||null==(Ra=a.C)||!Ra.Rdb(b.input,b.yp)){y.Ma(14);break}return g.z(y,a.C.wfb(b.input,b.yp),15);case 15:Z=y.B;case 14:return Ywa(a,Z,b),y.return(Z||void 0)}})};
Vwa=function(a,b,c){var d,e,f,h,l,m,n;return g.H(function(p){if(1==p.j){f=(null==(d=b)?void 0:null==(e=d.Tu)?void 0:e.identity)||pE;m=null==(h=b)?void 0:null==(l=h.Tu)?void 0:l.sessionIndex;var q=Uf(a.j.UC(f,{sessionIndex:m}));return g.z(p,q,2)}n=p.B;return p.return(Promise.resolve(Object.assign({},$wa(c),n)))})};
Uwa=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.Tu)?void 0:d.identity)||pE,f;b=null==b?void 0:null==(f=b.Tu)?void 0:f.sessionIndex;a=a.j.UC(e,{sessionIndex:b});return Object.assign({},$wa(c),a)};
$wa=function(a){var b={"Content-Type":"application/json"};g.Iv("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.Iv("EOM_VISITOR_DATA"):g.Iv("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.Iv("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.Iv("LOGGED_IN",!1);"cors"!==a&&((a=g.Iv("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.Iv("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.Iv("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=
g.Iv("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
oI=function(){};
pI=function(){};
qI=function(){};
rI=function(){};
sI=function(){};
tI=function(){};
uI=function(a){this.j=a};
g.vI=function(a,b){if(!axa){var c=iF();Era(c,{uQ:bxa,E_:uI});var d={sM:{feedbackEndpoint:yH(qI),modifyChannelNotificationPreferenceEndpoint:yH(rI),playlistEditEndpoint:yH(sI),subscribeEndpoint:yH(oI),unsubscribeEndpoint:yH(pI),webPlayerShareEntityServiceEndpoint:yH(tI)}},e=wH.getInstance(),f={};e&&(f.client_location=e);void 0===a&&(a=xoa());void 0===b&&(b=c.resolve(bxa));Twa(d,b,a,f);Era(c,{uQ:cxa,UR:lI.instance});axa=c.resolve(cxa)}return axa};
wI=function(a,b,c,d){if(a===b)return!0;if(Array.isArray(a)&&Array.isArray(b)){if(a.length!==b.length)return!1;for(var e=0;e<a.length;e++)if(!wI(a[e],b[e],c,d))return!1;return!0}if(a instanceof Set||b instanceof Set){if(a instanceof Set&&b instanceof Set){if(a.size!==b.size)return!1;d=g.u(a.values());for(e=d.next();!e.done;e=d.next())if(!b.has(e.value))return!1;return!0}return!1}if(a instanceof Function){if(d)return!0;""===a.name&&g.TF(Error("genericDeeplyEquals does not work on arrow or inline functions"),
"ERROR");return!1}if(a instanceof Date&&b instanceof Date)return a.getTime()===b.getTime();if(a instanceof Object&&b instanceof Object){if(dxa(a)&&dxa(b))try{return a.equals(b)}catch(h){g.TF(Error("genericDeeplyEquals encountered single\n        argument equals method but it has thrown an error during execution:\n        "+h),"ERROR")}e=Object.getOwnPropertyNames(a).filter(function(h){return c?void 0!==a[h]:!0});
var f=Object.getOwnPropertyNames(b).filter(function(h){return c?void 0!==b[h]:!0});
if(e.length!==f.length)return!1;e=g.u(e);for(f=e.next();!f.done;f=e.next())if(f=f.value,!wI(a[f],b[f],c,d))return!1;return!0}return!1};
dxa=function(a){a=Object.getPrototypeOf(a).equals;return a instanceof Function&&1===a.length};
fxa=function(a){var b;g.H(function(c){b=["b.f_","j.s_","r.s_","e.h_"];g.SB("ab_det_sc_inj")&&b.push("s.i_");b.forEach(function(d){var e;return g.H(function(f){if(1==f.j)return g.z(f,exa[d](),2);e=f.B;a(e,d);g.ya(f)})});
g.ya(c)})};
hxa=function(){for(var a=g.u(gxa),b=a.next();!b.done;b=a.next()){var c=b.value;b=c.jsonRepresentation;c=c.objectRepresentation;try{var d=JSON.parse(b);if(!wI(d,c,!1,!1))return 0}catch(e){return 0}}return 1};
ixa=function(){try{var a=Oma();1===a.length&&""===a[0]&&(a=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var b=g.u(document.querySelectorAll("script")),c=b.next();!c.done;c=b.next())for(var d=c.value,e=g.u(a),f=e.next();!f.done;f=e.next()){var h=f.value,l=void 0;if(null==(l=d.textContent)?0:l.includes(h))return 0}}catch(m){return 4}return 1};
jxa=function(){var a,b,c,d,e,f,h;return g.H(function(l){switch(l.j){case 1:g.za(l,2),a=g.u(gxa),b=a.next();case 4:if(b.done)return l.return(1);d=c=b.value;e=d.jsonRepresentation;f=d.objectRepresentation;return g.z(l,(new Response(e,{status:200})).json(),7);case 7:h=l.B;if(!wI(h,f,!1,!1))return l.return(0);b=a.next();l.Ma(4);break;case 2:return g.Ca(l),l.return(4)}})};
kxa=function(){try{var a=document.createElement("ytd-display-ad-renderer");a.classList.add("ytd-companion-slot-renderer");a.setAttribute("id","masthead-ad");document.body.appendChild(a);var b="none"===getComputedStyle(a).display?0:1;document.body.removeChild(a);return b}catch(c){return 4}};
lxa=function(){return g.H(function(a){return 1==a.j?g.z(a,Zna().then(function(){return 1},function(b){if("Biscotti id is disabled"===b.message)return 3;
g.UF("Failed fetching bid");return 0}),2):a.return(a.B)})};
mxa=function(){return g.Iv("ISDSTAT",2)};
nxa=function(){return 2};
oxa=function(a){switch(a){case 0:return"BISCOTTI_BASED_DETECTION_RESULT_DETECTED";case 1:return"BISCOTTI_BASED_DETECTION_RESULT_NOT_DETECTED";case 2:return"BISCOTTI_BASED_DETECTION_RESULT_UNSPECIFIED";case 3:return"BISCOTTI_BASED_DETECTION_RESULT_KNOWN_FAILURE";case 4:return"BISCOTTI_BASED_DETECTION_RESULT_UNKNOWN_FAILURE";default:Fn(a,"unknown result type")}};
pxa=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Fn(a,"unknown result type")}};
qxa=function(a){switch(a){case "b.f_":return 0;case "j.s_":return 2;case "r.s_":return 4;case "e.h_":return 6;case "i.s_":return 8;case "p.h_":return 12;case "s.t_":return 10;case "s.i_":return 14;default:Fn(a,"Unknown method type")}};
rxa=function(a,b,c){c={detected:0===a,source:b,detectionResult:oxa(a),contentCpn:c};g.zD("biscottiBasedDetection",c);a=pxa(a);b=qxa(b);QB("CATSTAT",Number(g.Iv("CATSTAT",0))&~(3<<b)|a<<b)};
txa=function(a,b){var c=g.Ta("ytDebugData.callbacks");c||(c={},g.Sa("ytDebugData.callbacks",c));if(g.SB("web_dd_iu")||sxa.includes(a))c[a]=b};
xI=function(){};
uxa=function(){xI.instance||(xI.instance=new xI);return xI.instance};
wxa=function(a){for(var b="",c=0;c<a.length;c++){var d=a[c];if(0===c)d="M "+d.x.toFixed(1)+","+d.y.toFixed(1);else{var e=vxa(a[c-1],a[c-2],d),f=vxa(d,a[c-1],a[c+1],!0);d=" C "+(e.x.toFixed(1)+","+e.y.toFixed(1)+" "+f.x.toFixed(1)+","+f.y.toFixed(1)+" "+d.x.toFixed(1)+","+d.y.toFixed(1))}b+=d}return b};
vxa=function(a,b,c,d){d=void 0===d?!1:d;b=new xxa(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.j:b.j),y:a.y+.2*((void 0===d?0:d)?-1*b.B:b.B)}};
xxa=function(a,b){this.B=this.j=0;this.j=b.x-a.x;this.B=b.y-a.y};
yxa=function(a,b,c){var d;if(!b)return 1<=a.length?a[a.length-1]:null;var e=g.u(a);for(d=e.next();!d.done;d=e.next())if(d=d.value,d.width&&d.height&&(c&&d.width>=b||!c&&d.height>=b))return d;for(b=a.length-1;0<=b;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]};
zxa=function(){this.state=1;this.j=null};
Bxa=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.Gc(2),g.pra(c,function(){if(window[h])Axa(a,d,h,e);else{a.Gc(3);var l=qra(c),m=document.getElementById(l);m&&(lra(l),m.parentNode.removeChild(m));g.UF(new g.nD("Unable to load Botguard","from "+c))}},f)):b?(f=g.lf("SCRIPT"),b instanceof Wd?(f.textContent=rba(b),Gn(f)):f.textContent=b,f.nonce=me(),document.head.appendChild(f),document.head.removeChild(f),window[h]?Axa(a,d,h,e):(a.Gc(4),g.UF(new g.nD("Unable to load Botguard from JS")))):
g.UF(new g.nD("Unable to load VM; no url or JS provided"))};
Axa=function(a,b,c,d){a.Gc(5);try{var e=new yn({program:b,globalName:c,d$:g.SB("att_web_record_metrics")});e.J$.then(function(){a.Gc(6);d&&d(b)});
a.dR(e)}catch(f){a.Gc(7),f instanceof Error&&g.UF(f)}};
Cxa=function(a,b){var c=g.yI;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.KF()?Promise.race([new Promise(function(d,e){setTimeout(function(){setTimeout(function(){setTimeout(function(){e(Error("Timed out waiting for snapshot"))},0)},0)},b)}),
new Promise(function(d){c.KF()?c.L_({Ry:a}).then(d):d(null)})]):Promise.resolve(null)};
Fxa=function(){if(!g.SB("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.SB("disable_biscotti_fetch_entirely_for_all_web_clients")&&Mna()){var a=g.Iv("PLAYER_VARS",{});if("1"!=g.nd(a,"privembed",!1)&&!Qna(a)){var b=function(){Dxa=!0;"google_ad_status"in window?QB("DCLKSTAT",1):QB("DCLKSTAT",2)};
try{g.pra("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}Exa.push(g.Tt.Ii(function(){if(!(Dxa||"google_ad_status"in window)){try{if(b){var c=""+g.ab(b),d=rra[c];d&&g.TE(d)}}catch(e){}Dxa=!0;QB("DCLKSTAT",3)}},5E3))}}};
Gxa=function(){var a=Number(g.Iv("DCLKSTAT",0));return isNaN(a)?0:a};
zI=function(){var a=g.Ta("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null};
AI=function(){zxa.apply(this,arguments)};
Hxa=function(a,b,c){for(var d=!1,e=g.u(a.zl.entries()),f=e.next();!f.done;f=e.next())f=g.u(f.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===f.slotType&&"core"===f.gb&&(d=!0);if(d){a:if(!c){a=g.u(a.zl.entries());for(c=a.next();!c.done;c=a.next())if(d=g.u(c.value),c=d.next().value,d=d.next().value,"SLOT_TYPE_IN_PLAYER"===c.slotType&&"core"===c.gb){c=d.layoutId;break a}c=void 0}c?b.ON(c):ZG("No triggering layout ID available when attempting to mute.")}};
BI=function(a,b){this.tj=a;this.Xk=b};
CI=function(){};
DI=function(){};
GI=function(a){g.J.call(this);var b=this;this.Pd=a;this.Ef=new Map;this.j=new Map;EI(this,"commandExecutorCommand",function(c,d,e){b.gh(c.commands,d,e)});
FI(this,"commandExecutorCommand",function(c,d,e){Ixa(b,c.commands,d,e)});
EI(this,"clickTrackingParams",function(){});
FI(this,"clickTrackingParams",function(){})};
Jxa=function(a,b){EI(a,b.Bq(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
Kxa=function(a,b){FI(a,b.Bq(),function(c,d,e){b.Kv(c,d,e)})};
EI=function(a,b,c){a.isDisposed();a.Ef.get(b)&&g.TF(Error("Extension name "+b+" already registered"));a.Ef.set(b,c)};
FI=function(a,b,c){a.isDisposed();a.j.get(b)&&g.TF(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
Ixa=function(a,b,c,d){b=void 0===b?[]:b;a.isDisposed();var e=[],f=[],h=g.u(b);for(b=h.next();!b.done;b=h.next())b=b.value,g.S(b,Lxa)||g.S(b,Mxa)?e.push(b):f.push(b);e=g.u(e);for(b=e.next();!b.done;b=e.next())HI(a,b.value,c,d);f=g.u(f);for(b=f.next();!b.done;b=f.next())HI(a,b.value,c,d)};
Nxa=function(a,b){a.Pd.get().Ta("innertubeCommand",{openPopupAction:b})};
Oxa=function(a,b){a.Pd.get().Ta("innertubeCommand",{confirmDialogEndpoint:b})};
HI=function(a,b,c,d){a.isDisposed();b.loggingUrls&&Pxa(a,"loggingUrls",b.loggingUrls,c,d);b=g.u(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.u(e.value);e=f.next().value;f=f.next().value;"openPopupAction"===e?Nxa(a,f):"confirmDialogEndpoint"===e?Oxa(a,f):Qxa.hasOwnProperty(e)||Pxa(a,e,f,c,d)}};
Rxa=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.Ef.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.TF(f)}else b=new g.nD("Unhandled field",b),g.UF(b)};
Pxa=function(a,b,c,d,e){if((a=a.j.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.TF(f)}else b=new g.nD("Unhandled field",b),g.UF(b)};
II=function(a,b,c){this.Tn=a;this.O9=b;this.Ra=c};
JI=function(a){this.value=a};
KI=function(a){this.value=a};
Sxa=function(a){this.value=a};
LI=function(a){this.value=a};
MI=function(a){this.value=a};
Txa=function(){JI.apply(this,arguments)};
Uxa=function(a){this.value=a};
Vxa=function(a){this.value=a};
Wxa=function(a){this.value=a};
Xxa=function(a){this.value=a};
NI=function(a){this.value=a};
OI=function(a){this.value=a};
PI=function(a){this.value=a};
QI=function(a){this.value=a};
RI=function(a){this.value=a};
SI=function(){JI.apply(this,arguments)};
TI=function(a){this.value=a};
UI=function(a){this.value=a};
VI=function(a){this.value=a};
WI=function(a){this.value=a};
XI=function(a){this.value=a};
Yxa=function(a){this.value=a};
YI=function(a){this.value=a};
Zxa=function(a){this.value=a};
$xa=function(a){this.value=a};
aya=function(a){this.value=a};
bya=function(a){this.value=a};
ZI=function(a){this.value=a};
$I=function(a){this.value=a};
aJ=function(a){this.value=a};
cya=function(a){this.value=a};
bJ=function(a){this.value=a};
cJ=function(a){this.value=a};
dJ=function(a){this.value=a};
dya=function(a){this.value=a};
eJ=function(a){this.value=a};
fJ=function(a){this.value=a};
gJ=function(a){this.value=a};
hJ=function(a){this.value=a};
iJ=function(a){this.value=a};
jJ=function(a){this.value=a};
kJ=function(a){this.value=a};
lJ=function(a){this.value=a};
mJ=function(a){this.value=a};
eya=function(a){this.value=a};
nJ=function(a){this.value=a};
oJ=function(a){this.value=a};
pJ=function(a){this.value=a};
fya=function(a){this.value=a};
qJ=function(a){this.value=a};
rJ=function(a){this.value=a};
sJ=function(a){this.value=a};
tJ=function(){JI.apply(this,arguments)};
gya=function(a){this.value=a};
uJ=function(){JI.apply(this,arguments)};
vJ=function(){JI.apply(this,arguments)};
hya=function(){JI.apply(this,arguments)};
wJ=function(){JI.apply(this,arguments)};
iya=function(a){this.value=a};
xJ=function(a){this.value=a};
jya=function(a){this.value=a};
zJ=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.u(b);for(c=b.next();!c.done;c=b.next())if(!yJ(a.Ea,c.value))return!1;return!0};
AJ=function(){return""};
kya=function(a,b){switch(a){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return b(a),8}};
BJ=function(a,b,c,d){d=void 0===d?!1:d;vb.call(this,a);this.Dk=c;this.Ru=d;this.args=[];b&&this.args.push(b)};
CJ=function(a,b,c,d){d=void 0===d?!1:d;vb.call(this,a);this.Dk=c;this.Ru=d;this.args=[];b&&this.args.push(b)};
DJ=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
yJ=function(a,b){return a.j.has(b)};
EJ=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
FJ=function(a){return Array.from(a.j.keys())};
GJ=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.u(b);for(c=b.next();!c.done;c=b.next())if(!yJ(a.Ea,c.value))return!1;return!0};
mya=function(a){var b;return(null==(b=lya.get(a))?void 0:b.Zw)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
oya=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:nya.get(b.gb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=HJ(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.u(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(HJ(d.value));
b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.u(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(HJ(a.value))}return c};
pya=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:nya.get(b.gb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
HJ=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.triggeringSlotId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.triggeringSlotId);null!=a.triggeringLayoutId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return c};
qya=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Yp(d||[],function(e){return oya(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
IJ=function(a,b){return function(c){return rya(sya(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.gb,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.gb)}};
rya=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:oya(a,{slotId:b,slotType:c,slotPhysicalPosition:d,gb:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,Ea:new DJ([])}),layoutData:pya(a,{layoutId:m,layoutType:n,gb:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],hc:new Map,Ea:new DJ([]),zc:{}})}}};
KJ=function(a){this.Ia=a;a=Math.random();var b=this.Ia.get();b=g.JJ(b.J.W().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
sya=function(a){return a.j||a.Ia.get().J.W().N("html5_force_debug_data_for_client_tmp_logs")};
tya=function(a,b,c,d){g.J.call(this);this.Oe=b;this.pc=c;this.Ia=d;this.j=a(this,this,this,this,this);g.L(this,this.j);a=g.u(b);for(b=a.next();!b.done;b=a.next())g.L(this,b.value)};
uya=function(a,b,c,d){ZG(c,b,void 0,void 0,c.Ru);c.Dk?LJ(a.pc,d,c.Dk,b):ZG("adsClientErrorMessage is missing.",b);MJ(a,b,!0)};
xya=function(a,b,c){if(NJ(a.j,b))if(OJ(a.j,b).D=c?"filled":"not_filled",null===c){PJ(a.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.u(a.Oe);for(var d=c.next();!d.done;d=c.next())d.value.gk(b);MJ(a,b,!1)}else{PJ(a.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);PJ(a.pc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);var e=null!=(d=c.gB)?d:EJ(c.Ea,"metadata_type_sub_layouts");if(e)for(d=g.u(e),e=d.next();!e.done;e=d.next())PJ(a.pc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,e.value);e=
g.u(a.Oe);for(d=e.next();!d.done;d=e.next())d.value.hk(b);if(NJ(a.j,b))if(OJ(a.j,b).G)MJ(a,b,!1);else{PJ(a.pc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.j;if(!OJ(f,b))throw new BJ("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!f.Ef.Yq.get(b.slotType))throw new BJ("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");if(0==
c.layoutExitNormalTriggers.length&&0==c.layoutExitSkipTriggers.length&&0==c.layoutExitMuteTriggers.length&&0==c.layoutExitUserInputSubmittedTriggers.length&&0==c.jd.length)throw new BJ("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");QJ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);QJ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);QJ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);QJ(f,
"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);QJ(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.jd)}catch(n){n instanceof BJ?a.Cf(b,c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.Cf(b,c,new BJ("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");MJ(a,b,!0);return}OJ(a.j,b).K=!0;try{var h=a.j,l=OJ(h,b),m=h.Ef.Yq.get(b.slotType).get().build(h.D,h.B,b,c);m.init();l.layout=c;if(l.C)throw new BJ("Already had LayoutRenderingAdapter registered for slot",
void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");l.C=m;RJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);RJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);RJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);RJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);RJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.jd)}catch(n){vya(a,b);n instanceof BJ?a.Cf(b,
c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.Cf(b,c,new BJ("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");MJ(a,b,!0);return}PJ(a.pc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);f=g.u(a.Oe);for(d=f.next();!d.done;d=f.next())d.value.wj(b,c);vya(a,b);wya(a,b)}else a=a.Ia.get(),g.SJ(a.J.W())||TJ(a.J.W())||g.UJ(a.J.W())?a=!0:(ZG("Composite VOD on legacy path."),a=!1),a&&ZG("slot is unscheduled after been fulfilled.",
b,c)}};
yya=function(a,b,c){"core"!==b.gb&&PJ(a.pc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c)};
zya=function(a,b,c){PJ(a.pc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.u(a.Oe);for(var d=a.next();!d.done;d=a.next())d.value.wj(b,c)};
Aya=function(a,b,c){a=g.u(a.Oe);for(var d=a.next();!d.done;d=a.next())d.value.Rh(b,c)};
Bya=function(a,b,c){PJ(a.pc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.u(a.Oe);for(var d=a.next();!d.done;d=a.next())d.value.Oc(b,c)};
Cya=function(a,b,c,d){PJ(a.pc,mya(d),b,c);a=g.u(a.Oe);for(var e=a.next();!e.done;e=a.next())e.value.bd(b,c,d)};
vya=function(a,b){if(NJ(a.j,b)){OJ(a.j,b).K=!1;var c=VJ;b=OJ(a.j,b);var d=[].concat(g.pa(b.ma));saa(b.ma);c(a,d)}};
VJ=function(a,b){b.sort(function(f,h){function l(m){ZG("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):kya(f.category,l)-kya(h.category,l)});
var c=new Map;b=g.u(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,NJ(a.j,d.slot))if(OJ(a.j,d.slot).K)OJ(a.j,d.slot).ma.push(d);else{Dya(a.pc,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.u(Eya);for(d=b.next();!d.done;d=b.next())e=g.u(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&Fya(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&Gya(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&Hya(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
Iya(a,c)};
Fya=function(a,b,c){b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&Jya(a.j,d.slot)&&Kya(a,d.slot,d.layout,c)};
Gya=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())MJ(a,c.value.slot,!1)};
Hya=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(OJ(a.j,c.slot).D){case "not_filled":var d=!0;break a;default:d=!1}d&&(WJ(a.pc,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.QC(c.slot))}};
Iya=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;WJ(a.pc,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.u(a.Oe),e=d.next();!e.done;e=d.next())e.value.fk(c.slot);try{var f=a.j,h=c.slot,l=OJ(f,h);if(!l)throw new CJ("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!l.B)throw new CJ("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if("scheduled"!==l.j)throw new CJ("Tried to enter a slot from stage: "+
l.j,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(XJ(l))throw new CJ("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var m=g.u(YJ(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&XJ(p))throw new CJ("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:p.j},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(q){q instanceof CJ&&q.Dk?(LJ(a.pc,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
q.Dk,c.slot),ZG(q,c.slot,ZJ(a.j,c.slot),void 0,q.Ru)):(LJ(a.pc,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c.slot),ZG(q,c.slot));MJ(a,c.slot,!0);continue}c=OJ(a.j,c.slot);"scheduled"!==c.j&&$J(c.slot,c.j,"enterSlot");c.j="enter_requested";c.B.dH()}};
wya=function(a,b){if(NJ(a.j,b)&&XJ(OJ(a.j,b))&&ZJ(a.j,b)&&!Jya(a.j,b)){var c;PJ(a.pc,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=ZJ(a.j,b))?c:void 0);a=OJ(a.j,b);"entered"!==a.j&&$J(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.C.startRendering(a.layout)}};
Kya=function(a,b,c,d){if(NJ(a.j,b)){var e=a.pc,f;var h=(null==(f=lya.get(d))?void 0:f.Nw)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";PJ(e,h,b,c);a=OJ(a.j,b);"rendering"!==a.j&&$J(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.C.wf(c,d)}};
MJ=function(a,b,c){if(NJ(a.j,b)){a:switch(OJ(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(OJ(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(OJ(a.j,b).G=!0,!c))return;if(XJ(OJ(a.j,b)))OJ(a.j,b).G=!0,Lya(a,b,c);else{a:switch(OJ(a.j,b).D){case "fill_requested":c=!0;break a;default:c=!1}if(c)OJ(a.j,b).G=!0,NJ(a.j,b)&&(WJ(a.pc,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=OJ(a.j,b),b.D="fill_cancel_requested",b.S.iM());else{c=
ZJ(a.j,b);(d=a.Ia.get().J.W().experiments.ob("h5_enable_layout_unscheduling_events"))&&(c?a.Rh(b,c):ZG(Error("Layout is null for LayoutUnscheduled event."),b,c,void 0,!1));WJ(a.pc,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=OJ(a.j,b),f=b.slotEntryTrigger,h=e.Ca.get(f.triggerId);h&&(h.Fl(f),e.Ca.delete(f.triggerId));f=g.u(b.slotFulfillmentTriggers);for(h=f.next();!h.done;h=f.next()){h=h.value;var l=e.qa.get(h.triggerId);l&&(l.Fl(h),e.qa.delete(h.triggerId))}f=g.u(b.slotExpirationTriggers);
for(h=f.next();!h.done;h=f.next())if(h=h.value,l=e.ea.get(h.triggerId))l.Fl(h),e.ea.delete(h.triggerId);null!=e.layout&&(f=e.layout,aK(e,f.layoutExitNormalTriggers),aK(e,f.layoutExitSkipTriggers),aK(e,f.layoutExitMuteTriggers),aK(e,f.layoutExitUserInputSubmittedTriggers),aK(e,f.jd));e.S=void 0;null!=e.B&&(e.B.release(),e.B=void 0);null!=e.C&&(e.C.release(),e.C=void 0);e=a.j;OJ(e,b)&&(e=YJ(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);WJ(a.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
b);a=g.u(a.Oe);for(e=a.next();!e.done;e=a.next())e=e.value,e.jk(b),c&&!d&&e.Rh(b,c)}}}};
Lya=function(a,b,c){if(NJ(a.j,b)&&XJ(OJ(a.j,b))){var d=ZJ(a.j,b);if(d&&Jya(a.j,b))Kya(a,b,d,c?"error":"abandoned");else{WJ(a.pc,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=OJ(a.j,b);if(!e)throw new CJ("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");"enter_requested"!==e.j&&"entered"!==e.j&&"rendering"!==e.j&&$J(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.B)throw e.j="scheduled",new CJ("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");e.B.fH()}catch(f){f instanceof CJ&&f.Dk?(LJ(a.pc,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",f.Dk,b),ZG(f,b,void 0,void 0,f.Ru)):(LJ(a.pc,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),ZG(f,b))}}}};
Mya=function(a){this.slot=a;this.Ca=new Map;this.qa=new Map;this.ea=new Map;this.va=new Map;this.C=this.layout=this.B=this.S=void 0;this.K=this.G=!1;this.ma=[];this.j="not_scheduled";this.D="not_filled"};
XJ=function(a){return"enter_requested"===a.j||a.isActive()};
Nya=function(a,b,c,d,e,f){g.J.call(this);this.Ef=a;this.C=b;this.G=c;this.D=d;this.B=e;this.Ia=f;this.j=new Map};
YJ=function(a,b){return(a=a.j.get(b))?a:new Map};
OJ=function(a,b){return YJ(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
Oya=function(a){var b=[];a.j.forEach(function(c){c=g.u(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
NJ=function(a,b){return null!=OJ(a,b)};
Jya=function(a,b){a=OJ(a,b);if(b=null!=a.layout)a:switch(a.j){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
ZJ=function(a,b){(a=OJ(a,b))?null!=a.layout&&!a.layout&&ZG("Unexpected empty layout",b):ZG("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
Rya=function(a,b,c){if(0==c.length)throw new CJ("No "+Pya.get(b)+" triggers found for slot.",void 0,Qya(b));c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Ef.Dl.get(d.triggerType))throw new CJ("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
Qya=function(a){switch(a){case "TRIGGER_CATEGORY_SLOT_ENTRY":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_ENTRY_TRIGGER";case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_EXPIRATION_TRIGGER";case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_FULFILLMENT_TRIGGER";default:return"ADS_CLIENT_ERROR_MESSAGE_INVALID_TRIGGER"}};
QJ=function(a,b,c){c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Ef.Dl.get(d.triggerType))throw new BJ("No trigger adapter registered for "+Pya.get(b)+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
RJ=function(a,b,c,d){d=g.u(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Ef.Dl.get(e.triggerType);f.ql(c,e,b.slot,b.layout?b.layout:null);b.va.set(e.triggerId,f)}};
aK=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.va.get(c.triggerId);d&&(d.Fl(c),a.va.delete(c.triggerId))}};
$J=function(a,b,c){ZG("Slot stage was "+b+" when calling method "+c,a)};
Sya=function(a){return bK(a.Dw).concat(bK(a.Dl)).concat(bK(a.yq)).concat(bK(a.Lr)).concat(bK(a.Yq))};
bK=function(a){var b=[];a=g.u(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.nj&&b.push(c);return b};
Tya=function(a){g.J.call(this);var b=this;this.j=a;this.instance=null;g.ub(this,function(){g.sb(b.instance);b.instance=null})};
cK=function(a){return new Tya(a)};
Vya=function(a){g.J.call(this);this.Ig=a;this.j=Uya(this)};
Uya=function(a){var b=new tya(function(c,d,e,f){return new Nya(a.Ig.Ef,c,d,e,f,a.Ig.Ia)},new Set(Sya(a.Ig.Ef).concat(a.Ig.listeners)),a.Ig.pc,a.Ig.Ia);
g.L(a,b);return b};
dK=function(a){this.j=a};
eK=function(a,b,c,d){(a=a.j())||ZG("Could not initiate a command router instance.");HI(a,b,c,d)};
fK=function(){this.listeners=new Set};
gK=function(){};
Wya=function(a,b){a=b.bgp&&b.bgub;var c=b.upb;if(b.siub&&b.scs&&(a||c)){a=b.siub;var d=b.scs,e=b.bgub,f=b.bgp;b=window;var h=e?"//pagead2.googlesyndication.com/bg/"+g.Ae(e)+".js":"";e=b.document;var l={};d&&(l._scs_=d);l._bgu_=h;l._bgp_=f;l._li_="v_h.3.0.0.0";c&&(l._upb_=c);(c=b.GoogleTyFxhY)&&"function"==typeof c.push||(c=b.GoogleTyFxhY=[]);c.push(l);c=Ve(e).createElement("SCRIPT");c.type="text/javascript";c.async=!0;a=wba(g.Vd("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.Ae(a)+".js"});g.Hn(c,
a);(a=(b.GoogleTyFxhYEET||{})[c.src])?a():e.getElementsByTagName("head")[0].appendChild(c)}};
Xya=function(a,b,c,d,e){this.callback=a;this.slot=b;this.Kb=c;this.jc=d;this.Ia=e;this.j=null};
Zya=function(a,b,c,d){a.j&&ZG("Currently active request ongoing for slot. This should never happen",a.slot);a.j=b();a.j.then(function(e){a.j=null;d&&d(e);var f=e.hB?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.Kb.get(),l=a.slot.slotId,m=IJ(a.jc.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,gb:a.slot.gb,slotEntryTrigger:a.slot.slotEntryTrigger,slotFulfillmentTriggers:a.slot.slotFulfillmentTriggers,slotExpirationTriggers:a.slot.slotExpirationTriggers}),
n=hK(h.jb.get(),f,l),p={layoutId:n,layoutType:f,gb:"core"};e={layoutId:n,layoutType:f,hc:new Map,layoutExitNormalTriggers:[new Yya(h.j,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:"core",Ea:new DJ([new fya(e)]),zc:m(p)};xya(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof fg||uya(a.callback,a.slot,new CJ(e,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
$ya=function(a){if(null==a.j)a.callback.YI(a.slot);else try{a.j.cancel(),a.j=null,a.callback.YI(a.slot)}catch(b){a.j=null,uya(a.callback,a.slot,new CJ(b,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
iK=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.UF(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
jK=function(a,b){return b&&b.test(a)?!0:!1};
bza=function(a){return(a=aza&&aza.exec(a))?a[0]:""};
kK=function(a){var b=void 0===b?!1:b;return iK(jK(a,cza),a,b,"Trusted Stream URL")};
g.lK=function(a){var b=void 0===b?!1:b;return iK(jK(a,dza),a,b,"Trusted Image URL")};
fza=function(a){var b=void 0===b?!1:b;return iK(jK(a,eza),a,b,"Trusted Promoted Video Domain URL")};
hza=function(a){var b=void 0===b?!1:b;return iK(jK(a,gza),a,b,"Drm Licensor URL")};
jza=function(a,b){b=void 0===b?!1:b;return iK(jK(a,iza),a,b,"Captions URL")};
kza=function(a){a=new g.go(a);g.ho(a,document.location.protocol);g.io(a,document.location.hostname);document.location.port&&g.jo(a,document.location.port);return a.toString()};
mK=function(a){a=new g.go(a);g.ho(a,document.location.protocol);return a.toString()};
g.oK=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.B=lza++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||nK.AD_MARKER;this.namespace=c.namespace||"";if(a=c.color)a=a.toString(16),this.color="#"+Array(7-a.length).join("0")+a;this.tooltip=c.tooltip;this.icons=c.icons?c.icons.filter(function(d){return g.Zp(d.thumbnails,function(e){return g.lK(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
mza=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
nza=function(a,b){switch(a.style){case nK.CHAPTER_MARKER:return b?8:5;case nK.AD_MARKER:return 6;case nK.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.oza=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B};
g.pK=function(a){return"crn_"+a};
g.qK=function(a){return"crx_"+a};
pza=function(a,b,c,d,e,f,h,l,m){this.slot=b;this.Vf=c;this.Ra=h;this.Ka=l;this.Sc=m;this.j=new Xya(a,b,d,e,f)};
qza=function(a){var b;null==(b=a.Sc)||b.get().Xt(EJ(a.slot.Ea,"metadata_type_cue_point").identifier)};
rza=function(a,b,c,d,e,f){this.slot=b;this.Vf=c;this.j=new Xya(a,b,d,e,f)};
sza=function(a,b){this.callback=a;this.slot=b};
tza=function(a,b){return GJ(a,b.ue,b.slotType)?!0:!1};
uza=function(){};
rK=function(a,b,c,d,e,f,h){this.Vf=a;this.Kb=b;this.jc=c;this.Ia=d;this.Ra=e;this.Ka=f;this.Sc=h};
sK=function(){};
vza=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.j=d;this.Wb=e;this.jb=f};
xza=function(a){if(EJ(a.slot.Ea,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var b=wza(a,a.slot);tK(a.Wb.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[b]})}};
wza=function(a,b){var c=uK(a.jb.get(),a.slot.slotType),d=Object,e=d.assign;a=a.slot;if(b.slotEntryTrigger){var f=b.slotEntryTrigger;f=null!=f.triggeringSlotId&&f.triggeringSlotId===b.slotId?f.clone(c):f}else f=void 0;return e.call(d,{},a,{slotId:c,slotEntryTrigger:f,slotFulfillmentTriggers:yza(b.slotId,c,b.slotFulfillmentTriggers),slotExpirationTriggers:yza(b.slotId,c,b.slotExpirationTriggers)})};
yza=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next()){var f=d,h=f.push;e=e.value;e=null!=e.triggeringSlotId&&e.triggeringSlotId===a?e.clone(b):e;h.call(f,e)}return d};
g.vK=function(a,b){for(var c=g.u(Object.keys(b)),d=c.next(),e={};!d.done;e={placeholder:e.placeholder},d=c.next())d=d.value,e.placeholder=b[d],a=a.replace(new RegExp("\\$"+d,"gi"),function(f){return function(){return f.placeholder}}(e));
return a};
zza=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
Aza=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.Cf(a.slot,b,new BJ("Unknown layout received. Required LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):c()};
wK=function(a,b,c,d){g.lG.call(this);this.callback=a;this.C=d;this.j=[];this.B=new zza(a,b,c)};
yK=function(a,b,c,d,e,f,h){e=EJ(c.Ea,e);a=xK(a);var l=Nd(function(){d.Oc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.zc},function(){l()}))};
zK=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.u(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.J.sendVideoStatsEngageEvent(1,void 0,2):e?e():ZG("Tried to call engagePingCallback but it is null",h,l)}}else ZG("Companion AdUxClick received without a layoutId",h,l)};
AK=function(a){var b,c,d,e,f;return!(null==(b=a.get("active_view_viewable"))||!b.length)||!(null==(c=a.get("active_view_measurable"))||!c.length)||!(null==(d=a.get("active_view_fully_viewable_audible_half_duration"))||!d.length)||!(null==(e=a.get("audio_audible"))||!e.length)||!(null==(f=a.get("audio_measurable"))||!f.length)};
Bza=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.activeViewTracking)?void 0:b.trafficType)?c:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
BK=function(a){var b,c;return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",a.activeViewMeasurablePings||
[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",(null==(b=a.activeViewTracking)?void 0:b.activeViewAudioAudiblePings)||[]],["audio_measurable",(null==(c=a.activeViewTracking)?void 0:c.activeViewAudioMeasurablePings)||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",a.firstQuartilePings||[]],
["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]],["unmuted_impression",a.unmutedImpressionPings||[]],["unmuted_error",a.unmutedErrorPings||[]],["unmuted_mute",a.unmutedMutePings||[]],["unmuted_unmute",a.unmutedUnmutePings||[]],["unmuted_pause",a.unmutedPausePings||[]],["unmuted_resume",a.unmutedResumePings||[]],["unmuted_close",a.unmutedClosePings||[]],["unmuted_progress",a.unmutedProgressPings||[]],["unmuted_clickthrough",a.unmutedClickthroughPings||
[]],["unmuted_fullscreen",a.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",a.unmutedEndFullscreenPings||[]],["unmuted_abandon",a.unmutedAbandonPings||[]],["unmuted_start",a.unmutedStartPings||[]],["unmuted_first_quartile",a.unmutedFirstQuartilePings||[]],["unmuted_midpoint",a.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",a.unmutedThirdQuartilePings||[]],["unmuted_complete",a.unmutedCompletePings||[]],["unmuted_skip",a.unmutedSkipPings||[]]])};
Cza=function(a){switch(a){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen";
case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile";
case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null;
default:return null}};
CK=function(a,b,c,d,e){e=void 0===e?null:e;this.C=a;this.Ra=b;this.layoutId=d;this.D=0;this.K=null;this.G=void 0;this.j=new Set;this.B=Array.from(this.C.get("progress")||[]);this.B.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.S={adPlacementConfig:c,zX:e}};
DK=function(){return["metadata_type_ad_placement_config"]};
xK=function(a){var b=a.Ra.get();return EK(b,a.S)};
FK=function(a,b,c){for(c=void 0===c?!1:c;a.D<a.B.length;){var d=a.B[a.D];if(d.offsetMilliseconds<=b||c)Dza(a,"progress",[d]),a.D++;else break}};
GK=function(a,b){return a.j.has(b)};
Eza=function(a){return a.B.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
Fza=function(a,b,c){a.K=b;a.G=c};
Dza=function(a,b,c){var d,e=a.Ra.get(),f=a.layoutId,h=null!=(d=a.K)?d:void 0;a=a.G;c=void 0===c?[]:c;if(d=Gza(e.B.get(),f))for(b=e.Xb.get().Gh(f,b),f=EK(e,Hza(d),d,h,a),c=g.u(c),h=c.next();!h.done;h=c.next())h=h.value,h.baseUrl&&e.AA.send(h.baseUrl,f,b);else ZG("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
Iza=function(a,b,c,d,e){kG.call(this,"action-companion",a,b,c,d,e)};
Jza=function(a,b,c,d,e,f,h,l){wK.call(this,a,b,c,d);this.Ra=e;this.Ne=f;this.K=l;this.nj=!0;this.D=null;this.G=EJ(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.Ne().Oe.add(this);a=EJ(c.Ea,"metadata_type_ad_placement_config");this.yb=new CK(c.hc,this.Ra,a,c.layoutId)};
Kza=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];DK().forEach(function(b){a.push(b)});
return{ue:a,rf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
Lza=function(a,b,c,d,e){kG.call(this,"image-companion",a,b,c,d,e)};
Mza=function(a,b,c,d,e,f,h,l){wK.call(this,a,b,c,d);this.Ra=e;this.Ne=f;this.K=l;this.nj=!0;this.D=null;this.G=EJ(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.Ne().Oe.add(this);a=EJ(c.Ea,"metadata_type_ad_placement_config");this.yb=new CK(c.hc,this.Ra,a,c.layoutId)};
Nza=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];DK().forEach(function(b){a.push(b)});
return{ue:a,rf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
Oza=function(a,b,c,d,e){kG.call(this,"shopping-companion",a,b,c,d,e)};
Pza=function(a,b,c,d,e,f,h,l){wK.call(this,a,b,c,d);this.Ra=e;this.Ne=f;this.K=l;this.nj=!0;this.D=null;this.G=EJ(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.Ne().Oe.add(this);a=EJ(c.Ea,"metadata_type_ad_placement_config");this.yb=new CK(c.hc,this.Ra,a,c.layoutId)};
Qza=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];DK().forEach(function(b){a.push(b)});
return{ue:a,rf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
Rza=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_PERCENT"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.percent)};
Sza=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_MILLISECONDS"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.milliseconds)&&!isNaN(Number(a.adVideoOffset.milliseconds))};
Tza=function(a,b,c,d){this.Yb=a;this.layoutId=c;this.G=d;this.B=[];this.j=[];this.C=this.D=0;a=g.u(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,c=void 0,null==(c=b.adVideoOffset)?void 0:c.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":Rza(b)?this.B.push(b):ZG("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":Sza(b)?this.j.push(b):ZG("Invalid AdVideoProgressMillisecondsCommand");break;default:ZG("Unknown or invalid AdVideoProgressOffSet kind")}this.B.sort(function(e,
f){return e.adVideoOffset.percent-f.adVideoOffset.percent});
this.j.sort(function(e,f){return Number(e.adVideoOffset.milliseconds)-Number(f.adVideoOffset.milliseconds)})};
Uza=function(a,b,c,d,e,f){wK.call(this,a,b,c,d);this.Ra=e;this.Ne=f;this.nj=!0;this.Ne().Oe.add(this);a=EJ(c.Ea,"metadata_type_ad_placement_config");this.yb=new CK(c.hc,this.Ra,a,c.layoutId)};
Vza=function(){var a=["metadata_type_action_companion_ad_renderer"];DK().forEach(function(b){a.push(b)});
return{ue:a,rf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
Wza=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.Ka=d;this.Ra=e;this.Ia=f;a=EJ(c.Ea,"metadata_type_ad_placement_config");this.yb=new CK(c.hc,this.Ra,a,c.layoutId)};
Xza=function(a,b,c,d,e,f){wK.call(this,a,b,c,d);this.Ka=e;this.G=f;this.D=!1};
HK=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;kG.call(this,"ad-action-interstitial",a,b,c,d);this.interactionLoggingClientData=d;this.kR=e;this.XJ=f};
IK=function(a,b,c,d,e){wK.call(this,a,b,c,d);a=EJ(c.Ea,"metadata_type_ad_placement_config");this.yb=new CK(c.hc,e,a,c.layoutId)};
Yza=function(){var a=["metadata_type_ad_action_interstitial_renderer"];DK().forEach(function(b){a.push(b)});
return{ue:a,rf:["LAYOUT_TYPE_ENDCAP"]}};
JK=function(a,b){return zJ(a,b.ue,b.rf)?!0:!1};
KK=function(a,b,c){this.j=a;this.Wb=b;this.jb=c};
Zza=function(a,b,c,d,e){kG.call(this,"ads-engagement-panel",a,b,c,d,e)};
$za=function(a,b,c,d,e,f,h,l){wK.call(this,a,b,c,d);this.Ra=e;this.Ne=f;this.K=l;this.nj=!0;this.D=null;this.G=EJ(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.Ne().Oe.add(this);a=EJ(c.Ea,"metadata_type_ad_placement_config");this.yb=new CK(c.hc,this.Ra,a,c.layoutId)};
aAa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];DK().forEach(function(b){a.push(b)});
return{ue:a,rf:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
bAa=function(a,b,c,d,e){this.Cc=a;this.Ra=b;this.Ne=c;this.j=d;this.Xb=e};
cAa=function(a,b,c){kG.call(this,"player-underlay",a,{},b,c);this.interactionLoggingClientData=c};
LK=function(a,b,c,d){wK.call(this,a,b,c,d)};
dAa=function(a){this.Cc=a};
eAa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ra=d;this.j=e;a=EJ(this.layout.Ea,"metadata_type_ad_placement_config");this.yb=new CK(c.hc,this.Ra,a,c.layoutId)};
fAa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];DK().forEach(function(b){a.push(b)});
return{ue:a,rf:["LAYOUT_TYPE_FORECASTING"]}};
gAa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ra=d;this.j=e;a=EJ(this.layout.Ea,"metadata_type_ad_placement_config");this.yb=new CK(c.hc,this.Ra,a,c.layoutId)};
MK=function(a,b,c,d){this.Ia=a;this.Ra=b;this.j=c;this.Xb=d};
hAa=function(a,b,c,d){kG.call(this,"player-overlay-layout",a,{},c,d);this.videoAdDurationSeconds=b;this.interactionLoggingClientData=d};
iAa=function(a,b,c,d,e,f,h,l){wK.call(this,a,b,c,d);this.Ka=e;this.Ra=f;this.K=h;this.G=l;this.D=!1;this.S=EJ(this.layout.Ea,"metadata_type_linked_player_bytes_layout_id")};
NK=function(a,b,c,d,e,f,h,l){wK.call(this,a,b,c,d);this.Ka=e;this.Ra=f;this.K=h;this.G=l;this.D=!1;this.S=EJ(this.layout.Ea,"metadata_type_linked_player_bytes_layout_id")};
jAa=function(){return{ue:["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"],rf:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
kAa=function(a,b,c){kG.call(this,"ad-message",a,void 0,b,c)};
OK=function(a,b,c,d,e,f){wK.call(this,c,a,b,d);this.Ka=e;this.Ia=f};
lAa=function(){return{ue:["metadata_type_valid_ad_message_renderer"],rf:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
PK=function(a,b,c,d,e,f,h,l,m){return JK(c,jAa())?new NK(a,b,c,d,e,f,h,l):JK(c,{ue:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],rf:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new iAa(a,b,c,d,e,f,h,l):JK(c,Yza())?new IK(a,b,c,d,f):JK(c,lAa())?new OK(b,c,a,d,e,m):JK(c,{ue:["metadata_type_instream_ad_player_overlay_renderer"],rf:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?
new Xza(a,b,c,d,e,l):null};
mAa=function(a,b,c,d,e,f){this.Cc=a;this.Ka=b;this.Ra=c;this.B=d;this.j=e;this.Ia=f};
nAa=function(a,b,c){this.Ka=a;this.Ra=b;this.Ia=c};
oAa=function(a,b,c,d,e,f,h,l,m,n,p){g.J.call(this);this.callback=a;this.j=b;this.slot=c;this.layout=d;this.pe=e;this.Je=f;this.bb=h;this.Sc=l;this.Fe=m;this.Ne=n;this.Ka=p;this.nj=!0;this.B=void 0;this.C=!1};
QK=function(a,b,c,d,e,f){g.J.call(this);this.callback=a;this.Fe=b;this.Ka=c;this.Wc=d;this.Ne=e;this.Ia=f;this.nj=!0;this.YN=!1};
pAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){QK.call(this,a,d,e,f,q,r);this.bb=b;this.Sc=c;this.C=h;this.slot=l;this.layout=m;this.pe=n;this.D=p;this.B=[];this.j=-1;this.K=this.G=!1};
sAa=function(a,b,c){var d=a.B[a.j];a.j===a.B.length-1&&ZG("Unexpected skip with target requested during the last sublayout",d.Nc(),d.Ab(),{requestingSlot:b,requestingLayout:c});if(c.layoutId!==RK(d,b,c))ZG("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",d.Nc(),d.Ab(),{requestingSlot:b,requestingLayout:c});else{var e=EJ(d.Ab().Ea,"metadata_type_ad_pod_skip_target");if(e&&0<e&&e<a.B.length){a:{for(var f=e;f<a.B.length;){if(e===EJ(a.B[f].Ab().Ea,"metadata_type_ad_pod_skip_index")){e=
f;break a}f++}e=void 0}void 0===e?ZG("Skip-to-index was requested but target index was not found",d.Nc(),d.Ab(),{requestingSlot:b,requestingLayout:c}):a.tf()?qAa(a,d.Ab(),e,"skipped"):rAa(a,d.Nc(),d.Ab(),e)}else ZG("Invalid ad pod skip target index",d.Nc(),d.Ab(),{requestingSlot:b,requestingLayout:c})}};
RK=function(a,b,c){var d=EJ(a.Ab().Ea,"metadata_type_linked_in_player_layout_id");return d?d:(ZG("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.Nc(),a.Ab(),{requestingSlot:b,requestingLayout:c}),null)};
tAa=function(a,b,c){SK(a,a.slot,b,c,function(){var d=a.S;d?(a.S=void 0,d(b)):ZG("Expected further action after sublayout exit is confirmed",a.slot,a.layout)})};
vAa=function(a,b,c,d){a.tf()?qAa(a,c,a.j+1,d):SK(a,b,c,d,function(){uAa(a,a.j+1)})};
qAa=function(a,b,c,d){SK(a,a.slot,b,d,function(){if(c>=a.B.length+1||0>c)ZG("Unexpected target sublayout index",a.slot,a.layout,{targetSubLayoutIndex:c});else{a.j=c;if(c===a.B.length){var e=a.bb.get().Kf(1).clientPlaybackNonce;TK(a.D,a.layout)}else e=a.B[c].Ab().layoutId;a.Sc.get().finishSegmentByCpn(b.layoutId,e)}})};
rAa=function(a,b,c,d){SK(a,b,c,"skipped",function(){uAa(a,d)})};
SK=function(a,b,c,d,e){if(!a.K){var f=a.B[a.j];f?(f.Ab().layoutId!==c.layoutId&&ZG("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.Ab().layoutId}),a.K=!0,f.wf(f.Ab(),d),Cya(a.C,b,c,d),a.K=!1,a.G=!1,a.ma?(a.ma(),wAa(a.Wc.get())):e()):ZG("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
uAa=function(a,b){a.j===a.B.length-1?(a.j++,TK(a.D,a.layout),wAa(a.Wc.get())):xAa(a,b)};
xAa=function(a,b){if(-1===a.j&&(a.callback.Oc(a.slot,a.layout),0<b)){ZG("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});return}a.j=b;a.G=!0;b=a.B[a.j];if(0<a.j){a=a.Wc.get();a.B=!1;var c={};a.j&&a.videoId&&(c.cttAuthInfo={token:a.j,videoId:a.videoId});iI("ad_to_ad",c)}b.startRendering(b.Ab())};
yAa=function(a){return!a.pA.isPlaying()&&a.state.isPlaying()};
UK=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
VK=function(a){var b=[];if(a){a=g.u(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;void 0!==d&&(d="boolean"===typeof d?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")};
WK=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
XK=function(a){return 1===a||2===a};
YK=function(a,b){b=void 0===b?0:b;if(a instanceof WK)return a;a=a&&a instanceof Error?a:Error(""+a);XK(b)?g.TF(a):g.UF(a);return new WK(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
g.AAa=function(a){return(a=zAa[a.toString()])?a:"LICENSE"};
BAa=function(a,b){function c(){var d=g.Ja.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.pa(d))}
a.addEventListener("playing",c)};
g.ZK=function(){aD.apply(this,arguments)};
$K=function(a,b,c,d,e){this.sampleRate=void 0===a?0:a;this.numChannels=void 0===b?0:b;this.spatialAudioType=void 0===c?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=void 0===d?!1:d;this.B=void 0===e?0:e};
bL=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||CAa(a,b);this.j=g.aL[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&"UNKNOWN"!==d&&"RECTANGULAR"!==d?0:e;this.projectionType=d?"EQUIRECTANGULAR"===d&&2===e?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.aL[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+("EQUIRECTANGULAR"===c||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===c||"MESH"===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));
this.qualityLabel=a;this.B=l||"";this.primaries=m||""};
CAa=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=cL[0];for(var d=0;d<cL.length;d++){var e=cL[d],f=g.aL[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
eL=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.Zb||(c.Zb=16E3);Object.assign(this,c);a=g.u(this.id.split(";"));this.itag=a.next().value;this.j=a.next().value;this.containerType=DAa(b);this.Db=dL[this.itag]||""};
fL=function(a){return"9"===a.Db||"("===a.Db||"9h"===a.Db||"(h"===a.Db};
EAa=function(a){return"H"===a.Db||"h"===a.Db};
FAa=function(a){return"9h"===a.Db||"(h"===a.Db};
gL=function(a){return"1"===a.Db||"1h"===a.Db};
hL=function(a){return"mac3"===a.Db||"meac3"===a.Db||"m"===a.Db};
iL=function(a){return"MAC3"===a.Db||"MEAC3"===a.Db||"M"===a.Db};
g.jL=function(a){return 1===a.containerType};
kL=function(a){return"application/x-mpegURL"===a.mimeType};
lL=function(a,b){return{itag:+a.itag,Zj:b?0:a.lastModified,xtags:a.j||""}};
mL=function(a,b){a=lL(a,b);return a.itag+";"+(a.Zj||0)+";"+a.xtags};
GAa=function(a){var b=navigator.mediaCapabilities;if(null==b||!b.decodingInfo||"f"===a.Db)return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:8*a.Zb||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:8*a.Zb||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.B=d})};
nL=function(a){return/(opus|mp4a|dtse|ac-3|ec-3)/.test(a)};
HAa=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)};
oL=function(a){return a.includes("vtt")||a.includes("text/mp4")};
DAa=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};
pL=function(a,b,c,d,e,f){var h=new $K;b in g.aL||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.aL[b],d=Math.round(16*e/9));f=new bL(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new eL(c,a,{audio:h,video:f})};
IAa=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.Uu)?void 0:c.toFixed(0))+", "+(null==(d=a.Zb)?void 0:d.toFixed(0))+")"};
qL=function(){var a=g.Ta("yt.player.utils.videoElement_");a||(a=g.lf("VIDEO"),g.Sa("yt.player.utils.videoElement_",a));return a};
rL=function(a){var b=qL();return!!(b&&b.canPlayType&&b.canPlayType(a))};
tL=function(a){if(/opus/.test(a)&&g.sL&&!Hu("38")&&!g.BC())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(JAa&&window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Hna())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!rL(a)};
KAa=function(a){try{var b=tL('video/mp4; codecs="avc1.42001E"')||tL('video/webm; codecs="vp9"');return(tL('audio/mp4; codecs="mp4a.40.2"')||tL('audio/webm; codecs="opus"'))&&(b||!a)||rL('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
LAa=function(){var a=qL();return!(!a.webkitSupportsPresentationMode||"function"!==typeof a.webkitSetPresentationMode)};
MAa=function(){var a=qL();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
uL=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
vL=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)};
wL=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};
xL=function(a,b){return 0<=wL(a,b)};
NAa=function(a,b){if(!a)return NaN;b=wL(a,b);return 0<=b?a.start(b):NaN};
yL=function(a,b){if(!a)return NaN;b=wL(a,b);return 0<=b?a.end(b):NaN};
zL=function(a){return a&&a.length?a.end(a.length-1):NaN};
AL=function(a,b){a=yL(a,b);return 0<=a?a-b:0};
BL=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 uL(d,e)};
CL=function(a,b,c,d){g.lG.call(this);var e=this;this.Zd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.sW={error:function(){!e.isDisposed()&&e.isActive&&e.ra("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.ra("updateend",e)}};
g.mG(this.Zd,this.sW);this.LF=this.isActive};
DL=function(a,b,c,d,e,f){g.lG.call(this);var h=this;this.xc=a;this.oh=b;this.id=c;this.containerType=d;this.Db=e;this.kh=f;this.CO=this.ND=this.Nf=null;this.EG=!1;this.appendWindowStart=this.timestampOffset=0;this.gM=uL([],[]);this.tC=!1;this.MD=[];this.PA=OAa?[]:void 0;this.Hd=function(m){return h.ra(m.type,h)};
var l;if(null==(l=this.xc)?0:l.addEventListener)this.xc.addEventListener("updateend",this.Hd),this.xc.addEventListener("error",this.Hd)};
EL=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
FL=function(a,b){this.resource=a;this.j=void 0===b?!1:b;this.B=!1};
GL=function(a,b,c){c=void 0===c?!1:c;g.J.call(this);this.mediaElement=a;this.Wa=b;this.isView=c;this.K=0;this.D=!1;this.G=!0;this.ea=0;this.callback=null;this.ma=!1;this.Wa||(this.oh=this.mediaElement.Gb());this.events=new g.ZK(this);g.L(this,this.events);this.C=new FL(this.Wa?window.URL.createObjectURL(this.Wa):this.oh.webkitMediaSourceURL,!0);a=this.Wa||this.oh;bD(this.events,a,["sourceopen","webkitsourceopen"],this.g9);bD(this.events,a,["sourceclose","webkitsourceclose"],this.f9);this.S={updateend:this.V1}};
PAa=function(){return!!(window.MediaSource||HL&&window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
QAa=function(a,b){IL(a)?g.Qf(function(){b(a)}):a.callback=b};
SAa=function(a,b,c){if(RAa){var d;JL(a.mediaElement,{l:"mswssb",sr:null==(d=a.mediaElement.xa)?void 0:KL(d)},!1);g.mG(b,a.S,a);g.mG(c,a.S,a)}a.j=b;a.B=c;g.L(a,b);g.L(a,c)};
TAa=function(a,b,c,d){d=b.mimeType+(void 0===d?"":d);var e=c.mimeType;b=b.Db;c=c.Db;var f,h=null==(f=a.Wa)?void 0:f.addSourceBuffer(e),l;f="fakesb"===d.split(";")[0]?void 0:null==(l=a.Wa)?void 0:l.addSourceBuffer(d);a.oh&&(a.oh.webkitSourceAddId("0",e),a.oh.webkitSourceAddId("1",d));l=new DL(h,a.oh,"0",DAa(e),c,!1);d=new DL(f,a.oh,"1",DAa(d),b,!0);SAa(a,l,d)};
LL=function(a){return!!a.j||!!a.B};
IL=function(a){try{return"open"===ML(a)}catch(b){return!1}};
ML=function(a){if(a.Wa)return a.Wa.readyState;switch(a.oh.webkitSourceState){case a.oh.SOURCE_OPEN:return"open";case a.oh.SOURCE_ENDED:return"ended";default:return"closed"}};
UAa=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||HL&&window.ManagedMediaSource};
VAa=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Zd:a.j,f=a.B.isView()?a.B.Zd:a.B,h=new GL(a.mediaElement,a.Wa,!0);h.C=a.C;SAa(h,new CL(e,b,c,d),new CL(f,b,c,d));IL(a)||a.j.Jr(a.j.Xc());return h};
WAa=function(a){var b;null==(b=a.j)||b.Jy();var c;null==(c=a.B)||c.Jy();a.G=!1};
NL=function(){var a=this;this.ZY=this.hZ=paa;this.promise=new g.Sf(function(b,c){a.hZ=b;a.ZY=c})};
OL=function(){g.J.call(this);this.VH=!1;this.resource=null;this.S=this.K=!1;this.D=new g.Gd;this.xa=null;g.L(this,this.D)};
XAa=function(a){a=a.jD();return 1>a.length?NaN:a.end(a.length-1)};
YAa=function(a){!a.B&&PAa()&&(a.C?a.C.then(function(){return YAa(a)}):a.Lf()||(a.B=a.jt()))};
ZAa=function(a){a.B&&(a.B.dispose(),a.B=void 0)};
JL=function(a,b,c){var d;(null==(d=a.xa)?0:d.wd())&&a.xa.ya("rms",b,void 0===c?!1:c)};
$Aa=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||10<c||(a.play(),g.jC(function(){$Aa(a,a.getCurrentTime(),c+1)},500))};
aBa=function(a,b){a.resource&&a.resource.equals(b)||(a.resource&&a.resource.dispose(),a.resource=b)};
PL=function(a){return AL(a.Kh(),a.getCurrentTime())};
bBa=function(a,b){if(0===a.yk()||0<a.rg())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.jD(),a.length||!c)?xL(a,b):c};
dBa=function(a){a.Lf()&&(cBa&&a.xa&&a.xa.Cu("rs_s"),cE&&0<a.getCurrentTime()&&a.seekTo(0),a.FJ(),a.load(),aBa(a,null));delete a.C};
eBa=function(a){switch(a.rg()){case 2:return"progressive.net.retryexhausted";case 3:return"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
g.QL=function(a,b,c){this.Ah=void 0===b?null:b;this.seekSource=void 0===c?null:c;this.state=a||64};
RL=function(a,b){return fBa(a,b.getCurrentTime(),(0,g.OD)(),PL(b))};
SL=function(a,b,c,d){if(!(b===a.state&&c===a.Ah&&d===a.seekSource||void 0!==b&&(b&128&&!c||b&2&&b&16))){var e;if(e=b)e=b||a.state,e=!!(e&16||e&32);a=new g.QL(b,c,e?d?d:a.seekSource:null)}return a};
TL=function(a,b,c){return SL(a,a.state|b,null,void 0===c?null:c)};
UL=function(a,b){return SL(a,a.state&~b,null,null)};
VL=function(a,b,c,d){return SL(a,(a.state|b)&~c,null,void 0===d?null:d)};
g.aH=function(a,b){return!!(a.state&b)};
g.gBa=function(a,b){return b.state===a.state&&b.Ah===a.Ah};
g.WL=function(a){return g.aH(a,8)&&!g.aH(a,2)&&!g.aH(a,1024)};
hBa=function(a){return a.isPlaying()&&!g.aH(a,16)&&!g.aH(a,32)};
g.XL=function(a){return g.aH(a,1)&&!g.aH(a,2)};
YL=function(a){return g.aH(a,128)?-1:g.aH(a,2)?0:g.aH(a,2048)?3:g.aH(a,64)?-1:g.aH(a,1)&&!g.aH(a,32)?3:g.aH(a,8)?1:g.aH(a,4)?2:-1};
$L=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){g.J.call(this);var v=this;this.callback=a;this.slot=b;this.layout=c;this.Ra=d;this.Xb=e;this.Ka=f;this.Wc=h;this.jg=l;this.Yb=m;this.NE=n;this.position=q;this.g_=r;this.Ia=t;this.nj=!0;this.oZ=!1;this.Pc="not_rendering";this.JD=!1;a=EJ(this.layout.Ea,"metadata_type_ad_placement_config");this.yb=new CK(c.hc,this.Ra,a,c.layoutId);var x;a=(null==(x=ZL(this))?void 0:x.progressCommands)||[];this.X9=new Tza(m,a,c.layoutId,function(){return v.mz()});
this.uM=Nd(function(){v.callback.Oc(v.slot,v.layout)});
this.KG=Nd(function(){"rendering_stop_requested"!==v.Pc&&p(v);v.layoutExitReason?v.callback.bd(v.slot,v.layout,v.layoutExitReason):ZG("Received layout exit signal when not in layout exit flow.",v.slot,v.layout)})};
ZL=function(a){return EJ(a.layout.Ea,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
aM=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.Pc){FK(a.yb,1E3*b,c);a.JD||FK(a.yb,1E3*b,void 0===c?!1:c);var d=a.mz();if(d&&(d/=1E3,(b>=.25*d||c)&&a.yd("first_quartile"),(b>=.5*d||c)&&a.yd("midpoint"),(b>=.75*d||c)&&a.yd("third_quartile"),a=a.X9,b*=1E3,c=a.G())){for(;a.D<a.B.length;)if(d=a.B[a.D],d.adVideoOffset.percent*c<=b)a.Yb.get().executeCommand(d.command,a.layoutId),a.D++;else break;for(;a.C<a.j.length;)if(c=a.j[a.C],Number(c.adVideoOffset.milliseconds)<=b)a.Yb.get().executeCommand(c.command,
a.layoutId),a.C++;else break}}};
jBa=function(a){0===a.position&&(a.Wc.get(),a=EJ(a.layout.Ea,"metadata_type_ad_placement_config").kind,a={adBreakType:iBa(a)},jI("ad_bl"),g.hI(a))};
bM=function(a,b,c){gI(a,c)||kI(a,b,c);gI(a,"video_to_ad")||kI(a,b,"video_to_ad");gI(a,"ad_to_video")||kI(a,b,"ad_to_video");gI(a,"ad_to_ad")||kI(a,b,"ad_to_ad")};
kBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){$L.call(this,a,b,c,d,e,f,h,m,n,p,q,r,t,v);var x=this;this.Pd=l;this.bI=!0;this.FO=this.aj=0;this.timer=new g.gg(200);this.timer.Ua("tick",function(){x.Ic()});
g.L(this,this.timer)};
lBa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.u(DK()),c=b.next();!c.done;c=b.next())a.push(c.value);return{ue:a,rf:["LAYOUT_TYPE_MEDIA_BREAK"]}};
nBa=function(a){a.FO=Date.now();mBa(a,a.aj);a.timer.start()};
mBa=function(a,b){b={current:b/1E3,duration:a.mz()/1E3};a.Pd.get().Ta("onAdPlaybackProgress",b)};
eM=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B,G,F,I){$L.call(this,a,b,c,d,e,m,p,r,t,x,B,G,F,I);var P=this;this.uf=f;this.Fe=h;this.bb=l;this.Dc=n;this.Pd=q;this.Ag=v;this.adCpn="";this.tf()||(this.vI=new g.au(function(){P.lA("load_timeout",new BJ("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4),a=cM(this.Ia.get()),I=dM(I.get()),a&&I&&(this.eA=new g.au(function(){var R=EJ(c.Ea,"metadata_type_preload_player_vars");
R&&P.Fe.get().J.preloadVideoByPlayerVars(R,2,300)})))};
oBa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.u(DK()),c=b.next();!c.done;c=b.next())a.push(c.value);return{ue:a,rf:["LAYOUT_TYPE_MEDIA"]}};
pBa=function(a,b,c,d,e,f,h){QK.call(this,a,b,c,d,f,h);this.j=e};
sBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B,G,F,I,P){if(JK(d,{ue:["metadata_type_sub_layouts"],rf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||void 0!==d.gB&&"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"===d.layoutType){var R,Z=null!=(R=d.gB)?R:EJ(d.Ea,"metadata_type_sub_layouts");a=new pAa(a,q,P,p,r,v,b,c,d,f,h,e,I);e=[];for(f={Pv:0};f.Pv<Z.length;f={Pv:f.Pv},f.Pv++){P=qBa({Oc:a.j9.bind(a),bd:a.l9.bind(a),bF:a.bF.bind(a),Cf:a.k9.bind(a)},c,Z[f.Pv],l,m,n,p,q,r,t,v,x,B,G,F,function(ma){return function(ua){ua.wf(Z[ma.Pv],
"normal")}}(f),f.Pv,Z.length,I);
if(!P)return;e.push(P)}a.B=e;return a}if(rBa(c,I.get())&&JK(d,{ue:[],rf:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(v=qBa({Oc:function(){},
bd:function(){},
bF:function(){return void TK(h,d)},
Cf:function(){}},c,d,l,m,n,p,q,r,t,v,x,B,G,F,function(){},0,1,I))?new oAa(a,v,c,d,f,h,q,P,p,e,r):v;
if(JK(d,{ue:[],rf:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=qBa({Oc:a.Oc.bind(a),bd:a.bd.bind(a),bF:function(){},
Cf:a.Cf.bind(a)},c,d,l,m,n,p,q,r,t,v,x,B,G,F,function(){TK(h,d)},0,1,I))?new pBa(a,p,r,v,c,e,I):c};
qBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B,G,F){if(JK(c,lBa()))return new kBa(a,b,c,d,e,m,p,q,r,t,function(){},x,B,G,F);
if(JK(c,oBa()))return yJ(c.Ea,"metadata_type_ad_intro")?new eM(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,function(I){q.get().Ta("onAdIntroStateChange",I)},x,B,G,F):new eM(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,function(I){q.get().ME(I)},x,B,G,F)};
rBa=function(a,b){var c=EJ(a.Ea,"metadata_type_eligible_for_ssap");return void 0===c?(ZG("Expected SSAP eligibility in PlayerBytes factory",a),!1):b.tf(c)};
fM=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.bb=d;this.Sc=e;this.Hf=f;this.Ka=h;this.yb=l;this.Ra=m;this.D=n;this.driftRecoveryMs=EJ(this.layout.Ea,"metadata_type_drift_recovery_ms")||null};
uBa=function(a){var b=EJ(a.layout.Ea,"metadata_type_layout_enter_ms"),c=EJ(a.layout.Ea,"metadata_type_layout_exit_ms");a=a.Hf.get();b=tBa(a.C,b,c);return Math.min(c,null!==b?b:Infinity)};
vBa=function(a,b){var c;gM(a.Ra.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.bb.get().wv)?void 0:c.clientPlaybackNonce,adClientData:a.layout.zc.adClientDataEntry},b)})};
wBa=function(a,b,c,d,e,f,h,l,m,n,p){fM.call(this,a,b,c,d,e,f,h,l,m,n);this.C=p;this.B=this.j=null;a=g.u(this.C);for(b=a.next();!b.done;b=a.next())b=b.value,yJ(b.Ab().Ea,"metadata_type_survey_overlay")&&(this.B=b.Ab().layoutId)};
yBa=function(a,b){var c=xBa(a,b);a.j={Zl:c};c?c.startRendering(c.Ab()):b===a.B&&ZG("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
xBa=function(a,b){return null==b?null:a.C.find(function(c){return c.Ab().layoutId===b})||null};
zBa=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=yJ(b.Ea,"metadata_type_survey_overlay"),r,t=(null==(r=EJ(a.Ea,"metadata_type_fulfilled_layout"))?void 0:EJ(r.Ea,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.xD(c,t,2,f,d,e,a.slotId),n.wi("ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.hC(c,t,2,f,d,e,a.slotId);n.wi("ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return ZG("Unexpected failure to add to playback timeline",
a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&ZG("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):ZG("Invalid timeline playback ID");d+f>e&&h.FF(p,e-d);return p};
ABa=function(a,b){var c=EJ(b.Ea,"metadata_type_sodar_extension_data");if(c)try{Wya(0,c)}catch(d){ZG("Unexpected error when loading Sodar",a,b,{error:d})}};
CBa=function(a,b,c,d,e,f){BBa(a,b,new g.$G(c,new g.QL),d,e,!1,f)};
BBa=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;yAa(c)&&UK(e,0,null)&&(!GK(a,"impression")&&h&&h(),a.yd("impression"));GK(a,"impression")&&(g.cH(c,4)&&!g.cH(c,2)&&a.Gh("pause"),0>bH(c,4)&&!(0>bH(c,2))&&a.Gh("resume"),g.cH(c,16)&&.5<=e&&a.Gh("seek"),f&&g.cH(c,2)&&DBa(a,c.state,b,d,e))};
DBa=function(a,b,c,d,e,f,h){if(GK(a,"impression")){var l=1>=Math.abs(d-e);EBa(a,b,l?d:e,c,d,f,h&&l);l&&a.yd("complete")}};
EBa=function(a,b,c,d,e,f,h){FK(a,1E3*c,h);0>=e||0>=c||(null==b?0:g.aH(b,16))||(null==b?0:g.aH(b,32))||(UK(c,.25*e,d)&&(f&&!GK(a,"first_quartile")&&f("first"),a.yd("first_quartile")),UK(c,.5*e,d)&&(f&&!GK(a,"midpoint")&&f("second"),a.yd("midpoint")),UK(c,.75*e,d)&&(f&&!GK(a,"third_quartile")&&f("third"),a.yd("third_quartile")))};
FBa=function(a,b){GK(a,"impression")&&a.Gh(b?"fullscreen":"end_fullscreen")};
GBa=function(a){GK(a,"impression")&&a.Gh("clickthrough")};
HBa=function(a){a.Gh("active_view_measurable")};
IBa=function(a){GK(a,"impression")&&!GK(a,"seek")&&a.Gh("active_view_fully_viewable_audible_half_duration")};
JBa=function(a){GK(a,"impression")&&!GK(a,"seek")&&a.Gh("active_view_viewable")};
KBa=function(a){GK(a,"impression")&&!GK(a,"seek")&&a.Gh("audio_audible")};
LBa=function(a){GK(a,"impression")&&!GK(a,"seek")&&a.Gh("audio_measurable")};
MBa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Sc=d;this.yb=e;this.Ka=f;this.Ce=h;this.Xb=l;this.uf=m;this.Ia=n;this.Ra=p;this.bb=q;this.bI=!0;this.fd=this.Pc=null;this.adCpn=void 0};
NBa=function(a,b,c){var d;a.Ra.get().wi("ads_qua","cpn."+EJ(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(d=a.bb.get().Kf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
OBa=function(a,b){var c,d;a.Ra.get().wi("ads_imp","cpn."+EJ(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(c=a.bb.get().Kf(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.S(null==(d=EJ(a.layout.Ea,"metadata_type_instream_ad_player_overlay_renderer"))?void 0:d.skipOrPreviewRenderer,hM))};
PBa=function(a){return{enterMs:EJ(a.Ea,"metadata_type_layout_enter_ms"),exitMs:EJ(a.Ea,"metadata_type_layout_exit_ms")}};
QBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){fM.call(this,a,b,c,d,e,h,l,m,n,q);this.Ce=f;this.uf=p;this.Xb=r;this.Ia=t;this.fd=this.Pc=null};
RBa=function(a,b){var c;a.Ra.get().wi("ads_imp","acpn."+(null==(c=a.bb.get().Kf(2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
SBa=function(a,b,c){var d;a.Ra.get().wi("ads_qua","cpn."+EJ(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(d=a.bb.get().Kf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
TBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B,G,F,I){this.Ne=a;this.pe=b;this.B=c;this.bb=d;this.Sc=e;this.Ka=f;this.Ra=h;this.Ce=l;this.Hf=m;this.Xb=n;this.uf=p;this.Fe=q;this.Dc=r;this.Wc=t;this.Pd=v;this.jg=x;this.Yb=B;this.Ag=G;this.Ia=F;this.j=I};
iM=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B){this.Ne=a;this.pe=b;this.j=c;this.Ra=d;this.Xb=e;this.uf=f;this.Fe=h;this.bb=l;this.Ka=m;this.Dc=n;this.Wc=p;this.Pd=q;this.jg=r;this.Yb=t;this.Ag=v;this.Ia=x;this.Sc=B};
UBa=function(a,b,c,d){kG.call(this,"survey-interstitial",a,b,c,d)};
jM=function(a,b,c,d,e){wK.call(this,c,a,b,d);this.Ra=e;a=EJ(b.Ea,"metadata_type_ad_placement_config");this.yb=new CK(b.hc,e,a,b.layoutId)};
kM=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
WBa=function(a,b,c){c=void 0===c?VBa:c;c.width<VBa.width&&(c=VBa);if(a.width<c.width||a.height<c.height)return{tK:3,HF:501,errorMessage:"ad("+kM(c)+") larger than container("+kM(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{tK:3,HF:501,errorMessage:"ad("+kM(c)+") to container("+kM(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{tK:3,HF:501,errorMessage:"ad("+kM(c)+") covers container("+kM(a)+") center."}};
XBa=function(a,b){var c=EJ(a.Ea,"metadata_type_ad_placement_config");return new CK(a.hc,b,c,a.layoutId)};
lM=function(a){return EJ(a.Ea,"metadata_type_invideo_overlay_ad_renderer")};
YBa=function(a,b,c,d){kG.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d};
mM=function(a,b,c,d,e,f,h,l,m,n,p,q){wK.call(this,f,a,b,e);this.Ra=c;this.D=h;this.Ka=l;this.Yb=m;this.Ia=n;this.K=p;this.G=q;this.yb=XBa(b,c)};
ZBa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];DK().forEach(function(b){a.push(b)});
return{ue:a,rf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
nM=function(a,b,c,d,e,f,h,l,m,n,p,q,r){wK.call(this,f,a,b,e);this.Ra=c;this.D=h;this.S=l;this.Ka=m;this.Yb=n;this.Ia=p;this.K=q;this.G=r;this.yb=XBa(b,c)};
$Ba=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.u(DK()),c=b.next();!c.done;c=b.next())a.push(c.value);return{ue:a,rf:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
oM=function(a){this.Ka=a;this.j=!1};
aCa=function(a,b,c){kG.call(this,"survey",a,{},b,c)};
bCa=function(a,b,c,d,e,f,h){wK.call(this,c,a,b,d);this.D=e;this.Ka=f;this.Ia=h};
cCa=function(a,b,c,d,e,f,h,l,m,n){this.Cc=a;this.Ka=b;this.Ra=c;this.D=d;this.Xb=e;this.B=f;this.C=h;this.Yb=l;this.Ia=m;this.j=n};
dCa=function(a,b,c,d,e,f,h,l,m,n){this.Cc=a;this.Ka=b;this.Ra=c;this.D=d;this.Xb=e;this.B=f;this.C=h;this.Yb=l;this.Ia=m;this.j=n};
pM=function(a,b,c,d,e,f,h,l,m){NK.call(this,a,b,c,d,e,f,h,m);this.Sm=l};
eCa=function(){var a=jAa();a.ue.push("metadata_type_ad_info_ad_metadata");return a};
fCa=function(a,b,c,d,e,f){this.Cc=a;this.Ka=b;this.Ra=c;this.B=d;this.Sm=e;this.j=f};
gCa=function(a,b,c,d,e,f,h){this.Cc=a;this.Ka=b;this.Ra=c;this.B=d;this.Sm=e;this.j=f;this.Ia=h};
qM=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)};
rM=function(a,b){this.j=a;this.B=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
var c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
sM=function(a,b,c){this.Ur=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=c||a(this.triggerType)};
tM=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=c||a(this.triggerType)};
uM=function(a,b,c,d){this.Ur=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=d||a(this.triggerType)};
hCa=function(a){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=a(this.triggerType)};
vM=function(a,b,c){this.triggeringLayoutId=b;this.slotId=c;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=a(this.triggerType)};
wM=function(a,b){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
xM=function(a,b,c,d){this.triggeringLayoutId=b;this.j=c;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=d||a(this.triggerType)};
iCa=function(a){switch(a){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new CJ("Invalid layout exit reason: "+
a)}};
JM=function(a,b){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
jCa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
kCa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
lCa=function(a){this.triggerId=a;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
KM=function(a,b,c,d,e){this.Ur=b;this.j=c;this.visible=d;this.layoutId=e;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=a(this.triggerType)};
LM=function(a,b,c,d,e){this.Ur=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=e||a(this.triggerType)};
mCa=function(a,b,c){this.Ur=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
nCa=function(a,b){this.j=b;this.slotType="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
oCa=function(a,b){this.j=b;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=a(this.triggerType)};
MM=function(a,b,c){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=c||a(this.triggerType)};
NM=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=c||a(this.triggerType)};
Yya=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)};
pCa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
qCa=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
OM=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
rCa=function(a,b,c){this.layoutId=b;this.offsetMs=c;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
PM=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=c||a(this.triggerType)};
QM=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
RM=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
SM=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
TM=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
UM=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=c||a(this.triggerType)};
VM=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
WM=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=c||a(this.triggerType)};
sCa=function(a,b){this.durationMs=45E3;this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
XM=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
YM=function(a){return null!=(null==a?void 0:a.layoutId)&&null!=(null==a?void 0:a.layoutType)};
tCa=function(a){return null!=(null==a?void 0:a.durationMs)&&0<(null==a?void 0:a.durationMs)};
uCa=function(a){return!!(a.c6&&a.slot&&a.layout)};
vCa=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
ZM=function(a){return void 0!==a.playerVars&&void 0!==a.pings&&void 0!==a.externalVideoId};
eN=function(a){if(!YM(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.S(a,wCa);return b?xCa(b):(b=g.S(a,$M))?ZM(b):(b=g.S(a,aN))?void 0!==b.playerVars:(b=g.S(a,bN))?void 0!==b.durationMilliseconds:g.S(a,cN)||g.S(a,dN)?!0:!1};
xCa=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.S(b,yCa)});
return 0<a.length&&a.every(eN)};
BCa=function(a){if(!YM(a.adLayoutMetadata))return!1;a=g.S(a.renderingContent,fN);return g.S(null==a?void 0:a.sidePanel,zCa)||g.S(null==a?void 0:a.sidePanel,ACa)?!0:!1};
DCa=function(a){var b=a.adSlotMetadata;if(void 0===(null==b?void 0:b.slotId)||void 0===(null==b?void 0:b.slotType)||!(CCa(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var c;a=null==(c=a.fulfillmentContent)?void 0:c.fulfilledLayout;return(c=g.S(a,yCa))?eN(c):(c=g.S(a,gN))?BCa(c):!1};
CCa=function(a){var b;a=g.S(null==(b=a.fulfillmentContent)?void 0:b.fulfilledLayout,gN);var c;return a&&"LAYOUT_TYPE_PANEL_QR_CODE"===(null==(c=a.adLayoutMetadata)?void 0:c.layoutType)};
FCa=function(a,b){var c;if(null==(c=a.questions)||!c.length||!a.playbackCommands||(void 0===b||!b)&&1!==a.questions.length)return!1;a=g.u(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=(null==(c=g.S(b,hN))?void 0:c.surveyAdQuestionCommon)||(null==(d=g.S(b,iN))?void 0:d.surveyAdQuestionCommon);if(!ECa(e))return!1}return!0};
GCa=function(a){a=((null==a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;if(a)if(a.playbackCommands&&a.questions&&1===a.questions.length){var c,d=(null==(b=g.S(a.questions[0],hN))?void 0:b.surveyAdQuestionCommon)||(null==(c=g.S(a.questions[0],iN))?void 0:c.surveyAdQuestionCommon);b=ECa(d)}else b=!1;else b=!1;return b};
ECa=function(a){if(!a)return!1;a=g.S(a.instreamAdPlayerOverlay,HCa);var b=g.S(null==a?void 0:a.skipOrPreviewRenderer,hM),c=g.S(null==a?void 0:a.adInfoRenderer,jN);return(g.S(null==a?void 0:a.skipOrPreviewRenderer,kN)||b)&&c?!0:!1};
ICa=function(a){return null!=a.linearAds&&YM(a.adLayoutMetadata)};
JCa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
KCa=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.S(a.ctaButton,g.lN)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.S(a.backgroundImage,mN)&&(null==(b=g.S(a.backgroundImage,mN))?0:b.landscape)?!0:!1};
nN=function(a,b,c,d,e,f,h){g.J.call(this);this.Ia=a;this.Wb=b;this.Rb=c;this.Ee=d;this.bb=e;this.B=f;this.j=h};
OCa=function(a,b,c){var d,e=(null!=(d=c.adSlots)?d:[]).map(function(f){return g.S(f,LCa)});
c.hB?EJ(b.Ea,"metadata_type_allow_pause_ad_break_request_slot_reschedule")?tK(a.Wb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId):(a.Ia.get().J.W().N("h5_check_forecasting_renderer_for_throttled_midroll")?(d=c.Qu.filter(function(f){var h;
return null!=(null==(h=f.renderer)?void 0:h.clientForecastingAdRenderer)}),0!==d.length?MCa(a.j,d,e,b.slotId,c.ssdaiAdsConfig):tK(a.Wb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)):tK(a.Wb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),NCa(a.B,b)):MCa(a.j,c.Qu,e,b.slotId,c.ssdaiAdsConfig)};
QCa=function(a,b,c,d,e,f){var h=a.bb.get().Kf(1);tK(a.Wb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return PCa(a.Ee.get(),c,d,e,h.clientPlaybackNonce,h.ov,h.daiEnabled,h,f)},b)};
TCa=function(a,b,c,d,e,f,h){b=RCa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof CJ?b:SCa(a,d,e,b,c);return a instanceof CJ?a:[a]};
UCa=function(a,b,c,d,e){var f=uK(a.jb.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new pJ({getAdBreakUrl:d.getAdBreakUrl,yQ:0,xQ:0}),new jya(!0)];a=b.pauseDurationMs?b.lactThresholdMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new UM(a.j,f),slotFulfillmentTriggers:[new hCa(a.j)],slotExpirationTriggers:[new NM(a.j,e),new RM(a.j,f)],gb:"core",Ea:new DJ(d),adSlotLoggingData:c}:new CJ("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new CJ("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
return a instanceof CJ?a:[a]};
VCa=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
oN=function(a,b,c){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new sM(AJ,b,a.id):new CJ("Not able to create BeforeContentVideoIdStartedTrigger");else if(a.layoutExitedForReasonTrigger){var d,e;(null==(d=a.layoutExitedForReasonTrigger)?0:d.triggeringLayoutId)&&(null==(e=a.layoutExitedForReasonTrigger)?0:e.layoutExitReason)?(b=iCa(a.layoutExitedForReasonTrigger.layoutExitReason),a=b instanceof CJ?b:new xM(AJ,a.layoutExitedForReasonTrigger.triggeringLayoutId,[b],a.id)):
a=new CJ("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger){var f;b=null!=(f=a.onLayoutSelfExitRequestedTrigger)&&f.triggeringLayoutId?new MM(AJ,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new CJ("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a=a.onNewPlaybackAfterContentVideoIdTrigger?new NM(AJ,b,a.id):new CJ("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(a.skipRequestedTrigger){var h;
b=null!=(h=a.skipRequestedTrigger)&&h.triggeringLayoutId?new PM(AJ,a.skipRequestedTrigger.triggeringLayoutId,a.id):new CJ("Not able to create SkipRequestedTrigger")}else if(a.slotIdEnteredTrigger){var l;b=null!=(l=a.slotIdEnteredTrigger)&&l.triggeringSlotId?new QM(AJ,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new CJ("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var m;b=null!=(m=a.slotIdExitedTrigger)&&m.triggeringSlotId?new RM(AJ,a.slotIdExitedTrigger.triggeringSlotId,
a.id):new CJ("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var n;b=null!=(n=a.surveySubmittedTrigger)&&n.triggeringLayoutId?new WM(AJ,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new CJ("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new lCa(a.id):new CJ("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var p;b=null!=(p=a.closeRequestedTrigger)&&p.triggeringLayoutId?new tM(AJ,a.closeRequestedTrigger.triggeringLayoutId,
a.id):new CJ("Not able to create CloseRequestedTrigger")}else if(a.slotIdScheduledTrigger){var q;b=null!=(q=a.slotIdScheduledTrigger)&&q.triggeringSlotId?new UM(AJ,a.slotIdScheduledTrigger.triggeringSlotId,a.id):new CJ("Not able to create SlotIdScheduledTrigger")}else{if(a.mediaTimeRangeTrigger){var r;f=Number(null==(r=a.mediaTimeRangeTrigger)?void 0:r.offsetStartMilliseconds);var t;h=Number(null==(t=a.mediaTimeRangeTrigger)?void 0:t.offsetEndMilliseconds);isFinite(f)&&isFinite(h)?(t=h,-1===t&&(t=
c),c=f>t?new CJ("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:f,offsetEndMs:t},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",t===c&&f-500<=t):new Fu(f,t),a=c instanceof CJ?c:new LM(AJ,b,c,!1,a.id)):a=new CJ("Not able to create MediaTimeRangeTrigger")}else a=a.contentVideoIdEndedTrigger?a.contentVideoIdEndedTrigger?new uM(AJ,b,!1,a.id):new CJ("Not able to create ContentVideoIdEndedTrigger"):new CJ("Not able to convert an AdsControlflowTrigger.");
b=a}a=b}b=a}a=b}b=a}a=b}return a};
XCa=function(a,b,c,d,e,f,h,l){return null===b?new CJ("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[WCa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new DJ([new KI(d),new NI(e)]);n=hK(c.jb.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",gb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",hc:new Map,
layoutExitNormalTriggers:[new NM(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:"core",Ea:q,zc:m(r),adLayoutLoggingData:p}})]};
aDa=function(a,b,c,d,e,f){if(!f)for(b=g.u(b),f=b.next();!f.done;f=b.next())f=f.value,pN(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return YCa(p)});
b=[];f=g.u(a);for(var h=f.next(),l={};!h.done;l={Hs:l.Hs},h=f.next()){l.Hs=h.value;h=g.u(l.Hs.QL);for(var m=h.next(),n={};!m.done;n={Yl:n.Yl},m=h.next())n.Yl=m.value,m=function(p,q){return function(r){return p.Yl.zM(r,q.Hs.instreamVideoAdRenderer.elementId,p.Yl.OL)}}(n,l),n.Yl.isContentVideoCompanion?b.push(ZCa(c,d,e,l.Hs.instreamVideoAdRenderer.elementId,n.Yl.associatedCompositePlayerBytesLayoutId,n.Yl.adSlotLoggingData,m)):1<a.length?b.push($Ca(c,d,e,l.Hs.instreamVideoAdRenderer.elementId,n.Yl.adSlotLoggingData,
function(p,q){return function(r){return p.Yl.zM(r,q.Hs.instreamVideoAdRenderer.elementId,p.Yl.OL,p.Yl.associatedCompositePlayerBytesLayoutId)}}(n,l))):b.push($Ca(c,d,e,l.Hs.instreamVideoAdRenderer.elementId,n.Yl.adSlotLoggingData,m))}return b};
pN=function(a,b,c){if(b=bDa(b)){b=g.u(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=cDa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.zD=c)}else ZG("InstreamVideoAdRenderer without externalVideoId")}};
bDa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.S(a.sandwichedLinearAdRenderer.linearAd,$M);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.u(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.S(c,$M)&&b.push(g.S(c,$M));return b}return null};
YCa=function(a){if(void 0===a.instreamVideoAdRenderer)return ZG("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.u(a.QL),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.zM)return!1;if(void 0===c.OL)return ZG("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.zD||void 0===c.lG||a.zD!==c.lG&&"AD_PLACEMENT_KIND_SELF_START"!==c.lG)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return ZG("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.zD,"matching APSR kind":c.lG}),!1}return!0};
cDa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,zD:void 0,adVideoId:b,QL:[]});return a.get(b)};
qN=function(a,b,c,d,e,f,h,l,m){e?cDa(a,e).QL.push({Fdb:b,lG:c,isContentVideoCompanion:d,OL:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,zM:m}):ZG("Companion AdPlacementSupportedRenderer without adVideoId")};
dDa=function(a){var b,c=null==(b=EJ(a.Ea,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=EJ(a.Ea,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=EJ(a.Ea,"metadata_type_content_cpn"),f=EJ(a.Ea,"metadata_type_instream_ad_player_overlay_renderer"),h=EJ(a.Ea,"metadata_type_player_underlay_renderer"),l=EJ(a.Ea,"metadata_type_ad_placement_config"),m=EJ(a.Ea,"metadata_type_video_length_seconds");var n=yJ(a.Ea,"metadata_type_layout_enter_ms")&&yJ(a.Ea,
"metadata_type_layout_exit_ms")?(EJ(a.Ea,"metadata_type_layout_exit_ms")-EJ(a.Ea,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Wp:d,contentCpn:e,gQ:c,RL:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,uI:n,inPlayerLayoutId:EJ(a.Ea,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:EJ(a.Ea,"metadata_type_linked_in_player_slot_id")}};
gDa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){d=uK(d,"SLOT_TYPE_PLAYER_BYTES");a=eDa(e,a,h,c,d,m,n);if(a instanceof CJ)return a;var x;n=null==(x=EJ(a.Ea,"metadata_type_fulfilled_layout"))?void 0:x.layoutId;if(!n)return new CJ("Invalid adNotify layout");b=fDa(n,e,f,c,l,b,m,p,q,r,t,v,h);return b instanceof CJ?b:[a].concat(g.pa(b))};
fDa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=hDa(b,c,d,f,h,l,m,n,p,q,r);if(c instanceof CJ)return c;a=iDa(b,a,h,e,c);return a instanceof CJ?a:[].concat(g.pa(a.Dg),[a.Fw])};
kDa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=hDa(a,b,c,e,f,l,m,n,p,q,r,t);if(b instanceof CJ)return b;a=jDa(a,c,f,h,d,l.Fc,b);return a instanceof CJ?a:a.Dg.concat(a.Fw)};
hDa=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=rN(d,c,n);return r instanceof BJ?new CJ(r):n.J.W().experiments.ob("html5_refactor_in_player_slot_generation")?function(t){var v=new rM(0,[r.Qo]);t=lDa(b,r.layoutId,r.oo,c,sN(r.playerVars,r.JA,f,m,v),r.Qo,e,v,h(t),l.get(r.oo.externalVideoId),q);v=[];if(r.oo.playerOverlay.instreamAdPlayerOverlayRenderer){var x=dDa(t);if(!x)return ZG("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,Dg:[]};
v=[mDa(a,x.contentCpn,x.Wp,function(G){return tN(b,G.slotId,"core",x,IJ(p,G))},x.inPlayerSlotId)].concat(g.pa(v));
if(x.instreamAdPlayerUnderlayRenderer&&nDa(n)){var B=x.instreamAdPlayerUnderlayRenderer;v=[oDa(a,x.contentCpn,x.Wp,function(G){return pDa(b,G.slotId,B,x.adPlacementConfig,x.Wp,IJ(p,G))})].concat(g.pa(v))}}return{layout:t,
Dg:v}}:function(t){var v=new rM(0,[r.Qo]);
return{layout:lDa(b,r.layoutId,r.oo,c,sN(r.playerVars,r.JA,f,m,v),r.Qo,e,v,h(t),l.get(r.oo.externalVideoId),q),Dg:[]}}};
rN=function(a,b,c){if(!a.playerVars)return new BJ("No playerVars available in InstreamVideoAdRenderer.");var d,e;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null==(d=a.playerOverlay)?void 0:d.instreamAdPlayerOverlayRenderer)&&null==(null==(e=a.playerOverlay)?void 0:e.playerOverlayLayoutRenderer)||null==a.pings||null==a.externalVideoId)return new BJ("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});d=$B(a.playerVars);e=Number(d.length_seconds);
isNaN(e)&&(e=0,ZG("Expected valid length seconds in player vars but got NaN"));if(c.tf("AD_PLACEMENT_KIND_START"===b.kind)){if(void 0===a.layoutId)return new BJ("Expected server generated layout ID in instreamVideoAdRenderer");b=a.layoutId}else b=a.elementId;return{layoutId:b,oo:a,playerVars:d,JA:a.playerVars,Qo:e}};
sN=function(a,b,c,d,e){a.iv_load_policy=d;b=$B(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){ZG(f)}c.pk&&(a.ctrl=c.pk);c.rl&&(a.ytr=c.rl);c.fv&&(a.ytrcc=c.fv);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Jm&&(a.vss_credentials_token_type=c.Jm),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.B&&(a.slot_pos=e.j);a.autoplay="1";return a};
qDa=function(a){var b=new Map;a=g.u(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.renderer.remoteSlotsRenderer)&&c.hostElementId&&b.set(c.hostElementId,c);return b};
vDa=function(a,b,c,d,e,f,h,l,m,n){for(var p=[],q=g.u(a),r=q.next();!r.done;r=q.next())if(r=r.value,!CCa(r)){var t="SLOT_TRIGGER_EVENT_BEFORE_CONTENT"===r.adSlotMetadata.triggerEvent,v=m.tf(t),x=rDa(oN(r.slotEntryTrigger,d,c.ov),v,r,n);if(x instanceof CJ)return x;for(var B=[],G=g.u(r.slotFulfillmentTriggers),F=G.next();!F.done;F=G.next()){F=oN(F.value,d,c.ov);if(F instanceof CJ)return F;B.push(F)}B=sDa(B,v,r,n);v=[];G=g.u(r.slotExpirationTriggers);for(F=G.next();!F.done;F=G.next()){F=oN(F.value,d,
c.ov);if(F instanceof CJ)return F;v.push(F)}G=[];c.Fc&&G.push(new vJ({}));var I=void 0;F={slotId:r.adSlotMetadata.slotId,slotType:r.adSlotMetadata.slotType,slotPhysicalPosition:null!=(I=r.adSlotMetadata.slotPhysicalPosition)?I:1,gb:"core",slotEntryTrigger:x,slotFulfillmentTriggers:B,slotExpirationTriggers:v};if(x=g.S(r.fulfillmentContent.fulfilledLayout,yCa)){if(!eN(x))return new CJ("Invalid PlayerBytesAdLayoutRenderer");x=tDa(F,x,b,c,d,e,f,h,l,m,n,a);if(x instanceof CJ)return x;G.push(new xJ(t));
r=Object.assign({},F,{Ea:new DJ(G),fulfilledLayout:x.layout,adSlotLoggingData:r.adSlotMetadata.adSlotLoggingData});p.push.apply(p,g.pa(x.Dg));p.push(r)}else if(t=g.S(r.fulfillmentContent.fulfilledLayout,gN),B=x=void 0,"LAYOUT_TYPE_PANEL_QR_CODE"!==(null==(x=t)?void 0:null==(B=x.adLayoutMetadata)?void 0:B.layoutType))if(t){if(!BCa(t))return new CJ("Invalid PlayerUnderlayAdLayoutRenderer");if("LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE"===t.adLayoutMetadata.layoutType){I=d;var P=c.ov;x=f;B=r.adSlotMetadata.triggerEvent;
(v=g.S(t.renderingContent,fN))?(v=g.S(v.sidePanel,ACa))?(G={layoutId:t.adLayoutMetadata.layoutId,layoutType:t.adLayoutMetadata.layoutType,gb:"core"},I=uDa(t,I,P),I instanceof CJ?t=I:(P=[],"SLOT_TRIGGER_EVENT_CONTENT_PAUSED"===B&&P.push(new NI({kind:"AD_PLACEMENT_KIND_PAUSE"})),t=Object.assign({},G,{renderingContent:t.renderingContent,hc:new Map([["impression",v.impressionPings||[]],["resume",v.resumePings||[]]])},I,{zc:IJ(x,F)(G),Ea:new DJ(P)}))):t=new CJ("DismissablePanelTextPortraitImageRenderer is missing"):
t=new CJ("SqueezebackPlayerSidePanelRenderer is missing")}else t=new CJ("LayoutType ["+t.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");if(t instanceof CJ)return t;r=Object.assign({},F,{Ea:new DJ([]),fulfilledLayout:t,adSlotLoggingData:r.adSlotMetadata.adSlotLoggingData});p.push(r)}else return new CJ("Unable to retrieve a client slot ["+F.slotType+"] from a given AdSlotRenderer")}return p};
rDa=function(a,b,c,d){return b&&"SLOT_TYPE_PLAYER_BYTES"===c.adSlotMetadata.slotType&&a instanceof sM?new qM(function(e){return uN(d,e)},c.adSlotMetadata.slotId):a};
sDa=function(a,b,c,d){return b&&"SLOT_TYPE_PLAYER_BYTES"===c.adSlotMetadata.slotType?a.map(function(e){return e instanceof QM?new UM(function(f){return uN(d,f)},c.adSlotMetadata.slotId):e}):a};
tDa=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=uDa(b,e,d.ov);if(r instanceof CJ)return r;if(g.S(b.renderingContent,$M)){d=wDa([b],d,l);if(d instanceof CJ)return d;if(1!==d.length)return new CJ("Only expected one media layout.");a=xDa(a,b,r,d[0],void 0,"core",c,e,f,h,m,q);return a instanceof CJ?a:{layout:a,Dg:[]}}var t=g.S(b.renderingContent,wCa);if(t){if(!YM(b.adLayoutMetadata))return new CJ("Invalid ad layout metadata");if(!xCa(t))return new CJ("Invalid sequential layout");t=t.sequentialLayouts.map(function(v){return v.playerBytesAdLayoutRenderer});
a=yDa(a,b.adLayoutMetadata,r,t,c,e,d,l,f,h,m,n,p,q);return a instanceof CJ?a:{layout:a.Z3,Dg:a.Dg}}return new CJ("Not able to convert a sequential layout")};
yDa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){var v=new RI({current:null}),x=wDa(d,h,l);if(x instanceof CJ)return x;h=[];l=[];for(var B=void 0,G=0;G<d.length;G++){var F=d[G];if(g.S(F.renderingContent,$M)){B=xDa(a,F,zDa,x[G],cM(q)&&dM(q)?x[G+1]:void 0,"adapter",e,f,m,n,p,t);if(B instanceof CJ)return B;h.push(B);B=x[G]}else if(g.S(F.renderingContent,aN)){var I=a,P=n;if(eN(F)){var R=g.S(F.renderingContent,aN);if(R&&void 0!==R.playerVars){var Z={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,
gb:"adapter"};R=$B(R.playerVars);R.autoplay="1";F=Object.assign({},Z,zDa,{renderingContent:F.renderingContent,Ea:new DJ([new mJ({}),new NI({kind:"AD_PLACEMENT_KIND_START"}),new bJ({current:null}),new fJ(R)]),hc:new Map,zc:IJ(P,I)(Z),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})}else F=new CJ("Invalid ad intro renderer")}else F=new CJ("Invalid PlayerBytesAdLayoutRenderer");if(F instanceof CJ)return F;h.push(F)}else if(g.S(F.renderingContent,bN)){a:{I=F.adLayoutMetadata.layoutId;P=g.u(e);
for(Z=P.next();!Z.done;Z=P.next()){Z=Z.value;var ma=R=void 0,ua=(null==(R=Z.renderer)?void 0:null==(ma=R.linearAdSequenceRenderer)?void 0:ma.linearAds)||[];R=g.u(ua);for(ma=R.next();!ma.done;ma=R.next())if((ma=g.S(ma.value,bN))&&void 0!==ma.inPlayerSlotId&&void 0!==ma.inPlayerLayoutId&&void 0!==ma.associatedPlayerBytesLayoutId&&ma.associatedPlayerBytesLayoutId===I){I={bH:ma,adPlacementConfig:Z.config.adPlacementConfig};break a}}I=new CJ("Not able to find associated InPlayer slot for endcap")}if(I instanceof
CJ)return I;P=void 0;Z=a;R=n;var oa=I.adPlacementConfig;ma=B;if(eN(F))if((ua=g.S(F.renderingContent,bN))&&void 0!==ua.durationMilliseconds){var ia={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,gb:"adapter"};oa=[new sJ(ua.durationMilliseconds),new uJ({impressionCommands:void 0,abandonCommands:ua.abandonCommands?[{commandExecutorCommand:ua.abandonCommands}]:void 0,completeCommands:ua.completionCommands}),new NI(oa)];ma&&(oa.push(new PI(ma.zy.j-1)),oa.push(new kJ(ma.zy.j)),
oa.push(new QI(null!=(P=ma.adPodSkipTarget)?P:-1)));F=Object.assign({},ia,zDa,{renderingContent:F.renderingContent,Ea:new DJ(oa),hc:ua.skipPings?new Map([["skip",ua.skipPings]]):new Map,zc:IJ(R,Z)(ia),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})}else F=new CJ("Invalid endcap renderer");else F=new CJ("Invalid PlayerBytesAdLayoutRenderer");if(F instanceof CJ)return F;h.push(F);F=ADa(F.layoutId,r,f,I,v,n);if(F instanceof CJ)return F;l.push(F)}}b={layoutId:b.layoutId,layoutType:b.layoutType,
gb:"core"};return{Z3:Object.assign({},b,c,{gB:h,hc:new Map,Ea:new DJ([v]),zc:IJ(n,a)(b)}),Dg:l}};
xDa=function(a,b,c,d,e,f,h,l,m,n,p,q){if(!eN(b))return new CJ("Invalid PlayerBytesAdLayoutRenderer");var r=g.S(b.renderingContent,$M);(null==r?0:r.pings)?r=BK(r.pings):(r=g.S(b.renderingContent,bN),r=(null==r?0:r.skipPings)?new Map([["skip",r.skipPings]]):new Map);if(r instanceof CJ)return r;f={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,gb:f};var t=b.adLayoutMetadata.layoutId;b:{var v=g.u(h);for(h=v.next();!h.done;h=v.next()){h=h.value;var x=bDa(h.renderer)||[],
B=g.u(x);for(x=B.next();!x.done;x=B.next())if(x=x.value,x.associatedPlayerBytesLayoutId===t){x.associatedPlayerBytesLayoutId?(v=x.playerOverlay,B=void 0!==v&&void 0!==v.playerOverlayLayoutRenderer&&void 0!==v.playerOverlayLayoutRenderer.inPlayerSlotId&&void 0!==v.playerOverlayLayoutRenderer.inPlayerLayoutId,v=void 0!==v&&void 0!==v.instreamAdPlayerOverlayRenderer&&void 0!==v.instreamAdPlayerOverlayRenderer.inPlayerSlotId&&void 0!==v.instreamAdPlayerOverlayRenderer.inPlayerLayoutId||B):v=!1;h=v?{instreamVideoAdRenderer:x,
adPlacementConfig:h.config.adPlacementConfig}:new CJ("Invalid InPlayer shim");break b}}h=new CJ("Not able to find associated InPlayer slot")}B=h;if(B instanceof CJ)e=B;else if((h=g.S(b.renderingContent,$M))&&ZM(h)){v=B.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;x=B.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var G,F=null!=(G=null==v?void 0:v.inPlayerSlotId)?G:null==x?void 0:x.inPlayerSlotId,I;G=null!=(I=null==v?void 0:v.inPlayerLayoutId)?I:null==x?
void 0:x.inPlayerLayoutId;if(void 0===F)e=new CJ("InPlayer shim slot id is undefined");else if(void 0===G)e=new CJ("InPlayer shim layout id is undefined");else{d=[new OI(d.zy),new SI(h.externalVideoId),new TI(l),new uJ({impressionCommands:h.impressionCommands,abandonCommands:h.onAbandonCommands,completeCommands:h.completeCommands}),new fJ(d.lC),new bJ({current:null}),new eJ(d.R9.Qo),new $I(G),new aJ(F),new kJ(d.zy.j),new wJ(Bza(h.pings)),new NI(B.adPlacementConfig)];v&&d.push(new UI(v));x&&d.push(new VI(x));
b:{q=g.u(q);for(l=q.next();!l.done;l=q.next())if(l=l.value,"SLOT_TYPE_PLAYER_UNDERLAY"===l.adSlotMetadata.slotType&&(I=g.S(l.fulfillmentContent.fulfilledLayout,gN))&&(I=g.S(I.renderingContent,fN))&&I.associatedPlayerBytesLayoutId===t){t=l;break b}t=void 0}t&&d.push(new XI(t));e&&d.push(new gJ(e.lC));h.adNextParams&&d.push(new LI(h.adNextParams));h.clickthroughEndpoint&&d.push(new MI(h.clickthroughEndpoint));h.legacyInfoCardVastExtension&&d.push(new tJ(h.legacyInfoCardVastExtension));h.sodarExtensionData&&
d.push(new hJ(h.sodarExtensionData));(e=m.get(h.externalVideoId))&&d.push(new qJ(e));e=new DJ(d)}}else e=new CJ("Invalid vod media renderer");if(e instanceof CJ)return e;a=Object.assign({},f,c,{hc:r,renderingContent:b.renderingContent,Ea:e,zc:IJ(n,a)(f),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData});b=g.S(b.renderingContent,$M);if(!b||!ZM(b))return new CJ("Invalid meida renderer");p=cDa(p,b.externalVideoId);p.instreamVideoAdRenderer=b;p.zD="AD_PLACEMENT_KIND_START";return a};
ADa=function(a,b,c,d,e,f){function h(n){return uN(b,n)}
var l=d.bH.inPlayerSlotId,m={layoutId:d.bH.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",gb:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",slotEntryTrigger:new wM(h,a),slotFulfillmentTriggers:[new QM(h,l)],slotExpirationTriggers:[new RM(h,l),new NM(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new JM(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],hc:new Map,Ea:new DJ([new YI(d.bH),new NI(d.adPlacementConfig),
e]),zc:IJ(f,c)(m),adLayoutLoggingData:d.bH.adLayoutLoggingData});return Object.assign({},c,{Ea:new DJ([new oJ(a)])})};
uDa=function(a,b,c){for(var d=[],e=g.u(a.layoutExitNormalTriggers||[]),f=e.next();!f.done;f=e.next()){f=oN(f.value,b,c);if(f instanceof CJ)return f;d.push(f)}e=[];var h=g.u(a.layoutExitSkipTriggers||[]);for(f=h.next();!f.done;f=h.next()){f=oN(f.value,b,c);if(f instanceof CJ)return f;e.push(f)}h=[];var l=g.u(a.layoutExitMuteTriggers||[]);for(f=l.next();!f.done;f=l.next()){f=oN(f.value,b,c);if(f instanceof CJ)return f;h.push(f)}l=[];a=g.u(a.layoutExitUserInputSubmittedTriggers||[]);for(f=a.next();!f.done;f=
a.next()){f=oN(f.value,b,c);if(f instanceof CJ)return f;l.push(f)}return{layoutExitNormalTriggers:d,layoutExitSkipTriggers:e,layoutExitMuteTriggers:h,layoutExitUserInputSubmittedTriggers:l,jd:[]}};
wDa=function(a,b,c){for(var d=[],e=g.u(a),f=e.next();!f.done;f=e.next())if(f=g.S(f.value.renderingContent,$M)){if(!ZM(f))return new CJ("Invalid vod media renderer");d.push(BDa(f))}e=d.map(function(q){return q.Qo});
f=[];for(var h=0,l=0;l<a.length;l++){var m=g.S(a[l].renderingContent,$M);if(m){var n=new rM(h,e),p=sN(d[h].playerVars,d[h].JA,b,c,n);f[l]={zy:n,adPodSkipTarget:m.adPodSkipTarget,R9:d[h],lC:p};h++}}return f};
BDa=function(a){var b=$B(a.playerVars),c=Number(b.length_seconds);isNaN(c)&&(c=0,ZG("Expected valid length seconds in player vars but got NaN"));return{playerVars:b,JA:a.playerVars,Qo:c}};
CDa=function(a){var b=0;a=g.u(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=g.S(c,hN)||g.S(c,iN)){var d=void 0;b+=(null==(d=c.surveyAdQuestionCommon)?void 0:d.durationMilliseconds)||0}return b};
DDa=function(a){var b,c,d,e,f=(null==(c=g.S(null==(b=a.questions)?void 0:b[0],hN))?void 0:c.surveyAdQuestionCommon)||(null==(e=g.S(null==(d=a.questions)?void 0:d[0],iN))?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.pa((null==(h=a.playbackCommands)?void 0:h.instreamAdCompleteCommands)||[]),g.pa((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,r,t,v,x,B,G,F,I,P,R,Z,ma,ua,oa,ia;return{impressionCommands:null==(l=a.playbackCommands)?void 0:l.impressionCommands,errorCommands:null==(m=a.playbackCommands)?
void 0:m.errorCommands,muteCommands:null==(n=a.playbackCommands)?void 0:n.muteCommands,unmuteCommands:null==(p=a.playbackCommands)?void 0:p.unmuteCommands,pauseCommands:null==(q=a.playbackCommands)?void 0:q.pauseCommands,rewindCommands:null==(r=a.playbackCommands)?void 0:r.rewindCommands,resumeCommands:null==(t=a.playbackCommands)?void 0:t.resumeCommands,skipCommands:null==(v=a.playbackCommands)?void 0:v.skipCommands,progressCommands:null==(x=a.playbackCommands)?void 0:x.progressCommands,Tdb:null==
(B=a.playbackCommands)?void 0:B.clickthroughCommands,fullscreenCommands:null==(G=a.playbackCommands)?void 0:G.fullscreenCommands,activeViewViewableCommands:null==(F=a.playbackCommands)?void 0:F.activeViewViewableCommands,activeViewMeasurableCommands:null==(I=a.playbackCommands)?void 0:I.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(P=a.playbackCommands)?void 0:P.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:null==(R=a.playbackCommands)?
void 0:null==(Z=R.activeViewTracking)?void 0:Z.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(ma=a.playbackCommands)?void 0:null==(ua=ma.activeViewTracking)?void 0:ua.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(oa=a.playbackCommands)?void 0:oa.endFullscreenCommands,abandonCommands:null==(ia=a.playbackCommands)?void 0:ia.abandonCommands,completeCommands:b}};
GDa=function(a,b,c,d,e,f,h){return function(l,m){return EDa(a,m.slotId,l,f,function(n,p){n=h(n);return FDa(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new aya(c),d],c.adLayoutLoggingData)})}};
JDa=function(a,b,c,d,e,f,h){if(!HDa(a))return new CJ("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[IDa(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=hK(e.jb.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",gb:"core"},q=new JM(e.j,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",hc:new Map,layoutExitNormalTriggers:[q],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:"core",Ea:new DJ([new bya(l)]),zc:n(p)}})]};
HDa=function(a){a=g.S(null==a?void 0:a.additionalPlayerOverlay,KDa);if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
MDa=function(a,b,c,d,e){var f;if(null==(f=a.playerOverlay)||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!GCa(a))return function(){return new CJ("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=CDa(h);return 0>=l?function(){return new CJ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=LDa(m,c,d,function(q){var r=n(q),t=q.slotId;
q=DDa(h);t=hK(e.jb.get(),"LAYOUT_TYPE_SURVEY",t);var v={layoutId:t,layoutType:"LAYOUT_TYPE_SURVEY",gb:"core"},x=new JM(e.j,d),B=new PM(e.j,t),G=new WM(e.j,t),F=new pCa(e.j);return{layoutId:t,layoutType:"LAYOUT_TYPE_SURVEY",hc:new Map,layoutExitNormalTriggers:[x,F],layoutExitSkipTriggers:[B],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[G],jd:[],gb:"core",Ea:new DJ([new $xa(h),new NI(b),new rJ(l/1E3),new uJ(q)]),zc:r(v),adLayoutLoggingData:h.adLayoutLoggingData}});
m=JDa(a,c,p.slotId,d,e,m,n);return m instanceof CJ?m:[p].concat(g.pa(m))}};
UDa=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;var l=[];try{var m=[];if(c.renderer.linearAdSequenceRenderer)var n=function(x){x=NDa(x.slotId,c,b,e(x),d,f,h);m=x.X$;return x.m4};
else if(c.renderer.instreamVideoAdRenderer)n=function(x){var B=x.slotId;x=e(x);var G=h,F=c.config.adPlacementConfig,I=ODa(F),P=I.tV,R=I.wV;I=c.renderer.instreamVideoAdRenderer;var Z;if(null==I?0:null==(Z=I.playerOverlay)?0:Z.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var ma=PDa(I,G);Z=Math.min(P+1E3*ma.videoLengthSeconds,R);G=new rM(0,[ma.videoLengthSeconds]);R=ma.videoLengthSeconds;var ua=ma.playerVars,oa=ma.instreamAdPlayerOverlayRenderer,ia=
ma.adVideoId,Aa=QDa(c),X=ma.hc;ma=ma.rU;var wa=null==I?void 0:I.adLayoutLoggingData;I=null==I?void 0:I.sodarExtensionData;B=hK(b.jb.get(),"LAYOUT_TYPE_MEDIA",B);var ca={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",gb:"core"};return{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA",hc:X,layoutExitNormalTriggers:[new jCa(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:"core",Ea:new DJ([new TI(d),new eJ(R),new fJ(ua),new iJ(P),new jJ(Z),oa&&new UI(oa),
new NI(F),new SI(ia),new OI(G),new nJ(Aa),I&&new hJ(I),new bJ({current:null}),new lJ({}),new wJ(ma)].filter(RDa)),zc:x(ca),adLayoutLoggingData:wa}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=SDa(a,d,c.adSlotLoggingData,n);l.push(p);for(var q=g.u(m),r=q.next();!r.done;r=q.next()){var t=r.value,v=t(a,e);if(v instanceof CJ)return v;l.push.apply(l,g.pa(v))}}catch(x){return new CJ(x,{errorMessage:x.message,AdPlacementRenderer:c,numberOfSurveyRenderers:TDa(c)})}return l};
TDa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=g.S(b,$M))?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0};
NDa=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=ODa(l),n=m.tV,p=m.wV;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==m||!m.length)throw new TypeError("Expected linear ads");var q=[],r={RZ:n,SZ:0,U$:q};m=m.map(function(v){return VDa(a,v,r,c,d,l,e,p,h)}).map(function(v,x){x=new rM(x,q);
return v(x)});
var t=m.map(function(v){return v.n4});
return{m4:WDa(c,a,n,t,l,QDa(b),d,p,f),X$:m.map(function(v){return v.W$})}};
VDa=function(a,b,c,d,e,f,h,l,m){var n=PDa(g.S(b,$M),m),p=c.RZ,q=c.SZ,r=Math.min(p+1E3*n.videoLengthSeconds,l);c.RZ=r;c.SZ++;c.U$.push(n.videoLengthSeconds);var t,v,x=null==(t=g.S(b,$M))?void 0:null==(v=t.playerOverlay)?void 0:v.instreamSurveyAdRenderer;if("nPpU29QrbiU"===n.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(B){var G=n.playerVars;2<=B.B&&(G.slot_pos=B.j);G.autoplay="1";var F,I;G=n.videoLengthSeconds;var P=n.playerVars,R=n.hc,Z=n.rU,ma=
n.instreamAdPlayerOverlayRenderer,ua=n.adVideoId,oa=null==(F=g.S(b,$M))?void 0:F.adLayoutLoggingData;F=null==(I=g.S(b,$M))?void 0:I.sodarExtensionData;I=hK(d.jb.get(),"LAYOUT_TYPE_MEDIA",a);var ia={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};B={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",hc:R,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:"adapter",Ea:new DJ([new TI(h),new eJ(G),new fJ(P),new iJ(p),new jJ(r),
new kJ(q),new bJ({current:null}),ma&&new UI(ma),new NI(f),new SI(ua),new OI(B),F&&new hJ(F),x&&new hya(x),new lJ({}),new wJ(Z)].filter(RDa)),zc:e(ia),adLayoutLoggingData:oa};G=MDa(g.S(b,$M),f,h,B.layoutId,d);return{n4:B,W$:G}}};
PDa=function(a,b){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var c=$B(a.playerVars),d=Number(c.length_seconds);if(isNaN(d))throw new TypeError("Expected valid length seconds in player vars");var e=Number(a.trimmedMaxNonSkippableAdDurationMs);d=isNaN(e)?d:Math.min(d,e/1E3);e=a.playerOverlay||{};e=void 0===e.instreamAdPlayerOverlayRenderer?null:e.instreamAdPlayerOverlayRenderer;var f=c.video_id;
f||(f=(f=a.externalVideoId)?f:void 0);if(!f)throw new TypeError("Expected valid video id in IVAR");if(b&&0===d){var h;b=null!=(h=XDa[f])?h:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,adVideoId:f,hc:a.pings?BK(a.pings):new Map,rU:Bza(a.pings)}};
QDa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
ODa=function(a){var b=a.adTimeOffset||{};a=b.offsetEndMilliseconds;b=Number(b.offsetStartMilliseconds);if(isNaN(b))throw new TypeError("Expected valid start offset");a=Number(a);if(isNaN(a))throw new TypeError("Expected valid end offset");return{tV:b,wV:a}};
ZDa=function(a,b,c,d,e,f,h){var l=c.pings;return l?[YDa(a,f,e,function(m){var n=m.slotId;m=h(m);var p=c.adLayoutLoggingData;n=hK(b.jb.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",gb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",hc:BK(l),layoutExitNormalTriggers:[new NM(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:"core",Ea:new DJ([new NI(d)]),
zc:m(q),adLayoutLoggingData:p}})]:new CJ("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})};
aEa=function(a,b,c,d,e,f,h,l){a=$Da(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=hK(b.jb.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",gb:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",hc:q,layoutExitNormalTriggers:[new MM(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:"core",Ea:new DJ([new eya(e),new NI(c)]),zc:m(p)}});
return a instanceof CJ?a:[a]};
cEa=function(a,b,c,d,e,f,h){return[bEa(a,f,d,function(l){var m=l.slotId;l=h(l);m=hK(b.jb.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",m);var n={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",gb:"core"};return{layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",hc:new Map,layoutExitNormalTriggers:[new NM(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:"core",Ea:new DJ([new UI(e),new NI(c)]),zc:l(n),adLayoutLoggingData:e.adLayoutLoggingData}})]};
gEa=function(a,b,c,d,e,f,h,l){a=dEa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=hK(b.jb.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=eEa(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,fEa(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=hK(b.jb.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=eEa(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,fEa(b,n,p))):q.imageOverlayAdContentRenderer?(q=hK(b.jb.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=fEa(b,n,p),n.push(new sCa(b.j,q)),n=eEa(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new BJ("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new BJ("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof CJ?a:[a]};
jEa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new CJ("Expected valid duration for AdActionInterstitialRenderer."):function(p){return hEa(b,p.slotId,c,d,n,{impressionCommands:void 0,abandonCommands:d.abandonCommands?[{commandExecutorCommand:d.abandonCommands}]:void 0,completeCommands:d.completionCommands},d.skipPings?new Map([["skip",d.skipPings]]):new Map,h(p),function(q){return iEa(a,q,e,function(r,t){var v=r.slotId;r=h(r);v=hK(b.jb.get(),"LAYOUT_TYPE_ENDCAP",
v);return FDa(b,v,t,c,r,"LAYOUT_TYPE_ENDCAP",[new YI(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
kEa=function(a,b,c,d){if(!c.playerVars)return new CJ("No playerVars available in AdIntroRenderer.");var e=$B(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=hK(a.jb.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",gb:"adapter"};return{wk:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",hc:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:"adapter",Ea:new DJ([new mJ({}),
new NI(b),new bJ({current:null}),new fJ(e)]),zc:f(l)},jm:[new xM(a.j,h,["error"])],Mj:[],Oy:[],Ny:[]}}};
mEa=function(a,b,c,d,e,f,h,l,m,n){n=void 0===n?!1:n;var p=CDa(e);if(!FCa(e,n))return new CJ("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=p)return new CJ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=GDa(a,b,e,f,c,d,h);return q instanceof CJ?q:function(r){return lEa(b,r.slotId,c,p,e,DDa(e),h(r),q,l,m)}};
oEa=function(a,b,c,d,e,f,h,l){function m(q){return iEa(a,q,d,n)}
function n(q,r){var t=q.slotId;q=h(q);t=hK(b.jb.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return FDa(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new Zxa(e),f],e.adLayoutLoggingData)}
if(!KCa(e))return new CJ("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var r={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},t=h(q);q=nEa(b,q.slotId,c,p,r,new Map,t,m,void 0,vN(b,c,e.associatedPlayerBytesLayoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));r=new $I(q.iJ);t=new PI(l);return{wk:{layoutId:q.layoutId,layoutType:q.layoutType,
hc:q.hc,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:q.gb,Ea:new DJ([].concat(g.pa(q.Ly),[r,t])),zc:q.zc,adLayoutLoggingData:q.adLayoutLoggingData},jm:[],Mj:q.layoutExitMuteTriggers,Oy:q.layoutExitUserInputSubmittedTriggers,Ny:q.jd,Qg:q.Qg}}};
qEa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x){a=uK(a,"SLOT_TYPE_PLAYER_BYTES");d=eDa(b,h,d,e,a,n,p);if(d instanceof CJ)return d;var B;h=null==(B=EJ(d.Ea,"metadata_type_fulfilled_layout"))?void 0:B.layoutId;if(!h)return new CJ("Invalid adNotify layout");b=pEa(h,b,c,e,f,m,l,n,q,r,t,v,x);return b instanceof CJ?b:[d].concat(g.pa(b))};
pEa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=rEa(b,c,d,f,h,l,m,n,p,q,r);sEa(f)?(d=tEa(b,a),a=uK(b.jb.get(),"SLOT_TYPE_IN_PLAYER"),f=hK(b.jb.get(),"LAYOUT_TYPE_SURVEY",a),l=uEa(b,d,l),b=[].concat(g.pa(l.slotExpirationTriggers),[new tM(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,gb:l.gb},{slotId:a,layoutId:f}),e=a instanceof CJ?a:{Fw:Object.assign({},
l,{slotExpirationTriggers:b,Ea:new DJ([new oJ(a.layout)]),adSlotLoggingData:e}),Dg:a.Dg}):e=iDa(b,a,l,e,c);return e instanceof CJ?e:[].concat(g.pa(e.Dg),[e.Fw])};
yEa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=rEa(a,b,c,e,f,h,m,n,p,q,r,t);sEa(e)?(e=vEa(a,c,h,l),e instanceof CJ?a=e:(l=uK(a.jb.get(),"SLOT_TYPE_IN_PLAYER"),m=hK(a.jb.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.pa(e.slotExpirationTriggers),[new tM(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,gb:e.gb,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof CJ?
l:{Fw:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:wEa(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:xEa(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,gb:e.gb,Ea:new DJ([new xJ(wN(c)),new oJ(l.layout)]),adSlotLoggingData:d},Dg:l.Dg})):a=jDa(a,c,h,l,d,m.Fc,b);return a instanceof CJ?a:a.Dg.concat(a.Fw)};
sEa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(g.S(b.value,cN))return!0;return!1};
rEa=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(cM(p)&&dM(p))a:{var v=zEa(d,c,p);if(v instanceof CJ)t=v;else{for(var x=0,B=[],G=[],F=[],I=[],P=[],R=[],Z=new cJ({current:null}),ma=new RI({current:null}),ua=!1,oa=[],ia=0,Aa=[],X=0;X<d.length;X++){var wa=d[X],ca=g.S(wa,$M);if(ca){ca=rN(ca,c,p);if(ca instanceof BJ){t=new CJ(ca);break a}var Ra=new rM(ia,v),y=sN(ca.playerVars,ca.JA,h,n,Ra);ia++;Aa[X]={renderer:wa,data:ca,zy:Ra,lC:y}}}ia=-1;for(v=0;v<d.length;v++)if(X=d[v],wa=g.S(X,aN)){X=
kEa(b,c,wa,l);if(X instanceof CJ){t=X;break a}X=X(r);B.push(X.wk);G=[].concat(g.pa(X.jm),g.pa(G));F=[].concat(g.pa(X.Mj),g.pa(F));X.Qg&&(oa=[X.Qg].concat(g.pa(oa)))}else if(g.S(X,$M))wa=Aa[v],ia=wa.data,X=wa.zy,wa=wa.lC,ca=Aa[v+1],Ra=void 0,ca&&(Ra=ca.lC),X=AEa(b,ia.layoutId,ia.oo,c,wa,ia.Qo,f,X,l(r),ma,m.get(ia.oo.externalVideoId),Ra,q),x++,B.push(X.wk),G=[].concat(g.pa(X.jm),g.pa(G)),F=[].concat(g.pa(X.Mj),g.pa(F)),ua||(R.push(ma),ua=!0),ia=(ia=ia.oo.adPodSkipTarget)&&0<ia?ia:-1;else if(wa=g.S(X,
bN)){X=jEa(a,b,c,wa,f,x,l,ma,ia);if(X instanceof CJ){t=X;break a}X=X(r);B.push(X.wk);G=[].concat(g.pa(X.jm),g.pa(G));F=[].concat(g.pa(X.Mj),g.pa(F));X.Qg&&(oa=[X.Qg].concat(g.pa(oa)))}else if(wa=g.S(X,cN)){if(void 0===t){t=new CJ("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:wa});break a}X=mEa(a,b,c,f,wa,Z,l,t,x,xN(p,"supports_multi_step_on_desktop"));if(X instanceof CJ){t=X;break a}X=X(r);B.push(X.wk);X.Qg&&oa.push(X.Qg);G=[].concat(g.pa(X.jm),
g.pa(G));F=[].concat(g.pa(X.Mj),g.pa(F));I=[].concat(g.pa(X.Oy),g.pa(I));P=[].concat(g.pa(X.Ny),g.pa(P));R=[Z].concat(g.pa(R))}else if(X=g.S(X,dN)){X=oEa(a,b,c,f,X,Z,l,x);if(X instanceof CJ){t=X;break a}X=X(r);B.push(X.wk);X.Qg&&oa.push(X.Qg);F=[].concat(g.pa(X.Mj),g.pa(F))}else{t=new CJ("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={gB:B,layoutExitSkipTriggers:G,layoutExitUserInputSubmittedTriggers:I,jd:P,layoutExitMuteTriggers:F,Ly:R,Dg:oa}}}else a:if(x=zEa(d,c,p),x instanceof
CJ)t=x;else{B=0;G=[];F=[];I=[];P=[];R=[];Z=[];ma=new cJ({current:null});ua=new RI({current:null});oa=!1;Aa=[];ia=-1;v=g.u(d);for(X=v.next();!X.done;X=v.next())if(X=X.value,g.S(X,aN)){X=kEa(b,c,g.S(X,aN),l);if(X instanceof CJ){t=X;break a}X=X(r);G.push(X.wk);F=[].concat(g.pa(X.jm),g.pa(F));I=[].concat(g.pa(X.Mj),g.pa(I));X.Qg&&(Aa=[X.Qg].concat(g.pa(Aa)))}else if(g.S(X,$M)){ia=rN(g.S(X,$M),c,p);if(ia instanceof BJ){t=new CJ(ia);break a}X=new rM(B,x);X=AEa(b,ia.layoutId,ia.oo,c,sN(ia.playerVars,ia.JA,
h,n,X),ia.Qo,f,X,l(r),ua,m.get(ia.oo.externalVideoId),void 0,q);B++;G.push(X.wk);F=[].concat(g.pa(X.jm),g.pa(F));I=[].concat(g.pa(X.Mj),g.pa(I));oa||(Z.push(ua),oa=!0);ia=(ia=ia.oo.adPodSkipTarget)&&0<ia?ia:-1}else if(g.S(X,bN)){X=jEa(a,b,c,g.S(X,bN),f,B,l,ua,ia);if(X instanceof CJ){t=X;break a}X=X(r);G.push(X.wk);F=[].concat(g.pa(X.jm),g.pa(F));I=[].concat(g.pa(X.Mj),g.pa(I));X.Qg&&(Aa=[X.Qg].concat(g.pa(Aa)))}else if(g.S(X,cN)){if(void 0===t){t=new CJ("Composite Survey must already have a Survey Bundle with required metadata.",
{instreamSurveyAdRenderer:g.S(X,cN)});break a}X=mEa(a,b,c,f,g.S(X,cN),ma,l,t,B,xN(p,"supports_multi_step_on_desktop"));if(X instanceof CJ){t=X;break a}X=X(r);G.push(X.wk);X.Qg&&Aa.push(X.Qg);F=[].concat(g.pa(X.jm),g.pa(F));I=[].concat(g.pa(X.Mj),g.pa(I));P=[].concat(g.pa(X.Oy),g.pa(P));R=[].concat(g.pa(X.Ny),g.pa(R));Z=[ma].concat(g.pa(Z))}else if(g.S(X,dN)){X=oEa(a,b,c,f,g.S(X,dN),ma,l,B);if(X instanceof CJ){t=X;break a}X=X(r);G.push(X.wk);X.Qg&&Aa.push(X.Qg);I=[].concat(g.pa(X.Mj),g.pa(I))}else{t=
new CJ("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={gB:G,layoutExitSkipTriggers:F,layoutExitUserInputSubmittedTriggers:P,jd:R,layoutExitMuteTriggers:I,Ly:Z,Dg:Aa}}t instanceof CJ?r=t:(R=r.slotId,x=t.gB,B=t.layoutExitSkipTriggers,G=t.layoutExitMuteTriggers,F=t.layoutExitUserInputSubmittedTriggers,I=t.Ly,r=l(r),P=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",R=e?e.layoutId:hK(b.jb.get(),P,R),Z={layoutId:R,layoutType:P,gb:"core"},r={layout:{layoutId:R,layoutType:P,hc:new Map,
layoutExitNormalTriggers:[new MM(b.j,R)],layoutExitSkipTriggers:B,layoutExitMuteTriggers:G,layoutExitUserInputSubmittedTriggers:F,jd:[],gb:"core",Ea:new DJ([new dJ(x)].concat(g.pa(I))),zc:r(Z)},Dg:t.Dg});return r}};
zEa=function(a,b,c){var d=[];a=g.u(a);for(var e=a.next();!e.done;e=a.next())if(e=e.value,g.S(e,$M)){e=rN(g.S(e,$M),b,c);if(e instanceof BJ)return new CJ(e);d.push(e.Qo)}return d};
CEa=function(a,b,c,d,e,f,h,l){if(!FCa(c,void 0===l?!1:l))return new CJ("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=CDa(c);if(0>=m)return new CJ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new cJ({current:null}),p=GDa(a,b,c,n,d,f,h);return BEa(a,d,f,m,e,function(q,r){var t=q.slotId,v=DDa(c);q=h(q);var x,B=null!=(x=vN(b,d,c.associatedPlayerBytesLayoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))?
x:hK(b.jb.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"core"};x=p(B,r);EJ(x.Ea,"metadata_type_fulfilled_layout")||ZG("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");v=[new NI(d),new sJ(m),new uJ(v),n];return{G6:{layoutId:B,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",hc:new Map,layoutExitNormalTriggers:[new MM(b.j,B)],layoutExitSkipTriggers:[new PM(b.j,r.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new WM(b.j,
r.layoutId)],jd:[],gb:"core",Ea:new DJ(v),zc:q(t)},V5:x}})};
DEa=function(a){if(!JCa(a))return!1;var b=g.S(a.adVideoStart,yN);return b?g.S(a.linearAd,$M)&&uCa(b)?!0:(ZG("Invalid Sandwich with notify"),!1):!1};
EEa=function(a){if(null==a.linearAds)return!1;a=g.S(a.adStart,yN);return a?uCa(a)?!0:(ZG("Invalid LASR with notify"),!1):!1};
FEa=function(a){if(!ICa(a))return!1;a=g.S(a.adStart,yN);return a?uCa(a)?!0:(ZG("Invalid LASR with notify"),!1):!1};
zN=function(a,b,c,d,e,f,h,l){this.jb=a;this.Rb=b;this.Kb=c;this.Ia=d;this.jc=e;this.j=f;this.Oj=h;this.loadPolicy=void 0===l?1:l};
PCa=function(a,b,c,d,e,f,h,l,m){var n=[];if(0===b.length&&0===d.length&&0===c.length)return n;b=b.filter(vCa);var p=c.filter(DCa),q=d.filter(vCa),r=new Map,t=qDa(b),v=c.some(function(X){var wa;return"SLOT_TYPE_PLAYER_BYTES"===(null==X?void 0:null==(wa=X.adSlotMetadata)?void 0:wa.slotType)});
c=c.some(function(X){var wa;return"SLOT_TYPE_PLAYER_UNDERLAY"===(null==X?void 0:null==(wa=X.adSlotMetadata)?void 0:wa.slotType)});
if(v||c)c=vDa(p,b,l,e,t,a.jc.get(),a.loadPolicy,r,a.Ia.get(),a.jb.get()),c instanceof CJ?ZG(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.pa(c));c=g.u(b);for(var x=c.next();!x.done;x=c.next()){x=x.value;var B=GEa(a,r,x,e,f,h,v,l,t,m,p);B instanceof CJ?ZG(B,void 0,void 0,{renderer:x.renderer,config:x.config.adPlacementConfig,kind:x.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.pa(B))}HEa(a.Ia.get())||(f=IEa(a,q,e,l,t,r),n.push.apply(n,g.pa(f)));if(null===a.j||h&&!l.gV){var G,
F,I;a=l.Fc&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(G=b[0].config)?void 0:null==(F=G.adPlacementConfig)?void 0:F.kind)&&(null==(I=b[0].renderer)?void 0:I.adBreakServiceRenderer);if(!n.length&&!a){var P,R,Z,ma;ZG("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":null==(P=b[0])?void 0:null==(R=P.config)?void 0:null==(Z=R.adPlacementConfig)?void 0:Z.kind,renderer:null==(ma=b[0])?void 0:ma.renderer})}return n}G=
d.filter(vCa);n.push.apply(n,g.pa(aDa(r,G,a.Rb.get(),a.j,e,v)));if(!n.length){var ua,oa,ia,Aa;ZG("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":null==(ua=b[0])?void 0:null==(oa=ua.config)?void 0:null==(ia=oa.adPlacementConfig)?void 0:ia.kind,renderer:null==(Aa=b[0])?void 0:Aa.renderer})}return n};
IEa=function(a,b,c,d,e,f){function h(r){return IJ(a.jc.get(),r)}
var l=[];b=g.u(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&DEa(p)?(ZG("Found AdNotify with SandwichedLinearAdRenderer"),q=g.S(p.adVideoStart,yN),p=g.S(p.linearAd,$M),pN(f,n,m.config.adPlacementConfig.kind),n=void 0,q=fDa(null==(n=q)?void 0:n.layout.layoutId,a.Rb.get(),a.Kb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Ia.get(),a.jc.get()),q instanceof CJ?ZG(q):l.push.apply(l,g.pa(q))):
q&&(!q.adLayoutMetadata&&EEa(q)||q.adLayoutMetadata&&FEa(q))&&(ZG("Found AdNotify with LinearAdSequenceRenderer"),pN(f,n,m.config.adPlacementConfig.kind),n=void 0,p=pEa(null==(n=g.S(q.adStart,yN))?void 0:n.layout.layoutId,a.Rb.get(),a.Kb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,YM(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Ia.get()),p instanceof CJ?ZG(p):l.push.apply(l,g.pa(p)))}return l};
GEa=function(a,b,c,d,e,f,h,l,m,n,p){function q(G){return IJ(a.jc.get(),G)}
var r=c.renderer,t=c.config.adPlacementConfig,v=t.kind,x=c.adSlotLoggingData,B=l.gV&&"AD_PLACEMENT_KIND_START"===v;B=f&&!B;if(null!=r.adsEngagementPanelRenderer)return qN(b,c.elementId,v,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(G,F,I,P){var R=a.Kb.get(),Z=r.adsEngagementPanelRenderer,ma=IJ(a.jc.get(),G);return AN(R,G.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new Sxa(Z),F,I,Z.impressionPings,ma,r.adsEngagementPanelRenderer.adLayoutLoggingData,P)}),[];
if(null!=r.actionCompanionAdRenderer){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return XCa(a.Rb.get(),a.j,a.Kb.get(),r.actionCompanionAdRenderer,t,x,d,q);qN(b,c.elementId,v,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(G,F,I,P){var R=a.Kb.get(),Z=r.actionCompanionAdRenderer,ma=IJ(a.jc.get(),G);return AN(R,G.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new KI(Z),F,I,Z.impressionPings,ma,r.actionCompanionAdRenderer.adLayoutLoggingData,P)})}else if(r.imageCompanionAdRenderer)qN(b,c.elementId,v,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(G,F,I,P){var R=a.Kb.get(),Z=r.imageCompanionAdRenderer,ma=IJ(a.jc.get(),G);
return AN(R,G.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Uxa(Z),F,I,Z.impressionPings,ma,r.imageCompanionAdRenderer.adLayoutLoggingData,P)});
else if(r.shoppingCompanionCarouselRenderer)qN(b,c.elementId,v,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(G,F,I,P){var R=a.Kb.get(),Z=r.shoppingCompanionCarouselRenderer,ma=IJ(a.jc.get(),G);return AN(R,G.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Vxa(Z),F,I,Z.impressionPings,ma,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,P)});
else if(r.adBreakServiceRenderer){if(!VCa(c))return[];if("AD_PLACEMENT_KIND_PAUSE"===v)return UCa(a.Rb.get(),t,x,c.renderer.adBreakServiceRenderer,d);if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==v)return TCa(a.Rb.get(),t,x,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Oj)return new CJ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.Fc||ZG("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:v,adPlacementConfig:t,
daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.Fc),clientPlaybackNonce:l.clientPlaybackNonce});JEa(a.Oj,{adPlacementRenderer:c,contentCpn:d,ov:e})}else{if(r.clientForecastingAdRenderer)return aEa(a.Rb.get(),a.Kb.get(),t,x,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return gEa(a.Rb.get(),a.Kb.get(),t,x,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return cEa(a.Rb.get(),a.Kb.get(),t,x,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer||
r.instreamVideoAdRenderer)&&B)return UDa(a.Rb.get(),a.Kb.get(),c,d,q,n,!a.Ia.get().J.W().N("html5_override_ad_video_length_killswitch"));if(r.linearAdSequenceRenderer&&!B){if(h)return[];pN(b,r,v);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!ICa(r.linearAdSequenceRenderer))return new CJ("Received invalid LinearAdSequenceRenderer.")}else if(null==r.linearAdSequenceRenderer.linearAds)return new CJ("Received invalid LinearAdSequenceRenderer.");if(g.S(r.linearAdSequenceRenderer.adStart,yN)){ZG("Found AdNotify in LinearAdSequenceRenderer");
b=g.S(r.linearAdSequenceRenderer.adStart,yN);if(!tCa(b))return new CJ("Invalid AdMessageRenderer.");c=r.linearAdSequenceRenderer.linearAds;return qEa(a.jb.get(),a.Rb.get(),a.Kb.get(),a.jc.get(),t,x,b,YM(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,l,q,m,a.loadPolicy,a.Ia.get())}return yEa(a.Rb.get(),a.Kb.get(),t,x,r.linearAdSequenceRenderer.linearAds,YM(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:
void 0,d,e,l,q,m,a.loadPolicy,a.Ia.get(),p)}if(!r.remoteSlotsRenderer||f){if(r.instreamVideoAdRenderer&&!B){if(h)return[];pN(b,r,v);return kDa(a.Rb.get(),a.Kb.get(),t,x,r.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.Ia.get(),a.jc.get(),p)}if(r.instreamSurveyAdRenderer)return CEa(a.Rb.get(),a.Kb.get(),r.instreamSurveyAdRenderer,t,x,d,q,xN(a.Ia.get(),"supports_multi_step_on_desktop"));if(null!=r.sandwichedLinearAdRenderer)return JCa(r.sandwichedLinearAdRenderer)?g.S(r.sandwichedLinearAdRenderer.adVideoStart,
yN)?(ZG("Found AdNotify in SandwichedLinearAdRenderer"),b=g.S(r.sandwichedLinearAdRenderer.adVideoStart,yN),tCa(b)?(c=g.S(r.sandwichedLinearAdRenderer.linearAd,$M))?gDa(b,c,t,a.jb.get(),a.Rb.get(),a.Kb.get(),a.jc.get(),x,d,e,l,q,m,a.loadPolicy,a.Ia.get()):new CJ("Missing IVAR from Sandwich"):new CJ("Invalid AdMessageRenderer.")):yEa(a.Rb.get(),a.Kb.get(),t,x,[r.sandwichedLinearAdRenderer.adVideoStart,r.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.Ia.get()):new CJ("Received invalid SandwichedLinearAdRenderer.");
if(null!=r.videoAdTrackingRenderer)return ZDa(a.Rb.get(),a.Kb.get(),r.videoAdTrackingRenderer,t,x,d,q)}}return[]};
BN=function(a,b,c,d,e,f,h,l){g.J.call(this);var m=this;this.Wb=a;this.Rb=b;this.Hf=d;this.Ka=e;this.Ia=f;this.Ra=h;this.Sc=l;this.j=null;c.get().addListener(this);g.ub(this,function(){c.isDisposed()||c.get().removeListener(m)});
d.get().addListener(this);g.ub(this,function(){d.isDisposed()||d.get().removeListener(m)})};
JEa=function(a,b){if(a.j)ZG("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.u(a.Hf.get().mK);for(var c=b.next();!c.done;c=b.next())KEa(a,a.j,c.value)}};
KEa=function(a,b,c){var d=a.Ka.get().getCurrentTimeSec(1,!1);a.Ia.get().J.W().wd()&&a.Ra.get().wi("sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.di.toFixed(3));tK(a.Wb.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.Rb.get(),f=b.adPlacementRenderer.renderer.adBreakServiceRenderer,h=b.contentCpn,l=b.adPlacementRenderer.adSlotLoggingData,m=CN(a.Ia.get()),n=a.Ra;if(e.Ia.get().J.W().experiments.ob("enable_smearing_expansion_dai")){var p=g.JJ(e.Ia.get().J.W().experiments,
"max_prefetch_window_sec_for_livestream_optimization");var q=g.JJ(e.Ia.get().J.W().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={Wn:LEa(c),QE:!1,cueProcessedMs:1E3*d};var r=c.startSecs+c.di;if(0===d)m.fp=new Fu(0,1E3*r);else{q=c.startSecs-q;var t=q-d;m.fp=0>=t?new Fu(1E3*q,1E3*r):new Fu(1E3*Math.floor(d+Math.random()*Math.min(t,p)),1E3*r)}p=m}else p={Wn:LEa(c),QE:!1},r=c.startSecs+c.di,c.startSecs<=d?m=new Fu(1E3*(c.startSecs-4),1E3*r):(q=Math.max(0,c.startSecs-d-10),m=new Fu(1E3*
Math.floor(d+Math.random()*(m?0===d?0:Math.min(q,5):q)),1E3*r)),p.fp=m;f=SCa(e,f,h,p,l,[new dya(c)]);e.Ia.get().J.W().experiments.ob("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.fp.start/1E3-d,n=c.startSecs-d,null!=(h=h.J.Gd())&&(h=h.Lc(),h.qoe&&(h=h.qoe,h.provider.Z.N("html5_add_dai_smearing_to_qoe")&&(l=1E3*g.DN(h.provider),p=h.j.daism||[],p.push("t."+l.toFixed(0)+";smw."+(1E3*e).toFixed(0)+";smo."+(1E3*n).toFixed(0)),h.j.daism=p)))):n.get().wi("daism","ct."+Date.now()+";cmt."+d+";smw."+(p.fp.start/
1E3-d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})};
EN=function(a){var b,c=null==(b=EJ(a.Ea,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=EJ(a.Ea,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=EJ(a.Ea,"metadata_type_content_cpn"),f=EJ(a.Ea,"metadata_type_instream_ad_player_overlay_renderer"),h=EJ(a.Ea,"metadata_type_player_overlay_layout_renderer"),l=EJ(a.Ea,"metadata_type_player_underlay_renderer"),m=EJ(a.Ea,"metadata_type_ad_placement_config"),n=EJ(a.Ea,"metadata_type_video_length_seconds");
var p=yJ(a.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?EJ(a.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):yJ(a.Ea,"metadata_type_layout_enter_ms")&&yJ(a.Ea,"metadata_type_layout_exit_ms")?(EJ(a.Ea,"metadata_type_layout_exit_ms")-EJ(a.Ea,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Wp:d,contentCpn:e,gQ:c,RL:b,instreamAdPlayerOverlayRenderer:f,playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,uI:p,inPlayerLayoutId:EJ(a.Ea,"metadata_type_linked_in_player_layout_id"),
inPlayerSlotId:EJ(a.Ea,"metadata_type_linked_in_player_slot_id")}};
NEa=function(a,b){return MEa(a,b)};
OEa=function(a,b){b=MEa(a,b);if(!b)return null;var c;b.uI=null==(c=EJ(a.Ea,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
MEa=function(a,b){var c,d=null==(c=EJ(a.Ea,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;yJ(a.Ea,"metadata_ad_video_is_listed")?c=EJ(a.Ea,"metadata_ad_video_is_listed"):b?c=b.isListed:(ZG("No layout metadata nor AdPlayback specified for ad video isListed"),c=!1);yJ(a.Ea,"metadata_type_ad_info_ad_metadata")?b=EJ(a.Ea,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.Hl,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(ZG("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{x3:b,adPlacementConfig:EJ(a.Ea,"metadata_type_ad_placement_config"),y3:c,contentCpn:EJ(a.Ea,"metadata_type_content_cpn"),inPlayerLayoutId:EJ(a.Ea,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:EJ(a.Ea,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:EJ(a.Ea,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,
uI:void 0,gQ:d,Wp:a.layoutId,videoLengthSeconds:EJ(a.Ea,"metadata_type_video_length_seconds")}};
FN=function(a,b,c,d,e,f,h,l,m){g.J.call(this);this.j=a;this.C=b;this.B=c;this.Wb=d;this.Rb=e;this.Kb=f;this.jc=h;this.Ia=l;this.bb=m;this.nj=!0};
PEa=function(a,b,c){return oDa(a.Rb.get(),b.contentCpn,b.Wp,function(d){return pDa(a.Kb.get(),d.slotId,c,b.adPlacementConfig,b.Wp,IJ(a.jc.get(),d))})};
GN=function(a,b,c,d,e,f,h,l){g.J.call(this);this.Wb=a;this.Ee=b;this.j=c;this.Ia=d;this.B=e;this.bb=f;this.Ka=h;this.Wc=l};
HN=function(a){g.J.call(this);this.j=a};
tK=function(a,b,c,d){a.j().Wi(b,d);c=c();a=a.j();a.pc.j("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.u(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;WJ(d.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);WJ(d.pc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.dc(c.slotId))throw new CJ("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(OJ(e,c))throw new CJ("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.Ef.yq.has(c.slotType))throw new CJ("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.Ef.Lr.has(c.slotType))throw new CJ("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");Rya(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);Rya(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
c.slotFulfillmentTriggers);Rya(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=YJ(f,h);if(OJ(f,c))throw new CJ("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new Mya(c));f.j.set(h,l)}catch(ua){ua instanceof CJ&&ua.Dk?(LJ(d.pc,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",ua.Dk,c),ZG(ua,c,void 0,void 0,ua.Ru)):(LJ(d.pc,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
c),ZG(ua,c));break a}OJ(d.j,c).K=!0;try{var m=d.j,n=OJ(m,c),p=c.slotEntryTrigger,q=m.Ef.Dl.get(p.triggerType);q&&(q.ql("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Ca.set(p.triggerId,q));for(var r=g.u(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var v=t.value,x=m.Ef.Dl.get(v.triggerType);x&&(x.ql("TRIGGER_CATEGORY_SLOT_FULFILLMENT",v,c,null),n.qa.set(v.triggerId,x))}for(var B=g.u(c.slotExpirationTriggers),G=B.next();!G.done;G=B.next()){var F=G.value,I=m.Ef.Dl.get(F.triggerType);I&&(I.ql("TRIGGER_CATEGORY_SLOT_EXPIRATION",
F,c,null),n.ea.set(F.triggerId,I))}var P=m.Ef.yq.get(c.slotType).get().build(m.C,c);n.S=P;var R=m.Ef.Lr.get(c.slotType).get().build(m.G,c);R.init();n.B=R}catch(ua){ua instanceof CJ&&ua.Dk?(LJ(d.pc,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",ua.Dk,c),ZG(ua,c,void 0,void 0,ua.Ru)):(LJ(d.pc,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),ZG(ua,c));MJ(d,c,!0);break a}WJ(d.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Yi(c);for(var Z=g.u(d.Oe),ma=Z.next();!ma.done;ma=
Z.next())ma.value.Yi(c);vya(d,c)}};
IN=function(a,b,c,d){g.J.call(this);var e=this;this.Wb=a;this.Rb=b;this.Dc=c;this.j=new Map;d.get().addListener(this);g.ub(this,function(){d.isDisposed()||d.get().removeListener(e)})};
NCa=function(a,b){var c=0x8000000000000;for(var d=0,e=g.u(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof LM?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):ZG("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new Fu(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.Dc.get().addCueRange(d,c.start,c.end,!1,a)};
JN=function(){g.J.apply(this,arguments);this.nj=!0;this.zl=new Map;this.j=new Map};
QEa=function(a,b){a=g.u(a.zl.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
Gza=function(a,b){a=g.u(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}ZG("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.dc(b)),layoutId:b})};
REa=function(a,b){this.callback=a;this.slot=b};
KN=function(){};
SEa=function(a,b,c){this.callback=a;this.slot=b;this.Ka=c};
TEa=function(a,b,c){this.callback=a;this.slot=b;this.Ka=c;this.B=!1;this.j=0};
UEa=function(a,b,c){this.callback=a;this.slot=b;this.Ka=c};
LN=function(a){this.Ka=a};
MN=function(a){g.J.call(this);this.ZK=a;this.ac=new Map};
VEa=function(a,b){for(var c=[],d=g.u(a.ac.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof WM&&f.triggeringLayoutId===b&&c.push(e)}c.length?VJ(a.ZK(),c):ZG("Survey is submitted but no registered triggers can be activated.")};
NN=function(a,b,c){MN.call(this,a);var d=this;this.Ia=c;b.get().addListener(this);g.ub(this,function(){b.isDisposed()||b.get().removeListener(d)})};
ON=function(a){g.J.call(this);this.j=a;this.nj=!0;this.ac=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.K=new Set;this.B=new Set};
PN=function(a){g.J.call(this);this.j=a;this.ac=new Map};
QN=function(a,b){for(var c=[],d=g.u(a.ac.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&VJ(a.j(),c)};
RN=function(a,b){g.J.call(this);var c=this;this.j=a;this.ac=new Map;b.get().addListener(this);g.ub(this,function(){b.isDisposed()||b.get().removeListener(c)})};
WEa=function(a,b,c,d){var e=[];a=g.u(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof NM){var h=f.trigger.j===b;h===c?e.push(f):d&&h&&(ZG("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
XEa=function(a){return a instanceof qCa||a instanceof rCa||a instanceof OM};
SN=function(a,b,c,d){g.J.call(this);var e=this;this.B=a;this.Dc=b;this.Ka=c;this.bb=d;this.nj=!0;this.ac=new Map;this.j=new Set;c.get().addListener(this);g.ub(this,function(){c.isDisposed()||c.get().removeListener(e)})};
YEa=function(a,b,c,d,e,f,h,l,m,n){if(a.bb.get().Kf(1).clientPlaybackNonce!==m)throw new CJ("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.ac.set(c.triggerId,{Xu:new XM(b,c,d,e),uv:f});a.Dc.get().addCueRange(f,h,l,n,a)};
ZEa=function(a,b){a=g.u(a.ac.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;if(b===d.uv)return c}return""};
TN=function(a,b){g.J.call(this);var c=this;this.D=a;this.B=new Map;this.C=new Map;this.j=null;b.get().addListener(this);g.ub(this,function(){b.isDisposed()||b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().wv)?void 0:d.slotId)||null};
$Ea=function(a,b){var c=[];a=g.u(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
UN=function(a){g.J.call(this);this.j=a;this.nj=!0;this.ac=new Map};
TK=function(a,b){b=b.layoutId;for(var c=[],d=g.u(a.ac.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof MM){var f;if(f=e.trigger.layoutId===b)f=(f=Eya.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&VJ(a.j(),c)};
VN=function(a){g.J.call(this);this.j=a;this.nj=!0;this.ac=new Map};
WN=function(a){g.J.call(this);this.C=a;this.nj=!0;this.ac=new Map;this.j=new Map;this.B=new Map};
aFa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.u(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c};
XN=function(a){g.J.call(this);this.j=a;this.ac=new Map};
bFa=function(a,b){for(var c=[],d=g.u(a.ac.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof qM&&e.trigger.slotId===b&&c.push(e);1<=c.length&&VJ(a.j(),c)};
cFa=function(a,b){var c={slotId:uK(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],gb:"surface",Ea:new DJ([])},d=Object,e=d.assign;b=hK(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",hc:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:"surface",Ea:new DJ([]),
zc:rya(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.gb,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{c6:!0,slot:c,layout:b})};
RCa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Wn:new Fu(-0x8000000000000,-0x8000000000000),QE:d},null!=c&&(d.fp=new Fu(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Wn:new Fu(0x7ffffffffffff,0x8000000000000),QE:d},null!=c&&(d.fp=new Fu(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||ZG("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||ZG("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 CJ("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",e===b&&a-500<=e);d={Wn:new Fu(a,e),QE:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.fp=new Fu(a,e)}return d;
default:return new CJ("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}};
LEa=function(a){var b=1E3*a.startSecs;return new Fu(b,b+1E3*a.di)};
YN=function(){this.B=new Map;this.j=new Map;this.C=new Map};
uK=function(a,b){if(g.Iv("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.aF(16)};
hK=function(a,b,c){if(g.Iv("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.aF(16)};
uN=function(a,b){if(g.Iv("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.aF(16)};
dFa=function(a){var b=[new ZI(a.Wp),new cya(a.gQ),new NI(a.adPlacementConfig),new eJ(a.videoLengthSeconds),new rJ(a.uI)];a.instreamAdPlayerOverlayRenderer&&b.push(new UI(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new VI(a.playerOverlayLayoutRenderer));a.RL&&b.push(new RI(a.RL));return b};
eFa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:hK(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h,l,m=c.instreamAdPlayerOverlayRenderer?null==(h=c.instreamAdPlayerOverlayRenderer)?void 0:h.adLayoutLoggingData:null==(l=c.playerOverlayLayoutRenderer)?void 0:l.adLayoutLoggingData;h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",gb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",hc:new Map,layoutExitNormalTriggers:[new JM(function(n){return uN(f,
n)},c.Wp)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:b,Ea:d,zc:e(h),adLayoutLoggingData:m}};
ZN=function(a,b){var c=this;this.jb=a;this.Ia=b;this.j=function(d){return uN(c.jb.get(),d)}};
pDa=function(a,b,c,d,e,f){c=new DJ([new WI(c),new NI(d)]);b=hK(a.jb.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",hc:new Map,layoutExitNormalTriggers:[new JM(function(h){return uN(a.jb.get(),h)},e)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:"core",Ea:c,zc:f(d),adLayoutLoggingData:void 0}};
tN=function(a,b,c,d,e){var f=dFa(d);return eFa(b,c,d,new DJ(f),e,a.jb.get())};
fFa=function(a,b,c,d,e){var f=dFa(d);f.push(new Wxa(d.x3));f.push(new Xxa(d.y3));return eFa(b,c,d,new DJ(f),e,a.jb.get())};
AN=function(a,b,c,d,e,f,h,l,m,n){b=hK(a.jb.get(),c,b);var p={layoutId:b,layoutType:c,gb:"core"},q=new Map;h&&q.set("impression",h);h=[new nCa(a.j,e)];n&&h.push(new xM(a.j,n,["normal"]));return{layoutId:b,layoutType:c,hc:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:"core",Ea:new DJ([d,new NI(f),new ZI(e)]),zc:l(p),adLayoutLoggingData:m}};
fEa=function(a,b,c){var d=[];d.push(new oCa(a.j,c));b&&d.push(b);return d};
eEa=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,gb:"core"};return{layoutId:b,layoutType:c,hc:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new tM(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:"core",Ea:new DJ([new Txa(d),new NI(e)]),zc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
FDa=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,gb:"core"};return{layoutId:b,layoutType:f,hc:new Map,layoutExitNormalTriggers:[new JM(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:"core",Ea:new DJ([new NI(d)].concat(g.pa(h))),zc:e(m),adLayoutLoggingData:l}};
vN=function(a,b,c,d){if(a.Ia.get().tf("AD_PLACEMENT_KIND_START"===b.kind))if(void 0===c)ZG("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c};
hEa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=nEa(a,b,c,e,f,h,l,m,q,vN(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.Ly;c=new $I(a.iJ);d=a.layoutExitSkipTriggers;0<n&&(b.push(c),b.push(new QI(n)),d=[]);b.push(new PI(p));return{wk:{layoutId:a.layoutId,layoutType:a.layoutType,hc:a.hc,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:a.gb,Ea:new DJ(b),zc:a.zc,adLayoutLoggingData:a.adLayoutLoggingData},
jm:d,Mj:a.layoutExitMuteTriggers,Oy:a.layoutExitUserInputSubmittedTriggers,Ny:a.jd,Qg:a.Qg}};
lEa=function(a,b,c,d,e,f,h,l,m,n){b=nEa(a,b,c,d,f,new Map,h,function(p){return l(p,m)},void 0,vN(a,c,e.associatedPlayerBytesLayoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
a=new WM(a.j,b.iJ);c=new $I(b.iJ);n=new PI(n);return{wk:{layoutId:b.layoutId,layoutType:b.layoutType,hc:b.hc,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:b.gb,Ea:new DJ([].concat(g.pa(b.Ly),[c,n])),zc:b.zc,adLayoutLoggingData:b.adLayoutLoggingData},jm:b.layoutExitSkipTriggers,Mj:b.layoutExitMuteTriggers,Oy:[].concat(g.pa(b.layoutExitUserInputSubmittedTriggers),[a]),Ny:b.jd,Qg:b.Qg}};
nEa=function(a,b,c,d,e,f,h,l,m,n,p){b=null!=n?n:hK(a.jb.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);n={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",gb:"adapter"};l=l(b);var q=EJ(l.Ea,"metadata_type_fulfilled_layout");q||ZG("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new NI(c),new sJ(d),new uJ(e)];p&&c.push(new kJ(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",hc:f,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new PM(a.j,
q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:"adapter",Ly:c,zc:h(n),adLayoutLoggingData:m,Qg:l,iJ:q}};
lDa=function(a,b,c,d,e,f,h,l,m,n,p){a=gFa(a,b,"core",c,d,e,f,h,l,m,n,void 0,p);return{layoutId:a.layoutId,layoutType:a.layoutType,hc:a.hc,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,jd:a.jd,gb:a.gb,Ea:new DJ(a.WU),zc:a.zc,adLayoutLoggingData:a.adLayoutLoggingData}};
AEa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=gFa(a,b,"adapter",c,d,e,f,h,l,m,p,q,r);d=b.layoutExitSkipTriggers;e=b.WU;c.adPodSkipTarget&&0<c.adPodSkipTarget&&(e.push(n),e.push(new QI(c.adPodSkipTarget)),d=[]);e.push(new PI(l.j));c.isCritical&&(d=[new xM(a.j,b.layoutId,["error"])].concat(g.pa(d)));return{wk:{layoutId:b.layoutId,layoutType:b.layoutType,hc:b.hc,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:b.gb,Ea:new DJ(e),
zc:b.zc,adLayoutLoggingData:b.adLayoutLoggingData},jm:d,Mj:b.layoutExitMuteTriggers,Oy:b.layoutExitUserInputSubmittedTriggers,Ny:b.jd}};
gFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){var t={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",gb:c};e=[new NI(e),new OI(m),new SI(d.externalVideoId),new TI(l),new uJ({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands}),new fJ(f),new bJ({current:null}),new eJ(h)];(f=d.playerOverlay.instreamAdPlayerOverlayRenderer)&&e.push(new UI(f));(h=d.playerOverlay.playerOverlayLayoutRenderer)&&e.push(new VI(h));q&&e.push(new gJ(q));(q=d.playerUnderlay)&&
e.push(new WI(q));l=uK(a.jb.get(),"SLOT_TYPE_IN_PLAYER");q=(q=f?f.elementId:null==h?void 0:h.layoutId)?q:hK(a.jb.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);e.push(new $I(q));e.push(new aJ(l));e.push(new kJ(m.j));d.adNextParams&&e.push(new LI(d.adNextParams));d.shrunkenPlayerBytesConfig&&e.push(new Yxa(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&e.push(new MI(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&e.push(new tJ(d.legacyInfoCardVastExtension));d.sodarExtensionData&&
e.push(new hJ(d.sodarExtensionData));p&&e.push(new qJ(p));e.push(new wJ(Bza(d.pings)));m=BK(d.pings);if(r){a:{r=g.u(r);for(p=r.next();!p.done;p=r.next())if(p=p.value,"SLOT_TYPE_PLAYER_UNDERLAY"===p.adSlotMetadata.slotType&&(f=g.S(p.fulfillmentContent.fulfilledLayout,gN))&&(f=g.S(f.renderingContent,fN))&&f.associatedPlayerBytesLayoutId===b){r=p;break a}r=void 0}r&&e.push(new XI(r))}return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",hc:m,layoutExitNormalTriggers:[new MM(a.j,b)],layoutExitSkipTriggers:d.skipOffsetMilliseconds?
[new PM(a.j,q)]:[],layoutExitMuteTriggers:[new PM(a.j,q)],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:c,WU:e,zc:n(t),adLayoutLoggingData:d.adLayoutLoggingData}};
WDa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return zJ(p,[],["LAYOUT_TYPE_MEDIA"])})||ZG("Unexpect subLayout type for DAI composite layout");
b=hK(a.jb.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",gb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",hc:new Map,layoutExitNormalTriggers:[new jCa(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],jd:[],gb:"core",Ea:new DJ([new iJ(c),new jJ(l),new dJ(d),new NI(e),new nJ(f),new lJ({}),new iya(m)]),zc:h(n)}};
RDa=function(a){return null!=a};
$N=function(a,b,c){var d=this;this.jb=a;this.Kb=b;this.Ia=c;this.j=function(e){return uN(d.jb.get(),e)}};
SCa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=uK(a.jb.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.fp&&d.fp.start!==d.Wn.start&&l.push(new LM(a.j,c,new Fu(d.fp.start,d.Wn.start),!1));l.push(new LM(a.j,c,new Fu(d.Wn.start,d.Wn.end),d.QE));d={getAdBreakUrl:b.getAdBreakUrl,yQ:d.Wn.start,xQ:d.Wn.end,cueProcessedMs:d.cueProcessedMs};b=new TM(a.j,h);f=[new pJ(d)].concat(g.pa(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:[new NM(a.j,
c),new RM(a.j,h),new SM(a.j,h)],gb:"core",Ea:new DJ(f),adSlotLoggingData:e}};
iFa=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())d.push(hFa(a,b,e.value));return d};
hFa=function(a,b,c){return null!=c.triggeringSlotId&&c.triggeringSlotId===a?c.clone(b):c};
EDa=function(a,b,c,d,e){return jFa(a,b,c,d,e)};
iEa=function(a,b,c,d){var e=uK(a.jb.get(),"SLOT_TYPE_IN_PLAYER");return jFa(a,e,b,c,d)};
jFa=function(a,b,c,d,e){var f=new wM(a.j,c),h=[new QM(a.j,b)];a=[new RM(a.j,b),new NM(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,gb:"core",Ea:new DJ([new oJ(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}};
BEa=function(a,b,c,d,e,f){var h=uK(a.jb.get(),"SLOT_TYPE_PLAYER_BYTES"),l=uK(a.jb.get(),"SLOT_TYPE_IN_PLAYER"),m=hK(a.jb.get(),"LAYOUT_TYPE_SURVEY",l);d=aO(a,b,c,d);var n=[new QM(a.j,h)];c=[new RM(a.j,h),new NM(a.j,c),new tM(a.j,m)];if(d instanceof CJ)return d;l=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:n,slotExpirationTriggers:c},{slotId:l,layoutId:m});f=l.G6;l=l.V5;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",
slotPhysicalPosition:1,slotEntryTrigger:wEa(a,b,h,d),slotFulfillmentTriggers:xEa(a,b,h,n),slotExpirationTriggers:c,gb:"core",Ea:new DJ([new oJ(f),new xJ(wN(b))]),adSlotLoggingData:e},l]};
wN=function(a){return"AD_PLACEMENT_KIND_START"===a.kind};
mDa=function(a,b,c,d,e){e=e?e:uK(a.jb.get(),"SLOT_TYPE_IN_PLAYER");c=new wM(a.j,c);var f=[new QM(a.j,e)];a=[new NM(a.j,b),new RM(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,gb:"core",Ea:new DJ([new oJ(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
oDa=function(a,b,c,d){var e=uK(a.jb.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new wM(a.j,c);var f=[new QM(a.j,e)];a=[new NM(a.j,b),new RM(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,gb:"core",Ea:new DJ([new oJ(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,gb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
eDa=function(a,b,c,d,e,f,h){var l=uK(a.jb.get(),"SLOT_TYPE_IN_PLAYER"),m=hK(a.jb.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=kFa(a,d,f,h,m);if(d instanceof CJ)return d;h=[new QM(a.j,l)];e=[new NM(a.j,f),new QM(a.j,e),new VM(a.j,e)];c=IJ(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e});a=a.Kb.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",gb:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
hc:new Map,layoutExitNormalTriggers:[new qCa(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new rCa(a.j,m,b.durationMs)],jd:[new OM(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],gb:"core",Ea:new DJ([new gya(b)]),zc:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Ea:new DJ([new oJ(b)])}};
dEa=function(a,b,c,d,e,f){b=aO(a,b,c,d);if(b instanceof CJ)return b;var h=b instanceof LM?new mCa(a.j,c,b.j):null;d=uK(a.jb.get(),"SLOT_TYPE_IN_PLAYER");var l=[new QM(a.j,d)];a=[new NM(a.j,c),new RM(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a},h);return f instanceof BJ?new CJ(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,
slotExpirationTriggers:a,gb:"core",Ea:new DJ([new oJ(f)]),adSlotLoggingData:e}};
bEa=function(a,b,c,d){var e=uK(a.jb.get(),"SLOT_TYPE_IN_PLAYER"),f=new sM(a.j,b),h=[new UM(a.j,e)];a=[new NM(a.j,b),new RM(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,gb:"core",Ea:new DJ([new oJ(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:c}};
LDa=function(a,b,c,d){var e=uK(a.jb.get(),"SLOT_TYPE_IN_PLAYER");c=new wM(a.j,c);var f=[new QM(a.j,e)],h=[new RM(a.j,e),new NM(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new QM(a.j,e)],slotExpirationTriggers:[new NM(a.j,b),new RM(a.j,e)],gb:"core",Ea:new DJ([new oJ(d(f))])}};
IDa=function(a,b,c,d,e){var f=uK(a.jb.get(),"SLOT_TYPE_IN_PLAYER");c=new vM(a.j,d,c);d=[new QM(a.j,f)];a=[new NM(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,gb:"core",Ea:new DJ([new oJ(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,gb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}};
$Ca=function(a,b,c,d,e,f){var h=uK(a.jb.get(),b);return lFa(a,h,b,new wM(a.j,d),[new NM(a.j,c),new RM(a.j,h),new xM(a.j,d,["error"])],e,f)};
ZCa=function(a,b,c,d,e,f,h){var l=uK(a.jb.get(),b);return lFa(a,l,b,new xM(a.j,e,["normal"]),[new NM(a.j,c),new RM(a.j,l),new xM(a.j,d,["error"])],f,h)};
WCa=function(a,b,c,d,e){var f=uK(a.jb.get(),b);return lFa(a,f,b,new sM(a.j,c),[new NM(a.j,c),new RM(a.j,f)],d,e)};
YDa=function(a,b,c,d){var e=uK(a.jb.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new sM(a.j,b);var f=[new QM(a.j,e)];a=[new RM(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:f,slotExpirationTriggers:a,gb:"core",Ea:new DJ([new oJ(d({slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,gb:"core",slotEntryTrigger:b,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))]),adSlotLoggingData:c}};
SDa=function(a,b,c,d){var e=uK(a.jb.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new kCa(a.j),h=[new UM(a.j,e)];b=[new NM(a.j,b)];var l={slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,gb:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b};a=a.Ia.get();return!g.UJ(a.J.W())&&a.J.W().experiments.ob("enable_pacf_slot_asde_player_byte_h5")||g.UJ(a.J.W())&&a.J.W().experiments.ob("enable_pacf_slot_asde_player_byte_h5_TV")?{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,gb:"core",Ea:new DJ([new oJ(d(l)),new lJ({})]),adSlotLoggingData:c}:{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,gb:"core",Ea:new DJ([new oJ(d(l)),new lJ({})])}};
tEa=function(a,b){return HEa(a.Ia.get())?new xM(a.j,b,["normal","error","skipped"]):new xM(a.j,b,["normal"])};
iDa=function(a,b,c,d,e){b=tEa(a,b);a=uEa(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,gb:a.gb});return e instanceof CJ?e:{Fw:Object.assign({},a,{Ea:new DJ([new oJ(e.layout)]),adSlotLoggingData:d}),Dg:e.Dg}};
jDa=function(a,b,c,d,e,f,h){c=vEa(a,b,c,d);if(c instanceof CJ)return c;h=h({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,gb:c.gb});if(h instanceof CJ)return h;d=[new xJ(wN(b)),new oJ(h.layout)];f&&d.push(new vJ({}));return{Fw:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:wEa(a,b,
c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:xEa(a,b,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,gb:c.gb,Ea:new DJ(d),adSlotLoggingData:e},Dg:h.Dg}};
wEa=function(a,b,c,d){return a.Ia.get().tf(wN(b))?new qM(a.j,c):d};
xEa=function(a,b,c,d){return a.Ia.get().tf(wN(b))?[new UM(a.j,c)]:d};
uEa=function(a,b,c){var d=uK(a.jb.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new QM(a.j,d)];a=[new RM(a.j,d),new NM(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,gb:"core"}};
vEa=function(a,b,c,d){b=aO(a,b,c,d);return b instanceof CJ?b:uEa(a,b,c)};
$Da=function(a,b,c,d,e,f){var h=uK(a.jb.get(),"SLOT_TYPE_FORECASTING");b=aO(a,b,c,d);if(b instanceof CJ)return b;d=[new QM(a.j,h)];a=[new RM(a.j,h),new NM(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,gb:"core",Ea:new DJ([new oJ(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,gb:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}};
mFa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new sM(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=RCa(b,d),a instanceof CJ?a:e(a.Wn,f);case "AD_PLACEMENT_KIND_END":return new uM(a.j,c,f);default:return new CJ("Cannot construct entry trigger",{kind:b.kind})}};
kFa=function(a,b,c,d,e){return mFa(a,b,c,d,function(f,h){return new KM(a.j,c,f,h,e)})};
aO=function(a,b,c,d){return mFa(a,b,c,d,function(e,f){return new LM(a.j,c,e,f)})};
lFa=function(a,b,c,d,e,f,h){a=[new UM(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,gb:"core",Ea:new DJ([new oJ(h({slotId:b,slotType:c,slotPhysicalPosition:1,gb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}};
bO=function(a,b){g.J.call(this);this.Ia=a;this.B=b;this.eventCount=0};
WJ=function(a,b,c){a.j(b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData)};
PJ=function(a,b,c,d){a.j(b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
Dya=function(a,b,c,d){sya(a.B.get())&&a.j("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
LJ=function(a,b,c,d,e){a.j("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,d,e,void 0,d.adSlotLoggingData,e?e.adLayoutLoggingData:void 0,{errorType:b,errorMessage:c})};
nFa=function(a,b,c,d,e,f,h,l,m,n,p){if(!a.Ia.get().J.W().N("html5_disable_client_tmp_logs")&&("ADS_CLIENT_EVENT_TYPE_ERROR"!==b||a.hR())&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){b||ZG("Empty PACF event type",f,h);var q=sya(a.B.get());b={eventType:b,eventOrder:++a.eventCount};var r={};f&&(r.slotData=oya(q,f));h&&(r.layoutData=pya(q,h));l&&(r.triggerData=HJ(l.trigger,l.category));c&&(r.opportunityData=qya(q,c,d,e));c={organicPlaybackContext:{contentCpn:a.bb.get().Kf(1).clientPlaybackNonce}};c.organicPlaybackContext.isLivePlayback=
a.bb.get().Kf(1).Fc;var t;c.organicPlaybackContext.isMdxPlayback=null==(t=a.bb.get().Kf(1))?void 0:t.isMdxPlayback;var v;if(t=null==(v=a.bb.get().Kf(2))?void 0:v.clientPlaybackNonce)c.adVideoPlaybackContext={adVideoCpn:t};c&&(r.externalContext=c);b.adClientData=r;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);p&&(b.errorInfo=p);m={adsClientEvent:b};xN(a.Ia.get(),"tvh5_pacf_disable_gel_log_action")||g.zD("adsClientStateChange",
m)}};
cO=function(a,b,c){bO.call(this,a,b);this.Ia=a;this.bb=c};
dO=function(){this.j=new Map};
eO=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
kO=function(a){g.J.call(this);this.counter=[0,0,0,0];this.B=new Uint8Array(16);this.j=16;if(!oFa){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);fO=new Uint8Array(256);gO=eO(256);hO=eO(256);iO=eO(256);jO=eO(256);for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;fO[f]=e;b=e<<1^(e>>7&&283);var h=b^e;gO[f]=b<<24|e<<16|e<<8|h;hO[f]=h<<24|gO[f]>>>8;iO[f]=e<<24|hO[f]>>>8;jO[f]=e<<24|iO[f]>>>8}oFa=!0}e=eO(44);for(c=
0;4>c;c++)e[c]=a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;44>c;c++)a=e[c-1],c%4||(a=(fO[a>>16&255]^d)<<24|fO[a>>8&255]<<16|fO[a&255]<<8|fO[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
pFa=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;40>n;)h=gO[c>>>24]^hO[d>>16&255]^iO[e>>8&255]^jO[f&255]^b[n++],l=gO[d>>>24]^hO[e>>16&255]^iO[f>>8&255]^jO[c&255]^b[n++],m=gO[e>>>24]^hO[f>>16&255]^iO[c>>8&255]^jO[d&255]^b[n++],f=gO[f>>>24]^hO[c>>16&255]^iO[d>>8&255]^jO[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=fO[c>>>24]^h>>>24;a[1]=fO[d>>16&255]^h>>16&255;a[2]=fO[e>>8&255]^
h>>8&255;a[3]=fO[f&255]^h&255;h=b[41];a[4]=fO[d>>>24]^h>>>24;a[5]=fO[e>>16&255]^h>>16&255;a[6]=fO[f>>8&255]^h>>8&255;a[7]=fO[c&255]^h&255;h=b[42];a[8]=fO[e>>>24]^h>>>24;a[9]=fO[f>>16&255]^h>>16&255;a[10]=fO[c>>8&255]^h>>8&255;a[11]=fO[d&255]^h&255;h=b[43];a[12]=fO[f>>>24]^h>>>24;a[13]=fO[c>>16&255]^h>>16&255;a[14]=fO[d>>8&255]^h>>8&255;a[15]=fO[e&255]^h&255};
mO=function(){if(!qFa&&!g.dE){if(lO)return lO;var a;lO=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=lO)?0:b.importKey)&&(null==(c=lO)?0:c.sign)&&(null==(d=lO)?0:d.encrypt))return lO;lO=void 0}};
oO=function(){this.C=this.j=0;this.B=Array.from({length:nO.length}).fill(0)};
rFa=function(a){if(0===a.j)return null;for(var b=a.j.toFixed(0)+"."+a.C.toFixed(0),c=0;c<nO.length;++c)if(0<a.B[c])b+="."+nO[c].toFixed(0)+"_"+a.B[c].toFixed(0);else break;return b};
sFa=function(){};
tFa=function(a){this.name=a;this.startTimeMs=(0,g.OD)();this.j=!1};
uFa=function(){this.j=new sFa};
vFa=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.j||(a.j[b]=new oO),a.j[b].Th(c,d))};
wFa=function(){};
xFa=function(a){this.name=a;this.startTimeMs=(0,g.OD)();this.j=!1};
yFa=function(){this.j=new wFa};
AFa=function(a,b,c,d){if(b&&"object"===typeof b&&"then"in b&&"function"===typeof b.then){var e=function(f){zFa(a,c,(0,g.OD)()-d);return f};
return b.then(e,e)}zFa(a,c,(0,g.OD)()-d);return b};
zFa=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.j||(a.j[b]=new oO),a.j[b].Th(c,d))};
BFa=function(){};
CFa=function(a){if(!pO.isActive())return a.exports.AES128CTRCipher_encrypt.bind(a.exports);var b=a.j?"oals":"oalw";return function(c,d,e){pO.ll(b,function(){a.exports.AES128CTRCipher_encrypt(c,d,e)},e/16)}};
qO=function(a,b){g.J.call(this);var c=this;this.j=a;this.B=CFa(this.j);this.cipher=this.j.exports.AES128CTRCipher_create(b.byteOffset);g.ub(this,function(){c.j.exports.AES128CTRCipher_release(c.cipher)})};
g.rO=function(a){this.D=a};
g.sO=function(a){g.J.call(this);this.B=a};
tO=function(a,b){g.J.call(this);this.j=a;this.D=b};
DFa=function(a){this.G=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.K=new Uint8Array(64);this.B=0;this.G.set(a);this.C.set(a);for(a=0;64>a;a++)this.G[a]^=92,this.C[a]^=54;this.reset()};
EFa=function(a,b,c){for(var d=a.S,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],r,t,v,x=0;64>x;)16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=q+uO[x]+v+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),t=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=r+t,l+=r,x++,16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=
d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=p+uO[x]+v+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),t=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=r+t,h+=r,x++,16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=n+uO[x]+v+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^
~h&m),t=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=r+t,f+=r,x++,16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=m+uO[x]+v+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),t=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),v=q,q=l,l=v,v=p,p=h,h=v,v=n,n=f,f=v,m=e+r,e=r+t,x++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=h+a.j[2]|0;a.j[3]=
l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0};
GFa=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.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;FFa(a);return b};
FFa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.S=[];a.S.length=64;a.D=0;a.B=0};
HFa=function(a){this.j=a};
IFa=function(a,b,c){a=new DFa(a.j);a.update(b);a.update(c);b=GFa(a);a.update(a.G);a.update(b);b=GFa(a);a.reset();return b};
JFa=function(a){this.B=a};
KFa=function(a,b,c,d){var e,f,h;return g.H(function(l){switch(l.j){case 1:if(a.j){l.Ma(2);break}return g.z(l,d.importKey("raw",a.B,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:a.j=l.B;case 2:return e=new Uint8Array(b.length+c.length),e.set(b),e.set(c,b.length),f={name:"HMAC",hash:"SHA-256"},g.z(l,d.sign(f,a.j,e),4);case 4:return h=l.B,l.return(new Uint8Array(h))}})};
LFa=function(a,b,c){a.C||(a.C=new HFa(a.B));return IFa(a.C,b,c)};
MFa=function(a,b,c){var d,e;return g.H(function(f){if(1==f.j){d=mO();if(!d)return f.return(LFa(a,b,c));g.za(f,3);return g.z(f,KFa(a,b,c,d),5)}if(3!=f.j)return f.return(f.B);e=g.Ca(f);g.UF(e);qFa=!0;return f.return(LFa(a,b,c))})};
vO=function(){var a=NFa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Mla.apply(null,[Nla.apply(null,g.pa(b))].concat(g.pa(c)));this.store=Pla(a,void 0,b)};
g.OFa=function(a,b,c){for(var d=Object.assign({},a),e=g.u(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.pa(h),g.pa(l)):l;else if(!Array.isArray(l)&&g.Xa(l)&&!Array.isArray(h)&&g.Xa(h))d[f]=g.OFa(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.nD("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,Hfb:h,updateValue:l}),
g.TF(b),a}return d};
wO=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
PFa=function(a,b){return 0===a.j.length?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
xO=function(a,b){b=g.u(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
yO=function(a,b,c){return a.split(b).Gm.split(c).QH};
QFa=function(a){a.D=void 0;a.B=0;a.C=0};
RFa=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.j[a.B].length};
SFa=function(a){if(!a.D){var b=a.j[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D};
TFa=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!RFa(a,b,c)){var d=a.B,e=a.C;a.focus(b+c-1);e=new Uint8Array(a.C+a.j[a.B].length-e);for(var f=0,h=d;h<=a.B;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.B-d+1,e);QFa(a);a.focus(b)}d=a.j[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)};
zO=function(a,b,c){a=TFa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
UFa=function(a,b,c){a=zO(a,void 0===b?0:b,void 0===c?-1:c);b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(c=0;c<a.length;c++)b[c]=a[c]}return b};
AO=function(a,b){a.focus(b);return a.j[a.B][b-a.C]};
VFa=function(a,b){a.focus(b);return RFa(a,b,4)?SFa(a).getUint32(b-a.C):256*(256*(256*AO(a,b)+AO(a,b+1))+AO(a,b+2))+AO(a,b+3)};
WFa=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
BO=function(a){return String.fromCharCode.apply(null,a)};
DO=function(a){return a.length?CO?CO.decode(a):BO(a):""};
g.FO=function(a){if(!a.length)return"";try{if(CO)return CO.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(h){}for(var b=0,c=[],d=a.length;b<d;){for(var e=0;1024>e&&b<d;){var f=a[b++];if(128>f)EO[e++]=f;else{if(224>f)f=(f&31)<<6|a[b++]&63;else if(240>f)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(1024===e+1){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;EO[e++]=55296|f>>10;f=56320|f&1023}EO[e++]=f}}f=String.fromCharCode.apply(String,EO);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
HO=function(a,b){var c;if(null==(c=GO)?0:c.encodeInto)return b=GO.encodeInto(a,b),b.read<a.length?4*a.length:b.written;for(var d=c=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296===(e&64512)&&d+1<a.length&&56320===(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c};
XFa=function(a){if(GO)return GO.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=HO(a,b);b.length<c&&(b=new Uint8Array(c),c=HO(a,b));b.length>c&&(b=b.subarray(0,c));return b};
IO=function(a){this.j=a;this.pos=0;this.B=-1};
JO=function(a){var b=AO(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=AO(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
KO=function(a,b){var c=a.B;for(a.B=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=JO(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.B=c;break}c=-1;switch(e){case 0:JO(a);break;case 1:a.pos+=8;break;case 2:d=JO(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
LO=function(a,b){if(KO(a,b))return JO(a)};
YFa=function(a,b){if(KO(a,b))return!!JO(a)};
MO=function(a,b){if(KO(a,b)){b=JO(a);var c=zO(a.j,a.pos,b);a.pos+=b;return c}};
NO=function(a,b){if(a=MO(a,b))return g.FO(a)};
OO=function(a,b,c){if(a=MO(a,b))return c(new IO(new wO([a])))};
PO=function(a,b){for(var c=[];KO(a,b);)c.push(JO(a));return c.length?c:void 0};
QO=function(a,b,c){for(var d=[],e;e=MO(a,b);)d.push(c(new IO(new wO([e]))));return d.length?d:void 0};
RO=function(a,b){a=a instanceof Uint8Array?new wO([a]):a;return b(new IO(a))};
ZFa=function(a,b){a=void 0===a?4096:a;this.B=b;this.pos=0;this.C=[];b=void 0;if(this.B)try{var c=this.B.exports.malloc(a);b=new Uint8Array(this.B.exports.memory.buffer,c,a)}catch(d){}b||(b=new Uint8Array(a));this.j=b;this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)};
SO=function(a,b){var c=a.pos+b;if(!(a.j.length>=c)){for(b=2*a.j.length;b<c;)b*=2;a.B?(c=a.B.exports.realloc(a.j.byteOffset,b),a.j=new Uint8Array(a.B.exports.memory.buffer,c,b)):(b=new Uint8Array(b),b.set(a.j.subarray(0,a.pos)),a.j=b);a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength)}};
TO=function(a,b){if(268435455<b){SO(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(SO(a,4);127<b;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1};
UO=function(a,b,c){void 0!==c&&(TO(a,8*b),TO(a,c))};
VO=function(a,b,c){void 0!==c&&UO(a,b,c?1:0)};
WO=function(a,b,c){void 0!==c&&(TO(a,8*b+2),b=c.length,TO(a,b),SO(a,b),a.j.set(c,a.pos),a.pos+=b)};
XO=function(a,b,c){void 0!==c&&($Fa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),SO(a,1.2*c.length),b=HO(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(SO(a,b),b=HO(c,a.j.subarray(a.pos))),a.pos+=b,aGa(a))};
$Fa=function(a,b,c){c=void 0===c?2:c;TO(a,8*b+2);a.C.push(a.pos);a.C.push(c);a.pos+=c};
aGa=function(a){for(var b=a.C.pop(),c=a.C.pop(),d=a.pos-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}};
YO=function(a,b,c,d,e){c&&($Fa(a,b,void 0===e?3:e),d(a,c),aGa(a))};
bGa=function(a){a.B&&a.j.buffer!==a.B.exports.memory.buffer&&(a.j=new Uint8Array(a.B.exports.memory.buffer,a.j.byteOffset,a.j.byteLength),a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength));return new Uint8Array(a.j.buffer,a.j.byteOffset,a.pos)};
g.ZO=function(a,b,c){c=new ZFa(4096,c);b(c,a);return bGa(c)};
g.$O=function(a){var b=new IO(new wO([og(decodeURIComponent(a))]));a=NO(b,2);b=LO(b,4);var c=cGa[b];if("undefined"===typeof c)throw a=new g.nD("Failed to recognize field number",{name:"EntityKeyHelperError",oeb:b}),g.TF(a),a;return{H4:b,entityType:c,entityId:a}};
g.aP=function(a,b){var c=new ZFa;WO(c,2,XFa(a));a=dGa[b];if("undefined"===typeof a)throw b=new g.nD("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.TF(b),b;UO(c,4,a);UO(c,5,1);b=bGa(c);return encodeURIComponent(g.mg(b))};
bP=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
eGa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.OFa(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
fGa=function(a,b){a=void 0===a?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null==(f=e.options)?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.TF(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.TF(new g.nD("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.Yc(e.payload);
return bP(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=g.$O(e).entityType;l=bP(d,m,e)}catch(q){if(q instanceof Error)g.TF(new g.nD("Failed to deserialize entity key",{entityKey:e,SP:q.message})),l=d;else throw q;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.TF(new g.nD("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.Yc(e.payload);var n,p;return eGa(d,l,e.entityKey,e.payload[l],null==(n=
e.fieldMask)?void 0:null==(p=n.mergeOptions)?void 0:p.repeatedFieldsMergeOption)}return d},a);
case "REPLACE_ENTITY":var c=b.payload;return bP(a,c.entityType,c.key,c.G4);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var f=b.payload[e];return Object.keys(f).reduce(function(h,l){return bP(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,eGa(a,c.entityType,c.key,c.G4,c.Cfb);default:return a}};
cP=function(a,b,c){return a[b]?a[b][c]||null:null};
hGa=function(a){var b=a.hours||0;var c=a.minutes||0,d=a.seconds||0;b=d+60*c+3600*b+86400*(a.days||0)+604800*(a.weeks||0)+2629800*(a.months||0)+31557600*(a.years||0);0>=b?b={hours:0,minutes:0,seconds:0}:(a=b,b=Math.floor(a/3600),a%=3600,c=Math.floor(a/60),d=Math.floor(a%60),b={hours:b,minutes:c,seconds:d});var e=void 0===b.hours?0:b.hours;c=void 0===b.minutes?0:b.minutes;a=void 0===b.seconds?0:b.seconds;d=0<e;b=[];if(d){e=(new Intl.NumberFormat("en-u-nu-latn")).format(e);var f=["fr"],h="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");
e="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(dP)?e.replace(",","\u00a0"):f.includes(dP)?e.replace(",","\u202f"):h.includes(dP)?e.replace(",","."):e;b.push(e)}d=void 0===d?!1:d;c=(["af","be","lt"].includes(dP)||d)&&10>c?gGa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=gGa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(dP)&&(c=".");return b.join(c)};
gGa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
iGa=function(a,b){var c,d;a=(null==(c=a.watchEndpointSupportedAuthorizationTokenConfig)?void 0:null==(d=c.videoAuthorizationToken)?void 0:d.credentialTransferTokens)||[];for(c=0;c<a.length;++c)if(a[c].scope===b)return a[c].token||void 0};
eP=function(a){return a?function(){try{return a.apply(this,arguments)}catch(b){g.TF(b)}}:a};
fP=function(a,b,c){if(!g.SB("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)c?a(c(b[d])[1]):a(b[d]);else c?a(c(b)[1]):a(b)};
gP=function(a,b,c){if(!g.SB("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)a(c[b[d]]);else a(c[b])};
W=function(a){g.SB("jspb_translator_log_errors")&&g.VB(a)};
kGa=function(a){var b=new Fy,c=0;try{var d=a.eventType;void 0!==d&&(O(b,1,jGa[d]),c++);var e=a.storedEventsCount;void 0!==e&&(Gj(b,2,e),c++);var f=a.expiredEventsCount;void 0!==f&&(Gj(b,3,f),c++);var h=a.averageTimeBetweenDispatchesMs;void 0!==h&&(Gj(b,4,h),c++);var l=a.oldestStoredEventAgeMs;void 0!==l&&(Gj(b,5,l),c++);var m=a.metricIntervalMs;void 0!==m&&(Gj(b,6,m),c++);var n=a.dispatchedEventCount;void 0!==n&&(Gj(b,7,n),c++);var p=a.dispatchAttemptCount;void 0!==p&&(Gj(b,8,p),c++);var q=a.withDiskSpaceMs;
void 0!==q&&(Ij(b,9,q),c++);var r=a.withNetworkMs;void 0!==r&&(Ij(b,10,r),c++);var t=a.foregroundMs;void 0!==t&&(Ij(b,11,t),c++);var v=a.activeMs;void 0!==v&&(Ij(b,12,v),c++);var x=a.condensedPageBcSlackCount;void 0!==x&&(Gj(b,13,x),c++);var B=a.persistedDeleteUsedCount;void 0!==B&&(Gj(b,14,B),c++);var G=a.persistedDeleteCount;void 0!==G&&(Gj(b,15,G),c++);var F=a.eventDisabledCount;void 0!==F&&(Gj(b,16,F),c++);var I=a.identityResolutionErrorCount;void 0!==I&&(Gj(b,17,I),c++);var P=a.exceededMaxRetryCount;
void 0!==P&&(Gj(b,18,P),c++);var R=a.condensedPageBcPersistFailCount;void 0!==R&&(Gj(b,19,R),c++);var Z=a.couldNotUnloadPageCount;void 0!==Z&&(Gj(b,20,Z),c++);var ma=a.pageWasCorruptedCount;void 0!==ma&&(Gj(b,24,ma),c++);var ua=a.badEventIndexCount;void 0!==ua&&(Gj(b,27,ua),c++);var oa=a.serializeErrorCount;void 0!==oa&&(Gj(b,25,oa),c++);var ia=a.payloadInfoNotSetCount;void 0!==ia&&(Gj(b,21,ia),c++);var Aa=a.requestEmptyErrorCount;void 0!==Aa&&(Gj(b,22,Aa),c++);var X=a.clientEventNotSetCount;void 0!==
X&&(Gj(b,23,X),c++);var wa=a.differentIdCount;void 0!==wa&&(Gj(b,26,wa),c++);var ca=a.failedWriteCount;void 0!==ca&&(Gj(b,28,ca),c++);var Ra=a.failedReadCount;void 0!==Ra&&(Gj(b,29,Ra),c++);var y=a.failedDispatchCount;void 0!==y&&(Gj(b,30,y),c++);var V=a.failedFetchCount;void 0!==V&&(Gj(b,31,V),c++);var ib=a.loggingliteLogsMoved;void 0!==ib&&(Gj(b,32,ib),c++);var fb=a.loggingliteLogsDropped;void 0!==fb&&(Gj(b,33,fb),c++);return[c===Object.keys(a).length,b]}catch(Za){return W(Za),[!1,void 0]}};
hP=function(a){var b=new fA,c=0;try{var d=a.trackingParams;void 0!==d&&(b.Gg(d),c++);var e=a.veType;void 0!==e&&(Gj(b,2,e),c++);var f=a.elementIndex;void 0!==f&&(Gj(b,3,f),c++);var h=a.veCounter;void 0!==h&&(Gj(b,6,h),c++);var l=a.dataElement;if(l){var m=hP(l);m[0]&&(tj(b,fA,7,m[1]),c++)}var n=a.isCounterfactual;void 0!==n&&(Fj(b,5,n),c++);var p=a.youtubeData;if(p){var q=new ox,r=0;try{var t=p.channelData;if(t){var v=new vw,x=0;try{var B=t.externalId;void 0!==B&&(ik(v,1,B),x++);var G=[x===Object.keys(t).length,
v]}catch(Oa){W(Oa),G=[!1,void 0]}var F=G;F[0]&&(tj(q,vw,2,F[1]),r++)}var I=p.channelItem;if(I){var P=new ww,R=0;try{var Z=I.externalId;void 0!==Z&&(ik(P,1,Z),R++);var ma=[R===Object.keys(I).length,P]}catch(Oa){W(Oa),ma=[!1,void 0]}var ua=ma;ua[0]&&(tj(q,ww,5,ua[1]),r++)}var oa=p.playlistItem;if(oa){var ia=new Ow,Aa=0;try{var X=oa.externalPlaylistId;void 0!==X&&(ik(ia,5,X),Aa++);var wa=[Aa===Object.keys(oa).length,ia]}catch(Oa){W(Oa),wa=[!1,void 0]}var ca=wa;ca[0]&&(tj(q,Ow,6,ca[1]),r++)}var Ra=p.analyticsData;
if(Ra){var y=new tw,V=0;try{var ib=Ra.tabName;void 0!==ib&&(O(y,1,lGa[ib]),V++);var fb=Ra.analysisVariant;if(fb){var Za=new fw,$a=0;try{var ic=fb.analysisSummary;if(ic){var Rb=new Qv,bb=0;try{var ec=ic.type;void 0!==ec&&(O(Rb,1,mGa[ec]),bb++);var jb=ic.eligibility;void 0!==jb&&(O(Rb,2,nGa[jb]),bb++);var A=ic.sentiment;void 0!==A&&(O(Rb,3,oGa[A]),bb++);var D=[bb===Object.keys(ic).length,Rb]}catch(Oa){W(Oa),D=[!1,void 0]}var E=D;E[0]&&(tj(Za,Qv,1,E[1]),$a++)}var C=fb.videoPerformanceVariant;if(C){var K=
pGa(C);K[0]&&(uj(Za,cw,2,iP,K[1]),$a++)}var Y=fb.videoOverviewVariant;if(Y){var ka=new dw,va=0;try{var ea=Y.timePeriod;void 0!==ea&&(O(ka,1,jP[ea]),va++);var ha=Y.videoPerformanceVariant;if(ha){var Ea=pGa(ha);Ea[0]&&(tj(ka,cw,2,Ea[1]),va++)}var Da=Y.durationTimePeriod;void 0!==Da&&(O(ka,3,qGa[Da]),va++);var nb=[va===Object.keys(Y).length,ka]}catch(Oa){W(Oa),nb=[!1,void 0]}var Vb=nb;Vb[0]&&(uj(Za,dw,3,iP,Vb[1]),$a++)}var Lb=fb.channelFluctuationVariant;if(Lb){var Ob=new Tv,Ab=0;try{var Kb=Lb.views;
void 0!==Kb&&(O(Ob,1,kP[Kb]),Ab++);var Fc=Lb.driver;void 0!==Fc&&(O(Ob,2,rGa[Fc]),Ab++);var yc=Lb.ctr;void 0!==yc&&(O(Ob,3,kP[yc]),Ab++);var $c=Lb.impressions;void 0!==$c&&(O(Ob,4,kP[$c]),Ab++);var Wc=Lb.viewsPerVideo;void 0!==Wc&&(O(Ob,5,kP[Wc]),Ab++);var ad=[Ab===Object.keys(Lb).length,Ob]}catch(Oa){W(Oa),ad=[!1,void 0]}var kd=ad;kd[0]&&(uj(Za,Tv,4,iP,kd[1]),$a++)}var Zb=fb.artistOverviewVariant;if(Zb){var Kd=new Rv,xd=0;try{var $b=Zb.timePeriod;void 0!==$b&&(O(Kd,1,jP[$b]),xd++);var bd=Zb.variantType;
void 0!==bd&&(O(Kd,2,sGa[bd]),xd++);var cd=[xd===Object.keys(Zb).length,Kd]}catch(Oa){W(Oa),cd=[!1,void 0]}var kb=cd;kb[0]&&(uj(Za,Rv,5,iP,kb[1]),$a++)}var Hb=fb.monthlySubsVariant;if(Hb){var Oe=tGa(Hb);Oe[0]&&(uj(Za,Xv,6,iP,Oe[1]),$a++)}var qf=fb.monthlyRevenueVariant;if(qf){var cf=uGa(qf);cf[0]&&(uj(Za,Wv,7,iP,cf[1]),$a++)}var pe=fb.holisticMonthlyOverviewVariant;if(pe){var Ce=new Yv,qe=0;try{var $g=pe.viewsPerformance;if($g){var tg=vGa($g);tg[0]&&(tj(Ce,Vv,1,tg[1]),qe++)}var ah=pe.subsPerformance;
if(ah){var bh=tGa(ah);bh[0]&&(tj(Ce,Xv,2,bh[1]),qe++)}var ch=pe.revenuePerformance;if(ch){var dh=uGa(ch);dh[0]&&(tj(Ce,Wv,3,dh[1]),qe++)}var De=[qe===Object.keys(pe).length,Ce]}catch(Oa){W(Oa),De=[!1,void 0]}var Ee=De;Ee[0]&&(uj(Za,Yv,8,iP,Ee[1]),$a++)}var dd=fb.personalizedChannelOverviewVariant;if(dd){var Sd=new bw,Ed=0;try{var eh=dd.timePeriod;void 0!==eh&&(O(Sd,1,jP[eh]),Ed++);var fh=dd.viewsPerformance;if(fh){var gh=vGa(fh);gh[0]&&(tj(Sd,Vv,2,gh[1]),Ed++)}var df=[Ed===Object.keys(dd).length,
Sd]}catch(Oa){W(Oa),df=[!1,void 0]}var ed=df;ed[0]&&(uj(Za,bw,9,iP,ed[1]),$a++)}var rc=fb.channelNewReturningVariant;if(rc){var Ph=new Uv,Qh=0;try{var Rh=rc.uniqueViewers;void 0!==Rh&&(O(Ph,1,kP[Rh]),Qh++);var Sh=rc.newViewers;void 0!==Sh&&(O(Ph,2,kP[Sh]),Qh++);var ef=rc.returningViewers;void 0!==ef&&(O(Ph,3,kP[ef]),Qh++);var Pe=[Qh===Object.keys(rc).length,Ph]}catch(Oa){W(Oa),Pe=[!1,void 0]}var Qe=Pe;Qe[0]&&(uj(Za,Uv,10,iP,Qe[1]),$a++)}var hh=fb.lowReturningViewersDataStoryVariant;if(hh){var ld=
new Zv,zc=0;try{var Oc=hh.videoListType;void 0!==Oc&&(O(ld,1,wGa[Oc]),zc++);var rf=[zc===Object.keys(hh).length,ld]}catch(Oa){W(Oa),rf=[!1,void 0]}var sf=rf;sf[0]&&(uj(Za,Zv,11,iP,sf[1]),$a++)}var Gf=fb.weeklyDataStoryVariant;if(Gf){var Wf=new ew,ug=0;try{var rd=Gf.dateId;void 0!==rd&&(Hj(Wf,1,rd),ug++);var Xf=[ug===Object.keys(Gf).length,Wf]}catch(Oa){W(Oa),Xf=[!1,void 0]}var zi=Xf;zi[0]&&(uj(Za,ew,12,iP,zi[1]),$a++)}var vg=fb.monthlyDataStoryVariant;if(vg){var ih=new $v,jh=0;try{var Th=vg.dateId;
void 0!==Th&&(Hj(ih,1,Th),jh++);var wg=vg.highlightType;void 0!==wg&&(O(ih,2,xGa[wg]),jh++);var xg=vg.adviceType;void 0!==xg&&(O(ih,3,yGa[xg]),jh++);var Fe=[jh===Object.keys(vg).length,ih]}catch(Oa){W(Oa),Fe=[!1,void 0]}var Uh=Fe;Uh[0]&&(uj(Za,$v,13,iP,Uh[1]),$a++)}var Yf=fb.otherFormatsDataStoryVariant;if(Yf){var kh=new aw,Zf=0;try{var Yi=Yf.overlapShorts;void 0!==Yi&&(Hj(kh,1,Yi),Zf++);var Ge=Yf.overlapChannels;void 0!==Ge&&(Hj(kh,2,Ge),Zf++);var He=[Zf===Object.keys(Yf).length,kh]}catch(Oa){W(Oa),
He=[!1,void 0]}var Td=He;Td[0]&&(uj(Za,aw,14,iP,Td[1]),$a++)}var lh=fb.audienceWatchesLongformDataStoryVariant;if(lh){var ff=new Sv,tf=0;try{var $f=lh.hasOverlapVideo;void 0!==$f&&(Fj(ff,1,$f),tf++);var gf=lh.hasOverlapLivestream;void 0!==gf&&(Fj(ff,2,gf),tf++);var mh=lh.overlapChannels;void 0!==mh&&(Hj(ff,3,mh),tf++);var nh=[tf===Object.keys(lh).length,ff]}catch(Oa){W(Oa),nh=[!1,void 0]}var uf=nh;uf[0]&&(uj(Za,Sv,15,iP,uf[1]),$a++)}var yg=[$a===Object.keys(fb).length,Za]}catch(Oa){W(Oa),yg=[!1,void 0]}var zg=
yg;zg[0]&&(tj(y,fw,12,zg[1]),V++)}var oh=Ra.cardConfig;if(oh){var Ai=new jw,Bi=0;try{var Pk=oh.cardType;void 0!==Pk&&(O(Ai,3,zGa[Pk]),Bi++);var Rl=oh.legacyMobileCardType;void 0!==Rl&&(O(Ai,5,AGa[Rl]),Bi++);var Re=oh.entityType;void 0!==Re&&(O(Ai,4,BGa[Re]),Bi++);var Ie=oh.tableCardConfig;if(Ie){var Se=new iw,Ag=0;try{var Zi=Ie.dimension;void 0!==Zi&&(O(Se,1,lP[Zi]),Ag++);var Bg=Ie.metrics;void 0!==Bg&&(gP(Se.j.bind(Se),Bg,lP),Ag++);var Mj=[Ag===Object.keys(Ie).length,Se]}catch(Oa){W(Oa),Mj=[!1,void 0]}var $i=
Mj;$i[0]&&(uj(Ai,iw,1,CGa,$i[1]),Bi++)}var Nj=oh.keyMetricCardConfig;if(Nj){var aj=new hw,Sl=0;try{var Ci=Nj.metricTabConfigs;Ci&&(fP(aj.j.bind(aj),Ci,DGa),Sl++);var Vh=[Sl===Object.keys(Nj).length,aj]}catch(Oa){W(Oa),Vh=[!1,void 0]}var Wh=Vh;Wh[0]&&(uj(Ai,hw,2,CGa,Wh[1]),Bi++)}var bj=[Bi===Object.keys(oh).length,Ai]}catch(Oa){W(Oa),bj=[!1,void 0]}var Oj=bj;Oj[0]&&(tj(y,jw,13,Oj[1]),V++)}var Pj=Ra.externalVideoId;void 0!==Pj&&(N(y,15,Pj),V++);var Xh=Ra.videoSid;void 0!==Xh&&(Ij(y,16,Xh),V++);var re=
Ra.exploreConfig;if(re){var Cg=new rw,Yh=0;try{var Qj=re.metrics;void 0!==Qj&&(gP(Cg.j.bind(Cg),Qj,lP),Yh++);var vf=re.dimension;void 0!==vf&&(O(Cg,2,lP[vf]),Yh++);var Rj=re.timePeriodType;void 0!==Rj&&(O(Cg,3,jP[Rj]),Yh++);var Qk=[Yh===Object.keys(re).length,Cg]}catch(Oa){W(Oa),Qk=[!1,void 0]}var cj=Qk;cj[0]&&(tj(y,rw,18,cj[1]),V++)}var wf=Ra.contentInspirationEntity;if(wf){var xf=new Pv,ag=0;try{var Di=wf.video;if(Di){var Ei=new Ov,Tl=0;try{var Sj=Di.externalVideoId;void 0!==Sj&&(N(Ei,1,Sj),Tl++);
var nc=[Tl===Object.keys(Di).length,Ei]}catch(Oa){W(Oa),nc=[!1,void 0]}var xs=nc;xs[0]&&(uj(xf,Ov,1,EGa,xs[1]),ag++)}var hq=wf.kgTopic;if(hq){var Ul=new Nv,Eo=0;try{var dj=hq.kgTopicMid;void 0!==dj&&(N(Ul,1,dj),Eo++);var Vl=[Eo===Object.keys(hq).length,Ul]}catch(Oa){W(Oa),Vl=[!1,void 0]}var Sm=Vl;Sm[0]&&(uj(xf,Nv,2,EGa,Sm[1]),ag++)}var Tj=wf.freeformTopic;if(Tj){var Wl=new Mv,Rk=0;try{var iq=Tj.freeformTopic;void 0!==iq&&(N(Wl,1,iq),Rk++);var jq=Tj.languageCode;void 0!==jq&&(N(Wl,4,jq),Rk++);var Uj=
Tj.isContentGap;void 0!==Uj&&(Fj(Wl,2,Uj),Rk++);var kq=Tj.isShortsContentGap;void 0!==kq&&(Fj(Wl,3,kq),Rk++);var Sk=[Rk===Object.keys(Tj).length,Wl]}catch(Oa){W(Oa),Sk=[!1,void 0]}var Tk=Sk;Tk[0]&&(uj(xf,Mv,3,EGa,Tk[1]),ag++)}var Te=[ag===Object.keys(wf).length,xf]}catch(Oa){W(Oa),Te=[!1,void 0]}var Zh=Te;Zh[0]&&(tj(y,Pv,19,Zh[1]),V++)}var Tm=[V===Object.keys(Ra).length,y]}catch(Oa){W(Oa),Tm=[!1,void 0]}var lq=Tm;lq[0]&&(tj(q,tw,20,lq[1]),r++)}var Um=p.promotionData;if(Um){var ph=new Pw,qh=0;try{var se=
Um.promotionId;void 0!==se&&(N(ph,1,se),qh++);var Fi=Um.placementType;void 0!==Fi&&(O(ph,9,FGa[Fi]),qh++);var $h=[qh===Object.keys(Um).length,ph]}catch(Oa){W(Oa),$h=[!1,void 0]}var Fo=$h;Fo[0]&&(tj(q,Pw,21,Fo[1]),r++)}var Uk=p.backstageItem;if(Uk){var Xl=new uw,Vk=0;try{var mq=Uk.stanzaId;void 0!==mq&&(N(Xl,1,mq),Vk++);var Yl=Uk.likeCount;void 0!==Yl&&(Ij(Xl,7,Yl),Vk++);var Vm=Uk.backstageId;void 0!==Vm&&(N(Xl,9,Vm),Vk++);var Wm=Uk.wasPostScheduled;void 0!==Wm&&(Fj(Xl,14,Wm),Vk++);var nq=[Vk===Object.keys(Uk).length,
Xl]}catch(Oa){W(Oa),nq=[!1,void 0]}var oq=nq;oq[0]&&(tj(q,uw,32,oq[1]),r++)}var Zl=p.adminSelfieData;if(Zl){var Xm=new ow,Ym=0;try{var uc=Zl.componentId;void 0!==uc&&(N(Xm,1,uc),Ym++);var Hf=Zl.componentType;void 0!==Hf&&(N(Xm,2,Hf),Ym++);var ai=Zl.payload;if(ai){var Zm=new nw,$l=0;try{var $m=ai.include;if($m){var Wk=new kw,Xk=0;try{var am=$m.fragmentName;void 0!==am&&(N(Wk,1,am),Xk++);var ej=[Xk===Object.keys($m).length,Wk]}catch(Oa){W(Oa),ej=[!1,void 0]}var fj=ej;fj[0]&&(uj(Zm,kw,1,GGa,fj[1]),$l++)}var Vj=
ai.toolboxPage;if(Vj){var an=new mw,bn=0;try{var Go=Vj.fragmentName;void 0!==Go&&(N(an,1,Go),bn++);var cn=[bn===Object.keys(Vj).length,an]}catch(Oa){W(Oa),cn=[!1,void 0]}var dn=cn;dn[0]&&(uj(Zm,mw,2,GGa,dn[1]),$l++)}var en=ai.reviewQueuePage;if(en){var Ho=new lw,Io=0;try{var pq=en.queueId;void 0!==pq&&(Gj(Ho,1,pq),Io++);var qq=[Io===Object.keys(en).length,Ho]}catch(Oa){W(Oa),qq=[!1,void 0]}var Yk=qq;Yk[0]&&(uj(Zm,lw,3,GGa,Yk[1]),$l++)}var Jo=[$l===Object.keys(ai).length,Zm]}catch(Oa){W(Oa),Jo=[!1,
void 0]}var Ko=Jo;Ko[0]&&(tj(Xm,nw,3,Ko[1]),Ym++)}var rq=[Ym===Object.keys(Zl).length,Xm]}catch(Oa){W(Oa),rq=[!1,void 0]}var sq=rq;sq[0]&&(tj(q,ow,41,sq[1]),r++)}var bm=p.notificationState;if(bm){var Wj=new jx,cm=0;try{var Lo=bm.inboxInteractionData;if(Lo){var Gi=new ix,Xj=0;try{var Zk=Lo.notifications;Zk&&(fP(Gi.j.bind(Gi),Zk,HGa),Xj++);var tq=[Xj===Object.keys(Lo).length,Gi]}catch(Oa){W(Oa),tq=[!1,void 0]}var uq=tq;uq[0]&&(tj(Wj,ix,9,uq[1]),cm++)}var $k=[cm===Object.keys(bm).length,Wj]}catch(Oa){W(Oa),
$k=[!1,void 0]}var Dg=$k;Dg[0]&&(tj(q,jx,59,Dg[1]),r++)}var Eg=p.delegationContext;if(Eg){var bi=new Mw,If=0;try{var vq=Eg.externalChannelId;void 0!==vq&&(N(bi,1,vq),If++);var ys=Eg.externalOwnerId;void 0!==ys&&(N(bi,3,ys),If++);var wq=Eg.artistId;void 0!==wq&&(N(bi,4,wq),If++);var Yj=Eg.roleType;if(Yj){var gj=new Lw,Fg=0;try{var fn=Yj.channelRoleType;void 0!==fn&&(jk(gj,1,IGa,JGa[fn]),Fg++);var bg=Yj.artistRoleType;void 0!==bg&&(jk(gj,2,IGa,KGa[bg]),Fg++);var xq=Yj.contentOwnerRoleType;void 0!==
xq&&(jk(gj,3,IGa,LGa[xq]),Fg++);var Zj=[Fg===Object.keys(Yj).length,gj]}catch(Oa){W(Oa),Zj=[!1,void 0]}var al=Zj;al[0]&&(tj(bi,Lw,5,al[1]),If++)}var bl=Eg.oacChannelId;void 0!==bl&&(N(bi,6,bl),If++);var gn=Eg.isInternalUser;void 0!==gn&&(Fj(bi,8,gn),If++);var dm=Eg.self;void 0!==dm&&(Fj(bi,10,dm),If++);var yq=Eg.delegationContextSerialized;void 0!==yq&&(ik(bi,9,yq),If++);var ak=[If===Object.keys(Eg).length,bi]}catch(Oa){W(Oa),ak=[!1,void 0]}var cl=ak;cl[0]&&(tj(q,Mw,63,cl[1]),r++)}var dl=p.campaignData;
if(dl){var Mo=new gx,No=0;try{var zq=dl.campaignName;void 0!==zq&&(N(Mo,1,zq),No++);var Aq=dl.campaignVersion;void 0!==Aq&&(N(Mo,2,Aq),No++);var zs=[No===Object.keys(dl).length,Mo]}catch(Oa){W(Oa),zs=[!1,void 0]}var Oo=zs;Oo[0]&&(tj(q,gx,64,Oo[1]),r++)}var Po=p.scoringEventInfo;if(Po){var Ud=new Qw,de=0;try{var Je=Po.scoringTrackingParams;void 0!==Je&&(ik(Ud,1,Je),de++);var Bq=[de===Object.keys(Po).length,Ud]}catch(Oa){W(Oa),Bq=[!1,void 0]}var Cq=Bq;Cq[0]&&(tj(q,Qw,77,Cq[1]),r++)}var Qo=p.servletData;
if(Qo){var Dq=new Rw,Ro=0;try{var hn=Qo.serializedServletEventId;void 0!==hn&&(N(Dq,1,hn),Ro++);var So=[Ro===Object.keys(Qo).length,Dq]}catch(Oa){W(Oa),So=[!1,void 0]}var To=So;To[0]&&(tj(q,Rw,83,To[1]),r++)}var Uo=p.yoodleData;if(Uo){var Eq=new Yw,Fq=0;try{var Gq=Uo.promoId;void 0!==Gq&&(N(Eq,1,Gq),Fq++);var em=[Fq===Object.keys(Uo).length,Eq]}catch(Oa){W(Oa),em=[!1,void 0]}var jn=em;jn[0]&&(tj(q,Yw,85,jn[1]),r++)}var el=p.videoRestrictionData;if(el){var kn=new Xw,Vo=0;try{var Hq=el.restrictions;
Hq&&(fP(kn.j.bind(kn),Hq,MGa),Vo++);var ln=el.prechecksPending;void 0!==ln&&(Fj(kn,2,ln),Vo++);var Wo=[Vo===Object.keys(el).length,kn]}catch(Oa){W(Oa),Wo=[!1,void 0]}var Xo=Wo;Xo[0]&&(tj(q,Xw,92,Xo[1]),r++)}var bk=p.creatorMusicData;if(bk){var fl=new Kw,ci=0;try{var gl=bk.entity;if(gl){var hl=NGa(gl);hl[0]&&(tj(fl,Jw,1,hl[1]),ci++)}var mn=bk.entities;mn&&(fP(fl.j.bind(fl),mn,NGa),ci++);var ck=bk.track;if(ck){var nn=OGa(ck);nn[0]&&(uj(fl,Iw,3,PGa,nn[1]),ci++)}var on=bk.collection;if(on){var Iq=QGa(on);
Iq[0]&&(uj(fl,Gw,4,PGa,Iq[1]),ci++)}var dk=[ci===Object.keys(bk).length,fl]}catch(Oa){W(Oa),dk=[!1,void 0]}var il=dk;il[0]&&(tj(q,Kw,96,il[1]),r++)}var di=p.creatorData;if(di){var ek=new Bw,jl=0;try{var Jq=di.ttWizardTargetFeature;void 0!==Jq&&(jk(ek,1,RGa,SGa[Jq]),jl++);var Gg=di.ttWizardTargetLevel;void 0!==Gg&&(jk(ek,2,RGa,TGa[Gg]),jl++);var Jf=di.simpleWizardDetails;if(Jf){var rh=new Aw;try{var Yo=[0===Object.keys(Jf).length,rh]}catch(Oa){W(Oa),Yo=[!1,void 0]}var Kq=Yo;Kq[0]&&(uj(ek,Aw,3,UGa,
Kq[1]),jl++)}var hj=di.advancedWizardDetails;if(hj){var kl=new yw,ll=0;try{var Lq=hj.isDoubleHop;void 0!==Lq&&(Fj(kl,1,Lq),ll++);var Mq=[ll===Object.keys(hj).length,kl]}catch(Oa){W(Oa),Mq=[!1,void 0]}var Nq=Mq;Nq[0]&&(uj(ek,yw,4,UGa,Nq[1]),jl++)}var fk=di.blockedWizardDetails;if(fk){var fm=new zw,gm=0;try{var Oq=fk.loggableBlockedReason;void 0!==Oq&&(O(fm,1,VGa[Oq]),gm++);var Pq=[gm===Object.keys(fk).length,fm]}catch(Oa){W(Oa),Pq=[!1,void 0]}var Qq=Pq;Qq[0]&&(uj(ek,zw,5,UGa,Qq[1]),jl++)}var Rq=[jl===
Object.keys(di).length,ek]}catch(Oa){W(Oa),Rq=[!1,void 0]}var Sq=Rq;Sq[0]&&(tj(q,Bw,98,Sq[1]),r++)}var Zo=p.adstubeData;if(Zo){var hm=new qw,gk=0;try{var cg=Zo.countryTargetingPrefill;if(cg){var sh=new pw,pn=0;try{var ml=cg.prefilledCodes;ml&&(fP(sh.B.bind(sh),ml),pn++);var ei=cg.finalCodes;ei&&(fP(sh.j.bind(sh),ei),pn++);var fi=cg.source;void 0!==fi&&(N(sh,3,fi),pn++);var As=[pn===Object.keys(cg).length,sh]}catch(Oa){W(Oa),As=[!1,void 0]}var Ue=As;Ue[0]&&(tj(hm,pw,1,Ue[1]),gk++)}var Tq=[gk===Object.keys(Zo).length,
hm]}catch(Oa){W(Oa),Tq=[!1,void 0]}var nl=Tq;nl[0]&&(tj(q,qw,104,nl[1]),r++)}var ij=p.loggingExpectations;if(ij){var qn=WGa(ij);qn[0]&&(tj(q,nx,106,qn[1]),r++)}var jj=p.channelPageVeData;if(jj){var ol=new xw,rn=0;try{var sn=jj.isForYouShelf;void 0!==sn&&(Fj(ol,2,sn),rn++);var Uq=[rn===Object.keys(jj).length,ol]}catch(Oa){W(Oa),Uq=[!1,void 0]}var $o=Uq;$o[0]&&(tj(q,xw,107,$o[1]),r++)}var Vq=p.shoppingAffiliateData;if(Vq){var Wq=new Sw,tn=0;try{var pl=Vq.affiliateDeepLinkSource;void 0!==pl&&(O(Wq,1,
XGa[pl]),tn++);var hk=[tn===Object.keys(Vq).length,Wq]}catch(Oa){W(Oa),hk=[!1,void 0]}var Hi=hk;Hi[0]&&(tj(q,Sw,109,Hi[1]),r++)}var Hg=p.hashtagSuggestionData;if(Hg){var im=new Nw,ql=0;try{var Xq=Hg.hashtagId;void 0!==Xq&&(N(im,1,Xq),ql++);var Yq=Hg.suggestionSources;void 0!==Yq&&(gP(im.j.bind(im),Yq,YGa),ql++);var un=[ql===Object.keys(Hg).length,im]}catch(Oa){W(Oa),un=[!1,void 0]}var jm=un;jm[0]&&(tj(q,Nw,111,jm[1]),r++)}var km=[r===Object.keys(p).length,q]}catch(Oa){W(Oa),km=[!1,void 0]}var rl=
km;rl[0]&&(tj(b,ox,8,rl[1]),c++)}var kj=a.loggingExpectations;if(kj){var Ii=WGa(kj);Ii[0]&&(tj(b,nx,9,Ii[1]),c++)}return[c===Object.keys(a).length,b]}catch(Oa){return W(Oa),[!1,void 0]}};
pGa=function(a){var b=new cw,c=0;try{var d=a.views;void 0!==d&&(O(b,1,kP[d]),c++);var e=a.driver;void 0!==e&&(O(b,2,ZGa[e]),c++);var f=a.ctr;void 0!==f&&(O(b,3,kP[f]),c++);var h=a.avd;void 0!==h&&(O(b,4,kP[h]),c++);var l=a.impressions;void 0!==l&&(O(b,5,kP[l]),c++);var m=a.videoLength;void 0!==m&&(O(b,6,kP[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return W(n),[!1,void 0]}};
tGa=function(a){var b=new Xv,c=0;try{var d=a.subsGrowth;void 0!==d&&(O(b,1,kP[d]),c++);var e=a.nonSubViews;void 0!==e&&(O(b,2,kP[e]),c++);var f=a.subsAddedPerNonSubViews;void 0!==f&&(O(b,3,kP[f]),c++);var h=a.accountsClosed;void 0!==h&&(O(b,4,kP[h]),c++);var l=a.subsRemovedToAddedRatio;void 0!==l&&(O(b,5,kP[l]),c++);var m=a.videosPublished;void 0!==m&&(O(b,6,kP[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return W(n),[!1,void 0]}};
uGa=function(a){var b=new Wv,c=0;try{var d=a.revenue;void 0!==d&&(O(b,1,kP[d]),c++);var e=a.revenueSource;void 0!==e&&(O(b,2,$Ga[e]),c++);var f=a.revenueDrivingMetrics;void 0!==f&&(gP(b.j.bind(b),f,aHa),c++);var h=a.revenueChangeReason;void 0!==h&&(O(b,4,bHa[h]),c++);var l=a.revenueChangeFact;void 0!==l&&(O(b,5,cHa[l]),c++);var m=a.driverCountryCode;void 0!==m&&(N(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return W(n),[!1,void 0]}};
vGa=function(a){var b=new Vv,c=0;try{var d=a.views;void 0!==d&&(O(b,1,kP[d]),c++);var e=a.drivers;void 0!==e&&(gP(b.j.bind(b),e,dHa),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}};
DGa=function(a){var b=new gw,c=0;try{var d=a.metric;void 0!==d&&(O(b,1,lP[d]),c++);var e=a.comparisonMetric;void 0!==e&&(O(b,2,lP[e]),c++);var f=a.includeCumulative;void 0!==f&&(Fj(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return W(h),[!1,void 0]}};
HGa=function(a){var b=new hx,c=0;try{var d=a.attributionTag;void 0!==d&&(N(b,2,d),c++);return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}};
MGa=function(a){var b=new Ww,c=0;try{var d=a.limitedAds;if(d){var e=new Vw,f=0;try{var h=d.imposer;void 0!==h&&(O(e,1,eHa[h]),f++);var l=[f===Object.keys(d).length,e]}catch(G){W(G),l=[!1,void 0]}d=l;d[0]&&(uj(b,Vw,1,fHa,d[1]),c++)}var m=a.copyright;if(m){var n=new Uw;d=0;try{var p=m.policyType;void 0!==p&&(O(n,1,gHa[p]),d++);var q=m.productTagsBlocked;void 0!==q&&(Fj(n,2,q),d++);var r=[d===Object.keys(m).length,n]}catch(G){W(G),r=[!1,void 0]}m=r;m[0]&&(uj(b,Uw,2,fHa,m[1]),c++)}var t=a.communityGuidelines;
if(t){var v=new Tw;m=0;try{var x=t.policyVerticals;void 0!==x&&(gP(v.j.bind(v),x,hHa),m++);var B=[m===Object.keys(t).length,v]}catch(G){W(G),B=[!1,void 0]}t=B;t[0]&&(uj(b,Tw,3,fHa,t[1]),c++)}return[c===Object.keys(a).length,b]}catch(G){return W(G),[!1,void 0]}};
NGa=function(a){var b=new Jw,c=0;try{var d=a.featuredCollection;if(d){var e=iHa(d);e[0]&&(uj(b,Cw,1,mP,e[1]),c++)}var f=a.mood;if(f){var h=jHa(f);h[0]&&(uj(b,Ew,2,mP,h[1]),c++)}var l=a.genre;if(l){var m=kHa(l);m[0]&&(uj(b,Dw,3,mP,m[1]),c++)}var n=a.track;if(n){var p=OGa(n);p[0]&&(uj(b,Iw,4,mP,p[1]),c++)}return[c===Object.keys(a).length,b]}catch(q){return W(q),[!1,void 0]}};
iHa=function(a){var b=new Cw,c=0;try{var d=a.id;void 0!==d&&(N(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}};
jHa=function(a){var b=new Ew,c=0;try{var d=a.type;void 0!==d&&(O(b,1,lHa[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}};
kHa=function(a){var b=new Dw,c=0;try{var d=a.type;void 0!==d&&(O(b,1,mHa[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}};
OGa=function(a){var b=new Iw,c=0;try{var d=a.artTrackId;void 0!==d&&(N(b,1,d),c++);var e=a.assetId;void 0!==e&&(N(b,2,e),c++);var f=a.details;if(f){var h=new Hw;try{var l=[0===Object.keys(f).length,h]}catch(p){W(p),l=[!1,void 0]}d=l;d[0]&&(tj(b,Hw,3,d[1]),c++)}var m=a.parent;if(m){var n=QGa(m);n[0]&&(tj(b,Gw,4,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return W(p),[!1,void 0]}};
QGa=function(a){var b=new Gw,c=0;try{var d=a.featuredCollection;if(d){var e=iHa(d);e[0]&&(uj(b,Cw,1,nP,e[1]),c++)}var f=a.mood;if(f){var h=jHa(f);h[0]&&(uj(b,Ew,2,nP,h[1]),c++)}var l=a.genre;if(l){var m=kHa(l);m[0]&&(uj(b,Dw,3,nP,m[1]),c++)}var n=a.section;if(n){var p=new Fw;d=0;try{var q=n.type;void 0!==q&&(O(p,1,nHa[q]),d++);var r=[d===Object.keys(n).length,p]}catch(v){W(v),r=[!1,void 0]}n=r;n[0]&&(uj(b,Fw,4,nP,n[1]),c++)}var t=a.dimension;void 0!==t&&(O(b,5,oHa[t]),c++);return[c===Object.keys(a).length,
b]}catch(v){return W(v),[!1,void 0]}};
WGa=function(a){var b=new nx,c=0;try{var d=a.attachLoggingExpectations;if(d){var e=new lx,f=0;try{var h=d.attachScreenExpectations;h&&(fP(e.j.bind(e),h,pHa),f++);var l=[f===Object.keys(d).length,e]}catch(r){W(r),l=[!1,void 0]}d=l;d[0]&&(tj(b,lx,1,d[1]),c++)}var m=a.screenCreatedLoggingExpectations;if(m){var n=new mx;d=0;try{var p=m.expectedParentScreens;p&&(fP(n.j.bind(n),p,pHa),d++);var q=[d===Object.keys(m).length,n]}catch(r){W(r),q=[!1,void 0]}m=q;m[0]&&(tj(b,mx,2,m[1]),c++)}return[c===Object.keys(a).length,
b]}catch(r){return W(r),[!1,void 0]}};
pHa=function(a){var b=new kx,c=0;try{var d=a.screenVeType;void 0!==d&&(Vla(b,d),c++);return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}};
sHa=function(a){var b=new Zy,c=0;try{var d=a.segments;d&&(fP(b.j.bind(b),d,qHa),c++);var e=a.transitions;e&&(fP(b.B.bind(b),e,rHa),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}};
qHa=function(a){var b=new Xy,c=0;try{var d=a.type;void 0!==d&&(O(b,1,tHa[d]),c++);var e=a.effects;e&&(fP(b.A3.bind(b),e,uHa),c++);var f=a.videoInfo;if(f){var h=vHa(f);h[0]&&(tj(b,Vy,3,h[1]),c++)}var l=a.audioInfo;if(l){var m=new Uy;d=0;try{var n=l.sourceOffsetMs;void 0!==n&&(Ij(m,1,n),d++);var p=l.sampleRateHz;void 0!==p&&(Gj(m,2,p),d++);var q=l.channelCount;void 0!==q&&(Gj(m,3,q),d++);var r=l.isRemote;void 0!==r&&(Fj(m,4,r),d++);var t=[d===Object.keys(l).length,m]}catch(F){W(F),t=[!1,void 0]}l=t;
l[0]&&(tj(b,Uy,4,l[1]),c++)}var v=a.startTimeMs;void 0!==v&&(Ij(b,5,v),c++);var x=a.durationMs;void 0!==x&&(Jj(b,6,x),c++);var B=a.playbackRate;void 0!==B&&(b.setPlaybackRate(B),c++);var G=a.enabled;void 0!==G&&(b.ZQ(G),c++);return[c===Object.keys(a).length,b]}catch(F){return W(F),[!1,void 0]}};
uHa=function(a){var b=new Wy,c=0;try{var d=a.effectBaseName;void 0!==d&&(N(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}};
vHa=function(a){var b=new Vy,c=0;try{var d=a.resolutionWidth;void 0!==d&&(Gj(b,1,d),c++);var e=a.resolutionHeight;void 0!==e&&(Gj(b,2,e),c++);var f=a.frameRate;void 0!==f&&(Kj(b,3,f),c++);var h=a.durationMs;void 0!==h&&(Jj(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return W(l),[!1,void 0]}};
rHa=function(a){var b=new Yy,c=0;try{var d=a.incomingSegment;if(d){var e=qHa(d);e[0]&&(tj(b,Xy,1,e[1]),c++)}var f=a.outgoingSegment;if(f){var h=qHa(f);h[0]&&(tj(b,Xy,2,h[1]),c++)}var l=a.durationMs;void 0!==l&&(Jj(b,3,l),c++);return[c===Object.keys(a).length,b]}catch(m){return W(m),[!1,void 0]}};
wHa=function(a){var b=new Py,c=0;try{var d=a.previewWidth;void 0!==d&&(Gj(b,1,d),c++);var e=a.previewHeight;void 0!==e&&(Gj(b,2,e),c++);var f=a.fps;void 0!==f&&(Gj(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return W(h),[!1,void 0]}};
tIa=function(a){var b=new MA,c=0;try{var d=a.encryptedVideoId;void 0!==d&&(N(b,1,d),c++);var e=a.cotn;void 0!==e&&(N(b,20,e),c++);var f=a.cpn;void 0!==f&&(N(b,30,f),c++);var h=a.transferStatusType;void 0!==h&&(O(b,38,xHa[h]),c++);var l=a.statusType;void 0!==l&&(O(b,2,yHa[l]),c++);var m=a.failureReason;void 0!==m&&(O(b,3,zHa[m]),c++);var n=a.transferFailureReason;void 0!==n&&(O(b,41,AHa[n]),c++);var p=a.failureExceptionType;void 0!==p&&(N(b,37,p),c++);var q=a.totalFetchedKbytes;void 0!==q&&(Ij(b,4,
q),c++);var r=a.diskAvailableKbytes;void 0!==r&&(Ij(b,5,r),c++);var t=a.totalContentKbytes;void 0!==t&&(Ij(b,21,t),c++);var v=a.alreadyDownloadedKbytes;void 0!==v&&(Ij(b,22,v),c++);var x=a.fetchedFromCacheKbytes;void 0!==x&&(Ij(b,23,x),c++);var B=a.systemHealth;if(B){var G=new Iz,F=0;try{var I=B.tag;void 0!==I&&(O(G,1,BHa[I]),F++);var P=B.staticContext;if(P){var R=new Dz,Z=0;try{var ma=P.displayDensityDpi;void 0!==ma&&(Gj(R,1,ma),Z++);var ua=P.heightPixels;void 0!==ua&&(Gj(R,2,ua),Z++);var oa=P.widthPixels;
void 0!==oa&&(Gj(R,3,oa),Z++);var ia=P.memoryTotalKbytes;void 0!==ia&&(Ij(R,4,ia),Z++);var Aa=P.osSdkVersion;void 0!==Aa&&(Gj(R,5,Aa),Z++);var X=P.osIncrementalVersion;void 0!==X&&(N(R,6,X),Z++);var wa=P.hardwareArchitecture;void 0!==wa&&(N(R,7,wa),Z++);var ca=P.appVersionCode;void 0!==ca&&(Gj(R,8,ca),Z++);var Ra=P.devicePixelRatio;void 0!==Ra&&(Kj(R,9,Ra),Z++);var y=P.buildFingerprint;void 0!==y&&(N(R,10,y),Z++);var V=P.socManufacturer;void 0!==V&&(N(R,11,V),Z++);var ib=P.socModel;void 0!==ib&&(N(R,
12,ib),Z++);var fb=P.availableProcessors;void 0!==fb&&(Gj(R,13,fb),Z++);var Za=P.cpuCores;void 0!==Za&&(Gj(R,14,Za),Z++);var $a=P.heightPoints;void 0!==$a&&(Gj(R,15,$a),Z++);var ic=P.widthPoints;void 0!==ic&&(Gj(R,16,ic),Z++);var Rb=P.androidMediaPerformanceClass;void 0!==Rb&&(Gj(R,17,Rb),Z++);var bb=[Z===Object.keys(P).length,R]}catch(ob){W(ob),bb=[!1,void 0]}var ec=bb;ec[0]&&(tj(G,Dz,2,ec[1]),F++)}var jb=B.dynamicContext;if(jb){var A=new xz,D=0;try{var E=jb.screenOn;void 0!==E&&(Fj(A,1,E),D++);
var C=jb.deviceRotation;void 0!==C&&(Gj(A,2,C),D++);var K=jb.networkType;void 0!==K&&(Gj(A,3,K),D++);var Y=jb.networkCoarseState;void 0!==Y&&(Gj(A,4,Y),D++);var ka=jb.chargingStatus;void 0!==ka&&(O(A,5,CHa[ka]),D++);var va=jb.isInForeground;void 0!==va&&(Fj(A,6,va),D++);var ea=jb.viewportHeightPixels;void 0!==ea&&(Gj(A,7,ea),D++);var ha=jb.viewportWidthPixels;void 0!==ha&&(Gj(A,8,ha),D++);var Ea=jb.hasCoarsePointer;void 0!==Ea&&(Fj(A,9,Ea),D++);var Da=jb.hasFinePointer;void 0!==Da&&(Fj(A,10,Da),D++);
var nb=jb.hasHoverSupport;void 0!==nb&&(Fj(A,11,nb),D++);var Vb=jb.deviceFreeStorageMbytes;void 0!==Vb&&(Ij(A,12,Vb),D++);var Lb=jb.deviceStorageQuotaMbytes;void 0!==Lb&&(Ij(A,13,Lb),D++);var Ob=jb.deviceStorageUsageMbytes;void 0!==Ob&&(Ij(A,14,Ob),D++);var Ab=jb.processUptimeMs;void 0!==Ab&&(Ij(A,15,Ab),D++);var Kb=jb.hasAppShell;void 0!==Kb&&(Fj(A,16,Kb),D++);var Fc=jb.glVersion;void 0!==Fc&&(N(A,17,Fc),D++);var yc=jb.glRenderer;void 0!==yc&&(N(A,18,yc),D++);var $c=jb.srsDatapushBuildIds;$c&&(fP(A.B.bind(A),
$c,DHa),D++);var Wc=jb.playerDatapushBuildIds;Wc&&(fP(A.j.bind(A),Wc,EHa),D++);var ad=jb.creationContext;if(ad){var kd=new vz,Zb=0;try{var Kd=ad.activeFrontendUploadId;void 0!==Kd&&(N(kd,1,Kd),Zb++);var xd=ad.inShortsCreation;void 0!==xd&&(Fj(kd,2,xd),Zb++);var $b=ad.activeEffectLoggingIds;$b&&(fP(kd.j.bind(kd),$b,FHa),Zb++);var bd=ad.activePages;void 0!==bd&&(gP(kd.B.bind(kd),bd,GHa),Zb++);var cd=[Zb===Object.keys(ad).length,kd]}catch(ob){W(ob),cd=[!1,void 0]}var kb=cd;kb[0]&&(tj(A,vz,21,kb[1]),
D++)}var Hb=jb.kimonoContext;if(Hb){var Oe=new wz,qf=0;try{var cf=Hb.cobaltUserAgent;void 0!==cf&&(N(Oe,1,cf),qf++);var pe=Hb.webAppVersion;void 0!==pe&&(N(Oe,2,pe),qf++);var Ce=Hb.cobaltVersion;void 0!==Ce&&(N(Oe,3,Ce),qf++);var qe=Hb.webAppInterface;void 0!==qe&&(O(Oe,4,HHa[qe]),qf++);var $g=Hb.clientDocumentNonce;void 0!==$g&&(N(Oe,5,$g),qf++);var tg=[qf===Object.keys(Hb).length,Oe]}catch(ob){W(ob),tg=[!1,void 0]}var ah=tg;ah[0]&&(tj(A,wz,22,ah[1]),D++)}var bh=[D===Object.keys(jb).length,A]}catch(ob){W(ob),
bh=[!1,void 0]}var ch=bh;ch[0]&&(tj(G,xz,3,ch[1]),F++)}var dh=B.serializedPrimesMetric;void 0!==dh&&(ik(G,4,dh),F++);var De=B.serializedIosPrimesMetric;void 0!==De&&(ik(G,6,De),F++);var Ee=B.webMetric;if(Ee){var dd=new Fz,Sd=0;try{var Ed=Ee.currentHeapKbytes;void 0!==Ed&&(Gj(dd,1,Ed),Sd++);var eh=Ee.navigationCount;void 0!==eh&&(Gj(dd,2,eh),Sd++);var fh=[Sd===Object.keys(Ee).length,dd]}catch(ob){W(ob),fh=[!1,void 0]}var gh=fh;gh[0]&&(tj(G,Fz,7,gh[1]),F++)}var df=B.crashData;if(df){var ed=new rz,rc=
0;try{var Ph=df.stackTrace;void 0!==Ph&&(N(ed,1,Ph),rc++);var Qh=df.screenVeType;void 0!==Qh&&(Gj(ed,2,Qh),rc++);var Rh=df.compactStackTrace;if(Rh){var Sh=oP(Rh);Sh[0]&&(tj(ed,Ey,3,Sh[1]),rc++)}var ef=df.crashTimeMs;void 0!==ef&&(Ij(ed,4,ef),rc++);var Pe=df.clientError;if(Pe){var Qe=new qz,hh=0;try{var ld=Pe.errorMetadata;if(ld){var zc=new ez,Oc=0;try{var rf=ld.exceptionCategory;void 0!==rf&&(O(zc,1,IHa[rf]),Oc++);var sf=ld.serviceTrackingData;if(sf){var Gf=new Oy,Wf=0;try{var ug=sf.innertubeBuildChangelist;
void 0!==ug&&(Ij(Gf,1,ug),Wf++);var rd=sf.innertubeBuildExperimentsSourceVersion;void 0!==rd&&(Ij(Gf,2,rd),Wf++);var Xf=sf.innertubeBuildLabel;void 0!==Xf&&(N(Gf,3,Xf),Wf++);var zi=sf.innertubeBuildTimestampSec;void 0!==zi&&(Ij(Gf,4,zi),Wf++);var vg=sf.innertubeBuildVariantsChecksum;void 0!==vg&&(N(Gf,5,vg),Wf++);var ih=sf.innertubeJobName;void 0!==ih&&(N(Gf,6,ih),Wf++);var jh=[Wf===Object.keys(sf).length,Gf]}catch(ob){W(ob),jh=[!1,void 0]}var Th=jh;Th[0]&&(tj(zc,Oy,2,Th[1]),Oc++)}var wg=ld.pageUrl;
void 0!==wg&&(N(zc,3,wg),Oc++);var xg=ld.kvPairs;xg&&(fP(zc.j.bind(zc),xg,JHa),Oc++);var Fe=ld.experimentIds;Fe&&(fP(zc.B.bind(zc),Fe),Oc++);var Uh=ld.playerMetadata;if(Uh){var Yf=new dz,kh=0;try{var Zf=Uh.error;void 0!==Zf&&(gP(Yf.j.bind(Yf),Zf,KHa),kh++);var Yi=Uh.stackTrace;void 0!==Yi&&(N(Yf,2,Yi),kh++);var Ge=[kh===Object.keys(Uh).length,Yf]}catch(ob){W(ob),Ge=[!1,void 0]}var He=Ge;He[0]&&(tj(zc,dz,6,He[1]),Oc++)}var Td=ld.exceptionType;void 0!==Td&&(O(zc,7,LHa[Td]),Oc++);var lh=ld.clientScreenNonce;
void 0!==lh&&(N(zc,8,lh),Oc++);var ff=ld.blocksMethodExecutionInfo;if(ff){var tf=new My,$f=0;try{var gf=ff.methodId;void 0!==gf&&(Hj(tf,1,gf),$f++);var mh=ff.blockTypeId;void 0!==mh&&(Hj(tf,2,mh),$f++);var nh=ff.methodType;void 0!==nh&&(O(tf,3,MHa[nh]),$f++);var uf=ff.requestSize;void 0!==uf&&(Hj(tf,4,uf),$f++);var yg=ff.responseSize;void 0!==yg&&(Hj(tf,5,yg),$f++);var zg=ff.statusCode;void 0!==zg&&(Hj(tf,6,zg),$f++);var oh=ff.containerId;void 0!==oh&&(Hj(tf,7,oh),$f++);var Ai=ff.moduleIdentifier;
void 0!==Ai&&(N(tf,8,Ai),$f++);var Bi=ff.datapushBuildId;void 0!==Bi&&(Jj(tf,9,Bi),$f++);var Pk=[$f===Object.keys(ff).length,tf]}catch(ob){W(ob),Pk=[!1,void 0]}var Rl=Pk;Rl[0]&&(tj(zc,My,9,Rl[1]),Oc++)}var Re=ld.mediaEngineMetadata;if(Re){var Ie=new g.bz,Se=0;try{var Ag=Re.client;void 0!==Ag&&(Ie.Qw(NHa[Ag]),Se++);var Zi=Re.mdeErrorType;void 0!==Zi&&(O(Ie,2,OHa[Zi]),Se++);var Bg=Re.uploadId;void 0!==Bg&&(N(Ie,3,Bg),Se++);var Mj=Re.composition;Mj&&(fP(Ie.j.bind(Ie),Mj,sHa),Se++);var $i=Re.player;if($i){var Nj=
new $y,aj=0;try{var Sl=$i.state;void 0!==Sl&&(Nj.Gc(PHa[Sl]),aj++);var Ci=$i.playbackPositionTimeMs;void 0!==Ci&&(Ij(Nj,2,Ci),aj++);var Vh=[aj===Object.keys($i).length,Nj]}catch(ob){W(ob),Vh=[!1,void 0]}var Wh=Vh;Wh[0]&&(tj(Ie,$y,5,Wh[1]),Se++)}var bj=Re.exporter;if(bj){var Oj=new Ty,Pj=0;try{var Xh=bj.settings;if(Xh){var re=new Sy,Cg=0;try{var Yh=Xh.audioChannelCount;void 0!==Yh&&(Gj(re,1,Yh),Cg++);var Qj=Xh.resolutionWidth;void 0!==Qj&&(Gj(re,2,Qj),Cg++);var vf=Xh.resolutionHeight;void 0!==vf&&
(Gj(re,3,vf),Cg++);var Rj=[Cg===Object.keys(Xh).length,re]}catch(ob){W(ob),Rj=[!1,void 0]}var Qk=Rj;Qk[0]&&(Oj.ph(Qk[1]),Pj++)}var cj=bj.state;void 0!==cj&&(Oj.Gc(QHa[cj]),Pj++);var wf=bj.durationMs;void 0!==wf&&(Jj(Oj,3,wf),Pj++);var xf=[Pj===Object.keys(bj).length,Oj]}catch(ob){W(ob),xf=[!1,void 0]}var ag=xf;ag[0]&&(tj(Ie,Ty,6,ag[1]),Se++)}var Di=Re.projectId;void 0!==Di&&(N(Ie,7,Di),Se++);var Ei=Re.deviceInfo;if(Ei){var Tl=new Ry,Sj=0;try{var nc=Ei.audioOutputLatencyMs;void 0!==nc&&(Gj(Tl,1,nc),
Sj++);var xs=[Sj===Object.keys(Ei).length,Tl]}catch(ob){W(ob),xs=[!1,void 0]}var hq=xs;hq[0]&&(tj(Ie,Ry,8,hq[1]),Se++)}var Ul=Re.preprocessor;if(Ul){var Eo=new g.az,dj=0;try{var Vl=Ul.originalVideo;if(Vl){var Sm=vHa(Vl);Sm[0]&&(tj(Eo,Vy,1,Sm[1]),dj++)}var Tj=Ul.processedVideo;if(Tj){var Wl=vHa(Tj);Wl[0]&&(tj(Eo,Vy,2,Wl[1]),dj++)}var Rk=[dj===Object.keys(Ul).length,Eo]}catch(ob){W(ob),Rk=[!1,void 0]}var iq=Rk;iq[0]&&(tj(Ie,g.az,9,iq[1]),Se++)}var jq=Re.clientSurface;void 0!==jq&&(O(Ie,10,RHa[jq]),
Se++);var Uj=[Se===Object.keys(Re).length,Ie]}catch(ob){W(ob),Uj=[!1,void 0]}var kq=Uj;kq[0]&&(tj(zc,g.bz,10,kq[1]),Oc++)}var Sk=ld.cameraMetadata;if(Sk){var Tk=new Qy,Te=0;try{var Zh=Sk.uploadFrontendId;void 0!==Zh&&(N(Tk,1,Zh),Te++);var Tm=Sk.cameraApiClient;void 0!==Tm&&(O(Tk,2,SHa[Tm]),Te++);var lq=Sk.cameraConfigs;lq&&(fP(Tk.j.bind(Tk),lq,wHa),Te++);var Um=Sk.canFindCamera;void 0!==Um&&(Fj(Tk,4,Um),Te++);var ph=[Te===Object.keys(Sk).length,Tk]}catch(ob){W(ob),ph=[!1,void 0]}var qh=ph;qh[0]&&
(tj(zc,Qy,11,qh[1]),Oc++)}var se=ld.miniAppMetadata;if(se){var Fi=new cz,$h=0;try{var Fo=se.externalPostId;void 0!==Fo&&(N(Fi,1,Fo),$h++);var Uk=se.postPlayNonce;void 0!==Uk&&(N(Fi,2,Uk),$h++);var Xl=se.localReleaseId;void 0!==Xl&&(Gj(Fi,3,Xl),$h++);var Vk=se.source;void 0!==Vk&&(O(Fi,4,THa[Vk]),$h++);var mq=se.sdkErrorType;void 0!==mq&&(O(Fi,5,UHa[mq]),$h++);var Yl=se.sdkApi;void 0!==Yl&&(O(Fi,6,VHa[Yl]),$h++);var Vm=se.sdkVersion;void 0!==Vm&&(N(Fi,7,Vm),$h++);var Wm=se.rpcErrorCode;void 0!==Wm&&
(Gj(Fi,8,Wm),$h++);var nq=[$h===Object.keys(se).length,Fi]}catch(ob){W(ob),nq=[!1,void 0]}var oq=nq;oq[0]&&(tj(zc,cz,12,oq[1]),Oc++)}var Zl=ld.appVersionCode;void 0!==Zl&&(Gj(zc,13,Zl),Oc++);var Xm=[Oc===Object.keys(ld).length,zc]}catch(ob){W(ob),Xm=[!1,void 0]}var Ym=Xm;Ym[0]&&(tj(Qe,ez,1,Ym[1]),hh++)}var uc=Pe.stackTrace;if(uc){var Hf=new oz,ai=0;try{var Zm=uc.isObfuscated;void 0!==Zm&&(Fj(Hf,1,Zm),ai++);var $l=uc.androidStackInfo;if($l){var $m=WHa($l);$m[0]&&(uj(Hf,fz,2,WF,$m[1]),ai++)}var Wk=
uc.browserStackInfo;if(Wk){var Xk=new gz,am=0;try{var ej=Wk.stackTrace;void 0!==ej&&(N(Xk,1,ej),am++);var fj=Wk.lineNumber;void 0!==fj&&(Gj(Xk,2,fj),am++);var Vj=Wk.columnNumber;void 0!==Vj&&(Gj(Xk,3,Vj),am++);var an=Wk.filename;void 0!==an&&(N(Xk,4,an),am++);var bn=[am===Object.keys(Wk).length,Xk]}catch(ob){W(ob),bn=[!1,void 0]}var Go=bn;Go[0]&&(uj(Hf,gz,3,WF,Go[1]),ai++)}var cn=uc.iosStackInfo;if(cn){var dn=new hz,en=0;try{var Ho=cn.stackTrace;void 0!==Ho&&(N(dn,1,Ho),en++);var Io=cn.compactStackTrace;
if(Io){var pq=oP(Io);pq[0]&&(tj(dn,Ey,2,pq[1]),en++)}var qq=[en===Object.keys(cn).length,dn]}catch(ob){W(ob),qq=[!1,void 0]}var Yk=qq;Yk[0]&&(uj(Hf,hz,4,WF,Yk[1]),ai++)}var Jo=uc.multiLanguageStackInfo;if(Jo){var Ko=new nz,rq=0;try{var sq=Jo.languageStackTraces;sq&&(fP(Ko.j.bind(Ko),sq,XHa),rq++);var bm=[rq===Object.keys(Jo).length,Ko]}catch(ob){W(ob),bm=[!1,void 0]}var Wj=bm;Wj[0]&&(uj(Hf,nz,5,WF,Wj[1]),ai++)}var cm=[ai===Object.keys(uc).length,Hf]}catch(ob){W(ob),cm=[!1,void 0]}var Lo=cm;Lo[0]&&
(tj(Qe,oz,2,Lo[1]),hh++)}var Gi=Pe.logMessage;if(Gi){var Xj=new pz,Zk=0;try{var tq=Gi.message;void 0!==tq&&(N(Xj,1,tq),Zk++);var uq=Gi.level;void 0!==uq&&(O(Xj,2,YHa[uq]),Zk++);var $k=Gi.errorClassName;void 0!==$k&&(N(Xj,3,$k),Zk++);var Dg=Gi.sourceMethodName;void 0!==Dg&&(N(Xj,4,Dg),Zk++);var Eg=Gi.sampleWeight;void 0!==Eg&&(Gj(Xj,6,Eg),Zk++);var bi=[Zk===Object.keys(Gi).length,Xj]}catch(ob){W(ob),bi=[!1,void 0]}var If=bi;If[0]&&(tj(Qe,pz,3,If[1]),hh++)}var vq=[hh===Object.keys(Pe).length,Qe]}catch(ob){W(ob),
vq=[!1,void 0]}var ys=vq;ys[0]&&(tj(ed,qz,5,ys[1]),rc++)}var wq=[rc===Object.keys(df).length,ed]}catch(ob){W(ob),wq=[!1,void 0]}var Yj=wq;Yj[0]&&(tj(G,rz,9,Yj[1]),F++)}var gj=B.delayedEventMetrics;gj&&(fP(G.j.bind(G),gj,kGa),F++);var Fg=B.iosBatteryMetric;if(Fg){var fn=new Hy,bg=0;try{var xq=Fg.sampleDurationMs;void 0!==xq&&(Ij(fn,1,xq),bg++);var Zj=Fg.startSample;if(Zj){var al=ZHa(Zj);al[0]&&(tj(fn,Gy,2,al[1]),bg++)}var bl=Fg.endSample;if(bl){var gn=ZHa(bl);gn[0]&&(tj(fn,Gy,3,gn[1]),bg++)}var dm=
[bg===Object.keys(Fg).length,fn]}catch(ob){W(ob),dm=[!1,void 0]}var yq=dm;yq[0]&&(tj(G,Hy,11,yq[1]),F++)}var ak=B.androidBatteryMetric;if(ak){var cl=new wy,dl=0;try{var Mo=ak.sampleDurationMs;void 0!==Mo&&(Ij(cl,1,Mo),dl++);var No=ak.startSample;if(No){var zq=$Ha(No);zq[0]&&(tj(cl,vy,2,zq[1]),dl++)}var Aq=ak.endSample;if(Aq){var zs=$Ha(Aq);zs[0]&&(tj(cl,vy,3,zs[1]),dl++)}var Oo=[dl===Object.keys(ak).length,cl]}catch(ob){W(ob),Oo=[!1,void 0]}var Po=Oo;Po[0]&&(tj(G,wy,12,Po[1]),F++)}var Ud=B.webApiSupport;
if(Ud){var de=new Ez,Je=0;try{var Bq=Ud.intersectionObserverPresent;void 0!==Bq&&(Fj(de,1,Bq),Je++);var Cq=Ud.indexedDbPresent;void 0!==Cq&&(Fj(de,2,Cq),Je++);var Qo=Ud.serviceWorkerPresent;void 0!==Qo&&(Fj(de,3,Qo),Je++);var Dq=Ud.webSharePresent;void 0!==Dq&&(Fj(de,4,Dq),Je++);var Ro=Ud.fullScreenApiPresent;void 0!==Ro&&(Fj(de,5,Ro),Je++);var hn=Ud.cacheStoragePresent;void 0!==hn&&(Fj(de,6,hn),Je++);var So=Ud.storageEstimatePresent;void 0!==So&&(Fj(de,7,So),Je++);var To=Ud.storagePersistPresent;
void 0!==To&&(Fj(de,8,To),Je++);var Uo=Ud.webkitTemporaryStoragePresent;void 0!==Uo&&(Fj(de,9,Uo),Je++);var Eq=Ud.idb2Present;void 0!==Eq&&(Fj(de,10,Eq),Je++);var Fq=Ud.promiseRejectionEventPresent;void 0!==Fq&&(Fj(de,11,Fq),Je++);var Gq=Ud.subtleCryptoPresent;void 0!==Gq&&(Fj(de,12,Gq),Je++);var em=Ud.broadcastChannelPresent;void 0!==em&&(Fj(de,13,em),Je++);var jn=Ud.webLocksApiPresent;void 0!==jn&&(Fj(de,14,jn),Je++);var el=Ud.supportsP3Color;void 0!==el&&(Fj(de,15,el),Je++);var kn=Ud.supportsRec2020Color;
void 0!==kn&&(Fj(de,16,kn),Je++);var Vo=[Je===Object.keys(Ud).length,de]}catch(ob){W(ob),Vo=[!1,void 0]}var Hq=Vo;Hq[0]&&(tj(G,Ez,13,Hq[1]),F++)}var ln=B.cpuProfiling;if(ln){var Wo=new Ly,Xo=0;try{var bk=ln.profilingSamples;if(bk){var fl=oP(bk);fl[0]&&(tj(Wo,Ey,1,fl[1]),Xo++)}var ci=ln.config;if(ci){var gl=new Ky,hl=0;try{var mn=ci.profilingIntervalSec;void 0!==mn&&(Kj(gl,1,mn),hl++);var ck=ci.profilingDurationSec;void 0!==ck&&(Kj(gl,2,ck),hl++);var nn=ci.timerType;void 0!==nn&&(O(gl,3,aIa[nn]),hl++);
var on=ci.profilingStartTimeSec;void 0!==on&&(Kj(gl,4,on),hl++);var Iq=ci.fractionOfRunsToSample;void 0!==Iq&&(Kj(gl,5,Iq),hl++);var dk=[hl===Object.keys(ci).length,gl]}catch(ob){W(ob),dk=[!1,void 0]}var il=dk;il[0]&&(Wo.setConfig(il[1]),Xo++)}var di=[Xo===Object.keys(ln).length,Wo]}catch(ob){W(ob),di=[!1,void 0]}var ek=di;ek[0]&&(tj(G,Ly,14,ek[1]),F++)}var jl=B.stallStackTrace;if(jl){var Jq=oP(jl);Jq[0]&&(tj(G,Ey,15,Jq[1]),F++)}var Gg=B.memoryUsage;if(Gg){var Jf=new Az,rh=0;try{var Yo=Gg.totalMemoryUsageBytes;
void 0!==Yo&&(Ij(Jf,1,Yo),rh++);var Kq=Gg.classMemoryUsage;Kq&&(fP(Jf.j.bind(Jf),Kq,bIa),rh++);var hj=Gg.config;if(hj){var kl=new zz,ll=0;try{var Lq=hj.maxStartTimeSec;void 0!==Lq&&(Ij(kl,1,Lq),ll++);var Mq=hj.durationTimeSec;void 0!==Mq&&(Ij(kl,2,Mq),ll++);var Nq=hj.intervalSec;void 0!==Nq&&(Ij(kl,3,Nq),ll++);var fk=hj.maxLogCount;void 0!==fk&&(Ij(kl,4,fk),ll++);var fm=hj.fractionOfRunsToSample;void 0!==fm&&(Kj(kl,5,fm),ll++);var gm=[ll===Object.keys(hj).length,kl]}catch(ob){W(ob),gm=[!1,void 0]}var Oq=
gm;Oq[0]&&(Jf.setConfig(Oq[1]),rh++)}var Pq=Gg.processUptimeMs;void 0!==Pq&&(Ij(Jf,4,Pq),rh++);var Qq=Gg.foregroundUptimeMs;void 0!==Qq&&(Ij(Jf,8,Qq),rh++);var Rq=Gg.viewAllocation;Rq&&(fP(Jf.C.bind(Jf),Rq,bIa),rh++);var Sq=Gg.entityStoreCount;void 0!==Sq&&(Gj(Jf,6,Sq),rh++);var Zo=Gg.entityStoreBytes;void 0!==Zo&&(Ij(Jf,7,Zo),rh++);var hm=Gg.emlTemplateStoreBytes;void 0!==hm&&(Ij(Jf,10,hm),rh++);var gk=Gg.jsVmStatistics;gk&&(fP(Jf.B.bind(Jf),gk,cIa),rh++);var cg=[rh===Object.keys(Gg).length,Jf]}catch(ob){W(ob),
cg=[!1,void 0]}var sh=cg;sh[0]&&(tj(G,Az,16,sh[1]),F++)}var pn=B.networkEvents;pn&&(fP(G.B.bind(G),pn,dIa),F++);var ml=B.threadUtilization;if(ml){var ei=new Hz,fi=0;try{var As=ml.userJourney;void 0!==As&&(N(ei,1,As),fi++);var Ue=ml.type;void 0!==Ue&&(O(ei,2,eIa[Ue]),fi++);var Tq=ml.threadPoolStats;Tq&&(fP(ei.j.bind(ei),Tq,fIa),fi++);var nl=ml.totalThreadCount;void 0!==nl&&(Gj(ei,4,nl),fi++);var ij=ml.statsGenerateDurationMs;void 0!==ij&&(Ij(ei,5,ij),fi++);var qn=[fi===Object.keys(ml).length,ei]}catch(ob){W(ob),
qn=[!1,void 0]}var jj=qn;jj[0]&&(tj(G,Hz,18,jj[1]),F++)}var ol=B.androidBackgroundTask;if(ol){var rn=new Iy,sn=0;try{var Uq=ol.tag;void 0!==Uq&&(N(rn,1,Uq),sn++);var $o=ol.isKnownTask;void 0!==$o&&(Fj(rn,2,$o),sn++);var Vq=ol.result;void 0!==Vq&&(O(rn,3,gIa[Vq]),sn++);var Wq=ol.durationMs;void 0!==Wq&&(Ij(rn,4,Wq),sn++);var tn=[sn===Object.keys(ol).length,rn]}catch(ob){W(ob),tn=[!1,void 0]}var pl=tn;pl[0]&&(tj(G,Iy,19,pl[1]),F++)}var hk=B.distributiveProfilingSpan;if(hk){var Hi=new tz,Hg=0;try{var im=
hk.spanId;void 0!==im&&(O(Hi,1,hIa[im]),Hg++);var ql=hk.sampleRate;void 0!==ql&&(Kj(Hi,2,ql),Hg++);var Xq=hk.spanDurationMs;void 0!==Xq&&(Ij(Hi,3,Xq),Hg++);var Yq=hk.sampleFailureCount;void 0!==Yq&&(Gj(Hi,4,Yq),Hg++);var un=hk.sample;un&&(fP(Hi.Ck.bind(Hi),un,iIa),Hg++);var jm=[Hg===Object.keys(hk).length,Hi]}catch(ob){W(ob),jm=[!1,void 0]}var km=jm;km[0]&&(tj(G,tz,20,km[1]),F++)}var rl=B.appExitInfo;if(rl){var kj=new Jy,Ii=0;try{var Oa=rl.reason;void 0!==Oa&&(O(kj,1,jIa[Oa]),Ii++);var Bs=rl.status;
void 0!==Bs&&(Gj(kj,2,Bs),Ii++);var yu=rl.importance;void 0!==yu&&(Gj(kj,3,yu),Ii++);var Cs=rl.description;void 0!==Cs&&(N(kj,4,Cs),Ii++);var zu=[Ii===Object.keys(rl).length,kj]}catch(ob){W(ob),zu=[!1,void 0]}var lm=zu;lm[0]&&(tj(G,Jy,21,lm[1]),F++)}var lA=[F===Object.keys(B).length,G]}catch(ob){W(ob),lA=[!1,void 0]}var mA=lA;mA[0]&&(tj(b,Iz,6,mA[1]),c++)}var nA=a.detailedNetworkType;void 0!==nA&&(O(b,7,pP[nA]),c++);var oA=a.isAd;void 0!==oA&&(Fj(b,8,oA),c++);var Zw=a.offlineModeType;void 0!==Zw&&
(O(b,9,kIa[Zw]),c++);var Au=a.storageFormat;void 0!==Au&&(O(b,24,lIa[Au]),c++);var $w=a.offlineSourceVeType;void 0!==$w&&(Gj(b,32,$w),c++);var mm=a.listId;void 0!==mm&&(N(b,10,mm),c++);var vn=a.offlineabilityFormatType;void 0!==vn&&(O(b,11,mIa[vn]),c++);var wn=a.offlineAudioQuality;void 0!==wn&&(O(b,29,nIa[wn]),c++);var ax=a.softErrorCount;void 0!==ax&&(Gj(b,12,ax),c++);var bx=a.pendingStateFlags;void 0!==bx&&(Hj(b,13,bx),c++);var xn=a.unusedOfflineVideoPendingState;void 0!==xn&&(O(b,14,oIa[xn]),
c++);var cx=a.isRefresh;void 0!==cx&&(Fj(b,15,cx),c++);var dx=a.isNewPlayerResponse;void 0!==dx&&(Fj(b,16,dx),c++);var ex=a.isOfflineShareable;void 0!==ex&&(Fj(b,17,ex),c++);var yM=a.hasContentVerificationSignature;void 0!==yM&&(Fj(b,18,yM),c++);var zM=a.isOfflineInterleaving;void 0!==zM&&(Fj(b,19,zM),c++);var fx=a.blockSizeBytes;void 0!==fx&&(Gj(b,25,fx),c++);var pA=a.streamVerificationStrategy;void 0!==pA&&(O(b,26,qP[pA]),c++);var qA=a.streamVerificationFailedBlocks;qA&&(fP(b.j.bind(b),qA,pIa),
c++);var rA=a.spacecastInfo;if(rA){var oF=new KA,pF=0;try{var AM=rA.applianceId;void 0!==AM&&(N(oF,1,AM),pF++);var BM=rA.transferredFromCache;void 0!==BM&&(O(oF,2,qIa[BM]),pF++);var qF=[pF===Object.keys(rA).length,oF]}catch(ob){W(ob),qF=[!1,void 0]}var CM=qF;CM[0]&&(tj(b,KA,28,CM[1]),c++)}var DM=a.transferType;void 0!==DM&&(O(b,33,rIa[DM]),c++);var EM=a.onlyDownloadOnWifi;void 0!==EM&&(Fj(b,34,EM),c++);var FM=a.appLifecycleStatus;void 0!==FM&&(O(b,35,sIa[FM]),c++);var GM=a.isDefaultDownloadToSdCard;
void 0!==GM&&(Fj(b,36,GM),c++);var HM=a.serializedLoggingParams;void 0!==HM&&(ik(b,39,HM),c++);var rF=a.transferServiceStartedFromBackground;void 0!==rF&&(Fj(b,40,rF),c++);var IM=a.transferFirstStarted;void 0!==IM&&(Fj(b,42,IM),c++);return[c===Object.keys(a).length,b]}catch(ob){return W(ob),[!1,void 0]}};
DHa=function(a){var b=new sx,c=0;try{var d=a.datapushBuild;if(d){var e=uIa(d);e[0]&&(tj(b,qx,1,e[1]),c++)}return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}};
uIa=function(a){var b=new qx,c=0;try{var d=a.buildId;void 0!==d&&(Ij(b,1,d),c++);var e=a.clientExperimentId;void 0!==e&&(Gj(b,2,e),c++);var f=a.accessType;void 0!==f&&(O(b,3,vIa[f]),c++);return[c===Object.keys(a).length,b]}catch(h){return W(h),[!1,void 0]}};
EHa=function(a){var b=new rx,c=0;try{var d=a.datapushBuild;if(d){var e=uIa(d);e[0]&&(tj(b,qx,1,e[1]),c++)}return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}};
FHa=function(a){var b=new uz,c=0;try{var d=a.assetLoggingId;void 0!==d&&(N(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}};
oP=function(a){var b=new Ey,c=0;try{var d=a.stackTraces;d&&(fP(b.B.bind(b),d,wIa),c++);var e=a.allModules;e&&(fP(b.j.bind(b),e,xIa),c++);var f=a.appVersionCode;void 0!==f&&(Gj(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return W(h),[!1,void 0]}};
wIa=function(a){var b=new Dy,c=0;try{var d=a.mainThread;if(d){var e=yIa(d);e[0]&&(tj(b,Cy,1,e[1]),c++)}var f=a.backgroundThreads;f&&(fP(b.j.bind(b),f,yIa),c++);var h=a.metaData;h&&(fP(b.B.bind(b),h,zIa),c++);return[c===Object.keys(a).length,b]}catch(l){return W(l),[!1,void 0]}};
yIa=function(a){var b=new Cy,c=0;try{var d=a.stackFrames;d&&(fP(b.j.bind(b),d,AIa),c++);var e=a.androidStack;void 0!==e&&(N(b,6,e),c++);var f=a.threadName;void 0!==f&&(N(b,2,f),c++);var h=a.cpuUsage;void 0!==h&&(Kj(b,3,h),c++);var l=a.cpuTimeSec;void 0!==l&&(Ij(b,4,l),c++);var m=a.iosThreadInfo;if(m){var n=new Ay;d=0;try{var p=m.state;void 0!==p&&(n.Gc(BIa[p]),d++);var q=m.flag;void 0!==q&&(O(n,2,CIa[q]),d++);var r=m.currentPriority;void 0!==r&&(Gj(n,3,r),d++);var t=m.priority;void 0!==t&&(Gj(n,4,
t),d++);var v=m.maxPriority;void 0!==v&&(Gj(n,5,v),d++);var x=m.isCrashedThread;void 0!==x&&(Fj(n,6,x),d++);var B=[d===Object.keys(m).length,n]}catch(G){W(G),B=[!1,void 0]}m=B;m[0]&&(tj(b,Ay,5,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(G){return W(G),[!1,void 0]}};
AIa=function(a){var b=new By,c=0;try{var d=a.instructionOffset;void 0!==d&&(Ij(b,1,d),c++);var e=a.moduleIndex;void 0!==e&&(Gj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}};
zIa=function(a){var b=new zy,c=0;try{var d=a.clientTimestampMs;void 0!==d&&(Ij(b,1,d),c++);var e=a.sampleTimeCostMs;void 0!==e&&(Kj(b,2,e),c++);var f=a.numberOfBustedFrames;void 0!==f&&(Gj(b,3,f),c++);var h=a.droppedFrameDurationMs;void 0!==h&&(Gj(b,4,h),c++);var l=a.deviceOrientation;void 0!==l&&(O(b,5,DIa[l]),c++);var m=a.processUptimeMs;void 0!==m&&(Ij(b,6,m),c++);var n=a.memoryUsageKbytes;void 0!==n&&(Ij(b,7,n),c++);var p=a.batteryPercentage;void 0!==p&&(Kj(b,8,p),c++);var q=a.exceptionName;void 0!==
q&&(N(b,9,q),c++);var r=a.exceptionReason;void 0!==r&&(N(b,10,r),c++);var t=a.signalNumber;void 0!==t&&(Gj(b,11,t),c++);var v=a.signalCode;void 0!==v&&(Gj(b,12,v),c++);return[c===Object.keys(a).length,b]}catch(x){return W(x),[!1,void 0]}};
xIa=function(a){var b=new yy,c=0;try{var d=a.moduleUuid;void 0!==d&&(ik(b,1,d),c++);var e=a.moduleName;void 0!==e&&(N(b,2,e),c++);var f=a.loadAddress;void 0!==f&&(Ij(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return W(h),[!1,void 0]}};
JHa=function(a){var b=new Ny,c=0;try{var d=a.key;void 0!==d&&(N(b,1,d),c++);var e=a.value;void 0!==e&&(N(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}};
WHa=function(a){var b=new fz,c=0;try{var d=a.serializedThrowable;void 0!==d&&(ik(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}};
XHa=function(a){var b=new mz,c=0;try{var d=a.jsStack;if(d){var e=new lz,f=0;try{var h=d.stackTrace;h&&(fP(e.j.bind(e),h,EIa),f++);var l=d.moduleSetVersion;void 0!==l&&(Jj(e,4,l),f++);var m=[f===Object.keys(d).length,e]}catch(x){W(x),m=[!1,void 0]}d=m;d[0]&&(uj(b,lz,1,FIa,d[1]),c++)}var n=a.javaStack;if(n){var p=WHa(n);p[0]&&(uj(b,fz,2,FIa,p[1]),c++)}var q=a.ccStack;if(q){var r=new jz;n=0;try{var t=q.stackTrace;t&&(fP(r.j.bind(r),t,GIa),n++);var v=[n===Object.keys(q).length,r]}catch(x){W(x),v=[!1,
void 0]}q=v;q[0]&&(uj(b,jz,3,FIa,q[1]),c++)}return[c===Object.keys(a).length,b]}catch(x){return W(x),[!1,void 0]}};
EIa=function(a){var b=new kz,c=0;try{var d=a.functionName;void 0!==d&&(N(b,1,d),c++);var e=a.source;void 0!==e&&(N(b,2,e),c++);var f=a.lineNumber;void 0!==f&&(Gj(b,3,f),c++);var h=a.columnNumber;void 0!==h&&(Gj(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return W(l),[!1,void 0]}};
GIa=function(a){var b=new iz,c=0;try{var d=a.functionName;void 0!==d&&(N(b,1,d),c++);var e=a.source;void 0!==e&&(N(b,2,e),c++);var f=a.lineNumber;void 0!==f&&(Gj(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return W(h),[!1,void 0]}};
ZHa=function(a){var b=new Gy,c=0;try{var d=a.batteryLevelMicros;void 0!==d&&(Gj(b,1,d),c++);var e=a.networkType;void 0!==e&&(O(b,2,pP[e]),c++);var f=a.screenBrightness;void 0!==f&&(Kj(b,3,f),c++);var h=a.isLowPowerMode;void 0!==h&&(Fj(b,4,h),c++);var l=a.isBackground;void 0!==l&&(Fj(b,5,l),c++);var m=a.isStateTransition;void 0!==m&&(Fj(b,6,m),c++);var n=a.observedBackgroundFetchMethodCallback;void 0!==n&&(Fj(b,7,n),c++);var p=a.observedBackgroundTaskDidExpire;void 0!==p&&(Fj(b,8,p),c++);return[c===
Object.keys(a).length,b]}catch(q){return W(q),[!1,void 0]}};
$Ha=function(a){var b=new vy,c=0;try{var d=a.batteryLevelMicros;void 0!==d&&(Gj(b,1,d),c++);var e=a.networkType;void 0!==e&&(O(b,2,pP[e]),c++);var f=a.screenBrightness;void 0!==f&&(Gj(b,3,f),c++);var h=a.screenBrightnessMode;void 0!==h&&(O(b,4,HIa[h]),c++);var l=a.lowPowerMode;void 0!==l&&(O(b,5,IIa[l]),c++);var m=a.batteryHealth;void 0!==m&&(O(b,6,JIa[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return W(n),[!1,void 0]}};
bIa=function(a){var b=new yz,c=0;try{var d=a.className;void 0!==d&&(N(b,1,d),c++);var e=a.instanceNum;void 0!==e&&(Ij(b,2,e),c++);var f=a.instanceSizeBytes;void 0!==f&&(Ij(b,3,f),c++);var h=a.allocationNum;void 0!==h&&(Ij(b,4,h),c++);var l=a.deallocationNum;void 0!==l&&(Ij(b,5,l),c++);return[c===Object.keys(a).length,b]}catch(m){return W(m),[!1,void 0]}};
cIa=function(a){var b=new Fx,c=0;try{var d=a.v8Stats;if(d){var e=new Ex,f=0;try{var h=d.totalHeapSize;void 0!==h&&(Jj(e,1,h),f++);var l=d.totalHeapSizeExecutable;void 0!==l&&(Jj(e,2,l),f++);var m=d.totalPhysicalSize;void 0!==m&&(Jj(e,3,m),f++);var n=d.totalAvailableSize;void 0!==n&&(Jj(e,4,n),f++);var p=d.totalGlobalHandlesSize;void 0!==p&&(Jj(e,5,p),f++);var q=d.usedGlobalHandlesSize;void 0!==q&&(Jj(e,6,q),f++);var r=d.usedHeapSize;void 0!==r&&(Jj(e,7,r),f++);var t=d.heapSizeLimit;void 0!==t&&(Jj(e,
8,t),f++);var v=d.mallocedMemory;void 0!==v&&(Jj(e,9,v),f++);var x=d.externalMemory;void 0!==x&&(Jj(e,10,x),f++);var B=d.peakMallocedMemory;void 0!==B&&(Jj(e,11,B),f++);var G=d.numberOfNativeContexts;void 0!==G&&(Jj(e,12,G),f++);var F=d.numberOfDetachedContexts;void 0!==F&&(Jj(e,13,F),f++);var I=[f===Object.keys(d).length,e]}catch(X){W(X),I=[!1,void 0]}d=I;d[0]&&(uj(b,Ex,1,KIa,d[1]),c++)}var P=a.quickjsStats;if(P){var R=new Dx;d=0;try{var Z=P.mallocSize;void 0!==Z&&(Jj(R,1,Z),d++);var ma=P.mallocLimit;
void 0!==ma&&(Jj(R,2,ma),d++);var ua=P.memoryUsedSize;void 0!==ua&&(Jj(R,3,ua),d++);var oa=P.mallocCount;void 0!==oa&&(Jj(R,4,oa),d++);var ia=P.memoryUsedCount;void 0!==ia&&(Jj(R,5,ia),d++);var Aa=[d===Object.keys(P).length,R]}catch(X){W(X),Aa=[!1,void 0]}P=Aa;P[0]&&(uj(b,Dx,2,KIa,P[1]),c++)}return[c===Object.keys(a).length,b]}catch(X){return W(X),[!1,void 0]}};
dIa=function(a){var b=new Cz,c=0;try{var d=a.index;void 0!==d&&(b.Rw(d),c++);var e=a.networkEventType;void 0!==e&&(O(b,2,LIa[e]),c++);var f=a.path;void 0!==f&&(N(b,3,f),c++);var h=a.failureReason;void 0!==h&&(O(b,4,MIa[h]),c++);var l=a.startTimeMs;void 0!==l&&(Ij(b,5,l),c++);var m=a.totalDurationMs;void 0!==m&&(Ij(b,6,m),c++);var n=a.requestSize;void 0!==n&&(Ij(b,7,n),c++);var p=a.responseSize;void 0!==p&&(Ij(b,8,p),c++);var q=a.networkRequestAttempt;q&&(fP(b.j.bind(b),q,NIa),c++);var r=a.httpMethod;
void 0!==r&&(O(b,10,OIa[r]),c++);return[c===Object.keys(a).length,b]}catch(t){return W(t),[!1,void 0]}};
NIa=function(a){var b=new Bz,c=0;try{var d=a.failureReason;void 0!==d&&(O(b,1,MIa[d]),c++);var e=a.startTimeMs;void 0!==e&&(Ij(b,5,e),c++);var f=a.durationMs;void 0!==f&&(Ij(b,2,f),c++);var h=a.networkAvailable;void 0!==h&&(O(b,3,PIa[h]),c++);return[c===Object.keys(a).length,b]}catch(l){return W(l),[!1,void 0]}};
fIa=function(a){var b=new Gz,c=0;try{var d=a.threadPoolName;void 0!==d&&(N(b,1,d),c++);var e=a.threadCount;void 0!==e&&(Gj(b,2,e),c++);var f=a.startedTaskCount;void 0!==f&&(Gj(b,3,f),c++);var h=a.finishedTaskCount;void 0!==h&&(Gj(b,4,h),c++);var l=a.runningTimeMs;void 0!==l&&(Ij(b,5,l),c++);var m=a.waitingTimeMs;void 0!==m&&(Ij(b,6,m),c++);var n=a.runCount;void 0!==n&&(Ij(b,7,n),c++);var p=a.runningPercent;void 0!==p&&(Gj(b,8,p),c++);return[c===Object.keys(a).length,b]}catch(q){return W(q),[!1,void 0]}};
iIa=function(a){var b=new sz,c=0;try{var d=a.curveTimestampMs;void 0!==d&&(Ij(b,1,d),c++);var e=a.curveWeight;void 0!==e&&(Kj(b,2,e),c++);var f=a.realTimestampMs;void 0!==f&&(Ij(b,3,f),c++);var h=a.sampleCostUsec;void 0!==h&&(Ij(b,4,h),c++);var l=a.compactStackTraceSample;if(l){var m=oP(l);m[0]&&(tj(b,Ey,5,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(n){return W(n),[!1,void 0]}};
pIa=function(a){var b=new LA,c=0;try{var d=a.itag;void 0!==d&&(Gj(b,1,d),c++);var e=a.startingByte;void 0!==e&&(Ij(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}};
VIa=function(a){var b=new JB,c=0;try{var d=a.id;void 0!==d&&(N(b,1,d),c++);var e=a.videoState;void 0!==e&&(O(b,2,QIa[e]),c++);var f=a.pendingStateFlags;void 0!==f&&(Hj(b,3,f),c++);var h=a.totalBytes;void 0!==h&&(Ij(b,21,h),c++);var l=a.downloadedBytes;void 0!==l&&(Ij(b,4,l),c++);var m=a.selectedVideoQuality;void 0!==m&&(O(b,5,mIa[m]),c++);var n=a.selectedOfflineMode;void 0!==n&&(O(b,6,kIa[n]),c++);var p=a.playerResponseSavedTimeMs;void 0!==p&&(Ij(b,7,p),c++);var q=a.offlineStateUpdateTimeMs;void 0!==
q&&(Ij(b,8,q),c++);var r=a.offlineStateExpiresInS;void 0!==r&&(Ij(b,9,r),c++);var t=a.durationInS;void 0!==t&&(Ij(b,10,t),c++);var v=a.isInPlaylist;void 0!==v&&(Fj(b,11,v),c++);var x=a.addedNetworkType;void 0!==x&&(O(b,12,pP[x]),c++);var B=a.downloadCompletedNetworkType;void 0!==B&&(O(b,13,pP[B]),c++);var G=a.captions;G&&(fP(b.j.bind(b),G,RIa),c++);var F=a.unusedOfflineVideoPendingState;void 0!==F&&(O(b,15,oIa[F]),c++);var I=a.lastPlaybackTimestampMs;void 0!==I&&(Ij(b,16,I),c++);var P=a.offlineSuspendedStates;
P&&(fP(b.B.bind(b),P,SIa),c++);var R=a.streamInLocalStorage;void 0!==R&&(Fj(b,18,R),c++);var Z=a.streamInInternalStorage;void 0!==Z&&(Fj(b,19,Z),c++);var ma=a.storageIdStates;if(ma){var ua=new Gma;d=0;try{var oa=ma.storageId;void 0!==oa&&(Hj(ua,1,oa),d++);var ia=ma.storageIdSourceType;void 0!==ia&&(O(ua,2,TIa[ia]),d++);var Aa=[d===Object.keys(ma).length,ua]}catch(ka){W(ka),Aa=[!1,void 0]}ma=Aa;ma[0]&&(tj(b,Gma,20,ma[1]),c++)}var X=a.cotn;void 0!==X&&(N(b,22,X),c++);var wa=a.additionalVideoClientState;
if(wa){var ca=new Dma;X=0;try{var Ra=wa.musicAppAdditionalVideoClientState;if(Ra){var y=new Cma;ma=0;try{var V=Ra.episodePublishedTimeMs;void 0!==V&&(Ij(y,1,V),ma++);var ib=[ma===Object.keys(Ra).length,y]}catch(ka){W(ka),ib=[!1,void 0]}Ra=ib;Ra[0]&&(tj(ca,Cma,1,Ra[1]),X++)}var fb=[X===Object.keys(wa).length,ca]}catch(ka){W(ka),fb=[!1,void 0]}wa=fb;wa[0]&&(tj(b,Dma,23,wa[1]),c++)}var Za=a.offlineVideoEntityMigrationState;if(Za){var $a=new IB;wa=0;try{var ic=Za.isInOfflineStore;void 0!==ic&&(Fj($a,
1,ic),wa++);var Rb=Za.isPlaybackDataEntityPresent;void 0!==Rb&&(Fj($a,2,Rb),wa++);var bb=Za.wasPlaybackDataEntityUsedToFillVideoState;void 0!==bb&&(Fj($a,3,bb),wa++);var ec=Za.isTransferEntityPresent;void 0!==ec&&(Fj($a,4,ec),wa++);var jb=Za.wasTransferEntityUsedToFillVideoState;void 0!==jb&&(Fj($a,5,jb),wa++);var A=Za.offlineStoreCaptionTrackCount;void 0!==A&&(Gj($a,6,A),wa++);var D=Za.entityStoreCaptionTrackCount;void 0!==D&&(Gj($a,7,D),wa++);var E=Za.isMetadataEntityPresent;void 0!==E&&(Fj($a,
8,E),wa++);var C=Za.transferDiffFields;void 0!==C&&(gP($a.j.bind($a),C,UIa),wa++);var K=[wa===Object.keys(Za).length,$a]}catch(ka){W(ka),K=[!1,void 0]}Za=K;Za[0]&&(tj(b,IB,24,Za[1]),c++)}var Y=a.lastProgressTimeMs;void 0!==Y&&(Ij(b,25,Y),c++);return[c===Object.keys(a).length,b]}catch(ka){return W(ka),[!1,void 0]}};
RIa=function(a){var b=new Ema,c=0;try{var d=a.format;void 0!==d&&(Gj(b,1,d),c++);var e=a.isDownloaded;void 0!==e&&(Fj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}};
SIa=function(a){var b=new Fma,c=0;try{var d=a.totalDownloadedBytes;void 0!==d&&(Ij(b,1,d),c++);var e=a.totalSegmentCount;void 0!==e&&(Ij(b,2,e),c++);var f=a.backgroundTransitionCount;void 0!==f&&(Ij(b,3,f),c++);var h=a.totalDurationMs;void 0!==h&&(Ij(b,4,h),c++);var l=a.downloadErrorCount;void 0!==l&&(Gj(b,5,l),c++);var m=a.totalDownloadedSizePercent;void 0!==m&&(Hj(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return W(n),[!1,void 0]}};
XIa=function(a){var b=new HB,c=0;try{var d=a.id;void 0!==d&&(N(b,1,d),c++);var e=a.videoIds;e&&(fP(b.j.bind(b),e),c++);var f=a.videoCount;void 0!==f&&(Gj(b,3,f),c++);var h=a.successCount;void 0!==h&&(Gj(b,4,h),c++);var l=a.failCount;void 0!==l&&(Gj(b,5,l),c++);var m=a.pendingCount;void 0!==m&&(Gj(b,6,m),c++);var n=a.disabledCount;void 0!==n&&(Gj(b,7,n),c++);var p=a.deletedCount;void 0!==p&&(Gj(b,8,p),c++);var q=a.selectedVideoQuality;void 0!==q&&(O(b,9,mIa[q]),c++);var r=a.isPlaylistOwner;void 0!==
r&&(Fj(b,10,r),c++);var t=a.lastSyncTimeMs;void 0!==t&&(Ij(b,11,t),c++);var v=a.requestSource;void 0!==v&&(O(b,12,WIa[v]),c++);var x=a.additionalPlaylistClientState;if(x){var B=new Bma;d=0;try{var G=x.musicAppAdditionalPlaylistClientState;if(G){var F=new Ama;e=0;try{var I=G.isPodcastShow;void 0!==I&&(Fj(F,1,I),e++);var P=[e===Object.keys(G).length,F]}catch(Z){W(Z),P=[!1,void 0]}G=P;G[0]&&(tj(B,Ama,1,G[1]),d++)}var R=[d===Object.keys(x).length,B]}catch(Z){W(Z),R=[!1,void 0]}x=R;x[0]&&(tj(b,Bma,13,
x[1]),c++)}return[c===Object.keys(a).length,b]}catch(Z){return W(Z),[!1,void 0]}};
$Ia=function(a){var b=new DB,c=0;try{var d=a.videoId;void 0!==d&&(b.setVideoId(d),c++);var e=a.itag;void 0!==e&&(Hj(b,6,e),c++);var f=a.failureReason;void 0!==f&&(O(b,2,YIa[f]),c++);var h=a.isCachedExternally;void 0!==h&&(Fj(b,3,h),c++);var l=a.previousFailureReason;void 0!==l&&(O(b,4,YIa[l]),c++);var m=a.previousFailureReasonTimestampMs;void 0!==m&&(Jj(b,5,m),c++);var n=a.streamVerificationStrategy;void 0!==n&&(O(b,7,qP[n]),c++);var p=a.blockSizeBytes;void 0!==p&&(Gj(b,8,p),c++);var q=a.streamVerificationFailedBlocks;
q&&(fP(b.j.bind(b),q,ZIa),c++);var r=a.primaryVerificationStrategy;void 0!==r&&(O(b,10,qP[r]),c++);var t=a.secondaryVerificationStrategy;void 0!==t&&(O(b,11,qP[t]),c++);var v=a.secondaryFailureReason;void 0!==v&&(O(b,12,YIa[v]),c++);return[c===Object.keys(a).length,b]}catch(x){return W(x),[!1,void 0]}};
ZIa=function(a){var b=new xma,c=0;try{var d=a.itag;void 0!==d&&(Gj(b,1,d),c++);var e=a.startingByte;void 0!==e&&(Ij(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}};
aJa=function(a){var b=new FB,c=0;try{var d=a.videoId;void 0!==d&&(b.setVideoId(d),c++);var e=a.surrogateVideoId;void 0!==e&&(Ij(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}};
bJa=function(a){var b=new yma,c=0;try{var d=a.externalVideoId;void 0!==d&&(N(b,1,d),c++);var e=a.videoSid;void 0!==e&&(Ij(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}};
jJa=function(a){var b=new ay,c=0;try{var d=a.opportunityData;if(d){var e=new Xx,f=0;try{var h=d.debugData;if(h){var l=new Wx,m=0;try{var n=h.slots;n&&(fP(l.j.bind(l),n,cJa),m++);var p=h.associatedSlotId;void 0!==p&&(N(l,2,p),m++);var q=[m===Object.keys(h).length,l]}catch(Zb){W(Zb),q=[!1,void 0]}h=q;h[0]&&(tj(e,Wx,2,h[1]),f++)}var r=d.opportunityType;void 0!==r&&(O(e,3,dJa[r]),f++);var t=[f===Object.keys(d).length,e]}catch(Zb){W(Zb),t=[!1,void 0]}d=t;d[0]&&(tj(b,Xx,1,d[1]),c++)}var v=a.slotData;if(v){var x=
cJa(v);x[0]&&(tj(b,Vx,2,x[1]),c++)}var B=a.layoutData;if(B){var G=new Tx;v=0;try{var F=B.type;void 0!==F&&(O(G,2,eJa[F]),v++);var I=B.debugData;if(I){var P=new Sx;F=0;try{var R=I.layoutId;void 0!==R&&(N(P,1,R),F++);var Z=I.exitNormalTriggerData;Z&&(fP(P.D3.bind(P),Z,rP),F++);var ma=I.exitSkipTriggerData;ma&&(fP(P.E3.bind(P),ma,rP),F++);var ua=I.exitMuteTriggerData;ua&&(fP(P.C3.bind(P),ua,rP),F++);var oa=I.exitUserInputSubmittedTriggerData;oa&&(fP(P.G3.bind(P),oa,rP),F++);var ia=I.exitUserCancelledTriggerData;
ia&&(fP(P.F3.bind(P),ia,rP),F++);var Aa=[F===Object.keys(I).length,P]}catch(Zb){W(Zb),Aa=[!1,void 0]}I=Aa;I[0]&&(tj(G,Sx,3,I[1]),v++)}var X=B.controlFlowManagerLayer;void 0!==X&&(O(G,4,fJa[X]),v++);var wa=B.pingTriggerTypes;void 0!==wa&&(gP(G.j.bind(G),wa,sP),v++);var ca=[v===Object.keys(B).length,G]}catch(Zb){W(Zb),ca=[!1,void 0]}B=ca;B[0]&&(tj(b,Tx,3,B[1]),c++)}var Ra=a.triggerData;if(Ra){var y=rP(Ra);y[0]&&(tj(b,Rx,4,y[1]),c++)}var V=a.pingData;if(V){var ib=new $x;Ra=0;try{var fb=V.sourceTriggerType;
void 0!==fb&&(O(ib,1,sP[fb]),Ra++);var Za=V.debugData;Za&&(fP(ib.j.bind(ib),Za,gJa),Ra++);var $a=V.pingCount;void 0!==$a&&(Gj(ib,3,$a),Ra++);var ic=V.pingDispatchStatus;void 0!==ic&&(O(ib,4,hJa[ic]),Ra++);var Rb=V.serializedAdPingMetadata;void 0!==Rb&&(ik(ib,5,Rb),Ra++);var bb=V.pingDebugData;if(bb){var ec=new Zx;fb=0;try{var jb=bb.substitutedMacros;void 0!==jb&&(gP(ec.j.bind(ec),jb,iJa),fb++);var A=bb.unsubstitutedMacros;void 0!==A&&(gP(ec.B.bind(ec),A,iJa),fb++);var D=[fb===Object.keys(bb).length,
ec]}catch(Zb){W(Zb),D=[!1,void 0]}bb=D;bb[0]&&(tj(ib,Zx,6,bb[1]),Ra++)}var E=V.pingIndex;void 0!==E&&(Gj(ib,8,E),Ra++);var C=[Ra===Object.keys(V).length,ib]}catch(Zb){W(Zb),C=[!1,void 0]}V=C;V[0]&&(tj(b,$x,6,V[1]),c++)}var K=a.externalContext;if(K){var Y=new Ox;V=0;try{var ka=K.organicPlaybackContext;if(ka){var va=new Nx;C=0;try{var ea=ka.contentCpn;void 0!==ea&&(N(va,1,ea),C++);var ha=ka.isLivePlayback;void 0!==ha&&(Fj(va,2,ha),C++);var Ea=ka.isOfflinePlayback;void 0!==Ea&&(Fj(va,3,Ea),C++);var Da=
ka.isMdxPlayback;void 0!==Da&&(Fj(va,4,Da),C++);var nb=ka.isDaiContent;void 0!==nb&&(Fj(va,5,nb),C++);var Vb=ka.isPrefetchedPlayback;void 0!==Vb&&(Fj(va,6,Vb),C++);var Lb=[C===Object.keys(ka).length,va]}catch(Zb){W(Zb),Lb=[!1,void 0]}ka=Lb;ka[0]&&(tj(Y,Nx,1,ka[1]),V++)}var Ob=K.html5ExperimentContext;if(Ob){var Ab=new Mx;ka=0;try{var Kb=Ob.ytExperimentId;void 0!==Kb&&(Gj(Ab,1,Kb),ka++);var Fc=[ka===Object.keys(Ob).length,Ab]}catch(Zb){W(Zb),Fc=[!1,void 0]}Ob=Fc;Ob[0]&&(tj(Y,Mx,2,Ob[1]),V++)}var yc=
K.adVideoPlaybackContext;if(yc){var $c=new Lx;Ob=0;try{var Wc=yc.adVideoCpn;void 0!==Wc&&(N($c,1,Wc),Ob++);var ad=[Ob===Object.keys(yc).length,$c]}catch(Zb){W(Zb),ad=[!1,void 0]}yc=ad;yc[0]&&(tj(Y,Lx,3,yc[1]),V++)}var kd=[V===Object.keys(K).length,Y]}catch(Zb){W(Zb),kd=[!1,void 0]}K=kd;K[0]&&(tj(b,Ox,5,K[1]),c++)}return[c===Object.keys(a).length,b]}catch(Zb){return W(Zb),[!1,void 0]}};
cJa=function(a){var b=new Vx,c=0;try{var d=a.type;void 0!==d&&(O(b,2,kJa[d]),c++);var e=a.entryTriggerType;void 0!==e&&(O(b,6,sP[e]),c++);var f=a.slotPhysicalPosition;void 0!==f&&(Gj(b,8,f),c++);var h=a.debugData;if(h){var l=new Ux;d=0;try{var m=h.slotId;void 0!==m&&(N(l,1,m),d++);var n=h.entryTriggerTypes;void 0!==n&&(gP(l.B.bind(l),n,sP),d++);var p=h.unscheduledDueToError;void 0!==p&&(Fj(l,3,p),d++);var q=h.entryTriggerData;q&&(fP(l.j.bind(l),q,rP),d++);var r=h.slotEntryTriggerData;if(r){var t=
rP(r);t[0]&&(tj(l,Rx,7,t[1]),d++)}var v=h.fulfillmentTriggerData;v&&(fP(l.D.bind(l),v,rP),d++);var x=h.expirationTriggerData;x&&(fP(l.C.bind(l),x,rP),d++);var B=[d===Object.keys(h).length,l]}catch(I){W(I),B=[!1,void 0]}h=B;h[0]&&(tj(b,Ux,3,h[1]),c++)}var G=a.externallyManaged;void 0!==G&&(Fj(b,4,G),c++);var F=a.controlFlowManagerLayer;void 0!==F&&(O(b,5,fJa[F]),c++);return[c===Object.keys(a).length,b]}catch(I){return W(I),[!1,void 0]}};
rP=function(a){var b=new Rx,c=0;try{var d=a.type;void 0!==d&&(O(b,1,sP[d]),c++);var e=a.category;void 0!==e&&(O(b,2,lJa[e]),c++);var f=a.layoutIdEnteredTriggerData;if(f){var h=new Px;d=0;try{var l=f.enteredLayoutId;void 0!==l&&(N(h,1,l),d++);var m=[d===Object.keys(f).length,h]}catch(x){W(x),m=[!1,void 0]}f=m;f[0]&&(uj(b,Px,3,mJa,f[1]),c++)}var n=a.triggerSourceData;if(n){var p=new Qx;f=0;try{var q=n.associatedSlotId;void 0!==q&&(pj(p,1,nJa,ti(q)),f++);var r=n.associatedLayoutId;void 0!==r&&(pj(p,
2,nJa,ti(r)),f++);var t=[f===Object.keys(n).length,p]}catch(x){W(x),t=[!1,void 0]}n=t;n[0]&&(uj(b,Qx,4,mJa,n[1]),c++)}var v=a.shouldOnlyTriggerOnce;void 0!==v&&(Fj(b,5,v),c++);return[c===Object.keys(a).length,b]}catch(x){return W(x),[!1,void 0]}};
gJa=function(a){var b=new Yx,c=0;try{var d=a.macros;void 0!==d&&(gP(b.j.bind(b),d,iJa),c++);var e=a.success;void 0!==e&&(Fj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}};
pJa=function(a){var b=new Hx,c=0;try{var d=a.cui;if(d){var e=new Gx;try{var f=[0===Object.keys(d).length,e]}catch(l){W(l),f=[!1,void 0]}d=f;d[0]&&(tj(b,Gx,1,d[1]),c++)}var h=a.step;void 0!==h&&(O(b,2,oJa[h]),c++);return[c===Object.keys(a).length,b]}catch(l){return W(l),[!1,void 0]}};
qJa=function(a){var b=new oy,c=0;try{var d=a.startMs;void 0!==d&&(Kj(b,1,d),c++);var e=a.endMs;void 0!==e&&(Kj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}};
rJa=function(a){var b=new by,c=0;try{var d=a.externalVideoId;void 0!==d&&(N(b,1,d),c++);var e=a.originalMediaDurationMs;void 0!==e&&(Ij(b,2,e),c++);var f=a.trimmedMediaDurationMs;void 0!==f&&(Ij(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return W(h),[!1,void 0]}};
sJa=function(a){var b=new IA,c=0;try{var d=a.orchestrationActionId;void 0!==d&&(N(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}};
tJa=function(a){var b=new fB,c=0;try{var d=a.answerId;void 0!==d&&(Gj(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}};
wJa=function(a){var b=new ZA,c=0;try{var d=a.ypcCallerPage;void 0!==d&&(O(b,1,uJa[d]),c++);var e=a.useCase;void 0!==e&&(O(b,2,vJa[e]),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}};
BJa=function(a){var b=new kB,c=0;try{var d=a.itemId;if(d){var e=new Cx,f=0;try{var h=d.type;void 0!==h&&(O(e,1,tP[h]),f++);var l=d.externalId;void 0!==l&&(N(e,2,l),f++);var m=[f===Object.keys(d).length,e]}catch(G){W(G),m=[!1,void 0]}d=m;d[0]&&(tj(b,Cx,1,d[1]),c++)}var n=a.productType;void 0!==n&&(O(b,2,uP[n]),c++);var p=a.originatingDeviceInterface;void 0!==p&&(O(b,4,HHa[p]),c++);var q=a.alcLoggingParams;if(q){var r=new Zla;n=0;try{var t=q.purchaseOriginEntityType;void 0!==t&&(O(r,1,xJa[t]),n++);
var v=q.purchaseOriginPageType;void 0!==v&&(O(r,2,yJa[v]),n++);var x=q.purchaseOriginComponent;void 0!==x&&(O(r,3,zJa[x]),n++);var B=[n===Object.keys(q).length,r]}catch(G){W(G),B=[!1,void 0]}q=B;q[0]&&(uj(b,Zla,3,AJa,q[1]),c++)}return[c===Object.keys(a).length,b]}catch(G){return W(G),[!1,void 0]}};
eKa=function(a){var b=new Vz,c=0;try{var d=a.dimensions;if(d){var e=new Tz,f=0;try{var h=d.csn;void 0!==h&&(N(e,1,h),f++);var l=d.userExperienceId;void 0!==l&&(Gj(e,2,l),f++);var m=d.studio;if(m){var n=new Qz,p=0;try{var q=m.route;void 0!==q&&(N(n,1,q),p++);var r=m.feature;void 0!==r&&(O(n,2,CJa[r]),p++);var t=m.topEntityType;void 0!==t&&(O(n,3,DJa[t]),p++);var v=m.availability;void 0!==v&&(O(n,4,EJa[v]),p++);var x=m.isChannelDelegation;void 0!==x&&(Fj(n,5,x),p++);var B=m.isArtistDelegation;void 0!==
B&&(Fj(n,6,B),p++);var G=m.environment;void 0!==G&&(O(n,7,FJa[G]),p++);var F=m.networkConnectionStatus;void 0!==F&&(O(n,8,GJa[F]),p++);var I=[p===Object.keys(m).length,n]}catch(rc){W(rc),I=[!1,void 0]}var P=I;P[0]&&(tj(e,Qz,3,P[1]),f++)}var R=d.mweb;if(R){var Z=new Pz,ma=0;try{var ua=R.pageType;void 0!==ua&&(O(Z,1,HJa[ua]),ma++);var oa=R.navType;void 0!==oa&&(O(Z,2,IJa[oa]),ma++);var ia=[ma===Object.keys(R).length,Z]}catch(rc){W(rc),ia=[!1,void 0]}var Aa=ia;Aa[0]&&(tj(e,Pz,4,Aa[1]),f++)}var X=d.mainAppWeb;
if(X){var wa=new Oz,ca=0;try{var Ra=X.pageType;void 0!==Ra&&(O(wa,1,JJa[Ra]),ca++);var y=X.requestType;void 0!==y&&(O(wa,2,KJa[y]),ca++);var V=X.isShellLoad;void 0!==V&&(Fj(wa,3,V),ca++);var ib=[ca===Object.keys(X).length,wa]}catch(rc){W(rc),ib=[!1,void 0]}var fb=ib;fb[0]&&(tj(e,Oz,5,fb[1]),f++)}var Za=d.survivalSli;if(Za){var $a=new Mz,ic=0;try{var Rb=Za.partitionMinute;void 0!==Rb&&(Gj($a,1,Rb),ic++);var bb=Za.survivalStatus;void 0!==bb&&(O($a,2,LJa[bb]),ic++);var ec=Za.survivalSessionType;void 0!==
ec&&(O($a,3,MJa[ec]),ic++);var jb=[ic===Object.keys(Za).length,$a]}catch(rc){W(rc),jb=[!1,void 0]}var A=jb;A[0]&&(tj(e,Mz,6,A[1]),f++)}var D=d.tvhtml5;if(D){var E=new Rz,C=0;try{var K=D.authRefreshTokenFailureType;void 0!==K&&(O(E,1,NJa[K]),C++);var Y=D.networkErrorEndpoint;void 0!==Y&&(O(E,2,OJa[Y]),C++);var ka=D.networkErrorResponseCode;void 0!==ka&&(Gj(E,3,ka),C++);var va=D.sessionSurvivalLengthMin;void 0!==va&&(Gj(E,4,va),C++);var ea=D.accountChangeType;void 0!==ea&&(O(E,5,PJa[ea]),C++);var ha=
D.accountChangeTrigger;void 0!==ha&&(O(E,6,QJa[ha]),C++);var Ea=D.cpn;void 0!==Ea&&(N(E,7,Ea),C++);var Da=D.sessionSurvivalDidUserAgentChange;void 0!==Da&&(Fj(E,8,Da),C++);var nb=D.adShownToPremiumUserCondition;void 0!==nb&&(O(E,9,RJa[nb]),C++);var Vb=D.identityType;void 0!==Vb&&(O(E,10,SJa[Vb]),C++);var Lb=D.identityDelegationType;void 0!==Lb&&(O(E,11,TJa[Lb]),C++);var Ob=D.botguardServerEnvironment;void 0!==Ob&&(O(E,12,UJa[Ob]),C++);var Ab=D.accountEventTrigger;void 0!==Ab&&(O(E,13,VJa[Ab]),C++);
var Kb=D.signInMethodType;void 0!==Kb&&(O(E,14,WJa[Kb]),C++);var Fc=D.accountEventErrorType;void 0!==Fc&&(O(E,15,XJa[Fc]),C++);var yc=D.hadRemoteDeviceConnected;void 0!==yc&&(Fj(E,16,yc),C++);var $c=D.hadVoiceInitiatedPlayback;void 0!==$c&&(Fj(E,17,$c),C++);var Wc=D.restartLengthMin;void 0!==Wc&&(Gj(E,18,Wc),C++);var ad=D.restartReason;void 0!==ad&&(O(E,19,YJa[ad]),C++);var kd=D.numberOfPersonaAccountsDelta;void 0!==kd&&(Gj(E,20,kd),C++);var Zb=D.accountEventCancellationType;void 0!==Zb&&(O(E,21,
ZJa[Zb]),C++);var Kd=D.maxJsMemoryPerAppLifecycleBytes;void 0!==Kd&&(Gj(E,22,Kd),C++);var xd=D.appLifecycleLengthMin;void 0!==xd&&(Gj(E,23,xd),C++);var $b=[C===Object.keys(D).length,E]}catch(rc){W(rc),$b=[!1,void 0]}var bd=$b;bd[0]&&(tj(e,Rz,7,bd[1]),f++)}var cd=d.unpluggedWeb;if(cd){var kb=new Sz,Hb=0;try{var Oe=cd.unpluggedWebEntitlementType;void 0!==Oe&&(O(kb,1,$Ja[Oe]),Hb++);var qf=cd.unpluggedWebPurchaseType;void 0!==qf&&(O(kb,2,aKa[qf]),Hb++);var cf=[Hb===Object.keys(cd).length,kb]}catch(rc){W(rc),
cf=[!1,void 0]}var pe=cf;pe[0]&&(tj(e,Sz,8,pe[1]),f++)}var Ce=d.logEventStatus;void 0!==Ce&&(Gj(e,9,Ce),f++);var qe=d.kids;if(qe){var $g=new Nz,tg=0;try{var ah=qe.userType;void 0!==ah&&(O($g,1,bKa[ah]),tg++);var bh=[tg===Object.keys(qe).length,$g]}catch(rc){W(rc),bh=[!1,void 0]}var ch=bh;ch[0]&&(tj(e,Nz,10,ch[1]),f++)}var dh=d.screen;void 0!==dh&&(Gj(e,11,dh),f++);var De=d.navigation;if(De){var Ee=new Lz,dd=0;try{var Sd=De.destinationScreen;void 0!==Sd&&(Gj(Ee,1,Sd),dd++);var Ed=De.navType;void 0!==
Ed&&(O(Ee,2,cKa[Ed]),dd++);var eh=[dd===Object.keys(De).length,Ee]}catch(rc){W(rc),eh=[!1,void 0]}var fh=eh;fh[0]&&(tj(e,Lz,12,fh[1]),f++)}var gh=[f===Object.keys(d).length,e]}catch(rc){W(rc),gh=[!1,void 0]}var df=gh;df[0]&&(tj(b,Tz,1,df[1]),c++)}var ed=a.records;ed&&(fP(b.j.bind(b),ed,dKa),c++);return[c===Object.keys(a).length,b]}catch(rc){return W(rc),[!1,void 0]}};
dKa=function(a){var b=new Uz,c=0;try{var d=a.name;void 0!==d&&(O(b,1,fKa[d]),c++);var e=a.status;void 0!==e&&(O(b,2,gKa[e]),c++);var f=a.state;void 0!==f&&(b.Gc(hKa[f]),c++);var h=a.sliId;void 0!==h&&(N(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return W(l),[!1,void 0]}};
vP=function(){this.C=new Set;this.B=new Set;this.D=new Map;this.client=void 0;this.csn=null};
wP=function(){vP.instance||(vP.instance=new vP);return vP.instance};
xP=function(){};
yP=function(){this.S=[];this.ma=[];this.j=[];this.va=[];this.G=[];this.ea=[];this.C=new Map;this.K=new Map;this.B=new Set;this.Ca=new Map};
zP=function(){yP.instance||(yP.instance=new yP);return yP.instance};
AP=function(a,b,c,d){d=void 0===d?{}:d;g.WB(function(){iKa.includes(b)||(g.UF(new g.nD("createClientScreen() called with a non-page VE",b)),b=83769);d.isHistoryNavigation||(a.va=[],a.j.push({rootVe:b,key:d.key||""}));a.S=[];a.ma=[];d.hV?jKa(a,b,c,d):kKa(a,b,c,d)})()};
lKa=function(a,b,c){c=void 0===c?0:c;g.WB(function(){b.then(function(d){a.B.has(c)&&a.D&&a.D();var e=g.QF(c),f=g.PF(c);if(e&&f){var h;(null==d?0:null==(h=d.response)?0:h.trackingParams)&&g.$F(a.client,e,f,g.OF(d.response.trackingParams));var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.$F(a.client,e,f,g.OF(d.playerResponse.trackingParams))}})})()};
CP=function(a){var b=zP();g.WB(function(){var c=g.OF(a);BP(b,c);return c})()};
BP=function(a,b,c,d){d=void 0===d?0:d;g.WB(function(){if(a.B.has(d))return a.S.push([b,c]),!0;var e=g.QF(d),f=c||g.PF(d);if(e&&f){if(g.SB("combine_ve_grafts")){var h=a.C.get(f.toString());h?h.push(b):(a.K.set(f.toString(),f),a.C.set(f.toString(),[b]));a.qa||(a.qa=g.sD(0,function(){mKa(a,e)},1200))}else g.$F(a.client,e,f,b);
return!0}return!1})()};
nKa=function(a,b,c,d){d=void 0===d?0:d;var e=g.QF(d);d=b||g.PF(d);e&&d&&(a=a.client,b=YF({cttAuthInfo:RF(e)||void 0},e),g.SB("il_via_jspb")?(c=new wB,c.j(e),d=d.getAsJspb(),tj(c,fA,2,d),"UNDEFINED_CSN"===e?bG("visualElementStateChanged",b,void 0,c):Ysa(c,b,a)):(c={csn:e,ve:d.getAsJson(),clientData:c},"UNDEFINED_CSN"===e?bG("visualElementStateChanged",b,c):a?IF("visualElementStateChanged",c,a,b):g.zD("visualElementStateChanged",c,b)))};
jKa=function(a,b,c,d){d=void 0===d?{}:d;a.B.add(d.layer||0);a.D=function(){kKa(a,b,c,d);var h=g.PF(d.layer);if(h){for(var l=g.u(a.S),m=l.next();!m.done;m=l.next())m=m.value,BP(a,m[0],m[1]||h,d.layer);h=g.u(a.ma);for(l=h.next();!l.done;l=h.next())l=l.value,nKa(a,l[0],l[1])}};
c||g.QF(d.layer)||a.D();if(d.hV)for(var e=g.u(d.hV),f=e.next();!f.done;f=e.next())lKa(a,f.value,d.layer);else g.TF(Error("Delayed screen needs a data promise."))};
kKa=function(a,b,c,d){d=void 0===d?{}:d;var e=void 0;d.layer||(d.layer=0);e=void 0!==d.parentLayer?d.parentLayer:d.layer;var f=g.QF(e);e=g.PF(e);var h=c||e,l;h&&(void 0!==d.parentCsn?l={clientScreenNonce:d.parentCsn,visualElement:h}:f&&"UNDEFINED_CSN"!==f&&(l={clientScreenNonce:f,visualElement:h}));var m,n=g.Iv("EVENT_ID");"UNDEFINED_CSN"===f&&n&&(m={servletData:{serializedServletEventId:n}});g.SB("combine_ve_grafts")&&f&&mKa(a,f);g.SB("no_client_ve_attach_unless_shown")&&h&&f&&Wta(h,f);try{var p=
Uta(a.client,b,l,d.dV,d.cttAuthInfo,m,d.implicitGestureType,d.loggingExpectations)}catch(t){Lta(t,{fF:b,rootVe:e,Mfb:c,Wdb:f,Kfb:l,dV:d.dV});g.TF(t);return}nta(p,b,d.layer,d.cttAuthInfo);f&&"UNDEFINED_CSN"!==f&&e&&!kta(f)&&Zta(a.client,f,e,!0);a.j[a.j.length-1]&&!a.j[a.j.length-1].csn&&(a.j[a.j.length-1].csn=p||"");g.hI({clientScreenNonce:p});xP.instance||(xP.instance=new xP);g.WB(wP().j).bind(wP())();var q=g.PF(d.layer);f&&"UNDEFINED_CSN"!==f&&q&&(g.SB("web_mark_root_visible")||g.SB("music_web_mark_root_visible"))&&
g.dG(p,q);a.B.delete(d.layer||0);a.D=void 0;var r;null==(r=a.Ca.get(d.layer))||r.forEach(function(t,v){t?BP(a,v,t,d.layer):q&&BP(a,v,q,d.layer)});
oKa(a)};
oKa=function(a){for(var b=0;b<a.G.length;b++){var c=a.G[b];try{c()}catch(d){g.TF(d)}}for(b=a.G.length=0;b<a.ea.length;b++){c=a.ea[b];try{c()}catch(d){g.TF(d)}}};
mKa=function(a,b){if(void 0===b)for(var c=ita(),d=0;d<c.length;d++)void 0!==c[d]&&mKa(a,c[d]);else a.C.forEach(function(e,f){(f=a.K.get(f))&&g.Vta(a.client,b,f,e)}),a.C.clear(),a.K.clear(),a.qa=void 0};
DP=function(){};
pKa=function(){var a=navigator;return new Promise(function(b,c){var d;null!=(d=a.webkitTemporaryStorage)&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
Poa=function(a,b){var c=this;this.handleError=a;this.j=b;this.B=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.B=!0});
this.C=Math.random()<=g.TB("ytidb_transaction_ended_event_rate_limit_session",.2)};
rKa=function(a,b){DP.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:qKa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:qKa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
qKa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
tKa=function(){g.kD();return g.lD(0,192)?g.lD(0,190):!(g.SB("web_watch_cinematics_disabled_by_default")||g.SB("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&sKa())};
vKa=function(a){return!uKa||(0,g.OD)()-uKa>a};
xKa=function(a,b){wKa(a.program,b.g$)&&(kI("bg_i",void 0,"player_att"),g.yI.initialize(a,function(){kI("bg_l",void 0,"player_att");uKa=(0,g.OD)()},b.cspNonce))};
yKa=function(a){a=void 0===a?{}:a;return g.yI.invoke(a)};
zKa=function(a){var b=g.TB("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return Cxa(a,b)};
wKa=function(a,b){return a?g.yI.isLoading()?!1:vKa(b):!1};
AKa=function(a){a=a.split("");EP.Yy(a,67);EP.PL(a,62);EP.A7(a,1);EP.Yy(a,47);EP.A7(a,3);return a.join("")};
g.BKa=function(a,b){return a.Ja+"timedtext_video?ref=player&v="+b.videoId};
g.FP=function(a,b){a.feature=b;return a};
g.CKa=function(a){var b=this;this.videoData=a;a={};this.B=(a.c1a=function(){var c=[];if(g.yI.isInitialized()){var d="";b.videoData&&b.videoData.Fk&&(d=b.videoData.Fk+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);kI("bg_v",void 0,"player_att");d=yKa(d);kI("bg_s",void 0,"player_att");d?c.push("r1a="+d):c.push("r1c=2")}else kI("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.yI.getState());return c.join("&")},a.c6a=
function(c){return"r6a="+(Number(c.c)^Gxa())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.Iv("CATSTAT",0)))},a);
this.videoData&&this.videoData.Fk?this.j=$B(this.videoData.Fk):this.j={}};
g.DKa=function(a){if(a.videoData&&a.videoData.Fk){for(var b=[a.videoData.Fk],c=g.u(Object.keys(a.B)),d=c.next();!d.done;d=c.next())d=d.value,a.j[d]&&a.B[d]&&(d=a.B[d](a.j))&&b.push(d);return b.join("&")}return null};
FKa=function(a){var b={};Object.assign(b,a.B);g.SB("player_attestation_bg_async")&&(b.c1a=function(){return EKa(a)});
if(a.videoData&&a.videoData.Fk){for(var c=[a.videoData.Fk],d=g.u(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.j[e]&&b[e]&&(e=b[e](a.j))&&c.push(e);return new Promise(function(f,h){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},h)})}return Promise.resolve(null)};
g.GKa=function(a,b){xKa(a,{g$:g.JJ(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
EKa=function(a){function b(e){return e+"&r1d="+g.yI.getState()}
if(!g.yI.isInitialized())return kI("bg_e",void 0,"player_att"),window.trayride||window.botguard?Promise.resolve(b("r1c=1")):Promise.resolve(b("r1c=4"));var c="";a.videoData&&a.videoData.Fk&&(c=a.videoData.Fk+("&r1b="+a.videoData.clientPlaybackNonce));a={};var d=(a.atr_challenge=c,a);return new Promise(function(e){kI("bg_v",void 0,"player_att");zKa(d).then(function(f){f?(kI("bg_s",void 0,"player_att"),e(b("r1a="+f))):(kI("bg_e",void 0,"player_att"),e(b("r1c=2")))},function(){kI("bg_e",void 0,"player_att");
e(b("r1c=3"))})})};
HKa=function(a){g.fD("yt-player-bandwidth",a,2592E3)};
GP=function(a){a=void 0===a?2592E3:a;if(0<a&&!(woa()>(0,g.OD)()-1E3*a))return 0;a=g.gD("yt-player-quality");if("string"===typeof a){if(a=g.aL[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
IKa=function(){var a=g.gD("yt-player-quality");if(a instanceof Object&&a.quality&&a.previousQuality){if(a.quality>a.previousQuality)return 1;if(a.quality<a.previousQuality)return-1}return 0};
JKa=function(){var a={values:{},Hq:{}};try{var b=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);a.values=b.values;a.halfLives=b.halfLives}catch(c){}return a};
KKa=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
IP=function(a,b){return+HP()[KKa(a,b)]||8192};
HP=function(){return g.gD("yt-player-performance-cap")||{}};
LKa=function(a){g.fD("yt-player-watch-later-pending",a)};
MKa=function(){return!!g.gD("yt-player-headers-readable")};
NKa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.OKa=function(){var a=g.gD("yt-player-caption-language-preferences");return a?a:[]};
PKa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
JP=function(a){var b=g.S(a,QKa)||a.signatureCipher;a={uW:!1,Hy:"",dB:"",s:""};if(!b)return a;b=$B(b);a.uW=!0;a.Hy=b.url;a.dB=b.sp;a.s=b.s;return a};
g.KP=function(a,b){this.id=a;this.Rc=b;this.captionTracks=[];this.C=this.D=null;this.xtags="";this.G=!1;this.j=null;this.B="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";a=this.Rc.id.split(".");1<a.length&&(this.G="2"===a[1])};
LP=function(a,b,c,d){this.C=c;this.reason=d;this.B=a||0;this.j=b||0};
g.MP=function(a,b,c,d){return new LP(g.aL[a]||0,g.aL[b]||0,c,d)};
NP=function(a){var b=g.aL.auto;return a.B===b&&a.j===b};
PP=function(a){return OP[a.j||a.B]||"auto"};
RKa=function(a,b){b=g.aL[b];return a.B<=b&&(!a.j||a.j>=b)};
QP=function(a,b,c){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;null==c||c({ainfolen:this.j.length});b=g.u(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.Rc||a.has(d.Rc.id)){var e=void 0,f=void 0,h=void 0;null==(h=c)||h({atkerr:!!d.Rc,itag:d.itag,xtag:d.j,lang:(null==(e=d.Rc)?void 0:e.name)||"",langid:(null==(f=d.Rc)?void 0:f.id)||""})}else e=new g.KP(d.id,d.Rc),a.add(d.Rc.id),this.audioTracks.push(e);null==c||c({atklen:this.audioTracks.length})}};
SKa=function(){g.J.apply(this,arguments);this.j=null};
WKa=function(a,b,c,d,e,f){if(a.j)return a.j;var h={},l=new Set,m={};if(RP(d)){for(var n in d.j)d.j.hasOwnProperty(n)&&(a=d.j[n],m[a.info.Db]=[a.info]);return m}n=TKa(b,d,h);f&&e({aftsrt:SP(n)});for(var p={},q=g.u(Object.keys(n)),r=q.next();!r.done;r=q.next()){r=r.value;for(var t=g.u(n[r]),v=t.next();!v.done;v=t.next()){v=v.value;var x=v.itag,B=void 0,G=r+"_"+((null==(B=v.video)?void 0:B.fps)||0);p.hasOwnProperty(G)?!0===p[G]?m[r].push(v):h[x]=p[G]:(B=TP(b,v,c,d.isLive,l),!0!==B?(h[x]=B,"disablevp9hfr"===
B&&(p[G]="disablevp9hfr")):(m[r]=m[r]||[],m[r].push(v),p[G]=!0))}}f&&e({bfflt:SP(m)});for(var F in m)m.hasOwnProperty(F)&&(d=F,m[d]&&m[d][0].kh()&&(m[d]=m[d],m[d]=UKa(b,m[d],h),m[d]=VKa(m[d],h)));f&&e(h);b=g.u(l.values());for(d=b.next();!d.done;d=b.next())(d=c.B.get(d.value))&&--d.jZ;f&&e({aftflt:SP(m)});a.j=g.Uc(m,function(I){return!!I.length});
return a.j};
YKa=function(a,b,c,d,e,f,h,l){l=void 0===l?!1:l;if(b.Ad&&h&&1<h.length&&!(0<b.hj||b.ma)){for(var m=b.B||!!e,n=m&&b.Mb?f:void 0,p=TKa(b,d),q=[],r=[],t={},v=0;v<h.length;v++){var x=h[v],B=d.K.get(x);if(B&&B.info){var G=B.info;B=G.Db;if(TP(b,G,c,d.isLive)){x=G.kh()?q:r;G=g.u(p[B]);for(var F=G.next();!F.done;F=G.next()){F=F.value;var I=void 0,P=B+"_"+((null==(I=F.video)?void 0:I.fps)||0);t.hasOwnProperty(P)?!0===t[P]&&x.push(F):TP(b,F,c,d.isLive)&&(x.push(F),t[P]=!0)}}else m&&f({opfu:x})}}if(q.length&&
r.length)return m&&f({opfm:q[0].itag+","+r[0].itag}),uC(new QP(q,r,n))}return XKa(a,b,c,d,e,f,l)};
XKa=function(a,b,c,d,e,f,h){function l(v){return!!p[v]}
var m=b.B||!!e,n=m&&b.Mb?f:void 0,p=WKa(a,b,c,d,f,m);UP(d)&&(p=ZKa(c,p,e,m,f,b),m&&f({enflt:SP(p)}));b.rb=$Ka(p);if(RP(d))return f=g.Bb(Object.values(p),function(v){return!!v.length&&!!v[0].audio}),m=g.Bb(Object.values(p),function(v){return!!v.length&&!!v[0].video}),f&&m||tC(),uC(new QP(m,f,n));
a=aLa(b);m&&f({audioPrefOrder:a.join("_")});a=g.Bb(a,l);if(!a)return m&&f({noaudio:1}),tC();a=p[a];p["9"]&&p.h&&d.Fc&&!b.Ya&&(m&&f({dltvp9:1}),delete p["9"]);if(h){c.D=new Map;for(var q in p)if(p.hasOwnProperty(q)&&(h=q,!("f"===h||0===b.Sf&&bLa.has(h)))){e=g.u(p[h]);for(var r=e.next();!r.done;r=e.next())r=r.value,cLa(c,h,r)||dLa(c,h,r)}}h=p["1h"]?"1h":"1";c=p["9h"]?"9h":"9";r=p[h];var t=p[c];r&&r.length&&(b.j.highestAv1Resolution=r[r.length-1].video.j);t&&t.length&&(b.j.highestVp9Resolution=t[t.length-
1].video.j);q=[];e=[];if(b.ma&&!b.Un)for(e=eLa(d)?p["1h"]||p["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],m&&f({newhybpref:e.join(".")}),r=g.u(e),t=r.next();!t.done;t=r.next())q=q.concat(p[t.value]).filter(function(v){return v});
else 0<b.hj&&t&&r&&(e=[h,c],q=r.concat(t).filter(function(v){return v}));
if(q.length&&!b.Un){VP(q,e);if(m){m=[];b=g.u(q);for(d=b.next();!d.done;d=b.next())m.push(d.value.itag);f({hbdfmt:m.join(".")})}return uC(new QP(q,a,n))}q=fLa(b);q=g.Bb(q,l);if(!q){if(p[h])return f=p[h],VP(f),uC(new QP(f,a,n));m&&f({novideo:1});return tC()}b.Jc&&("1"===q||"1h"===q)&&p[c]&&(h=WP(p[q]),e=WP(p[c]),e>h?q=c:b.Td&&e===h&&gLa(p[c])&&(q=c));"9"===q&&p.h&&WP(p.h)>WP(p["9"])&&(q="h");b.Cb&&d.isLive&&"("===q&&p.H&&1440>WP(p["("])&&(q="H");m&&f({vfmly:hLa(q)});b=p[q];if(!b.length)return m&&f({novfmly:hLa(q)}),
tC();VP(b);return uC(new QP(b,a,n))};
$Ka=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3);return!(!a.m&&!a.M)||b||c};
gLa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&iLa.has(b.itag))return!0;return!1};
hLa=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
SP=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(hLa(d));d=g.u(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
ZKa=function(a,b,c,d,e,f){var h={},l={};g.Tc(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.xe)return l[q]="noenc",!1;if(f.Ub&&"(h"===p.Db&&f.xb)return l[q]="lichdr",!1;if("("===p.Db||"(h"===p.Db){if(a.C&&c&&"widevine"===c.flavor){var r=p.mimeType+"; experimental=allowed";(r=!!p.xe[c.flavor]&&!!c.j[r])||(l[q]=p.xe[c.flavor]?"unspt":"noflv");return r}if(!XP(a,YP.CRYPTOBLOCKFORMAT)&&!a.Ca||a.qa)return l[q]=a.qa?"disvp":"vpsub",!1}return c&&p.xe[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.xe[c.flavor]?
"unspt":"noflv":"nosys",!1)});
m.length&&(h[n]=m)});
d&&Object.entries(l).length&&e(l);return h};
VKa=function(a,b){var c=$p(a,function(d,e){return 32<e.video.fps?Math.min(d,e.video.width):d},Infinity);
Infinity>c&&(a=a.filter(function(d){if(32<d.video.fps||d.video.width<c)return!0;b[d.itag]="hfrfirst";return!1}));
Gna()&&(a=a.filter(function(d){if("299"!==d.itag)return!0;b[d.itag]="ps3hfr1080";return!1}));
return a};
UKa=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.vc)return!0;c[d.itag]="maxquality";return!1})};
TKa=function(a,b,c){var d={},e;for(e in b.j)if(b.j.hasOwnProperty(e)){var f=b.j[e].info;if(a.S&&f.video&&f.video.j<a.S)c&&(c[f.itag]="min"+a.S);else{var h=f.Db;d[h]=d[h]||[];d[h].push(f)}}a=g.u(Object.keys(d));for(b=a.next();!b.done;b=a.next())VP(d[b.value]);return d};
WP=function(a){return $p(a,function(b,c){return Math.max(b,c.video.j)},0)};
TP=function(a,b,c,d,e){e=void 0===e?new Set:e;if(""===b.Db)return"unkn";if(("304"===b.itag||"266"===b.itag)&&a.Ca)return"blk2khfr";if(a.K&&b.video&&b.video.j>a.K)return"max"+a.K;if(a.kb&&"h"===b.Db&&b.video&&1080<b.video.j)return"blkhigh264";if("(h"===b.Db&&!c.K)return"enchdr";if((void 0===d?0:d)&&iL(b)&&!a.Va)return"blk51live";if(hL(b)&&!a.Pa)return"blk51ugc";if(("MAC3"===b.Db||"mac3"===b.Db)&&!a.D)return"blkac3";if(("MEAC3"===b.Db||"meac3"===b.Db)&&!a.G)return"blkeac3";if(("M"===b.Db||"m"===b.Db)&&
!a.qa)return"blkaac51";if(("so"===b.Db||"sa"===b.Db)&&!a.va)return"blkamb";if(!a.Ub&&b.xe&&b.xe.fairplay&&("("===b.Db||"(h"===b.Db||"A"===b.Db||"MEAC3"===b.Db))return"cbc";if(a.Yc&&"1h"===b.Db)return"av1hdr";if((d=c.B.get(b.Db))&&0<d.jZ)return e.add(b.Db),"byerr";var f;if(null==(f=b.video)?0:32<f.fps){if(!c.va&&!XP(c,YP.FRAMERATE))return"capHfr";if(a.fb&&4320<=b.video.j)return"blk8khfr";if(fL(b)&&a.qd&&b.xe&&1440<=b.video.j)return"disablevp9hfr"}if(a.Zb&&b.Zb>a.Zb)return"ratecap";a=jLa(c,b);return!0!==
a?a:!0};
VP=function(a,b){b=void 0===b?[]:b;g.Ub(a,function(c,d){var e=d.Zb-c.Zb;if(!c.kh()||!d.kh())return e;var f=d.video.height*d.video.width-c.video.height*c.video.width;!f&&b&&0<b.length&&(c=b.indexOf(c.Db)+1,d=b.indexOf(d.Db)+1,f=0===c||0===d?d||-1:c-d);f||(f=e);return f})};
g.ZP=function(a,b){this.B=a;this.D=void 0===b?!1:b;this.C=this.path=this.scheme="";this.j={};this.url=""};
aQ=function(a){$P(a);return a.C};
bQ=function(a){return a.B?cc(a.B,"local"):"local"===a.scheme};
kLa=function(a){$P(a);return g.Xc(a.j,function(b){return null!==b})};
lLa=function(a){$P(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
cQ=function(a,b){b=void 0===b?!1:b;$P(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=a.jf();c=new g.go(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&1<f.length&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.io(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.ZP(c.toString()),c.set("fallback_count","1"),c;if(b)return c=a.clone(),c.set("fallback_count","1"),c;e=c.j.match("\\.a1\\.googlevideo\\.com$");c.j.match("\\.googlevideo\\.com$")?
(g.io(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.io(c,"www.youtube.com"),d=c.toString()):(c=kza(d),kK(c)&&(d=c));c=new g.ZP(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
$P=function(a){if(a.B){if(!kK(a.B)&&!a.B.startsWith("local"))throw new g.nD("Untrusted URL",a.B);var b=g.po(a.B);a.scheme=b.G;a.C=b.j+(null!=b.D?":"+b.D:"");var c=b.C;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=mLa(c);Object.assign(a.j,
nLa(b.B.toString()));Object.assign(a.j,d);"index.m3u8"===a.j.file&&(delete a.j.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(b=a.get("n"))&&(b=oLa[0](b),a.set("n",b),oLa.length||Ula(""))}};
pLa=function(a){$P(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(kLa(a)){var c=[];g.Tc(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
mLa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&qLa(c,a[b],a[b+1]);return c};
nLa=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?qLa(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
qLa=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};
dQ=function(a,b,c,d,e,f,h,l,m){this.Qa=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.fh=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.fh=m||null};
g.eQ=function(){this.segments=[];this.j=null;this.B=!0};
rLa=function(a,b){if(b>a.Fd())a.segments=[];else{var c=zb(a.segments,function(d){return d.Qa>=b},a);
0<c&&a.segments.splice(0,c)}};
sLa=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.B=e)?0:8;this.dataOffset=this.offset+this.j};
fQ=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
gQ=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
hQ=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
iQ=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
jQ=function(a){var b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b};
tLa=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;b=new Uint8Array(a.data.buffer,a.offset+a.j+a.data.byteOffset,c-a.j);a.j=Math.min(c+1,a.size);return DO(b)};
uLa=function(a){return new Uint8Array(a.data.buffer,a.offset+a.data.byteOffset,a.size)};
vLa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
kQ=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};
lQ=function(a,b,c,d,e,f){this.startSecs=a;this.di=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
nQ=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.j=mQ(this,"Sequence-Number");this.K=mQ(this,"Segment-Count");this.S=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=mQ(this,"Ingestion-Walltime-Us")/1E6;this.B=(mQ(this,"First-Frame-Time-Us")+mQ(this,"First-Frame-Uncertainty-Us"))/1E6;this.Ej=mQ(this,"Target-Duration-Us")/1E6;this.D="T"===this.data["Stream-Finished"];this.G="T"===this.data.Streamable;this.cryptoPeriodIndex=mQ(this,"Crypto-Period-Index");
this.C=mQ(this,"Crypto-Period-Seconds")};
xLa=function(a){return a.data["Cuepoint-Type"]?new lQ(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",wLa[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):null};
yLa=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
mQ=function(a,b){return Number(a.data[b])||0};
zLa=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.ALa=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
g.BLa=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
CLa=function(a,b){this.j=a;this.duration=b};
DLa=function(a,b,c,d,e){this.B=e;this.j=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
oQ=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};
ELa=function(a,b){var c=g.pQ(a,0,1952868452);a=g.pQ(a,0,1953658222);if(c&&a){c.skip(1);var d=fQ(c)<<16|gQ(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=iQ(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=fQ(a)<<16|gQ(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=iQ(a);d&&a.skip(4);e&&a.skip(4);d=(f?4:0)+(h?4:0)+(l?4:0);for(e=0;e<c;e++)f=a.j,h=iQ(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
rQ=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.pQ(a,0,1836476516))?g.qQ(a):NaN};
FLa=function(a){var b=g.pQ(a,0,1937011556);if(!b)return null;b=sQ(a,b.dataOffset+8,1635148593)||sQ(a,b.dataOffset+8,1635135537);if(!b)return null;var c=sQ(a,b.dataOffset+78,1936995172),d=sQ(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),fQ(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=sQ(a,d.dataOffset,1886547818)){var h=sQ(a,d.dataOffset,1886546020),l=sQ(a,d.dataOffset,2037673328);if(!l&&(l=sQ(a,d.dataOffset,1836279920),
!l))return null;h&&(h.skip(4),c=hQ(h)/65536,f=hQ(h)/65536,e=hQ(h)/65536);a=uLa(l);a=new DataView(a.buffer,a.byteOffset+8,a.byteLength-8);return new DLa(b,c,f,e,a)}return null};
sQ=function(a,b,c){for(;tQ(a,b);){var d=uQ(a,b);if(d.type===c)return d;b+=d.size}return null};
g.pQ=function(a,b,c){for(;tQ(a,b);){var d=uQ(a,b);if(d.type===c)return d;b=vQ(d.type)?b+8:b+d.size}return null};
g.GLa=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=4294967296*b.getUint32(a)+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b};
uQ=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new sLa(a,b,c,d)};
g.qQ=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
HLa=function(a){a=new sLa(a.data,a.offset,a.size,a.type,a.B);var b=fQ(a);a.skip(7);var c=iQ(a);if(0===b){b=iQ(a);var d=iQ(a)}else b=jQ(a),d=jQ(a);a.skip(2);for(var e=gQ(a),f=[],h=[],l=0;l<e;l++){var m=iQ(a);f.push(m);h.push(iQ(a));a.skip(4)}return{gx:c,w4:b,Q4:d,e$:f,uR:h}};
tQ=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(48>d||122<d)return!1}return!0};
vQ=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
ILa=function(a){a.skip(4);return{z$:tLa(a,0),value:tLa(a,0),gx:iQ(a),Pfb:iQ(a),feb:iQ(a),id:iQ(a),BX:tLa(a),offset:a.offset}};
g.JLa=function(a){var b=sQ(a,0,1701671783);if(!b)return null;var c=ILa(b),d=c.z$;c=oQ(c.BX);if(a=sQ(a,b.offset+b.size,1701671783))if(a=ILa(a),a=oQ(a.BX),c&&a){b=g.u(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new nQ(c,d):null};
KLa=function(a,b){for(var c=sQ(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=sQ(a,c.offset+c.size,b)}};
g.wQ=function(a,b){for(var c=0,d=[];tQ(a,c);){var e=uQ(a,c);e.type===b&&d.push(e);c=vQ(e.type)?c+8:c+e.size}return d};
LLa=function(a,b){var c=g.pQ(a,0,1937011556),d=g.pQ(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.pQ(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(1701733217!==d&&1701733238!==d)return null;d=new vLa(a.byteLength+b);kQ(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;kQ(d,a,c.offset+16,c.size-16);kQ(d,e,e.byteOffset+f.dataOffset+8,b);kQ(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.u([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.pQ(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.pQ(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
MLa=function(a){var b=g.pQ(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(1701733217!==c&&1701733238!==c)return null;b=sQ(a,b.offset+24+(1701733217===c?28:78),1936289382);if(!b)return null;c=sQ(a,b.offset+8,1935894637);if(!c||1667392371!==a.getUint32(c.offset+12))return null;b=sQ(a,b.offset+8,1935894633);if(!b)return null;b=sQ(a,b.offset+8,1952804451);if(!b)return null;c=new Uint8Array(16);for(var d=0;16>d;d++)c[d]=a.getInt8(b.offset+16+d);return c};
xQ=function(a,b){this.j=a;this.pos=0;this.start=b||0};
yQ=function(a){return a.pos>=a.j.byteLength};
DQ=function(a,b,c){var d=new xQ(c);if(!zQ(d,a))return!1;d=AQ(d);if(!BQ(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=CQ(d,!0);d=a+(d.start+d.pos-b)+e;d=9<d?NLa(d-9,8):NLa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
PLa=function(a){var b=new xQ(a);b.Fn();if(zQ(b,[408125543,374648427,174,224]))b=AQ(b);else return null;for(var c=a=null;!yQ(b);){var d=CQ(b,!1);if(21432===d)switch(EQ(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=AQ(b):FQ(b)}if(!c)return null;for(var e,f=d=b=null;!yQ(c);)switch(CQ(c,!1)){case 30321:if(3!==EQ(c))return null;break;case 30324:b=GQ(c);break;case 30323:f=GQ(c);break;case 30325:d=GQ(c);break;case 30322:e=CQ(c,!0);e=OLa(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:FQ(c)}return e?new DLa(a,b,f,d,e):null};
AQ=function(a){var b=CQ(a,!0),c=a.j.byteOffset+a.pos;c=new DataView(a.j.buffer,c,Math.min(b,a.j.buffer.byteLength-c));c=new xQ(c,a.start+a.pos);a.pos+=b;return c};
EQ=function(a){for(var b=CQ(a,!0),c=HQ(a),d=1;d<b;d++)c=256*c+HQ(a);return c};
GQ=function(a){var b=CQ(a,!0),c=0;4===b?c=a.j.getFloat32(a.pos):8===b&&(c=a.j.getFloat64(a.pos));a.pos+=b;return c};
QLa=function(a){var b=CQ(a,!0);return DO(OLa(a,b))};
HQ=function(a){return a.j.getUint8(a.pos++)};
CQ=function(a,b){var c=HQ(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+HQ(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+HQ(a),d*=128;return b?c-d:c};
FQ=function(a){var b=CQ(a,!0);a.pos+=b};
RLa=function(a){if(!BQ(a,440786851,!0))return null;var b=a.pos;CQ(a,!1);var c=CQ(a,!0)+a.pos-b;a.pos=b+c;if(!BQ(a,408125543,!1))return null;CQ(a,!0);if(!BQ(a,357149030,!0))return null;var d=a.pos;CQ(a,!1);var e=CQ(a,!0)+a.pos-d;a.pos=d+e;if(!BQ(a,374648427,!0))return null;var f=a.pos;CQ(a,!1);var h=CQ(a,!0)+a.pos-f,l=new Uint8Array(c+12+e+h),m=new DataView(l.buffer);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+b,c));m.setUint32(c,408125543);m.setUint32(c+4,33554431);m.setUint32(c+8,4294967295);
l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+d,e),c+12);l.set(new Uint8Array(a.j.buffer,a.j.byteOffset+f,h),c+12+e);return l};
IQ=function(a){var b=a.pos;a.pos=0;var c=1E6;zQ(a,[408125543,357149030,2807729])&&(c=EQ(a));a.pos=b;return c};
SLa=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!JQ(a)||!BQ(a,160))return a.pos=c,NaN;CQ(a,!0);var d=a.pos;if(!BQ(a,161))return a.pos=c,NaN;CQ(a,!0);HQ(a);var e=HQ(a)<<8|HQ(a);a.pos=d;if(!BQ(a,155))return a.pos=c,NaN;d=EQ(a);a.pos=c;return(e+d)*b/1E9};
JQ=function(a){if(!TLa(a)||!BQ(a,524531317))return!1;CQ(a,!0);return!0};
TLa=function(a){if(a.Fn()){if(!BQ(a,408125543))return!1;CQ(a,!0)}return!0};
zQ=function(a,b){for(var c=0;c<b.length;c++){if(!BQ(a,b[c]))return!1;c!==b.length-1&&CQ(a,!0)}return!0};
BQ=function(a,b,c){c=void 0===c?!1:c;if(yQ(a))return!1;for(var d=a.pos;CQ(a,!1)!==b;)if(FQ(a),d=a.pos,yQ(a))return!1;c&&(a.pos=d);return!0};
NLa=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};
OLa=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
KQ=function(a){this.base=a;this.j={};this.url=""};
ULa=function(a,b){var c=b.indexOf("?");if(0<c){var d=nLa(b.substr(c+1));g.Tc(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=mLa(b);g.Tc(b,function(e,f){this.set(f,e)},a)};
VLa=function(a){var b=a.base.jf(),c=[];g.Tc(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=kLa(a.base)?"&":"?";return b+a+d};
WLa=function(a,b){var c=new g.ZP(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Tc(a.j,function(d,e){c.set(e,null)});
return c};
LQ=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
MQ=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new LQ(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
NQ=function(a,b){return new LQ(a,a+b-1)};
XLa=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
OQ=function(a){if(!a)return new LQ(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new LQ(b,a),0<b.length))return b};
PQ=function(a,b,c,d,e,f,h,l,m,n,p,q){d=void 0===d?"":d;this.type=a;this.j=b;this.range=c;this.source=d;this.Cj=p;this.clipId=void 0===q?"":q;this.S=[];this.G="";this.Qa=-1;this.G=d;this.Qa=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.dc=l||0;this.B=0<=m?m:this.range?this.range.length:NaN;this.qf=this.range?this.dc+this.B===this.range.length:void 0===n?!!this.B:n;this.range?(this.D=this.startTime+this.duration*this.dc/this.range.length,this.K=this.duration*this.B/this.range.length,this.C=
this.D+this.K):YLa(this)};
YLa=function(a){a.D=a.startTime;a.K=a.duration;a.C=a.D+a.K};
QQ=function(a){return a.qf&&a.j.index.sO(a.Qa)};
ZLa=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Qa!==a.Qa);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.dc+b.B===a.dc+a.B:d};
RQ=function(a){return 1===a.type||2===a.type};
SQ=function(a){return 3===a.type||7===a.type};
TQ=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.dc+a.B===b.range.start+b.dc:a.Qa===b.Qa?a.dc+a.B===b.dc:a.Qa+1===b.Qa&&0===b.dc&&a.qf:!1};
$La=function(a,b){return TQ(a,b)||1E-6>=Math.abs(a.C-b.D)||a.Qa+1===b.Qa&&0===b.dc&&a.qf?!0:!1};
aMa=function(a){return a.Qa+(a.qf?1:0)};
bMa=function(a){1===a.length||g.Zp(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new LQ(a[0].range.start+a[0].dc,b.range.start+b.dc+b.B-1)};
cMa=function(a){for(var b=1;b<a.length;b++)if(!TQ(a[b-1],a[b]))return!1;return!0};
dMa=function(a){var b=0;a=g.u(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;return b};
UQ=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.src=""+a.source;b.segsrc=a.G;b.seg=String(a.Qa);a.range&&(b.range=a.range.start+a.dc+"-"+(a.range.start+a.dc+a.B-1));b.time=a.D.toFixed(1)+"-"+(a.D+a.K).toFixed(1);b.off=String(a.dc);b.len=String(a.B);a.qf&&(b.end="1");QQ(a)&&(b.eos="1");a.clipId&&(b.cid=a.clipId);return b};
eMa=function(a){return new PQ(a.type,a.j,a.range,"getEmptyStubBefore"+a.G,a.Qa,a.startTime,0,a.dc,0)};
fMa=function(a){return new PQ(a.type,a.j,a.range,"getEmptyStubAfter"+a.G,a.Qa,a.startTime+a.duration,0,a.dc+a.B,0)};
gMa=function(a,b,c,d){return new PQ(a.type,a.j,a.range,"reslice"+a.G,a.Qa,a.startTime,a.duration,b,c,d,a.Cj,a.clipId)};
hMa=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.dc>=b.range.start+b.dc&&a.range.start+a.dc+a.B<=b.range.start+b.dc+b.B:a.Qa===b.Qa&&a.dc>=b.dc&&(a.dc+a.B<=b.dc+b.B||b.qf)};
iMa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.xg()?(a=a.j.NA(a),Nr(a,function(c){return iMa(c,b)})):a.Qa===b.Qa&&!!b.B&&b.dc+b.B>a.dc&&b.dc+b.B<=a.dc+a.B};
jMa=function(a,b){var c=b.Qa;a.G="updateWithSegmentInfo";a.Qa=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,YLa(a)};
VQ=function(a,b){var c=this;this.ib=a;this.D=this.j=null;this.G=this.hh=NaN;this.K=this.requestId=null;this.Nd={afb:function(){return c.range}};
this.resource=a[0].j.resource;this.C=b||"";this.ib[0].range&&0<this.ib[0].B&&(cMa(a)?(this.range=bMa(a),this.B=this.range.length):(this.range=this.ib[this.ib.length-1].range,this.B=dMa(a)))};
WQ=function(a){return!!(a.j||a.D&&a.D.TA)};
kMa=function(a){return!RQ(a.ib[a.ib.length-1])};
XQ=function(a){return 4===a.ib[a.ib.length-1].type};
g.mMa=function(a,b,c){c=null===a.K?YQ(a.resource,b,c,a.ib[0].type):a.K;if(a.j){c=c?cQ(a.j,b.Ll):a.j;var d=new KQ(c);d.get("alr")||d.set("alr","yes");a.C&&ULa(d,a.C)}else/http[s]?:\/\//.test(a.C)?d=new KQ(new g.ZP(a.C)):(d=lMa(a.resource,c,b),a.C&&ULa(d,a.C));if(b.jx&&5===a.ib[0].type||6===a.ib[0].type)b=d.base.clone(),$P(b),"/videogoodput"!==b.path&&(b.path="/videogoodput",b.url=""),d=new KQ(b);(b=a.range)?d.set("range",b.toString()):a.ib[0].j.Uv()&&1===a.ib.length&&a.ib[0].dc&&d.set("range",a.ib[0].dc+
"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.hh)||d.set("headm",a.hh.toString());isNaN(a.G)||d.set("mffa",a.G+"ms");a.urlParams&&g.Tc(a.urlParams,function(e,f){d.set(f,e)});
return d};
oMa=function(a){if(a.range)return a.B;a=a.ib[0];return nMa?Math.round(a.B):Math.round(a.K*a.j.info.Zb)};
pMa=function(a,b){return Math.max(0,a.ib[0].D-b)};
qMa=function(){this.C=this.j=this.timedOut=this.started=this.D=this.B=0};
rMa=function(a){a.D=(0,g.OD)();a.started=0;a.timedOut=0;a.j=0};
sMa=function(a,b,c){var d=a.started+4*a.j;c&&(d+=a.C);b.wB&&(d=Math.max(0,d-b.Pi));return Math.pow(1.6,d)};
ZQ=function(a,b){a[b]||(a[b]=new qMa);return a[b]};
tMa=function(a){this.S=this.K=this.G=this.B=0;this.j=a;this.C=a.clone()};
YQ=function(a,b,c,d){d=void 0===d?3:d;if(bQ(a.j))return!1;var e=ZQ(c,aQ(a.j));if(1>e.timedOut&&1>e.j&&6!==d)return!1;var f=e.timedOut+e.j;a=uMa(a,b);c=ZQ(c,aQ(a));return 6===d?c.B<e.B:c.timedOut+c.j+0<f};
lMa=function(a,b,c){a=b?uMa(a,c):a.j;return new KQ(a)};
uMa=function(a,b){b=b?b.Ll:!1;a.D||(a.D=cQ(a.C,b));return a.D};
vMa=function(a,b,c){return aQ(b?uMa(a,c):a.j)};
wMa=function(a,b,c){c=ZQ(c,vMa(a,YQ(a,b,c),b));c=Math.max(a.G,c.timedOut)+b.AB*(a.B-a.G)+.25*a.K;b=c>b.Pi?1E3*Math.pow(1.6,c-b.Pi):0;return 0===b?!0:a.S+b<(0,g.OD)()};
xMa=function(a,b,c){a.j.set(b,c);a.C.set(b,c);a.D&&a.D.set(b,c)};
$Q=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.C=!1;this.K=0;this.D=this.B=null;this.info=b;this.resource=new tMa(a)};
aR=function(a,b,c,d,e,f){f=void 0===f?0:f;$Q.call(this,a,b,d,void 0);this.G=c;this.Ej=f;this.index=e||new g.eQ};
yMa=function(a,b,c,d,e){this.Qa=a;this.startSecs=b;this.di=c;this.j=d||NaN;this.B=e||NaN};
bR=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""};
cR=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
zMa=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};
AMa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
dR=function(){this.j=[];this.B=null;this.K=0;this.C=[];this.G=!1;this.S="";this.D=-1};
BMa=function(a){var b=a.C;a.C=[];return b};
CMa=function(){this.D=[];this.j=null;this.B={};this.C={}};
GMa=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.u(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.parentNode.parentNode,f=null;"Period"===e.nodeName?f=DMa(a):"AdaptationSet"===e.nodeName?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=EMa(a,e)):"Representation"===e.nodeName&&(e=e.getAttribute("id")||"",f=FMa(a,e));if(null==f)return;f.update(d);g.Mb(c,BMa(f))}g.Mb(a.D,c);waa(a.D,function(h){return 1E3*h.startSecs+h.j})};
HMa=function(a){a.j&&(a.j.j=[]);g.Tc(a.B,function(b){b.j=[]});
g.Tc(a.C,function(b){b.j=[]})};
DMa=function(a){a.j||(a.j=new dR);return a.j};
EMa=function(a,b){a.B[b]||(a.B[b]=new dR);return a.B[b]};
FMa=function(a,b){a.C[b]||(a.C[b]=new dR);return a.C[b]};
IMa=function(a){var b=void 0===a?{}:a;a=void 0===b.Ej?0:b.Ej;var c=void 0===b.Um?!1:b.Um,d=void 0===b.lq?0:b.lq,e=void 0===b.cf?0:b.cf,f=void 0===b.lh?Infinity:b.lh,h=void 0===b.bA?0:b.bA;b=void 0===b.ze?!1:b.ze;g.eQ.call(this);this.Kq=this.wp=-1;this.Fj=a;this.lq=d;this.Um=c;this.cf=e;this.lh=f;this.bA=h;this.ze=b};
eR=function(a,b){return Tb(a.segments,function(c){return b-c.Qa})};
fR=function(a,b,c){c=void 0===c?{}:c;aR.call(this,a,b,"",void 0,void 0,c.Ej||0);this.index=new IMa(c)};
gR=function(a,b,c){$Q.call(this,a,b);this.G=c;this.index=new g.eQ;this.index.B=!1};
JMa=function(a,b,c){var d=a.index.FH(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.Zb*f;return new VQ([new PQ(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
KMa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.K;b=b.S.split(",").filter(function(p){return 0<p.length});
for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new dQ(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
hR=function(a,b,c){this.info=a;this.j=b;this.C=c;this.B=null;this.G=-1;this.timestampOffset=0;this.K=!1;this.D=this.info.j.Kz()&&!this.info.dc};
iR=function(a){return TFa(a.j)};
LMa=function(a,b){b=Math.min(b,a.info.B);var c=a.j.split(b);return[new hR(new PQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Qa,a.info.startTime,a.info.duration,a.info.dc,b,!1,a.info.Cj,a.info.clipId),c.QH,a.C),new hR(new PQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Qa,a.info.startTime,a.info.duration,a.info.dc+b,a.info.B-b,a.info.qf,a.info.Cj,a.info.clipId),c.Gm)]};
jR=function(a,b,c){var d;if(!(d=!TQ(a.info,b.info)||a.info.qf)){if(c=void 0===c?!1:c)c=b.j,c=!(c.j.length?PFa(a.j,c.j[0]):1);d=c}if(d)return null;c=new PQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Qa,a.info.startTime,a.info.duration,a.info.dc,a.info.B,a.info.qf,a.info.Cj,a.info.clipId);d=b.info;c.B+=d.B;c.range&&(c.K+=d.K);c.C=d.C;c.qf=d.qf;d=new wO;xO(d,a.j);xO(d,b.j);c=new hR(c,d,a.C);c.B=b.B||a.B;return c};
MMa=function(a){g.jL(a.info.j.info)||a.info.j.info.Te();if(-1!==a.G)return a.G;if(a.B&&yLa(a.B))return a.G=yLa(a.B),a.G;if(g.jL(a.info.j.info)){var b=iR(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;tQ(b,f);){var h=uQ(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.qQ(h):1952867444===h.type&&isNaN(d)&&(d=g.GLa(h));f=vQ(h.type)?f+8:f+h.size}!e&&c&&(e=rQ(c));b=d/e}else b=new xQ(iR(a)),c=a.D?b:new xQ(new DataView(a.info.j.j.buffer)),d=IQ(c),c=b.pos,b.pos=0,JQ(b)?BQ(b,231)?
(d=EQ(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.G=b||a.info.D;return a.G};
kR=function(a,b,c){c&&g.jL(a.info.j.info)&&!sQ(iR(a),0,1836019558)||(0<a.timestampOffset&&(b-=a.timestampOffset),c=MMa(a)+b,NMa(a,c),a.timestampOffset=b)};
NMa=function(a,b){g.jL(a.info.j.info)||a.info.j.info.Te();a.G=b;if(g.jL(a.info.j.info)){var c=iR(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;tQ(c,f);){var h=uQ(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.qQ(h)));if(1952867444===h.type){!d&&a&&(d=rQ(a));var l=g.GLa(h);isNaN(e)&&(e=Math.round(b*d)-l);l+=e;if(h.data.getUint8(h.dataOffset)){var m=h.data,n=h.dataOffset+4;m.setUint32(n,Math.floor(l/4294967296));m.setUint32(n+4,l&4294967295)}else h.data.setUint32(h.dataOffset+
4,l)}f=vQ(h.type)?f+8:f+h.size}return!0}c=new xQ(iR(a));a=a.D?c:new xQ(new DataView(a.info.j.j.buffer));d=IQ(a);a=c.pos;c.pos=0;if(JQ(c)&&BQ(c,231))if(e=CQ(c,!0),b=Math.floor(1E9*b/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;0<=d;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b};
lR=function(a,b){b=void 0===b?!1:b;var c=OMa(a);a=b?0:a.info.K;return c||a};
OMa=function(a){g.jL(a.info.j.info)||a.info.j.info.Te();if(a.B&&7===a.info.type)return a.B.Ej;if(g.jL(a.info.j.info)){var b=iR(a);var c=0;b=g.wQ(b,1936286840);b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=HLa(d.value),c+=d.uR[0]/d.gx;c=c||NaN;if(!(0<=c))a:{c=iR(a);b=a.info.j.j;for(var e=d=0,f=0;tQ(c,d);){var h=uQ(c,d);if(1836476516===h.type)e=g.qQ(h);else if(1836019558===h.type){!e&&b&&(e=rQ(b));if(!e){c=NaN;break a}var l=sQ(h.data,h.dataOffset,1953653094),m=e,n=sQ(l.data,l.dataOffset,1952868452);
l=sQ(l.data,l.dataOffset,1953658222);var p=hQ(n);hQ(n);p&2&&hQ(n);n=p&8?hQ(n):0;var q=hQ(l),r=q&1;p=q&4;var t=q&256,v=q&512,x=q&1024;q&=2048;var B=iQ(l);r&&hQ(l);p&&hQ(l);for(var G=r=0;G<B;G++){var F=t?hQ(l):n;v&&hQ(l);p&&0===G||!x||hQ(l);q&&hQ(l);r+=F}f+=r/m}d=vQ(h.type)?d+8:d+h.size}c=f||NaN}c||g.UF(new g.nD("Missing duration while parsing bmff",a.info.le()))}else c=new xQ(iR(a)),a=a.D?c:new xQ(new DataView(a.info.j.j.buffer)),c=SLa(c,IQ(a));return c};
PMa=function(a){var b=iR(a);var c=(c=g.pQ(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.pQ(b,0,1836476516))?g.qQ(b):a?rQ(a):NaN);return c};
QMa=function(a){return a.info.j.info.Te()&&160===AO(a.j,0)};
RMa=function(a){if(!a.B){g.jL(a.info.j.info)||a.info.j.info.Te();if(g.jL(a.info.j.info))var b=g.JLa(iR(a));else{b=new xQ(iR(a));var c=b.pos;b.pos=0;var d=null,e=null;if(zQ(b,[408125543,307544935]))for(var f=b.pos+CQ(b,!0);b.pos<f;)if(29555!==CQ(b,!1))FQ(b);else for(var h=b.pos+CQ(b,!0);b.pos<h;)if(26568!==CQ(b,!1))FQ(b);else for(var l=b.pos+CQ(b,!0);b.pos<l;){var m=CQ(b,!1);if(17543===m){if(m=QLa(b),m=oQ(m))if(e)for(var n=g.u(Object.keys(m)),p=n.next();!p.done;p=n.next())p=p.value,e[p]=m[p];else e=
m}else 17827===m?(m=QLa(b),d||(d=m)):FQ(b)}b.pos=c;b=e?new nQ(e,d):null}a.B=b}};
SMa=function(a){if(!a.K){if(g.jL(a.info.j.info)){var b=iR(a);var c=sQ(b,0,1836019574);if(c){c=c.offset+c.size;var d=new Uint8Array(c);d.set(new Uint8Array(b.buffer,b.byteOffset,c));b=d}else b=null}else b=RLa(new xQ(iR(a)));b&&(a.info.j.j=b,a.K=!0)}};
g.TMa=function(){this.count=0;this.j=1;this.B=!1;this.offsets=new Float64Array(128);this.Di=new Float64Array(128)};
UMa=function(a,b){return b+1<a.count||a.B?a.offsets[b+1]-a.offsets[b]:-1};
VMa=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
mR=function(a,b,c,d){$Q.call(this,a,b,c,d);var e=this;this.G=null;this.Nd={iD:function(f,h,l){return e.iD(f,h,l)}};
this.index=new g.TMa};
WMa=function(a,b,c,d,e,f){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d;this.xtags=void 0===e?"":e;this.id=void 0===f?"":f};
YMa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return XMa[a];return null};
g.nR=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
$Ma=function(a){return ZMa(function(b,c){return g.rC(b,c,4,1E3)},a,{format:"RAW",
method:"GET",withCredentials:!0})};
g.aNa=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=DO(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
ZMa=function(a,b,c){b.match(bNa);return a(b,c).then(function(d){var e=g.aNa(d.xhr);return e?ZMa(a,e,c):d.xhr})};
pR=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.lG.call(this);var d=this;this.sourceUrl=a;this.isLivePlayback=c;this.kb=this.duration=0;this.isPremiere=this.ze=this.B=this.isLiveHeadPlayable=this.isLive=this.C=!1;this.lh=this.cf=0;this.isOtf=this.Fc=!1;this.Pa=(0,g.OD)();this.ma=Infinity;this.j={};this.K=new Map;this.state=this.Og=0;this.timeline=null;this.isManifestless=!1;this.qa=[];this.D=null;this.va=0;this.G="";this.Fa=NaN;this.Bd=this.Cb=this.Yc=this.timestampOffset=
this.S=0;this.ea=this.fb=this.Ya=this.eb=this.Ca=!1;this.Ja=[];this.Oa={};this.Nd={Gdb:function(m){oR(d,m)}};
var e;this.rb=null==(e=b)?void 0:e.ob("html5_use_network_error_code_enums");var f;this.fb=(null==(f=b)?void 0:f.ob("html5_set_windowed_live_using_config"))||!1;var h;this.ea=(null==(h=b)?void 0:h.ob("html5_use_media_representations_for_seekable_times"))||!1;cNa=!!b&&b.ob("html5_modern_vp9_mime_type");var l;this.xb=(null==(l=b)?void 0:l.ob("html5_use_coretime_clock_offset"))||!1};
eLa=function(a){return g.Xc(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
UP=function(a){return g.Xc(a.j,function(b){return!!b.info.xe})};
dNa=function(a){return g.Xc(a.j,function(b){return oL(b.info.mimeType)})};
eNa=function(a){return g.Xc(a.j,function(b){return b.info.video?"EQUIRECTANGULAR"===b.info.video.projectionType:!1})};
fNa=function(a){return g.Xc(a.j,function(b){return b.info.video?"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.info.video.projectionType:!1})};
gNa=function(a){return g.Xc(a.j,function(b){return b.info.video?"MESH"===b.info.video.projectionType:!1})};
hNa=function(a){return g.Xc(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
iNa=function(a){return aba(a.j,function(b){return b.info.video?b.fQ():!0})};
RP=function(a){return g.Xc(a.j,function(b){return bQ(b.resource.j)})};
oR=function(a,b){a.j[b.info.id]=b;a.K.set(mL(b.info,a.Fc),b)};
jNa=function(a,b){return(b.itag||"")+";"+((a.Fc?0:b.Zj||0)||0)+";"+(b.xtags||"")};
qR=function(a,b,c){c=void 0===c?0:c;var d=a.mimeType||"",e=a.itag;var f=a.xtags;e=e?e.toString():"";f&&(e+=";"+f);f=e;if(HAa(d)){var h=a.width||640;e=a.height||360;var l=a.fps,m=a.qualityLabel,n=a.colorInfo,p=a.projectionType,q;a.stereoLayout&&(q=kNa[a.stereoLayout]);var r=YMa(a)||void 0;if(null==n?0:n.primaries)var t=lNa[n.primaries]||void 0;h=new bL(h,e,l,p,q,void 0,m,r,t);d=mNa(d,h,dL[a.itag||""])}var v;if(nL(d)){var x=a.audioSampleRate;q=a.audioTrack;x=new $K(x?+x:void 0,a.audioChannels,a.spatialAudioType,
a.isDrc,a.loudnessDb);q&&(t=q.displayName,e=q.id,q=q.audioIsDefault,t&&(v=new g.nR(t,e||"",!!q)))}var B;a.captionTrack&&(m=a.captionTrack,q=m.displayName,t=m.vssId,e=m.languageCode,l=m.kind,m=m.id,q&&t&&e&&(B=new WMa(q,t,e,l,a.xtags,m)));q=Number(a.bitrate)/8;t=Number(a.contentLength);e=Number(a.lastModified);m=a.drmFamilies;l=a.type;c=c&&t?t/c:0;a=Number(a.approxDurationMs);if(b&&m){var G={};m=g.u(m);for(n=m.next();!n.done;n=m.next())(n=nNa[n.value])&&(G[n]=b[n])}return new eL(f,d,{audio:x,video:h,
Rc:v,xe:G,Zb:q,Uu:c,contentLength:t,lastModified:e,captionTrack:B,streamType:l,approxDurationMs:a})};
oNa=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(HAa(d)){var h=(a.size||"640x360").split("x");h=new bL(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=mNa(d,h,dL[a.itag])}var l;if(nL(d)){var m=new $K(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.nR(a.name,a.audio_track_id,"1"===a.isDefault))}var n;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&
(n=new WMa(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind,a.xtags,a.caption_id));f=Number(a.bitrate)/8;var p=Number(a.clen),q=Number(a.lmt);c=c&&p?p/c:0;if(b&&a.drm_families){var r={};for(var t=g.u(a.drm_families.split(",")),v=t.next();!v.done;v=t.next())v=v.value,r[v]=b[v]}return new eL(e,d,{audio:m,video:h,Rc:l,xe:r,Zb:f,Uu:c,contentLength:p,lastModified:q,captionTrack:n,streamType:a.stream_type,approxDurationMs:Number(a.approx_duration_ms)})};
pNa=function(a){return Nr(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
qNa=function(a){return Nr(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
rNa=function(a,b){return a.timeline?Nb(a.timeline.D,b):a.qa.length?Nb(a.qa,b):[]};
rR=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.ZP(a,!0);a.set("alr","yes");c&&(c=AKa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
vNa=function(a,b){var c=bR(b,"id");c=c.replace(":",";");var d=bR(b,"mimeType"),e=bR(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(bR(b,"bandwidth"))/8;var f=Number(cR(b,"BaseURL").getAttribute(a.G+":contentLength")),h=a.duration&&f?f/a.duration:0;if(HAa(d)){var l=Number(bR(b,"width"));var m=Number(bR(b,"height")),n=Number(bR(b,"frameRate")),p=sNa(bR(b,a.G+":projectionType"));a:switch(bR(b,a.G+":stereoLayout")){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=2;break a;default:q=
0}l=new bL(l,m,n,p,q)}if(nL(d)){var r=Number(bR(b,"audioSamplingRate"));var t=Number(bR(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=tNa(bR(b,a.G+":spatialAudioType"));r=new $K(r,t,m);a:{t=bR(b,"lang")||"und";if(m=cR(b,"Role"))if(p=bR(m,"value")||"",g.gd(uNa,p)){m=t+"."+uNa[p];n="main"===p;a=bR(b,a.G+":langName")||t+" - "+p;t=new g.nR(a,m,n);break a}t=void 0}}if(b=cR(b,"ContentProtection"))if("http://youtube.com/drm/2012/10/10"===b.getAttribute("schemeIdUri")){var v={};for(b=
b.firstChild;null!=b;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(v[a]=m.trim()))}else v=void 0;return new eL(c,d,{audio:r,video:l,Rc:t,xe:v,Zb:e,Uu:h,contentLength:f})};
sNa=function(a){switch(a){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}};
tNa=function(a){switch(a){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}};
xNa=function(a,b){b=void 0===b?"":b;a.state=1;a.Pa=(0,g.OD)();return $Ma(b||a.sourceUrl).then(function(c){if(!a.isDisposed()){a.Og=c.status;var d=c.responseText;c=new DOMParser;d=g.le(Tla(d));c=c.parseFromString(g.ke(d),"text/xml").getElementsByTagName("MPD")[0];a.ma=1E3*zMa(bR(c,"minimumUpdatePeriod"))||Infinity;b:{if(c.attributes){d=g.u(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];break b}}d=""}a.G=d;a.isLive=
Infinity>a.ma&&a.isLivePlayback;a.kb=Number(bR(c,a.G+":earliestMediaSequence"))||0;if(d=Date.parse(AMa(bR(c,a.G+":mpdResponseTime"))))a.va=a.xb?((0,g.OD)()-d)/1E3:(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Zp(c.getElementsByTagName("Period"),a.H9,a);a.state=2;a.ra("loaded");wNa(a)}return a}).xk(function(c){if(c instanceof pC){var d=c.xhr;
a.Og=d.status}a.state=3;a.ra("loaderror");return Vf(d)})};
yNa=function(a,b,c){return xNa(new pR(a,b,c),a)};
zNa=function(a){return a.isLive&&(0,g.OD)()-a.Pa>=a.ma};
wNa=function(a){var b=a.ma;isFinite(b)&&(zNa(a)?a.refresh():(b=Math.max(0,a.Pa+b-(0,g.OD)()),a.D||(a.D=new g.au(a.refresh,b,a),g.L(a,a.D)),a.D.start(b)))};
ANa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.Fd()+1}return 0};
sR=function(a){return a.Yc?a.Yc-(a.S||a.timestampOffset):0};
tR=function(a){return a.Cb?a.Cb-(a.S||a.timestampOffset):0};
uR=function(a){if(!isNaN(a.Fa))return a.Fa;var b=a.j,c;for(c in b){var d=b[c].index,e=oL(b[c].info.mimeType)&&a.ea;if(d.isLoaded()&&!e){b=0;for(c=d.jn();c<=d.Fd();c++)b+=d.getDuration(c);b/=d.qz();b=.5*Math.round(b/.5);10<d.qz()&&(a.Fa=b);return b}if(a.isLive&&(d=b[c],d.Ej))return d.Ej}return NaN};
BNa=function(a,b){a=cba(a.j,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.Mh(b);return a.getStartTime(c)===b?b:c<a.Fd()?a.getStartTime(c+1):NaN};
CNa=function(a,b){if(!a.j["0"]){var c=new eL("0","fakesb",{video:new bL(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new aR(new g.ZP("http://www.youtube.com/videoplayback"),c,"fake"):new mR(new g.ZP("http://www.youtube.com/videoplayback"),c,new LQ(0,0),new LQ(0,0))}};
vR=function(a,b,c){for(var d in a.j){var e=oL(a.j[d].info.mimeType)||a.j[d].info.kh();if(c===e){e=a.j[d].index;var f=eR(e,b);0<=f&&e.segments.splice(f,1)}}};
DNa=function(a){for(var b in a.j)oL(a.j[b].info.mimeType)||rLa(a.j[b].index,Infinity)};
ENa=function(a){a.Cb=0;a.Yc=0;a.Bd=0};
FNa=function(a){return a.eb&&a.isManifestless?a.isLiveHeadPlayable:a.isLive};
mNa=function(a,b,c){null===wR&&(wR=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(cNa&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return wR||"9"!==c&&"("!==c?wR||"9h"!==c&&"(h"!==c||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!wR&&!GNa||'video/webm; codecs="vp9"'!==a&&'video/webm; codecs="vp9.2"'!==
a)return a;c="00";var d="08",e="01",f="01",h="01";'video/webm; codecs="vp9.2"'===a&&(c="02",d="10","bt2020"===b.primaries&&(h=e="09"),"smpte2084"===b.B&&(f="16"),"arib-std-b67"===b.B&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'};
HNa=function(a){this.La=a;this.wc=this.Un=this.Oa=this.G=this.D=this.qa=this.Ja=this.eb=this.va=!1;this.S=this.K=0;this.kb=!1;this.Ca=!0;this.fb=!1;this.hj=0;this.Fa=!1;this.vc=Infinity;this.UL=!1;this.Jc=!0;this.Ya=this.Pa=this.Va=!1;this.j={};this.B=this.ma=!1;this.Mb=this.La.N("html5_enable_audio_track_log");this.Cb=!1;this.Ub=this.La.experiments.ob("html5_enable_vp9_fairplay");this.Yc=this.La.N("html5_disable_av1_hdr");this.qd=this.La.N("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");
this.Ad=this.La.N("html5_account_onesie_format_selection_during_format_filter");this.Td=this.La.N("html5_prefer_hbr_vp9_over_av1");this.Sf=0;this.xb=this.rb=!1;this.Zb=g.JJ(this.La.experiments,"html5_max_byterate")};
fLa=function(a){if(a.eb)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Fa&&(b.unshift("1"),b.unshift("1h"));a.Un&&b.unshift("h");a.ea&&(b=(INa[a.ea]||[a.ea]).concat(b));return b};
aLa=function(a){var b=["o","a","A"];1===a.Sf&&(a.qa&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.G&&(b=["meac3","MEAC3"].concat(b)));a.va&&(b=["so","sa"].concat(b));!a.wc||a.Oa||a.C||b.unshift("a");a.Ja&&b.unshift("ah");a.C&&(b=(INa[a.C]||[a.C]).concat(b));return b};
JNa=function(a,b,c){b=void 0===b?{}:b;if(a.N("html5_disable_av1"))return b.disabled=1,0;if(XP(a.G,YP.AV1_CODECS)&&XP(a.G,YP.HEIGHT)&&XP(a.G,YP.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=NKa();if(d)return b.localPref=d}catch(h){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;Fna()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(h){return gL(h)}))?void 0:null==(f=e.B)?void 0:f.powerEfficient)a=8192,b.isEfficient=1;
c=c.videoInfos[0].video;e=Math.min(IP("1",c.fps),IP("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=IP("1",30),b.perfCap30=c,a=Math.min(a,c),c=IP("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
xR=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.j={};this.eb=this.keySystemAccess=null;this.Vx=this.Wx=-1;this.Tl=null;this.C=!!d&&d.ob("edge_nonprefixed_eme")};
zR=function(a){return a.C?!1:!a.keySystemAccess&&!!yR()&&"com.microsoft.playready"===a.keySystem};
AR=function(a){return"com.microsoft.playready"===a.keySystem};
BR=function(a){return!a.keySystemAccess&&!!yR()&&"com.apple.fps.1_0"===a.keySystem};
CR=function(a){return"com.youtube.fairplay"===a.keySystem};
DR=function(a){return"com.youtube.fairplay.sbdl"===a.keySystem};
g.ER=function(a){return"fairplay"===a.flavor};
yR=function(){var a=window,b=a.MSMediaKeys;DC()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
KNa=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.sL&&!g.BC())return Hu("45");if(g.dE||g.bf)return a.ob("edge_nonprefixed_eme");if(g.FR)return Hu("47");if(g.ID){if(a.ob("html5_enable_safari_fairplay"))return!1;if(a=g.JJ(a,"html5_safari_desktop_eme_min_version"))return Hu(a)}return!0};
MNa=function(a,b,c,d){var e=CC(),f=(c=e||c&&DC())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&f.unshift("com.youtube.widevine.l3");e&&d&&f.unshift("com.youtube.fairplay.sbdl");return c?f:a?[].concat(g.pa(f),g.pa(LNa.playready)):[].concat(g.pa(LNa.playready),g.pa(f))};
GR=function(a,b,c,d,e){d=void 0===d?!1:d;g.J.call(this);this.La=b;this.useCobaltWidevine=d;this.ya=e;this.B=[];this.C={};this.j={};this.callback=null;this.G=!1;this.D=[];this.initialize(a,!c)};
PNa=function(a,b){a.callback=b;a.D=[];KNa(a.La.experiments)?NNa(a):ONa(a)};
NNa=function(a){if(!a.isDisposed())if(0===a.B.length)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=QNa(a,c);if(HR&&HR.keySystem===b&&HR.p$===JSON.stringify(d))a.ya("remksa",{re:!0}),RNa(a,c,HR.keySystemAccess);else{var e,f;a.ya("remksa",{re:!1,ok:null!=(f=null==(e=HR)?void 0:e.keySystem)?f:""});HR=void 0;(IR.isActive()&&IR.yu()?IR.ll("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(eP(function(h){RNa(a,c,h,d)}),eP(function(){a.G=
!a.G&&"widevine"===a.C[a.B[0]].flavor;
a.G||a.B.shift();NNa(a)}))}}};
RNa=function(a,b,c,d){if(!a.isDisposed()){d&&(HR={keySystem:b.keySystem,keySystemAccess:c,p$:JSON.stringify(d)});b.keySystemAccess=c;if(AR(b)){c=qL();d=g.u(Object.keys(a.j[b.flavor]));for(var e=d.next();!e.done;e=d.next())e=e.value,b.j[e]=!!c.canPlayType(e)}else{c=b.keySystemAccess.getConfiguration();if(c.audioCapabilities)for(d=g.u(c.audioCapabilities),e=d.next();!e.done;e=d.next())SNa(a,b,e.value);if(c.videoCapabilities)for(c=g.u(c.videoCapabilities),d=c.next();!d.done;d=c.next())SNa(a,b,d.value)}a.D.push(b);
a.useCobaltWidevine||a.N("html5_enable_vp9_fairplay")&&DR(b)?(a.B.shift(),NNa(a)):a.callback(a.D)}};
SNa=function(a,b,c){a.N("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
QNa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.N("html5_enable_vp9_fairplay")&&CR(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];AR(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.u(Object.keys(a.j[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.G?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.sL&&g.zC("windows nt")&&!a.N("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.N("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),"MWEB"===g.JR(a.La)&&(IC()||AC())&&(a.ya("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
ONa=function(a){if(yR()&&g.ID)a.D.push(new xR("fairplay","com.apple.fps.1_0","",a.La.experiments));else{var b=TNa(),c=g.Bb(a.B,function(d){var e=a.C[d],f=!1,h=!1,l;for(l in a.j[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c&&a.D.push(a.C[c]);a.B=[]}a.callback(a.D)};
TNa=function(){var a=yR();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=qL();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
UNa=function(a){this.experiments=a;this.S=g.JJ(this.experiments,"html5_min_progress_event_interval_ms")||50;this.B=0;this.K=this.S/1E3;this.ma=(this.C=this.experiments.ob("html5_consider_end_stall"))&&KR;this.G=this.experiments.ob("html5_ignore_stall_from_no_data_timeouts");this.D=this.experiments.ob("html5_ignore_stall_from_data_timeouts");this.j=this.experiments.ob("html5_measure_max_progress_handling");this.ea=this.experiments.ob("html5_raw_progress_v2")};
VNa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=YB(b||"","&");a={};b=g.u(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
g.JJ=function(a,b){return Number(a.flags[b])||0};
LR=function(a,b){return(a=a.flags[b])?a.toString():""};
WNa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]};
XNa=function(a){if(a.j)return a.j;if(1>=a.experimentIds.length)return a.j=a.experimentIds,a.j;var b=[].concat(g.pa(a.experimentIds)).map(function(d){return Number(d)});
b.sort();for(var c=b.length-1;0<c;--c)b[c]-=b[c-1];a.j=b.map(function(d){return d.toString()});
a.j.unshift("v1");return a.j};
ZNa=function(a){return YNa.then(a)};
$Na=function(a,b,c){this.experiments=a;this.va=b;this.Ca=void 0===c?!1:c;this.ma=!!g.Ta("cast.receiver.platform.canDisplayType");this.S={};this.ea=!1;this.B=new Map;this.K=!this.experiments.ob("html5_disable_protected_hdr");this.j=this.C=!1;this.qa=this.experiments.ob("html5_disable_vp9_encrypted");this.D=new Map;a=g.Ta("cast.receiver.platform.getValue");this.G=!this.ma&&a&&a("max-video-resolution-vpx")||null};
jLa=function(a,b,c){c=void 0===c?1:c;var d=b.itag;if("0"===d)return!0;var e=b.mimeType;if(b.Te()&&CC()&&a.experiments.ob("html5_appletv_disable_vp9"))return"dwebm";if(gL(b)&&a.ea)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(XP(a,YP.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if("338"===d&&!(g.sL?Hu(53):g.FR&&Hu(64)))return"dopus";
var f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[YP.WIDTH.name]=b.video.width),b.video.height&&(c[YP.HEIGHT.name]=b.video.height),b.video.fps&&(c[YP.FRAMERATE.name]=b.video.fps*f),b.video.B&&(c[YP.EOTF.name]=b.video.B),b.Zb&&(c[YP.BITRATE.name]=8*b.Zb*f),"("===b.Db&&(c[YP.CRYPTOBLOCKFORMAT.name]="subsample"),"EQUIRECTANGULAR"===b.video.projectionType||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.video.projectionType||"MESH"===b.video.projectionType)&&(c[YP.DECODETOTEXTURE.name]="true");b.audio&&
b.audio.numChannels&&(c[YP.CHANNELS.name]=b.audio.numChannels);a.C&&fL(b)&&(c[YP.EXPERIMENTAL.name]="allowed");f=g.u(Object.keys(YP));for(var h=f.next();!h.done;h=f.next())if(h=YP[h.value],c[h.name]&&!(h===YP.EOTF&&0<b.mimeType.indexOf("vp09.02")||a.experiments.ob("html5_ignore_h264_framerate_cap")&&h===YP.FRAMERATE&&EAa(b)))if(XP(a,h))if(a.G){if(a.G[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(FAa(b)&&h===YP.EOTF)return"dvp92";a.ma&&b.video&&1080<b.video.j&&b.xe&&(e+=
"; hdcp=2.2");return"227"===d?"hqcenc":"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||a.experiments.ob("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"};
MR=function(){var a=AC()&&!Hu(29),b=g.zC("google tv")&&g.zC("chrome")&&!Hu(30);return a||b?!1:PAa()};
aOa=function(a,b,c){var d=480;b=g.u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;1080>=f&&f>d&&!0===jLa(a,e,c)&&(d=f)}return d};
g.bOa=function(a,b){b=void 0===b?!1:b;return MR()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(qL(),"application/x-mpegURL")?!0:!1};
dOa=function(a){cOa(function(){for(var b=g.u(Object.keys(YP)),c=b.next();!c.done;c=b.next())XP(a,YP[c.value])})};
XP=function(a,b){b.name in a.S||(a.S[b.name]=eOa(a,b));return a.S[b.name]};
eOa=function(a,b){if(a.G)return!!a.G[b.name];if(b===YP.BITRATE&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===YP.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.Cn);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.Cn)};
fOa=function(a){a.C||(a.C=!0,a.j=!0)};
gOa=function(a,b){var c=0;a.B.has(b)&&(c=a.B.get(b).N4);a.B.set(b,{N4:c+1,jZ:Math.pow(2,c+1)});a.j=!0};
cLa=function(a,b,c){var d;c=(null==(d=c.video)?void 0:d.fps)||0;return a.D.has(b+"_"+c)};
dLa=function(a,b,c){var d,e=(null==(d=c.video)?void 0:d.fps)||0;d=b+"_"+e;if(!a.D.has(d)){var f=!!c.audio;b={itag:c.itag,Db:b,Ui:f};f?b.numChannels=c.audio.numChannels:(f=c.video,b.maxWidth=null==f?void 0:f.width,b.maxHeight=null==f?void 0:f.height,b.maxFramerate=e,XP(a,YP.BITRATE)&&(b.mw=8*c.Zb),b.j6=null==f?void 0:f.isHdr());a.D.set(d,b)}};
NR=function(){g.lG.call(this);this.items={}};
OR=function(){g.rO.apply(this,arguments)};
PR=function(){g.sO.apply(this,arguments)};
QR=function(a,b){if(b.buffer!==a.exports.memory.buffer){var c=new Uint8Array(a.exports.memory.buffer,a.exports.malloc(b.byteLength),b.byteLength);c.set(b)}tO.call(this,a,c||b);this.B=new Set;c&&this.B.add(c.byteOffset)};
hOa=function(a,b,c){this.encryptedClientKey=b;this.G=c;this.j=new Uint8Array(a.buffer,0,16);this.C=new Uint8Array(a.buffer,16)};
iOa=function(a){a.B||(a.B=new OR(a.j));return a.B};
RR=function(a){try{return og(a)}catch(b){return null}};
jOa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?RR(b.clientKey):null;var c=b.encryptedClientKey?RR(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.OD)():null;a&&c&&d&&(this.j=new hOa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=RR(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
SR=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)};
TR=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.B=0;this.C=!1;this.G=!0;this.j=Math.round(a*this.resolution);this.values=Array(this.j);for(a=0;a<this.j;a++)this.values[a]=Infinity;this.K=kOa(this);this.D=c;this.S=d};
kOa=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
UR=function(a,b){if(!a.C&&0===a.B)return 0;a.G&&(g.Ub(a.K,function(c,d){return a.values[c]-a.values[d]}),a.G=!1);
return a.values[a.K[Math.round(b*((a.C?a.j:a.B)-1))]]||0};
lOa=function(a,b,c){g.J.call(this);this.policy=a;this.Fa=b;this.qe=c;this.S=this.Ca=0;this.G=-1;this.K=!1;this.qa=this.D=(0,g.OD)();this.ea=new TR(4,1,.6,.4);this.B=new TR(a.qa,1,.5,.4);this.j=a.D?new SR(a.j):new TR(a.j,20,.5,.4);this.ma=new TR(5,1,.25);this.C=new TR(30,1,.5);a=g.gD("yt-player-bandwidth")||{};b=this.policy.B;0<a.byterate&&(b=a.byterate,this.K=!0);this.j.Ck(this.policy.G,b);0<a.delay&&this.ea.Ck(1,Math.min(a.delay,2));0<a.stall&&this.B.Ck(1,a.stall);0<a.init&&(this.qa=Math.min(a.init,
this.qa));this.G=(0,g.OD)();0<this.policy.K&&(this.va=new g.au(this.Ja,this.policy.K,this),g.L(this,this.va),this.va.start())};
mOa=function(a,b,c,d){a.j.Ck(void 0===d?b:d,c/b);a.D=(0,g.OD)()};
nOa=function(a){a.policy.ma&&(a.D=(0,g.OD)())};
VR=function(a,b){a.ea.Ck(1,b);oOa(a)};
WR=function(a,b,c,d,e){a.ma.Ck(b,c/b);a.D=(0,g.OD)();e||a.C.Ck(1,b-d)};
YR=function(a,b,c){b=Math.max(b,2048);a.B.Ck(1,c/b);oOa(a)};
ZR=function(a){a=a.ea.Si();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
pOa=function(a,b,c){isNaN(c)||(a.S+=c);isNaN(b)||(a.Ca+=b)};
qOa=function(a){a=a.j.Si();return 0<a?a:1};
$R=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=qOa(a);d=1/((a.B.Si()||0)*a.policy.ea+1/d);var e=a.ma.Si();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+ZR(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((UR(a.C,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
rOa=function(a){return{delay:ZR(a),stall:a.B.Si()||0,byterate:qOa(a),init:a.qa}};
oOa=function(a){-1<a.G&&3E4<(0,g.OD)()-a.G&&(HKa(rOa(a)),a.G=(0,g.OD)(),a.K=!0)};
aS=function(a){return 4E3<=(0,g.OD)()-a.D};
sOa=function(a){this.experiments=a;this.j=17;this.qa=g.JJ(this.experiments,"html5_stall_window_size_ct")||10;this.ea=g.JJ(this.experiments,"html5_stall_factor")||1;this.B=13E4;this.G=.5;this.C=this.D=!1;this.K=g.JJ(this.experiments,"html5_check_for_idle_network_interval_ms");this.S=this.experiments.ob("html5_trigger_loader_when_idle_network");this.ma=this.experiments.ob("html5_sabr_fetch_on_idle_network_preloaded_players")};
uOa=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.J.call(this);var c=this;this.values=a;this.Hq=b;this.B={};this.C=this.j=0;this.D=new g.au(function(){tOa(c)},1E4);
g.L(this,this.D)};
wOa=function(a,b){vOa(a,b);return a.values[b]&&a.Hq[b]?a.values[b]/Math.pow(2,a.j/a.Hq[b]):0};
vOa=function(a,b){a.values[b]||(b=JKa(),a.values=b.values||{},a.Hq=b.halfLives||{},a.B=b.values?Object.assign({},b.values):{})};
tOa=function(a){var b=JKa();if(b.values){b=b.values;for(var c={},d=g.u(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]=wOa(a,e);a.B=c}b=a.Hq;c={};c.values=a.B;c.halfLives=b;g.fD("yt-player-memory",c,2592E3)};
JOa=function(a,b,c,d,e){g.J.call(this);this.webPlayerContextConfig=b;this.Pl=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.lk=this.Me=this.xb=this.rj=this.userDisplayName=this.userDisplayImage=this.Qi="";this.j={};this.controlsType="0";this.Ad=NaN;this.Ub=!1;this.gg=(0,g.OD)();this.wc=0;this.Ql=this.Eo=!1;this.Nm=!0;this.preferGapless=this.embedsEnableRcat=this.fg=this.C=this.Ol=this.Uf=!1;a=a?g.pd(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=
b.csiServiceName);b&&b.preferGapless&&(this.preferGapless=b.preferGapless);this.experiments=new VNa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:MC("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)?b.cspNonce:MC("",a.csp_nonce);this.N("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(I){f=""}this.Gf=f;this.ancestorOrigins=(d=window.location.ancestorOrigins)?
Array.from(d):[];this.D=JC(!1,b?b.isEmbed:a.is_embed);b&&b.device?(d=b.device,d.brand&&(this.j.cbrand=d.brand),d.browser&&(this.j.cbr=d.browser),d.browserVersion&&(this.j.cbrver=d.browserVersion),this.j.c=d.interfaceName||"WEB",this.j.cver=d.interfaceVersion||"html5",d.interfaceTheme&&(this.j.ctheme=d.interfaceTheme),this.j.cplayer=d.interfacePlayerType||"UNIPLAYER",d.model&&(this.j.cmodel=d.model),d.network&&(this.j.cnetwork=d.network),d.os&&(this.j.cos=d.os),d.osVersion&&(this.j.cosver=d.osVersion),
d.platform&&(this.j.cplatform=d.platform)):(this.j.c=a.c||"web",this.j.cver=a.cver||"html5",this.j.cplayer="UNIPLAYER");this.loaderUrl=b?this.D||xOa(this)&&b.loaderUrl?b.loaderUrl||"":this.Gf:this.D||xOa(this)&&a.loaderUrl?MC("",a.loaderUrl):this.Gf;this.D&&g.Sa("yt.embedded_player.embed_url",this.loaderUrl);this.K=jK(this.loaderUrl,yOa);d=this.loaderUrl;var h=void 0===h?!1:h;this.Oo=iK(jK(d,zOa),d,h,"Trusted Ad Domain URL");this.qd=JC(!1,a.privembed);this.protocol=0===this.Gf.indexOf("http:")?"http":
"https";this.Ja=bza((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||bza(this.Gf)||this.protocol+"://www.youtube.com/";h=b?b.eventLabel:a.el;d="detailpage";"adunit"===h?d=this.D?"embedded":"detailpage":"embedded"===h||this.K?d=KC(d,h,AOa):h&&(d="embedded");this.Va=d;Ara();h=null;d=b?b.playerStyle:a.ps;f=g.Db(BOa,d);!d||f&&!this.K||(h=d);this.playerStyle=h;this.Ca=(this.S=g.Db(BOa,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.No=!this.Ca;this.Pa=JC(!1,a.disableplaybackui);
this.disablePaidContentOverlay=JC(!1,null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=JC(!1,null==b?void 0:b.disableSeek);this.Sf=this.N("variable_playback_rate")?!0:qL().defaultPlaybackRate?bS||g.HC||cS?g.FR&&Hu("20")||g.sL&&Hu("4")||g.dS&&Hu("11")||Jna():!(g.dS&&!g.zC("chrome")||bS||g.zC("android")||g.zC("silk")):!1;this.Io=JC(!1,a.enable_faster_speeds);this.B=JC("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.Cb=GC()||IC();this.Mo=this.B&&!this.S;this.eb=
MAa();this.Ap=g.COa;this.N("embeds_web_enable_host_flags_client_permissions")?this.Kl=JC(!1,(null==b?0:b.embedsHostFlags)?b.embedsHostFlags.optOutApiDeprecation:a.opt_out_deprecation):this.Kl=JC(!1,b?b.embedOptOutDeprecation:a.opt_out_deprecation);if(this.N("embeds_web_enable_host_flags_client_permissions")){var l;this.qa=!!(null==b?0:null==(l=b.embedsHostFlags)?0:l.allowPfpImaIntegration)}else this.qa=!(!b||!b.embedsEnablePfpImaIntegration);this.Ko=this.N("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");
var m;b?void 0!==b.hideInfo&&(m=!b.hideInfo):m=a.showinfo;this.Xl=g.eS(this)&&!this.Kl||JC(!fS(this)&&!gS(this)&&!this.S,m);this.Rl=b?!!b.mobileIphoneSupportsInlinePlayback:JC(!1,a.playsinline);l=this.B&&DOa&&null!=hS&&0<hS&&2.3>=hS;m=b?b.useNativeControls:a.use_native_controls;this.ma=g.eS(this)&&this.B;h=this.B&&!this.ma;m=g.iS(this)||!l&&JC(h,m)?"3":"1";h=b?b.controlsType:a.controls;this.controlsType="0"!==h&&0!==h?m:"0";this.Pi=this.B;this.color=KC("red",b?b.progressBarColor:a.color,EOa);m=this.N("embeds_web_enable_host_flags_client_permissions")?
JC(!1,(null==b?0:b.embedsHostFlags)?b.embedsHostFlags.allowModestbranding:a.modestbranding):JC(!1,b?b.embedsShowModestBranding:a.modestbranding);this.vp="3"===this.controlsType||m&&"red"===this.color;this.Yc=!this.D;this.Mm=(m=!this.Yc&&!gS(this)&&!this.Ca&&!this.S&&!fS(this))&&!this.vp&&"1"===this.controlsType;this.Vd=g.jS(this)&&m&&"0"===this.controlsType&&!this.Mm;this.Np=this.zp=l;this.Kd=("3"===this.controlsType||this.B||JC(!1,a.use_media_volume))&&!this.ma;this.Om=EC&&!g.Mc(601)?!1:!0;this.Lo=
this.D||!1;this.Bd=gS(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=MC("",b?b.widgetReferrer:a.widget_referrer);var n;b?b.disableCastApi&&(n=!1):n=a.enablecastapi;n=!this.K||JC(!0,n);l=!0;b&&b.disableMdxCast&&(l=!1);this.nk=this.N("enable_cast_for_web_unplugged")&&g.kS(this)&&l||this.N("enable_cast_on_music_web")&&g.qH(this)&&l||n&&l&&"1"===this.controlsType&&!this.B&&(gS(this)||g.jS(this)||g.lS(this))&&!g.mS(this);this.Jp=!!window.document.pictureInPictureEnabled||
LAa();n=b?!!b.supportsAutoplayOverride:JC(!1,a.autoplayoverride);this.Ji=!(this.B&&!g.eS(this))&&!g.zC("nintendo wiiu")||n;n=b?!!b.enableMutedAutoplay:JC(!1,a.mutedautoplay);this.Fo=this.N("embeds_enable_muted_autoplay")&&g.eS(this);this.Oi=n&&!1;n=(gS(this)||fS(this))&&"blazer"===this.playerStyle;this.Al=b?!!b.disableFullscreen:!JC(!0,a.fs);l=g.OC(g.nS(this))&&g.eS(this);this.vc=!this.Al&&(n||g.SC())&&!l;this.Nl=this.N("uniplayer_block_pip")&&(AC()&&Hu(58)&&!IC()||cE);n=g.eS(this)&&!this.Kl;var p;
b?void 0!==b.disableRelatedVideos&&(p=!b.disableRelatedVideos):p=a.rel;this.Ud=n||JC(!this.S,p);this.Ul=JC(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.ea=IC()&&0<hS&&4.4>=hS?"_top":"_blank";this.eh=g.lS(this);this.Ll=JC("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":p="bl";break;case "gmail":p="gm";break;case "gac":p="ga";break;case "books":p="gb";break;case "docs":p="gd";break;case "duo":p="gu";break;case "google-live":p="gl";break;
case "google-one":p="go";break;case "play":p="gp";break;case "chat":p="hc";break;case "hangouts-meet":p="hm";break;case "photos-edu":case "picasaweb":p="pw";break;default:p="yt"}this.Fa=p;this.va=MC("",b?b.authorizedUserIndex:a.authuser);this.Jc=g.eS(this)&&(this.qd||!zna()||this.Cb);var q;b?void 0!==b.disableWatchLater&&(q=!b.disableWatchLater):q=a.showwatchlater;this.Td=((p=!this.Jc)||!!this.va&&p)&&JC(!this.Ca,this.K?q:void 0);this.We=b?b.isMobileDevice||!!b.disableKeyboardControls:JC(!1,a.disablekb);
this.loop=JC(!1,a.loop);this.pageId=MC("",b?b.initialDelegatedSessionId:a.pageid);this.Cp=JC(!0,a.canplaylive);this.rb=JC(!1,a.livemonitor);this.disableSharing=JC(this.S,b?b.disableSharing:a.ss);(q=b&&this.N("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(p=q.split("x"),2!==p.length?q=null:(q=Number(p[0]),p=Number(p[1]),q=isNaN(q)||isNaN(p)||0>=q*p?null:new g.we(q,p))):q=null;this.Pm=q;this.mute=b?!!b.startMuted:JC(!1,a.mute);this.storeUserVolume=
!this.mute&&JC("0"!==this.controlsType,b?b.storeUserVolume:a.store_user_volume);q=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:KC(void 0,q,oS);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":MC("",a.cc_lang_pref);q=KC(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,oS);"3"===this.controlsType&&2===q&&(q=3);this.Mb=q;this.mj=b?b.hl||"en_US":MC("en_US",a.hl);this.region=b?b.contentRegion||"US":MC("US",a.cr);this.hostLanguage=b?
b.hostLanguage||"en":MC("en",a.host_language);this.Go=!this.qd&&Math.random()<g.JJ(this.experiments,"web_player_api_logging_fraction");this.fb=!this.qd;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.Ad=LC(this.Ad,a.ismb);this.No?(q=a.vss_host||"s.youtube.com","s.youtube.com"===q&&(q=FOa(this.Ja)||"www.youtube.com")):q="video.google.com";this.Qm=q;GOa(this,a,!0);this.Oa=new NR;g.L(this,this.Oa);p=b?b.innertubeApiKey:MC("",a.innertube_api_key);n=b?b.innertubeApiVersion:
MC("",a.innertube_api_version);q=b?b.innertubeContextClientVersion:MC("",a.innertube_context_client_version);p=g.Iv("INNERTUBE_API_KEY")||p;n=g.Iv("INNERTUBE_API_VERSION")||n;l=g.Iv("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");m=g.JR(this);h="number"===typeof this.j.c?Number(this.j.c):Object.keys(HHa).indexOf(this.j.c);this.Il={innertubeApiKey:p,innertubeApiVersion:n,YH:l,eO:m,OW:h,innertubeContextClientVersion:g.Iv("INNERTUBE_CONTEXT_CLIENT_VERSION")||q,gO:this.hostLanguage,fO:this.region,PW:g.Iv("INNERTUBE_HOST_OVERRIDE")||
"",QW:!!g.Iv("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),hO:!!g.Iv("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Sl=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.G=new $Na(this.experiments,this.N("html5_force_hfr_support")?!0:TJ(this)||Gna()||Hna()||HOa(this),g.sL&&g.Mc(56)||g.FR&&g.Mc(54)||this.N("html5_force_vp9_subsample_encryption_support")||HOa(this));q=this.Ad;p=new sOa(this.experiments);g.UJ(this)&&(p.D=!0,p.G=.1);q&&(p.B=q/8);p.C=480<=GP();this.schedule=new lOa(p,new UNa(this.experiments),
e);g.L(this,this.schedule);var r;this.enableSafetyMode=null!=(r=null==b?void 0:b.initialEnableSafetyMode)?r:JC(!1,a.enable_safety_mode);e=this.Pa?!1:gS(this)&&"blazer"!==this.playerStyle;var t;b?null!=b.disableAutonav&&(t=!b.disableAutonav):t=a.allow_autonav;this.Le=JC(e,!this.Ca&&t);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:JC(!1,a.send_visitor_id_header);var v;"docs"===this.playerStyle&&(b?v=b.disableNativeContextMenu:v=a.disable_native_context_menu);this.disableNativeContextMenu=JC(!1,
v);this.Jo=TJ(this)&&this.N("enable_skip_intro_button");this.embedConfig=MC("",b?b.serializedEmbedConfig:a.embed_config);this.Ya=Pna(a,g.eS(this));this.C="EMBEDDED_PLAYER_MODE_PFL"===this.Ya;this.embedsErrorLinks=!(null==b||!b.embedsErrorLinks);this.El=JC(!1,a.full_window);this.dh=!g.kS(this)&&!pS(this)&&!g.mS(this)&&!0;var x;this.livingRoomAppMode=KC("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||(null==b?void 0:null==(x=b.device)?void 0:x.livingRoomAppMode),IOa);var B;t=LC(NaN,null==
b?void 0:null==(B=b.device)?void 0:B.deviceYear);isNaN(t)||(this.deviceYear=t);this.transparentBackground=b?!!b.transparentBackground:JC(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:JC(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:JC(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:JC(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.Tl=JC(!1,a.showbackbutton);
var G;this.Nm=null!=(G=a.show_loop_video_toggle)?G:!0;this.Zo=1E-4>Math.random();this.Jl=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new jOa(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=null==b?void 0:b.canaryStage;this.Tf=new uOa;g.L(this,this.Tf);this.Ol=JC(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.Iv("DATASYNC_ID");this.Po=g.Iv("LOGGED_IN",!1);this.sj=(null==
b?void 0:b.allowWoffleManagement)||!1;this.Ml=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.N("html5_high_res_logging_always")?this.fg=!0:this.fg=100*Math.random()<g.JJ(this.experiments,"html5_high_res_logging_percent");if(this.N("embeds_web_enable_host_flags_client_permissions")){var F;this.embedsEnableRcat=!!(null==b?0:null==(F=b.embedsHostFlags)?0:F.allowRcat)}else this.embedsEnableRcat=!(null==b||!b.embedsEnableRcat)};
g.nS=function(a){if(a.N("embeds_web_enable_host_flags_client_permissions")){var b,c;var d=null==(b=a.webPlayerContextConfig)?void 0:null==(c=b.embedsHostFlags)?void 0:c.enableLiteUx}else{var e;d=null==(e=a.webPlayerContextConfig)?void 0:e.embedsEnableLiteUx}if(!d||a.qd||a.S||a.C||"EMBEDDED_PLAYER_MODE_PFP"===a.Ya)return"EMBEDDED_PLAYER_LITE_MODE_NONE";a=g.JJ(a.experiments,"embeds_web_lite_mode");return void 0===a?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":0<=a&&a<KOa.length?KOa[a]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
GOa=function(a,b,c){c=void 0===c?!1:c;a.Me=MC(a.Me,b.video_id);a.xb=MC(a.xb,b.eventid);a.xb&&(ZE=a.xb);for(var d=[],e=g.u(Object.keys(LOa)),f=e.next();!f.done;f=e.next()){f=LOa[f.value];var h=b[f];null!=h&&(h!==a.j[f]&&d.push(f),a.j[f]=h)}!c&&0<d.length&&a.Zo&&(d.sort(),g.UF(new g.nD("Player client parameters changed after startup",d)));a.userAge=LC(a.userAge,b.user_age);a.Qi=MC(a.Qi,b.user_display_email);a.userDisplayImage=MC(a.userDisplayImage,b.user_display_image);g.lK(a.userDisplayImage)||(a.userDisplayImage=
"");a.userDisplayName=MC(a.userDisplayName,b.user_display_name);a.rj=MC(a.rj,b.user_gender);a.csiPageType=MC(a.csiPageType,b.csi_page_type);a.csiServiceName=MC(a.csiServiceName,b.csi_service_name);a.Ll=JC(a.Ll,b.enablecsi);a.pageId=MC(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.hg=b.living_room_session_po_token.toString())};
MOa=function(a,b){return!a.S&&AC()&&Hu(55)&&"3"===a.controlsType&&!b};
g.qS=function(a){a=FOa(a.Ja);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.rS=function(a){return g.mS(a)?"music.youtube.com":g.qS(a)};
sS=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
tS=function(a){return gS(a)&&!g.kS(a)};
g.iS=function(a){return a.N("html5_local_playsinline")?EC&&!g.Mc(602)&&!("playsInline"in qL()):EC&&!a.Rl||g.zC("nintendo wiiu")?!0:!1};
g.mS=function(a){return"music-embed"===a.playerStyle};
g.JR=function(a){return a.j.c};
g.UJ=function(a){return/^TVHTML5/.test(g.JR(a))?!0:"TV"===a.j.cplatform};
xOa=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===g.JR(a)};
HOa=function(a){return"CHROMECAST ULTRA/STEAK"===a.j.cmodel||"CHROMECAST/STEAK"===a.j.cmodel};
g.uS=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
TJ=function(a){return/web/i.test(g.JR(a))};
g.vS=function(a){return"WEB"===g.JR(a).toUpperCase()};
pS=function(a){return"WEB_KIDS"===g.JR(a)};
g.kS=function(a){return"WEB_UNPLUGGED"===g.JR(a)};
wS=function(a){return"TVHTML5_UNPLUGGED"===g.JR(a)};
g.SJ=function(a){return g.kS(a)||"TV_UNPLUGGED_CAST"===g.JR(a)||wS(a)};
g.qH=function(a){return"WEB_REMIX"===g.JR(a)};
g.xS=function(a){return"WEB_EMBEDDED_PLAYER"===g.JR(a)};
g.zS=function(a){return(a.deviceIsAudioOnly||!g.sL||cE||"3"===a.controlsType?!1:g.HC?a.D&&g.Mc(51):!0)||(a.deviceIsAudioOnly||!g.FR||cE||"3"===a.controlsType?!1:g.HC?a.D&&g.Mc(48):g.Mc(38))||(a.deviceIsAudioOnly||!g.dS||cE||"3"===a.controlsType?!1:g.HC?a.D&&g.Mc(37):g.Mc(27))||!a.deviceIsAudioOnly&&g.yS&&!Kna()&&g.Mc(11)||!a.deviceIsAudioOnly&&g.ID&&g.Mc("604.4")};
NOa=function(a){if(g.jS(a)&&DOa)return!1;if(g.FR){if(!g.Mc(47)||!g.Mc(52)&&g.Mc(51))return!1}else if(g.ID)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
AS=function(a){return!a.N("html5_disable_media_element_loop_on_tv")||!g.UJ(a)};
gS=function(a){return"detailpage"===a.Va};
g.jS=function(a){return"embedded"===a.Va};
BS=function(a){return"leanback"===a.Va};
fS=function(a){return"adunit"===a.Va||"gvn"===a.playerStyle};
g.lS=function(a){return"profilepage"===a.Va};
g.eS=function(a){return a.D&&g.jS(a)&&!fS(a)&&!a.S};
OOa=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.UF(new g.nD("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.CS=function(a){var b=g.rS(a);POa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.DS=function(a,b){b=void 0===b?"":b;if(a.N("enable_tectonic_player_oauth_callback")&&a.Pl){var c=new NL,d,e=a.Pl();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.UF(new g.nD("b189348328_oauth_callback_failed",{error:f}));
c.resolve(b)});
return void 0!==d?uC(d):new sC(c)}return uC(b)};
FOa=function(a){var b=g.xl(a);return(a=Number(g.wl(4,a))||null)?b+":"+a:b};
ES=function(a){this.j=a};
FS=function(a,b,c){if(c)return tC();c={};var d=qL();b=g.u(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(d,e.Lh().mimeType)){var f=e.j.video.quality;if(!c[f]||c[f].Lh().Te())c[f]=e}a=[];c.auto&&a.push(c.auto);d=g.u(cL);for(b=d.next();!b.done;b=d.next())(b=c[b.value])&&a.push(b);return a.length?uC(a):tC()};
QOa=function(a,b,c,d,e){this.C=a;this.B=b;this.G=c;this.cpn=d;this.K=e;this.D=0;this.j=""};
ROa=function(a,b){a.C.some(function(c){var d;return(null==(d=c.Rc)?void 0:d.getId())===b});
a.j=b};
SOa=function(a,b,c){a.cpn&&(b=g.Dl(b,{cpn:a.cpn}));c&&(b=g.Dl(b,{Ifb:c}));return b};
TOa=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
UOa=function(a){for(var b=[],c=[],d=g.u(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)};
VOa=function(a){this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;var b;this.B=(null==(b=a.audioItag)?void 0:b.split(","))||[];this.sB=a.sB;this.xe=a.xe||"";this.Rc=a.Rc;this.audioChannels=a.audioChannels;this.j=""};
WOa=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!0:c;d=void 0===d?{}:d;var e={};a=g.u(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/);
m=m?m[1]:"";f.audio_track_id&&(h=new g.nR(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new VOa({itag:f.itag,url:f.url,codecs:m,width:Number(f.width),height:Number(f.height),fps:Number(f.fps),bitrate:Number(f.bitrate),audioItag:f.audio_itag,sB:n?l[n]:void 0,xe:f.drm_families,Rc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
GS=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.resource=null};
XOa=function(a,b){if(!(cE||DC()||CC()))return null;a=WOa(b,a.N("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.u(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.u(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.Rc&&(f=h.Rc.getId(),c[f]||(h=new g.KP(f,h.Rc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
bPa=function(a,b,c,d,e,f,h){if(!(cE||DC()||CC()))return tC();var l={},m=YOa(c),n=WOa(c,a.N("html5_filter_fmp4_in_hls"),a.G.K,l);if(!n)return h({noplst:1}),tC();ZOa(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var r=[],t=[],v=null,x="";d=d&&d.match(/hls_timedtext_playlist/)?new VOa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Rc:new g.nR("English","en",!1)}):null;for(var B=g.u(Object.keys(n)),G=B.next();!G.done;G=B.next())if(G=G.value,!a.N("html5_disable_drm_hfr_1080")||
"383"!==G&&"373"!==G){G=g.u(n[G]);for(var F=G.next();!F.done;F=G.next())if(F=F.value,F.width){for(var I=g.u(F.B),P=I.next();!P.done;P=I.next())if(P=P.value,n[P]){F.j=P;break}F.j||(F.j=$Oa(n,F));if(I=n[F.j])if(c.push(F),"fairplay"===F.xe&&(q=p),P="","PQ"===F.sB?P="smpte2084":"HLG"===F.sB&&(P="arib-std-b67"),P&&(x=P),t.push(aPa(I,[F],d,f,F.itag,F.width,F.height,F.fps,m,void 0,void 0,q,P)),!v||F.width*F.height*F.fps>v.width*v.height*v.fps)v=F}else r.push(F)}else l[G]="disdrmhfr";t.reduce(function(R,
Z){return Z.Lh().isEncrypted()&&R},!0)&&(q=p);
e=Math.max(e,0);p=v||{};n=void 0===p.fps?0:p.fps;v=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;B=a.N("html5_native_audio_track_switching");t.push(aPa(r,c,d,f,"93",v,p,n,m,"auto",e,q,x,B));Object.entries(l).length&&h(l);return FS(a.G,t,MOa(a,b))};
aPa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var v=0,x="",B=g.u(a),G=B.next();!G.done;G=B.next())G=G.value,x||(x=G.itag),G.audioChannels&&G.audioChannels>v&&(v=G.audioChannels,x=G.itag);e=new eL(e,"application/x-mpegURL",{audio:new $K(0,v),video:new bL(f,h,l,null,void 0,n,void 0,r),xe:q,FX:x});a=new QOa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new GS(e,a,m)};
YOa=function(a){a=g.u(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};
$Oa=function(a,b){for(var c=g.u(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.xe===b.xe&&!e.audioChannels)return d}return""};
ZOa=function(a){for(var b=new Set,c=g.u(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.u(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.u(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
HS=function(a,b){this.j=a;this.B=b};
cPa=function(a,b,c,d){var e=[];c=g.u(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.ZP(h.url,!0);if(h.s){var l=h.sp,m=AKa(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.u(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=pL(h.type,h.quality,h.itag,h.width,h.height);e.push(new HS(h,f))}}return FS(a.G,e,MOa(a,b))};
IS=function(a,b){this.j=a;this.B=b};
dPa=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=pL(e.type,"medium","0");d.push(new IS(f,e.url))}return FS(a.G,d,MOa(a,b))};
ePa=function(a,b){var c=[],d=pL(b.type,"auto",b.itag);c.push(new IS(d,b.url));return FS(a.G,c,!1)};
gPa=function(a){return a&&fPa[a]?fPa[a]:null};
hPa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.xo=RR(a.ustreamerConfig)||void 0)};
iPa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.DY=new hPa(b)};
g.JS=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null;this.xtags=a.xtags||"";this.captionId=a.captionId||""};
g.LS=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.KS(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.isTranslateable,vss_id:a.vssId};a.xtags&&(b.xtags=a.xtags);a.captionId&&(b.captionId=a.captionId);a.translationLanguage&&(b.translationLanguage=a.translationLanguage);return b};
g.MS=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.jPa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.MS(a));return b};
g.KS=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Automatic Captions)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")};
nPa=function(a,b,c,d){a||(a=b&&kPa.hasOwnProperty(b)&&lPa.hasOwnProperty(b)?lPa[b]+"_"+kPa[b]:void 0);b=a;if(!b)return null;a=b.match(mPa);if(!a||5!==a.length)return null;if(a=b.match(mPa)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(1===Number(a[1])&&8===e)&&0<=f.indexOf(e)}else a=!1;return c||d||a?b:null};
NS=function(a,b){for(var c={},d=g.u(Object.keys(oPa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.lK(f)&&(c[oPa[e]]=f)}return c};
OS=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.u(Object.keys(pPa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=pPa[e];for(var f=g.u(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=qPa(h.url);g.lK(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=qPa(a.url),g.lK(a)&&(b["maxresdefault.jpg"]=a));return b};
qPa=function(a){return a.startsWith("//")?"https:"+a:a};
PS=function(a){return a&&a.baseUrl||""};
QS=function(a){a=g.bC(a);for(var b=g.u(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};
rPa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Fk=b)};
uPa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.S(h,sPa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.S(h,tPa))return Object.assign({is_yto_interstitial:!0},$B(h))});
d=g.u(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,po:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,po:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var f=Number(c.podConfig.timeToInsertAtMillis);a.interstitials=a.interstitials.concat({time:f,playerVars:e,
po:0===f?5:7})}}};
vPa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
wPa=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)};
xPa=function(a,b){null!=b?(a.bp=b,a.Sd=!0):(a.bp="",a.Sd=!1)};
RS=function(a,b){this.type=a||"";this.id=b||""};
g.yPa=function(a){return new RS(a.substr(0,2),a.substr(2))};
g.SS=function(a,b){this.La=a;this.author="";this.JC=null;this.playlistLength=0;this.j=this.sessionData=null;this.ma={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=YB(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.ma=NS(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new RS("UU","PLAYER_"+c)).toString();break;
default:if(a=b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.yPa(c).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}};
g.TS=function(a,b){this.La=a;this.Cs=this.author="";this.JC=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.ew=this.lengthText="";this.sessionData=null;this.ma={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Cs=b.Cs||"";if(a=b.endscreen_autoplay_session_data)this.JC=YB(a,"&");this.KC=b.KC;this.isLivePlayback="1"===b.live_playback;this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds="string"===typeof a?Number(a):a;this.lengthText=
b.lengthText||"";this.ew=b.ew||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=YB(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.ma=NS(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
zPa=function(a){var b,c,d=null==(b=a.Jd)?void 0:null==(c=b.contents)?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=null==(e=a.Jd)?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:null==(l=h.endScreen)?void 0:null==(m=l.watchNextEndScreenRenderer)?void 0:m.results;if(!a){var n,p;a=null==d?void 0:null==(n=d.endScreen)?void 0:null==(p=n.endScreen)?void 0:p.results}return a};
g.CPa=function(a){var b,c,d;a=g.S(null==(b=a.Jd)?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,APa);return g.S(null==a?void 0:a.playerBar,BPa)};
DPa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url};
EPa=function(){if(void 0===US){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.Vu(g.oD()+"::yt-player"))){US=new sH(a);break a}US=void 0}}return US};
g.VS=function(){var a=EPa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.FPa=function(a){var b=EPa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.WS=function(a){return g.VS()[a]||0};
g.XS=function(a,b){var c=g.VS();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.FPa(c))};
g.YS=function(a){return g.H(function(b){return b.return(g.aE(GPa(),a))})};
LPa=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.H(function(v){switch(v.j){case 1:return m=g.WS(a),4===m?v.return(4):g.z(v,g.fE(),2);case 2:n=v.B;if(!n)throw g.JD("wiac");if(!l||void 0===h){v.Ma(3);break}return g.z(v,HPa(l,h),4);case 4:h=v.B;case 3:return p=c.lastModified||"0",g.z(v,g.YS(n),5);case 5:return q=v.B,g.za(v,6),ZS++,g.z(v,g.RD(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",kc:!0},function(x){if(void 0!==f&&void 0!==h){var B=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10,
"0");B=g.SD(x.objectStore("media"),h,B)}else B=g.LD.resolve(void 0);var G=IPa(a,b.kh()),F=IPa(a,!b.kh()),I={fmts:JPa(d),format:c||{}};G=g.SD(x.objectStore("index"),I,G);var P=-1===d.downloadedEndTime;I=P?x.objectStore("index").get(F):g.LD.resolve(void 0);var R={fmts:"music",format:{}};x=P&&e&&!b.kh()?g.SD(x.objectStore("index"),R,F):g.LD.resolve(void 0);return g.LD.all([x,I,B,G]).then(function(Z){Z=g.u(Z);Z.next();Z=Z.next().value;ZS--;var ma=g.WS(a);if(4!==ma&&P&&e||void 0!==Z&&g.KPa(Z.fmts))ma=
1,g.XS(a,ma);return ma})}),8);
case 8:return v.return(v.B);case 6:r=g.Ca(v);ZS--;t=g.WS(a);if(4===t)return v.return(t);g.XS(a,4);throw r;}})};
g.MPa=function(a){var b,c;return g.H(function(d){if(1==d.j)return g.z(d,g.fE(),2);if(3!=d.j){b=d.B;if(!b)throw g.JD("ri");return g.z(d,g.YS(b),3)}c=d.B;return d.return(g.RD(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return e.objectStore("index").getAll(f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})};
PPa=function(a,b,c,d,e){var f,h,l;return g.H(function(m){if(1==m.j)return g.z(m,g.fE(),2);if(3!=m.j){f=m.B;if(!f)throw g.JD("rc");return g.z(m,g.YS(f),3)}h=m.B;l=g.RD(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM",kc:NPa},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)});
return e?m.return(l.then(function(n){if(void 0===n)throw Error("No data from indexDb");return OPa(e,n)}).catch(function(n){throw new g.nD("Error while reading chunk: "+n.name+", "+n.message);
})):m.return(l)})};
g.KPa=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
IPa=function(a,b){return""+a+"|"+(b?"v":"a")};
JPa=function(a){var b={};return ZB((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
RPa=function(a){var b={},c={};a=g.u(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.QPa)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.u(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(",");
return c};
$S=function(a){g.lG.call(this);this.j=null;this.C=new mla;this.j=null;this.K=new Set;this.crossOrigin=a||""};
SPa=function(a,b,c){for(c=aT(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(bT(d,b))&&(d=g.cT(d,b)))return d;c--}return g.cT(a.levels[0],b)};
UPa=function(a,b,c){c=aT(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=bT(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),d.C.Ch(f,{mX:f,DX:e}))}TPa(a)};
TPa=function(a){if(!a.j&&!a.C.isEmpty()){var b=a.C.remove();a.j=VPa(a,b)}};
VPa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.mX].jf(b.DX);c.onload=function(){var d=b.mX,e=b.DX;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);TPa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.tH()-1);e=[e,d];a.ra("l",e[0],e[1])};
return c};
g.dT=function(a,b,c,d){this.level=a;this.G=b;this.loaded=new Set;this.level=a;this.G=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.frameCount=Math.floor(Number(a[2]));this.columns=Math.floor(Number(a[3]));this.rows=Math.floor(Number(a[4]));this.j=Math.floor(Number(a[5]));this.C=a[6];this.D=a[7];this.videoLength=d};
bT=function(a,b){return Math.floor(b/(a.columns*a.rows))};
g.cT=function(a,b){b>=a.bL()&&a.Mx();var c=bT(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Mx()+1-d*c;if(f<a.columns){var h=f;d=1}else h=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:a.jf(c),column:b,columns:h,row:e,rows:d,YD:a.width*h,ow:a.height*d}};
eT=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;$S.call(this,c);this.isLive=d;this.S=!!e;this.levels=this.B(a,b);this.D=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
WPa=function(a,b,c){return(a=a.levels[b])?a.gG(c):-1};
aT=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};
XPa=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.dT.call(this,a,b,c,0);this.B=null;this.K=d?2:0};
fT=function(a,b,c,d){eT.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].kT(c)};
YPa=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Dl(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.hT=function(a,b){g.lG.call(this);this.La=a;this.adModule=!1;this.adaptiveFormats="";this.RT=this.sx=this.adQueryId=this.qx=null;this.BB={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.xe=null;this.AK=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.jx=void 0;this.Rx=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Ya="";this.EB=this.vx=!1;this.S_=null;this.Uf=this.sj=this.Ap=this.dN=
!1;this.D=null;this.dU=this.Al=!1;this.Qi=NaN;this.Nl=!1;this.QF=0;this.gU=!1;this.FK=this.cycToken=null;this.author="";this.OF=0;this.Nm=!1;this.MF=null;this.oL=[];this.Zu=this.YB=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.wc=this.Kd="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.kb=0;this.Tl=this.eb=this.B=null;this.wL="";this.loading=!1;this.Ad=this.Mm=0;this.XT=this.pipable=this.Rp=this.isAutonav=!1;this.paidContentOverlayDurationMs=
0;this.isLiveHeadPlayable=this.isLivePlayback=this.rb=this.isPrivate=this.isListed=this.DL=this.Tf=this.mutedAutoplay=this.fl=!1;this.yO="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.FL=this.Pa=this.ze=!1;this.latencyClass="UNKNOWN";this.bX=this.XZ=this.CL=this.bU=this.aC=this.enablePreroll=this.enableServerStitchedDai=this.Mf=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Mb=
0;this.reloadReason="";this.GL=this.P_=this.fg=!1;this.keywords={};this.xb="";this.Go=0;this.xz=!1;this.liveChunkReadahead=NaN;this.Ml=null;this.ox=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.cX=this.paygated=!1;this.Am=[];this.El=!1;this.Ja=[];this.Ij=null;this.cU=this.racyCheckOk=!1;this.lS={};this.isProximaLatencyEligible=!1;this.fF=0;this.C=null;this.autonavState=1;this.BU=null;this.shortDescription="";this.Va=this.BK=!1;this.mj=this.Jc=this.startSeconds=0;this.Nz=this.lU=
this.Sl=gT;this.wx=this.suggestions=null;this.uB=this.vB=void 0;this.isExternallyHostedPodcast=!1;this.Rl=null;this.EK=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.Bx=void 0;this.Ud=[];this.lk=[];this.hlsFormats=this.Gf="";this.Zx=this.Ey=this.nk=this.qd=this.fb=this.Lo=this.Yx=null;this.Jm="vvt";this.gg=!1;this.sL=null;this.mU="";this.Jp=NaN;this.Np=this.IA=this.zp=this.xA=this.nA=this.Ul=this.vp=this.kB=this.Cp=this.KA="";this.Xl=null;this.ZT=!1;this.S={};this.clipStart=
0;this.clipEnd=Infinity;this.nX=!1;this.heartbeatToken="";this.KX=this.CX=NaN;this.Ji=this.Fo=this.dh=this.BZ=this.WY=!1;this.Ol=!0;this.ma={};this.captionTracks=[];this.HB=[];this.FU=0;this.IB=[];this.yx=[];this.xx=!1;this.SU={};this.Il=new g.KP("und",new g.nR("Default","und",!0));this.wO=0;this.K=null;this.Io=[];this.eC=!1;this.hg=[];this.Oz=this.Me="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.Jd=this.NO=this.yL=this.playerResponse=this.eW=this.jy=this.Pm=this.Jg=this.dC=
this.CB=this.AB=null;this.Qx=!1;this.qa=null;this.isInlinePlaybackNoAd=this.Jl=this.ZB=this.useCobaltWidevine=this.eU=this.Iz=!1;this.cC=!0;this.Le=this.eh=NaN;this.defraggedFromSubfragments=this.uD=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.sabrContextUpdates=[];this.FW=!1;this.gatewayExperimentGroup="";this.PF=this.qL=this.rj=!1;this.interstitials=[];this.Sd=this.EL=!1;this.bp="";this.allowImaMonetization=!1;this.bS="";this.CK=!1;this.Jo="";this.fP=[];this.fd="";this.ea=
this.mZ=!1;this.Sf=0;this.U_=this.Zo="";this.JR=this.eQ=this.BL=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Oo=!1;this.Ql=this.Td=!0;this.errorDetail=this.userGenderAge="";this.lL=this.nL=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Xm=this.errorReason=this.errorCode=null;this.Ax=this.zx="";this.Om=!1;this.kx=[];this.Bd=
this.Cb=this.Yc=this.lh=this.cf=0;this.fetchType=null;this.mS=!0;this.transitionEndpointAtEndOfStream=void 0;this.GB=this.hU=-1;this.Pl=this.We=!1;this.Kl=null;this.Oa="";this.Qm=!1;this.watchUrl=null;this.gy=[];this.visibleOnLoadKeys=[];this.OT=[];this.inlineMetricEnabled=this.Ho=!1;this.embedsRctn=this.embedsRct="";this.AL=NaN;this.gS=(0,g.OD)();this.dA=this.Po=0;this.xo=null;this.Mo=0;this.We=this.N("web_new_autonav_countdown");this.Pl=this.N("web_new_big_thumbnail_endscreen");ZPa(this,b);this.Px=
new SKa;g.L(this,this.Px)};
g.kT=function(a,b,c){b&&b.cpn&&g.UF(new g.nD("CPN provided in VideoData update",{Dfb:b.cpn,yh:a.clientPlaybackNonce,O5:c}));c?(NC(b),ZPa(a,b),iT(a)&&jT(a)):(b=b||{},$Pa(a,b),aQa(a,b),bQa(a,b),a.ra("dataupdated"))};
bQa=function(a,b){a.fflags=MC(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Ya=mK(c));a.vx=JC(a.vx,b.iv_ads_only);a.EB=JC(a.EB,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.p4=c;a.isPharma=JC(a.isPharma,b.is_pharma);a.author=MC(a.author,b.author);a.Kd=cQa(b.ttsurl)||a.Kd;a.Nm=JC(a.Nm,b.cc_asr);a.wc=MC(a.wc,b.channel_path);if(c=b.profile_picture)a.profilePicture=MC(a.profilePicture,c);a.videoCountText=MC(a.videoCountText,b.video_count_text);a.autonavState=KC(a.autonavState,b.autonav_state,
dQa);a.clientPlaybackNonce=MC(a.clientPlaybackNonce,b.cpn);a.subscribed=JC(a.subscribed,b.subscribed);a.rawViewCount=LC(a.rawViewCount,b.view_count);a.shortViewCount=MC(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=MC(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=MC(a.lengthText||"",b.lengthText);a.ew=MC(a.ew||"",b.ew);a.Cs=MC(a.Cs||"",b.Cs);a.title=MC(a.title,b.title);a.subtitle=MC(a.subtitle,b.subtitle);a.expandedTitle=MC(a.expandedTitle,b.expanded_title);a.expandedSubtitle=
MC(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=MC(a.ariaLabel,b.aria_label);a.ypcPreview=MC(a.ypcPreview,b.ypc_preview);a.uL=MC(a.uL,b.ypc_origin);a.gg=JC(a.gg,b.ypc_is_premiere_trailer);a.Zo=MC(a.Zo,b.ypc_clickwrap_message);a.paygated=JC(a.paygated,b.paygated);a.ZT=JC(a.ZT,b.requires_purchase);a.showShareButton=!JC(!a.showShareButton,b.ss);a.Td=JC(a.Td,b.showwatchlater);a.Ql=JC(a.Ql,b.shownotifybutton);a.Oo=JC(a.Oo,b.copy_share);if(c=b.el)a.eventLabel=c;if(c=b.keywords)a.keywords=eQa(c.split(","));
if(c=b.rvs)a.suggestions=aC(c).map(function(d){return d.playlist||d.list||d.api?new g.SS(a.La,d):new g.TS(a.La,d)});
a.contentCheckOk=JC(a.contentCheckOk,b.cco);a.racyCheckOk=JC(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=JC(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=MC(a.oauthToken,b.oauth_token);a.xb=MC(a.xb,b.kpt);a.visitorData=MC(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=YB(c,"&");a.Tx=MC(a.Tx,b.endscreen_ad_tracking_data);a.kU=JC(a.kU,b.wait_for_vast_info_cards_xml);a.DK=JC(a.DK,b.suppress_creator_endscreen);a.n_=JC(a.n_,b.is_trueview_action);a.iU=MC(a.iU,b.tracking_list);
a.zx=MC(a.zx,b.clip);a.Ax=MC(a.Ax,b.clipt);fQa(a,b)};
ZPa=function(a,b){b=b||{};var c=b.errordetail;null!=c&&(a.errorDetail=c);var d=b.errorcode;null!=d?a.errorCode=d:"fail"==b.status&&(a.errorCode="auth");var e=b.reason;null!=e&&(a.errorReason=e);var f=b.subreason;null!=f&&(a.Xm=f);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.aF(16));a.rb=JC(a.La.rb,b.livemonitor);$Pa(a,b);var h=b.raw_player_response;if(h)a.NO=h;else{var l=b.player_response;l&&(h=JSON.parse(l))}h&&(a.playerResponse=h);if(a.playerResponse){var m=a.playerResponse.annotations;
if(m)for(var n=g.u(m),p=n.next();!p.done;p=n.next()){var q=p.value.playerAnnotationsUrlsRenderer;if(q){q.adsOnly&&(a.vx=!0);q.allowInPlaceSwitch&&(a.EB=!0);var r=q.loadPolicy;r&&(a.annotationsLoadPolicy=gQa[r]);var t=q.invideoUrl;t&&(a.Ya=mK(t));a.dN=!0;break}}var v=a.playerResponse.attestation;v&&rPa(a,v);var x=a.playerResponse.cotn;x&&(a.cotn=x);if(a.N("html5_enable_ssap_entity_id")){var B,G=null==(B=a.playerResponse.cpnInfo)?void 0:B.cpn;G&&(a.clientPlaybackNonce=G)}var F=a.playerResponse.heartbeatParams;
if(F){hQa(a)&&(a.nX=!0);var I=F.heartbeatToken;I&&(a.drmSessionId=F.drmSessionId||"",a.heartbeatToken=I,a.CX=Number(F.intervalMilliseconds),a.KX=Number(F.maxRetries),a.WY=!!F.softFailOnError,a.BZ=!!F.useInnertubeHeartbeatsForDrm,a.Ap=!0);a.heartbeatServerData=F.heartbeatServerData;var P;a.Nl=!(null==(P=F.heartbeatAttestationConfig)||!P.requiresAttestation)}var R=a.playerResponse.messages;R&&vPa(a,R);var Z=a.playerResponse.multicamera;if(Z){var ma=Z.playerLegacyMulticameraRenderer;if(ma){var ua=ma.metadataList;
ua&&(a.U_=ua,a.hg=aC(ua))}}var oa=a.playerResponse.overlay;if(oa){var ia=oa.playerControlsOverlayRenderer;if(ia)if(xPa(a,ia.controlBgHtml),ia.mutedAutoplay){var Aa=g.S(ia.mutedAutoplay,iQa);if(Aa&&Aa.endScreen){var X=g.S(Aa.endScreen,jQa);X&&X.text&&(a.bS=g.wG(X.text))}}else a.mutedAutoplay=!1}var wa=a.playerResponse.playabilityStatus;if(wa){var ca=wa.backgroundability;ca&&ca.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var Ra,y;if(null==(Ra=wa.offlineability)?0:null==(y=Ra.offlineabilityRenderer)?
0:y.offlineable)a.offlineable=!0;var V=wa.contextParams;V&&(a.contextParams=V);var ib=wa.pictureInPicture;ib&&ib.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);wa.playableInEmbed&&(a.allowEmbed=!0);var fb=wa.ypcClickwrap;if(fb){var Za=fb.playerLegacyDesktopYpcClickwrapRenderer,$a=fb.ypcRentalActivationRenderer;if(Za)a.Zo=Za.durationMessage||"",a.Uf=!0;else if($a){var ic=$a.durationMessage;a.Zo=ic?g.wG(ic):"";a.Uf=!0}}var Rb=wa.errorScreen;if(Rb){if(Rb.playerLegacyDesktopYpcTrailerRenderer){var bb=
Rb.playerLegacyDesktopYpcTrailerRenderer;a.Np=bb.trailerVideoId||"";var ec=Rb.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var jb=ec&&ec.ypcTrailerRenderer}else if(Rb.playerLegacyDesktopYpcOfferRenderer)bb=Rb.playerLegacyDesktopYpcOfferRenderer;else if(Rb.ypcTrailerRenderer){jb=Rb.ypcTrailerRenderer;var A=jb.fullVideoMessage;a.vp=A?g.wG(A):"";var D,E;a.Np=(null==(D=g.S(jb,kQa))?void 0:null==(E=D.videoDetails)?void 0:E.videoId)||""}bb&&(a.zp=bb.itemTitle||"",bb.itemUrl&&(a.IA=bb.itemUrl),bb.itemBuyUrl&&
(a.nA=bb.itemBuyUrl),a.xA=bb.itemThumbnail||"",a.kB=bb.offerHeadline||"",a.Cp=bb.offerDescription||"",a.Ul=bb.offerId||"",a.KA=bb.offerButtonText||"",a.sL=bb.offerButtonFormattedText||null,a.Jp=bb.overlayDurationMsec||NaN,a.vp=bb.fullVideoMessage||"",a.sj=!0);if(jb){var C=g.S(jb,kQa);if(C)a.Xl={raw_player_response:C};else{var K=g.S(jb,lQa);a.Xl=K?$B(K):null}a.sj=!0}}}var Y=a.playerResponse.playbackTracking;if(Y){var ka=b,va=PS(Y.googleRemarketingUrl);va&&(a.googleRemarketingUrl=va);var ea=PS(Y.youtubeRemarketingUrl);
ea&&(a.youtubeRemarketingUrl=ea);var ha=PS(Y.ptrackingUrl);if(ha){var Ea=QS(ha),Da=Ea.oid;Da&&(a.eS=Da);var nb=Ea.pltype;nb&&(a.fS=nb);var Vb=Ea.ptchn;Vb&&(a.cS=Vb);var Lb=Ea.ptk;Lb&&(a.iy=encodeURIComponent(Lb));var Ob=Ea.m;Ob&&(a.Sx=Ob)}var Ab=PS(Y.ppvRemarketingUrl);Ab&&(a.ppvRemarketingUrl=Ab);var Kb=PS(Y.qoeUrl);if(Kb){for(var Fc=g.bC(Kb),yc=g.u(Object.keys(Fc)),$c=yc.next();!$c.done;$c=yc.next()){var Wc=$c.value,ad=Fc[Wc];Fc[Wc]=Array.isArray(ad)?ad.join(","):ad}a.jU=Fc;var kd=Fc.cat;kd&&(a.Jo=
kd);var Zb=Fc.live;Zb&&(a.yO=Zb);var Kd=Fc.drm_product;Kd&&(a.Rx=Kd)}var xd=PS(Y.remarketingUrl);if(xd){a.remarketingUrl=xd;var $b=QS(xd);$b.foc_id&&(a.S.focEnabled=!0);var bd=$b.data;bd&&(a.S.rmktEnabled=!0,bd.engaged&&(a.S.engaged="1"));a.S.baseUrl=Sea(xd)+ul(g.wl(5,xd))}var cd=PS(Y.videostatsPlaybackUrl);if(cd){var kb=QS(cd);a.vc=kb;var Hb=kb.adformat;if(Hb){ka.adformat=Hb;var Oe=a.W(),qf=nPa(Hb,a.Oz,Oe.D,Oe.K);qf&&(a.adFormat=qf)}var cf=kb.aqi;cf&&(ka.ad_query_id=cf);var pe=kb.autoplay;pe&&(a.fl=
"1"==pe,a.Rp="1"==pe);var Ce=kb.autonav;Ce&&(a.isAutonav="1"==Ce);var qe=kb.delay;qe&&(a.kb=Le(qe));var $g=kb.ei;$g&&(a.eventId=$g);"adunit"===kb.el&&(a.fl=!0);var tg=kb.feature;tg&&(a.Ko=tg);var ah=kb.list;ah&&(a.playlistId=ah);var bh=kb.of;bh&&(a.vQ=bh);var ch=kb.osid;ch&&(a.osid=ch);var dh=kb.referrer;dh&&(a.referrer=dh);var De=kb.sdetail;De&&(a.py=De);var Ee=kb.sourceid;Ee&&(a.Ufb=Ee);var dd=kb.ssrt;dd&&(a.No="1"==dd);var Sd=kb.subscribed;Sd&&(a.subscribed="1"==Sd,a.S.subscribed=Sd);var Ed=kb.uga;
Ed&&(a.userGenderAge=Ed);var eh=kb.upt;eh&&(a.bz=eh);var fh=kb.vm;fh&&(a.videoMetadata=fh)}var gh=PS(Y.videostatsWatchtimeUrl);if(gh){var df=QS(gh).ald;df&&(a.wB=df)}if(Y.promotedPlaybackTracking){var ed=Y.promotedPlaybackTracking;ed.startUrls&&(a.ly=ed.startUrls);ed.firstQuartileUrls&&(a.aS=ed.firstQuartileUrls);ed.secondQuartileUrls&&(a.wK=ed.secondQuartileUrls);ed.thirdQuartileUrls&&(a.xK=ed.thirdQuartileUrls);ed.completeUrls&&(a.ZR=ed.completeUrls);ed.engagedViewUrls&&(1<ed.engagedViewUrls.length&&
g.UF(new g.nD("There are more than one engaged_view_urls.")),a.Oi=ed.engagedViewUrls[0])}}var rc=a.playerResponse.playerCueRanges;rc&&0<rc.length&&(a.cueRanges=rc);var Ph=a.playerResponse.playerCueRangeSet;Ph&&g.mQa(a,Ph);a:{var Qh=a.playerResponse.adPlacements;if(Qh)for(var Rh=g.u(Qh),Sh=Rh.next();!Sh.done;Sh=Rh.next()){var ef=void 0,Pe=void 0,Qe=null==(ef=Sh.value.adPlacementRenderer)?void 0:null==(Pe=ef.renderer)?void 0:Pe.videoAdTrackingRenderer;if(Qe){var hh=Qe;break a}}hh=null}var ld=hh;Y&&
Y.promotedPlaybackTracking&&ld&&g.UF(new g.nD("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));ld&&(a.cX=!0);var zc=a.playerResponse.playerAds;if(zc)for(var Oc=b,rf=g.u(zc),sf=rf.next();!sf.done;sf=rf.next()){var Gf=sf.value;if(Gf){var Wf=Gf.playerLegacyDesktopWatchAdsRenderer;if(Wf){var ug=Wf.playerAdParams;if(ug){"1"==ug.autoplay&&(a.fl=!0,a.Rp=!0);a.sx=ug.encodedAdSafetyReason||null;void 0!==ug.showContentThumbnail&&(a.Ol=!!ug.showContentThumbnail);Oc.enabled_engage_types=
ug.enabledEngageTypes;break}}}}var rd=a.playerResponse.playerConfig;if(rd){var Xf=rd.manifestlessWindowedLiveConfig;if(Xf){var zi=Number(Xf.minDvrSequence),vg=Number(Xf.maxDvrSequence),ih=Number(Xf.minDvrMediaTimeMs),jh=Number(Xf.maxDvrMediaTimeMs),Th=Number(Xf.startWalltimeMs);zi&&(a.cf=zi);ih&&(a.Cb=ih/1E3);vg&&(a.lh=vg);jh&&(a.Yc=jh/1E3);Th&&(a.Bd=Th/1E3);var wg=zi||ih,xg=vg||jh;a.W().N("html5_set_windowed_live_using_config")&&wg&&xg&&(a.Pa=!0,a.isLivePlayback=!0,a.allowLiveDvr=!0,a.ze=!1)}var Fe=
rd.daiConfig;if(Fe){if(Fe.enableDai){a.Mf=!0;var Uh=Fe.enableServerStitchedDai;Uh&&(a.enableServerStitchedDai=Uh);var Yf=Fe.enablePreroll;Yf&&(a.enablePreroll=Yf)}var kh;if("DAI_TYPE_SS_DISABLED"===Fe.daiType||(null==(kh=Fe.debugInfo)?0:kh.isDisabledUnpluggedChannel))a.CL=!0}var Zf=rd.audioConfig;if(Zf){var Yi=Zf.loudnessDb;null!=Yi&&(a.Qi=Yi);Zf.audioMuted&&(a.Al=!0);Zf.muteOnStart&&(a.dU=!0)}var Ge=rd.playbackEndConfig;if(Ge){var He=Ge.endSeconds,Td=Ge.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&
(He&&(a.endSeconds=He),a.W().N("embeds_enable_muted_autoplay")&&Td&&(a.limitedPlaybackDurationInSeconds=Td))}var lh=rd.fairPlayConfig;if(lh){var ff=lh.certificate;ff&&(a.eb=RR(ff));var tf=Number(lh.keyRotationPeriodMs);0<tf&&(a.Wx=tf);var $f=Number(lh.keyPrefetchMarginMs);0<$f&&(a.Vx=$f)}var gf=rd.playbackStartConfig;if(gf){a.JR=Number(gf.startSeconds);var mh=gf.liveUtcStartSeconds,nh=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds;mh&&!nh&&(a.liveUtcStartSeconds=Number(mh));var uf=gf.startPosition;
if(uf){var yg=uf.utcTimeMillis;yg&&!nh&&(a.liveUtcStartSeconds=.001*Number(yg));var zg=uf.streamTimeMillis;zg&&(a.mj=.001*Number(zg))}a.progressBarStartPosition=gf.progressBarStartPosition;a.progressBarEndPosition=gf.progressBarEndPosition}else{var oh=rd.skippableSegmentsConfig;if(oh){var Ai=oh.introSkipDurationMs;Ai&&(a.BL=Number(Ai)/1E3);var Bi=oh.outroSkipDurationMs;Bi&&(a.eQ=Number(Bi)/1E3)}}var Pk=rd.skippableIntroConfig;if(Pk){var Rl=Number(Pk.startMs),Re=Number(Pk.endMs);isNaN(Rl)||isNaN(Re)||
(a.eh=Rl,a.Le=Re)}var Ie=rd.streamSelectionConfig;Ie&&(a.Ad=Number(Ie.maxBitrate));var Se=rd.vrConfig;Se&&(a.Iz="1"==Se.partialSpherical);var Ag=rd.webDrmConfig;if(Ag){Ag.skipWidevine&&(a.eU=!0);var Zi=Ag.widevineServiceCert;Zi&&(a.Tl=RR(Zi));Ag.useCobaltWidevine&&(a.useCobaltWidevine=!0);Ag.startWithNoQualityConstraint&&(a.Jl=!0)}var Bg=rd.mediaCommonConfig;if(Bg){var Mj=Bg.dynamicReadaheadConfig;if(Mj){a.maxReadAheadMediaTimeMs=Mj.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=Mj.minReadAheadMediaTimeMs||
NaN;a.readAheadGrowthRateMs=Mj.readAheadGrowthRateMs||NaN;var $i,Nj=null==Bg?void 0:null==($i=Bg.mediaUstreamerRequestConfig)?void 0:$i.videoPlaybackUstreamerConfig;Nj&&(a.Ij=RR(Nj));var aj=null==Bg?void 0:Bg.sabrContextUpdates;aj&&aj.length&&(a.sabrContextUpdates=aj)}var Sl=Bg.serverPlaybackStartConfig;Sl&&(a.serverPlaybackStartConfig=Sl)}var Ci=rd.inlinePlaybackConfig;Ci&&(a.cC=!!Ci.showAudioControls);var Vh=rd.embeddedPlayerConfig;if(Vh){a.embeddedPlayerConfig=Vh;var Wh=Vh.embeddedPlayerMode;if(Wh){var bj=
a.W();bj.Ya=Wh;bj.C="EMBEDDED_PLAYER_MODE_PFL"===Wh}var Oj=Vh.permissions;Oj&&(a.allowImaMonetization=!!Oj.allowImaMonetization)}var Pj=rd.ssapConfig;Pj&&(a.FW=Pj.ssapPrerollEnabled||!1);var Xh=rd.webPlayerConfig;Xh&&(Xh.gatewayExperimentGroup&&(a.gatewayExperimentGroup=Xh.gatewayExperimentGroup),Xh.isProximaEligible&&(a.isProximaLatencyEligible=!0))}var re=a.playerResponse.streamingData;if(re){var Cg=re.adaptiveFormats;if(Cg){var Yh=re.streamingUrlTemplate;if(a.N("enable_streaming_url_template")&&
Yh)for(var Qj=g.u(Cg),vf=Qj.next();!vf.done;vf=Qj.next()){var Rj=vf.value;!Rj.url&&Rj.distinctParams&&(Rj.url=Yh+"&"+Rj.distinctParams)}}var Qk=re.formats;if(Qk){var cj=[],wf=g.u(Qk);for(vf=wf.next();!vf.done;vf=wf.next()){var xf=vf.value;cj.push(xf.itag+"/"+xf.width+"x"+xf.height)}a.wL=cj.join(",");cj=[];var ag=g.u(Qk);for(vf=ag.next();!vf.done;vf=ag.next()){var Di=vf.value,Ei={itag:Di.itag,type:Di.mimeType,quality:Di.quality},Tl=Di.url;Tl&&(Ei.url=Tl);var Sj=JP(Di),nc=Sj.Hy,xs=Sj.dB,hq=Sj.s;Sj.uW&&
(Ei.url=nc,Ei.sp=xs,Ei.s=hq);cj.push(g.Cl(Ei))}a.Gf=cj.join(",")}var Ul=re.hlsFormats;if(Ul){var Eo=rd||null,dj={};if(Eo){var Vl=Eo.audioPairingConfig;if(Vl&&Vl.pairs)for(var Sm=g.u(Vl.pairs),Tj=Sm.next();!Tj.done;Tj=Sm.next()){var Wl=Tj.value,Rk=Wl.videoItag;dj[Rk]||(dj[Rk]=[]);dj[Rk].push(Wl.audioItag)}}for(var iq={},jq=g.u(Ul),Uj=jq.next();!Uj.done;Uj=jq.next()){var kq=Uj.value;iq[kq.itag]=kq.bitrate}var Sk=[],Tk=g.u(Ul);for(Uj=Tk.next();!Uj.done;Uj=Tk.next()){var Te=Uj.value,Zh={itag:Te.itag,
type:Te.mimeType,url:Te.url,bitrate:Te.bitrate,width:Te.width,height:Te.height,fps:Te.fps},Tm=Te.audioTrack;if(Tm){var lq=Tm.displayName;lq&&(Zh.name=lq,Zh.audio_track_id=Tm.id,Tm.audioIsDefault&&(Zh.is_default="1"))}if(Te.drmFamilies){for(var Um=[],ph=g.u(Te.drmFamilies),qh=ph.next();!qh.done;qh=ph.next())Um.push(nNa[qh.value]);Zh.drm_families=Um.join(",")}var se=dj[Te.itag];if(se&&se.length){Zh.audio_itag=se.join(",");var Fi=iq[se[0]];Fi&&(Zh.bitrate+=Fi)}var $h=YMa(Te);$h&&(Zh.eotf=$h);Te.audioChannels&&
(Zh.audio_channels=Te.audioChannels);Sk.push(g.Cl(Zh))}a.hlsFormats=Sk.join(",")}var Fo=re.licenseInfos;if(Fo&&0<Fo.length){for(var Uk={},Xl=g.u(Fo),Vk=Xl.next();!Vk.done;Vk=Xl.next()){var mq=Vk.value,Yl=mq.drmFamily,Vm=mq.url;Yl&&Vm&&(Uk[nNa[Yl]]=Vm)}a.xe=Uk}var Wm=re.drmParams;Wm&&(a.drmParams=Wm);var nq=re.dashManifestUrl;nq&&(a.Ub=g.Dl(nq,{cpn:a.clientPlaybackNonce}));var oq=re.hlsManifestUrl;oq&&(a.hlsvp=oq);var Zl=re.probeUrl;Zl&&(a.probeUrl=mK(g.Dl(Zl,{cpn:a.clientPlaybackNonce})));var Xm=
re.serverAbrStreamingUrl;Xm&&(a.qy=new g.ZP(Xm,!0))}var Ym=a.playerResponse.trackingParams;Ym&&(a.Ca=Ym);var uc=a.playerResponse.videoDetails;if(uc){var Hf=b,ai=uc.videoId;ai&&(a.videoId=ai,Hf.video_id||(Hf.video_id=ai));var Zm=uc.channelId;Zm&&(a.S.uid=Zm.substr(2));var $l=uc.title;$l&&(a.title=$l,Hf.title||(Hf.title=$l));var $m=uc.lengthSeconds;$m&&(a.lengthSeconds=Number($m),Hf.length_seconds||(Hf.length_seconds=$m));var Wk=uc.keywords;Wk&&(a.keywords=eQa(Wk));var Xk=uc.channelId;Xk&&(a.Hl=Xk,
Hf.ucid||(Hf.ucid=Xk));var am=uc.viewCount;am&&(a.rawViewCount=Number(am));var ej=uc.author;ej&&(a.author=ej,Hf.author||(Hf.author=ej));var fj=uc.shortDescription;fj&&(a.shortDescription=fj);var Vj=uc.isCrawlable;Vj&&(a.isListed=Vj);var an=uc.musicVideoType;an&&(a.musicVideoType=an);var bn=uc.isLive;null!=bn&&(a.isLivePlayback=bn);if(bn||uc.isUpcoming)a.isPremiere=!uc.isLiveContent;var Go=uc.thumbnail;Go&&(a.ma=OS(Go));var cn=uc.isExternallyHostedPodcast;cn&&(a.isExternallyHostedPodcast=cn);var dn=
uc.viewerLivestreamJoinPosition;if(null==dn?0:dn.utcTimeMillis)a.dA=Le(dn.utcTimeMillis);var en=rd||null,Ho=b;uc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);uc.isUpcoming&&(a.isUpcoming=!0);if(uc.isPostLiveDvr)a.ze=!0;else{var Io=!1;if(a.rb)a.allowLiveDvr=MR()?!0:FC&&5>lT?!1:!0,a.isLivePlayback=!0;else if(uc.isLive){Ho.livestream="1";a.allowLiveDvr=uc.isLiveDvrEnabled?MR()?!0:FC&&5>lT?!1:!0:!1;a.Fa=27;uc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var pq=uc.latencyClass;pq&&(a.latencyClass=
nQa[pq]||"UNKNOWN");var qq=uc.liveChunkReadahead;qq&&(a.liveChunkReadahead=qq);var Yk=en&&en.livePlayerConfig;if(Yk){Yk.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Yk.hasSubfragmentedWebm&&(a.uD=!0);Yk.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var Jo=Yk.liveExperimentalContentId;Jo&&(a.liveExperimentalContentId=Number(Jo));var Ko=Yk.isLiveHeadPlayable;a.N("html5_live_head_playable")&&null!=Ko&&(a.isLiveHeadPlayable=Ko)}Io=!0}else uc.isUpcoming&&(Io=!0);Io&&(a.isLivePlayback=
!0,Ho.adformat&&"8"!==Ho.adformat.split("_")[1]||a.Ja.push("heartbeat"),a.Ap=!0)}var rq=uc.isPrivate;void 0!==rq&&(a.isPrivate=JC(a.isPrivate,rq))}if(wa){var sq=uc||null,bm=!1,Wj=wa.errorScreen;bm=Wj&&(Wj.playerLegacyDesktopYpcOfferRenderer||Wj.playerLegacyDesktopYpcTrailerRenderer||Wj.ypcTrailerRenderer)?!0:sq&&sq.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(wa.status);if(!bm){a.errorCode=gPa(wa.errorCode)||"auth";var cm=Wj&&Wj.playerErrorMessageRenderer;if(cm){a.playerErrorMessageRenderer=
cm;var Lo=cm.reason;Lo&&(a.errorReason=g.wG(Lo));var Gi=cm.subreason;Gi&&(a.Xm=g.wG(Gi),a.Xx=Gi)}else a.errorReason=wa.reason||null;var Xj=wa.status;if("LOGIN_REQUIRED"===Xj)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===Xj)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===Xj){var Zk=wa.errorScreen,tq=Zk&&Zk.playerKavRenderer;a.errorDetail=tq&&tq.kavUrl?"4":"3"}else a.errorDetail=wa.isBlockedInRestrictedMode?"5":"0"}}var uq=a.playerResponse.interstitialPods;uq&&uPa(a,uq);a.Ya&&a.eventId&&(a.Ya=
dC(a.Ya,{ei:a.eventId}));var $k=a.playerResponse.captions;if($k&&$k.playerCaptionsTracklistRenderer)a:{var Dg=$k.playerCaptionsTracklistRenderer;a.captionTracks=[];if(Dg.captionTracks)for(var Eg=g.u(Dg.captionTracks),bi=Eg.next();!bi.done;bi=Eg.next()){var If=bi.value,vq=cQa(If.baseUrl);if(!vq)break a;var ys=new g.JS({is_translateable:!!If.isTranslatable,languageCode:If.languageCode,languageName:If.name&&g.wG(If.name),url:vq,vss_id:If.vssId,kind:If.kind});a.captionTracks.push(ys)}a.HB=Dg.audioTracks||
[];a.FU=Dg.defaultAudioTrackIndex||0;a.yx=[];if(Dg.translationLanguages)for(var wq=g.u(Dg.translationLanguages),Yj=wq.next();!Yj.done;Yj=wq.next()){var gj=Yj.value,Fg={};Fg.languageCode=gj.languageCode;Fg.languageName=g.wG(gj.languageName);if(gj.translationSourceTrackIndices){Fg.translationSourceTrackIndices=[];for(var fn=g.u(gj.translationSourceTrackIndices),bg=fn.next();!bg.done;bg=fn.next())Fg.translationSourceTrackIndices.push(bg.value)}if(gj.excludeAudioTrackIndices){Fg.excludeAudioTrackIndices=
[];var xq=g.u(gj.excludeAudioTrackIndices);for(bg=xq.next();!bg.done;bg=xq.next())Fg.excludeAudioTrackIndices.push(bg.value)}a.yx.push(Fg)}a.IB=[];if(Dg.defaultTranslationSourceTrackIndices){var Zj=g.u(Dg.defaultTranslationSourceTrackIndices);for(bg=Zj.next();!bg.done;bg=Zj.next())a.IB.push(bg.value)}a.xx=!!Dg.contribute&&!!Dg.contribute.captionsMetadataRenderer}a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.JR=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&&
a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&wPa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var al;a.compositeLiveIngestionOffsetToken=null==(al=a.playerResponse.playbackTracking)?void 0:al.compositeLiveIngestionOffsetToken;var bl;a.compositeLiveStatusToken=null==(bl=a.playerResponse.playbackTracking)?void 0:bl.compositeLiveStatusToken}aQa(a,b);b.queue_info&&(a.queueInfo=
b.queue_info);var gn=b.hlsdvr;null!=gn&&(a.allowLiveDvr="1"==gn?MR()?!0:FC&&5>lT?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.sx||(a.sx=b.encoded_ad_safety_reason||null);a.RT=b.agcid||null;a.AB=b.ad_id||null;a.CB=b.ad_sys||null;a.dC=b.encoded_ad_playback_context||null;a.Al=JC(a.Al,b.infringe||b.muted);a.fU=b.authkey;a.KT=b.authuser;a.mutedAutoplay=JC(a.mutedAutoplay,b&&b.playmuted)&&a.N("embeds_enable_muted_autoplay");a.CK=JC(a.CK,b&&b.mutedautoplay)&&a.N("embeds_enable_muted_autoplay");var dm=b.length_seconds;
dm&&(a.lengthSeconds="string"===typeof dm?Le(dm):dm);if(a.isAd()||a.El||!g.OC(g.nS(a.La)))a.endSeconds=LC(a.endSeconds,a.eQ||b.end||b.endSeconds);else{var yq=g.nS(a.La),ak=a.lengthSeconds;switch(yq){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":30<ak?a.limitedPlaybackDurationInSeconds=30:30>ak&&10<ak&&(a.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.limitedPlaybackDurationInSeconds=.2*ak}}a.Ca=MC(a.Ca,b.itct);a.DL=JC(a.DL,b.noiba);a.FL=
JC(a.FL,b.is_live_destination);a.isLivePlayback=JC(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.Fc();b.isUpcoming&&(a.isUpcoming=JC(a.isUpcoming,b.isUpcoming));a.ze=JC(a.ze,b.post_live_playback);a.N("html5_set_windowed_live_using_config")&&a.Pa&&(a.ze=!1);a.isMdxPlayback=JC(a.isMdxPlayback,b.mdx);var cl=b.mdx_control_mode;cl&&(a.mdxControlMode="number"===typeof cl?cl:Le(cl));a.isInlinePlaybackNoAd=JC(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Mb=
LC(a.Mb,b.reload_count);a.reloadReason=MC(a.reloadReason,b.reload_reason);a.Ol=JC(a.Ol,b.show_content_thumbnail);a.GL=JC(a.GL,b.utpsa);a.EK=JC(a.EK,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.FK=b.tkn||null;var dl=NS(b);0<Object.keys(dl).length&&(a.ma=dl);a.va=MC(a.va,b.vvt);a.mdxEnvironment=MC(a.mdxEnvironment,b.mdx_environment);b.source_container_playlist_id&&(a.sourceContainerPlaylistId=b.source_container_playlist_id);b.serialized_mdx_metadata&&(a.serializedMdxMetadata=b.serialized_mdx_metadata);
a.k5=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=MC(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?LC(0,b.index):LC(a.playlistIndex,b.index));a.BT=b.pyv_view_beacon_url;a.HT=b.pyv_quartile25_beacon_url;a.JT=b.pyv_quartile50_beacon_url;a.LT=b.pyv_quartile75_beacon_url;a.GT=b.pyv_quartile100_beacon_url;var Mo=b.remarketing_url;Mo&&(a.remarketingUrl=Mo);var No=b.ppv_remarketing_url;No&&(a.ppvRemarketingUrl=No);var zq=b.session_data;!a.PT&&zq&&
(a.PT=YB(zq,"&").feature);a.isFling=1==LC(a.isFling?1:0,b.is_fling);a.vnd=LC(a.vnd,b.vnd);a.forceAdsUrl=MC(a.forceAdsUrl,b.force_ads_url);a.pk=MC(a.pk,b.ctrl);a.rl=MC(a.rl,b.ytr);a.fv=b.ytrcc;a.ST=b.ytrexp;a.zK=b.ytrext;a.Me=MC(a.Me,b.adformat);a.Oz=MC(a.Oz,b.attrib);a.slotPosition=LC(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.No=JC(a.No,b.ssrt);a.videoId=NC(b)||a.videoId;a.G=MC(a.G,b.vss_credentials_token);a.Jm=MC(a.Jm,b.vss_credentials_token_type);a.rj=JC(a.rj,b.audio_only);a.qL=JC(a.qL,
b.aac_high);a.PF=JC(a.PF,b.prefer_low_quality_audio);a.Jo=MC(a.Jo,b.qoe_cat);a.Om=JC(a.Om,b.download_media);var Aq=b.prefer_gapless;var zs=null!=Aq?JC(a.ea,Aq):a.ea?a.ea:a.La.preferGapless&&a.La.supportsGaplessShorts();a.ea=zs;a:{var Oo=a.playerResponse;if(Oo&&Oo.adPlacements)for(var Po=g.u(Oo.adPlacements),Ud=Po.next();!Ud.done;Ud=Po.next()){var de=Ud.value.adPlacementRenderer;if(null!=de&&"AD_PLACEMENT_KIND_START"===(de.config&&de.config.adPlacementConfig&&de.config.adPlacementConfig.kind)){var Je=
!0;break a}}Je=!1}Je&&(a.adModule=!0,a.Ja.push("ad"));var Bq=b.adaptive_fmts;Bq&&(a.adaptiveFormats=Bq,a.ya("adpfmts",{},!0));var Cq=b.allow_embed;Cq&&(a.allowEmbed="1"==Cq);var Qo=b.backgroundable;Qo&&(a.backgroundable="1"==Qo);var Dq=b.autonav;Dq&&(a.isAutonav="1"==Dq);var Ro=b.autoplay;Ro&&(a.Rp="1"==Ro,a.fl="1"==Ro);var hn=b.iv_load_policy;hn&&(a.annotationsLoadPolicy=KC(a.annotationsLoadPolicy,hn,oS));var So=b.cc_lang_pref;So&&(a.captionsLanguagePreference=MC(So,a.captionsLanguagePreference));
var To=b.cc_load_policy;To&&(a.MF=KC(a.MF,To,oS));var Uo;a.deviceCaptionsOn=null!=(Uo=b.device_captions_on)?Uo:void 0;var Eq;a.jV=null!=(Eq=b.device_captions_lang_pref)?Eq:"";var Fq;a.oL=null!=(Fq=b.viewer_selected_caption_langs)?Fq:[];var Gq=b.cached_load;Gq&&(a.Zu=JC(a.Zu,Gq));"0"==b.dash&&(a.YB=!0);var em=b.dashmpd;em&&(a.Ub=g.Dl(em,{cpn:a.clientPlaybackNonce}));var jn=b.delay;jn&&(a.kb=Le(jn));var el=a.eQ||b.end;void 0!=el&&(a.clipEnd=LC(a.clipEnd,el));var kn=b.fmt_list;kn&&(a.wL=kn);b.heartbeat_preroll&&
a.Ja.push("heartbeat");a.Mm=-Math.floor(10*Math.random());a.ox=-Math.floor(40*Math.random());var Vo=b.is_listed;Vo&&(a.isListed=JC(a.isListed,Vo));var Hq=b.is_private;Hq&&(a.isPrivate=JC(a.isPrivate,Hq));var ln=b.is_dni;ln&&(a.Sd=JC(a.Sd,ln));var Wo=b.dni_color;Wo&&(a.bp=MC(a.bp,Wo));var Xo=b.pipable;Xo&&(a.pipable=JC(a.pipable,Xo));a.XT=a.pipable&&a.La.Jp;a.BK=a.XT&&!a.La.showMiniplayerButton;var bk=b.paid_content_overlay_duration_ms;bk&&(a.paidContentOverlayDurationMs=Le(bk));var fl=b.paid_content_overlay_text;
fl&&(a.paidContentOverlayText=fl);var ci=b.url_encoded_fmt_stream_map;ci&&(a.Gf=ci);var gl=b.hls_formats;gl&&(a.hlsFormats=gl);var hl=b.hlsvp;hl&&(a.hlsvp=hl);var mn=b.live_start_walltime;mn&&(a.HO="number"===typeof mn?mn:Le(mn));var ck=b.live_manifest_duration;ck&&(a.Ml="number"===typeof ck?ck:Le(ck));var nn=b.player_params;nn&&(a.playerParams=nn);var on=b.partnerid;on&&(a.Fa=LC(a.Fa,on));var Iq=b.probe_url;Iq&&(a.probeUrl=mK(g.Dl(Iq,{cpn:a.clientPlaybackNonce})));var dk=b.pyv_billable_url;dk&&fza(dk)&&
(a.Oi=dk);var il=b.pyv_conv_url;il&&fza(il)&&(a.CT=il);fQa(a,b);0<a.startSeconds||(a.startSeconds=LC(a.startSeconds,a.JR||a.BL||b.start||b.startSeconds),a.Jc=a.startSeconds);if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var di=b.live_utc_start;if(null!=di)a.liveUtcStartSeconds=Number(di);else{var ek=a.startSeconds;ek&&isFinite(ek)&&1E9<ek&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var jl=b.utc_start_millis;jl&&(a.liveUtcStartSeconds=.001*
Number(jl))}var Jq=b.stream_time_start_millis;Jq&&(a.mj=.001*Number(Jq));var Gg=a.BL||b.start;void 0==Gg||"1"==b.resume||a.isLivePlayback||(a.clipStart=LC(a.clipStart,Gg));var Jf=b.url_encoded_third_party_media;Jf&&(a.Rl=aC(Jf));var rh=b.ypc_offer_button_formatted_text;if(rh){var Yo=JSON.parse(rh);a.sL=null!=Yo?Yo:null;a.mU=rh}var Kq=b.ypc_offer_button_text;Kq&&(a.KA=Kq);var hj=b.ypc_offer_description;hj&&(a.Cp=hj);var kl=b.ypc_offer_headline;kl&&(a.kB=kl);var ll=b.ypc_full_video_message;ll&&(a.vp=
ll);var Lq=b.ypc_offer_id;Lq&&(a.Ul=Lq);var Mq=b.ypc_buy_url;Mq&&(a.nA=Mq);var Nq=b.ypc_item_thumbnail;Nq&&(a.xA=Nq);var fk=b.ypc_item_title;fk&&(a.zp=fk);var fm=b.ypc_item_url;fm&&(a.IA=fm);var gm=b.ypc_vid;gm&&(a.Np=gm);b.ypc_overlay_timeout&&(a.Jp=Number(b.ypc_overlay_timeout));var Oq=b.ypc_trailer_player_vars;Oq&&(a.Xl=$B(Oq));var Pq=b.ypc_original_itct;Pq&&(a.L9=Pq);a.Hl=MC(a.Hl,b.ucid);b.baseUrl&&(a.S.baseUrl=b.baseUrl);b.uid&&(a.S.uid=b.uid);b.oeid&&(a.S.oeid=b.oeid);b.ieid&&(a.S.ieid=b.ieid);
b.ppe&&(a.S.ppe=b.ppe);b.engaged&&(a.S.engaged=b.engaged);b.subscribed&&(a.S.subscribed=b.subscribed);a.S.focEnabled=JC(a.S.focEnabled,b.focEnabled);a.S.rmktEnabled=JC(a.S.rmktEnabled,b.rmktEnabled);a.Ey=b.storyboard_spec||null;a.Zx=b.live_storyboard_spec||null;a.S_=b.iv_endscreen_url||null;a.dN=JC(a.dN,b.iv3_module);a.Ap=JC(a.Ap,b.ypc_license_checker_module);a.sj=JC(a.sj,b.ypc_module);a.Uf=JC(a.Uf,b.ypc_clickwrap_module);a.sj&&a.Ja.push("ypc");a.Uf&&a.Ja.push("ypc_clickwrap");a.lS={video_id:b.video_id,
eventid:b.eventid,cbrand:b.cbrand,cbr:b.cbr,cbrver:b.cbrver,c:b.c,cver:b.cver,ctheme:b.ctheme,cplayer:b.cplayer,cmodel:b.cmodel,cnetwork:b.cnetwork,cos:b.cos,cosver:b.cosver,cplatform:b.cplatform,user_age:b.user_age,user_display_image:b.user_display_image,user_display_name:b.user_display_name,user_gender:b.user_gender,csi_page_type:b.csi_page_type,csi_service_name:b.csi_service_name,enablecsi:b.enablecsi,enabled_engage_types:b.enabled_engage_types};bQa(a,b);var Qq=b.cotn;Qq&&(a.cotn=Qq);if(oQa(a))mT(a)&&
(a.isLivePlayback&&a.Ub&&(a.dh=!0),a.eb&&(a.Fo=!0));else if(pQa(a))a.dh=!0;else{var Rq,Sq,Zo=(null==(Rq=a.playerResponse)?void 0:null==(Sq=Rq.streamingData)?void 0:Sq.adaptiveFormats)||[];if(0<Zo.length)var hm=qQa(a,Zo);else{var gk=a.adaptiveFormats;if(gk&&!mT(a)){nT(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(GNa=!0);var cg=oT(gk),sh=a.xe,pn=a.lengthSeconds,ml=a.isLivePlayback,ei=a.ze,fi=a.La,As=pNa(cg);if(ml||ei){var Ue=new pR("",null==fi?void 0:fi.experiments,!0);Ue.Fc=!0;Ue.isManifestless=
!0;Ue.C=!ei;Ue.isLive=!ei;Ue.ze=ei;for(var Tq=g.u(cg),nl=Tq.next();!nl.done;nl=Tq.next()){var ij=nl.value,qn=oNa(ij,sh),jj=rR(ij.url,ij.sp,ij.s),ol=jj.get("id");ol&&ol.includes("%7E")&&(Ue.Ca=!0);var rn=Number(ij.target_duration_sec)||5,sn=Number(ij.max_dvr_duration_sec)||14400,Uq=Number(jj.get("mindsq")||jj.get("min_sq")||"0"),$o=Number(jj.get("maxdsq")||jj.get("max_sq")||"0")||Infinity;Ue.cf=Ue.cf||Uq;Ue.lh=Ue.lh||$o;var Vq=!oL(qn.mimeType);jj&&oR(Ue,new fR(jj,qn,{Ej:rn,Um:Vq,lq:sn,cf:Uq,lh:$o,
bA:300,ze:ei}))}Ue.fb||(Ue.B=!!Ue.cf&&!!Ue.lh&&isFinite(Ue.lh));var Wq=Ue}else{if("FORMAT_STREAM_TYPE_OTF"===As){var tn=pn;tn=void 0===tn?0:tn;var pl=new pR("",null==fi?void 0:fi.experiments,!1);pl.duration=tn||0;for(var hk=g.u(cg),Hi=hk.next();!Hi.done;Hi=hk.next()){var Hg=Hi.value,im=oNa(Hg,sh,pl.duration),ql=rR(Hg.url,Hg.sp,Hg.s);if(ql)if("FORMAT_STREAM_TYPE_OTF"===im.streamType)oR(pl,new gR(ql,im,"sq/0"));else{var Xq=MQ(Hg.init),Yq=MQ(Hg.index);oR(pl,new mR(ql,im,Xq,Yq))}}pl.isOtf=!0;var un=pl}else{var jm=
pn;jm=void 0===jm?0:jm;var km=new pR("",null==fi?void 0:fi.experiments,!1);km.duration=jm||0;for(var rl=g.u(cg),kj=rl.next();!kj.done;kj=rl.next()){var Ii=kj.value,Oa=oNa(Ii,sh,km.duration),Bs=MQ(Ii.init),yu=MQ(Ii.index),Cs=rR(Ii.url,Ii.sp,Ii.s);Cs&&oR(km,new mR(Cs,Oa,Bs,yu))}un=km}Wq=un}var zu=Wq;if(0<cg.length){var lm=cg[0];if("hangouts-meet"===a.W().playerStyle&&lm.url){var lA=g.bC(lm.url);a.Po=a.Po||Number(lA.expire)}if(lm.url&&lm.sp&&lm.s){var mA=rR(lm.url,lm.sp,lm.s),nA=rQa(mA);isFinite(nA)&&
!a.N("html5_set_windowed_live_using_config")&&(a.Pa=!0)}}var oA=a.isLivePlayback&&!a.ze&&!a.Pa&&!a.isPremiere;a.N("html5_live_head_playable")&&(!pT(a)&&oA&&a.ya("missingLiveHeadPlayable",{}),"yt"===a.La.Fa&&(zu.eb=!0));zu.Ya=qT(a);hm=zu}else hm=null;a.ya("pafmts",{isManifestFilled:!!hm})}if(hm){sQa(a,hm);var Zw=!0}else Zw=!1;Zw?a.enableServerStitchedDai=a.enableServerStitchedDai&&rT(a):a.Ub&&(a.dh=!0)}var Au=b.adpings;Au&&(a.qx=Au?$B(Au):null);var $w=b.feature;$w&&(a.Ko=$w);var mm=b.referrer;mm&&
(a.referrer=mm);a.clientScreenNonce=MC(a.clientScreenNonce,b.csn);a.fF=LC(a.fF,b.root_ve_type);a.Go=LC(a.Go,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.xz=JC(a.xz,b.upg_content_filter_mode);var vn=b.unplugged_location_info;vn&&(a.qa=vn);var wn=b.unplugged_partner_opt_out;wn&&(a.zB=MC("",wn));a.Qx=JC(a.Qx,b.disable_watch_next);a.Eo=MC(a.Eo,b.internal_ip_override);a.EL=!!b.is_yto_interstitial;(a.interstitials.length||a.EL)&&a.Ja.push("yto");var ax=b.Am;ax&&(a.Am=ax);
b.bK&&(a.bK=b.bK);var bx;a.Oa=null!=(bx=b.csi_timer)?bx:"";a.Qm=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);var xn=b.watch_endpoint;a.N("html5_attach_watch_endpoint_ustreamer_config")&&xn&&iPa(a,xn);a.N("html5_attach_watch_endpoint_ustreamer_config_for_sabr")&&(null==xn?0:xn.ustreamerConfig)&&(a.xo=RR(xn.ustreamerConfig));var cx,dx,ex=null==xn?void 0:null==(cx=xn.loggingContext)?void 0:null==(dx=cx.qoeLoggingContext)?void 0:dx.serializedContextData;ex&&(a.W6=ex);g.eS(a.La)&&a.La.embedsEnableRcat&&
(a.embedsRct=MC(a.embedsRct,b.rct),a.embedsRctn=MC(a.embedsRctn,b.rctn));a.Ho=a.Ho||!!b.pause_at_start;b.default_active_source_video_id&&(a.defaultActiveSourceVideoId=b.default_active_source_video_id)};
aQa=function(a,b){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}if(c){a.Jd=c;var e=a.Jd.playerCueRangeSet;e&&g.mQa(a,e);var f=a.Jd.playerOverlays;if(f){var h=f.playerOverlayRenderer;if(h){var l=h.autonavToggle;l&&(a.autoplaySwitchButtonRenderer=g.S(l,tQa),a.N("web_player_autonav_use_server_provided_state")&&uQa(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var m=h.videoDetails;if(m){var n=m.embeddedPlayerOverlayVideoDetailsRenderer;var p=
m.playerOverlayVideoDetailsRenderer;p&&(p.title&&(b.title=g.wG(p.title)),p.subtitle&&(b.subtitle=g.wG(p.subtitle)))}g.jS(a.La)&&(a.Td=!!h.addToMenu);vQa(a,h.shareButton);a.N("progress_bar_start_end_null_check_killswitch")?(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition):h.startPosition&&h.endPosition&&(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition);var q=h.gatedActionsOverlayRenderer;q&&(a.I3=g.S(q,wQa));var r,t,v,x=g.S(null==
(r=a.Jd)?void 0:null==(t=r.playerOverlays)?void 0:null==(v=t.playerOverlayRenderer)?void 0:v.infoPanel,xQa);if(x){a.AL=Number(null==x?void 0:x.durationMs)||NaN;if(null==x?0:x.infoPanelOverviewViewModel)a.Vd=null==x?void 0:x.infoPanelOverviewViewModel;if(null==x?0:x.infoPanelDetailsViewModel)a.Ll=null==x?void 0:x.infoPanelDetailsViewModel}a.showSeekingControls=!!h.showSeekingControls}}var B,G,F=null==(B=a.Jd)?void 0:null==(G=B.contents)?void 0:G.twoColumnWatchNextResults;if(F){var I=F.desktopOverlay&&
g.S(F.desktopOverlay,yQa);I&&(I.suppressShareButton&&(a.showShareButton=!1),I.suppressWatchLaterButton&&(a.Td=!1))}n&&zQa(a,b,n);var P=LC(0,b.autoplay_count),R=a.Jd,Z,ma=null==(Z=R.contents)?void 0:Z.twoColumnWatchNextResults,ua,oa,ia,Aa=null==(ua=R.playerOverlays)?void 0:null==(oa=ua.playerOverlayRenderer)?void 0:null==(ia=oa.autoplay)?void 0:ia.playerOverlayAutoplayRenderer,X=zPa(a),wa,ca=null==(wa=R.contents)?void 0:wa.singleColumnWatchNextResults;if(ca){var Ra;if((null==(Ra=ca.autoplay)?0:Ra.autoplay)&&
!ca.playlist){var y=ca.autoplay.autoplay.sets,V={},ib=new g.TS(a.W()),fb=null,Za;if(y){for(var $a=g.u(y),ic=$a.next();!ic.done;ic=$a.next()){var Rb=ic.value.autoplayVideoRenderer;if(Rb&&Rb.compactVideoRenderer){fb=Rb.compactVideoRenderer;break}}if(Za=y[0].autoplayVideo){var bb=Za.clickTrackingParams;bb&&(V.itct=bb);V.autonav="1";V.playnext=String(P)}}else V.feature="related-auto";var ec=g.S(Za,g.sT);if(fb){ib.videoId=fb.videoId;var jb=fb.shortBylineText;jb&&(ib.author=g.wG(jb));var A=fb.title;A&&
(ib.title=g.wG(A))}else null!=ec&&ec.videoId&&(ib.videoId=ec.videoId);ib.JC=V;a.suggestions=[];a.wx=ib}}if(X){for(var D=[],E=g.u(X),C=E.next();!C.done;C=E.next()){var K=C.value,Y=void 0,ka=null;if(K.endScreenVideoRenderer){var va=K.endScreenVideoRenderer,ea=va.title;ka=new g.TS(a.W());ka.videoId=va.videoId;ka.lengthSeconds=va.lengthInSeconds||0;var ha=va.publishedTimeText;ha&&(ka.publishedTimeText=g.wG(ha));var Ea=va.shortBylineText;Ea&&(ka.author=g.wG(Ea));var Da=va.shortViewCountText;Da&&(ka.shortViewCount=
g.wG(Da));if(ea){ka.title=g.wG(ea);var nb=ea.accessibility;if(nb){var Vb=nb.accessibilityData;Vb&&Vb.label&&(ka.ariaLabel=Vb.label)}}var Lb=va.navigationEndpoint;if(Lb){Y=Lb.clickTrackingParams;var Ob=g.S(Lb,g.sT),Ab=g.S(Lb,g.IG);Ob?ka.KC=Ob:null!=Ab&&(ka.watchUrl=Ab.url)}var Kb=va.thumbnailOverlays;if(Kb)for(var Fc=g.u(Kb),yc=Fc.next();!yc.done;yc=Fc.next()){var $c=yc.value.thumbnailOverlayTimeStatusRenderer;if($c)if("LIVE"===$c.style){ka.isLivePlayback=!0;break}else if("UPCOMING"===$c.style){ka.isUpcoming=
!0;break}}ka.ma=OS(va.thumbnail)}else if(K.endScreenPlaylistRenderer){var Wc=K.endScreenPlaylistRenderer,ad=Wc.navigationEndpoint;if(!ad)continue;var kd=g.S(ad,g.sT);if(!kd)continue;var Zb=kd.videoId;ka=new g.SS(a.W());ka.playlistId=Wc.playlistId;ka.playlistLength=Number(Wc.videoCount)||0;ka.j=Zb||null;ka.videoId=Zb;var Kd=Wc.title;Kd&&(ka.title=g.wG(Kd));var xd=Wc.shortBylineText;xd&&(ka.author=g.wG(xd));Y=ad.clickTrackingParams;ka.ma=OS(Wc.thumbnail)}ka&&(Y&&(ka.sessionData={itct:Y}),D.push(ka))}a.suggestions=
D}if(Aa){a.mS=!!Aa.preferImmediateRedirect;a.We=a.We||!!Aa.webShowNewAutonavCountdown;a.Pl=a.Pl||!!Aa.webShowBigThumbnailEndscreen;if(a.We||a.Pl){var $b=new g.TS(a.W());$b.videoId=Aa.videoId;var bd=Aa.videoTitle;if(bd){$b.title=g.wG(bd);var cd=bd.accessibility;if(cd){var kb=cd.accessibilityData;kb&&kb.label&&($b.ariaLabel=kb.label)}}var Hb=Aa.byline;Hb&&($b.author=g.wG(Hb));var Oe=Aa.publishedTimeText;Oe&&($b.publishedTimeText=g.wG(Oe));var qf=Aa.shortViewCountText;qf&&($b.shortViewCount=g.wG(qf));
var cf=Aa.thumbnailOverlays;if(cf)for(var pe=g.u(cf),Ce=pe.next();!Ce.done;Ce=pe.next()){var qe=Ce.value.thumbnailOverlayTimeStatusRenderer;if(qe)if("LIVE"===qe.style){$b.isLivePlayback=!0;break}else if("UPCOMING"===qe.style){$b.isUpcoming=!0;break}else if("DEFAULT"===qe.style&&qe.text){$b.lengthText=g.wG(qe.text);var $g=qe.text.accessibility;if($g){var tg=$g.accessibilityData;tg&&tg.label&&($b.ew=tg.label||"")}break}}$b.ma=OS(Aa.background);var ah=Aa.nextButton;if(ah){var bh=ah.buttonRenderer;if(bh){var ch=
bh.navigationEndpoint;if(ch){var dh=g.S(ch,g.sT);dh&&($b.KC=dh)}}}if(Aa.topBadges){var De=Aa.topBadges[0];if(De){var Ee=g.S(De,AQa);Ee&&"BADGE_STYLE_TYPE_PREMIUM"===Ee.style&&($b.bK=!0)}}var dd=Aa.alternativeTitle;dd&&($b.Cs=g.wG(dd));var Sd=ma||null,Ed={autonav:"1",playnext:String(P)};$b.playlistId&&(Ed.autoplay="1");if(Sd){var eh,fh,gh,df,ed=null==(eh=Sd.autoplay)?void 0:null==(fh=eh.autoplay)?void 0:null==(gh=fh.sets)?void 0:null==(df=gh[0])?void 0:df.autoplayVideo;if(ed){var rc=ed.clickTrackingParams;
rc&&(Ed.itct=rc);var Ph=g.S(ed,g.sT);Ph&&($b.BU=Ph)}}else if(Aa){var Qh,Rh,Sh,ef=null==(Qh=Aa.nextButton)?void 0:null==(Rh=Qh.buttonRenderer)?void 0:null==(Sh=Rh.navigationEndpoint)?void 0:Sh.clickTrackingParams;ef&&(Ed.itct=ef)}Ed.itct||(Ed.feature="related-auto");$b.JC=Ed;a.suggestions||(a.suggestions=[]);a.wx=$b}null!=Aa.countDownSecs&&(a.hU=1E3*Aa.countDownSecs);null!=Aa.countDownSecsForFullscreen&&(a.GB=0<=Aa.countDownSecsForFullscreen?1E3*Aa.countDownSecsForFullscreen:-1);var Pe;a.x4=null==
(Pe=Aa.cancelButton)?void 0:Pe.buttonRenderer;a.N("web_autonav_color_transition")&&Aa.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.S(Aa.watchToWatchTransitionRenderer,BQa))}var Qe=zPa(a);if(Qe){var hh,ld,zc,Oc=null==Qe?void 0:null==(hh=Qe[0])?void 0:null==(ld=hh.endScreenVideoRenderer)?void 0:null==(zc=ld.navigationEndpoint)?void 0:zc.clickTrackingParams,rf=g.tT(a);Oc&&rf&&(rf.sessionData={itct:Oc})}a.Jd.currentVideoThumbnail&&(a.ma=OS(a.Jd.currentVideoThumbnail));var sf,Gf,
Wf,ug,rd,Xf=null==(sf=a.Jd)?void 0:null==(Gf=sf.contents)?void 0:null==(Wf=Gf.twoColumnWatchNextResults)?void 0:null==(ug=Wf.results)?void 0:null==(rd=ug.results)?void 0:rd.contents;if(Xf&&Xf[1]){var zi,vg,ih,jh,Th=null==(zi=Xf[1].videoSecondaryInfoRenderer)?void 0:null==(vg=zi.owner)?void 0:null==(ih=vg.videoOwnerRenderer)?void 0:null==(jh=ih.thumbnail)?void 0:jh.thumbnails;Th&&Th.length&&(a.profilePicture=Th[Th.length-1].url)}var wg=NC(b),xg,Fe=null==(xg=a.Jd)?void 0:xg.onResponseReceivedEndpoints;
if(Fe)for(var Uh=g.u(Fe),Yf=Uh.next();!Yf.done;Yf=Uh.next()){var kh=Yf.value;g.S(kh,uT)&&(a.T_=g.S(kh,uT));var Zf=g.S(kh,CQa),Yi=void 0;(a.N("web_key_moments_markers")||a.N("web_heat_map_v2"))&&(null==(Yi=Zf)?0:Yi.entityKeys)&&(a.gy=Zf.entityKeys||[],Zf.visibleOnLoadKeys&&(a.visibleOnLoadKeys=Zf.visibleOnLoadKeys))}if(a.N("web_key_moments_markers")){var Ge=g.vT.getState().entities,He=g.aP("visibility_override","markersVisibilityOverrideEntity");var Td=cP(Ge,"markersVisibilityOverrideEntity",He);a.Ud=
(null==Td?void 0:Td.videoId)===(a.videoId||wg)&&(null==Td?0:Td.visibilityOverrideMarkersKey)?Td.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.pa(a.Ud))}}};
uQa=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
DQa=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
xT=function(a){var b=a.ea,c=!!a.j&&a.j.Fc,d=a.La,e=a.nO(),f=wT(a),h=a.qL,l=a.isOtf(),m=a.UL(),n=a.rb,p=a.Sf,q=new HNa(d);if(d.wd()||d.N("html5_logging_format_selection"))q.B=!0;q.eb=f;q.Ja=h&&d.K;q.Sf=p;g.zC("windows nt 5.1")&&!g.FR&&(q.Un=!0);if(f=e)f=g.zS(d)?NOa(d):!1;f&&(q.va=!0);b&&(q.Un=!0,q.wc=!0);l&&!d.N("html5_otf_prefer_vp9")&&(q.Un=!0);"picasaweb"===d.playerStyle&&(l&&(q.Un=!1),q.Ca=!1);n&&(q.Un=!0);b=d.N("html5_ugc_vod_audio_51")&&!c;l=d.N("html5_ugc_live_audio_51")&&c;q.Pa=b||l;XP(d.G,
YP.CHANNELS)&&(d.N("html5_enable_aac51")&&(q.qa=!0),d.N("html5_enable_ac3")&&(q.D=!0),d.N("html5_enable_eac3")&&(q.G=!0),d.N("html5_enable_ac3_gapless")&&(q.Oa=!0));d.N("html5_block_8k_hfr")&&(q.fb=!0);q.K=g.JJ(d.experiments,"html5_max_selectable_quality_ordinal");q.S=g.JJ(d.experiments,"html5_min_selectable_quality_ordinal");cS&&(q.vc=480);if(c||e)q.Ca=!1;q.kb=!1;c=JNa(d,q.j);0<c&&2160>c&&(EL()||d.N("html5_format_hybridization"))&&(q.j.supportsChangeType=+EL(),q.hj=c);2160<=c&&(q.Fa=!0);NKa()&&(q.j.serveVp9OverAv1IfHigherRes=
0,q.Jc=!1);q.UL=m;q.Ya=g.dE||Lna()&&!m?!1:!0;q.ma=d.N("html5_format_hybridization");q.Cb=d.N("html5_disable_encrypted_vp9_live_non_2k_4k");CC()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.D=!0,q.G=!0);a.ea&&a.isAd()&&(a.vB&&(q.ea=a.vB),a.uB&&(q.C=a.uB));q.Va=a.isLivePlayback&&a.pj()&&a.La.N("html5_drm_live_audio_51");q.xb=a.ZB;return a.Kl=q};
FQa=function(a){jI("drm_pb_s",void 0,a.Oa);a.eb||a.j&&UP(a.j);var b={};a.j&&(b=WKa(a.Px,xT(a),a.La.G,a.j,function(c){return a.ra("ctmp","fmtflt",c)},!0));
b=new GR(b,a.La,a.eU,EQa(a),function(c,d){a.ya(c,d)});
g.L(a,b);a.Fo=!1;a.loading=!0;PNa(b,function(c){jI("drm_pb_f",void 0,a.Oa);for(var d=g.u(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.eb=a.eb;e.Wx=a.Wx;e.Vx=a.Vx;break;case "widevine":e.Tl=a.Tl}a.Io=c;if(0<a.Io.length&&(a.K=a.Io[0],a.La.wd())){c={};d=g.u(Object.entries(a.K.j));for(e=d.next();!e.done;e=d.next()){var f=g.u(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.ya("drmProbe",c)}jT(a)})};
qQa=function(a,b){if(0===b.length||mT(a))return null;nT(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(GNa=!0);var c=a.xe;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.ze,h=a.La,l=qNa(b);if(e||f){h=new pR("",h.experiments,!0);h.C=!f;h.Fc=!0;h.isManifestless=!0;h.isLive=!f;h.ze=f;d=g.u(b);for(e=d.next();!e.done;e=d.next()){var m=e.value;e=qR(m,c);l=JP(m);l=rR(l.Hy||m.url||"",l.dB,l.s);var n=l.get("id");n&&n.includes("%7E")&&(h.Ca=!0);n=Number(m.targetDurationSec||5);m=Number(m.maxDvrDurationSec||
14400);var p=Number(l.get("mindsq")||l.get("min_sq")||"0"),q=Number(l.get("maxdsq")||l.get("max_sq")||"0")||Infinity;h.cf=h.cf||p;h.lh=h.lh||q;var r=!oL(e.mimeType);l&&oR(h,new fR(l,e,{Ej:n,Um:r,lq:m,cf:p,lh:q,bA:300,ze:f}))}h.fb||(h.B=!!h.cf&&!!h.lh&&isFinite(h.lh));c=h}else if("FORMAT_STREAM_TYPE_OTF"===l){d=void 0===d?0:d;f=new pR("",h.experiments,!1);f.duration=d||0;h=g.u(b);for(d=h.next();!d.done;d=h.next())d=d.value,e=qR(d,c,f.duration),l=JP(d),(l=rR(l.Hy||d.url||"",l.dB,l.s))&&("FORMAT_STREAM_TYPE_OTF"===
e.streamType?oR(f,new gR(l,e,"sq/0")):oR(f,new mR(l,e,OQ(d.initRange),OQ(d.indexRange))));f.isOtf=!0;c=f}else{d=void 0===d?0:d;f=new pR("",h.experiments,!1);f.duration=d||0;h=g.u(b);for(d=h.next();!d.done;d=h.next())n=d.value,d=qR(n,c,f.duration),e=OQ(n.initRange),l=OQ(n.indexRange),m=JP(n),(n=rR(m.Hy||n.url||"",m.dB,m.s))&&oR(f,new mR(n,d,e,l));c=f}h=JP(b[0]);b=h.Hy;f=h.dB;h=h.s;b&&f&&h&&(b=rR(b,f,h),b=rQa(b),isFinite(b)&&!a.N("html5_set_windowed_live_using_config")&&(a.Pa=!0));b=a.isLivePlayback&&
!a.ze&&!a.Pa&&!a.isPremiere;a.N("html5_live_head_playable")&&(!pT(a)&&b&&a.ya("missingLiveHeadPlayable",{}),"yt"===a.La.Fa&&(c.eb=!0));c.Ya=qT(a);return c};
rQa=function(a){return Number(a.get("maxdsq"))||Number(a.get("max_sq"))||Infinity};
mT=function(a){return CC()?!GQa(a):DC()?!(!a.eb||!a.N("html5_enable_safari_fairplay")):!1};
GQa=function(a){return a.N("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
EQa=function(a){return a.N("html5_disable_tvos_widevine")||!a.useCobaltWidevine?!1:CC()?GQa(a):!1};
g.mQa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.cueRangeSetIdentifier){var d=void 0;a.AK.set(c.cueRangeSetIdentifier,null!=(d=c.playerCueRanges)?d:[])}};
rT=function(a){return!(!a.j||!a.j.isManifestless)};
yT=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=uR(a.j)};
oQa=function(a){return CC()&&GQa(a)?!1:mT(a)&&g.SJ(a.La)&&!a.isLivePlayback||!MR()||a.YB?!0:!1};
IQa=function(a){a.loading=!0;a.dh=!1;if(pQa(a))g.MPa(a.videoId).then(function(c){HQa(a,c)}).then(function(){jT(a)});
else{kK(a.Ub)||g.UF(new g.nD("DASH MPD Origin invalid: ",a.Ub));var b=a.Ub;b=g.Dl(b,{mpd_version:g.JJ(a.La.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Dl(b,{pacing:0}));yNa(b,a.La.experiments,a.isLivePlayback).then(function(c){a.isDisposed()||(sQa(a,c,!0),jI("mrc",void 0,a.Oa),jT(a))},function(c){a.isDisposed()||(a.loading=!1,a.ra("dataloaderror",new WK("manifest.net.retryexhausted",{backend:"manifest",
rc:c.status},1)))});
jI("mrs",void 0,a.Oa)}};
HQa=function(a,b){var c=b.map(function(l){return l.itag}),d;
if(null!=(d=a.playerResponse)&&d.streamingData){d=[];for(var e=g.u(a.playerResponse.streamingData.adaptiveFormats),f=e.next(),h={};!f.done;h={xq:h.xq},f=e.next())h.xq=f.value,c.includes(h.xq.itag)&&(h.xq=Object.assign({},h.xq),h.xq.url=b.find(function(l){return function(m){return m.itag===l.xq.itag}}(h)).url,h.xq.signatureCipher="",d.push(h.xq));
b=qQa(a,d);sQa(a,b);a.ya("dlr",{})}else a.ya("offsdm",{cotn:a.NO?a.NO.cotn:"0",cpn:a.clientPlaybackNonce})};
jT=function(a){a.isDisposed()||(a.loading=!1,a.ra("dataloaded"))};
sQa=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.L(a,b);b.cf=a.cf;b.lh=a.lh;b.Cb=a.Cb;b.Yc=a.Yc;b.Bd=a.Bd;a.qy&&(b.Va=new tMa(a.qy));JQa(a)&&a.Ja.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.Ml=Number(d[d.indexOf("manifest_duration")+1]));b.C&&(b.subscribe("clienttemp",a.ya,a),c?b.subscribe("refresh",a.bY,a):b.subscribe("cuepointsadded",a.TU,a));UP(b)?a.Fo=!0:HR=void 0;a.N("html5_set_windowed_live_using_config")&&a.Pa&&(b.B=a.Pa,
b.isLive=!0,a.isLivePlayback=!0);b.isPremiere=a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable};
OQa=function(a,b){if(a.isDisposed())return tC();a.C=null;a.fb=null;a.qd=null;nT(a,"html5_high_res_logging_always")&&(a.La.fg=!0);return KQa(a,b).then(void 0,function(){return LQa(a,b)}).then(void 0,function(){return MQa(a)}).then(void 0,function(){return NQa(a)})};
KQa=function(a,b){var c=b||oQa(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.ya("skipDash",{dm:!!a.j,air:b,dd:a.YB,mss:MR(),"3pp":a.isExternallyHostedPodcast}),tC();wT(a)&&CNa(a.j,a.isLivePlayback);nT(a,"html5_enable_cobalt_experimental_vp9_decoder")&&fOa(a.La.G);return uC().then(function(){return YKa(a.Px,xT(a),a.La.G,a.j,a.K,function(d){return a.ra("ctmp","fmtflt",d)},a.fP,qT(a)&&a.N("html5_enable_server_format_filter")).then(function(d){PQa(a,d);
a.Px.j=null;/^av/.test(a.clientPlaybackNonce)&&a.Kl&&a.ya("av1",a.Kl.j)})})};
LQa=function(a,b){if(b&&a.hlsvp)return tC();if(a.hlsFormats){b=oT(a.hlsFormats);var c;if((null==(c=a.Kl)?0:c.B)&&b){c=[];for(var d=g.u(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.ya("hlsfmt",{itags:c.join(".")})}a.Yx=XOa(a.La,b);c=a.clientPlaybackNonce;var f,h,l,m;return bPa(a.La,a.isAd(),b,null!=(m=null==(f=a.playerResponse)?void 0:null==(h=f.captions)?void 0:null==(l=h.playerCaptionsRenderer)?void 0:l.baseUrl)?m:null,a.Ad,c,function(n){return a.ra("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],r=g.u(n),t=r.next();!t.done;t=r.next()){t=t.value;
var v=void 0;q.push(null==(v=t.Lh())?void 0:v.itag);var x=v=void 0;(null==(v=t.Lh())?void 0:null==(x=v.audio)?void 0:x.numChannels)>p&&(p=t.Lh().audio.numChannels)}2<p&&a.ya("hlschl",{mn:p});var B;(null==(B=a.Kl)?0:B.B)&&a.ya("hlsfmtaf",{itags:q.join(".")});var G;if(a.N("html5_enable_vp9_fairplay")&&(null==(G=a.K)?0:DR(G)))for(a.ya("drm",{sbdlfbk:1}),p=g.u(a.Io),q=p.next();!q.done;q=p.next())if(q=q.value,CR(q)){a.K=q;break}zT(a,n)})}return tC()};
MQa=function(a){if(a.isExternallyHostedPodcast&&a.Gf){var b=oT(a.Gf);return b[0]?ePa(a.La,b[0]).then(function(c){zT(a,c)}):tC()}return a.Rl&&a.P_?dPa(a.La,a.isAd(),a.Rl).then(function(c){zT(a,c)}):tC()};
NQa=function(a){if(a.isExternallyHostedPodcast)return tC();var b=oT(a.Gf,a.wL);if(a.hlsvp){var c=YPa(a.hlsvp,a.clientPlaybackNonce,a.Ad);b.push(c)}return cPa(a.La,a.isAd(),b,QQa(a)).then(function(d){zT(a,d)})};
PQa=function(a,b){a.C=b;if(a.C){b=g.u(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;0!==d&&(a.SU[d]=c.id)}}RQa(a);if(a.K&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=kL(a.C.videoInfos[0]),b!=("fairplay"==a.K.flavor)))for(c=g.u(a.Io),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.K=d;break}};
zT=function(a,b){a.qd=b;PQa(a,new QP(g.Yp(a.qd,function(c){return c.Lh()})))};
QQa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.La.j.c,cver:a.La.j.cver};a.iy&&(b.ptk=a.iy,b.oid=a.eS,b.ptchn=a.cS,b.pltype=a.fS,a.Sx&&(b.m=a.Sx));return b};
g.AT=function(a){return mT(a)&&a.eb?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.xe||null};
SQa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.wG(b.text):a.paidContentOverlayText};
TQa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Le(b.durationMs):a.paidContentOverlayDurationMs};
BT=function(a){var b="";if(a.yO)return a.yO;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.Pa?"window":"live");a.ze&&(b="post");return b};
g.CT=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
UQa=function(a){return!!a.Oi||!!a.YR||!!a.ly||!!a.oy||a.cX||a.S.focEnabled||a.S.rmktEnabled};
g.DT=function(a){return!!(a.Ub||a.Gf||a.Rl||a.hlsvp||a.Mv())};
iT=function(a){if(a.N("html5_onesie")&&a.errorCode)return!1;var b=g.Db(a.Ja,"ypc");a.ypcPreview&&(b=!1);return a.Ie()&&!a.loading&&(g.DT(a)||g.Db(a.Ja,"heartbeat")||b)};
oT=function(a,b){a=aC(a);var c={};if(b){b=g.u(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.u(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a};
RQa=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.Il);for(var c=0;c<a.HB.length;c++)for(var d=a.HB[c],e=0;e<b.length;e++){var f=b[e],h=f.Rc.id==d.audioTrackId;if(f.Rc.isDefault&&c==a.FU||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.C=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.j=a.captionTracks[d.forcedCaptionTrackIndex]);
f.B=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}};
vQa=function(a,b){a.showShareButton=!!b;var c,d,e=(null==(c=g.S(b,g.lN))?void 0:c.navigationEndpoint)||(null==(d=g.S(b,g.lN))?void 0:d.command);e&&(a.Oo=!!g.S(e,VQa))};
$Pa=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.Jg=c);if(a.Jg){a.embeddedPlayerConfig=a.Jg.embeddedPlayerConfig||null;if(c=a.Jg.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.Jg.embedPreview){c=c.thumbnailPreviewRenderer;xPa(a,c.controlBgHtml);if(d=c.defaultThumbnail)a.ma=
OS(d);(d=g.S(null==c?void 0:c.videoDetails,WQa))&&zQa(a,b,d);d=g.S(null==c?void 0:c.videoDetails,g.XQa);a.Td=!!c.addToWatchLaterButton;vQa(a,c.shareButton);if(null==d?0:d.musicVideoType)a.musicVideoType=d.musicVideoType;var e,f,h,l,m;if(d=g.S(null==(e=a.Jg)?void 0:null==(f=e.embedPreview)?void 0:null==(h=f.thumbnailPreviewRenderer)?void 0:null==(l=h.playButton)?void 0:null==(m=l.buttonRenderer)?void 0:m.navigationEndpoint,g.sT))iPa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=
Le(c.videoDurationSeconds));c.webPlayerActionsPorting&&wPa(a,c.webPlayerActionsPorting);if(e=g.S(null==c?void 0:c.playlist,YQa)){a.El=!0;f=[];h=Number(e.currentIndex);if(e.contents)for(l=0,m=e.contents.length;l<m;l++)if(c=e.contents[l].playlistPanelVideoRenderer){d=c.shortBylineText?g.wG(c.shortBylineText):"";var n=c.title?g.wG(c.title):"";f.push({author:d,encrypted_id:c.videoId,title:n,channel_path:l===h?b.channel_path:"",profile_picture:l===h?b.profile_picture:"",is_private:l===h?a.isPrivate:!0,
is_dni:l===h?a.Sd:!1,dni_color:l===h?a.bp:""})}b={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:f};e.titleText&&(b.title=g.wG(e.titleText));e.shortBylineText&&(b.author=g.wG(e.shortBylineText));a.eW=b}var p,q,r;if(b=g.S(null==(p=a.Jg)?void 0:null==(q=p.embedPreview)?void 0:null==(r=q.thumbnailPreviewRenderer)?void 0:r.infoPanel,xQa)){a.AL=Number(null==b?void 0:b.durationMs)||NaN;if(null==b?0:b.infoPanelOverviewViewModel)a.Vd=null==b?void 0:b.infoPanelOverviewViewModel;
if(null==b?0:b.infoPanelDetailsViewModel)a.Ll=null==b?void 0:b.infoPanelDetailsViewModel}}if(a.Jg.previewPlayabilityStatus){if(a.jy=a.Jg.previewPlayabilityStatus,p=a.jy,!["OK","LIVE_STREAM_OFFLINE"].includes(p.status)){a.errorCode=gPa(p.errorCode);q=p.errorScreen;if(r=null==q?void 0:q.playerErrorMessageRenderer){a.bC=r;if(b=r.reason)a.errorReason=g.wG(b);if(r=r.subreason)a.Xm=g.wG(r)}else a.errorReason=p.reason||null;switch(p.status){case "LOGIN_REQUIRED":a.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":a.errorDetail=
"2";break;case "AGE_CHECK_REQUIRED":var t;(null==q?0:null==(t=q.playerKavRenderer)?0:t.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=p.isBlockedInRestrictedMode?"5":"0"}}}else a.Jg.playabilityStatus&&(a.Pm=a.Jg.playabilityStatus,ZQa(a)&&(a.errorDetail="0",a.Pm&&((t=a.Pm.embeddedPlayerErrorMessageRenderer)?a.bC=g.S(t,$Qa):a.errorReason=a.Pm.reason||null)));(t=a.Jg.attestation)&&rPa(a,t);(t=a.Jg.permissions)&&t.allowImaMonetization&&(a.allowImaMonetization=!0)}};
zQa=function(a,b,c){var d=c.channelThumbnail;d&&(d=d.thumbnails)&&(d=d[0])&&(b.profile_picture=d.url);var e;if(d=g.S(null==(e=g.S(null==c?void 0:c.channelThumbnailEndpoint,aRa))?void 0:e.urlEndpoint,g.IG))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.S(e,bRa)){if(d=e.title)b.title=g.wG(d);if(e=e.subtitle)b.subtitle=g.wG(e)}if(c=c.expandedRenderer)if(c=g.S(c,cRa)){if(e=c.title)b.expanded_title=g.wG(e);if(e=c.subtitle)b.expanded_subtitle=g.wG(e);if(c=c.subscribeButton)a.subscribeButtonRenderer=
g.S(c,g.ET),a.subscribeButtonRenderer&&(b.ucid=a.subscribeButtonRenderer.channelId,b.subscribed=a.subscribeButtonRenderer.subscribed,a.Ql=!!a.subscribeButtonRenderer.notificationPreferenceToggleButton,a.subscribeButtonRenderer.notificationPreferenceToggleButton&&a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.nL=b.toggledServiceEndpoint||null,a.lL=b.defaultServiceEndpoint||
null):(a.nL=b.defaultServiceEndpoint||null,a.lL=b.toggledServiceEndpoint||null)))}};
g.FT=function(a){return pT(a)&&!a.allowLiveDvr};
GT=function(a){return pT(a)&&a.allowLiveDvr};
pT=function(a){return a.N("html5_live_head_playable")&&rT(a)&&"yt"===a.La.Fa?a.isLiveHeadPlayable:a.isLivePlayback};
g.HT=function(a){return!!a.j&&eNa(a.j)};
g.IT=function(a){return!!a.j&&fNa(a.j)};
JQa=function(a){return a.nO()||g.JT(a)};
g.KT=function(a){return!!a.j&&gNa(a.j)};
g.JT=function(a){return!!a.j&&hNa(a.j)};
g.dRa=function(a){if(a.DK)return null;var b=a.S_;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.eRa=function(a){return a.DK?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.LT=function(a){return a.N("enable_wn_infocards")};
g.MT=function(a){var b,c,d,e;return(g.LT(a)?null==(b=a.Jd)?void 0:null==(c=b.cards)?void 0:c.cardCollectionRenderer:null==(d=a.playerResponse)?void 0:null==(e=d.cards)?void 0:e.cardCollectionRenderer)||null};
g.fRa=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.u(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};
NT=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.La.Va};
g.OT=function(a){return"shortspage"===NT(a)};
PT=function(a){if(a.isAd()&&a.videoId!=a.La.Me)return a.La.Me};
QT=function(a){return a.fl||"detailpage"==NT(a)||"shortspage"==NT(a)||a.mutedAutoplay};
gRa=function(a){var b=a.N("enable_cleanup_masthead_autoplay_hack_fix");return b&&"adunit"==NT(a)?a.Rp:QT(a)?"detailpage"==NT(a)||"shortspage"==NT(a)?a.isAutonav||0<a.Mb:b||"17_8"!==a.adFormat||a.isAutonav||g.xS(a.La)||a.Rp?a.Tf?!1:a.La.Ji||a.La.Oi||!g.eS(a.La)?!b&&"adunit"==NT(a)&&a.Oi?!1:!0:!1:!1:(a.Tf?0:a.fg)&&g.eS(a.La)?!0:!1};
g.RT=function(a){return a.oauthToken||a.La.lk};
hRa=function(a){var b=1,c=g.JJ(a.La.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;c=(null==(d=a.D)?void 0:d.audio.B)||a.Qi;if(a.N("html5_stateful_audio_normalization")&&null!=c){if(a.gU)return Math.min(1,Math.pow(10,-a.QF/20))||b;d=0;a.N("html5_diff_bias_over_ad_content")&&(d=a.isAd()?0:3);c-=Math.min(0,d+Math.max(a.La.Ml,g.JJ(a.La.experiments,"html5_stateful_audio_min_adjustment_value")));a.QF=c}return Math.min(1,Math.pow(10,-c/20))||b};
wT=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===g.JR(a.La)&&"MUSIC"===a.La.j.ctheme;a.rj||!g.qH(a.La)&&!c||!b.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.rj=!0);if(b=g.BC())b=/Starboard\/([0-9]+)/.exec(g.mc()),b=10>(b?parseInt(b[1],10):NaN);c=a.La;c=("TVHTML5_CAST"===g.JR(c)||"TVHTML5"===g.JR(c)&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&"MUSIC"===a.La.j.ctheme;var d;if(d=!a.rj)c||(c=a.La,c=
"TVHTML5"===g.JR(c)&&c.j.cver.startsWith("7")),d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.N("cast_prefer_audio_only_for_atv_and_uploads")||a.N("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c||a.isExternallyHostedPodcast)&&(a.rj=!0);return a.La.deviceIsAudioOnly||a.rj&&a.La.K};
iRa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
ST=function(a){return!(!a.Om||!a.La.K)&&a.Mv()};
jRa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
qT=function(a){if(a.bX||a.cotn||!a.j||a.j.isOtf)return!1;if(a.N("html5_use_sabr_requests_for_debugging"))return!0;var b=!a.j.Fc&&!a.pj(),c=b&&KR&&a.N("html5_enable_sabr_vod_streaming_xhr");b=b&&!KR&&a.N("html5_enable_sabr_vod_non_streaming_xhr");var d=kRa(a),e=a.N("html5_enable_sabr_drm_vod_streaming_xhr")&&a.pj()&&!a.j.Fc&&KR&&"1"!==a.Rx;(c=c||b||d||e)&&!a.qy&&a.ya("sabr",{loc:"m"});return c&&!!a.qy};
kRa=function(a){if(a.enableServerStitchedDai)return!1;var b=a.Fc()&&!a.pj(),c=b&&KR&&a.N("html5_enable_sabr_live_streaming_xhr")&&a.N("html5_sabr_live");b=b&&!KR&&a.N("html5_enable_sabr_live_non_streaming_xhr")&&a.N("html5_sabr_live");var d=a.Fc()&&"ULTRALOW"!==a.latencyClass&&!a.isLowLatencyLiveStream,e=c&&a.ze&&a.N("html5_sabr_post_live"),f=c&&a.isPremiere&&a.N("html5_sabr_premiere");d=(g.FT(a)||GT(a))&&d;var h=(g.FT(a)||GT(a))&&a.isLowLatencyLiveStream&&a.N("html5_sabr_live_low_latency");a=(g.FT(a)||
GT(a))&&"ULTRALOW"===a.latencyClass&&a.N("html5_sabr_live_ultra_low_latency");return c&&(e||f||d||h||a)||b};
g.TT=function(a){return a.FW&&qT(a)};
pQa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.WS(b);return b&&!a.Om};
g.UT=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j;return!!b[a.B.id]&&bQ(b[a.B.id].resource.j)&&!!b[a.D.id]&&bQ(b[a.D.id].resource.j)};
lRa=function(a){return a.jy?["OK","LIVE_STREAM_OFFLINE"].includes(a.jy.status):!0};
ZQa=function(a){return(a=a.Pm)&&a.showError?a.showError:!1};
nT=function(a,b){return a.N(b)?!0:(a.fflags||"").includes(b+"=true")};
hQa=function(a){return a.N("html5_heartbeat_iff_heartbeat_params_filled")};
mRa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
fQa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.oy=new DPa(b));if(b=b.video_masthead_ad_quartile_urls)a.YR=b.quartile_0_url,a.oS=b.quartile_25_url,a.xT=b.quartile_50_url,a.zT=b.quartile_75_url,a.nS=b.quartile_100_url,a.ly=b.quartile_0_urls,a.aS=b.quartile_25_urls,a.wK=b.quartile_50_urls,a.xK=b.quartile_75_urls,a.ZR=b.quartile_100_urls};
eQa=function(a){var b={};a=g.u(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};
cQa=function(a){if(a){if(jza(a))return a;a=kza(a);if(jza(a,!0))return a}return""};
g.nRa=function(a){return a.captionsLanguagePreference||a.La.captionsLanguagePreference||g.CT(a,"yt:cc_default_lang")||a.La.mj};
VT=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
g.tT=function(a){var b;return a.wx||(null==(b=a.suggestions)?void 0:b[0])||null};
g.WT=function(a){var b=a.W(),c=g.oRa(b),d=a.Ca;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=NT(a);"leanback"===f?e="WATCH":b.N("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.rb?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.Go)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:pRa[e]}});a.xz&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.qa)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Ji&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=qRa[b];c.request=d;d=c.user||{};if(b=a.va)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.xb)d.delegatePurchases={oauthToken:b},d.kidsParent={oauthToken:b};c.user=d;if(d=a.contextParams)c.activePlayers=[{playerContextParams:d}];if(a=a.clientScreenNonce)c.clientScreenNonce=a;return c};
g.oRa=function(a){var b=g.xH(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.u(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.j.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:e});e=a.deviceYear;a.N("html5_propagate_device_year")&&e&&(c.tvAppInfo=Object.assign({},c.tvAppInfo,
{deviceYear:e}));if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.Bd)b.thirdParty={embedUrl:a};return b};
vRa=function(a,b,c){var d=a.videoId,e=g.WT(a),f=a.W(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(dF()),referer:document.location.toString(),signatureTimestamp:19619};g.kD();a.isAutonav&&(h.autonav=!0);g.lD(0,141)&&(h.autonavState=g.lD(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.lD(0,66);gRa(a)&&(h.autoplay=!0);f.K&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.forceAdsUrl;if(l){var m={},n=[];l=
l.split(",");l=g.u(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.u(q);for(var r=q.next();!r.done;r=q.next()){var t=g.u(r.value.split("="));r=t.next().value;t=eaa(t);p[r]=t.join("=")}q=p.url;r=p.presetad;t=p.viralresponseurl;var v=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),r&&(m.presetAd=r),t&&(m.viralAdResponseUrl=t),v&&(m.viralCampaignId=
String(v));else if("video_ad"===p.adtype){var x={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=rRa[p.breaktype])x.breakType=p;q&&(x.url=q);r&&(x.presetAd=r);t&&(x.viralAdResponseUrl=t);v&&(x.viralCampaignId=String(v));n.push(x)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.HO;if(null!=m){m={startWalltime:String(m)};if(n=a.Ml)m.manifestDuration=String(n||14400);
h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.Tf?0:a.fg)h.splay=!0;m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.fv)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.rl){n=a.zK;l=[];p=g.u(p.split(","));for(q=p.next();!q.done;q=p.next())if(r=q.value)if((q=r.startsWith("!"))&&(r=r.substr(1)),r=r.split("-"),!(3>r.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:sRa[r[1]]||"UNKNOWN_FORM_FACTOR",clientName:tRa[r[0]]||"UNKNOWN_INTERFACE",
clientVersion:r[2]||"",platform:uRa[r[1]]||"UNKNOWN_PLATFORM"};r={};if(n){t=void 0;try{t=JSON.parse(n)}catch(B){g.UF(B)}t&&(r={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(r.advertisingId=t.advertising_id),void 0!==t.limit_ad_tracking&&null!==t.limit_ad_tracking&&(r.limitAdTracking=t.limit_ad_tracking),q.osName=t.os_name,q.userAgent=t.user_agent,q.windowHeightPoints=t.window_height_points,q.windowWidthPoints=t.window_width_points)}l.push({adSignalsInfo:r,remoteClient:q})}m.remoteContexts=l}n=
a.sourceContainerPlaylistId;l=a.serializedMdxMetadata;if(n||l)p={},n&&(p.mdxPlaybackContainerInfo={sourceContainerPlaylistId:n}),l&&(p.serializedMdxMetadata=l),m.mdxPlaybackSourceContext=p;h.mdxContext=m;m=b.width;0<m&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.eS(f)&&h&&(h.ancestorOrigins=f.ancestorOrigins);a.defaultActiveSourceVideoId&&(h.compositeVideoContext={defaultActiveSourceVideoId:a.defaultActiveSourceVideoId});
c=f.webPlayerContextConfig;f.N("embeds_web_enable_host_flags_innertube")&&c&&(h.encryptedHostFlags=c.encryptedHostFlags);d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);e=a.W();if(f=e.embedConfig)d.serializedThirdPartyEmbedConfig=f;d.captionParams={};f=g.lD(g.kD(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=
a.deviceCaptionsOn:g.vS(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.jV&&(d.captionParams.deviceCaptionsLangPref=a.jV);a.oL.length?d.captionParams.viewerSelectedCaptionLangs=a.oL:g.vS(e)&&(f=g.OKa(),null==f?0:f.length)&&(d.captionParams.viewerSelectedCaptionLangs=f);f="onesie"===a.fetchType&&a.N("html5_onesie_attach_po_token");h="onesie"!==a.fetchType&&a.N("html5_non_onesie_attach_po_token");if(f||h)a=a.W(),a.hg&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.hg);
e.N("fetch_att_independently")&&(d.attestationRequest={omitBotguardData:!0});return d};
xRa=function(a,b){var c,d,e;return g.H(function(f){if(1==f.j)return c={context:g.oRa(a.W()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.zH(wRa),g.z(f,g.nI(b,c,d),2);e=f.B;return f.return(e)})};
yRa=function(a,b,c){vKa(g.JJ(b.experiments,"bg_vm_reinit_threshold"))&&xRa(a,c).then(function(d){d&&(d=d.botguardData)&&g.GKa(d,b)},function(d){a.isDisposed()||(d=YK(d),a.ya("attf",d.details))})};
zRa=function(){this.Cy={}};
XT=function(a,b,c,d,e){b in a.Cy||(c=new g.oK(c,d,{id:b,priority:2,namespace:"appad"}),e.addCueRange(c),a.Cy[b]=c)};
ARa=function(){g.J.apply(this,arguments);this.D=new Set;this.G={};this.S={};this.j={};this.K={};this.C={};this.B=void 0;this.ma=new Set};
CRa=function(a){var b=void 0===b?5:b;return a?BRa[a]||b:b};
ZT=function(a,b,c){g.J.call(this);this.app=a;this.state=b;this.playerType=c;this.j=!0;this.element=null};
DRa=function(a){$T(a,"getInternalApiInterface",a.getInternalApiInterface);$T(a,"cueVideoByPlayerVars",a.cueVideoByPlayerVars);$T(a,"loadVideoByPlayerVars",a.loadVideoByPlayerVars);$T(a,"preloadVideoByPlayerVars",a.preloadVideoByPlayerVars);$T(a,"getAdState",a.getAdState);$T(a,"sendAbandonmentPing",a.sendAbandonmentPing);$T(a,"setLoopRange",a.setLoopRange);$T(a,"getLoopRange",a.getLoopRange);$T(a,"setAutonavState",a.setAutonavState);$T(a,"seekToLiveHead",a.seekToLiveHead);$T(a,"requestSeekToWallTimeSeconds",
a.requestSeekToWallTimeSeconds);$T(a,"seekToStreamTime",a.seekToStreamTime);$T(a,"startSeekCsiAction",a.startSeekCsiAction);$T(a,"getStreamTimeOffset",a.getStreamTimeOffset);$T(a,"getVideoData",a.i5);$T(a,"setInlinePreview",a.setInlinePreview);$T(a,"refreshAllStaleEntities",a.refreshAllStaleEntities);$T(a,"isOrchestrationLeader",a.isOrchestrationLeader);$T(a,"getAppState",a.getAppState);$T(a,"updateLastActiveTime",a.updateLastActiveTime);$T(a,"setBlackout",a.setBlackout);$T(a,"setUserEngagement",
a.setUserEngagement);$T(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);$T(a,"getPresentingPlayerType",a.getPresentingPlayerType);$T(a,"canPlayType",a.canPlayType);$T(a,"updatePlaylist",a.updatePlaylist);$T(a,"updateVideoData",a.updateVideoData);$T(a,"updateEnvironmentData",a.updateEnvironmentData);$T(a,"sendVideoStatsEngageEvent",a.sendVideoStatsEngageEvent);$T(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);$T(a,"setSafetyMode",a.setSafetyMode);$T(a,"isAtLiveHead",
function(b){return a.isAtLiveHead(void 0,b)});
$T(a,"getVideoAspectRatio",a.getVideoAspectRatio);$T(a,"getPreferredQuality",a.getPreferredQuality);$T(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);$T(a,"setPlaybackQualityRange",a.setPlaybackQualityRange);$T(a,"onAdUxClicked",a.onAdUxClicked);$T(a,"getFeedbackProductData",a.getFeedbackProductData);$T(a,"getStoryboardFrame",a.getStoryboardFrame);$T(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);$T(a,"getStoryboardLevel",a.getStoryboardLevel);$T(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);
$T(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);$T(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);$T(a,"addUtcCueRange",a.addUtcCueRange);$T(a,"showAirplayPicker",a.showAirplayPicker);$T(a,"dispatchReduxAction",a.dispatchReduxAction);$T(a,"getPlayerResponse",a.getPlayerResponse);$T(a,"getHeartbeatResponse",a.getHeartbeatResponse);$T(a,"changeMarkerVisibility",a.changeMarkerVisibility);$T(a,"setAutonav",a.setAutonav);$T(a,"isNotServable",a.isNotServable);$T(a,"channelSubscribed",
a.channelSubscribed);$T(a,"channelUnsubscribed",a.channelUnsubscribed);$T(a,"togglePictureInPicture",a.togglePictureInPicture);$T(a,"supportsGaplessAudio",a.supportsGaplessAudio);$T(a,"supportsGaplessShorts",a.supportsGaplessShorts);$T(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
$T(a,"clearQueue",a.clearQueue);$T(a,"getAudioTrack",a.J4);$T(a,"setAudioTrack",a.setAudioTrack);$T(a,"getAvailableAudioTracks",a.K4);$T(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);$T(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);$T(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);$T(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);$T(a,"setMinimized",a.setMinimized);$T(a,"setOverlayVisibility",a.setOverlayVisibility);$T(a,"confirmYpcRental",a.confirmYpcRental);
$T(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);$T(a,"isSubtitlesOn",a.isSubtitlesOn);$T(a,"queueNextVideo",a.queueNextVideo);$T(a,"handleExternalCall",a.handleExternalCall);$T(a,"logApiCall",a.logApiCall);$T(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);$T(a,"setScreenLayer",a.setScreenLayer);$T(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);$T(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);$T(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);$T(a,
"syncVolume",a.syncVolume);$T(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem);$T(a,"openSettingsMenuItem",a.openSettingsMenuItem);$T(a,"getVisibilityState",a.getVisibilityState);$T(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);$T(a,"setGlobalCrop",a.setGlobalCrop);$T(a,"setInternalSize",a.setInternalSize)};
aU=function(a,b,c){a.state.G[b]=function(){return c.apply(a,g.Ja.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||$T(a,b,c);a.state.D.add(b)};
bU=function(a,b,c){a.state.S[b]=function(){return c.apply(a,g.Ja.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||$T(a,b,c);a.state.D.add(b)};
$T=function(a,b,c){a.state.j[b]=function(){return c.apply(a,g.Ja.apply(0,arguments))}};
g.cU=function(a,b,c){return a.state.j[b].apply(a.state.j,g.pa(c))};
FRa=function(a){a.state.B||(a.state.B={addEventListener:function(b,c){ERa(a,b,c)},
removeEventListener:function(b,c){c="string"===typeof c?b+c:b+String(g.ab(c));var d=a.state.C[c];d&&(a.app.tq.unsubscribe(b,d),g.md(a.state.C,c))}});
return a.state.B};
ERa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.ab(c));if(!a.state.C[d]){var e="string"===typeof c?function(){var h=g.Ja.apply(0,arguments);g.Ta(c).apply(window,h)}:c;
var f=function(h){e({target:a.state.B,data:h})};
a.state.C[d]=f;a.app.tq.subscribe(b,f)}};
GRa=function(a,b){b=void 0===b?a.playerType:b;var c={};if(b=g.dU(a.app,b)){b=b.getVideoData();if(b.isPrivate)return{};c.video_id=b.videoId;c.author=b.author;c.title=b.title;c.isPlayable=lRa(b);c.errorCode=b.errorCode;if(b.B&&b.B.video){c.video_quality=b.B.video.quality;b=b.B.video;var d=[];32<b.fps&&d.push("hfr");b.isHdr()&&d.push("hdr");"bt2020"===b.primaries&&d.push("wcg");c.video_quality_features=d}}if(a=a.getPlaylistId())c.list=a;return c};
g.eU=function(a){var b=HRa(a.app.Eb());if(b)return b.pH();a=a.app.Eb();a=g.mS(a.J.W())?a.Ue.get("music"):void 0;return a?a.pH():null};
IRa=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 fU(a)};
fU=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.u(JRa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
KRa=function(a,b,c,d){if(g.Xa(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};
gU=function(a,b,c,d){ZT.call(this,a,b,d);c&&(DRa(this),LRa(this))};
LRa=function(a){aU(a,"cueVideoById",a.cueVideoById);aU(a,"loadVideoById",a.loadVideoById);aU(a,"cueVideoByUrl",a.cueVideoByUrl);aU(a,"loadVideoByUrl",a.loadVideoByUrl);aU(a,"playVideo",a.playVideo);aU(a,"pauseVideo",a.pauseVideo);aU(a,"stopVideo",a.stopVideo);aU(a,"clearVideo",a.clearVideo);aU(a,"getVideoBytesLoaded",a.getVideoBytesLoaded);aU(a,"getVideoBytesTotal",a.getVideoBytesTotal);aU(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);aU(a,"getVideoStartBytes",a.getVideoStartBytes);aU(a,"cuePlaylist",
a.cuePlaylist);aU(a,"loadPlaylist",a.loadPlaylist);aU(a,"nextVideo",a.nextVideo);aU(a,"previousVideo",a.previousVideo);aU(a,"playVideoAt",a.playVideoAt);aU(a,"setShuffle",a.setShuffle);aU(a,"setLoop",a.setLoop);aU(a,"getPlaylist",a.e5);aU(a,"getPlaylistIndex",a.getPlaylistIndex);aU(a,"getPlaylistId",a.getPlaylistId);aU(a,"loadModule",a.loadModule);aU(a,"unloadModule",a.unloadModule);aU(a,"setOption",a.setOption);aU(a,"getOption",a.getOption);aU(a,"getOptions",a.getOptions);aU(a,"mute",a.mute);aU(a,
"unMute",a.unMute);aU(a,"isMuted",a.isMuted);aU(a,"setVolume",a.setVolume);aU(a,"getVolume",a.getVolume);aU(a,"seekTo",a.seekTo);aU(a,"getPlayerMode",a.getPlayerMode);aU(a,"getPlayerState",a.getPlayerState);aU(a,"getAvailablePlaybackRates",a.getAvailablePlaybackRates);aU(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
aU(a,"setPlaybackQuality",a.setPlaybackQuality);aU(a,"getAvailableQualityLevels",a.getAvailableQualityLevels);aU(a,"getCurrentTime",a.getCurrentTime);aU(a,"getDuration",a.getDuration);aU(a,"addEventListener",a.B3);aU(a,"removeEventListener",a.j$);aU(a,"getDebugText",a.getDebugText);aU(a,"getVideoData",function(){return GRa(a)});
aU(a,"addCueRange",a.addCueRange);aU(a,"removeCueRange",a.removeCueRange);aU(a,"setSize",a.setSize);aU(a,"getApiInterface",a.getApiInterface);aU(a,"destroy",a.destroy);aU(a,"getSphericalProperties",a.getSphericalProperties);aU(a,"setSphericalProperties",a.setSphericalProperties);aU(a,"mutedAutoplay",a.mutedAutoplay);var b=a.app.W();b.S||(aU(a,"getVideoEmbedCode",a.getVideoEmbedCode),aU(a,"getVideoUrl",a.getVideoUrl));aU(a,"getMediaReferenceTime",a.getMediaReferenceTime);aU(a,"getSize",a.getSize);
b.S||aU(a,"logImaAdEvent",a.logImaAdEvent);aU(a,"preloadVideoById",a.preloadVideoById)};
MRa=function(a,b,c){b=g.ne(Math.floor(b),0,100);isFinite(b)&&hU(a.app,{volume:b,muted:a.isMuted()},c)};
NRa=function(a,b){hU(a.app,{muted:!0,volume:a.getVolume()},b)};
ORa=function(a,b){g.iU(a.app)||hU(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
jU=function(a,b,c,d){gU.call(this,a,b,!1,d);this.j=!1;c&&(DRa(this),PRa(this),LRa(this))};
PRa=function(a){bU(a,"cueVideoByPlayerVars",function(b,c){a.cueVideoByPlayerVars(QRa(a,b),c)});
bU(a,"loadVideoByPlayerVars",function(b,c,d,e){a.loadVideoByPlayerVars(QRa(a,b),c,d,e)});
bU(a,"preloadVideoByPlayerVars",function(b,c,d,e){return void a.preloadVideoByPlayerVars(QRa(a,b),c,d,e)});
bU(a,"getVideoData",a.cW);bU(a,"seekBy",a.seekBy);bU(a,"showControls",a.showControls);bU(a,"hideControls",a.hideControls);bU(a,"cancelPlayback",a.cancelPlayback);bU(a,"getProgressState",a.getProgressState);bU(a,"isInline",a.isInline);bU(a,"setInline",a.setInline);bU(a,"setLoopVideo",a.setLoopVideo);bU(a,"getLoopVideo",a.getLoopVideo);bU(a,"getVideoContentRect",a.getVideoContentRect);bU(a,"getVideoStats",a.getVideoStats);bU(a,"getStoryboardFormat",a.getStoryboardFormat);bU(a,"toggleFullscreen",a.toggleFullscreen);
bU(a,"isFullscreen",a.isFullscreen);bU(a,"getPlayerSize",a.getPlayerSize);bU(a,"toggleSubtitles",a.toggleSubtitles);bU(a,"setCenterCrop",a.setCenterCrop);bU(a,"setFauxFullscreen",a.setFauxFullscreen);bU(a,"setSizeStyle",a.setSizeStyle);bU(a,"handleGlobalKeyDown",a.handleGlobalKeyDown);bU(a,"handleGlobalKeyUp",a.handleGlobalKeyUp);bU(a,"wakeUpControls",a.wakeUpControls)};
QRa=function(a,b){var c={};if(a.app.W().Ca){a=g.u(RRa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);b=c.raw_player_response;b||(a=c.player_response)&&(b=JSON.parse(a));delete c.player_response;delete c.raw_player_response;b&&(c.raw_player_response={streamingData:b.streamingData})}else for(a=g.u(SRa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
TRa=function(a){var b=g.nS(a.app.W()),c,d=null==(c=a.app.getVideoData())?void 0:c.El;a=g.iU(a.app);return g.OC(b)&&!d||a?!1:!0};
URa=function(a,b,c){var d=a.app.Ze(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
kU=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.B=this.j=a-1};
VRa=function(a){return a.data[a.j]||0};
lU=function(a){g.J.call(this);this.C=a;this.j=new Map;this.B=new g.au(this.sample,250,this);g.L(this,this.B);this.start()};
mU=function(a,b){if(null==(a=a.j.get(b)))a=void 0;else{a=a.buffer;for(b=[];a.B!==a.j;)a.B=(a.B+1)%a.data.length,b.push(a.data[a.B]);a=b}return a||[]};
nU=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:VRa(c.buffer))||0};
WRa=function(a){this.j=a;this.Pz=NaN;this.buffer=new kU(100)};
g.oU=function(a,b){jU.call(this,a,b,!1);this.cL=null};
g.pU=function(a){a=a.Eb();var b=a.Ue.get("endscreen");return b&&b.ou()?!0:a.rF()||g.mS(a.J.W())};
g.qU=function(a,b){3===a.getPresentingPlayerType()?a.ra("mdxautoplaycancel"):a.ra("autonavcancel",b)};
g.sU=function(a){var b=rU(a.Eb());return a.app.gi&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.Sk()&&b.qp()||!!a.getPlaylist()};
g.tU=function(a){var b=a.W();if(!g.eS(b)||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(b.Ya||"EMBEDDED_PLAYER_MODE_DEFAULT")||a.getPlaylist())return!1;var c=g.eU(a);b=a.getVideoData();a=c?c.uN():a.getPlayerSize();var d;return!!(b&&(null==(d=b.embeddedPlayerConfig)?0:d.isShortsExperienceEligible)&&a.width<=a.height)};
g.XRa=function(a,b,c){g.cU(a,"addEmbedsConversionTrackingParams",[b]);g.FP(b,c)};
g.vU=function(a){return(a=g.uU(a.Eb()))?a.GH():{}};
g.YRa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.wU=function(a,b,c){a=a.tb().element;var d=Tb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.pf(a,b,d);b.setAttribute("data-layer",String(c))};
g.xU=function(a){var b=a.W();if(!b.Le)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay"))&&!VT(c);d=c.isLivePlayback&&(!b.N("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.N("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.Sk();var f=c.Jd&&c.Jd.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Sd&&f;return!c.ypcPreview&&(!d||e)&&!g.Db(c.Ja,"ypc")&&
!a&&(!g.eS(b)||f)};
ZRa=function(a){a=g.dU(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.j||b.mZ)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.B.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.ya("iqss",{trigger:d},!0),!0):!1};
$Ra=function(){jD.apply(this,arguments);this.Ow={}};
yU=function(){aSa||(aSa=new $Ra);return aSa};
bSa=function(a,b){b?a.Ow.Authorization="Bearer "+b:delete a.Ow.Authorization};
zU=function(a,b,c,d){function e(h){var l=!(204!==h.status&&200!==h.status&&!h.response),m;h={succ:""+ +l,rc:h.status,lb:(null==(m=h.response)?void 0:m.byteLength)||0,rt:((0,g.OD)()-f).toFixed(),shost:g.xl(a),trigger:b};cSa(h,a);c&&c(h);d&&!l&&d(new WK("pathprobe.net",h))}
var f=(0,g.OD)();g.oC(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
cSa=function(a,b){var c;(null==(c=window.performance)?0:c.getEntriesByName)&&(b=performance.getEntriesByName(b))&&b.length&&(b=b[0],a.pedns=(b.domainLookupEnd-b.startTime).toFixed(),a.pecon=(b.connectEnd-b.domainLookupEnd).toFixed(),a.perqs=(b.requestStart-b.connectEnd).toFixed(),dSa&&(a.perqsa=b.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
eSa=function(a){this.G=a;this.C=this.B=0;this.D=new kU(50)};
fSa=function(a){a=void 0===a?{}:a;var b=void 0===a.Pj?!1:a.Pj,c=void 0===a.Xr?!1:a.Xr;return(void 0===a.cj?0:a.cj)?c?3:2:b?-1:1};
gSa=function(a,b,c,d,e){this.Da=a;this.policy=b;this.schedule=c;this.My=d;this.ea=e;this.qa=NaN;this.B=this.S=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1;this.ma=NaN};
hSa=function(a,b,c,d,e,f){return b.hg&&b.Le&&3===c?new gSa(a,b,d,e,f):null};
iSa=function(a,b){if(a.policy.XB){var c=b.info.Zb,d=$R(a.schedule);b=b.index.Fj;c=Math.max(1,d/c);a.ma=Math.round(1E3*Math.max(((c-1)*b+a.policy.Cb)/c,b-a.policy.nk))}};
mSa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.K,f=e>=a.policy.Cp,h=!1;if(f){var l=0;!isNaN(b)&&b>a.G&&(l=b-a.G,a.G=b);l/e<a.policy.ZB&&(h=!0);a.K=c}c=d>=a.policy.nk&&!a.C;if(!f&&!c&&jSa(a,b))return NaN;c&&(a.C=!0);a:{d=h;c=kSa?(0,g.OD)():Date.now();c=c/1E3-(a.My.Si()||0);f=a.B.startTime;c=f+(c-a.S.B-a.policy.Cb);if(d){if(isNaN(b)){AU(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.lk;d<c&&(c=d)}else a.C&&(d=c+a.policy.Cb-a.qa+a.policy.aC,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.lk))),
c=d);f=c=Math.max(c,f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&jSa(a,b))return lSa(a,b),NaN;if(a.j<=a.B.startTime)return AU(a,NaN,"y",b),a.clear(),NaN;if(!a.ea(a.j,!1))return!lSa(a,b)&&h&&(AU(a,NaN,"t",b),a.clear()),NaN;h=a.j;AU(a,h,"s",b);a.clear();return h};
lSa=function(a,b){return a.ea(a.j,!0)?!1:(AU(a,NaN,"ns",b),a.clear(),!0)};
jSa=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.C?a.policy.lk:a.policy.YB)};
AU=function(a,b,c,d){var e=a.D.Aq();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.j).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.startTimeSecs).toFixed(0);e.ssr_n=kSa?(0,g.OD)().toFixed(0):Date.now().toFixed(0);e.ssr_f=(1E3*a.S.B).toFixed(0);e.ssr_fa=a.C?"1":"0";e.ssr_o=(1E3*a.My.Si()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.B.j.index;b.tp(a.B.Qa,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.B.Qa)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.B.Qa)).toFixed(0));a.Da.ya("ssr",e)};
g.BU=function(a,b,c,d){d=void 0===d?!1:d;g.tG.call(this,b);var e=this;this.J=a;this.Fa=d;this.S=new g.ZK(this);this.qa=new g.VG(this,c,!0,void 0,void 0,function(){e.CV()});
g.L(this,this.S);g.L(this,this.qa)};
nSa=function(a){a.B&&(document.activeElement&&g.Af(a.element,document.activeElement)&&(Cf(a.B),a.B.focus()),a.B.setAttribute("aria-expanded","false"),a.B=void 0);g.cD(a.S);a.ea=void 0};
CU=function(a,b,c){a.qj()?a.Qb():a.zd(b,c)};
oSa=function(a,b,c,d){d=new g.T({I:"div",Na:["ytp-linked-account-popup-button"],Aa:d,Y:{role:"button",tabindex:"0"}});b=new g.T({I:"div",T:"ytp-linked-account-popup",Y:{role:"dialog","aria-modal":"true",tabindex:"-1"},X:[{I:"div",T:"ytp-linked-account-popup-title",Aa:b},{I:"div",T:"ytp-linked-account-popup-description",Aa:c},{I:"div",T:"ytp-linked-account-popup-buttons",X:[d]}]});g.BU.call(this,a,{I:"div",T:"ytp-linked-account-popup-container",X:[b]},100);var e=this;this.dialog=b;g.L(this,this.dialog);
d.Ua("click",function(){e.Qb()});
g.L(this,d);g.wU(this.J,this.element,4);this.hide()};
g.EU=function(a,b,c,d){g.tG.call(this,a);this.priority=b;c&&g.DU(this,c);d&&this.oe(d)};
g.FU=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{I:c?"a":"div",Na:b,Y:a,X:[{I:"div",T:"ytp-menuitem-icon",Aa:"{{icon}}"},{I:"div",T:"ytp-menuitem-label",Aa:"{{label}}"},{I:"div",T:"ytp-menuitem-content",Aa:"{{content}}"}]}};
GU=function(a,b){a.updateValue("icon",b)};
g.DU=function(a,b){a.updateValue("label",b)};
HU=function(a){g.EU.call(this,g.FU({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.J=a;this.B=this.j=!1;this.Pb=a.qn();a.qg(this.element,this,!0);this.V(this.J,"settingsMenuVisibilityChanged",function(c){b.lc(c)});
this.V(this.J,"videodatachange",this.D);this.Ua("click",this.onClick);this.D()};
IU=function(a){return a?g.wG(a):""};
JU=function(a){g.J.call(this);this.api=a};
KU=function(a){JU.call(this,a);var b=this;$T(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
$T(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new HU(b.api);g.L(b,b.menuItem)})};
pSa=function(a){JU.call(this,a);this.events=new g.ZK(a);g.L(this,this.events);this.events.V(a,"onPlaybackStartExternal",function(){if(!a.isInline()&&1===a.getPresentingPlayerType()){var b,c={contentCpn:(null==(b=a.getVideoData(1))?void 0:b.clientPlaybackNonce)||""};g.sD(g.uD(),function(){a.N("web_enable_abd_ref")?fxa(function(d,e){rxa(d,e,c.contentCpn)}):ova(c)})}});
a.N("enable_ab_report_on_errorscreen")&&this.events.V(a,"videodatachange",function(b,c){var d,e;"ERROR"===(null==(d=c.getPlayerResponse())?void 0:null==(e=d.playabilityStatus)?void 0:e.status)&&fxa(function(f,h){rxa(f,h,c.clientPlaybackNonce)})});
a.N("report_pml_debug_signal")&&this.events.V(a,"videoready",function(b){if(1===a.getPresentingPlayerType()){var c,d,e={playerDebugData:{pmlSignal:!!(null==(c=b.getPlayerResponse())?0:null==(d=c.adPlacements)?0:d.some(function(f){var h;return null==f?void 0:null==(h=f.adPlacementRenderer)?void 0:h.renderer})),
contentCpn:b.clientPlaybackNonce}};g.zD("adsClientStateChange",e)}})};
rSa=function(a,b){g.T.call(this,{I:"button",Na:["ytp-button"],Y:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},X:[{I:"div",T:"ytp-autonav-toggle-button-container",X:[{I:"div",T:"ytp-autonav-toggle-button",Y:{"aria-checked":"true"}}]}]});this.J=a;this.B=[];this.j=!1;this.isChecked=!0;a.zb(this.element,this,113681);this.V(a,"presentingplayerstatechange",this.UB);this.Ua("click",this.onClick);this.J.W().N("web_player_autonav_toggle_always_listen")&&
qSa(this);this.tooltip=b.Ec();g.ub(this,g.LU(b.Ec(),this.element));this.UB()};
qSa=function(a){a.B.push(a.V(a.J,"videodatachange",a.UB));a.B.push(a.V(a.J,"videoplayerreset",a.UB));a.B.push(a.V(a.J,"onPlaylistUpdate",a.UB));a.B.push(a.V(a.J,"autonavchange",a.lT))};
sSa=function(a){a.isChecked=a.isChecked;a.Ha("ytp-autonav-toggle-button").setAttribute("aria-checked",String(a.isChecked));var b=a.isChecked?"Auto-play is on":"Auto-play is off";a.updateValue("title",b);a.updateValue("label",b);MU(a.tooltip)};
tSa=function(a){return a.J.W().N("web_player_autonav_use_server_provided_state")&&uQa(a.Qd())};
uSa=function(a){JU.call(this,a);var b=this;this.events=new g.ZK(a);g.L(this,this.events);var c=a.W();c.Le&&c.N("web_player_move_autonav_toggle")&&this.events.V(a,"standardControlsInitialized",function(){var d=g.eU(a),e=new rSa(a,d);g.L(b,e);d.By(e)})};
NU=function(a,b){g.EU.call(this,g.FU({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{I:"div",T:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Ua("click",this.onClick)};
OU=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))};
vSa=function(a){var b=!a.W().Al&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.PU=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.kH(a))return a.preventDefault(),!0;b.pauseVideo();a=e.getAttribute("href");g.Jva(a,d,!0);return!1};
g.QU=function(a,b,c){if(tS(b.W())&&2!==b.getPresentingPlayerType()){if(g.kH(c))return b.isFullscreen()&&!b.W().externalFullscreen&&b.toggleFullscreen(),c.preventDefault(),!0}else if(b.W().N("embeds_enable_webview_nonjs_navigation")&&g.eS(b.W())&&(IC()||GC()))b=c.target,b instanceof HTMLAnchorElement&&g.En(b,Xfa(a));else{var d=g.kH(c);d&&b.pauseVideo();g.Jva(a,void 0,!0);d&&(g.uH(a),c.preventDefault())}return!1};
xSa=function(){var a=wSa.includes("en-GB")?{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,Y:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}]}:{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,Y:{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"}}]};a.T="ytp-subtitles-button-icon";return a};
ySa=function(){return{I:"div",T:"ytp-spinner-container",X:[{I:"div",T:"ytp-spinner-rotator",X:[{I:"div",T:"ytp-spinner-left",X:[{I:"div",T:"ytp-spinner-circle"}]},{I:"div",T:"ytp-spinner-right",X:[{I:"div",T:"ytp-spinner-circle"}]}]}]}};
zSa=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
g.RU=function(a,b,c){return a.W().We?b:g.vK("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c})};
g.SU=function(a){return a.W().N("web_modern_player_settings")?ASa:a.W().N("web_modern_player_settings_quality_bottom")?BSa:CSa};
TU=function(a){var b=a.N("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";NU.call(this,b,g.SU(a).yK);var c=this;this.J=a;this.j=!1;this.B=new g.au(function(){g.ku(c.element,"ytp-menuitem-highlighted")},0);
this.Pb=a.qn();GU(this,{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{I:"path",Y:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.D,this);this.Ua(DSa,this.C);g.L(this,this.B)};
FSa=function(a){JU.call(this,a);var b=this;this.j=!1;var c;this.N("web_cinematic_watch_settings")&&(null==(c=a.W().webPlayerContextConfig)?0:c.cinematicSettingsAvailable)&&(a.addEventListener("settingsMenuInitialized",function(){ESa(b)}),a.addEventListener("highlightSettingsMenu",function(d){ESa(b);
var e=b.menuItem;"menu_item_cinematic_lighting"===d&&(g.iu(e.element,"ytp-menuitem-highlighted"),g.iu(e.element,"ytp-menuitem-highlight-transition-enabled"),e.B.start())}),$T(a,"updateCinematicSettings",function(d){b.updateCinematicSettings(d)}))};
ESa=function(a){a.menuItem||(a.menuItem=new TU(a.api),g.L(a,a.menuItem),a.menuItem.Sa(a.j))};
UU=function(a,b){g.T.call(this,{I:"a",Na:["ytp-cultural-moment-overlay","ytp-hip-hop-50-overlay","ytp-button"],Y:{title:"{{title}}","aria-label":"{{aria_label}}",href:"{{url}}",target:"_blank"}});var c=this;this.api=a;this.api.zb(this.element,this,188815);this.V(this.element,"click",function(d){d.preventDefault();c.api.wb(c.element);c.api.Ta("innertubeCommand",c.command)});
g.ub(this,g.LU(b.Ec(),this.element))};
HSa=function(a){JU.call(this,a);var b=this;this.B=new g.au(this.j,1E4,this);this.D=!1;this.C=!0;this.events=new g.ZK(a);g.L(this,this.events);g.L(this,this.B);g.vS(a.W())&&this.N("web_player_enable_cultural_moment_overlay")&&(this.events.V(a,"basechromeinitialized",function(){g.L(b,b.culturalMomentOverlay);var c=g.eU(b.api);b.culturalMomentOverlay=new UU(b.api,c);b.G=new g.T({I:"div",Na:["ytp-player-content","ytp-cultural-moment-player-content"],X:[b.culturalMomentOverlay]});g.wU(b.api,b.G.element,
4);b.culturalMomentOverlay.hide()}),this.events.V(a,"presentingplayerstatechange",function(){b.j()}),this.events.V(a,"onHideControls",function(){b.C=!1;
b.j()}),this.events.V(a,"onShowControls",function(){b.C=!0;
b.B.start();b.j()}),this.events.V(a,"videodatachange",function(){var c,d,e,f=null==(c=a.getVideoData())?void 0:null==(d=c.Jd)?void 0:null==(e=d.playerOverlays)?void 0:e.playerOverlayRenderer;
c=g.S(null==f?void 0:f.culturalMomentOverlay,GSa);(null==c?0:c.endpoint)&&null!=(d=b.culturalMomentOverlay)&&(e=c.endpoint,d.command=e,(f=g.S(e,g.IG))?d.updateValue("url",f.url):d.updateValue("url",g.S(e,g.VU).canonicalBaseUrl));(null==c?0:c.tooltipText)&&null!=(d=b.culturalMomentOverlay)&&(e=g.wG(c.tooltipText),d.updateValue("title",e),d.updateValue("aria_label",e));b.D=!!c;b.D&&b.B.start();b.j()}))};
WU=function(a){JU.call(this,a);var b=this;this.j={};this.events=new g.ZK(a);g.L(this,this.events);this.N("enable_precise_embargos")&&!g.SJ(this.api.W())&&(this.events.V(a,"videodatachange",function(){b.onVideoDataChange()}),this.events.V(a,g.pK("embargo"),function(c){b.api.Xn(!0);
var d,e=null!=(d=b.j[c.id])?d:[];d=g.u(e);for(e=d.next();!e.done;e=d.next()){var f=e.value;b.api.hideControls();b.api.Sg("auth",2,"This video isn't available in your current playback area",VK({embargoed:1,id:c.id,idx:c.B,start:c.start}));e=void 0;(f=null==(e=f.embargo)?void 0:e.onTrigger)&&b.api.Ta("innertubeCommand",f)}}))};
ISa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.B)};
JSa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=Number(null==(d=c.playbackPosition)?void 0:d.utcTimeMillis)/1E3,f=void 0;d=e+Number(null==(f=c.duration)?void 0:f.seconds);f="embargo_"+e;a.api.addUtcCueRange(f,e,d,"embargo",!1);c.onEnter&&(a.j[f]=c.onEnter.filter(a.B))}};
KSa=function(a){JU.call(this,a);var b=this;this.j=[];this.events=new g.ZK(a);g.L(this,this.events);$T(a,"addEmbedsConversionTrackingParams",function(c){b.api.W().Ko&&b.addEmbedsConversionTrackingParams(c)});
this.events.V(a,"veClickLogged",function(c){b.api.Wj(c)&&(c=Aj(c.visualElement.getAsJspb(),2),b.j.push(c))})};
LSa=function(a){JU.call(this,a);var b=this;this.events=new g.ZK(a);g.L(this,this.events);a.W().D&&(this.events.V(a,"initialvideodatacreated",function(c){AP(zP(),16623);b.j=g.QF();var d=a.W().Ji&&!c.Tf;if(QT(c)&&d){AP(zP(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.Jd){var e,f=null==(e=c.Jd)?void 0:e.trackingParams;f&&CP(f)}if(c.getPlayerResponse()){var h;(c=null==(h=c.getPlayerResponse())?void 0:h.trackingParams)&&CP(c)}}else AP(zP(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),
c.Jg&&(h=null==(f=c.Jg)?void 0:f.trackingParams)&&CP(h)}),this.events.V(a,"loadvideo",function(){AP(zP(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",
parentCsn:b.j})}),this.events.V(a,"cuevideo",function(){AP(zP(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",
parentCsn:b.j})}),this.events.V(a,"largeplaybuttonclicked",function(c){AP(zP(),27240,c.visualElement)}),this.events.V(a,"playlistnextbuttonclicked",function(c){AP(zP(),27240,c.visualElement)}),this.events.V(a,"playlistprevbuttonclicked",function(c){AP(zP(),27240,c.visualElement)}),this.events.V(a,"playlistautonextvideo",function(){AP(zP(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})}))};
XU=function(a,b){g.T.call(this,{I:"button",Na:["ytp-fullerscreen-edu-button","ytp-button"],X:[{I:"div",Na:["ytp-fullerscreen-edu-text"],Aa:"Scroll for details"},{I:"div",Na:["ytp-fullerscreen-edu-chevron"],X:[{I:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{I:"path",Y:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],Y:{"data-priority":"1"}});this.Za=a;this.ub=b;this.j=new g.VG(this,250,void 0,100);this.C=this.B=!1;a.zb(this.element,this,61214);this.ub=
b;g.L(this,this.j);this.V(a,"fullscreentoggled",this.Sa);this.V(a,"presentingplayerstatechange",this.Sa);this.Ua("click",this.onClick);this.Sa()};
YU=function(a){JU.call(this,a);var b=this;this.events=new g.ZK(a);g.L(this,this.events);$T(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
$T(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
var c=a.W();a.N("external_fullscreen_with_edu")&&c.externalFullscreen&&tS(c)&&"1"===c.controlsType&&this.events.V(a,"standardControlsInitialized",function(){var d=g.eU(a);b.j=new XU(a,d);g.L(b,b.j);d.By(b.j)})};
MSa=function(a){g.T.call(this,{I:"div",T:"ytp-gated-actions-overlay",X:[{I:"div",T:"ytp-gated-actions-overlay-background",X:[{I:"div",T:"ytp-gated-actions-overlay-background-overlay"}]},{I:"button",Na:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Y:{"aria-label":"Close"},X:[g.AG()]},{I:"div",T:"ytp-gated-actions-overlay-bar",X:[{I:"div",T:"ytp-gated-actions-overlay-text-container",X:[{I:"div",T:"ytp-gated-actions-overlay-title",Aa:"{{title}}"},{I:"div",T:"ytp-gated-actions-overlay-subtitle",
Aa:"{{subtitle}}"}]},{I:"div",T:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Ha("ytp-gated-actions-overlay-background");this.B=this.Ha("ytp-gated-actions-overlay-button-container");this.j=[];this.V(this.Ha("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.Ta("onCloseMiniplayer")});
this.hide()};
OSa=function(a,b){var c=0,d={};for(c=0;c<b.length;d={pC:d.pC},c++){var e=a.j[c],f=void 0,h=null==(f=e)?void 0:f.element;h||(h=new g.T({I:"button",T:"ytp-gated-actions-overlay-button",Y:{tabindex:"0"},X:[{I:"div",T:"ytp-gated-actions-overlay-button-title",Aa:"{{buttonText}}"}]}),g.L(a,h),h.Ga(a.B),e={element:h});d.pC=g.S(b[c],NSa);var l=f=void 0,m=void 0,n=(null==(f=d.pC)?void 0:f.title)||(null==(l=d.pC)?void 0:null==(m=l.titleFormatted)?void 0:m.content)||"";h.update({buttonText:n});e.listener&&h.Qc(e.listener);
e.listener=h.Ua("click",function(p){return function(){var q,r=g.S(null==(q=p.pC)?void 0:q.onTap,hG);r&&a.api.Ta("innertubeCommand",r)}}(d));
a.j[c]=e}for(;c<a.j.length;)a.j.pop().element.dispose()};
PSa=function(a){JU.call(this,a);var b=this;this.events=new g.ZK(a);g.L(this,this.events);this.N("enable_courses_player_overlay_purchase")&&(this.j=new MSa(this.api),g.L(this,this.j),this.events.V(a,"videodatachange",function(){var c,d=null==(c=b.api.getVideoData())?void 0:c.I3;c=b.j;if(d){var e,f,h=(null==(e=d.title)?void 0:e.content)||"";e=(null==(f=d.subtitle)?void 0:f.content)||"";c.update({title:h,subtitle:e});h=d.thumbnail;f="none";if(null==h?0:h.sources){e=0;h=g.u(h.sources);for(var l=h.next();!l.done;l=
h.next())l=l.value,l.width&&l.url&&l.width>e&&(e=l.width,f="url("+l.url+")")}c.background.style.backgroundImage=f;OSa(c,d.actionButtons||[]);c.show()}else c.hide()}),g.wU(this.api,this.j.element,4))};
ZU=function(a){JU.call(this,a);var b=this;this.events=new g.ZK(a);g.L(this,this.events);g.vS(a.W())&&($T(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)}),$T(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)}),$T(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)}))};
QSa=function(a,b,c,d){var e=1E3*a.api.getCurrentTime()<c?1:-1;b.XE(e,d);a.api.seekTo(c/1E3)};
$U=function(a){JU.call(this,a);var b=this;this.B=new Map;this.C=this.j=void 0;this.compositeVideoState=null;this.events=new g.ZK(a);g.L(this,this.events);this.events.V(a,"modulecreated",function(c){var d;a:{var e,f,h,l=null==(e=b.api.getVideoData())?void 0:null==(f=e.getPlayerResponse())?void 0:null==(h=f.overlay)?void 0:h.playerControlsOverlayRenderer;if(l&&(e=g.S(l.compositeVideoOverlay,RSa),null==e?0:null==(d=e.sources)?0:d.length))for(d=g.u(null==e?void 0:e.sources),e=d.next();!e.done;e=d.next())if(e=
e.value,e.isActive){d=e;break a}d=void 0}"captions"===c&&void 0!==(null==d?void 0:d.topLeftCornerX)&&void 0!==(null==d?void 0:d.topLeftCornerY)&&void 0!==(null==d?void 0:d.width)&&void 0!==(null==d?void 0:d.height)&&b.api.oK({top:d.topLeftCornerY,right:1-d.topLeftCornerX-d.width,bottom:1-d.topLeftCornerY-d.height,left:d.topLeftCornerX})});
this.events.V(a,"videodatachange",function(c){var d=b.api.getVideoData();b.j=void 0;b.B.clear();b.api.mf("compositeembargo",1);var e=null==d?void 0:d.AK.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==e?0:e.length)?SSa(b,e.filter(function(f){return TSa(b,f)})):(null==d?0:d.cueRanges)&&SSa(b,d.cueRanges.filter(function(f){return TSa(b,f)}));
"dataupdated"===c&&(null==d?void 0:d.compositeLiveStatusToken)!==b.C&&(b.C=null==d?void 0:d.compositeLiveStatusToken,b.api.uo())});
this.events.V(a,g.pK("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)!==c.id&&(b.api.Xn(!0),b.B.has(c.id))){var e=b.B.get(c.id);d=b.api.getVideoData();e=g.u(e);for(var f=e.next();!f.done;f=e.next()){var h=void 0;f=null==(h=f.value.compositeEmbargo)?void 0:h.embargoStatusToken;d.jx!==f&&(d.jx=f,b.api.uo());USa(b,c)}}});
this.events.V(a,g.qK("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)===c.id&&(b.api.Xn(!1),b.B.has(c.id))){if(c=b.api.getVideoData())c.jx=void 0;b.api.uo();USa(b)}});
this.events.V(a,"heartbeatRequest",function(c){null!==b.compositeVideoState&&(c.playbackState||(c.playbackState={}),c.playbackState.compositeVideoState=b.compositeVideoState)});
this.events.V(a,"onPlaybackAudioChange",function(){b.api.uo()});
$T(a,"setCompositeParam",function(c){b.compositeVideoState=c})};
USa=function(a,b){var c;(null==(c=a.j)?void 0:c.id)!==(null==b?void 0:b.id)&&(a.j&&(a.B.delete(a.j.id),a.api.Op([a.j],1)),a.j=b)};
SSa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=void 0;c=Number(null==(e=d.playbackRelativePosition)?void 0:e.utcTimeMs)/1E3;var f=void 0;e=c+Number(null==(f=d.duration)?void 0:f.seconds);f="composite_embargo_"+c;d.onEnter&&(d=d.onEnter.filter(a.D),d.length&&(a.B.set(f,d),a.api.addUtcCueRange(f,c,e,"compositeembargo",!1)))}};
TSa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.D)};
aV=function(a){JU.call(this,a);$T(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));$T(this.api,"updateDownloadState",this.updateDownloadState.bind(this));$T(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));$T(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this))};
VSa=function(a){JU.call(this,a);var b=this;$T(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()})};
WSa=function(a,b,c){var d=[],e=b?156595:151874;a=g.u(a);for(var f=a.next();!f.done;f=a.next()){var h=f.value;f=h.video;h={formatId:h.id,qualityLabel:f.qualityLabel,quality:f.quality,isPlayable:b};if(f=c.get(f.qualityLabel))h.paygatedQualityDetails={paygatedIndicatorText:f.paygatedIndicatorText,endpoint:f.endpoint,veType:e,trackingParams:f.trackingParams};d.push(h)}return d};
XSa=function(a){for(var b=0,c=0;c<a.length;c++)if(a[c].paygatedQualityDetails){var d=a[c];a.splice(c,1);a.splice(b,0,d);b++}};
YSa=function(a){var b=new Set,c=new Map,d={};a=g.u(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.quality,h=e.isPlayable,l=e.qualityLabel;l&&f&&(h&&c.has(f)&&c.get(f)!==l?b.add(f):h&&c.set(f,l),d[l]||(d[l]=e))}c=[];d=g.u(Object.values(d));for(e=d.next();!e.done;e=d.next())e=e.value,(a=e.quality)&&!b.has(a)&&(e.formatId=void 0),c.push(e);return c};
g.cV=function(a,b,c,d,e){b=void 0===b?!1:b;d=void 0===d?!1:d;e=void 0===e?!1:e;g.lG.call(this);this.ea=e;this.S=!1;this.D=new aD(this);this.G=this.K=null;this.C=this.B=!1;g.L(this,this.D);this.target=a;this.j=b;this.ma=c||a;this.S=d;b&&(g.Pc&&this.target.setAttribute("draggable","true"),e||(this.target.style.touchAction="none"));bV(this)};
dV=function(a){g.cD(a.D,!a.j)};
bV=function(a){a.G=null;a.K=null;a.V(eV("over"),a.pw);a.V("touchstart",a.eL);a.j&&a.V(eV("down"),a.O6)};
ZSa=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};
eV=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
aTa=function(a,b){g.T.call(this,{I:"div",Na:["ytp-overlay","ytp-speedmaster-overlay"],X:[{I:"div",T:"ytp-speedmaster-user-edu",Aa:b}]});this.J=a;this.j=this.Ha("ytp-speedmaster-user-edu");this.J.zb(this.j,this,173040,!0);$Sa(this)};
$Sa=function(a){g.yr(a.j,"display","none");a.J.Xa(a.j,!1)};
gV=function(a){JU.call(this,a);var b=this;this.D=this.C=!1;this.Va=g.JJ(this.api.W().experiments,"speedmaster_touch_activation_ms")||500;this.Ca=g.JJ(this.api.W().experiments,"speedmaster_cancellation_movement_dp")||10;this.Pa=g.JJ(this.api.W().experiments,"speedmaster_playback_rate")||2;this.N("web_enable_speedmaster")&&g.vS(this.api.W())&&(this.B=new g.ZK(a),g.L(this,this.B),this.speedmasterUserEdu=new aTa(a,this.G),g.L(this,this.speedmasterUserEdu),g.wU(this.api,this.speedmasterUserEdu.element,
4),this.j=new g.cV(this.api.tb().Qy,!0,null,!1,!0),g.L(this,this.j),this.delay=new g.au(this.Ja,this.Va,this),g.L(this,this.delay),this.B.V(a,"videodatachange",function(c,d){var e,f;if(c=null==(e=d.Jd)?void 0:null==(f=e.playerOverlays)?void 0:f.playerOverlayRenderer){var h,l;(e=null==(h=g.S(c.speedmasterUserEdu,bTa))?void 0:null==(l=h.bodyText)?void 0:l.content)&&e!==b.G&&(b.speedmasterUserEdu.j.textContent=e);b.G=e;fV(b)}},this),this.B.V(a,"presentingplayerstatechange",function(){fV(b)},this),this.B.V(a,
"autonavvisibility",function(){fV(b)},this),this.api.kp().subscribe("visibilitystatechange",function(){fV(b)}),this.B.V(a,"rootnodemousedown",function(c){b.qa=c}),this.N("web_speedmaster_spacebar_control")&&(this.B.V(a,"keyboardserviceglobalkeydown",function(c,d){b.ea=d;
cTa(b,c,!0)},this),this.B.V(a,"keyboardserviceglobalkeyup",function(c){cTa(b,c,!1)},this)))};
hV=function(a){a.delay.stop();a.j.unsubscribe("dragmove",a.S,a);a.j.unsubscribe("dragend",a.K,a);a.C&&(a.C=!1,$Sa(a.speedmasterUserEdu),a.api.setPlaybackRate(a.Fa),a.api.showControls(),a.Oa&&a.api.pauseVideo())};
cTa=function(a,b,c){c?32!==b.keyCode||b.repeat||a.C||!a.D||g.bu(a.delay):hV(a)};
fV=function(a){var b,c;var d=!!a.G&&!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.Bf()&&2!==a.api.getPresentingPlayerType()&&!g.aH(a.api.Tb(),2)&&!(null==(c=g.eU(a.api))?0:c.zg())&&!g.tU(a.api)&&dTa(a.api.kp());a.D!==d&&(a.D=d,a.D?a.j.subscribe("dragstart",a.va,a):(a.j.unsubscribe("dragstart",a.va,a),a.j.unsubscribe("dragmove",a.S,a),a.j.unsubscribe("dragend",a.K,a),hV(a)))};
eTa=function(a){JU.call(this,a);var b=this;this.events=new g.ZK(a);g.L(this,this.events);a.N("html5_enable_ssap")&&($T(this.api,"addPlayerResponseForAssociation",function(c){b.api.addPlayerResponseForAssociation(c)}),$T(this.api,"finishSegmentByCpn",function(c,d){return b.api.finishSegmentByCpn(c,d)}),this.events.V(a,"modulecreated",function(c){if("ad"===c&&(c=b.api.getVideoData(1))&&(c=c.getPlayerResponse())){var d;
c=null!=(d=c.adPlacements)?d:[];d=g.u(c);for(var e=d.next();!e.done;e=d.next()){var f=c=void 0,h=void 0;if(e=null==(c=e.value.adPlacementRenderer)?void 0:null==(f=c.renderer)?void 0:null==(h=f.instreamVideoAdRenderer)?void 0:h.playerVars)c=$B(e),b.api.addPlayerResponseForAssociation(c)}}}),this.events.V(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)}))};
iV=function(a,b,c){g.xb.call(this,b,a);this.j=c};
g.jV=function(a){OL.call(this);var b=this;this.j=a;this.G={};this.listener=function(c){b.dispatchEvent(new iV(b,c.type,c))}};
hTa=function(a){var b=a.Gd(),c=a.getVideoData(),d=a.zf(),e=d.Gb(),f=a.W(),h=b.oD(),l=b.rR,m=8*nU(l,"bandwidth")/1024,n=nU(l,"networkactivity")/1024,p=nU(l,"bufferhealth");if(b.Qe){var q=b.videoData.useInnertubeDrmService()?"IT/":"";q+=b.Qe.j.Lh()+"/"+PP(b.Bv());q+="/"+b.Qe.Lh()}else q="";var r=q,t=b.getPlayerState().state.toString(16),v=d.getCurrentTime().toFixed(2),x=vL(d.Kh(),",",3);q="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(q+=c.CL?"DS":"SS");q+="DAI, ";var B=fTa(b);B&&(q+=B)}var G;
(null==(G=a.getVideoData(1))?0:g.TT(G))?(q+="SSAP, ",(G=fTa(b))&&(q+=G)):qT(c)&&(q+="SABR, ");if(c.fetchType){switch(c.fetchType){case "onesie":G="o";break;case "gp":G="gp";break;default:G="gvi"}q+="vd:"+G+", "}f.kb&&(q=f.kb.j?q+"wa, ":q+"w, ");q+="s:"+t+" t:"+v+" b:"+x+" ";d.Wg()&&(q+="S");d.isPaused()&&(q+="P");d.ri()&&(q+="E");a.isOrchestrationLeader()&&(q+=" L");(d=b.dD())&&(q+=" l:"+d.toFixed());d=b.getCurrentTime();f=c.BB;d&&d>f.start&&d<f.end&&(q+=" as");d=q;q=g.WB(eI)("_start",void 0);f=[];
t=g.u(["pl_i","vir","or_p","orfb","pbs"]);for(v=t.next();!v.done;v=t.next())v=v.value,(x=g.WB(eI)(v,void 0))&&q&&(x-=q,f.push(v+":"+Math.round(x)));q=f.join(" ");f=g.uS();t=g.vU(a).X5;v=c.C&&!c.C.j?"display:none":"";if((x=c.clientPlaybackNonce)&&16==x.length){G=0;B="";for(var F=0;10>F;F++)if(G=(G<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(x.charAt(F)),4==F%5){for(var I="",P=0;6>P;P++)I="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(G&31)+I,G>>=5;B+=I}x=B.substr(0,4)+
" "+B.substr(4,4)+" "+B.substr(8,4)}else x="";m={video_id_and_cpn:String(c.videoId)+" / "+x,codecs:"",dims_and_frames:"",bandwidth_kbps:m.toFixed(0)+" Kbps",buffer_health_seconds:p.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:r?"":"display:none",drm:r,debug_info:d,extra_debug_info:"",bandwidth_style:v,network_activity_style:v,network_activity_bytes:n.toFixed(0)+" KB",shader_info:t,shader_info_style:t?"":"display:none",playback_categories:""};n=e.clientWidth+"x"+e.clientHeight+(1<f?"*"+
f.toFixed(2):"");p="-";h.totalVideoFrames&&(p=(h.droppedVideoFrames||0)+" dropped of "+h.totalVideoFrames);m.dims_and_frames=n+" / "+p;a=a.getVolume();h=hRa(c);var R;n=(null==(R=c.D)?0:R.audio.j)?"DRC":Math.round(a*h)+"%";R=Math.round(a)+"% / "+n;a=c.Qi.toFixed(1);isFinite(Number(a))&&(R+=" (content loudness "+a+"dB)");m.volume=R;m.resolution=e.videoWidth+"x"+e.videoHeight;if(R=c.B)if(e=R.video)a=e.fps,1<a&&(m.resolution+="@"+a),(a=g.kV(b))&&a.video&&(m.resolution+=" / "+a.video.width+"x"+a.video.height,
1<a.video.fps&&(m.resolution+="@"+a.video.fps)),m.codecs=gTa(R),!c.D||R.audio&&R.video?R.FX&&(m.codecs+=" / "+R.FX+"A"):m.codecs+=" / "+gTa(c.D),e.B||e.primaries?(R=e.B||"unknown","smpte2084"===R?R+=" (PQ)":"arib-std-b67"===R&&(R+=" (HLG)"),m.color=R+" / "+(e.primaries||"unknown"),m.color_style=""):m.color_style="display:none";e=c.isLivePlayback;R=c.ze;m.live_mode_style=e||R?"":"display:none";m.live_latency_style=e?"":"display:none";if(R)m.live_mode="Post-Live"+(rT(c)?" Manifestless":"");else if(e){R=
nU(l,"livelatency");m.live_latency_secs=R.toFixed(2)+"s";e=rT(c)?"Manifestless, ":"";c.Pa&&(e+="Windowed, ");a="Uncertain";if(0<=R&&120>R)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":a="Optimized for Normal Latency";break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=a;(R=
b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+R.sequence);m.live_mode=e}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples=mU(l,"bandwidth");m.network_activity_samples=mU(l,"networkactivity");m.live_latency_samples=mU(l,"livelatency");m.buffer_health_samples=mU(l,"bufferhealth");b=g.UT(c);if(c.cotn||b)m.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b;m.cotn_and_local_media_style=m.cotn_and_local_media?
"":"display:none";nT(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20230917_00_RC01",m.release_style=""):m.release_style="display:none";m.debug_info&&0<q.length&&60>=m.debug_info.length+q.length?m.debug_info+=" "+q:m.extra_debug_info=q;m.extra_debug_info_style=m.extra_debug_info&&0<m.extra_debug_info.length?"":"display:none";return m};
gTa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
lV=function(a,b,c,d,e){g.T.call(this,{I:"div",T:"ytp-horizonchart"});this.K=b;this.sampleCount=c;this.D=d;this.G=e;this.index=0;this.heightPx=-1;this.C=this.B=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.K+"em"};
mV=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.lf("CANVAS"),a.B=c.getContext("2d")}catch(l){}if(a.B){var d=a.j*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.j*=4,c=0;c<a.sampleCount;c++)d=g.lf("SPAN"),d.style.width=a.j+"px",d.style.left=a.j*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.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)));b=g.u(b);for(d=b.next();!d.done;d=b.next()){c=a;var e=a.index,f=d.value;for(d=0;d+2<c.D.length&&c.D[d+1]<f;)d++;f=Math.min(1,(f-c.D[d])/(c.D[d+1]-c.D[d]));if(c.B)c.B.fillStyle=c.G[d],c.B.fillRect(e*c.j,0,c.j,c.heightPx),c.B.fillStyle=c.G[d+1],c.B.fillRect(e*c.j,c.heightPx*(1-f),c.j,c.heightPx);else{e=c.element.children[e];var h=window.devicePixelRatio||1;f=Math.min(c.heightPx,Math.round(c.heightPx*f*h)/h)||0;e.style.height=f+"px";e.style.backgroundColor=c.G[d+1];e.style.borderTop=
"solid "+(c.heightPx-f)+"px "+c.G[d]}a.index=(a.index+1)%a.sampleCount}b=a.index;a.B?a.B.clearRect(b*a.j,0,a.j,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
nV=function(a){var b=null;b={I:"button",Na:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],Y:{title:"close"},Aa:"[X]"};g.T.call(this,{I:"div",Na:["html5-video-info-panel","ytp-sfn"],X:[b,{I:"div",Na:["html5-video-info-panel-content","ytp-sfn-content"],X:[{I:"div",X:[{I:"div",Aa:"Video ID / sCPN"},{I:"span",Aa:"{{video_id_and_cpn}}",T:"ytp-sfn-cpn"}]},{I:"div",X:[{I:"div",Aa:"Viewport / Frames"},{I:"span",Aa:"{{dims_and_frames}}"}]},{I:"div",X:[{I:"div",Aa:"Current / Optimal Res"},{I:"span",
Aa:"{{resolution}}"}]},{I:"div",X:[{I:"div",Aa:"Volume / Normalized"},{I:"span",Aa:"{{volume}}"}]},{I:"div",X:[{I:"div",Aa:"Codecs"},{I:"span",Aa:"{{codecs}}"}]},{I:"div",Y:{style:"{{shader_info_style}}"},X:[{I:"div",Aa:"Shader Info"},{I:"span",Aa:"{{shader_info}}"}]},{I:"div",Y:{style:"{{color_style}}"},X:[{I:"div",Aa:"Color"},{I:"span",Aa:"{{color}}"}]},{I:"div",Y:{style:"{{drm_style}}"},X:[{I:"div",Aa:"Protected"},{I:"span",Aa:"{{drm}}"}]},{I:"div",Y:{style:"{{bandwidth_style}}"},X:[{I:"div",Aa:"Connection Speed"},
{I:"span",X:[{I:"span",Aa:"{{bandwidth_chart}}"},{I:"span",Aa:"{{bandwidth_kbps}}"}]}]},{I:"div",Y:{style:"{{network_activity_style}}"},X:[{I:"div",Aa:"Network Activity"},{I:"span",X:[{I:"span",Aa:"{{network_activity_chart}}"},{I:"span",Aa:"{{network_activity_bytes}}"}]}]},{I:"div",X:[{I:"div",Aa:"Buffer Health"},{I:"span",X:[{I:"span",Aa:"{{buffer_health_chart}}"},{I:"span",Aa:"{{buffer_health_seconds}}"}]}]},{I:"div",Y:{style:"{{live_latency_style}}"},X:[{I:"div",Aa:"Live Latency"},{I:"span",X:[{I:"span",
Aa:"{{live_latency_chart}}"},{I:"span",Aa:"{{live_latency_secs}}"}]}]},{I:"div",Y:{style:"{{live_mode_style}}"},X:[{I:"div",Aa:"Live Mode"},{I:"span",Aa:"{{live_mode}}"}]},{I:"div",Y:{style:"{{playback_categories_style}}"},X:[{I:"div",Aa:"Playback Categories"},{I:"span",Aa:"{{playback_categories}}"}]},{I:"div",X:[{I:"div",Aa:"Mystery Text"},{I:"span",Aa:"{{debug_info}}"}]},{I:"div",Y:{style:"{{extra_debug_info_style}}"},X:[{I:"div",Aa:""},{I:"span",X:[{I:"span",Aa:"{{extra_debug_info}}"}]}]},{I:"div",
X:[{I:"div",Aa:"Date"},{I:"span",Aa:"{{date}}"}]},{I:"div",Y:{style:"{{cotn_and_local_media_style}}"},X:[{I:"div",Aa:"COTN / Local Media"},{I:"span",Aa:"{{cotn_and_local_media}}"}]},{I:"div",Y:{style:"{{release_style}}"},X:[{I:"div",Aa:"Player Release"},{I:"span",Aa:"{{release_name}}"}]}]}]});this.Za=a;b?(a=this.Ha("ytp-sfn-close"),this.V(a,"click",this.hide)):this.V(this.element,"click",this.hide);a=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];b="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");
var c=a.map(function(d){return d/4});
this.G={};this.j=new lV(300,1,150,a,b);g.L(this,this.j);this.updateValue("bandwidth_chart",this.j);this.C=new lV(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.L(this,this.C);this.updateValue("live_latency_chart",this.C);this.B=new lV(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.L(this,this.B);this.updateValue("buffer_health_chart",this.B);this.D=new lV(300,1,150,c,b);g.L(this,this.D);this.updateValue("network_activity_chart",
this.D);this.delay=new g.au(this.Sa,500,this);g.L(this,this.delay)};
kTa=function(a){JU.call(this,a);var b=this;$T(a,"getStatsForNerds",function(){return hTa(b.api)});
aU(a,"showVideoInfo",function(){iTa(b,!0)});
aU(a,"hideVideoInfo",function(){iTa(b,!1)});
aU(a,"isVideoInfoVisible",function(){return jTa(b)})};
iTa=function(a,b){var c=jTa(a);a.j||(a.j=new nV(a.api),g.L(a,a.j),g.wU(a.api,a.j.element,4));g.sG(a.j,b);var d=rU(a.api.Eb());d&&d.loaded&&c!==b&&d.zR();b&&a.api.ya("sfn",{},!0)};
jTa=function(a){var b;return!(null==(b=a.j)||!b.Ib)};
oV=function(){g.J.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.Zt(this.j,null,this);g.L(this,this.delay)};
lTa=function(a,b){if("path"===b.I)return b.Y.d;if(b.X)for(var c=0;c<b.X.length;c++){var d=b.X[c];if(d&&"string"!==typeof d&&(d=lTa(a,d)))return d}};
pTa=function(a,b,c){c=lTa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=oG();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=mTa(e),m=mTa(c);nTa(a,function(n){d.setAttribute("d",oTa(l,m,n))},200)};
nTa=function(a,b,c){a.B=b;a.startTime=(0,g.OD)();a.duration=c;a.j()};
mTa=function(a){var b=[];a=a.match(qTa);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};
oTa=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};
pV=function(a,b){g.T.call(this,{I:"button",Na:["ytp-size-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Aa:"{{icon}}"});this.api=a;this.Zv=null;this.transition=new oV;this.tooltip=b.Ec();g.L(this,this.transition);this.V(a,"sizestylechange",this.Sa);this.V(a,"fullscreentoggled",this.Sa);this.V(a,"presentingplayerstatechange",this.Sa);a.zb(this.element,this,139116);this.Sa();this.Ua("click",this.onClick);g.ub(this,
g.LU(this.tooltip,this.element))};
rTa=function(a){JU.call(this,a);var b=this;this.events=new g.ZK(a);g.L(this,this.events);a.W().El||this.events.V(a,"standardControlsInitialized",function(){var c=g.eU(a);b.button=new pV(a,c);g.L(b,b.button);c.By(b.button)})};
sTa=function(a){JU.call(this,a);var b=this;aU(this.api,"getPlaybackRate",function(){return b.api.getPlaybackRate()});
aU(this.api,"setPlaybackRate",function(c){"number"===typeof c&&b.api.setPlaybackRate(c)})};
qV=function(a){function b(e){e="https://jnn-pa.googleapis.com"+e;return c?g.so(e,"$httpHeaders",d):e}
var c=void 0===c?!1:c;this.Pf=a;this.j={};var d={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw","Content-Type":"application/json+protobuf"};this.j={method:"POST",format:"RAW",postBodyFormat:"JSPB",headers:c?{}:d};this.B=b("/$rpc/google.internal.waa.v1.Waa/Create");this.C=b("/$rpc/google.internal.waa.v1.Waa/GenerateIT")};
uTa=function(a,b){UO(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(TO(a,112),TO(a,c<<1^c>>31));UO(a,16,b.p6);UO(a,17,b.detailedNetworkType);UO(a,18,b.W3);UO(a,19,b.V3);UO(a,21,b.R$);UO(a,23,b.K3);UO(a,28,b.iQ);UO(a,29,b.faa);UO(a,34,b.visibility);c=b.playbackRate;if(void 0!==c){var d=new ArrayBuffer(4);(new Float32Array(d))[0]=c;c=(new Uint32Array(d))[0];if(void 0!==c)for(TO(a,285),SO(a,4),d=0;4>d;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}UO(a,36,b.y4);
YO(a,38,b.mediaCapabilities,tTa,3);UO(a,39,b.eaa);UO(a,40,b.qV);UO(a,44,b.playerState);VO(a,46,b.v4);UO(a,48,b.B$);UO(a,50,b.Yu);UO(a,51,b.bx);UO(a,54,b.Pp);VO(a,56,b.L6);UO(a,57,b.b4);VO(a,58,b.Un);UO(a,59,b.hj);UO(a,60,b.uw);VO(a,61,b.isPrefetch)};
vTa=function(a){return{aM:PO(a,2),videoId:NO(a,3),VR:LO(a,4)}};
wTa=function(a){return{gI:PO(a,1)}};
tTa=function(a,b){var c;if(b.sK)for(c=0;c<b.sK.length;c++)YO(a,1,b.sK[c],xTa,1);if(b.rG)for(c=0;c<b.rG.length;c++)YO(a,2,b.rG[c],yTa,1);UO(a,5,b.P5)};
yTa=function(a,b){UO(a,1,b.audioCodec);UO(a,2,b.numChannels);UO(a,3,b.mw);UO(a,6,b.P$)};
xTa=function(a,b){UO(a,1,b.I_);UO(a,3,b.maxHeight);UO(a,4,b.maxWidth);UO(a,11,b.maxFramerate);UO(a,12,b.mw);VO(a,15,b.b6)};
BTa=function(a){return{I9:LO(a,1),itag:NO(a,3),MY:OO(a,4,zTa),Zj:LO(a,5),leb:LO(a,7),xtags:NO(a,15),H6:OO(a,23,ATa),Sz:OO(a,34,wTa)}};
zTa=function(a){return{iv:MO(a,5),e6:YFa(a,7)}};
ATa=function(a){return{videoId:NO(a,2)}};
ETa=function(a,b){YO(a,2,b.Is,uTa,3);YO(a,3,b.iO,CTa,3);WO(a,4,b.onesieUstreamerConfig);WO(a,9,b.xo);YO(a,10,b.eK,DTa,3)};
FTa=function(a,b){UO(a,1,b.type);WO(a,2,b.value)};
GTa=function(a){return{T9:YFa(a,8)}};
HTa=function(a){return{OJ:LO(a,1),PJ:LO(a,2),seekSource:LO(a,3)}};
DTa=function(a,b){YO(a,1,b.clientInfo,ITa,3);WO(a,3,b.playbackCookie);WO(a,4,b.xo);var c;if(b.NJ)for(c=0;c<b.NJ.length;c++)YO(a,5,b.NJ[c],FTa,3);XO(a,7,b.L$)};
JTa=function(a,b){UO(a,1,b.Di);UO(a,2,b.KM);UO(a,3,b.gx)};
KTa=function(a){return{Di:LO(a,1),KM:LO(a,2),gx:LO(a,3)}};
ITa=function(a,b){XO(a,12,b.deviceMake);XO(a,13,b.deviceModel);UO(a,16,b.clientName);XO(a,17,b.clientVersion);XO(a,18,b.osName);XO(a,19,b.osVersion)};
CTa=function(a,b){WO(a,2,b.sV);WO(a,5,b.encryptedClientKey);WO(a,6,b.iv);WO(a,7,b.GW);VO(a,10,b.uZ);VO(a,13,b.pV);VO(a,14,b.MM);WO(a,16,b.uaa);VO(a,17,b.F_)};
LTa=function(a,b){XO(a,1,b.name);XO(a,2,b.value)};
MTa=function(a){return{minBandwidthBytesPerSec:LO(a,1),minReadaheadMs:LO(a,2)}};
NTa=function(a,b){XO(a,1,b.url);var c;if(b.WN)for(c=0;c<b.WN.length;c++)YO(a,2,b.WN[c],LTa,3);WO(a,3,b.postBody);VO(a,4,b.Y9);VO(a,6,b.tF)};
OTa=function(a){return{EY:LO(a,1),IW:LO(a,2),body:MO(a,4)}};
PTa=function(a){return{startMinReadaheadPolicy:QO(a,1,MTa),resumeMinReadaheadPolicy:QO(a,2,MTa)}};
QTa=function(a,b){var c;if(b.ML)for(c=0;c<b.ML.length;c++)XO(a,1,b.ML[c]);WO(a,2,b.H3);XO(a,3,b.Ns);UO(a,4,b.HZ);UO(a,5,b.Gaa);XO(a,6,b.Haa)};
g.RTa=function(a,b){YO(a,1,b.Is,uTa,1);WO(a,3,b.videoPlaybackUstreamerConfig);YO(a,6,b.TA,QTa,3)};
rV=function(a){JU.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.Hb=null;this.G=!1;this.B=null;this.D=0;var c=a.W().webPlayerContextConfig;this.events=new g.ZK(a);g.L(this,this.events);this.events.V(a,"spsumpstatuschange",function(d){b.Tp=d.Tp;a.W().wd()&&b.api.ya("sps",{status:b.Tp||""});if(b.N("html5_handle_sps_status"))if(1===b.Tp)b.D=0;else if(2===b.Tp||3===b.Tp)if(b.G&&!b.B&&STa(b),3===b.Tp)if(b.D++,d=d.h$,!d||b.D<d){b.api.rI(!0);var e;null==(e=b.B)||e.then(function(){b.api.rI(!1)})}else b.api.Sg("ump.spsrejectfailure",
1,"HTML5_SPS_UMP_STATUS_REJECTED")});
this.useLivingRoomPoToken=!(null==c||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.Hb=a.oi();var d=(b.N("html5_generate_session_po_token")||b.N("html5_generate_content_po_token"))&&!b.useLivingRoomPoToken;try{d&&(b.Hb.Fi("pot_isc"),TTa(b),b.N("html5_webpo_idle_priority_job")?g.sD(g.uD(),function(){UTa(b)}):UTa(b))}catch(e){e instanceof Error&&g.UF(e)}});
a.aR(this)};
VTa=function(a,b){var c=a.N("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN";var d=a.N("html5_webpo_critical_experiment")?"6BW35shnjYbBdd0Xn55t":a.N("html5_webpo_critical_control")?"Av5DGcHDtt8bC80Ew9nc":a.N("html5_po_token_enable_webpo_experimental")?"bxNLZUJrsnkb8KzwCOTR":a.N("html5_generate_content_po_token")?"cpYJehUPFA4JYTzKNoEQ":LR(b.experiments,"html5_mock_content_binding_for_session_token")?"Lw8FZiO1SU2A58z2DDu7":"O43z0dpjhgX20SCx4KAo";b=g.UJ(b)?c:
d;a.N("html5_placeholder_po_tokens")&&(b="2ZCPXHYZSpebQXqOYNtj");return b};
TTa=function(a){function b(h){g.UF(h)}
var c=a.api.W(),d=VTa(a,c);try{var e=a.N("html5_po_token_enable_webpo_experimental")?new qV(d):Uga(d),f=WNa(c.experiments);a.j=new wp({Pf:d,onError:b,cz:e,vC:f});g.L(a,a.j)}catch(h){h instanceof Error&&g.UF(h)}};
UTa=function(a){var b=a.api.W();a.Hb.Fi("pot_ist");var c;null==(c=a.j)||c.start();a.N("html5_generate_content_po_token")||(sV(a),STa(a),b=g.JJ(b.experiments,"html5_session_po_token_interval_time_ms")||0,0<b&&(a.C=g.kC(function(){sV(a)},b)),a.G=!0)};
sV=function(a){var b,c,d,e;g.H(function(f){if(!a.N("html5_generate_session_po_token")||a.useLivingRoomPoToken)return f.return();b=a.api.W();c=g.Iv("EOM_VISITOR_DATA")||g.Iv("VISITOR_DATA");d=b.Po?b.datasyncId:c;e=LR(b.experiments,"html5_mock_content_binding_for_session_token")||b.livingRoomPoTokenId||d;b.hg=WTa(a,e);g.ya(f)})};
WTa=function(a,b){if(!a.j)return"";try{var c=a.j.isReady();c?a.Hb.Fi("pot_cms"):a.Hb.Fi("pot_csms");a:{var d=a.j;b={Ry:b};b=Object.assign({},b);b.sC&&!d.cache&&(d.cache=new Lm(Math.min(b.sC.Bfb,150),d.logger));var e;if(!d.isReady()&&(null==(e=b.sC)?0:e.Ndb)){var f=d.cache.read(np(b,d.logger),b.sC.M3);if(f){var h=f;break a}}var l,m=null!=(l=d.j)?l:new vp(d.logger,d.C,d.state),n=new Im(d.logger,m.C);try{if(d.isDisposed())throw new op(21,"BNT:disposed");h=m.G(b);break a}catch(t){n=new Im(d.logger,"e");
var p=t instanceof op?t:new op(5,t);d.logger.SD(p.code);var q;null==(q=d.onError)||q.call(d,p);m=new up(d.logger,p);h=m.G(b);break a}finally{n.done()}h=void 0}if(c){if(a.Hb.Fi("pot_cmf"),a.N("html5_use_sps_ump_part")){var r;null==(r=a.B)||r.resolve();a.B=null}}else a.Hb.Fi("pot_csmf");return h}catch(t){return g.UF(t),""}};
STa=function(a){a.j&&(a.N("html5_use_sps_ump_part")&&(a.B=new NL),a.j.ready().then(function(){a.Hb.Fi("pot_if");sV(a)}))};
XTa=function(a){JU.call(this,a);var b=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.ZK(a);g.L(this,this.events);g.SJ(a.W())&&(this.events.V(a,"heartbeatRequest",function(c){if(b.freePreviewUsageDetails.length||null!==b.freePreviewWatchedDuration)c.heartbeatRequestParams||(c.heartbeatRequestParams={}),c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={}),0<b.freePreviewUsageDetails.length?c.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
b.freePreviewUsageDetails:c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}}),$T(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=c}),$T(a,"setFreePreviewUsageDetails",function(c){b.freePreviewUsageDetails=c}))};
YTa=function(a){g.J.call(this);this.features=[];this.features.push(new KU(a),new VSa(a),new rV(a),new WU(a),new $U(a),new kTa(a),new sTa(a));this.features.push(new XTa(a),new eTa(a));this.features.push(new FSa(a),new YU(a),new PSa(a),new KSa(a),new LSa(a),new uSa(a),new ZU(a),new gV(a),new rTa(a),new HSa(a),new pSa(a),new aV(a));a=g.u(this.features);for(var b=a.next();!b.done;b=a.next())g.L(this,b.value)};
tV=function(){this.B=this.j=NaN};
ZTa=function(a,b){this.Z=a;this.timerName="";this.C=!1;this.B=NaN;this.D=new tV;this.j=b||null;this.C=!1};
$Ta=function(a,b,c){var d=g.jS(b.La)&&!b.La.S;if(b.La.Ll&&(gS(b.La)||"shortspage"===b.La.Va||BS(b.La)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.Iv("TIMING_ACTION")||QB("TIMING_ACTION",a.Z.csiPageType);a.Z.csiServiceName&&QB("CSI_SERVICE_NAME",a.Z.csiServiceName);if(a.j){d=a.j.oi();for(var e=g.u(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,jI(f,d[f],a.timerName);d=a.j.OG;if(g.JJ(a.Z.experiments,"use_csi_stp_handler"))d=g.WB(zwa)(d),g.hI(d,a.timerName);else for(e=g.u(Object.keys(d)),
f=e.next();!f.done;f=e.next())f=f.value,Owa(f,d[f],a.timerName);d=a.j;d.B={};d.OG={}}g.hI({playerInfo:{visibilityState:g.WB(vwa)()},playerType:"LATENCY_PLAYER_HTML5"},a.timerName);a.G!==b.clientPlaybackNonce||Number.isNaN(a.B)||(gI("_start",a.timerName)?c=g.WB(eI)("_start",a.timerName)+a.B:g.UF(new g.nD("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!gI("pbs",a.timerName)&&a.tick("pbs",c)}};
aUa=function(a,b,c,d,e){a=(a===c?"video":"ad")+"_to_"+(b===c?"video":"ad");c={};if(null==e?0:e.G)c.cttAuthInfo={token:e.G,videoId:e.videoId};c.startTime=d;iI(a,c);var f;e={targetVideoId:null!=(f=null==e?void 0:e.videoId)?f:"nvd",targetCpn:b};g.hI(e,a);jI("pbs",d,a)};
uV=function(a){Mwa();Kwa();a.timerName=""};
bUa=function(a){if(a.j){var b=a.j;b.B={};b.OG={}}a.C=!1;a.G=void 0;a.B=NaN};
cUa=function(a,b){g.lG.call(this);this.La=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.ma={};this.B=0;if(a=b.session_data)this.sessionData=YB(a,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author=
b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(a=b.api)"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new RS("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.yPa(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0<this.index&&(this.items=[]);a=g.u(a);for(c=a.next();!c.done;c=a.next())(c=
c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.ma=NS(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
dUa=function(a){return!!(a.playlist||a.list||a.api)};
eUa=function(a){var b=a.index+1;return b>=a.length?0:b};
fUa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.vV=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.hT(a.La,b),g.L(a,e),e.El=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
gUa=function(a,b){if(b.video&&b.video.length){a.title=b.title||"";a.description=b.description;a.views=b.views;a.likes=b.likes;a.dislikes=b.dislikes;a.author=b.author||"";var c=b.loop;c&&(a.loop=c);c=g.vV(a);a.items=[];for(var d=g.u(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}};
jUa=function(a,b){var c,d,e,f,h,l,m;return g.H(function(n){if(1==n.j){c=g.vI();var p=a.W(),q={context:g.WT(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};p=p.embedConfig;var r=b.docid||b.video_id||b.videoId||b.id;if(!r){r=b.raw_embedded_player_response;if(!r){var t=b.embedded_player_response;t&&(r=JSON.parse(t))}if(r){var v,x,B,G,F,I;r=(null==(I=g.S(null==(v=r)?void 0:null==(x=v.embedPreview)?void 0:null==(B=x.thumbnailPreviewRenderer)?void 0:null==(G=B.playButton)?
void 0:null==(F=G.buttonRenderer)?void 0:F.navigationEndpoint,g.sT))?void 0:I.videoId)||null}else r=null}v=(v=r)?v:void 0;x=a.playlistId?a.playlistId:b.list;B=b.listType;if(x){var P;"user_uploads"===B?P={username:x}:P={playlistId:x};hUa(p,v,b,P);q.playlistRequest=P}else b.playlist?(P={templistVideoIds:b.playlist.toString().split(",")},hUa(p,v,b,P),q.playlistRequest=P):v&&(P={videoId:v},p&&(P.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=P);d=q;e=g.zH(iUa);g.za(n,2);return g.z(n,g.nI(c,d,
e),4)}if(2!=n.j)return f=n.B,h=a.W(),b.raw_embedded_player_response=f,h.Ya=Pna(b,g.eS(h)),h.C="EMBEDDED_PLAYER_MODE_PFL"===h.Ya,f&&(l=f,l.trackingParams&&CP(l.trackingParams)),n.return(new g.hT(h,b));m=g.Ca(n);m instanceof Error||(m=Error("b259802748"));g.TF(m);return n.return(a)})};
hUa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.xV=function(a,b){wV.get(a);wV.set(a,b)};
g.yV=function(a){g.lG.call(this);this.loaded=!1;this.player=a};
kUa=function(){this.B=[];this.j=[]};
g.zV=function(a,b){return b?a.j.concat(a.B):a.j};
g.AV=function(a,b){switch(b.kind){case "asr":lUa(b,a.B);break;default:lUa(b,a.j)}};
lUa=function(a,b){g.Bb(b,function(c){return a.equals(c)})||b.push(a)};
g.BV=function(a){g.J.call(this);this.Z=a;this.j=new kUa;this.D=[];this.S=[]};
g.CV=function(a,b,c){g.BV.call(this,a);this.audioTrack=c;this.B=null;this.C=!1;this.D=b.yx;this.S=b.IB;this.C=g.OT(b)};
mUa=function(){this.j=10;this.cj=!1};
nUa=function(a,b){b=void 0===b?{}:b;var c=void 0===b.uD?!1:b.uD,d=new mUa;d.cj=(void 0===b.hasSubfragmentedFmp4?!1:b.hasSubfragmentedFmp4)||c;d.j=g.JJ(a.experiments,"html5_streaming_xhr_time_based_consolidation_ms")||d.j;return d};
g.oUa=function(a){this.La=a;this.S=new mUa;this.Io=this.Ho=!1;this.Nm=2;this.qa=20971520;this.Va=8388608;this.ea=120;this.Jc=62914560;this.Pm=g.JJ(this.La.experiments,"html5_min_readbehind_secs");this.bz=g.JJ(this.La.experiments,"html5_min_readbehind_cap_secs");this.Qi=this.La.N("html5_offline_reset_media_stream_on_unresumable_slices");this.Zb=NaN;this.Zo=this.Il=this.ox=2;this.rj=1024*DV(this,"html5_request_size_min_kb",64);this.Oa=2097152;this.vx=DV(this,"html5_bypass_contention_secs");this.Po=
1048576;this.Ml=!1;this.mj=DV(this,"html5_repredict_interval_ms",1800);this.py=DV(this,"html5_head_miss_secs",5);this.Nz=DV(this,"html5_min_upgrade_health_secs",10);this.fb=15;this.Uf=1;this.K=1.15;this.ma=1.05;this.Jl=1;this.xz=DV(this,"html5_min_seconds_between_format_selections",8);this.oy=DV(this,"html5_max_buffer_health_for_downgrade_secs",15);this.Xl=DV(this,"html5_max_buffer_health_for_downgrade_prop",.5);this.Ji=this.wc=this.Xr=!1;this.Oi=6;this.B=!1;this.bC=g.JJ(this.La.experiments,"html5_top_shelf_format_byterate_factor")||
1.2;this.Ad=g.JJ(this.La.experiments,"html5_min_startup_buffered_media_duration_secs");this.Jo=g.JJ(this.La.experiments,"html5_post_interrupt_readahead");this.zx=this.La.N("html5_disable_classic_alr");this.Lo=g.JJ(this.La.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Jp=100;this.eh=10;this.nA=6;this.Ll=this.La.experiments.ob("html5_clone_original_for_fallback_location");this.Pi=DV(this,"html5_min_failures_to_delay_retry",1);this.wB=this.La.N("html5_apply_min_failures");this.hg=!1;this.Cb=
g.JJ(this.La.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.nk=g.JJ(this.La.experiments,"html5_subsegment_readahead_timeout_secs");this.YB=g.JJ(this.La.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.lk=g.JJ(this.La.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.ZB=g.JJ(this.La.experiments,"html5_subsegment_readahead_min_load_speed");this.Cp=g.JJ(this.La.experiments,"html5_subsegment_readahead_load_speed_check_interval");
this.aC=g.JJ(this.La.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Ak=DV(this,"html5_hopeless_secs",15);this.Ul=1;this.Yc=!1;this.CB=this.La.N("html5_restrict_streaming_xhr_on_sqless_requests");this.qy=g.JJ(this.La.experiments,"html5_max_headm_for_streaming_xhr");this.kB=this.La.N("html5_pipeline_manifestless_allow_nonstreaming");this.PF=this.La.N("html5_prefer_server_bwe3");this.gy=this.La.N("html5_last_slice_transition");this.IB=this.La.N("html5_store_xhr_headers_readable");
this.vp=this.We=this.Pj=!1;this.Mm=g.JJ(this.La.experiments,"html5_max_drift_per_track_secs");this.dA=this.La.N("html5_notify_timing_on_error");this.Eo=this.La.N("html5_no_placeholder_rollbacks");this.XB=this.La.N("html5_subsegment_readahead_enable_mffa");this.Le=this.La.N("html5_allow_video_keyframe_without_audio");this.KA=this.La.N("html5_enable_vp9_fairplay");this.Qm=!1;this.vc=!0;this.Vd=this.Ya=this.Mb=!1;this.Rl=!0;this.sj=!1;this.C="";this.Bx=1048576;this.Ud=[];this.Rx=this.La.N("html5_woffle_resume");
this.El=this.La.N("html5_abs_buffer_health");this.Yx=this.La.N("html5_interruption_resets_seeked_time");this.Ey=g.JJ(this.La.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Ja=!1;this.Sl=this.La.N("html5_explicitly_dispose_xhr");this.Mo=!1;this.sx=!this.La.N("html5_encourage_array_coalescing");this.Kl=!1;this.BB=this.La.N("html5_restart_on_unexpected_detach");this.hj=0;this.dh="";this.Xx=this.La.N("html5_filter_non_efficient_formats_for_safari");this.La.N("html5_format_hybridization");
this.vB=this.La.N("html5_abort_before_separate_init");this.FB=Jna();this.HB=this.La.N("html5_serialize_server_stitched_ad_request");this.wx=this.La.N("html5_skip_buffer_check_seek_to_head");this.Td=!1;this.qx=this.La.N("html5_attach_po_token_to_bandaid");this.Om=g.JJ(this.La.experiments,"html5_max_redirect_response_length")||8192;this.Ep=this.La.N("html5_rewrite_timestamps_for_webm");this.rb=this.La.N("html5_only_media_duration_for_discontinuities");this.AB=g.JJ(this.La.experiments,"html5_resource_bad_status_delay_scaling")||
1;this.La.N("html5_onesie_live");this.cC=this.La.N("html5_onesie_premieres");this.Qx=this.La.N("html5_drop_onesie_for_live_mode_mismatch");this.xA=g.JJ(this.La.experiments,"html5_onesie_live_ttl_secs")||8;this.Fo=g.JJ(this.La.experiments,"html5_attach_num_random_bytes_to_bandaid");this.IA=g.JJ(this.La.experiments,"html5_onesie_request_timeout_ms")||3E3;this.D=!1;this.Fa=this.La.N("html5_ssdai_use_post_for_media")&&this.La.N("gab_return_sabr_ssdai_config");this.kx=this.La.N("html5_use_post_for_media");
this.Ub=this.La.N("html5_use_live_ump_heartbeat");this.Bd=this.La.N("html5_use_sps_ump_part");this.useUmp=this.La.N("html5_use_ump")||this.Ub||this.Bd;this.Pa=this.Ca=!1;this.Ko=this.La.N("html5_prefer_drc");this.zB=this.La.N("html5_reset_primary_stats_on_redirector_failure");this.La.N("html5_remap_to_original_host_when_redirected");this.Nl=this.gg=this.j=!1;this.kb=this.La.N("html5_enable_sabr_format_selection");this.xx=this.La.N("html5_iterative_seeking_buffered_time");this.Al=this.La.N("html5_use_network_error_code_enums");
this.Ax=this.La.N("html5_disable_overlapping_requests");this.Wx=this.La.N("html5_fallback_to_cabr_on_net_bad_status");this.G=!1;this.uB=this.La.N("html5_use_media_end_for_end_of_segment");this.Tl=!this.La.N("html5_remove_deprecated_ticks");this.Tf=this.La.N("html5_disable_bandwidth_cofactors_for_sabr");this.enableServerDrivenRequestCancellation=this.La.N("html5_enable_server_driven_request_cancellation");this.Vx=this.La.N("html5_enable_sabr_request_timing");this.fg=this.La.N("html5_enable_server_format_filter");
this.Px=this.La.N("html5_drc_edit_sync_workaround");this.No=this.La.N("html5_remove_slicer_length");this.Sx=this.La.N("html5_enable_lawnmower");this.GB=this.La.N("html5_sabr_set_initial_constraint");this.yx=this.La.wd()?g.JJ(this.La.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.Zx=g.JJ(this.La.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Oz=g.JJ(this.La.experiments,"html5_normal_latency_mffa_ms")||NaN;this.EB=this.La.N("html5_retry_quota_exceeded_via_seek");this.jx=
this.La.N("html5_use_goodput_request_for_probing");this.jy=this.La.N("html5_live_defrag_only_h264_playbacks");this.iy=this.La.N("html5_live_defrag_only_h264_formats");this.dC=this.La.N("html5_use_managed_media_source_buffering");this.QF=this.La.N("html5_record_now");this.Gf=this.La.N("html5_consume_onesie_media_bytes_on_mismatch_for_sabr");this.Me=!1;this.Pl=g.JJ(this.La.experiments,"html5_drm_byterate_soft_cap");this.Ql=g.JJ(this.La.experiments,"html5_drm_live_byterate_soft_cap");this.Tx=this.La.N("html5_enable_premium_hbr_for_sabr");
this.Oo=!1;this.qd=this.La.N("html5_use_sabr_error_http_response_code");this.eC=this.La.N("html5_use_target_duration");this.ly=this.La.wd();this.Np=this.La.N("html5_track_overshoot");this.xb=this.La.N("html5_sabr_report_request_cancellation_info");this.Sf=this.Go=this.Ap=!1;this.zp=this.La.N("html5_spoof_4k");this.Kd=this.Ol=this.eb=this.va=!1};
pUa=function(a,b,c){c=void 0===c?!1:c;1080<b.video.j&&!a.Ho&&(a.qa=36700160,a.Va=5242880,a.Oa=Math.max(4194304,a.Oa),a.Ho=!0);2160<b.video.j&&!a.Io&&(a.qa=104857600,a.Zb=13107200,a.Io=!0);0!==g.JJ(a.La.experiments,"html5_samsung_kant_limit_max_bitrate")?b.isEncrypted()&&g.BC()&&g.zC("samsung")&&(g.zC("kant")||g.zC("muse"))&&(a.Zb=g.JJ(a.La.experiments,"html5_samsung_kant_limit_max_bitrate")):b.isEncrypted()&&g.BC()&&g.zC("kant")&&(a.Zb=1310720);0!==a.Pl&&b.isEncrypted()&&(a.Zb=a.Pl);0!==a.Ql&&b.isEncrypted()&&
c&&(a.Zb=a.Ql);b.Zb&&(a.Po=Math.max(a.rj,Math.min(a.Oa,5*b.Zb)))};
EV=function(a){return a.j&&a.kb};
FV=function(a){return a.j&&a.gg&&a.playbackStartPolicy};
GV=function(a){return a.D||a.j&&a.kb&&a.La.N("html5_init_source_buffer_after_metadata")};
qUa=function(a,b,c,d){a.gg&&(a.playbackStartPolicy=b,a.OF=c,a.MF=d)};
DV=function(a,b,c){return g.JJ(a.La.experiments,b)||(void 0===c?0:c)};
g.rUa=function(a,b){return oL(a.info.mimeType)?b?a.info.itag===b:!0:!1};
g.sUa=function(a,b){if(null!=a.j&&g.SJ(b.W())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.Fc())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.rUa(c,"386")});
a=!!a.j&&!a.j.isManifestless&&dNa(a.j);return b||a};
g.HV=function(a,b,c,d,e,f){g.BV.call(this,a);this.videoId=c;this.KW=e;this.eventId=f;this.G={};this.B=null;a=d||g.bC(b).hl||"";a=a.split("_").join("-");this.C=cC(b,{hl:a})};
uUa=function(a){this.j=a;this.B=tUa(this)};
tUa=function(a){return{env:{emscripten_notify_memory_growth:function(){}},
wasi_snapshot_preview1:{proc_exit:function(){},
fd_write:function(b,c,d){b=new DataView(a.exports.memory.buffer);for(var e="",f=0,h=0;h<d;h++){var l=b.getUint32(c,!0),m=b.getUint32(c+4,!0);f+=m;e+=g.FO(new Uint8Array(a.exports.memory.buffer,l,m));c+=8}console.log(e);return f}}}};
vUa=function(a){var b=Math.floor(256*Math.random()),c=Math.floor(256*Math.random()),d=0;try{return d=a.exports.malloc(16),(new Uint8Array(a.exports.memory.buffer,d,16)).fill(b),a.exports.sentinel(d,16,c)===16*c%256&&(new Uint8Array(a.exports.memory.buffer,d,16)).every(function(e){return e===(b+c)%256})}finally{0!==d&&a.exports.free(d)}};
wUa=function(a){var b;return g.H(function(c){return 1==c.j?(b={format:"RAW",method:"GET",responseType:"arraybuffer"},g.z(c,qC(a,b),2)):c.return(c.B.xhr.response)})};
xUa=function(a,b){b=void 0===b?!1:b;var c,d,e,f,h,l;return g.H(function(m){switch(m.j){case 1:return c=new uUa(!1),d=c.B,(b=b||!("instantiateStreaming"in WebAssembly))?(f=WebAssembly,h=f.instantiate,g.z(m,wUa(a),6)):g.z(m,WebAssembly.instantiateStreaming(fetch(a),d),4);case 4:e=m.B;m.Ma(3);break;case 6:return g.z(m,h.call(f,m.B,d),5);case 5:e=m.B;case 3:return l=e,c.module=l.module,c.instance=l.instance,c.exports=c.instance.exports,m.return(c)}})};
yUa=function(a){var b;return g.H(function(c){if(1==c.j)return b=new uUa(!0),b.C=a,g.z(c,a(b.B),2);b.exports=c.B;return c.return(b)})};
zUa=function(a,b,c,d,e){c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;return g.H(function(f){if(!d&&IV)try{return f.return(xUa(a,e))}catch(h){if(c)g.UF(h);else throw h;}return c&&b?f.return(yUa(b)):f.return(Promise.reject(Error("invalid arguments")))})};
AUa=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;var e=void 0===e?!1:e;var f;return g.H(function(h){if(1==h.j)return g.z(h,zUa(a,b,c,d,e),2);f=h.B;f.exports._initialize();if(vUa(f))return h.return(f);throw Error((f.j?"asmjs":"wasm")+" sentinel failed");})};
BUa=function(a,b){g.J.call(this);this.J=a;this.j=b;this.OG={};this.B={};this.C=null;this.K=this.J.N("web_player_defer_modules");this.D=new Set;this.G=new g.ZK(this);this.Ue=new Map;g.L(this,this.G);this.G.V(a,"videodatachange",this.onVideoDataChange)};
g.JV=function(a){return a.Ue.get("captions")};
HUa=function(a,b){switch(b){case "ad":return CUa(a);case "annotations_module":return g.tU(a.J)?a=!1:(b=a.J,a=b.W(),b=b.getVideoData(),a=a.C||b.n_||"3"===a.controlsType?!1:a.Oa.isEmpty()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.Ya||!!g.MT(b)||!!g.fRa(b):!0),a;case "asmjs":return a.J.W().N("html5_allow_asmjs");case "creatorendscreen":return DUa(a);case "embed":return g.eS(a.J.W());case "endscreen":return g.EUa(a);case "heartbeat":return a.gR();case "inline_preview":return a.J.W().showInlinePreviewUi;
case "kids":return pS(a.J.W());case "remote":return a.J.W().nk;case "miniplayer":return a.J.W().showMiniplayerUiWhenMinimized;case "music":return g.mS(a.J.W());case "offline":return a.J.W().sj;case "captions":return FUa(a);case "unplugged":return g.kS(a.J.W());case "ux":return a.J.W().dh;case "webgl":return GUa(a);case "ypc":return a.rF();case "ypc_clickwrap":return a=a.J.getVideoData(),a.Uf&&!a.EL;case "yto":return!!a.J.getVideoData().Ja.includes("yto");default:return g.TF(Error("Module descriptor "+
b+" does not match")),!1}};
KV=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.Ue.get(b);if(!h||d)if(e||(e=function(){KV(a,b,c,d)}),f||(f=function(){a.J.Fg(b)}),h=h||IUa(a,b,HUa(a,b),e,f))a.Ue.set(b,h),h.create(),a.J.ra("modulecreated",b),c&&a.J.Ta("onApiChange")};
KUa=function(a){var b=void 0===b?!1:b;var c,d,e,f,h;return g.H(function(l){if(1==l.j)return(c=a.Ue.get("asmjs"))&&!b?l.return(c):null!=(d=wV.get("asmjs"))?(e=d,l.Ma(2)):g.z(l,new Promise(function(m,n){JUa(a,"asmjs",function(){var p=wV.get("asmjs");p?m(p):n("cannot load module asmjs")},n)}),3);
2!=l.j&&(e=l.B);f=e;if(!f)return l.return(Promise.reject("cannot load module asmjs"));h=new f(a.J);a.Ue.set("asmjs",h);h.create();return l.return(h)})};
NUa=function(a){LUa(a)&&a.yM();MUa(a)&&(KV(a,"captions",!0),KV(a,"endscreen"),a.NG(),KV(a,"creatorendscreen",!0))};
MUa=function(a){var b=a.J.getVideoData(),c=a.K&&!b.isInlinePlaybackNoAd;a.J.N("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c};
LUa=function(a){a=a.J.getVideoData();var b;if(b=a.N("web_player_defer_ad")){if(g.Db(a.Ja,"ad")||nT(a,"disable_defer_admodule_on_advertiser_video")&&UQa(a)||a.enableServerStitchedDai)a=!1;else{b=a.playerResponse;a=a.startSeconds;var c=null==b?void 0:b.adPlacements;if(b=c){b=Number.MAX_VALUE;c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=null==(e=d.config)?void 0:e.adPlacementConfig;e=void 0;if("AD_PLACEMENT_KIND_MILLISECONDS"===(null==(e=f)?void 0:e.kind)){var h=
e=void 0;f=Number(null==(e=f)?void 0:null==(h=e.adTimeOffset)?void 0:h.offsetStartMilliseconds)||0;h=e=void 0;d=Number((null==(e=d.renderer)?void 0:null==(h=e.adBreakServiceRenderer)?void 0:h.prefetchMilliseconds)||0);d=f-d;d<b&&(b=d)}}b=b-5E3<=1E3*a}a=b?!1:!0}b=a}return b};
FUa=function(a){var b=a.J.getVideoData();return!!b.Kd||!!b.captionTracks.length||g.sUa(b,a.J)};
g.EUa=function(a){var b=a.J.W();if(b.C||BS(b)||b.S||!b.Ud&&!b.eh)return!1;var c=a.J.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.N("desktop_enable_autoplay");a=a.J.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.N("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.N("allow_live_autoplay_on_mweb");return!c||b};
g.uU=function(a){return a.Ue.get("webgl")};
GUa=function(a){var b=a.J.getVideoData();a=a.J.W();var c=g.Ina(),d=a.N("enable_spherical_kabuki"),e=g.zS(a);if(g.KT(b))return c||d||e;if(g.HT(b))return e||c||d;if(g.IT(b))return e||c||!1;if(g.JT(b))return e||!1;c=b.B&&b.B.video&&b.B.video.isHdr();return e&&!g.AT(b)&&!c&&a.N("enable_webgl_noop")};
CUa=function(a){if(a.J.W().C)return!1;if(a=a.J.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
DUa=function(a){if(g.tU(a.J))return!1;a=a.J;var b=a.W();if(b.C||"3"===b.controlsType)return!1;if("creator-endscreen-editor"===b.playerStyle)return!0;a=a.getVideoData();return!!a&&(!!g.dRa(a)||!!g.eRa(a))};
IUa=function(a,b,c,d,e){try{if(c){var f=wV.get(b);if(f)return new f(a.J);JUa(a,b,d,e)}else a.J.Fg(b)}catch(h){a.J.Fg(b),g.TF(h)}return null};
LV=function(a,b,c){for(var d=g.u(a.Ue),e=d.next();!e.done;e=d.next()){var f=g.u(e.value);e=f.next().value;(f=f.next().value)&&(c||f.xl(b))&&(g.sb(f),a.Ue.delete(e))}};
MV=function(a){return a.Ue.get("ad")};
OUa=function(a){if(pS(a.J.W()))return a.Ue.get("kids")};
rU=function(a){if(a.J.W().nk)return a.Ue.get("remote")};
g.NV=function(a){if(g.kS(a.J.W()))return a.Ue.get("unplugged")};
HRa=function(a){if(a.J.W().dh)return a.Ue.get("ux")};
OV=function(a){if(a.J.W().sj)return a.Ue.get("offline")};
g.PV=function(a){return a.Ue.get("annotations_module")};
PUa=function(a){return a.Ue.get("creatorendscreen")};
RUa=function(a,b,c){var d,e;return g.H(function(f){d=a.j.startsWith("https://")?a.j+"lib.wasm":a.j.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";e=function(h){var l=a.Ue.get("asmjs");return l?Promise.resolve(l.RW(h)):QUa(a).then(function(m){return m.RW(h)})};
return f.return(AUa(d,e,b,c))})};
QUa=function(a){var b,c;return g.H(function(d){if(1==d.j)return g.z(d,KUa(a),2);c=b=d.B;return d.return(c)})};
JUa=function(a,b,c,d){if(a.j){var e=SUa[b];TUa(a,a.j+e,function(){a.D.add(e);c.call(a)},d)}};
TUa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var h=g.Xe("SCRIPT"),l=!1,m,n=0;n<h.length;n++){var p=h[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.lf("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(x){Kf(f);q&&q.apply(window,[x])};
var r=m.onerror;m.onerror=function(x){if(.01>Math.random()){var B=new g.nD("Unable to load player module",b,document.location&&document.location.origin);g.TF(B)}Kf(e);r&&r(x)};
var t=m,v=t.onreadystatechange;t.onreadystatechange=function(x){switch(t.readyState){case "loaded":case "complete":Kf(f)}v&&v(x)};
l&&((h=a.J.W().cspNonce)&&m.setAttribute("nonce",h),g.Hn(m,g.Jv(b)),h=g.Xe("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.ub(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
UUa=function(a,b,c,d,e){g.lG.call(this);var f=this;this.target=a;this.AG=b;this.B=0;this.K=!1;this.D=new g.ue(NaN,NaN);this.j=new g.ZK(this);this.Ca=this.C=this.S=null;g.L(this,this.j);b=d||e?4E3:3E3;this.ea=new g.au(function(){QV(f,1,!1)},b,this);
g.L(this,this.ea);this.qa=new g.au(function(){QV(f,2,!1)},b,this);
g.L(this,this.qa);this.va=new g.au(function(){QV(f,512,!1)},b,this);
g.L(this,this.va);this.Fa=c&&0<c.hg.length?5E3:3E3;d||(this.C=this.j.V(a,"mouseover",this.pw),this.j.V(a,"mousemove",this.Y1),this.j.V(a,"mouseleave",this.P6));zr?this.j.V(a,"keypress",this.n6):this.j.V(a,"focusin",this.R4);this.G=this.j.V(a,"mousedown",this.oT);this.ma=this.j.V(a,"touchstart",this.pT,void 0,!0);QV(this,640,!0)};
VUa=function(a){QV(a,4,!1);a.S&&(a.j.Qc(a.S),a.S=null,a.C=a.j.V(a.target,"mouseover",a.pw));a.C&&(a.j.Qc(a.C),a.C=a.j.V(a.target,"mouseover",a.pw))};
QV=function(a,b,c){a.isDisposed();var d=!a.B;c?(a.B|=b,b&1&&a.ea.start(),b&2&&a.qa.start()):(a.B&=~b,b&1&&a.ea.stop(),b&2&&a.qa.stop(),b&512&&a.va.stop());a.B&512&&!(a.B&128)&&g.bu(a.va,a.Fa);b=!a.B;d!==b&&a.ra("autohideupdate",b)};
g.SV=function(a){g.T.call(this,{I:"button",Na:["ytp-large-play-button","ytp-button"],Y:{"aria-label":"Play"},X:["{{largePlayButtonChildren}}"]});this.api=a;this.V(a,"videodatachange",this.Sa);this.V(a,"basechromeinitialized",this.Sa);a=this.api.W();a.ma&&RV&&(this.Ua("click",this.j,this),this.Ua("touchstart",this.B,this));g.jS(a)&&g.iu(this.element,"ytp-large-play-button-red-bg");this.api.zb(this.element,this,28572);this.Sa()};
g.TV=function(a){var b=a.W(),c=["ytp-cued-thumbnail-overlay"];b.S&&c.push("ytp-exp-contain-thumbnail");b.N("web_player_show_frame_zero_when_cued")&&c.push("ytp-exp-frame0");g.T.call(this,{I:"div",Na:c,X:[{I:"div",T:"ytp-cued-thumbnail-overlay-image"}]});b=this.Ha("ytp-cued-thumbnail-overlay");c=new g.SV(a);g.L(this,c);c.Ga(b);this.D=new g.ZK(this);g.L(this,this.D);this.api=a;this.G=this.Ha("ytp-cued-thumbnail-overlay-image");this.C=c;this.B=new g.VG(this,250);g.L(this,this.B);this.j=new g.au(this.Sa,
0,this);g.L(this,this.j);this.Sa();this.V(a,"appresize",this.Nb);this.V(a,"presentingplayerstatechange",this.onStateChange);this.V(a,"ypcStateChanged",this.G9);gS(a.W())&&this.V(a,"videoplayerreset",this.zw)};
WUa=function(a){if(!a.api.N("web_player_show_frame_zero_when_cued"))return!1;var b=a.api.getCurrentTime();a=a.api.Tb();a=g.aH(a,64)&&g.aH(a,1);return 0===b&&a};
g.UV=function(a){g.T.call(this,{I:"div",Na:["ytp-error"],Y:{role:"alert"},X:[{I:"div",T:"ytp-error-content",X:[{I:"div",T:"ytp-error-icon-container",X:[{I:"svg",Y:{fill:"#fff",viewBox:"0 0 48 48"},X:[{I:"path",Y:{d:"M0 0h48v48H0V0z",fill:"none"}},{I:"path",Y:{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"}}]}]},{I:"div",T:"ytp-error-content-wrap",
X:[{I:"div",T:"ytp-error-content-wrap-reason",Aa:"{{content}}"},{I:"div",T:"ytp-error-content-wrap-subreason",Aa:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.VV=function(a){a=a.split(XUa);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({I:"br"}),b.push(d[e]);c<a.length&&b.push({I:"a",Y:{href:a[c],target:a[c+1]},Aa:a[c+2]})}return{I:"span",X:b}};
XV=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.W().D);a=a.api.getVideoData();b=g.vK(g.WV[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({I:"h2",Aa:f});d.push(b[0]);h&&d.push({I:"br"});d.push({I:"a",Y:{href:c,target:e?"_blank":null},Aa:b[2]});d.push(b[4]);return{I:"span",X:d}};
YUa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.V(c[d],"click",b);a.keys.push(e)}};
ZUa=function(a){for(var b=0;b<a.keys.length;b++)a.Qc(a.keys[b]);a.keys=[]};
YV=function(a){g.ZK.call(this);this.J=a;this.j=new Set;this.mediaSession=navigator.mediaSession;this.V(a,"videodatachange",this.onVideoDataChange);this.V(a,"presentingplayerstatechange",this.Xi);this.onVideoDataChange()};
ZV=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.j.add(b)};
$Ua=function(a){ZV(a,"play",function(){a.J.playVideo()});
ZV(a,"pause",function(){a.J.pauseVideo()});
ZV(a,"seekbackward",function(){a.J.seekBy(-5*a.J.getPlaybackRate())});
ZV(a,"seekforward",function(){a.J.seekBy(5*a.J.getPlaybackRate())})};
aVa=function(a){var b,c;a=a.J.getVideoData();a=a.Jd&&a.Jd.playerOverlays||null;return null==a?void 0:null==(b=a.playerOverlayRenderer)?void 0:null==(c=b.browserMediaSession)?void 0:c.browserMediaSessionRenderer};
bVa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.u(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&(!c.width||0>=c.width||!c.height||0>=c.height||g.lK(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
cVa=function(a){var b=a.J.Tb();b=b.isCued()||b.isError()?"none":g.WL(b)?"playing":"paused";a.mediaSession.playbackState=b};
dVa=function(a){g.T.call(this,{I:"div",T:"ytp-paid-content-overlay",Y:{"aria-live":"assertive","aria-atomic":"true"}});this.J=a;this.videoId=null;this.C=!1;this.lf=this.j=null;var b=a.W();a.N("enable_new_paid_product_placement")&&!g.xS(b)?(this.B=new g.T({I:"a",T:"ytp-paid-content-overlay-link",Y:{href:"{{href}}",target:"_blank"},X:[{I:"div",T:"ytp-paid-content-overlay-icon",Aa:"{{icon}}"},{I:"div",T:"ytp-paid-content-overlay-text",Aa:"{{text}}"},{I:"div",T:"ytp-paid-content-overlay-chevron",Aa:"{{chevron}}"}]}),
this.V(this.B.element,"click",this.onClick)):this.B=new g.T({I:"div",Na:["ytp-button","ytp-paid-content-overlay-text"],Aa:"{{text}}"});this.D=new g.VG(this.B,250,!1,100);g.L(this,this.B);this.B.Ga(this.element);g.L(this,this.D);this.J.qg(this.element,this);this.V(a,"videodatachange",this.onVideoDataChange);this.V(a,"presentingplayerstatechange",this.Xd)};
fVa=function(a,b){var c=SQa(b),d=TQa(b);b.Uf&&a.J.mp()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.du(a.j),a.videoId=b.videoId,a.C=!!d,a.C&&c&&eVa(a,d,c,b)):c&&d&&eVa(a,d,c,b))};
eVa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.au(a.Qb,b,a);g.L(a,a.j);var e,f;b=null==(e=d.getPlayerResponse())?void 0:null==(f=e.paidContentOverlay)?void 0:f.paidContentOverlayRenderer;e=null==b?void 0:b.navigationEndpoint;var h;f=null==b?void 0:null==(h=b.icon)?void 0:h.iconType;var l;h=null==(l=g.S(e,g.IG))?void 0:l.url;a.J.Gg(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.B.update({href:null!=h?h:"#",text:c,icon:"MONEY_HAND"===f?{I:"svg",Y:{fill:"none",height:"100%",viewBox:"0 0 24 24",
width:"100%"},X:[{I:"path",Y:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:h?g.zG():null})};
gVa=function(a,b){a.j&&(g.aH(b,8)&&a.C?(a.C=!1,a.zd(),a.j.start()):(g.aH(b,2)||g.aH(b,64))&&a.videoId&&(a.videoId=null))};
$V=function(a){g.T.call(this,{I:"div",T:"ytp-spinner",X:[ySa(),{I:"div",T:"ytp-spinner-message",Aa:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Ha("ytp-spinner-message");this.j=new g.au(this.show,500,this);g.L(this,this.j);this.V(a,"presentingplayerstatechange",this.onStateChange);this.V(a,"playbackstalledatstart",this.B);this.Gc(a.Tb())};
aW=function(a){var b=[{I:"div",Na:["ytp-unmute-icon"],X:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{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"}}]}]},
{I:"div",Na:["ytp-unmute-text"],Aa:"Tap to unmute"}];b.push({I:"div",Na:["ytp-unmute-box"],X:[]});g.BU.call(this,a,{I:"button",Na:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],X:[{I:"div",T:"ytp-unmute-inner",X:b}]},100);this.j=this.clicked=!1;this.api=a;this.api.zb(this.element,this,51663);this.V(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.V(a,"presentingplayerstatechange",this.Xi);this.Ua("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&
!g.eS(this.api.W());g.sG(this,a);a&&hVa(this);this.C=a};
hVa=function(a){a.j||(a.j=!0,a.api.Xa(a.element,!0))};
g.bW=function(a){g.ZK.call(this);var b=this;this.api=a;this.QO=!1;this.Dn=null;this.MG=!1;this.Kg=null;this.xM=this.kK=!1;this.GR=this.HR=null;this.gX=NaN;this.FR=this.GC=!1;this.bE=0;this.KL=[];this.YP=!1;this.XH={height:0,width:0};this.IZ=480;this.Kaa=["ytp-player-content","html5-endscreen","ytp-overlay"];this.YO={XN:!1};var c=a.W(),d=a.tb();this.XH=a.getPlayerSize();this.AU=new g.au(this.kP,0,this);g.L(this,this.AU);g.mS(c)||(this.Wm=new g.TV(a),g.L(this,this.Wm),g.wU(a,this.Wm.element,4));if(iVa(this)){var e=
new $V(a);g.L(this,e);e=e.element;g.wU(a,e,4)}var f=a.getVideoData();this.nf=new UUa(d,function(l){return b.AG(l)},f,c.Pi,!1);
g.L(this,this.nf);this.nf.subscribe("autohideupdate",this.On,this);if(!c.disablePaidContentOverlay){var h=new dVa(a);g.L(this,h);g.wU(a,h.element,4)}this.MR=new aW(a);g.L(this,this.MR);g.wU(this.api,this.MR.element,2);this.VN=this.api.isMutedByMutedAutoplay();this.V(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.jK=new g.au(this.Rr,200,this);g.L(this,this.jK);this.OD=f.videoId;this.fZ=new g.au(function(){b.bE=0},350);
g.L(this,this.fZ);this.XG=new g.au(function(){b.FR||jVa(b)},350,this);
g.L(this,this.XG);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.iu(f,"ytp-color-white")}g.mS(c)&&g.iu(f,"ytp-music-player");navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new YV(a),g.L(this,f));this.V(a,"appresize",this.Nb);this.V(a,"presentingplayerstatechange",this.Xi);this.V(a,"videodatachange",this.onVideoDataChange);this.V(a,"videoplayerreset",this.n8);this.V(a,"autonavvisibility",function(){b.Xp()});
this.V(a,"sizestylechange",function(){b.Xp()});
this.V(d,"click",this.L8,this);this.V(d,"dblclick",this.M8,this);this.V(d,"mousedown",this.P8,this);c.vc&&(this.V(d,"gesturechange",this.N8,this),this.V(d,"gestureend",this.O8,this));this.St=[d.Qy];this.Wm&&this.St.push(this.Wm.element);e&&this.St.push(e)};
kVa=function(a,b){if(!b)return!1;var c=a.api.zf();if(c.Mu()&&(c=c.Gb())&&g.Af(c,b))return c.controls;for(c=0;c<a.St.length;c++)if(g.Af(a.St[c],b))return!1;c=g.u(a.Kaa);for(var d=c.next();!d.done;d=c.next())if(g.hu(b,d.value))return!1;return b===a.api.getRootNode()?!1:!0};
lVa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.tb().RH||!1)&&a.api.W().B&&RV&&11<=lT;a=a.api.W().ma&&RV;return!(!b&&!a)};
cW=function(a,b){return!a.api.isInline()&&!kVa(a,ZC(b))&&g.kH(b)};
jVa=function(a){a.nf.Vp();if(a.kK&&a.xM)a.xM=!1;else if(!a.api.W().Pa&&!a.nm()){var b=a.api.Tb();g.aH(b,2)&&g.pU(a.api)||a.Ww(b);!a.api.W().vc||b.isCued()||g.aH(b,1024)?a.Rr():a.jK.isActive()?(a.SH(),a.jK.stop()):a.jK.start()}};
mVa=function(a,b){var c;if(null==(c=a.api.getVideoData())?0:c.mutedAutoplay){var d,e;if(null==(d=b.target)?0:null==(e=d.className)?0:e.includes("ytp-info-panel"))return!1}return g.kH(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.Tb(),!g.aH(b,4)||g.aH(b,8)||g.aH(b,2)||a.Rr(),!0):!1};
nVa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
iVa=function(a){a=AC()&&67<=Dna()&&!a.api.W().ma;return!g.zC("tizen")&&!cS&&!a&&!0};
dW=function(a,b){b=void 0===b?2:b;g.lG.call(this);this.api=a;this.j=null;this.Hd=new aD(this);g.L(this,this.Hd);this.B=Cva;this.Hd.V(this.api,"presentingplayerstatechange",this.Xd);this.j=this.Hd.V(this.api,"progresssync",this.Ic);this.po=b;1===this.po&&this.Ic()};
oVa=function(a){g.T.call(this,{I:"button",Na:["ytp-button","ytp-back-button"],X:[{I:"div",T:"ytp-arrow-back-icon",X:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},X:[{I:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",Bc:!0,Y:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.J=a;g.sG(this,a.W().Tl);this.Ua("click",this.onClick)};
g.eW=function(a){g.T.call(this,{I:"div",X:[{I:"div",T:"ytp-bezel-text-wrapper",X:[{I:"div",T:"ytp-bezel-text",Aa:"{{title}}"}]},{I:"div",T:"ytp-bezel",Y:{role:"status","aria-label":"{{label}}"},X:[{I:"div",T:"ytp-bezel-icon",Aa:"{{icon}}"}]}]});this.J=a;this.B=new g.au(this.show,10,this);this.j=new g.au(this.hide,500,this);g.L(this,this.B);g.L(this,this.j);this.hide()};
gW=function(a,b,c){if(0>=b){c=Jua();b="muted";var d=0}else c=c?{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,Y:{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"}}]}:{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,Y:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";fW(a,c,b,d+"%")};
pVa=function(a,b){b=b?{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{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"}}]}:{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};var c=a.J.getPlaybackRate(),d=g.vK("Speed is $RATE",{RATE:String(c)});fW(a,b,d,c+"x")};
qVa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";fW(a,xSa(),b)};
fW=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.du(a.j);a.B.start();a.updateValue("title",d);g.mu(a.element,"ytp-bezel-text-hide",!d)};
sVa=function(a,b,c){g.T.call(this,{I:"button",Na:["ytp-button","ytp-cards-button"],Y:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.eS(a.W()))},X:[{I:"span",T:"ytp-cards-button-icon-default",X:[{I:"div",T:"ytp-cards-button-icon",X:[a.W().N("player_new_info_card_format")?vua():{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{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"}}]}]},
{I:"div",T:"ytp-cards-button-title",Aa:"Info"}]},{I:"span",T:"ytp-cards-button-icon-shopping",X:[{I:"div",T:"ytp-cards-button-icon",X:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",T:"ytp-svg-shadow",Y:{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"}},{I:"path",T:"ytp-svg-fill",Y:{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"}},{I:"path",T:"ytp-svg-shadow-fill",Y:{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"}}]}]},{I:"div",
T:"ytp-cards-button-title",Aa:"Shopping"}]}]});this.J=a;this.ub=b;this.C=c;this.j=null;this.B=new g.VG(this,250,!0,100);g.L(this,this.B);g.mu(this.C,"ytp-show-cards-title",g.eS(a.W()));this.hide();this.Ua("click",this.t7);this.Ua("mouseover",this.N7);rVa(this,!0)};
rVa=function(a,b){b?a.j=g.LU(a.ub.Ec(),a.element):(a.j=a.j,a.j(),a.j=null)};
tVa=function(a,b,c){g.T.call(this,{I:"div",T:"ytp-cards-teaser",X:[{I:"div",T:"ytp-cards-teaser-box"},{I:"div",T:"ytp-cards-teaser-text",X:a.W().N("player_new_info_card_format")?[{I:"button",T:"ytp-cards-teaser-info-icon",Y:{"aria-label":"Show cards","aria-haspopup":"true"},X:[vua()]},{I:"span",T:"ytp-cards-teaser-label",Aa:"{{text}}"},{I:"button",T:"ytp-cards-teaser-close-button",Y:{"aria-label":"Close"},X:[g.AG()]}]:[{I:"span",T:"ytp-cards-teaser-label",Aa:"{{text}}"}]}]});var d=this;this.J=a;this.ub=
b;this.wh=c;this.D=new g.VG(this,250,!1,250);this.j=null;this.S=new g.au(this.a8,300,this);this.K=new g.au(this.Z7,2E3,this);this.G=[];this.B=null;this.ea=new g.au(function(){d.element.style.margin="0"},250);
this.onClickCommand=this.C=null;g.L(this,this.D);g.L(this,this.S);g.L(this,this.K);g.L(this,this.ea);a.W().N("player_new_info_card_format")?(g.iu(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.V(this.Ha("ytp-cards-teaser-close-button"),"click",this.Gp),this.V(this.Ha("ytp-cards-teaser-info-icon"),"click",this.vR),this.V(this.Ha("ytp-cards-teaser-label"),"click",this.vR)):this.Ua("click",this.vR);this.V(c.element,"mouseover",this.rT);this.V(c.element,"mouseout",this.qT);this.V(a,"cardsteasershow",
this.n9);this.V(a,"cardsteaserhide",this.Qb);this.V(a,"cardstatechange",this.t_);this.V(a,"presentingplayerstatechange",this.t_);this.V(a,"appresize",this.SR);this.V(a,"onShowControls",this.SR);this.V(a,"onHideControls",this.U3);this.Ua("mouseenter",this.d2)};
uVa=function(a){g.T.call(this,{I:"button",Na:[hW.BUTTON,hW.TITLE_NOTIFICATIONS],Y:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},X:[{I:"div",T:hW.TITLE_NOTIFICATIONS_ON,Y:{title:"Stop receiving notifications about every new video","aria-label":"Notify subscriptions"},X:[g.zua()]},{I:"div",T:hW.TITLE_NOTIFICATIONS_OFF,Y:{title:"Receive notifications about every new video","aria-label":"Notify subscriptions"},X:[{I:"svg",Y:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},X:[{I:"path",
Y:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=a;this.j=!1;a.zb(this.element,this,36927);this.Ua("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receive notifications about every new video")};
vVa=function(a,b){a.j=b;a.element.classList.toggle(hW.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.nL:c.lL)?(a=a.api.pn())?mI(a,b):g.TF(Error("No innertube service available when updating notification preferences.")):g.TF(Error("No update preferences command available.")):g.TF(Error("No video data when updating notification preferences."))};
g.iW=function(a,b,c){var d=void 0===d?800:d;var e=void 0===e?600:e;a=wVa(a,b);if(a=g.In(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))jra(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)};
wVa=function(a,b){var c=document.location.protocol;return Vea(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")};
g.kW=function(a,b,c,d,e,f,h,l,m,n,p,q){q=void 0===q?null:q;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 r=p.W(),t=r.userDisplayName&&g.jS(r);g.T.call(this,{I:"div",Na:["ytp-button","ytp-sb"],X:[{I:"div",T:"ytp-sb-subscribe",Y:t?{title:g.vK("Subscribe as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":OOa(r),"data-tooltip-opaque":String(g.eS(r)),tabindex:"0",
role:"button"}:{"aria-label":"Subscribe to channel"},X:[{I:"div",T:"ytp-sb-text",X:[{I:"div",T:"ytp-sb-icon"},a]},b?{I:"div",T:"ytp-sb-count",Aa:b}:""]},{I:"div",T:"ytp-sb-unsubscribe",Y:t?{title:g.vK("Subscribed as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Unsubscribe from channel","data-tooltip-image":OOa(r),"data-tooltip-opaque":String(g.eS(r)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe from channel"},X:[{I:"div",T:"ytp-sb-text",X:[{I:"div",T:"ytp-sb-icon"},c]},d?{I:"div",
T:"ytp-sb-count",Aa:d}:""]}],Y:{"aria-live":"polite"}});var v=this;this.channelId=h;this.ub=q;this.J=p;var x=this.Ha("ytp-sb-subscribe"),B=this.Ha("ytp-sb-unsubscribe");f&&g.iu(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var G=function(){if(r.va){var I=v.channelId;if(m||n){var P={c:I};var R;g.yI.isInitialized()&&(R=yKa(P));P=R||"";if(R=p.getVideoData())if(R=R.subscribeCommand){var Z=p.pn();Z?(mI(Z,R,{botguardResponse:P,feature:m}),p.Ta("SUBSCRIBE",I)):g.TF(Error("No innertube service available when updating subscriptions."))}else g.TF(Error("No subscribe command in videoData."));
else g.TF(Error("No video data available when updating subscription."))}B.focus();B.removeAttribute("aria-hidden");x.setAttribute("aria-hidden","true")}else g.iW(g.qS(v.J.W()),"sb_button",v.C)},F=function(){var I=v.channelId;
if(m||n){var P=p.getVideoData();mI(p.pn(),P.unsubscribeCommand,{feature:m});p.Ta("UNSUBSCRIBE",I)}x.focus();x.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")};
this.V(x,"click",G);this.V(B,"click",F);this.V(x,"keypress",function(I){13===I.keyCode&&G(I)});
this.V(B,"keypress",function(I){13===I.keyCode&&F(I)});
this.V(p,"SUBSCRIBE",this.j);this.V(p,"UNSUBSCRIBE",this.B);this.ub&&t&&(this.tooltip=this.ub.Ec(),jW(this.tooltip),g.ub(this,g.LU(this.tooltip,x)),g.ub(this,g.LU(this.tooltip,B)))}else g.iu(x,"ytp-sb-disabled"),g.iu(B,"ytp-sb-disabled")};
yVa=function(a,b){g.T.call(this,{I:"div",T:"ytp-title-channel",X:[{I:"div",T:"ytp-title-beacon"},{I:"a",T:"ytp-title-channel-logo",Y:{href:"{{channelLink}}",target:a.W().ea,"aria-label":"{{channelLogoLabel}}"}},{I:"div",T:"ytp-title-expanded-overlay",Y:{"aria-hidden":"{{flyoutUnfocusable}}"},X:[{I:"div",T:"ytp-title-expanded-heading",X:[{I:"div",T:"ytp-title-expanded-title",X:[{I:"a",Aa:"{{expandedTitle}}",Y:{href:"{{channelTitleLink}}",target:a.W().ea,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",T:"ytp-title-expanded-subtitle",Aa:"{{expandedSubtitle}}",Y:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var c=this;this.api=a;this.ub=b;this.channel=this.Ha("ytp-title-channel");this.j=this.Ha("ytp-title-channel-logo");this.channelName=this.Ha("ytp-title-expanded-title");this.G=this.Ha("ytp-title-expanded-overlay");this.C=this.B=this.subscribeButton=null;this.D=!1;a.zb(this.j,this,36925);a.zb(this.channelName,this,37220);g.eS(this.api.W())&&
xVa(this);this.V(a,"videodatachange",this.Sa);this.V(a,"videoplayerreset",this.Sa);this.api.N("web_player_ve_conversion_fixes_for_channel_info")&&(this.V(this.channelName,"click",function(d){c.api.wb(c.channelName);g.In(lW(c));d.preventDefault()}),this.V(this.j,"click",this.s7));
this.Sa()};
zVa=function(a){if(!a.api.W().Jc){var b=a.api.getVideoData(),c=new g.kW("Subscribe",null,"Subscribed",null,!0,!1,b.Hl,b.subscribed,"channel_avatar",null,a.api,a.ub);a.api.qg(c.element,a);var d;a.api.Gg(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.V(c.element,"click",function(){a.api.wb(c.element)});
a.subscribeButton=c;g.L(a,a.subscribeButton);a.subscribeButton.Ga(a.G);a.subscribeButton.hide();var e=new uVa(a.api);a.B=e;g.L(a,e);e.Ga(a.G);e.hide();a.V(a.api,"SUBSCRIBE",function(){b.Ql&&(e.show(),a.api.Xa(e.element,!0))});
a.V(a.api,"UNSUBSCRIBE",function(){b.Ql&&(e.hide(),a.api.Xa(e.element,!1),vVa(e,!1))})}};
xVa=function(a){var b=a.api.W();zVa(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.Cb?a.V(a.j,"click",function(c){a.api.N("web_player_ve_conversion_fixes_for_channel_info")||(AVa(a)&&(c.preventDefault(),a.isExpanded()?a.JG():a.gH()),a.api.wb(a.j))}):(a.V(a.channel,"mouseenter",a.gH),a.V(a.channel,"mouseleave",a.JG),a.V(a.channel,"focusin",
a.gH),a.V(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.JG()}),a.V(a.j,"click",function(){a.api.N("web_player_ve_conversion_fixes_for_channel_info")||a.api.wb(a.j)}));
a.C=new g.au(function(){a.isExpanded()&&(a.api.N("web_player_ve_conversion_fixes_for_channel_info")&&a.api.Xa(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.Xa(a.subscribeButton.element,!1)),a.B&&(a.B.hide(),a.api.Xa(a.B.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.L(a,a.C);a.V(a.channel,BVa,function(){CVa(a)});
a.V(a.api,"onHideControls",a.MQ);a.V(a.api,"appresize",a.MQ);a.V(a.api,"fullscreentoggled",a.MQ)};
CVa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
AVa=function(a){var b=a.api.getPlayerSize();return g.eS(a.api.W())&&524<=b.width};
lW=function(a){var b=a.api.W(),c=a.api.getVideoData();c=g.CS(b)+c.wc;if(!g.eS(b))return c;b={};g.cU(a.api,"addEmbedsConversionTrackingParams",[b]);g.FP(b,"emb_ch_name_ex");return g.Dl(c,b)};
mW=function(a,b,c,d,e,f){var h={I:"div",T:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={I:"div",T:"ytp-panel-header",X:[{I:"div",Na:["ytp-panel-back-button-container"],X:[{Y:{"aria-label":"Back to previous menu"},I:"button",Na:["ytp-button",l]}]},{Y:{tabindex:"0"},I:"span",Na:[m],X:[c]}]};if(e){var p="ytp-panel-options";n.X.push({I:"button",Na:["ytp-button",p],X:[d]})}h.X=[n]}d=!1;f&&(f={I:"div",T:"ytp-panel-footer",X:[f]},d=!0,h.X?h.X.push(f):h.X=[f]);g.tG.call(this,
h);this.content=b;d&&h.X?b.Ga(this.element,h.X.length-1):b.Ga(this.element);this.yW=!1;this.xW=d;c&&(c=this.Ha(l),m=this.Ha(m),this.V(c,"click",this.TX),this.V(m,"click",this.TX),this.yW=!0,e&&(p=this.Ha(p),this.V(p,"click",e)));b.subscribe("size-change",this.YX,this);this.V(a,"fullscreentoggled",this.YX);this.J=a};
g.nW=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.tG({I:"div",T:"ytp-panel-menu",Y:h});mW.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.L(this,this.menuItems)};
g.DVa=function(a){for(var b=g.u(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.EP,a);a.items=[];g.of(a.menuItems.element);a.menuItems.ra("size-change")};
EVa=function(a,b){return b.priority-a.priority};
oW=function(a){var b=g.FU({"aria-haspopup":"true"});g.EU.call(this,b,a);this.Ua("keydown",this.j)};
pW=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
FVa=function(a,b){g.T.call(this,{I:"div",T:"ytp-user-info-panel",Y:{"aria-label":"User info"},X:a.W().va&&!a.N("embeds_web_always_enable_signed_out_state")?[{I:"div",T:"ytp-user-info-panel-icon",Aa:"{{icon}}"},{I:"div",T:"ytp-user-info-panel-content",X:[{I:"div",T:"ytp-user-info-panel-info",Y:{tabIndex:"{{userInfoFocusable}}",role:"text"},Aa:"{{watchingAsUsername}}"},{I:"div",T:"ytp-user-info-panel-info",Y:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Aa:"{{watchingAsEmail}}"}]}]:[{I:"div",T:"ytp-user-info-panel-icon",
Aa:"{{icon}}"},{I:"div",T:"ytp-user-info-panel-content",X:[{I:"div",X:[{I:"text",Y:{tabIndex:"{{userInfoFocusable}}"},Aa:"Signed out"}]},{I:"div",T:"ytp-user-info-panel-login",X:[{I:"a",Y:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Aa:a.W().Jc?"":"Sign in on YouTube"}]}]}]});this.Za=a;this.j=b;a.W().va||a.W().Jc||(a=this.Ha("ytp-user-info-panel-login"),this.V(a,"click",this.f2));this.closeButton=new g.T({I:"button",Na:["ytp-collapse","ytp-button"],Y:{title:"Close"},X:[g.CG()]});this.closeButton.Ga(this.element);
g.L(this,this.closeButton);this.V(window,"blur",this.hide);this.V(document,"click",this.e2);this.Sa()};
HVa=function(a,b,c,d){g.nW.call(this,a);this.Pb=c;this.hd=d;this.getVideoUrl=new oW(6);this.vn=new oW(5);this.hn=new oW(4);this.uc=new oW(3);this.ZE=new g.EU(g.FU({href:"{{href}}",target:this.J.W().ea},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.EU(g.FU(),1,"Stats for nerds");this.Sy=new g.tG({I:"div",Na:["ytp-copytext","ytp-no-contextmenu"],Y:{draggable:"false",tabindex:"1"},Aa:"{{text}}"});this.ZU=new mW(this.J,this.Sy);this.GF=this.zt=null;g.eS(this.J.W())&&(this.closeButton=
new g.T({I:"button",Na:["ytp-collapse","ytp-button"],Y:{title:"Close"},X:[g.CG()]}),g.L(this,this.closeButton),this.closeButton.Ga(this.element),this.closeButton.Ua("click",this.X3,this));g.eS(this.J.W())&&(this.yl=new g.EU(g.FU(),8,"Account"),g.L(this,this.yl),this.ud(this.yl,!0),this.yl.Ua("click",this.a9,this),a.zb(this.yl.element,this.yl,137682));this.J.W().Nm&&(this.Vk=new NU("Loop",7),g.L(this,this.Vk),this.ud(this.Vk,!0),this.Vk.Ua("click",this.T7,this),a.zb(this.Vk.element,this.Vk,28661));
g.L(this,this.getVideoUrl);this.ud(this.getVideoUrl,!0);this.getVideoUrl.Ua("click",this.L7,this);a.zb(this.getVideoUrl.element,this.getVideoUrl,28659);g.L(this,this.vn);this.ud(this.vn,!0);this.vn.Ua("click",this.M7,this);a.zb(this.vn.element,this.vn,28660);g.L(this,this.hn);this.ud(this.hn,!0);this.hn.Ua("click",this.K7,this);a.zb(this.hn.element,this.hn,28658);g.L(this,this.uc);this.ud(this.uc,!0);this.uc.Ua("click",this.J7,this);g.L(this,this.ZE);this.ud(this.ZE,!0);this.ZE.Ua("click",this.H8,
this);g.L(this,this.showVideoInfo);this.ud(this.showVideoInfo,!0);this.showVideoInfo.Ua("click",this.b9,this);g.L(this,this.Sy);this.Sy.Ua("click",this.y7,this);g.L(this,this.ZU);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=Qaa("Chromium")&&(b=!0);40>=Qaa("Firefox")&&(b=!1);b&&(this.zt=new g.T({I:"textarea",T:"ytp-html5-clipboard",Y:{readonly:"",tabindex:"-1"}}),g.L(this,this.zt),this.zt.Ga(this.element));var e;null==(e=this.yl)||GU(e,Cua());var f;null==(f=this.Vk)||
GU(f,{I:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{I:"path",Y:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});GU(this.uc,{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{I:"path",Y:{"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"}}]});GU(this.ZE,{I:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{I:"path",Y:{"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"}}]});GU(this.showVideoInfo,uua());this.V(a,"onLoopChange",this.onLoopChange);this.V(a,"videodatachange",this.onVideoDataChange);GVa(this);this.pF(this.J.getVideoData())};
rW=function(a,b){var c=!1;if(a.zt){var d=a.zt.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Pb.Qb():(a.Sy.oe(b,"text"),g.qW(a.Pb,a.ZU),zSa(a.Sy.element),a.zt&&(a.zt=null,GVa(a)));return c};
GVa=function(a){var b=!!a.zt;g.DU(a.uc,b?"Copy debug info":"Get debug info");pW(a.uc,!b);g.DU(a.hn,b?"Copy embed code":"Get embed code");pW(a.hn,!b);g.DU(a.getVideoUrl,b?"Copy video URL":"Get video URL");pW(a.getVideoUrl,!b);g.DU(a.vn,b?"Copy video URL at current time":"Get video URL at current time");pW(a.vn,!b);GU(a.hn,b?sua():null);GU(a.getVideoUrl,b?BG():null);GU(a.vn,b?BG():null)};
IVa=function(a){return g.eS(a.J.W())?a.yl:a.Vk};
g.sW=function(a,b){g.BU.call(this,a,{I:"div",Na:["ytp-popup",b||""]},100,!0);this.j=[];this.K=this.G=null;this.maxHeight=this.maxWidth=0;this.size=new g.we(0,0);this.Ua("keydown",this.j2)};
JVa=function(a){var b=a.j[a.j.length-1];if(b){g.Ir(a.element,a.maxWidth||"100%",a.maxHeight||"100%");g.yr(b.element,"width","");g.yr(b.element,"height","");g.yr(b.element,"maxWidth","100%");g.yr(b.element,"maxHeight","100%");g.yr(b.content.element,"height","");var c=g.Jr(b.element);c.width+=1;c.height+=1;g.yr(b.element,"width",c.width+"px");g.yr(b.element,"height",c.height+"px");g.yr(b.element,"maxWidth","");g.yr(b.element,"maxHeight","");var d=0;b.yW&&(d=b.Ha("ytp-panel-header"),d=g.Jr(d).height);
var e=0;b.xW&&(e=b.Ha("ytp-panel-footer"),g.yr(e,"width",c.width+"px"),e=g.Jr(e).height);g.yr(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.yr(b.element,"width",c.width+"px")));a.size=c}};
g.qW=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);KVa(a,c,b)};
g.tW=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];KVa(a,b,c,!0)}};
KVa=function(a,b,c,d){LVa(a);b&&(b.unsubscribe("size-change",a.oB,a),b.unsubscribe("back",a.zj,a));c.subscribe("size-change",a.oB,a);c.subscribe("back",a.zj,a);if(a.Ib){g.iu(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ga(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;JVa(a);g.Ir(a.element,e);a.G=new g.au(function(){MVa(a,b,c,d)},20,a);
a.G.start()}else c.Ga(a.element),b&&b.detach()};
MVa=function(a,b,c,d){a.G.dispose();a.G=null;g.iu(a.element,"ytp-popup-animating");d?(g.iu(b.element,"ytp-panel-animate-forward"),g.ku(c.element,"ytp-panel-animate-back")):(g.iu(b.element,"ytp-panel-animate-back"),g.ku(c.element,"ytp-panel-animate-forward"));g.Ir(a.element,a.size);a.K=new g.au(function(){g.ku(a.element,"ytp-popup-animating");b.detach();g.lu(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.K.dispose();a.K=null},250,a);
a.K.start()};
LVa=function(a){a.G&&g.cu(a.G);a.K&&g.cu(a.K)};
g.uW=function(a,b,c){g.sW.call(this,a);this.ub=b;this.hd=c;this.D=new g.ZK(this);this.va=new g.au(this.s9,1E3,this);this.Ca=this.C=null;g.L(this,this.D);g.L(this,this.va);a.zb(this.element,this,28656);g.iu(this.element,"ytp-contextmenu");NVa(this);this.hide()};
NVa=function(a){g.cD(a.D);var b=a.J.W();"gvn"===b.playerStyle||b.B||b.Cb||(b=a.J.tb(),a.D.V(b,"contextmenu",a.w7),a.D.V(b,"touchstart",a.m2,null,!0),a.D.V(b,"touchmove",a.yY,null,!0),a.D.V(b,"touchend",a.yY,null,!0))};
OVa=function(a){a.J.isFullscreen()?g.wU(a.J,a.element,10):a.Ga(document.body)};
g.vW=function(a,b,c){c=void 0===c?240:c;g.T.call(this,{I:"button",Na:["ytp-button","ytp-copylink-button"],Y:{title:"{{title-attr}}","data-tooltip-opaque":String(g.eS(a.W()))},X:[{I:"div",T:"ytp-copylink-icon",Aa:"{{icon}}"},{I:"div",T:"ytp-copylink-title",Aa:"Copy link",Y:{"aria-hidden":"true"}}]});this.api=a;this.ub=b;this.j=c;this.visible=!1;this.tooltip=this.ub.Ec();b=a.W();jW(this.tooltip);g.mu(this.element,"ytp-show-copylink-title",g.eS(b)&&!g.mS(b));a.zb(this.element,this,86570);this.Ua("click",
this.onClick);this.V(a,"videodatachange",this.Sa);this.V(a,"videoplayerreset",this.Sa);this.V(a,"appresize",this.Sa);this.Sa();g.ub(this,g.LU(this.tooltip,this.element))};
PVa=function(a){var b=a.api.W(),c=a.api.getVideoData(),d=a.api.tb().getPlayerSize().width,e=b.C;return!!c.videoId&&d>=a.j&&c.Oo&&!(c.Sd&&b.qa)&&!g.tU(a.api)&&!e};
QVa=function(a){a.updateValue("icon",oua());if(a.api.W().B)wW(a.tooltip,a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");MU(a.tooltip);wW(a.tooltip,a.element);var b=a.Ua("mouseleave",function(){a.Qc(b);a.Sa();a.tooltip.Hk()})}};
RVa=function(a,b){return g.H(function(c){if(1==c.j)return g.za(c,2),g.z(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.Ca(c);var d=c.return,e=!1,f=g.lf("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(cE){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f);
return d.call(c,e)})};
xW=function(a){g.T.call(this,{I:"div",T:"ytp-doubletap-ui-legacy",X:[{I:"div",T:"ytp-doubletap-fast-forward-ve"},{I:"div",T:"ytp-doubletap-rewind-ve"},{I:"div",T:"ytp-doubletap-static-circle",X:[{I:"div",T:"ytp-doubletap-ripple"}]},{I:"div",T:"ytp-doubletap-overlay-a11y"},{I:"div",T:"ytp-doubletap-seek-info-container",X:[{I:"div",T:"ytp-doubletap-arrows-container",X:[{I:"span",T:"ytp-doubletap-base-arrow"},{I:"span",T:"ytp-doubletap-base-arrow"},{I:"span",T:"ytp-doubletap-base-arrow"}]},{I:"div",
T:"ytp-doubletap-tooltip",X:[{I:"div",T:"ytp-chapter-seek-text-legacy",Aa:"{{seekText}}"},{I:"div",T:"ytp-doubletap-tooltip-label",Aa:"{{seekTime}}"}]}]}]});this.J=a;this.D=new g.au(this.show,10,this);this.B=new g.au(this.hide,700,this);this.K=this.C=0;this.G=!1;this.j=this.Ha("ytp-doubletap-static-circle");g.L(this,this.D);g.L(this,this.B);this.hide();this.S=this.Ha("ytp-doubletap-fast-forward-ve");this.ea=this.Ha("ytp-doubletap-rewind-ve");this.J.zb(this.S,this,28240);this.J.zb(this.ea,this,28239);
this.J.Xa(this.S,!0);this.J.Xa(this.ea,!0);this.G=a.N("web_show_cumulative_seek_time")};
yW=function(a,b,c){a.C=b===a.K?a.C+c:c;a.K=b;var d=a.J.tb().getPlayerSize();a.G?a.B.stop():g.du(a.B);a.D.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.iu(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";1===b?(a.j.style.right="",a.j.style.left=.8*d.width-30+"px"):-1===b&&(a.j.style.right="",a.j.style.left=.1*d.width-15+"px");a.j.style.top=.5*d.height+15+"px";SVa(a,a.G?a.C:c)};
TVa=function(a,b,c){g.du(a.B);a.D.start();switch(b){case -1:b="back";break;case 1:b="forward";break;default:b=""}a.element.setAttribute("data-side",b);a.j.style.width="0";a.j.style.height="0";g.iu(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")};
SVa=function(a,b){b=g.vK("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)};
BW=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;g.T.call(this,{I:"div",T:"ytp-suggested-action"});var e=this;this.J=a;this.ub=b;this.fb=this.qa=this.ea=this.C=this.B=this.K=this.expanded=this.enabled=this.Oa=!1;this.Ya=new g.au(function(){e.badge.element.style.width=""},200,this);
this.Ja=new g.au(function(){zW(e);AW(e)},200,this);
this.dismissButton=new g.T({I:"button",Na:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.L(this,this.dismissButton);this.D=new g.T({I:"div",T:"ytp-suggested-action-badge-expanded-content-container",X:[{I:"label",T:"ytp-suggested-action-badge-title",Aa:"{{badgeLabel}}"},this.dismissButton]});g.L(this,this.D);this.Fa=new g.T({I:"div",T:"ytp-suggested-action-badge-icon-container",X:[c?{I:"div",T:"ytp-suggested-action-badge-icon"}:""]});g.L(this,this.Fa);this.badge=new g.T({I:d?"div":
"button",Na:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],X:[this.Fa,this.D]});g.L(this,this.badge);this.badge.Ga(this.element);this.S=new g.VG(this.badge,250,!1,100);g.L(this,this.S);this.Va=new g.VG(this.D,250,!1,100);g.L(this,this.Va);this.eb=new g.Zt(this.Q$,null,this);g.L(this,this.eb);this.Pa=new g.Zt(this.F4,null,this);g.L(this,this.Pa);g.L(this,this.Ya);g.L(this,this.Ja);this.J.qg(this.badge.element,this.badge,!0);this.J.qg(this.dismissButton.element,
this.dismissButton,!0);this.V(this.J,"onHideControls",function(){e.OI(!1)});
this.V(this.J,"onShowControls",function(){e.OI(!0)});
this.V(this.badge.element,"click",this.LI);this.V(this.dismissButton.element,"click",this.jE);this.V(this.J,"pageTransition",this.sT);this.V(this.J,"appresize",this.Im);this.V(this.J,"fullscreentoggled",this.I7);this.V(this.J,"cardstatechange",this.p7);this.V(this.J,"annotationvisibility",this.waa,this);this.V(this.J,"offlineslatestatechange",this.xaa,this)};
zW=function(a){g.mu(a.badge.element,"ytp-suggested-action-badge-with-controls",a.ea||!a.K)};
AW=function(a,b){var c=a.YJ();a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.eb.stop(),a.Pa.stop(),a.Ya.stop(),a.eb.start()):(g.sG(a.D,a.expanded),g.mu(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),UVa(a))};
UVa=function(a){a.B&&a.J.Xa(a.badge.element,a.cB());a.C&&a.J.Xa(a.dismissButton.element,a.cB()&&a.YJ())};
VVa=function(a){var b=a.text||"";g.Bf(g.$e("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.rb?a.rb:"")};
CW=function(a,b){b?a.C&&a.J.wb(a.dismissButton.element):a.B&&a.J.wb(a.badge.element)};
WVa=function(a,b){BW.call(this,a,b,!1,!0);this.va=[];this.K=!0;this.badge.element.classList.add("ytp-featured-product");this.Ca=new g.T({I:"div",T:"ytp-featured-product-open-in-new"});g.L(this,this.Ca);this.countdownTimer=new g.T({I:"text",T:"ytp-featured-product-countdown",Aa:"{{content}}"});this.countdownTimer.hide();g.L(this,this.countdownTimer);this.G=new g.T({I:"div",T:"ytp-featured-product-trending",X:[{I:"div",T:"ytp-featured-product-trending-icon"},{I:"text",T:"ytp-featured-product-trending-text",
Aa:"{{trendingOffer}}"}]});this.G.hide();g.L(this,this.G);this.banner=new g.T({I:"a",T:"ytp-featured-product-container",X:[{I:"div",T:"ytp-featured-product-thumbnail",X:[{I:"img",Y:{src:"{{thumbnail}}"}},this.Ca]},{I:"div",T:"ytp-featured-product-details",X:[{I:"text",T:"ytp-featured-product-title",Aa:"{{title}}"},{I:"text",T:"ytp-featured-product-price",Aa:"{{price}}"},{I:"div",X:[{I:"text",T:"ytp-featured-product-vendor",Aa:"{{vendor}}"},{I:"text",T:"ytp-featured-product-affiliate-disclaimer",Aa:"{{affiliateDisclaimer}}"},
this.countdownTimer,this.G]}]},this.dismissButton]});g.L(this,this.banner);this.banner.Ga(this.D.element);this.V(this.J,g.pK("featured_product"),this.E$);this.V(this.J,g.qK("featured_product"),this.WE);this.V(this.J,"videodatachange",this.onVideoDataChange)};
XVa=function(a){var b,c,d,e,f,h;return a.G.Ib||(null==(b=a.j)?0:null==(c=b.bannerData)?0:null==(d=c.itemData)?0:d.affiliateDisclaimer)?null:null==(e=a.j)?void 0:null==(f=e.bannerData)?void 0:null==(h=f.itemData)?void 0:h.vendorName};
YVa=function(a,b){DW(a);if(b){var c=g.vT.getState().entities;c=cP(c,"featuredProductsEntity",b);if(null!=c&&c.productsData){b=[];c=g.u(c.productsData);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if(null!=(e=d)&&e.identifier&&d.featuredSegments){a.va.push(d);var f=void 0;e=g.u(null==(f=d)?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next())(f=f.value)&&b.push(new g.oK(1E3*Number(f.startTimeSec),1E3*Number(f.endTimeSec)||0x7ffffffffffff,{id:d.identifier,namespace:"featured_product"}))}}a.J.xf(b)}}};
$Va=function(a){if(a.trendingOfferEntityKey){var b=g.vT.getState().entities;if(b=cP(b,"trendingOfferEntity",a.trendingOfferEntityKey)){var c,d,e;b.encodedSkuId!==(null==(c=a.j)?void 0:null==(d=c.bannerData)?void 0:null==(e=d.itemData)?void 0:e.encodedOfferSkuId)?ZVa(a):(a.G.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.G.show(),a.banner.update({vendor:XVa(a)}))}else ZVa(a)}else ZVa(a)};
ZVa=function(a){a.G.hide();a.banner.update({vendor:XVa(a)})};
DW=function(a){a.va=[];a.J.mf("featured_product")};
aWa=function(a){var b,c,d,e,f=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:null==(e=d.hiddenProductOptions)?void 0:e.dropTimestampMs;b=(Number(f)-Date.now())/1E3;a.countdownTimer.oe(hGa({seconds:b}));if(0<b){var h;null==(h=a.kb)||h.start()}};
bWa=function(a){var b;null==(b=a.kb)||b.stop();a.countdownTimer.hide()};
cWa=function(a){var b;return(null==(b=((null==a?void 0:a.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))?void 0:b.timeCounterRenderer)||null};
EW=function(a){g.T.call(this,{I:"div",Na:["ytp-player-content","ytp-iv-player-content"],X:[{I:"div",T:"ytp-free-preview-countdown-timer",X:[{I:"span",Aa:"{{label}}"},{I:"span",T:"ytp-free-preview-countdown-timer-separator",Aa:"\u2022"},{I:"span",Aa:"{{duration}}"}]}]});this.api=a;this.j=null;this.C=this.B=0;this.V(this.api,"videodatachange",this.onVideoDataChange);this.api.zb(this.element,this,191284)};
eWa=function(a,b){a.j||(a.B=b,a.C=(0,g.OD)(),a.j=new g.Zt(function(){dWa(a)},null),dWa(a))};
dWa=function(a){var b=Math,c=b.round,d=Math.min((0,g.OD)()-a.C,a.B);b=c.call(b,(a.B-d)/1E3);a.updateValue("duration",hGa({seconds:b}));0>=b&&a.j?fWa(a):a.j&&a.j.start()};
fWa=function(a){a.j&&(a.j.dispose(),a.j=null)};
kWa=function(a,b,c){g.T.call(this,{I:"div",Na:["ytp-info-panel-action-item"],X:[{I:"div",T:"ytp-info-panel-action-item-disclaimer",Aa:"{{disclaimer}}"},{I:"a",Na:["ytp-info-panel-action-item-button","ytp-button"],Y:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},X:[{I:"div",T:"ytp-info-panel-action-item-icon",Aa:"{{icon}}"},{I:"div",T:"ytp-info-panel-action-item-label",Aa:"{{label}}"}]}]});this.J=a;this.j=c;this.disclaimer=this.Ha("ytp-info-panel-action-item-disclaimer");this.button=
this.Ha("ytp-info-panel-action-item-button");this.Ie=!1;this.J.qg(this.element,this,!0);this.Ua("click",this.onClick);a="";c=g.S(null==b?void 0:b.onTap,hG);var d=g.S(c,g.IG);this.Ie=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.Ie=!0,g.En(this.button,g.Dn(a))):(d=g.S(c,gWa))&&!this.j?((a=d.phoneNumbers)&&0<a.length?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.Ie=!0,g.En(this.button,g.Dn(a,[hWa]))):(c=g.S(c,iWa))&&!this.j&&(a=c.phoneNumber?"tel:"+c.phoneNumber:
"",this.Ie=!0,g.En(this.button,g.Dn(a,[jWa])));var e;if(c=null==(e=b.disclaimerText)?void 0:e.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var f;this.update({label:null==(f=b.bodyText)?void 0:f.content,icon:Aua(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:null==(h=b.bodyText)?void 0:h.content,icon:Aua()})}this.J.Gg(this.element,b.trackingParams||null);this.Ie&&(this.B={externalLinkData:{url:a}})};
lWa=function(a,b){var c=oG();g.BU.call(this,a,{I:"div",T:"ytp-info-panel-detail-skrim",X:[{I:"div",T:"ytp-info-panel-detail",Y:{role:"dialog",id:c},X:[{I:"div",T:"ytp-info-panel-detail-header",X:[{I:"div",T:"ytp-info-panel-detail-title",Aa:"{{title}}"},{I:"button",Na:["ytp-info-panel-detail-close","ytp-button"],Y:{"aria-label":"Close"},X:[g.AG()]}]},{I:"div",T:"ytp-info-panel-detail-body",Aa:"{{body}}"},{I:"div",T:"ytp-info-panel-detail-items"}]}]},250);this.j=b;this.items=this.Ha("ytp-info-panel-detail-items");
this.C=new g.ZK(this);this.itemData=[];this.D=c;b=this.Ha("ytp-info-panel-detail-close");this.V(b,"click",this.Qb);b=this.Ha("ytp-info-panel-detail-skrim");this.V(b,"click",this.Qb);b=this.Ha("ytp-info-panel-detail");this.V(b,"click",function(d){d.stopPropagation()});
g.L(this,this.C);this.J.qg(this.element,this,!0);this.V(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()};
mWa=function(a,b){a=g.u(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.J.Xa(c.element,b)};
pWa=function(a,b,c){g.T.call(this,{I:"div",T:"ytp-info-panel-preview",Y:{"aria-live":"assertive","aria-atomic":"true","aria-owns":c.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.eS(a.W()))},X:[{I:"div",T:"ytp-info-panel-preview-text",Aa:"{{text}}"},{I:"div",T:"ytp-info-panel-preview-chevron",Aa:"{{chevron}}"}]});var d=this;this.J=a;this.lf=this.j=this.videoId=null;this.D=this.showControls=this.B=!1;this.V(this.element,"click",function(){a.wb(d.element);b.nm();CU(c)});
this.C=new g.VG(this,250,!1,100);g.L(this,this.C);this.J.qg(this.element,this,!0);this.V(a,"videodatachange",this.onVideoDataChange);this.V(a,"presentingplayerstatechange",this.Xd);this.V(this.J,"paidcontentoverlayvisibilitychange",this.ZX);this.V(this.J,"infopaneldetailvisibilitychange",this.ZX);var e=a.getVideoData()||{};nWa(e)&&oWa(this,e);this.V(a,"onShowControls",this.o2);this.V(a,"onHideControls",this.n2)};
oWa=function(a,b){if(!b.Uf||!a.J.mp()){var c=b.AL||1E4,d=nWa(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.du(a.j),a.videoId=b.videoId,d?(qWa(a,c,b),a.zd()):(a.Qb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),qWa(a,c,b),a.zd())}};
nWa=function(a){var b,c,d,e;return!!(null==(b=a.Vd)?0:null==(c=b.title)?0:c.content)||!!(null==(d=a.Vd)?0:null==(e=d.bodyText)?0:e.content)};
qWa=function(a,b,c){a.j&&a.j.dispose();a.j=new g.au(a.H$,b,a);g.L(a,a.j);var d;b=(null==(d=c.Vd)?void 0:d.trackingParams)||null;a.J.Gg(a.element,b);var e;var f,h;if(null==c?0:null==(f=c.Vd)?0:null==(h=f.title)?0:h.content){var l;d=null==(e=c.Vd)?void 0:null==(l=e.title)?void 0:l.content;var m,n;if(null==(m=c.Vd)?0:null==(n=m.bodyText)?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=(null==(p=c.Vd)?void 0:null==(q=p.bodyText)?void 0:q.content)||"";a.update({text:e+c,chevron:g.zG()})};
rWa=function(a,b){a.j&&(g.aH(b,8)?(a.B=!0,a.zd(),a.j.start()):(g.aH(b,2)||g.aH(b,64))&&a.videoId&&(a.videoId=null))};
FW=function(a){var b=null;try{b=a.toLocaleString("en-GB",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
GW=function(a,b){var c=0;a=g.u(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
sWa=function(a,b){for(var c=0,d=g.u(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b<e.timeRangeStartMillis)return null;if(b>=e.timeRangeStartMillis&&b<e.timeRangeStartMillis+e.j)break;c++}c+1<a.length&&a[c+1].timeRangeStartMillis<=b&&c++;return c<a.length?c:null};
tWa=function(a,b){b=GW(a,b)+1;return b<a.length?b:-1};
uWa=function(a,b){return GW(a,b)-1};
vWa=function(a,b){return new g.oK(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
g.IW=function(a,b,c,d,e,f,h,l){g.ZK.call(this);var m=this;this.api=a;this.contextMenu=c;this.nf=d;this.hd=e;this.j=f;this.K=h;this.Tc=l;this.D=new g.au(function(){wWa(m,!1)},1E3);
this.B="";this.C={WH:!1};this.G=!1;g.L(this,this.D);this.V(b,"mousedown",function(){HW(m,!1)});
this.V(c.element,"mousedown",function(){HW(m,!1)});
this.V(b,"keydown",this.mW);this.V(c.element,"keydown",this.mW);this.V(b,"keyup",this.nW);this.V(c.element,"keyup",this.nW)};
HW=function(a,b){a.G=b;g.mu(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.mu(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
KW=function(a,b,c,d){var e=g.JV(a.api.Eb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.JW.length;h++){var l=g.JW[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);wWa(a,!0);a.D.start()}};
wWa=function(a,b){g.JV(a.api.Eb())&&a.api.setOption("captions","sampleSubtitles",b)};
g.LW=function(a,b,c){g.T.call(this,{I:"button",Na:["ytp-button","ytp-overflow-button"],Y:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},X:[{I:"div",T:"ytp-overflow-icon",X:[{I:"svg",Y:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},X:[{I:"path",Y:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var d=this;this.J=a;this.ub=b;this.Sh=c;this.j=this.visible=!1;
this.tooltip=this.ub.Ec();a.zb(this.element,this,16499);this.V(a,"videoplayerreset",this.Sa);this.V(a,"appresize",this.Sa);this.V(a,"fullscreentoggled",this.Sa);this.V(a,"presentingplayerstatechange",this.Sa);this.Sa();g.ub(this,g.LU(this.tooltip,this.element));this.Ua("click",function(){a.wb(d.element);CU(c,d.element,!1)});
this.V(c.closeButton,"click",function(){d.focus()})};
xWa=function(a,b){g.BU.call(this,a,{I:"div",T:"ytp-overflow-panel",Y:{id:oG(),role:"dialog"},X:[{I:"div",T:"ytp-overflow-panel-content",X:[{I:"div",T:"ytp-overflow-panel-action-buttons",Aa:"{{buttons}}"}]},{I:"button",Na:["ytp-overflow-panel-close","ytp-button"],Y:{title:"Close"},X:[g.AG()]}]},250);this.actionButtons=[];this.tooltip=b.Ec();this.j=this.Ha("ytp-overflow-panel-content");this.closeButton=this.Ha("ytp-overflow-panel-close");this.V(this.closeButton,"click",this.Qb);g.ub(this,g.LU(this.tooltip,
this.closeButton));this.Ua("click",this.q2);this.V(a,"videoplayerreset",this.hide);this.V(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
yWa=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.updateValue("buttons",a.actionButtons))};
zWa=function(a,b){a=g.u(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.lc(b)};
AWa=function(a,b,c){var d=g.vV(b,c),e=a.W(),f=d.Lg("default.jpg");g.T.call(this,{I:"a",Na:["ytp-video-menu-item","ytp-button"],Y:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},X:[{I:"div",T:"ytp-video-menu-item-index",Aa:String(c+1)},{I:"div",T:"ytp-video-menu-item-now-playing",Aa:"\u25b6"},{I:"div",T:"ytp-video-menu-item-thumbnail",Y:{style:f?"background-image: url("+f+");":void 0}},{I:"div",T:"ytp-video-menu-item-title",Aa:d.title},{I:"div",
T:"ytp-video-menu-item-author",Aa:d.author}]});this.api=a;this.index=c;this.Ua("click",this.onClick)};
BWa=function(a){g.BU.call(this,a,{I:"div",T:"ytp-playlist-menu",Y:{role:"dialog",id:oG()},X:[{I:"div",T:"ytp-playlist-menu-header",X:[{I:"div",T:"ytp-playlist-menu-title",X:[a.W().C?{I:"span",T:"ytp-playlist-menu-title-name",Aa:"{{title}}"}:{I:"a",T:"ytp-playlist-menu-title-name",Y:{href:"{{playlisturl}}"},Aa:"{{title}}"},{I:"button",Na:["ytp-playlist-menu-close","ytp-button"],Y:{"aria-label":"Close"},X:[g.AG()]}]},{I:"div",T:"ytp-playlist-menu-subtitle",Aa:"{{subtitle}}"}]},{I:"div",T:"ytp-playlist-menu-items",
Y:{role:"menu"}}]},250);this.api=a;this.D=this.selected=this.G=this.playlist=null;this.items=this.Ha("ytp-playlist-menu-items");this.C=new g.ZK(this);this.j=[];var b=this.Ha("ytp-playlist-menu-close");this.V(b,"click",this.Qb);b=this.Ha("ytp-playlist-menu-title-name");a.W().C||(this.D=this.V(b,"click",this.r9));g.L(this,this.C);this.hide()};
MW=function(a,b,c){g.T.call(this,{I:"button",Na:["ytp-playlist-menu-button","ytp-button"],Y:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},X:[{I:"div",T:"ytp-playlist-menu-button-icon",X:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,Y:{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"}}]}]},{I:"div",T:"ytp-playlist-menu-button-text",Aa:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.Ec();a.zb(this.element,this,70344);this.V(a,"videodatachange",this.j);this.V(a,"videoplayerreset",this.j);this.V(a,"onPlaylistUpdate",this.j);this.V(a,"presentingplayerstatechange",this.Sa);this.V(a,"appresize",this.Sa);this.hide();this.j();g.ub(this,g.LU(this.tooltip,this.element));this.Ua("click",function(){a.wb(d.element);CU(c,d.element,!1)})};
CWa=function(a,b,c){g.T.call(this,{I:"div",T:"ytp-promotooltip-wrapper",X:[{I:"div",T:"ytp-promotooltip-container",X:[{I:"div",T:"ytp-promotooltip-content",X:[{I:"div",T:"ytp-promotooltip-title",Aa:"{{title}}"},{I:"div",T:"ytp-promotooltip-details",Aa:"{{details}}"}]},{I:"div",T:"ytp-promotooltip-buttons",X:[{I:"div",T:"ytp-promotooltip-dismiss-button",Aa:"{{dismissButtonText}}",Y:{tabindex:"0"}},{I:"div",T:"ytp-promotooltip-accept-button",Aa:"{{acceptButtonText}}",Y:{tabindex:"0","aria-haspopup":"true"}}]}]},
{I:"div",T:"ytp-promotooltip-pointer"}]});var d=this;this.tooltipRenderer=a;this.ub=b;this.J=c;this.j=this.C=null;this.title=this.Ha("ytp-promotooltip-title");this.details=this.Ha("ytp-promotooltip-details");this.acceptButton=this.Ha("ytp-promotooltip-accept-button");this.dismissButton=this.Ha("ytp-promotooltip-dismiss-button");this.B=this.G=!1;this.D=!0;this.qa=this.K=this.ea=this.S=!1;this.Nd={nF:function(e){d.nF(e)}};
g.sG(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.B=!!a)this.J.qg(this.element,this,!0),this.J.Gg(this.element,a);this.V(c,"onShowControls",this.t2);this.V(c,"onHideControls",this.s2);this.V(c,"resize",this.Nb);this.V(this.acceptButton,"click",this.X6);this.V(this.dismissButton,"click",this.D7);this.V(document,"click",this.v2)};
DWa=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=0<b.length?b[0]:null;var c=g.$e("ytp-chrome-bottom"),d=g.$e("ytp-ad-module");a.D=!(null==c||!c.contains(b));a.S=!(null==d||!d.contains(b));a.ea=!(null==b||!b.hasAttribute("data-tooltip-target-fixed"));return b};
GWa=function(a,b,c){if(!a.G){if(b){a.tooltipRenderer=b;b=a.tooltipRenderer.text;var d=!1,e;(null==b?0:null==(e=b.runs)?0:e.length)&&b.runs[0].text&&(a.update({title:b.runs[0].text.toString()}),d=!0);g.Kr(a.title,d);b=a.tooltipRenderer.detailsText;e=!1;var f;if((null==b?0:null==(f=b.runs)?0:f.length)&&b.runs[0].text){d=b.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(-1<f)if(a.tooltipRenderer.targetId){b=[];d=d.split("$TARGET_ICON");var h=new g.pG({I:"span",T:"ytp-promotooltip-details-icon",
X:[EWa[a.tooltipRenderer.targetId]]});g.L(a,h);for(var l=[],m=g.u(d),n=m.next();!n.done;n=m.next())n=new g.pG({I:"span",T:"ytp-promotooltip-details-component",Aa:n.value}),g.L(a,n),l.push(n);2===d.length?(b.push(l[0].element),b.push(h.element),b.push(l[1].element)):1===d.length&&(0===f?(b.push(h.element),b.push(l[0].element)):(b.push(l[0].element),b.push(h.element)));f=b.length?b:null}else f=null;else f=d;if(f){if("string"!==typeof f)for(g.of(a.details),e=g.u(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value);
else a.update({details:f});e=!0}}g.Kr(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;(null==(p=g.S(e,g.lN))?0:null==(q=p.text)?0:null==(r=q.runs)?0:r.length)&&g.S(e,g.lN).text.runs[0].text&&(a.update({acceptButtonText:g.S(e,g.lN).text.runs[0].text.toString()}),f=!0);g.Kr(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var t,v,x;(null==(t=g.S(p,g.lN))?0:null==(v=t.text)?0:null==(x=v.runs)?0:x.length)&&g.S(p,g.lN).text.runs[0].text&&(a.update({dismissButtonText:g.S(p,g.lN).text.runs[0].text.toString()}),
q=!0);g.Kr(a.dismissButton,q)}c&&(a.C=c);a.j=DWa(a);a.K=!1;a.J.W().N("web_player_hide_nitrate_promo_tooltip")||g.sG(a,!0);FWa(a);a.Ib&&!a.qa&&(a.qa=!0,a.Nd.nF(0));a.B&&a.J.Xa(a.element,a.Ib)}};
NW=function(a){g.sG(a,!1);a.B&&a.J.Xa(a.element,a.Ib)};
HWa=function(a){var b,c,d,e=(null==(b=g.S(a.acceptButton,g.lN))?void 0:null==(c=b.text)?void 0:null==(d=c.runs)?void 0:d.length)&&!!g.S(a.acceptButton,g.lN).text.runs[0].text,f,h,l;b=(null==(f=g.S(a.dismissButton,g.lN))?void 0:null==(h=f.text)?void 0:null==(l=h.runs)?void 0:l.length)&&!!g.S(a.dismissButton,g.lN).text.runs[0].text;return e||b};
FWa=function(a){var b;if(!(b=!a.j)){b=a.j;var c=window.getComputedStyle(b);b="none"===c.display||"hidden"===c.visibility||"true"===b.getAttribute("aria-hidden")}if(b||a.J.yg())g.sG(a,!1);else if(b=g.Jr(a.j),b.width&&b.height){a.ub.Hw(a.element,a.j);var d=a.J.tb().getPlayerSize().height;c=g.Jr(a.Ha("ytp-promotooltip-container")).height;a.D?a.element.style.top=d-c-b.height-12+"px":a.ea||(d=a.ub.Pk().height-c-b.height-12,a.element.style.top=d+"px");d=a.Ha("ytp-promotooltip-pointer");var e=g.Hr(a.j,a.J.getRootNode()),
f=Number(a.element.style.left.replace(/[^\d\.]/g,""));a=a.J.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.sG(a,!1)};
OW=function(a,b){g.T.call(this,{I:"button",Na:["ytp-replay-button","ytp-button"],Y:{title:"Replay"},X:[g.Gua()]});this.J=a;this.V(a,"presentingplayerstatechange",this.onStateChange);this.Ua("click",this.onClick,this);this.Gc(a.Tb());g.LU(b.Ec(),this.element)};
PW=function(a,b,c){c=void 0===c?240:c;g.T.call(this,{I:"button",Na:["ytp-button","ytp-search-button"],Y:{title:"Search","data-tooltip-opaque":String(g.eS(a.W()))},X:[{I:"div",T:"ytp-search-icon",Aa:"{{icon}}"},{I:"div",T:"ytp-search-title",Aa:"Search"}]});this.api=a;this.ub=b;this.B=c;this.visible=!1;this.tooltip=this.ub.Ec();this.updateValue("icon",{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},X:[{I:"path",T:"ytp-svg-fill",Y:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]});
a.zb(this.element,this,184945);this.Ua("click",this.onClick);this.j();this.V(a,"appresize",this.j);g.ub(this,g.LU(this.tooltip,this.element))};
g.QW=function(a,b,c,d){d=void 0===d?240:d;g.T.call(this,{I:"button",Na:["ytp-button","ytp-share-button"],Y:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.eS(a.W()))},X:[{I:"div",T:"ytp-share-icon",Aa:"{{icon}}"},{I:"div",T:"ytp-share-title",Aa:"Share"}]});this.api=a;this.ub=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.ub.Ec();this.j=!1;a.zb(this.element,this,28664);this.Ua("click",this.onClick);this.V(a,"videodatachange",this.Sa);this.V(a,"videoplayerreset",
this.Sa);this.V(a,"appresize",this.Sa);this.V(a,"presentingplayerstatechange",this.Sa);this.Sa();g.ub(this,g.LU(this.tooltip,this.element))};
IWa=function(a){var b=a.api.W(),c=a.api.getVideoData(),d=g.eS(b)&&g.sU(a.api)&&g.aH(a.api.Tb(),128);b=b.C||b.disableSharing&&2!==a.api.getPresentingPlayerType()||!c.showShareButton||c.Oo||d||c.Sd&&b.qa||a.j;d=a.api.tb().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b};
JWa=function(a,b){"InvalidStateError"!==b.name&&"AbortError"!==b.name&&("NotAllowedError"===b.name?(a.ub.nm(),CU(a.B,a.element,!1)):g.TF(b))};
g.RW=function(a,b){var c=oG(),d=a.W();c={I:"div",T:"ytp-share-panel",Y:{id:oG(),role:"dialog","aria-labelledby":c},X:[{I:"div",T:"ytp-share-panel-inner-content",X:[{I:"div",T:"ytp-share-panel-title",Y:{id:c},Aa:"Share"},{I:"a",Na:["ytp-share-panel-link","ytp-no-contextmenu"],Y:{href:"{{link}}",target:d.ea,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},Aa:"{{linkText}}"},{I:"label",T:"ytp-share-panel-include-playlist",X:[{I:"input",T:"ytp-share-panel-include-playlist-checkbox",Y:{type:"checkbox",
checked:"true"}},"Include playlist"]},{I:"div",T:"ytp-share-panel-loading-spinner",X:[ySa()]},{I:"div",T:"ytp-share-panel-service-buttons",Aa:"{{buttons}}"},{I:"div",T:"ytp-share-panel-error",Aa:"An error occurred while retrieving sharing information. Please try again later."}]},{I:"button",Na:["ytp-share-panel-close","ytp-button"],Y:{title:"Close"},X:[g.AG()]}]};g.BU.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Ec();this.C=[];this.G=this.Ha("ytp-share-panel-inner-content");
this.closeButton=this.Ha("ytp-share-panel-close");this.V(this.closeButton,"click",this.Qb);g.ub(this,g.LU(this.tooltip,this.closeButton));this.D=this.Ha("ytp-share-panel-include-playlist-checkbox");this.V(this.D,"click",this.Sa);this.j=this.Ha("ytp-share-panel-link");g.ub(this,g.LU(this.tooltip,this.j));this.api.zb(this.j,this,164503);this.V(this.j,"click",function(f){f.preventDefault();e.api.wb(e.j);var h=e.api.getVideoUrl(!0,!0,!1,!1);h=KWa(e,h);g.QU(h,e.api,f)&&e.api.Ta("SHARE_CLICKED")});
this.Ua("click",this.w2);this.V(a,"videoplayerreset",this.hide);this.V(a,"fullscreentoggled",this.onFullscreenToggled);this.V(a,"onLoopRangeChange",this.x6);this.hide()};
MWa=function(a,b){LWa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Lt:e.Lt,vl:e.vl},f++){e.Lt=c[f];a:switch(e.Lt.img||e.Lt.iconId){case "facebook":var h={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},X:[{I:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",Y:{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={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},X:[{I:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",Y:{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}if(h){var l=e.Lt.sname||e.Lt.serviceName;e.vl=new g.T({I:"a",Na:["ytp-share-panel-service-button","ytp-button"],Y:{href:e.Lt.url,target:"_blank",title:l},X:[h]});e.vl.Ua("click",function(p){return function(q){if(g.kH(q)){var r=p.Lt.url;var t=void 0===t?{}:t;t.target=t.target||"YouTube";t.width=t.width||"600";t.height=t.height||"600";var v=t;v||(v={});t=window;var x=r instanceof g.$d?r:g.ce("undefined"!=typeof r.href?r.href:String(r))||g.ie;var B=void 0!==
self.crossOriginIsolated,G="strict-origin-when-cross-origin";window.Request&&(G=(new Request("/")).referrerPolicy);var F="unsafe-url"===G;G=v.noreferrer;if(B&&G){if(F)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");G=!1}r=v.target||r.target;B=[];for(var I in v)switch(I){case "width":case "height":case "top":case "left":B.push(I+"="+v[I]);break;case "target":case "noopener":case "noreferrer":break;default:B.push(I+"="+(v[I]?
1:0))}I=B.join(",");Hc()&&t.navigator&&t.navigator.standalone&&r&&"_self"!=r?(v=g.lf("A"),x=x instanceof g.$d?x:Bba(x),v.href=g.ae(x),v.target=r,G&&(v.rel="noreferrer"),x=document.createEvent("MouseEvent"),x.initMouseEvent("click",!0,!0,t,1),v.dispatchEvent(x),t={}):G?(t=Sba("",t,r,I),x=g.ae(x),t&&(g.yS&&g.gc(x,";")&&(x="'"+x.replace(/'/g,"%27")+"'"),t.opener=null,""===x&&(x="javascript:''"),g.Vd("b/12014412, meta tag with sanitized URL"),x='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+
g.Ae(x)+'">',x=g.le(x),(v=t.document)&&v.write&&(v.write(g.ke(x)),v.close()))):((t=Sba(x,t,r,I))&&v.noopener&&(t.opener=null),t&&v.noreferrer&&(t.opener=null));t&&(t.opener||(t.opener=window),t.focus());q.preventDefault()}}}(e));
g.ub(e.vl,g.LU(a.tooltip,e.vl.element));"Facebook"===l?a.api.zb(e.vl.element,e.vl,164504):"Twitter"===l&&a.api.zb(e.vl.element,e.vl,164505);a.V(e.vl.element,"click",function(p){return function(){a.api.wb(p.vl.element)}}(e));
a.api.Xa(e.vl.element,!0);a.C.push(e.vl);d++}}var m=b.more||b.moreLink,n=new g.T({I:"a",Na:["ytp-share-panel-service-button","ytp-button"],X:[{I:"span",T:"ytp-share-panel-service-button-more",X:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},X:[{I:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",Y:{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"}}]}]}],Y:{href:m,target:"_blank",title:"More"}});n.Ua("click",function(p){var q=m;a.api.wb(a.moreButton.element);q=KWa(a,q);g.QU(q,a.api,p)&&a.api.Ta("SHARE_CLICKED")});
g.ub(n,g.LU(a.tooltip,n.element));a.api.zb(n.element,n,164506);a.V(n.element,"click",function(){a.api.wb(n.element)});
a.api.Xa(n.element,!0);a.C.push(n);a.moreButton=n;a.updateValue("buttons",a.C)};
KWa=function(a,b){var c={};g.eS(a.api.W())&&(g.cU(a.api,"addEmbedsConversionTrackingParams",[c]),b=g.Dl(b,g.FP(c,"emb_share")));return b};
LWa=function(a){for(var b=g.u(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.sb(c);a.C=[]};
SW=function(a){return void 0===a||void 0===a.startSec||void 0===a.endSec?!1:!0};
NWa=function(a,b){a.startSec+=b;a.endSec+=b};
PWa=function(a,b){BW.call(this,a,b);this.G=this.j=this.isContentForward=this.Ca=!1;OWa(this);this.V(this.J,"changeProductsInVideoVisibility",this.p8);this.V(this.J,"videodatachange",this.onVideoDataChange)};
QWa=function(a){a.va&&a.Fa.element.removeChild(a.va.element);a.va=void 0};
SWa=function(a,b){return b.map(function(c){var d,e;if((c=null==(d=g.S(c,RWa))?void 0:null==(e=d.thumbnail)?void 0:e.thumbnails)&&0!==c.length)return c[0].url}).filter(function(c){return void 0!==c}).map(function(c){c=new g.T({I:"img",
T:"ytp-suggested-action-product-thumbnail",Y:{alt:"",src:c}});g.L(a,c);return c})};
TWa=function(a,b){a.isContentForward=b;g.mu(a.badge.element,"ytp-suggested-action-badge-content-forward",b)};
TW=function(a){var b=a.isContentForward&&!a.YJ();g.mu(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.mu(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.G)};
UW=function(a,b,c){return new g.oK(1E3*a,1E3*b,{priority:9,namespace:c})};
UWa=function(a){a.J.mf("shopping_overlay_visible");a.J.mf("shopping_overlay_preview_collapsed");a.J.mf("shopping_overlay_preview_expanded");a.J.mf("shopping_overlay_expanded")};
OWa=function(a){a.V(a.J,g.pK("shopping_overlay_visible"),function(){a.Cg(!0)});
a.V(a.J,g.qK("shopping_overlay_visible"),function(){a.Cg(!1)});
a.V(a.J,g.pK("shopping_overlay_expanded"),function(){a.qa=!0;AW(a)});
a.V(a.J,g.qK("shopping_overlay_expanded"),function(){a.qa=!1;AW(a)});
a.V(a.J,g.pK("shopping_overlay_preview_collapsed"),function(){a.j=!0;TW(a)});
a.V(a.J,g.qK("shopping_overlay_preview_collapsed"),function(){a.j=!1;TW(a)});
a.V(a.J,g.pK("shopping_overlay_preview_expanded"),function(){a.G=!0;TW(a)});
a.V(a.J,g.qK("shopping_overlay_preview_expanded"),function(){a.G=!1;TW(a)})};
WWa=function(a,b){g.T.call(this,{I:"div",T:"ytp-shorts-title-channel",X:[{I:"a",T:"ytp-shorts-title-channel-logo",Y:{href:"{{channelLink}}",target:a.W().ea,"aria-label":"{{channelLogoLabel}}"}},{I:"div",T:"ytp-shorts-title-expanded-heading",X:[{I:"div",T:"ytp-shorts-title-expanded-title",X:[{I:"a",Aa:"{{expandedTitle}}",Y:{href:"{{channelTitleLink}}",target:a.W().ea,tabIndex:"0"}}]}]}]});var c=this;this.api=a;this.ub=b;this.j=this.Ha("ytp-shorts-title-channel-logo");this.channelName=this.Ha("ytp-shorts-title-expanded-title");
this.subscribeButton=null;a.zb(this.j,this,36925);this.V(this.j,"click",function(d){c.api.N("web_player_ve_conversion_fixes_for_channel_info")?(c.api.wb(c.j),g.In(VW(c)),d.preventDefault()):c.api.wb(c.j)});
a.zb(this.channelName,this,37220);this.api.N("web_player_ve_conversion_fixes_for_channel_info")&&this.V(this.channelName,"click",function(d){c.api.wb(c.channelName);g.In(VW(c));d.preventDefault()});
VWa(this);this.V(a,"videodatachange",this.Sa);this.V(a,"videoplayerreset",this.Sa);this.Sa()};
VWa=function(a){if(!a.api.W().Jc){var b=a.api.getVideoData(),c=new g.kW("Subscribe",null,"Subscribed",null,!0,!1,b.Hl,b.subscribed,"channel_avatar",null,a.api,a.ub);a.api.qg(c.element,a);var d;a.api.Gg(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.V(c.element,"click",function(){a.api.wb(c.element)});
a.subscribeButton=c;g.L(a,a.subscribeButton);a.subscribeButton.Ga(a.element)}};
VW=function(a){var b=a.api.W(),c=a.api.getVideoData();c=g.CS(b)+c.wc;if(!g.eS(b))return c;b={};g.cU(a.api,"addEmbedsConversionTrackingParams",[b]);g.FP(b,"emb_ch_name_ex");return g.Dl(c,b)};
WW=function(a){g.BU.call(this,a,{I:"button",Na:["ytp-skip-intro-button","ytp-popup","ytp-button"],X:[{I:"div",T:"ytp-skip-intro-button-text",Aa:"Skip Intro"}]},100);var b=this;this.C=!1;this.j=new g.au(function(){b.hide()},5E3);
this.Le=this.eh=NaN;g.L(this,this.j);this.K=function(){b.show()};
this.G=function(){b.hide()};
this.D=function(){var c=b.J.getCurrentTime();c>b.eh/1E3&&c<b.Le/1E3&&b.show()};
this.V(this.J,"videodatachange",function(c,d){b.ut(c,d)});
this.V(this.element,"click",function(){b.J.seekTo(b.Le/1E3)});
this.hide()};
XW=function(a,b){g.T.call(this,{I:"button",Na:["ytp-airplay-button","ytp-button"],Y:{title:"AirPlay","data-priority":"10"},Aa:"{{icon}}"});this.J=a;this.Ua("click",this.onClick);this.V(a,"airplayactivechange",this.Sa);this.V(a,"airplayavailabilitychange",this.Sa);this.Sa();g.ub(this,g.LU(b.Ec(),this.element))};
g.ZW=function(a){g.T.call(this,{I:"div",T:"ytp-gradient-bottom"});this.canvas=g.lf("CANVAS");this.j=this.canvas.getContext("2d");this.C=NaN;this.canvas.width=1;this.B=g.mS(a.W());g.YW(this,a.tb().getPlayerSize().height)};
g.YW=function(a,b){if(a.j){b=Math.floor(b*(a.B?1:.4));b=Math.max(b,47);var c=b+2;if(a.C!==c){a.C=c;a.canvas.height=c;a.j.clearRect(0,0,1,c);var d=a.j.createLinearGradient(0,2,0,2+b);if(a.B)d.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),d.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),d.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var e=b-42;d.addColorStop(0,"rgba(0, 0, 0, 0)");d.addColorStop(e/b,"rgba(0, 0, 0, 0.3)");d.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.j.fillStyle=d;a.j.fillRect(0,2,1,b);a.element.style.height=
c+"px";try{a.element.style.backgroundImage="url("+a.canvas.toDataURL()+")"}catch(f){}}}};
$W=function(a,b,c,d,e){g.T.call(this,{I:"div",T:"ytp-chapter-container",X:[{I:"button",Na:["ytp-chapter-title","ytp-button"],X:[{I:"span",Y:{"aria-hidden":"true"},T:"ytp-chapter-title-prefix",Aa:"\u2022"},{I:"div",T:"ytp-chapter-title-content",Aa:"{{title}}",Y:{"aria-label":"{{ariaLabel}}",title:e}},{I:"div",T:"ytp-chapter-title-chevron",X:[{I:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{I:"path",Y:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});
this.J=a;this.D=c;this.G="";this.currentIndex=0;this.B=void 0;this.C=!0;this.ea=this.Ha("ytp-chapter-container");this.j=this.Ha("ytp-chapter-title");this.qa=this.Ha("ytp-chapter-title-content");this.updateVideoData("newdata",this.J.getVideoData());this.V(a,"videodatachange",this.updateVideoData);this.V(this.ea,"click",this.onClick);this.V(a,g.pK(d),this.Ic);this.V(a,"onLoopRangeChange",this.Ic);this.V(a,"innertubeCommand",this.onClickCommand);(a=this.J.N("web_disable_channels_chapter_entrypoint")&&
g.lS(this.J.W()))&&g.mu(this.j,"ytp-profile-page",!0);g.eS(this.J.W())||a||g.ub(this,g.LU(b.Ec(),this.qa))};
aX=function(a,b,c){$W.call(this,a,b,c,"chapterCueRange","View chapter")};
XWa=function(a,b,c,d,e){var f=b.ow/b.rows,h=Math.min(c/(b.YD/b.columns),d/f),l=b.YD*h,m=b.ow*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,q=-b.column*n,r=-b.row*p;e&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+r+"px/"+l+"px "+m+"px"};
YWa=function(a){return a.N("web_big_boards")?a.yg()?a.N("web_big_boards_enable_in_miniplayer"):a.isInline()?a.N("web_big_boards_enable_in_inline"):!0:!1};
g.bX=function(a,b){g.T.call(this,{I:"div",T:"ytp-storyboard-framepreview",X:[{I:"div",T:"ytp-storyboard-framepreview-timestamp",Aa:"{{timestamp}}"},{I:"div",T:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.Ha("ytp-storyboard-framepreview-img");this.B=null;this.C=NaN;this.events=new g.ZK(this);this.j=new g.VG(this,100);g.L(this,this.events);g.L(this,this.j);this.V(this.api,"presentingplayerstatechange",this.Xd);b&&this.V(this.element,"click",function(){b.Rs()});
YWa(this.api)&&g.iu(this.element,"ytp-storyboard-framepreview-big-boards")};
ZWa=function(a,b){var c=!!a.B;a.B=b;a.B?(c||(a.events.V(a.api,"videodatachange",function(){ZWa(a,a.api.Uj())}),a.events.V(a.api,"progresssync",a.df),a.events.V(a.api,"appresize",a.G)),a.C=NaN,$Wa(a),a.j.show(200)):(c&&g.cD(a.events),a.j.hide(),a.j.stop())};
$Wa=function(a){var b=a.B,c=a.api.getCurrentTime(),d=a.api.tb().getPlayerSize(),e=aT(b,d.width);e=WPa(b,e,c);a.update({timestamp:g.jH(c)});e!==a.C&&(a.C=e,UPa(b,e,d.width),b=SPa(b,e,d.width),XWa(a.D,b,d.width,d.height))};
g.cX=function(a,b){g.T.call(this,{I:"button",Na:["ytp-fullscreen-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"11","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Aa:"{{icon}}"});this.J=a;this.ub=b;this.message=null;this.j=g.LU(this.ub.Ec(),this.element);this.B=new g.au(this.R3,2E3,this);g.L(this,this.B);this.V(a,"fullscreentoggled",this.Em);this.V(a,"presentingplayerstatechange",this.Sa);this.J.W().N("embeds_web_enable_smallmode_fullscreen_button_fix")&&
this.V(a,"resize",this.Sa);this.Ua("click",this.onClick);g.SC()&&(b=this.J.tb(),this.V(b,koa(),this.uP),this.V(b,joa(document),this.lr));a.W().vc||a.W().ma||this.disable();a.zb(this.element,this,139117);this.Sa();this.Em(a.isFullscreen())};
dX=function(a,b,c){g.T.call(this,{I:"button",Na:["ytp-button","ytp-jump-button"],Y:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},X:[0<c?{I:"svg",Y:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},X:[{I:"path",Na:["ytp-circle-arrow","ytp-svg-fill"],Y:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}},
{I:"text",Na:["ytp-jump-button-text","ytp-svg-fill"],Y:{x:"7.05",y:"15.05"}}]}:{I:"svg",Y:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},X:[{I:"path",Na:["ytp-circle-arrow","ytp-svg-fill"],Y:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}},
{I:"text",Na:["ytp-jump-button-text","ytp-svg-fill"],Y:{x:"6.5",y:"15"}}]}]});var d=this;this.J=a;this.ub=b;this.j=c;this.B=new g.au(function(){d.C?(d.C=!1,d.B.start()):d.element.classList.remove("ytp-jump-spin","backwards")},250);
this.C=!1;a=0<c;this.tooltip=b.Ec();a?this.J.zb(this.element,this,36843):this.J.zb(this.element,this,36844);c=g.vK(a?"Seek forwards $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.j).toString()});this.update({title:c,"data-title-no-tooltip":c,"aria-keyshortcuts":a?"\u2192":"\u2190"});this.D=this.element.querySelector(".ytp-jump-button-text");this.D.textContent=Math.abs(this.j).toString();this.Ua("click",this.onClick,this);g.ub(this,g.LU(b.Ec(),this.element))};
aXa=function(a,b){b?a.element.classList.add("ytp-jump-button-enabled"):a.element.classList.remove("ytp-jump-button-enabled");a.J.Xa(a.element,b);MU(a.tooltip)};
eX=function(a,b,c){$W.call(this,a,b,c,"timedMarkerCueRange","View key moments");this.V(a,g.qK("timedMarkerCueRange"),this.Ic);this.V(a,"updatemarkervisibility",this.updateVideoData)};
bXa=function(a){var b,c=null==(b=a.J.getVideoData())?void 0:b.Ud;if(c)for(a=a.D.Pa,c=g.u(c),b=c.next();!b.done;b=c.next())if(b=a[b.value]){var d=void 0,e=void 0,f=void 0;if("engagement-panel-macro-markers-problem-walkthroughs"!==(null==(d=b.onTap)?void 0:null==(e=d.innertubeCommand)?void 0:null==(f=e.changeEngagementPanelVisibilityAction)?void 0:f.targetId))return b}};
fX=function(a,b){g.T.call(this,{I:"button",Na:["ytp-miniplayer-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},X:[Dua()]});this.J=a;this.visible=!1;this.Ua("click",this.onClick);this.V(a,"fullscreentoggled",this.Sa);this.updateValue("title",g.RU(a,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});g.ub(this,g.LU(b.Ec(),this.element));a.zb(this.element,
this,62946);this.Sa()};
gX=function(a,b,c){g.T.call(this,{I:"button",Na:["ytp-multicam-button","ytp-button"],Y:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-priority":"4","data-tooltip-text":"{{text}}"},X:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,Y:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});var d=this;this.J=a;this.j=!1;this.B=new g.au(this.C,400,this);this.tooltip=b.Ec();jW(this.tooltip);g.L(this,this.B);this.Ua("click",function(){CU(c,d.element,!1)});
this.V(a,"presentingplayerstatechange",function(){d.Sa(!1)});
this.V(a,"videodatachange",this.onVideoDataChange);this.Sa(!0);g.ub(this,g.LU(this.tooltip,this.element))};
cXa=function(a){g.BU.call(this,a,{I:"div",T:"ytp-multicam-menu",Y:{role:"dialog"},X:[{I:"div",T:"ytp-multicam-menu-header",X:[{I:"div",T:"ytp-multicam-menu-title",X:["Switch camera",{I:"button",Na:["ytp-multicam-menu-close","ytp-button"],Y:{"aria-label":"Close"},X:[g.AG()]}]}]},{I:"div",T:"ytp-multicam-menu-items"}]},250);this.api=a;this.C=new g.ZK(this);this.items=this.Ha("ytp-multicam-menu-items");this.j=[];g.L(this,this.C);a=this.Ha("ytp-multicam-menu-close");this.V(a,"click",this.Qb);this.hide()};
g.hX=function(a,b,c){c=void 0===c?!1:c;g.T.call(this,{I:"button",Na:["ytp-mute-button","ytp-button"],Y:a.W().eb?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},Aa:"{{icon}}"});this.J=a;this.Ja=c;this.j=null;this.D=this.ea=this.G=this.va=NaN;this.Ca=this.K=null;this.C=[];this.B=[];this.visible=!1;this.S=null;c=this.J.W();this.updateValue("icon",Jua());this.tooltip=b.Ec();this.j=new g.pG({I:"svg",Y:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"defs",X:[{I:"clipPath",Y:{id:"ytp-svg-volume-animation-mask"},X:[{I:"path",Y:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{I:"path",Y:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{I:"path",T:"ytp-svg-volume-animation-mover",Y:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{I:"clipPath",Y:{id:"ytp-svg-volume-animation-slash-mask"},X:[{I:"path",T:"ytp-svg-volume-animation-mover",Y:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},
{I:"path",Bc:!0,Na:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Y:{"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"}},{I:"path",Bc:!0,Na:["ytp-svg-fill","ytp-svg-volume-animation-hider"],Y:{"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.L(this,this.j);this.K=this.j.Ha("ytp-svg-volume-animation-speaker");
this.Ca=this.K.getAttribute("d");this.C=g.Ze("ytp-svg-volume-animation-mover",this.j.element);this.B=g.Ze("ytp-svg-volume-animation-hider",this.j.element);this.Fa=new oV;g.L(this,this.Fa);this.qa=new oV;g.L(this,this.qa);this.Ua("click",this.b8);this.V(a,"appresize",this.tT);this.V(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.eb)g.ub(this,g.LU(b.Ec(),this.element));else{var e="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/);
d=new g.BU(a,{I:"span",Na:["ytp-popup","ytp-generic-popup"],Y:{tabindex:"0"},X:[e[0],{I:"a",Y:{href:"https://support.google.com/youtube/?p=noaudio",target:c.ea},Aa:e[2]},e[4]]},100,!0);g.L(this,d);d.hide();d.subscribe("show",function(f){b.Zy(d,f)});
g.wU(a,d.element,4)}this.message=d;a.zb(this.element,this,28662);this.tT(a.tb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
fXa=function(a,b){a.va=b;var c=a.Ca;b&&(c+=oTa(dXa,eXa,b));a.K.setAttribute("d",c)};
gXa=function(a,b){a.ea=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=Jua():e=a.j;for(c=0;c<a.B.length;c++){d=a.B[c];var f=void 0;if(null==(f=d)?0:f.style)d.style.display=0===b?"none":""}e!==a.S&&(a.updateValue("icon",e),a.S=e)};
hXa=function(a,b){g.T.call(this,{I:"button",Na:["ytp-pip-button","ytp-button"],Y:{title:"{{title}}","data-priority":"7","data-tooltip-target-id":"ytp-pip-button"},X:[Dua()]});this.J=a;this.updateValue("title","Picture in Picture");this.Ua("click",this.onClick);g.ub(this,g.LU(b.Ec(),this.element))};
g.iX=function(a,b){g.T.call(this,{I:"button",Na:["ytp-play-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Aa:"{{icon}}"});this.J=a;this.j=null;this.transition=new oV;this.tooltip=b.Ec();g.L(this,this.transition);a.zb(this.element,this,36842);a.Xa(this.element,!0);this.V(a,"fullscreentoggled",this.onVideoDataChange);this.V(a,"presentingplayerstatechange",this.onStateChange);this.V(a,"videodatachange",this.onVideoDataChange);this.Gc(a.Tb());
this.Ua("click",this.Rr,this);g.ub(this,g.LU(b.Ec(),this.element))};
iXa=function(a){switch(a){case 1:return Eua();case 2:return Bua();case 3:return g.Gua();case 4:return Iua();default:return null}};
g.jX=function(a,b,c){g.T.call(this,{I:"a",Na:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],Y:{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}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},X:[c?yua():Fua()]});var d=this;this.J=a;this.j=c;this.playlist=this.videoData=null;this.K=
!1;this.D=this.G=this.B=null;this.C=!1;this.tooltip=b.Ec();c?a.zb(this.element,this,6193):a.zb(this.element,this,6194);this.V(a,"fullscreentoggled",this.onVideoDataChange);this.V(a,"videodatachange",this.onVideoDataChange);this.V(a,"onPlaylistUpdate",this.onVideoDataChange);this.V(a,"onLoopRangeChange",this.onVideoDataChange);this.j||this.V(a,"appresize",this.gL);this.V(a,"mdxpreviousnextchange",function(){jXa(d);d.gL()});
this.onVideoDataChange()};
kXa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
lXa=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.J.getCurrentTime()&&2!==a.J.getPresentingPlayerType()};
mXa=function(a){var b=rU(a.J.Eb());return b?a.j?b.Sk():b.qp():!1};
jXa=function(a){var b={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},c=null!=a.playlist&&a.playlist.Sk();c=g.sU(a.J)&&(!a.j||c);var d=a.j&&g.xU(a.J),e=mXa(a),f=a.j&&5===a.J.getPresentingPlayerType(),h=g.RU(a.J,"Next","SHIFT+n"),l=g.RU(a.J,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.C)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.vV(a.playlist,a.j?eUa(a.playlist):fUa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;
b.url=a.J.W().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.jH(m.lengthSeconds):null;b.preview=m.Lg("mqdefault.jpg")}a.j?(b.title=h,b["data-title-no-tooltip"]="Next",b["aria-keyshortcuts"]="SHIFT+n"):(b.title=l,b["data-title-no-tooltip"]="Previous",b["aria-keyshortcuts"]="SHIFT+p")}else if(d){if(l=null==(m=a.videoData)?void 0:g.tT(m))b.url=l.Qk(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.jH(l.lengthSeconds):
null,b.preview=l.Lg("mqdefault.jpg");b.title=h;b["data-title-no-tooltip"]="Next";b["aria-keyshortcuts"]="SHIFT+n"}b.disabled=!d&&!c&&!e&&!f;a.update(b);a.K=!!b.url;d||c||a.C||e||f?a.B||(a.B=g.LU(a.tooltip,a.element),a.G=a.Ua("click",a.onClick,a)):a.B&&(a.B(),a.B=null,a.Qc(a.G),a.G=null);MU(a.tooltip)};
oXa=function(a,b){var c={I:"div",T:"ytp-fine-scrubbing-thumbnails",Y:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}};a.N("web_fix_fine_scrubbing_drag")&&(c={I:"div",T:"ytp-fine-scrubbing-draggable",X:[{I:"div",T:"ytp-fine-scrubbing-thumbnails",Y:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for precise seeking.",
"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]});g.T.call(this,{I:"div",T:"ytp-fine-scrubbing",X:[c,{I:"div",Y:{"aria-hidden":"true"},T:"ytp-fine-scrubbing-cursor"},{I:"div",T:"ytp-fine-scrubbing-seek-time",Y:{"aria-hidden":"true"},Aa:"{{seekTime}}"},{I:"div",T:"ytp-fine-scrubbing-play",X:[Eua()],Y:{title:"Play from this position",role:"button"}},{I:"div",T:"ytp-fine-scrubbing-dismiss",X:[g.AG()],Y:{title:"Exit precise seeking",
role:"button"}}]});this.api=a;this.C=this.Ha("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Ha("ytp-fine-scrubbing-dismiss");this.Ca=this.api.N("web_fix_fine_scrubbing_drag")?this.Ha("ytp-fine-scrubbing-draggable"):null;this.playButton=this.Ha("ytp-fine-scrubbing-play");this.thumbnails=[];this.D=[];this.Oa=this.j=0;this.Ja=void 0;this.va=NaN;this.Pa=this.ea=this.B=this.G=0;this.K=[];this.interval=this.frameCount=0;this.S=160;this.scale=1;this.Va=0;this.isEnabled=this.Fa=!1;nXa(this,this.api.getCurrentTime());
g.ub(this,g.LU(b,this.dismissButton));g.ub(this,g.LU(b,this.playButton));a.N("web_fix_fine_scrubbing_drag")?this.qa=new g.cV(this.Ca,!0):this.qa=new g.cV(this.C,!0);this.qa.subscribe("dragstart",this.iL,this);this.qa.subscribe("dragmove",this.hL,this);this.qa.subscribe("dragend",this.A2,this);this.V(a,"SEEK_COMPLETE",this.sA);this.C.addEventListener("keydown",function(){});
g.L(this,this.qa);this.api.zb(this.element,this,153154);this.api.zb(this.C,this,152789);this.api.zb(this.dismissButton,this,153156);this.api.zb(this.playButton,this,153155)};
nXa=function(a,b){var c=g.jH(b),d=g.vK("Seek to $PROGRESS",{PROGRESS:g.jH(b,!0)});a.update({ariamin:0,ariamax:Math.floor(a.api.getDuration()),arianow:Math.floor(b),arianowtext:d,seekTime:c})};
pXa=function(a){a.va=NaN;a.ea=0;a.G=a.B};
UXa=function(a){var b=a.api.Uj();if(b){var c=90*a.scale,d=aT(b,160*a.scale);if(b=b.levels[d]){a.S=b.width;if(!a.K.length){d=[];for(var e=bT(b,b.Mx()),f=b.columns*b.rows,h=b.frameCount,l=0;l<=e;l++)for(var m=h<f?Math.ceil(h/b.columns):b.rows,n=0;n<b.rows;n++){var p=h<b.columns?h:b.columns,q={url:b.jf(l),column:0,columns:p,row:n,rows:m,YD:b.width*p,ow:b.height*m};d.push(q);h-=p;if(1>=h)break}a.K=d;a.frameCount=b.tH();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.K.length;)d=
void 0,null==(d=a.thumbnails.pop())||d.dispose();for(;a.thumbnails.length<a.K.length;)d=new SXa,a.thumbnails.push(d),d.Ga(a.C),g.L(a,d);for(d=0;d<a.K.length;d++)e=a.thumbnails[d].element,f=a.K[d],h=a.S*a.scale,l=f.ow/f.rows,m=c/l,e.style.background="url("+f.url+") 0 "+-f.row*f.ow/f.rows*m+"px/"+h*b.columns+"px "+l*f.rows*m+"px",e.style.width=h*f.columns+"px",e.style.height=c+"px";kX(a,a.api.getCurrentTime());for(c=a.api.getVideoData().lk;a.D.length>c.length;)d=void 0,null==(d=a.D.pop())||d.dispose();
for(;a.D.length<c.length;)d=new TXa,a.D.push(new TXa),g.L(a,d);for(d=0;d<c.length;d++)e=c[d],a.D[d].update({chapterTitle:e.title}),e=Math.round(e.startTime/b.j),f=Math.floor(e/b.rows),g.yr(a.D[d].element,"transform","translateX("+e%b.rows*a.S*a.scale+"px)"),f<a.thumbnails.length&&a.thumbnails[f]&&a.D[d].Ga(a.thumbnails[f].element);a.Fa=!0}}};
kX=function(a,b){a.update({seekTime:g.jH(b)});var c=a.S*a.scale;b=b<a.interval/2?-b*c/a.interval*2+a.j/2:-b*c/a.interval-c/2+a.j/2;b=g.ne(b,VXa(a),a.j/2);a.G=b;a.B=a.G;a.api.N("web_fix_fine_scrubbing_drag")?(g.yr(a.Ca,"transform","translateX("+(a.G-a.j/2)+"px)"),g.yr(a.Ca,"padding","0px "+a.j/2+"px"),g.yr(a.C,"position","relative")):g.yr(a.C,"transform","translateX("+a.G+"px)")};
WXa=function(a,b){var c=a.S*a.scale;b-=a.j/2;return b>-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
VXa=function(a){return-((a.C.offsetWidth||(a.frameCount-1)*a.S*a.scale)-a.j/2)};
SXa=function(){g.T.call(this,{I:"div",T:"ytp-fine-scrubbing-thumbnail"})};
TXa=function(){g.T.call(this,{I:"div",T:"ytp-fine-scrubbing-chapter-title",X:[{I:"div",T:"ytp-fine-scrubbing-chapter-title-content",Aa:"{{chapterTitle}}"}]})};
XXa=function(a){g.T.call(this,{I:"div",T:"ytp-heat-map-chapter",X:[{I:"svg",T:"ytp-heat-map-svg",Y:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},X:[{I:"defs",X:[{I:"clipPath",Y:{id:"{{id}}"},X:[{I:"path",T:"ytp-heat-map-path",Y:{d:"",fill:"white"}}]}]},{I:"rect",T:"ytp-heat-map-graph",Y:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",T:"ytp-heat-map-hover",Y:{"clip-path":"url(#hm_1)",fill:"white",
height:"100%",x:"0",y:"0"}},{I:"rect",T:"ytp-heat-map-play",Y:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.K=this.Ha("ytp-heat-map-svg");this.C=this.Ha("ytp-heat-map-path");this.G=this.Ha("ytp-heat-map-graph");this.D=this.Ha("ytp-heat-map-play");this.B=this.Ha("ytp-heat-map-hover");this.Ie=!1;this.j=60;a=""+g.ab(this);this.update({id:a});a="url(#"+a+")";this.G.setAttribute("clip-path",a);this.D.setAttribute("clip-path",a);this.B.setAttribute("clip-path",a);this.api.N("web_heat_map_v2")&&
g.iu(this.api.getRootNode(),"ytp-heat-map-v2")};
YXa=function(a,b){0<b&&(a.j=b,a.K.style.height=a.j+"px")};
lX=function(){g.T.call(this,{I:"div",T:"ytp-chapter-hover-container",X:[{I:"div",T:"ytp-progress-bar-padding"},{I:"div",T:"ytp-progress-list",X:[{I:"div",Na:["ytp-play-progress","ytp-swatch-background-color"]},{I:"div",T:"ytp-progress-linear-live-buffer"},{I:"div",T:"ytp-load-progress"},{I:"div",T:"ytp-hover-progress"},{I:"div",T:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.D=this.Ha("ytp-progress-linear-live-buffer");this.C=this.Ha("ytp-ad-progress-list");
this.G=this.Ha("ytp-load-progress");this.K=this.Ha("ytp-play-progress");this.B=this.Ha("ytp-hover-progress");this.j=this.Ha("ytp-chapter-hover-container")};
mX=function(a,b){g.yr(a.j,"width",b)};
ZXa=function(a,b){g.yr(a.j,"margin-right",b+"px")};
$Xa=function(){this.fraction=this.position=this.B=this.j=this.C=this.width=NaN};
aYa=function(){g.T.call(this,{I:"div",T:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.oX=function(a,b){g.tG.call(this,{I:"div",T:"ytp-progress-bar-container",Y:{"aria-disabled":"true"},X:[{I:"div",Na:["ytp-heat-map-container"],X:[{I:"div",T:"ytp-heat-map-edu"}]},{I:"div",Na:["ytp-progress-bar"],Y:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},X:[{I:"div",T:"ytp-chapters-container"},{I:"div",T:"ytp-timed-markers-container"},{I:"div",T:"ytp-clip-start-exclude"},
{I:"div",T:"ytp-clip-end-exclude"},{I:"div",T:"ytp-scrubber-container",X:[{I:"div",Na:["ytp-scrubber-button","ytp-swatch-background-color"],X:[{I:"div",T:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",Na:["ytp-fine-scrubbing-container"],X:[{I:"div",T:"ytp-fine-scrubbing-edu"}]},{I:"div",T:"ytp-bound-time-left",Aa:"{{boundTimeLeft}}"},{I:"div",T:"ytp-bound-time-right",Aa:"{{boundTimeRight}}"},{I:"div",T:"ytp-clip-start",Y:{title:"{{clipstarttitle}}"},Aa:"{{clipstarticon}}"},{I:"div",T:"ytp-clip-end",
Y:{title:"{{clipendtitle}}"},Aa:"{{clipendicon}}"}]});this.api=a;this.Me=!1;this.gg=this.Ya=this.S=this.fg=0;this.Kd=null;this.Oa={};this.wc={};this.clipEnd=Infinity;this.Mb=this.Ha("ytp-clip-end");this.Ad=new g.cV(this.Mb,!0);this.We=this.Ha("ytp-clip-end-exclude");this.dh=this.Ha("ytp-clip-start-exclude");this.clipStart=0;this.vc=this.Ha("ytp-clip-start");this.Yc=new g.cV(this.vc,!0);this.qa=this.rb=0;this.Tc=this.Ha("ytp-progress-bar");this.Cb={};this.Pa={};this.Jc=this.Ha("ytp-chapters-container");
this.Uf=this.Ha("ytp-timed-markers-container");this.j=[];this.K=[];this.Vd={};this.Gf=null;this.eb=-1;this.xb=this.Ca=0;this.ea=null;this.hg=this.Ha("ytp-scrubber-button");this.eh=this.Ha("ytp-scrubber-container");this.kb=new g.ue;this.Sf=new $Xa;this.C=new mH(0,0);this.Lb=null;this.D=this.Le=!1;this.Tf=null;this.va=this.Ha("ytp-heat-map-container");this.Td=this.Ha("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=[];this.fb=this.Ha("ytp-fine-scrubbing-container");this.qd=this.Ha("ytp-fine-scrubbing-edu");
this.B=void 0;this.Fa=this.Bd=this.Ja=!1;this.tooltip=b.Ec();g.ub(this,g.LU(this.tooltip,this.Mb));g.L(this,this.Ad);this.Ad.subscribe("hoverstart",this.VX,this);this.Ad.subscribe("hoverend",this.UX,this);this.V(this.Mb,"click",this.EJ);g.ub(this,g.LU(this.tooltip,this.vc));g.L(this,this.Yc);this.Yc.subscribe("hoverstart",this.VX,this);this.Yc.subscribe("hoverend",this.UX,this);this.V(this.vc,"click",this.EJ);bYa(this);this.V(a,"resize",this.Nb);this.V(a,"presentingplayerstatechange",this.w5);this.V(a,
"videodatachange",this.ut);this.V(a,"videoplayerreset",this.v5);this.V(a,"cuerangesadded",this.zaa);this.V(a,"cuerangesremoved",this.k$);this.V(a,"onLoopRangeChange",this.uT);this.V(a,"innertubeCommand",this.onClickCommand);this.V(a,g.pK("timedMarkerCueRange"),this.q9);this.V(a,"updatemarkervisibility",this.v_);this.updateVideoData(a.getVideoData(),!0);this.uT(a.getLoopRange());nX(this)&&!this.B&&(this.B=new oXa(this.api,this.tooltip),a=g.Gr(this.element).x||0,this.B.Nb(a,this.S),this.B.Ga(this.fb),
g.L(this,this.B),this.V(this.B.dismissButton,"click",this.Rs),this.V(this.B.playButton,"click",this.XM),this.V(this.B.element,"dblclick",this.XM));this.api.zb(this.va,this,139609,!0);this.api.zb(this.Td,this,140127,!0);this.api.zb(this.qd,this,151179,!0);this.api.N("web_modern_miniplayer")&&(this.element.hidden=!0)};
bYa=function(a){if(0===a.j.length){var b=new lX;a.j.push(b);g.L(a,b);b.Ga(a.Jc,0)}for(;1<a.j.length;)a.j.pop().dispose();mX(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
cYa=function(a){var b=void 0===b?NaN:b;var c=new XXa(a.api);a.G.push(c);g.L(a,c);c.Ga(a.va);0<=b&&(c.element.style.width=b+"px")};
dYa=function(a){for(;a.K.length;)a.K.pop().dispose()};
fYa=function(a){var b,c,d,e,f;return null==(f=g.S(null==(e=g.S(null==(b=a.Jd)?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,APa))?void 0:e.playerBar,eYa))?void 0:f.chapters};
gYa=function(a){for(var b=a.j,c=[],d=0;d<b.length;d++)if(!isNaN(b[d].startTime)){var e=b[d].startTime;e=new g.oK(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.mf("chapterCueRange");a.api.xf(c)};
oYa=function(a,b){var c,d=null==(c=a.Cb[b])?void 0:c.chapters;d&&(hYa(a,d),a.api.getVideoData().lk=a.j,gYa(a));var e;if((c=null==(e=a.Cb[b])?void 0:e.markers)&&"HEATSEEKER"!==b){dYa(a);e=g.u(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new aYa,d=g.S(d,g.iYa)){var f=void 0;c.title=(null==(f=d.title)?void 0:f.simpleText)||"";f=void 0;c.timeRangeStartMillis=null!=(f=d.timeRangeStartMillis)?f:NaN;var h=f=void 0;c.onActiveCommand=null!=(h=null==(f=d)?void 0:f.onActiveCommand)?h:void 0;jYa(a,c)}kYa(a,
a.K);e=a.K;c=a.Vd;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=vWa(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.xf(d)}var l;if(b=g.S(null==(l=a.Cb[b])?void 0:l.heatmap,lYa)){l=b.heatMarkers||[];var m;e=null!=(m=b.minHeightDp)?m:0;var n;m=null!=(n=b.maxHeightDp)?n:60;n=a.j.length;c=null;for(d=0;d<n;d++){h=a.j[d].startTime;var p=d===n-1?Infinity:a.j[d+1].startTime;d===a.G.length&&
cYa(a);f=[];c&&f.push(c);for(var q=g.u(l),r=q.next();!r.done;r=q.next()){r=r.value;var t=void 0,v=void 0,x=null!=(v=null==(t=g.S(r,mYa))?void 0:t.timeRangeStartMillis)?v:-1;x>=h&&x<=p&&f.push(r)}0<m&&(a.va.style.height=m+"px");h=a.G[d];q=0===d;q=void 0===q?!1:q;YXa(h,m);p=h.j;q=void 0===q?!1:q;r=1E3/f.length;t=[];t.push({x:0,y:100});for(v=0;v<f.length;v++){var B=void 0;x=(null==(B=g.S(f[v],mYa))?void 0:B.heatMarkerIntensityScoreNormalized)||0;B=(v+.5)*r;x=100-g.ne(100*x,e/p*100,m/p*100);0!==v||q||
t.push({x:0,y:x});t.push({x:B,y:x});v===f.length-1&&t.push({x:1E3,y:x})}t.push({x:1E3,y:100});p=t;p=0===f.length?"":wxa(p);h.C.setAttribute("d",p);h.Ie=""!==p;g.mu(h.api.getRootNode(),"ytp-heat-map",h.Ie);g.mu(h.api.getRootNode(),"ytp-heat-map-played_bar",h.api.N("web_player_heat_map_played_bar")&&""!==p);0<f.length&&(c=f[f.length-1])}g.pX(a);l=[];b=g.u(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.S(e.value,nYa))m=e.label,d=c=n=void 0,l.push({visibleTimeRangeStartMillis:null!=
(n=e.visibleTimeRangeStartMillis)?n:-1,visibleTimeRangeEndMillis:null!=(c=e.visibleTimeRangeEndMillis)?c:-1,decorationTimeMillis:null!=(d=e.decorationTimeMillis)?d:NaN,label:m?g.wG(m):""});a.heatMarkersDecorations=l}};
jYa=function(a,b){a.K.push(b);g.L(a,b);b.Ga(a.Uf,a.Uf.children.length)};
kYa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=pYa(a,c.timeRangeStartMillis/(1E3*a.C.j),qX(a));g.yr(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
hYa=function(a,b){var c=0,d=!1;b=g.u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.S(e,qYa)){e=g.S(e,qYa);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.wG(h):"";h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new lX,a.j.push(f),g.L(a,f),f.Ga(a.Jc,a.Jc.children.length));a.j[c].startTime=
e.startTime;a.j[c].title=e.title?e.title:"";a.j[c].onActiveCommand=e.onActiveCommand;a.j[c].index=d?c-1:c}c++}for(;c<a.j.length;)a.j.pop().dispose();g.pX(a);rX(a)};
g.pX=function(a){a.Ca=a.j.length-1;a.xb=0;rYa(a,!0)&&rYa(a,!1);for(var b=0,c=0;c<a.j.length;c++)if(0===a.j[c].width){if(c===a.j.length-1)for(var d=a.j.length-1;0<=d;d--)if(0<a.j[d].width){ZXa(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;mX(a.j[d],e+"px");break}a.j[c].width=0;mX(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,mX(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,mX(a.j[c],d+"px"));c=0;if(a.G.length===a.j.length)for(b=0;b<
a.G.length;b++)d=a.j[b].width,a.G[b].element.style.width=d+"px",a.G[b].element.style.left=c+"px",c+=d+(a.D?3:2)};
rYa=function(a,b){var c=0,d=!1,e=a.j.length,f=1E3*a.C.j;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.S){for(var h=a.S-(a.D?3:2)*a.Ca,l=0===a.xb?3:h*a.xb,m=g.u(a.j),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.j[c].startTime;c<e-1&&(m=a.j[c+1].startTime-a.j[c].startTime,ZXa(a.j[c],a.D?3:2));g.mu(a.j[c].j,"ytp-exp-chapter-hover-container",1<a.j.length);n=(0===f?0:m/f*h)+a.j[c].width;if(n>l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,r=p.j[q-1];void 0!==r&&0<r.width?
r.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);ZXa(p.j[q],0);b&&(a.Ca--,m/f>a.xb&&(a.xb=m/f),d=!0)}c++}}return d};
rX=function(a){if(a.S){var b=a.api.getProgressState(),c=a.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.enablePreroll)||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:VT(d))&&b.airingStart&&b.airingEnd?sYa(a,b.airingStart,b.airingEnd):sYa(a,b.seekableStart,b.seekableEnd);d=nH(c,b.loaded,0);b=nH(c,b.current,0);var e=a.C.B!==c.B||a.C.j!==c.j;a.C=c;sX(a,b,d);e&&tYa(a);uYa(a)}}};
sYa=function(a,b,c){return vYa(a)?new mH(Math.max(b,a.Lb.startTimeMs/1E3),Math.min(c,a.Lb.endTimeMs/1E3)):new mH(b,c)};
wYa=function(a,b){var c;if("repeatChapter"===(null==(c=a.Lb)?void 0:c.type)||"repeatChapter"===(null==b?void 0:b.type))b&&(b=a.j[GW(a.j,b.startTimeMs)],g.mu(b.j,"ytp-repeating-chapter",!1)),a.Lb&&(b=a.j[GW(a.j,a.Lb.startTimeMs)],g.mu(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.mu(d.j,"ytp-exp-chapter-hover-container",!a.Lb)})};
uX=function(a,b){var c=Eva(a.C,b.fraction);if(1<a.j.length){c=tX(a,b.B,!0);for(var d=0,e=0;e<c;e++)0<a.j[e].width&&(d+=a.j[e].width,d+=a.D?3:2);c=(a.j[c].startTime+(b.B-d)/a.j[c].width*((c===a.j.length-1?1E3*a.C.j:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c};
xYa=function(a,b,c){return c>=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.C.j*(a.S-(a.D?3:2)*a.Ca)};
tYa=function(a){a.hg.style.removeProperty("height");for(var b=g.u(Object.keys(a.Oa)),c=b.next();!c.done;c=b.next())yYa(a,c.value);vX(a);sX(a,a.qa,a.rb)};
qX=function(a){var b=a.kb.x;b=g.ne(b,0,a.S);a.Sf.update(b,a.S);return a.Sf};
xX=function(a){return(a.D?135:90)-wX(a)};
wX=function(a){var b=48,c=a.api.W();a.D?b=54:g.eS(c)&&!c.B&&(b=40);return b};
sX=function(a,b,c){a.qa=b;a.rb=c;var d=qX(a),e=a.C.j,f=Eva(a.C,a.qa),h=g.vK("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.jH(f,!0),DURATION:g.jH(e,!0)}),l=GW(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.C.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Lb&&2!==a.api.getPresentingPlayerType()&&(e=a.Lb.startTimeMs/1E3,f=a.Lb.endTimeMs/1E3);e=nH(a.C,e,0);l=nH(a.C,f,1);h=a.api.getVideoData();f=g.ne(b,e,l);c=(null==h?0:g.UT(h))?1:g.ne(c,
e,l);b=pYa(a,b,d);g.yr(a.eh,"transform","translateX("+b+"px)");yX(a,d,e,f,"PLAY_PROGRESS");(null==h?0:VT(h))?(b=a.api.getProgressState().seekableEnd)&&yX(a,d,f,nH(a.C,b),"LIVE_BUFFER"):yX(a,d,e,c,"LOAD_PROGRESS");if(a.api.N("web_player_heat_map_played_bar")){var m;null!=(m=a.G[0])&&m.D.setAttribute("width",(100*f).toFixed(2)+"%")}};
yX=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ca*(a.D?3:2),l=c*h;c=tX(a,l);var m=d*h;h=tX(a,m);"HOVER_PROGRESS"===e&&(h=tX(a,b.j*d,!0),m=b.j*d-zYa(a,b.j*d)*(a.D?3:2));b=Math.max(l-AYa(a,c),0);for(d=c;d<f;d++)a.j[d].Gb(e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.j[f].Gb(e),l=a.j[f].width,zX(a,d,f===c?l-b:l,l);f=a.j[h].width;m=g.ne(m-AYa(a,h),0,f);c===h&&(m-=b);b=a.j[h].Gb(e);zX(a,b,m,f);m=a.j.length;for(h+=1;h<m;h++)BYa(a,h,e);for(h=0;h<c;h++)BYa(a,h,e)};
AYa=function(a,b){if(b>=a.j.length)return a.S;for(var c=0,d=0;d<b;)c+=a.j[d].width,d++;return c};
BYa=function(a,b,c){c=a.j[b].Gb(c);zX(a,c,0,a.j[b].width)};
zX=function(a,b,c,d,e){e||a.api.W().B?b.style.width=c+"px":g.yr(b,"transform","scalex("+(d?c/d:0)+")")};
tX=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=zYa(a,b)*(a.D?3:2));c=g.u(a.j);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d};
pYa=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.u(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.j-(a.D?3:2)*a.Ca)+(a.D?3:2)*(0>e?0:e)+c.C};
zYa=function(a,b){for(var c=a.j.length,d=0,e=g.u(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.D?3:2,d++;else break;return d===c?c-1:d};
g.AX=function(a,b,c,d){var e=a.S!==c,f=a.D!==d;a.fg=b;a.S=c;a.D=d;nX(a)&&null!=(b=a.B)&&(b.scale=d?1.5:1);tYa(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.pX(a);a.B&&f&&nX(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-wX(a),a.fb.style.height=c+"px",g.yr(a.va,"transform","translateY("+-d+"px)"),g.yr(a.Tc,"transform","translateY("+-d+"px)")),UXa(a.B))};
vX=function(a){var b=!!a.Lb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Lb?(c=a.Lb.startTimeMs/1E3,d=a.Lb.endTimeMs/1E3):(e=c>a.C.B,f=0<a.C.j&&d<a.C.j);var h,l;if((null==(h=a.Lb)?0:h.postId)||"repeatChapter"===(null==(l=a.Lb)?void 0:l.type))f=e=!1;g.mu(a.element,"ytp-loop-range-enabled",b);g.mu(a.element,"ytp-clip-start-enabled",e);g.mu(a.element,"ytp-clip-end-enabled",f);b=e?nH(a.C,c,0):0;d=f?nH(a.C,d,1):1;a.vc.style.left=Math.round(1E3*b)/10+"%";a.Mb.style.left=
Math.round(1E3*d)/10+"%";a.dh.style.width=Math.round(1E3*b)/10+"%";a.We.style.left=Math.round(1E3*d)/10+"%";a.We.style.width=Math.round(1E3*(1-d))/10+"%"};
uYa=function(a){var b;if(null==(b=a.api.getVideoData())||!VT(b)){b=qX(a);yX(a,b,a.qa,Math.max(b.fraction,a.qa),"HOVER_PROGRESS");for(var c=tX(a,b.j*a.qa,!0),d=tX(a,b.B,!0),e=c;e<=d;e++)g.mu(a.j[e].B,"ytp-hover-progress-light",b.fraction>a.qa);g.mu(a.hg,"ytp-scrubber-button-hover",c===d&&1<a.j.length);if(a.api.N("web_player_heat_map_played_bar")){var f;null!=(f=a.G[0])&&f.B.setAttribute("width",(100*b.fraction).toFixed(2)+"%")}}};
yYa=function(a,b){var c=a.Oa[b];b=a.wc[b];var d=qX(a),e=nH(a.C,c.start/1E3,0),f=nza(c,a.D)/d.width;var h=nH(a.C,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.ne(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;b.style.left=Math.max(c*d.j+d.C,0)+"px";zX(a,b,g.ne((h-c)*d.j+d.C,0,d.width),d.width,!0)};
CYa=function(a,b){var c=b.getId();a.Oa[c]===b&&(g.yf(a.wc[c]),delete a.Oa[c],delete a.wc[c])};
nX=function(a){var b;return!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.yg()&&!a.api.isInline()};
BX=function(a){a.B&&(a.B.disable(),a.Ya=0,a.va.style.removeProperty("transform"),a.Tc.style.removeProperty("transform"),a.fb.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
DYa=function(a,b){var c=b/xX(a)*wX(a);g.yr(a.Tc,"transform","translateY("+-b+"px)");g.yr(a.va,"transform","translateY("+-b+"px)");g.yr(a.fb,"transform","translateY("+c+"px)");a.fb.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=wX(a)-c+"px")};
EYa=function(a,b){b?a.ea||(a.element.removeAttribute("aria-disabled"),a.ea=new g.cV(a.Tc,!0),a.ea.subscribe("hovermove",a.s8,a),a.ea.subscribe("hoverend",a.r8,a),a.ea.subscribe("dragstart",a.q8,a),a.ea.subscribe("dragmove",a.u8,a),a.ea.subscribe("dragend",a.t8,a),a.Tf=a.Ua("keydown",a.C2)):a.ea&&(a.element.setAttribute("aria-disabled","true"),a.Qc(a.Tf),a.ea.cancel(),a.ea.dispose(),a.ea=null)};
g.FYa=function(a){var b=2*a.S*g.uS(),c=a.C;return 1E3*(c.j-c.B)/a.api.getPlaybackRate()/b};
vYa=function(a){var b;return!(null==(b=a.Lb)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
CX=function(a,b,c){g.T.call(this,{I:"button",Na:["ytp-remote-button","ytp-button"],Y:{title:"Play on TV","aria-haspopup":"true","data-priority":"9"},Aa:"{{icon}}"});this.J=a;this.Pb=c;this.j=null;this.V(a,"onMdxReceiversChange",this.Sa);this.V(a,"presentingplayerstatechange",this.Sa);this.V(a,"appresize",this.Sa);a.zb(this.element,this,139118);this.Sa();this.Ua("click",this.B,this);g.ub(this,g.LU(b.Ec(),this.element))};
DX=function(a,b,c){g.T.call(this,{I:"button",Na:["ytp-button","ytp-settings-button"],Y:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":oG(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},X:[g.Hua()]});this.J=a;this.Pb=c;this.B=!0;this.Ua("click",this.C);this.V(a,"onPlaybackQualityChange",this.updateBadge);this.V(a,"videodatachange",this.updateBadge);this.V(a,"webglsettingschanged",this.updateBadge);this.V(a,"appresize",this.j);g.ub(this,g.LU(b.Ec(),this.element));
this.J.zb(this.element,this,28663);this.updateBadge();this.j(a.tb().getPlayerSize())};
GYa=function(a,b){a.B=!!b;a.j(a.J.tb().getPlayerSize())};
EX=function(a,b){NU.call(this,"Annotations",g.SU(a).uK);this.J=a;this.Pb=b;this.j=!1;a.N("web_settings_menu_icons")&&GU(this,{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{I:"path",Y:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7             M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7             M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z             M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
fill:"white"}}]});this.V(a,"videodatachange",this.Sa);this.V(a,"onApiChange",this.Sa);this.subscribe("select",this.onSelect,this);this.Sa()};
g.FX=function(a,b,c,d,e,f,h){g.EU.call(this,g.FU({"aria-haspopup":"true"}),b,a);this.Pb=d;this.K=!1;this.C=null;this.options={};this.B=new g.nW(c,void 0,a,e,f,h);g.L(this,this.B);this.Ua("keydown",this.D2);this.Ua("click",this.open)};
HYa=function(a){if(a.C){var b=a.options[a.C];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.C=null}};
g.GX=function(a,b){g.DVa(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.C;l&&(d=!0);h&&h.priority===-e?(g.DU(a.options[f],a.zk(f,!0)),delete a.options[f]):h=a.eM(f,-e,l);c[f]=h;a.B.ud(h,!0)}d||(a.C=null);b=g.u(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
HX=function(a,b){g.FX.call(this,"Audio track",g.SU(a).AUDIO,a,b);this.J=a;this.tracks={};this.countLabel=new g.T({I:"div",X:[{I:"span",Aa:"Audio track"},{I:"span",T:"ytp-menuitem-label-count",Aa:"{{content}}"}]});a.N("web_settings_menu_icons")&&GU(this,{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{I:"path",Y:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z            M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z            M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z            M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z            M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z",
fill:"white"}}]});g.L(this,this.countLabel);g.DU(this,this.countLabel);this.V(a,"videodatachange",this.Sa);this.V(a,"onPlaybackAudioChange",this.Sa);this.Sa()};
IX=function(a,b){NU.call(this,"Auto-play",g.SU(a).vK);this.J=a;this.Pb=b;this.j=!1;this.C=[];this.V(a,"presentingplayerstatechange",this.B);this.subscribe("select",this.onSelect,this);a.zb(this.element,this,113682);this.B()};
IYa=function(a,b){g.EU.call(this,g.FU({"aria-haspopup":"false"}),0,"More options");this.J=a;this.Pb=b;this.V(this.element,"click",this.onClick);this.Pb.ud(this)};
JYa=function(a,b){var c;g.vS(a.W())&&(c={I:"div",T:"ytp-panel-footer-content",X:[{I:"span",Aa:"Adjust download quality from your "},{I:"a",T:"ytp-panel-footer-content-link",Aa:"Settings",Y:{href:"/account_downloads"}}]});g.FX.call(this,"Quality",g.SU(a).vL,a,b,void 0,void 0,c);this.J=a;this.Ca={};this.ea={};this.D={};this.Fa=new Set;this.j=this.G=!1;this.S="unknown";this.qa="";this.va=new g.JE;g.L(this,this.va);this.G=this.J.N("web_player_use_new_api_for_quality_pullback");this.j=this.J.N("web_player_enable_premium_hbr_playback_cap");
a.N("web_settings_menu_icons")&&GU(this,{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{I:"path",Y:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z            M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.iu(this.B.element,"ytp-quality-menu");this.V(a,"videodatachange",this.VB);this.V(a,"videoplayerreset",this.VB);this.V(a,"onPlaybackQualityChange",this.vT);this.VB();a.zb(this.element,this,137721)};
LYa=function(a,b,c){var d=a.Ca[b],e=g.aL[b];return KYa(a,d?d.qualityLabel:e?e+"p":"Auto",b,c)};
MYa=function(a,b,c,d,e){var f=(b=a.j?a.D[b]:a.ea[b])&&b.quality,h=b&&b.qualityLabel;h=h?h:"Auto";d&&(h="("+h);a=KYa(a,h,f||"",e);d&&a.X.push(")");(d=(d=b&&b.paygatedQualityDetails)&&d.paygatedIndicatorText)&&c&&a.X.push({I:"div",T:"ytp-premium-label",Aa:d});return a};
KYa=function(a,b,c,d){b={I:"span",Na:d,X:[b]};var e;d="ytp-swatch-color";if(a.G||a.j)d="ytp-swatch-color-white";"highres"===c?e="8K":"hd2880"===c?e="5K":"hd2160"===c?e="4K":0===c.indexOf("hd")&&"hd720"!==c&&(e="HD");e&&(b.X.push(" "),b.X.push({I:"sup",T:d,Aa:e}));return b};
JX=function(a,b,c,d,e,f,h){g.T.call(this,{I:"div",T:"ytp-slider-section",Y:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},X:[{I:"div",T:"ytp-slider",X:[{I:"div",T:"ytp-slider-handle"}]}]});this.ea=a;this.S=b;this.B=c;this.D=d;this.qa=e;this.Fa=f;this.range=this.D-this.B;this.Ja=this.Ha("ytp-slider-section");this.C=this.Ha("ytp-slider");this.va=this.Ha("ytp-slider-handle");this.K=new g.cV(this.C,
!0);this.j=h?h:c;g.L(this,this.K);this.K.subscribe("dragmove",this.F2,this);this.V(this.element,"keydown",this.G2);this.V(this.element,"wheel",this.E2);this.init()};
KX=function(a){JX.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.G=g.lf("P");this.Oa=oba(this.Ca,this);g.iu(this.C,"ytp-speedslider");g.iu(this.G,"ytp-speedslider-text");a=this.C;a.parentNode&&a.parentNode.insertBefore(this.G,a.nextSibling);NYa(this);this.V(this.J,"onPlaybackRateChange",this.updateValues)};
NYa=function(a){a.G.textContent=OYa(a,a.j)+"x"};
OYa=function(a,b){a=Number(g.ne(b,a.B,a.D).toFixed(2));b=Math.floor(100*(a+.001)%5+2E-15);var c=a;0!==b&&(c=a-.01*b);return Number(c.toFixed(2))};
PYa=function(a){g.tG.call(this,{I:"div",T:"ytp-speedslider-component"});this.j=new KX(a);g.L(this,this.j);this.element.appendChild(this.j.element)};
QYa=function(a){var b=new PYa(a);mW.call(this,a,b,"Custom");g.L(this,b)};
RYa=function(a,b){var c=new QYa(a);g.FX.call(this,"Playback speed",g.SU(a).xL,a,b,"Custom",function(){g.qW(b,c)});
a.N("web_settings_menu_icons")&&GU(this,{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{I:"path",Y:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z            M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z            M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z            M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z            M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
fill:"white"}}]});g.L(this,c);this.J=a;this.D=this.j=this.S=null;this.G=this.J.getAvailablePlaybackRates();this.V(a,"presentingplayerstatechange",this.Sa);this.Sa()};
TYa=function(a,b){var c=SYa(b);a.options[c]?a.Kj(c):b===a.D&&a.j&&(a.Kj(a.j),a.oe(b.toString()))};
VYa=function(a){g.GX(a,a.G.map(SYa));a.j=null;a.D=null;var b=a.J.getPlaybackRate();a.G.includes(b)||(UYa(a,b),g.FX.prototype.uh.call(a,a.j))};
UYa=function(a,b){a.D=b;a.j=g.vK("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.G.map(SYa);b.unshift(a.j);g.GX(a,b)};
SYa=function(a){return a.toString()};
XYa=function(a,b,c,d){var e=new g.nW(b,void 0,"Video Override");g.FX.call(this,d.text||"",a,b,c,"Video Override",function(){g.qW(c,e)});
var f=this;g.iu(this.element,"ytp-subtitles-options-menu-item");this.S=d.option.toString();a=d.options;this.settings=g.ac(a,this.getKey,this);this.G=e;g.L(this,this.G);b=new g.EU({I:"div",T:"ytp-menuitemtitle",Aa:"Allow for a different caption style if specified by the video."},0);g.L(this,b);this.G.ud(b,!0);this.D=new g.EU({I:"div",T:"ytp-menuitem",Y:{role:"menuitemradio",tabindex:"0"},X:[{I:"div",T:"ytp-menuitem-label",Aa:"On"}]},-1);g.L(this,this.D);this.G.ud(this.D,!0);this.V(this.D.element,"click",
function(){WYa(f,!0)});
this.j=new g.EU({I:"div",T:"ytp-menuitem",Y:{role:"menuitemradio",tabindex:"0"},X:[{I:"div",T:"ytp-menuitem-label",Aa:"Off"}]},-2);g.L(this,this.j);this.G.ud(this.j,!0);this.V(this.j.element,"click",function(){WYa(f,!1)});
g.GX(this,g.Yp(a,this.getKey))};
WYa=function(a,b){a.ra("settingChange",a.S+"Override",!b);a.Pb.zj()};
LX=function(a,b){g.nW.call(this,a,void 0,"Options");var c=this;this.Rt={};for(var d=0;d<g.JW.length;d++){var e=g.JW[d],f=new XYa(-d,a,b,e);g.L(this,f);f.subscribe("settingChange",this.ek,this);this.Rt[e.option.toString()]=f;this.ud(f,!0)}a=new g.EU(g.FU(),-g.JW.length,"Reset");g.L(this,a);a.Ua("click",function(){c.ek("reset",!0)});
this.ud(a,!0)};
MX=function(a,b){g.FX.call(this,"Auto-translate",0,a,b);this.J=a;this.languages={};a.zb(this.element,this,127301);a.Xa(this.element,!0)};
YYa=function(a,b){a.languages=g.ac(b,a.getKey,a);g.GX(a,g.Yp(b,a.getKey))};
$Ya=function(a,b){var c=new LX(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.vS(a.W())&&(e={I:"div",T:"ytp-panel-footer-content",X:[{I:"span",Aa:d[0]},{I:"a",T:"ytp-panel-footer-content-link",Aa:"Settings",Y:{href:"/account_playback"}},{I:"span",Aa:d[1]}]});g.FX.call(this,"Subtitles/CC",g.SU(a).SUBTITLES,a,b,"Options",function(){g.qW(b,c)},e);
var f=this;this.J=a;this.Pb=b;this.tracks={};this.S=new g.au(function(){ZYa(f,!1)},3E3);
g.L(this,this.S);this.countLabel=new g.T({I:"div",X:[{I:"span",Aa:"Subtitles/CC"},{I:"span",T:"ytp-menuitem-label-count",Aa:"{{content}}"}]});g.L(this,this.countLabel);g.DU(this,this.countLabel);a.N("web_settings_menu_icons")&&GU(this,wSa.includes("en-GB")?{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{I:"path",Y:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z            M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z            M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
fill:"white"}}]}:{I:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{I:"path",Y:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.j=new MX(a,b);g.L(this,this.j);this.j.subscribe("select",this.H2,this);this.G=c;g.L(this,this.G);this.G.subscribe("settingChange",this.ek,this);b.subscribe("show",this.Z8,this);this.V(a,"videodatachange",this.Sa);this.V(a,"onApiChange",this.Sa);this.V(a,"onCaptionsTrackListChanged",
this.Sa);this.V(a,"captionschanged",this.Sa);a.zb(this.element,this,127300);this.Sa()};
aZa=function(a){return Object.values(a.tracks).find(function(b){return"en"===b.languageCode&&"asr"===b.kind})};
NX=function(a,b){a.J.setOption("captions","track",b)};
ZYa=function(a,b){a.J.setOption("captions","sampleSubtitles",b)};
bZa=function(a){g.sW.call(this,a,"ytp-settings-menu");var b=this;this.Xf=new g.nW(this.J);this.wQ=this.settingsButton=null;this.isInitialized=this.kJ=!1;g.L(this,this.Xf);this.hide();g.qW(this,this.Xf);a.zb(this.element,this,108341,!0);this.subscribe("show",function(c){b.Cg(c)});
this.V(a,"highlightSettingsMenu",function(){b.kJ=!0;b.zd()});
this.J.N("web_player_enable_open_menu_item_from_command")&&this.V(a,"openSettingsMenuItem",function(c){if(c&&(b.kJ=!0,b.zd(),"menu_item_video_quality_advanced"===c)){var d;null==(d=b.wQ)||d.open()}})};
cZa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
g.OX=function(a,b){g.T.call(this,{I:"button",Na:["ytp-subtitles-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"3","data-title-no-tooltip":"{{data-title-no-tooltip}}"},X:[xSa()]});this.J=a;this.tooltip=b.Ec();this.V(a,"videodatachange",this.Sa);this.V(a,"appresize",this.Sa);this.V(a,"promotooltipacceptbuttonclicked",this.j);this.V(a,"onApiChange",this.Sa);this.V(a,"onCaptionsTrackListChanged",this.Sa);this.V(a,"captionschanged",this.Sa);
this.J.zb(this.element,this,127299);this.Sa();this.Ua("click",this.onClick);g.ub(this,g.LU(b.Ec(),this.element))};
dZa=function(a){return null!=g.JV(a.J.Eb())?g.JV(a.J.Eb()).jR()?!!a.J.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
g.QX=function(a,b,c){c=void 0===c?350:c;g.T.call(this,{I:"div",Na:["ytp-time-display","notranslate"],X:[{I:"span",T:"ytp-time-clip-icon",Aa:"{{clipicon}}"},{I:"span",X:[{I:"span",T:"ytp-time-current",Aa:"{{currenttime}}"},{I:"span",T:"ytp-time-separator",Aa:" / "},{I:"span",T:"ytp-time-duration",Aa:"{{duration}}"}]},{I:"span",T:"ytp-clip-watch-full-video-button-separator",Aa:"\u2022"},{I:"span",T:"ytp-clip-watch-full-video-button",Aa:"{{watchfullvideo}}"}]});this.api=a;this.S=c;this.liveBadge=new g.T({I:"button",
Na:["ytp-live-badge","ytp-button"],Y:{disabled:"true"},Aa:"{{content}}"});this.j=null;this.ED=this.B=!1;this.K=this.G=null;this.isPremiere=!1;this.Lb=this.D=this.C=null;this.ea=this.Ha("ytp-clip-watch-full-video-button");this.liveBadge.oe("Live");g.L(this,this.liveBadge);this.liveBadge.Ga(this.element);this.tooltip=b.Ec();this.Ua("click",this.onClick);this.V(this.ea,"click",this.C9);this.V(a,"presentingplayerstatechange",this.Ic);this.V(a,"appresize",this.Ic);this.V(a,"onLoopRangeChange",this.onLoopRangeChange);
this.V(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Ic();a=a.getLoopRange();b=this.Lb!==a;this.Lb=a;b&&PX(this);this.api.N("web_modern_miniplayer")&&(this.element.hidden=!0)};
PX=function(a){a.updateValue("clipicon",{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},X:[{I:"path",Y:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]});
a.ED&&!a.B?a.updateValue("watchfullvideo","Watch live stream"):a.updateValue("watchfullvideo","Watch full video");g.mu(a.element,"ytp-clip",RX(a));g.mu(a.element,"ytp-live",SX(a))};
SX=function(a){var b=a.api.W().N("enable_linear_program_progress");return a.ED&&!RX(a)&&(!b||!a.B)};
RX=function(a){return!!a.Lb&&!!a.Lb.postId&&2!==a.api.getPresentingPlayerType()&&(!a.Lb.type||"clips"===a.Lb.type)};
fZa=function(a,b,c){g.T.call(this,{I:"div",T:"ytp-volume-panel",Y:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},X:[{I:"div",T:"ytp-volume-slider",X:[{I:"div",T:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.ub=b;this.K=c;this.ym=!1;this.ea=this.volume=0;this.G=null;this.B=this.j=this.isDragging=!1;this.ub=b;this.K=c;this.C=b.Ng();this.S=this.Ha("ytp-volume-slider");this.qa=this.Ha("ytp-volume-slider-handle");
this.D=new g.cV(this.S,!0);g.L(this,this.D);this.D.subscribe("dragstart",this.e9,this);this.D.subscribe("dragmove",this.J2,this);this.D.subscribe("dragend",this.d9,this);this.V(a,"onVolumeChange",this.onVolumeChange);this.V(a,"appresize",this.wT);this.V(a,"fullscreentoggled",this.lr);this.V(a,"onShowControls",this.UU);this.V(a,"onHideControls",this.UU);this.V(this.element,"keydown",this.K2);this.V(this.element,"focus",function(){TX(d,d.j,d.isDragging,!0,d.ub.ym())});
this.V(this.element,"blur",function(){TX(d,d.j,d.isDragging,!1,d.ub.ym())});
this.wT(a.tb().getPlayerSize());eZa(this,a.getVolume(),a.isMuted());g.ub(this,g.LU(b.Ec(),this.element))};
eZa=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.updateValue("valuenow",d);a.updateValue("valuetext",e);a.qa.style.left=(a.C?60:40)*c+"px";a.volume=b};
gZa=function(a,b){g.mu(a.element,"ytp-volume-control-hover",b);TX(a,b,a.isDragging,a.B,a.ub.ym())};
TX=function(a,b,c,d,e){var f=a.j||a.isDragging||a.B||a.ym;a.j=b;a.isDragging=c;a.B=d;a.ym=e;b=a.j||a.isDragging||a.B||a.ym;f!==b&&(b?a.G=a.V(a.element,"wheel",a.I2):(a.Qc(a.G),a.G=null),g.mu(a.K,"ytp-volume-slider-active",b))};
g.UX=function(a,b){var c=a.W(),d=g.rS(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.C&&e.push("no-link");g.mS(c)&&e.push("ytp-youtube-music-button");var f={title:"",target:c.ea,"data-priority":"5","data-sessionlink":"feature=player-button"};c.C||(f.title="youtube.com"===d?"Watch on YouTube":g.vK("Watch on $WEBSITE",{WEBSITE:d}),f.href="{{url}}");g.T.call(this,{I:"a",Na:e,Y:f,Aa:"{{logoSvg}}"});this.j=null;this.api=a;this.visible=!1;a.zb(this.element,
this,28666);c.C||(this.j=this.Ua("click",this.onClick));this.V(a,"videodatachange",this.onVideoDataChange);this.V(a,"videoplayerreset",this.onVideoDataChange);this.V(a,"onLoopRangeChange",this.onVideoDataChange);this.V(a,"appresize",this.Nb);this.onVideoDataChange();c.C||g.ub(this,g.LU(b.Ec(),this.element));this.Nb()};
hZa=function(a,b,c){g.ZK.call(this);var d=this;this.J=a;this.ub=b;this.nf=c;this.fb=NaN;this.kb=this.eb=null;this.B=new bZa(this.J);this.Tc=new g.oX(this.J,this.ub);this.qa=this.ea=this.K=null;this.Gj=new g.QX(this.J,this.ub);this.Va=this.playButton=this.G=this.D=this.Pa=this.Oa=null;this.va=new hXa(this.J,this.ub);this.Ya=new g.cX(this.J,this.ub);this.Af=new g.Zt(this.xw,null,this);this.ma=null;c=a.W();this.nf.subscribe("autohideupdate",this.On,this);var e=!a.Tb().isCued(),f;g.mS(c)||a.W().N("html5_player_dynamic_bottom_gradient")?
this.kb=f=new g.ZW(a):f=new g.T({I:"div",T:"ytp-gradient-bottom"});g.L(this,f);g.wU(a,f.element,9);this.Fa=new g.VG(f,250,e,100);g.L(this,this.Fa);this.C=new g.T({I:"div",T:"ytp-chrome-bottom",X:[{I:"div",T:"ytp-chrome-controls"}]});g.L(this,this.C);g.wU(a,this.C.element,9);this.Ca=new g.VG(this.C,250,e,100);g.L(this,this.Ca);this.Ja=this.C.element.children[0];g.ub(this.B,function(){a.qn()===d.B&&(a.cL=null)});
g.L(this,this.B);a.cL=this.B;g.wU(a,this.B.element,6);this.B.subscribe("show",function(m){d.ub.Ec().ZQ(!m);b.UJ(d.B,m)});
g.L(this,this.Tc);this.Tc.Ga(this.C.element,0);e=new g.bX(a,b);g.L(this,e);g.wU(a,e.element,4);e=new g.pG({I:"div",T:"ytp-left-controls"});g.L(this,e);e.Ga(this.Ja);f=new g.jX(a,b,!1);g.L(this,f);f.Ga(e.element);a.N("web_render_jump_buttons")&&(this.ea=new dX(a,b,g.JJ(a.W().experiments,"web_jump_button_backward_amount")||-10),g.L(this,this.ea),this.ea.Ga(e.element));c.Pa||(this.playButton=new g.iX(a,b),g.L(this,this.playButton),this.playButton.Ga(e.element));a.N("web_render_jump_buttons")&&(this.qa=
new dX(a,b,g.JJ(a.W().experiments,"web_jump_button_forward_amount")||10),g.L(this,this.qa),this.qa.Ga(e.element));f=new g.jX(a,b,!0);g.L(this,f);f.Ga(e.element);f=new g.T({I:"span",T:"ytp-volume-area"});g.L(this,f);f.Ga(e.element);if(!c.Kd&&(this.K=new g.hX(a,b),g.L(this,this.K),this.K.Ga(f.element),c.eb&&!c.ma)){var h=new fZa(a,b,this.C.element);this.Va=h;g.L(this,h);h.Ga(f.element);f=new g.cV(f.element);g.L(this,f);f.subscribe("hoverstart",function(){var m;null==(m=d.Va)||gZa(m,!0)});
f=new g.cV(e.element);g.L(this,f);f.subscribe("hoverend",function(){var m;null==(m=d.Va)||gZa(m,!1)})}g.L(this,this.Gj);
this.Gj.Ga(e.element);this.j=new g.pG({I:"div",T:"ytp-right-controls"});g.L(this,this.j);this.Oa=new aX(a,b,this.Tc);g.L(this,this.Oa);this.Oa.Ga(e.element);c.N("web_key_moments_markers")&&(this.Pa=new eX(a,b,this.Tc),g.L(this,this.Pa),this.Pa.Ga(e.element));this.j.Ga(this.Ja);e=new g.OX(a,b);g.L(this,e);e.Ga(this.j.element);e=new DX(a,b,this.B);g.L(this,e);cZa(this.B,e);e.Ga(this.j.element);var l=new cXa(a);g.L(this,l);g.wU(a,l.element,5);l.subscribe("show",function(m){b.mq(l,m)});
e=new gX(a,b,l);g.L(this,e);e.Ga(this.j.element);e=a.getVideoData();if(c.Mm||e.Sd&&"1"===c.controlsType)this.D=new g.UX(a,b),g.L(this,this.D),this.D.Ga(this.j.element);g.L(this,this.va);c.showMiniplayerButton&&(this.G=new fX(a,b),g.L(this,this.G),this.G.Ga(this.j.element));this.va.Ga(this.j.element);e.BK||this.va.hide();c.nk&&(e=new CX(a,b,this.B),g.L(this,e),e.Ga(this.j.element));c.Sl&&(c=new XW(a,b),g.L(this,c),c.Ga(this.j.element));g.L(this,this.Ya);this.Ya.Ga(this.j.element);g.L(this,this.Af);
this.V(a,"appresize",this.Nb);this.V(a,"fullscreentoggled",this.Nb);this.V(a,"presentingplayerstatechange",this.jL);this.V(a,"videodatachange",this.onVideoDataChange);this.Nb()};
iZa=function(a,b){a.J.Tb().isCued()||b?b&&(a.Ca.hide(),a.Fa.hide(),a.K&&a.K.lc(!1),a.D&&a.D.lc(!1),a.G&&a.G.lc(!1),a.ub.Ec().Hk(a.Gb())):b||(a.Ca.show(),a.Fa.show(),a.K&&a.K.lc(!0),a.D&&a.D.lc(!0),a.G&&a.G.lc(!0),a.On())};
kZa=function(a){var b=a.J.tb().getPlayerSize().width;return Math.max(b-2*jZa(a),100)};
jZa=function(a){var b=a.ub.Ng(),c=a.J.getVideoData().Sd,d=0;a.ub.Ng()&&g.tU(a.J)&&(d=(a.J.tb().getPlayerSize().width-a.J.getVideoContentRect().width)/2);return 12*(c?0:b?2:1)+d};
lZa=function(a){var b=a.ub.Ng()?72:50;a=a.J.W();g.vS(a)&&(b=62,g.jS(a)&&(b=54));return b};
mZa=function(a,b){BW.call(this,a,b,!1);var c=this;this.suggestedActions={};this.V(this.J,"videodatachange",this.onVideoDataChange);this.V(this.J,g.pK("suggested_action_button_visible"),function(d){d=d.id;c.text=d;VVa(c);c.onClickCommand=c.suggestedActions[d];c.enabled=!0;c.Cg()});
this.V(this.J,g.qK("suggested_action_button_visible"),function(d){c.enabled=!1;c.Cg();c.J.N("suggested_actions_clear_cuerange_after_use")&&c.J.removeCueRange(d.id)})};
nZa=function(a){a.suggestedActions={};a.J.mf("suggested_action_button_visible")};
WX=function(a){g.T.call(this,{I:"div",T:VX.TITLE,X:[{I:"div",T:VX.TEXT,X:[{I:"a",Na:[VX.LINK,VX.SESSIONLINK],Y:{target:a.W().ea,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},Aa:"{{title}}"},{I:"div",T:VX.SUBTEXT,X:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Ha(VX.LINK);a.zb(this.element,this,23851);this.V(a,"videodatachange",this.Sa);this.V(a,"videoplayerreset",this.Sa);this.Sa()};
oZa=function(a){a.updateValue("channelLink","");a.updateValue("channelName","");g.jS(a.api.W())?a.updateValue("channelTitleFocusable","0"):a.updateValue("channelTitleFocusable","-1")};
g.XX=function(a,b){g.T.call(this,{I:"div",X:[{I:"div",T:"ytp-tooltip-text-wrapper",Y:{"aria-hidden":"{{ariaHidden}}"},X:[{I:"div",T:"ytp-tooltip-edu",X:[{I:"svg",Y:{height:"100%",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Y:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{I:"span",Aa:"{{eduText}}"}]},{I:"div",T:"ytp-tooltip-image"},{I:"div",T:"ytp-tooltip-title",X:[{I:"span",Aa:"{{title}}"}]},{I:"span",T:"ytp-tooltip-text",Aa:"{{text}}"}]},
{I:"div",T:"ytp-tooltip-bg",X:[{I:"div",T:"ytp-tooltip-duration",Aa:"{{duration}}"}]}]});var c=this;this.api=a;this.ub=b;this.env=this.api.W();this.Pa=this.env.B;this.bg=this.Ha("ytp-tooltip-bg");this.Va=this.Ha("ytp-tooltip-edu");this.image=this.Ha("ytp-tooltip-image");this.text=this.Ha("ytp-tooltip-text");this.title=this.Ha("ytp-tooltip-title");this.va=function(d){(d=d.relatedTarget)&&g.Af(c.j,d)||c.Do()};
this.G=function(d){3===c.type&&c.Do();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.G),d.addEventListener("mouseout",c.va),d.removeEventListener("focus",c.G),d.addEventListener("blur",c.va),pZa(c,d,2))};
this.Fa=function(){c.Do()};
this.j=null;this.K=new g.VG(this,100);this.type=null;this.qa=!1;this.B=null;this.D=NaN;this.C="";this.kL=this.api.tb().getPlayerSize().width;this.ea=!0;this.scale=1;this.S=160;this.Ca=90;this.Ja=new g.au(this.r6,250,this);this.Oa=new g.au(this.Do,5E3,this);g.L(this,this.K);g.L(this,this.Ja);g.L(this,this.Oa);bS&&(a=this.Ha("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"));YWa(this.api)&&(this.S=243,this.Ca=141,g.iu(this.api.getRootNode(),"ytp-bigboards"))};
jW=function(a){a.element.setAttribute("aria-live","polite")};
sZa=function(a,b,c,d,e,f,h,l,m){if(!a.Pa||a.env.ma){3===a.type&&a.Do();1!==a.type&&(g.gu(a.element,"ytp-tooltip ytp-bottom"),(YWa(a.api)||a.env.N("web_modern_scrubber")&&a.api.isInline())&&g.iu(a.element,"ytp-rounded-tooltip"),a.type=1,a.ea&&a.K.show(),a.B&&a.B.dispose(),a.B=a.api.Uj(),a.B&&a.B.subscribe("l",a.dY,a));if(m){var n=g.Jr(a.bg).height||a.Ca;a.Va.style.bottom=n+2+"px"}a.update({text:d,title:null!=h?h:"",eduText:null!=m?m:""});g.mu(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);a.env.N("web_modern_scrubber")&&
a.api.isInline()&&g.iu(a.text,"ytp-modern-tooltip-text");g.mu(a.element,"ytp-text-detail",!!e);d=-1;a.B&&(d=aT(a.B,a.S*a.scale),a.env.N("web_l3_storyboard")&&4===a.B.levels.length&&(d=a.B.levels.length-1),d=WPa(a.B,d,c));qZa(a,d);if(l)switch(c=g.Jr(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"}rZa(a,!!e,b,f)}};
g.YX=function(a){1===a.type&&a.Do()};
g.LU=function(a,b){if(a.Pa)return function(){};
b.addEventListener("mouseover",a.G);b.addEventListener("focus",a.G);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.j===b&&a.Do();b.removeEventListener("mouseover",a.G);b.removeEventListener("focus",a.G)}};
wW=function(a,b,c){if(a.type)if(3===a.type)a.Do();else return;pZa(a,b,3,c)};
pZa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.nD("showElementTooltip called with non-element.",b.toString()),g.TF(a);else{isNaN(a.D)||(a.D=NaN,a.bg.style.background="");a.j=b;a.qa=!!d;d?a.C=d:(a.C=b.getAttribute("title"),b.removeAttribute("title"));g.gu(a.element,"ytp-tooltip");g.iu(a.element,"ytp-rounded-tooltip");var e=b.getAttribute("data-tooltip-image");e&&(a.image.style.backgroundImage="url("+e+")");d?a.update({ariaHidden:"false"}):a.update({ariaHidden:"true"});g.mu(a.element,"ytp-tooltip-image-enabled",
!!e);b=b.getAttribute("data-tooltip-opaque");g.mu(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.Fa);a.ea&&(tZa(a),a.K.show(0))}};
tZa=function(a){if(a.j){var b=a.j.getAttribute("data-tooltip-text");if(a.C&&a.j.getAttribute("aria-label")!==a.C)var c=a.C;var d=a.j.getAttribute("aria-keyshortcuts"),e=a.j.getAttribute("data-title-no-tooltip");d&&e&&(c=g.vK("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:e,SHORTCUT_KEY:d}));c&&a.j.setAttribute("aria-label",c);if(b&&!a.qa){d=a.j;a.updateValue("text",b);c=d.getAttribute("data-duration");a.update({title:a.C,duration:c});d=d.getAttribute("data-preview");e=a.S*a.scale;var f=
a.Ca*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=d?"url("+d+")":"";a.bg.style.backgroundSize=e+"px "+f+"px";g.ju(a.element,["ytp-text-detail","ytp-preview"]);g.mu(a.element,"ytp-has-duration",!!c)}else a.updateValue("text",a.C),g.lu(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);rZa(a,!!b)}};
rZa=function(a,b,c,d){var e=Math.min(a.kL,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.ub.Hw(a.element,a.j,c,1===a.type,d);a.element.style.top?g.iu(a.element,"ytp-bottom"):a.element.style.bottom&&g.iu(a.element,"ytp-top");3===a.type&&a.Oa.start()};
MU=function(a){a.j&&!a.qa&&a.j.hasAttribute("title")&&(a.C=a.j.getAttribute("title")||"",a.j.removeAttribute("title"),a.ea&&tZa(a))};
qZa=function(a,b){g.mu(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.D)){a.D=b;b=a.S*a.scale;var c=a.Ca*a.scale,d=SPa(a.B,a.D,b);XWa(a.bg,d,b,c,!0);a.Ja.start()}};
uZa=function(a){var b=a.j;3===a.type&&a.Oa.stop();a.api.removeEventListener("appresize",a.Fa);a.qa||b.setAttribute("title",a.C);a.C="";a.j=null};
wZa=function(a,b){g.T.call(this,{I:"button",Na:["ytp-watch-later-button","ytp-button"],Y:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.eS(a.W()))},X:[{I:"div",T:"ytp-watch-later-icon",Aa:"{{icon}}"},{I:"div",T:"ytp-watch-later-title",Aa:"Watch Later"}]});this.J=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.Ec();jW(this.tooltip);a.zb(this.element,this,28665);this.Ua("click",this.onClick,this);this.V(a,"videoplayerreset",this.zw);this.V(a,
"appresize",this.WB);this.V(a,"videodatachange",this.WB);this.V(a,"presentingplayerstatechange",this.WB);this.WB();a=this.J.W();var c=g.gD("yt-player-watch-later-pending");a.D&&c?(LKa(),vZa(this)):this.Sa(2);g.mu(this.element,"ytp-show-watch-later-title",g.eS(a));g.ub(this,g.LU(b.Ec(),this.element))};
xZa=function(a){var b=a.J.getPlayerSize(),c=a.J.W(),d=a.J.getVideoData(),e=g.eS(c)&&g.sU(a.J)&&g.aH(a.J.Tb(),128),f=c.C;return c.Td&&240<=b.width&&!d.isAd()&&d.Td&&!e&&!(d.Sd&&c.qa)&&!g.tU(a.J)&&!f};
yZa=function(a,b){g.iW(g.qS(a.J.W()),"wl_button",function(){LKa({videoId:b});window.location.reload()})};
vZa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Sa(3);var b=a.J.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.J.pn(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Sa(2);a.J.W().K&&a.J.Ta("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Sa(1);a.J.W().B&&wW(a.tooltip,a.element);a.J.W().K&&a.J.Ta("WATCH_LATER_VIDEO_ADDED")};
mI(c,b).then(d,function(){a.isRequestPending=!1;a.Sa(4,"An error has occurred. Please try again later.");a.J.W().K&&a.J.Ta("WATCH_LATER_ERROR","An error has occurred. Please try again later.")})}};
zZa=function(a,b){if(b!==a.icon){switch(b){case 3:var c=ySa();break;case 1:c=oua();break;case 2:c={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{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:c={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",
Bc:!0,Y:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",c);a.icon=b}};
g.ZX=function(a){g.bW.call(this,a);var b=this;this.ZH=(this.Pq=g.eS(this.api.W()))&&(this.api.W().B||IC()||GC());this.oM=48;this.pM=69;this.Xo=null;this.Tt=[];this.hd=new g.eW(this.api);this.xv=new xW(this.api);this.Vh=new g.T({I:"div",T:"ytp-chrome-top"});this.CF=[];this.tooltip=new g.XX(this.api,this);this.backButton=this.CA=null;this.channelAvatar=new yVa(this.api,this);this.title=new WX(this.api,this);this.rh=new g.pG({I:"div",T:"ytp-chrome-top-buttons"});this.searchButton=this.Li=this.shareButton=
this.zo=null;this.wh=new sVa(this.api,this,this.Vh.element);this.overflowButton=this.Sh=null;this.Zg="1"===this.api.W().controlsType?new hZa(this.api,this,this.nf):null;this.contextMenu=new g.uW(this.api,this,this.hd);this.bM=!1;this.mH=new g.T({I:"div",Y:{tabindex:"0"}});this.lH=new g.T({I:"div",Y:{tabindex:"0"}});this.LE=null;this.XP=this.QO=this.MG=!1;var c=a.tb(),d=a.W(),e=a.getVideoData();this.Pq&&(g.iu(a.getRootNode(),"ytp-embed"),g.iu(a.getRootNode(),"ytp-embed-playlist"),this.ZH&&(g.iu(a.getRootNode(),
"ytp-embed-overlays-autohide"),g.iu(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.oM=60,this.pM=89);a.W().C&&g.iu(a.getRootNode(),"ytp-embed-pfl");this.api.W().B&&(g.iu(a.getRootNode(),"ytp-mobile"),this.api.W().ma&&g.iu(a.getRootNode(),"ytp-embed-mobile"));this.Jg=e&&e.Jg;g.L(this,this.hd);g.wU(a,this.hd.element,4);g.L(this,this.xv);g.wU(a,this.xv.element,4);e=new g.T({I:"div",T:"ytp-gradient-top"});g.L(this,e);g.wU(a,e.element,1);this.DR=new g.VG(e,250,!0,100);g.L(this,this.DR);
g.L(this,this.Vh);g.wU(a,this.Vh.element,1);this.CR=new g.VG(this.Vh,250,!0,100);g.L(this,this.CR);g.L(this,this.tooltip);g.wU(a,this.tooltip.element,4);var f=new BWa(a);g.L(this,f);g.wU(a,f.element,5);f.subscribe("show",function(n){b.mq(f,n)});
this.CF.push(f);this.CA=new MW(a,this,f);g.L(this,this.CA);d.Tl&&(this.backButton=new oVa(a),g.L(this,this.backButton),this.backButton.Ga(this.Vh.element));this.Pq||this.CA.Ga(this.Vh.element);g.L(this,this.channelAvatar);this.channelAvatar.Ga(this.Vh.element);g.L(this,this.title);this.title.Ga(this.Vh.element);this.Pq&&(e=new WWa(this.api,this),g.L(this,e),e.Ga(this.Vh.element));g.L(this,this.rh);this.rh.Ga(this.Vh.element);var h=new g.RW(a,this);g.L(this,h);g.wU(a,h.element,5);h.subscribe("show",
function(n){b.mq(h,n)});
this.CF.push(h);this.searchButton=new PW(a,this);g.L(this,this.searchButton);this.searchButton.Ga(this.rh.element);this.zo=new wZa(a,this);g.L(this,this.zo);this.zo.Ga(this.rh.element);this.shareButton=new g.QW(a,this,h);g.L(this,this.shareButton);this.shareButton.Ga(this.rh.element);this.Li=new g.vW(a,this);g.L(this,this.Li);this.Li.Ga(this.rh.element);this.Pq&&this.CA.Ga(this.rh.element);g.L(this,this.wh);this.wh.Ga(this.rh.element);d.Jo&&(e=new WW(a),g.L(this,e),g.wU(a,e.element,4));d.C||(e=new tVa(a,
this,this.wh),g.L(this,e),e.Ga(this.rh.element));this.Sh=new xWa(a,this);g.L(this,this.Sh);g.wU(a,this.Sh.element,5);this.Sh.subscribe("show",function(){b.mq(b.Sh,b.Sh.qj())});
this.CF.push(this.Sh);this.overflowButton=new g.LW(a,this,this.Sh);g.L(this,this.overflowButton);this.overflowButton.Ga(this.rh.element);this.Zg&&g.L(this,this.Zg);"3"===d.controlsType&&(e=new OW(a,this),g.L(this,e),g.wU(a,e.element,9));g.L(this,this.contextMenu);this.contextMenu.subscribe("show",this.C_,this);e=new oH(a,new dW(a));g.L(this,e);g.wU(a,e.element,4);this.mH.Ua("focus",this.S4,this);g.L(this,this.mH);this.lH.Ua("focus",this.T4,this);g.L(this,this.lH);var l;(this.Wq=d.Pi?null:new g.IW(a,
c,this.contextMenu,this.nf,this.hd,this.xv,function(){return b.nm()},null==(l=this.Zg)?void 0:l.Tc))&&g.L(this,this.Wq);
this.Pq||(this.xV=new WVa(this.api,this),g.L(this,this.xV),g.wU(a,this.xV.element,4),this.DZ=new PWa(this.api,this),g.L(this,this.DZ),g.wU(a,this.DZ.element,4));this.TZ=new mZa(this.api,this);g.L(this,this.TZ);g.wU(a,this.TZ.element,4);this.api.N("enable_free_preview_timer")&&(this.bN=new EW(this.api),g.L(this,this.bN),g.wU(a,this.bN.element,4),this.bN.hide());if(this.Pq){var m=new lWa(a,this.api.W().Cb);g.L(this,m);g.wU(a,m.element,5);m.subscribe("show",function(n){b.mq(m,n)});
c=new pWa(a,this,m);g.L(this,c);g.wU(a,c.element,4)}this.St.push(this.hd.element);this.V(a,"fullscreentoggled",this.lr);this.V(a,"offlineslatestatechange",function(){b.api.GD()&&QV(b.nf,128,!1)});
this.V(a,"cardstatechange",function(){b.Gl()});
this.V(a,"resize",this.x7);this.V(a,"videoplayerreset",this.zw);this.V(a,"showpromotooltip",this.V7)};
AZa=function(a){var b=a.api.W(),c=g.aH(a.api.Tb(),128);return b.D&&c&&!a.api.isFullscreen()};
BZa=function(a){if(a.zg()&&!g.tU(a.api)&&a.Sh){var b=a.api.N("web_player_hide_overflow_button_if_empty_menu");!a.zo||b&&!xZa(a.zo)||yWa(a.Sh,a.zo);!a.shareButton||b&&!IWa(a.shareButton)||yWa(a.Sh,a.shareButton);!a.Li||b&&!PVa(a.Li)||yWa(a.Sh,a.Li)}else{if(a.Sh){b=a.Sh;for(var c=g.u(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.Af(a.rh.element,a.searchButton.element)&&a.searchButton.Ga(a.rh.element);a.zo&&!g.Af(a.rh.element,a.zo.element)&&a.zo.Ga(a.rh.element);
a.shareButton&&!g.Af(a.rh.element,a.shareButton.element)&&a.shareButton.Ga(a.rh.element);a.Li&&!g.Af(a.rh.element,a.Li.element)&&a.Li.Ga(a.rh.element)}};
CZa=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Br(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=CZa(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};
DZa=function(a,b,c){if(a.api.W().N("web_player_nitrate_promo_tooltip")){var d=a.api.getVideoData(1);if(null==d?0:d.tooltipRenderer){d=d.tooltipRenderer;var e;if(e=!a.LE){if(!(b=!b)){var f,h,l;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null==(f=d.tooltipDisplayStrategy)?void 0:f.type)&&"dtip-edu-player-iseecaptions"!==(null==(h=d.promoConfig)?void 0:h.promoId)&&"dtip-edu-player-touchcaptions"!==(null==(l=d.promoConfig)?void 0:l.promoId)}e=b}e&&(a.LE=new CWa(d,a,a.api),g.L(a,a.LE),g.wU(a.api,
a.LE.element,9));var m;null==(m=a.LE)||GWa(m,d,c)}}};
g.$X=function(a){g.yV.call(this,a);this.chrome=null;this.load()};
aY=function(a){g.J.call(this);var b=this;this.Z=a;this.j=new Map;this.D=[];this.B=this.Z.experiments.ob("html5_onesie_trusted_hosts_for_all")||!mO();this.ea=g.JJ(this.Z.experiments,"html5_onesie_prewarm_interval_ms");this.ma=new g.au(this.S,this.ea,this);this.K=-1;this.Nd={Jeb:function(){return b.j},
Qeb:function(){return b.G},
Keb:function(){return EZa}};
g.L(this,this.ma);FZa(this,g.gD("yt-player-bandaid-host"));this.G=this.load();this.ea&&this.G.then(function(){b.S()})};
FZa=function(a,b){var c=null==b?void 0:b.primary;a.C(0,c);c=c?GZa(c):void 0;a.C(2,c);a.C(1,null==b?void 0:b.secondary)};
bY=function(a,b){return new g.ZP("https://"+b+a.Z.Jl.baseUrl)};
HZa=function(a,b){a="https://"+aQ(b.location)+"/initplayback?c="+g.JR(a.Z)+"&owc=1";zU(a,"pw",function(c){c.ht=b.j})};
cY=function(a,b,c,d){zU("https://"+b+"/videoplayback?probe=1",c,function(e){!d.N("html5_onesie_host_racing")||d.videoData.isLivePlayback||d.N("html5_onesie_probe_ec_hosts")||d.aI||d.qW();a.D.push(e)},function(e){a.D.push(e.details)})};
GZa=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
JZa=function(a,b){var c,d,e,f,h,l;return g.H(function(m){if(1==m.j){c=bY(a,"redirector.googlevideo.com");c.set("alr","yes");c.set("id",""+Math.round(1E5*Math.random()));if(1===b||2===b)c.set("cmo=sensitive_content","yes"),c.set("sc","yes");2===b&&c.set("cmo=td","c.youtube.com");d={format:"RAW",timeout:5E3};return g.z(m,qC(c.jf(),d),2)}e=m.B;if(200!==e.xhr.status||!e.xhr.responseText)return m.return(Promise.reject(new g.nD("b204258371_no_host",c.jf(),e.xhr.status)));f=new g.ZP(e.xhr.responseText);
h=aQ(f);l=f.get("ms");f=bY(a,h);f.set("ms",l);return h&&IZa(h)?2!==b||dY(h)?m.return(f):m.return(Promise.reject(new g.nD("b204258371_untrusted",h,l))):m.return(Promise.reject(new g.nD("b204258371_invalid",h,l)))})};
KZa=function(a){var b=a.D;a.D=[];return b};
IZa=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
dY=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
LZa=function(a,b){this.location=a;this.j=b};
g.eY=function(a){this.tag=a};
NZa=function(a,b){MZa.apply(null,[6,a,b].concat(g.pa(g.Ja.apply(2,arguments))))};
OZa=function(a,b){MZa.apply(null,[5,a,b].concat(g.pa(g.Ja.apply(2,arguments))))};
MZa=function(a,b,c){var d=g.Ja.apply(3,arguments),e=6===a?"ERROR":"WARNING",f="b"+c;g.TF(new (Function.prototype.bind.apply(g.nD,[null,f].concat(g.pa(d)))),e);d.unshift(f);d=d.join(", ");e=PZa.get(b);if(!e){e="ytplog."+b;f=5;try{window.localStorage&&!isNaN(+window.localStorage[e])&&(f=+window.localStorage[e]),window.sessionStorage&&!isNaN(+window.sessionStorage[e])&&(f=+window.sessionStorage[e])}catch(h){}PZa.set(b,f);e=f}a<e||("function"===typeof d&&(d=d()),console.log("plyr."+b,d))};
fY=function(a,b,c,d){var e=this;this.policy=a;this.ib=b;this.D=void 0===d?!1:d;this.j=0;this.B=null;this.gf=[];this.C=null;this.Nd={un:function(){return e.ib}};
(this.length=c&&!this.policy.No?c:0)?1!==this.ib.length||this.ib[0].B||(this.ib[0].B=this.length):1===this.ib.length||g.Zp(this.ib,function(f){return!!f.range})};
gY=function(a,b,c){a.B&&(xO(a.B,b),b=a.B,a.B=null);for(var d=!1,e=!1,f=0,h=0,l=g.u(a.ib),m=l.next();!m.done;m=l.next()){m=m.value;if(a.D&&m.range&&c)break;if(m.range&&f+m.B<=a.j)f+=m.B;else{if(RQ(m)&&!c&&a.j+b.totalLength-h<f+m.B){a.B=b.split(h).Gm;break}var n=3===m.type||4===m.type;a:{var p=a;var q=a.j-f,r=n&&d&&!e&&1===b.j.length,t=b.totalLength-h;m.range&&(t=Math.min(m.B-q,t));q=gMa(m,m.dc+q,t,m.range?m.dc+q+t===m.range.length:!!c);var v=yO(b,h,t),x=void 0;if(r&&!p.policy.No)for(x=new wO([]),r=
0;r<p.gf.length;r++)xO(x,p.gf[r].j);r=new hR(q,v,x);if(p.policy.useUmp&&p.gf.length&&(q=jR(p.gf[p.gf.length-1],r))){p.gf[p.gf.length-1]=q;p=t;break a}p.gf.push(r);p=t}a.j+=p;h+=p;f+=m.B;1===m.type&&(d=!0);n&&(e=!0);a.D&&!m.range&&c&&(a.ib.shift(),a.j=0);if(h===b.totalLength)break}}};
QZa=function(a){return a.length-a.j+a.gf.reduce(function(b,c){return b+c.j.totalLength},0)};
hY=function(a){g.J.call(this);var b=this;this.C=a;this.logger=new g.eY("onesie");this.Vc=new Map;this.j=!1;this.Uk=this.manifest=null;this.B=!1;this.Nd={efb:function(c){var d;return null==(d=b.Vc.get(c))?void 0:d.sf}}};
RZa=function(a,b,c){a.Vc.get(b).df=c};
jY=function(a,b){a.Vc.has(b)&&(iY?a.Vc.get(b).er=[]:a.Vc.get(b).gf=new wO,SZa(a,b))};
UZa=function(a){for(var b=g.u(a.Vc),c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;(TZa?d.kG:d.df)||jY(a,c)}};
VZa=function(a,b){b=a.Vc.get(b);if(!b)return 0;a=0;if(0<b.ib.length){b=g.u(b.ib);for(var c=b.next();!c.done;c=b.next()){var d=void 0;a+=(null==(d=c.value.range)?void 0:d.length)||0}return a}if(0<b.xI.length)for(c=g.u(b.xI),d=c.next();!d.done;d=c.next())a+=d.value.Cr||0;return a+b.LW};
WZa=function(a,b){if(!iY){var c;return(null==(c=a.Vc.get(b))?void 0:c.gf.totalLength)||0}var d;a=null==(d=a.Vc.get(b))?void 0:d.er;if(!a||!a.length)return 0;for(b=d=0;b<a.length;b++)d+=a[b].data.totalLength;return d};
kY=function(a,b){a=a.Vc.get(b);b=!TZa||!(null==a||!a.kG);return iY?b&&!(null==a||!a.er.length):b&&!(null==a||!a.gf.totalLength)};
XZa=function(a,b){var c=a.Vc.get(b),d=VZa(a,b),e=!d&&!!c.bytesReceived,f=a.ri(b);return e&&a.j&&void 0!==f?f:(e||c.bytesReceived===d)&&c.Es+WZa(a,b)===c.bytesReceived};
YZa=function(a,b,c,d,e){d.ib.push.apply(d.ib,g.pa(e));var f;if(null==(f=a.Uk)?0:f.Kd){d.cK.has(b)||d.cK.set(b,[]);var h;(h=d.cK.get(b)).push.apply(h,g.pa(e))}else if(d.sf)for(a=g.u(e),e=a.next();!e.done;e=a.next())b=void 0,c=d.sf,e=e.value,c.ib.push(e),c.length+=(null==(b=e.range)?void 0:b.length)||0;else{var l;d.sf=new fY(a.Uk,[].concat(g.pa(d.ib)),VZa(a,c),!(null==(l=a.Uk)||!l.uB))}};
ZZa=function(a,b,c){var d,e=null==(d=a.manifest)?void 0:d.K.get(b);if(!e)return[];if(c.Fn){var f;return(null==(f=e.Ev(0,c.clipId))?void 0:f.ib)||[]}if(e.Gn()){if(0>c.SA||0>c.mu||0>c.durationMs||0>c.startMs||0>c.Cr)return jY(a,b),[];a=NQ(c.SA,c.Cr);b=c.hP||0;return[new PQ(3,e,a,"makeSliceInfosMediaBytes",c.mu-1,c.startMs/1E3,c.durationMs/1E3,b,a.length-b,void 0,c.Cj,c.clipId)]}if(0>c.mu)return jY(a,b),[];var h;return(null==(h=a.manifest)?0:h.Fc)?(a=e.Ej,[new PQ(3,e,void 0,"makeSliceInfosMediaBytes",
c.mu,void 0,a,void 0,a*e.info.Zb,!0,c.Cj,c.clipId)]):[]};
$Za=function(a,b,c){a.manifest=b;a.Uk=c;b=g.u(a.Vc);for(c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;for(var e=g.u(d.pZ),f=e.next();!f.done;f=e.next()){f=f.value;var h=ZZa(a,c,f);YZa(a,f.Lq,c,d,h)}}};
b_a=function(a,b,c,d){(a=a.Vc.get(c))&&!a.jh&&(a_a&&(a.nw.has(b)||a.nw.set(b,{data:new wO,rC:0,Gt:!1}),xO(a.nw.get(b).data,d)),iY?(b=0<a.er.length?a.er[a.er.length-1]:null,!b||b.Gt?a.er.push({data:new wO([zO(d)]),rC:0,Gt:!1}):xO(b.data,d)):xO(a.gf,d),a.bytesReceived+=d.totalLength,a.sQ=!0)};
SZa=function(a,b){if((b=a.Vc.get(b))&&!b.jh){b.jh=!0;b.df&&b.df();a:{b=g.u(a.Vc.values());for(var c=b.next();!c.done;c=b.next())if(!c.value.jh){b=!1;break a}b=!0}b&&a.C.RX()}};
lY=function(a,b){var c,d;null==(c=window.h5vcc)||null==(d=c.settings)||d.set(a,b)};
c_a=function(){var a=window.H5vccPlatformService,b="";if(a&&a.has("dev.cobalt.coat.clientloginfo")&&(a=a.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=a.send(new ArrayBuffer(0));
c&&(b=String.fromCharCode.apply(String,g.pa(new Uint8Array(c))));a.close()}return b};
d_a=function(){for(var a=mY.length;4>a;a++){var b=g.lf("VIDEO");b.load();mY.push(new g.jV(b))}};
e_a=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};c=f.C;if(b.Mk()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(b=b.zf())&&b.isView()&&(b=b.mediaElement);if(b&&12<b.Gv().length&&g.AT(e))return{msg:"played-ranges"};if(!e.C)return null;if(!e.C.j||!c.j)return{msg:"non-dash"};a=a.j&&g.OT(f)&&EL();if(e.C.videoInfos[0].containerType!==c.videoInfos[0].containerType)if(a)f.ya("sgap",
{ierr:"container"});else return{msg:"container"};if(g.AT(f)&&g.AT(e))return{msg:"content-protection"};c=c.j[0];e=e.C.j[0];b=c.audio;d=e.audio;if(b.sampleRate!==d.sampleRate&&!g.sL)if(a)f.ya("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:c.itag,cr:b.sampleRate,ni:e.itag,nr:d.sampleRate};return(b.numChannels||2)!==(d.numChannels||2)?{msg:"channel-count"}:null};
nY=function(a){g.J.call(this);this.app=a;this.j=null;this.B=1};
f_a=function(){this.j=!1};
g_a=function(a){var b=new f_a;b.j=a.N("h5_gapless_support_types_diff");return b};
g.oY=function(a,b,c,d){d=void 0===d?!1:d;OL.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
h_a=function(a,b,c,d,e,f){f=void 0===f?0:f;g.J.call(this);var h=this;this.policy=a;this.j=b;this.B=c;this.qe=e;this.G=f;this.D=this.C=null;this.currentVideoDuration=this.K=-1;this.S=!1;this.Up=new NL;this.Hm=d-1E3*b.Xc();this.Up.then(void 0,function(){});
this.timeout=new g.au(function(){h.Rg("timeout")},1E4);
g.L(this,this.timeout);this.ma=isFinite(d);this.status={status:0,error:null}};
m_a=function(a){var b,c,d,e,f,h,l,m,n;return g.H(function(p){if(1==p.j){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.pY.Nr("gtfta");return g.z(p,a.Up,2)}g.pY.wq(b);c=a.j.zf();if(c.ri())return a.Rg("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.D||!IL(a.D))return a.Rg("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.B.jt()!==a.D)return a.Rg("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error||
"")));d=i_a(a);e=d.IX;f=d.fV;h=d.GX;a.j.Bj(!1,!0);l=j_a(c,e,h,!a.B.getVideoData().isAd());a.B.setMediaElement(l);a.ma&&(a.B.seekTo(a.B.getCurrentTime()+.001,{Rv:!0,BR:3,Id:"gapless_pseudo"}),l.play()||uC());m=c.uc();m.cpn=a.j.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+h;a.B.ya("gapless",m);a.j.ya("gaplessTo",{cpn:a.B.getVideoData().clientPlaybackNonce});n=a.j.getPlayerType()===a.B.getPlayerType();k_a(a.j,f,!1,n,a.B.getVideoData().clientPlaybackNonce);k_a(a.B,a.B.getCurrentTime(),!0,n,a.j.getVideoData().clientPlaybackNonce);
g.Qf(function(){!a.B.getVideoData().Va&&g.WL(a.B.getPlayerState())&&l_a(a.B)});
qY(a,6);a.dispose();return p.return(Promise.resolve())})};
q_a=function(a){if(a.B.getVideoData().C){var b=a.qe.W().N("html5_gapless_suspend_next_loader")&&1===a.G;n_a(a.B,a.D,b);qY(a,3);o_a(a);var c=p_a(a);b=c.fR;c=c.CZ;b.subscribe("updateend",a.Ox,a);c.subscribe("updateend",a.Ox,a);a.Ox(b);a.Ox(c)}};
o_a=function(a){a.j.unsubscribe("internalvideodatachange",a.Su,a);a.B.unsubscribe("internalvideodatachange",a.Su,a);a.j.unsubscribe("mediasourceattached",a.Su,a);a.B.unsubscribe("statechange",a.Xd,a)};
j_a=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.oY(a,b,c,d)};
qY=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Up.resolve())};
i_a=function(a){var b=a.j.zf();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:rY(a.j,!0);c=Math.min(a.Hm/1E3,c)+b;var d=a.ma?100:0;a=c-a.B.Mk()+d;return{l4:b,IX:a,fV:c,GX:Infinity}};
p_a=function(a){return{fR:a.C.j.Zd,CZ:a.C.B.Zd}};
sY=function(a){g.J.call(this);var b=this;this.app=a;this.G=this.B=this.j=null;this.S=!1;this.D=null;this.ma=g_a(this.app.W());this.C=null;this.K=function(){g.Qf(function(){r_a(b)})}};
s_a=function(a,b,c,d,e){d=void 0===d?0:d;e=void 0===e?0:e;a.Yv()||tY(a);a.D=new NL;a.j=b;var f=c,h=0===e;h=void 0===h?!0:h;var l=a.app.Gd(),m=l.getVideoData().isLivePlayback?Infinity:1E3*rY(l,!0);f>m&&(f=m-200,a.S=!0);h&&l.getCurrentTime()>=f/1E3?a.K():(a.B=l,h&&(h=f,f=a.B,a.app.Za.addEventListener(g.pK("vqueued"),a.K),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.oK(h,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(a.G)));h=d/=1E3;f=b.getVideoData().j;d&&f&&a.B&&(l=d,m=0,
b.getVideoData().isLivePlayback&&(h=Math.min(c/1E3,rY(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,rY(b)+m)),h=BNa(f,l)||d,h!==d&&a.j.ya("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().Ji=!0;d.getVideoData().ea=!0;g.uY(d,!0);f={};a.B&&(f=g.DN(a.B.Lc().provider),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(1E3*f).toFixed(),cpn:h});d.ya("queued",f);0!==b&&d.seekTo(b+.01,{Rv:!0,BR:3,Id:"videoqueuer_queued"});a.C=new h_a(a.ma,a.app.Gd(),a.j,c,a.app,e);c=a.C;Infinity!==c.status.status&&
(qY(c,1),c.j.subscribe("internalvideodatachange",c.Su,c),c.B.subscribe("internalvideodatachange",c.Su,c),c.j.subscribe("mediasourceattached",c.Su,c),c.B.subscribe("statechange",c.Xd,c),c.j.subscribe("newelementrequired",c.iY,c),c.Su());return a.D};
r_a=function(a){var b,c,d,e;g.H(function(f){switch(f.j){case 1:if(a.isDisposed()||!a.D||!a.j)return f.return();a.S&&vY(a.app.Gd(),!0,!1);b=null;if(!a.C){f.Ma(2);break}g.za(f,3);return g.z(f,m_a(a.C),5);case 5:g.Ba(f,2);break;case 3:b=c=g.Ca(f);case 2:if(!a.j)return f.return();g.pY.ll("vqsp",function(){wY(a.app,a.j)});
g.pY.ll("vqpv",function(){a.app.playVideo()});
b&&(a.j?t_a(a.j,b.message):null==(d=a.B)||d.ya("gapsp",{}));e=a.D;tY(a);e.resolve();return f.return(Promise.resolve())}})};
tY=function(a){if(a.B){if(a.G){var b=a.B;a.app.Za.removeEventListener(g.pK("vqueued"),a.K);b.removeCueRange(a.G)}a.B=null;a.G=null}a.C&&(6!==a.C.status.status&&(b=a.C,Infinity!==b.status.status&&1!==b.G&&b.Rg("Canceled")),a.C=null);a.D=null;a.j&&a.j!==g.dU(a.app,1)&&a.j!==a.app.Gd()&&a.j.dispose();a.j=null;a.S=!1};
u_a=function(a){var b;return(null==(b=a.C)?void 0:b.currentVideoDuration)||-1};
v_a=function(a,b,c){if(a.Yv())return"qine";if(null==a.j||a.j.isDisposed()||null==a.j.getVideoData())return"qpd";if(b.videoId!==a.j.Se())return"vinm";if(0>=u_a(a))return"ivd";if(1!==c)return"upt";var d;null==(d=a.C)?a=void 0:5!==d.getStatus().status?a="niss":null!=e_a(d.policy,d.j,d.B,d.Hm)?a="pge":(c=p_a(d),b=c.fR,a=g.JJ(d.qe.W().experiments,"html5_shorts_gapless_next_buffer_in_seconds"),d=d.K+a,c=xL(c.CZ.Jf(),d),b=xL(b.Jf(),d),a=!(0<a)||c&&b?null:"neb");return null!=a?a:null};
w_a=function(){var a=hoa();return!(!a||"visible"===a)};
y_a=function(a){var b=x_a();b&&document.addEventListener(b,a,!1)};
z_a=function(a){var b=x_a();b&&document.removeEventListener(b,a,!1)};
x_a=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[goa+"VisibilityState"])return"";a=goa+"visibilitychange"}return a};
A_a=function(){g.lG.call(this);var a=this;this.fullscreen=0;this.pictureInPicture=this.j=this.B=this.inline=!1;this.C=function(){a.Cg()};
y_a(this.C);this.D=this.getVisibilityState(this.Nh(),this.isFullscreen(),this.yg(),this.isInline(),this.Jz(),this.Hz())};
dTa=function(a){return!(a.yg()||a.isInline()||a.isBackground()||a.Jz()||a.Hz())};
xY=function(a,b,c,d,e){e=void 0===e?[]:e;g.J.call(this);this.Z=a;this.Kc=b;this.C=c;this.segments=e;this.B=void 0;this.j=new Map;e.length&&(this.B=e[0])};
B_a=function(a,b,c,d){if(a.B&&!(b>c)){b=new xY(a.Z,b,c,a.B,d);d=g.u(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=c.videoData.clientPlaybackNonce;e&&e!==a.B.videoData.clientPlaybackNonce&&a.j.set(e,[c])}a.B.j.set(b.Ri(),b)}};
yY=function(a,b,c,d,e,f,h){g.J.call(this);this.Kc=a;this.B=b;this.C=c;this.type=d;this.D=e;this.videoData=f;this.KO=h;this.j=new Map;RQa(f)};
C_a=function(a){this.end=this.start=a};
g.AY=function(a,b,c){g.J.call(this);var d=this;this.api=a;this.Z=b;this.xa=c;this.rb="";this.Oa=new Map;this.fb=new Map;this.Va=new Map;this.D=new Map;this.B=[];this.ea=[];this.G=new Map;this.Yc=new Map;this.qa=new Map;this.Ad=NaN;this.vc=this.Cb=null;this.Jc=new g.au(function(){D_a(d,d.Ad)});
this.events=new g.ZK(this);this.wc=g.JJ(this.Z.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.ma=new g.au(function(){d.Ja=!0;var e=d.xa,f=d.wc;e.ya("sdai",{aftimeout:f});e.Ae(new WK("ad.fetchtimeout",{timeout:f}));E_a(d);d.pD(!1)},this.wc);
this.Ja=!1;this.Ca=new Map;this.Mb=[];this.Fa=null;this.We=new Set;this.Pa=[];this.qd=[];this.Vd=[];this.Kd=[];this.j=void 0;this.xb=0;this.kb=!0;this.S=!1;this.Ya=[];this.Ud=new Set;this.Me=new Set;this.Le=new Set;this.C=0;this.va=null;this.Ub=new Set;this.Bd=0;this.kq=this.Td=!1;this.K="";this.Nd={qeb:function(){return d.D},
xeb:function(){return d.B}};
this.xa.getPlayerType();F_a(this.xa,this);this.eb=this.Z.wd();g.L(this,this.Jc);g.L(this,this.events);g.L(this,this.ma);zY(this)||(this.events.V(this.api,g.pK("serverstitchedcuerange"),this.onCueRangeEnter),this.events.V(this.api,g.qK("serverstitchedcuerange"),this.onCueRangeExit))};
J_a=function(a,b,c,d,e,f,h,l){var m=G_a(a,f,f+e);a.Ja&&a.xa.ya("sdai",{adaftto:1});a.kq&&a.xa.ya("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.xa;h=void 0===h?f+e:h;f===h&&!e&&a.Z.N("html5_allow_zero_duration_ads_on_timeline")&&a.xa.ya("sdai",{attl0d:1});f>h&&BY(a,{reason:"enterTime_greater_than_return",Kc:f,Yd:h});var p=1E3*n.me();f<p&&BY(a,{reason:"enterTime_less_than_minSeekableTime",Kc:f,Lfb:p});n=1E3*n.getDuration();h>n&&BY(a,{reason:"parent_return_greater_than_content_duration",Yd:h,Jfb:n});
n=null;p=g.Sb(a.ea,{Yd:f},function(q,r){return q.Yd-r.Yd});
0<=p&&(n=a.ea[p],n.Yd>f&&H_a(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p<a.Pa.length;p++){if(a.Pa[p].identifier===m.identifier){a.Pa.splice(p,1);break}}else if(m)return a.xa.ya("sdai",{rejectAttl:1}),l&&!Nr(a.Kd,function(q){return q===l})&&(a.xa.ya("sdai",{rejectAdBreakAttl:1}),a.Kd.push(l)),CY(a),"";
m="ss_childplayback_"+I_a++;b.cpn||(b.cpn=g.aF(16));p=b.cpn;b=new g.hT(a.Z,b);b.fd=m;c={fd:m,playerType:d,durationMs:e,Kc:f,Yd:h,cpn:p,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.Xb(a.ea,c,function(q,r){return q.Kc===r.Kc?q.durationMs-r.durationMs:q.Kc-r.Kc});
a.G.set(p,c);a.Yc.set(m,c);a.xa.ya("sdai",{attlDone:h-f,acpn:p});l?c.Rm=l:n?c.Rm=n.Rm:c.Rm=c.cpn;if(f=c.Rm)(d=a.qa.get(f))?(d.push(c),g.Ub(d,function(q,r){return q.Kc-r.Kc})):a.qa.set(f,[c]);
a.ma.isActive()&&(a.Ja=!1,a.ma.stop(),E_a(a),a.pD(!0));return m};
DY=function(a,b){return{ssvc:a,cpn:(null==b?void 0:b.cpn)||"",vid:(null==b?void 0:b.videoData.videoId)||""}};
K_a=function(a,b,c){return new g.oK(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
L_a=function(a){return{cpn:a.xa.getVideoData().clientPlaybackNonce,durationMs:0,Kc:0,playerType:1,Yd:0,videoData:a.xa.getVideoData(),errorCount:0}};
FY=function(a,b,c){var d=a.S,e=L_a(a),f=a.K;a.K="";var h=b.Hh-c.Hh;.5<Math.abs(h)&&a.xa.ya("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});if(b.isAd&&c.isAd){if(b.adCpn&&c.adCpn){var l=a.G.get(b.adCpn);var m=a.G.get(c.adCpn)}m&&l&&(a.api.ra("serverstitchedvideochange",l.fd,l.As),a.xa.ya("sdai",DY("a2a",l)),a.C++,EY(a.xa,m,l,c.Hh,b.Hh,d,!!f))}else if(!b.isAd&&c.isAd){a.api.ra("serverstitchedvideochange");a.xa.ya("sdai",DY("a2c"));a.C=0;if(h=c.Xe)a.xb=h.end;var n;c.adCpn&&
(n=a.G.get(c.adCpn));n&&EY(a.xa,n,e,c.Hh,b.Hh,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.G.get(b.adCpn));p&&(a.xb=0,a.api.ra("serverstitchedvideochange",p.fd,p.As),a.xa.ya("sdai",DY("c2a",p)),a.C=1,EY(a.xa,e,p,c.Hh,b.Hh,d,!!f))}};
M_a=function(a,b){return a.kq?!1:zY(a)?!!a.va:!!GY(a,1E3*b)};
N_a=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.Sb(a.ea,{Kc:c},function(e,f){return e.Kc-f.Kc});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.ea[d],a.Yd>=c)?{To:a,oA:b}:{To:void 0,oA:b}};
GY=function(a,b){var c="";zY(a)?(c=b/1E3-a.Eq(),c=a.xa.sz(c)):(b=O_a(a,b))&&(c=b.getId());return c?a.G.get(c):void 0};
O_a=function(a,b){a=g.u(a.D.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
D_a=function(a,b){var c=a.vc||a.api.Gd().getPlayerState();HY(a,!0);a.xa.seekTo(b);a=a.api.Gd();b=a.getPlayerState();g.WL(c)&&!g.WL(b)?a.playVideo():c.isPaused()&&!b.isPaused()&&a.pauseVideo()};
HY=function(a,b){a.Ad=NaN;a.Jc.stop();a.Cb&&b&&P_a(a.Cb);a.vc=null;a.Cb=null};
Q_a=function(a){var b=void 0===b?-1:b;var c=void 0===c?Infinity:c;for(var d=[],e=g.u(a.ea),f=e.next();!f.done;f=e.next())f=f.value,(f.Kc<b||f.Yd>c)&&d.push(f);a.ea=d;d=g.u(a.D.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.xa.removeCueRange(e),a.D.delete(e.getId()),a.xa.ya("sdai",{rmAdCR:1}));d=N_a(a,b/1E3);b=d.To;d=d.oA;if(b&&(d=1E3*d-b.Kc,e=b.Kc+d,b.durationMs=d,b.Yd=e,d=a.D.get(b.cpn))){e=g.u(a.B);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start=
b.Kc+b.durationMs:f.end===d.start&&(f.end=b.Kc);d.start=b.Kc;d.end=b.Kc+b.durationMs}if(b=N_a(a,c/1E3).To){var h;d="playback_timelinePlaybackId_"+b.fd+"_video_id_"+(null==(h=b.videoData)?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.Kc+"_parentReturnTimeMs_"+b.Yd;a.TD("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
R_a=function(a){a.rb="";a.Oa.clear();a.fb.clear();a.Va.clear();a.D.clear();a.B=[];a.ea=[];a.G.clear();a.Yc.clear();a.qa.clear();a.Ca.clear();a.Mb=[];a.Fa=null;a.We.clear();a.Pa=[];a.qd=[];a.Vd=[];a.Kd=[];a.Ya=[];a.Ud.clear();a.Me.clear();a.Le.clear();a.Ub.clear();a.Ja=!1;a.j=void 0;a.xb=0;a.kb=!0;a.S=!1;a.C=0;a.va=null;a.Bd=0;a.Td=!1;a.kq=!1;a.K="";a.ma.isActive()&&CY(a)};
T_a=function(a,b,c,d,e,f){if(!a.kq)if(g.S_a(a,c))a.eb&&a.xa.ya("sdai",{gdu:"undec",seg:c,itag:e});else return IY(a,b,c,d,f)};
IY=function(a,b,c,d,e){var f=a.Ca.get(c);if(!f){b+=a.Eq();b=N_a(a,b,1);if(b.To)return b.To;b=JY(a,c-1,null!=d?d:2);if(e)return a.xa.ya("sdai",{misscue:e,sq:c,type:d,prevsstate:null==b?void 0:b.yy,prevrecord:a.Ca.has(c-1)}),a.Ca.get(c-1);if(2===(null==b?void 0:b.yy))return a.Ca.get(c-1)}return f};
U_a=function(a){if(a.Ya.length)for(var b=g.u(a.Ya),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);c=g.u(a.D.values());for(b=c.next();!b.done;b=c.next())a.xa.removeCueRange(b.value);c=g.u(a.B);for(b=c.next();!b.done;b=c.next())a.xa.removeCueRange(b.value);a.D.clear();a.B=[];a.Oa.clear();a.fb.clear();a.Va.clear();a.j||(a.kb=!0)};
JY=function(a,b,c,d){if(1===c){if(a.Z.N("html5_reset_daistate_on_audio_codec_change")&&d&&d!==a.rb&&(""!==a.rb&&(a.xa.ya("sdai",{rstadaist:1,old:a.rb,"new":d}),a.Oa.clear()),a.rb=d),a.Oa.has(b))return a.Oa.get(b)}else{if(2===c&&a.fb.has(b))return a.fb.get(b);if(3===c&&a.Va.has(b))return a.Va.get(b)}};
W_a=function(a,b,c,d){if(d)for(d=0;d<a.B.length;){var e=a.B[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;V_a(a,c,f)}else if(e.start>=b&&e.start<c&&e.end>c)e.start=c;else if(e.end>b&&e.end<=c&&e.start<b)e.end=b;else if(e.start>=b&&e.end<=c){a.xa.removeCueRange(e);if(a.Ya.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else V_a(a,b,c)};
V_a=function(a,b,c){b=K_a(b,c);c=!0;g.Xb(a.B,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.B.length;){if(0<d){var e=a.B[d],f=a.B[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.xa.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.xa.addCueRange(b),b=a.xa.OC("serverstitchedcuerange",36E5),b=g.u(b),c=b.next();!c.done;c=b.next())a.D.delete(c.value.getId())};
KY=function(a,b,c){if(void 0===c||!c){c=g.u(a.Mb);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(b>=d.start&&b<=d.end)return;if(b===d.end+1){d.end+=1;return}}a.Mb.push(new C_a(b))}};
g.S_a=function(a,b){a=g.u(a.Mb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
H_a=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",Efb:b,Kc:c,Yd:d,jeb:e.fd,keb:(null==(f=e.videoData)?void 0:f.videoId)||"",geb:e.durationMs,heb:e.Kc,ieb:e.Yd};BY(a,b)};
BY=function(a,b){a=a.xa;a.ya("timelineerror",b);a.Ae(new WK("dai.timelineerror",b))};
X_a=function(a,b){var c=[];a=a.qa.get(b);if(!a)return[];a=g.u(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
Y_a=function(a,b,c){var d=0;a=a.qa.get(c);if(!a)return-1;a=g.u(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
Z_a=function(a,b){var c=[];a=a.qa.get(b);if(!a)return[];a=g.u(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c};
$_a=function(a,b){var c=0;a=a.qa.get(b);if(!a)return 0;a=g.u(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Yd!==b.Kc&&c++;return c};
a0a=function(a,b,c){var d=!1;if(c&&(c=a.qa.get(c))){c=g.u(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Yd!==e.Kc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Me.has(e)&&(a.xa.ya("sdai",{decoratedAd:e}),a.Me.add(e)))}};
E_a=function(a){a.eb&&a.xa.ya("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Bd)+"_isTimeout_"+a.Ja})};
G_a=function(a,b,c){if(a.Pa.length)for(var d=g.u(a.Pa),e=d.next(),f={};!e.done;f={vv:f.vv},e=d.next()){f.vv=e.value;e=1E3*f.vv.startSecs;var h=1E3*f.vv.di+e;if(b>e&&b<h||c>e&&c<h)return Nr(a.Vd,function(l){return function(m){return m.identifier===l.vv.identifier}}(f))||(a.xa.ya("sdai",{adskip:b}),a.Vd.push(f.vv)),f.vv}};
CY=function(a){a.Ja=!1;a.ma.isActive()&&E_a(a);a.ma.stop();a.pD(!1)};
zY=function(a){return a.Z.experiments.ob("html5_ssdai_use_new_ad_report")};
d0a=function(a,b,c){g.J.call(this);var d=this;this.api=a;this.timeline=b;this.xa=c;this.j=new Map;this.Wo=new Map;this.C=new Map;this.events=new g.ZK(this);this.D=0;this.Ni="";this.K=[];this.Bm=new Set;this.G=new g.au(function(){d.api.playVideo();b0a(d,4)},3E4);
this.B="";this.S=new Set;this.ma=!0;this.Nd={zeb:function(){return d.Wo}};
this.xa.getPlayerType();this.xa.WJ(this);c0a(this);this.events.V(this.api,g.pK("ssap"),this.onCueRangeEnter);g.L(this,this.G)};
e0a=function(a,b,c,d){for(var e=a.xa.yH(),f=g.u(d),h=f.next();!h.done;h=f.next()){var l=h.value;l.C||(h=l.videoData.clientPlaybackNonce,l=l.getVideoData(),h&&l&&e.AM(h,l))}B_a(a.timeline,b,c,d)};
LY=function(a,b){a=a.timeline.j.get(b);return(null==a?0:a.length)?a[0].Ri():0};
f0a=function(a,b){if(!a.timeline.B)return{clipId:"",wI:0};if(b=MY(a,b))return{clipId:b.videoData.clientPlaybackNonce||"",wI:b.Ri()};a.api.ya("ssap",{mci:1});return{clipId:"",wI:0}};
NY=function(a){var b=a.timeline.B;if(!b)return 0;a=0;if(0===b.j.size)return(b.jz()-b.Ri())/1E3;b=b.j.values();b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a+=(c.jz()-c.Ri())/1E3;return a};
g0a=function(a,b){return(a=MY(a,1E3*b))?a.Ri():0};
h0a=function(a,b){return(a=MY(a,1E3*b))?(a.jz()-a.Ri())/1E3:0};
i0a=function(a,b){if(a=a.timeline.B){a=a.j;var c=Array.from(a.keys());g.Ub(c);b=g.Sb(c,b);return a.get(c[0>b?-1*(b+2):b])}};
MY=function(a,b){if(a=i0a(a,b)){a=g.u(a.segments);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Ri()<=b&&c.jz()>b)return c}};
b0a=function(a,b){var c=a.K.shift();c&&(a.Bm.has(c)?j0a(a,c):3===b&&(a.G.stop(),a.api.playVideo()),a.C.set(a.Ni,b),k0a(a,c))};
j0a=function(a,b){b=a.timeline.j.get(b);if(null==b?0:b.length)a.api.pauseVideo(),a.G.start(b[0].KO)};
k0a=function(a,b){if(a.Ni!==b){var c=a.xa.getVideoData(),d=c.clientPlaybackNonce,e=a.Ni;a.Ni=b;var f=!1;""===e&&(e=d,f=!0);b=a.timeline.j.get(a.Ni);if(null==b?0:b.length){var h=b[0];b=h.getType();c=e===d?c:a.j.get(e);var l=a.C.get(e);l?a.C.delete(e):l=f?1:2;if(!a.Bm.has(a.Ni)){var m=a.xa.yH(),n=a.Ni;m.yh!==n&&(m.yh=n)}n=a.xa.getCurrentTime();m=Math.max(0,n-LY(a,e)/1E3);n=Math.max(0,n-LY(a,a.Ni)/1E3);var p=3===l;h=h.getVideoData();var q=a.xa.yH(),r=e,t=a.Ni,v=q.Lc(r),x=q.Lc(t),B,G=r===(null==(B=v.getVideoData())?
void 0:B.clientPlaybackNonce),F;B=t===(null==(F=x.getVideoData())?void 0:F.clientPlaybackNonce);var I;F=G?(null==(I=v.getVideoData())?void 0:I.videoId)||"":"nvd";var P;I=B?(null==(P=x.getVideoData())?void 0:P.videoId)||"":"nvd";if(G){var R;null!=(R=v.qoe)&&OY(R,4,p?4:0,t,I,m)}if(B){PY(x);var Z;null!=(Z=x.qoe)&&OY(Z,4,p?5:1,r,F,n);l0a(x)}q.j.has(r)&&(m0a(q.j.get(r)),q.j.delete(r));aUa(e,a.Ni,d,n,h);a.api.ra("videodatachange","newdata",h,b,f?void 0:c,l);a.Bm.delete(e);a.B="";(null==h?0:h.startSeconds)&&
1===b&&a.ma&&(d=h.startSeconds,e=a.xa.getVideoData().clientPlaybackNonce,e=a.timeline.j.get(e),null==e?0:e.length)&&(a.xa.seekTo(d+e[0].Ri()/1E3,{nR:!0}),a.ma=!1);2===b?a.D++:a.D=0}}};
c0a=function(a){a.xa.VE(Array.from(a.Wo.values()));a.Wo.clear()};
o0a=function(a,b,c){g.J.call(this);var d=this;this.api=a;this.Z=b;this.j=c;this.K=new Map;this.B=[];this.C=this.S=null;this.ea=NaN;this.G=this.D=null;this.ma=new g.au(function(){n0a(d,d.ea)});
this.qa=[];this.va=new g.au(function(){var e=d.qa.pop();if(e){var f=e.fd,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.qa.length&&g.bu(d.va,4500))}});
this.events=new g.ZK(this);c.getPlayerType();g.L(this,this.ma);g.L(this,this.va);g.L(this,this.events);this.events.V(this.api,g.pK("childplayback"),this.onCueRangeEnter);this.events.V(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.V(this.api,"presentingplayerstatechange",this.Xi)};
s0a=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=void 0===f?e+d:f;if(e>f)return QY(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.me();if(e<n)return QY(a,"enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,h,l),"";n=1E3*m.getDuration();if(f>n)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
m.Xc(),QY(a,m,h,l),"";n=null;for(var p=g.u(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Kc&&e<q.Yd)return QY(a,"overlappingEnter",h,l),"";if(f<=q.Yd&&f>q.Kc)return QY(a,"overlappingReturn",h,l),"";if(f===q.Kc)return QY(a,"outOfOrder",h,l),"";e===q.Yd&&(n=q)}h="cs_childplayback_"+p0a++;l={Xe:RY(d,!0),Hm:Infinity,target:null};var r={fd:h,playerVars:b,playerType:c,durationMs:d,Kc:e,Yd:f,Ps:l};a.B=a.B.concat(r).sort(function(x,B){return x.Kc-B.Kc});
n?q0a(a,n,{Xe:RY(n.durationMs,!0),Hm:n.Ps.Hm,target:r}):(b={Xe:RY(e,!1),Hm:e,target:r},a.K.set(b.Xe,b),m.addCueRange(b.Xe));b=!0;if(a.j===a.api.Gd()&&(m=1E3*m.getCurrentTime(),m>=r.Kc&&m<r.Yd)){var t=a.api.Gd().getPlayerState(),v=m-r.Kc;Kf(function(){r0a(a,r,v/1E3,t)});
b=!1}b&&(a.qa.unshift(r),g.bu(a.va,0));return h};
RY=function(a,b){return new g.oK(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
t0a=function(a,b,c,d){a.C=d;a.api.cH(a.j,c,b)};
u0a=function(a,b,c,d){a.C=d;d=b.fd;var e=b.playerVars,f=b.playerType;a.S=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
q0a=function(a,b,c){var d=b.Ps;b.Ps=c;SY(a,b)&&(c=a.api.Gd(),d.Xe===a.C&&TY(a),c.removeCueRange(d.Xe),c.addCueRange(b.Ps.Xe))};
TY=function(a){a.S=null;a.C=null;a.api.Yv()||a.api.clearQueue()};
v0a=function(a,b){SY(a,b)||QY(a,"childPlaybackIsNotPresenting");return b.Yd===b.Kc+b.durationMs?(a=a.api.Gd(),b.Kc+1E3*a.getCurrentTime()):b.Yd};
w0a=function(a,b){var c=0;a=g.u(a.B);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Kc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{To:d,oA:b-e};c=f-d.Yd/1E3}return{To:null,oA:b-c}};
n0a=function(a,b){var c=a.G||a.api.Gd().getPlayerState();UY(a,!0);b=isFinite(b)?b:a.j.Cq();var d=w0a(a,b);b=d.To;d=d.oA;var e=b&&!SY(a,b)||!b&&a.j!==a.api.Gd(),f=1E3*d;f=a.C&&a.C.start<=f&&f<=a.C.end;!e&&f||TY(a);b?r0a(a,b,d,c):x0a(a,d,c)};
x0a=function(a,b,c){var d=a.j,e=a.api.Gd();d!==e&&a.api.Lw();d.seekTo(b,{Id:"application_timelinemanager"});y0a(a,c)};
r0a=function(a,b,c,d){var e=SY(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.hT(a.Z,b.playerVars);f.fd=b.fd;a.api.Nt(f,b.playerType)}f=a.api.Gd();e||f.addCueRange(b.Ps.Xe);f.seekTo(c,{Id:"application_timelinemanager"});y0a(a,d)};
y0a=function(a,b){a=a.api.Gd();var c=a.getPlayerState();g.WL(b)&&!g.WL(c)?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()};
UY=function(a,b){a.ea=NaN;a.ma.stop();a.D&&b&&P_a(a.D);a.G=null;a.D=null};
SY=function(a,b){a=a.api.Gd();return!!a&&a.getVideoData().fd===b.fd};
z0a=function(a){var b=a.B.find(function(e){return SY(a,e)});
if(b){var c=a.api.Gd();TY(a);var d=new g.QL(8);b=v0a(a,b)/1E3;x0a(a,b,d);c.ya("forceParentTransition",{childPlayback:1});a.j.ya("forceParentTransition",{parentPlayback:1})}};
B0a=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.u(a.K),h=f.next();!h.done;h=f.next()){var l=g.u(h.value);h=l.next().value;l=l.next().value;l.Hm>=d&&l.target&&l.target.Yd<=e&&(a.j.removeCueRange(h),a.K.delete(h))}d=b;e=c;f=[];h=g.u(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Kc>=d&&l.Yd<=e){var m=a;m.S===l&&TY(m);SY(m,l)&&m.api.Lw()}else f.push(l);a.B=f;d=w0a(a,b/1E3);b=d.To;d=d.oA;b&&(d*=1E3,A0a(a,b,d,b.Yd===b.Kc+b.durationMs?b.Kc+d:b.Yd));(b=w0a(a,c/1E3).To)&&
QY(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.fd+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Kc+" parentReturnTimeMs="+b.Yd+"}.Child playbacks can only have duration updated not their start."))};
A0a=function(a,b,c,d){b.durationMs=c;b.Yd=d;d={Xe:RY(c,!0),Hm:c,target:null};q0a(a,b,d);SY(a,b)&&1E3*a.api.Gd().getCurrentTime()>c&&(b=v0a(a,b)/1E3,c=a.api.Gd().getPlayerState(),x0a(a,b,c))};
QY=function(a,b,c,d){a.j.ya("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
D0a=function(a){a&&"web"!==a&&C0a.includes(a)};
XY=function(a,b){g.J.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.au(function(){VY(c);WY(c)});
g.L(this,this.j)};
E0a=function(a){VY(a);return a.data.map(function(b){return b.value})};
VY=function(a){var b=(0,g.OD)();a.data.forEach(function(c){c.expire<b&&YY(a,c,!0)});
a.data=g.ts(a.data,function(c){return!(c.expire<b)})};
YY=function(a,b,c){c&&a.B&&a.B(b.value)};
WY=function(a){a.j.stop();var b=Infinity;for(var c=g.u(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&(b=Math.max(b-Date.now(),100),a.j.start(b))};
ZY=function(){g.J.call(this);this.j=new XY(5,null);g.L(this,this.j);this.B=new XY(15,null);g.L(this,this.B)};
F0a=function(a,b){return b?!!a.j.get(b):!1};
$Y=function(){g.Iu.call(this);this.G=new Map};
G0a=function(a){g.J.call(this);var b=this;this.j=null;for(var c=[],d=0;100>=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.B=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.B.observe(a)};
J0a=function(a){g.T.call(this,{I:"div",Na:["html5-video-player"],Y:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},X:[{I:"div",T:g.aZ.VIDEO_CONTAINER,Y:{"data-layer":"0"}}]});var b=this;this.app=a;this.Qy=this.Ha(g.aZ.VIDEO_CONTAINER);this.FA=new g.vr(0,0,0,0);this.yc=null;this.vJ=new g.vr(0,0,0,0);this.JN=this.UO=this.TO=NaN;this.RH=this.sJ=this.jQ=this.RU=!1;this.vM=NaN;this.uO=!1;this.WD=null;this.tP=function(){b.element.focus()};
this.bJ=function(){b.app.Za.ra("playerUnderlayVisibilityChange","visible");b.yc.classList.remove(g.aZ.VIDEO_CONTAINER_TRANSITIONING);b.yc.removeEventListener(DSa,b.bJ);b.yc.removeEventListener("transitioncancel",b.bJ)};
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.W();e.transparentBackground&&this.Bs("ytp-transparent");"0"===e.controlsType&&this.Bs("ytp-hide-controls");g.iu(this.element,"ytp-exp-bottom-control-flexbox");e.N("web_imp_caption_window")&&g.iu(this.element,"ytp-modern-caption");e.N("enable_new_paid_product_placement")&&!g.xS(e)&&g.iu(this.element,"ytp-exp-ppp-update");doa(this.element,"version",H0a(a));this.EZ=!1;this.RC=new g.we(NaN,NaN);I0a(this);this.V(a.Za,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
I0a=function(a){function b(){a.yc&&bZ(a);cZ(a)!==a.uO&&a.resize()}
function c(h,l){a.ut(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.vJ=new g.vr(0,0,0,0);a.FA=new g.vr(0,0,0,0)}
var f=a.app.Za;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.ub(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
L0a=function(a){var b=g.dU(a.app);if(b=b?b.getVideoData():null){if(g.HT(b)||g.IT(b)||g.KT(b))return 16/9;if(DQa(b)&&b.C.j)return a=b.C.videoInfos[0].video,K0a(a.width,a.height)}return(a=a.yc)?K0a(a.videoWidth,a.videoHeight):16/9};
M0a=function(a,b,c,d){var e=c,f=K0a(b.width,b.height);a.RU?e=c<f?Infinity:0:isNaN(a.JN)?isNaN(a.UO)||(e=a.UO):e=a.JN;isFinite(e)||(e=Math.max(c,f));a=e>f?{width:b.width,height:b.width/e,aspectRatio:e}:e<f?{width:b.height*e,height:b.height,aspectRatio:e}:{width:b.width,height:b.height,aspectRatio:f};d||isNaN(c)||(c>e?a.width=a.height*c:c<e&&(a.height=a.width/c),a.aspectRatio=c);return a};
K0a=function(a,b){return 1>Math.abs(N0a*b-a)||1>Math.abs(N0a/a-b)?N0a:a/b};
cZ=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.dU(a.app);if(!b||b.mp())return!1;a=a.app.Za.Tb();b=!g.aH(a,2)||b&&b.getVideoData().ea;var c=g.aH(a,1024);return a&&b&&!c&&!a.isCued()};
bZ=function(a){var b="3"===a.app.W().controlsType&&!a.RH&&cZ(a)&&!a.app.jA||!1;a.yc.controls=b;a.yc.tabIndex=b?0:-1;b?a.yc.removeEventListener("focus",a.tP):a.yc.addEventListener("focus",a.tP)};
O0a=function(a){var b=a.Vj(),c=1,d=!1,e=M0a(a,b,a.getVideoAspectRatio()),f=a.app.W(),h=f.N("enable_desktop_player_underlay"),l=Kna(),m=g.JJ(f.experiments,"player_underlay_min_player_width");m=h&&a.jQ&&a.getPlayerSize().width>m;if(cZ(a)){var n=L0a(a);var p=isNaN(n)||g.dE||dZ&&g.ID||m;cE&&!g.Mc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.N("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.vr(p,0,b.width,b.height)):p=new g.vr(0,
0,b.width,b.height):(c=e.aspectRatio/n,p=new g.vr((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.ID&&(n=p.width-b.height*n,0<n&&(p.width+=n,p.height+=n)));g.mu(a.element,"ytp-fit-cover-video",1>Math.max(p.width-e.width,p.height-e.height));if(l||a.EZ)a.yc.style.display="";a.uO=!0}else{p=-b.height;cE?p*=window.devicePixelRatio:g.yS&&(p-=window.screen.height);p=new g.vr(0,p,b.width,b.height);if(l||a.EZ)a.yc.style.display="none";a.uO=!1}wr(a.vJ,p)||(a.vJ=p,g.kS(f)?(a.yc.style.setProperty("width",
p.width+"px","important"),a.yc.style.setProperty("height",p.height+"px","important")):g.Ir(a.yc,p.getSize()),d=new g.ue(p.left,p.top),g.Er(a.yc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.vr((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);wr(a.FA,b)||(a.FA=b,d=!0);g.yr(a.yc,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.sJ&&(m&&(a.yc.addEventListener(DSa,a.bJ),a.yc.addEventListener("transitioncancel",a.bJ),a.yc.classList.add(g.aZ.VIDEO_CONTAINER_TRANSITIONING)),a.sJ=m,a.app.Za.ra("playerUnderlayVisibilityChange",
a.sJ?"transitioning":"hidden"));return d};
P0a=function(){this.csn=g.QF();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set};
Q0a=function(a){if(a.csn!==g.QF())if("UNDEFINED_CSN"===a.csn)a.csn=g.QF();else{var b=g.QF(),c=g.PF();if(b&&c){a.csn=b;for(var d=g.u(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.SB("combine_ve_grafts")?BP(zP(),e,c):g.WB(g.$F)(void 0,b,c,e))}if(b)for(a=g.u(a.j),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.dG(b,c)}};
R0a=function(a,b){this.Od=a;this.policy=b;this.playbackRate=1};
S0a=function(a,b){var c=Math.min(2.5,ZR(a.Od));a=eZ(a);return b-c*a};
U0a=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.El&&(d=Math.abs(d));d/=a.playbackRate;var f=1/$R(a.Od);c=Math.max(.9*(d-3),ZR(a.Od)+2048*f)/f*.8/(b+c);c=Math.min(c,d);0<a.policy.Ak&&e&&(c=Math.max(c,a.policy.Ak));return T0a(a,c,b)};
T0a=function(a,b,c){return Math.ceil(Math.max(Math.max(a.policy.rj,a.policy.Zo*c),Math.min(Math.min(a.policy.Oa,31*c),Math.ceil(b*c))))||a.policy.rj};
eZ=function(a){return $R(a.Od,!a.policy.Ji,a.policy.Po)};
fZ=function(a){return eZ(a)/a.playbackRate};
V0a=function(a,b,c){var d=a.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],e=a.policy.playbackStartPolicy.startMinReadaheadPolicy||[];a=Infinity;b=g.u(b&&0<d.length?d:e);for(d=b.next();!d.done;d=b.next())d=d.value,e=d.minReadaheadMs||0,c<(d.minBandwidthBytesPerSec||0)||a>e&&(a=e);return Infinity>a?a/1E3:a};
gZ=function(a,b,c,d,e){this.Da=a;this.manifest=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.j=0;this.G=!1;this.B=this.manifest.isManifestless&&!this.manifest.ze;this.D=null;this.C=0};
W0a=function(a,b,c){if(!a.policy.G){a=b.j.index;var d=b.B.Qa;a.tp(d)||c&&c.Qa===d?(b.G=!a.tp(d),b.qa=!a.tp(d)):(b.G=!0,b.qa=!0)}};
Y0a=function(a,b,c,d,e){if(!b.j.xg()){if(!(d=0===c||!!b.C.length&&b.C[0]instanceof hZ))a:{if(b.C.length&&(d=b.C[0],d instanceof iZ&&d.qh&&d.Ij)){d=!0;break a}d=!1}d||a.policy.j||jZ(b);return c}var f=kZ(b,c);if(!isNaN(f))return f;if(a.Da.qO(1E3*c))return c;e.KD||(b.Ik(),a.policy.va&&a.Da.dF(!0));return d&&(a=yL(d.Jf(),c),!isNaN(a))?(lZ(b,a+X0a),c):lZ(b,c)};
b1a=function(a,b,c,d){if(a.Wg()&&a.j){var e=Z0a(a,b,c);if(-1!==e){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.Qf(function(){a.Da.ya("seekreason",{reason:"behindMinSq",tgt:e});$0a(a,e)});
return}}c?a.videoTrack.qa=!1:a.audioTrack.qa=!1;var f=a.policy.wx||!a.B;0<=kZ(a.videoTrack,a.j)&&0<=kZ(a.audioTrack,a.j)&&f?((a.videoTrack.G||a.audioTrack.G)&&a.Da.ya("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.G=!1,a.audioTrack.G=!1):d&&g.Qf(function(){if(a.B||!a.policy.vc)a1a(a);else{var h=b.startTime,l=b.duration,m=c?a.videoTrack.G:a.audioTrack.G,n=-1!==a.videoTrack.K&&-1!==a.audioTrack.K,p=a.j>=h&&a.j<h+l+.1,q=!a.videoTrack.qa&&!a.audioTrack.qa,r=a.policy.xx&&kZ(a.videoTrack,
h)&&kZ(a.audioTrack,h);m&&n&&q&&(p||r?((c?a.videoTrack:a.audioTrack).G=!1,a.videoTrack.G||a.audioTrack.G||(a.Da.ya("iterativeSeeking",{status:"done",target:h,originalTime:h+a.Da.Xc(),count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.Da.ya("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j,{})):(a.Da.ya("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.G=!1,a.audioTrack.G=
!1,a.Da.xa.seekTo(h+.1,{Rv:!0,Id:"chunkSelectorSynchronizeMedia",hq:!0})))}})};
Z0a=function(a,b,c){if(!a.Wg())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.Mh(a.j);return(c.tp(a.manifest.cf)||b.Qa===a.manifest.cf)&&d<a.manifest.cf?a.manifest.me():-1};
$0a=function(a,b){a.B&&-1!==a.videoTrack.K&&-1!==a.audioTrack.K&&(a.B=!1,a.j=b,a.Da.xa.seekTo(b+.1,{Rv:!0,Id:"chunkSelectorSynchronize",hq:!0}))};
a1a=function(a){var b=-1!==a.videoTrack.K,c=-1!==a.audioTrack.K;if(!b||!c)if(b=!b&&mZ(a.videoTrack),c=!c&&mZ(a.audioTrack),b||c){c=b?a.videoTrack:a.audioTrack;b=b?a.audioTrack:a.videoTrack;c.K=mZ(c).info.Qa;if(a.policy.G){var d;b.K=(null==(d=mZ(b))?void 0:d.info.Qa)||b.K}if(-1!==b.K){var e=Math.max(b.j.index.getStartTime(b.K),c.j.index.getStartTime(c.K));tR(a.manifest)&&432E3<Math.abs(e-tR(a.manifest))&&ENa(a.manifest);a.C&&(e=a.C,a.C=0);g.Qf(function(){a.policy.G||$0a(a,e)});
a.Da.ya("initManifestlessSync",{st:e,ost:e+a.Da.Xc(),a:a.audioTrack.K,v:a.videoTrack.K});a.D&&(a.D.resolve(e+.1),a.D=null);a.policy.G&&$0a(a,e)}}};
c1a=function(a){this.j=a;this.qa=this.Pa=this.ma=this.Ja=this.C=this.G=this.D=this.K=this.ea=this.Oa=this.Ca=this.Fa=this.va=0;this.ticks={}};
nZ=function(a){a.va||(a.va=(0,g.OD)(),bM("mb_s",a.va,a.j))};
d1a=function(a){a.Fa||(a.Fa=(0,g.OD)(),bM("ovfs_rp",a.Fa,a.j))};
e1a=function(a){a.Ca||(a.Ca=(0,g.OD)(),bM("oafs_rp",a.Ca,a.j))};
f1a=function(a,b,c,d,e,f){g.lG.call(this);this.Da=a;this.manifest=b;this.policy=c;this.ma=d;this.Ja=e;this.va=this.j=null;this.C=this.G=NaN;this.K=0;this.ea=NaN;this.D=null;this.Ca=new Map;this.qa="";this.Fa=0;this.S=NaN;this.B=f?1:0};
oZ=function(a,b,c){b.startSecs+=isNaN(a.K)?0:a.K;a=a.manifest;a.qa.push(b);a.ra("cuepointsadded",c)};
g1a=function(a,b,c){if(0!==a.B&&c&&b.ib[0].kh()){var d=b.ib[0].Qa,e;d!==(null==(e=a.j)?void 0:e.Qa)||1===a.B||WQ(b)||"predictStart"===a.j.fh.event||a.ya("sdai",{undecevt:1,sq:d,evt:a.j.fh.event});d>a.C&&(a.C=NaN,a.G=NaN);if(a.j&&a.j.Qa===d){d=a.j;e=d.fh;var f=c.Vt(e);a.ya("sdai",{onqevt:e.event,sq:b.ib[0].Qa,gab:f});f?"predictStart"!==e.event?d.tD?pZ(a,4,"cue"):(a.C=b.ib[0].Qa,a.G=b.ib[0].D,a.ya("sdai",{joinad:a.B,sg:a.C,st:a.G.toFixed(3)}),a.ea=Date.now(),pZ(a,2,"join"),c.JH(d.fh)):(a.S=b.ib[0].Qa+
Math.max(Math.ceil(-e.j/5E3),1),a.ya("sdai",{onpred:b.ib[0].Qa,est:a.S}),a.ea=Date.now(),pZ(a,3,"predict"),c.JH(d.fh)):1===a.B&&pZ(a,5,"nogab")}else 1===a.B&&pZ(a,5,"noad")}};
h1a=function(a,b,c){return(0>c||c===a.C)&&!isNaN(a.G)?a.G:b};
i1a=function(a,b){if(a.j){var c=a.j.fh.di-(b.startTime+a.K-a.j.fh.startSecs);0>=c||(c=new lQ(a.j.fh.startSecs-(isNaN(a.K)?0:a.K),c,a.j.fh.context,a.j.fh.identifier,"stop",a.j.fh.j+1E3*b.duration),a.ya("cuepointdiscontinuity",{segNum:b.Qa}),oZ(a,c,b.Qa))}};
pZ=function(a,b,c){a.B!==b&&(a.ya("sdai",{setsst:b,old:a.B,r:c}),a.B=b)};
qZ=function(a,b,c,d){(void 0===d?0:d)?pZ(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.B&&pZ(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
rZ=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
sZ=function(a,b){this.j=a;this.reason=b};
j1a=function(a){g.J.call(this);this.policy=a;this.B=new Map;this.D=0;this.C=this.G=!1};
tZ=function(a,b,c){if(void 0===c?0:c)a.G=!0;++a.D;c=6E4*Math.pow(2,a.D);c=(0,g.OD)()+c;a.B.set(b.info.id,c)};
uZ=function(a){for(var b=g.u(a.B.entries()),c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;d<(0,g.OD)()&&a.B.delete(c)}return a.B};
k1a=function(a){return a.G&&0<uZ(a).size};
vZ=function(a,b){a.j!==b&&(a.j=b,a.C=!0)};
l1a=function(a,b,c,d,e,f){var h=this;f=void 0===f?[]:f;this.Da=a;this.Fa=b;this.policy=c;this.manifest=d;this.K=e;this.rb=f;this.logger=new g.eY("dash/abr");this.j=gT;this.C=this.S=null;this.ea=-1;this.Pa=!1;this.nextVideo=this.B=null;this.D=[];this.Ya=new Set;this.Oa={};this.kb=new SR(1);this.ma=0;this.eb=this.va=this.qa=!1;this.Ja=0;this.fb=!1;this.Ca=new Set;this.Va=!1;this.Nd={rZ:function(){wZ(h)}};
this.G=new j1a(this.policy)};
q1a=function(a,b,c){xZ(a,b);m1a(a,c);a.S=a.B;n1a(a);o1a(a);a.C=a.nextVideo;a.S=a.B;return p1a(a)};
s1a=function(a,b){if(r1a(a,b))return null;if("m"===b.reason&&b.isLocked())return xZ(a,b),a.ma=a.D.length-1,wZ(a),yZ(a),a.va=a.va||a.C!==a.nextVideo,a.C=a.nextVideo,new rZ(a.B,a.C,b.reason);"r"===b.reason&&(a.ea=-1);xZ(a,b);yZ(a);if("r"===b.reason&&a.nextVideo===a.C)return new rZ(a.B,a.nextVideo,b.reason);a.C&&a.nextVideo&&zZ(a,a.C.info)<zZ(a,a.nextVideo.info)&&(b=a.j.reason,a.qa=a.qa||"r"===b||"u"===b||"v"===b);return null};
t1a=function(a,b){if(b.info.video){if(a.C!==b)return a.C=b,p1a(a)}else a.eb=a.S!==b,a.S=b;return null};
AZ=function(a,b,c){tZ(a.G,b,void 0===c?!1:c);a.ea=-1;xZ(a,a.j)};
BZ=function(a,b){return new rZ(a.S,a.C,b||a.j.reason)};
p1a=function(a){a.Pa?a.Pa=!1:a.ea=(0,g.OD)();a.qa=!1;a.Va=!1;return new rZ(a.S,a.C,a.j.reason)};
u1a=function(a,b){var c={};b=g.u(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.j,f=c[e],h=f&&gL(f)&&f.video.j>a.policy.hj,l=e<=a.policy.hj?gL(d):fL(d);if(!f||h||l)c[e]=d}return c};
xZ=function(a,b){a.j=b;var c=a.K.videoInfos;if(!a.j.isLocked()){var d=(0,g.OD)();c=g.ts(c,function(q){if(q.Zb>this.policy.Zb)return!1;var r=this.manifest.j[q.id];return uZ(this.G).get(q.id)>d||4<r.resource.B||4<r.K?!1:!0},a);
k1a(a.G)&&(c=g.ts(c,function(q){return 854>=q.video.width&&480>=q.video.height}))}0<a.Ca.size&&(c=g.ts(c,function(q){return!a.Ca.has(+q.itag)}));
c.length||(c=a.K.videoInfos);var e=g.ts(c,b.D,b);if(a.j.isLocked()&&a.G.j){var f=g.Bb(c,function(q){return q.id===a.G.j});
f?e=[f]:vZ(a.G,"")}f="m"===b.reason||"s"===b.reason;a.policy.Xx&&dZ&&g.ID&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.B||q.B.powerEfficient)}));
if(0<e.length)if(EL()){var h=u1a(a,e);e=e.filter(function(q){return!!q&&!!q.video&&q.Db===h[q.video.j].Db})}else{var l,m,n=null==(l=e[0])?void 0:null==(m=l.video)?void 0:m.j;
if(n){b=e.filter(function(q){return!!q&&!!q.video&&q.video.j===n});
var p=u1a(a,b)[n].Db;e=e.filter(function(q){return!!q&&!!q.video&&q.Db===p})}}e.length||(e=[c[0]]);
e.sort(function(q,r){return zZ(a,q)-zZ(a,r)});
c={};for(b=1;b<e.length;c={sG:c.sG,iG:c.iG},b++)c.iG=e[b-1],c.sG=e[b],c.iG.video.width>c.sG.video.width?(g.Eb(e,b),b--):zZ(a,c.iG)*a.policy.K>zZ(a,c.sG)&&(g.Eb(e,b-1),b--);c=e[e.length-1];a.fb=!!a.C&&!!a.C.info&&a.C.info.Db!==c.Db;a.D=e;a.Ya.clear();b=!1;for(l=0;l<e.length;l++)b?a.Ya.add(e[l].itag):1080<=e[l].video.j&&(b=!0);pUa(a.policy,c,a.manifest.Fc)};
m1a=function(a,b){if(b)a.B=a.manifest.j[b];else{b=g.Bb(a.K.j,function(d){return!!d.Rc&&d.Rc.isDefault});
if(a.policy.Ko&&!b&&(b=g.Bb(a.K.j,function(d){return d.audio.j}),a.policy.Px&&b)){var c=g.Bb(a.K.j,function(d){return!d.audio.j});
a.Da.ya("drcwr",{d:b.itag,dd:b.approxDurationMs,nd:c?c.itag:"",ndd:(null==c?0:c.approxDurationMs)?c.approxDurationMs:""});c&&1E3<Math.abs(c.approxDurationMs-b.approxDurationMs)&&(b=c)}b=b||a.K.j[0];a.B=a.manifest.j[b.id]}wZ(a)};
v1a=function(a,b){for(var c=0;c+1<a.D.length&&"tiny"===a.D[c].video.quality;)c++;var d=fZ(a.Fa)/a.policy.K;return zZ(a,b.info)+zZ(a,a.D[c])>d};
wZ=function(a){if(!a.B||!a.policy.C&&!a.B.info.Rc){var b=a.K.j;a.B&&a.policy.Ko&&(b=b.filter(function(d){return d.audio.j===a.B.info.audio.j}),b.length||(b=a.K.j));
a.B=a.manifest.j[b[0].id];if(1<b.length){var c=!1;if(c=a.policy.Mb?!0:a.j.isLocked()?240>a.j.j:v1a(a,a.B))a.B=a.manifest.j[g.yb(b).id]}}};
yZ=function(a){if(!a.nextVideo||!a.policy.C)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.manifest.j[a.D[0].id]:a.manifest.j[g.yb(a.D).id];else{for(var b=Math.min(a.ma,a.D.length-1),c=fZ(a.Fa),d=zZ(a,a.B.info),e=c/a.policy.ma-d;0<b&&!(zZ(a,a.D[b])<=e);b--);for(var f=c/a.policy.K-d;b<a.D.length-1&&!(zZ(a,a.D[b+1])>=f);b++);a.nextVideo=a.manifest.j[a.D[b].id];a.ma!==b&&a.logger.info(function(){var h=a.j;return"Adapt to: "+IAa(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+
e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: ["+(h.B+"-"+h.j+", override: "+(h.C+", reason: "+h.reason+"]"))});
a.ma=b}};
n1a=function(a){var b=a.policy.ma,c=fZ(a.Fa),d=c/b-zZ(a,a.B.info);b=g.Cb(a.D,function(e){return zZ(this,e)<d},a);
0>b&&(b=0);a.ma=b;a.nextVideo=a.manifest.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+IAa(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
o1a=function(a){if(a.rb.length){var b=a.rb,c=function(d,e){if("f"===d.info.Db||b.includes(mL(d.info,a.manifest.Fc)))return d;for(var f={},h=0;h<e.length;f={jH:f.jH,iK:f.iK},h++){var l=a.manifest.j[e[h].id];if(b.includes(mL(l.info,a.manifest.Fc))){var m=d.info.Db,n=l.info.Db;if(m===n||EL()){if(d.info.j!==l.info.j)return a.Da.ya("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.jH=d.info.itag;f.iK=l.info.itag;a.Da.ya("ombifa",{f:f.jH,t:f.iK});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
p.jH+" to "+p.iK+" based on prefetched media."}}(f));
a.Pa=!0;return l}a.Da.ya("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.Da.ya("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.K.videoInfos);a.B=c(a.B,a.K.j)}};
zZ=function(a,b){if(!a.Oa[b.id]){var c=a.manifest.j[b.id].index.PV(a.Ja,15);c=b.Uu&&a.C&&a.C.index.isLoaded()?c||b.Uu:c||b.Zb;a.Oa[b.id]=c}c=a.Oa[b.id];a.Ya.has(b.itag)&&(c*=a.policy.bC);a.policy.Np&&(c*=Math.max(1,a.kb.Si()||0));return c};
w1a=function(a,b){a=cba(a.manifest.j,function(c){return c.info.itag===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
x1a=function(a){var b=[];if("m"===a.j.reason||"s"===a.j.reason)return b;if(iNa(a.manifest)){for(var c=Math.max(0,a.ma-2);c<a.ma&&c<a.D.length;c++)b.push(a.D[c].itag);b.reverse()}return b};
r1a=function(a,b){var c;return a.j.equals(b)&&(!a.G.j||!a.j.isLocked()||(null==(c=a.nextVideo)?void 0:c.info.id)===a.G.j)};
y1a=function(a,b,c,d){this.D=a;this.manifest=b;this.policy=c;this.logger=d;this.wA=[];this.je=[];this.j=-1;this.xc=null;this.timestampOffset=0;this.od=null;this.B=b.Fc?0:1};
C1a=function(a,b,c,d,e){if(!e.info.qf){if(0===c.length)c.push(e);else{var f;(a=null==(f=c.pop())?void 0:jR(f,e))?c.push(a):c.push(e)}return d}var h;(c=null==(h=c.pop())?void 0:jR(h,e))||(c=e);e=c;c=lL(e.info.j.info,a.manifest.Fc);d=e.info.Qa+a.B;f=1E3*e.info.startTime;h=e.info.clipId;var l=0;a.policy.D&&a.od&&(l=LY(a.od,h));e={formatId:c,startTimeMs:f+l,durationMs:1E3*e.info.duration,Or:d,Rj:d};c=z1a(b,e.startTimeMs);(d=0<=c?b[c]:null)&&A1a(a,d,e)?e=d:(c+=1,b.splice(c,0,e));d=0;for(f=c+1;f<b.length;f++){h=
b[f];l=e;var m=h.startTimeMs+h.durationMs,n=l.startTimeMs+l.durationMs;n>=m+100?h=!0:n+100<h.startTimeMs?h=!1:B1a(a,h.formatId,l.formatId)?(l.durationMs=m-l.startTimeMs,l.Rj=h.Rj,h=!0):(h.startTimeMs=n,h.Or=l.Rj+1,h=!1);if(!h)break;d++}d&&b.splice(c+1,d);return c};
z1a=function(a,b){a=g.Sb(a,{startTimeMs:b},function(c,d){return c.startTimeMs-d.startTimeMs});
return 0<=a?a:-a-2};
E1a=function(a){if(a.xc){var b=a.xc.Jf();if(!a.policy.Ol||0!==b.length){for(var c=[],d=0,e=0;d<b.length&&e<a.je.length;){var f=b.start(d),h=b.end(d),l=a.je[e].startTimeMs/1E3,m=(a.je[e].startTimeMs+a.je[e].durationMs)/1E3;if(l<=h&&m>=f){var n=0;if(a.od){var p=f0a(a.od,1E3*l);p&&(n=p.wI/1E3)}p=Object.assign({},a.je[e]);var q=a.je[e].formatId;q=a.manifest.K.get(q.itag+";"+(q.Zj||0)+";"+q.xtags);f=Math.max(l,f);l=q.index.Mh(f+.1-n);var r=q.index.getStartTime(l)+n;l+=+(.1<Math.abs(r-f));f=l+a.B;l=1E3*
(q.index.getStartTime(l)+n);p.Or=f;p.startTimeMs=l;f=void 0;l=(null==(f=a.C)?void 0:f.info.duration)||11;e===a.j&&h<m&&m-h<=1.01*l&&(h=m);f=Math.min(m,h);l=q.index.Mh(f-.1-n);r=q.index.qN(l)+n;l-=+(.1<Math.abs(r-f));f=l+a.B;n=1E3*(q.index.qN(l)+n);p.Rj=f;p.durationMs=n-p.startTimeMs;p.Or<=p.Rj&&c.push(p)}else e===a.j&&D1a(a,a.j,vL(b));m<h?e+=1:d+=1}e<a.j&&D1a(a,a.j,vL(b));a.je=c}}};
D1a=function(a,b,c){if(a.logger&&a.policy.ly){var d=b<a.je.length?a.je[b]:void 0,e,f;a.logger({missindex:b,sb:c,start:null!=(e=null==d?void 0:d.startTimeMs)?e:0,d:null!=(f=null==d?void 0:d.durationMs)?f:0})}};
F1a=function(a){var b=[],c=[].concat(g.pa(a.wA));a.je.forEach(function(h){b.push(Object.assign({},h))});
for(var d=a.j,e=g.u(a.D.WV()),f=e.next();!f.done;f=e.next())d=C1a(a,b,c,d,f.value);b.forEach(function(h){h.startTimeMs&&(h.startTimeMs+=1E3*a.timestampOffset)});
return{je:b,wA:c}};
A1a=function(a,b,c){var d=b.startTimeMs+b.durationMs,e=c.startTimeMs+c.durationMs;if(100<c.startTimeMs-d)return!1;if(B1a(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.Rj=Math.max(b.Rj,c.Rj),!0;if(100>=Math.abs(b.startTimeMs-c.startTimeMs)){if(b.durationMs>c.durationMs+100){a=b.formatId;var f=b.Or,h=b.Rj;b.formatId=c.formatId;b.durationMs=c.durationMs;b.Or=c.Or;b.Rj=c.Rj;c.formatId=a;c.startTimeMs=e;c.durationMs=d-e;c.Or=f;c.Rj=h;return!1}b.formatId=c.formatId;return!0}d>
c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs);return!1};
B1a=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.Fc||b.Zj===c.Zj};
G1a=function(a){a.je=[];a.wA=[];a.j=-1;a.C=void 0};
H1a=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
HPa=function(a,b){var c,d,e;return g.H(function(f){if(1==f.j){if(!b)return f.return(b);c=CZ.Nr("woe");d=new g.rO(a.B);return g.z(f,d.encrypt(b,a.j),2)}e=f.B;CZ.wq(c,Math.ceil(b.byteLength/16));return f.return(e)})};
OPa=function(a,b){var c,d,e;return g.H(function(f){if(1==f.j){if(!b)return f.return(b);c=CZ.Nr("wod");d=new g.rO(a.B);return g.z(f,d.decrypt(b,a.j),2)}e=f.B;CZ.wq(c,Math.ceil(b.byteLength/16));return f.return(e)})};
J1a=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Fa=c;this.D=this.B=0;this.Nf=null;this.qa=new Set;this.ea=[];this.indexRange=this.initRange=null;this.ma=new NL;this.va=this.Ca=!1;this.Nd={Xeb:function(){return d.C},
ueb:function(){return d.chunkSize},
seb:function(){return d.S},
reb:function(){return d.K}};
(b=I1a(this))?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.S=b.ck,this.K=b.civ):(this.chunkSize=a.Bx,this.C=0,this.S=g.aF(16),this.K=g.aF(16));this.G=new Uint8Array(this.chunkSize);this.S&&this.K&&(this.crypto=new H1a(this.S,this.K))};
I1a=function(a){if(a.policy.Ud&&a.policy.Rx)for(var b=g.u(a.policy.Ud),c=b.next(),d={};!c.done;d={FG:d.FG,PG:d.PG},c=b.next())if(c=g.bC(c.value),d.FG=+c.clen,d.PG=+c.csz,0<d.FG&&0<d.PG&&a.policy.C===c.docid&&a.j.info.id===c.fmtid&&a.j.info.lastModified===+c.lmt)return a={},a.clen=d.FG,a.csz=d.PG,a.ck=c.ck,a.civ=c.civ,a};
DZ=function(a){return!!a.Nf&&QQ(a.Nf)};
O1a=function(a,b){if(!DZ(a)&&!a.isDisposed()){if(!(a.Ca||(a.Ca=!0,0<a.C))){var c=K1a(a);c=LPa(a.policy.C,a.j.info,EZ(a),c,a.policy.Pa);L1a(a,c)}if(1===b.info.type){if(a.Nf){FZ(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=NQ(0,b.j.totalLength)}else if(2===b.info.type)a.Nf&&1===a.Nf.type||FZ(a,Error("Woffle: Index before init")),a.indexRange=NQ(a.initRange.end+1,b.j.totalLength);else if(3===b.info.type){if(!a.Nf){FZ(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(3===a.Nf.type&&!TQ(a.Nf,b.info)&&(a.ea=[],b.info.Qa!==aMa(a.Nf)||0!==b.info.dc))return;if(b.info.qf){c=g.u(a.ea);for(var d=c.next();!d.done;d=c.next())M1a(a,d.value);a.ea=[]}else{a.ea.push(b);a.Nf=b.info;return}}else{FZ(a,Error("Woffle: Unexpected slice type"));return}a.Nf=b.info;M1a(a,b);N1a(a)}};
M1a=function(a,b){var c=0,d=zO(b.j);if(a.D<a.C){c=a.C*a.chunkSize;var e,f=((null==(e=b.info.range)?void 0:e.start)||0)+b.info.dc;c-=f;if(c>=d.length)return;if(0>c)throw Error("Missing data");a.D=a.C;a.B=0}for(e={};c<d.length;)if(e={NF:e.NF},e.NF=Math.min(d.length-c,a.G.byteLength-a.B),f=new Uint8Array(d.buffer,d.byteOffset+c,e.NF),a.G.set(f,a.B),a.B+=e.NF,c+=e.NF,a.B===a.G.length){if(b.info===a.Nf&&DZ(a)&&c===d.length)break;f=K1a(a);f=LPa(a.policy.C,a.j.info,EZ(a),f,a.policy.Pa,a.D,a.G,a.crypto);
a.qa.add(f);L1a(a,f);a.isDisposed()||(f=K1a(a),a.Fa(EZ(a),void 0!==f?(f.downloadedEndTime||0)*f.averageByteRate:f.maxKnownEndTime*f.averageByteRate,f.maxKnownEndTime*f.averageByteRate));a.G=new Uint8Array(a.chunkSize);a.B=0;a.D+=1}};
N1a=function(a){if(DZ(a))if(a.Nf&&a.indexRange)if(a.B){var b=new Uint8Array(a.G.buffer,0,a.B),c=P1a(a),d=a.policy.C;Promise.all(a.qa).then(function(){var e=LPa(d,a.Nf.j.info,EZ(a,!0),c,a.policy.Pa,a.D,b,a.crypto);L1a(a,e,!0)})}else FZ(a,new GZ("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else FZ(a,new GZ("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
K1a=function(a){return{downloadedEndTime:Math.round(a.Nf?a.Nf.C:0),maxKnownEndTime:Math.round(a.j.index.gt()),averageByteRate:Math.round(a.j.info.Uu)}};
P1a=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.gt()),averageByteRate:Math.round(a.j.info.Uu)}};
EZ=function(a,b){void 0===b||!b||a.indexRange&&a.initRange&&a.Nf||FZ(a,new GZ("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));b={lmt:a.j.info.lastModified,docid:a.policy.C,fmtid:a.j.info.id,type:a.j.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.D*a.chunkSize+a.B};a.crypto&&(b.ck=a.S,b.civ=a.K);var c="local://localhost/videoplayback?"+ZB(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:8*a.j.info.Zb,lastModified:String(a.j.info.lastModified),initRange:null==
(d=a.initRange)?void 0:XLa(d),indexRange:null==(e=a.indexRange)?void 0:XLa(e),url:c};if(d=a.j.info.j)b.xtags=d;if(d=a.j.info.video)if(b.quality=d.quality,b.qualityLabel=d.qualityLabel,b.width=d.width,b.height=d.height,d=d.fps)b.fps=d;if(a=a.j.info.audio){if(d=a.sampleRate)b.audioSampleRate=String(d);if(a=a.numChannels)b.audioChannels=a}return b};
L1a=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.qa.delete(b);(c||4===d)&&a.ma.resolve(d)},function(d){a.ma.reject(d)})};
FZ=function(a,b){4!==g.WS(a.policy.C)&&(g.XS(a.policy.C,4),g.UF(b),a.ma.reject(new GZ(b.message)))};
GZ=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.j=void 0===b?!1:b};
Q1a=function(a){a=g.wQ(a,1886614376);for(var b=g.u(a),c=b.next();!c.done;c=b.next());return g.Yp(a,function(d){return uLa(d)})};
R1a=function(a){var b=$p(a,function(e,f){return e+f.length},0);
b=new Uint8Array(b);var c=0;a=g.u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
S1a=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.B=c;this.D=d;this.C=e;this.yy=f};
T1a=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.C=[];this.Te=!1;this.B=null;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.Te=!0};
V1a=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=U1a(b.subarray(c+f,c+f+l));if(null!==m){var n=m;break a}}catch(p){}}c+=e}n=null}catch(p){n=null}}if(null!=n)for(b=ni(Pi(n,7)),null==b||a.Te||(a.cryptoPeriodIndex=b),b=ni(Pi(n,10)),null!=b&&0<b&&!a.Te&&(a.j=b),n=g.u(Vi(n,2,Li(n.oa)&34?eea:
fea)),b=n.next();!b.done;b=n.next())a.C.push(g.mg(Lg(b.value),4))};
W1a=function(a){return isNaN(a.cryptoPeriodIndex)?g.mg(a.initData):""+a.cryptoPeriodIndex};
HZ=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.KE?void 0:d.KE;d=void 0===d.UH?!1:d.UH;this.videoId=a;this.status=b;this.videoDuration=c;this.KE=e;this.UH=d};
X1a=function(a,b,c,d,e){this.videoId=a;this.aN=b;this.B=c;this.bytesDownloaded=d;this.j=e};
IZ=function(a){this.j=a;this.offset=0};
Y1a=function(a){if(a.offset>=a.j.totalLength)throw Error();return AO(a.j,a.offset++)};
Z1a=function(a,b){b=void 0===b?!1:b;var c=Y1a(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=Y1a(a);-1===b&&255!==d&&(b=0);-1<b&&(b=256*b+d)}return b}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+Y1a(a),d*=128;return b?c:c-d};
$1a=function(a){try{var b=Z1a(a,!0),c=Z1a(a,!1);return{id:b,size:c}}catch(d){return{id:-1,size:-1}}};
a2a=function(a){for(var b=new IZ(a),c=-1,d=0,e=0;!d||!e;){var f=$1a(b),h=f.id;f=f.size;if(0>h)return;if(176===h){if(2!==f)return;d=b.qm()}else if(186===h){if(2!==f)return;e=b.qm()}374648427===h?c=b.qm()+f:408125543!==h&&174!==h&&224!==h&&b.skip(f)}b=UFa(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new wO([b]);xO(d,a);return d};
c2a=function(a,b,c){var d=this;this.Da=a;this.policy=b;this.K=c;this.logger=new g.eY("dash");this.B=[];this.j=null;this.Ca=-1;this.ea=0;this.Ja=NaN;this.qa=0;this.C=NaN;this.ma=this.Pa=0;this.eb=-1;this.Oa=this.G=this.D=this.Fa=null;this.fb=this.Ya=NaN;this.S=this.va=this.Va=this.kb=null;this.rb=!1;this.timestampOffset=0;this.Nd={WV:function(){return d.B}};
if(this.policy.C){var e=this.K,f=this.policy.C;this.policy.Pa&&a.ya("atv",{ap:this.policy.Pa});this.S=new J1a(this.policy,e,function(h,l,m){JZ(a,new HZ(d.policy.C,2,{KE:new X1a(f,h,e.info,l,m)}))});
this.S.ma.promise.then(function(h){d.S=null;1===h?JZ(a,new HZ(d.policy.C,h)):d.Da.ya("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof GZ&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.Da.ya("offlinenwerr",{em:l}),b2a(d),JZ(a,new HZ(d.policy.C,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Da.ya("dldbwerr",{em:l}),b2a(d),JZ(a,new HZ(d.policy.C,4,{UH:!0})))})}};
d2a=function(a){return a.B.length?a.B[0]:null};
KZ=function(a){return a.B.length?a.B[a.B.length-1]:null};
k2a=function(a,b,c,d){d=void 0===d?0:d;if(a.G){var e=a.G.dc+a.G.B;if(0<c.info.dc)if(c.info.Qa===a.G.Qa&&c.info.dc<e){if(c.info.dc+c.info.B<=e)return;c=LMa(c,e-c.info.dc)[1]}else if(0<=c.info.Qa&&0<=a.G.Qa&&!TQ(a.G,c.info))throw new g.nD("improper_continuation",a.G.le(),c.info.le());e=a.G;var f=c.info;(e.Qa!==f.Qa&&f.Qa!==e.Qa+1||e.type!==f.type?0:TQ(e,f)||(1E-6>=Math.abs(e.D-f.D)&&e.Qa===f.Qa?0:$La(e,f)))||e2a(a,"d")}else if(0<c.info.dc)throw new g.nD("continuation_of_null",c.info.le());a.G=c.info;
a.K=c.info.j;if(0===c.info.dc){if(a.j)if(!a.Da.isOffline()||a.policy.Qi)a.Da.ya("slice_not_fully_processed",{buffered:a.j.info.le(),push:c.info.le()});else throw new g.nD("slice_not_fully_processed",a.j.info.le(),c.info.le());LZ(a);a.Pa=d}else{if(a.Pa&&d&&a.Pa!==d)throw a=new g.nD("lmt_mismatch",c.info.Qa,a.Pa,d),a.level="WARNING",a;!c.info.j.Gn()&&a.D&&(d=c.info,e=a.D.j,d.G="updateWithEmsg",d.Qa=e)}if(a.j){d=jR(a.j,c);if(!d)throw new g.nD("failed_to_merge",a.j.info.le(),c.info.le());a.j=d}else a.j=
c;a:{c=g.jL(a.j.info.j.info);if(3!==a.j.info.type){if(!a.j.info.qf)break a;7===a.j.info.type?f2a(a,b,a.j):g2a(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(0>=a.Ca&&0===a.ea){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8<h.totalLength;){var m=VFa(h,l),n=VFa(h,l+4);l+=m||1;if(1836019558===n)f=l;else if(1835295092===n){e=l;break}}0>e&&(f=-1)}else{h=new IZ(h);for(m=l=!1;;){n=h.qm();var p=$1a(h),q=p.id;p=p.size;if(!(0<q))break;if(408125543!==q)if(524531317===q)l=!0,0<=p&&(e=h.qm()+p,m=!0);else{if(l&&(160===
q||163===q)&&(0>f&&(f=n),m))break;163===q&&(f=Math.max(0,f),e=h.qm()+p);if(160===q){0>f&&(e=f=h.qm()+p);break}h.skip(p)}}0>f&&(e=-1)}if(0>f)break;a.Ca=f;a.ea=e-f}if(a.Ca>d)break;a.Ca?(d=h2a(a,a.Ca),d.D&&i2a(a,d),f2a(a,b,d),j2a(a,d),a.Ca=0):a.ea&&(d=h2a(a,0>a.ea?Infinity:a.ea),a.ea-=d.j.totalLength,j2a(a,d))}}a.j&&a.j.info.qf&&(j2a(a,a.j),a.j=null)};
g2a=function(a,b){!b.info.j.Gn()&&0===b.info.dc&&(g.jL(b.info.j.info)||b.info.j.info.Te())&&RMa(b);if(1===b.info.type)try{i2a(a,b),l2a(a,b)}catch(e){g.TF(e);var c=UQ(b.info);c.hms="1";a.Da.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.NN(b);a.S&&O1a(a.S,b);if(c.xg()&&a.policy.j)a:{a=a.Da.manifest;b=b.info.clipId;c=lL(c.info,a.Fc);if(b){var d=jNa(a,c);if(a.Oa[d])break a;a.Oa[d]=b}a.Ja.push(c)}};
b2a=function(a){var b;null==(b=a.S)||b.dispose();a.S=null};
m2a=function(a){var b=a.B.reduce(function(c,d){return c+d.j.totalLength},0);
a.j&&(b+=a.j.j.totalLength);return b};
h2a=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=LMa(c,b);a.j=c[1];return c[0]};
i2a=function(a,b){var c=iR(b);if(FAa(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new xQ(c);zQ(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;fL(d)&&!FAa(d)&&(d=iR(b),(new xQ(d)).Fn(),DQ([408125543,374648427,174,224],21936,d));b.info.j.info.kh()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.jL(d.info)?d.B=FLa(c):d.info.Te()&&(d.B=PLa(c))));b.info.j.info.Te()&&
b.info.kh()&&(c=iR(b),(new xQ(c)).Fn(),DQ([408125543,374648427,174,224],30320,c)&&DQ([408125543,374648427,174,224],21432,c));if(a.policy.FB&&b.info.j.info.Te()){c=iR(b);var e=new xQ(c);if(zQ(e,[408125543,374648427,174,29637])){d=CQ(e,!0);e=e.start+e.pos;for(var f=0;f<d-1;f++)c.setUint8(e+f,0);c.setUint8(e+d-1,1)}}if(a.Ui()&&g.jL(b.info.j.info)){d=iR(b);c=g.pQ(d,0,1701606260);f=g.pQ(d,0,1836476516);if(c&&f){c.skip(2);var h=gQ(c),l=iQ(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(jQ(c)),e.push(jQ(c)),
m.push(gQ(c)),n.push(gQ(c));else for(h=0;h<l;++h)d.push(hQ(c)),e.push(hQ(c)),m.push(gQ(c)),n.push(gQ(c));c=g.qQ(f);c=new CLa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.jL(b.info.j.info))for(d=iR(b),e=g.pQ(d,0,1701082227);e;)f=e,f.type=1936419184,f.data.setUint32(f.offset+4,1936419184),e=g.pQ(d,e.offset+e.size,1701082227);a.rb=!0;b.info.j.D=c}}b.info.j.Gn()||b.info.j.j||b.info.j.indexRange||SMa(b)};
f2a=function(a,b,c){if(c.info.j.Gn()){if(a.rb&&n2a(c)&&(b=iR(c),b=g.pQ(b,0,1953658222))){b.skip(1);var d=fQ(b)<<16|gQ(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=iQ(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=iQ(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.Fa&&!!a.Fa.K.D)if(b=c.info.kh())b=PMa(c),h=a.Fa,MZ?(l=1/b,b=NZ(a,b)>=NZ(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&n2a(c)&&(b=a.Fa,MZ?(l=PMa(c),h=1/l,l=NZ(a,l),b=NZ(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,ELa(iR(c),b))}else{h=!1;a.D||(RMa(c),c.B&&(a.D=c.B,h=!0,f=c.info,d=c.B.j,f.G="updateWithEmsg",f.Qa=d,f=c.B,f.D&&(a.K.index.B=!f.D),f=c.info.j.info,d=iR(c),g.jL(f)?KLa(d,1701671783):f.Te()&&DQ([408125543],307544935,d)));a:if((f=lR(c,a.policy.rb))&&QMa(c))l=o2a(a,c),a.ma+=l,f-=l,a.qa+=f,a.C=a.policy.Ep?a.C+f:NaN;else{if(a.policy.vp){if(d=m=a.Da.hq(MMa(c),1),0<=a.C&&7!==c.info.type){if(a.policy.Ep&&isNaN(a.Ya)){g.UF(new g.nD("Missing duration while processing previous chunk",
c.info.le()));a.Da.isOffline()&&!a.policy.Qi||p2a(a,c,d);e2a(a,"m");break a}var n=m-a.C,p=n-a.ma,q=c.info.Qa,r=a.Oa?a.Oa.Qa:-1,t=a.fb,v=a.Ya,x=a.policy.Mm&&n>a.policy.Mm,B=10<Math.abs(p),G=1E-7>Math.abs(a.C-d);if(1E-4<Math.abs(p)){var F=null==(e=a.D)?void 0:zLa(e);e={audio:""+ +a.Ui(),sq:q.toFixed(),sliceStart:m,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:v,totalDrift:(1E3*n).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+ +(x||B)};if(null==F?0:F.length)e.adCpn=F[0];a.Da.handleError("qoe.avsync",
e);a.eb=q}x||B||G||(d=a.C);e=o2a(a,c,m);f-=e;a.ma=n+e;a.policy.B&&(p&&!G||e)&&(n=null==(l=a.D)?void 0:zLa(l),a.Da.ya("discontinuityRewrite",{adCpn:(null==n?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Qa,originalStartTime:m,rewrittenStartTime:d,startTimeAdjustment:d-m,segDrift:(1E3*p).toFixed(),originalDuration:f+e,rewrittenDuration:f,durationAdjustment:e}))}}else d=isNaN(a.C)?c.info.startTime:a.C;p2a(a,c,d)&&(a.qa+=f,a.C=d+f)}a.Oa=c.info;a.Ya=OMa(c);0<=c.G&&(a.fb=c.G);if(h&&a.D){h=
q2a(a,!0);jMa(c.info,h);a.j&&jMa(a.j.info,h);b=g.u(b);for(l=b.next();!l.done;l=b.next())l=l.value,e=void 0,a.policy.G&&l.Qa!==(null==(e=a.D)?void 0:e.j)||jMa(l,h);(c.info.qf||a.j&&a.j.info.qf)&&7!==c.info.type||(a.va=h,b=a.Da,b.manifest.isManifestless&&r2a(b,h,null,!!a.K.info.video),a.policy.Td||s2a(a))}}l2a(a,c);a.timestampOffset&&kR(c,a.timestampOffset)};
j2a=function(a,b){if(b.info.qf){a.kb=b.info;if(a.D){var c=a.D,d=q2a(a,!1),e=null;if(a.D.tD()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=zLa(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.u(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=g.u(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n=
m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.u(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new S1a(e,f,h,l,g.ALa(c),g.BLa(c))}a.Da.DP(a.K,d,e);a.va||a.policy.Td||s2a(a);a.va=null}LZ(a)}a.S&&O1a(a.S,b);if(c=KZ(a))if(c=jR(c,b,a.policy.sx)){a.B.pop();a.B.push(c);return}a.B.push(b)};
LZ=function(a){a.j=null;a.Ca=-1;a.ea=0;a.D=null;a.Ja=NaN;a.qa=0;a.va=null};
e2a=function(a,b){b={rst4disc:b,cd:a.ma.toFixed(3),sq:a.Oa?a.Oa.Qa:-1};a.C=NaN;a.ma=0;a.eb=-1;a.Oa=null;a.fb=NaN;a.Ya=NaN;a.Va=null;a.Da.ya("mdstm",b)};
l2a=function(a,b){if(a.K.info.xe){if(b.info.j.info.Te()){var c=new xQ(iR(b));if(zQ(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=CQ(c,!0);c=16!==d?null:OLa(c,d)}else c=null;d="webm"}else b.info.S=Q1a(iR(b)),c=R1a(b.info.S),d="cenc";c&&c.length&&(c=new T1a(c,d),a.policy.KA&&g.jL(b.info.j.info)&&(d=MLa(iR(b)))&&(c.B=d),c.Te=b.info.j.info.Te(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),b.B&&b.B.C&&(c.j=b.B.C),a.Da.qA(c))}};
s2a=function(a){var b=a.D,c=xLa(b);c&&(c.startSecs+=a.Ja,a.Da.CP(a.K,c,b.j,b.tD()))};
q2a=function(a,b){var c,d=a.D;if(c=xLa(d))c.startSecs+=a.Ja;return new dQ(d.j,a.Ja,b?d.Ej:a.qa,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)};
p2a=function(a,b,c){if(!NMa(b,c))return b=UQ(b.info),b.smst="1",a.Da.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Ja)&&(a.Ja=c);return!0};
o2a=function(a,b,c){var d=0;if(b.info.j.info.Te()&&!QMa(b))return 0;if(a.Fa&&!a.Ui()){var e=0;c&&g.jL(b.info.j.info)?e=c-a.C:b.info.j.info.Te()&&(e=a.ma);var f=b.info.Qa;c=lR(b,a.policy.rb);var h=a.Fa;var l=h.eb;h=h.ma;var m=.02<Math.abs(h-e);if((f===l||f>l&&f>a.eb)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.jL(b.info.j.info))ELa(iR(b),d);else if(b.info.j.info.Te()&&(f=e-h,!g.jL(b.info.j.info)&&(b.info.j.info.Te(),d=new xQ(iR(b)),l=b.D?d:new xQ(new DataView(b.info.j.j.buffer)),lR(b,!0)))){var n=
1E3*f,p=IQ(l);l=d.pos;d.pos=0;if(160===d.j.getUint8(d.pos)||JQ(d))if(BQ(d,160))if(CQ(d,!0),BQ(d,155)){if(f=d.pos,m=CQ(d,!0),d.pos=f,n=1E9*n/p,p=EQ(d),n=p+Math.max(.7*-p,Math.min(p,n)),n=Math.sign(n)*Math.floor(Math.abs(n)),!(Math.ceil(Math.log(n)/Math.log(2)/8)>m)){d.pos=f+1;for(f=m-1;0<=f;f--)d.j.setUint8(d.pos+f,n&255),n>>>=8;d.pos=l}}else d.pos=l;else d.pos=l;else d.pos=l}d=lR(b,a.policy.rb);d=c-d}d&&b.info.j.info.Te()&&a.Da.ya("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d};
n2a=function(a){return a.info.j.Gn()&&a.info.Qa===a.info.j.index.Fd()};
NZ=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.K.D&&b&&(b+=a.K.D.j);return b+a.getDuration()};
t2a=function(a,b){0>b||(a.B.forEach(function(c){kR(c,b)}),a.timestampOffset=b)};
PZ=function(a,b){var c=this;this.Vb=a;this.requestNumber=++u2a;this.j=this.now();this.S=this.rb=NaN;this.Ja=this.j;this.B=this.K=0;this.D=this.j;this.qa=this.C=0;this.G=this.va=void 0;this.Oa=0;this.xb=this.isActive=!1;this.Va=0;this.Nd={sfb:function(){return c.Vo}};
this.Od=b.Od;this.snapshot=rOa(this.Od);this.policy=this.Od.Fa;this.Ft=!!b.Ft;this.Kw=b.Kw;b.OM&&(this.policy.ea?(OZ||(OZ=XFa("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.")),this.G=new Uint8Array(2048)):this.va=[]);var d;this.Vo=null!=(d=b.Vo)?d:!1;nOa(this.Od)};
QZ=function(a,b,c){if(a.G){if(a.Oa+20>a.G.length){var d=new Uint8Array(2*a.G.length);d.set(a.G);a.G=d}v2a(a,Math.ceil(b)-Math.ceil(a.Ja));v2a(a,Math.ceil(c/1024)-Math.ceil(a.K/1024))}else a.va&&a.va.push(w2a(Math.ceil(b)-Math.ceil(a.Ja),Math.ceil(c/1024)-Math.ceil(a.K/1024)));a.Ja=b;a.K=c};
v2a=function(a,b){for(;31<b;)a.G[a.Oa++]=OZ[(b&31)+32],b>>=5;a.G[a.Oa++]=OZ[b]};
x2a=function(a){return a.G?g.FO(a.G.subarray(0,a.Oa)):a.va?a.va.join(""):""};
y2a=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
RZ=function(a){a.isActive&&(a.isActive=!1)};
w2a=function(a,b){for(var c="";4095<a;)c+=w2a(4095,0),a-=4095;for(;4095<b;)c+=w2a(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))};
SZ=function(a,b){PZ.call(this,a,b);this.eb=this.kb=!1;this.ea=this.ma=Infinity;this.Ca=NaN;this.fb=!1;this.Fa=NaN;this.NC=b.NC||1;this.WP=b.WP||this.NC;this.Wk=b.Wk;this.Qa=b.Qa;this.hh=b.hh;z2a(this);this.GQ(this.j);this.Ya=(this.Fa-this.j)/1E3};
TZ=function(a,b,c){a.Ft||(b=Math.max(b,a.policy.K),mOa(a.Od,b,c,b))};
A2a=function(a,b){return b?a.dI()?!0:2048<=b:!1};
B2a=function(a){return(a.D-a.j)/1E3};
z2a=function(a){a.Ca=a.j+1E3*a.snapshot.delay;a.fb=!1};
E2a=function(a,b){if(a.Wk&&void 0!==a.Qa&&void 0!==a.hh){var c=Math,d=c.min,e=a.ma;var f=a.Wk;var h=a.j;if(C2a(f,a.Qa))f=b;else{var l=0;f.cj&&(l=.2);f=h+1E3*(f.Fj+l)}a.ma=d.call(c,e,f);c=Math;d=c.min;e=a.ea;f=a.Wk;h=a.j;l=D2a(f,a.Qa,a.hh);2!==l&&(b=l?b:h+1E3*f.Fj,f.cj&&(b+=1E3*f.Fj));a.ea=d.call(c,e,b);a.ma<=a.j?z2a(a):(a.Ca=a.ma,a.fb=!0)}};
F2a=function(a){a.Wk&&E2a(a,a.now());return a.fb};
G2a=function(a,b){if(b+1<=a.totalLength){var c=AO(a,b);c=128>c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)a=AO(a,b++);else if(2===c)c=AO(a,b++),a=AO(a,b++),a=(c&63)+64*a;else if(3===c){c=AO(a,b++);var d=AO(a,b++);a=AO(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=AO(a,b++);d=AO(a,b++);var e=AO(a,b++);a=AO(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),RFa(a,c,4)?a=SFa(a).getUint32(c-a.C,!0):(d=AO(a,c+2)+256*AO(a,c+3),a=AO(a,c)+256*(AO(a,c+
1)+256*d)),b+=5;return[a,b]};
UZ=function(a){this.Vb=a;this.j=new wO};
VZ=function(a,b){this.info=a;this.callback=b;this.state=1;this.yA=this.TN=!1;this.sf=null};
H2a=function(a){return g.Zp(a.info.ib,function(b){return 3===b.type})};
I2a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Vb=c;this.status=0;this.j=new wO;this.B=0;this.isDisposed=this.C=!1;this.D=0;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.rA()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.j.append(f);e.B+=f.length;f=(0,g.OD)();f-e.D>e.policy.j&&(e.Vb.Yt(f,e.B),e.D=f)},function(){},d.body||null)};
J2a=function(a,b){var c=this;this.j=a;this.Vb=b;this.loaded=this.status=0;this.error="";a=MQ(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new wO;this.gF().then(function(){c.Vb.vr()},function(d){c.error=""+d||"unknown_err";
c.Vb.vr()})};
L2a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Vb=c;this.ea=d;this.status=0;this.response=void 0;this.ma=this.B=0;this.K=this.S=!1;this.errorMessage="";this.va=function(f){if(f)if(e.status=f.status,f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.C=f.body.getReader(),e.isDisposed()?e.C.cancel().catch(function(){}):(e.G=f.headers,e.Vb.Bw(),K2a(e));
else e.onDone();else e.onError(Error("null_response"))};
this.qa=function(f){var h=(0,g.OD)();e.isDisposed()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),K2a(e),f=(0,g.OD)(),f-e.ma>e.policy.j&&(e.ma=f,e.Vb.Yt(h,e.B))))};
this.onError=function(f){e.errorMessage=String(f);e.S=!0;e.onDone()};
this.j=new wO;this.D=window.AbortController?new AbortController:void 0;this.start(a)};
K2a=function(a){a.C.read().then(a.qa,a.onError).then(void 0,Qoa)};
M2a=function(a,b,c){var d=this;c=void 0===c?{}:c;this.Vb=b;this.B=this.status=0;this.isDisposed=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.u(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.rA(f)};
a=eP(function(f){d.onDone(f)});
this.xhr.addEventListener("load",a,!1);this.xhr.addEventListener("error",a,!1);c.body?this.xhr.send(c.body):this.xhr.send();this.xhr.addEventListener("progress",eP(function(f){d.df(f)}),!1)};
N2a=function(a,b,c,d,e){if(bQ(a.base))return new J2a(a,c);a=a.jf();return d?PKa()?new I2a(a,b,c,e):new L2a(a,b,c,e):new M2a(a,c,e)};
WZ=function(a,b,c,d,e,f,h,l,m){m=void 0===m?!1:m;g.J.call(this);this.Vb=a;this.policy=b;this.Ke=c;this.resource=d;this.timing=e;this.logger=f;this.D=h;this.Cw=l;this.G=m;this.lastError=null;this.B=0;this.C=!1;this.j=new g.au(this.n$,this.policy.mj,this)};
O2a=function(a){a.resource.S=(0,g.OD)();a=XZ(a);a.B=(0,g.OD)();a.started+=1};
P2a=function(a,b,c){a.timing.eP((0,g.OD)(),b,c);b=a.resource;b.B=0;b.G=0;b.K=0;rMa(XZ(a));if(null!=(b=a.Cw)&&(a=a.Ke.base,!((0,g.OD)()<b.K+3E5||bQ(a))&&(c=aQ(a))&&IZa(c)&&b.B===dY(c))){var d;lLa(a)&&(d=aQ(cQ(a)));g.fD("yt-player-bandaid-host",{primary:c,secondary:d},864E3);b.K=(0,g.OD)();FZa(b,{primary:c,secondary:d})}};
YZ=function(a){if("net.timeout"===a.lastError)a.timing.MX((0,g.OD)());else if(a.policy.dA){var b=a.timing;QZ(b,(0,g.OD)(),b.K)}if("net.nocontent"!==a.lastError){if((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!bQ(a.Ke.base)){var c=XZ(a);c.timedOut+=1}else c=XZ(a),c.j+=1;if(a.policy.qd?!a.timing.xb:!a.timing.K){c=a.resource;var d=a.Ke,e=a.policy,f=a.D;++c.B;b&&++c.G;aQ(d.base).startsWith("redirector.")&&(c.j=c.C.clone(),delete c.D,e.zB&&delete f[aQ(c.j)])}}else++a.resource.K;
a.Vb.Gc(5)};
Q2a=function(a,b,c){return 400<=b.status?(a.lastError="net.badstatus",!0):b.RE()||void 0!==c&&c?!1:(a.lastError=204===b.status?"net.nocontent":"net.connect",!0)};
XZ=function(a){return ZQ(a.D,aQ(a.Ke.base))};
R2a=function(a){var b=a.timing.xs();b.shost=aQ(a.Ke.base);return b};
S2a=function(a){return{first:LO(a,1),dX:LO(a,2)}};
U2a=function(a,b){YO(a,1,b.formatId,ZZ,3);UO(a,2,b.startTimeMs);UO(a,3,b.durationMs);UO(a,4,b.Or);UO(a,5,b.Rj);YO(a,9,b.Idb,T2a,3)};
V2a=function(a,b){XO(a,1,b.videoId);UO(a,2,b.Zj)};
T2a=function(a,b){var c;if(b.tU)for(c=0;c<b.tU.length;c++)YO(a,1,b.tU[c],V2a,3)};
ZZ=function(a,b){UO(a,1,b.itag);UO(a,2,b.Zj);XO(a,3,b.xtags)};
W2a=function(a){return{itag:LO(a,1),Zj:LO(a,2),xtags:NO(a,3)}};
X2a=function(a,b){YO(a,1,b.formatId,ZZ,3);UO(a,2,b.Cj);UO(a,3,b.sequenceNumber);YO(a,4,b.kH,JTa,1);UO(a,5,b.lX)};
Z2a=function(a){return{OY:LO(a,1),items:QO(a,2,Y2a),S6:LO(a,3)}};
Y2a=function(a){return{VO:LO(a,1),BI:LO(a,2),minReadaheadMs:LO(a,3)}};
a3a=function(a){return{Z9:NO(a,1),action:LO(a,2),RQ:OO(a,3,$2a)}};
$2a=function(a){return{SM:LO(a,1)}};
b3a=function(a,b){var c;if(b.Sv)for(c=0;c<b.Sv.length;c++)YO(a,1,b.Sv[c],ZZ,3);if(b.je)for(c=0;c<b.je.length;c++)YO(a,2,b.je[c],U2a,3);XO(a,3,b.clipId)};
c3a=function(a,b){YO(a,1,b.Is,uTa,3);var c;if(b.Sv)for(c=0;c<b.Sv.length;c++)YO(a,2,b.Sv[c],ZZ,3);if(b.je)for(c=0;c<b.je.length;c++)YO(a,3,b.je[c],U2a,3);WO(a,5,b.videoPlaybackUstreamerConfig);if(b.Sn)for(c=0;c<b.Sn.length;c++)YO(a,6,b.Sn[c],X2a,3);if(b.lF)for(c=0;c<b.lF.length;c++)YO(a,16,b.lF[c],ZZ,3);if(b.mF)for(c=0;c<b.mF.length;c++)YO(a,17,b.mF[c],ZZ,3);YO(a,19,b.eK,DTa,3);if(b.dK)for(c=0;c<b.dK.length;c++)YO(a,1E3,b.dK[c],b3a,3)};
d3a=function(a){return{bitrate:LO(a,6),width:LO(a,7),height:LO(a,8),fps:LO(a,25),averageBitrate:LO(a,31),audioSampleRate:LO(a,45),audioChannels:LO(a,46)}};
e3a=function(a){return{targetAudioReadaheadMs:LO(a,1),targetVideoReadaheadMs:LO(a,2),backoffTimeMs:LO(a,4),playbackCookie:MO(a,7),videoId:NO(a,8)}};
iZ=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.HE?[]:h.HE;var l=void 0===h.vF?!1:h.vF,m=void 0===h.Wu?0:h.Wu,n=void 0===h.poToken?"":h.poToken,p=void 0===h.Cw?void 0:h.Cw,q=void 0===h.PE?"":h.PE,r=void 0===h.qh?0:h.qh,t=void 0===h.Ij?new Uint8Array(0):h.Ij;h=void 0===h.fK?!1:h.fK;VZ.call(this,b,e);var v=this;this.policy=a;this.logger=new g.eY("dash/request");this.My=this.Og=0;this.vZ=!1;this.Kq=this.wp=null;this.BW=!1;this.Ij=this.qh=null;this.p_=this.o_=!1;this.vG=null;this.Nd={Gc:function(B){v.Gc(B)},
dfb:function(){return v.sf},
kgb:function(B){v.sf=B},
jgb:function(B){v.Og=B},
igb:function(B){v.Ld.lastError=B},
IN:function(){return v.xhr}};
this.timing=new SZ(this,c);this.vF=l;this.qh=r;this.Ij=t;this.Ke=g.mMa(this.info,this.policy,d);this.Ke.set("rn",this.Iv().toString());this.Ke.set("rbuf",(1E3*m).toFixed().toString());this.vF&&this.Ke.set("smb","1");this.policy.qx&&n&&this.Ke.set("pot",n);q&&this.Ke.set("bbs",q);this.policy.useUmp&&!bQ(this.Ke.base)&&(this.Hj=new UZ(this),this.Ke.set("ump","1"),this.Ke.set("srfvp","1"));(b=this.policy.Xr?this.policy.CB&&!isNaN(this.info.hh)&&this.info.hh>this.policy.qy?!1:!0:!1)&&(this.policy.iy&&
this.policy.Pj?this.Ke.set("defsel","1"):h&&this.Ke.set("defsel",""));this.Ld=new WZ(this,this.policy,this.Ke,this.info.resource,this.timing,this.logger,d,p);this.HE=f||null;this.yA=f3a(this);O2a(this.Ld);d=void 0;if(this.policy.kx||this.Hj||this.policy.Fa){d={method:"POST"};c=(0,g.$Z)([120,0]);if(this.Hj||this.policy.kx)d.body=c;this.policy.Fa&&(e=this.info.ot(),d.body=e?g.ZO(e,g.RTa):c)}if(this.qh&&this.Ij){this.Ke.set("iwts","1");d={method:"POST"};c={B$:1E3*this.qh};var x;e=null==(x=this.info.ot())?
void 0:x.TA;x=g.ZO({Is:c,TA:e||void 0,videoPlaybackUstreamerConfig:this.Ij},g.RTa);d.body=x}if(a.jx&&5===this.info.ib[0].type||6===this.info.ib[0].type)d=void 0;try{this.xhr=N2a(this.Ke,this.policy.S,this.timing,b,d),this.Ld.j.start(),this.policy.QF&&y2a(this.timing,this.jf()),g.Qf(function(){})}catch(B){g3a(this,B,!0)}};
f3a=function(a){if(!(XQ(a.info)&&a.info.Vo()&&a.policy.Yc&&a.HE)||2<=a.info.resource.B||0<GP()||!MKa())return!1;var b=a.Ke.get("aitags");if(!b)return!1;b=ze(b).split(",");for(var c=[],d=g.u(a.HE),e=d.next();!e.done;e=d.next())e=e.value,g.Db(b,e)&&c.push(e);if(!c.length)return!1;a.Ke.set("altitags",g.ye(c.join(",")));return!0};
g3a=function(a,b,c){c=void 0===c?!1:c;g.TF(b);a.Ld.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.Qf(function(){YZ(a.Ld)}):YZ(a.Ld)};
h3a=function(a){if(a.policy.zx)return!1;var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.XC();c=!c||c<=a.policy.Om;return(!a.xhr.ax()||!b||-1!==b.indexOf("text/plain"))&&c};
i3a=function(a,b){a.policy.qd&&b&&(a.timing.xb=!0);if(a.policy.Ub){var c;null==(c=a.ZD)||c.stop()}};
hZ=function(a,b,c,d,e){VZ.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.Bg=d;this.lastError=null;this.j=new g.au(function(){f.isComplete()||(f.lastError="net.timeout",f.Gc(5))},this.policy.IA);
this.df=function(){f.isDisposed()||(f.Bg.Vc.has(f.formatId)?(f.isComplete()||f.j.start(),kY(f.Bg,f.formatId)&&f.mA(2),f.Bg.jh(f.formatId)&&(XZa(f.Bg,f.formatId)?f.Gc(4):(f.lastError="net.closed",f.Gc(5)))):(f.lastError="player.exception",f.Gc(5)))};
this.j.start();RZa(this.Bg,this.formatId,this.df);g.Qf(this.df)};
j3a=function(a,b,c,d){var e=this;this.Da=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.eY("dash");this.C=[];this.va=[];this.B=this.xc=null;this.Fa=!1;this.Ja=this.Oa=0;this.K=-1;this.qa=!1;this.Ca=-1;this.ea=NaN;this.Nd={wN:function(){return e.D},
Web:function(){return e.C}};
this.D=new c2a(a,b,c);this.policy.j&&(this.ma=new y1a(this.D,this.Da.RV(),this.policy,function(f){e.Da.ya("buftl",f)}));
this.Zb=c.info.Zb;this.S=c.FD();this.isManifestless=c.FD();this.G=this.S};
a_=function(a,b){b&&MZ&&t2a(a.D,b.GN());var c;null==(c=a.ma)||G1a(c);a.xc=b;null!=(b=a.ma)&&(b.xc=a.xc)};
b_=function(a){return a.xc&&a.xc.xH()};
k3a=function(a){for(var b={},c=0;c<a.va.length;c++)b["r"+c]=a.va[c];return b};
l3a=function(a,b){isNaN(a.ea)||a.Da.ya("aswr",{sq:b.info.ib[0].Qa,id:b.info.ib[0].j.info.itag,xtag:b.info.ib[0].j.info.j,ep:Date.now()-a.ea});a.C.push(b);a.B=g.yb(b.info.ib);a.va.push(b.le());4<a.va.length&&a.va.shift()};
n3a=function(a){for(;a.C.length&&4===a.C[0].state;){var b=a.C.shift();m3a(a,b);a.Oa=b.HV()}a.C.length&&m3a(a,a.C[0])};
m3a=function(a,b){if(b.il()){var c=b.vk();c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.B&&b instanceof hZ&&a.Da.ya("omblss",{s:d.info.le()}),c_(a,b.info.ib,d,b.EN())}};
c_=function(a,b,c,d){d=void 0===d?0:d;isNaN(a.ea)||(a.Da.ya("aswm",{sq:b[0].Qa,id:b[0].j.info.itag,xtag:b[0].j.info.j,ep:Date.now()-a.ea}),a.ea=NaN);switch(c.info.type){case 1:case 2:o3a(a,c);break;case 4:var e=c.info.j,f=e.jT(c),h;(null==(h=a.B)?0:4===h.type)&&hMa(c.info,a.B)&&(a.B=e.NA(a.B).pop());c=g.u(f);for(e=c.next();!e.done;e=c.next())c_(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,f=a.policy.Tl,f=void 0===f?!0:f,e.K||(e.K=(0,g.OD)(),f&&bM("fvb",e.K,e.j),bM("fvb_r",e.K,e.j))):
(e=a.timing,f=a.policy.Tl,f=void 0===f?!0:f,e.D||(e.D=(0,g.OD)(),f&&bM("avb",e.D,e.j),bM("fab_r",e.D,e.j)));k2a(a.D,b,c,d);a.policy.j&&p3a(a);break;case 7:k2a(a.D,b,c,d),a.B=c.info}};
o3a=function(a,b){if(1===b.info.type)if(b.info.j.info.video){var c=a.timing;c.Oa||(c.Oa=(0,g.OD)(),bM("vis_r",c.Oa,c.j))}else c=a.timing,c.ea||(c.ea=(0,g.OD)(),bM("ais_r",c.ea,c.j));g2a(a.D,b);a=a.Da;a.videoTrack.j.xg()&&a.audioTrack.j.xg()&&a.policy.j&&!a.manifest.Fc&&(b=a.audioTrack.getDuration(),c=a.videoTrack.getDuration(),1<Math.abs(b-c)&&a.ya("trBug",{af:""+lL(a.audioTrack.j.info,!1),vf:""+lL(a.videoTrack.j.info,!1),a:""+b,v:""+c}))};
mZ=function(a){return d2a(a.D)};
p3a=function(a){a.C.length?a.B=g.yb(g.yb(a.C).info.ib):a.D.B.length?a.B=KZ(a.D).info:a.B=b_(a)};
q3a=function(a){var b={je:[],Sn:[]},c;if(null==(a=a.ma))a=void 0;else{E1a(a);var d=F1a(a),e=d.je;d=d.wA;for(var f=[],h=0;h<d.length;h++){var l=d[h];f.push({formatId:lL(l.info.j.info,a.manifest.Fc),Cj:l.info.Cj,sequenceNumber:l.info.Qa+a.B,kH:{Di:1E3*(l.info.startTime+a.timestampOffset),KM:1E3*l.info.duration,gx:1E3},lX:l.info.B})}a={je:e,Sn:f}}return null!=(c=a)?c:b};
kZ=function(a,b,c){c=void 0===c?!1:c;if(a.xc){var d=a.xc.Jf(),e=yL(d,b),f=NaN,h=b_(a);h&&(f=yL(d,h.j.index.getStartTime(h.Qa)));if(e===f&&a.B&&a.B.B&&r3a(s3a(a),0))return b}a=t3a(a,b,c);return 0<=a?a:NaN};
lZ=function(a,b){a.j.xg();var c=t3a(a,b);if(0<=c)return c;if(null!=(c=a.ma)){var d=b;c.wA=[];E1a(c);c.j=z1a(c.je,1E3*d)}c=Math;d=c.min;var e=a.D;if(e.S)if(e=e.S,e.Nf&&3===e.Nf.type)e=e.Nf.startTime;else if(0<e.C){var f=e.j.index;f=g.Sb(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.j.index.getStartTime(0<=f?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);if(a.policy.D){var h,l;c=null==(h=a.Da.Uc)?void 0:null==(l=f0a(h,b))?void 0:l.clipId;a.B=a.j.Dq(b,void 0,c).ib[0]}else a.B=a.j.Dq(b).ib[0];
d_(a)&&a.xc&&a.xc.abort();a.Ja=0;return a.B.startTime};
u3a=function(a){a.S=!0;a.G=!0;a.K=-1;lZ(a,Infinity)};
e_=function(a){for(var b=0,c=g.u(a.C),d=c.next();!d.done;d=c.next())d=d.value,d=d.sf&&d.sf.length?QZa(d.sf):oMa(d.info),b+=d;return b+=m2a(a.D)};
g_=function(a,b){b=void 0===b?!1:b;var c=a.Da.getCurrentTime(),d=KZ(a.D),e=(null==d?void 0:d.info.C)||0;if(a.policy.D&&d&&d.info.clipId){var f,h=((null==(f=a.Da.Uc)?void 0:LY(f,d.info.clipId))||0)/1E3;e+=h}if(!a.xc)return a.policy.j&&b&&!isNaN(c)&&d?e-c:0;if((f=b_(a))&&f_(a,f))return f.C;f=a.xc.Jf(!0);return b&&d?(b=0,a.policy.j&&(b=AL(f,e+.02)),b+e-c):AL(f,c)};
v3a=function(a,b,c,d){jZ(a);for(var e=a.D,f=null,h=e.B.length-1;0<=h;h--){var l=e.B[h];l.info.Qa>=b&&(e.B.pop(),e.C-=lR(l,e.policy.rb),f=l.info)}f&&(e.G=0<e.B.length?e.B[e.B.length-1].info:e.Va,0!==e.B.length||e.G||e2a(e,"r"));e.Da.ya("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Qa:-1,sq:b,lastslc:e.G?e.G.Qa:-1,lastfraget:e.C.toFixed(3)});d>c?lZ(a,d):a.B=a.j.ws(b-1,!1).ib[0]};
i_=function(a,b){var c;for(c=0;c<a.C.length&&b!==a.C[c];c++);if(c===a.C.length)h_(a,b);else{for(;c<a.C.length;)h_(a,a.C.pop());var d=w3a(a);d&&d.j.Uv()&&Nr(b.info.ib,function(e){return iMa(e,d)})?(a.B=d,a.policy.B&&a.Da.ya("cer",{lsr:"lsp",
lsp:d.le()})):(SQ(b.info.ib[0])?(a.B=b.sf&&b.sf.C?fMa(b.sf.C):eMa(b.info.ib[0]),a.policy.B&&a.Da.ya("cer",{lsr:a.B.le(),lsp:null==d?void 0:d.le()})):(a.B=null,a.policy.B&&a.Da.ya("cer",{lsr:"null",lsp:null==d?void 0:d.le()})),a.Da.isOffline()&&!a.policy.Qi||h_(a,b,!0))}};
f_=function(a,b){if(!b)return!1;if(a.policy.D){var c;if((a=null==(c=a.Da.Uc)?void 0:c.xa.getVideoData().clientPlaybackNonce)&&b.clipId!==a)return!1}return QQ(b)};
d_=function(a){var b;!(b="f"===a.j.info.Db)&&(b=a.policy.C)&&(b=a.D,b=!!b.S&&DZ(b.S));if(b)return!0;b=b_(a);if(!b)return!1;var c=f_(a,b)&&b.qf;return a.isManifestless&&0<a.Ca?c||b.Qa>=a.Ca:c};
j_=function(a){var b;return d_(a)||f_(a,null==(b=KZ(a.D))?void 0:b.info)};
s3a=function(a){var b=[],c=b_(a);c&&b.push(c);b=g.Ib(b,a.D.un());c=g.u(a.C);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.u(d.info.ib),f=e.next(),h={};!f.done;h={MA:h.MA},f=e.next())h.MA=f.value,d.TN&&(b=g.ts(b,function(l){return function(m){return!hMa(m,l.MA)}}(h))),(SQ(h.MA)||4===h.MA.type)&&b.push(h.MA)}a.B&&!ZLa(a.B,g.yb(b),a.B.j.Gn())&&b.push(a.B);
return b};
r3a=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!$La(a[b-1],a[b]))return!1;return!0};
t3a=function(a,b,c){c=void 0===c?!1:c;if(!a.B||!a.B.B)return NaN;var d=s3a(a);a:{a=a.policy.va?b+.02:b;b=c;b=void 0===b?!1:b;for(var e=-1,f=0;f<d.length;++f){var h=d[f];if(h.D<=a)if(b)e=f;else if(h.startTime+h.duration>=a){a=f;break a}}a=e}return 0>a?NaN:r3a(d,c?a:0)?d[a].startTime:NaN};
k_=function(a){return!(!a.B||a.B.j===a.j)};
x3a=function(a,b,c){var d=w3a(a);return d&&!f_(a,d)?d.C>b&&d.C<b+c:!1};
w3a=function(a){var b=KZ(a.D);return b?b.info:b_(a)};
jZ=function(a){for(var b=g.u(a.C),c=b.next();!c.done;c=b.next())h_(a,c.value);a.C=[];a.B=null};
h_=function(a,b,c){c=void 0===c?!1:c;b.TN&&((void 0===c?0:c)||!b.info.ib[0].j.Uv())&&(a=a.D,a.va&&!a.policy.Eo&&(c=a.Da,c.manifest.isManifestless&&vR(c.manifest,a.va.Qa,!!a.K.info.video)),a.va=null,a.D=null,a.G=a.kb,a.C=a.G?a.C-a.qa:NaN,LZ(a));b.dispose()};
y3a=function(a){return!!a.B&&-1!==a.B.Qa&&a.B.Qa<a.j.index.jn()};
z3a=function(a){var b=a.B;b&&-1===b.Qa&&(a=KZ(a.D))&&SQ(a.info)&&(a=a.info.Qa,b.G="updateLastSliceRequested",b.Qa=a)};
A3a=function(a){return Nr(a.C,function(b){return b.yA})};
B3a=function(a){a=void 0===a?{}:a;var b=a.cj,c=a.Fj,d=a.Fd,e=a.Av;this.Pj=a.Pj;this.cj=b;this.Fj=c;this.Fd=d;this.Av=e};
C2a=function(a,b){if(0>b)return!0;var c=a.Fd();return b<c||b===c&&!a.Pj||b===c&&(a=a.Av())&&b===a.Qa?!0:!1};
D2a=function(a,b,c){if(!C2a(a,b))return 0;if(!a.cj||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.Fd();return b<c||b===c&&(a=a.Av())&&b===a.Qa&&!a.pending?2:1};
C3a=function(a,b,c){var d=a.Fv();if(a.isComplete()||!d||YQ(a.info.resource,b,c)||2>d)return 0;a=ZQ(c,vMa(a.info.resource,!0,b));return a.j||a.timedOut||a.started?0:2};
D3a=function(a,b,c){if(!(b.Lo&&a.isComplete()&&a.canRetry()&&YQ(a.info.resource,b,c)))return 0;a=ZQ(c,vMa(a.info.resource,!1,b));return a.B+b.Lo*sMa(a,b,!0)>(0,g.OD)()?0:1};
l_=function(a,b,c,d,e,f,h,l,m,n,p,q,r){g.J.call(this);var t=this;this.Da=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.D=e;this.j=f;this.timing=h;this.G=l;this.schedule=m;this.manifest=n;this.C=p;this.ea=q;this.fK=r;this.qa=!1;this.PE="";this.Wk=null;this.hh=NaN;this.Ca=!1;this.B=null;this.qh=this.ma=NaN;this.Ij=null;this.va=this.K=0;this.logger=new g.eY("dash");this.Nd={rO:function(v,x){return t.rO(v,x)}};
0<this.policy.Fo&&(this.PE=g.aF(this.policy.Fo));if(a=this.policy.yx)this.S=new g.au(this.Fa,a,this),g.L(this,this.S)};
G3a=function(a,b,c){if(E3a(a,b,c)){if(b.S){if(a.manifest.isLive){var d=a.manifest.cf&&a.manifest.B?b.j.ws(a.manifest.cf,!1):b.j.Dq(Infinity);d.hh=a.hh}else d=b.j.ws(0,!1);a.ea?0===d.hh&&(d.G=a.ea.ma):d.G=a.ma}else if(d=b.B,d.j.xg()){var e=d.C-a.Da.getCurrentTime(),f=!d.range||0===d.B&&0===d.dc?0:d.range.length-(d.dc+d.B),h=d.j;a.rO(b,e)&&0===f&&(a.manifest.isManifestless?h=b.j:(h=d.startTime+F3a,d.B&&(h+=d.duration),lZ(b,h),d=b.B,h=d.j));h.Gn()?(f=a.C,c=U0a(a.G,h.info.Zb,c.j.info.Zb,e,0<f.D.length&&
0===f.ma&&a.Da.Sq),h=k_(b),c=d.j.Lx(d,c),(e=c.B)&&1<c.ib.length&&(h||c.resource.B||c.ib[0].j!==d.j?c=d.j.Lx(d,c.ib[0].B):(h=c.ib[c.ib.length-1],f=h.B/e,!h.qf&&.4>f&&(c=d.j.Lx(d,e-h.B)))),d=c):(0>d.Qa&&(c=UQ(d),c.pr=""+b.C.length,a.Da.Wg()&&(c.sk="1"),c.snss=d.G,a.Da.ya("nosq",c)),d=h.SB(d));if(a.policy.Ca)for(c=g.u(d.ib),e=c.next();!e.done;e=c.next())e.value.type=7}else d.j.Gn()?(c=U0a(a.G,b.j.info.Zb,c.j.info.Zb,0),d=d.j.Lx(d,c)):d=d.j.SB(d);if(a.B){var l=d.ib[0].j.info.id;c=a.j;e=d.ib[0].Qa;c=0>
e&&!isNaN(c.C)?c.C:e;e=h1a(a.j,d.ib[0].D,c);var m=b===a.audioTrack?1:2;f=d.ib[0].j.info.Db;h=l.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.fh.event;if(n.j.Qa===c){n="predictStart"===p?void 0:n.j.fh.event;break a}if(n.j.Qa===c-1){n="start"===p||"continue"===p?p:void 0;break a}}n=void 0}if(a.policy.Fa&&0!==a.j.B){var q=a.B.ot(e,c,l,m,f,n);0>c&&2===m&&qZ(a.j,0,0,!0);if(q){var r;l=(null==(r=q.TA)?void 0:r.Ns)||"";var t;r=(null==(t=q.TA)?void 0:t.HZ)||-1;a.Da.ya("sdai",{ssdaiinfo:"1",ds:l,skipsq:r,itag:h,
f:f,sg:c,st:e.toFixed(3)});d.D=q}}else if(t=a.B.iz(e,c,l,m,f,n),0>c&&2===m&&qZ(a.j,0,0,!0),t){r={dec_sq:c,itag:h,st:e.toFixed(3)};if(a.policy.HB&&b.isRequestPending(c-1)){a.Da.ya("sdai",{wt_daistate_on_sg:c-1});return}a.Da.ya("sdai",r);t&&(d.j=new g.ZP(t));a.policy.B&&(t=d.resource.C.get("id")||"",r=(null==(q=d.j)?void 0:q.get("id"))||"",t!==r&&a.Da.ya("stmidmismatch",{cid:t,aid:r}))}else 5!==a.j.B&&a.Da.ya("sdai",{nodec_sq:c,itag:h,st:e.toFixed(3)})}a.policy.Kl&&-1!==d.ib[0].Qa&&d.ib[0].Qa<a.manifest.cf&&
(d=b.j.ws(a.manifest.cf,!1));l3a(b,m_(a,d));nZ(a.timing);a.S&&(a.va=0,g.bu(a.S))}};
E3a=function(a,b,c){if(a.policy.Me&&a.policy.Bd)return!1;var d;var e=a.j,f=(null==(d=b.B)?void 0:d.Qa)||-1;3===e.B&&f+1>=e.S?(e.ya("sdai",{haltrq:f+1,est:e.S}),d=!1):d=2!==e.B;if(!d||!wMa(b.B?b.B.j.resource:b.j.resource,a.policy,a.D)||a.Da.isSuspended&&(!aS(a.schedule)||a.Da.VG))return!1;if(a.policy.C&&5<=ZS)return g.bu(a.Da.VD),!1;if(a.manifest.isManifestless){if(0<b.C.length&&b.B&&-1===b.B.Qa||b.C.length>=a.policy.Ul||!a.policy.kB&&0<b.C.length&&!a.policy.S.cj)return!1;if(b.S)return!a.manifest.isLive||
!isNaN(a.hh)}if(A3a(b))return!1;if(!b.B){if(!b.j.xg())return!1;lZ(b,a.Da.getCurrentTime())}if(mZ(b)&&(KZ(b.D)!==mZ(b)||a.Da.isSuspended))return!1;e=(d=a.policy.vx)&&!b.C.length&&g_(b,!0)<Math.min(d,g_(c));d=b.C.length+c.C.length;f=!a.policy.Ax&&((b.C.length?b.C[0].Vv():!1)||(c.C.length?c.C[0].Vv():!1)||a.manifest.isLive);(e||f)&&--d;if(d+1>=a.policy.Nm)return!1;d=b.B;if(!d)return!0;4===d.type&&d.j.xg()&&(b.B=g.yb(d.j.NA(d)),d=b.B);if(!QQ(d)&&!d.j.us(d))return!1;f=a.manifest.ze||a.manifest.B;if(a.manifest.isManifestless&&
f){f=b.j.index.Fd();var h=c.j.index.Fd();f=Math.min(f,h);if(0<b.j.index.uH()&&0<f&&d.Qa>=f)return b.Ca=f,c.Ca=f,!1}if(d.j.info.audio&&4===d.type||QQ(d))return!1;f=!b.G&&!c.G;if(e=!e)e=d.C,e=!!(c.B&&!f_(c,c.B)&&c.B.C<e);h=b===a.videoTrack&&a.policy.Ca;return e&&(!a.manifest.isManifestless||c.B&&c.B.C&&d.C)&&f&&!h||a.policy.vc&&!b.G&&c.G?!1:SQ(d)&&d.C>H3a(a,b)?(H3a(a,b),!1):(a=b.xc)&&a.isLocked()?!1:!0};
H3a=function(a,b){var c=a.j;c=c.j?c.j.fh:null;if(a.policy.Ca&&c)return c.startSecs+c.di+15;b=n_(a.Da,b);0<a.policy.fb&&(c=((0,g.OD)()-a.Da.Xq)/1E3,b=Math.min(b,a.policy.fb+a.policy.Uf*c));c=a.Da.getCurrentTime()+b;return a.policy.Jo&&(b=I3a(a.Da)+a.policy.Jo,b<c)?(a.Da.ya("mrl",{ori:c,mod:b},!0),a.policy.Yx&&(a=a.Da,c=(0,g.OD)(),a.Xq=c),b):c};
J3a=function(a,b,c){if(0!==c){a:if(b=b.info,c=2===c,b.j)b=null;else{var d=b.ib[0];if(b.range)var e=NQ(b.range.start,Math.min(4096,b.B));else{if(b.C&&0<=b.C.indexOf("/range/")||"1"===b.resource.C.get("defrag")||"1"===b.resource.C.get("otf")){b=null;break a}e=NQ(0,4096)}e=new VQ([new PQ(5,d.j,e,"createProbeRequestInfo"+d.G,d.Qa)],b.C);e.K=c;e.j=b.j;b=e}b&&m_(a,b)}};
m_=function(a,b){a.Da.MH(b);var c=oMa(b);c={Od:a.schedule,NC:c,WP:S0a(a.G,c),Vo:RQ(b.ib[0]),Ft:bQ(b.resource.j),OM:a.policy.B,Kw:function(e,f){a.Da.TE(e,f)}};
a.Wk&&(c.Qa=b.ib[0].Qa,c.hh=b.hh,c.Wk=a.Wk);var d={Wu:pMa(b,a.Da.getCurrentTime()),HE:a.policy.Yc&&XQ(b)&&b.ib[0].j.info.video?x1a(a.C):void 0,vF:a.policy.Ca,poToken:a.Da.zN(),Cw:a.Da.rz(),PE:a.PE,qh:isNaN(a.qh)?null:a.qh,Ij:a.Ij,fK:a.fK};return new iZ(a.policy,b,c,a.D,function(e,f){try{a:{var h=e.info.ib[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.Fv()||!(!a.Da.Wa||a.Da.isSuspended||3<g_(l))){var m=C3a(e,a.policy,a.D);1===m&&(a.Ca=!0);J3a(a,e,m);if(e.isComplete()||
e.isDisposed()&&3>f){if(a.policy.B){var n=e.timing.xs();n.rst=e.state;n.strm=e.xhr.ax();n.cncl=e.xhr&&e.Ld.C?1:0;6===e.info.ib[0].type&&(n.shost=aQ(e.Ke.base),n.pb=e.info.B);a.Da.ya("rqs",n)}e.vZ&&a.Da.ya("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var p=a.timing,q=e.info.ib[0].j,r=!p.S&&q.info.video,t=!p.B&&q.info.audio;3===e.state?r?p.tick("vrr"):t&&p.tick("arr"):4===e.state?r?(p.S=e.jf(),g.uD(),wD(4)):t&&(p.B=e.jf()):e.Vv()&&r&&(g.uD(),wD(4));var v=a.Da;a.qh&&e.vG&&v&&(a.qh=NaN,a.Da.cR(e.vG),
a.Da.rM(),a.Da.ya("cabrUtcSeek",{mediaTimeSeconds:e.vG}));e.Pw&&a.qh&&e.Pw&&!e.Pw.action&&(a.Da.sI(a.qh),a.qh=NaN,a.Da.ya("cabrUtcSeekFallback",{targetUtcTimeSeconds:a.qh}));a.policy.Bd&&e.Tp&&a.Da.xE(e.Tp);if(3===e.state){i_(l,e);XQ(e.info)&&o_(a,l,h,!0);if(a.B){var x=e.info.iz();x&&a.B.Rk(e.info.ib[0].Qa,h.info.id,x)}a.Da.Df()}else if(e.isComplete()&&5===e.info.ib[0].type){if(4===e.state){var B=(e.info.ib[0].j.info.video?a.videoTrack:a.audioTrack).C[0]||null;B&&B instanceof iZ&&B.Fv()&&B.jB(!0)}e.dispose()}else{if(!e.En()&&
e.yA&&2<=e.state&&3!==e.state){var G=e.xhr.getResponseHeader("X-Response-Itag");if(G){var F=w1a(a.C,G),I=e.info.B;if(I){var P=I-F.xN();F.C=!0;e.info.ib[0].j.C=!1;var R=F.Ev(P);e.info=R;if(e.sf){var Z=e.sf,ma=R.ib;(ma.length!==Z.ib.length||ma.length<Z.gf.length)&&OZa("dash/request",260511119,""+ma.length,""+Z.ib.length,""+Z.gf.length);Z.ib=ma;var ua=ma[0].range,oa=new wO;for(f=0;f<Z.gf.length;f++)xO(oa,Z.gf[f].j);for(f=0;f<Z.gf.length;f++){Z.gf[f].info=ma[f];var ia=ma[f].range;Z.gf[f].j=yO(oa,ia.start-
ua.start,ia.length);delete Z.gf[f].C}}e.yA=!1;p_(a.videoTrack,F);var Aa=a.videoTrack;Aa.B&&(Aa.B.j=F);a.Da.OP(F.info.video.quality);var X=e.EN();X&&F.info.lastModified&&F.info.lastModified!==+X&&i_(a.videoTrack,e)}}else e.yA=!1}var wa;(null==(wa=e.Sz)?0:wa.gI)&&a.Da.SI(e.Sz.gI);if(4===e.state)K3a(a,e),a.j&&g1a(a.j,e.info,a.B);else if(a.policy.Xr&&e.il()&&!e.isComplete()&&!K3a(a,e)&&!e.En())break a;e.En()&&(a.qt(e),isNaN(a.qh)||(a.Da.sI(a.qh),a.qh=NaN));a.Da.Df();var ca=D3a(e,a.policy,a.D);J3a(a,e,
ca)}}}}}catch(Ra){F=a.qa?1:0,a.qa=!0,e=XK(F),F=YK(Ra,F),a.Da.handleError(F.errorCode,F.details,F.severity),e||a.Da.Ik()}},d)};
K3a=function(a,b){if(a.policy.useUmp&&b.isDisposed())return!1;try{var c=b.info.ib[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.manifest.isManifestless&&d){a.K=0;d.S&&(b.isDisposed(),b.isComplete()||b.il(),d.S=!1);b.iN()&&a.Da.GG.Ck(1,b.iN());var e=b.uH(),f=b.MV(),h=a.manifest,l;for(l in h.j){var m=h.j[l].index;m.Um&&(e&&(m.wp=Math.max(m.wp,e)),f&&(m.Kq=Math.max(m.Kq||0,f)))}}if(b.info.Vo()&&!kMa(b.info))for(var n=g.u(b.vk()),p=n.next();!p.done;p=n.next())o3a(d,p.value);n3a(d,a.Da.getCurrentTime());
var q=!!mZ(d);q&&b instanceof hZ&&(c.info.Ui()?e1a(a.timing):d1a(a.timing));return q}catch(r){return b=b.Aq(),b.origin="hrhs",L3a(a.Da,r,b),!1}};
M3a=function(a){var b=a.videoTrack.j.index;a.Wk=new B3a({Pj:a.policy.Pj,cj:a.policy.S.cj,Fj:b.Fj,Fd:function(){return b.Fd()},
Av:function(){return b.Av()}})};
o_=function(a,b,c,d){if(!(c.xg()||c.Kz()||c.C||!wMa(c.resource,a.policy,a.D)||"f"===c.info.Db||a.policy.j)){if(d){d=a.G;var e=c.info;d=T0a(d,e.video?d.policy.ox:d.policy.Il,e.Zb)}else d=0;d=c.Ev(d);a=m_(a,d);kMa(d)&&l3a(b,a);c.C=!0}};
q_=function(a,b,c,d,e,f,h){g.J.call(this);this.D=a;this.G=b;this.Da=c;this.videoTrack=e;this.audioTrack=f;this.manifest=h;this.B=gT;this.logger=new g.eY("sabr");this.videoInfos=this.D;this.C=this.G;this.j=new j1a(d);N3a(this)};
O3a=function(a,b){var c=[];b=g.u(b);for(var d=b.next();!d.done;d=b.next())c.push(lL(d.value,a.manifest.Fc));return c};
P3a=function(a,b){b!==a.S&&(a.S=b,a.RI(b,a.videoTrack))};
Q3a=function(a,b){b!==a.K&&(a.K=b,a.RI(b,a.audioTrack))};
U3a=function(a,b){"m"===b.reason?b.isLocked()&&R3a(a,b.j):S3a(b)?T3a(a,b.B,b.j):a.videoInfos=a.D;a.B=b};
S3a=function(a){return"l"===a.reason||"b"===a.reason||"o"===a.reason};
R3a=function(a,b){var c=a.j.j;if(c){var d=g.Bb(a.videoInfos,function(e){return e.id===c});
d&&d.video.j===b?a.videoInfos=[d]:(T3a(a,b,b),vZ(a.j,""));a.j.C=!1}else T3a(a,b,b)};
T3a=function(a,b,c){a.videoInfos=a.D;a.videoInfos=g.ts(a.videoInfos,function(d){return d.video.j>=b&&d.video.j<=c})};
N3a=function(a){var b=g.Bb(a.G,function(c){var d;return!(null==(d=c.Rc)||!d.isDefault)});
b&&(a.C=[b])};
V3a=function(a,b){return a.map(function(c){return mL(c,b)})};
W3a=function(a){var b;if(null==(b=a.B)?0:b.isLocked())return a.videoInfos;var c=uZ(a.j);b=g.ts(a.videoInfos,function(d){return!c.has(d.id)});
k1a(a.j)&&(b=g.ts(b,function(d){return 854>=d.video.width&&480>=d.video.height}));
return b};
r_=function(a){this.B={};this.logger=new g.eY(a)};
X3a=function(a){return a.itag+";"+(a.Zj||0)+";"+(a.xtags||"")};
s_=function(a,b){PZ.call(this,a,b);this.Ca=!0;this.ea=!1;this.Fa=this.ma=0};
$3a=function(a){var b=dL[a],c=Y3a[b],d=Z3a[a];if(!d||!c)return null;var e=new bL(d.width,d.height,d.fps);c=mNa(c,e,b);return new eL(a,c,{video:e,Zb:d.bitrate/8})};
b4a=function(a){var b=Y3a[dL[a]],c=a4a[a];return c&&b?new eL(a,b,{audio:new $K(c.audioSampleRate,c.numChannels)}):null};
d4a=function(a,b){var c=[];b=g.u(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=c4a[d]||0;a.j&&e>a.j||c.push(d)}return c};
g4a=function(a,b,c){b.push.apply(b,g.pa(e4a[a]||[]));c.N("html5_early_media_for_drm")&&b.push.apply(b,g.pa(f4a[a]||[]))};
k4a=function(a,b){var c=xT(a),d=a.W().G;if(t_&&!d.j)return t_;var e=[],f=[],h={},l=[].concat(g.pa(h4a));a.N("html5_early_media_for_drm")&&a.N("allow_vp9_1080p_mq_enc")&&0===g.JJ(a.W().experiments,"html5_drm_live_byterate_soft_cap")&&l.push(i4a);l=g.u(l);for(var m=l.next();!m.done;m=l.next()){var n=!1;m=g.u(m.value);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=$3a(p);!q||!q.video||gL(q)&&!c.Fa&&q.video.j>c.hj||(n?(e.push(p),g4a(p,e,a)):(q=TP(c,q,d),!0===q?(n=!0,e.push(p),g4a(p,e,a)):h[p]=
q))}}l=g.u(j4a);for(n=l.next();!n.done;n=l.next())for(n=g.u(n.value),p=n.next();!p.done;p=n.next())if(m=p.value,(p=b4a(m))&&p.audio&&(a.N("html5_onesie_51_audio")||!hL(p)&&!iL(p)))if(p=TP(c,p,d),!0===p){f.push(m);g4a(m,f,a);break}else h[m]=p;c.B&&b("orfmts",h);t_={video:e,audio:f};d.j=!1;return t_};
m4a=function(a){return{c_:QO(a,1,l4a),N$:NO(a,2)}};
n4a=function(a){return{KO:LO(a,1)}};
l4a=function(a){return{clipId:NO(a,1),lx:OO(a,2,o4a),U6:OO(a,3,n4a)}};
o4a=function(a){return{Maa:NO(a,1),P9:LO(a,2),yfb:LO(a,3),s6:LO(a,4),t6:LO(a,5),Q9:LO(a,6)}};
p4a=function(a){r_.call(this,"sabr");this.Vb=a};
u_=function(a,b,c,d,e,f,h){g.J.call(this);this.policy=a;this.info=b;this.manifest=c;this.Vb=e;this.logger=new g.eY("sabr");this.Hj=new UZ(this);this.x$=new p4a(this);this.Bg=new hY(this);this.state=1;this.nZ=!1;this.IQ=0;this.clipId="";this.policy.Vx?this.Qf=new s_(this,f):this.Qf=new SZ(this,f);e=this.policy;f=void 0===b.j?YQ(b.resource,e,d):b.j;e=lMa(b.resource,f,e);b.Xv()&&e.set("probe","1");this.Ke=e;this.Ke.set("rn",""+this.Iv());$Za(this.Bg,c,a);this.Ld=new WZ(this,this.policy,this.Ke,b.resource,
this.Qf,this.logger,d,h,this.policy.enableServerDrivenRequestCancellation);O2a(this.Ld);a={method:"POST"};a.body=b.B;try{this.xhr=N2a(this.Ke,this.policy.S,this.Qf,KR,a),this.Ld.j.start()}catch(l){g.UF(l)}};
q4a=function(a,b){var c=-1,d=-1,e=-1,f;if(null==(f=a.HQ)?0:f.items)for(a=g.u(a.HQ.items),f=a.next();!f.done;f=a.next())f=f.value,b<f.VO||f.VO<c||(c=f.VO,d=f.BI,e=f.minReadaheadMs);return{o6:c,BI:d,WO:e}};
u4a=function(a){var b={},c=a.xa,d=a.La,e=!!a.IM,f=c.getVideoData(),h=GP(0),l=c.getPlayerSize(),m=c.getVisibilityState();h&&(b.p6=h,b.lastManualDirection=IKa(),h=woa()||0,0<h&&(h=(d.N("html5_use_date_now_for_local_storage")?Date.now():(0,g.OD)())-h,d.N("html5_use_date_now_for_local_storage")?0<h&&(b.timeSinceLastManualFormatSelectionMs=h):b.timeSinceLastManualFormatSelectionMs=h));b.R$=GP();d.schedule.K&&(b.K3=$R(d.schedule,!e));e=g.uS();b.W3=l.width*e;b.V3=l.height*e;b.visibility=m;b.eaa=dF();b.y4=
1E3*g.DN(c.Lc().provider);if(d.N("html5_onesie_media_capabilities")||d.N("html5_enable_server_format_filter"))b.qV=3;d.N("html5_onesie_audio_only_playback")&&wT(f)&&(b.qV=1);f=xT(f);if(d.N("html5_onesie_media_capabilities")){l=d.G;m=[];e=[];h=[].concat(g.pa(h4a));d.N("html5_early_media_for_drm")&&d.N("allow_vp9_1080p_mq_enc")&&0===g.JJ(d.experiments,"html5_drm_live_byterate_soft_cap")&&h.push(i4a);h=g.u(h);for(var n=h.next();!n.done;n=h.next()){n=g.u(n.value);for(var p=n.next();!p.done;p=n.next()){p=
p.value;var q=$3a(p);if(q&&q.video&&!0===TP(f,q,l)){m.push({I_:r4a[dL[p]],maxWidth:q.video.width,maxHeight:q.video.height,maxFramerate:q.video.fps});break}}}h=g.u(j4a);for(n=h.next();!n.done;n=h.next())for(n=g.u(n.value),p=n.next();!p.done;p=n.next())if(p=p.value,(q=b4a(p))&&q.audio&&(d.N("html5_onesie_51_audio")||!hL(q)&&!iL(q))&&!0===TP(f,q,l)){e.push({audioCodec:s4a[dL[p]],numChannels:q.audio.numChannels});break}b.mediaCapabilities={sK:m,rG:e}}var r;if(null==(r=a.Uk)?0:r.j&&r.fg){r=d.G;l=[];m=
[];if((e=r.D)&&0<e.size)for(e=g.u(e.values()),h=e.next();!h.done;h=e.next()){n=h.value;if(d.N("html5_ssap_force_mp4_aac")&&(h=n.Db,"a"!==h&&"h"!==h))continue;if(n.Ui)m.push({audioCodec:s4a[n.Db],numChannels:n.numChannels,P$:t4a[n.Db]});else{h={I_:r4a[n.Db],maxWidth:n.maxWidth,maxHeight:n.maxHeight,maxFramerate:n.maxFramerate,b6:n.j6};if(n.mw){h.mw=n.mw;n=$3a(n.itag);if(!n||!n.video)continue;!0===TP(f,n,r)&&(n=8*n.Zb,n>h.mw&&(h.mw=n))}l.push(h)}}b.mediaCapabilities={sK:l,rG:m,P5:3};b.Un=f.Un;b.hj=
f.hj}d.N("html5_prefer_drc")&&(b.v4=!0);b.iQ=a.yC;a.Xq&&(b.faa=(0,g.OD)()-a.Xq);a.isPrefetch&&d.N("html5_report_prefetch_requests")&&(b.isPrefetch=!0);KR||(b.L6=!0);d=1E3*ZR(d.schedule);0<d&&(b.b4=d);var t;(null==(t=a.Uk)?0:t.Oo)&&a.uw&&Infinity>a.uw&&(b.uw=a.uw);c=c.getPlaybackRate();1!==c&&(b.playbackRate=c);var v;(null==(v=a.Uk)?0:v.xb)&&a.Pp&&(b.Yu=a.Yu,b.bx=a.bx,b.Pp=a.Pp);return b};
w4a=function(a,b,c,d,e){b={playbackCookie:null==b?void 0:b.playbackCookie};if(g.TT(a)&&a.sabrContextUpdates){b.NJ=[];for(var f=g.u(a.sabrContextUpdates),h=f.next();!h.done;h=f.next()){h=h.value;var l=h.type||0,m=void 0,n=void 0;!(h.sendByDefault||(null==(m=c)?0:m.has(l)))||null!=(n=d)&&n.has(l)||!h.value||(l=RR(h.value))&&b.NJ.push({type:h.type,value:l})}}c=a.W().j;b.clientInfo={clientName:v4a[c.c.toUpperCase()]||0};c.cbrand&&(b.clientInfo.deviceMake=c.cbrand);c.cmodel&&(b.clientInfo.deviceModel=
c.cmodel);c.cver&&(b.clientInfo.clientVersion=c.cver);c.cos&&(b.clientInfo.osName=c.cos);c.cosver&&(b.clientInfo.osVersion=c.cosver);e&&(b.L$=e);a.xo&&(b.xo=a.xo);return b};
x4a=function(a,b){var c=a.manifest,d=a.xa.getVideoData(),e=g.TT(d),f=u4a({La:d.W(),xa:a.xa,yC:a.yC,IM:!!a.IM,Uk:a.Uk,Xq:a.Xq,uw:a.uw,Yu:a.Yu,bx:a.bx,Pp:a.Pp,isPrefetch:a.isPrefetch}),h=w4a(d,a.nextRequestPolicy,a.xp,a.rq,a.yR),l=a.lF,m=a.mF;if(void 0===m&&void 0===l){var n;m=(m=null==(n=a.fM)?void 0:n.video)?[lL(m.info,c.Fc)]:[];var p;l=(n=null==(p=a.fM)?void 0:p.audio)?[lL(n.info,c.Fc)]:[]}var q;d.N("html5_ssap_force_mp4_aac")&&(null==(q=a.Uk)?0:q.j&&q.fg)&&(l=[],m=[]);if(d.Ij)var r=d.Ij;d={Is:f,
Sn:a.Sn,lF:l,mF:m,videoPlaybackUstreamerConfig:r,eK:h};if(e&&b){e=new Map;f=g.u(c.Ja);for(h=f.next();!h.done;h=f.next())if(h=h.value,p=c.Oa[jNa(c,h)]||"")e.has(p)||e.set(p,[]),e.get(p).push(h);c=new Map;a=g.u(a.je);for(f=a.next();!f.done;f=a.next())f=f.value,h=f.startTimeMs||0,p=void 0,q=null==(p=b)?void 0:f0a(p,h),p=q.clipId,q=q.wI,p&&(c.has(p)||(r=e.get(p)||[],c.set(p,{clipId:p,je:[],Sv:r})),0!==q&&(f.startTimeMs=h-q),c.get(p).je.push(f));d.dK=[];b=g.u(c.entries());for(a=b.next();!a.done;a=b.next())a=
g.u(a.value),a.next(),a=a.next().value,d.dK.push(a)}else d.je=a.je,d.Sv=c.Ja;return d};
v_=function(a,b,c,d){var e=this;this.requestType=a;this.data=b;this.Vb=c;this.B=null;this.Nd={rfb:function(){return e.data.isPrefetch}};
this.Xv()||(this.C=x4a(b,d),this.B=g.ZO(this.C,c3a));this.resource=b.manifest.Va};
y4a=function(a){for(var b={},c=[],d=[],e=0;e<a.data.je.length;e++){var f=a.data.je[e],h=void 0;c.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+f.startTimeMs+"_d."+f.durationMs+"_sn."+f.Or+"_en."+f.Rj)}for(e=0;e<a.data.Sn.length;e++){f=a.data.Sn[e];var l=h=void 0,m=void 0,n=void 0;d.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_sn."+f.sequenceNumber+"_sl."+(f.Cj||NaN)+"_lb."+f.lX+"_tr.s_"+(null==(l=f.kH)?void 0:l.Di)+"_d_"+(null==(m=f.kH)?void 0:m.KM)+"_t_"+(null==(n=f.kH)?void 0:n.gx))}b.rtype=
a.requestType;b.brl=c.join(";");b.ps=d.join(";");return b};
w_=function(a,b){g.J.call(this);this.j=a;this.C=b;this.iv=(0,g.$Z)($E(16))};
z4a=function(a,b){var c;return g.H(function(d){(0,g.OD)();c=iOa(a.j);return d.return(c.encrypt(b,a.iv))})};
A4a=function(a,b){var c;return g.H(function(d){(0,g.OD)();var e=a.j;e.D||(e.D=new JFa(e.C));c=e.D;return d.return(MFa(c,b,a.iv))})};
B4a=function(a,b,c){var d;return g.H(function(e){(0,g.OD)();d=iOa(a.j);return e.return(d.decrypt(b,c))})};
C4a=function(a){this.al=a;this.B=!1;this.j=[]};
D4a=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.videoId,d=b.Lq,e=b.formatId;if(b=b.buffer){var f=void 0,h=a.al.Md;null==(f=x_(h,c))||b_a(f,d,e,b);h.II||h.notifySubscribers(c)}else if(d=a.al,d.j[e].vW=!0,c=x_(d.Md,c),null==c?0:c.Vc.has(e))null==c||SZa(c,e)}};
g.G4a=function(a){this.data=a;this.j=0;this.D=!1;this.C=0;this.error=!1;this.register=this.B=0;if(0===y_.length){y_.length=288;y_.fill(8);for(a=144;280>a;a++)y_[a]=255>=a?9:7;E4a.length=32;E4a.fill(5);z_.length=286;z_.fill(0);for(a=261;285>a;a++)z_[a]=Math.floor((a-261)/4);A_[257]=3;for(a=258;285>a;a++){var b=A_[a-1];b+=1<<z_[a-1];A_[a]=b}A_[285]=258;for(a=0;30>a;a++)F4a[a]=3>=a?0:Math.floor((a-2)/2);for(a=B_[0]=1;30>a;a++)b=B_[a-1],b+=1<<F4a[a-1],B_[a]=b}a=100+7*this.data.length;31===this.data[0]&&
139===this.data[1]&&(a=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.output=new Uint8Array(a)};
g.M4a=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!C_(b,1);switch(C_(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=C_(b,5)+257;var f=C_(b,5)+1;for(var h=C_(b,4)+4,l=0;l<h;l++)d[H4a[l]]=C_(b,3);d=I4a(d);for(h=e+f;c.length<h;){l=J4a(b,d);switch(l){case 16:l=c[c.length-1];var m=C_(b,2)+3;break;case 17:l=0;m=C_(b,3)+3;break;case 18:l=0;m=C_(b,7)+11;break;default:m=1}for(;0<m;m--)c.push(l)}c.length!==h?b.error=!0:(f=c.slice(-f),c.length=e,K4a(b,c,f));break;case 1:K4a(b,y_,E4a);break;case 0:L4a(b,
b.j&7);c=C_(b,16);e=C_(b,16);65535!==(c^e)&&(b.error=!0);b.output.set(b.data.subarray(b.B,b.B+c),b.C);b.B+=c;b.C+=c;break;default:b.error=!0}a.C>a.output.length&&(a.output=new Uint8Array(2*a.C),a.C=0,a.B=0,a.D=!1,a.j=0,a.register=0)}a.output.length!==a.C&&(a.output=a.output.subarray(0,a.C));return a.error?new Uint8Array(0):a.output};
K4a=function(a,b,c){b=I4a(b);c=I4a(c);for(var d=a.data,e=a.output,f=a.C,h=a.register,l=a.j,m=a.B;;){if(15>l){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<<l;m+=2;l+=16}var n=b[h&127];if(0>n)for(h>>=7;0>n;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=h,a.j=l,a.B=m,256<n){h=A_[n];h+=C_(a,z_[n]);m=J4a(a,c);l=B_[m];l+=C_(a,F4a[m]);if(N4a&&h<l)l=f-l,e.copyWithin(f,l,l+h);else for(m=f+h,n=f;n<m;n+=4)e[n]=e[n-l],e[n+1]=e[n-l+1],e[n+2]=e[n-l+2],e[n+3]=e[n-l+3];
f+=h;h=a.register;l=a.j;m=a.B}else break}a.C=f};
J4a=function(a,b){if(7>a.j){var c=a.data,d=a.B;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<<a.j;a.B+=2;a.j+=16}c=b[a.register&127];if(0<=c)return L4a(a,c&15),c>>4;for(L4a(a,7);0>c;)c=b[C_(a,1)-c];return c>>4};
C_=function(a,b){for(;a.j<b;){if(a.B>=a.data.length)return a.error=!0,0;a.register|=a.data[a.B++]<<a.j;a.j+=8}var c=a.register&(1<<b)-1;a.register>>=b;a.j-=b;return c};
L4a=function(a,b){a.j-=b;a.register>>=b};
I4a=function(a){for(var b=[],c=g.u(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var h=1;h<b.length;h++)b[h]?d=h:b[h]=0,e=e+b[h-1]<<1,c[h]=e,7<h&&(f+=b[h]);for(e=1;e<f;)e<<=1;b=128;d=new Int16Array(128+2*(e+d));for(f=0;f<a.length;f++)if(h=a[f]){for(var l=c[h]++,m=e=0;m<h;m++)e=e<<1|l>>m&1;l=f<<4|h;if(7>=h)for(m=1<<7-h;m--;)d[m<<h|e]=l;else{m=e&127;h-=7;for(e>>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d};
O4a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t;return g.H(function(v){switch(v.j){case 1:if(b)try{c=b.exports.malloc(a.length);(new Uint8Array(b.exports.memory.buffer,c,a.length)).set(a);d=b.exports.getInflatedSize(c,a.length);e=b.exports.malloc(d);if(f=pO.ll(b.j?"gza":"gzw",function(){return b.exports.inflateGzip(c,a.length,e)}))throw Error("inflateGzip="+f);
h=new Uint8Array(d);h.set(new Uint8Array(b.exports.memory.buffer,e,d));b.exports.free(e);b.exports.free(c);return v.return(h)}catch(x){g.TF(x),b.reload()}if(!("DecompressionStream"in window))return pO.isActive()?v.return(pO.ll("gzj",function(){return g.M4a(new g.G4a(a))})):v.return(g.M4a(new g.G4a(a)));
l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new wO([]);if(pO.isActive()&&pO.yu())return v.return(pO.ll("gzn",function(){var x,B,G;return g.H(function(F){if(1==F.j)return g.z(F,n.read(),5);if(4!=F.j){x=F.B;B=x.value;if(G=x.done)return F.Ma(4);p.append(B);return F.Ma(1)}return F.return(zO(p))})}));
case 2:return g.z(v,n.read(),5);case 5:q=v.B;r=q.value;if(t=q.done){v.Ma(4);break}p.append(r);v.Ma(2);break;case 4:return v.return(zO(p))}})};
P4a=function(a){r_.call(this,"onesie");this.Md=a;this.j={};this.D=!0;this.C=null;this.queue=new C4a(this);this.G={}};
Q4a=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.B&&(b.j.length=0);b=g.u(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.vW){var e=a.queue;e.j.push({videoId:d.videoId,formatId:c,isEncrypted:!1});e.B||D4a(e)}}};
R4a=function(a,b){var c=b.totalLength,d=!1;switch(a.C){case 0:a.GP(b,a.D).then(function(e){var f=a.Md;f.md("oprr");f.playerResponse=e;f.PO||(f.cF=!1);D_(f)},function(e){a.Md.fail(e)});
break;case 2:a.md("ormk");b=zO(b);a.queue.decrypt(b);break;default:d=!0}a.Md.wm&&a.Md.ya("ombup","id.11;pt."+a.C+";len."+c+(d?";ignored.1":""));a.C=null};
S4a=function(a){return new Promise(function(b){setTimeout(b,a)})};
T4a=function(a,b){var c=LR(b.Z.experiments,"debug_bandaid_hostname");if(c)b=bY(b,c);else{var d;b=null==(d=b.j.get(0))?void 0:d.location.clone()}if((d=b)&&a.videoId){b=RR(a.videoId);a=[];if(b)for(b=g.u(b),c=b.next();!c.done;c=b.next())a.push(c.value.toString(16).padStart(2,"0"));d.set("id",a.join(""));return d}};
U4a=function(a,b,c){c=void 0===c?0:c;var d,e;return g.H(function(f){if(1==f.j)return d=[],d.push(b.load()),0<c&&d.push(S4a(c)),g.z(f,Promise.race(d),2);e=T4a(a,b);return f.return(e)})};
V4a=function(a,b,c,d){d=void 0===d?!1:d;a.set("cpn",b.clientPlaybackNonce);a.set("opr","1");var e=b.W();a.set("por","1");mO()||a.set("onem","1");0<b.startSeconds&&a.set("osts",""+b.startSeconds);d||(e.N("html5_onesie_disable_partial_segments")&&a.set("oses","1"),c?(b=c.audio,a.set("pvi",c.video.join(",")),e.N("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),KR||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad","0"),a.set("oavd","0")))};
W4a=function(a,b,c,d,e){e=void 0===e?!1:e;var f=b.Il,h="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.hO&&d||(h=h+"?key="+f.innertubeApiKey);f=[{name:"Content-Type",value:"application/json"}];d&&f.push({name:"Authorization",value:"Bearer "+d});f.push({name:"User-Agent",value:g.mc()});g.Iv("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.Iv("EOM_VISITOR_DATA")}):(c=c.visitorData||g.Iv("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=LR(b.experiments,
"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=XFa(JSON.stringify(a));return{url:h,WN:f,postBody:a,Y9:e,tF:e}};
Y4a=function(a,b,c,d,e,f){var h=g.ZO(a,NTa,c.kb),l={encryptedClientKey:b.j.encryptedClientKey,uZ:!0,pV:!0,MM:X4a(c,!!a.tF),F_:c.experiments.ob("html5_use_jsonformatter_to_parse_player_response")};a.tF?l.uaa=h:(a=b.encrypt(h),l.sV=a,(0,g.OD)(),a=IFa(new HFa(b.j.C),a,b.iv),l.GW=a,l.iv=b.iv);b=d.getVideoData();c=u4a({La:c,xa:d,yC:1E3*b.startSeconds});return{iO:l,Is:c,onesieUstreamerConfig:e,xo:f,eK:w4a(b)}};
Z4a=function(a,b,c){var d,e,f;return g.H(function(h){if(1==h.j)return d=g.ZO(b,NTa),g.z(h,z4a(c,d),2);if(3!=h.j)return e=h.B,g.z(h,A4a(c,e),3);f=h.B;return h.return({sV:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,GW:f,uZ:!0,pV:!0,MM:X4a(a,!!b.tF),F_:a.experiments.ob("html5_use_jsonformatter_to_parse_player_response")})})};
$4a=function(a,b,c,d,e,f){var h,l,m;return g.H(function(n){if(1==n.j)return g.z(n,Z4a(c,a,b),2);h=n.B;l=d.getVideoData();m=u4a({La:c,xa:d,yC:1E3*l.startSeconds});return n.return({iO:h,Is:m,onesieUstreamerConfig:e,xo:f,eK:w4a(l)})})};
X4a=function(a,b){a=$R(a.schedule,!0);b=b||!!mO()&&1572864<a;return"DecompressionStream"in window||!b};
E_=function(a,b){g.J.call(this);var c=this;this.xa=a;this.playerRequest=b;this.Z=this.xa.W();this.videoData=this.xa.getVideoData();this.logger=new g.eY("onesie");this.wm=this.Z.wd();this.DM=this.Z.Jl;this.AE=new w_(this.DM.j,this.Z.kb);this.xhr=null;this.state=1;this.Up=new NL;this.zW=!1;this.playerResponse="";this.Hj=new UZ(this);this.al=new P4a(this);this.BE=new g.au(this.qW,1E4,this);this.fJ=this.N("html5_enable_onesie_media_stall_timeout")?new g.au(function(){if(!c.isComplete()){var d=a5a(c);
c.fail(new WK("net.timeout",d))}},g.JJ(this.Z.experiments,"html5_onesie_request_timeout_ms")):void 0;
this.CY=new g.au(this.E6,2E3,this);this.Zt="";this.aI=this.VW=!1;this.Az=this.xa.rz();this.QP="";this.cF=this.N("html5_onesie_wait_for_media_availability");this.enableCompression=this.PO=this.DD=!1;this.wF=[];this.II=!1;g.L(this.videoData,this);g.L(this,this.BE);g.L(this,this.CY);g.L(this,this.AE);a=MR();KR&&a&&!this.Z.N("html5_disable_onesie_media_bytes")&&(this.Pg=new Map);this.EV=new Map;this.HX=new Map};
x_=function(a,b){var c;return null==(c=a.Pg)?void 0:c.get(b)};
b5a=function(a,b,c){var d;return g.H(function(e){if(1==e.j)return a.md("oprd_s"),mO()?g.z(e,B4a(a.AE,b,c),3):(d=a.AE.decrypt(b,c),e.Ma(2));2!=e.j&&(d=e.B);a.md("oprd_c");return e.return(d)})};
c5a=function(a){return a.N("html5_onesie_host_probing")||a.wm?KR:!1};
D_=function(a){if(!a.playerResponse)return!1;if(a.DD)return!0;var b=a.videoData.N("html5_onesie_audio_only_playback")&&wT(a.videoData);if(a.Pg&&a.cF){if(!a.Pg.has(a.Zt))return!1;var c=a.Pg.get(a.Zt),d;if(d=c){d=!1;for(var e=g.u(c.Vc.keys()),f=e.next();!f.done;f=e.next())if(f=c.Vc.get(f.value))for(var h=g.u(f.xI),l=h.next();!l.done;l=h.next())0<l.value.Cr&&(f.Ui?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.md("ofr");a.Up.resolve(a.playerResponse);var m;null==(m=a.fJ)||m.start();a.BE.start();return a.DD=!0};
e5a=function(a){if(a.Pg&&!a.N("html5_onesie_media_capabilities")){a.md("ogsf_s");var b=k4a(a.xa.getVideoData(),function(d,e){a.ya(d,e)}),c=d5a(a.xa);
b.video=d4a(c,b.video);a.md("ogsf_c");if(b.video.length)return b;a.ya("ombspf","l."+c.B+";u."+c.j+";o."+c.C+";r."+c.reason)}};
a5a=function(a){if(!a.Qf)return{};var b=a.Qf.xs();b.d=x2a(a.Qf);b.shost=a.sZ;b.ty="o";return b};
f5a=function(a,b){var c,d;(d=null==(a=null==(c=a.Pg)?void 0:c.get(b)))||(b=a.B?!1:a.B=!0,d=!b);return!d};
g5a=function(a,b,c,d,e,f,h,l,m,n){g.J.call(this);var p=this;this.xa=a;this.Da=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.manifest=f;this.Od=h;this.K=l;this.C=m;this.timing=n;this.j=[];this.D={};this.ea=!1;this.xp=new Set;this.rq=new Set;this.S="";this.Pp=0;this.Nd={cfb:function(){return p.j},
Aeb:function(){return p.D},
Sdb:function(){p.j.length=0},
Meb:function(){return p.xp},
Eeb:function(){return p.rq}};
this.La=this.xa.W();this.videoData=this.xa.getVideoData()};
j5a=function(a,b){b=void 0===b?!1:b;if(h5a(a,b)){var c=q3a(a.audioTrack),d=q3a(a.videoTrack),e=[].concat(g.pa(c.je),g.pa(d.je));c=[].concat(g.pa(c.Sn),g.pa(d.Sn));var f;d=(null==(f=a.Da)?void 0:f.cI())&&(GT(a.videoData)||g.FT(a.videoData));f=a.policy.G&&d;d=a.xa.getCurrentTime()||0;var h,l;e={xa:a.xa,manifest:a.manifest,je:e,Sn:c,yC:f?Number.MAX_SAFE_INTEGER:Math.ceil(1E3*d),nextRequestPolicy:a.B,IM:a.policy.Tf,xp:a.xp,rq:a.rq,yR:a.S,Uk:a.policy,Xq:a.Da.Xq,uw:1E3*I3a(a.Da),Yu:null==(h=a.ma)?void 0:
h.Yu,bx:null==(l=a.ma)?void 0:l.bx,Pp:a.Pp,isPrefetch:b||a.Da.isSuspended};a.policy.kb?(b=a.C,b=O3a(b,b.C),e.lF=b,b=a.C,h=W3a(b),0===h.length&&(h=b.D),b=O3a(b,h),e.mF=b):(a.MH(a.videoTrack.j),a.MH(a.audioTrack.j),e.fM=BZ(a.K));b=new v_(0,e,a,a.Da.Uc);a.j.push(i5a(a,b))}};
h5a=function(a,b){b=!(a.policy.va&&b)&&!aS(a.Od);if(a.Da.isSuspended&&(a.Da.VG||b)||a.G&&(0,g.OD)()<a.G||0<a.j.length)return!1;var c;if(null==(c=a.manifest.Va)||!wMa(c,a.policy,a.D)||j_(a.audioTrack)&&j_(a.videoTrack))return!1;if(a.policy.Go&&mZ(a.videoTrack)&&(KZ(a.videoTrack.D)!==mZ(a.videoTrack)||a.Da.isSuspended))return a.policy.B&&a.Da.ya("sabrHeap",{a:""+e_(a.audioTrack),v:""+e_(a.videoTrack)}),!1;if(!a.B)return!0;if(!a.B.targetAudioReadaheadMs||!a.B.targetVideoReadaheadMs)return a.policy.B&&
a.Da.ya("sabrnrp",{norh:1}),!0;c=Math.min(1E3*n_(a.Da,a.audioTrack),a.B.targetAudioReadaheadMs);b=Math.min(1E3*n_(a.Da,a.videoTrack),a.B.targetVideoReadaheadMs);var d=Math.min(c,b),e=1E3*g_(a.audioTrack,!0),f=1E3*g_(a.videoTrack,!0);var h=e>d;d=f>d;if((!h||!d)&&a.policy.B&&a.policy.Sf){var l=a.Da.uc();l.car=e;l.vac=f;l.mar=c;l.mvr=b;l.tar=a.B.targetAudioReadaheadMs;l.tvr=a.B.targetVideoReadaheadMs;a.Da.ya("sabrrnm",l)}return!h||!d};
i5a=function(a,b){b=new u_(a.policy,b,a.manifest,a.D,a,{Od:a.Od,Kw:function(c,d){a.xa.TE(c,d)},
Vo:a.policy.Tf,OM:a.policy.B},a.Da.rz());nZ(a.timing);return b};
F_=function(a,b){if(!b.isDisposed()&&!a.isDisposed()){if(a.policy.B&&b.isComplete()&&b instanceof u_){var c=a.Da,d=c.ya;var e=Object.assign(b.Qf.xs(),{rst:b.state,strm:b.xhr.ax(),d:x2a(b.Qf),cncl:b.xhr&&b.Ld.C?1:0});e=Object.assign(y4a(b.info),e);d.call(c,"rqs",e)}if(b.isComplete()&&b.Xv())b.dispose();else{if(b.ZW())a.xp.clear(),a.rq.clear(),k5a(a);else if(b.En())a.qt(b);else{if(a.Da.isSuspended&&!b.isComplete())return;k5a(a)}b.isDisposed()||b instanceof E_||(b.isComplete()?c=D3a(b,a.policy,a.D):
(c=C3a(b,a.policy,a.D),1===c&&(a.ea=!0)),0!==c&&(c=2===c,b=new v_(1,b.info.data),b.j=c,i5a(a,b)))}}a.Da.Df()};
k5a=function(a){for(;a.j.length&&a.j[0].DW(a.Se());){var b=a.j.shift();l5a(a,b)}a.j.length&&l5a(a,a.j[0])};
l5a=function(a,b){if(a.policy.D){var c;var d=((null==(c=a.Da.Uc)?void 0:LY(c,b.GV()))||0)/1E3}else d=0;if(a.policy.kb){c=new Set(b.zq(a.Se()));c=g.u(c);for(var e=c.next();!e.done;e=c.next()){var f=e.value;if(!(e=!(b instanceof E_))){var h=a.C,l=h.manifest.Fc;e=V3a(h.C,l);h=V3a(h.videoInfos,l);e=e.includes(f)||h.includes(f)}if(e&&b.il(f,a.Se()))for(e=b.vk(f,a.Se()),f=b.un(f,a.Se()),e=g.u(e),l=e.next();!l.done;l=e.next()){h=l.value;a.policy.D&&a.policy.D&&d&&3===h.info.type&&kR(h,d,!0);a.policy.B&&
b instanceof E_&&a.Da.ya("omblss",{s:h.info.le()});l=h.info.j.info.Ui();if(!GV(a.policy)){var m=h.info.j;l?Q3a(a.C,m):P3a(a.C,m)}m=l?a.audioTrack:a.videoTrack;b instanceof E_&&(m.S=!1,b instanceof E_&&(l?e1a(a.timing):d1a(a.timing)));c_(m,f,h)}}}else for(h=b.FV()||BZ(a.K),c=new Set(b.zq(a.Se())),a.policy.D?l=c:l=[(null==(f=h.video)?void 0:mL(f.info,a.manifest.Fc))||"",(null==(e=h.audio)?void 0:mL(e.info,a.manifest.Fc))||""],f=g.u(l),e=f.next();!e.done;e=f.next())if(e=e.value,c.has(e)&&b.il(e,a.Se()))for(h=
b.vk(e,a.Se()),h=g.u(h),l=h.next();!l.done;l=h.next()){l=l.value;a.policy.D&&d&&3===l.info.type&&kR(l,d,!0);a.policy.B&&b instanceof E_&&a.Da.ya("omblss",{s:l.info.le()});m=b.un(e,a.Se());var n=l.info.j.info.Ui(),p=n?a.audioTrack:a.videoTrack;b instanceof E_&&(p.S=!1,b instanceof E_&&(n?e1a(a.timing):d1a(a.timing)));c_(p,m,l)}};
m5a=function(a,b){for(var c=[],d=0;d<a.j.length;d++)b&&a.j[d]instanceof E_?c.push(a.j[d]):a.j[d].dispose();a.j=c};
n5a=function(a){a.policy.xb&&(a.ma=void 0,a.Pp=0)};
o5a=function(a,b){if(b.En()||b.isDisposed()){var c=a.Da,d=c.ya,e=b.state;a=a.Se();var f,h;if(null==(b=null==(f=b.Pg)?void 0:f.get(a)))b=void 0;else{f=0;a=b.zq();for(var l=0;l<a.length;l++){var m=void 0;f+=(null==(m=b.Vc.get(a[l]))?void 0:m.bytesReceived)||0}b=f}b=null!=(h=b)?h:-1;d.call(c,"sabromb",{s:e,tbytes:b})}else a.j.push(b),c=a.policy.eb,b.wF.push(a),b.II=c,nZ(a.timing)};
p5a=function(){var a={};if(window.performance){var b=window.performance.memory;b&&(a.jsTotal=b.totalJSHeapSize,a.jsUsed=b.usedJSHeapSize,a.msTotal=b.mediaSourceSizeLimit,a.msUsed=b.usedMediaSourceMemorySize)}var c;if(null==(c=window.h5vcc)?0:c.cVal)a.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),a.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used");return a};
g.G_=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.J.call(this);var p=this;this.xa=a;this.schedule=b;this.policy=c;this.manifest=d;this.Ca=m;this.Mb=n;this.timing=new c1a(this.Mb);this.S=new R0a(this.schedule,this.policy);this.Wa=null;this.rb=new g.au(this.Df,0,this);this.VD=new g.au(this.Df,1E3,this);this.Ub=new g.au(this.Df,void 0,this);this.eb=new g.au(this.Df,1E4,this);this.K=this.currentTime=NaN;this.Oa=this.Fa=0;this.Sq=this.VG=this.isSuspended=!1;this.Ya="";this.GG=new SR(5);this.vc={};
this.timestampOffset=NaN;this.xb=!1;this.fb=0;this.ea=null;this.Ja=NaN;this.kb=this.Pa=!1;this.logger=new g.eY("dash");this.Xq=0;this.Nd={getAudioTrack:function(){return p.audioTrack},
RV:function(){return p.manifest},
gfb:function(){return p.qa},
Df:function(){p.Df()}};
a=m&&m.zq();m&&($Za(m,this.manifest,this.policy),this.Ja=Date.now());this.j=new l1a(this,this.S,c,this.manifest,e,a);h=q1a(this.j,f,h&&h.id);this.audioTrack=new j3a(this,this.policy,h.audio,this.timing);this.videoTrack=new j3a(this,this.policy,h.video,this.timing);this.videoTrack.D.Fa=this.audioTrack.wN();this.Va={updateend:this.L2,error:this.g7};g.L(this,this.rb);g.L(this,this.VD);g.L(this,this.Ub);g.L(this,this.eb);h=this.policy.jy&&this.policy.Pj?!EAa(this.videoTrack.j.info):!1;this.Cb=fSa({cj:this.policy.S.cj||
h,Pj:this.policy.Pj&&!h,Xr:this.policy.Xr});this.G=hSa(this,this.policy,this.Cb,this.schedule,this.GG,function(F,I){return q5a(p,F,I)});
this.C=new f1a(this,this.manifest,this.policy,this.videoTrack,this.audioTrack,l);this.B=new gZ(this,this.manifest,this.videoTrack,this.audioTrack,this.policy);this.D=new l_(this,this.policy,this.videoTrack,this.audioTrack,this.vc,this.C,this.timing,this.S,this.schedule,this.manifest,this.j,this.G,h);g.L(this,this.D);this.ma=new q_(e.videoInfos,e.j,this,this.policy,this.videoTrack,this.audioTrack,this.manifest);g.L(this,this.ma);c.GB&&U3a(this.ma,f);this.qa=new g5a(this.xa,this,this.policy,this.audioTrack,
this.videoTrack,this.manifest,this.schedule,this.j,this.ma,this.timing);g.L(this,this.qa);this.va=this.xa.qe.Qt.cz;var q,r;if(null==(q=this.va)?0:null==(r=q.Sz)?0:r.gI){var t;this.SI(null==(t=this.va)?void 0:t.Sz.gI)}var v;if(null==(v=this.va)?0:v.playbackStartPolicy){var x,B;qUa(this.policy,null==(x=this.va)?void 0:x.playbackStartPolicy,3,null==(B=this.va)?void 0:B.Iv())}if(this.policy.Sf){c=this.Se();var G;(e=c?null==(G=this.va)?void 0:G.HX.get(c):void 0)&&this.qa.Ip(e)}};
H_=function(a,b){var c=mL(b.j.info,a.manifest.Fc),d,e=(null==(d=a.Ca)?void 0:d.un(c))||[];if(0===e.length)return a.ya("ombmsi",{}),!1;a:{e=new VQ(e);d=a.currentTime;e=g.u(e.ib);for(var f=e.next();!f.done;f=e.next())if(f=f.value,3===f.type&&d>=f.D&&d<=f.C){d=!0;break a}d=!1}if(!d)return a.ya("ostmf",{ct:a.currentTime,a:b.j.info.Ui()}),!1;a.policy.Gf&&null!=(a=a.Ca)&&(a.Vc.get(c).kG=!0);return!0};
r5a=function(a){if(!a.manifest.Fc)return!0;var b=a.xa.getVideoData(),c,d;if(a.policy.Qx&&!!(null==(c=a.va)?0:null==(d=c.q6)?0:d.T9)!==a.manifest.ze)return a.ya("ombplmm",{}),!1;b=b.Jc||b.liveUtcStartSeconds||b.mj;if(a.manifest.ze&&b)return a.ya("ombplst",{}),!1;if(a.manifest.Ca)return a.ya("ombab",{}),!1;b=Date.now();return FNa(a.manifest)&&!isNaN(a.Ja)&&b-a.Ja>1E3*a.policy.xA?(a.ya("ombttl",{}),!1):a.manifest.cf&&a.manifest.B||!a.policy.cC&&a.manifest.isPremiere?!1:!0};
s5a=function(a,b){var c=b.j,d=a.manifest.Fc;if(r5a(a))if(a.Ca&&a.Ca.Vc.has(mL(c.info,d))){if(d=mL(c.info,d),H_(a,b)){var e=new VQ(a.Ca.un(d)),f=function(h){try{if(h.En())a.handleError(h.rg(),h.Aq()),i_(b,h),XQ(h.info)&&o_(a.D,b,c,!0),a.Df();else if(K3a(a.D,h)){var l;null==(l=a.C)||g1a(l,h.info,a.ea);a.Df()}}catch(m){h=YK(m),a.handleError(h.errorCode,h.details,h.severity),a.Ik()}};
c.C=!0;kMa(e)&&(l3a(b,new hZ(a.policy,d,e,a.Ca,f)),nZ(a.timing))}}else a.ya("ombfmt",{})};
I_=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.currentTime;var c=a.videoTrack,d=a.j;b=d.nextVideo&&d.nextVideo.index.Mh(b)||0;d.Ja!==b&&(d.Oa={},d.Ja=b,xZ(d,d.j));b=!d.j.isLocked()&&-1<d.ea&&(0,g.OD)()-d.ea<1E3*d.policy.xz;var e=d.nextVideo&&3*zZ(d,d.nextVideo.info)<fZ(d.Fa);if(!b||e)wZ(d),yZ(d),d.va=d.va||d.nextVideo!==d.C;d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.Ja=-1);p_(c,d.nextVideo);p_(a.audioTrack,a.j.B)};
J_=function(a,b){a.VG=b;a.policy.Ca||(a.isSuspended=!0,a.policy.Ap&&(a.VD.stop(),a.rb.stop()))};
t5a=function(a,b,c,d){v3a(a.videoTrack,d,c,b);v3a(a.audioTrack,d,c,b);vR(a.manifest,d,!0);vR(a.manifest,d,!1);a.ya("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
K_=function(a){a.policy.Ya=!1;try{u5a(a)}catch(b){g.TF(b)}};
v5a=function(a,b,c){c=void 0===c?!1:c;a_(a.videoTrack,b.B||null);a_(a.audioTrack,b.j||null);a.Wa=b;a.Wa.D=!0;c||a.resume();g.mG(b.j,a.Va,a);g.mG(b.B,a.Va,a)};
w5a=function(a){a.Wa&&a.Wa.j&&a.Wa.B&&(nG(a.Wa.j,a.Va,a),nG(a.Wa.B,a.Va,a));a_(a.audioTrack,null);a_(a.videoTrack,null);a.Wa&&(a.Wa.D=!1);a.Wa=null};
x5a=function(a){a.Wa&&a.Wa.jh()&&(a.Wy(),a.policy.BB&&a.handleError("fmt.unplayable",{unexpected:1},1))};
z5a=function(a,b){b&&y5a(a.xa,new sZ(b.video,b.reason));a.j.eb&&(b=BZ(a.j,"a"),a.xa.yw(new sZ(b.audio,b.reason)))};
L3a=function(a,b,c){if(b instanceof Error){c.msg||(c.msg=""+b.message);c.name||(c.name=""+b.name);if(b instanceof g.nD&&b.args)for(var d=g.u(Object.entries(b.args)),e=d.next();!e.done;e=d.next()){var f=g.u(e.value);e=f.next().value;f=f.next().value;c["arg"+e]=""+f}g.UF(b);if("WARNING"===b.level){L_(a.xa,c);return}}a.handleError("fmt.unplayable",c,1)};
M_=function(a){g.bu(a.rb)};
u5a=function(a){if(a.Wa){var b=a.Wa.j,c=a.Wa.B,d=A5a(a);if(d){if(a.policy.Xr){if(!b.zv()){var e=mZ(a.audioTrack);e&&(B5a(a,a.audioTrack,b,e.info),C5a(a,b,e))}!c.zv()&&(b=mZ(a.videoTrack))&&(B5a(a,a.videoTrack,c,b.info),C5a(a,c,b))}a.Fa||(a.Fa=(0,g.OD)(),a.policy.B&&(a.ya("apdps",{r:d}),FV(a.policy)&&(b=fZ(a.S),a.ya("sdps",{ct:a.Fa,ah:g_(a.audioTrack,!0),vh:g_(a.videoTrack,!0),mr:V0a(a.S,a.Sq,b),bw:b,js:+a.Sq,ps:(a.policy.OF||"").toString(),rn:(a.policy.MF||"").toString()}))))}else{if(a.Fa){d=a.Fa;
d=(0,g.OD)()-d;e=g_(a.audioTrack,!0);var f=g_(a.videoTrack,!0);a.policy.B&&a.ya("apdpe",{dur:d.toFixed(),abuf:(1E3*e).toFixed(),vbuf:(1E3*f).toFixed()});a.Fa=0}a.G&&(d=a.G.Df(a.audioTrack,zL(a.Wa.B.Jf())))&&a.xa.seekTo(d,{Rv:!0,Id:"pollSubsegmentReadahead",hq:!0});d=!1;D5a(a,a.videoTrack,c)&&(d=!0,c=a.timing,c.G||(c.G=(0,g.OD)(),bM("vda",c.G,c.j),c.C&&(g.uD(),wD(4))),c=a.timing,c.Pa||(c.Pa=(0,g.OD)(),bM("vrb_f",c.Pa,c.j)));a.Wa&&!a.Wa.jh()&&(D5a(a,a.audioTrack,b)&&(d=!0,b=a.timing,b.C||(b.C=(0,g.OD)(),
bM("ada",b.C,b.j),b.G&&(g.uD(),wD(4))),b=a.timing,b.qa||(b.qa=(0,g.OD)(),bM("arb_f",b.qa,b.j))),!a.isDisposed()&&a.Wa&&(!a.policy.Ya&&d_(a.videoTrack)&&d_(a.audioTrack)&&IL(a.Wa)&&!a.Wa.Xj()&&(b=b_(a.audioTrack).j,b===a.manifest.j[b.info.id]&&(b=a.Wa,IL(b)&&(b.Wa?b.Wa.endOfStream():b.oh.webkitSourceEndOfStream(b.oh.EOS_NO_ERROR)),b=a.schedule,HKa(rOa(b)),b.G=(0,g.OD)(),b.K=!0)),d&&!a.Wa.isAsync()&&M_(a)))}}};
A5a=function(a){var b;if(b=a.policy.D){b=a.videoTrack;var c=mZ(b);b=b.Da.Uc;var d;if(d=c&&b&&c.info.clipId){a:{if(c=b.Wo.get(c.info.clipId))if(c=c.getId().split(","),1<c.length)for(c=g.u(c),d=c.next();!d.done;d=c.next())if(b.Bm.has(d.value)){b=!1;break a}b=!0}d=!b}b=d?!0:!1}if(b)return"ssap";if(A3a(a.videoTrack))return"ssf";if(a.policy.Qm||j_(a.audioTrack)||j_(a.videoTrack)&&"f"!==a.videoTrack.j.info.Db)return"";if(a.B.Wg()){d=a.S;b=a.videoTrack;c=a.audioTrack;if(d.policy.j){var e=d.policy.Ad;FV(d.policy)&&
(e=V0a(d,!1,fZ(d)));d=e;b=g_(c,!0)>=d&&g_(b,!0)>=d}else b.C.length||c.C.length?(e=b.j.info.Zb+c.j.info.Zb,e=10*(1-fZ(d)/e),d=Math.max(e,d.policy.Ad),b=g_(c,!0)>=d&&g_(b,!0)>=d):b=!0;if(!b)return"abr";b=a.videoTrack;if(0<b.C.length&&1===b.D.B.length&&d2a(b.D).info.K<b.Oa)return"seek"}b=!a.policy.Oi||10>a.currentTime||360<a.videoTrack.j.info.video.j;c=FV(a.policy)&&a.policy.Nl;if(!a.Sq||!c&&b)return"";b=a.policy.Oi;FV(a.policy)&&(b=V0a(a.S,a.Sq,fZ(a.S)));b=x3a(a.videoTrack,a.currentTime,b)||x3a(a.audioTrack,
a.currentTime,b);return FV(a.policy)?b?"mbnm":"":(0<a.videoTrack.C.length||0<a.audioTrack.C.length||E3a(a.D,a.videoTrack,a.audioTrack)||E3a(a.D,a.audioTrack,a.videoTrack))&&b?"nord":""};
D5a=function(a,b,c){if(c.kO())return!0;if(!c.zG())return!1;var d=mZ(b);if(!d||7===d.info.type)return!1;var e,f;(f=null==(e=a.C))||(f=1===e.B||2===e.B)||!(f=0!==e.B&&b===e.Ja)||(e=w3a(e.ma),f=d.info.Qa>(e?e.Qa:-1));if(f)return a.B.Wg()&&M_(a),!1;B5a(a,b,c,d.info);if(a.manifest.C&&0===d.info.dc){if(null==c.zv()){e=b_(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.S,f=d.info.S,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.Wb(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.zv(),d.info.j.Kz()&&
SMa(d),f=d.info.j.j,e=e!==f&&!g.Wb(e,f);e&&(f=b_(b),a.ya("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Qa}));f=g.jL(d.info.j.info);a.policy.wc&&f&&!e&&(g.jL(d.info.j.info)?(KLa(iR(d),1836019574),KLa(iR(d),1718909296)):(e=new xQ(iR(d)),TLa(e),BQ(e,524531317,!0),d.j=d.j.split(e.start+e.pos).Gm),d.D=!1)}a.policy.sj&&(d.C=void 0);e=a.G&&!!a.G.D&&b.j.info.audio;f=a.manifest.isManifestless||d.C||d.D;if(!(a.manifest.C&&0!==d.info.dc||f&&!e)&&C5a(a,c,d))return!0;if(e)return!1;
e=n_(a,b);if(d.info.D>a.currentTime+e)return a.policy.j&&!a.Oa&&(a.Oa=(0,g.OD)()),!1;a.Oa&&(a.Oa=0);if(!E5a(a,c,d))return!1;b.Vw(d);a=a.j;b=d.info;a.policy.Np&&b.j.info.video&&b.qf&&(d=(b.dc+b.B)/b.duration,b=b.j.info.Zb,d&&b&&a.kb.Ck(1,d/b));return!0};
E5a=function(a,b,c){var d=a.policy.Ja?(0,g.OD)():0,e=c.D||c.C?c.info.j.j:null,f=c.j;c.C&&(f=new wO([]),xO(f,c.C),xO(f,c.j));if(c.D||c.C)f=F5a(a,c,f)||f;var h=zO(f);f=a.policy.Ja?(0,g.OD)():0;e=G5a(a,b,h,c.info,e);a.policy.Ja&&(!c.info.dc||c.info.qf||10>c.info.D)&&(b=b.uc({as:c.info.le(),pdur:Math.round(f-d),adur:Math.round((0,g.OD)()-f)}),b.omt=(a.getCurrentTime()+a.Xc()).toFixed(3),b.to=a.Xc(),a.ya("sba",b));if("s"===e)return a.Pa&&(a.Pa=!1,a.kb=!1),a.fb=0,!0;if("i"===e||"x"===e)return H5a(a,"checked",
e,c.info),!1;if("q"===e){if(!a.Pa)return a.Pa=!0,!1;if(a.policy.EB&&!a.kb)return a.kb=!0,a.xa.seekTo(a.currentTime,{Id:"quotaExceeded",hq:!0}),!1;c.info.kh()?(b=a.policy,b.qa=Math.floor(.8*b.qa),b.Jc=Math.floor(.8*b.Jc),b.ea=Math.floor(.8*b.ea)):(b=a.policy,b.Va=Math.floor(.8*b.Va),b.ea=Math.floor(.8*b.ea));EV(a.policy)?tZ(a.ma.j,c.info.j,!1):AZ(a.j,c.info.j)}L_(a.xa,{reattachOnAppend:e});return!1};
F5a=function(a,b,c){var d;if(d=a.policy.zp&&a.Wa&&!a.Wa.ma&&!a.xa.aH())b=b.info.j.info,d=b.Te()&&fL(b)&&b.video&&3840>b.video.width&&b.video.width>b.video.height;if(d&&(a.Wa.ma=!0,tL('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=a2a(c),a.policy.B&&a.ya("sp4k",{s:!!c}),c};
H5a=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",EV(a.policy)?!d.j.info.video||0<uZ(a.ma.j).size||tZ(a.ma.j,d.j,!1):!d.j.info.video||0<uZ(a.j.G).size||AZ(a.j,d.j)):"i"===c&&(15>a.fb?(a.fb++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=UQ(d);var h;d.mrs=null==(h=a.Wa)?void 0:ML(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
r2a=function(a,b,c,d,e){var f=a.manifest;var h=!1,l=-1;for(p in f.j){var m=oL(f.j[p].info.mimeType)||f.j[p].info.kh();if(d===m)if(m=f.j[p].index,m.tp(b.Qa)){if(!f.Ya){h=b;var n=m.Ym(h.Qa);n&&n.startTime!==h.startTime?(m.segments=[],m.aL(h),h=!0):h=!1}h&&(l=b.Qa)}else m.aL(b),h=!0}if(0<=l){var p={};f.ra("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;b1a(a.B,b,d,f);a.C.DP(b,c,d,e);b.Qa===a.manifest.cf&&f&&tR(a.manifest)&&b.startTime>tR(a.manifest)&&(a.manifest.Cb=b.startTime+(isNaN(a.timestampOffset)?
0:a.timestampOffset),a.B.Wg()&&a.B.j<a.manifest.me()&&a.B.seek(a.manifest.me(),{}))};
B5a=function(a,b,c,d){b=b_(b);!b||b.qf||TQ(b,d)||c.abort();!c.cD()||EL()?c.OR(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.cD()&&a.ya("ctu",{ct:EL(),prev_c:c.cD(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.Rl&&b&&(d=0+b.duration,b=-b.j,0===c.TC()&&d===c.nH()||c.WQ(0,d),b!==c.Xc()&&(c.Jr(b),MZ&&t2a(a.audioTrack.wN(),c.GN())))};
C5a=function(a,b,c){c.info.j.xg();var d=c.info.j.j;if(!d||!b.zG()||b.zv()===d)return!1;var e=d,f=b.vH();if(a.policy.sj&&f&&b.isView()&&g.jL(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=LLa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.ya("fenc",{})}a.policy.zp&&(f=F5a(a,c,new wO([e])))&&(e=zO(f));f=null;(h=c.info.j.Ev(0,c.info.clipId))&&(f=h.ib[0]);a.policy.Ja&&a.ya("sbi",b.uc({as:c.info.le()}));a.policy.vB&&b.abort();d=G5a(a,b,e,f,d);if("s"!==d)return H5a(a,
"sepInit",d,c.info),!0;c.info.kh()?(a=a.timing,a.Ja||(a.Ja=(0,g.OD)(),bM("vis_a",a.Ja,a.j))):(a=a.timing,a.ma||(a.ma=(0,g.OD)(),bM("ais_a",a.ma,a.j)));return b.Xj()};
G5a=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(f instanceof DOMException){if(11===f.code)return"i";if(12===f.code)return"x";if(22===f.code||0===f.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:vL(b.Jf()).replace(/,/g,"_"),vheap:e_(a.videoTrack),aheap:e_(a.audioTrack),message:g.ng(f.message,3),track:a.Wa?b===a.Wa.B?"v":"a":"u"},p5a()),a.handleError("player.exception",b),"q";g.TF(f)}return"u"}return a.Wa.jh()?"m":"s"};
JZ=function(a,b){a.xa.UI(b)};
n_=function(a,b){if(a.Pa&&!a.Sq)return 3;if(a.isSuspended)return 1;var c;if(a.policy.dC&&(null==(c=a.Wa)?0:HL&&"boolean"===typeof c.Wa.streaming))return a.Wa.Wa.streaming?35:4;c=(b.j.info.audio?a.policy.Va:a.policy.qa)/(b.Zb*a.policy.Jl);if(0<a.policy.Pm&&a.Wa&&IL(a.Wa)&&(b=b.j.info.video?a.Wa.B:a.Wa.j)&&!b.Xj()){b=b.Jf();var d=wL(b,a.currentTime);0<=d&&(b=a.currentTime-b.start(d),c+=Math.max(0,Math.min(b-a.policy.Pm,a.policy.bz)))}0<a.policy.ea&&(c=Math.min(c,a.policy.ea));return c};
I5a=function(a,b){zU(b,"cms",function(c){a.policy.B&&a.ya("pathprobe",c)},function(c){a.xa.handleError(c)})};
J5a=function(a,b){a.ea=b;a.C&&(a.C.D=b);a.ea.eR(a.videoTrack.j.info.Te());a.D.B=a.ea};
K5a=function(a,b){if(a.Wa&&a.Wa.B){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;var c=a.C,d=b;if(0!==c.B&&c.D){var e=c.sz(d);e!==c.qa&&(c.D.LP(c.qa,e,c.Fa,d),c.qa=e);c.Fa=d}a.currentTime!==b&&a.resume();a.B.Wg()&&a.Wa&&!a.Wa.jh()&&(c=a.currentTime<=b&&b<a.currentTime+10,d=xL(a.Wa.B.Jf(),a.currentTime+F3a),c&&d&&(a.B.G=!1));a.B.Wg()||(a.currentTime=b);g.bu(a.VD)}};
L5a=function(a,b){var c=s3a(a.videoTrack).find(function(d){return d.startTime>=b&&q5a(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
q5a=function(a,b,c){if(!(a.videoTrack.j.xg()&&a.audioTrack.j.xg()&&a.Wa&&a.Wa.B&&a.Wa.j))return!1;if(c&&a.manifest.isManifestless&&(-1===a.videoTrack.K||-1===a.audioTrack.K))return!0;var d=kZ(a.videoTrack,b,c);if(isNaN(d))return!1;a=kZ(a.audioTrack,a.policy.Le?b:d,c);return isNaN(a)?!1:!0};
N_=function(a){a.Ik();a.G&&iSa(a.G,a.videoTrack.j);M_(a);a=a.B;var b=Math.max(a.videoTrack.D.C||0,a.audioTrack.D.C||0);u3a(a.videoTrack);u3a(a.audioTrack);a.policy.G||DNa(a.manifest);a.manifest.isManifestless&&!a.policy.G&&(a.B=!0,a.C=0);a.Da.currentTime=b;a.G=!0;a.D=new NL;return a.D};
p_=function(a,b,c){if(void 0===c?0:c)a.Fa=!0;a.j!==b&&(a.j=b)};
M5a=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.C.K=a.timestampOffset,a.xa.NP(a.timestampOffset),a.manifest.isManifestless&&(a.manifest.timestampOffset=a.timestampOffset),a.videoTrack.Jr(a.timestampOffset),a.audioTrack.Jr(a.timestampOffset))};
I3a=function(a){var b=a.cn().filter(function(d){return"ad"===d.namespace});
b=g.u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.getCurrentTime())return c.start/1E3;return Infinity};
g.O_=function(a){this.od=a};
P_=function(){g.lG.apply(this,arguments)};
Q_=function(a,b,c,d){P_.call(this);var e=this;this.C=-1;this.j={};this.D=new g.au(this.G,0,this);g.L(this,this.D);this.B=new g.au(function(){e.isDisposed()||(e.D.start(Math.random()*c),e.B.start(b))},a,this);
g.L(this,this.B);d.subscribe("fairplay_next_need_key_info",this.K,this)};
N5a=function(a){if(!(28>=a.length))for(var b=(0,g.$Z)([60,0,75,0,73,0,68,0,62,0]),c=28;c<a.length;){a:if(a.length-c<b.length)var d=!1;else{for(d=0;d<b.length;++d)if(a[c+d]!==b[d]){d=!1;break a}d=!0}if(d){c+=b.length;if(a.length<=c+48)break;b=new Uint8Array(24);for(d=0;24>d;++d)b[d]=a[c+2*d];a=DO(b);a=og(a);if(!a)break;c=a[0];a[0]=a[3];a[3]=c;c=a[1];a[1]=a[2];a[2]=c;c=a[4];a[4]=a[5];a[5]=c;c=a[6];a[6]=a[7];a[7]=c;return a}c++}};
R_=function(a,b){P_.call(this);var c=this;this.C=a;this.j=[];this.B=new g.au(function(){c.ra("log_qoe",{wvagt:"timer",reqlen:c.j?c.j.length:-1});if(c.j){if(0<c.j.length){var d=c.j.shift();O5a(c,d.info)}0<c.j.length&&(d=c.j[0].time-(0,g.OD)(),c.B.start(Math.max(0,d)))}},0);
g.L(this,this.B);b.subscribe("widevine_set_need_key_info",this.D,this)};
O5a=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.C.size)c=!0;else{for(var d=g.u(a.C.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.ra("log_qoe",{wvagt:"reqnews",canskip:c});c||a.ra("rotated_need_key_info_ready",b)};
P5a=function(a){var b=a.interval,c=a.QA;this.url=a.url;this.interval=b;this.QA=c};
Q5a=function(a,b){this.statusCode=a;this.message=b;this.B=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null};
R5a=function(a){var b=BO(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=oQ(b.slice(d+2));if(null==b)return null;a=new Q5a(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.AAa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new P5a({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,QA:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.B=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.u(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),2===e.length&&(c[e[1]]=e[0]);else c={};a.j=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a};
S5a=function(a,b,c){c=void 0===c?"":c;g.J.call(this);this.message=a;this.requestNumber=b;this.timer=c;this.onError=this.onSuccess=null;this.j=new g.Ok(5E3,2E4,.2)};
T5a=function(a,b,c){a.onSuccess=b;a.onError=c};
V5a=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.isDisposed())if(0!==e.status&&e.response)if(jI("drm_net_r",void 0,a.timer),e=new Uint8Array(e.response),e=R5a(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else U5a(a,e)},
onError:function(e){U5a(a,e)}};
c&&(b=Zea(b,"access_token",c));g.oC(b,d)};
U5a=function(a,b){if(!a.isDisposed())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
X5a=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){jI("drm_net_r",void 0,a.timer);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=og(f.license)}catch(v){g.TF(v)}if(0!==h||l){l=new Q5a(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.u(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=W5a[q.trackType];if(r){"HD"===r&&f.isHd720&&(r="HD720");q.isHdr&&(r+="HDR");
h[r]||(m.push(r),h[r]=!0);var t=null;try{t=og(q.keyId)}catch(v){g.TF(v)}t&&(n[g.mg(t,4)]=r)}}l.B=m;l.j=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}},
onError:function(f){if(!a.isDisposed())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")},
onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.yU="Bearer "+d);g.NE(c,"player/get_drm_license",b,e)};
Y5a=function(a,b,c,d){g.lG.call(this);this.videoData=a;this.Z=b;this.ea=c;this.sessionId=d;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.S=this.va=!1;this.C=null;this.Fa=[];this.D=[];this.ma=!1;this.j={};this.Ca=NaN;this.status="";this.K=NaN;this.B=a.K;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.Z.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.va&&(a.vvt=this.videoData.va,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.Z.va&&(a.authuser=this.Z.va);this.Z.pageId&&(a.pageid=this.Z.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.mc()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.G=a;this.G.session_id=d;this.qa=!0;"widevine"===this.B.flavor&&(this.G.hdr="1");"playready"===this.B.flavor&&(b=Number(LR(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.G.mfpe=""+b),this.qa=!1);b="";g.ER(this.B)?DR(this.B)?(d=c.B)&&(b="https://www.youtube.com/api/drm/fps?ek="+
Oca(d)):(b=c.initData.subarray(4),b=new Uint16Array(b.buffer,b.byteOffset,b.byteLength/2),b=String.fromCharCode.apply(null,b).replace("skd://","https://")):b=this.B.B;this.baseUrl=b;this.fairplayKeyId=Fl(this.baseUrl,"ek")||"";if(b=Fl(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Ja=this.videoData.N("html5_use_drm_retry");this.Fa=c.Te?[g.mg(c.initData,4)]:c.C;S_(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
b6a=function(a,b){S_(a,{createkeysession:1});a.status="gr";jI("drm_gk_s",void 0,a.videoData.Oa);a.url=Z5a(a);try{a.C=b.createSession(a.ea,function(c){S_(a,{m:c})})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.ra("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.C&&($5a(a.C,function(c,d){a6a(a,c,d)},function(c,d,e){if(!a.isDisposed()){d=void 0;
var f=1;g.ER(a.B)&&g.kS(a.Z)&&a.Z.N("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=a.Z.N("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(S_(a,{onkyadd:1}),a.S||(a.ra("sessionready"),a.S=!0))},function(c){a.Hp(c)}),g.L(a,a.C))};
Z5a=function(a){var b=a.baseUrl;hza(b)||a.error("drm.net",2,"t.x");if(!Fl(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.Z.experiments.experiments[e]});
0<c.length&&(a.G.fexp=c.join())}c=g.u(Object.keys(a.G));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Zea(b,d,a.G[d]);return b};
a6a=function(a,b,c){if(!a.isDisposed())if(b){S_(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":c6a(a,b);return;default:a.ra("ctmp","message_type",{t:c,l:b.byteLength})}a.va||(jI("drm_gk_f",void 0,a.videoData.Oa),a.va=!0,a.ra("newsession",a));if(AR(a.B)&&(b=d6a(b),!b))return;g.ER(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=WFa(g.mg(b)));b=new S5a(b,++a.requestNumber,a.videoData.Oa);T5a(b,function(d){e6a(a,
d)},function(d,e,f){if(!a.isDisposed()){var h=0,l;
(l=3<=d.j.B)||(l=a.Ja&&36E4<(0,g.OD)()-a.Ca);l&&(h=1,e="drm.net.retryexhausted");S_(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(XK(h),d)&&f6a(a,d)}});
g.L(a,b);g6a(a,b)}else a.error("drm.unavailable",1,"km.empty")};
c6a=function(a,b){S_(a,{sdpvrq:1});a.K=Date.now();if("widevine"!==a.B.flavor)a.error("drm.provision",1,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.Z.j);c=g.Dl("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",c);b={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:BO(b)}),responseType:"arraybuffer"};
g.rC(c,b,3,500).then(eP(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=BO(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.ra("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.K)/1E3,a.K=NaN,a.ra("ctmp","provs",{et:f.toFixed(3)}),a.C&&a.C.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",1,d))}}),eP(function(d){a.isDisposed()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
T_=function(a){var b;if(b=a.qa&&null!=a.C)a=a.C,b=!(!a.j||!a.j.keyStatuses);return b};
g6a=function(a,b){a.status="km";jI("drm_net_s",void 0,a.videoData.Oa);if(a.videoData.useInnertubeDrmService()){var c=new g.ME(a.Z.Il),d={context:g.nqa(c.config_||g.oE())};d.drmSystem=h6a[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.mg(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!(null==(e=a.videoData.B)?0:null==(f=e.video)?
0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.Z.j)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.va&&(d.context.user.credentialTransferTokens=[{token:a.videoData.va,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.xb&&(d.context.user.kidsParent={oauthToken:a.videoData.xb});g.ER(a.B)&&(d.fairplayKeyId=g.mg(Pca(a.fairplayKeyId)));g.DS(a.Z,g.RT(a.videoData)).then(function(l){X5a(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.DS(a.Z,g.RT(a.videoData)).then(function(l){V5a(b,a.url,l);
a.status="rs"})};
e6a=function(a,b){if(!a.isDisposed())if(S_(a,{onlcsrsp:1}),a.status="rr",0!==b.statusCode)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{jI("drm_kr_s",void 0,a.videoData.Oa);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.N("outertube_streaming_data_always_use_staging_license_service")){var c=a.B.B.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.ra("newlicense",b.heartbeatParams);b.B&&(a.D=b.B,a.videoData.useInnertubeDrmService()&&
!a.videoData.eC&&a.ra("newlicense",new P5a({})),a.videoData.eC=!0,a.ma=Nr(a.D,function(d){return d.includes("HDR")}));
b.j&&(a.Z.N("html5_enable_vp9_fairplay")&&DR(a.B)?(c=g.mg(Pca(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=Vc(b.j,function(d){return{type:d,status:"unknown"}}));
BR(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=og(BO(b.message)):CR(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=WFa(g.mg(b.message)));a.C&&(S_(a,{updtks:1}),a.status="ku",a.C.update(b.message).then(function(){jI("drm_kr_f",void 0,a.videoData.Oa);T_(a)||(S_(a,{ksApiUnsup:1}),a.ra("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.ng(d.message,3);
a.error("drm.keyerror",1,d)}));
a.S&&(a.Ca=(0,g.OD)());g.ER(a.B)&&a.ra("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.Z.N("html5_enable_vp9_fairplay")&&DR(a.B)&&a.ra("qualitychange",i6a(a.D))}};
f6a=function(a,b){var c=b.j.getValue();c=new g.au(function(){g6a(a,b)},c);
g.L(a,c);c.start();g.sl(b.j);S_(a,{rtyrq:1})};
j6a=function(a,b){for(var c=[],d=g.u(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.j[e].type+"_"+a.j[e].status);return c.join(b)};
k6a=function(a){var b={};b[a.status]=T_(a)?j6a(a,"."):a.D.join(".");return b};
l6a=function(a,b){switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:return""}b&&(a+="HDR");return a};
m6a=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
n6a=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status};
S_=function(a,b){var c=void 0===c?!1:c;VK(b);(c||a.Z.wd())&&a.ra("ctmp","drmlog",b)};
o6a=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};
i6a=function(a){return g.Db(a,"UHD2")||g.Db(a,"UHD2HDR")?"highres":g.Db(a,"UHD1")||g.Db(a,"UHD1HDR")?"hd2160":g.Db(a,"HD")||g.Db(a,"HDHDR")?"hd1080":g.Db(a,"HD720")||g.Db(a,"HD720HDR")?"hd720":"large"};
d6a=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=new DOMParser;b=g.le(b);b=a.parseFromString(g.ke(b),"text/xml");return b?(b=b.querySelector("Challenge"))&&b.childNodes&&0!==b.childNodes.length?new Uint8Array((0,g.$Z)(Uca(b.childNodes[0].nodeValue)).buffer):null:null};
U_=function(a,b,c,d,e){g.J.call(this);this.element=a;this.ma=b;this.initData=c;this.j=d;this.B=e;this.sessionId="";this.S=this.K=this.C=this.G=null;this.D=new g.ZK(this);g.L(this,this.D);p6a(this)};
p6a=function(a){a.j?(a.D.V(a.j,"message",a.M2),a.D.V(a.j,"keystatuseschange",a.Hp),a.j.closed&&a.j.closed.then(eP(function(){a.isDisposed()||g.zC("xboxone")&&a.C&&a.C("closed")}),null)):a.B&&(bD(a.D,a.B,["mskeymessage",
"webkitkeymessage"],a.pY),bD(a.D,a.B,["mskeyerror","webkitkeyerror"],a.oY),bD(a.D,a.B,["mskeyadded","webkitkeyadded"],a.nY))};
$5a=function(a,b,c,d,e){a.G=b;a.C=c;a.K=d;a.S=e};
q6a=function(a,b,c){g.TF(c);a.C&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.C(b))};
V_=function(a,b,c){g.J.call(this);this.element=a;this.j=b;this.ya=c;this.K={};this.D=null;this.G=new g.ZK(this);this.C=this.B=null;g.L(this,this.G)};
s6a=function(a,b){b=r6a(b,a.j.eb);a=a.C.createSession("video/mp4",b);return new U_(null,null,null,null,a)};
t6a=function(a,b){for(var c=new Uint8Array(270),d=0;135>d;d++)c[2*d]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);a=a.C.createSession("video/mp4",b,c);return new U_(null,null,null,null,a)};
u6a=function(a,b){var c=a.K[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.K[b.sessionId]=c);return c};
r6a=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};
W_=function(){this.keys=[];this.values=[]};
x6a=function(a,b,c){g.lG.call(this);this.element=a;this.videoData=b;this.Z=c;this.j=this.videoData.K;this.drmSessionId=this.videoData.drmSessionId||g.zra();this.B=new Map;this.K=new W_;this.S=new W_;this.C=[];this.Oa=2;this.va=new g.ZK(this);this.Pa=this.Fa=!1;this.heartbeatParams=null;this.Ca=this.ea=!1;this.G=null;this.Ja=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||yR()||KNa(c.experiments);this.Z.N("html5_enable_vp9_fairplay")&&DR(this.j)?c=v6a:(c=this.videoData.Jl,c="fairplay"===this.j.flavor||
c?gT:v6a);this.ma=c;this.D=new V_(this.element,this.j,this.NI.bind(this));g.L(this,this.D);zR(this.j)&&(this.qa=new V_(this.element,this.j,this.NI.bind(this)),g.L(this,this.qa));g.L(this,this.va);c=this.element;this.j.keySystemAccess?this.va.V(c,"encrypted",this.H7):bD(this.va,c,zR(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.d8);w6a(this);a:switch(a=this.j,c=this.B,a.flavor){case "fairplay":19.2999<Ena()?(c=a.Wx,a=a.Vx,a>=c&&(a=.75*c),b=.5*(c-a),c=new Q_(b,c,c-b-a,this)):c=null;break a;
case "widevine":c=new R_(c,this);break a;default:c=null}if(this.G=c)g.L(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.vU,this),this.G.subscribe("log_qoe",this.gj,this);KNa(this.Z.experiments);this.gj({cks:this.j.Lh()})};
w6a=function(a){var b=a.D.YL();b?b.then(eP(function(){y6a(a)}),eP(function(c){if(!a.isDisposed()){g.TF(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ra("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.gj({mdkrdy:1}),a.ea=!0);
a.qa&&(b=a.qa.YL())};
A6a=function(a,b,c){a.Pa=!0;c=new T1a(b,c);a.Z.N("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));z6a(a,c)};
z6a=function(a,b){if(!a.isDisposed()){a.gj({onInitData:1});if(a.Z.N("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.S.get(b.initData);b=a.K.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.K.remove(c);a.S.remove(c)}a.gj({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.Fa&&!a.videoData.isLivePlayback)X_(a);else{if(!(a.Z.N("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Te)){a.Fa=!0;c=b.cryptoPeriodIndex;var d=b.j;V1a(b);b.Te||(d&&b.j!==d?a.ra("ctmp","cpsmm",
{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.ra("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.ra("widevine_set_need_key_info",b)}}else a.vU(b)}};
y6a=function(a){if(!a.isDisposed())if(a.Z.N("html5_drm_set_server_cert")&&!g.UJ(a.Z)||DR(a.j)){var b=a.D.setServerCertificate();b?b.then(eP(function(c){a.Z.wd()&&a.ra("ctmp","ssc",{success:c})}),eP(function(c){a.ra("ctmp","ssce",{n:c.name,
m:c.message})})).then(eP(function(){B6a(a)})):B6a(a)}else B6a(a)};
B6a=function(a){a.isDisposed()||(a.ea=!0,a.gj({onmdkrdy:1}),X_(a))};
C6a=function(a){return"widevine"===a.j.flavor&&a.videoData.N("html5_drm_cpi_license_key")};
X_=function(a){if(a.Pa&&a.ea&&!a.Ca){for(;a.C.length;){var b=a.C[0],c=C6a(a)?W1a(b):g.mg(b.initData);if(DR(a.j)&&!b.B)a.C.shift();else{if(a.B.get(c))if("fairplay"!==a.j.flavor||DR(a.j)){a.C.shift();continue}else a.B.delete(c);V1a(b);break}}a.C.length&&a.createSession(a.C[0])}};
D6a=function(a){var b;if(b=g.BC()){var c;b=!(null==(c=a.D.B)||!c.getMetrics)}b&&(b=a.D.getMetrics())&&(b=g.FO(b),a.ra("ctmp","drm",{metrics:b}))};
E6a=function(a){g.J.call(this);var b=this;this.xa=a;this.La=this.xa.W();this.videoData=this.xa.getVideoData();this.PD=0;this.G=this.B=!1;this.D=0;this.C=g.JJ(this.La.experiments,"html5_delayed_retry_count");this.j=new g.au(function(){Y_(b.xa)},g.JJ(this.La.experiments,"html5_delayed_retry_delay_ms"));
g.L(this,this.j)};
J6a=function(a,b,c){var d=a.videoData.B,e=a.videoData.D;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.xa.bl.D&&d&&"22"===d.itag)return a.xa.bl.D=!0,a.Ae("qoe.restart",{reason:"fmt.unplayable.22"}),F6a(a.xa),!0;var f=!1,h=a.PD+3E4<(0,g.OD)()||a.j.isActive();if(a.La.N("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Ae("auth",c),!0;h||dTa(a.xa.kp())||(c.nonfg="paused",h=!0,a.xa.pauseVideo());
("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:hL(e)||iL(e))&&(gOa(a.La.G,e.Db),c.acfallexp=e.Db,f=h=!0);!h&&0<a.C&&(a.j.start(),h=!0,c.delayed="1",--a.C);e=a.xa.Da;!h&&((null==d?0:gL(d))||(null==d?0:fL(d)))&&(gOa(a.La.G,d.Db),f=h=!0,c.cfallexp=d.Db);if(!h)return G6a(a,c);a.PD=(0,g.OD)();h=a.videoData;if(h.fb){h=h.fb.JV();var l=Date.now()/1E3+1800;h=h<l}else h=!1;c.e=b;c.bkg=w_a();h&&(c.staleprog="1");a.Ae("qoe.restart",c);if(h&&H6a(a))return I6a(a),!0;if(!(!g.zC("philips")||"fmt.unplayable"===
b&&e&&e.Ja||"GAME_CONSOLE"===a.La.j.cplatform))try{window.close()}catch(m){}d&&gL(d)?(f=a.La.G,f.ea=!0,f=f.j=!0):e?(b=(b=b_(e.videoTrack)||e.videoTrack.B)?b.j:e.videoTrack.j,b.K+=1,EV(e.policy)?tZ(e.ma.j,b,!0):AZ(e.j,b,!0)):a.videoData.fb&&a.videoData.fb.UQ();a.j.isActive()||Y_(a.xa,f);return!0};
G6a=function(a,b){if(a.videoData.Va)return!1;a.La.wc+=1;if(10>=a.La.wc)return!1;b.exiled=""+a.La.wc;a.Ae("qoe.start15s",b);a.xa.ra("playbackstalledatstart");return!0};
H6a=function(a){return a.B?!0:"yt"===a.La.Fa?a.videoData.Va?25>a.videoData.Mb:!a.videoData.Mb:!1};
I6a=function(a){if(!a.B){a.B=!0;var b=a.xa.getPlayerState();b=b.isPaused()||b.isSuspended();a.xa.Yn();b&&!ST(a.videoData)||a.xa.ra("signatureexpired")}};
K6a=function(a,b){if((a=a.xa.zf())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.rg();b.details.merr=c?c.toString():"0";b.details.mmsg=a.yf()}};
L6a=function(a){return"net.badstatus"===a.errorCode&&(1===a.severity||!!a.details.fmt_unav)};
M6a=function(a,b){return a.La.N("html5_use_network_error_code_enums")&&403===b.details.rc||"403"===b.details.rc?(a=b.errorCode,"net.badstatus"===a||"manifest.net.retryexhausted"===a):!1};
O6a=function(a,b){if(!M6a(a,b)&&!a.B)return!1;b.details.sts="19619";if(H6a(a))return XK(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new WK("qoe.restart",b)),a.Ae(b.errorCode,b.details),I6a(a),!0;6048E5<(0,g.OD)()-a.La.gg&&N6a(a,"signature");return!1};
N6a=function(a,b){try{window.location.reload(),a.Ae("qoe.restart",{detail:"pr."+b})}catch(c){}};
P6a=function(a,b){var c=a.La.G;c.K=!1;c.j=!0;a.Ae("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});Y_(a.xa,!0)};
Q6a=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.B=d};
R6a=function(a,b,c){this.Z=a;this.sF=b;this.xa=c;this.S=this.G=this.j=this.C=this.K=this.B=0;this.D=!1;this.ma=g.JJ(this.Z.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45};
T6a=function(a,b,c){!a.Z.N("html5_tv_ignore_capable_constraint")&&g.UJ(a.Z)&&(c=c.compose(S6a(a,b)));return c};
V6a=function(a,b){var c,d=U6a(a,null==(c=b.j)?void 0:c.videoInfos);c=a.xa.getPlaybackRate();return 1<c&&d?(a=aOa(a.Z.G,b.j.videoInfos,c),new LP(0,a,!0,"o")):new LP(0,0,!1,"o")};
U6a=function(a,b){return b&&g.UJ(a.Z)?b.some(function(c){return 32<c.video.fps}):!1};
W6a=function(a,b){var c=a.xa.sH();if(a.N("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.VR&&NP(b.videoData.Sl))a=c.VR,b.videoData.Sl=new LP(0,a,!1,"u");else{var d;if(c&&(null==(d=c.aM)?0:d.length)&&NP(b.videoData.Sl)){a=new Map;d=g.u(b.j.videoInfos);for(var e=d.next();!e.done;e=d.next())e=e.value,a.set(+e.itag,e.video.j);d=[];c=g.u(c.aM);for(e=c.next();!e.done;e=c.next())(e=a.get(e.value))&&d.push(e);a=Math.max.apply(Math,g.pa(d));b.videoData.Sl=new LP(0,a,!1,"u")}}return b.videoData.Sl};
S6a=function(a,b){if(g.UJ(a.Z)&&XP(a.Z.G,YP.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.iS(a.Z)&&(e=window.screen&&window.screen.width?new g.we(window.screen.width,window.screen.height):null);e||(e=a.Z.Pm?a.Z.Pm.clone():a.sF.Vj());(EC||dZ||d)&&e.scale(g.uS());d=e;wT(b.videoData)||ST(b.videoData);b=b.j.videoInfos;if(b.length){e=.85;var f=b[0].video;"MESH"!==f.projectionType&&"EQUIRECTANGULAR"!==f.projectionType&&"EQUIRECTANGULAR_THREED_TOP_BOTTOM"!==f.projectionType||DOa||(e=
.45);a=g.JJ(a.Z.experiments,"html5_viewport_undersend_maximum");for(f=0;f<b.length;f++){c=b[f];var h=c.video;if(null===d||h.width*e<d.width&&h.height*e<d.height){a&&f&&h.width<d.width*a&&h.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c=new LP(0,"93"===c.itag?g.aL[CAa(d.width,d.height)]:d.j,!1,"r")}else c=gT;c=c.j}c&&(c=Math.max(c,360));return new LP(0,c,!1,"r")};
X6a=function(a){var b,c,d,e;return g.H(function(f){switch(f.j){case 1:return a.j.j&&"function"===typeof(null==(b=navigator.mediaCapabilities)?void 0:b.decodingInfo)?g.z(f,Promise.resolve(),2):f.return(Promise.resolve());case 2:c=g.u(a.j.videoInfos),d=c.next();case 3:if(d.done){f.Ma(0);break}e=d.value;return g.z(f,GAa(e),4);case 4:d=c.next(),f.Ma(3)}})};
$6a=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.JJ(a.Z.experiments,"html5_df_downgrade_thresh"),f=a.N("html5_log_media_perf_info");if(!(5E3>(0,g.OD)()-a.C?0:f||0<e))return!1;var h=((0,g.OD)()-a.C)/1E3;a.C=(0,g.OD)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.G,m=c.totalVideoFrames-a.S;a.G=c.droppedVideoFrames;a.S=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&a.Z.wd()&&a.xa.ya("ddf",{dr:c.droppedVideoFrames,
de:c.totalVideoFrames,comp:n});if(d)return a.j=0,!1;if((m-l)/h>a.ma||!e||g.UJ(a.Z))return!1;a.j=(60<m?l/m:0)>e?a.j+1:0;if(3!==a.j)return!1;Y6a(a,b.videoData.B);a.xa.ya("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},Z6a()));return!0};
Y6a=function(a,b){var c=b.Db,d=b.video.fps;b=b.video.j-1;var e=HP();c=KKa(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.fD("yt-player-performance-cap",e,604800));a.xa.mB()};
a7a=function(a,b){if(!b.j.j)return a.D?new LP(0,360,!1,"b"):gT;for(var c=!1,d=!1,e=g.u(b.j.videoInfos),f=e.next();!f.done;f=e.next())gL(f.value)?c=!0:d=!0;d=c&&d;c=0;f=g.JJ(a.Z.experiments,"html5_performance_cap_floor");e=a.Z.B?240:f;var h=g.u(b.j.videoInfos);for(f=h.next();!f.done;f=h.next()){var l=f.value;if(!d||!gL(l))if(f=IP(l.Db,l.video.fps),l=l.video.j,Math.max(f,e)>=l){c=l;break}}b=b.j.videoInfos[0];if(a=a.N("html5_ps4_shorts_1080p_soft_cap")&&!g.zC("ps4 pro")&&Hna())a=b.video,a=1<a.height/
a.width;a&&(fL(b)||gL(b))&&(c=Math.min(c,720));return new LP(0,c,!1,"b")};
b7a=function(a){a=a.xa.kp();return a.isInline()?new LP(0,480,!1,"v"):a.isBackground()&&60<dF()/1E3?new LP(0,360,!1,"v"):gT};
d7a=function(a,b,c){if(a.Z.experiments.ob("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.UJ(a.Z)&&(1080<=GP(-1)||b.osid))return gT;var d=g.JJ(a.Z.experiments,"html5_autonav_quality_cap"),e=g.JJ(a.Z.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&dF()/1E3>e?(c&&(d=c7a(a,c,d)),new LP(0,d,!1,"e")):gT};
c7a=function(a,b,c){if(a.N("html5_optimality_defaults_chooses_next_higher")&&c)for(a=b.j.videoInfos,b=1;b<a.length;b++)if(a[b].video.j<c)return a[b-1].video.j;return c};
e7a=function(a,b){a.N("html5_log_media_perf_info")&&(a.xa.ya("perfdb",Z6a()),a.xa.ya("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.xa.ya("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return!1===(null==(d=c.B)?void 0:d.smooth)}).map(function(c){return c.itag}).join("-")}))};
Z6a=function(){return Vc(HP(),function(a){return""+a})};
Z_=function(a){g.J.call(this);this.provider=a;this.j=-1;this.G=!1;this.B=-1;this.playerState=new g.QL;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.delay=new g.au(this.send,6E4,this);this.C=!1;g.L(this,this.delay)};
f7a=function(a){0<=a.j||(3===a.provider.xa.getVisibilityState()?a.G=!0:(a.j=g.DN(a.provider),a.delay.start()))};
g7a=function(a){if(!(0>a.B)){var b=g.DN(a.provider),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.XL(a.playerState)&&!g.aH(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
h7a=function(a){var b;switch(null==(b=a.Z.playerCanaryStage)?void 0:b.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}};
j7a=function(a,b){b?i7a.test(a):(a=g.bC(a),Object.keys(a).includes("cpn"))};
l7a=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(eC(a)&&fC()){if(h){var n;2!==(null==(n=k7a.uaChPolyfill)?void 0:n.state.type)?h=null:(h=k7a.uaChPolyfill.state.data.values,h={"Synth-Sec-CH-UA-Arch":h.architecture,"Synth-Sec-CH-UA-Model":h.model,"Synth-Sec-CH-UA-Platform":h.platform,"Synth-Sec-CH-UA-Platform-Version":h.platformVersion,"Synth-Sec-CH-UA-Full-Version":h.uaFullVersion});m=Object.assign(m,h);l.withCredentials=!0}(h=g.Iv("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
d:g.Iv("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.Iv("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);(d=b.va)&&!wS(b)&&(m["X-Goog-AuthUser"]=d,m["X-Yt-Auth-Test"]="test");e&&(m.Authorization="Bearer "+e);h||m["X-Goog-Visitor-Id"]||e||c||d?l.withCredentials=!0:b.N("html5_send_cpn_with_options")&&i7a.test(a)&&(l.withCredentials=!0)}0<Object.keys(m).length&&(l.headers=m);f&&(l.onFinish=f);return 1<Object.keys(l).length?l:null};
m7a=function(a,b,c,d,e,f,h,l){fC()&&c.token&&(a=cC(a,{ctt:c.token,cttype:c.AR,mdx_environment:c.mdxEnvironment}));f||l&&d.N("nwl_skip_retry")?(null==b?b={}:j7a(a,d.N("html5_assert_cpn_with_regex")),h?LE().sendAndWrite(a,b):LE().sendThenWrite(a,b,l)):b?(j7a(a,d.N("html5_assert_cpn_with_regex")),g.oC(a,b)):g.EE(a,e)};
o7a=function(a){for(var b=[],c=0;c<a;c++){for(var d={},e=Math.floor(9*Math.random()*n7a)+n7a,f="",h=0;9>h;h++)f+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(52*Math.random())];d.videoDecoderName=f;d.elapsedTimeMs=e;b.push(d)}return b};
p7a=function(a,b){UO(a,1,b.elapsedTimeMs);XO(a,3,b.videoDecoderName)};
q7a=function(a,b){XO(a,1,b.cpn);UO(a,2,b.sequenceNumber);XO(a,3,b.serializedWatchEndpointLoggingContext);var c;if(b.decoderInfo)for(c=0;c<b.decoderInfo.length;c++)YO(a,6,b.decoderInfo[c],p7a,3);UO(a,10,b.transitionStitchType)};
g.b0=function(a){g.J.call(this);var b=this;this.provider=a;this.logger=new g.eY("qoe");this.j={};this.sequenceNumber=1;this.Mb=NaN;this.lf="N";this.S=this.Yc=this.wc=this.Cb=this.D=0;this.Va=this.qd="";this.Jc=this.Ya=NaN;this.vc=0;this.Td=-1;this.Ad=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.rb=this.Fa=this.Ja=this.isOffline=this.va=!1;this.Kd=[];this.ea=null;this.kb=this.G=this.fb=this.K=!1;this.B=-1;this.eb=!1;this.Bd=new g.au(this.y5,750,this);this.qa=this.contentCpn="";this.Ca=!1;this.ma=
this.adCpn="";this.adFormat=void 0;this.Vd=0;this.Ud=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));this.xb=!1;this.Ub=NaN;this.Oa=0;this.Nd={CJ:function(d){b.CJ(d)},
Peb:function(){return b.C},
Zm:function(){return b.contentCpn},
yeb:function(){return b.qa},
Oeb:function(){return b.Ca},
reportStats:function(){b.reportStats()}};
var c=g.JJ(this.provider.Z.experiments,"html5_qoe_proto_mock_length");c&&!$_.length&&($_=o7a(c));g.L(this,this.Bd);try{navigator.getBattery().then(function(d){b.ea=d})}catch(d){}g.a0(this,0,"vps",["N"]);
a.Z.wd()&&(this.Oa=(0,g.OD)(),this.Ub=g.kC(function(){var d=(0,g.OD)(),e=d-b.Oa;500<e&&b.ya("vmlock",{diff:e.toFixed()});b.Oa=d},250))};
g.a0=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
r7a=function(a,b){var c=a.provider.xa.getCurrentTime();g.a0(a,b,"cmt",[c.toFixed(3)]);c=a.provider.xa.Mk();if(a.C&&1E3*c>a.C.JX+100&&a.C){var d=a.C,e=d.isAd;c=1E3*c-d.JX;a.Pa=1E3*b-d.w$-c-d.i$;c=(0,g.OD)()-c;b=a.Pa;d=a.provider.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.G&&(h.cttAuthInfo={token:d.G,videoId:d.videoId});h.startTime=c-b;iI(f,h);g.hI({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},f);jI("pbs",c,f)}else c=a.provider.xa.oi(),c.K!==
d.clientPlaybackNonce?(c.G=d.clientPlaybackNonce,c.B=b):g.OT(d)||g.UF(new g.nD("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.ya("gllat",{l:a.Pa.toFixed(),prev_ad:+e});delete a.C}};
u7a=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.DN(a.provider);var c=a.provider.xa.kD(),d=c.Sr-(a.Ya||0);0<d&&g.a0(a,b,"bwm",[d,(c.Du-(a.Jc||0)).toFixed(3)]);isNaN(a.Ya)&&c.Sr&&a.isOffline&&a.CJ(!1);a.Ya=c.Sr;a.Jc=c.Du;isNaN(c.bandwidthEstimate)||g.a0(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.Z.wd()&&0!==Object.keys(c.j).length&&a.ya("bwinfo",c.j);if(a.provider.Z.wd()||a.provider.Z.N("html5_log_meminfo"))d=p5a(),Object.values(d).some(function(e){return void 0!==e})&&a.ya("meminfo",d);
a.ea&&g.a0(a,b,"bat",[a.ea.level,a.ea.charging?"1":"0"]);d=a.provider.xa.getVisibilityState();a.Td!==d&&(g.a0(a,b,"vis",[d]),a.Td=d);r7a(a,b);(d=s7a(a.provider))&&d!==a.vc&&(g.a0(a,b,"conn",[d]),a.vc=d);t7a(a,b,c)};
v7a=function(a,b){var c=g.DN(a.provider);g.a0(a,c,"lh",[b?"1":"0"])};
t7a=function(a,b,c){if(!isNaN(c.Wu)){var d=c.Wu;c.B<d&&(d=c.B);g.a0(a,b,"bh",[d.toFixed(3)])}};
w7a=function(a,b,c){g.DS(a.provider.Z,g.RT(a.provider.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.provider.Z.N("kevlar_woffle")||a.provider.Z.N("qoe_nwl_downloads"))e=!0}else a.provider.Z.N("qoe_with_networkless")&&(e=!0);var f=a.provider.Z.N("qoe_send_and_write"),h=a.provider.Z;d=l7a(b,h,a.provider.Z.pageId,a.provider.Z.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,d);h.N("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,
m7a(b,d,{token:a.provider.videoData.G,AR:a.provider.videoData.Jm,mdxEnvironment:a.provider.videoData.mdxEnvironment},h,void 0,e,f&&a.Ja)):e?(e=a.provider.Z.N("networkless_ajax"),h={method:"POST",postBody:c},f&&a.Ja?LE().sendAndWrite(b,h):e?g.oC(b,{method:"POST",postBody:c}):LE().sendThenWrite(b,h)):(f=c,f=void 0===f?"":f,Xqa(b,f)||g.EE(b,void 0,void 0,void 0,f))})};
x7a=function(a){for(var b=0,c=g.u(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number($p(a.j[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.au(a.reportStats,0,a)).start()};
y7a=function(a){a.provider.videoData.Ji&&c0(a,"prefetch");a.provider.videoData.Mb&&a.ya("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.Mb});a.provider.videoData.rb&&c0(a,"monitor");a.provider.videoData.isLivePlayback&&c0(a,"live");KR&&c0(a,"streaming");a.provider.videoData.pk&&a.ya("ctrl",{mode:a.provider.videoData.pk},!0);if(a.provider.videoData.rl){var b=a.provider.videoData.rl.replace(/,/g,"_");a.ya("ytp",{type:b},!0)}a.provider.videoData.ST&&(b=a.provider.videoData.ST.replace(/,/g,
"."),a.ya("ytrexp",{ids:b},!0));var c=a.provider.videoData;b=a.provider.Z.N("enable_white_noise")||a.provider.Z.N("enable_webgl_noop");c=g.JT(c)||g.HT(c)||g.IT(c)||g.KT(c);(b||c)&&(b=(0,g.d0)())&&(a.j.gpu=[b]);ST(a.provider.videoData)&&g.a0(a,g.DN(a.provider),"dt",["1"]);a.provider.Z.wd()&&(b=(0,g.OD)()-a.provider.Z.gg,a.ya("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.G=!0;a.Mb=g.kC(function(){a.reportStats()},1E4)};
A7a=function(a,b,c){var d=g.DN(a.provider);z7a(a,d,b,0,c);u7a(a,d);x7a(a)};
z7a=function(a,b,c,d,e){var f=a.provider.Z.j.cbrver;"Chrome"===a.provider.Z.j.cbr&&/^96[.]/.test(f)&&"net.badstatus"===c&&/rc\.500/.test(e)&&B7a(a,3);a.provider.Z.N("html5_use_ump")&&/b248180278/.test(e)&&B7a(a,4);f=a.provider.xa.getCurrentTime();d=1===d?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+Gxa());e&&c.push(C7a(e));g.a0(a,b,"error",c);a.G=!0};
D7a=function(a){0<=a.B||(a.provider.Z.Uf||3!==a.provider.xa.getVisibilityState()?a.B=g.DN(a.provider):a.eb=!0)};
c0=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c};
OY=function(a,b,c,d,e,f){var h=g.DN(a.provider);1!==c&&3!==c&&5!==c||g.a0(a,h,"vps",[a.lf]);var l=a.j.xvt||[];l.push("t."+h.toFixed(3)+";m."+f.toFixed(3)+";g."+b+";tt."+c+";np.0;c."+d+";d."+e);a.j.xvt=l};
B7a=function(a,b){if(!a.kb){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.kb=!0}};
C7a=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
E7a=function(a){this.provider=a;this.S=!1;this.j=0;this.D=-1;this.Bp=NaN;this.B=0;this.segments=[];this.K=this.G=0;this.ea=this.provider.xa.getVolume();this.ma=this.provider.xa.isMuted()?1:0;this.C=e0(this.provider)};
f0=function(a){a.C.startTime=a.B;a.C.endTime=a.j;a.segments.length&&g.yb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.C:a.segments.length&&a.C.isEmpty()||a.segments.push(a.C);a.G+=a.j-a.B;a.C=e0(a.provider);a.B=a.j};
G7a=function(a){F7a(a);a.K=g.kC(function(){a.update()},100);
a.Bp=g.DN(a.provider);a.C=e0(a.provider)};
F7a=function(a){g.mC(a.K);a.K=NaN};
H7a=function(a,b,c){c-=a.Bp;return b===a.j&&.5<c};
J7a=function(a,b,c,d){this.Z=b;this.segments=[];this.experimentIds=[];this.eb=this.Jc=this.isFinal=this.Mb=this.Uf=this.wc=this.Bd=this.autoplay=this.autonav=!1;this.Yc="yt";this.S=[];this.D=this.K=null;this.sendVisitorIdHeader=this.fb=!1;this.pageId="";this.C="watchtime"===c;this.G="playback"===c;this.va="delayplay"===c;this.qa="atr"===c;this.fg="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.qa?"/api/stats/"+c:"//"+b.Qm+"/api/stats/"+c;d&&(this.Jc=d.fs,d.rtn&&(this.D=d.rtn),this.C?(this.playerState=
d.state,0<d.rti&&(this.K=d.rti)):(this.gg=d.mos,this.Ak=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Td=d.inview),d.size&&(this.qd=d.size));this.Le=g.pd(b.j);this.Tf=b.Bd;b.N("html5_delta_encode_fexp")?this.experimentIds=XNa(b.experiments):this.experimentIds=b.experiments.experimentIds;this.Ya=b.mj;this.Yc=b.Fa;this.region=b.region;this.userAge=b.userAge;this.xb=b.rj;this.Ud=dF();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Ca=b.N("vss_pings_using_networkless")||
b.N("kevlar_woffle");this.hg=b.N("vss_final_ping_send_and_write");this.Ja=b.N("vss_use_send_and_write");this.pageId=b.pageId;this.dh=b.N("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Sf=b.D&&b.N("embeds_append_synth_ch_headers");g.eS(b)&&(this.Pa=b.Ya);b.N("embeds_web_enable_lite_logging")&&g.OC(g.nS(b))&&this.S.push(I7a[1]);this.Gf=b.N("embeds_enable_muted_autoplay")&&g.eS(b);this.accessToken=g.RT(a);a.vc&&(this.vc=a.vc);this.adFormat=a.adFormat;
this.adQueryId=a.adQueryId;this.autoplay=gRa(a);this.G&&(this.Bd=(a.N("html5_enable_log_server_autoplay")||a.N("enable_cleanup_masthead_autoplay_hack_fix"))&&a.Rp&&"adunit"==NT(a)?!0:!1);this.autonav=a.isAutonav||this.autonav;this.contentVideoId=PT(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.wc=a.Sd;a.G&&(this.ma=a.G,this.Ub=a.Jm);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.OF;this.kb=a.kb;a.B&&(this.Vd=a.B.itag,a.D&&a.D.itag!==this.Vd&&(this.Cb=a.D.itag));a.j&&RP(a.j)&&
(this.offlineDownloadUserChoice="1");this.eventLabel=NT(a);this.eb=a.Tf?!1:a.fg;this.Me=a.Mm;if(b=BT(a))this.eh=b;this.We=a.ox;this.Fa=a.Fa;this.eventId=a.eventId;this.playlistId=a.iU||a.playlistId;this.py=a.py;this.pk=a.pk;this.rl=a.rl;this.No=a.No;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.vQ=a.vQ;this.referrer=a.referrer;this.Ko=a.PT||a.Ko;this.rb=a.zB;this.bz=a.bz;this.userGenderAge=a.userGenderAge;
this.wB=a.wB;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;this.Gf&&a.mutedAutoplay&&this.S.push(I7a[2]);this.Va=a.P3;a.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=a.compositeLiveIngestionOffsetToken)};
K7a=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.DS(a.Z,a.accessToken).then(function(d){return l7a(a.uri,a.Z,a.pageId,c,d,b,a.Sf)})};
N7a=function(a,b){return function(){a.Z.N("html5_simplify_pings")?(a.j=a.Oa,a.Kd=b(),a.Ud=0,a.send()):K7a(a).then(function(c){var d=L7a(a);d.cmt=d.len;d.lact="0";var e=b().toFixed(3);d.rt=Number(e).toString();d=g.Dl(a.uri,d);a.Z.N("vss_through_gel_double")&&M7a(d);a.Ca?(null==c&&(c={}),a.Ja?LE().sendAndWrite(d,c):LE().sendThenWrite(d,c)):c?g.oC(d,c):g.EE(d)})}};
L7a=function(a){var b={ns:a.Yc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.B(a.j),fmt:a.Vd,fs:a.Jc?"1":"0",rt:a.B(a.Kd),adformat:a.adFormat,content_v:a.contentVideoId,euri:a.Tf,lact:a.Ud,live:a.eh,cl:(566696613).toString(),mos:a.gg,state:a.playerState,volume:a.Ak};a.subscribed&&(b.subscribed="1");Object.assign(b,a.Le);a.autoplay&&(b.autoplay="1");a.Bd&&(b.sautoplay="1");a.wc&&(b.dni="1");!a.C&&a.Pa&&(b.epm=O7a[a.Pa]);a.isFinal&&(b["final"]="1");a.eb&&(b.splay="1");a.kb&&(b.delay=a.kb);a.Ya&&
(b.hl=a.Ya);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.xb&&(b.uga=a.xb+a.userAge);void 0!==a.Oa&&(b.len=a.B(a.Oa));!a.C&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.D&&(b.rtn=a.B(a.D));a.Ko&&(b.feature=a.Ko);a.pk&&(b.ctrl=a.pk);a.rl&&(b.ytr=a.rl);a.Cb&&(b.afmt=a.Cb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Ad&&(b.lio=a.B(a.Ad));a.C?(b.idpj=a.Me,b.ldpj=a.We,a.Z.N("deprecate_delay_ping")&&a.Mb&&(b.dtm=
"1"),null!=a.K&&(b.rti=a.B(a.K)),a.wB&&(b.ald=a.wB),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken)):void 0!==a.adType&&(b.at=a.adType);a.qd&&(a.G||a.va||a.C)&&(b.size=a.qd);!a.C&&a.S.length&&(b.pbstyle=a.S.join(","));null!=a.Td&&(a.G||a.va||a.C)&&(b.inview=a.B(a.Td));a.C&&(b.volume=g0(a,g.Yp(a.segments,function(d){return d.volume})),b.st=g0(a,g.Yp(a.segments,function(d){return d.startTime})),b.et=g0(a,g.Yp(a.segments,function(d){return d.endTime})),Nr(a.segments,
function(d){return 1!==d.playbackRate})&&(b.rate=g0(a,g.Yp(a.segments,function(d){return d.playbackRate}))),Nr(a.segments,function(d){return"-"!==d.j})&&(b.als=g.Yp(a.segments,function(d){return d.j}).join(",")));
b.muted=g0(a,g.Yp(a.segments,function(d){return d.muted?1:0}));
Nr(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=g0(a,g.Yp(a.segments,function(d){return d.visibilityState})));
Nr(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=g0(a,g.Yp(a.segments,function(d){return d.connectionType})));
Nr(a.segments,function(d){return 0!==d.B})&&(b.blo=g0(a,g.Yp(a.segments,function(d){return d.B})));
Nr(a.segments,function(d){return!!d.C})&&(b.blo=g.Yp(a.segments,function(d){return d.C}).join(","));
Nr(a.segments,function(d){return!!d.compositeLiveStatusToken})&&(b.cbs=g.Yp(a.segments,function(d){return d.compositeLiveStatusToken}).join(","));
Nr(a.segments,function(d){return"-"!==d.G})&&(b.cc=g.Yp(a.segments,function(d){return d.G}).join(","));
Nr(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Yp(a.segments,function(d){return d.clipId}).join(","));
if(Nr(a.segments,function(d){return!!d.D})){var c="au";
a.G&&(c="au_d");b[c]=g.Yp(a.segments,function(d){return d.D}).join(",")}fC()&&a.ma&&(b.ctt=a.ma,b.cttype=a.Ub,b.mdx_environment=a.mdxEnvironment);
a.fg&&(b.etype=void 0!==a.ea?a.ea:0);a.rb&&(b.uoo=a.rb);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=P7a[a.livingRoomAppMode]||a.livingRoomAppMode);a.vc?Q7a(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.vQ,b.osid=a.osid,b.vm=a.videoMetadata,a.adQueryId&&(b.aqi=a.adQueryId),a.autonav&&(b.autonav="1"),a.playlistId&&(b.list=a.playlistId),a.No&&(b.ssrt="1"),a.bz&&(b.upt=a.bz));if(a.G||a.va)a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&
(b.rctn=a.embedsRctn),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken);a.Va&&(b.host_cpn=a.Va);return b};
Q7a=function(a,b){if(b&&a.vc){var c=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=new Set(["aqi","autonav","list","ssrt","upt"]);"3pp"===a.vc.ns&&(b.ns="3pp");for(var f=g.u(Object.keys(a.vc)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.vc[h]||(b[h]=a.vc[h])}};
g0=function(a,b){return g.Yp(b,a.B).join(",")};
M7a=function(a){-1!==a.indexOf("watchtime")&&g.zD("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:a}})};
R7a=function(a,b){a.attestationResponse&&K7a(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.Ca?a.Ja?LE().sendAndWrite(b,c):LE().sendThenWrite(b,c):g.oC(b,c)})};
h0=function(a){g.J.call(this);this.provider=a;this.K="paused";this.D=NaN;this.S=[10,10,10,40];this.ea=this.ma=0;this.Fa=this.Ca=this.Pa=this.Ja=this.Oa=this.va=this.qa=this.B=!1;this.C=this.G=NaN;this.j=new E7a(a)};
T7a=function(a){if(!a.B){16623===a.provider.videoData.fF&&g.UF(Error("Playback for EmbedPage"));var b=i0(a,"playback");a:{if(a.provider.Z.N("web_player_use_server_vss_schedule")){var c,d=null==(c=a.provider.videoData.getPlayerResponse())?void 0:c.playbackTracking,e=null==d?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=null==d?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&0<e.length&&d){c=[];var f=a.provider.videoData.Mm,h=a.provider.videoData.ox,l=-f;e=g.u(e);for(var m=e.next();!m.done;m=
e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.S=c;break a}}a.S=[10+a.provider.videoData.Mm,10,10,40+a.provider.videoData.ox-a.provider.videoData.Mm,40]}G7a(a.j);b.D=j0(a);0<a.C&&(b.j-=a.C);b.send();a.provider.videoData.iy&&(b=a.provider.Z,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.iy,oid:d.eS,ptchn:d.cS,pltype:d.fS,content_v:PT(d)},d.Sx&&Object.assign(c,{m:d.Sx}),b=g.Dl(b.Ja+"ptracking",c),k0(a,b));a.provider.videoData.kb||S7a(a);
a.B=!0;a=a.j;a.j=a.provider.xa.Mk();a.Bp=g.DN(a.provider);!(0===a.B&&5>a.j)&&2<a.j-a.B&&(a.B=a.j);a.S=!0}};
j0=function(a,b){b=void 0===b?NaN:b;var c=g.DN(a.provider);b=isNaN(b)?c:b;b=Math.ceil(b);var d=a.S[a.ma];a.ma+1<a.S.length&&a.ma++;var e=b+d;a.D=g.jC(function(){if(!a.isDisposed()){a.D=NaN;var f=U7a(a),h=V7a(a,f);h.K=e;var l=1E3<a.ea;!(1<f.length)&&f[0].isEmpty()||l||(h.D=j0(a,e));h.send();a.ea++}},1E3*(e-c));
return a.G=e};
l0=function(a){g.lC(a.D);a.D=NaN};
U7a=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.B||f0(a);var b=a.segments;a.segments=[];return b};
i0=function(a,b){var c=W7a(a.provider);Object.assign(c,{state:a.K});b=new J7a(a.provider.videoData,a.provider.Z,b,c);b.j=a.provider.xa.Mk();a.provider.videoData.isLivePlayback||(b.Oa=a.provider.xa.getDuration());a.provider.videoData.j&&(c=a.provider.videoData.j.Ze(b.j))&&(b.Ad=c-b.j);b.Kd=g.DN(a.provider);b.segments=[e0(a.provider)];return b};
V7a=function(a,b){var c=i0(a,"watchtime");a.provider.Z.N("deprecate_delay_ping")&&X7a(a)&&(c.Mb=!0,a.Oa=!0);if(0<a.C){for(var d=g.u(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.C,e.endTime-=a.C;c.j-=a.C}else c.j=a.j.j;c.segments=b;return c};
m0=function(a,b){var c=Y7a(a,!isNaN(a.G));b&&(a.G=NaN);return c};
Y7a=function(a,b){var c=V7a(a,U7a(a));!isNaN(a.G)&&b&&(c.K=a.G);return c};
X7a=function(a){var b=a.provider.Z.N("deprecate_delay_ping")?a.Oa:a.va;if(b=a.provider.videoData.isLoaded()&&a.provider.videoData.kb&&a.B&&!b)b=a.j,b=b.G+b.provider.xa.Mk()-b.B>=a.provider.videoData.kb;return!!b};
S7a=function(a){a.provider.videoData.remarketingUrl&&!a.Ja&&(k0(a,a.provider.videoData.remarketingUrl),a.Ja=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.Pa&&(k0(a,a.provider.videoData.youtubeRemarketingUrl),a.Pa=!0);a.provider.videoData.googleRemarketingUrl&&!a.Ca&&(k0(a,a.provider.videoData.googleRemarketingUrl),a.Ca=!0);a.provider.videoData.ppvRemarketingUrl&&!a.Fa&&(k0(a,a.provider.videoData.ppvRemarketingUrl),a.Fa=!0);a.nB()};
Z7a=function(a){if(!a.isDisposed()&&a.B){a.K="paused";var b=m0(a);b.isFinal=!0;b.send();a.dispose()}};
$7a=function(a,b,c){if(!a.qa){c||(c=i0(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.qa=!0}};
k0=function(a,b){var c=a.provider.Z;g.DS(a.provider.Z,g.RT(a.provider.videoData)).then(function(d){var e=a.provider.Z.pageId,f=a.provider.Z.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.Z.N("vss_pings_using_networkless")||a.provider.Z.N("kevlar_woffle"),l=a.provider.Z.N("allow_skip_networkless");d=l7a(b,c,e,f,d);m7a(b,d,{token:a.provider.videoData.G,AR:a.provider.videoData.Jm,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
a8a=function(){this.endTime=this.startTime=-1;this.G="-";this.playbackRate=1;this.visibilityState=0;this.D="";this.B=0;this.compositeLiveStatusToken=this.C=void 0;this.volume=this.connectionType=0;this.muted=!1;this.j=this.clipId="-"};
n0=function(a,b,c){this.videoData=a;this.Z=b;this.xa=c;this.j=void 0};
g.DN=function(a){return b8a(a)()};
b8a=function(a){if(!a.j){var b=g.db(function(d){var e=(0,g.OD)();d&&631152E6>=e&&(a.xa.ya("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.Z.N("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.xa.JP()}return a.j};
W7a=function(a){var b=a.xa.Fq()||{};b.fs=a.xa.CD();b.volume=a.xa.getVolume();b.muted=a.xa.isMuted()?1:0;b.mos=b.muted;b.inview=a.xa.bD();b.size=a.xa.SC();b.clipid=a.xa.gz();a=a.videoData;var c={};a.B&&(c.fmt=a.B.itag,a.D&&a.D.itag!=a.B.itag&&(c.afmt=a.D.itag));c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.Al&&(c.infringe=1);(a.Tf?0:a.fg)&&(c.splay=1);var d=BT(a);d&&(c.live=d);a.Rp&&(c.sautoplay=1);a.fl&&(c.autoplay=1);a.py&&(c.sdetail=a.py);a.Fa&&(c.partnerid=
a.Fa);a.osid&&(c.osid=a.osid);a.XB&&(c.cc=g.jPa(a.XB));return Object.assign(b,c)};
s7a=function(a){if(navigator.connection&&navigator.connection.type)return c8a[navigator.connection.type]||c8a.other;if(g.UJ(a.Z)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0};
e0=function(a){var b=new a8a,c;b.G=(null==(c=W7a(a).cc)?void 0:c.toString())||"-";b.playbackRate=a.xa.getPlaybackRate();c=a.xa.getVisibilityState();0!==c&&(b.visibilityState=c);a.Z.Ub&&(b.B=1);b.C=a.videoData.jx;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.xa.getAudioTrack();c.Rc&&c.Rc.id&&"und"!==c.Rc.id&&(b.D=c.Rc.id);b.connectionType=s7a(a);b.volume=a.xa.getVolume();b.muted=a.xa.isMuted();b.clipId=a.xa.gz()||"-";b.j=a.videoData.IT||"-";return b};
g.o0=function(a){g.J.call(this);var b=this;this.provider=a;this.C=new Map;this.Nd={Yeb:function(){return b.qoe}};
this.provider.videoData.Ie()&&!this.provider.videoData.Rl&&(this.j=new h0(this.provider),g.L(this,this.j),this.qoe=new g.b0(this.provider),g.L(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.yh=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.yh,this.j));if(this.provider.N("html5_only_send_cas_health_pings")&&("HTML5_PLAYER_CANARY_TYPE_EXPERIMENT"===a.Z.playerCanaryState||"HTML5_PLAYER_CANARY_TYPE_CONTROL"===a.Z.playerCanaryState)||!this.provider.N("html5_only_send_cas_health_pings"))this.B=
new Z_(this.provider),g.L(this,this.B)};
PY=function(a){a.B&&f7a(a.B);a.qoe&&D7a(a.qoe)};
l0a=function(a){a.j&&T7a(a.j);if(a.B){a=a.B;var b=g.DN(a.provider);0>a.j&&(a.j=b,a.delay.start());a.B=b;a.D=b}};
d8a=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.yh){var b;null!=(b=a.C.get(a.yh))&&f0(b.j)}else a.j&&f0(a.j.j)};
m0a=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.G){"PL"===b.lf&&(b.lf="N");var c=g.DN(b.provider);g.a0(b,c,"vps",[b.lf]);b.K||(0<=b.B&&(b.j.user_intent=[b.B.toString()]),b.K=!0);b.provider.Z.wd()&&b.ya("finalized",{});b.Ja=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.u(a.C.values()),c=b.next();!c.done;c=b.next())Z7a(c.value);else a.j&&Z7a(a.j);a.dispose()};
e8a=function(a,b){a.j&&$7a(a.j,b)};
f8a=function(a){if(!a.j)return null;var b=i0(a.j,"atr");return function(c){a.j&&$7a(a.j,c,b)}};
g8a=function(a,b,c,d){c.adFormat=c.Me;var e=b.xa;b=new h0(new n0(c,b.Z,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Mk:function(){return e.Mk()},
kD:function(){return e.kD()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
oD:function(){return e.oD()},
getVisibilityState:function(){return e.getVisibilityState()},
oi:function(){return e.oi()},
Fq:function(){return e.Fq()},
getVolume:function(){return e.getVolume()},
isMuted:function(){return e.isMuted()},
CD:function(){return e.CD()},
gz:function(){return e.gz()},
bD:function(){return e.bD()},
SC:function(){return e.SC()},
JP:function(){e.JP()},
lE:function(){e.lE()},
ya:function(f,h){e.ya(f,h)}}));
b.C=d;g.L(a,b);return b};
h8a=function(){this.Wu=0;this.C=this.Du=this.Sr=this.B=NaN;this.j={};this.bandwidthEstimate=NaN};
p0=function(a,b,c){g.J.call(this);var d=this;this.Z=a;this.xa=b;this.B=c;this.j=new Map;this.yh="";this.Nd={hp:function(){return Array.from(d.j.keys())}}};
i8a=function(){this.j=g.oza;this.array=[]};
k8a=function(a,b,c){var d=[];for(b=j8a(a,b);b<a.array.length;++b){var e=a.array[b];(e.end<=c||e.contains(c))&&d.push(e);if(e.start>c)break}return d};
l8a=function(a,b){var c=[];a=g.u(a.array);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
m8a=function(a){return a.array.slice(j8a(a,0x7ffffffffffff),a.array.length)};
j8a=function(a,b){a=Tb(a.array,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
n8a=function(a,b){var c=NaN;a=g.u(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.end<c)&&(c=d.end),d.start>b&&(isNaN(c)||d.start<c)){c=d.start;break}return c};
o8a=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
q0=function(a,b,c,d){g.J.call(this);this.ma=a;this.va=b;this.G=c;this.ea=d;this.B=NaN;this.K=this.S=this.started=!1;this.C=[];this.qa=new g.au(this.Lm,250,this);g.L(this,this.qa);this.D=new g.au(this.Lm,0,this);g.L(this,this.D);this.j=new i8a};
p8a=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.ea(g.pK(d.namespace),d):a.ea(g.qK(d.namespace),d)}};
q8a=function(a){this.timeStamp=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.UJ(a)&&(this.C=.01)};
r0=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
fBa=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(0<b&&a.mediaTime===b)return c-a.timeStamp>(d||!a.B?1500:400);a.mediaTime=b;a.timeStamp=c;return!1};
r8a=function(a,b){this.videoData=a;this.j=b};
s8a=function(a,b,c){return OQa(b,c).then(function(){return uC(new r8a(b,b.C))},function(d){d instanceof Error&&g.UF(d);
var e=rL('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=tL('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.bOa(a.G,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.Mv(),d:!!b.Ub,drm:b.pj(),f18:0<=b.Gf.indexOf("itag=18"),c18:e};b.j&&(b.pj()?(e.f142=!!b.j.j["142"],e.f149=!!b.j.j["149"],e.f279=!!b.j.j["279"]):(e.f133=!!b.j.j["133"],e.f140=!!b.j.j["140"],e.f242=!!b.j.j["242"]),e.cAAC=f,e.cAVC=tL('video/mp4; codecs="avc1.42001E"'),
e.cVP9=tL('video/webm; codecs="vp9"'));b.K&&(e.drmsys=b.K.keySystem,f=0,b.K.j&&(f=Object.keys(b.K.j).length),e.drmst=f);return new WK(d,e,h)})};
s0=function(a,b,c){g.lG.call(this);this.videoData=a;this.experiments=b;this.ma=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.K=0;c=new t8a;"ULTRALOW"===a.latencyClass&&(c.D=!1);a.rb?c.B=3:g.FT(a)&&(c.B=2);"NORMAL"===a.latencyClass&&(c.G=!0);var d=g.JJ(b,"html5_liveness_drift_proxima_override");a.isProximaLatencyEligible&&d&&(c.j=d);if(g.zC("trident/")||g.zC("edge/"))c.C=Math.max(c.C,g.JJ(b,"html5_platform_minimum_readahead_seconds")||3);g.JJ(b,"html5_minimum_readahead_seconds")&&(c.C=g.JJ(b,"html5_minimum_readahead_seconds"));
g.JJ(b,"html5_maximum_readahead_seconds")&&(c.K=g.JJ(b,"html5_maximum_readahead_seconds"));b.ob("html5_force_adaptive_readahead")&&(c.D=!0);if(b=g.JJ(b,"html5_liveness_drift_chunk_override"))c.j=b;yT(a)&&(c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2));this.policy=c;this.S=1!==this.policy.B;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.rb&&b--;yT(a)&&(b=1);this.j=u8a(this,b)};
u0=function(a,b){var c=a.Cq(),d=a.policy.j;a.G||(d=Math.max(d-1,0));a=d*t0(a);return b>=c-a};
v8a=function(a,b,c){b=u0(a,b);c||b?b&&(a.C=!0):a.C=!1;a.S=2===a.policy.B||3===a.policy.B&&a.C};
w8a=function(a,b){b=u0(a,b);a.G!==b&&a.ra("livestatusshift",b);a.G=b};
t0=function(a){return a.videoData.j?uR(a.videoData.j)||5:5};
u8a=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.C/t0(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.K/t0(a))),b)};
t8a=function(){this.C=0;this.K=Infinity;this.D=!0;this.j=2;this.B=1;this.G=!1};
x0=function(a){g.J.call(this);this.xa=a;this.Z=this.xa.W();this.D=this.j=0;this.C=new g.au(this.Df,1E3,this);this.Pa=new v0({delayMs:g.JJ(this.Z.experiments,"html5_seek_timeout_delay_ms")});this.qa=new v0({delayMs:g.JJ(this.Z.experiments,"html5_long_rebuffer_threshold_ms")});this.Va=w0(this,"html5_seek_set_cmt");this.Ca=w0(this,"html5_seek_jiggle_cmt");this.Ja=w0(this,"html5_seek_new_elem");this.kb=w0(this,"html5_unreported_seek_reseek");this.ma=w0(this,"html5_long_rebuffer_jiggle_cmt");this.ea=new v0({delayMs:2E4});
this.Fa=w0(this,"html5_seek_new_elem_shorts");this.Oa=w0(this,"html5_seek_new_media_source_shorts_reuse");this.S=w0(this,"html5_gapless_handoff_started_long_rebuffer");this.K=w0(this,"html5_gapless_handoff_close_end_long_rebuffer");this.G=w0(this,"html5_ads_preroll_lock_timeout");this.Ya=new v0({delayMs:g.JJ(this.Z.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Ty:!this.Z.N("html5_report_slow_ads_as_error")});this.eb=new v0({delayMs:g.JJ(this.Z.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Ty:!this.Z.N("html5_skip_slow_buffering_ad")});
this.fb=new v0({delayMs:g.JJ(this.Z.experiments,"html5_slow_start_timeout_delay_ms")});this.va=w0(this,"html5_slow_start_no_media_source");this.B={};g.L(this,this.C)};
w0=function(a,b){var c=g.JJ(a.Z.experiments,b+"_delay_ms");a=a.Z.N(b+"_cfl");return new v0({delayMs:c,Ty:a})};
y0=function(a,b,c,d,e,f,h,l){b.test(c)?(a.Ae(e,b,h),b.Ty||f()):(b.HJ&&b.B&&!b.D?(c=(0,g.OD)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.B>b.HJ,c=b.j&&c-b.j>b.EQ||f?b.D=!0:!1):c=!1,c&&(l=Object.assign({},a.uc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.xa.ya("workaroundReport",l),d&&(b.reset(),a.B[e]=!1)))};
v0=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.EQ?1E3:b.EQ,d=void 0===b.HJ?3E4:b.HJ;b=void 0===b.Ty?!1:b.Ty;this.j=this.B=this.C=this.startTimestamp=0;this.D=!1;this.G=Math.ceil(a/1E3);this.EQ=c;this.HJ=d;this.Ty=b};
A8a=function(a){g.J.call(this);var b=this;this.xa=a;this.Z=this.xa.W();this.videoData=this.xa.getVideoData();this.policy=new x8a;this.Ca=new x0(this.xa);this.playbackData=null;this.xb=new g.ZK;this.K=this.B=this.Da=this.mediaElement=null;this.j=NaN;this.C=0;this.Oa=NaN;this.D=null;this.Pa=NaN;this.G=this.ea=null;this.qa=!1;this.rb=g.JJ(this.Z.experiments,"html5_qoe_lh_max_report_count");this.Cb=g.JJ(this.Z.experiments,"html5_qoe_lh_min_duration_ms");this.Ub=NaN;this.vc=0;this.va=!1;this.Ja=new g.au(function(){y8a(b,
!1)},2E3);
this.wc=new g.au(function(){z0(b)});
this.fb=new g.au(function(){b.qa=!0;z8a(b,{})});
this.timestampOffset=0;this.Ya=!0;this.eb=0;this.Mb=NaN;this.Fa=new g.au(function(){var c=b.Z.Tf;c.j+=1E4/36E5;c.j-c.C>1/6&&(tOa(c),c.C=c.j);b.Fa.start()},1E4);
this.kb=this.Va=!1;this.S=0;this.ma=-1;g.L(this,this.Ca);g.L(this,this.xb);g.L(this,this.Ja);g.L(this,this.fb);g.L(this,this.wc);g.L(this,this.Fa)};
C8a=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new eSa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(rT(a.videoData)&&a.Da){var c=a.Da.GG.Si()||0;break a}if(a.videoData.j){c=a.videoData.j.va;break a}}c=0}return c}),a.B=new s0(a.videoData,a.Z.experiments,function(){return a.Re(!0)}));
B8a(a)||(a.C=a.C||(g.TT(a.videoData)?0:a.videoData.startSeconds)||0)};
E8a=function(a,b){(a.Da=b)?D8a(a,!0):A0(a)};
H8a=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.K&&d){var e=a.K;if(e.j&&!(c>=e.B&&c<e.C)){var f=e.j.Mh(c);-1!==f&&(e.B=e.j.getStartTime(f),e.C=e.B+e.j.getDuration(f),f=F8a?(0,g.OD)()/1E3-e.j.Ze(f):Date.now()/1E3-e.j.Ze(f),f-=e.G(),e.D.add(f))}}a.B&&(d&&(e=a.B,f=G8a(a),e.D++,3>e.D||3E3>g.eb()-e.K||(e.K=g.eb(),e.B.push(f),50<e.B.length&&e.B.shift())),e=a.B,v8a(e,c,void 0===b?!0:b),w8a(e,c),b&&y8a(a,!0));a.Z.N("html5_report_live_head_condition_to_qoe")&&(d!==a.Va&&0===a.rb&&0===a.Cb?
(b=a.xa.Lc(),b.qoe&&v7a(b.qoe,d),a.Va=d):d!==a.Va&&(b=a.getCurrentTime()-a.Ub,c=0!==a.rb&&a.vc>=a.rb,0!==a.Cb&&b<=a.Cb||c||(b=a.xa.Lc(),b.qoe&&v7a(b.qoe,d),a.Va=d,a.vc++,a.Ub=a.getCurrentTime())))};
y8a=function(a,b){if(a.B){var c=a.B;var d=a.getCurrentTime();!u0(c,d)&&c.Rq()?(c.policy.G&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.me()?Math.min(c.videoData.me()+10,c.Cq()):NaN;if(!isNaN(c)){if(a.Da&&b&&(b=a.Ja.isActive(),d=a.B.Cq(),(d=L5a(a.Da,d-a.Xc()))&&!b)){a.Ja.start();a.xa.ya("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.Xc()});a.seekTo(d+a.Xc(),{Id:"seektimeline_inBufferSeek"});return}a.seekTo(c,{Id:"seektimeline_pegToLive"})}}};
D8a=function(a,b){if(a.B&&a.Da){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.B,b.B.length){c=b.j;b:{if(b.B.length){if(1<Math.min.apply(null,b.B)){var d=u8a(b,b.j-1);break b}if(b.policy.D){d=u8a(b,b.j+1);break b}}d=b.j}b.j=d;if(c=c!==b.j)b.B=[],b.D=0}else c=!1;c&&(b=a.xa.Lc(),c=a.B,c=t0(c)*c.j,b.qoe&&(b=b.qoe,g.a0(b,g.DN(b.provider),"lra",[c]),b.ya("live-readahead-seconds",{v:c})));b=a.Da;d=a.B.j;a=a.B;
a=(a.j-1+a.policy.j)*t0(a);c=NaN;var e=b.Cb;2===e||-1===e?yT(b.xa.getVideoData())&&(c=b.policy.Zx):(--d,e=b.xa.getVideoData(),e.Fc()&&"ULTRALOW"!==e.latencyClass&&!e.isLowLatencyLiveStream&&(c=b.policy.Oz));d=Math.max(d,0);e=b.D;e.hh=d;e.ma=c;b.G&&(b.G.qa=a)}};
I8a=function(a,b){a.C=b};
z8a=function(a,b){J8a(a,b).then(void 0,function(){A0(a)});
K8a(a).then(function(c){L8a(a,c)},function(){A0(a)});
P_a(a.xa,b);a.Z.wd()&&(b=a.uc(),b["native"]=""+ +a.va,b.tgt=""+a.j,b.otgt=""+(a.j+a.timestampOffset),a.xa.ya("startSeek",b))};
J8a=function(a,b){a.ea||(a.Da?isFinite(a.j)?a.ea=a.Da.seek(a.j-a.timestampOffset,b):(pT(a.videoData),a.ea=N_(a.Da),a.j=a.Da.getCurrentTime()+a.timestampOffset):a.ea=Uf(a.j-a.timestampOffset));return a.ea};
K8a=function(a){var b=a.D;b||(a.D=new NL,b=a.D,z0(a));return b};
M8a=function(a,b,c){return isNaN(b)?NaN:g.ne(b,a.me(),a.Re(c))};
z0=function(a){if(a.D)if(a.videoData.isLivePlayback&&a.videoData.C&&!a.videoData.C.j&&a.mediaElement&&0<a.mediaElement.yk()&&0<XAa(a.mediaElement)&&(a.j=M8a(a,a.j,!1)),!a.mediaElement||!N8a(a))a.wc.start(750);else if(!isNaN(a.j)&&isFinite(a.j)&&a.Pa!==a.j-a.timestampOffset){var b=a.N("html5_live_seek_timeline_timestamps")?a.j-a.timestampOffset:a.j;b=a.mediaElement.getCurrentTime()-b;if(Math.abs(b)<=a.eb)O8a(a);else{if(a.videoData.aC)a.videoData.aC=!1;else if(!pT(a.videoData)&&a.j>=a.Re()-.1){a.j=
a.Re();a.D.resolve(a.Re());vY(a.xa);return}try{var c=a.j-a.timestampOffset;a.mediaElement.seekTo(c);a.Ca.j=c;a.Pa=c;a.C=a.j}catch(d){}}}};
N8a=function(a){if(!a.mediaElement||0===a.mediaElement.yk()||0<a.mediaElement.rg())return!1;var b=0<a.mediaElement.getCurrentTime();if(!(a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&a.videoData.pj())return b;if(0<=a.j){var c=a.mediaElement.jD();if(c.length||!b)return xL(c,a.j-a.timestampOffset)}return b};
O8a=function(a){if(a.D){var b=a.mediaElement;a.ma=a.j;a.D.resolve(b.getCurrentTime())}};
L8a=function(a,b){a.G&&(a.G.resolve(b),a.xa.ra("SEEK_COMPLETE"),a.Z.wd()&&(b=a.uc(),b["native"]=""+ +a.va,b.otgt=""+(a.j+a.timestampOffset),a.xa.ya("seekEnd",b)));A0(a)};
A0=function(a){a.j=NaN;a.Pa=NaN;a.D=null;a.ea=null;a.G=null;a.qa=!1;a.va=!1;a.eb=0;a.Ja.stop();a.fb.stop()};
Q8a=function(a){if(a.mediaElement){if(!a.N("html5_restore_time_after_unpause"))for(var b=g.u(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.xb.V(a.mediaElement,c.value,function(d){P8a(a,d)});
a.G||a.C||!a.mediaElement.LQ()||a.seekTo(.01,{Id:"seektimeline_setupMediaElement"})}};
P8a=function(a,b){var c=a.mediaElement;b=b.type;switch(b){case "seeking":var d=c.getCurrentTime()+a.timestampOffset;if(!a.D||a.va&&d!==a.j)a.D=new NL,a.Pa=d,c=c.getCurrentTime(),a.Ca.j=c,a.seekTo(d,{Id:"seektimeline_mediaElementEvent"}),a.va=!0;break;case "seeked":O8a(a);break;case "loadedmetadata":if(a.Ya){c="ss";d=0;a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.Jc&&!B8a(a)&&(c="mss",d=a.videoData.Jc);a.N("html5_prioritize_st_start_seconds")&&!d&&a.videoData.mj&&(c="stss",d=a.videoData.mj);
var e;if(e=!d)e=(GT(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||B8a(a))&&!!a.videoData.j;e&&(d=a.videoData.liveUtcStartSeconds||a.videoData.Jc,c="utc",d=a.Re()-a.Ze(a.Re())+d);!d&&a.videoData.mj&&(c="stss",d=a.videoData.mj);e={};if(d){if(d>a.Re()||d<a.me())e.minSeekableTime=a.me(),e.maxSeekableTime=a.Re(),a.xa.ya("startSecondsOutOfBounds",e),a.videoData.Fc()&&(d=M8a(a,d,!1));a.seekTo(d,{Id:"seektimeline_startSeconds"});e[c]=d;a.xa.ya("startSeconds",e);a.Ya=
!1}else a.videoData.Jc&&(e[c]=a.videoData.Jc+a.Xc(),a.xa.ya("startSeconds",e))}z0(a);break;case "progress":z0(a);break;case "pause":a.Z.N("html5_restore_time_after_unpause_redux")&&(a.S=a.getCurrentTime())}a.S&&(("play"===b||"playing"===b||"timeupdate"===b||"progress"===b)&&10<a.getCurrentTime()-a.S&&a.seekTo(a.S,{Id:"pauseJump"}),"pause"!==b&&"play"!==b&&"playing"!==b&&"progress"!==b&&(a.S=0));0<=a.ma&&(("seeked"===b||"play"===b||"playing"===b)&&10<a.getCurrentTime()-a.ma&&(a.Z.wd()&&(c=a.uc(),c.lastSeekedTime=
""+a.ma,a.xa.ya("shouldSJ",c)),a.N("html5_not_reset_media_source")&&a.seekTo(a.ma,{Id:"seekJump"})),"seeked"!==b&&"play"!==b&&"playing"!==b&&(a.ma=-1))};
B8a=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds};
R8a=function(a,b){a.xa.ya("sdai",{adj4t:b.toFixed(3)});a.Oa=b;b+=1;a.j=b;a.C=b;K8a(a).then(function(c){L8a(a,c)},function(){A0(a)})};
G8a=function(a){return a.mediaElement?PL(a.mediaElement):0};
x8a=function(){};
B0=function(){this.finished=this.started=!1};
X8a=function(a){function b(e){return c.Ol&&(!d.Om||!d.La.K)||"yt"!==c.Fa&&(38===d.Fa&&"books"===c.playerStyle||30===d.Fa&&"docs"===c.playerStyle||33===d.Fa&&"google-live"===c.playerStyle)?S8a(a,d,e):T8a(a,d).then(function(){C0(a,d)},function(f){C0(a,d,!0);
throw f;})}
var c=a.W(),d=a.getVideoData();d.isDisposed();d.loading=!0;return U8a(a)?V8a(a,d).then(function(){C0(a,d)},function(e){e=YK(e);
if(XK(e.severity))return C0(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(W8a=!0);a.handleError(e);return b("onesie")}):b("gvi")};
U8a=function(a){var b=a.W();if(b.N("html5_disable_onesie")||!b.N("html5_onesie")||!b.N("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.Fa)return!1;var c=b.Jl;if(!c||!c.j)return a.handleError(new WK("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.G<(0,g.OD)()&&(a.ya("okexp","1"),(c=a.rz())&&b.N("html5_prefer_trusted_host_on_key_expiration"))){c.B=!0;var d;(b=null==(d=c.j.get(0))?void 0:aQ(d.location))&&!dY(b)&&c.j.delete(0)}if(W8a)return a.ya("ost3","1"),!1;d={};return 0<Object.keys(d).length?
(d.onesie="0",a.handleError(new WK("html5.missingapi",d)),!1):!0};
Y8a=function(a){var b=yU();bSa(b,a);return g.vI(b,uxa())};
V8a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t,v,x,B,G,F,I,P,R,Z,ma,ua,oa,ia,Aa;return g.H(function(X){if(1==X.j)return b.fetchType="onesie",c=vRa(b,a.getPlayerSize(),a.getVisibilityState()),d=new E_(a,c),g.z(X,d.fetch(),2);e=X.B;f={player_response:e};b.loading=!1;h=a.qe.Qt;if(d.Pg){l=g.u(d.Pg.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.u(n),q=p.next().value,r=p.next().value,t=q,v=r,h.j.set(t,v,180),t===b.videoId&&(x=v.zq(),b.fP=x);h.cz=d}B=g.u(d.EV.entries());for(G=B.next();!G.done;G=
B.next())F=G.value,I=g.u(F),P=I.next().value,R=I.next().value,Z=P,ma=R,h.B.set(Z,ma,180);g.kT(b,f,!0);if(b.loading||iT(b))return X.return(Promise.resolve());h.j.Of();h.B.Of();b.fP=[];ua={};oa="onesie.response";ia=0;b.errorCode?(oa="auth",ua.ec=b.errorCode,ua.ed=b.errorDetail,ua.es=b.Xm||"",ia=2):(ua.successButUnplayable="1",ua.disposed=""+ +b.isDisposed(),ua.afmts=""+ +/adaptiveFormats/.test(e),ua.cpn=b.clientPlaybackNonce);Aa=new WK(oa,ua,ia);return X.return(Promise.reject(Aa))})};
T8a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r;return g.H(function(t){switch(t.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){t.Ma(4);break}if(!(0<f)){t.Ma(5);break}return g.z(t,ig(5E3),6);case 6:h=new g.nD("Retrying OnePlatform request",{attempt:f}),g.UF(h);case 5:return g.za(t,7),g.z(t,Z8a(a,b),9);case 9:return t.return();case 7:l=g.Ca(t);m=YK(l);n=m.errorCode;p=a.W();p.N("html5_use_network_error_code_enums")?d&&"manifest.net.badstatus"===n&&401===m.details.rc&&(d=!1,f===e-1&&(e+=1)):d&&"manifest.net.badstatus"===
n&&"401"===m.details.rc&&(d=!1,f===e-1&&(e+=1));if("auth"===n||"manifest.net.retryexhausted"===n)return t.return(Promise.reject(m));a.handleError(m);if(XK(m.severity)){t.Ma(4);break}case 3:f++;t.Ma(2);break;case 4:return q=c?"auth":"manifest.net.retryexhausted",r=c?2:1,t.return(Promise.reject(new WK(q,{backend:"op"},r)))}})};
Z8a=function(a,b){function c(oa){2===oa.readyState&&a.md("ps_c")}
var d,e,f,h,l,m,n,p,q,r,t,v,x,B,G,F,I,P,R,Z,ma,ua;return g.H(function(oa){switch(oa.j){case 1:b.fetchType="gp";d=a.W();e=g.DS(d,g.RT(b));if(!e.j){f=e.getValue();oa.Ma(2);break}return g.z(oa,e.j,3);case 3:f=oa.B;case 2:return h=f,l=Y8a(h),m=vRa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.zH($8a),p=g.RT(b),q=(0,g.OD)(),r=!1,t="empty",v=0,a.md("psns"),x={rA:c},g.z(oa,g.nI(l,m,n,void 0,x),4);case 4:B=oa.B;a.md("psnr");if(b.isDisposed())return oa.return();B?"error"in B&&B.error?(r=!0,t="esf:"+B.error.message,
v=B.error.code):B.errorMetadata&&(r=!0,t="its",v=B.errorMetadata.status):r=!0;if(r)return G=0,F=((0,g.OD)()-q).toFixed(),I={},I=d.N("html5_use_network_error_code_enums")?{backend:"op",rc:v,rt:F,reason:t,has_kpt:b.xb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.Iv("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:p?"1":"0",has_vvt:b.va?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.pk||"",token_eq:p===g.RT(b)?"1":"0"}:{backend:"op",
rc:""+v,rt:F,reason:t,has_kpt:b.xb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.Iv("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:p?"1":"0",has_vvt:b.va?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.pk||"",token_eq:p===g.RT(b)?"1":"0"},P="manifest.net.connect",429===v?(P="auth",G=2):200<v&&(P="manifest.net.badstatus",400===v&&(G=2)),oa.return(Promise.reject(new WK(P,I,G)));b.loading=!1;g.kT(b,{raw_player_response:B},!0);
R=B;g.jS(b.W())&&R&&R.trackingParams&&CP(R.trackingParams);if(b.errorCode)return Z={ec:b.errorCode,ed:b.errorDetail,es:b.Xm||""},oa.return(Promise.reject(new WK("auth",Z,2)));if(!b.loading&&!iT(b))return ma=b.isAd()?"auth":"manifest.net.retryexhausted",ua=b.isAd()?2:1,oa.return(Promise.reject(new WK(ma,{successButUnplayable:"1",hasMedia:g.DT(b)?"1":"0"},ua)));g.ya(oa)}})};
S8a=function(a,b,c){function d(v){v=YK(v);if(XK(v.severity))return Promise.reject(v);a.handleError(v);return!1}
function e(){return!0}
var f,h,l,m,n,p,q,r,t;return g.H(function(v){switch(v.j){case 1:var x=a.W(),B=a.getPlayerSize(),G=a.getVisibilityState();a.isFullscreen();var F=window.location.search;if(38===b.Fa&&"books"===x.playerStyle)F=b.videoId.indexOf(":"),F=g.Dl("//play.google.com/books/volumes/"+b.videoId.slice(0,F)+"/content/media",{aid:b.videoId.slice(F+1),sig:b.k5});else if(30===b.Fa&&"docs"===x.playerStyle)F=g.Dl("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.KT,authkey:b.fU,eurl:x.Bd});else if(33===
b.Fa&&"google-live"===x.playerStyle)F=g.Dl("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{"yt"!==x.Fa&&g.TF(Error("getVideoInfoUrl for invalid namespace: "+x.Fa));var I={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:x.Bd,ps:x.playerStyle,el:NT(b),hl:x.mj,list:b.playlistId,agcid:b.RT,aqi:b.adQueryId,sts:19619,lact:dF()};Object.assign(I,x.j);x.forcedExperiments&&(I.forced_experiments=x.forcedExperiments);b.va?(I.vvt=b.va,b.mdxEnvironment&&(I.mdx_environment=b.mdxEnvironment)):
g.RT(b)&&(I.access_token=g.RT(b));b.adFormat&&(I.adformat=b.adFormat);0<=b.slotPosition&&(I.slot_pos=b.slotPosition);b.breakType&&(I.break_type=b.breakType);null!==b.AB&&(I.ad_id=b.AB);null!==b.CB&&(I.ad_sys=b.CB);null!==b.dC&&(I.encoded_ad_playback_context=b.dC);b.EK&&(I.tpra="1");x.captionsLanguagePreference&&(I.cc_lang_pref=x.captionsLanguagePreference);x.Mb&&2!==x.Mb&&(I.cc_load_policy=x.Mb);var P=g.lD(g.kD(),65);g.vS(x)&&null!=P&&!P&&(I.device_captions_on="1");x.mute&&(I.mute=x.mute);b.annotationsLoadPolicy&&
2!==x.annotationsLoadPolicy&&(I.iv_load_policy=b.annotationsLoadPolicy);b.Tx&&(I.endscreen_ad_tracking=b.Tx);(P=x.Oa.get(b.videoId))&&P.lK&&(I.ic_track=P.lK);b.Ca&&(I.itct=b.Ca);gRa(b)&&(I.autoplay="1");b.mutedAutoplay&&(I.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(I.autonav="1");b.DL&&(I.noiba="1");b.isMdxPlayback&&(I.mdx="1",I.ytr=b.rl);b.mdxControlMode&&(I.mdx_control_mode=b.mdxControlMode);b.fv&&(I.ytrcc=b.fv);b.GL&&(I.utpsa="1");b.isFling&&(I.is_fling="1");b.isInlinePlaybackNoAd&&(I.mute="1");
b.vnd&&(I.vnd=b.vnd);b.forceAdsUrl&&(P=3===b.forceAdsUrl.split("|").length,I.force_ad_params=P?b.forceAdsUrl:"||"+b.forceAdsUrl);b.Ji&&(I.preload=b.Ji);B.width&&(I.width=B.width);B.height&&(I.height=B.height);(b.Tf?0:b.fg)&&(I.splay="1");b.ypcPreview&&(I.ypc_preview="1");PT(b)&&(I.content_v=PT(b));b.rb&&(I.livemonitor=1);x.va&&(I.authuser=x.va);x.pageId&&(I.pageid=x.pageId);x.xb&&(I.ei=x.xb);x.D&&(I.iframe="1");b.contentCheckOk&&(I.cco="1");b.racyCheckOk&&(I.rco="1");x.K&&b.HO&&(I.live_start_walltime=
b.HO);x.K&&b.Ml&&(I.live_manifest_duration=b.Ml);x.K&&b.playerParams&&(I.player_params=b.playerParams);x.K&&b.cycToken&&(I.cyc=b.cycToken);x.K&&b.FK&&(I.tkn=b.FK);0!==G&&(I.vis=G);x.enableSafetyMode&&(I.enable_safety_mode="1");b.xb&&(I.kpt=b.xb);b.Go&&(I.kids_age_up_mode=b.Go);b.kidsAppInfo&&(I.kids_app_info=b.kidsAppInfo);b.xz&&(I.upg_content_filter_mode="1");x.widgetReferrer&&(I.widget_referrer=x.widgetReferrer.substring(0,128));b.qa?(B=null!=b.qa.latitudeE7&&null!=b.qa.longitudeE7?b.qa.latitudeE7+
","+b.qa.longitudeE7:",",B+=","+(b.qa.clientPermissionState||0)+","+(b.qa.locationRadiusMeters||"")+","+(b.qa.locationOverrideToken||"")):B=null;B&&(I.uloc=B);b.Eo&&(I.internalipoverride=b.Eo);x.embedConfig&&(I.embed_config=x.embedConfig);x.Ul&&(I.co_rel="1");0<x.ancestorOrigins.length&&(I.ancestor_origins=Array.from(x.ancestorOrigins).join(","));void 0!==x.homeGroupInfo&&(I.home_group_info=x.homeGroupInfo);void 0!==x.livingRoomAppMode&&(I.living_room_app_mode=x.livingRoomAppMode);x.enablePrivacyFilter&&
(I.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(I.is_living_room_deeplink="1");b.zx&&b.Ax&&(I.clip=b.zx,I.clipt=b.Ax);b.Qx&&(I.disable_watch_next="1");b.Qm&&(I.forced_by_var="1");for(var R in I)!a9a.has(R)&&I[R]&&512<String(I[R]).length&&(g.UF(Error("GVI param too long: "+R)),I[R]="");R=x.Ja;g.kS(x)&&(R=bza(R.replace(/\b(?:www|web)([.-])/,"tv$1"))||x.Ja);x=g.Dl(R+"get_video_info",I);F&&(x=fna(x,F));F=x}f=F;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m<l)){v.Ma(4);break}n=f;if(!(0<m)){v.Ma(5);break}return g.z(v,
ig(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=dC(f,p);case 5:return g.z(v,b9a(b,n).then(e,d),7);case 7:if(q=v.B)return v.return();m++;v.Ma(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";t=h?2:1;if(!h&&1E-4>Math.random())try{g.UF(new g.nD("b/152131571",btoa(f)))}catch(Z){}return v.return(Promise.reject(new WK(r,{backend:"gvi"},t)))}})};
b9a=function(a,b){function c(B){return d(B.xhr)}
function d(B){if(!a.isDisposed()){B=B?B.status:-1;var G=0,F=((0,g.OD)()-p).toFixed();F=e.N("html5_use_network_error_code_enums")?{backend:"gvi",rc:B,rt:F}:{backend:"gvi",rc:""+B,rt:F};var I="manifest.net.connect";429===B?(I="auth",G=2):200<B&&(I="manifest.net.badstatus",400===B&&(G=2));return Promise.reject(new WK(I,F,G))}}
var e,f,h,l,m,n,p,q,r,t,v,x;return g.H(function(B){if(1==B.j){a.fetchType="gvi";e=a.W();var G={};a.zK&&(G.ytrext=a.zK);(l=g.jd(G)?void 0:G)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=dC(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=LR(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);0<Object.keys(m).length&&
(f.headers=m);p=(0,g.OD)();return g.z(B,ZMa(qC,h,f).then(void 0,c),2)}q=B.B;if(!q||!q.responseText)return B.return(d(q));a.loading=!1;r=$B(q.responseText);g.kT(a,r,!0);if(a.errorCode)return t={ec:a.errorCode,ed:a.errorDetail,es:a.Xm||""},B.return(Promise.reject(new WK("auth",t,2)));if(!a.loading&&!iT(a))return v=a.isAd()?"auth":"manifest.net.retryexhausted",x=a.isAd()?2:1,B.return(Promise.reject(new WK(v,{successButUnplayable:"1"},x)));g.ya(B)})};
C0=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h;g.H(function(l){if(1==l.j){d=a.W();if(c&&(!g.xS(d)||"embedded"!==NT(b))||b.Qx||"adunit"!==NT(b)&&(g.UJ(d)||pS(d)||g.qH(d)||g.kS(d)||"WEB_CREATOR"===g.JR(d)))return l.return();e=g.DS(d,g.RT(b));return e.j?g.z(l,e.j,3):(f=e.getValue(),l.Ma(2))}2!=l.j&&(f=l.B);h=f;return l.return(c9a(a,b,h))})};
c9a=function(a,b,c){var d,e,f,h,l;return g.H(function(m){if(1==m.j){g.za(m,2);d=Y8a(c);var n=b.W();g.kD();var p={context:g.WT(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===NT(b)&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.Ul&&(p.showContentOwnerOnly=!0);b.cU&&(p.showShortsOnly=!0);g.lD(0,141)&&(p.autonavState=g.lD(0,140)?"STATE_OFF":"STATE_ON");if(g.vS(n)){n=g.lD(0,65);n=null!=n?!n:!1;
var q=!!g.gD("yt-player-sticky-caption");p.captionsRequested=n&&q}e=p;f=g.zH(d9a);a.md("wn_s");return g.z(m,g.nI(d,e,f),4)}if(2!=m.j)return h=m.B,a.md("wn_r"),!h||"error"in h&&h.error||(l=h,g.jS(b.W())&&l.trackingParams&&CP(l.trackingParams),g.kT(b,{raw_watch_next_response:h},!1)),g.Ba(m,0);g.Ca(m);g.ya(m)})};
e9a=function(a){a.md("vir");a.md("ps_s");kI("vir",void 0,"video_to_ad");var b=X8a(a);b.then(function(){a.md("virc");kI("virc",void 0,"video_to_ad");a.md("ps_r");kI("ps_r",void 0,"video_to_ad")},function(){a.md("virc");
kI("virc",void 0,"video_to_ad")});
return b};
g.F0=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new g.hT(a):m;n=void 0===n?!0:n;g.lG.call(this);var p=this;this.Z=a;this.playerType=b;this.Hb=c;this.sF=d;this.getVisibilityState=f;this.visibility=h;this.qe=l;this.videoData=m;this.N3=n;this.logger=new g.eY("VideoPlayer");this.oC=new q8a(this.Z);this.Qe=null;this.zA=new W_;this.qq=null;this.bl=new R6a(this.Z,this.sF,this);this.tW=!0;this.Wa=this.Da=null;this.Cm=[];this.Kp=new B0;this.cg=this.EE=null;this.yr=new B0;this.oJ=null;this.SN=this.Ht=!1;this.pJ=
NaN;this.playerState=new g.QL;this.rJ=[];this.rB=new g.ZK;this.Kk=new E6a(this);this.mediaElement=null;this.jw=new g.au(this.R7,15E3,this);this.SQ=this.HI=!1;this.Iw=NaN;this.qG=!1;this.ZL=0;this.pG=new g.au(this.VQ,4500,this);this.BD=!1;this.iI=NaN;this.rR=new lU(new Map([["bufferhealth",function(){return G8a(p.xd)}],
["bandwidth",function(){return p.gN()}],
["networkactivity",function(){return p.Z.schedule.S}],
["livelatency",function(){return p.isAtLiveHead()&&p.isPlaying()?f9a(p):NaN}],
["rawlivelatency",function(){return f9a(p)}]]));
this.PD=0;this.loop=!1;this.playbackRate=1;this.eX=0;this.xd=new A8a(this);this.CU=!1;this.qJ=[];this.BO=this.LY=0;this.PQ=this.w_=!1;this.pB=this.Du=this.Sr=0;this.LL=new g.au(this.n5,0,this);this.Uc=this.od=null;this.xJ=new g.au(this.dZ,3E4,this);this.V6=[this.rB,this.LL,this.jw,this.xJ,this.pG,this.rR];this.Cg=function(){var q=p.Lc();q.provider.Z.Uf||3===q.provider.xa.getVisibilityState()||(q.provider.Z.Uf=!0);d8a(q);if(q.B){var r=q.B;r.G&&0>r.j&&3!==r.provider.xa.getVisibilityState()&&f7a(r)}q.qoe&&
(q=q.qoe,q.eb&&0>q.B&&q.provider.Z.Uf&&D7a(q));p.Da&&D0(p);p.Z.Mo&&!p.videoData.backgroundable&&p.mediaElement&&!p.Nh()&&(p.isBackground()&&p.mediaElement.dG()?(p.ya("bgmobile",{suspend:1}),p.Yn(!0,!0)):p.isBackground()||E0(p)&&p.ya("bgmobile",{resume:1}));p.N("html5_log_tv_visibility_playerstate")&&g.UJ(p.Z)&&p.ya("vischg",{vis:p.getVisibilityState(),ps:p.playerState.state.toString(16)})};
this.Nd={Hp:function(q){p.Hp(q)},
ggb:function(q){p.Qe=q},
Reb:function(){return p.Xz},
yH:function(){return p.UD},
teb:function(){return p.pG}};
this.Mi=new q0(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.pK("endcr")||g.aH(p.playerState,32)||vY(p);
e(q,r,p.playerType)});
g.L(this,this.Mi);g.L(this,this.xd);g9a(this,m);this.videoData.subscribe("dataupdated",this.B9,this);this.videoData.subscribe("dataloaded",this.nM,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ya,this);this.videoData.subscribe("ctmpstr",this.zQ,this);this.AM();y_a(this.Cg);this.visibility.subscribe("visibilitystatechange",this.Cg)};
KL=function(a){return a.N("html5_not_reset_media_source")&&!a.pj()&&!a.videoData.isLivePlayback&&g.OT(a.videoData)};
g9a=function(a,b){if(2===a.playerType||a.Z.Oo)b.P_=!0;var c=nPa(b.Me,b.Oz,a.Z.D,a.Z.K);c&&(b.adFormat=c);2===a.playerType&&(b.fl=!0);if(a.isFullscreen()||a.Z.D)c=g.gD("yt-player-autonavstate"),b.autonavState=c||(a.Z.D?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&G0(a,b.endSeconds)};
i9a=function(a){if(a.videoData.ea){var b=a.qe.Gd();a.videoData.uB=a.videoData.uB||(null==b?void 0:b.kN());a.videoData.vB=a.videoData.vB||(null==b?void 0:b.nN())}if(ZQa(a.videoData)||!lRa(a.videoData))b=a.videoData.errorDetail,a.Sg(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Xm||void 0);1===a.playerType&&H0.isActive()&&a.xJ.start();a.videoData.Sf=a.getUserAudio51Preference();a.N("html5_generate_content_po_token")&&h9a(a)};
j9a=function(a){m0a(a.Xz);g.sb(a.Xz);for(var b=a.UD,c=g.u(b.j.values()),d=c.next();!d.done;d=c.next())m0a(d.value);b.j.clear();g.sb(a.UD)};
k9a=function(a){return a.mediaElement&&a.mediaElement.Mu()?a.mediaElement.Gb():null};
I0=function(a){if(a.N("html5_check_video_data_errors_before_playback_start")&&a.videoData.errorCode)return!1;if(a.videoData.Ie())return!0;a.Sg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.uY=function(a,b){(b=void 0===b?!1:b)||g.TT(a.videoData)||PY(a.Lc());a.Ht=b;!I0(a)||a.Kp.It()?g.UJ(a.Z)&&a.videoData.isLivePlayback&&a.Kp.It()&&!a.Kp.finished&&!a.Ht&&a.nM():(a.Kp.start(),b=a.Lc(),g.DN(b.provider),b.qoe&&y7a(b.qoe),a.nM())};
l9a=function(a){var b=a.videoData;e9a(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=YK(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Sg(c.errorCode,2,unescape(a.videoData.errorReason),VK(c.details),a.videoData.errorDetail,a.videoData.Xm||void 0):a.handleError(c))})};
F_a=function(a,b){a.od=b;a.Da&&J5a(a.Da,new g.O_(b))};
n9a=function(a){if(!g.aH(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.Cm=g.Jb(a.videoData.Ja)),g.DT(a.videoData)){a.Hb.tick("bpd_s");J0(a).then(function(){a.Hb.tick("bpd_c");if(!a.isDisposed()){a.Ht&&(a.Ac(TL(TL(a.playerState,512),1)),E0(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&G0(a,c.endSeconds);a.Kp.finished=!0;K0(a,"dataloaded");a.yr.It()&&m9a(a);e7a(a.bl,a.cg)}});
a.N("html5_log_media_perf_info")&&a.ya("loudness",{v:a.videoData.Qi.toFixed(3)},!0);var b=mRa(a.videoData);b&&a.ya("playerResponseExperiment",{id:b},!0);a.XL()}else K0(a,"dataloaded")};
J0=function(a){L0(a);a.cg=null;var b=s8a(a.Z,a.videoData,a.Nh());a.EE=b;a.EE.then(function(c){o9a(a,c)},function(c){a.isDisposed()||(c=YK(c),a.visibility.isBackground()?(M0(a,"vp_none_avail"),a.EE=null,a.Kp.reset()):(a.Kp.finished=!0,a.Sg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",VK(c.details))))});
return b};
F6a=function(a){J0(a).then(function(){return E0(a)});
g.WL(a.playerState)&&a.playVideo()};
o9a=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.cg=b;C8a(a.xd,a.cg);if(a.videoData.isLivePlayback){var c=F0a(a.qe.Qt,a.videoData.videoId)||a.Da&&!isNaN(a.Da.Ja);c=a.N("html5_onesie_live")&&c;0<a.videoData.Jc&&!rT(a.videoData)||c||a.seekTo(a.Re(),{Id:"videoplayer_playbackData",seekSource:18})}a.videoData.C.j?a.Da?g.UF(Error("Duplicated Loader")):(c=g.JJ(a.Z.experiments,"html5_onesie_defer_content_loader_ms"))&&g.Db(a.Cm,"ad")&&F0a(a.qe.Qt,a.videoData.Q5)?g.jC(function(){a.isDisposed()||
a.Da||p9a(a)},c):p9a(a):!a.videoData.C.j&&ST(a.videoData)&&a.UI(new HZ(a.videoData.videoId||"",4));
N0(a);X6a(b).then(function(){a.mB();D0(a)})}};
q9a=function(a){a.mediaElement&&a.mediaElement.wy();g.uY(a);I0(a)&&!g.aH(a.playerState,128)&&(a.yr.It()||(a.yr.start(),a.videoData.Ho?a.Ac(TL(a.playerState,4)):a.Ac(TL(TL(a.playerState,8),1))),m9a(a))};
m9a=function(a){a.isDisposed();if(!a.yr.finished&&a.Kp.finished&&!g.aH(a.playerState,128)&&!a.Cm.length){if(!a.Mi.started){var b=a.Mi;b.started=!0;b.Lm()}if(!a.mp()){a.Da&&(b=a.Da.timing,a.SN=!!b.B&&!!b.S);a.yr.finished||(a.yr.finished=!0);b=a.N("html5_onesie_live")&&a.Da&&!isNaN(a.Da.Ja);!a.videoData.isLivePlayback||0<a.videoData.Jc&&!rT(a.videoData)||b||(a.seekTo(Infinity,{Id:"videoplayer_readying",seekSource:18}),a.isBackground()&&(a.SQ=!0));b=a.Lc();if(b.qoe){b=b.qoe;b.provider.videoData.Jo&&
c0(b,b.provider.videoData.Jo);if(b.provider.videoData.isLivePlayback){var c=b.provider.videoData.j;rT(b.provider.videoData)&&c0(b,"manifestless");c&&uR(c)&&c0(b,"live-segment-"+uR(c).toFixed(1))}qT(b.provider.videoData)&&c0(b,"sabr");b.provider.videoData.gatewayExperimentGroup&&(c=b.provider.videoData.gatewayExperimentGroup,"EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"===c?c="spkadtrt":"EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"===c&&(c="spkadctrl"),c0(b,c));"yt"!==b.provider.Z.Fa&&(b.j.len=[b.provider.videoData.lengthSeconds.toFixed(2)]);
b.provider.videoData.cotn&&!ST(b.provider.videoData)&&b.CJ(!0);b.provider.Z.wd()&&(c=c_a())&&b.ya("cblt",{m:c})}a.ra("playbackready",a);gI("pl_c",a.Hb.timerName)||(a.Hb.tick("pl_c"),kI("pl_c",void 0,"video_to_ad"));gI("pbr",a.Hb.timerName)||(a.Hb.tick("pbr"),kI("pbr",void 0,"video_to_ad"))}}};
vY=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.mediaElement&&a.mediaElement.pause();a.Ac(b?new g.QL(14):new g.QL)};
G0=function(a,b){a.qq&&r9a(a);a.qq=new g.oK(1E3*b,0x7ffffffffffff);a.qq.namespace="endcr";a.addCueRange(a.qq)};
r9a=function(a){a.removeCueRange(a.qq);a.qq=null};
s9a=function(a,b,c){a.videoData.B=c;var d=g.kV(a);c=new Q6a(a.videoData,c,b,d?d.itag:"");a.Lc().zE(c);c=a.bl;c.B=0;c.j=0;a.ra("internalvideoformatchange",a.videoData,"m"===b)};
g.kV=function(a){var b=O0(a);return NP(b)||!a.cg?null:g.Bb(a.cg.j.videoInfos,function(c){return b.D(c)})};
L_=function(a,b){b&&a.Ae(new WK("qoe.restart",b));a.Ac(TL(a.playerState,2048));P0(a);b=a.videoData.j&&UP(a.videoData.j);var c=a.mediaElement&&a.mediaElement.isView();b||c?(a.Da&&K_(a.Da),Y_(a)):(E0(a),g.WL(a.playerState)&&a.playVideo())};
O0=function(a){if(a.cg){var b=a.bl;var c=a.cg;a=a.Bv();if(b.xa.kp().isInline())var d=gT;else b.N("html5_exponential_memory_for_sticky")?d=.5>wOa(b.Z.Tf,"sticky-lifetime")?"auto":OP[GP()]:d=OP[GP()],d=g.MP("auto",d,!1,"s");if(NP(d)){d=S6a(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.u(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if(null==(m=l.B)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;Fna()&&!g.UJ(b.Z)&&fL(c.j.videoInfos[0])&&
(f=Math.min(f,g.aL.large));d=e.call(d,new LP(0,f,!1,"o"));e=d.compose;f=4320;!b.Z.B||g.jS(b.Z)||b.Z.N("hls_for_vod")||b.Z.N("mweb_remove_360p_cap")||(f=g.aL.medium);(h=g.JJ(b.Z.experiments,"html5_default_quality_cap"))&&c.j.j&&(b.Z.N("html5_always_apply_default_quality_cap")||!c.videoData.pk&&!c.videoData.xe)&&(f=Math.min(f,h));h=g.JJ(b.Z.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.JJ(b.Z.experiments,"html5_hfr_quality_cap"))a:{l=
c.j;if(l.j)for(l=g.u(l.videoInfos),m=l.next();!m.done;m=l.next())if(32<m.value.video.fps){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.JJ(b.Z.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=c7a(b,c,f);d=e.call(d,new LP(0,4320===f?0:f,!1,"d")).compose(b7a(b)).compose(d7a(b,c.videoData,c)).compose(a7a(b,c)).compose(V6a(b,c));if(NP(a)||b.N("html5_apply_pbr_cap_for_drm"))d=d.compose(W6a(b,c))}else b.N("html5_perf_cap_override_sticky")&&(d=d.compose(a7a(b,c))),b.N("html5_ustreamer_cap_override_sticky")&&
(d=d.compose(W6a(b,c)));d=d.compose(V6a(b,c));b=c.videoData.Nz.compose(d).compose(c.videoData.lU).compose(a)}else b=gT;return b};
d5a=function(a){var b=a.bl;a=a.videoData;var c=b7a(b);b.N("html5_disable_client_autonav_cap_for_onesie")||c.compose(d7a(b,a));return c};
g.t9a=function(a,b,c,d){a.videoData.Nz=b;if(a.cg&&c){c=a.bl;var e=a.cg;if(e.j.j){var f=GP(),h=e.j.videoInfos[0].video.j;if(!(f>h&&0!==h&&b.j===h)){var l;f=U6a(c,null==(l=e.j)?void 0:l.videoInfos);l=c.xa.getPlaybackRate();1<l&&f&&(l=aOa(c.Z.G,e.j.videoInfos,l),0!==b.j&&l<b.j&&c.xa.setPlaybackRate(1));var m,n;e=(null==(m=e.videoData.B)?void 0:null==(n=m.video)?void 0:n.j)||0;g.fD("yt-player-quality",{quality:g.aL[PP(b)],previousQuality:e},31104E3);c.Z.schedule.policy.C=480<=GP();if(c.N("html5_exponential_memory_for_sticky")){b=
c.Z.Tf;m=1;var p=void 0===p?!1:p;vOa(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.Hq["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.Hq["sticky-lifetime"]=0);p&&.0625<wOa(b,"sticky-lifetime")&&(m=2*b.Hq["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.j/m);b.Hq["sticky-lifetime"]=m;b.D.start()}if(c.N("html5_perf_cap_override_sticky"))if(c.N("html5_perserve_av1_perf_cap")){p=HP();c=g.u(Object.keys(p));for(b=c.next();!b.done;b=c.next())b=b.value,0!==b.indexOf("1")&&(p[b]=
0);g.fD("yt-player-performance-cap",p,604800)}else g.hD("yt-player-performance-cap")}}}a.Da&&(p=a.Da,d=d||"",EV(p.policy)&&p.policy.Tx?vZ(p.ma.j,d):vZ(p.j.G,d));N0(a)};
h9a=function(a){a.videoData.videoId?a.qe.eN(a.videoData.videoId).then(function(b){a.videoData.P4=b}):a.ya("pomvid",{})};
N0=function(a){if(!a.isDisposed()&&!g.aH(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)D0(a);else{var b=O0(a),c=a.videoData;a:{var d=a.videoData.qd;if(b.j){for(var e=g.u(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.Lh(),l=g.aL[h.video.quality];if((!b.C||"auto"!==h.video.quality)&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.fb=d;s9a(a,b.reason,u9a(a,a.videoData.fb))}if(a.N("html5_check_unstarted")?g.WL(a.playerState):a.isPlaying())a.xd.Ya=!1,a.playVideo()}};
D0=function(a){if(a.videoData.C&&a.videoData.C.j){var b=O0(a);if(a.Da&&(a=a.Da,!a.isDisposed()))if(EV(a.policy)){var c=a.ma;if(b.isLocked()&&c.j.C||void 0===c.B||!b.equals(c.B)){var d=a.ma.B;U3a(a.ma,b);c="m"===b.reason;var e=a.policy.We&&"l"===b.reason;b=d.j>b.j&&"b"===b.reason;c||e||b?L_(a.xa,{reattachOnConstraint:c?"u":e?"drm":"perf"}):M_(a)}}else!r1a(a.j,b)&&a.videoTrack&&(d=a.j.j,z5a(a,s1a(a.j,b)),I_(a),c=b.isLocked()&&"m"===b.reason&&a.j.va,e=a.policy.We&&"l"===b.reason&&k_(a.videoTrack),b=
d.j>b.j&&"b"===b.reason,d=a.j.fb&&!EL(),c||e||b||d?L_(a.xa,{reattachOnConstraint:c?"u":e?"drm":d?"codec":"perf"}):M_(a))}};
v9a=function(a){var b;return!!(a.N("html5_native_audio_track_switching")&&g.ID&&(null==(b=a.videoData.B)?0:kL(b)))};
w9a=function(a){if(!v9a(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1<a.length)};
y9a=function(a){var b=x9a(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Rc.getName()===b})};
x9a=function(a){var b;if(a=null==(b=a.mediaElement)?void 0:b.audioTracks())for(b=0;b<a.length;++b){var c=a[b];if(c.enabled)return c.label}};
p9a=function(a){for(var b=a.videoData.j,c=g.u(Object.entries({cpn:a.videoData.clientPlaybackNonce,c:a.Z.j.c,cver:a.Z.j.cver})),d=c.next();!d.done;d=c.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;for(var f=g.u(Object.values(b.j)),h=f.next();!h.done;h=f.next())xMa(h.value.resource,d,e);f=void 0;null==(f=b.Va)||xMa(f,d,e)}c=a.Z;d=a.videoData;b=new g.oUa(c);e=nUa(c,{hasSubfragmentedFmp4:d.hasSubfragmentedFmp4,uD:d.uD});b.S=e;b.ea=d.maxReadAheadMediaTimeMs/1E3||b.ea;e=c.schedule;e.j.Si()===
e.policy.B?b.fb=10:b.fb=d.minReadAheadMediaTimeMs/1E3||b.fb;b.Uf=d.readAheadGrowthRateMs/1E3||b.Uf;zr&&(b.Jc=41943040);b.Ml=!UAa();g.UJ(c)||!UAa()?(e=c.experiments,b.qa=8388608,b.Va=524288,b.Il=5,b.Oa=1048576,b.Zo=1.5,b.Zb=4587520,Gna()&&(b.Zb=786432),b.K*=1.1,b.ma*=1.1,b.wc=!0,b.Jc=b.qa,b.Vd=e.ob("persist_disable_player_preload_on_tv")||e.ob("persist_disable_player_preload_on_tv_for_living_room")||!1):c.B&&(b.K*=1.3,b.ma*=1.3);g.sL&&g.zC("crkey")&&(e="CHROMECAST/ANCHOVY"===c.j.cmodel,b.qa=20971520,
b.Va=1572864,e&&(b.Zb=812500,b.mj=1E3,b.ox=5,b.Oa=2097152));g.FR&&(b.wc=!0);c.supportsGaplessAudio()||(b.Rl=!1);cS&&(b.Mb=!0);b.Yc=c.N("html5_peak_shave");"onesie"===d.fetchType&&c.N("html5_disable_peak_shave_for_onesie")&&(b.Yc=!1);var l;e=null==(l=d.j)?void 0:UP(l);if(rT(d)){b.Td=!0;b.Ji=!0;b.rb=!0;b.Ep=!0;b.vp=!0;if("ULTRALOW"===d.latencyClass||"LOW"===d.latencyClass&&!c.N("html5_disable_low_pipeline"))b.Ul=2,b.Nm=4;b.Pj=d.defraggedFromSubfragments;if(d.Mf||c.N("html5_publish_all_cuepoints"))b.Mo=
!0;g.FT(d)&&(b.vc=!1);b.Kl=g.SJ(c)}d.isAd()&&(b.Oi=0,b.Ak=0,b.Ad=g.JJ(c.experiments,"html5_min_startup_buffered_ad_media_duration_secs"));KR&&(b.Xr=!0);b.hg=c.N("html5_enable_subsegment_readahead_v3")||c.N("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===d.latencyClass;b.B=/^rq/.test(d.clientPlaybackNonce)||c.wd();Lna()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(c.j.cmodel)&&!c.N("html5_disable_move_pssh_to_moov")&&e&&(b.wc=!1);f=0;c.N("html5_live_use_alternate_bandwidth_window_sizes")&&(f=c.schedule.policy.j,
d.isLivePlayback&&(f=g.JJ(c.experiments,"ULTRALOW"===d.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":d.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||f));l=c.schedule;l.Fa.B=rT(d)?.5:0;if(!l.policy.D&&f&&(l=l.j,f=Math.round(f*l.resolution),f!==l.j)){h=Array(f);var m=Math.min(f,l.C?l.j:l.B),n=l.B-m;0>n&&(n+=l.j);for(var p=0;p<m;++p)h[p]=l.values[(n+p)%l.j];for(;p<f;++p)h[p]=Infinity;l.j=f;l.values=h;l.B=m%f;l.C=m===f;l.G=
!0;l.K=kOa(l)}d.isLivePlayback&&((l=g.JJ(c.experiments,"html5_min_startup_duration_live_secs"))?b.Ad=l:b.Qm=!0);yT(d)&&(b.hg=!0,"LOW"===d.latencyClass?b.Cb=g.JJ(c.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===d.latencyClass&&(b.Cb=g.JJ(c.experiments,"html5_jumbo_ull_subsegment_readahead_target")),b.Eo=!0);d.Fc()&&(b.Jl=1.3);b.Mb=b.Mb||d.PF;b.D=g.TT(d);b.Ya=d.ea||b.D;c.wd()&&(b.Ja=!0);d.ea&&!e&&(b.sj=!0);d.ea&&d.isAd()&&(b.K*=1.6,b.ma*=1.6);ST(d)&&(b.C=d.videoId,b.El=!0,
b.Jp=4,d.kx&&0<d.kx.length&&(b.Ud=d.kx));b.We=d.Jl;b.hj=JNa(c,{},d.C||void 0);b.Pa=wT(d)&&g.qH(c);qT(d)&&(b.j=!0,b.Nl=c.N("html5_disable_client_resume_policy_for_sabr"),b.Ap=c.N("html5_trigger_loader_when_idle_network"),b.Tf&&(b.Ji=!0),b.Go=c.N("html5_enable_platform_backpressure_with_sabr"),b.Sf=c.N("html5_consume_onesie_next_request_policy_for_sabr"),b.Oo=c.N("html5_sabr_report_next_ad_break_time"),b.va=c.N("html5_preload_before_initial_seek_with_sabr"),b.eb=c.N("html5_defer_media_processing_on_progress_with_sabr"),
b.Ol=c.N("html5_disallow_trimming_with_empty_source_buffer"),b.Kd=c.N("html5_use_ump_request_slicer"));b.G=b.j&&c.N("html5_sabr_live");XP(c.G,YP.BITRATE)&&(b.Zb=NaN);if(l=g.JJ(c.experiments,"html5_request_size_max_kb"))b.Oa=1024*l;c.G.C&&(b.dh="; "+YP.EXPERIMENTAL.name+"=allowed");c=d.serverPlaybackStartConfig;(null==c?0:c.enable)&&(null==c?0:c.playbackStartPolicy)&&(b.gg=!0,qUa(b,c.playbackStartPolicy,2));if(a.Z.experiments.ob("enable_audio_description_setting")&&g.lD(g.kD(),198))for(c=a.videoData.getAvailableAudioTracks(),
c=g.u(c),d=c.next();!d.done;d=c.next())if(d=d.value,d.G){var q=d;break}q||(q=a.getAudioTrack(),q=q.Rc.isDefault?void 0:q);a.zA.Of();a:{c=a.qe.Qt;if(d=a.videoData.videoId)if(l=c.j.get(d)){c.j.remove(d);c=l;break a}c=void 0}a.Da=new g.G_(a,a.Z.schedule,b,a.videoData.j,a.videoData.C,O0(a),q,a.videoData.enableServerStitchedDai,c,a.videoData.Oa);q=a.Ht&&g.UJ(a.Z)&&a.videoData.isLivePlayback;a.Da.initialize(a.getCurrentTime(),O0(a),q);a.videoData.probeUrl&&(a.Da.Ya=a.videoData.probeUrl);if(a.Cm.length||
a.Ht)a.videoData.cotn||Q0(a,!1);E8a(a.xd,a.Da);a.od&&J5a(a.Da,new g.O_(a.od));a.Uc&&(a.Da.WJ(a.Uc),a.xd.Ya=!1);g.UT(a.videoData)&&(q=a.Da,q.policy.eh=q.policy.nA,a.N("html5_offline_retry_index_db_read")&&(NPa=!0))};
L0=function(a){a.Da&&(a.Da.dispose(),a.Da=null,E8a(a.xd,null));KL(a)?z9a(a):P0(a)};
z9a=function(a){if(a.Wa)if(a.Wy(),a.Wa.G)try{a.Z.wd()&&a.ya("rms",{l:"vprms",sr:KL(a),rs:ML(a.Wa)});a.Wa.clear();var b;null!=(b=a.mediaElement)&&(b.B=a.Wa);a.Wa=null}catch(c){b=new g.nD("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=YK(b),a.handleError(b),P0(a)}else P0(a)};
P0=function(a){a.Wa&&(WAa(a.Wa),a.Wy(),a.Wa.dispose(),a.Wa=null)};
A9a=function(a){if(a.Wa)return a.Wa.C;a:{try{g.BC()&&a.videoData.nO()&&ZAa(a.mediaElement);var b=a.mediaElement.jt(a.oN(),a.lN())}catch(d){if(J6a(a.Kk,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Sg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}n_a(a,b)}var c;return(null==(c=a.jt())?void 0:c.C)||null};
n_a=function(a,b,c){function d(e){try{var f=c;f=void 0===f?!1:f;if(a.Wa&&(!e||a.Wa===e)){var h=a.getDuration();!h&&rT(a.videoData)&&(h=25200);a.Wa.isView?(e=h,e>a.Wa.getDuration()&&a.Wa.wl(e)):a.Wa.wl(h);var l=a.Da,m=a.Wa;f=void 0===f?!1:f;l.policy.Ca&&(l.policy.Fa&&l.ya("loader",{setsmb:0}),l.Ik(),l.policy.Ca=!1);w5a(l);if(GV(l.policy))l.Wa=m;else{if(!LL(m)){var n=mZ(l.videoTrack),p=mZ(l.audioTrack);TAa(m,(n?n.info.j:l.videoTrack.j).info,(p?p.info.j:l.audioTrack.j).info,l.policy.dh)}v5a(l,m,f);try{l.Df()}catch(q){g.TF(q)}}a.ra("mediasourceattached")}}catch(q){g.UF(q),
a.handleError(new WK("fmt.unplayable",{msi:"1",ename:q&&"object"===typeof q&&"name"in q?String(q.name):void 0},1))}}
c=void 0===c?!1:c;B9a(a);a.Wa=b;KL(a)&&"open"===ML(a.Wa)?d(a.Wa):QAa(a.Wa,d)};
B9a=function(a){if(a.Da){var b=a.getCurrentTime()-a.Xc();a.N("html5_skip_loader_media_source_seek")&&a.Da.getCurrentTime()===b||a.Da.seek(b,{}).xk(function(){})}else p9a(a)};
y5a=function(a,b){s9a(a,b.reason,b.j.info)};
Y_=function(a,b){b=void 0===b?!1:b;var c,d,e;return g.H(function(f){if(1==f.j){a.Da&&a.Da.Lv();a.Da&&a.Da.isDisposed()&&L0(a);if(a.N("html5_enable_vp9_fairplay")&&a.pj()&&null!=(c=a.videoData.j)){var h=c,l;for(l in h.j)h.j.hasOwnProperty(l)&&(h.j[l].j=null,h.j[l].C=!1)}a.Ac(TL(a.playerState,2048));a.ra("newelementrequired");return b?g.z(f,J0(a),2):f.Ma(2)}a.videoData.Fc()&&(null==(d=a.Da)?0:d.Ja)&&((e=a.isAtLiveHead())&&pT(a.videoData)?a.seekTo(Infinity,{Id:"videoPlayer_getNewElement"}):a.videoData.ze&&
a.Da&&(h=a.Da,h.manifest.Fc&&(h.manifest.ze||h.manifest.B||h.manifest.isPremiere?(h.seek(0,{Id:"loader_resetSqless"}),h.videoTrack.S=!0,h.audioTrack.S=!0,h.videoTrack.G=!0,h.audioTrack.G=!0):FNa(h.manifest)&&N_(h))));g.aH(a.playerState,8)&&a.playVideo();g.ya(f)})};
t_a=function(a,b){a.ya("newelem",{r:b});Y_(a)};
C9a=function(a){a.Hb.D.lP();g.aH(a.playerState,32)||(a.Ac(TL(a.playerState,32)),g.aH(a.playerState,8)&&a.pauseVideo(!0),a.ra("beginseeking",a));a.Ic()};
P_a=function(a,b){b=null==b?void 0:b.seekSource;g.aH(a.playerState,32)?(a.Ac(VL(a.playerState,16,32,b)),a.ra("endseeking",a)):g.aH(a.playerState,2)||a.Ac(TL(a.playerState,16,b));a.Hb.D.qP(a.videoData,a.playerState.isPaused())};
fTa=function(a){var b=0,c="";if(a.od){if(a.od.kq)return"D,";b=a.od.jN()}else a.Uc&&(b=a.Uc.jN(),c=a.Uc.Ni.substring(0,4));return 0<b?(a="AD"+b+", ",c&&(a+=c+", "),a):""};
K0=function(a,b){a.ra("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
D9a=function(a){for(var b=g.u("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=b.next();!c.done;c=b.next())a.rB.V(a.mediaElement,c.value,a.PP,a);a.Z.Sl&&a.mediaElement.Mu()&&(a.rB.V(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.b7,a),a.rB.V(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.c7,a))};
F9a=function(a){g.mC(a.pJ);E9a(a)||(a.pJ=g.kC(function(){return E9a(a)},100))};
E9a=function(a){var b=a.mediaElement;b&&a.HI&&!a.videoData.Va&&!gI("vfp",a.Hb.timerName)&&2<=b.yk()&&!b.ri()&&0<zL(b.Kh())&&a.Hb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Va&&0<b.getDuration()&&(!gI("pbp",a.Hb.timerName)&&b.isPaused()&&2<=b.yk()&&0<zL(b.Kh())&&a.Hb.tick("pbp"),b=b.getCurrentTime(),r0(a.oC,b))?(l_a(a),!0):!1};
l_a=function(a){g.mC(a.pJ);a.jw.stop();a.videoData.Va=!0;a.Z.Eo=!0;a.Z.wc=0;var b=a.Kk;if(b.videoData.B){var c=b.La.G;c.B.delete(b.videoData.B.Db);c.j=!0}b.j.stop();a.Z.Ml=a.videoData.QF;a.videoData.gU=!0;G9a(a);g.aH(a.playerState,8)&&a.Ac(UL(a.playerState,65));a.Ht=!1;l0a(a.Lc());g.bu(a.pG);a.ra("playbackstarted");(a=g.Ta("yt.scheduler.instance.clearPriorityThreshold"))?a():wD(0)};
G9a=function(a){var b=a.getCurrentTime(),c=a.qe.Qd();!gI("pbs",a.Hb.timerName)&&OH.measure&&OH.getEntriesByName&&(OH.getEntriesByName("mark_nr")[0]?Pwa("mark_nr"):Pwa());c.videoId&&a.Hb.info("docid",c.videoId);c.eventId&&a.Hb.info("ei",c.eventId);c.clientPlaybackNonce&&!a.N("web_player_early_cpn")&&a.Hb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Hb.info("start",c.startSeconds.toString());if(a.mediaElement&&a.mediaElement.isPaused())if(a.Z.experiments.ob("web_csi_via_jspb")){var d=new AB;
Fj(d,6,!0);var e=new BB;tj(e,AB,22,d);g.WB(dI)(e,a.Hb.timerName)}else a.Hb.info("paused",1);a.Z.experiments.ob("web_csi_via_jspb")?(d=new AB,c.B?Gj(d,1,Number(c.B.itag)):Gj(d,1,-1),e=new BB,tj(e,AB,22,d),g.WB(dI)(e,a.Hb.timerName)):c.B?a.Hb.info("fmt",c.B.itag):a.Hb.info("fmt","-1");c.Ji&&(e=a.SN?2:1,a.Z.experiments.ob("web_csi_via_jspb")?(d=new AB,O(d,8,e),e=new BB,tj(e,AB,22,d),g.WB(dI)(e,a.Hb.timerName)):a.Hb.info("yt_pre",String(a.SN?2:1)));a.isFullscreen()&&a.Hb.info("yt_fs","1");g.hI({liveStreamMode:H9a[BT(c)]},
a.Hb.timerName);a.Hb.info("cmt",b.toFixed(3));if(a.Da){b=a.Da.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.S&&(c=window.performance.getEntriesByName(b.S),c.length&&(c=c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("vrc",c.responseEnd))),b.B&&(c=window.performance.getEntriesByName(b.B),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),b.tick("areq",c.requestStart),b.tick("arc",c.responseEnd))));
b=b.ticks;for(var f in b)b.hasOwnProperty(f)&&a.Hb.tick(f,b[f])}};
I9a=function(a){a.Lc().df();if(pT(a.videoData)&&Date.now()>a.eX+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&zNa(a.videoData.j))){var b=a.Lc();if(b.qoe){b=b.qoe;var c=b.provider.xa.kD(),d=g.DN(b.provider);t7a(b,d,c);c=c.C;isNaN(c)||g.a0(b,d,"e2el",[c.toFixed(3)])}}g.SJ(a.Z)&&a.ya("rawlat",{l:nU(a.rR,"rawlivelatency").toFixed(3)});a.eX=Date.now()}a.videoData.B&&kL(a.videoData.B)&&(b=k9a(a))&&b.videoHeight!==a.BO&&(a.BO=b.videoHeight,s9a(a,"a",u9a(a,a.videoData.fb)))};
u9a=function(a,b){if("auto"===b.j.video.quality&&kL(b.Lh())&&a.videoData.qd)for(var c=g.u(a.videoData.qd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.BO&&"auto"!==d.j.video.quality)return d.Lh();return b.Lh()};
f9a=function(a){if(!pT(a.videoData))return NaN;var b=0;a.Da&&a.videoData.j&&(b=rT(a.videoData)?a.Da.GG.Si()||0:a.videoData.j.va);return a.N("html5_use_coretime_clock_offset")?(0,g.OD)()/1E3-a.Ze()-b:Date.now()/1E3-a.Ze()-b};
K9a=function(a){a.mediaElement&&a.mediaElement.Nh()&&(a.iI=(0,g.OD)());a.Z.Ap?g.jC(function(){J9a(a)},0):J9a(a)};
J9a=function(a){var b;if(null==(b=a.Wa)||!b.xm()){if(a.mediaElement)try{a.oJ=a.mediaElement.playVideo()}catch(d){M0(a,"err."+d)}if(a.oJ){var c=a.oJ;c.then(void 0,function(d){if(!(g.aH(a.playerState,4)||g.aH(a.playerState,256)||a.oJ!==c||d&&"AbortError"===d.name&&d.message&&d.message.includes("load"))){var e="promise";d&&d.name&&(e+=";m."+d.name);M0(a,e);a.CU=!0;a.videoData.Tf=!0}})}}};
M0=function(a,b){g.aH(a.playerState,128)||(a.Ac(VL(a.playerState,1028,9)),a.ya("dompaused",{r:b}),a.ra("onAutoplayBlocked"))};
E0=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=A9a(a);var d;null==(d=a.Da)||d.resume()}else L0(a),a.videoData.fb&&(c=a.videoData.fb.TB());b=c;d=a.mediaElement.dG();c=!1;d&&d.equals(b)||(L9a(a,b),c=!0);g.aH(a.playerState,2)||(b=a.xd,b.G||!(0<b.C)||b.mediaElement&&0<b.mediaElement.getCurrentTime()||(d={Id:"seektimeline_resumeTime"},b.videoData.Va||(d.seekSource=15),b.seekTo(b.C,d)));a:{b=c;if(qT(a.videoData)){if(!a.videoData.pj())break a}else if(!g.AT(a.videoData))break a;
if(a.mediaElement)if((d=a.videoData.K)&&a.mediaElement.Mu()){var e=a.mediaElement.Gb();if(a.Qe)if(e!==a.Qe.element)R0(a);else if(b&&"fairplay"===d.flavor&&!CC())R0(a);else break a;if(a.N("html5_report_error_for_unsupported_tvos_widevine")&&CC()&&"widevine"===d.flavor)a.Sg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.Qe=new x6a(e,a.videoData,a.Z);a.Qe.subscribe("licenseerror",a.TI,a);a.Qe.subscribe("qualitychange",a.P7,a);a.Qe.subscribe("heartbeatparams",
a.oE,a);a.Qe.subscribe("keystatuseschange",a.Hp,a);a.Qe.subscribe("ctmp",a.ya,a);b=g.u(a.zA.keys);for(d=b.next();!d.done;d=b.next())d=a.zA.get(d.value),a.Qe.qA(d);a.N("html5_eme_loader_sync")||a.zA.Of()}}else a.Sg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return c};
L9a=function(a,b){a.Hb.tick("vta");kI("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&I8a(a.xd,a.getCurrentTime());a.mediaElement.wy(b);a.Wa&&wD(4);!a.videoData.Va&&g.WL(a.playerState)&&a.jw.start();if(v9a(a)){var c;if(b=null==(c=a.mediaElement)?void 0:c.audioTracks())b.onchange=function(){a.ra("internalaudioformatchange",a.videoData,!0)}}};
R0=function(a){a.Qe&&(a.Qe.dispose(),a.Qe=null)};
rY=function(a,b){b=void 0===b?!1:b;return pT(a.videoData)&&(a.isAtLiveHead()&&!a.playerState.isPaused()||a.Rq()||g.FT(a.videoData))?a.getCurrentTime():g.TT(a.videoData)&&a.Uc?h0a(a.Uc,a.getCurrentTime()):a.Re(b)};
M9a=function(a){a.mediaElement&&(a.Wa?(R0(a),P0(a),A9a(a)):(a.videoData.fb&&a.videoData.fb.UQ(),a.mediaElement.stopVideo()),a.playVideo())};
N9a=function(a,b){a.Z.N("html5_log_rebuffer_reason")&&a.ya("bufreason",{r:b,lact:dF()})};
EY=function(a,b,c,d,e,f,h){var l;if(null==(l=a.videoData.j)?0:l.isLive){var m=2===c.playerType?c:b,n=b.videoData.videoId,p=c.videoData.videoId;if(n&&p){l=a.Lc();if(l.qoe){var q=l.qoe,r=b.cpn,t=c.cpn,v=m.videoData.Me,x=q.provider.videoData.clientPlaybackNonce,B=q.provider.videoData.videoId,G=t!==x&&p!==B;x=r!==x&&n!==B;q.reportStats();q.adCpn&&q.adCpn!==r||(q.adCpn=x?r:"",q.ma=x?n:"",q.adFormat=x?v:void 0,OY(q,2,h?4:f?2:0,t,p,e),q.reportStats(),q.adCpn=G?t:"",q.ma=G?p:"",q.adFormat=G?v:void 0,OY(q,
2,h?5:f?3:1,r,n,d),q.reportStats())}d=b.cpn;if(l.C.has(d)){if(f=l.C.get(d),m0(f,!0).send(),l0(f),d!==l.provider.videoData.clientPlaybackNonce){Z7a(f);var F;null==(F=l.j)||U7a(F);l.C.delete(d)}}else l.yh=l.provider.videoData.clientPlaybackNonce,l.yh&&l.j&&(l.C.set(l.yh,l.j),m0(l.j).send(),l0(l.j));F=c.cpn;m=m.videoData;d=e-a.Eq();if(l.C.has(F)){m=l.C.get(F);var I=m.B&&isNaN(m.D)?j0(m):NaN;m=Y7a(m,!1);isNaN(I)||(m.D=I);m.send()}else m=g8a(l,l.provider,m,d),l.C.set(F,m),m.Xd(new g.$G(TL(new g.QL,8),
new g.QL)),T7a(m),null==(I=l.j)||l0(I);l.yh=F;a.N("html5_unify_csi_server_stitched_transition_logging")?aUa(b.cpn,c.cpn,a.videoData.clientPlaybackNonce,e,c.videoData):(l=a.videoData.clientPlaybackNonce,a=c.videoData,b=(b.cpn===l?"video":"ad")+"_to_"+(c.cpn===l?"video":"ad"),l={},a.G&&(l.cttAuthInfo={token:a.G,videoId:a.videoId}),l.startTime=e,iI(b,l),g.hI({targetVideoId:a.videoId,targetCpn:c.cpn},b),jI("pbs",e,b))}}};
O9a=function(a,b){if(a.Z.wd()&&a.mediaElement){var c=a.mediaElement.uc();c.omt=(a.mediaElement.getCurrentTime()+a.Xc()).toFixed(3);c.ps=a.playerState.state.toString(16);c.rt=(1E3*g.DN(a.Lc().provider)).toFixed();a.N("html5_restore_time_after_unpause_redux")?c.e=b:c.e=b.substr(0,3);a.qJ[a.LY++%5]=c}};
P9a=function(a){if(a.Z.wd()){a.qJ.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.u(a.qJ),c=b.next();!c.done;c=b.next())c=c.value,a.ya("vpe",Object.assign({t:c.rt},c));a.qJ=[];a.LY=0}};
Q9a=function(a){if(g.zC("cobalt")&&g.zC("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.ya("nxdock",{d:b})}};
k_a=function(a,b,c,d,e){a.ya("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
Q0=function(a,b){var c;null==(c=a.Da)||J_(c,b)};
R9a=function(a){return g.TT(a.videoData)&&a.Uc?NY(a.Uc):a.videoData.Re()};
g.S0=function(a,b,c,d){g.J.call(this);var e=this;this.logger=new g.eY("App");this.jA=this.gi=!1;this.Yr={};this.Cy=new zRa;this.yJ={};this.RA=[];this.NW=!1;this.jO=null;this.SW=!1;this.Wv=!0;this.iR=!1;this.iX=this.DO=null;this.pX=!0;this.mediaElement=this.Lb=null;this.bP=NaN;this.CE=!1;this.De=this.tB=this.Uc=this.Ve=this.screenLayer=this.OE=this.Ob=this.playlist=null;this.config=uoa(b||{});this.webPlayerContextConfig=c;Roa();b=this.config.args||{};this.Z=new JOa(b,c,c?c.canaryState:this.config.assets.player_canary_state,
d,this);g.L(this,this.Z);this.XL();this.Z.experiments.ob("jspb_serialize_with_worker")&&Xra();this.Z.experiments.ob("web_player_empty_translator")?Osa({},{}):this.Z.experiments.ob("web_player_all_payloads_via_jspb")&&Osa(S9a,T9a);this.Z.B&&!U9a&&(window.addEventListener(bS?"touchstart":"click",d_a,{capture:!0,passive:!0}),U9a=!0);this.N("html5_onesie")&&(this.Cw=new aY(this.Z),g.L(this,this.Cw));this.GZ=JC(gS(this.Z)&&!0,b.enablesizebutton);this.vO=JC(!1,b.player_wide);this.visibility=new A_a;g.L(this,
this.visibility);this.gi=JC(!1,b.external_list);this.events=new g.ZK(this);g.L(this,this.events);this.N("start_client_gcf")&&(Era(iF(),{uQ:nE,UR:Wpa()}),this.a4=iF().resolve(nE),Zpa(this.a4));this.zr=new $Y;g.L(this,this.zr);this.tq=new $Y;g.L(this,this.tq);this.Nq=new P0a;d=new ARa;this.Za=new g.oU(this,d);g.L(this,this.Za);this.template=new J0a(this);g.L(this,this.template);this.appState=1;this.Gi=V9a(this);this.J=this.Z.K?new jU(this,d,!0,1):new gU(this,d,!0,1);g.L(this,this.J);g.L(this,d);d={};
this.WL=(d.internalvideodatachange=this.f7,d.playbackready=this.h7,d.playbackstarted=this.i7,d.statechange=this.j7,d);this.O4=new YTa(this.Za);g.L(this,this.O4);this.Cd=W9a(this);d=this.N("html5_load_wasm");b=this.N("html5_allow_asmjs");(d&&IV||b)&&RUa(this.Cd,b,b&&!d).then(function(f){e.Z.kb=f},function(f){g.UF(f)});
this.M6=new g.ZK(this);g.L(this,this.M6);this.Hb=new ZTa(this.Z,this.Cd);this.Za.ra("csiinitialized");this.Bb=X9a(this);this.Bb.setPlaybackRate(this.Z.D?1:Y9a(this,Number(g.gD("yt-player-playback-rate"))||1));g.mG(this.Bb,this.WL,this);i9a(this.Bb);d={};this.QY=(d.airplayactivechange=this.onAirPlayActiveChange,d.airplayavailabilitychange=this.onAirPlayAvailabilityChange,d.beginseeking=this.lP,d.endseeking=this.qP,d.internalAbandon=this.wP,d.internalaudioformatchange=this.iE,d.internalvideodatachange=
this.onVideoDataChange,d.internalvideoformatchange=this.zE,d.liveviewshift=this.Q7,d.playbackstalledatstart=this.h9,d.progresssync=this.w8,d.onLoadProgress=this.onLoadProgress,d.SEEK_COMPLETE=this.sA,d.SEEK_TO=this.W8,d.onVideoProgress=this.onVideoProgress,d.onLoadedMetadata=this.onLoadedMetadata,d.onAutoplayBlocked=this.onAutoplayBlocked,d.playbackready=this.m8,d.statechange=this.BY,d.connectionissue=this.lE,d.newelementrequired=this.jY,d.heartbeatparams=this.oE,d.videoelementevent=this.PP,d.drmoutputrestricted=
this.onDrmOutputRestricted,d.signatureexpired=this.c9,d.nonfatalerror=this.e8,d);this.Pt=new g.ZK(this);g.L(this,this.Pt);d=10;g.UJ(this.Z)&&(d=3);wS(this.Z)&&(d=g.JJ(this.Z.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Qt=new ZY;g.L(this,this.Qt);this.EA=new XY(d,function(f){f!==g.dU(e,f.getPlayerType())&&f.dispose()});
g.L(this,this.EA);this.VM=this.hH=-1;this.LJ=new g.au(this.template.resize,16,this.template);g.L(this,this.LJ);this.od=new o0a(this.Za,this.Z,this.Bb);this.BA=new xY(this.Z);this.qo=new sY(this);g.L(this,this.qo);this.J_=new nY(this);g.L(this,this.J_);D0a(this.Z.j.c);this.events.V(this.Za,g.pK("appapi"),this.d7);this.events.V(this.Za,g.qK("appapi"),this.e7);this.events.V(this.Za,g.pK("appad"),this.QX);this.events.V(this.Za,g.qK("appad"),this.QX);this.events.V(this.Za,g.pK("appprogressboundary"),this.v8);
this.events.V(this.Za,g.qK("applooprange"),this.QJ);this.events.V(this.Za,"presentingplayerstatechange",this.Xi);this.events.V(this.Za,"resize",this.I8);this.template.Ga(We(document,a));this.events.V(this.Za,"offlineslatestatechange",this.g8);this.WR=Z9a(this,this.template.element);g.L(this,this.WR);this.Cd.J.W().sj&&KV(this.Cd,"offline");this.Z.dh&&g.xV("ux",g.$X);this.xU=new g.au(this.f$,g.JJ(this.Z.experiments,"html5_defer_fetch_att_ms"),this);g.L(this,this.xU);this.Qd().Ie()&&(g.iD()&&this.Qd().Ja.push("remote"),
$9a(this));this.Hb.tick("fs");a$a(this);this.Z.dh&&KV(this.Cd,"ux",!0);g.mS(this.Cd.J.W())&&KV(this.Cd,"music");g.eS(this.Cd.J.W())&&KV(this.Cd,"embed");this.N("web_player_sentinel_is_uniplayer")||g.UF(new g.nD("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.N("web_player_sentinel_yt_experiments_sync");d=g.SB("web_player_sentinel_yt_experiments_sync");a!==d&&g.UF(new g.nD("b/195699950",{yt:a,player:d}));c||g.UF(new g.nD("b/179532961"));this.q_=b$a(this);if(c=g.JJ(this.Z.experiments,
"html5_block_pip_safari_delay"))this.cN=new g.au(this.MU,c,this),g.L(this,this.cN);vC=this.Z.qd;c=g.JJ(this.Z.experiments,"html5_performance_impact_profiling_timer_ms");0<c&&(this.IY=new g.gg(c),g.L(this,this.IY),this.events.V(this.IY,"tick",function(){e.JY&&c$a.wq(e.JY);e.JY=c$a.Nr("apit")}))};
b$a=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(c={n:c.name,m:c.message},(a.Ob||a.Bb).Lc().Ae("player.exception",VK(c)))}
VF.subscribe("handleError",b);UB.push(b);return function(){VF.unsubscribe("handleError",b);var c=UB.indexOf(b);-1!==c&&UB.splice(c,1)}};
X9a=function(a){var b=new g.hT(a.Z,a.config.args);a.Za.ra("initialvideodatacreated",b);return a.Uy(1,b)};
W9a=function(a){var b="",c=H0a(a);0===c.indexOf("//")&&(c=a.Z.protocol+":"+c);var d=c.lastIndexOf("/base.js");-1!==d&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.UF(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new BUa(a.Za,b);d$a(a,b);return b};
d$a=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.C=c};
V9a=function(a){if(a.Z.storeUserVolume){a=g.gD("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.ne(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.Z.mute};return a};
T0=function(a){a.mediaElement=a.Z.deviceIsAudioOnly?new g.jV(g.lf("AUDIO")):mY.pop()||new g.jV(g.lf("VIDEO"));g.L(a,a.mediaElement);a.Ob&&a.Ob.setMediaElement(a.mediaElement);try{a.Z.Kd?(a.tB&&a.events.Qc(a.tB),a.tB=a.events.V(a.mediaElement,"volumechange",a.Y7)):(a.mediaElement.WA(a.Gi.muted),a.mediaElement.setVolume(a.Gi.volume/100))}catch(e){a.Rg("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message&&e.message.replace(/[;:,]/g,
"_")));return}g.cD(a.Pt);e$a(a);var b=a.template,c=a.mediaElement.Gb();b.yc=c;b.RH=!1;b.yc.parentNode||g.pf(b.Qy,b.yc,0);b.vJ=new g.vr(0,0,0,0);O0a(b);bZ(b);c=b.yc;g.iu(c,"video-stream");g.iu(c,g.aZ.MAIN_VIDEO);var d=b.app.W();d.Al&&c.setAttribute("data-no-fullscreen","true");d.N("html5_local_playsinline")?"playsInline"in qL()&&(c.playsInline=!0):d.Rl&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.zp&&b.yc&&b.V(c,"click",c.play,c);try{a.mediaElement.wy()}catch(e){a.Rg("html5.missingapi",
2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message&&e.message.replace(/[;:,]/g,"_")))}};
wY=function(a,b,c){if(a.Ob!==b){var d=null;if(a.Ob){d=a.Ob.getPlayerState();LV(a.Cd,3);U0(a,"cuerangesremoved",a.Ob.cn());a.qo&&!b.isGapless()&&a.Ob.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=KL(b)&&KL(a.Ob);a.N("html5_rebase_video_to_ad_timeline")&&a.Hb.Cu("iv_s");e=void 0===e?!0:e;var f;if(f=a.De)f=a.mediaElement,f=!!f&&f===a.De.mediaElement;f&&(a.Bj(),T0(a));a.Ob&&(a.Ob.Bj(!e),nG(a.Ob,a.QY,a),1!==a.Ob.getPlayerType()&&a.Ob.dispose());a.Ob=null}1===b.getPlayerType()&&a.Bb!==b&&
(b.getVideoData().autonavState=a.Bb.getVideoData().autonavState,nG(a.Bb,a.WL,a),e=a.Bb.getPlaybackRate(),a.Bb.dispose(),a.Bb=b,a.Bb.setPlaybackRate(e),g.mG(b,a.WL,a),$9a(a));e=b.getPlayerType();if(b!==a.Bb&&b!==a.Yr[e]){var h;null==(h=a.Yr[e])||h.dispose();a.Yr[e]=b}a.Ob=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.mG(b,a.QY,a);if(b.fI())f$a(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",b,b.getVideoData());d&&!g.gBa(d,b.getPlayerState())&&a.BY(new g.$G(b.getPlayerState(),d));c=
c&&a.J.N("html5_player_preload_ad_fix")&&1===b.getPlayerType();if(b.Kp.finished&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Za.Ta("onPlaybackQualityChange",c.quality);U0(a,"cuerangesadded",a.Ob.cn());c=b.getPlayerState();g.aH(c,2)?g$a(a):g.aH(c,8)?b.playVideo():b.HD()&&b.pauseVideo();if(2===b.getPlayerType()){var l;b.getVideoData().P3=null==(l=g.dU(a,1))?void 0:l.getVideoData().clientPlaybackNonce}2!==b.getPlayerType()||a.Mf()||(b=b.getVideoData(),
a.Bb.LA(b.clientPlaybackNonce,b.Me||"",b.breakType||0,b.Qi))}}};
g$a=function(a){if(!h$a(a)){var b=a.Bb.zf();b&&(b=b.MC(),b instanceof Promise&&b.catch(function(){}));
V0(a,YL(a.Tb()))}};
e$a=function(a){var b=a.mediaElement;LAa()?a.Pt.V(b,"webkitpresentationmodechanged",a.T8):window.document.pictureInPictureEnabled&&(a.Pt.V(b,"enterpictureinpicture",function(){a.YA(!0)}),a.Pt.V(b,"leavepictureinpicture",function(){a.YA(!1)}));
EC&&(a.Pt.V(b,"webkitbeginfullscreen",function(){a.Em(3)}),a.Pt.V(b,"webkitendfullscreen",function(){a.Em(0)}))};
g.dU=function(a,b){return b?1===b?a.Bb:a.getVideoData().enableServerStitchedDai&&2===b?a.getVideoData().enablePreroll?a.Yr[2]||a.Ob:a.Ob:g.TT(a.getVideoData())&&2===b?a.Yr[2]||a.Ob:a.Yr[b]||null:a.Ob};
i$a=function(a,b,c,d){a=a.Uy(b,c,d);i9a(a);return a};
W0=function(a,b){return a.Mf(b)?a.Bb:b};
X0=function(a,b){var c=a.Ob;return c&&b===a.Bb&&a.Mf(b)&&a.Mf(c)?c:b};
j$a=function(a){if(!Y0(a)){var b=MV(a.Cd);b&&!b.created&&CUa(a.Cd)&&b.create()}};
k$a=function(a){var b=a.getVideoData(),c=a.Cd;LUa(c)||c.yM();!IV&&c.J.N("html5_allow_asmjs")&&QUa(c);KV(c,"embed");KV(c,"inline_preview");KV(c,"kids");KV(c,"remote");KV(c,"miniplayer");KV(c,"music");KV(c,"offline");KV(c,"unplugged");KV(c,"ypc",!1,!0);KV(c,"ypc_clickwrap",!1,!0);KV(c,"yto",!1,!0);KV(c,"webgl",!1,!0);MUa(c)||(KV(c,"captions",!0),KV(c,"endscreen"),c.NG(),KV(c,"creatorendscreen",!0));c.aV();a.Za.ra("videoready",b)};
Z0=function(a){a=a.Qd();a.Ie();return QT(a)};
a$a=function(a){a.FM();var b=a.config.args;T0(a);var c=a.Qd();a.Za.Ta("onVolumeChange",a.Gi);if(b&&dUa(b)){var d=tS(a.Z);d&&!a.gi&&(b.fetch=0);var e=g.eS(a.Z);e&&!a.gi&&(b.fetch=0);$0(a,b);g.eS(a.Z)&&a.Hb.tick("ep_pr_s");if(d&&!a.gi)a1(a);else if(e&&!a.gi)l$a(a);else if(!c.Ie())a.playlist.onReady(function(){b1(a)})}wY(a,a.Bb);
g.aH(a.Bb.getPlayerState(),128)||(b=KAa(!a.Z.deviceIsAudioOnly),"fmt.noneavailable"===b?a.Rg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Rg(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.Ie()&&Z0(a)&&(a.Z.Ji||a.Z.Oi)?c1(a):c.CK?a.J.mutedAutoplay():g.gD("yt-player-playback-on-reload")?(g.zD("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.Z.va}),g.fD("yt-player-playback-on-reload",!1),c1(a)):BS(a.Z)||m$a(a),g.vS(a.Z)||"MWEB"===g.JR(a.Z)?
(g.sD(g.uD(),function(){d1(a)}),g.sD(g.uD(),function(){Fxa()})):(d1(a),Fxa()))};
d1=function(a){if(a.N("fetch_att_independently"))g.bu(a.xU);else{var b=a.getVideoData().botguardData;b&&g.GKa(b,a.Z,a.getVideoData().Fk||"")}};
m$a=function(a){a.Za.ra("initializingmode");a.Sp(2);a.N("embeds_web_enable_defer_loading_remote_js")&&g.xS(a.Z)?g.sD(g.uD(),function(){KV(a.Cd,"remote")}):KV(a.Cd,"remote");
KV(a.Cd,"miniplayer")};
c1=function(a){if(g.aH(a.Bb.getPlayerState(),128))return!1;var b=a.Bb.getVideoData();Z0(a)&&a.Z.Oi&&(mY.length&&a.jA?(hU(a,{muted:!1,volume:a.Gi.volume},!1),e1(a,!1)):mY.length||a.Gi.muted||(hU(a,{muted:!0,volume:a.Gi.volume},!1),e1(a,!0)));Z0(a)&&a.Z.Fo&&b.mutedAutoplay&&(hU(a,{muted:!0,volume:a.Gi.volume},!1),e1(a,!0));b.dU&&hU(a,{muted:!0,volume:a.Gi.volume},!1);n$a(a,1,b,!1);a.Za.ra("initializingmode");wY(a,a.Bb);a.Sp(3);var c;if(!(c=!a.Z.Om)){if(c=a.De)c=a.mediaElement,c=!!c&&c===a.De.mediaElement;
c=c&&a.NW}c&&(a.Bj(),T0(a),a.Bb.setMediaElement(a.mediaElement));q9a(a.Bb);if(g.aH(a.Bb.getPlayerState(),128))return!1;b.Ho||V0(a,3);return a.NW=!0};
Y0=function(a){a=rU(a.Cd);return!!a&&a.loaded};
o$a=function(a,b){if(!a.Lb)return!1;var c=.001*a.Lb.startTimeMs-1,d=.001*a.Lb.endTimeMs;"repeatChapter"===a.Lb.type&&d--;return 1E-6>=Math.abs(b-c)||1E-6>=Math.abs(b-d)||b>=c&&b<=d};
p$a=function(a){if(!(g.aH(a.Bb.getPlayerState(),64)&&a.Qd().isLivePlayback&&5E3>a.Lb.startTimeMs)){if("repeatChapter"===a.Lb.type){var b,c=null==(b=HRa(a.Eb()))?void 0:b.pH(),d;b=null==(d=a.getVideoData())?void 0:d.lk;c instanceof g.bW&&b&&(d=b[GW(b,a.Lb.startTimeMs)],c.XE(0,d.title));isNaN(Number(a.Lb.loopCount))?a.Lb.loopCount=0:a.Lb.loopCount++;1===a.Lb.loopCount&&a.J.Ta("innertubeCommand",a.getVideoData().m6)}c={Id:"application_loopRangeStart"};"clips"===a.Lb.type&&(c.seekSource=58);a.Bb.seekTo(.001*
a.Lb.startTimeMs,c)}};
Y9a=function(a,b){var c=a.Za.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(100*b+.001)%5,b=0===a?b:Math.floor(100*(b-.01*a)+.001)/100);return b};
g1=function(a,b,c){if(a.Mf(c)){c=c.getVideoData();if(f1(a))c=b;else{a=a.od;for(var d=g.u(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.fd===e.fd){b+=e.Kc/1E3;break}d=b;a=g.u(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.fd===e.fd)break;var f=e.Kc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Yd/1E3;else break}c=d}return c}return b};
q$a=function(a,b){if(3===a.getPresentingPlayerType())return YL(rU(a.Cd).lf);if(a.getVideoData().enableServerStitchedDai&&2===b){var c;return(null==(c=a.Ve)?0:M_a(c,a.getCurrentTime()))?a.hH:-1}return 2!==b||a.Mf()?a.hH:a.VM};
$9a=function(a){h1(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Cy.Cy={};a.yJ={};a.RA=[];bUa(a.Hb);if(a.Ve){var b=a.Ve,c=a.Bb;c.getPlayerType();HY(b,!1);Q_a(b);R_a(b);b.xa=c}b=a.od;a=a.Bb;1!==a.getPlayerType()&&QY(b,"invalidParentVideoPlayerType");UY(b,!1);B0a(b);b.j=a};
a1=function(a){var b=r$a();if(b)if(!b.list)a.DG();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Za.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.vV(a.playlist).videoId||(b.index=a.playlist.index));gUa(a.playlist,b);a.OE&&s$a(a,a.OE)}else a.OE=null};
l$a=function(a,b){var c=(b?b:a.Qd()).eW;a.Hb.tick("ep_pr_r");if(null!=c&&(gUa(a.playlist,c),a.iR))a.playlist.onReady(function(){b1(a,b)})};
$0=function(a,b){a.playlist&&(g.sb(a.playlist),a.playlist=null);b&&(a.gi&&(b.fetch=0),a.playlist=new cUa(a.Z,b))};
w$a=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.u(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.getVideoData().clientPlaybackNonce};c=g.Qt(c,d);d=void 0;d=void 0===d?!1:d;(d=iK(jK(c,t$a),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=iK(jK(c,u$a),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=iK(jK(c,v$a),c,d,"Nielsen OCR URL"));g.EE(c,void 0,d)}return!0};
V0=function(a,b){if(a.Ob){var c=a.Ob.getPlayerType();if(2===c&&!a.Mf()){a.VM!==b&&(a.VM=b,a.Za.Ta("onAdStateChange",b));return}if(2===c&&a.Mf()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}if(0===b){if(a.Lb)return;var d;if((null==(d=a.Ob)?0:d.Zs())&&!AS(a.Z)){a.playVideo();return}}a.hH!==b&&(a.hH=b,a.Za.Ta("onStateChange",b))};
x$a=function(a,b,c,d,e){d=void 0===d?Infinity:d;e=void 0===e?0:e;c=c||a.Ob.getPlayerType();var f=n$a(a,c,b,!0);f||(f=i$a(a,c,b));2===c&&a.Bb&&(b=f.getVideoData(),a.Bb.LA(b.clientPlaybackNonce,b.Me||"",b.breakType||0,b.Qi));a.cH(f,d,0,e)};
y$a=function(a,b,c){return i1(a,b,c.videoId,c.fd,c.isAutonav,c.Rp)};
i1=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;b=b+"_"+c+"_"+d;a.Z.N("html5_autonav_autoplay_in_preload_key")&&(b+="_"+ +e+ +f);return b};
n$a=function(a,b,c,d){var e=a.Z.N("html5_autonav_autoplay_in_preload_key")?y$a(a,b,c):i1(a,b,c.videoId,c.fd);var f=a.EA.get(e);if(!f)return null;a.EA.remove(e);if(g.aH(f.getPlayerState(),128))return f.dispose(),null;if(f===g.dU(a,b))return g.hI({isCacheHit:!0},a.Hb.timerName),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||wY(a,f,!0);g.hI({isCacheHit:!0},a.Hb.timerName);return f};
j1=function(a,b,c){c=g.dU(a,c);b&&c===a.Bb&&(c.getVideoData().fg=!0)};
k1=function(a,b,c){c=void 0===c?1:c;if(b.Ie()){var d=a.Uy(c,b);a.cancelPlayback(4,c);wY(a,d);i9a(d);1===c&&(a.Sp(1),g.eS(a.Z)&&!lRa(b)?(b.dispose(),g.sb(g.dU(a,c))):m$a(a))}else b.dispose(),g.sb(g.dU(a,c)),jRa(a.Qd())&&2===c&&delete a.Yr[2]};
z$a=function(a,b,c,d,e){b=KRa(b,c,d,e);(c=g.eS(a.Z)&&!a.Z.Ca)&&!a.gi&&(b.fetch=0);$0(a,b);g.eS(a.Z)&&a.Hb.tick("ep_a_pr_s");if(c&&!a.gi)c=a.Qd(),jUa(c,b).then(function(f){a.iR=!0;l$a(a,f)});
else a.playlist.onReady(function(){b1(a)});
g.eS(a.Z)&&a.Hb.tick("ep_a_pr_r")};
b1=function(a,b){var c=g.eS(a.Z)&&!a.Z.Ca,d=c&&b?b:g.vV(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.fl&&(a.Z.Ji||a.Z.Oi)||!a.Wv?(b=b.fg,d=a.Nt(d,1),b&&j1(a,d)):k1(a,d,1));g.eS(a.Z)&&a.Hb.tick("ep_p_l");a.iR=!1;a.Za.Ta("onPlaylistUpdate")};
h$a=function(a){if(a.playlist&&g.jS(a.Z)&&a.VC()){var b=a.Z.N("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
s$a=function(a,b){var c=g.Ta(b);c?((b=r$a())&&b.list&&c(),a.OE=null):a.OE=b};
r$a=function(){var a=g.Ta("yt.www.watch.lists.getState");return a?a():null};
A$a=function(a,b,c,d,e,f,h){b={id:b,namespace:null!=h?h:"appapi"};"chapter"===f?(b.style=nK.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=nK.AD_MARKER:(b.style=nK.TIME_MARKER,b.color=e),b.visible=!0);a.Ay([new g.oK(1E3*c,1E3*d,b)],1);return!0};
B$a=function(a,b,c,d,e,f){f=void 0===f?!0:f;var h=a.Ze();if(!h)return f&&a.getVideoData().isLivePlayback&&a.RA.push({id:b,Faa:c,Eaa:d}),!1;f=h-a.getCurrentTime();return A$a(a,b,c-f,d-f,void 0,void 0,e)};
C$a=function(a,b){a.RA=g.ts(a.RA,function(f){return f.id!==b});
for(var c=a.Bb.cn(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.Bb.removeCueRange(e),U0(a,"cuerangesremoved",[e]),!0}return!1};
D$a=function(a){var b=(0,g.OD)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
hU=function(a,b,c){a.Z.eb&&(a.Gi=b,b.muted||e1(a,!1),c&&a.Z.storeUserVolume&&!a.Z.Kd&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.fD("yt-player-volume",c),g.fD("yt-player-volume",c,2592E3))),E$a(a),c=g.sL&&a.mediaElement&&!a.mediaElement.Lf(),a.Z.Kd&&!c||a.Za.Ta("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.Z.storeUserVolume}))};
E$a=function(a){var b=a.getVideoData();if(!b.Al){b=a.Z.Kd?1:hRa(b);var c=a.mediaElement;c.WA(a.Gi.muted);try{c.setVolume(a.Gi.volume*b/100)}catch(d){g.UF(new g.nD("b183742307","multiplier: "+b+", volume: "+a.Gi.volume))}}};
e1=function(a,b){b!==a.jA&&(a.jA=b,a.Za.Ta("onMutedAutoplayChange",b))};
g.iU=function(a){return a.jA&&a.getVideoData().mutedAutoplay};
F$a=function(a){var b=TC(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.Gb())?b:null};
H$a=function(a,b){var c=window.screen&&window.screen.orientation;if((a.Z.N("lock_fullscreen2")||a.Z.ma)&&c&&c.lock&&(!g.sL||!G$a))if(b){b=0===c.type.indexOf("portrait");var d=a.template.getVideoAspectRatio(),e=b;1>d?e=!0:1<d&&(e=!1);if(!a.CE||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
a.CE=!0}}else a.CE&&(a.CE=!1,c.unlock())};
U0=function(a,b,c){a.Za.ra(b,c);var d=g.UJ(a.Z)||g.kS(a.Z)||g.qH(a.Z);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Za.Ta(e,c.map(function(f){return{getId:function(){return this.id},
end:f.end,id:f.getId(),namespace:"ad"===f.namespace?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}};
l1=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.dU(a,e);if(!h||(2!==h.getPlayerType()||a.Mf(h)||f)&&!g.FT(h.getVideoData()))3===a.getPresentingPlayerType()?rU(a.Cd).mE("control_seek",b,c):(h===a.Bb&&a.Lb&&!o$a(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
f$a=function(a,b,c){c&&(a.Bj(),T0(a));c=g.dU(a);c.Ae(new WK("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?rT(d)&&g.SJ(a.Z)&&(e.live_utc_start=c.Ze(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.va&&(e.vvt=d.va);d.G&&(e.vss_credentials_token=d.G,e.vss_credentials_token_type=d.Jm);d.oauthToken&&(e.oauth_token=d.oauthToken);d.Qm&&(e.force_gvi=d.Qm);e.autoplay=1;e.reload_count=d.Mb+1;e.reload_reason=b;d.zB&&(e.unplugged_partner_opt_out=
d.zB);d.gg&&(e.ypc_is_premiere_trailer=d.gg);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);"signature"===b&&a.Ve&&j$a(a)};
I$a=function(a,b){a.Qd().autonavState=b;g.fD("yt-player-autonavstate",b);a.Za.ra("autonavchange",b)};
J$a=function(a){var b=a.getVideoData().Al,c=a.Z.Ub,d=a.isInline()&&!a.getVideoData().cC,e=a.mediaElement;b||c||d?e.HM():(e.LM(),hU(a,a.Gi))};
Z9a=function(a,b){return a.Z.N("html5_enable_embedded_player_visibility_signals")&&g.eS(a.Z)?new G0a(b):null};
h1=function(a){(a=MV(a.Eb()))&&a.created&&a.destroy()};
f1=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.Ve};
K$a=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.u(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Br(a,d);b.hidden=!!a.hidden};
L$a=function(a,b){return g.UJ(a.Z)&&Wma(b)&&fC(b)?g.DS(a.Z,g.RT(a.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):uC()};
m1=function(a,b){L$a(a,b).then(function(c){g.EE(b,void 0,void 0,c)})};
n1=function(a,b){b.forEach(function(c){m1(a,c)})};
H0a=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
M$a=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
N$a=function(){var a=null;$na().then(function(b){return a=b},function(b){return a=M$a(b)});
return a};
O$a=function(){var a=ig(1E3,"NO_BID");return eg(pca([$na(),a]).xk(M$a),function(){a.cancel()})};
P$a=function(a){return a.Le?g.lD(g.kD(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
o1=function(a){this.player=a;this.B=this.j=1};
R$a=function(a,b,c,d){var e=void 0===c?{}:c;c=e.QG;var f=e.Xe,h=e.cueProcessedMs;d=void 0===d?"":d;var l=a.player.getVideoData(1);e=a.player.W().Ho;var m={AD_BLOCK:a.j++,AD_BREAK_LENGTH:c?c.di:0,AUTONAV_STATE:P$a(a.player.W()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Cv(),LACT:dF(),LIVE_INDEX:c?a.B++:1,LIVE_TARGETING_CONTEXT:c&&c.context?c.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.tb().Vj().height,
P_W:a.player.tb().Vj().width,YT_REMOTE:e?e.join(","):""},n=Zma(Yma);Object.keys(n).forEach(function(q){null!=n[q]&&(m[q.toUpperCase()]=n[q].toString())});
""!==d&&(m.BISCOTTI_ID=d);d={};Wma(b)&&(d.sts="19619",(c=a.player.W().forcedExperiments)&&(d.forced_experiments=c));var p=dC(g.Qt(b,m),d);a.player.getVideoData();return 2!==p.split("?").length?Vf(Error("Invalid AdBreakInfo URL")):g.DS(a.player.W(),null==l?void 0:l.oauthToken).then(function(q){if(q&&fC()){var r=yU();bSa(r,q)}q=a.player.pn(r);r=Q$a(a,p,m,l.isMdxPlayback,h);return g.nI(q,r,"/youtubei/v1/player/ad_break").then(function(t){return t})})};
U$a=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=eC(b),f=S$a(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=S$a(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=ZB(gC(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=[];T$a.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.j.cosver;null!=b&&"cosver"!==b&&(a.client.osVersion=b);b=d.j.cplatform;null!=b&&"cplatform"!==b&&""!==b&&(a.client.platform=b);b=d.j.cmodel;null!=b&&"cmodel"!==b&&(a.client.deviceModel=b);b=d.j.cplayer;null!=b&&"cplayer"!==b&&(a.client.playerType=b);d=d.j.cbrand;null!=d&&"cbrand"!==d&&(a.client.deviceMake=d);a.user||(a.user={});a.user.lockedSafetyMode=!1};
X$a=function(a,b){var c=!1;if(""===b)return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";"!"===d[0]&&(d=d.substring(1),h="INACTIVE");d=d.split("-");3>d.length||(d[0]in V$a&&(f.clientName=V$a[d[0]]),d[1]in W$a&&(f.platform=W$a[d[1]]),f.applicationState=h,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
Q$a=function(a,b,c,d,e){var f=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?Math.trunc(c.DRIFT_FROM_HEAD_MS):0,h=Y$a.exec(b);h=null!=h&&2<=h.length?h[1]:"";var l=Z$a.test(b),m=$$a.exec(b);m=null!=m&&2<=m.length?m[1]:"";var n=aab.exec(b),p=null!=n&&2<=n.length&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;n=bab.exec(b);var q=null!=n&&2<=n.length?n[1]:"0",r=FOa(a.player.W().Ja);n=a.player.getVideoData(1);var t=g.xH(n.Ca,!0),v="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";U$a(t,b,v.toString(),a.player.W());
var x={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19619,autonavState:P$a(a.player.W())};d&&(d={},X$a(d,c.YT_REMOTE)&&(x.mdxContext=d));if(d=cab.includes(r)?void 0:g.yC("PREF")){for(var B=d.split(RegExp("[:&]")),G=0,F=B.length;G<F;G++){var I=B[G].split("=");if(("SML"===I[0].toUpperCase()||"GSML"===I[0].toUpperCase())&&1<I.length&&"TRUE"===I[1].toUpperCase()){t.user.lockedSafetyMode=!0;
break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in dab)for(d=d.split(RegExp("[:&]")),G=dab.FLAG_AUTO_CAPTIONS_DEFAULT_ON,B="f"+(1+Math.floor(G/31)).toString(),G=1<<Math.floor(G%31),F=0,I=d.length;F<I;F++){var P=d[F].split("=");if(P[0]===B&&parseInt("0x"+P[1],16)&G){d=!0;break a}}d=!1}x.autoCaptionsDefaultOn=d}b=eab.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&m&&(t.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:x};h={adBlock:Math.trunc(c.AD_BLOCK),params:h,breakIndex:p,
breakPositionMs:q,clientPlaybackNonce:c.CPN,topLevelDomain:r,isProxyAdTagRequest:l,context:t,adSignalsInfoString:ZB(gC(v.toString())),overridePlaybackContext:b};void 0!==e&&(h.cueProcessedMs=Math.round(e).toString());m&&(h.videoId=m);c.LIVE_TARGETING_CONTEXT&&(h.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(h.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());f&&(h.driftFromHeadMs=f.toString());h.currentMediaTimeMs=Math.round(1E3*a.player.getCurrentTime(1));a={isSabr:qT(n)};
var R;if(c=null==(R=n.getHeartbeatResponse())?void 0:R.adBreakHeartbeatParams)a.adBreakHeartbeatParams=c;a&&(h.getAdBreakContext=a);return h};
p1=function(a,b){this.Pu=a;this.Ra=b};
q1=function(a){this.J=a};
r1=function(a,b){this.AA=a;this.Ra=b};
gab=function(a){g.J.call(this);this.Ig=a;this.Q2=fab(this)};
fab=function(a){var b=new GI(a.Ig.Pd);g.L(a,b);a=g.u([new p1(a.Ig.Pu,a.Ig.Ra),new q1(a.Ig.J),new r1(a.Ig.AA,a.Ig.Ra),new BI(a.Ig.tj,a.Ig.Xk),new DI,new II(a.Ig.Tn,a.Ig.Lk,a.Ig.Ra),new CI]);for(var c=a.next();!c.done;c=a.next())c=c.value,Jxa(b,c),Kxa(b,c);a=g.u(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())c=c.value,EI(b,c,function(){}),FI(b,c,function(){});
return b};
s1=function(a,b,c,d,e){g.J.call(this);this.J=a;this.B=b;this.Ka=c;this.bb=d;this.Hf=e;this.listeners=[];var f=new aD(this);g.L(this,f);f.V(a,"internalAbandon",this.wP);g.ub(this,function(){g.cD(f)})};
t1=function(a){this.J=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.D=!0;this.B=this.wg=!1;this.adFormat=null;this.C="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
iab=function(a,b,c,d,e,f){f();var h=a.J.getVideoData(1),l=a.J.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId,a.j=h.G);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.C=b;0>=d?f():(a.actionType=a.D?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==a.actionType&&(a.wg=!0,gI("_start",a.actionType)&&hab(a)))};
jab=function(a,b){a=g.u(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){jI("ad_i");g.hI({isMonetized:!0});break}};
kab=function(a){var b=a.J.getVideoData(1);if(!a.J.N("html5_no_video_to_ad_on_preroll")||null!=b&&b.Va)a.B=!1,b={},a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId}),iI("video_to_ad",b)};
wAa=function(a){a.B=!1;var b={};a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});iI("ad_to_video",b);hab(a)};
hab=function(a){if(a.wg)if(a.J.N("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.C&&"video_to_ad"===a.actionType)fI("video_to_ad");else if(a.J.N("web_csi_via_jspb")){var b=new AB;b=O(b,8,2);var c=new BB;c=O(c,21,lab(a.C));c=O(c,7,4);b=tj(c,AB,22,b);b=O(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&N(b,76,a.contentCpn),a.videoId&&N(b,78,a.videoId)):(a.adCpn&&N(b,76,a.adCpn),a.adVideoId&&N(b,78,a.adVideoId));a.adFormat&&N(b,12,a.adFormat);a.contentCpn&&
N(b,8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&N(b,28,a.adCpn);a.adVideoId&&N(b,20,a.adVideoId);g.WB(dI)(b,a.actionType)}else b={adBreakType:iBa(a.C),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),a.adFormat&&(b.adType=
a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),g.hI(b,a.actionType)};
iBa=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}};
lab=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return 1;case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return 2;case "AD_PLACEMENT_KIND_END":return 3;default:return 0}};
u1=function(a){g.J.call(this);this.J=a;this.j=new Map;this.B=new aD(this);g.L(this,this.B);this.B.V(this.J,g.pK("ad"),this.onCueRangeEnter,this);this.B.V(this.J,g.qK("ad"),this.onCueRangeExit,this)};
nab=function(a,b){(b=a.j.get(b))&&mab(a,b)};
mab=function(a,b){a.J.Op([b.Xe],b.po);a.j.delete(b.Xe.id)};
oab=function(a,b,c,d,e){g.oK.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
v1=function(a){this.J=a};
w1=function(a){this.J=a};
x1=function(a){var b,c,d,e;return g.vS(a.J.W())&&(null==(b=a.J.getVideoData(1))?void 0:null==(c=b.getPlayerResponse())?void 0:null==(d=c.playerConfig)?void 0:null==(e=d.ssapConfig)?void 0:e.ssapPrerollEnabled)||!1};
xN=function(a,b){return a.J.W().N(b)};
pab=function(a){return a.J.W().N("substitute_ad_cpn_macro_in_ssdai")};
CN=function(a){var b,c,d;return(null==(b=a.J.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
HEa=function(a){return a.J.W().N("html5_enable_vod_slar_with_notify_pacf")};
qab=function(a){return a.J.W().N("html5_recognize_predict_start_cue_point")};
rab=function(a){return a.J.W().N("enable_lr_home_infeed_ads_inline_playback_progress_pings")};
nDa=function(a){return a.J.W().experiments.ob("enable_desktop_player_underlay")};
cM=function(a){return a.J.W().experiments.ob("html5_load_ads_instead_of_cue")};
dM=function(a){return a.J.W().experiments.ob("html5_preload_ads")};
sab=function(a){return a.J.W().experiments.ob("html5_rebase_video_to_ad_timeline")};
tab=function(a){switch(a){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression";
case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}};
uab=function(){g.lG.call(this);var a=this;this.j={};g.ub(this,function(){for(var b=g.u(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
y1=function(){if(null===vab){vab=new uab;aq(Pt).B="b";var a=aq(Pt),b="h"==It(a)||"b"==It(a),c=!(fq(),!1);b&&c&&(a.D=!0,a.G=new oja)}return vab};
wab=function(a,b,c){a.j[b]=c};
xab=function(a){switch(a){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen";
case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "skip":case "unmuted_skip":return"skip";
case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}};
B1=function(a,b){this.Ka=a;this.J=b;this.j=new Map;y1().subscribe("adactiveviewmeasurable",this.gE,this);y1().subscribe("adfullyviewableaudiblehalfdurationimpression",this.fE,this);y1().subscribe("adviewableimpression",this.hE,this);y1().subscribe("adaudioaudible",this.dE,this);y1().subscribe("adaudiomeasurable",this.eE,this)};
yab=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?ZG("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),Fp(fq().Mc,"fmd",1),yka(aq(Pt),c),wab(y1(),b,{rN:function(){return d?{currentTime:a.Ka.get().getCurrentTimeSec(2,!1),duration:d,isPlaying:2===a.Ka.get().getPresentingPlayerType()&&1===C1(a.Ka.get(),2),tfb:!1,ufb:!0,volume:a.Ka.get().isMuted()?0:a.Ka.get().getVolume()/100}:{}}}))};
zab=function(a,b){a.j.has(b)?(a.j.delete(b),delete y1().j[b]):ZG("Unexpected unregistration of layout in LidarApi")};
Cab=function(a,b){var c={};Aab(a,c,b);Bab(c);c.LACT=D1(function(){return dF().toString()});
c.VIS=D1(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=D1(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
Dab=function(a,b){var c={};if(b)return c;if(!a.kind)return g.TF(Error("AdPlacementConfig without kind")),c;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.TF(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=D1(Jd(Math.round(Le(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=D1(Jd("0"));return c};
D1=function(a){return{toString:function(){return a()}}};
Eab=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)}
function e(l,m){(m=c[m])&&(f[l]=h(m))}
if(!c||g.jd(c))return a;var f=Object.assign({},a),h=b?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
Aab=function(a,b,c){b.CPN=D1(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.UF(Error("Video data is null.")),d=null);return d});
b.AD_MT=D1(function(){return Math.round(Math.max(0,1E3*(null!=c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=D1(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=D1(function(){return a.tb().Vj().height.toString()});
b.P_W=D1(function(){return a.tb().Vj().width.toString()});
b.PV_H=D1(function(){return a.tb().getVideoContentRect().height.toString()});
b.PV_W=D1(function(){return a.tb().getVideoContentRect().width.toString()})};
Bab=function(a){a.CONN=D1(Jd("0"));a.WT=D1(function(){return Date.now().toString()})};
Fab=function(){};
Gab=function(a,b,c,d,e){var f,h,l,m,n,p,q,r,t,v,x;g.H(function(B){switch(B.j){case 1:f=!!b.scrubReferrer;h=g.Qt(b.baseUrl,Eab(c,f,d));l={};if(!b.headers){B.Ma(2);break}m=a.j();if(!m.j){n=m.getValue();B.Ma(3);break}return g.z(B,m.j,4);case 4:n=B.B;case 3:p=n;q=g.u(b.headers);for(r=q.next();!r.done;r=q.next())switch(t=r.value,t.headerType){case "VISITOR_ID":g.Iv("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.Iv("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Iv("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]=
g.Iv("EOM_VISITOR_DATA"));break;case "USER_AUTH":p&&(l.Authorization="Bearer "+p);break;case "PLUS_PAGE_ID":(v=a.C())&&(l["X-Goog-PageId"]=v);break;case "AUTH_USER":x=a.B();!p&&x&&(l["X-Goog-AuthUser"]=x,l["X-Yt-Auth-Test"]="test");break;case "ATTRIBUTION_REPORTING_ELIGIBLE":l["Attribution-Reporting-Eligible"]="event-source"}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];case 2:g.EE(h,void 0,f,0!==Object.keys(l).length?l:void 0,"",!0,e),g.ya(B)}})};
E1=function(a,b,c){this.G=a;this.K=b;this.D=c};
Hab=function(a){this.Pu=a};
F1=function(a,b,c,d){var e=void 0===e?new E1(function(){var f=a.W(),h=a.getVideoData(1);return g.DS(f,h?g.RT(h):"")},function(){return a.W().pageId},function(){return a.W().va}):e;
this.J=a;this.B=b;this.Xb=c;this.bb=d;this.Pu=e;this.gK=null;this.j=new Map;this.AA=new Hab(e)};
Iab=function(a,b,c,d){var e=Gza(a.B.get(),c);e?(c=EK(a,Hza(e),e,void 0,void 0,d),b.hasOwnProperty("baseUrl")?a.Pu.send(b,c):a.AA.send(b,c,{})):ZG("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
gM=function(a,b){g.zD("adsClientStateChange",b)};
Jab=function(a,b){a.j.has(b.nz())?ZG("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.nz(),b)};
Kab=function(a,b){a.j.delete(b.nz())||ZG("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
Hza=function(a){var b=EJ(a.Ea,"metadata_type_ad_placement_config");a=EJ(a.Ea,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,zX:a}};
EK=function(a,b,c,d,e,f){var h=c?Lab(a):{};c=c?Mab(a,c.layoutId):{};var l=Nab(a),m,n=null!=e?e:null==(m=a.bb.get().Kf(2))?void 0:m.clientPlaybackNonce;a.J.W().N("enable_player_logging_lr_home_infeed_ads")&&!n&&(n=a.bb.get().Kf(1).clientPlaybackNonce);e={};d=Object.assign({},Cab(a.J,d),Dab(b.adPlacementConfig,a.J.N("h5_disable_client_subs_slot_pos")),c,h,l,(e.FINAL=D1(function(){return"1"}),e.AD_CPN=D1(function(){return n||""}),e));
a.J.N("h5_disable_client_subs_slot_pos")||(d.SLOT_POS=D1(function(){return(b.zX||0).toString()}));
a={};f=Object.assign({},d,f);d=g.u(Object.values(Oab));for(h=d.next();!h.done;h=d.next())h=h.value,e=f[h],null!=e&&null!=e.toString()&&(a[h]=e.toString());return a};
Lab=function(a){var b={},c,d=null==(c=a.gK)?void 0:c.aj/1E3;null!=d&&(b.SURVEY_ELAPSED_MS=D1(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=D1(function(){return Math.round(Date.now()/1E3).toString()});
return b};
Mab=function(a,b){a=a.j.get(b);if(!a)return{};a=a.fN();if(!a)return{};b={};return b.YT_ERROR_CODE=a.tK.toString(),b.ERRORCODE=a.HF.toString(),b.ERROR_MSG=a.errorMessage,b};
Nab=function(a){var b={},c=a.J.getVideoData(1);b.ASR=D1(function(){var d;return null!=(d=null==c?void 0:c.sx)?d:null});
b.EI=D1(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null});
return b};
G1=function(a,b,c){g.J.call(this);this.J=a;this.Ce=b;this.Ia=c;this.listeners=[];this.GO=null;this.SL=new Map;b=new g.ZK(this);g.L(this,b);b.V(a,"videodatachange",this.A9);b.V(a,"serverstitchedvideochange",this.X8);this.wv=this.Kf()};
Qab=function(a,b,c){var d=Pab(a,b,c);a.wv=d;a.listeners.forEach(function(e){e.VI(d)})};
Pab=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,h=b.fd,l=b.title,m=b.pk,n=b.rl,p=b.isMdxPlayback,q=b.Jm,r=b.mdxEnvironment,t=b.isAutonav,v=b.Rp,x=b.fl,B=b.Zu,G=b.videoId||"",F=b.profilePicture||"",I=b.Hl||"";b=b.fv||void 0;h=a.Ce.get().j.get(h)||{layoutId:null,slotId:null};var P=a.J.getVideoData(1),R=P.Fc();P=P.getPlayerResponse();c=1E3*a.J.getDuration(c);a=1E3*a.J.getDuration(1);var Z,ma,ua=(null==P?void 0:null==(Z=P.playerConfig)?void 0:null==(ma=Z.daiConfig)?void 0:ma.enableDai)||
!1,oa,ia;Z=(null==P?void 0:null==(oa=P.playerConfig)?void 0:null==(ia=oa.daiConfig)?void 0:ia.enablePreroll)||!1;return Object.assign({},h,{videoId:G,author:d,clientPlaybackNonce:e,N9:c,ov:a,daiEnabled:ua,gV:Z,isListed:f,Fc:R,profilePicture:F,title:l,Hl:I,pk:m,rl:n,fv:b,isMdxPlayback:p,Jm:q,mdxEnvironment:r,isAutonav:t,Rp:v,fl:x,Zu:B})};
H1=function(a,b,c){g.J.call(this);this.J=a;this.bb=b;this.Ia=c;this.listeners=[];this.LG=[];this.j=function(){ZG("Called 'doUnlockPreroll' before it's initialized.")};
b=new aD(this);c=new g.ZK(this);g.L(this,c);g.L(this,b);b.V(a,"progresssync",this.x8);b.V(a,"presentingplayerstatechange",this.o8);b.V(a,"fullscreentoggled",this.onFullscreenToggled);b.V(a,"onVolumeChange",this.onVolumeChange);b.V(a,"minimized",this.Eh);b.V(a,"overlayvisibilitychange",this.Zk);b.V(a,"resize",this.Nb);c.V(a,g.pK("appad"),this.Yk)};
I1=function(a){x1(a.Ia.get())||a.j()};
Rab=function(a,b){a.LG=a.LG.filter(function(c){return c!==b})};
Sab=function(a,b){var c;b=null!=(c=a.bb.get().SL.get(b))?c:null;if(null===b)return ZG("Expected ad video start time on playback timeline"),0;a=a.J.getCurrentTime(2,!0);return a<b?0:a-b};
C1=function(a,b){return a.J.Tb(b)};
Uab=function(a){var b=a.J.tb().Vj();a=a.J.Pk(!0,!0);return b.height-(a.height+a.top)};
Vab=function(a){a.J.cueVideoByPlayerVars({videoId:"empty_video"},2)};
Wab=function(a,b){var c=a.J.W();g.iS(c)||"3"!==c.controlsType||a.J.tb().SJ(b)};
J1=function(a,b){g.iu(a.J.getRootNode(),b)};
K1=function(a,b){g.ku(a.J.getRootNode(),b)};
Xab=function(a,b,c,d,e){g.J.call(this);var f=this;this.jb=cK(function(){return new YN});
g.L(this,this.jb);this.Kb=cK(function(){return new ZN(f.jb,f.Ia)});
g.L(this,this.Kb);this.Zc=cK(function(){return new JN});
g.L(this,this.Zc);this.Wb=cK(function(){return new HN(a)});
g.L(this,this.Wb);this.Rb=cK(function(){return new $N(f.jb,f.Kb,f.Ia)});
g.L(this,this.Rb);this.Ce=cK(function(){return new dO});
g.L(this,this.Ce);this.Yb=cK(function(){return new dK(e)});
g.L(this,this.Yb);this.Wc=cK(function(){return new t1(b)});
g.L(this,this.Wc);this.Dc=cK(function(){return new u1(b)});
g.L(this,this.Dc);this.Pd=cK(function(){return new v1(b)});
g.L(this,this.Pd);this.Ia=cK(function(){return new w1(b)});
g.L(this,this.Ia);this.jc=cK(function(){return new KJ(f.Ia)});
g.L(this,this.jc);this.Ee=cK(function(){return new zN(f.jb,f.Rb,f.Kb,f.Ia,f.jc,null,null)});
g.L(this,this.Ee);this.bb=cK(function(){return new G1(b,f.Ce,f.Ia)});
g.L(this,this.bb);this.pc=new cO(this.Ia,this.jc,this.bb);g.L(this,this.pc);this.Ka=cK(function(){return new H1(b,f.bb,f.Ia)});
g.L(this,this.Ka);this.Xb=cK(function(){return new B1(f.Ka,b)});
g.L(this,this.Xb);this.Ra=cK(function(){return new F1(b,f.Zc,f.Xb,f.bb)});
g.L(this,this.Ra);this.kd=new GN(this.Wb,this.Ee,c,this.Ia,a,this.bb,this.Ka,this.Wc);g.L(this,this.kd);var h=new s1(b,this.kd,this.Ka,this.bb);this.Hg=cK(function(){return h});
this.Ut=h;this.Ff=new IN(this.Wb,this.Rb,this.Dc,this.Hg);g.L(this,this.Ff);this.rd=new nN(this.Ia,this.Wb,this.Rb,this.Ee,this.bb,this.Ff,c);g.L(this,this.rd);this.Ef={Dw:new Map,yq:new Map,Dl:new Map,Lr:new Map,Yq:new Map};this.listeners=[];this.dw={rd:this.rd,Lk:this.Ia.get(),qb:this.Yb.get(),Gw:this.Ka.get(),kd:this.kd,At:this.jb.get(),Tz:null,Xk:{ON:function(){}},
tj:this.Zc.get(),Tn:this.bb.get()}};
L1=function(a,b,c){g.J.call(this);this.Ln=b;this.jb=c;this.Ln.get().addListener(this)};
M1=function(a){this.j=a};
Yab=function(a,b){if(!a)return{Qu:[],adSlots:[],hB:!0,ssdaiAdsConfig:void 0};a.trackingParams&&CP(a.trackingParams);if(a.adThrottled)return{Qu:[],adSlots:[],hB:!0,ssdaiAdsConfig:void 0};var c,d=null!=(c=a.adSlots)?c:[];c=a.playerAds;if(!c||!c.length)return{Qu:[],adSlots:d,hB:!1,ssdaiAdsConfig:void 0};c=c.map(function(f){return f.adPlacementRenderer}).filter(function(f){return!(!f||!f.renderer)});
if(!c.length)return{Qu:[],adSlots:d,hB:!1,ssdaiAdsConfig:void 0};if(0<b.end){var e=b.end.toString();c.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===f.kind&&f.adTimeOffset&&"-1"===f.adTimeOffset.offsetEndMilliseconds&&f.adTimeOffset.offsetEndMilliseconds!==e&&(f.adTimeOffset.offsetEndMilliseconds=e)});
d.map(function(f){return g.S(f,LCa)}).forEach(function(f){var h;
(f=null==f?void 0:null==(h=f.slotEntryTrigger)?void 0:h.mediaTimeRangeTrigger)&&"-1"===f.offsetEndMilliseconds&&(f.offsetEndMilliseconds=e)})}return{Qu:c,
adSlots:d,hB:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
N1=function(a){this.Z=a};
O1=function(a){g.J.call(this);this.J=a;this.listeners=[];this.j=new aD(this);g.L(this,this.j);this.j.V(this.J,"aduxclicked",this.onAdUxClicked);this.j.V(this.J,"aduxmouseover",this.jP);this.j.V(this.J,"aduxmouseout",this.iP);this.j.V(this.J,"muteadaccepted",this.a7)};
Zab=function(a,b,c){b=g.Yp(b,function(d){return new Rua(d,c,d.id)});
a.J.Ta("onAdUxUpdate",b)};
P1=function(a,b){a=g.u(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
Q1=function(a,b){this.B=a;this.C=void 0===b?!1:b;this.j={}};
$ab=function(a,b){var c=a.startSecs+a.di;c=0>=c?null:c;if(null===c)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}b=Math.max(a.startSecs,0);return{i4:new Fu(b,c),a6:new lQ(b,c-b,a.context,a.identifier,a.event,a.j)}};
abb=function(){this.j=[]};
tBa=function(a,b,c){var d=g.Sb(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
R1=function(a,b,c){g.J.call(this);this.J=a;this.Ia=b;this.Ra=c;this.listeners=[];this.D=!1;this.mK=[];this.B=null;this.G=new Q1(this,qab(b.get()));this.C=new abb;this.j=null};
bbb=function(a,b){a.mK.push(b);for(var c=!1,d=g.u(a.listeners),e=d.next();!e.done;e=d.next())c=e.value.hY(b)||c;a.D=c};
dbb=function(a,b){gM(a.Ra.get(),{cuepointTrigger:{event:cbb(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.di,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.J.getVideoData(1).clientPlaybackNonce}})};
cbb=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:return Fn(a,"Unexpected cuepoint event")}};
S1=function(a){this.J=a};
T1=function(a){this.J=a};
U1=function(a){this.J=a};
ebb=function(a){this.J=a};
fbb=function(a,b,c,d,e){g.J.call(this);var f=this;this.jb=cK(function(){return new YN});
g.L(this,this.jb);this.Kb=cK(function(){return new ZN(f.jb,f.Ia)});
g.L(this,this.Kb);this.Zc=cK(function(){return new JN});
g.L(this,this.Zc);this.Wb=cK(function(){return new HN(a)});
g.L(this,this.Wb);this.Rb=cK(function(){return new $N(f.jb,f.Kb,f.Ia)});
g.L(this,this.Rb);this.Ce=cK(function(){return new dO});
g.L(this,this.Ce);this.jg=cK(function(){return new N1(b.W())});
g.L(this,this.jg);this.Cc=cK(function(){return new O1(b)});
g.L(this,this.Cc);this.Yb=cK(function(){return new dK(e)});
g.L(this,this.Yb);this.Wc=cK(function(){return new t1(b)});
g.L(this,this.Wc);this.Dc=cK(function(){return new u1(b)});
g.L(this,this.Dc);this.Fe=cK(function(){return new S1(b)});
g.L(this,this.Fe);this.Pd=cK(function(){return new v1(b)});
g.L(this,this.Pd);this.Ia=cK(function(){return new w1(b)});
g.L(this,this.Ia);this.Vf=cK(function(){return new M1(d)});
g.L(this,this.Vf);this.jc=cK(function(){return new KJ(f.Ia)});
g.L(this,this.jc);this.Ee=cK(function(){return new zN(f.jb,f.Rb,f.Kb,f.Ia,f.jc,"SLOT_TYPE_ABOVE_FEED",f.Oj)});
g.L(this,this.Ee);this.Ag=cK(function(){return new T1(b)});
g.L(this,this.Ag);this.Ln=cK(function(){return new fK});
g.L(this,this.Ln);this.bb=cK(function(){return new G1(b,f.Ce,f.Ia)});
g.L(this,this.bb);this.pc=new cO(this.Ia,this.jc,this.bb);g.L(this,this.pc);this.Hf=cK(function(){return new R1(b,f.Ia,f.Ra)});
g.L(this,this.Hf);this.Sc=cK(function(){return new U1(b)});
g.L(this,this.Sc);this.Ka=cK(function(){return new H1(b,f.bb,f.Ia)});
g.L(this,this.Ka);this.uf=cK(function(){return new gK});
this.Xb=cK(function(){return new B1(f.Ka,b)});
g.L(this,this.Xb);this.Ra=cK(function(){return new F1(b,f.Zc,f.Xb,f.bb)});
g.L(this,this.Ra);this.Ai=new FN(EN,V1,function(l,m,n,p){return tN(f.Kb.get(),l,m,n,p)},this.Wb,this.Rb,this.Kb,this.jc,this.Ia,this.bb);
g.L(this,this.Ai);this.kd=new GN(this.Wb,this.Ee,c,this.Ia,a,this.bb,this.Ka,this.Wc);g.L(this,this.kd);var h=new s1(b,this.kd,this.Ka,this.bb,this.Hf);this.Hg=cK(function(){return h});
this.Ut=h;this.Oj=new BN(this.Wb,this.Rb,this.Hg,this.Hf,this.Ka,this.Ia,this.Ra,this.Sc);g.L(this,this.Oj);this.Ff=new IN(this.Wb,this.Rb,this.Dc,this.Hg);g.L(this,this.Ff);this.rd=new nN(this.Ia,this.Wb,this.Rb,this.Ee,this.bb,this.Ff,c);g.L(this,this.rd);this.Yh=cK(function(){return new rK(f.Vf,f.Kb,f.jc,f.Ia,f.Ra,f.Ka,f.Sc)});
g.L(this,this.Yh);this.ye=cK(function(){return new sK});
g.L(this,this.ye);this.Wf=new NN(a,this.Cc,this.Ia);g.L(this,this.Wf);this.Sb=new ON(a);g.L(this,this.Sb);this.ev=new PN(a);g.L(this,this.ev);this.pg=new RN(a,this.Hg);g.L(this,this.pg);this.hf=new SN(a,this.Dc,this.Ka,this.bb);g.L(this,this.hf);this.hw=new TN(a,this.bb);g.L(this,this.hw);this.Je=new UN(a);g.L(this,this.Je);this.pe=new XN(a);g.L(this,this.pe);this.xi=new VN(a);g.L(this,this.xi);this.ex=new WN(a);g.L(this,this.ex);this.pe=new XN(a);g.L(this,this.pe);this.ke=cK(function(){return new KN});
g.L(this,this.ke);this.Bi=cK(function(){return new LN(f.Ka)});
g.L(this,this.Bi);this.qU=cK(function(){return new bAa(f.Cc,f.Ra,a,f.Zc,f.Xb)});
g.L(this,this.qU);this.Xh=cK(function(){return new KK(f.rd,f.Wb,f.jb)});
g.L(this,this.Xh);this.ji=cK(function(){return new MK(f.Ia,f.Ra,f.Je,f.Xb)});
g.L(this,this.ji);this.zi=cK(function(){return new TBa(a,f.pe,f.Je,f.bb,f.Sc,f.Ka,f.Ra,f.Ce,f.Hf,f.Xb,f.uf,f.Fe,f.Dc,f.Wc,f.Pd,f.jg,f.Yb,f.Ag,f.Ia,f.Zc)});
g.L(this,this.zi);this.KY=cK(function(){return new nAa(f.Ka,f.Ra,f.Ia)});
g.L(this,this.KY);this.An=cK(function(){return new cCa(f.Cc,f.Ka,f.Ra,f.Zc,f.Xb,f.ev,f.ex,f.Yb,f.Ia,c)});
g.L(this,this.An);this.r_=cK(function(){return new dAa(f.Cc)});
g.L(this,this.r_);this.NL=new L1(a,this.Ln,this.jb);g.L(this,this.NL);this.Ef={Dw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.rd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Oj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.kd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ff]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yh],["SLOT_TYPE_ABOVE_FEED",this.ye],["SLOT_TYPE_FORECASTING",
this.ye],["SLOT_TYPE_IN_PLAYER",this.ye],["SLOT_TYPE_PLAYER_BYTES",this.ye],["SLOT_TYPE_PLAYER_UNDERLAY",this.ye],["SLOT_TYPE_PLAYBACK_TRACKING",this.ye]]),Dl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Wf],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Wf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Sb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Sb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Sb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Sb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Sb],["TRIGGER_TYPE_SLOT_ID_EXITED",
this.Sb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Sb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Sb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Sb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Sb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Sb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.ev],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.pg],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.hf],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.hf],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.hf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.hf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.hf],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.hf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.hf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.hw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.hw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Je],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.pg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xi],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.ex],["TRIGGER_TYPE_AD_BREAK_STARTED",this.pe]]),Lr:new Map([["SLOT_TYPE_ABOVE_FEED",this.ke],["SLOT_TYPE_AD_BREAK_REQUEST",this.ke],["SLOT_TYPE_FORECASTING",this.ke],["SLOT_TYPE_IN_PLAYER",this.ke],["SLOT_TYPE_PLAYER_BYTES",this.Bi],["SLOT_TYPE_PLAYER_UNDERLAY",this.ke],["SLOT_TYPE_PLAYBACK_TRACKING",this.ke]]),Yq:new Map([["SLOT_TYPE_ABOVE_FEED",this.qU],["SLOT_TYPE_AD_BREAK_REQUEST",
this.Xh],["SLOT_TYPE_FORECASTING",this.ji],["SLOT_TYPE_PLAYER_BYTES",this.zi],["SLOT_TYPE_PLAYBACK_TRACKING",this.KY],["SLOT_TYPE_IN_PLAYER",this.An],["SLOT_TYPE_PLAYER_UNDERLAY",this.r_]])};this.listeners=[this.Zc.get()];this.dw={rd:this.rd,Lk:this.Ia.get(),qb:this.Yb.get(),Gw:this.Ka.get(),kd:this.kd,At:this.jb.get(),Tz:this.Ln.get(),Xk:this.Wf,tj:this.Zc.get(),Tn:this.bb.get()}};
gbb=function(a,b,c,d,e){g.J.call(this);var f=this;this.jb=cK(function(){return new YN});
g.L(this,this.jb);this.Kb=cK(function(){return new ZN(f.jb,f.Ia)});
g.L(this,this.Kb);this.Zc=cK(function(){return new JN});
g.L(this,this.Zc);this.Wb=cK(function(){return new HN(a)});
g.L(this,this.Wb);this.Rb=cK(function(){return new $N(f.jb,f.Kb,f.Ia)});
g.L(this,this.Rb);this.Ce=cK(function(){return new dO});
g.L(this,this.Ce);this.jg=cK(function(){return new N1(b.W())});
g.L(this,this.jg);this.Cc=cK(function(){return new O1(b)});
g.L(this,this.Cc);this.Yb=cK(function(){return new dK(e)});
g.L(this,this.Yb);this.Wc=cK(function(){return new t1(b)});
g.L(this,this.Wc);this.Dc=cK(function(){return new u1(b)});
g.L(this,this.Dc);this.Fe=cK(function(){return new S1(b)});
g.L(this,this.Fe);this.Pd=cK(function(){return new v1(b)});
g.L(this,this.Pd);this.Ia=cK(function(){return new w1(b)});
g.L(this,this.Ia);this.Vf=cK(function(){return new M1(d)});
g.L(this,this.Vf);this.jc=cK(function(){return new KJ(f.Ia)});
g.L(this,this.jc);this.Ee=cK(function(){return new zN(f.jb,f.Rb,f.Kb,f.Ia,f.jc,null,f.Oj)});
g.L(this,this.Ee);this.Ag=cK(function(){return new T1(b)});
g.L(this,this.Ag);this.Ln=cK(function(){return new fK});
g.L(this,this.Ln);this.bb=cK(function(){return new G1(b,f.Ce,f.Ia)});
g.L(this,this.bb);this.pc=new cO(this.Ia,this.jc,this.bb);g.L(this,this.pc);this.Hf=cK(function(){return new R1(b,f.Ia,f.Ra)});
this.Ka=cK(function(){return new H1(b,f.bb,f.Ia)});
g.L(this,this.Ka);this.Xb=cK(function(){return new B1(f.Ka,b)});
g.L(this,this.Xb);this.Ra=cK(function(){return new F1(b,f.Zc,f.Xb,f.bb)});
g.L(this,this.Ra);this.uf=cK(function(){return new gK});
g.L(this,this.uf);this.Ai=new FN(EN,V1,function(l,m,n,p){return tN(f.Kb.get(),l,m,n,p)},this.Wb,this.Rb,this.Kb,this.jc,this.Ia,this.bb);
g.L(this,this.Ai);this.kd=new GN(this.Wb,this.Ee,c,this.Ia,a,this.bb,this.Ka,this.Wc);g.L(this,this.kd);var h=new s1(b,this.kd,this.Ka,this.bb,this.Hf);this.Hg=cK(function(){return h});
this.Ut=h;this.Oj=new BN(this.Wb,this.Rb,this.Hg,this.Hf,this.Ka,this.Ia,this.Ra);g.L(this,this.Oj);this.Ff=new IN(this.Wb,this.Rb,this.Dc,this.Hg);g.L(this,this.Ff);this.rd=new nN(this.Ia,this.Wb,this.Rb,this.Ee,this.bb,this.Ff,c);g.L(this,this.rd);this.Yh=cK(function(){return new rK(f.Vf,f.Kb,f.jc,f.Ia,f.Ra,f.Ka)});
g.L(this,this.Yh);this.ye=cK(function(){return new sK});
g.L(this,this.ye);this.Wf=new NN(a,this.Cc,this.Ia);g.L(this,this.Wf);this.Sb=new ON(a);g.L(this,this.Sb);this.ev=new PN(a);g.L(this,this.ev);this.pg=new RN(a,this.Hg);g.L(this,this.pg);this.hf=new SN(a,this.Dc,this.Ka,this.bb);g.L(this,this.hf);this.Je=new UN(a);g.L(this,this.Je);this.xi=new VN(a);g.L(this,this.xi);this.ex=new WN(a);g.L(this,this.ex);this.Sc=cK(function(){return new U1(b)});
g.L(this,this.Sc);this.pe=new XN(a);g.L(this,this.pe);this.ke=cK(function(){return new KN});
g.L(this,this.ke);this.Bi=cK(function(){return new LN(f.Ka)});
g.L(this,this.Bi);this.Xh=cK(function(){return new KK(f.rd,f.Wb,f.jb)});
g.L(this,this.Xh);this.ji=cK(function(){return new MK(f.Ia,f.Ra,f.Je,f.Xb)});
g.L(this,this.ji);this.An=cK(function(){return new dCa(f.Cc,f.Ka,f.Ra,f.Zc,f.Xb,f.ev,f.ex,f.Yb,f.Ia,c)});
g.L(this,this.An);this.zi=cK(function(){return new iM(a,f.pe,f.Je,f.Ra,f.Xb,f.uf,f.Fe,f.bb,f.Ka,f.Dc,f.Wc,f.Pd,f.jg,f.Yb,f.Ag,f.Ia,f.Sc)});
g.L(this,this.zi);this.NL=new L1(a,this.Ln,this.jb);g.L(this,this.NL);this.Ef={Dw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.rd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Oj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.kd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ff]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yh],["SLOT_TYPE_FORECASTING",this.ye],["SLOT_TYPE_IN_PLAYER",
this.ye],["SLOT_TYPE_PLAYER_BYTES",this.ye]]),Dl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Wf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Sb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Sb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Sb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Sb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Sb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Sb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Sb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Sb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.Sb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Sb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.ev],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.pg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.hf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.hf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.hf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Je],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.pg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xi],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
this.ex],["TRIGGER_TYPE_AD_BREAK_STARTED",this.pe]]),Lr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ke],["SLOT_TYPE_FORECASTING",this.ke],["SLOT_TYPE_IN_PLAYER",this.ke],["SLOT_TYPE_PLAYER_BYTES",this.Bi]]),Yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xh],["SLOT_TYPE_FORECASTING",this.ji],["SLOT_TYPE_IN_PLAYER",this.An],["SLOT_TYPE_PLAYER_BYTES",this.zi]])};this.listeners=[this.Zc.get()];this.dw={rd:this.rd,Lk:this.Ia.get(),qb:this.Yb.get(),Gw:this.Ka.get(),kd:this.kd,At:this.jb.get(),Tz:this.Ln.get(),
Xk:this.Wf,tj:this.Zc.get(),Tn:this.bb.get()}};
hbb=function(a,b,c,d,e){g.J.call(this);var f=this;this.jb=cK(function(){return new YN});
g.L(this,this.jb);this.Kb=cK(function(){return new ZN(f.jb,f.Ia)});
g.L(this,this.Kb);this.Zc=cK(function(){return new JN});
g.L(this,this.Zc);this.Wb=cK(function(){return new HN(a)});
g.L(this,this.Wb);this.Rb=cK(function(){return new $N(f.jb,f.Kb,f.Ia)});
g.L(this,this.Rb);this.Ce=cK(function(){return new dO});
g.L(this,this.Ce);this.jg=cK(function(){return new N1(b.W())});
g.L(this,this.jg);this.Cc=cK(function(){return new O1(b)});
g.L(this,this.Cc);this.Yb=cK(function(){return new dK(e)});
g.L(this,this.Yb);this.Wc=cK(function(){return new t1(b)});
g.L(this,this.Wc);this.Dc=cK(function(){return new u1(b)});
g.L(this,this.Dc);this.Fe=cK(function(){return new S1(b)});
g.L(this,this.Fe);this.Pd=cK(function(){return new v1(b)});
g.L(this,this.Pd);this.Ia=cK(function(){return new w1(b)});
g.L(this,this.Ia);this.Vf=cK(function(){return new M1(d)});
g.L(this,this.Vf);this.jc=cK(function(){return new KJ(f.Ia)});
g.L(this,this.jc);this.Ee=cK(function(){return new zN(f.jb,f.Rb,f.Kb,f.Ia,f.jc,null,null)});
g.L(this,this.Ee);this.Ag=cK(function(){return new T1(b)});
g.L(this,this.Ag);this.bb=cK(function(){return new G1(b,f.Ce,f.Ia)});
g.L(this,this.bb);this.pc=new cO(this.Ia,this.jc,this.bb);g.L(this,this.pc);this.Ka=cK(function(){return new H1(b,f.bb,f.Ia)});
g.L(this,this.Ka);this.Xb=cK(function(){return new B1(f.Ka,b)});
g.L(this,this.Xb);this.Ra=cK(function(){return new F1(b,f.Zc,f.Xb,f.bb)});
g.L(this,this.Ra);this.uf=cK(function(){return new gK});
g.L(this,this.uf);this.Ai=new FN(EN,V1,function(l,m,n,p){return tN(f.Kb.get(),l,m,n,p)},this.Wb,this.Rb,this.Kb,this.jc,this.Ia,this.bb);
g.L(this,this.Ai);this.kd=new GN(this.Wb,this.Ee,c,this.Ia,a,this.bb,this.Ka,this.Wc);g.L(this,this.kd);var h=new s1(b,this.kd,this.Ka,this.bb);this.Hg=cK(function(){return h});
this.Ut=h;this.Ff=new IN(this.Wb,this.Rb,this.Dc,this.Hg);g.L(this,this.Ff);this.rd=new nN(this.Ia,this.Wb,this.Rb,this.Ee,this.bb,this.Ff,c);g.L(this,this.rd);this.Yh=cK(function(){return new rK(f.Vf,f.Kb,f.jc,f.Ia,f.Ra,f.Ka)});
g.L(this,this.Yh);this.ye=cK(function(){return new sK});
g.L(this,this.ye);this.Wf=new NN(a,this.Cc,this.Ia);g.L(this,this.Wf);this.Sb=new ON(a);g.L(this,this.Sb);this.pg=new RN(a,this.Hg);g.L(this,this.pg);this.hf=new SN(a,this.Dc,this.Ka,this.bb);g.L(this,this.hf);this.Je=new UN(a);g.L(this,this.Je);this.xi=new VN(a);g.L(this,this.xi);this.Sc=cK(function(){return new U1(b)});
g.L(this,this.Sc);this.pe=new XN(a);g.L(this,this.pe);this.ke=cK(function(){return new KN});
g.L(this,this.ke);this.Bi=cK(function(){return new LN(f.Ka)});
g.L(this,this.Bi);this.Xh=cK(function(){return new KK(f.rd,f.Wb,f.jb)});
g.L(this,this.Xh);this.ji=cK(function(){return new MK(f.Ia,f.Ra,f.Je,f.Xb)});
g.L(this,this.ji);this.FY=cK(function(){return new mAa(f.Cc,f.Ka,f.Ra,f.Zc,c,f.Ia)});
g.L(this,this.FY);this.zi=cK(function(){return new iM(a,f.pe,f.Je,f.Ra,f.Xb,f.uf,f.Fe,f.bb,f.Ka,f.Dc,f.Wc,f.Pd,f.jg,f.Yb,f.Ag,f.Ia,f.Sc)});
g.L(this,this.zi);this.Ef={Dw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.rd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.kd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ff]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yh],["SLOT_TYPE_FORECASTING",this.ye],["SLOT_TYPE_IN_PLAYER",this.ye],["SLOT_TYPE_PLAYER_BYTES",this.ye]]),Dl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Wf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Sb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Sb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Sb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Sb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Sb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Sb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Sb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Sb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Sb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.pg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.hf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.hf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Je],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.pg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.pe]]),Lr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ke],["SLOT_TYPE_ABOVE_FEED",this.ke],["SLOT_TYPE_FORECASTING",this.ke],["SLOT_TYPE_IN_PLAYER",this.ke],["SLOT_TYPE_PLAYER_BYTES",this.Bi]]),Yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xh],["SLOT_TYPE_FORECASTING",this.ji],["SLOT_TYPE_IN_PLAYER",
this.FY],["SLOT_TYPE_PLAYER_BYTES",this.zi]])};this.listeners=[this.Zc.get()];this.dw={rd:this.rd,Lk:this.Ia.get(),qb:this.Yb.get(),Gw:this.Ka.get(),kd:this.kd,At:this.jb.get(),Tz:null,Xk:this.Wf,tj:this.Zc.get(),Tn:this.bb.get()}};
ibb=function(a,b,c,d,e){g.J.call(this);var f=this;this.jb=cK(function(){return new YN});
g.L(this,this.jb);this.Kb=cK(function(){return new ZN(f.jb,f.Ia)});
g.L(this,this.Kb);this.Zc=cK(function(){return new JN});
g.L(this,this.Zc);this.Wb=cK(function(){return new HN(a)});
g.L(this,this.Wb);this.Rb=cK(function(){return new $N(f.jb,f.Kb,f.Ia)});
g.L(this,this.Rb);this.Ce=cK(function(){return new dO});
g.L(this,this.Ce);this.jg=cK(function(){return new N1(b.W())});
g.L(this,this.jg);this.Cc=cK(function(){return new O1(b)});
g.L(this,this.Cc);this.Yb=cK(function(){return new dK(e)});
g.L(this,this.Yb);this.Wc=cK(function(){return new t1(b)});
g.L(this,this.Wc);this.Dc=cK(function(){return new u1(b)});
g.L(this,this.Dc);this.Fe=cK(function(){return new S1(b)});
g.L(this,this.Fe);this.Pd=cK(function(){return new v1(b)});
g.L(this,this.Pd);this.Ia=cK(function(){return new w1(b)});
g.L(this,this.Ia);this.Vf=cK(function(){return new M1(d)});
g.L(this,this.Vf);this.jc=cK(function(){return new KJ(f.Ia)});
g.L(this,this.jc);this.Ee=cK(function(){return new zN(f.jb,f.Rb,f.Kb,f.Ia,f.jc,null,null)});
g.L(this,this.Ee);this.Ag=cK(function(){return new T1(b)});
g.L(this,this.Ag);this.bb=cK(function(){return new G1(b,f.Ce,f.Ia)});
g.L(this,this.bb);this.pc=new cO(this.Ia,this.jc,this.bb);g.L(this,this.pc);this.Ka=cK(function(){return new H1(b,f.bb,f.Ia)});
g.L(this,this.Ka);this.Xb=cK(function(){return new B1(f.Ka,b)});
g.L(this,this.Xb);this.Ra=cK(function(){return new F1(b,f.Zc,f.Xb,f.bb)});
g.L(this,this.Ra);this.uf=cK(function(){return new gK});
g.L(this,this.uf);this.Ai=new FN(EN,V1,function(l,m,n,p){return tN(f.Kb.get(),l,m,n,p)},this.Wb,this.Rb,this.Kb,this.jc,this.Ia,this.bb);
g.L(this,this.Ai);this.kd=new GN(this.Wb,this.Ee,c,this.Ia,a,this.bb,this.Ka,this.Wc);g.L(this,this.kd);var h=new s1(b,this.kd,this.Ka,this.bb);this.Hg=cK(function(){return h});
this.Ut=h;this.Ff=new IN(this.Wb,this.Rb,this.Dc,this.Hg);g.L(this,this.Ff);this.rd=new nN(this.Ia,this.Wb,this.Rb,this.Ee,this.bb,this.Ff,c);g.L(this,this.rd);this.Yh=cK(function(){return new rK(f.Vf,f.Kb,f.jc,f.Ia,f.Ra,f.Ka)});
g.L(this,this.Yh);this.ye=cK(function(){return new sK});
g.L(this,this.ye);this.Wf=new NN(a,this.Cc,this.Ia);g.L(this,this.Wf);this.Sb=new ON(a);g.L(this,this.Sb);this.pg=new RN(a,this.Hg);g.L(this,this.pg);this.hf=new SN(a,this.Dc,this.Ka,this.bb);g.L(this,this.hf);this.Je=new UN(a);g.L(this,this.Je);this.xi=new VN(a);g.L(this,this.xi);this.Sc=cK(function(){return new U1(b)});
g.L(this,this.Sc);this.pe=new XN(a);g.L(this,this.pe);this.ke=cK(function(){return new KN});
g.L(this,this.ke);this.Bi=cK(function(){return new LN(f.Ka)});
g.L(this,this.Bi);this.Xh=cK(function(){return new KK(f.rd,f.Wb,f.jb)});
g.L(this,this.Xh);this.ji=cK(function(){return new MK(f.Ia,f.Ra,f.Je,f.Xb)});
g.L(this,this.ji);this.An=cK(function(){return new mAa(f.Cc,f.Ka,f.Ra,f.Zc,c,f.Ia)});
g.L(this,this.An);this.zi=cK(function(){return new iM(a,f.pe,f.Je,f.Ra,f.Xb,f.uf,f.Fe,f.bb,f.Ka,f.Dc,f.Wc,f.Pd,f.jg,f.Yb,f.Ag,f.Ia,f.Sc)});
g.L(this,this.zi);this.Ef={Dw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.rd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.kd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ff]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yh],["SLOT_TYPE_FORECASTING",this.ye],["SLOT_TYPE_IN_PLAYER",this.ye],["SLOT_TYPE_PLAYER_BYTES",this.ye]]),Dl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Wf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Sb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Sb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Sb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Sb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Sb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Sb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Sb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Sb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Sb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.pg],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.hf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",
this.Je],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.pg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.pe]]),Lr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ke],["SLOT_TYPE_FORECASTING",this.ke],["SLOT_TYPE_IN_PLAYER",this.ke],["SLOT_TYPE_PLAYER_BYTES",this.Bi]]),Yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xh],["SLOT_TYPE_FORECASTING",this.ji],["SLOT_TYPE_IN_PLAYER",this.An],["SLOT_TYPE_PLAYER_BYTES",this.zi]])};this.listeners=[this.Zc.get()];
this.dw={rd:this.rd,Lk:this.Ia.get(),qb:this.Yb.get(),Gw:this.Ka.get(),kd:this.kd,At:this.jb.get(),Tz:null,Xk:this.Wf,tj:this.Zc.get(),Tn:this.bb.get()}};
jbb=function(a,b,c,d,e){g.J.call(this);var f=this;this.jb=cK(function(){return new YN});
g.L(this,this.jb);this.Kb=cK(function(){return new ZN(f.jb,f.Ia)});
g.L(this,this.Kb);this.Zc=cK(function(){return new JN});
g.L(this,this.Zc);this.Wb=cK(function(){return new HN(a)});
g.L(this,this.Wb);this.Rb=cK(function(){return new $N(f.jb,f.Kb,f.Ia)});
g.L(this,this.Rb);this.Ce=cK(function(){return new dO});
g.L(this,this.Ce);this.Sm=cK(function(){return new ebb(b)});
g.L(this,this.Sm);this.jg=cK(function(){return new N1(b.W())});
g.L(this,this.jg);this.Cc=cK(function(){return new O1(b)});
g.L(this,this.Cc);this.Yb=cK(function(){return new dK(e)});
g.L(this,this.Yb);this.Wc=cK(function(){return new t1(b)});
g.L(this,this.Wc);this.Dc=cK(function(){return new u1(b)});
g.L(this,this.Dc);this.Fe=cK(function(){return new S1(b)});
g.L(this,this.Fe);this.Pd=cK(function(){return new v1(b)});
g.L(this,this.Pd);this.Ia=cK(function(){return new w1(b)});
g.L(this,this.Ia);this.Vf=cK(function(){return new M1(d)});
g.L(this,this.Vf);this.jc=cK(function(){return new KJ(f.Ia)});
g.L(this,this.jc);this.Ee=cK(function(){return new zN(f.jb,f.Rb,f.Kb,f.Ia,f.jc,null,null)});
g.L(this,this.Ee);this.Ag=cK(function(){return new T1(b)});
g.L(this,this.Ag);this.bb=cK(function(){return new G1(b,f.Ce,f.Ia)});
g.L(this,this.bb);this.pc=new cO(this.Ia,this.jc,this.bb);g.L(this,this.pc);this.Ka=cK(function(){return new H1(b,f.bb,f.Ia)});
g.L(this,this.Ka);this.Xb=cK(function(){return new B1(f.Ka,b)});
g.L(this,this.Xb);this.Ra=cK(function(){return new F1(b,f.Zc,f.Xb,f.bb)});
g.L(this,this.Ra);this.uf=cK(function(){return new gK});
g.L(this,this.uf);this.Ai=new FN(NEa,V1,function(l,m,n,p){return fFa(f.Kb.get(),l,m,n,p)},this.Wb,this.Rb,this.Kb,this.jc,this.Ia,this.bb);
g.L(this,this.Ai);this.kd=new GN(this.Wb,this.Ee,c,this.Ia,a,this.bb,this.Ka,this.Wc);g.L(this,this.kd);var h=new s1(b,this.kd,this.Ka,this.bb);this.Hg=cK(function(){return h});
this.Ut=h;this.Ff=new IN(this.Wb,this.Rb,this.Dc,this.Hg);g.L(this,this.Ff);this.rd=new nN(this.Ia,this.Wb,this.Rb,this.Ee,this.bb,this.Ff,c);g.L(this,this.rd);this.Yh=cK(function(){return new rK(f.Vf,f.Kb,f.jc,f.Ia,f.Ra,f.Ka)});
g.L(this,this.Yh);this.ye=cK(function(){return new sK});
g.L(this,this.ye);this.Wf=new NN(a,this.Cc,this.Ia);g.L(this,this.Wf);this.Sb=new ON(a);g.L(this,this.Sb);this.pg=new RN(a,this.Hg);g.L(this,this.pg);this.hf=new SN(a,this.Dc,this.Ka,this.bb);g.L(this,this.hf);this.Je=new UN(a);g.L(this,this.Je);this.xi=new VN(a);g.L(this,this.xi);this.Sc=cK(function(){return new U1(b)});
g.L(this,this.Sc);this.pe=new XN(a);g.L(this,this.pe);this.ke=cK(function(){return new KN});
g.L(this,this.ke);this.Bi=cK(function(){return new LN(f.Ka)});
g.L(this,this.Bi);this.Xh=cK(function(){return new KK(f.rd,f.Wb,f.jb)});
g.L(this,this.Xh);this.ji=cK(function(){return new MK(f.Ia,f.Ra,f.Je,f.Xb)});
g.L(this,this.ji);this.zi=cK(function(){return new iM(a,f.pe,f.Je,f.Ra,f.Xb,f.uf,f.Fe,f.bb,f.Ka,f.Dc,f.Wc,f.Pd,f.jg,f.Yb,f.Ag,f.Ia,f.Sc)});
g.L(this,this.zi);this.O_=cK(function(){return new fCa(f.Cc,f.Ka,f.Ra,f.Zc,f.Sm,c)});
g.L(this,this.O_);this.Ef={Dw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.rd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.kd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ff]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yh],["SLOT_TYPE_FORECASTING",this.ye],["SLOT_TYPE_IN_PLAYER",this.ye],["SLOT_TYPE_PLAYER_BYTES",this.ye]]),Dl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Wf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Sb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Sb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Sb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Sb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Sb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Sb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Sb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Sb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Sb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.pg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.hf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.hf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Je],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.pg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.pe]]),Lr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ke],["SLOT_TYPE_FORECASTING",this.ke],["SLOT_TYPE_IN_PLAYER",this.ke],["SLOT_TYPE_PLAYER_BYTES",this.Bi]]),Yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xh],["SLOT_TYPE_FORECASTING",this.ji],["SLOT_TYPE_IN_PLAYER",this.O_],["SLOT_TYPE_PLAYER_BYTES",
this.zi]])};this.listeners=[this.Zc.get()];this.dw={rd:this.rd,Lk:this.Ia.get(),qb:this.Yb.get(),Gw:this.Ka.get(),kd:this.kd,At:this.jb.get(),Tz:null,Xk:this.Wf,tj:this.Zc.get(),Tn:this.bb.get()}};
kbb=function(a,b,c,d,e){g.J.call(this);var f=this;this.jb=cK(function(){return new YN});
g.L(this,this.jb);this.Kb=cK(function(){return new ZN(f.jb,f.Ia)});
g.L(this,this.Kb);this.Zc=cK(function(){return new JN});
g.L(this,this.Zc);this.Wb=cK(function(){return new HN(a)});
g.L(this,this.Wb);this.Rb=cK(function(){return new $N(f.jb,f.Kb,f.Ia)});
g.L(this,this.Rb);this.Ce=cK(function(){return new dO});
g.L(this,this.Ce);this.Sm=cK(function(){return new ebb(b)});
g.L(this,this.Sm);this.jg=cK(function(){return new N1(b.W())});
g.L(this,this.jg);this.Cc=cK(function(){return new O1(b)});
g.L(this,this.Cc);this.Yb=cK(function(){return new dK(e)});
g.L(this,this.Yb);this.Wc=cK(function(){return new t1(b)});
g.L(this,this.Wc);this.Dc=cK(function(){return new u1(b)});
g.L(this,this.Dc);this.Fe=cK(function(){return new S1(b)});
g.L(this,this.Fe);this.Pd=cK(function(){return new v1(b)});
g.L(this,this.Pd);this.Ia=cK(function(){return new w1(b)});
g.L(this,this.Ia);this.Vf=cK(function(){return new M1(d)});
g.L(this,this.Vf);this.jc=cK(function(){return new KJ(f.Ia)});
g.L(this,this.jc);this.Ee=cK(function(){return new zN(f.jb,f.Rb,f.Kb,f.Ia,f.jc,null,f.Oj,3)});
g.L(this,this.Ee);this.Ag=cK(function(){return new T1(b)});
g.L(this,this.Ag);this.bb=cK(function(){return new G1(b,f.Ce,f.Ia)});
g.L(this,this.bb);this.pc=new cO(this.Ia,this.jc,this.bb);g.L(this,this.pc);this.Hf=cK(function(){return new R1(b,f.Ia,f.Ra)});
g.L(this,this.Hf);this.Sc=cK(function(){return new U1(b)});
g.L(this,this.Sc);this.Ka=cK(function(){return new H1(b,f.bb,f.Ia)});
g.L(this,this.Ka);this.uf=cK(function(){return new gK});
this.Xb=cK(function(){return new B1(f.Ka,b)});
g.L(this,this.Xb);this.Ra=cK(function(){return new F1(b,f.Zc,f.Xb,f.bb)});
g.L(this,this.Ra);this.kd=new GN(this.Wb,this.Ee,c,this.Ia,a,this.bb,this.Ka,this.Wc);g.L(this,this.kd);var h=new s1(b,this.kd,this.Ka,this.bb,this.Hf);this.Hg=cK(function(){return h});
this.Ut=h;this.Ai=new FN(OEa,V1,function(l,m,n,p){return fFa(f.Kb.get(),l,m,n,p)},this.Wb,this.Rb,this.Kb,this.jc,this.Ia,this.bb);
g.L(this,this.Ai);this.Oj=new BN(this.Wb,this.Rb,this.Hg,this.Hf,this.Ka,this.Ia,this.Ra,this.Sc);g.L(this,this.Oj);this.Ff=new IN(this.Wb,this.Rb,this.Dc,this.Hg);g.L(this,this.Ff);this.rd=new nN(this.Ia,this.Wb,this.Rb,this.Ee,this.bb,this.Ff,c);g.L(this,this.rd);this.Yh=cK(function(){return new rK(f.Vf,f.Kb,f.jc,f.Ia,f.Ra,f.Ka,f.Sc)});
g.L(this,this.Yh);this.ye=cK(function(){return new sK});
g.L(this,this.ye);this.Wf=new NN(a,this.Cc,this.Ia);g.L(this,this.Wf);this.Sb=new ON(a);g.L(this,this.Sb);this.pg=new RN(a,this.Hg);g.L(this,this.pg);this.hf=new SN(a,this.Dc,this.Ka,this.bb);g.L(this,this.hf);this.hw=new TN(a,this.bb);g.L(this,this.hw);this.Je=new UN(a);g.L(this,this.Je);this.xi=new VN(a);g.L(this,this.xi);this.pe=new XN(a);g.L(this,this.pe);this.ke=cK(function(){return new KN});
g.L(this,this.ke);this.Bi=cK(function(){return new LN(f.Ka)});
g.L(this,this.Bi);this.Xh=cK(function(){return new KK(f.rd,f.Wb,f.jb)});
g.L(this,this.Xh);this.ji=cK(function(){return new MK(f.Ia,f.Ra,f.Je,f.Xb)});
g.L(this,this.ji);this.zi=cK(function(){return new TBa(a,f.pe,f.Je,f.bb,f.Sc,f.Ka,f.Ra,f.Ce,f.Hf,f.Xb,f.uf,f.Fe,f.Dc,f.Wc,f.Pd,f.jg,f.Yb,f.Ag,f.Ia,f.Zc)});
g.L(this,this.zi);this.An=cK(function(){return new gCa(f.Cc,f.Ka,f.Ra,f.Zc,f.Sm,c,f.Ia)});
g.L(this,this.An);this.Ef={Dw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.rd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Oj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.kd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ff]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yh],["SLOT_TYPE_FORECASTING",this.ye],["SLOT_TYPE_IN_PLAYER",this.ye],["SLOT_TYPE_PLAYER_BYTES",this.ye]]),Dl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
this.Wf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Sb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Sb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Sb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Sb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Sb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Sb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Sb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Sb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Sb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.pg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
this.hf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.hf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.hw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.hw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Je],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.pg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.pe]]),Lr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ke],["SLOT_TYPE_FORECASTING",this.ke],["SLOT_TYPE_IN_PLAYER",this.ke],["SLOT_TYPE_PLAYER_BYTES",
this.Bi]]),Yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xh],["SLOT_TYPE_FORECASTING",this.ji],["SLOT_TYPE_PLAYER_BYTES",this.zi],["SLOT_TYPE_IN_PLAYER",this.An]])};this.listeners=[this.Zc.get()];this.dw={rd:this.rd,Lk:this.Ia.get(),qb:this.Yb.get(),Gw:this.Ka.get(),kd:this.kd,At:this.jb.get(),Tz:null,Xk:this.Wf,tj:this.Zc.get(),Tn:this.bb.get()}};
mbb=function(a,b,c,d){g.J.call(this);var e=this;this.j=lbb(function(){return e.B},a,b,c,d);
g.L(this,this.j);this.B=(new Vya(this.j)).C();g.L(this,this.B)};
W1=function(a){return a.j.dw};
lbb=function(a,b,c,d,e){try{var f=b.W();if(g.vS(f))var h=new fbb(a,b,c,d,e);else if(g.xS(f))h=new gbb(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===g.JR(f))h=new ibb(a,b,c,d,e);else if(pS(f))h=new hbb(a,b,c,d,e);else if(g.qH(f))h=new jbb(a,b,c,d,e);else if(g.kS(f))h=new kbb(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.W(),ZG("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,ofb:h.j.cver,nfb:h.j.ctheme,
mfb:h.j.cplayer,Nfb:h.playerStyle}),new Xab(a,b,c,d,e)}};
X1=function(a){this.jq=a};
nbb=function(a){var b=new X1(a.jq),c=new Hab(b);return{U4:function(){return b},
c5:function(){return c}}};
obb=function(a){OG.call(this,a)};
pbb=function(a,b,c,d,e){SG.call(this,a,{I:"div",T:"ytp-ad-timed-pie-countdown-container",X:[{I:"svg",T:"ytp-ad-timed-pie-countdown",Y:{viewBox:"0 0 20 20"},X:[{I:"circle",T:"ytp-ad-timed-pie-countdown-background",Y:{r:"10",cx:"10",cy:"10"}},{I:"circle",T:"ytp-ad-timed-pie-countdown-inner",Y:{r:"5",cx:"10",cy:"10"}},{I:"circle",T:"ytp-ad-timed-pie-countdown-outer",Y:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.D=this.Ha("ytp-ad-timed-pie-countdown-container");this.C=this.Ha("ytp-ad-timed-pie-countdown-inner");
this.G=this.Ha("ytp-ad-timed-pie-countdown-outer");this.B=Math.ceil(10*Math.PI);this.hide()};
qbb=function(a,b,c,d,e,f){uG.call(this,a,{I:"div",T:"ytp-ad-action-interstitial",Y:{tabindex:"0"},X:[{I:"div",T:"ytp-ad-action-interstitial-background-container"},{I:"div",T:"ytp-ad-action-interstitial-slot",X:[{I:"div",T:"ytp-ad-action-interstitial-instream-info"},{I:"div",T:"ytp-ad-action-interstitial-card",X:[{I:"div",T:"ytp-ad-action-interstitial-image-container"},{I:"div",T:"ytp-ad-action-interstitial-headline-container"},{I:"div",T:"ytp-ad-action-interstitial-description-container"},{I:"div",
T:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",b,c,d);this.kR=e;this.XJ=f;this.navigationEndpoint=this.j=this.skipButton=this.B=this.actionButton=null;this.Ya=this.Ha("ytp-ad-action-interstitial-instream-info");this.Ja=this.Ha("ytp-ad-action-interstitial-image-container");this.ea=new LG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,"ytp-ad-action-interstitial-image");g.L(this,this.ea);this.ea.Ga(this.Ja);this.Pa=this.Ha("ytp-ad-action-interstitial-headline-container");
this.G=new RG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,"ytp-ad-action-interstitial-headline");g.L(this,this.G);this.G.Ga(this.Pa);this.va=this.Ha("ytp-ad-action-interstitial-description-container");this.D=new RG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,"ytp-ad-action-interstitial-description");g.L(this,this.D);this.D.Ga(this.va);this.rb=this.Ha("ytp-ad-action-interstitial-background-container");this.Oa=new LG(this.api,this.layoutId,this.interactionLoggingClientData,
this.qb,"ytp-ad-action-interstitial-background",!0);g.L(this,this.Oa);this.Oa.Ga(this.rb);this.kb=this.Ha("ytp-ad-action-interstitial-action-button-container");this.slot=this.Ha("ytp-ad-action-interstitial-slot");this.C=new aD;g.L(this,this.C);this.hide()};
rbb=function(a){var b=g.$e("html5-video-player");b&&g.mu(b,"ytp-ad-display-override",a)};
vbb=function(a,b,c,d){uG.call(this,a,{I:"div",T:"ytp-ad-overlay-slot",X:[{I:"div",T:"ytp-ad-overlay-container"}]},"invideo-overlay",b,c,d);this.ea=[];this.rb=this.Ja=this.D=this.kb=this.Pa=null;this.Ya=!1;this.G=null;this.va=0;a=this.Ha("ytp-ad-overlay-container");this.Oa=new YG(a,45E3,6E3,.3,.4);g.L(this,this.Oa);this.C=sbb(this);g.L(this,this.C);this.C.Ga(a);this.B=tbb(this);g.L(this,this.B);this.B.Ga(a);this.j=ubb(this);g.L(this,this.j);this.j.Ga(a);this.hide()};
sbb=function(a){var b=new g.tG({I:"div",T:"ytp-ad-text-overlay",X:[{I:"div",T:"ytp-ad-overlay-ad-info-button-container"},{I:"div",T:"ytp-ad-overlay-close-container",X:[{I:"button",T:"ytp-ad-overlay-close-button",X:[DG(wbb)]}]},{I:"div",T:"ytp-ad-overlay-title",Aa:"{{title}}"},{I:"div",T:"ytp-ad-overlay-desc",Aa:"{{description}}"},{I:"div",Na:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Aa:"{{displayUrl}}"}]});a.V(b.Ha("ytp-ad-overlay-title"),"click",function(c){Y1(a,b.element,c)});
a.V(b.Ha("ytp-ad-overlay-link"),"click",function(c){Y1(a,b.element,c)});
a.V(b.Ha("ytp-ad-overlay-close-container"),"click",a.Gp);b.hide();return b};
tbb=function(a){var b=new g.tG({I:"div",Na:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],X:[{I:"div",T:"ytp-ad-overlay-ad-info-button-container"},{I:"div",T:"ytp-ad-overlay-close-container",X:[{I:"button",T:"ytp-ad-overlay-close-button",X:[DG(wbb)]}]},{I:"div",T:"ytp-ad-overlay-text-image",X:[{I:"img",Y:{src:"{{imageUrl}}"}}]},{I:"div",T:"ytp-ad-overlay-title",Aa:"{{title}}"},{I:"div",T:"ytp-ad-overlay-desc",Aa:"{{description}}"},{I:"div",Na:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
Aa:"{{displayUrl}}"}]});a.V(b.Ha("ytp-ad-overlay-title"),"click",function(c){Y1(a,b.element,c)});
a.V(b.Ha("ytp-ad-overlay-link"),"click",function(c){Y1(a,b.element,c)});
a.V(b.Ha("ytp-ad-overlay-close-container"),"click",a.Gp);a.V(b.Ha("ytp-ad-overlay-text-image"),"click",a.o9);b.hide();return b};
ubb=function(a){var b=new g.tG({I:"div",T:"ytp-ad-image-overlay",X:[{I:"div",T:"ytp-ad-overlay-ad-info-button-container"},{I:"div",T:"ytp-ad-overlay-close-container",X:[{I:"button",T:"ytp-ad-overlay-close-button",X:[DG(wbb)]}]},{I:"div",T:"ytp-ad-overlay-image",X:[{I:"img",Y:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.V(b.Ha("ytp-ad-overlay-image"),"click",function(c){Y1(a,b.element,c)});
a.V(b.Ha("ytp-ad-overlay-close-container"),"click",a.Gp);b.hide();return b};
xbb=function(a,b){if(b){var c=g.S(b,jN)||null;if(null==c)g.TF(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.$e("video-ads ytp-ad-module")||null,null==b)g.TF(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ja=new g.tG({I:"div",T:"ytp-ad-overlay-ad-info-dialog-container"}),g.L(a,a.Ja),a.Ja.Ga(b),b=new QG(a.api,a.layoutId,a.interactionLoggingClientData,a.qb,a.Ja.element,!1),g.L(a,b),b.init(jG("ad-info-hover-text-button"),
c,a.macros),a.G){b.Ga(a.G,0);b.subscribe("f",a.Y6,a);b.subscribe("e",a.FP,a);a.V(a.G,"click",a.Z6);var d=g.$e("ytp-ad-button",b.element);a.V(d,"click",function(){var e;if(g.S(null==(e=g.S(c.button,g.lN))?void 0:e.serviceEndpoint,dva))a.Ya=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.rb=b}else g.TF(Error("Ad info button container within overlay ad was not present."))}else g.UF(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
zbb=function(a,b){if(ybb(a,Z1)||a.api.yg())return!1;var c=vG(b.title),d=vG(b.description);if(g.dc(c)||g.dc(d))return!1;a.qg(a.C.element,b.trackingParams||null);a.C.updateValue("title",vG(b.title));a.C.updateValue("description",vG(b.description));a.C.updateValue("displayUrl",vG(b.displayUrl));b.navigationEndpoint&&g.Mb(a.ea,b.navigationEndpoint);a.C.show();a.Oa.start();a.Xa(a.C.element,!0);a.V(a.C.element,"mouseover",function(){a.va++});
return!0};
Abb=function(a,b){if(ybb(a,Z1)||a.api.yg())return!1;var c=vG(b.title),d=vG(b.description);if(g.dc(c)||g.dc(d))return!1;a.qg(a.B.element,b.trackingParams||null);a.B.updateValue("title",vG(b.title));a.B.updateValue("description",vG(b.description));a.B.updateValue("displayUrl",vG(b.displayUrl));a.B.updateValue("imageUrl",lua(b.image));b.navigationEndpoint&&g.Mb(a.ea,b.navigationEndpoint);a.kb=b.imageNavigationEndpoint||null;a.B.show();a.Oa.start();a.Xa(a.B.element,!0);a.V(a.B.element,"mouseover",function(){a.va++});
return!0};
Bbb=function(a,b){if(a.api.yg())return!1;var c=mua(b.image),d=c;c.width<Z1.width&&(d=Z1);if(0===c.width||0===c.height||ybb(a,d))return!1;a.qg(a.j.element,b.trackingParams||null);a.j.updateValue("imageUrl",lua(b.image));a.j.updateValue("width",c.width);a.j.updateValue("height",c.height);b.navigationEndpoint&&g.Mb(a.ea,b.navigationEndpoint);b=a.j.Ha("ytp-ad-image-overlay");g.yr(b,"max-width",c.width+"px");a.j.show();a.Xa(a.j.element,!0);a.V(a.j.element,"mouseover",function(){a.va++;a.api.jP("invideo-overlay",
a.layoutId)});
a.V(a.j.element,"mouseout",function(){a.api.iP("invideo-overlay",a.layoutId)});
return!0};
ybb=function(a,b){var c=a.api.tb().Vj(),d=a.api.Pk(!0,!1);return(b=WBa(c,c.height-(d.height+d.top),b))?(a.Pa&&b&&(c=g.pd(a.macros),c.ERRORCODE=b.HF.toString(),c.ERROR_MSG=b.errorMessage,a.layoutId?eK(a.qb,a.Pa,a.layoutId,c):g.TF(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
Y1=function(a,b,c){var d=g.pd(a.macros),e=g.Jr(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Hr(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.va.toString()}};
b=g.u(a.ea);for(c=b.next();!c.done;c=b.next())c=c.value,a.layoutId?eK(a.qb,c,a.layoutId,d):g.TF(Error("Missing layoutId for invideo_overlay_ad."));a.api.pauseVideo()};
Cbb=function(a,b){a=a.api.getRootNode();g.mu(a,"ytp-ad-overlay-open",b);g.mu(a,"ytp-ad-overlay-closed",!b)};
Dbb=function(a,b,c,d,e){SG.call(this,a,{I:"div",T:"ytp-ad-message-overlay",X:[{I:"div",T:"ytp-ad-message-slot"}]},"ad-message",b,c,d,e);var f=this;this.G=-1;this.C=0;this.va=!1;this.Ja=this.Ha("ytp-ad-message-slot");this.B=new g.tG({I:"span",T:"ytp-ad-message-container"});this.B.Ga(this.Ja);g.L(this,this.B);this.messageText=new RG(this.api,this.layoutId,this.interactionLoggingClientData,d,"ytp-ad-message-text");g.L(this,this.messageText);this.messageText.Ga(this.B.element);this.D=new g.VG(this.B,
400,!1,100,function(){f.hide()});
g.L(this,this.D);this.hide()};
Ebb=function(a,b){a=a.api.getRootNode();g.mu(a,"ytp-ad-overlay-open",b);g.mu(a,"ytp-ad-overlay-closed",!b)};
Fbb=function(a,b,c,d){uG.call(this,a,{I:"div",T:"ytp-ad-underlay-companion",X:[{I:"div",T:"ytp-ad-underlay-side-container",X:[{I:"div",T:"ytp-ad-underlay-image-container"},{I:"div",T:"ytp-ad-underlay-description-container"},{I:"div",T:"ytp-ad-underlay-headline-container"},{I:"div",T:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",b,c,d);this.actionButton=null;this.Ja=this.Ha("ytp-ad-underlay-image-container");this.C=new LG(this.api,this.layoutId,this.interactionLoggingClientData,
this.qb,"ytp-ad-underlay-image");g.L(this,this.C);this.C.Ga(this.Ja);this.va=this.Ha("ytp-ad-underlay-headline-container");this.B=new RG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,"ytp-ad-underlay-headline");g.L(this,this.B);this.B.Ga(this.va);this.ea=this.Ha("ytp-ad-underlay-description-container");this.D=new RG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,"ytp-ad-underlay-description");g.L(this,this.D);this.D.Ga(this.ea);this.G=this.Ha("ytp-ad-underlay-action-button-container");
this.j=this.Ha("ytp-ad-underlay-side-container");this.hide()};
Gbb=function(a){var b=g.$e("html5-video-player");b&&g.mu(b,"ytp-ad-display-override",a)};
$1=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
uG.call(this,a,{I:"div",T:"ytp-ad-survey-answer"},"survey-answer",b,c,d);this.index=e;this.B=f;this.j=null;this.toggledLoggingParams="";this.answer=this.Ha("ytp-ad-survey-answer");this.hide()};
Hbb=function(a,b,c,d){uG.call(this,a,{I:"div",T:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",b,c,d);this.button=null;this.j=this.Ha("ytp-ad-survey-none-of-the-above");this.hide()};
a2=function(a,b,c,d){var e=["ytp-ad-survey-submit-button"];a.W().N("web_modern_buttons_bl_survey")&&e.push("ytp-ad-survey-submit-button-rounded");EG.call(this,a,b,c,d,e,"survey-submit")};
b2=function(a,b,c,d,e){uG.call(this,a,{I:"div",T:"ytp-ad-survey-player-overlay",X:[{I:"div",T:"ytp-ad-survey-player-overlay-instream-info"},{I:"div",T:"ytp-ad-survey-player-overlay-skip-preview-submit",X:[{I:"div",T:"ytp-ad-survey-player-overlay-skip-or-preview"},{I:"div",T:"ytp-ad-survey-player-overlay-submit"}]},{I:"div",T:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",b,c,d);this.C=e;this.B=this.j=null;this.D=this.Ha("ytp-ad-survey-player-overlay-instream-info");
this.skipOrPreview=this.Ha("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Ha("ytp-ad-survey-player-overlay-submit");g.L(this,this.C);this.hide()};
c2=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
uG.call(this,a,{I:"div",T:"ytp-ad-survey-question",X:[{I:"div",Na:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{I:"div",Na:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{I:"div",Na:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{I:"div",T:"ytp-ad-survey-question-background"}]},e,b,c,d);this.va=f;this.D=null;this.B=[];this.j=null;this.question=this.Ha("ytp-ad-survey-question");this.Ja=this.Ha("ytp-ad-survey-question-background");
this.questionText=this.Ha("ytp-ad-survey-question-text");this.answers=this.Ha("ytp-ad-survey-answers");this.playerOverlay=this.Ha("ytp-ad-survey-question-player-overlay");this.C=g.eb()};
Ibb=function(a,b){b=g.wG(b);g.Bf(a.questionText,b);a.api.W().experiments.ob("fix_web_instream_survey_question_aria_label")&&a.answers.setAttribute("aria-label",b)};
Jbb=function(a,b,c,d){d=new $1(a.api,a.layoutId,a.interactionLoggingClientData,a.qb,d,a.va);d.Ga(a.answers);d.init(jG("survey-answer"),b,c);a.B.push(d)};
Lbb=function(a,b){if(b){var c=b.background;c&&g.S(c,Kbb)&&(c=(c=g.S(c,Kbb).image)&&KG(c)||"",g.dc(c)?g.UF(Error("Found ThumbnailDetails without valid image URL")):g.yr(a.Ja,"backgroundImage","url("+c+")"));if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.TF(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.eb();a.j=new hH(a.api,b.durationMilliseconds);g.L(a,a.j);if(a.j&&b.instreamAdPlayerOverlay&&g.S(b.instreamAdPlayerOverlay,
HCa))try{var d=new b2(a.api,a.layoutId,a.interactionLoggingClientData,a.qb,a.j);d.Ga(a.playerOverlay);d.init(jG("survey-player-overlay"),g.S(b.instreamAdPlayerOverlay,HCa),a.macros);a.D=d;g.L(a,d);a.YY()}catch(e){g.TF(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.TF(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.j&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new oH(a.api,a.j),b.Ga(a.playerOverlay),
g.L(a,b)):g.TF(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.TF(Error("addCommonComponents() needs to be called before starting countdown."))};
Mbb=function(a){function b(c){return{toString:function(){return c()}}}
a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()).toString()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return(g.eb()-a.C).toString()})};
Nbb=function(a,b,c,d,e){c2.call(this,a,b,c,d,"survey-question-multi-select");this.ea=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()};
Obb=function(a,b,c){a.noneOfTheAbove=new Hbb(a.api,a.layoutId,a.interactionLoggingClientData,a.qb);a.noneOfTheAbove.Ga(a.answers);a.noneOfTheAbove.init(jG("survey-none-of-the-above"),b,c)};
Qbb=function(a){a.B.forEach(function(b){b.j.toggleButton(!1)});
Pbb(a,!0)};
Pbb=function(a,b){var c=a.D;a=Rbb(a);b=void 0===b?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof eH&&!c.j.D&&Ava(c.j,!1));c.B&&(a?c.B.show():c.B.hide())};
Rbb=function(a){return a.B.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()};
d2=function(a,b,c,d,e){c2.call(this,a,b,c,d,"survey-question-single-select",function(h){f.api.W().N("supports_multi_step_on_desktop")&&e([h])});
var f=this;this.hide()};
e2=function(a,b,c,d){uG.call(this,a,{I:"div",T:"ytp-ad-survey",X:[{I:"div",T:"ytp-ad-survey-questions"}]},"survey",b,c,d);this.questions=[];this.B=[];this.conditioningRules=[];this.j=0;this.G=this.Ha("ytp-ad-survey-questions");this.api.W().N("fix_survey_color_contrast_on_destop")&&this.Ha("ytp-ad-survey").classList.add("color-contrast-fix");this.api.W().N("web_enable_speedmaster")&&this.Ha("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
Ubb=function(a,b){var c=a.B[b],d;null==(d=a.C)||d.dispose();g.S(c,iN)?Sbb(a,g.S(c,iN),a.macros):g.S(c,hN)&&Tbb(a,g.S(c,hN),a.macros);a.j=b};
Sbb=function(a,b,c){var d=new d2(a.api,a.layoutId,a.interactionLoggingClientData,a.qb,a.D.bind(a));d.Ga(a.G);d.init(jG("survey-question-single-select"),b,c);a.api.W().N("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.L(a,d)};
Tbb=function(a,b,c){var d=new Nbb(a.api,a.layoutId,a.interactionLoggingClientData,a.qb,a.D.bind(a));d.Ga(a.G);d.init(jG("survey-question-multi-select"),b,c);a.api.W().N("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.L(a,d)};
f2=function(a,b,c,d){uG.call(this,a,{I:"div",T:"ytp-ad-survey-interstitial",X:[{I:"div",T:"ytp-ad-survey-interstitial-contents",X:[{I:"div",T:"ytp-ad-survey-interstitial-logo",X:[{I:"div",T:"ytp-ad-survey-interstitial-logo-image"}]},{I:"div",T:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",b,c,d);this.j=this.actionButton=null;this.interstitial=this.Ha("ytp-ad-survey-interstitial");this.B=this.Ha("ytp-ad-survey-interstitial-contents");this.text=this.Ha("ytp-ad-survey-interstitial-text");
this.logoImage=this.Ha("ytp-ad-survey-interstitial-logo-image");this.transition=new g.VG(this,500,!1,300);g.L(this,this.transition)};
Vbb=function(a,b){b=b&&KG(b)||"";if(g.dc(b))g.UF(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.bf&&10>document.documentMode)c=he;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.lf("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=Yka(d.style)}b=new g.ee([c,Dba({"background-image":'url("'+b+'")'})].map(Ufa).join(""),ge);a.style.cssText=fe(b)}};
Wbb=function(a){var b=g.$e("html5-video-player");b&&g.mu(b,"ytp-ad-display-override",a)};
g2=function(a,b,c,d,e){SG.call(this,a,{I:"div",T:"ytp-preview-ad",X:[{I:"div",T:"ytp-preview-ad__text"}]},"preview-ad",b,c,d,e);var f=this;this.B=0;this.C=-1;this.G=this.Ha("ytp-preview-ad__text");this.transition=new g.VG(this,400,!1,100,function(){f.hide()},function(){f.show()});
g.L(this,this.transition);this.hide()};
h2=function(a,b,c,d){uG.call(this,a,{I:"img",T:"ytp-ad-avatar"},"ad-avatar",b,c,d);this.hide()};
Xbb=function(a){switch(a.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}};
i2=function(a,b,c,d){uG.call(this,a,{I:"button",T:"ytp-ad-button-vm"},"ad-button",b,c,d);this.buttonText=this.buttonIcon=null;this.hide()};
Zbb=function(a){this.content=a.content;if(a.commandRuns){a=g.u(a.commandRuns);for(var b=a.next();!b.done;b=a.next())b=b.value,this.loggingDirectives=g.S(b,Ybb),b.onTap&&(this.interaction={onTap:b.onTap})}};
j2=function(a,b,c,d){uG.call(this,a,{I:"div",T:"ad-simple-attributed-string"},"ad-simple-attributed-string",b,c,d);this.hide()};
$bb=function(a,b,c,d,e){SG.call(this,a,{I:"div",Na:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],X:[{I:"div",T:"ytp-ad-avatar-lockup-card__text_container"}]},"ad-avatar-lockup-card",b,c,d,e);this.C=0;this.adAvatar=new h2(this.api,this.layoutId,this.interactionLoggingClientData,this.qb);g.L(this,this.adAvatar);g.pf(this.element,this.adAvatar.element,0);this.headline=new j2(this.api,this.layoutId,this.interactionLoggingClientData,this.qb);g.L(this,this.headline);this.headline.Ga(this.Ha("ytp-ad-avatar-lockup-card__text_container"));
this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new j2(this.api,this.layoutId,this.interactionLoggingClientData,this.qb);g.L(this,this.description);this.description.Ga(this.Ha("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.B=new i2(this.api,this.layoutId,this.interactionLoggingClientData,this.qb);g.L(this,this.B);this.B.Ga(this.element);this.hide()};
acb=function(a,b,c,d){uG.call(this,a,{I:"button",T:"ytp-skip-ad-button",X:[{I:"div",T:"ytp-skip-ad-button__text"}]},"skip-button",b,c,d);var e=this;this.B=!1;this.D=this.Ha("ytp-skip-ad-button__text");this.transition=new g.VG(this,500,!1,100,function(){e.hide()},function(){e.show()});
g.L(this,this.transition);this.j=new YG(this.element,15E3,5E3,.5,.5);g.L(this,this.j);this.hide()};
bcb=function(a,b,c,d,e){SG.call(this,a,{I:"div",T:"ytp-skip-ad"},"skip-ad",b,c,d,e);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new g2(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.j);g.L(this,this.B);this.B.Ga(this.element);this.C=new acb(this.api,this.layoutId,this.interactionLoggingClientData,this.qb);g.L(this,this.C);this.C.Ga(this.element);this.hide()};
k2=function(a,b,c,d){uG.call(this,a,{I:"button",T:"ytp-visit-advertiser-link"},"visit-advertiser-link",b,c,d);this.hide()};
l2=function(a,b,c,d,e){uG.call(this,a,{I:"div",T:"ytp-ad-player-overlay-layout",X:[{I:"div",T:"ytp-ad-player-overlay-layout__player-card-container"},{I:"div",T:"ytp-ad-player-overlay-layout__ad-info-container"},{I:"div",T:"ytp-ad-player-overlay-layout__skip-or-preview-container"}]},"player-overlay-layout",b,c,d);this.j=e;this.G=this.Ha("ytp-ad-player-overlay-layout__player-card-container");this.B=this.Ha("ytp-ad-player-overlay-layout__ad-info-container");this.D=this.Ha("ytp-ad-player-overlay-layout__skip-or-preview-container");
this.hide()};
m2=function(a,b,c){OG.call(this,a);this.api=a;this.qb=b;this.B={};a=new g.T({I:"div",Na:["video-ads","ytp-ad-module"]});g.L(this,a);cS&&g.iu(a.element,"ytp-ads-tiny-mode");this.G=new YE(a.element);g.L(this,this.G);g.wU(this.api,a.element,4);nDa(c)&&(c=new g.T({I:"div",Na:["ytp-ad-underlay"]}),g.L(this,c),this.C=new YE(c.element),g.L(this,this.C),g.wU(this.api,c.element,0));g.L(this,Lua())};
ccb=function(a,b){a=g.nd(a.B,b.id,null);null==a&&g.UF(Error("Component not found for element id: "+b.id));return a||null};
dcb=function(a){g.yV.call(this,a);var b=this;this.B=null;this.created=!1;this.C=new o1(this.player);this.D=function(){if(null!=b.B)return b.B;var d=nbb({jq:a.getVideoData(1)});d=new gab({Pu:d.U4(),Xk:W1(b.j).Xk,AA:d.c5(),Tn:W1(b.j).Tn,J:b.player,Lk:W1(b.j).Lk,Ra:b.j.j.Ra,tj:W1(b.j).tj,Pd:b.j.j.Pd});b.B=d.Q2;return b.B};
this.j=new mbb(this.player,this,this.C,this.D);g.L(this,this.j);var c=a.W();!TJ(c)||g.kS(c)||pS(c)||(g.L(this,new m2(a,W1(this.j).qb,W1(this.j).Lk)),g.L(this,new obb(a)))};
ecb=function(a){a.created!==a.loaded&&ZG("Created and loaded are out of sync")};
hcb=function(a){g.yV.prototype.load.call(a);var b=W1(a.j).Lk;xva(b.J.W().N("html5_reduce_ecatcher_errors"));try{a.player.getRootNode().classList.add("ad-created")}catch(l){ZG(l instanceof Error?l:String(l))}var c=a.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(!a.player.W().experiments.ob("debug_ignore_ad_placements")&&e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}),h=((null==e?void 0:e.adSlots)||[]).map(function(l){return g.S(l,LCa)});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;c&&c.Fc();b=fcb(f,h,b,W1(a.j).At);f=c&&c.clientPlaybackNonce||"";c=c&&c.Zu||!1;h=1E3*a.player.getDuration(1);gcb(a);a.j.j.Ut.dk(f,h,c,b.lJ,b.uU,b.lJ,e,d)};
gcb=function(a){var b,c;if(c=!((null==(b=a.player.getVideoData(1))?0:b.Zu)||g.Iv("SERVED_VIA_SPF_HISTORY")))b=a.player.W(),c=TJ(b)&&!g.SJ(b)&&"desktop-polymer"===b.playerStyle;c&&(a=FRa(a.player),a.addEventListener("updateKevlarOrC3Companion",Mva),a.addEventListener("updateEngagementPanelAction",Ova),a.addEventListener("changeEngagementPanelVisibility",Qva),window.addEventListener("yt-navigate-start",Sva))};
n2=function(a,b){b===a.zs&&(a.zs=void 0)};
icb=function(a){var b=W1(a.j).kd,c=b.B().DN("SLOT_TYPE_PLAYER_BYTES",1);b=b.bb.get().Kf(1).clientPlaybackNonce;var d=!1;c=g.u(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f="SLOT_TYPE_PLAYER_BYTES"===e.slotType&&e.slotEntryTrigger instanceof sM?e.slotEntryTrigger.Ur:void 0;f&&f===b&&(d&&ZG("More than 1 preroll playerBytes slot detected",e),d=!0)}d||I1(W1(a.j).Gw)};
jcb=function(a){var b="";a=g.u(W1(a.j).tj.zl.keys());for(var c=a.next();!c.done;c=a.next()){c=c.value;if("SLOT_TYPE_PLAYER_BYTES"===c.slotType&&"core"===c.gb)return!0;b+=c.slotType+" "}.01>Math.random()&&ZG("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1};
kcb=function(a){a=g.u(W1(a.j).tj.zl.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
MCa=function(a,b,c,d,e){c=void 0===c?[]:c;d=void 0===d?"":d;e=void 0===e?"":e;var f=W1(a.j).Lk,h=a.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.Fc();c=fcb(b,c,f,W1(a.j).At);QCa(W1(a.j).rd,d,c.lJ,c.uU,b,e)};
fcb=function(a,b,c,d){b={lJ:[],uU:b};a=g.u(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&null!=e.renderer){var f=e.renderer;if(!c.J.W().N("html5_enable_vod_lasr_with_notify_pacf")){var h=void 0,l=void 0,m=void 0,n=void 0,p=d;g.S(null==(n=f.sandwichedLinearAdRenderer)?void 0:n.adVideoStart,yN)?(h=g.S(null==(m=f.sandwichedLinearAdRenderer)?void 0:m.adVideoStart,yN),p=cFa(h,p),g.XF(f.sandwichedLinearAdRenderer.adVideoStart,yN,p)):g.S(null==(l=f.linearAdSequenceRenderer)?void 0:l.adStart,yN)&&
(m=g.S(null==(h=f.linearAdSequenceRenderer)?void 0:h.adStart,yN),p=cFa(m,p),g.XF(f.linearAdSequenceRenderer.adStart,yN,p))}b.lJ.push(e)}return b};
lcb=function(){if(!g.bf)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.ncb=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=g.le(a);return b.parseFromString(g.ke(a),"application/xml")}if(mcb){b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
g.o2=function(a){g.J.call(this);this.callback=a;this.j=new Du(0,0,.4,0,.2,1,1,1);this.delay=new g.Zt(this.next,window,this);g.L(this,this.delay)};
g.ocb=function(a){var b=a.W();if(!b.Ud||b.C||!g.eS(b))return!1;b=g.eU(a);return g.tU(a)?(a=b.Pk(),315<=Math.min(a.width,a.height)):g.tU(a)?!1:!b.zg()};
g.p2=function(a,b){g.T.call(this,{I:"div",T:"ytp-more-videos-view",Y:{tabIndex:"-1"}});var c=this;this.api=a;this.ub=b;this.B=!0;this.D=new g.ZK(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.ea=this.G=this.j=0;this.title=new g.T({I:"h2",T:"ytp-related-title",Aa:"{{title}}"});this.previous=new g.T({I:"button",Na:["ytp-button","ytp-previous"],Y:{"aria-label":"Show previous suggested videos"},X:[g.yG()]});this.S=new g.o2(function(d){c.suggestions.element.scrollLeft=-d});
this.next=new g.T({I:"button",Na:["ytp-button","ytp-next"],Y:{"aria-label":"Show more suggested videos"},X:[g.zG()]});g.L(this,this.D);this.K=a.W().D;g.L(this,this.title);this.title.Ga(this.element);this.suggestions=new g.T({I:"div",T:"ytp-suggestions"});g.L(this,this.suggestions);this.suggestions.Ga(this.element);g.L(this,this.previous);this.previous.Ga(this.element);this.previous.Ua("click",this.D0,this);g.L(this,this.S);pcb(this);g.L(this,this.next);this.next.Ga(this.element);this.next.Ua("click",
this.C0,this);this.D.V(this.api,"appresize",this.Nb);this.D.V(this.api,"fullscreentoggled",this.lr);this.D.V(this.api,"videodatachange",this.onVideoDataChange);this.Nb(this.api.tb().getPlayerSize());this.onVideoDataChange()};
pcb=function(a){for(var b={Cz:0};16>b.Cz;b={Cz:b.Cz},++b.Cz){var c=new g.T({I:"a",T:"ytp-suggestion-link",Y:{href:"{{link}}",target:a.api.W().ea,"aria-label":"{{aria_label}}"},X:[{I:"div",T:"ytp-suggestion-image"},{I:"div",T:"ytp-suggestion-overlay",Y:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},X:[{I:"div",T:"ytp-suggestion-title",Aa:"{{title}}"},{I:"div",T:"ytp-suggestion-author",Aa:"{{author_and_views}}"},{I:"div",Y:{"data-is-live":"{{is_live}}"},T:"ytp-suggestion-duration",
Aa:"{{duration}}"}]}]});g.L(a,c);var d=c.Ha("ytp-suggestion-link");g.yr(d,"transitionDelay",b.Cz/20+"s");a.D.V(d,"click",function(e){return function(f){var h=e.Cz;if(a.B){var l=a.suggestionData[h],m=l.sessionData;a.K&&a.api.N("web_player_log_click_before_generating_ve_conversion_params")?(a.api.wb(a.C[h].element),h=l.Qk(),l={},g.XRa(a.api,l,"emb_rel_pause"),h=g.Dl(h,l),g.QU(h,a.api,f)):g.PU(f,a.api,a.K,m||void 0)&&a.api.Ao(l.videoId,m,l.playlistId)}else f.preventDefault(),document.activeElement.blur()}}(b));
c.Ga(a.suggestions.element);a.C.push(c);a.api.qg(c.element,c)}};
qcb=function(a){if(a.api.W().N("web_player_log_click_before_generating_ve_conversion_params"))for(var b=Math.floor(-a.j/(a.G+8)),c=Math.min(b+a.columns,a.suggestionData.length)-1;b<=c;b++)a.api.Xa(a.C[b].element,!0)};
g.q2=function(a){var b=a.ub.Ng()?32:16;b=a.ea/2+b;a.next.element.style.bottom=b+"px";a.previous.element.style.bottom=b+"px";b=a.j;var c=a.containerWidth-a.suggestionData.length*(a.G+8);g.mu(a.element,"ytp-scroll-min",0<=b);g.mu(a.element,"ytp-scroll-max",b<=c)};
scb=function(a){for(var b=a.suggestionData.length,c=0;c<b;++c){var d=void 0,e=void 0,f=void 0;d=a;var h=d.api.W(),l=d.suggestionData[c],m=d.C[c];f=g.tU(d.api)?l.shortViewCount||"":l.shortViewCount?l.author+" \u2022 "+l.shortViewCount:l.author;m.element.style.display="";e=m.Ha("ytp-suggestion-link");g.yr(e,"display","inline-block");rcb.test(l.title)&&(m.Ha("ytp-suggestion-title").dir="rtl");rcb.test(f)&&(m.Ha("ytp-suggestion-author").dir="rtl");e=l.isLivePlayback?"Live":l.lengthSeconds?g.jH(l.lengthSeconds):
"";var n=l.Qk(g.tU(d.api));if(g.eS(h)&&!h.N("web_player_log_click_before_generating_ve_conversion_params")){var p={};g.cU(d.api,"addEmbedsConversionTrackingParams",[p]);n=g.Dl(n,g.FP(p,"emb_rel_pause"))}h.N("web_player_log_click_before_generating_ve_conversion_params")&&(h=(h=l.sessionData)&&h.itct)&&d.api.Gg(m.element,h);m.update({author_and_views:f,duration:e,link:n,title:l.title,aria_label:l.ariaLabel||l.title,is_live:l.isLivePlayback,aria_hidden:!!l.ariaLabel,blink_rendering_hack:g.sL||g.dS?"will-change: opacity":
void 0});f=m.Ha("ytp-suggestion-image");d=g.tU(d.api)?l.Lg("hq2.jpg"):l.Lg();f.style.backgroundImage=d?"url("+d+")":""}if(16>b)for(;16>b;++b)c=a.C[b].Ha("ytp-suggestion-link"),g.yr(c,"display","none");g.q2(a)};
aaa=[];fa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
g.da=caa(this);la("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}
function c(f,h){this.j=f;fa(this,"description",{configurable:!0,writable:!0,value:h})}
if(a)return a;c.prototype.toString=function(){return this.j};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
la("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=g.da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&fa(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a});
var tcb="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)qa(d,e)&&(a[e]=d[e])}return a};
la("Object.assign",function(a){return a||tcb});
var faa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},ucb=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=faa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),vcb;
if("function"==typeof Object.setPrototypeOf)vcb=Object.setPrototypeOf;else{var wcb;a:{var xcb={a:!0},ycb={};try{ycb.__proto__=xcb;wcb=ycb.a;break a}catch(a){}wcb=!1}vcb=wcb?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ra=vcb;
sa.prototype.ma=function(a){this.B=a};
sa.prototype.return=function(a){this.C={return:a};this.j=this.G};
sa.prototype.Ma=function(a){this.j=a};
la("Reflect",function(a){return a?a:{}});
la("Reflect.construct",function(){return ucb});
la("Reflect.setPrototypeOf",function(a){return a?a:ra?function(b,c){try{return ra(b,c),!0}catch(d){return!1}}:null});
la("Promise",function(a){function b(h){this.j=0;this.C=void 0;this.B=[];this.S=!1;var l=this.D();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.j=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.B=function(h){if(null==this.j){this.j=[];var l=this;this.C(function(){l.G()})}this.j.push(h)};
var e=g.da.setTimeout;c.prototype.C=function(h){e(h,0)};
c.prototype.G=function(){for(;this.j&&this.j.length;){var h=this.j;this.j=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.D(n)}}}this.j=null};
c.prototype.D=function(h){this.C(function(){throw h;})};
b.prototype.D=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.Ca),reject:h(this.G)}};
b.prototype.Ca=function(h){if(h===this)this.G(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Ja(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=!0;break a;default:l=!1}l?this.va(h):this.K(h)}};
b.prototype.va=function(h){var l=void 0;try{l=h.then}catch(m){this.G(m);return}"function"==typeof l?this.Oa(l,h):this.K(h)};
b.prototype.G=function(h){this.ma(2,h)};
b.prototype.K=function(h){this.ma(1,h)};
b.prototype.ma=function(h,l){if(0!=this.j)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.j);this.j=h;this.C=l;2===this.j&&this.Fa();this.ea()};
b.prototype.Fa=function(){var h=this;e(function(){if(h.qa()){var l=g.da.console;"undefined"!==typeof l&&l.error(h.C)}},1)};
b.prototype.qa=function(){if(this.S)return!1;var h=g.da.CustomEvent,l=g.da.Event,m=g.da.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=g.da.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.C;return m(h)};
b.prototype.ea=function(){if(null!=this.B){for(var h=0;h<this.B.length;++h)f.B(this.B[h]);this.B=null}};
var f=new c;b.prototype.Ja=function(h){var l=this.D();h.yG(l.resolve,l.reject)};
b.prototype.Oa=function(h,l){var m=this.D();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(r,t){return"function"==typeof r?function(v){try{n(r(v))}catch(x){p(x)}}:t}
var n,p,q=new b(function(r,t){n=r;p=t});
this.yG(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.yG=function(h,l){function m(){switch(n.j){case 1:h(n.C);break;case 2:l(n.C);break;default:throw Error("Unexpected state: "+n.j);}}
var n=this;null==this.B?f.B(m):this.B.push(m);this.S=!0};
b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
b.race=function(h){return new b(function(l,m){for(var n=g.u(h),p=n.next();!p.done;p=n.next())d(p.value).yG(l,m)})};
b.all=function(h){var l=g.u(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(v){return function(x){r[v]=x;t--;0==t&&n(r)}}
var r=[],t=0;do r.push(void 0),t++,d(m.value).yG(q(r.length-1),p),m=l.next();while(!m.done)})};
return b});
la("Object.setPrototypeOf",function(a){return a||ra});
la("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.u(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!qa(m,h)){var n=new c;fa(m,h,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(q){return!1}}())return a;
var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!qa(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&qa(m,h)?m[h][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&qa(m,h)&&qa(m[h],this.j)};
b.prototype.delete=function(m){return d(m)&&qa(m,h)&&qa(m[h],this.j)?delete m[h][this.j]:!1};
return b});
la("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l[1];return daa(function(){if(n){for(;n.head!=l[1];)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++h,f.set(m,n)):n="p_"+m;var p=l[0][n];if(p&&qa(l[0],n))for(l=0;l<p.length;l++){var q=p[l];if(m!==m&&q.key!==q.key||m===q.key)return{id:n,list:p,index:l,entry:q}}return{id:n,list:p,index:-1,entry:void 0}}
function e(l){this[0]={};this[1]=b();this.size=0;if(l){l=g.u(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.u([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(q){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this[0][n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this[1],previous:this[1].previous,head:this[1],key:l,value:m},n.list.push(n.entry),this[1].previous.next=n.entry,this[1].previous=n.entry,this.size++);return this};
e.prototype.delete=function(l){l=d(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this[0][l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this[0]={};this[1]=this[1].previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).entry};
e.prototype.get=function(l){return(l=d(this,l).entry)&&l.value};
e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
e.prototype.keys=function(){return c(this,function(l){return l.key})};
e.prototype.values=function(){return c(this,function(l){return l.value})};
e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
la("Array.prototype.keys",function(a){return a?a:function(){return Ka(this,function(b){return b})}});
la("Array.prototype.find",function(a){return a?a:function(b,c){return kaa(this,b,c).H_}});
la("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=La(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
la("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=La(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});
la("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
la("String.prototype.repeat",function(a){return a?a:function(b){var c=La(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
la("Set",function(a){function b(c){this.j=new Map;if(c){c=g.u(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.u([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this};
b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c};
b.prototype.clear=function(){this.j.clear();this.size=0};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.entries=function(){return this.j.entries()};
b.prototype.values=function(){return this.j.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})};
return b});
la("Array.prototype.values",function(a){return a?a:function(){return Ka(this,function(b,c){return c})}});
la("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
la("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
la("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)qa(b,d)&&c.push(b[d]);return c}});
la("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
la("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
la("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==La(this,b,"includes").indexOf(b,c||0)}});
la("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
la("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
la("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
la("Array.prototype.entries",function(a){return a?a:function(){return Ka(this,function(b,c){return[b,c]})}});
la("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
la("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
la("Int8Array.prototype.fill",Na);la("Uint8Array.prototype.fill",Na);la("Uint8ClampedArray.prototype.fill",Na);la("Int16Array.prototype.fill",Na);la("Uint16Array.prototype.fill",Na);la("Int32Array.prototype.fill",Na);la("Uint32Array.prototype.fill",Na);la("Float32Array.prototype.fill",Na);la("Float64Array.prototype.fill",Na);la("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)qa(b,d)&&c.push([d,b[d]]);return c}});
la("globalThis",function(a){return a||g.da});
la("Math.imul",function(a){return a?a:function(b,c){b=Number(b);c=Number(c);var d=b&65535,e=c&65535;return d*e+((b>>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}});
la("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;
})})}});
la("Array.prototype.findIndex",function(a){return a?a:function(b,c){return kaa(this,b,c).i}});
la("Math.sign",function(a){return a?a:function(b){b=Number(b);return 0===b||isNaN(b)?b:0<b?1:-1}});
la("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.u(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
b.prototype.add=function(c){this.j.set(c,!0);return this};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.delete=function(c){return this.j.delete(c)};
return b});
la("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});
la("String.prototype.padStart",function(a){return a?a:function(b,c){var d=La(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
la("Array.prototype.copyWithin",function(a){function b(c){c=Number(c);return Infinity===c||-Infinity===c?c:c|0}
return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=void 0===e?f:b(e);c=0>c?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(c<d)for(;d<e;)d in this?this[c++]=this[d++]:(delete this[c++],d++);else for(e=Math.min(e,f+d-c),c+=e-d;e>d;)--e in this?this[--c]=this[e]:delete this[--c];return this}});
la("Int8Array.prototype.copyWithin",Pa);la("Uint8Array.prototype.copyWithin",Pa);la("Uint8ClampedArray.prototype.copyWithin",Pa);la("Int16Array.prototype.copyWithin",Pa);la("Uint16Array.prototype.copyWithin",Pa);la("Int32Array.prototype.copyWithin",Pa);la("Uint32Array.prototype.copyWithin",Pa);la("Float32Array.prototype.copyWithin",Pa);la("Float64Array.prototype.copyWithin",Pa);
la("Math.clz32",function(a){return a?a:function(b){b=Number(b)>>>0;if(0===b)return 32;var c=0;0===(b&4294901760)&&(b<<=16,c+=16);0===(b&4278190080)&&(b<<=8,c+=8);0===(b&4026531840)&&(b<<=4,c+=4);0===(b&3221225472)&&(b<<=2,c+=2);0===(b&2147483648)&&c++;return c}});
la("Number.parseInt",function(a){return a||parseInt});
la("String.raw",function(a){return a?a:function(b,c){if(null==b)throw new TypeError("Cannot convert undefined or null to object");for(var d=b.raw,e=d.length,f="",h=0;h<e;++h)f+=d[h],h+1<e&&h+1<arguments.length&&(f+=String(arguments[h+1]));return f}});var xm,Ya,laa;xm=xm||{};g.Qa=this||self;Ya="closure_uid_"+(1E9*Math.random()>>>0);laa=0;g.k=pb.prototype;g.k.z3=function(a){var b=g.Ja.apply(1,arguments),c=this.hN(b);c?c.push(new oaa(a)):this.wZ(a,b)};
g.k.wZ=function(a){var b=this.getKey(g.Ja.apply(1,arguments));this.Gy.set(b,[new oaa(a)])};
g.k.hN=function(){var a=this.getKey(g.Ja.apply(0,arguments));return this.Gy.has(a)?this.Gy.get(a):void 0};
g.k.X4=function(){var a=this.hN(g.Ja.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.Gy.clear()};
g.k.getKey=function(){var a=g.Ja.apply(0,arguments);return a?a.join(","):"key"};g.w(qb,pb);qb.prototype.C=function(a){var b=g.Ja.apply(1,arguments),c=0,d=this.X4(b);d&&(c=d.QU);this.wZ(c+a,b)};g.w(rb,pb);rb.prototype.Th=function(a){this.z3(a,g.Ja.apply(1,arguments))};g.J.prototype.Ep=!1;g.J.prototype.isDisposed=function(){return this.Ep};
g.J.prototype.dispose=function(){this.Ep||(this.Ep=!0,this.Ba())};
g.J.prototype.Ba=function(){if(this.Ak)for(;this.Ak.length;)this.Ak.shift()()};g.gb(vb,Error);vb.prototype.name="CustomError";var Zba;g.gb(wb,vb);wb.prototype.name="AssertionError";g.xb.prototype.stopPropagation=function(){this.B=!0};
g.xb.prototype.preventDefault=function(){this.defaultPrevented=!0};var raa,$p,Nr;raa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.zcb=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
0>c&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.Yb=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.ts=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in h){var m=h[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.Yp=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f="string"===typeof a?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
return e};
$p=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.Yb)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Nr=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;
return!1};
g.Zp=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};var bc={};var hba=function(){if(!g.Qa.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{var c=function(){};
g.Qa.addEventListener("test",c,b);g.Qa.removeEventListener("test",c,b)}catch(d){}return a}();var Acb=Ua(1,!0),oc=Ua(610401301,!1);Ua(899588437,!1);g.Bcb=Ua(533565600,Acb);g.Ccb=Ua(563486499,!1);Ua(2147483644,!1);Ua(2147483645,!1);Ua(2147483646,Acb);Ua(2147483647,!0);var pc=!!g.Ta("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var jc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Gaa=/&/g,Haa=/</g,Iaa=/>/g,Jaa=/"/g,Kaa=/'/g,Laa=/\x00/g,Faa=/[\x00&<>"']/;var qc,Dcb=g.Qa.navigator;qc=Dcb?Dcb.userAgentData||null:null;Jc[" "]=function(){};var zr,dZ,G$a,Ecb,Fcb,Gcb,bS,cS,Hcb;g.dS=wc();g.bf=xc();g.dE=tc("Edge");g.yS=g.dE||g.bf;zr=tc("Gecko")&&!(hc(g.mc(),"WebKit")&&!tc("Edge"))&&!(tc("Trident")||tc("MSIE"))&&!tc("Edge");g.Pc=hc(g.mc(),"WebKit")&&!tc("Edge");dZ=Ic();G$a=Saa();g.HC=Raa();Ecb=Gc();Fcb=tc("iPad");Gcb=tc("iPod");bS=Hc();cS=hc(g.mc(),"KaiOS");
a:{var Icb="",Jcb=function(){var a=g.mc();if(zr)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.dE)return/Edge\/([\d\.]+)/.exec(a);if(g.bf)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Pc)return/WebKit\/(\S+)/.exec(a);if(g.dS)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
Jcb&&(Icb=Jcb?Jcb[1]:"");if(g.bf){var Kcb=Vaa();if(null!=Kcb&&Kcb>parseFloat(Icb)){Hcb=String(Kcb);break a}}Hcb=Icb}var Lc=Hcb,Taa={},Lcb;if(g.Qa.document&&g.bf){var Mcb=Vaa();Lcb=Mcb?Mcb:parseInt(Lc,10)||void 0}else Lcb=void 0;var Waa=Lcb;var BVa=Xaa("AnimationEnd"),DSa=Xaa("TransitionEnd");g.gb(Qc,g.xb);var Ncb={2:"touch",3:"pen",4:"mouse"};
Qc.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;(b=a.relatedTarget)?zr&&(Kc(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=g.Pc||void 0!==
a.offsetX?a.offsetX:a.layerX,this.offsetY=g.Pc||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===
typeof a.pointerType?a.pointerType:Ncb[a.pointerType]||"";this.state=a.state;this.j=a;a.defaultPrevented&&Qc.Rf.preventDefault.call(this)};
Qc.prototype.stopPropagation=function(){Qc.Rf.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
Qc.prototype.preventDefault=function(){Qc.Rf.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Yaa="closure_listenable_"+(1E6*Math.random()|0);var Zaa=0;var eba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=td.prototype;g.k.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var h=vd(a,b,d,e);-1<h?(b=a[h],c||(b.xG=!1)):(b=new $aa(b,this.src,f,!!d,e),b.xG=c,a.push(b));return b};
g.k.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=vd(e,b,c,d);return-1<b?(Sc(e[b]),g.Eb(e,b),0==e.length&&(delete this.listeners[a],this.j--),!0):!1};
g.k.Of=function(){var a=0,b;for(b in this.listeners){for(var c=this.listeners[b],d=0;d<c.length;d++)++a,Sc(c[d]);delete this.listeners[b];this.j--}};
g.k.eD=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=vd(a,b,c,d));return-1<e?a[e]:null};
g.k.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return g.Xc(this.listeners,function(f){for(var h=0;h<f.length;++h)if(!(c&&f[h].type!=d||e&&f[h].capture!=b))return!0;return!1})};var Bd="closure_lm_"+(1E6*Math.random()|0),Dd={},jba=0,Fd="__closure_events_fn_"+(1E9*Math.random()>>>0);g.gb(g.Gd,g.J);g.Gd.prototype[Yaa]=!0;g.k=g.Gd.prototype;g.k.addEventListener=function(a,b,c,d){g.yd(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){lba(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.aQ;if(b){var c=[];for(var d=1;b;b=b.aQ)c.push(b),++d}b=this.v3;d=a.type||a;if("string"===typeof a)a=new g.xb(a,b);else if(a instanceof g.xb)a.target=a.target||b;else{var e=a;a=new g.xb(d,b);g.sd(a,e)}e=!0;if(c)for(var f=c.length-1;!a.B&&0<=f;f--){var h=a.currentTarget=c[f];e=Hd(h,d,!0,a)&&e}a.B||(h=a.currentTarget=b,e=Hd(h,d,!0,a)&&e,a.B||(e=Hd(h,d,!1,a)&&e));if(c)for(f=0;!a.B&&f<c.length;f++)h=a.currentTarget=c[f],e=Hd(h,d,!1,a)&&e;return e};
g.k.Ba=function(){g.Gd.Rf.Ba.call(this);this.mm&&this.mm.Of();this.aQ=null};
g.k.Ua=function(a,b,c,d){return this.mm.add(String(a),b,!1,c,d)};
g.k.kI=function(a,b,c,d){return this.mm.add(String(a),b,!0,c,d)};
g.k.Qc=function(a,b,c,d){this.mm.remove(String(a),b,c,d)};
g.k.eD=function(a,b,c,d){return this.mm.eD(String(a),b,c,d)};
g.k.hasListener=function(a,b){return this.mm.hasListener(void 0!==a?String(a):void 0,b)};Id.prototype.get=function(){if(0<this.B){this.B--;var a=this.j;this.j=a.next;a.next=null}else a=this.C();return a};var eca=g.bf||g.Pc;var Ocb={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var Od;g.Qd.prototype.zn=!0;g.Qd.prototype.Ok=function(){return this.QZ};
var qba={},pba={};g.Vd("");var sba={};Wd.prototype.toString=function(){return this.nQ.toString()};
Wd.prototype.Ok=function(){return this.nQ.toString()};g.Xd.prototype.toString=function(){return this.qQ+""};
g.Xd.prototype.zn=!0;g.Xd.prototype.Ok=function(){return this.qQ.toString()};
var vba=/%{(\w+)}/g,uba=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),xba={};var Aba,be;g.$d.prototype.toString=function(){return this.pQ.toString()};
g.$d.prototype.zn=!0;g.$d.prototype.Ok=function(){return this.pQ.toString()};
var zba=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,yba=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Pcb;try{new URL("s://g"),Pcb=!0}catch(a){Pcb=!1}Aba=Pcb;be={};g.ie=new g.$d("about:invalid#zClosurez",be);var ge={};g.ee.prototype.Ok=function(){return this.oQ};
g.ee.prototype.toString=function(){return this.oQ.toString()};
var he=new g.ee("",ge),Gba=RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),Fba=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Eba=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|steps|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),Hba=/\/\*/;var Oba={};g.je.prototype.Ok=function(){return this.mQ.toString()};
g.je.prototype.toString=function(){return this.mQ.toString()};
var Qcb=/^[a-zA-Z0-9-]+$/,Rcb={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Scb={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Lba=new g.je(g.Qa.trustedTypes&&g.Qa.trustedTypes.emptyHTML||"",Oba);var Qba=Md(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.ke(Lba);return!b.parentElement}),Tba=/^[\w+/_-]+[=]{0,2}$/;g.k=g.ue.prototype;g.k.clone=function(){return new g.ue(this.x,this.y)};
g.k.equals=function(a){return a instanceof g.ue&&ve(this,a)};
g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.we.prototype;g.k.clone=function(){return new g.we(this.width,this.height)};
g.k.area=function(){return this.width*this.height};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!this.area()};
g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.Tcb=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var $ba={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.k=Me.prototype;g.k.Gb=function(a){return We(this.j,a)};
g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.k.Ha=function(a){return g.$e(a,this.j)};
g.k.createElement=function(a){return jf(this.j,a)};
g.k.appendChild=g.nf;g.k.append=function(a,b){dca(Ne(a),a,arguments,1)};
g.k.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.k.removeNode=g.yf;g.k.contains=g.Af;var Ff;Mf.prototype.add=function(a,b){var c=kca.get();c.set(a,b);this.B?this.B.next=c:this.j=c;this.B=c};
Mf.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.B=null),a.next=null);return a};
var kca=new Id(function(){return new Nf},function(a){return a.reset()});
Nf.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};
Nf.prototype.reset=function(){this.next=this.scope=this.fn=null};var Of,Pf=!1,ica=new Mf;lca.prototype.reset=function(){this.context=this.B=this.C=this.j=null;this.D=!1};
var mca=new Id(function(){return new lca},function(a){a.reset()});
g.Sf.prototype.then=function(a,b,c){return wca(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
g.Sf.prototype.$goog_Thenable=!0;g.k=g.Sf.prototype;g.k.xk=function(a,b){return wca(this,null,a,b)};
g.k.catch=g.Sf.prototype.xk;g.k.cancel=function(a){if(0==this.j){var b=new fg(a);g.Qf(function(){sca(this,b)},this)}};
g.k.saa=function(a){this.j=0;Rf(this,2,a)};
g.k.taa=function(a){this.j=0;Rf(this,3,a)};
g.k.I4=function(){for(var a;a=tca(this);)uca(this,a,this.j,this.S);this.K=!1};
var Aca=Lf;g.gb(fg,vb);fg.prototype.name="cancel";g.gb(g.gg,g.Gd);g.k=g.gg.prototype;g.k.enabled=!1;g.k.pd=null;g.k.setInterval=function(a){this.Ti=a;this.pd&&this.enabled?(this.stop(),this.start()):this.pd&&this.stop()};
g.k.caa=function(){if(this.enabled){var a=g.eb()-this.jX;0<a&&a<.8*this.Ti?this.pd=this.BF.setTimeout(this.IU,this.Ti-a):(this.pd&&(this.BF.clearTimeout(this.pd),this.pd=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.pd||(this.pd=this.BF.setTimeout(this.IU,this.Ti),this.jX=g.eb())};
g.k.stop=function(){this.enabled=!1;this.pd&&(this.BF.clearTimeout(this.pd),this.pd=null)};
g.k.Ba=function(){g.gg.Rf.Ba.call(this);this.stop();delete this.BF};g.w(g.jg,g.J);g.k=g.jg.prototype;g.k.sendIsolatedPayload=function(a){this.G=a;this.D=1};
g.k.Kx=function(){var a=this.B.values();a=[].concat(g.pa(a)).filter(function(b){return b.Gy.size});
a.length&&this.S.flush(a,this.G);Dca(a);this.C=0;this.j.enabled&&this.j.stop()};
g.k.fm=function(a){var b=g.Ja.apply(1,arguments);this.B.has(a)||this.B.set(a,new qb(a,b))};
g.k.mG=function(a){var b=g.Ja.apply(1,arguments);this.B.has(a)||this.B.set(a,new rb(a,b))};
g.k.Km=function(a){this.UK.apply(this,[a,1].concat(g.pa(g.Ja.apply(1,arguments))))};
g.k.UK=function(a,b){var c=g.Ja.apply(2,arguments),d=Cca(this,a);d&&d instanceof qb&&(d.C(b,c),Bca(this))};
g.k.Th=function(a,b){var c=g.Ja.apply(2,arguments),d=Cca(this,a);d&&d instanceof rb&&(d.Th(b,c),Bca(this))};Eca.prototype.Th=function(a,b,c,d,e){this.j.Th("/client_streamz/po/w/rl",a,b,c,d,e)};
Fca.prototype.Th=function(a,b,c){this.j.Th("/client_streamz/po/w/el",a,b,c)};var vh=void 0,uh,qda="undefined"!==typeof TextDecoder,Mca,Lca="undefined"!==typeof TextEncoder;var EC,FC;g.FR=Bc();EC=Gc()||tc("iPod");FC=tc("iPad");g.COa=Naa();g.sL=Cc();g.ID=Dc()&&!Hc();var Rca={},pg=null,Sca=zr||g.Pc||"function"==typeof g.Qa.btoa;var ada="undefined"!==typeof Uint8Array,Vca=!g.bf&&"function"===typeof btoa,Zca=/[-_.]/g,Xca={"-":"+",_:"/",".":"="},bda,sg={};var dda;Ig.prototype.isEmpty=function(){return null==this.ge};
Ig.prototype.sizeBytes=function(){var a=Kg(this);return a?a.length:0};var mda="function"===typeof Uint8Array.prototype.slice,Og=0,Pg=0,Dea;g.k=Qg.prototype;g.k.init=function(a,b,c,d){d=void 0===d?{}:d;this.nG=void 0===d.nG?!1:d.nG;a&&(a=Ng(a),this.B=a.buffer,this.G=a.Et,this.D=b||0,this.C=void 0!==c?this.D+c:this.B.length,this.j=this.D)};
g.k.free=function(){this.clear();100>Xg.length&&Xg.push(this)};
g.k.clear=function(){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.nG=!1};
g.k.reset=function(){this.j=this.D};
g.k.advance=function(a){Rg(this,this.j+a)};
g.k.VK=function(){var a=Ug(this);return 4294967296*Ug(this)+(a>>>0)};
var Xg=[];Yg.prototype.free=function(){this.j.clear();this.B=this.D=-1;100>r2.length&&r2.push(this)};
Yg.prototype.reset=function(){this.j.reset();this.C=this.j.j;this.B=this.D=-1};
Yg.prototype.advance=function(a){this.j.advance(a)};
var r2=[];var tda,wda;xh.prototype.length=function(){return this.j.length};
xh.prototype.end=function(){var a=this.j;this.j=[];return a};var s2="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():void 0;Math.max.apply(Math,g.pa(Object.values({oEa:1,iEa:2,ZDa:4,bTa:8,aTa:16,uPa:32,mpa:64,E6a:128,eBa:256,bBa:512,jEa:1024})));var Hh=s2?function(a,b){a[s2]|=b}:function(a,b){void 0!==a.Bn?a.Bn|=b:Object.defineProperties(a,{Bn:{value:b,
configurable:!0,writable:!0,enumerable:!1}})},dea=s2?function(a,b){a[s2]&=~b}:function(a,b){void 0!==a.Bn&&(a.Bn&=~b)},Fh=s2?function(a){return a[s2]|0}:function(a){return a.Bn|0},Li=s2?function(a){return a[s2]}:function(a){return a.Bn},Gh=s2?function(a,b){a[s2]=b}:function(a,b){void 0!==a.Bn?a.Bn=b:Object.defineProperties(a,{Bn:{value:b,
configurable:!0,writable:!0,enumerable:!1}})};var wi={},Ucb,Ti,Vcb=[];Gh(Vcb,39);Ti=Object.freeze(Vcb);var Oh,Ji;var Lda=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var xi,Uda;g.k=Q.prototype;g.k.toJSON=function(){if(Ucb)var a=lk(this,this.oa,!1);else a=Ki(this.oa,aea,void 0,void 0,!1,!1),a=lk(this,a,!0);return a};
g.k.Dj=function(){Ucb=!0;try{return JSON.stringify(this.toJSON(),Yda)}finally{Ucb=!1}};
g.k.clone=function(){var a=this.oa;return yi(this.constructor,Mi(a,Li(a),!1))};
g.k.Et=function(){return!!(Fh(this.oa)&2)};
g.k.yI=wi;g.k.toString=function(){return lk(this,this.oa,!1).toString()};var rea=Symbol(),vea=Symbol(),qk=Symbol(),pk=Symbol(),Wcb=sk(function(a,b,c){if(1!==a.B)return!1;uk(b,c,Vg(a.j));return!0},vk),Xcb=sk(function(a,b,c){if(1!==a.B)return!1;
a=Vg(a.j);uk(b,c,0===a?void 0:a);return!0},vk),Ycb=sk(function(a,b,c,d){if(1!==a.B)return!1;
qj(b,c,d,Vg(a.j));return!0},vk),Zcb=sk(function(a,b,c){if(0!==a.B)return!1;
uk(b,c,Sg(a.j));return!0},wk),$cb=sk(function(a,b,c){if(0!==a.B)return!1;
a=Sg(a.j);uk(b,c,0===a?void 0:a);return!0},wk),adb=sk(function(a,b,c,d){if(0!==a.B)return!1;
qj(b,c,d,Sg(a.j));return!0},wk),bdb=sk(function(a,b,c){if(0!==a.B)return!1;
uk(b,c,Tg(a.j));return!0},xk),cdb=sk(function(a,b,c){if(0!==a.B)return!1;
a=Tg(a.j);uk(b,c,0===a?void 0:a);return!0},xk),ddb=sk(function(a,b,c,d){if(0!==a.B)return!1;
qj(b,c,d,Tg(a.j));return!0},xk),edb=sk(function(a,b,c){if(1!==a.B)return!1;
uk(b,c,a.j.VK());return!0},function(a,b,c){Bda(a,c,Rda(b))}),fdb=tk(function(a,b,c){if(1!==a.B&&2!==a.B)return!1;
b=Ui(b,Li(b),c,2,!1);if(2==a.B){c=Qg.prototype.VK;var d=Tg(a.j)>>>0;for(d=a.j.j+d;a.j.j<d;)b.push(c.call(a.j))}else b.push(a.j.VK());return!0},function(a,b,c){b=mk(Rda,b,!1);
if(null!=b)for(var d=0;d<b.length;d++)Bda(a,c,b[d])}),gdb=sk(function(a,b,c){if(0!==a.B)return!1;
uk(b,c,Wg(a.j));return!0},Eea),hdb=sk(function(a,b,c,d){if(0!==a.B)return!1;
qj(b,c,d,Wg(a.j));return!0},Eea),t2=sk(function(a,b,c){if(2!==a.B)return!1;
uk(b,c,wh(a));return!0},Fea),idb=tk(function(a,b,c){if(2!==a.B)return!1;
a=wh(a);mj(b,c,a);return!0},function(a,b,c){b=mk(ui,b,!0);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&Ch(a,c,Nca(e))}}),jdb=sk(function(a,b,c,d){if(2!==a.B)return!1;
qj(b,c,d,wh(a));return!0},Fea),kdb=sk(function(a,b,c,d,e){if(2!==a.B)return!1;
th(a,hea(b,d,c),e);return!0},yk),u2=tk(function(a,b,c,d,e){if(2!==a.B)return!1;
d=M(void 0,d[0],d[1]);var f=Li(b);Nh(f);var h=Ui(b,f,c,3);if(Object.isFrozen(h)||Fh(h)&4)h=Eh(h),Qi(b,f,c,h);h.push(d);th(a,d,e);return!0},function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)yk(a,b[f],c,d,e)}),v2=sk(function(a,b,c,d,e,f){if(2!==a.B)return!1;
var h=Li(b);Nh(h);(f=oj(b,h,f))&&c!==f&&Qi(b,h,f);b=hea(b,d,c);th(a,b,e);return!0},yk),w2=sk(function(a,b,c){if(2!==a.B)return!1;
uk(b,c,rda(a));return!0},function(a,b,c){b=Sda(b);
null!=b&&Ch(a,c,Ng(b).buffer)}),ldb=tk(function(a,b,c){if(2!==a.B)return!1;
a=rda(a);mj(b,c,a);return!0},function(a,b,c){b=mk(Sda,b,!1);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&Ch(a,c,Ng(e).buffer)}}),x2=sk(function(a,b,c){if(0!==a.B)return!1;
uk(b,c,Tg(a.j)>>>0);return!0},function(a,b,c){b=ni(b);
null!=b&&null!=b&&(Bh(a,c,0),yh(a.j,b))}),mdb=sk(function(a,b,c){if(0!==a.B)return!1;
uk(b,c,Tg(a.j));return!0},function(a,b,c){b=mi(b);
null!=b&&(b=parseInt(b,10),Bh(a,c,0),zda(a.j,b))});g.w(Ak,Q);Ak.Fb=[1,2,3,4];g.w(Bk,Q);var Hk=[1,2,3],ndb=[0,jdb,Hk,ddb,Hk,hdb,Hk];var odb=[0,u2,[0,Wcb,Zcb]];g.w(Ck,Q);var Gk=[1,2,3],pdb=[0,adb,Gk,Ycb,Gk,v2,odb,Gk];g.w(Dk,Q);Dk.Fb=[1];var qdb=[0,u2,ndb,kdb,pdb];var rdb=[1,2,3],sdb=[0,v2,[0,t2,t2,gdb],rdb,v2,[0,t2,t2,bdb,gdb],rdb,v2,[0,t2],rdb];g.w(Ek,Q);Ek.prototype.Bq=function(){var a=lea(this,3,void 0,2);Fda(a);return a[void 0]};
Ek.Fb=[3,6,4];Ek.prototype.j=Gea([0,t2,kdb,sdb,idb,u2,qdb,edb,fdb]);g.w(Fk,Q);Fk.Fb=[1];var Nea={};g.k=Ik.prototype;g.k.isEnabled=function(){if(!g.Qa.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{nI:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.Xfb;d=c.A$||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.nI}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+
e:"")};
g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e<d.length;e++){f=jc(d[e]);if(0==f.lastIndexOf(c,0))return f.slice(c.length);if(f==a)return""}return b};
g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{nI:0,path:b,domain:c});return d};
g.k.hp=function(){return Jk(this).keys};
g.k.tm=function(){return Jk(this).values};
g.k.isEmpty=function(){return!this.j.cookie};
g.k.clear=function(){for(var a=Jk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var wC=new Ik("undefined"==typeof document?null:document);g.w(Lk,Q);Lk.Fb=[2];g.w(Mk,Q);g.w(Nk,Q);g.Ok.prototype.B=0;g.Ok.prototype.reset=function(){this.j=this.C=this.D;this.B=0};
g.Ok.prototype.getValue=function(){return this.C};var vl=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Xea=/#|$/,Yea=/[?&]($|#)/;g.w(Hl,Q);g.w(Il,Q);Il.Fb=[1];g.w(Jl,Q);var ifa=["platform","platformVersion","architecture","model","uaFullVersion"];new Il;g.w(Kl,Q);g.w(Ll,Q);Ll.Fb=[1,2,3,4,5];g.w(Ml,Q);g.w(Nl,Q);Nl.prototype.N=function(){return Si(this,Ll,7)};
Nl.prototype.vC=function(){return Ri(this,16)};
Nl.Fb=[3,20,27];g.w(Ol,Q);Ol.Fb=[3,5];g.w(Pl,Q);var tdb=zk(Pl);Pl.Fb=[5];g.w($ea,Q);var y2;y2=new function(a,b,c){this.B=a;this.fieldName=b;this.j=c;this.isRepeated=0;this.C=g.sj;this.defaultValue=void 0}(175237375,{vfb:0},$ea);g.w(nm,g.J);g.k=nm.prototype;g.k.Ba=function(){this.WM();g.J.prototype.Ba.call(this)};
g.k.dispatch=function(a){if(a instanceof Nl)this.log(a);else{var b=new Nl;a=a.Dj();b=N(b,8,a);this.log(b)}};
g.k.log=function(a){a=a.clone();var b=this.Va++;a=Ij(a,21,b);this.componentId&&N(a,26,this.componentId);if(!kea(a)){b=a;var c=Date.now().toString();Ri(b,1,qi(c))}null!=xj(a,15)||Ij(a,15,60*(new Date).getTimezoneOffset());this.experimentIds&&(b=this.experimentIds.clone(),tj(a,Lk,16,b));b=this.B.length-1E3+1;0<b&&(this.B.splice(0,b),this.D+=b);this.B.push(a);this.DC||this.j.enabled||this.j.start()};
g.k.flush=function(a,b){var c=this;if(0===this.B.length)a&&a();else if(this.ma)gfa(this.C,3),ffa(this);else{var d=Date.now();if(this.Pa>d&&this.Fa<d)b&&b("throttled");else{gfa(this.C,1);var e=this.C.build(this.B,this.D,this.K,this.HA,this.Ca,this.va);d={};var f=this.fz();f&&(d.Authorization=f);var h=cfa(this);this.sessionIndex&&(d["X-Goog-AuthUser"]=this.sessionIndex,h=El(h,"authuser",this.sessionIndex));this.pageId&&(d["X-Goog-PageId"]=this.pageId,h=El(h,"pageId",this.pageId));if(f&&this.Oa===f)b&&
b("stale-auth-token");else{this.B=[];this.j.enabled&&this.j.stop();this.D=0;var l=e.Dj(),m;this.S&&this.S.isSupported(l.length)&&(m=this.S.compress(l));var n={url:h,body:l,L3:1,Ow:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(t){c.G.reset();c.j.setInterval(c.G.getValue());if(t){var v=null;try{var x=JSON.stringify(JSON.parse(t.replace(")]}'\n","")));v=tdb(x)}catch(B){}v&&(t=Number,x="-1",x=void 0===x?"0":x,x=zj(kea(v),x),t=t(x),0<t&&(c.Fa=Date.now(),
c.Pa=c.Fa+t),v=y2.j?y2.C(v,y2.j,y2.B,!0):y2.C(v,y2.B,null,!0),v=null===v?void 0:v)&&(v=Aj(v,1,-1),-1!==v&&(c.Ja||dfa(c,v)))}a&&a();c.K=0},q=function(t,v){var x=jea(e,Nl),B=xj(e,14);
g.sl(c.G);c.j.setInterval(c.G.getValue());401===t&&f&&(c.Oa=f);B&&(c.D+=B);void 0===v&&(v=c.isRetryable(t));v&&(c.B=x.concat(c.B),c.DC||c.j.enabled||c.j.start());b&&b("net-send-failed",t);++c.K},r=function(){c.network&&c.network.send(n,p,q)};
m?m.then(function(t){n.Ow["Content-Encoding"]="gzip";n.Ow["Content-Type"]="application/binary";n.body=t;n.L3=2;r()},function(){r()}):r()}}}};
g.k.WM=function(){hfa(this.C,!0);this.flush();hfa(this.C,!1)};
g.k.isRetryable=function(a){return 500<=a&&600>a||401===a||0===a};
afa.prototype.build=function(a,b,c,d,e,f){b=void 0===b?0:b;e=void 0===e?0:e;f=void 0===f?0:f;c=void 0===c?0:c;if(Si(pm(this),Jl,11)){var h=qm(this);Gj(h,3,c)}Si(pm(this),Jl,11)&&(c=qm(this),Gj(c,4,e));Si(pm(this),Jl,11)&&(e=qm(this),Gj(e,5,f));f=this.j.clone();e=Date.now().toString();f=Ri(f,4,qi(e));a=vj(f,Nl,3,a);d&&(f=new Mk,d=Gj(f,13,d),f=new Nk,d=tj(f,Mk,2,d),f=new Ml,d=tj(f,Nk,1,d),d=O(d,2,9),tj(a,Ml,18,d));b&&Ij(a,14,b);return a};kfa.prototype.Dj=function(a){var b=[];sm(this,a,b);return b.join("")};
var nfa={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},mfa=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;tm.prototype.C=null;tm.prototype.getOptions=function(){return this.C||(this.C=this.D())};var udb;g.gb(um,tm);um.prototype.j=function(){var a=pfa(this);return a?new ActiveXObject(a):new XMLHttpRequest};
um.prototype.D=function(){var a={};pfa(this)&&(a[0]=!0,a[1]=!0);return a};
udb=new um;g.gb(g.vm,g.Gd);var xfa=/^https?$/i,vdb=["POST","PUT"],qfa=[];g.k=g.vm.prototype;g.k.T3=function(){this.dispose();g.Fb(qfa,this)};
g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.qa+"; newUri="+a);b=b?b.toUpperCase():"GET";this.qa=a;this.D="";this.B=0;this.Fa=!1;this.C=!0;this.j=this.ma?this.ma.j():udb.j();this.Ca=this.ma?this.ma.getOptions():udb.getOptions();this.j.onreadystatechange=(0,g.cb)(this.sY,this);try{this.getStatus(),this.Ja=!0,this.j.open(b,String(a),!0),this.Ja=!1}catch(h){this.getStatus();ufa(this,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===
Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=g.u(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});
e=g.Qa.FormData&&a instanceof g.Qa.FormData;!g.Db(vdb,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.u(c);for(d=b.next();!d.done;d=b.next())c=g.u(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.Oa&&(this.j.responseType=this.Oa);"withCredentials"in this.j&&this.j.withCredentials!==this.K&&(this.j.withCredentials=this.K);try{wfa(this),0<this.S&&(this.Pa=sfa(this.j),this.getStatus(),this.Pa?(this.j.timeout=this.S,this.j.ontimeout=(0,g.cb)(this.XS,
this)):this.va=g.hg(this.XS,this.S,this)),this.getStatus(),this.ea=!0,this.j.send(a),this.ea=!1}catch(h){this.getStatus(),ufa(this,h)}};
g.k.XS=function(){"undefined"!=typeof xm&&this.j&&(this.D="Timed out after "+this.S+"ms, aborting",this.B=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.j&&this.C&&(this.getStatus(),this.C=!1,this.G=!0,this.j.abort(),this.G=!1,this.B=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),wm(this))};
g.k.Ba=function(){this.j&&(this.C&&(this.C=!1,this.G=!0,this.j.abort(),this.G=!1),wm(this,!0));g.vm.Rf.Ba.call(this)};
g.k.sY=function(){this.isDisposed()||(this.Ja||this.ea||this.G?vfa(this):this.z8())};
g.k.z8=function(){vfa(this)};
g.k.isActive=function(){return!!this.j};
g.k.isComplete=function(){return 4==g.ym(this)};
g.k.getStatus=function(){try{return 2<g.ym(this)?this.j.status:-1}catch(a){return-1}};
g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),null===a?void 0:a};
g.k.getLastError=function(){return"string"===typeof this.D?this.D:String(this.D)};zfa.prototype.send=function(a,b,c){b=void 0===b?function(){}:b;
c=void 0===c?function(){}:c;
rfa(a.url,function(d){d=d.target;zm(d)?b(g.Am(d)):c(d.getStatus())},a.requestType,a.body,a.Ow,a.timeoutMillis,a.withCredentials)};g.w(Dm,g.J);Dm.prototype.kV=function(){this.ea=!0;return this};
Dm.prototype.build=function(){var a=new nm({logSource:this.logSource,fz:this.fz?this.fz:Qea,sessionIndex:this.sessionIndex,Baa:this.B,Lz:this.C,DC:!1,kV:this.ea,pageId:this.pageId,DU:this.DU,network:this.network?this.network:void 0});g.L(this,a);this.G&&Ql(a.C,this.G);if(this.j){var b=this.j,c=om(a.C);N(c,7,b)}this.D&&(a.S=this.D);this.componentId&&(a.componentId=this.componentId);this.HA&&(a.HA=this.HA);this.vC&&((b=this.vC)?(a.experimentIds||(a.experimentIds=new Lk),b=b.Dj(),N(a.experimentIds,4,
b)):a.experimentIds&&Ri(a.experimentIds,4));this.S&&(b=this.S,a.experimentIds||(a.experimentIds=new Lk),Xi(a.experimentIds,2,b,nea));this.K&&(b=this.K,a.Ja=!0,dfa(a,b));this.ma&&jfa(a.C,this.ma);return a};g.w(Em,g.J);Em.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Fk,c=[],d=0;d<a.length;d++){var e=a[d],f=g.Hea(e);c.push(f);e.clear()}vj(b,Ek,1,c);this.j.dispatch(b);this.j.flush()}};g.w(Gm,Error);Gm.prototype.toString=function(){var a="RpcError("+(Afa(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};
Gm.prototype.name="RpcError";Im.prototype.done=function(){this.logger.rX(this.j,Hm()-this.startMillis)};
g.k=Bfa.prototype;g.k.SD=function(){};
g.k.rX=function(){};
g.k.JO=function(a,b,c){return c};
g.k.qX=function(){};
g.k.RD=function(){};
g.k.lI=function(){};
g.k=Cfa.prototype;g.k.SD=function(a){this.clientError.j.Km("/client_streamz/po/w/cec",a,this.Pf)};
g.k.rX=function(a,b){this.D.Th(b,a,this.Pf)};
g.k.JO=function(a,b,c){function d(h){var l=Hm()-f;e.G.Th(l,a,b,h,e.Pf)}
var e=this,f=Hm();c.then(function(){d(0)},function(h){h instanceof Gm?d(h.code):d(-1)});
return c};
g.k.qX=function(a){this.C.j.Km("/client_streamz/po/w/csc",a,this.Pf)};
g.k.RD=function(a){this.B.j.Km("/client_streamz/po/w/ctav",a,this.Pf)};
g.k.lI=function(a){this.j.j.Km("/client_streamz/po/w/cwsc",a,this.Pf)};var wdb,Efa=null!=(wdb=Math.imul)?wdb:function(a,b){return a*b|0};
Km.prototype.Dj=function(){return String(this.j)+","+this.B.join()};
Km.prototype.Ch=function(a,b){var c=void 0;if(this.B[this.j]!==a){var d=this.B.indexOf(a);-1!==d?(this.B.splice(d,1),d<this.j&&this.j--,this.B.splice(this.j,0,a)):(c=this.B[this.j],this.B[this.j]=a)}this.j=(this.j+1)%this.maxItems;a=Dfa("iU5q-!O9@$",this.Dj());c&&a&&b(c);return a};
Lm.prototype.write=function(a,b,c,d){var e=new Im(this.logger,"W"),f=(4-(Mm.length+b.length)%4)%4,h=new Uint8Array(4+f+Mm.length+4+b.length),l=new DataView(h.buffer),m=0;l.setUint32(m,4294967295*Math.random()|0);m=m+4+f;h.set(Mm,m);m+=Mm.length;l.setUint32(m,d);h.set(b,m+4);this.encrypt(h,c);a=Hfa(null!=a?a:[]);if(!this.index.Ch(a,function(n){globalThis.sessionStorage.removeItem(n)}))return this.logger.lI("i"),!1;
if(!Dfa(a,g.mg(h)))return this.logger.lI("t"),!1;this.logger.lI("s");e.done();return!0};
Lm.prototype.read=function(a,b){var c=new Im(this.logger,"R");a=Hfa(null!=a?a:[]);var d=globalThis.sessionStorage.getItem(a);if(d){d=og(d);this.encrypt(d,b);for(b=4;7>b&&0===d[b];)b++;for(var e=0;e<Mm.length;e++)if(d[b++]!==Mm[e]){globalThis.sessionStorage.removeItem(a);this.logger.RD("d");return}e=(new DataView(d.buffer)).getUint32(b);if((Date.now()/1E3|0)>=e)globalThis.sessionStorage.removeItem(a),this.logger.RD("e");else return a=new Uint8Array(d.buffer,b+4),c.done(),this.logger.RD("a"),a}else this.logger.RD("m")};
Lm.prototype.encrypt=function(a,b){var c=Ffa(b);a=new Uint32Array(a.buffer);b=a[0];var d=g.u(c);c=d.next().value;d=d.next().value;for(var e=1;e<a.length;e+=2){for(var f=b,h=e,l=c,m=d,n=0;22>n;n++)h=h>>>8|h<<24,h+=f|0,h^=l+38293,f=f<<3|f>>>29,f^=h,m=m>>>8|m<<24,m+=l|0,m^=n+38293,l=l<<3|l>>>29,l^=m;f=[f,h];a[e]^=f[0];e+1<a.length&&(a[e+1]^=f[1])}};
var Mm=[196,200,224,18];Jfa.prototype.Th=function(a,b){this.j.Th("/client_streamz/bg/fil",a,b)};
Lfa.prototype.Th=function(a,b){this.j.Th("/client_streamz/bg/fsl",a,b)};var Nfa={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);0<a;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};g.w(Qfa,Q);g.w(Rfa,Q);g.w(Qm,Q);var gga=zk(Qm);yn.prototype.snapshot=function(a){var b=this;if(this.j)throw Error("Already disposed");var c=Pm(),d;null!=(d=this.Jk)&&d.C.j.Km("/client_streamz/bg/fsc",d.Pf);return this.B.then(function(e){var f=e.J3;return new Promise(function(h){f(function(l){var m;null!=(m=b.Jk)&&m.D.Th(Pm()-c,m.Pf);h(l)},[a.Ry,
a.M$,a.N_])})})};
yn.prototype.JZ=function(a){if(this.j)throw Error("Already disposed");var b=Pm(),c;null!=(c=this.Jk)&&c.C.j.Km("/client_streamz/bg/fsc",c.Pf);a=this.C([a.Ry,a.M$,a.N_]);var d;null!=(d=this.Jk)&&d.D.Th(Pm()-b,d.Pf);return a};
yn.prototype.dispose=function(){var a;null!=(a=this.Jk)&&a.j.Kx();this.j=!0;this.B.then(function(b){(b=b.K$)&&b()})};
yn.prototype.isDisposed=function(){return this.j};var coa={};g.w(zn,Sfa);zn.prototype.toString=function(){return this.j};var Tfa="function"===typeof URL;var xdb="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked color cols colspan controls datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
ydb=[["dir",{policyAction:3,conditions:new Map([["dir",new Set(["auto","ltr","rtl"])]])}],["async",{policyAction:3,conditions:new Map([["async",new Set(["async"])]])}],["cite",{policyAction:2}],["loading",{policyAction:3,conditions:new Map([["loading",new Set(["eager","lazy"])]])}],["poster",{policyAction:2}],["target",{policyAction:3,conditions:new Map([["target",new Set(["_self","_blank"])]])}]];xdb.concat(["class","id"]);ydb.concat([["style",{policyAction:4}]]);"ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER".split(" ").concat("STYLE TITLE INPUT TEXTAREA BUTTON LABEL".split(" "));
xdb.concat(["class","id","tabindex","contenteditable","name"]);ydb.concat([["style",{policyAction:4}]]);var jWa=Cn("tel"),hWa=Cn("sms"),Wfa=[Cn("data"),Cn("http"),Cn("https"),Cn("mailto"),Cn("ftp"),new Bn(function(a){return/^[^:]*([/?#]|$)/.test(a)})];var fga=na([""]);g.w(Kn,Q);g.w(Ln,Q);g.w(Mn,Q);Nn.prototype.PC=function(a,b){var c=this,d,e,f,h,l;return g.H(function(m){if(1==m.j){var n=new Kn;d=Lj(n,1,c.Pf);a&&Lj(d,2,a);b&&Lj(d,3,b);e=c.j();return g.z(m,c.client.create(d,e),2)}f=m.B;h=Lg(Wi(f,2));if(h.length)return m.return(hga(h));l=g.sj(f,Qm,1);if(!l)throw Error("Missing field");return m.return(l)})};
Nn.prototype.yV=function(a){var b=this,c,d;return g.H(function(e){c=b.j();var f=new Ln;f=Lj(f,1,b.Pf);d=Lj(f,2,a);f=e.return;var h=b.client;h=bp(h.j,h.B+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},zdb);return f.call(e,h)})};
Nn.prototype.ping=function(a,b){var c=this,d,e;return g.H(function(f){d=c.j();e=b||new Mn;var h=N(e,1,c.Pf);N(h,2,a);return g.z(f,c.client.ping(e,d),0)})};g.w(On,Q);var Adb=zk(On);Pn.prototype.zH=function(){return this.C};
Pn.prototype.getMetadata=function(){return this.B};Qn.prototype.getMetadata=function(){return this.j};
Qn.prototype.zH=function(){return this.B};
Qn.prototype.getStatus=function(){return null};Rn.prototype.getName=function(){return this.name};
Rn.prototype.getName=Rn.prototype.getName;var Bdb=new Rn("/google.internal.waa.v1.Waa/Create",Kn,On,function(a){return a.Dj()},Adb);g.w(Sn,Q);var Cdb=zk(Sn);var zdb=new Rn("/google.internal.waa.v1.Waa/GenerateIT",Ln,Sn,function(a){return a.Dj()},Cdb);g.w(Tn,Q);var Ddb=new Rn("/google.internal.waa.v1.Waa/Ping",Mn,Tn,function(a){return a.Dj()},zk(Tn));var Gga=Promise;g.w(Un,Q);Un.prototype.getValue=function(){var a=Pi(this,2);if(Array.isArray(a)||a instanceof Q)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Wi(this,2)};g.w(Vn,Q);Vn.prototype.getMessage=function(){return g.Dj(this,2)};
var nga=zk(Vn);Vn.Fb=[3];Wn.prototype.on=function(a,b){"data"==a?this.C.push(b):"metadata"==a?this.G.push(b):"status"==a?this.K.push(b):"end"==a?this.D.push(b):"error"==a&&this.B.push(b);return this};
Wn.prototype.removeListener=function(a,b){"data"==a?$n(this.C,b):"metadata"==a?$n(this.G,b):"status"==a?$n(this.K,b):"end"==a?$n(this.D,b):"error"==a&&$n(this.B,b);return this};
Wn.prototype.cancel=function(){this.j.abort()};
Wn.prototype.cancel=Wn.prototype.cancel;Wn.prototype.removeListener=Wn.prototype.removeListener;Wn.prototype.on=Wn.prototype.on;g.gb(g.ao,tm);g.ao.prototype.j=function(){var a=new bo(this.K,this.G);this.B&&a.setCredentialsMode(this.B);return a};
g.ao.prototype.D=Jd({});g.ao.prototype.setCredentialsMode=function(a){this.B=a};
g.gb(bo,g.Gd);g.k=bo.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.qa=a;this.ea=b;this.readyState=1;co(this)};
g.k.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.ma,method:this.qa,credentials:this.G,cache:void 0};a&&(b.body=a);(this.va||g.Qa).fetch(new Request(this.ea,b)).then(this.B5.bind(this),this.OH.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.ma=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.").catch(function(){});
1<=this.readyState&&this.j&&4!=this.readyState&&(this.j=!1,eo(this));this.readyState=0};
g.k.B5=function(a){if(this.j&&(this.D=a,this.B||(this.status=this.D.status,this.statusText=this.D.statusText,this.B=a.headers,this.readyState=2,co(this)),this.j&&(this.readyState=3,co(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.z5.bind(this),this.OH.bind(this));else if("undefined"!==typeof g.Qa.ReadableStream&&"body"in a){this.C=a.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.S=new TextDecoder;oga(this)}else a.text().then(this.A5.bind(this),this.OH.bind(this))};
g.k.q5=function(a){if(this.j){if(this.K&&a.value)this.response.push(a.value);else if(!this.K){var b=a.value?a.value:new Uint8Array(0);if(b=this.S.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?eo(this):co(this);3==this.readyState&&oga(this)}};
g.k.A5=function(a){this.j&&(this.response=this.responseText=a,eo(this))};
g.k.z5=function(a){this.j&&(this.response=a,eo(this))};
g.k.OH=function(){this.j&&eo(this)};
g.k.setRequestHeader=function(a,b){this.ma.append(a,b)};
g.k.getResponseHeader=function(a){return this.B?this.B.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.B)return"";for(var a=[],b=this.B.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
g.k.setCredentialsMode=function(a){this.G=a};
Object.defineProperty(bo.prototype,"withCredentials",{get:function(){return"include"===this.G},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.go.prototype.toString=function(){var a=[],b=this.G;b&&a.push(no(b,Edb,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.ma)&&a.push(no(b,Edb,!0),"@"),a.push(g.ye(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,null!=c&&a.push(":",String(c));if(c=this.C)this.j&&"/"!=c.charAt(0)&&a.push("/"),a.push(no(c,"/"==c.charAt(0)?Fdb:Gdb,!0));(c=this.B.toString())&&a.push("?",c);(c=this.K)&&a.push("#",no(c,Hdb));return a.join("")};
g.go.prototype.resolve=function(a){var b=this.clone(),c=!!a.G;c?g.ho(b,a.G):c=!!a.ma;c?b.ma=a.ma:c=!!a.j;c?g.io(b,a.j):c=null!=a.D;var d=a.C;if(c)g.jo(b,a.D);else if(c=!!a.C){if("/"!=d.charAt(0))if(this.j&&!this.C)d="/"+d;else{var e=b.C.lastIndexOf("/");-1!=e&&(d=b.C.slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(g.gc(e,"./")||g.gc(e,"/.")){d=cc(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),
d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.C=d:c=""!==a.B.toString();c?ko(b,a.B.clone()):c=!!a.K;c&&(b.K=a.K);return b};
g.go.prototype.clone=function(){return new g.go(this)};
var Edb=/[#\/\?@]/g,Gdb=/[#\?:]/g,Fdb=/[#\?]/g,sga=/[#\?@]/g,Hdb=/#/g;g.k=mo.prototype;g.k.add=function(a,b){qo(this);this.C=null;a=ro(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.B=this.B+1;return this};
g.k.remove=function(a){qo(this);a=ro(this,a);return this.j.has(a)?(this.C=null,this.B=this.B-this.j.get(a).length,this.j.delete(a)):!1};
g.k.clear=function(){this.j=this.C=null;this.B=0};
g.k.isEmpty=function(){qo(this);return 0==this.B};
g.k.forEach=function(a,b){qo(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.hp=function(){qo(this);for(var a=Array.from(this.j.values()),b=Array.from(this.j.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.k.tm=function(a){qo(this);var b=[];if("string"===typeof a)uga(this,a)&&(b=b.concat(this.j.get(ro(this,a))));else{a=Array.from(this.j.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
g.k.set=function(a,b){qo(this);this.C=null;a=ro(this,a);uga(this,a)&&(this.B=this.B-this.j.get(a).length);this.j.set(a,[b]);this.B=this.B+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.tm(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.C)return this.C;if(!this.j)return"";for(var a=[],b=Array.from(this.j.keys()),c=0;c<b.length;c++){var d=b[c],e=g.ye(d);d=this.tm(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+g.ye(d[f]));a.push(h)}}return this.C=a.join("&")};
g.k.clone=function(){var a=new mo;a.C=this.C;this.j&&(a.j=new Map(this.j),a.B=this.B);return a};
g.k.extend=function(a){for(var b=0;b<arguments.length;b++)g.fo(arguments[b],function(c,d){this.add(d,c)},this)};g.gb(g.to,g.J);var Idb=[];g.k=g.to.prototype;g.k.Ua=function(a,b,c,d){Array.isArray(b)||(b&&(Idb[0]=b.toString()),b=Idb);for(var e=0;e<b.length;e++){var f=g.yd(a,b[e],c||this.handleEvent,d||!1,this.B||this);if(!f)break;this.j[f.key]=f}return this};
g.k.kI=function(a,b,c,d){return xga(this,a,b,c,d)};
g.k.Qc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Qc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Xa(d)?!!d.capture:!!d,e=e||this.B||this,c=zd(c),d=!!d,b=Rc(a)?a.eD(b,c,d,e):a?(a=Ad(a))?a.eD(b,c,d,e):null:null,b&&(Cd(b),delete this.j[b.key])};
g.k.Of=function(){g.Tc(this.j,function(a,b){this.j.hasOwnProperty(b)&&Cd(a)},this);
this.j={}};
g.k.Ba=function(){g.to.Rf.Ba.call(this);this.Of()};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};yga.prototype.isInputValid=function(){return this.C};uo.prototype.isInputValid=function(){return 3!=this.j};
uo.prototype.yf=function(){return this.K};
uo.prototype.jG=function(){return!0};
uo.prototype.parse=function(a){function b(m){m&128&&vo(f,h,l,"invalid tag");2!=(m&7)&&vo(f,h,l,"invalid wire type");f.C=m>>>3;1!=f.C&&2!=f.C&&15!=f.C&&vo(f,h,l,"unexpected tag");f.j=1;f.B=0;f.D=0}
function c(m){f.D++;5==f.D&&m&240&&vo(f,h,l,"message length too long");f.B|=(m&127)<<7*(f.D-1);m&128||(f.j=2,f.ma=0,"undefined"!==typeof Uint8Array?f.G=new Uint8Array(f.B):f.G=Array(f.B),0==f.B&&e())}
function d(m){f.G[f.ma++]=m;f.ma==f.B&&e()}
function e(){if(15>f.C){var m={};m[f.C]=f.G;f.S.push(m)}f.j=0}
for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l<h.length;){switch(f.j){case 3:vo(f,h,l,"stream already broken");break;case 0:b(h[l]);break;case 1:c(h[l]);break;case 2:d(h[l]);break;default:throw Error("unexpected parser state: "+f.j);}f.ea++;l++}a=f.S;f.S=[];return 0<a.length?a:null};wo.prototype.isInputValid=function(){return null===this.j};
wo.prototype.yf=function(){return this.j};
wo.prototype.jG=function(){return!1};
wo.prototype.parse=function(a){null!==this.j&&Aga(this,a,"stream already broken");var b=null;try{var c=this.C;c.C||zga(c,a,"stream already broken");c.j+=a;var d=Math.floor(c.j.length/4);if(0==d)var e=null;else{try{var f=Uca(c.j.slice(0,4*d))}catch(h){zga(c,c.j,h.message)}c.B+=4*d;c.j=c.j.slice(4*d);e=f}b=null===e?null:this.D.parse(e)}catch(h){Aga(this,a,h.message)}this.B+=a.length;return b};var Jdb={INIT:0,fC:1,tL:2,Ux:3,yB:4,xB:5,STRING:6,mL:7,yT:8,TT:9,UT:10,VT:11,hS:12,iS:13,jS:14,kS:15,DT:16,ET:17,FT:18,Z2:19,rL:20};g.k=yo.prototype;g.k.isInputValid=function(){return 3!=this.G};
g.k.yf=function(){return this.ea};
g.k.done=function(){return 2===this.G};
g.k.jG=function(){return!1};
g.k.parse=function(a){function b(){for(;r<a.length;)if(xo(a[r]))r++,f.C++;else break;return r<n}
function c(){for(var v;;){v=a[r++];if(!v)break;f.C++;switch(f.j){case m.INIT:"{"===v?f.j=m.tL:"["===v?f.j=m.yB:xo(v)||zo(f,a,r);continue;case m.mL:case m.tL:if(xo(v))continue;if(f.j===m.mL)h.push(m.yT);else if("}"===v){e("{}");f.j=d();continue}else h.push(m.Ux);'"'===v?f.j=m.STRING:zo(f,a,r);continue;case m.yT:case m.Ux:if(xo(v))continue;":"===v?(f.j===m.Ux&&(h.push(m.Ux),f.B++),f.j=m.fC):"}"===v?(f.B--,e(),f.j=d()):","===v?(f.j===m.Ux&&h.push(m.Ux),f.j=m.mL):zo(f,a,r);continue;case m.yB:case m.fC:if(xo(v))continue;
if(f.j===m.yB)if(f.B++,f.j=m.fC,"]"===v){f.B--;if(0===f.B){f.j=m.xB;return}e("[]");f.j=d();continue}else h.push(m.xB);'"'===v?f.j=m.STRING:"{"===v?f.j=m.tL:"["===v?f.j=m.yB:"t"===v?f.j=m.TT:"f"===v?f.j=m.hS:"n"===v?f.j=m.DT:"-"!==v&&(-1!=="0123456789".indexOf(v)?f.j=m.rL:zo(f,a,r));continue;case m.xB:if(","===v)h.push(m.xB),f.j=m.fC,1===f.B&&(q=r);else if("]"===v){f.B--;if(0===f.B)return;e();f.j=d()}else if(xo(v))continue;else zo(f,a,r);continue;case m.STRING:var x=r;a:for(;;){for(;0<f.ma;)if(v=a[r++],
4===f.ma?f.ma=0:f.ma++,!v)break a;if('"'===v&&!f.S){f.j=d();break}if("\\"===v&&!f.S&&(f.S=!0,v=a[r++],!v))break;if(f.S)if(f.S=!1,"u"===v&&(f.ma=1),v=a[r++])continue;else break;l.lastIndex=r;v=l.exec(a);if(!v){r=a.length+1;break}r=v.index+1;v=a[v.index];if(!v)break}f.C+=r-x;continue;case m.TT:if(!v)continue;"r"===v?f.j=m.UT:zo(f,a,r);continue;case m.UT:if(!v)continue;"u"===v?f.j=m.VT:zo(f,a,r);continue;case m.VT:if(!v)continue;"e"===v?f.j=d():zo(f,a,r);continue;case m.hS:if(!v)continue;"a"===v?f.j=
m.iS:zo(f,a,r);continue;case m.iS:if(!v)continue;"l"===v?f.j=m.jS:zo(f,a,r);continue;case m.jS:if(!v)continue;"s"===v?f.j=m.kS:zo(f,a,r);continue;case m.kS:if(!v)continue;"e"===v?f.j=d():zo(f,a,r);continue;case m.DT:if(!v)continue;"u"===v?f.j=m.ET:zo(f,a,r);continue;case m.ET:if(!v)continue;"l"===v?f.j=m.FT:zo(f,a,r);continue;case m.FT:if(!v)continue;"l"===v?f.j=d():zo(f,a,r);continue;case m.Z2:"."===v?f.j=m.rL:zo(f,a,r);continue;case m.rL:if(-1!=="0123456789.eE+-".indexOf(v))continue;else r--,f.C--,
f.j=d();continue;default:zo(f,a,r)}}}
function d(){var v=h.pop();return null!=v?v:m.fC}
function e(v){1<f.B||(v||(v=-1===q?f.D+a.substring(p,r):a.substring(q,r)),f.qa?f.K.push(v):f.K.push(JSON.parse(v)),q=r)}
for(var f=this,h=f.va,l=f.Ca,m=Jdb,n=a.length,p=0,q=-1,r=0;r<n;)switch(f.G){case 3:return zo(f,a,r),null;case 2:return b()&&zo(f,a,r),null;case 0:if(b()){var t=a[r++];f.C++;if("["===t){f.G=1;p=r;f.j=m.yB;continue}else zo(f,a,r)}return null;case 1:return c(),0===f.B&&f.j==m.xB?(f.G=2,f.D=a.substring(r)):f.D=-1===q?f.D+a.substring(p):a.substring(q),0<f.K.length?(t=f.K,f.K=[],t):null}return null};Ao.prototype.isInputValid=function(){return null===this.G};
Ao.prototype.yf=function(){return this.G};
Ao.prototype.jG=function(){return!1};
Ao.prototype.parse=function(a){function b(m){f.B=6;f.G="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.G);}
function c(){f.C=new yo({Mdb:!0,o4:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.D.push(p)}}
function e(m){if(m){(f.K||1<m.length)&&b("extra status: "+m);f.K=!0;var n={};n[2]=m[0];f.D.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.B){a:{for(;h<a.length;){if(!xo(a[h])){l=!0;break a}h++;f.j++}l=!1}l=!l}if(l)return null;switch(f.B){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.B=1,h++,f.j++):b("unexpected input token");break;case 1:"["===a[h]?(f.B=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.B=3:"]"===a[h]?(f.B=5,h++,f.j++):b("unexpected input token");break;case 2:l=f.C.parse(a.substring(h));d(l);f.C.done()?(f.B=3,l=f.C.D,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-
h,h=a.length);break;case 3:","===a[h]||"null,"==a.slice(h,h+5)?(f.B=4,c(),f.C.parse("["),h+=","===a[h]?1:5,f.j++):"]"===a[h]&&(f.B=5,h++,f.j++);break;case 4:l=f.C.parse(a.substring(h));e(l);f.C.done()?(f.B=5,l=f.C.D,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-h,h=a.length);break;case 5:b("extra input after stream end")}}return 0<f.D.length?(a=f.D,f.D=[],a):null};Bo.prototype.IN=function(){return this.j};
Bo.prototype.getStatus=function(){return this.D};
Bo.prototype.qa=function(a){a=a.target;try{if(a==this.j)a:{var b=g.ym(this.j),c=this.j.B,d=this.j.getStatus(),e=g.Am(this.j);a=[];if(g.Bm(this.j)instanceof Array){var f=g.Bm(this.j);0<f.length&&f[0]instanceof Uint8Array&&(this.ea=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?Co(this,7):7==c?Co(this,8):d||Co(this,3)),this.B||(this.B=Bga(this.j),null==this.B&&Co(this,5)),2<this.D)Do(this);else{if(a.length>this.C){var h=a.length;c=[];try{if(this.B.jG())for(var l=0;l<h;l++){var m=
this.B.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.K){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.K=new TextDecoder}for(l=0;l<h;l++)m+=this.K.decode(a[l],{stream:4==b&&l==h-1});c=this.B.parse(m)}a.splice(0,h);c&&this.G(c)}catch(p){Co(this,5);Do(this);break a}}else if(e.length>this.C){l=e.slice(this.C);this.C=e.length;try{var n=this.B.parse(l);null!=n&&this.G&&this.G(n)}catch(p){Co(this,5);Do(this);break a}}4==b?(0!=e.length||
this.ea?Co(this,2):Co(this,4),Do(this)):Co(this,1)}}}catch(p){Co(this,6),Do(this)}};g.k=Cga.prototype;g.k.on=function(a,b){var c=this.B[a];c||(c=[],this.B[a]=c);c.push(b);return this};
g.k.addListener=function(a,b){this.on(a,b);return this};
g.k.removeListener=function(a,b){var c=this.B[a];c&&g.Fb(c,b);(a=this.j[a])&&g.Fb(a,b);return this};
g.k.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this};
g.k.z7=function(a){var b=this.B.data;b&&Dga(a,b);(b=this.j.data)&&Dga(a,b);this.j.data=[]};
g.k.i9=function(){switch(this.C.getStatus()){case 1:ap(this,"readable");break;case 5:case 6:case 4:case 7:case 3:ap(this,"error");break;case 8:ap(this,"close");break;case 2:ap(this,"end")}};Ega.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Fga(function(h){var l=h.zH(),m=h.getMetadata(),n=Iga(e,!1);m=Jga(e,m,n,f+l.getName());var p=Kga(n,l.B,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.D).call(this,iga(d,b,c))};cp.prototype.create=function(a,b){return bp(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},Bdb)};
cp.prototype.ping=function(a,b){return bp(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},Ddb)};var Kdb=1,jp=new WeakMap;g.w(dp,g.J);dp.prototype.signal=function(){var a=new fp(!1);this.signals.add(a);g.L(this,a);return a};
dp.prototype.Pz=function(a){this.signals.has(a);return a.Pz()};
g.w(fp,g.J);g.k=fp.prototype;g.k.YL=function(){var a=this,b=Kdb++;gp(function(){Mga(a,b)});
return b};
g.k.detach=function(a){var b=this;gp(function(){var c=b.slots.get(a);c&&c.iV()})};
g.k.value=function(a){return this.promise(!0,a)};
g.k.Pz=function(){return this.hX};
g.k.next=function(a){return this.promise(!1,a)};
g.k.promise=function(a,b){var c=this,d=rca();gp(function(){if(c.isDisposed())d.reject(new fg("Signal initially disposed"));else if(b&&b.isDisposed())d.reject(new fg("Owner initially disposed"));else if(a&&c.JU&&c.wW)d.resolve(c.hX);else if(c.OA.add(d),eg(d.promise,function(){c.OA.delete(d)}),b){var e=function(){d.reject(new fg("Owner asynchronously disposed"))};
eg(d.promise,function(){var f=jp.get(b);f&&g.Fb(f,e)});
Qga(b,e)}});
return d.promise};
g.k.Ba=function(){var a=this;g.J.prototype.Ba.call(this);gp(function(){for(var b=g.u(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.iV,c();a.slots.clear();b=g.u(a.OA);for(c=b.next();!c.done;c=b.next())c.value.reject(new fg("Signal asynchronously disposed"));a.OA.clear()})};
var hp=[],ip=!1;g.w(kp,g.J);kp.prototype.start=function(){var a=this;if(this.isDisposed())throw new mp("Cannot start a disposed timer.");if(!this.K){this.D=0;if(this.S){var b=Date.now();this.handle=setInterval(function(){a.D=0<a.milliseconds?Math.trunc((Date.now()-b)/a.milliseconds):a.D+1;var c;null==(c=a.B)||c.resolve();a.B=void 0;if(a.C){var d;null==(d=a.j)||ep(d,a.C,a)}a.Vb.aJ(a)},this.milliseconds)}else this.handle=setTimeout(function(){a.state=3;
a.handle=void 0;a.D=1;var c;null==(c=a.B)||c.resolve();a.B=void 0;if(a.C){var d;null==(d=a.j)||ep(d,a.C,a)}a.Vb.aJ(a)},this.milliseconds);
this.state=1}};
kp.prototype.cancel=function(){if(this.K){this.clear();this.state=2;var a;null==(a=this.B)||a.reject(new lp);var b;null==(b=this.Vb.mP)||b.call(this);if(this.G){var c;null==(c=this.j)||ep(c,this.G)}}};
kp.prototype.Ba=function(){this.clear();var a;null==(a=this.B)||a.reject(new mp);this.state=4;g.J.prototype.Ba.call(this)};
kp.prototype.clear=function(){this.S?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0};
g.da.Object.defineProperties(kp.prototype,{K:{configurable:!0,enumerable:!0,get:function(){return 1===this.state}},
isCancelled:{configurable:!0,enumerable:!0,get:function(){return 2===this.state}},
isExpired:{configurable:!0,enumerable:!0,get:function(){return 3===this.state}},
tick:{configurable:!0,enumerable:!0,get:function(){return this.D}},
ma:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return null!=this.B||(this.B=new g.Rm),this.B.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new lp("Timer has been cancelled."));case 4:return Promise.reject(new mp("Timer has been disposed."));default:Fn(this.state)}}},
aJ:{configurable:!0,enumerable:!0,get:function(){if(this.isDisposed())throw new mp("Cannot attach a signal to a disposed timer.");this.C||(null!=this.j||(this.j=new dp(this)),this.C=this.j.signal());return this.C}},
mP:{configurable:!0,enumerable:!0,get:function(){if(this.isDisposed())throw new mp("Cannot attach a signal to a disposed timer.");this.G||(null!=this.j||(this.j=new dp(this)),this.G=this.j.signal());return this.G}}});
g.w(lp,vb);g.w(mp,vb);var Sga=globalThis.TextEncoder?new TextEncoder:void 0;g.w(op,Error);g.w(pp,g.J);pp.prototype.G=function(a){var b=this.j(a);a=new Im(this.logger,this.B);b=g.mg(b,2);a.done();return b};
g.w(rp,pp);rp.prototype.j=function(a){++this.ea>=this.qa&&this.D.resolve();var b=np(a,this.logger),c=new Im(this.logger,"C"),d=this.ma(b);c.done();if(void 0===d)throw new op(17,Error("YNJ:Undefined"));if(!(d instanceof Uint8Array))throw new op(18,Error("ODM:Invalid"));var e;if(null==(e=a.sC)?0:e.tgb){var f;null==(f=this.S())||f.write(b,d,a.sC.M3,this.K)}return d};
g.w(sp,pp);sp.prototype.j=function(){return this.K};
g.w(tp,pp);tp.prototype.j=function(){return og(this.K)};
tp.prototype.G=function(){return this.K};
g.w(up,pp);up.prototype.j=function(){if(this.K)return this.K;this.K=Vga(this,function(a){return"_"+Ofa(a)});
return Vga(this,function(a){return a})};
g.w(vp,pp);vp.prototype.j=function(a){var b=np(a,this.logger);if(118<b.length)throw new op(19,Error("DFO:Invalid"));a=Date.now()/1E3|0;var c=[255*Math.random()|0,255*Math.random()|0],d=c.concat([this.K&255,this.clientState],[a>>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+d.length+b.length);a[0]=34;a[1]=d.length+b.length;a.set(d,2);a.set(b,2+d.length);b=a.subarray(2);for(d=c=c.length;d<b.length;++d)b[d]^=b[d%c];this.logger.qX(this.clientState);return a};
g.w(wp,g.J);g.k=wp.prototype;g.k.isReady=function(){return!!this.j};
g.k.ready=function(){var a=this;return g.H(function(b){return g.z(b,a.D.promise,0)})};
g.k.PC=function(a){var b=xp,c=this.logger,d=c.JO,e=this.cz,f=e.PC;var h=$fa().B;return b(this,d.call(c,"c",void 0===a?1:a,f.call(e,h,null)),new op(10,"JVZ:Timeout"))};
g.k.prefetch=function(){1===this.state&&(this.B=this.PC())};
g.k.start=function(){if(1===this.state){this.state=2;var a=new Im(this.logger,"r");this.ready().finally(function(){return void a.done()});
Zga(this)}};var cha={NONE:0,Bsa:1},Jha={n0:0,RXa:1,QXa:2,SXa:3},gq={X_:"a",Wra:"d",VIDEO:"v"};yp.prototype.isVisible=function(){return this.Tv?.3<=this.Ge:.5<=this.Ge};var Ip={xpa:0,xya:1},Hha={NONE:0,tDa:1,JAa:2};zp.prototype.getValue=function(){return this.ge};
g.w(Ap,zp);Ap.prototype.B=function(a){null===this.ge&&g.hd(this.C,a)&&(this.ge=a)};
g.w(Bp,zp);Bp.prototype.B=function(a){null===this.ge&&"number"===typeof a&&(this.ge=a)};
g.w(Cp,zp);Cp.prototype.B=function(a){null===this.ge&&"string"===typeof a&&(this.ge=a)};Dp.prototype.disable=function(){this.B=!1};
Dp.prototype.enable=function(){this.B=!0};
Dp.prototype.isEnabled=function(){return this.B};
Dp.prototype.reset=function(){this.j={};this.B=!0;this.C={}};var Pr=document,Mp=window;var Kia=!g.bf&&!Dc();Jp.prototype.now=function(){return 0};
Jp.prototype.B=function(){return 0};
Jp.prototype.C=function(){return 0};
Jp.prototype.j=function(){return 0};g.w(Lp,Jp);Lp.prototype.now=function(){return Kp()&&Mp.performance.now?Mp.performance.now():Jp.prototype.now.call(this)};
Lp.prototype.B=function(){return Kp()&&Mp.performance.memory?Mp.performance.memory.totalJSHeapSize||0:Jp.prototype.B.call(this)};
Lp.prototype.C=function(){return Kp()&&Mp.performance.memory?Mp.performance.memory.usedJSHeapSize||0:Jp.prototype.C.call(this)};
Lp.prototype.j=function(){return Kp()&&Mp.performance.memory?Mp.performance.memory.jsHeapSizeLimit||0:Jp.prototype.j.call(this)};var fha=Md(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.Qa.addEventListener("test",null,b)}catch(c){}return a});gha.prototype.isVisible=function(){return 1===Pp(Pr)};g.Vd("csi.gstatic.com");g.Vd("googleads.g.doubleclick.net");g.Vd("partner.googleadservices.com");g.Vd("pubads.g.doubleclick.net");g.Vd("securepubads.g.doubleclick.net");g.Vd("tpc.googlesyndication.com");var iha={Bga:"allow-forms",Cga:"allow-modals",Dga:"allow-orientation-lock",Ega:"allow-pointer-lock",Fga:"allow-popups",Gga:"allow-popups-to-escape-sandbox",Hga:"allow-presentation",Iga:"allow-same-origin",Jga:"allow-scripts",Kga:"allow-top-navigation",Lga:"allow-top-navigation-by-user-activation"},mha=Md(function(){return jha()});var qha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Up.prototype.jf=function(a,b,c){a=a+"//"+b+c;var d=uha(this)-c.length;if(0>d)return"";this.j.sort(function(n,p){return n-p});
c=null;b="";for(var e=0;e<this.j.length;e++)for(var f=this.j[e],h=this.B[f],l=0;l<h.length;l++){if(!d){c=null==c?f:c;break}var m=tha(h[l],this.C,",$");if(m){m=b+m;if(d>=m.length){d-=m.length;a+=m;b=this.C;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};bq.prototype.setInterval=function(a,b){return Mp.setInterval(a,b)};
bq.prototype.clearInterval=function(a){Mp.clearInterval(a)};
bq.prototype.setTimeout=function(a,b){return Mp.setTimeout(a,b)};
bq.prototype.clearTimeout=function(a){Mp.clearTimeout(a)};g.w(dq,Q);dq.prototype.j=Gea([0,Xcb,$cb,$cb,$cb,cdb]);var Iha={WVa:1,s3:2,hPa:3};Kha.prototype.rQ=function(a){if("string"===typeof a&&0!=a.length){var b=this.Mc;if(b.B){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);1<d.length?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.B(d)}}}};var z2=null;var ar=g.Qa.performance,Ldb=!!(ar&&ar.mark&&ar.measure&&ar.clearMarks),Zq=Md(function(){var a;if(a=Ldb){var b;if(null===z2){z2="";try{a="";try{a=g.Qa.top.location.hash}catch(c){a=g.Qa.location.hash}a&&(z2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=z2;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
$q.prototype.disable=function(){this.j=!1;this.events!=this.B.google_js_reporting_queue&&(Zq()&&g.Yb(this.events,Qha),this.events.length=0)};
$q.prototype.start=function(a,b){if(!this.j)return null;var c=Oha()||Nha();a=new Pha(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";ar&&Zq()&&ar.mark(b);return a};
$q.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=Oha()||Nha();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";ar&&Zq()&&ar.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};Rha.prototype.MO=function(a,b,c,d,e){e=e||this.uV;try{var f=new Up;f.j.push(1);f.B[1]=Vp("context",a);b.error&&b.meta&&b.id||(b=new er(fr(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.B[2]=Vp("msg",h)}var l=b.meta||{};if(this.TL)try{this.TL(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.j.push(3);f.B[3]=b;var m=sha();if(m.B){var n=m.B.url||"";f.j.push(4);f.B[4]=Vp("top",n)}var p=[{url:m.j.url||""},{url:m.j.url?Sea(m.j.url):""}];f.j.push(5);f.B[5]=p;Lha(this.j,e,f,c)}catch(q){try{Lha(this.j,
e,{context:"ecmserr",rctx:a,msg:fr(q),url:m&&m.j.url},c)}catch(r){}}return this.mR};
g.w(er,Mha);var cr,dr,br=new $q;cr=new function(){var a="https:";Mp&&Mp.location&&"http:"===Mp.location.protocol&&(a="http:");this.B=a;this.j=.01};
dr=new Rha;Mp&&Mp.document&&("complete"==Mp.document.readyState?Tha():br.j&&Op(Mp,"load",function(){Tha()}));var Wha=Date.now(),mr=-1,kr=-1,lja,nr=-1,lr=!1;g.k=or.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new or(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof or?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};sr.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.C==a.C&&qr(this.j,a.j)&&!0};tr.prototype.Gb=function(){return this.S};
tr.prototype.equals=function(a,b){return this.D.equals(a.D,void 0===b?!1:b)&&this.S==a.S&&qr(this.C,a.C)&&qr(this.K,a.K)&&this.j==a.j&&this.G==a.G&&this.B==a.B&&this.ma==a.ma};var Mdb={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Qs={j3:"start",v0:"firstquartile",W2:"midpoint",m3:"thirdquartile",h0:"complete",ERROR:"error",V2:"metric",PAUSE:"pause",e3:"resume",f3:"skip",r3:"viewable_impression",Y2:"mute",q3:"unmute",w0:"fullscreen",u0:"exitfullscreen",f0:"bufferstart",e0:"bufferfinish",x0:"fully_viewable_audible_half_duration_impression",U2:"measurable_impression",V_:"abandon",t0:"engagedview",A0:"impression",k0:"creativeview",T2:"loaded",pXa:"progress",
CLOSE:"close",Woa:"collapse",aUa:"overlay_resize",bUa:"overlay_unmeasurable_impression",cUa:"overlay_unviewable_impression",eUa:"overlay_viewable_immediate_impression",dUa:"overlay_viewable_end_of_session_impression",m0:"custom_metric_viewable",ZSa:"verification_debug",Y_:"audio_audible",b0:"audio_measurable",Z_:"audio_impression"},vka="start firstquartile midpoint thirdquartile resume loaded".split(" "),wka=["start","firstquartile","midpoint","thirdquartile"],mja=["abandon"],kt={UNKNOWN:-1,j3:0,
v0:1,W2:2,m3:3,h0:4,V2:5,PAUSE:6,e3:7,f3:8,r3:9,Y2:10,q3:11,w0:12,u0:13,x0:14,U2:15,V_:16,t0:17,A0:18,k0:19,T2:20,m0:21,f0:22,e0:23,Z_:27,b0:28,Y_:29};var Yha={Rba:"addEventListener",LAa:"getMaxSize",MAa:"getScreenSize",NAa:"getState",OAa:"getVersion",LXa:"removeEventListener",uEa:"isViewable"};g.k=g.vr.prototype;g.k.clone=function(){return new g.vr(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.ue?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.k.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
g.k.getSize=function(){return new g.we(this.width,this.height)};
g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var bia={};kia.prototype.update=function(a){a&&a.document&&(this.S=ur(!1,a,this.isMobileDevice),this.j=ur(!0,a,this.isMobileDevice),mia(this,a),lia(this,a))};Rr.prototype.cancel=function(){cq().clearTimeout(this.j);this.j=null};
Rr.prototype.schedule=function(){var a=this,b=cq(),c=fq().j.j;this.j=b.setTimeout(eq(c,hr(143,function(){a.B++;a.C.sample()})),Xha())};g.k=Sr.prototype;g.k.PB=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.kz=function(){return this.j.Ja};
g.k.sD=function(){return this.j.qa};
g.k.fail=function(a,b){if(!this.qa||(void 0===b?0:b))this.qa=!0,this.Ja=a,this.ma=0,this.j!=this||Ur(this)};
g.k.getName=function(){return this.j.Va};
g.k.Ys=function(){return this.j.NV()};
g.k.NV=function(){return{}};
g.k.Gq=function(){return this.j.ma};
g.k.YS=function(){var a=Or();a.j=ur(!0,this.C,a.isMobileDevice)};
g.k.ZS=function(){lia(Or(),this.C)};
g.k.bW=function(){return this.D.j};
g.k.sample=function(){};
g.k.isActive=function(){return this.j.K};
g.k.vz=function(a){var b=this.j;this.j=a.Gq()>=this.ma?a:this;b!==this.j?(this.K=this.j.K,Ur(this)):this.K!==this.j.K&&(this.K=this.j.K,Ur(this))};
g.k.vt=function(a){if(a.B===this.j){var b=!this.D.equals(a,this.ea);this.D=a;b&&pia(this)}};
g.k.Qp=function(){return this.ea};
g.k.dispose=function(){this.Fa=!0};
g.k.isDisposed=function(){return this.Fa};g.k=Vr.prototype;g.k.WK=function(){return!0};
g.k.aG=function(){};
g.k.dispose=function(){if(!this.isDisposed()){var a=this.B;g.Fb(a.G,this);a.ea&&this.Qp()&&oia(a);this.aG();this.qa=!0}};
g.k.isDisposed=function(){return this.qa};
g.k.Ys=function(){return this.B.Ys()};
g.k.Gq=function(){return this.B.Gq()};
g.k.kz=function(){return this.B.kz()};
g.k.sD=function(){return this.B.sD()};
g.k.vz=function(){};
g.k.vt=function(){this.Fs()};
g.k.Qp=function(){return this.va};g.k=Wr.prototype;g.k.Gq=function(){return this.j.Gq()};
g.k.kz=function(){return this.j.kz()};
g.k.sD=function(){return this.j.sD()};
g.k.create=function(a,b,c){var d=null;this.j&&(d=this.bG(a,b,c),Tr(this.j,d));return d};
g.k.aT=function(){return this.QB()};
g.k.QB=function(){return!1};
g.k.init=function(a){return this.j.initialize()?(Tr(this.j,this),this.D=a,!0):!1};
g.k.vz=function(a){0==a.Gq()&&this.D(a.kz(),this)};
g.k.vt=function(){};
g.k.Qp=function(){return!1};
g.k.dispose=function(){this.G=!0};
g.k.isDisposed=function(){return this.G};
g.k.Ys=function(){return{}};Xr.prototype.add=function(a,b,c){++this.C;a=new qia(a,b,c);this.j.push(new qia(a.j,a.ge,a.B+this.C/4096));this.B=!0;return this};via.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Zr(this.j);0<b.length&&(a+="?"+b);return a};$r.prototype.update=function(a,b,c){a&&(this.j+=b,this.B+=b,this.D+=b,this.C=Math.max(this.C,this.D));if(void 0===c?!a:c)this.D=0};var Aia=[1,.75,.5,.3,0];as.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.B.length;e++){var h=this.B[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};gs.prototype.update=function(a,b,c,d){this.S=-1!=this.S?Math.min(this.S,b.Ge):b.Ge;this.va=Math.max(this.va,b.Ge);this.Ca=-1!=this.Ca?Math.min(this.Ca,b.qk):b.qk;this.Ja=Math.max(this.Ja,b.qk);this.kb.update(b.qk,c.qk,b.j,a,d);this.B.update(b.Ge,c.Ge,b.j,a,d);c=d||c.Tv!=b.Tv?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Va.update(c,a,b)};
gs.prototype.Tq=function(){return this.Va.C>=this.fb};if(Pr&&Pr.URL){var Ndb=Pr.URL,Odb;if(Odb=!!Ndb){var Pdb;a:{if(Ndb){var Qdb=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var A2=Qdb.exec(decodeURIComponent(Ndb));if(A2){Pdb=A2[1]&&1<A2[1].length?A2[1].substring(1):"true";break a}}catch(a){}}Pdb=""}Odb=0<Pdb.length}dr.mR=!Odb};var Rdb=new or(0,0,0,0);var Iia=new or(0,0,0,0);g.w(ls,g.J);g.k=ls.prototype;
g.k.Ba=function(){if(this.Nj.j){if(this.qv.aP){var a=this.Nj.j;a.removeEventListener&&a.removeEventListener("mouseover",this.qv.aP,Np());this.qv.aP=null}this.qv.ZO&&(a=this.Nj.j,a.removeEventListener&&a.removeEventListener("mouseout",this.qv.ZO,Np()),this.qv.ZO=null)}this.uF&&this.uF.dispose();this.ag&&this.ag.dispose();delete this.tI;delete this.OO;delete this.s_;delete this.Nj.Ot;delete this.Nj.j;delete this.qv;delete this.uF;delete this.ag;delete this.Mc;g.J.prototype.Ba.call(this)};
g.k.kt=function(){return this.ag?this.ag.j:this.position};
g.k.rQ=function(a){fq().rQ(a)};
g.k.Qp=function(){return!1};
g.k.DH=function(){return new gs};
g.k.lj=function(){return this.tI};
g.k.SV=function(a){return Mia(this,a,1E4)};
g.k.Sa=function(a,b,c,d,e,f,h){this.Ct||(this.HC&&(a=this.dM(a,c,e,h),d=d&&this.Qh.Ge>=(this.Tv()?.3:.5),this.QR(f,a,d),this.Bp=b,0<a.Ge&&-1===this.ZZ&&(this.ZZ=b),-1==this.e_&&this.Tq()&&(this.e_=b),-2==this.IO&&(this.IO=js(this.kt())?a.Ge:-1),this.Qh=a),this.OO(this))};
g.k.QR=function(a,b,c){this.lj().update(a,b,this.Qh,c)};
g.k.yN=function(){return new yp};
g.k.dM=function(a,b,c,d){c=this.yN();c.j=b;b=cq().B;b=0===Pp(Pr)?-1:b.isVisible()?0:1;c.B=b;c.Ge=this.tM(a);c.Tv=this.Tv();c.qk=d;return c};
g.k.tM=function(a){return 0===this.opacity&&1===Gp(this.Mc,"opac")?0:a};
g.k.Tv=function(){return!1};
g.k.ZJ=function(){return this.f6||this.k6};
g.k.pw=function(){jr()};
g.k.hA=function(){jr()};
g.k.ip=function(){return 0};
g.k.Tq=function(){return this.tI.Tq()};
g.k.dW=function(){var a=this.HC;a=(this.hasCompleted||this.isDisposed())&&!a;var b=2!==fq().B||this.naa;return this.Ct||b&&a?2:this.Tq()?4:3};
g.k.oH=function(){return 0};g.ns.prototype.next=function(){return g.B2};
g.B2={done:!0,value:void 0};g.ns.prototype.Bk=function(){return this};g.w(Sia,yp);var C2=Uia([void 0,1,2,3,4,8,16]),D2=Uia([void 0,4,8,16]),Sdb={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:rs("p0",D2),p1:rs("p1",D2),p2:rs("p2",D2),p3:rs("p3",D2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:qs("mtos1",[0,2,4],!1,D2),mtos2:qs("mtos2",[0,2,4],!1,D2),mtos3:qs("mtos3",[0,2,4],!1,D2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:rs("a0",D2),a1:rs("a1",D2),a2:rs("a2",D2),a3:rs("a3",D2),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",
vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:rs("c0",D2),c1:rs("c1",D2),c2:rs("c2",D2),c3:rs("c3",D2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:rs("qmtos",C2),qnc:rs("qnc",C2),qmv:rs("qmv",C2),qnv:rs("qnv",C2),
raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:rs("ss0",D2),ss1:rs("ss1",D2),ss2:rs("ss2",D2),ss3:rs("ss3",D2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia",
omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd"},Tdb=Object.assign({},Sdb,{avid:Jd("audio"),avas:"avas",vs:"vs"}),Udb={atos:"atos",avt:qs("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return void 0===c[a]&&void 0!==b?b:c[a]}}("ss",0),
t:"t"};ws.prototype.getValue=function(){return this.B};
ws.prototype.update=function(a,b){32<=a||(this.j&1<<a&&!b?this.B&=~(1<<a):this.j&1<<a||!b||(this.B|=1<<a),this.j|=1<<a)};g.w(Ds,gs);
Ds.prototype.update=function(a,b,c,d){if(!b.paused){gs.prototype.update.call(this,a,b,c,d);var e=ps(b)&&ps(c),f=.5<=(d?Math.min(b.Ge,c.Ge):c.Ge);Mr(b.volume)&&(this.D=-1!=this.D?Math.min(this.D,b.volume):b.volume,this.K=Math.max(this.K,b.volume));f&&(this.Fa+=a,this.ea+=e?a:0);this.j.update(b.Ge,c.Ge,b.j,a,d,e);this.C.update(!0,a);this.G.update(e,a);this.qa.update(c.fullscreen,a);this.rb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Oa.update(a,b.isVisible());this.eb.update(a,1<=b.Ge);this.Ya.update(a,
ps(b))}};$ia.prototype.B=function(a){this.C||(this.j(a)?(a=jka(this.ea,this.D,a),this.G|=a,a=0==a):a=!1,this.C=a)};g.w(Fs,$ia);Fs.prototype.j=function(){return!0};
Fs.prototype.K=function(){return!1};
Fs.prototype.getId=function(){var a=this,b=id(Qs,function(c){return c==a.D});
return kt[b].toString()};
Fs.prototype.toString=function(){var a="";this.K()&&(a+="c");this.C&&(a+="s");0<this.G&&(a+=":"+this.G);return this.getId()+a};g.w(Gs,Fs);Gs.prototype.B=function(a,b){b=void 0===b?null:b;null!=b&&this.S.push(b);Fs.prototype.B.call(this,a)};g.w(Hs,aja);Hs.prototype.B=function(){return null};
Hs.prototype.C=function(){return[]};g.w(Is,Vr);g.k=Is.prototype;g.k.hM=function(){if(this.element){var a=this.element,b=this.B.j.C;try{try{var c=hia(a.getBoundingClientRect())}catch(n){c=new or(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=eia(a,b),h=f.x,l=f.y;var m=new or(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=Rdb.clone()}this.j=m}};
g.k.KU=function(){this.D=this.B.D.j};
g.k.XW=function(a){var b=1==Gp(this.Mc,"od");return Hia(a,this.D,this.element,b)};
g.k.LU=function(){this.timestamp=jr()};
g.k.Fs=function(){this.LU();this.hM();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.we(a.videoWidth,a.videoHeight);a=this.j;var c=pr(a),d=a.getHeight(),e=b.width;b=b.height;0>=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0<d&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),0<c&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.j=a}this.KU();
a=this.j;c=this.D;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new or(Math.max(a.top,c.top),Math.min(a.right,c.right),Math.min(a.bottom,c.bottom),Math.max(a.left,c.left)):new or(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new or(0,0,0,0):a;a=this.B.D;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.XW(c)?c=new or(0,0,0,0):(d=Or().D,b=new or(0,d.height,d.width,0),d=ks(c,this.j),e=ks(c,Or().j),b=ks(c,b)));c=c.top>=c.bottom||c.left>=c.right?new or(0,0,0,
0):rr(c,-this.j.left,-this.j.top);Qr()||(e=d=0);this.S=new tr(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.B.getName()};var Vdb=new or(0,0,0,0);g.w(Js,Is);g.k=Js.prototype;g.k.WK=function(){this.C();return!0};
g.k.vt=function(){Is.prototype.Fs.call(this)};
g.k.LU=function(){};
g.k.hM=function(){};
g.k.Fs=function(){this.C();Is.prototype.Fs.call(this)};
g.k.vz=function(a){a=a.isActive();a!==this.K&&(a?this.C():(Or().j=new or(0,0,0,0),this.j=new or(0,0,0,0),this.D=new or(0,0,0,0),this.timestamp=-1));this.K=a};var E2={},kja=(E2.firstquartile=0,E2.midpoint=1,E2.thirdquartile=2,E2.complete=3,E2);g.w(Ls,ls);g.k=Ls.prototype;g.k.Qp=function(){return!0};
g.k.In=function(){return 2==this.bk};
g.k.SV=function(a){return Mia(this,a,Math.max(1E4,this.C/3))};
g.k.Sa=function(a,b,c,d,e,f,h){var l=this,m=this.S(this)||{};g.sd(m,e);this.C=m.duration||this.C;this.ea=m.isVpaid||this.ea;this.Pa=m.isYouTube||this.Pa;cq();this.rb=!1;e=cja(this,b);1===bja(this)&&(f=e);ls.prototype.Sa.call(this,a,b,c,d,m,f,h);this.Zq&&this.Zq.C&&g.Yb(this.K,function(n){n.B(l)})};
g.k.QR=function(a,b,c){ls.prototype.QR.call(this,a,b,c);Os(this).update(a,b,this.Qh,c);this.kb=ps(this.Qh)&&ps(b);-1==this.Ja&&this.fb&&(this.Ja=this.lj().C.j);this.Vg.C=0;a=this.Tq();b.isVisible()&&vs(this.Vg,"vs");a&&vs(this.Vg,"vw");Mr(b.volume)&&vs(this.Vg,"am");ps(b)?vs(this.Vg,"a"):vs(this.Vg,"mut");this.Ez&&vs(this.Vg,"f");-1!=b.B&&(vs(this.Vg,"bm"),1==b.B&&(vs(this.Vg,"b"),ps(b)&&vs(this.Vg,"umutb")));ps(b)&&b.isVisible()&&vs(this.Vg,"avs");this.kb&&a&&vs(this.Vg,"avw");0<b.Ge&&vs(this.Vg,
"pv");Ps(this,this.lj().C.j,!0)&&vs(this.Vg,"gdr");2E3<=es(this.lj().B,1)&&vs(this.Vg,"pmx");this.rb&&vs(this.Vg,"tvoff")};
g.k.DH=function(){return new Ds};
g.k.lj=function(){return this.tI};
g.k.yN=function(){return new Sia};
g.k.dM=function(a,b,c,d){a=ls.prototype.dM.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Ez;a.paused=this.In();a.volume=c.volume;Mr(a.volume)||(this.Cb++,b=this.Qh,Mr(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.tM=function(a){return Or(),this.Ez?1:ls.prototype.tM.call(this,a)};
g.k.ip=function(){return 1};
g.k.getDuration=function(){return this.C};
g.k.dW=function(){return this.Ct?2:eja(this)?5:this.Tq()?4:3};
g.k.oH=function(){return this.xb?2E3<=this.lj().G.C?4:3:2};var Wdb=g.eb();uja.prototype.reset=function(){this.j=[];this.B=[]};
var Vs=aq(uja);g.w(Ys,Wr);g.k=Ys.prototype;g.k.getName=function(){return(this.B?this.B:this.j).getName()};
g.k.Ys=function(){return(this.B?this.B:this.j).Ys()};
g.k.Gq=function(){return(this.B?this.B:this.j).Gq()};
g.k.init=function(a){var b=!1;(0,g.Yb)(this.C,function(c){c.initialize()&&(b=!0)});
b&&(this.D=a,Tr(this.j,this));return b};
g.k.dispose=function(){(0,g.Yb)(this.C,function(a){a.dispose()});
Wr.prototype.dispose.call(this)};
g.k.aT=function(){return Nr(this.C,function(a){return a.PB()})};
g.k.QB=function(){return Nr(this.C,function(a){return a.PB()})};
g.k.bG=function(a,b,c){return new Is(a,this.j,b,c)};
g.k.vt=function(a){this.B=a.B};var Dja={threshold:[0,.3,.5,.75,1]};g.w(Zs,Is);g.k=Zs.prototype;g.k.WK=function(){var a=this;this.ea||(this.ea=jr());if(Vha(298,function(){return Eja(a)}))return!0;
this.B.fail("msf");return!1};
g.k.aG=function(){if(this.C&&this.element)try{this.C.unobserve(this.element),this.K?(this.K.unobserve(this.element),this.K=null):this.G&&(this.G.disconnect(),this.G=null)}catch(a){}};
g.k.Fs=function(){var a=$s(this);0<a.length&&at(this,a);Is.prototype.Fs.call(this)};
g.k.hM=function(){};
g.k.XW=function(){return!1};
g.k.KU=function(){};
g.k.Ys=function(){var a={};return Object.assign(this.B.Ys(),(a.niot_obs=this.ea,a.niot_cbk=this.ma,a))};
g.k.getName=function(){return"nio"};g.w(bt,Wr);bt.prototype.getName=function(){return"nio"};
bt.prototype.QB=function(){return!Or().B&&null!=this.j.j.C.IntersectionObserver};
bt.prototype.bG=function(a,b,c){return new Zs(a,this.j,b,c)};g.w(ct,Sr);ct.prototype.bW=function(){return Or().j};
ct.prototype.PB=function(){var a=Gja();this.ma!==a&&(this.j!=this&&a>this.j.ma&&(this.j=this,Ur(this)),this.ma=a);return 2==a};dt.prototype.sample=function(){gt(this,Ws(),!1)};
dt.prototype.D=function(){var a=Qr(),b=jr();a?(lr||(mr=b,g.Yb(Vs.j,function(c){var d=c.lj();d.Pa=Es(d,b,1!=c.bk)})),lr=!0):(this.S=Lja(this,b),lr=!1,lja=b,g.Yb(Vs.j,function(c){c.HC&&(c.lj().ma=b)}));
gt(this,Ws(),!a)};
var et=aq(dt);var Nja=null,Gt="",Ft=!1;var Qja=Pja().Uo,jt=Pja().Yo;var Tja={yya:"visible",Xka:"audible",f5a:"time",i5a:"timetype"},Uja={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},
audible:function(a){return"0"==a||"1"==a},
timetype:function(a){return"mtos"==a||"tos"==a},
time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};
Sja.prototype.setTime=function(a,b,c){"ms"==b?(this.C=a,this.D=-1):(this.C=-1,this.D=a);this.G=void 0===c?"tos":c;return this};g.w(nt,Fs);nt.prototype.getId=function(){return this.S};
nt.prototype.K=function(){return!0};
nt.prototype.j=function(a){var b=a.lj(),c=a.getDuration();return Nr(this.ma,function(d){if(void 0!=d.j)var e=Wja(d,b);else b:{switch(d.G){case "mtos":e=d.B?b.G.C:b.C.j;break b;case "tos":e=d.B?b.G.j:b.C.j;break b}e=0}0==e?d=!1:(d=-1!=d.C?d.C:void 0!==c&&0<c?d.D*c:-1,d=-1!=d&&e>=d);return d})};g.w(ot,Wia);ot.prototype.j=function(a){var b=new Via;b.j=us(a,Sdb);b.B=us(a,Udb);return b};g.w(pt,Fs);pt.prototype.j=function(a){return eja(a)};g.w(qt,aja);g.w(rt,Fs);rt.prototype.j=function(a){return a.lj().Tq()};g.w(tt,Gs);tt.prototype.j=function(a){var b=g.Db(this.S,Gp(fq().Mc,"ovms"));return!a.Ct&&(0!=a.bk||b)};g.w(ut,qt);ut.prototype.B=function(){return new tt(this.j)};
ut.prototype.C=function(){return[new rt("viewable_impression",this.j),new pt(this.j)]};g.w(vt,Js);vt.prototype.C=function(){var a=g.Ta("ima.admob.getViewability"),b=Gp(this.Mc,"queryid");"function"===typeof a&&b&&a(b)};
vt.prototype.getName=function(){return"gsv"};g.w(wt,Wr);wt.prototype.getName=function(){return"gsv"};
wt.prototype.QB=function(){var a=Or();fq();return a.B&&!1};
wt.prototype.bG=function(a,b,c){return new vt(this.j,b,c)};g.w(xt,Js);xt.prototype.C=function(){var a=this,b=g.Ta("ima.bridge.getNativeViewability"),c=Gp(this.Mc,"queryid");"function"===typeof b&&c&&b(c,function(d){g.jd(d)&&a.G++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=iia(d.opt_nativeViewBounds||{});var h=a.B.D;h.j=f?Vdb.clone():iia(e);a.timestamp=d.opt_nativeTime||-1;Or().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
xt.prototype.getName=function(){return"nis"};g.w(zt,Wr);zt.prototype.getName=function(){return"nis"};
zt.prototype.QB=function(){var a=Or();fq();return a.B&&!1};
zt.prototype.bG=function(a,b,c){return new xt(this.j,b,c)};g.w(At,Sr);g.k=At.prototype;g.k.PB=function(){return null!=this.B.Mn};
g.k.NV=function(){var a={};this.Oa&&(a.mraid=this.Oa);this.Ca&&(a.mlc=1);a.mtop=this.B.O$;this.S&&(a.mse=this.S);this.Pa&&(a.msc=1);a.mcp=this.B.compatibility;return a};
g.k.ju=function(a){var b=g.Ja.apply(1,arguments);try{return this.B.Mn[a].apply(this.B.Mn,b)}catch(c){ir(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.sD();this.isInitialized=!0;if(2===this.B.compatibility)return this.S="ng",this.fail("w"),!1;if(1===this.B.compatibility)return this.S="mm",this.fail("w"),!1;Or().ma=!0;this.C.document.readyState&&"complete"==this.C.document.readyState?$ja(this):is(this.C,"load",function(){cq().setTimeout(hr(292,function(){return $ja(a)}),100)},292);
return!0};
g.k.YS=function(){var a=Or(),b=eka(this,"getMaxSize");a.j=new or(0,b.width,b.height,0)};
g.k.ZS=function(){Or().D=eka(this,"getScreenSize")};
g.k.dispose=function(){bka(this);Sr.prototype.dispose.call(this)};var Fha=new function(a,b){this.key=a;this.defaultValue=void 0===b?!1:b;this.valueType="boolean"}("45378663");g.k=Ct.prototype;g.k.TG=function(a){ms(a,!1);yja(a)};
g.k.IH=function(){};
g.k.UE=function(a,b,c,d){var e=this;a=new Ls(Mp,a,c?b:-1,7,this.BM(),this.bV());a.Zi=d;aha(a.Mc);Fp(a.Mc,"queryid",a.Zi);a.rQ("");Pia(a,function(){return e.kW.apply(e,g.pa(g.Ja.apply(0,arguments)))},function(){return e.D5.apply(e,g.pa(g.Ja.apply(0,arguments)))});
(d=aq(Xs).j)&&Lia(a,d);a.Nj.Ot&&aq(Hja);return a};
g.k.vz=function(a){switch(a.Gq()){case 0:if(a=aq(Xs).j)a=a.j,g.Fb(a.G,this),a.ea&&this.Qp()&&oia(a);Et();break;case 2:ft()}};
g.k.vt=function(){};
g.k.Qp=function(){return!1};
g.k.D5=function(a,b){a.Ct=!0;switch(a.ip()){case 1:kka(a,b);break;case 2:this.FQ(a)}};
g.k.M5=function(a){var b=a.S(a);b&&(b=b.volume,a.xb=Mr(b)&&0<b);hja(a,0);return Rs(a,"start",Qr())};
g.k.lB=function(a,b,c){gt(et,[a],!Qr());return this.jp(a,b,c)};
g.k.jp=function(a,b,c){return Rs(a,c,Qr())};
g.k.H5=function(a){return Kt(a,"firstquartile",1)};
g.k.J5=function(a){a.fb=!0;return Kt(a,"midpoint",2)};
g.k.N5=function(a){return Kt(a,"thirdquartile",3)};
g.k.E5=function(a){var b=Kt(a,"complete",4);Ms(a);return b};
g.k.F5=function(a){a.bk=3;return Rs(a,"error",Qr())};
g.k.iZ=function(a,b,c){b=Qr();if(a.In()&&!b){var d=jr();a.lj().ma=d}gt(et,[a],!b);a.In()&&(a.bk=1);return Rs(a,c,b)};
g.k.L5=function(a,b){b=this.lB(a,b||{},"skip");Ms(a);return b};
g.k.I5=function(a,b){ms(a,!0);return this.lB(a,b||{},"fullscreen")};
g.k.G5=function(a,b){ms(a,!1);return this.lB(a,b||{},"exitfullscreen")};
g.k.cQ=function(a,b,c){b=a.lj();var d=jr();b.Pa=Es(b,d,1!=a.bk);gt(et,[a],!Qr());1==a.bk&&(a.bk=2);return Rs(a,c,Qr())};
g.k.K5=function(a){gt(et,[a],!Qr());return a.B()};
g.k.QN=function(a){gt(et,[a],!Qr());this.cZ(a);Ms(a);return a.B()};
g.k.kW=function(){};
g.k.FQ=function(){};
g.k.cZ=function(){};
g.k.bT=function(){};
g.k.CM=function(){};
g.k.bV=function(){this.j||(this.j=this.CM());return null==this.j?new Hs:new ut(this.j)};
g.k.BM=function(){return new ot};g.w(Lt,Fs);Lt.prototype.j=function(a){return 4==a.oH()};g.w(Mt,Gs);Mt.prototype.j=function(a){a=a.oH();return 3==a||4==a};g.w(Nt,qt);Nt.prototype.B=function(){return new Mt(this.j)};
Nt.prototype.C=function(){return[new Lt(this.j)]};g.w(Ot,Wia);Ot.prototype.j=function(a){a&&(28===a.e&&(a=Object.assign({},a,{avas:3})),4===a.vs||5===a.vs)&&(a=Object.assign({},a,{vs:3}));var b=new Via;b.j=us(a,Tdb);b.B=us(a,Udb);return b};oka.prototype.B=function(){return g.Ta(this.j)};g.w(Pt,Ct);g.k=Pt.prototype;g.k.IH=function(a,b){var c=this,d=aq(Xs);if(null!=d.j)switch(d.j.getName()){case "nis":var e=ska(this,a,b);break;case "gsv":e=rka(this,a,b);break;case "exc":e=tka(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=mka(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.ip()&&(e.S==g.Ld&&(e.S=function(f){return c.bT(f)}),qka(this,e,b));
return e};
g.k.bT=function(a){a.B=0;a.Fa=0;if("h"==a.D||"n"==a.D){fq();a.eb&&(fq(),"h"!=It(this)&&It(this));var b=g.Ta("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Zi)}catch(e){a.B|=4}else a.B|=2}else if("b"==a.D)if(b=g.Ta("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Zi)}catch(e){a.B|=4}else a.B|=2;else if("ml"==a.D)if(b=g.Ta("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Zi)}catch(e){a.B|=4}else a.B|=2;else a.B|=1;a.B||(void 0===c?a.B|=8:null===
c?a.B|=16:g.jd(c)?a.B|=32:null!=c.errorCode&&(a.Fa=c.errorCode,a.B|=64));null==c&&(c={});b=c;a.ma=0;for(var d in Mdb)null==b[d]&&(a.ma|=Mdb[d]);nka(b,"currentTime");nka(b,"duration");Mr(c.volume)&&Mr()&&(c.volume*=NaN);return c};
g.k.CM=function(){fq();"h"!=It(this)&&It(this);var a=uka(this);return null!=a?new oka(a):null};
g.k.FQ=function(a){!a.j&&a.Ct&&Jt(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.k.cZ=function(a){a.FZ&&(a.Tq()?Jt(this,a,"overlay_viewable_end_of_session_impression"):Jt(this,a,"overlay_unviewable_impression"),a.FZ=!1)};
g.k.kW=function(){};
g.k.UE=function(a,b,c,d){if(Gha()){var e=Gp(fq().Mc,"mm"),f={};(e=(f[gq.X_]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[gq.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&yka(this,e);"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"===this.C&&ir(1044,Error())}a=Ct.prototype.UE.call(this,a,b,c,d);this.D&&(b=this.G,null==a.G&&(a.G=new Qia),b.j[a.Zi]=a.G,a.G.G=Wdb);return a};
g.k.TG=function(a){a&&1==a.ip()&&this.D&&delete this.G.j[a.Zi];return Ct.prototype.TG.call(this,a)};
g.k.bV=function(){this.j||(this.j=this.CM());return null==this.j?new Hs:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new Nt(this.j):new ut(this.j)};
g.k.BM=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new Ot:new ot};
var Xdb=gr(193,Aka,void 0,lka);g.Sa("Goog_AdSense_Lidar_sendVastEvent",Xdb);var Ydb=hr(194,function(a,b){b=void 0===b?{}:b;a=xka(aq(Pt),a,b);return zka(a)});
g.Sa("Goog_AdSense_Lidar_getViewability",Ydb);var Zdb=gr(195,function(){return Aha()});
g.Sa("Goog_AdSense_Lidar_getUrlSignalsArray",Zdb);var $db=hr(196,function(){return JSON.stringify(Aha())});
g.Sa("Goog_AdSense_Lidar_getUrlSignalsList",$db);var UJa={QYa:0,NYa:1,KYa:2,LYa:3,MYa:4,PYa:5,OYa:6};var $ma=(new Date).getTime();var Cka="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),Dka=/\bocr\b/;var Fka=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;"undefined"!==typeof TextDecoder&&new TextDecoder;var aeb="undefined"!==typeof TextEncoder?new TextEncoder:null,Bqa=aeb?function(a){return aeb.encode(a)}:function(a){a=g.lg(a);
for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};g.w(St,g.Gd);St.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Jn.Lj(this.G);delete St.instance};
St.prototype.Oh=function(){return this.j};
St.prototype.Df=function(){var a=this;this.G=this.Jn.Ii(function(){var b;return g.H(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Ma(3):g.z(c,Rt(a),3):g.z(c,Rt(a),3);a.Df();g.ya(c)})},3E4)};Ut.prototype.set=function(a,b){b=void 0===b?!0:b;Number.isInteger(a);0<=a&&52>a&&Number.isInteger(a)&&this.data[a]!==b&&(this.data[a]=b,this.j=-1)};
Ut.prototype.get=function(a){return!!this.data[a]};var Wt;g.gb(g.Zt,g.J);g.k=g.Zt.prototype;g.k.start=function(){this.stop();this.D=!1;var a=Ika(this),b=Jka(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.j=g.yd(this.B,"MozBeforePaint",this.C),this.B.mozRequestAnimationFrame(null),this.D=!0):this.j=a&&b?a.call(this.B,this.C):this.B.setTimeout(nba(this.C),20)};
g.k.stop=function(){if(this.isActive()){var a=Ika(this),b=Jka(this);a&&!b&&this.B.mozRequestAnimationFrame?Cd(this.j):a&&b?b.call(this.B,this.j):this.B.clearTimeout(this.j)}this.j=null};
g.k.isActive=function(){return null!=this.j};
g.k.R1=function(){this.D&&this.j&&Cd(this.j);this.j=null;this.K.call(this.G,g.eb())};
g.k.Ba=function(){this.stop();g.Zt.Rf.Ba.call(this)};g.gb(g.au,g.J);g.k=g.au.prototype;g.k.RB=0;g.k.Ba=function(){g.au.Rf.Ba.call(this);this.stop();delete this.j;delete this.B};
g.k.start=function(a){this.stop();this.RB=g.hg(this.C,void 0!==a?a:this.Ti)};
g.k.stop=function(){this.isActive()&&g.Qa.clearTimeout(this.RB);this.RB=0};
g.k.isActive=function(){return 0!=this.RB};
g.k.cT=function(){this.RB=0;this.j&&this.j.call(this.B)};eu.prototype[Symbol.iterator]=function(){return this};
eu.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.B.call(void 0,a.value),done:a.done}};nu.prototype.Bk=function(){return new ou(this.B())};
nu.prototype[Symbol.iterator]=function(){return new pu(this.B())};
nu.prototype.j=function(){return new pu(this.B())};
g.w(ou,g.ns);ou.prototype.next=function(){return this.B.next()};
ou.prototype[Symbol.iterator]=function(){return new pu(this.B)};
ou.prototype.j=function(){return new pu(this.B)};
g.w(pu,nu);pu.prototype.next=function(){return this.C.next()};g.k=g.ru.prototype;g.k.tm=function(){uu(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.B[this.j[b]]);return a};
g.k.hp=function(){uu(this);return this.j.concat()};
g.k.has=function(a){return tu(this.B,a)};
g.k.equals=function(a,b){if(this===a)return!0;if(this.size!=a.size)return!1;b=b||Nka;uu(this);for(var c,d=0;c=this.j[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
g.k.isEmpty=function(){return 0==this.size};
g.k.clear=function(){this.B={};this.Eu=this.size=this.j.length=0};
g.k.remove=function(a){return this.delete(a)};
g.k.delete=function(a){return tu(this.B,a)?(delete this.B[a],--this.size,this.Eu++,this.j.length>2*this.size&&uu(this),!0):!1};
g.k.get=function(a,b){return tu(this.B,a)?this.B[a]:b};
g.k.set=function(a,b){tu(this.B,a)||(this.size+=1,this.j.push(a),this.Eu++);this.B[a]=b};
g.k.forEach=function(a,b){for(var c=this.hp(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.k.clone=function(){return new g.ru(this)};
g.k.transpose=function(){for(var a=new g.ru,b=0;b<this.j.length;b++){var c=this.j[b];a.set(this.B[c],c)}return a};
g.k.keys=function(){return qu(this.Bk(!0)).j()};
g.k.values=function(){return qu(this.Bk(!1)).j()};
g.k.entries=function(){var a=this;return Kka(this.keys(),function(b){return[b,a.get(b)]})};
g.k.Bk=function(a){uu(this);var b=0,c=this.Eu,d=this,e=new g.ns;e.next=function(){if(c!=d.Eu)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)return g.B2;var f=d.j[b++];return g.os(a?f:d.B[f])};
return e};g.gb(g.vu,g.Gd);g.k=g.vu.prototype;g.k.isPlaying=function(){return 1==this.j};
g.k.isPaused=function(){return-1==this.j};
g.k.MI=function(){this.lm("begin")};
g.k.jr=function(){this.lm("end")};
g.k.onFinish=function(){this.lm("finish")};
g.k.lm=function(a){this.dispatchEvent(a)};var beb=Md(function(){if(g.bf)return!0;var a=g.lf("DIV"),b=g.Pc?"-webkit":zr?"-moz":g.bf?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!Qcb.test("div"))throw Error("");if("DIV"in Scb)throw Error("");b=void 0;var d="";if(c)for(h in c)if(Object.prototype.hasOwnProperty.call(c,h)){if(!Qcb.test(h))throw Error("");var e=c[h];if(null!=e){var f=h;if(e instanceof g.Qd)e=g.Rd(e);else if("style"==f.toLowerCase()){if(!g.Xa(e))throw Error("");e instanceof
g.ee||(e=Dba(e));e=fe(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in Rcb)if(e instanceof g.Xd)e=g.Yd(e).toString();else if(e instanceof g.$d)e=g.ae(e);else if("string"===typeof e)e=(g.ce(e)||g.ie).Ok();else throw Error("");}e.zn&&(e=e.Ok());f=f+'="'+fc(String(e))+'"';d+=" "+f}}var h="<div"+d;null==b?b=[]:Array.isArray(b)||(b=[b]);!0===Ocb.div?h+=">":(b=Nba(b),h+=">"+g.ke(b).toString()+"</div>");h=g.le(h);g.Rba(a,h);return""!=g.Ar(a.firstChild,"transition")});g.gb(wu,g.vu);g.k=wu.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.MI();this.lm("play");this.startTime=g.eb();this.j=1;if(beb())return g.yr(this.B,this.K),this.C=g.hg(this.M9,void 0,this),!0;this.XK(!1);return!1};
g.k.M9=function(){g.Jr(this.B);Oka(this.B,this.S);g.yr(this.B,this.D);this.C=g.hg((0,g.cb)(this.XK,this,!1),1E3*this.G)};
g.k.stop=function(){this.isPlaying()&&this.XK(!0)};
g.k.XK=function(a){g.yr(this.B,"transition","");g.Qa.clearTimeout(this.C);g.yr(this.B,this.D);this.endTime=g.eb();this.j=0;if(a)this.lm("stop");else this.onFinish();this.jr()};
g.k.Ba=function(){this.stop();wu.Rf.Ba.call(this)};
g.k.pause=function(){};var Qka={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};xu("Element","attributes")||xu("Node","attributes");xu("Element","innerHTML")||xu("HTMLElement","innerHTML");xu("Node","nodeName");xu("Node","nodeType");xu("Node","parentNode");xu("Node","childNodes");xu("HTMLElement","style")||xu("Element","style");xu("HTMLStyleElement","sheet");var Wka=Ska("getPropertyValue"),Xka=Ska("setProperty");xu("Element","namespaceURI")||xu("Node","namespaceURI");var Vka={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var ala,rcb,$ka,Zka,bla;ala=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");rcb=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.ceb=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");
g.Bu=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");$ka=/^http:\/\/.*/;g.deb=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Zka=/\s+/;bla=/[\d\u06f0-\u06f9]/;Du.prototype.clone=function(){return new Du(this.j,this.C,this.x1,this.y1,this.x2,this.y2,this.B,this.D)};
Du.prototype.equals=function(a){return this.j==a.j&&this.C==a.C&&this.x1==a.x1&&this.y1==a.y1&&this.x2==a.x2&&this.y2==a.y2&&this.B==a.B&&this.D==a.D};Fu.prototype.clone=function(){return new Fu(this.start,this.end)};(function(){if(G$a){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.mc()))?a[1]:"0"}return dZ?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.mc()))?a[0].replace(/_/g,"."):"10"):g.HC?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.mc()))?a[1]:""):Ecb||Fcb||Gcb?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.mc()))?a[1].replace(/_/g,"."):""):""})();var ela=function(){if(g.FR)return Gu(/Firefox\/([0-9.]+)/);if(g.bf||g.dE||g.dS)return Lc;if(g.sL){if(Hc()||Ic()){var a=Gu(/CriOS\/([0-9.]+)/);if(a)return a}return Gu(/Chrome\/([0-9.]+)/)}if(g.ID&&!Hc())return Gu(/Version\/([0-9.]+)/);if(EC||FC){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.mc()))return a[1]+"."+a[2]}else if(g.COa)return(a=Gu(/Android\s+([0-9.]+)/))?a:Gu(/Version\/([0-9.]+)/);return""}();g.gb(g.Iu,g.J);g.k=g.Iu.prototype;g.k.subscribe=function(a,b,c){var d=this.B[a];d||(d=this.B[a]=[]);var e=this.K;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.K=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.B[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Wh(a)}return!1};
g.k.Wh=function(a){var b=this.j[a];if(b){var c=this.B[b];0!=this.D?(this.C.push(a),this.j[a+1]=function(){}):(c&&g.Fb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
g.k.ra=function(a,b){var c=this.B[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.S)for(e=0;e<c.length;e++){var h=c[e];fla(this.j[h+1],this.j[h+2],d)}else{this.D++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)h=c[e],this.j[h+1].apply(this.j[h+2],d)}finally{if(this.D--,0<this.C.length&&0==this.D)for(;c=this.C.pop();)this.Wh(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.B[a];b&&(b.forEach(this.Wh,this),delete this.B[a])}else this.j.length=0,this.B={}};
g.k.Ba=function(){g.Iu.Rf.Ba.call(this);this.clear();this.C.length=0};g.Ju.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.rm(b))};
g.Ju.prototype.get=function(a){try{var b=this.j.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.Ju.prototype.remove=function(a){this.j.remove(a)};g.gb(Ku,g.Ju);Ku.prototype.set=function(a,b){Ku.Rf.set.call(this,a,hla(b))};
Ku.prototype.B=function(a){a=Ku.Rf.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Ku.prototype.get=function(a){if(a=this.B(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.gb(Lu,Ku);Lu.prototype.set=function(a,b,c){if(b=hla(b)){if(c){if(c<g.eb()){Lu.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.eb()}Lu.Rf.set.call(this,a,b)};
Lu.prototype.B=function(a,b){var c=Lu.Rf.B.call(this,a);if(c)if(!b&&g.ila(c))Lu.prototype.remove.call(this,a);else return c};g.gb(g.Mu,Lu);g.gb(Nu,jla);Nu.prototype[Symbol.iterator]=function(){return qu(this.Bk(!0)).j()};
Nu.prototype.clear=function(){var a=Array.from(this);a=g.u(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.gb(Ou,Nu);g.k=Ou.prototype;g.k.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};
g.k.set=function(a,b){try{this.j.setItem(a,b)}catch(c){if(0==this.j.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.k.get=function(a){a=this.j.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeItem(a)};
g.k.Bk=function(a){var b=0,c=this.j,d=new g.ns;d.next=function(){if(b>=c.length)return g.B2;var e=c.key(b++);if(a)return g.os(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.os(e)};
return d};
g.k.clear=function(){this.j.clear()};
g.k.key=function(a){return this.j.key(a)};g.gb(Pu,Ou);g.gb(kla,Ou);g.gb(Ru,Nu);var lla={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Qu=null;g.k=Ru.prototype;g.k.isAvailable=function(){return!!this.j};
g.k.set=function(a,b){this.j.setAttribute(Su(a),b);Tu(this)};
g.k.get=function(a){a=this.j.getAttribute(Su(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeAttribute(Su(a));Tu(this)};
g.k.Bk=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.ns;d.next=function(){if(b>=c.length)return g.B2;var e=c[b++];if(a)return g.os(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.os(e)};
return d};
g.k.clear=function(){for(var a=this.j.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);Tu(this)};g.gb(Uu,Nu);Uu.prototype.set=function(a,b){this.B.set(this.j+a,b)};
Uu.prototype.get=function(a){return this.B.get(this.j+a)};
Uu.prototype.remove=function(a){this.B.remove(this.j+a)};
Uu.prototype.Bk=function(a){var b=this.B[Symbol.iterator](),c=this,d=new g.ns;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.j.length)!=c.j;){e=b.next();if(e.done)return e;e=e.value}return g.os(a?e.slice(c.j.length):c.B.get(e))};
return d};Wu.prototype.getKey=function(){return this.j};
Wu.prototype.getValue=function(){return this.ge};
Wu.prototype.clone=function(){return new Wu(this.j,this.ge)};g.k=Xu.prototype;g.k.Ch=function(a,b){var c=this.j;c.push(new Wu(a,b));a=c.length-1;b=this.j;for(c=b[a];0<a;){var d=a-1>>1;if(b[d].getKey()>c.getKey())b[a]=b[d],a=d;else break}b[a]=c};
g.k.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)a.length=0;else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,h=2*a+2;f=h<d&&b[h].getKey()<b[f].getKey()?h:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.tm=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.hp=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.k.clone=function(){return new Xu(this)};
g.k.isEmpty=function(){return 0===this.j.length};
g.k.clear=function(){this.j.length=0};g.w(mla,Xu);g.Yu.ih=void 0;g.Yu.getInstance=function(){return g.Yu.ih?g.Yu.ih:g.Yu.ih=new g.Yu};
g.Yu.prototype.j=0;var Zu={},eeb="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;Zu.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!==typeof c)throw new TypeError(c+"must be non-object");for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}}return a};
Zu.lR=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
var feb={Dy:function(a,b,c,d,e){if(b.subarray&&a.subarray)a.set(b.subarray(c,c+d),e);else for(var f=0;f<d;f++)a[e+f]=b[c+f]},
BV:function(a){var b,c;var d=c=0;for(b=a.length;d<b;d++)c+=a[d].length;var e=new Uint8Array(c);d=c=0;for(b=a.length;d<b;d++){var f=a[d];e.set(f,c);c+=f.length}return e}},geb={Dy:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},
BV:function(a){return[].concat.apply([],a)}};
Zu.I$=function(){eeb?(Zu.tx=Uint8Array,Zu.Zp=Uint16Array,Zu.g0=Int32Array,Zu.assign(Zu,feb)):(Zu.tx=Array,Zu.Zp=Array,Zu.g0=Array,Zu.assign(Zu,geb))};
Zu.I$();var heb=!0;try{new Uint8Array(1)}catch(a){heb=!1};var yv={};yv=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;0!==c;){f=2E3<c?2E3:c;c-=f;do e=e+b[d++]|0,a=a+e|0;while(--f);e%=65521;a%=65521}return e|a<<16|0};for(var zv={},F2,ieb=[],G2=0;256>G2;G2++){F2=G2;for(var jeb=0;8>jeb;jeb++)F2=F2&1?3988292384^F2>>>1:F2>>>1;ieb[G2]=F2}zv=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^ieb[(a^b[d])&255];return a^-1};var ov={};ov={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};var hv=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],kv=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Jla=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],yla=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],tv=Array(576);$u(tv);var uv=Array(60);$u(uv);var jv=Array(512);$u(jv);var gv=Array(256);$u(gv);var iv=Array(29);$u(iv);var lv=Array(30);$u(lv);var Gla,Hla,Ila,Fla=!1;var Ev;Ev=[new Dv(0,0,0,0,function(a,b){var c=65535;for(c>a.Dm-5&&(c=a.Dm-5);;){if(1>=a.qc){Av(a);if(0===a.qc&&0===b)return 1;if(0===a.qc)break}a.Jb+=a.qc;a.qc=0;var d=a.Gk+c;if(0===a.Jb||a.Jb>=d)if(a.qc=a.Jb-d,a.Jb=d,vv(a,!1),0===a.Be.Pe)return 1;if(a.Jb-a.Gk>=a.dj-262&&(vv(a,!1),0===a.Be.Pe))return 1}a.Ch=0;if(4===b)return vv(a,!0),0===a.Be.Pe?3:4;a.Jb>a.Gk&&vv(a,!1);return 1}),
new Dv(4,4,8,4,Bv),new Dv(4,5,16,8,Bv),new Dv(4,6,32,32,Bv),new Dv(4,4,16,16,Cv),new Dv(8,16,32,32,Cv),new Dv(8,16,128,128,Cv),new Dv(8,32,128,256,Cv),new Dv(32,128,258,1024,Cv),new Dv(32,258,258,4096,Cv)];var Ela={};Ela=function(){this.input=null;this.hx=this.ij=this.ww=0;this.output=null;this.ER=this.Pe=this.kA=0;this.msg="";this.state=null;this.EM=2;this.Wd=0};var Kla=Object.prototype.toString;
Fv.prototype.push=function(a,b){var c=this.Be,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:!0===b?4:0;"string"===typeof a?c.input=nla(a):"[object ArrayBuffer]"===Kla.call(a)?c.input=new Uint8Array(a):c.input=a;c.ww=0;c.ij=c.input.length;do{0===c.Pe&&(c.output=new Zu.tx(d),c.kA=0,c.Pe=d);a=Dla(c,e);if(1!==a&&0!==a)return this.jr(a),this.ended=!0,!1;if(0===c.Pe||0===c.ij&&(4===e||2===e))if("string"===this.options.to){var f=Zu.lR(c.output,c.kA);b=f;f=f.length;if(65537>f&&(b.subarray&&
heb||!b.subarray))b=String.fromCharCode.apply(null,Zu.lR(b,f));else{for(var h="",l=0;l<f;l++)h+=String.fromCharCode(b[l]);b=h}this.chunks.push(b)}else b=Zu.lR(c.output,c.kA),this.chunks.push(b)}while((0<c.ij||0===c.Pe)&&1!==a);if(4===e)return(c=this.Be)&&c.state?(d=c.state.status,42!==d&&69!==d&&73!==d&&91!==d&&103!==d&&113!==d&&666!==d?a=pv(c,-2):(c.state=null,a=113===d?pv(c,-3):0)):a=-2,this.jr(a),this.ended=!0,0===a;2===e&&(this.jr(0),c.Pe=0);return!0};
Fv.prototype.jr=function(a){0===a&&(this.result="string"===this.options.to?this.chunks.join(""):Zu.BV(this.chunks));this.chunks=[];this.err=a;this.msg=this.Be.msg};var Hv="@@redux/INIT"+Gv(),Qla="@@redux/REPLACE"+Gv();var Rla="function"===typeof Symbol&&Symbol.observable||"@@observable";var keb=[0,w2,w2,w2,w2,x2];g.w(Kv,Q);Kv.prototype.getType=function(){return Ej(this,11)};
Kv.Fb=[2,13,14];var U1a=function(){var a=[0,mdb,ldb,t2,w2,t2,t2,x2,w2,x2,x2,mdb,x2,ldb,u2,keb,t2,t2,x2];return function(b,c){a:{if(r2.length){var d=r2.pop();oda(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new Yg(b,c);try{var e=new Kv,f=e.oa;ok(a)(f,b);Ji&&delete f[Ji];var h=e;break a}finally{b.free()}h=void 0}return h}}();var dva=new g.Lv("adInfoDialogEndpoint");var Mxa=new g.Lv("adPingingEndpoint");var bN=new g.Lv("adActionInterstitialRenderer");var leb=new g.Lv("adDurationRemainingRenderer");var jN=new g.Lv("adHoverTextButtonRenderer");var bva=new g.Lv("adInfoDialogRenderer");var yN=new g.Lv("adMessageRenderer");var kN=new g.Lv("adPreviewRenderer");var ACa=new g.Lv("dismissablePanelTextPortraitImageRenderer");var meb=new g.Lv("flyoutCtaRenderer");var neb=new g.Lv("instreamAdPlayerUnderlayRenderer");var Kbb=new g.Lv("instreamSurveyAdBackgroundImageRenderer");var HCa=new g.Lv("instreamSurveyAdPlayerOverlayRenderer");var cN=new g.Lv("instreamSurveyAdRenderer"),iN=new g.Lv("instreamSurveyAdSingleSelectQuestionRenderer"),hN=new g.Lv("instreamSurveyAdMultiSelectQuestionRenderer"),H2=new g.Lv("instreamSurveyAdAnswerRenderer"),oeb=new g.Lv("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var $M=new g.Lv("instreamVideoAdRenderer");var peb=new g.Lv("textOverlayAdContentRenderer"),qeb=new g.Lv("enhancedTextOverlayAdContentRenderer"),reb=new g.Lv("imageOverlayAdContentRenderer");var yCa=new g.Lv("playerBytesAdLayoutRenderer");var gN=new g.Lv("playerUnderlayAdLayoutRenderer");var aN=new g.Lv("adIntroRenderer");var wCa=new g.Lv("playerBytesSequentialLayoutRenderer");var KDa=new g.Lv("slidingTextPlayerOverlayRenderer");var dN=new g.Lv("surveyTextInterstitialRenderer");var seb=new g.Lv("simpleAdBadgeRenderer");var hM=new g.Lv("skipAdRenderer"),teb=new g.Lv("skipButtonRenderer");var LCa=new g.Lv("adSlotRenderer");var fN=new g.Lv("squeezebackPlayerSidePanelRenderer");var ueb=new g.Lv("timedPieCountdownRenderer");var veb=new g.Lv("adAvatarViewModel");var web=new g.Lv("adButtonViewModel");var xeb=new g.Lv("adPreviewViewModel");var yeb=new g.Lv("playerAdAvatarLockupCardButtonedViewModel");var zeb=new g.Lv("skipAdButtonViewModel");var Aeb=new g.Lv("skipAdViewModel");var Beb=new g.Lv("visitAdvertiserLinkViewModel");g.w(Mv,Q);g.w(Nv,Q);g.w(Ov,Q);g.w(Pv,Q);Pv.prototype.clearVideo=function(){return Ri(this,1)};
var EGa=[1,2,3,4];var nGa={Qga:0,Oga:1,Pga:2};var oGa={Uga:0,Tga:1,Sga:2,Rga:3};var sGa={Kka:0,Jka:1,Ika:2};var kP={una:0,vna:1,sna:2,rna:3,pna:4,tna:5,qna:6,ona:7};var rGa={joa:0,ioa:1,eoa:2,aoa:3,hoa:4,koa:5,doa:6,Zna:7,coa:8,goa:9,foa:10,loa:11,boa:12,moa:13};var dHa={Aoa:0,ooa:1,roa:2,Boa:3,poa:4,qoa:5,woa:6,yoa:7,toa:8,noa:9,voa:10,zoa:11,uoa:12,soa:13,xoa:14};var qGa={msa:0,ksa:1,lsa:2};var cHa={eYa:0,dYa:1,cYa:2,bYa:3};var bHa={lYa:0,fYa:1,gYa:5,hYa:6,jYa:2,kYa:3,iYa:4};var aHa={oYa:0,pYa:1,nYa:2,mYa:3};var $Ga={tYa:0,rYa:1,sYa:2};var ZGa={Rab:0,Gab:1,Nab:2,Hab:3,Oab:4,Kab:5,Pab:6,Lab:7,Jab:8,Iab:9,Mab:10,Qab:11,Fab:12};g.w(Qv,Q);Qv.prototype.getType=function(){return Ej(this,1)};g.w(Rv,Q);g.w(Sv,Q);g.w(Tv,Q);g.w(Uv,Q);g.w(Vv,Q);Vv.prototype.j=function(a,b){return kk(this,2,a,b)};
Vv.Fb=[2];g.w(Wv,Q);Wv.prototype.j=function(a,b){return kk(this,3,a,b)};
Wv.Fb=[3];g.w(Xv,Q);g.w(Yv,Q);g.w(Zv,Q);g.w($v,Q);g.w(aw,Q);g.w(bw,Q);g.w(cw,Q);g.w(dw,Q);g.w(ew,Q);g.w(fw,Q);var iP=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var zGa={uia:0,Fha:2,wia:3,Gha:4,Eha:5,oia:6,qia:58,Rha:17,wha:18,sia:15,tia:7,Wha:8,dha:10,eha:26,yha:45,Cha:11,Qha:14,yia:16,Zga:19,fha:20,aha:21,zia:22,gha:23,Dha:25,Vga:27,Wga:53,Vha:28,xha:30,eia:31,tha:32,hha:33,Yha:34,Sha:35,Nha:36,bha:37,lia:38,kia:39,Jha:41,Oha:42,Lha:43,Kha:44,cha:40,gia:46,fia:49,hia:50,Mha:51,Pha:52,xia:54,lha:57,nha:91,oha:93,mha:92,mia:60,uha:67,Xga:64,zha:65,pha:68,Yga:69,Xha:70,Iha:71,Hha:72,sha:73,rha:75,via:76,dia:77,Tha:78,pia:79,jia:80,vha:81,Aha:82,qha:83,Bha:84,
ria:85,iia:89,Uha:86,aia:87,bia:88,Zha:90,jha:94,iha:95,cia:96};var yGa={Iia:0,Aia:1,Hia:2,Cia:3,Bia:4,Gia:5,Fia:6,Eia:7,Dia:8,Jia:9};var xGa={Qia:0,Lia:1,Kia:2,Oia:3,Ria:4,Mia:5,Nia:6,Pia:7};var wGa={eja:0,dja:1,cja:2};var AGa={gJa:0,ZIa:1,cJa:2,CIa:3,eJa:4,pIa:5,VIa:6,FIa:7,fJa:8,yIa:9,SIa:10,zIa:11,XIa:12,aIa:13,JIa:14,HIa:15,IIa:16,WIa:17,LIa:18,UIa:19,TIa:20,PIa:21,uIa:22,bIa:23,GIa:24,NIa:25,wIa:26,vIa:27,MIa:28,cIa:29,QIa:30,BIa:31,dJa:32,oIa:33,OIa:34,nIa:35,qIa:36,rIa:37,xIa:38,tIa:39,sIa:40,RIa:41,KIa:42,YIa:43,DIa:44,aJa:45,bJa:46,EIa:47,AIa:70,kIa:48,hIa:49,mIa:50,lIa:51,jIa:52,gIa:53,dIa:54,iIa:55,fIa:56,eIa:57,YHa:58,XHa:59,WHa:60,QHa:61,VHa:62,RHa:63,SHa:64,PHa:65,THa:66,ZHa:67,UHa:68,OHa:69};var mGa={ina:0,ena:1,dna:18,Wma:2,Pma:3,Vma:9,Qma:10,Tma:14,Rma:4,Oma:5,Sma:6,kna:11,Uma:12,Lma:13,Kma:15,Yma:16,fna:17,gna:19,lna:20,cna:21,ana:22,bna:23,Nma:24,hna:25,Mma:26,jna:27,Zma:28,Xma:7};var BGa={aja:0,bja:1,Via:2,Wia:3,Xia:4,Sia:5,Uia:6,Yia:7,Zia:8,Tia:9};var jP={Cja:0,oja:1,Bja:3,zja:4,yja:5,pja:25,Dja:6,mja:7,gja:8,rja:9,fja:12,qja:22,tja:23,uja:26,vja:27,wja:28,Aja:24,xja:13,Eja:14,sja:15,hja:16,kja:17,ija:18,jja:19,lja:20,nja:21};g.w(gw,Q);g.w(hw,Q);hw.prototype.j=function(a,b){return wj(this,1,gw,a,b)};
hw.Fb=[1];g.w(iw,Q);iw.prototype.j=function(a,b){return kk(this,2,a,b)};
iw.prototype.getMetrics=function(a){return qea(this,2,a)};
iw.Fb=[2];g.w(jw,Q);var CGa=[1,2];g.VU=new g.Lv("browseEndpoint");var Ceb=new g.Lv("confirmDialogEndpoint");var Fsa=new g.Lv("rawColdConfigGroup");var Esa=new g.Lv("rawHotConfigGroup");var gHa={UVa:0,TVa:1,PVa:2,NVa:3,QVa:4,OVa:5,SVa:6,RVa:7};g.iG=new g.Lv("commandExecutorCommand");g.w(kw,Q);g.w(lw,Q);g.w(mw,Q);g.w(nw,Q);var GGa=[1,2,3];g.w(ow,Q);g.w(pw,Q);pw.prototype.B=function(a,b){return nj(this,1,si(a),b)};
pw.prototype.j=function(a,b){return nj(this,2,si(a),b)};
pw.prototype.Lf=function(){return yj(this,3)};
pw.Fb=[1,2];g.w(qw,Q);g.w(rw,Q);rw.prototype.j=function(a,b){return kk(this,1,a,b)};
rw.prototype.getMetrics=function(a){return qea(this,1,a)};
rw.Fb=[1];g.w(tw,Q);g.w(uw,Q);g.w(vw,Q);g.w(ww,Q);g.w(xw,Q);g.w(yw,Q);g.w(zw,Q);g.w(Aw,Q);g.w(Bw,Q);var RGa=[1,2],UGa=[3,4,5];g.w(Cw,Q);Cw.prototype.getId=function(){return yj(this,1)};g.w(Dw,Q);Dw.prototype.getType=function(){return Pi(this,1)};g.w(Ew,Q);Ew.prototype.getType=function(){return Pi(this,1)};g.w(Fw,Q);Fw.prototype.getType=function(){return Pi(this,1)};g.w(Gw,Q);var nP=[1,2,3,4];g.w(Hw,Q);g.w(Iw,Q);g.w(Jw,Q);var mP=[1,2,3,4];g.w(Kw,Q);Kw.prototype.j=function(a,b){return wj(this,2,Jw,a,b)};
Kw.Fb=[2];var PGa=[3,4];g.w(Lw,Q);var IGa=[1,2,3];g.w(Mw,Q);g.w(Nw,Q);Nw.prototype.j=function(a,b){return kk(this,2,a,b)};
Nw.Fb=[2];g.w(Ow,Q);g.w(Pw,Q);g.w(Qw,Q);g.w(Rw,Q);g.w(Sw,Q);g.w(Tw,Q);Tw.prototype.j=function(a,b){return kk(this,1,a,b)};
Tw.Fb=[1];g.w(Uw,Q);g.w(Vw,Q);g.w(Ww,Q);var fHa=[1,2,3];g.w(Xw,Q);Xw.prototype.j=function(a,b){return wj(this,1,Ww,a,b)};
Xw.Fb=[1];g.w(Yw,Q);g.w(gx,Q);g.w(hx,Q);g.w(ix,Q);ix.prototype.j=function(a,b){return wj(this,1,hx,a,b)};
ix.Fb=[1];g.w(jx,Q);g.w(kx,Q);g.w(lx,Q);lx.prototype.j=function(a,b){return wj(this,1,kx,a,b)};
lx.Fb=[1];g.w(mx,Q);mx.prototype.j=function(a,b){return wj(this,1,kx,a,b)};
mx.Fb=[1];g.w(nx,Q);g.w(ox,Q);var HHa={J$a:0,ubb:1,Rbb:32,acb:61,mcb:67,ccb:86,Pbb:42,Sbb:60,Cbb:62,Ybb:73,Wbb:76,ecb:88,fcb:90,Mbb:98,xcb:41,ycb:69,zcb:70,Acb:71,vPa:2,QPa:27,ANDROID:3,Kja:54,Lja:14,Sja:91,Mja:55,Nja:24,Oja:20,Pja:18,Rja:21,Uja:30,Xja:29,Yja:28,Zja:34,Tja:36,Qja:38,IOS:5,wDa:15,GDa:92,xDa:40,zDa:25,ADa:17,BDa:19,CDa:64,DDa:66,EDa:26,IDa:22,TDa:33,UDa:68,VDa:35,FDa:53,HDa:37,yDa:39,P8a:7,P9a:57,e$a:43,p$a:59,f$a:93,Wja:74,w$a:75,x$a:85,y$a:65,A$a:80,B$a:8,N8a:10,D$a:58,C$a:63,z$a:72,Vja:23,Ycb:11,Zcb:13,Noa:12,
O8a:16,Nbb:56,bcb:31,sPa:77,PAa:84,Vbb:87,RAa:89,QAa:94,FMa:95};var Deb={n3:0,CLASSIC:1,R2:2,B0:3,l0:4,X2:5,y0:6,aU:7};g.w(px,Q);px.prototype.Y4=function(){return g.Dj(this,3)};
px.prototype.b5=function(){return g.Dj(this,5)};
px.prototype.Er=function(a){return N(this,5,a)};g.w(qx,Q);g.w(rx,Q);g.w(sx,Q);g.w(tx,Q);g.w(ux,Q);ux.Fb=[2];g.w(g.vx,Q);g.vx.prototype.Xs=aa(0);g.vx.prototype.getPlayerType=function(){return Ej(this,36)};
g.vx.prototype.setHomeGroupInfo=function(a){return tj(this,ux,81,a)};
g.vx.prototype.clearLocationPlayabilityToken=function(){return Ri(this,89)};
g.vx.Fb=[9,66,32,86,100,101];g.w(wx,Q);wx.prototype.getKey=function(){return g.Dj(this,1)};
wx.prototype.getValue=function(){return g.Dj(this,rj(this,zsa,2))};
var zsa=[2,3,4,5,6];g.w(xx,Q);xx.Fb=[15,26,28];g.w(yx,Q);yx.Fb=[5];g.w(zx,Q);zx.prototype.setToken=function(a){return N(this,2,a)};g.w(Ax,Q);Ax.prototype.setSafetyMode=function(a){return O(this,5,a)};
Ax.Fb=[12];g.w(Bx,Q);Bx.prototype.Qw=function(a){return tj(this,g.vx,1,a)};
Bx.Fb=[12];var mN=new g.Lv("thumbnailLandscapePortraitRenderer");var oHa={u2a:0,p2a:1,s2a:2,t2a:3,q2a:4,r2a:5};var mHa={a3a:0,Z2a:1,v2a:2,w2a:3,x2a:4,y2a:5,z2a:6,A2a:7,B2a:8,D2a:9,E2a:10,F2a:11,G2a:12,H2a:13,I2a:14,J2a:15,L2a:16,M2a:17,P2a:18,Q2a:19,R2a:20,U2a:21,S2a:22,T2a:23,V2a:24,W2a:25,X2a:26,Y2a:27,O2a:28,C2a:29,K2a:30,N2a:31};var lHa={k3a:0,b3a:1,c3a:2,d3a:3,e3a:4,f3a:5,g3a:6,h3a:7,i3a:8,j3a:9,l3a:10};var nHa={p3a:0,n3a:1,o3a:2,m3a:3};var SGa={Sna:0,zna:1,Tna:2,Nna:3,wna:4,xna:5,Lna:6,yna:7,Jna:8,Kna:13,Dna:9,Fna:10,Ina:11,Una:12,Bna:14,Hna:15,Ena:16,Ona:17,Mna:18,Rna:19,Pna:20,Cna:21,Qna:22,Ana:23,Gna:24};var TGa={Yna:0,Xna:1,Wna:2,Vna:3};var hHa={w5a:0,u5a:1,v5a:2};var KGa={Rka:0,Pka:4,Oka:2,Mka:5,Nka:8,Qka:9,Lka:3,Ska:6,Tka:7};var LGa={spa:0,ppa:1,qpa:2,tpa:3,upa:4,rpa:5};var JGa={Spa:0,Qpa:8,Opa:2,Mpa:5,Npa:9,Ppa:3,Lpa:4,Tpa:6,Upa:7,Rpa:10};var XGa={Zfa:0,Xfa:1,Yfa:2,cga:3,dga:4,aga:5};var eHa={Xab:0,Wab:1,Yab:2};var YGa={Bab:0,uab:1,vab:2,wab:3,xab:4,yab:5,zab:6,Aab:7};var Eeb={abb:0,Zab:1};var vIa={Raa:0,Paa:1,Oaa:2,Qaa:3};g.Feb=new g.Lv("changeEngagementPanelVisibilityAction");var Yva=new g.Lv("continuationCommand");g.Geb=new g.Lv("openPopupAction");g.I2=new g.Lv("webCommandMetadata");var AQa=new g.Lv("metadataBadgeRenderer");var Xva=new g.Lv("signalServiceEndpoint");var xJa={qga:0,rga:1,lga:2,pga:3,nga:4,oga:5};var yJa={zga:0,xga:1,tga:2,yga:3,Aga:4,wga:5,vga:6};g.w(Cx,Q);Cx.prototype.getType=function(){return Ej(this,1)};var tP={CEa:0,DEa:1,BEa:2,xEa:3,zEa:4,AEa:5,EEa:6,yEa:7};var Heb={qPa:0,jPa:1,kPa:2,pPa:3,oPa:6,nPa:7,lPa:8,mPa:9};var Ieb={wQa:0,tQa:1,vQa:2,uQa:3,sQa:4};var Jeb={DUa:0,oUa:1,EUa:2,CUa:3,BUa:4,AUa:5,zUa:6,rUa:7,pUa:8,vUa:9,IUa:10,qUa:11,xUa:12,GUa:13,HUa:14,yUa:15,uUa:16,tUa:17,wUa:18,sUa:19,FUa:20};var FGa={MUa:0,LUa:86};var uP={kXa:0,jXa:1,cXa:2,ZWa:3,bXa:4,lXa:5,iXa:6,XWa:7,mXa:8,VWa:9,gXa:10,nXa:11,hXa:12,YWa:13,UWa:14,aXa:15,eXa:16,dXa:17,fXa:18,WWa:19};var Keb={d2a:0,a2a:1,f2a:2,b2a:3,e2a:4,c2a:5};var hG=new g.Lv("innertubeCommand");var Ybb=new g.Lv("loggingDirectives");var Leb={s0:0,o0:1,r0:2,q0:3};var Rna={s0:"EMBEDDED_PLAYER_MODE_UNKNOWN",o0:"EMBEDDED_PLAYER_MODE_DEFAULT",r0:"EMBEDDED_PLAYER_MODE_PFP",q0:"EMBEDDED_PLAYER_MODE_PFL"};var aRa=new g.Lv("channelThumbnailEndpoint");var $Qa=new g.Lv("embeddedPlayerErrorMessageRenderer");var WQa=new g.Lv("embeddedPlayerOverlayVideoDetailsRenderer"),bRa=new g.Lv("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),cRa=new g.Lv("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var xQa=new g.Lv("embedsInfoPanelRenderer");var VGa={kLa:0,YKa:1,iLa:2,jLa:3,ZKa:4,dLa:5,fLa:6,bLa:7,cLa:8,hLa:9,eLa:11,gLa:12,aLa:13};var Meb=new g.Lv("feedbackEndpoint");var Neb=new g.Lv("callToActionButtonViewModel");g.w(Dx,Q);g.w(Ex,Q);g.w(Fx,Q);var KIa=[1,2];var Oeb={MEa:0,NEa:1,LEa:2,GEa:3,FEa:4,HEa:5,JEa:6,IEa:7,KEa:8};var Peb={hFa:0,VEa:1,gFa:2,fFa:3,QEa:4,SEa:5,TEa:6,REa:7,ZEa:8,WEa:9,XEa:10,YEa:16,OEa:11,iFa:12,PEa:13,dFa:14,UEa:15,eFa:17,aFa:18,bFa:19,cFa:20};var Qeb={mFa:0,jFa:1,lFa:2,kFa:3};var Reb={WBa:0,DBa:1,XBa:8,OBa:16,PBa:17,SBa:2,QBa:3,RBa:4,GBa:5,EBa:6,FBa:7,VBa:9,TBa:10,UBa:11,NBa:12,KBa:13,MBa:14,LBa:15,JBa:18,HBa:19,IBa:20,CBa:21};var Seb={gUa:0,hUa:1,fUa:2};var Teb={nUa:0,jUa:1,lUa:2,iUa:3,kUa:4,mUa:5};var Ueb={BFa:0,sFa:1,tFa:2,uFa:3,zFa:4,wFa:5,xFa:6,vFa:7,yFa:8,rFa:9,AFa:10};var Veb={VJa:0,RJa:1,FJa:2,QJa:3,AJa:4,PJa:5,OJa:6,NJa:7,YJa:8,HJa:9,BJa:10,IJa:11,JJa:12,CJa:13,MJa:14,XJa:15,LJa:16,KJa:17,DJa:18,EJa:19,GJa:20,SJa:21,TJa:22,UJa:23,WJa:24};var Web={sKa:0,oKa:9,iKa:8,uKa:1,zKa:2,xKa:3,yKa:13,pKa:4,kKa:21,lKa:20,mKa:5,eKa:6,dKa:7,gKa:14,fKa:15,BKa:17,CKa:10,nKa:16,hKa:18,rKa:19,bKa:11,cKa:12,vKa:22,wKa:23,aKa:24,tKa:25,ZJa:26,AKa:27,jKa:28,qKa:29};var Xeb={kma:0,hma:1,jma:2};var Yeb={sJa:0,kJa:1,nJa:2,qJa:3,lJa:4,iJa:5,oJa:6,pJa:7,hJa:8,rJa:9,mJa:10,jJa:11};var Zeb={nma:0,lma:1,oma:2,mma:3};var $eb=new g.Lv("interactionLoggingCommandMetadata");var oqa={Kbb:"WEB_DISPLAY_MODE_UNKNOWN",Gbb:"WEB_DISPLAY_MODE_BROWSER",Ibb:"WEB_DISPLAY_MODE_MINIMAL_UI",Jbb:"WEB_DISPLAY_MODE_STANDALONE",Hbb:"WEB_DISPLAY_MODE_FULLSCREEN"};g.w(Gx,Q);g.w(Hx,Q);g.w(Ix,Q);Ix.prototype.j=function(a,b){return wj(this,1,Hx,a,b)};
Ix.Fb=[1];var VJa={Gba:0,hba:1,rba:2,wba:3,Cba:4,Dba:5,Hba:6,xba:7,fba:8,oba:9,nba:10,Saa:11,qba:12,bba:14,kba:15,vba:16,uba:17,pba:18,jba:29,lba:19,Yaa:20,cba:21,Fba:22,Taa:23,Jba:24,mba:25,Zaa:26,zba:27,aba:28,Aba:30,Bba:31,tba:32,Eba:33,Uaa:34,yba:35,Kba:36,Waa:37,Xaa:38,Iba:39,dba:40,eba:41,Vaa:42};var afb={hpa:0,gpa:1,fpa:2};g.w(Jx,Q);g.w(Kx,Q);var bfb={Xda:0,Sda:114,Uca:1,Mda:4,Nda:14,Hca:15,Oda:17,uca:6,xca:7,zca:8,yca:9,Fca:5,kda:16,hda:101,Lda:20,Kda:26,Cda:28,Lca:104,hca:105,Yda:50,Jda:88,Fda:89,Hda:90,Gda:91,Mca:2,Zca:92,bda:19,kca:25,Uda:107,wca:29,Pca:93,Rca:94,Qca:95,Vda:30,ida:31,Yca:116,Wca:3,Sca:82,Oca:83,Nca:84,Vca:85,Eda:11,Zda:27,lda:10,Rda:115,eca:12,gca:13,fca:49,dca:106,sca:18,gda:21,Cca:22,cca:23,Ida:24,Tba:32,fda:33,Xba:34,gea:35,pca:36,sda:37,Jca:38,Tda:39,Pda:40,Qda:41,bea:42,tca:43,Wda:44,Ica:45,Bca:46,mda:47,jda:48,
Tca:51,Gca:52,vca:53,Dda:54,Kca:55,jca:56,oca:57,qca:99,ica:58,pda:59,Dca:60,qda:61,nda:62,dda:63,fea:64,cea:65,aea:66,eea:67,dea:68,Sba:69,oda:70,tda:71,uda:72,xda:73,yda:74,vda:75,wda:117,mca:76,nca:77,Zba:78,rca:79,Xca:80,Eca:81,lca:86,bca:87,Vba:97,Uba:103,cda:98,rda:100,Yba:102,Bda:108,Ada:109,Wba:110,aca:111,eda:112,zda:113,Aca:118};var cfb={wea:0,qea:1,sea:2,uea:3,oea:4,iea:5,lea:6,nea:7,tea:8,jea:9,mea:10,rea:13,vea:14,hea:11,pea:12};var dfb={tfa:0,zea:1,Aea:2,Cea:3,Jea:4,nfa:42,efa:9,ofa:10,Hea:11,lfa:12,kfa:13,Rea:43,dfa:14,Sea:15,rfa:47,Uea:46,Zea:16,Yea:17,Dea:18,ifa:19,Gea:20,jfa:21,sfa:22,pfa:23,qfa:24,Fea:25,Bea:26,mfa:27,Wea:28,bfa:38,cfa:39,afa:49,gfa:5,Tea:6,Iea:7,Nea:8,Xea:29,ffa:30,Vea:31,xea:32,Oea:33,Mea:34,Kea:35,vfa:36,Qea:37,ufa:40,Pea:41,yea:44,Lea:45,Eea:48};var hJa={zfa:0,yfa:1,wfa:2,xfa:3};var fJa={Cpa:0,zpa:1,ypa:2,Bpa:3,Apa:4};var efb={dqa:0,bqa:1,Ypa:2,cqa:3,Zpa:4,aqa:5};var ffb={gqa:0,eqa:1,fqa:2};var gfb={nqa:0,mqa:1,kqa:2,lqa:3,jqa:4};var hfb={qqa:0,oqa:1,pqa:2,rqa:3};var ifb={xqa:0,sqa:1,wqa:2,vqa:3,uqa:4,tqa:5};var jfb={Dqa:0,Cqa:1,yqa:2};var kfb={Bqa:0,zqa:1,Aqa:2};var lfb={Gqa:0,Eqa:1,Fqa:2};var mfb={Uqa:0,Qqa:1,Pqa:2,Kqa:3,Oqa:4,Iqa:5,Jqa:6,Rqa:7,Lqa:8,Sqa:9,Nqa:10,Hqa:11,Mqa:12,Tqa:13};var nfb={Zqa:0,Xqa:1,Yqa:2,Wqa:3,Vqa:4};var eJa={fHa:0,CGa:1,DGa:2,PFa:3,tGa:4,EGa:5,uGa:6,QFa:7,FGa:8,IFa:9,JFa:10,YFa:11,OFa:12,RFa:13,wGa:14,WFa:15,HFa:16,UGa:17,rGa:18,SFa:19,zGa:20,xGa:21,yGa:22,GFa:23,dHa:25,TGa:26,KHa:61,kGa:35,cGa:36,aGa:37,gGa:38,fGa:93,iGa:39,hGa:40,oGa:41,aHa:97,bHa:106,cHa:102,lGa:42,jGa:43,pGa:44,qGa:45,LFa:24,MFa:27,NFa:28,CHa:29,FHa:75,DHa:104,EHa:30,wHa:98,zHa:108,xHa:105,yHa:89,GHa:31,HHa:86,AHa:32,BHa:91,kHa:51,mHa:52,vHa:62,oHa:70,sHa:63,qHa:64,lHa:65,uHa:66,nHa:71,rHa:67,pHa:68,tHa:69,JHa:33,mGa:46,
nGa:47,VGa:49,WGa:50,XGa:94,OGa:77,HGa:78,GGa:79,IGa:80,vGa:53,gHa:54,iHa:55,hHa:56,PGa:57,QGa:101,SGa:110,RGa:96,jHa:58,AGa:59,BGa:60,JGa:72,KGa:107,NGa:84,LGa:92,UFa:73,YGa:74,KFa:76,eHa:81,bGa:82,ZGa:83,dGa:85,eGa:95,IHa:87,sGa:88,XFa:90,MGa:99,ZFa:100,TFa:103,VFa:109};var iJa={j0:0,Soa:1,FFa:2,npa:3,b3:4,d3:5,PXa:6,EYa:7,rVa:8,t3:9,Toa:10,Cfa:11,Ffa:12,pbb:13,Tfa:14,Vfa:15,Nfa:16,Ofa:17,Gfa:18,Vla:19,qta:20,BCa:21,rDa:22,u3:23,h5a:24,Bfa:25,YNa:26,XNa:47,g3:27,Ula:28,OXa:29,Oya:30,ACa:31,epa:32,nab:33,cab:34,Z$a:35,jab:36,mab:37,eab:38,hab:39,iab:40,bab:41,aab:42,gma:43,S2:44,tla:45,W_:46,Pba:48,z0:49,b5a:50,jsa:51,EKa:52,Ddb:53};var ofb={qTa:0,fTa:1,kTa:2,iTa:3,jTa:4,eTa:5,oTa:6,pTa:7,dTa:8,mTa:9,gTa:10,hTa:11,lTa:12,nTa:13};var pfb={vTa:0,wTa:1,rTa:2,sTa:3,uTa:4,tTa:5};var dJa={WTa:0,STa:1,NTa:2,OTa:3,PTa:21,ITa:4,CTa:5,FTa:6,ETa:7,HTa:8,DTa:24,VTa:9,BTa:10,UTa:11,TTa:12,MTa:22,RTa:13,QTa:20,JTa:14,LTa:15,KTa:16,ATa:17,zTa:19,GTa:18,yTa:23};var kJa={F1a:0,A1a:1,B1a:14,D1a:15,E1a:20,n1a:2,w1a:3,t1a:4,u1a:5,k1a:6,x1a:7,s1a:8,o1a:9,m1a:10,z1a:11,v1a:12,y1a:13,l1a:16,C1a:17,q1a:18,p1a:19};var qfb={R1a:0,Q1a:1,J1a:2,K1a:3,O1a:4,N1a:5,P1a:6,L1a:7,M1a:8};var lJa={r7a:0,o7a:1,q7a:2,p7a:3,i7a:4,m7a:5,l7a:6,k7a:8,j7a:9,n7a:7};var sP={L8a:0,s7a:1,Y7a:2,F8a:3,A8a:4,B7a:5,j8a:6,O7a:7,o8a:8,g8a:9,y8a:10,C8a:11,q8a:12,C7a:13,h8a:14,M7a:15,z7a:16,e8a:17,p8a:18,B8a:19,J7a:20,R7a:21,J8a:22,I8a:57,Q7a:23,I7a:24,A7a:25,K8a:26,c8a:27,D8a:28,E8a:29,k8a:30,H8a:31,L7a:32,r8a:33,V7a:34,X7a:35,f8a:36,d8a:37,t8a:38,i8a:39,M8a:40,S7a:41,T7a:42,U7a:43,x7a:44,w7a:45,v7a:46,t7a:58,u7a:59,w8a:47,x8a:48,l8a:67,m8a:68,N7a:49,s8a:50,v8a:51,u8a:52,a8a:53,G7a:54,G8a:55,W7a:56,n8a:60,Z7a:61,P7a:62,z8a:63,K7a:64,b8a:69,D7a:65,y7a:66,F7a:70,E7a:71,
H7a:72};g.w(Lx,Q);g.w(Mx,Q);g.w(Nx,Q);Nx.prototype.Zm=function(){return g.Dj(this,1)};g.w(Ox,Q);g.w(Px,Q);g.w(Qx,Q);var nJa=[1,2];g.w(Rx,Q);Rx.prototype.getType=function(){return Ej(this,1)};
var mJa=[3,4];g.w(Sx,Q);g.k=Sx.prototype;g.k.nz=function(){return g.Dj(this,1)};
g.k.D3=function(a,b){return wj(this,2,Rx,a,b)};
g.k.E3=function(a,b){return wj(this,3,Rx,a,b)};
g.k.C3=function(a,b){return wj(this,4,Rx,a,b)};
g.k.G3=function(a,b){return wj(this,5,Rx,a,b)};
g.k.F3=function(a,b){return wj(this,6,Rx,a,b)};
Sx.Fb=[2,3,4,5,6];g.w(Tx,Q);Tx.prototype.getType=function(){return Ej(this,2)};
Tx.prototype.j=function(a,b){return kk(this,5,a,b)};
Tx.Fb=[5];g.w(Ux,Q);Ux.prototype.B=function(a,b){return kk(this,2,a,b)};
Ux.prototype.j=function(a,b){return wj(this,4,Rx,a,b)};
Ux.prototype.D=function(a,b){return wj(this,5,Rx,a,b)};
Ux.prototype.C=function(a,b){return wj(this,6,Rx,a,b)};
Ux.Fb=[2,4,5,6];g.w(Vx,Q);Vx.prototype.getType=function(){return Ej(this,2)};g.w(Wx,Q);Wx.prototype.j=function(a,b){return wj(this,1,Vx,a,b)};
Wx.Fb=[1];g.w(Xx,Q);g.w(Yx,Q);Yx.prototype.j=function(a,b){return kk(this,1,a,b)};
Yx.Fb=[1];g.w(Zx,Q);Zx.prototype.j=function(a,b){return kk(this,1,a,b)};
Zx.prototype.B=function(a,b){return kk(this,2,a,b)};
Zx.Fb=[1,2];g.w($x,Q);$x.prototype.j=function(a,b){return wj(this,2,Yx,a,b)};
$x.Fb=[2];g.w(ay,Q);g.w(by,Q);g.w(cy,Q);cy.prototype.Zm=function(){return g.Dj(this,1)};
cy.prototype.j=function(a,b){return wj(this,3,by,a,b)};
cy.Fb=[3];g.w(dy,Q);dy.prototype.rg=function(){return Ej(this,1)};g.w(ey,Q);ey.prototype.yf=function(){return Ej(this,2)};g.w(fy,Q);g.w(gy,Q);g.w(hy,Q);hy.prototype.getType=function(){return Ej(this,1)};
hy.prototype.Zm=function(){return g.Dj(this,8)};g.w(iy,Q);iy.prototype.Zm=function(){return g.Dj(this,1)};g.w(jy,Q);jy.prototype.Zm=function(){return g.Dj(this,1)};g.w(ky,Q);ky.prototype.Zm=function(){return g.Dj(this,1)};g.w(ly,Q);ly.prototype.Zm=function(){return g.Dj(this,2)};g.w(my,Q);my.prototype.Zm=function(){return g.Dj(this,1)};g.w(ny,Q);ny.prototype.Zm=function(){return g.Dj(this,1)};g.w(oy,Q);g.w(py,Q);g.w(qy,Q);g.w(ry,Q);ry.prototype.Zm=function(){return g.Dj(this,2)};g.w(sy,Q);g.w(ty,Q);g.w(uy,Q);var J2=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];g.w(vy,Q);g.w(wy,Q);g.w(yy,Q);g.w(zy,Q);g.w(Ay,Q);Ay.prototype.getState=function(){return Ej(this,1)};
Ay.prototype.Gc=function(a){return O(this,1,a)};g.w(By,Q);g.w(Cy,Q);Cy.prototype.j=function(a,b){return wj(this,1,By,a,b)};
Cy.Fb=[1];g.w(Dy,Q);Dy.prototype.j=function(a,b){return wj(this,2,Cy,a,b)};
Dy.prototype.B=function(a,b){return wj(this,3,zy,a,b)};
Dy.Fb=[2,3];g.w(Ey,Q);Ey.prototype.B=function(a,b){return wj(this,1,Dy,a,b)};
Ey.prototype.j=function(a,b){return wj(this,2,yy,a,b)};
Ey.Fb=[1,2];g.w(Fy,Q);g.w(Gy,Q);g.w(Hy,Q);g.w(Iy,Q);Iy.prototype.dn=function(){return oea(this,4)};g.w(Jy,Q);Jy.prototype.getStatus=function(){return Aj(this,2)};g.w(Ky,Q);g.w(Ly,Q);Ly.prototype.setConfig=function(a){return tj(this,Ky,2,a)};g.w(My,Q);g.w(Ny,Q);Ny.prototype.getKey=function(){return g.Dj(this,1)};
Ny.prototype.getValue=function(){return g.Dj(this,2)};g.w(Oy,Q);g.w(Py,Q);g.w(Qy,Q);Qy.prototype.j=function(a,b){return wj(this,3,Py,a,b)};
Qy.Fb=[3];g.w(Ry,Q);g.w(Sy,Q);g.w(Ty,Q);g.k=Ty.prototype;g.k.getSettings=function(){return g.sj(this,Sy,1)};
g.k.ph=function(a){return tj(this,Sy,1,a)};
g.k.getState=function(){return Ej(this,2)};
g.k.Gc=function(a){return O(this,2,a)};
g.k.dn=function(){return Cj(this,3)};g.w(Uy,Q);g.w(Vy,Q);Vy.prototype.dn=function(){return Cj(this,4)};g.w(Wy,Q);g.w(Xy,Q);g.k=Xy.prototype;g.k.getType=function(){return Ej(this,1)};
g.k.A3=function(a,b){return wj(this,2,Wy,a,b)};
g.k.dn=function(){return Cj(this,6)};
g.k.getPlaybackRate=function(){return pea(this,7)};
g.k.setPlaybackRate=function(a){return Kj(this,7,a)};
g.k.ZQ=function(a){Fj(this,8,a)};
Xy.Fb=[2];g.w(Yy,Q);Yy.prototype.dn=function(){return Cj(this,3)};g.w(Zy,Q);Zy.prototype.j=function(a,b){return wj(this,1,Xy,a,b)};
Zy.prototype.B=function(a,b){return wj(this,2,Yy,a,b)};
Zy.Fb=[1,2];g.w($y,Q);$y.prototype.getState=function(){return Ej(this,1)};
$y.prototype.Gc=function(a){return O(this,1,a)};g.w(g.az,Q);g.w(g.bz,Q);g.bz.prototype.Qw=function(a){return O(this,1,a)};
g.bz.prototype.j=function(a,b){return wj(this,4,Zy,a,b)};
g.bz.prototype.Hv=aa(1);g.bz.Fb=[4];g.w(cz,Q);cz.prototype.Lf=function(){return Ej(this,4)};g.w(dz,Q);dz.prototype.j=function(a,b){return kk(this,1,a,b)};
dz.prototype.Rg=function(a,b){gea(this,1,a,ki(b),mea)};
dz.Fb=[1];g.w(ez,Q);ez.prototype.j=function(a,b){return wj(this,4,Ny,a,b)};
ez.prototype.B=function(a,b){return nj(this,5,Pda(a),b)};
ez.Fb=[4,5];g.w(fz,Q);g.w(gz,Q);g.w(hz,Q);g.w(iz,Q);iz.prototype.Lf=function(){return g.Dj(this,2)};g.w(jz,Q);jz.prototype.j=function(a,b){return wj(this,1,iz,a,b)};
jz.Fb=[1];g.w(kz,Q);kz.prototype.Lf=function(){return g.Dj(this,2)};g.w(lz,Q);lz.prototype.j=function(a,b){return wj(this,1,kz,a,b)};
lz.Fb=[1];g.w(mz,Q);var FIa=[1,2,3];g.w(nz,Q);nz.prototype.j=function(a,b){return wj(this,1,mz,a,b)};
nz.Fb=[1];g.w(oz,Q);var WF=[2,3,4,5];g.w(pz,Q);pz.prototype.getMessage=function(){return g.Dj(this,1)};g.w(qz,Q);g.w(rz,Q);g.w(sz,Q);g.w(tz,Q);tz.prototype.Ck=function(a,b){return wj(this,5,sz,a,b)};
tz.Fb=[5];g.w(uz,Q);g.w(vz,Q);vz.prototype.j=function(a,b){return wj(this,3,uz,a,b)};
vz.prototype.B=function(a,b){return kk(this,4,a,b)};
vz.Fb=[3,4];g.w(wz,Q);g.w(xz,Q);xz.prototype.B=function(a,b){return wj(this,19,sx,a,b)};
xz.prototype.j=function(a,b){return wj(this,20,rx,a,b)};
xz.Fb=[19,20];g.w(yz,Q);g.w(zz,Q);g.w(Az,Q);Az.prototype.j=function(a,b){return wj(this,2,yz,a,b)};
Az.prototype.setConfig=function(a){return tj(this,zz,3,a)};
Az.prototype.C=function(a,b){return wj(this,5,yz,a,b)};
Az.prototype.B=function(a,b){return wj(this,9,Fx,a,b)};
Az.Fb=[2,5,9];g.w(Bz,Q);Bz.prototype.dn=function(){return oea(this,2)};g.w(Cz,Q);Cz.prototype.Rw=function(a){Ij(this,1,a)};
Cz.prototype.j=function(a,b){return wj(this,9,Bz,a,b)};
Cz.Fb=[9];g.w(Dz,Q);g.w(Ez,Q);g.w(Fz,Q);g.w(Gz,Q);g.w(Hz,Q);Hz.prototype.getType=function(){return Ej(this,2)};
Hz.prototype.j=function(a,b){return wj(this,3,Gz,a,b)};
Hz.Fb=[3];g.w(Iz,Q);Iz.prototype.j=function(a,b){return wj(this,10,Fy,a,b)};
Iz.prototype.B=function(a,b){return wj(this,17,Cz,a,b)};
Iz.Fb=[10,17];g.w(Jz,Q);var sIa={Fka:0,Eka:1,Bka:2,Cka:3,Dka:4};var rfb={Tla:0,Pla:1,Rla:2,Qla:3,Sla:4};g.w(Kz,Q);Kz.prototype.Lf=function(){return g.Dj(this,2)};
Kz.prototype.Zm=function(){return g.Dj(this,3)};var MHa={ema:0,dma:1,Xla:2,Yla:3,Zla:4,ama:5,bma:6,cma:7,Wla:8};var YHa={lta:0,mta:3,nta:1,kta:2};var IHa={Dua:0,wta:1,Fta:2,Hta:3,Kta:4,Lta:5,Pta:6,Qta:7,Rta:8,Sta:9,Tta:10,Wta:11,Xta:12,Yta:13,Zta:14,aua:15,hua:16,nua:17,oua:18,qua:19,sua:20,uua:21,vua:22,xua:23,zua:24,Eua:25,Fua:26,jua:27,Aua:28,kua:29,Vta:30,Nta:31,Uta:32,Jua:33,Lua:34,vta:35,Cta:36,Bua:37,Cua:38,Gta:39,cua:40,eua:51,Bta:41,xta:42,Ita:43,fua:44,Dta:45,iua:46,tua:47,Ata:48,pua:49,gua:50,Eta:52,Jta:53,Mta:54,wua:55,yua:56,Hua:57,Gua:58,rua:59,yta:60,Ota:61,zta:62,Iua:63,Kua:64};var LHa={aya:0,nva:1,Xwa:2,Xxa:3,sya:4,Qwa:5,Ywa:6,uva:7,xva:8,wva:9,kxa:10,Pwa:11,Owa:12,uxa:13,Cxa:14,Yxa:15,nya:16,tva:17,Vua:18,gwa:19,Hva:20,Vwa:21,cxa:22,Zxa:23,Xua:24,ava:25,pxa:26,Pva:116,jwa:27,kwa:28,jxa:29,pva:30,cwa:31,Uwa:32,ixa:33,Tua:34,Uua:35,Rua:36,Sua:37,Zwa:38,axa:39,xxa:40,sva:41,qya:42,nxa:43,hxa:44,lxa:45,Rwa:46,mxa:47,Wva:48,Cva:49,Bva:160,uya:50,iwa:51,hwa:52,Eva:53,Fva:54,Uxa:55,Txa:56,Sxa:57,Vxa:58,Mva:59,Xva:60,mya:61,txa:62,oxa:63,rxa:64,bxa:65,Kxa:66,Ixa:67,Jxa:117,Lxa:68,
ewa:69,fwa:121,tya:70,bwa:71,Oxa:72,Pxa:73,vxa:74,wxa:75,Zva:76,Yva:77,gxa:78,fxa:80,Oua:81,fva:115,dva:120,eva:122,mva:123,mwa:124,lwa:125,cva:126,Gxa:127,Exa:128,Fxa:129,rya:130,Qua:131,bva:132,Yua:133,dwa:152,Vva:178,Gva:179,qxa:181,pwa:82,rwa:83,Gwa:84,swa:85,Mwa:86,qwa:87,uwa:88,Awa:89,Dwa:90,Iwa:91,Fwa:92,Hwa:93,owa:94,vwa:95,Ewa:96,xwa:97,wwa:98,nwa:99,twa:100,Jwa:101,Bwa:102,Nwa:103,Kwa:104,ywa:105,Lwa:106,Cwa:107,zwa:118,cya:108,gya:109,fya:110,eya:111,hya:112,dya:113,bya:114,Pua:134,Zua:138,
gva:139,hva:140,kva:141,qva:142,vva:144,yva:165,rva:143,Dva:135,Jva:145,Kva:146,Wwa:147,jya:148,lya:149,oya:150,Rxa:153,Mua:154,kya:155,pya:156,Wua:157,Iva:158,Hxa:159,Rva:161,Nua:162,Dxa:163,Wxa:164,Qva:166,Lva:167,exa:168,Ova:169,Nva:170,dxa:171,sxa:172,Sva:173,jva:174,Tva:175,Bxa:176,Uva:177,ova:182,Nxa:183,Mxa:184,Twa:136,Swa:137,Qxa:151,zva:180,Ava:190,yxa:185,Axa:186,zxa:187,iva:188,iya:189};var sfb={Roa:0,Qoa:1,Ooa:2,Poa:3};var fKa={r_a:0,a0a:1,f0a:2,L_a:3,M_a:4,N_a:5,h0a:39,i0a:6,d0a:7,Z_a:50,g0a:69,b0a:70,c0a:71,V_a:74,O_a:32,P_a:44,Q_a:33,e0a:8,R_a:9,S_a:10,U_a:11,T_a:12,W_a:73,X_a:77,Y_a:78,s_a:56,t_a:57,u_a:58,v_a:59,w_a:60,x_a:61,J0a:13,K0a:14,L0a:15,T0a:16,O0a:17,V0a:18,U0a:19,Q0a:20,R0a:21,M0a:34,S0a:35,P0a:36,N0a:49,B_a:37,C_a:38,E_a:40,G_a:41,F_a:42,H_a:43,I_a:51,D_a:52,A_a:67,y_a:22,z_a:23,m0a:24,t0a:25,u0a:62,s0a:26,q0a:27,l0a:48,j0a:53,k0a:63,v0a:66,p0a:54,r0a:68,w0a:72,o0a:75,n0a:76,K_a:64,J_a:65,x0a:28,
A0a:29,z0a:30,y0a:31,G0a:45,I0a:46,H0a:47,E0a:55,C0a:79,B0a:80,D0a:81,F0a:82};var cKa={X0a:0,Y0a:1,W0a:2};var hKa={b1a:0,a1a:1,Z0a:2};var gKa={j1a:0,h1a:1,f1a:2,i1a:3,d1a:4,e1a:5,g1a:6};var MJa={V4a:0,U4a:1,T4a:2};var LJa={Z4a:0,X4a:1,W4a:2,Y4a:3};g.w(Lz,Q);g.w(Mz,Q);g.w(Nz,Q);g.w(Oz,Q);g.w(Pz,Q);g.w(Qz,Q);Qz.prototype.hasFeature=function(){return null!=Pi(this,2)};g.w(Rz,Q);g.w(Sz,Q);g.w(Tz,Q);g.w(Uz,Q);Uz.prototype.getName=function(){return Ej(this,1)};
Uz.prototype.getStatus=function(){return Ej(this,2)};
Uz.prototype.getState=function(){return Ej(this,3)};
Uz.prototype.Gc=function(a){return O(this,3,a)};g.w(Vz,Q);Vz.prototype.j=function(a,b){return wj(this,2,Uz,a,b)};
Vz.Fb=[2];g.w(Wz,Q);g.w(Xz,Q);Xz.prototype.j=function(a,b){return wj(this,1,Vz,a,b)};
Xz.prototype.B=function(a,b){return wj(this,2,Vz,a,b)};
Xz.Fb=[1,2];var bKa={pFa:0,nFa:1,oFa:2};var JJa={yLa:0,sLa:1,vLa:2,zLa:3,tLa:4,uLa:5,wLa:6,xLa:7};var KJa={CLa:0,BLa:1,ALa:2};var IJa={xPa:0,yPa:1,wPa:2};var HJa={OPa:0,BPa:1,KPa:2,PPa:3,MPa:4,EPa:5,APa:6,CPa:7,DPa:8,NPa:9,LPa:10,FPa:11,IPa:12,JPa:13,HPa:14,GPa:15,zPa:16};var EJa={G3a:0,C3a:1,F3a:2,E3a:3,D3a:4};var DJa={K3a:0,I3a:1,J3a:2,H3a:3};var FJa={R3a:0,N3a:1,P3a:2,L3a:3,Q3a:4,M3a:5,O3a:6};var CJa={Y3a:0,a4a:1,Z3a:2,U3a:3,S3a:4,T3a:5,b4a:6,V3a:7,c4a:8,W3a:9,X3a:10};var GJa={f4a:0,e4a:1,d4a:2};var QJa={b9a:0,Z8a:1,Y8a:2,T8a:3,V8a:4,W8a:5,S8a:6,U8a:7,a9a:8,d9a:9,X8a:10,Q8a:11,R8a:12,c9a:13};var PJa={f9a:0,e9a:1};var ZJa={i9a:0,j9a:1,g9a:2,h9a:3};var XJa={F9a:0,k9a:1,E9a:2,D9a:3,J9a:4,I9a:5,C9a:19,o9a:6,q9a:7,y9a:8,p9a:24,B9a:25,z9a:20,s9a:21,m9a:22,A9a:23,l9a:9,n9a:10,r9a:11,t9a:12,u9a:13,v9a:14,x9a:15,w9a:16,G9a:17,H9a:18};var RJa={N9a:0,M9a:1,O9a:2,K9a:3,L9a:4};var NJa={d$a:0,W9a:1,R9a:2,a$a:3,V9a:4,c$a:5,Q9a:6,S9a:7,X9a:8,T9a:9,Y9a:10,Z9a:11,U9a:12,b$a:13};var TJa={k$a:0,i$a:1,g$a:2,h$a:3,j$a:4};var SJa={o$a:0,l$a:1,m$a:2,n$a:3};var OJa={s$a:0,r$a:1,q$a:2};var YJa={v$a:0,t$a:1,u$a:2};var $Ja={Q$a:0,P$a:1,O$a:2,M$a:3,N$a:4};var aKa={U$a:0,S$a:1,R$a:2,T$a:3};var tfb={dpa:0,apa:1,bpa:2,Yoa:3,cpa:4,Zoa:5};var GHa={Nba:0,Lba:1,Mba:2};var jGa={o3:0,OCa:1,HAa:2,IAa:3,qFa:4,eQa:5,Wka:6};var pP={Cra:0,jra:101,pra:102,dra:103,hra:104,mra:105,nra:106,qra:107,rra:108,tra:109,ura:110,Bra:111,ora:112,kra:113,sra:114,wra:115,Dra:116,gra:117,lra:118,Era:119,xra:120,yra:121,ira:122,fra:123,vra:124,Ara:125,zra:126};var DIa={Nra:0,Kra:1,Lra:2,Ira:3,Jra:4,Hra:5,Mra:6};var ufb={Hsa:0,Gsa:1,Esa:2,Fsa:3};var vfb={Ssa:0,Qsa:1,Jsa:2,Psa:3,Isa:4,Msa:5,Osa:6,Rsa:7,Nsa:8,Lsa:9,Ksa:10};var wfb={Usa:0,Vsa:1,Tsa:2};g.w(Yz,Q);g.w(Zz,Q);g.w($z,Q);$z.prototype.getState=function(){return Aj(this,1)};
$z.prototype.Gc=function(a){return Gj(this,1,a)};g.w(aA,Q);g.w(bA,Q);g.w(cA,Q);g.w(dA,Q);g.w(eA,Q);eA.prototype.Se=function(){return g.Dj(this,1)};
eA.prototype.setVideoId=function(a){return N(this,1,a)};g.w(fA,Q);fA.prototype.Gg=function(a){ik(this,1,a)};g.w(gA,Q);gA.prototype.Wj=function(){return Si(this,fA,2)};g.w(hA,Q);hA.prototype.hasFeature=function(){return null!=Pi(this,1)};g.w(iA,Q);g.w(jA,Q);g.w(kA,Q);kA.prototype.Lf=function(){return Ej(this,2)};
var xfb=[1];g.w(sA,Q);g.w(tA,Q);g.w(uA,Q);g.w(vA,Q);vA.prototype.getVideoAspectRatio=function(){return pea(this,2)};g.w(wA,Q);g.w(xA,Q);g.w(yA,Q);g.w(zA,Q);g.w(AA,Q);g.w(BA,Q);g.w(CA,Q);g.w(DA,Q);g.w(EA,Q);g.w(FA,Q);g.w(GA,Q);GA.prototype.getId=function(){return g.Dj(this,1)};g.w(HA,Q);g.w(IA,Q);g.w(JA,Q);JA.prototype.j=function(a,b){return wj(this,5,IA,a,b)};
JA.Fb=[5];g.w(KA,Q);g.w(LA,Q);g.w(MA,Q);MA.prototype.j=function(a,b){return wj(this,27,LA,a,b)};
MA.Fb=[27];g.w(NA,Q);g.w(OA,Q);g.w(PA,Q);g.w(QA,Q);var K2=[1,2,3,4];g.w(RA,Q);g.w(SA,Q);g.w(TA,Q);g.w(UA,Q);g.w(VA,Q);VA.prototype.dn=function(){return Cj(this,2)};g.w(WA,Q);g.w(XA,Q);g.w(YA,Q);g.w(ZA,Q);g.w($A,Q);g.w(aB,Q);g.w(bB,Q);bB.prototype.j=function(a,b){return kk(this,1,a,b)};
bB.Fb=[1];g.w(cB,Q);cB.prototype.Lf=function(){return Ej(this,3)};g.w(dB,Q);g.w(eB,Q);g.w(fB,Q);g.w(Wla,Q);g.w(gB,Q);gB.prototype.j=function(a,b){return wj(this,2,fB,a,b)};
gB.prototype.B=function(a,b){return wj(this,3,fB,a,b)};
gB.Fb=[2,3];g.w(hB,Q);g.w(Xla,Q);g.w(iB,Q);iB.prototype.Se=function(){return g.sj(this,hB,rj(this,L2,2))};
iB.prototype.setVideoId=function(a){return uj(this,hB,2,L2,a)};
iB.prototype.getPlaylistId=function(){return g.sj(this,eB,rj(this,L2,4))};
var L2=[2,3,4,5];g.w(jB,Q);jB.prototype.getType=function(){return Ej(this,1)};
jB.prototype.Se=function(){return g.Dj(this,3)};
jB.prototype.setVideoId=function(a){return N(this,3,a)};g.w(Yla,Q);g.w(Zla,Q);g.w(kB,Q);var AJa=[3];g.w($la,Q);g.w(ama,Q);g.w(lB,Q);lB.prototype.yf=function(){return g.Dj(this,2)};g.w(bma,Q);g.w(cma,Q);var yfb=[1];g.w(dma,Q);g.w(ema,Q);g.w(fma,Q);g.w(gma,Q);g.w(hma,Q);g.w(ima,Q);g.w(jma,Q);g.w(kma,Q);g.w(mB,Q);mB.prototype.getStarted=function(){return zj(Kda(Pi(this,1)),!1)};g.w(lma,Q);g.w(mma,Q);g.w(nB,Q);nB.prototype.getDuration=function(){return Aj(this,2)};
nB.prototype.wl=function(a){Gj(this,2,a)};g.w(nma,Q);g.w(oB,Q);g.w(pB,Q);g.w(oma,Q);g.w(pma,Q);g.w(qB,Q);qB.prototype.Kf=function(){return g.sj(this,oma,8)};
qB.prototype.O5=function(){return Si(this,oma,8)};
qB.prototype.getVideoData=function(){return g.sj(this,pma,15)};
qB.prototype.pF=function(a){tj(this,pma,15,a)};
qB.Fb=[4];g.w(qma,Q);g.w(rB,Q);rB.prototype.j=function(a){return N(this,2,a)};g.w(sB,Q);sB.prototype.j=function(a){return N(this,1,a)};
sB.Fb=[3];g.w(tB,Q);tB.prototype.j=function(a){return N(this,1,a)};
tB.prototype.Wj=function(){return Si(this,fA,2)};g.w(uB,Q);uB.prototype.j=function(a){return N(this,1,a)};
uB.prototype.Wj=function(){return Si(this,fA,2)};g.w(vB,Q);vB.prototype.j=function(a){return N(this,1,a)};
vB.prototype.Wj=function(){return Si(this,fA,2)};g.w(wB,Q);wB.prototype.j=function(a){return N(this,1,a)};
wB.prototype.Wj=function(){return Si(this,fA,2)};g.w(uma,Q);g.w(xB,Q);xB.prototype.getId=function(){return g.Dj(this,2)};g.w(AB,Q);AB.prototype.getVisibilityState=function(){return Ej(this,5)};
AB.Fb=[16];g.w(vma,Q);g.w(BB,Q);BB.prototype.getPlayerType=function(){return Ej(this,7)};
BB.prototype.Se=function(){return g.Dj(this,19)};
BB.prototype.setVideoId=function(a){return N(this,19,a)};
BB.Fb=[112,83,118,68];g.w(wma,Q);g.w(xma,Q);g.w(DB,Q);DB.prototype.Se=function(){return g.Dj(this,1)};
DB.prototype.setVideoId=function(a){return N(this,1,a)};
DB.prototype.j=function(a,b){return wj(this,9,xma,a,b)};
DB.Fb=[9];g.w(EB,Q);EB.prototype.j=function(a,b){return wj(this,3,DB,a,b)};
EB.Fb=[3];g.w(FB,Q);FB.prototype.Se=function(){return g.Dj(this,1)};
FB.prototype.setVideoId=function(a){return N(this,1,a)};g.w(yma,Q);g.w(GB,Q);GB.prototype.j=function(a,b){return wj(this,1,FB,a,b)};
GB.prototype.B=function(a,b){return wj(this,2,yma,a,b)};
GB.Fb=[1,2];g.w(zma,Q);g.w(Ama,Q);g.w(Bma,Q);g.w(HB,Q);HB.prototype.getId=function(){return g.Dj(this,1)};
HB.prototype.j=function(a,b){return nj(this,2,si(a),b)};
HB.prototype.setVideoIds=function(a,b){return gea(this,2,a,si(b),lea)};
HB.Fb=[2];g.w(Cma,Q);g.w(Dma,Q);g.w(Ema,Q);g.w(IB,Q);IB.prototype.j=function(a,b){return kk(this,9,a,b)};
IB.Fb=[9];g.w(Fma,Q);g.w(Gma,Q);g.w(JB,Q);JB.prototype.getId=function(){return g.Dj(this,1)};
JB.prototype.j=function(a,b){return wj(this,14,Ema,a,b)};
JB.prototype.B=function(a,b){return wj(this,17,Fma,a,b)};
JB.Fb=[14,17];g.w(KB,Q);KB.prototype.B=function(a,b){return wj(this,1,JB,a,b)};
KB.prototype.j=function(a,b){return wj(this,2,HB,a,b)};
KB.Fb=[1,2];g.w(Hma,Q);g.w(LB,Q);LB.prototype.getOrigin=function(){return g.Dj(this,3)};
LB.prototype.rg=function(){return Aj(this,6)};g.w(MB,Q);MB.prototype.Rw=function(a){Ij(this,2,a)};g.w(Ima,Q);g.w(NB,Q);
var MF=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,354,
355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485];var zfb={gsa:0,dsa:1,csa:2,fsa:3,esa:4,Zra:5,bsa:6};var Afb={Cza:0,mza:1,pza:2,nza:3,sza:4,oza:5,Xya:6,xza:7,gza:8,Rya:9,hza:10,tza:11,qza:12,Zya:13,Vya:14,Yya:15,Bza:16,Sya:17,Tya:18,yza:19,aza:20,Wya:21,wza:22,Iza:23,Hza:24,Dza:25,iza:26,rza:27,Jza:28,bza:29,Pya:30,Fza:31,Eza:32,fza:33,Mza:34,eza:35,uza:36,Lza:37,jza:38,vza:39,dza:40,cza:41,Uya:42,lza:43,Kza:44,Aza:45,Gza:46,kza:47,Qya:48};var Bfb={wAa:0,hAa:1,kAa:2,iAa:3,nAa:4,jAa:5,Wza:6,sAa:7,bAa:8,Pza:9,cAa:10,oAa:11,lAa:12,Yza:13,Uza:14,Xza:15,vAa:16,Rza:17,Sza:18,tAa:19,Zza:20,Vza:21,rAa:22,BAa:23,AAa:24,xAa:25,dAa:26,mAa:27,CAa:28,aAa:29,Nza:30,yAa:31,Qza:32,FAa:33,pAa:34,EAa:35,eAa:36,qAa:37,Tza:38,gAa:39,DAa:40,uAa:41,zAa:42,fAa:43,Oza:44};var Cfb={rCa:0,qCa:1,sCa:2};var Dfb={rBa:0,pBa:1,lBa:3,nBa:4,oBa:5,qBa:6,mBa:7};var Efb={xBa:0,uBa:1,wBa:2,vBa:3,tBa:4,sBa:5};var Ffb={hCa:0,iCa:1,gCa:2,fCa:3,eCa:4};var Gfb={lCa:0,jCa:1,kCa:2};var Hfb={xCa:0,yCa:1,zCa:2,wCa:3,uCa:4,vCa:5};var Qta={iDa:0,PCa:1,VCa:2,WCa:4,cDa:8,XCa:16,YCa:32,hDa:64,gDa:128,RCa:256,TCa:512,aDa:1024,SCa:2048,UCa:4096,QCa:8192,ZCa:16384,dDa:32768,bDa:65536,eDa:131072,fDa:262144};var CIa={MDa:0,LDa:1,KDa:2,JDa:4};var BIa={RDa:0,ODa:1,PDa:2,SDa:3,QDa:4,NDa:5};var Ifb={Bya:0,Aya:1,zya:2};var Jfb={GLa:0,FLa:1,ELa:2};var Kfb={xMa:0,dMa:1,vMa:2,hMa:3,nMa:4,zMa:5,wMa:6,TLa:7,SLa:8,RLa:9,XLa:10,cMa:11,bMa:12,ULa:13,oMa:14,jMa:15,lMa:16,JLa:17,uMa:18,NLa:19,kMa:20,ILa:21,mMa:22,aMa:23,KLa:24,MLa:25,rMa:26,yMa:27,sMa:28,iMa:29,VLa:30,YLa:31,ZLa:32,QLa:33,AMa:34,OLa:35,WLa:36,pMa:37,LLa:38,HLa:39,PLa:41,gMa:42,qMa:43,tMa:44,eMa:45,fMa:46};var Lfb={EMa:0,DMa:1,CMa:2,BMa:3};var SHa={Ama:0,zma:1,yma:2};var OHa={mNa:0,lNa:1,iNa:2,jNa:7,hNa:8,gNa:25,SMa:3,TMa:4,bNa:5,cNa:27,aNa:28,UMa:9,IMa:10,GMa:11,HMa:6,RMa:12,PMa:13,QMa:14,OMa:15,WMa:16,XMa:17,VMa:18,ZMa:19,YMa:20,LMa:26,MMa:21,KMa:22,NMa:23,JMa:24,nNa:29,dNa:30,eNa:32,fNa:33,kNa:31};var QHa={sNa:0,pNa:1,qNa:2,rNa:3,oNa:4};var PHa={yNa:0,wNa:1,xNa:2,uNa:3,vNa:4,tNa:5};var tHa={FNa:0,zNa:1,BNa:2,ANa:3,CNa:4,DNa:5,ENa:6,GNa:7};var THa={eOa:0,ZNa:1,dOa:2,bOa:3,cOa:4,aOa:5};var VHa={pOa:0,fOa:1,jOa:2,nOa:3,oOa:4,kOa:5,lOa:6,mOa:7,hOa:8,gOa:9,iOa:10};var UHa={tOa:0,qOa:1,rOa:2,sOa:3};var PIa={Asa:0,ysa:1,zsa:2,vsa:3,wsa:4,xsa:5};var UIa={iSa:0,hSa:1,aSa:2,fSa:3,bSa:4,eSa:5,gSa:6,dSa:7,cSa:8};var oIa={CSa:0,uSa:1,DSa:2,BSa:4,ySa:8,xSa:16,wSa:32,zSa:64,vSa:128,ASa:256};var QIa={VSa:0,QSa:1,USa:2,NSa:3,FSa:4,LSa:5,GSa:6,HSa:7,JSa:8,OSa:9,SSa:10,RSa:11,TSa:12,ISa:13,KSa:14,MSa:15,PSa:16,ESa:17};var lIa={XRa:0,URa:1,VRa:2,WRa:3};var rIa={pSa:0,rSa:1,oSa:2,kSa:3,qSa:4,lSa:5,mSa:6,nSa:7};var zHa={H$a:0,kpa:1,qLa:2,jQa:3,lQa:4,mQa:5,gQa:6,o5a:7,CQa:8,BQa:9,hQa:10,kQa:11,T6a:12,Ifa:13,Qfa:14,Jfa:15,oVa:16,PRa:17,DQa:18,GQa:19,tSa:20,FQa:21,jSa:22,WSa:23,LQa:24,ZRa:25,iQa:26,l5a:27,v3a:28,VXa:29,Bma:30,Bdb:31,YRa:32};var yHa={K$a:0,Qba:1,YSa:2,XSa:3,SUCCESS:4,a5a:5,Cya:6,KXa:7,kBa:9,lpa:10,ara:11,CANCELLED:12,UXa:13,w3a:14,B3a:15,dab:16};var xHa={h7a:0,Y6a:1,d7a:2,c7a:3,Z6a:4,a7a:5,U6a:6,g7a:7,f7a:8,X6a:9,W6a:10,b7a:11,e7a:12,V6a:13};var KHa={dVa:0,SUa:1,WUa:2,UUa:3,cVa:4,VUa:5,ZUa:6,YUa:7,XUa:8,TUa:9,aVa:10,bVa:11};var Mfb={lWa:0,kWa:1,jWa:2};var Nfb={oWa:0,mWa:1,nWa:2};var NHa={YYa:0,WYa:1,VYa:2,XYa:3,UYa:4};var RHa={dZa:0,ZYa:1,aZa:2,cZa:3,bZa:4,eZa:5};var Ofb={lZa:0,mZa:1};var vJa={sZa:0,qZa:1,rZa:2,tZa:3};var Pfb={I1a:0,G1a:1,H1a:2};var Qfb={y4a:0,u4a:1,v4a:2,w4a:3,x4a:4};var qIa={U1a:0,S1a:1,T1a:2};var TIa={o2a:0,l2a:1,m2a:2,n2a:3};var gIa={Jja:0,Ija:1,Gja:2,Hja:3};var jIa={yka:0,rka:1,xka:2,uka:3,nka:4,oka:5,mka:6,tka:7,wka:8,qka:9,zka:10,Aka:11,pka:12,vka:13,ska:14};var JIa={Mla:0,Gla:1,Jla:2,Kla:3,Ila:4,Lla:5,Nla:6,Hla:7};var aIa={Jpa:0,Ipa:1,Kpa:2};var CHa={F$a:0,Doa:1,Eoa:2,Coa:3,Foa:4};var BHa={G$a:0,bWa:1,KUa:2};var MIa={Lya:0,Hya:1,Dya:2,Kya:3,Fya:4,Iya:5,Gya:6,Eya:7,Jya:8};var OIa={pCa:0,oCa:1,nCa:2};var IIa={pLa:0,oLa:1,nLa:2};var LIa={VPa:0,UPa:1,TPa:2};var HIa={AYa:0,yYa:1,zYa:2};var eIa={e5a:0,d5a:1,c5a:2};var Rfb={LKa:0,HKa:1,IKa:2,JKa:3,KKa:4,MKa:5};var Sfb={mVa:0,jVa:1,hVa:2,eVa:3,iVa:4,kVa:5,fVa:6,gVa:7,lVa:8,nVa:9};var Tfb={u6a:0,V5a:1,y6a:2,z6a:3,w6a:4,v6a:16,x6a:47,Q5a:17,W5a:33,P5a:35,H5a:36,S5a:34,t6a:38,U5a:45,b6a:8,N5a:39,K5a:40,D5a:41,G5a:42,J5a:43,C5a:46,F5a:44,T5a:5,a6a:6,s6a:7,r6a:9,E5a:10,q6a:11,I5a:12,p6a:13,O5a:14,Z5a:15,Y5a:18,X5a:19,M5a:20,R5a:21,L5a:22,m6a:23,o6a:24,f6a:25,n6a:26,d6a:27,i6a:28,e6a:29,h6a:30,j6a:31,g6a:32,k6a:37,l6a:48};var Ufb={C6a:0,B6a:1,D6a:2};var uJa={xdb:0,idb:1,pdb:2,odb:3,hdb:4,ydb:5,vdb:6,jdb:7,kdb:8,ndb:9,mdb:12,edb:10,wdb:11,rdb:13,sdb:14,zdb:15,qdb:16,tdb:17,fdb:18,udb:19,gdb:20,Adb:21,ldb:22};var oJa={mDa:0,kDa:1,lDa:2,jDa:3};g.w(Jma,Q);g.w(OB,Q);OB.prototype.Se=function(){return yj(this,rj(this,DF,1))};
OB.prototype.setVideoId=function(a){return pj(this,1,DF,ti(a))};
OB.prototype.getPlaylistId=function(){return yj(this,rj(this,DF,2))};
var DF=[1,2];g.w(Kma,Q);Kma.Fb=[3];var uT=new g.Lv("changeKeyedMarkersVisibilityCommand");var Vfb=new g.Lv("changeMarkersVisibilityCommand");var CQa=new g.Lv("loadMarkersCommand");var RWa=new g.Lv("productListItemRenderer");var Wfb=new g.Lv("shoppingOverlayRenderer");g.XQa=new g.Lv("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var Xfb=new g.Lv("adFeedbackEndpoint");var iWa=new g.Lv("phoneDialerEndpoint");var gWa=new g.Lv("sendSmsEndpoint");var VQa=new g.Lv("copyTextEndpoint");var Yfb=new g.Lv("webPlayerShareEntityServiceEndpoint");g.IG=new g.Lv("urlEndpoint");g.sT=new g.Lv("watchEndpoint");var Zfb=new g.Lv("watchPlaylistEndpoint");var YIa={xma:0,wma:1,vma:2,tma:3,uma:4};var nIa={AQa:0,yQa:1,zQa:2,xQa:3};var $fb={QQa:0,PQa:1,NQa:2,OQa:3};var agb={UQa:0,RQa:1,SQa:2,TQa:3,VQa:4};var bgb={MRa:0,HRa:1,NRa:2,JRa:3,ARa:4,rRa:37,cRa:5,ZQa:36,eRa:38,mRa:39,nRa:40,iRa:41,LRa:42,fRa:27,wRa:31,yRa:6,BRa:7,CRa:8,DRa:9,ERa:10,FRa:11,IRa:29,gRa:30,xRa:32,qRa:12,pRa:13,bRa:14,vRa:15,WQa:16,YQa:35,dRa:43,hRa:28,tRa:17,sRa:18,uRa:19,KRa:20,lRa:25,aRa:33,zRa:44,ORa:21,oRa:22,kRa:26,jRa:34,GRa:23,XQa:24};var WIa={TRa:0,RRa:1,QRa:2,SRa:3};var qP={A3a:0,x3a:1,z3a:2,y3a:3};var AHa={S6a:0,G6a:1,F6a:2,L6a:3,R6a:4,H6a:5,O6a:6,M6a:7,N6a:8,I6a:9,P6a:10,J6a:11,Q6a:12,K6a:13};var kIa={sSa:0,MQa:1,EQa:2,JQa:3,KQa:4,HQa:5,IQa:6};var cgb={hZa:0,gZa:1};var dgb={B4a:0,A4a:1,z4a:2,C4a:3};var egb={F4a:0,E4a:1,D4a:2};var fgb={P4a:0,J4a:1,K4a:2,L4a:5,O4a:7,Q4a:8,M4a:9,N4a:10};var ggb={I4a:0,H4a:1,G4a:2};var RSa=new g.Lv("compositeVideoOverlayRenderer");var hgb=new g.Lv("miniplayerRenderer");var iQa=new g.Lv("playerMutedAutoplayOverlayRenderer"),jQa=new g.Lv("playerMutedAutoplayEndScreenRenderer");var sPa=new g.Lv("unserializedPlayerResponse"),kQa=new g.Lv("unserializedPlayerResponse");var igb=new g.Lv("playlistEditEndpoint");var M2;g.lN=new g.Lv("buttonRenderer");M2=new g.Lv("toggleButtonRenderer");var mIa={I$a:0,LHa:4,CYa:1,gBa:2,ola:3,MHa:5,FYa:6,hBa:7,iBa:8,jBa:9};var jgb=new g.Lv("resolveUrlCommandMetadata");var kgb=new g.Lv("modifyChannelNotificationPreferenceEndpoint");var Lxa=new g.Lv("pingingEndpoint");var lgb=new g.Lv("unsubscribeEndpoint");var lGa={L$a:0,ePa:1,aPa:2,ZOa:3,AOa:71,zOa:4,cPa:5,fPa:6,dPa:16,bPa:69,BOa:70,wOa:56,xOa:64,yOa:65,NOa:7,DOa:8,IOa:9,EOa:10,HOa:11,GOa:12,FOa:13,KOa:43,QOa:44,ROa:45,SOa:46,TOa:47,UOa:48,VOa:49,WOa:50,XOa:51,YOa:52,OOa:53,POa:54,MOa:63,COa:14,LOa:15,JOa:68,tcb:17,Ccb:18,Lbb:19,scb:20,gcb:21,ucb:22,Dbb:23,ocb:24,jcb:25,Qbb:26,Bbb:27,Xbb:28,rcb:29,xbb:30,wbb:31,zbb:32,Ebb:33,pcb:34,ncb:35,hcb:36,lcb:37,vcb:38,Tbb:39,Bcb:40,Zbb:41,Obb:42,wcb:55,kcb:66,Tcb:67,dcb:57,qcb:58,Fbb:59,Abb:60,Ubb:61,icb:62};var mgb={TZa:0,VZa:1,LZa:2,DZa:3,QZa:4,RZa:5,WZa:6,uZa:7,vZa:8,BZa:9,MZa:10,EZa:11,IZa:12,GZa:13,HZa:14,JZa:15,KZa:19,xZa:16,PZa:17,NZa:18,zZa:20,FZa:21,wZa:22,UZa:23,CZa:24,yZa:25,SZa:26,AZa:27,OZa:28};g.ET=new g.Lv("subscribeButtonRenderer");var ngb=new g.Lv("subscribeEndpoint");var hIa={Y1a:0,W1a:1,X1a:2};var NSa=new g.Lv("buttonViewModel");var WJa={n_a:0,o_a:1,m_a:2,i_a:3,l_a:4,j_a:5,h_a:6,k_a:7};var zCa=new g.Lv("qrCodeRenderer");var IOa={UKa:"LIVING_ROOM_APP_MODE_UNSPECIFIED",RKa:"LIVING_ROOM_APP_MODE_MAIN",QKa:"LIVING_ROOM_APP_MODE_KIDS",SKa:"LIVING_ROOM_APP_MODE_MUSIC",TKa:"LIVING_ROOM_APP_MODE_UNPLUGGED",PKa:"LIVING_ROOM_APP_MODE_GAMING"};var tQa=new g.Lv("autoplaySwitchButtonRenderer");var APa,eYa,BPa,qYa;APa=new g.Lv("decoratedPlayerBarRenderer");eYa=new g.Lv("chapteredPlayerBarRenderer");BPa=new g.Lv("multiMarkersPlayerBarRenderer");qYa=new g.Lv("chapterRenderer");g.iYa=new g.Lv("markerRenderer");var yQa=new g.Lv("desktopOverlayConfigRenderer");var wQa=new g.Lv("gatedActionsOverlayViewModel");var mYa=new g.Lv("heatMarkerRenderer");var lYa=new g.Lv("heatmapRenderer");var GSa=new g.Lv("culturalMomentOverlayRenderer"),BQa=new g.Lv("watchToWatchTransitionRenderer");var YQa=new g.Lv("playlistPanelRenderer");var bTa=new g.Lv("speedmasterEduViewModel");var ogb=new g.Lv("suggestedActionTimeRangeTrigger"),pgb=new g.Lv("suggestedActionsRenderer"),qgb=new g.Lv("suggestedActionRenderer");var nYa=new g.Lv("timedMarkerDecorationRenderer");var rgb={Scb:0,Ocb:1,Pcb:2,Rcb:3,Qcb:4,Ncb:5,Mcb:6,Icb:7,Kcb:8,Lcb:9,Jcb:10,Gcb:11,Ecb:12,Dcb:13,Hcb:14,Fcb:15};var lP={o3:0,USER:74,Gka:459,TRACK:344,Hka:493,Uka:419,rEa:494,rma:337,MINUTE:237,HOUR:236,DAY:3,WEEK:78,Ucb:248,MONTH:79,QUARTER:246,YEAR:247,pQa:382,oQa:383,nQa:384,g5a:235,VIDEO:4,Xcb:186,wpa:126,t4a:127,Epa:117,rXa:125,xYa:151,Xra:515,opa:6,SAa:132,XAa:154,VAa:222,WAa:155,TAa:221,UAa:156,s4a:209,r4a:210,lbb:7,IXa:124,V1a:96,aQa:97,rbb:93,vJa:574,sbb:275,Dla:110,Cla:120,iWa:121,ECa:72,dbb:351,XZa:495,bbb:377,ebb:378,Mya:496,Nya:497,YZa:498,Ela:381,cbb:386,tbb:387,lka:410,sDa:437,tta:338,Ala:380,
Oba:352,PUa:113,QUa:114,x5a:82,y5a:112,Vra:354,s5a:21,kka:556,JUa:567,WXa:566,A6a:568,rsa:523,tsa:375,ssa:514,Kfa:302,Gpa:136,FCa:85,fga:22,adb:23,B5a:252,A5a:253,XTa:562,Fpa:563,yla:254,Hfa:165,q4a:304,gEa:421,qYa:463,PLAYLIST:63,jbb:27,hbb:28,kbb:29,i4a:30,l4a:31,k4a:324,m4a:32,Ola:398,o4a:399,p4a:400,cQa:411,bQa:413,dQa:414,fQa:415,BXa:39,CXa:143,GXa:144,xXa:40,yXa:145,AXa:146,Vab:504,FXa:325,BVa:262,DVa:263,CVa:264,FVa:355,GVa:249,IVa:250,HVa:251,Xoa:46,iZa:49,kZa:50,Afa:62,r5a:561,INa:105,lEa:242,
u3a:397,rWa:83,OUa:135,hka:87,jka:153,ika:187,bka:89,aka:88,cka:139,fka:91,dka:104,gka:137,Ioa:99,W$a:100,YPa:326,Pra:148,Ora:149,g4a:150,h4a:395,Yka:166,hla:199,Zka:534,gla:167,dla:168,lla:169,mla:170,ela:171,fla:172,ila:179,jla:180,nla:512,kla:513,pab:200,X$a:476,qab:213,Vka:191,EVa:192,yVa:305,zVa:306,KVa:329,h2a:327,i2a:328,uVa:195,vVa:197,RUa:301,pVa:223,qVa:224,eEa:227,vDa:396,sEa:356,mEa:490,tEa:394,Cma:230,qla:297,Dab:298,dEa:342,Yra:346,vya:245,z5a:261,ICa:265,NCa:266,JCa:267,GCa:268,HCa:269,
MCa:270,KCa:271,LCa:272,FKa:303,wJa:391,xJa:503,zJa:277,NKa:499,OKa:500,DKa:501,GKa:278,yJa:489,ata:332,dta:333,Ysa:334,bta:335,Zsa:336,Hoa:340,XDa:341,Uab:349,Sab:420,EXa:281,zXa:282,jZa:286,j4a:288,DXa:291,HXa:292,uJa:295,n4a:296,tJa:299,Mfa:417,wEa:308,bdb:309,cdb:310,ddb:311,Mga:350,sab:418,YBa:424,Y$a:425,qQa:429,ZPa:430,qEa:426,q3a:460,XPa:427,ZXa:428,aYa:542,XXa:461,j2a:464,NNa:431,LNa:432,SNa:433,KNa:434,PNa:435,QNa:436,MNa:438,RNa:439,TNa:453,ONa:454,JNa:472,E$a:557,YXa:558,zla:559,Bla:560,
wla:565,zWa:545,vWa:546,KWa:547,NWa:548,MWa:549,LWa:550,AWa:551,JWa:552,sWa:554,wWa:577,yWa:579,uWa:580,xla:583,PWa:584,CWa:516,DWa:544,EWa:553,GWa:519,FWa:570,HWa:571,BWa:572,IWa:573,OWa:585,k5a:520,tWa:521,xWa:522,nEa:543,aWa:440,cWa:441,gWa:442,YVa:448,ZVa:449,dWa:450,hWa:451,fWa:491,POST:445,XVa:446,eWa:447,SWa:456,rQa:483,ega:569,ipa:576,TWa:529,jpa:581,t5a:555,RWa:458,nZa:480,oZa:502,pZa:482,YDa:452,a_a:465,b_a:466,cra:467,QWa:468,eta:469,Voa:470,Uoa:471,WDa:475,Vpa:477,aEa:478,cBa:479,LVa:484,
JVa:485,xVa:486,wVa:487,Rfa:488,Dsa:492,gta:505,qsa:506,mbb:507,EFa:508,aBa:509,dBa:510,fBa:511,Cab:524,fbb:530,HYa:531,fta:532,f_a:533,GYa:575,bEa:535,vEa:536,hEa:537,pEa:538,cEa:539,kEa:540,fEa:541,rLa:578,Dfa:582};var QKa=new g.Lv("cipher");var tPa=new g.Lv("playerVars");var lQa=new g.Lv("playerVars");var N2=g.Qa.window,sgb,tgb,PB=(null==N2?void 0:null==(sgb=N2.yt)?void 0:sgb.config_)||(null==N2?void 0:null==(tgb=N2.ytcfg)?void 0:tgb.data_)||{};g.Sa("yt.config_",PB);var UB=[];var Xma=/^[\w.]*$/,Uma={q:!0,search_query:!0},Tma=String(YB);var Yma=new function(){var a=window.document;this.j=window;this.B=a};
g.Sa("yt.ads_.signals_.getAdSignalsString",function(a){return ZB(gC(a))});g.eb();var ana="XMLHttpRequest"in g.Qa?function(){return new XMLHttpRequest}:null;var ugb="client_dev_domain client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");[].concat(g.pa(ugb),["client_dev_set_cookie"]);var cna={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL",
"X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},ena="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.pa(ugb)),kna=!1,S$a=nC;g.w(pC,vb);sC.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):1===this.B&&a?(a=a.call(c,this.ge))&&"function"===typeof a.then?a:uC(a):2===this.B&&b?(a=b.call(c,this.ge))&&"function"===typeof a.then?a:tC(a):this};
sC.prototype.getValue=function(){return this.ge};
sC.prototype.$goog_Thenable=!0;var vC=!1;var cE=EC||FC;var Nna=/^([0-9\.]+):([0-9\.]+)$/;g.w(Sna,vb);Sna.prototype.name="BiscottiError";g.w(PC,vb);PC.prototype.name="BiscottiMissingError";var Una={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},QC=null;var boa=na(["data-"]),foa={};var vgb=0,goa=g.Pc?"webkit":zr?"moz":g.bf?"ms":g.dS?"o":"",wgb=g.Ta("ytDomDomGetNextId")||function(){return++vgb};
g.Sa("ytDomDomGetNextId",wgb);var loa={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};VC.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
VC.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
VC.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var WC=g.Qa.ytEventsEventsListeners||{};g.Sa("ytEventsEventsListeners",WC);var ooa=g.Qa.ytEventsEventsCounter||{count:0};g.Sa("ytEventsEventsCounter",ooa);var toa=Md(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),poa=Md(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var O2;O2=window;g.OD=O2.ytcsi&&O2.ytcsi.now?O2.ytcsi.now:O2.performance&&O2.performance.timing&&O2.performance.now&&O2.performance.timing.navigationStart?function(){return O2.performance.timing.navigationStart+O2.performance.now()}:function(){return(new Date).getTime()};g.gb($C,g.J);$C.prototype.ea=function(a){void 0===a.j&&moa(a);var b=a.j;void 0===a.B&&moa(a);this.j=new g.ue(b,a.B)};
$C.prototype.kt=function(){return this.j||new g.ue};
$C.prototype.qa=function(){if(this.j){var a=(0,g.OD)();if(0!=this.D){var b=this.K,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.D);this.B[this.C]=.5<Math.abs((d-this.G)/this.G)?1:0;for(c=b=0;4>c;c++)b+=this.B[c]||0;3<=b&&this.S();this.G=d}this.D=a;this.K=this.j;this.C=(this.C+1)%4}};
$C.prototype.Ba=function(){g.mC(this.ma);g.YC(this.va)};g.w(aD,g.J);aD.prototype.V=function(a,b,c,d,e){c=g.WB((0,g.cb)(c,d||this.rb));c={target:a,name:b,callback:c};var f;e&&toa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.S.push(c);return c};
aD.prototype.Qc=function(a){for(var b=0;b<this.S.length;b++)if(this.S[b]==a){this.S.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
aD.prototype.Ba=function(){g.cD(this);g.J.prototype.Ba.call(this)};dD.prototype.clone=function(){var a=new dD,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Va(c)?g.pd(c):c}return a};var wRa=["att/get"],iUa=["embedded_player"],xgb=["share/get_web_player_share_panel"],ygb=["feedback"],zgb=["notification/modify_channel_preference"],$8a=["player"],Agb=["browse/edit_playlist"],Bgb=["subscription/subscribe"],Cgb=["subscription/unsubscribe"],d9a=["next","unplugged/watch_next"];var voa;g.eD=Md(function(){var a=new Pu;return a.isAvailable()?new g.Mu(a):null});
voa=Md(function(){var a=new kla;return a.isAvailable()?new g.Mu(a):null});jD.prototype.UC=function(a,b){a={};var c=Qea([]);c&&(a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.Iv("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.SB("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in PB||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in PB&&(a["X-Goog-PageId"]=g.Iv("DELEGATED_SESSION_ID")));return a};var pE={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var mD=g.Ta("ytglobal.prefsUserPrefsPrefs_")||{};g.Sa("ytglobal.prefsUserPrefsPrefs_",mD);var Coa;g.k=Boa.prototype;g.k.get=function(a,b){Goa(a);Foa(a);a=void 0!==mD[a]?mD[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){Goa(a);Foa(a);if(null==b)throw Error("ExpectedNotNull");mD[a]=b.toString()};
g.k.remove=function(a){Goa(a);Foa(a);delete mD[a]};
g.k.save=function(){var a=!0;g.SB("web_secure_pref_cookie_killswitch")&&(a=!1);g.xC(this.j,this.dump(),63072E3,this.B,a)};
g.k.clear=function(){g.dba(mD)};
g.k.dump=function(){var a=[],b;for(b in mD)mD.hasOwnProperty(b)&&a.push(b+"="+encodeURIComponent(String(mD[b])));return a.join("&")};
g.k.parse=function(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(mD[d]=c.toString())}};var Ioa={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},pqa={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11,
CONN_CELLULAR_5G_NSA:12,CONN_WIRED:30,CONN_INVALID:31},qqa={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},Koa={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.w(g.nD,Error);qD.prototype.Ii=function(a,b){return rD(a,1,b)};
qD.prototype.O3=function(a){(a=this.j.get(a))&&a()};g.Ta("yt.scheduler.instance.timerIdMap_");g.w(tD,qD);tD.prototype.Lj=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ta("yt.scheduler.instance.cancelJob");b?b(a):g.lC(a)}};
tD.prototype.start=function(){var a=g.Ta("yt.scheduler.instance.start");a&&a()};
tD.prototype.pause=function(){var a=g.Ta("yt.scheduler.instance.pause");a&&a()};
g.Tt=g.uD();xD.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.j)try{this.j.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.rm(b))}catch(f){return}else e=escape(b);g.xC(a,e,c,this.B)};
xD.prototype.get=function(a,b){var c=void 0,d=!this.j;if(!d)try{c=this.j.get(a)}catch(e){d=!0}if(d&&(c=g.yC(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
xD.prototype.remove=function(a){this.j&&this.j.remove(a);g.qna(a,"/",this.B)};var Noa=function(){var a;return function(){a||(a=new xD("ytidb"));return a}}();var AD=[],yD,BD=!1;var P2={},Soa=(P2.AUTH_INVALID="No user identifier specified.",P2.EXPLICIT_ABORT="Transaction was explicitly aborted.",P2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",P2.MISSING_INDEX="Index not created.",P2.MISSING_OBJECT_STORES="Object stores not created.",P2.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",P2.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",P2.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",P2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",P2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",P2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",P2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",P2),Q2={},Toa=(Q2.AUTH_INVALID="ERROR",Q2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Q2.EXPLICIT_ABORT="IGNORED",
Q2.IDB_NOT_SUPPORTED="ERROR",Q2.MISSING_INDEX="WARNING",Q2.MISSING_OBJECT_STORES="ERROR",Q2.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Q2.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Q2.QUOTA_EXCEEDED="WARNING",Q2.QUOTA_MAYBE_EXCEEDED="WARNING",Q2.UNKNOWN_ABORT="WARNING",Q2.INCOMPATIBLE_DB_VERSION="WARNING",Q2),R2={},Uoa=(R2.AUTH_INVALID=!1,R2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,R2.EXPLICIT_ABORT=!1,R2.IDB_NOT_SUPPORTED=!1,R2.MISSING_INDEX=!1,R2.MISSING_OBJECT_STORES=!1,R2.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,R2.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,R2.QUOTA_EXCEEDED=!1,R2.QUOTA_MAYBE_EXCEEDED=!0,R2.UNKNOWN_ABORT=!0,R2.INCOMPATIBLE_DB_VERSION=!1,R2);g.w(g.GD,g.nD);g.w(Voa,g.GD);g.w(HD,Error);var Woa=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];g.LD.all=function(a){return new g.LD(new KD(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Bz:0};f.Bz<a.length;f={Bz:f.Bz},++f.Bz)g.LD.resolve(a[f.Bz]).then(function(h){return function(l){d[h.Bz]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
g.LD.resolve=function(a){return new g.LD(new KD(function(b,c){a instanceof g.LD?a.then(b,c):b(a)}))};
g.LD.reject=function(a){return new g.LD(new KD(function(b,c){c(a)}))};
g.LD.prototype.then=function(a,b){var c=this,d=null!=a?a:Zoa,e=null!=b?b:Yoa;return new g.LD(new KD(function(f,h){"PENDING"===c.state.status?(c.j.push(function(){apa(c,c,d,f,h)}),c.B.push(function(){bpa(c,c,e,f,h)})):"FULFILLED"===c.state.status?apa(c,c,d,f,h):"REJECTED"===c.state.status&&bpa(c,c,e,f,h)}))};
g.LD.prototype.catch=function(a){return this.then(void 0,a)};g.k=fpa.prototype;g.k.advance=function(a){this.cursor.advance(a);return ND(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return ND(this.request)};
g.k.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return ND(this.request)};
g.k.getKey=function(){return this.cursor.key};
g.k.EH=function(){return this.cursor.primaryKey};g.k=gpa.prototype;g.k.add=function(a,b,c){return g.RD(this,[a],{mode:"readwrite",kc:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return g.RD(this,[a],{mode:"readwrite",kc:!0},function(b){return b.objectStore(a).clear()})};
g.k.close=function(){this.j.close();var a;(null==(a=this.options)?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return g.RD(this,[a],{mode:"readonly",kc:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return g.RD(this,[a],{mode:"readwrite",kc:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return g.RD(this,[a],{mode:"readonly",kc:!0},function(c){return c.objectStore(a).get(b)})};
g.k.getAll=function(a,b,c){return g.RD(this,[a],{mode:"readonly",kc:!0},function(d){return d.objectStore(a).getAll(b,c)})};
g.k.objectStoreNames=function(){return Array.from(this.j.objectStoreNames)};
g.k.getName=function(){return this.j.name};
g.k=hpa.prototype;g.k.add=function(a,b){return MD(this.j.add(a,b))};
g.k.autoIncrement=function(){return this.j.autoIncrement};
g.k.clear=function(){return MD(this.j.clear()).then(function(){})};
g.k.count=function(a){return MD(this.j.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?lpa(this,a):MD(this.j.delete(a))};
g.k.get=function(a){return MD(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?MD(this.j.getAll(a,b)):mpa(this,a,b)};
g.k.index=function(a){try{return new qpa(this.j.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new HD(a,this.j.name);throw b;}};
g.k.getName=function(){return this.j.name};
g.k.keyPath=function(){return this.j.keyPath};
UD.prototype.abort=function(){this.j.abort();this.B=!0;throw new g.GD("EXPLICIT_ABORT");};
UD.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.C.get(a);b||(b=new hpa(a),this.C.set(a,b));return b};
g.k=qpa.prototype;g.k.count=function(a){return MD(this.j.count(a))};
g.k.delete=function(a){return g.YD(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.k.get=function(a){return MD(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?MD(this.j.getAll(a,b)):rpa(this,a,b)};
g.k.getKey=function(a){return MD(this.j.getKey(a))};
g.k.keyPath=function(){return this.j.keyPath};
g.k.unique=function(){return this.j.unique};
g.k=spa.prototype;g.k.advance=function(a){this.cursor.advance(a);return XD(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return XD(this.request)};
g.k.delete=function(){return MD(this.cursor.delete()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.EH=function(){return this.cursor.primaryKey};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return MD(this.cursor.update(a))};$D.prototype.B=function(a,b,c){c=void 0===c?{}:c;return upa(a,b,c)};
$D.prototype.delete=function(a){a=void 0===a?{}:a;return ZD(this.name,a)};
$D.prototype.open=function(){function a(){var f,h,l,m,n,p,q,r,t,v;return g.H(function(x){switch(x.j){case 1:return h=null!=(f=Error().stack)?f:"",g.za(x,2),g.z(x,c.B(c.name,c.options.version,e),4);case 4:l=x.B;for(var B=c.options,G=[],F=g.u(Object.keys(B.ir)),I=F.next();!I.done;I=F.next()){I=I.value;var P=B.ir[I],R=void 0===P.m$?Number.MAX_VALUE:P.m$;!(l.j.version>=P.Tm)||l.j.version>=R||l.j.objectStoreNames.contains(I)||G.push(I)}m=G;if(0===m.length){x.Ma(5);break}n=Object.keys(c.options.ir);p=l.objectStoreNames();
if(c.G<g.TB("ytidb_reopen_db_retries",0))return c.G++,l.close(),CD(new g.GD("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),x.return(a());if(!(c.D<g.TB("ytidb_remake_db_retries",1))){x.Ma(6);break}c.D++;return g.z(x,c.delete(),7);case 7:return CD(new g.GD("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),x.return(a());case 6:throw new Voa(p,n);case 5:return x.return(l);case 2:q=g.Ca(x);if(q instanceof
DOMException?"VersionError"!==q.name:"DOMError"in self&&q instanceof DOMError?"VersionError"!==q.name:!(q instanceof Object&&"message"in q)||"An attempt was made to open a database using a lower version than the existing version."!==q.message){x.Ma(8);break}return g.z(x,c.B(c.name,void 0,Object.assign({},e,{upgrade:void 0})),9);case 9:r=x.B;t=r.j.version;if(void 0!==c.options.version&&t>c.options.version+1)throw r.close(),c.C=!1,vpa(c,t);return x.return(r);case 8:throw b(),q instanceof Error&&!g.SB("ytidb_async_stack_killswitch")&&
(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),Xoa(q,c.name,"",null!=(v=c.options.version)?v:-1);}})}
function b(){c.j===d&&(c.j=void 0)}
var c=this;if(!this.C)throw vpa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,Z$:b,upgrade:this.options.upgrade};return this.j=d=a()};var wpa=new $D("YtIdbMeta",{ir:{databases:{Tm:1}},upgrade:function(a,b){b(1)&&g.PD(a,"databases",{keyPath:"actualName"})}});var Cpa,Apa=new function(){}(new function(){});new g.Rm;g.w(gE,$D);gE.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.shared?Hpa:Gpa)(a,b,Object.assign({},c))};
gE.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.shared?Lpa:Ipa)(this.name,a)};var Dgb={},Npa=g.hE("ytGcfConfig",{ir:(Dgb.coldConfigStore={Tm:1},Dgb.hotConfigStore={Tm:1},Dgb),shared:!1,upgrade:function(a,b){b(1)&&(g.VD(g.PD(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.VD(g.PD(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.w(Tpa,g.J);Tpa.prototype.Ba=function(){for(var a=g.u(this.B),b=a.next();!b.done;b=a.next()){var c=this.j;b=c.indexOf(b.value);0<=b&&c.splice(b,1)}this.B.length=0;g.J.prototype.Ba.call(this)};nE.prototype.Er=function(a){this.hotHashData=a;g.Sa("yt.gcf.config.hotHashData",this.hotHashData||null)};qE.prototype.Dj=function(){return{version:this.version,args:this.args}};rE.prototype.toString=function(){return this.topic};var Egb=g.Ta("ytPubsub2Pubsub2Instance")||new g.Iu;g.Iu.prototype.subscribe=g.Iu.prototype.subscribe;g.Iu.prototype.unsubscribeByKey=g.Iu.prototype.Wh;g.Iu.prototype.publish=g.Iu.prototype.ra;g.Iu.prototype.clear=g.Iu.prototype.clear;g.Sa("ytPubsub2Pubsub2Instance",Egb);var tE=g.Ta("ytPubsub2Pubsub2SubscribedKeys")||{};g.Sa("ytPubsub2Pubsub2SubscribedKeys",tE);var uE=g.Ta("ytPubsub2Pubsub2TopicToKeys")||{};g.Sa("ytPubsub2Pubsub2TopicToKeys",uE);var tqa=g.Ta("ytPubsub2Pubsub2IsAsync")||{};
g.Sa("ytPubsub2Pubsub2IsAsync",tqa);g.Sa("ytPubsub2Pubsub2SkipSubKey",null);var zqa=g.TB("max_body_size_to_compress",5E5),Aqa=g.TB("min_body_size_to_compress",500),vE=!0,xE=0,wE=0,Cqa=g.TB("compression_performance_threshold_lr",250),Dqa=g.TB("slow_compressions_before_abandon_count",4);g.k=AE.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(zE(this)&&this.wg){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Dh.set(d,this.If).then(function(e){d.id=e;c.nh.Oh()&&c.wD(d)}).catch(function(e){c.wD(d);
BE(c,e)})}else this.Dr(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(zE(this)&&this.wg){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.ob&&this.ob("nwl_skip_retry")&&(e.skipRetry=c);if(this.nh.Oh()||this.ob&&this.ob("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.H(function(m){if(1==m.j)return g.z(m,d.Dh.set(e,d.If).catch(function(n){BE(d,n)}),2);
f(h,l);g.ya(m)})}}this.Dr(a,b,e.skipRetry)}else this.Dh.set(e,this.If).catch(function(h){d.Dr(a,b,e.skipRetry);
BE(d,h)})}else this.Dr(a,b,this.ob&&this.ob("nwl_skip_retry")&&c)};
g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(zE(this)&&this.wg){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){};
d.options.onSuccess=function(h,l){void 0!==d.id?c.Dh.Vy(d.id,c.If):e=!0;c.nh.qw&&c.ob&&c.ob("vss_network_hint")&&c.nh.qw(!0);f(h,l)};
this.Dr(d.url,d.options);this.Dh.set(d,this.If).then(function(h){d.id=h;e&&c.Dh.Vy(d.id,c.If)}).catch(function(h){BE(c,h)})}else this.Dr(a,b)};
g.k.iB=function(){var a=this;if(!zE(this))throw Error("IndexedDB is not supported: throttleSend");this.j||(this.j=this.Jn.Ii(function(){var b;return g.H(function(c){if(1==c.j)return g.z(c,a.Dh.TV("NEW",a.If),2);if(3!=c.j)return b=c.B,b?g.z(c,a.wD(b),3):(a.jM(),c.return());a.j&&(a.j=0,a.iB());g.ya(c)})},this.YZ))};
g.k.jM=function(){this.Jn.Lj(this.j);this.j=0};
g.k.wD=function(a){var b=this,c;return g.H(function(d){switch(d.j){case 1:if(!zE(b))throw Error("IndexedDB is not supported: immediateSend");if(void 0===a.id){d.Ma(2);break}return g.z(d,b.Dh.y6(a.id,b.If),3);case 3:(c=d.B)||b.wz(Error("The request cannot be found in the database."));case 2:if(b.JJ(a,b.eZ)){d.Ma(4);break}b.wz(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){d.Ma(5);break}return g.z(d,b.Dh.Vy(a.id,b.If),5);case 5:return d.return();case 4:a.skipRetry||
(a=Jqa(b,a));if(!a){d.Ma(0);break}if(!a.skipRetry||void 0===a.id){d.Ma(8);break}return g.z(d,b.Dh.Vy(a.id,b.If),8);case 8:b.Dr(a.url,a.options,!!a.skipRetry),g.ya(d)}})};
g.k.JJ=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0};
g.k.MJ=function(){var a=this;if(!zE(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Dh.TV("QUEUED",this.If).then(function(b){b&&!a.JJ(b,a.XY)?a.Jn.Ii(function(){return g.H(function(c){if(1==c.j)return void 0===b.id?c.Ma(2):g.z(c,a.Dh.NQ(b.id,a.If),2);a.MJ();g.ya(c)})}):a.nh.Oh()&&a.iB()})};var CE;var Isa={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,
mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,
kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,
transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,
ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,
ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,
userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,
embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,
liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,
delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,
voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,
sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,
clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,
startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,
playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,genericClientExperimentEvent:423,
homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,
dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,
producerProjectElementAdded:453,producerProjectElementRemoved:454,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,
cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485};var Fgb={},Tqa=g.hE("ServiceWorkerLogsDatabase",{ir:(Fgb.SWHealthLog={Tm:1},Fgb),shared:!0,upgrade:function(a,b){b(1)&&g.VD(g.PD(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var $qa={},Zqa=0;FE.prototype.requestComplete=function(a,b){b&&(this.B=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
FE.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.B?!0:null};
FE.prototype.removeParams=function(a){return a.split("?")[0]};
FE.prototype.removeParams=FE.prototype.removeParams;FE.prototype.isEndpointCFR=FE.prototype.isEndpointCFR;FE.prototype.requestComplete=FE.prototype.requestComplete;FE.getInstance=GE;var ara;g.w(IE,g.Gd);g.k=IE.prototype;g.k.Oh=function(){return this.j.Oh()};
g.k.qw=function(a){this.j.j=a};
g.k.j5=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.C4=function(){this.B=!0};
g.k.Ua=function(a,b){return this.j.Ua(a,b)};
g.k.RJ=function(a){a=Rt(this.j,a);a.then(function(b){g.SB("use_cfr_monitor")&&GE().requestComplete("generate_204",b)});
return a};
IE.prototype.sendNetworkCheckRequest=IE.prototype.RJ;IE.prototype.listen=IE.prototype.Ua;IE.prototype.enableErrorFlushing=IE.prototype.C4;IE.prototype.getWindowStatus=IE.prototype.j5;IE.prototype.networkStatusHint=IE.prototype.qw;IE.prototype.isNetworkAvailable=IE.prototype.Oh;IE.getInstance=cra;g.w(g.JE,g.Gd);g.JE.prototype.Oh=function(){var a=g.Ta("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.B)():!0};
g.JE.prototype.qw=function(a){var b=g.Ta("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);b&&b(a)};
g.JE.prototype.RJ=function(a){var b=this,c;return g.H(function(d){c=g.Ta("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.B);return g.SB("skip_network_check_if_cfr")&&GE().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.qw((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Oh())})):c?d.return(c(a)):d.return(!0)})};var era;g.w(KE,AE);KE.prototype.writeThenSend=function(a,b){b||(b={});g.pD()||(this.wg=!1);AE.prototype.writeThenSend.call(this,a,b)};
KE.prototype.sendThenWrite=function(a,b,c){b||(b={});g.pD()||(this.wg=!1);AE.prototype.sendThenWrite.call(this,a,b,c)};
KE.prototype.sendAndWrite=function(a,b){b||(b={});g.pD()||(this.wg=!1);AE.prototype.sendAndWrite.call(this,a,b)};
KE.prototype.awaitInitialization=function(){return this.B.promise};var ira=g.Qa.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Sa("ytNetworklessLoggingInitializationOptions",ira);g.ME.prototype.isReady=function(){!this.config_&&gqa()&&(this.config_=g.oE());return!!this.config_};var Ggb,PE,RE;Ggb=g.Qa.ytPubsubPubsubInstance||new g.Iu;PE=g.Qa.ytPubsubPubsubSubscribedKeys||{};RE=g.Qa.ytPubsubPubsubTopicToKeys||{};g.QE=g.Qa.ytPubsubPubsubIsSynchronous||{};g.Iu.prototype.subscribe=g.Iu.prototype.subscribe;g.Iu.prototype.unsubscribeByKey=g.Iu.prototype.Wh;g.Iu.prototype.publish=g.Iu.prototype.ra;g.Iu.prototype.clear=g.Iu.prototype.clear;g.Sa("ytPubsubPubsubInstance",Ggb);g.Sa("ytPubsubPubsubTopicToKeys",RE);g.Sa("ytPubsubPubsubIsSynchronous",g.QE);
g.Sa("ytPubsubPubsubSubscribedKeys",PE);var mra=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,nra=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,rra={};g.w(XE,g.J);XE.prototype.append=function(a){if(!this.B)throw Error("This does not support the append operation");a=a.Gb();this.Gb().appendChild(a)};
g.w(YE,XE);YE.prototype.Gb=function(){return this.j};g.w(wra,g.J);var ZE=Date.now().toString();var Cra=new Set([174,173,175]),Bra={};var gF=Symbol("injectionDeps");eF.prototype.toString=function(){return"InjectionToken("+this.name+")"};
Dra.prototype.resolve=function(a){return a instanceof fF?hF(this,a.key,[],!0):hF(this,a,[])};var Gra;var jF=window;var kF=g.SB("web_enable_lifecycle_monitoring")&&0!==Hra(),Qra=g.SB("web_enable_lifecycle_monitoring");Lra.prototype.cancel=function(){for(var a=g.u(this.j),b=a.next();!b.done;b=a.next())b=b.value,void 0===b.jobId||b.wJ||this.scheduler.Lj(b.jobId),b.wJ=!0;this.B.resolve()};g.k=lF.prototype;g.k.install=function(a){this.plugins.push(a);return this};
g.k.uninstall=function(){var a=this;g.Ja.apply(0,arguments).forEach(function(b){b=a.plugins.indexOf(b);-1<b&&a.plugins.splice(b,1)})};
g.k.transition=function(a,b){var c=this;kF&&Jra(this.state);var d=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(h){return h===c.state&&f.to===a}):f.from===c.state&&f.to===a});
if(d){this.B&&(Mra(this.B),this.B=void 0);Rra(this,a,b);this.state=a;kF&&Ira(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]});
d(Ora(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);};
g.k.v$=function(a){var b=g.Ja.apply(1,arguments);g.uD();for(var c=g.u(a),d=c.next(),e={};!d.done;e={Uz:e.Uz},d=c.next())e.Uz=d.value,Moa(function(f){return function(){Pra(f.Uz.name);f.Uz.callback.apply(f.Uz,g.pa(b));mF(f.Uz.name)}}(e))};
g.k.u$=function(a){var b=g.Ja.apply(1,arguments),c,d,e,f;return g.H(function(h){1==h.j&&(g.uD(),c=g.u(a),d=c.next(),e={});if(3!=h.j){if(d.done)return h.Ma(0);e.gw=d.value;e.jC=void 0;f=function(l){return function(){Pra(l.gw.name);var m=l.gw.callback.apply(l.gw,g.pa(b));"function"===typeof(null==m?void 0:m.then)?l.jC=m.then(function(){mF(l.gw.name)}):mF(l.gw.name)}}(e);
Moa(f);return e.jC?g.z(h,e.jC,3):h.Ma(3)}e={gw:e.gw,jC:e.jC};d=c.next();return h.Ma(2)})};
g.k.yZ=function(a){var b=g.Ja.apply(1,arguments),c=this,d=a.map(function(e){return{xO:function(){Pra(e.name);e.callback.apply(e,g.pa(b));mF(e.name)},
priority:Nra(c,e)}});
d.length&&(this.B=new Lra(d))};
g.da.Object.defineProperties(lF.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Sra;g.w(nF,lF);nF.prototype.G=function(a,b){var c=this;this.j=g.sD(0,function(){"application_navigating"===c.currentState&&c.transition("none")},5E3);
a(null==b?void 0:b.event)};
nF.prototype.K=function(a,b){this.j&&(g.Tt.Lj(this.j),this.j=null);a(null==b?void 0:b.event)};sF.prototype.storePayload=function(a,b){a=Ura(a);this.store[a]?this.store[a].push(b):(this.B={},this.store[a]=[b]);this.j++;return a};
sF.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=Vra(this,a.keys.splice(0,1)[0]),c=[],d=0;d<b.length;d++)this.store[b[d]]&&a.sizeLimit&&(this.store[b[d]].length<=a.sizeLimit?(c.push.apply(c,g.pa(this.store[b[d]])),delete this.store[b[d]]):c.push.apply(c,g.pa(this.store[b[d]].splice(0,a.sizeLimit))));this.j-=c.length;(null==a?0:a.sizeLimit)&&c.length<(null==a?void 0:a.sizeLimit)&&(a.sizeLimit-=c.length,c.push.apply(c,g.pa(this.smartExtractMatchingEntries(a))));
return c};
sF.prototype.extractMatchingEntries=function(a){a=Vra(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,g.pa(this.store[a[c]])),delete this.store[a[c]]);this.j-=b.length;return b};
sF.prototype.getSequenceCount=function(a){a=Vra(this,a);for(var b=0,c=0;c<a.length;c++){var d=void 0;b+=(null==(d=this.store[a[c]])?void 0:d.length)||0}return b};
sF.prototype.getSequenceCount=sF.prototype.getSequenceCount;sF.prototype.extractMatchingEntries=sF.prototype.extractMatchingEntries;sF.prototype.smartExtractMatchingEntries=sF.prototype.smartExtractMatchingEntries;sF.prototype.storePayload=sF.prototype.storePayload;var rsa=g.TB("initial_gel_batch_timeout",2E3),qsa=g.TB("gel_queue_timeout_max_ms",6E4),Dsa=Math.pow(2,16)-1,ssa=g.TB("gel_min_batch_size",5),CF=void 0,Hsa=new uF,Gsa=new uF,psa=new uF,osa=new uF,hsa,GF=!0,Csa=1,xF=new Map,FF=g.Qa.ytLoggingTransportTokensToCttTargetIds_||{};g.Sa("ytLoggingTransportTokensToCttTargetIds_",FF);var EF=g.Qa.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Sa("ytLoggingTransportTokensToJspbCttTargetIds_",EF);var AF={},wF=void 0;var HF=g.Qa.ytLoggingGelSequenceIdObj_||{};g.Sa("ytLoggingGelSequenceIdObj_",HF);var Msa,JF,Nsa,Psa=g.ME,Lsa=!1,Ssa=[];var Usa=g.Qa.ytLoggingGelSequenceIdObj_||{};g.Sa("ytLoggingGelSequenceIdObj_",Usa);var S2=g.Qa.ytLoggingDocDocumentNonce_;S2||(S2=g.aF(16),g.Sa("ytLoggingDocDocumentNonce_",S2));var mta=S2;var jta={n0:0,Goa:1,Dpa:2,pL:3,Qra:4,obb:5,tPa:6,fZa:7,uXa:8,uYa:9,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH"};var bta=1;g.k=NF.prototype;g.k.getAsJson=function(){var a={};void 0!==this.j.trackingParams?a.trackingParams=this.j.trackingParams:(a.veType=this.j.veType,void 0!==this.j.veCounter&&(a.veCounter=this.j.veCounter),void 0!==this.j.elementIndex&&(a.elementIndex=this.j.elementIndex));void 0!==this.j.dataElement&&(a.dataElement=this.j.dataElement.getAsJson());void 0!==this.j.youtubeData&&(a.youtubeData=this.j.youtubeData);this.j.isCounterfactual&&(a.isCounterfactual=!0);return a};
g.k.getAsJspb=function(){var a=new fA;void 0!==this.j.trackingParams?a.Gg(this.j.trackingParams):(void 0!==this.j.veType&&Gj(a,2,this.j.veType),void 0!==this.j.veCounter&&Gj(a,6,this.j.veCounter),void 0!==this.j.elementIndex&&Gj(a,3,this.j.elementIndex),this.j.isCounterfactual&&Fj(a,5,!0));if(void 0!==this.j.dataElement){var b=this.j.dataElement.getAsJspb();tj(a,fA,7,b)}void 0!==this.j.youtubeData&&tj(a,ox,8,this.j.jspbYoutubeData);return a};
g.k.toString=function(){return JSON.stringify(this.getAsJson())};
g.k.isClientVe=function(){return!this.j.trackingParams&&!!this.j.veType};
g.k.getLoggingDirectives=function(){return this.j.loggingDirectives};g.Sa("yt_logging_screen.getRootVeType",gta);g.Sa("yt_logging_screen.getCurrentCsn",g.QF);g.Sa("yt_logging_screen.getCttAuthInfo",RF);g.Sa("yt_logging_screen.setCurrentScreen",nta);var rta="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var eua=new g.Lv("parallelCommand");var gua=new g.Lv("serialCommand");var Eta=[{SO:function(a){return"Cannot read property '"+a.key+"'"},
mJ:{Error:[{Aj:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Aj:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Aj:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Aj:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{Aj:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Aj:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Aj:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{SO:function(a){return"Cannot call '"+a.key+"'"},
mJ:{TypeError:[{Aj:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Aj:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Aj:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Aj:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Aj:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},
{Aj:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{SO:function(a){return a.key+" is not defined"},
mJ:{ReferenceError:[{Aj:/(.*) is not defined/,groups:["key"]},{Aj:/Can't find variable: (.*)/,groups:["key"]}]}}];var wta={gr:[],Gs:[{callback:sta,weight:500}]};var uta;var VF=new g.Iu;var Fta=new Set,Cta=0,Ita=0,Hta=0,Dta=[],Kta=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];g.w(Ota,qE);var Rta=new rE("screen-created",Ota),cG=[],Pta=bua,cua=0,ZF=new Map,Sta=new Map,Tta=new Map;g.gb(g.lG,g.J);g.lG.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.Pi.subscribe(a,b,c)};
g.lG.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.Pi.unsubscribe(a,b,c)};
g.lG.prototype.Wh=function(a){return this.isDisposed()?!1:this.Pi.Wh(a)};
g.lG.prototype.ra=function(a,b){return this.isDisposed()?!1:this.Pi.ra.apply(this.Pi,arguments)};var N0a=16/9,Hgb=[.25,.5,.75,1,1.25,1.5,1.75,2],Igb=Hgb.concat([3,4,5,6,7,8,9,10,15]);var iua=1;g.w(g.pG,g.J);g.k=g.pG.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.I;var c=a.T,d=a.Na;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.I);g.yS&&(a.Y||(a.Y={}),a.Y.focusable="false")}else e=g.lf(a.I);if(c){if(c=qG(this,e,"class",c))rG(this,e,"class",c),this.Ub[c]=e}else if(d){c=g.u(d);for(var f=c.next();!f.done;f=c.next())this.Ub[f.value]=e;rG(this,e,"class",d.join(" "))}d=a.Aa;c=a.X;if(d)b=qG(this,e,"child",d),void 0!==b&&e.appendChild(g.mf(b));else if(c)for(d=0,c=g.u(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=qG(this,e,"child",f),null!=f&&e.appendChild(g.mf(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Bc&&(h=oG(),f.id=h,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+h),g.pf(e,f,d++))}if(a=a.Y)for(b=e,d=g.u(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],rG(this,b,c,"string"===typeof f?
qG(this,b,c,f):f);return e};
g.k.Ha=function(a){return this.Ub[a]};
g.k.Ga=function(a,b){"number"===typeof b?g.pf(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.yf(this.element)};
g.k.update=function(a){for(var b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.updateValue(c,a[c])};
g.k.updateValue=function(a,b){(a=this.Ud["{{"+a+"}}"])&&rG(this,a[0],a[1],b)};
g.k.Ba=function(){this.Ub={};this.Ud={};this.detach();g.J.prototype.Ba.call(this)};g.w(g.T,g.pG);g.k=g.T.prototype;g.k.oe=function(a,b){this.updateValue(b||"content",a)};
g.k.show=function(){this.Ib||(g.yr(this.element,"display",""),this.Ib=!0)};
g.k.hide=function(){this.Ib&&(g.yr(this.element,"display","none"),this.Ib=!1)};
g.k.lc=function(a){this.ma=a};
g.k.Ua=function(a,b,c){return this.V(this.element,a,b,c)};
g.k.V=function(a,b,c,d){c=(0,g.cb)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.Qc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})};
g.k.focus=function(){var a=this.element;Cf(a);a.focus()};
g.k.Ba=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.pG.prototype.Ba.call(this)};g.w(g.tG,g.T);g.tG.prototype.subscribe=function(a,b,c){return this.Va.subscribe(a,b,c)};
g.tG.prototype.unsubscribe=function(a,b,c){return this.Va.unsubscribe(a,b,c)};
g.tG.prototype.Wh=function(a){return this.Va.Wh(a)};
g.tG.prototype.ra=function(a){return this.Va.ra.apply(this.Va,[a].concat(g.pa(g.Ja.apply(1,arguments))))};var Jgb=new WeakSet;g.w(uG,g.tG);g.k=uG.prototype;g.k.bind=function(a){this.eb||a.renderer&&this.init(a.id,a.renderer,{},a);return Promise.resolve()};
g.k.init=function(a,b,c){this.eb=a;this.element.setAttribute("id",this.eb);this.Cb&&g.iu(this.element,this.Cb);this.qa=b&&b.adRendererCommands;this.fb=b.interaction;this.macros=c;this.S=b.trackingParams||null;this.K=b.loggingDirectives;null!=this.S?this.qg(this.element,this.S):this.K&&(a=this.element,b=this.K,this.api.qg(a,this,!0),this.api.Gg(a,b.trackingParams||null))};
g.k.clear=function(){};
g.k.hide=function(){g.tG.prototype.hide.call(this);(null!=this.S||this.K)&&this.Xa(this.element,!1)};
g.k.show=function(){g.tG.prototype.show.call(this);if(!this.Mb){this.Mb=!0;var a=this.qa&&this.qa.impressionCommand,b,c=null==(b=this.fb)?void 0:b.onFirstVisible;a?this.hF(a):c&&(a=hua(c))&&this.hF(a)}(null!=this.S||this.K)&&this.Xa(this.element,!0)};
g.k.onClick=function(a){if((this.S||this.K)&&!Jgb.has(a)){var b=this.element;this.api.Wj(b)&&this.Ib&&this.api.wb(b,this.interactionLoggingClientData);Jgb.add(a)}a=this.qa&&this.qa.clickCommand;var c;b=null==(c=this.fb)?void 0:c.onTap;a?(c=this.VY(a),this.hF(c)):b&&(c=hua(b))&&this.hF(c)};
g.k.VY=function(a){return a};
g.k.U1=function(a){var b=this.Ca;b.S=!0;b.B=a.touches.length;b.j.isActive()&&(b.j.stop(),b.G=!0);a=a.touches;b.K=xra(b,a)||1!=a.length;var c=a.item(0);b.K||!c?(b.ma=Infinity,b.ea=Infinity):(b.ma=c.clientX,b.ea=c.clientY);for(c=b.C.length=0;c<a.length;c++){var d=a.item(c);b.C.push(d.identifier)}};
g.k.T1=function(a){var b=this.Ca;a=a.changedTouches.item(0);var c;if(c=Hc()){c=g.mc();var d="";if(Saa())d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0";else if(Hc())d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".");else if(Ic())d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10";else if(hc(g.mc(),"KaiOS"))d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1];else if(Raa())d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1];else if(Ec()?"Chrome OS"===
qc.platform:tc("CrOS"))d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,d=(c=d.exec(c))&&c[1];c=!(0<=g.lc(d||"",8))}if(c||a&&Math.pow(a.clientX-b.ma,2)+Math.pow(a.clientY-b.ea,2)>Math.pow(5,2))b.D=!0};
g.k.S1=function(a){if(this.Ca){var b=this.Ca,c=a.changedTouches;c&&b.S&&1==b.B&&!b.D&&!b.G&&!b.K&&xra(b,c)&&(b.qa=a,b.j.start());b.B=a.touches.length;0===b.B&&(b.S=!1,b.D=!1,b.C.length=0);b.G=!1}};
g.k.hF=function(a){this.layoutId?this.qb.executeCommand(a,this.layoutId):g.TF(new g.nD("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
g.k.qg=function(a,b){this.api.qg(a,this);this.api.Gg(a,b)};
g.k.Xa=function(a,b){this.api.Wj(a)&&this.api.Xa(a,b,this.interactionLoggingClientData)};
g.k.Ba=function(){this.clear(null);this.Qc(this.xb);for(var a=g.u(this.Fa),b=a.next();!b.done;b=a.next())this.Qc(b.value);g.tG.prototype.Ba.call(this)};g.w(EG,uG);
EG.prototype.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);this.j=b;if(null==b.text&&null==b.icon)g.UF(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.iu(this.element,a);null!=b.text&&(a=g.wG(b.text),g.dc(a)||(this.element.setAttribute("aria-label",a),this.C=new g.tG({I:"span",T:"ytp-ad-button-text",Aa:a}),g.L(this,this.C),this.C.Ga(this.element)));this.api.W().N("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&&
b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.dc(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);null!=b.icon&&(b=DG(b.icon),null!=b&&(this.B=new g.tG({I:"span",T:"ytp-ad-button-icon",X:[b]}),g.L(this,this.B)),this.D?g.pf(this.element,this.B.element,0):this.B.Ga(this.element))}};
EG.prototype.clear=function(){this.hide()};
EG.prototype.onClick=function(a){uG.prototype.onClick.call(this,a);a=g.u(Kua(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.qb.executeCommand(b,this.layoutId):g.TF(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(FG,g.J);FG.prototype.Ba=function(){this.B&&g.YC(this.B);this.j.clear();GG=null;g.J.prototype.Ba.call(this)};
FG.prototype.register=function(a,b){b&&this.j.set(a,b)};
var GG=null;g.w(JG,uG);
JG.prototype.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.S(b.button,g.lN)||null;null==b?g.TF(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb),g.L(this,this.button),this.button.init(jG("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.wG(a)),this.button.Ga(this.element),this.G&&!g.hu(this.button.element,"ytp-ad-clickable")&&g.iu(this.button.element,
"ytp-ad-clickable"),a&&(this.B=new g.tG({I:"div",T:"ytp-ad-hover-text-container"}),this.D&&(b=new g.tG({I:"div",T:"ytp-ad-hover-text-callout"}),b.Ga(this.B.element),g.L(this,b)),g.L(this,this.B),this.B.Ga(this.element),b=HG(a),g.pf(this.B.element,b,0)),this.show())};
JG.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();uG.prototype.hide.call(this)};
JG.prototype.show=function(){this.button&&this.button.show();uG.prototype.show.call(this)};g.w(LG,uG);
LG.prototype.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&KG(a)||"";g.dc(c)?.01>Math.random()&&g.UF(Error("Found AdImage without valid image URL")):(this.j?g.yr(this.element,"backgroundImage","url("+c+")"):af(this.element,{src:c}),af(this.element,{alt:a&&a.accessibility&&a.accessibility.label||""}),b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())};
LG.prototype.clear=function(){this.hide()};g.w(MG,uG);g.k=MG.prototype;g.k.hide=function(){uG.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.C=document.activeElement;uG.prototype.show.call(this);this.D.focus()};
g.k.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.TF(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.TF(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Oua(this,b):g.TF(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.cD(this.j);this.hide()};
g.k.nP=function(){this.hide()};
g.k.YK=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.qb.executeCommand(a,this.layoutId):g.TF(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.k.oP=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.qb.executeCommand(a,this.layoutId):g.TF(Error("Missing layoutId for confirm dialog.")));this.hide()};g.w(NG,uG);g.k=NG.prototype;
g.k.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);this.B=b;if(null==b.defaultText&&null==b.defaultIcon)g.TF(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.TF(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.iu(this.D,a)}a={};b.defaultText?
(c=g.wG(b.defaultText),g.dc(c)||(a.buttonText=c,this.j.setAttribute("aria-label",c),this.api.W().experiments.ob("fix_h5_toggle_button_a11y")&&this.C.setAttribute("aria-label",c))):g.Kr(this.Ja,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.C.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=DG(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.va=!0,c=DG(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",
c)):(g.Kr(this.ea,!0),g.Kr(this.G,!1)),g.Kr(this.j,!1)):g.Kr(this.C,!1);g.jd(a)||this.update(a);b.isToggled&&(g.iu(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));Pua(this);this.V(this.element,"change",this.dT);this.show()}};
g.k.onClick=function(a){0<this.Fa.length&&(this.toggleButton(!this.isToggled()),this.dT());uG.prototype.onClick.call(this,a)};
g.k.dT=function(){g.mu(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.u(Qua(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.qb.executeCommand(b,this.layoutId):g.TF(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Pua(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.mu(this.D,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;Pua(this)};
g.k.isToggled=function(){return this.j.checked};g.w(OG,aD);OG.prototype.K=function(a){if(Array.isArray(a)){a=g.u(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof Rua&&this.D(b)}};g.w(Sua,uG);g.k=Sua.prototype;g.k.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.TF(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.UF(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.UF(Error("AdFeedbackRenderer.title was not set.")),Wua(this,b)):g.TF(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){soa(this.G);soa(this.ea);this.D.length=0;this.hide()};
g.k.hide=function(){this.j&&this.j.hide();this.B&&this.B.hide();uG.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.j&&this.j.show();this.B&&this.B.show();this.C=document.activeElement;uG.prototype.show.call(this);this.G.focus()};
g.k.WX=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.ra("a");this.hide()};
g.k.y9=function(){this.hide()};
Xua.prototype.Gb=function(){return this.j.element};
Xua.prototype.isChecked=function(){return this.C.checked};g.w(PG,MG);PG.prototype.nP=function(a){MG.prototype.nP.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
PG.prototype.YK=function(a){MG.prototype.YK.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
PG.prototype.oP=function(a){MG.prototype.oP.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.ra("b")};g.w(Yua,uG);g.k=Yua.prototype;
g.k.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);this.G=b;if(null==b.dialogMessage&&null==b.title)g.TF(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.UF(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.S(b.closeOverlayRenderer,g.lN)||null)this.j=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.L(this,this.j),this.j.init(jG("button"),a,this.macros),this.j.Ga(this.element);b.title&&(a=g.wG(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=HG(a[c]);if(!g.dc(d.textContent)){var e=kf("LI");e.appendChild(d);this.Oa.appendChild(e)}}else g.Kr(this.Oa,!1);b.dialogMessage&&(a=HG(b.dialogMessage,!0),this.Ya.appendChild(a));b.confirmLabel&&(a=g.wG(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=g.S(b.muteAdRenderer,g.lN)||null)&&
(a=b.navigationEndpoint&&g.S(b.navigationEndpoint,Xfb)||null,c=b.navigationEndpoint&&g.S(b.navigationEndpoint,Ceb)||null,null==a&&null==c?g.UF(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?Zua(this,a):c&&$ua(this,c),this.C=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.L(this,this.C),this.C.init(jG("button"),b,this.macros),this.C.Ua("click",
this.c8,this),this.C.Ga(this.kb)));ava(this)}};
g.k.clear=function(){soa(this.ea);this.hide()};
g.k.hide=function(){this.B?this.B.hide():this.D&&this.D.hide();this.j&&this.j.hide();this.C&&this.C.hide();uG.prototype.hide.call(this);this.va&&this.va.focus()};
g.k.show=function(){this.j&&this.j.show();this.C&&this.C.show();if(!this.Pa){for(var a=g.u(this.G&&this.G.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.qb.executeCommand(b,this.layoutId):g.TF(Error("Missing layoutId for ad info dialog."));this.Pa=!0}this.va=document.activeElement;uG.prototype.show.call(this);this.ea.focus()};
g.k.eT=function(){if(this.G&&this.G.confirmServiceEndpoint){var a=this.G.confirmServiceEndpoint;this.layoutId?this.qb.executeCommand(a,this.layoutId):g.TF(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.ra("d");this.hide()};
g.k.c8=function(){var a=this.B?this.B:this.D;a&&!a.Ib&&(this.hide(),a.show())};g.w(QG,JG);QG.prototype.init=function(a,b,c){JG.prototype.init.call(this,a,b,c);a=b.button&&g.S(b.button,g.lN)||null;null!=a&&(fva(this,a,c),this.show())};
QG.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();JG.prototype.hide.call(this)};
QG.prototype.show=function(){this.button&&this.button.show();JG.prototype.show.call(this)};
QG.prototype.clear=function(){this.hide()};g.w(RG,uG);
RG.prototype.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);this.j=b;this.isTemplated()||g.Bf(this.element,vG(this.j));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?KG(a):"",c=(c=this.api.getVideoData(1))&&c.Ol,a&&c&&(this.element.style.backgroundImage="url("+a+")",this.element.style.backgroundSize="100%"),b.style&&b.style.adTextStyle))switch(b.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(a=g.Be(b.targetId))&&this.element.setAttribute("data-tooltip-target-id",a);
b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
RG.prototype.isTemplated=function(){return this.j.isTemplated||!1};
RG.prototype.clear=function(){this.hide()};var Cva={seekableStart:0,seekableEnd:1,current:0};g.w(SG,uG);SG.prototype.clear=function(){this.dispose()};g.w(g.VG,g.J);g.k=g.VG.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.cG(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.Ib||(WG(this,!0),this.state=1,a?this.delay.start(a):this.cG()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Ib&&(WG(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.cG=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:WG(this,!1);this.state=3;this.delay.start(this.B);break;case 3:this.state=null;this.j&&this.j();break;case 4:this.element.hide();WG(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.cG()};
g.k.Ba=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.J.prototype.Ba.call(this)};g.w(XG,SG);g.k=XG.prototype;
g.k.init=function(a,b,c){SG.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.TF(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.rb&&(this.D?g.iu(this.B.element,"modern-countdown-next-to-thumbnail"):g.iu(this.B.element,"countdown-next-to-thumbnail"));a=b.durationMilliseconds;this.Oa=null==a||0===a?this.j.dn():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);
this.C.init(jG("ad-text"),d,c);(d=this.api.getVideoData(1))&&d.Ol&&b.thumbnail?this.G.init(jG("ad-image"),b.thumbnail,c):(this.va.hide(),this.D&&this.rb&&g.iu(this.C.element,"ytp-ad-preview-text-modern-postroll"))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.C.hide();this.G.hide();UG(this);SG.prototype.hide.call(this)};
g.k.show=function(){TG(this);this.B.show();this.C.show();this.G.show();SG.prototype.show.call(this)};
g.k.Mp=function(){this.hide()};
g.k.Vn=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ya&&a>=this.Oa?(this.Ja.hide(),this.Ya=!0,this.ra("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Oa-a)/1E3)),a!=this.kb&&(gva(this.C,{TIME_REMAINING:String(a)}),this.kb=a)))}};g.w(iva,SG);g.k=iva.prototype;
g.k.init=function(a,b,c){SG.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.S(b.actionButton,g.lN))&&a.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d)if(b.image&&b.image.thumbnail){var e=b.image.thumbnail.thumbnails;null!=e&&0<e.length&&g.dc(g.Be(e[0].url))&&(e[0].url=d.profilePicture)}else g.UF(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(jG("ad-image"),b.image,c);this.G.init(jG("ad-text"),
b.headline,c);this.D.init(jG("ad-text"),b.description,c);this.B.init(jG("button"),a,c);this.api.W().N("web_enable_instream_ads_link_definition_a11y_bugfix")&&(c=Yt(this.B.element),Xt(this.B.element,c+" This link opens in new tab"));this.va=a.navigationEndpoint;this.api.ID()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.fT.bind(this));this.Ja=b.startMs||0;TG(this)}else g.TF(Error("FlyoutCtaRenderer has no valid action button."));else g.TF(Error("FlyoutCtaRenderer has no description AdText."));
else g.TF(Error("FlyoutCtaRenderer has no headline AdText."));else g.UF(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){SG.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Af(this.B.element,a.target)&&this.va&&(this.layoutId?this.qb.executeCommand(this.va,this.layoutId):g.TF(Error("Missing layoutId for flyout cta.")))};
g.k.Vn=function(){if(this.j){var a=this.j.getProgressState();(a&&a.current||this.Oa)&&1E3*a.current>=this.Ja&&(UG(this),g.ku(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}};
g.k.Mp=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.fT.bind(this))};
g.k.show=function(){this.B&&this.B.show();SG.prototype.show.call(this)};
g.k.hide=function(){this.B&&this.B.hide();SG.prototype.hide.call(this)};
g.k.fT=function(a){"hidden"==a?this.show():this.hide()};g.w(jva,uG);g.k=jva.prototype;
g.k.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.S(this.j.likeButton,M2),b=this.j.dislikeButton&&g.S(this.j.dislikeButton,M2),this.C.init(jG("toggle-button"),a,c),this.B.init(jG("toggle-button"),b,c),this.V(this.element,"change",this.gT),this.D.show(100),this.show(),c=g.u(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.qb.executeCommand(a,this.layoutId):g.TF(Error("Missing layoutId for instream user sentiment."))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.B.hide();uG.prototype.hide.call(this)};
g.k.show=function(){this.C.show();this.B.show();uG.prototype.show.call(this)};
g.k.gT=function(){Mka(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.Ta("onYtShowToast",this.j.postMessageAction);this.D.hide()};
g.k.onClick=function(a){0<this.Fa.length&&this.gT();uG.prototype.onClick.call(this,a)};g.w(YG,g.J);g.k=YG.prototype;g.k.Ba=function(){this.reset();g.J.prototype.Ba.call(this)};
g.k.reset=function(){g.cD(this.D);this.K=!1;this.j&&this.j.stop();this.G.stop();this.C&&(this.C=!1,this.S.play())};
g.k.start=function(){this.reset();this.D.V(this.B,"mouseover",this.iT,this);this.D.V(this.B,"mouseout",this.hT,this);this.qa&&(this.D.V(this.B,"focusin",this.iT,this),this.D.V(this.B,"focusout",this.hT,this));this.j?this.j.start():(this.K=this.C=!0,g.yr(this.B,{opacity:this.ea}))};
g.k.iT=function(){this.C&&(this.C=!1,this.S.play());this.G.stop();this.j&&this.j.stop()};
g.k.hT=function(){this.K?this.G.start():this.j&&this.j.start()};
g.k.zU=function(){this.C||(this.C=!0,this.ma.play(),this.K=!0)};var T2={},mva=(T2["b.f_"]=rva,T2["j.s_"]=tva,T2["r.s_"]=uva,T2["e.h_"]=vva,T2["i.s_"]=pva,T2),sva={adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0}};var wva=!1;g.w(dH,SG);g.k=dH.prototype;
g.k.init=function(a,b,c){SG.prototype.init.call(this,a,b,c);this.va=b;(this.Ja=zva(this))&&g.UF(Error("hasAdControlInClickCommands_ is true."));if(!b||g.jd(b))g.TF(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.jd(b.message))g.TF(Error("SkipButtonRenderer.message was not specified or empty."));else{a=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};b=DG(a);null==b?g.TF(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")):
(this.C=new g.tG({I:"button",Na:[this.G?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],X:[{I:"span",T:this.G?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",X:[b]}]}),g.L(this,this.C),this.C.Ga(this.D.element),this.B=new RG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,"ytp-ad-skip-button-text"),this.G&&this.B.element.classList.add("ytp-ad-skip-button-text-centered"),this.B.init(jG("ad-text"),this.va.message,c),g.L(this,this.B),g.pf(this.C.element,this.B.element,
0));var d=void 0===d?null:d;c=this.api.W();!(0<this.Fa.length)&&c.B&&(cS?0:"ontouchstart"in document.documentElement&&(hha()||Qp()))&&(this.Qc(this.xb),d&&this.Qc(d),this.Fa=[this.V(this.element,"touchstart",this.U1,this),this.V(this.element,"touchmove",this.T1,this),this.V(this.element,"touchend",this.S1,this)])}};
g.k.clear=function(){this.Oa.reset();this.hide()};
g.k.hide=function(){this.D.hide();this.B&&this.B.hide();UG(this);SG.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.C){if(a){var b=a||window.event;b.returnValue=!1;b.preventDefault&&b.preventDefault()}if(!this.api.W().N("ab_sa_ef")||!1!==a.isTrusted){SG.prototype.onClick.call(this,a);if(this.api.W().N("fetch_bid_for_dclk_status")){var c;a={contentCpn:(null==(c=this.api.getVideoData(1))?void 0:c.clientPlaybackNonce)||""};qva(a)}this.ra("j");if(this.Ya||!this.Ja)this.api.onAdUxClicked(this.componentType,this.layoutId)}}};
g.k.VY=function(a){if(!this.Ya)return this.Ja&&ZG("SkipButton click commands not pruned while ALC exist"),a;var b,c=null==(b=g.S(a,g.iG))?void 0:b.commands;if(!c)return a;a=[];for(b=0;b<c.length;b++){var d=c[b];d.adLifecycleCommand&&yva(d.adLifecycleCommand)||d.pingingEndpoint||d.adPingingEndpoint||a.push(d)}return{commandExecutorCommand:{commands:a}}};
g.k.show=function(){this.Oa.start();this.D.show();this.B&&this.B.show();TG(this);SG.prototype.show.call(this);this.kb&&this.api.W().N("enable_skip_to_next_messaging")&&this.api.ra("showpromotooltip",this.element)};
g.k.Mp=function(){this.ra("k")};
g.k.Vn=function(){};g.w(eH,SG);g.k=eH.prototype;
g.k.init=function(a,b,c){SG.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&g.S(b.preskipRenderer,kN)||{};(a=g.jd(a)?null:a)?(this.G=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3,this.B=new XG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.j,"countdown_next_to_thumbnail"==LR(this.api.W().experiments,"preskip_button_style_ads_backend")&&TJ(this.api.W())),this.B.init(jG("preskip-component"),a,c),hva(this.B),g.L(this,this.B),this.B.Ga(this.element)):
b.skipOffsetMilliseconds&&(this.G=b.skipOffsetMilliseconds);a=b&&b.skippableRenderer&&g.S(b.skippableRenderer,teb)||{};a=g.jd(a)?null:a;null==a?g.TF(Error("SkipButtonRenderer was not set in player response.")):(this.C=new dH(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.j,this.va),this.C.init(jG("skip-button"),a,c),g.L(this,this.C),this.C.Ga(this.element),this.api.W().experiments.ob("enable_skip_to_next_messaging")&&(b=g.Be(b.targetId))&&(c=this.C,null!=c.C&&(c.kb=!0,c.C.element.setAttribute("data-tooltip-target-id",
b),c.C.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
g.k.show=function(){this.D&&this.C?this.C.show():this.B&&this.B.show();TG(this);SG.prototype.show.call(this)};
g.k.Mp=function(){};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();UG(this);SG.prototype.hide.call(this)};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();UG(this);SG.prototype.hide.call(this)};
g.k.Vn=function(){1E3*this.j.getProgressState().current>=this.G&&Ava(this,!0)};g.w(Bva,EG);Bva.prototype.init=function(a,b,c){EG.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.wG(b.text),a=!g.dc(a));a?null==b.navigationEndpoint?g.UF(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.UF(Error("Button style was not a link-style type in renderer,")):this.show():g.UF(Error("No visit advertiser text was present in the renderer."))};g.w(fH,uG);fH.prototype.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);a=b.text;g.dc(vG(a))?g.UF(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.j&&(b=this.api.W(),b=a.text+" "+(b&&b.B?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new RG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb),a.init(jG("simple-ad-badge"),b,c),a.Ga(this.element),g.L(this,a)),this.show())};
fH.prototype.clear=function(){this.hide()};g.w(gH,kG);g.w(hH,g.lG);g.k=hH.prototype;g.k.dn=function(){return this.durationMs};
g.k.stop=function(){this.j&&this.Hd.Qc(this.j)};
g.k.Ic=function(a){this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ra("h")};
g.k.getProgressState=function(){return this.B};
g.k.Xd=function(a){g.cH(a,2)&&this.ra("g")};g.w(iH,g.lG);g.k=iH.prototype;g.k.dn=function(){return this.durationMs};
g.k.start=function(){this.j||(this.j=!0,this.timer.start())};
g.k.stop=function(){this.j&&(this.j=!1,this.timer.stop())};
g.k.Ic=function(){this.aj+=100;var a=!1;this.aj>this.durationMs&&(this.aj=this.durationMs,this.timer.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.aj/1E3};this.ra("h");a&&this.ra("g")};
g.k.getProgressState=function(){return this.B};g.w(lH,SG);g.k=lH.prototype;g.k.init=function(a,b,c){SG.prototype.init.call(this,a,b,c);var d;if(null==b?0:null==(d=b.templatedCountdown)?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.UF(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new RG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb);this.B.init(jG("ad-text"),a,{});this.B.Ga(this.element);g.L(this,this.B)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){UG(this);SG.prototype.hide.call(this)};
g.k.Mp=function(){this.hide()};
g.k.Vn=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&this.B&&(a=(this.j instanceof hH?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.j instanceof iH?a.seekableEnd:this.api.getDuration(2,!1))-a.current,gva(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.jH(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
g.k.show=function(){TG(this);SG.prototype.show.call(this)};g.w(Dva,RG);Dva.prototype.onClick=function(a){RG.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.w(oH,g.tG);oH.prototype.Ic=function(){var a=this.B.getProgressState();this.Tc.style.width=100*nH(new mH(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
oH.prototype.onStateChange=function(){g.kS(this.api.W())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.B.subscribe("h",this.Ic,this),this.Ic()):-1!==this.j&&(this.hide(),this.B.Wh(this.j),this.j=-1))};g.w(pH,uG);
pH.prototype.init=function(a,b,c,d){uG.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.S(c,hM),c=g.S(c,kN),a?(c=new eH(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.j,this.ea),c.Ga(this.G),c.init(jG("skip-button"),a,this.macros),g.L(this,c)):c&&(a=new XG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.j,!1),a.Ga(this.G),a.init(jG("ad-preview"),c,this.macros),hva(a),g.L(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,
c=new jva(this.api,this.layoutId,this.interactionLoggingClientData,this.qb),c.Ga(this.va),c.init(jG("instream-user-sentiment"),a,this.macros),g.L(this,c));if(a=g.S(b,meb))if(a=g.S(a,meb))c=new iva(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.j,!!b.showWithoutLinkedMediaLayout),g.L(this,c),c.Ga(this.D),c.init(jG("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),
c=new fH(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,!0),g.L(this,c),c.Ga(this.B),c.init(jG("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&!b.showWithoutLinkedMediaLayout&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new lH(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.j,d),g.L(this,d),d.Ga(this.B),d.init(jG("ad-duration-remaining"),
a,this.macros));b.adInfoRenderer&&(d=g.S(b.adInfoRenderer,jN))&&(a=new QG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.element),g.L(this,a),a.Ga(this.B),a.init(jG("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(d=g.S(b.visitAdvertiserRenderer,g.lN))&&(a=Fva(this)&&this.C?this.C:this.B)&&(b=new Bva(this.api,this.layoutId,this.interactionLoggingClientData,this.qb),g.L(this,b),b.Ga(a),b.init(jG("visit-advertiser"),d,this.macros),Vt(b.element),d=Yt(b.element),
Xt(b.element,d+" This link opens in new tab"));(b=this.api.W())&&!g.iS(b)&&"3"==b.controlsType&&(b=new oH(this.api,this.j),b.Ga(this.Ja),g.L(this,b));this.api.W().N("enable_updated_html5_player_focus_style")&&g.iu(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
pH.prototype.clear=function(){this.hide()};sH.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
sH.prototype.get=function(a){return this.j.get(a)};
sH.prototype.remove=function(a){this.j.remove(a)};var Lva=null,Nva=null,Pva=null,Rva=null;g.Sa("yt.www.ads.eventcache.getLastCompanionData",function(){return Lva});
g.Sa("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Sa("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Nva});
g.Sa("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Pva});
g.Sa("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Rva});var Tva=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);vH.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=(null==(c=b.yp.context)?void 0:null==(d=c.request)?void 0:d.consistencyTokenJars)||[];var e;(a=null==(e=a.responseContext)?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
vH.prototype.replace=function(a,b){a=g.u(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];Vva(this,b)};var Kgb=window.location.hostname.split(".").slice(-2).join("."),U2;wH.getInstance=function(){U2=g.Ta("yt.clientLocationService.instance");U2||(U2=new wH,g.Sa("yt.clientLocationService.instance",U2));return U2};
g.k=wH.prototype;
g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.j?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(1E7*this.j.coords.latitude),a.client.locationInfo.longitudeE7=Math.floor(1E7*this.j.coords.longitude),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)};
g.k.handleResponse=function(a){var b;a=null==(b=a.responseContext)?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.j=void 0,"TVHTML5"===g.Iv("INNERTUBE_CLIENT_NAME")?(this.localStorage=Wva(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.xC("YT_CL",JSON.stringify({loctok:a}),15552E3,Kgb,!0))};
g.k.clearLocationPlayabilityToken=function(a){"TVHTML5"===a?(this.localStorage=Wva(this))&&this.localStorage.remove("yt-location-playability-token"):g.qna("YT_CL")};
g.k.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;"MWEB"===g.Iv("INNERTUBE_CLIENT_NAME")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
g.k.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null==a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};
g.k.createLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);return b};var V2={},awa=(V2.WEB_UNPLUGGED="^unplugged/",V2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",V2.WEB_UNPLUGGED_OPS="^unplugged/",V2.WEB_UNPLUGGED_PUBLIC="^unplugged/",V2.WEB_CREATOR="^creator/",V2.WEB_KIDS="^kids/",V2.WEB_EXPERIMENTS="^experiments/",V2.WEB_MUSIC="^music/",V2.WEB_REMIX="^music/",V2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",V2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",V2);AH.prototype.G=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?pE:c;var d={context:g.xH(a.clickTrackingParams,!1,this.D)};var e=this.j(a);if(e){this.B(d,e,b);var f;b=g.zH(this.C());(e=null==(f=g.S(a.commandMetadata,g.I2))?void 0:f.apiUrl)&&(b=e);f=Bna(Ana(b));a=Object.assign({},{command:a},void 0);d={input:f,fu:Cna(f),yp:d,config:a};d.config.Tu?d.config.Tu.identity=c:d.config.Tu={identity:c};return d}g.TF(new g.nD("Error: Failed to create Request from Command.",a))};
g.da.Object.defineProperties(AH.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.w(BH,AH);BH.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",fu:Cna("/getDatasyncIdsEndpoint","GET"),yp:{}}};
BH.prototype.C=function(){return[]};
BH.prototype.j=function(){};
BH.prototype.B=function(){};var Lgb={},Swa=(Lgb.GET_DATASYNC_IDS=yH(BH),Lgb);var W2={},hwa=(W2.auto_search="LATENCY_ACTION_AUTO_SEARCH",W2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",W2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",W2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",W2.app_startup="LATENCY_ACTION_APP_STARTUP",W2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",W2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",W2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",W2["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",
W2["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",W2["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",W2["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",W2["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",W2["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",W2["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",W2["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",W2["asset.ownership"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",W2["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",W2["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",W2["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",W2["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",W2["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",W2["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",W2["asset_group.claimed_videos"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",W2["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",W2["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",W2.browse="LATENCY_ACTION_BROWSE",W2.cast_splash="LATENCY_ACTION_CAST_SPLASH",W2.channels="LATENCY_ACTION_CHANNELS",W2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",W2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",W2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",
W2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",W2["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",W2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",W2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",W2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",W2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",W2["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",W2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",
W2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",W2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",W2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",W2.chips="LATENCY_ACTION_CHIPS",W2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",W2["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",W2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",W2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
W2.embed="LATENCY_ACTION_EMBED",W2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",W2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",W2.explore="LATENCY_ACTION_EXPLORE",W2.home="LATENCY_ACTION_HOME",W2.library="LATENCY_ACTION_LIBRARY",W2.live="LATENCY_ACTION_LIVE",W2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",W2.mini_app="LATENCY_ACTION_MINI_APP_PLAY",W2.onboarding="LATENCY_ACTION_ONBOARDING",W2.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",
W2["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",W2["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",W2["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",W2["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",W2["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",W2["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",W2["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",W2["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",W2["owner.channels"]=
"LATENCY_ACTION_CREATOR_CMS_CHANNELS",W2["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",W2["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",W2["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",W2["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",W2["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",W2["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",W2["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",
W2["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",W2["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",W2["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",W2["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",W2["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",W2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",W2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",W2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",
W2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",W2["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",W2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",W2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",W2.prebuffer="LATENCY_ACTION_PREBUFFER",W2.prefetch="LATENCY_ACTION_PREFETCH",W2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",W2.profile_switcher="LATENCY_ACTION_LOGIN",W2.reel_watch="LATENCY_ACTION_REEL_WATCH",W2.results="LATENCY_ACTION_RESULTS",W2["promotion.edit"]=
"LATENCY_ACTION_CREATOR_PROMOTION_EDIT",W2.search_ui="LATENCY_ACTION_SEARCH_UI",W2.search_suggest="LATENCY_ACTION_SUGGEST",W2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",W2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",W2.seek="LATENCY_ACTION_PLAYER_SEEK",W2.settings="LATENCY_ACTION_SETTINGS",W2.store="LATENCY_ACTION_STORE",W2.tenx="LATENCY_ACTION_TENX",W2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",W2.watch="LATENCY_ACTION_WATCH",W2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",W2["watch,watch7"]=
"LATENCY_ACTION_WATCH",W2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",W2["watch,watch7ad"]="LATENCY_ACTION_WATCH",W2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",W2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",W2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",W2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",W2["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",W2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",W2["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",W2["video.edit"]=
"LATENCY_ACTION_CREATOR_VIDEO_EDIT",W2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",W2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",W2["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",W2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",W2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",W2["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",W2["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",
W2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",W2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",W2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",W2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",W2.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",W2.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",W2),X2={},iwa=(X2.ad_allowed="adTypesAllowed",X2.yt_abt="adBreakType",X2.ad_cpn="adClientPlaybackNonce",X2.ad_docid="adVideoId",
X2.yt_ad_an="adNetworks",X2.ad_at="adType",X2.aida="appInstallDataAgeMs",X2.browse_id="browseId",X2.p="httpProtocol",X2.t="transportProtocol",X2.cpn="clientPlaybackNonce",X2.ccs="creatorInfo.creatorCanaryState",X2.ctop="creatorInfo.topEntityType",X2.csn="clientScreenNonce",X2.docid="videoId",X2.GetHome_rid="requestIds",X2.GetSearch_rid="requestIds",X2.GetPlayer_rid="requestIds",X2.GetWatchNext_rid="requestIds",X2.GetBrowse_rid="requestIds",X2.GetLibrary_rid="requestIds",X2.is_continuation="isContinuation",
X2.is_nav="isNavigation",X2.b_p="kabukiInfo.browseParams",X2.is_prefetch="kabukiInfo.isPrefetch",X2.is_secondary_nav="kabukiInfo.isSecondaryNav",X2.nav_type="kabukiInfo.navigationType",X2.prev_browse_id="kabukiInfo.prevBrowseId",X2.query_source="kabukiInfo.querySource",X2.voz_type="kabukiInfo.vozType",X2.yt_lt="loadType",X2.mver="creatorInfo.measurementVersion",X2.yt_ad="isMonetized",X2.nr="webInfo.navigationReason",X2.nrsu="navigationRequestedSameUrl",X2.pnt="performanceNavigationTiming",X2.prt=
"playbackRequiresTap",X2.plt="playerInfo.playbackType",X2.pis="playerInfo.playerInitializedState",X2.paused="playerInfo.isPausedOnLoad",X2.yt_pt="playerType",X2.fmt="playerInfo.itag",X2.yt_pl="watchInfo.isPlaylist",X2.yt_pre="playerInfo.preloadType",X2.yt_ad_pr="prerollAllowed",X2.pa="previousAction",X2.yt_red="isRedSubscriber",X2.rce="mwebInfo.responseContentEncoding",X2.rc="resourceInfo.resourceCache",X2.scrh="screenHeight",X2.scrw="screenWidth",X2.st="serverTimeMs",X2.ssdm="shellStartupDurationMs",
X2.br_trs="tvInfo.bedrockTriggerState",X2.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",X2.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",X2.label="tvInfo.label",X2.is_mdx="tvInfo.isMdx",X2.preloaded="tvInfo.isPreloaded",X2.aac_type="tvInfo.authAccessCredentialType",X2.upg_player_vis="playerInfo.visibilityState",X2.query="unpluggedInfo.query",X2.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",X2.yt_vst="videoStreamType",X2.vph="viewportHeight",X2.vpw="viewportWidth",X2.yt_vis=
"isVisible",X2.rcl="mwebInfo.responseContentLength",X2.GetSettings_rid="requestIds",X2.GetTrending_rid="requestIds",X2.GetMusicSearchSuggestions_rid="requestIds",X2.REQUEST_ID="requestIds",X2),jwa="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "),
Y2={},kwa=(Y2.ccs="CANARY_STATE_",Y2.mver="MEASUREMENT_VERSION_",Y2.pis="PLAYER_INITIALIZED_STATE_",Y2.yt_pt="LATENCY_PLAYER_",Y2.pa="LATENCY_ACTION_",Y2.ctop="TOP_ENTITY_TYPE_",Y2.yt_vst="VIDEO_STREAM_TYPE_",Y2),lwa="all_vc ap aq c cbr cbrand cbrver cmodel cos cosver cplatform ctheme cver ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");var U={LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING:179,LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_MINI_APP_PLAY:249,LATENCY_ACTION_DMA_CONSENT_FLOW:247,LATENCY_ACTION_GEL_FETCH:248,LATENCY_ACTION_GEL_JSPB_SERIALIZE:243,
LATENCY_ACTION_GEL_COMPRESSION:215,LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE:204,LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC:203,LATENCY_ACTION_COMMERCE_TRANSACTION:184,LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC:173,LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC:172,LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC:171,LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC:170,LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC:169,LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC:168,LATENCY_ACTION_GET_OFFERS_RPC:167,LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC:166,
LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC:165,LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC:164,LATENCY_ACTION_GET_OFFER_DETAILS_RPC:163,LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC:162,LATENCY_ACTION_GET_TIP_MODULE_RPC:161,LATENCY_ACTION_HANDLE_TRANSACTION_RPC:160,LATENCY_ACTION_COMPLETE_TRANSACTION_RPC:159,LATENCY_ACTION_GET_CART_RPC:158,LATENCY_ACTION_THUMBNAIL_FETCH:156,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,
LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_GENERIC_WEB_VIEW:183,LATENCY_ACTION_SHOPPING_IN_APP:124,LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_DOWNLOADS_DATA_ACCESS:180,LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138,LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN:244,
LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131,LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,
LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,
LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_CONNECT_TO_SESSION:190,LATENCY_ACTION_MDX_STREAM_TRANSFER:178,LATENCY_ACTION_MDX_CAST:120,LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_MOBILE_LIVE_NAV_MDE:231,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD:272,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD:271,
LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD:270,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE:269,LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD:267,LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET:251,LATENCY_ACTION_SHORTS_LOAD_PROJECT:234,LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING:229,LATENCY_ACTION_EDIT_AUDIO_GEN:182,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION:262,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING:157,LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,
LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD:240,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING:264,LATENCY_ACTION_SHORTS_RECOMPOSITION:263,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT:239,LATENCY_ACTION_CREATION_MODES_MODE_SWITCH:236,
LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT:235,LATENCY_ACTION_SWITCH_CAMERA:246,LATENCY_ACTION_OPEN_CAMERA:245,LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE:250,LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME:242,LATENCY_ACTION_MEDIA_ENGINE_EXPORT:241,LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA:233,LATENCY_ACTION_PRODUCER_EXPORT_PROJECT:193,LATENCY_ACTION_PRODUCER_EDITOR:192,LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL:238,
LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL:237,LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_STORE:175,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,LATENCY_ACTION_KIDS_SECRET_CODE:91,
LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89,LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT:219,LATENCY_ACTION_CREATOR_VIDEO_POLICY:217,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,
LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT:218,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_CLAIMS:216,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,LATENCY_ACTION_CREATOR_SONG_ANALYTICS:176,LATENCY_ACTION_CREATOR_PROMOTION_LIST:186,LATENCY_ACTION_CREATOR_PROMOTION_EDIT:185,LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST:265,
LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT:174,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CMS_VIDEOS:202,LATENCY_ACTION_CREATOR_CMS_REPORTS:201,LATENCY_ACTION_CREATOR_CMS_RELEASES:226,LATENCY_ACTION_CREATOR_CMS_POLICIES:225,LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC:224,LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING:200,LATENCY_ACTION_CREATOR_CMS_LICENSES:223,LATENCY_ACTION_CREATOR_CMS_ISSUES:191,
LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES:252,LATENCY_ACTION_CREATOR_CMS_DASHBOARD:199,LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY:198,LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS:197,LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES:261,LATENCY_ACTION_CREATOR_CMS_CHANNELS:196,LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS:222,LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY:253,LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS:214,LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES:254,LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES:209,
LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY:208,LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP:207,LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA:205,LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES:212,LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES:206,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA:258,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS:260,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS:259,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS:257,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS:221,LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS:210,
LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY:256,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP:255,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION:213,LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS:211,LATENCY_ACTION_CREATOR_CMS_ASSETS:195,LATENCY_ACTION_CREATOR_CMS_ART_TRACKS:220,LATENCY_ACTION_CREATOR_CMS_ANALYTICS:194,LATENCY_ACTION_CREATOR_CMS_ALLOWLIST:227,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,
LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT:177,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,
LATENCY_ACTION_EXPERIMENTAL_WATCH_UI:181,LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS:228,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_PLAYLIST_AGGREGATION:266,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,
LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_IMAGE_LOAD:268,LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_STARTUP:106,
LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_INLINE_TO_WATCH:232,LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH:230,LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_HOME:1,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_USER_ACTION:189,LATENCY_ACTION_INFRASTRUCTURE:188,LATENCY_ACTION_PAGE_NAVIGATION:187,LATENCY_ACTION_UNKNOWN:0};U[U.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";
U[U.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";U[U.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";U[U.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";U[U.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";
U[U.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";U[U.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";U[U.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";U[U.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";U[U.LATENCY_ACTION_MINI_APP_PLAY]="LATENCY_ACTION_MINI_APP_PLAY";U[U.LATENCY_ACTION_DMA_CONSENT_FLOW]="LATENCY_ACTION_DMA_CONSENT_FLOW";U[U.LATENCY_ACTION_GEL_FETCH]="LATENCY_ACTION_GEL_FETCH";U[U.LATENCY_ACTION_GEL_JSPB_SERIALIZE]="LATENCY_ACTION_GEL_JSPB_SERIALIZE";
U[U.LATENCY_ACTION_GEL_COMPRESSION]="LATENCY_ACTION_GEL_COMPRESSION";U[U.LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE]="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE";U[U.LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC]="LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC";U[U.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION";U[U.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";U[U.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";
U[U.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";U[U.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC";U[U.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";U[U.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";U[U.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";U[U.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";
U[U.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";U[U.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC";U[U.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";U[U.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";U[U.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";
U[U.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";U[U.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";U[U.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC";U[U.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";U[U.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";U[U.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";
U[U.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";U[U.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";U[U.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW";U[U.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";U[U.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";U[U.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";U[U.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";
U[U.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";U[U.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";U[U.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";U[U.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";U[U.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";U[U.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";
U[U.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN";U[U.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";U[U.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";U[U.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";U[U.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";U[U.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";
U[U.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";U[U.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";U[U.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";U[U.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";U[U.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";U[U.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";
U[U.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";U[U.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";U[U.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";U[U.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";U[U.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";U[U.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";
U[U.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";U[U.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";U[U.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";U[U.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";U[U.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";U[U.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";U[U.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";
U[U.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";U[U.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";U[U.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";U[U.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";U[U.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";U[U.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";U[U.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";U[U.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";
U[U.LATENCY_ACTION_MDX_CONNECT_TO_SESSION]="LATENCY_ACTION_MDX_CONNECT_TO_SESSION";U[U.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";U[U.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";U[U.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";U[U.LATENCY_ACTION_MOBILE_LIVE_NAV_MDE]="LATENCY_ACTION_MOBILE_LIVE_NAV_MDE";U[U.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";U[U.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";
U[U.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD";U[U.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD";U[U.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD";U[U.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE";U[U.LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD]="LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD";
U[U.LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET]="LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET";U[U.LATENCY_ACTION_SHORTS_LOAD_PROJECT]="LATENCY_ACTION_SHORTS_LOAD_PROJECT";U[U.LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING]="LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING";U[U.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";U[U.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";U[U.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION";
U[U.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";U[U.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";U[U.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";U[U.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";U[U.LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD]="LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD";
U[U.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";U[U.LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING]="LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING";U[U.LATENCY_ACTION_SHORTS_RECOMPOSITION]="LATENCY_ACTION_SHORTS_RECOMPOSITION";U[U.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";U[U.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";U[U.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";U[U.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";
U[U.LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT";U[U.LATENCY_ACTION_CREATION_MODES_MODE_SWITCH]="LATENCY_ACTION_CREATION_MODES_MODE_SWITCH";U[U.LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT";U[U.LATENCY_ACTION_SWITCH_CAMERA]="LATENCY_ACTION_SWITCH_CAMERA";U[U.LATENCY_ACTION_OPEN_CAMERA]="LATENCY_ACTION_OPEN_CAMERA";U[U.LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE]="LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE";
U[U.LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME]="LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME";U[U.LATENCY_ACTION_MEDIA_ENGINE_EXPORT]="LATENCY_ACTION_MEDIA_ENGINE_EXPORT";U[U.LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA]="LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA";U[U.LATENCY_ACTION_PRODUCER_EXPORT_PROJECT]="LATENCY_ACTION_PRODUCER_EXPORT_PROJECT";U[U.LATENCY_ACTION_PRODUCER_EDITOR]="LATENCY_ACTION_PRODUCER_EDITOR";U[U.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";
U[U.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";U[U.LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL";U[U.LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL";U[U.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";U[U.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";
U[U.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";U[U.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";U[U.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE";U[U.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";U[U.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";U[U.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";U[U.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";U[U.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";
U[U.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";U[U.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";U[U.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";U[U.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";U[U.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";U[U.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";U[U.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";
U[U.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";U[U.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";U[U.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT";U[U.LATENCY_ACTION_CREATOR_VIDEO_POLICY]="LATENCY_ACTION_CREATOR_VIDEO_POLICY";U[U.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";
U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";U[U.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";U[U.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";U[U.LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT";
U[U.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";U[U.LATENCY_ACTION_CREATOR_VIDEO_CLAIMS]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS";U[U.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST";U[U.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT";
U[U.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";U[U.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";U[U.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";U[U.LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST";U[U.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";U[U.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";
U[U.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";U[U.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";U[U.LATENCY_ACTION_CREATOR_CMS_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_VIDEOS";U[U.LATENCY_ACTION_CREATOR_CMS_REPORTS]="LATENCY_ACTION_CREATOR_CMS_REPORTS";U[U.LATENCY_ACTION_CREATOR_CMS_RELEASES]="LATENCY_ACTION_CREATOR_CMS_RELEASES";U[U.LATENCY_ACTION_CREATOR_CMS_POLICIES]="LATENCY_ACTION_CREATOR_CMS_POLICIES";
U[U.LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC";U[U.LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING";U[U.LATENCY_ACTION_CREATOR_CMS_LICENSES]="LATENCY_ACTION_CREATOR_CMS_LICENSES";U[U.LATENCY_ACTION_CREATOR_CMS_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ISSUES";U[U.LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES";U[U.LATENCY_ACTION_CREATOR_CMS_DASHBOARD]="LATENCY_ACTION_CREATOR_CMS_DASHBOARD";
U[U.LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY";U[U.LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS";U[U.LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES";U[U.LATENCY_ACTION_CREATOR_CMS_CHANNELS]="LATENCY_ACTION_CREATOR_CMS_CHANNELS";U[U.LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS";U[U.LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY";
U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP";
U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS";
U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY";
U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION";U[U.LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS";U[U.LATENCY_ACTION_CREATOR_CMS_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSETS";U[U.LATENCY_ACTION_CREATOR_CMS_ART_TRACKS]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS";
U[U.LATENCY_ACTION_CREATOR_CMS_ANALYTICS]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_CMS_ALLOWLIST]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST";U[U.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";
U[U.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";U[U.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";U[U.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";U[U.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";U[U.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";U[U.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";
U[U.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";U[U.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";U[U.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";U[U.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";U[U.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";
U[U.LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS]="LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS";U[U.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";U[U.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";U[U.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";U[U.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";U[U.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";U[U.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";
U[U.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";U[U.LATENCY_ACTION_PLAYLIST_AGGREGATION]="LATENCY_ACTION_PLAYLIST_AGGREGATION";U[U.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";U[U.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";U[U.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";U[U.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";U[U.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";U[U.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";
U[U.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";U[U.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";U[U.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";U[U.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";U[U.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";U[U.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";U[U.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";U[U.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";
U[U.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";U[U.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";U[U.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";U[U.LATENCY_ACTION_IMAGE_LOAD]="LATENCY_ACTION_IMAGE_LOAD";U[U.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";U[U.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";U[U.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";U[U.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";
U[U.LATENCY_ACTION_INLINE_TO_WATCH]="LATENCY_ACTION_INLINE_TO_WATCH";U[U.LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH]="LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH";U[U.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";U[U.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";U[U.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";U[U.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";U[U.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";U[U.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";U[U.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";
U[U.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";U[U.LATENCY_ACTION_USER_ACTION]="LATENCY_ACTION_USER_ACTION";U[U.LATENCY_ACTION_INFRASTRUCTURE]="LATENCY_ACTION_INFRASTRUCTURE";U[U.LATENCY_ACTION_PAGE_NAVIGATION]="LATENCY_ACTION_PAGE_NAVIGATION";U[U.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var UH={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};UH[UH.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";UH[UH.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";
UH[UH.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";var VH={CONN_INVALID:31,CONN_WIRED:30,CONN_CELLULAR_5G_NSA:12,CONN_CELLULAR_5G_SA:11,CONN_WIFI_METERED:10,CONN_CELLULAR_5G:9,CONN_DISCO:8,CONN_CELLULAR_UNKNOWN:7,CONN_CELLULAR_4G:6,CONN_CELLULAR_3G:5,CONN_CELLULAR_2G:4,CONN_WIFI:3,CONN_NONE:2,CONN_UNKNOWN:1,CONN_DEFAULT:0};VH[VH.CONN_INVALID]="CONN_INVALID";VH[VH.CONN_WIRED]="CONN_WIRED";VH[VH.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";VH[VH.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";
VH[VH.CONN_WIFI_METERED]="CONN_WIFI_METERED";VH[VH.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";VH[VH.CONN_DISCO]="CONN_DISCO";VH[VH.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";VH[VH.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";VH[VH.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";VH[VH.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";VH[VH.CONN_WIFI]="CONN_WIFI";VH[VH.CONN_NONE]="CONN_NONE";VH[VH.CONN_UNKNOWN]="CONN_UNKNOWN";VH[VH.CONN_DEFAULT]="CONN_DEFAULT";
var WH={DETAILED_NETWORK_TYPE_NR_NSA:126,DETAILED_NETWORK_TYPE_NR_SA:125,DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED:124,DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT:123,DETAILED_NETWORK_TYPE_DISCONNECTED:122,DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN:121,DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN:120,DETAILED_NETWORK_TYPE_WIMAX:119,DETAILED_NETWORK_TYPE_ETHERNET:118,DETAILED_NETWORK_TYPE_BLUETOOTH:117,DETAILED_NETWORK_TYPE_WIFI:116,DETAILED_NETWORK_TYPE_LTE:115,DETAILED_NETWORK_TYPE_HSPAP:114,DETAILED_NETWORK_TYPE_EHRPD:113,
DETAILED_NETWORK_TYPE_EVDO_B:112,DETAILED_NETWORK_TYPE_UMTS:111,DETAILED_NETWORK_TYPE_IDEN:110,DETAILED_NETWORK_TYPE_HSUPA:109,DETAILED_NETWORK_TYPE_HSPA:108,DETAILED_NETWORK_TYPE_HSDPA:107,DETAILED_NETWORK_TYPE_EVDO_A:106,DETAILED_NETWORK_TYPE_EVDO_0:105,DETAILED_NETWORK_TYPE_CDMA:104,DETAILED_NETWORK_TYPE_1_X_RTT:103,DETAILED_NETWORK_TYPE_GPRS:102,DETAILED_NETWORK_TYPE_EDGE:101,DETAILED_NETWORK_TYPE_UNKNOWN:0};WH[WH.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
WH[WH.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";WH[WH.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";WH[WH.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";WH[WH.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";WH[WH.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";WH[WH.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
WH[WH.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";WH[WH.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";WH[WH.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";WH[WH.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";WH[WH.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";WH[WH.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";WH[WH.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";WH[WH.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
WH[WH.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";WH[WH.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";WH[WH.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";WH[WH.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";WH[WH.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";WH[WH.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";WH[WH.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";WH[WH.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
WH[WH.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";WH[WH.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";WH[WH.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";WH[WH.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var XH={LATENCY_PLAYER_RTSP:7,LATENCY_PLAYER_HTML5_INLINE:6,LATENCY_PLAYER_HTML5_FULLSCREEN:5,LATENCY_PLAYER_HTML5:4,LATENCY_PLAYER_FRAMEWORK:3,LATENCY_PLAYER_FLASH:2,LATENCY_PLAYER_EXO:1,LATENCY_PLAYER_UNKNOWN:0};
XH[XH.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";XH[XH.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";XH[XH.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";XH[XH.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";XH[XH.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";XH[XH.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";XH[XH.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";XH[XH.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var YH={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};YH[YH.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";YH[YH.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";YH[YH.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";YH[YH.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var ZH={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
ZH[ZH.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";ZH[ZH.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var $H={LIVE_STREAM_MODE_WINDOW:5,LIVE_STREAM_MODE_POST:4,LIVE_STREAM_MODE_LP:3,LIVE_STREAM_MODE_LIVE:2,LIVE_STREAM_MODE_DVR:1,LIVE_STREAM_MODE_UNKNOWN:0};$H[$H.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";$H[$H.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";$H[$H.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
$H[$H.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";$H[$H.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";$H[$H.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var aI={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};aI[aI.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";aI[aI.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";aI[aI.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";aI[aI.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var bI={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};bI[bI.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";bI[bI.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";bI[bI.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var cI={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};cI[cI.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
cI[cI.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";cI[cI.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var rwa="actionVisualElement spinnerInfo cacheAttempts resourceInfo preloadThumbnailInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo imageLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo webViewInfo prefetchInfo accelerationSession commerceInfo inlineToWatchInfo mediaEngineMetadata miniAppInfo dynamicAssetFetchInfo webInfo tvInfo kabukiInfo mwebInfo musicInfo transcodingContext creationModesContext cameraMetadata producerMediaAssetMetadata".split(" ");g.w(nwa,qE);var Hwa=new rE("aft-recorded",nwa);var MH=g.Qa.ytLoggingLatencyUsageStats_||{};g.Sa("ytLoggingLatencyUsageStats_",MH);KH.prototype.tick=function(a,b,c,d){NH(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.SB("web_csi_via_jspb")?(d=new wma,N(d,1,a),N(d,2,b),a=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB,uj(a,wma,5,MF,d),LF("latencyActionTicked",a,c)):g.zD("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
KH.prototype.info=function(a,b,c){var d=Object.keys(a).join("");NH(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.zD("latencyActionInfo",a,{cttAuthInfo:c}))};
KH.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e<a.toJSON().length;e++)void 0!==a.toJSON()[e]&&(d=0===e?d.concat(""+e):d.concat("_"+e));NH(this,"info_"+d+"_"+b)||(N(a,2,b),b={cttAuthInfo:c},c=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB,uj(c,BB,7,MF,a),LF("latencyActionInfo",c,b))};
KH.prototype.span=function(a,b,c){var d=Object.keys(a).join("");NH(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.zD("latencyActionSpan",a,{cttAuthInfo:c}))};var Z2=window,OH=Z2.performance||Z2.mozPerformance||Z2.msPerformance||Z2.webkitPerformance||new owa;var Gwa=!1,Bwa={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
'script[name="mobile_blazer_watch_mod"]':"mbwj"},Jwa=(0,g.cb)(OH.clearResourceTimings||OH.webkitClearResourceTimings||OH.mozClearResourceTimings||OH.msClearResourceTimings||OH.oClearResourceTimings||g.Ld,OH);var Mgb=window;Mgb.ytcsi&&(Mgb.ytcsi.info=Owa,Mgb.ytcsi.tick=jI);var Xwa="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD".split(" "),Zwa=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse"];var cxa=new eF("INNERTUBE_TRANSPORT_TOKEN");g.w(oI,AH);oI.prototype.C=function(){return Bgb};
oI.prototype.j=function(a){return g.S(a,ngb)||void 0};
oI.prototype.B=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
g.da.Object.defineProperties(oI.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(pI,AH);pI.prototype.C=function(){return Cgb};
pI.prototype.j=function(a){return g.S(a,lgb)||void 0};
pI.prototype.B=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
g.da.Object.defineProperties(pI.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(qI,AH);qI.prototype.C=function(){return ygb};
qI.prototype.j=function(a){return g.S(a,Meb)||void 0};
qI.prototype.B=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
g.da.Object.defineProperties(qI.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(rI,AH);rI.prototype.C=function(){return zgb};
rI.prototype.j=function(a){return g.S(a,kgb)||void 0};
rI.prototype.B=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.w(sI,AH);sI.prototype.C=function(){return Agb};
sI.prototype.j=function(a){return g.S(a,igb)||void 0};
sI.prototype.B=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.w(tI,AH);tI.prototype.C=function(){return xgb};
tI.prototype.j=function(a){return g.S(a,Yfb)};
tI.prototype.B=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var Ngb=new eF("NETWORK_SLI_TOKEN");uI.prototype.fetch=function(a,b){var c=this,d,e,f;return g.H(function(h){c.j&&(d=ul(g.wl(5,Gl(a,"key")))||"/UNKNOWN_PATH",c.j.start(d));e=b;g.SB("wug_networking_gzip_request")&&(e=Fqa(b));f=new window.Request(a,e);return g.SB("web_fetch_promise_cleanup_killswitch")?h.return(Promise.resolve(fetch(f).then(function(l){return c.handleResponse(l)}).catch(function(l){g.UF(l)}))):h.return(fetch(f).then(function(l){return c.handleResponse(l)}).catch(function(l){g.UF(l)}))})};
uI.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))});
a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.meb(),b=b.then(function(c){g.UF(new g.nD("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})}));
return b};
uI[gF]=[new fF(Ngb)];var bxa=new eF("NETWORK_MANAGER_TOKEN");var axa;var zJa={jga:0,kga:1,iga:2,hga:3,gga:4};var Ogb={},Pgb={},Qgb={},Rgb={},Sgb={},Tgb={},Ugb={responseContext:{serviceTrackingParams:[{service:"wd",params:[{key:"kc",value:"66"},{key:"cw",value:"st"},{key:"zb",value:"xz"},{key:"zl",value:"16"},{key:"pf",value:"sy"}]},{service:"bh",params:[{key:"ip",value:"54"},{key:"tb",value:"dv"},{key:"pi",value:"pn"},{key:"fg",value:"35"},{key:"wm",value:"vo"}]},{service:"fp",params:[{key:"hw",value:"91"}]},{service:"rk",params:[{key:"pe",value:"sf"},{key:"rv",value:"jn"},{key:"aw",value:"pw"}]}],maxAgeSeconds:87,
mainAppWebResponseContext:{loggedOut:43,trackingParam:"dd",datasyncId:"xp"},webResponseContextExtensionData:{hasDecorated:75}},playabilityStatus:{status:"by",playableInEmbed:2,miniplayer:{miniplayerRenderer:{playbackMode:"tj"}},offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:"pz",ypcGetOfflineUpsellEndpoint:{params:"xm"}},trackingParams:"pq"}},contextParams:"lu"},streamingData:{expiresInSeconds:"53",formats:[{itag:80,url:"ko",mimeType:"dr",bitrate:88,width:96,height:65,lastModified:"78",
contentLength:"17",quality:"rc",fps:8,qualityLabel:"ab",projectionType:"by",averageBitrate:50,audioQuality:"th",approxDurationMs:"86",audioSampleRate:"88",audioChannels:34},{itag:95,url:"hs",mimeType:"nm",bitrate:56,width:13,height:14,lastModified:"10",quality:"fu",fps:54,qualityLabel:"yj",projectionType:"wu",audioQuality:"tu",approxDurationMs:"51",audioSampleRate:"87",audioChannels:44}],adaptiveFormats:[{itag:50,url:"fu",mimeType:"uz",bitrate:80,width:80,height:85,initRange:{start:"16",end:"71"},
indexRange:{start:"1",end:"26"},lastModified:"70",contentLength:"66",quality:"cx",fps:61,qualityLabel:"xt",projectionType:"pe",averageBitrate:68,approxDurationMs:"1"},{itag:77,url:"rj",mimeType:"lh",bitrate:16,width:17,height:47,initRange:{start:"51",end:"44"},indexRange:{start:"87",end:"61"},lastModified:"13",contentLength:"21",quality:"ie",fps:23,qualityLabel:"ig",projectionType:"bl",averageBitrate:16,colorInfo:{primaries:"et",transferCharacteristics:"zu",matrixCoefficients:"od"},approxDurationMs:"59"},
{itag:7,url:"fc",mimeType:"gr",bitrate:71,width:11,height:3,initRange:{start:"100",end:"7"},indexRange:{start:"36",end:"98"},lastModified:"88",contentLength:"77",quality:"rb",fps:46,qualityLabel:"gq",projectionType:"ld",averageBitrate:99,colorInfo:{primaries:"xd",transferCharacteristics:"uu",matrixCoefficients:"zc"},approxDurationMs:"44"},{itag:10,url:"kl",mimeType:"wb",bitrate:51,width:69,height:3,initRange:{start:"92",end:"79"},indexRange:{start:"42",end:"72"},lastModified:"99",contentLength:"6",
quality:"ee",fps:40,qualityLabel:"em",projectionType:"wz",averageBitrate:48,approxDurationMs:"86"},{itag:44,url:"hp",mimeType:"kq",bitrate:84,width:53,height:22,initRange:{start:"48",end:"51"},indexRange:{start:"54",end:"44"},lastModified:"25",contentLength:"47",quality:"xy",fps:11,qualityLabel:"zl",projectionType:"za",averageBitrate:95,colorInfo:{primaries:"ot",transferCharacteristics:"av",matrixCoefficients:"ow"},approxDurationMs:"85"},{itag:20,url:"di",mimeType:"nc",bitrate:15,width:19,height:92,
initRange:{start:"82",end:"58"},indexRange:{start:"80",end:"37"},lastModified:"46",contentLength:"40",quality:"wo",fps:44,qualityLabel:"pt",projectionType:"bg",averageBitrate:3,colorInfo:{primaries:"wq",transferCharacteristics:"is",matrixCoefficients:"ou"},approxDurationMs:"47"},{itag:44,url:"oe",mimeType:"mh",bitrate:37,width:43,height:24,initRange:{start:"29",end:"91"},indexRange:{start:"97",end:"97"},lastModified:"52",contentLength:"43",quality:"cr",fps:44,qualityLabel:"hc",projectionType:"cr",
averageBitrate:12,approxDurationMs:"97"},{itag:32,url:"gq",mimeType:"sh",bitrate:42,width:32,height:13,initRange:{start:"71",end:"87"},indexRange:{start:"70",end:"4"},lastModified:"67",contentLength:"16",quality:"sb",fps:66,qualityLabel:"mv",projectionType:"kk",averageBitrate:51,colorInfo:{primaries:"pk",transferCharacteristics:"ea",matrixCoefficients:"cq"},approxDurationMs:"70"},{itag:71,url:"zt",mimeType:"bl",bitrate:12,width:68,height:12,initRange:{start:"63",end:"2"},indexRange:{start:"28",end:"68"},
lastModified:"33",contentLength:"0",quality:"dh",fps:6,qualityLabel:"jv",projectionType:"sy",averageBitrate:75,colorInfo:{primaries:"us",transferCharacteristics:"ka",matrixCoefficients:"xw"},approxDurationMs:"16"},{itag:98,url:"vl",mimeType:"lg",bitrate:88,width:23,height:83,initRange:{start:"49",end:"34"},indexRange:{start:"43",end:"90"},lastModified:"84",contentLength:"77",quality:"xu",fps:50,qualityLabel:"jz",projectionType:"om",averageBitrate:16,highReplication:95,approxDurationMs:"46"},{itag:85,
url:"ri",mimeType:"dh",bitrate:77,width:86,height:54,initRange:{start:"40",end:"98"},indexRange:{start:"15",end:"85"},lastModified:"25",contentLength:"53",quality:"rq",fps:62,qualityLabel:"nx",projectionType:"wg",averageBitrate:35,colorInfo:{primaries:"oa",transferCharacteristics:"kb",matrixCoefficients:"kk"},approxDurationMs:"26"},{itag:10,url:"zz",mimeType:"lq",bitrate:55,width:89,height:43,initRange:{start:"94",end:"98"},indexRange:{start:"73",end:"51"},lastModified:"3",contentLength:"36",quality:"yo",
fps:5,qualityLabel:"we",projectionType:"ve",averageBitrate:83,colorInfo:{primaries:"yu",transferCharacteristics:"fu",matrixCoefficients:"ox"},approxDurationMs:"11"},{itag:62,url:"hv",mimeType:"th",bitrate:76,width:28,height:79,initRange:{start:"97",end:"100"},indexRange:{start:"58",end:"63"},lastModified:"53",contentLength:"22",quality:"ou",fps:7,qualityLabel:"cm",projectionType:"xv",averageBitrate:35,approxDurationMs:"98"},{itag:91,url:"vr",mimeType:"wo",bitrate:41,width:4,height:79,initRange:{start:"80",
end:"83"},indexRange:{start:"14",end:"58"},lastModified:"50",contentLength:"38",quality:"ic",fps:64,qualityLabel:"sq",projectionType:"du",averageBitrate:61,colorInfo:{primaries:"ok",transferCharacteristics:"ud",matrixCoefficients:"ob"},approxDurationMs:"73"},{itag:48,url:"lq",mimeType:"zl",bitrate:4,width:16,height:65,initRange:{start:"93",end:"50"},indexRange:{start:"52",end:"44"},lastModified:"74",contentLength:"86",quality:"mi",fps:43,qualityLabel:"rz",projectionType:"ji",averageBitrate:61,colorInfo:{primaries:"qo",
transferCharacteristics:"fk",matrixCoefficients:"jy"},approxDurationMs:"70"},{itag:34,url:"cr",mimeType:"la",bitrate:53,width:29,height:97,initRange:{start:"89",end:"45"},indexRange:{start:"93",end:"45"},lastModified:"52",contentLength:"74",quality:"xn",fps:60,qualityLabel:"xs",projectionType:"lf",averageBitrate:1,approxDurationMs:"18"},{itag:67,url:"mr",mimeType:"cs",bitrate:79,width:9,height:85,initRange:{start:"56",end:"96"},indexRange:{start:"71",end:"84"},lastModified:"78",contentLength:"80",
quality:"ld",fps:2,qualityLabel:"no",projectionType:"uq",averageBitrate:35,colorInfo:{primaries:"mj",transferCharacteristics:"ry",matrixCoefficients:"cc"},approxDurationMs:"43"},{itag:57,url:"fi",mimeType:"to",bitrate:80,width:81,height:29,initRange:{start:"6",end:"96"},indexRange:{start:"73",end:"48"},lastModified:"32",contentLength:"11",quality:"ck",fps:82,qualityLabel:"fo",projectionType:"px",averageBitrate:95,colorInfo:{primaries:"az",transferCharacteristics:"mq",matrixCoefficients:"oc"},approxDurationMs:"44"},
{itag:52,url:"ea",mimeType:"xm",bitrate:18,initRange:{start:"15",end:"16"},indexRange:{start:"4",end:"33"},lastModified:"65",contentLength:"67",quality:"es",projectionType:"mp",averageBitrate:52,highReplication:82,audioQuality:"za",approxDurationMs:"24",audioSampleRate:"1",audioChannels:92,loudnessDb:.9787435365879406},{itag:37,url:"kk",mimeType:"xg",bitrate:78,initRange:{start:"38",end:"94"},indexRange:{start:"27",end:"17"},lastModified:"61",contentLength:"2",quality:"nh",projectionType:"ar",averageBitrate:69,
audioQuality:"la",approxDurationMs:"95",audioSampleRate:"66",audioChannels:50,loudnessDb:.6461265012758731},{itag:45,url:"oc",mimeType:"nm",bitrate:12,initRange:{start:"21",end:"45"},indexRange:{start:"21",end:"13"},lastModified:"45",contentLength:"85",quality:"vs",projectionType:"xp",averageBitrate:32,audioQuality:"tv",approxDurationMs:"1",audioSampleRate:"99",audioChannels:42,loudnessDb:.39295968942278037},{itag:37,url:"zf",mimeType:"be",bitrate:29,initRange:{start:"27",end:"87"},indexRange:{start:"81",
end:"20"},lastModified:"6",contentLength:"33",quality:"pe",projectionType:"pb",averageBitrate:100,audioQuality:"zi",approxDurationMs:"70",audioSampleRate:"32",audioChannels:68,loudnessDb:.2781731101164002}]},playerAds:[{playerLegacyDesktopWatchAdsRenderer:{playerAdParams:{showContentThumbnail:10,enabledEngageTypes:"yz"},gutParams:{tag:"db"},showCompanion:7,showInstream:79,useGut:88}}],playbackTracking:{videostatsPlaybackUrl:{baseUrl:"bj"},videostatsDelayplayUrl:{baseUrl:"vx"},videostatsWatchtimeUrl:{baseUrl:"px"},
ptrackingUrl:{baseUrl:"tg"},qoeUrl:{baseUrl:"wx"},atrUrl:{baseUrl:"xz",elapsedMediaTimeSeconds:45},videostatsScheduledFlushWalltimeSeconds:[99,32,39],videostatsDefaultFlushIntervalSeconds:3,youtubeRemarketingUrl:{baseUrl:"mb",elapsedMediaTimeSeconds:63},googleRemarketingUrl:{baseUrl:"yn",elapsedMediaTimeSeconds:83}},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"ew",name:{simpleText:"ez"},vssId:"fj",languageCode:"wd",kind:"ez",isTranslatable:21}],audioTracks:[{captionTrackIndices:[87]}],
translationLanguages:[{languageCode:"xu",languageName:{simpleText:"fw"}},{languageCode:"zl",languageName:{simpleText:"xc"}},{languageCode:"jr",languageName:{simpleText:"md"}},{languageCode:"sc",languageName:{simpleText:"wf"}},{languageCode:"nj",languageName:{simpleText:"xn"}},{languageCode:"of",languageName:{simpleText:"av"}},{languageCode:"tv",languageName:{simpleText:"ok"}},{languageCode:"nu",languageName:{simpleText:"ry"}},{languageCode:"zy",languageName:{simpleText:"nb"}},{languageCode:"pt",languageName:{simpleText:"eq"}},
{languageCode:"vr",languageName:{simpleText:"cc"}},{languageCode:"wh",languageName:{simpleText:"hd"}},{languageCode:"hp",languageName:{simpleText:"ds"}},{languageCode:"ka",languageName:{simpleText:"up"}},{languageCode:"sw",languageName:{simpleText:"zp"}},{languageCode:"rh",languageName:{simpleText:"eq"}},{languageCode:"bq",languageName:{simpleText:"at"}},{languageCode:"hu",languageName:{simpleText:"fg"}},{languageCode:"ai",languageName:{simpleText:"iy"}},{languageCode:"rj",languageName:{simpleText:"oz"}},
{languageCode:"sq",languageName:{simpleText:"fe"}},{languageCode:"tn",languageName:{simpleText:"vk"}},{languageCode:"jr",languageName:{simpleText:"jg"}},{languageCode:"vc",languageName:{simpleText:"hv"}},{languageCode:"yn",languageName:{simpleText:"ky"}},{languageCode:"pa",languageName:{simpleText:"rw"}},{languageCode:"lr",languageName:{simpleText:"kv"}},{languageCode:"ud",languageName:{simpleText:"fn"}},{languageCode:"hq",languageName:{simpleText:"io"}},{languageCode:"rp",languageName:{simpleText:"qx"}},
{languageCode:"xf",languageName:{simpleText:"sm"}},{languageCode:"fs",languageName:{simpleText:"ty"}},{languageCode:"so",languageName:{simpleText:"xl"}},{languageCode:"fk",languageName:{simpleText:"ff"}},{languageCode:"fw",languageName:{simpleText:"wz"}},{languageCode:"rn",languageName:{simpleText:"zw"}},{languageCode:"wq",languageName:{simpleText:"yt"}},{languageCode:"oh",languageName:{simpleText:"oo"}},{languageCode:"ts",languageName:{simpleText:"jt"}},{languageCode:"xy",languageName:{simpleText:"ga"}},
{languageCode:"jy",languageName:{simpleText:"sx"}},{languageCode:"lw",languageName:{simpleText:"cf"}},{languageCode:"fc",languageName:{simpleText:"qr"}},{languageCode:"ji",languageName:{simpleText:"cc"}},{languageCode:"qs",languageName:{simpleText:"pi"}},{languageCode:"vx",languageName:{simpleText:"hk"}},{languageCode:"jt",languageName:{simpleText:"eh"}},{languageCode:"fb",languageName:{simpleText:"iu"}},{languageCode:"mf",languageName:{simpleText:"st"}},{languageCode:"en",languageName:{simpleText:"vr"}},
{languageCode:"go",languageName:{simpleText:"kp"}},{languageCode:"sc",languageName:{simpleText:"rk"}},{languageCode:"bx",languageName:{simpleText:"ci"}},{languageCode:"pu",languageName:{simpleText:"qj"}},{languageCode:"fa",languageName:{simpleText:"ht"}},{languageCode:"bw",languageName:{simpleText:"af"}},{languageCode:"rr",languageName:{simpleText:"jt"}},{languageCode:"ef",languageName:{simpleText:"yy"}},{languageCode:"bn",languageName:{simpleText:"wu"}},{languageCode:"ov",languageName:{simpleText:"ae"}},
{languageCode:"sm",languageName:{simpleText:"hi"}},{languageCode:"tq",languageName:{simpleText:"ie"}},{languageCode:"fn",languageName:{simpleText:"et"}},{languageCode:"jw",languageName:{simpleText:"bu"}},{languageCode:"iz",languageName:{simpleText:"gc"}},{languageCode:"bk",languageName:{simpleText:"jh"}},{languageCode:"vw",languageName:{simpleText:"fq"}},{languageCode:"xt",languageName:{simpleText:"or"}},{languageCode:"kq",languageName:{simpleText:"ch"}},{languageCode:"pa",languageName:{simpleText:"cs"}},
{languageCode:"ef",languageName:{simpleText:"eq"}},{languageCode:"mk",languageName:{simpleText:"ig"}},{languageCode:"me",languageName:{simpleText:"pv"}},{languageCode:"ll",languageName:{simpleText:"nz"}},{languageCode:"yd",languageName:{simpleText:"pu"}},{languageCode:"dj",languageName:{simpleText:"vx"}},{languageCode:"xc",languageName:{simpleText:"ca"}},{languageCode:"wb",languageName:{simpleText:"il"}},{languageCode:"ww",languageName:{simpleText:"jf"}},{languageCode:"xi",languageName:{simpleText:"ba"}},
{languageCode:"ae",languageName:{simpleText:"hx"}},{languageCode:"uj",languageName:{simpleText:"xu"}},{languageCode:"hq",languageName:{simpleText:"gp"}},{languageCode:"we",languageName:{simpleText:"pk"}},{languageCode:"kt",languageName:{simpleText:"ek"}},{languageCode:"hy",languageName:{simpleText:"ab"}},{languageCode:"hm",languageName:{simpleText:"nu"}},{languageCode:"uw",languageName:{simpleText:"rx"}},{languageCode:"or",languageName:{simpleText:"nf"}},{languageCode:"dh",languageName:{simpleText:"zn"}},
{languageCode:"kb",languageName:{simpleText:"js"}},{languageCode:"vg",languageName:{simpleText:"xe"}},{languageCode:"dl",languageName:{simpleText:"so"}},{languageCode:"lz",languageName:{simpleText:"hb"}},{languageCode:"ny",languageName:{simpleText:"xr"}},{languageCode:"ag",languageName:{simpleText:"us"}},{languageCode:"zr",languageName:{simpleText:"ae"}},{languageCode:"yq",languageName:{simpleText:"yc"}},{languageCode:"up",languageName:{simpleText:"dc"}},{languageCode:"zn",languageName:{simpleText:"jw"}},
{languageCode:"uh",languageName:{simpleText:"ms"}},{languageCode:"mt",languageName:{simpleText:"vf"}},{languageCode:"lt",languageName:{simpleText:"ln"}},{languageCode:"vf",languageName:{simpleText:"rd"}},{languageCode:"my",languageName:{simpleText:"rk"}},{languageCode:"ei",languageName:{simpleText:"ul"}},{languageCode:"dj",languageName:{simpleText:"cz"}},{languageCode:"kb",languageName:{simpleText:"hp"}},{languageCode:"jj",languageName:{simpleText:"zf"}},{languageCode:"ew",languageName:{simpleText:"ff"}},
{languageCode:"jo",languageName:{simpleText:"iz"}},{languageCode:"ja",languageName:{simpleText:"uz"}},{languageCode:"yd",languageName:{simpleText:"or"}},{languageCode:"tl",languageName:{simpleText:"tw"}},{languageCode:"mw",languageName:{simpleText:"th"}},{languageCode:"pq",languageName:{simpleText:"zp"}},{languageCode:"pq",languageName:{simpleText:"pk"}},{languageCode:"ef",languageName:{simpleText:"fj"}},{languageCode:"qq",languageName:{simpleText:"vu"}},{languageCode:"pj",languageName:{simpleText:"kp"}},
{languageCode:"ab",languageName:{simpleText:"xw"}},{languageCode:"re",languageName:{simpleText:"ln"}},{languageCode:"ht",languageName:{simpleText:"wo"}},{languageCode:"ju",languageName:{simpleText:"wb"}},{languageCode:"yq",languageName:{simpleText:"xv"}}],defaultAudioTrackIndex:70}},videoDetails:{videoId:"ux",title:"jb",lengthSeconds:"90",keywords:"th ts yg gy ih iq zj".split(" "),channelId:"pg",isOwnerViewing:6,shortDescription:"ts",isCrawlable:62,thumbnail:{thumbnails:[{url:"vx",width:8,height:58},
{url:"bp",width:44,height:79},{url:"oh",width:47,height:66},{url:"hm",width:34,height:55},{url:"vr",width:0,height:20}]},allowRatings:24,viewCount:"49",author:"xr",isPrivate:70,isUnpluggedCorpus:66,isLiveContent:99},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"96",endTimeMs:"46",watermark:{thumbnails:[{url:"li",width:91,height:28}]},trackingParams:"an",navigationEndpoint:{clickTrackingParams:"mg",commandMetadata:{webCommandMetadata:{url:"rd",webPageType:"nc",rootVe:69,
apiUrl:"fm"}},browseEndpoint:{browseId:"qg"}},channelName:"ei",subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:"pz"}]},subscribed:44,enabled:33,type:"ue",channelId:"ki",showPreferences:71,subscribedButtonText:{runs:[{text:"lk"}]},unsubscribedButtonText:{runs:[{text:"jn"}]},trackingParams:"oj",unsubscribeButtonText:{runs:[{text:"ad"}]},serviceEndpoints:[{clickTrackingParams:"wm",commandMetadata:{webCommandMetadata:{sendPost:4,apiUrl:"ky"}},subscribeEndpoint:{channelIds:["zt"],params:"at"}},
{clickTrackingParams:"jg",commandMetadata:{webCommandMetadata:{sendPost:28}},signalServiceEndpoint:{signal:"ok",actions:[{clickTrackingParams:"lt",openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:"po",dialogMessages:[{runs:[{text:"ou"},{text:"jt"},{text:"zz"}]}],confirmButton:{buttonRenderer:{style:"mm",size:"oi",isDisabled:43,text:{runs:[{text:"kc"}]},serviceEndpoint:{clickTrackingParams:"gk",commandMetadata:{webCommandMetadata:{sendPost:18,apiUrl:"kc"}},unsubscribeEndpoint:{channelIds:["cm"],
params:"ar"}},accessibility:{label:"iy"},trackingParams:"gs"}},cancelButton:{buttonRenderer:{style:"jb",size:"pe",isDisabled:69,text:{runs:[{text:"uv"}]},accessibility:{label:"qu"},trackingParams:"pe"}},primaryIsCancel:48}},popupType:"ma"}}]}}],subscribeAccessibility:{accessibilityData:{label:"vh"}},unsubscribeAccessibility:{accessibilityData:{label:"lg"}},signInEndpoint:{clickTrackingParams:"eu",commandMetadata:{webCommandMetadata:{url:"na"}}}}}},allowSwipeDismiss:55,annotationId:"jd"}}],playerConfig:{audioConfig:{loudnessDb:.9620880668073215,
perceptualLoudnessDb:.541474004793957,enablePerFormatLoudness:31},streamSelectionConfig:{maxBitrate:"61"},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:100,minReadAheadMediaTimeMs:21,readAheadGrowthRateMs:29}},webPlayerConfig:{useCobaltTvosDash:55,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:"of",commandMetadata:{webCommandMetadata:{sendPost:31,apiUrl:"xl"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"tr"}},subscribeCommand:{clickTrackingParams:"fs",
commandMetadata:{webCommandMetadata:{sendPost:13,apiUrl:"xp"}},subscribeEndpoint:{channelIds:["qs"],params:"oa"}},unsubscribeCommand:{clickTrackingParams:"ls",commandMetadata:{webCommandMetadata:{sendPost:91,apiUrl:"wc"}},unsubscribeEndpoint:{channelIds:["fo"],params:"vt"}},addToWatchLaterCommand:{clickTrackingParams:"ua",commandMetadata:{webCommandMetadata:{sendPost:18,apiUrl:"iu"}},playlistEditEndpoint:{playlistId:"rv",actions:[{addedVideoId:"iw",action:"rd"}]}},removeFromWatchLaterCommand:{clickTrackingParams:"un",
commandMetadata:{webCommandMetadata:{sendPost:20,apiUrl:"bl"}},playlistEditEndpoint:{playlistId:"zg",actions:[{action:"ya",removedVideoId:"dk"}]}}},gatewayExperimentGroup:"vb"}},storyboards:{playerStoryboardSpecRenderer:{spec:"aj",recommendedLevel:87}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"mm",width:57,height:94}]},embed:{iframeUrl:"bd",width:51,height:73},title:{simpleText:"sg"},description:{simpleText:"yv"},lengthSeconds:"18",ownerProfileUrl:"bg",externalChannelId:"eg",
isFamilySafe:88,availableCountries:"hn sd lt tx nw mq iz aj vi xa ec iv rj vb ro po mv mx cn ld tn ay gv bs vf da ss km uo mg wv md lo nc vh li jh lj qq ci ob zy pu bl jm ge tt ov ue vp ka nh uc gb rs gu hm uv nq ga qu hr pj zq rh nn yv or zg ai qj cv vg hr zm al mj fz yx st tt ih vm wq gx wi ys ug vb uh rf ry ba xu ce eq bx he jm ie nb cd qz no yq qe jy wd pm nb hk em im iv ld gz fe ut md gw sf yz yp xr gm uo kg yo wv da wt ry it gz mm ho mf lq tu im lu gm pa ny gu ds yx yh jk qb jv mp bi nr mc bg ym zt sh kd gj dp qw eh no pj nq dy gt cm pg ce jt xv tf ue ke hs xh tc ad yg uh cd zc rj kq sp vv xt bo am kg kx xb fr il qi ap pe tg im cs vy zu cq bu og tf ze zj um vd ot al zl um jv ss md xm nv id es jf as zb ms uv jh xz em uv bk zx wp ay ub pa rf yi zm em pu xs".split(" "),
isUnlisted:24,hasYpcMetadata:38,viewCount:"6",category:"qh",publishDate:"eb",ownerChannelName:"mf",uploadDate:"ax"}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:"ha"},trackingParams:"ra",prominent:9,logVisibilityUpdates:88,onTapCommand:{clickTrackingParams:"dy",changeEngagementPanelVisibilityAction:{targetId:"qc",visibility:"mh"}}}},cueRanges:[{startCardActiveMs:"41",endCardActiveMs:"81",teaserDurationMs:"31",iconAfterTeaserMs:"65"}],
trackingParams:"sn"}}],headerText:{simpleText:"mi"},icon:{infoCardIconRenderer:{trackingParams:"tq"}},closeButton:{infoCardIconRenderer:{trackingParams:"nz"}},trackingParams:"ss",allowTeaserDismiss:55,logIconVisibilityUpdates:49}},trackingParams:"lt",attestation:{playerAttestationRenderer:{challenge:"rg",botguardData:{program:"vk",interpreterSafeUrl:(Ogb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",Ogb),serverEnvironment:83}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["vs"],
joinLatencySeconds:85,rebufferTimeSeconds:89,watchTimeWindowSeconds:21,refractorySeconds:41},text:{runs:[{text:"it"},{text:"qt",bold:60}]},endpoint:{clickTrackingParams:"lw",commandMetadata:{webCommandMetadata:{url:"ih",webPageType:"xa",rootVe:73}},urlEndpoint:{url:"ms",target:"tj"}},trackingParams:"vd",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:"pp"}]},actionButton:{buttonRenderer:{text:{runs:[{text:"yw"}]},navigationEndpoint:{clickTrackingParams:"sq",commandMetadata:{webCommandMetadata:{url:"wp",
webPageType:"zn",rootVe:21}},urlEndpoint:{url:"ju",target:"dy"}},trackingParams:"zj"}},trackingParams:"nh"}}}},messages:[{mealbarPromoRenderer:{icon:{thumbnails:[{url:"ek",width:71,height:69}]},messageTexts:[{runs:[{text:"ew"}]}],actionButton:{buttonRenderer:{style:"gz",size:"tz",text:{runs:[{text:"ga"}]},trackingParams:"qr",command:{clickTrackingParams:"wk",commandExecutorCommand:{commands:[{clickTrackingParams:"dw",commandMetadata:{webCommandMetadata:{url:"po",webPageType:"fl",rootVe:70,apiUrl:"ot"}},
browseEndpoint:{browseId:"pl",params:"zo"}},{commandMetadata:{webCommandMetadata:{sendPost:10,apiUrl:"rv"}},feedbackEndpoint:{feedbackToken:"xi",uiActions:{hideEnclosingContainer:25}}}]}}}},dismissButton:{buttonRenderer:{style:"ol",size:"og",text:{runs:[{text:"yv"}]},trackingParams:"ch",command:{clickTrackingParams:"uu",commandExecutorCommand:{commands:[{clickTrackingParams:"ig",commandMetadata:{webCommandMetadata:{sendPost:71,apiUrl:"en"}},feedbackEndpoint:{feedbackToken:"wh",uiActions:{hideEnclosingContainer:45}}}]}}}},
triggerCondition:"pb",style:"uq",trackingParams:"rp",impressionEndpoints:[{clickTrackingParams:"xb",commandMetadata:{webCommandMetadata:{sendPost:73,apiUrl:"wl"}},feedbackEndpoint:{feedbackToken:"wf",uiActions:{hideEnclosingContainer:95}}}],isVisible:17,messageTitle:{runs:[{text:"ir"}]},enableSharedFeatureForImpressionHandling:21}}],adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"wd",adTimeOffset:{offsetStartMilliseconds:"7",offsetEndMilliseconds:"39"},hideCueRangeMarker:50}},
renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"aj",width:46,height:25}]},trackingParams:"ye"},trackingParams:"dq",templatedCountdown:{templatedAdText:{text:"ps",isTemplated:82,trackingParams:"cc"}},durationMilliseconds:44}},skippableRenderer:{skipButtonRenderer:{message:{text:"xz",isTemplated:30,trackingParams:"um"},
trackingParams:"ge"}},trackingParams:"zg",skipOffsetMilliseconds:88}},trackingParams:"qd",visitAdvertiserRenderer:{buttonRenderer:{style:"fv",text:{simpleText:"on"},icon:{iconType:"vw"},navigationEndpoint:{clickTrackingParams:"mk",commandMetadata:{webCommandMetadata:{url:"sr",webPageType:"ry",rootVe:62}},urlEndpoint:{url:"lq",target:"wt"}},trackingParams:"mh"}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:"kw",isTemplated:93,trackingParams:"jg"},trackingParams:"at"}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:"rl",
isTemplated:73,trackingParams:"le"}},trackingParams:"tr"}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"le",size:"nb",isDisabled:41,serviceEndpoint:{clickTrackingParams:"jt",openPopupAction:{popup:{aboutThisAdRenderer:{url:(Pgb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",Pgb),trackingParams:"vy"}},popupType:"xn"}},icon:{iconType:"vl"},trackingParams:"lm",accessibilityData:{accessibilityData:{label:"qi"}}}},hoverText:{simpleText:"zk"},trackingParams:"qa"}},
flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"pv"}]},trackingParams:"jo"},headline:{text:"qx",isTemplated:10,trackingParams:"um"},description:{text:"mf",trackingParams:"fe"},actionButton:{buttonRenderer:{text:{simpleText:"kq"},navigationEndpoint:{clickTrackingParams:"cm",commandMetadata:{webCommandMetadata:{url:"wa",webPageType:"nq",rootVe:69}},urlEndpoint:{url:"ln",target:"nd"}},trackingParams:"no"}},startMs:45,trackingParams:"ge"}},adLayoutLoggingData:{serializedAdServingDataEntry:"xd"},
elementId:"tc",inPlayerSlotId:"gg",inPlayerLayoutId:"cm"}},trackingParams:"uy",layoutId:"ff",associatedPlayerBytesLayoutId:"dy"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"gv"}]},trackingParams:"at"},headline:{text:"ow",isTemplated:66,trackingParams:"za"},description:{text:"ds",isTemplated:95,trackingParams:"fc"},actionButton:{buttonRenderer:{style:"ys",text:{simpleText:"aq"},navigationEndpoint:{clickTrackingParams:"vu",commandMetadata:{webCommandMetadata:{url:"zn",webPageType:"jv",
rootVe:38}},urlEndpoint:{url:"df",target:"xe"}},trackingParams:"za"}},durationMilliseconds:44,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:"xg"}},navigationEndpoint:{clickTrackingParams:"vg",loggingUrls:[{baseUrl:"bc"}],commandMetadata:{webCommandMetadata:{url:"sn",webPageType:"vb",rootVe:34}},urlEndpoint:{url:"ex",target:"nb"}},trackingParams:"iw",backgroundImage:{thumbnail:{thumbnails:[{url:"cm"}]},trackingParams:"br"},adRendererCommands:{impressionCommand:{clickTrackingParams:"dj",
commandExecutorCommand:{commands:[{clickTrackingParams:"li",loggingUrls:[{baseUrl:"wa"}],pingingEndpoint:{hack:0}}]}}},skipButton:{skipButtonRenderer:{message:{text:"jg",isTemplated:95,trackingParams:"by"},trackingParams:"kl"}},adLayoutLoggingData:{serializedAdServingDataEntry:"kt"},layoutId:"cv",inPlayerSlotId:"qt",inPlayerLayoutId:"yy",associatedPlayerBytesLayoutId:"dx"}},{instreamVideoAdRenderer:{playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"pz",
width:32,height:43}]},trackingParams:"iz"},trackingParams:"yo",templatedCountdown:{templatedAdText:{text:"we",isTemplated:91,trackingParams:"si"}},durationMilliseconds:10}},skippableRenderer:{skipButtonRenderer:{message:{text:"bp",isTemplated:93,trackingParams:"mo"},trackingParams:"cp"}},trackingParams:"qr",skipOffsetMilliseconds:60}},trackingParams:"zf",visitAdvertiserRenderer:{buttonRenderer:{style:"ya",text:{simpleText:"fv"},icon:{iconType:"bx"},navigationEndpoint:{clickTrackingParams:"bw",commandMetadata:{webCommandMetadata:{url:"ht",
webPageType:"gv",rootVe:14}},urlEndpoint:{url:"wi",target:"te"}},trackingParams:"gr"}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:"ox",isTemplated:66,trackingParams:"td"},trackingParams:"ng"}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:"zu",isTemplated:15,trackingParams:"py"}},trackingParams:"hb"}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"vn",size:"cw",isDisabled:56,serviceEndpoint:{clickTrackingParams:"jh",
openPopupAction:{popup:{aboutThisAdRenderer:{url:(Qgb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",Qgb),trackingParams:"yl"}},popupType:"tw"}},icon:{iconType:"ar"},trackingParams:"vi",accessibilityData:{accessibilityData:{label:"hy"}}}},hoverText:{simpleText:"ap"},trackingParams:"pp"}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"ol"}]},trackingParams:"kz"},headline:{text:"wa",isTemplated:43,trackingParams:"yb"},description:{text:"cl",trackingParams:"aq"},
actionButton:{buttonRenderer:{text:{simpleText:"xg"},navigationEndpoint:{clickTrackingParams:"wp",commandMetadata:{webCommandMetadata:{url:"uh",webPageType:"bs",rootVe:44}},urlEndpoint:{url:"xq",target:"fi"}},trackingParams:"fo"}},startMs:5,trackingParams:"kh"}},adLayoutLoggingData:{serializedAdServingDataEntry:"ir"},elementId:"mp",inPlayerSlotId:"fh",inPlayerLayoutId:"bh"}},trackingParams:"ao",layoutId:"gc",associatedPlayerBytesLayoutId:"up"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"wj"}]},
trackingParams:"zr"},headline:{text:"rq",isTemplated:82,trackingParams:"gr"},description:{text:"fj",isTemplated:57,trackingParams:"li"},actionButton:{buttonRenderer:{style:"mu",text:{simpleText:"cg"},navigationEndpoint:{clickTrackingParams:"eb",commandMetadata:{webCommandMetadata:{url:"vn",webPageType:"nw",rootVe:96}},urlEndpoint:{url:"bs",target:"dr"}},trackingParams:"iq"}},durationMilliseconds:39,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:"mt"}},navigationEndpoint:{clickTrackingParams:"uz",
loggingUrls:[{baseUrl:"rn"}],commandMetadata:{webCommandMetadata:{url:"cu",webPageType:"qs",rootVe:26}},urlEndpoint:{url:"ty",target:"he"}},trackingParams:"bw",backgroundImage:{thumbnail:{thumbnails:[{url:"pd"}]},trackingParams:"wm"},adRendererCommands:{impressionCommand:{clickTrackingParams:"io",commandExecutorCommand:{commands:[{clickTrackingParams:"hd",loggingUrls:[{baseUrl:"hz"}],pingingEndpoint:{hack:81}}]}}},skipButton:{skipButtonRenderer:{message:{text:"db",isTemplated:42,trackingParams:"ga"},
trackingParams:"pa"}},adLayoutLoggingData:{serializedAdServingDataEntry:"bt"},layoutId:"ec",inPlayerSlotId:"nl",inPlayerLayoutId:"qh",associatedPlayerBytesLayoutId:"qe"}}]}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"rj"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"zf",adTimeOffset:{offsetStartMilliseconds:"63",offsetEndMilliseconds:"83"},hideCueRangeMarker:84}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"59",getAdBreakUrl:"as"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"we"}}},
{adPlacementRenderer:{config:{adPlacementConfig:{kind:"ie",adTimeOffset:{offsetStartMilliseconds:"94",offsetEndMilliseconds:"35"},hideCueRangeMarker:74}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"0",getAdBreakUrl:"as"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"we"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"xx",adTimeOffset:{offsetStartMilliseconds:"65",offsetEndMilliseconds:"30"},hideCueRangeMarker:70}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"51",
getAdBreakUrl:"ea"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"wg"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"tl",adTimeOffset:{offsetStartMilliseconds:"56",offsetEndMilliseconds:"86"},hideCueRangeMarker:4}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"25",getAdBreakUrl:"zr"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"nh"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"dg",adTimeOffset:{offsetStartMilliseconds:"25",offsetEndMilliseconds:"13"},
hideCueRangeMarker:49}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"32",getAdBreakUrl:"rt"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"ti"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"va",adTimeOffset:{offsetStartMilliseconds:"47",offsetEndMilliseconds:"84"},hideCueRangeMarker:90}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10",getAdBreakUrl:"jp"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"go"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"ji",
adTimeOffset:{offsetStartMilliseconds:"14",offsetEndMilliseconds:"87"},hideCueRangeMarker:31}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"79",getAdBreakUrl:"ia"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"wi"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"fx",adTimeOffset:{offsetStartMilliseconds:"34",offsetEndMilliseconds:"12"},hideCueRangeMarker:34}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"27",getAdBreakUrl:"ip"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"fp"}}},
{adPlacementRenderer:{config:{adPlacementConfig:{kind:"gb",adTimeOffset:{offsetStartMilliseconds:"66",offsetEndMilliseconds:"35"},hideCueRangeMarker:25}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"98",getAdBreakUrl:"bv"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"cn"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"zd",adTimeOffset:{offsetStartMilliseconds:"59",offsetEndMilliseconds:"8"},hideCueRangeMarker:63}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"26",
getAdBreakUrl:"os"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"wz"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"kq",adTimeOffset:{offsetStartMilliseconds:"96",offsetEndMilliseconds:"37"},hideCueRangeMarker:25}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"13",getAdBreakUrl:"st"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"es"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"eo",adTimeOffset:{offsetStartMilliseconds:"88",offsetEndMilliseconds:"54"},
hideCueRangeMarker:61}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"77",getAdBreakUrl:"yj"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"wm"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"xs",adTimeOffset:{offsetStartMilliseconds:"84",offsetEndMilliseconds:"90"},hideCueRangeMarker:73}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"92",getAdBreakUrl:"py"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"nl"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"wo",
adTimeOffset:{offsetStartMilliseconds:"50",offsetEndMilliseconds:"67"},hideCueRangeMarker:19}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"96",getAdBreakUrl:"nc"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"ov"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"gf",adTimeOffset:{offsetStartMilliseconds:"13",offsetEndMilliseconds:"2"},hideCueRangeMarker:60}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"52",getAdBreakUrl:"sj"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"by"}}},
{adPlacementRenderer:{config:{adPlacementConfig:{kind:"ar",adTimeOffset:{offsetStartMilliseconds:"73",offsetEndMilliseconds:"64"},hideCueRangeMarker:75}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"67",getAdBreakUrl:"cq"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"uc"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"jl",adTimeOffset:{offsetStartMilliseconds:"32",offsetEndMilliseconds:"30"},hideCueRangeMarker:52}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"65",
getAdBreakUrl:"dx"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"su"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"wt",adTimeOffset:{offsetStartMilliseconds:"10",offsetEndMilliseconds:"zo"},hideCueRangeMarker:61}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"22",getAdBreakUrl:"gm"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"en"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"ro",adTimeOffset:{offsetStartMilliseconds:"uc",offsetEndMilliseconds:"qv"},
hideCueRangeMarker:64}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"17",getAdBreakUrl:"po"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"uv"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"ha"}},renderer:{actionCompanionAdRenderer:{headline:{text:"eg",isTemplated:93,trackingParams:"it"},description:{text:"ux",isTemplated:43,trackingParams:"sj"},actionButton:{buttonRenderer:{text:{simpleText:"de"},navigationEndpoint:{clickTrackingParams:"ex",commandMetadata:{webCommandMetadata:{url:"ue",
webPageType:"ow",rootVe:77}},urlEndpoint:{url:"yh",target:"pg"}},trackingParams:"xf"}},iconImage:{thumbnail:{thumbnails:[{url:"te",width:19,height:23}]},trackingParams:"lv"},bannerImage:{thumbnail:{thumbnails:[{url:"gj",width:38,height:67}]},trackingParams:"ow"},navigationEndpoint:{clickTrackingParams:"um",commandMetadata:{webCommandMetadata:{url:"fq",webPageType:"fd",rootVe:61}},urlEndpoint:{url:"gi",target:"tq"}},trackingParams:"ie",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"ng",
size:"xv",isDisabled:53,icon:{iconType:"bq"},navigationEndpoint:{clickTrackingParams:"yl",openPopupAction:{popup:{aboutThisAdRenderer:{url:(Rgb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",Rgb),trackingParams:"hi"}},popupType:"sb"}},trackingParams:"ho",accessibilityData:{accessibilityData:{label:"kl"}}}},hoverText:{simpleText:"xd"},trackingParams:"dv"}},adVideoId:"je",impressionPings:[{baseUrl:"xj"}],adLayoutLoggingData:{serializedAdServingDataEntry:"dt"},associatedCompositePlayerBytesLayoutId:"te"}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:"vs"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"ht"}},renderer:{actionCompanionAdRenderer:{headline:{text:"ke",isTemplated:53,trackingParams:"wv"},description:{text:"ux",isTemplated:40,trackingParams:"nu"},actionButton:{buttonRenderer:{text:{simpleText:"jj"},navigationEndpoint:{clickTrackingParams:"sc",commandMetadata:{webCommandMetadata:{url:"js",webPageType:"fw",rootVe:47}},urlEndpoint:{url:"iy",target:"pv"}},trackingParams:"gr"}},
iconImage:{thumbnail:{thumbnails:[{url:"mb",width:73,height:1}]},trackingParams:"ut"},bannerImage:{thumbnail:{thumbnails:[{url:"ae",width:2,height:12}]},trackingParams:"qk"},navigationEndpoint:{clickTrackingParams:"il",commandMetadata:{webCommandMetadata:{url:"hb",webPageType:"zl",rootVe:50}},urlEndpoint:{url:"sl",target:"oo"}},trackingParams:"up",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"ef",size:"yh",isDisabled:35,icon:{iconType:"xj"},navigationEndpoint:{clickTrackingParams:"xc",
openPopupAction:{popup:{aboutThisAdRenderer:{url:(Sgb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",Sgb),trackingParams:"dc"}},popupType:"sb"}},trackingParams:"eb",accessibilityData:{accessibilityData:{label:"zq"}}}},hoverText:{simpleText:"je"},trackingParams:"ee"}},adVideoId:"zc",impressionPings:[{baseUrl:"vz"}],adLayoutLoggingData:{serializedAdServingDataEntry:"py"},associatedCompositePlayerBytesLayoutId:"ms"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"tu"}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"ms"}},
renderer:{actionCompanionAdRenderer:{headline:{text:"wo",isTemplated:87,trackingParams:"bi"},description:{text:"yw",isTemplated:10,trackingParams:"vd"},actionButton:{buttonRenderer:{text:{simpleText:"jq"},navigationEndpoint:{clickTrackingParams:"jd",commandMetadata:{webCommandMetadata:{url:"xx",webPageType:"fw",rootVe:39}},urlEndpoint:{url:"bx",target:"ja"}},trackingParams:"vo"}},iconImage:{thumbnail:{thumbnails:[{url:"xo",width:4,height:95}]},trackingParams:"ig"},bannerImage:{thumbnail:{thumbnails:[{url:"qu",
width:46,height:42}]},trackingParams:"du"},navigationEndpoint:{clickTrackingParams:"fd",commandMetadata:{webCommandMetadata:{url:"vx",webPageType:"bq",rootVe:77}},urlEndpoint:{url:"ub",target:"nb"}},trackingParams:"kt",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"gg",size:"ci",isDisabled:16,icon:{iconType:"zn"},navigationEndpoint:{clickTrackingParams:"lb",openPopupAction:{popup:{aboutThisAdRenderer:{url:(Tgb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="pw",
Tgb),trackingParams:"ac"}},popupType:"hx"}},trackingParams:"im",accessibilityData:{accessibilityData:{label:"sa"}}}},hoverText:{simpleText:"yl"},trackingParams:"ez"}},adVideoId:"bb",impressionPings:[{baseUrl:"ba"}],adLayoutLoggingData:{serializedAdServingDataEntry:"wb"},isContentVideoCompanion:1,associatedCompositePlayerBytesLayoutId:"tm"}},adSlotLoggingData:{serializedSlotAdServingDataEntry:"xc"}}}],adSlots:[{adSlotRenderer:{adSlotMetadata:{slotId:"bb",slotType:"di",adSlotLoggingData:{serializedSlotAdServingDataEntry:"ob"},
triggerEvent:"fh"},fulfillmentContent:{fulfilledLayout:{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"ot",layoutType:"xg",adLayoutLoggingData:{serializedAdServingDataEntry:"yk"}},renderingContent:{playerBytesSequentialLayoutRenderer:{sequentialLayouts:[{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"je",layoutType:"ww",adLayoutLoggingData:{serializedAdServingDataEntry:"ve"}},renderingContent:{instreamVideoAdRenderer:{skipOffsetMilliseconds:94,pings:{impressionPings:[{baseUrl:"pl"},
{baseUrl:"zs"}],errorPings:[{baseUrl:"hh"}],mutePings:[{baseUrl:"qh"}],unmutePings:[{baseUrl:"ey"}],pausePings:[{baseUrl:"pz"}],rewindPings:[{baseUrl:"bh"}],resumePings:[{baseUrl:"mw"}],skipPings:[{baseUrl:"si"}],closePings:[{baseUrl:"oh"}],progressPings:[{baseUrl:"ly",offsetMilliseconds:1},{baseUrl:"ac",offsetMilliseconds:80},{baseUrl:"sy",offsetMilliseconds:72}],fullscreenPings:[{baseUrl:"kw"}],activeViewViewablePings:[{baseUrl:"oz"}],endFullscreenPings:[{baseUrl:"uc"}],activeViewMeasurablePings:[{baseUrl:"vu"}],
abandonPings:[{baseUrl:"sf"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"qg"}],completePings:[{baseUrl:"jv"}],activeViewTracking:{trafficType:"sq"}},clickthroughEndpoint:{clickTrackingParams:"fn",commandMetadata:{webCommandMetadata:{url:"tf",webPageType:"ox",rootVe:73}},urlEndpoint:{url:"ny",target:"uc"}},csiParameters:[{key:"qe",value:"em"}],playerVars:"js",elementId:"bq",trackingParams:"dr",legacyInfoCardVastExtension:"pa",sodarExtensionData:{siub:"mi",bgub:"hc",scs:"cw",bgp:"co"},
externalVideoId:"ya",adLayoutLoggingData:{serializedAdServingDataEntry:"jj"},layoutId:"sc"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"nr",layoutType:"kn",adLayoutLoggingData:{serializedAdServingDataEntry:"cf"}},renderingContent:{adActionInterstitialRenderer:{durationMilliseconds:52,trackingParams:"yq",abandonCommands:{commands:[{clickTrackingParams:"wi",loggingUrls:[{baseUrl:"jb"}],pingingEndpoint:{hack:90}}]},skipPings:[{baseUrl:"av"}],layoutId:"nj"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"nl",
layoutType:"wm",adLayoutLoggingData:{serializedAdServingDataEntry:"zw"}},renderingContent:{instreamVideoAdRenderer:{skipOffsetMilliseconds:80,pings:{impressionPings:[{baseUrl:"ji"},{baseUrl:"ao"},{baseUrl:"cc"}],errorPings:[{baseUrl:"jt"}],mutePings:[{baseUrl:"mn"},{baseUrl:"ce"}],unmutePings:[{baseUrl:"rd"},{baseUrl:"lb"}],pausePings:[{baseUrl:"et"},{baseUrl:"fv"}],rewindPings:[{baseUrl:"ft"}],resumePings:[{baseUrl:"qj"},{baseUrl:"ot"}],skipPings:[{baseUrl:"ky"},{baseUrl:"jb"}],closePings:[{baseUrl:"hw"}],
progressPings:[{baseUrl:"vh",offsetMilliseconds:36},{baseUrl:"um",offsetMilliseconds:77},{baseUrl:"sq",offsetMilliseconds:19},{baseUrl:"ui",offsetMilliseconds:15},{baseUrl:"nl",offsetMilliseconds:86}],fullscreenPings:[{baseUrl:"rp"},{baseUrl:"cn"}],activeViewViewablePings:[{baseUrl:"ml"},{baseUrl:"kq"}],endFullscreenPings:[{baseUrl:"ym"}],activeViewMeasurablePings:[{baseUrl:"di"},{baseUrl:"ol"}],abandonPings:[{baseUrl:"aj"},{baseUrl:"wo"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"ms"},
{baseUrl:"uj"}],startPings:[{baseUrl:"gy"}],firstQuartilePings:[{baseUrl:"ly"}],secondQuartilePings:[{baseUrl:"sw"}],thirdQuartilePings:[{baseUrl:"gt"}],completePings:[{baseUrl:"hu"},{baseUrl:"gs"}],activeViewTracking:{trafficType:"mr"}},clickthroughEndpoint:{clickTrackingParams:"yq",commandMetadata:{webCommandMetadata:{url:"dn",webPageType:"ms",rootVe:54}},urlEndpoint:{url:"hs",target:"jt"}},csiParameters:[{key:"zn",value:"eq"}],playerVars:"bi",elementId:"gr",trackingParams:"qc",legacyInfoCardVastExtension:"xv",
sodarExtensionData:{siub:"ul",bgub:"yr",scs:"ui",bgp:"vy"},externalVideoId:"fp",adLayoutLoggingData:{serializedAdServingDataEntry:"gt"},layoutId:"bh"}}}},{playerBytesAdLayoutRenderer:{adLayoutMetadata:{layoutId:"xy",layoutType:"bf",adLayoutLoggingData:{serializedAdServingDataEntry:"rj"}},renderingContent:{adActionInterstitialRenderer:{durationMilliseconds:95,trackingParams:"ee",abandonCommands:{commands:[{clickTrackingParams:"mi",loggingUrls:[{baseUrl:"yi"},{baseUrl:"tm"}],pingingEndpoint:{hack:47}}]},
skipPings:[{baseUrl:"uk"},{baseUrl:"yj"}],layoutId:"ft"}}}}]}},layoutExitNormalTriggers:[{id:"hq",onLayoutSelfExitRequestedTrigger:{triggeringLayoutId:"hv"}}],layoutExitSkipTriggers:[{id:"up",skipRequestedTrigger:{triggeringLayoutId:"nm"}},{id:"yl",skipRequestedTrigger:{triggeringLayoutId:"gh"}},{id:"zd",skipRequestedTrigger:{triggeringLayoutId:"mo"}},{id:"bc",skipRequestedTrigger:{triggeringLayoutId:"jj"}}],layoutExitMuteTriggers:[{id:"ql",skipRequestedTrigger:{triggeringLayoutId:"hr"}},{id:"rc",
skipRequestedTrigger:{triggeringLayoutId:"ln"}}]}}},slotEntryTrigger:{id:"lc",beforeContentVideoIdStartedTrigger:{}},slotFulfillmentTriggers:[{id:"xq",slotIdEnteredTrigger:{triggeringSlotId:"da"}}],slotExpirationTriggers:[{id:"vv",slotIdExitedTrigger:{triggeringSlotId:"re"}},{id:"jg",onNewPlaybackAfterContentVideoIdTrigger:{}}]}}],adBreakHeartbeatParams:"mw",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:"pz",type:"az",payload:{offlineabilityEntity:{key:"ql",command:{innertubeCommand:{clickTrackingParams:"nz",
ypcGetOfflineUpsellEndpoint:{params:"pw"}}},addToOfflineButtonState:"os",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:"xp",visibility:{types:"1"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:"19",nanos:12}}}};var gxa=[{jsonRepresentation:'{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true,"playerConfig": {"audioConfig": {}, "streamSelectionConfig": {}, "webPlayerConfig": {"webPlayerActionsPorting": {}}}},"playerConfig": {"audioConfig": {}, "streamSelectionConfig": {}, "webPlayerConfig": {"webPlayerActionsPorting": {}}}}',objectRepresentation:{adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0,playerConfig:{audioConfig:{},streamSelectionConfig:{},
webPlayerConfig:{webPlayerActionsPorting:{}}}},playerConfig:{audioConfig:{},streamSelectionConfig:{},webPlayerConfig:{webPlayerActionsPorting:{}}}}},{jsonRepresentation:'[{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true}}]',objectRepresentation:[{adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0}}]},{jsonRepresentation:'{"responseContext":{"serviceTrackingParams":[{"service":"wd","params":[{"key":"kc","value":"66"},{"key":"cw","value":"st"},{"key":"zb","value":"xz"},{"key":"zl","value":"16"},{"key":"pf","value":"sy"}]},{"service":"bh","params":[{"key":"ip","value":"54"},{"key":"tb","value":"dv"},{"key":"pi","value":"pn"},{"key":"fg","value":"35"},{"key":"wm","value":"vo"}]},{"service":"fp","params":[{"key":"hw","value":"91"}]},{"service":"rk","params":[{"key":"pe","value":"sf"},{"key":"rv","value":"jn"},{"key":"aw","value":"pw"}]}],"maxAgeSeconds":87,"mainAppWebResponseContext":{"loggedOut":43,"trackingParam":"dd","datasyncId":"xp"},"webResponseContextExtensionData":{"hasDecorated":75}},"playabilityStatus":{"status":"by","playableInEmbed":2,"miniplayer":{"miniplayerRenderer":{"playbackMode":"tj"}},"offlineability":{"buttonRenderer":{"serviceEndpoint":{"clickTrackingParams":"pz","ypcGetOfflineUpsellEndpoint":{"params":"xm"}},"trackingParams":"pq"}},"contextParams":"lu"},"streamingData":{"expiresInSeconds":"53","formats":[{"itag":80,"url":"ko","mimeType":"dr","bitrate":88,"width":96,"height":65,"lastModified":"78","contentLength":"17","quality":"rc","fps":8,"qualityLabel":"ab","projectionType":"by","averageBitrate":50,"audioQuality":"th","approxDurationMs":"86","audioSampleRate":"88","audioChannels":34},{"itag":95,"url":"hs","mimeType":"nm","bitrate":56,"width":13,"height":14,"lastModified":"10","quality":"fu","fps":54,"qualityLabel":"yj","projectionType":"wu","audioQuality":"tu","approxDurationMs":"51","audioSampleRate":"87","audioChannels":44}],"adaptiveFormats":[{"itag":50,"url":"fu","mimeType":"uz","bitrate":80,"width":80,"height":85,"initRange":{"start":"16","end":"71"},"indexRange":{"start":"1","end":"26"},"lastModified":"70","contentLength":"66","quality":"cx","fps":61,"qualityLabel":"xt","projectionType":"pe","averageBitrate":68,"approxDurationMs":"1"},{"itag":77,"url":"rj","mimeType":"lh","bitrate":16,"width":17,"height":47,"initRange":{"start":"51","end":"44"},"indexRange":{"start":"87","end":"61"},"lastModified":"13","contentLength":"21","quality":"ie","fps":23,"qualityLabel":"ig","projectionType":"bl","averageBitrate":16,"colorInfo":{"primaries":"et","transferCharacteristics":"zu","matrixCoefficients":"od"},"approxDurationMs":"59"},{"itag":7,"url":"fc","mimeType":"gr","bitrate":71,"width":11,"height":3,"initRange":{"start":"100","end":"7"},"indexRange":{"start":"36","end":"98"},"lastModified":"88","contentLength":"77","quality":"rb","fps":46,"qualityLabel":"gq","projectionType":"ld","averageBitrate":99,"colorInfo":{"primaries":"xd","transferCharacteristics":"uu","matrixCoefficients":"zc"},"approxDurationMs":"44"},{"itag":10,"url":"kl","mimeType":"wb","bitrate":51,"width":69,"height":3,"initRange":{"start":"92","end":"79"},"indexRange":{"start":"42","end":"72"},"lastModified":"99","contentLength":"6","quality":"ee","fps":40,"qualityLabel":"em","projectionType":"wz","averageBitrate":48,"approxDurationMs":"86"},{"itag":44,"url":"hp","mimeType":"kq","bitrate":84,"width":53,"height":22,"initRange":{"start":"48","end":"51"},"indexRange":{"start":"54","end":"44"},"lastModified":"25","contentLength":"47","quality":"xy","fps":11,"qualityLabel":"zl","projectionType":"za","averageBitrate":95,"colorInfo":{"primaries":"ot","transferCharacteristics":"av","matrixCoefficients":"ow"},"approxDurationMs":"85"},{"itag":20,"url":"di","mimeType":"nc","bitrate":15,"width":19,"height":92,"initRange":{"start":"82","end":"58"},"indexRange":{"start":"80","end":"37"},"lastModified":"46","contentLength":"40","quality":"wo","fps":44,"qualityLabel":"pt","projectionType":"bg","averageBitrate":3,"colorInfo":{"primaries":"wq","transferCharacteristics":"is","matrixCoefficients":"ou"},"approxDurationMs":"47"},{"itag":44,"url":"oe","mimeType":"mh","bitrate":37,"width":43,"height":24,"initRange":{"start":"29","end":"91"},"indexRange":{"start":"97","end":"97"},"lastModified":"52","contentLength":"43","quality":"cr","fps":44,"qualityLabel":"hc","projectionType":"cr","averageBitrate":12,"approxDurationMs":"97"},{"itag":32,"url":"gq","mimeType":"sh","bitrate":42,"width":32,"height":13,"initRange":{"start":"71","end":"87"},"indexRange":{"start":"70","end":"4"},"lastModified":"67","contentLength":"16","quality":"sb","fps":66,"qualityLabel":"mv","projectionType":"kk","averageBitrate":51,"colorInfo":{"primaries":"pk","transferCharacteristics":"ea","matrixCoefficients":"cq"},"approxDurationMs":"70"},{"itag":71,"url":"zt","mimeType":"bl","bitrate":12,"width":68,"height":12,"initRange":{"start":"63","end":"2"},"indexRange":{"start":"28","end":"68"},"lastModified":"33","contentLength":"0","quality":"dh","fps":6,"qualityLabel":"jv","projectionType":"sy","averageBitrate":75,"colorInfo":{"primaries":"us","transferCharacteristics":"ka","matrixCoefficients":"xw"},"approxDurationMs":"16"},{"itag":98,"url":"vl","mimeType":"lg","bitrate":88,"width":23,"height":83,"initRange":{"start":"49","end":"34"},"indexRange":{"start":"43","end":"90"},"lastModified":"84","contentLength":"77","quality":"xu","fps":50,"qualityLabel":"jz","projectionType":"om","averageBitrate":16,"highReplication":95,"approxDurationMs":"46"},{"itag":85,"url":"ri","mimeType":"dh","bitrate":77,"width":86,"height":54,"initRange":{"start":"40","end":"98"},"indexRange":{"start":"15","end":"85"},"lastModified":"25","contentLength":"53","quality":"rq","fps":62,"qualityLabel":"nx","projectionType":"wg","averageBitrate":35,"colorInfo":{"primaries":"oa","transferCharacteristics":"kb","matrixCoefficients":"kk"},"approxDurationMs":"26"},{"itag":10,"url":"zz","mimeType":"lq","bitrate":55,"width":89,"height":43,"initRange":{"start":"94","end":"98"},"indexRange":{"start":"73","end":"51"},"lastModified":"3","contentLength":"36","quality":"yo","fps":5,"qualityLabel":"we","projectionType":"ve","averageBitrate":83,"colorInfo":{"primaries":"yu","transferCharacteristics":"fu","matrixCoefficients":"ox"},"approxDurationMs":"11"},{"itag":62,"url":"hv","mimeType":"th","bitrate":76,"width":28,"height":79,"initRange":{"start":"97","end":"100"},"indexRange":{"start":"58","end":"63"},"lastModified":"53","contentLength":"22","quality":"ou","fps":7,"qualityLabel":"cm","projectionType":"xv","averageBitrate":35,"approxDurationMs":"98"},{"itag":91,"url":"vr","mimeType":"wo","bitrate":41,"width":4,"height":79,"initRange":{"start":"80","end":"83"},"indexRange":{"start":"14","end":"58"},"lastModified":"50","contentLength":"38","quality":"ic","fps":64,"qualityLabel":"sq","projectionType":"du","averageBitrate":61,"colorInfo":{"primaries":"ok","transferCharacteristics":"ud","matrixCoefficients":"ob"},"approxDurationMs":"73"},{"itag":48,"url":"lq","mimeType":"zl","bitrate":4,"width":16,"height":65,"initRange":{"start":"93","end":"50"},"indexRange":{"start":"52","end":"44"},"lastModified":"74","contentLength":"86","quality":"mi","fps":43,"qualityLabel":"rz","projectionType":"ji","averageBitrate":61,"colorInfo":{"primaries":"qo","transferCharacteristics":"fk","matrixCoefficients":"jy"},"approxDurationMs":"70"},{"itag":34,"url":"cr","mimeType":"la","bitrate":53,"width":29,"height":97,"initRange":{"start":"89","end":"45"},"indexRange":{"start":"93","end":"45"},"lastModified":"52","contentLength":"74","quality":"xn","fps":60,"qualityLabel":"xs","projectionType":"lf","averageBitrate":1,"approxDurationMs":"18"},{"itag":67,"url":"mr","mimeType":"cs","bitrate":79,"width":9,"height":85,"initRange":{"start":"56","end":"96"},"indexRange":{"start":"71","end":"84"},"lastModified":"78","contentLength":"80","quality":"ld","fps":2,"qualityLabel":"no","projectionType":"uq","averageBitrate":35,"colorInfo":{"primaries":"mj","transferCharacteristics":"ry","matrixCoefficients":"cc"},"approxDurationMs":"43"},{"itag":57,"url":"fi","mimeType":"to","bitrate":80,"width":81,"height":29,"initRange":{"start":"6","end":"96"},"indexRange":{"start":"73","end":"48"},"lastModified":"32","contentLength":"11","quality":"ck","fps":82,"qualityLabel":"fo","projectionType":"px","averageBitrate":95,"colorInfo":{"primaries":"az","transferCharacteristics":"mq","matrixCoefficients":"oc"},"approxDurationMs":"44"},{"itag":52,"url":"ea","mimeType":"xm","bitrate":18,"initRange":{"start":"15","end":"16"},"indexRange":{"start":"4","end":"33"},"lastModified":"65","contentLength":"67","quality":"es","projectionType":"mp","averageBitrate":52,"highReplication":82,"audioQuality":"za","approxDurationMs":"24","audioSampleRate":"1","audioChannels":92,"loudnessDb":0.9787435365879406},{"itag":37,"url":"kk","mimeType":"xg","bitrate":78,"initRange":{"start":"38","end":"94"},"indexRange":{"start":"27","end":"17"},"lastModified":"61","contentLength":"2","quality":"nh","projectionType":"ar","averageBitrate":69,"audioQuality":"la","approxDurationMs":"95","audioSampleRate":"66","audioChannels":50,"loudnessDb":0.6461265012758731},{"itag":45,"url":"oc","mimeType":"nm","bitrate":12,"initRange":{"start":"21","end":"45"},"indexRange":{"start":"21","end":"13"},"lastModified":"45","contentLength":"85","quality":"vs","projectionType":"xp","averageBitrate":32,"audioQuality":"tv","approxDurationMs":"1","audioSampleRate":"99","audioChannels":42,"loudnessDb":0.39295968942278037},{"itag":37,"url":"zf","mimeType":"be","bitrate":29,"initRange":{"start":"27","end":"87"},"indexRange":{"start":"81","end":"20"},"lastModified":"6","contentLength":"33","quality":"pe","projectionType":"pb","averageBitrate":100,"audioQuality":"zi","approxDurationMs":"70","audioSampleRate":"32","audioChannels":68,"loudnessDb":0.2781731101164002}]},"playerAds":[{"playerLegacyDesktopWatchAdsRenderer":{"playerAdParams":{"showContentThumbnail":10,"enabledEngageTypes":"yz"},"gutParams":{"tag":"db"},"showCompanion":7,"showInstream":79,"useGut":88}}],"playbackTracking":{"videostatsPlaybackUrl":{"baseUrl":"bj"},"videostatsDelayplayUrl":{"baseUrl":"vx"},"videostatsWatchtimeUrl":{"baseUrl":"px"},"ptrackingUrl":{"baseUrl":"tg"},"qoeUrl":{"baseUrl":"wx"},"atrUrl":{"baseUrl":"xz","elapsedMediaTimeSeconds":45},"videostatsScheduledFlushWalltimeSeconds":[99,32,39],"videostatsDefaultFlushIntervalSeconds":3,"youtubeRemarketingUrl":{"baseUrl":"mb","elapsedMediaTimeSeconds":63},"googleRemarketingUrl":{"baseUrl":"yn","elapsedMediaTimeSeconds":83}},"captions":{"playerCaptionsTracklistRenderer":{"captionTracks":[{"baseUrl":"ew","name":{"simpleText":"ez"},"vssId":"fj","languageCode":"wd","kind":"ez","isTranslatable":21}],"audioTracks":[{"captionTrackIndices":[87]}],"translationLanguages":[{"languageCode":"xu","languageName":{"simpleText":"fw"}},{"languageCode":"zl","languageName":{"simpleText":"xc"}},{"languageCode":"jr","languageName":{"simpleText":"md"}},{"languageCode":"sc","languageName":{"simpleText":"wf"}},{"languageCode":"nj","languageName":{"simpleText":"xn"}},{"languageCode":"of","languageName":{"simpleText":"av"}},{"languageCode":"tv","languageName":{"simpleText":"ok"}},{"languageCode":"nu","languageName":{"simpleText":"ry"}},{"languageCode":"zy","languageName":{"simpleText":"nb"}},{"languageCode":"pt","languageName":{"simpleText":"eq"}},{"languageCode":"vr","languageName":{"simpleText":"cc"}},{"languageCode":"wh","languageName":{"simpleText":"hd"}},{"languageCode":"hp","languageName":{"simpleText":"ds"}},{"languageCode":"ka","languageName":{"simpleText":"up"}},{"languageCode":"sw","languageName":{"simpleText":"zp"}},{"languageCode":"rh","languageName":{"simpleText":"eq"}},{"languageCode":"bq","languageName":{"simpleText":"at"}},{"languageCode":"hu","languageName":{"simpleText":"fg"}},{"languageCode":"ai","languageName":{"simpleText":"iy"}},{"languageCode":"rj","languageName":{"simpleText":"oz"}},{"languageCode":"sq","languageName":{"simpleText":"fe"}},{"languageCode":"tn","languageName":{"simpleText":"vk"}},{"languageCode":"jr","languageName":{"simpleText":"jg"}},{"languageCode":"vc","languageName":{"simpleText":"hv"}},{"languageCode":"yn","languageName":{"simpleText":"ky"}},{"languageCode":"pa","languageName":{"simpleText":"rw"}},{"languageCode":"lr","languageName":{"simpleText":"kv"}},{"languageCode":"ud","languageName":{"simpleText":"fn"}},{"languageCode":"hq","languageName":{"simpleText":"io"}},{"languageCode":"rp","languageName":{"simpleText":"qx"}},{"languageCode":"xf","languageName":{"simpleText":"sm"}},{"languageCode":"fs","languageName":{"simpleText":"ty"}},{"languageCode":"so","languageName":{"simpleText":"xl"}},{"languageCode":"fk","languageName":{"simpleText":"ff"}},{"languageCode":"fw","languageName":{"simpleText":"wz"}},{"languageCode":"rn","languageName":{"simpleText":"zw"}},{"languageCode":"wq","languageName":{"simpleText":"yt"}},{"languageCode":"oh","languageName":{"simpleText":"oo"}},{"languageCode":"ts","languageName":{"simpleText":"jt"}},{"languageCode":"xy","languageName":{"simpleText":"ga"}},{"languageCode":"jy","languageName":{"simpleText":"sx"}},{"languageCode":"lw","languageName":{"simpleText":"cf"}},{"languageCode":"fc","languageName":{"simpleText":"qr"}},{"languageCode":"ji","languageName":{"simpleText":"cc"}},{"languageCode":"qs","languageName":{"simpleText":"pi"}},{"languageCode":"vx","languageName":{"simpleText":"hk"}},{"languageCode":"jt","languageName":{"simpleText":"eh"}},{"languageCode":"fb","languageName":{"simpleText":"iu"}},{"languageCode":"mf","languageName":{"simpleText":"st"}},{"languageCode":"en","languageName":{"simpleText":"vr"}},{"languageCode":"go","languageName":{"simpleText":"kp"}},{"languageCode":"sc","languageName":{"simpleText":"rk"}},{"languageCode":"bx","languageName":{"simpleText":"ci"}},{"languageCode":"pu","languageName":{"simpleText":"qj"}},{"languageCode":"fa","languageName":{"simpleText":"ht"}},{"languageCode":"bw","languageName":{"simpleText":"af"}},{"languageCode":"rr","languageName":{"simpleText":"jt"}},{"languageCode":"ef","languageName":{"simpleText":"yy"}},{"languageCode":"bn","languageName":{"simpleText":"wu"}},{"languageCode":"ov","languageName":{"simpleText":"ae"}},{"languageCode":"sm","languageName":{"simpleText":"hi"}},{"languageCode":"tq","languageName":{"simpleText":"ie"}},{"languageCode":"fn","languageName":{"simpleText":"et"}},{"languageCode":"jw","languageName":{"simpleText":"bu"}},{"languageCode":"iz","languageName":{"simpleText":"gc"}},{"languageCode":"bk","languageName":{"simpleText":"jh"}},{"languageCode":"vw","languageName":{"simpleText":"fq"}},{"languageCode":"xt","languageName":{"simpleText":"or"}},{"languageCode":"kq","languageName":{"simpleText":"ch"}},{"languageCode":"pa","languageName":{"simpleText":"cs"}},{"languageCode":"ef","languageName":{"simpleText":"eq"}},{"languageCode":"mk","languageName":{"simpleText":"ig"}},{"languageCode":"me","languageName":{"simpleText":"pv"}},{"languageCode":"ll","languageName":{"simpleText":"nz"}},{"languageCode":"yd","languageName":{"simpleText":"pu"}},{"languageCode":"dj","languageName":{"simpleText":"vx"}},{"languageCode":"xc","languageName":{"simpleText":"ca"}},{"languageCode":"wb","languageName":{"simpleText":"il"}},{"languageCode":"ww","languageName":{"simpleText":"jf"}},{"languageCode":"xi","languageName":{"simpleText":"ba"}},{"languageCode":"ae","languageName":{"simpleText":"hx"}},{"languageCode":"uj","languageName":{"simpleText":"xu"}},{"languageCode":"hq","languageName":{"simpleText":"gp"}},{"languageCode":"we","languageName":{"simpleText":"pk"}},{"languageCode":"kt","languageName":{"simpleText":"ek"}},{"languageCode":"hy","languageName":{"simpleText":"ab"}},{"languageCode":"hm","languageName":{"simpleText":"nu"}},{"languageCode":"uw","languageName":{"simpleText":"rx"}},{"languageCode":"or","languageName":{"simpleText":"nf"}},{"languageCode":"dh","languageName":{"simpleText":"zn"}},{"languageCode":"kb","languageName":{"simpleText":"js"}},{"languageCode":"vg","languageName":{"simpleText":"xe"}},{"languageCode":"dl","languageName":{"simpleText":"so"}},{"languageCode":"lz","languageName":{"simpleText":"hb"}},{"languageCode":"ny","languageName":{"simpleText":"xr"}},{"languageCode":"ag","languageName":{"simpleText":"us"}},{"languageCode":"zr","languageName":{"simpleText":"ae"}},{"languageCode":"yq","languageName":{"simpleText":"yc"}},{"languageCode":"up","languageName":{"simpleText":"dc"}},{"languageCode":"zn","languageName":{"simpleText":"jw"}},{"languageCode":"uh","languageName":{"simpleText":"ms"}},{"languageCode":"mt","languageName":{"simpleText":"vf"}},{"languageCode":"lt","languageName":{"simpleText":"ln"}},{"languageCode":"vf","languageName":{"simpleText":"rd"}},{"languageCode":"my","languageName":{"simpleText":"rk"}},{"languageCode":"ei","languageName":{"simpleText":"ul"}},{"languageCode":"dj","languageName":{"simpleText":"cz"}},{"languageCode":"kb","languageName":{"simpleText":"hp"}},{"languageCode":"jj","languageName":{"simpleText":"zf"}},{"languageCode":"ew","languageName":{"simpleText":"ff"}},{"languageCode":"jo","languageName":{"simpleText":"iz"}},{"languageCode":"ja","languageName":{"simpleText":"uz"}},{"languageCode":"yd","languageName":{"simpleText":"or"}},{"languageCode":"tl","languageName":{"simpleText":"tw"}},{"languageCode":"mw","languageName":{"simpleText":"th"}},{"languageCode":"pq","languageName":{"simpleText":"zp"}},{"languageCode":"pq","languageName":{"simpleText":"pk"}},{"languageCode":"ef","languageName":{"simpleText":"fj"}},{"languageCode":"qq","languageName":{"simpleText":"vu"}},{"languageCode":"pj","languageName":{"simpleText":"kp"}},{"languageCode":"ab","languageName":{"simpleText":"xw"}},{"languageCode":"re","languageName":{"simpleText":"ln"}},{"languageCode":"ht","languageName":{"simpleText":"wo"}},{"languageCode":"ju","languageName":{"simpleText":"wb"}},{"languageCode":"yq","languageName":{"simpleText":"xv"}}],"defaultAudioTrackIndex":70}},"videoDetails":{"videoId":"ux","title":"jb","lengthSeconds":"90","keywords":["th","ts","yg","gy","ih","iq","zj"],"channelId":"pg","isOwnerViewing":6,"shortDescription":"ts","isCrawlable":62,"thumbnail":{"thumbnails":[{"url":"vx","width":8,"height":58},{"url":"bp","width":44,"height":79},{"url":"oh","width":47,"height":66},{"url":"hm","width":34,"height":55},{"url":"vr","width":0,"height":20}]},"allowRatings":24,"viewCount":"49","author":"xr","isPrivate":70,"isUnpluggedCorpus":66,"isLiveContent":99},"annotations":[{"playerAnnotationsExpandedRenderer":{"featuredChannel":{"startTimeMs":"96","endTimeMs":"46","watermark":{"thumbnails":[{"url":"li","width":91,"height":28}]},"trackingParams":"an","navigationEndpoint":{"clickTrackingParams":"mg","commandMetadata":{"webCommandMetadata":{"url":"rd","webPageType":"nc","rootVe":69,"apiUrl":"fm"}},"browseEndpoint":{"browseId":"qg"}},"channelName":"ei","subscribeButton":{"subscribeButtonRenderer":{"buttonText":{"runs":[{"text":"pz"}]},"subscribed":44,"enabled":33,"type":"ue","channelId":"ki","showPreferences":71,"subscribedButtonText":{"runs":[{"text":"lk"}]},"unsubscribedButtonText":{"runs":[{"text":"jn"}]},"trackingParams":"oj","unsubscribeButtonText":{"runs":[{"text":"ad"}]},"serviceEndpoints":[{"clickTrackingParams":"wm","commandMetadata":{"webCommandMetadata":{"sendPost":4,"apiUrl":"ky"}},"subscribeEndpoint":{"channelIds":["zt"],"params":"at"}},{"clickTrackingParams":"jg","commandMetadata":{"webCommandMetadata":{"sendPost":28}},"signalServiceEndpoint":{"signal":"ok","actions":[{"clickTrackingParams":"lt","openPopupAction":{"popup":{"confirmDialogRenderer":{"trackingParams":"po","dialogMessages":[{"runs":[{"text":"ou"},{"text":"jt"},{"text":"zz"}]}],"confirmButton":{"buttonRenderer":{"style":"mm","size":"oi","isDisabled":43,"text":{"runs":[{"text":"kc"}]},"serviceEndpoint":{"clickTrackingParams":"gk","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"kc"}},"unsubscribeEndpoint":{"channelIds":["cm"],"params":"ar"}},"accessibility":{"label":"iy"},"trackingParams":"gs"}},"cancelButton":{"buttonRenderer":{"style":"jb","size":"pe","isDisabled":69,"text":{"runs":[{"text":"uv"}]},"accessibility":{"label":"qu"},"trackingParams":"pe"}},"primaryIsCancel":48}},"popupType":"ma"}}]}}],"subscribeAccessibility":{"accessibilityData":{"label":"vh"}},"unsubscribeAccessibility":{"accessibilityData":{"label":"lg"}},"signInEndpoint":{"clickTrackingParams":"eu","commandMetadata":{"webCommandMetadata":{"url":"na"}}}}}},"allowSwipeDismiss":55,"annotationId":"jd"}}],"playerConfig":{"audioConfig":{"loudnessDb":0.9620880668073215,"perceptualLoudnessDb":0.541474004793957,"enablePerFormatLoudness":31},"streamSelectionConfig":{"maxBitrate":"61"},"mediaCommonConfig":{"dynamicReadaheadConfig":{"maxReadAheadMediaTimeMs":100,"minReadAheadMediaTimeMs":21,"readAheadGrowthRateMs":29}},"webPlayerConfig":{"useCobaltTvosDash":55,"webPlayerActionsPorting":{"getSharePanelCommand":{"clickTrackingParams":"of","commandMetadata":{"webCommandMetadata":{"sendPost":31,"apiUrl":"xl"}},"webPlayerShareEntityServiceEndpoint":{"serializedShareEntity":"tr"}},"subscribeCommand":{"clickTrackingParams":"fs","commandMetadata":{"webCommandMetadata":{"sendPost":13,"apiUrl":"xp"}},"subscribeEndpoint":{"channelIds":["qs"],"params":"oa"}},"unsubscribeCommand":{"clickTrackingParams":"ls","commandMetadata":{"webCommandMetadata":{"sendPost":91,"apiUrl":"wc"}},"unsubscribeEndpoint":{"channelIds":["fo"],"params":"vt"}},"addToWatchLaterCommand":{"clickTrackingParams":"ua","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"iu"}},"playlistEditEndpoint":{"playlistId":"rv","actions":[{"addedVideoId":"iw","action":"rd"}]}},"removeFromWatchLaterCommand":{"clickTrackingParams":"un","commandMetadata":{"webCommandMetadata":{"sendPost":20,"apiUrl":"bl"}},"playlistEditEndpoint":{"playlistId":"zg","actions":[{"action":"ya","removedVideoId":"dk"}]}}},"gatewayExperimentGroup":"vb"}},"storyboards":{"playerStoryboardSpecRenderer":{"spec":"aj","recommendedLevel":87}},"microformat":{"playerMicroformatRenderer":{"thumbnail":{"thumbnails":[{"url":"mm","width":57,"height":94}]},"embed":{"iframeUrl":"bd","width":51,"height":73},"title":{"simpleText":"sg"},"description":{"simpleText":"yv"},"lengthSeconds":"18","ownerProfileUrl":"bg","externalChannelId":"eg","isFamilySafe":88,"availableCountries":["hn","sd","lt","tx","nw","mq","iz","aj","vi","xa","ec","iv","rj","vb","ro","po","mv","mx","cn","ld","tn","ay","gv","bs","vf","da","ss","km","uo","mg","wv","md","lo","nc","vh","li","jh","lj","qq","ci","ob","zy","pu","bl","jm","ge","tt","ov","ue","vp","ka","nh","uc","gb","rs","gu","hm","uv","nq","ga","qu","hr","pj","zq","rh","nn","yv","or","zg","ai","qj","cv","vg","hr","zm","al","mj","fz","yx","st","tt","ih","vm","wq","gx","wi","ys","ug","vb","uh","rf","ry","ba","xu","ce","eq","bx","he","jm","ie","nb","cd","qz","no","yq","qe","jy","wd","pm","nb","hk","em","im","iv","ld","gz","fe","ut","md","gw","sf","yz","yp","xr","gm","uo","kg","yo","wv","da","wt","ry","it","gz","mm","ho","mf","lq","tu","im","lu","gm","pa","ny","gu","ds","yx","yh","jk","qb","jv","mp","bi","nr","mc","bg","ym","zt","sh","kd","gj","dp","qw","eh","no","pj","nq","dy","gt","cm","pg","ce","jt","xv","tf","ue","ke","hs","xh","tc","ad","yg","uh","cd","zc","rj","kq","sp","vv","xt","bo","am","kg","kx","xb","fr","il","qi","ap","pe","tg","im","cs","vy","zu","cq","bu","og","tf","ze","zj","um","vd","ot","al","zl","um","jv","ss","md","xm","nv","id","es","jf","as","zb","ms","uv","jh","xz","em","uv","bk","zx","wp","ay","ub","pa","rf","yi","zm","em","pu","xs"],"isUnlisted":24,"hasYpcMetadata":38,"viewCount":"6","category":"qh","publishDate":"eb","ownerChannelName":"mf","uploadDate":"ax"}},"cards":{"cardCollectionRenderer":{"cards":[{"cardRenderer":{"teaser":{"simpleCardTeaserRenderer":{"message":{"simpleText":"ha"},"trackingParams":"ra","prominent":9,"logVisibilityUpdates":88,"onTapCommand":{"clickTrackingParams":"dy","changeEngagementPanelVisibilityAction":{"targetId":"qc","visibility":"mh"}}}},"cueRanges":[{"startCardActiveMs":"41","endCardActiveMs":"81","teaserDurationMs":"31","iconAfterTeaserMs":"65"}],"trackingParams":"sn"}}],"headerText":{"simpleText":"mi"},"icon":{"infoCardIconRenderer":{"trackingParams":"tq"}},"closeButton":{"infoCardIconRenderer":{"trackingParams":"nz"}},"trackingParams":"ss","allowTeaserDismiss":55,"logIconVisibilityUpdates":49}},"trackingParams":"lt","attestation":{"playerAttestationRenderer":{"challenge":"rg","botguardData":{"program":"vk","interpreterSafeUrl":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"ap"},"serverEnvironment":83}}},"videoQualityPromoSupportedRenderers":{"videoQualityPromoRenderer":{"triggerCriteria":{"connectionWhitelist":["vs"],"joinLatencySeconds":85,"rebufferTimeSeconds":89,"watchTimeWindowSeconds":21,"refractorySeconds":41},"text":{"runs":[{"text":"it"},{"text":"qt","bold":60}]},"endpoint":{"clickTrackingParams":"lw","commandMetadata":{"webCommandMetadata":{"url":"ih","webPageType":"xa","rootVe":73}},"urlEndpoint":{"url":"ms","target":"tj"}},"trackingParams":"vd","snackbar":{"notificationActionRenderer":{"responseText":{"runs":[{"text":"pp"}]},"actionButton":{"buttonRenderer":{"text":{"runs":[{"text":"yw"}]},"navigationEndpoint":{"clickTrackingParams":"sq","commandMetadata":{"webCommandMetadata":{"url":"wp","webPageType":"zn","rootVe":21}},"urlEndpoint":{"url":"ju","target":"dy"}},"trackingParams":"zj"}},"trackingParams":"nh"}}}},"messages":[{"mealbarPromoRenderer":{"icon":{"thumbnails":[{"url":"ek","width":71,"height":69}]},"messageTexts":[{"runs":[{"text":"ew"}]}],"actionButton":{"buttonRenderer":{"style":"gz","size":"tz","text":{"runs":[{"text":"ga"}]},"trackingParams":"qr","command":{"clickTrackingParams":"wk","commandExecutorCommand":{"commands":[{"clickTrackingParams":"dw","commandMetadata":{"webCommandMetadata":{"url":"po","webPageType":"fl","rootVe":70,"apiUrl":"ot"}},"browseEndpoint":{"browseId":"pl","params":"zo"}},{"commandMetadata":{"webCommandMetadata":{"sendPost":10,"apiUrl":"rv"}},"feedbackEndpoint":{"feedbackToken":"xi","uiActions":{"hideEnclosingContainer":25}}}]}}}},"dismissButton":{"buttonRenderer":{"style":"ol","size":"og","text":{"runs":[{"text":"yv"}]},"trackingParams":"ch","command":{"clickTrackingParams":"uu","commandExecutorCommand":{"commands":[{"clickTrackingParams":"ig","commandMetadata":{"webCommandMetadata":{"sendPost":71,"apiUrl":"en"}},"feedbackEndpoint":{"feedbackToken":"wh","uiActions":{"hideEnclosingContainer":45}}}]}}}},"triggerCondition":"pb","style":"uq","trackingParams":"rp","impressionEndpoints":[{"clickTrackingParams":"xb","commandMetadata":{"webCommandMetadata":{"sendPost":73,"apiUrl":"wl"}},"feedbackEndpoint":{"feedbackToken":"wf","uiActions":{"hideEnclosingContainer":95}}}],"isVisible":17,"messageTitle":{"runs":[{"text":"ir"}]},"enableSharedFeatureForImpressionHandling":21}}],"adPlacements":[{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"wd","adTimeOffset":{"offsetStartMilliseconds":"7","offsetEndMilliseconds":"39"},"hideCueRangeMarker":50}},"renderer":{"linearAdSequenceRenderer":{"linearAds":[{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"aj","width":46,"height":25}]},"trackingParams":"ye"},"trackingParams":"dq","templatedCountdown":{"templatedAdText":{"text":"ps","isTemplated":82,"trackingParams":"cc"}},"durationMilliseconds":44}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"xz","isTemplated":30,"trackingParams":"um"},"trackingParams":"ge"}},"trackingParams":"zg","skipOffsetMilliseconds":88}},"trackingParams":"qd","visitAdvertiserRenderer":{"buttonRenderer":{"style":"fv","text":{"simpleText":"on"},"icon":{"iconType":"vw"},"navigationEndpoint":{"clickTrackingParams":"mk","commandMetadata":{"webCommandMetadata":{"url":"sr","webPageType":"ry","rootVe":62}},"urlEndpoint":{"url":"lq","target":"wt"}},"trackingParams":"mh"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"kw","isTemplated":93,"trackingParams":"jg"},"trackingParams":"at"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"rl","isTemplated":73,"trackingParams":"le"}},"trackingParams":"tr"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"le","size":"nb","isDisabled":41,"serviceEndpoint":{"clickTrackingParams":"jt","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"as"},"trackingParams":"vy"}},"popupType":"xn"}},"icon":{"iconType":"vl"},"trackingParams":"lm","accessibilityData":{"accessibilityData":{"label":"qi"}}}},"hoverText":{"simpleText":"zk"},"trackingParams":"qa"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"pv"}]},"trackingParams":"jo"},"headline":{"text":"qx","isTemplated":10,"trackingParams":"um"},"description":{"text":"mf","trackingParams":"fe"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"kq"},"navigationEndpoint":{"clickTrackingParams":"cm","commandMetadata":{"webCommandMetadata":{"url":"wa","webPageType":"nq","rootVe":69}},"urlEndpoint":{"url":"ln","target":"nd"}},"trackingParams":"no"}},"startMs":45,"trackingParams":"ge"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"xd"},"elementId":"tc","inPlayerSlotId":"gg","inPlayerLayoutId":"cm"}},"trackingParams":"uy","layoutId":"ff","associatedPlayerBytesLayoutId":"dy"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"gv"}]},"trackingParams":"at"},"headline":{"text":"ow","isTemplated":66,"trackingParams":"za"},"description":{"text":"ds","isTemplated":95,"trackingParams":"fc"},"actionButton":{"buttonRenderer":{"style":"ys","text":{"simpleText":"aq"},"navigationEndpoint":{"clickTrackingParams":"vu","commandMetadata":{"webCommandMetadata":{"url":"zn","webPageType":"jv","rootVe":38}},"urlEndpoint":{"url":"df","target":"xe"}},"trackingParams":"za"}},"durationMilliseconds":44,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"xg"}},"navigationEndpoint":{"clickTrackingParams":"vg","loggingUrls":[{"baseUrl":"bc"}],"commandMetadata":{"webCommandMetadata":{"url":"sn","webPageType":"vb","rootVe":34}},"urlEndpoint":{"url":"ex","target":"nb"}},"trackingParams":"iw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"cm"}]},"trackingParams":"br"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"dj","commandExecutorCommand":{"commands":[{"clickTrackingParams":"li","loggingUrls":[{"baseUrl":"wa"}],"pingingEndpoint":{"hack":0}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"jg","isTemplated":95,"trackingParams":"by"},"trackingParams":"kl"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"kt"},"layoutId":"cv","inPlayerSlotId":"qt","inPlayerLayoutId":"yy","associatedPlayerBytesLayoutId":"dx"}},{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"pz","width":32,"height":43}]},"trackingParams":"iz"},"trackingParams":"yo","templatedCountdown":{"templatedAdText":{"text":"we","isTemplated":91,"trackingParams":"si"}},"durationMilliseconds":10}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"bp","isTemplated":93,"trackingParams":"mo"},"trackingParams":"cp"}},"trackingParams":"qr","skipOffsetMilliseconds":60}},"trackingParams":"zf","visitAdvertiserRenderer":{"buttonRenderer":{"style":"ya","text":{"simpleText":"fv"},"icon":{"iconType":"bx"},"navigationEndpoint":{"clickTrackingParams":"bw","commandMetadata":{"webCommandMetadata":{"url":"ht","webPageType":"gv","rootVe":14}},"urlEndpoint":{"url":"wi","target":"te"}},"trackingParams":"gr"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"ox","isTemplated":66,"trackingParams":"td"},"trackingParams":"ng"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"zu","isTemplated":15,"trackingParams":"py"}},"trackingParams":"hb"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"vn","size":"cw","isDisabled":56,"serviceEndpoint":{"clickTrackingParams":"jh","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"zx"},"trackingParams":"yl"}},"popupType":"tw"}},"icon":{"iconType":"ar"},"trackingParams":"vi","accessibilityData":{"accessibilityData":{"label":"hy"}}}},"hoverText":{"simpleText":"ap"},"trackingParams":"pp"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"ol"}]},"trackingParams":"kz"},"headline":{"text":"wa","isTemplated":43,"trackingParams":"yb"},"description":{"text":"cl","trackingParams":"aq"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"xg"},"navigationEndpoint":{"clickTrackingParams":"wp","commandMetadata":{"webCommandMetadata":{"url":"uh","webPageType":"bs","rootVe":44}},"urlEndpoint":{"url":"xq","target":"fi"}},"trackingParams":"fo"}},"startMs":5,"trackingParams":"kh"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"ir"},"elementId":"mp","inPlayerSlotId":"fh","inPlayerLayoutId":"bh"}},"trackingParams":"ao","layoutId":"gc","associatedPlayerBytesLayoutId":"up"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"wj"}]},"trackingParams":"zr"},"headline":{"text":"rq","isTemplated":82,"trackingParams":"gr"},"description":{"text":"fj","isTemplated":57,"trackingParams":"li"},"actionButton":{"buttonRenderer":{"style":"mu","text":{"simpleText":"cg"},"navigationEndpoint":{"clickTrackingParams":"eb","commandMetadata":{"webCommandMetadata":{"url":"vn","webPageType":"nw","rootVe":96}},"urlEndpoint":{"url":"bs","target":"dr"}},"trackingParams":"iq"}},"durationMilliseconds":39,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"mt"}},"navigationEndpoint":{"clickTrackingParams":"uz","loggingUrls":[{"baseUrl":"rn"}],"commandMetadata":{"webCommandMetadata":{"url":"cu","webPageType":"qs","rootVe":26}},"urlEndpoint":{"url":"ty","target":"he"}},"trackingParams":"bw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"pd"}]},"trackingParams":"wm"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"io","commandExecutorCommand":{"commands":[{"clickTrackingParams":"hd","loggingUrls":[{"baseUrl":"hz"}],"pingingEndpoint":{"hack":81}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"db","isTemplated":42,"trackingParams":"ga"},"trackingParams":"pa"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"bt"},"layoutId":"ec","inPlayerSlotId":"nl","inPlayerLayoutId":"qh","associatedPlayerBytesLayoutId":"qe"}}]}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"rj"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"zf","adTimeOffset":{"offsetStartMilliseconds":"63","offsetEndMilliseconds":"83"},"hideCueRangeMarker":84}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"59","getAdBreakUrl":"as"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"we"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"ie","adTimeOffset":{"offsetStartMilliseconds":"94","offsetEndMilliseconds":"35"},"hideCueRangeMarker":74}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"0","getAdBreakUrl":"as"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"we"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"xx","adTimeOffset":{"offsetStartMilliseconds":"65","offsetEndMilliseconds":"30"},"hideCueRangeMarker":70}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"51","getAdBreakUrl":"ea"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wg"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"tl","adTimeOffset":{"offsetStartMilliseconds":"56","offsetEndMilliseconds":"86"},"hideCueRangeMarker":4}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"25","getAdBreakUrl":"zr"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nh"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"dg","adTimeOffset":{"offsetStartMilliseconds":"25","offsetEndMilliseconds":"13"},"hideCueRangeMarker":49}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"32","getAdBreakUrl":"rt"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ti"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"va","adTimeOffset":{"offsetStartMilliseconds":"47","offsetEndMilliseconds":"84"},"hideCueRangeMarker":90}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"10","getAdBreakUrl":"jp"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"go"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"ji","adTimeOffset":{"offsetStartMilliseconds":"14","offsetEndMilliseconds":"87"},"hideCueRangeMarker":31}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"79","getAdBreakUrl":"ia"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"fx","adTimeOffset":{"offsetStartMilliseconds":"34","offsetEndMilliseconds":"12"},"hideCueRangeMarker":34}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"27","getAdBreakUrl":"ip"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"fp"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"gb","adTimeOffset":{"offsetStartMilliseconds":"66","offsetEndMilliseconds":"35"},"hideCueRangeMarker":25}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"98","getAdBreakUrl":"bv"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"cn"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"zd","adTimeOffset":{"offsetStartMilliseconds":"59","offsetEndMilliseconds":"8"},"hideCueRangeMarker":63}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"26","getAdBreakUrl":"os"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wz"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"kq","adTimeOffset":{"offsetStartMilliseconds":"96","offsetEndMilliseconds":"37"},"hideCueRangeMarker":25}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"13","getAdBreakUrl":"st"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"es"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"eo","adTimeOffset":{"offsetStartMilliseconds":"88","offsetEndMilliseconds":"54"},"hideCueRangeMarker":61}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"77","getAdBreakUrl":"yj"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wm"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"xs","adTimeOffset":{"offsetStartMilliseconds":"84","offsetEndMilliseconds":"90"},"hideCueRangeMarker":73}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"92","getAdBreakUrl":"py"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nl"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"wo","adTimeOffset":{"offsetStartMilliseconds":"50","offsetEndMilliseconds":"67"},"hideCueRangeMarker":19}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"96","getAdBreakUrl":"nc"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ov"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"gf","adTimeOffset":{"offsetStartMilliseconds":"13","offsetEndMilliseconds":"2"},"hideCueRangeMarker":60}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"52","getAdBreakUrl":"sj"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"by"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"ar","adTimeOffset":{"offsetStartMilliseconds":"73","offsetEndMilliseconds":"64"},"hideCueRangeMarker":75}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"67","getAdBreakUrl":"cq"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"uc"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"jl","adTimeOffset":{"offsetStartMilliseconds":"32","offsetEndMilliseconds":"30"},"hideCueRangeMarker":52}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"65","getAdBreakUrl":"dx"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"su"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"wt","adTimeOffset":{"offsetStartMilliseconds":"10","offsetEndMilliseconds":"zo"},"hideCueRangeMarker":61}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"22","getAdBreakUrl":"gm"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"en"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"ro","adTimeOffset":{"offsetStartMilliseconds":"uc","offsetEndMilliseconds":"qv"},"hideCueRangeMarker":64}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"17","getAdBreakUrl":"po"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"uv"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"ha"}},"renderer":{"actionCompanionAdRenderer":{"headline":{"text":"eg","isTemplated":93,"trackingParams":"it"},"description":{"text":"ux","isTemplated":43,"trackingParams":"sj"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"de"},"navigationEndpoint":{"clickTrackingParams":"ex","commandMetadata":{"webCommandMetadata":{"url":"ue","webPageType":"ow","rootVe":77}},"urlEndpoint":{"url":"yh","target":"pg"}},"trackingParams":"xf"}},"iconImage":{"thumbnail":{"thumbnails":[{"url":"te","width":19,"height":23}]},"trackingParams":"lv"},"bannerImage":{"thumbnail":{"thumbnails":[{"url":"gj","width":38,"height":67}]},"trackingParams":"ow"},"navigationEndpoint":{"clickTrackingParams":"um","commandMetadata":{"webCommandMetadata":{"url":"fq","webPageType":"fd","rootVe":61}},"urlEndpoint":{"url":"gi","target":"tq"}},"trackingParams":"ie","adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"ng","size":"xv","isDisabled":53,"icon":{"iconType":"bq"},"navigationEndpoint":{"clickTrackingParams":"yl","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"po"},"trackingParams":"hi"}},"popupType":"sb"}},"trackingParams":"ho","accessibilityData":{"accessibilityData":{"label":"kl"}}}},"hoverText":{"simpleText":"xd"},"trackingParams":"dv"}},"adVideoId":"je","impressionPings":[{"baseUrl":"xj"}],"adLayoutLoggingData":{"serializedAdServingDataEntry":"dt"},"associatedCompositePlayerBytesLayoutId":"te"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"vs"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"ht"}},"renderer":{"actionCompanionAdRenderer":{"headline":{"text":"ke","isTemplated":53,"trackingParams":"wv"},"description":{"text":"ux","isTemplated":40,"trackingParams":"nu"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"jj"},"navigationEndpoint":{"clickTrackingParams":"sc","commandMetadata":{"webCommandMetadata":{"url":"js","webPageType":"fw","rootVe":47}},"urlEndpoint":{"url":"iy","target":"pv"}},"trackingParams":"gr"}},"iconImage":{"thumbnail":{"thumbnails":[{"url":"mb","width":73,"height":1}]},"trackingParams":"ut"},"bannerImage":{"thumbnail":{"thumbnails":[{"url":"ae","width":2,"height":12}]},"trackingParams":"qk"},"navigationEndpoint":{"clickTrackingParams":"il","commandMetadata":{"webCommandMetadata":{"url":"hb","webPageType":"zl","rootVe":50}},"urlEndpoint":{"url":"sl","target":"oo"}},"trackingParams":"up","adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"ef","size":"yh","isDisabled":35,"icon":{"iconType":"xj"},"navigationEndpoint":{"clickTrackingParams":"xc","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"zx"},"trackingParams":"dc"}},"popupType":"sb"}},"trackingParams":"eb","accessibilityData":{"accessibilityData":{"label":"zq"}}}},"hoverText":{"simpleText":"je"},"trackingParams":"ee"}},"adVideoId":"zc","impressionPings":[{"baseUrl":"vz"}],"adLayoutLoggingData":{"serializedAdServingDataEntry":"py"},"associatedCompositePlayerBytesLayoutId":"ms"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"tu"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"ms"}},"renderer":{"actionCompanionAdRenderer":{"headline":{"text":"wo","isTemplated":87,"trackingParams":"bi"},"description":{"text":"yw","isTemplated":10,"trackingParams":"vd"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"jq"},"navigationEndpoint":{"clickTrackingParams":"jd","commandMetadata":{"webCommandMetadata":{"url":"xx","webPageType":"fw","rootVe":39}},"urlEndpoint":{"url":"bx","target":"ja"}},"trackingParams":"vo"}},"iconImage":{"thumbnail":{"thumbnails":[{"url":"xo","width":4,"height":95}]},"trackingParams":"ig"},"bannerImage":{"thumbnail":{"thumbnails":[{"url":"qu","width":46,"height":42}]},"trackingParams":"du"},"navigationEndpoint":{"clickTrackingParams":"fd","commandMetadata":{"webCommandMetadata":{"url":"vx","webPageType":"bq","rootVe":77}},"urlEndpoint":{"url":"ub","target":"nb"}},"trackingParams":"kt","adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"gg","size":"ci","isDisabled":16,"icon":{"iconType":"zn"},"navigationEndpoint":{"clickTrackingParams":"lb","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"pw"},"trackingParams":"ac"}},"popupType":"hx"}},"trackingParams":"im","accessibilityData":{"accessibilityData":{"label":"sa"}}}},"hoverText":{"simpleText":"yl"},"trackingParams":"ez"}},"adVideoId":"bb","impressionPings":[{"baseUrl":"ba"}],"adLayoutLoggingData":{"serializedAdServingDataEntry":"wb"},"isContentVideoCompanion":1,"associatedCompositePlayerBytesLayoutId":"tm"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"xc"}}}],"adSlots":[{"adSlotRenderer":{"adSlotMetadata":{"slotId":"bb","slotType":"di","adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ob"},"triggerEvent":"fh"},"fulfillmentContent":{"fulfilledLayout":{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"ot","layoutType":"xg","adLayoutLoggingData":{"serializedAdServingDataEntry":"yk"}},"renderingContent":{"playerBytesSequentialLayoutRenderer":{"sequentialLayouts":[{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"je","layoutType":"ww","adLayoutLoggingData":{"serializedAdServingDataEntry":"ve"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":94,"pings":{"impressionPings":[{"baseUrl":"pl"},{"baseUrl":"zs"}],"errorPings":[{"baseUrl":"hh"}],"mutePings":[{"baseUrl":"qh"}],"unmutePings":[{"baseUrl":"ey"}],"pausePings":[{"baseUrl":"pz"}],"rewindPings":[{"baseUrl":"bh"}],"resumePings":[{"baseUrl":"mw"}],"skipPings":[{"baseUrl":"si"}],"closePings":[{"baseUrl":"oh"}],"progressPings":[{"baseUrl":"ly","offsetMilliseconds":1},{"baseUrl":"ac","offsetMilliseconds":80},{"baseUrl":"sy","offsetMilliseconds":72}],"fullscreenPings":[{"baseUrl":"kw"}],"activeViewViewablePings":[{"baseUrl":"oz"}],"endFullscreenPings":[{"baseUrl":"uc"}],"activeViewMeasurablePings":[{"baseUrl":"vu"}],"abandonPings":[{"baseUrl":"sf"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"qg"}],"completePings":[{"baseUrl":"jv"}],"activeViewTracking":{"trafficType":"sq"}},"clickthroughEndpoint":{"clickTrackingParams":"fn","commandMetadata":{"webCommandMetadata":{"url":"tf","webPageType":"ox","rootVe":73}},"urlEndpoint":{"url":"ny","target":"uc"}},"csiParameters":[{"key":"qe","value":"em"}],"playerVars":"js","elementId":"bq","trackingParams":"dr","legacyInfoCardVastExtension":"pa","sodarExtensionData":{"siub":"mi","bgub":"hc","scs":"cw","bgp":"co"},"externalVideoId":"ya","adLayoutLoggingData":{"serializedAdServingDataEntry":"jj"},"layoutId":"sc"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nr","layoutType":"kn","adLayoutLoggingData":{"serializedAdServingDataEntry":"cf"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":52,"trackingParams":"yq","abandonCommands":{"commands":[{"clickTrackingParams":"wi","loggingUrls":[{"baseUrl":"jb"}],"pingingEndpoint":{"hack":90}}]},"skipPings":[{"baseUrl":"av"}],"layoutId":"nj"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nl","layoutType":"wm","adLayoutLoggingData":{"serializedAdServingDataEntry":"zw"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":80,"pings":{"impressionPings":[{"baseUrl":"ji"},{"baseUrl":"ao"},{"baseUrl":"cc"}],"errorPings":[{"baseUrl":"jt"}],"mutePings":[{"baseUrl":"mn"},{"baseUrl":"ce"}],"unmutePings":[{"baseUrl":"rd"},{"baseUrl":"lb"}],"pausePings":[{"baseUrl":"et"},{"baseUrl":"fv"}],"rewindPings":[{"baseUrl":"ft"}],"resumePings":[{"baseUrl":"qj"},{"baseUrl":"ot"}],"skipPings":[{"baseUrl":"ky"},{"baseUrl":"jb"}],"closePings":[{"baseUrl":"hw"}],"progressPings":[{"baseUrl":"vh","offsetMilliseconds":36},{"baseUrl":"um","offsetMilliseconds":77},{"baseUrl":"sq","offsetMilliseconds":19},{"baseUrl":"ui","offsetMilliseconds":15},{"baseUrl":"nl","offsetMilliseconds":86}],"fullscreenPings":[{"baseUrl":"rp"},{"baseUrl":"cn"}],"activeViewViewablePings":[{"baseUrl":"ml"},{"baseUrl":"kq"}],"endFullscreenPings":[{"baseUrl":"ym"}],"activeViewMeasurablePings":[{"baseUrl":"di"},{"baseUrl":"ol"}],"abandonPings":[{"baseUrl":"aj"},{"baseUrl":"wo"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"ms"},{"baseUrl":"uj"}],"startPings":[{"baseUrl":"gy"}],"firstQuartilePings":[{"baseUrl":"ly"}],"secondQuartilePings":[{"baseUrl":"sw"}],"thirdQuartilePings":[{"baseUrl":"gt"}],"completePings":[{"baseUrl":"hu"},{"baseUrl":"gs"}],"activeViewTracking":{"trafficType":"mr"}},"clickthroughEndpoint":{"clickTrackingParams":"yq","commandMetadata":{"webCommandMetadata":{"url":"dn","webPageType":"ms","rootVe":54}},"urlEndpoint":{"url":"hs","target":"jt"}},"csiParameters":[{"key":"zn","value":"eq"}],"playerVars":"bi","elementId":"gr","trackingParams":"qc","legacyInfoCardVastExtension":"xv","sodarExtensionData":{"siub":"ul","bgub":"yr","scs":"ui","bgp":"vy"},"externalVideoId":"fp","adLayoutLoggingData":{"serializedAdServingDataEntry":"gt"},"layoutId":"bh"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"xy","layoutType":"bf","adLayoutLoggingData":{"serializedAdServingDataEntry":"rj"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":95,"trackingParams":"ee","abandonCommands":{"commands":[{"clickTrackingParams":"mi","loggingUrls":[{"baseUrl":"yi"},{"baseUrl":"tm"}],"pingingEndpoint":{"hack":47}}]},"skipPings":[{"baseUrl":"uk"},{"baseUrl":"yj"}],"layoutId":"ft"}}}}]}},"layoutExitNormalTriggers":[{"id":"hq","onLayoutSelfExitRequestedTrigger":{"triggeringLayoutId":"hv"}}],"layoutExitSkipTriggers":[{"id":"up","skipRequestedTrigger":{"triggeringLayoutId":"nm"}},{"id":"yl","skipRequestedTrigger":{"triggeringLayoutId":"gh"}},{"id":"zd","skipRequestedTrigger":{"triggeringLayoutId":"mo"}},{"id":"bc","skipRequestedTrigger":{"triggeringLayoutId":"jj"}}],"layoutExitMuteTriggers":[{"id":"ql","skipRequestedTrigger":{"triggeringLayoutId":"hr"}},{"id":"rc","skipRequestedTrigger":{"triggeringLayoutId":"ln"}}]}}},"slotEntryTrigger":{"id":"lc","beforeContentVideoIdStartedTrigger":{}},"slotFulfillmentTriggers":[{"id":"xq","slotIdEnteredTrigger":{"triggeringSlotId":"da"}}],"slotExpirationTriggers":[{"id":"vv","slotIdExitedTrigger":{"triggeringSlotId":"re"}},{"id":"jg","onNewPlaybackAfterContentVideoIdTrigger":{}}]}}],"adBreakHeartbeatParams":"mw","frameworkUpdates":{"entityBatchUpdate":{"mutations":[{"entityKey":"pz","type":"az","payload":{"offlineabilityEntity":{"key":"ql","command":{"innertubeCommand":{"clickTrackingParams":"nz","ypcGetOfflineUpsellEndpoint":{"params":"pw"}}},"addToOfflineButtonState":"os","contentCheckOk":false,"racyCheckOk":false,"loggingDirectives":{"trackingParams":"xp","visibility":{"types":"1"},"enableDisplayloggerExperiment":true}}}}],"timestamp":{"seconds":"19","nanos":12}}}}',
objectRepresentation:Ugb},{jsonRepresentation:'{"playerResponse":{"responseContext":{"serviceTrackingParams":[{"service":"wd","params":[{"key":"kc","value":"66"},{"key":"cw","value":"st"},{"key":"zb","value":"xz"},{"key":"zl","value":"16"},{"key":"pf","value":"sy"}]},{"service":"bh","params":[{"key":"ip","value":"54"},{"key":"tb","value":"dv"},{"key":"pi","value":"pn"},{"key":"fg","value":"35"},{"key":"wm","value":"vo"}]},{"service":"fp","params":[{"key":"hw","value":"91"}]},{"service":"rk","params":[{"key":"pe","value":"sf"},{"key":"rv","value":"jn"},{"key":"aw","value":"pw"}]}],"maxAgeSeconds":87,"mainAppWebResponseContext":{"loggedOut":43,"trackingParam":"dd","datasyncId":"xp"},"webResponseContextExtensionData":{"hasDecorated":75}},"playabilityStatus":{"status":"by","playableInEmbed":2,"miniplayer":{"miniplayerRenderer":{"playbackMode":"tj"}},"offlineability":{"buttonRenderer":{"serviceEndpoint":{"clickTrackingParams":"pz","ypcGetOfflineUpsellEndpoint":{"params":"xm"}},"trackingParams":"pq"}},"contextParams":"lu"},"streamingData":{"expiresInSeconds":"53","formats":[{"itag":80,"url":"ko","mimeType":"dr","bitrate":88,"width":96,"height":65,"lastModified":"78","contentLength":"17","quality":"rc","fps":8,"qualityLabel":"ab","projectionType":"by","averageBitrate":50,"audioQuality":"th","approxDurationMs":"86","audioSampleRate":"88","audioChannels":34},{"itag":95,"url":"hs","mimeType":"nm","bitrate":56,"width":13,"height":14,"lastModified":"10","quality":"fu","fps":54,"qualityLabel":"yj","projectionType":"wu","audioQuality":"tu","approxDurationMs":"51","audioSampleRate":"87","audioChannels":44}],"adaptiveFormats":[{"itag":50,"url":"fu","mimeType":"uz","bitrate":80,"width":80,"height":85,"initRange":{"start":"16","end":"71"},"indexRange":{"start":"1","end":"26"},"lastModified":"70","contentLength":"66","quality":"cx","fps":61,"qualityLabel":"xt","projectionType":"pe","averageBitrate":68,"approxDurationMs":"1"},{"itag":77,"url":"rj","mimeType":"lh","bitrate":16,"width":17,"height":47,"initRange":{"start":"51","end":"44"},"indexRange":{"start":"87","end":"61"},"lastModified":"13","contentLength":"21","quality":"ie","fps":23,"qualityLabel":"ig","projectionType":"bl","averageBitrate":16,"colorInfo":{"primaries":"et","transferCharacteristics":"zu","matrixCoefficients":"od"},"approxDurationMs":"59"},{"itag":7,"url":"fc","mimeType":"gr","bitrate":71,"width":11,"height":3,"initRange":{"start":"100","end":"7"},"indexRange":{"start":"36","end":"98"},"lastModified":"88","contentLength":"77","quality":"rb","fps":46,"qualityLabel":"gq","projectionType":"ld","averageBitrate":99,"colorInfo":{"primaries":"xd","transferCharacteristics":"uu","matrixCoefficients":"zc"},"approxDurationMs":"44"},{"itag":10,"url":"kl","mimeType":"wb","bitrate":51,"width":69,"height":3,"initRange":{"start":"92","end":"79"},"indexRange":{"start":"42","end":"72"},"lastModified":"99","contentLength":"6","quality":"ee","fps":40,"qualityLabel":"em","projectionType":"wz","averageBitrate":48,"approxDurationMs":"86"},{"itag":44,"url":"hp","mimeType":"kq","bitrate":84,"width":53,"height":22,"initRange":{"start":"48","end":"51"},"indexRange":{"start":"54","end":"44"},"lastModified":"25","contentLength":"47","quality":"xy","fps":11,"qualityLabel":"zl","projectionType":"za","averageBitrate":95,"colorInfo":{"primaries":"ot","transferCharacteristics":"av","matrixCoefficients":"ow"},"approxDurationMs":"85"},{"itag":20,"url":"di","mimeType":"nc","bitrate":15,"width":19,"height":92,"initRange":{"start":"82","end":"58"},"indexRange":{"start":"80","end":"37"},"lastModified":"46","contentLength":"40","quality":"wo","fps":44,"qualityLabel":"pt","projectionType":"bg","averageBitrate":3,"colorInfo":{"primaries":"wq","transferCharacteristics":"is","matrixCoefficients":"ou"},"approxDurationMs":"47"},{"itag":44,"url":"oe","mimeType":"mh","bitrate":37,"width":43,"height":24,"initRange":{"start":"29","end":"91"},"indexRange":{"start":"97","end":"97"},"lastModified":"52","contentLength":"43","quality":"cr","fps":44,"qualityLabel":"hc","projectionType":"cr","averageBitrate":12,"approxDurationMs":"97"},{"itag":32,"url":"gq","mimeType":"sh","bitrate":42,"width":32,"height":13,"initRange":{"start":"71","end":"87"},"indexRange":{"start":"70","end":"4"},"lastModified":"67","contentLength":"16","quality":"sb","fps":66,"qualityLabel":"mv","projectionType":"kk","averageBitrate":51,"colorInfo":{"primaries":"pk","transferCharacteristics":"ea","matrixCoefficients":"cq"},"approxDurationMs":"70"},{"itag":71,"url":"zt","mimeType":"bl","bitrate":12,"width":68,"height":12,"initRange":{"start":"63","end":"2"},"indexRange":{"start":"28","end":"68"},"lastModified":"33","contentLength":"0","quality":"dh","fps":6,"qualityLabel":"jv","projectionType":"sy","averageBitrate":75,"colorInfo":{"primaries":"us","transferCharacteristics":"ka","matrixCoefficients":"xw"},"approxDurationMs":"16"},{"itag":98,"url":"vl","mimeType":"lg","bitrate":88,"width":23,"height":83,"initRange":{"start":"49","end":"34"},"indexRange":{"start":"43","end":"90"},"lastModified":"84","contentLength":"77","quality":"xu","fps":50,"qualityLabel":"jz","projectionType":"om","averageBitrate":16,"highReplication":95,"approxDurationMs":"46"},{"itag":85,"url":"ri","mimeType":"dh","bitrate":77,"width":86,"height":54,"initRange":{"start":"40","end":"98"},"indexRange":{"start":"15","end":"85"},"lastModified":"25","contentLength":"53","quality":"rq","fps":62,"qualityLabel":"nx","projectionType":"wg","averageBitrate":35,"colorInfo":{"primaries":"oa","transferCharacteristics":"kb","matrixCoefficients":"kk"},"approxDurationMs":"26"},{"itag":10,"url":"zz","mimeType":"lq","bitrate":55,"width":89,"height":43,"initRange":{"start":"94","end":"98"},"indexRange":{"start":"73","end":"51"},"lastModified":"3","contentLength":"36","quality":"yo","fps":5,"qualityLabel":"we","projectionType":"ve","averageBitrate":83,"colorInfo":{"primaries":"yu","transferCharacteristics":"fu","matrixCoefficients":"ox"},"approxDurationMs":"11"},{"itag":62,"url":"hv","mimeType":"th","bitrate":76,"width":28,"height":79,"initRange":{"start":"97","end":"100"},"indexRange":{"start":"58","end":"63"},"lastModified":"53","contentLength":"22","quality":"ou","fps":7,"qualityLabel":"cm","projectionType":"xv","averageBitrate":35,"approxDurationMs":"98"},{"itag":91,"url":"vr","mimeType":"wo","bitrate":41,"width":4,"height":79,"initRange":{"start":"80","end":"83"},"indexRange":{"start":"14","end":"58"},"lastModified":"50","contentLength":"38","quality":"ic","fps":64,"qualityLabel":"sq","projectionType":"du","averageBitrate":61,"colorInfo":{"primaries":"ok","transferCharacteristics":"ud","matrixCoefficients":"ob"},"approxDurationMs":"73"},{"itag":48,"url":"lq","mimeType":"zl","bitrate":4,"width":16,"height":65,"initRange":{"start":"93","end":"50"},"indexRange":{"start":"52","end":"44"},"lastModified":"74","contentLength":"86","quality":"mi","fps":43,"qualityLabel":"rz","projectionType":"ji","averageBitrate":61,"colorInfo":{"primaries":"qo","transferCharacteristics":"fk","matrixCoefficients":"jy"},"approxDurationMs":"70"},{"itag":34,"url":"cr","mimeType":"la","bitrate":53,"width":29,"height":97,"initRange":{"start":"89","end":"45"},"indexRange":{"start":"93","end":"45"},"lastModified":"52","contentLength":"74","quality":"xn","fps":60,"qualityLabel":"xs","projectionType":"lf","averageBitrate":1,"approxDurationMs":"18"},{"itag":67,"url":"mr","mimeType":"cs","bitrate":79,"width":9,"height":85,"initRange":{"start":"56","end":"96"},"indexRange":{"start":"71","end":"84"},"lastModified":"78","contentLength":"80","quality":"ld","fps":2,"qualityLabel":"no","projectionType":"uq","averageBitrate":35,"colorInfo":{"primaries":"mj","transferCharacteristics":"ry","matrixCoefficients":"cc"},"approxDurationMs":"43"},{"itag":57,"url":"fi","mimeType":"to","bitrate":80,"width":81,"height":29,"initRange":{"start":"6","end":"96"},"indexRange":{"start":"73","end":"48"},"lastModified":"32","contentLength":"11","quality":"ck","fps":82,"qualityLabel":"fo","projectionType":"px","averageBitrate":95,"colorInfo":{"primaries":"az","transferCharacteristics":"mq","matrixCoefficients":"oc"},"approxDurationMs":"44"},{"itag":52,"url":"ea","mimeType":"xm","bitrate":18,"initRange":{"start":"15","end":"16"},"indexRange":{"start":"4","end":"33"},"lastModified":"65","contentLength":"67","quality":"es","projectionType":"mp","averageBitrate":52,"highReplication":82,"audioQuality":"za","approxDurationMs":"24","audioSampleRate":"1","audioChannels":92,"loudnessDb":0.9787435365879406},{"itag":37,"url":"kk","mimeType":"xg","bitrate":78,"initRange":{"start":"38","end":"94"},"indexRange":{"start":"27","end":"17"},"lastModified":"61","contentLength":"2","quality":"nh","projectionType":"ar","averageBitrate":69,"audioQuality":"la","approxDurationMs":"95","audioSampleRate":"66","audioChannels":50,"loudnessDb":0.6461265012758731},{"itag":45,"url":"oc","mimeType":"nm","bitrate":12,"initRange":{"start":"21","end":"45"},"indexRange":{"start":"21","end":"13"},"lastModified":"45","contentLength":"85","quality":"vs","projectionType":"xp","averageBitrate":32,"audioQuality":"tv","approxDurationMs":"1","audioSampleRate":"99","audioChannels":42,"loudnessDb":0.39295968942278037},{"itag":37,"url":"zf","mimeType":"be","bitrate":29,"initRange":{"start":"27","end":"87"},"indexRange":{"start":"81","end":"20"},"lastModified":"6","contentLength":"33","quality":"pe","projectionType":"pb","averageBitrate":100,"audioQuality":"zi","approxDurationMs":"70","audioSampleRate":"32","audioChannels":68,"loudnessDb":0.2781731101164002}]},"playerAds":[{"playerLegacyDesktopWatchAdsRenderer":{"playerAdParams":{"showContentThumbnail":10,"enabledEngageTypes":"yz"},"gutParams":{"tag":"db"},"showCompanion":7,"showInstream":79,"useGut":88}}],"playbackTracking":{"videostatsPlaybackUrl":{"baseUrl":"bj"},"videostatsDelayplayUrl":{"baseUrl":"vx"},"videostatsWatchtimeUrl":{"baseUrl":"px"},"ptrackingUrl":{"baseUrl":"tg"},"qoeUrl":{"baseUrl":"wx"},"atrUrl":{"baseUrl":"xz","elapsedMediaTimeSeconds":45},"videostatsScheduledFlushWalltimeSeconds":[99,32,39],"videostatsDefaultFlushIntervalSeconds":3,"youtubeRemarketingUrl":{"baseUrl":"mb","elapsedMediaTimeSeconds":63},"googleRemarketingUrl":{"baseUrl":"yn","elapsedMediaTimeSeconds":83}},"captions":{"playerCaptionsTracklistRenderer":{"captionTracks":[{"baseUrl":"ew","name":{"simpleText":"ez"},"vssId":"fj","languageCode":"wd","kind":"ez","isTranslatable":21}],"audioTracks":[{"captionTrackIndices":[87]}],"translationLanguages":[{"languageCode":"xu","languageName":{"simpleText":"fw"}},{"languageCode":"zl","languageName":{"simpleText":"xc"}},{"languageCode":"jr","languageName":{"simpleText":"md"}},{"languageCode":"sc","languageName":{"simpleText":"wf"}},{"languageCode":"nj","languageName":{"simpleText":"xn"}},{"languageCode":"of","languageName":{"simpleText":"av"}},{"languageCode":"tv","languageName":{"simpleText":"ok"}},{"languageCode":"nu","languageName":{"simpleText":"ry"}},{"languageCode":"zy","languageName":{"simpleText":"nb"}},{"languageCode":"pt","languageName":{"simpleText":"eq"}},{"languageCode":"vr","languageName":{"simpleText":"cc"}},{"languageCode":"wh","languageName":{"simpleText":"hd"}},{"languageCode":"hp","languageName":{"simpleText":"ds"}},{"languageCode":"ka","languageName":{"simpleText":"up"}},{"languageCode":"sw","languageName":{"simpleText":"zp"}},{"languageCode":"rh","languageName":{"simpleText":"eq"}},{"languageCode":"bq","languageName":{"simpleText":"at"}},{"languageCode":"hu","languageName":{"simpleText":"fg"}},{"languageCode":"ai","languageName":{"simpleText":"iy"}},{"languageCode":"rj","languageName":{"simpleText":"oz"}},{"languageCode":"sq","languageName":{"simpleText":"fe"}},{"languageCode":"tn","languageName":{"simpleText":"vk"}},{"languageCode":"jr","languageName":{"simpleText":"jg"}},{"languageCode":"vc","languageName":{"simpleText":"hv"}},{"languageCode":"yn","languageName":{"simpleText":"ky"}},{"languageCode":"pa","languageName":{"simpleText":"rw"}},{"languageCode":"lr","languageName":{"simpleText":"kv"}},{"languageCode":"ud","languageName":{"simpleText":"fn"}},{"languageCode":"hq","languageName":{"simpleText":"io"}},{"languageCode":"rp","languageName":{"simpleText":"qx"}},{"languageCode":"xf","languageName":{"simpleText":"sm"}},{"languageCode":"fs","languageName":{"simpleText":"ty"}},{"languageCode":"so","languageName":{"simpleText":"xl"}},{"languageCode":"fk","languageName":{"simpleText":"ff"}},{"languageCode":"fw","languageName":{"simpleText":"wz"}},{"languageCode":"rn","languageName":{"simpleText":"zw"}},{"languageCode":"wq","languageName":{"simpleText":"yt"}},{"languageCode":"oh","languageName":{"simpleText":"oo"}},{"languageCode":"ts","languageName":{"simpleText":"jt"}},{"languageCode":"xy","languageName":{"simpleText":"ga"}},{"languageCode":"jy","languageName":{"simpleText":"sx"}},{"languageCode":"lw","languageName":{"simpleText":"cf"}},{"languageCode":"fc","languageName":{"simpleText":"qr"}},{"languageCode":"ji","languageName":{"simpleText":"cc"}},{"languageCode":"qs","languageName":{"simpleText":"pi"}},{"languageCode":"vx","languageName":{"simpleText":"hk"}},{"languageCode":"jt","languageName":{"simpleText":"eh"}},{"languageCode":"fb","languageName":{"simpleText":"iu"}},{"languageCode":"mf","languageName":{"simpleText":"st"}},{"languageCode":"en","languageName":{"simpleText":"vr"}},{"languageCode":"go","languageName":{"simpleText":"kp"}},{"languageCode":"sc","languageName":{"simpleText":"rk"}},{"languageCode":"bx","languageName":{"simpleText":"ci"}},{"languageCode":"pu","languageName":{"simpleText":"qj"}},{"languageCode":"fa","languageName":{"simpleText":"ht"}},{"languageCode":"bw","languageName":{"simpleText":"af"}},{"languageCode":"rr","languageName":{"simpleText":"jt"}},{"languageCode":"ef","languageName":{"simpleText":"yy"}},{"languageCode":"bn","languageName":{"simpleText":"wu"}},{"languageCode":"ov","languageName":{"simpleText":"ae"}},{"languageCode":"sm","languageName":{"simpleText":"hi"}},{"languageCode":"tq","languageName":{"simpleText":"ie"}},{"languageCode":"fn","languageName":{"simpleText":"et"}},{"languageCode":"jw","languageName":{"simpleText":"bu"}},{"languageCode":"iz","languageName":{"simpleText":"gc"}},{"languageCode":"bk","languageName":{"simpleText":"jh"}},{"languageCode":"vw","languageName":{"simpleText":"fq"}},{"languageCode":"xt","languageName":{"simpleText":"or"}},{"languageCode":"kq","languageName":{"simpleText":"ch"}},{"languageCode":"pa","languageName":{"simpleText":"cs"}},{"languageCode":"ef","languageName":{"simpleText":"eq"}},{"languageCode":"mk","languageName":{"simpleText":"ig"}},{"languageCode":"me","languageName":{"simpleText":"pv"}},{"languageCode":"ll","languageName":{"simpleText":"nz"}},{"languageCode":"yd","languageName":{"simpleText":"pu"}},{"languageCode":"dj","languageName":{"simpleText":"vx"}},{"languageCode":"xc","languageName":{"simpleText":"ca"}},{"languageCode":"wb","languageName":{"simpleText":"il"}},{"languageCode":"ww","languageName":{"simpleText":"jf"}},{"languageCode":"xi","languageName":{"simpleText":"ba"}},{"languageCode":"ae","languageName":{"simpleText":"hx"}},{"languageCode":"uj","languageName":{"simpleText":"xu"}},{"languageCode":"hq","languageName":{"simpleText":"gp"}},{"languageCode":"we","languageName":{"simpleText":"pk"}},{"languageCode":"kt","languageName":{"simpleText":"ek"}},{"languageCode":"hy","languageName":{"simpleText":"ab"}},{"languageCode":"hm","languageName":{"simpleText":"nu"}},{"languageCode":"uw","languageName":{"simpleText":"rx"}},{"languageCode":"or","languageName":{"simpleText":"nf"}},{"languageCode":"dh","languageName":{"simpleText":"zn"}},{"languageCode":"kb","languageName":{"simpleText":"js"}},{"languageCode":"vg","languageName":{"simpleText":"xe"}},{"languageCode":"dl","languageName":{"simpleText":"so"}},{"languageCode":"lz","languageName":{"simpleText":"hb"}},{"languageCode":"ny","languageName":{"simpleText":"xr"}},{"languageCode":"ag","languageName":{"simpleText":"us"}},{"languageCode":"zr","languageName":{"simpleText":"ae"}},{"languageCode":"yq","languageName":{"simpleText":"yc"}},{"languageCode":"up","languageName":{"simpleText":"dc"}},{"languageCode":"zn","languageName":{"simpleText":"jw"}},{"languageCode":"uh","languageName":{"simpleText":"ms"}},{"languageCode":"mt","languageName":{"simpleText":"vf"}},{"languageCode":"lt","languageName":{"simpleText":"ln"}},{"languageCode":"vf","languageName":{"simpleText":"rd"}},{"languageCode":"my","languageName":{"simpleText":"rk"}},{"languageCode":"ei","languageName":{"simpleText":"ul"}},{"languageCode":"dj","languageName":{"simpleText":"cz"}},{"languageCode":"kb","languageName":{"simpleText":"hp"}},{"languageCode":"jj","languageName":{"simpleText":"zf"}},{"languageCode":"ew","languageName":{"simpleText":"ff"}},{"languageCode":"jo","languageName":{"simpleText":"iz"}},{"languageCode":"ja","languageName":{"simpleText":"uz"}},{"languageCode":"yd","languageName":{"simpleText":"or"}},{"languageCode":"tl","languageName":{"simpleText":"tw"}},{"languageCode":"mw","languageName":{"simpleText":"th"}},{"languageCode":"pq","languageName":{"simpleText":"zp"}},{"languageCode":"pq","languageName":{"simpleText":"pk"}},{"languageCode":"ef","languageName":{"simpleText":"fj"}},{"languageCode":"qq","languageName":{"simpleText":"vu"}},{"languageCode":"pj","languageName":{"simpleText":"kp"}},{"languageCode":"ab","languageName":{"simpleText":"xw"}},{"languageCode":"re","languageName":{"simpleText":"ln"}},{"languageCode":"ht","languageName":{"simpleText":"wo"}},{"languageCode":"ju","languageName":{"simpleText":"wb"}},{"languageCode":"yq","languageName":{"simpleText":"xv"}}],"defaultAudioTrackIndex":70}},"videoDetails":{"videoId":"ux","title":"jb","lengthSeconds":"90","keywords":["th","ts","yg","gy","ih","iq","zj"],"channelId":"pg","isOwnerViewing":6,"shortDescription":"ts","isCrawlable":62,"thumbnail":{"thumbnails":[{"url":"vx","width":8,"height":58},{"url":"bp","width":44,"height":79},{"url":"oh","width":47,"height":66},{"url":"hm","width":34,"height":55},{"url":"vr","width":0,"height":20}]},"allowRatings":24,"viewCount":"49","author":"xr","isPrivate":70,"isUnpluggedCorpus":66,"isLiveContent":99},"annotations":[{"playerAnnotationsExpandedRenderer":{"featuredChannel":{"startTimeMs":"96","endTimeMs":"46","watermark":{"thumbnails":[{"url":"li","width":91,"height":28}]},"trackingParams":"an","navigationEndpoint":{"clickTrackingParams":"mg","commandMetadata":{"webCommandMetadata":{"url":"rd","webPageType":"nc","rootVe":69,"apiUrl":"fm"}},"browseEndpoint":{"browseId":"qg"}},"channelName":"ei","subscribeButton":{"subscribeButtonRenderer":{"buttonText":{"runs":[{"text":"pz"}]},"subscribed":44,"enabled":33,"type":"ue","channelId":"ki","showPreferences":71,"subscribedButtonText":{"runs":[{"text":"lk"}]},"unsubscribedButtonText":{"runs":[{"text":"jn"}]},"trackingParams":"oj","unsubscribeButtonText":{"runs":[{"text":"ad"}]},"serviceEndpoints":[{"clickTrackingParams":"wm","commandMetadata":{"webCommandMetadata":{"sendPost":4,"apiUrl":"ky"}},"subscribeEndpoint":{"channelIds":["zt"],"params":"at"}},{"clickTrackingParams":"jg","commandMetadata":{"webCommandMetadata":{"sendPost":28}},"signalServiceEndpoint":{"signal":"ok","actions":[{"clickTrackingParams":"lt","openPopupAction":{"popup":{"confirmDialogRenderer":{"trackingParams":"po","dialogMessages":[{"runs":[{"text":"ou"},{"text":"jt"},{"text":"zz"}]}],"confirmButton":{"buttonRenderer":{"style":"mm","size":"oi","isDisabled":43,"text":{"runs":[{"text":"kc"}]},"serviceEndpoint":{"clickTrackingParams":"gk","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"kc"}},"unsubscribeEndpoint":{"channelIds":["cm"],"params":"ar"}},"accessibility":{"label":"iy"},"trackingParams":"gs"}},"cancelButton":{"buttonRenderer":{"style":"jb","size":"pe","isDisabled":69,"text":{"runs":[{"text":"uv"}]},"accessibility":{"label":"qu"},"trackingParams":"pe"}},"primaryIsCancel":48}},"popupType":"ma"}}]}}],"subscribeAccessibility":{"accessibilityData":{"label":"vh"}},"unsubscribeAccessibility":{"accessibilityData":{"label":"lg"}},"signInEndpoint":{"clickTrackingParams":"eu","commandMetadata":{"webCommandMetadata":{"url":"na"}}}}}},"allowSwipeDismiss":55,"annotationId":"jd"}}],"playerConfig":{"audioConfig":{"loudnessDb":0.9620880668073215,"perceptualLoudnessDb":0.541474004793957,"enablePerFormatLoudness":31},"streamSelectionConfig":{"maxBitrate":"61"},"mediaCommonConfig":{"dynamicReadaheadConfig":{"maxReadAheadMediaTimeMs":100,"minReadAheadMediaTimeMs":21,"readAheadGrowthRateMs":29}},"webPlayerConfig":{"useCobaltTvosDash":55,"webPlayerActionsPorting":{"getSharePanelCommand":{"clickTrackingParams":"of","commandMetadata":{"webCommandMetadata":{"sendPost":31,"apiUrl":"xl"}},"webPlayerShareEntityServiceEndpoint":{"serializedShareEntity":"tr"}},"subscribeCommand":{"clickTrackingParams":"fs","commandMetadata":{"webCommandMetadata":{"sendPost":13,"apiUrl":"xp"}},"subscribeEndpoint":{"channelIds":["qs"],"params":"oa"}},"unsubscribeCommand":{"clickTrackingParams":"ls","commandMetadata":{"webCommandMetadata":{"sendPost":91,"apiUrl":"wc"}},"unsubscribeEndpoint":{"channelIds":["fo"],"params":"vt"}},"addToWatchLaterCommand":{"clickTrackingParams":"ua","commandMetadata":{"webCommandMetadata":{"sendPost":18,"apiUrl":"iu"}},"playlistEditEndpoint":{"playlistId":"rv","actions":[{"addedVideoId":"iw","action":"rd"}]}},"removeFromWatchLaterCommand":{"clickTrackingParams":"un","commandMetadata":{"webCommandMetadata":{"sendPost":20,"apiUrl":"bl"}},"playlistEditEndpoint":{"playlistId":"zg","actions":[{"action":"ya","removedVideoId":"dk"}]}}},"gatewayExperimentGroup":"vb"}},"storyboards":{"playerStoryboardSpecRenderer":{"spec":"aj","recommendedLevel":87}},"microformat":{"playerMicroformatRenderer":{"thumbnail":{"thumbnails":[{"url":"mm","width":57,"height":94}]},"embed":{"iframeUrl":"bd","width":51,"height":73},"title":{"simpleText":"sg"},"description":{"simpleText":"yv"},"lengthSeconds":"18","ownerProfileUrl":"bg","externalChannelId":"eg","isFamilySafe":88,"availableCountries":["hn","sd","lt","tx","nw","mq","iz","aj","vi","xa","ec","iv","rj","vb","ro","po","mv","mx","cn","ld","tn","ay","gv","bs","vf","da","ss","km","uo","mg","wv","md","lo","nc","vh","li","jh","lj","qq","ci","ob","zy","pu","bl","jm","ge","tt","ov","ue","vp","ka","nh","uc","gb","rs","gu","hm","uv","nq","ga","qu","hr","pj","zq","rh","nn","yv","or","zg","ai","qj","cv","vg","hr","zm","al","mj","fz","yx","st","tt","ih","vm","wq","gx","wi","ys","ug","vb","uh","rf","ry","ba","xu","ce","eq","bx","he","jm","ie","nb","cd","qz","no","yq","qe","jy","wd","pm","nb","hk","em","im","iv","ld","gz","fe","ut","md","gw","sf","yz","yp","xr","gm","uo","kg","yo","wv","da","wt","ry","it","gz","mm","ho","mf","lq","tu","im","lu","gm","pa","ny","gu","ds","yx","yh","jk","qb","jv","mp","bi","nr","mc","bg","ym","zt","sh","kd","gj","dp","qw","eh","no","pj","nq","dy","gt","cm","pg","ce","jt","xv","tf","ue","ke","hs","xh","tc","ad","yg","uh","cd","zc","rj","kq","sp","vv","xt","bo","am","kg","kx","xb","fr","il","qi","ap","pe","tg","im","cs","vy","zu","cq","bu","og","tf","ze","zj","um","vd","ot","al","zl","um","jv","ss","md","xm","nv","id","es","jf","as","zb","ms","uv","jh","xz","em","uv","bk","zx","wp","ay","ub","pa","rf","yi","zm","em","pu","xs"],"isUnlisted":24,"hasYpcMetadata":38,"viewCount":"6","category":"qh","publishDate":"eb","ownerChannelName":"mf","uploadDate":"ax"}},"cards":{"cardCollectionRenderer":{"cards":[{"cardRenderer":{"teaser":{"simpleCardTeaserRenderer":{"message":{"simpleText":"ha"},"trackingParams":"ra","prominent":9,"logVisibilityUpdates":88,"onTapCommand":{"clickTrackingParams":"dy","changeEngagementPanelVisibilityAction":{"targetId":"qc","visibility":"mh"}}}},"cueRanges":[{"startCardActiveMs":"41","endCardActiveMs":"81","teaserDurationMs":"31","iconAfterTeaserMs":"65"}],"trackingParams":"sn"}}],"headerText":{"simpleText":"mi"},"icon":{"infoCardIconRenderer":{"trackingParams":"tq"}},"closeButton":{"infoCardIconRenderer":{"trackingParams":"nz"}},"trackingParams":"ss","allowTeaserDismiss":55,"logIconVisibilityUpdates":49}},"trackingParams":"lt","attestation":{"playerAttestationRenderer":{"challenge":"rg","botguardData":{"program":"vk","interpreterSafeUrl":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"ap"},"serverEnvironment":83}}},"videoQualityPromoSupportedRenderers":{"videoQualityPromoRenderer":{"triggerCriteria":{"connectionWhitelist":["vs"],"joinLatencySeconds":85,"rebufferTimeSeconds":89,"watchTimeWindowSeconds":21,"refractorySeconds":41},"text":{"runs":[{"text":"it"},{"text":"qt","bold":60}]},"endpoint":{"clickTrackingParams":"lw","commandMetadata":{"webCommandMetadata":{"url":"ih","webPageType":"xa","rootVe":73}},"urlEndpoint":{"url":"ms","target":"tj"}},"trackingParams":"vd","snackbar":{"notificationActionRenderer":{"responseText":{"runs":[{"text":"pp"}]},"actionButton":{"buttonRenderer":{"text":{"runs":[{"text":"yw"}]},"navigationEndpoint":{"clickTrackingParams":"sq","commandMetadata":{"webCommandMetadata":{"url":"wp","webPageType":"zn","rootVe":21}},"urlEndpoint":{"url":"ju","target":"dy"}},"trackingParams":"zj"}},"trackingParams":"nh"}}}},"messages":[{"mealbarPromoRenderer":{"icon":{"thumbnails":[{"url":"ek","width":71,"height":69}]},"messageTexts":[{"runs":[{"text":"ew"}]}],"actionButton":{"buttonRenderer":{"style":"gz","size":"tz","text":{"runs":[{"text":"ga"}]},"trackingParams":"qr","command":{"clickTrackingParams":"wk","commandExecutorCommand":{"commands":[{"clickTrackingParams":"dw","commandMetadata":{"webCommandMetadata":{"url":"po","webPageType":"fl","rootVe":70,"apiUrl":"ot"}},"browseEndpoint":{"browseId":"pl","params":"zo"}},{"commandMetadata":{"webCommandMetadata":{"sendPost":10,"apiUrl":"rv"}},"feedbackEndpoint":{"feedbackToken":"xi","uiActions":{"hideEnclosingContainer":25}}}]}}}},"dismissButton":{"buttonRenderer":{"style":"ol","size":"og","text":{"runs":[{"text":"yv"}]},"trackingParams":"ch","command":{"clickTrackingParams":"uu","commandExecutorCommand":{"commands":[{"clickTrackingParams":"ig","commandMetadata":{"webCommandMetadata":{"sendPost":71,"apiUrl":"en"}},"feedbackEndpoint":{"feedbackToken":"wh","uiActions":{"hideEnclosingContainer":45}}}]}}}},"triggerCondition":"pb","style":"uq","trackingParams":"rp","impressionEndpoints":[{"clickTrackingParams":"xb","commandMetadata":{"webCommandMetadata":{"sendPost":73,"apiUrl":"wl"}},"feedbackEndpoint":{"feedbackToken":"wf","uiActions":{"hideEnclosingContainer":95}}}],"isVisible":17,"messageTitle":{"runs":[{"text":"ir"}]},"enableSharedFeatureForImpressionHandling":21}}],"adPlacements":[{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"wd","adTimeOffset":{"offsetStartMilliseconds":"7","offsetEndMilliseconds":"39"},"hideCueRangeMarker":50}},"renderer":{"linearAdSequenceRenderer":{"linearAds":[{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"aj","width":46,"height":25}]},"trackingParams":"ye"},"trackingParams":"dq","templatedCountdown":{"templatedAdText":{"text":"ps","isTemplated":82,"trackingParams":"cc"}},"durationMilliseconds":44}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"xz","isTemplated":30,"trackingParams":"um"},"trackingParams":"ge"}},"trackingParams":"zg","skipOffsetMilliseconds":88}},"trackingParams":"qd","visitAdvertiserRenderer":{"buttonRenderer":{"style":"fv","text":{"simpleText":"on"},"icon":{"iconType":"vw"},"navigationEndpoint":{"clickTrackingParams":"mk","commandMetadata":{"webCommandMetadata":{"url":"sr","webPageType":"ry","rootVe":62}},"urlEndpoint":{"url":"lq","target":"wt"}},"trackingParams":"mh"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"kw","isTemplated":93,"trackingParams":"jg"},"trackingParams":"at"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"rl","isTemplated":73,"trackingParams":"le"}},"trackingParams":"tr"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"le","size":"nb","isDisabled":41,"serviceEndpoint":{"clickTrackingParams":"jt","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"as"},"trackingParams":"vy"}},"popupType":"xn"}},"icon":{"iconType":"vl"},"trackingParams":"lm","accessibilityData":{"accessibilityData":{"label":"qi"}}}},"hoverText":{"simpleText":"zk"},"trackingParams":"qa"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"pv"}]},"trackingParams":"jo"},"headline":{"text":"qx","isTemplated":10,"trackingParams":"um"},"description":{"text":"mf","trackingParams":"fe"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"kq"},"navigationEndpoint":{"clickTrackingParams":"cm","commandMetadata":{"webCommandMetadata":{"url":"wa","webPageType":"nq","rootVe":69}},"urlEndpoint":{"url":"ln","target":"nd"}},"trackingParams":"no"}},"startMs":45,"trackingParams":"ge"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"xd"},"elementId":"tc","inPlayerSlotId":"gg","inPlayerLayoutId":"cm"}},"trackingParams":"uy","layoutId":"ff","associatedPlayerBytesLayoutId":"dy"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"gv"}]},"trackingParams":"at"},"headline":{"text":"ow","isTemplated":66,"trackingParams":"za"},"description":{"text":"ds","isTemplated":95,"trackingParams":"fc"},"actionButton":{"buttonRenderer":{"style":"ys","text":{"simpleText":"aq"},"navigationEndpoint":{"clickTrackingParams":"vu","commandMetadata":{"webCommandMetadata":{"url":"zn","webPageType":"jv","rootVe":38}},"urlEndpoint":{"url":"df","target":"xe"}},"trackingParams":"za"}},"durationMilliseconds":44,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"xg"}},"navigationEndpoint":{"clickTrackingParams":"vg","loggingUrls":[{"baseUrl":"bc"}],"commandMetadata":{"webCommandMetadata":{"url":"sn","webPageType":"vb","rootVe":34}},"urlEndpoint":{"url":"ex","target":"nb"}},"trackingParams":"iw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"cm"}]},"trackingParams":"br"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"dj","commandExecutorCommand":{"commands":[{"clickTrackingParams":"li","loggingUrls":[{"baseUrl":"wa"}],"pingingEndpoint":{"hack":0}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"jg","isTemplated":95,"trackingParams":"by"},"trackingParams":"kl"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"kt"},"layoutId":"cv","inPlayerSlotId":"qt","inPlayerLayoutId":"yy","associatedPlayerBytesLayoutId":"dx"}},{"instreamVideoAdRenderer":{"playerOverlay":{"instreamAdPlayerOverlayRenderer":{"skipOrPreviewRenderer":{"skipAdRenderer":{"preskipRenderer":{"adPreviewRenderer":{"thumbnail":{"thumbnail":{"thumbnails":[{"url":"pz","width":32,"height":43}]},"trackingParams":"iz"},"trackingParams":"yo","templatedCountdown":{"templatedAdText":{"text":"we","isTemplated":91,"trackingParams":"si"}},"durationMilliseconds":10}},"skippableRenderer":{"skipButtonRenderer":{"message":{"text":"bp","isTemplated":93,"trackingParams":"mo"},"trackingParams":"cp"}},"trackingParams":"qr","skipOffsetMilliseconds":60}},"trackingParams":"zf","visitAdvertiserRenderer":{"buttonRenderer":{"style":"ya","text":{"simpleText":"fv"},"icon":{"iconType":"bx"},"navigationEndpoint":{"clickTrackingParams":"bw","commandMetadata":{"webCommandMetadata":{"url":"ht","webPageType":"gv","rootVe":14}},"urlEndpoint":{"url":"wi","target":"te"}},"trackingParams":"gr"}},"adBadgeRenderer":{"simpleAdBadgeRenderer":{"text":{"text":"ox","isTemplated":66,"trackingParams":"td"},"trackingParams":"ng"}},"adDurationRemaining":{"adDurationRemainingRenderer":{"templatedCountdown":{"templatedAdText":{"text":"zu","isTemplated":15,"trackingParams":"py"}},"trackingParams":"hb"}},"adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"vn","size":"cw","isDisabled":56,"serviceEndpoint":{"clickTrackingParams":"jh","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"zx"},"trackingParams":"yl"}},"popupType":"tw"}},"icon":{"iconType":"ar"},"trackingParams":"vi","accessibilityData":{"accessibilityData":{"label":"hy"}}}},"hoverText":{"simpleText":"ap"},"trackingParams":"pp"}},"flyoutCtaRenderer":{"flyoutCtaRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"ol"}]},"trackingParams":"kz"},"headline":{"text":"wa","isTemplated":43,"trackingParams":"yb"},"description":{"text":"cl","trackingParams":"aq"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"xg"},"navigationEndpoint":{"clickTrackingParams":"wp","commandMetadata":{"webCommandMetadata":{"url":"uh","webPageType":"bs","rootVe":44}},"urlEndpoint":{"url":"xq","target":"fi"}},"trackingParams":"fo"}},"startMs":5,"trackingParams":"kh"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"ir"},"elementId":"mp","inPlayerSlotId":"fh","inPlayerLayoutId":"bh"}},"trackingParams":"ao","layoutId":"gc","associatedPlayerBytesLayoutId":"up"}},{"adActionInterstitialRenderer":{"image":{"thumbnail":{"thumbnails":[{"url":"wj"}]},"trackingParams":"zr"},"headline":{"text":"rq","isTemplated":82,"trackingParams":"gr"},"description":{"text":"fj","isTemplated":57,"trackingParams":"li"},"actionButton":{"buttonRenderer":{"style":"mu","text":{"simpleText":"cg"},"navigationEndpoint":{"clickTrackingParams":"eb","commandMetadata":{"webCommandMetadata":{"url":"vn","webPageType":"nw","rootVe":96}},"urlEndpoint":{"url":"bs","target":"dr"}},"trackingParams":"iq"}},"durationMilliseconds":39,"countdownRenderer":{"timedPieCountdownRenderer":{"trackingParams":"mt"}},"navigationEndpoint":{"clickTrackingParams":"uz","loggingUrls":[{"baseUrl":"rn"}],"commandMetadata":{"webCommandMetadata":{"url":"cu","webPageType":"qs","rootVe":26}},"urlEndpoint":{"url":"ty","target":"he"}},"trackingParams":"bw","backgroundImage":{"thumbnail":{"thumbnails":[{"url":"pd"}]},"trackingParams":"wm"},"adRendererCommands":{"impressionCommand":{"clickTrackingParams":"io","commandExecutorCommand":{"commands":[{"clickTrackingParams":"hd","loggingUrls":[{"baseUrl":"hz"}],"pingingEndpoint":{"hack":81}}]}}},"skipButton":{"skipButtonRenderer":{"message":{"text":"db","isTemplated":42,"trackingParams":"ga"},"trackingParams":"pa"}},"adLayoutLoggingData":{"serializedAdServingDataEntry":"bt"},"layoutId":"ec","inPlayerSlotId":"nl","inPlayerLayoutId":"qh","associatedPlayerBytesLayoutId":"qe"}}]}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"rj"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"zf","adTimeOffset":{"offsetStartMilliseconds":"63","offsetEndMilliseconds":"83"},"hideCueRangeMarker":84}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"59","getAdBreakUrl":"as"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"we"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"ie","adTimeOffset":{"offsetStartMilliseconds":"94","offsetEndMilliseconds":"35"},"hideCueRangeMarker":74}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"0","getAdBreakUrl":"as"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"we"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"xx","adTimeOffset":{"offsetStartMilliseconds":"65","offsetEndMilliseconds":"30"},"hideCueRangeMarker":70}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"51","getAdBreakUrl":"ea"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wg"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"tl","adTimeOffset":{"offsetStartMilliseconds":"56","offsetEndMilliseconds":"86"},"hideCueRangeMarker":4}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"25","getAdBreakUrl":"zr"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nh"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"dg","adTimeOffset":{"offsetStartMilliseconds":"25","offsetEndMilliseconds":"13"},"hideCueRangeMarker":49}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"32","getAdBreakUrl":"rt"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ti"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"va","adTimeOffset":{"offsetStartMilliseconds":"47","offsetEndMilliseconds":"84"},"hideCueRangeMarker":90}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"10","getAdBreakUrl":"jp"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"go"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"ji","adTimeOffset":{"offsetStartMilliseconds":"14","offsetEndMilliseconds":"87"},"hideCueRangeMarker":31}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"79","getAdBreakUrl":"ia"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wi"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"fx","adTimeOffset":{"offsetStartMilliseconds":"34","offsetEndMilliseconds":"12"},"hideCueRangeMarker":34}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"27","getAdBreakUrl":"ip"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"fp"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"gb","adTimeOffset":{"offsetStartMilliseconds":"66","offsetEndMilliseconds":"35"},"hideCueRangeMarker":25}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"98","getAdBreakUrl":"bv"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"cn"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"zd","adTimeOffset":{"offsetStartMilliseconds":"59","offsetEndMilliseconds":"8"},"hideCueRangeMarker":63}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"26","getAdBreakUrl":"os"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wz"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"kq","adTimeOffset":{"offsetStartMilliseconds":"96","offsetEndMilliseconds":"37"},"hideCueRangeMarker":25}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"13","getAdBreakUrl":"st"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"es"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"eo","adTimeOffset":{"offsetStartMilliseconds":"88","offsetEndMilliseconds":"54"},"hideCueRangeMarker":61}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"77","getAdBreakUrl":"yj"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"wm"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"xs","adTimeOffset":{"offsetStartMilliseconds":"84","offsetEndMilliseconds":"90"},"hideCueRangeMarker":73}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"92","getAdBreakUrl":"py"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"nl"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"wo","adTimeOffset":{"offsetStartMilliseconds":"50","offsetEndMilliseconds":"67"},"hideCueRangeMarker":19}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"96","getAdBreakUrl":"nc"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ov"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"gf","adTimeOffset":{"offsetStartMilliseconds":"13","offsetEndMilliseconds":"2"},"hideCueRangeMarker":60}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"52","getAdBreakUrl":"sj"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"by"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"ar","adTimeOffset":{"offsetStartMilliseconds":"73","offsetEndMilliseconds":"64"},"hideCueRangeMarker":75}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"67","getAdBreakUrl":"cq"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"uc"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"jl","adTimeOffset":{"offsetStartMilliseconds":"32","offsetEndMilliseconds":"30"},"hideCueRangeMarker":52}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"65","getAdBreakUrl":"dx"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"su"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"wt","adTimeOffset":{"offsetStartMilliseconds":"10","offsetEndMilliseconds":"zo"},"hideCueRangeMarker":61}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"22","getAdBreakUrl":"gm"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"en"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"ro","adTimeOffset":{"offsetStartMilliseconds":"uc","offsetEndMilliseconds":"qv"},"hideCueRangeMarker":64}},"renderer":{"adBreakServiceRenderer":{"prefetchMilliseconds":"17","getAdBreakUrl":"po"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"uv"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"ha"}},"renderer":{"actionCompanionAdRenderer":{"headline":{"text":"eg","isTemplated":93,"trackingParams":"it"},"description":{"text":"ux","isTemplated":43,"trackingParams":"sj"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"de"},"navigationEndpoint":{"clickTrackingParams":"ex","commandMetadata":{"webCommandMetadata":{"url":"ue","webPageType":"ow","rootVe":77}},"urlEndpoint":{"url":"yh","target":"pg"}},"trackingParams":"xf"}},"iconImage":{"thumbnail":{"thumbnails":[{"url":"te","width":19,"height":23}]},"trackingParams":"lv"},"bannerImage":{"thumbnail":{"thumbnails":[{"url":"gj","width":38,"height":67}]},"trackingParams":"ow"},"navigationEndpoint":{"clickTrackingParams":"um","commandMetadata":{"webCommandMetadata":{"url":"fq","webPageType":"fd","rootVe":61}},"urlEndpoint":{"url":"gi","target":"tq"}},"trackingParams":"ie","adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"ng","size":"xv","isDisabled":53,"icon":{"iconType":"bq"},"navigationEndpoint":{"clickTrackingParams":"yl","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"po"},"trackingParams":"hi"}},"popupType":"sb"}},"trackingParams":"ho","accessibilityData":{"accessibilityData":{"label":"kl"}}}},"hoverText":{"simpleText":"xd"},"trackingParams":"dv"}},"adVideoId":"je","impressionPings":[{"baseUrl":"xj"}],"adLayoutLoggingData":{"serializedAdServingDataEntry":"dt"},"associatedCompositePlayerBytesLayoutId":"te"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"vs"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"ht"}},"renderer":{"actionCompanionAdRenderer":{"headline":{"text":"ke","isTemplated":53,"trackingParams":"wv"},"description":{"text":"ux","isTemplated":40,"trackingParams":"nu"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"jj"},"navigationEndpoint":{"clickTrackingParams":"sc","commandMetadata":{"webCommandMetadata":{"url":"js","webPageType":"fw","rootVe":47}},"urlEndpoint":{"url":"iy","target":"pv"}},"trackingParams":"gr"}},"iconImage":{"thumbnail":{"thumbnails":[{"url":"mb","width":73,"height":1}]},"trackingParams":"ut"},"bannerImage":{"thumbnail":{"thumbnails":[{"url":"ae","width":2,"height":12}]},"trackingParams":"qk"},"navigationEndpoint":{"clickTrackingParams":"il","commandMetadata":{"webCommandMetadata":{"url":"hb","webPageType":"zl","rootVe":50}},"urlEndpoint":{"url":"sl","target":"oo"}},"trackingParams":"up","adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"ef","size":"yh","isDisabled":35,"icon":{"iconType":"xj"},"navigationEndpoint":{"clickTrackingParams":"xc","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"zx"},"trackingParams":"dc"}},"popupType":"sb"}},"trackingParams":"eb","accessibilityData":{"accessibilityData":{"label":"zq"}}}},"hoverText":{"simpleText":"je"},"trackingParams":"ee"}},"adVideoId":"zc","impressionPings":[{"baseUrl":"vz"}],"adLayoutLoggingData":{"serializedAdServingDataEntry":"py"},"associatedCompositePlayerBytesLayoutId":"ms"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"tu"}}},{"adPlacementRenderer":{"config":{"adPlacementConfig":{"kind":"ms"}},"renderer":{"actionCompanionAdRenderer":{"headline":{"text":"wo","isTemplated":87,"trackingParams":"bi"},"description":{"text":"yw","isTemplated":10,"trackingParams":"vd"},"actionButton":{"buttonRenderer":{"text":{"simpleText":"jq"},"navigationEndpoint":{"clickTrackingParams":"jd","commandMetadata":{"webCommandMetadata":{"url":"xx","webPageType":"fw","rootVe":39}},"urlEndpoint":{"url":"bx","target":"ja"}},"trackingParams":"vo"}},"iconImage":{"thumbnail":{"thumbnails":[{"url":"xo","width":4,"height":95}]},"trackingParams":"ig"},"bannerImage":{"thumbnail":{"thumbnails":[{"url":"qu","width":46,"height":42}]},"trackingParams":"du"},"navigationEndpoint":{"clickTrackingParams":"fd","commandMetadata":{"webCommandMetadata":{"url":"vx","webPageType":"bq","rootVe":77}},"urlEndpoint":{"url":"ub","target":"nb"}},"trackingParams":"kt","adInfoRenderer":{"adHoverTextButtonRenderer":{"button":{"buttonRenderer":{"style":"gg","size":"ci","isDisabled":16,"icon":{"iconType":"zn"},"navigationEndpoint":{"clickTrackingParams":"lb","openPopupAction":{"popup":{"aboutThisAdRenderer":{"url":{"privateDoNotAccessOrElseTrustedResourceUrlWrappedValue":"pw"},"trackingParams":"ac"}},"popupType":"hx"}},"trackingParams":"im","accessibilityData":{"accessibilityData":{"label":"sa"}}}},"hoverText":{"simpleText":"yl"},"trackingParams":"ez"}},"adVideoId":"bb","impressionPings":[{"baseUrl":"ba"}],"adLayoutLoggingData":{"serializedAdServingDataEntry":"wb"},"isContentVideoCompanion":1,"associatedCompositePlayerBytesLayoutId":"tm"}},"adSlotLoggingData":{"serializedSlotAdServingDataEntry":"xc"}}}],"adSlots":[{"adSlotRenderer":{"adSlotMetadata":{"slotId":"bb","slotType":"di","adSlotLoggingData":{"serializedSlotAdServingDataEntry":"ob"},"triggerEvent":"fh"},"fulfillmentContent":{"fulfilledLayout":{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"ot","layoutType":"xg","adLayoutLoggingData":{"serializedAdServingDataEntry":"yk"}},"renderingContent":{"playerBytesSequentialLayoutRenderer":{"sequentialLayouts":[{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"je","layoutType":"ww","adLayoutLoggingData":{"serializedAdServingDataEntry":"ve"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":94,"pings":{"impressionPings":[{"baseUrl":"pl"},{"baseUrl":"zs"}],"errorPings":[{"baseUrl":"hh"}],"mutePings":[{"baseUrl":"qh"}],"unmutePings":[{"baseUrl":"ey"}],"pausePings":[{"baseUrl":"pz"}],"rewindPings":[{"baseUrl":"bh"}],"resumePings":[{"baseUrl":"mw"}],"skipPings":[{"baseUrl":"si"}],"closePings":[{"baseUrl":"oh"}],"progressPings":[{"baseUrl":"ly","offsetMilliseconds":1},{"baseUrl":"ac","offsetMilliseconds":80},{"baseUrl":"sy","offsetMilliseconds":72}],"fullscreenPings":[{"baseUrl":"kw"}],"activeViewViewablePings":[{"baseUrl":"oz"}],"endFullscreenPings":[{"baseUrl":"uc"}],"activeViewMeasurablePings":[{"baseUrl":"vu"}],"abandonPings":[{"baseUrl":"sf"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"qg"}],"completePings":[{"baseUrl":"jv"}],"activeViewTracking":{"trafficType":"sq"}},"clickthroughEndpoint":{"clickTrackingParams":"fn","commandMetadata":{"webCommandMetadata":{"url":"tf","webPageType":"ox","rootVe":73}},"urlEndpoint":{"url":"ny","target":"uc"}},"csiParameters":[{"key":"qe","value":"em"}],"playerVars":"js","elementId":"bq","trackingParams":"dr","legacyInfoCardVastExtension":"pa","sodarExtensionData":{"siub":"mi","bgub":"hc","scs":"cw","bgp":"co"},"externalVideoId":"ya","adLayoutLoggingData":{"serializedAdServingDataEntry":"jj"},"layoutId":"sc"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nr","layoutType":"kn","adLayoutLoggingData":{"serializedAdServingDataEntry":"cf"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":52,"trackingParams":"yq","abandonCommands":{"commands":[{"clickTrackingParams":"wi","loggingUrls":[{"baseUrl":"jb"}],"pingingEndpoint":{"hack":90}}]},"skipPings":[{"baseUrl":"av"}],"layoutId":"nj"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"nl","layoutType":"wm","adLayoutLoggingData":{"serializedAdServingDataEntry":"zw"}},"renderingContent":{"instreamVideoAdRenderer":{"skipOffsetMilliseconds":80,"pings":{"impressionPings":[{"baseUrl":"ji"},{"baseUrl":"ao"},{"baseUrl":"cc"}],"errorPings":[{"baseUrl":"jt"}],"mutePings":[{"baseUrl":"mn"},{"baseUrl":"ce"}],"unmutePings":[{"baseUrl":"rd"},{"baseUrl":"lb"}],"pausePings":[{"baseUrl":"et"},{"baseUrl":"fv"}],"rewindPings":[{"baseUrl":"ft"}],"resumePings":[{"baseUrl":"qj"},{"baseUrl":"ot"}],"skipPings":[{"baseUrl":"ky"},{"baseUrl":"jb"}],"closePings":[{"baseUrl":"hw"}],"progressPings":[{"baseUrl":"vh","offsetMilliseconds":36},{"baseUrl":"um","offsetMilliseconds":77},{"baseUrl":"sq","offsetMilliseconds":19},{"baseUrl":"ui","offsetMilliseconds":15},{"baseUrl":"nl","offsetMilliseconds":86}],"fullscreenPings":[{"baseUrl":"rp"},{"baseUrl":"cn"}],"activeViewViewablePings":[{"baseUrl":"ml"},{"baseUrl":"kq"}],"endFullscreenPings":[{"baseUrl":"ym"}],"activeViewMeasurablePings":[{"baseUrl":"di"},{"baseUrl":"ol"}],"abandonPings":[{"baseUrl":"aj"},{"baseUrl":"wo"}],"activeViewFullyViewableAudibleHalfDurationPings":[{"baseUrl":"ms"},{"baseUrl":"uj"}],"startPings":[{"baseUrl":"gy"}],"firstQuartilePings":[{"baseUrl":"ly"}],"secondQuartilePings":[{"baseUrl":"sw"}],"thirdQuartilePings":[{"baseUrl":"gt"}],"completePings":[{"baseUrl":"hu"},{"baseUrl":"gs"}],"activeViewTracking":{"trafficType":"mr"}},"clickthroughEndpoint":{"clickTrackingParams":"yq","commandMetadata":{"webCommandMetadata":{"url":"dn","webPageType":"ms","rootVe":54}},"urlEndpoint":{"url":"hs","target":"jt"}},"csiParameters":[{"key":"zn","value":"eq"}],"playerVars":"bi","elementId":"gr","trackingParams":"qc","legacyInfoCardVastExtension":"xv","sodarExtensionData":{"siub":"ul","bgub":"yr","scs":"ui","bgp":"vy"},"externalVideoId":"fp","adLayoutLoggingData":{"serializedAdServingDataEntry":"gt"},"layoutId":"bh"}}}},{"playerBytesAdLayoutRenderer":{"adLayoutMetadata":{"layoutId":"xy","layoutType":"bf","adLayoutLoggingData":{"serializedAdServingDataEntry":"rj"}},"renderingContent":{"adActionInterstitialRenderer":{"durationMilliseconds":95,"trackingParams":"ee","abandonCommands":{"commands":[{"clickTrackingParams":"mi","loggingUrls":[{"baseUrl":"yi"},{"baseUrl":"tm"}],"pingingEndpoint":{"hack":47}}]},"skipPings":[{"baseUrl":"uk"},{"baseUrl":"yj"}],"layoutId":"ft"}}}}]}},"layoutExitNormalTriggers":[{"id":"hq","onLayoutSelfExitRequestedTrigger":{"triggeringLayoutId":"hv"}}],"layoutExitSkipTriggers":[{"id":"up","skipRequestedTrigger":{"triggeringLayoutId":"nm"}},{"id":"yl","skipRequestedTrigger":{"triggeringLayoutId":"gh"}},{"id":"zd","skipRequestedTrigger":{"triggeringLayoutId":"mo"}},{"id":"bc","skipRequestedTrigger":{"triggeringLayoutId":"jj"}}],"layoutExitMuteTriggers":[{"id":"ql","skipRequestedTrigger":{"triggeringLayoutId":"hr"}},{"id":"rc","skipRequestedTrigger":{"triggeringLayoutId":"ln"}}]}}},"slotEntryTrigger":{"id":"lc","beforeContentVideoIdStartedTrigger":{}},"slotFulfillmentTriggers":[{"id":"xq","slotIdEnteredTrigger":{"triggeringSlotId":"da"}}],"slotExpirationTriggers":[{"id":"vv","slotIdExitedTrigger":{"triggeringSlotId":"re"}},{"id":"jg","onNewPlaybackAfterContentVideoIdTrigger":{}}]}}],"adBreakHeartbeatParams":"mw","frameworkUpdates":{"entityBatchUpdate":{"mutations":[{"entityKey":"pz","type":"az","payload":{"offlineabilityEntity":{"key":"ql","command":{"innertubeCommand":{"clickTrackingParams":"nz","ypcGetOfflineUpsellEndpoint":{"params":"pw"}}},"addToOfflineButtonState":"os","contentCheckOk":false,"racyCheckOk":false,"loggingDirectives":{"trackingParams":"xp","visibility":{"types":"1"},"enableDisplayloggerExperiment":true}}}}],"timestamp":{"seconds":"19","nanos":12}}}}}',
objectRepresentation:{playerResponse:Ugb}}];var $2={},exa=($2["b.f_"]=lxa,$2["j.s_"]=hxa,$2["r.s_"]=jxa,$2["e.h_"]=kxa,$2["i.s_"]=mxa,$2["p.h_"]=function(){return 2},$2["s.t_"]=nxa,$2["s.i_"]=ixa,$2);var sxa=["APP_STATE","PI"];xI.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f=new XMLHttpRequest;f.onerror=function(){e(d.handleResponse(a,f.status,f.response))};
f.onload=function(){e(d.handleResponse(a,f.status,f.response))};
if(null==c?0:c.rA)f.onreadystatechange=function(p){c.rA(f,p)};
var h;f.open(null!=(h=b.method)?h:"GET",a,!0);f.responseType="text";f.withCredentials=!0;if(b.headers){h=g.u(Object.entries(b.headers));for(var l=h.next();!l.done;l=h.next()){var m=g.u(l.value);l=m.next().value;m=m.next().value;f.setRequestHeader(l,m)}}var n;f.send(null!=(n=b.body)?n:null)})};
xI.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.UF(new g.nD("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.UF(new g.nD("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};g.k=zxa.prototype;g.k.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterUrl)?d:null;if(a.interpreterSafeScript)d=tba(a.interpreterSafeScript.privateDoNotAccessOrElseSafeScriptWrappedValue||"");else{var f;d=null!=(f=a.interpreterScript)?f:null}a.interpreterSafeUrl&&(e=a.interpreterSafeUrl,g.Vd("From proto message. b/166824318"),e=Zd(e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());Bxa(this,d,e,a.program,b,c)}else g.UF(Error("Cannot initialize botguard without program"))};
g.k.isInitialized=function(){return this.KF()};
g.k.getState=function(){return this.state};
g.k.isLoading=function(){return 2===this.state};
g.k.invoke=function(a){a=void 0===a?{}:a;return this.KF()?this.M_({Ry:a}):null};
g.k.dispose=function(){this.dR(null);this.Gc(8)};
g.k.KF=function(){return!!this.j};
g.k.L_=function(a){return this.j.snapshot(a)};
g.k.M_=function(a){return this.j.JZ(a)};
g.k.dR=function(a){g.sb(this.j);this.j=a};
g.k.Gc=function(a){this.state=a};var Exa=[],Dxa=!1;g.w(AI,zxa);AI.prototype.dR=function(a){var b;null==(b=zI())||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.JZ.bind(a)},g.Sa("yt.abuse.playerAttLoader",b),g.Sa("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(g.Sa("yt.abuse.playerAttLoader",null),g.Sa("yt.abuse.playerAttLoaderRun",null))};
AI.prototype.KF=function(){return!!zI()};
AI.prototype.L_=function(a){return zI().bgvmb(a)};
AI.prototype.M_=function(a){return zI().bgvmc(a)};BI.prototype.Bq=function(){return"muteAdEndpoint"};
BI.prototype.handle=function(a){switch(a.type){case "SKIP":Hxa(this.tj,this.Xk)}};
BI.prototype.Kv=function(a,b){switch(a.type){case "SKIP":Hxa(this.tj,this.Xk,b)}};CI.prototype.Bq=function(){return"openPopupAction"};
CI.prototype.handle=function(){};
CI.prototype.Kv=function(a){this.handle(a)};DI.prototype.Bq=function(){return"pingingEndpoint"};
DI.prototype.handle=function(){};
DI.prototype.Kv=function(a){this.handle(a)};var Qxa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.w(GI,g.J);GI.prototype.Ba=function(){this.Ef.clear();g.J.prototype.Ba.call(this)};
GI.prototype.gh=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a=g.u(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
GI.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&Rxa(this,"loggingUrls",a.loggingUrls,b,c);a=g.u(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?Nxa(this,e):"confirmDialogEndpoint"===d?Oxa(this,e):Qxa.hasOwnProperty(d)||Rxa(this,d,e,b,c)}};var Oab={Naa:"FINAL",W_:"AD_BREAK_LENGTH",Efa:"AD_CPN",Lfa:"AH",Pfa:"AD_MT",Sfa:"ASR",Wfa:"AW",Koa:"NM",Loa:"NX",Moa:"NY",j0:"CONN",Hpa:"CPN",nsa:"DV_VIEWABILITY",hta:"ERRORCODE",rta:"ERROR_MSG",uta:"EI",z0:"GOOGLE_VIEWABILITY",tCa:"IAS_VIEWABILITY",DFa:"LACT",S2:"LIVE_TARGETING_CONTEXT",lLa:"I_X",mLa:"I_Y",HNa:"MT",VNa:"MIDROLL_POS",WNa:"MIDROLL_POS_MS",uOa:"MOAT_INIT",vOa:"MOAT_VIEWABILITY",b3:"P_H",sVa:"PV_H",tVa:"PV_W",d3:"P_W",MVa:"TRIGGER_TYPE",DYa:"SDKV",g3:"SLOT_POS",S4a:"SURVEY_LOCAL_TIME_EPOCH_S",
R4a:"SURVEY_ELAPSED_MS",s3:"VIS",gbb:"VIEWABILITY",nbb:"VED",t3:"VOL",qbb:"WT",u3:"YT_ERROR_CODE"};II.prototype.Bq=function(){return"urlEndpoint"};
II.prototype.handle=function(){g.TF(Error("The deprecated handle method is called for url_endpoint_handler."))};
II.prototype.Kv=function(a,b,c){var d=this.Ra.get(),e=Gza(d.B.get(),b);e?b=EK(d,Hza(e),e,void 0,void 0,c):(ZG("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});b=Object.assign({},b);xN(this.O9,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(c=this.Tn.Kf(2))&&(b.AD_CPN=c.clientPlaybackNonce);a=g.Qt(a.url,b);"1"===(new g.go(a)).B.get("ase")?g.uH(a,void 0,void 0,a+"&asr=1"):g.uH(a)};JI.prototype.get=function(){return this.value};
g.w(KI,JI);KI.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.w(Sxa,JI);Sxa.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.w(LI,JI);LI.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.w(MI,JI);MI.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.w(Txa,JI);Txa.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.w(Uxa,JI);Uxa.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.w(Vxa,JI);Vxa.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.w(Wxa,JI);Wxa.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.w(Xxa,JI);Xxa.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.w(NI,JI);NI.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.w(OI,JI);OI.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.w(PI,JI);PI.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.w(QI,JI);QI.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.w(RI,JI);RI.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.w(SI,JI);SI.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.w(TI,JI);TI.prototype.getType=function(){return"metadata_type_content_cpn"};
g.w(UI,JI);UI.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.w(VI,JI);VI.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"};
g.w(WI,JI);WI.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.w(XI,JI);XI.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.w(Yxa,JI);Yxa.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.w(YI,JI);YI.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.w(Zxa,JI);Zxa.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.w($xa,JI);$xa.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.w(aya,JI);aya.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.w(bya,JI);bya.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.w(ZI,JI);ZI.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.w($I,JI);$I.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.w(aJ,JI);aJ.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.w(cya,JI);cya.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.w(bJ,JI);bJ.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.w(cJ,JI);cJ.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.w(dJ,JI);dJ.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.w(dya,JI);dya.prototype.getType=function(){return"metadata_type_cue_point"};
g.w(eJ,JI);eJ.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.w(fJ,JI);fJ.prototype.getType=function(){return"metadata_type_player_vars"};
g.w(gJ,JI);gJ.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.w(hJ,JI);hJ.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.w(iJ,JI);iJ.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.w(jJ,JI);jJ.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.w(kJ,JI);kJ.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.w(lJ,JI);lJ.prototype.getType=function(){return"metadata_type_dai"};
g.w(mJ,JI);mJ.prototype.getType=function(){return"metadata_type_ad_intro"};
g.w(eya,JI);eya.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.w(nJ,JI);nJ.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.w(oJ,JI);oJ.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.w(pJ,JI);pJ.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.w(fya,JI);fya.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.w(qJ,JI);qJ.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.w(rJ,JI);rJ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.w(sJ,JI);sJ.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.w(tJ,JI);tJ.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.w(gya,JI);gya.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.w(uJ,JI);uJ.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.w(vJ,JI);vJ.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.w(hya,JI);hya.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.w(wJ,JI);wJ.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.w(iya,JI);iya.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};
g.w(xJ,JI);xJ.prototype.getType=function(){return"metadata_type_eligible_for_ssap"};
g.w(jya,JI);jya.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};var Eya=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var Pya=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
"trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.w(BJ,vb);g.w(CJ,vb);new Promise(function(){});var nya=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),lya=new Map([["normal",{Nw:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Zw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Nw:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Zw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{Nw:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Zw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Nw:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Zw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Nw:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Zw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Nw:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Zw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{Nw:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Zw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.w(tya,g.J);g.k=tya.prototype;g.k.DN=function(a,b){return this.j.DN(a,b)};
g.k.Wi=function(a,b){this.pc.j("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.u(this.Oe),d=c.next();!d.done;d=c.next())d.value.Wi(a,b)};
g.k.Xg=function(a){if(NJ(this.j,a)){WJ(this.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.Xg(a);for(var b=g.u(this.Oe),c=b.next();!c.done;c=b.next())c.value.Xg(a);wya(this,a)}};
g.k.Yg=function(a){if(NJ(this.j,a)){WJ(this.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.Yg(a);for(var b=g.u(this.Oe),c=b.next();!c.done;c=b.next())c.value.Yg(a);NJ(this.j,a)&&OJ(this.j,a).G&&MJ(this,a,!1)}};
g.k.YI=function(a){WJ(this.pc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);NJ(this.j,a)&&(this.j.YI(a),MJ(this,a,!1))};
g.k.Oc=function(a,b){if(NJ(this.j,a)){PJ(this.pc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.u(this.Oe),d=c.next();!d.done;d=c.next())d.value.Oc(a,b)}};
g.k.bd=function(a,b,c){if(NJ(this.j,a)){PJ(this.pc,mya(c),a,b);this.j.bd(a,b);for(var d=g.u(this.Oe),e=d.next();!e.done;e=d.next())e.value.bd(a,b,c);(c=ZJ(this.j,a))&&b.layoutId===c.layoutId&&Lya(this,a,!1)}};
g.k.Cf=function(a,b,c,d){c.Dk&&d?(ZG(c,a,b,void 0,c.Ru),LJ(this.pc,d,c.Dk,a,b)):ZG("adsClientErrorMessage is missing.",a,b);MJ(this,a,!0)};
g.k.Ba=function(){var a=Oya(this.j);a=g.u(a);for(var b=a.next();!b.done;b=a.next())MJ(this,b.value,!1);g.J.prototype.Ba.call(this)};
g.k.Rh=function(a,b){PJ(this.pc,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",a,b);PJ(this.pc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",a,b);for(var c=g.u(this.Oe),d=c.next();!d.done;d=c.next())d=d.value,b&&d.Rh(a,b)};Mya.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.w(Nya,g.J);g.k=Nya.prototype;g.k.DN=function(a,b){b=YJ(this,a+"_"+b);a=[];b=g.u(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.Yi=function(a){a=OJ(this,a);"not_scheduled"!==a.j&&$J(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.k.QC=function(a){a=OJ(this,a);a.D="fill_requested";a.S.QC()};
g.k.Xg=function(a){a=OJ(this,a);"enter_requested"!==a.j&&$J(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.k.YI=function(a){OJ(this,a).D="fill_canceled"};
g.k.Yg=function(a){a=OJ(this,a);"exit_requested"!==a.j&&$J(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.k.bd=function(a,b){a=OJ(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&$J(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.w(Tya,g.J);Tya.prototype.get=function(){this.isDisposed()&&ZG("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.j());return this.instance};g.w(Vya,g.J);Vya.prototype.C=function(){return this.j};dK.prototype.executeCommand=function(a,b){HI(this.j(),a,b)};
dK.prototype.gh=function(a,b){Ixa(this.j(),a,b)};fK.prototype.addListener=function(a){this.listeners.add(a)};
fK.prototype.removeListener=function(a){this.listeners.delete(a)};var a3={},nK=(a3.AD_MARKER="ytp-ad-progress",a3.CHAPTER_MARKER="ytp-chapter-marker",a3.TIME_MARKER="ytp-time-marker",a3);var t$a=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),aza=RegExp("^http://0\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.l2gfe\\.[a-z0-9_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?/|^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://((?:uytfe\\.corp|dev-uytfe\\.corp|uytfe\\.sandbox)\\.google\\.com/|([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-release-qa)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/|m?web-ppg\\.corp\\.google\\.com/)"),
u$a=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),iza=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),
gza=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),dza=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us)\\.googleusercontent)|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|(photos\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"),
v$a=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),eza=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),cza=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us)\\.googleusercontent)|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|(photos\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
zOa=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"),
yOa=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.google\\.com/culturalinstitute/manage/.*$|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|books\\.googleusercontent\\.com|play\\-books\\-autopush\\-sandbox\\.googleusercontent\\.com|play\\-books\\-canary\\-sandbox\\.googleusercontent\\.com|play\\-books\\-internal\\-sandbox\\.googleusercontent\\.com|play\\-books\\-staging\\-sandbox\\.googleusercontent\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|stadia\\.google\\.com|artsandculture\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"),
Vgb=RegExp("^(https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://stadia\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|canary|internal|staging)-sandbox)\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.oK.prototype.getId=function(){return this.id};
g.oK.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+mza(this.start)+", "+mza(this.end)+"]"};
g.oK.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a===this.end&&this.start===this.end)&&(null==b||a<b&&b<=this.end)};
var lza=1;g.oK.prototype.getId=g.oK.prototype.getId;pza.prototype.QC=function(){var a=this,b=0;Zya(this.j,function(){var c=EJ(a.slot.Ea,"metadata_type_ad_break_request_data");b=Date.now();a.Ra.get().wi("abrs","ct."+b+";cmt."+a.Ka.get().getCurrentTimeSec(1,!1)+";sid."+a.slot.slotId+";");return a.Vf.get().fetch({D_:c.getAdBreakUrl,eV:new g.oK(c.yQ,c.xQ),QG:EJ(a.slot.Ea,"metadata_type_cue_point"),cueProcessedMs:c.cueProcessedMs})},function(){qza(a)},function(c){var d=Date.now()-b;
a.Ra.get().wi("abrr","ct."+(new Date).getTime()+";cmt."+a.Ka.get().getCurrentTimeSec(1,!1)+";l."+d.toString()+";sid."+a.slot.slotId+";");d=c.Qu;2<=d.length&&c.ssdaiAdsConfig&&ZG("Unexpected ad placement renderers length",a.slot,null,{length:d.length});d.some(function(e){var f,h,l,m;return!!(null==(f=e.renderer)?0:null==(h=f.linearAdSequenceRenderer)?0:null==(l=h.linearAds)?0:l.length)||!(null==(m=e.renderer)||!m.instreamVideoAdRenderer)})||qza(a)})};
pza.prototype.iM=function(){$ya(this.j)};rza.prototype.QC=function(){var a=this;Zya(this.j,function(){var b=EJ(a.slot.Ea,"metadata_type_ad_break_request_data");return a.Vf.get().fetch({D_:b.getAdBreakUrl,eV:new g.oK(b.yQ,b.xQ)})})};
rza.prototype.iM=function(){$ya(this.j)};sza.prototype.QC=function(){var a=this.slot.Ea,b,c=null!=(b=this.slot.fulfilledLayout)?b:EJ(a,"metadata_type_fulfilled_layout");xya(this.callback,this.slot,c)};
sza.prototype.iM=function(){uya(this.callback,this.slot,new CJ("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};uza.prototype.build=function(a,b){return b.fulfilledLayout||tza(b,{ue:["metadata_type_fulfilled_layout"]})?new sza(a,b):this.j(a,b)};g.w(rK,uza);
rK.prototype.j=function(a,b){if(tza(b,{ue:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new pza(a,b,this.Vf,this.Kb,this.jc,this.Ia,this.Ra,this.Ka,this.Sc);if(tza(b,{ue:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new rza(a,b,this.Vf,this.Kb,this.jc,this.Ia);throw new CJ("Unsupported slot with type: "+b.slotType+" and client metadata: "+FJ(b.Ea)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.w(sK,uza);sK.prototype.j=function(a,b){throw new CJ("Unsupported slot with type: "+b.slotType+" and client metadata: "+FJ(b.Ea)+" in DefaultFulfillmentAdapterFactory.");};g.k=vza.prototype;g.k.Nc=function(){return this.slot};
g.k.Ab=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.Cf(this.slot,a,new BJ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var b=EJ(a.Ea,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.Oc(this.slot,a),OCa(this.j,this.slot,
b)):ZG("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}};
g.k.wf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Cf(this.slot,a,new BJ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):(this.callback.bd(this.slot,a,b),xza(this))};g.w(wK,g.lG);g.k=wK.prototype;g.k.Nc=function(){return this.B.slot};
g.k.Ab=function(){return this.B.layout};
g.k.init=function(){this.C.get().addListener(this)};
g.k.release=function(){this.C.get().removeListener(this);this.dispose()};
g.k.ON=function(){};
g.k.MN=function(){};
g.k.LN=function(){};
g.k.LH=function(){};
g.k.startRendering=function(a){var b=this;Aza(this.B,a,function(){return void b.aK()})};
g.k.aK=function(){this.C.get().aK(this.j)};
g.k.wf=function(a,b){var c=this;Aza(this.B,a,function(){var d=c.C.get();Zab(d,c.j,3);c.j=[];c.callback.bd(c.slot,a,b)})};
g.k.Ba=function(){this.C.isDisposed()||this.C.get().removeListener(this);g.lG.prototype.Ba.call(this)};
g.da.Object.defineProperties(wK.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.B.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.B.layout}}});CK.prototype.Gh=function(a,b){b=void 0===b?!1:b;var c=(this.C.get(a)||[]).concat();if(b=b&&Cza(a)){var d=this.C.get(b);d&&c.push.apply(c,g.pa(d))}Dza(this,a,c);this.j.add(a);b&&this.j.add(b)};
CK.prototype.yd=function(a,b){b=void 0===b?!1:b;if(!this.j.has(a)){var c=b&&Cza(a);c&&(b=!this.j.has(c));this.Gh(a,b)}};
CK.prototype.ix=function(a,b){b=void 0===b?!1:b;this.j.has(a)?Dza(this,a,[]):this.yd(a,b)};g.w(Iza,kG);g.w(Jza,wK);g.k=Jza.prototype;g.k.Bh=function(a,b){zK("action-companion",a,this.K.get().zl,this.Ra.get(),this.D,this.G,this.Nc(),this.Ab(),b)};
g.k.startRendering=function(a){yK(this.yb,this.Nc(),this.Ab(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new Iza(b,c,d,e,f)},this.j);
wK.prototype.startRendering.call(this,a)};
g.k.Oc=function(a,b){b.layoutId===this.layout.layoutId?this.yb.yd("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Ra.get().Tj():ZG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.bd=function(){};
g.k.Yi=function(){};
g.k.jk=function(){};
g.k.fk=function(){};
g.k.Xg=function(){};
g.k.Yg=function(){};
g.k.gk=function(){};
g.k.hk=function(){};
g.k.wj=function(){};
g.k.Rh=function(){};
g.k.Wi=function(){};
g.k.Ba=function(){this.Ne().Oe.delete(this);wK.prototype.Ba.call(this)};g.w(Lza,kG);g.w(Mza,wK);g.k=Mza.prototype;g.k.Bh=function(a,b){zK("image-companion",a,this.K.get().zl,this.Ra.get(),this.D,this.G,this.Nc(),this.Ab(),b)};
g.k.startRendering=function(a){yK(this.yb,this.Nc(),this.Ab(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new Lza(b,c,d,e,f)},this.j);
wK.prototype.startRendering.call(this,a)};
g.k.Oc=function(a,b){b.layoutId===this.layout.layoutId?this.yb.yd("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Ra.get().Tj():ZG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.bd=function(){};
g.k.Yi=function(){};
g.k.jk=function(){};
g.k.fk=function(){};
g.k.Xg=function(){};
g.k.Yg=function(){};
g.k.gk=function(){};
g.k.hk=function(){};
g.k.wj=function(){};
g.k.Rh=function(){};
g.k.Wi=function(){};
g.k.Ba=function(){this.Ne().Oe.delete(this);wK.prototype.Ba.call(this)};g.w(Oza,kG);g.w(Pza,wK);g.k=Pza.prototype;g.k.Bh=function(a,b){zK("shopping-companion",a,this.K.get().zl,this.Ra.get(),this.D,this.G,this.Nc(),this.Ab(),b)};
g.k.startRendering=function(a){yK(this.yb,this.Nc(),this.Ab(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new Oza(b,c,d,e,f)},this.j);
wK.prototype.startRendering.call(this,a)};
g.k.Oc=function(a,b){b.layoutId===this.layout.layoutId?this.yb.yd("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Ra.get().Tj():ZG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.bd=function(){};
g.k.Yi=function(){};
g.k.jk=function(){};
g.k.fk=function(){};
g.k.Xg=function(){};
g.k.Yg=function(){};
g.k.gk=function(){};
g.k.hk=function(){};
g.k.wj=function(){};
g.k.Rh=function(){};
g.k.Wi=function(){};
g.k.Ba=function(){this.Ne().Oe.delete(this);wK.prototype.Ba.call(this)};g.w(Uza,wK);g.k=Uza.prototype;g.k.startRendering=function(a){yK(this.yb,this.Nc(),this.Ab(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new Iza(b,c,d,e,f)},this.j);
wK.prototype.startRendering.call(this,a)};
g.k.Oc=function(){};
g.k.bd=function(){};
g.k.Yi=function(){};
g.k.jk=function(){};
g.k.fk=function(){};
g.k.Xg=function(){};
g.k.Yg=function(){};
g.k.gk=function(){};
g.k.hk=function(){};
g.k.wj=function(){};
g.k.Rh=function(){};
g.k.Wi=function(){};
g.k.Ba=function(){this.Ne().Oe.delete(this);wK.prototype.Ba.call(this)};
g.k.Bh=function(){};g.k=Wza.prototype;g.k.Nc=function(){return this.slot};
g.k.Ab=function(){return this.layout};
g.k.init=function(){this.Ka.get().addListener(this);this.Ka.get().LG.push(this)};
g.k.release=function(){this.Ka.get().removeListener(this);Rab(this.Ka.get(),this)};
g.k.startRendering=function(a){this.callback.Oc(this.slot,a)};
g.k.wf=function(a,b){this.callback.bd(this.slot,a,b)};
g.k.Yk=function(a){switch(a.id){case "part2viewed":this.yb.yd("start");break;case "videoplaytime25":this.yb.yd("first_quartile");break;case "videoplaytime50":this.yb.yd("midpoint");break;case "videoplaytime75":this.yb.yd("third_quartile");break;case "videoplaytime100":this.yb.yd("complete");break;case "engagedview":if(!rab(this.Ia.get())){this.yb.yd("progress");break}Eza(this.yb)||this.yb.yd("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:ZG("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.vj=function(){};
g.k.Eh=function(){};
g.k.Zk=function(){};
g.k.onFullscreenToggled=function(){};
g.k.xj=function(){};
g.k.Vi=function(){};
g.k.XX=function(a){rab(this.Ia.get())&&Eza(this.yb)&&FK(this.yb,1E3*a,!1);this.Ia.get().J.W().N("tv_shorts_ad_tracking_fix")&&0<a&&this.yb.yd("impression")};g.w(Xza,wK);g.k=Xza.prototype;g.k.init=function(){wK.prototype.init.call(this);var a=EJ(this.layout.Ea,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.zc};this.j.push(new gH(a,this.layout.layoutId,EJ(this.layout.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,!0))};
g.k.Fp=function(){this.D||this.Ka.get().resumeVideo(1)};
g.k.startRendering=function(a){wK.prototype.startRendering.call(this,a);J1(this.Ka.get(),"ad-showing");this.callback.Oc(this.slot,a);this.G.zs=this};
g.k.wf=function(a,b){wK.prototype.wf.call(this,a,b);K1(this.Ka.get(),"ad-showing");n2(this.G,this)};
g.k.Bh=function(a){switch(a){case "ad-info-icon-button":(this.D=this.Ka.get().In(1))||this.Ka.get().pauseVideo();break;case "visit-advertiser":this.Ka.get().pauseVideo()}};
g.k.Ba=function(){wK.prototype.Ba.call(this)};g.w(HK,kG);g.w(IK,wK);IK.prototype.init=function(){wK.prototype.init.call(this);var a=EJ(this.layout.Ea,"metadata_type_ad_action_interstitial_renderer"),b=xK(this.yb);this.j.push(new HK(a,b,this.layout.layoutId,{adsClientData:this.layout.zc},!0,!0))};
IK.prototype.startRendering=function(a){wK.prototype.startRendering.call(this,a);this.callback.Oc(this.slot,a)};
IK.prototype.Bh=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=null==(c=EJ(this.layout.Ea,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:c.current)&&sAa(a,this.Nc(),this.layout)}};
IK.prototype.Ba=function(){wK.prototype.Ba.call(this)};KK.prototype.build=function(a,b,c,d){if(JK(d,{ue:["metadata_type_ad_break_response_data"],rf:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new vza(a,c,d,this.j,this.Wb,this.jb);throw new BJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+FJ(d.Ea)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.w(Zza,kG);g.w($za,wK);g.k=$za.prototype;g.k.Bh=function(a,b){zK("ads-engagement-panel",a,this.K.get().zl,this.Ra.get(),this.D,this.G,this.Nc(),this.Ab(),b)};
g.k.startRendering=function(a){yK(this.yb,this.Nc(),this.Ab(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new Zza(b,c,d,e,f)},this.j);
wK.prototype.startRendering.call(this,a)};
g.k.Oc=function(a,b){b.layoutId===this.layout.layoutId?this.yb.yd("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Ra.get().Tj():ZG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.bd=function(){};
g.k.Yi=function(){};
g.k.jk=function(){};
g.k.fk=function(){};
g.k.Xg=function(){};
g.k.Yg=function(){};
g.k.gk=function(){};
g.k.hk=function(){};
g.k.wj=function(){};
g.k.Rh=function(){};
g.k.Wi=function(){};
g.k.Ba=function(){this.Ne().Oe.delete(this);wK.prototype.Ba.call(this)};bAa.prototype.build=function(a,b,c,d){if(JK(d,aAa()))return new $za(a,c,d,this.Cc,this.Ra,this.Ne,this.Xb,this.j);if(JK(d,Kza()))return new Jza(a,c,d,this.Cc,this.Ra,this.Ne,this.Xb,this.j);if(JK(d,Nza()))return new Mza(a,c,d,this.Cc,this.Ra,this.Ne,this.Xb,this.j);if(JK(d,Qza()))return new Pza(a,c,d,this.Cc,this.Ra,this.Ne,this.Xb,this.j);if(JK(d,Vza()))return new Uza(a,c,d,this.Cc,this.Ra,this.Ne,this.Xb,this.j);throw new BJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+
FJ(d.Ea)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.w(cAa,kG);g.w(LK,wK);LK.prototype.init=function(){wK.prototype.init.call(this);var a=EJ(this.layout.Ea,"metadata_type_player_underlay_renderer");this.j.push(new cAa(g.S(a,neb),this.layout.layoutId,{adsClientData:this.layout.zc}))};
LK.prototype.Bh=function(){};
LK.prototype.startRendering=function(a){wK.prototype.startRendering.call(this,a);this.callback.Oc(this.slot,a)};
LK.prototype.Ba=function(){wK.prototype.Ba.call(this)};dAa.prototype.build=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.u(DK()),f=e.next();!f.done;f=e.next())b.push(f.value);if(JK(d,{ue:b,rf:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new LK(a,c,d,this.Cc);throw new BJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+FJ(d.Ea)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.k=eAa.prototype;g.k.Nc=function(){return this.slot};
g.k.Ab=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Cf(this.slot,a,new BJ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.Oc(this.slot,a),this.yb.yd("impression"),TK(this.j,a))};
g.k.wf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Cf(this.slot,a,new BJ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.bd(this.slot,a,b)};g.k=gAa.prototype;g.k.Nc=function(){return this.slot};
g.k.Ab=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Cf(this.slot,a,new BJ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.Oc(this.slot,a),this.yb.yd("impression"),TK(this.j,a))};
g.k.wf=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Cf(this.slot,a,new BJ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.bd(this.slot,a,b)};MK.prototype.build=function(a,b,c,d){if(!this.Ia.get().J.W().N("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(JK(d,fAa()))return new eAa(a,c,d,this.Ra,this.j)}else if(JK(d,{ue:[],rf:["LAYOUT_TYPE_FORECASTING"]}))return new gAa(a,c,d,this.Ra,this.j);throw new BJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+FJ(d.Ea)+" in ForecastingLayoutRenderingAdapterFactory.");};g.w(hAa,kG);g.w(iAa,wK);g.k=iAa.prototype;g.k.init=function(){wK.prototype.init.call(this);var a=EJ(this.layout.Ea,"metadata_type_player_overlay_layout_renderer"),b={adsClientData:this.layout.zc};this.j.push(new hAa(a,EJ(this.layout.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,b))};
g.k.Fp=function(){this.D||this.Ka.get().resumeVideo(2)};
g.k.startRendering=function(a){wK.prototype.startRendering.call(this,a);this.callback.Oc(this.slot,a);this.G.zs=this};
g.k.wf=function(a,b){wK.prototype.wf.call(this,a,b);n2(this.G,this)};
g.k.Bh=function(a){if(QEa(this.K.get(),this.S))switch(a){case "visit-advertiser-link":this.Ra.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ka.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ka.get().In(2))||this.Ka.get().pauseVideo();break;case "visit-advertiser-link":this.Ka.get().pauseVideo();EJ(this.layout.Ea,
"metadata_type_player_bytes_callback").GJ();break;case "skip-button":if(a=EJ(this.layout.Ea,"metadata_type_player_bytes_callback"),a.bI)a.uA(this.Nc(),this.layout);else{var b;(a=null==(b=EJ(this.layout.Ea,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&sAa(a,this.Nc(),this.layout)}}};
g.k.Ba=function(){wK.prototype.Ba.call(this)};g.w(NK,wK);g.k=NK.prototype;g.k.init=function(){wK.prototype.init.call(this);var a=EJ(this.layout.Ea,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.zc},c=!EJ(this.layout.Ea,"metadata_type_player_bytes_callback").bI;this.j.push(new gH(a,this.layout.layoutId,EJ(this.layout.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.Fp=function(){this.D||this.Ka.get().resumeVideo(2)};
g.k.startRendering=function(a){wK.prototype.startRendering.call(this,a);this.callback.Oc(this.slot,a);this.G.zs=this};
g.k.wf=function(a,b){wK.prototype.wf.call(this,a,b);n2(this.G,this)};
g.k.Bh=function(a){if(QEa(this.K.get(),this.S))switch(a){case "visit-advertiser":this.Ra.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ka.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ka.get().In(2))||this.Ka.get().pauseVideo();break;case "visit-advertiser":this.Ka.get().pauseVideo();EJ(this.layout.Ea,"metadata_type_player_bytes_callback").GJ();
break;case "skip-button":if(a=EJ(this.layout.Ea,"metadata_type_player_bytes_callback"),a.bI)a.uA(this.Nc(),this.layout);else{var b;(a=null==(b=EJ(this.layout.Ea,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&sAa(a,this.Nc(),this.layout)}}};
g.k.Ba=function(){wK.prototype.Ba.call(this)};g.w(kAa,kG);g.w(OK,wK);g.k=OK.prototype;g.k.startRendering=function(a){var b=this;Aza(this.B,a,function(){b.j.push(new kAa(EJ(b.layout.Ea,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.zc));b.aK();b.callback.Oc(b.slot,a);g.aH(C1(b.Ka.get(),1),512)&&b.callback.Cf(b.Nc(),b.Ab(),new BJ("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.k.Vi=function(){};
g.k.xj=function(a){if(a.state.isError()){var b;this.callback.Cf(this.Nc(),this.Ab(),new BJ("A player error happened during adNotify",{playerErrorCode:null==(b=a.state.Ah)?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}};
g.k.onFullscreenToggled=function(){};
g.k.Eh=function(){};
g.k.Zk=function(){};
g.k.vj=function(){};
g.k.onVolumeChange=function(){};
g.k.Yk=function(){};
g.k.Bh=function(){};mAa.prototype.build=function(a,b,c,d){if(a=PK(a,c,d,this.Cc,this.Ka,this.Ra,this.B,this.j,this.Ia))return a;throw new BJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+FJ(d.Ea)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};nAa.prototype.build=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.u(DK()),f=e.next();!f.done;f=e.next())b.push(f.value);if(JK(d,{ue:b,rf:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new Wza(a,c,d,this.Ka,this.Ra,this.Ia);throw new BJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+FJ(d.Ea)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.w(oAa,g.J);g.k=oAa.prototype;g.k.init=function(){var a=EJ(this.layout.Ea,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.bb.get().addListener(this);this.j.init();(a=EJ(this.j.Ab().Ea,"metadata_type_player_vars"))&&this.Fe.get().addPlayerResponseForAssociation(a)};
g.k.release=function(){this.bb.get().removeListener(this);this.j.release()};
g.k.VI=function(){};
g.k.dJ=function(a){this.layout.layoutId===a&&(void 0!==this.B?(this.callback.bd(this.slot,this.layout,this.B),this.B=void 0):(this.C&&ZG("Expected a video to exit at most once",this.slot,this.layout),this.C=!0,TK(this.Je,this.layout)))};
g.k.cJ=function(a){this.layout.layoutId===a&&bFa(this.pe,this.slot.slotId)};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Cf(this.Nc(),a,new BJ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ka.get().addListener(this),this.Ne().Oe.add(this),this.j.startRendering(this.layout),this.callback.Oc(this.slot,this.layout))};
g.k.wf=function(a,b){this.j.wf(this.layout,b);this.Ka.get().removeListener(this);this.C?(this.callback.bd(this.slot,this.layout,b),this.C=!1):(void 0!==this.B&&ZG("Expected the layout to be requested to exit at most once",this.slot,this.layout),this.B=b,this.Sc.get().finishSegmentByCpn(this.layout.layoutId,this.bb.get().Kf(1).clientPlaybackNonce))};
g.k.Nc=function(){return this.slot};
g.k.Ab=function(){return this.layout};
g.k.xr=function(){this.j.xr()};
g.k.Ar=function(){this.j.Ar()};
g.k.uA=function(a,b){ZG("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.slot,this.layout,{requestingSlot:a,requestingLayout:b})};
g.k.Oc=function(a,b){this.j.Oc(a,b)};
g.k.bd=function(a,b,c){b.layoutId===this.layout.layoutId&&this.Ne().Oe.delete(this);this.j.bd(a,b,c)};
g.k.Yi=function(){};
g.k.jk=function(){};
g.k.fk=function(){};
g.k.Xg=function(){};
g.k.Yg=function(){};
g.k.gk=function(){};
g.k.hk=function(){};
g.k.wj=function(){};
g.k.Rh=function(){};
g.k.Wi=function(){};
g.k.Vi=function(a){this.j.Vi(a)};
g.k.xj=function(a){if(a.state.isError()){var b,c=new BJ("There was a player error during SSAP single media layout.",{playerErrorCode:null==(b=a.state.Ah)?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),d;this.j.lA(null==(d=a.state.Ah)?void 0:d.errorCode,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");this.callback.Cf(this.slot,this.layout,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.j.xj(a)};
g.k.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)};
g.k.Eh=function(a){this.j.Eh(a)};
g.k.vj=function(a){this.j.vj(a)};
g.k.onVolumeChange=function(){this.j.onVolumeChange()};
g.k.Yk=function(){};
g.k.Zk=function(){};g.w(QK,g.J);g.k=QK.prototype;g.k.init=function(){var a=EJ(this.Ab().Ea,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Bt()};
g.k.release=function(){var a=EJ(this.Ab().Ea,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.du()};
g.k.startRendering=function(a){a.layoutId!==this.Ab().layoutId?this.callback.Cf(this.Nc(),a,new BJ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Ab().layoutId+("and LayoutType: "+this.Ab().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ka.get().addListener(this),this.Ne().Oe.add(this),sab(this.Ia.get())&&kab(this.Wc.get()),this.Ia.get().J.W().experiments.ob("html5_load_empty_player_in_media_break_sub_lra")||
this.tf()||Vab(this.Ka.get()),sab(this.Ia.get())||kab(this.Wc.get()),this.wu(a))};
g.k.wf=function(a,b){this.tf()?(this.Qr(a,b),this.Ka.get().removeListener(this)):(this.YN=!0,this.Qr(a,b),this.Ka.get().J.Lw(),this.Fe.get().J.cueVideoByPlayerVars({},2),a=C1(this.Ka.get(),1),a.isPaused()&&!g.aH(a,2)&&this.Ka.get().playVideo(),this.Ka.get().removeListener(this),this.YN&&this.wX())};
g.k.bd=function(a,b){b.layoutId===this.Ab().layoutId&&(this.YN=!1,this.Ne().Oe.delete(this))};
g.k.xj=function(a,b){if(a.state.isError()){var c,d;this.Cf(null==(c=a.state.Ah)?void 0:c.errorCode,new BJ("There was a player error during this media layout.",{playerErrorCode:null==(d=a.state.Ah)?void 0:d.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED",b)}else this.qY(a)};
g.k.Zk=function(){};
g.k.Yi=function(){};
g.k.jk=function(){};
g.k.fk=function(){};
g.k.Xg=function(){};
g.k.Yg=function(){};
g.k.gk=function(){};
g.k.hk=function(){};
g.k.wj=function(){};
g.k.Rh=function(){};
g.k.Wi=function(){};
g.k.Yk=function(){};
g.k.tf=function(){var a=EJ(this.Nc().Ea,"metadata_type_eligible_for_ssap");return void 0===a?(ZG("Expected SSAP eligibility in PlayerBytes slots",this.Nc(),this.Ab()),!1):this.Ia.get().tf(a)};g.w(pAa,QK);g.k=pAa.prototype;g.k.Nc=function(){return this.slot};
g.k.Ab=function(){return this.layout};
g.k.Bt=function(){if(1>this.B.length)throw new CJ("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.B.length)});var a=EJ(this.Ab().Ea,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=this);a=g.u(this.B);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),yya(this.C,this.slot,b.Ab()),zya(this.C,this.slot,b.Ab());if(this.tf())for(this.bb.get().addListener(this),a=g.u(this.B),b=a.next();!b.done;b=a.next())(b=EJ(b.value.Ab().Ea,"metadata_type_player_vars"))&&
this.Fe.get().addPlayerResponseForAssociation(b)};
g.k.du=function(){var a=EJ(this.Ab().Ea,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=null);a=g.u(this.B);for(var b=a.next();!b.done;b=a.next())b=b.value,Aya(this.C,this.slot,b.Ab()),b.release();this.tf()&&this.bb.get().removeListener(this)};
g.k.VI=function(){};
g.k.dJ=function(a,b){var c=this,d=this.B[this.j];d&&this.G&&(d.Ab().layoutId!==a&&ZG("Unexpected active subLRA when previous playback ends",this.slot,this.layout),this.S=function(e){e.layoutId!==a&&ZG("Unexpected previous CPN when sublayout exit is confirmed",c.slot,c.layout);c.B.some(function(f){return f.Ab().layoutId===b})||(c.j=c.B.length,TK(c.D,c.layout))},d.rW())};
g.k.cJ=function(a){var b=this.B.findIndex(function(c){return c.Ab().layoutId===a});
-1!==b&&(-1===this.j&&bFa(this.pe,this.slot.slotId),xAa(this,b))};
g.k.xr=function(a,b){var c=this.B[this.j];b.layoutId!==RK(c,a,b)?ZG("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.xr()};
g.k.Ar=function(a,b){var c=this.B[this.j];b.layoutId!==RK(c,a,b)?ZG("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Ar()};
g.k.uA=function(a,b){var c=this.B[this.j];this.j===this.B.length-1&&ZG("Unexpected skip requested during the last sublayout",c.Nc(),c.Ab(),{requestingSlot:a,requestingLayout:b});b.layoutId!==RK(c,a,b)?ZG("onSkipRequested for a PlayerBytes layout that is not currently active",c.Nc(),c.Ab(),{requestingSlot:a,requestingLayout:b}):vAa(this,c.Nc(),c.Ab(),"skipped")};
g.k.wu=function(){this.tf()||-1===this.j&&uAa(this,this.j+1)};
g.k.j9=function(a,b){Bya(this.C,a,b)};
g.k.Qr=function(a,b){var c=this;this.j===this.B.length?this.callback.bd(this.slot,this.layout,b):(a=this.B[this.j],a.wf(a.Ab(),b),this.ma=function(){c.callback.bd(c.slot,c.layout,b)},this.tf()&&this.Sc.get().finishSegmentByCpn(a.Ab().layoutId,this.bb.get().Kf(1).clientPlaybackNonce))};
g.k.Oc=function(a,b){var c=this.B[this.j];c&&c.Oc(a,b)};
g.k.bd=function(a,b,c){QK.prototype.bd.call(this,a,b,c);var d=this.B[this.j];d&&d.bd(a,b,c)};
g.k.wX=function(){var a=this.B[this.j];a&&a.KH()};
g.k.Vi=function(a){var b=this.B[this.j];b&&b.Vi(a)};
g.k.qY=function(a){var b=this.B[this.j];b&&b.xj(a)};
g.k.Cf=function(a,b,c){-1===this.j&&(this.callback.Oc(this.slot,this.layout),this.j++);var d=this.B[this.j];d?d.lA(a,b,c):ZG("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.j),layoutId:this.Ab().layoutId})};
g.k.onFullscreenToggled=function(a){var b=this.B[this.j];if(b)b.onFullscreenToggled(a)};
g.k.Eh=function(a){var b=this.B[this.j];b&&b.Eh(a)};
g.k.vj=function(a){var b=this.B[this.j];b&&b.vj(a)};
g.k.onVolumeChange=function(){var a=this.B[this.j];if(a)a.onVolumeChange()};
g.k.l9=function(a,b,c){this.tf()?tAa(this,b,c):vAa(this,a,b,c)};
g.k.bF=function(a,b,c){qAa(this,b,this.j+1,c)};
g.k.k9=function(a,b,c,d){this.tf()?ZG("Unexpected sublayout error",a,b,{errorMessage:c.message,errorType:d}):vAa(this,a,b,"error")};var Wgb,b3,zAa;
Wgb={Nga:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",rla:"AUTHENTICATION_MALFORMED",sla:"AUTHENTICATION_MISSING",Fla:"BAD_REQUEST",Fma:"CAST_SESSION_DEVICE_MISMATCHED",Gma:"CAST_SESSION_VIDEO_MISMATCHED",Hma:"CAST_TOKEN_EXPIRED",Ima:"CAST_TOKEN_FAILED",Jma:"CAST_TOKEN_MALFORMED",mna:"CGI_PARAMS_MALFORMED",nna:"CGI_PARAMS_MISSING",Gra:"DEVICE_FALLBACK",ita:"GENERIC_WITH_LINK_AND_CPN",jta:"ERROR_HDCP",pta:"LICENSE",sta:"VIDEO_UNAVAILABLE",GAa:"FORMAT_UNAVAILABLE",KAa:"GEO_FAILURE",
ZBa:"HTML5_AUDIO_RENDERER_ERROR",aCa:"GENERIC_WITHOUT_LINK",bCa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",cCa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",dCa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",mCa:"HTML5_SPS_UMP_STATUS_REJECTED",uDa:"INVALID_DRM_MESSAGE",sXa:"PURCHASE_NOT_FOUND",tXa:"PURCHASE_REFUNDED",MXa:"RENTAL_EXPIRED",TXa:"RETRYABLE_ERROR",RYa:"SERVER_ERROR",g_a:"SIGNATURE_EXPIRED",k2a:"STOPPED_BY_ANOTHER_PLAYBACK",r3a:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",s3a:"STREAMING_NOT_ALLOWED",
t3a:"STREAM_LICENSE_NOT_FOUND",m5a:"TOO_MANY_REQUESTS",n5a:"TOO_MANY_REQUESTS_WITH_LINK",p5a:"TOO_MANY_STREAMS_PER_ENTITLEMENT",q5a:"TOO_MANY_STREAMS_PER_USER",V$a:"UNSUPPORTED_DEVICE",rab:"VIDEO_FORBIDDEN",Eab:"VIDEO_NOT_FOUND"};b3={};
g.WV=(b3.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",b3.DEVICE_FALLBACK="Sorry, this video is not available on this device.",b3.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",b3.LICENSE="Sorry, there was an error while licensing this video.",b3.VIDEO_UNAVAILABLE=
"Video unavailable",b3.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",b3.GEO_FAILURE="This video isn't available in your country.",b3.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",b3.GENERIC_WITHOUT_LINK="An error has occurred. Please try again later.",b3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",b3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognise any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",
b3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",b3.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",b3.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",b3.PURCHASE_NOT_FOUND="This video requires payment.",b3.PURCHASE_REFUNDED="This video's purchase has been refunded.",b3.RENTAL_EXPIRED="This video's rental has expired.",b3.CAST_SESSION_DEVICE_MISMATCHED=
"The device in the cast session doesn't match the requested one.",b3.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",b3.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",b3.CAST_TOKEN_EXPIRED="Cast session has expired. Please refresh.",b3.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",b3.SERVER_ERROR="There was an internal server error. Please try again later.",b3.STOPPED_BY_ANOTHER_PLAYBACK=
"Your account is playing this video in another location. Please reload this page to resume watching.",b3.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",b3.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",b3.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",b3.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",b3.TOO_MANY_REQUESTS="Please log in to watch this video.",
b3.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",b3.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",b3.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",b3.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",b3.VIDEO_FORBIDDEN="Access to this video is forbidden.",b3.VIDEO_NOT_FOUND="This video cannot be found.",b3);
zAa={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",
5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};var Xgb;var Ygb=g.mc(),Zgb=Ygb.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Zgb||2>Zgb.length)Xgb=void 0;else{var $gb=Ygb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Xgb=$gb&&6===$gb.length?Number($gb[5].replace("_",".")):0}var lT=Xgb,RV=0<=lT;g.w(g.ZK,aD);g.ZK.prototype.V=function(a,b,c,d,e){return aD.prototype.V.call(this,a,b,c,d,e)};var c3={},nNa=(c3.FAIRPLAY="fairplay",c3.PLAYREADY="playready",c3.WIDEVINE="widevine",c3.CLEARKEY=null,c3.FLASHACCESS=null,c3.UNKNOWN=null,c3.WIDEVINE_CLASSIC=null,c3);$K.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var d3={},YP=(d3.WIDTH={name:"width",video:!0,valid:640,Cn:99999},d3.HEIGHT={name:"height",video:!0,valid:360,Cn:99999},d3.FRAMERATE={name:"framerate",video:!0,valid:30,Cn:9999},d3.BITRATE={name:"bitrate",video:!0,valid:3E5,Cn:2E9},d3.EOTF={name:"eotf",video:!0,valid:"bt709",Cn:"catavision"},d3.CHANNELS={name:"channels",video:!1,valid:2,Cn:99},d3.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Cn:"invalidformat"},d3.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
Cn:"nope"},d3.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Cn:"av99.0.05M.08"},d3.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Cn:"invalid"},d3);var ahb=["h","H"],bhb=["9","("],chb=["9h","(h"],dhb=["8","*"],ehb=["a","A"],fhb=["o","O"],ghb=["m","M"],hhb=["mac3","MAC3"],ihb=["meac3","MEAC3"],e3={},INa=(e3.h=ahb,e3.H=ahb,e3["9"]=bhb,e3["("]=bhb,e3["9h"]=chb,e3["(h"]=chb,e3["8"]=dhb,e3["*"]=dhb,e3.a=ehb,e3.A=ehb,e3.o=fhb,e3.O=fhb,e3.m=ghb,e3.M=ghb,e3.mac3=hhb,e3.MAC3=hhb,e3.meac3=ihb,e3.MEAC3=ihb,e3),jhb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),bLa=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var f3={},dL=(f3["0"]="f",f3["160"]="h",f3["133"]="h",f3["134"]="h",f3["135"]="h",f3["136"]="h",f3["137"]="h",f3["264"]="h",f3["266"]="h",f3["138"]="h",f3["298"]="h",f3["299"]="h",f3["304"]="h",f3["305"]="h",f3["214"]="h",f3["216"]="h",f3["374"]="h",f3["375"]="h",f3["140"]="a",f3["141"]="ah",f3["327"]="sa",f3["258"]="m",f3["380"]="mac3",f3["328"]="meac3",f3["161"]="H",f3["142"]="H",f3["143"]="H",f3["144"]="H",f3["222"]="H",f3["223"]="H",f3["145"]="H",f3["224"]="H",f3["225"]="H",f3["146"]="H",f3["226"]=
"H",f3["227"]="H",f3["147"]="H",f3["384"]="H",f3["376"]="H",f3["385"]="H",f3["377"]="H",f3["149"]="A",f3["261"]="M",f3["381"]="MAC3",f3["329"]="MEAC3",f3["598"]="9",f3["278"]="9",f3["242"]="9",f3["243"]="9",f3["244"]="9",f3["247"]="9",f3["248"]="9",f3["353"]="9",f3["355"]="9",f3["356"]="9",f3["271"]="9",f3["577"]="9",f3["313"]="9",f3["579"]="9",f3["272"]="9",f3["302"]="9",f3["303"]="9",f3["407"]="9",f3["408"]="9",f3["308"]="9",f3["315"]="9",f3["330"]="9h",f3["331"]="9h",f3["332"]="9h",f3["333"]="9h",
f3["334"]="9h",f3["335"]="9h",f3["336"]="9h",f3["337"]="9h",f3["338"]="so",f3["600"]="o",f3["250"]="o",f3["251"]="o",f3["194"]="*",f3["195"]="*",f3["220"]="*",f3["221"]="*",f3["196"]="*",f3["197"]="*",f3["279"]="(",f3["280"]="(",f3["317"]="(",f3["318"]="(",f3["273"]="(",f3["274"]="(",f3["357"]="(",f3["358"]="(",f3["275"]="(",f3["359"]="(",f3["360"]="(",f3["276"]="(",f3["583"]="(",f3["584"]="(",f3["314"]="(",f3["585"]="(",f3["561"]="(",f3["277"]="(",f3["361"]="(h",f3["362"]="(h",f3["363"]="(h",f3["364"]=
"(h",f3["365"]="(h",f3["366"]="(h",f3["591"]="(h",f3["592"]="(h",f3["367"]="(h",f3["586"]="(h",f3["587"]="(h",f3["368"]="(h",f3["588"]="(h",f3["562"]="(h",f3["409"]="(",f3["410"]="(",f3["411"]="(",f3["412"]="(",f3["557"]="(",f3["558"]="(",f3["394"]="1",f3["395"]="1",f3["396"]="1",f3["397"]="1",f3["398"]="1",f3["399"]="1",f3["400"]="1",f3["401"]="1",f3["571"]="1",f3["402"]="1",f3["694"]="1h",f3["695"]="1h",f3["696"]="1h",f3["697"]="1h",f3["698"]="1h",f3["699"]="1h",f3["700"]="1h",f3["701"]="1h",f3["702"]=
"1h",f3["703"]="1h",f3["386"]="3",f3["387"]="w",f3["406"]="6",f3["645"]="(",f3["646"]="(",f3["647"]="(",f3["648"]="(",f3["649"]="(",f3["650"]="(",f3["651"]="(",f3["652"]="(",f3["653"]="(",f3["654"]="(",f3["655"]="(",f3["656"]="(",f3["657"]="(",f3["658"]="(",f3["659"]="(",f3["660"]="(",f3["661"]="(",f3["662"]="(",f3["663"]="(",f3["664"]="(",f3["665"]="(",f3["666"]="(",f3["667"]="(",f3["668"]="(",f3["669"]="(",f3["670"]="(",f3["671"]="(",f3["672"]="(",f3["673"]="(",f3["674"]="(h",f3["675"]="(h",f3["676"]=
"(h",f3["677"]="(h",f3["678"]="(h",f3["679"]="(h",f3["680"]="(h",f3["681"]="(h",f3["682"]="(h",f3["683"]="(h",f3["684"]="(h",f3["685"]="(h",f3["686"]="(h",f3["687"]="(h",f3["688"]="A",f3["689"]="A",f3["690"]="A",f3["691"]="MEAC3",f3);var g3={},kNa=(g3.STEREO_LAYOUT_UNKNOWN=0,g3.STEREO_LAYOUT_LEFT_RIGHT=1,g3.STEREO_LAYOUT_TOP_BOTTOM=2,g3);var h3,OP;h3={};g.aL=(h3.auto=0,h3.tiny=144,h3.light=144,h3.small=240,h3.medium=360,h3.large=480,h3.hd720=720,h3.hd1080=1080,h3.hd1440=1440,h3.hd2160=2160,h3.hd2880=2880,h3.highres=4320,h3);OP={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var cL="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");bL.prototype.isHdr=function(){return"smpte2084"===this.B||"arib-std-b67"===this.B};eL.prototype.Te=function(){return 2===this.containerType};
eL.prototype.isEncrypted=function(){return!!this.xe};
eL.prototype.Ui=function(){return!!this.audio};
eL.prototype.kh=function(){return!!this.video};var JAa=!1;g.w(CL,g.lG);g.k=CL.prototype;g.k.appendBuffer=function(a,b,c){if(this.Zd.TC()!==this.appendWindowStart+this.start||this.Zd.nH()!==this.appendWindowEnd+this.start||this.Zd.Xc()!==this.timestampOffset+this.start)this.Zd.supports(1),this.Zd.WQ(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Zd.Jr(this.timestampOffset+this.start);this.Zd.appendBuffer(a,b,c)};
g.k.abort=function(){this.Zd.abort()};
g.k.remove=function(a,b){this.Zd.remove(a+this.start,b+this.start)};
g.k.Of=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.k.clear=function(){this.Zd.clear()};
g.k.WQ=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.GN=function(){return this.timestampOffset+this.start};
g.k.TC=function(){return this.appendWindowStart};
g.k.nH=function(){return this.appendWindowEnd};
g.k.Jr=function(a){this.timestampOffset=a};
g.k.Xc=function(){return this.timestampOffset};
g.k.Jf=function(a){a=this.Zd.Jf(void 0===a?!1:a);return BL(a,this.start,this.end)};
g.k.Xj=function(){return this.Zd.Xj()};
g.k.xm=function(){return this.Zd.xm()};
g.k.kO=function(){return this.Zd.kO()};
g.k.Jy=function(){this.Zd.Jy()};
g.k.Mz=function(a){return this.Zd.Mz(a)};
g.k.zv=function(){return this.Zd.zv()};
g.k.vH=function(){return this.Zd.vH()};
g.k.OR=function(a,b){this.Zd.OR(a,b)};
g.k.supports=function(a){return this.Zd.supports(a)};
g.k.xH=function(){return this.Zd.xH()};
g.k.isView=function(){return!0};
g.k.zG=function(){return this.Zd.zG()?this.isActive:!1};
g.k.isLocked=function(){return this.LF&&!this.isActive};
g.k.uc=function(a){a=this.Zd.uc(a);a.vw=this.start+"-"+this.end;return a};
g.k.wH=function(){return this.Zd.wH()};
g.k.cD=function(){return this.Zd.cD()};
g.k.CN=function(){return this.Zd.CN()};
g.k.Ba=function(){nG(this.Zd,this.sW);g.lG.prototype.Ba.call(this)};var MZ=!1;g.w(DL,g.lG);g.k=DL.prototype;g.k.appendBuffer=function(a,b,c){this.tC=!1;c&&(this.ND=c);if(a.length){var d;(null==(d=this.xc)?0:d.appendBuffer)?this.xc.appendBuffer(a):this.xc?this.xc.append(a):this.oh&&this.oh.webkitSourceAppend(this.id,a)}b&&(b.isEncrypted()&&(this.CO=this.ND),3===b.type&&(this.Nf=b),this.MD.push(b.le()),4<this.MD.length&&this.MD.shift());this.PA&&(2<=this.PA.length||1048576<a.length?delete this.PA:this.PA.push(a))};
g.k.abort=function(){try{this.xc?this.xc.abort():this.oh&&this.oh.webkitSourceAbort(this.id)}catch(a){khb&&g.TF(new g.nD("Error while abort the source buffer: "+a.name+", "+a.message))}this.ND=this.Nf=null};
g.k.remove=function(a,b,c){this.tC=!1;var d;if(null==(d=this.xc)?0:d.remove)c&&c({b:vL(this.Jf()),s:a,e:b}),this.xc.remove(a,b)};
g.k.Of=function(){this.remove(this.TC(),this.nH())};
g.k.clear=function(){this.xm()||(this.abort(),this.Of(),this.CO=this.ND=this.Nf=null,this.appendWindowStart=this.timestampOffset=0,this.gM=uL([],[]),this.tC=!1,this.PA=OAa?[]:void 0,this.EG=!0)};
g.k.TC=function(){if(MZ&&this.kh)return this.appendWindowStart;var a;return(null==(a=this.xc)?void 0:a.appendWindowStart)||0};
g.k.nH=function(){var a;return(null==(a=this.xc)?void 0:a.appendWindowEnd)||0};
g.k.WQ=function(a,b){this.xc&&(MZ&&this.kh?(this.appendWindowStart=a,this.xc.appendWindowEnd=b):a>this.TC()?(this.xc.appendWindowEnd=b,this.xc.appendWindowStart=a):(this.xc.appendWindowStart=a,this.xc.appendWindowEnd=b))};
g.k.GN=function(){return this.timestampOffset};
g.k.Jr=function(a){MZ?this.timestampOffset=a:this.supports(1)&&(this.xc.timestampOffset=a)};
g.k.Xc=function(){return MZ?this.timestampOffset:this.supports(1)?this.xc.timestampOffset:0};
g.k.Jf=function(a){if(void 0===a?0:a)return this.tC||this.Xj()||(this.gM=this.Jf(!1),this.tC=!0),this.gM;try{return this.xc?this.xc.buffered:this.oh?this.oh.webkitSourceBuffered(this.id):uL([0],[Infinity])}catch(b){return uL([],[])}};
g.k.Xj=function(){var a;return(null==(a=this.xc)?void 0:a.updating)||!1};
g.k.xm=function(){return this.EG};
g.k.kO=function(){return!this.EG&&this.Xj()};
g.k.Jy=function(){this.EG=!1};
g.k.Mz=function(a){var b=null==a?void 0:a.Db;a=null==a?void 0:a.containerType;return!b&&!a||b===this.Db&&a===this.containerType};
g.k.zv=function(){return this.ND};
g.k.vH=function(){return this.CO};
g.k.OR=function(a,b){this.containerType!==a&&(this.supports(4),EL()&&this.xc.changeType(b));this.containerType=a};
g.k.xH=function(){return this.Nf};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.xc)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.xc)||!c.appendBuffer);case 2:var d;return!(null==(d=this.xc)||!d.remove);case 3:var e,f;return!!((null==(e=this.xc)?0:e.addEventListener)&&(null==(f=this.xc)?0:f.removeEventListener));case 4:return!(!this.xc||!this.xc.changeType);default:return!1}};
g.k.zG=function(){return!this.Xj()};
g.k.isLocked=function(){return!1};
g.k.uc=function(a){a.to=this.Xc();a.up=this.Xj();var b,c=(null==(b=this.xc)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.xc)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=vL(this.Jf())}catch(e){}return a};
g.k.wH=function(){for(var a={},b=0;b<this.MD.length;b++)a["s"+b]=this.MD[b];return a};
g.k.Ba=function(){this.supports(3)&&(this.xc.removeEventListener("updateend",this.Hd),this.xc.removeEventListener("error",this.Hd));g.lG.prototype.Ba.call(this)};
g.k.cD=function(){return this.containerType};
g.k.CN=function(){return this.PA};
var OAa=!1,khb=!1;FL.prototype.dispose=function(){if(!this.isDisposed){if(this.j)try{URL.revokeObjectURL(this.resource)}catch(a){}this.B=!0}};
FL.prototype.isDisposed=function(){return this.B};
FL.prototype.equals=function(a){return null!==a&&a.resource===this.resource};
FL.prototype.toString=function(){return"MediaResource {"+this.resource+"}"};g.w(GL,g.J);g.k=GL.prototype;g.k.getDuration=function(){var a;return(null==(a=this.Wa)?void 0:a.duration)||this.ea};
g.k.wl=function(a){try{this.Wa?this.Wa.duration=a:(this.ea=a,this.oh.webkitSourceSetDuration(a))}catch(b){}};
g.k.jh=function(){try{return"closed"===ML(this)}catch(a){return!0}};
g.k.Xj=function(){return!!(this.j&&this.j.Xj()||this.B&&this.B.Xj())};
g.k.isAsync=function(){return this.j?!!this.j.supports(0):UAa()};
g.k.g9=function(){!this.isDisposed()&&IL(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.f9=function(){this.dispose()};
g.k.V1=function(a){if(RAa&&!this.D&&a.xm()&&0===a.Jf().length){var b;JL(this.mediaElement,{l:"mswoue",sr:null==(b=this.mediaElement.xa)?void 0:KL(b)},!1);a.Jy();this.xm()||(this.mediaElement.VH=!0,this.mediaElement.setCurrentTime(0))}};
g.k.clear=function(){QAa(this,function(){});
var a;null==(a=this.j)||a.clear();var b;null==(b=this.B)||b.clear()};
g.k.xm=function(){var a,b;return(null==(a=this.B)?void 0:a.xm())||(null==(b=this.j)?void 0:b.xm())};
g.k.Mz=function(a,b){return!!this.j&&!!this.B&&this.j.Mz(b)&&this.B.Mz(a)};
var RAa=!1,HL=!1;NL.prototype.then=function(a,b){return this.promise.then(a,b)};
NL.prototype.resolve=function(a){this.hZ(a)};
NL.prototype.reject=function(a){this.ZY(a)};g.w(OL,g.J);g.k=OL.prototype;g.k.dG=function(){return this.resource};
g.k.wy=function(a){var b="";a&&(aBa(this,a),b=a.resource);if(!this.Lf()||b)b&&this.Lf()!==b&&(this.fG(b),delete this.B,this.C&&(this.C.reject(),delete this.C)),a&&a.j||this.load(),this.S||(this.addEventListener("volumechange",this.VU),this.S=!0)};
g.k.jt=function(a,b){if(this.B)if(lhb&&LL(this.B)&&!this.B.Mz(a,b)){var c;JL(this,{l:"megms",sr:null==(c=this.xa)?void 0:KL(c)});ZAa(this);this.stopVideo()}else return this.Wa=this.B,this.B=void 0,this.Wa;a=window.MediaSource?new GL(this,new window.MediaSource,!1):HL&&window.ManagedMediaSource?new GL(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new GL(this,new window.WebKitMediaSource,!1):new GL(this,void 0,!1);this.wy(a.C);this.Wa=a;this.VH=!1;return a};
g.k.playVideo=function(){var a=this;this.ri()&&this.seekTo(0);!this.Lf()&&this.resource&&(g.TF(Error("playVideo without src")),this.fG(this.resource.resource),this.resource.j||this.load());var b=this.play(),c;(null==(c=this.xa)?0:c.N("html5_remove_ios_7_hack_force_play"))||!b&&RV&&7<=(lT||0)&&BAa(this,function(){g.jC(function(){$Aa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.yk()&&(RV&&4>lT&&(a=Math.max(.1,a)),this.setCurrentTime(a))};
g.k.Yn=function(){if(!this.B&&this.Wa)if(this.Wa.G)try{var a;JL(this,{l:"mer",sr:null==(a=this.xa)?void 0:KL(a),rs:ML(this.Wa)});this.Wa.clear();this.B=this.Wa;this.Wa=void 0}catch(b){a=new g.nD("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.TF(a),this.stopVideo()}else this.stopVideo()};
g.k.stopVideo=function(){var a=this;if(!this.B){var b;null==(b=this.Wa)||WAa(b);if(mhb){if(!this.C){var c=new NL;c.then(void 0,function(){});
this.C=c;nhb&&this.pause();g.jC(function(){a.C===c&&(dBa(a),c.resolve())},200)}}else dBa(this)}};
g.k.oz=function(){var a=this.Kh();return 0<zL(a)&&this.getDuration()?yL(a,this.getCurrentTime()):0};
g.k.Dv=function(){var a=this.getDuration();return Infinity===a?1:a?this.oz()/a:0};
g.k.uc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:vL(this.Gv(),",",3),vbu:vL(this.Kh()),vpa:""+ +this.isPaused(),vsk:""+ +this.Wg(),ven:""+ +this.ri(),vpr:""+this.getPlaybackRate(),vrs:""+this.yk(),vns:""+this.CH(),vec:""+this.rg(),vemsg:this.yf(),vvol:""+this.getVolume(),vdom:""+ +this.lO(),vsrc:""+ +!!this.Lf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.D.Ua(a,b,!1,this);this.QM(a)};
g.k.removeEventListener=function(a,b){this.D.Qc(a,b,!1,this)};
g.k.dispatchEvent=function(a){if(this.C&&"pause"===a.type)return!1;if(lhb){var b,c=(null==(b=a.j)?void 0:b.timeStamp)||Infinity;b=c>performance.now()?c-Date.now()+performance.now():c;c=this.B||this.Wa;if((null==c?0:c.xm())||b<=((null==c?void 0:c.K)||0)){var d;JL(this,{l:"mede",sr:null==(d=this.xa)?void 0:KL(d),et:a.type});return!1}if(this.VH)return JL(this,{l:"medes",et:a.type}),c&&"seeking"===a.type&&(c.K=performance.now(),this.VH=!1),!1}return this.D.dispatchEvent(a)};
g.k.LM=function(){this.K=!1};
g.k.HM=function(){this.K=!0;this.WA(!0)};
g.k.VU=function(){this.K&&!this.BH()&&this.WA(!0)};
g.k.equals=function(a){return!!a&&a.Gb()===this.Gb()};
g.k.Ba=function(){this.S&&this.removeEventListener("volumechange",this.VU);mhb&&dBa(this);g.J.prototype.Ba.call(this)};
var mhb=!1,nhb=!1,lhb=!1,cBa=!1;g.k=g.QL.prototype;g.k.isPaused=function(){return g.aH(this,4)};
g.k.isPlaying=function(){return g.aH(this,8)&&!g.aH(this,512)&&!g.aH(this,64)&&!g.aH(this,2)};
g.k.isCued=function(){return g.aH(this,64)&&!g.aH(this,8)&&!g.aH(this,4)};
g.k.isError=function(){return g.aH(this,128)};
g.k.isSuspended=function(){return g.aH(this,512)};
g.k.HD=function(){return g.aH(this,64)&&g.aH(this,4)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};
var i3={},j3=(i3.BUFFERING="buffering-mode",i3.CUED="cued-mode",i3.ENDED="ended-mode",i3.PAUSED="paused-mode",i3.PLAYING="playing-mode",i3.SEEKING="seeking-mode",i3.UNSTARTED="unstarted-mode",i3);g.w($L,g.J);g.k=$L.prototype;g.k.Nc=function(){return this.slot};
g.k.Ab=function(){return this.layout};
g.k.init=function(){var a=EJ(this.layout.Ea,"metadata_type_video_length_seconds"),b=EJ(this.layout.Ea,"metadata_type_active_view_traffic_type");AK(this.layout.hc)&&yab(this.Xb.get(),this.layout.layoutId,b,a,this);Jab(this.Ra.get(),this);this.Bt()};
g.k.release=function(){AK(this.layout.hc)&&zab(this.Xb.get(),this.layout.layoutId);Kab(this.Ra.get(),this);this.du()};
g.k.xr=function(){};
g.k.Ar=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.Cf(this.slot,a,new BJ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{this.Pc="rendering_start_requested";var b=this.jg.get();b.Z.experiments.ob("disable_safari_ui_status_check")||(b.Z.B&&g.ID?0:b.Z.B||g.SJ(b.Z)||g.UJ(b.Z)||
pS(b.Z)||!g.ID)?b=!0:(b=g.$e("video-ads"),b=null!=b&&"none"!==Br(b,"display"));b?(this.NE(-1),this.wu(a),this.tG(!1)):this.lA("ui_unstable",new BJ("Failed to render media layout because ad ui unstable.",void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_UI_UNSTABLE"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}};
g.k.Oc=function(a,b){if(b.layoutId===this.layout.layoutId){this.Pc="rendering";this.JD=this.Ka.get().isMuted()||0===this.Ka.get().getVolume();this.yd("impression");this.yd("start");if(this.Ka.get().isMuted()){this.ix("mute");var c;a=(null==(c=ZL(this))?void 0:c.muteCommands)||[];this.Yb.get().gh(a,this.layout.layoutId)}if(this.Ka.get().isFullscreen()){this.Gh("fullscreen");var d;c=(null==(d=ZL(this))?void 0:d.fullscreenCommands)||[];this.Yb.get().gh(c,this.layout.layoutId)}d=this.Wc.get();d.wg&&!d.B&&
(d.D=!1,d.B=!0,"ad_to_video"!==d.actionType&&(d.J.N("html5_no_video_to_ad_on_preroll")?(d.J.N("html5_remove_deprecated_ticks")||kI("apbs",void 0,d.actionType),kI("pbs",void 0,d.actionType)):(d.J.N("html5_remove_deprecated_ticks")||jI("apbs",void 0,d.actionType),jI("pbs",void 0,d.actionType)),g.SB("finalize_all_timelines")&&Nwa(d.actionType)));this.NE(1);this.fY();var e;d=(null==(e=ZL(this))?void 0:e.impressionCommands)||[];this.Yb.get().gh(d,this.layout.layoutId)}};
g.k.lA=function(a,b,c){this.Ou={tK:3,HF:"load_timeout"===a?402:400,errorMessage:b.message};this.yd("error");var d;a=(null==(d=ZL(this))?void 0:d.errorCommands)||[];this.Yb.get().gh(a,this.layout.layoutId);this.callback.Cf(this.slot,this.layout,b,c)};
g.k.KH=function(){this.tf()&&ZG("Unexpected ad player in SSAP",this.slot,this.layout);this.KG()};
g.k.rW=function(){this.KG()};
g.k.iW=function(){if("rendering"===this.Pc){this.ix("pause");var a,b=(null==(a=ZL(this))?void 0:a.pauseCommands)||[];this.Yb.get().gh(b,this.layout.layoutId);this.NE(2)}};
g.k.jW=function(){if("rendering"===this.Pc){this.ix("resume");var a,b=(null==(a=ZL(this))?void 0:a.resumeCommands)||[];this.Yb.get().gh(b,this.layout.layoutId)}};
g.k.wf=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.Cf(this.slot,a,new BJ("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED");else if("rendering_stop_requested"!==this.Pc){this.Pc="rendering_stop_requested";this.layoutExitReason=b;switch(b){case "normal":this.yd("complete");break;case "skipped":this.yd("skip");
break;case "abandoned":GK(this.yb,"impression")&&this.yd("abandon")}this.Qr(a,b)}};
g.k.bd=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.Pc="not_rendering",this.layoutExitReason=void 0,(a="normal"!==c||this.position+1===this.g_)&&this.tG(a),this.gY(c),this.NE(0),c){case "abandoned":if(GK(this.yb,"impression")){var d,e=(null==(d=ZL(this))?void 0:d.abandonCommands)||[];this.Yb.get().gh(e,this.layout.layoutId)}break;case "normal":d=(null==(e=ZL(this))?void 0:e.completeCommands)||[];this.Yb.get().gh(d,this.layout.layoutId);break;case "skipped":var f;d=(null==(f=ZL(this))?
void 0:f.skipCommands)||[];this.Yb.get().gh(d,this.layout.layoutId)}};
g.k.nz=function(){return this.layout.layoutId};
g.k.fN=function(){return this.Ou};
g.k.xj=function(a){if("not_rendering"!==this.Pc){this.oZ||(a=new g.$G(a.state,new g.QL),this.oZ=!0);if(!this.tf()){var b=2===this.Ka.get().getPresentingPlayerType();if("rendering_start_requested"===this.Pc){b&&yAa(a)&&this.uM();return}if(!b){this.KH();return}if(g.cH(a,2)){this.lW();return}}yAa(a)?this.NE(1):g.cH(a,4)&&!g.cH(a,2)&&this.iW();0>bH(a,4)&&!(0>bH(a,2))&&this.jW()}};
g.k.gE=function(){if("rendering"===this.Pc){this.yb.yd("active_view_measurable");var a,b=(null==(a=ZL(this))?void 0:a.activeViewMeasurableCommands)||[];this.Yb.get().gh(b,this.layout.layoutId)}};
g.k.fE=function(){if("rendering"===this.Pc){this.yb.yd("active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=ZL(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.Yb.get().gh(b,this.layout.layoutId)}};
g.k.hE=function(){if("rendering"===this.Pc){this.yb.yd("active_view_viewable");var a,b=(null==(a=ZL(this))?void 0:a.activeViewViewableCommands)||[];this.Yb.get().gh(b,this.layout.layoutId)}};
g.k.dE=function(){if("rendering"===this.Pc){this.yb.yd("audio_audible");var a,b=(null==(a=ZL(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.Yb.get().gh(b,this.layout.layoutId)}};
g.k.eE=function(){if("rendering"===this.Pc){this.yb.yd("audio_measurable");var a,b=(null==(a=ZL(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.Yb.get().gh(b,this.layout.layoutId)}};
g.k.tG=function(a){this.Wc.get().tG(EJ(this.layout.Ea,"metadata_type_ad_placement_config").kind,a,this.position,this.g_,!1)};
g.k.onFullscreenToggled=function(a){if("rendering"===this.Pc)if(a){this.Gh("fullscreen");var b,c=(null==(b=ZL(this))?void 0:b.fullscreenCommands)||[];this.Yb.get().gh(c,this.layout.layoutId)}else this.Gh("end_fullscreen"),b=(null==(c=ZL(this))?void 0:c.endFullscreenCommands)||[],this.Yb.get().gh(b,this.layout.layoutId)};
g.k.onVolumeChange=function(){if("rendering"===this.Pc)if(this.Ka.get().isMuted()){this.ix("mute");var a,b=(null==(a=ZL(this))?void 0:a.muteCommands)||[];this.Yb.get().gh(b,this.layout.layoutId)}else this.ix("unmute"),a=(null==(b=ZL(this))?void 0:b.unmuteCommands)||[],this.Yb.get().gh(a,this.layout.layoutId)};
g.k.Eh=function(){};
g.k.Zk=function(){};
g.k.vj=function(){};
g.k.Yk=function(){};
g.k.Gh=function(a){this.yb.Gh(a,!this.JD)};
g.k.yd=function(a){this.yb.yd(a,!this.JD)};
g.k.ix=function(a){this.yb.ix(a,!this.JD)};
g.k.tf=function(){var a=EJ(this.slot.Ea,"metadata_type_eligible_for_ssap");return void 0===a?(ZG("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Ia.get().tf(a)};g.w(kBa,$L);g.k=kBa.prototype;g.k.Bt=function(){};
g.k.du=function(){var a=this.Ra.get();a.gK===this&&(a.gK=null);this.timer.stop()};
g.k.wu=function(){jBa(this);this.tf()||Vab(this.Ka.get());this.Ra.get().gK=this;gI("pbp")||gI("pbs")||kI("pbp");gI("pbp","watch")||gI("pbs","watch")||kI("pbp",void 0,"watch");this.uM()};
g.k.fY=function(){nBa(this)};
g.k.lW=function(){};
g.k.xr=function(){this.timer.stop();$L.prototype.iW.call(this)};
g.k.Ar=function(){nBa(this);$L.prototype.jW.call(this)};
g.k.mz=function(){return EJ(this.Ab().Ea,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.Qr=function(){this.timer.stop()};
g.k.Ic=function(){var a=Date.now(),b=a-this.FO;this.FO=a;this.aj+=b;this.aj>=this.mz()?(this.aj=this.mz(),aM(this,this.aj/1E3,!0),mBa(this,this.aj),this.tf()?this.callback.bF(this.Nc(),this.Ab(),"normal"):this.KG()):(aM(this,this.aj/1E3),mBa(this,this.aj))};
g.k.gY=function(){};
g.k.Vi=function(){};g.w(eM,$L);g.k=eM.prototype;g.k.Bt=function(){EJ(this.Ab().Ea,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=EJ(this.Ab().Ea,"metadata_type_shrunken_player_bytes_config")};
g.k.du=function(){EJ(this.Ab().Ea,"metadata_type_player_bytes_callback_ref").current=null;this.hv&&this.Dc.get().removeCueRange(this.hv);this.hv=void 0;var a;null==(a=this.vI)||a.dispose();this.eA&&this.eA.dispose()};
g.k.wu=function(a){var b=cM(this.Ia.get()),c=dM(this.Ia.get());if(b&&c&&!this.tf()){c=EJ(a.Ea,"metadata_type_preload_player_vars");var d=g.JJ(this.Ia.get().J.W().experiments,"html5_preload_wait_time_secs");c&&this.eA&&this.eA.start(1E3*d)}c=EJ(a.Ea,"metadata_type_ad_video_id");d=EJ(a.Ea,"metadata_type_legacy_info_card_vast_extension");c&&d&&this.Ag.get().J.W().Oa.add(c,{BG:d});(c=EJ(a.Ea,"metadata_type_sodar_extension_data"))&&Wya(this.uf.get(),c);Wab(this.Ka.get(),!1);jBa(this);if(this.tf())this.uM();
else{b?(c=this.Fe.get(),a=EJ(a.Ea,"metadata_type_player_vars"),c.J.loadVideoByPlayerVars(a,!1,2)):(c=this.Fe.get(),a=EJ(a.Ea,"metadata_type_player_vars"),c.J.cueVideoByPlayerVars(a,2));var e;null==(e=this.vI)||e.start();b||this.Fe.get().J.playVideo(2)}};
g.k.fY=function(){var a;null==(a=this.vI)||a.stop();this.hv="adcompletioncuerange:"+this.Ab().layoutId;this.Dc.get().addCueRange(this.hv,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var b;(this.adCpn=(null==(b=this.bb.get().Kf(2))?void 0:b.clientPlaybackNonce)||"")||ZG("Media layout confirmed started, but ad CPN not set.");this.Pd.get().Ta("onAdStart",this.adCpn)};
g.k.lW=function(){this.KG()};
g.k.mz=function(){var a;return null==(a=this.bb.get().Kf(2))?void 0:a.N9};
g.k.GJ=function(){this.yb.Gh("clickthrough")};
g.k.Qr=function(){var a;null==(a=this.vI)||a.stop();this.eA&&this.eA.stop();Wab(this.Ka.get(),!0);var b;(null==(b=this.shrunkenPlayerBytesConfig)?0:b.shouldRequestShrunkenPlayerBytes)&&this.Ka.get().aB(!1)};
g.k.onCueRangeEnter=function(a){a!==this.hv?ZG("Received CueRangeEnter signal for unknown layout.",this.Nc(),this.Ab(),{cueRangeId:a}):(this.Dc.get().removeCueRange(this.hv),this.hv=void 0,a=EJ(this.Ab().Ea,"metadata_type_video_length_seconds"),aM(this,a,!0),this.yd("complete"))};
g.k.gY=function(a){"abandoned"!==a&&this.Pd.get().Ta("onAdComplete");this.Pd.get().Ta("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.Vi=function(a){"rendering"===this.Pc&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ka.get().aB(!0),aM(this,a))};g.w(pBa,QK);g.k=pBa.prototype;g.k.Nc=function(){return this.j.Nc()};
g.k.Ab=function(){return this.j.Ab()};
g.k.Bt=function(){this.j.init()};
g.k.du=function(){this.j.release()};
g.k.xr=function(){this.j.xr()};
g.k.Ar=function(){this.j.Ar()};
g.k.uA=function(a,b){ZG("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.Nc(),this.Ab(),{requestingSlot:a,requestingLayout:b})};
g.k.wu=function(a){this.j.startRendering(a)};
g.k.Qr=function(a,b){this.j.wf(a,b)};
g.k.Oc=function(a,b){this.j.Oc(a,b)};
g.k.bd=function(a,b,c){QK.prototype.bd.call(this,a,b,c);this.j.bd(a,b,c);b.layoutId===this.Ab().layoutId&&wAa(this.Wc.get())};
g.k.wX=function(){this.j.KH()};
g.k.Vi=function(a){this.j.Vi(a)};
g.k.qY=function(a){this.j.xj(a)};
g.k.Cf=function(a,b,c){this.j.lA(a,b,c)};
g.k.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)};
g.k.Eh=function(a){this.j.Eh(a)};
g.k.vj=function(a){this.j.vj(a)};
g.k.onVolumeChange=function(){this.j.onVolumeChange()};g.k=fM.prototype;g.k.Nc=function(){return this.slot};
g.k.Ab=function(){return this.layout};
g.k.init=function(){this.Hf.get().addListener(this);this.Ka.get().addListener(this);this.Bt();var a=EJ(this.layout.Ea,"metadata_type_layout_enter_ms"),b=EJ(this.layout.Ea,"metadata_type_layout_exit_ms"),c,d=null==(c=this.bb.get().wv)?void 0:c.clientPlaybackNonce;c=this.layout.zc.adClientDataEntry;gM(this.Ra.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.Hf.get();e=tBa(e.C,a,b);null!==e&&(gM(this.Ra.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.Sc.get().Iy(e,b))};
g.k.release=function(){this.du();this.Hf.get().removeListener(this);this.Ka.get().removeListener(this)};
g.k.startRendering=function(){this.wu();this.callback.Oc(this.slot,this.layout)};
g.k.wf=function(a,b){this.Qr(b);null!==this.driftRecoveryMs&&(vBa(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(uBa(this)-EJ(this.layout.Ea,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ka.get().J.Cv()).toString()}),this.driftRecoveryMs=null);this.callback.bd(this.slot,this.layout,b)};
g.k.hY=function(){return!1};
g.k.aY=function(a){var b=EJ(this.layout.Ea,"metadata_type_layout_enter_ms"),c=EJ(this.layout.Ea,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;gM(this.Ra.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.bb.get().wv)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.zc.adClientDataEntry}});this.Sc.get().Iy(a,c)}};
g.k.Vi=function(a){this.PX(a);a=this.Ka.get().getCurrentTimeSec(2,!0);if(QEa(this.D.get(),this.layout.layoutId)){var b=EJ(this.layout.Ea,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=uBa(this),e=this.Ka.get().J.Cv(),f=Math.min(a+e,d/1E3);f<=a?vBa(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(vBa(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-
b).toString(),driftFromHeadMs:Math.round(1E3*e).toString(),appliedDriftRecoveryMs:Math.round(1E3*a-b).toString(),destinationMs:Math.round(1E3*f-b).toString()}),this.Ka.get().J.seekTo(f,void 0,void 0,1))}}};
g.k.Eh=function(){};
g.k.Zk=function(){};
g.k.vj=function(){};
g.k.onVolumeChange=function(){};
g.k.Yk=function(){};g.w(wBa,fM);g.k=wBa.prototype;g.k.Bt=function(){this.bb.get().addListener(this);this.C.forEach(function(a){a.init()});
null!=this.B&&this.Ra.get().wi("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
g.k.du=function(){this.bb.get().removeListener(this);this.j=null;this.C.forEach(function(a){a.release()})};
g.k.wu=function(){if(this.j)ZG("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=null==(a=this.bb.get().wv)?void 0:a.layoutId;yBa(this,b)}};
g.k.Qr=function(a){var b,c,d,e;null==(d=this.j)||null==(e=d.Zl)||e.wf(null==(b=this.j)?void 0:null==(c=b.Zl)?void 0:c.Ab(),a);this.j=null};
g.k.VI=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;this.Ra.get().wi("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.B+";slrs."+!!this.j+";slrslid."+(null==(c=this.j)?void 0:null==(d=c.Zl)?void 0:d.Ab().layoutId))}var e;if(this.j&&(null==(e=this.j.Zl)?void 0:e.Ab().layoutId)!==a){var f,h;null==(h=this.j.Zl)||h.wf(null==(f=this.j.Zl)?void 0:f.Ab(),"normal");yBa(this,a)}};
g.k.dJ=function(){};
g.k.cJ=function(){};
g.k.PX=function(){};
g.k.xj=function(){};
g.k.onFullscreenToggled=function(){};g.k=MBa.prototype;g.k.Nc=function(){return this.slot};
g.k.Ab=function(){return this.layout};
g.k.init=function(){var a=this;EJ(this.layout.Ea,"metadata_type_player_bytes_callback_ref").current=this;this.fd=zBa(this.slot,this.layout,EJ(this.layout.Ea,"metadata_type_player_vars"),EJ(this.layout.Ea,"metadata_type_layout_enter_ms"),EJ(this.layout.Ea,"metadata_type_layout_exit_ms"),1E3*EJ(this.layout.Ea,"metadata_type_video_length_seconds"),this.Sc.get(),this.Ce.get(),function(){var d=Object,e=d.assign,f=PBa(a.layout);var h=EJ(a.slot.Ea,"metadata_type_fulfilled_layout");h=Object.assign({},PBa(h),
{adPlacementConfig:EJ(h.Ea,"metadata_type_ad_placement_config"),subLayouts:EJ(h.Ea,"metadata_type_sub_layouts").map(PBa)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:h,hasSurveyOverlay:yJ(a.layout.Ea,"metadata_type_survey_overlay"),surveyOverlay:EJ(a.layout.Ea,"metadata_type_survey_overlay")})},this.Ra.get());
this.Ka.get().addListener(this);var b=EJ(this.layout.Ea,"metadata_type_video_length_seconds"),c=EJ(this.layout.Ea,"metadata_type_active_view_traffic_type");AK(this.layout.hc)&&yab(this.Xb.get(),this.layout.layoutId,c,b,this);yya(this.callback,this.slot,this.layout);zya(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Ka.get().removeListener(this);AK(this.layout.hc)&&zab(this.Xb.get(),this.layout.layoutId);this.Ia.get();Aya(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;yJ(this.layout.Ea,"metadata_type_survey_overlay")&&this.Ra.get().wi("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.Pc)ZG("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:yJ(this.layout.Ea,"metadata_type_survey_overlay"),surveyOverlay:EJ(this.layout.Ea,"metadata_type_survey_overlay")});else{this.Pc={Kn:null,kF:!1};if(pab(this.Ia.get())){var b;this.adCpn=null==(b=this.bb.get().Kf(2))?void 0:b.clientPlaybackNonce}this.Ia.get().J.W().experiments.ob("html5_disable_sodar_for_tvhtml5")||
ABa(this.slot,this.layout,this.uf.get());this.yb.yd("start");if(CN(this.Ia.get())){b=C1(this.Ka.get());var c=EJ(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Ka.get().getCurrentTimeSec(2,!1);CBa(this.yb,this.Pc.Kn,b,c,d,function(){return void OBa(a,"teois")})}Bya(this.callback,this.slot,this.layout);
yJ(this.layout.Ea,"metadata_type_survey_overlay")&&this.Ra.get().wi("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.wf=function(a,b){var c=this;if(this.Pc){if(CN(this.Ia.get()))if(null===this.fd)ZG("Unexpected media sub layout exited without a timeline playback ID");else{a=EJ(this.layout.Ea,"metadata_type_video_length_seconds");var d=Sab(this.Ka.get(),this.fd);pab(this.Ia.get())&&void 0===this.adCpn&&ZG("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:EJ(this.layout.Ea,"metadata_type_content_cpn")});Fza(this.yb,d,this.adCpn);DBa(this.yb,null,this.Pc.Kn,a,d,function(e){return void NBa(c,
e,"fue")},pab(this.Ia.get()))}this.Pc=null;
Cya(this.callback,this.slot,this.layout,b)}else ZG("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.lA=function(){};
g.k.KH=function(){};
g.k.rW=function(){};
g.k.Vi=function(a){var b=this;if(this.Pc){if(GK(this.yb,"impression")){var c=C1(this.Ka.get()),d=EJ(this.layout.Ea,"metadata_type_video_length_seconds");EBa(this.yb,c,a,this.Pc.Kn,d,function(e){return void NBa(b,e,"tpaqe")})}this.Pc.Kn=a}};
g.k.xj=function(a){var b=this;if(this.Pc){CN(this.Ia.get())||this.Pc.kF||(this.Pc.kF=!0,a=new g.$G(a.state,new g.QL));var c=EJ(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Ka.get().getCurrentTimeSec(2,!1);BBa(this.yb,this.Pc.Kn,a,c,d,!CN(this.Ia.get()),function(){return void OBa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){FBa(this.yb,a)};
g.k.Eh=function(){};
g.k.Zk=function(){};
g.k.vj=function(){};
g.k.uA=function(a,b){var c;a=this.Ra.get();var d=a.wi,e="ti."+GK(this.yb,"impression")+";ts."+GK(this.yb,"skip")+";hp.",f;var h=!(null==(f=this.yb.C.get("skip"))||!f.length);d.call(a,"ads_dsr",e+h+";cpn."+EJ(this.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(c=this.bb.get().Kf(2))?void 0:c.clientPlaybackNonce)+";sl."+(EJ(b.Ea,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));GK(this.yb,"impression")&&this.yb.yd("skip");this.Sc.get().Kr()||ZG("Unexpected failure to skip a server stitched ad",
this.slot,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Oc=function(){};
g.k.bd=function(){};
g.k.xr=function(){};
g.k.Ar=function(){};
g.k.GJ=function(){GBa(this.yb)};
g.k.gE=function(){HBa(this.yb)};
g.k.fE=function(){IBa(this.yb)};
g.k.hE=function(){JBa(this.yb)};
g.k.dE=function(){KBa(this.yb)};
g.k.eE=function(){LBa(this.yb)};
g.k.Yk=function(){};g.w(QBa,fM);g.k=QBa.prototype;
g.k.Bt=function(){var a=this;EJ(this.layout.Ea,"metadata_type_player_bytes_callback_ref").current=this;var b=EJ(this.layout.Ea,"metadata_type_layout_enter_ms"),c=EJ(this.layout.Ea,"metadata_type_layout_exit_ms");this.fd=zBa(this.slot,this.layout,EJ(this.layout.Ea,"metadata_type_player_vars"),b,c,1E3*EJ(this.layout.Ea,"metadata_type_video_length_seconds"),this.Sc.get(),this.Ce.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:EJ(a.layout.Ea,"metadata_type_ad_placement_config")}},
this.Ra.get());
var d=EJ(this.layout.Ea,"metadata_type_video_length_seconds"),e=EJ(this.layout.Ea,"metadata_type_active_view_traffic_type");AK(this.layout.hc)&&yab(this.Xb.get(),this.layout.layoutId,e,d,this)};
g.k.du=function(){AK(this.layout.hc)&&zab(this.Xb.get(),this.layout.layoutId)};
g.k.wu=function(){var a=this;if(this.Pc)ZG("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.Pc={Kn:null,kF:!1},ABa(this.slot,this.layout,this.uf.get()),this.yb.yd("start"),CN(this.Ia.get())){var b=C1(this.Ka.get()),c=EJ(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Ka.get().getCurrentTimeSec(2,!1);CBa(this.yb,this.Pc.Kn,b,c,d,function(){return void RBa(a,"teois")})}};
g.k.Qr=function(){var a=this;if(this.Pc){if(CN(this.Ia.get()))if(null===this.fd)ZG("Unexpected single media layout exited without a timeline playback ID");else{var b=EJ(this.layout.Ea,"metadata_type_video_length_seconds"),c=Sab(this.Ka.get(),this.fd);Fza(this.yb,c);DBa(this.yb,null,this.Pc.Kn,b,c,function(d){return void SBa(a,d,"fue")})}this.Pc=null}else ZG("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.PX=function(a){var b=this;if(this.Pc){if(GK(this.yb,"impression")){var c=C1(this.Ka.get()),d=EJ(this.layout.Ea,"metadata_type_video_length_seconds");EBa(this.yb,c,a,this.Pc.Kn,d,function(e){return void SBa(b,e,"tpaqe")})}this.Pc.Kn=a}};
g.k.xj=function(a){var b=this;if(this.Pc){CN(this.Ia.get())||this.Pc.kF||(this.Pc.kF=!0,a=new g.$G(a.state,new g.QL));var c=EJ(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.Ka.get().getCurrentTimeSec(2,!1);BBa(this.yb,this.Pc.Kn,a,c,d,!CN(this.Ia.get()),function(){return void RBa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){FBa(this.yb,a)};
g.k.GJ=function(){GBa(this.yb)};
g.k.gE=function(){HBa(this.yb)};
g.k.fE=function(){IBa(this.yb)};
g.k.hE=function(){JBa(this.yb)};
g.k.dE=function(){KBa(this.yb)};
g.k.eE=function(){LBa(this.yb)};TBa.prototype.build=function(a,b,c,d){if(yJ(c.Ea,"metadata_type_dai")){var e=EJ(d.Ea,"metadata_type_ad_placement_config");JK(d,{ue:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),rf:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new CK(d.hc,this.Ra,e,d.layoutId,null),e=new QBa(a,c,d,this.bb,this.Sc,this.Ce,this.Hf,this.Ka,e,this.Ra,this.uf,this.j,this.Xb,this.Ia)):
e=null;if(e)return e;a:{var f=EJ(d.Ea,"metadata_type_sub_layouts"),h=EJ(d.Ea,"metadata_type_ad_placement_config");if(JK(d,{ue:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],rf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==h){e=[];f=g.u(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=EJ(l.Ea,"metadata_type_media_sub_layout_index");if(!JK(l,{ue:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),
rf:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new CK(l.hc,this.Ra,h,l.layoutId,m);e.push(new MBa(b,c,l,this.Sc,m,this.Ka,this.Ce,this.Xb,this.uf,this.Ia,this.Ra,this.bb))}b=new CK(d.hc,this.Ra,h,d.layoutId);a=new wBa(a,c,d,this.bb,this.Sc,this.Hf,this.Ka,b,this.Ra,this.j,e)}else a=null}if(a)return a}else if(a=sBa(a,b,c,d,this.Ne,this.pe,this.B,this.Ra,this.Xb,this.uf,this.Fe,this.bb,this.Ka,this.Dc,this.Wc,this.Pd,this.jg,this.Yb,this.Ag,this.Ia,this.Sc))return a;throw new BJ("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+FJ(d.Ea)+" in PlayerBytesLayoutRenderingAdapterFactory.");};iM.prototype.build=function(a,b,c,d){if(a=sBa(a,b,c,d,this.Ne,this.pe,this.j,this.Ra,this.Xb,this.uf,this.Fe,this.bb,this.Ka,this.Dc,this.Wc,this.Pd,this.jg,this.Yb,this.Ag,this.Ia,this.Sc))return a;throw new BJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+FJ(d.Ea)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.w(UBa,kG);g.w(jM,wK);jM.prototype.startRendering=function(a){var b=xK(this.yb),c={adsClientData:this.layout.zc};this.j.push(new UBa(EJ(this.layout.Ea,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Ab().layoutId,c));wK.prototype.startRendering.call(this,a);this.callback.Oc(this.slot,a)};
jM.prototype.Bh=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=EJ(this.layout.Ea,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.uA(this.slot,this.layout):ZG("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
jM.prototype.Ba=function(){wK.prototype.Ba.call(this)};var VBa=new g.we(320,63);g.w(YBa,kG);g.w(mM,wK);g.k=mM.prototype;g.k.Vi=function(){};
g.k.xj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Eh=function(a){a&&QN(this.D,this.layout)};
g.k.Zk=function(){};
g.k.vj=function(a){var b=lM(this.layout);if(this.Ou=WBa(a,Uab(this.Ka.get())))b.onErrorCommand&&this.Yb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),QN(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.nz=function(){return this.Ab().layoutId};
g.k.fN=function(){return this.Ou};
g.k.Bh=function(a){this.G.Bh(a);"in_video_overlay_close_button"===a&&QN(this.D,this.layout)};
g.k.LH=function(a){"invideo-overlay"===a&&QN(this.D,this.layout)};
g.k.Fp=function(){this.G.Fp()};
g.k.startRendering=function(a){wK.prototype.startRendering.call(this,a);this.callback.Oc(this.slot,a);this.K.zs=this};
g.k.wf=function(a,b){wK.prototype.wf.call(this,a,b);n2(this.K,this)};
g.k.init=function(){wK.prototype.init.call(this);Jab(this.Ra.get(),this);this.Ka.get().addListener(this);this.j.push(new YBa(lM(this.layout),xK(this.yb),this.layout.layoutId,{adsClientData:this.layout.zc}))};
g.k.release=function(){wK.prototype.release.call(this);this.Ka.get().removeListener(this);Kab(this.Ra.get(),this)};
g.k.Yk=function(){};g.w(nM,wK);g.k=nM.prototype;g.k.init=function(){wK.prototype.init.call(this);Jab(this.Ra.get(),this);this.Ka.get().addListener(this);this.j.push(new YBa(lM(this.layout),xK(this.yb),this.layout.layoutId,{adsClientData:this.layout.zc}))};
g.k.Fp=function(){this.G.Fp()};
g.k.startRendering=function(a){wK.prototype.startRendering.call(this,a);this.callback.Oc(this.slot,a);this.K.zs=this};
g.k.wf=function(a,b){wK.prototype.wf.call(this,a,b);n2(this.K,this)};
g.k.Bh=function(a){this.G.Bh(a);"in_video_overlay_close_button"===a&&QN(this.D,this.layout)};
g.k.MN=function(a){if("invideo-overlay"===a){a=aFa(this.S,this.layout);a=g.u(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.LH=function(a){"invideo-overlay"===a&&QN(this.D,this.layout)};
g.k.LN=function(a){if("invideo-overlay"===a){a=aFa(this.S,this.layout);a=g.u(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Vi=function(){};
g.k.xj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Eh=function(a){a&&QN(this.D,this.layout)};
g.k.Zk=function(){};
g.k.vj=function(a){var b=lM(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=Uab(this.Ka.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&0!=c.thumbnails.length&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.we(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.we(0,0)}if(this.Ou=WBa(a,d,c))b.onErrorCommand&&this.Yb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),QN(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.nz=function(){return this.Ab().layoutId};
g.k.fN=function(){return this.Ou};
g.k.release=function(){wK.prototype.release.call(this);this.Ka.get().removeListener(this);Kab(this.Ra.get(),this)};
g.k.Yk=function(){};oM.prototype.Bh=function(a){"ad-info-hover-text-button"===a&&((this.j=this.Ka.get().In(1))||this.Ka.get().pauseVideo())};
oM.prototype.Fp=function(){this.j||this.Ka.get().resumeVideo(1)};g.w(aCa,kG);g.w(bCa,wK);g.k=bCa.prototype;g.k.init=function(){wK.prototype.init.call(this);this.Ka.get().addListener(this)};
g.k.startRendering=function(a){var b=EJ(this.layout.Ea,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new aCa(b,this.layout.layoutId,{adsClientData:this.layout.zc}));wK.prototype.startRendering.call(this,a);this.callback.Oc(this.slot,a)};
g.k.Oc=function(){};
g.k.Bh=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=EJ(this.layout.Ea,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.xr(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.Ar(this.slot,this.layout):ZG("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.vj=function(a){450>a.width&&QN(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Vi=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Eh=function(){};
g.k.Zk=function(){};
g.k.xj=function(){};
g.k.Yk=function(){};
g.k.Ba=function(){wK.prototype.Ba.call(this)};
g.k.release=function(){wK.prototype.release.call(this);this.Ka.get().removeListener(this)};cCa.prototype.build=function(a,b,c,d){if(b=PK(a,c,d,this.Cc,this.Ka,this.Ra,this.D,this.j,this.Ia))return b;if(JK(d,$Ba()))return new nM(c,d,this.Ra,this.Xb,this.Cc,a,this.B,this.C,this.Ka,this.Yb,this.Ia,this.j,new oM(this.Ka));if(JK(d,ZBa()))return new mM(c,d,this.Ra,this.Xb,this.Cc,a,this.B,this.Ka,this.Yb,this.Ia,this.j,new oM(this.Ka));if(JK(d,{ue:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],rf:["LAYOUT_TYPE_SURVEY"]}))return new bCa(c,d,a,this.Cc,this.B,this.Ka,this.Ia);if(JK(d,
{ue:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],rf:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new jM(c,d,a,this.Cc,this.Ra);if(JK(d,lAa()))return new OK(c,d,a,this.Cc,this.Ka,this.Ia);throw new BJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+FJ(d.Ea)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};dCa.prototype.build=function(a,b,c,d){if(b=PK(a,c,d,this.Cc,this.Ka,this.Ra,this.D,this.j,this.Ia))return b;if(JK(d,$Ba()))return new nM(c,d,this.Ra,this.Xb,this.Cc,a,this.B,this.C,this.Ka,this.Yb,this.Ia,this.j,new oM(this.Ka));if(JK(d,ZBa()))return new mM(c,d,this.Ra,this.Xb,this.Cc,a,this.B,this.Ka,this.Yb,this.Ia,this.j,new oM(this.Ka));throw new BJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+FJ(d.Ea)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.w(pM,NK);pM.prototype.startRendering=function(a){NK.prototype.startRendering.call(this,a);EJ(this.layout.Ea,"metadata_ad_video_is_listed")&&(a=EJ(this.layout.Ea,"metadata_type_ad_info_ad_metadata"),this.Sm.get().J.Ta("onAdMetadataAvailable",a))};fCa.prototype.build=function(a,b,c,d){if(JK(d,eCa()))return new pM(a,c,d,this.Cc,this.Ka,this.Ra,this.B,this.Sm,this.j);throw new BJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+FJ(d.Ea)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};gCa.prototype.build=function(a,b,c,d){if(JK(d,eCa()))return new pM(a,c,d,this.Cc,this.Ka,this.Ra,this.B,this.Sm,this.j);if(a=PK(a,c,d,this.Cc,this.Ka,this.Ra,this.B,this.j,this.Ia))return a;throw new BJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+FJ(d.Ea)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};QM.prototype.clone=function(a){var b=this;return new QM(function(){return b.triggerId},a)};RM.prototype.clone=function(a){var b=this;return new RM(function(){return b.triggerId},a)};SM.prototype.clone=function(a){var b=this;return new SM(function(){return b.triggerId},a)};TM.prototype.clone=function(a){var b=this;return new TM(function(){return b.triggerId},a)};UM.prototype.clone=function(a){var b=this;return new UM(function(){return b.triggerId},a)};VM.prototype.clone=function(a){var b=this;return new VM(function(){return b.triggerId},a)};g.w(nN,g.J);var zDa={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],jd:[],layoutExitUserInputSubmittedTriggers:[]};var XDa={WVdDU7FEFNo:15,"c-6Sb-muKCY":6,"O9f9wIR-UI8":6,"JNL-wFYNAP0":15,dLYcTkdHPNA:15,ZdVP0_LJZUE:15,VXcUXyDNdEI:15,VGQ8C9uQc_I:15,"o2HqYt-U7YU":15,rwNqPgKVbus:15,ATgzDto2XcY:15,attyPCCLlC4:15,w3aSYOeWyYU:15,wZMtuR2zzRA:30,e3TvPYADCQA:15,eMOw2R8yUHg:15,"6lLyZenufEY":15,"4q_FdWfUxR4":15,"3NOPsNQV0zY":15,IcEJuv4zMSI:15,"8Eo9vaW_CqY":15,O0DMDUDJK88:15,wnboazT1Lio:15,ZfRdOlbXmog:5,"X-sKfjrb7uc":15,RCVZbiJbZA0:6,"7syqtZsUUwY":15,OrlZSFgzFVA:15,ulrgBGVttFg:15,"1qC82K99ecI":15,E9lmhFAK78w:30,QSJFJNk_VSg:15,
"i-8wX-g3FjI":30,vgSkhTaAP6U:15,iqslKcmG9zA:15,VkNDKDDDSWA:15,"2-Sj3oWDJCk":6,z4zsVPqUVnc:15,xKc7UMf8V4s:15,wwrWuIYPaDE:6,"_5NVge-Kmpk":6,"eUdn6DcJx-4":6,gxvBLc_C6Io:15,O40oPma0obU:15,"6xXRRLxj3DA":15,T5sMvex24Os:15,"74ccAT84jIY":15,"YTlgTC-KM2U":15,XxcipO9EBWc:15,zI7xwG4M62k:15,XrUrvpDMmOk:15,H5KIgG21WjA:15,R94pfM1wcac:6,"TD0-7fMqNOE":5,_evnWGoDAT8:15,Wov4GF3oUSM:6,DKcQEuGWmp4:15,kp4aH06VQBg:15};var oS={VKa:1,WKa:2,XKa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.w(BN,g.J);g.k=BN.prototype;g.k.hY=function(a){if(!this.j){var b;null==(b=this.Sc)||b.get().Xt(a.identifier);return!1}KEa(this,this.j,a);return!0};
g.k.aY=function(){};
g.k.dk=function(a){this.j&&this.j.contentCpn!==a&&(ZG("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.k.Pn=function(a){this.j&&this.j.contentCpn!==a&&ZG("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn},!0);this.j=null};
g.k.Ba=function(){g.J.prototype.Ba.call(this);this.j=null};var V1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],ohb=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.w(FN,g.J);g.k=FN.prototype;g.k.Oc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&(zJ(b,this.C)||zJ(b,ohb))){var d=this.bb.get().Kf(2),e=this.j(b,d||void 0,this.Ia.get().J.W().experiments.ob("enable_post_ad_perception_survey_in_tvhtml5"));e?tK(this.Wb.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[mDa(c.Rb.get(),e.contentCpn,e.Wp,function(h){return c.B(h.slotId,"core",e,IJ(c.jc.get(),h))},e.inPlayerSlotId)];
e.instreamAdPlayerUnderlayRenderer&&nDa(c.Ia.get())&&f.push(PEa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):ZG("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.Yi=function(){};
g.k.jk=function(){};
g.k.Xg=function(){};
g.k.fk=function(){};
g.k.Yg=function(){};
g.k.gk=function(){};
g.k.hk=function(){};
g.k.wj=function(){};
g.k.Rh=function(){};
g.k.Wi=function(){};
g.k.bd=function(){};g.w(GN,g.J);GN.prototype.dk=function(a,b,c,d,e,f,h){var l=this,m=this.bb.get().Kf(1);m.Zu?I1(this.Ka.get()):(jab(this.Wc.get(),d),tK(this.Wb.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return PCa(l.Ee.get(),d,e,f,a,b,h,m,"")}),icb(this.j))};
GN.prototype.Pn=function(){};g.w(HN,g.J);g.w(IN,g.J);IN.prototype.onCueRangeEnter=function(){};
IN.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.Dc.get().removeCueRange(a),tK(this.Wb.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.Rb.get();d=uK(d.jb.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,slotEntryTrigger:c.slotEntryTrigger?hFa(c.slotId,d,c.slotEntryTrigger):void 0,slotFulfillmentTriggers:iFa(c.slotId,d,c.slotFulfillmentTriggers),slotExpirationTriggers:iFa(c.slotId,d,c.slotExpirationTriggers)})]},
c.slotId))};
IN.prototype.dk=function(){for(var a=g.u(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.Dc.get().removeCueRange(b);this.j.clear()};
IN.prototype.Pn=function(){};g.w(JN,g.J);g.k=JN.prototype;g.k.Yi=function(){};
g.k.jk=function(a){var b=this;g.sD(g.uD(),function(){var c=b.j.get(a);c&&ZG("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.pa(c)).map(function(d){return d.layoutType})})},0)};
g.k.Xg=function(){};
g.k.fk=function(){};
g.k.Yg=function(){};
g.k.gk=function(){};
g.k.hk=function(){};
g.k.wj=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.k.Rh=function(a,b){this.zl.has(a)&&this.zl.get(a)===b&&ZG("Unscheduled a Layout that is currently entered.",a,b);if(this.j.has(a)){var c=this.j.get(a);c.has(b)?(c.delete(b),0===c.size&&this.j.delete(a)):ZG("Trying to unscheduled a Layout that was not scheduled.",a,b)}else ZG("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Oc=function(a,b){this.zl.set(a,b)};
g.k.bd=function(a){this.zl.delete(a)};
g.k.Wi=function(){};g.k=REa.prototype;g.k.init=function(){};
g.k.Nc=function(){return this.slot};
g.k.dH=function(){this.callback.Xg(this.slot)};
g.k.fH=function(){this.callback.Yg(this.slot)};
g.k.release=function(){};KN.prototype.build=function(a,b){return new REa(a,b)};g.k=SEa.prototype;g.k.init=function(){};
g.k.Nc=function(){return this.slot};
g.k.dH=function(){J1(this.Ka.get(),"ad-showing");this.callback.Xg(this.slot)};
g.k.fH=function(){this.callback.Yg(this.slot);K1(this.Ka.get(),"ad-showing")};
g.k.release=function(){};g.k=TEa.prototype;g.k.init=function(){};
g.k.Nc=function(){return this.slot};
g.k.dH=function(){J1(this.Ka.get(),"ad-showing");J1(this.Ka.get(),"ad-interrupting");this.B=this.Ka.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.Xg(this.slot)};
g.k.fH=function(){K1(this.Ka.get(),"ad-showing");K1(this.Ka.get(),"ad-interrupting");var a=this.B?Infinity:this.Ka.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ka.get().J.seekTo(a,void 0,void 0,1);this.callback.Yg(this.slot)};
g.k.release=function(){};g.k=UEa.prototype;g.k.init=function(){};
g.k.Nc=function(){return this.slot};
g.k.dH=function(){J1(this.Ka.get(),"ad-showing");J1(this.Ka.get(),"ad-interrupting");this.callback.Xg(this.slot)};
g.k.fH=function(){I1(this.Ka.get());K1(this.Ka.get(),"ad-showing");K1(this.Ka.get(),"ad-interrupting");this.callback.Yg(this.slot)};
g.k.release=function(){I1(this.Ka.get())};LN.prototype.build=function(a,b){if(GJ(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new SEa(a,b,this.Ka);if(b.slotEntryTrigger instanceof LM&&GJ(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new TEa(a,b,this.Ka);if(GJ(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new UEa(a,b,this.Ka);throw new CJ("Unsupported slot with type "+b.slotType+" and client metadata: "+(FJ(b.Ea)+" in PlayerBytesSlotAdapterFactory."));};g.w(MN,g.J);MN.prototype.j=function(a){for(var b=[],c=g.u(this.ac.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof PM&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.triggeringLayoutId===a&&b.push(d)}b.length?VJ(this.ZK(),b):ZG("Mute requested but no registered triggers can be activated.")};g.w(NN,MN);g.k=NN.prototype;g.k.Bh=function(a,b){if(b)if("skip-button"===a){a=[];for(var c=g.u(this.ac.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof PM&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.triggeringLayoutId===b&&a.push(d)}a.length&&VJ(this.ZK(),a)}else xN(this.Ia.get(),"supports_multi_step_on_desktop")?"ad-action-submit-survey"===a&&VEa(this,b):"survey-submit"===a?VEa(this,b):"survey-single-select-answer-button"===a&&VEa(this,b)};
g.k.ON=function(a){MN.prototype.j.call(this,a)};
g.k.ql=function(a,b,c,d){if(this.ac.has(b.triggerId))throw new CJ("Tried to register duplicate trigger for slot.");if(!(b instanceof WM||b instanceof PM))throw new CJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.ac.set(b.triggerId,new XM(a,b,c,d))};
g.k.Fl=function(a){this.ac.delete(a.triggerId)};
g.k.MN=function(){};
g.k.LN=function(){};
g.k.LH=function(){};g.w(ON,g.J);g.k=ON.prototype;
g.k.ql=function(a,b,c,d){if(this.ac.has(b.triggerId))throw new CJ("Tried to register duplicate trigger for slot.");if(!(b instanceof QM||b instanceof RM||b instanceof SM||b instanceof TM||b instanceof UM||b instanceof VM||b instanceof oCa||b instanceof wM||b instanceof JM||b instanceof xM||b instanceof nCa||b instanceof vM))throw new CJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new XM(a,b,c,d);this.ac.set(b.triggerId,a);b instanceof
UM&&this.G.has(b.triggeringSlotId)&&VJ(this.j(),[a]);b instanceof QM&&this.C.has(b.triggeringSlotId)&&VJ(this.j(),[a]);b instanceof wM&&this.B.has(b.triggeringLayoutId)&&VJ(this.j(),[a])};
g.k.Fl=function(a){this.ac.delete(a.triggerId)};
g.k.Yi=function(a){this.G.add(a.slotId);for(var b=[],c=g.u(this.ac.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof UM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&VJ(this.j(),b)};
g.k.jk=function(a){this.G.delete(a.slotId);for(var b=[],c=g.u(this.ac.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof VM&&e.triggeringSlotId===a.slotId&&b.push(d)}0<b.length&&VJ(this.j(),b)};
g.k.fk=function(a){for(var b=[],c=g.u(this.ac.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof oCa&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&VJ(this.j(),b)};
g.k.Xg=function(a){this.C.add(a.slotId);for(var b=[],c=g.u(this.ac.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof QM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&VJ(this.j(),b)};
g.k.Yg=function(a){this.C.delete(a.slotId);this.D.add(a.slotId);for(var b=[],c=g.u(this.ac.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof RM)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof vM){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.triggeringLayoutId)&&b.push(d)}0<b.length&&VJ(this.j(),b)};
g.k.gk=function(a){for(var b=[],c=g.u(this.ac.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof SM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&VJ(this.j(),b)};
g.k.hk=function(a){for(var b=[],c=g.u(this.ac.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof TM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&VJ(this.j(),b)};
g.k.wj=function(a,b){this.K.add(b.layoutId)};
g.k.Rh=function(a,b){this.K.delete(b.layoutId)};
g.k.Oc=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.u(this.ac.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof wM)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof nCa){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof vM&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.D.has(f.slotId)&&c.push(e));0<c.length&&VJ(this.j(),c)};
g.k.bd=function(a,b,c){this.B.delete(b.layoutId);a=[];for(var d=g.u(this.ac.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof JM&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof xM){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}0<a.length&&VJ(this.j(),a)};
g.k.Wi=function(){};
g.k.dk=function(){this.D.clear()};
g.k.Pn=function(){};g.w(PN,g.J);PN.prototype.ql=function(a,b,c,d){if(this.ac.has(b.triggerId))throw new CJ("Tried to register duplicate trigger for slot.");if(!(b instanceof tM))throw new CJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.ac.set(b.triggerId,new XM(a,b,c,d))};
PN.prototype.Fl=function(a){this.ac.delete(a.triggerId)};g.w(RN,g.J);RN.prototype.ql=function(a,b,c,d){if(this.ac.has(b.triggerId))throw new CJ("Tried to register duplicate trigger for slot.");if(!(b instanceof sM||b instanceof NM))throw new CJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.ac.set(b.triggerId,new XM(a,b,c,d))};
RN.prototype.Fl=function(a){this.ac.delete(a.triggerId)};
RN.prototype.dk=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.u(this.ac.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof sM&&l.trigger.Ur===a&&f.push(l);e.call(d,b,g.pa(f));b.push.apply(b,g.pa(WEa(this.ac,a,!1,c)));b.length&&VJ(this.j(),b)};
RN.prototype.Pn=function(a){var b=[];b.push.apply(b,g.pa(WEa(this.ac,a,!0,!1)));b.length&&VJ(this.j(),b)};g.w(SN,g.J);g.k=SN.prototype;
g.k.ql=function(a,b,c,d){if(this.ac.has(b.triggerId))throw new CJ("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(XEa(b))this.ac.set(b.triggerId,{Xu:new XM(a,b,c,d),uv:e});else if(b instanceof LM||b instanceof KM)YEa(this,a,b,c,d,e,b.j.start,b.j.end,b.Ur,b.visible);else if(b instanceof mCa)YEa(this,a,b,c,d,e,b.j.start,b.j.end,b.Ur,!1);else if(b instanceof uM)YEa(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Ur,b.visible);else throw new CJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+
" in CueRangeTriggerAdapter");};
g.k.Fl=function(a){var b=this.ac.get(a.triggerId);b&&this.Dc.get().removeCueRange(b.uv);this.ac.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a,b){b=void 0===b?!1:b;if(a=ZEa(this,a))if(a=this.ac.get(a))if(g.aH(C1(this.Ka.get()),32))this.j.add(a.uv);else{var c=null==a?void 0:a.Xu.trigger;b=b?c instanceof rCa:c instanceof qCa;(c instanceof LM||c instanceof KM||c instanceof uM||c instanceof OM||b)&&VJ(this.B(),[a.Xu])}};
g.k.onCueRangeExit=function(a){if(a=ZEa(this,a))if(a=this.ac.get(a))this.j.delete(a.uv),a.Xu.trigger instanceof mCa&&VJ(this.B(),[a.Xu])};
g.k.xj=function(a){if(0>bH(a,16)){a=g.u(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}};
g.k.Yi=function(){};
g.k.jk=function(){};
g.k.fk=function(){};
g.k.Xg=function(){};
g.k.Yg=function(){};
g.k.gk=function(){};
g.k.hk=function(){};
g.k.wj=function(){};
g.k.Rh=function(){};
g.k.Oc=function(a,b){a=g.u(this.ac.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.Xu.trigger;c=c.uv;if(XEa(d)&&d.layoutId===b.layoutId){var e=1E3*this.Ka.get().getCurrentTimeSec(1,!1);d instanceof OM?d=0:(d=e+d.offsetMs,e=0x7ffffffffffff);this.Dc.get().addCueRange(c,d,e,!1,this)}}};
g.k.bd=function(a,b,c){var d=this;a=g.u(this.ac.values());for(var e=a.next(),f={};!e.done;f={wC:f.wC,Tr:f.Tr},e=a.next())e=e.value,f.Tr=e.Xu.trigger,f.wC=e.uv,XEa(f.Tr)&&f.Tr.layoutId===b.layoutId?nab(this.Dc.get(),f.wC):f.Tr instanceof KM&&f.Tr.layoutId===b.layoutId&&"user_cancelled"===c&&(this.Dc.get().removeCueRange(f.wC),g.sD(g.uD(),function(h){return function(){d.Dc.get().addCueRange(h.wC,h.Tr.j.start,h.Tr.j.end,h.Tr.visible,d)}}(f)))};
g.k.Wi=function(){};
g.k.Vi=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Eh=function(){};
g.k.Zk=function(){};
g.k.vj=function(){};
g.k.onVolumeChange=function(){};
g.k.Yk=function(){};g.w(TN,g.J);g.k=TN.prototype;
g.k.ql=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new CJ("Tried to re-register the trigger.");a=new XM(a,b,c,d);if(a.trigger instanceof kCa)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof jCa)this.C.set(a.trigger.triggerId,a);else throw new CJ("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&VJ(this.D(),[a])};
g.k.Fl=function(a){this.B.delete(a.triggerId);this.C.delete(a.triggerId)};
g.k.VI=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.pa($Ea(this.C,this.j)));null!=a&&b.push.apply(b,g.pa($Ea(this.B,a)));this.j=a;b.length&&VJ(this.D(),b)}};
g.k.dJ=function(){};
g.k.cJ=function(){};g.w(UN,g.J);g.k=UN.prototype;g.k.ql=function(a,b,c,d){if(this.ac.has(b.triggerId))throw new CJ("Tried to register duplicate trigger for slot.");if(!(b instanceof MM))throw new CJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.ac.set(b.triggerId,new XM(a,b,c,d))};
g.k.Fl=function(a){this.ac.delete(a.triggerId)};
g.k.Oc=function(){};
g.k.bd=function(){};
g.k.Yi=function(){};
g.k.jk=function(){};
g.k.fk=function(){};
g.k.Xg=function(){};
g.k.Yg=function(){};
g.k.gk=function(){};
g.k.hk=function(){};
g.k.wj=function(){};
g.k.Rh=function(){};
g.k.Wi=function(){};g.w(VN,g.J);g.k=VN.prototype;g.k.Wi=function(a,b){for(var c=[],d=g.u(this.ac.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&VJ(this.j(),c)};
g.k.ql=function(a,b,c,d){if(this.ac.has(b.triggerId))throw new CJ("Tried to register duplicate trigger for slot.");if(!(b instanceof Yya))throw new CJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.ac.set(b.triggerId,new XM(a,b,c,d))};
g.k.Fl=function(a){this.ac.delete(a.triggerId)};
g.k.Yi=function(){};
g.k.jk=function(){};
g.k.fk=function(){};
g.k.Xg=function(){};
g.k.Yg=function(){};
g.k.gk=function(){};
g.k.hk=function(){};
g.k.wj=function(){};
g.k.Rh=function(){};
g.k.Oc=function(){};
g.k.bd=function(){};g.w(WN,g.J);g.k=WN.prototype;g.k.ql=function(a,b,c,d){if(this.ac.has(b.triggerId))throw new CJ("Tried to register duplicate trigger for slot.");if(!(b instanceof sCa))throw new CJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.ac.set(b.triggerId,new XM(a,b,c,d));a=this.j.has(b.triggeringLayoutId)?this.j.get(b.triggeringLayoutId):new Set;a.add(b);this.j.set(b.triggeringLayoutId,a)};
g.k.Fl=function(a){this.ac.delete(a.triggerId);if(!(a instanceof sCa))throw new CJ("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.B.get(a.triggerId);b&&(b.dispose(),this.B.delete(a.triggerId));if(b=this.j.get(a.triggeringLayoutId))b.delete(a),0===b.size&&this.j.delete(a.triggeringLayoutId)};
g.k.Yi=function(){};
g.k.jk=function(){};
g.k.fk=function(){};
g.k.Xg=function(){};
g.k.Yg=function(){};
g.k.gk=function(){};
g.k.hk=function(){};
g.k.wj=function(){};
g.k.Rh=function(){};
g.k.Wi=function(){};
g.k.Oc=function(a,b){var c=this;if(this.j.has(b.layoutId)){a=this.j.get(b.layoutId);a=g.u(a);var d=a.next();for(b={};!d.done;b={DF:b.DF},d=a.next())b.DF=d.value,d=new g.au(function(e){return function(){var f=c.ac.get(e.DF.triggerId);VJ(c.C(),[f])}}(b),b.DF.durationMs),d.start(),this.B.set(b.DF.triggerId,d)}};
g.k.bd=function(){};g.w(XN,g.J);XN.prototype.ql=function(a,b,c,d){if(this.ac.has(b.triggerId))throw new CJ("Tried to register duplicate trigger for slot.");if(!(b instanceof qM))throw new CJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.ac.set(b.triggerId,new XM(a,b,c,d))};
XN.prototype.Fl=function(a){this.ac.delete(a.triggerId)};g.w(bO,g.J);bO.prototype.logEvent=function(a){this.j(a)};
bO.prototype.j=function(a,b,c,d,e,f,h,l,m,n,p){var q=this;p=void 0===p?0:p;try{p&&0<p?g.sD(g.uD(),function(){return void nFa(q,a,b,c,d,e,f,h,l,m,n)},p):nFa(this,a,b,c,d,e,f,h,l,m,n)}catch(r){xN(this.Ia.get(),"html5_log_pacf_logging_errors")&&g.sD(g.uD(),function(){ZG(r instanceof Error?r:String(r),e,f,{pacf_message:"exception during pacf logging"})})}};
bO.prototype.hR=function(){return this.Ia.get().hR()};g.w(cO,bO);cO.prototype.j=function(a,b,c,d,e,f,h,l,m,n){var p=this.Ia.get();g.UJ(p.J.W())&&xN(p,"H5_use_async_logging")?(p=this.Ia.get(),p=g.JJ(p.J.W().experiments,"H5_async_logging_delay_ms")):p=void 0;bO.prototype.j.call(this,a,b,c,d,e,f,h,l,m,n,p)};dO.prototype.clear=function(){this.j.clear()};var oFa=!1,fO,gO,hO,iO,jO;g.w(kO,g.J);
kO.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.B,d=0;d<b&&16>this.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d<e;)pFa(this),a[d++]^=c[0],a[d++]^=c[1],a[d++]^=c[2],a[d++]^=c[3],a[d++]^=c[4],a[d++]^=c[5],a[d++]^=c[6],a[d++]^=c[7],a[d++]^=c[8],a[d++]^=c[9],a[d++]^=c[10],a[d++]^=c[11],a[d++]^=c[12],a[d++]^=c[13],a[d++]^=c[14],a[d++]^=c[15];if(d<b)for(pFa(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};
kO.prototype.TJ=function(a){for(var b=0;4>b;b++)this.counter[b]=a[4*b]<<24|a[4*b+1]<<16|a[4*b+2]<<8|a[4*b+3];this.j=16};var qFa=!1;(function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a})();
var lO;oO.prototype.Th=function(a,b){b=void 0===b?1:b;this.j+=b;this.C+=a;a/=b;for(var c=0;c<nO.length&&!(a<nO[c]);++c)this.B[c]+=b};
oO.prototype.toString=function(){return""};
var nO=[20,100,500,2E3];g.k=uFa.prototype;g.k.isActive=function(){return!0};
g.k.yu=function(){return!1};
g.k.AD=function(a,b){var c=this;if(b){var d={},e;for(e in b)d={TP:d.TP,AQ:d.AQ},b.hasOwnProperty(e)&&(d.TP=a.prototype[e],d.AQ=b[e],a.prototype[e]=function(f){return function(){var h=g.Ja.apply(0,arguments),l=(0,g.OD)();h=f.TP.apply(this,h);vFa(c,f.AQ,(0,g.OD)()-l);return h}}(d))}};
g.k.Nr=function(a){return new tFa(a)};
g.k.wq=function(a,b){b=void 0===b?1:b;a instanceof tFa&&(vFa(this,a.name,(0,g.OD)()-a.startTimeMs,b),a.j=!0)};
g.k.ll=function(a,b,c){c=void 0===c?1:c;var d=(0,g.OD)();b=b();vFa(this,a,(0,g.OD)()-d,c);return b};
g.k.YM=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=rFa(this.j[b]);c&&(a[b]=c)}this.j=new sFa;return a};
g.k.toString=function(){return""};g.k=yFa.prototype;g.k.isActive=function(){return!0};
g.k.yu=function(){return!0};
g.k.AD=function(a,b){var c=this;if(b){var d={},e;for(e in b)d={UP:d.UP,BQ:d.BQ},b.hasOwnProperty(e)&&(d.UP=a.prototype[e],d.BQ=b[e],a.prototype[e]=function(f){return function(){var h=g.Ja.apply(0,arguments),l=(0,g.OD)();h=f.UP.apply(this,h);return AFa(c,h,f.BQ,l)}}(d))}};
g.k.Nr=function(a){return new xFa(a)};
g.k.wq=function(a,b){b=void 0===b?1:b;a instanceof xFa&&(zFa(this,a.name,(0,g.OD)()-a.startTimeMs,b),a.j=!0)};
g.k.ll=function(a,b){var c=(0,g.OD)();b=b();return AFa(this,b,a,c)};
g.k.YM=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=rFa(this.j[b]);c&&(a[b]=c)}this.j=new wFa;return a};
g.k.toString=function(){return""};g.k=BFa.prototype;g.k.isActive=function(){return!1};
g.k.yu=function(){return!0};
g.k.AD=function(){};
g.k.Nr=function(){};
g.k.wq=function(){};
g.k.ll=function(a,b){return b()};
g.k.YM=function(){return{}};
g.k.toString=function(){return""};var k3,phb,qhb,rhb,shb,thb,uhb,H0,pO,CZ,c$a,IR;k3=new BFa;phb=!!+RB("html5_enable_profiler");qhb=!!+RB("html5_onesie_enable_profiler");rhb=!!+RB("html5_offline_encryption_enable_profiler");shb=!!+RB("html5_performance_impact_profiling_timer_ms");thb=!!+RB("html5_drm_enable_profiler");uhb=!!+RB("html5_use_experimental_profiler");H0=phb||qhb||rhb||shb||thb?uhb?new yFa:new uFa:k3;g.pY=phb?H0:k3;pO=qhb?H0:k3;CZ=rhb?H0:k3;c$a=shb?H0:k3;IR=thb?H0:k3;g.w(qO,g.J);qO.prototype.encrypt=function(a){this.B(this.cipher,a.byteOffset,a.byteLength);return a};
qO.prototype.TJ=function(a){this.j.exports.AES128CTRCipher_setCounter(this.cipher,a.byteOffset)};g.rO.prototype.encrypt=function(a,b){var c=this,d,e;return g.H(function(f){if(1==f.j){d=mO();if(!d)return f.return(c.j(a,b));g.za(f,3);return g.z(f,c.B(a,b,d),5)}if(3!=f.j)return f.return(f.B);e=g.Ca(f);g.UF(e);qFa=!0;return f.return(c.j(a,b))})};
g.rO.prototype.B=function(a,b,c){var d=this,e,f;return g.H(function(h){switch(h.j){case 1:if(d.G){h.Ma(2);break}return g.z(h,c.importKey("raw",d.D,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:d.G=h.B;case 2:return e={name:"AES-CTR",counter:b,length:128},g.z(h,c.encrypt(e,d.G,a),4);case 4:return f=h.B,h.return(new Uint8Array(f))}})};
g.rO.prototype.j=function(a,b){this.C||(this.C=new kO(this.D));this.C.TJ(b);return this.C.encrypt(a)};
g.rO.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.w(g.sO,g.J);g.sO.prototype.encrypt=function(a,b){this.j||(this.j=new kO(this.B),g.L(this,this.j));this.j.TJ(b);return this.j.encrypt(a)};
g.sO.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.w(tO,g.J);tO.prototype.encrypt=function(a,b){this.C||(this.C=new qO(this.j,this.D),g.L(this,this.C));this.C.TJ(b);return this.C.encrypt(a)};
tO.prototype.decrypt=function(a,b){return this.encrypt(a,b)};DFa.prototype.reset=function(){FFa(this);this.update(this.C)};
DFa.prototype.update=function(a){var b=0,c=a.length;this.D+=c;this.B&&64<=this.B+c&&(this.K.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,EFa(this,this.K,0));for(;b+64<=c;b+=64)EFa(this,a,b);b<c&&(a=a.subarray(b),this.K.set(a,this.B),this.B+=a.length)};
var uO=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var vhb;vhb={};g.whb=g.hE("yt-idb-pref-storage",{ir:(vhb.prefs={Tm:1},vhb),shared:!1,upgrade:function(a,b){b(1)&&g.VD(g.PD(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});vO.prototype.getState=function(){return this.store.getState()};
vO.prototype.dispatch=function(a){return this.store.dispatch(a)};
vO.prototype.subscribe=function(a){return this.store.subscribe(a)};
vO.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
vO.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};wO.prototype.append=function(a){if(PFa(this,a)){var b=this.j[this.j.length-1];this.j[this.j.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);QFa(this)}else this.j.push(a);this.totalLength+=a.length};
wO.prototype.split=function(a){for(var b=new wO,c=new wO,d=g.u(this.j),e=d.next();!e.done;e=d.next())e=e.value,a>=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{QH:b,Gm:c}};
wO.prototype.isFocused=function(a){return a>=this.C&&a<this.C+this.j[this.B].length};
wO.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.C&&QFa(this);this.C+this.j[this.B].length<=a&&this.B<this.j.length;)this.C+=this.j[this.B].length,this.B+=1;this.D=void 0}};var EO,CO,GO;g.$Z=function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a}();
EO=Array(1024);CO=window.TextDecoder?new TextDecoder:void 0;GO=window.TextEncoder?new TextEncoder:void 0;for(var dGa={buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,emojiFountainDataEntity:393,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,
liveChatPollStateEntity:217,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,
musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,
saveToPlaylistListEntity:231,settingEntity:297,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},cGa={},xhb=g.u(Object.entries(dGa)),yhb=xhb.next();!yhb.done;yhb=xhb.next()){var zhb=g.u(yhb.value),Ahb=zhb.next().value,Bhb=zhb.next().value,Chb=Ahb,Dhb=Bhb;Dhb&&(cGa[Dhb]=Chb)};var l3;l3={};g.Ehb=(l3.INVALID_ENCODER_VERSION="Invalid encoder version",l3.KEY_CREATION_FAILED="Failed to create encoder key",l3.UNKNOWN_DECODE_ERROR="Failed to decode PES data",l3.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",l3.WRONG_DATA_TYPE="Encoder cannot process the data type",l3);var dP=window.Cdb||"en-GB";var iKa=[3611,27686,85013,23462,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,98349,168271,168954,168277,168273,168270,123695,6827,29434,171388,7282,124448,32276,76278,147868,147869,93911,106531,177843,27259,27262,27263,21759,160866,180626,177959,177957,180628,171243,160789,171244,171241,171245,171242,180627,177960,177958,180629,177565,175492,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,
175505,175506,175507,175508,80637,68727,68728,80353,80356,180635,74610,45707,83962,83970,46713,166591,89711,74612,179607,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,93252,99357,94521,114252,113532,94522,94583,88E3,139580,93253,93254,94387,94388,93255,97424,72502,110111,76019,117092,117093,89431,191831,110466,77240,60508,186091,148123,148124,137401,137402,137046,73393,113534,92098,131381,84517,83759,162711,162712,80357,86113,72598,168413,72733,107349,124275,
118203,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,144401,117431,133797,153964,128572,190337,133405,117429,117430,177950,174734,177951,117432,173996,173995,174953,173994,173997,120080,117259,178546,156655,156654,121692,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,
144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,160801,95117,172721,150497,98930,98931,98932,153320,153321,43347,129889,149123,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,93278,93274,93275,93276,22110,29433,133798,132295,120541,82047,113550,75836,75837,192409,42352,84512,76065,75989,51879,16623,32594,27240,32633,74858,156999,3945,16989,45520,25488,25492,25494,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,189660,
46220,11721,147994,49954,96369,3854,151633,56251,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,109512,22256,14115,22696,89278,89277,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,
135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,191885,166382,37671,49953,191389,187917,191390,179556,191402,191392,191393,36216,28237,173718,39553,192547,29222,26107,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,74723,44098,173689,
44099,23528,61699,134104,134103,59149,181013,173191,173192,173193,101951,171502,97346,118051,95102,64882,119505,63595,63349,95101,75240,27039,68823,21537,83464,75707,170215,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,
63649,111059,5754,20445,151308,151152,130975,130976,191925,167637,110386,113746,66557,183215,17310,28631,21589,164817,168011,154946,68012,162617,60480,184431,138664,194E3,141121,164502,31571,141978,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,4724,59369,43927,43928,12924,100355,56219,27669,10337,47896,122629,186204,139723,139722,121258,107598,127991,96639,107536,130169,96661,145188,96658,116646,159428,168611,168612,121122,96660,127738,127083,155281,162959,163566,186641,
147842,104443,96659,147595,106442,182423,162776,134840,63667,63668,63669,130686,147036,189810,78314,147799,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,49956,190190,31961,26388,23811,5E4,126250,96370,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,68314,25602,100339,170873,143516,178921,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,53969,8213,93926,102852,110099,22678,69076,137575,139224,100856,154430,17736,
3832,147111,55759,64031,93044,93045,170701,170702,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,161612,161614,82039];var S9a={adNotify:function(a){var b=new Kx,c=0;try{var d=a.adMediaTimeSec;void 0!==d&&(Gj(b,1,d),c++);var e=a.adMediaTimeMs;void 0!==e&&(Ij(b,6,e),c++);var f=a.timeToAdBreakSec;void 0!==f&&(Gj(b,2,f),c++);var h=a.clientScreenNonce;void 0!==h&&(N(b,3,h),c++);var l=a.clientPlaybackNonce;void 0!==l&&(N(b,4,l),c++);var m=a.videoAdBreakOffsetSec;void 0!==m&&(Gj(b,5,m),c++);var n=a.videoAdBreakOffsetMs;void 0!==n&&(Ij(b,7,n),c++);return[c===Object.keys(a).length,b]}catch(p){return W(p),[!1,void 0]}},
biscottiBasedDetection:function(a){var b=new Kz,c=0;try{var d=a.detected;void 0!==d&&(Fj(b,1,d),c++);var e=a.source;void 0!==e&&(N(b,2,e),c++);var f=a.contentCpn;void 0!==f&&(N(b,3,f),c++);var h=a.contentCsn;void 0!==h&&(N(b,4,h),c++);var l=a.method;void 0!==l&&(Gj(b,5,l),c++);var m=a.result;void 0!==m&&(Gj(b,6,m),c++);var n=a.detectionResult;void 0!==n&&(O(b,9,rfb[n]),c++);var p=a.adCpn;void 0!==p&&(N(b,7,p),c++);var q=a.playbackType;void 0!==q&&(N(b,8,q),c++);return[c===Object.keys(a).length,b]}catch(r){return W(r),
[!1,void 0]}},
adNotifyFilled:function(a){var b=new Jx,c=0;try{var d=a.notifyCompositeType;void 0!==d&&(O(b,1,afb[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}},
idbTransactionEnded:function(a){var b=new nB,c=0;try{var d=a.objectStoreNames;void 0!==d&&(N(b,1,d),c++);var e=a.duration;void 0!==e&&(b.wl(e),c++);var f=a.isSuccessful;void 0!==f&&(Fj(b,3,f),c++);var h=a.connectionHasUnknownAbortedTransaction;void 0!==h&&(Fj(b,4,h),c++);var l=a.tryCount;void 0!==l&&(Gj(b,5,l),c++);var m=a.tag;void 0!==m&&(O(b,6,Hfb[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return W(n),[!1,void 0]}},
idbUnexpectedlyClosed:function(a){var b=new nma,c=0;try{var d=a.dbName;void 0!==d&&(N(b,1,d),c++);var e=a.dbVersion;void 0!==e&&(Gj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}},
flowEvent:function(a){var b=new hma,c=0;try{var d=a.flowNonce;void 0!==d&&(N(b,1,d),c++);var e=a.flowEventType;if(e){var f=new gma,h=0;try{var l=e.flowEventNamespace;void 0!==l&&(O(f,1,Afb[l]),h++);var m=e.flowEventType;void 0!==m&&(Gj(f,2,m),h++);var n=[h===Object.keys(e).length,f]}catch(Ma){W(Ma),n=[!1,void 0]}var p=n;p[0]&&(tj(b,gma,2,p[1]),c++)}var q=a.flowMetadata;if(q){var r=new fma,t=0;try{var v=q.notaireContext;if(v){var x=new HA,B=0;try{var G=v.serverInfo;if(G){var F=new GA,I=0;try{var P=
G.id;void 0!==P&&(N(F,1,P),I++);var R=G.forceLog;void 0!==R&&(Fj(F,2,R),I++);var Z=[I===Object.keys(G).length,F]}catch(Ma){W(Ma),Z=[!1,void 0]}var ma=Z;ma[0]&&(tj(x,GA,1,ma[1]),B++)}var ua=v.clientInfo;if(ua){var oa=new FA,ia=0;try{var Aa=ua.timeSinceReceivedMs;void 0!==Aa&&(Ij(oa,1,Aa),ia++);var X=[ia===Object.keys(ua).length,oa]}catch(Ma){W(Ma),X=[!1,void 0]}var wa=X;wa[0]&&(tj(x,FA,2,wa[1]),B++)}var ca=[B===Object.keys(v).length,x]}catch(Ma){W(Ma),ca=[!1,void 0]}var Ra=ca;Ra[0]&&(tj(r,HA,1,Ra[1]),
t++)}var y=q.offlineTransferStatusChangedContext;if(y){var V=new NA,ib=0;try{var fb=y.offlineTransferStatusChanged;if(fb){var Za=tIa(fb);Za[0]&&(tj(V,MA,1,Za[1]),ib++)}var $a=[ib===Object.keys(y).length,V]}catch(Ma){W(Ma),$a=[!1,void 0]}var ic=$a;ic[0]&&(tj(r,NA,2,ic[1]),t++)}var Rb=q.offlineOrchestrationContext;if(Rb){var bb=new JA,ec=0;try{var jb=Rb.entityType;void 0!==jb&&(Gj(bb,1,jb),ec++);var A=Rb.entityId;void 0!==A&&(N(bb,7,A),ec++);var D=Rb.offlineOrchestrationActionType;void 0!==D&&(O(bb,
6,agb[D]),ec++);var E=Rb.offlineOrchestrationActionResult;void 0!==E&&(O(bb,2,$fb[E]),ec++);var C=Rb.offlineOrchestrationFailureReason;void 0!==C&&(O(bb,10,bgb[C]),ec++);var K=Rb.isRetryable;void 0!==K&&(Fj(bb,3,K),ec++);var Y=Rb.isRestored;void 0!==Y&&(Fj(bb,11,Y),ec++);var ka=Rb.orchestrationAction;if(ka){var va=sJa(ka);va[0]&&(tj(bb,IA,4,va[1]),ec++)}var ea=Rb.additionalOrchestrationActions;ea&&(fP(bb.j.bind(bb),ea,sJa),ec++);var ha=Rb.intervalSinceEnqueuedMs;void 0!==ha&&(Ij(bb,8,ha),ec++);var Ea=
Rb.executionIntervalMs;void 0!==Ea&&(Ij(bb,9,Ea),ec++);var Da=[ec===Object.keys(Rb).length,bb]}catch(Ma){W(Ma),Da=[!1,void 0]}var nb=Da;nb[0]&&(tj(r,JA,3,nb[1]),t++)}var Vb=q.shortsCreationContext;if(Vb){var Lb=new bB,Ob=0;try{var Ab=Vb.shortsCreationSurfaces;void 0!==Ab&&(gP(Lb.j.bind(Lb),Ab,mgb),Ob++);var Kb=[Ob===Object.keys(Vb).length,Lb]}catch(Ma){W(Ma),Kb=[!1,void 0]}var Fc=Kb;Fc[0]&&(tj(r,bB,4,Fc[1]),t++)}var yc=q.mdxConnectionContext;if(yc){var $c=new BA,Wc=0;try{var ad=yc.isReconnection;
void 0!==ad&&(Fj($c,1,ad),Wc++);var kd=yc.disconnectReason;void 0!==kd&&(O($c,2,Kfb[kd]),Wc++);var Zb=yc.isRetry;void 0!==Zb&&(Fj($c,3,Zb),Wc++);var Kd=[Wc===Object.keys(yc).length,$c]}catch(Ma){W(Ma),Kd=[!1,void 0]}var xd=Kd;xd[0]&&(tj(r,BA,5,xd[1]),t++)}var $b=q.premiumMultiStepPurchaseContext;if($b){var bd=new UA,cd=0;try{var kb=$b.selectedOption;if(kb){var Hb=new TA,Oe=0;try{var qf=kb.offerType;void 0!==qf&&(O(Hb,1,Heb[qf]),Oe++);var cf=kb.itemType;void 0!==cf&&(O(Hb,2,tP[cf]),Oe++);var pe=kb.itemExternalId;
void 0!==pe&&(N(Hb,3,pe),Oe++);var Ce=[Oe===Object.keys(kb).length,Hb]}catch(Ma){W(Ma),Ce=[!1,void 0]}var qe=Ce;qe[0]&&(tj(bd,TA,1,qe[1]),cd++)}var $g=$b.itemType;void 0!==$g&&(O(bd,2,tP[$g]),cd++);var tg=$b.productType;void 0!==tg&&(O(bd,3,uP[tg]),cd++);var ah=$b.landingPageVariantId;void 0!==ah&&(N(bd,4,ah),cd++);var bh=$b.experimentStatus;void 0!==bh&&(O(bd,5,Mfb[bh]),cd++);var ch=$b.themeKey;void 0!==ch&&(N(bd,6,ch),cd++);var dh=$b.signupType;void 0!==dh&&(O(bd,7,Nfb[dh]),cd++);var De=[cd===Object.keys($b).length,
bd]}catch(Ma){W(Ma),De=[!1,void 0]}var Ee=De;Ee[0]&&(tj(r,UA,6,Ee[1]),t++)}var dd=q.mdxReceiverConnectionContext;if(dd){var Sd=new CA,Ed=0;try{var eh=dd.isFromAppLaunch;void 0!==eh&&(Fj(Sd,1,eh),Ed++);var fh=dd.dialServerType;void 0!==fh&&(O(Sd,2,Jfb[fh]),Ed++);var gh=dd.supportsSmoothPairing;void 0!==gh&&(Fj(Sd,3,gh),Ed++);var df=dd.hasManuallyPairedRemotesOnAppStartup;void 0!==df&&(Fj(Sd,4,df),Ed++);var ed=dd.mismatchedTheme;void 0!==ed&&(O(Sd,5,Deb[ed]),Ed++);var rc=dd.mdxSenderConnectedCounter;
void 0!==rc&&(Gj(Sd,6,rc),Ed++);var Ph=dd.externalRouteSource;void 0!==Ph&&(O(Sd,7,Ifb[Ph]),Ed++);var Qh=dd.appReloadCount;void 0!==Qh&&(Gj(Sd,8,Qh),Ed++);var Rh=[Ed===Object.keys(dd).length,Sd]}catch(Ma){W(Ma),Rh=[!1,void 0]}var Sh=Rh;Sh[0]&&(tj(r,CA,7,Sh[1]),t++)}var ef=q.parentToolsOnboardingContext;if(ef){var Pe=new PA,Qe=0;try{var hh=ef.triggerPoint;void 0!==hh&&(O(Pe,1,Teb[hh]),Qe++);var ld=ef.kidsFlowInfo;if(ld){var zc=new OA,Oc=0;try{var rf=ld.kidsFlowVersion;void 0!==rf&&(O(zc,1,Qeb[rf]),
Oc++);var sf=ld.flowLabel;void 0!==sf&&(N(zc,2,sf),Oc++);var Gf=ld.hostClientName;void 0!==Gf&&(O(zc,3,Reb[Gf]),Oc++);var Wf=ld.hostClientVersion;void 0!==Wf&&(N(zc,4,Wf),Oc++);var ug=ld.kidsFlowType;void 0!==ug&&(O(zc,5,Peb[ug]),Oc++);var rd=[Oc===Object.keys(ld).length,zc]}catch(Ma){W(Ma),rd=[!1,void 0]}var Xf=rd;Xf[0]&&(tj(Pe,OA,2,Xf[1]),Qe++)}var zi=ef.kidsCorpusPreferenceNew;void 0!==zi&&(O(Pe,3,Oeb[zi]),Qe++);var vg=ef.appChoice;void 0!==vg&&(O(Pe,4,Seb[vg]),Qe++);var ih=ef.isKidSignedIn;void 0!==
ih&&(Fj(Pe,5,ih),Qe++);var jh=ef.alreadyOnboardedYtk;void 0!==jh&&(Fj(Pe,6,jh),Qe++);var Th=ef.alreadyOnboardedSupex;void 0!==Th&&(Fj(Pe,7,Th),Qe++);var wg=[Qe===Object.keys(ef).length,Pe]}catch(Ma){W(Ma),wg=[!1,void 0]}var xg=wg;xg[0]&&(tj(r,PA,8,xg[1]),t++)}var Fe=q.hashtagAutoCompleteContext;if(Fe){var Uh=new iA,Yf=0;try{var kh=Fe.suggestionSelected;void 0!==kh&&(Gj(Uh,1,kh),Yf++);var Zf=[Yf===Object.keys(Fe).length,Uh]}catch(Ma){W(Ma),Zf=[!1,void 0]}var Yi=Zf;Yi[0]&&(tj(r,iA,9,Yi[1]),t++)}var Ge=
q.liveStreamingContext;if(Ge){var He=new AA,Td=0;try{var lh=Ge.broadcastSource;void 0!==lh&&(O(He,1,Zeb[lh]),Td++);var ff=Ge.isAutoDashboard;void 0!==ff&&(Fj(He,2,ff),Td++);var tf=Ge.externalVideoId;void 0!==tf&&(N(He,3,tf),Td++);var $f=Ge.broadcastConferenceType;void 0!==$f&&(O(He,4,Xeb[$f]),Td++);var gf=Ge.eventData;if(gf){var mh=new zA,nh=0;try{var uf=gf.webrtcHandshakeOffer;if(uf){var yg=new yA,zg=0;try{var oh=uf.localVideoSsrc;void 0!==oh&&(Hj(yg,1,oh),zg++);var Ai=uf.localAudioSsrc;void 0!==
Ai&&(Hj(yg,2,Ai),zg++);var Bi=uf.participantId;void 0!==Bi&&(Jj(yg,3,Bi),zg++);var Pk=[zg===Object.keys(uf).length,yg]}catch(Ma){W(Ma),Pk=[!1,void 0]}var Rl=Pk;Rl[0]&&(tj(mh,yA,1,Rl[1]),nh++)}var Re=gf.webrtcHandshakeAnswer;if(Re){var Ie=new wA,Se=0;try{var Ag=Re.remoteVideoSsrc;void 0!==Ag&&(Hj(Ie,1,Ag),Se++);var Zi=Re.remoteAudioSsrc;void 0!==Zi&&(Hj(Ie,2,Zi),Se++);var Bg=[Se===Object.keys(Re).length,Ie]}catch(Ma){W(Ma),Bg=[!1,void 0]}var Mj=Bg;Mj[0]&&(tj(mh,wA,2,Mj[1]),nh++)}var $i=gf.webrtcHandshakeError;
if($i){var Nj=new xA,aj=0;try{var Sl=$i.description;void 0!==Sl&&(N(Nj,1,Sl),aj++);var Ci=[aj===Object.keys($i).length,Nj]}catch(Ma){W(Ma),Ci=[!1,void 0]}var Vh=Ci;Vh[0]&&(tj(mh,xA,3,Vh[1]),nh++)}var Wh=gf.costreamStartNotification;if(Wh){var bj=new sA,Oj=0;try{var Pj=Wh.broadcastStartTimeMs;void 0!==Pj&&(Ij(bj,1,Pj),Oj++);var Xh=[Oj===Object.keys(Wh).length,bj]}catch(Ma){W(Ma),Xh=[!1,void 0]}var re=Xh;re[0]&&(tj(mh,sA,4,re[1]),nh++)}var Cg=gf.remoteParticipant;if(Cg){var Yh=new uA,Qj=0;try{var vf=
Cg.videoSsrc;void 0!==vf&&(Hj(Yh,1,vf),Qj++);var Rj=Cg.audioSsrc;void 0!==Rj&&(Hj(Yh,2,Rj),Qj++);var Qk=[Qj===Object.keys(Cg).length,Yh]}catch(Ma){W(Ma),Qk=[!1,void 0]}var cj=Qk;cj[0]&&(tj(mh,uA,5,cj[1]),nh++)}var wf=gf.webcamEventData;if(wf){var xf=new vA,ag=0;try{var Di=wf.videoFrameRate;void 0!==Di&&(Kj(xf,1,Di),ag++);var Ei=wf.videoAspectRatio;void 0!==Ei&&(Kj(xf,2,Ei),ag++);var Tl=wf.videoHeight;void 0!==Tl&&(Hj(xf,3,Tl),ag++);var Sj=wf.videoWidth;void 0!==Sj&&(Hj(xf,4,Sj),ag++);var nc=wf.videoCaptureCursor;
void 0!==nc&&(N(xf,5,nc),ag++);var xs=wf.videoCaptureSurface;void 0!==xs&&(N(xf,6,xs),ag++);var hq=wf.videoCaptureAudioEnabled;void 0!==hq&&(Fj(xf,7,hq),ag++);var Ul=[ag===Object.keys(wf).length,xf]}catch(Ma){W(Ma),Ul=[!1,void 0]}var Eo=Ul;Eo[0]&&(tj(mh,vA,6,Eo[1]),nh++)}var dj=gf.errorEventData;if(dj){var Vl=new tA,Sm=0;try{var Tj=dj.liveClientErrorType;void 0!==Tj&&(O(Vl,1,Veb[Tj]),Sm++);var Wl=dj.liveServerErrorType;void 0!==Wl&&(O(Vl,2,Web[Wl]),Sm++);var Rk=dj.kioskClientApiErrorType;void 0!==
Rk&&(O(Vl,3,Ueb[Rk]),Sm++);var iq=[Sm===Object.keys(dj).length,Vl]}catch(Ma){W(Ma),iq=[!1,void 0]}var jq=iq;jq[0]&&(tj(mh,tA,7,jq[1]),nh++)}var Uj=[nh===Object.keys(gf).length,mh]}catch(Ma){W(Ma),Uj=[!1,void 0]}var kq=Uj;kq[0]&&(tj(He,zA,5,kq[1]),Td++)}var Sk=Ge.isMonetizationOn;void 0!==Sk&&(Fj(He,6,Sk),Td++);var Tk=Ge.sharedmdeEnabled;void 0!==Tk&&(Fj(He,7,Tk),Td++);var Te=Ge.isScreencast;void 0!==Te&&(Fj(He,8,Te),Td++);var Zh=Ge.broadcastLifecycleStatus;void 0!==Zh&&(O(He,9,Yeb[Zh]),Td++);var Tm=
Ge.hasCreatedMobileLivestream;void 0!==Tm&&(Fj(He,10,Tm),Td++);var lq=[Td===Object.keys(Ge).length,He]}catch(Ma){W(Ma),lq=[!1,void 0]}var Um=lq;Um[0]&&(tj(r,AA,10,Um[1]),t++)}var ph=q.touAppealContext;if(ph){var qh=new iB,se=0;try{var Fi=ph.scope;void 0!==Fi&&(N(qh,1,Fi),se++);var $h=ph.videoId;if($h){var Fo=new hB,Uk=0;try{var Xl=$h.externalVideoId;void 0!==Xl&&(N(Fo,1,Xl),Uk++);var Vk=[Uk===Object.keys($h).length,Fo]}catch(Ma){W(Ma),Vk=[!1,void 0]}var mq=Vk;mq[0]&&(qh.setVideoId(mq[1]),se++)}var Yl=
ph.videoThumbnailId;if(Yl){var Vm=new Xla,Wm=0;try{var nq=Yl.externalVideoId;void 0!==nq&&(N(Vm,1,nq),Wm++);var oq=Yl.thumbnailVersion;void 0!==oq&&(Jj(Vm,3,oq),Wm++);var Zl=Yl.checksum;void 0!==Zl&&(Jj(Vm,4,Zl),Wm++);var Xm=[Wm===Object.keys(Yl).length,Vm]}catch(Ma){W(Ma),Xm=[!1,void 0]}var Ym=Xm;Ym[0]&&(uj(qh,Xla,3,L2,Ym[1]),se++)}var uc=ph.playlistId;if(uc){var Hf=new eB,ai=0;try{var Zm=uc.externalPlaylistId;void 0!==Zm&&(N(Hf,1,Zm),ai++);var $l=[ai===Object.keys(uc).length,Hf]}catch(Ma){W(Ma),
$l=[!1,void 0]}var $m=$l;$m[0]&&(uj(qh,eB,4,L2,$m[1]),se++)}var Wk=ph.urlHostname;void 0!==Wk&&(pj(qh,5,L2,ti(Wk)),se++);var Xk=ph.encodedTouViolativeContentId;void 0!==Xk&&(N(qh,6,Xk),se++);var am=ph.encodedChannelTouViolativeContentId;void 0!==am&&(N(qh,7,am),se++);var ej=ph.trainingData;if(ej){var fj=new gB,Vj=0;try{var an=ej.question;if(an){var bn=new Wla,Go=0;try{var cn=an.questionId;void 0!==cn&&(Gj(bn,1,cn),Go++);var dn=an.supplementaryInfoId;void 0!==dn&&(Gj(bn,2,dn),Go++);var en=[Go===Object.keys(an).length,
bn]}catch(Ma){W(Ma),en=[!1,void 0]}var Ho=en;Ho[0]&&(tj(fj,Wla,1,Ho[1]),Vj++)}var Io=ej.answers;Io&&(fP(fj.j.bind(fj),Io,tJa),Vj++);var pq=ej.correctAnswers;pq&&(fP(fj.B.bind(fj),pq,tJa),Vj++);var qq=ej.strikeId;void 0!==qq&&(N(fj,4,qq),Vj++);var Yk=ej.preTrainingMaterialId;void 0!==Yk&&(Gj(fj,5,Yk),Vj++);var Jo=[Vj===Object.keys(ej).length,fj]}catch(Ma){W(Ma),Jo=[!1,void 0]}var Ko=Jo;Ko[0]&&(tj(qh,gB,8,Ko[1]),se++)}var rq=[se===Object.keys(ph).length,qh]}catch(Ma){W(Ma),rq=[!1,void 0]}var sq=rq;
sq[0]&&(tj(r,iB,11,sq[1]),t++)}var bm=q.dragAndDropContext;if(bm){var Wj=new gA,cm=0;try{var Lo=bm.rootVe;if(Lo){var Gi=hP(Lo);Gi[0]&&(tj(Wj,fA,1,Gi[1]),cm++)}var Xj=bm.ve;if(Xj){var Zk=hP(Xj);Zk[0]&&(tj(Wj,fA,2,Zk[1]),cm++)}var tq=[cm===Object.keys(bm).length,Wj]}catch(Ma){W(Ma),tq=[!1,void 0]}var uq=tq;uq[0]&&(tj(r,gA,12,uq[1]),t++)}var $k=q.socialSuggestionsContext;if($k){var Dg=new cB,Eg=0;try{var bi=$k.socialSuggestionsType;void 0!==bi&&(O(Dg,1,Pfb[bi]),Eg++);var If=$k.suggestionSelected;void 0!==
If&&(Gj(Dg,2,If),Eg++);var vq=$k.source;void 0!==vq&&(O(Dg,3,Qfb[vq]),Eg++);var ys=[Eg===Object.keys($k).length,Dg]}catch(Ma){W(Ma),ys=[!1,void 0]}var wq=ys;wq[0]&&(tj(r,cB,13,wq[1]),t++)}var Yj=q.featureEnablementContext;if(Yj){var gj=new hA,Fg=0;try{var fn=Yj.feature;void 0!==fn&&(O(gj,1,SGa[fn]),Fg++);var bg=[Fg===Object.keys(Yj).length,gj]}catch(Ma){W(Ma),bg=[!1,void 0]}var xq=bg;xq[0]&&(tj(r,hA,14,xq[1]),t++)}var Zj=q.iapContext;if(Zj){var al=new kA,bl=0;try{var gn=Zj.playIapProduct;if(gn){var dm=
new jA,yq=0;try{var ak=gn.packageId;void 0!==ak&&(N(dm,1,ak),yq++);var cl=gn.productId;void 0!==cl&&(N(dm,2,cl),yq++);var dl=[yq===Object.keys(gn).length,dm]}catch(Ma){W(Ma),dl=[!1,void 0]}var Mo=dl;Mo[0]&&(uj(al,jA,1,xfb,Mo[1]),bl++)}var No=Zj.source;void 0!==No&&(O(al,2,Cfb[No]),bl++);var zq=Zj.attributionId;void 0!==zq&&(Ij(al,3,zq),bl++);var Aq=Zj.externalVideoId;void 0!==Aq&&(N(al,4,Aq),bl++);var zs=Zj.externalChannelId;void 0!==zs&&(N(al,5,zs),bl++);var Oo=[bl===Object.keys(Zj).length,al]}catch(Ma){W(Ma),
Oo=[!1,void 0]}var Po=Oo;Po[0]&&(tj(r,kA,15,Po[1]),t++)}var Ud=q.shoppingCheckoutContext;if(Ud){var de=new aB,Je=0;try{var Bq=Ud.shoppingFlowParams;if(Bq){var Cq=wJa(Bq);Cq[0]&&(tj(de,ZA,1,Cq[1]),Je++)}var Qo=Ud.shoppingCheckoutErrorReason;void 0!==Qo&&(O(de,2,Ofb[Qo]),Je++);var Dq=[Je===Object.keys(Ud).length,de]}catch(Ma){W(Ma),Dq=[!1,void 0]}var Ro=Dq;Ro[0]&&(tj(r,aB,16,Ro[1]),t++)}var hn=q.ypcCancellationContext;if(hn){var So=new ama,To=0;try{var Uo=hn.itemType;void 0!==Uo&&(O(So,1,tP[Uo]),To++);
var Eq=hn.productType;void 0!==Eq&&(O(So,2,uP[Eq]),To++);var Fq=[To===Object.keys(hn).length,So]}catch(Ma){W(Ma),Fq=[!1,void 0]}var Gq=Fq;Gq[0]&&(tj(r,ama,17,Gq[1]),t++)}var em=q.ypcBrowseOffersContext;if(em){var jn=new $la,el=0;try{var kn=em.commerceFlowLoggingParams;if(kn){var Vo=BJa(kn);Vo[0]&&(tj(jn,kB,1,Vo[1]),el++)}var Hq=em.offerType;void 0!==Hq&&(O(jn,2,Ieb[Hq]),el++);var ln=em.entityType;void 0!==ln&&(O(jn,3,tfb[ln]),el++);var Wo=[el===Object.keys(em).length,jn]}catch(Ma){W(Ma),Wo=[!1,void 0]}var Xo=
Wo;Xo[0]&&(tj(r,$la,18,Xo[1]),t++)}var bk=q.mdxStreamTransferContext;if(bk){var fl=new DA,ci=0;try{var gl=bk.completedReason;void 0!==gl&&(O(fl,1,Lfb[gl]),ci++);var hl=[ci===Object.keys(bk).length,fl]}catch(Ma){W(Ma),hl=[!1,void 0]}var mn=hl;mn[0]&&(tj(r,DA,19,mn[1]),t++)}var ck=q.pdgBuyFlowContext;if(ck){var nn=new SA,on=0;try{var Iq=ck.productType;void 0!==Iq&&(O(nn,1,uP[Iq]),on++);var dk=ck.entryPointClickedContext;if(dk){var il=new QA,di=0;try{var ek=dk.superVodBuyFlowEntryPoint;void 0!==ek&&
(jk(il,1,K2,fgb[ek]),di++);var jl=dk.superChatBuyFlowEntryPoint;void 0!==jl&&(jk(il,2,K2,dgb[jl]),di++);var Jq=dk.sharedPdgBuyFlowEntryPoint;void 0!==Jq&&(jk(il,3,K2,cgb[Jq]),di++);var Gg=dk.superStickerBuyFlowEntryPoint;void 0!==Gg&&(jk(il,4,K2,egb[Gg]),di++);var Jf=[di===Object.keys(dk).length,il]}catch(Ma){W(Ma),Jf=[!1,void 0]}var rh=Jf;rh[0]&&(tj(nn,QA,2,rh[1]),on++)}var Yo=ck.itemSelectionPageDisplayedContext;if(Yo){var Kq=new RA,hj=0;try{var kl=Yo.superStickerBuyFlowType;void 0!==kl&&(O(Kq,
1,ggb[kl]),hj++);var ll=[hj===Object.keys(Yo).length,Kq]}catch(Ma){W(Ma),ll=[!1,void 0]}var Lq=ll;Lq[0]&&(tj(nn,RA,3,Lq[1]),on++)}var Mq=[on===Object.keys(ck).length,nn]}catch(Ma){W(Ma),Mq=[!1,void 0]}var Nq=Mq;Nq[0]&&(tj(r,SA,20,Nq[1]),t++)}var fk=q.ypcPurchaseContext;if(fk){var fm=new ema,gm=0;try{var Oq=fk.commerceFlowLoggingParams;if(Oq){var Pq=BJa(Oq);Pq[0]&&(tj(fm,kB,1,Pq[1]),gm++)}var Qq=fk.offerType;void 0!==Qq&&(O(fm,2,Ieb[Qq]),gm++);var Rq=fk.transactionType;void 0!==Rq&&(O(fm,3,Ufb[Rq]),
gm++);var Sq=fk.paymentProcessor;void 0!==Sq&&(O(fm,4,Jeb[Sq]),gm++);var Zo=[gm===Object.keys(fk).length,fm]}catch(Ma){W(Ma),Zo=[!1,void 0]}var hm=Zo;hm[0]&&(tj(r,ema,21,hm[1]),t++)}var gk=q.webViewContext;if(gk){var cg=new Yla,sh=0;try{var pn=gk.hostname;void 0!==pn&&(N(cg,1,pn),sh++);var ml=gk.webViewUseCase;void 0!==ml&&(O(cg,2,rgb[ml]),sh++);var ei=gk.isFirstPartyHost;void 0!==ei&&(Fj(cg,5,ei),sh++);var fi=gk.isLoaded;void 0!==fi&&(Fj(cg,3,fi),sh++);var As=gk.webViewEngagementSec;void 0!==As&&
(Gj(cg,4,As),sh++);var Ue=[sh===Object.keys(gk).length,cg]}catch(Ma){W(Ma),Ue=[!1,void 0]}var Tq=Ue;Tq[0]&&(tj(r,Yla,22,Tq[1]),t++)}var nl=q.videoSuggestionsContext;if(nl){var ij=new jB,qn=0;try{var jj=nl.type;void 0!==jj&&(O(ij,1,Eeb[jj]),qn++);var ol=nl.serializedSuggestionData;void 0!==ol&&(ik(ij,2,ol),qn++);var rn=nl.videoId;void 0!==rn&&(ij.setVideoId(rn),qn++);var sn=[qn===Object.keys(nl).length,ij]}catch(Ma){W(Ma),sn=[!1,void 0]}var Uq=sn;Uq[0]&&(tj(r,jB,23,Uq[1]),t++)}var $o=q.actionSheetContext;
if($o){var Vq=new dA,Wq=0;try{var tn=$o.parentScreenUiType;void 0!==tn&&(Gj(Vq,1,tn),Wq++);var pl=[Wq===Object.keys($o).length,Vq]}catch(Ma){W(Ma),pl=[!1,void 0]}var hk=pl;hk[0]&&(tj(r,dA,24,hk[1]),t++)}var Hi=q.producerExportContext;if(Hi){var Hg=new YA,im=0;try{var ql=Hi.exportDetails;if(ql){var Xq=new XA,Yq=0;try{var un=ql.project;if(un){var jm=new VA,km=0;try{var rl=un.projectId;void 0!==rl&&(Lj(jm,1,rl),km++);var kj=un.durationMs;void 0!==kj&&(lj(jm,2,null==kj?kj:Qda(kj),"0"),km++);var Ii=[km===
Object.keys(un).length,jm]}catch(Ma){W(Ma),Ii=[!1,void 0]}var Oa=Ii;Oa[0]&&(tj(Xq,VA,1,Oa[1]),Yq++)}var Bs=ql.renderDetails;if(Bs){var yu=new WA,Cs=0;try{var zu=Bs.sizeBytes;void 0!==zu&&(lj(yu,1,qi(zu),"0"),Cs++);var lm=Bs.pixelWidth;void 0!==lm&&(lj(yu,2,li(lm),0),Cs++);var lA=Bs.pixelHeight;void 0!==lA&&(lj(yu,3,li(lA),0),Cs++);var mA=[Cs===Object.keys(Bs).length,yu]}catch(Ma){W(Ma),mA=[!1,void 0]}var nA=mA;nA[0]&&(tj(Xq,WA,2,nA[1]),Yq++)}var oA=[Yq===Object.keys(ql).length,Xq]}catch(Ma){W(Ma),
oA=[!1,void 0]}var Zw=oA;Zw[0]&&(tj(Hg,XA,1,Zw[1]),im++)}var Au=[im===Object.keys(Hi).length,Hg]}catch(Ma){W(Ma),Au=[!1,void 0]}var $w=Au;$w[0]&&(tj(r,YA,25,$w[1]),t++)}var mm=q.downloadMyVideoContext;if(mm){var vn=new eA,wn=0;try{var ax=mm.videoId;void 0!==ax&&(vn.setVideoId(ax),wn++);var bx=mm.videoSid;void 0!==bx&&(Ij(vn,2,bx),wn++);var xn=mm.downloadError;void 0!==xn&&(O(vn,3,zfb[xn]),wn++);var cx=mm.totalAssetSize;void 0!==cx&&(Ij(vn,4,cx),wn++);var dx=mm.totalDownloadedPercent;void 0!==dx&&
(Hj(vn,5,dx),wn++);var ex=mm.mddDownloadErrorCode;void 0!==ex&&(Hj(vn,6,ex),wn++);var yM=[wn===Object.keys(mm).length,vn]}catch(Ma){W(Ma),yM=[!1,void 0]}var zM=yM;zM[0]&&(tj(r,eA,26,zM[1]),t++)}var fx=q.miniAppContext;if(fx){var pA=new EA,qA=0;try{var rA=fx.externalPostId;void 0!==rA&&(N(pA,1,rA),qA++);var oF=fx.miniAppReleaseId;void 0!==oF&&(Gj(pA,3,oF),qA++);var pF=fx.postPlayNonce;void 0!==pF&&(N(pA,4,pF),qA++);var AM=[qA===Object.keys(fx).length,pA]}catch(Ma){W(Ma),AM=[!1,void 0]}var BM=AM;BM[0]&&
(tj(r,EA,27,BM[1]),t++)}var qF=q.shoppingCartContext;if(qF){var CM=new $A,DM=0;try{var EM=qF.shoppingFlowParams;if(EM){var FM=wJa(EM);FM[0]&&(tj(CM,ZA,1,FM[1]),DM++)}var GM=[DM===Object.keys(qF).length,CM]}catch(Ma){W(Ma),GM=[!1,void 0]}var HM=GM;HM[0]&&(tj(r,$A,28,HM[1]),t++)}var rF=q.sponsorshipsPurchaseContext;if(rF){var IM=new dB,ob=0;try{var qXa=rF.joinMethod;void 0!==qXa&&(O(IM,1,Keb[qXa]),ob++);var rXa=[ob===Object.keys(rF).length,IM]}catch(Ma){W(Ma),rXa=[!1,void 0]}var sXa=rXa;sXa[0]&&(tj(r,
dB,29,sXa[1]),t++)}var z1=q.ypcCujContext;if(z1){var rna=new dma,sna=0;try{var tXa=z1.serializedYpcCujLoggingParams;void 0!==tXa&&(ik(rna,1,tXa),sna++);var tna=z1.ypcCujLoggingClientPayload;if(tna){var uXa=new cma,vXa=0;try{var una=tna.ypcAcquisitionCujLoggingClientPayload;if(una){var wXa=new bma,xXa=0;try{var A1=una.ypcAcquisitionDebugLoggingParams;if(A1){var vna=new lB,wna=0;try{var yXa=A1.transactionErrorType;void 0!==yXa&&(O(vna,1,Tfb[yXa]),wna++);var zXa=A1.errorMessage;void 0!==zXa&&(N(vna,
2,zXa),wna++);var AXa=[wna===Object.keys(A1).length,vna]}catch(Ma){W(Ma),AXa=[!1,void 0]}var BXa=AXa;BXa[0]&&(tj(wXa,lB,1,BXa[1]),xXa++)}var CXa=[xXa===Object.keys(una).length,wXa]}catch(Ma){W(Ma),CXa=[!1,void 0]}var DXa=CXa;DXa[0]&&(uj(uXa,bma,1,yfb,DXa[1]),vXa++)}var EXa=[vXa===Object.keys(tna).length,uXa]}catch(Ma){W(Ma),EXa=[!1,void 0]}var FXa=EXa;FXa[0]&&(tj(rna,cma,2,FXa[1]),sna++)}var GXa=[sna===Object.keys(z1).length,rna]}catch(Ma){W(Ma),GXa=[!1,void 0]}var HXa=GXa;HXa[0]&&(tj(r,dma,30,HXa[1]),
t++)}var IXa=[t===Object.keys(q).length,r]}catch(Ma){W(Ma),IXa=[!1,void 0]}var JXa=IXa;JXa[0]&&(tj(b,fma,3,JXa[1]),c++)}var KXa=a.flowType;void 0!==KXa&&(O(b,4,Bfb[KXa]),c++);var LXa=a.flowEventStatus;void 0!==LXa&&(Gj(b,5,LXa),c++);var MXa=a.csn;void 0!==MXa&&(N(b,6,MXa),c++);var NXa=a.can;void 0!==NXa&&(N(b,7,NXa),c++);var xna=a.cuiAssociations;if(xna){var yna=new Ix,OXa=0;try{var PXa=xna.association;PXa&&(fP(yna.j.bind(yna),PXa,pJa),OXa++);var QXa=[OXa===Object.keys(xna).length,yna]}catch(Ma){W(Ma),
QXa=[!1,void 0]}var RXa=QXa;RXa[0]&&(tj(b,Ix,8,RXa[1]),c++)}return[c===Object.keys(a).length,b]}catch(Ma){return W(Ma),[!1,void 0]}},
idbQuotaExceeded:function(a){var b=new lma,c=0;try{var d=a.deviceStorageUsageMbytes;void 0!==d&&(Ij(b,1,d),c++);var e=a.deviceStorageQuotaMbytes;void 0!==e&&(Ij(b,2,e),c++);var f=a.isIframe;void 0!==f&&(Fj(b,3,f),c++);var h=a.isSw;void 0!==h&&(Fj(b,4,h),c++);var l=a.dbName;void 0!==l&&(N(b,5,l),c++);var m=a.objectStoreNames;void 0!==m&&(N(b,6,m),c++);var n=a.transactionCount;void 0!==n&&(Gj(b,7,n),c++);var p=a.transactionMode;void 0!==p&&(N(b,8,p),c++);return[c===Object.keys(a).length,b]}catch(q){return W(q),
[!1,void 0]}},
idbTransactionAborted:function(a){var b=new mma,c=0;try{var d=a.objectStoreNames;void 0!==d&&(N(b,1,d),c++);var e=a.hasWindowUnloaded;void 0!==e&&(Fj(b,2,e),c++);var f=a.transactionCount;void 0!==f&&(Gj(b,3,f),c++);var h=a.transactionDuration;void 0!==h&&(Gj(b,4,h),c++);var l=a.dbDuration;void 0!==l&&(Gj(b,5,l),c++);return[c===Object.keys(a).length,b]}catch(m){return W(m),[!1,void 0]}},
streamzIncremented:function(a){var b=new Hma,c=0;try{var d=a.serializedIncrementBatch;void 0!==d&&(ik(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}},
sliEventBatch:function(a){var b=new Xz,c=0;try{var d=a.loggedEvents;d&&(fP(b.j.bind(b),d,eKa),c++);var e=a.unloggedEvents;e&&(fP(b.B.bind(b),e,eKa),c++);var f=a.playerClientVersion;void 0!==f&&(Jj(b,3,f),c++);var h=a.playerCanaryState;void 0!==h&&(O(b,4,sfb[h]),c++);var l=a.dimensions;if(l){var m=new Wz;d=0;try{var n=l.playerClientVersion;void 0!==n&&(Jj(m,1,n),d++);var p=l.playerCanaryState;void 0!==p&&(O(m,2,sfb[p]),d++);var q=[d===Object.keys(l).length,m]}catch(r){W(r),q=[!1,void 0]}l=q;l[0]&&
(tj(b,Wz,5,l[1]),c++)}return[c===Object.keys(a).length,b]}catch(r){return W(r),[!1,void 0]}},
playbackAssociated:function(a){var b=new pB,c=0;try{var d=a.cpn;void 0!==d&&(N(b,1,d),c++);var e=a.playbackVe;if(e){var f=hP(e);f[0]&&(tj(b,fA,2,f[1]),c++)}var h=a.csn;void 0!==h&&(N(b,3,h),c++);var l=a.queueInfo;if(l){var m=new oB;d=0;try{var n=l.enqueueingVe;if(n){var p=hP(n);p[0]&&(tj(m,fA,1,p[1]),d++)}var q=l.enqueueingCsn;void 0!==q&&(N(m,2,q),d++);var r=l.clientEnqueueingTimeMs;void 0!==r&&(Ij(m,3,r),d++);var t=[d===Object.keys(l).length,m]}catch(v){W(v),t=[!1,void 0]}l=t;l[0]&&(tj(b,oB,4,l[1]),
c++)}return[c===Object.keys(a).length,b]}catch(v){return W(v),[!1,void 0]}},
autoplayTriggered:function(a){var b=new Zz,c=0;try{var d=a.intentional;void 0!==d&&(Fj(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}},
webPlayerApiCalled:function(a){var b=new LB,c=0;try{var d=a.callerUrl;void 0!==d&&(N(b,1,d),c++);var e=a.methodName;void 0!==e&&(N(b,2,e),c++);var f=a.origin;void 0!==f&&(N(b,3,f),c++);var h=a.playerStyle;void 0!==h&&(N(b,4,h),c++);var l=a.embeddedPlayerMode;void 0!==l&&(O(b,5,Leb[l]),c++);var m=a.errorCode;void 0!==m&&(Gj(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return W(n),[!1,void 0]}},
embedsAdEvent:function(a){var b=new Yz,c=0;try{var d=a.eventType;void 0!==d&&(O(b,1,vfb[d]),c++);var e=a.breakType;void 0!==e&&(O(b,2,ufb[e]),c++);var f=a.packageName;void 0!==f&&(N(b,3,f),c++);var h=a.embedUrl;void 0!==h&&(N(b,4,h),c++);var l=a.adSource;void 0!==l&&(O(b,5,wfb[l]),c++);var m=a.youtubeHost;void 0!==m&&(N(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return W(n),[!1,void 0]}},
embedsShouldRequestStorageAccessResult:function(a){var b=new bA,c=0;try{var d=a.result;void 0!==d&&(Fj(b,1,d),c++);var e=a.returnsUndefined;void 0!==e&&(Fj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}},
embedsRequestStorageAccessState:function(a){var b=new aA,c=0;try{var d=a.isCued;void 0!==d&&(Fj(b,1,d),c++);var e=a.isAutoplayBlocked;void 0!==e&&(Fj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}},
embedsRequestStorageAccessFailedState:function(a){var b=new $z,c=0;try{var d=a.state;void 0!==d&&(b.Gc(d),c++);return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}},
heartbeatActionPlayerHalted:function(a){var b=new jma,c=0;try{var d=a.serializedServerContext;void 0!==d&&(ik(b,1,d),c++);var e=a.enforcedPolicyToHaltOnNetworkFailure;void 0!==e&&(Fj(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}},
heartbeatActionPlayerTransitioned:function(a){var b=new kma,c=0;try{var d=a.reason;void 0!==d&&(O(b,1,Dfb[d]),c++);var e=a.trigger;void 0!==e&&(O(b,2,Efb[e]),c++);var f=a.serializedServerContext;void 0!==f&&(ik(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return W(h),[!1,void 0]}},
embedsItpWatchLaterResult:function(a){var b=new cA,c=0;try{var d=a.accepted;void 0!==d&&(Fj(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}},
html5PlayerHealthEvent:function(a){var b=new mB,c=0;try{var d=a.started;void 0!==d&&(Fj(b,1,d),c++);var e=a.stateAtSend;void 0!==e&&(O(b,2,Sfb[e]),c++);var f=a.joinLatencySecs;void 0!==f&&(Kj(b,4,f),c++);var h=a.playTimeSecs;void 0!==h&&(Kj(b,5,h),c++);var l=a.rebufferTimeSecs;void 0!==l&&(Kj(b,6,l),c++);var m=a.playerCanaryType;void 0!==m&&(O(b,7,Gfb[m]),c++);var n=a.isAd;void 0!==n&&(Fj(b,8,n),c++);var p=a.liveMode;void 0!==p&&(O(b,9,Rfb[p]),c++);var q=a.isGapless;void 0!==q&&(Fj(b,10,q),c++);var r=
a.hasDrm;void 0!==r&&(Fj(b,11,r),c++);var t=a.seekCount;void 0!==t&&(Gj(b,12,t),c++);var v=a.networkErrorCount;void 0!==v&&(Gj(b,13,v),c++);var x=a.nonNetworkErrorCount;void 0!==x&&(Gj(b,14,x),c++);var B=a.isServerStitchedDai;void 0!==B&&(Fj(b,15,B),c++);var G=a.playerCanaryStage;void 0!==G&&(O(b,16,Ffb[G]),c++);return[c===Object.keys(a).length,b]}catch(F){return W(F),[!1,void 0]}},
adsClientStateChange:function(a){var b=new uy,c=0;try{var d=a.cuepointTrigger;if(d){var e=new hy,f=0;try{var h=d.type;void 0!==h&&(O(e,1,ffb[h]),f++);var l=d.event;void 0!==l&&(O(e,2,efb[l]),f++);var m=d.cuepointId;void 0!==m&&(N(e,3,m),f++);var n=d.totalCueDurationMs;void 0!==n&&(Kj(e,4,n),f++);var p=d.playheadTimeMs;void 0!==p&&(Kj(e,5,p),f++);var q=d.cueStartTimeMs;void 0!==q&&(Kj(e,6,q),f++);var r=d.cuepointReceivedTimeMs;void 0!==r&&(Kj(e,7,r),f++);var t=d.contentCpn;void 0!==t&&(N(e,8,t),f++);
var v=d.externalChannelId;void 0!==v&&(N(e,9,v),f++);var x=[f===Object.keys(d).length,e]}catch(nc){W(nc),x=[!1,void 0]}var B=x;B[0]&&(uj(b,hy,1,J2,B[1]),c++)}var G=a.daiStateTrigger;if(G){var F=new my,I=0;try{var P=G.contentCpn;void 0!==P&&(N(F,1,P),I++);var R=G.totalCueDurationMs;void 0!==R&&(Kj(F,2,R),I++);var Z=G.filledAdsDurationMs;void 0!==Z&&(Kj(F,3,Z),I++);var ma=G.cueStartChange;void 0!==ma&&(O(F,4,lfb[ma]),I++);var ua=G.cueDurationChange;void 0!==ua&&(O(F,5,jfb[ua]),I++);var oa=G.cueDurationChangeReason;
void 0!==oa&&(O(F,6,kfb[oa]),I++);var ia=G.errorType;void 0!==ia&&(O(F,7,mfb[ia]),I++);var Aa=G.externalChannelId;void 0!==Aa&&(N(F,8,Aa),I++);var X=G.adClientData;if(X){var wa=jJa(X);wa[0]&&(tj(F,ay,9,wa[1]),I++)}var ca=[I===Object.keys(G).length,F]}catch(nc){W(nc),ca=[!1,void 0]}var Ra=ca;Ra[0]&&(uj(b,my,2,J2,Ra[1]),c++)}var y=a.daiAdBreakCriticalError;if(y){var V=new iy,ib=0;try{var fb=y.contentCpn;void 0!==fb&&(N(V,1,fb),ib++);var Za=y.errorType;void 0!==Za&&(O(V,2,mfb[Za]),ib++);var $a=y.externalChannelId;
void 0!==$a&&(N(V,3,$a),ib++);var ic=y.msg;void 0!==ic&&(N(V,4,ic),ib++);var Rb=y.cueIdentifier;void 0!==Rb&&(N(V,5,Rb),ib++);var bb=[ib===Object.keys(y).length,V]}catch(nc){W(nc),bb=[!1,void 0]}var ec=bb;ec[0]&&(uj(b,iy,3,J2,ec[1]),c++)}var jb=a.daiAdBreakWarning;if(jb){var A=new ky,D=0;try{var E=jb.contentCpn;void 0!==E&&(N(A,1,E),D++);var C=jb.errorType;void 0!==C&&(O(A,2,mfb[C]),D++);var K=jb.externalChannelId;void 0!==K&&(N(A,3,K),D++);var Y=jb.msg;void 0!==Y&&(N(A,4,Y),D++);var ka=jb.cueIdentifier;
void 0!==ka&&(N(A,5,ka),D++);var va=[D===Object.keys(jb).length,A]}catch(nc){W(nc),va=[!1,void 0]}var ea=va;ea[0]&&(uj(b,ky,4,J2,ea[1]),c++)}var ha=a.daiAdBreakInfo;if(ha){var Ea=new jy,Da=0;try{var nb=ha.contentCpn;void 0!==nb&&(N(Ea,1,nb),Da++);var Vb=ha.totalCueDurationMs;void 0!==Vb&&(Ij(Ea,2,Vb),Da++);var Lb=ha.filledAdsDurationMs;void 0!==Lb&&(Ij(Ea,3,Lb),Da++);var Ob=ha.cueStartChange;void 0!==Ob&&(O(Ea,4,lfb[Ob]),Da++);var Ab=ha.cueDurationChange;void 0!==Ab&&(O(Ea,5,jfb[Ab]),Da++);var Kb=
ha.cueDurationChangeReason;void 0!==Kb&&(O(Ea,6,kfb[Kb]),Da++);var Fc=ha.externalChannelId;void 0!==Fc&&(N(Ea,7,Fc),Da++);var yc=ha.cueIdentifier;void 0!==yc&&(N(Ea,8,yc),Da++);var $c=ha.infoType;void 0!==$c&&(O(Ea,9,nfb[$c]),Da++);var Wc=ha.msg;void 0!==Wc&&(N(Ea,10,Wc),Da++);var ad=ha.filledAdCount;void 0!==ad&&(Gj(Ea,11,ad),Da++);var kd=[Da===Object.keys(ha).length,Ea]}catch(nc){W(nc),kd=[!1,void 0]}var Zb=kd;Zb[0]&&(uj(b,jy,5,J2,Zb[1]),c++)}var Kd=a.visibilityErrorDebugInfo;if(Kd){var xd=new ty,
$b=0;try{var bd=Kd.elementName;void 0!==bd&&(N(xd,1,bd),$b++);var cd=Kd.contentVideoPlaybackEventId;void 0!==cd&&(N(xd,2,cd),$b++);var kb=Kd.errorList;void 0!==kb&&(N(xd,3,kb),$b++);var Hb=Kd.htmlDump;void 0!==Hb&&(N(xd,4,Hb),$b++);var Oe=[$b===Object.keys(Kd).length,xd]}catch(nc){W(nc),Oe=[!1,void 0]}var qf=Oe;qf[0]&&(uj(b,ty,6,J2,qf[1]),c++)}var cf=a.playbackTimelineAdBreakStateTrigger;if(cf){var pe=new qy,Ce=0;try{var qe=cf.cueIdentifier;void 0!==qe&&(N(pe,1,qe),Ce++);var $g=cf.timestampUnixEpochSec;
void 0!==$g&&(Ij(pe,2,$g),Ce++);var tg=cf.adRequestState;void 0!==tg&&(O(pe,3,gfb[tg]),Ce++);var ah=cf.segmentState;void 0!==ah&&(O(pe,4,hfb[ah]),Ce++);var bh=cf.timestampUnixEpochMs;void 0!==bh&&(Ij(pe,5,bh),Ce++);var ch=[Ce===Object.keys(cf).length,pe]}catch(nc){W(nc),ch=[!1,void 0]}var dh=ch;dh[0]&&(uj(b,qy,7,J2,dh[1]),c++)}var De=a.extraLongAdBreakDebugInfo;if(De){var Ee=new py,dd=0;try{var Sd=De.contentVideoPlaybackEventId;void 0!==Sd&&(N(Ee,1,Sd),dd++);var Ed=De.adPlacementKindCuepointInitiatedCueRange;
if(Ed){var eh=qJa(Ed);eh[0]&&(tj(Ee,oy,2,eh[1]),dd++)}var fh=De.adPlacementConfigImpliedCueRange;if(fh){var gh=qJa(fh);gh[0]&&(tj(Ee,oy,3,gh[1]),dd++)}var df=De.adPlacementKindMillisecondsInitiatedCueRange;if(df){var ed=qJa(df);ed[0]&&(tj(Ee,oy,4,ed[1]),dd++)}var rc=De.cueIdentifier;void 0!==rc&&(N(Ee,5,rc),dd++);var Ph=[dd===Object.keys(De).length,Ee]}catch(nc){W(nc),Ph=[!1,void 0]}var Qh=Ph;Qh[0]&&(uj(b,py,8,J2,Qh[1]),c++)}var Rh=a.comparePyvAdTagInfo;if(Rh){var Sh=new gy,ef=0;try{var Pe=Rh.pyvAdTagUrlFromPlayer;
void 0!==Pe&&(N(Sh,1,Pe),ef++);var Qe=Rh.pyvAdTagUrlFromWatchNext;void 0!==Qe&&(N(Sh,2,Qe),ef++);var hh=[ef===Object.keys(Rh).length,Sh]}catch(nc){W(nc),hh=[!1,void 0]}var ld=hh;ld[0]&&(uj(b,gy,9,J2,ld[1]),c++)}var zc=a.driftRecoveryInfo;if(zc){var Oc=new ny,rf=0;try{var sf=zc.contentCpn;void 0!==sf&&(N(Oc,1,sf),rf++);var Gf=zc.cueIdentifier;void 0!==Gf&&(N(Oc,2,Gf),rf++);var Wf=zc.driftRecoveryMs;void 0!==Wf&&(Ij(Oc,3,Wf),rf++);var ug=zc.breakDurationMs;void 0!==ug&&(Ij(Oc,4,ug),rf++);var rd=zc.driftFromHeadMs;
void 0!==rd&&(Ij(Oc,5,rd),rf++);var Xf=zc.appliedDriftRecoveryMs;void 0!==Xf&&(Ij(Oc,6,Xf),rf++);var zi=zc.destinationMs;void 0!==zi&&(Ij(Oc,7,zi),rf++);var vg=zc.adClientData;if(vg){var ih=jJa(vg);ih[0]&&(tj(Oc,ay,8,ih[1]),rf++)}var jh=[rf===Object.keys(zc).length,Oc]}catch(nc){W(nc),jh=[!1,void 0]}var Th=jh;Th[0]&&(uj(b,ny,10,J2,Th[1]),c++)}var wg=a.adsClientEvent;if(wg){var xg=new fy,Fe=0;try{var Uh=wg.eventType;void 0!==Uh&&(O(xg,1,dfb[Uh]),Fe++);var Yf=wg.adClientData;if(Yf){var kh=jJa(Yf);kh[0]&&
(tj(xg,ay,3,kh[1]),Fe++)}var Zf=wg.serializedAdServingData;void 0!==Zf&&(ik(xg,4,Zf),Fe++);var Yi=wg.eventOrder;void 0!==Yi&&(Gj(xg,5,Yi),Fe++);var Ge=wg.serializedSlotAdServingData;void 0!==Ge&&(ik(xg,6,Ge),Fe++);var He=wg.errorInfo;if(He){var Td=new ey,lh=0;try{var ff=He.errorType;void 0!==ff&&(O(Td,1,cfb[ff]),lh++);var tf=He.errorMessage;void 0!==tf&&(O(Td,2,bfb[tf]),lh++);var $f=[lh===Object.keys(He).length,Td]}catch(nc){W(nc),$f=[!1,void 0]}var gf=$f;gf[0]&&(tj(xg,ey,7,gf[1]),Fe++)}var mh=[Fe===
Object.keys(wg).length,xg]}catch(nc){W(nc),mh=[!1,void 0]}var nh=mh;nh[0]&&(uj(b,fy,11,J2,nh[1]),c++)}var uf=a.daiAdStateTracking;if(uf){var yg=new ly,zg=0;try{var oh=uf.eventType;void 0!==oh&&(O(yg,1,ifb[oh]),zg++);var Ai=uf.contentCpn;void 0!==Ai&&(N(yg,2,Ai),zg++);var Bi=uf.externalChannelId;void 0!==Bi&&(N(yg,3,Bi),zg++);var Pk=uf.adCpn;void 0!==Pk&&(N(yg,4,Pk),zg++);var Rl=uf.adCount;void 0!==Rl&&(Ij(yg,5,Rl),zg++);var Re=uf.msg;void 0!==Re&&(N(yg,6,Re),zg++);var Ie=[zg===Object.keys(uf).length,
yg]}catch(nc){W(nc),Ie=[!1,void 0]}var Se=Ie;Se[0]&&(uj(b,ly,12,J2,Se[1]),c++)}var Ag=a.adTrimmingInfo;if(Ag){var Zi=new cy,Bg=0;try{var Mj=Ag.contentCpn;void 0!==Mj&&(N(Zi,1,Mj),Bg++);var $i=Ag.cueIdentifier;void 0!==$i&&(N(Zi,2,$i),Bg++);var Nj=Ag.adMediaInfo;Nj&&(fP(Zi.j.bind(Zi),Nj,rJa),Bg++);var aj=[Bg===Object.keys(Ag).length,Zi]}catch(nc){W(nc),aj=[!1,void 0]}var Sl=aj;Sl[0]&&(uj(b,cy,13,J2,Sl[1]),c++)}var Ci=a.adsAttributionEvent;if(Ci){var Vh=new dy,Wh=0;try{var bj=Ci.errorCode;void 0!==
bj&&(O(Vh,1,ofb[bj]),Wh++);var Oj=Ci.attributionStep;void 0!==Oj&&(O(Vh,2,pfb[Oj]),Wh++);var Pj=Ci.innerErrorDomain;void 0!==Pj&&(N(Vh,3,Pj),Wh++);var Xh=Ci.innerErrorCode;void 0!==Xh&&(Ij(Vh,4,Xh),Wh++);var re=[Wh===Object.keys(Ci).length,Vh]}catch(nc){W(nc),re=[!1,void 0]}var Cg=re;Cg[0]&&(uj(b,dy,14,J2,Cg[1]),c++)}var Yh=a.playerDebugData;if(Yh){var Qj=new ry,vf=0;try{var Rj=Yh.pmlSignal;void 0!==Rj&&(Fj(Qj,1,Rj),vf++);var Qk=Yh.contentCpn;void 0!==Qk&&(N(Qj,2,Qk),vf++);var cj=[vf===Object.keys(Yh).length,
Qj]}catch(nc){W(nc),cj=[!1,void 0]}var wf=cj;wf[0]&&(uj(b,ry,15,J2,wf[1]),c++)}var xf=a.sourceRegistrationEvent;if(xf){var ag=new sy,Di=0;try{var Ei=xf.eventType;void 0!==Ei&&(O(ag,1,qfb[Ei]),Di++);var Tl=[Di===Object.keys(xf).length,ag]}catch(nc){W(nc),Tl=[!1,void 0]}var Sj=Tl;Sj[0]&&(uj(b,sy,16,J2,Sj[1]),c++)}return[c===Object.keys(a).length,b]}catch(nc){return W(nc),[!1,void 0]}},
offlineTransferStatusChanged:tIa,offlineStateSnapshot:function(a){var b=new KB,c=0;try{var d=a.offlineVideos;d&&(fP(b.B.bind(b),d,VIa),c++);var e=a.offlinePlaylists;e&&(fP(b.j.bind(b),e,XIa),c++);var f=a.freeDiskSpaceBytes;void 0!==f&&(Ij(b,3,f),c++);var h=a.lastOfflineUsageTimeMs;void 0!==h&&(Ij(b,4,h),c++);var l=a.lastOfflinePlaybackTimeMs;void 0!==l&&(Ij(b,5,l),c++);var m=a.lastOfflineSaveTimeMs;void 0!==m&&(Ij(b,6,m),c++);var n=a.lastOfflineDownloadSuccessTimeMs;void 0!==n&&(Ij(b,7,n),c++);var p=
a.isBatteryCharging;void 0!==p&&(Fj(b,8,p),c++);var q=a.detailedNetworkType;void 0!==q&&(O(b,9,pP[q]),c++);var r=a.batteryLevelPercentage;void 0!==r&&(Gj(b,10,r),c++);var t=a.isPostMigrationState;void 0!==t&&(Fj(b,11,t),c++);var v=a.offlineCacheVerificationFailure;if(v){var x=new EB;d=0;try{var B=v.numUncachedVideos;void 0!==B&&(Hj(x,1,B),d++);var G=v.numTotalCompletedVideos;void 0!==G&&(Hj(x,2,G),d++);var F=v.uncachedVideos;F&&(fP(x.j.bind(x),F,$Ia),d++);var I=[d===Object.keys(v).length,x]}catch(X){W(X),
I=[!1,void 0]}v=I;v[0]&&(tj(b,EB,12,v[1]),c++)}var P=a.additionalOfflineClientState;if(P){var R=new zma;v=0;try{var Z=P.mainAppAdditionalOfflineClientState;if(Z){var ma=new GB;I=0;try{var ua=Z.downloadRecsVideos;ua&&(fP(ma.j.bind(ma),ua,aJa),I++);var oa=Z.smartDownloadVideos;oa&&(fP(ma.B.bind(ma),oa,bJa),I++);var ia=[I===Object.keys(Z).length,ma]}catch(X){W(X),ia=[!1,void 0]}Z=ia;Z[0]&&(tj(R,GB,1,Z[1]),v++)}var Aa=[v===Object.keys(P).length,R]}catch(X){W(X),Aa=[!1,void 0]}P=Aa;P[0]&&(tj(b,zma,13,
P[1]),c++)}return[c===Object.keys(a).length,b]}catch(X){return W(X),[!1,void 0]}}},T9a={adNotify:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;
uj(d,Kx,184,MF,a);c?KF("adNotify",d,c,b):LF("adNotify",d,b)},
biscottiBasedDetection:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,Kz,439,MF,a);c?KF("biscottiBasedDetection",d,c,b):LF("biscottiBasedDetection",d,b)},
adNotifyFilled:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,Jx,300,MF,a);c?KF("adNotifyFilled",d,c,b):LF("adNotifyFilled",d,b)},
idbTransactionEnded:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,nB,352,MF,a);c?KF("idbTransactionEnded",d,c,b):LF("idbTransactionEnded",d,b)},
idbUnexpectedlyClosed:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,nma,348,MF,a);c?KF("idbUnexpectedlyClosed",d,c,b):LF("idbUnexpectedlyClosed",d,b)},
flowEvent:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,hma,304,MF,a);c?KF("flowEvent",d,c,b):LF("flowEvent",d,b)},
idbQuotaExceeded:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,lma,351,MF,a);c?KF("idbQuotaExceeded",d,c,b):LF("idbQuotaExceeded",d,b)},
idbTransactionAborted:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,mma,353,MF,a);c?KF("idbTransactionAborted",d,c,b):LF("idbTransactionAborted",d,b)},
streamzIncremented:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,Hma,126,MF,a);c?KF("streamzIncremented",d,c,b):LF("streamzIncremented",d,b)},
sliEventBatch:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,Xz,344,MF,a);c?KF("sliEventBatch",d,c,b):LF("sliEventBatch",d,b)},
playbackAssociated:$sa,autoplayTriggered:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,Zz,209,MF,a);c?KF("autoplayTriggered",d,c,b):LF("autoplayTriggered",d,b)},
webPlayerApiCalled:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,LB,76,MF,a);c?KF("webPlayerApiCalled",d,c,b):LF("webPlayerApiCalled",d,b)},
embedsAdEvent:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,Yz,327,MF,a);c?KF("embedsAdEvent",d,c,b):LF("embedsAdEvent",d,b)},
embedsShouldRequestStorageAccessResult:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,bA,251,MF,a);c?KF("embedsShouldRequestStorageAccessResult",d,c,b):LF("embedsShouldRequestStorageAccessResult",d,b)},
embedsRequestStorageAccessState:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,aA,256,MF,a);c?KF("embedsRequestStorageAccessState",d,c,b):LF("embedsRequestStorageAccessState",d,b)},
embedsRequestStorageAccessFailedState:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,$z,257,MF,a);c?KF("embedsRequestStorageAccessFailedState",d,c,b):LF("embedsRequestStorageAccessFailedState",d,b)},
heartbeatActionPlayerHalted:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,jma,332,MF,a);c?KF("heartbeatActionPlayerHalted",d,c,b):LF("heartbeatActionPlayerHalted",d,b)},
heartbeatActionPlayerTransitioned:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,kma,330,MF,a);c?KF("heartbeatActionPlayerTransitioned",d,c,b):LF("heartbeatActionPlayerTransitioned",d,b)},
embedsItpWatchLaterResult:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,cA,266,MF,a);c?KF("embedsItpWatchLaterResult",d,c,b):LF("embedsItpWatchLaterResult",d,b)},
html5PlayerHealthEvent:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,mB,293,MF,a);c?KF("html5PlayerHealthEvent",d,c,b):LF("html5PlayerHealthEvent",d,b)},
adsClientStateChange:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,uy,197,MF,a);c?KF("adsClientStateChange",d,c,b):LF("adsClientStateChange",d,b)},
offlineTransferStatusChanged:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,MA,2,MF,a);c?KF("offlineTransferStatusChanged",d,c,b):LF("offlineTransferStatusChanged",d,b)},
offlineStateSnapshot:function(a,b,c){var d=g.SB("jspb_sparse_encoded_pivot")?new NB([{}]):new NB;uj(d,KB,22,MF,a);c?KF("offlineStateSnapshot",d,c,b):LF("offlineStateSnapshot",d,b)}};vP.prototype.Qw=function(a){this.client=a};
vP.prototype.j=function(){this.clear();this.csn=g.QF()};
vP.prototype.clear=function(){this.C.clear();this.B.clear();this.D.clear();this.csn=null};xP.prototype.Qw=function(a){g.WB(wP().Qw).bind(wP())(a)};
xP.prototype.clear=function(){g.WB(wP().clear).bind(wP())()};g.k=yP.prototype;g.k.Qw=function(a){this.client=a};
g.k.cV=function(a,b){var c=this;b=void 0===b?{}:b;g.WB(function(){var d,e,f,h=(null==(d=g.S(null==a?void 0:a.commandMetadata,g.I2))?void 0:d.rootVe)||(null==(e=g.S(null==a?void 0:a.commandMetadata,$eb))?void 0:null==(f=e.screenVisualElement)?void 0:f.uiType);if(h){d=g.S(null==a?void 0:a.commandMetadata,jgb);if(null==d?0:d.parentTrackingParams){var l=g.OF(d.parentTrackingParams);if(d.parentCsn)var m=d.parentCsn}else b.clickedVisualElement?l=b.clickedVisualElement:a.clickTrackingParams&&(l=g.OF(a.clickTrackingParams));
a:{d=g.S(a,g.sT);e=g.S(a,Zfb);if(d){if(e=iGa(d,"VIDEO")){d={token:e,videoId:d.videoId};break a}}else if(e&&(d=iGa(e,"PLAYLIST"))){d={token:d,playlistId:e.playlistId};break a}d=void 0}b=Object.assign({},{cttAuthInfo:d,parentCsn:m},b);if(g.SB("expectation_logging")){var n;b.loggingExpectations=(null==(n=g.S(null==a?void 0:a.commandMetadata,$eb))?void 0:n.loggingExpectations)||void 0}AP(c,h,l,b)}else g.UF(new g.nD("Error: Trying to create a new screen without a rootVeType",a))})()};
g.k.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.QF(void 0===c?0:c))?($ta(this.client,c,g.OF(a),b),b=!0):b=!1:b=!1;return b};
g.k.stateChanged=function(a,b,c){this.visualElementStateChanged(g.OF(a),b,void 0===c?0:c)};
g.k.visualElementStateChanged=function(a,b,c){c=void 0===c?0:c;0===c&&this.B.has(c)?this.ma.push([a,b]):nKa(this,a,b,c)};DP.getInstance=function(){var a=g.Ta("ytglobal.storage_");a||(a=new DP,g.Sa("ytglobal.storage_",a));return a};
DP.prototype.estimate=function(){var a,b,c;return g.H(function(d){a=navigator;return(null==(b=a.storage)?0:b.estimate)?d.return(a.storage.estimate()):(null==(c=a.webkitTemporaryStorage)?0:c.queryUsageAndQuota)?d.return(pKa()):d.return()})};
g.Sa("ytglobal.storageClass_",DP);Poa.prototype.TD=function(a){this.handleError(a)};
Poa.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.SB("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.SB("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":rKa(this,b);break;case "TRANSACTION_ENDED":this.C&&Math.random()<=g.TB("ytidb_transaction_ended_event_rate_limit_transaction",.1)&&this.j("idbTransactionEnded",
b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},b,{hasWindowUnloaded:this.B}),this.j("idbTransactionAborted",a)}};var m3={},GPa=g.hE("yt-player-local-media",{ir:(m3.index={Tm:2},m3.media={Tm:2},m3.captions={Tm:5},m3),shared:!1,upgrade:function(a,b){b(2)&&(g.PD(a,"index"),g.PD(a,"media"));b(5)&&g.PD(a,"captions");b(6)&&(QD(a,"metadata"),QD(a,"playerdata"))},
version:5});var Fhb={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},n3;a:{var o3=g.mc();o3=o3.toLowerCase();if(g.gc(o3,"android")){var Ghb=o3.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Ghb){var Hhb=parseFloat(Ghb[1]);if(100>Hhb){n3=Hhb;break a}}var Ihb=o3.match("("+Object.keys(Fhb).join("|")+")");n3=Ihb?Fhb[Ihb[0]]:0}else n3=void 0}var hS=n3,DOa=0<=hS;var k7a=window;var sKa=Md(function(){var a,b;return null==(b=(a=window).matchMedia)?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var uKa;g.yI=new AI;uKa=0;var EP={PL:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
A7:function(a,b){a.splice(0,b)},
Yy:function(a){a.reverse()}};var a9a=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var AOa={Ufa:"adunit",Fra:"detailpage",usa:"editpage",Csa:"embedded",NHa:"leanback",pWa:"previewpage",oXa:"profilepage",aU:"unplugged",AVa:"playlistoverview",g2a:"sponsorshipsoffer",ZZa:"shortspage",YAa:"handlesclaiming",CCa:"immersivelivepage",Wpa:"creatormusic",DCa:"immersivelivepreviewpage"};var dQa={Rra:1,Wsa:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var KR=PKa()?!0:"function"===typeof window.fetch&&window.ReadableStream&&window.AbortController&&!g.dE?!0:!1;g.KP.prototype.getLanguageInfo=function(){return this.Rc};
g.KP.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");1<a.length&&(this.xtags=a[1])}return this.xtags};
g.KP.prototype.toString=function(){return this.Rc.name};
g.KP.prototype.getLanguageInfo=g.KP.prototype.getLanguageInfo;LP.prototype.equals=function(a){return this.B===a.B&&this.j===a.j&&this.C===a.C&&this.reason===a.reason};
LP.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.j};
LP.prototype.compose=function(a){if(a.C&&NP(a))return gT;if(a.C||NP(this))return a;if(this.C||NP(a))return this;var b=this.B&&a.B?Math.max(this.B,a.B):this.B||a.B,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);return b===this.B&&c===this.j?this:new LP(b,c,!1,c===this.j?this.reason:a.reason)};
LP.prototype.D=function(a){return a.video?RKa(this,a.video.quality):!1};
var Jhb=g.MP("auto","hd1080",!1,"l"),v6a=g.MP("auto","large",!1,"l"),gT=g.MP("auto","auto",!1,"p");QP.prototype.Vs=function(a){a=a||gT;for(var b=g.ts(this.videoInfos,function(h){return a.D(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].video;
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
QP.prototype.WC=function(a){a=a||gT;return g.ts(this.videoInfos,function(b){return a.D(b)})};
QP.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var iLa=new Set(["356"]);g.w(SKa,g.J);SKa.prototype.Ba=function(){g.J.prototype.Ba.call(this)};g.ZP.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.ZP.prototype.get=function(a){$P(this);return this.j[a]||null};
g.ZP.prototype.jf=function(){this.url||(this.url=pLa(this));return this.url};
g.ZP.prototype.clone=function(){var a=new g.ZP(this.B,this.D);a.scheme=this.scheme;a.path=this.path;a.C=this.C;a.j=g.pd(this.j);a.url=this.url;return a};
var oLa=[Ula];g.k=g.eQ.prototype;g.k.aL=function(a){this.segments.push(a)};
g.k.tp=function(a){return!!this.Ym(a)};
g.k.getDuration=function(a){return(a=this.Ym(a))?a.duration:0};
g.k.IV=function(a){return this.getDuration(a)};
g.k.jn=function(){return this.segments.length?this.segments[0].Qa:-1};
g.k.Ze=function(a){return(a=this.Ym(a))?a.ingestionTime:NaN};
g.k.Fd=function(){return this.segments.length?this.segments[this.segments.length-1].Qa:-1};
g.k.sO=function(a){return this.Fd()===a&&!this.B&&0<=a};
g.k.gt=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.me=function(){return this.segments[0].startTime};
g.k.qz=function(){return this.segments.length};
g.k.qm=function(){return 0};
g.k.Mh=function(a){return(a=this.ez(a))?a.Qa:-1};
g.k.FH=function(a){return(a=this.Ym(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.Ym(a))?a.startTime:0};
g.k.qN=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.HH=aa(3);g.k.isLoaded=function(){return 0<this.segments.length};
g.k.Ym=function(a){if(this.j&&this.j.Qa===a)return this.j;a=g.Sb(this.segments,new dQ(a,0,0,0,""),function(b,c){return b.Qa-c.Qa});
return this.j=0<=a?this.segments[a]:null};
g.k.ez=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.Sb(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return this.j=0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.k.append=function(a){if(a.length)if(a=g.Jb(a),this.segments.length){var b=this.segments.length?g.yb(this.segments).endTime:0,c=a[0].Qa-this.Fd();1<c&&saa(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
g.k.PV=function(){return 0};sLa.prototype.skip=function(a){this.j+=a};var p3={},Khb=(p3.predictStart="predictStart",p3.start="start",p3["continue"]="continue",p3.stop="stop",p3),wLa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};nQ.prototype.tD=function(){return!!(this.data["Stitched-Video-Id"]||this.data["Stitched-Video-Cpn"]||this.data["Stitched-Video-Duration-Us"]||this.data["Stitched-Video-Start-Frame-Index"]||this.data["Serialized-State"]||this.data["Is-Ad-Break-Finished"])};
nQ.prototype.toString=function(){for(var a="",b=g.u(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};xQ.prototype.Fn=function(){var a=this.pos;this.pos=0;var b=!1;try{BQ(this,440786851)&&(this.pos=0,BQ(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.UF(c);else throw c;}this.pos=a;return b};KQ.prototype.set=function(a,b){this.base.get(a);this.j[a]=b;this.url=""};
KQ.prototype.get=function(a){return this.j[a]||this.base.get(a)};
KQ.prototype.jf=function(){this.url||(this.url=VLa(this));return this.url};LQ.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};PQ.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
PQ.prototype.equals=function(a){return!(!a||a.j!==this.j||a.type!==this.type||(this.range&&a.range?a.range.start!==this.range.start||a.range.end!==this.range.end:a.range!==this.range)||a.Qa!==this.Qa||a.dc!==this.dc||a.B!==this.B)};
PQ.prototype.kh=function(){return!!this.j.info.video};
PQ.prototype.le=function(){var a=UQ(this),b="";g.Tc(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};VQ.prototype.iz=function(){return this.j?this.j.jf():""};
VQ.prototype.ot=function(){return this.D};
VQ.prototype.Vo=function(){return RQ(this.ib[0])};
VQ.prototype.Rk=function(a,b){this.resource.Rk(a,b);if(this.j){this.j=WLa(a,b);b=g.u(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.j.set(c.value,null)}this.requestId=a.get("req_id")};
var nMa=!1;tMa.prototype.Rk=function(a,b){a.base===this.j&&(this.j=WLa(a,b));a.base===this.D&&(this.D=WLa(a,b))};$Q.prototype.xg=function(){return!!this.j&&this.index.isLoaded()};
$Q.prototype.Kz=function(){return!1};
$Q.prototype.jT=function(a){return[a]};
$Q.prototype.NA=function(a){return[a]};g.w(aR,$Q);g.k=aR.prototype;g.k.Gn=function(){return!1};
g.k.Uv=function(){return!0};
g.k.FD=function(){return!1};
g.k.Kz=function(){return!this.G};
g.k.Ev=function(){return new VQ([new PQ(1,this,this.initRange,"getMetadataRequestInfo")],this.G)};
g.k.Lx=function(){return null};
g.k.SB=function(a){this.us(a);return this.Uv()&&a.B&&!a.qf?new VQ([new PQ(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Qa,a.startTime,a.duration,a.dc+a.B,NaN,!0)],this.index.FH(a.Qa)):this.ws(aMa(a),!1)};
g.k.Dq=function(a,b){b=void 0===b?!1:b;a=this.index.Mh(a);b&&(a=Math.min(this.index.Fd(),a+1));return this.ws(a,!0)};
g.k.NN=function(a){SMa(a)};
g.k.us=function(a){return 0===a.B?!0:this.index.Fd()>a.Qa&&this.index.jn()<=a.Qa+1};
g.k.update=function(a,b,c){this.index.append(a);rLa(this.index,c);this.index.B=b};
g.k.xg=function(){return this.Kz()?!0:$Q.prototype.xg.call(this)};
g.k.ws=function(a,b){var c=this.index.FH(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.Zb?this.info.Zb*e:1E3;return new VQ([new PQ(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
g.k.xN=function(){return this.Kz()?0:this.initRange.length};
g.k.fQ=function(){return!1};dR.prototype.update=function(a){var b=void 0;this.B&&(b=this.B);var c=new dR,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+bR(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+bR(a,"startNumber")||0;c.D=f;var l=b?b.startSecs+b.di:0,m=Date.parse(AMa(bR(a,"yt:segmentIngestTime")))/1E3;c.G="SegmentTemplate"===a.parentElement.tagName;c.G&&(c.S=bR(a,"media"));a=b?h-b.Qa:1;c.K=0<a?0:-a+1;a=g.u(d);for(d=a.next();!d.done;d=a.next()){d=d.value;for(var n=+d.getAttribute("d")/e,p=(+d.getAttribute("yt:sid")||
0)/e,q=+d.getAttribute("r")||0,r=0;r<=q;r++)if(b&&h<=b.Qa)h++;else{var t=new yMa(h,l,n,m+p,f);c.j.push(t);var v=t.startSecs;t=d.getAttribute("yt:cuepointTimeOffset");var x=d.getAttribute("yt:cuepointDuration");if(t&&x){t=Number(t);v=-t/e+v;x=Number(x)/e;var B=d.getAttribute("yt:cuepointContext")||null,G=d.getAttribute("yt:cuepointIdentifier")||"",F=d.getAttribute("yt:cuepointEvent")||"";t=new lQ(v,x,B,G,Khb[F]||"unknown",t)}else t=null;t&&c.C.push(t);h++;l+=n;f+=n;m+=n+p}}c.j.length&&(c.B=g.yb(c.j))}this.K=
c.K;this.B=c.B||this.B;g.Mb(this.j,c.j);g.Mb(this.C,c.C);this.G=c.G;this.S=c.S;-1===this.D&&(this.D=c.getStreamTimeOffset())};
dR.prototype.getStreamTimeOffset=function(){return-1===this.D?0:this.D};g.w(IMa,g.eQ);g.k=IMa.prototype;g.k.tp=function(a,b){a=eR(this,a);return 0<=a&&(b||!this.segments[a].pending)};
g.k.jn=function(){return this.Um?this.segments.length?this.ez(this.me()).Qa:-1:g.eQ.prototype.jn.call(this)};
g.k.me=function(){if(this.ze)return 0;if(!this.Um)return g.eQ.prototype.me.call(this);if(!this.segments.length)return 0;var a=Math.max(g.yb(this.segments).endTime-this.lq,0);return 0<this.cf&&this.ez(a).Qa<this.cf?this.Ym(this.cf).startTime:a};
g.k.gt=function(){if(!this.segments.length)return g.eQ.prototype.gt.call(this);var a=this.Fd();if(!this.Um||a<=this.segments[this.segments.length-1].Qa)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new dQ(a,Math.max(0,b.startTime-(b.Qa-a)*this.Fj),this.Fj,0,"sq/"+a,void 0,void 0,!0)}return this.ze?Math.min(this.lq,a.endTime):a.endTime};
g.k.qz=function(){return this.Um?this.segments.length?this.Fd()-this.jn()+1:0:g.eQ.prototype.qz.call(this)};
g.k.Fd=function(){var a=Math.min(this.lh,Math.max(g.eQ.prototype.Fd.call(this),this.wp)),b=1E3*this.lq;b=0<this.Kq&&this.Kq<b;this.ze&&0<this.lq&&0<this.wp&&!b&&(b=this.ez(this.lq))&&(a=Math.min(b.Qa-1,a));return a};
g.k.Av=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.aL=function(a){var b=eR(this,a.Qa);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.bA&&0===a.Qa%(300/this.Fj)){var c=this.segments[0].Qa,d=Math.floor(this.bA/this.Fj);a=a.Qa-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.uH=function(){return this.wp};
g.k.ez=function(a){if(!this.Um)return g.eQ.prototype.ez.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Qa-Math.ceil((this.segments[0].startTime-a)/this.Fj));else if(a>=b.endTime)b=b.Qa+Math.floor((a-b.endTime)/this.Fj+1);else{b=Tb(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Qa-b.Qa-1))+1)+b.Qa}return this.Ym(b)};
g.k.Ym=function(a){if(!this.Um)return g.eQ.prototype.Ym.call(this,a);if(!this.segments.length)return null;var b=eR(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Fj;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Qa-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Qa-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Qa-d.Qa-1),d=d.endTime+(a-d.Qa-1)*b);return new dQ(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.w(fR,aR);g.k=fR.prototype;g.k.FD=function(){return!0};
g.k.xg=function(){return!0};
g.k.us=function(a){return this.Uv()&&a.B&&!a.qf||!a.j.index.sO(a.Qa)};
g.k.Ev=function(){};
g.k.Dq=function(a,b){return"number"!==typeof a||isFinite(a)?aR.prototype.Dq.call(this,a,void 0===b?!1:b):new VQ([new PQ(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Ej,void 0,this.Ej*this.info.Zb)],"")};
g.k.ws=function(a,b){var c=void 0===c?!1:c;if(this.index.tp(a))return aR.prototype.ws.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.Ej*this.info.Zb),f=Lhb?this.Ej:0;b&&(f=e=0);return new VQ([new PQ(c?7:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],0<=a?"sq/"+a:"")};
var Lhb=!1;g.w(gR,$Q);g.k=gR.prototype;g.k.Gn=function(){return!1};
g.k.Uv=function(){return!1};
g.k.FD=function(){return!1};
g.k.Ev=function(){return new VQ([new PQ(1,this,void 0,"otfInit")],this.G)};
g.k.Lx=function(){return null};
g.k.SB=function(a){this.us(a);return JMa(this,aMa(a),!1)};
g.k.Dq=function(a,b){b=void 0===b?!1:b;a=this.index.Mh(a);b&&(a=Math.min(this.index.Fd(),a+1));return JMa(this,a,!0)};
g.k.NN=function(a){1===a.info.type&&(this.j||(this.j=UFa(a.j)),a.B&&"http://youtube.com/streaming/otf/durations/112015"===a.B.uri&&KMa(this,a.B))};
g.k.us=function(a){return 0===a.B?!0:this.index.Fd()>a.Qa&&this.index.jn()<=a.Qa+1};
g.k.xN=function(){return 0};
g.k.fQ=function(){return!1};g.k=g.TMa.prototype;g.k.tp=function(a){return a<=this.Fd()};
g.k.qm=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.Di[a]/this.j};
g.k.qN=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.HH=aa(2);g.k.Ze=function(){return NaN};
g.k.getDuration=function(a){a=this.IV(a);return 0<=a?a/this.j:-1};
g.k.IV=function(a){return a+1<this.count||this.B?this.Di[a+1]-this.Di[a]:-1};
g.k.jn=function(){return 0};
g.k.Fd=function(){return this.count-1};
g.k.sO=function(a){return this.Fd()===a&&0<=a};
g.k.gt=function(){return this.B?this.Di[this.count]/this.j:NaN};
g.k.me=function(){return 0};
g.k.qz=function(){return this.count};
g.k.FH=function(){return""};
g.k.Mh=function(a){a=g.Sb(this.Di.subarray(0,this.count),a*this.j);return 0<=a?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return 0<=this.Fd()};
g.k.PV=function(a,b){if(a>=this.Fd())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.Fd()&&b>this.getStartTime(a);a++)c=Math.max(c,UMa(this,a)/this.getDuration(a));return c};
g.k.resize=function(a){a+=2;var b=this.offsets;this.offsets=new Float64Array(a+1);var c=this.Di;this.Di=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.Di[a]=c[a]};
g.k.cap=function(a,b){VMa(this);this.B=!0;this.Di[this.count]=b;this.offsets[this.count]=a};g.w(mR,$Q);g.k=mR.prototype;g.k.Ev=function(a,b){var c=new PQ(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),d=[new PQ(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),c];0<this.info.contentLength&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),0<a&&d.push(new PQ(4,this,NQ(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)));return new VQ(d)};
g.k.NN=function(a){if(1===a.info.type){if(this.j)return;this.j=UFa(a.j)}else if(2===a.info.type){if(this.G||0<=this.index.Fd())return;if(g.jL(this.info)){var b=this.index,c=iR(a);a=a.info.range.start;var d=g.pQ(c,0,1936286840);c=HLa(d);b.j=c.gx;var e=c.w4;b.offsets[0]=c.Q4+a+d.size;b.Di[0]=e;b.B=!0;a=c.uR.length;for(d=0;d<a;d++){e=b;var f=c.e$[d],h=c.uR[d];e.count++;VMa(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.Di[e.count]=e.Di[e.count-1]+h}}else this.G=iR(a)}if(this.info.Te()&&this.j&&this.G){c=
new DataView(this.j.buffer);b=this.index;d=this.G;a=this.indexRange.end;e=new xQ(c);c=e;e=c.pos;f={a_:1E6,b_:1E9,duration:0,qZ:0,TQ:0};if(BQ(c,408125543))if(f.qZ=CQ(c,!0),f.TQ=c.start+c.pos,BQ(c,357149030)){for(h=AQ(c);!yQ(h);){var l=CQ(h,!1);2807729===l?f.a_=EQ(h):2807730===l?f.b_=EQ(h):17545===l?f.duration=GQ(h):FQ(h)}c.pos=e;c=f}else c.pos=e,c=null;else c.pos=e,c=null;if(null!==c){b.j=c.b_/c.a_;e=new xQ(d);d=e;h=c.TQ;e=d.pos;f=[];if(BQ(d,475249515)){for(l=AQ(d);BQ(l,187);){var m=AQ(l);if(BQ(m,
179)){var n=EQ(m);if(BQ(m,183)){m=AQ(m);for(var p=h;BQ(m,241);)p=EQ(m)+h;f.push({IG:p,j4:n})}}}if(0<f.length&&a===f[0].IG)for(a=0;a<f.length;a++)f[a].IG+=1;d.pos=e;a=f}else d.pos=e,a=null;if(null!==a){a=g.u(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.IG,f=f.j4,VMa(d),d.offsets[d.count]=e,d.Di[d.count]=f,d.count++;b.cap(c.qZ+c.TQ,c.duration)}}this.G=null}};
g.k.iD=function(a,b,c,d){for(var e=[],f=a;f<=this.index.Fd();f++){var h=NQ(this.index.qm(f),UMa(this.index,f)),l=this.index.getStartTime(f),m=this.index.getDuration(f),n=Math.max(0,b-h.start),p=Math.min(h.end+1,b+c)-(h.start+n);e.push(new PQ(3,this,h,"getRequestInfoForRange",f,l,m,n,p,void 0,void 0,d));if(h.start+n+p>=b+c)break}e.length||g.TF(new g.nD("b189619593",""+a,""+b,""+c));return new VQ(e)};
g.k.jT=function(a){for(var b=this.NA(a.info),c=a.info.range.start+a.info.dc,d=a.C,e=[],f=0;f<b.length;f++){var h=yO(a.j,b[f].range.start+b[f].dc-c,b[f].B);e.push(new hR(b[f],h,d));d=void 0}return e};
g.k.NA=function(a){for(var b=a.range.start+a.dc,c=0;c<this.index.Fd()&&b>=this.index.qm(c+1);)c++;return this.iD(c,b,a.B).ib};
g.k.us=function(a){QQ(a);return this.xg()?!0:a.range.end+1<this.info.contentLength};
g.k.Lx=function(a,b){this.us(a);if(!this.xg())return b=NQ(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new LQ(b.start,this.info.contentLength-1)),new VQ([new PQ(4,a.j,b,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a.clipId)]);4===a.type&&(a=this.NA(a),a=a[a.length-1]);var c=0,d=a.range.start+a.dc+a.B;3===a.type&&(QQ(a),c=a.Qa,d===a.range.end+1&&(c+=1));return this.iD(c,d,b)};
g.k.SB=function(){return null};
g.k.Dq=function(a,b,c){b=void 0===b?!1:b;a=this.index.Mh(a);b&&(a=Math.min(this.index.Fd(),a+1));return this.iD(a,this.index.qm(a),0,c)};
g.k.Gn=function(){return!0};
g.k.Uv=function(){return!0};
g.k.FD=function(){return!1};
g.k.xN=function(){return this.indexRange.length+this.initRange.length};
g.k.fQ=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var q3={},lNa=(q3.COLOR_PRIMARIES_BT709="bt709",q3.COLOR_PRIMARIES_BT2020="bt2020",q3.COLOR_PRIMARIES_UNKNOWN=null,q3.COLOR_PRIMARIES_UNSPECIFIED=null,q3),r3={},XMa=(r3.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",r3.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",r3.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",r3.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",r3.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,r3.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,r3);g.nR.prototype.getName=function(){return this.name};
g.nR.prototype.getId=function(){return this.id};
g.nR.prototype.getIsDefault=function(){return this.isDefault};
g.nR.prototype.toString=function(){return this.name};
g.nR.prototype.getName=g.nR.prototype.getName;g.nR.prototype.getId=g.nR.prototype.getId;g.nR.prototype.getIsDefault=g.nR.prototype.getIsDefault;var bNa=/action_display_post/;var cNa;g.w(pR,g.lG);g.k=pR.prototype;g.k.isLoading=function(){return 1===this.state};
g.k.En=function(){return 3===this.state};
g.k.H9=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Fc=this.C=!0;this.timeline||(this.timeline=new CMa);GMa(this.timeline,a);this.ra("refresh");for(a=0;a<b.length;a++){var c=vNa(this,b[a]);if(!this.j[c.id]){var d=rR(cR(b[a],"BaseURL").textContent),e=cR(b[a],"Initialization"),f=bR(e,"sourceURL");e=MQ(bR(e,"range"));this.j[c.id]=new aR(d,c,f,e)}c=this.j[c.id];d=bR(b[a],"id","AdaptationSet");
d=""!==d?d:bR(b[a],"mimetype","AdaptationSet");f=this.timeline;f=f.C[c.info.id]||f.B[d]||f.j||null;d=f.j;!this.S&&f.getStreamTimeOffset()&&(this.S=f.getStreamTimeOffset());if(f.G){e=[];d=g.u(d);for(var h=d.next();!h.done;h=d.next()){h=h.value;var l=c.info.id,m=8*c.info.Zb,n=h.Qa;var p=h.startSecs;var q=f.S.split("$$");for(var r=0;r<q.length;r++)q[r]=q[r].replace("$RepresentationID$",l),q[r]=q[r].replace("$Number$",n.toString()),q[r]=q[r].replace("$Bandwidth$",m.toString()),q[r]=q[r].replace("$Time$",
p.toString());e.push(new dQ(h.Qa,h.startSecs,h.di,h.j,q.join("$"),null,h.B))}d=e}else{f=Nb(cR(b[a],"SegmentList").getElementsByTagName("SegmentURL"),f.K);e=[];for(h=0;h<f.length;h++){l=e;m=l.push;n=d[h];p=void 0;r=f[h];q=r.getAttribute("media");if(r=r.getAttribute("mediaRange")){var t=r.split("-");t[1]&&0<=Number(t[1])?p=MQ(r):q=q+"?range="+r}m.call(l,new dQ(n.Qa,n.startSecs,n.di,n.j,q,p,n.B))}d=e}c.update(d,this.isLive,this.kb)}HMa(this.timeline);return!0}this.duration=zMa(bR(a,"mediaPresentationDuration"));
a:{for(a=0;a<b.length;a++){f=b[a];c=vNa(this,f);d=rR(cR(f,"BaseURL").textContent);e=cR(f,"SegmentBase");f=MQ(e.attributes.getNamedItem("indexRange").value);e=MQ(e.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);c=new mR(d,c,e,f);if(!c){b=!1;break a}oR(this,c)}b=!0}return b};
g.k.refresh=function(){if(!this.isLoading()&&!this.isDisposed()){var a=g.Dl(this.sourceUrl,{start_seq:ANa(this).toString()});xNa(this,a).xk(function(){})}};
g.k.resume=function(){wNa(this)};
g.k.Re=function(){if(this.isManifestless&&this.B&&sR(this))return sR(this);var a=this.j,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index,l=oL(f.info.mimeType)&&this.ea;h.isLoaded()&&!l&&(f.D&&(b=!0),h=h.gt(),f.info.Ui()&&(isNaN(c)||h<c)?c=h:f.info.kh()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.me=function(){if(this.isManifestless){if(tR(this))return tR(this);if(this.Bd){var a=this.Ze(this.Re());if(a&&(a-=this.Bd,0<a))return this.Re()-a}}a=this.j;for(var b in a){var c=a[b].index,d=oL(a[b].info.mimeType)&&this.ea;if(c.isLoaded()&&!d)return c.me()}return 0};
g.k.getStreamTimeOffset=function(){return this.S};
g.k.Ze=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.Mh(a),e=c.Ze(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var wR=null,Mhb,GNa=!(null==(Mhb=navigator.mediaCapabilities)||!Mhb.decodingInfo),uNa={commentary:1,alternate:2,dub:3,main:4};HNa.prototype.override=function(a){a=g.u(Object.entries(a));for(var b=a.next();!b.done;b=a.next()){var c=g.u(b.value);b=c.next().value;c=c.next().value;Object.defineProperty(this,b,{value:c})}};xR.prototype.clone=function(a){return new xR(this.flavor,a,this.B,this.experiments)};
xR.prototype.uc=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
xR.prototype.Lh=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}};
var Nhb={},LNa=(Nhb.playready=["com.youtube.playready","com.microsoft.playready"],Nhb.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],Nhb),s3={},h6a=(s3.widevine="DRM_SYSTEM_WIDEVINE",s3.fairplay="DRM_SYSTEM_FAIRPLAY",s3.playready="DRM_SYSTEM_PLAYREADY",s3),t3={},Ohb=(t3.widevine=1,t3.fairplay=2,t3.playready=3,t3);var HR;g.w(GR,g.J);
GR.prototype.initialize=function(a,b){for(var c=this,d=g.u(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.u(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.xe)for(var h=g.u(Object.keys(f.xe)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=LNa[m];!m&&this.N("html5_enable_vp9_fairplay")&&"fairplay"===l&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.u(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.C[n]=this.C[n]||new xR(l,n,f.xe[l],this.La.experiments),this.j[l]=this.j[l]||
{},this.j[l][f.mimeType]=!0}}}CC()&&(this.C["com.youtube.fairplay"]=new xR("fairplay","com.youtube.fairplay","",this.La.experiments),this.N("html5_enable_vp9_fairplay")||(this.j.fairplay=this.j.fairplay||{},this.j.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.j.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.B=MNa(b,this.useCobaltWidevine,this.N("html5_enable_safari_fairplay"),this.N("html5_enable_vp9_fairplay")).filter(function(p){return!!c.C[p]})};
GR.prototype.N=function(a){return this.La.experiments.ob(a)};var H9a={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};var EOa={RED:"red",Vcb:"white"};VNa.prototype.ob=function(a){return"true"===this.flags[a]};var YNa=Promise.resolve(),cOa=window.queueMicrotask?window.queueMicrotask.bind(window):ZNa;$Na.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;cE?a=a||Phb[b]:2.2===hS?a=a||Qhb[b]:AC()&&(a=a||Rhb[b]);return!!a};
$Na.prototype.isTypeSupported=function(a){return this.ma?window.cast.receiver.platform.canDisplayType(a):tL(a)};
var Qhb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Rhb={"application/x-mpegURL":"maybe"},Phb={"application/x-mpegURL":"maybe"};g.w(NR,g.lG);NR.prototype.add=function(a,b){if(!this.items[a]&&(b.BG||b.lM||b.lK)){var c=this.items,d=b;Object.isFrozen&&!Object.isFrozen(b)&&(d=Object.create(b),Object.freeze(d));c[a]=d;this.ra("vast_info_card_add",a)}};
NR.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
NR.prototype.get=function(a){return this.items[a]||null};
NR.prototype.isEmpty=function(){return g.jd(this.items)};g.w(OR,g.rO);OR.prototype.j=function(a,b){var c=pO.Nr("oap");b=g.rO.prototype.j.call(this,a,b);pO.wq(c,Math.ceil(a.length/16));return b};
OR.prototype.B=function(a,b,c){var d=this,e,f;return g.H(function(h){if(1==h.j)return e=pO.Nr("oan2"),g.z(h,g.rO.prototype.B.call(d,a,b,c),2);f=h.B;pO.wq(e,Math.ceil(a.byteLength/16));return h.return(f)})};
g.w(PR,g.sO);PR.prototype.encrypt=function(a,b){var c=pO.Nr("oap");b=g.sO.prototype.encrypt.call(this,a,b);pO.wq(c,Math.ceil(a.byteLength/16));return b};
g.w(QR,tO);QR.prototype.encrypt=function(a,b){if(a.buffer!==this.j.exports.memory.buffer){var c=new Uint8Array(this.j.exports.memory.buffer,this.j.exports.malloc(a.byteLength),a.byteLength);this.B.add(c.byteOffset);c.set(a)}if(b.buffer!==this.j.exports.memory.buffer){var d=new Uint8Array(this.j.exports.memory.buffer,this.j.exports.malloc(b.byteLength),b.byteLength);this.B.add(d.byteOffset);d.set(b)}return tO.prototype.encrypt.call(this,c||a,d||b)};
QR.prototype.dispose=function(){tO.prototype.dispose.call(this);for(var a=g.u(this.B),b=a.next();!b.done;b=a.next())this.j.exports.free(b.value);this.B.clear()};SR.prototype.Ck=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.B+=a};
SR.prototype.Si=function(){return this.j/(1-Math.pow(this.alpha,this.B))};TR.prototype.Ck=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.B>=this.j&&(this.C=!0);for(;a--;)this.values[this.B]=b,this.B=(this.B+1)%this.j;this.G=!0};
TR.prototype.Si=function(){return this.S?(UR(this,this.D-this.S)+UR(this,this.D)+UR(this,this.D+this.S))/3:UR(this,this.D)};g.w(lOa,g.J);lOa.prototype.Ja=function(){var a;null==(a=this.va)||a.start();if(aS(this)&&this.policy.S){var b;null==(b=this.qe)||b.aE()}};g.w(uOa,g.J);var BOa="blogger gac books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),LOa={fma:"cbrand",pma:"cbr",qma:"cbrver",nDa:"c",qDa:"cver",pDa:"ctheme",oDa:"cplayer",gPa:"cmodel",SPa:"cnetwork",YTa:"cos",ZTa:"cosver",NUa:"cplatform"};g.w(JOa,g.J);g.k=JOa.prototype;g.k.N=function(a){return this.experiments.ob(a)};
g.k.getVideoUrl=function(a,b,c,d,e,f){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.rS(this);e="www.youtube.com"===c;!f&&d&&e?f="https://youtu.be/"+a:g.kS(this)?(f="https://"+c+"/fire",b.v=a):(f&&e?(f=this.protocol+"://"+c+"/shorts/"+a,d&&(b.feature="share")):(f=this.protocol+"://"+c+"/watch",b.v=a),cE&&(a=Lma())&&(b.ebc=a));return g.Dl(f,b)};
g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.rS(this)+"/embed/"+b;d&&(b=g.Dl(b,{list:d}));d=c.width;c=c.height;b=g.Ae(b);a=g.Ae(null!=a?a:"YouTube video player");return'<iframe width="'+d+'" height="'+c+'" src="'+b+'" title="'+(a+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>')};
g.k.supportsGaplessAudio=function(){return g.sL&&!cE&&74<=Dna()||g.FR&&g.Mc(68)?!0:!1};
g.k.supportsGaplessShorts=function(){return this.N("html5_enable_short_gapless")?!0:!1};
g.k.getPlayerType=function(){return this.j.cplayer};
g.k.wd=function(){return this.fg};
var POa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],KOa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"];g.k=ES.prototype;g.k.Lh=function(){return this.j};
g.k.TB=function(){return null};
g.k.JV=function(){var a=this.TB();return a?(a=g.bC(a.resource),Number(a.expire)):NaN};
g.k.UQ=function(){};
g.k.getHeight=function(){return this.j.video.height};QOa.prototype.build=function(){UOa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.u(this.C),e=d.next();!e.done;e=d.next())if(e=e.value,e.Rc){if(e.Rc.getIsDefault()){c=e.Rc.getId();break a}c||(c=e.Rc.getId())}}d=g.u(this.C);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.K||!e.Rc||e.Rc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.u(this.B);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.j])for(e=g.u(e),f=e.next();!f.done;f=
e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Rc){p=f.Rc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=SOa(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(TOa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}c=g.u(this.G);for(d=c.next();!d.done;d=c.next())d=d.value,e=Shb,d=(h=d.Rc)?'#EXT-X-MEDIA:URI="'+SOa(this,d.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0<this.G.length?Shb:void 0;d=g.u(this.B);for(e=d.next();!e.done;e=d.next())e=e.value,h=b[e.j],l=void 0,0<(null==(l=h)?void 0:l.length)&&(h=h[0],h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(TOa(h,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(h+=",FRAME-RATE="+
e.fps),e.sB&&(h+=",VIDEO-RANGE="+e.sB),a.push(h),a.push(SOa(this,e.url,"")));return a.join("\n")};
var Shb="text";g.w(GS,ES);GS.prototype.JV=function(){return this.expiration};
GS.prototype.TB=function(){if(!this.resource||this.resource.isDisposed()){var a=this.B.build();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.resource=new FL(a)}return this.resource};g.w(HS,ES);HS.prototype.TB=function(){return new FL(this.B.jf())};
HS.prototype.UQ=function(){this.B=cQ(this.B)};g.w(IS,ES);IS.prototype.TB=function(){return new FL(this.B)};var Thb={},fPa=(Thb.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Thb.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Thb);g.k=g.JS.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.j};
g.k.jf=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.KS(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.k.equals=function(a){return a?this.toString()===a.toString():!1};
g.k.Ie=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var kPa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},lPa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},mPa=/^(\d*)_((\d*)_?(\d*))$/;var oPa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},pPa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var u3={},gQa=(u3.ALWAYS=1,u3.BY_REQUEST=3,u3.UNKNOWN=void 0,u3),v3={},nQa=(v3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",v3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",v3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",v3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",v3);var NFa;
NFa=function(a){for(var b=Object.keys(a),c={},d=0;d<b.length;d++){var e=b[d];"function"===typeof a[e]&&(c[e]=a[e])}var f=Object.keys(c);try{Ola(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},q=0;q<f.length;q++){var r=f[q],t=l[r],v=(0,c[r])(t,m);if("undefined"===typeof v)throw l=m&&m.type,Error("When called with an action of type "+(l?'"'+String(l)+'"':"(unknown type)")+', the slice reducer for key "'+r+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');p[r]=
v;n=n||v!==t}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
return fGa(a,b)}});
g.vT=new vO;RS.prototype.toString=function(){return this.type+this.id};g.SS.prototype.Lg=function(a){a=a||"hqdefault.jpg";var b=this.ma[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.j)return sS(this.La,this.j,a)};
g.SS.prototype.Qk=function(){return this.La.getVideoUrl(this.videoId,this.playlistId)};g.TS.prototype.Lg=function(a){a||(a="hqdefault.jpg");var b=this.ma[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:sS(this.La,this.videoId,a)};
g.TS.prototype.Qk=function(a){return this.watchUrl||this.La.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,a)};var US=void 0;txa("LMS",function(){return g.H(function(a){return a.return(g.VS())})});var ZS,NPa;ZS=0;NPa=!1;g.QPa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;txa("LMDB",function(){var a,b;return g.H(function(c){if(1==c.j)return g.z(c,g.fE(),2);if(3!=c.j){a=c.B;if(!a)throw g.JD("edd");return g.z(c,g.YS(a),3)}b=c.B;return c.return(g.RD(b,["index","media","captions"],{mode:"readonly",kc:!0},function(d){var e={};d=[g.WD(d.objectStore("index"),{},function(f){e[f.getKey()]=f.getValue();return f.continue()}),
opa(d.objectStore("media")),opa(d.objectStore("captions"))];return g.LD.all(d).then(function(f){var h=g.u(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:RPa(f||[]),captions:h}})}))})});g.w($S,g.lG);$S.prototype.Ba=function(){this.j&&(this.j=this.j.onload=null);g.lG.prototype.Ba.call(this)};g.k=g.dT.prototype;g.k.getHeight=function(){return this.height};
g.k.OV=aa(4);g.k.tH=function(){return this.frameCount};
g.k.isDefault=function(){return-1!==this.C.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.jf=function(a){var b=this.G;b=b.replace("$N",this.C);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.D&&(b=g.Dl(b,{sigh:this.D}));return mK(b)};
g.k.gG=function(a){var b=this.tH()-1;return g.ne(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
g.k.Mx=function(){return this.frameCount-1};
g.k.bL=function(){return this.frameCount?0:-1};
g.k.kT=function(){};g.w(eT,$S);eT.prototype.B=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.G(e-1,d,a[e],b);(this.S||180>f.getHeight())&&c.push(f)}return c};
eT.prototype.G=function(a,b,c,d){return new g.dT(a,b,c,d)};g.w(XPa,g.dT);g.k=XPa.prototype;g.k.tH=function(){return this.B.qz()};
g.k.gG=function(a){var b=this.rows*this.columns*this.K,c=this.B,d=c.Fd();a=c.Mh(a);return a>d-b?-1:a};
g.k.Mx=function(){return this.B.Fd()};
g.k.bL=function(){return this.B.jn()};
g.k.kT=function(a){this.B=a};g.w(fT,eT);fT.prototype.B=function(a,b){return eT.prototype.B.call(this,"$N|"+a,b)};
fT.prototype.G=function(a,b,c){return new XPa(a,b,c,this.isLive)};g.w(g.hT,g.lG);g.k=g.hT.prototype;g.k.W=function(){return this.La};
g.k.N=function(a){return this.La.N(a)};
g.k.Ph=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Kl)||!a.rb)};
g.k.bY=function(){this.isDisposed()||(this.j.C||this.j.unsubscribe("refresh",this.bY,this),this.TU(-1))};
g.k.TU=function(a){if(!this.isLivePlayback||!this.K||"fairplay"!=this.K.flavor){var b=rNa(this.j,this.wO);if(0<b.length){for(var c=g.u(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.me());this.ra("cuepointupdated",b,a);this.wO+=b.length;if(rT(this)&&this.La.wd())for(b=g.u(b),d=b.next();!d.done;d=b.next())c=d.value,this.ya("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.BB.start=this.OF,this.BB.end=
c+3)}}};
g.k.pj=function(){return this.xe?!0:!!this.j&&UP(this.j)};
g.k.Uj=function(){if(this.cotn)return null;var a=g.SJ(this.La)||this.N("web_l3_storyboard");if(!this.nk)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.nk=new eT(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=bba(this.j.j).index)&&(this.nk=new fT(b.spec,this.j.isLive,c,a))}else this.Ey?this.nk=new eT(this.Ey,this.lengthSeconds,void 0,!1,a):this.Zx&&this.j&&
(b=bba(this.j.j).index)&&(this.nk=new fT(this.Zx,this.j.isLive,b,a));return this.nk};
g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.Ey||this.Zx};
g.k.Re=function(){return this.j&&!isNaN(this.j.Re())?this.j.Re():rT(this)?this.N("html5_live_seek_timeline_timestamps")||this.N("html5_sabr_live")?46800:0:this.lengthSeconds};
g.k.me=function(){return this.j&&!isNaN(this.j.me())?this.j.me():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.j&&this.B){var b=this.j.j[this.B.id];if(!b)return null;var c=b.index.Mh(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.Ie=function(){return!this.isDisposed()&&!(!this.videoId&&!this.Rl)};
g.k.Mv=function(){var a,b,c;return!!this.adaptiveFormats||!!(null==(a=this.playerResponse)?0:null==(b=a.streamingData)?0:null==(c=b.adaptiveFormats)?0:c.length)};
g.k.isLoaded=function(){return iT(this)&&!this.dh&&!this.Fo};
g.k.Lg=function(a){if(30==this.Fa)return(a=this.ma["default.jpg"])?a:this.videoId?g.Dl("//docs.google.com/vt",{id:this.videoId,authuser:this.KT,authkey:this.fU}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.ma[a];return b||this.La.Ca||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:sS(this.La,this.videoId,a)};
g.k.Fc=function(){return this.isLivePlayback||this.ze||this.Pa||!(!this.liveUtcStartSeconds||!this.Ml)};
g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.ze&&!this.isLivePlayback&&this.j.C)};
g.k.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.Yx||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.D&&!kL(this.D))return g.Bb(this.getAvailableAudioTracks(),function(d){return d.id==a.D.id})||this.Il;
if(this.Yx){if(!this.Lo)for(var b=g.u(this.Yx),c=b.next();!c.done;c=b.next())if(c=c.value,c.Rc.getIsDefault()){this.Lo=c;break}return this.Lo||this.Il}return this.Il};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getHeartbeatResponse=function(){return this.yL};
g.k.Qk=function(){return this.watchUrl?this.watchUrl:this.La.getVideoUrl(this.videoId)};
g.k.nO=function(){return!!this.j&&(eNa(this.j)||fNa(this.j)||gNa(this.j))};
g.k.isAd=function(){return!!this.adFormat};
g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.gR=function(){return hQa(this)?this.nX:this.Ap||this.gg};
g.k.rF=function(){return this.sj||this.gg};
g.k.UL=function(){return nT(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){return!0};
g.k.ya=function(a,b,c){this.ra("ctmp",a,b,c)};
g.k.zQ=function(a,b,c){this.ra("ctmpstr",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.Ba=function(){g.lG.prototype.Ba.call(this);this.qx=null;delete this.p4;delete this.accountLinkingConfig;delete this.j;this.C=this.yL=this.playerResponse=this.Jd=null;this.Gf=this.adaptiveFormats="";delete this.botguardData;this.Ud=this.suggestions=this.wx=null};var sRa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},tRa={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},uRa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},rRa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},pRa={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF",
2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},qRa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};g.w(ARa,g.J);ARa.prototype.Ba=function(){this.ma=this.B=this.C=this.K=this.j=this.S=this.G=this.D=void 0};var w3={},BRa=(w3["api.invalidparam"]=2,w3.auth=150,w3["drm.auth"]=150,w3["heartbeat.net"]=150,w3["heartbeat.servererror"]=150,w3["heartbeat.stop"]=150,w3["html5.unsupportedads"]=5,w3["fmt.noneavailable"]=5,w3["fmt.decode"]=5,w3["fmt.unplayable"]=5,w3["html5.missingapi"]=5,w3["html5.unsupportedlive"]=5,w3["drm.unavailable"]=5,w3["mrm.blocked"]=151,w3);g.w(ZT,g.J);g.k=ZT.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.G[a],e=this.state.S[a],f=d;if(e)if(c&&jK(c,Vgb))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.u(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.UF(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.k.isExternalMethodAvailable=function(a,b){return this.state.G[a]?!0:!!(this.state.S[a]&&b&&jK(b,Vgb))};
g.k.getBandwidthEstimate=function(){return $R(this.app.W().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.dU(this.app);b&&(a={gpu:(0,g.d0)(),d:a},b.handleError(new WK("feedback",a)))};
g.k.getInternalApiInterface=function(){return g.fd(this.state.j)};
g.k.logApiCall=function(a,b,c){var d=this.app.W();d.Go&&!this.state.ma.has(a)&&(this.state.ma.add(a),g.zD("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:b||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.Ya,errorCode:c}))};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)};
g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.queueNextVideo(a,b,c,void 0===d?"":d,void 0===e?"":e)};
g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.k.startSeekCsiAction=function(){this.app.oi().D.j=(0,g.OD)()};
g.k.seekToStreamTime=function(a,b,c){this.j&&j1(this.app,!0,this.playerType);var d=this.app,e=this.playerType;b=void 0===b?!0:b;var f=void 0===f?!1:f;var h=g.dU(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.Xc()&&(l=h.getStreamTimeOffset());l1(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.dU(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.dU(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&l1(this.app,Infinity,a,b,this.playerType)};
g.k.requestSeekToWallTimeSeconds=function(a,b){var c=g.dU(this.app,this.playerType);c&&c.KQ(a,b)};
g.k.syncVolume=function(){var a=V9a(this.app);hU(this.app,{volume:a.volume,muted:a.muted},!1)};
g.k.getAvailableQualityLabels=function(){var a=g.dU(this.app,this.playerType);return a?g.Yp(a.Vs(),function(b){return b.qualityLabel}):[]};
g.k.channelSubscribed=function(){this.Ta("SUBSCRIBE",this.app.Qd().Hl)};
g.k.channelUnsubscribed=function(){this.Ta("UNSUBSCRIBE",this.app.Qd().Hl)};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.dU(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.dU(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.confirmYpcRental=function(){var a=g.dU(this.app,this.playerType);a&&a.Fg("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.W().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.W().Ho=a};
g.k.setLivingRoomAppMode=function(a){this.app.W().livingRoomAppMode=KC("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,IOa)};
g.k.setEnablePrivacyFilter=function(a){this.app.W().enablePrivacyFilter=void 0===a?!1:a};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.addUtcCueRange=function(a,b,c,d,e){return B$a(this.app,a,b,c,d,e)};
g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.k.i5=function(a){a=void 0===a?this.playerType:a;var b=this.cW(a);if(a=g.dU(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.Ca;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?0:c.utcTimeMillis)?Le(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?Le(a.progressBarEndPosition.utcTimeMillis):
null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.L9;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=SQa(a);b.paidContentOverlayDurationMs=TQa(a);a.j&&RP(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}return b};
g.k.cW=function(a){a=void 0===a?this.playerType:a;var b=GRa(this,a);if(a=g.dU(this.app,a)){a=a.getVideoData();b.backgroundable=a.backgroundable;b.eventId=a.eventId;b.cpn=a.clientPlaybackNonce;b.isLive=a.isLivePlayback;b.isWindowedLive=a.Pa;b.isManifestless=rT(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.pj()&&(b.isEncrypted=!0);if(a.C)for(var c=g.u(a.C.videoInfos),d=c.next();!d.done;d=c.next()){var e=void 0;if(null==
(e=d.value.video)?0:e.isHdr()){b.isHdr=!0;break}}var f,h;b.isMultiChannelAudio=!!(null==(f=a.D)?0:null==(h=f.audio)?0:h.isMultiChannelAudio())}return b};
g.k.getAdState=function(){return this.app.getAdState()};
g.k.isNotServable=function(a){if(a!==this.app.config.args.video_id)return!1;var b=(a=(a=g.dU(this.app,1))?a.getPlayerState():null)?a.Ah:null;return!!(a&&b&&g.aH(a,128)&&5===CRa(b.errorCode))};
g.k.supportsGaplessAudio=function(){return this.app.W().supportsGaplessAudio()};
g.k.supportsGaplessShorts=function(){return this.app.W().supportsGaplessShorts()};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.sendAbandonmentPing=function(){var a=g.dU(this.app);a&&a.sendAbandonmentPing()};
g.k.refreshAllStaleEntities=function(a){return this.app.refreshAllStaleEntities(a)};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.setAutonavState=function(a,b){b=void 0===b?!1:b;if(this.N("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Qd(),null==b?0:uQa(b))){if(this.N("web_player_autonav_server_provided_state_pause_killswitch"))return;if(3===a)3!==b.autonavState&&(b.FB=b.autonavState);else if(void 0!==b.FB)a=b.FB,b.FB=void 0;else return}I$a(this.app,a)};
g.k.setAutonav=function(a,b){this.setAutonavState(a?2:1,void 0===b?!1:b)};
g.k.setLoopRange=function(a){this.app.setLoopRange(a)};
g.k.getLoopRange=function(){return this.app.getLoopRange()};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=g.dU(this.app,this.playerType))||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a,b){b=void 0===b?!1:b;var c=g.dU(this.app,this.playerType);c&&c.setUserAudio51Preference(a,b)};
g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.dU(this.app,this.playerType))?void 0:a.getUserAudio51Preference())?b:1};
g.k.setProximaLatencyPreference=function(a){var b=g.dU(this.app,this.playerType);b&&b.setProximaLatencyPreference(a)};
g.k.getProximaLatencyPreference=function(){var a=g.dU(this.app,this.playerType);return a?a.getProximaLatencyPreference():0};
g.k.isProximaLatencyEligible=function(){var a=g.dU(this.app,this.playerType);return a?a.isProximaLatencyEligible():!1};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.updateLastActiveTime=function(){bF()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setUserEngagement=function(a){this.app.W().Ql!==a&&(this.app.W().Ql=a,(a=g.dU(this.app,this.playerType))&&N0(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.JV(this.app.Eb()).z_(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.JV(this.app.Eb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.JV(this.app.Eb());a&&a.f_()};
g.k.isSubtitlesOn=function(){var a=g.JV(this.app.Eb());return a?a.isSubtitlesOn():!1};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Mf()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.dU(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getHeartbeatResponse=function(){var a=g.dU(this.app,this.playerType);return a?a.getVideoData().getHeartbeatResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.Uj();if(!c)return null;b=c.levels[b];return b?(a=g.cT(b,a))?{column:a.column,columns:a.columns,height:a.ow,row:a.row,rows:a.rows,url:a.url,width:a.YD}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Uj();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Xc();return b.gG(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.Uj();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.Mx(),minFrameIndex:b.bL()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Uj();return a?a.levels.length:0};
g.k.J4=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.dU(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().Il};
g.k.setAudioTrack=function(a,b){3===this.getPresentingPlayerType()&&rU(this.app.Eb()).mE("control_set_audio_track",a);var c=g.dU(this.app,this.playerType);if(c)if(c.isDisposed()||g.aH(c.playerState,128))a=!1;else{var d;if(null==(d=c.videoData.C)?0:d.j){d=b?c.getCurrentTime()-c.Xc():NaN;if(b){var e=G8a(c.xd);c.ya("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})}c.Da.setAudioTrack(a,d,b)}else if(w9a(c)){b:{b=c.mediaElement.audioTracks();for(d=0;d<b.length;++d)if(e=b[d],e.label===a.Rc.getName()){if(e.enabled){b=
!1;break b}b=e.enabled=!0;break b}b=void 0}b&&c.ya("hlsaudio",{id:a.id})}else{b:if(b=c.videoData,b.D&&!kL(b.D)||a==b.Lo||!b.qd||0>=b.qd.length)b=!1;else{d=g.u(b.qd);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof GS)){b=!1;break b}var f=a.Rc.getId();e.B&&(ROa(e.B,f),e.resource=null)}b.Lo=a;b=!0}b&&E0(c)&&(c.ra("internalaudioformatchange",c.videoData,!0),c.ya("hlsaudio",{id:a.id}))}a=!0}else a=!1;return a};
g.k.K4=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.dU(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.dU(this.app,this.playerType);return a&&a.getVideoData().B?PP(a.cg?T6a(a.bl,a.cg,a.Bv()):gT):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.dU(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.JV(this.app.Eb());return a?a.g5():null};
g.k.resetSubtitlesUserSettings=function(){g.JV(this.app.Eb()).q$()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setOverlayVisibility=function(a){this.ra("overlayvisibilitychange",a)};
g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.k.setGlobalCrop=function(a){this.app.tb().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.yg();return this.app.getVisibilityState(this.Nh(),this.isFullscreen()||g.iS(this.app.W()),a,this.isInline(),this.app.Jz(),this.app.Hz())};
g.k.isMutedByMutedAutoplay=function(){return this.app.jA};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.tb().setInternalSize(new g.we(a,b))};
g.k.Xc=function(){var a=g.dU(this.app);return a?a.Xc():0};
g.k.yg=function(){return this.app.yg()};
g.k.Nh=function(){var a=g.dU(this.app,this.playerType);return!!a&&a.Nh()};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.setSafetyMode=function(a){this.app.W().enableSafetyMode=a};
g.k.canPlayType=function(a){return this.app.canPlayType(a)};
g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;b&&b!==a.list&&(c=!0);void 0!==a.external_list&&(this.app.gi=JC(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.vV(b).videoId||(a.index=b.index)):$0(this.app,{list:a.list,index:a.index,playlist_length:d.length});gUa(this.app.getPlaylist(),a);this.Ta("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.dU(this.app,this.playerType||1);c&&g.kT(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){GOa(this.app.W(),a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ra("changeProductsInVideoVisibility",a)};
g.k.setInline=function(a){this.app.setInline(a)};
g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
g.k.getVideoAspectRatio=function(){return this.app.tb().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.dU(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.getPlaybackQualityLabel=function(a){if(a=g.dU(this.app,a)){var b,c;return(null==(c=null==(b=a.getVideoData().B)?void 0:b.video)?void 0:c.qualityLabel)||""}return""};
g.k.setPlaybackQualityRange=function(a,b,c){var d=g.dU(this.app,this.playerType);d&&g.t9a(d,g.MP(a,b||a,!0,"m"),!0,c)};
g.k.onAdUxClicked=function(a,b){this.ra("aduxclicked",a,b)};
g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.k.dispatchReduxAction=function(a){g.vT.dispatch(a)};
g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.Ud.includes(e)||(c.Ud.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Fb(c.Ud,e)&&(d=!0)});
d&&this.ra("updatemarkervisibility")};
g.k.highlightSettingsMenuItem=function(a){this.ra("highlightSettingsMenu",a)};
g.k.openSettingsMenuItem=function(a){this.ra("openSettingsMenuItem",a)};
g.k.ra=function(a){var b=g.Ja.apply(1,arguments);this.app.W().K&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.tq.ra.apply(this.app.tq,[a].concat(g.pa(b)));this.app.zr.ra.apply(this.app.zr,[a].concat(g.pa(b)))};
g.k.Ta=function(a){var b=g.Ja.apply(1,arguments);this.app.tq.ra.apply(this.app.tq,[a].concat(g.pa(b)));this.app.zr.ra.apply(this.app.zr,[a].concat(g.pa(b)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.N=function(a){return this.app.W().N(a)};
g.k.Ba=function(){if(this.element){var a=this.element,b;for(b in this.state.j)this.state.j.hasOwnProperty(b)&&(a[b]=null);this.element=null}g.J.prototype.Ba.call(this)};var JRa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.w(gU,ZT);g.k=gU.prototype;g.k.getApiInterface=function(){return Array.from(this.state.D)};
g.k.B3=function(a,b){if("string"===typeof b){var c=function(){var d=g.Ja.apply(0,arguments);g.Ta(b).apply(window,d)};
this.state.K[b]=c}else c=b;this.app.tq.subscribe(a,c)};
g.k.j$=function(a,b){if("string"===typeof b){var c=this.state.K[b];g.md(this.state.K,b);b=c}this.app.tq.unsubscribe(a,b)};
g.k.getPlayerState=function(){return q$a(this.app)};
g.k.seekTo=function(a,b,c){var d=g.nS(this.app.W()),e=g.iU(this.app),f=this.app.getVideoData().El;g.OC(d)&&!f||e||(this.j&&j1(this.app,!0,this.playerType),l1(this.app,a,b,c,this.playerType))};
g.k.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.k.getMediaReferenceTime=function(){var a=this.app.Ze(this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.k.getDuration=function(){return this.app.getDuration(this.playerType)};
g.k.getVolume=function(){return this.app.Gi.volume};
g.k.setVolume=function(a){MRa(this,a)};
g.k.isMuted=function(){return this.app.Gi.muted};
g.k.mute=function(){NRa(this)};
g.k.unMute=function(){ORa(this)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().Sd&&(a.pfp={enableIma:this.app.W().qa&&this.app.Qd().allowImaMonetization,autoplay:QT(this.app.Qd()),mutedAutoplay:this.app.Qd().mutedAutoplay});return a};
g.k.playVideo=function(){this.j&&j1(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Mf()){var b=MV(this.app.Eb());if(!jcb(b)||kcb(b))return}3===a?rU(this.app.Eb()).mE("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(a){var b=this.app.getPresentingPlayerType();if(2!==b||this.app.Mf()||jcb(MV(this.app.Eb())))3===b?rU(this.app.Eb()).mE("control_pause"):this.app.pauseVideo(b,a)};
g.k.stopVideo=function(){var a=this.app;a.Z.Yc&&a.Za.ra("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getAvailablePlaybackRates=function(){var a=this.app.W();return a.Sf?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(a.D?a.ancestorOrigins[0]:window.location.origin)||a.Io?Igb:Hgb:[1]};
g.k.getPlaybackQuality=function(a){return(a=g.dU(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.dU(this.app,this.playerType);return a?(a=g.Yp(a.Vs(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.k.getVideoBytesTotal=function(){return 1};
g.k.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.k.getVideoStartBytes=function(){return 0};
g.k.getSize=function(){var a=this.app.tb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.setSize=function(){this.app.tb().resize()};
g.k.loadModule=function(a){"captions"===a&&(a=g.JV(this.app.Eb()))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.JV(this.app.Eb()))&&a.loaded&&a.vaa()};
g.k.loadVideoById=function(a,b,c){a&&(a=fU(a,b,c),a=this.app.loadVideoByPlayerVars(a,this.playerType),this.j&&j1(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){a=fU(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=IRa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.j&&j1(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=IRa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.W();if(a.Ca)return"";var b=this.app.Qd(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.getDebugText=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.W();if(a.Ca)return"";var b=this.app.Qd();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Qd().videoId,this.app.tb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return A$a(this.app,a,b,c)};
g.k.removeCueRange=function(a){return C$a(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.j&&j1(this.app,!0,this.playerType)};
g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.k.nextVideo=function(){this.app.nextVideo();this.j&&j1(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.j&&j1(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.j&&j1(this.app,!0,this.playerType)};
g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.k.e5=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.vV(a,c);d&&b.push(d.videoId)}return b};
g.k.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.Eb();return"captions"===a?(a=g.JV(d))&&a.Jh(b,c):null};
g.k.getOption=function(a,b,c){var d=g.dU(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.W().D?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.Eb();if("captions"===a){var c;return(null==(c=g.JV(b))?void 0:c.getOptions())||null}return a?null:(a=[],g.JV(b)&&a.push("captions"),a)};
g.k.getSphericalProperties=function(){var a=g.uU(this.app.Eb());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.uU(this.app.Eb());b&&b.setSphericalProperties(a,!0)}};
g.k.destroy=function(){this.app.dispose()};
g.k.logImaAdEvent=function(a,b){this.app.W().qa&&this.app.Qd().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.Rea(this.app.W().loaderUrl),eventType:a,youtubeHost:g.xl(this.app.W().Ja)||""},g.zD("embedsAdEvent",a))};
g.k.mutedAutoplay=function(){var a=this.app.W();if(this.N("embeds_web_enable_host_flags_client_permissions")){var b,c;var d=null==(b=a.webPlayerContextConfig)?void 0:null==(c=b.embedsHostFlags)?void 0:c.allowMutedAutoplay}else{var e;d=null==(e=a.webPlayerContextConfig)?void 0:e.allowEmbedsMutedAutoplay}this.N("embeds_enable_muted_autoplay")&&d&&!a.C&&this.app.mutedAutoplay()};
g.k.preloadVideoById=function(a,b,c){if(a){a=fU(a,b,c);b=this.app.W();if(this.N("embeds_web_enable_host_flags_client_permissions")){var d,e;b=null==(d=b.webPlayerContextConfig)?void 0:null==(e=d.embedsHostFlags)?void 0:e.allowPreloadVideoPlayerVars}else{var f;b=null==(f=b.webPlayerContextConfig)?void 0:f.embedsEnablePreloadVideoPlayerVars}b&&this.N("embeds_web_move_preload_by_player_vars_to_public")&&this.app.preloadVideoByPlayerVars(a,this.playerType)}};g.w(jU,gU);g.k=jU.prototype;g.k.addCueRange=function(a,b,c,d,e){return A$a(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return q$a(this.app,a)};
g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.seekBy=function(a,b,c){TRa(this)&&l1(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){TRa(this)&&l1(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.getCurrentTime=function(a,b){if(2===this.app.getAppState()&&5===this.getPlayerState()){var c;return(null==(c=this.app.getVideoData())?void 0:c.startSeconds)||0}return a?this.app.getCurrentTime(a,b):gU.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=rU(this.app.Eb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):gU.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return rU(this.app.Eb()).getProgressState();var b=this.app.getVideoData(),c=g.dU(this.app,a)||g.dU(this.app),d=c.getPlayerType();a:{var e=this.app.getVideoData();var f;if(null==(f=e.progressBarStartPosition)?0:f.utcTimeMillis)if(e=Number(e.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(e)){e=URa(this,e,a);break a}e=0}var h;a:{f=this.app.getVideoData();if(null==(h=f.progressBarEndPosition)?0:h.utcTimeMillis)if(h=Number(f.progressBarEndPosition.utcTimeMillis)/
1E3,!isNaN(h)){h=URa(this,h,a);break a}h=0}f=this.getCurrentTime(a);a=this.getDuration(a);var l=this.app.Ze(d),m=this.app.isAtLiveHead(d),n=this.app.oz(),p=this.app.me(d);var q=this.app;var r=g.dU(q,d);r?(r=W0(q,r),q=g1(q,rY(r),r)):q=0;c=c.Xc();r=this.app.getVideoData().dA;!r||isNaN(r)?d=0:(d=URa(this,r,d),r=g.JJ(this.app.W().experiments,"partial_rewind_buffer_seconds"),d-=r>d?d:r);return{airingStart:e,airingEnd:h,allowSeeking:this.app.Ph(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:f,displayedStart:-1,
duration:a,ingestionTime:l,isAtLiveHead:m,loaded:n,seekableStart:p,seekableEnd:q,offset:c,viewerLivestreamJoinMediaTime:d}};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.getCurrentBroadcastId=function(){return null};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var m=g.eU(this);m&&m.handleGlobalKeyDown(a,b,c,d,e,f,h,l)};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.eU(this);l&&l.handleGlobalKeyUp(a,b,c,d,e,f,h)};
g.k.setSizeStyle=function(a,b){this.app.setSizeStyle(a,b)};
g.k.showControls=function(){var a=g.eU(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.eU(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.tb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.setFauxFullscreen=function(a){g.SC();this.app.Em(a?2:0)};
g.k.toggleFullscreen=function(){function a(c){g.UF(c)}
var b=this.app.W();if(b.externalFullscreen){if(!g.xS(b))return this.isFullscreen()?UC(window.document.documentElement):ioa(window.document.documentElement).catch(a)}else if(g.SC()||b.ma)return this.isFullscreen()?UC(TC()):"3"!==b.controlsType&&g.SC()?ioa(this.app.tb().element).catch(a):(b=this.app.zf().Gb())?ioa(b).catch(a):Promise.reject(Error("Media element missing"));this.Ta("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=MV(this.app.Eb());a&&a.created&&a.destroy();(a=g.dU(this.app))&&a.stopVideo();(a=this.app.Eb().Ue.get("endscreen"))&&a.d6()&&g.qU(this.app.Za,!0)};
g.k.getVideoStats=function(){return g.dU(this.app,this.playerType).uc(!0)};
g.k.toggleSubtitles=function(){var a=g.JV(this.app.Eb());a&&a.haa()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.uU(this.app.Eb());b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.uU(this.app.Eb());return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){MRa(this,a,b)};
g.k.mute=function(a){NRa(this,a)};
g.k.unMute=function(a){ORa(this,a)};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.PV(this.app.Eb());b&&!b.loaded&&b.load()}gU.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.PV(this.app.Eb());b&&b.loaded&&b.unload()}gU.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.Eb();switch(a){case "ad":return(a=MV(d))&&a.Jh&&a.Jh(b,c);case "kids":return(a=OUa(d))&&a.Jh(b,c);case "remote":return(a=rU(d))&&a.Jh(b,c);case "unplugged":return(a=g.NV(d))&&a.Jh(b,c);case "annotations_module":return(a=g.PV(d))&&a.Jh(b,c);case "creatorendscreen":return(a=PUa(d))&&a.Jh(b,c)}return gU.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.Eb();switch(a){case "ad":var c,d;return(null==(c=MV(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=rU(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var h,l;return(null==(h=g.PV(b))?void 0:null==(l=h.getOptions)?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return(null==(m=PUa(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null==
(p=g.NV(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var r,t;return(null==(r=OUa(b))?void 0:null==(t=r.getOptions)?void 0:t.call(r))||null}if(!a){a=gU.prototype.getOptions.call(this);if(!a)return a;MV(b)&&a.push("ad");rU(b)&&a.push("remote");g.PV(b)&&a.push("annotations_module");PUa(b)&&a.push("creatorendscreen");g.NV(b)&&a.push("unplugged");OUa(b)&&a.push("kids");return a}return gU.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.tb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.eU(this);a&&a.Vp()};
g.k.setCenterCrop=function(a){this.app.tb().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var RRa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
SRa="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");kU.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
kU.prototype.forEach=function(a){for(var b=this.j+1;b<this.data.length;b++)a(this.data[b]||0);for(b=0;b<=this.j;b++)a(this.data[b]||0)};
kU.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.B=this.j=this.data.length-1};g.w(lU,g.J);lU.prototype.start=function(){this.B.start()};
lU.prototype.stop=function(){this.B.stop()};
lU.prototype.clear=function(){for(var a=g.u(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
lU.prototype.sample=function(){for(var a=g.u(this.C),b=a.next();!b.done;b=a.next()){var c=g.u(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new WRa(Uhb.has(b)));this.j.get(b).update(c())}this.B.start()};
var Uhb=new Set(["networkactivity"]);WRa.prototype.update=function(a){this.j?(this.buffer.add(a-this.Pz||0),this.Pz=a):this.buffer.add(a)};
WRa.prototype.clear=function(){this.buffer.clear();this.Pz=0};g.w(g.oU,jU);g.k=g.oU.prototype;g.k.Ao=function(a,b,c,d,e,f,h){return this.app.Ao(a,b,c,d,e,f,h)};
g.k.VC=function(){return this.app.VC()};
g.k.Us=aa(6);g.k.Eb=function(){return this.app.Eb()};
g.k.Bf=function(){var a=this.Eb().Ue.get("endscreen");return!!a&&a.Bf()};
g.k.getRootNode=function(){return this.tb().element};
g.k.W=function(){return this.app.W()};
g.k.pz=aa(8);g.k.pn=function(a){return this.app.pn(a)};
g.k.qn=function(){return this.cL};
g.k.Tb=function(a){return this.app.Tb(a)};
g.k.tb=function(){return this.app.tb()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.dU(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a||g.TT(b)&&!a){b=this.app;a=b.getVideoData();if(b.Ve){var d=b.Ve;b=b.getCurrentTime();d=d.kq?void 0:null==(c=GY(d,1E3*b))?void 0:c.videoData;a=d||a}else b.Uc&&b.Ob&&(c=b.Ob.getCurrentTime(),a=(null==(d=MY(b.Uc,1E3*c))?void 0:d.getVideoData())||a);c=a}else c=b;return c};
g.k.Uj=function(a){return this.app.Uj(a)};
g.k.Zv=function(){return this.app.Zv()};
g.k.isHdr=function(){var a=g.dU(this.app);return a?a.isHdr():!1};
g.k.tO=function(){return this.app.tO()};
g.k.ZA=function(a){this.app.ZA(a)};
g.k.Sg=function(a,b,c,d,e){this.app.Rg(a,b,c,d,e)};
g.k.Ir=function(a,b){this.app.Ir(a,b)};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){rU(this.app.Eb()).mE("control_play");return}if(2===this.getPresentingPlayerType()){var b=MV(this.app.Eb());if(b&&kcb(b))return}}catch(c){g.TF(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.dU(this.app,a).stopVideo()};
g.k.Yn=function(a){g.dU(this.app,a).Yn()};
g.k.addEventListener=function(a,b){this.app.zr.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.zr.unsubscribe(a,b)};
g.k.ra=function(a){jU.prototype.ra.call.apply(jU.prototype.ra,[this,a].concat(g.pa(g.Ja.apply(1,arguments))))};
g.k.ME=function(a){this.app.ME(a)};
g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)};
g.k.Vs=function(){var a={},b=g.dU(this.app).Vs();b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.WC=function(){return g.dU(this.app).WC()};
g.k.fD=aa(12);g.k.IJ=function(a){this.app.IJ(a);a&&I$a(this.app,a)};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
g.k.gD=aa(14);g.k.Qn=aa(18);g.k.Xn=function(a){var b=g.dU(this.app);b&&b.Xn(a)};
g.k.Wz=function(a,b){this.Eb().Wz(a,b)};
g.k.Ek=function(){var a=g.PV(this.Eb());return!!a&&a.Ek()};
g.k.Ro=function(){var a=g.PV(this.Eb());return!!a&&a.Ro()};
g.k.VA=function(a,b,c){var d=g.PV(this.Eb());d&&d.VA(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ra("changeProductsInVideoVisibility",a)};
g.k.UA=aa(19);g.k.uo=function(){var a=g.dU(this.app);a&&a.uo()};
g.k.SJ=function(a){this.Ta("onVideoAreaChange");this.Ta(a?"onShowControls":"onHideControls")};
g.k.Pk=function(a,b){var c=g.eU(this);if(c)return c.Pk(a,b);a=this.app.tb().Vj();return new g.vr(0,0,a.width,a.height)};
g.k.kp=function(){return this.app.kp()};
g.k.GD=function(){var a=this.Eb().Ue.get("heartbeat");return!!a&&a.GD()};
g.k.Ph=function(){var a=this.W();if(a.Pa||a.disableSeek)return!1;var b=g.dU(this.app);if(!b)return!1;var c=b.getVideoData();if(!c.Ie()||g.FT(c)||2===this.getPresentingPlayerType()&&!this.app.Mf()||b.mp()&&3!==this.getPresentingPlayerType())return!1;a=g.nS(a);return g.OC(a)&&!c.El||g.iU(this.app)?!1:!0};
g.k.BD=function(){var a;return(null==(a=g.dU(this.app))?void 0:a.BD)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.pu=function(){var a=g.dU(this.app);a&&a.pu()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.xf=function(a,b,c){this.app.Ay(a,b,c)};
g.k.Op=function(a,b){this.app.VE(a,b)};
g.k.mf=function(a,b){var c=this.app,d=g.dU(c,b);d&&(a=d.Mi.mf(a),b&&c.getPresentingPlayerType()!==b||U0(c,"cuerangesremoved",a))};
g.k.Fg=function(a,b){(b=g.dU(this.app,b))&&b.Fg(a)};
g.k.mp=function(){var a=g.dU(this.app);return a?a.mp():!0};
g.k.Mv=function(){var a=this.getVideoData();return!!a&&(a.Mv()||!!a.hlsFormats||!!a.Ub)};
g.k.getPlaybackRate=function(){return g.dU(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.ne(a,0,100);hU(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){hU(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){hU(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.zf=function(){return this.app.zf()};
g.k.oi=function(){return this.app.oi()};
g.k.Tj=function(a){return this.app.Tj(a)};
g.k.getBandwidthEstimate=function(){return $R(this.W().schedule)};
g.k.zb=function(a,b,c,d){this.W().fb&&this.app.Nq.zb(a,b,c,void 0===d?!1:d)};
g.k.qg=function(a,b,c){this.W().fb&&this.app.Nq.qg(a,b,void 0===c?!1:c)};
g.k.Gg=function(a,b){this.W().fb&&this.app.Nq.Gg(a,b)};
g.k.wb=function(a,b){this.W().fb&&(this.app.Nq.click(a,b),this.ra("veClickLogged",a))};
g.k.Xa=function(a,b,c){if(this.W().fb){var d=this.app.Nq;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.QF(),f=a.visualElement;d.B.has(a)?e&&f&&(b?g.eG(e,[f]):g.fG(e,[f])):b&&!d.C.has(a)&&(e&&f&&g.dG(e,f,void 0,c),d.C.add(a))}};
g.k.Wj=function(a){return this.W().fb?this.app.Nq.Wj(a):!1};
g.k.AC=function(a){this.W().fb&&this.app.Nq.AC(a)};
g.k.Gd=function(){return g.dU(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.Lw=function(){this.app.Lw()};
g.k.Uy=function(a,b){return this.app.Uy(a,b)};
g.k.Sp=function(a){this.app.Sp(a)};
g.k.Zz=function(){this.app.Zz()};
g.k.addPlayerResponseForAssociation=function(a){this.app.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.app.finishSegmentByCpn(a,b)};
g.k.hC=function(a,b,c,d,e,f,h){return this.app.hC(a,b,c,d,e,f,h)};
g.k.xD=function(a,b,c,d,e,f,h){return this.app.xD(a,b,c,d,e,f,h)};
g.k.Xt=function(a){this.app.Xt(a)};
g.k.Iy=function(a,b){b=void 0===b?Infinity:b;this.app.Iy(void 0===a?-1:a,b)};
g.k.oK=function(a){var b;null==(b=g.JV(this.Eb()))||b.oK(a)};
g.k.FF=function(a,b,c){this.app.FF(a,b,c)};
g.k.Cv=function(){return this.app.Cv()};
g.k.cH=function(a,b,c){this.app.cH(a,b,void 0===c?0:c)};
g.k.Yv=function(){return this.app.Yv()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.Mf=function(){return this.app.Mf()};
g.k.Nt=function(a,b,c){return this.app.Nt(a,b,c)};
g.k.ya=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.dU(this.app,d))||e.ya(a,b,c)};
g.k.jP=function(a,b){this.ra("aduxmouseover",a,b)};
g.k.iP=function(a,b){this.ra("aduxmouseout",a,b)};
g.k.FP=function(a,b){this.ra("muteadaccepted",a,b)};
g.k.ID=function(){return this.app.tb().ID()};
g.k.aB=function(a){this.app.tb().aB(a)};
g.k.Kr=function(){var a=g.dU(this.app);return a?a.Kr():!1};
g.k.aR=function(a){this.app.aR(a)};
g.k.rI=function(a){var b,c=null==(b=g.dU(this.app))?void 0:b.Da;c&&c.rI(a)};var aSa;g.w($Ra,jD);$Ra.prototype.UC=function(a,b){a=jD.prototype.UC.call(this,a,b);return Object.assign({},a,this.Ow)};var dSa=!1;var F8a=!1;gSa.prototype.Df=function(a,b){if(this.D)return mSa(this,b);if(b=mZ(a)){var c=b.B;c&&c.G&&c.B&&(a=a.C.length?a.C[0]:null)&&2<=a.state&&!a.En()&&0===a.info.hh&&(this.D=a,this.S=c,this.B=b.info,this.K=this.startTimeSecs=Date.now()/1E3,this.G=this.B.startTime)}return NaN};
gSa.prototype.clear=function(){this.B=this.S=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1};
var kSa=!1;g.w(g.BU,g.tG);g.k=g.BU.prototype;g.k.show=function(){var a=this.qj();g.tG.prototype.show.call(this);this.Fa&&(this.S.V(window,"blur",this.Qb),this.S.V(document,"click",this.W1));a||this.ra("show",!0)};
g.k.hide=function(){var a=this.qj();g.tG.prototype.hide.call(this);nSa(this);a&&this.ra("show",!1)};
g.k.zd=function(a,b){this.B=a;this.qa.show();b?(this.ea||(this.ea=this.S.V(this.J,"appresize",this.wU)),this.wU()):this.ea&&(this.S.Qc(this.ea),this.ea=void 0)};
g.k.CV=function(){this.B&&this.element&&(this.B.getAttribute("aria-haspopup"),this.B.setAttribute("aria-expanded","true"),this.focus())};
g.k.wU=function(){var a=g.eU(this.J);this.B&&a.Hw(this.element,this.B)};
g.k.Qb=function(){var a=this.qj();nSa(this);this.qa.hide();a&&this.ra("show",!1)};
g.k.W1=function(a){var b=ZC(a);b&&(g.Af(this.element,b)||this.B&&g.Af(this.B,b)||!g.kH(a))||this.Qb()};
g.k.qj=function(){return this.Ib&&4!==this.qa.state};g.w(oSa,g.BU);oSa.prototype.zd=function(){g.BU.prototype.zd.call(this);this.dialog.focus()};g.w(g.EU,g.tG);g.EU.prototype.updateValue=function(a,b){g.tG.prototype.updateValue.call(this,a,b);this.ra("size-change")};var CSa={yK:13,NT:12,QT:11,pL:10,zL:9,vK:8,uK:7,xL:6,SUBTITLES:5,AUDIO:4,vL:3,AT:2,REMOTE:1,dS:0,13:"CINEMATIC",12:"REMOTE_SELECT",11:"SIZE",10:"MINIPLAYER",9:"THREED",8:"AUTONAV",7:"ANNOTATIONS",6:"SPEED",5:"SUBTITLES",4:"AUDIO",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.w(HU,g.EU);HU.prototype.lc=function(a){this.B&&this.J.Xa(this.element,this.j&&a)};
HU.prototype.D=function(){var a,b,c=null==(a=this.J.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.J.getVideoData())?void 0:d.accountLinkingConfig;GU(this,BG());var e;g.DU(this,IU(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.C=new oSa(this.J,IU(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),IU(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),IU(null==a?void 0:null==
(l=a.menuData)?void 0:l.confirmButtonText));g.L(this,this.C);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;(this.B=!!d)&&this.J.Gg(this.element,d);this.Pb.ud(this);this.j=!0}else!c&&this.j&&(this.Pb.Fh(this),this.j=!1)};
HU.prototype.onClick=function(){this.B&&this.J.wb(this.element);this.Pb.Qb();this.C&&this.C.zd()};g.w(JU,g.J);JU.prototype.N=function(a){return this.api.N(a)};g.w(KU,JU);KU.prototype.onVideoDataChange=function(a){if(!a.accountLinkingConfig){var b,c=null==(b=a.getPlayerResponse())?void 0:b.accountLinkingConfig;a.accountLinkingConfig=c}var d;if(b=null==(d=a.accountLinkingConfig)?void 0:d.alsParam)a.IT=b};
KU.prototype.setAccountLinkState=function(a){this.api.getVideoData().IT=a;this.api.uo()};
KU.prototype.updateAccountLinkingConfig=function(a){var b=this.api.getVideoData(),c=b.accountLinkingConfig;c&&(c.linked=a);this.api.ra("videodatachange","dataupdated",b,this.api.getPresentingPlayerType())};g.w(pSa,JU);g.w(rSa,g.T);g.k=rSa.prototype;
g.k.UB=function(){var a;if(a=3!==this.J.getPresentingPlayerType()&&g.xU(this.J)&&400<=this.J.tb().getPlayerSize().width)if(a=this.Qd(),this.J.W().N("client_respect_autoplay_switch_button_renderer"))a=!!a.autoplaySwitchButtonRenderer;else{var b,c,d,e;a=!1!==!!(null==(b=a.Jd)?0:null==(c=b.contents)?0:null==(d=c.twoColumnWatchNextResults)?0:null==(e=d.autoplay)?0:e.autoplay)}if(a)this.j||(this.j=!0,g.sG(this,this.j),this.J.W().N("web_player_autonav_toggle_always_listen")||qSa(this),b=this.Qd(),this.lT(b.autonavState),
this.J.Xa(this.element,this.j));else if(this.j=!1,g.sG(this,this.j),!this.J.W().N("web_player_autonav_toggle_always_listen"))for(this.J.W().N("web_player_autonav_toggle_always_listen"),b=g.u(this.B),c=b.next();!c.done;c=b.next())this.Qc(c.value)};
g.k.lT=function(a){tSa(this)?this.isChecked=1!==a:((a=1!==a)||(g.kD(),a=g.SB("web_autonav_allow_off_by_default")&&!g.lD(0,141)&&g.Iv("AUTONAV_OFF_BY_DEFAULT")?!1:!g.lD(0,140)),this.isChecked=a);sSa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.IJ(this.isChecked?2:1);sSa(this);if(tSa(this)){var a=this.Qd().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.J.Ta("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.J.Ta("innertubeCommand",a.onDisabledCommand)}this.J.wb(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.Qd=function(){return this.J.getVideoData(1)};g.w(uSa,JU);g.w(NU,g.EU);NU.prototype.onClick=function(){OU(this,!this.checked);this.ra("select",this.checked)};
NU.prototype.getValue=function(){return this.checked};var ASa={NT:13,QT:12,pL:11,zL:10,vK:9,vL:8,xL:7,SUBTITLES:6,AUDIO:5,uK:4,yK:3,AT:2,REMOTE:1,dS:0,13:"REMOTE_SELECT",12:"SIZE",11:"MINIPLAYER",10:"THREED",9:"AUTONAV",8:"QUALITY",7:"SPEED",6:"SUBTITLES",5:"AUDIO",4:"ANNOTATIONS",3:"CINEMATIC",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"},BSa={NT:13,QT:12,pL:11,zL:10,vK:9,yK:8,uK:7,AUDIO:6,SUBTITLES:5,xL:4,vL:3,AT:2,REMOTE:1,dS:0,13:"REMOTE_SELECT",12:"SIZE",11:"MINIPLAYER",10:"THREED",9:"AUTONAV",8:"CINEMATIC",7:"ANNOTATIONS",6:"AUDIO",5:"SUBTITLES",
4:"SPEED",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};var wSa=["en-CA","en","es-MX","fr-CA"];g.w(TU,NU);TU.prototype.Sa=function(a){a?this.j||(this.Pb.ud(this),this.j=!0):this.j&&(this.Pb.Fh(this),this.j=!1);this.j&&OU(this,tKa())};
TU.prototype.C=function(){g.ku(this.element,"ytp-menuitem-highlight-transition-enabled")};
TU.prototype.D=function(a){var b=tKa();a!==b&&(b=g.kD(),Eoa(190,a),Eoa(192,!0),b.save(),this.J.Ta("cinematicSettingsToggleChange",a))};
TU.prototype.Ba=function(){this.j&&this.Pb.Fh(this);NU.prototype.Ba.call(this)};g.w(FSa,JU);FSa.prototype.updateCinematicSettings=function(a){this.j=a;var b;null==(b=this.menuItem)||b.Sa(a);this.api.ra("onCinematicSettingsVisibilityChange",a)};g.w(UU,g.T);UU.prototype.show=function(){g.T.prototype.show.call(this);this.api.Xa(this.element,!0)};
UU.prototype.hide=function(){g.T.prototype.hide.call(this);this.api.Xa(this.element,!1)};g.w(HSa,JU);HSa.prototype.j=function(){if(this.culturalMomentOverlay){var a,b=this.D&&(this.B.isActive()||this.C)&&2!==this.api.getPresentingPlayerType()&&!this.api.Bf()&&!g.aH(this.api.Tb(),2)&&!(null==(a=g.eU(this.api))?0:a.zg())&&!g.tU(this.api);this.culturalMomentOverlay.Ib!==b&&(b?this.culturalMomentOverlay.show():this.culturalMomentOverlay.hide())}};g.w(WU,JU);WU.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.mf("embargo",1);var c=null==b?void 0:b.AK.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==c?0:c.length)?JSa(this,c.filter(function(d){return ISa(a,d)})):(null==b?0:b.cueRanges)&&JSa(this,b.cueRanges.filter(function(d){return ISa(a,d)}))};
WU.prototype.B=function(a){return void 0!==a.embargo};
WU.prototype.Ba=function(){JU.prototype.Ba.call(this);this.j={}};g.w(KSa,JU);
KSa.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.W(),c=b.widgetReferrer,d=b.Bd,e=this.j,f="",h=b.webPlayerContextConfig;h&&(f=h.embedsIframeOriginParam||"");0<c.length&&(a.embeds_widget_referrer=c);0<d.length&&(a.embeds_referring_euri=d);b.D&&0<f.length&&(a.embeds_referring_origin=f);0<e.length&&(b.N("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):g.OC(g.nS(b))&&e.unshift(159628),b=e.join(","),b=g.BC()?b:g.ng(b,4),a.source_ve_path=b);this.j.length=
0};g.w(LSa,JU);g.w(XU,g.T);XU.prototype.onClick=function(){this.Za.wb(this.element);this.Za.Ta("onFullerscreenEduClicked")};
XU.prototype.Sa=function(){this.Za.isFullscreen()?this.B?this.j.hide():this.j.show():this.hide();this.Za.Xa(this.element,this.Za.isFullscreen()&&!this.B)};g.w(YU,JU);YU.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;null!=(b=this.j)&&(g.mu(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.ub(b,g.LU(b.ub.Ec(),b.element)),b.C=!0))};
YU.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;null!=(b=this.j)&&(b.B=a,b.Sa())};g.w(MSa,g.T);g.w(PSa,JU);g.w(ZU,JU);ZU.prototype.seekToChapterWithAnimation=function(a){var b=this,c=g.eU(this.api);if(c&&!(0>a)){var d=this.api.getVideoData(),e=d.lk;if(e&&a<e.length){e=g.u(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.index===a){QSa(this,c,f.startTime,f.title);return}}this.N("web_key_moments_markers")&&(d=d.OT)&&a<d.length&&d.forEach(function(h,l){l===a&&QSa(b,c,h.timeRangeStartMillis,h.title)})}};
ZU.prototype.seekToTimeWithAnimation=function(a,b){var c=g.eU(this.api);c&&QSa(this,c,a,b)};
ZU.prototype.setMacroMarkers=function(a,b){b={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:b}}}}}};(a=a.getVideoData())&&null==a.Jd&&(aQa(a,{raw_watch_next_response:b}),a.ra("dataupdated"))};g.w($U,JU);$U.prototype.D=function(a){return void 0!==a.compositeEmbargo};
$U.prototype.Ba=function(){JU.prototype.Ba.call(this);this.B.clear()};g.w(aV,JU);aV.prototype.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.H(function(l){return 1==l.j?(f=OV(e.api.Eb()))?g.z(l,f.a$([a],b,c,d),3):l.Ma(2):2!=l.j&&(h=l.B,h.length)?l.return(h[0]):l.return(Promise.reject())})};
aV.prototype.updateDownloadState=function(a,b){var c=OV(this.api.Eb());return c?c.updateDownloadState(a,b):Promise.reject()};
aV.prototype.pauseVideoDownload=function(a){var b=OV(this.api.Eb());b&&b.bQ(a)};
aV.prototype.resumeVideoDownload=function(a){var b=this,c;return g.H(function(d){return(c=OV(b.api.Eb()))?d.return(c.eF(a)):d.return(Promise.reject())})};g.w(VSa,JU);VSa.prototype.getAvailableQualityData=function(){var a=this.api.getVideoData();if(!a)return[];var b=[],c,d,e=null==(c=a.getPlayerResponse())?void 0:null==(d=c.playabilityStatus)?void 0:d.paygatedQualitiesMetadata;c=new Map(((null==e?void 0:e.qualityDetails)||[]).map(function(h){return[h.key,h.value]}));
if(d=null==e?void 0:e.restrictedAdaptiveFormats){e=[];d=g.u(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f=pL(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=xT(a);VP(e);d=[];e=g.u(e);for(f=e.next();!f.done;f=e.next())f=f.value,!0===TP(a,f,this.api.W().G)&&d.push(f);b=b.concat(WSa(d,!1,c))}a=this.api.WC();b=b.concat(WSa(a,!0,c));c=[];if(this.api.N("web_player_enable_premium_hbr_in_h5_api"))return b=YSa(b),XSa(b),b;a={};b=g.u(b);for(e=
b.next();!e.done;e=b.next())e=e.value,d=e.quality,a[d]||(e.formatId=void 0,c.push(e),a[d]=!0);return c};g.w(g.cV,g.lG);g.k=g.cV.prototype;g.k.V=function(a,b){this.D.V(this.ma,a,b,void 0,!this.j)};
g.k.cancel=function(){this.C&&(this.C=!1,this.ra("dragend",0,0,null));this.B&&(this.B=!1,this.ra("hoverend",0,0,null),dV(this),bV(this))};
g.k.pw=function(a){dV(this);this.V(eV("move"),this.mT);this.V(eV("out"),this.hA);this.V("touchstart",this.eL);this.j&&this.V(eV("down"),this.dL);var b=a.target;a=new g.ue(a.pageX,a.pageY);this.B=!0;this.ra("hoverstart",a.x,a.y,b);this.ra("hovermove",a.x,a.y,b)};
g.k.mT=function(a){var b=a.target;a=new g.ue(a.pageX,a.pageY);if(this.G){var c=this.G;this.G=null;if(c.relatedTarget===b&&ve(new g.ue(c.pageX,c.pageY),a))return}this.ra("hovermove",a.x,a.y,b)};
g.k.hA=function(a){var b=new g.ue(a.pageX,a.pageY),c=a.relatedTarget;try{if(c&&g.Af(this.target,c)){this.G=a;this.ra("hovermove",b.x,b.y,c);return}}catch(d){}dV(this);bV(this);this.B=!1;this.ra("hoverend",b.x,b.y,c)};
g.k.O6=function(a){this.pw(a);this.dL(a)};
g.k.dL=function(a){if("number"!==typeof a.button||0===a.button){dV(this);this.D.V(document,eV("move"),this.N6);this.D.V(document,eV("up"),this.X1);var b=a.target;if(g.Pc)this.V("dragstart",this.t4);else if(a.preventDefault(),(g.yS||zr)&&b)a:{for(var c=b;c;){if(Cf(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.C=!0;a=new g.ue(a.pageX,a.pageY);this.ra("dragstart",a.x,a.y,b);this.ra("dragmove",a.x,a.y,b)}};
g.k.t4=function(a){a.preventDefault()};
g.k.N6=function(a){var b=a.target;b===document&&(b=null);a=new g.ue(a.pageX,a.pageY);this.ra("hovermove",a.x,a.y,b);this.ra("dragmove",a.x,a.y,b)};
g.k.X1=function(a){dV(this);this.C=!1;var b=ZC(a),c=a.target;a=new g.ue(a.pageX,a.pageY);b&&g.Af(this.target,b)?(this.V(eV("move"),this.mT),this.V(eV("out"),this.hA),this.V(eV("down"),this.dL),this.V("touchstart",this.eL),this.ra("dragend",a.x,a.y,c)):(bV(this),this.B=!1,this.ra("dragend",a.x,a.y,c),this.ra("hoverend",a.x,a.y,c))};
g.k.eL=function(a){var b=a.changedTouches[0];b&&(dV(this),this.ea||(this.V("touchmove",this.iaa),this.V("touchend",this.nT),this.V("touchcancel",this.nT),this.K=b.identifier,a=a.target,this.B||(this.B=!0,this.ra("hoverstart",b.pageX,b.pageY,a)),this.ra("hovermove",b.pageX,b.pageY,a),this.j&&(this.C=!0,this.ra("dragstart",b.pageX,b.pageY,a),this.ra("dragmove",b.pageX,b.pageY,a))))};
g.k.iaa=function(a){var b=ZSa(this,a);b&&(this.j&&a.preventDefault(),a=a.target,this.ra("hovermove",b.pageX,b.pageY,a),this.j&&this.ra("dragmove",b.pageX,b.pageY,a))};
g.k.nT=function(a){var b=ZSa(this,a);if(b){dV(this);bV(this);this.B=!1;var c=a.target;this.j&&(this.S||a.preventDefault(),this.C=!1,this.ra("dragend",b.pageX,b.pageY,c));this.ra("hoverend",b.pageX,b.pageY,c)}};
g.k.Ba=function(){this.j&&(g.Pc&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");dV(this);g.lG.prototype.Ba.call(this)};g.w(aTa,g.T);g.w(gV,JU);gV.prototype.va=function(a,b){this.ma=[a,b];this.j.subscribe("dragmove",this.S,this);this.j.subscribe("dragend",this.K,this);this.C||g.bu(this.delay)};
gV.prototype.Ja=function(){if(this.D){this.C=!0;this.Fa=this.api.getPlaybackRate();this.Oa=this.api.Tb().isPaused();var a=this.speedmasterUserEdu;g.yr(a.j,"display","");a.J.Xa(a.j,!0);this.api.setPlaybackRate(this.Pa);this.api.hideControls();this.api.playVideo();this.qa&&(this.qa.XN=!0);this.ea&&(this.ea.WH=!0)}};
gV.prototype.S=function(a,b){if(!this.C){a=[a,b];var c=this.ma;c&&a&&2===c.length&&2===a.length?(b=Math.abs(c[0]-a[0]),c=Math.abs(c[1]-a[1]),b=Math.sqrt(b*b+c*c)):b=-1;b<this.Ca?this.ma=a:hV(this)}};
gV.prototype.K=function(){hV(this)};g.w(eTa,JU);eTa.prototype.onVideoDataChange=function(a){"newdata"===a&&this.api.Eb().createSubtitlesModuleIfNeeded()};g.w(iV,g.xb);iV.prototype.preventDefault=function(){g.xb.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
iV.prototype.stopPropagation=function(){g.xb.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.w(g.jV,OL);g.k=g.jV.prototype;g.k.Mu=function(){return!0};
g.k.isView=function(){return!1};
g.k.LQ=function(){return!1};
g.k.Gb=function(){return this.j};
g.k.Lf=function(){return this.j.src};
g.k.fG=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.k.FJ=function(){this.j.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.j.playbackRate?this.j.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a};
g.k.Zs=function(){return this.j.loop};
g.k.setLoop=function(a){this.j.loop=a};
g.k.canPlayType=function(a,b){return this.j.canPlayType(a,b)};
g.k.isPaused=function(){return this.j.paused};
g.k.Wg=function(){return this.j.seeking};
g.k.ri=function(){return this.j.ended};
g.k.BH=function(){return this.j.muted};
g.k.WA=function(a){MAa();this.j.muted=a};
g.k.Gv=function(){return this.j.played||uL([],[])};
g.k.Kh=function(){try{var a=this.j.buffered}catch(b){}return a||uL([],[])};
g.k.jD=function(){return this.j.seekable||uL([],[])};
g.k.eG=function(){var a=this.j;return a.getStartDate?a.getStartDate():null};
g.k.getCurrentTime=function(){return this.j.currentTime};
g.k.setCurrentTime=function(a){this.j.currentTime=a};
g.k.getDuration=function(){return this.j.duration};
g.k.load=function(){var a=this.j.playbackRate;try{this.j.load()}catch(b){}this.j.playbackRate=a};
g.k.pause=function(){this.j.pause()};
g.k.play=function(){var a=this.j.play();if(!a||!a.then)return null;a.then(void 0,function(){});
return a};
g.k.yk=function(){return this.j.readyState};
g.k.CH=function(){return this.j.networkState};
g.k.rg=function(){return this.j.error?this.j.error.code:null};
g.k.yf=function(){return this.j.error?this.j.error.message:""};
g.k.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.j instanceof window.HTMLVideoElement&&this.j.getVideoPlaybackQuality)return this.j.getVideoPlaybackQuality();if(this.j){var a=this.j,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}};
g.k.Nh=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.k.pu=function(){return!!this.j.webkitShowPlaybackTargetPicker()};
g.k.togglePictureInPicture=function(){var a=this.j,b=window.document;window.document.pictureInPictureEnabled?this.j!==b.pictureInPictureElement?a.requestPictureInPicture():b.exitPictureInPicture():LAa()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.kt=function(){var a=this.j;return new g.ue(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.Jr(this.j)};
g.k.setSize=function(a){g.Ir(this.j,a)};
g.k.getVolume=function(){return this.j.volume};
g.k.setVolume=function(a){MAa();this.j.volume=a};
g.k.QM=function(a){this.G[a]||(this.j.addEventListener(a,this.listener),this.G[a]=this.listener)};
g.k.setAttribute=function(a,b){this.j.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.j.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.j.hasAttribute(a)};
g.k.iC=aa(21);g.k.xF=aa(23);g.k.yF=aa(25);g.k.Ky=aa(27);g.k.MC=function(){return UC(this.j)};
g.k.Bs=function(a){g.iu(this.j,a)};
g.k.lD=function(a){return g.Ar(this.j,a)};
g.k.lO=function(){return g.Af(document.body,this.j)};
g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
g.k.Ba=function(){for(var a=g.u(Object.keys(this.G)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.G[b]);OL.prototype.Ba.call(this)};g.w(lV,g.T);g.w(nV,g.T);nV.prototype.show=function(){g.T.prototype.show.call(this);this.Sa()};
nV.prototype.hide=function(){g.T.prototype.hide.call(this);this.delay.stop()};
nV.prototype.Sa=function(){var a=(0,g.OD)(),b=hTa(this.Za);mV(this.j,b.bandwidth_samples);mV(this.D,b.network_activity_samples);mV(this.C,b.live_latency_samples);mV(this.B,b.buffer_health_samples);var c={};b=g.u(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;this.G[d]!==e&&(c[d]=" "+String(e));this.G[d]=e}this.update(c);a=25<(0,g.OD)()-a?5E3:500;this.delay.start(a)};g.w(kTa,JU);g.w(oV,g.J);oV.prototype.j=function(){var a=(0,g.OD)()-this.startTime;a=a<this.duration?a/this.duration:1;this.B(Eu(Vhb,a));1>a&&this.delay.start()};
var Vhb=new Du(0,0,.4,0,.2,1,1,1),qTa=/[0-9.-]+|[^0-9.-]+/g;g.w(pV,g.T);pV.prototype.onClick=function(){var a=this.api.app;a.Za.Ta("SIZE_CLICKED",!a.vO);this.api.wb(this.element)};
pV.prototype.Sa=function(){g.sG(this,this.api.tO()&&!this.api.isFullscreen()&&3!==this.api.getPresentingPlayerType());if(this.Ib){var a=this.api.Zv();if(this.Zv!==a){var b=a?{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,Y:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,Y:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",
fill:"#fff","fill-rule":"evenodd"}}]};null==this.Zv?this.updateValue("icon",b):pTa(this.transition,this.element,b);this.Zv=a;b=g.RU(this.api,"Default view","t");var c=g.RU(this.api,"Cinema mode","t");this.updateValue("title",a?b:c);this.update({"data-title-no-tooltip":a?"Default view":"Cinema mode"});MU(this.tooltip)}}this.api.Xa(this.element,this.Ib)};g.w(rTa,JU);g.w(sTa,JU);qV.prototype.send=function(a,b){var c;return g.H(function(d){if(1==d.j)return g.za(d,2),g.z(d,qC(a,b),4);if(2!=d.j)return d.return(d.B);c=g.Ca(d);if(c instanceof pC)throw new Gm(Fm(hC(c.xhr)),c.message);throw c;})};
qV.prototype.PC=function(a,b){var c=this,d,e,f,h,l,m;return g.H(function(n){if(1==n.j){var p=new Kn;d=Lj(p,1,c.Pf);a&&Lj(d,2,a);b&&Lj(d,3,b);return g.z(n,c.send(c.B,Object.assign({},{postBody:d.Dj()},c.j)),2)}e=n.B;f=Adb(e.xhr.responseText);h=Wi(f,2);if(!h.isEmpty()){if(g.BC()&&10>Ena())throw Error("Unsupported");l=og(eda(h));return n.return(hga(l))}m=g.sj(f,Qm,1);if(!m)throw Error("Missing field");return n.return(m)})};
qV.prototype.yV=function(a){var b=this,c,d;return g.H(function(e){if(1==e.j){var f=new Ln;f=Lj(f,1,b.Pf);c=Lj(f,2,a);return g.z(e,b.send(b.C,Object.assign({},{postBody:c.Dj()},b.j)),2)}d=e.B;return e.return(Cdb(d.xhr.responseText))})};g.w(rV,JU);rV.prototype.Ba=function(){this.C&&(g.mC(this.C),this.C=void 0);JU.prototype.Ba.call(this)};
rV.prototype.eN=function(a){var b=this;return g.H(function(c){return b.j?c.return(b.j.ready().then(function(){b.Hb.Fi("pot_if");return WTa(b,a)})):c.return(Promise.reject("web po not ready"))})};
rV.prototype.XO=function(a){return WTa(this,a)};
rV.prototype.RR=function(){this.j&&!this.j.isReady()&&sV(this)};g.w(XTa,JU);g.w(YTa,g.J);tV.prototype.lP=function(){this.B=(0,g.OD)()};
tV.prototype.reset=function(){this.j=this.B=NaN};
tV.prototype.qP=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.01>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};a.G&&(c.cttAuthInfo={token:a.G,videoId:a.videoId});iI("seek",c);g.hI({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.B)||jI("pl_ss",this.B,"seek");jI(b,(0,g.OD)(),"seek")}this.reset()}};g.k=ZTa.prototype;g.k.reset=function(){fI(this.timerName)};
g.k.tick=function(a,b){jI(a,b,this.timerName)};
g.k.Fi=function(a){return Qwa(a,this.timerName)};
g.k.Cu=function(a){bM(a,void 0,this.timerName)};
g.k.info=function(a,b){Owa(a,b,this.timerName)};g.w(cUa,g.lG);g.k=cUa.prototype;g.k.Sk=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.qp=function(a){return this.loop||!!a||0<=this.index-1};
g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.B++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.B++}this.ra("shuffle")};
g.k.Lg=function(a){a=a||"hqdefault.jpg";var b=this.ma[a];if(b||this.La.Ca||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return sS(this.La,this.C[0],a)};
g.k.Rw=function(a){this.index=g.ne(a,0,this.length-1);this.startSeconds=0};
g.k.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.k.onReady=function(a){this.j=a;this.loaded&&g.jC(this.j,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Qk=function(){return this.La.getVideoUrl(g.vV(this).videoId,this.getPlaylistId())};
g.k.Ba=function(){this.j=null;g.tb(this.items);g.lG.prototype.Ba.call(this)};var wV=new Map;g.w(g.yV,g.lG);g.k=g.yV.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.Jh=function(){};
g.k.xl=function(){return!0};
g.k.Ba=function(){this.loaded&&this.unload();g.lG.prototype.Ba.call(this)};
g.k.uc=function(){return{}};
g.k.getOptions=function(){return[]};g.w(g.BV,g.J);g.k=g.BV.prototype;g.k.Mt=aa(30);g.k.Vz=function(){};
g.k.Vr=function(){};
g.k.Jv=function(){return""};
g.k.lQ=aa(31);g.k.Ba=function(){this.Vr();g.J.prototype.Ba.call(this)};g.w(g.CV,g.BV);g.CV.prototype.Mt=aa(29);g.CV.prototype.Vz=function(a){if(this.audioTrack)for(var b=g.u(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.AV(this.j,c.value);a()};
g.CV.prototype.Jv=function(a,b){var c=a.jf(),d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.BC()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.MS(a));this.Z.N("web_player_topify_subtitles_for_shorts")&&this.C&&(d.xosf="1");Object.assign(d,this.Z.j);return cC(c,d)};
g.CV.prototype.Vr=function(){this.B&&this.B.abort()};g.oUa.prototype.override=function(a){a=g.u(Object.entries(a));for(var b=a.next();!b.done;b=a.next()){var c=g.u(b.value);b=c.next().value;c=c.next().value;Object.defineProperty(this,b,{value:c})}};g.Whb=new Map;g.w(g.HV,g.BV);g.HV.prototype.Mt=aa(28);
g.HV.prototype.Vz=function(a){var b=this,c=this.C,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.KW&&(d.asrs=1);c=cC(c,d);this.Vr();this.B=g.oC(c,{format:"RAW",onSuccess:function(e){b.B=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),r=l.getAttribute("id"),t="true"===l.getAttribute("lang_default"),v="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.AV(b.j,new g.JS({languageCode:m,languageName:n,name:p,kind:q,id:r,is_servable:!0,is_translateable:v,vss_id:l,is_default:t}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.G[m.languageCode]=m.languageName,b.D.push(m)}a()},
withCredentials:!0})};
g.HV.prototype.Jv=function(a,b){var c=this.C;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};this.Z.N("captions_url_add_ei")&&(b.ei=this.eventId);a.translationLanguage&&(b.tlang=g.MS(a));Object.assign(b,this.Z.j);return c=cC(c,b)};
g.HV.prototype.Vr=function(){this.B&&this.B.abort()};uUa.prototype.reload=function(){var a=this;return g.H(function(b){if(1==b.j)return IV&&a.module?g.z(b,WebAssembly.instantiate(a.module,a.B),6):a.exports&&a.C?g.z(b,a.C(a.B),5):b.Ma(0);if(6!=b.j)return a.exports=b.B,b.Ma(0);a.instance=b.B;a.exports=a.instance.exports;g.ya(b)})};
g.sL||g.FR&&!g.zC("windows nt")||g.ID||g.dE||Ena();var IV="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);g.w(BUa,g.J);g.k=BUa.prototype;g.k.createSubtitlesModuleIfNeeded=function(){FUa(this)&&KV(this,"captions");return!!g.JV(this)};
g.k.rF=function(){return this.J.getVideoData().rF()};
g.k.gR=function(){return this.J.getVideoData().gR()};
g.k.aV=function(){var a=this.Ue.get("heartbeat");KV(this,"heartbeat",!1,!0,this.aV);!a&&this.Ue.has("heartbeat")&&this.J.ra("offlineslatestatechange")};
g.k.NG=function(){KV(this,"annotations_module",!0,void 0,this.NG);var a=this.Ue.get("annotations_module");if(a)for(var b in this.C)if(this.C.hasOwnProperty(b)){var c=b;a.subscribe(c,this.C[c])}};
g.k.yM=function(){if(!this.Ue.get("ad"))try{CUa(this)?KV(this,"ad",!1,!0,this.yM):this.J.Fg("ad")}catch(a){this.J.Fg("ad"),g.TF(a)}};
g.k.oi=function(){return this.B};
g.k.Fq=function(){var a={},b=g.JV(this);b&&Object.assign(a,b.Fq());return a};
g.k.Wz=function(a,b){Object.assign(this.B,a||null);Object.assign(this.OG,b||null)};
g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.J.N("enable_wn_infocards")&&g.MT(a)&&!g.PV(this)&&this.NG()};
g.k.Ba=function(){g.J.prototype.Ba.call(this);LV(this,1,!0);for(var a=g.u(Object.entries(SUa)),b=a.next();!b.done;b=a.next()){var c=g.u(b.value);b=c.next().value;c=c.next().value;this.D.has(c)&&wV.delete(b)}this.D.clear()};
var x3={},SUa=(x3.ad="ad.js",x3.annotations_module="annotations_module.js",x3.asmjs="asmjs.js",x3.creatorendscreen="annotations_module.js",x3.embed="embed.js",x3.endscreen="endscreen.js",x3.heartbeat="heartbeat.js",x3.inline_preview="inline_preview.js",x3.kids="kids.js",x3.remote="remote.js",x3.miniplayer="miniplayer.js",x3.music="music.js",x3.offline="offline.js",x3.captions="captions.js",x3.unplugged="unplugged.js",x3.ux="ux.js",x3.webgl="webgl.js",x3.ypc="ypc.js",x3.ypc_clickwrap="ypc_clickwrap.js",
x3.yto="yto.js",x3);g.w(UUa,g.lG);g.k=UUa.prototype;g.k.Y1=function(a){a=new g.ue(a.pageX,a.pageY);if(!ve(a,this.D)){var b=2;this.K&&(b|=8);this.D=a;QV(this,b,!0)}};
g.k.P6=function(){this.K&&QV(this,8,!0);QV(this,2,!1)};
g.k.pw=function(a){var b=new g.ue(a.pageX,a.pageY);ve(b,this.D)||(this.D=b,(a=a.target)&&this.AG(a)&&(QV(this,4,!0),this.j.Qc(this.C),this.C=this.j.V(this.target,"mouseover",this.hA),this.S=this.j.V(this.target,"mouseout",this.hA)))};
g.k.hA=function(a){a=a.relatedTarget;a&&this.AG(a)||(this.D=new g.ue(NaN,NaN),VUa(this))};
g.k.n6=function(){QV(this,1,!0)};
g.k.R4=function(a){a=a.target;a instanceof Element&&!(0<a.tabIndex)||QV(this,1,!0)};
g.k.oT=function(){this.K=!0;this.j.Qc(this.G);this.G=this.j.V(document,"mouseup",this.Z1)};
g.k.Z1=function(){this.K=!1;QV(this,8,!1);this.j.Qc(this.G);this.G=this.j.V(this.target,"mousedown",this.oT)};
g.k.pT=function(a){if(a=(a=a.changedTouches)&&a[0])this.Ca=a.identifier,this.j.Qc(this.ma),this.ma=this.j.V(this.target,"touchend",this.b2,void 0,!0),QV(this,1024,!0)};
g.k.b2=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.Ca){var d=c;break}}d&&(this.j.Qc(this.ma),this.ma=this.j.V(this.target,"touchstart",this.pT,void 0,!0),QV(this,1024,!1))};
g.k.Vp=function(){QV(this,2,!0)};
g.k.resize=function(){g.sL&&VUa(this)};
g.k.toString=function(){return g.lG.prototype.toString.call(this)};g.w(g.SV,g.T);
g.SV.prototype.Sa=function(){var a=this.api.getVideoData(),b=this.api.W(),c=!!g.tU(this.api);g.mu(this.element,"ytp-shorts-mode",c);c?c=[{I:"svg",Y:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},X:[{I:"path",Y:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z",fill:"#f00",
"fill-rule":"evenodd"}},{I:"path",Y:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:a.Sd&&(a.bp||b.qa)?c=b.qa?[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},X:[{I:"path",T:"ytp-dni-large-play-button-bg",Y:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",Y:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},X:[{I:"path",T:"ytp-dni-large-play-button-bg",
Y:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{I:"path",Y:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:b.S?(g.mu(this.element,"ytp-touch-device",b.B),c=[b.S?{I:"svg",Y:{height:"100%",version:"1.1",
viewBox:"0 0 60 60",width:"100%"},X:[{I:"path",T:"ytp-large-play-button-bg",Y:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",Y:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},X:[{I:"path",T:"ytp-large-play-button-bg",Y:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{I:"path",Y:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},X:[{I:"path",T:"ytp-large-play-button-bg",Y:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#f00"}},{I:"path",Y:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",c);a.Sd&&(a.bp||b.qa)&&(a=a.bp?a.bp:"#1f1f1f",this.Ha("ytp-dni-large-play-button-bg").setAttribute("fill",a))};
g.SV.prototype.show=function(){g.T.prototype.show.call(this);this.api.W().N("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.Xa(this.element,!0)};
g.SV.prototype.j=function(){this.api.getVideoData().mutedAutoplay||(this.api.Zz(),this.api.playVideo())};
g.SV.prototype.B=function(a){this.api.getVideoData().mutedAutoplay||a.preventDefault()};g.w(g.TV,g.T);g.k=g.TV.prototype;g.k.show=function(){var a=this;this.Ib||(this.D.V(this.api,"videodatachange",function(){g.bu(a.j)}),this.D.V(this.api,"videoplayerreset",function(){g.bu(a.j)}));
g.T.prototype.show.call(this)};
g.k.hide=function(){this.D&&g.cD(this.D);g.T.prototype.hide.call(this)};
g.k.Nb=function(){g.bu(this.j)};
g.k.onStateChange=function(){g.bu(this.j)};
g.k.G9=function(){g.bu(this.j)};
g.k.zw=function(){this.B.stop();this.hide();g.bu(this.j)};
g.k.Sa=function(){var a=this.api.Tb();if(3===this.api.getPresentingPlayerType()&&(a.isPlaying()||a.isPaused()))var b=!0;else(b=this.api.Eb().Ue.get("ypc"))&&b.jJ?b=!0:(b=this.api.W(),b=g.aH(a,2)&&g.pU(this.api)&&b.eh?!0:!1);b?(b=!0,this.C.hide()):this.api.N("web_player_show_frame_zero_when_cued")&&WUa(this)?(b=!0,this.C.hide()):(this.C.show(),b=a.isCued()&&2!==this.api.getPresentingPlayerType()||g.aH(a,2)&&!g.pU(this.api)&&!this.api.VC()||g.aH(a,1024)?!0:!1);b?(this.B.show(),a=this.api.getVideoData(),
this.Aaa(this.api.getPlaylist(),a)):(this.B.hide(),g.aH(a,1)||this.B.stop())};
g.k.Aaa=function(){var a=g.Ja.apply(0,arguments),b=this.api.W(),c,d=null==(c=this.api.getVideoData())?void 0:c.videoId;if(b.N("web_player_show_frame_zero_when_cued")&&d&&WUa(this))var e="https://i.ytimg.com/vi/"+d+"/frame0.jpg";else for(a=g.u(a),c=a.next();!c.done;c=a.next())if(c=c.value,!(!c||c instanceof g.hT&&!c.videoId)){e=this.api.tb().getPlayerSize();var f=g.uS();d=e.width*f;f*=e.height;if(1280<d||720<f)if(e=c.Lg("maxresdefault.jpg"))break;if(640<d||480<f)if(e=c.Lg("maxresdefault.jpg"))break;
if(320<d||180<f)if(e=c.Lg("sddefault.jpg")||c.Lg("hqdefault.jpg")||c.Lg("mqdefault.jpg"))break;if(e=c.Lg("default.jpg"))break}g.xS(b)&&(b=new Image,b.addEventListener("load",function(){Rwa()}),b.src=e?e:"",this.api.oi().tick("ftr"));
this.G.style.backgroundImage=e?"url("+e+")":""};g.w(g.UV,g.T);g.UV.prototype.resize=function(){};
g.UV.prototype.B=function(a){var b=this;ZUa(this);var c=a.TM,d=this.api.W();"GENERIC_WITHOUT_LINK"!==c||d.S?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.oe(XV(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Qk(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.S?this.api.W().N("html5_enable_bandaid_error_screen")&&"HTML5_SPS_UMP_STATUS_REJECTED"===c&&!d.S?(d=d.hostLanguage,a="//support.google.com/youtube/answer/3037019",d&&(a=g.Dl(a,{hl:d})),this.oe(XV(this,"HTML5_SPS_UMP_STATUS_REJECTED",
a))):this.oe(g.VV(a.errorMessage)):this.oe(XV(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//support.google.com/youtube/?p=player_error1",a&&(c=g.Dl(c,{hl:a})),this.oe(XV(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.Yc&&!d.D&&YUa(this,function(e){if(g.PU(e,b.api,!tS(b.api.W()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.Ta("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",
productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var XUa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.w(YV,g.ZK);YV.prototype.Xi=function(){cVa(this)};
YV.prototype.onVideoDataChange=function(){var a=this,b=this.J.getVideoData();if(b.Ie()){var c=this.J.W(),d=[],e="";if(!c.Ca){var f=aVa(this);c.N("enable_web_media_session_metadata_fix")&&g.qH(c)&&f?(d=bVa(f.thumbnailDetails),f.album&&(e=g.wG(f.album))):d=[{src:b.Lg("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}cVa(this);$Ua(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.sU(this.J)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"),
b=function(){a.J.nextVideo()},c=function(){a.J.previousVideo()});
ZV(this,"nexttrack",b);ZV(this,"previoustrack",c)}};
YV.prototype.Ba=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.u(this.j),b=a.next();!b.done;b=a.next())ZV(this,b.value,null);g.ZK.prototype.Ba.call(this)};g.w(dVa,g.T);g.k=dVa.prototype;g.k.onClick=function(a){g.PU(a,this.J,!0);this.J.wb(this.element)};
g.k.onVideoDataChange=function(a,b){fVa(this,b);this.lf&&gVa(this,this.lf)};
g.k.Xd=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&fVa(this,b);this.j&&gVa(this,a.state);this.lf=a.state};
g.k.zd=function(){this.D.show();this.J.ra("paidcontentoverlayvisibilitychange",!0);this.J.Xa(this.element,!0)};
g.k.Qb=function(){this.D.hide();this.J.ra("paidcontentoverlayvisibilitychange",!1);this.J.Xa(this.element,!1)};g.w($V,g.T);$V.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.T.prototype.hide.call(this)};
$V.prototype.onStateChange=function(a){this.Gc(a.state)};
$V.prototype.Gc=function(a){if(g.aH(a,128))var b=!1;else{var c;b=(null==(c=this.api.Gd())?0:c.Ht)?!1:g.aH(a,16)||g.aH(a,1)?!0:!1}b?this.j.start():this.hide()};
$V.prototype.B=function(){this.message.style.display="block"};g.w(aW,g.BU);aW.prototype.onMutedAutoplayChange=function(a){this.C&&(a?(hVa(this),this.zd()):(this.j&&this.wb(),this.Qb()))};
aW.prototype.Xi=function(a){this.api.isMutedByMutedAutoplay()&&g.cH(a,2)&&this.Qb()};
aW.prototype.onClick=function(){this.api.unMute();this.wb()};
aW.prototype.wb=function(){this.clicked||(this.clicked=!0,this.api.wb(this.element))};g.w(g.bW,g.ZK);g.k=g.bW.prototype;g.k.init=function(){var a=this.api,b=a.Tb();this.XH=a.getPlayerSize();this.Ac(b);this.Xp();this.Nb();this.api.ra("basechromeinitialized",this);this.FN()&&this.api.ra("standardControlsInitialized")};
g.k.onVideoDataChange=function(a,b){var c=this.OD!==b.videoId;if(c||"newdata"===a)a=this.api,a.isFullscreen()||(this.XH=a.getPlayerSize());c&&(this.OD=b.videoId,c=this.nf,c.Fa=b&&0<b.hg.length?5E3:3E3,QV(c,512,!0),this.Xp());this.api.N("web_render_jump_buttons")&&b.showSeekingControls&&(this.IZ=572)};
g.k.n8=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.nu=function(){var a=this.api.Ek()&&this.api.Ro();return this.MG||a||this.VN};
g.k.Gl=function(){var a=!this.nu();g.mu(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.AG=function(a){try{if(!g.Af(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Cf(a);)a=a===this.api.getRootNode()?null:g.zf(a);return!!a};
g.k.On=function(a){var b=this.api.getRootNode();g.mu(b,"ytp-autohide",a);g.mu(b,"ytp-autohide-active",!0);this.AU.start(a?250:100);a&&(this.kK=!1,g.ku(b,"ytp-touch-mode"));this.xM=!a;this.api.SJ(!a)};
g.k.kP=function(){var a=this.api.getRootNode();g.mu(a,"ytp-autohide-active",!1)};
g.k.S8=function(){this.FR=!0};
g.k.Q8=function(a){if(this.api.W().N("player_doubletap_to_seek")||this.api.W().ma)this.FR=!1,this.GR&&this.Qc(this.GR),0===this.bE&&cW(this,a)?(this.SH(),this.XG.start(),this.GR=this.V(this.api.tb(),"touchmove",this.S8,void 0,!0)):this.XG.stop();lVa(this)&&cW(this,a)&&!this.api.W().ma&&jVa(this);var b=this.MR.qj();if(!g.eS(this.api.W())&&bS&&mVa(this,a))b&&a.preventDefault();else if(this.kK=!0,g.iu(this.api.getRootNode(),"ytp-touch-mode"),this.nf.Vp(),this.api.W().N("player_doubletap_to_seek")||this.api.W().ma)if(b=
this.api.Tb(),!(!this.api.Ph()||g.aH(b,2)&&g.pU(this.api)||g.aH(b,64))){b=Date.now()-this.gX;this.bE+=1;if(350>=b){this.GC=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=10*(this.bE-1);0<d&&d<b?(this.YE(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.YE(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));a.preventDefault()}else RV&&this.api.W().ma&&
cW(this,a)&&a.preventDefault();this.gX=Date.now();this.fZ.start()}};
g.k.P8=function(){this.YO.XN=!1;this.api.ra("rootnodemousedown",this.YO)};
g.k.L8=function(a){this.YO.XN||mVa(this,a)||(lVa(this)||!cW(this,a)||this.XG.isActive()||(jVa(this),a.preventDefault()),this.GC&&(this.GC=!1))};
g.k.SH=function(){};
g.k.Ww=function(){};
g.k.YE=function(){};
g.k.XE=function(){};
g.k.Rr=function(){var a=this.api.Tb();g.aH(a,2)&&g.pU(this.api)||(g.WL(a)?this.api.pauseVideo():(this.Wm&&(a=this.Wm.C,document.activeElement===a.element&&this.api.ra("largeplaybuttonclicked",a.element)),this.api.Zz(),this.api.playVideo(),this.Wm&&document.activeElement===this.Wm.C.element&&(null==(a=this.FN())?a=0:a.playButton?(a.playButton.focus(),a=!0):a=!1,a||this.api.getRootNode().focus())))};
g.k.M8=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!kVa(this,ZC(a)))if(a=this.api.W(),(this.api.W().N("player_doubletap_to_seek")||this.api.W().ma)&&this.GC)this.GC=!1;else if(a.vc&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.qD(d)})}catch(d){this.qD(d)}};
g.k.qD=function(a){String(a).includes("fullscreen error")?g.UF(a):g.TF(a)};
g.k.N8=function(a){nVa(this,.3,a.scale);a.preventDefault()};
g.k.O8=function(a){nVa(this,.1,a.scale)};
g.k.Nb=function(){var a=this.api.tb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.nf.resize();g.mu(b,"ytp-fullscreen",this.api.isFullscreen());g.mu(b,"ytp-large-width-mode",c);g.mu(b,"ytp-small-mode",this.zg());g.mu(b,"ytp-tiny-mode",this.eI());g.mu(b,"ytp-big-mode",this.Ng());this.Kg&&this.Kg.resize(a)};
g.k.Xi=function(a){this.Ac(a.state);this.Xp()};
g.k.oF=aa(32);g.k.tN=function(){var a=!!this.OD&&!this.api.Bf()&&!this.YP,b=2===this.api.getPresentingPlayerType(),c=this.api.W();if(b){if(Fcb&&c.N("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=MV(this.api.Eb());a&&(a=(a=b.player.getVideoData(2))?a.isListed&&!g.SJ(b.player.W()):!1);return a}return a&&(c.Xl||this.api.isFullscreen()||c.El)};
g.k.Xp=function(){var a=this.tN();this.Dn!==a&&(this.Dn=a,g.mu(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Ac=function(a){var b=a.isCued()||this.api.mp()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.HR&&this.Qc(this.HR),this.HR=this.V(this.api.tb(),"touchstart",this.Q8,void 0,b));var c=a.isPlaying()&&!g.aH(a,32)||this.api.GD();QV(this.nf,128,!c);c=3===this.api.getPresentingPlayerType();QV(this.nf,256,c);c=this.api.getRootNode();if(g.aH(a,2))var d=[j3.ENDED];else d=[],g.aH(a,8)?d.push(j3.PLAYING):g.aH(a,4)&&d.push(j3.PAUSED),g.aH(a,1)&&!g.aH(a,32)&&d.push(j3.BUFFERING),
g.aH(a,32)&&d.push(j3.SEEKING),g.aH(a,64)&&d.push(j3.UNSTARTED);g.Wb(this.KL,d)||(g.lu(c,this.KL),this.KL=d,g.ju(c,d));d=this.api.W();var e=g.aH(a,2);a:{var f=this.api.W();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f="3"===h&&!g.aH(a,2)||this.isCued||(2!==this.api.getPresentingPlayerType()?0:kcb(MV(this.api.Eb())))||g.eS(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.mu(c,"ytp-hide-controls",!f);g.mu(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.VN);g.aH(a,128)&&
!g.eS(d)?(this.Kg||(this.Kg=new g.UV(this.api),g.L(this,this.Kg),g.wU(this.api,this.Kg.element,4)),this.Kg.B(a.Ah),this.Kg.show()):this.Kg&&(this.Kg.dispose(),this.Kg=null)};
g.k.nm=function(){return this.api.Ek()&&this.api.Ro()?(this.api.VA(!1,!1),!0):this.api.Bf()?(g.qU(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.VN=a;this.Gl()};
g.k.Ng=function(){return!1};
g.k.zg=function(){return!this.Ng()&&(this.api.getPlayerSize().width<this.IZ||290>this.api.getPlayerSize().height)};
g.k.eI=function(){return this.zg()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.ym=function(){return this.kK};
g.k.qn=function(){return null};
g.k.qH=function(){return null};
g.k.Pk=function(){var a=this.api.tb().getPlayerSize();return new g.vr(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.Hw=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.tb().SJ(a)};
g.k.Vp=function(){};
g.k.FN=function(){return null};
g.k.uN=function(){return this.XH};g.w(dW,g.lG);g.k=dW.prototype;g.k.dn=function(){return 1E3*this.api.getDuration(this.po,!1)};
g.k.stop=function(){this.j&&this.Hd.Qc(this.j)};
g.k.Ic=function(){var a=this.api.getProgressState(this.po);this.B={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.po,!1)};this.ra("h")};
g.k.getProgressState=function(){return this.B};
g.k.Xd=function(a){g.cH(a,2)&&this.ra("g")};g.w(oVa,g.T);oVa.prototype.onClick=function(){this.J.Ta("BACK_CLICKED")};g.w(g.eW,g.T);g.eW.prototype.show=function(){g.T.prototype.show.call(this);g.bu(this.j)};
g.eW.prototype.hide=function(){this.B.stop();g.T.prototype.hide.call(this)};
g.eW.prototype.Ww=function(a){a?g.aH(this.J.Tb(),64)||fW(this,Eua(),"Play"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?fW(this,Iua(),"Stop live playback"):fW(this,Bua(),"Pause"))};g.w(sVa,g.T);g.k=sVa.prototype;g.k.zd=function(){this.J.W().N("player_new_info_card_format")&&g.hu(this.J.getRootNode(),"ytp-cards-teaser-shown")&&!g.eS(this.J.W())||(this.B.show(),g.UE("iv-button-shown"))};
g.k.Qb=function(){g.UE("iv-button-hidden");this.B.hide()};
g.k.qj=function(){return this.Ib&&4!==this.B.state};
g.k.Ba=function(){this.j&&this.j();g.T.prototype.Ba.call(this)};
g.k.N7=function(){g.UE("iv-button-mouseover")};
g.k.t7=function(a){this.J.Ek();var b=g.hu(this.J.getRootNode(),"ytp-cards-teaser-shown");g.UE("iv-teaser-clicked",b);var c;if(null==(c=this.J.getVideoData())?0:g.LT(c)){var d;a=null==(d=this.J.getVideoData())?void 0:g.MT(d);(null==a?0:a.onIconTapCommand)&&this.J.Ta("innertubeCommand",a.onIconTapCommand)}else d=0===a.screenX&&0===a.screenY,this.J.VA(!this.J.Ro(),d,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.w(tVa,g.T);g.k=tVa.prototype;g.k.t_=function(){this.J.Ek()&&this.J.Ro()&&this.qj()&&this.Qb()};
g.k.vR=function(){this.Qb();!this.J.Ek()&&this.J.W().N("enable_error_corrections_infocards_icon_web")&&this.wh.Qb();g.UE("iv-teaser-clicked",null!=this.j);if(this.onClickCommand)this.J.Ta("innertubeCommand",this.onClickCommand);else{var a;(null==(a=this.J.getVideoData())?0:g.LT(a))||this.J.VA(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.k.d2=function(){g.UE("iv-teaser-mouseover");this.j&&this.j.stop()};
g.k.n9=function(a){this.J.W().N("player_new_info_card_format")&&!g.eS(this.J.W())?this.wh.Qb():this.J.W().N("enable_error_corrections_infocards_icon_web")&&this.wh.zd();this.j||!a||this.J.Ro()||this.B&&this.B.isActive()||(this.zd(a),g.UE("iv-teaser-shown"))};
g.k.zd=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.Cu(a.teaserText));this.D.show();this.B=new g.au(function(){g.iu(this.J.getRootNode(),"ytp-cards-teaser-shown");this.J.N("player_new_info_card_format")&&!g.eS(this.J.W())&&this.wh.Qb();this.SR()},0,this);
this.B.start();rVa(this.wh,!1);this.j=new g.au(this.Qb,580+a.durationMs,this);this.j.start();this.G.push(this.Ua("mouseover",this.rT,this));this.G.push(this.Ua("mouseout",this.qT,this))};
g.k.SR=function(){if(!this.J.W().N("player_new_info_card_format")&&g.eS(this.J.W())&&this.Ib){var a=this.wh.element.offsetLeft,b=g.$e("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.wh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.U3=function(){g.eS(this.J.W())&&this.ub.zg()&&this.Ib&&this.ea.start()};
g.k.rT=function(){this.K.stop();this.j&&this.j.isActive()&&this.S.start()};
g.k.qT=function(){this.S.stop();this.j&&!this.j.isActive()&&this.K.start()};
g.k.a8=function(){this.j&&this.j.stop()};
g.k.Z7=function(){this.Qb()};
g.k.Gp=function(){this.Qb()};
g.k.Qb=function(){!this.j||this.C&&this.C.isActive()||(g.UE("iv-teaser-hidden"),this.D.hide(),g.ku(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.au(function(){for(var a=g.u(this.G),b=a.next();!b.done;b=a.next())this.Qc(b.value);this.G=[];this.j&&(this.j.dispose(),this.j=null);rVa(this.wh,!0);!this.J.Ek()&&this.J.W().N("enable_error_corrections_infocards_icon_web")&&this.wh.Qb()},330,this),this.C.start())};
g.k.qj=function(){return this.Ib&&4!==this.D.state};
g.k.Ba=function(){var a=this.J.getRootNode();a&&g.ku(a,"ytp-cards-teaser-shown");g.tb(this.B,this.C,this.j);g.T.prototype.Ba.call(this)};var y3={},hW=(y3.BUTTON="ytp-button",y3.TITLE_NOTIFICATIONS="ytp-title-notifications",y3.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",y3.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",y3.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",y3);g.w(uVa,g.T);
uVa.prototype.onClick=function(){this.api.wb(this.element);var a=!this.j;this.updateValue("label",a?"Stop receiving notifications about every new video":"Receive notifications about every new video");this.updateValue("pressed",a);vVa(this,a)};g.Sa("yt.pubsub.publish",g.UE);g.w(g.kW,g.T);g.kW.prototype.C=function(){window.location.reload()};
g.kW.prototype.j=function(){g.iu(this.element,"ytp-sb-subscribed")};
g.kW.prototype.B=function(){g.ku(this.element,"ytp-sb-subscribed")};g.w(yVa,g.T);g.k=yVa.prototype;g.k.s7=function(a){this.api.wb(this.j);var b=this.api.W();b.B||b.Cb?AVa(this)&&(this.isExpanded()?this.JG():this.gH()):g.In(lW(this));a.preventDefault()};
g.k.MQ=function(){CVa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.gH=function(){if(AVa(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.C&&this.C.stop();this.api.N("web_player_ve_conversion_fixes_for_channel_info")&&this.api.Xa(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.Xa(this.subscribeButton.element,!0));var a=this.api.getVideoData();
this.B&&a.Ql&&a.subscribed&&(this.B.show(),this.api.Xa(this.B.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.JG=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.C&&this.C.start()};
g.k.Sa=function(){var a=this.api.W();g.sG(this,!g.tU(this.api));var b=this.api.getVideoData(),c=this.api.W(),d=this.api.getVideoData();this.D=!1;var e=!!d.videoId&&!!d.wc&&!!d.profilePicture;2===this.api.getPresentingPlayerType()?this.D=e&&!!d.isListed&&!!d.author:g.eS(c)&&(this.D=e&&!(d.Sd&&c.qa)&&!c.C&&!(c.ma&&200>this.api.getPlayerSize().width));c=b.profilePicture;a=g.eS(a)?b.expandedTitle:b.author;c=void 0===c?"":c;a=void 0===a?"":a;this.D?(this.K!==c&&(this.j.style.backgroundImage="url("+c+")",
this.K=c),this.api.N("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",lW(this)),this.updateValue("channelLogoLabel",g.vK("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.iu(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.ku(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Xa(this.j,this.D&&this.ma);this.subscribeButton&&(this.subscribeButton.channelId=b.Hl);this.updateValue("expandedTitle",b.expandedTitle);this.api.N("web_player_ve_conversion_fixes_for_channel_info")||
this.updateValue("channelTitleLink",lW(this));this.updateValue("expandedSubtitle",b.expandedSubtitle)};
g.k.lc=function(a){g.T.prototype.lc.call(this,a);this.api.Xa(this.j,this.D&&a)};g.w(mW,g.tG);mW.prototype.YX=function(){this.ra("size-change")};
mW.prototype.focus=function(){this.content.focus()};
mW.prototype.TX=function(){this.ra("back")};g.w(g.nW,mW);g.k=g.nW.prototype;g.k.ud=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Sb(this.items,a,EVa);if(0<=b)return;b=~b;g.Pb(this.items,b,0,a);g.pf(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.EP,this);this.menuItems.ra("size-change")};
g.k.Fh=function(a){a.unsubscribe("size-change",this.EP,this);this.isDisposed()||(g.Fb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ra("size-change"))};
g.k.EP=function(){this.menuItems.ra("size-change")};
g.k.focus=function(){for(var a=0,b=0;b<this.items.length;b++)if(this.items[b].element.hasAttribute("aria-checked")){a=b;break}this.items[a].focus()};
g.k.gp=function(){return this.items.length};g.w(oW,g.EU);oW.prototype.j=function(a){a.defaultPrevented||39!==a.keyCode||(this.element.click(),a.preventDefault())};g.w(FVa,g.T);g.k=FVa.prototype;g.k.show=function(){g.T.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.k.hide=function(){g.T.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.k.e2=function(a){var b=ZC(a),c=g.Af(this.closeButton.element,b),d=g.Af(this.element,b);a=this.j&&g.Af(this.j,b)&&g.kH(a);b&&(d||a)&&!c||this.hide()};
g.k.f2=function(){g.iW(g.qS(this.Za.W()),"user_info_panel",function(){window.location.reload()})};
g.k.Sa=function(){var a=this.Za.W(),b={USER_NAME:a.userDisplayName,USER_EMAIL:a.Qi};this.updateValue("icon",Cua());this.updateValue("watchingAsUsername",g.vK("Watching as $USER_NAME",b));a.Qi?this.updateValue("watchingAsEmail",g.vK("($USER_EMAIL)",b)):this.updateValue("watchingAsEmail","")};g.w(HVa,g.nW);g.k=HVa.prototype;g.k.X3=function(){this.Pb.Qb()};
g.k.y7=function(){zSa(this.Sy.element)};
g.k.J7=function(){rW(this,this.J.getDebugText(!0))&&fW(this.hd,oua())};
g.k.K7=function(){rW(this,this.J.getVideoEmbedCode())&&fW(this.hd,sua());this.J.wb(this.hn.element);Gva("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.L7=function(){rW(this,this.J.getVideoUrl(!0,!0))&&fW(this.hd,BG());this.J.wb(this.getVideoUrl.element);Gva("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.M7=function(){rW(this,this.J.getVideoUrl(!1,!0))&&fW(this.hd,BG());this.J.wb(this.vn.element);Gva("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.onLoopChange=function(a){var b;null==(b=this.Vk)||OU(b,a)};
g.k.T7=function(){this.J.setLoopVideo(this.Vk.getValue());this.Pb.Qb();this.J.wb(this.Vk.element)};
g.k.H8=function(a){this.J.reportPlaybackIssue();if(g.PU(a,this.J,!tS(this.J.W()))){a=this.J;var b=a.app.getFeedbackProductData();a.Ta("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Pb.Qb()};
g.k.b9=function(){g.cU(this.J,"isVideoInfoVisible",[])?g.cU(this.J,"hideVideoInfo",[]):g.cU(this.J,"showVideoInfo",[]);this.Pb.Qb()};
g.k.a9=function(){this.yl&&(this.GF||(this.GF=new FVa(this.J,this.yl.element),g.L(this,this.GF),g.wU(this.J,this.GF.element,4)),this.GF.show(),this.Pb.Qb(),this.J.wb(this.yl.element))};
g.k.onVideoDataChange=function(a,b){this.pF(b)};
g.k.pF=function(a){var b=this.J.W(),c=2===this.J.getPresentingPlayerType(),d=!c||a.isListed;d=!b.Ca&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.B&&(b.fmt=a.B.itag),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.Fa&&(b.partnerid=a.Fa),b=g.Dl("//support.google.com/googleplay/",b));g.sG(this.hn,d&&a.allowEmbed);g.sG(this.getVideoUrl,d);g.sG(this.vn,d&&
!a.isLivePlayback);this.ZE.oe(b,"href");var e;null==(e=this.Vk)||g.sG(e,!a.isLivePlayback&&!c);var f;null==(f=this.yl)||g.sG(f,!c)};
g.k.lc=function(a){g.nW.prototype.lc.call(this,a);this.J.Xa(this.hn.element,a);this.J.Xa(this.getVideoUrl.element,a);this.J.Xa(this.vn.element,a);this.Vk&&this.J.Xa(this.Vk.element,a);this.yl&&this.J.Xa(this.yl.element,a)};g.w(g.sW,g.BU);g.k=g.sW.prototype;g.k.show=function(){g.BU.prototype.show.call(this);this.oB()};
g.k.hide=function(){g.BU.prototype.hide.call(this);1<this.j.length&&g.tW(this)};
g.k.oB=function(){LVa(this);this.Ib&&(JVa(this),g.Ir(this.element,this.size))};
g.k.zj=function(){var a=this.j.pop();KVa(this,a,this.j[this.j.length-1],!0)};
g.k.j2=function(a){if(!a.defaultPrevented)switch(a.keyCode){case 27:this.Qb();a.preventDefault();break;case 37:1<this.j.length&&this.zj();a.preventDefault();break;case 39:a.preventDefault()}};
g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
g.k.Ba=function(){g.BU.prototype.Ba.call(this);this.G&&this.G.dispose();this.K&&this.K.dispose()};g.w(g.uW,g.sW);g.k=g.uW.prototype;g.k.m2=function(a){var b=ZC(a);if(!(b&&(Ef(b,"a")||Ef(b,null,"ytp-no-contextmenu"))||this.Ib)){var c;this.Ca=(a=null==(c=a.touches)?void 0:c.item(0))?new g.ue(a.clientX,a.clientY):new g.ue(0,0);this.va.start()}};
g.k.yY=function(){this.va.stop()};
g.k.s9=function(){this.open(this.Ca)};
g.k.CV=function(){if(this.C&&IVa(this.C)){var a=IVa(this.C).element;a.tabIndex=-1;a.focus()}else this.element.tabIndex=-1,this.element.focus()};
g.k.show=function(){this.C||(this.C=new HVa(this.J,this.ub,this,this.hd),g.L(this,this.C),g.qW(this,this.C));this.C.onLoopChange(this.J.getLoopVideo());g.sW.prototype.show.call(this);this.J.Xa(this.element,!0);this.C.lc(!0)};
g.k.hide=function(){NVa(this);g.sW.prototype.hide.call(this);this.J.Xa(this.element,!1);this.C&&this.C.lc(!1)};
g.k.w7=function(a){var b=ZC(a);this.Ib||b&&(Ef(b,"a")||Ef(b,null,"ytp-no-contextmenu"))||(a.preventDefault(),this.open(new g.ue(a.pageX,a.pageY)))};
g.k.zd=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.ue(b.x,b.y))}g.sW.prototype.zd.call(this,a)};
g.k.open=function(a){OVa(this);var b=this.J.getVideoData();g.mu(this.element,"ytp-dni",b.Sd);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.sW.prototype.zd.call(this);var c=document.body;b=new or(0,Infinity,Infinity,0);var d=Ve(c);for(var e=d.j.body,f=d.j.documentElement,h=bca(d.j);c=cia(c);)if(!(g.bf&&0==c.clientWidth||g.Pc&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Cr(c,"overflow")){var l=g.Gr(c),m=new g.ue(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,
l.y);b.right=Math.min(b.right,l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,h);d=d.j;d=aca(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,65==(e&65)&&(a.x<d.left||a.x>=d.right)&&(e&=-2),132==(e&132)&&(a.y<
d.top||a.y>=d.bottom)&&(e&=-5),a.x<d.left&&e&1&&(a.x=d.left),e&16&&(f=a.x,a.x<d.left&&(a.x=d.left),a.x+h.width>d.right&&(h.width=Math.min(d.right-a.x,f+h.width-d.left),h.width=Math.max(h.width,0))),a.x+h.width>d.right&&e&1&&(a.x=Math.max(d.right-h.width,d.left)),a.y<d.top&&e&4&&(a.y=d.top),e&32&&(f=a.y,a.y<d.top&&(a.y=d.top),a.y+h.height>d.bottom&&(h.height=Math.min(d.bottom-a.y,f+h.height-d.top),h.height=Math.max(h.height,0))),a.y+h.height>d.bottom&&e&4&&(a.y=Math.max(d.bottom-h.height,d.top)));
d=new g.vr(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Er(this.element,new g.ue(d.left,d.top));g.cD(this.D);this.D.V(document,"contextmenu",this.F7);this.D.V(this.J,"fullscreentoggled",this.onFullscreenToggled);this.D.V(this.J,"pageTransition",this.l2)};
g.k.F7=function(a){if(!a.defaultPrevented){var b=ZC(a);g.Af(this.element,b)||this.Qb();this.J.W().disableNativeContextMenu&&a.preventDefault()}};
g.k.onFullscreenToggled=function(){this.Qb();OVa(this)};
g.k.l2=function(){this.Qb()};g.w(g.vW,g.T);g.vW.prototype.onClick=function(){var a=this,b,c,d,e;return g.H(function(f){if(1==f.j)return b=a.api.W(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.z(f,RVa(a,e),2);f.B&&QVa(a);a.api.wb(a.element);g.ya(f)})};
g.vW.prototype.Sa=function(){this.updateValue("icon",{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3  c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=PVa(this);g.mu(this.element,"ytp-copylink-button-visible",
this.visible);g.sG(this,this.visible);MU(this.tooltip);this.api.Xa(this.element,this.visible&&this.ma)};
g.vW.prototype.lc=function(a){g.T.prototype.lc.call(this,a);this.api.Xa(this.element,this.visible&&a)};
g.vW.prototype.Ba=function(){g.T.prototype.Ba.call(this);g.ku(this.element,"ytp-copylink-button-visible")};g.w(xW,g.T);xW.prototype.show=function(){g.T.prototype.show.call(this);g.bu(this.B)};
xW.prototype.hide=function(){this.D.stop();this.C=0;g.ku(this.element,"ytp-chapter-seek");g.ku(this.element,"ytp-time-seeking");g.T.prototype.hide.call(this)};
xW.prototype.YE=function(a,b,c,d){this.C=a===this.K?this.C+d:d;this.K=a;var e=-1===a?this.ea:this.S;e&&this.J.wb(e);this.G?this.B.stop():g.du(this.B);this.D.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.J.tb().getPlayerSize().height;e=this.J.tb().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var h=2.5*f;
f=h/2;var l=this.Ha("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";1===a?(a=this.J.tb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Ha("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");SVa(this,this.G?this.C:d)};g.w(BW,g.T);g.k=BW.prototype;g.k.LI=function(){};
g.k.jE=function(){};
g.k.cB=function(){return!0};
g.k.Q$=function(){if(this.expanded){this.Va.show();var a=this.D.element.scrollWidth}else a=this.D.element.scrollWidth,this.Va.hide();this.xb=34+a;g.mu(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.xb)+"px";this.Pa.start()};
g.k.F4=function(){this.badge.element.style.width=(this.expanded?this.xb:34)+"px";this.Ya.start()};
g.k.OI=function(a){this.ea=a;AW(this);zW(this);this.Im()};
g.k.xaa=function(){g.mu(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.YJ=function(){return this.qa||this.ea||!this.K};
g.k.Im=function(){this.cB()?this.S.show():this.S.hide();UVa(this)};
g.k.sT=function(){this.enabled=!1;this.Im()};
g.k.waa=function(){this.Im()};
g.k.p7=function(a){this.fb=1===a;this.Im();g.mu(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.I7=function(){g.mu(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.J.isFullscreen());this.Im()};g.w(WVa,BW);g.k=WVa.prototype;g.k.cB=function(){return!!this.j};
g.k.YJ=function(){return!!this.j};
g.k.LI=function(a){a.target===this.dismissButton.element?a.preventDefault():(this.Cb&&this.J.Ta("innertubeCommand",this.Cb),CW(this,!1))};
g.k.jE=function(){CW(this,!0);this.WE()};
g.k.sT=function(){this.WE();DW(this)};
g.k.E$=function(a){var b=this,c;if(a.id!==(null==(c=this.j)?void 0:c.identifier)){this.WE();c=g.u(this.va);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=void 0,h=void 0;if((d=null==(f=e)?void 0:null==(h=f.bannerData)?void 0:h.itemData)&&e.identifier===a.id){this.j=e;kua(this.banner,d.accessibilityLabel||"");d.trackingParams&&(this.B=!0,this.J.Gg(this.badge.element,d.trackingParams));this.S.show();AW(this);g.sG(this.Ca,!d.stayInApp);bWa(this);$Va(this);this.Cb=g.S(d.onTapCommand,hG);e=void 0;
this.banner.update({thumbnail:null==(e=(d.thumbnailSources||[])[0])?void 0:e.url,title:d.productTitle,price:d.price,affiliateDisclaimer:d.affiliateDisclaimer,vendor:XVa(this)});var l=h=f=e=void 0;(null==(e=d)?0:null==(f=e.hiddenProductOptions)?0:f.showDropCountdown)&&(null==(h=d)?0:null==(l=h.hiddenProductOptions)?0:l.dropTimestampMs)&&(this.kb=new g.au(function(){aWa(b)},1E3),this.Ca.hide(),this.countdownTimer.show(),aWa(this))}}}};
g.k.WE=function(){this.j&&(this.j=void 0,this.Im())};
g.k.onVideoDataChange=function(a,b){var c=this;"dataloaded"===a&&DW(this);var d,e;if(this.J.N("web_player_enable_vod_featured_product_banner_on_desktop")||(null==b?0:null==(d=b.getPlayerResponse())?0:null==(e=d.videoDetails)?0:e.isLiveContent)){var f,h,l;a=g.S(null==(f=b.Jd)?void 0:null==(h=f.playerOverlays)?void 0:null==(l=h.playerOverlayRenderer)?void 0:l.productsInVideoOverlayRenderer,Wfb);var m=null==a?void 0:a.featuredProductsEntityKey;this.trendingOfferEntityKey=null==a?void 0:a.trendingOfferEntityKey;
var n;if(f=null==a?void 0:null==(n=a.dismissButton)?void 0:n.trackingParams)this.J.Gg(this.dismissButton.element,f),this.C=!0;var p;(n=null==a?void 0:null==(p=a.dismissButton)?void 0:p.a11yLabel)&&kua(this.dismissButton,g.wG(n));this.va.length||(YVa(this,m),$Va(this));var q;null==(q=this.Mb)||q.call(this);this.Mb=g.vT.subscribe(function(){YVa(c,m);$Va(c)})}else{var r;
null==(r=this.Mb)||r.call(this);this.WE()}};
g.k.Ba=function(){DW(this);bWa(this);BW.prototype.Ba.call(this)};g.w(EW,g.T);EW.prototype.show=function(){g.T.prototype.show.call(this);this.api.Xa(this.element,!0)};
EW.prototype.onVideoDataChange=function(a){var b,c,d=null==(b=this.api.getVideoData())?void 0:null==(c=b.getPlayerResponse())?void 0:c.playabilityStatus;if(d)if(b=cWa(d),g.aH(this.api.Tb(),128)||"dataloaderror"===a||!b)this.B=0,fWa(this),this.hide();else if(a=1E3*(b.remainingTimeSecs||0),0<a){this.show();if((b=b.label)&&b.simpleText)b=b.simpleText;else{c="";if(b&&b.runs)for(d=0;d<b.runs.length;d++)b.runs[d].text&&(c+=b.runs[d].text);b=c}this.updateValue("label",b);eWa(this,a)}};
EW.prototype.Ba=function(){fWa(this);g.T.prototype.Ba.call(this)};g.w(kWa,g.T);kWa.prototype.onClick=function(){this.J.wb(this.element,this.B)};g.w(lWa,g.BU);g.k=lWa.prototype;g.k.show=function(){g.BU.prototype.show.call(this);this.J.ra("infopaneldetailvisibilitychange",!0);this.J.Xa(this.element,!0);mWa(this,!0)};
g.k.hide=function(){g.BU.prototype.hide.call(this);this.J.ra("infopaneldetailvisibilitychange",!1);this.J.Xa(this.element,!1);mWa(this,!1)};
g.k.getId=function(){return this.D};
g.k.gp=function(){return this.itemData.length};
g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:(null==(c=b.Ll)?void 0:null==(d=c.title)?void 0:d.content)||"",body:(null==(e=b.Ll)?void 0:null==(f=e.bodyText)?void 0:f.content)||""});var h;a=(null==(h=b.Ll)?void 0:h.trackingParams)||null;this.J.Gg(this.element,a);h=g.u(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if(null==(l=b.Ll)?0:l.ctaButtons)for(b=g.u(b.Ll.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.S(l.value,Neb))l=new kWa(this.J,
l,this.j),l.Ie&&(this.itemData.push(l),l.Ga(this.items))}};
g.k.Ba=function(){this.hide();g.BU.prototype.Ba.call(this)};g.w(pWa,g.T);g.k=pWa.prototype;g.k.onVideoDataChange=function(a,b){oWa(this,b);this.lf&&rWa(this,this.lf)};
g.k.Xd=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&oWa(this,b);rWa(this,a.state);this.lf=a.state};
g.k.ZX=function(a){(this.D=a)?this.hide():this.j&&this.show()};
g.k.o2=function(){this.B||this.zd();this.showControls=!0};
g.k.n2=function(){this.B||this.Qb();this.showControls=!1};
g.k.zd=function(){this.j&&!this.D&&(this.C.show(),this.J.ra("infopanelpreviewvisibilitychange",!0),this.J.Xa(this.element,!0))};
g.k.Qb=function(){this.j&&!this.D&&(this.C.hide(),this.J.ra("infopanelpreviewvisibilitychange",!1),this.J.Xa(this.element,!1))};
g.k.H$=function(){this.B=!1;this.showControls||this.Qb()};var Xhb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(Xhb).reduce(function(a,b){a[Xhb[b]]=b;return a},{});
var Yhb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Yhb).reduce(function(a,b){a[Yhb[b]]=b;return a},{});
var Zhb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Zhb).reduce(function(a,b){a[Zhb[b]]=b;return a},{});var $hb,aib;$hb=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];aib=[{option:0,text:FW(0)},{option:.25,text:FW(.25)},{option:.5,text:FW(.5)},{option:.75,text:FW(.75)},{option:1,text:FW(1)}];
g.JW=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font colour",options:$hb},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:FW(.5)},{option:-1,text:FW(.75)},{option:0,text:FW(1)},{option:1,text:FW(1.5)},{option:2,
text:FW(2)},{option:3,text:FW(3)},{option:4,text:FW(4)}]},{option:"background",text:"Background colour",options:$hb},{option:"backgroundOpacity",text:"Background opacity",options:aib},{option:"windowColor",text:"Window colour",options:$hb},{option:"windowOpacity",text:"Window opacity",options:aib},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity",
text:"Font opacity",options:[{option:.25,text:FW(.25)},{option:.5,text:FW(.5)},{option:.75,text:FW(.75)},{option:1,text:FW(1)}]}];var bib=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.w(g.IW,g.ZK);g.k=g.IW.prototype;
g.k.mW=function(a){a.repeat||(this.C.WH=!1);var b=!1,c=a.keyCode,d=ZC(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.iU(this.api.app)||bib.includes(c)),f=!1,h=!1,l=this.api.W();a.defaultPrevented?(e=!1,h=!0):l.We&&!g.iU(this.api.app)&&(e=!1);if(9===c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"===d.tagName||"A"===d.tagName||"INPUT"===d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!==m&&"button"!==m&&0!==m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b=
"slider"===d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),d=38===c?d.previousSibling:d.nextSibling,"slider"===m?b=!0:e&&("option"===m?(d&&"option"===d.getAttribute("role")&&d.focus(),f=b=!0):m&&0===m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0===d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);gW(this.hd,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);
gW(this.hd,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Ph()&&(this.api.startSeekCsiAction(),this.api.seekTo(0),h=f=!0);break;case 35:this.api.Ph()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&HW(this,!0);(b||h)&&this.nf.Vp();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&a.preventDefault();l.K&&(a={keyCode:a.keyCode,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:a.defaultPrevented,
fullscreen:this.api.isFullscreen()},this.api.Ta("onKeyPress",a))};
g.k.nW=function(a){this.handleGlobalKeyUp(a.keyCode,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)&&a.preventDefault()};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){this.api.ra("keyboardserviceglobalkeyup",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h});b=!1;if(this.C.WH)return b;(c=g.uU(this.api.Eb()))&&(c=c.vu)&&c.Ib&&(c.hW(a),b=!0);switch(a){case 9:HW(this,!0);b=!0;break;case 32:if(this.api.N("web_speedmaster_spacebar_control")&&!this.G&&!this.api.W().We){var l,m;a=null==(l=this.Tc)?void 0:null==(m=l.B)?void 0:m.isEnabled;b=this.Rr(a)}}return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.C.WH=!1);var m=!1,n=this.api.W();if(n.We&&!g.iU(this.api.app))return m;var p=g.uU(this.api.Eb());if(p&&(p=p.vu)&&p.Ib)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.gW(a)}n.S||m||(m=f||String.fromCharCode(a).toLowerCase(),this.B+=m,0==="awesome".indexOf(this.B)?(m=!0,7===this.B.length&&Mka(this.api.getRootNode(),"ytp-color-party")):(this.B=m,m=0==="awesome".indexOf(this.B)));if(!m&&(!g.iU(this.api.app)||
bib.includes(a))){var q=this.api.getVideoData(),r,t;p=null==(r=this.Tc)?void 0:null==(t=r.B)?void 0:t.isEnabled;r=q?q.lk:[];t=dZ?d:c;switch(a){case 80:b&&!n.Pa&&(fW(this.hd,Fua(),"Previous"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Pa&&(fW(this.hd,yua(),"Next"),this.api.nextVideo(),m=!0);break;case 74:this.api.Ph()&&(this.api.startSeekCsiAction(),this.j?yW(this.j,-1,10):fW(this.hd,{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",
Y:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate()),m=!0);break;case 76:this.api.Ph()&&(this.api.startSeekCsiAction(),this.j?yW(this.j,1,10):fW(this.hd,{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate()),m=!0);break;case 37:this.api.Ph()&&(this.api.startSeekCsiAction(),t?(t=uWa(r,1E3*this.api.getCurrentTime()),-1!==t&&null!=this.j&&(TVa(this.j,-1,r[t].title),this.api.seekTo(r[t].startTime/1E3),m=!0)):(this.j?yW(this.j,-1,5):fW(this.hd,{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate()),m=!0));break;case 39:this.api.Ph()&&(this.api.startSeekCsiAction(),t?(t=tWa(r,1E3*this.api.getCurrentTime()),-1!==t&&null!=this.j&&(TVa(this.j,1,r[t].title),this.api.seekTo(r[t].startTime/1E3),m=!0)):(null!=this.j?yW(this.j,1,5):fW(this.hd,{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate()),m=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),gW(this.hd,this.api.getVolume(),!1)):(this.api.mute(),gW(this.hd,0,!0));m=!0;break;case 32:m=this.api.N("web_speedmaster_spacebar_control")?!this.api.W().Pa:this.Rr(p);break;case 75:m=this.Rr(p);break;case 190:b?n.Sf&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),pVa(this.hd,!1),m=!0):this.api.Ph()&&(this.step(1),m=!0);break;case 188:b?n.Sf&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-
.25,!0),pVa(this.hd,!0),m=!0):this.api.Ph()&&(this.step(-1),m=!0);break;case 70:vSa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0);
break;case 27:p?(this.Tc.Rs(),m=!0):this.K()&&(m=!0)}if("3"!==n.controlsType)switch(a){case 67:g.JV(this.api.Eb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),qVa(this.hd,!n||n&&!n.displayName),m=!0);break;case 79:KW(this,"textOpacity");break;case 87:KW(this,"windowOpacity");break;case 187:case 61:KW(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:KW(this,"fontSizeIncrement",!0,!0)}var v;b||c||d||(48<=a&&57>=a?v=a-48:96<=a&&105>=a&&(v=a-96));null!=v&&this.api.Ph()&&
(this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(v/10*(n.seekableEnd-n.seekableStart)+n.seekableStart),m=!0);m&&this.nf.Vp()}this.G||this.api.ra("keyboardserviceglobalkeydown",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h,repeat:l},this.C);return m};
g.k.step=function(a){this.api.Ph();if(this.api.Tb().isPaused()){var b=this.api.getVideoData().B;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30))}};
g.k.Rr=function(a){if(!this.api.W().Pa){var b;var c,d=null==(b=this.api.getVideoData())?void 0:null==(c=b.getPlayerResponse())?void 0:c.playabilityStatus;if(d){var e;b="PLAYBACK_MODE_PAUSED_ONLY"===(null==(e=g.S(d.miniplayer,hgb))?void 0:e.playbackMode)}else b=!1;b&&this.api.Ta("onExpandMiniplayer");a?this.Tc.XM():(a=!g.WL(this.api.Tb()),this.hd.Ww(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
g.k.Ba=function(){g.du(this.D);g.ZK.prototype.Ba.call(this)};g.w(g.LW,g.T);g.LW.prototype.Gr=aa(34);g.LW.prototype.Sa=function(){var a=this.J.W(),b=a.C||this.J.N("web_player_hide_overflow_button_if_empty_menu")&&this.Sh.isEmpty(),c=g.eS(a)&&g.sU(this.J)&&g.aH(this.J.Tb(),128),d=this.J.getPlayerSize();this.visible=this.ub.zg()&&!c&&240<=d.width&&!(this.J.getVideoData().Sd&&a.qa)&&!b&&!this.j&&!g.tU(this.J);g.mu(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&MU(this.tooltip);this.J.Xa(this.element,this.visible&&this.ma)};
g.LW.prototype.lc=function(a){g.T.prototype.lc.call(this,a);this.J.Xa(this.element,this.visible&&a)};
g.LW.prototype.Ba=function(){g.T.prototype.Ba.call(this);g.ku(this.element,"ytp-overflow-button-visible")};g.w(xWa,g.BU);g.k=xWa.prototype;g.k.q2=function(a){a=ZC(a);g.Af(this.element,a)&&(g.Af(this.j,a)||g.Af(this.closeButton,a)||CU(this))};
g.k.Qb=function(){g.BU.prototype.Qb.call(this);this.tooltip.Hk(this.element)};
g.k.show=function(){this.Ib&&this.J.ra("OVERFLOW_PANEL_OPENED");g.BU.prototype.show.call(this);this.element.setAttribute("aria-modal","true");zWa(this,!0)};
g.k.hide=function(){g.BU.prototype.hide.call(this);this.element.removeAttribute("aria-modal");zWa(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.qj()&&CU(this)};
g.k.isEmpty=function(){return 0===this.actionButtons.length};
g.k.focus=function(){for(var a=g.u(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Ib){b.focus();break}};g.w(AWa,g.T);AWa.prototype.onClick=function(a){g.PU(a,this.api)&&this.api.playVideoAt(this.index)};g.w(BWa,g.BU);g.k=BWa.prototype;g.k.show=function(){g.BU.prototype.show.call(this);this.C.V(this.api,"videodatachange",this.fL);this.C.V(this.api,"onPlaylistUpdate",this.fL);this.fL()};
g.k.hide=function(){g.BU.prototype.hide.call(this);g.cD(this.C);this.updatePlaylist(null)};
g.k.fL=function(){this.updatePlaylist(this.api.getPlaylist());this.api.W().C&&(this.Ha("ytp-playlist-menu-title-name").removeAttribute("href"),this.D&&(this.Qc(this.D),this.D=null))};
g.k.KJ=function(){var a=this.playlist,b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.vK(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.G)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{c=g.u(this.j);for(d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;
this.j=[];for(d=0;d<c;d++){var e=new AWa(this.api,a,d);this.j.push(e);e.Ga(this.items)}this.selected=this.j[a.index];this.G=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.r9=function(a){var b=this.api.getVideoUrl(!0);g.QU(b,this.api,a)};
g.k.updatePlaylist=function(a){this.playlist!==a?(this.playlist&&this.playlist.unsubscribe("shuffle",this.KJ,this),this.playlist=a,this.G=null,a?(a.subscribe("shuffle",this.KJ,this),this.KJ()):this.Ib&&this.hide()):this.playlist&&this.KJ()};
g.k.focus=function(){this.selected.focus()};
g.k.Ba=function(){this.hide();g.BU.prototype.Ba.call(this)};g.w(MW,g.T);MW.prototype.hide=function(){g.T.prototype.hide.call(this);this.lc(!1);MU(this.tooltip)};
MW.prototype.Sa=function(){var a=g.eS(this.api.W());g.mu(this.element,"ytp-playlist-menu-button-tiny",400>this.api.tb().getPlayerSize().width&&!a);g.tU(this.api)?this.hide():this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.vK("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.vK("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Ib||(this.show(),MU(this.tooltip)),
this.visible=!0,this.lc(!0)):this.Ib&&this.hide()};
MW.prototype.lc=function(a){g.T.prototype.lc.call(this,a);this.api.Xa(this.element,this.visible&&a)};
MW.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Sa,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Sa,this);this.Sa()};g.w(CWa,g.T);g.k=CWa.prototype;g.k.t2=function(){this.D?GWa(this):FWa(this)};
g.k.s2=function(){this.D?(NW(this),this.K=!0):FWa(this)};
g.k.X6=function(){this.G=!0;this.nF(1);this.J.ra("promotooltipacceptbuttonclicked",this.acceptButton);NW(this);this.B&&this.J.wb(this.acceptButton)};
g.k.D7=function(){this.G=!0;this.nF(2);NW(this);this.B&&this.J.wb(this.dismissButton)};
g.k.v2=function(a){if(1===this.J.getPresentingPlayerType()||2===this.J.getPresentingPlayerType()&&this.S){var b=!0,c=g.$e("ytp-ad-overlay-ad-info-dialog-container"),d=ZC(a);if(this.C&&d&&g.Af(this.C,d))this.C=null;else{1===this.J.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
var e=HWa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.Af(this.element,d));else{var h;"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null==(h=this.tooltipRenderer.dismissStrategy)?void 0:h.type)&&(b=e?!1:b&&g.Af(this.element,d))}this.j&&this.Ib&&!c&&(!d||b&&g.kH(a))&&(this.G=!0,NW(this))}}};
g.k.nF=function(a){var b=this.tooltipRenderer.promoConfig;if(b){switch(a){case 0:var c;if(null==(c=b.impressionEndpoints)?0:c.length)var d=b.impressionEndpoints[0];break;case 1:d=b.acceptCommand;break;case 2:d=b.dismissCommand}var e;a=null==(e=g.S(d,Meb))?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.J.pn(),(null==a?0:Zva(d,a.PM))&&mI(a,d,e))}};
g.k.Nb=function(){this.K||(this.j||(this.j=DWa(this)),GWa(this))};
var EWa={"ytp-settings-button":g.Hua()};g.w(OW,g.T);OW.prototype.onStateChange=function(a){this.Gc(a.state)};
OW.prototype.Gc=function(a){g.sG(this,g.aH(a,2))};
OW.prototype.onClick=function(){this.J.Tb();this.J.playVideo()};g.w(PW,g.T);PW.prototype.onClick=function(a){this.api.wb(this.element);var b=g.Dl(this.api.W().Ja,{focusSearch:"true"}),c={};g.cU(this.api,"addEmbedsConversionTrackingParams",[c]);g.FP(c,"emb_search");b=g.Dl(b,c);g.In(b);a.preventDefault()};
PW.prototype.j=function(){if(this.api.N("embeds_web_enable_search_button")){var a=this.api.W();var b=this.api.tb().getPlayerSize().width;a=g.eS(a)&&b>=this.B&&!a.C&&!g.tU(this.api)}else a=!1;this.visible=a;g.sG(this,this.visible);g.mu(this.element,"ytp-search-button-visible",this.visible);g.mu(this.element,"ytp-show-search-title",!this.ub.zg());this.api.Xa(this.element,this.visible&&this.ma)};
PW.prototype.lc=function(a){g.T.prototype.lc.call(this,a);this.api.Xa(this.element,this.visible&&a)};g.w(g.QW,g.T);g.k=g.QW.prototype;g.k.Hr=aa(36);g.k.onClick=function(){var a=this,b=this.api.W(),c=this.api.getVideoData(this.api.getPresentingPlayerType()),d=this.api.getPlaylistId();b=b.getVideoUrl(c.videoId,d,void 0,!0);if(navigator.share)try{var e=navigator.share({title:c.title,url:b});e instanceof Promise&&e.catch(function(f){JWa(a,f)})}catch(f){f instanceof Error&&JWa(this,f)}else this.ub.nm(),CU(this.B,this.element,!1);
this.api.wb(this.element)};
g.k.Sa=function(){var a=this.api.W(),b=g.tU(this.api);g.mu(this.element,"ytp-show-share-title",g.eS(a)&&!g.mS(a)&&!b);this.ub.Ng()&&b?(a=(this.api.tb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.yr(this.element,"right",a+"px")):b&&g.yr(this.element,"right","0px");this.updateValue("icon",{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});
this.visible=IWa(this);g.mu(this.element,"ytp-share-button-visible",this.visible);g.sG(this,this.visible);MU(this.tooltip);this.api.Xa(this.element,IWa(this)&&this.ma)};
g.k.lc=function(a){g.T.prototype.lc.call(this,a);this.api.Xa(this.element,this.visible&&a)};
g.k.Ba=function(){g.T.prototype.Ba.call(this);g.ku(this.element,"ytp-share-button-visible")};g.w(g.RW,g.BU);g.k=g.RW.prototype;g.k.w2=function(a){a=ZC(a);g.Af(this.G,a)||g.Af(this.closeButton,a)||CU(this)};
g.k.Qb=function(){g.BU.prototype.Qb.call(this);this.tooltip.Hk(this.element);this.api.Xa(this.j,!1);for(var a=g.u(this.C),b=a.next();!b.done;b=a.next())b=b.value,this.api.Wj(b.element)&&this.api.Xa(b.element,!1)};
g.k.show=function(){var a=this.Ib;g.BU.prototype.show.call(this);this.Sa();a||this.api.Ta("onSharePanelOpened")};
g.k.x6=function(){this.Ib&&this.Sa()};
g.k.Sa=function(){var a=this;g.iu(this.element,"ytp-share-panel-loading");g.ku(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.D.checked;b.getSharePanelCommand&&mI(this.api.pn(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.ku(a.element,"ytp-share-panel-loading"),MWa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.mS(this.api.W())&&(b=g.Dl(b,g.FP({},"emb_share")));this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.vK("Share link $URL",{URL:b}));zSa(this.j);this.api.Xa(this.j,!0)};
g.k.onFullscreenToggled=function(a){!a&&this.qj()&&CU(this)};
g.k.focus=function(){this.j.focus()};
g.k.Ba=function(){g.BU.prototype.Ba.call(this);LWa(this)};g.w(PWa,BW);g.k=PWa.prototype;g.k.Ba=function(){UWa(this);BW.prototype.Ba.call(this)};
g.k.LI=function(a){a.target!==this.dismissButton.element&&(CW(this,!1),this.J.Ta("innertubeCommand",this.onClickCommand))};
g.k.jE=function(){this.Oa=!0;CW(this,!0);this.Im()};
g.k.p8=function(a){this.Ca=a;this.Im()};
g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Oa=!1,this.ea=!0,this.K=this.qa=!1,UWa(this),TWa(this,!1),this.G=this.j=!1,TW(this),QWa(this);if(a||!b.videoId)this.C=this.B=!1;var c,d;if(null==b?0:null==(c=b.getPlayerResponse())?0:null==(d=c.videoDetails)?0:d.isLiveContent)this.Cg(!1);else{var e,f,h;b=g.S(null==(e=b.Jd)?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:h.productsInVideoOverlayRenderer,Wfb);
this.Ca=this.enabled=!1;if(b){if(this.J.N("web_player_enable_vod_featured_product_banner_on_desktop")&&(e=null==b?void 0:b.featuredProductsEntityKey)){f=g.vT.getState().entities;var l;if(null==(l=cP(f,"featuredProductsEntity",e))?0:l.productsData){this.Cg(!1);return}}this.enabled=!0;if(!this.B){var m;l=null==(m=b.badgeInteractionLogging)?void 0:m.trackingParams;(this.B=!!l)&&this.J.Gg(this.badge.element,l||null)}if(!this.C){var n;if(this.C=!(null==(n=b.dismissButton)||!n.trackingParams)){var p;this.J.Gg(this.dismissButton.element,
(null==(p=b.dismissButton)?void 0:p.trackingParams)||null)}}b.isContentForward&&(m=b.productsData,TWa(this,!0),QWa(this),m=SWa(this,m),n=[],0<m.length&&n.push(m[0]),1<m.length&&(p=new g.T({I:"div",T:"ytp-suggested-action-more-products-icon"}),g.L(this,p),n.push(p),n.push.apply(n,g.pa(m.slice(1)))),this.va=new g.T({I:"div",X:n,T:"ytp-suggested-action-content-forward-container"}),g.L(this,this.va),this.Fa.element.append(this.va.element));this.text=g.wG(b.text);var q;if(m=null==(q=b.dismissButton)?void 0:
q.a11yLabel)this.rb=g.wG(m);this.onClickCommand=b.onClickCommand;this.timing=b.timing;this.xf()}VVa(this);AW(this);this.Im()}};
g.k.cB=function(){return!this.Ca&&this.enabled&&!this.Oa&&!this.ub.zg()&&!this.fb&&(this.K||this.ea)};
g.k.OI=function(a){BW.prototype.OI.call(this,a);if(this.j||this.G)this.timing&&SW(this.timing.preview)&&(this.j=!1,TW(this),this.G=!1,TW(this),this.J.mf("shopping_overlay_preview_collapsed"),this.J.mf("shopping_overlay_preview_expanded"),a=UW(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),SW(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.mf("shopping_overlay_expanded"),a.end=1E3*this.timing.expanded.endSec),this.J.xf([a])),
this.qa=!0,AW(this);TW(this)};
g.k.Cg=function(a){(this.K=a)?(zW(this),AW(this,!1)):(UWa(this),this.Ja.start());this.Im()};
g.k.xf=function(a){var b=this.timing;a=(void 0===a?0:a)+this.J.getCurrentTime();var c=[],d=b.visible,e=b.preview;b=b.expanded;SW(d)&&(NWa(d,a),c.push(UW(d.startSec,d.endSec,"shopping_overlay_visible")));SW(e)&&(NWa(e,a),d=e.startSec+1,c.push(UW(e.startSec,d,"shopping_overlay_preview_collapsed")),c.push(UW(d,e.endSec,"shopping_overlay_preview_expanded")));SW(b)&&(NWa(b,a),c.push(UW(b.startSec,b.endSec,"shopping_overlay_expanded")));this.J.xf(c)};g.w(WWa,g.T);
WWa.prototype.Sa=function(){var a=this.api.W();g.sG(this,g.eS(a)&&g.tU(this.api));this.subscribeButton&&this.api.Xa(this.subscribeButton.element,this.Ib);var b=this.api.getVideoData(),c=!1;2===this.api.getPresentingPlayerType()?c=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.wc&&!!b.profilePicture:g.eS(a)&&(c=!!b.videoId&&!!b.wc&&!!b.profilePicture&&!(b.Sd&&a.qa)&&!a.C&&!(a.ma&&200>this.api.getPlayerSize().width));var d=b.profilePicture;a=g.eS(a)?b.expandedTitle:b.author;d=void 0===d?"":d;a=void 0===
a?"":a;c?(this.B!==d&&(this.j.style.backgroundImage="url("+d+")",this.B=d),this.api.N("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",VW(this)),this.updateValue("channelLogoLabel",g.vK("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.iu(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.ku(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Xa(this.j,c&&this.ma);this.api.N("web_player_ve_conversion_fixes_for_channel_info")&&this.api.Xa(this.channelName,
c&&this.ma);this.subscribeButton&&(this.subscribeButton.channelId=b.Hl);this.updateValue("expandedTitle",b.expandedTitle);this.api.N("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelTitleLink",VW(this))};g.w(WW,g.BU);WW.prototype.show=function(){g.BU.prototype.show.call(this);this.j.start()};
WW.prototype.hide=function(){g.BU.prototype.hide.call(this);this.j.stop()};
WW.prototype.ut=function(a,b){"dataloaded"===a&&((this.eh=b.eh,this.Le=b.Le,isNaN(this.eh)||isNaN(this.Le))?this.C&&(this.J.mf("intro"),this.J.removeEventListener(g.pK("intro"),this.K),this.J.removeEventListener(g.qK("intro"),this.G),this.J.removeEventListener("onShowControls",this.D),this.hide(),this.C=!1):(this.J.addEventListener(g.pK("intro"),this.K),this.J.addEventListener(g.qK("intro"),this.G),this.J.addEventListener("onShowControls",this.D),a=new g.oK(this.eh,this.Le,{priority:9,namespace:"intro"}),
this.J.xf([a]),this.C=!0))};g.w(XW,g.T);XW.prototype.onClick=function(){this.J.pu()};
XW.prototype.Sa=function(){var a=!0;g.eS(this.J.W())&&(a=a&&480<=this.J.tb().getPlayerSize().width);g.sG(this,a);this.updateValue("icon",this.J.Nh()?{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,Y:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.w(g.ZW,g.T);g.ZW.prototype.Ba=function(){this.j=null;g.T.prototype.Ba.call(this)};g.w($W,g.T);$W.prototype.onClick=function(){this.J.Ta("innertubeCommand",this.B)};
$W.prototype.S=function(a){a!==this.G&&(this.update({title:a,ariaLabel:a}),this.G=a);a?this.show():this.hide()};
$W.prototype.K=function(){this.j.disabled=null==this.B;g.mu(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Ic()};g.w(aX,$W);aX.prototype.onClickCommand=function(a){g.S(a,uT)&&this.Ic()};
aX.prototype.updateVideoData=function(a,b){var c,d,e;a=g.S(null==(c=b.Jd)?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.decoratedPlayerBarRenderer,APa);var f;this.B=null==(f=g.S(null==a?void 0:a.playerBarActionButton,g.lN))?void 0:f.command;$W.prototype.K.call(this)};
aX.prototype.Ic=function(){var a="",b=this.D.j,c,d="clips"===(null==(c=this.J.getLoopRange())?void 0:c.type);if(1<b.length&&!d){a=1E3*this.J.getProgressState().current;c=GW(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.C)this.J.Ta("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.C=!1}else this.C=!0;$W.prototype.S.call(this,a)};g.w(g.bX,g.T);g.bX.prototype.Xd=function(a){g.aH(a.state,32)?ZWa(this,this.api.Uj()):this.Ib&&(g.aH(a.state,16)||g.aH(a.state,1))||this.j.hide()};
g.bX.prototype.df=function(){var a=this.api.Tb();(g.aH(a,32)||g.aH(a,16))&&$Wa(this)};
g.bX.prototype.G=function(){this.C=NaN;$Wa(this)};
g.bX.prototype.hide=function(){this.B&&ZWa(this,null);g.T.prototype.hide.call(this)};g.w(g.cX,g.T);g.k=g.cX.prototype;g.k.onClick=function(){var a=this;if(this.J.W().vc||this.J.W().ma){this.J.wb(this.element);try{this.J.toggleFullscreen().catch(function(b){a.qD(b)})}catch(b){this.qD(b)}}else CU(this.message,this.element,!0)};
g.k.qD=function(a){String(a).includes("fullscreen error")?g.UF(a):g.TF(a);this.uP()};
g.k.uP=function(){this.disable();this.message.zd(this.element,!0)};
g.k.lr=function(){TC()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.R3=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=.9*window.screen.width,b=.9*window.screen.height,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.uP()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=RC(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Full screen is unavailable. $BEGIN_LINKFind out more$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKFind out more$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.BU(this.J,{I:"div",Na:["ytp-popup","ytp-generic-popup"],Y:{role:"alert",tabindex:"0"},X:[b[0],{I:"a",Y:{href:"https://support.google.com/youtube/answer/6276924",
target:this.J.W().ea},Aa:b[2]},b[4]]},100,!0);this.message.hide();g.L(this,this.message);this.message.subscribe("show",function(c){a.ub.Zy(a.message,c)});
g.wU(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}};
g.k.Sa=function(){var a=vSa(this.J),b=this.J.W().ma&&250>this.J.getPlayerSize().width;g.sG(this,a&&!b);this.J.Xa(this.element,this.Ib)};
g.k.Em=function(a){if(a){var b={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"g",T:"ytp-fullscreen-button-corner-2",X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",T:"ytp-fullscreen-button-corner-3",X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{I:"g",T:"ytp-fullscreen-button-corner-0",X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{I:"g",
T:"ytp-fullscreen-button-corner-1",X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.RU(this.J,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.J.getRootNode().focus();document.B&&document.j().catch(function(c){g.UF(c)})}else b={I:"svg",
Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"g",T:"ytp-fullscreen-button-corner-0",X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",T:"ytp-fullscreen-button-corner-1",X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",T:"ytp-fullscreen-button-corner-2",X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",T:"ytp-fullscreen-button-corner-3",
X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.RU(this.J,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});a=this.message?null:a;this.update({title:a,icon:b});MU(this.ub.Ec())};
g.k.Ba=function(){this.message||((0,this.j)(),this.j=null);g.T.prototype.Ba.call(this)};g.w(dX,g.T);dX.prototype.onClick=function(){this.J.wb(this.element);this.J.seekBy(this.j,!0);null!=this.ub.xv&&yW(this.ub.xv,0<this.j?1:-1,Math.abs(this.j));if(this.B.isActive())this.C=!0;else{var a=["ytp-jump-spin"];0>this.j&&a.push("backwards");this.element.classList.add.apply(this.element.classList,g.pa(a));g.bu(this.B)}};g.w(eX,$W);eX.prototype.onClickCommand=function(a){g.S(a,Vfb)&&this.Ic()};
eX.prototype.updateVideoData=function(){var a,b;this.B=null==(a=bXa(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;$W.prototype.K.call(this)};
eX.prototype.Ic=function(){var a="",b=this.D.K,c,d=null==(c=bXa(this))?void 0:c.headerTitle;c=d?g.wG(d):"";var e;d="clips"===(null==(e=this.J.getLoopRange())?void 0:e.type);1<b.length&&!d&&(a=1E3*this.J.getProgressState().current,e=sWa(b,a),a=null!=e?b[e].title:c,null!=e&&e!==this.currentIndex&&(this.J.Ta("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));$W.prototype.S.call(this,a)};g.w(fX,g.T);fX.prototype.onClick=function(){this.J.Ta("onCollapseMiniplayer");this.J.wb(this.element)};
fX.prototype.Sa=function(){this.visible=!this.J.isFullscreen();g.sG(this,this.visible);this.J.Xa(this.element,this.visible&&this.ma)};
fX.prototype.lc=function(a){g.T.prototype.lc.call(this,a);this.J.Xa(this.element,this.visible&&a)};g.w(gX,g.T);gX.prototype.onVideoDataChange=function(a){this.Sa("newdata"===a)};
gX.prototype.Sa=function(a){var b=this.J.getVideoData(),c=b.hg,d=this.J.Tb();d=(g.WL(d)||d.isPaused())&&0<c.length;g.sG(this,d);a&&(this.j=!0);if(d){this.j&&g.bu(this.B);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.vK("Viewing $CAMERA_INDEX of $CAMERA_COUNT",{CAMERA_INDEX:String(e+1),CAMERA_COUNT:String(c.length)})+"\n";break}this.update({text:d+a,preview:b.Lg("default.jpg")});MU(this.tooltip)}else this.B.stop()};
gX.prototype.C=function(){wW(this.tooltip,this.element,"More cameras available");this.j=!1};g.w(cXa,g.BU);g.k=cXa.prototype;g.k.show=function(){var a=this.Ib;g.BU.prototype.show.call(this);a||(this.C.V(this.api,"presentingplayerstatechange",this.Sa),this.C.V(this.api,"videodatachange",this.Sa),this.Sa())};
g.k.hide=function(){this.C&&(g.cD(this.C),g.BU.prototype.hide.call(this))};
g.k.Sa=function(){var a=this,b=this.api.getVideoData(),c=b.hg,d,e={};for(d=0;d<c.length;e={ZN:e.ZN},d++){var f=this.j[d];f||(f=new g.T({I:"button",Na:["ytp-multicam-menu-item","ytp-button"],Y:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},X:[{I:"div",T:"ytp-multicam-menu-item-title",Aa:"{{cameraName}}"}]}),e.ZN=d,f.Ua("click",function(n){return function(){var p=n.ZN,q=a.api.getVideoData(),r=a.api,t=q.hg[p];p=g.dU(r.app,1).getVideoData();q=r.getCurrentTime();t.id===p.videoId?(t=g.dU(r.app,
1),g.dU(r.app)!==t&&(r.app.Lw(),p.isLivePlayback||r.seekTo(q))):r.app.loadVideoByPlayerVars({videoId:t.id,title:p.title,start:p.isLivePlayback?null:q,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.U_}}}},4)}}(e)),f.Ga(this.items),this.j[d]=f);
var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=sS(this.api.W(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:h.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.j.length;)this.j.pop().dispose();d=this.api.Tb();b=c.length||!b.isLoaded();g.WL(d)||d.isPaused()||b||!this.qj()||CU(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.hg,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.j[c].focus();break}};
g.k.Ba=function(){g.tb(this.j);g.BU.prototype.Ba.call(this)};g.w(g.hX,g.T);g.k=g.hX.prototype;g.k.tT=function(a){this.visible=300<=a.width||this.Ja;g.sG(this,this.visible);this.J.Xa(this.element,this.visible&&this.ma)};
g.k.b8=function(){this.J.W().eb?this.J.isMuted()?this.J.unMute():this.J.mute():CU(this.message,this.element,!0);this.J.wb(this.element)};
g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.J.W();a=0===d?1:50<a?1:0;if(this.G!==a){var f=this.va;isNaN(f)?fXa(this,a):nTa(this.Fa,function(l){fXa(c,f+(c.G-f)*l)},250);
this.G=a}d=0===d?1:0;if(this.D!==d){var h=this.ea;isNaN(h)?gXa(this,d):nTa(this.qa,function(l){gXa(c,h+(c.D-h)*l)},250);
this.D=d}e.eb&&(e=g.RU(this.J,"Mute","m"),d=g.RU(this.J,"Unmute","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Unmute":"Mute"}),MU(this.tooltip))};
g.k.lc=function(a){g.T.prototype.lc.call(this,a);this.J.Xa(this.element,this.visible&&a)};
var dXa=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],eXa=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.w(hXa,g.T);hXa.prototype.onClick=function(){this.J.togglePictureInPicture()};g.w(g.iX,g.T);g.iX.prototype.onStateChange=function(a){this.Gc(a.state)};
g.iX.prototype.Gc=function(a){var b=g.FT(this.J.getVideoData()),c=!1;g.WL(a)?a=b?4:2:g.aH(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.RU(this.J,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:b="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:b=g.RU(this.J,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:b="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}3===
a?this.update({title:b,icon:iXa(a)}):(this.update({title:b}),(b=iXa(a))&&this.j&&3!==this.j?pTa(this.transition,this.element,b):this.updateValue("icon",b));MU(this.tooltip);this.j=a}};
g.iX.prototype.onVideoDataChange=function(){g.mu(this.element,"ytp-play-button-playlist",g.sU(this.J))};
g.iX.prototype.Rr=function(a){this.J.wb(this.element);if(g.WL(this.J.Tb()))this.J.pauseVideo();else{if(this.J.yg()&&this.J.Tb().isCued()){var b={},c;if(null==(c=this.J.getVideoData())?0:c.G)b.cttAuthInfo={token:this.J.getVideoData().G,videoId:this.J.getVideoData().videoId};iI("direct_playback",b);this.J.oi().timerName="direct_playback"}else 3===this.j&&uV(this.J.oi());this.J.playVideo()}this.J.yg()&&"click"===(null==a?void 0:a.type)&&this.element.blur()};g.w(g.jX,g.T);g.k=g.jX.prototype;g.k.onVideoDataChange=function(){kXa(this);this.D&&(this.Qc(this.D),this.D=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.D=this.V(this.J,"progresssync",this.z2);this.C=lXa(this);jXa(this);this.gL(this.J.tb().getPlayerSize())};
g.k.gL=function(a){a=void 0===a?this.J.tb().getPlayerSize():a;var b,c="clips"===(null==(b=this.J.getLoopRange())?void 0:b.type);a=(g.sU(this.J)||this.j&&g.xU(this.J)&&!this.J.N("web_hide_next_button")||mXa(this))&&!c&&(this.j||400<=a.width);g.sG(this,a);this.J.Xa(this.element,a)};
g.k.onClick=function(a){this.J.wb(this.element);var b=!0;this.K?b=g.PU(a,this.J):a.preventDefault();b&&(this.j&&5===this.J.getPresentingPlayerType()?this.J.ra("ytoprerollinternstitialnext"):this.j?(uV(this.J.oi()),this.J.ra("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.C?this.J.seekTo(0):(uV(this.J.oi()),this.J.ra("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))};
g.k.z2=function(){var a=lXa(this);a!==this.C&&(this.C=a,jXa(this))};
g.k.Ba=function(){this.B&&(this.B(),this.B=null);kXa(this);g.T.prototype.Ba.call(this)};g.w(oXa,g.T);g.k=oXa.prototype;g.k.B2=function(a){this.iL(a.pageX);this.hL(a.pageX+a.deltaX);pXa(this)};
g.k.iL=function(a){this.va=a-this.Oa};
g.k.hL=function(a){a-=this.Oa;!isNaN(this.va)&&0<this.thumbnails.length&&(this.ea=a-this.va,0<this.thumbnails.length&&0!==this.ea&&(this.B=this.G+this.ea,a=WXa(this,this.B),this.B<=this.j/2&&this.B>=VXa(this)?(this.api.seekTo(a,!1),this.api.N("web_fix_fine_scrubbing_drag")?g.yr(this.Ca,"transform","translateX("+(this.B-this.j/2)+"px)"):g.yr(this.C,"transform","translateX("+this.B+"px)"),nXa(this,a)):this.B=this.G))};
g.k.A2=function(){var a=300>(0,g.OD)()-this.Va;if(5>Math.abs(this.ea)&&!a){this.Va=(0,g.OD)();a=this.va+this.ea;var b=this.j/2-a;this.iL(a);this.hL(a+b);pXa(this);this.api.wb(this.C)}pXa(this)};
g.k.sA=function(){kX(this,this.api.getCurrentTime())};
g.k.play=function(a){this.api.seekTo(WXa(this,this.B));this.api.playVideo();a&&this.api.wb(this.playButton)};
g.k.onExit=function(a){this.api.seekTo(this.Pa);this.api.playVideo();a&&this.api.wb(this.dismissButton)};
g.k.Nb=function(a,b){this.Oa=a;this.j=b;kX(this,this.api.getCurrentTime())};
g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Pa=this.api.getCurrentTime(),nXa(this,this.Pa),g.mu(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Ja=this.V(this.element,"wheel",this.B2),this.Xa(this.isEnabled))};
g.k.disable=function(){this.isEnabled=!1;this.hide();g.mu(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Ja&&this.Qc(this.Ja);this.Xa(this.isEnabled)};
g.k.reset=function(){this.disable();this.K=[];this.Fa=!1};
g.k.Xa=function(a){this.api.Xa(this.element,a);this.api.Xa(this.C,a);this.api.Xa(this.dismissButton,a);this.api.Xa(this.playButton,a)};
g.k.Ba=function(){for(;this.D.length;){var a=void 0;null==(a=this.D.pop())||a.dispose()}g.T.prototype.Ba.call(this)};
g.w(SXa,g.T);g.w(TXa,g.T);g.w(XXa,g.T);g.w(lX,g.T);lX.prototype.Gb=function(a){return"PLAY_PROGRESS"===a?this.K:"LOAD_PROGRESS"===a?this.G:"LIVE_BUFFER"===a?this.D:this.B};$Xa.prototype.update=function(a,b,c,d){c=void 0===c?0:c;this.width=b;this.C=c;this.j=b-c-(void 0===d?0:d);this.position=g.ne(a,c,c+this.j);this.B=this.position-c;this.fraction=this.B/this.j};g.w(aYa,g.T);g.w(g.oX,g.tG);g.k=g.oX.prototype;
g.k.v_=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.mf("timedMarkerCueRange");dYa(this);for(var c=g.u(b.Ud),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Pa[d])?void 0:e.markerType;e=void 0;var h=null==(e=this.Pa[d])?void 0:e.markers;if(!h)break;if("MARKER_TYPE_TIMESTAMPS"===f){a=g.u(h);for(f=a.next();!f.done;f=a.next()){e=f.value;f=new aYa;h=void 0;f.title=(null==(h=e.title)?void 0:h.simpleText)||"";f.timeRangeStartMillis=Number(e.startMillis);f.j=
Number(e.durationMillis);var l=h=void 0;f.onActiveCommand=null!=(l=null==(h=e.onActive)?void 0:h.innertubeCommand)?l:void 0;jYa(this,f)}kYa(this,this.K);a=this.K;f=this.Vd;e=[];h=null;for(l=0;l<a.length;l++){var m=a[l].timeRangeStartMillis;if(!isNaN(m)&&a[l].onActiveCommand){var n=void 0,p=null!=(n=a[l].j)?n:1E4;h&&h.end>m&&(h.end=m);m=vWa(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.xf(e);this.Gf=this.Pa[d];a=!0}else if("MARKER_TYPE_HEATMAP"===f){d=this.Pa[d];p=n=e=m=l=h=void 0;if(d&&
d.markers){f=null!=(e=null==(p=d.markersMetadata)?void 0:null==(n=p.heatmapMetadata)?void 0:n.minHeightDp)?e:0;e=null!=(h=null==(m=d.markersMetadata)?void 0:null==(l=m.heatmapMetadata)?void 0:l.maxHeightDp)?h:60;h=this.j.length;l=null;for(m=0;m<h;m++){p=this.j[m].startTime;var q=m===h-1?Infinity:this.j[m+1].startTime;m===this.G.length&&cYa(this);n=[];l&&n.push(l);for(var r=g.u(d.markers),t=r.next();!t.done;t=r.next()){t=t.value;var v=Number(t.startMillis);v>=p&&v<=q&&n.push(t)}0<e&&(this.va.style.height=
e+"px");p=this.G[m];q=n;t=f;var x=e,B=0===m;B=void 0===B?!1:B;YXa(p,x);r=q;v=p.j;B=void 0===B?!1:B;var G=1E3/r.length,F=[];F.push({x:0,y:100});for(var I=0;I<r.length;I++){var P=(I+.5)*G,R=100-g.ne(100*(r[I].intensityScoreNormalized||0),t/v*100,x/v*100);0!==I||B||F.push({x:0,y:R});F.push({x:P,y:R});I===r.length-1&&F.push({x:1E3,y:R})}F.push({x:1E3,y:100});r=F;q=0===q.length?"":wxa(r);p.C.setAttribute("d",q);p.Ie=""!==q;g.mu(p.api.getRootNode(),"ytp-heat-map",p.Ie);0<n.length&&(l=n[n.length-1])}g.pX(this)}e=
void 0;f=[];if(d=null==(e=d.markersDecoration)?void 0:e.timedMarkerDecorations)for(d=g.u(d),e=d.next();!e.done;e=d.next())e=e.value,m=l=h=void 0,f.push({visibleTimeRangeStartMillis:null!=(h=e.visibleTimeRangeStartMillis)?h:-1,visibleTimeRangeEndMillis:null!=(l=e.visibleTimeRangeEndMillis)?l:-1,decorationTimeMillis:null!=(m=e.decorationTimeMillis)?m:NaN,label:e.label?g.wG(e.label):""});d=f;this.heatMarkersDecorations=d}}b.OT=this.K;g.mu(this.element,"ytp-timed-markers-enabled",a);return a};
g.k.Nb=function(){g.pX(this);rX(this);kYa(this,this.K);if(this.B){var a=g.Gr(this.element).x||0;this.B.Nb(a,this.S)}};
g.k.onClickCommand=function(a){if(a=g.S(a,uT)){var b=a.key;a.isVisible&&b&&oYa(this,b)}};
g.k.q9=function(a){this.api.Ta("innertubeCommand",this.Vd[a.id])};
g.k.Ic=function(){rX(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.EJ()};
g.k.C2=function(a){if(!a.defaultPrevented){var b=!1;switch(a.keyCode){case 36:this.api.seekTo(0);b=!0;break;case 35:this.api.seekTo(Infinity);b=!0;break;case 34:this.api.seekBy(-60);b=!0;break;case 33:this.api.seekBy(60);b=!0;break;case 38:this.api.seekBy(5);b=!0;break;case 40:this.api.seekBy(-5),b=!0}b&&a.preventDefault()}};
g.k.ut=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.v5=function(){this.ut("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.Ie();c&&(VT(a)||vYa(this)?this.Le=!1:this.Le=a.allowLiveDvr,g.mu(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!VT(a))));EYa(this,this.api.Ph());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;vX(this);for(sX(this,this.qa,this.rb);0<this.G.length;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.Cb={};var d;null==(d=this.B)||d.reset();BX(this);g.mu(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
nX(this))}else this.EJ();g.YX(this.tooltip)}if(a){var e;d="clips"===(null==(e=this.Lb)?void 0:e.type);if(e=!a.isLivePlayback){e=this.api.getVideoData();b=fYa(e);var f;e=null!=g.CPa(e)||null!=b&&0<b.length||0<(null==(f=e.gy)?void 0:f.length)}if(e&&!d){f=this.api.getVideoData();d=g.CPa(f);e=!1;if(null==d?0:d.markersMap){e=this.api.getVideoData();var h;e.Bx=(null==(h=d.visibleOnLoad)?void 0:h.key)||e.Bx;h=g.u(d.markersMap);for(d=h.next();!d.done;d=h.next())d=d.value,d.key&&d.value&&(this.Cb[d.key]=d.value,
d.value.onChapterRepeat&&(e.m6=d.value.onChapterRepeat));null!=e.Bx&&oYa(this,e.Bx);e=!0}if((this.api.W().N("web_key_moments_markers")||this.api.W().N("web_heat_map_v2"))&&0<f.gy.length){h=g.vT.getState().entities;d=g.u(f.gy);for(b=d.next();!b.done;b=d.next()){b=b.value;var l=void 0;c=null==(l=cP(h,"macroMarkersListEntity",b))?void 0:l.markersList;var m=l=void 0;if("MARKER_TYPE_TIMESTAMPS"===(null==(l=c)?void 0:l.markerType)||"MARKER_TYPE_HEATMAP"===(null==(m=c)?void 0:m.markerType))this.Pa[b]=c}e=
this.v_()||e}!e&&(h=fYa(f))&&(hYa(this,h),f.lk=this.j,gYa(this));wYa(this,null);a.T_&&0===this.G.length&&(a=a.T_,f=a.key,a.isVisible&&f&&oYa(this,f))}else bYa(this),dYa(this)}rX(this)};
g.k.w5=function(a){this.ea&&!g.aH(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.ea.cancel();var b;(null==(b=this.B)?0:b.isEnabled)&&g.aH(a.state,8)&&this.api.pauseVideo()};
g.k.uT=function(a){var b=!!this.Lb!==!!a,c=this.Lb;this.Lb=a;wYa(this,c);"clips"!==(null==a?void 0:a.type)&&a||(a?(this.updateValue("clipstarticon",xua()),this.updateValue("clipendicon",xua()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",rua()),this.updateValue("clipendicon",qua()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(),
!0),g.pX(this)),vX(this));sX(this,this.qa,this.rb)};
g.k.s8=function(a,b,c){var d=g.Gr(this.element),e=qX(this).j,f=c?c.getAttribute("data-tooltip"):void 0,h=c?c.getAttribute("data-position"):void 0,l=c?c.getAttribute("data-offset-y"):void 0;l=l?Number(l):0;h&&(a=nH(this.C,Number(c.getAttribute("data-position")),0)*e+g.Gr(this.Tc).x);this.kb.x=a-d.x;this.kb.y=b-d.y;a=qX(this);c=uX(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:VT(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=nH(this.C,m)*qX(this).j),b=this.C.B;vYa(this)&&
(b=this.C.B);m=f||g.jH(this.Le?c-this.C.j:c-b);b=a.position+this.fg;c-=this.api.Xc();var n;if(null==(n=this.B)||!n.isEnabled)if(this.api.Uj()){if(1<this.j.length){n=tX(this,this.kb.x,!0);if(!this.Lb)for(d=0;d<this.j.length;)g.mu(this.j[d].j,"ytp-exp-chapter-hover-effect",d===n),d++;if(1<this.G.length)for(d=0;d<this.j.length;d++)g.mu(this.G[d].element,"ytp-heatmap-hover",d===n)}if(0<this.K.length)for(n=this.kb.x,d=g.u(this.K),e=d.next();!e.done;e=d.next())e=e.value,h=pYa(this,e.timeRangeStartMillis/
(1E3*this.C.j),qX(this)),g.mu(e.element,"ytp-timed-marker-hover",h<=n&&h+6>=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.N("web_key_moments_markers")?this.Gf?(n=sWa(this.K,1E3*c),n=null!=n?this.K[n].title:""):(n=GW(this.j,1E3*c),n=this.j[n].title):(n=GW(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=GW(this.j,1E3*c);this.eb=xYa(this,c,d)?d:xYa(this,c,d+1)?d+1:-1;g.mu(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.eb&&1<this.j.length);d=!1;
e=g.u(this.heatMarkersDecorations);for(h=e.next();!h.done;h=e.next()){h=h.value;var p=1E3*c;p>=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.jH(h.decorationTimeMillis/1E3),d=!0)}this.Bd!==d&&(this.Bd=d,this.api.Xa(this.Td,this.Bd));g.mu(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.D?8.55:5.7);e=e<=d?e:d;h=e<160*this.tooltip.scale;d=3;!h&&e/2>a.position&&(d=1);!h&&e/2>this.S-a.position&&(d=2);this.api.W().ma&&(l-=
10);this.G.length&&this.G[0].Ie&&(l-=14*(this.D?2:1),this.Ja||(this.Ja=!0,this.api.Xa(this.va,this.Ja)));var q;if(nX(this)&&((null==(q=this.B)?0:q.isEnabled)||0<this.Ya)){var r;l-=(null==(r=this.B)?0:r.isEnabled)?xX(this):this.Ya}q=void 0;nX(this)&&(q="Pull up for precise seeking",this.Fa||(this.Fa=!0,this.api.Xa(this.qd,this.Fa)));sZa(this.tooltip,b,c,m,!!f,l,n,d,q)}else sZa(this.tooltip,b,c,m,!!f,l);g.iu(this.api.getRootNode(),"ytp-progress-bar-hover");uYa(this)};
g.k.r8=function(){g.YX(this.tooltip);g.ku(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ja&&(this.Ja=!1,this.api.Xa(this.va,this.Ja));this.Fa&&(this.Fa=!1,this.api.Xa(this.qd,this.Fa))};
g.k.q8=function(a,b){nX(this)&&this.B&&(this.B.Fa?kX(this.B,this.api.getCurrentTime()):UXa(this.B),this.B.show(),g.mu(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.B.isEnabled));this.Kd&&(this.Kd.dispose(),this.Kd=null);this.gg=b;1<this.j.length&&-1!==this.eb?this.api.seekTo(this.j[this.eb].startTime/1E3,!1):this.api.seekTo(uX(this,qX(this)),!1);g.iu(this.element,"ytp-drag");(this.Me=g.WL(this.api.Tb()))&&this.api.pauseVideo()};
g.k.t8=function(){if(nX(this)&&this.B){var a=xX(this);this.Ya>=.5*a?(this.B.enable(),kX(this.B,this.api.getCurrentTime()),DYa(this,a)):BX(this)}if(g.aH(this.api.Tb(),32)||3===this.api.getPresentingPlayerType()){var b;if(null==(b=this.B)?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1<this.j.length&&-1!==this.eb)this.api.seekTo(this.j[this.eb].startTime/1E3);else{a=uX(this,qX(this));this.api.seekTo(a);b=g.u(this.heatMarkersDecorations);for(var c=b.next();!c.done;c=b.next())c=
c.value,1E3*a>=c.visibleTimeRangeStartMillis&&1E3*a<=c.visibleTimeRangeEndMillis&&this.api.wb(this.Td)}g.ku(this.element,"ytp-drag");this.Me&&!g.aH(this.api.Tb(),2)&&this.api.playVideo()}}};
g.k.u8=function(a,b){a=qX(this);a=uX(this,a);this.api.seekTo(a,!1);var c;nX(this)&&(null==(c=this.B)?0:c.Fa)&&(kX(this.B,a),this.B.isEnabled||(this.Ya=g.ne(this.gg-b-10,0,xX(this)),DYa(this,this.Ya)))};
g.k.VX=function(){this.Lb||(this.updateValue("clipstarticon",pua()),this.updateValue("clipendicon",pua()),g.iu(this.element,"ytp-clip-hover"))};
g.k.UX=function(){this.Lb||(this.updateValue("clipstarticon",rua()),this.updateValue("clipendicon",qua()),g.ku(this.element,"ytp-clip-hover"))};
g.k.EJ=function(){this.clipStart=0;this.clipEnd=Infinity;vX(this);sX(this,this.qa,this.rb)};
g.k.zaa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Oa[c]){var d=g.lf("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Oa[c]=b;this.wc[c]=d;g.gu(d,b.style);yYa(this,c);this.api.W().N("disable_ad_markers_on_content_progress_bar")||this.j[0].C.appendChild(d)}}else CYa(this,b)};
g.k.k$=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())CYa(this,b.value)};
g.k.Rs=function(a){this.B&&(this.B.onExit(null!=a),BX(this))};
g.k.XM=function(a){this.B&&(this.B.play(null!=a),BX(this))};
g.k.Ba=function(){EYa(this,!1);g.tG.prototype.Ba.call(this)};g.w(CX,g.T);CX.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
CX.prototype.Sa=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=1<this.J.getOption("remote","receivers").length);g.sG(this,a&&400<=this.J.tb().getPlayerSize().width);this.J.Xa(this.element,this.Ib);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{I:"path",Bc:!0,Y:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.nua())}g.mu(this.element,"ytp-remote-button-active",this.isActive())}};
CX.prototype.B=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Pb,b=this.element;if(a.qj())a.Qb();else{a.initialize();a:{var c=g.u(a.Xf.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,1===d.priority){c=d;break a}c=null}c&&(c.open(),a.zd(b));a.zd(b)}}this.J.wb(this.element)};g.w(DX,g.T);DX.prototype.j=function(a){var b=this.J.W(),c=400;this.J.N("web_player_small_hbp_settings_menu")&&b.S?c=300:b.ma&&(c=200);a=this.B&&a.width>=c;g.sG(this,a);this.J.Xa(this.element,a)};
DX.prototype.C=function(){if(this.Pb.Ib)this.Pb.Qb();else{var a=g.JV(this.J.Eb());a&&!a.loaded&&(a.Jh("tracklist",{includeAsr:!0}).length||a.load());this.J.wb(this.element);this.Pb.zd(this.element)}};
DX.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.vU(this.J),e=c&&!!g.uU(this.J.Eb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.mu(this.element,"ytp-hdr-quality-badge",a);g.mu(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.mu(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.mu(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.mu(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.mu(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.mu(this.element,"ytp-3d-badge",!a&&e&&d)};g.w(EX,NU);EX.prototype.isLoaded=function(){var a=g.PV(this.J.Eb());return void 0!==a&&a.loaded};
EX.prototype.Sa=function(){void 0!==g.PV(this.J.Eb())&&3!==this.J.getPresentingPlayerType()?this.j||(this.Pb.ud(this),this.j=!0):this.j&&(this.Pb.Fh(this),this.j=!1);OU(this,this.isLoaded())};
EX.prototype.onSelect=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.ra("annotationvisibility",a)};
EX.prototype.Ba=function(){this.j&&this.Pb.Fh(this);NU.prototype.Ba.call(this)};g.w(g.FX,g.EU);g.k=g.FX.prototype;g.k.open=function(){g.qW(this.Pb,this.B)};
g.k.Kj=function(a){HYa(this);this.options[a].element.setAttribute("aria-checked","true");this.oe(this.zk(a));this.C=a};
g.k.eM=function(a,b,c){var d=this;b=new g.EU({I:"div",Na:["ytp-menuitem"],Y:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},X:[{I:"div",Na:["ytp-menuitem-label"],Aa:"{{label}}"}]},b,this.zk(a,!0));b.Ua("click",function(){d.uh(a)});
return b};
g.k.enable=function(a){this.K?a||(this.K=!1,this.Nx(!1)):a&&(this.K=!0,this.Nx(!0))};
g.k.Nx=function(a){a?this.Pb.ud(this):this.Pb.Fh(this)};
g.k.uh=function(a){this.ra("select",a)};
g.k.zk=function(a){return a.toString()};
g.k.D2=function(a){a.defaultPrevented||39!==a.keyCode||(this.open(),a.preventDefault())};
g.k.Ba=function(){this.K&&this.Pb.Fh(this);g.EU.prototype.Ba.call(this);for(var a=g.u(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.w(HX,g.FX);HX.prototype.Sa=function(){var a=this.J.getAvailableAudioTracks();1<a.length?(g.GX(this,g.Yp(a,this.j)),this.tracks=g.ac(a,this.j,this),this.countLabel.oe(a.length?" ("+a.length+")":""),this.ra("size-change"),this.Kj(this.j(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
HX.prototype.uh=function(a){g.FX.prototype.uh.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Pb.zj()};
HX.prototype.j=function(a){return a.toString()};g.w(IX,NU);
IX.prototype.B=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.xU(this.J))this.j||(this.Pb.ud(this),this.j=!0,this.C.push(this.V(this.J,"videodatachange",this.B)),this.C.push(this.V(this.J,"videoplayerreset",this.B)),this.C.push(this.V(this.J,"onPlaylistUpdate",this.B)),this.C.push(this.V(this.J,"autonavchange",this.D)),a=this.J.getVideoData(),this.D(a.autonavState),this.J.Xa(this.element,this.j));else if(this.j){this.Pb.Fh(this);this.j=!1;a=g.u(this.C);for(var b=a.next();!b.done;b=a.next())this.Qc(b.value)}};
IX.prototype.D=function(a){OU(this,1!==a)};
IX.prototype.onSelect=function(a){this.J.IJ(a?2:1);this.j&&(this.J.Xa(this.element,this.j),this.J.wb(this.element))};
IX.prototype.Ba=function(){this.j&&this.Pb.Fh(this);NU.prototype.Ba.call(this)};g.w(IYa,g.EU);IYa.prototype.onClick=function(a){a.preventDefault();var b,c;null==(b=g.eU(this.J))||null==(c=b.qn())||c.Qb();var d,e;null==(d=g.eU(this.J))||null==(e=d.qH())||e.zd(a.target)};g.w(JYa,g.FX);g.k=JYa.prototype;
g.k.VB=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a){this.Ca=this.J.Vs();a=this.J.getAvailableQualityLevels();if(this.j){this.D={};var b=g.cU(this.J,"getAvailableQualityData",[]);b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.D[c.qualityLabel]=c;b=Object.keys(this.D);"auto"===a[a.length-1]&&b.push("auto");this.Fa=new Set(a)}else if(this.G){c=g.cU(this.J,"getAvailableQualityData",[]);b=[];c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.ea[d.quality]=
d,d.quality&&b.push(d.quality);"auto"===a[a.length-1]&&b.push("auto")}else b=a;g.YRa(this.J)&&this.J.Mv()&&b.unshift("missing-qualities");ZRa(this.J)&&b.unshift("inline-survey");g.GX(this,b);a=this.J.getVideoData().cotn?!0:!1;c=this.va.Oh();c=!g.vS(this.J.W())||!(void 0===a?0:a)||!(void 0===c||c);a=this.B;c=void 0===c?!1:c;c=void 0===c?!1:c;a.xW&&(a=a.Ha("ytp-panel-footer"),g.mu(a,"ytp-panel-hide-footer",c));if(b.length){this.vT();this.enable(!0);return}}this.enable(!1)};
g.k.vT=function(){if(this.j){var a=this.J.getPreferredQuality();this.Fa.has(a)&&(this.S=this.J.getPlaybackQuality(),this.qa=this.J.getPlaybackQualityLabel(),"auto"===a?(this.Kj(a),this.oe(this.zk(a))):this.Kj(this.qa))}else a=this.J.getPreferredQuality(),this.options[a]&&(this.S=this.J.getPlaybackQuality(),this.Kj(a),"auto"===a&&this.oe(this.zk(a)))};
g.k.uh=function(a){if("missing-qualities"!==a){g.FX.prototype.uh.call(this,a);var b=this.j?this.D[a]:this.ea[a];var c=null==b?void 0:b.quality,d=null==b?void 0:b.formatId,e=null==b?void 0:b.paygatedQualityDetails;b=null==e?void 0:e.endpoint;if(e){var f;e=null==(f=this.options[a])?void 0:f.element;this.J.wb(e)}if(this.j){var h,l;if(this.J.N("web_player_enable_early_warning_snackbar")&&(null==(h=g.S(b,g.Geb))?0:null==(l=h.popup)?0:l.notificationActionRenderer))this.J.Ta("innertubeCommand",b);else if(b){this.J.Ta("innertubeCommand",
b);return}d?this.J.setPlaybackQuality(c,d):this.J.setPlaybackQuality(c)}else{if(this.G){var m,n;if(this.J.N("web_player_enable_early_warning_snackbar")&&(null==(m=g.S(b,g.Geb))?0:null==(n=m.popup)?0:n.notificationActionRenderer))this.J.Ta("innertubeCommand",b);else if(b){this.J.Ta("innertubeCommand",b);return}}this.J.setPlaybackQuality(a)}this.Pb.Qb();this.VB()}};
g.k.open=function(){for(var a=g.u(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.J.Wj(null==(c=b)?void 0:c.element)&&(c=void 0,this.J.Xa(null==(c=b)?void 0:c.element,!0))}g.FX.prototype.open.call(this);this.J.wb(this.element)};
g.k.eM=function(a,b,c){var d=this;if("missing-qualities"===a)return new g.EU({I:"a",Na:["ytp-menuitem"],Y:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.W().ea,tabindex:"0",role:"menuitemradio"},X:[{I:"div",Na:["ytp-menuitem-label"],Aa:"{{label}}"}]},b,this.zk(a));if("inline-survey"!==a){var e,f=null==(e=this.j?this.D[a]:this.ea[a])?void 0:e.paygatedQualityDetails;e=null==f?void 0:f.veType;f=null==f?void 0:f.trackingParams;b=g.FX.prototype.eM.call(this,a,b,c);f?(this.J.qg(b.element,
this,!0),this.J.Gg(b.element,f)):e&&this.J.zb(b.element,this,e,!0);return b}a=[{I:"span",Aa:"Look good?"}];c=g.u([!0,!1]);f=c.next();for(e={};!f.done;e={TH:e.TH},f=c.next())e.TH=f.value,f=new g.T({I:"span",T:"ytp-menuitem-inline-survey-response",X:[e.TH?g.wua():tua()],Y:{tabindex:"0",role:"button"}}),f.Ua("click",function(h){return function(){var l=h.TH,m=g.dU(d.J.app);m&&(m.ya("iqsr",{tu:l}),m.getVideoData().mZ=!0);d.Pb.Qb();d.VB()}}(e)),a.push(f);
return new g.EU({I:"div",T:"ytp-menuitem",Y:{"aria-disabled":"true"},X:[{I:"div",Na:["ytp-menuitem-label"],X:a}]},b)};
g.k.zk=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{I:"div",Aa:"Missing options?"};if("inline-survey"===a)return"";var c=this.G||this.j?[MYa(this,a,b,!1)]:[LYa(this,a)];var d=this.J.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),this.j?c.push(MYa(this,this.qa,b,!0,["ytp-menu-label-secondary"])):this.G?c.push(MYa(this,this.S,b,!0,["ytp-menu-label-secondary"])):c.push(LYa(this,this.S,["ytp-menu-label-secondary"])));return{I:"div",X:c}};g.w(JX,g.T);g.k=JX.prototype;g.k.init=function(){this.Tw(this.j);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.D)};
g.k.G2=function(a){if(!a.defaultPrevented){switch(a.keyCode){case 37:case 40:var b=-this.ea;break;case 39:case 38:b=this.ea;break;default:return}this.Tw(this.j+b);a.preventDefault()}};
g.k.E2=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.S:this.S;this.Tw(b);a.preventDefault()};
g.k.F2=function(a){a=(a-g.Gr(this.C).x)/this.qa*this.range+this.B;this.Tw(a)};
g.k.Tw=function(a,b){b=void 0===b?"":b;a=g.ne(a,this.B,this.D);""===b&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.va.style.left=(a-this.B)/this.range*(this.qa-this.Fa)+"px";this.j=a};
g.k.focus=function(){this.Ja.focus()};g.w(KX,JX);KX.prototype.Ca=function(){this.J.setPlaybackRate(this.j,!0)};
KX.prototype.Tw=function(a){JX.prototype.Tw.call(this,a,OYa(this,a).toString());this.G&&(NYa(this),this.Oa())};
KX.prototype.updateValues=function(){var a=this.J.getPlaybackRate();OYa(this,this.j)!==a&&(this.Tw(a),NYa(this))};g.w(PYa,g.tG);PYa.prototype.focus=function(){this.j.focus()};g.w(QYa,mW);g.w(RYa,g.FX);g.k=RYa.prototype;g.k.zk=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.Sa=function(){var a=this.J.getPresentingPlayerType();this.enable(2!==a&&3!==a);VYa(this)};
g.k.Nx=function(a){g.FX.prototype.Nx.call(this,a);a?(this.S=this.V(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),VYa(this),TYa(this,this.J.getPlaybackRate())):(this.Qc(this.S),this.S=null)};
g.k.onPlaybackRateChange=function(a){var b=this.J.getPlaybackRate();this.G.includes(b)||UYa(this,b);TYa(this,a)};
g.k.uh=function(a){g.FX.prototype.uh.call(this,a);a===this.j?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Pb.zj()};g.w(XYa,g.FX);g.k=XYa.prototype;g.k.Kj=function(a){g.FX.prototype.Kj.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.zk=function(a){return this.getOption(a).text||""};
g.k.uh=function(a){g.FX.prototype.uh.call(this,a);this.ra("settingChange",this.S,this.settings[a].option)};g.w(LX,g.nW);LX.prototype.ph=function(a){for(var b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Rt[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Kj(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
LX.prototype.ek=function(a,b){this.ra("settingChange",a,b)};g.w(MX,g.FX);MX.prototype.getKey=function(a){return a.languageCode};
MX.prototype.zk=function(a){return this.languages[a].languageName||""};
MX.prototype.uh=function(a){this.ra("select",a);this.J.wb(this.element);g.tW(this.Pb)};g.w($Ya,g.FX);g.k=$Ya.prototype;g.k.getKey=function(a){return g.jd(a)?"__off__":a.displayName};
g.k.zk=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":"__correction__"===a?"Suggest caption corrections":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.uh=function(a){if("__translate__"===a)this.j.open();else if("__contribute__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var b=g.BKa(this.J.W(),this.J.getVideoData());g.uH(b)}else if("__correction__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var c=aZa(this);NX(this,c);g.FX.prototype.uh.call(this,this.getKey(c));var d,e;c=null==(b=this.J.getVideoData().getPlayerResponse())?void 0:null==(d=b.captions)?void 0:null==(e=d.playerCaptionsTracklistRenderer)?
void 0:e.openTranscriptCommand;this.J.Ta("innertubeCommand",c);this.Pb.zj();this.D&&this.J.wb(this.D)}else{if("__correction__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();b=aZa(this);NX(this,b);g.FX.prototype.uh.call(this,this.getKey(b));var f,h;b=null==(c=this.J.getVideoData().getPlayerResponse())?void 0:null==(f=c.captions)?void 0:null==(h=f.playerCaptionsTracklistRenderer)?void 0:h.openTranscriptCommand;this.J.Ta("innertubeCommand",b)}else this.J.wb(this.element),
NX(this,"__off__"===a?{}:this.tracks[a]),g.FX.prototype.uh.call(this,a);this.Pb.zj()}};
g.k.Sa=function(){var a=this.J.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.J.getVideoData(),c=b&&b.xx,d,e=!(null==(d=this.J.getVideoData())||!g.UT(d));d={};if(a||c){var f;if(a){var h=this.J.getOption("captions","track");d=this.J.getOption("captions","tracklist",{includeAsr:!0});var l=e?[]:this.J.getOption("captions","translationLanguages");this.tracks=g.ac(d,this.getKey,this);e=g.Yp(d,this.getKey);var m=aZa(this),n,p;b.N("suggest_caption_correction_menu_item")&&m&&(null==(f=b.getPlayerResponse())?
0:null==(n=f.captions)?0:null==(p=n.playerCaptionsTracklistRenderer)?0:p.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.jd(h)){if((f=h.translationLanguage)&&f.languageName){var q=f.languageName;f=l.findIndex(function(r){return r.languageName===q});
zaa(l,f)}YYa(this.j,l);e.push("__translate__")}f=this.getKey(h)}else this.tracks={},e=[],f="__off__";e.unshift("__off__");this.tracks.__off__={};c&&e.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=h,e.push(f));g.GX(this,e);this.Kj(f);h&&h.translationLanguage?this.j.Kj(this.j.getKey(h.translationLanguage)):HYa(this.j);a&&this.G.ph(this.J.getSubtitlesUserSettings());this.countLabel.oe(d&&d.length?" ("+d.length+")":"");this.ra("size-change");this.J.Xa(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.H2=function(a){var b=this.J.getOption("captions","track");b=g.pd(b);b.translationLanguage=this.j.languages[a];NX(this,b)};
g.k.ek=function(a,b){if("reset"===a)this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}ZYa(this,!0);this.S.start();this.G.ph(this.J.getSubtitlesUserSettings())};
g.k.Z8=function(a){a||g.du(this.S)};
g.k.Ba=function(){g.du(this.S);g.FX.prototype.Ba.call(this)};
g.k.open=function(){g.FX.prototype.open.call(this);this.options.__correction__&&!this.D&&(this.D=this.options.__correction__.element,this.J.zb(this.D,this,167341),this.J.Xa(this.D,!0))};g.w(bZa,g.sW);g.k=bZa.prototype;
g.k.initialize=function(){if(!this.isInitialized){var a=this.J.W();this.isInitialized=!0;this.wQ=new JYa(this.J,this);g.L(this,this.wQ);var b=new $Ya(this.J,this);g.L(this,b);a.C||(b=new EX(this.J,this),g.L(this,b));a.Sf&&(b=new RYa(this.J,this),g.L(this,b));(g.eS(a)||a.S)&&(a.B||a.Cb)&&(b=new IYa(this.J,this),g.L(this,b));a.Le&&!a.N("web_player_move_autonav_toggle")&&(a=new IX(this.J,this),g.L(this,a));a=new HX(this.J,this);g.L(this,a);this.J.ra("settingsMenuInitialized");GYa(this.settingsButton,
this.Xf.gp())}};
g.k.ud=function(a){this.initialize();this.Xf.ud(a);GYa(this.settingsButton,this.Xf.gp())};
g.k.Fh=function(a){this.Ib&&1>=this.Xf.gp()&&this.hide();this.Xf.Fh(a);GYa(this.settingsButton,this.Xf.gp())};
g.k.zd=function(a){this.initialize();0<this.Xf.gp()&&g.sW.prototype.zd.call(this,a)};
g.k.Qb=function(){this.kJ?this.kJ=!1:g.sW.prototype.Qb.call(this)};
g.k.show=function(){g.sW.prototype.show.call(this);g.iu(this.J.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.sW.prototype.hide.call(this);g.ku(this.J.getRootNode(),"ytp-settings-shown")};
g.k.Cg=function(a){this.J.Xa(this.element,a);this.J.ra("settingsMenuVisibilityChanged",a)};g.w(g.OX,g.T);g.OX.prototype.onClick=function(){if(dZa(this)&&(this.J.toggleSubtitles(),this.J.wb(this.element),!this.isEnabled())){var a=!1,b=g.lD(g.kD(),65);g.vS(this.J.W())&&null!=b&&(a=!b);a&&this.J.W().N("web_player_nitrate_promo_tooltip")&&this.J.ra("showpromotooltip",this.element)}};
g.OX.prototype.j=function(a){var b,c;null==(b=g.eU(this.J))||null==(c=b.qn())||c.zd(a)};
g.OX.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName};
g.OX.prototype.Sa=function(){var a=dZa(this),b=300;this.J.W().ma&&(b=480);if(this.J.W().S){this.updateValue("title",g.RU(this.J,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var c=a}else{if(a)null==(c=this.Ha("ytp-subtitles-button-icon"))||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.RU(this.J,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var d;null==(d=this.Ha("ytp-subtitles-button-icon"))||
d.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}c=!0}MU(this.tooltip);c=c&&this.J.tb().getPlayerSize().width>=b;g.sG(this,c);this.J.Xa(this.element,c);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.w(g.QX,g.T);g.k=g.QX.prototype;
g.k.Ic=function(){var a=this.api.tb().getPlayerSize().width,b=this.S;this.api.W().ma&&(b=400);b=a>=b&&(!SX(this)||!g.aH(this.api.Tb(),64));g.sG(this,b);g.mu(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(b,!1);this.B&&(c-=a.airingStart);RX(this)&&(c-=this.Lb.startTimeMs/1E3);c=g.jH(c);this.C!==c&&(this.updateValue("currenttime",c),this.C=c);b=RX(this)?g.jH((this.Lb.endTimeMs-this.Lb.startTimeMs)/
1E3):g.jH(this.api.getDuration(b,!1));this.D!==b&&(this.updateValue("duration",b),this.D=b)}a=a.isAtLiveHead;!SX(this)||this.K===a&&this.G===this.isPremiere||(this.K=a,this.G=this.isPremiere,this.Ic(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.oe(this.isPremiere?"Premiere":"Live"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.j=g.LU(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Lb!==a;this.Lb=a;b&&PX(this)};
g.k.onLoopRangeChange=function(a){var b=this.Lb!==a;this.Lb=a;b&&(this.Ic(),PX(this))};
g.k.C9=function(){this.api.setLoopRange(null)};
g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.W().N("enable_topsoil_wta_for_halftime")||this.api.W().N("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Ic();PX(this)};
g.k.updateVideoData=function(a){this.ED=a.isLivePlayback&&!a.rb;this.B=VT(a);this.isPremiere=a.isPremiere;g.mu(this.element,"ytp-live",SX(this))};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.Ba=function(){this.j&&this.j();g.T.prototype.Ba.call(this)};g.w(fZa,g.T);g.k=fZa.prototype;g.k.lr=function(){var a=this.ub.Ng();this.C!==a&&(this.C=a,eZa(this,this.api.getVolume(),this.api.isMuted()))};
g.k.wT=function(a){g.sG(this,350<=a.width)};
g.k.K2=function(a){if(!a.defaultPrevented){var b=a.keyCode,c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.ne(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),a.preventDefault())}};
g.k.I2=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(0>b?-10:10)):this.api.setVolume(this.volume+g.ne(b/10,-10,10));a.preventDefault()};
g.k.e9=function(){TX(this,this.j,!0,this.B,this.ub.ym());this.ea=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.J2=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Gr(this.S).x;this.api.setVolume(100*g.ne((a-c/2)/(b-c),0,1))};
g.k.d9=function(){TX(this,this.j,!1,this.B,this.ub.ym());0===this.volume&&(this.api.mute(),this.api.setVolume(this.ea))};
g.k.onVolumeChange=function(a){eZa(this,a.volume,a.muted)};
g.k.UU=function(){TX(this,this.j,this.isDragging,this.B,this.ub.ym())};
g.k.Ba=function(){g.T.prototype.Ba.call(this);g.ku(this.K,"ytp-volume-slider-active")};g.w(g.UX,g.T);
g.UX.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).Sd,b=this.api.W();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.qa);g.sG(this,this.visible);this.api.Xa(this.element,this.visible&&this.ma);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",a));b.C&&(this.j&&(this.Qc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.iu(this.element,"no-link"));this.Nb()};
g.UX.prototype.onClick=function(a){this.api.N("web_player_log_click_before_generating_ve_conversion_params")&&this.api.wb(this.element);var b=this.api.W(),c=this.api.getVideoUrl(!g.kH(a),!1,!0,!0);if(g.eS(b)||g.mS(b)){var d={};g.eS(b)&&g.cU(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.Dl(c,g.FP(d,"emb_logo"))}g.QU(c,this.api,a);this.api.N("web_player_log_click_before_generating_ve_conversion_params")||this.api.wb(this.element)};
g.UX.prototype.Nb=function(){var a={I:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},X:[{I:"path",Bc:!0,T:"ytp-svg-fill",Y:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]};
if(g.mS(this.api.W())){var b=this.Ha("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{I:"svg",Y:{fill:"none",height:"24",width:"24"},X:[{I:"circle",Y:{cx:"12",cy:"12",fill:"red",r:"12"}},{I:"ellipse",Y:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{I:"path",Y:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{I:"svg",Y:{viewBox:"0 0 80 24"},X:[{I:"ellipse",Y:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{I:"ellipse",Y:{cx:"12.18",
cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{I:"path",Y:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09zM37.43 9.64c-.57 2.85-1.01 6.33-1.25 7.77h-.16c-.18-1.48-.62-4.94-1.22-7.75L33.31 2.67h-4.52v18.85h2.80V5.98l.27 1.45 2.85 14.08h2.80l2.80-14.08.3-1.45v15.54h2.80V2.67h-4.56l-1.43 6.96zM51.01 18.69c-.25.51-.81.87-1.36.87-.64 0-.90-.49-.90-1.70V7.75H45.54v10.29c0 2.54.85 3.70 2.75 3.70 1.29 0 2.33-.56 3.05-1.90h.07l.27 1.68h2.50V7.75h-3.19v10.94h.00zM60.39 13.19c-1.04-.74-1.69-1.23-1.69-2.31 0-.76.37-1.19 1.25-1.19.90 0 1.20.60 1.22 2.67l2.68-.11c.20-3.34-.92-4.74-3.87-4.74-2.73 0-4.07 1.19-4.07 3.63 0 2.22 1.11 3.23 2.92 4.56 1.55 1.16 2.45 1.82 2.45 2.76 0 .72-.46 1.21-1.27 1.21-.95 0-1.50-.87-1.36-2.40l-2.71.04c-.41 2.85.76 4.51 3.91 4.51 2.75 0 4.19-1.23 4.19-3.70-.00-2.24-1.16-3.14-3.66-4.94zM68.87 7.75h-3.05v13.77h3.06V7.75zM67.36 2.31c-1.18 0-1.73.42-1.73 1.91 0 1.52.55 1.90 1.73 1.90 1.20 0 1.73-.38 1.73-1.90 0-1.41-.53-1.91-1.73-1.91zM79.15 16.56l-2.80-.13c0 2.42-.27 3.21-1.22 3.21-.95 0-1.11-.87-1.11-3.73v-2.67c0-2.76.18-3.63 1.13-3.63.88 0 1.11.83 1.11 3.39l2.77-.17c.18-2.13-.09-3.59-.94-4.42-.62-.60-1.57-.89-2.89-.89-3.10 0-4.37 1.61-4.37 6.15v1.93c0 4.67 1.08 6.17 4.26 6.17 1.34 0 2.27-.27 2.89-.85.90-.81 1.24-2.20 1.18-4.34z",
fill:"#fff"}}]};g.mu(b,"ytp-youtube-music-logo-icon-only",c)}else g.tU(this.api)&&(a={I:"svg",Y:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},X:[{I:"path",Y:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z",
fill:"#fff"}}]});a.Y=Object.assign({},a.Y,{"aria-hidden":"true"});this.updateValue("logoSvg",a)};
g.UX.prototype.lc=function(a){g.T.prototype.lc.call(this,a);this.api.Xa(this.element,this.visible&&a)};g.w(hZa,g.ZK);g.k=hZa.prototype;g.k.df=function(){g.aH(this.J.Tb(),2)||(this.Tc.Ic(),this.Gj.Ic())};
g.k.On=function(){this.jL();this.nf.B?this.df():g.YX(this.Tc.tooltip)};
g.k.xw=function(){this.df();this.Af.start()};
g.k.jL=function(){var a=!this.J.W().B&&300>g.FYa(this.Tc)&&this.J.Tb().isPlaying()&&!!window.requestAnimationFrame,b=!a;this.nf.B||(a=b=!1);b?this.ma||(this.ma=this.V(this.J,"progresssync",this.df)):this.ma&&(this.Qc(this.ma),this.ma=null);a?this.Af.isActive()||this.Af.start():this.Af.stop()};
g.k.Nb=function(){var a=this.ub.Ng(),b=this.J.tb().getPlayerSize(),c=jZa(this),d=Math.max(b.width-2*c,100);if(this.fb!==b.width||this.eb!==a){this.fb=b.width;this.eb=a;var e=kZa(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.AX(this.Tc,c,e,a);this.ub.Ec().kL=e}c=this.B;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-lZa(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.maxHeight=e;c.oB();this.jL();this.J.W().N("html5_player_dynamic_bottom_gradient")&&g.YW(this.kb,b.height)};
g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.Ja.style.background=a.Sd?a.bp:"";g.sG(this.va,a.BK);this.qa&&aXa(this.qa,a.showSeekingControls);this.ea&&aXa(this.ea,a.showSeekingControls)};
g.k.Gb=function(){return this.C.element};g.w(mZa,BW);g.k=mZa.prototype;g.k.LI=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.Ta("innertubeCommand",this.onClickCommand),this.jE())};
g.k.jE=function(){this.enabled=!1;this.S.hide()};
g.k.onVideoDataChange=function(a,b){"dataloaded"===a&&nZa(this);a=[];var c,d,e,f;if(b=null==(f=g.S(null==(c=b.Jd)?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.suggestedActionsRenderer,pgb))?void 0:f.suggestedActions)for(c=g.u(b),d=c.next();!d.done;d=c.next())(d=g.S(d.value,qgb))&&g.S(d.trigger,ogb)&&a.push(d);if(0!==a.length){c=[];a=g.u(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=g.S(d.trigger,ogb))f=(f=d.title)?g.wG(f):"View Chapters",b=e.timeRangeStartMillis,
e=e.timeRangeEndMillis,null!=b&&null!=e&&d.tapCommand&&(c.push(new g.oK(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.J.xf(c)}};
g.k.cB=function(){return this.enabled};
g.k.Cg=function(){this.enabled?this.Ja.start():zW(this);this.Im()};
g.k.Ba=function(){nZa(this);BW.prototype.Ba.call(this)};var z3={},VX=(z3.CHANNEL_NAME="ytp-title-channel-name",z3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",z3.LINK="ytp-title-link",z3.SESSIONLINK="yt-uix-sessionlink",z3.SUBTEXT="ytp-title-subtext",z3.TEXT="ytp-title-text",z3.TITLE="ytp-title",z3);g.w(WX,g.T);WX.prototype.onClick=function(a){this.api.wb(this.element);var b=this.api.W(),c=this.api.getVideoUrl(!g.kH(a),!1,!0);g.eS(b)&&(b={},g.cU(this.api,"addEmbedsConversionTrackingParams",[b]),c=g.Dl(c,g.FP(b,"emb_title")));g.QU(c,this.api,a)};
WX.prototype.Sa=function(){var a=this.api.getVideoData(),b=this.api.W();this.updateValue("title",a.title);var c={I:"a",T:VX.CHANNEL_NAME,Y:{href:"{{channelLink}}",target:"_blank"},Aa:"{{channelName}}"};this.api.W().C&&(c={I:"span",T:VX.CHANNEL_NAME,Aa:"{{channelName}}",Y:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);oZa(this);2===this.api.getPresentingPlayerType()&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.wc&&c.profilePicture?(this.updateValue("channelLink",
c.wc),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):oZa(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.El;g.mu(this.link,VX.FULLERSCREEN_LINK,c);b.Ca||!a.videoId||c||a.Sd&&b.qa||b.C?this.j&&(this.updateValue("url",null),this.Qc(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.V(this.link,"click",this.onClick)));b.C&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.eS(b)?a.expandedTitle:
a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.w(g.XX,g.T);g.k=g.XX.prototype;g.k.ZQ=function(a){if(null!=this.type)if(a)switch(this.type){case 3:case 2:tZa(this);this.K.show();break;default:this.K.show()}else this.K.hide();this.ea=a};
g.k.dY=function(a,b){a<=this.D&&this.D<=b&&(a=this.D,this.D=NaN,qZa(this,a))};
g.k.r6=function(){UPa(this.B,this.D,this.S*this.scale)};
g.k.Do=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.va);a.addEventListener("mouseover",this.G);a.removeEventListener("blur",this.va);a.addEventListener("focus",this.G);uZa(this);break;case 3:uZa(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.dY,this),this.B=null),this.api.removeEventListener("videoready",this.Fa),this.Ja.stop()}this.type=null;this.ea&&this.K.hide()};
g.k.Hk=function(){if(this.j)for(var a=0;a<arguments.length;a++)g.Af(arguments[a],this.j)&&this.Do()};
g.k.Ba=function(){null!=this.type&&this.Do();this.B&&this.B.dispose();g.T.prototype.Ba.call(this)};g.w(wZa,g.T);g.k=wZa.prototype;g.k.WB=function(){this.visible=xZa(this);g.sG(this,this.visible);this.icon&&zZa(this,this.icon);this.J.Xa(this.element,this.visible&&this.ma)};
g.k.Se=function(){return this.J.getVideoData().videoId};
g.k.onClick=function(){this.J.wb(this.element);var a=this.J.W(),b=this.Se();a.va?vZa(this):yZa(this,b)};
g.k.zw=function(){this.isRequestPending=this.j=!1;this.Sa(2);this.WB()};
g.k.Sa=function(a,b){var c=this.J.W();zZa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.vK("Added as $USER_NAME",a):g.vK("Watch later as $USER_NAME",a),image:OOa(c)})):this.update({title:"Watch Later",image:null});MU(this.tooltip)};
g.k.lc=function(a){g.T.prototype.lc.call(this,a);this.J.Xa(this.element,this.visible&&a)};g.w(g.ZX,g.bW);g.k=g.ZX.prototype;g.k.Ec=function(){return this.tooltip};
g.k.FN=function(){return this.Zg};
g.k.mq=function(a,b){b?this.Xo=a:this.Xo=null;this.Gl()};
g.k.Zy=function(a,b){if(b)this.Tt.push(a);else for(b=this.Tt.length;0<=b;b--)if(this.Tt[b]===a){this.Tt.splice(b,1);break}QV(this.nf,64,0<this.Tt.length)};
g.k.nu=function(){this.api.Ek()&&this.api.Ro();return!!this.Xo||AZa(this)||g.bW.prototype.nu.call(this)};
g.k.XA=aa(37);g.k.Hr=aa(35);g.k.Gr=aa(33);g.k.Gl=function(){var a=!this.nu(),b=a&&this.api.Ek()&&!g.aH(this.api.Tb(),2)&&!(this.api.getVideoData().Sd&&this.api.W().qa)&&!this.api.W().C&&!g.tU(this.api),c=this.Pq&&g.sU(this.api)&&g.aH(this.api.Tb(),128);a||c?(this.CR.show(),this.DR.show()):(this.CR.hide(),this.DR.hide(),this.tooltip.Hk(this.Vh.element));b?this.wh.zd():this.wh.Qb();this.Zg&&iZa(this.Zg,this.XP||!a);this.api.N("web_player_hide_overflow_button_if_empty_menu")&&BZa(this);g.bW.prototype.Gl.call(this)};
g.k.Hw=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Jr(a),h=d||this.Zg&&g.Af(this.Zg.Gb(),b),l=d=null;null!=c&&h||(d=g.Jr(b),l=g.Hr(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Zg,d=jZa(b),l=kZa(b),h=this.api.tb().getPlayerSize().height,c=g.ne(c,d,d+l-f.width),f=h-lZa(b)-f.height):g.Af(this.Vh.element,b)?(b=this.api.tb().getPlayerSize().width,c=g.ne(c,12,b-f.width-12),f=this.Ng()?this.pM:this.oM,"gvn"===this.api.W().playerStyle&&(f+=
20),this.Pq&&(f-=this.Ng()?26:18)):(b=this.api.tb().getPlayerSize(),c=g.ne(c,12,b.width-f.width-12),f=l.y>(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
g.k.On=function(a){a&&(this.tooltip.Hk(this.Vh.element),this.Zg&&this.tooltip.Hk(this.Zg.Gb()));this.ZH&&(g.mu(this.contextMenu.element,"ytp-autohide",a),g.mu(this.contextMenu.element,"ytp-autohide-active",!0));g.bW.prototype.On.call(this,a)};
g.k.kP=function(){g.bW.prototype.kP.call(this);this.ZH&&(g.mu(this.contextMenu.element,"ytp-autohide-active",!1),this.ZH&&(this.contextMenu.hide(),this.Sh&&this.Sh.hide()))};
g.k.Pk=function(a,b){var c=this.api.tb().getPlayerSize();c=new g.vr(0,0,c.width,c.height);if(a||this.nf.B&&!this.nu()){if(this.api.W().Xl||b)a=this.Ng()?this.pM:this.oM,c.top+=a,c.height-=a;this.Zg&&(c.height-=lZa(this.Zg))}return c};
g.k.lr=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Full screen"),this.api.W().externalFullscreen||(b.parentElement.insertBefore(this.mH.element,b),b.parentElement.insertBefore(this.lH.element,b.nextSibling))):g.TF(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.mH.detach(),this.lH.detach());this.Nb();this.Xp()};
g.k.Ng=function(){var a=this.api.W();return this.api.isFullscreen()&&!a.ma||!1};
g.k.showControls=function(a){this.MG=!a;this.Gl()};
g.k.Nb=function(){var a=this.Ng();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.mu(this.contextMenu.element,"ytp-big-mode",a);this.Gl();this.api.N("web_player_hide_overflow_button_if_empty_menu")||BZa(this);this.Xp();var b=g.tU(this.api);b&&a?(a=(this.api.tb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.yr(this.Vh.element,"padding-left",a+"px"),g.yr(this.Vh.element,"padding-right",a+"px")):b&&(g.yr(this.Vh.element,"padding-left",""),g.yr(this.Vh.element,"padding-right",""));g.bW.prototype.Nb.call(this)};
g.k.tN=function(){if(AZa(this)&&!g.sU(this.api))return!1;var a=this.api.getVideoData();return!g.eS(this.api.W())||2===this.api.getPresentingPlayerType()||!this.Jg||((a=this.Jg||a.Jg)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.S(a.videoDetails,WQa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.bW.prototype.tN.call(this):!1};
g.k.Xp=function(){g.bW.prototype.Xp.call(this);this.api.Xa(this.title.element,!!this.Dn);this.CA&&this.CA.lc(!!this.Dn);this.channelAvatar.lc(!!this.Dn);this.overflowButton&&this.overflowButton.lc(this.zg()&&!!this.Dn);this.shareButton&&this.shareButton.lc(!this.zg()&&!!this.Dn);this.zo&&this.zo.lc(!this.zg()&&!!this.Dn);this.searchButton&&this.searchButton.lc(!this.zg()&&!!this.Dn);this.Li&&this.Li.lc(!this.zg()&&!!this.Dn);if(!this.Dn){this.tooltip.Hk(this.Vh.element);for(var a=0;a<this.CF.length;a++){var b=
this.CF[a];b.qj()&&b.Qb()}}};
g.k.Ac=function(a){this.Zg&&iZa(this.Zg,this.nu());this.Gl();g.bW.prototype.Ac.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){return this.Wq?this.Wq.handleGlobalKeyDown(a,b,c,d,e,f,h,l):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.Wq?this.Wq.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.nm=function(){if(this.contextMenu.Ib)return this.contextMenu.Qb(),!0;if(this.Tt.length)return this.Tt[this.Tt.length-1].Qb(),!0;if(this.Xo)return this.Xo.Qb(),!0;this.Zg&&this.tooltip.Hk(this.Zg.Gb());this.rh&&this.tooltip.Hk(this.rh.element);return g.bW.prototype.nm.call(this)};
g.k.UJ=function(a,b){this.QO=b;this.Zy(a,b);this.C_()};
g.k.C_=function(){var a=this.QO||this.contextMenu.qj();this.bM!==a&&(this.bM=a,this.api.Ta("onAutonavPauseRequest",this.bM))};
g.k.S4=function(){CZa(this,this.api.getRootNode(),!0).focus()};
g.k.T4=function(){CZa(this,this.api.getRootNode(),!1).focus()};
g.k.qn=function(){return this.Zg&&this.Zg.B};
g.k.Vp=function(){this.nf.Vp()};
g.k.SH=function(){this.hd.hide()};
g.k.Ww=function(a){this.hd.Ww(!g.WL(a))};
g.k.YE=function(a,b,c,d){this.xv.YE(a,b,c,d)};
g.k.XE=function(a,b){TVa(this.xv,a,b)};
g.k.x7=function(){DZa(this,!0)};
g.k.zw=function(){BZa(this)};
g.k.V7=function(a){DZa(this,!1,a)};
g.k.qH=function(){return this.contextMenu};
g.k.By=function(a){var b;if(null!=(b=this.Zg)){for(var c=Number(a.element.getAttribute("data-priority"))||0,d=0,e=g.u(b.j.element.children),f=e.next();!(f.done||c<(Number(f.value.getAttribute("data-priority"))||0));f=e.next())d++;a.Ga(b.j.element,d)}};
g.k.Rs=function(){var a,b=null==(a=this.Zg)?void 0:a.Tc;if(b){var c;(null==(c=b.B)?0:c.isEnabled)&&b.Rs()}};g.w(g.$X,g.yV);g.$X.prototype.xl=function(){return!1};
g.$X.prototype.create=function(){var a=this.player.W();g.qH(a)&&a.B?this.chrome=new g.bW(this.player):this.chrome=new g.ZX(this.player);g.L(this,this.chrome);this.chrome.init();this.player.Fg("ux")};
g.$X.prototype.pH=function(){return this.chrome};g.w(aY,g.J);aY.prototype.C=function(a,b){if(b){b=b instanceof g.ZP?b:bY(this,b);var c;(null==(c=this.j.get(a))?void 0:aQ(c.location))!==aQ(b)&&this.j.set(a,new LZa(b,a))}else this.j.delete(a)};
aY.prototype.load=function(){var a=this,b,c,d,e,f,h,l,m,n,p;return g.H(function(q){switch(q.j){case 1:b=a.j.get(0);g.za(q,2);var r;if(r=b&&!a.B)r=aQ(b.location),r=a.B===dY(r);if(r){q.Ma(4);break}return g.z(q,JZa(a,a.B?2:0),5);case 5:if(c=q.B)a.C(0,c),lLa(c)&&a.C(1,cQ(c));case 4:g.Ba(q,3);break;case 2:d=g.Ca(q);g.UF(d);if(!a.B){q.Ma(3);break}a.B=!1;return g.z(q,a.load(),7);case 7:return q.return();case 3:if(!a.Z.experiments.ob("html5_onesie_probe_ec_hosts")){q.Ma(0);break}g.za(q,9);e=a;f=e.C;h=3;return g.z(q,
JZa(a,1),11);case 11:return f.call(e,h,q.B),l=a,m=l.C,n=4,g.z(q,JZa(a,2),12);case 12:m.call(l,n,q.B);g.Ba(q,0);break;case 9:p=g.Ca(q),g.UF(p),g.ya(q)}})};
aY.prototype.S=function(){var a=this,b,c;return g.H(function(d){g.bu(a.ma);b=g.JJ(a.Z.experiments,"html5_onesie_prewarm_max_lact_ms");if(dF()>=b)return d.return();(c=a.j.get(0))&&HZa(a,c);g.ya(d)})};
var EZa={qWa:0,IYa:1,wXa:2,JYa:3,iqa:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};g.eY.prototype.info=function(){};
var PZa=new Map;fY.prototype.vk=function(){if(!this.gf.length)return[];var a=this.gf;this.gf=[];this.C=g.yb(a).info;return a};
fY.prototype.FE=function(){return this.gf};g.w(hY,g.J);g.k=hY.prototype;g.k.zq=function(){return Array.from(this.Vc.keys())};
g.k.Vw=function(a){a=this.Vc.get(a);var b=a.gf;a.Es+=b.totalLength;a.gf=new wO;return b};
g.k.jh=function(a){return this.Vc.get(a).jh};
g.k.ri=function(a){return this.Vc.get(a).ri};
g.k.tA=function(a,b,c){this.Vc.get(a)||this.Vc.set(a,{gf:new wO,er:[],Es:0,bytesReceived:0,LW:0,sQ:!1,jh:!1,ri:!1,Ui:b,pZ:[],ib:[],xI:[],kG:!1,nw:new Map,cK:new Map,XD:[]});b=this.Vc.get(a);if(this.manifest){var d=ZZa(this,a,c);YZa(this,c.Lq,a,b,d)}else c.Fn?b.LW=c.Cr:b.xI.push(c),b.pZ.push(c)};
g.k.un=function(a){var b;return(null==(b=this.Vc.get(a))?void 0:b.ib)||[]};
g.k.mA=function(){for(var a=g.u(this.Vc.values()),b=a.next();!b.done;b=a.next())b=b.value,b.sQ&&(b.df&&b.df(),b.sQ=!1)};
g.k.rr=function(a,b){b=this.Vc.get(b);a_a&&(b.nw.get(a).Gt=!0);iY&&b.er.push({data:new wO([]),rC:0,Gt:!0});b&&!b.ri&&(b.ri=!0)};
g.k.vk=function(a){var b;if(null==(b=this.Uk)?0:b.Kd){var c=this.Vc.get(a);if(c){b=g.u(c.nw);for(var d=b.next();!d.done;d=b.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;var f=c.cK.get(d);if(RQ(f[0])){if(!e.Gt)continue;var h=e.data,l=0,m=[];f=g.u(f);for(var n=f.next();!n.done;n=f.next()){n=n.value;var p=n.B,q=yO(h,l,p);l+=p;m.push(new hR(n,q))}c.XD.push.apply(c.XD,g.pa(m))}else if(!f[0].range||0<e.data.totalLength)h=void 0,l=f[0],m=e.data,l.range||(h=e.Gt),h=new hR(gMa(l,l.dc+e.rC,
m.totalLength,h),m),e.rC+=h.info.B,c.XD.push(h);c.nw.get(d).data=new wO;e.Gt&&c.nw.delete(d)}}a=this.Vc.get(a);if(!a)return[];c=a.XD;a.XD=[];b=g.u(c);for(d=b.next();!d.done;d=b.next())a.Es+=d.value.info.B;return c||[]}b=null==(c=this.Vc.get(a))?void 0:c.sf;if(!b)return[];this.yn(a,b);return b.vk()};
g.k.il=function(a){var b;if(null==(b=this.Uk)?0:b.Kd)return kY(this,a);var c,d,e;return!!(null==(d=null==(c=this.Vc.get(a))?void 0:c.sf)?0:null==(e=d.FE())?0:e.length)||kY(this,a)};
g.k.yn=function(a,b){for(;kY(this,a);)if(iY){var c=this.Vc.get(a),d=c.er.shift();c.Es+=(null==d?void 0:d.data.totalLength)||0;c=d;gY(b,c.data,c.Gt)}else c=this.Vw(a),d=a,d=this.Vc.get(d).jh&&!WZa(this,d),gY(b,c,d&&XZa(this,a))};
g.k.Ba=function(){g.J.prototype.Ba.call(this);for(var a=g.u(this.Vc.keys()),b=a.next();!b.done;b=a.next())SZa(this,b.value);this.Vc.clear()};
var iY=!1,TZa=!1,a_a=!1;var mY=[],U9a=!1;g.d0=Md(function(){var a="";try{var b=g.lf("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.w(nY,g.J);nY.prototype.C=function(){null!=this.j&&this.app.getVideoData()!==this.j&&iT(this.j)&&x$a(this.app,this.j,void 0,void 0,this.B)};
nY.prototype.Ba=function(){this.j=null;g.J.prototype.Ba.call(this)};g.w(g.oY,OL);g.k=g.oY.prototype;g.k.isView=function(){return!0};
g.k.LQ=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Kh(),c=yL(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Gv=function(){return BL(this.mediaElement.Gv(),this.start,this.end)};
g.k.Kh=function(){return BL(this.mediaElement.Kh(),this.start,this.end)};
g.k.jD=function(){return BL(this.mediaElement.jD(),this.start,this.end)};
g.k.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
g.k.setCurrentTime=function(a){this.mediaElement.setCurrentTime(a+this.start)};
g.k.getDuration=function(){return isFinite(this.end)&&!this.j?this.end-this.start:this.mediaElement.getDuration()-this.start};
g.k.play=function(){if(this.LQ()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(a){}}return this.mediaElement.play()};
g.k.uc=function(){var a=OL.prototype.uc.call(this);a.view=this.start+"-"+this.end;return a};
g.k.addEventListener=function(a,b){this.mediaElement.addEventListener(a,b)};
g.k.removeEventListener=function(a,b){this.mediaElement.removeEventListener(a,b)};
g.k.dG=function(){return this.mediaElement.dG()};
g.k.wy=function(a){this.mediaElement.wy(a)};
g.k.jt=function(){return this.mediaElement.jt()};
g.k.playVideo=function(){return this.mediaElement.playVideo()};
g.k.LM=function(){this.mediaElement.LM()};
g.k.HM=function(){this.mediaElement.HM()};
g.k.Mu=function(){return this.mediaElement.Mu()};
g.k.Gb=function(){return this.mediaElement.Gb()};
g.k.Lf=function(){return this.mediaElement.Lf()};
g.k.fG=function(a){this.mediaElement.fG(a)};
g.k.FJ=function(){this.mediaElement.FJ()};
g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.k.Zs=function(){return this.mediaElement.Zs()};
g.k.setLoop=function(a){this.mediaElement.setLoop(a)};
g.k.canPlayType=function(a,b){return this.mediaElement.canPlayType(a,b)};
g.k.isPaused=function(){return this.mediaElement.isPaused()};
g.k.Wg=function(){return this.mediaElement.Wg()};
g.k.ri=function(){return this.mediaElement.ri()};
g.k.BH=function(){return this.mediaElement.BH()};
g.k.WA=function(a){this.mediaElement.WA(a)};
g.k.eG=function(){return this.mediaElement.eG()};
g.k.load=function(){this.mediaElement.load()};
g.k.pause=function(){this.mediaElement.pause()};
g.k.yk=function(){return this.mediaElement.yk()};
g.k.CH=function(){return this.mediaElement.CH()};
g.k.rg=function(){return this.mediaElement.rg()};
g.k.yf=function(){return this.mediaElement.yf()};
g.k.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.k.Nh=function(){return this.mediaElement.Nh()};
g.k.pu=function(){return this.mediaElement.pu()};
g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.k.kt=function(){return this.mediaElement.kt()};
g.k.getSize=function(){return this.mediaElement.getSize()};
g.k.setSize=function(a){this.mediaElement.setSize(a)};
g.k.getVolume=function(){return this.mediaElement.getVolume()};
g.k.setVolume=function(a){this.mediaElement.setVolume(a)};
g.k.setAttribute=function(a,b){this.mediaElement.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.mediaElement.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.mediaElement.hasAttribute(a)};
g.k.iC=aa(20);g.k.xF=aa(22);g.k.yF=aa(24);g.k.Ky=aa(26);g.k.MC=function(){return this.mediaElement.MC()};
g.k.Bs=function(a){this.mediaElement.Bs(a)};
g.k.lD=function(a){return this.mediaElement.lD(a)};
g.k.lO=function(){return this.mediaElement.lO()};
g.k.stopVideo=function(){this.mediaElement.stopVideo()};
g.k.QM=function(a){this.mediaElement.QM(a)};
g.k.audioTracks=function(){return this.mediaElement.audioTracks()};g.w(h_a,g.J);g.k=h_a.prototype;g.k.getStatus=function(){return this.status};
g.k.Su=function(){var a=this.j.getVideoData(),b=this.B.getVideoData(),c;if((c=a.C)&&!(c=!a.j)){c=a.j;for(var d=!1,e=!1,f=g.u(Object.values(c.j)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.isLoaded()&&(d=!0),h.info.video&&h.index.isLoaded()&&(e=!0);c.j["0"]&&(e=!0);c=d&&e}if(c)if(this.j.zf()){f=e_a(this.policy,this.j,this.B,this.Hm);h=i_a(this);c=h.l4;e=h.IX;d=h.fV;h=h.GX;if(!this.S){var l=1E3*this.B.Mk(),m=this.j.Mk();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=0);a=a.isAd();this.B.SE(l,
m,a);this.S=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Rg(b,f)):2===this.status.status?q_a(this):(a=this.j.jt())&&LL(a)&&(!IL(a)&&g.BC()?this.Rg("mse_closed"):b.j&&UP(b.j)&&a.B&&!a.B.vH()?this.Rg("encr_upgrade"):(b=this.j.zf(),b.ri()?this.Rg("elem_ended"):0>e?this.Rg("next_player_future"):(this.K=d,this.currentVideoDuration=d-c,this.C=VAa(a,c,d,!0),this.D=VAa(a,e,h,!1),a=this.B.getVideoData().clientPlaybackNonce,this.j.ya("gaplessPrep",{cpn:a}),n_a(this.j,this.C),this.j.setMediaElement(j_a(b,
c,d,!this.j.getVideoData().isAd())),qY(this,2),q_a(this))))}else this.Rg("no-elem")};
g.k.Ox=function(a){var b=a===p_a(this).fR,c=b?this.C.j:this.C.B;b=b?this.D.j:this.D.B;if(c.isActive&&!b.isActive){var d=this.K;xL(a.Jf(),d-.01)&&(qY(this,4),c.isActive=!1,c.LF=c.LF||c.isActive,(1===this.G?this.j:this.B).ya("sbh",{}),b.isActive=!0,b.LF=b.LF||b.isActive);a=this.D.B;this.D.j.isActive&&a.isActive&&(qY(this,5),0!==this.G&&(this.j.getVideoData().bU=!0,this.qe.setLoopRange({startTimeMs:0,endTimeMs:1E3*this.currentVideoDuration-g.JJ(this.qe.W().experiments,"html5_gapless_loop_seek_offset_in_milli")})))}};
g.k.iY=function(){4<=this.status.status&&6>this.status.status&&this.Rg("player-reload-after-handoff")};
g.k.Rg=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&6!==this.status.status){var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.B){var d=this.B.getVideoData().clientPlaybackNonce;this.j.Ae(new WK("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.Hm,msg:a})));b=this.j;b.videoData.ea=!1;c&&Y_(b);b.Da&&K_(b.Da)}this.Up.reject(a);this.dispose()}};
g.k.Dt=function(){return 4===this.status.status};
g.k.Ba=function(){o_a(this);this.j.unsubscribe("newelementrequired",this.iY,this);if(this.C){var a=this.C.B;this.C.j.Zd.unsubscribe("updateend",this.Ox,this);a.Zd.unsubscribe("updateend",this.Ox,this)}g.J.prototype.Ba.call(this)};
g.k.Xd=function(a){g.cH(a,128)&&this.Rg("player-error-event")};g.w(sY,g.J);sY.prototype.clearQueue=function(){this.D&&this.D.reject("Queue cleared");tY(this)};
sY.prototype.Yv=function(){return!this.j};
sY.prototype.Dt=function(){var a;return(null==(a=this.C)?void 0:a.Dt())||!1};
sY.prototype.Ba=function(){tY(this);g.J.prototype.Ba.call(this)};g.w(A_a,g.lG);g.k=A_a.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:w_a()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.Em=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Cg())};
g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Cg())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Cg())};
g.k.YA=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Cg())};
g.k.Nh=function(){return this.j};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.lz=function(){return this.fullscreen};
g.k.yg=function(){return this.B};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return w_a()};
g.k.Jz=function(){return this.pictureInPicture};
g.k.Hz=function(){return!1};
g.k.Cg=function(){this.ra("visibilitychange");var a=this.getVisibilityState(this.Nh(),this.isFullscreen(),this.yg(),this.isInline(),this.Jz(),this.Hz());a!==this.D&&this.ra("visibilitystatechange");this.D=a};
g.k.Ba=function(){z_a(this.C);g.lG.prototype.Ba.call(this)};g.w(xY,g.J);xY.prototype.Ri=function(){return this.Kc||0};
xY.prototype.jz=function(){return this.C||0};
xY.prototype.Of=function(){for(;this.segments.length;){var a=void 0;null==(a=this.segments.pop())||a.dispose()}this.j.clear()};
xY.prototype.Ba=function(){this.Of()};
g.w(yY,g.J);g.k=yY.prototype;g.k.Ri=function(){return this.Kc};
g.k.jz=function(){return this.B};
g.k.getType=function(){return this.type};
g.k.getVideoData=function(){return this.videoData};
g.k.pF=function(a){RQa(a);this.videoData=a};g.w(g.AY,g.J);g.k=g.AY.prototype;
g.k.onCueRangeEnter=function(a){this.Ya.push(a);var b=a.getId(),c=""===b;this.Ub.add(a.B);c||this.xa.ya("sdai",{enterAdCueRange:1});if(this.kb&&!this.j){this.kb=!1;if(!c){var d=this.G.get(b);d&&(c=this.xa.getCurrentTime(),FY(this,{Xe:a,isAd:!0,Qq:!0,Hh:c,adCpn:b},{isAd:!1,Qq:!1,Hh:c}),this.api.ra("serverstitchedvideochange",d.fd,d.As),this.xa.ya("sdai",DY("midab",d)),this.C=1)}this.S=!1}else if(this.j){if(this.j.Qq)this.xa.ya("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Hh,
cpn:b,currentTime:this.xa.getCurrentTime()}),d=this.xa.getCurrentTime(),a={Xe:a,isAd:!c,Qq:!0,Hh:d,adCpn:b},b={Xe:this.j.Xe,isAd:this.j.isAd,Qq:!1,Hh:d,adCpn:this.j.adCpn},this.j.Xe&&this.Ub.delete(this.j.Xe.B),FY(this,a,b);else{if(this.j.Xe===a){this.xa.ya("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Hh,cpn:b,currentTime:this.xa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.xa.ya("sdai",{dchtsc:b});
this.j=void 0;return}a={Xe:a,isAd:!c,Qq:!0,Hh:this.xa.getCurrentTime(),adCpn:b};FY(this,a,this.j)}this.j=void 0;this.S=!1}else this.j={Xe:a,isAd:!c,Qq:!0,Hh:this.xa.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){if(this.Ub.has(a.B)){this.Ub.delete(a.B);this.Ya=this.Ya.filter(function(d){return d!==a});
this.kb&&(this.S=this.kb=!1,this.xa.ya("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.Qq){if(this.j.Xe===a){this.xa.ya("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.Hh,cpn:b,currentTime:this.xa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.xa.ya("sdai",{dchtsc:b});this.j=void 0;return}b={Xe:a,isAd:!c,Qq:!1,Hh:this.xa.getCurrentTime(),adCpn:b};FY(this,this.j,b)}else this.xa.ya("sdai",
{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Hh,upcomingCpn:b,contentCpn:this.xa.getVideoData().clientPlaybackNonce,currentTime:this.xa.getCurrentTime()});this.j=void 0;this.S=!1}else this.j={Xe:a,isAd:!c,Qq:!1,Hh:this.xa.getCurrentTime(),adCpn:b}}else this.xa.ya("sdai",{ignore_single_exit:1})};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.S=!0;if(void 0===b?0:b)D_a(this,a);else{b=this.api.Gd();var d=b===this.Cb?this.vc:null;HY(this,!1);this.Ad=a;null!=c&&this.Jc.start(c);b&&(this.vc=d||b.getPlayerState(),C9a(b),this.Cb=b)}};
g.k.Ba=function(){HY(this,!1);Q_a(this);R_a(this);g.J.prototype.Ba.call(this)};
g.k.eR=function(a){this.Td=a;this.xa.ya("sdai",{swebm:a})};
g.k.Rk=function(a,b,c){if(c&&b){var d=this.Ca.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.ZP(c);this.eb&&this.xa.ya("sdai",{hdlredir:1,itag:b,seg:a,hostport:aQ(c)});d.locations.set(e,c)}}};
g.k.ot=function(a,b,c,d,e,f){var h=3===d,l=T_a(this,a,b,d,c,f);if(!l)return KY(this,b,h),l=g.S_a(this,b)?"undec":"ncp",this.xa.ya("sdai",{gvprp:l,mt:a,seg:b,tt:d,itag:c,ce:f}),null;h||this.Ca.set(b,l);a=l.Rm;var m;d=(null==(m=JY(this,b-1,d,e))?void 0:m.Ns)||"";""===d&&this.xa.ya("sdai",{eds:1});m=RR(l.ssdaiAdsConfig||"")||void 0;c=this.xa.getVideoData();var n;e=(null==(n=c.B)?void 0:n.containerType)||0;n=c.SU[e];b=l.Yw&&b>=l.Yw?l.Yw:void 0;return{TA:{ML:a?X_a(this,a):[],H3:m,Ns:d,HZ:b,Gaa:Le(n.split(";")[0]),
Haa:n.split(";")[1]||""}}};
g.k.iz=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]),l=3===d;a=T_a(this,a,b,d,c,f);this.eb&&this.xa.ya("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return KY(this,b,l),null;a.locations||(a.locations=new Map);if(!a.locations.has(h)){var m,n;f=null==(m=a.videoData.getPlayerResponse())?void 0:null==(n=m.streamingData)?void 0:n.adaptiveFormats;if(!f)return this.xa.ya("sdai",{gdu:"noadpfmts",seg:b,itag:h}),KY(this,b,l),null;m=f.find(function(x){return x.itag===h});
if(!m||!m.url){var p=a.videoData.videoId;a=[];d=g.u(f);for(var q=d.next();!q.done;q=d.next())a.push(q.value.itag);this.xa.ya("sdai",{gdu:"nofmt",seg:b,vid:p,itag:h,fullitag:c,itags:a.join(",")});KY(this,b,l);return null}a.locations.set(h,new g.ZP(m.url,!0))}f=a.locations.get(h);if(!f)return this.xa.ya("sdai",{gdu:"nourl",seg:b,itag:h}),KY(this,b,l),null;f=new KQ(f);this.Td&&(f.get("dvc")?this.xa.ya("sdai",{dvc:f.get("dvc")||""}):f.set("dvc","webm"));var r;(e=null==(r=JY(this,b-1,d,e))?void 0:r.Ns)&&
f.set("daistate",e);a.Yw&&b>=a.Yw&&f.set("skipsq",""+a.Yw);(e=this.xa.getVideoData().clientPlaybackNonce)&&f.set("cpn",e);r=[];a.Rm&&(r=X_a(this,a.Rm),0<r.length&&f.set("acpns",r.join(",")));l||this.Ca.set(b,a);l=null;l=f.get("aids");var t;if(((null==(q=l)?void 0:null==(t=q.split(","))?void 0:t.length)||0)!==r.length)if(a.Rm){var v;this.xa.ya("sdai",{acpns_aids_nm:1,ids:Z_a(this,a.Rm).join("_"),acpns:r.join("_"),aids:null==(v=l)?void 0:v.replace(/,/g,"_"),cpn:e,trackType:d})}else this.xa.ya("sdai",
{acpns_aids_nm:"noAdBreakId",cpn:e});d=f.jf();2048<(null==d?void 0:d.length)&&this.xa.ya("sdai",{urltoolong:1,sq:b,itag:h,len:d.length});this.eb&&(d&&(t=a.cpn,q=a.Rm,a0a(this,t,q),q&&!this.Le.has(q)&&(t=Y_a(this,t,q),v=$_a(this,q),this.xa.ya("sdai",{iofa:t}),this.xa.ya("sdai",{noawnzd:v-t}),this.xa.ya("sdai",{acpns:r.join("."),aids:null==(p=l)?void 0:p.replace(/,/g,".")}),this.Le.add(q))),this.xa.ya("sdai",{gdu:"v",seg:b,itag:c,ast:a.Kc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));
return d};
g.k.jF=function(a,b,c){var d=IY(this,a,c);return(d=d?(d.Kc+d.durationMs)/1E3:0)&&b>d?(this.uu(a,c,!0),this.xa.seekTo(d),!0):!1};
g.k.uu=function(a,b,c){c=void 0===c?!1:c;if(a=IY(this,a,b)){var d=a.Rm;if(d){this.xa.ya("sdai",{skipadonsq:b,sts:c,abid:d,acpn:a.cpn,avid:a.videoData.videoId});c=this.qa.get(d);if(!c)return;c=g.u(c);for(d=c.next();!d.done;d=c.next())d.value.Yw=b}this.K=a.cpn;U_a(this)}};
g.k.OQ=function(){for(var a=g.u(this.ea),b=a.next();!b.done;b=a.next())b.value.Yw=NaN;U_a(this);this.xa.ya("sdai",{rsac:"resetSkipAd",sac:this.K});this.K=""};
g.k.EF=aa(39);
g.k.MP=function(a,b,c,d,e,f,h,l,m){m&&(h?this.fb.set(a,{Ns:m,yy:l}):this.Oa.set(a,{Ns:m,yy:l}));if(h){if(d.length&&e.length)for(this.K&&this.K===d[0]&&this.xa.ya("sdai",{skipfail:1,sq:a,acpn:this.K}),a=b+this.Eq(),h=0;h<d.length;h++)if(m=d[h],l=a,a=l+e[h],m=this.G.get(m))l-=f[h],m.As=null!=m.As?Math.min(m.As,l):l;if(!zY(this))if(d.length&&e.length)for(b=1E3*(b+this.Eq()),c=0;c<d.length;c++)if(a=d[c],h=1E3*e[c],a===this.xa.getVideoData().clientPlaybackNonce)W_a(this,b,b+h,!1),b+=h;else if(this.Ud.has(a)||(this.xa.ya("sdai",
{adCpnFromEmsg:1}),this.Ud.add(a)),l=0,this.Z.N("html5_apply_start_time_within_ads_for_ssdai_transitions")&&c<f.length&&(l=1E3*f[c]),(m=this.D.get(a))&&m.start<=b&&m.end>=b+h)b=m.end;else{var n=!1;m?(b<m.start?m.start=b-l:m.end<b+h&&(m.end=b+h),this.Z.N("html5_apply_start_time_within_ads_for_ssdai_transitions")&&this.xa.Mi.Lm()):(m=K_a(b-l,b+h,a),this.D.set(a,m),this.xa.ya("sdai",{newAdCR:1,cpn:a,startTime:m.start,endTime:m.end}),n=!0);b=m.end;W_a(this,m.start,m.end,!0);if(n)for(this.xa.addCueRange(m),
a=this.xa.OC("serverstitchedcuerange",36E5),a=g.u(a),h=a.next();!h.done;h=a.next())this.D.delete(h.value.getId())}else 5!==c&&4!==c||W_a(this,1E3*(b+this.Eq()),1E3*(b+this.Eq())+5E3,!1)}};
g.k.YC=aa(41);g.k.Eq=function(){return this.xa.Eq()};
g.k.TD=function(a){this.xa.ya("timelineerror",{e:a})};
g.k.pD=function(a){this.Ja&&this.Fa&&this.Pa.push(this.Fa);a&&this.Fa&&this.qd.push(this.Fa);this.Fa=null;this.xa.pD(a)};
g.k.JH=function(a){if(this.kq||a.identifier&&this.We.has(a.identifier))this.eb&&this.xa.ya("sdai",{startnoad:a.identifier}),CY(this);else if(Nr(this.Pa,function(c){return c.identifier===a.identifier}))this.xa.ya("sdai",{timedoutcp:1}),this.ma.start(0);
else if(Nr(this.qd,function(c){return c.identifier===a.identifier}))this.xa.ya("sdai",{fetchedcp:1}),CY(this);
else if(this.ma.isActive()){var b;this.xa.ya("sdai",{racingcp:(null==(b=this.Fa)?void 0:b.identifier)+"_"+a.identifier})}else this.Bd=(new Date).getTime()/1E3,this.eb&&this.xa.ya("sdai",{adf:1}),(b=g.JJ(this.Z.experiments,"html5_ssdai_adfetch_dynamic_timeout_ms")||0)&&"predictStart"===a.event&&(b-=a.j),this.wc=Math.max(b,g.JJ(this.Z.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4),this.Ja=!1,this.ma.start(this.wc),this.Fa=a,this.Oa.clear(),this.fb.clear(),this.Va.clear(),this.Mb=[]};
g.k.qt=function(a,b){if(!IY(this,a,b)||this.kq)return!1;this.kq=!0;0<this.C&&(this.C=0,this.va=null,this.api.ra("serverstitchedvideochange"));this.xa.WG({reason:"disablessdai",sq:b});return!0};
g.k.Lv=function(){this.xa.ya("sdai",{rstdaist:1});this.rb="";this.Oa.clear();this.fb.clear();this.Va.clear()};
g.k.Xt=function(a){this.We.add(a);var b;(null==(b=this.Fa)?void 0:b.identifier)===a&&CY(this)};
g.k.jN=function(){return this.C};
g.k.LP=function(a,b,c,d){if(zY(this)){var e=this.xa.getVideoData().clientPlaybackNonce;a=a||e;b=b||e;if(a!==b){var f=a===e?L_a(this):this.G.get(a),h=b===e?L_a(this):this.G.get(b);f&&h?(c=this.S?c:d,EY(this.xa,f,h,c,d,this.S,!!this.K),this.K="",b===e?(this.xb=1E3*c,this.C=0,this.va=null,this.xa.ya("sdai",{adchg:this.C}),this.api.ra("serverstitchedvideochange")):(this.xb=0,this.C++,this.va=h,this.xa.ya("sdai",{adchg:this.C,apid:this.va.fd,acpn:this.va.cpn}),this.api.ra("serverstitchedvideochange",h.fd,
h.As))):this.xa.ya("sdai",{unknowntrans:"1",old:a,"new":b});this.S=!1}}};
g.k.Vt=function(a){var b=MV(this.api.Eb());return b?b.Vt(a):!1};
var I_a=0;g.w(d0a,g.J);g.k=d0a.prototype;g.k.addPlayerResponseForAssociation=function(a){a=new g.hT(this.api.W(),a);var b=a.clientPlaybackNonce;if(b&&(this.j.set(b,a),b=this.timeline.j.get(b),null==b?0:b.length)){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a.Mo=c.Ri(),c.pF(a)}};
g.k.finishSegmentByCpn=function(a,b,c){c=void 0===c?3:c;this.B=b;if(this.Bm.has(a))return b0a(this,c),[a];if(b=this.timeline.j.get(b)){b.sort(function(f,h){return f.Ri()-h.Ri()});
b=g.u(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=this.xa.getCurrentTime();if(d.Ri()>=e){this.C.set(a,c);if(c=this.Wo.get(a))this.xa.removeCueRange(c),this.Wo.delete(a);this.xa.seekTo(d.Ri()/1E3);return[a]}}}return[]};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;var c=g0a(this,this.xa.getCurrentTime()),d=a+c/1E3;if(0>a){var e;2===(null==(e=MY(this,1E3*d))?void 0:e.getType())&&(d=(c+1)/1E3)}this.xa.seekTo(d,b)};
g.k.onCueRangeEnter=function(a){a=a.getId().split(",");if(this.Ni!==a[a.length-1]){for(var b=0;b<a.length&&this.B&&a[b]!==this.B;){var c=a[b];this.Bm.has(c)&&(this.Bm.delete(c),this.S.add(c));b++}if(a.length>b+1)for(c=b+1;c<a.length;c++)this.K.push(a[c]);a=a[b];this.Bm.has(a)&&j0a(this,a);this.S.has(a)||k0a(this,a)}};
g.k.jN=function(){return this.D};
g.k.Ba=function(){this.j.clear();this.Bm.clear();this.K=[];c0a(this);this.C.clear();this.B="";this.S.clear();g.cD(this.events);g.J.prototype.Ba.call(this)};g.w(o0a,g.J);g.k=o0a.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.Gd()){var b=this.K.get(a);b?u0a(this,b.target,b.Hm,a):this.Ae("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.B.find(function(e){return e.Ps.Xe===a})){var c=b.Ps,d=c.target;
c=c.Hm;d?u0a(this,d,c,a):t0a(this,b.Yd,c,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.S;TY(this);if(a){if(!SY(this,a)){var b=this.api.Gd();this.Ae("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.Gd().addCueRange(a.Ps.Xe)}};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)n0a(this,a);else{b=this.api.Gd();var d=b===this.D?this.G:null;UY(this,!1);this.ea=a;null!=c&&this.ma.start(c);b&&(this.G=d||b.getPlayerState(),C9a(b),this.D=b)}};
g.k.Xi=function(a){g.cH(a,128)&&z0a(this)};
g.k.isManifestless=function(){return rT(this.j.getVideoData())};
g.k.Ba=function(){UY(this,!1);B0a(this);g.J.prototype.Ba.call(this)};
g.k.Ae=function(a,b){this.j.Ae(new WK(a,b))};
var p0a=0;var C0a="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.w(XY,g.J);g.k=XY.prototype;g.k.get=function(a){VY(this);var b=this.data.find(function(c){return c.key===a});
return b?b.value:null};
g.k.set=function(a,b,c){this.remove(a,!0);VY(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.OD)()+c);for(this.data.push(a);this.data.length>this.C;)(c=this.data.shift())&&YY(this,c,!0);WY(this)};
g.k.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(YY(this,c,b),g.Gb(this.data,function(d){return d.key===a}),WY(this))};
g.k.Of=function(){var a;if(a=void 0===a?!1:a)for(var b=g.u(this.data),c=b.next();!c.done;c=b.next())YY(this,c.value,a);this.data=[];WY(this)};
g.k.Ba=function(){var a=this;g.J.prototype.Ba.call(this);this.data.forEach(function(b){YY(a,b,!0)});
this.data=[]};g.w(ZY,g.J);ZY.prototype.sH=function(a){if(a)return this.B.get(a)};
ZY.prototype.Ba=function(){this.j.Of();this.B.Of();g.J.prototype.Ba.call(this)};g.w($Y,g.Iu);$Y.prototype.ra=function(a){var b=g.Ja.apply(1,arguments);if(this.G.has(a))return this.G.get(a).push(b),!0;var c=!1;try{for(b=[b],this.G.set(a,b);b.length;)c=g.Iu.prototype.ra.call.apply(g.Iu.prototype.ra,[this,a].concat(g.pa(b.shift())))}finally{this.G.delete(a)}return c};g.w(G0a,g.J);G0a.prototype.Ba=function(){g.J.prototype.Ba.call(this);this.j=null;this.B&&this.B.disconnect()};g.cib=Md(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var A3;A3={};g.aZ=(A3.STOP_EVENT_PROPAGATION="html5-stop-propagation",A3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",A3.IV_DRAWER_OPEN="ytp-iv-drawer-open",A3.MAIN_VIDEO="html5-main-video",A3.VIDEO_CONTAINER="html5-video-container",A3.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",A3.HOUSE_BRAND="house-brand",A3);g.w(J0a,g.T);g.k=J0a.prototype;g.k.Bs=function(){g.ju(this.element,g.Ja.apply(0,arguments))};
g.k.Bj=function(){this.yc&&(this.yc.removeEventListener("focus",this.tP),g.yf(this.yc),this.yc=null)};
g.k.FM=function(){this.isDisposed();var a=this.app.W();a.Om||this.Bs("tag-pool-enabled");a.S&&this.Bs(g.aZ.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Bs("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Yc&&(this.vM=g.SE("yt-dom-content-change",this.resize,this));this.V(window,"orientationchange",this.resize,this);this.V(window,"resize",this.resize,this)};
g.k.SJ=function(a){g.iS(this.app.W());this.RH=!a;bZ(this)};
g.k.resize=function(){if(this.yc){var a=this.Vj();if(!a.isEmpty()){var b=!g.xe(a,this.FA.getSize()),c=O0a(this);b&&(this.FA.width=a.width,this.FA.height=a.height);a=this.app.W();(c||b||a.Yc)&&this.app.Za.ra("resize",this.getPlayerSize())}}};
g.k.ut=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.yc){var b=this.app.W();cE&&(this.yc.setAttribute("x-webkit-airplay","allow"),a.title?this.yc.setAttribute("title",a.title):this.yc.removeAttribute("title"));JQa(a)||JAa&&!window.MediaSource&&window.ManagedMediaSource||b.N("html5_disable_airplay")?this.yc.setAttribute("disableremoteplayback",""):this.yc.removeAttribute("disableremoteplayback");this.yc.setAttribute("controlslist","nodownload");b.Np&&a.videoId&&(this.yc.poster=a.Lg("default.jpg"))}b=g.CT(a,"yt:bgcolor");
this.Qy.style.backgroundColor=b?b:"";this.TO=Ona(g.CT(a,"yt:stretch"));this.UO=Ona(g.CT(a,"yt:crop"),!0);g.mu(this.element,"ytp-dni",a.Sd);this.resize()};
g.k.setGlobalCrop=function(a){this.JN=Ona(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.RU=a;this.resize()};
g.k.Em=function(){};
g.k.getPlayerSize=function(){var a=this.app.W(),b=this.app.Za.isFullscreen();if(b&&AC())return new g.we(window.outerWidth,window.outerHeight);if(b||a.Lo){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.WD&&this.WD.media===a||(this.WD=window.matchMedia(a));var c=this.WD&&this.WD.matches}if(c)return new g.we(window.innerWidth,window.innerHeight)}else if(!isNaN(this.RC.width)&&!isNaN(this.RC.height))return this.RC.clone();return new g.we(this.element.clientWidth,
this.element.clientHeight)};
g.k.Vj=function(){var a=this.app.W().N("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.JJ(this.app.W().experiments,"player_underlay_min_player_width");return a&&this.jQ&&b.width>c?new g.we(b.width*g.JJ(this.app.W().experiments,"player_underlay_video_width_fraction"),b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.TO)?L0a(this):this.TO};
g.k.getVideoContentRect=function(a){var b=this.Vj();a=M0a(this,b,this.getVideoAspectRatio(),a);return new g.vr((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.aB=function(a){this.jQ=a;this.resize()};
g.k.ID=function(){return this.sJ};
g.k.onMutedAutoplayChange=function(){bZ(this)};
g.k.setInternalSize=function(a){g.xe(this.RC,a)||(this.RC=a,this.resize())};
g.k.Ba=function(){this.vM&&g.TE(this.vM);this.Bj();g.T.prototype.Ba.call(this)};g.k=P0a.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.QF();c&&a.visualElement&&g.gG(c,a.visualElement,b)};
g.k.zb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=cta(c);a.visualElement=c;var f=g.QF(),h=g.PF();f&&h&&(g.SB("combine_ve_grafts")?BP(zP(),c,h):g.WB(g.$F)(void 0,f,h,c));g.ub(b,function(){e.AC(a)});
d&&this.B.add(a)};
g.k.qg=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.ub(b,function(){d.AC(a)});
c&&this.B.add(a)};
g.k.AC=function(a){this.elements.has(a);this.elements.delete(a);this.C.delete(a);this.j.delete(a);this.B.delete(a)};
g.k.cV=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,AP(zP(),a),Q0a(this))};
g.k.Gg=function(a,b){this.elements.has(a);b&&(a.visualElement=g.OF(b))};
g.k.Wj=function(a){return this.elements.has(a)};R0a.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
R0a.prototype.getPlaybackRate=function(){return this.playbackRate};gZ.prototype.seek=function(a,b){a!==this.j&&(this.seekCount=0);this.j=a;var c=this.videoTrack.B,d=this.audioTrack.B,e=this.audioTrack.xc,f=Y0a(this,this.videoTrack,a,this.videoTrack.xc,b);b=Y0a(this,this.audioTrack,this.policy.Le?a:f,e,b);a=Math.max(a,f,b);this.G=!0;this.manifest.isManifestless&&(W0a(this,this.videoTrack,c),W0a(this,this.audioTrack,d));return a};
gZ.prototype.Wg=function(){return this.G};
gZ.prototype.cR=function(a){this.C=a};
var X0a=2/24;c1a.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.OD)()};g.w(f1a,g.lG);g.k=f1a.prototype;
g.k.DP=function(a,b,c,d){if(this.D&&d){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.B,f=b.D,h=b.C,l=b.yy);this.D.MP(a.Qa,a.startTime,this.B,d,e,f,c,l,h)}if(c){if(b&&!this.Ca.has(a.Qa)){c=a.startTime;d=[];for(e=0;e<b.j.length;e++)f=b.j[e],h=c,c=h+b.B[e],d.push({startTime:h,endTime:c,adCpn:f});this.Ca.set(a.Qa,d)}this.policy.Td&&(c=this.va&&a.Qa===this.va.Qa+1,this.va=a,d=this.j&&a.Qa===this.j.Qa+1,d=this.j&&c&&d&&"stop"!==this.j.fh.event&&"predictStart"!==this.j.fh.event,e=a.fh||null,f=this.ma.j.index.Fd()<=
a.Qa,h=this.manifest.isManifestless&&this.policy.Mo,e?(this.j={fh:e,Qa:a.Qa,tD:!!b},f?oZ(this,e,a.Qa):h&&(c?d?oZ(this,e,a.Qa):"continue"===e.event||"stop"===e.event?i1a(this,a):oZ(this,e,a.Qa):oZ(this,e,a.Qa))):(d&&i1a(this,a),4===this.B&&pZ(this,5,"qend")))}};
g.k.CP=function(a,b,c){var d=this.ma.j.index.Fd()<=b;this.j={fh:a,Qa:b,tD:c};d&&oZ(this,a,b)};
g.k.Lv=function(){this.D&&this.D.Lv()};
g.k.ya=function(a,b){this.Da.ya(a,b)};
g.k.Kr=function(a,b){var c=this.ma.j.index.Mh(a),d;if(d=0<=c){var e;d=(null==(e=JY(b.od,c,2))?void 0:e.Ns)||""}if(d)return b.uu(a,c),t5a(this.Da,a,a,c),this.ya("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0;this.ya("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};
g.k.sz=function(a){var b="",c=this.ma.j.index.Mh(a);if(c=this.Ca.get(c)){c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.startTime<=a&&a<d.endTime){b=d.adCpn;break}}return b};g.w(j1a,g.J);l1a.prototype.SI=function(a){var b=this;this.policy.Sx&&(a=new Set(a),a.size===this.Ca.size&&[].concat(g.pa(a)).every(function(c){return b.Ca.has(c)})||(this.ea=-1,this.Ca=a,xZ(this,this.j),this.Va=!0))};
l1a.prototype.mB=function(a){var b=this.policy.hj;this.policy.hj=JNa(a,{},this.K);if(b!==this.policy.hj){xZ(this,this.j);yZ(this);var c,d;b>this.policy.hj&&(null==(c=this.C)?0:gL(c.info))&&(null==(d=this.nextVideo)||!gL(d.info))&&(this.qa=!0)}};y1a.prototype.Jr=function(a){this.timestampOffset=a};J1a.prototype.dispose=function(){this.va=!0};
J1a.prototype.isDisposed=function(){return this.va};
g.w(GZ,Error);IZ.prototype.skip=function(a){this.offset+=a};
IZ.prototype.qm=function(){return this.offset};g.k=c2a.prototype;g.k.WV=function(){return this.B};
g.k.Ik=function(){this.B=[];LZ(this);b2a(this)};
g.k.Vw=function(a){this.Va=this.B.shift().info;a.info.equals(this.Va)};
g.k.un=function(){return g.Yp(this.B,function(a){return a.info})};
g.k.Ui=function(){return!!this.K.info.audio};
g.k.getDuration=function(){return this.K.index.gt()};var u2a=0;g.k=PZ.prototype;g.k.Bw=function(){this.rb=this.now();this.Vb.Bw()};
g.k.Yt=function(a,b){var c=this.policy.j?(0,g.OD)():0;QZ(this,a,b);a-this.D<this.policy.S&&this.Hn()||this.Nu(a,b);this.Vb.Yt(a,b);this.policy.j&&(this.Va=Math.max((0,g.OD)()-c,this.Va))};
g.k.Nu=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.Ft||(pOa(this.Od,c,d),this.Kw(c,d));this.D=a;this.B=b};
g.k.vr=function(){this.Vb.vr()};
g.k.xs=function(){var a={rn:this.requestNumber,rt:(this.Ja-this.j).toFixed(),lb:this.K,stall:(1E3*this.C).toFixed(),ht:(this.rb-this.j).toFixed(),elt:(this.S-this.j).toFixed(),elb:this.qa,d:x2a(this)};this.url&&cSa(a,this.url);this.policy.j&&(a.mph=this.Va.toFixed());return a};
g.k.now=function(){return(0,g.OD)()};
var OZ;g.w(SZ,PZ);g.k=SZ.prototype;g.k.xs=function(){var a=PZ.prototype.xs.call(this);a.pb=this.NC;a.pt=(1E3*this.Ya).toFixed();return a};
g.k.Ws=function(){var a=this.Vb;this.Pa||(this.Pa=a.Ws?a.Ws():1);return this.Pa};
g.k.dI=function(){return this.Wk?1!==this.Ws():!1};
g.k.eP=function(a,b,c){if(!this.kb){this.kb=!0;if(!this.Ft){QZ(this,a,b);this.Nu(a,b);var d=this.Ws();if(2===d&&c)TZ(this,this.B/c,this.B);else if(2===d||1===d)c=(a-this.j)/1E3,!(c<=this.policy.B)&&this.policy.B||this.eb||this.policy.ma||!this.Hn()||TZ(this,c,b),this.Hn()&&YR(this.Od,b,this.C);WR(this.Od,(a-this.j)/1E3||this.policy.K,this.B,this.Ya,this.Vo)}RZ(this)}};
g.k.Nu=function(a,b){var c=(a-this.D)/1E3,d=b-this.B,e=this.Ws();this.isActive?1===e&&((0<d||this.policy.C)&&(.2<c||1024>d)?(this.C+=c,0<d&&.2<c&&TZ(this,.05,d),this.eb=!0):0<d&&(TZ(this,c,d),this.eb=!0)):A2a(this,b)&&(1===e&&(c=(a-this.j)/1E3,F2a(this)||this.Ft||VR(this.Od,c)),this.S=a,this.qa=b,this.isActive=!0);PZ.prototype.Nu.call(this,a,b)};
g.k.MX=function(a){if(!this.Ft){QZ(this,a,this.K);var b=(a-this.j)/1E3;2!==this.Ws()&&(this.Hn()?(this.policy.D||(this.C+=(a-this.D)/1E3),YR(this.Od,this.B,this.C)):this.policy.G||(F2a(this)||this.Ft||VR(this.Od,b),this.S=a,this.qa=0));WR(this.Od,b,this.B,this.Ya,this.Vo);a=(a-this.D)/1E3;pOa(this.Od,a,0);this.Kw(a,0)}};
g.k.Hn=function(){return A2a(this,this.B)};
g.k.XV=function(){this.Wk&&E2a(this,this.now());return this.Ca};
g.k.Vv=function(){return this.B>this.WP&&A2a(this,this.B)};
g.k.AN=function(){return this.Fa};
g.k.GQ=function(a){a=void 0===a?this.now():a;if(this.Wk){E2a(this,a);if(this.Pa?this.dI():this.ma!==this.ea){var b=this.ea;if(a<b){this.Fa=this.ea;return}}else b=this.ma;b=Math.max(b,this.Ca)}else b=this.Ca;var c=this.NC-this.B;0>c&&(c=0);c=1E3*(c*this.snapshot.stall+c/this.snapshot.byterate);this.Fa=c=this.Hn()?c+a:c+Math.max(a,b)};
g.k.rH=function(){return this.now()-this.S};
g.k.BN=function(){return 1E3*(this.B-this.qa)/this.rH()||0};
g.k.YV=function(){return this.S};UZ.prototype.feed=function(a){xO(this.j,a);this.Df()};
UZ.prototype.Df=function(){if(this.D){if(!this.j.totalLength)return;var a=this.j.split(this.C-this.B),b=a.QH;a=a.Gm;this.Vb.HP(this.D,b,this.B,this.C);this.B+=b.totalLength;this.j=a;this.B===this.C&&(this.D=this.C=this.B=void 0)}for(;;){var c=0;a=g.u(G2a(this.j,c));b=a.next().value;c=a.next().value;c=g.u(G2a(this.j,c));a=c.next().value;c=c.next().value;if(0>b||0>a)break;if(!(c+a<=this.j.totalLength)){if(!(this.Vb.HP&&c+1<=this.j.totalLength))break;c=this.j.split(c).Gm;this.Vb.HP(b,c,0,a)&&(this.D=
b,this.B=c.totalLength,this.C=a,this.j=new wO([]));break}a=this.j.split(c).Gm.split(a);c=a.Gm;this.Vb.vA(b,a.QH);this.j=c}};
UZ.prototype.dispose=function(){this.j=new wO};g.k=VZ.prototype;g.k.iN=function(){return 0};
g.k.uH=function(){return null};
g.k.MV=function(){return null};
g.k.It=function(){return 1<=this.state};
g.k.isComplete=function(){return 3<=this.state};
g.k.En=function(){return 5===this.state};
g.k.onStateChange=function(){};
g.k.Gc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
g.k.mA=function(a){a&&this.state<a?this.Gc(a):this.callback&&this.callback(this,this.state)};
g.k.isDisposed=function(){return-1===this.state};
g.k.le=function(){var a="";this.info.ib.forEach(function(b){a+=b.le()+"."});
return a.slice(0,-1)};
g.k.dispose=function(){this.isDisposed()||(this.info.ib[0].j.C=!1,this.Gc(-1))};
g.k.EN=function(){return 0};g.k=I2a.prototype;g.k.rA=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.Vb.Bw()};
g.k.onError=function(){this.C=!0;this.onDone()};
g.k.onDone=function(){this.isDisposed||this.Vb.vr()};
g.k.Nv=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}};
g.k.XC=function(){return+this.getResponseHeader("content-length")};
g.k.pm=function(){return this.B};
g.k.RE=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Oq=function(){return 0<this.j.totalLength};
g.k.Uw=function(){var a=this.j;this.j=new wO;return a};
g.k.nJ=function(){return this.j};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.ax=function(){return!0};
g.k.AJ=function(){return this.C};
g.k.yf=function(){return""};g.k=J2a.prototype;
g.k.gF=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x;return g.H(function(B){if(1==B.j){a.status=200;b=a.j.get("docid");c=ze(a.j.get("fmtid")||"");d=a.j.get("lmt")||"0";e=+(a.j.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.j.get("ck")&&a.j.get("civ")&&(f=new H1a(a.j.get("ck"),a.j.get("civ")));h=a.range;l=Math.floor(h.start/e);m=Math.floor(h.end/e);n=l}if(5!=B.j)return n<=m?g.z(B,PPa(b,c,d,n,f),5):B.Ma(0);p=B.B;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;
r=(n+1)*e;t=Math.max(0,h.start-q);v=Math.min(h.end+1,r)-(t+q);x=new Uint8Array(p.buffer,t,v);a.B.append(x);a.loaded+=v;a.loaded<h.length&&a.Vb.Yt((0,g.OD)(),a.loaded);n++;return B.Ma(2)})};
g.k.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
g.k.abort=function(){};
g.k.Nv=function(){return!0};
g.k.XC=function(){return this.range.length};
g.k.pm=function(){return this.loaded};
g.k.RE=function(){return!!this.loaded};
g.k.Oq=function(){return!!this.B.totalLength};
g.k.Uw=function(){var a=this.B;this.B=new wO;return a};
g.k.nJ=function(){return this.B};
g.k.ax=function(){return!0};
g.k.AJ=function(){return!!this.error};
g.k.yf=function(){return this.error};g.k=L2a.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.ea);this.D&&(b.signal=this.D.signal);a=new Request(a,b);fetch(a).then(this.va,this.onError).then(void 0,Qoa)};
g.k.onDone=function(){this.isDisposed()||this.Vb.vr()};
g.k.getResponseHeader=function(a){return this.G?this.G.get(a):null};
g.k.Nv=function(){return!!this.G};
g.k.pm=function(){return this.B};
g.k.XC=function(){return+this.getResponseHeader("content-length")};
g.k.RE=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Oq=function(){return!!this.j.totalLength};
g.k.Uw=function(){var a=this.j;this.j=new wO;return a};
g.k.nJ=function(){return this.j};
g.k.isDisposed=function(){return this.K};
g.k.abort=function(){this.C&&this.C.cancel().catch(function(){});
this.D&&this.D.abort();this.K=!0};
g.k.ax=function(){return!0};
g.k.AJ=function(){return this.S};
g.k.yf=function(){return this.errorMessage};g.k=M2a.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(a){}this.j=!0;this.Vb.vr()}};
g.k.rA=function(){2===this.xhr.readyState&&this.Vb.Bw()};
g.k.df=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.B=a.loaded),this.Vb.Yt((0,g.OD)(),a.loaded))};
g.k.Nv=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.UF(Error("Could not read XHR header "+a)),""}};
g.k.XC=function(){return+this.getResponseHeader("content-length")};
g.k.pm=function(){return this.B};
g.k.RE=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.B};
g.k.Oq=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.k.Uw=function(){var a=this.response;this.response=void 0;return new wO([new Uint8Array(a)])};
g.k.nJ=function(){return new wO([new Uint8Array(this.response)])};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.ax=function(){return!1};
g.k.AJ=function(){return!1};
g.k.yf=function(){return""};g.w(WZ,g.J);g.k=WZ.prototype;g.k.n$=function(){if(!this.isDisposed()){var a=(0,g.OD)(),b=!1;if(this.timing.Hn()){if(this.G)return;a=this.timing.AN();this.timing.GQ();this.timing.AN()-a>=.8*this.policy.mj?(this.B++,b=5<=this.B):this.B=0}else b=a-this.timing.XV(),0<b&&(this.B+=1),a=sMa(XZ(this),this.policy,!1)*this.policy.py,b=b>1E3*a;0<this.B&&this.Vb.pW();b?this.jB(!1):this.j.start()}};
g.k.jB=function(a){this.C=!0;a&&(a=XZ(this),a.C+=1);this.Vb.vy();this.lastError="net.timeout";YZ(this)};
g.k.canRetry=function(a){var b=XZ(this);a=a?3:this.policy.eh;return b.timedOut<this.policy.Jp&&b.j<a};
g.k.rg=function(){return this.lastError};
g.k.Fv=function(){return this.B};
g.k.dispose=function(){this.j.dispose();g.J.prototype.dispose.call(this)};g.w(iZ,VZ);g.k=iZ.prototype;g.k.Iv=function(){return this.timing.requestNumber};
g.k.jf=function(){return this.Ke.jf()};
g.k.Aq=function(){var a=R2a(this.Ld);if(this.Hj){var b=this.Hj,c=b.j.totalLength;a.ulen=c;0<c&&(b=AO(b.j,0),a.ubyte=b,1===c&&0===b&&(a.b248180278=!0))}this.Og&&(a.rc=this.policy.Al?this.Og:this.Og.toString());this.policy.Ub&&this.d_&&(a.tr=this.d_);a.itag=this.info.ib[0].j.info.itag;a.ml=""+ +this.info.ib[0].j.xg();a.sq=""+this.info.ib[0].Qa;this.Ke&&(a.ifi=""+ +lLa(this.info.resource.C));410!==this.Og&&500!==this.Og&&503!==this.Og||(a.fmt_unav="true");var d;(c=this.errorMessage||(null==(d=this.xhr)?
void 0:d.yf()))&&(a.msg=c);this.vF&&(a.smb="1");WQ(this.info)&&(a.sdai="1");return a};
g.k.HV=function(){return B2a(this.timing)};
g.k.yf=function(){return this.xhr.yf()||""};
g.k.Vv=function(){return this.isComplete()||this.timing.Vv()};
g.k.Yt=function(){!this.isDisposed()&&this.xhr&&(this.Og=this.xhr.status,this.il()?this.mA(2):!this.BW&&this.Vv()&&(this.mA(),this.BW=!0))};
g.k.Bw=function(){if(!this.isDisposed()&&this.xhr){if(!this.My&&this.xhr.Nv()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.My=((0,g.OD)()-a)/1E3}this.xhr.Nv()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.IB&&!MKa()&&g.fD("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.wp=a||this.wp;this.Kq=b||this.Kq}};
g.k.vr=function(){var a=this.xhr;if(!this.isDisposed()&&a){this.policy.useUmp||this.Ld.j.stop();this.Og=a.status;a=this.RN(a);if(this.policy.Ub){var b;null==(b=this.ZD)||b.stop()}5===a?YZ(this.Ld):this.Gc(a);this.policy.useUmp&&this.Ld.j.stop()}};
g.k.RN=function(a){if(Q2a(this.Ld,this.xhr))return 5;var b="";if(h3a(this)){var c=a.nJ();c.totalLength<=this.policy.Om&&(b=zO(c),b=DO(b),b=kK(b)?b:"")}if(b)return rMa(XZ(this.Ld)),this.info.Rk(this.Ke,b),3;b=a.pm();if(this.Hj){this.yn(!0);if(this.policy.qd&&Q2a(this.Ld,this.xhr))return 5;if(!this.o_){if(this.p_)return rMa(XZ(this.Ld)),3;this.Ld.lastError="net.closed";return 5}}else{if((c=this.info.B)&&c!==b||a.AJ())return this.Ld.lastError="net.closed",5;this.yn(!0)}c=H2a(this)?a.getResponseHeader("X-Bandwidth-Est"):
0;if(a=H2a(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.vZ=!0,this.policy.PF&&(c=a);P2a(this.Ld,b,c?Number(c):0);return 4};
g.k.canRetry=function(){this.isDisposed();return this.Ld.canRetry(WQ(this.info))};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.Sl?this.vy():RZ(this.timing))};
g.k.jB=function(a){this.Ld.jB(a)};
g.k.pW=function(){this.callback&&this.callback(this,this.state)};
g.k.Fv=function(){return this.Ld.Fv()};
g.k.dispose=function(){VZ.prototype.dispose.call(this);this.Ld.dispose();var a;null==(a=this.ZD)||a.dispose();this.policy.Sl||this.vy()};
g.k.vy=function(){this.xhr&&this.xhr.abort();RZ(this.timing)};
g.k.vk=function(){if(!this.FE().length)return[];this.TN=!0;return this.sf.vk()};
g.k.il=function(){if(1>this.state)return!1;if(this.sf&&this.sf.gf.length)return!0;var a;return(null==(a=this.xhr)?0:a.Oq())?!0:!1};
g.k.FE=function(){this.yn(!1);return this.sf?this.sf.FE():[]};
g.k.yn=function(a){try{if(a||this.xhr.Nv()&&this.xhr.Oq()&&!h3a(this)&&!this.yA){if(!this.sf){var b;this.xhr.ax()||this.Hj?b=this.info.B:b=this.xhr.pm();this.sf=new fY(this.policy,this.info.ib,b)}this.xhr.Oq()&&(this.Hj?this.Hj.feed(this.xhr.Uw()):gY(this.sf,this.xhr.Uw(),a&&!this.xhr.Oq()))}}catch(c){this.Hj?g3a(this,c):g.UF(c)}};
g.k.vA=function(a,b){switch(a){case 21:a=b.split(1).Gm;i3a(this,a);gY(this.sf,a,!1);break;case 22:this.o_=!0;gY(this.sf,new wO([]),!0);break;case 43:if(a=NO(new IO(b),1))this.info.Rk(this.Ke,a),this.p_=!0;break;case 45:b=HTa(new IO(b));a=b.OJ;b=b.PJ;a&&b&&(this.vG=a/b);break;case 44:this.Pw=a3a(new IO(b));var c,d,e;this.policy.qd&&4===(null==(c=this.Pw)?void 0:c.action)&&(null==(d=this.Pw)?0:null==(e=d.RQ)?0:e.SM)&&(this.Og=this.Pw.RQ.SM,this.xhr.status=this.Pw.RQ.SM);break;case 53:this.policy.Ub&&
(a=Z2a(new IO(b)).S6)&&(this.ZD||(this.ZD=new g.au(this.D6,a,this)),this.ZD.start());break;case 60:this.Sz=wTa(new IO(b));break;case 58:this.policy.Bd&&(a=new IO(b),this.Tp={Tp:LO(a,1),h$:LO(a,2)})}};
g.k.HP=function(a,b,c){if(21!==a)return!1;if(!c){if(1===b.totalLength)return!0;b=b.split(1).Gm}i3a(this,b);gY(this.sf,b,!1);return!0};
g.k.pm=function(){return this.xhr.pm()};
g.k.iN=function(){return this.My};
g.k.Ws=function(){return this.dI()?2:1};
g.k.dI=function(){if(!this.policy.S.cj||!isNaN(this.info.hh)&&0<this.info.hh)return!1;if(!this.xhr.Nv())return!0;if(this.Hj)var a=!this.info.B;else this.xhr.XC()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a="audio/mp4"===a||"video/mp4"===a||"video/webm"===a);return!a||isNaN(this.info.hh)&&(a=this.xhr.getResponseHeader("x-head-seqnum"))&&Number(a)>this.info.ib[0].Qa?!1:!0};
g.k.EN=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.k.uH=function(){this.xhr&&(this.wp=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.wp};
g.k.MV=function(){this.xhr&&(this.Kq=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Kq};
g.k.rg=function(){return this.Ld.rg()};
g.k.D6=function(){!this.isDisposed()&&this.xhr&&(this.d_="heartbeat",this.jB(!1))};g.w(hZ,VZ);g.k=hZ.prototype;g.k.onStateChange=function(){this.isDisposed()&&(jY(this.Bg,this.formatId),this.j.dispose())};
g.k.Aq=function(){var a=VZa(this.Bg,this.formatId),b;var c=(null==(b=this.Bg.Vc.get(this.formatId))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.Bg.Vc.get(this.formatId))?void 0:d.Es)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:WZa(this.Bg,this.formatId),isEnded:this.Bg.ri(this.formatId)}};
g.k.HV=function(){return 0};
g.k.Vv=function(){return!0};
g.k.vk=function(){return this.Bg.vk(this.formatId)};
g.k.FE=function(){return[]};
g.k.il=function(){return this.Bg.il(this.formatId)};
g.k.rg=function(){return this.lastError};
g.k.Fv=function(){return 0};g.k=j3a.prototype;g.k.Vw=function(a){this.D.Vw(a);var b;null!=(b=this.ma)&&(b.j=C1a(b,b.je,b.wA,b.j,a),b.C=a);this.Zb=Math.max(this.Zb,a.info.j.info.Zb||0)};
g.k.getDuration=function(){if(this.policy.D){var a=this.Da.Uc;if(a)return NY(a)}return this.j.index.gt()};
g.k.Ik=function(){jZ(this);this.D.Ik()};
g.k.wN=function(){return this.D};
g.k.isRequestPending=function(a){return this.C.length?a===this.C[this.C.length-1].info.ib[0].Qa:!1};
g.k.Jr=function(a){var b;null==(b=this.ma)||b.Jr(a)};g.w(l_,g.J);l_.prototype.rO=function(a,b){if(!k_(a)||!a.j.xg())return!1;var c=this.policy.oy;0<this.policy.Xl&&(c=Math.min(c,this.policy.Xl*n_(this.Da,a)));var d;(d=this.C.Va)||(d=k_(a)&&a.j.xg()&&a.B.j.info.Zb<a.j.info.Zb);return d||b<=c||this.C.qa};
l_.prototype.Fa=function(){if(!(15<this.va++)){var a,b,c=(null==(a=this.videoTrack.B)?void 0:a.j)||(null==(b=this.audioTrack.B)?void 0:b.j);if(c){a=Math.ceil(Math.min(1E5,.1*$R(this.schedule)));m_(this,new VQ([new PQ(6,c,new LQ(0,a-1),"goodputProbe",0)]));var d;null==(d=this.S)||d.start()}}};
l_.prototype.qt=function(a){var b=a.info.ib[0].j,c=a.rg();if(bQ(b.resource.j)){var d=g.ng(a.yf(),3);this.Da.ya("dldbrerr",{em:d||"none"})}d=a.info.ib[0].Qa;var e=h1a(this.j,a.info.ib[0].D,d);"net.badstatus"===c&&(this.K+=1);if(a.canRetry()){if(!(3<=a.info.resource.B&&this.B&&WQ(a.info)&&"net.badstatus"===c&&this.B.qt(e,d))){d=(b.info.video&&1<b.resource.B||410===a.Og||500===a.Og||503===a.Og)&&!(0<uZ(this.C.G).size)&&!bQ(b.resource.j);e=a.Aq();var f=b.info.video?this.videoTrack:this.audioTrack;d&&
(e.stun="1");this.Da.handleError(c,e);this.isDisposed()||(d&&AZ(this.C,b),i_(f,a),this.Da.Df())}}else b=1,this.B&&WQ(a.info)&&"net.badstatus"===c&&this.B.qt(e,d)&&(b=0),this.manifest.isLive&&"net.badstatus"===a.rg()&&this.K<=2*this.policy.eh?(DNa(this.manifest),this.manifest.ze||this.manifest.isPremiere?this.Da.xa.seekTo(0,{Id:"badStatusWorkaround"}):this.manifest.B?this.Da.xa.seekTo(this.manifest.Cb,{Id:"badStatusWorkaround",hq:!0}):N_(this.Da)):this.Da.handleError(c,a.Aq(),b)};
l_.prototype.Ba=function(){g.J.prototype.Ba.call(this)};
var F3a=2/24;g.w(q_,g.J);q_.prototype.RI=function(a,b){var c;var d="m"===(null==(c=this.B)?void 0:c.reason)?"m":this.B&&S3a(this.B)?this.B.reason:"a";this.Da.RI(new sZ(a,d));p_(b,a,!0)};
q_.prototype.rZ=function(a){for(var b=g.u(this.G),c=b.next();!c.done;c=b.next())if(c=c.value,c.id===a)return this.C=[c],this.K=this.manifest.j[a],new sZ(this.K,"m");this.C=[];return null};r_.prototype.vA=function(a,b){switch(a){case 20:a=new IO(b);a={Lq:LO(a,1),videoId:NO(a,2),itag:LO(a,3),Zj:LO(a,4),xtags:NO(a,5),SA:LO(a,6),Fn:YFa(a,8),mu:LO(a,9),Xdb:LO(a,10),startMs:LO(a,11),durationMs:LO(a,12),Cr:LO(a,14),timeRange:OO(a,15,KTa),Cj:LO(a,16),hP:LO(a,17),clipId:NO(a,1E3)};this.BP(a);break;case 21:this.zP(b,!1);break;case 22:this.rr(b);break;default:this.rP(a,b)}};
r_.prototype.BP=function(){};
r_.prototype.rP=function(){};g.w(s_,PZ);g.k=s_.prototype;g.k.Nu=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.Hn()?0<d&&(this.ea&&(.2<c||1024>d?(this.C+=c,.2<c&&mOa(this.Od,.05,d,.05)):mOa(this.Od,c,d,c)),this.Ca&&(this.ma+=d,this.Fa+=c)):(VR(this.Od,(a-this.j)/1E3),this.S=a,this.qa=b);PZ.prototype.Nu.call(this,a,b)};
g.k.eP=function(a,b){QZ(this,a,b);this.Nu(a,b);this.ea&&(this.Hn()&&YR(this.Od,this.ma,this.C),WR(this.Od,this.Fa,this.ma,0,!0))};
g.k.MX=function(a){QZ(this,a,this.K);var b=(a-this.D)/1E3;pOa(this.Od,b,0);this.Kw(b,0);this.ea&&(this.Hn()?(this.policy.D||(this.C+=(a-this.D)/1E3),YR(this.Od,this.ma,this.C)):this.policy.G||VR(this.Od,(a-this.j)/1E3),WR(this.Od,this.Fa,this.ma,0,!0))};
g.k.wE=function(a){a=a.cM||2147483647;2!==(a&2)&&(this.Ca=!1);1===(a&1)&&(this.ea=!0)};
g.k.pE=function(a){a=a.cM||2147483647;2===(a&2)&&(this.Ca=!1);1===(a&1)&&(this.ea=!1)};
g.k.YV=function(){return this.S};
g.k.rH=function(){var a=this.Ca?this.now()-this.D:0;return Math.max(1E3*this.Fa+a,1)};
g.k.BN=function(){return 1E3*this.ma/this.rH()};
g.k.Hn=function(){return 0<this.B};
g.k.xs=function(){var a=PZ.prototype.xs.call(this);a.rbw=this.BN();a.rbe=+this.Ca;a.gbe=+this.ea;return a};
g.k.GQ=function(){};
g.k.AN=function(){return NaN};
g.k.XV=function(){return this.j+1E3*this.snapshot.delay};var B3={},r4a=(B3["1h"]=8,B3["9h"]=4,B3["1"]=8,B3["9"]=4,B3.h=2,B3),C3={},s4a=(C3.o=3,C3.O=3,C3.so=3,C3.a=1,C3.ah=1,C3.A=1,C3.m=1,C3.M=1,C3.sa=1,C3.mac3=7,C3.MAC3=7,C3.meac3=5,C3.MEAC3=5,C3),D3={},t4a=(D3.o=0,D3.O=0,D3.a=0,D3.ah=0,D3.A=0,D3.m=1,D3.M=1,D3.mac3=1,D3.MAC3=1,D3.meac3=1,D3.MEAC3=1,D3.so=4,D3.sa=4,D3);var E3={},a4a=(E3["140"]={numChannels:2},E3["251"]={audioSampleRate:48E3,numChannels:2},E3["380"]={numChannels:6},E3["328"]={numChannels:6},E3),F3={},Y3a=(F3["1"]='video/mp4; codecs="av01.0.08M.08"',F3["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',F3["9"]='video/webm; codecs="vp9"',F3["("]='video/webm; codecs="vp9"',F3["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',F3.h='video/mp4; codecs="avc1.64001e"',F3.H='video/mp4; codecs="avc1.64001e"',F3.o='audio/webm; codecs="opus"',
F3.a='audio/mp4; codecs="mp4a.40.2"',F3.mac3='audio/mp4; codecs="ac-3"; channels=6',F3.meac3='audio/mp4; codecs="ec-3"; channels=6',F3),G3={},Z3a=(G3["337"]={width:3840,height:2160,bitrate:3E7,fps:30},G3["336"]={width:2560,height:1440,bitrate:15E6,fps:30},G3["335"]={width:1920,height:1080,bitrate:75E5,fps:30},G3["702"]={width:7680,height:4320,bitrate:4E7,fps:60},G3["701"]={width:3840,height:2160,bitrate:2E7,fps:60},G3["700"]={width:2560,height:1440,bitrate:1E7,fps:60},G3["412"]={width:1920,height:1080,
bitrate:85E5,fps:60,cryptoblockformat:"subsample"},G3["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},G3["315"]={width:3840,height:2160,bitrate:2E7,fps:60},G3["308"]={width:2560,height:1440,bitrate:1E7,fps:60},G3["303"]={width:1920,height:1080,bitrate:5E6,fps:60},G3["302"]={width:1280,height:720,bitrate:25E5,fps:60},G3["299"]={width:1920,height:1080,bitrate:75E5,fps:60},G3["298"]={width:1280,height:720,bitrate:35E5,fps:60},G3["571"]={width:7680,height:4320,bitrate:3E7,
fps:60},G3["401"]={width:3840,height:2160,bitrate:15E6,fps:60},G3["400"]={width:2560,height:1440,bitrate:75E5,fps:60},G3["399"]={width:1920,height:1080,bitrate:2E6,fps:60},G3["398"]={width:1280,height:720,bitrate:1E6,fps:60},G3["313"]={width:3840,height:2160,bitrate:8E6,fps:30},G3["271"]={width:2560,height:1440,bitrate:4E6,fps:30},G3["248"]={width:1920,height:1080,bitrate:2E6,fps:30},G3["247"]={width:1280,height:720,bitrate:15E5,fps:30},G3["137"]={width:1920,height:1080,bitrate:4E6,fps:30},G3["136"]=
{width:1280,height:720,bitrate:3E6,fps:30},G3);var t_,h4a=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["571","401","400","399","398"],["313","271","248","247"],["137","136"]],i4a=["412","359"],j4a=[["140"],["251"],["380"],["328"]],H3={},f4a=(H3["303"]=["411"],H3["299"]=["385"],H3["302"]=["409","410"],H3["298"]=["384","376"],H3["248"]=["360"],H3["247"]="274 357 358 317 273 318 280 279".split(" "),H3["136"]="145 224 225 144 222 223 143 142".split(" "),H3["140"]=["149"],H3["380"]=["381"],H3["328"]=["329"],H3),
I3={},e4a=(I3["398"]=["397","396","395","394"],I3["247"]=["244","243","242"],I3["136"]=["135","134","133","160"],I3["251"]=["250"],I3),J3={},c4a=(J3["133"]=240,J3["134"]=360,J3["135"]=480,J3["136"]=720,J3["137"]=1080,J3["242"]=240,J3["243"]=360,J3["244"]=480,J3["247"]=720,J3["248"]=1080,J3["298"]=720,J3["299"]=1080,J3["302"]=720,J3["303"]=1080,J3["395"]=240,J3["396"]=360,J3["397"]=480,J3["398"]=720,J3["399"]=1080,J3);g.w(p4a,r_);g.k=p4a.prototype;g.k.rP=function(a,b){switch(a){case 35:this.Ip(b);break;case 44:this.sE(b);break;case 43:this.KP(b);break;case 53:this.IP(b);break;case 55:(a={timeline:OO(new IO(b),1,m4a)},a.timeline)&&a.timeline.c_&&this.Vb.yE(a.timeline.c_,a.timeline.N$);break;case 42:this.nE(b);break;case 45:this.uE(b);break;case 59:this.rE(b);break;case 51:this.vE(b);break;case 49:this.wE(b);break;case 50:this.pE(b);break;case 47:this.tE(b)}};
g.k.vE=function(a){a=new IO(a);a={agb:QO(a,1,W2a),Zfb:QO(a,2,W2a)};this.Vb.vE(a)};
g.k.rE=function(a){var b=new IO(a);a=PO(b,1);var c=PO(b,2);b=PO(b,3);this.Vb.rE(a,c,b)};
g.k.uE=function(a){a=HTa(new IO(a));this.Vb.uE(a)};
g.k.tE=function(a){a=RO(a,PTa);this.Vb.tE(a)};
g.k.nE=function(a){a=new IO(a);a={videoId:NO(a,1),formatId:OO(a,2,W2a),endTimeMs:LO(a,3),eeb:LO(a,4),mimeType:NO(a,5),MW:OO(a,6,S2a),indexRange:OO(a,7,S2a),aN:OO(a,8,d3a)};this.Vb.nE(a)};
g.k.Ip=function(a){a=e3a(new IO(a));this.Vb.Ip(a)};
g.k.IP=function(a){a=Z2a(new IO(a));this.Vb.IP(a)};
g.k.sE=function(a){a=a3a(new IO(a));this.Vb.sE(a)};
g.k.KP=function(a){a={redirectUrl:NO(new IO(a),1)};this.Vb.KP(a)};
g.k.zP=function(a){var b=AO(a,0);if(1!==a.totalLength){a=a.split(1).Gm;var c=this.B[b]||null;if(c){var d=this.Vb;b_a(d.Bg,b,c,a);d.policy.eb||F_(d.Vb,d)}}};
g.k.rr=function(a){a=AO(a,0);var b=this.B[a]||null;b&&this.Vb.rr(a,b)};
g.k.BP=function(a){var b=a.Lq,c=a.Fn,d=a.SA,e=a.hP,f=a.Cj,h=a.mu,l=a.startMs,m=a.durationMs,n=a.Cr,p=a.clipId,q=X3a(a);a=jhb.has(dL[""+a.itag]);this.B[b]=q;this.Vb.tA(q,a,{Lq:b,Fn:!!c,SA:null!=d?d:-1,mu:null!=h?h:-1,startMs:null!=l?l:-1,durationMs:null!=m?m:-1,Cr:n,hP:e,Cj:f,clipId:p})};
g.k.wE=function(a){a={cM:LO(new IO(a),1)};this.Vb.wE(a)};
g.k.pE=function(a){a={cM:LO(new IO(a),1)};this.Vb.pE(a)};g.w(u_,g.J);g.k=u_.prototype;g.k.Yt=function(){!this.isDisposed()&&this.xhr&&(this.yn(),this.policy.eb&&F_(this.Vb,this))};
g.k.Bw=function(){};
g.k.vr=function(){if(!this.isDisposed()&&this.xhr){var a=this.RN();5===a?YZ(this.Ld):this.Gc(a);this.Ld.j.stop();var b;null==(b=this.aF)||b.stop()}};
g.k.RN=function(){if(Q2a(this.Ld,this.xhr,this.info.Xv()))return 5;this.yn();if(this.nZ)return 3;P2a(this.Ld,this.xhr.pm(),0);this.policy.xb&&n5a(this.Vb);return 4};
g.k.yn=function(){var a=this.xhr;a.Oq()&&(a=a.Uw(),this.Hj.feed(a))};
g.k.vA=function(a,b){this.x$.vA(a,b)};
g.k.Ip=function(a){this.Vb.Ip(a)};
g.k.IP=function(a){if(this.policy.enableServerDrivenRequestCancellation){var b;null==(b=this.aF)||b.dispose();this.HQ=a;a.OY&&(this.aF=new g.au(this.yX,a.OY,this));this.yX()}};
g.k.yX=function(){var a;if(null!=(a=this.HQ)&&a.items){var b;null==(b=this.aF)||b.start();if(this.Qf.Hn()){a=this.Qf.rH();b=this.Qf.BN();var c=q4a(this,a);if(!(b>c.BI||0<c.WO&&this.info.mN()>c.WO)){this.IQ=(0,g.OD)();var d;null==(d=this.aF)||d.stop();this.policy.xb&&(d=this.Vb,a={Yu:Math.round(b*a/1E3),bx:a},d.policy.xb&&(d.ma=a,d.Pp++));this.Ld.jB(!1)}}}};
g.k.sE=function(a){this.Vb.sE(a)};
g.k.KP=function(a){this.nZ=!0;this.info.resource.Rk(this.Ke,a.redirectUrl)};
g.k.wE=function(a){this.Qf instanceof s_&&this.Qf.wE(a)};
g.k.pE=function(a){this.Qf instanceof s_&&this.Qf.pE(a)};
g.k.yE=function(a,b){this.Vb.yE(a,b)};
g.k.nE=function(a){if(this.policy.D){var b=a.formatId,c=X3a({itag:b.itag,Zj:b.Zj,xtags:b.xtags}),d,e,f=new LQ((null==(d=a.MW)?void 0:d.first)||0,(null==(e=a.MW)?void 0:e.dX)||0),h,l;d=new LQ((null==(h=a.indexRange)?void 0:h.first)||0,(null==(l=a.indexRange)?void 0:l.dX)||0);this.manifest.K.get(c)||(h=a.aN||{},h.mimeType=a.mimeType,h.itag=b.itag,h.lastModified=""+(b.Zj||0),h.xtags=b.xtags,b=this.manifest,l=rR(""),h=qR(h,null),oR(b,new mR(l,h,f,d)));this.Vb.nE(c,nL(a.mimeType||""))}};
g.k.uE=function(a){a.OJ&&a.PJ&&this.Vb.uE(a)};
g.k.rE=function(a,b,c){this.Vb.rE(a,b,c)};
g.k.vE=function(a){this.policy.fg&&this.Vb.vE(a)};
g.k.tE=function(a){this.Vb.tE(a,this.Iv())};
g.k.canRetry=function(){this.isDisposed();return this.Ld.canRetry(!1)};
g.k.dispose=function(){if(!this.isDisposed()){g.J.prototype.dispose.call(this);this.Ld.dispose();var a;null==(a=this.aF)||a.dispose();this.Gc(-1);this.vy()}};
g.k.Gc=function(a){this.state=a;F_(this.Vb,this)};
g.k.Xv=function(){return this.info.Xv()};
g.k.tA=function(a,b,c){c.clipId&&(this.clipId=c.clipId);this.Bg.tA(a,b,c);this.policy.Gf&&(this.Bg.Vc.get(a).kG=!0)};
g.k.rr=function(a,b){this.Bg.rr(a,b);this.policy.eb||F_(this.Vb,this)};
g.k.vk=function(a){return this.Bg.vk(a)};
g.k.un=function(a){return this.Bg.un(a)};
g.k.il=function(a){return this.Bg.il(a)};
g.k.zq=function(){return this.Bg.zq()};
g.k.Ws=function(){return 1};
g.k.Iv=function(){return this.Qf.requestNumber};
g.k.GV=function(){return this.clipId};
g.k.RX=function(){this.vy()};
g.k.vy=function(){RZ(this.Qf);var a;null==(a=this.xhr)||a.abort()};
g.k.isComplete=function(){return 3<=this.state};
g.k.ZW=function(){return 3===this.state};
g.k.En=function(){return 5===this.state};
g.k.DW=function(){return this.isComplete()};
g.k.It=function(){return 1<=this.state};
g.k.Fv=function(){return 0};
g.k.FV=function(){return this.info.data.fM};
g.k.pW=function(){};
g.k.ZV=function(){var a,b;return(null==(a=this.info.C)?void 0:null==(b=a.Is)?void 0:b.iQ)||0};
g.k.rg=function(){return this.Ld.rg()};
g.k.Aq=function(){var a=R2a(this.Ld);Object.assign(a,y4a(this.info));a.req="sabr";a.rn=this.Iv();var b;if(null==(b=this.xhr)?0:b.status)a.rc=this.policy.Al?this.xhr.status:this.xhr.status.toString();var c;(b=null==(c=this.xhr)?void 0:c.yf())&&(a.msg=b);this.IQ&&(c=q4a(this,this.IQ-this.Qf.YV()),a.letm=c.o6,a.mrbps=c.BI,a.mram=c.WO);return a};var v4a={WEB:1,MWEB:2,TVHTML5:7,WEB_UNPLUGGED:41,WEB_EMBEDDED_PLAYER:56,TVHTML5_AUDIO:57,TV_UNPLUGGED_CAST:58,TVHTML5_KIDS:59,WEB_MUSIC:61,WEB_CREATOR:62,TVHTML5_UNPLUGGED:65,WEB_REMIX:67,TVHTML5_SIMPLY:75,WEB_KIDS:76,TVHTML5_SIMPLY_EMBEDDED_PLAYER:85,WEB_MUSIC_EMBEDDED_PLAYER:86,WEB_MUSIC_ANALYTICS:31,WEB_GAMING:32,WEB_EXPERIMENTS:42,WEB_HEROES:60,WEB_UNPLUGGED_ONBOARDING:69,WEB_UNPLUGGED_OPS:70,WEB_UNPLUGGED_PUBLIC:71,TVHTML5_VR:72,TVHTML5_FOR_KIDS:93};v_.prototype.Xv=function(){return 1===this.requestType};
v_.prototype.mN=function(){var a;return(null==(a=this.Vb)?void 0:a.mN())||0};g.w(w_,g.J);w_.prototype.encrypt=function(a){(0,g.OD)();if(this.B)var b=this.B;else this.C?(b=new QR(this.C,this.j.j),g.L(this,b),this.B=b):this.B=new PR(this.j.j),b=this.B;return b.encrypt(a,this.iv)};
w_.prototype.decrypt=function(a,b){(0,g.OD)();return(new PR(this.j.j)).decrypt(a,b)};C4a.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.H(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.B=!0;b.al.md("omd_s");c=new Uint8Array(16);mO()?d=new OR(a):e=new PR(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ma(4);break}f=b.j.shift();if(!d){h=e.decrypt(zO(f.buffer),c);m.Ma(5);break}return g.z(m,d.decrypt(zO(f.buffer),c),6);case 6:h=m.B;case 5:l=h;for(var n=0;n<c.length;n++)if(255===c[n])c[n]=0;else{c[n]+=1;break}n=new wO([l]);var p=b.al.Md,
q=f.videoId,r=f.Lq,t=f.formatId,v;null==(v=x_(p,q))||b_a(v,r,t,n);p.II||p.notifySubscribers(q);m.Ma(2);break;case 4:b.al.N("html5_remove_deprecated_ticks")||b.al.md("omdf"),b.al.md("omd_c"),D4a(b),b.B=!1,b.al.AP(),g.ya(m)}})};var N4a=!!Uint8Array.prototype.copyWithin,y_=[],E4a=[],H4a=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A_=[],z_=[],B_=[],F4a=[];g.w(P4a,r_);g.k=P4a.prototype;g.k.AP=function(){this.Md.AP()};
g.k.rP=function(a,b){switch(a){case 10:var c=RO(b,BTa);a=c.I9;var d=!1;switch(a){case 0:this.D=!c.MY.e6;this.iv=c.MY.iv;break;case 2:break;case 23:var e=this.Md;c=c.H6;e.md("omp_r");c.videoId&&(e.Zt=c.videoId);e.Zt!==e.videoData.videoId&&(e.videoData.Q5=e.Zt,e.ya("ompp","vid."+e.Zt));e.PO=!0;break;case 24:c=this.Md;c.md("omp_c");c.PO=!1;c.cF=!1;var f=null==(e=c.Pg)?void 0:e.get(c.Zt);c.notifySubscribers(c.Zt);null!=f&&(f.j=!0);D_(c);break;default:d=!0}this.Md.wm&&this.Md.ya("ombup","id.10;pt."+a+
";len."+b.totalLength+(d?";ignored.1":""));this.C=a;break;case 11:R4a(this,b);break;case 12:this.zP(b,!0);break;case 37:b=RO(b,vTa);(b.aM||b.VR)&&b.videoId&&this.Md.EV.set(b.videoId,b);break;case 31:b=RO(b,GTa);this.Md.q6=b;break;case 60:this.xP(b);break;case 47:this.N("html5_server_playback_start_policy")&&(b=RO(b,PTa),this.Md.playbackStartPolicy=b);break;case 35:this.Ip(b);break;default:this.Md.wm&&this.Md.ya("ombup","id."+a+";len."+b.totalLength+";ignored.1")}};
g.k.xP=function(a){a=RO(a,wTa);this.Md.xP(a)};
g.k.BP=function(a){var b=a.Lq,c=a.Fn,d=a.SA,e=a.Cj,f=a.mu,h=a.startMs,l=a.durationMs,m=a.Cr,n=X3a(a),p=jhb.has(dL[""+a.itag]);c&&this.md(p?"oais_r":"ovis_r");var q=void 0!==this.j[n];this.Md.wm&&this.Md.ya("ombup","id.20;hid."+b+";fid"+n);var r=a.videoId||"";this.B[b]=n;this.G[b]=r;q||(this.j[n]={videoId:r,vW:!1,Ui:p,headers:[]});this.j[n].headers.push(a);this.Md.tA(r,n,p,{Lq:b,Fn:!!c,SA:null!=d?d:-1,mu:null!=f?f:-1,startMs:null!=h?h:-1,durationMs:null!=l?l:-1,Cr:null!=m?m:0,Cj:e})};
g.k.zP=function(a,b){var c=AO(a,0);this.Md.wm&&this.Md.ya("ombup","id."+(b?12:21)+";len."+a.totalLength+";hid."+c);if(1!==a.totalLength){a=a.split(1).Gm;var d=this.B[c]||null,e=this.G[c]||"";if(d){this.Fi(this.j[d].Ui?"oafs_r":"ovfs_r");var f=this.queue;f.j.push({videoId:e,Lq:c,formatId:d,buffer:a,isEncrypted:b});f.B||D4a(f)}}};
g.k.rr=function(a){var b=AO(a,0);this.Md.wm&&this.Md.ya("ombup","id.22;len."+a.totalLength+";hid."+b);a=this.B[b]||null;var c=this.G[b]||"";a&&this.Md.rr(c,b,a)};
g.k.GP=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,r,t,v,x,B,G;return g.H(function(F){switch(F.j){case 1:c.Md.GP();d=zO(a);if(!b){f=d;F.Ma(2);break}return g.z(F,b5a(c.Md,d,c.iv),3);case 3:f=F.B;case 2:e=f;if(!c.Md.enableCompression){F.Ma(4);break}h=c.Md.W();m=null==(l=performance)?void 0:l.now();return g.z(F,O4a(e,h.kb),5);case 5:e=F.B,c.Md.ya("decompression",{ds:"DecompressionStream"in window,wasm:!!h.kb,rt:(null==(n=performance)?NaN:n.now())-m});case 4:try{p=RO(e,OTa)}catch(I){return q=I instanceof
Error?{name:I.name,message:I.message}:{},q.webcrypto=""+ +!!mO(),q.enc=""+ +c.D,r=new WK("onesie.response.parse",q),F.return(Promise.reject(r))}if(1!==p.EY)return t={st:p.EY,webcrypto:""+ +!!mO(),textencoder:""+ +!!g.Qa.TextEncoder},v=new WK("onesie.response.badproxystatus",t),F.return(Promise.reject(v));if(200!==p.IW)return x={st:p.IW},B=new WK("onesie.response.badstatus",x),F.return(Promise.reject(B));G=g.FO(p.body);return F.return(G)}})};
g.k.Ip=function(a){this.N("html5_consume_onesie_next_request_policy_for_sabr")&&(a=RO(a,e3a),this.Md.Ip(a))};
g.k.md=function(a){this.Md.md(a)};
g.k.Fi=function(a){return this.Md.Fi(a)};
g.k.N=function(a){return this.Md.N(a)};g.w(E_,g.J);g.k=E_.prototype;g.k.GV=function(){return""};
g.k.zq=function(a){var b,c;return(null==(c=null==(b=this.Pg)?void 0:b.get(a))?void 0:c.zq())||[]};
g.k.il=function(a,b){var c;return!(null==(c=x_(this,b))||!c.il(a))};
g.k.vk=function(a,b){var c;return(null==(c=x_(this,b))?void 0:c.vk(a))||[]};
g.k.un=function(a,b){var c;return(null==(c=x_(this,b))?void 0:c.un(a))||[]};
g.k.Gc=function(a){this.state=a;this.notifySubscribers()};
g.k.Xv=function(){return!1};
g.k.md=function(a){this.xa.md(a)};
g.k.Fi=function(a){return this.xa.Fi(a)};
g.k.vA=function(a,b){this.al.vA(a,b)};
g.k.sP=function(){this.md("orfb");this.aI=!0;if(c5a(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.pm(),rt:(1E3*B2a(this.Qf)).toFixed(),shost:g.xl(this.QP),trigger:"o1"};this.ya("pathprobe",VK(a))}};
g.k.GP=function(){this.N("html5_remove_deprecated_ticks")||this.md("orpr");this.md("opr_r");this.zW=!0};
g.k.tA=function(a,b,c,d){if(this.Pg){if(!this.Pg.has(a)){var e=new hY(this);this.Pg.set(a,e);g.L(this,e)}var f;null==(f=this.Pg.get(a))||f.tA(b,c,d)}D_(this)};
g.k.xP=function(a){this.Sz=a};
g.k.Ip=function(a){a.videoId&&this.HX.set(a.videoId,a)};
g.k.AP=function(){if(this.Pg)for(var a=g.u(this.Pg.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.Pg.get(b.value))||c.mA()}};
g.k.ya=function(a,b,c){this.xa.ya(a,b,void 0===c?!1:c)};
g.k.rr=function(a,b,c){var d;null==(d=x_(this,a))||d.rr(b,c)};
g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,B,G,F,I,P;return g.H(function(R){switch(R.j){case 1:a.BE.start();a.N("html5_remove_deprecated_ticks")||a.md("ogpd");a.md("or_i");b=a.Z.experiments.ob("html5_onesie_verbose_timing");c={};d=(0,g.OD)();e=function(Z){b&&(c[Z]=(0,g.OD)()-d)};
e("loc_s");if(f=T4a(a.videoData,a.Az)){R.Ma(2);break}e("loc_async");h=g.JJ(a.Z.experiments,"html5_onesie_redirector_timeout_ms");return g.z(R,U4a(a.videoData,a.Az,h),3);case 3:f=R.B;case 2:if(!f)return a.logger.info("Onesie URL creation failed."),l={url:"0"},m=new WK("onesie.unavailable.hotconfig",l),a.fail(m),R.return(a.Up);a.sZ=aQ(f);e("loc_e");n=g.DS(a.Z,g.RT(a.videoData));if(!n.j){p=n.getValue();R.Ma(4);break}return g.z(R,n.j,5);case 5:p=R.B;case 4:q=p;e("oauth");r=W4a(a.playerRequest,a.Z,a.videoData,
q,dY(a.sZ));g.za(R,6);if(a.N("html5_onesie_sync_request_encryption")||r.tF||g.xS(a.Z)&&a.N("html5_embed_onesie_use_sync_encryption")||!mO()){e("or_s_sync");a.gJ=Y4a(r,a.AE,a.Z,a.xa,a.DM.onesieUstreamerConfig,null==(t=a.videoData.DY)?void 0:t.xo);R.Ma(8);break}e("or_s_async");return g.z(R,$4a(r,a.AE,a.Z,a.xa,a.DM.onesieUstreamerConfig,null==(v=a.videoData.DY)?void 0:v.xo),9);case 9:a.gJ=R.B;case 8:g.Ba(R,7);break;case 6:return x=g.Ca(R),a.logger.info("Failed to create OnesieRequestProto."),a.fail(x),
R.return(a.Up);case 7:return e("or_e"),b&&a.ya("oreqvt",c),a.enableCompression=a.gJ.iO.MM,a.md("osor"),B=nUa(a.Z),G=g.ZO(a.gJ,ETa),F={method:"POST",body:G,headers:{"Content-Type":"text/plain",Referer:location.origin}},I=a.N("html5_onesie_media_capabilities"),V4a(f,a.videoData,e5a(a),I),a.wm&&a.ya("ombrs","1"),P=a.xa.W().schedule,a.Qf=new SZ(a,{Od:P,OM:a.wm,Kw:function(Z,ma){a.xa.TE(Z,ma)},
Vo:a.N("html5_disable_bandwidth_cofactors_for_sabr")}),f.set("rn",""+a.Qf.requestNumber),a.QP=f.jf(),y2a(a.Qf,a.QP),a.N("html5_remove_deprecated_ticks")||a.md("ocs"),a.md("or_p"),a.xhr=N2a(new KQ(f),B,a.Qf,KR,F),a.CY.start(),R.return(a.Up)}})};
g.k.Bw=function(){this.md("orh_r")};
g.k.Yt=function(){!this.aI&&this.xhr.pm()&&this.sP();if(this.DD){var a;null==(a=this.fJ)||a.start()}this.yn()};
g.k.vr=function(){this.yn();if(!this.isDisposed()){var a=a5a(this),b=this.xhr;a.rc=b.status;if(b.yf()){var c="onesie.net";a.msg=b.yf()}else 400<=b.status?c="onesie.net.badstatus":b.RE()?this.zW||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.fail(new WK(c,a)):(this.N("html5_remove_deprecated_ticks")||this.md("orf"),this.md("or_fs"),this.Qf.eP((0,g.OD)(),b.pm(),0),this.Gc(4),this.wm&&this.ya("rqs",a));this.wm&&this.ya("ombre","ok."+ +!c);
this.cF=!1;D_(this);Q4a(this.al);this.BE.stop();var d;null==(d=this.fJ)||d.stop();var e;if(c=null==(e=this.Az)?void 0:KZa(e))for(e=0;e<c.length;e++)this.ya("pathprobe",c[e])}};
g.k.FV=function(){};
g.k.RX=function(){if(this.playerResponse){var a;null==(a=this.xhr)||a.abort()}};
g.k.W=function(){return this.Z};
g.k.N=function(a){return this.Z.N(a)};
g.k.E6=function(){if(c5a(this)&&this.Az&&(!this.aI||this.N("html5_onesie_probe_ec_hosts"))){var a=this.Az;if(a.Z.experiments.ob("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:aQ(b.location);c&&cY(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:aQ(d.location))&&cY(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:aQ(e.location))&&cY(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:aQ(c.location))&&cY(a,d,"o3",this)}}};
g.k.qW=function(){this.logger.info("Onesie request timed out");this.cF=!1;if(!D_(this)){var a=a5a(this);a.timeout="1";this.fail(new WK("onesie.request",a))}};
g.k.fail=function(a){var b=this;a=YK(a);this.DD?this.xa.Ae(a):(this.Up.reject(a),this.DD=!0);Q4a(this.al);this.BE.stop();this.N("html5_remove_deprecated_ticks")||this.md("ore");this.md("or_fe");var c,d;null==(c=this.Az)||null==(d=KZa(c))||d.forEach(function(e){b.ya("pathprobe",e)});
this.Gc(5);this.dispose()};
g.k.isComplete=function(){return 3<=this.state};
g.k.DW=function(a){var b,c;return this.isComplete()||!!(null==(b=this.Pg)?0:null==(c=b.get(a))?0:c.j)};
g.k.ZW=function(){return!1};
g.k.En=function(){return 5===this.state};
g.k.notifySubscribers=function(a){for(var b=0;b<this.wF.length;b++)a&&this.wF[b].Se()!==a||F_(this.wF[b],this)};
g.k.ZV=function(){var a,b;return(null==(a=this.gJ)?void 0:null==(b=a.Is)?void 0:b.iQ)||0};
g.k.Ba=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();Q4a(this.al);this.Hj.dispose();var b;null==(b=this.fJ)||b.dispose();this.Gc(-1);this.wF=[];g.J.prototype.Ba.call(this)};
g.k.yn=function(){try{var a=this.xhr;102400<a.pm()&&!this.VW&&(this.md("or100k"),this.VW=!0);if(a.Oq()){var b=a.Uw(),c=b.totalLength;this.wm&&this.ya("ombrss","len."+c);this.Hj.feed(b)}if(this.Pg)for(var d=g.u(this.Pg.keys()),e=d.next();!e.done;e=d.next()){var f=e.value;a=void 0;null==(a=this.Pg.get(f))||a.mA();this.II&&this.notifySubscribers(f)}}catch(h){this.fail(h)}};
g.k.Iv=function(){return this.Qf.requestNumber};g.w(g5a,g.J);g.k=g5a.prototype;g.k.dF=function(a){this.G=void 0;n5a(this);m5a(this,a)};
g.k.qO=function(a){return 0===this.j.length?!1:50>Math.abs(this.j[0].ZV()-a)};
g.k.qt=function(a){if(a instanceof E_)this.j.pop();else{var b=1;a.canRetry()&&(this.j.pop(),null==a||a.dispose(),b=0);this.Da.handleError(a.rg(),a.Aq(),b);!this.policy.Wx||"net.badstatus"!==a.rg()&&"net.connect"!==a.rg()||this.Da.EC(a.Aq())}};
g.k.Ip=function(a){this.B=a;this.G=(0,g.OD)()+(a.backoffTimeMs||0)};
g.k.sE=function(a){if(void 0!==a.action){var b={};b.reason=a.Z9;b.action=a.action;switch(a.action){case 1:this.Da.WG(b);break;case 0:this.Da.EC(b);break;case 2:this.Da.handleError("sabr.config",b,1)}}};
g.k.yE=function(a,b){this.La.N("html5_enable_ssap")&&b&&b!==this.S&&(this.S=b,this.Da.yE(a,b))};
g.k.nE=function(a,b){this.policy.kb&&GV(this.policy)&&(a=this.manifest.K.get(a))&&(b?Q3a(this.C,a):P3a(this.C,a))};
g.k.uE=function(a){a.OJ&&a.PJ&&(a=a.OJ/a.PJ,this.audioTrack.S=!1,this.videoTrack.S=!1,this.Da.xa.seekTo(a,{Id:"sabr_seek",KD:!0,nR:!0}))};
g.k.rE=function(a,b,c){if(a){var d=g.u(a);for(a=d.next();!a.done;a=d.next())a=a.value,this.xp.add(a),this.rq.has(a)&&this.rq.delete(a)}if(b)for(b=g.u(b),a=b.next();!a.done;a=b.next())a=a.value,this.rq.add(a),this.xp.has(a)&&this.xp.delete(a);if(c)for(c=g.u(c),a=c.next();!a.done;a=c.next())b=a.value,this.rq.add(b),this.xp.has(b)&&this.xp.delete(b)};
g.k.vE=function(){};
g.k.tE=function(a,b){qUa(this.policy,a,4,b)};
g.k.Se=function(){return this.xa.Se()||""};
g.k.mN=function(){var a=1E3*g_(this.audioTrack,!0),b=1E3*g_(this.videoTrack,!0);return Math.min(a,b)};
g.k.MH=function(a){z5a(this.Da,t1a(this.K,a))};
g.k.Ba=function(){g.J.prototype.Ba.call(this);this.B=void 0;m5a(this,!0);this.j=[]};g.w(g.G_,g.J);g.k=g.G_.prototype;
g.k.initialize=function(a,b,c){a=a||0;EV(this.policy)||(b=BZ(this.j),y5a(this.xa,new sZ(b.video,b.reason)),this.xa.yw(new sZ(b.audio,b.reason)));this.manifest.isManifestless&&M3a(this.D);this.G&&iSa(this.G,this.videoTrack.j);b=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.manifest.isManifestless?b:a;if(this.policy.j)if(this.policy.Gf){var d;if((null==(d=this.va)?0:f5a(d,this.Se()||""))&&r5a(this)&&(a=H_(this,this.videoTrack),d=H_(this,this.audioTrack),a||d)){o5a(this.qa,this.va);
var e;null==(e=this.Ca)||UZa(e)}}else{var f;(null==(f=this.va)?0:f5a(f,this.Se()||""))&&r5a(this)&&H_(this,this.videoTrack)&&H_(this,this.audioTrack)&&o5a(this.qa,this.va)}else this.Ca&&(s5a(this,this.videoTrack),s5a(this,this.audioTrack),UZa(this.Ca),delete this.Ca);c?(this.policy.Vd?(this.xb=c,J_(this,c)):J_(this,!1),g.bu(this.VD)):(c=0===this.currentTime,o_(this.D,this.videoTrack,this.videoTrack.j,c),o_(this.D,this.audioTrack,this.audioTrack.j,c),this.policy.va&&j5a(this.qa,!0),this.seek(this.currentTime,
{}).xk(function(){}),this.timing.tick("gv"));
(this.manifest.cf||this.manifest.lh||this.manifest.Cb||this.manifest.Yc||this.manifest.Bd)&&this.ya("minMaxSq",{minSq:this.manifest.cf,maxSq:this.manifest.lh,minDvrTime:this.manifest.Cb,maxDvrTime:this.manifest.Yc,startWalltime:this.manifest.Bd})};
g.k.resume=function(){if(this.isSuspended||this.Sq){this.VG=this.Sq=this.isSuspended=!1;try{this.Df()}catch(a){g.TF(a)}}};
g.k.Wy=function(a){a=void 0===a?!1:a;w5a(this);KL(this.xa)&&(this.K=NaN);a?(this.policy.Fa&&this.ya("loader",{setsmb:1}),this.policy.Ca=!0):this.policy.Vd?J_(this,this.xb):J_(this,!1);this.Ik()};
g.k.setAudioTrack=function(a,b,c){c=void 0===c?!1:c;if(!this.isDisposed()){var d=!isNaN(b);c&&d&&(this.audioTrack.ea=Date.now());EV(this.policy)?(c=this.ma.rZ(a.id),this.xa.yw(c)):(c=this.j,c.B=c.manifest.j[a.id],c.S=c.B,c=new rZ(c.S,c.C,d?"t":"m"),this.xa.yw(new sZ(c.audio,c.reason)));if(d&&(d=this.audioTrack.j.index.Mh(b),this.ya("setAudio",{id:a.id,cmt:b,sq:d}),0<=d)){v3a(this.audioTrack,d,NaN,NaN);vR(this.manifest,d,!1);return}L_(this.xa)}};
g.k.setPlaybackRate=function(a){a!==this.S.getPlaybackRate()&&this.S.setPlaybackRate(a)};
g.k.RI=function(a){a.j.info.Ui()?this.xa.yw(a):y5a(this.xa,a)};
g.k.MH=function(a){SQ(a.ib[a.ib.length-1])&&z5a(this,t1a(this.j,a.ib[0].j))};
g.k.zN=function(){return this.xa.zN()};
g.k.xE=function(a){this.xa.xE(a)};
g.k.rz=function(){return this.xa.rz()};
g.k.cn=function(){return this.xa.cn()};
g.k.OP=function(a){this.xa.OP(a)};
g.k.Df=function(){x5a(this);if(this.Wa&&IL(this.Wa)&&!this.Wa.Xj()){var a=b_(this.videoTrack);a=this.policy.gy&&a&&QQ(a);this.manifest.isManifestless&&this.manifest.B&&sR(this.manifest)?(this.K=sR(this.manifest),this.Wa.wl(this.K)):FNa(this.manifest)&&!a?isNaN(this.K)?(this.K=this.currentTime+3600,this.Wa.wl(this.K)):this.K<=this.currentTime+1800&&(this.K=Math.max(this.K+1800,this.currentTime+3600),this.Wa.wl(this.K)):this.Wa.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),
(!isFinite(this.K)||this.K!==a)&&0<a&&(this.Wa.wl(a),this.K=a))}if(!this.isDisposed())if(zNa(this.manifest)&&this.manifest.En()){var b=this.manifest;this.handleError("manifest.net.retryexhausted",b.rb?{rc:b.Og}:{rc:b.Og.toString()},1)}else if(this.policy.j){try{k5a(this.qa);this.manifest.isManifestless&&this.policy.G&&a1a(this.B);if(this.Wa){if(GV(this.policy)&&this.videoTrack.Fa&&this.audioTrack.Fa){b=this.Wa;var c=this.videoTrack.j,d=this.audioTrack.j;!LL(b)&&d&&c&&(TAa(b,c.info,d.info,this.policy.dh),
v5a(this,b))}LL(this.Wa)&&u5a(this)}EV(this.policy)||I_(this);j5a(this.qa)}catch(f){g.UF(f),b=f,this.EC({reason:"exp",ename:b.name,emsg:b.message})}g.bu(this.eb)}else if(!this.manifest.C||!y3a(this.videoTrack)&&!y3a(this.audioTrack)||(this.videoTrack.G||this.audioTrack.G)&&this.policy.vc?b=!1:(this.Ik(),this.xa.seekTo(Infinity,{Id:"checkLoaderTracksSync",hq:!0}),b=!0),!b){x5a(this);if(!this.policy.useUmp)try{n3a(this.videoTrack);if(this.isDisposed())return;n3a(this.audioTrack);if(this.isDisposed())return}catch(f){L3a(this,
f,{origin:"pollSlice"})}this.manifest.isManifestless&&(z3a(this.videoTrack),z3a(this.audioTrack),a1a(this.B),(b=mZ(this.videoTrack))&&b.B&&(b=b.B.G&&!this.policy.Pj,this.ya(b===this.policy.S.cj?"strm":"strmbug",{strm:b,sfmp4:this.policy.S.cj,dfs:this.policy.Pj},!0)));this.Wa?u5a(this):this.policy.C&&((b=mZ(this.videoTrack))&&this.videoTrack.Vw(b),(c=mZ(this.audioTrack))&&this.audioTrack.Vw(c),d_(this.videoTrack)&&d_(this.audioTrack)||(b||c)&&M_(this));I_(this);o_(this.D,this.videoTrack,this.videoTrack.j,
!1);o_(this.D,this.audioTrack,this.audioTrack.j,!1);b=this.videoTrack;a=this.audioTrack;if((!this.Wa||IL(this.Wa)&&!this.policy.Ml)&&!this.B.Wg()&&(EV(this.policy)||k_(b)&&b.j.xg()&&this.j.qa)){c=this.currentTime;d=this.S;a=U0a(d,b.j.info.Zb,a.j.info.Zb,0);var e=ZR(d.Od)+a/$R(d.Od);c+=Math.max(e,e+d.policy.Nz-a/b.j.info.Zb);a:{if(b.C.length){if(b.C[0].info.ib[0].startTime<=c)break a;jZ(b)}d=b.D;for(a=d.B.length-1;0<=a;a--)d.B[a].info.startTime>c&&d.B.pop();p3a(b);b.B&&c<b.B.startTime&&(b.Ja=0,b.j.xg()?
b.B=b.j.Dq(c,!0).ib[0]:b.B=null)}}G3a(this.D,this.videoTrack,this.audioTrack);G3a(this.D,this.audioTrack,this.videoTrack);this.Ya&&!this.isSuspended&&aS(this.schedule)&&(I5a(this,this.Ya),this.Ya="");this.G&&(b=this.G,b.D?(c=b.K+b.policy.Cp,b.C||(c=Math.min(c,b.startTimeSecs+b.policy.nk)),b=Math.max(0,1E3*c-Date.now())):b=NaN,isNaN(b)||g.bu(this.Ub,b));g.bu(this.eb)}};
g.k.EC=function(a){this.xa.EC(a)};
g.k.WG=function(a){this.xa.WG(a)};
g.k.L2=function(a){var b=this;a.xm()&&0===a.Jf().length&&(a.Jy(),this.Wa&&!this.Wa.xm()&&(this.xa.W().wd()&&this.xa.ya("rms",{ld:"seek"}),this.Wa.K=performance.now(),this.xa.ZM()));if(this.policy.Ja&&this.Wa){var c=a===this.Wa.j,d=a.xH();if(d){if(!d.dc||d.qf)c=a.uc({a:c}),c.omt=(this.getCurrentTime()+this.Xc()).toFixed(3),c.to=this.Xc(),this.ya("sbu",c);d.qf&&!a.Xj()&&setTimeout(function(){var e=a.Jf(),f=wL(e,d.startTime+F3a),h=wL(e,b.currentTime);(0>f||f!==h)&&b.ya("sbu_mismatch",{b:vL(e),c:b.currentTime,
s:d.le()})},0)}}this.Df()};
g.k.g7=function(a){if(this.Wa){var b=b_(a===this.Wa.j?this.audioTrack:this.videoTrack);if(a=a.CN())for(var c=0;c<a.length;c++)this.ya("appendedbuffer",{i:c,b:g.mg(a[c].subarray(0,4096),3)});a=void 0;b&&(a=UQ(b));this.handleError("fmt.unplayable",a,1)}};
g.k.qA=function(a){this.xa.qA(a)};
g.k.DP=function(a,b,c){this.manifest.isManifestless&&r2a(this,b,c,!!a.info.video,!0)};
g.k.CP=function(a,b,c,d){a.info.video&&this.C.CP(b,c,d)};
g.k.SI=function(a){this.j.SI(a)};
g.k.mD=aa(10);g.k.WJ=function(a){this.Uc=a;var b;null!=(b=this.audioTrack.ma)&&(b.od=a);null!=(b=this.videoTrack.ma)&&(b.od=a)};
g.k.cI=function(){return this.videoTrack.S||this.audioTrack.S};
g.k.seek=function(a,b){if(this.isDisposed())return Vf();if(this.cI())return Vf("seeking to head");x5a(this);this.Xq=(0,g.OD)();EV(this.policy)||I_(this,a);this.Wa&&this.Wa.j&&this.Wa.B&&!this.xa.getVideoData().bU&&(this.Wa.j.isLocked()||this.Wa.B.isLocked())&&L_(this.xa,{reattachOnLockedBuffer:1,vsb:""+this.Wa.B.isLocked(),asb:""+this.Wa.j.isLocked()});var c=this.currentTime;!this.policy.j||b.KD||this.policy.va||this.qa.dF(!0);this.currentTime=this.B.seek(a,b);qZ(this.C,a,c);M_(this);return Uf(this.currentTime)};
g.k.qO=function(a){return this.policy.va&&this.qa.qO(a)};
g.k.dF=function(a){this.policy.va&&this.qa.dF(a)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.lN=function(){return this.audioTrack.j.info};
g.k.oN=function(){return this.videoTrack.j.info};
g.k.kN=function(){return this.audioTrack.j.info.Db};
g.k.nN=function(){return this.videoTrack.j.info.Db};
g.k.Ba=function(){try{this.Wy();jZ(this.audioTrack);jZ(this.videoTrack);var a;null==(a=this.audioTrack.ma)||G1a(a);var b;null==(b=this.videoTrack.ma)||G1a(b);g.J.prototype.Ba.call(this)}catch(c){g.TF(c)}};
g.k.handleError=function(a,b,c){c=void 0===c?0:c;var d=XK(c);if("fmt.unplayable"===a&&this.manifest.isLive){this.policy.Xr=!1;var e=this.manifest;if(e.isManifestless)for(var f in e.j)e.j[f].index.segments=[]}b=new WK(a,b,c);g.ab(this);VK(b.details);this.xa.handleError(b);"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose()};
g.k.uc=function(){var a=b_(this.audioTrack),b=b_(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.B.Wg(),lmf:this.j.j.isLocked(),lbw:qOa(this.schedule).toFixed(3),lhd:ZR(this.schedule).toFixed(3),lst:(1E9*(this.schedule.B.Si()||0)).toFixed(3),laa:a?a.le():"",lva:b?b.le():"",lar:this.audioTrack.B?this.audioTrack.B.le():"",lvr:this.videoTrack.B?this.videoTrack.B.le():"",laq:""+e_(this.audioTrack),lvq:""+e_(this.videoTrack)};this.Wa&&!this.Wa.jh()&&this.Wa.j&&this.Wa.B&&(a.lab=vL(this.Wa.j.Jf()),
a.lvb=vL(this.Wa.B.Jf()));this.Fa&&(a.lapt=((0,g.OD)()-this.Fa).toFixed(0),a.lapr=A5a(this));this.Oa&&(a.lapmbht=((0,g.OD)()-this.Oa).toFixed(0));return a};
g.k.Ik=function(){try{this.policy.j&&this.qa.dF(!1),this.audioTrack.Ik(),this.videoTrack.Ik()}catch(a){g.TF(a)}this.policy.C=""};
g.k.gN=function(){return eZ(this.S)};
g.k.ya=function(a,b,c){this.xa.ya(a,b,void 0===c?!1:c)};
g.k.Se=function(){return this.xa.Se()};
g.k.hq=function(a,b){a/=b;isNaN(this.timestampOffset)&&M5a(this,a-Math.min(a,this.policy.Ey));return(a-this.timestampOffset)*b};
g.k.Xc=function(){return this.timestampOffset};
g.k.Wg=function(){return this.B.Wg()};
g.k.Lv=function(){this.C.Lv()};
g.k.mB=function(a){EV(this.policy)||this.j.mB(a)};
g.k.jF=function(a,b){if(!this.ea)return!1;var c=this.videoTrack.j.index.Mh(a);return this.ea.jF(a,b,c)};
g.k.Kr=function(a,b){if(this.ea&&this.C.Kr(a,this.ea))return M5a(this,this.timestampOffset-b),M_(this),!0;b=this.videoTrack.j.index.Mh(a);this.handleError("ad.skipfailed",{dec:!!this.ea,t:a.toFixed(3),sq:b});return!1};
g.k.sz=function(a){return this.C.sz(a)};
g.k.RV=function(){return this.manifest};
g.k.isOffline=function(){return!!this.xa.getVideoData().cotn};
g.k.TE=function(a,b){this.xa.TE(a,b)};
g.k.KQ=function(a){var b=this.xa.getVideoData().Ij;if(b){var c=this.D;c.qh=a;c.Ij=b;N_(this)}};
g.k.sI=function(a){this.videoTrack.S=!1;this.audioTrack.S=!1;this.B.B=!1;this.xa.sI(a)};
g.k.cR=function(a){this.B.cR(a-this.Xc())};
g.k.rM=function(){this.xa.rM()};
g.k.yE=function(a,b){if(this.Uc){var c=this.Uc;b=void 0===b?"":b;if(c.yR!==b){c.yR=b;var d=c.timeline.B;if(d&&d.getVideoData()){b=[];var e=d.getVideoData();d=d.videoData.clientPlaybackNonce;var f=new Map,h=[],l=0,m=0,n=0,p=[];a=g.u(a);for(var q=a.next();!q.done;q=a.next()){var r=q.value,t=r.clipId;if(t){var v;if(r.lx){n=r.lx.s6||0;var x=r.lx.t6||1;q=(r.lx.P9||0)/(r.lx.Q9||1)*1E3;x=n/x*1E3;n=v=q+x}else q=n,x=0,v=q,c.Bm.add(t);var B=void 0,G=null!=(B=f.get(t))?B:0;var F=c;B=q;var I=v,P=F.timeline.j.get(t);
if(null!=P&&P.length){G<P.length&&(P[G].Kc=B,P[G].B=I);if(F=F.Wo.get(t))F.start=B,F.end=I;B=!0}else B=!1;B?f.set(t,G+1):(p.push(t),r.lx&&(p=new g.oK(q,v,{id:p.join(","),namespace:"ssap",priority:9}),c.Wo.set(t,p),p=[]),B=G=void 0,(null==(G=r.lx)?void 0:G.Maa)===(null==(B=e)?void 0:B.videoId)?(h.length&&e0a(c,l||0,m,h),m=l=v,h=[],r=void 0,t!==(null==(r=e)?void 0:r.clientPlaybackNonce)&&(r=void 0,c.api.ya("ssap",{cnm:1,cid:t,cpn:null==(r=e)?void 0:r.clientPlaybackNonce})),e&&(e.Mo=q),t=new yY(q,q+(x||
0),!x,1,c.timeline,e,void 0),b.push(t),B_a(c.timeline,q,v,[t])):(B=c.j.get(t),I=void 0,G=null!=(I=B)?I:new g.hT(c.api.W(),{cpn:t}),c.Bm.has(t)&&c.j.set(t,G),l=Math.min(q,l),m=Math.max(v,m),c.api.ya("ssap",{e:q,d:x,c:t,p:B?1:0}),G.Mo=q,t=void 0,r=null==(t=r.U6)?void 0:t.KO,q=new yY(q,q+(x||0),!x,2,c.timeline,G,r),h.push(q)))}else c.api.ya("ssap",{cm:1})}h.length&&e0a(c,l||0,m,h);d&&b.length&&c.timeline.j.set(d,b);c.Wo.size&&c.xa.Ay(Array.from(c.Wo.values()))}}}};
g.k.rI=function(a){a!==this.policy.Me&&((this.policy.Me=a)||this.Df())};g.k=g.O_.prototype;g.k.iz=function(a,b,c,d,e,f){return this.od.iz(a,b,c,d,e,f)};
g.k.ot=function(a,b,c,d,e,f){return this.od.ot(a,b,c,d,e,f)};
g.k.JH=function(a){this.od.JH(a)};
g.k.qt=function(a,b){return this.od.qt(a,b)};
g.k.Lv=function(){this.od.Lv()};
g.k.jF=function(a,b,c){return this.od.jF(a,b,c)};
g.k.uu=function(a,b){this.od.uu(a,b)};
g.k.OQ=function(){this.od.OQ()};
g.k.YC=aa(40);g.k.Rk=function(a,b,c){this.od.Rk(a,b,c)};
g.k.EF=aa(38);g.k.MP=function(a,b,c,d,e,f,h,l,m){this.od.MP(a,b,c,d,e,f,h,l,m)};
g.k.eR=function(a){this.od.eR(a)};
g.k.LP=function(a,b,c,d){this.od.LP(a,b,c,d)};
g.k.Vt=function(a){return this.od.Vt(a)};g.w(P_,g.lG);g.w(Q_,P_);Q_.prototype.K=function(a,b){if(a&&b){var c=1*Number(Fl(a,"cpi"))+1;isNaN(c)||0>=c||c<this.C?(this.D.stop(),this.B.stop(),this.C=-1,this.j={}):(c>this.C&&(this.C=c,g.jd(this.j)||(this.j={},this.D.stop(),this.B.stop())),this.j[b]=a,g.bu(this.B))}};
Q_.prototype.G=function(){for(var a=g.u(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ra;for(var d=this.C,e=this.j[c].match(vl),f=[],h=g.u(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.ye(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e<c.length;++e)d[2*e+4]=c.charCodeAt(e);b.call(this,
"rotated_need_key_info_ready",new T1a(d,"fairplay",!0))}this.j={}};
Q_.prototype.Ba=function(){this.j={};P_.prototype.Ba.call(this)};g.w(R_,P_);
R_.prototype.D=function(a){var b;a:{if((b=a.cryptoPeriodIndex)&&0<this.j.length)for(var c=g.u(this.j),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}if(!b){b=(0,g.OD)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.u(this.C.values());for(var e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c?(c=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30))):c=0;this.ra("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length});
0>=c?O5a(this,a):(this.j.push({time:b+c,info:a}),g.bu(this.B,c))}};
R_.prototype.Ba=function(){this.j=[];P_.prototype.Ba.call(this)};var K3={},W5a=(K3.DRM_TRACK_TYPE_AUDIO="AUDIO",K3.DRM_TRACK_TYPE_SD="SD",K3.DRM_TRACK_TYPE_HD="HD",K3.DRM_TRACK_TYPE_UHD1="UHD1",K3);g.w(S5a,g.J);g.w(Y5a,g.lG);g.k=Y5a.prototype;g.k.Hp=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=AR(b.B)?d:c;d=new Uint8Array(AR(b.B)?c:d);AR(b.B)&&o6a(d);c=g.mg(d,4);o6a(d);d=g.mg(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),j6a(this,","),S_(this,{onkeystatuschange:1}),this.status="kc",this.ra("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.isDisposed()||(this.ra("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.K)/1E3,this.K=NaN,this.ra("ctmp","provf",{et:a.toFixed(3)})));XK(b)&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Ja&&this.S?!1:!a&&this.requestNumber===b.requestNumber};
g.k.Ba=function(){this.j={};g.lG.prototype.Ba.call(this)};
g.k.uc=function(){var a={ctype:this.ea.contentType||"",length:this.ea.initData.length,requestedKeyIds:this.Fa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(a.keyStatuses=this.j);return a};
g.k.Lh=function(){var a=this.D.join();if(T_(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
g.k.jf=function(){return this.url};g.w(U_,g.J);g.k=U_.prototype;g.k.M2=function(a){if(this.G){var b=a.messageType||"license-request";this.G(new Uint8Array(a.message),b)}};
g.k.Hp=function(){this.S&&this.S(this.j.keyStatuses)};
g.k.pY=function(a){this.G&&this.G(a.message,"license-request")};
g.k.oY=function(a){if(this.C){if(this.B){var b=this.B.error.code;a=this.B.error.systemCode}else b=a.errorCode,a=a.systemCode;this.C("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
g.k.nY=function(){this.K&&this.K()};
g.k.update=function(a){var b=this;if(this.j)return(IR.isActive()&&IR.yu()?IR.ll("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,eP(function(c){q6a(b,"t.update",c)}));
this.B?this.B.update(a):this.element.addKey?this.element.addKey(this.ma.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.ma.keySystem,a,this.initData,this.sessionId);return uC()};
g.k.Ba=function(){this.j&&this.j.close();this.element=null;g.J.prototype.Ba.call(this)};g.w(V_,g.J);g.k=V_.prototype;g.k.YL=function(){var a=this;if(this.j.keySystemAccess)return(IR.isActive()&&IR.yu()?IR.ll("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.isDisposed())if(a.B=c,IR.isActive()&&IR.yu())IR.ll("emeset",function(){return a.element.setMediaKeys(c)});
else{var d;null==(d=a.element)||d.setMediaKeys(c)}});
if(zR(this.j))this.C=new (yR())(this.j.keySystem);else if(BR(this.j)){this.C=new (yR())(this.j.keySystem);var b;null==(b=this.element)||b.webkitSetMediaKeys(this.C)}else IR.isActive()&&this.ya("emev",{v:"01b"}),bD(this.G,this.element,["keymessage","webkitkeymessage"],this.P2),bD(this.G,this.element,["keyerror","webkitkeyerror"],this.O2),bD(this.G,this.element,["keyadded","webkitkeyadded"],this.N2);return null};
g.k.setServerCertificate=function(){return this.B.setServerCertificate?"widevine"===this.j.flavor&&this.j.Tl?this.B.setServerCertificate(this.j.Tl):DR(this.j)&&this.j.eb?this.B.setServerCertificate(this.j.eb):null:null};
g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.B.createSession();CR(this.j)?c=r6a(c,this.j.eb):DR(this.j)&&(c=N5a(c)||new Uint8Array(0));b&&b("genreq");var e=IR.isActive()&&IR.yu()?IR.ll("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c);
var f=new U_(null,null,null,d,null);e.then(function(){b&&b("genreqsuccess")},eP(function(l){q6a(f,"t.generateRequest",l)}));
return f}if(zR(this.j))return t6a(this,c);if(BR(this.j))return s6a(this,c);if(null==(e=this.element)?0:e.generateKeyRequest)this.element.generateKeyRequest(this.j.keySystem,c);else{var h;null==(h=this.element)||h.webkitGenerateKeyRequest(this.j.keySystem,c)}return this.D=new U_(this.element,this.j,c,null,null)};
g.k.P2=function(a){var b=u6a(this,a);b&&b.pY(a)};
g.k.O2=function(a){var b=u6a(this,a);b&&b.oY(a)};
g.k.N2=function(a){var b=u6a(this,a);b&&b.nY(a)};
g.k.getMetrics=function(){if(this.B&&this.B.getMetrics)try{var a=this.B.getMetrics()}catch(b){}return a};
g.k.Ba=function(){this.C=this.B=null;var a;null==(a=this.D)||a.dispose();a=g.u(Object.values(this.K));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.K={};g.J.prototype.Ba.call(this);delete this.element};g.k=W_.prototype;g.k.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
g.k.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
g.k.Of=function(){this.keys=[];this.values=[]};
g.k.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
g.k.findIndex=function(a){return g.Cb(this.keys,function(b){return g.Wb(a,b)})};g.w(x6a,g.lG);g.k=x6a.prototype;g.k.H7=function(a){this.gj({onecpt:1});a.initData&&A6a(this,new Uint8Array(a.initData),a.initDataType)};
g.k.d8=function(a){this.gj({onndky:1});A6a(this,a.initData,a.contentType)};
g.k.qA=function(a){this.gj({onneedkeyinfo:1});this.Z.N("html5_eme_loader_sync")&&(this.S.get(a.initData)||this.S.set(a.initData,a));z6a(this,a)};
g.k.vU=function(a){this.C.push(a);X_(this)};
g.k.createSession=function(a){var b=C6a(this)?W1a(a):g.mg(a.initData);this.B.get(b);this.Ca=!0;a=new Y5a(this.videoData,this.Z,a,this.drmSessionId);this.B.set(b,a);a.subscribe("ctmp",this.NI,this);a.subscribe("keystatuseschange",this.Hp,this);a.subscribe("licenseerror",this.TI,this);a.subscribe("newlicense",this.kY,this);a.subscribe("newsession",this.lY,this);a.subscribe("sessionready",this.wY,this);a.subscribe("fairplay_next_need_key_info",this.cY,this);this.Z.N("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange",
this.TR,this);b6a(a,this.D)};
g.k.kY=function(a){this.isDisposed()||(this.gj({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ra("heartbeatparams",a)))};
g.k.lY=function(){this.isDisposed()||(this.gj({newlcssn:1}),this.C.shift(),this.Ca=!1,X_(this))};
g.k.wY=function(){if(zR(this.j)&&(this.gj({onsnrdy:1}),this.Oa--,0===this.Oa)){var a=this.qa,b,c;null==(b=a.element)||null==(c=b.msSetMediaKeys)||c.call(b,a.C)}};
g.k.Hp=function(a){if(!this.isDisposed()){!this.Ja&&this.videoData.N("html5_log_drm_metrics_on_key_statuses")&&(D6a(this),this.Ja=!0);this.gj({onksch:1});var b=this.TR;if(!T_(a)&&g.dE&&"com.microsoft.playready"===a.B.keySystem&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(T_(a))for(var e=g.u(Object.keys(a.j)),f=e.next();!f.done;f=e.next())f=f.value,"usable"===a.j[f].status&&c.push(a.j[f].type),"unknown"!==a.j[f].status&&(d=!1);if(!T_(a)||d)c=a.D;c=i6a(c)}b.call(this,c);
this.ra("keystatuseschange",a)}};
g.k.NI=function(a,b){this.isDisposed()||this.ra("ctmp",a,b)};
g.k.cY=function(a,b){this.isDisposed()||this.ra("fairplay_next_need_key_info",a,b)};
g.k.TI=function(a,b,c,d){this.isDisposed()||(this.videoData.N("html5_log_drm_metrics_on_error")&&D6a(this),this.ra("licenseerror",a,b,c,d))};
g.k.Bv=function(){return this.ma};
g.k.TR=function(a){var b=g.MP("auto",a,!1,"l");if(this.videoData.Jl){if(this.ma.equals(b))return}else if(RKa(this.ma,a))return;this.ma=b;this.ra("qualitychange");this.gj({updtlq:a})};
g.k.Ba=function(){this.j.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.C=[];for(var a=g.u(this.B.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.NI,this),b.unsubscribe("keystatuseschange",this.Hp,this),b.unsubscribe("licenseerror",this.TI,this),b.unsubscribe("newlicense",this.kY,this),b.unsubscribe("newsession",this.lY,this),b.unsubscribe("sessionready",this.wY,this),b.unsubscribe("fairplay_next_need_key_info",this.cY,this),this.Z.N("html5_enable_vp9_fairplay")&&
b.unsubscribe("qualitychange",this.TR,this),b.dispose();this.B.clear();this.K.Of();this.S.Of();this.heartbeatParams=null;g.lG.prototype.Ba.call(this)};
g.k.uc=function(){for(var a={systemInfo:this.j.uc(),sessions:[]},b=g.u(this.B.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.uc());return a};
g.k.Lh=function(){return 0>=this.B.size?"no session":""+this.B.values().next().value.Lh()+(this.G?"/KR":"")};
g.k.gj=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(VK(a),(this.Z.wd()||b)&&this.ra("ctmp","drmlog",a))};g.w(E6a,g.J);g.k=E6a.prototype;g.k.aH=function(){return!!this.PD};
g.k.fI=function(){return this.B};
g.k.handleError=function(a){var b=this;K6a(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!J6a(this,a.errorCode,a.details))&&!O6a(this,a)){if("yt"!==this.La.Fa&&M6a(this,a)&&this.videoData.Po&&(0,g.OD)()/1E3>this.videoData.Po&&"hm"===this.La.Fa){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.Po;c.init=this.videoData.gS/1E3;c.now=(0,g.OD)()/1E3;c.systelapsed=((0,g.OD)()-this.videoData.gS)/1E3;
a=new WK(a.errorCode,c,2);this.xa.Sg(a.errorCode,2,"SIGNATURE_EXPIRED",VK(a.details))}if(XK(a.severity)){var d;c=null==(d=this.xa.Da)?void 0:d.j.j;if(this.La.N("html5_use_network_error_code_enums"))if(L6a(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else{if(!this.La.S&&"auth"===a.errorCode&&429===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}}else L6a(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.La.S||"auth"!==a.errorCode||"429"!==a.details.rc||(e="TOO_MANY_REQUESTS",f="6");this.xa.Sg(a.errorCode,
a.severity,e,VK(a.details),f)}else this.xa.ra("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Ae(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.OD)(),zU(a,"manifest",function(h){b.G=!0;b.ya("pathprobe",h)},function(h){b.Ae(h.errorCode,h.details)}))}};
g.k.ya=function(a,b){this.xa.Lc().ya(a,b)};
g.k.Ae=function(a,b){b=VK(b);this.xa.Lc().Ae(a,b)};R6a.prototype.N=function(a){return this.Z.N(a)};g.w(Z_,g.J);Z_.prototype.Xd=function(a){g7a(this);this.playerState=a.state;0<=this.B&&g.cH(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
Z_.prototype.onError=function(a){if("player.fatalexception"!==a||this.provider.N("html5_exception_to_health"))a.match(dib)?this.networkErrorCount++:this.nonNetworkErrorCount++};
Z_.prototype.send=function(){if(!(this.C||0>this.j)){g7a(this);var a=g.DN(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.Ah;this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.aH(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.aH(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.aH(this.playerState,16)||g.aH(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.aH(this.playerState,1)&&g.aH(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.aH(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.aH(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.aH(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=H9a[BT(this.provider.videoData)];a:switch(this.provider.Z.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=h7a(this.provider),
f=0>this.B?a:this.B-this.j;a=this.provider.Z.gg+36E5<(0,g.OD)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:f,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,playerCanaryStage:e,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.AT(this.provider.videoData),isGapless:this.provider.videoData.ea,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai};
a||g.zD("html5PlayerHealthEvent",b);this.C=!0;this.dispose()}};
Z_.prototype.Ba=function(){this.C||this.send();g.J.prototype.Ba.call(this)};
var dib=/\bnet\b/;var i7a=/[?&]cpn=/;var n7a=Math.pow(10,8);g.w(g.b0,g.J);g.k=g.b0.prototype;g.k.y5=function(){var a=g.DN(this.provider);r7a(this,a)};
g.k.dD=function(){return this.Pa};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.DN(this.provider),-1<["PL","B","S"].indexOf(this.lf)&&(!g.jd(this.j)||a>=this.D+30)&&(g.a0(this,a,"vps",[this.lf]),this.D=a),!g.jd(this.j))){7E3===this.sequenceNumber&&g.UF(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){u7a(this,a);var b=a,c=this.provider.xa.oD(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.wc,h=e&&!this.Yc;d>c.totalVideoFrames||5E3<f?A7a(this,"html5.badframedropcount",
"df."+d+";tf."+c.totalVideoFrames):(0<f||h)&&g.a0(this,b,"df",[f]);this.wc=d;this.Yc=e;0<this.S&&(g.a0(this,a,"glf",[this.S]),this.S=0);this.provider.Z.wd()&&this.provider.N("html5_record_now")&&this.ya("now",{wt:(0,g.OD)()});a={};this.provider.videoData.B&&(a.fmt=this.provider.videoData.B.itag,(b=this.provider.videoData.D)&&b.itag!==a.fmt&&(a.afmt=b.itag));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.ma&&(a.addocid=this.ma);this.contentCpn&&(a.ccpn=this.contentCpn);
this.qa&&(a.cdocid=this.qa);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=NT(this.provider.videoData);a.content_v=PT(this.provider.videoData);a.ns=this.provider.Z.Fa;this.provider.Z.N("html5_delta_encode_fexp")?a.fexp=XNa(this.provider.Z.experiments).toString():a.fexp=this.provider.Z.experiments.experimentIds.toString();a.cl=(566696613).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=BT(this.provider.videoData))&&(a.live=b);this.provider.videoData.pj()&&
(a.drm=1,this.provider.videoData.K&&(a.drm_system=Ohb[this.provider.videoData.K.flavor]||0),this.provider.videoData.Rx&&(a.drm_product=this.provider.videoData.Rx));fC()&&this.provider.videoData.G&&(a.ctt=this.provider.videoData.G,a.cttype=this.provider.videoData.Jm,this.provider.videoData.mdxEnvironment&&(a.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(a.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.XZ&&(a.dai_fallback=
"1")):this.provider.videoData.fd?a.dai="cs":this.provider.videoData.CL&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.jU){if(b=this.provider.videoData.jU,a&&b)for("3pp"===b.ns&&(a.ns="3pp"),c=g.u(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.Ud.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId;b={cpn:a.cpn,sequenceNumber:a.seq,serializedWatchEndpointLoggingContext:this.provider.videoData.W6};
$_.length&&(b.decoderInfo=$_);if(g.TT(this.provider.videoData)||this.Ca)b.transitionStitchType=4;b=g.ZO(b,q7a);a.qclc=g.mg(b,4);this.provider.Z.N("html5_qoe_only_report_embargoed_state_when_embargoed")?this.Fa&&(a.embargoed="1"):a.embargoed=this.Fa?"1":"0";g.sd(a,this.provider.Z.j);a=g.Dl("//"+this.provider.Z.Qm+"/api/stats/qoe",a);c=b="";d=g.u(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.j[e]?g.UF(new g.nD("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),
100<e.length?c+=e:b+=e);w7a(this,a+b,c.replace(/ /g,"%20"))}this.j={}}};
g.k.xZ=function(){if(this.provider.videoData.K){var a=this.provider.videoData.K;c0(this,"eme-"+(a.keySystemAccess?"final":zR(a)?"ms":CR(a)?"ytfp":BR(a)?"safarifp":"nonfinal"))}};
g.k.Xd=function(a){var b=a.state,c=g.DN(this.provider),d=this.getPlayerState(a.state);if(d!==this.lf){c<this.D||("PL"===this.lf?this.playTimeSecs+=c-this.D:"B"===this.lf&&this.va&&(this.va=!1,this.rebufferTimeSecs+=c-this.Cb,!this.rb&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.provider.xa.lE(),this.j.qoealert=["1"],this.rb=!0)),"B"!==d||"PL"!==this.lf&&"PB"!==this.lf||(this.va=!0),this.D=c);"PL"===this.lf&&("B"===d||"S"===d)||this.provider.Z.wd()?u7a(this,c):(this.xb||"PL"!==d||(this.xb=
!0,t7a(this,c,this.provider.xa.kD())),r7a(this,c));"PL"===d&&g.bu(this.Bd);var e=[d];a=a.state.seekSource;"S"===d&&a&&e.push("ss."+a);g.a0(this,c,"vps",e);this.lf=d;this.D=this.Cb=c;this.G=!0}d=b.Ah;g.aH(b,128)&&d&&(d.zJ=d.zJ||"",z7a(this,c,d.errorCode,d.eH,d.zJ));(g.aH(b,2)||g.aH(b,128))&&this.reportStats(c);b.isPlaying()&&!this.K&&(0<=this.B&&(this.j.user_intent=[this.B.toString()]),this.K=!0);x7a(this)};
g.k.zE=function(a){var b=g.DN(this.provider);g.a0(this,b,"vfs",[a.j.id,a.B,this.qd,a.reason]);this.qd=a.j.id;var c=this.provider.xa.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.uS();1<d&&c.push(d);g.a0(this,b,"view",c)}this.fb||(this.provider.Z.wd()&&c0(this,this.provider.Z.experiments.ob("html5_raw_progress_v2")?"rqs2":"rqs"),this.provider.videoData.j&&RP(this.provider.videoData.j)&&(this.j.preload=["1"]));this.G=this.fb=!0;"m"===a.reason&&100===
++this.Vd&&B7a(this,2);g.a0(this,b,"vps",[this.lf]);this.reportStats(b)};
g.k.iE=function(a){var b=g.DN(this.provider);a.j.id!==this.Va&&(g.a0(this,b,"afs",[a.j.id,this.Va,a.reason]),this.Va=a.j.id)};
g.k.Wt=aa(44);g.k.Xn=function(a){this.Fa=a};
g.k.onPlaybackRateChange=function(a){var b=g.DN(this.provider);a&&a!==this.Ad&&(g.a0(this,b,"rate",[a]),this.Ad=a);this.reportStats(b)};
g.k.Qn=aa(17);g.k.getPlayerState=function(a){if(g.aH(a,128))return"ER";if(g.aH(a,2048))return"B";if(g.aH(a,512))return"SU";if(g.aH(a,16)||g.aH(a,32))return"S";if(g.WL(a)&&g.aH(a,64))return"B";var b=eib[YL(a)];g.UJ(this.provider.Z)&&"B"===b&&3===this.provider.xa.getVisibilityState()&&(b="SU");"B"===b&&g.aH(a,4)&&(b="PB");return b};
g.k.Ba=function(){g.J.prototype.Ba.call(this);g.mC(this.Mb);g.mC(this.Ub)};
g.k.CJ=function(a){this.isOffline=a;g.a0(this,g.DN(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.k.ya=function(a,b,c){var d=this.j.ctmp||[],e=-1!==this.Kd.indexOf(a);e||this.Kd.push(a);if(!c||!e){b="string"!==typeof b?VK(b):b;b=C7a(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.DN(this.provider);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.j.ctmp=d;x7a(this);return f}};
g.k.SE=function(a,b,c){this.C={w$:Number(this.ya("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),JX:a,i$:b,isAd:c}};
g.k.LA=function(a,b,c){g.a0(this,g.DN(this.provider),"ad_playback",[a,b,c])};
var L3={},eib=(L3[5]="N",L3[-1]="N",L3[3]="B",L3[0]="EN",L3[2]="PA",L3[1]="PL",L3),$_=[];E7a.prototype.update=function(){if(this.S){var a=this.provider.xa.Mk()||0,b=g.DN(this.provider);if(a!==this.j||H7a(this,a,b)){var c;if(!(c=a<this.j||a-this.j>b-this.Bp+2||H7a(this,a,b))){c=this.provider.xa.getVolume();var d=c!==this.ea,e=this.provider.xa.isMuted()?1:0;e!==this.ma?(this.ma=e,c=!0):(!d||0<=this.D||(this.ea=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(f0(this),this.B=a);this.Bp=b;this.j=a}}};J7a.prototype.send=function(a){var b=this;if(!this.fb){var c=L7a(this),d=g.Dl(this.uri,c);this.Z.N("vss_through_gel_double")&&M7a(d);this.qa&&!this.Z.N("html5_simplify_pings")?R7a(this,d):K7a(this,a).then(function(e){b.qa&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});m7a(d,e,{token:b.ma,AR:b.Ub,mdxEnvironment:b.mdxEnvironment},b.Z,a,b.Ca,b.isFinal&&b.hg||b.Ja||b.G&&b.dh)});
this.fb=!0}};
J7a.prototype.B=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var M3={},P7a=(M3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,M3.LIVING_ROOM_APP_MODE_MAIN=1,M3.LIVING_ROOM_APP_MODE_KIDS=2,M3.LIVING_ROOM_APP_MODE_MUSIC=3,M3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,M3.LIVING_ROOM_APP_MODE_GAMING=5,M3),N3={},O7a=(N3.EMBEDDED_PLAYER_MODE_UNKNOWN=0,N3.EMBEDDED_PLAYER_MODE_DEFAULT=1,N3.EMBEDDED_PLAYER_MODE_PFP=2,N3.EMBEDDED_PLAYER_MODE_PFL=3,N3),O3={},I7a=(O3[0]=0,O3[1]=1,O3[2]=2,O3);g.w(h0,g.J);g.k=h0.prototype;g.k.df=function(){this.j.update();if(X7a(this)){if(!this.provider.Z.N("deprecate_delay_ping")&&this.B&&this.provider.videoData.kb){var a=i0(this,"delayplay");a.Uf=!0;a.send();this.va=!0}S7a(this)}};
g.k.Xd=function(a){if(!this.isDisposed())if(g.aH(a.state,2)||g.aH(a.state,512))this.K="paused",(g.cH(a,2)||g.cH(a,512))&&this.B&&(l0(this),m0(this).send(),this.G=NaN);else if(g.aH(a.state,8)){this.K="playing";var b=this.B&&isNaN(this.D)?j0(this):NaN;!isNaN(b)&&(0>bH(a,64)||0>bH(a,512))&&(a=Y7a(this,!1),a.D=b,a.send())}else this.K="paused"};
g.k.Ba=function(){g.J.prototype.Ba.call(this);l0(this);F7a(this.j)};
g.k.uc=function(){return L7a(i0(this,"playback"))};
g.k.nB=function(){this.provider.videoData.S.eventLabel=NT(this.provider.videoData);this.provider.videoData.S.playerStyle=this.provider.Z.playerStyle;this.provider.videoData.Oi&&(this.provider.videoData.S.feature="pyv");this.provider.videoData.S.vid=this.provider.videoData.videoId;var a=this.provider.videoData.S;var b=this.provider.videoData;b=b.isAd()||!!b.Oi;a.isAd=b};
g.k.Tj=function(a){var b=i0(this,"engage");b.ea=a;return N7a(b,b8a(this.provider))};a8a.prototype.isEmpty=function(){return this.endTime===this.startTime};n0.prototype.N=function(a){return this.Z.N(a)};
var c8a={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.w(g.o0,g.J);g.k=g.o0.prototype;g.k.Xd=function(a){if(g.cH(a,1024)||g.cH(a,512)||g.cH(a,4)){if(this.B){var b=this.B;0<=b.B||(b.j=-1,b.delay.stop())}this.qoe&&(b=this.qoe,b.K||(b.B=-1))}if(this.provider.videoData.enableServerStitchedDai&&this.yh){var c;null==(c=this.C.get(this.yh))||c.Xd(a)}else this.j&&this.j.Xd(a);this.qoe&&this.qoe.Xd(a);this.B&&this.B.Xd(a)};
g.k.df=function(){if(this.provider.videoData.enableServerStitchedDai&&this.yh){var a;null==(a=this.C.get(this.yh))||a.df()}else this.j&&this.j.df()};
g.k.Xn=function(a){this.qoe&&this.qoe.Xn(a)};
g.k.Ae=function(a,b){this.qoe&&A7a(this.qoe,a,b);if(this.B)this.B.onError(a)};
g.k.zE=function(a){this.qoe&&this.qoe.zE(a)};
g.k.iE=function(a){this.qoe&&this.qoe.iE(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
g.k.Wt=aa(43);g.k.ya=function(a,b,c){this.qoe&&this.qoe.ya(a,b,c)};
g.k.SE=function(a,b,c){this.qoe&&this.qoe.SE(a,b,c)};
g.k.LA=function(a,b,c){this.qoe&&this.qoe.LA(a,b,c)};
g.k.Qn=aa(16);g.k.dD=function(){if(this.qoe)return this.qoe.dD()};
g.k.uc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.yh){var a;null==(a=this.C.get(this.yh))||a.uc()}else if(this.j)return this.j.uc();return{}};
g.k.Tj=function(a){return this.j?this.j.Tj(a):function(){}};
g.k.nB=function(){this.j&&this.j.nB()};
g.k.getVideoData=function(){return this.provider.videoData};g.w(p0,g.J);p0.prototype.AM=function(a,b){if(!this.j.has(a)){var c=new g.o0(new n0(b,this.Z,this.xa));b=this.B.getVideoData();this.j.set(a,c);a=g.TT(b);if(c.qoe){c=c.qoe;var d=b.videoId||"";c.contentCpn=b.clientPlaybackNonce;c.qa=d;c.Ca=a}}};
p0.prototype.Lc=function(a){a=a||this.yh;return this.j.get(a)||this.B};g.w(q0,g.J);g.k=q0.prototype;g.k.xf=function(a,b){this.Lm();b&&2E3<=this.j.array.length&&this.OC("captions",1E4);b=this.j;if(1<a.length&&a.length>b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else{a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.array.length||0<b.j(c,b.array[b.array.length-1])?b.array.push(c):g.Xb(b.array,c,b.j)}this.B=NaN;this.Lm()};
g.k.Op=function(a){1E4<a.length&&g.UF(new g.nD("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.isDisposed()){var b=new Set(a);this.C=this.C.filter(function(c){return!b.has(c)});
o8a(this.j,b);this.Lm()}};
g.k.OC=function(a,b){var c=(isNaN(this.B)?g.aH(this.G(),2)?0x8000000000000:1E3*this.ma():this.B)-b;b=this.cn().filter(function(d){return d.namespace===a&&d.end<c});
this.Op(b);return b};
g.k.cn=function(){return this.isDisposed()?[]:this.j.array};
g.k.reset=function(){this.started=!1;this.D.stop();this.j.array=[];this.C=[];this.Lm()};
g.k.mf=function(a){var b=this.cn().filter(function(c){return c.namespace===a});
this.Op(b);return b};
g.k.Xd=function(a){this.started&&(this.Lm(),g.aH(a.pA,16)&&(a=n8a(this.j,Math.max(this.B-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.D.start()))};
g.k.RM=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&-1===this.C.indexOf(d)&&(this.C.push(d),b.push([1,d]))}return b};
g.k.UM=function(a){var b=[];if(!a.length)return b;a.sort(g.oza);a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.C.splice(this.C.indexOf(c),1),b.push([2,c]);return b};
g.k.Lm=function(){this.K=!0;if(!this.S){for(var a=3;this.K&&a;)this.K=!1,this.S=!0,this.TW(),this.S=!1,a--;this.G().isPlaying()&&(a=n8a(this.j,this.B),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.B)/this.va(),this.D.start(a)))}};
g.k.TW=function(){if(this.started&&!this.isDisposed()){this.D.stop();var a=this.G();g.aH(a,32)&&this.qa.start();for(var b=g.aH(this.G(),2)?0x8000000000000:1E3*this.ma(),c=g.aH(a,2),d=[],e=[],f=g.u(this.C),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.UM(e));f=e=null;c?(a=l8a(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=m8a(this.j)):a=this.B<=b&&hBa(a)?k8a(this.j,this.B,b):l8a(this.j,b);
d=d.concat(this.RM(a));e&&(d=d.concat(this.UM(e)));f&&(d=d.concat(this.RM(f)));this.B=b;p8a(this,d)}};
g.k.Ba=function(){this.C=[];this.j.array=[];g.J.prototype.Ba.call(this)};
g.pY.AD(q0,{xf:"crmacr",RM:"crmncr",UM:"crmxcr",TW:"crmis",Op:"crmrcr"});g.w(s0,g.lG);s0.prototype.Rq=function(){return this.S};
s0.prototype.Cq=function(){return Math.max(this.ma()-t0(this)*this.j,this.videoData.me())};g.w(x0,g.J);x0.prototype.Xd=function(){g.bu(this.C)};
x0.prototype.Df=function(){var a=this,b=this.xa.zf(),c=this.xa.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.aH(c,8)&&g.aH(c,16),h=this.xa.kp().isBackground()||c.isSuspended();y0(this,this.Pa,f&&!h,e,"qoe.slowseek",function(){},"timeout");
var l=isFinite(this.j);l=f&&l&&bBa(b,this.j);var m=!d||10<Math.abs(d-this.j);y0(this,this.Va,l&&m&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
m=l&&xL(b.Kh(),this.j);var n=this.xa.Da;l=!n||!n.policy.Ya;var p=function(){b.seekTo(a.j+.001)};
y0(this,this.Ca,m&&l&&!h,e,"qoe.slowseek",p,"jiggle_cmt");l=function(){return Y_(a.xa)};
y0(this,this.Ja,m&&!h,e,"qoe.slowseek",l,"new_elem");m=hBa(c);var q=g.XL(c),r=b.Kh(),t=wL(r,d),v=0<=t&&r.end(t)>d+5,x=m&&q&&v,B=this.xa.getVideoData();y0(this,this.Fa,.002>d&&.002>this.j&&f&&g.UJ(this.Z)&&g.OT(B)&&!h,e,"qoe.slowseek",l,"slow_seek_shorts");y0(this,this.ma,x&&!h,m&&!q,"qoe.longrebuffer",p,"jiggle_cmt");y0(this,this.ea,x&&!h,m&&!q,"qoe.longrebuffer",l,"new_elem_nnr");if(n){var G=n.getCurrentTime();f=b.Gv();f=NAa(f,G);f=!n.Wg()&&d===f;y0(this,this.kb,m&&q&&f&&!h,m&&!q&&!f,"qoe.longrebuffer",
function(){b.seekTo(G)},"seek_to_loader")}f={};
p=wL(r,Math.max(d-3.5,0));x=0<=p&&d>r.end(p)-1.1;var F=0<=p&&p+1<r.length?r.start(p+1)-r.end(p):9999;f.mindex=t;f.disIndex=p;f.isdisc=0<=p&&x&&11>F;f.close2edge=x;f.gapsize=F;f.buflen=r.length;y0(this,this.qa,m&&q&&!h,m&&!q,"qoe.longrebuffer",function(){},"timeout",f);
t=c.isSuspended();t=g.Db(this.xa.Cm,"ad")&&!t;y0(this,this.G,t,!t,"qoe.start15s",function(){a.xa.Fg("ad")},"ads_preroll_timeout");
f=.5>d-this.D;p=B.isAd()&&m&&!q&&f;t=function(){var I=a.xa,P=I.qe.Gd();(!P||!I.videoData.isAd()||P.getVideoData().fd!==I.getVideoData().fd)&&I.videoData.Mf||I.Sg("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+I.videoData.videoId)};
y0(this,this.Ya,p,!p,"ad.rebuftimeout",t,"skip_slow_ad");f=B.isAd()&&q&&xL(b.Kh(),d+5)&&f;y0(this,this.eb,f,!f,"ad.rebuftimeout",t,"skip_slow_ad_buf");y0(this,this.fb,g.WL(c)&&g.aH(c,64)&&!h,e,"qoe.start15s",function(){},"timeout");
y0(this,this.va,!!n&&!n.Wa&&g.WL(c),e,"qoe.start15s",l,"newElemMse");e=AL(r,0);n=g.aH(c,16)||g.aH(c,32);e=!h&&g.WL(c)&&q&&!n&&(g.aH(c,64)||0===d)&&5<e;y0(this,this.Oa,g.OT(B)&&e,m&&!q,"qoe.longrebuffer",function(){L_(a.xa)},"reset_media_source");
c=g.WL(c)&&!h;y0(this,this.S,g.OT(B)&&c&&q&&v&&this.xa.Dt(),m&&!q,"qoe.longrebuffer",l,"handoff_long_buffer_reload");h=6>B.lengthSeconds-d&&!v&&this.xa.Dt();y0(this,this.K,g.OT(B)&&c&&q&&h,m&&!q,"qoe.longrebuffer",l,"handoff_end_long_buffer_reload");this.D=d;this.C.start()}};
x0.prototype.Ae=function(a,b,c){b=this.uc(b);b.wn=c;b.wdup=this.B[a]?"1":"0";this.xa.Ae(new WK(a,b));this.B[a]=!0};
x0.prototype.uc=function(a){a=Object.assign(this.xa.uc(!0),a.uc());this.j&&(a.stt=this.j.toFixed(3));this.xa.getVideoData().isLivePlayback&&(a.ct=this.xa.getCurrentTime().toFixed(3),a.to=this.xa.Xc().toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
v0.prototype.reset=function(){this.j=this.B=this.C=this.startTimestamp=0;this.D=!1};
v0.prototype.test=function(a){if(!this.G||this.B)return!1;if(!a)return this.reset(),!1;a=(0,g.OD)();if(!this.startTimestamp)this.startTimestamp=a,this.C=0;else if(this.C>=this.G)return this.B=a,!0;this.C+=1;return!1};
v0.prototype.uc=function(){var a={},b=(0,g.OD)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.B&&(a.wtd=(b-this.B).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.w(A8a,g.J);g.k=A8a.prototype;g.k.setMediaElement=function(a){g.cD(this.xb);(this.mediaElement=a)?(Q8a(this),z0(this)):A0(this)};
g.k.Xd=function(a){this.Ca.Xd(a);this.N("html5_exponential_memory_for_sticky")&&(a.state.isPlaying()?g.bu(this.Fa):this.Fa.stop());if(this.mediaElement)if(8===a.pA.state&&hBa(a.state)&&g.XL(a.state)){a=this.mediaElement.getCurrentTime();var b=this.mediaElement.Kh();var c=this.N("manifestless_post_live_ufph")||this.N("manifestless_post_live")?wL(b,Math.max(a-3.5,0)):wL(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1<b.length&&11>b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.Mb-c)||(this.xa.ya("seekover",
{b:vL(b,"_"),cmt:a}),this.Mb=c,this.seekTo(c,{Rv:!0,Id:"seektimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&!this.kb&&((this.Z.N("embeds_enable_muted_autoplay")||g.OC(g.nS(this.Z)))&&0<this.videoData.limitedPlaybackDurationInSeconds?(G0(this.xa,this.getCurrentTime()+this.videoData.limitedPlaybackDurationInSeconds),this.kb=!0):this.videoData.isLivePlayback&&0<this.videoData.endSeconds&&(G0(this.xa,this.getCurrentTime()+this.videoData.endSeconds),this.kb=!0))};
g.k.getCurrentTime=function(){return!isNaN(this.j)&&isFinite(this.j)?this.j:this.mediaElement&&N8a(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.C||0};
g.k.Mk=function(){return this.getCurrentTime()-this.Xc()};
g.k.Cq=function(){return this.B?this.B.Cq():Infinity};
g.k.isAtLiveHead=function(a){if(!this.B)return!1;void 0===a&&(a=this.getCurrentTime());return u0(this.B,a)};
g.k.Rq=function(){return!!this.B&&this.B.Rq()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.KR?!1:c.KR;var d=void 0===c.LR?0:c.LR,e=void 0===c.Rv?!1:c.Rv,f=void 0===c.BR?0:c.BR,h=void 0===c.Id?"":c.Id,l=void 0===c.seekSource?void 0:c.seekSource,m=void 0===c.KD?!1:c.KD,n=void 0===c.nR?!1:c.nR;if(void 0===c.hq?0:c.hq)a+=this.Xc();if(c=a<this.Oa&&!!this.Da){this.xa.ya("sdai",{sk2bk:a.toFixed(3),mt:(a-this.timestampOffset).toFixed(3),lstadj:this.Oa.toFixed(3)});this.Oa=NaN;this.timestampOffset-=1E3;var p;if(null!=(p=this.Da)){M5a(p,
p.timestampOffset-1E3);var q=p.manifest,r=new Set;for(x in q.j){var t=q.j[x].index,v=t.Av();v&&!r.has(v)&&(v.startTime+=1E3,v.endTime=v.startTime+v.duration,r.add(v));t.segments.length&&(v=t.segments[t.segments.length-1],t.segments=[],t.segments.push(v))}p.ea&&p.ea.OQ();qZ(p.C,0,0,!0)}}var x=a;(p=!isFinite(x)||(this.B?u0(this.B,x):x>=this.Re())||!g.FT(this.videoData))||this.xa.ya("seeknotallowed",{st:x,mst:this.Re()});if(!p)return this.D&&(this.D=null,K8a(this)),Uf(this.getCurrentTime());if(.005>
Math.abs(a-this.j)&&this.qa)return this.G;h&&(x=a,(this.Z.wd()||this.N("html5_log_seek_reasons"))&&this.xa.ya("seekreason",{reason:h,tgt:x}));this.qa&&A0(this);this.G||(this.G=new NL);a&&!isFinite(a)&&D8a(this,!1);(h=n||c)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&0<this.mediaElement.yk()&&0<XAa(this.mediaElement))||rT(this.videoData)&&this.me()===this.Re(!1)?0:isFinite(h)||!rT(this.videoData)));h||(a=M8a(this,a,e));a&&!isFinite(a)&&D8a(this,
!1);this.C=a;this.eb=f;this.j=a;this.S=0;this.B&&(e=this.B,f=a,v8a(e,f,!1),w8a(e,f));e=this.xa;f=a;e.xd.C=f;h=e.oC;h.mediaTime=f;h.j=!0;b&&C9a(e);h=f>e.videoData.endSeconds;e.Z.N("embeds_enable_muted_autoplay")&&(h=h&&f>e.videoData.limitedPlaybackDurationInSeconds);e.qq&&h&&isFinite(f)&&r9a(e);f<e.Re()-.01&&(h=UL(e.playerState,2),g.aH(h,8)&&(h=UL(h,4)),e.Ac(h));e.ra("SEEK_TO",e,f);this.G&&(b?d&&this.fb.start(d):(b={KD:m,seekSource:l},this.qa=!0,z8a(this,b)));(b=this.xa.qq)&&a>b.start&&r9a(this.xa);
return this.G};
g.k.Re=function(a){if(!this.videoData.isLivePlayback)return R9a(this.xa);var b;return VT(this.videoData)&&(null==(b=this.mediaElement)?0:b.isPaused())&&this.videoData.j?(a=this.getCurrentTime(),iRa(1E3*this.Ze(a))+a):rT(this.videoData)&&this.videoData.Pa&&this.videoData.j?this.videoData.j.Re()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&&this.B?this.B.Cq():R9a(this.xa)+this.timestampOffset:this.mediaElement?CC()?iRa(this.mediaElement.eG().getTime()):XAa(this.mediaElement)+this.timestampOffset||
this.timestampOffset:this.timestampOffset};
g.k.me=function(){var a=this.videoData?this.videoData.me()+this.timestampOffset:this.timestampOffset;if(VT(this.videoData)&&this.videoData.j){var b,c=Number(null==(b=this.videoData.progressBarStartPosition)?void 0:b.utcTimeMillis)/1E3;b=this.getCurrentTime();b=this.Ze(b)-b;if(!isNaN(c)&&!isNaN(b))return Math.max(a,c-b)}return a};
g.k.ZM=function(){this.G||this.seekTo(this.C,{Id:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
g.k.cI=function(){return this.qa&&!isFinite(this.j)};
g.k.Ba=function(){E8a(this,null);this.Ca.dispose();g.J.prototype.Ba.call(this)};
g.k.uc=function(){var a={};this.Da&&Object.assign(a,this.Da.uc());this.mediaElement&&Object.assign(a,this.mediaElement.uc());return a};
g.k.NP=function(a){this.timestampOffset=a};
g.k.getStreamTimeOffset=function(){return rT(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.k.Xc=function(){return this.timestampOffset};
g.k.Ze=function(a){return this.videoData.j.Ze(a-this.timestampOffset)};
g.k.Dv=function(){if(!this.mediaElement)return 0;if(GT(this.videoData)){var a=this.mediaElement,b=a.Kh();a=(0<zL(b)&&a.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.me();b=this.Re()-this.me();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.Dv()};
g.k.yw=function(a){this.K&&(this.K.j=a)};
g.k.N=function(a){return this.Z&&this.Z.N(a)};B0.prototype.It=function(){return this.started};
B0.prototype.start=function(){this.started=!0};
B0.prototype.reset=function(){this.finished=this.started=!1};var W8a=!1;g.w(g.F0,g.lG);g.k=g.F0.prototype;g.k.Ba=function(){this.dZ();this.xJ.stop();g.mC(this.pJ);z_a(this.Cg);this.visibility.unsubscribe("visibilitystatechange",this.Cg);j9a(this);L0(this);g.Tt.Lj(this.Iw);this.Bj();this.cg=null;g.sb(this.videoData);g.sb(this.Kk);g.tb(this.V6);this.qq=null;g.lG.prototype.Ba.call(this)};
g.k.LA=function(a,b,c,d){this.Lc().LA(a,b,c);this.N("html5_log_media_perf_info")&&this.ya("adloudness",{ld:d.toFixed(3),cpn:a})};
g.k.kN=function(){var a;return null==(a=this.Da)?void 0:a.kN()};
g.k.nN=function(){var a;return null==(a=this.Da)?void 0:a.nN()};
g.k.oN=function(){var a;return null==(a=this.Da)?void 0:a.oN()};
g.k.lN=function(){var a;return null==(a=this.Da)?void 0:a.lN()};
g.k.pj=function(){return this.videoData.pj()};
g.k.yH=function(){return this.UD};
g.k.AM=function(){!this.Xz||this.Xz.isDisposed();this.Xz=new g.o0(new n0(this.videoData,this.Z,this));this.UD=new p0(this.Z,this,this.Xz)};
g.k.getVideoData=function(){return this.videoData};
g.k.W=function(){return this.Z};
g.k.Lc=function(){return this.UD.Lc()};
g.k.kp=function(){return this.visibility};
g.k.zf=function(){return this.mediaElement};
g.k.nM=function(){if(this.videoData.isLoaded()){var a=this.Kk;0<g.JJ(a.La.experiments,"html5_player_min_build_cl")&&566696613<g.JJ(a.La.experiments,"html5_player_min_build_cl")&&N6a(a,"oldplayer");n9a(this)}else this.videoData.dh||this.videoData.Fo?this.Ht&&g.UJ(this.Z)&&this.videoData.isLivePlayback||(this.videoData.dh?IQa(this.videoData):(a=this.Lc(),a.qoe&&(a=a.qoe,c0(a,"protected"),a.provider.videoData.K?a.xZ():a.provider.videoData.subscribe("dataloaded",a.xZ,a)),FQa(this.videoData))):!this.videoData.loading&&
this.N3&&l9a(this)};
g.k.WJ=function(a){this.Uc=a;this.Da&&this.Da.WJ(a)};
g.k.pz=aa(7);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.aH(this.getPlayerState(),128)||(this.ra("internalAbandon"),this.VQ(!0),j9a(this),g.Tt.Lj(this.Iw))};
g.k.uo=function(){d8a(this.Lc())};
g.k.Sg=function(a,b,c,d,e,f){var h,l;g.hd(Wgb,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+Gxa());b={errorCode:a,errorDetail:e,errorMessage:l||g.WV[h]||"",TM:h,Xm:f||"",zJ:d,eH:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;K0(this,"dataloaderror");this.Ac(SL(this.playerState,128,b));g.Tt.Lj(this.Iw);L0(this);this.Yn()};
g.k.Fg=function(a){this.Cm=this.Cm.filter(function(b){return a!==b});
this.yr.It()&&m9a(this)};
g.k.mp=function(){var a;(a=!!this.Cm.length)||(a=this.Mi.j.array[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.Rq=function(){return this.xd.Rq()};
g.k.isPlaying=function(){return this.playerState.isPlaying()};
g.k.HD=function(){return this.playerState.HD()&&this.videoData.Ho};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.cg){var a=this.cg;a=a.videoData.Nz.compose(a.videoData.lU);a=PP(a)}else a="auto";return a};
g.k.fD=aa(11);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.k.setMediaElement=function(a){if(this.mediaElement&&a.Gb()===this.mediaElement.Gb()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.cD(this.rB),this.mediaElement=a,this.mediaElement.xa=this,D9a(this),this.xd.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Bj();if(!this.playerState.isError()){var b=UL(this.playerState,512);g.aH(b,8)&&!g.aH(b,2)&&(b=TL(b,1));a.isView()&&(b=UL(b,64));this.Ac(b)}this.mediaElement=a;this.mediaElement.xa=this;AS(this.Z)&&
this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);D9a(this);this.xd.setMediaElement(this.mediaElement);this.N("html5_prewarm_media_source")&&!this.Kk.aH()&&YAa(this.mediaElement)}};
g.k.Bj=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(this.mediaElement){var c=this.getCurrentTime();0<c&&(this.xd.C=c);this.xd.setMediaElement(null);!a&&KL(this)?z9a(this):P0(this);this.Da&&(M_(this.Da),Q0(this,b));this.jw.stop();if(this.mediaElement&&(!this.yr.It()||this.playerState.isError()||g.aH(this.playerState,2)||this.Ac(TL(this.playerState,512)),this.mediaElement)){g.cD(this.rB);if(a||!this.mediaElement.isView())this.N("html5_rebase_video_to_ad_timeline")&&this.Hb.Cu("mesv_s"),this.mediaElement.stopVideo(),
R0(this);this.mediaElement=this.mediaElement.xa=null}}};
g.k.playVideo=function(a){a=void 0===a?!1:a;var b=this,c,d,e,f,h,l;return g.H(function(m){if(1==m.j){var n=window.google_image_requests;n&&10<n.length&&(window.google_image_requests=n.slice(-10));if(g.aH(b.playerState,128))return m.return();if(b.Kk.fI())return b.ra("signatureexpired"),m.return();b.mediaElement&&PY(b.Lc());q9a(b);(g.aH(b.playerState,64)||a)&&b.Ac(TL(b.playerState,8));return b.yr.finished&&b.mediaElement?b.cg||!b.EE?m.Ma(2):g.z(m,b.EE,3):m.return()}if(2!=m.j&&g.aH(b.playerState,128))return m.return();
if(!b.videoData.C)return b.videoData.isLivePlayback&&!g.bOa(b.Z.G,!0)?(c="html5.unsupportedlive",d=2):(c=b.videoData.pj()?"fmt.unplayable":"fmt.noneavailable",d=1),g.UF(Error("selectableFormats")),b.Sg(c,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),m.return();if(b.Nh()&&b.videoData.C.j)return m.return(J0(b));if(pT(b.videoData)&&(e=b.getCurrentTime()<b.me()-15,f=g.FT(b.videoData)&&b.playerState.isPaused(),h=g.aH(b.playerState,1024),n=b.xd,n.videoData.Fc()&&kRa(n.videoData)||h||!e&&
!f||(f?b.seekTo(Infinity,{Id:"videoplayer_unpauseLiveOnly"}):b.seekTo(b.me(),{Id:"videoplayer_outOfWindow"})),!b.isAtLiveHead(void 0,!0)&&b.Rq()&&(l={Id:"videoplayer_peggedToLive",seekSource:34},b.seekTo(Infinity,l)),g.aH(b.playerState,256)&&b.videoData.Va&&b.xd.cI()))return b.Ac(VL(b.playerState,8,4)),m.return();g.aH(b.playerState,4)&&g.aH(b.playerState,16)&&b.Ac(VL(b.playerState,9,4));if(E0(b))return K9a(b),m.return();J9a(b);g.ya(m)})};
g.k.Vs=function(){if(!this.cg)return[];var a=T6a(this.bl,this.cg,this.Bv());return this.cg.j.Vs(a)};
g.k.WC=function(){if(!this.cg)return[];var a=T6a(this.bl,this.cg,this.Bv());return this.cg.j.WC(a)};
g.k.Bv=function(){var a=this.Qe?this.Qe.Bv():DQa(this.videoData)&&this.videoData.j&&UP(this.videoData.j)?this.videoData.Jl?gT:v6a:gT;this.PQ&&(a=a.compose(Jhb));return a};
g.k.sH=function(){var a=this.Se(),b=this.qe.Qd().videoId;return this.qe.Qt.sH(a)||this.qe.Qt.sH(b)};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?PP(this.videoData.Nz):OP[GP()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a,b){this.videoData.Sf!==a&&(this.ya("toggle51",{pref:a}),this.videoData.Sf=a,g.fD("yt-player-audio51",a,b?31536E3:2592E3),F6a(this))};
g.k.getUserAudio51Preference=function(){var a=1;wS(this.Z)&&this.N("html5_ytv_surround_toggle_default_off")&&(a=0);var b;return null!=(b=g.gD("yt-player-audio51"))?b:a};
g.k.setProximaLatencyPreference=function(a){this.ya("proxima",{pref:a});g.fD("yt-player-proxima-pref",a,172800)};
g.k.getProximaLatencyPreference=function(){var a=g.gD("yt-player-proxima-pref");return void 0===a?0:a};
g.k.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(w9a(this)){var a=y9a(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.aE=function(){if(qT(this.videoData)&&this.videoData.N("html5_trigger_loader_when_idle_network")){var a;null!=(a=this.Da)&&a.Df()}};
g.k.Wy=function(){if(this.Da){var a=this.Da,b=a.Wy;var c=this.videoData;c=c.N("html5_ssdai_use_post_for_media")&&c.enableServerStitchedDai?!1:rT(c)&&c.Mf&&!c.isAd();b.call(a,c)}};
g.k.jt=function(){return this.Wa};
g.k.qA=function(a){this.zA.set(a.initData,a);this.Qe&&(this.Qe.qA(a),this.N("html5_eme_loader_sync")||this.zA.remove(a.initData))};
g.k.OP=function(a){this.videoData.Sl=g.MP("auto",a,!1,"u");D0(this)};
g.k.yw=function(a){var b=a.reason,c=a.j.info;if(c!==this.videoData.D){var d=!this.videoData.D;this.videoData.D=c;"m"!==b&&"t"!==b&&(b=d?"i":"a");var e="m"===b||"t"===b;b=new Q6a(this.videoData,c,b,"");this.Lc().iE(b);d||this.ra("internalaudioformatchange",this.videoData,e)}this.xd.yw(a.j.index)};
g.k.UI=function(a){this.ra("localmediachange",a)};
g.k.mB=function(){var a;null==(a=this.Da)||a.mB(this.Z)};
g.k.fI=function(){return this.Kk.fI()};
g.k.handleError=function(a){this.Kk.handleError(a)};
g.k.aH=function(){return this.Kk.aH()};
g.k.sI=function(a){this.pB?(this.ya("utcSeekingFallback",{source:"streamTime",timeSeconds:this.pB}),this.seekTo(this.pB,{Id:"utcSeekingFallback_streamTime"}),this.pB=0):isNaN(this.Ze())||(a=this.Ze()-a,a=this.getCurrentTime()-a,this.ya("utcSeekingFallback",{source:"estimate",timeSeconds:a}),this.seekTo(a,{Id:"utcSeekingFallback_estimate"}))};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.aH(this.playerState,64)||g.aH(this.playerState,2))&&!a)if(g.aH(this.playerState,8))this.Ac(VL(this.playerState,4,8));else if(this.HD())E0(this);else return;g.aH(this.playerState,128)||(a?this.Ac(TL(this.playerState,256)):this.Ac(VL(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.FT(this.videoData)&&this.Da&&Q0(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.Da&&(Q0(this,!1),this.Da.Ik())};
g.k.Yn=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(KL(this)&&b){var c;null==(c=this.mediaElement)||c.Yn()}else{var d;null==(d=this.mediaElement)||d.stopVideo()}R0(this);L0(this);g.aH(this.playerState,128)||(a?this.Ac(UL(UL(TL(this.playerState,4),8),16)):this.Ac(SL(this.playerState)));this.videoData.videoId&&this.Z.Oa.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;g.aH(this.playerState,2)&&E0(this);b.Afb&&this.Ac(TL(this.playerState,2048));this.xd.seekTo(a,b);this.Mi.Lm()};
g.k.getCurrentTime=function(){return this.xd.getCurrentTime()};
g.k.Mk=function(){return this.xd.Mk()};
g.k.Cq=function(){return this.xd.Cq()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Xc())};
g.k.oz=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.oz());return 0<=a?a:this.getCurrentTime()};
g.k.Ze=function(){var a;return(null==(a=this.videoData.j)?0:a.Ze)?this.videoData.j.Ze(this.getCurrentTime()-this.Xc()):this.mediaElement&&(a=this.mediaElement.eG())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN};
g.k.getDuration=function(){return g.TT(this.videoData)&&this.Uc?NY(this.Uc):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Xc():this.Re()?this.Re():0};
g.k.kD=function(){var a=new h8a;if(this.Da){var b=this.Z.schedule;a.Sr=b.S;a.Du=b.Ca;a.bandwidthEstimate=$R(b);a.j={d:ZR(b).toFixed(2),st:(1E9*(b.B.Si()||0)).toFixed(2),bw:b.j.Si().toFixed(0),abw:b.ma.Si().toFixed(0),v50:UR(b.C,.5).toFixed(2),v92:UR(b.C,.92).toFixed(2),v96:UR(b.C,.96).toFixed(2),v98:UR(b.C,.98).toFixed(2)};b=this.Da;if(b.Wa&&b.Wa.D&&!b.Wa.jh()&&(a.Wu=g_(b.videoTrack),a.B=g_(b.audioTrack),b.policy.B)){var c=e_(b.videoTrack),d=e_(b.audioTrack),e=vL(b.Wa.B.Jf(),"_",5),f=vL(b.Wa.j.Jf(),
"_",5);Object.assign(a.j,{lvq:c,laq:d,lvb:e,lab:f})}a.bandwidthEstimate=eZ(b.S)}else this.mediaElement&&(a.Wu=PL(this.mediaElement));a.Sr=this.Sr;a.Du=this.Du;a.C=this.isAtLiveHead()&&this.isPlaying()?f9a(this):NaN;return a};
g.k.TE=function(a,b){this.Du+=a;this.Sr+=b};
g.k.Dv=function(){return this.mediaElement?g.FT(this.videoData)?1:GT(this.videoData)?this.isAtLiveHead()||this.Rq()?1:this.xd.Dv():this.mediaElement.Dv():0};
g.k.uc=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.Lc().uc());this.mediaElement&&(Object.assign(b,this.mediaElement.uc()),Object.assign(b,this.oD()));this.Da&&Object.assign(b,this.Da.uc());this.Qe&&(b.drm=JSON.stringify(this.Qe.uc()));b.state=this.playerState.state.toString(16);g.aH(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.Ah));this.mp()&&(b.prerolls=this.Cm.join(","));this.videoData.Ad&&(b.ismb=this.videoData.Ad);"UNKNOWN"!==this.videoData.latencyClass&&
(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)b.is_mosaic=1;this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.qe.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&uR(this.videoData.j)&&(b.segduration=uR(this.videoData.j)),a=this.xd,b.lat=a.K?VRa(a.K.D):
0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Qi.toFixed(3);if(a=g.kV(this))b.optimal_format=a.video.qualityLabel;b.user_qual=GP();b.release_version="youtube.player.web_20230917_00_RC01"}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.Ay([a])};
g.k.removeCueRange=function(a){this.Mi.Op([a])};
g.k.OC=function(a,b){return this.Mi.OC(a,b)};
g.k.Ay=function(a,b){this.Mi.xf(a,b)};
g.k.VE=function(a){this.Mi.Op(a)};
g.k.cn=function(){return this.Mi.cn()||[]};
g.k.Nh=function(){return this.visibility.Nh()};
g.k.pu=function(){this.mediaElement&&this.mediaElement.pu()};
g.k.B9=function(){K0(this)};
g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.k.PP=function(a){var b=a.target.Lf();if(this.mediaElement&&this.mediaElement.Lf()&&this.mediaElement.Lf()===b){O9a(this,a.type);switch(a.type){case "error":var c=eBa(this.mediaElement)||"";if("capability.changed"===c){this.N("html5_restart_on_capability_change")?(this.ya("capchg",{msg:this.mediaElement.yf()}),Y_(this,!0)):J0(this);return}if(0<this.mediaElement.rg()&&J6a(this.Kk,c,{msg:this.mediaElement.yf()}))return;if(this.isBackground()&&4===this.mediaElement.rg()){this.Yn();M0(this,"unplayable");
return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Wa||0<c)&&1!==c&&this.wl(c);break;case "ratechange":this.Da&&this.Da.setPlaybackRate(this.mediaElement.getPlaybackRate());c=this.Mi;c.started=!0;c.Lm();this.Lc().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":Q9a(this);this.ra("onLoadedMetadata");F9a(this);c=this.Ze();this.videoData.dA&&(this.videoData.dA=c);break;case "loadstart":F9a(this);break;case "progress":case "suspend":this.Ic();
this.ra("onLoadProgress",this,this.Dv());break;case "playing":this.Hb.Cu("plev");this.SQ&&(this.SQ=!1,this.isAtLiveHead()||this.seekTo(Infinity,{Id:"videoplayer_onPlaying"}));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();var d=this.mediaElement&&0===this.mediaElement.yk();if(c&&(!this.HI||d))return;this.HI=this.HI||!!this.mediaElement.getCurrentTime();E9a(this);this.Ic();if(!this.mediaElement||this.mediaElement.Lf()!==b)return;this.ra("onVideoProgress",this,this.getCurrentTime());
break;case "waiting":if(0<this.mediaElement.Gv().length&&0===this.mediaElement.Kh().length&&0<this.mediaElement.getCurrentTime()&&5>this.mediaElement.getCurrentTime()&&this.Da)return;this.N("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||2<this.mediaElement.yk()||!this.mediaElement.Wg()&&xL(this.mediaElement.Kh(),this.mediaElement.getCurrentTime()))&&(d=this.mediaElement.uc(),d.bh=PL(this.mediaElement).toFixed(3),this.ya("uwe",d));if(g.TT(this.videoData)&&this.Uc){d=this.Uc;
var e=this.mediaElement.getCurrentTime();if(!d.Bm.has(d.Ni)){var f=0,h=0,l=d.timeline.j.get(d.Ni);if(null==l?0:l.length)for(l=g.u(l).next();!l.done;){h=l.value;f=h.Ri();h=h.jz();break}if(!(0<h&&h>1E3*e+100)&&(h=i0a(d,f))){e=!1;f=void 0;h=g.u(h.segments);for(l=h.next();!l.done;l=h.next()){l=l.value;if(e){f=l;break}l.videoData.clientPlaybackNonce===d.Ni&&(e=!0)}(e=null==(c=f)?void 0:c.videoData.clientPlaybackNonce)&&d.finishSegmentByCpn(d.Ni,e,2)}}}break;case "resize":Q9a(this);this.videoData.B&&"auto"===
this.videoData.B.video.quality&&this.ra("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.CU&&g.aH(this.playerState,8)&&!g.aH(this.playerState,1024)&&0===this.getCurrentTime()&&g.ID){M0(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Lf()===b){this.N("html5_restore_time_after_unpause")&&P8a(this.xd,a);this.ra("videoelementevent",a);b=this.playerState;c=this.videoData.clientPlaybackNonce;var m=g.TT(this.videoData)&&this.Uc?NY(this.Uc):void 0;
if(!g.aH(b,128)){d=this.oC;f=this.mediaElement;h=this.Z.experiments;e=b.state;f=f?f:a.target;l=f.getCurrentTime();if(!g.aH(b,64)||"ended"!==a.type&&"pause"!==a.type){m=m||f.getDuration();m=f.ri()||1<l&&1.1>Math.abs(l-m);var n="pause"===a.type&&f.ri();l="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.aH(b,4)&&!r0(d,l);if(n||m&&l)0<f.CH()&&f.Lf()&&(e=14);else switch(a.type){case "error":eBa(f)&&(e|=128);break;case "pause":g.aH(b,256)?(e^=256)||(e=64):g.aH(b,32)||g.aH(b,2)||g.aH(b,4)||
(e=4,g.aH(b,1)&&g.aH(b,8)&&(e|=1));break;case "playing":h=e;e=(e|8)&-1093;h&4?(e|=1,RL(d,f)):r0(d,f.getCurrentTime())&&(e&=-2);g.aH(b,1)&&RL(d,f)&&(e|=1);break;case "seeking":e|=16;g.aH(b,8)&&(e|=1);e&=-3;break;case "seeked":e&=-17;h.ob("html5_update_time_on_seeked")&&RL(d,f);break;case "waiting":g.aH(b,2)||(e|=1);RL(d,f);break;case "timeupdate":h=g.aH(b,16),l=g.aH(b,4),(g.aH(b,8)||h)&&!l&&r0(d,f.getCurrentTime())&&(e=8),RL(d,f)&&(e|=1)}}d=e;e=null;d&128&&(e=a.target,f=eBa(e),h=1,f?("capability.changed"===
f&&(h=2),l="GENERIC_WITHOUT_LINK",m=e.uc(),m.mediaElem="1",/AUDIO_RENDERER/.test(e.yf())&&(l="HTML5_AUDIO_RENDERER_ERROR"),e={errorCode:f,errorMessage:g.WV[l]||"",TM:l,zJ:VK(m),eH:h,cpn:b.Ah?b.Ah.cpn:""}):e=null,e&&(e.cpn=c));b=SL(b,d,e)}!g.aH(this.playerState,1)&&g.aH(b,1)&&N9a(this,"evt"+a.type);this.Ac(b)}}};
g.k.b7=function(a){a="available"===a.j.availability;a!==this.BD&&(this.BD=a,this.ra("airplayavailabilitychange"))};
g.k.c7=function(){var a=(0,g.OD)(),b=this.mediaElement.Nh();this.ya("airplay",{ia:b});!b&&!isNaN(this.iI)&&2E3>a-this.iI||(this.iI=a,b!==this.Nh()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Cg()),this.ya("airplay",{rbld:b}),F6a(this)),this.ra("airplayactivechange"))};
g.k.pD=function(a){if(this.Da){var b=this.Da,c=b.C,d=b.currentTime,e=Date.now()-c.ea;c.ea=NaN;c.ya("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.G)&&3!==c.B&&t5a(c.Da,d,c.G,c.C);c.S=NaN;pZ(c,4,3===c.B?"adfps":"adf");M_(b)}};
g.k.Ic=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){H8a(this.xd,this.isPlaying());var c=this.getCurrentTime();this.Da&&(g.aH(this.playerState,4)&&g.FT(this.videoData)||K5a(this.Da,c));5<c&&(this.xd.C=c);var d=g.vD();d?g.Tt.Lj(this.Iw):g.lC(this.Iw);var e=this.mediaElement.isPaused();if((g.XL(this.playerState)||!e||VT(this.videoData))&&!g.aH(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.aH(b.playerState,128)){b.Z.wd()&&O9a(b,"pfx");var h=b.getCurrentTime(),
l=PL(b.mediaElement),m=g.aH(b.playerState,8),n=r0(b.oC,h),p=fBa(b.oC,h,(0,g.OD)(),l);m&&n?b.Ac(UL(b.playerState,1)):m&&p?(m=b.getDuration(),n=pT(b.videoData),m&&1.1>Math.abs(m-h)?(b.ya("setended",{ct:h,bh:l,dur:m,live:n}),b.mediaElement.Zs()?b.seekTo(0,{Id:"videoplayer_loop"}):vY(b)):(g.XL(b.playerState)||N9a(b,"progress_fix"),b.Ac(TL(b.playerState,1)))):(m&&!n&&!p&&0<h&&(m=(Date.now()-b.PD)/1E3,n=b.getDuration(),h>n-1&&b.ya("misspg",{t:h.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),
b.playerState.isPaused()&&g.XL(b.playerState)&&5<PL(b.mediaElement)&&b.Ac(UL(b.playerState,1)));b.Ic()}};
0===this.mediaElement.Gv().length?this.Iw=d?g.Tt.Ii(f,100):g.jC(f,100):this.Iw=d?g.Tt.Ii(f,500):g.jC(f,500)}this.videoData.OF=c;!a&&this.isPlaying()&&I9a(this);$6a(this.bl,this.cg,this.zf(),this.isBackground())&&D0(this);this.ra("progresssync",this,a);e&&VT(this.videoData)&&this.ra("onVideoProgress",this,this.getCurrentTime())}};
g.k.n5=function(){this.Sg("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.dD=function(){return this.Lc().dD()};
g.k.gN=function(){return this.Da?this.Da.gN():$R(this.Z.schedule,!0)};
g.k.Ac=function(a){if(g.gBa(this.playerState,a))this.Z.wd()&&a.seekSource!==this.playerState.seekSource&&this.ya("ssdiff",{ps:(this.playerState.seekSource||"").toString(),ns:(a.seekSource||"").toString()});else{var b=new g.$G(a,this.playerState);this.playerState=a;P9a(this);var c=!this.rJ.length;this.rJ.push(b);var d=this.mediaElement&&this.mediaElement.Wg();d=8===b.pA.state&&!d;if(g.cH(b,1)&&d&&g.aH(this.playerState,8)&&!g.aH(this.playerState,64)&&this.Da){d=this.Da;d.Sq=!0;if(d.policy.Ja&&d.Wa){var e,
f,h,l;d.ya("lr_rb",{c:d.currentTime,s:d.Wg(),ab:vL(d.Wa.j.Jf()),ala:null==(e=b_(d.audioTrack))?void 0:e.le(),alr:null==(f=d.audioTrack.B)?void 0:f.le(),vb:vL(d.Wa.B.Jf()),vla:null==(h=b_(d.videoTrack))?void 0:h.le(),vlr:null==(l=d.videoTrack.B)?void 0:l.le()})}this.mediaElement&&5<=PL(this.mediaElement)&&(e=this.bl,f=this.cg,!f.videoData.B||e.N("html5_disable_performance_downgrade")?e=!1:(6E4<g.eb()-e.K&&(e.B=0),e.B++,e.K=g.eb(),4!==e.B?e=!1:(Y6a(e,f.videoData.B),e=!0)),e&&D0(this))}(e=g.JJ(this.Z.experiments,
"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.aH(a,1)&&(g.aH(a,8)||g.aH(a,16))?this.LL.start(e):this.LL.stop();(0>bH(b,8)||g.cH(b,1024))&&this.jw.stop();!g.cH(b,8)||this.videoData.Va||g.aH(b.state,1024)||this.jw.start();g.aH(b.state,8)&&0>bH(b,16)&&!g.aH(b.state,32)&&!g.aH(b.state,2)&&this.playVideo();g.aH(b.state,2)&&GT(this.videoData)&&(this.wl(this.getCurrentTime()),this.Ic(!0));g.cH(b,2)&&this.VQ(!0);g.cH(b,128)&&this.Yn();this.videoData.j&&this.videoData.isLivePlayback&&!this.w_&&(0>bH(b,
8)?(a=this.videoData.j,a.D&&a.D.stop()):g.cH(b,8)&&this.videoData.j.resume());this.xd.Xd(b);this.Lc().Xd(b);if(c&&!this.isDisposed())try{for(var m=g.u(this.rJ),n=m.next();!n.done;n=m.next()){var p=n.value;this.Mi.Xd(p);this.ra("statechange",p)}}finally{this.rJ.length=0}}};
g.k.lE=function(){this.videoData.isLivePlayback||this.N("html5_disable_connection_issue_event")||this.ra("connectionissue")};
g.k.JP=function(){this.Hb.tick("qoes")};
g.k.ZM=function(){this.xd.ZM()};
g.k.TI=function(a,b,c,d){a:{var e=this.Kk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=XK(b);"drm.keyerror"===a&&this.Qe&&1<this.Qe.B.keys.length&&96>e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())P6a(e,a);else{if(e.xa.Sg(a,b,d,c),G6a(e,{detail:c}))break a}else e.Ae(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.ya("retrydrm",{sessionLimitExhausted:1}),e.D++,M9a(e.xa))}};
g.k.P7=function(){var a=this,b=g.JJ(this.Z.experiments,"html5_license_constraint_delay"),c=Lna();b&&c?(b=new g.au(function(){N0(a);K0(a)},b),g.L(this,b),b.start()):(N0(this),K0(this))};
g.k.oE=function(a){this.ra("heartbeatparams",a)};
g.k.Hp=function(a){this.ya("keystatuses",k6a(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.N("html5_drm_check_all_key_error_states")){var d=l6a(b,c);d=T_(a)?m6a(a,d):a.D.includes(d)}else{a:{b=l6a(b,c);for(d in a.j)if("output-restricted"===a.j[d].status){var e=a.j[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}if(this.N("html5_enable_vp9_fairplay")){if(c)if(a.ma){var f;if(null==(f=this.Qe)?0:DR(f.j))if(null==(c=this.Qe))c=
0;else{b=f=void 0;e=g.u(c.B.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=n6a(h,"SD")),b||(b=n6a(h,"AUDIO"));c.gj({sd:f,audio:b});c="output-restricted"===f||"output-restricted"===b}else c=!d;if(c){this.ya("drm",{dshdr:1});P6a(this.Kk);return}}else{this.videoData.ZB||(this.videoData.ZB=!0,this.ya("drm",{dphdr:1}),Y_(this,!0));return}var l;if(null==(l=this.Qe)?0:DR(l.j))return}else if(l=a.ma&&d,c&&!l){P6a(this.Kk);return}d||m6a(a,"AUDIO")&&m6a(a,"SD")||(a=k6a(a),this.PQ?(this.ra("drmoutputrestricted"),
this.N("html5_report_fatal_drm_restricted_error_killswitch")||this.Sg("drm.keyerror",2,void 0,"info."+a)):(this.PQ=!0,this.Ae(new WK("qoe.restart",Object.assign({},{retrydrm:1},a))),D0(this),M9a(this)))};
g.k.R7=function(){if(!this.videoData.Va&&this.mediaElement&&!this.isBackground()){var a="0";0<this.mediaElement.yk()&&5<=PL(this.mediaElement)&&this.videoData.C&&this.videoData.C.j&&(this.Ac(TL(this.playerState,1)),N9a(this,"load_soft_timeout"),this.ra("playbackstalledatstart"),a="1");P9a(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!DQa(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].xe)||this.Qe),mfmtinfo:!this.videoData.B,prerolls:this.mp()?this.Cm.join(","):
"0"};if(this.Qe){b=this.Qe;if(0>=b.B.size){var c="ns;";b.ea||(c+="nr;");b=c+="ql."+b.C.length}else b=k6a(b.B.values().next().value),b=VK(b);a.drmp=b}var d;Object.assign(a,(null==(d=this.Da)?void 0:d.uc())||{});var e;Object.assign(a,(null==(e=this.mediaElement)?void 0:e.uc())||{});this.Lc().Ae("qoe.start15s",VK(a));this.ra("loadsofttimeout")}};
g.k.wl=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,K0(this))};
g.k.VQ=function(a){var b=this;a=void 0===a?!1:a;if(!this.qG){gI("att_s","player_att")||kI("att_s",void 0,"player_att");var c=new g.CKa(this.videoData);if("c1a"in c.j&&!g.yI.isInitialized()){kI("att_wb",void 0,"player_att");2===this.ZL&&.01>Math.random()&&g.UF(Error("Botguard not available after 2 attempts"));if(a)return;if(5>this.ZL){g.bu(this.pG);this.ZL++;return}}if("c1b"in c.j){var d=f8a(this.Lc());d&&FKa(c).then(function(e){e&&!b.qG&&d?(kI("att_f",void 0,"player_att"),d(e),b.qG=!0):kI("att_e",
void 0,"player_att")},function(){kI("att_e",void 0,"player_att")})}else(a=g.DKa(c))?(kI("att_f",void 0,"player_att"),e8a(this.Lc(),a),this.qG=!0):kI("att_e",void 0,"player_att")}};
g.k.Re=function(a){return this.xd.Re(void 0===a?!1:a)};
g.k.me=function(){return this.xd.me()};
g.k.Xc=function(){return this.xd?this.xd.Xc():0};
g.k.getStreamTimeOffset=function(){return this.xd?this.xd.getStreamTimeOffset():0};
g.k.Eq=function(){var a=0;this.Z.N("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Xc():this.getStreamTimeOffset());return a};
g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&U6a(this.bl,null==(b=this.videoData.C)?void 0:b.videoInfos)&&D0(this);this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.playbackRate};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.B&&(a=this.videoData.B.video.quality,"auto"===a&&this.mediaElement)){var b=k9a(this);b&&0<b.videoHeight&&(a=CAa(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.B&&this.videoData.B.video&&this.videoData.B.video.isHdr())};
g.k.nB=function(){this.Lc().nB()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.Lc();c.j?(c=i0(c.j,"engage"),c.ea=a,c.send(b)):b&&b()};
g.k.Tj=function(a){return this.Lc().Tj(a)};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;return pT(this.videoData)&&(this.tW||b)?this.xd.isAtLiveHead(a):!1};
g.k.Cv=function(){var a=this.Re(),b=this.getCurrentTime(),c;(c=!pT(this.videoData))||(c=this.xd,c=!(c.B&&c.B.C));return c||this.Rq()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.Qn=aa(15);g.k.Wt=aa(42);g.k.Xn=function(a){this.Lc().Xn(a)};
g.k.oD=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.k.setLoop=function(a){this.loop=a;this.mediaElement&&AS(this.Z)&&this.mediaElement.setLoop(a);this.Da&&this.N("html5_loop_skip_set_end_of_stream")&&(a?this.Da.policy.Ya=!0:K_(this.Da))};
g.k.Zs=function(){return this.mediaElement&&AS(this.Z)?this.mediaElement.Zs():this.loop};
g.k.NP=function(a){this.ya("timestamp",{o:a.toString()});this.xd.NP(a)};
g.k.md=function(a){this.Hb.tick(a)};
g.k.Fi=function(a){return this.Hb.Fi(a)};
g.k.Cu=function(a){this.Hb.Cu(a)};
g.k.ya=function(a,b,c){c=void 0===c?!1:c;this.Lc().ya(a,b,c)};
g.k.zQ=function(a,b,c){c=void 0===c?!1:c;this.Lc().ya(a,b,c)};
g.k.Ae=function(a){this.Lc().Ae(a.errorCode,VK(a.details));a=a.errorCode;if(this.videoData.isLivePlayback&&("qoe.longrebuffer"===a||"qoe.slowseek"===a)){a=this.Da?k3a(this.Da.videoTrack):{};var b,c;this.ya("lasoe",Object.assign(this.Da?k3a(this.Da.audioTrack):{},null==(b=this.Wa)?void 0:null==(c=b.j)?void 0:c.wH()));var d,e;this.ya("lvsoe",Object.assign(a,null==(d=this.Wa)?void 0:null==(e=d.B)?void 0:e.wH()))}};
g.k.SE=function(a,b,c){this.Lc().SE(a,b,c)};
g.k.EC=function(a){this.videoData.bX=!0;this.Ae(new WK("sabr.fallback",a));Y_(this,!0)};
g.k.WG=function(a){this.videoData.XZ=!0;this.Ae(new WK("qoe.restart",a));Y_(this,!0)};
g.k.getPlayerSize=function(){return this.sF.getPlayerSize()};
g.k.Vj=function(){return this.sF.Vj()};
g.k.oi=function(){return this.Hb};
g.k.Fq=function(){return this.qe.Fq()};
g.k.getVolume=function(){return this.qe.getVolume()};
g.k.CD=function(){return this.qe.CD()};
g.k.isMuted=function(){return this.qe.isMuted()};
g.k.gz=function(){return this.qe.gz()};
g.k.bD=function(){return this.qe.bD()};
g.k.SC=function(){return this.qe.SC()};
g.k.N=function(a){return this.Z.N(a)};
g.k.XL=function(){if(nT(this.videoData,"html5_set_debugging_opt_in")){var a=g.kD();g.lD(0,183)||(Eoa(183,!0),a.save())}};
g.k.dZ=function(){if(g.WL(this.playerState)){var a=H0.YM();0!==Object.keys(a).length&&this.Lc().ya("profile",a)}this.xJ.start()};
g.k.Kr=function(){var a=this.getCurrentTime(),b=a-this.Xc();var c=this.mediaElement?zL(this.mediaElement.Kh()):0;c=Math.floor(Math.max(c-b,0))+100;var d;if(null==(d=this.Da)?0:d.jF(b,this.Re()))return this.ya("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var e;return(null==(e=this.Da)?0:e.Kr(b,c))?(this.ya("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),R8a(this.xd,a),!0):!1};
g.k.wd=function(){return this.Z.wd()};
g.k.zN=function(){if(this.N("html5_generate_content_po_token")&&this.videoData.videoId)return this.videoData.P4||this.qe.XO(this.videoData.videoId);this.qe.RR();return this.Z.hg||""};
g.k.Se=function(){return this.videoData.videoId};
g.k.sz=function(a){return this.Da?this.Da.sz(a):""};
g.k.rz=function(){return this.qe.Cw};
g.k.Dt=function(){return this.qe.Dt()};
g.k.KQ=function(a,b){this.ya("requestUtcSeek",{time:a});var c;null==(c=this.Da)||c.KQ(a);b&&(this.pB=b)};
g.k.rM=function(){this.pB=0};
g.k.xE=function(a){this.qe.xE(a)};g.w(g.S0,g.J);g.S0.create=function(a,b,c,d){try{var e="string"===typeof a?a:"player"+g.ab(a),f=P3[e];if(f){try{f.dispose()}catch(l){g.TF(l)}P3[e]=null}var h=new g.S0(a,b,c,d);g.ub(h,function(){P3[e]=null;h.q_&&h.q_()});
return P3[e]=h}catch(l){throw g.TF(l),(l&&l instanceof Error?l:Error(String(l))).stack;}};
g.k=g.S0.prototype;g.k.kp=function(){return this.visibility};
g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.pn=function(){this.jO||(this.jO=g.vI(yU(),uxa()));return this.jO};
g.k.Bj=function(){if(this.mediaElement){this.tB&&(this.events.Qc(this.tB),this.tB=null);g.cD(this.Pt);this.Ob&&this.Ob.Bj(!0);this.template.Bj();try{this.N("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.FJ()}catch(a){g.UF(a)}this.mediaElement=null}};
g.k.Gd=function(){return this.Ob};
g.k.Lw=function(){this.Ob!==this.Bb&&wY(this,this.Bb)};
g.k.Uy=function(a,b,c){var d=this,e=this.Hb;2===a&&(e=new ZTa(this.Z));return new g.F0(this.Z,a,e,this.template,function(f){return d.zr.ra.apply(d.zr,[f].concat(g.pa(g.Ja.apply(1,arguments))))},function(){return d.Za.getVisibilityState()},this.visibility,this,b,c)};
g.k.h7=function(){Y0(this)||this.Sp(5)};
g.k.m8=function(a){if(!Y0(this)){E$a(this);var b=a.getPlayerState();a.HD()?this.pauseVideo():g.WL(b)&&this.playVideo()}};
g.k.canPlayType=function(a){return rL(a)};
g.k.W=function(){return this.Z};
g.k.getVideoData=function(){return this.Ob.getVideoData()};
g.k.mD=aa(9);g.k.Qd=function(){return this.Bb.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.dU(this,a);return a?g.UT(a.getVideoData())?1:(a=a.zf())?a.Dv():0:0};
g.k.tb=function(){return this.template};
g.k.Eb=function(){return this.Cd};
g.k.oi=function(){return this.Hb};
g.k.ZA=function(a){var b=g.dU(this,1);b&&vY(b,a)};
g.k.Fq=function(){return this.Cd.Fq()};
g.k.getVolume=function(){return Math.round(this.Za.getVolume())};
g.k.CD=function(){return this.Za.isFullscreen()};
g.k.isMuted=function(){return this.Za.isMuted()};
g.k.bD=function(){if(this.Z.N("html5_enable_embedded_player_visibility_signals")&&g.eS(this.Z)&&this.WR){var a=this.WR;a=null==a.j?null:Math.round(100*a.j)/100;if(null!=a)return a}};
g.k.SC=function(){if(this.Z.N("html5_enable_embedded_player_visibility_signals")&&g.eS(this.Z)){var a=this.template.getPlayerSize();if(0<a.height&&0<a.width){a=[Math.round(a.width),Math.round(a.height)];var b=g.uS();1<b&&a.push(b);return a.join(":")}}};
g.k.gz=function(){if(this.Ob===this.Bb&&this.Lb)return this.Lb.postId};
g.k.f$=function(){var a=this;g.UJ(this.Z)?g.DS(this.Z,g.RT(this.getVideoData())).then(function(b){bSa(yU(),b);yRa(a.getVideoData(),a.Z,a.pn())}):yRa(this.getVideoData(),this.Z,this.pn())};
g.k.eN=function(a){var b=this;return g.H(function(c){return b.DA?c.return(b.DA.eN(a)):c.return(Promise.reject("web po not available"))})};
g.k.RR=function(){this.DA&&this.DA.RR()};
g.k.XO=function(a){return this.DA?this.DA.XO(a):""};
g.k.aR=function(a){this.DA=a};
g.k.ME=function(a){1===a&&(this.Hb.tick("vr"),G9a(this.Ob),$Ta(this.Hb,this.Ob.getVideoData(),D$a(this)),NUa(this.Cd));var b=this.Z;(BS(b)&&b.K||g.kS(b))&&(this.Mf()||this.Za.Ta("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.Ob===this.Bb&&this.Ob.Zs()!==a&&(this.Ob.setLoop(a),this.Za.Ta("onLoopChange",a))};
g.k.getLoopVideo=function(){return this.Ob.Zs()};
g.k.setLoopRange=function(a){var b=!1;!!this.Lb!==!!a?b=!0:this.Lb&&a&&(b=this.Lb.startTimeMs!==a.startTimeMs||this.Lb.endTimeMs!==a.endTimeMs||this.Lb.postId!==a.postId||this.Lb.type!==a.type);if(b){this.Bb.Mi.mf("applooprange");if(a)b=new g.oK(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.Bb.addCueRange(b);else{this.Qd().clipConfig=void 0;var c,d;"repeatChapter"!==(null==(c=this.Lb)?void 0:c.type)||isNaN(Number(null==(d=this.Lb)?void 0:d.loopCount))||(b={loopCount:String(this.Lb.loopCount),
cpn:this.getVideoData().clientPlaybackNonce},g.zD("repeatChapterLoopEvent",b))}this.Lb=a;this.Za.Ta("onLoopRangeChange",a||void 0);this.Ob===this.Bb&&(this.QJ(),this.Ob.uo())}};
g.k.getLoopRange=function(){return this.Lb};
g.k.QJ=function(){this.Lb&&this.Ob===this.Bb&&(o$a(this,this.Bb.getCurrentTime())?this.Lb.loopCount=0:p$a(this))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=Y9a(this,a),this.Bb.getPlaybackRate()!==a&&(this.Bb.setPlaybackRate(a),b&&!this.Z.D&&g.fD("yt-player-playback-rate",a),this.Za.Ta("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return rU(this.Cd).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai,d=g.TT(this.getVideoData());a=c||d?g.dU(this):g.dU(this,a);if(!a)return 0;if(d&&this.Uc)return a=a.getCurrentTime(),b=g0a(this.Uc,a),a-b/1E3;if(b){if(c&&this.Ve&&(b=this.Ve.xb/1E3,0!==b))return b;a=X0(this,a);return g1(this,a.getCurrentTime(),a)}c&&this.Ve?(b=this.Ve,a=a.getCurrentTime(),zY(b)?(b=GY(b,1E3*a))&&b.As&&(a-=
b.As):(b=O_a(b,1E3*a))&&(a-=b.start/1E3)):a=a.getCurrentTime();return a};
g.k.oz=function(){var a=g.dU(this);if(!a)return 0;a=X0(this,a);return g1(this,a.oz(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai,e=g.TT(c);var f=d||e?g.dU(this):g.dU(this,a);if(!f)return 0;if(c.hasProgressBarBoundaries()&&!d&&!e){var h,l=Number(null==(h=c.progressBarStartPosition)?void 0:h.utcTimeMillis),m;c=Number(null==(m=c.progressBarEndPosition)?void 0:m.utcTimeMillis);if(!isNaN(l)&&!isNaN(c))return(c-l)/1E3}if(e&&this.Uc)return b=h0a(this.Uc,f.getCurrentTime()),1===a&&0===b?f.getDuration():b;if(b)return f=W0(this,
f),g1(this,f.getDuration(),f);d&&this.Ve?(a=this.Ve,f=f.getCurrentTime(),f=zY(a)?a.va?a.va.durationMs/1E3:0:(f=GY(a,1E3*f))?f.durationMs/1E3:0):f=f.getDuration();return f};
g.k.me=function(a){a=g.dU(this,a);if(!a)return 0;a=W0(this,a);return g1(this,a.me(),a)};
g.k.Ze=function(a){var b=g.dU(this,a);return b?this.Mf(b)?(b=W0(this,b),b.Ze()-b.getCurrentTime()+this.getCurrentTime(a)):b.Ze():0};
g.k.addPlayerResponseForAssociation=function(a){this.Uc&&this.Uc.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.Uc?this.Uc.finishSegmentByCpn(a,b):[]};
g.k.FM=function(){this.template.FM();var a=this.J;a.element=this.template.element;var b=a.element,c;for(c in a.state.j)a.state.j.hasOwnProperty(c)&&(b[c]=a.state.j[c]);(a=joa(this.template.element))&&this.events.V(this.template,a,this.onFullscreenChange);this.events.V(window,"resize",this.J8)};
g.k.getDebugText=function(a){var b=this.Bb.uc(a);if(this.Ob&&this.Ob!==this.Bb){for(var c=this.Ob.uc(a),d=g.u(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=We(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.$e("video-ads");f?(K$a(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.$e("videoAdUiSkipContainer"),l=g.$e("ytp-ad-skip-button-container"),m=h||l;m?(K$a(m,f),f.ima=h?1:0,f.bulleit=l?1:0):f.missing=1;
d=JSON.stringify({player:d,videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(0===+this.mediaElement.getSize().area()),b.op=this.mediaElement.lD("opacity"),c=this.mediaElement.kt().y+this.mediaElement.getSize().height,b.yof=""+(0>=+c),b.dis=this.mediaElement.lD("display"));(a=a?(0,g.d0)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Za.getPlaybackQuality(1);b.debug_date=(new Date).toString();b.timestamp=Date.now();delete b.uga;delete b.q;return JSON.stringify(b,
null,2)};
g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.W().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20230917_00_RC01"},b=this.Tb().Ah;b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(Y0(this))return 3;var b;if(a&&(null==(b=this.Ve)?0:M_a(b,this.getCurrentTime())))return 2;a=g.dU(this);if(b=g.TT(this.getVideoData())&&a)null==(b=this.Uc)?a=0:(a=a.getCurrentTime(),a=(a=MY(b,1E3*a))?2===a.getType():!1),b=a;return b?2:g.dU(this).getPlayerType()};
g.k.Tb=function(a){return 3===this.getPresentingPlayerType()?rU(this.Cd).lf:g.dU(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.PP=function(a){switch(a.type){case "loadedmetadata":this.LJ.start();a=g.u(this.RA);for(var b=a.next();!b.done;b=a.next())b=b.value,B$a(this,b.id,b.Faa,b.Eaa,void 0,!1);this.RA=[];break;case "loadstart":this.Hb.Cu("gv");break;case "progress":case "timeupdate":2<=zL(a.target.Kh())&&this.Hb.Cu("l2s");break;case "playing":g.yS&&this.LJ.start();if(g.UJ(this.Z))a=!1;else{b=g.uU(this.Eb());a="none"===this.mediaElement.lD("display")||0===this.mediaElement.getSize().area();var c=cZ(this.template),d=this.Ob.getVideoData(),
e=g.qH(this.Z)||g.mS(this.Z);d=wT(d);b=!c||b||e||d||this.Z.Ub;a=a&&!b}a&&(this.Ob.ya("hidden",{},!0),this.getVideoData().Mb||(this.getVideoData().Mb=1,this.jY(),this.Ob.playVideo()))}};
g.k.onLoadProgress=function(a,b){this.Za.Ta("onLoadProgress",b)};
g.k.h9=function(){this.Za.ra("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=X0(this,a);b=g1(this,a.getCurrentTime(),a);this.Za.Ta("onVideoProgress",b)};
g.k.onAutoplayBlocked=function(){this.Za.Ta("onAutoplayBlocked")};
g.k.w8=function(){this.Za.ra("progresssync")};
g.k.j7=function(a){if(1===this.getPresentingPlayerType()){g.cH(a,1)&&!g.aH(a.state,64)&&this.Qd().isLivePlayback&&this.Bb.isAtLiveHead()&&1<this.Za.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.cH(a,2)){if(this.Lb&&this.Lb.endTimeMs>=1E3*(this.getDuration()-1)){p$a(this);return}g$a(this)}if(g.aH(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.Ah;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Za.Ta("onError",CRa(b.errorCode));this.Za.Ta("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.TM,cpn:b.cpn});6048E5<(0,g.OD)()-this.Z.gg&&this.Za.Ta("onReloadRequired")}b={};if(a.state.isPlaying()&&!g.XL(a.state)&&!gI("pbresume","ad_to_video")&&gI("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.hI(b,"ad_to_video");jI("pbresume",void 0,"ad_to_video");NUa(this.Cd)}this.Za.ra("applicationplayerstatechange",a)}};
g.k.BY=function(a){3!==this.getPresentingPlayerType()&&this.Za.ra("presentingplayerstatechange",a)};
g.k.Xi=function(a){V0(this,YL(a.state));g.aH(a.state,1024)&&this.Za.isMutedByMutedAutoplay()&&(hU(this,{muted:!1,volume:this.Gi.volume},!1),e1(this,!1))};
g.k.f7=function(a,b,c){"newdata"===a&&$9a(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})};
g.k.iE=function(){this.Za.Ta("onPlaybackAudioChange",this.Za.getAudioTrack().Rc.name)};
g.k.zE=function(a){var b=this.Ob.getVideoData();a===b&&this.Za.Ta("onPlaybackQualityChange",a.B.video.quality)};
g.k.onVideoDataChange=function(a,b,c){b===this.Bb&&(this.Z.lk=c.oauthToken);if(b===this.Bb&&(this.getVideoData().enableServerStitchedDai&&!this.Ve?this.Ve=new g.AY(this.Za,this.Z,this.Bb):!this.getVideoData().enableServerStitchedDai&&this.Ve&&(this.Ve.dispose(),this.Ve=null),g.TT(this.getVideoData())&&"newdata"===a)){this.BA.Of();var d=1E3*this.getDuration(1);var e=this.getVideoData();d=new yY(0,0+(d||0),!d,1,this.BA,e,void 0);e=this.BA;d.D===e&&(0===e.segments.length&&(e.B=d),e.segments.push(d));
this.Uc&&(this.Uc.dispose(),this.Uc=null);this.Uc=new d0a(this.Za,this.BA,this.Bb)}if("newdata"===a)LV(this.Cd,2),this.Za.ra("videoplayerreset",b);else{if(!this.mediaElement)return;"dataloaded"===a&&(this.Ob===this.Bb?(GOa(c.La,c.lS),this.Bb.getPlayerState().isError()||(d=Y0(this),this.Qd().isLoaded(),d&&this.Sp(6),k$a(this),LUa(this.Cd)||j$a(this))):k$a(this));if(1===b.getPlayerType()&&(this.Z.eb&&J$a(this),this.getVideoData().isLivePlayback&&!this.Z.Cp&&this.Rg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),
c.isLoaded())){if(UQa(c)||this.getVideoData().qx){d=this.Cy;var f=this.getVideoData();e=this.Bb;XT(d,"part2viewed",1,0x8000000000000,e);XT(d,"engagedview",Math.max(1,1E3*f.kb),0x8000000000000,e);f.isLivePlayback||(f=1E3*f.lengthSeconds,XT(d,"videoplaytime25",.25*f,f,e),XT(d,"videoplaytime50",.5*f,f,e),XT(d,"videoplaytime75",.75*f,f,e),XT(d,"videoplaytime100",f,0x8000000000000,e),XT(d,"conversionview",f,0x8000000000000,e),XT(d,"videoplaybackstart",1,f,e),XT(d,"videoplayback2s",2E3,f,e),XT(d,"videoplayback10s",
1E4,f,e))}if(c.hasProgressBarBoundaries()){var h;d=Number(null==(h=this.getVideoData().progressBarEndPosition)?void 0:h.utcTimeMillis)/1E3;!isNaN(d)&&(h=this.Ze())&&(h-=this.getCurrentTime(),h=1E3*(d-h),d=this.yJ.progressEndBoundary,(null==d?void 0:d.start)!==h&&(d&&this.VE([d]),h=new g.oK(h,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.Bb.addCueRange(h),this.yJ.progressEndBoundary=h))}}this.Za.ra("videodatachange",a,c,b.getPlayerType())}this.Za.Ta("onVideoDataChange",
{type:a,playertype:b.getPlayerType()});this.QJ();(a=c.fF)?this.Nq.cV(a,c.clientPlaybackNonce):Q0a(this.Nq)};
g.k.DG=function(){$0(this,null);this.Za.Ta("onPlaylistUpdate")};
g.k.QX=function(a){var b=a.getId(),c=this.Qd(),d=!this.isInline();if(!c.inlineMetricEnabled&&!this.Z.experiments.ob("enable_player_logging_lr_home_infeed_ads")||d){if("part2viewed"===b){if(c.BT&&g.EE(c.BT),c.YR&&m1(this,c.YR),c.ly)for(var e={CPN:this.getVideoData().clientPlaybackNonce},f=g.u(c.ly),h=f.next();!h.done;h=f.next())m1(this,g.Qt(h.value,e))}else"conversionview"===b?this.Bb.nB():"engagedview"===b&&c.Oi&&(e={CPN:this.getVideoData().clientPlaybackNonce},g.EE(g.Qt(c.Oi,e)));c.CT&&(e=a.getId(),
e=cC(c.CT,{label:e}),g.EE(e));switch(b){case "videoplaytime25":c.oS&&m1(this,c.oS);c.aS&&n1(this,c.aS);c.HT&&g.EE(c.HT);break;case "videoplaytime50":c.xT&&m1(this,c.xT);c.wK&&n1(this,c.wK);c.JT&&g.EE(c.JT);break;case "videoplaytime75":c.zT&&m1(this,c.zT);c.xK&&n1(this,c.xK);c.LT&&g.EE(c.LT);break;case "videoplaytime100":c.nS&&m1(this,c.nS),c.ZR&&n1(this,c.ZR),c.GT&&g.EE(c.GT)}(e=this.getVideoData().qx)&&w$a(this,e,a.getId())&&w$a(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&!d)switch(b){case "videoplaybackstart":var l,
m=null==(l=c.oy)?void 0:l.j;m&&m1(this,m);break;case "videoplayback2s":(l=null==(m=c.oy)?void 0:m.C)&&m1(this,l);break;case "videoplayback10s":var n;(l=null==(n=c.oy)?void 0:n.B)&&m1(this,l)}this.Bb.removeCueRange(a)};
g.k.v8=function(a){delete this.yJ[a.getId()];this.Bb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=(null==(b=a.Jd)?void 0:null==(c=b.contents)?void 0:null==(d=c.singleColumnWatchNextResults)?void 0:null==(e=d.autoplay)?void 0:null==(f=e.autoplay)?void 0:f.sets)||(null==(h=a.Jd)?void 0:null==(l=h.contents)?void 0:null==(m=l.twoColumnWatchNextResults)?void 0:null==(n=m.autoplay)?void 0:null==(p=n.autoplay)?void 0:p.sets);if(q)for(b=g.u(q),c=b.next();!c.done;c=b.next())if(c=c.value,
e=d=void 0,c=c.autoplayVideo||(null==(d=c.autoplayVideoRenderer)?void 0:null==(e=d.autoplayEndpointRenderer)?void 0:e.endpoint),d=g.S(c,g.sT),f=e=void 0,null!=c&&(null==(e=d)?void 0:e.videoId)===a.videoId&&(null==(f=d)?0:f.continuePlayback)){a=c;break a}a=null}(b=g.S(a,g.sT))&&this.Za.Ta("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
g.k.Sp=function(a){a!==this.appState&&(2===a&&1===this.getPresentingPlayerType()&&(V0(this,-1),V0(this,5)),this.appState=a,this.Za.ra("appstatechange",a))};
g.k.Rg=function(a,b,c,d,e){this.Bb.Sg(a,b,c,d,e)};
g.k.Ir=function(a,b){this.Bb.handleError(new WK(a,b))};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.dU(this,a);if(!c)return!1;a=W0(this,c);c=X0(this,c);return a!==c?a.isAtLiveHead(g1(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Cv=function(){var a=g.dU(this);return a?W0(this,a).Cv():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.dU(this,d))2===this.appState&&c1(this),this.Mf(d)?f1(this)?this.Ve.seekTo(a,b,c):this.od.seekTo(a,b,c):g.TT(this.getVideoData())&&this.Uc?this.Uc.seekTo(a,{KR:!b,LR:c,Id:"application"}):d.seekTo(a,{KR:!b,LR:c,Id:"application"})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.sA=function(){this.Za.Ta("SEEK_COMPLETE")};
g.k.W8=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.aH(a.getPlayerState(),512)||c1(this):this.Za.Ta("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Za.ra("airplayactivechange");this.Z.N("html5_external_airplay_events")&&this.Za.Ta("onAirPlayActiveChange",this.Za.Nh())};
g.k.onAirPlayAvailabilityChange=function(){this.Za.ra("airplayavailabilitychange");this.Z.N("html5_external_airplay_events")&&this.Za.Ta("onAirPlayAvailabilityChange",this.Za.BD())};
g.k.showAirplayPicker=function(){var a;null==(a=this.Ob)||a.pu()};
g.k.lP=function(){this.Za.ra("beginseeking")};
g.k.qP=function(){this.Za.ra("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.dU(this,a))?W0(this,a).getVideoData().getStoryboardFormat():null};
g.k.Uj=function(a){return(a=g.dU(this,a))?W0(this,a).getVideoData().Uj():null};
g.k.Mf=function(a){a=a||this.Ob;var b=!1;if(a){a=a.getVideoData();if(f1(this))a=a===this.Ve.xa.getVideoData();else a:if(b=this.od,a===b.j.getVideoData()&&b.B.length)a=!0;else{b=g.u(b.B);for(var c=b.next();!c.done;c=b.next())if(a.fd===c.value.fd){a=!0;break a}a=!1}b=a}return b};
g.k.hC=function(a,b,c,d,e,f,h){var l=f1(this),m;null==(m=g.dU(this))||m.ya("appattl",{sstm:this.Ve?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:l});return l?J_a(this.Ve,a,b,c,d,e,f,h):s0a(this.od,a,c,d,e,f)};
g.k.xD=function(a,b,c,d,e,f,h){f1(this)&&J_a(this.Ve,a,b,c,d,e,f,h);return""};
g.k.Xt=function(a){var b;null==(b=this.Ve)||b.Xt(a)};
g.k.Iy=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;f1(this)||B0a(this.od,a,b)};
g.k.FF=function(a,b,c){if(f1(this)){var d=this.Ve,e=d.Yc.get(a);e?(void 0===c&&(c=e.Yd),e.durationMs=b,e.Yd=c):d.TD("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.od;e=null;for(var f=g.u(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.fd===a){e=h;break}e?(void 0===c&&(c=e.Yd),A0a(d,e,b,c)):QY(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Mf();a=new g.hT(this.Z,a);d&&(a.fd=d);x$a(this,a,b,c)};
g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;a=this.preloadVideoByPlayerVars(a,void 0===b?1:b,c,void 0===d?"":d,void 0===e?"":e);b=this.Gd();a&&b&&(c=this.qo.ma,d=b.getVideoData(),e=a.getVideoData(),d.W().supportsGaplessShorts()?d.fl||e.fl?c={nq:"autoplay"}:d.ea?(c=e_a(c,b,a,Infinity),c=null!=c?{nq:c.msg}:null):c={nq:"client"}:c={nq:"env"},null!=c?(b.ya("sgap",c),b.getVideoData().ea&&(b.videoData.ea=!1,b.Da&&K_(b.Da))):(a=a.getVideoData(),b=this.J_,b.j!==a&&(b.j=a,b.B=1,a.isLoaded()?
b.C():b.j.subscribe("dataloaded",b.C,b))))};
g.k.cH=function(a,b,c,d){var e=this;c=void 0===c?0:c;d=void 0===d?0:d;var f=g.dU(this);f&&(W0(this,f).w_=!0);s_a(this.qo,a,b,c,d).then(function(){e.Za.Ta("onQueuedVideoLoaded")},function(){})};
g.k.Yv=function(){return this.qo.Yv()};
g.k.clearQueue=function(){this.qo.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;if(this.Z.N("html5_ignore_interruptive_ads_for_server_stitched")&&2===b&&this.Qd().enableServerStitchedDai&&this.Bb&&!g.Db(this.Bb.Cm,"ad")){var f;null==(f=this.Bb)||f.ya("lvonss",{vid:(null==a?void 0:a.videoId)||"",ptype:b});return!1}var h=!1;f=new g.hT(this.Z,a);g.xS(this.Z)&&!f.fl&&uV(this.Hb);var l,m=null!=(l=f.Oa)?l:"";this.Hb.timerName=m;this.Hb.Fi("pl_i");this.N("web_player_early_cpn")&&f.clientPlaybackNonce&&this.Hb.info("cpn",
f.clientPlaybackNonce);if(this.W().supportsGaplessShorts()&&!this.N("html5_shorts_gapless_always_fallback")){l=v_a(this.qo,f,b);if(null==l){V0(this,-1);a=this.qo;a.app.setLoopRange(null);a.app.getVideoData().aC=!0;var n,p;null==(n=a.j)||null==(p=n.Da)||p.resume();var q;null==(q=a.j)||PY(q.Lc());a.app.seekTo(u_a(a));if(!a.app.Tb(b).isPlaying()){var r;null==(r=g.dU(a.app))||r.playVideo(!0)}a.K();return!0}this.qo.clearQueue();var t;null==(t=g.dU(this))||t.ya("sgap",{f:l})}if(e){for(;f.Am.length&&f.Am[0].isExpired();)f.Am.shift();
n=f.Am.length-1;h=0<n&&e.B(f.Am[n])&&e.B(f.Am[n-1]);f.Am.push(e)}c||(a&&dUa(a)?(tS(this.Z)&&!this.gi&&(a.fetch=0),$0(this,a)):this.playlist&&$0(this,null),a&&(this.gi=JC(!1,a.external_list)),tS(this.Z)&&!this.gi&&a1(this));this.Za.ra("loadvideo");b=this.Nt(f,b,d);h&&this.Rg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+f.Am.join()).replace(/[;:,]/g,"_"));return b};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;e=void 0===e?"":e;if(this.Z.N("html5_autonav_autoplay_in_preload_key")){d=b;var f=e,h=NC(a);d=i1(this,d,h,f,"1"===a.autonav||!0===a.autonav,"1"===a.autoplay||!0===a.autoplay||1===a.autoplay)}else d=NC(a),d=i1(this,b,d,e);if(this.EA.get(d))return null;a=new g.hT(this.Z,a);e&&(a.fd=e);a:{e=this.Z.N("html5_autonav_autoplay_in_preload_key")?y$a(this,b,a):i1(this,b,a.videoId,a.fd);if(this.Ob&&(d=this.Z.N("html5_autonav_autoplay_in_preload_key")?
y$a(this,this.Ob.getPlayerType(),this.Ob.getVideoData()):i1(this,this.Ob.getPlayerType(),this.Ob.getVideoData().videoId,this.Ob.getVideoData().fd),e===d)){g.uY(this.Ob,!0);a.dispose();c=null;break a}a.Ji=!0;a=i$a(this,b,a);1===b&&wS(this.Z)||g.uY(a,!0);this.EA.set(e,a,c||3600);c=a}return c};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Cd;a=a.J.W().showMiniplayerUiWhenMinimized?a.Ue.get("miniplayer"):void 0;a&&(this.yg()?a.load():a.unload());this.Za.ra("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Cd;a=a.J.W().showInlinePreviewUi?a.Ue.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Za.Ta("onInlinePreviewModeChange"))};
g.k.YA=function(a){var b=this.Z.N("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.Z.Nl&&this.Z.N("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.cN&&b?this.cN.start():this.MU():this.visibility.YA(a)};
g.k.MU=function(){var a,b=null==(a=this.mediaElement)?void 0:a.Gb();b&&UC(b).catch(function(c){return g.UF(c)})};
g.k.T8=function(){this.mediaElement.Gb();"picture-in-picture"===this.mediaElement.Gb().webkitPresentationMode?this.YA(!0):this.YA(!1)};
g.k.togglePictureInPicture=function(){var a=g.dU(this);a&&a.togglePictureInPicture()};
g.k.Nt=function(a,b,c){b=void 0===b?1:b;gI("_start",this.Hb.timerName)||(g.WB(SH)(void 0,this.Hb.timerName),this.Hb.info("srt",0));var d=!1,e=n$a(this,b,a,!1);e?(d=!0,a.dispose()):(e=i$a(this,b,a,c),(this.N("html5_onesie")||this.N("html5_load_before_stop"))&&I0(e)&&g.uY(e),this.LJ.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),wY(this,e));e===this.Bb&&(this.Z.lk=a.oauthToken);if(!I0(e))return!1;if(e===this.Bb){this.Sp(1);a=c1(this);if(d&&this.J.N("html5_player_preload_ad_fix")&&
1===e.getPlayerType()&&e.Kp.finished)this.onVideoDataChange("dataloaded",e,e.getVideoData());return a}q9a(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(this.Z.N("html5_ignore_interruptive_ads_for_server_stitched")&&this.Qd().enableServerStitchedDai&&this.Bb&&!g.Db(this.Bb.Cm,"ad")){var d;null==(d=this.Bb)||d.ya("qvonss",{vid:(null==a?void 0:a.videoId)||"",ptype:b})}else if(a&&dUa(a))if(this.Wv=!0,$0(this,a),(a=g.vV(this.playlist))&&a.Ie())k1(this,a,b);else this.playlist.onReady(function(){b1(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.DG();d=new g.hT(this.Z,a);var e=g.eS(this.Z)&&!this.Z.Ca&&1===b&&!d.isAd()&&!d.Me;this.Za.ra("cuevideo");e?(this.Gd().getVideoData().loading=!0,jUa(d,a?a:{}).then(function(f){k1(c,f,b)}),d.dispose()):k1(this,d,b)}};
g.k.Ao=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(gS(this.Z)||g.SJ(this.Z))return b=b||{},b.lact=dF(),b.vis=this.Za.getVisibilityState(),this.Za.Ta("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;bUa(this.Hb);this.Hb.reset();a={video_id:a};d&&(a.autoplay="1");d&&(a.autonav="1");f&&(a.player_params=f.playerParams);h&&(a.oauth_token=h);c?(a.list=c,this.loadPlaylist(a)):this.loadVideoByPlayerVars(a,1);return!0};
g.k.cuePlaylist=function(a,b,c,d){this.Wv=!0;z$a(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Wv=!1;z$a(this,a,b,c,d)};
g.k.VC=function(){if(this.Za.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;tS(this.Z)&&!this.gi&&a1(this);return!(!this.playlist||!this.playlist.Sk())};
g.k.Us=aa(5);
g.k.nextVideo=function(a,b){var c=g.tT(this.Bb.getVideoData());g.xU(this.Za)&&c?this.Ao(c.videoId,b?c.JC:c.sessionData,c.playlistId,b,void 0,c.BU||void 0):this.gi?this.Za.Ta("onPlaylistNext"):3===this.getPresentingPlayerType()?rU(this.Cd).nextVideo():this.playlist&&(tS(this.Z)&&!this.Za.isFullscreen()?s$a(this,"yt.www.watch.lists.next"):(this.playlist.Sk(a)&&this.playlist.Rw(eUa(this.playlist)),this.playlist.loaded?(a=b&&this.Z.N("html5_player_autonav_logging"),b&&this.Za.ra("playlistautonextvideo"),this.Nt(g.vV(this.playlist,
void 0,b,a),1)):this.Wv=!1))};
g.k.previousVideo=function(a){this.gi?this.Za.Ta("onPlaylistPrevious"):3===this.getPresentingPlayerType()?rU(this.Cd).uJ():this.playlist&&(tS(this.Z)&&!this.Za.isFullscreen()?s$a(this,"yt.www.watch.lists.prev"):(this.playlist.qp(a)&&this.playlist.Rw(fUa(this.playlist)),this.playlist.loaded?this.Nt(g.vV(this.playlist),1):this.Wv=!1))};
g.k.playVideoAt=function(a){this.gi?this.Za.Ta("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Nt(g.vV(this.playlist,a),1):this.Wv=!1,this.playlist.Rw(a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.gD=aa(13);g.k.d7=function(a){this.Za.Ta("onCueRangeEnter",a.getId())};
g.k.e7=function(a){this.Za.Ta("onCueRangeExit",a.getId())};
g.k.Ay=function(a,b,c){var d=g.dU(this,b);d&&(d.Ay(a,c),b&&this.getPresentingPlayerType()!==b||U0(this,"cuerangesadded",a))};
g.k.VE=function(a,b){var c=g.dU(this,b);c&&(c.VE(a),b&&this.getPresentingPlayerType()!==b||U0(this,"cuerangesremoved",a))};
g.k.i7=function(){function a(){var d=g.QF(b.screenLayer||(b.yg()?3:0));if(d&&"UNDEFINED_CSN"!==d){var e=b.Z.N("web_player_attach_player_response_ve"),f=b.Z.N("web_playback_associated_ve");if(b.Z.N("il_via_jspb")){var h=new pB;var l=b.getVideoData().clientPlaybackNonce;l=N(h,1,l);N(l,3,d);b.getVideoData().Ca&&(e||f)&&(e=g.OF(b.getVideoData().Ca),g.dG(d,e),f&&(d=e.getAsJspb(),tj(h,fA,2,d)));if(b.getVideoData().queueInfo){d=b.getVideoData().queueInfo;f=new oB;if(null==d?0:d.enqueueingVe)(null==d?0:d.enqueueingVe.trackingParams)?
(e=g.OF(d.enqueueingVe.trackingParams),e=e.getAsJspb(),tj(f,fA,1,e)):g.UF(new g.nD("Cannot map enqueueingVe from a client VE "));(null==d?0:d.enqueueingCsn)&&N(f,2,d.enqueueingCsn);(null==d?0:d.clientEnqueueingTimeMs)&&Ij(f,3,Number(d.clientEnqueueingTimeMs));tj(h,oB,4,f)}d={};b.N("web_playback_associated_log_ctt")&&b.getVideoData().G&&(d.cttAuthInfo={token:b.getVideoData().G,videoId:b.getVideoData().videoId});$sa(h,d)}else h={cpn:b.getVideoData().clientPlaybackNonce,csn:d},b.getVideoData().Ca&&(e||
f)&&(e=g.OF(b.getVideoData().Ca),g.dG(d,e),f&&(h.playbackVe=e.getAsJson())),b.getVideoData().queueInfo&&(h.queueInfo=b.getVideoData().queueInfo),d={},b.N("web_playback_associated_log_ctt")&&b.getVideoData().G&&(d.cttAuthInfo={token:b.getVideoData().G,videoId:b.getVideoData().videoId}),g.zD("playbackAssociated",h,d)}else g.UF(new g.nD("CSN Missing or undefined during playback association"))}
var b=this;this.getPresentingPlayerType();$Ta(this.Hb,this.Ob.getVideoData(),D$a(this));Z0(this)&&this.Z.D&&"embedded"===NT(this.Qd())&&this.pX&&.01>Math.random()&&g.zD("autoplayTriggered",{intentional:this.SW});this.pX=!1;NUa(this.Cd);this.N("web_player_defer_ad")&&j$a(this);this.Za.Ta("onPlaybackStartExternal");(this.Z.N("mweb_client_log_screen_associated"),pS(this.Z))||a();var c={};this.getVideoData().G&&(c.cttAuthInfo={token:this.getVideoData().G,videoId:this.getVideoData().videoId});this.N("html5_sample_csi_att")&&
(c.sampleRate=20);iI("player_att",c);if(this.getVideoData().botguardData||this.N("fetch_att_independently"))g.vS(this.Z)||"MWEB"===g.JR(this.Z)?g.sD(g.uD(),function(){d1(b)}):d1(this);
this.QJ()};
g.k.wP=function(){this.Za.ra("internalAbandon");h1(this)};
g.k.onApiChange=function(){this.Z.K&&this.Ob?this.Za.Ta("onApiChange",this.Ob.getPlayerType()):this.Za.Ta("onApiChange")};
g.k.Y7=function(){var a=this.mediaElement;a={volume:g.ne(Math.floor(100*a.getVolume()),0,100),muted:a.BH()};a.muted||e1(this,!1);this.Gi=g.pd(a);this.Za.Ta("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.bP)&&(this.bP=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.bP}),this.Za.Ta("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=F$a(this);this.Em(a?1:0);H$a(this,!!a)};
g.k.Em=function(a){var b=!!a,c=!!this.lz()!==b;this.visibility.Em(a);this.template.Em(b);this.N("html5_media_fullscreen")&&!b&&this.mediaElement&&F$a(this)===this.mediaElement.Gb()&&this.mediaElement.MC();this.template.resize();c&&this.Hb.tick("fsc");c&&(this.Za.ra("fullscreentoggled",b),a=this.Qd(),b={fullscreen:b,videoId:a.uL||a.videoId,time:this.getCurrentTime()},this.Za.getPlaylistId()&&(b.listId=this.Za.getPlaylistId()),this.Za.Ta("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.lz=function(){return this.visibility.lz()};
g.k.J8=function(){this.Ob&&(0!==this.lz()&&1!==this.lz()||this.Em(F$a(this)?1:0),this.Z.Nl&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.MC())};
g.k.Q7=function(a){3!==this.getPresentingPlayerType()&&this.Za.ra("liveviewshift",a)};
g.k.playVideo=function(a){if(a=g.dU(this,a))2===this.appState?(g.xS(this.Z)&&uV(this.Hb),c1(this)):g.aH(a.getPlayerState(),2)?(this.seekTo(0),this.Z.wd()&&a.ya("szro",{})):a.playVideo()};
g.k.pauseVideo=function(a,b){(a=g.dU(this,a))&&a.pauseVideo(b)};
g.k.stopVideo=function(){var a=this.Bb.getVideoData(),b=new g.hT(this.Z,{video_id:a.uL||a.videoId,oauth_token:a.oauthToken});b.ma=g.pd(a.ma);this.cancelPlayback(6);k1(this,b,1)};
g.k.cancelPlayback=function(a,b){var c=g.dU(this,b);c&&(2===b&&1===c.getPlayerType()&&jRa(this.Qd())?c.ya("canclpb",{r:"no_adpb_ssdai"}):(this.Z.wd()&&c.ya("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Ob&&LV(this.Cd,a),1===b&&(c.stopVideo(),h1(this)),c.Yn(void 0,6!==a),U0(this,"cuerangesremoved",c.cn()),c.Mi.reset(),this.qo&&c.isGapless()&&(c.Bj(!0),c.setMediaElement(this.mediaElement)))))};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.dU(this,b))&&this.Z.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Tj=function(a){var b=g.dU(this);return b&&this.Z.enabledEngageTypes.has(a.toString())?b.Tj(a):null};
g.k.updatePlaylist=function(){tS(this.Z)?a1(this):g.eS(this.Z)&&l$a(this);this.Za.Ta("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.GZ=a;this.vO=b;this.Za.ra("sizestylechange",a,b);this.template.resize()};
g.k.Zv=function(){return this.vO};
g.k.yg=function(){return this.visibility.yg()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.Jz=function(){return this.visibility.Jz()};
g.k.Hz=function(){return this.visibility.Hz()};
g.k.tO=function(){return this.GZ};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return rU(this.Cd).getAdState();if(!this.Mf()){var a=MV(this.Eb());if(a)return a.getAdState()}return-1};
g.k.I8=function(a){var b=this.template.getVideoContentRect();wr(this.iX,b)||(this.iX=b,this.Ob&&N0(this.Ob),this.Bb&&this.Bb!==this.Ob&&N0(this.Bb),1===this.lz()&&this.CE&&H$a(this,!0));this.DO&&g.xe(this.DO,a)||(this.Za.ra("appresize",a),this.DO=a)};
g.k.Ph=function(){return this.Za.Ph()};
g.k.c9=function(){2===this.getPresentingPlayerType()&&this.od.isManifestless()?z0a(this.od):(this.Ve&&(Q_a(this.Ve),h1(this)),f$a(this,"signature"))};
g.k.jY=function(){this.Bj();T0(this)};
g.k.e8=function(a){"manifest.net.badstatus"===a.errorCode&&a.details.rc===(this.Z.experiments.ob("html5_use_network_error_code_enums")?401:"401")&&this.Za.Ta("onPlayerRequestAuthFailed")};
g.k.lE=function(){this.Za.Ta("CONNECTION_ISSUE")};
g.k.oE=function(a){this.Za.ra("heartbeatparams",a)};
g.k.IJ=function(a){this.Za.Ta("onAutonavChangeRequest",1!==a)};
g.k.zf=function(){return this.mediaElement};
g.k.setBlackout=function(a){this.Z.Ub!==a&&(this.Z.Ub=a,this.Ob&&(this.Ob.uo(),this.Z.eb&&J$a(this),this.Ob.Xn(a)))};
g.k.g8=function(){var a=g.dU(this);if(a){var b=!this.Za.GD();(a.tW=b)||a.jw.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.D&&c.D.stop()}a.Da&&(b?a.Da.resume():Q0(a,!0));g.aH(a.playerState,2)||b?g.aH(a.playerState,512)&&b&&a.Ac(UL(a.playerState,512)):a.Ac(TL(a.playerState,512));a=a.Lc();a.qoe&&(a=a.qoe,g.a0(a,g.DN(a.provider),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Za.Ta("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Za.Ta("onDrmOutputRestricted")};
g.k.XL=function(){mhb=this.N("html5_use_async_stopVideo");nhb=this.N("html5_pause_for_async_stopVideo");lhb=this.N("html5_not_reset_media_source");cBa=this.N("html5_rebase_video_to_ad_timeline");RAa=this.N("html5_not_reset_media_source");khb=this.N("html5_not_reset_media_source");OAa=this.N("html5_retain_source_buffer_appends_for_debugging");this.N("html5_mediastream_applies_timestamp_offset")&&(MZ=!0);this.N("html5_support_managed_media_source")&&(HL=JAa=!0);this.N("html5_use_coretime_clock_offset")&&
(F8a=kSa=!0);nMa=this.N("html5_prefer_slice_length");Lhb=this.N("html5_use_target_duration");var a=g.JJ(this.Z.experiments,"html5_cobalt_override_quic");a&&lY("QUIC",+(0<a));this.N("html5_cobalt_enable_min_processor_cnt_to_offload_algo")&&lY("MediaSource.MinimumProcessorCountToOffloadAlgorithm",g.JJ(this.Z.experiments,"html5_cobalt_min_processor_cnt_to_offload_algo"));(a=this.N("html5_cobalt_async_redn"))&&lY("MediaSource.EnableAsynchronousReduction",+a);if(a=g.JJ(this.Z.experiments,"html5_cobalt_max_size_for_immed_job"))lY("MediaSource.MaxSizeForImmediateJob",
a),lY("MediaSource.MinSizeForImmediateJob",a);(a=this.N("html5_cobalt_enable_fetch_buffer_pool"))&&lY("XHR.EnableFetchBufferPool",+a);(a=g.JJ(this.Z.experiments,"html5_cobalt_default_buffer_size_in_bytes"))&&lY("XHR.DefaultFetchBufferSize",a);(a=this.N("html5_cobalt_enable_try_lock_for_progress_check"))&&lY("XHR.EnableTryLockForProgressCheck",+a);(a=g.JJ(this.Z.experiments,"html5_max_source_buffer_append_size_in_bytes"))&&lY("MediaSource.MaxSourceBufferAppendSizeInBytes",a);(a=this.N("html5_cobalt_enable_avoid_copying_array_buffer"))&&
lY("MediaSource.EnableAvoidCopyingArrayBuffer",+a);Error.stackTraceLimit=25;var b=g.JJ(this.Z.experiments,"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}});
dOa(this.Z.G);iY=this.N("html5_use_media_end_for_end_of_segment");TZa=this.N("html5_consume_onesie_media_bytes_on_mismatch_for_sabr");a_a=this.N("html5_use_ump_request_slicer");dSa=this.N("html5_record_now");this.N("html5_disable_streaming_xhr")&&(KR=!1)};
g.k.Zz=function(){this.SW=!0};
g.k.Ba=function(){this.Cd.dispose();this.od.dispose();this.Ve&&this.Ve.dispose();this.BA.Of();this.BA.dispose();this.Uc&&this.Uc.dispose();this.Bb.dispose();this.Bj();g.tb(Zc(this.Yr),this.playlist);g.J.prototype.Ba.call(this)};
g.k.N=function(a){return this.Z.N(a)};
g.k.setScreenLayer=function(a){this.screenLayer=a};
g.k.createSubtitlesModuleIfNeeded=function(){return this.Cd.createSubtitlesModuleIfNeeded()};
g.k.refreshAllStaleEntities=function(a){void 0===a&&(a=14400);var b=OV(this.Cd);return b?b.refreshAllStaleEntities(a):Promise.reject()};
g.k.isOrchestrationLeader=function(){var a=OV(this.Cd);return a?a.isOrchestrationLeader():!1};
g.k.getVideoUrl=function(a,b,c,d,e){if(this.Lb&&this.Lb.postId)return a=this.Z.getVideoUrl(a),a=Gl(a,"v"),a.replace("/watch","/clip/"+this.Lb.postId);var f=g.tU(this.Za)||"shortspage"===this.Z.Va;return this.Z.getVideoUrl(a,b,c,d,e,f)};
g.k.Dt=function(){return this.qo.Dt()};
g.k.xE=function(a){this.Za.ra("spsumpstatuschange",a)};
g.k.aE=function(){for(var a=g.u(Object.values(this.Yr)),b=a.next();!b.done;b=a.next())b=b.value,b.isDisposed()||b.aE();if(this.N("html5_sabr_fetch_on_idle_network_preloaded_players"))for(a=g.u(E0a(this.EA)),b=a.next();!b.done;b=a.next())b=b.value,b.isDisposed()||b.aE();this.Bb.aE()};
var P3={};var Z$a=/[&\?]action_proxy=1/,Y$a=/[&\?]token=([\w-]*)/,$$a=/[&\?]video_id=([\w-]*)/,aab=/[&\?]index=([\d-]*)/,bab=/[&\?]m_pos_ms=([\d-]*)/,eab=/[&\?]vvt=([\w-]*)/,T$a="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),cab="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),V$a={android:"ANDROID",
"android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},W$a={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},dab={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};o1.prototype.Wz=function(a){this.player.oi().tick(a)};
o1.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return R$a(this,a,b);var d=1===this.j;d&&this.Wz("a_bid_s");var e=N$a();if(null!==e)return d&&this.Wz("a_bid_f"),R$a(this,a,b,e);e=O$a();d&&eg(e,function(){c.Wz("a_bid_f")});
return e.then(function(f){return R$a(c,a,b,f)})};
o1.prototype.reset=function(){this.B=this.j=1};var fib={NXa:"replaceUrlMacros",cTa:"onAboutThisAdPopupClosed",wya:"executeCommand"};p1.prototype.Bq=function(){return"adPingingEndpoint"};
p1.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Pu.send(a,b,c)};
p1.prototype.Kv=function(a,b,c){Iab(this.Ra.get(),a,b,c)};q1.prototype.Bq=function(){return"changeEngagementPanelVisibilityAction"};
q1.prototype.handle=function(a){this.J.Ta("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
q1.prototype.Kv=function(a){this.handle(a)};r1.prototype.Bq=function(){return"loggingUrls"};
r1.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.u(a);for(var d=a.next();!d.done;d=a.next())this.AA.send(d.value.baseUrl,b,c)};
r1.prototype.Kv=function(a,b,c){a=g.u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,Iab(this.Ra.get(),d.baseUrl,b,c)};g.w(gab,g.J);g.w(s1,g.J);g.k=s1.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.dk=function(a,b,c,d,e,f,h,l){if(""===a)ZG("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.J.W().N("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ka.get().dk(a,b,c,d,e,f,h,l);this.bb.get().dk(a,b,c,d,e,f,h,l);var m;null==(m=this.Hf)||m.get().dk(a,b,c,d,e,f,h,l);this.B.dk(a,b,c,d,e,f,h,l);m=g.u(this.listeners);for(var n=m.next();!n.done;n=m.next())n.value.dk(a,b,c,d,e,f,h,l)}};
g.k.wP=function(){this.j&&this.Pn(this.j)};
g.k.Pn=function(a){this.j=void 0;for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Pn(a)};t1.prototype.tG=function(a,b,c,d,e){var f=this;iab(this,a,b,d,e,function(){f.contentCpn=null;f.adCpn=null;f.videoId=null;f.adVideoId=null;f.adFormat=null;f.C="AD_PLACEMENT_KIND_UNKNOWN";f.actionType="unknown_type";f.wg=!1;f.B=!1;f.D=!b&&0===c})};
t1.prototype.reset=function(){return new t1(this.J)};g.w(u1,g.J);u1.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?3:f;h=void 0===h?1:h;this.j.has(a)?ZG("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new oab(a,b,c,d,f),this.j.set(a.id,{Xe:a,listener:e,po:h}),this.J.xf([a],h))};
u1.prototype.removeCueRange=function(a){var b=this.j.get(a);b?mab(this,b):ZG("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
u1.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
u1.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.w(oab,g.oK);v1.prototype.ME=function(a){this.J.ME(a)};
v1.prototype.Ta=function(a){this.J.Ta.apply(this.J,[a].concat(g.pa(g.Ja.apply(1,arguments))))};w1.prototype.tf=function(a){return a&&x1(this)};
w1.prototype.hR=function(){return this.J.W().experiments.ob("h5_enable_generic_error_logging_event")};var vab=null;g.w(uab,g.lG);uab.prototype.rN=function(a){return this.j.hasOwnProperty(a)?this.j[a].rN():{}};
g.Sa("ytads.bulleit.getVideoMetadata",function(a){return y1().rN(a)});
g.Sa("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=y1();c=tab(c);null!==c&&d.ra(c,{queryId:a,viewabilityString:b})});g.k=B1.prototype;
g.k.Gh=function(a,b){if(!this.j.has(a))return{};if("seek"===b){b=this.J.W().N("html5_dai_enable_active_view_creating_completed_adblock");b=void 0===b?!1:b;var c=aq(Pt).IH(a,{});c?Ms(c):b&&(a=aq(Pt).UE(null,jr(),!1,a),a.bk=3,Aja([a]));return{}}b=xab(b);if(null===b||this.J.W().N("enable_server_stitched_dai")&&2!==this.J.getPresentingPlayerType(!0))return{};c=(c=this.J.Gd())&&(this.J.W().N("enable_server_stitched_dai")||2===c.getPlayerType())&&k9a(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Ka.get().isFullscreen()};
return Aka(b,a,c)};
g.k.gE=function(a){var b;null==(b=this.j.get(a.queryId))||b.gE()};
g.k.fE=function(a){var b;null==(b=this.j.get(a.queryId))||b.fE()};
g.k.hE=function(a){var b;null==(b=this.j.get(a.queryId))||b.hE()};
g.k.dE=function(a){var b;null==(b=this.j.get(a.queryId))||b.dE()};
g.k.eE=function(a){var b;null==(b=this.j.get(a.queryId))||b.eE()};Fab.prototype.send=function(a,b,c,d){try{Gab(this,a,b,c,void 0===d?!1:d)}catch(e){}};g.w(E1,Fab);E1.prototype.j=function(){return this.G()};
E1.prototype.C=function(){return this.K()};
E1.prototype.B=function(){return this.D()};var gib=na(["attributionsrc"]);
Hab.prototype.send=function(a,b,c){var d=!1;try{var e=new g.go(a);if("2"===e.B.get("ase"))d=!0,a=Kva(a);else if("1"===e.B.get("ase")&&"video_10s_engaged_view"===e.B.get("label")){var f=document.createElement("img");Zfa([new zn(gib[0].toLowerCase(),coa)],f,"attributionsrc",a+"&asr=1")}var h=a.match(vl);if("https"===h[1])var l=a;else h[1]="https",l=tl("https",h[2],h[3],h[4],h[5],h[6],h[7]);var m=Eka(l);h=[];Wma(l)&&(h.push({headerType:"USER_AUTH"}),h.push({headerType:"PLUS_PAGE_ID"}),h.push({headerType:"VISITOR_ID"}),
h.push({headerType:"EOM_VISITOR_ID"}),h.push({headerType:"AUTH_USER"}));d&&h.push({headerType:"ATTRIBUTION_REPORTING_ELIGIBLE"});this.Pu.send({baseUrl:l,scrubReferrer:m,headers:h},b,c,d)}catch(n){}};F1.prototype.Tj=function(){var a=this.J.Gd();return a&&(a=a.Tj(1))?a:null};
F1.prototype.wi=function(a,b){"string"===typeof b?this.J.getVideoData(1).zQ(a,b):this.J.getVideoData(1).ya(a,b)};g.w(G1,g.J);g.k=G1.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.dk=function(){this.SL.clear();this.GO=null;this.Ce.get().clear()};
g.k.Pn=function(){};
g.k.Kf=function(a){var b=this.J.getVideoData(a);return b?Pab(this,b,a||this.J.getPresentingPlayerType(!0)):null};
g.k.A9=function(a,b,c,d){"nPpU29QrbiU"===b.videoId&&this.wi("ads_ssm_vdc_s",{pt:c,dvt:a});CN(this.Ia.get())&&"dataloaded"!==a||Qab(this,b,c);if(x1(this.Ia.get())&&"newdata"===a){a=null==d?void 0:d.clientPlaybackNonce;b=b.clientPlaybackNonce;if(void 0!==a)for(d=g.u(this.listeners),c=d.next();!c.done;c=d.next())c.value.dJ(a,b);a=g.u(this.listeners);for(c=a.next();!c.done;c=a.next())c.value.cJ(b)}};
g.k.X8=function(a,b){void 0!==a&&(this.GO=a,void 0===b?ZG("Expected ad video start time on SS video changed"):this.SL.set(a,b));var c=this.J.getPresentingPlayerType(!0),d=this.J.getVideoData(c);this.J.getVideoData(1).ya("ads_ssvc",{pt:c,cpn:null==d?void 0:d.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:b});d?Qab(this,d,c):ZG("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.Ba=function(){this.listeners.length=0;this.wv=null;g.J.prototype.Ba.call(this)};
g.k.wi=function(a,b){this.J.getVideoData(1).ya(a,b)};g.w(H1,g.J);g.k=H1.prototype;g.k.dk=function(){var a=this;x1(this.Ia.get())||(this.j=Nd(function(){a.J.isDisposed()||a.J.Fg("ad",1)}))};
g.k.Pn=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.XX=function(){};
g.k.playVideo=function(){this.J.playVideo()};
g.k.pauseVideo=function(){this.J.pauseVideo()};
g.k.resumeVideo=function(a){this.In(a)&&this.J.playVideo()};
g.k.In=function(a){return 2===this.J.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b){var c=this.bb.get().GO;return 2!==a||b||null===c?this.J.getCurrentTime(a,b):Sab(this,c)};
g.k.getVolume=function(){return this.J.getVolume()};
g.k.isMuted=function(){return this.J.isMuted()};
g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.J.getPlayerState(a)};
g.k.isFullscreen=function(){return this.J.isFullscreen()};
g.k.isAtLiveHead=function(){return this.J.isAtLiveHead()};
g.k.aB=function(a){this.J.aB(a)};
g.k.x8=function(){var a=this.J.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(2===a){var c=g.u(this.listeners);for(a=c.next();!a.done;a=c.next())a.value.Vi(b)}else if(1===a&&rab(this.Ia.get()))for(c=g.u(this.LG),a=c.next();!a.done;a=c.next())a.value.XX(b)};
g.k.o8=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.xj(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.u(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.Eh=function(){for(var a=this.J.yg(),b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Eh(a)};
g.k.Zk=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Zk(a)};
g.k.Nb=function(){for(var a=this.J.tb().Vj(),b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.vj(a)};
g.k.Yk=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Yk(a)};g.w(Xab,g.J);g.w(L1,g.J);L1.prototype.Ba=function(){this.Ln.isDisposed()||this.Ln.get().removeListener(this);g.J.prototype.Ba.call(this)};M1.prototype.fetch=function(a){var b=a.eV;return this.j.fetch(a.D_,{QG:void 0===a.QG?void 0:a.QG,Xe:b,cueProcessedMs:void 0===a.cueProcessedMs?0:a.cueProcessedMs}).then(function(c){return Yab(c,b)})};g.w(O1,g.J);g.k=O1.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.aK=function(a){Zab(this,a,1)};
g.k.onAdUxClicked=function(a,b){P1(this,function(c){c.Bh(a,b)})};
g.k.jP=function(a){P1(this,function(b){b.MN(a)})};
g.k.iP=function(a){P1(this,function(b){b.LN(a)})};
g.k.a7=function(a){P1(this,function(b){b.LH(a)})};Q1.prototype.reduce=function(a){switch(a.event){case "unknown":return}var b=a.identifier;var c=this.j[b];c?b=c:(c={xC:null,kX:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.kX))if(b.kX=c,b.xC){if(c<b.xC.end){a:{c=b.xC;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.di;a=c.end<=a?null:a}if(null!==a)for(b.xC.end=a,b=this.B,g.Xb(b.C.j,1E3*a),b=g.u(b.listeners),c=b.next();!c.done;c=b.next())c.value.aY(a)}}else if(a=$ab(a,this.C))c=a.a6,b.xC=
a.i4,bbb(this.B,c)};
Q1.prototype.updateTime=function(){};g.w(R1,g.J);g.k=R1.prototype;
g.k.dk=function(){this.G=new Q1(this,qab(this.Ia.get()));this.C=new abb;var a=this.J.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.J.getVideoData(1),c;(null==(c=this.j)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.pP,this),b.subscribe("cuepointupdated",this.pP,this),this.j=b)}this.mK.length=0;var d;b=(null==(d=a.j)?void 0:rNa(d,0))||[];d=g.u(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.Vt(b)&&ZG("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
g.k.Pn=function(){};
g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.Vt=function(a){dbb(this,a);this.G.reduce(a);a=this.D;this.D=!1;return a};
g.k.pP=function(a){var b=this.J.getVideoData(1).isDaiEnabled();if(b||!g.SJ(this.J.W())){a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,dbb(this,c),b?this.G.reduce(c):0!==this.J.getCurrentTime(1)&&"start"===c.event&&(this.Ia.get().J.W().experiments.ob("ignore_overlapping_cue_points_on_endemic_live_html5")&&(null==this.B?0:c.startSecs+c.di>=this.B.startSecs&&c.startSecs<=this.B.startSecs+this.B.di)?ZG("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.B=c,bbb(this,
c)))}};
g.k.Ba=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.pP,this),this.j=null);this.listeners.length=0;this.mK.length=0;g.J.prototype.Ba.call(this)};S1.prototype.addPlayerResponseForAssociation=function(a){this.J.addPlayerResponseForAssociation(a)};g.k=U1.prototype;g.k.hC=function(a,b,c,d,e,f,h){return this.J.hC(a,b,c,d,e,f,h)};
g.k.Iy=function(a,b){this.J.Iy(a,b)};
g.k.FF=function(a,b,c){this.J.FF(a,b,c)};
g.k.Xt=function(a){this.J.Xt(a)};
g.k.xD=function(a,b,c,d,e,f,h){this.J.xD(a,b,c,d,e,f,h)};
g.k.Kr=function(){return this.J.Kr()};
g.k.finishSegmentByCpn=function(a,b){this.J.finishSegmentByCpn(a,b)};g.w(fbb,g.J);g.w(gbb,g.J);g.w(hbb,g.J);g.w(ibb,g.J);g.w(jbb,g.J);g.w(kbb,g.J);g.w(mbb,g.J);mbb.prototype.C=function(){return this.B};g.w(X1,Fab);X1.prototype.j=function(){return this.jq?g.DS(this.jq.W(),g.RT(this.jq)):uC("")};
X1.prototype.C=function(){return this.jq?this.jq.W().pageId:""};
X1.prototype.B=function(){return this.jq?this.jq.W().va:""};g.w(obb,OG);
obb.prototype.D=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Ta("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:this.j.Ta("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.Ta("updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.Ta("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.Ta("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Ta("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.Ta("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.Ta("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.Ta("updateEngagementPanelAction",b.addAction);this.j.Ta("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.Ta("changeEngagementPanelVisibility",b.hideAction),this.j.Ta("updateEngagementPanelAction",b.removeAction)}};g.w(pbb,SG);g.k=pbb.prototype;g.k.init=function(a,b,c){SG.prototype.init.call(this,a,b,c);g.yr(this.C,"stroke-dasharray","0 "+this.B);this.api.W().N("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.C.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.api.W().N("enable_dsa_ad_badge_for_action_endcap_on_web")&&this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){UG(this);SG.prototype.hide.call(this)};
g.k.show=function(){TG(this);SG.prototype.show.call(this)};
g.k.Mp=function(){this.hide()};
g.k.Vn=function(){if(this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&g.yr(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.w(qbb,uG);g.k=qbb.prototype;
g.k.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&g.S(b.actionButton,g.lN))if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.TF(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=e&&
0<e.length&&g.dc(g.Be(e[0].url))&&(e[0].url=d.profilePicture,g.dc(g.Be(d.profilePicture))&&NZa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.dc(g.Be(e[0].url))&&(e[0].url=d.Lg());e=b.headline;null!=e&&g.dc(g.Be(e.text))&&(e.text=d.author)}this.ea.init(jG("ad-image"),b.image,c);this.G.init(jG("ad-text"),b.headline,c);this.D.init(jG("ad-text"),b.description,c);this.Oa.init(jG("ad-image"),b.backgroundImage,c);d=["ytp-ad-action-interstitial-action-button",
"ytp-ad-action-interstitial-action-button-rounded"];this.api.W().N("enable_dark_mode_style_endcap")&&(this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-light"),this.D.element.classList.add("ytp-ad-action-interstitial-description-light"),d.push("ytp-ad-action-interstitial-action-button-dark"));this.api.W().N("enable_endcap_no_op_UI_change")&&this.slot.classList.add("ytp-ad-action-interstitial-slot-no-op");this.api.W().N("enable_small_endcap_action_button_for_mweb")&&
this.api.W().B&&d.push("ytp-ad-action-interstitial-action-button-mobile-companion-size");this.api.W().N("enable_mweb_endcap_dark_mode_action_button")&&this.api.W().B&&d.push("ytp-ad-action-interstitial-action-button-dark");this.actionButton=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,d);g.L(this,this.actionButton);this.actionButton.Ga(this.kb);this.actionButton.init(jG("button"),g.S(b.actionButton,g.lN),c);Vt(this.actionButton.element);d=Yt(this.actionButton.element);Xt(this.actionButton.element,
d+" This link opens in new tab");this.navigationEndpoint=b.navigationEndpoint;this.api.W().B?this.api.W().N("enable_mweb_endcap_clickable_icon_description")&&(this.C.V(this.Ja,"click",this.LC,this),this.C.V(this.va,"click",this.LC,this)):(this.C.V(this.Ja,"click",this.LC,this),this.C.V(this.Pa,"click",this.LC,this),this.C.V(this.va,"click",this.LC,this));this.j=this.kR?new hH(this.api,a):new iH(a);g.L(this,this.j);if(b.skipButton){if((a=g.S(b.skipButton,teb))&&this.j&&(this.skipButton=new dH(this.api,
this.layoutId,this.interactionLoggingClientData,this.qb,this.j,this.XJ),g.L(this,this.skipButton),this.skipButton.Ga(this.element),this.skipButton.init(jG("skip-button"),a,c)),this.api.W().N("enable_dsa_ad_badge_for_action_endcap_on_web")){if(c=b.adBadgeRenderer)if(c=g.S(c,seb))a=new fH(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,!0),a.Ga(this.Ya),a.init(jG("simple-ad-badge"),c,this.macros),g.L(this,a);if(c=b.adInfoRenderer)if(c=g.S(c,jN))a=new QG(this.api,this.layoutId,this.interactionLoggingClientData,
this.qb,this.element),a.Ga(this.Ya),a.init(jG("ad-info-hover-text-button"),c,this.macros),g.L(this,a)}}else b.nonskippableOverlayRenderer&&(a=g.S(b.nonskippableOverlayRenderer,kN))&&this.j&&(this.B=new XG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.j,!1),g.L(this,this.B),this.B.Ga(this.element),this.B.init(jG("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.S(b,ueb)&&this.j&&(c=new pbb(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.j),
g.L(this,c),c.Ga(this.element),c.init(jG("timed-pie-countdown"),g.S(b,ueb),this.macros)));this.show();this.element.focus()}else g.TF(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.TF(Error("AdActionInterstitialRenderer has no button."));else g.TF(Error("AdActionInterstitialRenderer has no background AdImage."));else g.TF(Error("AdActionInterstitialRenderer has no description AdText."));else g.TF(Error("AdActionInterstitialRenderer has no headline AdText."));else g.TF(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.cD(this.C);this.hide()};
g.k.show=function(){rbb(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();uG.prototype.show.call(this)};
g.k.hide=function(){rbb(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();uG.prototype.hide.call(this)};
g.k.LC=function(){this.navigationEndpoint&&(this.layoutId?this.qb.executeCommand(this.navigationEndpoint,this.layoutId):g.TF(Error("Missing layoutId for ad action interstitial.")))};var wbb={iconType:"CLOSE"},Z1=new g.we(320,63);g.w(vbb,uG);g.k=vbb.prototype;
g.k.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);this.D=b;this.ea=g.Jb(this.D.onClickCommands||[]);this.Pa=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,g.S(a,peb)?(this.G=g.$e("ytp-ad-overlay-ad-info-button-container",this.C.element),xbb(this,b),a=zbb(this,g.S(a,peb))):g.S(a,qeb)?(this.G=g.$e("ytp-ad-overlay-ad-info-button-container",this.B.element),xbb(this,b),a=Abb(this,g.S(a,qeb))):g.S(a,reb)?(this.G=
g.$e("ytp-ad-overlay-ad-info-button-container",this.j.element),xbb(this,b),a=Bbb(this,g.S(a,reb))):(g.TF(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),Cbb(this,!0))};
g.k.clear=function(){Cbb(this,!1);this.Oa.reset();this.va=0;this.C.hide();this.Xa(this.C.element,!1);this.B.hide();this.Xa(this.B.element,!1);this.j.hide();this.Xa(this.j.element,!1);this.hide();this.dispose()};
g.k.o9=function(){this.kb&&(this.layoutId?this.qb.executeCommand(this.kb,this.layoutId):g.TF(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.k.Gp=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var a=this.D.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.u(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.qb.executeCommand(b,this.layoutId):g.TF(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.Y6=function(){this.Ya||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.FP=function(){this.Ya||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.FP("invideo-overlay")};
g.k.Z6=function(a){a.target===this.G&&g.$e("ytp-ad-button",this.rb.element).click()};g.w(Dbb,SG);g.k=Dbb.prototype;g.k.init=function(a,b,c){SG.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=null==a||0===a?0:a+1E3*this.j.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(jG("ad-text"),d,c);this.messageText.Ga(this.B.element);this.D.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){Ebb(this,!1);SG.prototype.hide.call(this);this.B.hide();this.messageText.hide();UG(this)};
g.k.show=function(){Ebb(this,!0);SG.prototype.show.call(this);TG(this);this.B.show();this.messageText.show()};
g.k.Mp=function(){this.hide()};
g.k.Vn=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.va&&a>=this.C?(this.D.hide(),this.va=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.G&&(gva(this.messageText,{TIME_REMAINING:String(a)}),this.G=a)))}};g.w(Fbb,uG);g.k=Fbb.prototype;
g.k.init=function(a,b,c){uG.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.S(b.actionButton,g.lN)?(this.C.init(jG("ad-image"),b.image,c),this.B.init(jG("ad-text"),b.headline,c),this.D.init(jG("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.W().N("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,
a),b.backgroundColor&&g.yr(this.element,"background-color",g.rH(b.backgroundColor)),g.L(this,this.actionButton),this.actionButton.Ga(this.G),this.actionButton.init(jG("button"),g.S(b.actionButton,g.lN),c),b=g.JJ(this.api.W().experiments,"player_underlay_video_width_fraction"),this.api.W().N("place_shrunken_video_on_left_of_player")?(c=this.j,g.ku(c,"ytp-ad-underlay-left-container"),g.iu(c,"ytp-ad-underlay-right-container"),g.yr(this.j,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.j,g.ku(c,"ytp-ad-underlay-right-container"),
g.iu(c,"ytp-ad-underlay-left-container")),g.yr(this.j,"width",Math.round(100*(1-b-.04))+"%"),this.api.ID()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.pS.bind(this)),this.api.addEventListener("resize",this.oW.bind(this))):g.TF(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.TF(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.TF(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.TF(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){Gbb(!0);this.actionButton&&this.actionButton.show();uG.prototype.show.call(this)};
g.k.hide=function(){Gbb(!1);this.actionButton&&this.actionButton.hide();uG.prototype.hide.call(this)};
g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.pS.bind(this));this.api.removeEventListener("resize",this.oW.bind(this));this.hide()};
g.k.onClick=function(a){uG.prototype.onClick.call(this,a);this.actionButton&&g.Af(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.pS=function(a){"transitioning"===a?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):"visible"===a?this.j.classList.add("ytp-ad-underlay-clickable"):"hidden"===a&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))};
g.k.oW=function(a){1200<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):875<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium"));
g.yr(this.B.element,"font-size",a.width/40+"px")};g.w($1,uG);
$1.prototype.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.S(b.answer,g.lN)?(a=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ga(this.answer),a.init(jG("ytp-ad-survey-answer-button"),g.S(b.answer,g.lN),c),a.show()):b.answer&&g.S(b.answer,M2)&&(this.j=new NG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,
["ytp-ad-survey-answer-toggle-button"]),this.j.Ga(this.answer),g.L(this,this.j),this.j.init(jG("survey-answer-button"),g.S(b.answer,M2),c));this.show()};
$1.prototype.hF=function(a){this.layoutId?eK(this.qb,a,this.layoutId,this.macros):g.TF(new g.nD("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
$1.prototype.onClick=function(a){uG.prototype.onClick.call(this,a);this.api.W().N("supports_multi_step_on_desktop")&&null!==this.index&&this.B(this.index)};
$1.prototype.clear=function(){this.hide()};g.w(Hbb,uG);Hbb.prototype.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);b.answer&&g.S(b.answer,M2)&&(this.button=new NG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ga(this.j),this.button.init(jG("survey-none-of-the-above-button"),g.S(b.answer,M2),c));this.show()};g.w(a2,EG);a2.prototype.init=function(a,b,c){EG.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.wG(b.text),a=!g.dc(b));a||g.UF(Error("No submit text was present in the renderer."))};
a2.prototype.onClick=function(a){this.ra("l");EG.prototype.onClick.call(this,a)};g.w(b2,uG);
b2.prototype.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.S(a,hM)?(a=g.S(a,hM),c=new eH(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.C,!0),c.Ga(this.skipOrPreview),c.init(jG("skip-button"),a,this.macros),g.L(this,c),this.j=c):g.S(a,kN)&&(a=g.S(a,kN),c=new XG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.C,!1),c.Ga(this.skipOrPreview),c.init(jG("ad-preview"),a,this.macros),hva(c),g.L(this,c),this.j=c);null==
this.j&&g.TF(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));b.submitButton&&(a=b.submitButton,g.S(a,g.lN)&&(a=g.S(a,g.lN),c=new a2(this.api,this.layoutId,this.interactionLoggingClientData,this.qb),c.Ga(this.submitButton),c.init(jG("survey-submit"),a,this.macros),g.L(this,c),this.B=c));if(a=b.adBadgeRenderer)a=g.S(a,seb),c=new fH(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,!0),c.Ga(this.D),c.init(jG("simple-ad-badge"),a,this.macros),
g.L(this,c);if(a=b.adDurationRemaining)a=g.S(a,leb),c=new lH(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.C,void 0),c.Ga(this.D),c.init(jG("ad-duration-remaining"),a,this.macros),g.L(this,c);(b=b.adInfoRenderer)&&g.S(b,jN)&&(a=new QG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.element),g.L(this,a),a.Ga(this.D),a.init(jG("ad-info-hover-text-button"),g.S(b,jN),this.macros));this.show()};
b2.prototype.clear=function(){this.hide()};g.w(c2,uG);c2.prototype.init=function(a,b,c){uG.prototype.init.call(this,a,b,c);Mbb(this)};
c2.prototype.show=function(){this.C=g.eb();uG.prototype.show.call(this)};
c2.prototype.YY=function(){};g.w(Nbb,c2);g.k=Nbb.prototype;g.k.init=function(a,b,c){var d=this;c2.prototype.init.call(this,a,b,c);b.questionText&&Ibb(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.S(e,H2)&&Jbb(d,g.S(e,H2),c,f)});
this.G=new Set(this.B.map(function(e){return e.j.j}));
(a=b.noneOfTheAbove)&&(a=g.S(a,oeb))&&Obb(this,a,c);b.surveyAdQuestionCommon&&Lbb(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.V(this.element,"change",this.onChange);this.show()};
g.k.YY=function(){Pbb(this,!1);this.D.B.subscribe("l",this.m9,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?Qbb(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),Pbb(this,!0))};
g.k.m9=function(){var a=[],b=this.B.reduce(function(e,f,h){var l=f.toggledLoggingParams;f.j&&f.j.isToggled()&&l&&(e.push(l),a.push(h));return e},[]).join("&"),c=this.submitEndpoints.map(function(e){if(!e.loggingUrls)return e;
e=g.qd(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=El(f.baseUrl,b));return f});
return e});
if(c){c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.layoutId?eK(this.qb,d,this.layoutId,this.macros):g.TF(Error("Missing layoutId for multi_select_question."))}this.api.W().N("supports_multi_step_on_desktop")&&this.ea(a)};
g.k.clear=function(){this.api.W().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(d2,c2);d2.prototype.init=function(a,b,c){var d=this;c2.prototype.init.call(this,a,b,c);b.questionText&&Ibb(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.S(e,H2)&&Jbb(d,g.S(e,H2),c,f)});
b.surveyAdQuestionCommon?Lbb(this,b.surveyAdQuestionCommon):g.TF(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
d2.prototype.clear=function(){this.api.W().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(e2,uG);e2.prototype.init=function(a,b,c){var d=this;uG.prototype.init.call(this,a,b,c);if(this.api.W().N("supports_multi_step_on_desktop")){var e;this.conditioningRules=null!=(e=b.conditioningRules)?e:[];var f;this.B=null!=(f=b.questions)?f:[];var h;(null==(h=b.questions)?0:h.length)&&Ubb(this,0)}else(b.questions||[]).forEach(function(l){g.S(l,iN)?Sbb(d,g.S(l,iN),c):g.S(l,hN)&&Tbb(d,g.S(l,hN),c)});
this.show()};
e2.prototype.clear=function(){this.api.W().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
e2.prototype.D=function(a){var b=this;if(this.api.W().N("supports_multi_step_on_desktop")){var c;if(null==(c=this.conditioningRules)?0:c.length){var d;if(0===a.length)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(null==this.conditioningRules.find(function(e){return e.questionIndex===b.j}))g.TF(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);
else if(this.conditioningRules.forEach(function(e){if(e.questionIndex===b.j)switch(e.condition){case "CONDITION_ALL_OF":var f;if(null==(f=e.answerIndices)?0:f.every(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
break;case "CONDITION_ANY_OF":var h;if(null==(h=e.answerIndices)?0:h.some(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
break;default:g.TF(Error("Expected specified condition in survey conditioning rules."))}}),null!=d)Ubb(this,d);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else 1<this.questions.length&&g.TF(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.w(f2,uG);
f2.prototype.init=function(a,b,c){var d=this;uG.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.TF(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.S(b.ctaButton,g.lN))if(b.brandImage)if(b.backgroundImage&&g.S(b.backgroundImage,mN)&&g.S(b.backgroundImage,mN).landscape){this.layoutId||g.TF(Error("Missing layoutId for survey interstitial."));Vbb(this.interstitial,g.S(b.backgroundImage,
mN).landscape);Vbb(this.logoImage,b.brandImage);g.Bf(this.text,g.wG(b.text));var e=["ytp-ad-survey-interstitial-action-button"];this.api.W().N("web_modern_buttons_bl_survey")&&e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,e);g.L(this,this.actionButton);this.actionButton.Ga(this.B);this.actionButton.init(jG("button"),g.S(b.ctaButton,g.lN),c);this.actionButton.show();this.j=new hH(this.api,1E3*a);
this.j.subscribe("g",function(){d.transition.hide()});
g.L(this,this.j);this.V(this.element,"click",function(f){var h=f.target===d.interstitial;f=d.actionButton.element.contains(f.target);if(h||f)if(d.transition.hide(),h)d.api.onAdUxClicked(d.componentType,d.layoutId)});
this.transition.show(100)}else g.TF(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.TF(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.TF(Error("SurveyTextInterstitialRenderer has no button."));else g.TF(Error("SurveyTextInterstitialRenderer has no text."));else g.TF(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
f2.prototype.clear=function(){this.hide()};
f2.prototype.show=function(){Wbb(!0);uG.prototype.show.call(this)};
f2.prototype.hide=function(){Wbb(!1);uG.prototype.hide.call(this)};g.w(g2,SG);g.k=g2.prototype;
g.k.init=function(a,b){SG.prototype.init.call(this,a,b,{});if(b.durationMilliseconds){if(0>b.durationMilliseconds){g.TF(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+b.durationMilliseconds));return}this.B=b.durationMilliseconds}else this.B=this.j.dn();var c;if(null==(c=b.previewText)||!c.text||g.dc(b.previewText.text))g.TF(Error("No text is returned for AdPreview."));else{this.D=b.previewText;b.previewText.isTemplated||g.Bf(this.G,b.previewText.text);var d;
if(null==(d=this.api.getVideoData(1))?0:d.Ol)if(b.previewImage){var e,f;(a=(null==(f=yxa((null==(e=b.previewImage)?void 0:e.sources)||[],52,!1))?void 0:f.url)||"")&&a.length?(this.previewImage=new g.tG({I:"img",T:"ytp-preview-ad__image",Y:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",a),g.L(this,this.previewImage),this.previewImage.Ga(this.element)):g.TF(Error("Failed to get imageUrl in AdPreview."))}else g.TF(Error("No image is returned for AdPreview."))}};
g.k.clear=function(){this.hide()};
g.k.hide=function(){UG(this);SG.prototype.hide.call(this)};
g.k.show=function(){TG(this);SG.prototype.show.call(this)};
g.k.Mp=function(){this.hide()};
g.k.Vn=function(){if(this.j){var a=this.j.getProgressState();if(null!=a&&a.current)if(a=1E3*a.current,a>=this.B)this.transition.hide();else{var b;if(null==(b=this.D)?0:b.isTemplated)if(b=Math.max(0,Math.ceil((this.B-a)/1E3)),b!==this.C){var c,d;(a=null==(c=this.D)?void 0:null==(d=c.text)?void 0:d.replace("{TIME_REMAINING}",String(b)))&&g.Bf(this.G,a);this.C=b}}}};g.w(h2,uG);
h2.prototype.init=function(a,b){uG.prototype.init.call(this,a,b,{});var c,d;if((a=(null==(d=yxa((null==(c=b.image)?void 0:c.sources)||[],Xbb(b),!0))?void 0:d.url)||"")&&a.length){c=this.Ha("ytp-ad-avatar");c.src=a;var e,f;if(d=null==(e=b.interaction)?void 0:null==(f=e.accessibility)?void 0:f.label)c.alt=d;switch(b.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s");
break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(b.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner");break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.TF(Error("Failed to get imageUrl in AdAvatar."))};
h2.prototype.clear=function(){this.hide()};
h2.prototype.onClick=function(a){a.stopPropagation();uG.prototype.onClick.call(this,a)};g.w(i2,uG);
i2.prototype.init=function(a,b){uG.prototype.init.call(this,a,b,{});var c;a=null==(c=b.label)?void 0:c.content;if((c=null!=a&&!g.dc(a))||b.icon){c&&(this.buttonText=new g.tG({I:"span",T:"ytp-ad-button__text",Aa:a}),g.L(this,this.buttonText),this.buttonText.Ga(this.element));var d,e,f=(null==(d=b.interaction)?0:null==(e=d.accessibility)?0:e.label)||c?a:"";f&&Xt(this.element,f+" This link opens in new tab");Vt(this.element);b.icon&&(d=DG(b.icon),null!=d&&(this.buttonIcon=new g.tG({I:"span",T:"ytp-ad-button__icon",
X:[d]}),g.L(this,this.buttonIcon),b.iconLeading?(g.pf(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button__icon--leading")):(this.buttonIcon.Ga(this.element),this.buttonIcon.element.classList.add("ytp-ad-button__icon--trailing"))));this.element.classList.add("ytp-ad-button--style-filled");switch(b.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button--size-large");
break;default:this.element.classList.add("ytp-ad-button--size-default")}}else g.UF(Error("AdButton does not have label or an icon."))};
i2.prototype.clear=function(){this.hide()};
i2.prototype.onClick=function(a){a.stopPropagation();uG.prototype.onClick.call(this,a)};g.w(j2,uG);j2.prototype.init=function(a,b){uG.prototype.init.call(this,a,b,{});if(a=b.content){g.Bf(this.element,a);var c,d;b=(null==(c=b.interaction)?void 0:null==(d=c.accessibility)?void 0:d.label)||a;this.element.setAttribute("aria-label",b)}else g.TF(Error("AdSimpleAttributedString does not have text content"))};
j2.prototype.clear=function(){this.hide()};
j2.prototype.onClick=function(a){a.stopPropagation();uG.prototype.onClick.call(this,a)};g.w($bb,SG);g.k=$bb.prototype;
g.k.init=function(a,b){SG.prototype.init.call(this,a,b,{});if(a=g.S(b.avatar,veb)){var c=b.headline;if(c){var d=b.description;if(d){var e=g.S(b.button,web);e?(this.adAvatar.init(jG("ad-avatar"),a),this.headline.init(jG("ad-simple-attributed-string"),new Zbb(c)),this.description.init(jG("ad-simple-attributed-string"),new Zbb(d)),this.B.init(jG("ad-button"),e),this.C=b.startMs||0,this.api.ID()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.qS.bind(this)),TG(this)):g.TF(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.TF(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.TF(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.TF(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
g.k.Vn=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.C&&(UG(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
g.k.Mp=function(){this.clear()};
g.k.onClick=function(a){a.stopPropagation();SG.prototype.onClick.call(this,a);this.api.pauseVideo()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.qS.bind(this))};
g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.B.show();SG.prototype.show.call(this)};
g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.B.hide();SG.prototype.hide.call(this)};
g.k.qS=function(a){"hidden"===a?this.show():this.hide()};g.w(acb,uG);g.k=acb.prototype;
g.k.init=function(a,b){uG.prototype.init.call(this,a,b,{});if(!b.label||g.dc(b.label))g.TF(Error("No label is returned for SkipAdButton."));else if(g.Bf(this.D,b.label),a=DG({iconType:"SKIP_NEXT"}),null==a)g.TF(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.tG({I:"span",T:"ytp-skip-ad-button__icon",X:[a]}),g.L(this,this.C),this.C.Ga(this.element),this.api.W().experiments.ob("enable_skip_to_next_messaging")&&(b=g.Be(b.targetId)))this.B=!0,this.element.setAttribute("data-tooltip-target-id",b),
this.element.setAttribute("data-tooltip-target-fixed","")};
g.k.onClick=function(a){a&&a.preventDefault();if(!this.api.W().N("ab_sa_ef")||!1!==a.isTrusted){uG.prototype.onClick.call(this,a);if(this.api.W().N("fetch_bid_for_dclk_status")){var b,c;a={contentCpn:null!=(c=null==(b=this.api.getVideoData(1))?void 0:b.clientPlaybackNonce)?c:""};qva(a)}this.api.onAdUxClicked(this.componentType,this.layoutId)}};
g.k.clear=function(){this.j.reset();this.hide()};
g.k.hide=function(){uG.prototype.hide.call(this)};
g.k.show=function(){this.j.start();uG.prototype.show.call(this);this.B&&this.api.W().experiments.ob("enable_skip_to_next_messaging")&&this.api.ra("showpromotooltip",this.element)};g.w(bcb,SG);g.k=bcb.prototype;g.k.init=function(a,b){SG.prototype.init.call(this,a,b,{});if(a=g.S(b.preskipState,xeb)){var c=g.S(b.skippableState,zeb);c?(null!=b.skipOffsetMilliseconds?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.UF(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(jG("preview-ad"),a),this.B.transition.show(100),this.C.init(jG("skip-button"),c),this.show()):g.TF(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}else g.TF(Error("No AdPreviewViewModel is returned in SkipAdViewModel."))};
g.k.show=function(){TG(this);SG.prototype.show.call(this)};
g.k.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.C&&this.C.hide();UG(this);SG.prototype.hide.call(this)};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();UG(this);SG.prototype.hide.call(this)};
g.k.Mp=function(){this.hide()};
g.k.Vn=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var a;null!=(a=this.B)&&a.transition.hide();var b;null!=(b=this.C)&&b.transition.show()}};g.w(k2,uG);
k2.prototype.init=function(a,b){uG.prototype.init.call(this,a,b,{});if(b.label||b.icon){var c;(null==(c=b.label)?0:c.content)&&!g.dc(b.label.content)&&(this.linkText=new g.tG({I:"span",T:"ytp-visit-advertiser-link__text",Aa:b.label.content}),g.L(this,this.linkText),this.linkText.Ga(this.element));b.icon&&(a=DG(b.icon),null!=a&&(this.j=new g.tG({I:"span",T:"ytp-visit-advertiser-link__icon",X:[a]}),g.L(this,this.j),this.j.Ga(this.element)));var d,e;if(null==(d=b.interaction)?0:null==(e=d.accessibility)?0:
e.label)this.element.setAttribute("aria-label",b.interaction.accessibility.label);else{var f;(null==(f=b.label)?0:f.content)&&!g.dc(b.label.content)&&this.element.setAttribute("aria-label",b.label.content)}this.show()}else g.TF(Error("No label or icon found in VisitAdvertiserLink."))};
k2.prototype.clear=function(){this.hide()};g.w(l2,uG);
l2.prototype.init=function(a,b,c,d){uG.prototype.init.call(this,a,b,{});b.skipOrPreview&&(c=b.skipOrPreview,a=g.S(c,Aeb),c=g.S(c,xeb),a?(this.uu=new bcb(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.j),g.L(this,this.uu),this.uu.Ga(this.D),this.uu.init(jG("skip-ad"),a)):c&&(this.C=new g2(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.j),g.L(this,this.C),this.C.Ga(this.D),this.C.init(jG("ad-preview"),c),this.C.transition.show(100)));b.playerAdCard&&(a=
g.S(b.playerAdCard,yeb))&&(this.playerAdCard=new $bb(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.j),g.L(this,this.playerAdCard),this.playerAdCard.Ga(this.G),this.playerAdCard.init(jG("ad-avatar-lockup-card"),a));b.adBadgeRenderer&&(a=g.S(b.adBadgeRenderer,seb))&&(this.adBadge=new fH(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,!0),g.L(this,this.adBadge),this.adBadge.Ga(this.B),this.adBadge.init(jG("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&
(a=g.S(b.adDurationRemaining,leb))&&(this.adDurationRemaining=new lH(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.j,d.videoAdDurationSeconds),g.L(this,this.adDurationRemaining),this.adDurationRemaining.Ga(this.B),this.adDurationRemaining.init(jG("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.S(b.adInfoRenderer,jN))&&(this.adInfoButton=new QG(this.api,this.layoutId,this.interactionLoggingClientData,this.qb,this.element),g.L(this,this.adInfoButton),this.adInfoButton.Ga(this.B),
this.adInfoButton.init(jG("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserLink&&(b=g.S(b.visitAdvertiserLink,Beb))&&(this.visitAdvertiserLink=new k2(this.api,this.layoutId,this.interactionLoggingClientData,this.qb),g.L(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ga(this.B),this.visitAdvertiserLink.init(jG("visit-advertiser-link"),b));this.show()};
l2.prototype.clear=function(){this.hide()};var hib="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["shopping-companion","action-companion","image-companion","ads-engagement-panel"]);g.w(m2,OG);
m2.prototype.D=function(a){var b=a.id,c=a.content,d=c.componentType;if(!hib.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.qb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof HK?c.kR:!1,m=c instanceof HK||c instanceof gH?c.XJ:!1;h=void 0===h?{}:h;l=void 0===l?!1:l;m=void 0===m?!1:m;switch(d){case "invideo-overlay":a=new vbb(a,f,h,e);break;case "player-overlay":a=new pH(a,f,h,e,new dW(a),m);break;case "player-overlay-layout":a=new l2(a,f,h,e,new dW(a));break;case "survey":a=
new e2(a,f,h,e);break;case "ad-action-interstitial":a=new qbb(a,f,h,e,l,m);break;case "survey-interstitial":a=new f2(a,f,h,e);break;case "ad-message":a=new Dbb(a,f,h,e,new dW(a,1));break;case "player-underlay":a=new Fbb(a,f,h,e);break;default:a=null}if(!a){g.UF(Error("No UI component returned from ComponentFactory for type: "+d));break}g.gd(this.B,b)?g.UF(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);c instanceof cAa?this.C?this.C.append(a.QQ):g.TF(Error("Underlay view was not created but UnderlayRenderer was created")):
this.G.append(a.QQ);break;case 2:b=ccb(this,a);if(null==b)break;b.bind(c);break;case 3:c=ccb(this,a),null!=c&&(g.sb(c),g.gd(this.B,b)?g.md(this.B,b):g.UF(Error("Ad UI component does not exist: "+b)))}};
m2.prototype.Ba=function(){g.tb(Object.values(this.B));this.B={};OG.prototype.Ba.call(this)};g.w(dcb,g.yV);g.k=dcb.prototype;g.k.create=function(){try{ecb(this),this.load(),this.created=!0,ecb(this)}catch(a){ZG(a instanceof Error?a:String(a))}};
g.k.load=function(){try{hcb(this)}finally{x1(W1(this.j).Lk)&&this.player.Fg("ad",1)}};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Ut.Pn(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.yV.prototype.unload.call(this);xva(!1);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){ZG(b instanceof Error?b:String(b))}if(null!=this.B){var a=this.B;this.B=null;a.dispose()}this.C.reset()};
g.k.xl=function(){return!1};
g.k.getAdState=function(){return-1};
g.k.getOptions=function(){return Object.values(fib)};
g.k.Jh=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=Cab(this.player),Object.assign(b,a.Hdb),a=g.Qt(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Fp(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}};
g.k.Vt=function(a){var b;return!(null==(b=this.j.j.Hf)||!b.get().Vt(a))};
g.k.Fp=function(a){a.isMuted&&Hxa(W1(this.j).tj,W1(this.j).Xk,a.layoutId);this.zs&&this.zs.Fp()};
g.k.executeCommand=function(a){W1(this.j).qb.executeCommand(a.command,a.layoutId)};g.Sa("yt.player.Application.create",g.S0.create);g.Sa("yt.player.Application.createAlternate",g.S0.create);vta(xta(),{gr:[{fA:/Unable to load player module/,weight:20},{fA:/Failed to fetch/,weight:500},{fA:/XHR API fetch failed/,weight:10},{fA:/JSON parsing failed after XHR fetch/,weight:10},{fA:/Retrying OnePlatform request/,weight:10},{fA:/CSN Missing or undefined during playback association/,weight:100}]});var iib=g.Ta("ytcsi.tick");iib&&iib("pe");g.xV("ad",dcb);var mcb=g.bf&&lcb();g.jib=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Sa("yt.msgs_",g.jib);g.w(g.o2,g.J);g.o2.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.OD)()};this.next()};
g.o2.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.o2.prototype.next=function(){if(this.config){var a=this.config,b=a.from,c=a.to,d=a.duration;a=a.startTime;var e=(0,g.OD)()-a;a=this.j;d=dla(a,e/d);if(0==d)a=a.C;else if(1==d)a=a.D;else{e=te(a.C,a.y1,d);var f=te(a.y1,a.y2,d);a=te(a.y2,a.D,d);e=te(e,f,d);f=te(f,a,d);a=te(e,f,d)}a=g.ne(a,0,1);this.callback(b+(c-b)*a);1>a&&this.delay.start()}};g.w(g.p2,g.T);g.k=g.p2.prototype;g.k.vD=function(){return 0<this.suggestionData.length};
g.k.C0=function(){this.B&&this.scrollTo(this.j-this.containerWidth)};
g.k.show=function(){g.T.prototype.show.call(this);qcb(this)};
g.k.D0=function(){this.B&&this.scrollTo(this.j+this.containerWidth)};
g.k.lr=function(){this.Nb(this.api.tb().getPlayerSize())};
g.k.Nb=function(a){var b=g.tU(this.api)?.5625:16/9,c=this.ub.Ng();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));var d=(a-8*c)/c;b=Math.floor(d/b);for(var e=g.u(this.C),f=e.next();!f.done;f=e.next())f=f.value.Ha("ytp-suggestion-image"),f.style.width=d+"px",f.style.height=b+"px";this.suggestions.element.style.height=b+"px";this.G=d;this.ea=b;this.containerWidth=a;this.columns=c;this.j=0;this.suggestions.element.scrollLeft=-0;g.q2(this)};
g.k.onVideoDataChange=function(){var a=this.api.W(),b=this.api.getVideoData();this.K=b.Sd?!1:a.D;this.suggestionData=b.suggestions?g.ts(b.suggestions,function(c){return c&&!c.playlistId}):[];
scb(this);b.Sd?this.title.update({title:g.vK("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:g.tU(this.api)?"More Shorts":"More videos"})};
g.k.scrollTo=function(a){a=g.ne(a,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.S.start(this.j,a,1E3);this.j=a;g.q2(this);qcb(this)};})(_yt_player);
