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

 (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.
*/
/*

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

 SPDX-License-Identifier: Apache-2.0
*/
'use strict';var aa,baa,caa,la,daa,eaa,faa,ra,ua,va,wa,haa,iaa,Ea,Ga,jaa,kaa,Ja,laa,Ka,La,Oa,Ta,Va,naa,oaa,gb,kb,paa,lb,nb,pb,ub,vb,qaa,raa,Bb,taa,uaa,Ob,vaa,Ub,waa,xaa,Rb,yaa,zaa,Aaa,Caa,Baa,Daa,cc,Eaa,dc,fc,jc,lc,sc,tc,uc,vc,wc,xc,Maa,Ac,Cc,Bc,Naa,Oaa,Paa,Qaa,Fc,Raa,Gc,Hc,Jc,Saa,Kc,Lc,Uaa,Vaa,jba,Rc,Uc,mba,Vc,Yc,nba,oba,ad,ed,pba,sba,qd,sd,tba,uba,td,zba,Bd,wba,yba,zd,yd,Id,Jd,Aba,Kd,Bba,Md,Nd,Cba,Pd,Qd,Ud,Wd,Fba,Hba,Xd,Iba,Lba,Yd,Zd,Nba,Sba,ae,ce,de,Vba,Uba,$ba,aca,ke,bca,dca,eca,gca,jca,oe,lca,
re,se,ue,ze,Be,Ee,Fe,mca,nca,oca,pca,Ie,Je,Oe,sca,uca,tca,Ze,af,vca,$e,He,tf,xca,vf,uf,Ge,Ff,yca,Gf,Hf,If,zca,Bca,Dca,Of,Pf,Qf,Hca,Jca,Sf,Kca,Rf,Oca,Mf,Fca,Qca,Nca,Lca,Mca,Rca,Pca,$f,Ica,cg,Tca,Uca,Vca,Wca,Xca,Yca,Zca,$ca,ada,bda,cda,dda,eda,eg,fda,ida,jda,kda,pda,ig,oda,lda,rda,tda,vda,kg,lg,yda,wg,xg,Ada,zg,yg,Bda,Ag,Cda,Dda,Bg,Fda,Hda,Eda,Eg,Gg,Fg,Hg,Ig,Jg,Kg,Ida,Kda,Mg,Lda,Mda,Tg,Ug,Xg,Oda,Pda,Rda,Sda,Uda,Yg,Vda,Zg,Wda,$g,Xda,ah,bh,Yda,ch,Zda,dh,gh,$da,ih,aea,jh,kh,wh,xh,yh,bea,cea,Ah,dea,eea,
fea,gea,Bh,hea,Ch,Dh,iea,jea,Eh,Fh,Gh,Hh,kea,Kh,lea,J,mea,oea,nea,pea,qea,Lh,rea,sea,Nh,Oh,$h,Zh,N,ai,bi,di,ei,vea,wea,fi,xea,gi,ii,hi,yea,ki,li,mi,ji,zea,tea,Aea,Bea,oi,pi,qi,ri,si,ui,vi,wi,xi,yi,Cea,O,zi,Dea,Eea,Bi,Ci,Di,Fea,Fi,Gea,P,Gi,Hi,Ji,Jea,Iea,Kea,Lea,Oea,Pea,Qea,Mi,Rea,Sea,Ii,Tea,Nea,Ni,Oi,Pi,Qi,Ri,Uea,Vea,Si,Wea,Ti,lj,mj,nj,oj,pj,qj,Yea,Zea,afa,$ea,bfa,tj,uj,vj,wj,dfa,efa,xj,yj,zj,ffa,Dj,gfa,jfa,Ej,Fj,kfa,Gj,Hj,mfa,Tj,nfa,Uj,Vj,Wj,ofa,pfa,Zj,qfa,ak,bk,tfa,vfa,wfa,yfa,xfa,zfa,dk,Afa,gk,
kk,lk,mk,Ai,nk,ok,pk,qk,rk,Dfa,tk,Ffa,Gfa,Hfa,Jfa,Ifa,Kfa,Efa,sk,Lfa,Mfa,Ofa,Kk,Lk,Pfa,Mk,Nk,Ok,Qfa,Pk,Qk,Rk,Sk,Rfa,Sfa,Tfa,Ufa,Tk,Vfa,Wfa,Xfa,$fa,Yfa,Uk,aga,Vk,cga,dga,Wk,Yk,ega,fga,gga,Zk,$k,al,bl,jga,cl,kga,dl,el,hl,lga,nga,mga,oga,pga,rga,il,jl,kl,ll,ml,nl,ol,sga,pl,ql,rl,sl,wga,tga,vl,vga,wl,uga,ul,tl,Il,yga,Kl,Jl,zga,Aga,Ql,Rl,Tl,Dga,Sl,Wl,Ega,Xl,Bga,Hga,Iga,Jga,$l,am,bm,Kga,cm,dm,em,fm,Lga,gm,hm,im,Mga,Nga,jm,Oga,Sga,Rga,Tga,Uga,Vga,Pga,Wga,km,lm,mm,Yga,Zga,Xga,nm,$ga,aha,bha,rm,cha,sm,tm,
eha,fha,gha,um,vm,wm,xm,ym,zm,Am,hha,Hm,Im,jha,iha,Jm,kha,mha,lha,nha,Km,Lm,Mm,Nm,Om,Pm,Qm,oha,Rm,Sm,Tm,pha,rha,sha,Vm,Xm,Wm,Zm,$m,an,uha,vha,bn,cn,dn,xha,yha,Bha,zha,Cha,Gha,en,Fha,Dha,fn,gn,Hha,hn,Iha,jn,Kha,Jha,Lha,Mha,nn,on,Nha,Oha,Pha,pn,qn,Qha,rn,Rha,Sha,Uha,Yha,sn,Zha,$ha,aia,bia,cia,vn,dia,eia,fia,Cn,Bn,An,gia,hia,iia,Dn,En,Fn,kia,Kn,Ln,Mn,Nn,On,Pn,mia,nia,oia,Qn,Sn,Tn,Xn,Yn,po,qia,sia,ria,tia,uia,vo,via,wia,wo,xia,yia,zia,Aia,Ao,yo,Bo,Co,Do,Bia,Cia,Dia,Eo,Fo,Go,Eia,Fia,Gia,Ho,Hia,Io,Jo,Iia,
Jia,Kia,Lia,Mia,Nia,Ko,Lo,Mo,Oo,Qia,Po,Qo,Ria,Pia,No,Sia,Ro,So,To,Vo,Uo,Tia,Uia,Via,Wo,Xia,Xo,Zia,$ia,aja,bja,cja,dja,eja,fja,$o,ap,bp,hja,gja,dp,ija,ep,jja,fp,kja,lja,gp,hp,ip,mja,jp,kp,nja,lp,mp,np,op,pp,qp,rp,sp,oja,pja,qja,rja,tp,sja,uja,tja,vp,wp,wja,vja,Bja,Aja,xp,Cja,Dja,Eja,Gja,Fja,Hja,yp,Ija,Jja,Ap,Kja,Lja,Mja,Nja,Bp,Oja,Cp,Pja,Dp,Jp,Rja,Kp,Sja,Lp,Mp,Tja,Uja,Np,Pp,Wja,Qp,Vja,Xja,Yja,Zja,aka,Rp,bka,Up,Vp,dka,eka,hka,ika,Wp,Xp,Yp,Zp,$p,aq,bq,cq,dq,eq,fq,gq,hq,mka,lka,nka,pka,oka,rka,kka,qka,
jka,iq,jq,tka,uka,vka,nq,oq,pq,kq,xka,qq,ska,zka,Aka,Bka,yka,rq,sq,tq,uq,Cka,wka,Dka,vq,Eka,Fka,Gka,Hka,Ika,Lka,xq,Mka,yq,Nka,Oka,Pka,Ska,Bq,Uka,Aq,Dq,Vka,Eq,Gq,Hq,Wka,Xka,Oq,Yka,Zka,Pq,$ka,$q,Xq,Yq,Zq,ala,cr,br,bla,er,dla,fla,fr,gla,hla,mla,ila,ir,jr,rla,kr,lr,mr,tla,pr,ula,vla,qr,xla,Ir,Jr,Kr,yla,Mr,Nr,Or,Pr,Rr,Sr,Ala,Tr,Bla,Vr,Wr,Xr,Yr,Zr,$r,Cla,Dla,Ela,Fla,Gla,Hla,as,Ila,hs,Jla,Kla,Lla,is,ks,ls,ms,ps,qs,rs,Nla,vs,ws,xs,Ola,Pla,ys,Qla,Rla,As,Zla,$la,ama,Bs,bma,cma,fma,Es,gma,Gs,Hs,Is,Js,Ks,Ls,
Ms,Ns,Os,Ps,Qs,Rs,Ss,Ts,Us,Vs,Ws,Xs,Ys,Zs,$s,at,bt,ct,dt,et,ft,gt,ht,jt,kt,lt,mt,nt,ot,pt,qt,rt,tt,ut,vt,wt,xt,zt,At,Bt,Ct,Dt,Et,Ft,Gt,Ht,It,Jt,Kt,Lt,Mt,Nt,Ot,Pt,Qt,Rt,St,Tt,Ut,Vt,Wt,Xt,Yt,Zt,hma,$t,au,bu,cu,du,eu,fu,Au,Cu,Du,Fu,Gu,Hu,Iu,Ju,Ku,Lu,Mu,Nu,Ou,Pu,Qu,Ru,Su,Tu,Uu,Vu,Wu,Xu,Yu,Zu,$u,av,bv,cv,dv,ev,fv,gv,hv,iv,jv,kv,lv,mv,nv,ov,pv,qv,rv,tv,uv,vv,wv,xv,yv,zv,Av,Bv,Cv,Dv,Ev,Fv,Gv,Hv,Iv,Jv,Kv,Lv,Mv,Nv,Ov,Pv,Qv,Rv,Sv,Tv,Uv,Vv,Wv,Xv,Yv,Zv,$v,aw,bw,cw,dw,ew,fw,gw,hw,iw,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,Zw,$w,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,Ax,Bx,Cx,Dx,Ex,Fx,Gx,Hx,Ix,Jx,Kx,Lx,Mx,Ox,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,ima,Sy,jma,Ty,kma,Uy,Vy,Wy,Xy,Yy,Zy,$y,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,Az,Bz,Cz,lma,
mma,Ez,Gz,Jz,nma,Kz,oma,Oz,Pz,Qz,Rz,Sz,Uz,Vz,sma,Wz,Xz,Yz,pma,Zz,vma,yma,$z,Ama,Cma,fA,Dma,Ema,Fma,Jma,Hma,Ima,iA,gA,kA,jA,Kma,mA,nA,oA,Lma,uA,Mma,vA,Nma,wA,yA,Oma,AA,BA,Pma,CA,DA,Rma,GA,IA,JA,KA,LA,MA,NA,OA,PA,QA,Tma,RA,UA,TA,Vma,Yma,Wma,Xma,Zma,$ma,ana,ena,fna,bna,hna,YA,ZA,bB,cB,ina,aB,dB,kna,lna,ona,pna,hB,iB,qna,rna,jB,kB,lB,mB,oB,una,vna,vB,wna,xna,wB,yna,BB,CB,DB,zna,Ana,Cna,Ena,HB,Fna,KB,IB,NB,OB,QB,Gna,XB,YB,ZB,$B,bC,cC,eC,Lna,Mna,gC,Nna,Ona,iC,Pna,Qna,jC,kC,Rna,lC,Sna,pC,Una,Vna,nC,Wna,
Xna,Zna,Yna,tC,Tna,aoa,boa,coa,FC,doa,eoa,HC,IC,foa,goa,LC,hoa,ioa,joa,koa,QC,loa,moa,noa,ooa,poa,qoa,roa,soa,SC,toa,UC,voa,woa,xoa,yoa,zoa,VC,aD,Boa,Eoa,bD,Foa,Hoa,Aoa,Ioa,Joa,Koa,Coa,Doa,WC,XC,$C,Goa,ZC,YC,Loa,Toa,Moa,Noa,Ooa,Poa,Qoa,Xoa,Roa,fD,gD,iD,Zoa,lD,$oa,hD,mD,qD,hpa,apa,gpa,sD,ipa,lpa,tD,rD,jpa,kpa,mpa,vD,opa,ppa,qpa,rpa,spa,tpa,upa,npa,wpa,xpa,ypa,zpa,Apa,yD,zD,BD,Cpa,CD,Dpa,Epa,FD,GD,Gpa,Fpa,Hpa,Jpa,Lpa,Kpa,Opa,Rpa,Ppa,TD,SD,Spa,RD,UD,VD,WD,XD,YD,ZD,$D,aE,bE,cE,dE,eE,fE,gE,hE,iE,jE,kE,
lE,mE,nE,oE,pE,qE,rE,sE,tE,uE,vE,wE,xE,yE,zE,AE,BE,CE,DE,EE,FE,GE,HE,IE,JE,KE,LE,ME,NE,OE,PE,QE,RE,SE,TE,UE,VE,WE,XE,YE,ZE,$E,aF,bF,cF,Wpa,Ypa,gF,hF,Zpa,iF,jF,$pa,aqa,lF,bqa,dqa,mF,eqa,nF,oF,fqa,qF,pF,sF,tF,uF,hqa,vF,xF,iqa,zF,BF,CF,jqa,kqa,lqa,DF,FF,mqa,GF,HF,IF,nqa,JF,oqa,LF,OF,NF,MF,PF,QF,tqa,vqa,sqa,rqa,uqa,SF,UF,xqa,wqa,ZF,$F,Eqa,fG,Dqa,Iqa,Jqa,Cqa,Hqa,Gqa,RF,gG,YF,dG,Fqa,WF,qqa,Pqa,iG,Rqa,Qqa,Uqa,Vqa,mG,Wqa,oG,pG,rG,Yqa,Zqa,$qa,ara,bra,cra,TB,kra,hra,mra,ora,wG,xG,pra,zG,BG,CG,DG,EG,FG,GG,HG,
IG,JG,vra,xra,zra,Ara,LG,Cra,Dra,RG,UG,Era,Fra,Gra,XG,YG,ZG,$G,aH,bH,cH,Hra,dH,eH,Jra,Ira,fH,Pra,gH,hH,iH,kH,Qra,Rra,mH,nH,oH,Tra,Ura,Vra,qH,Wra,Xra,Yra,$ra,asa,tH,csa,vH,dsa,wH,HH,fsa,uH,hsa,IH,ksa,lsa,msa,jsa,nsa,osa,LH,KH,gsa,rsa,isa,MH,tsa,vsa,PH,wsa,QH,RH,xsa,NH,ysa,SH,zsa,usa,Asa,TH,VH,YH,$H,Csa,aI,bI,Gsa,Isa,Hsa,Ksa,Rsa,iI,dI,Jsa,Fsa,Esa,Dsa,hI,eI,gI,Usa,rI,sI,Vsa,tI,uI,qI,Zsa,Wsa,Xsa,$sa,vI,ata,xI,bta,yI,zI,AI,BI,cta,dta,CI,eta,DI,fta,gta,EI,GI,KI,hta,LI,MI,NI,OI,PI,QI,RI,ita,SI,UI,kta,lta,
TI,VI,ota,pta,WI,qta,ZI,rta,$I,bJ,sta,aJ,cJ,tta,eJ,vta,wta,gJ,hJ,mJ,yta,jJ,nJ,pJ,zta,rJ,lJ,oJ,Ata,sJ,Bta,tJ,Cta,iJ,kJ,xta,qJ,uJ,Dta,Eta,vJ,wJ,xJ,yJ,Fta,zJ,AJ,Gta,BJ,Hta,CJ,DJ,EJ,Ita,FJ,Jta,Kta,Lta,GJ,Mta,Nta,Ota,Pta,HJ,IJ,JJ,KJ,Sta,Tta,Uta,NJ,Vta,OJ,PJ,LJ,Qta,QJ,RJ,cK,Wta,fK,hK,iK,Xta,jK,kK,Yta,Zta,lK,$ta,aua,eua,fua,bua,cua,dua,mK,oK,nK,pK,qK,gua,hua,rK,sK,iua,tK,jua,vK,kua,wK,lua,mua,nua,oua,xK,pua,zK,AK,BK,qua,sua,DK,CK,HK,nI,tua,IK,JK,mI,lI,KK,LK,gK,uua,vua,wua,MK,FK,NK,xua,QK,RK,TK,zua,Aua,Bua,
UK,VK,WK,XK,Cua,YK,ZK,$K,aL,bL,cL,dL,eL,fL,Eua,Fua,Hua,Iua,hL,kL,Jua,Kua,Lua,Nua,Mua,mL,Psa,fI,Rua,Sua,Tua,Uua,Vua,Wua,cI,lL,Xua,nL,bva,cva,dva,eva,oL,iva,fva,gva,kva,lva,mva,jva,nva,pL,qL,rL,ova,pva,sL,qva,rva,sva,$ua,uva,uL,vva,wva,xva,wL,vL,yva,zva,Ava,Cva,Qsa,Lsa,Eva,yL,zL,BL,CL,DL,EL,FL,AL,Fva,Hva,JL,Iva,Jva,Kva,Lva,Mva,Nva,Ova,Pva,Rva,Qva,Sva,KL,Vva,Tva,Xva,Yva,Wva,Uva,Zva,$va,awa,OL,bwa,dwa,ewa,Tsa,PL,fwa,iwa,jI,jwa,kwa,lwa,Nsa,Osa,mwa,nwa,QL,RL,XL,pwa,ZL,rwa,aM,dM,swa,twa,vwa,uwa,wwa,xwa,
ywa,zwa,Awa,Bwa,fM,gM,hM,Cwa,Dwa,iM,Ewa,jM,kM,Fwa,lM,Gwa,Hwa,mM,nM,oM,pM,qM,Jwa,rM,sM,Iwa,Kwa,Lwa,Nwa,Pwa,Owa,Mwa,tM,cxa,Zwa,fxa,NM,OM,Qwa,axa,IM,KM,RM,gxa,WM,zM,XM,yM,hxa,Ywa,$M,aN,bN,cN,dN,eN,jxa,kxa,lxa,mxa,nxa,oxa,pxa,fN,qxa,vxa,uxa,rxa,txa,sxa,gN,wxa,hN,xxa,yxa,Axa,Bxa,Cxa,Hxa,mN,nN,Kxa,oN,pN,Lxa,Nxa,Qxa,Rxa,Sxa,Txa,qN,rN,sN,tN,uN,Wxa,vN,wN,xN,yN,zN,AN,Xxa,BN,CN,DN,EN,FN,GN,Yxa,Zxa,HN,$xa,LN,cya,dya,eya,MN,gya,jya,lya,QN,mya,tya,xya,qya,rya,zya,XN,Aya,Cya,Bya,Dya,ZN,bO,Eya,YN,Fya,cO,Gya,Kya,
Hya,Jya,bza,pza,wO,rza,Yya,Zya,jO,sza,qza,oO,xO,Wya,uza,tza,gO,$ya,Aza,wza,xza,yza,zza,Bza,yO,Cza,Dza,Eza,AO,Fza,Gza,fO,lO,gza,Iya,lza,EO,mO,vza,LO,NO,OO,Tza,Uza,vO,Vza,QO,Wza,nO,SO,Xya,Xza,Lza,kO,Pya,Yza,Nya,Mya,Mxa,UO,VO,$za,WO,aAa,XO,ZO,YO,$O,bAa,cAa,dAa,aP,fAa,bP,cP,dP,eP,gAa,hAa,fP,iAa,gP,hP,iP,jP,jAa,mP,oP,mAa,nP,nAa,kAa,lAa,oAa,pAa,qAa,pP,qP,sAa,tAa,rP,vAa,uAa,yAa,tP,AAa,EAa,BAa,GAa,DAa,HAa,xP,CAa,zP,vP,AP,FAa,wP,uP,CP,DP,FP,HP,KAa,JAa,LAa,IP,MAa,NAa,OAa,PAa,QAa,RAa,JP,SAa,TAa,WAa,UAa,XAa,
YAa,ZAa,$Aa,aBa,hBa,iBa,bBa,jBa,OP,kBa,lBa,mBa,nBa,oBa,qBa,rBa,pBa,PP,tBa,uBa,sBa,wBa,vBa,SP,zBa,WP,ABa,BBa,CBa,iL,DBa,EBa,XP,FBa,HBa,IBa,ZP,$P,aQ,bQ,KBa,fQ,gQ,NBa,MBa,PBa,OBa,QBa,RBa,SBa,TBa,UBa,$Ba,dCa,eCa,gCa,fCa,hCa,lQ,jCa,kQ,cCa,bCa,hQ,rQ,sQ,tQ,uQ,vQ,wQ,nCa,yQ,xQ,pCa,lCa,mCa,qCa,oCa,sCa,zQ,tCa,AQ,uCa,vCa,CQ,xCa,yCa,zCa,ACa,BCa,DQ,DCa,GCa,JCa,CCa,FQ,tDa,xDa,GQ,HQ,KDa,VDa,WDa,XDa,YDa,$Da,NQ,bEa,cEa,LQ,MQ,aEa,fEa,gEa,OQ,jEa,hEa,kEa,PQ,IAa,lEa,zAa,mEa,nEa,oEa,pEa,qEa,RQ,sEa,rEa,SQ,TQ,tEa,uEa,yEa,
wEa,WQ,YQ,AEa,ZQ,BEa,bR,cR,CEa,DEa,FEa,GEa,HEa,IEa,JEa,KEa,LEa,MEa,gR,OEa,PEa,REa,SEa,TEa,UEa,VEa,WEa,$Ea,aFa,hR,iR,bFa,jR,cFa,lR,eFa,dFa,mR,nR,oR,pR,fFa,qR,gFa,hFa,rR,iFa,mFa,jFa,lFa,kFa,nFa,sR,oFa,pFa,qFa,rFa,tR,tFa,wFa,vFa,uR,xFa,vR,wR,xR,zR,AR,yFa,zFa,AFa,BR,BFa,CFa,FFa,GFa,IFa,JFa,KFa,LFa,EFa,CR,NFa,MFa,DR,OFa,PFa,ER,QFa,FR,GR,JR,SFa,KR,TFa,LR,MR,NR,UFa,VFa,YFa,ZFa,PR,aGa,RR,SR,bGa,cGa,TR,eGa,UR,jGa,hGa,gGa,fGa,lGa,VR,WR,YR,ZR,$R,aS,bS,dS,pGa,sGa,tGa,eS,fS,Z,vGa,gS,AGa,EGa,FGa,GGa,NGa,RGa,WGa,
XGa,sHa,tHa,uHa,YGa,$Ga,fHa,zHa,CHa,AHa,EHa,FHa,BHa,GHa,AIa,NHa,BIa,OHa,PHa,nS,DIa,FIa,HIa,GIa,EIa,RHa,cIa,dIa,LIa,NIa,fIa,gIa,iIa,jIa,kIa,UIa,mIa,pIa,wIa,bJa,YIa,ZIa,dJa,gJa,fJa,hJa,iJa,qJa,jJa,qS,nJa,wJa,xJa,yJa,zJa,AJa,DJa,HJa,kKa,jKa,uS,oKa,SB,qKa,pKa,rKa,sKa,tKa,uKa,wKa,vKa,xKa,wS,yKa,AKa,CKa,DKa,EKa,BKa,JKa,IKa,SKa,UKa,VKa,WKa,zS,XKa,ZKa,AS,$Ka,CS,DS,BS,bLa,aLa,cLa,fLa,eLa,hLa,HS,iLa,jLa,kLa,lLa,KS,mLa,nLa,qLa,rLa,LS,sLa,MS,NS,OS,tLa,wLa,ZS,xLa,zLa,aT,ALa,eT,fT,gT,hT,iT,jT,BLa,DLa,FLa,GLa,HLa,
ILa,JLa,KLa,MLa,LLa,NLa,OLa,PLa,RLa,mT,nT,SLa,ULa,VLa,WLa,sT,bMa,aMa,tT,cMa,dMa,eMa,fMa,uT,vT,gMa,iMa,jMa,wT,kMa,xT,oMa,mMa,nMa,pMa,qMa,rMa,sMa,AT,yT,tMa,BT,vMa,uMa,DT,ET,xMa,CT,zMa,FT,CMa,BMa,IT,JT,KT,FMa,DMa,EMa,LT,GMa,KMa,IMa,HMa,JMa,MT,MMa,NMa,NT,PMa,QMa,RMa,OMa,TMa,SMa,WMa,UMa,VMa,YMa,ZMa,$Ma,aNa,bNa,XMa,cNa,dNa,eNa,fNa,gNa,hNa,OT,mNa,kNa,lNa,PT,nNa,jNa,oNa,pNa,QT,RT,qNa,rNa,ST,sNa,tNa,uNa,vNa,wNa,xNa,yNa,BNa,zNa,CNa,DNa,ENa,FNa,HNa,bU,cU,INa,MNa,LNa,NNa,ONa,PNa,QNa,RNa,SNa,TNa,ZNa,gU,bOa,eOa,
dOa,cOa,XNa,YNa,UNa,VNa,$Na,hU,iU,fOa,SS,dLa,kU,gOa,iOa,hOa,aOa,kOa,lOa,mOa,mU,nOa,pOa,qOa,rOa,tU,uU,sOa,tOa,uOa,vOa,wOa,yOa,xOa,zOa,vU,wU,AOa,DOa,EOa,yU,COa,FOa,GOa,BOa,zU,HOa,EU,IOa,JOa,BU,LOa,KOa,MOa,NOa,OOa,POa,ROa,SOa,QOa,VOa,TOa,MU,NU,XOa,PU,QU,YOa,$Oa,SU,ZOa,aPa,bPa,cPa,ePa,dPa,fPa,gPa,hPa,iPa,jPa,YU,ZU,lPa,kPa,bV,$U,aV,mPa,nPa,cV,oPa,pPa,rPa,qPa,sPa,tPa,wPa,xPa,yPa,BPa,APa,zPa,CPa,DPa,eV,fV,EPa,FPa,GPa,HPa,gV,jV,IPa,JPa,KPa,LPa,MPa,NPa,lV,OPa,PPa,SPa,mV,TPa,RPa,nV,UPa,VPa,YPa,WPa,XPa,qV,ZPa,
aQa,bQa,dQa,eQa,rV,sV,fQa,$Pa,hQa,gQa,tV,uV,vV,yV,zV,iQa,AV,jQa,kQa,DV,lQa,EV,mQa,FV,GV,nQa,qQa,rQa,sQa,tQa,vQa,wQa,xQa,uQa,zQa,yQa,AQa,DQa,KV,FQa,EQa,BQa,CQa,HQa,GQa,IQa,JQa,KQa,LV,MV,LQa,MQa,NQa,OQa,PQa,QQa,RQa,SQa,TQa,aRa,WQa,XQa,UQa,dRa,RV,eRa,iRa,UV,jRa,fRa,QV,XV,WV,SV,YV,mRa,nRa,ZV,TV,bRa,lRa,VV,gRa,kRa,oRa,NV,aW,pRa,qRa,hRa,bW,cW,sRa,dW,tRa,gW,hW,uRa,vRa,xRa,yRa,wRa,iW,jW,zRa,ARa,BRa,CRa,DRa,FRa,HRa,GRa,ERa,JRa,IRa,kW,lW,KRa,MRa,NRa,mW,LRa,ORa,PRa,QRa,oW,rW,qW,SRa,RRa,TRa,sW,URa,VRa,XRa,WRa,
YRa,ZRa,$Ra,vW,aSa,KU,eSa,XU,bSa,fSa,dSa,lT,cSa,gSa,iSa,jSa,kSa,hSa,lSa,mSa,nSa,oSa,pSa,AW,rSa,BW,tSa,CW,sSa,vSa,wSa,uSa,DW,xSa,zSa,ASa,ySa,FW,GW,CSa,HW,DSa,JW,GSa,HSa,ISa,JSa,KSa,LSa,MSa,NSa,OSa,ESa,KW,PSa,QSa,RSa,MW,SSa,TSa,USa,ZSa,cTa,aTa,WSa,PW,VSa,bTa,RW,eTa,dTa,SW,gTa,hTa,iTa,kTa,lTa,jTa,mTa,yMa,XW,nTa,YW,oTa,vTa,cX,wTa,xTa,eX,yTa,zTa,fX,ATa,pTa,gX,CTa,DTa,FTa,hX,GTa,iX,ITa,HTa,jX,tTa,aX,JTa,KTa,LTa,MTa,NTa,qTa,sTa,bX,ZW,QTa,RTa,kX,STa,TTa,UTa,lX,OTa,VTa,WTa,PTa,aUa,eUa,oX,fUa,gUa,cUa,qX,hUa,
iUa,$Ta,jUa,dUa,kUa,rX,pX,lUa,nUa,mUa,nX,pUa,tX,qUa,uX,sX,vX,rUa,wX,sUa,vUa,uUa,xUa,yUa,wUa,zX,yX,AUa,BUa,CUa,DUa,EUa,GUa,FUa,BX,CX,HUa,DX,IUa,KUa,OUa,LUa,MUa,NUa,PUa,KX,QUa,RUa,SUa,LX,TUa,UUa,VUa,MX,NX,OX,PX,WUa,QX,RX,XUa,YUa,cVa,eVa,fVa,WX,XX,YX,bVa,gVa,TX,ZUa,hVa,SX,UX,$Ua,aVa,VX,iVa,jVa,dVa,kVa,lVa,pVa,mVa,qVa,rVa,nVa,oVa,sVa,tVa,pya,wya,vVa,uVa,$X,AVa,yVa,zVa,wVa,BVa,aY,xVa,bY,cY,CVa,DVa,EVa,FVa,HVa,IVa,dY,JVa,KVa,LVa,MVa,OVa,PVa,fY,WVa,SVa,NVa,YVa,TVa,UVa,RVa,VVa,gY,QVa,XVa,dWa,bWa,aWa,$Va,
ZVa,iY,eWa,jY,kY,lY,hWa,mY,gWa,nY,lWa,oY,jWa,mWa,iWa,pWa,kWa,qWa,pY,qY,rWa,sWa,uWa,tWa,wWa,vWa,xWa,yWa,rY,zWa,AWa,tY,BWa,sY,CWa,DWa,FWa,GWa,EWa,uY,HWa,IWa,KWa,JWa,LWa,MWa,NWa,PWa,QWa,OWa,RWa,FX,SWa,TWa,UWa,EX,VWa,wY,xY,WWa,XWa,ZWa,YWa,yY,$Wa,JX,aXa,bXa,HX,IX,fXa,AY,BY,gXa,DY,zY,EY,dXa,cXa,eXa,FY,iXa,jXa,hXa,GX,CY,kXa,lXa,mXa,nXa,nWa,oWa,oXa,pXa,GY,sXa,qXa,tXa,uXa,vXa,HY,wXa,yXa,JY,LY,AXa,BXa,CXa,zXa,DXa,EXa,MY,FXa,NY,GXa,JXa,LXa,NXa,QXa,UXa,WXa,XXa,VXa,YXa,ZXa,$Xa,aYa,cYa,gYa,hYa,jYa,mYa,nYa,iYa,
PY,bYa,QY,kYa,lYa,pYa,qYa,rYa,yYa,xYa,WY,zYa,wYa,CYa,DYa,EYa,FYa,GYa,HYa,IYa,JYa,YY,RY,LYa,MYa,XY,OYa,KYa,PYa,QYa,RYa,SYa,ZY,TYa,UYa,VYa,WYa,XYa,YYa,ZYa,bZa,aZa,$Ya,$Y,cZa,bZ,eZa,fZa,cZ,dZ,gZa,eZ,iZa,jZa,lZa,xXa,gZ,hZa,mZa,pZa,rZa,cWa,nZa,oZa,qZa,eY,IY,sZa,tZa,uZa,vZa,dZa,hZ,KY,wZa,jZ,kZ,xZa,lZ,yZa,zZa,AZa,BZa,CZa,DZa,FZa,EZa,HZa,IZa,MZa,JZa,LZa,NZa,nZ,RZa,PZa,QZa,UZa,VZa,WZa,XZa,YZa,mZ,ZZa,TZa,OZa,oZ,$Za,KZa,a_a,pZ,c_a,d_a,e_a,b_a,qZ,h_a,g_a,k_a,j_a,i_a,l_a,m_a,rZ,n_a,tZ,s_a,p_a,q_a,r_a,t_a,u_a,
v_a,x_a,w_a,y_a,z_a,A_a,C_a,E_a,D_a,F_a,B_a,G_a,I_a,K_a,H_a,L_a,M_a,O_a,N_a,P_a,J_a,uZ,Q_a,YTa,R_a,T_a,V_a,W_a,Y_a,Z_a,$_a,a0a,d0a,e0a,c0a,f0a,g0a,h0a,j0a,i0a,m0a,yZ,mX,k0a,l0a,n0a,BZ,p0a,o0a,q0a,s0a,t0a,v0a,u0a,y0a,CZ,z0a,DZ,XTa,FZ,HZ,B0a,EZ,C0a,IZ,E0a,A0a,F0a,G0a,GZ,H0a,JZ,I0a,D0a,b0a,AZ,K0a,L0a,ZTa,M0a,N0a,O0a,P0a,LZ,Q0a,S0a,T0a,U0a,R0a,V0a,W0a,MZ,X0a,Y0a,NZ,OZ,Z0a,$0a,a1a,PZ,RZ,d1a,e1a,QZ,c1a,b1a,UZ,TZ,VZ,SZ,f1a,j1a,l1a,n1a,p1a,h1a,m1a,q1a,i1a,r1a,s1a,u1a,WZ,v1a,t1a,XZ,w1a,k1a,x1a,o1a,g1a,YZ,
D1a,A1a,E1a,B1a,z1a,F1a,y1a,I1a,ZZ,J1a,L1a,jL,N1a,Q1a,R1a,BP,d_,S1a,rTa,U1a,e_,o_a,V1a,X1a,T1a,VW,O1a,Y1a,Z1a,fZ,j_,NYa,P1a,i_,$Z,b2a,c2a,e2a,d2a,W1a,g_,g2a,k_,h2a,$Sa,i2a,kZa,sZ,fTa,j2a,BTa,AMa,f_,k2a,m2a,l2a,YSa,n2a,p2a,a2a,M1a,r2a,q2a,h_,a_,s2a,m_,QW,t2a,u2a,dX,v2a,w2a,x2a,XSa,l_,f2a,y2a,J2a,E2a,D2a,L2a,C2a,o_,WW,O2a,M2a,Q2a,r_,s_,R2a,S2a,u_,I2a,z_,U2a,y_,t_,W2a,X2a,F2a,C_,Y2a,H2a,w_,T2a,v_,d3a,q_,e3a,f3a,E_,V2a,F_,G_,g3a,x_,P2a,$2a,Z2a,h3a,i3a,j3a,k3a,IS,l3a,A_,m3a,o3a,p_,H_,N2a,p3a,q3a,G2a,D_,
B_,r3a,s3a,I_,J_,tUa,K_,fF,dF,L_,u3a,w3a,x3a,M_,y3a,O_,z3a,A3a,P_,N_,B3a,C3a,Q_,R_,S_,T_,U_,V_,W_,E3a,D3a,X_,F3a,dBa,eBa,fBa,VAa,G3a,J3a,K3a,L3a,gBa,e0,KP,H3a,f0,O3a,P3a,Q3a,R3a,I3a,T3a,Z_,U3a,V3a,g0,W3a,h0,a0,X3a,$_,S3a,i0,$3a,Z3a,c0,d0,k0,j0,a4a,l0,c4a,b4a,d4a,m0,n0,o0,p0,e4a,q0,w0,g4a,k4a,m4a,l4a,n4a,o4a,q4a,s4a,t4a,C0,D0,E0,A0,F0,B0,G0,H0,u4a,v4a,I0,J0,z0,K0,L0,x4a,B4a,M0,C4a,y4a,D4a,N0,E4a,H4a,G4a,L4a,I4a,O0,P0,R4a,U4a,T4a,S4a,Y4a,X4a,$4a,V4a,W4a,a5a,c5a,d5a,b5a,f5a,g5a,j5a,m5a,k5a,q5a,z5a,y5a,
r5a,A5a,t5a,u5a,s5a,E5a,G5a,L5a,O5a,P5a,R5a,S5a,U5a,W5a,V5a,d6a,Y5a,X5a,e6a,h6a,i6a,j6a,k6a,$0,Xpa,n6a,l6a,b1,eF,c1,d1,Vpa,e1,p6a,q6a,v5a,r6a,s6a,t6a,p5a,u6a,f1,v6a,K5a,w6a,x6a,g1,Q4a,Q0,y6a,a1,J5a,I5a,i5a,M5a,Q5a,T5a,M4a,f6a,z6a,B5a,w5a,A6a,r4a,h1,B6a,i1,C6a,j1,k1,l1,m1,p4a,E6a,D6a,h5a,N5a,F6a,g6a,X0,N4a,P4a,F4a,H5a,o5a,l5a,A4a,z4a,w4a,D5a,x5a,Z5a,J4a,K4a,b6a,c6a,$5a,a6a,F5a,I6a,G6a,n1,H6a,o1,NP,b0,M3a,Y_,J6a,p1,q1,r1,s1,L6a,K6a,M6a,t1,u1,v1,Y0,N6a,w1,m6a,O6a,P6a,O4a,R0,S0,Q6a,x1,R6a,S6a,z1,A1,U6a,
C1,V6a,W6a,T6a,B1,X6a,Y6a,Z6a,D1,b7a,a7a,E1,QQ,c7a,d7a,y1,e7a,f7a,g7a,F1,G1,h7a,H1,I1,i7a,j7a,k7a,l7a,m7a,n7a,o7a,p7a,q7a,r7a,J1,K1,s7a,u7a,t7a,v7a,L1,M1,N1,O1,P1,Q1,R1,x7a,y7a,w7a,z7a,A7a,B7a,S1,C7a,D7a,T1,U1,V1,E7a,F7a,G7a,W1,H7a,X1,I7a,Y1,J7a,Z1,K7a,L7a,$1,M7a,P7a,a2,Q7a,S7a,N7a,O7a,b2,R7a,T7a,U7a,d2,V7a,W7a,X7a,f2,e2,g2,Y7a,Z7a,$7a,b8a,a8a,h2,c8a,d8a,g8a,e8a,f8a,i2,j2,o6a,h8a,k2,i8a,l2,k8a,l8a,j8a,m8a,m2,n8a,o8a,p8a,n2,o2,p2,q8a,q2,r2,s2,r8a,s8a,t2,t8a,u8a,u2,c2,v2,w2,v8a,x2,y2,cBa,z2,w8a,A2,
x8a,B2,C2,z8a,y8a,D2,E2,F2,G2,A8a,B8a,C8a,H2,D8a,E8a,F8a,H8a,G8a,I8a,J8a,L8a,K8a,M8a,N8a,O8a,P8a,Q8a,R8a,S8a,T8a,U8a,V8a,W8a,X8a,Y8a,Z8a,$8a,a9a,b9a,I2,J2,K2,c9a,d9a,e9a,f9a,g9a,h9a,i9a,j9a,k9a,l9a,m9a,n9a,o9a,p9a,L2,q9a,r9a,M2,N2,t9a,u9a,O2,v9a,P2,w9a,Q2,x9a,R2,y9a,z9a,A9a,S2,B9a,C9a,D9a,E9a,F9a,G9a,U2,H9a,I9a,J9a,K9a,L9a,N9a,V2,M9a,O9a,P9a,Q9a,R9a,V9a,S9a,T9a,U9a,X9a,Z9a,$9a,a$a,Y9a,W2,b$a,c$a,d$a,e$a,f$a,Y2,g$a,Z2,$2,a3,h$a,i$a,k$a,l$a,m$a,n$a,p$a,o$a,q$a,b3,c3,t$a,r$a,s$a,d3,u$a,v$a,e3,w$a,x$a,
y$a,B$a,A$a,C$a,D$a,E$a,F$a,Upa,z$a,G$a,K$a,L$a,N$a,aaa,ka,ek,Za,maa;aa=function(a){return function(){return aaa[a].apply(this,arguments)}};
g.da=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.ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ka(c,a,{configurable:!0,writable:!0,value:b})}};
daa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
eaa=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");};
faa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.qa=function(a){return a instanceof Array?a:faa(g.u(a))};
ra=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.x=function(a,b){a.prototype=gaa(b.prototype);a.prototype.constructor=a;if(sa)sa(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.Uf=b.prototype};
ua=function(){this.K=!1;this.C=null;this.u=void 0;this.j=1;this.D=this.J=0;this.ea=this.B=null};
va=function(a){if(a.K)throw new TypeError("Generator is already running");a.K=!0};
wa=function(a,b){a.B={TU:b,vW:!0};a.j=a.J||a.D};
g.z=function(a,b,c){a.j=c;return{value:b}};
g.xa=function(a){a.j=0};
g.ya=function(a,b,c){a.J=b;void 0!=c&&(a.D=c)};
g.za=function(a,b){a.j=b;a.J=0};
g.Aa=function(a){a.J=0;var b=a.B.TU;a.B=null;return b};
g.Ba=function(a){a.ea=[a.B];a.J=0;a.D=0};
g.Ca=function(a,b){var c=a.ea.splice(0)[0];(c=a.B=a.B||c)?c.vW?a.j=a.J||a.D:void 0!=c.Ka&&a.D<c.Ka?(a.j=c.Ka,a.B=null):a.j=a.D:a.j=b};
haa=function(a){this.j=new ua;this.u=a};
iaa=function(a,b){va(a.j);var c=a.j.C;if(c)return Ea(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return Ga(a)};
Ea=function(a,b,c,d){try{var e=b.call(a.j.C,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.K=!1,e;var f=e.value}catch(h){return a.j.C=null,wa(a.j,h),Ga(a)}a.j.C=null;d.call(a.j,f);return Ga(a)};
Ga=function(a){for(;a.j.j;)try{var b=a.u(a.j);if(b)return a.j.K=!1,{value:b.value,done:!1}}catch(c){a.j.u=void 0,wa(a.j,c)}a.j.K=!1;if(a.j.B){b=a.j.B;a.j.B=null;if(b.vW)throw b.TU;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
jaa=function(a){this.next=function(b){va(a.j);a.j.C?b=Ea(a,a.j.C.next,b,a.j.V):(a.j.V(b),b=Ga(a));return b};
this.throw=function(b){va(a.j);a.j.C?b=Ea(a,a.j.C["throw"],b,a.j.V):(wa(a.j,b),b=Ga(a));return b};
this.return=function(b){return iaa(a,b)};
this[Symbol.iterator]=function(){return this}};
kaa=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.Ha=function(a){return kaa(new jaa(new haa(a)))};
g.Ia=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
Ja=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};
laa=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,q_:f}}return{i:-1,q_:void 0}};
Ka=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+""};
La=function(a){return a?a:Array.prototype.fill};
Oa=function(a){return a?a:Array.prototype.copyWithin};
g.Qa=function(a,b,c){a=a.split(".");c=c||g.Pa;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};
Ta=function(a,b){var c=g.Sa("CLOSURE_FLAGS");a=c&&c[a];return null!=a?a:b};
g.Sa=function(a,b){a=a.split(".");b=b||g.Pa;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,Za)&&a[Za]||(a[Za]=++maa)};
naa=function(a,b,c){return a.call.apply(a.bind,arguments)};
oaa=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.bb=function(a,b,c){g.bb=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?naa:oaa;return g.bb.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()};
gb=function(){return" This link opens in new tab"};
g.jb=function(a,b){function c(){}
c.prototype=b.prototype;a.Uf=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.lj=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)}};
kb=function(a){return a};
paa=function(a){this.mU=a};
lb=function(a,b,c){this.u=a;this.C=b;this.j=c||[];this.Dy=new Map};
nb=function(a,b){lb.call(this,a,3,b)};
pb=function(a,b){lb.call(this,a,2,b)};
g.qb=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.sb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Wa(d)?g.sb.apply(null,d):g.qb(d)}};
g.G=function(){this.Bp=this.Bp;this.Pm=this.Pm};
g.H=function(a,b){g.tb(a,g.db(g.qb,b))};
g.tb=function(a,b){a.Bp?b():(a.Pm||(a.Pm=[]),a.Pm.push(b))};
ub=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,ub);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)};
vb=function(a,b){var c=ub.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(ub,this,d+a[e])};
qaa=function(){};
g.yb=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
g.zb=function(a){return a[a.length-1]};
raa=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.Db=function(a,b,c){b=Bb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
Bb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
g.Eb=function(a,b,c){var d=a.length,e="string"===typeof a?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
g.Fb=function(a,b){return 0<=saa(a,b)};
taa=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.Hb=function(a,b){b=saa(a,b);var c;(c=0<=b)&&g.Gb(a,b);return c};
g.Gb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.Ib=function(a,b){b=Bb(a,b);0<=b&&g.Gb(a,b)};
uaa=function(a,b){var c=0;raa(a,function(d,e){b.call(void 0,d,e,a)&&g.Gb(a,e)&&c++})};
g.Jb=function(a){return Array.prototype.concat.apply([],arguments)};
g.Lb=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.Nb=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.Qb=function(a,b,c,d){Array.prototype.splice.apply(a,Ob(arguments,1))};
Ob=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
vaa=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 waa(a,c||Rb,!1,b)};
Ub=function(a,b){return waa(a,b,!0)};
waa=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.Vb=function(a,b){a.sort(b||Rb)};
xaa=function(a,b){var c=Rb;g.Vb(a,function(d,e){return c(b(d),b(e))})};
g.Xb=function(a,b){if(!g.Wa(a)||!g.Wa(b)||a.length!=b.length)return!1;for(var c=a.length,d=yaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
Rb=function(a,b){return a>b?1:a<b?-1:0};
yaa=function(a,b){return a===b};
g.Yb=function(a,b,c){c=g.Sb(a,b,c);0>c&&g.Qb(a,-(c+1),0,b)};
g.ac=function(a,b,c){var d={};(0,g.$b)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
zaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
Aaa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
Caa=function(a){var b=g.Sa("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.Pa.$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};
dc=function(a,b){var c=String(b).toLowerCase();a=String(a.slice(0,b.length)).toLowerCase();return 0==(c<a?-1:c==a?0:1)};
g.ec=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.ic=function(a,b){return-1!=a.indexOf(b)};
jc=function(a,b){return g.ic(a.toLowerCase(),b.toLowerCase())};
g.mc=function(a,b){var c=0;a=kc(String(a)).split(".");b=kc(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=lc(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||lc(0==f[2].length,0==h[2].length)||lc(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
lc=function(a,b){return a<b?-1:a>b?1:0};
g.nc=function(){var a=g.Pa.navigator;return a&&(a=a.userAgent)?a:""};
sc=function(a){return oc||pc?qc?qc.brands.some(function(b){return(b=b.brand)&&g.ic(b,a)}):!1:!1};
tc=function(a){return g.ic(g.nc(),a)};
uc=function(){return oc||pc?!!qc&&0<qc.brands.length:!1};
vc=function(){return uc()?!1:tc("Opera")};
wc=function(){return uc()?!1:tc("Trident")||tc("MSIE")};
xc=function(){return uc()?!1:tc("Edge")};
Maa=function(){return uc()?sc("Microsoft Edge"):tc("Edg/")};
Ac=function(){return tc("Firefox")||tc("FxiOS")};
Cc=function(){return tc("Safari")&&!(Bc()||(uc()?0:tc("Coast"))||vc()||xc()||Maa()||(uc()?sc("Opera"):tc("OPR"))||Ac()||tc("Silk")||tc("Android"))};
Bc=function(){return uc()?sc("Chromium"):(tc("Chrome")||tc("CriOS"))&&!xc()||tc("Silk")};
Naa=function(){return tc("Android")&&!(Bc()||Ac()||vc()||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.nc();if("Internet Explorer"===a){if(wc())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(vc())return b(["Version","Opera"]);if(uc()?sc("Opera"):tc("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(xc())return b(["Edge"]);if(Maa())return b(["Edg"]);break;case "Chromium":if(Bc())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Ac()||"Safari"===a&&Cc()||"Android Browser"===a&&Naa()||"Silk"===a&&tc("Silk")?(b=c[2])&&b[1]||"":""};
Qaa=function(a){if(uc()&&"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])};
Fc=function(){return oc||pc?!!qc&&!!qc.platform:!1};
Raa=function(){return Fc()?"Android"===qc.platform:tc("Android")};
Gc=function(){return tc("iPhone")&&!tc("iPod")&&!tc("iPad")};
Hc=function(){return Gc()||tc("iPad")||tc("iPod")};
Jc=function(){return Fc()?"macOS"===qc.platform:tc("Macintosh")};
Saa=function(){return Fc()?"Windows"===qc.platform:tc("Windows")};
Kc=function(a){Kc[" "](a);return a};
Lc=function(a,b){try{return Kc(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.Pa.document;return a?a.documentMode:void 0};
g.Nc=function(a){return Uaa(a,function(){return 0<=g.mc(Mc,a)})};
g.Oc=function(a){return Number(hba)>=a};
jba=function(a){return g.Qc?"webkit"+a:a.toLowerCase()};
Rc=function(a,b){g.yb.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.j=null;a&&this.init(a,b)};
Uc=function(a){return!(!a||!a[kba])};
mba=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Cd=e;this.key=++lba;this.removed=this.cG=!1};
Vc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Cd=null};
g.Wc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Xc=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Yc=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Zc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
nba=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.$c=function(a){for(var b in a)return b};
oba=function(a){for(var b in a)return a[b]};
ad=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.bd=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.cd=function(a,b){return null!==a&&b in a};
g.dd=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
ed=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
pba=function(a,b){return(b=ed(a,b))&&a[b]};
g.id=function(a){for(var b in a)return!1;return!0};
g.qba=function(a){for(var b in a)delete a[b]};
g.jd=function(a,b){b in a&&delete a[b]};
g.kd=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.ld=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.md=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.od=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.od(a[c]);return b};
g.pd=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<rba.length;f++)c=rba[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
sba=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
qd=function(a){this.src=a;this.listeners={};this.j=0};
g.rd=function(a,b){var c=b.type;c in a.listeners&&g.Hb(a.listeners[c],b)&&(Vc(b),0==a.listeners[c].length&&(delete a.listeners[c],a.j--))};
sd=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.Cd==d)return e}return-1};
g.xd=function(a,b,c,d,e){if(d&&d.once)return td(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.xd(a,b[f],c,d,e);return null}c=yd(c);return Uc(a)?a.Ta(b,c,g.Xa(d)?!!d.capture:!!d,e):tba(a,b,c,!1,d,e)};
tba=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Xa(e)?!!e.capture:!!e,l=zd(a);l||(a[Ad]=l=new qd(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=uba();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)vba||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(wba(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");xba++;return c};
uba=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=yba;return a};
td=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)td(a,b[f],c,d,e);return null}c=yd(c);return Uc(a)?a.IH(b,c,g.Xa(d)?!!d.capture:!!d,e):tba(a,b,c,!0,d,e)};
zba=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)zba(a,b[f],c,d,e);else d=g.Xa(d)?!!d.capture:!!d,c=yd(c),Uc(a)?a.Mc(b,c,d,e):a&&(a=zd(a))&&(b=a.IC(b,c,d,e))&&Bd(b)};
Bd=function(a){if("number"!==typeof a&&a&&!a.removed){var b=a.src;if(Uc(b))g.rd(b.Zl,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(wba(c),d):b.addListener&&b.removeListener&&b.removeListener(d);xba--;(c=zd(b))?(g.rd(c,a),0==c.j&&(c.src=null,b[Ad]=null)):Vc(a)}}};
wba=function(a){return a in Cd?Cd[a]:Cd[a]="on"+a};
yba=function(a,b){if(a.removed)a=!0;else{b=new Rc(b,this);var c=a.listener,d=a.Cd||a.src;a.cG&&Bd(a);a=c.call(d,b)}return a};
zd=function(a){a=a[Ad];return a instanceof qd?a:null};
yd=function(a){if("function"===typeof a)return a;a[Dd]||(a[Dd]=function(b){return a.handleEvent(b)});
return a[Dd]};
g.Hd=function(){g.G.call(this);this.Zl=new qd(this);this.l3=this;this.zP=null};
Id=function(a,b,c,d){b=a.Zl.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.Cd||h.src;h.cG&&g.rd(a.Zl,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Jd=function(a,b){this.B=a;this.C=b;this.u=0;this.j=null};
Aba=function(a,b){a.C(b);100>a.u&&(a.u++,b.next=a.j,a.j=b)};
Kd=function(a){return function(){return a}};
g.Ld=function(){};
Bba=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()}}};
Cba=function(a,b){var c=0;return function(d){g.Pa.clearTimeout(c);var e=arguments;c=g.Pa.setTimeout(function(){a.apply(b,e)},50)}};
Pd=function(){if(void 0===Od){var a=null,b=g.Pa.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:kb,createScript:kb,createScriptURL:kb})}catch(c){g.Pa.console&&g.Pa.console.error(c.message)}Od=a}else Od=a}return Od};
Qd=function(a,b){this.BZ=a===Dba&&b||"";this.Q2=Eba};
Ud=function(a){return a instanceof Qd&&a.constructor===Qd&&a.Q2===Eba?a.BZ:"type_error:Const"};
g.Vd=function(a){return new Qd(Dba,a)};
Wd=function(a){this.KP=a;this.wp=!0};
Fba=function(a){return a instanceof Wd&&a.constructor===Wd?a.KP:"type_error:SafeScript"};
Hba=function(a){var b=Pd();a=b?b.createScript(a):a;return new Wd(a,Gba)};
Xd=function(a){this.NP=a};
Iba=function(a){return a instanceof Xd&&a.constructor===Xd?a.NP:"type_error:TrustedResourceUrl"};
Lba=function(a,b){var c=Ud(a);if(!Jba.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(Kba,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 Qd?Ud(d):encodeURIComponent(String(d))});
return Yd(a)};
Yd=function(a){var b=Pd();a=b?b.createScriptURL(a):a;return new Xd(a,Mba)};
Zd=function(a){this.MP=a};
g.$d=function(a){return a instanceof Zd&&a.constructor===Zd?a.MP:"type_error:SafeUrl"};
Nba=function(a){var b=a.indexOf("#");0<b&&(a=a.substring(0,b));b=a.match(/[?&]body=/gi);if(!b)return!0;if(1<b.length)return!1;a=a.match(/[?&]body=([^&]*)/)[1];if(!a)return!0;try{decodeURIComponent(a)}catch(c){return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(a)};
g.be=function(a){a instanceof Zd||(a="object"==typeof a&&a.wp?a.jm():String(a),Oba.test(a)?a=ae(a):(a=String(a).replace(/(%0A|%0D)/g,""),a=a.match(Pba)?ae(a):null));return a||Qba};
Sba=function(a){if(a instanceof Zd)return a;a="object"==typeof a&&a.wp?a.jm():String(a);a:{var b=a;if(Rba){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 ae(a)};
ae=function(a){return new Zd(a,Tba)};
ce=function(a){this.LP=a;this.wp=!0};
de=function(a){return a instanceof ce&&a.constructor===ce?a.LP:"type_error:SafeStyle"};
Vba=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(Uba).join(" "):Uba(d),b+=c+":"+d+";")}return b?new ce(b,ie):je};
Uba=function(a){if(a instanceof Zd)return'url("'+g.$d(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof Qd)a=Ud(a);else{a=String(a);var b=a.replace(Wba,"$1").replace(Wba,"$1").replace(Xba,"url");if(Yba.test(b)){if(b=!Zba.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&&$ba(a)}a=b?aca(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new vb("Value does not allow [{;}], got: %s.",[a]);return a};
$ba=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};
aca=function(a){return a.replace(Xba,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.be(d).jm();return c+f+b+f+e})};
ke=function(a){this.JP=a;this.wp=!0};
g.le=function(a){return a instanceof ke&&a.constructor===ke?a.JP:"type_error:SafeHtml"};
bca=function(a){return a instanceof ke?a:g.me(fc("object"==typeof a&&a.wp?a.jm():String(a)))};
dca=function(a){function b(e){Array.isArray(e)?e.forEach(b):(e=bca(e),d.push(g.le(e).toString()))}
var c=bca(cca),d=[];a.forEach(b);return g.me(d.join(g.le(c).toString()))};
eca=function(a){return dca(Array.prototype.slice.call(arguments))};
g.me=function(a){var b=Pd();a=b?b.createHTML(a):a;return new ke(a,fca)};
gca=function(a,b){return new ce(b,ie)};
g.ica=function(a,b){if(hca())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.le(b)};
g.ne=function(a,b){b=b instanceof Zd?b:Sba(b);a.href=g.$d(b)};
jca=function(a,b,c,d){a=a instanceof Zd?a:Sba(a);b=b||g.Pa;c=c instanceof Qd?Ud(c):c||"";return void 0!==d?b.open(g.$d(a),c,d):b.open(g.$d(a),c)};
oe=function(){a:{var a=g.Pa.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&kca.test(a))break a;a=""}return a};
lca=function(a,b){return a+Math.random()*(b-a)};
g.pe=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.qe=function(a,b){a%=b;return 0>a*b?a+b:a};
re=function(a,b,c){return a+c*(b-a)};
se=function(a,b){return 1E-6>=Math.abs(a-b)};
g.te=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
ue=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.xe=function(a,b){this.width=a;this.height=b};
g.ye=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
ze=function(a){return a.width*a.height};
g.Ae=function(a){return encodeURIComponent(String(a))};
Be=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.Ce=function(a){return a=fc(a)};
g.De=function(a){return null==a?"":String(a)};
Ee=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Fe=function(a){var b=Number(a);return 0==b&&g.ec(a)?NaN:b};
mca=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
nca=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
oca=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
pca=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};
Ie=function(a){return a?new Ge(He(a)):qca||(qca=new Ge)};
Je=function(a,b){return"string"===typeof b?a.getElementById(b):b};
g.Ke=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.Me=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.Le(document,"*",a,b)};
g.Ne=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.Le(c,"*",a,b)[0]||null}return a||null};
g.Le=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,"function"==typeof b.split&&g.Fb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
Oe=function(a,b){g.Wc(b,function(c,d){c&&"object"==typeof c&&c.wp&&(c=c.jm());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:rca.hasOwnProperty(d)?a.setAttribute(rca[d],c):cc(d,"aria-")||cc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
sca=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.xe(a.clientWidth,a.clientHeight)};
uca=function(a){var b=tca(a);a=a.parentWindow||a.defaultView;return g.Pe&&a.pageYOffset!=b.scrollTop?new g.te(b.scrollLeft,b.scrollTop):new g.te(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
tca=function(a){return a.scrollingElement?a.scrollingElement:g.Qc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Ze=function(a){return a?a.parentWindow||a.defaultView:window};
af=function(a,b,c){var d=arguments,e=document,f=d[1],h=$e(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):Oe(h,f));2<d.length&&vca(e,h,d,2);return h};
vca=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.$b(h?g.Lb(f):f,e)}}};
g.bf=function(a){return $e(document,a)};
$e=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.cf=function(a){return document.createTextNode(String(a))};
g.df=function(a,b){a.appendChild(b)};
g.ef=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.ff=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.pf=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
g.qf=function(a){var b;if(wca&&(b=a.parentElement))return b;b=a.parentNode;return g.Xa(b)&&1==b.nodeType?b:null};
g.rf=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};
He=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.sf=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.ef(a),a.appendChild(He(a).createTextNode(String(b)))};
tf=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")||xca(a)):a.hasAttribute("tabindex")&&xca(a))&&g.Pe){var c;"function"!==typeof a.getBoundingClientRect||g.Pe&&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};
xca=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
vf=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return uf(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Fb(e.className.split(/\s+/),c))},!0)};
uf=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
Ge=function(a){this.j=a||g.Pa.document||document};
Ff=function(a){"function"!==typeof g.Pa.setImmediate||g.Pa.Window&&g.Pa.Window.prototype&&!xc()&&g.Pa.Window.prototype.setImmediate==g.Pa.setImmediate?(wf||(wf=yca()),wf(a)):g.Pa.setImmediate(a)};
yca=function(){var a=g.Pa.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!tc("Presto")&&(a=function(){var e=g.bf("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.bb)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()},
this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}});
if("undefined"!==typeof a&&!wc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.jU;c.jU=null;e()}};
return function(e){d.next={jU:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.Pa.setTimeout(e,0)}};
Gf=function(a){g.Pa.setTimeout(function(){throw a;},0)};
Hf=function(){this.u=this.j=null};
If=function(){this.next=this.scope=this.fn=null};
g.Lf=function(a,b){Jf||zca();Kf||(Jf(),Kf=!0);Aca.add(a,b)};
zca=function(){if(g.Pa.Promise&&g.Pa.Promise.resolve){var a=g.Pa.Promise.resolve(void 0);Jf=function(){a.then(Bca)}}else Jf=function(){Ff(Bca)}};
Bca=function(){for(var a;a=Aca.remove();){try{a.fn.call(a.scope)}catch(b){Gf(b)}Aba(Cca,a)}Kf=!1};
g.Nf=function(a){this.j=0;this.K=void 0;this.C=this.u=this.B=null;this.D=this.J=!1;if(a!=g.Ld)try{var b=this;a.call(void 0,function(c){Mf(b,2,c)},function(c){Mf(b,3,c)})}catch(c){Mf(this,3,c)}};
Dca=function(){this.next=this.context=this.u=this.B=this.j=null;this.C=!1};
Of=function(a,b,c){var d=Eca.get();d.B=a;d.u=b;d.context=c;return d};
Pf=function(a){if(a instanceof g.Nf)return a;var b=new g.Nf(g.Ld);Mf(b,2,a);return b};
Qf=function(a){return new g.Nf(function(b,c){c(a)})};
g.Gca=function(a,b,c){Fca(a,b,c,null)||g.Lf(g.db(b,a))};
Hca=function(a){return new g.Nf(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.Gca(e,b,c)})};
Jca=function(){var a,b,c=new g.Nf(function(d,e){a=d;b=e});
return new Ica(c,a,b)};
Sf=function(a,b){b=Of(b,b);b.C=!0;Rf(a,b);return a};
Kca=function(a,b){if(0==a.j)if(a.B){var c=a.B;if(c.u){for(var d=0,e=null,f=null,h=c.u;h&&(h.C||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.j&&1==d?Kca(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):Lca(c),Mca(c,e,3,b)))}a.B=null}else Mf(a,3,b)};
Rf=function(a,b){a.u||2!=a.j&&3!=a.j||Nca(a);a.C?a.C.next=b:a.u=b;a.C=b};
Oca=function(a,b,c,d){var e=Of(null,null,null);e.j=new g.Nf(function(f,h){e.B=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.u=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof $f?h(l):f(m)}catch(n){h(n)}}:h});
e.j.B=a;Rf(a,e);return e.j};
Mf=function(a,b,c){0==a.j&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,Fca(c,a.Z$,a.aaa,a)||(a.K=c,a.j=b,a.B=null,Nca(a),3!=b||c instanceof $f||Pca(a,c)))};
Fca=function(a,b,c,d){if(a instanceof g.Nf)return Rf(a,Of(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 Qca(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
Qca=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)}};
Nca=function(a){a.J||(a.J=!0,g.Lf(a.z4,a))};
Lca=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.C=null);return b};
Mca=function(a,b,c,d){if(3==c&&b.u&&!b.C)for(;a&&a.D;a=a.B)a.D=!1;if(b.j)b.j.B=null,Rca(b,c,d);else try{b.C?b.B.call(b.context):Rca(b,c,d)}catch(e){Sca.call(null,e)}Aba(Eca,b)};
Rca=function(a,b,c){2==b?a.B.call(a.context,c):a.u&&a.u.call(a.context,c)};
Pca=function(a,b){a.D=!0;g.Lf(function(){a.D&&Sca.call(null,b)})};
$f=function(a){ub.call(this,a)};
Ica=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};
g.ag=function(a,b){g.Hd.call(this);this.Ti=a||1;this.dF=b||g.Pa;this.dU=(0,g.bb)(this.M$,this);this.JW=g.eb()};
g.bg=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.bb)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.bb)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.Pa.setTimeout(a,b||0)};
cg=function(a,b){var c=null;return(new g.Nf(function(d,e){c=g.bg(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).Ek(function(d){g.Pa.clearTimeout(c);
throw d;})};
g.dg=function(a){g.G.call(this);this.K=a;this.u=new Map;this.J=new Set;this.B=0;this.C=100;this.flushInterval=3E4;this.j=new g.ag(this.flushInterval);this.j.Ta("tick",this.Hx,!1,this);g.H(this,this.j);this.D=!1};
Tca=function(a){a.j.enabled||a.j.start();a.B++;a.B>=a.C&&a.Hx()};
Uca=function(a,b){return a.J.has(b)?void 0:a.u.get(b)};
Vca=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
Wca=function(a){this.j=a;this.j.uy("/client_streamz/po/w/rl",{Zd:3,Yd:"mn"},{Zd:2,Yd:"ac"},{Zd:2,Yd:"sc"},{Zd:3,Yd:"rk"})};
Xca=function(a){this.j=a;this.j.uy("/client_streamz/po/w/el",{Zd:3,Yd:"en"},{Zd:3,Yd:"rk"})};
Yca=function(a){this.j=a;this.j.Sj("/client_streamz/po/w/cec",{Zd:2,Yd:"ec"},{Zd:3,Yd:"rk"})};
Zca=function(a){this.j=a;this.j.Sj("/client_streamz/po/w/csc",{Zd:2,Yd:"cs"},{Zd:3,Yd:"rk"})};
$ca=function(a){this.j=a;this.j.uy("/client_streamz/po/w/cl",{Zd:3,Yd:"op"},{Zd:3,Yd:"es"},{Zd:3,Yd:"rk"})};
ada=function(a){this.j=a;this.j.uy("/client_streamz/po/w/clt",{Zd:3,Yd:"es"},{Zd:3,Yd:"rk"})};
bda=function(a){this.j=a;this.j.Sj("/client_streamz/po/w/ca",{Zd:3,Yd:"av"},{Zd:3,Yd:"rk"})};
cda=function(a){this.j=a;this.j.Sj("/client_streamz/po/w/cta",{Zd:3,Yd:"av"},{Zd:3,Yd:"es"},{Zd:3,Yd:"rk"})};
dda=function(a){this.j=a;this.j.Sj("/client_streamz/po/w/cen",{Zd:3,Yd:"rk"})};
eda=function(a){this.j=a;this.j.Sj("/client_streamz/po/w/ctot",{Zd:3,Yd:"ty"},{Zd:3,Yd:"rk"})};
eg=function(){throw Error("Invalid UTF8");};
fda=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
ida=function(a){var b=!1;b=void 0===b?!1:b;if(gda){if(b&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a))throw Error("Found an unpaired surrogate");a=(hda||(hda=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};
jda=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
kda=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.fg=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.gg=function(a,b){void 0===b&&(b=0);lda();b=mda[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.hg=function(a,b){if(nda&&!b)a=g.Pa.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.gg(c,b)}return a};
pda=function(a){var b=[];oda(a,function(c){b.push(c)});
return b};
ig=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.ic("=.",a[b-1])&&(c=g.ic("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;oda(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
oda=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=jg[n];if(null!=p)return p;if(!g.ec(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
lda();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))}};
lda=function(){if(!jg){jg={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));mda[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===jg[f]&&(jg[f]=e)}}}};
rda=function(a){if(!qda)return g.gg(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)};
tda=function(a){return sda[a]||""};
vda=function(a){if(!qda)return ig(a);uda.test(a)&&(a=a.replace(uda,tda));a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
kg=function(a){return wda&&null!=a&&a instanceof Uint8Array};
lg=function(){return xda||(xda=new Uint8Array(0))};
yda=function(a){if(a!==vg)throw Error("illegal external caller");};
wg=function(a,b){yda(b);this.Vd=a;if(null!=a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
xg=function(){return zda||(zda=new wg(null,vg))};
Ada=function(a){var b=a.Vd;return null==b?"":"string"===typeof b?b:a.Vd=rda(b)};
zg=function(a){return(a=yg(a))?new Uint8Array(a):lg()};
yg=function(a){yda(vg);var b=a.Vd;b=null==b||kg(b)?b:"string"===typeof b?vda(b):null;return null==b?b:a.Vd=b};
Bda=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
Ag=function(){return Error("Failed to read varint, encoding is invalid.")};
Cda=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
Dda=function(a){return 0==a.length?xg():new wg(a,vg)};
Bg=function(a){if("string"===typeof a)return{buffer:vda(a),Dt:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Dt:!1};if(a.constructor===Uint8Array)return{buffer:a,Dt:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Dt:!1};if(a.constructor===wg)return{buffer:yg(a)||lg(),Dt:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Dt:!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");
};
Fda=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.u(Eda(c,a)),b=c.next().value,a=c.next().value,c=b);Cg=c>>>0;Dg=a>>>0};
Hda=function(a){if(16>a.length)Fda(Number(a));else if(Gda)a=BigInt(a),Cg=Number(a&BigInt(4294967295))>>>0,Dg=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);Dg=Cg=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)),Dg*=1E6,Cg=1E6*Cg+d,4294967296<=Cg&&(Dg+=Cg/4294967296|0,Cg%=4294967296);b&&(b=g.u(Eda(Cg,Dg)),a=b.next().value,b=b.next().value,Cg=a,Dg=b)}};
Eda=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
Eg=function(a,b){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.init(a,void 0,void 0,b)};
Gg=function(a){var b=0,c=0,d=0,e=a.u,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;Fg(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 Ag();};
Fg=function(a,b){a.j=b;if(b>a.B)throw Cda(a.B,b);};
Hg=function(a){var b=a.u,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 Ag();Fg(a,c);return e};
Ig=function(a){var b=a.u,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};
Jg=function(a){var b=Ig(a),c=Ig(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)};
Kg=function(a){for(var b=0,c=a.j,d=c+10,e=a.u;c<d;){var f=e[c++];b|=f;if(0===(f&128))return Fg(a,c),!!(b&127)}throw Ag();};
Ida=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.B)throw Cda(b,a.B-c);a.j=d;return c};
Kda=function(a,b){if(0==b)return xg();var c=Ida(a,b);a.VF&&a.D?c=a.u.subarray(c,c+b):(a=a.u,b=c+b,c=c===b?lg():Jda?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return Dda(c)};
Mg=function(a,b){if(Lg.length){var c=Lg.pop();c.init(a,void 0,void 0,b);a=c}else a=new Eg(a,b);this.j=a;this.B=this.j.j;this.u=this.C=-1;Lda(this,b)};
Lda=function(a,b){b=void 0===b?{}:b;a.oM=void 0===b.oM?!1:b.oM};
Mda=function(a){var b=a.j;if(b.j==b.B)return!1;a.B=a.j.j;var c=Hg(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw Bda(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.C=b;a.u=c;return!0};
Tg=function(a){switch(a.u){case 0:0!=a.u?Tg(a):Kg(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.u)Tg(a);else{var b=Hg(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.C;do{if(!Mda(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.u){if(a.C!=b)throw Error("Unmatched end-group tag");break}Tg(a)}while(1);break;default:throw Bda(a.u,a.B);}};
Ug=function(a,b,c){var d=a.j.B,e=Hg(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.B=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.B=d};
Xg=function(a){var b=Hg(a.j)>>>0;a=a.j;var c=Ida(a,b);a=a.u;if(Nda){var d=a,e;(e=Vg)||(e=Vg=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===Wg){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Wg=!0}catch(p){Wg=!1}}!Wg&&(Vg=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?eg():(m=a[f++],194>l||128!==(m&192)?(f--,eg()):c.push((l&31)<<6|m&63)):
240>l?f>=b-1?eg():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((d=a[f++])&192)?(f--,eg()):c.push((l&15)<<12|(m&63)<<6|d&63)):244>=l?f>=b-2?eg():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((d=a[f++])&192)||128!==((e=a[f++])&192)?(f--,eg()):(l=(l&7)<<18|(m&63)<<12|(d&63)<<6|e&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):eg(),8192<=c.length&&(h=fda(h,c),c.length=0);f=fda(h,c)}return f};
Oda=function(a){var b=Hg(a.j)>>>0;return Kda(a.j,b)};
Pda=function(a,b){this.u=a>>>0;this.j=b>>>0};
Rda=function(a){if(!a)return Qda||(Qda=new Pda(0,0));if(!/^\d+$/.test(a))return null;Hda(a);return new Pda(Cg,Dg)};
Sda=function(a,b){this.u=a>>>0;this.j=b>>>0};
Uda=function(a){if(!a)return Tda||(Tda=new Sda(0,0));if(!/^-?\d+$/.test(a))return null;Hda(a);return new Sda(Cg,Dg)};
Yg=function(){this.j=[]};
Vda=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)};
Zg=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
Wda=function(a,b){if(0<=b)Zg(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
$g=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)};
Xda=function(){this.B=[];this.u=0;this.j=new Yg};
ah=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)};
bh=function(a,b,c){Zg(a.j,8*b+c)};
Yda=function(a,b,c){null!=c&&("string"===typeof c&&Rda(c),bh(a,b,1),"number"===typeof c?(a=a.j,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,Cg=b,Dg=c,$g(a,Cg),$g(a,Dg)):(c=Rda(c),a=a.j,b=c.j,$g(a,c.u),$g(a,b)))};
ch=function(a,b,c){bh(a,b,2);Zg(a.j,c.length);ah(a,a.j.end());ah(a,c)};
Zda=function(a,b){this.j=a;this.u=b};
dh=function(a){return Array.prototype.slice.call(a)};
gh=function(a){var b=eh(a);1!==(b&1)&&(Object.isFrozen(a)&&(a=dh(a)),fh(a,b|1));return a};
$da=function(a,b){Object.isFrozen(a)&&(a=dh(a));fh(a,b);return a};
ih=function(a){hh(a,1);return a};
aea=function(a,b){fh(b,(a|0)&-99)};
jh=function(a,b){fh(b,(a|34)&-73)};
kh=function(a){a=a>>11&1023;return 0===a?536870912:a};
wh=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
xh=function(a,b,c){if(null!=a)if("string"===typeof a)a=a?new wg(a,vg):xg();else if(a.constructor!==wg)if(kg(a))a=c?Dda(a):a.length?new wg(new Uint8Array(a),vg):xg();else{if(!b)throw Error();a=void 0}return a};
yh=function(a){if(a&2)throw Error();};
bea=function(a,b){if("number"!==typeof b||0>b||b>=a.length)throw Error();};
cea=function(a,b){(b=zh?b[zh]:void 0)&&(a[zh]=dh(b))};
Ah=function(a){if(null!=a&&"number"!==typeof a)throw Error("Value of float/double field must be a number|null|undefined, found "+typeof a+": "+a);return a};
dea=function(a){if(null==a)return a;if("number"===typeof a||"NaN"===a||"Infinity"===a||"-Infinity"===a)return Number(a)};
eea=function(a){return a.displayName||a.name||"unknown type name"};
fea=function(a){if("boolean"!==typeof a)throw Error("Expected boolean but got "+Va(a)+": "+a);return!!a};
gea=function(a){if(null==a)return a;if("boolean"===typeof a||"number"===typeof a)return!!a};
Bh=function(a){return null==a?a:a};
hea=function(a){if("number"!==typeof a)throw Error();return a};
Ch=function(a){return null==a?a:hea(a)};
Dh=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}return"number"===typeof a?a:void 0};
iea=function(a){return a};
jea=function(a){if(null==a||"string"===typeof a||kg(a)||a instanceof wg)return a};
Eh=function(a){if("string"!==typeof a)throw Error();return a};
Fh=function(a){if(null!=a&&"string"!==typeof a)throw Error();return a};
Gh=function(a){return null==a||"string"===typeof a?a:void 0};
Hh=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+eea(b)+" but got "+(a&&eea(a.constructor)));return a};
kea=function(a,b,c){var d=!1;if(null!=a&&"object"===typeof a&&!(d=Array.isArray(a))&&a.XH===Ih)return a;if(d){var e=d=eh(a);0===e&&(e|=c&32);e|=c&2;e!==d&&fh(a,e);return new b(a)}};
Kh=function(a,b){Jh=b;a=new a(b);Jh=void 0;return a};
lea=function(a){switch(typeof a){case "number":return 0<a?void 0:[-a,void 0];case "string":return[0,a];case "object":return a}};
J=function(a,b,c){null==a&&(a=Jh);Jh=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=eh(a);if(d&64)return 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(wh(h)){d|=256;b=(d>>9&1)-1;e=f-b;1024<=e&&(mea(c,b,h),e=1023);d=d&-2095105|(e&1023)<<11;break a}}b&&(h=(d>>9&1)-1,b=Math.max(b,e-h),1024<b&&(mea(c,h,{}),d|=256,b=1023),d=d&-2095105|(b&1023)<<11)}}fh(a,d);return a};
mea=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};
oea=function(a,b){return nea(b)};
nea=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(kg(a))return rda(a);if(a instanceof wg)return Ada(a)}}return a};
pea=function(a,b,c){var d=dh(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])}cea(d,a);return d};
qea=function(a,b,c,d,e,f){if(null!=a){if(Array.isArray(a))a=e&&0==a.length&&eh(a)&1?void 0:f&&eh(a)&2?a:Lh(a,b,c,void 0!==d,e,f);else if(wh(a)){var h={},l;for(l in a)h[l]=qea(a[l],b,c,d,e,f);a=h}else a=b(a,d);return a}};
Lh=function(a,b,c,d,e,f){var h=d||c?eh(a):0;d=d?!!(h&32):void 0;for(var l=dh(a),m=0;m<l.length;m++)l[m]=qea(l[m],b,c,d,e,f);c&&(c(h,l),cea(l,a));return l};
rea=function(a){return a.XH===Ih?a.toJSON():nea(a)};
sea=function(a,b,c){c=void 0===c?jh:c;if(null!=a){if(wda&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=eh(a);if(d&2)return a;if(b&&!(d&64)&&(d&32||0===d))return fh(a,d|34),a;a=Lh(a,sea,d&4?jh:c,!0,!1,!0);b=eh(a);b&4&&b&2&&Object.freeze(a);return a}a.XH===Ih&&(b=a.ma,c=Mh(b),a=c&2?a:Kh(a.constructor,Nh(b,c,!0)));return a}};
Nh=function(a,b,c){var d=c||b&2?jh:aea,e=!!(b&32);a=pea(a,b,function(f){return sea(f,e,d)});
hh(a,32|(c?2:0));return a};
Oh=function(a){var b=a.ma,c=Mh(b);return c&2?Kh(a.constructor,Nh(b,c,!1)):a};
$h=function(a,b){a=a.ma;return Zh(a,Mh(a),b)};
Zh=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>>9&1)-1);if(b<e)return a[b]}};
N=function(a,b,c,d){var e=a.ma,f=Mh(e);yh(f);ai(e,f,b,c,d);return a};
ai=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>>9&1)-1;f>=a.length&&Number.isInteger(f);f=a[f]={};e|=256}f[c]=d;e&=-1025;e!==b&&fh(a,e)}else a[c+((b>>9&1)-1)]=d,b&256&&(d=a[a.length-1],c in d&&delete d[c]),b&1024&&fh(a,b&-1025)};
bi=function(a,b,c){return void 0!==tea(a,b,c,!1)};
di=function(a,b,c,d,e){var f=b&2,h=Zh(a,b,c,e);Array.isArray(h)||(h=ci);var l=eh(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&&uea(h,32):(h=ih(dh(h)),ai(a,b,c,h,e))}return h};
ei=function(a,b,c,d,e){a=a.ma;var f=Mh(a),h=f&2,l=di(a,f,b,e||1,d),m=eh(l);if(!(m&4)){Object.isFrozen(l)&&(l=ih(dh(l)),ai(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);fh(l,m);m&2&&Object.freeze(l)}if(2===e)return l;!h&&(m&2||Object.isFrozen(l))&&(l=dh(l),hh(l,5),ai(a,f,b,l,d));return l};
vea=function(a){return xh(a,!0,!0)};
wea=function(a){return xh(a,!0,!1)};
fi=function(a,b){a=a.ma;var c=Mh(a),d=Zh(a,c,b),e=xh(d,!0,!!(c&34));null!=e&&e!==d&&ai(a,c,b,e);return null==e?xg():e};
xea=function(a,b,c){var d=a.ma,e=Mh(d);yh(e);if(null==b)return ai(d,e,3),a;var f=eh(b);if(!(f&4)){if(f&2||Object.isFrozen(b))b=dh(b);for(var h=0;h<b.length;h++)b[h]=c(b[h]);fh(b,f|5)}ai(d,e,3,b);return a};
gi=function(a,b,c,d){var e=a.ma,f=Mh(e);yh(f);ai(e,f,b,c!==d?c:void 0);return a};
ii=function(a,b,c,d){hi(a.ma,b,c,d);return a};
hi=function(a,b,c,d){var e=Mh(a);yh(e);b=di(a,e,b,2);void 0!=d?b.splice(d,0,c):b.push(c);e&1024&&fh(a,e&-1025)};
yea=function(a,b,c,d,e){var f=a.ma,h=Mh(f);yh(h);b=e(a,b,!1,2);if("number"!==typeof c||0>c||c>b.length)throw Error();b[c]=d;h&1024&&fh(f,h&-1025);return a};
ki=function(a,b,c,d){var e=a.ma,f=Mh(e);yh(f);(c=ji(e,f,c))&&c!==b&&null!=d&&ai(e,f,c);ai(e,f,b,d);return a};
li=function(a,b,c,d){var e=Mh(a);yh(e);(c=ji(a,e,c))&&c!==b&&ai(a,e,c);ai(a,e,b,d)};
mi=function(a,b,c){a=a.ma;return ji(a,Mh(a),b)===c?c:-1};
ji=function(a,b,c){for(var d=0,e=0;e<c.length;e++){var f=c[e];null!=Zh(a,b,f)&&(0!==d&&ai(a,b,d),d=f)}return d};
zea=function(a,b,c){var d=Mh(a);yh(d);var e=Zh(a,d,c),f;if(null!=e&&e.XH===Ih)return b=Oh(e),b!==e&&ai(a,d,c,b),b.ma;if(Array.isArray(e)){var h=eh(e);h&2?f=Nh(e,h,!1):f=e;f=J(f,b[0],b[1])}else f=J(void 0,b[0],b[1]);f!==e&&ai(a,d,c,f);return f};
tea=function(a,b,c,d){a=a.ma;var e=Mh(a),f=Zh(a,e,c,d);b=kea(f,b,e);b!==f&&null!=b&&ai(a,e,c,b,d);return b};
g.ni=function(a,b,c,d){d=void 0===d?!1:d;b=tea(a,b,c,d);if(null==b)return b;a=a.ma;var e=Mh(a);if(!(e&2)){var f=Oh(b);f!==b&&(b=f,ai(a,e,c,b,d))}return b};
Aea=function(a,b,c,d,e){var f=!!(b&2),h=di(a,b,d,1);if(h===ci||!(eh(h)&4)){var l=h;h=!!(b&2);var m=!!(eh(l)&2);f=l;!h&&m&&(l=dh(l));var n=b|(m?2:0);m=m||void 0;for(var p=0,q=0;p<l.length;p++){var t=kea(l[p],c,n);void 0!==t&&(m=m||Mh(t.ma)&2,l[q++]=t)}q<p&&(l.length=q);c=l;l=eh(c);n=l|5;m=m?n&-9:n|8;l!=m&&(c=$da(c,m));l=c;f!==l&&ai(a,b,d,l);(h&&2!==e||1===e)&&Object.freeze(l);return l}if(3===e)return h;f?2===e&&(e=eh(h),h=dh(h),fh(h,e),ai(a,b,d,h)):(f=Object.isFrozen(h),1===e?f||Object.freeze(h):(e=
eh(h),c=e&-35,f&&(h=dh(h),e=0,ai(a,b,d,h)),e!==c&&fh(h,c)));return h};
Bea=function(a,b){var c=a.ma,d=Mh(c);a=!!(d&2);b=Aea(c,d,b,3,a?1:2);if(!(a||eh(b)&8)){for(a=0;a<b.length;a++)c=b[a],d=Oh(c),c!==d&&(b[a]=d);hh(b,8)}return b};
oi=function(a,b,c,d){null!=d?Hh(d,b):d=void 0;return N(a,c,d)};
pi=function(a,b,c,d,e){null!=e?Hh(e,b):e=void 0;return ki(a,c,d,e)};
qi=function(a,b,c){return N(a,b,Ah(c))};
ri=function(a,b,c,d){var e=a.ma,f=Mh(e);yh(f);if(null!=d){for(var h=!!d.length,l=0;l<d.length;l++){var m=d[l];Hh(m,b);h=h&&!(eh(m.ma)&2)}b=eh(d);l=b|1;l=(h?l|8:l&-9)|4;l!=b&&(d=$da(d,l))}null==d&&(d=void 0);ai(e,f,c,d);return a};
si=function(a,b,c){N(a,b,xh(c,!1,!1))};
ui=function(a,b,c,d,e){var f=a.ma,h=Mh(f);yh(h);b=Aea(f,h,c,b,2);c=null!=d?Hh(d,c):new c;void 0!=e?b.splice(e,void 0,c):b.push(c);c.Dt()&&uea(b,8);h&1024&&fh(f,h&-1025);return a};
vi=function(a,b,c){return N(a,b,null==c?c:fea(c))};
wi=function(a,b,c){return N(a,b,Ch(c))};
xi=function(a,b,c){if(null!=c&&"number"!==typeof c)throw Error();N(a,b,c)};
yi=function(a,b){return Gh($h(a,b))};
Cea=function(a,b,c,d){return ei(a,b,Gh,c,d)};
O=function(a,b,c){return N(a,b,Fh(c))};
zi=function(a,b,c){return gi(a,b,Fh(c),"")};
Dea=function(a,b,c,d){return ei(a,b,Bh,c,d)};
Eea=function(){var a=new Ai;return N(a,1,1)};
Bi=function(a,b){return null!=a?a:b};
Ci=function(a,b,c){c=void 0===c?0:c;return Bi(Dh($h(a,b)),c)};
Di=function(a,b){var c=void 0===c?0:c;return Bi(Dh($h(a,b)),c)};
Fea=function(a,b){var c=void 0===c?0:c;a=a.ma;var d=Mh(a),e=Zh(a,d,b),f=dea(e);null!=f&&f!==e&&ai(a,d,b,f);return Bi(f,c)};
g.Ei=function(a,b){return Bi(yi(a,b),"")};
Fi=function(a,b){var c=0;c=void 0===c?0:c;return Bi(Bh($h(a,b)),c)};
Gea=function(a,b,c){a=Dea(a,b,void 0,2);bea(a,c);return a[c]};
P=function(a,b,c){this.ma=J(a,b,c)};
Gi=function(a,b,c){var d=a.constructor.Ab,e=kh(Mh(c?a.ma:b)),f=!1;if(d){if(!c){b=dh(b);var h;if(b.length&&wh(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=Mh(a.ma);a=kh(h);h=(h>>9&1)-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?ci:ih([]):c&&p!==ci&&gh(p)}else l||(p=void 0,e.length&&wh(p=e[e.length-1])?l=p:e.push(l={})),p=l[m],null==l[m]?l[m]=c?ci:ih([]):c&&p!==ci&&gh(p)}d=b.length;if(!d)return b;var q;
if(wh(l=b[d-1])){a:{var t=l;e={};c=!1;for(var v in t)a=t[v],Array.isArray(a)&&a!=a&&(c=!0),null!=a?e[v]=a:c=!0;if(c){for(var y in e){t=e;break a}t=null}}t!=l&&(q=!0);d--}for(;0<d;d--){l=b[d-1];if(null!=l)break;var A=!0}if(!q&&!A)return b;var E;f?E=b:E=Array.prototype.slice.call(b,0,d);b=E;f&&(b.length=d);t&&b.push(t);return b};
Hi=function(a,b,c){if(Array.isArray(b)){var d=eh(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&&fh(b,d|5);return b}};
Ji=function(a){var b=a[Hea];if(!b){var c=Ii(a),d=c.u;b=d?function(e,f){return d(e,f,c)}:function(e,f){for(;Mda(f)&&4!=f.u;){var h=f.C,l=c[h];
if(!l){var m=c.extensions;m&&(m=m[h])&&(l=c[h]=Iea(m))}l&&l(f,e,h)||(l=f,h=l.B,Tg(l),l.oM?l=void 0:(m=l.j.j-h,l.j.j=h,l=Kda(l.j,m)),h=e,l&&(zh||(zh=Symbol()),(m=h[zh])?m.push(l):h[zh]=[l]))}};
a[Hea]=b}return b};
Jea=function(a){if(a=a.bU)return Ji(a)};
Iea=function(a){var b=Jea(a),c=a.M9.j;if(b){var d=Ii(a.bU).j;return function(e,f,h){return c(e,f,h,d,b)}}return function(e,f,h){return c(e,f,h)}};
Kea=function(a,b){var c=a[b];"function"==typeof c&&0===c.length&&(c=c(),a[b]=c);(a=Array.isArray(c))&&!(a=Ki in c||Li in c)&&(a=0<c.length)&&(a=c[0],b=lea(a),null!=b&&b!==a&&(c[0]=b),a=null!=b);return a?c:void 0};
Lea=function(a,b,c,d){b.j=lea(a[0]);var e=1;if(a.length>e&&"number"!==typeof a[e]){var f=a[e++];if(Array.isArray(f))return b.u=f[0],b.extensions=f[1],b;b.extensions=f}for(f=0;e<a.length;){f+=a[e++];for(var h=e+1;h<a.length&&"number"!==typeof a[h];)h++;var l=a[e++];h-=e;switch(h){case 0:b[f]=c(l);break;case 1:(h=Kea(a,e))?(e++,b[f]=d(l,h)):b[f]=c(l,a[e++]);break;case 2:h=f;var m=e++;m=Kea(a,m);b[h]=d(l,m,a[e++]);break;default:throw Error("unexpected number of binary field arguments: "+h);}}return b};
Oea=function(a){var b=a[Mea];if(!b){var c=Mi(a);b=function(d,e){return Nea(d,e,c)};
a[Mea]=b}return b};
Pea=function(a){return a.u};
Qea=function(a,b){var c=Oea(b),d=Mi(b).j,e=a.u;return function(f,h,l){return e(f,h,l,d,c)}};
Mi=function(a){var b=a[Li];if(b)return b;b=Lea(a,a[Li]={},Pea,Qea);Ki in a&&Li in a&&(a.length=0);return b};
Rea=function(a,b){var c=a.j;return b?function(d,e,f){return c(d,e,f,b)}:c};
Sea=function(a,b,c){var d=a.j,e=Ji(b),f=Ii(b).j;return function(h,l,m){return d(h,l,m,f,e,c)}};
Ii=function(a){var b=a[Ki];if(b)return b;b=Lea(a,a[Ki]={},Rea,Sea);Ki in a&&Li in a&&(a.length=0);return b};
Tea=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){var d=c.bU,e=c.M9.u;if(d){var f=Oea(d),h=Mi(d).j;c=function(l,m,n){return e(l,m,n,h,f)}}else c=e;
return a[b]=c}};
Nea=function(a,b,c){for(var d=Mh(a),e=(d>>9&1)-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=Tea(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=Tea(c,e))&&h(b,f,e))}if(a=zh?a[zh]:void 0)for(ah(b,b.j.end()),c=0;c<a.length;c++)ah(b,yg(a[c])||lg())};
Ni=function(a,b){return new Zda(a,b)};
Oi=function(a,b,c){ai(a,Mh(a),b,c)};
Pi=function(a,b,c){b=dea(b);if(null!=b){bh(a,c,1);a=a.j;var d=+b;if(0===d)Dg=0<1/d?0:2147483648,Cg=0;else if(isNaN(d))Dg=2147483647,Cg=4294967295;else if(d=(c=0>d?-2147483648:0)?-d:d,1.7976931348623157E308<d)Dg=(c|2146435072)>>>0,Cg=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),Dg=(c|b/4294967296)>>>0,Cg=b>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022<b;)e*=2,b--;d*=Math.pow(2,-b);Dg=(c|b+1023<<20|1048576*d&1048575)>>>0;Cg=4503599627370496*d>>>0}$g(a,Cg);
$g(a,Dg)}};
Qi=function(a,b,c){null!=b&&("string"===typeof b&&Uda(b),null!=b&&(bh(a,c,0),"number"===typeof b?(a=a.j,Fda(b),Vda(a,Cg,Dg)):(b=Uda(b),Vda(a.j,b.u,b.j))))};
Ri=function(a,b,c){b=Dh(b);null!=b&&null!=b&&(bh(a,c,0),Wda(a.j,b))};
Uea=function(a,b,c){b=gea(b);null!=b&&(bh(a,c,0),a.j.j.push(b?1:0))};
Vea=function(a,b,c){b=Gh(b);null!=b&&ch(a,c,ida(b))};
Si=function(a,b,c,d,e){b=b instanceof P?b.ma:Array.isArray(b)?J(b,d[0],d[1]):void 0;if(null!=b){bh(a,c,2);c=a.j.end();ah(a,c);c.push(a.u);e(b,a);e=c.pop();for(e=a.u+a.j.length()-e;127<e;)c.push(e&127|128),e>>>=7,a.u++;c.push(e);a.u++}};
Wea=function(a){return function(){var b=new Xda;Nea(this.ma,b,Mi(a));ah(b,b.j.end());for(var c=new Uint8Array(b.u),d=b.B,e=d.length,f=0,h=0;h<e;h++){var l=d[h];c.set(l,f);f+=l.length}b.B=[c];return c}};
Ti=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=Kh(a,b)}return b}};
lj=function(a){this.ma=J(a)};
mj=function(a){this.ma=J(a)};
nj=function(a){this.ma=J(a)};
oj=function(a){this.ma=J(a)};
pj=function(a){this.ma=J(a)};
qj=function(a){this.ma=J(a)};
g.Xea=function(a){var b=new pj;b=O(b,1,a.u);for(var c=[],d=0;d<a.j.length;d++)c.push(a.j[d].Yd);b=xea(b,c,Eh);c=[];d=[];for(var e=g.u(a.Dy.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.C;for(var l=a.JM(f)||[],m=[],n=0;n<l.length;n++){var p=l[n];p=p&&p.mU;var q=new nj;switch(h){case 3:ki(q,1,rj,Number(p));break;case 2:ki(q,2,rj,Ah(Number(p)))}m.push(q)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new oj;m=oi(n,nj,2,m);n=f;p=[];q=a;for(var t=[],v=0;v<
q.j.length;v++)t.push(q.j[v].Zd);q=t;for(t=0;t<q.length;t++){var y=q[t],A=n[t];v=new mj;switch(y){case 3:ki(v,1,sj,Fh(String(A)));break;case 2:ki(v,2,sj,Ch(Number(A)));break;case 1:y=v,A="true"==A,A=null==A?A:fea(A),ki(y,3,sj,A)}p.push(v)}ri(m,mj,1,p);c.push(m)}}ri(b,oj,4,c);return b};
Yea=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};
Zea=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(q){for(var t=h,v=0;64>v;v+=4)t[v/4]=q[v]<<24|q[v+1]<<16|q[v+2]<<8|q[v+3];for(v=16;80>v;v++)q=t[v-3]^t[v-8]^t[v-14]^t[v-16],t[v]=(q<<1|q>>>31)&4294967295;q=e[0];var y=e[1],A=e[2],E=e[3],K=e[4];for(v=0;80>v;v++){if(40>v)if(20>v){var I=E^y&(A^E);var F=1518500249}else I=y^A^E,F=1859775393;else 60>v?(I=y&A|E&(y|A),F=2400959708):(I=y^A^E,F=3395469782);I=((q<<5|q>>>27)&4294967295)+I+K+F+t[v]&4294967295;K=E;E=A;A=(y<<30|y>>>2)&4294967295;y=q;q=I}e[0]=e[0]+q&4294967295;e[1]=e[1]+y&4294967295;e[2]=
e[2]+A&4294967295;e[3]=e[3]+E&4294967295;e[4]=e[4]+K&4294967295}
function c(q,t){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var v=[],y=0,A=q.length;y<A;++y)v.push(q.charCodeAt(y));q=v}t||(t=q.length);v=0;if(0==n)for(;v+64<t;)b(q.slice(v,v+64)),v+=64,p+=64;for(;v<t;)if(f[n++]=q[v++],p++,64==n)for(n=0,b(f);v+64<t;)b(q.slice(v,v+64)),v+=64,p+=64}
function d(){var q=[],t=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var v=63;56<=v;v--)f[v]=t&255,t>>>=8;b(f);for(v=t=0;5>v;v++)for(var y=24;0<=y;y-=8)q[t++]=e[v]>>y&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,j4:function(){for(var q=d(),t="",v=0;v<q.length;v++)t+="0123456789ABCDEF".charAt(Math.floor(q[v]/16))+"0123456789ABCDEF".charAt(q[v]%16);return t}}};
afa=function(a,b,c){var d=String(g.Pa.location.href);return d&&a&&b?[b,$ea(Yea(d),a,c||null)].join(" "):null};
$ea=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.$b(d,function(l){e.push(l)}),bfa(e.join(" "));
var f=[],h=[];g.$b(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.$b(d,function(l){e.push(l)});
a=bfa(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")};
bfa=function(a){var b=Zea();b.update(a);return b.j4().toLowerCase()};
tj=function(a){this.j=a||{cookie:""}};
uj=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=kc(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}};
vj=function(a){return!!cfa.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
wj=function(a){a=void 0===a?!1:a;var b=g.Pa.__SAPISID||g.Pa.__APISID||g.Pa.__3PSAPISID||g.Pa.__OVERRIDE_SID;vj(a)&&(b=b||g.Pa.__1PSAPISID);if(b)return!0;if("undefined"!==typeof document){var c=new tj(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID")||c.get("OSID");vj(a)&&(b=b||c.get("__Secure-1PAPISID"))}return!!b};
dfa=function(a,b,c,d){(a=g.Pa[a])||"undefined"===typeof document||(a=(new tj(document)).get(b));return a?afa(a,c,d):null};
efa=function(a,b){b=void 0===b?!1:b;var c=Yea(String(g.Pa.location.href)),d=[];if(wj(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.Pa.__SAPISID:g.Pa.__APISID;e||"undefined"===typeof document||(e=new tj(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?afa(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&vj(b)&&((b=dfa("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=dfa("__3PSAPISID","__Secure-3PAPISID",
"SAPISID3PHASH",a))&&d.push(a))}return 0==d.length?null:d.join(" ")};
xj=function(a){this.ma=J(a)};
yj=function(a){this.ma=J(a)};
zj=function(a){this.ma=J(a)};
g.Aj=function(a,b,c,d){this.C=a;this.D=b;this.j=this.B=a;this.J=c||0;this.K=d||2};
g.Bj=function(a){a.j=Math.min(a.D,a.j*a.K);a.B=Math.min(a.D,a.j+(a.J?Math.round(a.J*(Math.random()-.5)*2*a.j):0));a.u++};
g.Cj=function(a){return(new ffa).zm(a)};
ffa=function(){};
Dj=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),Dj(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),gfa(d,c),c.push(":"),Dj(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":gfa(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);}}};
gfa=function(a,b){b.push('"',a.replace(hfa,function(c){var d=ifa[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),ifa[c]=d);return d}),'"')};
jfa=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"}};
Ej=function(){};
Fj=function(){};
kfa=function(a){if(!a.u&&"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.u=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.u};
Gj=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};
Hj=function(a){return a?decodeURI(a):a};
g.Rj=function(a,b){return b.match(Ij)[a]||null};
g.Sj=function(a){return Hj(g.Rj(3,a))};
g.lfa=function(a){a=a.match(Ij);return Gj(a[1],a[2],a[3],a[4])};
mfa=function(a){a=a.match(Ij);return Gj(a[1],null,a[3],a[4])};
Tj=function(a){a=a.match(Ij);return Gj(null,null,null,null,a[5],a[6],a[7])};
nfa=function(a){var b=a.indexOf("#");return 0>b?a:a.slice(0,b)};
Uj=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?Be(e):"")}}};
Vj=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]};
Wj=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Wj(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.Ae(b)))};
ofa=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Wj(a[b],a[b+1],c);return c.join("&")};
g.Xj=function(a){var b=[],c;for(c in a)Wj(c,a[c],b);return b.join("&")};
pfa=function(a,b){var c=2==arguments.length?ofa(arguments[1],0):ofa(arguments,1);return Vj(a,c)};
g.Yj=function(a,b){b=g.Xj(b);return Vj(a,b)};
Zj=function(a,b,c){c=null!=c?"="+g.Ae(c):"";return Vj(a,b+c)};
qfa=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};
ak=function(a,b){var c=a.search(rfa),d=qfa(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 Be(a.slice(d,-1!==e?e:0))};
bk=function(a,b){for(var c=a.search(rfa),d=0,e,f=[];0<=(e=qfa(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(sfa,"$1")};
tfa=function(a,b,c){return Zj(bk(a,b),b,c)};
g.ck=function(a){g.Hd.call(this);this.headers=new Map;this.V=a||null;this.B=!1;this.Ba=this.j=null;this.oa="";this.u=0;this.C="";this.D=this.Fa=this.ea=this.Ga=!1;this.K=0;this.qa=null;this.Ma="";this.Oa=this.J=!1};
vfa=function(a,b,c,d,e,f,h){var l=new g.ck;ufa.push(l);b&&l.Ta("complete",b);l.IH("ready",l.N3);f&&(l.K=Math.max(0,f));h&&(l.J=h);l.send(a,c,d,e)};
wfa=function(a){return g.Pe&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
yfa=function(a,b){a.B=!1;a.j&&(a.D=!0,a.j.abort(),a.D=!1);a.C=b;a.u=5;xfa(a);dk(a)};
xfa=function(a){a.Ga||(a.Ga=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
zfa=function(a){if(a.B&&"undefined"!=typeof ek)if(a.Ba[1]&&4==g.fk(a)&&2==a.getStatus())a.getStatus();else if(a.ea&&4==g.fk(a))g.bg(a.WX,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.B=!1;try{if(gk(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2<g.fk(a)?a.j.statusText:""}catch(c){b=""}a.C=b+" ["+a.getStatus()+"]";xfa(a)}}finally{dk(a)}}};
dk=function(a,b){if(a.j){Afa(a);var c=a.j,d=a.Ba[0]?function(){}:null;
a.j=null;a.Ba=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Afa=function(a){a.j&&a.Oa&&(a.j.ontimeout=null);a.qa&&(g.Pa.clearTimeout(a.qa),a.qa=null)};
gk=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.Rj(1,String(a.oa)),!a&&g.Pa.self&&g.Pa.self.location&&(a=g.Pa.self.location.protocol.slice(0,-1)),b=!Bfa.test(a?a.toLowerCase():"");c=b}return c};
g.fk=function(a){return a.j?a.j.readyState:0};
g.hk=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.ik=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Ma){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.Cfa=function(a){var b={};a=(a.j&&2<=g.fk(a)?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.ec(a[c])){var d=pca(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 Yc(b,function(h){return h.join(", ")})};
g.jk=function(a,b){return a.j?a.j.getResponseHeader(b):null};
kk=function(a){this.ma=J(a)};
lk=function(a){this.ma=J(a)};
mk=function(a){this.ma=J(a)};
Ai=function(a){this.ma=J(a)};
nk=function(a){this.ma=J(a)};
ok=function(a){this.ma=J(a)};
pk=function(a){this.ma=J(a,34)};
qk=function(a){this.ma=J(a,19)};
rk=function(a){this.ma=J(a,6)};
Dfa=function(a){this.ma=J(a)};
tk=function(a){g.Hd.call(this);var b=this;this.componentId="";this.u=[];this.Ga="";this.Fa=this.qa=-1;this.Ba=!1;this.K=this.experimentIds=null;this.J=this.C=0;this.Ma=1;this.timeoutMillis=0;this.V=!1;g.Hd.call(this);this.logSource=a.logSource;this.bz=a.bz||function(){};
this.B=new Efa(a.logSource,a.Bz);this.Wz=a.Wz;this.network=a.network;this.pA=a.pA||null;this.Oa=g.db(lca,0,1);this.oa=a.jaa||null;this.sessionIndex=a.sessionIndex||null;this.cC=a.cC||!1;this.pageId=a.pageId||null;this.logger=null;this.withCredentials=!a.HU;this.Bz=a.Bz||!1;var c=Eea();sk(this.B,c);this.D=new g.Aj(1E4,3E5,.1);this.j=new g.ag(this.D.getValue());g.H(this,this.j);a=Ffa(this,a.D3);g.xd(this.j,"tick",a,!1,this);this.ea=new g.ag(6E5);g.H(this,this.ea);g.xd(this.ea,"tick",a,!1,this);this.cC||
this.ea.start();this.Bz||(g.xd(document,"visibilitychange",function(){"hidden"===document.visibilityState&&b.zM()}),g.xd(document,"pagehide",this.zM,!1,this))};
Ffa=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};
Gfa=function(a){a.oa||(a.oa=.01>a.Oa()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.oa};
Hfa=function(a,b){a.D=new g.Aj(1>b?1:b,3E5,.1);a.j.setInterval(a.D.getValue())};
Jfa=function(a){Ifa(a,function(b,c){b=Zj(b,"format","json");var d=!1;try{d=Ze().navigator.sendBeacon(b,c.zm())}catch(e){}a.V&&!d&&(a.V=!1);return d})};
Ifa=function(a,b){if(0!==a.u.length){var c=bk(Gfa(a),"format");c=pfa(c,"auth",a.bz(),"authuser",a.sessionIndex||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=a.B.Jf(e,a.C,a.J,a.pA);if(!b(c,f)){++a.J;break}a.C=0;a.J=0;a.u=a.u.slice(e.length)}a.j.enabled&&a.j.stop()}};
Kfa=function(a){g.yb.call(this,"event-logged",void 0);this.j=a};
Efa=function(a,b){this.Bz=b=void 0===b?!1:b;this.u=this.locale=null;this.j=new qk;Number.isInteger(a)&&N(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));sk(this,new Ai)};
sk=function(a,b){oi(a.j,Ai,1,b);Bh($h(b,1))||N(b,1,1);a.Bz||(b=Kk(a),yi(b,5)||O(b,5,a.locale));a.u&&(b=Kk(a),g.ni(b,lk,9)||oi(b,lk,9,a.u))};
Lfa=function(a,b){bi(g.ni(a.j,Ai,1),mk,11)&&(a=Lk(a),N(a,1,b))};
Mfa=function(a,b){bi(g.ni(a.j,Ai,1),mk,11)&&(a=Lk(a),vi(a,2,b))};
Ofa=function(a,b){var c=void 0===c?Nfa:c;b(Ze(),c).then(function(d){a.u=d;d=Kk(a);oi(d,lk,9,a.u);return!0}).catch(function(){return!1})};
Kk=function(a){a=g.ni(a.j,Ai,1);var b=g.ni(a,mk,11);b||(b=new mk,oi(a,mk,11,b));return b};
Lk=function(a){a=Kk(a);var b=g.ni(a,kk,10);b||(b=new kk,vi(b,2,!1),oi(a,kk,10,b));return b};
Pfa=function(a,b,c){vfa(a.url,function(d){d=d.target;gk(d)?b(g.hk(d)):c(d.getStatus())},a.requestType,a.body,a.Jw,a.timeoutMillis,a.withCredentials)};
Mk=function(a,b){g.G.call(this);this.logSource=a;this.sessionIndex=b;this.u="https://play.google.com/log?format=json&hasfast=true";this.B=!1;this.componentId="";this.Wz=Pfa};
Nk=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.G.call(this);f?b=f:(a=new Mk(a,"0"),a.componentId=b,g.H(this,a),""!=c&&(a.u=c),d&&(a.B=!0),e&&(a.j=e),b=a.Jf());this.j=b};
Ok=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}};
Qfa=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""}};
Pk=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};
Qk=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()};
Rk=function(a,b){this.logger=a;this.j=b;this.startMillis=Qk()};
Sk=function(a,b,c){this.logger=a;this.operation=b;this.j=c;this.startMillis=Qk()};
Rfa=function(a,b){var c=Qk()-a.startMillis;a.logger.nO(b?"h":"m",c,a.j)};
Sfa=function(){};
Tfa=function(a,b){this.qf=a;a=new Mk(1654,"0");a.j="15";if(b){var c=new lj;b=xea(c,b,hea);a.iG=b}b=new Nk(1654,"","",!1,"",a.Jf());b=new g.dg(b);this.clientError=new Yca(b);this.V=new Xca(b);this.ea=new Wca(b);this.K=new Zca(b);this.B=new $ca(b);this.C=new ada(b);this.j=new bda(b);this.D=new cda(b);this.u=new dda(b);this.J=new eda(b)};
Ufa=function(a){this.j=a;this.j.Sj("/client_streamz/bg/fiec",{Zd:3,Yd:"rk"},{Zd:2,Yd:"ec"},{Zd:3,Yd:"em"})};
Tk=function(a,b,c,d){a.j.Ik("/client_streamz/bg/fiec",b,c,d)};
Vfa=function(a){this.j=a;this.j.uy("/client_streamz/bg/fil",{Zd:3,Yd:"rk"})};
Wfa=function(a){this.j=a;this.j.Sj("/client_streamz/bg/fsc",{Zd:3,Yd:"rk"})};
Xfa=function(a){this.j=a;this.j.uy("/client_streamz/bg/fsl",{Zd:3,Yd:"rk"})};
$fa=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=Yfa(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=Uk(a,l),d+=Uk(a,l+4),e+=Uk(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 Zfa.toString(e)};
Yfa=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
Uk=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
aga=function(a){this.K=Vk();this.D=new Nk(1828);this.j=new g.dg(this.D);this.J=new Vfa(this.j);this.B=new Wfa(this.j);this.C=new Xfa(this.j);this.u=new Ufa(this.j);this.qf=$fa(a)};
Vk=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()};
cga=function(a){this.ma=J(a)};
dga=function(a){this.ma=J(a)};
Wk=function(a){this.ma=J(a,0,"bfkj")};
g.Xk=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Yk=function(a){function b(v,y){Promise.resolve().then(function(){var A;null!=(A=c.Rk)&&A.J.eg(Vk()-A.K,A.qf);h.resolve({C3:v,t$:y})})}
var c=this;this.j=!1;if(a.challenge instanceof Wk){var d=g.Ei(a.challenge,4);var e=g.Ei(a.challenge,5)}else d=a.program,e=a.globalName;if(a.N9){var f;this.Rk=null!=(f=a.Rk)?f:new aga(e)}var h=new g.Xk;this.u=h.promise;if(!g.Pa[e]){var l;null!=(l=this.Rk)&&Tk(l.u,l.qf,1,"");var m;null!=(m=this.Rk)&&m.j.Hx()}else if(!g.Pa[e].a){var n;null!=(n=this.Rk)&&Tk(n.u,n.qf,2,"");var p;null!=(p=this.Rk)&&p.j.Hx()}try{this.B=g.u((0,g.Pa[e].a)(d,b,!0,a.Hdb)).next().value,this.r$=h.promise.then(function(){})}catch(v){var q;
null!=(q=this.Rk)&&Tk(q.u,q.qf,4,v.message);var t;null!=(t=this.Rk)&&t.j.Hx();throw v;}};
ega=function(a){return de(a)};
fga=function(a){g.Vd("From proto message. b/12014412");return Yd(yi(a,4)||"")};
gga=function(){};
Zk=function(a){this.j=a};
$k=function(a){if(a instanceof Zd)a=g.$d(a);else{b:if(hga){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};
al=function(a){this.Fe=a};
bl=function(a){return new al(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
jga=function(a,b){b=void 0===b?iga:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof al&&d.Fe(a))return ae(a)}};
cl=function(a,b){b=$k(b);void 0!==b&&(a.href=b)};
kga=function(a,b,c,d){if(0===a.length)throw Error("");a=a.map(function(f){if(f instanceof Zk)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)};
dl=function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);};
el=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.fl=function(a,b){a.src=Iba(b);el(a)};
g.gl=function(a,b,c){var d=window;a=$k(a);return void 0!==a?d.open(a,b,c):null};
hl=function(){this.j={};this.u=null};
lga=function(){hl.instance||(hl.instance=new hl);return hl.instance};
nga=function(a,b,c,d){if(!b&&!c)return Promise.resolve();if(!d)return mga(b,c);var e;(e=a.j)[d]||(e[d]=new Promise(function(f,h){mga(b,c).then(function(){a.u=d;f()},function(l){delete a.j[d];
h(l)})}));
return a.j[d]};
mga=function(a,b){return b?oga(b):a?pga(a):Promise.resolve()};
oga=function(a){return new Promise(function(b,c){var d=g.bf("SCRIPT"),e=fga(a);g.fl(d,e);d.onload=function(){g.pf(d);b()};
d.onerror=function(){g.pf(d);c(Error("EWLS"))};
(g.Ke("HEAD")[0]||document.documentElement).appendChild(d)})};
pga=function(a){return new Promise(function(b){var c=g.bf("SCRIPT");if(a){var d=yi(a,6);d=null===d||void 0===d?null:Hba(d)}else d=null;c.textContent=Fba(d);el(c);(g.Ke("HEAD")[0]||document.documentElement).appendChild(c);g.pf(c);b()})};
rga=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a[c]+97;if(g.Pa.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 qga(b)};
il=function(a){this.ma=J(a)};
jl=function(a){this.ma=J(a)};
kl=function(a,b,c){this.client=a;this.qf=b;this.j=c};
ll=function(a){this.ma=J(a)};
ml=function(a,b,c){this.j=a;this.B=b;this.u=c};
nl=function(a,b,c){c=void 0===c?{}:c;this.a$=a;this.j=c;this.u=b};
ol=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.u=e};
sga=function(a,b,c){c=void 0===c?{}:c;return new ml(b,a,c)};
pl=function(a){this.ma=J(a)};
ql=function(a){this.ma=J(a)};
rl=function(a){this.ma=J(a)};
sl=function(a,b){this.K=a.z6;this.V=b;this.j=a.xhr;this.B=[];this.D=[];this.J=[];this.C=[];this.u=[];this.K&&tga(this)};
wga=function(a,b){g.xd(a.j,"complete",function(){if(gk(a.j)){var c=g.hk(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.V(c)}catch(f){tl(a,new Pk(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=Ok(a.j.getStatus());ul(a,vl(a));0==c?uga(a,d):tl(a,new Pk(c,"Xhr succeeded but the status code is not 200"))}else{d=g.hk(a.j);var e={};d?(e=vga(a,d),d=e.code,c=e.details,e=e.metadata):
(d=2,c="Rpc failed due to xhr error. error code: "+a.j.u+", error: "+a.j.getLastError());ul(a,vl(a));tl(a,new Pk(d,c,e))}})};
tga=function(a){a.K.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.V(c)}catch(e){tl(a,new Pk(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&uga(a,d)}if("2"in b)for(b=vga(a,b["2"]),c=0;c<a.J.length;c++)a.J[c](b)});
a.K.on("end",function(){ul(a,vl(a));for(var b=0;b<a.C.length;b++)a.C[b]()});
a.K.on("error",function(){if(0!=a.u.length){var b=a.j.u;0!==b||gk(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=Ok(c);break;default:d=14}ul(a,vl(a));b=jfa(b)+", error: "+a.j.getLastError();-1!=c&&(b+=", http status code: "+c);tl(a,new Pk(d,b))}})};
vl=function(a){var b={},c=g.Cfa(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
vga=function(a,b){var c=2,d={};try{var e=xga(b);c=Ci(e,1);var f=e.getMessage();Bea(e,ql).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.oa)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
wl=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
uga=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
ul=function(a,b){for(var c=0;c<a.D.length;c++)a.D[c](b)};
tl=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
g.xl=function(a){this.J=a.vaa||null;this.D=a.AZ||!1;this.u=void 0};
Il=function(a,b){g.Hd.call(this);this.qa=a;this.J=b;this.D=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.V=new Headers;this.u=null;this.oa="GET";this.ea="";this.j=!1;this.K=this.B=this.C=null};
yga=function(a){a.B.read().then(a.d5.bind(a)).catch(a.mH.bind(a))};
Kl=function(a){a.readyState=4;a.C=null;a.B=null;a.K=null;Jl(a)};
Jl=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
zga=function(a){if(a.lm&&"function"==typeof a.lm)return a.lm();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 ad(a)};
Aga=function(a){if(a.hp&&"function"==typeof a.hp)return a.hp();if(!a.lm||"function"!=typeof a.lm){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.bd(a)}}};
g.Ll=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=Aga(a),e=zga(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)};
g.Ml=function(a){this.j=this.V=this.D="";this.C=null;this.J=this.B="";this.K=!1;var b;a instanceof g.Ml?(this.K=a.K,g.Nl(this,a.D),this.V=a.V,g.Ol(this,a.j),g.Pl(this,a.C),this.B=a.B,Ql(this,a.u.clone()),this.J=a.J):a&&(b=String(a).match(Ij))?(this.K=!1,g.Nl(this,b[1]||"",!0),this.V=Rl(b[2]||""),g.Ol(this,b[3]||"",!0),g.Pl(this,b[4]),this.B=Rl(b[5]||"",!0),Ql(this,b[6]||"",!0),this.J=Rl(b[7]||"")):(this.K=!1,this.u=new Sl(null,this.K))};
g.Nl=function(a,b,c){a.D=c?Rl(b,!0):b;a.D&&(a.D=a.D.replace(/:$/,""))};
g.Ol=function(a,b,c){a.j=c?Rl(b,!0):b};
g.Pl=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.C=b}else a.C=null};
Ql=function(a,b,c){b instanceof Sl?(a.u=b,Bga(a.u,a.K)):(c||(b=Tl(b,Cga)),a.u=new Sl(b,a.K))};
g.Ul=function(a,b,c){a.u.set(b,c)};
g.Vl=function(a){return a instanceof g.Ml?a.clone():new g.Ml(a)};
Rl=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Tl=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Dga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
Dga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Sl=function(a,b){this.u=this.j=null;this.B=a||null;this.C=!!b};
Wl=function(a){a.j||(a.j=new Map,a.u=0,a.B&&Uj(a.B,function(b,c){a.add(Be(b),c)}))};
Ega=function(a,b){Wl(a);b=Xl(a,b);return a.j.has(b)};
g.Fga=function(a,b,c){a.remove(b);0<c.length&&(a.B=null,a.j.set(Xl(a,b),g.Lb(c)),a.u=a.u+c.length)};
Xl=function(a,b){b=String(b);a.C&&(b=b.toLowerCase());return b};
Bga=function(a,b){b&&!a.C&&(Wl(a),a.B=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Fga(this,e,c))},a));
a.C=b};
g.Gga=function(a){var b="";g.Wc(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Yl=function(a,b,c){if(g.id(c))return a;c=g.Gga(c);if("string"===typeof a)return Zj(a,g.Ae(b),c);g.Ul(a,b,c);return a};
g.Zl=function(a){g.G.call(this);this.u=a;this.j={}};
Hga=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)Hga(a,b,c[h],d,e,f);else{b=td(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.j[b.key]=b}return a};
Iga=function(){this.B=!0;this.u=0;this.j=""};
Jga=function(a,b,c){a.B=!1;throw Error("The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b);};
$l=function(){this.J=null;this.K=[];this.C=this.u=this.B=this.j=this.ea=0;this.D=null;this.V=0};
am=function(a,b,c,d){a.j=3;a.J="The stream is broken @"+a.ea+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.J);};
bm=function(){this.j=null;this.u=0;this.B=new Iga;this.C=new $l};
Kga=function(a,b,c){a.j="The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
cm=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
dm=function(a){this.ea=null;this.J=[];this.C="";this.qa=[];this.B=this.u=0;this.K=!1;this.V=0;this.Ba=/[\\"]/g;this.j=this.D=0;this.oa=!(!a||!a.h4)};
em=function(a,b,c){a.D=3;a.ea="The stream is broken @"+a.B+"/"+c+". With input:\n"+b;throw Error(a.ea);};
fm=function(){this.D=this.B=null;this.u=this.j=0;this.C=[];this.J=!1};
Lga=function(a){var b=g.jk(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new fm:new dm:b.startsWith("application/x-protobuf")?(a=g.jk(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new bm:null:new $l:null};
gm=function(a){this.j=a;this.u=null;this.C=this.B=0;this.ea=!1;this.D=this.K=this.J=null;this.V=new g.Zl(this);this.V.Ta(this.j,"readystatechange",this.oa)};
hm=function(a,b){a.C!=b&&(a.C=b,a.K&&a.K())};
im=function(a){a.V.Tf();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
Mga=function(a){this.B=a;a=(0,g.bb)(this.o7,this);this.B.D=a;a=(0,g.bb)(this.U8,this);this.B.K=a;this.u={};this.j={}};
Nga=function(a,b){for(var c={},d=0;d<a.length;c={QJ:c.QJ},d++)c.QJ=a[d],b.forEach(function(e){return function(f){try{f(e.QJ)}catch(h){}}}(c))};
jm=function(a,b){var c=a.u[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.j[b])&&c.forEach(function(d){d()});
a.j[b]=[]};
Oga=function(){var a={format:"jspb"};a=void 0===a?{}:a;this.D=a.zdb||g.Sa("suppressCorsPreflight",a)||!1;this.u=a.withCredentials||g.Sa("withCredentials",a)||!1;this.C=a.ydb||[];this.J=a.Edb||[];this.j=a.Idb;this.B=a.Fdb||!1};
Sga=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Pga(function(h){return new Qga(function(l,m){var n={},p=Rga(a,h,f);p.on("error",function(q){return m(q)});
p.on("metadata",function(q){n=q});
p.on("data",function(q){var t=n;t=void 0===t?{}:t;l(new nl(q,h.YG(),t))})})},a.J).call(a,sga(e,c,d)).then(function(h){return h.a$})};
Rga=function(a,b,c){var d=b.YG(),e=b.getMetadata(),f=Tga(a,!0);a=Uga(a,e,f,c+d.getName());c=Vga(f,d.u,!1);wga(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
Tga=function(a,b){b=a.B&&!b;return a.j||b?new g.ck(new g.xl({vaa:a.j,AZ:b})):new g.ck};
Uga=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.u)c.J=!0;if(a.D)d=g.Yl(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
Vga=function(a,b,c){if(c)if(a.isActive(),!g.Pe||g.Oc(10)){c=new gm(a);var d=new Mga(c)}else d=null;return new sl({xhr:a,z6:d},b)};
Pga=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
Wga=function(){this.j=new Oga;this.u="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
km=function(a){g.G.call(this);this.owner=a;this.j=new Set;a&&g.H(a,this)};
lm=function(a,b,c){var d=Xga;a.j.has(b);d({signal:b,data:c})};
mm=function(a){g.G.call(this);this.eU=a;this.slots=new Map;this.tA=new Set;this.UV=!1};
Yga=function(a,b){a.isDisposed()||a.slots.set(b,{slotId:b,slot:void 0,FU:function(){return a.slots.delete(b)}})};
Zga=function(a,b){return new Promise(function(c){nm(function(){a.eU&&(a.HW=b,a.UV=!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){Gf(h)}}d=g.u(a.tA);for(e=d.next();!e.done;e=d.next())e.value.resolve(b);a.tA.clear();c()})})};
Xga=function(){var a=g.Ia.apply(0,arguments);0===a.length?Promise.resolve():1===a.length?(a=a[0],Zga(a.signal,a.data)):Promise.all(a.map(function(b){return Zga(b.signal,b.data)})).then()};
nm=function(a){om.push(a);$ga()};
$ga=function(){var a,b;g.Ha(function(c){switch(c.j){case 1:if(pm){c.Ka(0);break}g.ya(c,3,4);pm=!0;a=aha(0);case 6:if(!(a<om.length)){c.Ka(4);break}return g.z(c,Promise.resolve(),9);case 9:a=aha(a);c.Ka(6);break;case 4:g.Ba(c);om.length=0;pm=!1;g.Ca(c,0);break;case 3:b=g.Aa(c),Gf(b),c.Ka(4)}})};
aha=function(a){for(var b=a+100;a<b&&a<om.length;)try{om[a++]()}catch(c){Gf(c)}return a};
bha=function(a,b){if(a.isDisposed())b();else{var c=qm.get(a);if(c)c.push(b);else{var d=[b];qm.set(a,d);g.tb(a,function(){for(var e=g.u([].concat(g.qa(d))),f=e.next();!f.done;f=e.next())f=f.value,f();qm.delete(a)})}}};
rm=function(a,b,c){g.G.call(this);this.K=a;this.milliseconds=b;this.Qb=c;this.state=this.C=0};
cha=function(a,b){if(b)if("function"===typeof b)var c=b;else{c=b.sI;var d=b.OO}else c=function(){};
return new rm(!1,a,{sI:c,OO:d})};
sm=function(a){ub.call(this,a);this.name="TimerCancelledError"};
tm=function(a){ub.call(this,a);this.name="TimerDisposedError"};
eha=function(a){return dha?Array.from(dha.encode(a)):g.fg(a)};
fha=function(a){var b=new Wga,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new kl(b,a,function(){return c})};
gha=function(a,b){if(a.u4)return a.u4;if(void 0===a.Oy)return[];b=new Rk(b,"c");a=eha(a.Oy);b.done();return a};
um=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,um.prototype)};
vm=function(a){g.G.call(this);var b=this;this.logger=a;this.C=new g.Xk;g.tb(this,function(){return b.C.reject()})};
wm=function(a,b){b=cha(b,function(){a.C.resolve()});
g.H(a,b);b.start()};
xm=function(a,b,c,d,e){vm.call(this,a);this.J=c;this.V=d;this.B="m";this.u="x";this.K=0;g.H(this,b);wm(this,e)};
ym=function(a,b,c){vm.call(this,a);this.J=b;this.B="f";this.u="z";wm(this,c)};
zm=function(a,b,c){vm.call(this,a);this.J=b;this.B="w";this.u="z";wm(this,c)};
Am=function(a,b){vm.call(this,a);this.error=b;this.B="e";this.u="y"};
hha=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(eha(b)))};
Hm=function(a,b,c){vm.call(this,a);this.J=b;this.clientState=c;this.B="S";this.u="q"};
Im=function(a){g.G.call(this);var b=this;this.j=void 0;this.C=new g.Xk;this.state=1;this.B=0;this.u=void 0;this.Yy=a.Yy;this.HX=a.HX;this.onError=a.onError;this.logger=a.adb?new Sfa:new Tfa(a.qf,a.iG);this.NG=!!a.NG;g.tb(this,function(){b.j&&(b.j.dispose(),b.j=void 0)})};
jha=function(a){var b,c,d,e,f,h,l,m,n,p,q,t,v,y,A,E,K,I,F;return g.Ha(function(S){switch(S.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.Aj(c,6E5,.25,2),e=1;case 2:if(!(2>=e)){S.Ka(4);break}g.ya(S,5);a.state=3;a.B=e-1;return g.z(S,a.u&&1===e?a.u:a.sC(e),7);case 7:f=S.u;a.u=void 0;a.state=4;h=new Rk(a.logger,"b");var Y=lga();Y=nga(Y,g.ni(f,cga,1),g.ni(f,dga,2),g.Ei(f,3));return g.z(S,Y,8);case 8:return a.state=5,l=new Yk({challenge:f}),m=[],n={},a.NG&&(n.w_=m),g.z(S,Jm(a,l.snapshot(n),new um(15,
"MDA:Timeout")),9);case 9:return p=S.u,q=a.NG?m[0]:window.webpocb,h.done(),a.state=6,g.z(S,Jm(a,a.logger.oO("g",e,a.Yy.WU(p)),new um(10,"BWB:Timeout")),10);case 10:t=S.u;a.state=7;v=new Rk(a.logger,"i");if(g.Ei(t,4))l.dispose(),Y=new zm(a.logger,g.Ei(t,4),1E3*Di(t,2));else if(Di(t,3)){if(!q)throw new um(4,Error("PMD:Undefined"));Y=q(zg(fi(t,1)));if(!(Y instanceof Function))throw new um(16,Error("APF:Failed"));Y=new xm(a.logger,l,Y,Di(t,3),1E3*Di(t,2))}else l.dispose(),Y=new ym(a.logger,zg(fi(t,1)),
1E3*Di(t,2));y=Y;v.done();E=A=void 0;null==(E=(A=a).HX)||E.call(A,zg(fi(t,1)));a.state=8;return S.return(y);case 5:K=g.Aa(S);b=K instanceof um?K:K instanceof tm?new um(20,K):K instanceof Pk?new um(11,K):new um(12,K);a.logger.uD(b.code);F=I=void 0;null==(F=(I=a).onError)||F.call(I,b);a:{if(K instanceof Pk)switch(K.code){case 2:case 13:case 14:case 4:Y=!0;break a;default:Y=!1;break a}Y=K instanceof um?20!==K.code:!0}if(!Y)throw b;return g.z(S,iha(a,d.getValue()),11);case 11:g.Bj(d);case 3:e++;S.Ka(2);
break;case 4:throw b;}})};
iha=function(a,b){b=cha(b);g.H(a,b);b.start();return b.V};
Jm=function(a,b,c){return Promise.race([b,iha(a,12E4).then(function(){return Promise.reject(c)})])};
kha=function(a){var b,c,d;g.Ha(function(e){switch(e.j){case 1:return b=void 0,g.ya(e,5),g.z(e,jha(a),7);case 7:b=e.u;g.za(e,6);break;case 5:c=g.Aa(e);if(a.j){a.logger.uD(13);e.Ka(0);break}a.logger.uD(14);b=new Am(a.logger,c instanceof um?c:new um(14,c instanceof Error?c:Error(String(c))));case 6:return d=void 0,null==(d=a.j)||d.dispose(),a.j=b,a.C.resolve(),g.ya(e,8),g.z(e,a.j.C.promise,10);case 10:g.za(e,1);break;case 8:g.Aa(e),e.Ka(0)}})};
mha=function(a){var b;lha(a,null==(b=globalThis.location)?void 0:b.ancestorOrigins)};
lha=function(a,b){var c,d,e,f,h,l,m,n,p,q,t,v,y,A,E,K,I,F,S,Y,ia,ta,na;g.Ha(function(ca){switch(ca.j){case 1:g.ya(ca,2);c=!0;globalThis.sessionStorage?(null!=(d=globalThis.sessionStorage.getItem)&&d.call||(a.logger.Kz("r"),c=!1),null!=(e=globalThis.sessionStorage.setItem)&&e.call||(a.logger.Kz("w"),c=!1),null!=(f=globalThis.sessionStorage.removeItem)&&f.call||(a.logger.Kz("d"),c=!1)):(a.logger.Kz("n"),c=!1);if(!c)return ca.return();a.logger.Kz("a");h=80;l=")";m="u";if(!(b&&(null==(n=globalThis.crypto)?
0:null==(p=n.subtle)?0:p.digest)&&globalThis.TextEncoder)){ca.Ka(4);break}if(!(0<b.length)){l="(";m="n";ca.Ka(4);break}q=b[b.length-1];return g.z(ca,globalThis.crypto.subtle.digest("SHA-256",(new TextEncoder).encode(q)),6);case 6:t=ca.u,l=g.gg(new Uint8Array(t)),h-=l.length-1,m="e";case 4:v=Array.from({length:h}).map(function(){return 9*Math.random()|0}).join("");
y=new Sk(a.logger,"m",m);A=globalThis.sessionStorage.getItem("nWC1Uzs7EI");E=!!A;Rfa(y,E);K=Date.now();A?(I=Number(A.substring(0,A.indexOf("l"))),F=A.substring(A.indexOf("l"),A.lastIndexOf("l")).substring(1)||")",I?(a.logger.JH("a",m),S=K-I,a.logger.RW(S,m),a.logger.SW(")"!==F&&")"!==l?"("===F?"("===l?"y":"n":"("===l?"e":F===l?"s":"d":"u")):a.logger.JH("c",m)):a.logger.JH("n",m);Y=K+"l"+l+"l"+v;E&&.5>Math.random()?(ia=new Sk(a.logger,"d",m),globalThis.sessionStorage.removeItem("nWC1Uzs7EI"),ia.done(),
ta=new Sk(a.logger,"a",m),globalThis.sessionStorage.setItem("nWC1Uzs7EI",Y),ta.done()):(na=new Sk(a.logger,E?"w":"i",m),globalThis.sessionStorage.setItem("nWC1Uzs7EI",Y),na.done());g.za(ca,0);break;case 2:g.Aa(ca),a.logger.QW(),g.xa(ca)}})};
nha=function(a){var b={};g.$b(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c});
uaa(a,function(c){return null===b[c.event]})};
Km=function(){this.De=0;this.j=!1;this.u=-1;this.Tv=!1;this.zk=0};
Lm=function(){this.Vd=null;this.j=!1};
Mm=function(a){Lm.call(this);this.B=a};
Nm=function(){Lm.call(this)};
Om=function(){Lm.call(this)};
Pm=function(){this.j={};this.u=!0;this.B={}};
Qm=function(a,b,c){a.j[b]||(a.j[b]=new Mm(c));return a.j[b]};
oha=function(a){a.j.queryid||(a.j.queryid=new Om)};
Rm=function(a,b,c){(a=a.j[b])&&a.u(c)};
Sm=function(a,b){if(g.cd(a.B,b))return a.B[b];if(a=a.j[b])return a.getValue()};
Tm=function(a){var b={},c=g.Xc(a.j,function(d){return d.j});
g.Wc(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.j&&null!==d.Vd?String(d.Vd):"";0<d.length&&(b[e]=d)},a);
return b};
pha=function(a){a=Tm(a);var b=[];g.Wc(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
rha=function(a){Qm(a,"od",qha);Qm(a,"opac",Um).j=!0;Qm(a,"sbeos",Um).j=!0;Qm(a,"prf",Um).j=!0;Qm(a,"mwt",Um).j=!0;Qm(a,"iogeo",Um)};
sha=function(){this.j=this.Kt=null};
Vm=function(){};
Xm=function(){if(!Wm())throw Error();};
Wm=function(){return!(!Ym||!Ym.performance)};
Zm=function(a){return a?a.passive&&tha()?a:a.capture||!1:!1};
$m=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Zm(d)),!0):!1};
an=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
uha=function(){};
vha=function(){return(oc||pc)&&qc?qc.mobile:!bn()&&(tc("iPod")||tc("iPhone")||tc("Android")||tc("IEMobile"))};
bn=function(){return(oc||pc)&&qc?!qc.mobile&&(tc("iPad")||tc("Android")||tc("Silk")):tc("iPad")||tc("Android")&&!tc("Mobile")||tc("Silk")};
cn=function(a){try{return!!a&&null!=a.location.href&&Lc(a,"foo")}catch(b){return!1}};
dn=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
xha=function(){var a=[];dn(wha,function(b){a.push(b)});
return a};
yha=function(a){var b,c;return null!=(c=null==(b=/https?:\/\/[^\/]+/.exec(a))?void 0:b[0])?c:""};
Bha=function(){var a=zha("IFRAME"),b={};g.$b(Aha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
zha=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
Cha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,cn(a)&&(b=a);return b};
Gha=function(a){a=a||en();for(var b=new Dha(g.Pa.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Eha.test(f.url)&&(c=f);if(f.url&&!f.TN){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Fha(b,e,c)};
en=function(){var a=g.Pa,b=[],c=null;do{var d=a;if(cn(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Dha(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.Pa;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.TN=!0);return b};
Fha=function(a,b,c){this.j=a;this.u=b;this.B=c};
Dha=function(a,b){this.url=a;this.TN=!!b;this.depth=null};
fn=function(){this.B="&";this.u={};this.C=0;this.j=[]};
gn=function(a,b){var c={};c[a]=b;return[c]};
Hha=function(a,b,c,d,e){var f=[];dn(a,function(h,l){(h=hn(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
hn=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(hn(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(Hha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Iha=function(a){var b=1,c;for(c in a.u)b=c.length>b?c.length:b;return 3997-b-a.B.length-1};
jn=function(a,b){this.j=a;this.depth=b};
Kha=function(){function a(l,m){return null==l?m:l}
var b=en(),c=Math.max(b.length-1,0),d=Gha(b);b=d.j;var e=d.u,f=d.B,h=[];f&&h.push(new jn([f.url,f.TN?2:0],a(f.depth,1)));e&&e!=f&&h.push(new jn([e.url,2],0));b.url&&b!=f&&h.push(new jn([b.url,0],a(b.depth,c)));d=g.kn(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=yha(b.url))&&d.push([new jn([e,1],a(b.depth,c))]);d.push([]);return g.kn(d,function(l){return Jha(c,l)})};
Jha=function(a,b){g.ln(b,function(e){return 0<=e.depth});
var c=mn(b,function(e,f){return Math.max(e,f.depth)},-1),d=zaa(c+2);
d[0]=a;g.$b(b,function(e){return d[e.depth+1]=e.j});
return d};
Lha=function(){var a=void 0===a?Kha():a;return a.map(function(b){return hn(b)})};
Mha=function(a){var b=!1;b=void 0===b?!1:b;Ym.google_image_requests||(Ym.google_image_requests=[]);var c=zha("IMG",Ym.document);b&&(c.attributionSrc="");c.src=a;Ym.google_image_requests.push(c)};
nn=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};
on=function(){this.u=new uha;this.j=Wm()?new Xm:new Vm};
Nha=function(){pn();var a=Ym.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Ym.setInterval&&"function"===typeof Ym.clearInterval&&"function"===typeof Ym.setTimeout&&"function"===typeof Ym.clearTimeout)};
Oha=function(){pn();return Lha()};
Pha=function(){};
pn=function(){var a=nn(Pha);if(!a.j){if(!Ym)throw Error("Context has not been set and window is undefined.");a.j=nn(on)}return a.j};
qn=function(a){this.ma=J(a)};
Qha=function(a){this.B=a;this.j=-1;this.u=this.C=0};
rn=function(a,b){return function(){var c=g.Ia.apply(0,arguments);if(-1<a.j)return b.apply(null,g.qa(c));try{return a.j=a.B.j.now(),b.apply(null,g.qa(c))}finally{a.C+=a.B.j.now()-a.j,a.j=-1,a.u+=1}}};
Rha=function(a,b){this.u=a;this.B=b;this.j=new Qha(a)};
Sha=function(){this.j={}};
Uha=function(){var a=sn().flags,b=Tha;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};
Yha=function(){this.B=void 0;this.u=this.J=0;this.D=-1;this.Fc=new Pm;Qm(this.Fc,"mv",Vha).j=!0;Qm(this.Fc,"omid",Um);Qm(this.Fc,"epoh",Um).j=!0;Qm(this.Fc,"epph",Um).j=!0;Qm(this.Fc,"umt",Um).j=!0;Qm(this.Fc,"phel",Um).j=!0;Qm(this.Fc,"phell",Um).j=!0;Qm(this.Fc,"oseid",Wha).j=!0;var a=this.Fc;a.j.sloi||(a.j.sloi=new Nm);a.j.sloi.j=!0;Qm(this.Fc,"mm",tn);Qm(this.Fc,"ovms",Xha).j=!0;Qm(this.Fc,"xdi",Um).j=!0;Qm(this.Fc,"amp",Um).j=!0;Qm(this.Fc,"prf",Um).j=!0;Qm(this.Fc,"gtx",Um).j=!0;Qm(this.Fc,
"mvp_lv",Um).j=!0;Qm(this.Fc,"ssmol",Um).j=!0;Qm(this.Fc,"fmd",Um).j=!0;this.j=new Rha(pn(),this.Fc);this.C=!1;this.flags=new Sha};
sn=function(){return nn(Yha)};
Zha=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof fn)var e=c;else e=new fn,dn(c,function(h,l){var m=e,n=m.C++;h=gn(l,h);m.j.push(n);m.u[n]=h});
var f=e.kf(a.u,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(pn(),Mha(f))}catch(h){}};
$ha=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};
aia=function(){var a=void 0===a?g.Pa:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.eb()};
bia=function(){var a=void 0===a?g.Pa:a;return(a=a.performance)&&a.now?a.now():null};
cia=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()};
vn=function(){var a=window;this.events=[];this.u=a||g.Pa;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=un()||(null!=b?b:1>Math.random())};
dia=function(a){a&&wn&&un()&&(wn.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),wn.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
eia=function(){var a=xn;this.j=yn;this.SU="jserror";this.GQ=!0;this.wL=null;this.u=this.rO;this.Lc=void 0===a?null:a};
fia=function(a,b,c){var d=zn;return rn(sn().j.j,function(){try{if(d.Lc&&d.Lc.j){var e=d.Lc.start(a.toString(),3);var f=b();d.Lc.end(e)}else f=b()}catch(l){var h=d.GQ;try{dia(e),h=d.u(a,new An(Bn(l)),void 0,c)}catch(m){d.rO(217,m)}if(!h)throw l;}return f})()};
Cn=function(a,b,c,d){return rn(sn().j.j,function(){var e=g.Ia.apply(0,arguments);return fia(a,function(){return b.apply(c,e)},d)})};
Bn=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};
An=function(a){$ha.call(this,Error(a),{message:a})};
gia=function(){Ym&&"undefined"!=typeof Ym.google_measure_js_timing&&(Ym.google_measure_js_timing||xn.disable())};
hia=function(a){zn.wL=function(b){g.$b(a,function(c){c(b)})}};
iia=function(a,b){return fia(a,b)};
Dn=function(a,b){return Cn(a,b)};
En=function(a,b,c,d){zn.rO(a,b,c,d)};
Fn=function(){return Date.now()-jia};
kia=function(){var a=sn().B,b=0<=Gn?Fn()-Gn:-1,c=Hn?Fn()-In:-1,d=0<=Jn?Fn()-Jn:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];En(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};
Kn=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
Ln=function(a){return a.right-a.left};
Mn=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};
Nn=function(a,b,c){b instanceof g.te?(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};
On=function(a,b,c){var d=new Kn(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.j=d;this.u=c};
Pn=function(a,b,c,d,e,f,h,l){this.C=a;this.K=b;this.B=c;this.J=d;this.j=e;this.D=f;this.u=h;this.V=l};
mia=function(a){var b=a!==a.top,c=a.top===Cha(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),nba(lia,function(h){return"function"===typeof f[h]})||(e=1));
return{Hn:f,compatibility:e,x$:d}};
nia=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
oia=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.xe(b.innerWidth,b.innerHeight)).round():sca(b||window).round()}catch(d){return new g.xe(-12245933,-12245933)}};
Qn=function(a,b,c){try{a&&(b=b.top);var d=oia(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new Kn(f,f,f,f);var h=uca(Ie(b.document).j),l=h.x,m=h.y;return new Kn(m,l+f,m+e,l)}catch(n){return new Kn(-12245933,-12245933,-12245933,-12245933)}};
g.Rn=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
Sn=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.Un=function(a,b,c){if("string"===typeof b)(b=Tn(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Tn(c,d);f&&(c.style[f]=e)}};
Tn=function(a,b){var c=pia[b];if(!c){var d=mca(b);c=d;void 0===a.style[d]&&(d=(g.Qc?"Webkit":Vn?"Moz":g.Pe?"ms":null)+oca(d),void 0!==a.style[d]&&(c=d));pia[b]=c}return c};
g.Wn=function(a,b){var c=a.style[mca(b)];return"undefined"!==typeof c?c:a.style[Tn(a,b)]||""};
Xn=function(a,b){var c=He(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Yn=function(a,b){return Xn(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.$n=function(a,b,c){if(b instanceof g.te){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Zn(d,!1);a.style.top=g.Zn(b,!1)};
po=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
qia=function(a){if(g.Pe&&!g.Oc(8))return a.offsetParent;var b=He(a),c=Yn(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=Yn(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.qo=function(a){var b=He(a),c=new g.te(0,0);var d=b?He(b):document;d=!g.Pe||g.Oc(9)||"CSS1Compat"==Ie(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=po(a);b=uca(Ie(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
sia=function(a,b){var c=new g.te(0,0),d=Ze(He(a));if(!Lc(d,"parent"))return c;do{var e=d==b?g.qo(a):ria(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.ro=function(a,b){a=tia(a);b=tia(b);return new g.te(a.x-b.x,a.y-b.y)};
ria=function(a){a=po(a);return new g.te(a.left,a.top)};
tia=function(a){if(1==a.nodeType)return ria(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.te(a.clientX,a.clientY)};
g.so=function(a,b,c){if(b instanceof g.xe)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Zn(b,!0);a.style.height=g.Zn(c,!0)};
g.Zn=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.to=function(a){var b=uia;if("none"!=Yn(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};
uia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Qc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=po(a),new g.xe(a.right-a.left,a.bottom-a.top)):new g.xe(b,c)};
g.uo=function(a,b){a.style.display=b?"":"none"};
vo=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
via=function(a){return new Kn(a.top,a.right,a.bottom,a.left)};
wia=function(a){var b=a.top||0,c=a.left||0;return new Kn(b,c+(a.width||0),b+(a.height||0),c)};
wo=function(a){return null!=a&&0<=a&&1>=a};
xia=function(){var a=g.nc();return a?xo("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return jc(a,b)})||jc(a,"OMI/")&&!jc(a,"XiaoMi/")?!0:jc(a,"Presto")&&jc(a,"Linux")&&!jc(a,"X11")&&!jc(a,"Android")&&!jc(a,"Mobi"):!1};
yia=function(){this.B=!cn(Ym.top);this.isMobileDevice=bn()||vha();var a=en();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.Sj(a[a.length-1].url)||"":"";this.j=new Kn(0,0,0,0);this.C=new g.xe(0,0);this.D=new g.xe(0,0);this.K=new Kn(0,0,0,0);this.J=0;this.V=!1;this.u=!(!Ym||!mia(Ym).Hn);this.update(Ym)};
zia=function(a,b){b&&b.screen&&(a.C=new g.xe(b.screen.width,b.screen.height))};
Aia=function(a,b){var c=a.j?new g.xe(Ln(a.j),a.j.getHeight()):new g.xe(0,0);b=void 0===b?Ym:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=q):m<p?(d=m,e=n):(d=p,e=q)}var t=new g.xe(e,d)}catch(v){t=new g.xe(-12245933,-12245933)}a.D=t};
Ao=function(){var a=yo();if(0<a.J||a.V)return!0;a=pn().u.isVisible();var b=0===an(zo);return a||b};
yo=function(){return nn(yia)};
Bo=function(a){this.B=a;this.u=0;this.j=null};
Co=function(a,b,c){this.B=a;this.Va=void 0===c?"na":c;this.D=[];this.isInitialized=!1;this.C=new On(-1,!0,this);this.j=this;this.V=b;this.oa=this.ea=!1;this.Fa="uk";this.Ga=!1;this.J=!0};
Do=function(a,b){g.Fb(a.D,b)||(a.D.push(b),b.oz(a.j),b.xt(a.C),b.Np()&&(a.ea=!0))};
Bia=function(a){a=a.j;a.xS();a.wS();var b=yo();b.K=Qn(!1,a.B,b.isMobileDevice);Aia(yo(),a.B);a.C.j=a.zV()};
Cia=function(a){a.ea=a.D.length?xo(a.D,function(b){return b.Np()}):!1};
Dia=function(a){var b=g.Lb(a.D);g.$b(b,function(c){c.xt(a.C)})};
Eo=function(a){var b=g.Lb(a.D);g.$b(b,function(c){c.oz(a.j)});
a.j!=a||Dia(a)};
Fo=function(a,b,c,d){this.element=a;this.j=new Kn(0,0,0,0);this.C=new Kn(0,0,0,0);this.u=b;this.Fc=c;this.qa=d;this.oa=!1;this.timestamp=-1;this.K=new Pn(b.C,this.element,this.j,new Kn(0,0,0,0),0,0,Fn(),0)};
Go=function(a){this.D=!1;this.j=a;this.C=function(){}};
Eia=function(a,b,c){this.u=void 0===c?0:c;this.j=a;this.Vd=null==b?"":b};
Fia=function(a){switch(Math.trunc(a.u)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Gia=function(a,b){return a.u<b.u?!0:a.u>b.u?!1:a.j<b.j?!0:a.j>b.j?!1:typeof a.Vd<typeof b.Vd?!0:typeof a.Vd>typeof b.Vd?!1:a.Vd<b.Vd};
Ho=function(){this.B=0;this.j=[];this.u=!1};
Hia=function(a,b){(0,g.$b)(b.j,function(c){a.add(c.j,c.Vd,Fia(c))})};
Io=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;dn(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
Jo=function(a){var b=Iia;a.u&&(g.Vb(a.j,function(c,d){return Gia(d,c)?1:Gia(c,d)?-1:0}),a.u=!1);
return mn(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
Iia=function(a){var b=a.j;a=a.Vd;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.Fb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Jia=function(a){var b=void 0===b?!0:b;this.j=new Ho;void 0!==a&&Hia(this.j,a);b&&this.j.add("v","unreleased",-16)};
Kia=function(a){var b=[],c=[];g.Wc(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)};
Lia=function(a){a=a.toString();a=a.substring(0,4E3);pn();Mha(a)};
Mia=function(){this.j=0};
Nia=function(a,b,c){(0,g.$b)(a.B,function(d){var e=a.j;if(!d.j&&(d.B(b,c),d.C())){d.j=!0;var f=d.u(),h=new Ho;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.D);d=nn(Mia);h.add("i",d.j++);h.add("adk",e);Io(h,f);e=new Jia(h);Lia(e)}})};
Ko=function(){this.u=this.B=this.C=this.j=0};
Lo=function(a){this.u=a=void 0===a?Oia:a;this.j=g.kn(this.u,function(){return new Ko})};
Mo=function(a,b){return Pia(a,function(c){return c.j},void 0===b?!0:b)};
Oo=function(a,b){return No(a,b,function(c){return c.j})};
Qia=function(a,b){return Pia(a,function(c){return c.B},void 0===b?!0:b)};
Po=function(a,b){return No(a,b,function(c){return c.B})};
Qo=function(a,b){return No(a,b,function(c){return c.u})};
Ria=function(a){g.$b(a.j,function(b){b.u=0})};
Pia=function(a,b,c){a=g.kn(a.j,function(d){return b(d)});
return c?a:Sia(a)};
No=function(a,b,c){var d=g.Eb(a.u,function(e){return b<=e});
return-1==d?0:c(a.j[d])};
Sia=function(a){return g.kn(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Ro=function(){this.u=new Lo;this.Va=new Ko;this.qa=this.K=-1;this.kb=1E3;this.ob=new Lo([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Fa=this.Ba=-1};
So=function(a,b){return Qia(a.u,void 0===b?!0:b)};
To=function(a,b,c,d){var e=void 0===e?!1:e;c=Cn(d,c);$m(a,b,c,{capture:e})};
Vo=function(a,b){b=Uo(b);return 0===b?0:Uo(a)/b};
Uo=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Tia=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.qf(a)||a){var d=He(a),e=d&&Ze(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
Uia=function(a,b,c){if(!a||!b)return!1;b=Nn(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;cn(window.top)&&window.top&&window.top.document&&(window=window.top);if(!nia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=He(c))&&b.defaultView&&b.defaultView.frameElement)&&Tia(b,a);var d=a===c;a=!d&&a&&uf(a,function(e){return e===c});
return!(b||d||a)};
Via=function(a,b,c,d){return yo().B?!1:0>=Ln(a)||0>=a.getHeight()?!0:c&&d?iia(208,function(){return Uia(a,b,c)}):!1};
Wo=function(a,b,c){g.G.call(this);this.position=Wia.clone();this.SH=this.bH();this.mO=-2;this.N$=Date.now();this.PZ=-1;this.Dp=b;this.HH=null;this.iC=!1;this.fI=null;this.opacity=-1;this.requestSource=c;this.U$=!1;this.tO=function(){};
this.d_=function(){};
this.Vj=new sha;this.Vj.Kt=a;this.Vj.j=a;this.Ct=!1;this.wv={EO:null,DO:null};this.nZ=!0;this.VE=null;this.vz=this.R5=!1;sn().J++;this.Oh=this.bN();this.KZ=-1;this.Df=null;this.hasCompleted=this.O5=!1;this.Fc=new Pm;rha(this.Fc);Xia(this);1==this.requestSource?Rm(this.Fc,"od",1):Rm(this.Fc,"od",0)};
Xia=function(a){a=a.Vj.Kt;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Yia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+nca()):!!a.getAttribute("data-"+nca());b&&(yo().u=!0)};
Xo=function(a,b){b!=a.vz&&(a.vz=b,a=yo(),b?a.J++:0<a.J&&a.J--)};
Zia=function(a,b){if(a.Df){if(b.getName()===a.Df.getName())return;a.Df.dispose();a.Df=null}b=b.create(a.Vj.j,a.Fc,a.Np());if(b=null!=b&&b.zK()?b:null)a.Df=b};
$ia=function(a,b,c){if(!a.HH||-1==a.Dp||-1===b.u||-1===a.HH.u)return 0;a=b.u-a.HH.u;return a>c?0:a};
aja=function(a,b,c){if(a.Df){a.Df.Fs();var d=a.Df.K,e=d.C,f=e.j;if(null!=d.J){var h=d.B;a.fI=new g.te(h.left-f.left,h.top-f.top)}f=a.uJ()?Math.max(d.j,d.D):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.qV(d);a.HH=d;a.Sa(f,b,c,!1,h,e,d.V)}};
bja=function(a){if(a.iC&&a.VE){var b=1==Sm(a.Fc,"od"),c=yo().j,d=a.VE,e=a.Df?a.Df.getName():"ns",f=new g.xe(Ln(c),c.getHeight());c=a.uJ();a={C$:e,fI:a.fI,taa:f,uJ:c,De:a.Oh.De,naa:b};if(b=d.u){b.Fs();e=b.K;f=e.C.j;var h=null,l=null;null!=e.J&&f&&(h=e.B,h=new g.te(h.left-f.left,h.top-f.top),l=new g.xe(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={C$:b.getName(),fI:h,taa:l,uJ:c,naa:!1,De:e}}else c=null;c&&Nia(d,a,c)}};
cja=function(a,b,c){b&&(a.tO=b);c&&(a.d_=c)};
g.Yo=function(){};
g.Zo=function(a){return{value:a,done:!1}};
dja=function(){this.C=this.j=this.B=this.u=this.D=0};
eja=function(a){var b={};var c=g.eb()-a.D;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.B)&&(b.pnc=c);(c=a.C)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b};
fja=function(){Km.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
$o=function(a){return wo(a.volume)&&0<a.volume};
ap=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 gja(f,b,c)}};
bp=function(a,b){return function(c){return b(c)?c[a]:void 0}};
hja=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}};
gja=function(a,b,c){return void 0===c||c?g.cp(a,function(d,e){return g.Fb(b,e)}):g.kn(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)})};
dp=function(){this.u=this.j=""};
ija=function(){};
ep=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.pd(c,a);return Jo(Io(new Ho,c))};
jja=function(){var a={};this.u=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a.mut=[33554432,33554432],a.umutb=[67108864,67108864],a.tvoff=[134217728,134217728],a);this.j={};for(var b in this.u)0<this.u[b][1]&&(this.j[b]=0);this.B=0};
fp=function(a,b){var c=a.u[b],d=c[1];a.B+=c[0];0<d&&0==a.j[b]&&(a.j[b]=1)};
kja=function(a){var b=g.bd(a.u),c=0,d;for(d in a.j)g.Fb(b,d)&&1==a.j[d]&&(c+=a.u[d][1],a.j[d]=2);return c};
lja=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(1==d||2==d)b+=a.u[c][1]}return b};
gp=function(){this.j=this.u=0};
hp=function(){Ro.call(this);this.B=new Ko;this.Oa=this.ea=this.Ga=0;this.V=-1;this.rb=new Ko;this.D=new Ko;this.j=new Lo;this.J=this.C=-1;this.oa=new Ko;this.kb=2E3;this.Ma=new gp;this.eb=new gp;this.Ya=new gp};
ip=function(a,b,c){var d=a.Oa;Hn||c||-1==a.V||(d+=b-a.V);return d};
mja=function(){this.B=!1};
jp=function(a,b){this.B=!1;this.C=a;this.ea=b;this.D=0};
kp=function(a,b){jp.call(this,a,b);this.K=[]};
nja=function(){};
lp=function(){};
mp=function(a,b,c,d){Fo.call(this,a,b,c,d)};
np=function(a,b,c){Fo.call(this,null,a,b,c);this.J=a.isActive();this.D=0};
op=function(a){return[a.top,a.left,a.bottom,a.right]};
pp=function(a,b,c,d,e,f){f=void 0===f?new lp:f;Wo.call(this,b,c,d);this.CP=e;this.lM=0;this.Rh={};this.Vg=new jja;this.t_={};this.Ci="";this.eb=null;this.Zb=!1;this.j=[];this.ir=f.u();this.J=f.B();this.C=null;this.B=-1;this.Oa=this.ea=void 0;this.qa=this.oa=0;this.Fa=-1;this.ob=this.kb=!1;this.Ga=this.V=this.u=this.VA=this.Eb=0;new Lo;this.Ma=this.Va=0;this.Ya=-1;this.Vi=0;this.K=g.Ld;this.Ba=[this.bH()];this.hc=2;this.Zw={};this.Zw.pause="p";this.Zw.resume="r";this.Zw.skip="s";this.Zw.mute="m";this.Zw.unmute=
"um";this.Zw.exitfullscreen="ef";this.D=null;this.rb=this.wb=!1};
qp=function(a){a.hasCompleted=!0;0!=a.Vi&&(a.Vi=3)};
rp=function(a){return void 0===a?a:Number(a)?vo(a,3):0};
sp=function(a,b){return a.Ba[null!=b&&b<a.Ba.length?b:a.Ba.length-1]};
oja=function(a){var b=!!Sm(sn().Fc,"umt");return a.ea||!b&&!a.Oa?0:1};
pja=function(a,b){a.Vq()?b=0:-1==a.Dp?b=0:(b-=a.Dp,b=b>Math.max(1E4,a.B/3)?0:b);var c=a.K(a)||{};c=void 0!==c.currentTime?c.currentTime:a.oa;var d=c-a.oa,e=0;0<=d?(a.qa+=b,a.Ma+=Math.max(b-d,0),e=Math.min(d,a.qa)):a.Va+=Math.abs(d);0!=d&&(a.qa=0);-1==a.Ya&&0<d&&(a.Ya=0<=Jn?Fn()-Jn:-1);a.oa=c;return e};
qja=function(a,b){xo(a.J,function(c){return c.C==b.C})||a.J.push(b)};
rja=function(a){var b=Oo(a.qj().j,1);return tp(a,b)};
tp=function(a,b,c){return 15E3<=b?!0:a.kb?(void 0===c?0:c)?!0:0<a.B?b>=a.B/2:0<a.Fa?b>=a.Fa:!1:!1};
sja=function(a){var b=vo(a.Oh.De,2),c=a.Vg.B,d=a.Oh,e=sp(a),f=rp(e.C),h=rp(e.J),l=rp(d.volume),m=vo(e.K,2),n=vo(e.qa,2),p=vo(d.De,2),q=vo(e.Ba,2),t=vo(e.Fa,2);d=vo(d.zk,2);a=a.nt().clone();a.round();e=So(e,!1);return{saa:b,dD:c,YH:f,NH:h,PB:l,ZH:m,OH:n,De:p,bI:q,PH:t,zk:d,position:a,dI:e}};
uja=function(a,b){tja(a.j,b,function(){return{saa:0,dD:void 0,YH:-1,NH:-1,PB:-1,ZH:-1,OH:-1,De:-1,bI:-1,PH:-1,zk:-1,position:void 0,dI:[]}});
a.j[b]=sja(a)};
tja=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
vp=function(a,b,c){var d=a.t_[b];if(null!=d)return d;d=vja(a,b);var e=ed(up,function(f){return f==b});
a=wja(a,d,d,c,xja[up[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
wp=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
wja=function(a,b,c,d,e){if(a.Ct)return{"if":0,vs:0};var f=a.nt().clone();f.round();var h=yo(),l=sn(),m=a.qj(),n=a.Df?a.Df.getName():"ns",p={};p["if"]=h.B?1:void 0;p.sdk=a.C?a.C:void 0;p.t=a.N$;p.p=[f.top,f.left,f.bottom,f.right];p.tos=Mo(m.u,!1);p.mtos=So(m);p.mcvt=m.Va.B;p.ps=void 0;f=ip(m,Fn(),a.Vq());p.vht=f;p.mut=m.rb.B;p.a=rp(a.Oh.volume);p.mv=rp(m.J);p.fs=a.vz?1:0;p.ft=m.oa.j;p.at=m.D.j;p.as=0<m.C?1:0;p.atos=Mo(m.j);p.ssb=Mo(m.ob,!1);p.amtos=Qia(m.j,!1);p.uac=a.Eb;p.vpt=m.B.j;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=tp(a,m.B.j,!0)?1:0;p.efpf=a.hc;if("gsv"==n||"nis"==n)n=a.Df,0<n.D&&(p.nnut=n.D);p.tcm=oja(a);p.nmt=a.Va;p.bt=a.Ma;p.pst=a.Ya;p.vpaid=a.ea;p.dur=a.B;p.vmtime=a.oa;p.is=a.Vg.B;1<=a.j.length&&(p.i0=a.j[0].dD,p.a0=[a.j[0].PB],p.c0=[a.j[0].De],p.ss0=[a.j[0].zk],n=a.j[0].position,p.p0=n?op(n):void 0);2<=a.j.length&&(p.i1=a.j[1].dD,p.a1=wp(a.j[1].YH,a.j[1].PB,a.j[1].NH),p.c1=wp(a.j[1].ZH,a.j[1].De,a.j[1].OH),p.ss1=wp(a.j[1].bI,a.j[1].zk,a.j[1].PH),n=a.j[1].position,p.p1=n?
op(n):void 0,p.mtos1=a.j[1].dI);3<=a.j.length&&(p.i2=a.j[2].dD,p.a2=wp(a.j[2].YH,a.j[2].PB,a.j[2].NH),p.c2=wp(a.j[2].ZH,a.j[2].De,a.j[2].OH),p.ss2=wp(a.j[2].bI,a.j[2].zk,a.j[2].PH),n=a.j[2].position,p.p2=n?op(n):void 0,p.mtos2=a.j[2].dI);4<=a.j.length&&(p.i3=a.j[3].dD,p.a3=wp(a.j[3].YH,a.j[3].PB,a.j[3].NH),p.c3=wp(a.j[3].ZH,a.j[3].De,a.j[3].OH),p.ss3=wp(a.j[3].bI,a.j[3].zk,a.j[3].PH),n=a.j[3].position,p.p3=n?op(n):void 0,p.mtos3=a.j[3].dI);p.cs=lja(a.Vg);b&&(p.ic=kja(a.Vg),p.dvpt=m.B.u,p.dvs=Qo(m.u,
.5),p.dfvs=Qo(m.u,1),p.davs=Qo(m.j,.5),p.dafvs=Qo(m.j,1),c&&(m.B.u=0,Ria(m.u),Ria(m.j)),a.Wq()&&(p.dtos=m.Ga,p.dav=m.ea,p.dtoss=a.lM+1,c&&(m.Ga=0,m.ea=0,a.lM++)),p.dat=m.D.u,p.dft=m.oa.u,c&&(m.D.u=0,m.oa.u=0));p.ps=[h.D.width,h.D.height];p.bs=[Ln(h.j),h.j.getHeight()];p.scs=[h.C.width,h.C.height];p.dom=h.domain;a.VA&&(p.vds=a.VA);if(0<a.J.length||a.ir)b=g.Lb(a.J),a.ir&&b.push(a.ir),p.pings=g.kn(b,function(q){return q.toString()});
b=g.kn(g.cp(a.J,function(q){return q.J()}),function(q){return q.getId()});
vaa(b);p.ces=b;a.u&&(p.vmer=a.u);a.V&&(p.vmmk=a.V);a.Ga&&(p.vmiec=a.Ga);p.avms=a.Df?a.Df.getName():"ns";a.Df&&g.pd(p,a.Df.Zs());d?(p.c=vo(a.Oh.De,2),p.ss=vo(a.Oh.zk,2)):p.tth=Fn()-yja;p.mc=vo(m.qa,2);p.nc=vo(m.K,2);p.mv=rp(m.J);p.nv=rp(m.C);p.lte=vo(a.mO,2);d=sp(a,e);So(m);p.qmtos=So(d);p.qnc=vo(d.K,2);p.qmv=rp(d.J);p.qnv=rp(d.C);p.qas=0<d.C?1:0;p.qi=a.Ci;p.avms||(p.avms="geo");p.psm=m.Ma.j;p.psv=m.Ma.getValue();p.psfv=m.eb.getValue();p.psa=m.Ya.getValue();l=pha(l.Fc);l.length&&(p.veid=l);a.D&&g.pd(p,
eja(a.D));p.avas=a.MG();p.vs=a.BV();return p};
vja=function(a,b){if(g.Fb(zja,b))return!0;var c=a.Rh[b];return void 0!==c?(a.Rh[b]=!0,!c):!1};
Bja=function(){this.j={};var a=Ze();xp(this,a,document);var b=Aja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)xp(this,c,c.document);xp(this,a.top,a.top.document)}}catch(d){}};
Aja=function(){var a=document.documentElement;try{if(!cn(Ze().top))return"2";var b=[],c=Ze(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}};
xp=function(a,b,c){To(c,"mousedown",function(){return Cja(a)},301);
To(b,"scroll",function(){return Dja(a)},302);
To(c,"touchmove",function(){return Eja(a)},303);
To(c,"mousemove",function(){return Fja(a)},304);
To(c,"keydown",function(){return Gja(a)},305)};
Cja=function(a){g.Wc(a.j,function(b){1E5<b.B||++b.B})};
Dja=function(a){g.Wc(a.j,function(b){1E5<b.j||++b.j})};
Eja=function(a){g.Wc(a.j,function(b){1E5<b.j||++b.j})};
Gja=function(a){g.Wc(a.j,function(b){1E5<b.u||++b.u})};
Fja=function(a){g.Wc(a.j,function(b){1E5<b.C||++b.C})};
Hja=function(){this.j=[];this.u=[]};
yp=function(a,b){return g.Db(a.j,function(c){return c.Ci==b})};
Ija=function(a,b){return b?g.Db(a.j,function(c){return c.Vj.Kt==b}):null};
Jja=function(a,b){return g.Db(a.u,function(c){return 2==c.ip()&&c.Ci==b})};
Ap=function(){var a=zp;return 0==a.j.length?a.u:0==a.u.length?a.j:g.Jb(a.u,a.j)};
Kja=function(a,b){a=1==b.ip()?a.j:a.u;var c=Bb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.Df&&b.Df.DB(),b.dispose(),!0):!1};
Lja=function(a){var b=zp;if(Kja(b,a)){switch(a.ip()){case 0:var c=function(){return null};
case 2:c=function(){return Jja(b,a.Ci)};
break;case 1:c=function(){return yp(b,a.Ci)}}for(var d=c();d;d=c())Kja(b,d)}};
Mja=function(a,b){var c=zp;a=g.cp(a,(void 0===b?0:b)?function(d){return!yp(c,d.Ci)}:function(d){return!Ija(c,d.Vj.Kt)});
c.j.push.apply(c.j,g.qa(a))};
Nja=function(a){var b=[];g.$b(a,function(c){xo(zp.j,function(d){return d.Vj.Kt===c.Vj.Kt&&d.Ci===c.Ci})||(zp.j.push(c),b.push(c))})};
Bp=function(){this.j=this.u=null};
Oja=function(a,b){function c(d,e){b(d,e)}
if(null==a.u)return!1;a.j=g.Db(a.u,function(d){return null!=d&&d.yS()});
a.j&&(a.j.init(c)?Bia(a.j.j):b(a.j.j.ez(),a.j));return null!=a.j};
Cp=function(a){a=Pja(a);Go.call(this,a.length?a[a.length-1]:new Co(Ym,0));this.B=a;this.u=null};
Pja=function(a){if(!a.length)return[];a=(0,g.cp)(a,function(c){return null!=c&&c.CB()});
for(var b=1;b<a.length;b++)Do(a[b-1],a[b]);return a};
Dp=function(a,b,c,d){Fo.call(this,a,b,c,d);this.ea=this.V=this.D=this.J=this.B=null};
Jp=function(a){return a.B&&a.B.takeRecords?a.B.takeRecords():[]};
Rja=function(a){if(!a.element)return!1;var b=a.element,c=a.u.j.B,d=sn().j.j;a.B=new c.IntersectionObserver(rn(d,function(e){return Kp(a,e)}),Qja);
d=rn(d,function(){a.B.unobserve(b);a.B.observe(b);Kp(a,Jp(a))});
c.ResizeObserver?(a.J=new c.ResizeObserver(d),a.J.observe(b)):c.MutationObserver&&(a.D=new g.Pa.MutationObserver(d),a.D.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.B.observe(b);Kp(a,Jp(a));return!0};
Kp=function(a,b){try{if(b.length){a.V||(a.V=Fn());var c=Sja(b),d=sia(a.element,a.u.j.B),e=d.x,f=d.y;a.j=new Kn(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=via(c.intersectionRect);a.C=Nn(h,a.j.left-h.left,a.j.top-h.top)}}catch(l){a.DB(),En(299,l)}};
Sja=function(a){return mn(a,function(b,c){return b.time>c.time?b:c},a[0])};
Lp=function(a){a=void 0===a?Ym:a;Go.call(this,new Co(a,2))};
Mp=function(){var a=Tja();Co.call(this,Ym.top,a,"geo")};
Tja=function(){sn();var a=yo();return a.B||a.u?0:2};
Uja=function(){};
Np=function(){this.done=!1;this.j={m3:0,LT:0,ddb:0,KU:0,FN:-1,X3:0,W3:0,Y3:0,B$:0};this.D=null;this.J=!1;this.B=null;this.K=0;this.u=new Bo(this)};
Pp=function(){var a=Op;a.J||(a.J=!0,Vja(a,function(){return a.C.apply(a,g.qa(g.Ia.apply(0,arguments)))}),a.C())};
Wja=function(){nn(Uja);var a=nn(Bp);null!=a.j&&a.j.j?Bia(a.j.j):yo().update(Ym)};
Qp=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{Wja();var d=Fn();sn().D=d;if(null!=nn(Bp).j)for(var e=0;e<b.length;e++)aja(b[e],d,c);for(d=0;d<b.length;d++)bja(b[d]);++a.j.KU}finally{c?g.$b(b,function(f){f.Oh.De=0}):a.u.schedule()}}};
Vja=function(a,b){if(!a.D){b=Cn(142,b);pn();var c;zo.visibilityState?c="visibilitychange":zo.mozVisibilityState?c="mozvisibilitychange":zo.webkitVisibilityState&&(c="webkitvisibilitychange");c&&$m(zo,c,b,{capture:!1})&&(a.D=b)}};
Xja=function(){var a=nn(Bp);if(null!=a.j){var b=Ap(),c=a.j;g.$b(b,function(d){return Zia(d,c)})}};
Yja=function(a,b){a=a.K;Hn&&(a+=b-In);return a};
Zja=function(a){a=void 0===a?function(){return{}}:a;
zn.SU="av-js";yn.j=.01;hia([function(b){var c=sn(),d={};d=(d.bin=c.u,d.type="error",d);c=Tm(c.Fc);if(!Op.B){var e=Op,f=Ym.document,h=0<=Gn?Fn()-Gn:-1,l=Fn();-1==e.j.FN&&(h=l);var m=yo(),n=sn(),p=Tm(n.Fc),q=Ap();try{if(0<q.length){var t=m.j;t&&(p.bs=[Ln(t),t.getHeight()]);var v=m.D;v&&(p.ps=[v.width,v.height]);Ym.screen&&(p.scs=[Ym.screen.width,Ym.screen.height])}else p.url=encodeURIComponent(Ym.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512)));
p.tt=h;p.pt=Gn;p.bin=n.u;void 0!==Ym.google_osd_load_pub_page_exp&&(p.olpp=Ym.google_osd_load_pub_page_exp);p.deb=[1,e.j.m3,e.j.LT,e.j.KU,e.j.FN,0,e.u.u,e.j.X3,e.j.W3,e.j.Y3,e.j.B$,-1].join(";");p.tvt=Yja(e,l);m.u&&(p.inapp=1);if(null!==Ym&&Ym!=Ym.top){0<q.length&&(p.iframe_loc=encodeURIComponent(Ym.location.href.substring(0,512)));var y=m.K;p.is=[Ln(y),y.getHeight()]}}catch(A){p.error=1}Op.B=p}t=g.md(Op.B);v=sn().j;1==Sm(v.B,"prf")?(y=new qn,e=v.j,f=0,-1<e.j&&(f=e.B.j.now()-e.j),y=gi(y,1,Ah(e.C+
f),0),e=v.j,y=gi(y,5,Ch(-1<e.j?e.u+1:e.u),0),y=gi(y,2,v.u.j.B(),0),y=gi(y,3,v.u.j.u(),0),v=gi(y,4,v.u.j.j(),0),y={},v=(y.pf=g.gg(v.j()),y)):v={};g.pd(t,v);g.pd(b,d,c,t,a())}])};
aka=function(){var a=$ja||Ym;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("&")};
Rp=function(){var a="youtube.player.web_20230723_00_RC01".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20230723_00_RC01".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20230723_00_RC01".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20230723_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_20230723_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};
bka=function(){return"av.default_js".includes("ima_html5_sdk")?{Vo:"ima",Xo:null}:"av.default_js".includes("ima_native_sdk")?{Vo:"nima",Xo:null}:"av.default_js".includes("admob-native-video-javascript")?{Vo:"an",Xo:null}:"youtube.player.web_20230723_00_RC01".includes("cast_js_sdk")?{Vo:"cast",Xo:Rp()}:"youtube.player.web_20230723_00_RC01".includes("youtube.player.web")?{Vo:"yw",Xo:Rp()}:"youtube.player.web_20230723_00_RC01".includes("outstream_web_client")?{Vo:"out",Xo:Rp()}:"youtube.player.web_20230723_00_RC01".includes("drx_rewarded_web")?
{Vo:"r",Xo:Rp()}:"youtube.player.web_20230723_00_RC01".includes("gam_native_web_video")?{Vo:"n",Xo:Rp()}:"youtube.player.web_20230723_00_RC01".includes("admob_interstitial_video")?{Vo:"int",Xo:Rp()}:{Vo:"j",Xo:null}};
Up=function(a,b){var c={sv:"954"};null!==Sp&&(c.v=Sp);c.cb=cka;c.nas=zp.j.length;c.msg=a;void 0!==b&&(a=dka(b))&&(c.e=Tp[a]);return c};
Vp=function(a){return cc(a,"custom_metric_viewable")};
dka=function(a){var b=Vp(a)?"custom_metric_viewable":a.toLowerCase();return ed(up,function(c){return c==b})};
eka=function(){this.j=void 0;this.u=!1;this.B=0;this.C=-1;this.D="tos"};
hka=function(a){try{var b=a.split(",");return b.length>g.bd(fka).length?null:mn(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===gka[d[0]]||!gka[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
ika=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?Po(b.j,a.j):Po(b.u,a.j);case "tos":return a.u?Oo(b.j,a.j):Oo(b.u,a.j)}return 0};
Wp=function(a,b,c,d){jp.call(this,b,d);this.K=a;this.V=c};
Xp=function(){};
Yp=function(a){jp.call(this,"fully_viewable_audible_half_duration_impression",a)};
Zp=function(a){this.j=a};
$p=function(a,b){jp.call(this,a,b)};
aq=function(a){kp.call(this,"measurable_impression",a)};
bq=function(){Zp.apply(this,arguments)};
cq=function(a,b,c){np.call(this,a,b,c)};
dq=function(a){a=void 0===a?Ym:a;Go.call(this,new Co(a,2))};
eq=function(a,b,c){np.call(this,a,b,c)};
fq=function(a){a=void 0===a?Ym:a;Go.call(this,new Co(a,2))};
gq=function(){Co.call(this,Ym,2,"mraid");this.Ma=0;this.qa=this.Ba=!1;this.K=null;this.u=mia(this.B);this.C.j=new Kn(0,0,0,0);this.Oa=!1};
hq=function(a,b,c){a.fu("addEventListener",b,c)};
mka=function(a){sn().C=!!a.fu("isViewable");hq(a,"viewableChange",jka);"loading"===a.fu("getState")?hq(a,"ready",kka):lka(a)};
lka=function(a){"string"===typeof a.u.Hn.AFMA_LIDAR?(a.Ba=!0,nka(a)):(a.u.compatibility=3,a.K="nc",a.fail("w"))};
nka=function(a){a.qa=!1;var b=1==Sm(sn().Fc,"rmmt"),c=!!a.fu("isViewable");(b?!c:1)&&pn().setTimeout(Dn(524,function(){a.qa||(oka(a),En(540,Error()),a.K="mt",a.fail("w"))}),500);
pka(a);hq(a,a.u.Hn.AFMA_LIDAR,qka)};
pka=function(a){var b=1==Sm(sn().Fc,"sneio"),c=void 0!==a.u.Hn.AFMA_LIDAR_EXP_1,d=void 0!==a.u.Hn.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.Hn.AFMA_LIDAR_EXP_2=!0);c&&(a.u.Hn.AFMA_LIDAR_EXP_1=!b)};
oka=function(a){a.fu("removeEventListener",a.u.Hn.AFMA_LIDAR,qka);a.Ba=!1};
rka=function(a,b){if("loading"===a.fu("getState"))return new g.xe(-1,-1);b=a.fu(b);if(!b)return new g.xe(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.xe(-1,-1):new g.xe(a,b)};
kka=function(){try{var a=nn(gq);a.fu("removeEventListener","ready",kka);lka(a)}catch(b){En(541,b)}};
qka=function(a,b){try{var c=nn(gq);c.qa=!0;var d=a?new Kn(a.y,a.x+a.width,a.y+a.height,a.x):new Kn(0,0,0,0);var e=Fn(),f=Ao();var h=new On(e,f,c);h.j=d;h.volume=b;c.xt(h)}catch(l){En(542,l)}};
jka=function(a){var b=sn(),c=nn(gq);a&&!b.C&&(b.C=!0,c.Oa=!0,c.K&&c.fail("w",!0))};
iq=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.K=(a.start=this.y5,a.firstquartile=this.t5,a.midpoint=this.v5,a.thirdquartile=this.z5,a.complete=this.q5,a.error=this.r5,a.pause=this.BP,a.resume=this.RY,a.skip=this.x5,a.viewable_impression=this.jp,a.mute=this.PA,a.unmute=this.PA,a.fullscreen=this.u5,a.exitfullscreen=this.s5,a.fully_viewable_audible_half_duration_impression=this.jp,a.measurable_impression=this.jp,a.abandon=this.BP,a.engagedview=this.jp,a.impression=this.jp,a.creativeview=
this.jp,a.progress=this.PA,a.custom_metric_viewable=this.jp,a.bufferstart=this.BP,a.bufferfinish=this.RY,a.audio_measurable=this.jp,a.audio_audible=this.jp,a);a={};this.V=(a.overlay_resize=this.w5,a.abandon=this.vN,a.close=this.vN,a.collapse=this.vN,a.overlay_unmeasurable_impression=function(b){return vp(b,"overlay_unmeasurable_impression",Ao())},a.overlay_viewable_immediate_impression=function(b){return vp(b,"overlay_viewable_immediate_impression",Ao())},a.overlay_unviewable_impression=function(b){return vp(b,
"overlay_unviewable_impression",Ao())},a.overlay_viewable_end_of_session_impression=function(b){return vp(b,"overlay_viewable_end_of_session_impression",Ao())},a);
sn().u=3;ska(this);this.B=!1};
jq=function(a,b,c,d){b=a.xE(null,d,!0,b);b.C=c;Mja([b],a.B);return b};
tka=function(a,b,c){nha(b);var d=a.j;g.$b(b,function(e){var f=g.kn(e.criteria,function(h){var l=hka(h);if(null==l)h=null;else if(h=new eka,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.u=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});
xo(f,function(h){return null==h})||qja(c,new Wp(e.id,e.event,f,d))})};
uka=function(){var a=[],b=sn();a.push(nn(Mp));Sm(b.Fc,"mvp_lv")&&a.push(nn(gq));b=[new dq,new fq];b.push(new Cp(a));b.push(new Lp(Ym));return b};
vka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=Fn(),c=sn(),d=yo();Gn=b;c.B=79463069;"o"!==a.u&&($ja=Cha(Ym));if(Nha()){Op.j.LT=0;Op.j.FN=Fn()-b;var e=uka(),f=nn(Bp);f.u=e;Oja(f,function(){kq()})?Op.done||(Xja(),Do(f.j.j,a),Pp()):d.B?kq():Pp()}else lq=!0}catch(h){throw zp.reset(),h;
}}};
nq=function(a){Op.u.cancel();mq=a;Op.done=!0};
oq=function(a){if(a.u)return a.u;var b=nn(Bp).j;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u};
pq=function(a,b,c){if(null==a.j)return b.VA|=4,!1;a=wka(a.j,c,b);b.VA|=a;return 0==a};
kq=function(){var a=[new Lp(Ym)],b=nn(Bp);b.u=a;Oja(b,function(){nq("i")})?Op.done||(Xja(),Pp()):nq("i")};
xka=function(a,b){if(!a.Zb){var c=vp(a,"start",Ao());c=a.CP.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="954";null!==Sp&&(d.v=Sp);Uj(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=aka();Uj(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//pagead2.googlesyndication.com/pagead/gen_204?"+Jo(Io(new Ho,d));Lia(b);a.Zb=!0}};
qq=function(a,b,c){Qp(Op,[a],!Ao());uja(a,c);4!=c&&tja(a.Ba,c,a.bH);return vp(a,b,Ao())};
ska=function(a){Zja(function(){var b=yka();null!=a.u&&(b.sdk=a.u);var c=nn(Bp);null!=c.j&&(b.avms=c.j.getName());return b})};
zka=function(a,b,c,d){if(a.B)var e=yp(zp,b);else e=Ija(zp,c),null!==e&&e.Ci!==b&&(a.aC(e),e=null);e||(b=a.xE(c,Fn(),!1,b),0==zp.u.length&&(sn().B=79463069),Nja([b]),e=b,e.C=oq(a),d&&(e.eb=d));return e};
Aka=function(a){g.$b(zp.j,function(b){3==b.Vi&&a.aC(b)})};
Bka=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
yka=function(){var a=yo(),b={},c={},d={};return Object.assign({},(b.sv="954",b),null!==Sp&&(c.v=Sp,c),(d["if"]=a.B?"1":"0",d.nas=String(zp.j.length),d))};
rq=function(a){jp.call(this,"audio_audible",a)};
sq=function(a){kp.call(this,"audio_measurable",a)};
tq=function(){Zp.apply(this,arguments)};
uq=function(){};
Cka=function(a){this.j=a};
wka=function(a,b,c){a=a.u();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==Sp&&(d.v=Sp,d),(e.sv="954",e.cb=cka,e.e=Dka(b),e));e=vp(c,b,Ao());g.pd(d,e);c.t_[b]=e;d=2==c.ip()?Kia(d).join("&"):c.CP.j(d).j;try{return a(c.Ci,d,b),0}catch(f){return 2}}else return 1};
Dka=function(a){var b=Vp(a)?"custom_metric_viewable":a;a=ed(up,function(c){return c==b});
return Tp[a]};
vq=function(){iq.call(this);this.J=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
Eka=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.j&&Array.isArray(c)&&tka(a,c,b)};
Fka=function(a,b,c){var d=yp(zp,b);d||(d=c.opt_nativeTime||-1,d=jq(a,b,oq(a),d),c.opt_osdId&&(d.eb=c.opt_osdId));return d};
Gka=function(a,b,c){var d=yp(zp,b);d||(d=jq(a,b,"n",c.opt_nativeTime||-1));return d};
Hka=function(a,b){var c=yp(zp,b);c||(c=jq(a,b,"h",-1));return c};
Ika=function(a){sn();switch(oq(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};
Lka=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.pd(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.gH(b,c);c=f?f.CP:a.gM();if(e.opt_bounds)return c.j(Up("ol",d));if(void 0!==d)if(void 0!==dka(d))if(lq)b=Up("ue",d);else if(vka(a),"i"==mq)b=Up("i",d),b["if"]=0;else if(b=a.gH(b,e))if(a.B&&3==b.Vi)b="stopped";else{b:{"i"==mq&&(b.Ct=!0);f=e.opt_fullscreen;void 0!==f&&Xo(b,!!f);var h;if(f=!yo().u)(f=jc(g.nc(),"CrKey")||jc(g.nc(),"PlayStation")||jc(g.nc(),"Roku")||xia()||jc(g.nc(),"Xbox"))||
(f=g.nc(),f=jc(f,"AppleTV")||jc(f,"Apple TV")||jc(f,"CFNetwork")||jc(f,"tvOS")),f||(f=g.nc(),f=jc(f,"sdk_google_atv_x86")||jc(f,"Android TV")),f=!f;f&&(pn(),f=0===an(zo));if(h=f){switch(b.ip()){case 1:xka(b,"pv");break;case 2:a.ZP(b)}nq("pv")}f=d.toLowerCase();if(h=!h)h=Sm(sn().Fc,"ssmol")&&"loaded"===f?!1:g.Fb(Jka,f);if(h&&0==b.Vi){"i"!=mq&&(Op.done=!1);h=void 0!==e?e.opt_nativeTime:void 0;Jn=h="number"===typeof h?h:Fn();b.iC=!0;var l=Ao();b.Vi=1;b.Rh={};b.Rh.start=!1;b.Rh.firstquartile=!1;b.Rh.midpoint=
!1;b.Rh.thirdquartile=!1;b.Rh.complete=!1;b.Rh.resume=!1;b.Rh.pause=!1;b.Rh.skip=!1;b.Rh.mute=!1;b.Rh.unmute=!1;b.Rh.viewable_impression=!1;b.Rh.measurable_impression=!1;b.Rh.fully_viewable_audible_half_duration_impression=!1;b.Rh.fullscreen=!1;b.Rh.exitfullscreen=!1;b.lM=0;l||(b.qj().V=h);Qp(Op,[b],!l)}(h=b.Zw[f])&&fp(b.Vg,h);Sm(sn().Fc,"fmd")||g.Fb(Kka,f)&&b.ir&&b.ir.u(b,null);switch(b.ip()){case 1:var m=Vp(f)?a.K.custom_metric_viewable:a.K[f];break;case 2:m=a.V[f]}if(m&&(d=m.call(a,b,e,d),Sm(sn().Fc,
"fmd")&&g.Fb(Kka,f)&&b.ir&&b.ir.u(b,null),void 0!==d)){e=Up(void 0,f);g.pd(e,d);d=e;break b}d=void 0}3==b.Vi&&(a.B?b.Df&&b.Df.DB():a.aC(b));b=d}else b=Up("nf",d);else b=void 0;else lq?b=Up("ue"):f?(b=Up(),g.pd(b,wja(f,!0,!1,!1))):b=Up("nf");return"string"===typeof b?a.B&&"stopped"===b?wq:c.j():c.j(b)};
xq=function(a,b){b&&(a.C=b)};
Mka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.u,b};
yq=function(a,b,c){c=void 0===c?{}:c;a=Lka(nn(vq),b,c,a);return Mka(a)};
Nka=function(a,b){b=void 0===b?!1:b;var c=nn(vq).gH(a,{});c?qp(c):b&&(a=nn(vq).xE(null,Fn(),!1,a),a.Vi=3,Nja([a]))};
Oka=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.B=!b&&/[?&]ae=1(&|$)/.test(a);this.C=!b&&/[?&]ae=2(&|$)/.test(a);if((this.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.u=c}};
Pka=function(a,b,c,d,e){var f=window,h=c?"//pagead2.googlesyndication.com/bg/"+g.Ce(c)+".js":"";c=f.document;var l={};b&&(l._scs_=b);l._bgu_=h;l._bgp_=d;l._li_="v_h.3.0.0.0";e&&(l._upb_=e);(b=f.GoogleTyFxhY)&&"function"==typeof b.push||(b=f.GoogleTyFxhY=[]);b.push(l);b=Ie(c).createElement("SCRIPT");b.type="text/javascript";b.async=!0;a=Lba(g.Vd("//tpc.googlesyndication.com/sodar/%{path}"),{path:g.Ce(a)+".js"});g.fl(b,a);(f=(f.GoogleTyFxhYEET||{})[b.src])?f():c.getElementsByTagName("head")[0].appendChild(b)};
Ska=function(a){if(g.ec(g.De(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Ml(a)}catch(c){return null!=g.Db(Qka,function(d){return 0<a.search(d)})}return b.J.match(Rka)?!0:null!=g.Db(Qka,function(c){return null!=a.match(c)})};
g.zq=function(a,b){return a.replace(Tka,function(c,d){try{var e=g.kd(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.ec(g.De(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
Bq=function(a){g.Hd.call(this);var b=this;this.D=this.u=0;this.En=null!=a?a:{Ki:function(e,f){return setTimeout(e,f)},
Tj:function(e){clearTimeout(e)}};
var c,d;this.j=null!=(d=null==(c=window.navigator)?void 0:c.onLine)?d:!0;this.B=function(){return g.Ha(function(e){return g.z(e,Aq(b),0)})};
window.addEventListener("offline",this.B);window.addEventListener("online",this.B);this.D||this.nf()};
Uka=function(){var a=g.Cq;Bq.instance||(Bq.instance=new Bq(a));return Bq.instance};
Aq=function(a,b){return a.C?a.C:a.C=new Promise(function(c){var d,e,f,h;return g.Ha(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.ya(l,2,3),d&&(a.u=a.En.Ki(function(){d.abort()},b||2E4)),g.z(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:h=!0;case 3:g.Ba(l);a.C=void 0;a.u&&(a.En.Tj(a.u),a.u=0);h!==a.j&&(a.j=h,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(h);g.Ca(l,0);break;case 2:g.Aa(l),h=!1,l.Ka(3)}})})};
Dq=function(){this.data=[];this.j=-1};
Vka=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};
Eq=function(a){a.setAttribute("role","link")};
Gq=function(a,b){Array.isArray(b)&&(b=b.join(" "));""===b||void 0==b?(Fq||(b={},Fq=(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=Fq,"label"in b?a.setAttribute("aria-label",b.label):a.removeAttribute("aria-label")):a.setAttribute("aria-label",b)};
Hq=function(a){a=a.getAttribute("aria-label");return null==a||void 0==a?"":String(a)};
g.Iq=function(a,b,c){g.G.call(this);this.j=null;this.C=!1;this.J=a;this.D=c;this.u=b||window;this.B=(0,g.bb)(this.D1,this)};
g.Jq=function(a){a.isActive()||a.start()};
Wka=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
Xka=function(a){a=a.u;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.Kq=function(a,b,c){g.G.call(this);this.j=a;this.Ti=b||0;this.u=c;this.B=(0,g.bb)(this.AS,this)};
g.Lq=function(a,b){a.isActive()||a.start(b)};
g.Mq=function(a){a.stop();a.AS()};
g.Nq=function(a){a.isActive()&&g.Mq(a)};
Oq=function(a,b){this.j=a[g.Pa.Symbol.iterator]();this.u=b};
Yka=function(a,b){return new Oq(a,b)};
Zka=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
Pq=function(a){return a.classList?a.classList:Zka(a).match(/\S+/g)||[]};
g.Qq=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Rq=function(a,b){return a.classList?a.classList.contains(b):g.Fb(Pq(a),b)};
g.Sq=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Rq(a,b)){var c=Zka(a);g.Qq(a,c+(0<c.length?" "+b:b))}};
g.Tq=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.Sq(a,e)});
else{var c={};Array.prototype.forEach.call(Pq(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.Qq(a,b)}};
g.Uq=function(a,b){a.classList?a.classList.remove(b):g.Rq(a,b)&&g.Qq(a,Array.prototype.filter.call(Pq(a),function(c){return c!=b}).join(" "))};
g.Vq=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Uq(a,c)}):g.Qq(a,Array.prototype.filter.call(Pq(a),function(c){return!g.Fb(b,c)}).join(" "))};
g.Wq=function(a,b,c){c?g.Sq(a,b):g.Uq(a,b)};
$ka=function(a,b){var c=!g.Rq(a,b);g.Wq(a,b,c)};
$q=function(a){if(a instanceof Xq||a instanceof Yq||a instanceof Zq)return a;if("function"==typeof a.next)return new Xq(function(){return a});
if("function"==typeof a[Symbol.iterator])return new Xq(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Kk)return new Xq(function(){return a.Kk()});
throw Error("Not an iterator or iterable.");};
Xq=function(a){this.u=a};
Yq=function(a){this.u=a};
Zq=function(a){Xq.call(this,function(){return a});
this.B=a};
g.ar=function(a,b){this.u={};this.j=[];this.Cu=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.ar)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])};
ala=function(a,b){return a===b};
cr=function(a){if(a.size!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];br(a.u,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],br(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};
br=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.dr=function(){g.Hd.call(this);this.j=0;this.endTime=this.startTime=null};
bla=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.Un(a,"transition",b.join(","))};
er=function(a,b,c,d,e){g.dr.call(this);this.u=a;this.D=b;this.J=c;this.C=d;this.K=Array.isArray(e)?e:[e]};
dla=function(a,b,c,d){return new er(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
fla=function(a){a=kc(a);if(""==a)return null;if(dc(a,"url("))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;for(var b=/([\-\w]+)\(/g,c;c=b.exec(a);)if(!(c[1].toLowerCase()in ela))return null}return a};
fr=function(a,b){a=g.Pa[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
gla=function(a){var b=g.Pa.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
hla=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Pe&&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)};
mla=function(a){if(!a)return je;var b=document.createElement("div").style;ila(a).forEach(function(c){var d=g.Qc&&c in jla?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");cc(d,"--")||cc(d,"var")||(c=hla(kla,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=fla(c),null!=c&&hla(lla,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return gca(g.Vd("Output of CSS sanitizer"),b.cssText||"")};
ila=function(a){g.Wa(a)?a=g.Lb(a):(a=g.bd(a),g.Hb(a,"cssText"));return a};
g.hr=function(a){var b,c=b=0,d=!1;a=a.split(nla);for(var e=0;e<a.length;e++){var f=a[e];g.gr.test(f)?(b++,c++):ola.test(f)?d=!0:pla.test(f)?c++:qla.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
ir=function(a,b,c,d,e,f,h,l){this.j=a;this.K=b;this.B=c;this.D=d;this.C=e;this.J=f;this.u=h;this.V=l};
jr=function(a,b){if(0==b)return a.j;if(1==b)return a.u;var c=re(a.j,a.B,b),d=re(a.B,a.C,b);a=re(a.C,a.u,b);c=re(c,d,b);d=re(d,a,b);return re(c,d,b)};
rla=function(a,b){var c=(b-a.j)/(a.u-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=jr(a,c);var l=(jr(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=jr(a,c);return c};
kr=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
lr=function(a){return(a=a.exec(g.nc()))?a[1]:""};
mr=function(a){return 0<=g.mc(sla,a)};
g.nr=function(a){g.G.call(this);this.J=1;this.B=[];this.C=0;this.j=[];this.u={};this.K=!!a};
tla=function(a,b,c){g.Lf(function(){a.apply(b,c)})};
g.or=function(a){this.j=a};
pr=function(a){this.j=a};
ula=function(a){this.data=a};
vla=function(a){return void 0===a||a instanceof ula?a:new ula(a)};
qr=function(a){this.j=a};
g.wla=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.eb()||!!b&&b>g.eb()};
g.rr=function(a){this.j=a};
xla=function(){};
Ir=function(){};
Jr=function(a){this.j=a};
Kr=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a};
yla=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a};
Mr=function(a,b){this.u=a;this.j=null;if(g.Pe&&!g.Oc(9)){Lr||(Lr=new g.ar);this.j=Lr.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)),Lr.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}};
Nr=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return zla[b]})};
Or=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
Pr=function(a,b){this.u=a;this.j=b+"::"};
g.Qr=function(a){var b=new Kr;return b.isAvailable()?a?new Pr(b,a):b:null};
Rr=function(a,b){this.j=a;this.Vd=b};
Sr=function(a){this.j=[];if(a)a:{if(a instanceof Sr){var b=a.hp();a=a.lm();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new Rr(b[d],a[d]));break a}}else b=g.bd(a),a=ad(a);for(c=0;c<b.length;c++)this.gi(b[c],a[c])}};
Ala=function(){Sr.apply(this,arguments)};
Tr=function(){};
Bla=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 Ur.ox(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};
Vr=function(a){for(var b=a.length;0<=--b;)a[b]=0};
Wr=function(a,b,c,d,e){this.zZ=a;this.D4=b;this.C4=c;this.r4=d;this.i6=e;this.aW=a&&a.length};
Xr=function(a,b){this.LU=a;this.Qz=0;this.uu=b};
Yr=function(a,b){a.Eg[a.pending++]=b&255;a.Eg[a.pending++]=b>>>8&255};
Zr=function(a,b,c){a.Xh>16-c?(a.mj|=b<<a.Xh&65535,Yr(a,a.mj),a.mj=b>>16-a.Xh,a.Xh+=c-16):(a.mj|=b<<a.Xh&65535,a.Xh+=c)};
$r=function(a,b,c){Zr(a,c[2*b],c[2*b+1])};
Cla=function(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(0<--b);return c>>>1};
Dla=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]=Cla(d[e]++,e))};
Ela=function(a){var b;for(b=0;286>b;b++)a.Yj[2*b]=0;for(b=0;30>b;b++)a.Cv[2*b]=0;for(b=0;19>b;b++)a.Mi[2*b]=0;a.Yj[512]=1;a.zr=a.KA=0;a.tm=a.matches=0};
Fla=function(a){8<a.Xh?Yr(a,a.mj):0<a.Xh&&(a.Eg[a.pending++]=a.mj);a.mj=0;a.Xh=0};
Gla=function(a,b,c){Fla(a);Yr(a,c);Yr(a,~c);Ur.zy(a.Eg,a.window,b,c,a.pending);a.pending+=c};
Hla=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]};
as=function(a,b,c){for(var d=a.Lg[c],e=c<<1;e<=a.Nq;){e<a.Nq&&Hla(b,a.Lg[e+1],a.Lg[e],a.depth)&&e++;if(Hla(b,d,a.Lg[e],a.depth))break;a.Lg[c]=a.Lg[e];c=e;e<<=1}a.Lg[c]=d};
Ila=function(a,b,c){var d=0;if(0!==a.tm){do{var e=a.Eg[a.ZB+2*d]<<8|a.Eg[a.ZB+2*d+1];var f=a.Eg[a.dO+d];d++;if(0===e)$r(a,f,b);else{var h=bs[f];$r(a,h+256+1,b);var l=cs[h];0!==l&&(f-=ds[h],Zr(a,f,l));e--;h=256>e?es[e]:es[256+(e>>>7)];$r(a,h,c);l=fs[h];0!==l&&(e-=gs[h],Zr(a,e,l))}}while(d<a.tm)}$r(a,256,b)};
hs=function(a,b){var c=b.LU,d=b.uu.zZ,e=b.uu.aW,f=b.uu.r4,h,l=-1;a.Nq=0;a.rz=573;for(h=0;h<f;h++)0!==c[2*h]?(a.Lg[++a.Nq]=l=h,a.depth[h]=0):c[2*h+1]=0;for(;2>a.Nq;){var m=a.Lg[++a.Nq]=2>l?++l:0;c[2*m]=1;a.depth[m]=0;a.zr--;e&&(a.KA-=d[2*m+1])}b.Qz=l;for(h=a.Nq>>1;1<=h;h--)as(a,c,h);m=f;do h=a.Lg[1],a.Lg[1]=a.Lg[a.Nq--],as(a,c,1),d=a.Lg[1],a.Lg[--a.rz]=h,a.Lg[--a.rz]=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.Lg[1]=m++,as(a,c,1);while(2<=
a.Nq);a.Lg[--a.rz]=a.Lg[1];h=b.LU;m=b.Qz;d=b.uu.zZ;e=b.uu.aW;f=b.uu.D4;var n=b.uu.C4,p=b.uu.i6,q,t=0;for(q=0;15>=q;q++)a.jq[q]=0;h[2*a.Lg[a.rz]+1]=0;for(b=a.rz+1;573>b;b++){var v=a.Lg[b];q=h[2*h[2*v+1]+1]+1;q>p&&(q=p,t++);h[2*v+1]=q;if(!(v>m)){a.jq[q]++;var y=0;v>=n&&(y=f[v-n]);var A=h[2*v];a.zr+=A*(q+y);e&&(a.KA+=A*(d[2*v+1]+y))}}if(0!==t){do{for(q=p-1;0===a.jq[q];)q--;a.jq[q]--;a.jq[q+1]+=2;a.jq[p]--;t-=2}while(0<t);for(q=p;0!==q;q--)for(v=a.jq[q];0!==v;)d=a.Lg[--b],d>m||(h[2*d+1]!==q&&(a.zr+=(q-
h[2*d+1])*h[2*d],h[2*d+1]=q),v--)}Dla(c,l,a.jq)};
Jla=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.Mi[2*n]+=h:0!==n?(n!==e&&a.Mi[2*n]++,a.Mi[32]++):10>=h?a.Mi[34]++:a.Mi[36]++,h=0,e=n,0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}};
Kla=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 $r(a,n,a.Mi);while(0!==--h)}else 0!==n?(n!==e&&($r(a,n,a.Mi),h--),$r(a,16,a.Mi),Zr(a,h-3,2)):10>=h?($r(a,17,a.Mi),Zr(a,h-3,3)):($r(a,18,a.Mi),Zr(a,h-11,7));h=0;e=n;0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}};
Lla=function(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.Yj[2*c])return 0;if(0!==a.Yj[18]||0!==a.Yj[20]||0!==a.Yj[26])return 1;for(c=32;256>c;c++)if(0!==a.Yj[2*c])return 1;return 0};
is=function(a,b,c){a.Eg[a.ZB+2*a.tm]=b>>>8&255;a.Eg[a.ZB+2*a.tm+1]=b&255;a.Eg[a.dO+a.tm]=c&255;a.tm++;0===b?a.Yj[2*c]++:(a.matches++,b--,a.Yj[2*(bs[c]+256+1)]++,a.Cv[2*(256>b?es[b]:es[256+(b>>>7)])]++);return a.tm===a.tD-1};
ks=function(a,b){a.msg=js[b];return b};
ls=function(a){for(var b=a.length;0<=--b;)a[b]=0};
ms=function(a){var b=a.state,c=b.pending;c>a.Me&&(c=a.Me);0!==c&&(Ur.zy(a.vk,b.Eg,b.hE,c,a.Xz),a.Xz+=c,b.hE+=c,a.ZQ+=c,a.Me-=c,b.pending-=c,0===b.pending&&(b.hE=0))};
ps=function(a,b){var c=0<=a.Ok?a.Ok:-1,d=a.Db-a.Ok,e=0;if(0<a.level){2===a.ue.jM&&(a.ue.jM=Lla(a));hs(a,a.FH);hs(a,a.vG);Jla(a,a.Yj,a.FH.Qz);Jla(a,a.Cv,a.vG.Qz);hs(a,a.cU);for(e=18;3<=e&&0===a.Mi[2*Mla[e]+1];e--);a.zr+=3*(e+1)+14;var f=a.zr+3+7>>>3;var h=a.KA+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&-1!==c)Zr(a,b?1:0,3),Gla(a,c,d);else if(4===a.strategy||h===f)Zr(a,2+(b?1:0),3),Ila(a,ns,os);else{Zr(a,4+(b?1:0),3);c=a.FH.Qz+1;d=a.vG.Qz+1;e+=1;Zr(a,c-257,5);Zr(a,d-1,5);Zr(a,e-4,4);for(f=0;f<e;f++)Zr(a,
a.Mi[2*Mla[f]+1],3);Kla(a,a.Yj,c-1);Kla(a,a.Cv,d-1);Ila(a,a.Yj,a.Cv)}Ela(a);b&&Fla(a);a.Ok=a.Db;ms(a.ue)};
qs=function(a,b){a.Eg[a.pending++]=b};
rs=function(a,b){a.Eg[a.pending++]=b>>>8&255;a.Eg[a.pending++]=b&255};
Nla=function(a,b){var c=a.aX,d=a.Db,e=a.ol,f=a.oX,h=a.Db>a.dj-262?a.Db-(a.dj-262):0,l=a.window,m=a.Eu,n=a.Kp,p=a.Db+258,q=l[d+e-1],t=l[d+e];a.ol>=a.EV&&(c>>=2);f>a.kc&&(f=a.kc);do{var v=b;if(l[v+e]===t&&l[v+e-1]===q&&l[v]===l[d]&&l[++v]===l[d+1]){d+=2;for(v++;l[++d]===l[++v]&&l[++d]===l[++v]&&l[++d]===l[++v]&&l[++d]===l[++v]&&l[++d]===l[++v]&&l[++d]===l[++v]&&l[++d]===l[++v]&&l[++d]===l[++v]&&d<p;);v=258-(p-d);d=p-258;if(v>e){a.Oz=b;e=v;if(v>=f)break;q=l[d+e-1];t=l[d+e]}}}while((b=n[b&m])>h&&0!==
--c);return e<=a.kc?e:a.kc};
vs=function(a){var b=a.dj,c;do{var d=a.z_-a.kc-a.Db;if(a.Db>=b+(b-262)){Ur.zy(a.window,a.window,b,b,0);a.Oz-=b;a.Db-=b;a.Ok-=b;var e=c=a.nH;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Kp[--e],a.Kp[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.ue.jj)break;e=a.ue;c=a.window;f=a.Db+a.kc;var h=e.jj;h>d&&(h=d);0===h?c=0:(e.jj-=h,Ur.zy(c,e.input,e.pw,h,f),1===e.state.wrap?e.Sd=ts(e.Sd,c,h,f):2===e.state.wrap&&(e.Sd=us(e.Sd,c,h,f)),e.pw+=h,e.Uw+=h,c=h);a.kc+=c;if(3<=a.kc+a.gi)for(d=a.Db-a.gi,
a.Ee=a.window[d],a.Ee=(a.Ee<<a.Lq^a.window[d+1])&a.Kq;a.gi&&!(a.Ee=(a.Ee<<a.Lq^a.window[d+3-1])&a.Kq,a.Kp[d&a.Eu]=a.head[a.Ee],a.head[a.Ee]=d,d++,a.gi--,3>a.kc+a.gi););}while(262>a.kc&&0!==a.ue.jj)};
ws=function(a,b){for(var c;;){if(262>a.kc){vs(a);if(262>a.kc&&0===b)return 1;if(0===a.kc)break}c=0;3<=a.kc&&(a.Ee=(a.Ee<<a.Lq^a.window[a.Db+3-1])&a.Kq,c=a.Kp[a.Db&a.Eu]=a.head[a.Ee],a.head[a.Ee]=a.Db);0!==c&&a.Db-c<=a.dj-262&&(a.Ze=Nla(a,c));if(3<=a.Ze)if(c=is(a,a.Db-a.Oz,a.Ze-3),a.kc-=a.Ze,a.Ze<=a.qO&&3<=a.kc){a.Ze--;do a.Db++,a.Ee=(a.Ee<<a.Lq^a.window[a.Db+3-1])&a.Kq,a.Kp[a.Db&a.Eu]=a.head[a.Ee],a.head[a.Ee]=a.Db;while(0!==--a.Ze);a.Db++}else a.Db+=a.Ze,a.Ze=0,a.Ee=a.window[a.Db],a.Ee=(a.Ee<<a.Lq^
a.window[a.Db+1])&a.Kq;else c=is(a,0,a.window[a.Db]),a.kc--,a.Db++;if(c&&(ps(a,!1),0===a.ue.Me))return 1}a.gi=2>a.Db?a.Db:2;return 4===b?(ps(a,!0),0===a.ue.Me?3:4):a.tm&&(ps(a,!1),0===a.ue.Me)?1:2};
xs=function(a,b){for(var c,d;;){if(262>a.kc){vs(a);if(262>a.kc&&0===b)return 1;if(0===a.kc)break}c=0;3<=a.kc&&(a.Ee=(a.Ee<<a.Lq^a.window[a.Db+3-1])&a.Kq,c=a.Kp[a.Db&a.Eu]=a.head[a.Ee],a.head[a.Ee]=a.Db);a.ol=a.Ze;a.uY=a.Oz;a.Ze=2;0!==c&&a.ol<a.qO&&a.Db-c<=a.dj-262&&(a.Ze=Nla(a,c),5>=a.Ze&&(1===a.strategy||3===a.Ze&&4096<a.Db-a.Oz)&&(a.Ze=2));if(3<=a.ol&&a.Ze<=a.ol){d=a.Db+a.kc-3;c=is(a,a.Db-1-a.uY,a.ol-3);a.kc-=a.ol-1;a.ol-=2;do++a.Db<=d&&(a.Ee=(a.Ee<<a.Lq^a.window[a.Db+3-1])&a.Kq,a.Kp[a.Db&a.Eu]=
a.head[a.Ee],a.head[a.Ee]=a.Db);while(0!==--a.ol);a.jw=0;a.Ze=2;a.Db++;if(c&&(ps(a,!1),0===a.ue.Me))return 1}else if(a.jw){if((c=is(a,0,a.window[a.Db-1]))&&ps(a,!1),a.Db++,a.kc--,0===a.ue.Me)return 1}else a.jw=1,a.Db++,a.kc--}a.jw&&(is(a,0,a.window[a.Db-1]),a.jw=0);a.gi=2>a.Db?a.Db:2;return 4===b?(ps(a,!0),0===a.ue.Me?3:4):a.tm&&(ps(a,!1),0===a.ue.Me)?1:2};
Ola=function(a,b){for(var c,d,e,f=a.window;;){if(258>=a.kc){vs(a);if(258>=a.kc&&0===b)return 1;if(0===a.kc)break}a.Ze=0;if(3<=a.kc&&0<a.Db&&(d=a.Db-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.Db+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.Ze=258-(e-d);a.Ze>a.kc&&(a.Ze=a.kc)}3<=a.Ze?(c=is(a,1,a.Ze-3),a.kc-=a.Ze,a.Db+=a.Ze,a.Ze=0):(c=is(a,0,a.window[a.Db]),a.kc--,a.Db++);if(c&&(ps(a,!1),0===a.ue.Me))return 1}a.gi=0;return 4===
b?(ps(a,!0),0===a.ue.Me?3:4):a.tm&&(ps(a,!1),0===a.ue.Me)?1:2};
Pla=function(a,b){for(var c;;){if(0===a.kc&&(vs(a),0===a.kc)){if(0===b)return 1;break}a.Ze=0;c=is(a,0,a.window[a.Db]);a.kc--;a.Db++;if(c&&(ps(a,!1),0===a.ue.Me))return 1}a.gi=0;return 4===b?(ps(a,!0),0===a.ue.Me?3:4):a.tm&&(ps(a,!1),0===a.ue.Me)?1:2};
ys=function(a,b,c,d,e){this.Y4=a;this.h6=b;this.x6=c;this.g6=d;this.func=e};
Qla=function(){this.ue=null;this.status=0;this.Eg=null;this.wrap=this.pending=this.hE=this.xm=0;this.Ld=null;this.qn=0;this.method=8;this.Gz=-1;this.Eu=this.uR=this.dj=0;this.window=null;this.z_=0;this.head=this.Kp=null;this.oX=this.EV=this.strategy=this.level=this.qO=this.aX=this.ol=this.kc=this.Oz=this.Db=this.jw=this.uY=this.Ze=this.Ok=this.Lq=this.Kq=this.zN=this.nH=this.Ee=0;this.Yj=new Ur.Zp(1146);this.Cv=new Ur.Zp(122);this.Mi=new Ur.Zp(78);ls(this.Yj);ls(this.Cv);ls(this.Mi);this.cU=this.vG=
this.FH=null;this.jq=new Ur.Zp(16);this.Lg=new Ur.Zp(573);ls(this.Lg);this.rz=this.Nq=0;this.depth=new Ur.Zp(573);ls(this.depth);this.Xh=this.mj=this.gi=this.matches=this.KA=this.zr=this.ZB=this.tm=this.tD=this.dO=0};
Rla=function(a,b){if(!a||!a.state||5<b||0>b)return a?ks(a,-2):-2;var c=a.state;if(!a.vk||!a.input&&0!==a.jj||666===c.status&&4!==b)return ks(a,0===a.Me?-5:-2);c.ue=a;var d=c.Gz;c.Gz=b;if(42===c.status)if(2===c.wrap)a.Sd=0,qs(c,31),qs(c,139),qs(c,8),c.Ld?(qs(c,(c.Ld.text?1:0)+(c.Ld.zt?2:0)+(c.Ld.Ps?4:0)+(c.Ld.name?8:0)+(c.Ld.comment?16:0)),qs(c,c.Ld.time&255),qs(c,c.Ld.time>>8&255),qs(c,c.Ld.time>>16&255),qs(c,c.Ld.time>>24&255),qs(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),qs(c,c.Ld.os&255),c.Ld.Ps&&
c.Ld.Ps.length&&(qs(c,c.Ld.Ps.length&255),qs(c,c.Ld.Ps.length>>8&255)),c.Ld.zt&&(a.Sd=us(a.Sd,c.Eg,c.pending,0)),c.qn=0,c.status=69):(qs(c,0),qs(c,0),qs(c,0),qs(c,0),qs(c,0),qs(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),qs(c,3),c.status=113);else{var e=8+(c.uR-8<<4)<<8;e|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.Db&&(e|=32);c.status=113;rs(c,e+(31-e%31));0!==c.Db&&(rs(c,a.Sd>>>16),rs(c,a.Sd&65535));a.Sd=1}if(69===c.status)if(c.Ld.Ps){for(e=c.pending;c.qn<(c.Ld.Ps.length&
65535)&&(c.pending!==c.xm||(c.Ld.zt&&c.pending>e&&(a.Sd=us(a.Sd,c.Eg,c.pending-e,e)),ms(a),e=c.pending,c.pending!==c.xm));)qs(c,c.Ld.Ps[c.qn]&255),c.qn++;c.Ld.zt&&c.pending>e&&(a.Sd=us(a.Sd,c.Eg,c.pending-e,e));c.qn===c.Ld.Ps.length&&(c.qn=0,c.status=73)}else c.status=73;if(73===c.status)if(c.Ld.name){e=c.pending;do{if(c.pending===c.xm&&(c.Ld.zt&&c.pending>e&&(a.Sd=us(a.Sd,c.Eg,c.pending-e,e)),ms(a),e=c.pending,c.pending===c.xm)){var f=1;break}f=c.qn<c.Ld.name.length?c.Ld.name.charCodeAt(c.qn++)&
255:0;qs(c,f)}while(0!==f);c.Ld.zt&&c.pending>e&&(a.Sd=us(a.Sd,c.Eg,c.pending-e,e));0===f&&(c.qn=0,c.status=91)}else c.status=91;if(91===c.status)if(c.Ld.comment){e=c.pending;do{if(c.pending===c.xm&&(c.Ld.zt&&c.pending>e&&(a.Sd=us(a.Sd,c.Eg,c.pending-e,e)),ms(a),e=c.pending,c.pending===c.xm)){f=1;break}f=c.qn<c.Ld.comment.length?c.Ld.comment.charCodeAt(c.qn++)&255:0;qs(c,f)}while(0!==f);c.Ld.zt&&c.pending>e&&(a.Sd=us(a.Sd,c.Eg,c.pending-e,e));0===f&&(c.status=103)}else c.status=103;103===c.status&&
(c.Ld.zt?(c.pending+2>c.xm&&ms(a),c.pending+2<=c.xm&&(qs(c,a.Sd&255),qs(c,a.Sd>>8&255),a.Sd=0,c.status=113)):c.status=113);if(0!==c.pending){if(ms(a),0===a.Me)return c.Gz=-1,0}else if(0===a.jj&&(b<<1)-(4<b?9:0)<=(d<<1)-(4<d?9:0)&&4!==b)return ks(a,-5);if(666===c.status&&0!==a.jj)return ks(a,-5);if(0!==a.jj||0!==c.kc||0!==b&&666!==c.status){d=2===c.strategy?Pla(c,b):3===c.strategy?Ola(c,b):zs[c.level].func(c,b);if(3===d||4===d)c.status=666;if(1===d||3===d)return 0===a.Me&&(c.Gz=-1),0;if(2===d&&(1===
b?(Zr(c,2,3),$r(c,256,ns),16===c.Xh?(Yr(c,c.mj),c.mj=0,c.Xh=0):8<=c.Xh&&(c.Eg[c.pending++]=c.mj&255,c.mj>>=8,c.Xh-=8)):5!==b&&(Zr(c,0,3),Gla(c,0,0),3===b&&(ls(c.head),0===c.kc&&(c.Db=0,c.Ok=0,c.gi=0))),ms(a),0===a.Me))return c.Gz=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(qs(c,a.Sd&255),qs(c,a.Sd>>8&255),qs(c,a.Sd>>16&255),qs(c,a.Sd>>24&255),qs(c,a.Uw&255),qs(c,a.Uw>>8&255),qs(c,a.Uw>>16&255),qs(c,a.Uw>>24&255)):(rs(c,a.Sd>>>16),rs(c,a.Sd&65535));ms(a);0<c.wrap&&(c.wrap=-c.wrap);return 0!==
c.pending?0:1};
As=function(a){if(!(this instanceof As))return new As(a);a=this.options=Ur.assign({level:-1,method:8,chunkSize:16384,Fu:15,o6:8,strategy:0,to:""},a||{});a.raw&&0<a.Fu?a.Fu=-a.Fu:a.Z4&&0<a.Fu&&16>a.Fu&&(a.Fu+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.ue=new Sla;this.ue.Me=0;var b=this.ue;var c=a.level,d=a.method,e=a.Fu,f=a.o6,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=ks(b,-2);else{8===e&&(e=9);var m=
new Qla;b.state=m;m.ue=b;m.wrap=l;m.Ld=null;m.uR=e;m.dj=1<<m.uR;m.Eu=m.dj-1;m.zN=f+7;m.nH=1<<m.zN;m.Kq=m.nH-1;m.Lq=~~((m.zN+3-1)/3);m.window=new Ur.ox(2*m.dj);m.head=new Ur.Zp(m.nH);m.Kp=new Ur.Zp(m.dj);m.tD=1<<f+6;m.xm=4*m.tD;m.Eg=new Ur.ox(m.xm);m.ZB=1*m.tD;m.dO=3*m.tD;m.level=c;m.strategy=h;m.method=d;if(b&&b.state){b.Uw=b.ZQ=0;b.jM=2;c=b.state;c.pending=0;c.hE=0;0>c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Sd=2===c.wrap?0:1;c.Gz=0;if(!Tla){d=Array(16);for(f=h=0;28>f;f++)for(ds[f]=h,e=0;e<
1<<cs[f];e++)bs[h++]=f;bs[h-1]=f;for(f=h=0;16>f;f++)for(gs[f]=h,e=0;e<1<<fs[f];e++)es[h++]=f;for(h>>=7;30>f;f++)for(gs[f]=h<<7,e=0;e<1<<fs[f]-7;e++)es[256+h++]=f;for(e=0;15>=e;e++)d[e]=0;for(e=0;143>=e;)ns[2*e+1]=8,e++,d[8]++;for(;255>=e;)ns[2*e+1]=9,e++,d[9]++;for(;279>=e;)ns[2*e+1]=7,e++,d[7]++;for(;287>=e;)ns[2*e+1]=8,e++,d[8]++;Dla(ns,287,d);for(e=0;30>e;e++)os[2*e+1]=5,os[2*e]=Cla(e,5);Ula=new Wr(ns,cs,257,286,15);Vla=new Wr(os,fs,0,30,15);Wla=new Wr([],Xla,0,19,7);Tla=!0}c.FH=new Xr(c.Yj,Ula);
c.vG=new Xr(c.Cv,Vla);c.cU=new Xr(c.Mi,Wla);c.mj=0;c.Xh=0;Ela(c);c=0}else c=ks(b,-2);0===c&&(b=b.state,b.z_=2*b.dj,ls(b.head),b.qO=zs[b.level].h6,b.EV=zs[b.level].Y4,b.oX=zs[b.level].x6,b.aX=zs[b.level].g6,b.Db=0,b.Ok=0,b.kc=0,b.gi=0,b.Ze=b.ol=2,b.jw=0,b.Ee=0);b=c}}else b=-2;if(0!==b)throw Error(js[b]);a.header&&(b=this.ue)&&b.state&&2===b.state.wrap&&(b.state.Ld=a.header);if(a.bC){var n;"string"===typeof a.bC?n=Bla(a.bC):"[object ArrayBuffer]"===Yla.call(a.bC)?n=new Uint8Array(a.bC):n=a.bC;a=this.ue;
f=n;h=f.length;if(a&&a.state)if(n=a.state,b=n.wrap,2===b||1===b&&42!==n.status||n.kc)b=-2;else{1===b&&(a.Sd=ts(a.Sd,f,h,0));n.wrap=0;h>=n.dj&&(0===b&&(ls(n.head),n.Db=0,n.Ok=0,n.gi=0),c=new Ur.ox(n.dj),Ur.zy(c,f,h-n.dj,n.dj,0),f=c,h=n.dj);c=a.jj;d=a.pw;e=a.input;a.jj=h;a.pw=0;a.input=f;for(vs(n);3<=n.kc;){f=n.Db;h=n.kc-2;do n.Ee=(n.Ee<<n.Lq^n.window[f+3-1])&n.Kq,n.Kp[f&n.Eu]=n.head[n.Ee],n.head[n.Ee]=f,f++;while(--h);n.Db=f;n.kc=2;vs(n)}n.Db+=n.kc;n.Ok=n.Db;n.gi=n.kc;n.kc=0;n.Ze=n.ol=2;n.jw=0;a.pw=
d;a.input=e;a.jj=c;n.wrap=b;b=0}else b=-2;if(0!==b)throw Error(js[b]);this.Xab=!0}};
Zla=function(a,b){b=b||{};b.Z4=!0;b=new As(b);b.push(a,!0);if(b.err)throw b.msg||js[b.err];return b.result};
$la=function(){var a=g.Ia.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.qa(g.Ia.apply(0,arguments))))}})};
ama=function(){var a=g.Ia.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.qa(g.Ia.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=$la.apply(null,g.qa(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
Bs=function(){return Math.random().toString(36).substring(7).split("").join(".")};
bma=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:Cs}))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"+Bs()}))throw Error('The slice reducer for key "'+
b+"\" returned undefined when probed with a random type. Don't try to handle '"+(Cs+'\' 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.'));})};
cma=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(v){if("function"!==typeof v)throw Error("Expected the listener to be a function. Instead, received: '"+typeof v+"'");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 y=!0;p===n&&(p=n.slice());p.push(v);return function(){if(y){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.");
y=!1;p===n&&(p=n.slice());p.splice(p.indexOf(v),1);n=null}}}
function h(v){if("object"!==typeof v||null===v)var y=!1;else{for(y=v;null!==Object.getPrototypeOf(y);)y=Object.getPrototypeOf(y);y=Object.getPrototypeOf(v)===y}if(!y)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof v+"'. 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 v.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,v)}finally{q=!1}y=n=p;for(var A=0;A<y.length;A++)(0,y[A])();return v}
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(cma)(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:Cs});a={};var t=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(v){if("function"!==typeof v)throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof v);l=v;h({type:dma});return t},a[ema]=function(){var v={};
return v.subscribe=function(y){function A(){y.next&&y.next(e())}
if("object"!==typeof y||null===y)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof y+"'");A();return{unsubscribe:f(A)}},v[ema]=function(){return this},v},a);
return t};
g.Ds=function(a){a=fma(a);return Yd(a)};
fma=function(a){return null===a?"null":void 0===a?"undefined":a};
Es=function(a){this.ma=J(a)};
gma=function(a){var b=a.split(""),c=[903194415,function(d,e){if(0!=d.length){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f}},
-279859854,-1469375506,1933127910,249130854,890045879,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)},
1756236289,function(d,e,f){var h=e.length;d.forEach(function(l,m,n){this.push(n[m]=e[(e.indexOf(l)-e.indexOf(this[m])+m+h--)%e.length])},f.split(""))},
-1949303870,null,-764355842,b,function(d,e){d=(d%e.length+e.length)%e.length;e.splice(-d).reverse().forEach(function(f){e.unshift(f)})},
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]))},
-1747270089,-514198066,b,-1319989107,");)\u22f6",-399135322,-1888397177,-1583074420,-1922105064,-1176780118,1382187785,-849672989,-364907785,1756236289,211439937,-399135322,function(d,e,f,h,l){return e(f,h,l)},
1052840190,function(d){d.reverse()},
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},
null,-1258348009,b,860174732,-491789757,895663564,-1479853521,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},
549852575,function(d,e){if(0!=d.length){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f}},
"TONX-",/}(),,({(\/,){)}(),/,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},
-688615821,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
function(d,e,f,h,l,m){return e(h,l,m)},
-1466408384,-1100628975,-1942434456,function(d,e){e.push(d)},
-270905556,1562042171,null,2099390477,1034073749,',\\",',88701661,-1818850199,function(d,e,f,h,l,m,n){return d(l,m,n)},
-826555815,-49905184,1608700174,function(d,e,f,h,l,m,n,p){return e(f,h,l,m,n,p)},
-1601652741,92156442,-1207321569,903194415,-878017111,function(d,e){d.splice(d.length,0,e)},
1440333162,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},
-107420060,-1507982315,-1212999017,function(d,e){for(d=(d%e.length+e.length)%e.length;d--;)e.unshift(e.pop())},
1454567656];c[11]=c;c[36]=c;c[58]=c;try{try{(2!=c[59]||((0,c[1])(c[36],c[69]),0))&&(0,c[14])(c[19],c[18]),-3>c[6]&&((0,c[1])(c[58],c[33]),"null")||(0,c[80])(c[4],c[13])}catch(d){(0,c[32])((0,c[9])(c[13],(0,c[35])(),c[46]),c[34],c[36])}finally{-2==c[72]&&((0,c[80])(c[5],c[13]),(0,c[34])(c[new Date("1970-01-01T04:15:18.000+04:15")/1E3]),(0,c[32])((0,c[32])((0,c[9])(c[38],(0,c[35])(),c[46]),c[7],c[13],c[56]),c[9],c[13],(0,c[76])(),c[46]),1)||(((0,c[51])((0,c[15])(c[18],c[54]),c[7],(0,c[15])(c[97-86%
Math.pow(8,4)],c[17]),c[18],c[30]),c[15])(c[13],c[75]),c[7])(c[18],c[70]),-4!==c[33]&&(0,c[14])(c[37],c[58]),8!=c[51]&&(-7>c[44]?(0,c[61])(c[75],c[58]):(0,c[61])(c[70],(0,c[18])(),c[16])),0<c[54]?(0,c[2])((0,c[15])(c[6],c[55]),c[67],c[65],c[36]):(0,c[15])(c[70],c[23])-(0,c[59])(c[70],c[27])}try{c[71]!=Math.pow(6,1)- -8710-8722&&((0,c[50])(c[79],c[8]),c[50])(c[10],c[8])}catch(d){(0,c[61])(c[8],(0,c[5])(),c[16])}finally{-3<=c[9]&&(7!=c[73]&&((0,c[2])(((0,c[67])(c[65],c[64]),(0,c[66])(c[30],c[70])),
c[44],c[63],c[52-Math.pow(8,3)- -526]),1)||((0,c[66])(c[22],c[70]),c[2])((0,c[59])(c[8],c[75]),c[61],c[65],(0,c[13])(),c[16])),(-7<c[79]||((((0,c[2])(((0,c[66])(c[76],c[65]),c[4])(c[70]),c[50],c[19],c[new Date("1970-01-01T09:48:56.000+09:45")/1E3*Math.pow(3,2)-2118]),c[48])(c[57],(0,c[0])(),c[3]),c[31])(c[15],c[32]),0))&&(((0,c[48])(c[78],(0,c[5])(),c[3]),c[8])((0,c[40])(c[50],c[30]),c[46],(0,c[74])(c[78]),c[78],c[1]),c[48])(c[57],(0,c[5])(),c[3]),c[30]<=new Date("1969-12-31T18:29:58.000-05:30")/
1E3&&((0,c[31])(c[50],c[21]),c[72])((0,c[53])(c[new Date("1969-12-31T22:46:08.000-01:15")/1E3],c[50]),c[3],c[49],c[75]),-10!==c[10]&&(0,c[33])(c[71],(0,c[71])(c[9],c[25]),(0,c[14])(c[84],c[55]),(0,c[23])(c[34],c[82]),c[16],c[55])}try{9>c[60]&&(((0,c[17])(c[34],c[11]),c[23])(c[34],c[59]),1)||(0,c[49])((0,c[17])(c[27],c[5]),c[14],c[12],c[29])}catch(d){(0,c[23])(c[27],c[32])}try{(8===c[500%Math.pow(5,2)+24]||((0,c[49])((0,c[8])(c[27],c[8]),c[51],c[29]),0))&&(0,c[49])((0,c[14])(c[78],c[27]),c[23],c[55],
c[81]),0>c[54]&&((0,c[70])((0,c[31])(c[53],c[61*Math.pow(3,3)+-1589]),c[17],(0,c[74])(c[69+Math.pow(1,4)+-50],c[new Date("1969-12-31T17:15:53.000-06:45")/1E3]),c[27],c[1]),1)||(0,c[49])((0,c[49])((0,c[69])(c[55]),c[23],c[34],c[41]),c[25],c[new Date("1970-01-01T05:00:29.000+05:00")/1E3],(0,c[10])(),c[65]),-1>c[73]&&(0===c[429+Math.pow(6,1)-395]&&((0,c[64])(c[53],c[56])|((0,c[25])(c[34],(0,c[Math.pow(3,1)+135+-86])(),c[65]),c[69])(c[27]),/(,)/)||(0,c[2])((0,c[31])(c[77],c[13]),c[0],(0,c[31])(c[53],
c[26]),c[14],c[22],c[53])),-4===c[57]&&((0,c[58])(c[25],c[50]),1)||(0,c[12])(c[62],c[73])}catch(d){(((0,c[17])(c[3]),(0,c[60])(c[35],(0,c[45])(),c[13]),c[66])(c[25],c[77]),c[60])(c[3],(0,c[15])(),c[13])}}catch(d){return"enhanced_except_65gBlOf-_w8_"+a}return b.join("")};
g.Fs=function(a){this.name=a};
Gs=function(a){this.ma=J(a)};
Hs=function(a){this.ma=J(a)};
Is=function(a){this.ma=J(a)};
Js=function(a){this.ma=J(a)};
Ks=function(a){this.ma=J(a)};
Ls=function(a){this.ma=J(a)};
Ms=function(a){this.ma=J(a)};
Ns=function(a){this.ma=J(a)};
Os=function(a){this.ma=J(a)};
Ps=function(a){this.ma=J(a)};
Qs=function(a){this.ma=J(a)};
Rs=function(a){this.ma=J(a)};
Ss=function(a){this.ma=J(a)};
Ts=function(a){this.ma=J(a)};
Us=function(a){this.ma=J(a)};
Vs=function(a){this.ma=J(a)};
Ws=function(a){this.ma=J(a)};
Xs=function(a){this.ma=J(a)};
Ys=function(a){this.ma=J(a)};
Zs=function(a){this.ma=J(a)};
$s=function(a){this.ma=J(a)};
at=function(a){this.ma=J(a)};
bt=function(a){this.ma=J(a)};
ct=function(a){this.ma=J(a)};
dt=function(a){this.ma=J(a)};
et=function(a){this.ma=J(a)};
ft=function(a){this.ma=J(a)};
gt=function(a){this.ma=J(a)};
ht=function(a){this.ma=J(a)};
jt=function(a){this.ma=J(a)};
kt=function(a){this.ma=J(a)};
lt=function(a){this.ma=J(a)};
mt=function(a){this.ma=J(a)};
nt=function(a){this.ma=J(a)};
ot=function(a){this.ma=J(a)};
pt=function(a){this.ma=J(a)};
qt=function(a){this.ma=J(a)};
rt=function(a){this.ma=J(a)};
tt=function(a){this.ma=J(a)};
ut=function(a){this.ma=J(a)};
vt=function(a){this.ma=J(a)};
wt=function(a){this.ma=J(a)};
xt=function(a){this.ma=J(a)};
zt=function(a){this.ma=J(a)};
At=function(a){this.ma=J(a)};
Bt=function(a){this.ma=J(a)};
Ct=function(a){this.ma=J(a)};
Dt=function(a){this.ma=J(a)};
Et=function(a){this.ma=J(a)};
Ft=function(a){this.ma=J(a)};
Gt=function(a){this.ma=J(a)};
Ht=function(a){this.ma=J(a)};
It=function(a){this.ma=J(a)};
Jt=function(a){this.ma=J(a)};
Kt=function(a){this.ma=J(a)};
Lt=function(a){this.ma=J(a)};
Mt=function(a){this.ma=J(a)};
Nt=function(a){this.ma=J(a)};
Ot=function(a){this.ma=J(a)};
Pt=function(a){this.ma=J(a)};
Qt=function(a){this.ma=J(a)};
Rt=function(a){this.ma=J(a)};
St=function(a){this.ma=J(a)};
Tt=function(a){this.ma=J(a)};
Ut=function(a){this.ma=J(a)};
Vt=function(a){this.ma=J(a)};
Wt=function(a){this.ma=J(a)};
Xt=function(a){this.ma=J(a)};
Yt=function(a){this.ma=J(a)};
Zt=function(a){this.ma=J(a)};
hma=function(a,b){return wi(a,1,b)};
$t=function(a){this.ma=J(a)};
au=function(a){this.ma=J(a)};
bu=function(a){this.ma=J(a)};
cu=function(a){this.ma=J(a)};
du=function(a){this.ma=J(a)};
eu=function(a){this.ma=J(a)};
fu=function(a){this.ma=J(a)};
Au=function(a){this.ma=J(a)};
Cu=function(a){this.ma=J(a)};
Du=function(a){this.ma=J(a)};
g.Eu=function(a){this.ma=J(a)};
Fu=function(a){this.ma=J(a)};
Gu=function(a){this.ma=J(a)};
Hu=function(a){this.ma=J(a)};
Iu=function(a){this.ma=J(a)};
Ju=function(a){this.ma=J(a)};
Ku=function(a){this.ma=J(a)};
Lu=function(a){this.ma=J(a)};
Mu=function(a){this.ma=J(a)};
Nu=function(a){this.ma=J(a)};
Ou=function(a){this.ma=J(a)};
Pu=function(a){this.ma=J(a)};
Qu=function(a){this.ma=J(a)};
Ru=function(a){this.ma=J(a)};
Su=function(a){this.ma=J(a)};
Tu=function(a){this.ma=J(a)};
Uu=function(a){this.ma=J(a)};
Vu=function(a){this.ma=J(a)};
Wu=function(a){this.ma=J(a)};
Xu=function(a){this.ma=J(a)};
Yu=function(a){this.ma=J(a)};
Zu=function(a){this.ma=J(a)};
$u=function(a){this.ma=J(a)};
av=function(a){this.ma=J(a)};
bv=function(a){this.ma=J(a)};
cv=function(a){this.ma=J(a)};
dv=function(a){this.ma=J(a)};
ev=function(a){this.ma=J(a)};
fv=function(a){this.ma=J(a)};
gv=function(a){this.ma=J(a)};
hv=function(a){this.ma=J(a)};
iv=function(a){this.ma=J(a)};
jv=function(a){this.ma=J(a)};
kv=function(a){this.ma=J(a)};
lv=function(a){this.ma=J(a)};
mv=function(a){this.ma=J(a)};
nv=function(a){this.ma=J(a)};
ov=function(a){this.ma=J(a)};
pv=function(a){this.ma=J(a)};
qv=function(a){this.ma=J(a)};
rv=function(a){this.ma=J(a)};
tv=function(a){this.ma=J(a)};
uv=function(a){this.ma=J(a)};
vv=function(a){this.ma=J(a)};
wv=function(a){this.ma=J(a)};
xv=function(a){this.ma=J(a)};
yv=function(a){this.ma=J(a)};
zv=function(a){this.ma=J(a)};
Av=function(a){this.ma=J(a)};
Bv=function(a){this.ma=J(a)};
Cv=function(a){this.ma=J(a)};
Dv=function(a){this.ma=J(a)};
Ev=function(a){this.ma=J(a)};
Fv=function(a){this.ma=J(a)};
Gv=function(a){this.ma=J(a)};
Hv=function(a){this.ma=J(a)};
Iv=function(a){this.ma=J(a)};
Jv=function(a){this.ma=J(a)};
Kv=function(a){this.ma=J(a)};
Lv=function(a){this.ma=J(a)};
Mv=function(a){this.ma=J(a)};
Nv=function(a){this.ma=J(a)};
Ov=function(a){this.ma=J(a)};
Pv=function(a){this.ma=J(a)};
Qv=function(a){this.ma=J(a)};
Rv=function(a){this.ma=J(a)};
Sv=function(a){this.ma=J(a)};
Tv=function(a){this.ma=J(a)};
Uv=function(a){this.ma=J(a)};
Vv=function(a){this.ma=J(a)};
Wv=function(a){this.ma=J(a)};
Xv=function(a){this.ma=J(a)};
Yv=function(a){this.ma=J(a)};
Zv=function(a){this.ma=J(a)};
$v=function(a){this.ma=J(a)};
aw=function(a){this.ma=J(a)};
bw=function(a){this.ma=J(a)};
cw=function(a){this.ma=J(a)};
dw=function(a){this.ma=J(a)};
ew=function(a){this.ma=J(a)};
fw=function(a){this.ma=J(a)};
gw=function(a){this.ma=J(a)};
hw=function(a){this.ma=J(a)};
iw=function(a){this.ma=J(a)};
g.jw=function(a){this.ma=J(a)};
g.kw=function(a){this.ma=J(a)};
lw=function(a){this.ma=J(a)};
mw=function(a){this.ma=J(a)};
nw=function(a){this.ma=J(a)};
ow=function(a){this.ma=J(a)};
pw=function(a){this.ma=J(a)};
qw=function(a){this.ma=J(a)};
rw=function(a){this.ma=J(a)};
tw=function(a){this.ma=J(a)};
uw=function(a){this.ma=J(a)};
vw=function(a){this.ma=J(a)};
ww=function(a){this.ma=J(a)};
xw=function(a){this.ma=J(a)};
yw=function(a){this.ma=J(a)};
zw=function(a){this.ma=J(a)};
Aw=function(a){this.ma=J(a)};
Bw=function(a){this.ma=J(a)};
Cw=function(a){this.ma=J(a)};
Dw=function(a){this.ma=J(a)};
Ew=function(a){this.ma=J(a)};
Fw=function(a){this.ma=J(a)};
Gw=function(a){this.ma=J(a)};
Hw=function(a){this.ma=J(a)};
Iw=function(a){this.ma=J(a)};
Jw=function(a){this.ma=J(a)};
Kw=function(a){this.ma=J(a)};
Lw=function(a){this.ma=J(a)};
Mw=function(a){this.ma=J(a)};
Nw=function(a){this.ma=J(a)};
Ow=function(a){this.ma=J(a)};
Pw=function(a){this.ma=J(a)};
Qw=function(a){this.ma=J(a)};
Rw=function(a){this.ma=J(a)};
Sw=function(a){this.ma=J(a)};
Tw=function(a){this.ma=J(a)};
Uw=function(a){this.ma=J(a)};
Vw=function(a){this.ma=J(a)};
Ww=function(a){this.ma=J(a)};
Xw=function(a){this.ma=J(a)};
Yw=function(a){this.ma=J(a)};
Zw=function(a){this.ma=J(a)};
$w=function(a){this.ma=J(a)};
ax=function(a){this.ma=J(a)};
bx=function(a){this.ma=J(a)};
cx=function(a){this.ma=J(a)};
dx=function(a){this.ma=J(a)};
ex=function(a){this.ma=J(a)};
fx=function(a){this.ma=J(a)};
gx=function(a){this.ma=J(a)};
hx=function(a){this.ma=J(a)};
ix=function(a){this.ma=J(a)};
jx=function(a){this.ma=J(a)};
kx=function(a){this.ma=J(a)};
lx=function(a){this.ma=J(a)};
mx=function(a){this.ma=J(a)};
nx=function(a){this.ma=J(a)};
ox=function(a){this.ma=J(a)};
px=function(a){this.ma=J(a)};
qx=function(a){this.ma=J(a)};
rx=function(a){this.ma=J(a)};
sx=function(a){this.ma=J(a)};
tx=function(a){this.ma=J(a)};
ux=function(a){this.ma=J(a)};
vx=function(a){this.ma=J(a)};
wx=function(a){this.ma=J(a)};
xx=function(a){this.ma=J(a)};
yx=function(a){this.ma=J(a)};
zx=function(a){this.ma=J(a)};
Ax=function(a){this.ma=J(a)};
Bx=function(a){this.ma=J(a)};
Cx=function(a){this.ma=J(a)};
Dx=function(a){this.ma=J(a)};
Ex=function(a){this.ma=J(a)};
Fx=function(a){this.ma=J(a)};
Gx=function(a){this.ma=J(a)};
Hx=function(a){this.ma=J(a)};
Ix=function(a){this.ma=J(a)};
Jx=function(a){this.ma=J(a)};
Kx=function(a){this.ma=J(a)};
Lx=function(a){this.ma=J(a)};
Mx=function(a){this.ma=J(a)};
Ox=function(a){this.ma=J(a)};
Sx=function(a){this.ma=J(a)};
Tx=function(a){this.ma=J(a)};
Ux=function(a){this.ma=J(a)};
Vx=function(a){this.ma=J(a)};
Wx=function(a){this.ma=J(a)};
Xx=function(a){this.ma=J(a)};
Yx=function(a){this.ma=J(a)};
Zx=function(a){this.ma=J(a)};
$x=function(a){this.ma=J(a)};
ay=function(a){this.ma=J(a)};
by=function(a){this.ma=J(a)};
cy=function(a){this.ma=J(a)};
dy=function(a){this.ma=J(a)};
ey=function(a){this.ma=J(a)};
fy=function(a){this.ma=J(a)};
gy=function(a){this.ma=J(a)};
hy=function(a){this.ma=J(a)};
iy=function(a){this.ma=J(a)};
jy=function(a){this.ma=J(a)};
ky=function(a){this.ma=J(a)};
ly=function(a){this.ma=J(a)};
my=function(a){this.ma=J(a)};
ny=function(a){this.ma=J(a)};
oy=function(a){this.ma=J(a)};
py=function(a){this.ma=J(a)};
qy=function(a){this.ma=J(a)};
ry=function(a){this.ma=J(a)};
sy=function(a){this.ma=J(a)};
ty=function(a){this.ma=J(a)};
uy=function(a){this.ma=J(a)};
vy=function(a){this.ma=J(a)};
wy=function(a){this.ma=J(a)};
yy=function(a){this.ma=J(a)};
zy=function(a){this.ma=J(a)};
Ay=function(a){this.ma=J(a)};
By=function(a){this.ma=J(a)};
Cy=function(a){this.ma=J(a)};
Dy=function(a){this.ma=J(a)};
Ey=function(a){this.ma=J(a)};
Fy=function(a){this.ma=J(a)};
Gy=function(a){this.ma=J(a)};
Hy=function(a){this.ma=J(a)};
Iy=function(a){this.ma=J(a)};
Jy=function(a){this.ma=J(a)};
Ky=function(a){this.ma=J(a)};
Ly=function(a){this.ma=J(a)};
My=function(a){this.ma=J(a)};
Ny=function(a){this.ma=J(a)};
Oy=function(a){this.ma=J(a)};
Py=function(a){this.ma=J(a)};
Qy=function(a){this.ma=J(a)};
Ry=function(a){this.ma=J(a)};
ima=function(a,b){oi(a,px,1,b)};
Sy=function(a){this.ma=J(a)};
jma=function(a,b){return oi(a,px,1,b)};
Ty=function(a){this.ma=J(a)};
kma=function(a,b){return oi(a,px,2,b)};
Uy=function(a){this.ma=J(a)};
Vy=function(a){this.ma=J(a)};
Wy=function(a){this.ma=J(a)};
Xy=function(a){this.ma=J(a)};
Yy=function(a){this.ma=J(a)};
Zy=function(a){this.ma=J(a)};
$y=function(a){var b=new Zy;return O(b,1,a)};
az=function(a,b){return O(a,2,b)};
bz=function(a){this.ma=J(a)};
cz=function(a){this.ma=J(a)};
dz=function(a){this.ma=J(a)};
ez=function(a,b){ui(a,68,Zy,b)};
fz=function(a){this.ma=J(a)};
gz=function(a){this.ma=J(a)};
hz=function(a){this.ma=J(a)};
iz=function(a){this.ma=J(a)};
jz=function(a){this.ma=J(a)};
kz=function(a){this.ma=J(a)};
lz=function(a){this.ma=J(a)};
mz=function(a){this.ma=J(a)};
nz=function(a){this.ma=J(a)};
oz=function(a){this.ma=J(a)};
pz=function(a){this.ma=J(a)};
qz=function(a){this.ma=J(a)};
rz=function(a){this.ma=J(a)};
sz=function(a){this.ma=J(a)};
tz=function(a){this.ma=J(a)};
uz=function(a){this.ma=J(a)};
vz=function(a){this.ma=J(a)};
wz=function(a){this.ma=J(a)};
xz=function(a){this.ma=J(a)};
yz=function(a){this.ma=J(a)};
zz=function(a){this.ma=J(a,482)};
Az=function(a){this.ma=J(a)};
Bz=function(a){this.ma=J(a)};
Cz=function(a){this.ma=J(a)};
lma=function(){return g.Sa("yt.ads.biscotti.lastId_")||""};
mma=function(a){g.Qa("yt.ads.biscotti.lastId_",a)};
Ez=function(){var a=arguments;1<a.length?Dz[a[0]]=a[1]:1===a.length&&Object.assign(Dz,a[0])};
g.Fz=function(a,b){return a in Dz?Dz[a]:b};
Gz=function(a){var b=Dz.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.Hz=function(a){a=nma(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.Iz=function(a,b){a=nma(a);return void 0===a&&void 0!==b?b:Number(a||0)};
Jz=function(){return g.Fz("EXPERIMENTS_TOKEN","")};
nma=function(a){var b=g.Fz("EXPERIMENTS_FORCED_FLAGS",{})||{};return void 0!==b[a]?b[a]:g.Fz("EXPERIMENT_FLAGS",{})[a]};
Kz=function(){for(var a=[],b=g.Fz("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.Fz("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};
oma=function(a){Lz.forEach(function(b){return b(a)})};
g.Nz=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.Mz(b)}}:a};
g.Mz=function(a){var b=g.Sa("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=g.Fz("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),Ez("ERRORS",b));oma(a)};
Oz=function(a,b,c,d,e){var f=g.Sa("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=g.Fz("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),Ez("ERRORS",f))};
Pz=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=pma(f[0]||""),l=pma(f[1]||"");h in c?Array.isArray(c[h])?g.Nb(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(q){var m=q,n=f[0],p=String(Pz);m.args=[{key:n,value:f[1],query:a,method:qma==p?"unchanged":p}];rma.hasOwnProperty(n)||Oz(m)}}return c};
Qz=function(a){var b=[];g.Wc(a,function(c,d){var e=g.Ae(d),f;Array.isArray(c)?f=c:f=[c];g.$b(f,function(h){""==h?b.push(e):b.push(e+"="+g.Ae(h))})});
return b.join("&")};
Rz=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Pz(a,"&")};
Sz=function(a){a=a.split(",");return a=a.map(function(b){return Rz(b)})};
g.Tz=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Rz(1<a.length?a[1]:a[0])):{}};
Uz=function(a,b){return sma(a,b||{},!0)};
Vz=function(a,b){return sma(a,b||{},!1)};
sma=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=Rz(e[1]||"");for(var f in b)if(c||!g.cd(e,f))e[f]=b[f];return g.Yj(a,e)+d};
Wz=function(a){if(!b)var b=window.location.href;var c=g.Rj(1,a),d=g.Sj(a);c&&d?(a=a.match(Ij),b=b.match(Ij),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Sj(b)==d&&(Number(g.Rj(4,b))||null)==(Number(g.Rj(4,a))||null):!0;return a};
Xz=function(a){a||(a=document.location.href);a=g.Rj(1,a);return null!==a&&"https"==a};
Yz=function(a){a=g.Sj(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
pma=function(a){return a&&a.match(tma)?a:Be(a)};
Zz=function(a){var b=uma;a=void 0===a?lma():a;var c=Object,d=c.assign,e=vma(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(K){}try{var m=f.outerWidth;var n=f.outerHeight}catch(K){}try{var p=f.innerWidth;var q=f.innerHeight}catch(K){}try{var t=f.screenLeft;var v=f.screenTop}catch(K){}try{p=f.innerWidth,q=f.innerHeight}catch(K){}try{var y=f.screen.availWidth;var A=f.screen.availTop}catch(K){}f=[t,v,h,l,y,A,m,n,p,q];h=oia(!1,b.j.top);l={};var E=void 0===E?g.Pa:E;m=new Dq;"SVGElement"in E&&"createElementNS"in
E.document&&m.set(0);n=Bha();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);E.crypto&&E.crypto.subtle&&m.set(3);"TextDecoder"in E&&"TextEncoder"in E&&m.set(4);E=Vka(m);b=(l.bc=E,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=an(b.u),l.wgl=!!Ym.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
vma=function(a){var b={};b.dt=wma;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.u.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Ym:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Ym.screen)?void 0:f.height;var h;b.u_w=null==(h=Ym.screen)?void 0:h.width;var l;b.u_ah=null==(l=Ym.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Ym.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Ym.screen)?void 0:
n.colorDepth}catch(p){}return b};
yma=function(){if(!xma)return null;var a=xma();return"open"in a?a:null};
g.aA=function(a){switch($z(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
$z=function(a){return a&&"status"in a?a.status:-1};
g.bA=function(a,b){"function"===typeof a&&(a=g.Nz(a));return window.setTimeout(a,b)};
g.cA=function(a,b){"function"===typeof a&&(a=g.Nz(a));return window.setInterval(a,b)};
g.dA=function(a){window.clearTimeout(a)};
g.eA=function(a){window.clearInterval(a)};
Ama=function(a,b){b=void 0===b?{}:b;var c=Wz(a),d=g.Hz("web_ajax_ignore_global_headers_if_set"),e;for(e in zma){var f=g.Fz(zma[e]),h="X-Goog-AuthUser"===e||"X-Goog-PageId"===e;"X-Goog-Visitor-Id"!==e||f||(f=g.Fz("VISITOR_DATA"));!f||!c&&!fA(a,e)||d&&void 0!==b[e]||(!g.Hz("move_vss_away_from_login_info_cookie")||"TVHTML5_UNPLUGGED"===g.Fz("INNERTUBE_CLIENT_NAME"))&&h||(b[e]=f)}g.Hz("move_vss_away_from_login_info_cookie")&&c&&g.Fz("SESSION_INDEX")&&"TVHTML5_UNPLUGGED"!==g.Fz("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||fA(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||fA(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&&!fA(a,"X-YouTube-Ad-Signals")||(b["X-YouTube-Ad-Signals"]=Qz(Zz()));return b};
Cma=function(a,b){var c=g.Sj(a);g.Hz("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Wz(a)&&(c=document.location.hostname);var d=Hj(g.Rj(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=Rz(b),f={};g.$b(Bma,function(h){e[h]&&(f[h]=e[h])});
return Vz(a,f)};
fA=function(a){return g.Sj(a)?!1:!0};
g.hA=function(a,b){var c=b.format||"JSON";a=Dma(a,b);var d=Ema(a,b),e=!1,f=gA(a,function(m){if(!e){e=!0;l&&g.dA(l);var n=g.aA(m),p=null,q=400<=m.status&&500>m.status,t=500<=m.status&&600>m.status;if(n||q||t)p=Fma(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.Pa;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.bA(function(){e||(e=!0,f.abort(),g.dA(l),h.call(b.context||g.Pa,f))},d)}return f};
Dma=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.Fz("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=Uz(a,b);return a};
Ema=function(a,b){var c=g.Fz("XSRF_FIELD_NAME"),d=g.Fz("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.Fz("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.Sj(a)&&!b.withCredentials&&g.Sj(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.Hz("ajax_parse_query_data_only_when_filled")&&f&&0<Object.keys(f).length||f)&&"string"===typeof e&&(e=Rz(e),g.pd(e,f),e=b.postBodyFormat&&
"JSON"==b.postBodyFormat?JSON.stringify(e):g.Xj(e));f=e||f&&!g.id(f);!Gma&&f&&"POST"!=b.method&&(Gma=!0,g.Mz(Error("AJAX request with postData should use POST")));return e};
Fma=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,Oz(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)?Hma(a):null)e={},g.$b(a.getElementsByTagName("*"),function(h){e[h.tagName]=Ima(h)})}d&&Jma(e);
return e};
Jma=function(a){if(g.Xa(a))for(var b in a)"html_content"==b||Eaa(b,"_html")?a[b]=g.me(a[b]):Jma(a[b])};
Hma=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
Ima=function(a){var b="";g.$b(a.childNodes,function(c){b+=c.nodeValue});
return b};
iA=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.hA(a,b)};
gA=function(a,b,c,d,e,f,h,l){function m(){4==(n&&"readyState"in n?n.readyState:0)&&b&&g.Nz(b)(n)}
c=void 0===c?"GET":c;d=void 0===d?"":d;l=void 0===l?!1:l;var n=yma();if(!n)return null;"onloadend"in n?n.addEventListener("loadend",m,!1):n.onreadystatechange=m;g.Hz("debug_forward_web_query_parameters")&&(a=Cma(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=Ama(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};
kA=function(a,b){var c=g.md(b),d;return(new g.Nf(function(e,f){c.onSuccess=function(h){g.aA(h)?e(new Kma(h)):f(new jA("Request failed, status="+$z(h),"net.badstatus",h))};
c.onError=function(h){f(new jA("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new jA("Request timed out","net.timeout",h))};
d=g.hA(a,c)})).Ek(function(e){e instanceof $f&&d.abort();
return Qf(e)})};
g.lA=function(a,b,c,d){function e(l,m,n){return l.Ek(function(p){if(0>=m||403===$z(p.xhr))return Qf(new jA("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(kA(a,b),m-1,q)})})}
function f(l){return new g.Nf(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(kA(a,b),c-1,d)};
jA=function(a,b,c){ub.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
Kma=function(a){this.xhr=a};
mA=function(a){this.j=void 0===a?null:a;this.u=0;this.Vd=null};
nA=function(a){var b=new mA;a=void 0===a?null:a;b.u=2;b.Vd=void 0===a?null:a;return b};
oA=function(a){var b=new mA;a=void 0===a?null:a;b.u=1;b.Vd=void 0===a?null:a;return b};
g.rA=function(a,b,c,d,e){pA||qA.set(""+a,b,{MH:c,path:"/",domain:void 0===d?"youtube.com":d,i$:void 0===e?!1:e})};
g.sA=function(a,b){if(!pA)return qA.get(""+a,b)};
g.tA=function(a,b,c){pA||qA.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
Lma=function(){if(!qA.isEnabled())return!1;if(!qA.isEmpty())return!0;qA.set("TESTCOOKIESENABLED","1",{MH:60});if("1"!==qA.get("TESTCOOKIESENABLED"))return!1;qA.remove("TESTCOOKIESENABLED");return!0};
g.Q=function(a,b){if(a)return a[b.name]};
uA=function(a){var b=g.Fz("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Tj(a)));return a};
Mma=function(a,b){var c={};g.Fz("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.Fz("INNERTUBE_API_KEY"));g.Hz("json_condensed_response")&&(c.prettyPrint="false");return a=Vz(a,c)};
vA=function(a,b){var c=void 0===c?{}:c;a={method:void 0===b?"POST":b,mode:Wz(a)?"same-origin":"cors",credentials:Wz(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};
Nma=function(){var a=/Chrome\/(\d+)/.exec(g.nc());return a?parseFloat(a[1]):NaN};
wA=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.nc());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("."))};
yA=function(){return g.xA("android")&&g.xA("chrome")&&!(g.xA("trident/")||g.xA("edge/"))&&!g.xA("cobalt")};
Oma=function(){return g.xA("armv7")||g.xA("aarch64")||g.xA("android")};
g.zA=function(){return g.xA("cobalt")};
AA=function(){return g.xA("cobalt")&&g.xA("appletv")};
BA=function(){return g.xA("(ps3; leanback shell)")||g.xA("ps3")&&g.zA()};
Pma=function(){return g.xA("(ps4; leanback shell)")||g.xA("ps4")&&g.zA()};
g.Qma=function(){return g.zA()&&(g.xA("ps4 vr")||g.xA("ps4 pro vr"))};
CA=function(){var a=/WebKit\/([0-9]+)/.exec(g.nc());return!!(a&&600<=parseInt(a[1],10))};
DA=function(){var a=/WebKit\/([0-9]+)/.exec(g.nc());return!!(a&&602<=parseInt(a[1],10))};
Rma=function(){return g.xA("iemobile")||g.xA("windows phone")&&g.xA("edge")};
GA=function(){return(EA||FA)&&g.xA("applewebkit")&&!g.xA("version")&&(!g.xA("safari")||g.xA("gsa/"))};
IA=function(){return g.HA&&g.xA("version/")};
JA=function(){return g.xA("smart-tv")&&g.xA("samsung")};
g.xA=function(a){var b=g.nc();return b?0<=b.toLowerCase().indexOf(a):!1};
KA=function(){return wj()||GA()||IA()?!0:g.Fz("EOM_VISITOR_DATA")?!1:!0};
LA=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
MA=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
NA=function(a,b){return void 0===b||null===b?a:Number(b)};
OA=function(a,b){return void 0===b||null===b?a:b.toString()};
PA=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(Sma))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
QA=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};
Tma=function(a){return"EMBEDDED_PLAYER_MODE_PFL"===RA(a,!1)};
g.SA=function(a){return"EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"===a||"EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"===a?!0:!1};
RA=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?MA(b,c.embeddedPlayerMode,Uma):b};
UA=function(a){ub.call(this,a.message||a.description||a.name);this.isMissing=a instanceof TA;this.isTimeout=a instanceof jA&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof $f};
TA=function(){ub.call(this,"Biscotti ID is missing from server")};
Vma=function(){if(g.Hz("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!KA())return Error("User has not consented - not fetching biscotti id.");var a=g.Fz("PLAYER_VARS",{});if("1"==g.kd(a,"privembed",!1))return Error("Biscotti ID is not available in private embed mode");if(Tma(a))return Error("Biscotti id fetching has been disabled for pfl.")};
Yma=function(){var a=Vma();if(void 0!==a)return Qf(a);VA||(VA=kA("//googleads.g.doubleclick.net/pagead/id",WA).then(Wma).Ek(function(b){return Xma(2,b)}));
return VA};
Wma=function(a){a=a.xhr.responseText;if(!cc(a,")]}'"))throw new TA;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new TA;a=a.id;mma(a);VA=oA(a);Zma(18E5,2);return a};
Xma=function(a,b){b=new UA(b);mma("");VA=nA(b);0<a&&Zma(12E4,a-1);throw b;};
Zma=function(a,b){g.bA(function(){kA("//googleads.g.doubleclick.net/pagead/id",WA).then(Wma,function(c){return Xma(b,c)}).Ek(g.Ld)},a)};
$ma=function(){return void 0!==Vma()?Qf(Error("Biscotti id is disabled")):kA("//googleads.g.doubleclick.net/pagead/id",WA)};
ana=function(){try{var a=g.Sa("yt.ads.biscotti.getId_");return a?a():Yma()}catch(b){return Qf(b)}};
ena=function(a,b,c){a&&(a.dataset?a.dataset[bna(b)]=String(c):kga([new Zk(cna[0].toLowerCase(),dna)],a,"data-"+b,c.toString()))};
fna=function(a){return a?a.dataset?a.dataset[bna("loaded")]:a.getAttribute("data-loaded"):null};
bna=function(a){return gna[a]||(gna[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
hna=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=XA+"VisibilityState";if(b in a)return a[b]};
YA=function(a,b){var c;xo(a,function(d){c=b[d];return!!c});
return c};
ZA=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()};
bB=function(a){var b;g.$A()?aB()==a&&(b=document):b=a;return b&&(a=YA(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
cB=function(a){return g.Db(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
ina=function(){var a=document;return g.Db(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.$A=function(){return!!YA(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
aB=function(a){a=void 0===a?!1:a;var b=YA(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
dB=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 jna||(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.u=a.pageY}}catch(e){}};
kna=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.u=a.clientY+b}};
lna=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 ed(eB,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Xa(e[4])&&g.Xa(d)&&g.ld(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.fB=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=lna(a,b,c,d);if(e)return e;e=++mna.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new dB(l);if(!uf(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new dB(l);
l.currentTarget=a;return c.call(a,l)};
h=g.Nz(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),nna()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);eB[e]=[a,b,c,h,d];return e};
ona=function(a,b){var c=document.body||document;return g.fB(c,"click",function(d){var e=uf(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.gB=function(a){a&&("string"==typeof a&&(a=[a]),g.$b(a,function(b){if(b in eB){var c=eB[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?nna()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete eB[b]}}))};
pna=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
hB=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;return b&&b.length?b[0]:pna(a)};
iB=function(a){a=a||window.event;var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b};
qna=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
rna=function(a){return ona(a,function(b){return g.Rq(b,"ytp-ad-has-logging-urls")})};
g.sna=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.fB(a,b,function(){g.gB(e);c.apply(a,arguments)},d)};
jB=function(a){for(var b in eB)eB[b][0]==a&&g.gB(b)};
kB=function(a){this.K=a;this.j=null;this.C=0;this.J=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.qa=g.fB(window,"mousemove",(0,g.bb)(this.ea,this));this.V=g.cA((0,g.bb)(this.oa,this),25)};
lB=function(a){g.G.call(this);this.V=[];this.wb=a||this};
mB=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
g.nB=function(a,b){for(;a.V.length;){var c=a.V.pop(),d=void 0;b&&tna()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
oB=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.md(b);this.assets=a.assets||{};this.attrs=a.attrs||g.md(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||{}};
una=function(a){a instanceof oB||(a=new oB(a));return a};
g.rB=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.pB)():qB())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.sB=function(a){var b=qB(),c=(0,g.pB)();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};
vna=function(){var a=(0,g.pB)();if(a&&(a=a.u("yt-player-quality")))return a.creation};
g.tB=function(a){try{var b=qB(),c=(0,g.pB)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.uB=function(){return g.sB("yt-remote-session-screen-id")};
vB=function(){this.FZ=!0};
wna=function(){vB.instance||(vB.instance=new vB);return vB.instance};
xna=function(a){var b=this;this.u=void 0;this.j=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.u=c});
a.addEventListener("appinstalled",function(){b.j=!0},{once:!0})};
wB=function(){if(!g.Pa.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Pa.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Pa.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Pa.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Pa.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
yna=function(){this.j=g.Fz("ALT_PREF_COOKIE_NAME","PREF");this.u=g.Fz("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.sA(this.j);a&&this.parse(a)};
g.yB=function(){xB||(xB=new yna);return xB};
g.zB=function(a,b){return!!((zna("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
BB=function(a,b){var c="f"+(Math.floor(a/31)+1);a=1<<a%31;var d=zna(c)||0;d=b?d|a:d&~a;0===d?delete AB[c]:(b=d.toString(16),AB[c]=b.toString())};
CB=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
DB=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
zna=function(a){a=void 0!==AB[a]?AB[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Ana=function(){var a=g.Pa.navigator;return a?a.connection:void 0};
Cna=function(){var a=Ana();if(a){var b=Bna[a.type||"unknown"]||"CONN_UNKNOWN";a=Bna[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}};
Ena=function(){var a=Ana();if(null!=a&&a.effectiveType)return Dna.hasOwnProperty(a.effectiveType)?Dna[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.EB=function(a){var b=g.Ia.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.qa(b))};
g.GB=function(){try{return g.FB(),!0}catch(a){return!1}};
g.FB=function(a){if(void 0!==g.Fz("DATASYNC_ID"))return g.Fz("DATASYNC_ID");throw new g.EB("Datasync ID not set",void 0===a?"unknown":a);};
HB=function(){this.j=new WeakMap};
g.JB=function(a,b,c){return IB(b,0,c)};
Fna=function(a){var b=g.Sa("yt.scheduler.instance.addImmediateJob");b?b(a):a()};
KB=function(){HB.apply(this,arguments)};
g.LB=function(){KB.instance||(KB.instance=new KB);return KB.instance};
g.MB=function(){return!!g.Sa("yt.scheduler.instance")};
IB=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Sa("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.bA(a,c||0)};
NB=function(a){var b=g.Sa("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
OB=function(a){var b;(b=g.Qr(a))||(a=new Mr(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.j=(a=b)?new qr(a):null;this.u=document.domain||window.location.hostname};
QB=function(){var a;return null==(a=PB())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
Gna=function(){var a={};for(RB=new SB(void 0===a.handleError?TB:a.handleError,void 0===a.logEvent?g.UB:a.logEvent);0<VB.length;)switch(a=VB.shift(),a.type){case "ERROR":RB.vD(a.payload);break;case "EVENT":RB.logEvent(a.eventType,a.payload)}};
XB=function(a){WB||(RB?RB.vD(a):(VB.push({type:"ERROR",payload:a}),10<VB.length&&VB.shift()))};
YB=function(a,b){WB||(RB?RB.logEvent(a,b):(VB.push({type:"EVENT",eventType:a,payload:b}),10<VB.length&&VB.shift()))};
ZB=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
$B=function(a){return a.substr(0,a.indexOf(":"))||a};
g.aC=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?Hna[a]:c;d=void 0===d?Ina[a]:d;e=void 0===e?Jna[a]:e;g.EB.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.aC.prototype)};
bC=function(a,b){g.aC.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Hna.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,bC.prototype)};
cC=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,cC.prototype)};
eC=function(a,b,c,d){b=$B(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.aC)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new g.aC("QUOTA_EXCEEDED",a);if(g.dC&&"UnknownError"===e.name)return new g.aC("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof cC)return new g.aC("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&Kna.some(function(f){return e.message.includes(f)}))return new g.aC("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new g.aC("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",yI:e.name})];e.level="WARNING";return e};
g.fC=function(a,b,c){var d=QB();return new g.aC("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
Lna=function(a){if(!a)throw Error();throw a;};
Mna=function(a){return a};
gC=function(a){this.j=a};
g.hC=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.u(d.u);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.u=[];a=a.j;try{a(c,b)}catch(e){b(e)}};
Nna=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.hC?iC(a,b,f,d,e):d(f)}catch(h){e(h)}};
Ona=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.hC?iC(a,b,f,d,e):d(f)}catch(h){e(h)}};
iC=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.hC?iC(a,b,f,d,e):d(f)},function(f){e(f)})};
Pna=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)};
Qna=function(a){return new Promise(function(b,c){Pna(a,b,c)})};
jC=function(a){return new g.hC(new gC(function(b,c){Pna(a,b,c)}))};
kC=function(a,b){return new g.hC(new gC(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
Rna=function(a,b){this.request=a;this.cursor=b};
lC=function(a){return jC(a).then(function(b){return b?new Rna(a,b):null})};
Sna=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.B=Math.round((0,g.mC)());this.u=!1};
g.oC=function(a,b,c){a=a.j.createObjectStore(b,c);return new nC(a)};
pC=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
g.sC=function(a,b,c){return g.qC(a,[b],{mode:"readwrite",jc:!0},function(d){return g.rC(d.objectStore(b),c)})};
g.qC=function(a,b,c,d){var e,f,h,l,m,n,p,q,t,v,y,A;return g.Ha(function(E){switch(E.j){case 1:var K={mode:"readonly",jc:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?K.mode=c:Object.assign(K,c);e=K;a.transactionCount++;f=e.jc?3:1;h=0;case 2:if(l){E.Ka(4);break}h++;m=Math.round((0,g.mC)());g.ya(E,5);n=a.j.transaction(b,e.mode);K=new tC(n);K=Tna(K,d);return g.z(E,K,7);case 7:return p=E.u,q=Math.round((0,g.mC)()),Una(a,m,q,h,void 0,b.join(),e),E.return(p);case 5:t=g.Aa(E);v=Math.round((0,g.mC)());
y=eC(t,a.j.name,b.join(),a.j.version);if((A=y instanceof g.aC&&!y.j)||h>=f)Una(a,m,v,h,y,b.join(),e),l=y;E.Ka(2);break;case 4:return E.return(Promise.reject(l))}})};
Una=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.aC&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&YB("QUOTA_EXCEEDED",{dbName:$B(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.aC&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),YB("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),Vna(a,!1,d,f,b,h.tag),XB(e)):Vna(a,!0,d,
f,b,h.tag)};
Vna=function(a,b,c,d,e,f){YB("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
nC=function(a){this.j=a};
g.DC=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
Wna=function(a,b){return g.EC(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
Xna=function(a,b,c){var d=[];return g.EC(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
Zna=function(a){return"getAllKeys"in IDBObjectStore.prototype?jC(a.j.getAllKeys(void 0,void 0)):Yna(a)};
Yna=function(a){var b=[];return g.$na(a,{query:void 0},function(c){b.push(c.cH());return c.continue()}).then(function(){return b})};
g.rC=function(a,b,c){return jC(a.j.put(b,c))};
g.EC=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return FC(a).then(function(d){return kC(d,c)})};
g.$na=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 lC(a).then(function(e){return kC(e,c)})};
tC=function(a){var b=this;this.j=a;this.B=new Map;this.u=!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.u){e=g.aC;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)}})})};
Tna=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})};
aoa=function(a){this.j=a};
boa=function(a,b,c){var d=[];return g.GC(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
g.GC=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return FC(a).then(function(d){return kC(d,c)})};
coa=function(a,b){this.request=a;this.cursor=b};
FC=function(a){return jC(a).then(function(b){return b?new coa(a,b):null})};
doa=function(a,b,c){return new Promise(function(d,e){function f(){t||(t=new Sna(h.result,{closed:q}));return t}
var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.J$,p=c.upgrade,q=c.closed,t;h.addEventListener("upgradeneeded",function(v){try{if(null===v.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");v.dataLoss&&"none"!==v.dataLoss&&YB("IDB_DATA_CORRUPTED",{reason:v.dataLossMessage||"unknown reason",dbName:$B(a)});var y=f(),A=new tC(h.transaction);
p&&p(y,function(E){return v.oldVersion<E&&v.newVersion>=E},A);
A.done.catch(function(E){e(E)})}catch(E){e(E)}});
h.addEventListener("success",function(){var v=h.result;m&&v.addEventListener("versionchange",function(){m(f())});
v.addEventListener("close",function(){YB("IDB_UNEXPECTEDLY_CLOSED",{dbName:$B(a),dbVersion:v.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
eoa=function(a,b,c){c=void 0===c?{}:c;return doa(a,b,c)};
HC=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.Ha(function(h){if(1==h.j)return g.ya(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.z(h,Qna(c),4);
if(2!=h.j)return g.za(h,0);f=g.Aa(h);throw eC(f,a,"",-1);})};
IC=function(a,b){this.name=a;this.options=b;this.B=!0;this.D=this.C=0};
foa=function(a,b){return new g.aC("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.JC=function(a,b){if(!b)throw g.fC("openWithToken",$B(a.name));return a.open()};
goa=function(a,b){var c;return g.Ha(function(d){if(1==d.j)return g.z(d,g.JC(KC,b),2);c=d.u;return d.return(g.qC(c,["databases"],{jc:!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.rC(f,a).then(function(){})})}))})};
LC=function(a,b){var c;return g.Ha(function(d){if(1==d.j)return a?g.z(d,g.JC(KC,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})};
hoa=function(a,b){var c,d;return g.Ha(function(e){return 1==e.j?(c=[],g.z(e,g.JC(KC,b),2)):3!=e.j?(d=e.u,g.z(e,g.qC(d,["databases"],{jc:!0,mode:"readonly"},function(f){c.length=0;return g.EC(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return h.continue()})}),3)):e.return(c)})};
ioa=function(a,b){return hoa(function(c){return c.publicName===a&&void 0!==c.userIdentifier},b)};
joa=function(){var a,b,c,d;return g.Ha(function(e){switch(e.j){case 1:a=QB();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(MC&&CA()&&!DA()||g.NC)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.ya(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.z(e,goa(d,OC),4);case 4:return g.z(e,LC("yt-idb-test-do-not-use",OC),5);case 5:return e.return(!0);case 2:return g.Aa(e),e.return(!1)}})};
koa=function(){if(void 0!==PC)return PC;WB=!0;return PC=joa().then(function(a){WB=!1;var b;if(null!=(b=PB())&&b.j){var c;b={hasSucceededOnce:(null==(c=QB())?void 0:c.hasSucceededOnce)||a};var d;null==(d=PB())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
QC=function(){return g.Sa("ytglobal.idbToken_")||void 0};
g.RC=function(){var a=QC();return a?Promise.resolve(a):koa().then(function(b){(b=b?OC:void 0)&&g.Qa("ytglobal.idbToken_",b);return b})};
loa=function(a){if(!g.GB())throw a=new g.aC("AUTH_INVALID",{dbName:a}),XB(a),a;var b=g.FB();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
moa=function(a,b,c,d){var e,f,h,l,m,n;return g.Ha(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.z(p,g.RC(),2);case 2:h=p.u;if(!h)throw l=g.fC("openDbImpl",a,b),g.Hz("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),XB(l),l;ZB(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:loa(a);g.ya(p,3);return g.z(p,goa(m,h),5);case 5:return g.z(p,eoa(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.Aa(p),g.ya(p,7),g.z(p,LC(m.actualName,
h),9);case 9:g.za(p,8);break;case 7:g.Aa(p);case 8:throw n;}})};
noa=function(a,b,c){c=void 0===c?{}:c;return moa(a,b,!1,c)};
ooa=function(a,b,c){c=void 0===c?{}:c;return moa(a,b,!0,c)};
poa=function(a,b){b=void 0===b?{}:b;var c,d;return g.Ha(function(e){if(1==e.j)return g.z(e,g.RC(),2);if(3!=e.j){c=e.u;if(!c)return e.return();ZB(a);d=loa(a);return g.z(e,HC(d.actualName,b),3)}return g.z(e,LC(d.actualName,c),0)})};
qoa=function(a,b,c){a=a.map(function(d){return g.Ha(function(e){return 1==e.j?g.z(e,HC(d.actualName,b),2):g.z(e,LC(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
roa=function(a){var b=void 0===b?{}:b;var c,d;return g.Ha(function(e){if(1==e.j)return g.z(e,g.RC(),2);if(3!=e.j){c=e.u;if(!c)return e.return();ZB(a);return g.z(e,ioa(a,c),3)}d=e.u;return g.z(e,qoa(d,b,c),0)})};
soa=function(a,b){b=void 0===b?{}:b;var c;return g.Ha(function(d){if(1==d.j)return g.z(d,g.RC(),2);if(3!=d.j){c=d.u;if(!c)return d.return();ZB(a);return g.z(d,HC(a,b),3)}return g.z(d,LC(a,c),0)})};
SC=function(a,b){IC.call(this,a,b);this.options=b;ZB(a)};
toa=function(a,b){var c;return function(){c||(c=new SC(a,b));return c}};
g.TC=function(a,b){return toa(a,b)};
UC=function(a){return g.JC(uoa(),a)};
voa=function(a,b,c,d){var e,f,h;return g.Ha(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:void 0!==d?d:(0,g.mC)()},g.z(l,UC(c),2);case 2:return f=l.u,g.z(l,f.clear("hotConfigStore"),3);case 3:return g.z(l,g.sC(f,"hotConfigStore",e),4);case 4:return h=l.u,l.return(h)}})};
woa=function(a,b,c,d,e){var f,h,l;return g.Ha(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:void 0!==e?e:(0,g.mC)()},g.z(m,UC(d),2);case 2:return h=m.u,g.z(m,h.clear("coldConfigStore"),3);case 3:return g.z(m,g.sC(h,"coldConfigStore",f),4);case 4:return l=m.u,m.return(l)}})};
xoa=function(a){var b,c;return g.Ha(function(d){return 1==d.j?g.z(d,UC(a),2):3!=d.j?(b=d.u,c=void 0,g.z(d,g.qC(b,["coldConfigStore"],{mode:"readwrite",jc:!0},function(e){return g.GC(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
yoa=function(a){var b,c;return g.Ha(function(d){return 1==d.j?g.z(d,UC(a),2):3!=d.j?(b=d.u,c=void 0,g.z(d,g.qC(b,["hotConfigStore"],{mode:"readwrite",jc:!0},function(e){return g.GC(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
zoa=function(){return g.Ha(function(a){return g.z(a,roa("ytGcfConfig"),0)})};
VC=function(){g.G.apply(this,arguments);this.j=[]};
aD=function(){var a=this;this.D=!1;this.B=this.C=0;this.J=new VC;this.Rd={wcb:function(){a.D=!0},
Hbb:function(){return a.j},
mdb:function(b){WC(a,b)},
Ir:function(b){a.Ir(b)},
idb:function(b){XC(a,b)},
Q4:function(){return a.coldHashData},
R4:function(){return a.hotHashData},
Wbb:function(){return a.u},
Qbb:function(){return YC()},
Sbb:function(){return ZC()},
Rbb:function(){return g.Sa("yt.gcf.config.coldHashData")},
Tbb:function(){return g.Sa("yt.gcf.config.hotHashData")},
Cdb:function(){Aoa(a)},
bdb:function(){a.Ir(void 0);$C(a);delete aD.instance},
kdb:function(b){a.B=b},
Mbb:function(){return a.B}}};
Boa=function(){if(!aD.instance){var a=new aD;aD.instance=a}return aD.instance};
Eoa=function(a){var b;g.Ha(function(c){if(1==c.j)return g.Hz("start_client_gcf")||g.Hz("delete_gcf_config_db")?g.Hz("start_client_gcf")?g.z(c,g.RC(),3):c.Ka(2):c.return();2!=c.j&&((b=c.u)&&g.GB()&&!g.Hz("delete_gcf_config_db")?(a.D=!0,Aoa(a)):(Coa(a),Doa(a)));return g.Hz("delete_gcf_config_db")?g.z(c,zoa(),0):c.Ka(0)})};
bD=function(){var a;return null!=(a=ZC())?a:null};
Foa=function(a){var b,c,d,e,f,h;return g.Ha(function(l){switch(l.j){case 1:if(a.u)return l.return(ZC());if(!a.D)return b=g.fC("getHotConfig IDB not initialized"),Oz(b),l.return(Promise.reject(b));c=QC();d=g.Fz("TIME_CREATED_MS");if(!c){e=g.fC("getHotConfig token error");Oz(e);l.Ka(2);break}return g.z(l,yoa(c),3);case 3:if((f=l.u)&&f.timestamp>d)return WC(a,f.config),a.Ir(f.hashData),l.return(ZC());case 2:Doa(a);if(!(c&&a.u&&a.hotHashData)){l.Ka(4);break}return g.z(l,voa(a.u,a.hotHashData,c,d),4);
case 4:return a.u?l.return(ZC()):(h=new g.EB("Config not available in ytConfig"),Oz(h),l.return(Promise.reject(h)))}})};
Hoa=function(a){var b,c,d,e,f,h;return g.Ha(function(l){switch(l.j){case 1:if(a.j)return l.return(YC());if(!a.D)return b=g.fC("getColdConfig IDB not initialized"),Oz(b),l.return(Promise.reject(b));c=QC();d=g.Fz("TIME_CREATED_MS");if(!c){e=g.fC("getColdConfig");Oz(e);l.Ka(2);break}return g.z(l,xoa(c),3);case 3:if((f=l.u)&&f.timestamp>d)return XC(a,f.config),Goa(a,f.configData),$C(a,f.hashData),l.return(YC());case 2:Coa(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ka(4);break}return g.z(l,woa(a.j,
a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(YC()):(h=new g.EB("Config not available in ytConfig"),Oz(h),l.return(Promise.reject(h)))}})};
Aoa=function(a){if(!a.u||!a.j){if(!QC()){var b=g.fC("scheduleGetConfigs");Oz(b)}a.C||(a.C=g.Cq.Ki(function(){return g.Ha(function(c){switch(c.j){case 1:return g.ya(c,2),g.z(c,Foa(a),4);case 4:g.za(c,3);break;case 2:g.Aa(c);case 3:return g.ya(c,5),g.z(c,Hoa(a),7);case 7:g.za(c,6);break;case 5:g.Aa(c);case 6:a.C&&(a.C=0),g.xa(c)}})},100))}};
Ioa=function(a,b,c){var d,e,f;return g.Ha(function(h){switch(h.j){case 1:if(!g.Hz("start_client_gcf")){h.Ka(0);break}c&&WC(a,c);a.Ir(b);d=QC();if(!d){h.Ka(3);break}if(c){h.Ka(4);break}return g.z(h,yoa(d),5);case 5:e=h.u,c=null==(f=e)?void 0:f.config;case 4:return g.z(h,voa(c,b,d),3);case 3:if(c)for(var l=c,m=g.u(a.J.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.xa(h)}})};
Joa=function(a,b,c){var d,e,f,h;return g.Ha(function(l){if(1==l.j){if(!g.Hz("start_client_gcf"))return l.Ka(0);$C(a,b);return(d=QC())?c?l.Ka(4):g.z(l,xoa(d),5):l.Ka(0)}4!=l.j&&(e=l.u,c=null==(f=e)?void 0:f.config);if(!c)return l.Ka(0);h=c.configData;return g.z(l,woa(c,b,h,d),0)})};
Koa=function(){var a=Boa(),b=(0,g.mC)()-a.B;if(!(0!==a.B&&b<g.Iz("send_config_hash_timer"))){b=g.Sa("yt.gcf.config.coldConfigData");var c=g.Sa("yt.gcf.config.hotHashData"),d=g.Sa("yt.gcf.config.coldHashData");b&&c&&d&&(a.B=(0,g.mC)());return{coldConfigData:b,hotHashData:c,coldHashData:d}}};
Coa=function(a){XC(a,g.Fz("RAW_COLD_CONFIG_GROUP"));$C(a,g.Fz("SERIALIZED_COLD_HASH_DATA"));var b;Goa(a,null==(b=a.j)?void 0:b.configData)};
Doa=function(a){WC(a,g.Fz("RAW_HOT_CONFIG_GROUP"));a.Ir(g.Fz("SERIALIZED_HOT_HASH_DATA"))};
WC=function(a,b){a.u=b;g.Qa("yt.gcf.config.hotConfigGroup",a.u||null)};
XC=function(a,b){a.j=b;g.Qa("yt.gcf.config.coldConfigGroup",a.j||null)};
$C=function(a,b){a.coldHashData=b;g.Qa("yt.gcf.config.coldHashData",a.coldHashData||null)};
Goa=function(a,b){a.configData=b;g.Qa("yt.gcf.config.coldConfigData",a.configData||null)};
ZC=function(){return g.Sa("yt.gcf.config.hotConfigGroup")};
YC=function(){return g.Sa("yt.gcf.config.coldConfigGroup")};
Loa=function(){return"INNERTUBE_API_KEY"in Dz&&"INNERTUBE_API_VERSION"in Dz};
g.cD=function(){return{innertubeApiKey:g.Fz("INNERTUBE_API_KEY"),innertubeApiVersion:g.Fz("INNERTUBE_API_VERSION"),uH:g.Fz("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),HN:g.Fz("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),lW:g.Fz("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.Fz("INNERTUBE_CONTEXT_CLIENT_VERSION"),JN:g.Fz("INNERTUBE_CONTEXT_HL"),IN:g.Fz("INNERTUBE_CONTEXT_GL"),mW:g.Fz("INNERTUBE_HOST_OVERRIDE")||"",nW:!!g.Fz("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),KN:!!g.Fz("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.Fz("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.dD=function(a){var b={client:{hl:a.JN,gl:a.IN,clientName:a.HN,clientVersion:a.innertubeContextClientVersion,configInfo:a.uH}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.Pa.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=Jz();""!==c&&(b.client.experimentsToken=c);c=Kz();0<c.length&&(b.request={internalExperimentFlags:c});Moa(a,void 0,b);Noa(void 0,b);Ooa(void 0,b);Poa(a,void 0,b);Qoa(void 0,b);g.Hz("start_client_gcf")&&Roa(void 0,b);g.Fz("DELEGATED_SESSION_ID")&&
!g.Hz("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.Fz("DELEGATED_SESSION_ID")});!g.Hz("fill_delegate_context_in_gel_killswitch")&&(a=g.Fz("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(Rz(g.Fz("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};
Toa=function(a){var b=new Ku,c=new g.Eu;O(c,1,a.JN);O(c,2,a.IN);N(c,16,a.lW);O(c,17,a.innertubeContextClientVersion);if(a.uH){var d=a.uH,e=new du;d.coldConfigData&&O(e,1,d.coldConfigData);d.appInstallData&&O(e,6,d.appInstallData);d.coldHashData&&O(e,3,d.coldHashData);d.hotHashData&&e.Ir(d.hotHashData);oi(c,du,62,e)}(d=g.Pa.devicePixelRatio)&&1!=d&&qi(c,65,d);d=Jz();""!==d&&O(c,54,d);d=Kz();if(0<d.length){e=new Gu;for(var f=0;f<d.length;f++){var h=new Fu;O(h,1,d[f].key);ki(h,2,Soa,Fh(d[f].value));
ui(e,15,Fu,h)}oi(b,Gu,5,e)}Moa(a,c);Noa(b);Ooa(c);Poa(a,c);Qoa(c);g.Hz("start_client_gcf")&&Roa(c);g.Fz("DELEGATED_SESSION_ID")&&!g.Hz("pageid_as_header_web")&&(a=new Ju,O(a,3,g.Fz("DELEGATED_SESSION_ID")));!g.Hz("fill_delegate_context_in_gel_killswitch")&&(a=g.Fz("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(d=g.ni(b,Ju,3)||new Ju,a=O(d,18,a),oi(b,Ju,3,a));a=g.u(Object.entries(Rz(g.Fz("DEVICE",""))));for(d=a.next();!d.done;d=a.next())e=g.u(d.value),d=e.next().value,e=e.next().value,"cbrand"===
d?O(c,12,e):"cmodel"===d?O(c,13,e):"cbr"===d?O(c,87,e):"cbrver"===d?O(c,88,e):"cos"===d?O(c,18,e):"cosver"===d?O(c,19,e):"cplatform"===d&&N(c,42,e);b.u(c);return b};
Moa=function(a,b,c){a=a.HN;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=g.ni(b,Cu,96)||new Cu;var d=wB();d=Object.keys(Uoa).indexOf(d);d=-1===d?null:d;null!==d&&N(c,3,d);oi(b,Cu,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=wB())};
Noa=function(a,b){var c=g.Sa("yt.embedded_player.embed_url");c&&(a?(b=g.ni(a,Hu,7)||new Hu,O(b,4,c),oi(a,Hu,7,b)):b&&(b.thirdParty={embedUrl:c}))};
Ooa=function(a,b){var c;if(g.Hz("web_log_memory_total_kbytes")&&(null==(c=g.Pa.navigator)?0:c.deviceMemory)){var d;c=null==(d=g.Pa.navigator)?void 0:d.deviceMemory;a?N(a,95,1E6*c):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
Poa=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=g.ni(b,du,62))?d:new du;O(c,6,a.appInstallData);oi(b,du,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
Qoa=function(a,b){var c=Cna();c&&(a?N(a,61,Voa[c]):b&&(b.client.connectionType=c));g.Hz("web_log_effective_connection_type")&&(c=Ena())&&(a?N(a,94,Woa[c]):b&&(b.client.effectiveConnectionType=c))};
Xoa=function(a,b,c){c=void 0===c?{}:c;var d={};g.Fz("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.Fz("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.Fz("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.TT||g.Fz("AUTHORIZATION");b||(a?b="Bearer "+g.Sa("gapi.auth.getToken")().access_token:(a=wna().xC(eD),g.Hz("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d};
Roa=function(a,b){var c=Koa();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(d&&e&&c)if(a){var f;b=null!=(f=g.ni(a,du,62))?f:new du;O(b,1,d);O(b,3,e);b.Ir(c);oi(a,du,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)}};
fD=function(a,b){this.version=a;this.args=b};
gD=function(a,b){this.topic=a;this.j=b};
iD=function(a,b){var c=hD();c&&c.publish.call(c,a.toString(),a,b)};
Zoa=function(a,b){var c=hD();if(!c)return 0;var d=c.subscribe(a.toString(),function(e,f){var h=g.Sa("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(jD[d])try{if(f&&a instanceof gD&&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.Cu){var n=new l;l.Cu=n.version}var p=l.Cu}catch(q){}if(!p||m.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(l,
g.Lb(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.Mz(q)}},Yoa[a.toString()]?g.MB()?g.Cq.Ki(h):g.bA(h,0):h())});
jD[d]=!0;kD[a.toString()]||(kD[a.toString()]=[]);kD[a.toString()].push(d);return d};
lD=function(a,b){var c=Zoa(a,function(d){b.apply(void 0,arguments);$oa(c)});
return c};
$oa=function(a){var b=hD();b&&("number"===typeof a&&(a=[a]),g.$b(a,function(c){b.unsubscribeByKey(c);delete jD[c]}))};
hD=function(){return g.Sa("ytPubsub2Pubsub2Instance")};
mD=function(a,b,c){c=void 0===c?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&iD("meta_logging_csi_event",{timerName:a,Adb:b})};
qD=function(a,b,c,d){var e=(0,g.mC)(),f={startTime:e,ticks:{},infos:{}};if(nD)try{var h=apa(b);if(null==h||!(h>bpa||h<cpa)){var l=Zla(dpa(b)),m=(0,g.mC)();f.ticks.gelc=m;oD++;g.Hz("disable_compression_due_to_performance_degredation")&&m-e>=epa&&(pD++,g.Hz("abandon_compression_after_N_slow_zips")?oD===g.Iz("compression_disable_point")&&pD>fpa&&(nD=!1):nD=!1);gpa(f);c.headers||(c.headers={});c.headers["Content-Encoding"]="gzip";c.postBody=l;c.postParams=void 0}d(a,c)}catch(n){Oz(n),d(a,c)}else d(a,
c)};
hpa=function(a){var b=void 0===b?!1:b;var c=void 0===c?!1:c;var d=(0,g.mC)(),e={startTime:d,ticks:{},infos:{}},f=b?g.Sa("yt.logging.gzipForFetch",!1):!0;if(nD&&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=apa(h);if(null!=l&&(l>bpa||l<cpa))return a;f=Zla(dpa(h),b?{level:1}:void 0);var m=(0,g.mC)();e.ticks.gelc=m;if(b){oD++;if((g.Hz("disable_compression_due_to_performance_degredation")||g.Hz("disable_compression_due_to_performance_degradation_lr"))&&
m-d>=epa)if(pD++,g.Hz("abandon_compression_after_N_slow_zips")||g.Hz("abandon_compression_after_N_slow_zips_lr")){b=pD/oD;var n=fpa/g.Iz("compression_disable_point");0<oD&&0===oD%g.Iz("compression_disable_point")&&b>=n&&(nD=!1)}else nD=!1;gpa(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return Oz(p),a}}else return a};
apa=function(a){try{return(new Blob(a.split(""))).size}catch(b){return Oz(b),null}};
gpa=function(a){g.Hz("gel_compression_csi_killswitch")||!g.Hz("log_gel_compression_latency")&&!g.Hz("log_gel_compression_latency_lr")||mD("gel_compression",a,{sampleRate:.1})};
sD=function(a){var b=this;this.ZF=this.yg=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){};
this.pz=function(){};
this.now=Date.now;this.fC=!1;this.Rd={jdb:function(p){b.Lf=p},
Ddb:function(){b.NA()},
H3:function(){b.NL()},
bD:function(p){return g.Ha(function(q){return g.z(q,b.bD(p),0)})},
fJ:function(p,q){return b.fJ(p,q)},
iJ:function(){b.iJ()}};
var c;this.JZ=null!=(c=a.JZ)?c:100;var d;this.UY=null!=(d=a.UY)?d:1;var e;this.LY=null!=(e=a.LY)?e:2592E6;var f;this.FY=null!=(f=a.FY)?f:12E4;var h;this.TY=null!=(h=a.TY)?h:5E3;var l;this.Lf=null!=(l=a.Lf)?l:void 0;this.zG=!!a.zG;var m;this.hG=null!=(m=a.hG)?m:.1;var n;this.MI=null!=(n=a.MI)?n:10;a.handleError&&(this.handleError=a.handleError);a.pz&&(this.pz=a.pz);a.fC&&(this.fC=a.fC);a.ZF&&(this.ZF=a.ZF);this.sb=a.sb;this.En=a.En;this.Ah=a.Ah;this.oh=a.oh;this.Hr=a.Hr;this.vP=a.vP;this.IO=a.IO;rD(this)&&
(!this.sb||this.sb("networkless_logging"))&&ipa(this)};
ipa=function(a){rD(a)&&!a.fC&&(a.yg=!0,a.zG&&Math.random()<=a.hG&&a.Ah.M3(a.Lf),a.iJ(),a.oh.oi()&&a.NA(),a.oh.Ta(a.vP,a.NA.bind(a)),a.oh.Ta(a.IO,a.NL.bind(a)))};
lpa=function(a,b){if(!rD(a))throw g.fC("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var h,l,m,n;return g.Ha(function(p){switch(p.j){case 1:h=jpa(f);(l=kpa(f))&&a.sb&&a.sb("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.sb&&a.sb("nwl_consider_error_code")&&h||a.sb&&!a.sb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.MI)){p.Ka(2);break}if(!a.oh.nJ){p.Ka(3);break}return g.z(p,a.oh.nJ(),3);case 3:if(a.oh.oi()){p.Ka(2);break}c(e,f);if(!a.sb||!a.sb("nwl_consider_error_code")||void 0===(null==
(m=b)?void 0:m.id)){p.Ka(6);break}return g.z(p,a.Ah.hQ(b.id,a.Lf,!1),6);case 6:return p.return();case 2:if(a.sb&&a.sb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.MI)return p.return();a.potentialEsfErrorCounter++;if(void 0===(null==(n=b)?void 0:n.id)){p.Ka(8);break}return b.sendCount<a.UY?g.z(p,a.Ah.hQ(b.id,a.Lf,!0,l?!1:void 0),12):g.z(p,a.Ah.Sy(b.id,a.Lf),8);case 12:a.En.Ki(function(){a.oh.oi()&&a.NA()},a.TY);
case 8:c(e,f),g.xa(p)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var h;return g.Ha(function(l){if(1==l.j)return void 0===(null==(h=b)?void 0:h.id)?l.Ka(2):g.z(l,a.Ah.Sy(b.id,a.Lf),2);a.oh.ow&&a.sb&&a.sb("vss_network_hint")&&a.oh.ow(!0);d(e,f);g.xa(l)})};
return b};
tD=function(a,b){a.A_&&!a.oh.oi()?a.A_(b):a.handleError(b)};
rD=function(a){return!!a.Lf||a.ZF};
jpa=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
kpa=function(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)};
mpa=function(){if(uD)return uD();var a={};uD=g.TC("LogsDatabaseV2",{rr:(a.LogsRequestsStore={Sm:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.oC(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.DC(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&pC(b,"sapisid");c(9)&&pC(b,"SWHealthLog")},
version:9});return uD()};
vD=function(a){return g.JC(mpa(),a)};
opa=function(a,b){var c,d,e,f;return g.Ha(function(h){if(1==h.j)return c={startTime:(0,g.mC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.z(h,vD(b),2);if(3!=h.j)return d=h.u,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.Fz("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.z(h,g.sC(d,"LogsRequestsStore",e),3);f=h.u;c.ticks.tc=(0,g.mC)();npa(c);return h.return(f)})};
ppa=function(a,b){var c,d,e,f,h,l,m;return g.Ha(function(n){if(1==n.j)return c={startTime:(0,g.mC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.z(n,vD(b),2);if(3!=n.j)return d=n.u,e=g.Fz("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.mC)()],l=IDBKeyRange.bound(f,h),m=void 0,g.z(n,g.qC(d,["LogsRequestsStore"],{mode:"readwrite",jc:!0},function(p){return g.GC(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.mC)();npa(c);return n.return(m)})};
qpa=function(a,b){var c;return g.Ha(function(d){if(1==d.j)return g.z(d,vD(b),2);c=d.u;return d.return(g.qC(c,["LogsRequestsStore"],{mode:"readwrite",jc:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.rC(f,h).then(function(){return h})})}))})};
rpa=function(a,b,c,d){c=void 0===c?!0:c;var e;return g.Ha(function(f){if(1==f.j)return g.z(f,vD(b),2);e=f.u;return f.return(g.qC(e,["LogsRequestsStore"],{mode:"readwrite",jc:!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.rC(l,m).then(function(){return m})):g.hC.resolve(void 0)})}))})};
spa=function(a,b){var c;return g.Ha(function(d){if(1==d.j)return g.z(d,vD(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})};
tpa=function(a){var b,c;return g.Ha(function(d){if(1==d.j)return g.z(d,vD(a),2);b=d.u;c=(0,g.mC)()-2592E6;return g.z(d,g.qC(b,["LogsRequestsStore"],{mode:"readwrite",jc:!0},function(e){return g.EC(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
upa=function(){g.Ha(function(a){return g.z(a,roa("LogsDatabaseV2"),0)})};
npa=function(a){g.Hz("nwl_csi_killswitch")||mD("networkless_performance",a,{sampleRate:1})};
wpa=function(a){return g.JC(vpa(),a)};
xpa=function(a){var b,c;g.Ha(function(d){if(1==d.j)return g.z(d,wpa(a),2);b=d.u;c=(0,g.mC)()-2592E6;return g.z(d,g.qC(b,["SWHealthLog"],{mode:"readwrite",jc:!0},function(e){return g.EC(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
ypa=function(a){var b;return g.Ha(function(c){if(1==c.j)return g.z(c,wpa(a),2);b=c.u;return g.z(c,b.clear("SWHealthLog"),0)})};
g.wD=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.zA()){if(a){a=g.$d(g.be(a));if("about:invalid#zClosurez"===a||a.startsWith("data"))a="";else{var l=void 0===l?{}:l;a instanceof ke?l=a:(a=a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),l.Xcb&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;")),l.Wcb&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>")),l.Ycb&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>')),
l=g.me(a));a=g.Ae(g.Cj(g.le(l).toString()))}g.ec(a)||(l=af("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),He(l).body.appendChild(l))}}else if(e)gA(a,b,"POST",e,d);else if(g.Fz("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)gA(a,b,"GET","",d,void 0,f,h);else{b:{try{var m=new Oka({url:a});if(m.B&&m.u||m.C){var n=Hj(g.Rj(5,a));var p=!(!n||!n.endsWith("/aclk")||"1"!==ak(a,"ri"));break b}}catch(q){}p=!1}p?zpa(a)?(b&&b(),l=!0):l=!1:l=!1;l||Apa(a,b)}};
zpa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
Apa=function(a,b){var c=new Image,d=""+Bpa++;xD[d]=c;c.onload=c.onerror=function(){b&&xD[d]&&b();delete xD[d]};
c.src=a};
yD=function(){this.j=new Map;this.u=!1};
zD=function(){if(!yD.instance){var a=g.Sa("yt.networkRequestMonitor.instance")||new yD;g.Qa("yt.networkRequestMonitor.instance",a);yD.instance=a}return yD.instance};
BD=function(){AD||(AD=new OB("yt.offline"));return AD};
Cpa=function(a){if(g.Hz("offline_error_handling")){var b=BD().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);BD().set("errors",b,2592E3,!0)}};
CD=function(){g.Hd.call(this);var a=this;this.u=!1;this.j=Uka();this.j.Ta("networkstatus-online",function(){if(a.u&&g.Hz("offline_error_handling")){var b=BD().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.EB(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.Mz(d)}BD().set("errors",{},2592E3,!0)}}})};
Dpa=function(){if(!CD.instance){var a=g.Sa("yt.networkStatusManager.instance")||new CD;g.Qa("yt.networkStatusManager.instance",a);CD.instance=a}return CD.instance};
g.DD=function(a){a=void 0===a?{}:a;g.Hd.call(this);var b=this;this.j=this.C=0;this.u=Dpa();var c=g.Sa("yt.networkStatusManager.instance.listen").bind(this.u);c&&(a.UI?(this.UI=a.UI,c("networkstatus-online",function(){Epa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Epa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
Epa=function(a,b){a.UI?a.j?(g.Cq.Tj(a.C),a.C=g.Cq.Ki(function(){a.B!==b&&(a.dispatchEvent(b),a.B=b,a.j=(0,g.mC)())},a.UI-((0,g.mC)()-a.j))):(a.dispatchEvent(b),a.B=b,a.j=(0,g.mC)()):a.dispatchEvent(b)};
FD=function(){var a=sD.call;ED||(ED=new g.DD({Jcb:!0,obb:!0}));a.call(sD,this,{Ah:{M3:tpa,Sy:spa,rV:ppa,d6:qpa,hQ:rpa,set:opa},oh:ED,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;Oz(new g.EB(b.message,c,null==d?void 0:null==(h=d.error)?void 0:h.code),void 0,void 0,void 0,!0)}else g.Mz(b)},
pz:Oz,Hr:Fpa,now:g.mC,A_:Cpa,En:g.LB(),vP:"publicytnetworkstatus-online",IO:"publicytnetworkstatus-offline",zG:!0,hG:.1,MI:g.Iz("potential_esf_error_limit",10),sb:g.Hz,fC:!(g.GB()&&"www.youtube-nocookie.com"!==g.Sj(document.location.toString()))});this.u=new g.Xk;g.Hz("networkless_immediately_drop_all_requests")&&upa();soa("LogsDatabaseV2")};
GD=function(){var a=g.Sa("yt.networklessRequestController.instance");a||(a=new FD,g.Qa("yt.networklessRequestController.instance",a),g.Hz("networkless_logging")&&g.RC().then(function(b){a.Lf=b;ipa(a);a.u.resolve();a.zG&&Math.random()<=a.hG&&a.Lf&&xpa(a.Lf);g.Hz("networkless_immediately_drop_sw_health_store")&&Gpa(a)}));
return a};
Gpa=function(a){var b;g.Ha(function(c){if(!a.Lf)throw b=g.fC("clearSWHealthLogsDb"),b;return c.return(ypa(a.Lf).catch(function(d){a.handleError(d)}))})};
Fpa=function(a,b,c){b=g.Hz("web_fp_via_jspb")?Object.assign({},b):b;g.Hz("use_cfr_monitor")&&Hpa(a,b);if(g.Hz("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.mC)())));else{var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.mC)())}c&&0===Object.keys(b).length?g.wD(a):b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),qD(a,b.postBody,b,g.hA)):qD(a,JSON.stringify(b.postParams),
b,iA):g.hA(a,b)};
Hpa=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){zD().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){zD().requestComplete(a,!0);d(e,f)}};
g.HD=function(a){this.config_=null;a?this.config_=a:Loa()&&(this.config_=g.cD())};
g.ID=function(a,b,c,d){function e(p){try{if((void 0===p?0:p)&&d.retry&&!d.jX.bypassNetworkless)f.method="POST",d.jX.writeThenSend?GD().writeThenSend(n,f):GD().sendAndWrite(n,f);else if(d.compress)if(f.postBody){var q=f.postBody;"string"!==typeof q&&(q=JSON.stringify(f.postBody));qD(n,q,f,g.hA)}else qD(n,JSON.stringify(f.postParams),f,iA);else g.Hz("web_all_payloads_via_jspb")?g.hA(n,f):iA(n,f)}catch(t){if("InvalidAccessError"==t.name)Oz(Error("An extension is blocking network request."));else throw t;
}}
!g.Fz("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&Oz(new g.EB("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.EB("innertube xhrclient not ready",b,c,d),g.Mz(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_.mW;h&&(c=h);var l=a.config_.nW||!1;h=Xoa(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_.KN&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=Uz(""+c+b,l);g.Sa("ytNetworklessLoggingInitializationOptions")&&
Ipa.isNwlInitialized?koa().then(function(p){e(p)}):e(!1)};
g.ND=function(a,b,c){var d=g.JD();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){KD[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.LD[a]?h():g.bA(h,0)}catch(l){g.Mz(l)}},c);
KD[e]=!0;MD[a]||(MD[a]=[]);MD[a].push(e);return e}return 0};
Jpa=function(a){var b=g.ND("LOGGED_IN",function(c){a.apply(void 0,arguments);g.OD(b)})};
g.OD=function(a){var b=g.JD();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.$b(a,function(c){b.unsubscribeByKey(c);delete KD[c]}))};
g.PD=function(a,b){var c=g.JD();return c?c.publish.apply(c,arguments):!1};
Lpa=function(a){var b=g.JD();if(b)if(b.clear(a),a)Kpa(a);else for(var c in MD)Kpa(c)};
g.JD=function(){return g.Pa.ytPubsubPubsubInstance};
Kpa=function(a){MD[a]&&(a=MD[a],g.$b(a,function(b){KD[b]&&delete KD[b]}),a.length=0)};
g.QD=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(Mpa,""),c=c.replace(Npa,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else Opa(a,b,c)};
Opa=function(a,b,c){c=void 0===c?null:c;var d=Ppa(a),e=document.getElementById(d),f=e&&fna(e),h=e&&!f;f?b&&b():(b&&(f=g.ND(d,b),b=""+g.ab(b),Qpa[b]=f),h||(e=Rpa(a,d,function(){fna(e)||(ena(e,"loaded","true"),g.PD(d),g.bA(g.db(Lpa,d),0))},c)))};
Rpa=function(a,b,c,d){d=void 0===d?null:d;var e=g.bf("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.fl(e,g.Ds(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Ppa=function(a){var b=document.createElement("a");g.ne(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Ee(a)};
TD=function(a){var b=g.Ia.apply(1,arguments);if(!RD(a)||b.some(function(d){return!RD(d)}))throw Error("Only objects may be merged.");
b=g.u(b);for(var c=b.next();!c.done;c=b.next())SD(a,c.value);return a};
SD=function(a,b){for(var c in b)if(RD(b[c])){if(c in a&&!RD(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});SD(a[c],b[c])}else if(UD(b[c])){if(c in a&&!UD(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Spa(a[c],b[c])}else a[c]=b[c];return a};
Spa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,RD(c)?a.push(SD({},c)):UD(c)?a.push(Spa([],c)):a.push(c);return a};
RD=function(a){return"object"===typeof a&&!Array.isArray(a)};
UD=function(a){return"object"===typeof a&&Array.isArray(a)};
VD=function(a){this.value=a};
WD=function(a){this.value=a};
XD=function(a){this.value=a};
YD=function(a){this.value=a};
ZD=function(a){this.value=a};
$D=function(){VD.apply(this,arguments)};
aE=function(a){this.value=a};
bE=function(a){this.value=a};
cE=function(a){this.value=a};
dE=function(a){this.value=a};
eE=function(a){this.value=a};
fE=function(a){this.value=a};
gE=function(a){this.value=a};
hE=function(a){this.value=a};
iE=function(a){this.value=a};
jE=function(){VD.apply(this,arguments)};
kE=function(){VD.apply(this,arguments)};
lE=function(a){this.value=a};
mE=function(a){this.value=a};
nE=function(a){this.value=a};
oE=function(a){this.value=a};
pE=function(a){this.value=a};
qE=function(a){this.value=a};
rE=function(a){this.value=a};
sE=function(a){this.value=a};
tE=function(a){this.value=a};
uE=function(a){this.value=a};
vE=function(a){this.value=a};
wE=function(a){this.value=a};
xE=function(a){this.value=a};
yE=function(a){this.value=a};
zE=function(a){this.value=a};
AE=function(a){this.value=a};
BE=function(a){this.value=a};
CE=function(a){this.value=a};
DE=function(a){this.value=a};
EE=function(a){this.value=a};
FE=function(a){this.value=a};
GE=function(a){this.value=a};
HE=function(a){this.value=a};
IE=function(a){this.value=a};
JE=function(a){this.value=a};
KE=function(a){this.value=a};
LE=function(a){this.value=a};
ME=function(a){this.value=a};
NE=function(a){this.value=a};
OE=function(a){this.value=a};
PE=function(a){this.value=a};
QE=function(a){this.value=a};
RE=function(a){this.value=a};
SE=function(a){this.value=a};
TE=function(a){this.value=a};
UE=function(){VD.apply(this,arguments)};
VE=function(a){this.value=a};
WE=function(){VD.apply(this,arguments)};
XE=function(){VD.apply(this,arguments)};
YE=function(){VD.apply(this,arguments)};
ZE=function(){VD.apply(this,arguments)};
$E=function(a){this.value=a};
aF=function(a){this.value=a};
bF=function(a){this.value=a};
cF=function(a,b,c,d,e,f,h){g.G.call(this);this.Da=a;this.Tb=b;this.Rb=c;this.ze=d;this.Wa=e;this.u=f;this.j=h};
Wpa=function(a,b,c){var d,e=(null!=(d=c.adSlots)?d:[]).map(function(f){return g.Q(f,Tpa)});
c.MA?dF(b.Ea,"metadata_type_allow_pause_ad_break_request_slot_reschedule")?eF(a.Tb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId):(a.Da.get().I.W().N("h5_check_forecasting_renderer_for_throttled_midroll")?(d=c.Vu.filter(function(f){var h;
return null!=(null==(h=f.renderer)?void 0:h.clientForecastingAdRenderer)}),0!==d.length?Upa(a.j,d,e,b.slotId,c.ssdaiAdsConfig):eF(a.Tb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)):eF(a.Tb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),Vpa(a.u,b)):Upa(a.j,c.Vu,e,b.slotId,c.ssdaiAdsConfig)};
Ypa=function(a,b,c,d,e,f){var h=a.Wa.get().Nf(1);eF(a.Tb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Xpa(a.ze.get(),c,d,e,h.clientPlaybackNonce,h.vU,h.daiEnabled,h,f)},b)};
gF=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(!fF(a.Ea,c.value))return!1;return!0};
hF=function(){return""};
Zpa=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}};
iF=function(a,b,c,d){d=void 0===d?!1:d;ub.call(this,a);this.Lk=c;this.Wu=d;this.args=[];b&&this.args.push(b)};
jF=function(a,b,c){this.Yr=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=c||a(this.triggerType)};
$pa=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
aqa=function(){this.Gs=[];this.lr=[]};
lF=function(){if(!kF){var a=kF=new aqa;a.lr.length=0;a.Gs.length=0;bqa(a,cqa)}return kF};
bqa=function(a,b){b.lr&&a.lr.push.apply(a.lr,b.lr);b.Gs&&a.Gs.push.apply(a.Gs,b.Gs)};
dqa=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=mF(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=mF(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=mF(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)};
mF=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};
eqa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=nF(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=dqa(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?nF(e+".ve",f,h,l):0;d+=h;d+=nF(e,a[e],b,c);if(500<d)break}}else c[b]=oF(a),d+=c[b].length;else c[b]=oF(a),d+=c[b].length;return d};
nF=function(a,b,c,d){c+="."+a;a=oF(b);d[c]=a;return c.length+a.length};
oF=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+")"}};
fqa=function(){var a={},b=void 0===a.F9?!1:a.F9;a=void 0===a.t4?!0:a.t4;if(null==g.Sa("_lact",window)){var c=parseInt(g.Fz("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Qa("_lact",c,window);g.Qa("_fact",c,window);-1==c&&pF();g.fB(document,"keydown",pF);g.fB(document,"keyup",pF);g.fB(document,"mousedown",pF);g.fB(document,"mouseup",pF);b?g.fB(window,"touchmove",function(){qF("touchmove",200)},{passive:!0}):(g.fB(window,"resize",function(){qF("resize",200)}),a&&g.fB(window,"scroll",function(){qF("scroll",
200)}));
new kB(function(){qF("mouse",100)});
g.fB(document,"touchstart",pF,{passive:!0});g.fB(document,"touchend",pF,{passive:!0})}};
qF=function(a,b){rF[a]||(rF[a]=!0,g.Cq.Ki(function(){pF();rF[a]=!1},b))};
pF=function(a){var b;if(null!=(b=g.Sa("experiment.flags",window))&&b.enable_lact_reset_by_volume_buttons||!gqa.has(null==a?void 0:a.keyCode))null==g.Sa("_lact",window)&&(fqa(),g.Sa("_lact",window)),a=Date.now(),g.Qa("_lact",a,window),-1==g.Sa("_fact",window)&&g.Qa("_fact",a,window),(a=g.Sa("ytglobal.ytUtilActivityCallback_"))&&a()};
sF=function(){var a=g.Sa("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)};
tF=function(a){this.name=a};
uF=function(a){this.key=a};
hqa=function(){var a=this;this.j=new Map;this.u=new Map;this.Rd={Ybb:function(){return new Map(a.j)}}};
vF=function(a,b){a.j.set(b.RP,b)};
xF=function(a,b,c,d){d=void 0===d?!1:d;if(-1<c.indexOf(b))throw Error("Deps cycle for: "+b);if(a.u.has(b))return a.u.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.rR)var e=d.rR;else if(d.maa)e=d[wF]?iqa(a,d[wF],c):[],e=d.maa.apply(d,g.qa(e));else if(d.o_){e=d.o_;var f=e[wF]?iqa(a,e[wF],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.qa(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.vdb||a.u.set(b,e);
return e};
iqa=function(a,b,c){return b?b.map(function(d){return d instanceof uF?xF(a,d.key,c,!0):xF(a,d,c)}):[]};
zF=function(){yF||(yF=new hqa);return yF};
BF=function(){var a,b;return"h5vcc"in AF&&(null==(a=AF.h5vcc.traceEvent)?0:a.traceBegin)&&(null==(b=AF.h5vcc.traceEvent)?0:b.traceEnd)?1:"performance"in AF&&AF.performance.mark&&AF.performance.measure?2:0};
CF=function(a){var b=BF();switch(b){case 1:AF.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:AF.performance.mark(a+"-start");break;case 0:break;default:dl(b,"unknown trace type")}};
jqa=function(a){var b=BF();switch(b){case 1:AF.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";AF.performance.mark(c);AF.performance.measure(a,b,c);break;case 0:break;default:dl(b,"unknown trace type")}};
kqa=function(a){var b=this;var c=void 0===c?0:c;var d=void 0===d?g.LB():d;this.B=c;this.scheduler=d;this.u=new g.Xk;this.j=a;for(a={Ju:0};a.Ju<this.j.length;a={hB:a.hB,Ju:a.Ju},a.Ju++)a.hB=this.j[a.Ju],c=function(e){return function(){e.hB.bO();b.j[e.Ju].QI=!0;b.j.every(function(f){return!0===f.QI})&&b.u.resolve()}}(a),d=IB(c,DF(this,a.hB)),this.j[a.Ju]=Object.assign({},a.hB,{bO:c,
jobId:d})};
lqa=function(a){var b=Array.from(a.j.keys()).sort(function(d,e){return DF(a,a.j[e])-DF(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.QI||(a.scheduler.Tj(c.jobId),IB(c.bO,10))};
DF=function(a,b){var c;return null!=(c=b.priority)?c:a.B};
FF=function(a){this.state=a;this.plugins=[];this.B=void 0;this.C={};EF&&CF(this.state)};
mqa=function(a,b){var c=b.filter(function(e){return 10===GF(a,e)}),d=b.filter(function(e){return 10!==GF(a,e)});
return a.C.rdb?function(){var e=g.Ia.apply(0,arguments);return g.Ha(function(f){if(1==f.j)return g.z(f,a.c$.apply(a,[c].concat(g.qa(e))),2);a.hZ.apply(a,[d].concat(g.qa(e)));g.xa(f)})}:function(){var e=g.Ia.apply(0,arguments);
a.d$.apply(a,[c].concat(g.qa(e)));a.hZ.apply(a,[d].concat(g.qa(e)))}};
GF=function(a,b){var c,d;return null!=(d=null!=(c=a.B)?c:b.priority)?d:0};
HF=function(a){EF&&a&&CF(a)};
IF=function(a){EF&&a&&jqa(a)};
nqa=function(a,b,c){EF&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())};
JF=function(a){FF.call(this,void 0===a?"none":a);this.j=null;this.B=10;this.transitions=[{from:"none",to:"application_navigating",action:this.D},{from:"application_navigating",to:"none",action:this.J},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]};
oqa=function(){KF||(KF=new JF);return KF};
LF=function(){var a=this;this.store={};this.j=0;this.u={};this.Rd={Nbb:function(){return a.j}}};
OF=function(a,b){var c=MF(b);if(a.u[c])return a.u[c];var d=Object.keys(a.store)||[];if(1>=d.length&&MF(b)===d[0])return d;for(var e=[],f=0;f<d.length;f++){var h=d[f].split("/");if(NF(b.auth,h[0])){var l=b.isJspb;NF(void 0===l?"undefined":l?"true":"false",h[1])&&NF(b.cttAuthInfo,h[2])&&(l=b.tier,l=void 0===l?"undefined":JSON.stringify(l),NF(l,h[3])&&e.push(d[f]))}}return a.u[c]=e};
NF=function(a,b){return void 0===a||"undefined"===a?!0:a===b};
MF=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("/")};
PF=function(){this.B=this.j=this.u=0};
QF=function(){var a=g.Sa("yt.logging.ims");a||(a=new LF,g.Qa("yt.logging.ims",a));return a};
tqa=function(a,b){if("log_event"===a.endpoint){RF(a);var c=SF(a);a:{var d=Object.keys(a.payload);d=g.u(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,pqa[e]){d=e;break a}d=void 0}d=qqa(d||"");400===d?rqa(a,b):(TF[c]=!0,d={cttAuthInfo:c,isJspb:!1,tier:d},QF().storePayload(d,a.payload),sqa(b,c,!1,d))}};
vqa=function(a,b,c){if("log_event"===b.endpoint){RF(void 0,b);var d=SF(b,!0),e=qqa(a);400===e?uqa(a,b,c):(TF[d]=!0,a={cttAuthInfo:d,isJspb:!0,tier:e},QF().storePayload(a,b.payload.toJSON()),sqa(c,d,!0,a))}};
sqa=function(a,b,c,d){function e(){UF({writeThenSend:!0},g.Hz("flush_only_full_queue")?b:void 0,c,d.tier)}
c=void 0===c?!1:c;a&&(VF=new a);a=g.Iz("tvhtml5_logging_max_batch_ads_fork")||g.Iz("web_logging_max_batch")||100;var f=(0,g.mC)(),h=WF(c,d.tier),l=h.B,m=0;d&&(m=QF().getSequenceCount(d));1E3<=m?e():m>=a?XF||(XF=YF(function(){e();XF=void 0},0)):10<=f-l&&(wqa(c,d.tier),h.B=f)};
rqa=function(a,b){if("log_event"===a.endpoint){RF(a);var c=SF(a),d=new Map;d.set(c,[a.payload]);b&&(VF=new b);return new g.Nf(function(e,f){VF&&VF.isReady()?ZF(d,VF,e,f,{bypassNetworkless:!0},!0):e()})}};
uqa=function(a,b,c){if("log_event"===b.endpoint){RF(void 0,b);a=SF(b,!0);var d=new Map;d.set(a,[b.payload.toJSON()]);c&&(VF=new c);return new g.Nf(function(e){VF&&VF.isReady()?$F(d,VF,e,{bypassNetworkless:!0},!0):e()})}};
SF=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 Bz;c.videoId?d.setVideoId(c.videoId):c.playlistId&&ki(d,2,aG,Fh(c.playlistId));bG[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),cG[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
UF=function(a,b,c,d){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.Nf(function(e,f){var h=WF(c,d);dG(h.u);dG(h.j);h.j=0;VF&&VF.isReady()?void 0===d&&g.Hz("enable_web_tiered_gel")?xqa(e,f,a,b,c,300):xqa(e,f,a,b,c,d):(wqa(c,d),e())})};
xqa=function(a,b,c,d,e,f){var h=VF;c=void 0===c?{}:c;e=void 0===e?!1:e;f=void 0===f?200:f;var l=new Map,m=new Map,n={isJspb:e,cttAuthInfo:d,tier:f},p={isJspb:e,cttAuthInfo:d};if(void 0!==d)e?(b=g.Hz("enable_web_tiered_gel")?QF().smartExtractMatchingEntries({keys:[n,p],sizeLimit:1E3}):QF().extractMatchingEntries(p),l.set(d,b),$F(l,h,a,c)):(l=g.Hz("enable_web_tiered_gel")?QF().smartExtractMatchingEntries({keys:[n,p],sizeLimit:1E3}):QF().extractMatchingEntries(p),m.set(d,l),ZF(m,h,a,b,c));else if(e){b=
g.u(Object.keys(TF));for(d=b.next();!d.done;d=b.next())m=d.value,f=g.Hz("enable_web_tiered_gel")?QF().smartExtractMatchingEntries({keys:[n,p],sizeLimit:1E3}):QF().extractMatchingEntries({isJspb:!0,cttAuthInfo:m}),0<f.length&&l.set(m,f),(g.Hz("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.Hz("web_fp_via_jspb_and_json"))&&delete TF[m];$F(l,h,a,c)}else{l=g.u(Object.keys(TF));for(d=l.next();!d.done;d=l.next())n=d.value,p=g.Hz("enable_web_tiered_gel")?QF().smartExtractMatchingEntries({keys:[{isJspb:!1,
cttAuthInfo:n,tier:f},{isJspb:!1,cttAuthInfo:n}],sizeLimit:1E3}):QF().extractMatchingEntries({isJspb:!1,cttAuthInfo:n}),0<p.length&&m.set(n,p),(g.Hz("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.Hz("web_fp_via_jspb_and_json"))&&delete TF[n];ZF(m,h,a,b,c)}};
wqa=function(a,b){a=void 0===a?!1:a;b=void 0===b?200:b;var c=WF(a,b),d=c===yqa||c===zqa?5E3:Aqa;g.Hz("web_gel_timeout_cap")&&!c.j&&(d=YF(function(){UF({writeThenSend:!0},void 0,a,b)},d),c.j=d);
dG(c.u);d=g.Fz("LOGGING_BATCH_TIMEOUT",g.Iz("web_gel_debounce_ms",1E4));g.Hz("shorten_initial_gel_batch_timeout")&&eG&&(d=Bqa);d=YF(function(){UF({writeThenSend:!0},void 0,a,b)},d);
c.u=d};
ZF=function(a,b,c,d,e,f){e=void 0===e?{}:e;var h=Math.round((0,g.mC)()),l=a.size;a=g.u(a);for(var m=a.next(),n={};!m.done;n={xF:n.xF,Gu:n.Gu,fB:n.fB,zF:n.zF,yF:n.yF},m=a.next()){var p=g.u(m.value);m=p.next().value;p=p.next().value;n.Gu=g.od({context:g.dD(b.config_||g.cD())});if(!g.Wa(p)&&!g.Hz("throw_err_when_logevent_malformed_killswitch")){d();break}n.Gu.events=p;(p=cG[m])&&Cqa(n.Gu,m,p);delete cG[m];n.fB="visitorOnlyApprovedKey"===m;Dqa(n.Gu,h,n.fB);Eqa(e);n.zF=function(q){g.Hz("start_client_gcf")&&
g.Cq.Ki(function(){return g.Ha(function(t){return g.z(t,Fqa(q),0)})});
l--;l||c()};
n.xF=0;n.yF=function(q){return function(){q.xF++;if(e.bypassNetworkless&&1===q.xF)try{g.ID(b,"log_event",q.Gu,fG({writeThenSend:!0},q.fB,q.zF,q.yF,f)),eG=!1}catch(t){g.Mz(t),d()}l--;l||c()}}(n);
try{g.ID(b,"log_event",n.Gu,fG(e,n.fB,n.zF,n.yF,f)),eG=!1}catch(q){g.Mz(q),d()}}};
$F=function(a,b,c,d,e){d=void 0===d?{}:d;var f=Math.round((0,g.mC)()),h=a.size,l=new Map([].concat(g.qa(a)));l=g.u(l);for(var m=l.next();!m.done;m=l.next()){var n=g.u(m.value).next().value,p=a.get(n);m=new Cz;var q=Toa(b.config_||g.cD());oi(m,Ku,1,q);p=p?Gqa(p):[];p=g.u(p);for(q=p.next();!q.done;q=p.next())ui(m,3,zz,q.value);(p=bG[n])&&Hqa(m,n,p);delete bG[n];n="visitorOnlyApprovedKey"===n;Iqa(m,f,n);Eqa(d);p={startTime:(0,g.mC)(),ticks:{},infos:{}};m=m.zm();p.ticks.geljspc=(0,g.mC)();g.Hz("log_jspb_serialize_latency")&&
mD("gel_jspb_serialize",p,{sampleRate:.1});n=fG(d,n,function(t){g.Hz("start_client_gcf")&&g.Cq.Ki(function(){return g.Ha(function(v){return g.z(v,Fqa(t),0)})});
h--;h||c()},function(){h--;
h||c()},e);
n.headers["Content-Type"]="application/json+protobuf";n.postBodyFormat="JSPB";n.postBody=m;g.ID(b,"log_event","",n);eG=!1}};
Eqa=function(a){g.Hz("always_send_and_write")&&(a.writeThenSend=!1)};
fG=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,jX:a,dangerousLogToVisitorSession:b,ebb:!!e,headers:{},postBodyFormat:"",postBody:"",compress:g.Hz("compress_gel")||g.Hz("compress_gel_lr")};gG()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.mC)())));return a};
Dqa=function(a,b,c){gG()||(a.requestTimeMs=String(b));g.Hz("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.Fz("EVENT_ID"))&&(c=Jqa(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
Iqa=function(a,b,c){gG()||N(a,2,b);if(!c&&(b=g.Fz("EVENT_ID"))){c=Jqa();var d=new Az;O(d,1,b);N(d,2,c);oi(a,Az,5,d)}};
Jqa=function(){var a=g.Fz("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*Kqa/2));a++;a>Kqa&&(a=1);Ez("BATCH_CLIENT_COUNTER",a);return a};
Cqa=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}]};
Hqa=function(a,b,c){if(c.ud())var d=1;else if(c.getPlaylistId())d=2;else return;oi(a,Bz,4,c);a=g.ni(a,Ku,1)||new Ku;c=g.ni(a,Ju,3)||new Ju;var e=new Iu;e.setToken(b);N(e,1,d);ui(c,12,Iu,e);oi(a,Ju,3,c)};
Gqa=function(a){for(var b=[],c=0;c<a.length;c++)try{b.push(new zz(a[c]))}catch(d){g.Mz(new g.EB("Transport failed to deserialize "+String(a[c])))}return b};
RF=function(a,b){if(g.Sa("yt.logging.transport.enableScrapingForTest")){var c=g.Sa("yt.logging.transport.scrapedPayloadsForTesting"),d=g.Sa("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.Sa("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.Qa("yt.logging.transport.scrapedPayloadsForTesting",c)}};
gG=function(){return g.Hz("use_request_time_ms_header")||g.Hz("lr_use_request_time_ms_header")};
YF=function(a,b){return g.Hz("transport_use_scheduler")?g.Hz("logging_avoid_blocking_during_navigation")||g.Hz("lr_logging_avoid_blocking_during_navigation")?g.JB(0,function(){if("none"===oqa().currentState)a();else{var c={};oqa().install((c.none={callback:a},c))}},b):IB(a,0,b):g.bA(a,b)};
dG=function(a){g.Hz("transport_use_scheduler")?g.Cq.Tj(a):g.dA(a)};
Fqa=function(a){var b,c,d,e,f,h,l,m,n,p;return g.Ha(function(q){return 1==q.j?(d=null==(b=a)?void 0:null==(c=b.responseContext)?void 0:c.globalConfigGroup,e=g.Q(d,Lqa),h=null==(f=d)?void 0:f.hotHashData,l=g.Q(d,Mqa),n=null==(m=d)?void 0:m.coldHashData,(p=zF().resolve(new uF(aD)))?h?e?g.z(q,Ioa(p,h,e),2):g.z(q,Ioa(p,h),2):q.Ka(2):q.return()):n?l?g.z(q,Joa(p,n,l),0):g.z(q,Joa(p,n),0):q.Ka(0)})};
WF=function(a,b){b=void 0===b?200:b;return a?300===b?yqa:Nqa:300===b?zqa:Oqa};
qqa=function(a){if(g.Hz("enable_web_tiered_gel")){a=pqa[a||""];var b,c,d,e=null==zF().resolve(new uF(aD))?void 0:null==(b=bD())?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 Pqa(e[b].tier);return 200}};
Pqa=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}};
iG=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.mC)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=sF();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};d.sequenceGroup&&!g.Hz("web_gel_sequence_info_killswitch")&&(a=e.context,b=d.sequenceGroup,b={index:Qqa(b),groupKey:b},a.sequence=b,d.endOfSequence&&delete hG[d.sequenceGroup]);(d.sendIsolatedPayload?rqa:tqa)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},
c)};
Rqa=function(a){UF(void 0,void 0,void 0===a?!1:a)};
Qqa=function(a){hG[a]=a in hG?hG[a]+1:0;return hG[a]};
Uqa=function(a,b){Sqa||(Sqa=!0);jG=a;kG=b;Tqa=!1};
g.UB=function(a,b,c){c=void 0===c?{}:c;var d=lG;g.Fz("ytLoggingEventsDefaultDisabled",!1)&&lG===g.HD&&(d=null);if(g.Hz("web_all_payloads_via_jspb"))if(c.timestamp||(c.lact=sF(),c.timestamp=(0,g.mC)()),jG&&kG){var e=jG[a];if(e){e=e(mG(b));var f=e[1];(e[0]||!g.Hz("jspb_translator_return_completion"))&&f&&kG[a]?(kG[a](f,c,d||void 0),Vqa()):(Oz(new g.EB("Unable to call logFn for payload",a)),iG(a,b,d,c))}else{if(!g.Hz("web_translate_player_logs"))Oz(new g.EB("Unable to translate payload to JSPB",a));
else if(!1===Tqa){var h=!1;e=lD("app_received_payload",function(){h=!0});
iD("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c});if(h)return;$oa(e);lD("app_has_initialized",function(){iD("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c})})}iG(a,b,d,c)}}else nG.push({payloadName:a,
payload:b,options:c});else iG(a,b,d,c)};
Vqa=function(a){a=void 0===a?!1:a;var b=nG;nG=[];if(b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a?iG(c.payloadName,c.payload,lG,c.options):g.UB(c.payloadName,c.payload,c.options)}};
mG=function(a){if(!g.Hz("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=Wqa(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]=mG(a[d]);else if(g.Wa(a[d])){for(var e=a[d],f=[],h=0;h<e.length;h++)f.push(mG(e[h]));a[d]=f}}return a};
Wqa=function(a){return a.includes("_")?a.toLowerCase().replace(/([_][a-z])/g,function(b){return b.toUpperCase().replace("_","")}):a};
oG=function(a,b,c,d){d=void 0===d?{}:d;var e=Math.round(d.timestamp||(0,g.mC)());N(b,1,e<Number.MAX_SAFE_INTEGER?e:0);e=new yz;if(d.lact)N(e,1,isFinite(d.lact)?d.lact:-1);else if(d.timestamp)N(e,1,-1);else{var f=sF();N(e,1,isFinite(f)?f:-1)}if(d.sequenceGroup&&!g.Hz("web_gel_sequence_info_killswitch")){f=d.sequenceGroup;var h=Qqa(f),l=new xz;N(l,2,h);O(l,1,f);oi(e,xz,3,l);d.endOfSequence&&delete Xqa[d.sequenceGroup]}oi(b,yz,33,e);(d.sendIsolatedPayload?uqa:vqa)(a,{endpoint:"log_event",payload:b,cttAuthInfo:d.cttAuthInfo,
dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},c)};
pG=function(a,b,c){c=void 0===c?{}:c;var d=!1;g.Fz("ytLoggingEventsDefaultDisabled",!1)&&(d=!0);oG(a,b,d?null:g.HD,c)};
rG=function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Wy,72,qG,a);c?oG("visualElementShown",d,c,b):pG("visualElementShown",d,b)};
Yqa=function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Vy,73,qG,a);c?oG("visualElementHidden",d,c,b):pG("visualElementHidden",d,b)};
Zqa=function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Uy,78,qG,a);c?oG("visualElementGestured",d,c,b):pG("visualElementGestured",d,b)};
$qa=function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Xy,208,qG,a);c?oG("visualElementStateChanged",d,c,b):pG("visualElementStateChanged",d,b)};
ara=function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Sy,156,qG,a);c?oG("screenCreated",d,c,b):pG("screenCreated",d,b)};
bra=function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Ny,202,qG,a);c?oG("playbackAssociated",d,c,b):pG("playbackAssociated",d,b)};
cra=function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Ty,215,qG,a);c?oG("visualElementAttached",d,c,b):pG("visualElementAttached",d,b)};
TB=function(a){g.sG(a)};
g.tG=function(a){g.sG(a,"WARNING")};
g.sG=function(a,b){var c=void 0===c?{}:c;c.name=g.Fz("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.Fz("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.Hz("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<=dra)){e=era;var f=Caa(a),h=f.message||"Unknown Error",l=f.name||"UnknownError",m=f.stack||a.u||"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=eqa(a.args[q],"params."+q,c,p),500<=p);q++);else if(a.hasOwnProperty("params")&&
a.params){var t=a.params;if("object"===typeof a.params)for(q in t){if(t[q]){var v="params."+q,y=oF(t[q]);c[v]=y;p+=v.length+y.length;if(500<p)break}}else c.params=oF(t)}if(e.length)for(q=0;q<e.length&&!(p=eqa(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=lF();e=g.u(a.lr);for(h=e.next();!h.done;h=e.next())if(h=h.value,c.message&&c.message.match(h.Sz)){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(fra);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.FI[c.name])for(l=g.u(e.FI[c.name]),h=l.next();!h.done;h=l.next())if(q=h.value,h=c.message.match(q.Gj)){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.wO(q);break}c.params||(c.params={});a=lF();c.params["params.errorServiceSignature"]="msg="+a.lr.length+"&cb="+a.Gs.length;c.params["params.serviceWorker"]="false";g.Pa.document&&g.Pa.document.querySelectorAll&&(c.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.Vd("sample").constructor!==Qd&&(c.params["params.fconst"]="true");window.yterr&&"function"===typeof window.yterr&&window.yterr(c);if(0!==c.sampleWeight&&!gra.has(c.message)){if(d&&
g.Hz("web_enable_error_204"))hra(void 0===b?"ERROR":b,c);else{b=void 0===b?"ERROR":b;"ERROR"===b?(uG.ra("handleError",c),g.Hz("record_app_crashed_web")&&0===ira&&1===c.sampleWeight&&(ira++,g.Hz("errors_via_jspb")?(d=new Tw,d=N(d,1,1),g.Hz("report_client_error_with_app_crash_ks")||(a=new Sw,e=new Bw,h=new Aw,l=new zw,l=O(l,1,c.message),h=oi(h,zw,3,l),e=oi(e,Aw,5,h),a=oi(a,Bw,9,e),oi(d,Sw,4,a)),a=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz,pi(a,Tw,20,qG,d),pG("appCrashed",a)):(d={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
g.Hz("report_client_error_with_app_crash_ks")||(d.systemHealth={crashData:{clientError:{logMessage:{message:c.message}}}}),g.UB("appCrashed",d))),jra++):"WARNING"===b&&uG.ra("handleWarning",c);if(g.Hz("kevlar_gel_error_routing"))a:{d=b;if(g.Hz("errors_via_jspb")){if(kra())a=void 0;else{h=new pw;O(h,1,c.stack);c.fileName&&O(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]))||
(wi(h,2,Number(a[0])),wi(h,3,Number(a[1]))):wi(h,2,Number(a[0])));a=new zw;O(a,1,c.message);O(a,3,c.name);wi(a,6,c.sampleWeight);"ERROR"===d?N(a,2,2):"WARNING"===d?N(a,2,1):N(a,2,0);e=new yw;vi(e,1,!0);pi(e,pw,3,vG,h);h=new nw;O(h,3,window.location.href);l=g.Fz("FEXP_EXPERIMENTS",[]);for(q=0;q<l.length;q++)h.u(l[q]);l=g.Fz("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Gz("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 Wv,O(f,1,
n),O(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 Wv,O(f,1,"client."+n),O(f,2,String(l[n])),h.j(f);q=g.Fz("SERVER_NAME");l=g.Fz("SERVER_VERSION");q&&l&&(n=new Wv,O(n,1,"server.name"),O(n,2,q),h.j(n),q=new Wv,O(q,1,"server.version"),O(q,2,l),h.j(q));l=new Aw;oi(l,nw,1,h);oi(l,yw,2,e);oi(l,zw,3,a);a=l}if(!a)break a;e=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(e,Aw,163,qG,a);pG("clientError",e)}else{a=void 0;a=void 0===a?
{}:a;if(kra())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.Fz("FEXP_EXPERIMENTS")&&(a.experimentIds=g.Fz("FEXP_EXPERIMENTS"));q=g.Fz("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Gz("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.Fz("SERVER_NAME");q=g.Fz("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.UB("clientError",a)}if("ERROR"===d||g.Hz("errors_flush_gel_always_killswitch"))b:{if(g.Hz("web_fp_via_jspb")&&(Vqa(!0),Rqa(!0),!g.Hz("web_fp_via_jspb_and_json")))break b;Rqa()}}g.Hz("suppress_error_204_logging")||hra(b,c)}try{gra.add(c.message)}catch(A){}dra++}}}};
kra=function(){for(var a=g.u(lra),b=a.next();!b.done;b=a.next())if(g.xA(b.value.toLowerCase()))return!0;return!1};
hra=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.Fz("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.Fz("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.Fz("SERVER_NAME");b=g.Fz("SERVER_VERSION");c&&b&&(a.postParams["server.name"]=c,a.postParams["server.version"]=b)}g.hA(g.Fz("ECATCHER_REPORT_HOST","")+"/error_204",a)};
mra=function(a){var b=g.Ia.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.qa(b))};
ora=function(a){nra=void 0===a?!1:a};
wG=function(a,b,c,d,e){d=void 0===d?{}:d;nra&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.EB(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.tG(a)}};
xG=function(a,b,c,d,e,f,h,l){g.G.call(this);this.Tb=a;this.ze=b;this.qL=c;this.Da=d;this.j=e;this.Wa=f;this.La=h;this.Sc=l};
pra=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(yG)for(c=1,d=0;d<yG.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^yG.charCodeAt(d),c++;return b};
zG=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 pra(a)};
g.AG=function(a){a=zG(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.qra=function(){return g.kn(zG(16),function(a){return(a&15).toString(16)}).join("")};
BG=function(){this.u=new Map;this.j=new Map;this.B=new Map};
CG=function(a,b){if(g.Fz("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return g.AG(16)};
DG=function(a,b,c){if(g.Fz("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.AG(16)};
EG=function(a,b){if(g.Fz("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.AG(16)};
FG=function(a,b,c,d,e,f){this.startSecs=a;this.Yh=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
GG=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.tG(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
HG=function(a,b){return b&&b.test(a)?!0:!1};
IG=function(a){return(a=rra&&rra.exec(a))?a[0]:""};
JG=function(a){var b=void 0===b?!1:b;return GG(HG(a,sra),a,b,"Trusted Stream URL")};
g.KG=function(a){var b=void 0===b?!1:b;return GG(HG(a,tra),a,b,"Trusted Image URL")};
vra=function(a){var b=void 0===b?!1:b;return GG(HG(a,ura),a,b,"Trusted Promoted Video Domain URL")};
xra=function(a){var b=void 0===b?!1:b;return GG(HG(a,wra),a,b,"Drm Licensor URL")};
zra=function(a,b){b=void 0===b?!1:b;return GG(HG(a,yra),a,b,"Captions URL")};
Ara=function(a){a=new g.Ml(a);g.Nl(a,document.location.protocol);g.Ol(a,document.location.hostname);document.location.port&&g.Pl(a,document.location.port);return a.toString()};
LG=function(a){a=new g.Ml(a);g.Nl(a,document.location.protocol);return a.toString()};
g.NG=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.u=Bra++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||MG.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.ln(d.thumbnails,function(e){return g.KG(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
Cra=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Dra=function(a,b){switch(a.style){case MG.CHAPTER_MARKER:return b?8:5;case MG.AD_MARKER:return 6;case MG.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.OG=function(a,b){return a.start-b.start||a.priority-b.priority||a.u-b.u};
g.PG=function(a){return"crn_"+a};
g.QG=function(a){return"crx_"+a};
RG=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.SG=function(a){a=void 0===a?!1:a;g.G.call(this);this.Pi=new g.nr(a);g.H(this,this.Pi)};
g.TG=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
UG=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.VG=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.WG=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=af("B",null,h||l));d.italics&&(h=af("I",null,h||l));d.strikethrough&&(h=af("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=af("A",null,h||l),g.ne(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||af("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:af("SPAN",null,b)};
Era=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Un:new kr(-0x8000000000000,-0x8000000000000),sE:d},null!=c&&(d.Zo=new kr(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Un:new kr(0x7ffffffffffff,0x8000000000000),sE:d},null!=c&&(d.Zo=new kr(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||wG("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||wG("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 iF("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={Un:new kr(a,e),sE:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Zo=new kr(a,e)}return d;
default:return new iF("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}};
Fra=function(a){var b=1E3*a.startSecs;return new kr(b,b+1E3*a.Yh)};
Gra=function(a){a=void 0===a||a?zG(16):pra(16);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
XG=function(a){return g.Sa("ytcsi."+(a||"")+"data_")||Hra(a)};
YG=function(){var a=XG();a.info||(a.info={});return a.info};
ZG=function(a){a=XG(a);a.metadata||(a.metadata={});return a.metadata};
$G=function(a){a=XG(a);a.tick||(a.tick={});return a.tick};
aH=function(a){a=XG(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
bH=function(a){a=aH(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
cH=function(a){var b=XG(a).nonce;b||(b=g.AG(16),XG(a).nonce=b);return b};
Hra=function(a){var b={tick:{},info:{}};g.Qa("ytcsi."+(a||"")+"data_",b);return b};
dH=function(){var a=g.Sa("ytcsi.debug");a||(a=[],g.Qa("ytcsi.debug",a),g.Qa("ytcsi.reference",{}));return a};
eH=function(a){a=a||"";var b=Ira();if(b[a])return b[a];var c=dH(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
Jra=function(a){a=a||"";var b=Ira();b[a]&&delete b[a];var c=dH(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
Ira=function(){var a=g.Sa("ytcsi.reference");if(a)return a;dH();return g.Sa("ytcsi.reference")};
fH=function(a){return Kra[a]||"LATENCY_ACTION_UNKNOWN"};
Pra=function(a,b,c){c=aH(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 Lra){c=Lra[a];g.Fb(Mra,c)&&(b=!!b);a in Nra&&"string"===typeof b&&(b=Nra[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 TD({},d)}g.Fb(Ora,a)||g.tG(new g.EB("Unknown label logged with GEL CSI",a))};
gH=function(a,b){fD.call(this,1,arguments);this.timer=b};
hH=function(){this.j=0};
iH=function(){hH.instance||(hH.instance=new hH);return hH.instance};
kH=function(a,b){jH[b]=jH[b]||{count:0};var c=jH[b];c.count++;c.time=(0,g.mC)();a.j||(a.j=g.JB(0,function(){var d=(0,g.mC)(),e;for(e in jH)jH[e]&&6E4<d-jH[e].time&&delete jH[e];a&&(a.j=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.EB("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.tG(c)),!0):!1};
Qra=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
Rra=function(){var a;if(g.Hz("csi_use_performance_navigation_timing")||g.Hz("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==lH?void 0:null==(a=lH.getEntriesByType)?void 0:null==(b=a.call(lH,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=mH(e.requestStart),e.responseEnd=mH(e.responseEnd),e.redirectStart=mH(e.redirectStart),e.redirectEnd=mH(e.redirectEnd),e.domainLookupEnd=mH(e.domainLookupEnd),e.connectStart=mH(e.connectStart),
e.connectEnd=mH(e.connectEnd),e.responseStart=mH(e.responseStart),e.secureConnectionStart=mH(e.secureConnectionStart),e.domainLookupStart=mH(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=lH.timing}else a=lH.timing;return a};
mH=function(a){return Math.round(nH()+a)};
nH=function(){return(g.Hz("csi_use_time_origin")||g.Hz("csi_use_time_origin_tvhtml5"))&&lH.timeOrigin?Math.floor(lH.timeOrigin):lH.timing.navigationStart};
oH=function(a){this.j=a};
g.pH=function(a){return new oH({trackingParams:a})};
Tra=function(a){var b=Sra++;return new oH({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})};
Ura=function(a){return g.Fz("client-screen-nonce-store",{})[void 0===a?0:a]};
Vra=function(a,b){b=void 0===b?0:b;var c=g.Fz("client-screen-nonce-store");c||(c={},Ez("client-screen-nonce-store",c));c[b]=a};
qH=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Wra=function(a){return g.Fz(qH(void 0===a?0:a))};
g.rH=function(a){return(a=Wra(void 0===a?0:a))?new oH({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Xra=function(){var a=g.Fz("csn-to-ctt-auth-info");a||(a={},Ez("csn-to-ctt-auth-info",a));return a};
Yra=function(){return Object.values(g.Fz("client-screen-nonce-store",{})).filter(function(a){return void 0!==a})};
g.sH=function(a){a=Ura(void 0===a?0:a);if(!a&&!g.Fz("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
$ra=function(a){for(var b=g.u(Object.values(Zra)),c=b.next();!c.done;c=b.next())if(g.sH(c.value)===a)return!0;return!1};
asa=function(a,b,c){var d=Xra();(c=g.sH(c))&&delete d[c];b&&(d[a]=b)};
tH=function(a){return Xra()[a]};
csa=function(a,b,c,d){c=void 0===c?0:c;if(a!==Ura(c)||b!==g.Fz(qH(c)))if(asa(a,d,c),Vra(a,c),Ez(qH(c),b),b=function(){setTimeout(function(){if(a)if(g.Hz("web_time_via_jspb")){var e=new Ey;O(e,1,bsa);O(e,2,a);var f=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(f,Ey,111,qG,e);pG("foregroundHeartbeatScreenAssociated",f)}else g.UB("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:bsa,clientScreenNonce:a})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
vH=function(a,b){uH("_start",a,b)};
dsa=function(a,b,c,d){if(null!==b){if("yt_lt"===a){var e="string"===typeof b?b:""+b;ZG(c).loadType=e}(a=Pra(a,b,c))&&wH(a,c,d)}};
wH=function(a,b,c){if(!g.Hz("web_csi_via_jspb")||(void 0===c?0:c))c=eH(b||""),TD(c.info,a),a.loadType&&(c=a.loadType,ZG(b).loadType=c),TD(bH(b),a),c=cH(b),b=XG(b).cttAuthInfo,iH().info(a,c,b);else{c=new dz;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":N(c,1,R[a[e]]);break;case "clientActionNonce":O(c,2,a[e]);break;case "clientScreenNonce":O(c,4,a[e]);break;case "loadType":O(c,3,a[e]);break;case "isPrewarmedLaunch":vi(c,92,a[e]);break;
case "isFirstInstall":vi(c,55,a[e]);break;case "networkType":N(c,5,xH[a[e]]);break;case "connectionType":N(c,26,yH[a[e]]);break;case "detailedConnectionType":N(c,27,zH[a[e]]);break;case "isVisible":vi(c,6,a[e]);break;case "playerType":N(c,7,AH[a[e]]);break;case "clientPlaybackNonce":O(c,8,a[e]);break;case "adClientPlaybackNonce":O(c,28,a[e]);break;case "previousCpn":O(c,77,a[e]);break;case "targetCpn":O(c,76,a[e]);break;case "isMonetized":vi(c,9,a[e]);break;case "isPrerollAllowed":vi(c,16,a[e]);break;
case "isPrerollShown":vi(c,17,a[e]);break;case "adType":O(c,12,a[e]);break;case "adTypesAllowed":O(c,36,a[e]);break;case "adNetworks":O(c,37,a[e]);break;case "previousAction":N(c,13,R[a[e]]);break;case "isRedSubscriber":vi(c,14,a[e]);break;case "serverTimeMs":wi(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":O(c,20,a[e]);break;case "targetVideoId":O(c,78,a[e]);break;case "adBreakType":N(c,21,BH[a[e]]);break;case "isNavigation":vi(c,25,a[e]);break;case "viewportHeight":wi(c,
29,a[e]);break;case "viewportWidth":wi(c,30,a[e]);break;case "screenHeight":wi(c,84,a[e]);break;case "screenWidth":wi(c,85,a[e]);break;case "browseId":O(c,31,a[e]);break;case "isCacheHit":vi(c,32,a[e]);break;case "httpProtocol":O(c,33,a[e]);break;case "transportProtocol":O(c,34,a[e]);break;case "searchQuery":O(c,41,a[e]);break;case "isContinuation":vi(c,42,a[e]);break;case "availableProcessors":wi(c,43,a[e]);break;case "sdk":O(c,44,a[e]);break;case "isLocalStream":vi(c,45,a[e]);break;case "navigationRequestedSameUrl":vi(c,
64,a[e]);break;case "shellStartupDurationMs":wi(c,70,a[e]);break;case "appInstallDataAgeMs":wi(c,73,a[e]);break;case "latencyActionError":N(c,71,CH[a[e]]);break;case "actionStep":wi(c,79,a[e]);break;case "jsHeapSizeLimit":N(c,80,a[e]);break;case "totalJsHeapSize":N(c,81,a[e]);break;case "usedJsHeapSize":N(c,82,a[e]);break;case "sourceVideoDurationMs":N(c,90,a[e]);break;case "videoOutputFrames":N(c,93,a[e]);break;case "isResume":vi(c,104,a[e]);break;case "debugTicksExcluded":vi(c,105,a[e]);break;case "abandonedPing":vi(c,
113,a[e]);break;case "adPrebufferedTimeSecs":wi(c,39,a[e]);break;case "isLivestream":vi(c,47,a[e]);break;case "liveStreamMode":N(c,91,DH[a[e]]);break;case "adCpn2":O(c,48,a[e]);break;case "adDaiDriftMillis":N(c,49,a[e]);break;case "videoStreamType":N(c,53,EH[a[e]]);break;case "playbackRequiresTap":vi(c,56,a[e]);break;case "performanceNavigationTiming":vi(c,67,a[e]);break;case "transactionType":N(c,74,FH[a[e]]);break;case "playerRotationType":N(c,101,GH[a[e]]);break;case "allowedPreroll":vi(c,10,a[e]);
break;case "shownPreroll":vi(c,11,a[e]);break;case "getHomeRequestId":O(c,57,a[e]);break;case "getSearchRequestId":O(c,60,a[e]);break;case "getPlayerRequestId":O(c,61,a[e]);break;case "getWatchNextRequestId":O(c,62,a[e]);break;case "getBrowseRequestId":O(c,63,a[e]);break;case "getLibraryRequestId":O(c,66,a[e]);break;case "isTransformerEnabledForFeature":vi(c,106,a[e]);break;case "sourceVideoFrameCount":N(c,109,a[e]);break;default:esa.includes(f)&&g.Mz(new g.EB("Codegen laipb translator asked to translate message field",
""+f))}}catch(h){g.Mz(Error("Codegen laipb translator failed to set "+f))}}HH(c,b)}};
HH=function(a,b){var c=g.Ei(a,3);c&&(ZG(b).loadType=c);eH(b||"").jspbInfo.push(a);c=cH(b);b=XG(b).cttAuthInfo;iH().jspbInfo(a,c,b)};
fsa=function(a){var b,c,d,e,f=(null!=(e=null==zF().resolve(new uF(aD))?void 0:null==(b=bD())?void 0:null==(c=b.loggingHotConfig)?void 0:null==(d=c.csiConfig)?void 0:d.debugTicks)?e:[]).map(function(h){return Object.values(h)[0]});
if(0<f.length)for(b=0;b<f.length;b++)if(a===f[b])return!0;return!1};
uH=function(a,b,c){var d=cH(c),e;if(e=g.Hz("web_csi_debug_sample_enabled")&&d){var f,h,l;e=(null==zF().resolve(new uF(aD))?void 0:null==(f=bD())?void 0:null==(h=f.loggingHotConfig)?void 0:null==(l=h.csiConfig)?void 0:l.debugSampleWeight)||0;if(0!==e&&fsa(a)){for(h=f=0;h<d.length;h++)f=(31*f+d.charCodeAt(h))%Number.MAX_SAFE_INTEGER;e=0!==f%1E5%e;XG(c).debugTicksExcludedLogged||(g.Hz("web_csi_via_jspb")?(f=new dz,f=vi(f,105,e),HH(f,c)):(f={},f.debugTicksExcluded=e,wH(f,c)));XG(c).debugTicksExcludedLogged=
!0}else e=!1}if(!e){b||"_"===a[0]||(e=a,lH.mark&&(cc(e,"mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),lH.mark(e)));e=eH(c||"");e.tick[a]=b||(0,g.mC)();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=aH(c);e.gelTicks&&(e.gelTicks[a]=!0);f=$G(c);e=b||(0,g.mC)();g.Hz("log_repeated_ytcsi_ticks")?a in f||(f[a]=e):f[a]=e;f=XG(c).cttAuthInfo;"_start"===a?(a=iH(),kH(a,"baseline_"+d)||(b={timestamp:b,cttAuthInfo:f},g.Hz("web_csi_via_jspb")?(a=new Yy,O(a,1,d),
d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz,pi(d,Yy,6,qG,a),pG("latencyActionBaselined",d,b)):g.UB("latencyActionBaselined",{clientActionNonce:d},b))):iH().tick(a,d,b,f);gsa(c);return e}};
hsa=function(){var a,b=null==(a=lH.getEntriesByType)?void 0:a.call(lH,"mark");b&&b.forEach(function(c){if(c.name.startsWith("mark_")){var d;null==(d=lH.clearMarks)||d.call(lH,c.name)}})};
IH=function(){switch(hna()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
ksa=function(a){var b=Rra(),c=nH(),d=g.Fz("CSI_START_TIMESTAMP_MILLIS",0);0<d&&!g.Hz("embeds_web_enable_csi_start_override_killswitch")&&(c=d);c&&(uH("srt",b.responseStart),1!==a.prerender&&vH(c));a=isa();0<a&&uH("fpt",a);a=Rra();a.isPerformanceNavigationTiming&&wH({performanceNavigationTiming:!0},void 0);uH("nreqs",a.requestStart,void 0);uH("nress",a.responseStart,void 0);uH("nrese",a.responseEnd,void 0);0<a.redirectEnd-a.redirectStart&&(uH("nrs",a.redirectStart,void 0),uH("nre",a.redirectEnd,void 0));
0<a.domainLookupEnd-a.domainLookupStart&&(uH("ndnss",a.domainLookupStart,void 0),uH("ndnse",a.domainLookupEnd,void 0));0<a.connectEnd-a.connectStart&&(uH("ntcps",a.connectStart,void 0),uH("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=nH()&&0<a.connectEnd-a.secureConnectionStart&&(uH("nstcps",a.secureConnectionStart,void 0),uH("ntcpe",a.connectEnd,void 0));lH&&"getEntriesByType"in lH&&jsa()};
lsa=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);oe()&&a.setAttribute("nonce",oe());return c?(a=lH.getEntriesByName(c))&&a[0]&&(a=a[0],c=nH(),uH("rsf_"+b,c+Math.round(a.fetchStart)),uH("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
msa=function(){var a=[];if(document.querySelector&&lH&&lH.getEntriesByName)for(var b in JH)if(JH.hasOwnProperty(b)){var c=JH[b];lsa(b,c)&&a.push(c)}return a};
jsa=function(){var a=window.location.protocol,b=lH.getEntriesByType("resource");b=g.cp(b,function(c){return 0===c.name.indexOf(a+"//fonts.gstatic.com/s/")});
(b=mn(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(uH("wffs",mH(b.startTime)),uH("wffe",mH(b.responseEnd)))};
nsa=function(a,b,c){lH&&lH.measure&&(cc(a,"measure_")||(a="measure_"+a),c?lH.measure(a,b,c):b?lH.measure(a,b):lH.measure(a))};
osa=function(a){var b=KH("aft",a);if(b)return b;b=g.Fz((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=KH(b[d],a);if(e)return e}return NaN};
LH=function(a,b){g.Qa("ytglobal.timing"+(b||"")+"ready_",a)};
KH=function(a,b){if(a=$G(b)[a])return"number"===typeof a?a:a[a.length-1]};
gsa=function(a){var b=KH("_start",a),c=osa(a);b&&c&&!psa&&(iD(qsa,new gH(Math.round(c-b),a)),psa=!0)};
rsa=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]&&!rsa(a[d],b[d]))return!1;return!0};
isa=function(){if(lH.getEntriesByType){var a=lH.getEntriesByType("paint");if(a=g.Db(a,function(b){return"first-paint"===b.name}))return mH(a.startTime)}a=lH.timing;
return a.w6?Math.max(0,a.w6):0};
MH=function(a){Hra(a);ssa();hsa();a||(g.Fz("TIMING_ACTION")&&Ez("PREVIOUS_ACTION",g.Fz("TIMING_ACTION")),Ez("TIMING_ACTION",""))};
tsa=function(){var a=["pbs","pbu"];g.Nz(function(){eH("").info.actionType="watch";a&&Ez("TIMING_AFT_KEYS",a);Ez("TIMING_ACTION","watch");if(g.Hz("web_csi_via_jspb")){var b=g.Fz("TIMING_INFO",{}),c=new dz;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":ez(c,az($y(d),String(e)));break;case "GetGuide_rid":ez(c,az($y(d),String(e)));break;case "GetHome_rid":ez(c,az($y(d),String(e)));break;case "GetPlayer_rid":ez(c,
az($y(d),String(e)));break;case "GetSearch_rid":ez(c,az($y(d),String(e)));break;case "GetSettings_rid":ez(c,az($y(d),String(e)));break;case "GetTrending_rid":ez(c,az($y(d),String(e)));break;case "GetWatchNext_rid":ez(c,az($y(d),String(e)));break;case "yt_red":vi(c,14,!!e);break;case "yt_ad":vi(c,9,!!e)}}HH(c);c=new dz;c=vi(c,25,!0);c=N(c,1,R[fH(g.Fz("TIMING_ACTION"))]);(b=g.Fz("PREVIOUS_ACTION"))&&N(c,13,R[fH(b)]);(b=g.Fz("CLIENT_PROTOCOL"))&&O(c,33,b);(b=g.Fz("CLIENT_TRANSPORT"))&&O(c,34,b);(b=g.sH())&&
"UNDEFINED_CSN"!==b&&O(c,4,b);b=IH();1!==b&&-1!==b||vi(c,6,!0);b=YG();(d="cold"===ZG().loadType)||(d="cold"===b.yt_lt);if(d&&(O(c,3,"cold"),ksa(b),b=msa(),0<b.length))for(b=g.u(b),d=b.next();!d.done;d=b.next())d=d.value,e=new cz,O(e,1,d),ui(c,83,cz,e);HH(c)}else{c=g.Fz("TIMING_INFO",{});for(b in c)c.hasOwnProperty(b)&&dsa(b,c[b]);c={isNavigation:!0,actionType:fH(g.Fz("TIMING_ACTION"))};if(b=g.Fz("PREVIOUS_ACTION"))c.previousAction=fH(b);if(b=g.Fz("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.Fz("CLIENT_TRANSPORT"))c.transportProtocol=
b;(b=g.sH())&&"UNDEFINED_CSN"!==b&&(c.clientScreenNonce=b);b=IH();if(1===b||-1===b)c.isVisible=!0;b="cold"===ZG().loadType;d=YG();b||(b="cold"===d.yt_lt);if(b&&(c.loadType="cold",ksa(YG()),b=msa(),0<b.length))for(c.resourceInfo=[],b=g.u(b),d=b.next();!d.done;d=b.next())c.resourceInfo.push({resourceCache:d.value});wH(c)}c=YG();b=bH();if("cold"===ZG().loadType&&("cold"===c.yt_lt||"cold"===b.loadType)){d=$G();e=aH();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var f in d)if(!(f in e))if("number"===typeof d[f])uH(f,
KH(f));else if(g.Hz("log_repeated_ytcsi_ticks"))for(var h=g.u(d[f]),l=h.next();!l.done;l=h.next())uH(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=Pra(h,c[h]))&&!rsa(bH(),h)&&(TD(b,h),TD(f,h),d=!0);d&&wH(f)}LH(!0);f=g.Fz("TIMING_ACTION");g.Sa("ytglobal.timingready_")&&f&&NH("_start")&&osa()&&gsa()})()};
vsa=function(){var a=void 0===a?{}:a;g.Nz(function(){usa();Jra();MH();LH(!1);a.cttAuthInfo&&(XG().cttAuthInfo=a.cttAuthInfo);Ez("TIMING_AFT_KEYS",[]);a.Bcb?g.OH({loadType:"hot"}):g.OH({loadType:"warm"});Ez("TIMING_ACTION","");delete g.Fz("TIMING_INFO",{}).yt_lt;g.Nz(vH)(a.startTime,void 0)})()};
PH=function(a,b){b=void 0===b?{}:b;g.Nz(function(){wsa(a);XG(a).useGel=!0;eH(a||"").info.actionType=a;b.cttAuthInfo&&(XG(a).cttAuthInfo=b.cttAuthInfo);Ez(a+"TIMING_ACTION",a);g.Nz(vH)(b.startTime,a);var c={actionType:fH(a)},d=g.sH();d&&"UNDEFINED_CSN"!==d&&(c.clientScreenNonce=d);g.OH(c,a);LH(!0,a)})()};
wsa=function(a){g.Nz(function(){usa(a);Jra(a);MH(a)})()};
QH=function(a,b,c,d){g.Nz(dsa)(a,b,c,d)};
g.OH=function(a,b){g.Nz(wH)(a,b,!1)};
RH=function(a,b,c){return g.Nz(uH)(a,b,c)};
xsa=function(a){g.Nz(nsa)("above_the_fold",a,void 0)};
NH=function(a,b){return g.Nz(function(){var c=$G(b);return a in c})()};
ysa=function(a,b){return g.Nz(function(){if(NH(a,b))return!1;RH(a,void 0,b);return!0})()};
SH=function(a,b,c){g.Nz(function(){if(!NH("_start",c)||NH(a,c))return!1;RH(a,b,c);return!0})()};
zsa=function(){g.Nz(function(){var a=cH();requestAnimationFrame(function(){setTimeout(function(){a===cH()&&RH("ftl",void 0,void 0)},0)})})()};
usa=function(a){NH("_start",a)&&RH("aa",void 0,a)};
Asa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
TH=function(a){var b=g.Q(a,Bsa)||a.signatureCipher;a={SV:!1,Ey:"",HA:"",s:""};if(!b)return a;b=Rz(b);a.SV=!0;a.Ey=b.url;a.HA=b.sp;a.s=b.s;return a};
g.UH=function(a,b){this.id=a;this.Nc=b;this.captionTracks=[];this.B=this.C=null;this.xtags="";this.D=!1;this.j=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";a=this.Nc.id.split(".");1<a.length&&(this.D="2"===a[1])};
VH=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.j=b||0};
g.XH=function(a,b,c,d){return new VH(g.WH[a]||0,g.WH[b]||0,c,d)};
YH=function(a){var b=g.WH.auto;return a.u===b&&a.j===b};
$H=function(a){return ZH[a.j||a.u]||"auto"};
Csa=function(a,b){b=g.WH[b];return a.u<=b&&(!a.j||a.j>=b)};
aI=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.Nc||a.has(d.Nc.id)){var e=void 0,f=void 0,h=void 0;null==(h=c)||h({atkerr:!!d.Nc,itag:d.itag,xtag:d.j,lang:(null==(e=d.Nc)?void 0:e.name)||"",langid:(null==(f=d.Nc)?void 0:f.id)||""})}else e=new g.UH(d.id,d.Nc),a.add(d.Nc.id),this.audioTracks.push(e);null==c||c({atklen:this.audioTracks.length})}};
bI=function(){g.G.apply(this,arguments);this.j=null};
Gsa=function(a,b,c,d,e,f){if(a.j)return a.j;var h={},l=new Set,m={};if(cI(d)){for(var n in d.j)d.j.hasOwnProperty(n)&&(a=d.j[n],m[a.info.yb]=[a.info]);return m}n=Dsa(b,d,h);f&&e({aftsrt:dI(n)});for(var p={},q=g.u(Object.keys(n)),t=q.next();!t.done;t=q.next()){t=t.value;for(var v=g.u(n[t]),y=v.next();!y.done;y=v.next()){y=y.value;var A=y.itag,E=void 0,K=t+"_"+((null==(E=y.video)?void 0:E.fps)||0);p.hasOwnProperty(K)?!0===p[K]?m[t].push(y):h[A]=p[K]:(E=eI(b,y,c,d.isLive,l),!0!==E?(h[A]=E,"disablevp9hfr"===
E&&(p[K]="disablevp9hfr")):(m[t]=m[t]||[],m[t].push(y),p[K]=!0))}}f&&e({bfflt:dI(m)});for(var I in m)m.hasOwnProperty(I)&&(d=I,m[d]&&m[d][0].lh()&&(m[d]=m[d],m[d]=Esa(b,m[d],h),m[d]=Fsa(m[d],h)));f&&e(h);b=g.u(l.values());for(d=b.next();!d.done;d=b.next())(d=c.u.get(d.value))&&--d.SY;f&&e({aftflt:dI(m)});a.j=g.Xc(m,function(F){return!!F.length});
return a.j};
Isa=function(a,b,c,d,e,f,h,l){l=void 0===l?!1:l;if(b.kd&&h&&1<h.length&&!(0<b.ij||b.oa)){for(var m=b.u||!!e,n=m&&b.Ec?f:void 0,p=Dsa(b,d),q=[],t=[],v={},y=0;y<h.length;y++){var A=h[y],E=d.K.get(A);if(E&&E.info){var K=E.info;E=K.yb;if(eI(b,K,c,d.isLive)){A=K.lh()?q:t;K=g.u(p[E]);for(var I=K.next();!I.done;I=K.next()){I=I.value;var F=void 0,S=E+"_"+((null==(F=I.video)?void 0:F.fps)||0);v.hasOwnProperty(S)?!0===v[S]&&A.push(I):eI(b,I,c,d.isLive)&&(A.push(I),v[S]=!0)}}else m&&f({opfu:A})}}if(q.length&&
t.length)return m&&f({opfm:q[0].itag+","+t[0].itag}),oA(new aI(q,t,n))}return Hsa(a,b,c,d,e,f,l)};
Hsa=function(a,b,c,d,e,f,h){function l(y){return!!p[y]}
var m=b.u||!!e,n=m&&b.Ec?f:void 0,p=Gsa(a,b,c,d,f,m);fI(d)&&(p=Jsa(c,p,e,m,f,b),m&&f({enflt:dI(p)}));b.wb=Ksa(p,b);if(cI(d))return f=g.Db(Object.values(p),function(y){return!!y.length&&!!y[0].audio}),m=g.Db(Object.values(p),function(y){return!!y.length&&!!y[0].video}),f&&m||nA(),oA(new aI(m,f,n));
a=Lsa(b);m&&f({audioPrefOrder:a.join("_")});a=g.Db(a,l);if(!a)return m&&f({noaudio:1}),nA();a=p[a];p["9"]&&p.h&&d.Jc&&!b.eb&&(m&&f({dltvp9:1}),delete p["9"]);if(h){c.C=new Map;for(var q in p)if(p.hasOwnProperty(q)&&(h=q,!("f"===h||0===b.Vf&&Msa.has(h)))){e=g.u(p[h]);for(var t=e.next();!t.done;t=e.next())t=t.value,Nsa(c,h,t)||Osa(c,h,t)}}h=p["1h"]?"1h":"1";c=p["9h"]?"9h":"9";t=p[h];var v=p[c];t&&t.length&&(b.j.highestAv1Resolution=t[t.length-1].video.j);v&&v.length&&(b.j.highestVp9Resolution=v[v.length-
1].video.j);q=[];e=[];if(b.oa&&!b.Sn)for(e=Psa(d)?p["1h"]||p["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],m&&f({newhybpref:e.join(".")}),t=g.u(e),v=t.next();!v.done;v=t.next())q=q.concat(p[v.value]).filter(function(y){return y});
else 0<b.ij&&v&&t&&(e=[h,c],q=t.concat(v).filter(function(y){return y}));
if(q.length&&!b.Sn){gI(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 oA(new aI(q,a,n))}q=Qsa(b);q=g.Db(q,l);if(!q){if(p[h])return f=p[h],gI(f),oA(new aI(f,a,n));m&&f({novideo:1});return nA()}b.xd&&("1"===q||"1h"===q)&&p[c]&&(h=hI(p[q]),e=hI(p[c]),e>h?q=c:b.pd&&e===h&&Rsa(p[c])&&(q=c));"9"===q&&p.h&&hI(p.h)>hI(p["9"])&&(q="h");b.Zb&&d.isLive&&"("===q&&p.H&&1440>hI(p["("])&&(q="H");m&&f({vfmly:iI(q)});b=p[q];if(!b.length)return m&&f({novfmly:iI(q)}),
nA();gI(b);return oA(new aI(b,a,n))};
Ksa=function(a,b){var c=b.K?!0:!!b.J;c=c&&!(!a.m&&!a.M);var d=b.K?!0:!!b.B;d=d&&!(!a.mac3&&!a.MAC3);b=(b=b.K?!0:!!b.C)&&!(!a.meac3&&!a.MEAC3);return c||d||b};
Rsa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&Ssa.has(b.itag))return!0;return!1};
iI=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
dI=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(iI(d));d=g.u(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
Jsa=function(a,b,c,d,e,f){var h={},l={};g.Wc(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.me)return l[q]="noenc",!1;if(f.hc&&"(h"===p.yb&&f.Eb)return l[q]="lichdr",!1;if("("===p.yb||"(h"===p.yb){if(a.B&&c&&"widevine"===c.flavor){var t=p.mimeType+"; experimental=allowed";(t=!!p.me[c.flavor]&&!!c.j[t])||(l[q]=p.me[c.flavor]?"unspt":"noflv");return t}if(!jI(a,kI.CRYPTOBLOCKFORMAT)&&!a.Ba||a.oa)return l[q]=a.oa?"disvp":"vpsub",!1}return c&&p.me[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.me[c.flavor]?
"unspt":"noflv":"nosys",!1)});
m.length&&(h[n]=m)});
d&&Object.entries(l).length&&e(l);return h};
Fsa=function(a,b){var c=mn(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}));
BA()&&(a=a.filter(function(d){if("299"!==d.itag)return!0;b[d.itag]="ps3hfr1080";return!1}));
return a};
Esa=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.xc)return!0;c[d.itag]="maxquality";return!1})};
Dsa=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.ea&&f.video&&f.video.j<a.ea)c&&(c[f.itag]="min"+a.ea);else{var h=f.yb;d[h]=d[h]||[];d[h].push(f)}}a=g.u(Object.keys(d));for(b=a.next();!b.done;b=a.next())gI(d[b.value]);return d};
hI=function(a){return mn(a,function(b,c){return Math.max(b,c.video.j)},0)};
eI=function(a,b,c,d,e){e=void 0===e?new Set:e;if(""===b.yb)return"unkn";if(("304"===b.itag||"266"===b.itag)&&a.Ga)return"blk2khfr";if(a.V&&b.video&&b.video.j>a.V)return"max"+a.V;if(a.rb&&"h"===b.yb&&b.video&&1080<b.video.j)return"blkhigh264";if("(h"===b.yb&&!c.J)return"enchdr";if((void 0===d?0:d)&&lI(b)&&!a.Ya)return"blk51live";if(mI(b)&&!a.Va)return"blk51ugc";if(a.K){if(("MAC3"===b.yb||"mac3"===b.yb)&&!a.B)return"blkac3";if(("MEAC3"===b.yb||"meac3"===b.yb)&&!a.C)return"blkeac3";if(("M"===b.yb||"m"===
b.yb)&&!a.J)return"blkaac51";if(("so"===b.yb||"sa"===b.yb)&&!a.Ba)return"blkamb"}if(!a.hc&&b.me&&b.me.fairplay&&("("===b.yb||"(h"===b.yb||"A"===b.yb||"MEAC3"===b.yb))return"cbc";if(a.md&&"1h"===b.yb)return"av1hdr";if((d=c.u.get(b.yb))&&0<d.SY)return e.add(b.yb),"byerr";var f;if(null==(f=b.video)?0:32<f.fps){if(!c.qa&&!jI(c,kI.FRAMERATE))return"capHfr";if(a.ob&&4320<=b.video.j)return"blk8khfr";if(nI(b)&&a.od&&b.me&&1440<=b.video.j)return"disablevp9hfr"}if(a.Wb&&b.Wb>a.Wb)return"ratecap";a=Tsa(c,b);
return!0!==a?a:!0};
gI=function(a,b){b=void 0===b?[]:b;g.Vb(a,function(c,d){var e=d.Wb-c.Wb;if(!c.lh()||!d.lh())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.yb)+1,d=b.indexOf(d.yb)+1,f=0===c||0===d?d||-1:c-d);f||(f=e);return f})};
Usa=function(a){a=a.split("");oI.yV(a,3);oI.k4(a,15);oI.yV(a,23);oI.yV(a,12);oI.vQ(a,3);oI.yV(a,36);oI.vQ(a,2);return a.join("")};
g.pI=function(a,b){this.u=a;this.D=void 0===b?!1:b;this.C=this.path=this.B="";this.j={};this.url=""};
rI=function(a){qI(a);return a.C};
sI=function(a){return a.u?cc(a.u,"local"):"local"===a.B};
Vsa=function(a){qI(a);return g.Zc(a.j,function(b){return null!==b})};
tI=function(a){qI(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
uI=function(a,b){b=void 0===b?!1:b;qI(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=a.kf();c=new g.Ml(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.Ol(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.pI(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.Ol(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Ol(c,"www.youtube.com"),d=c.toString()):(c=Ara(d),JG(c)&&(d=c));c=new g.pI(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
qI=function(a){if(a.u){if(!JG(a.u)&&!a.u.startsWith("local"))throw new g.EB("Untrusted URL",a.u);var b=g.Vl(a.u);a.B=b.D;a.C=b.j+(null!=b.C?":"+b.C:"");var c=b.B;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=Wsa(c);Object.assign(a.j,
Xsa(b.u.toString()));Object.assign(a.j,d);"index.m3u8"===a.j.file&&(delete a.j.file,a.path+="/file/index.m3u8");a.u="";a.url="";a.D&&(b=a.get("n"))&&(b=Ysa[0](b),a.set("n",b),Ysa.length||gma(""))}};
Zsa=function(a){qI(a);var b=a.B+(a.B?"://":"//")+a.C+a.path;if(Vsa(a)){var c=[];g.Wc(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
Wsa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&$sa(c,a[b],a[b+1]);return c};
Xsa=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?$sa(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
$sa=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};
vI=function(a,b,c,d,e,f,h,l,m){this.Pa=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.wI=function(){this.segments=[];this.j=null;this.u=!0};
ata=function(a,b){if(b>a.Gd())a.segments=[];else{var c=Bb(a.segments,function(d){return d.Pa>=b},a);
0<c&&a.segments.splice(0,c)}};
xI=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.B=this.u=0;this.C=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
bta=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};
yI=function(a,b){b=g.u(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
zI=function(a,b,c){return a.split(b).yl.split(c).aD};
AI=function(a){a.C=void 0;a.u=0;a.B=0};
BI=function(a,b,c){a.isFocused(b);return b-a.B+c<=a.j[a.u].length};
cta=function(a){if(!a.C){var b=a.j[a.u];a.C=new DataView(b.buffer,b.byteOffset,b.length)}return a.C};
dta=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(!BI(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.j[a.u].length-e);for(var f=0,h=d;h<=a.u;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.u-d+1,e);AI(a);a.focus(b)}d=a.j[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)};
CI=function(a,b,c){a=dta(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
eta=function(a){a=CI(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;c<a.length;c++)b[c]=a[c]}return b};
DI=function(a,b){a.focus(b);return a.j[a.u][b-a.B]};
fta=function(a,b){a.focus(b);return BI(a,b,4)?cta(a).getUint32(b-a.B):256*(256*(256*DI(a,b)+DI(a,b+1))+DI(a,b+2))+DI(a,b+3)};
gta=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
EI=function(a){return String.fromCharCode.apply(null,a)};
GI=function(a){return FI?FI.decode(a):EI(a)};
g.II=function(a){if(!a.length)return"";try{if(FI)return FI.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)HI[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;HI[e++]=55296|f>>10;f=56320|f&1023}HI[e++]=f}}f=String.fromCharCode.apply(String,HI);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
KI=function(a,b){var c;if(null==(c=JI)?0:c.encodeInto)return b=JI.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};
hta=function(a){if(JI)return JI.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=KI(a,b);b.length<c&&(b=new Uint8Array(c),c=KI(a,b));b.length>c&&(b=b.subarray(0,c));return b};
LI=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.u=e)?0:8;this.dataOffset=this.offset+this.j};
MI=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
NI=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
OI=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
PI=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
QI=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};
RI=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 GI(b)};
ita=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
SI=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};
UI=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.j=TI(this,"Sequence-Number");this.J=TI(this,"Segment-Count");this.K=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=TI(this,"Ingestion-Walltime-Us")/1E6;this.u=(TI(this,"First-Frame-Time-Us")+TI(this,"First-Frame-Uncertainty-Us"))/1E6;this.Kj=TI(this,"Target-Duration-Us")/1E6;this.C="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=TI(this,"Crypto-Period-Index");
this.B=TI(this,"Crypto-Period-Seconds")};
kta=function(a){return a.data["Cuepoint-Type"]?new FG(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",jta[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):null};
lta=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
TI=function(a,b){return Number(a.data[b])||0};
VI=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.mta=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
g.nta=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
ota=function(a,b){this.j=a;this.duration=b};
pta=function(a,b,c,d,e){this.u=e;this.j=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
WI=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};
qta=function(a,b){var c=g.XI(a,0,1952868452);a=g.XI(a,0,1953658222);if(c&&a){c.skip(1);var d=MI(c)<<16|NI(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=PI(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=MI(a)<<16|NI(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=PI(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=PI(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
ZI=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.XI(a,0,1836476516))?g.YI(a):NaN};
rta=function(a){var b=g.XI(a,0,1937011556);if(!b)return null;b=$I(a,b.dataOffset+8,1635148593)||$I(a,b.dataOffset+8,1635135537);if(!b)return null;var c=$I(a,b.dataOffset+78,1936995172),d=$I(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),MI(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=$I(a,d.dataOffset,1886547818)){var h=$I(a,d.dataOffset,1886546020),l=$I(a,d.dataOffset,2037673328);if(!l&&(l=$I(a,d.dataOffset,1836279920),
!l))return null;h&&(h.skip(4),c=OI(h)/65536,f=OI(h)/65536,e=OI(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new pta(b,c,f,e,a)}return null};
$I=function(a,b,c){for(;aJ(a,b);){var d=bJ(a,b);if(d.type===c)return d;b+=d.size}return null};
g.XI=function(a,b,c){for(;aJ(a,b);){var d=bJ(a,b);if(d.type===c)return d;b=cJ(d.type)?b+8:b+d.size}return null};
g.dJ=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};
bJ=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new LI(a,b,c,d)};
g.YI=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
sta=function(a){a=new LI(a.data,a.offset,a.size,a.type,a.u);var b=MI(a);a.skip(7);var c=PI(a);if(0===b){b=PI(a);var d=PI(a)}else b=QI(a),d=QI(a);a.skip(2);for(var e=NI(a),f=[],h=[],l=0;l<e;l++){var m=PI(a);f.push(m);h.push(PI(a));a.skip(4)}return{Vr:c,o4:b,H4:d,O9:f,PQ:h}};
aJ=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};
cJ=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
tta=function(a){a.skip(4);return{h$:RI(a,0),value:RI(a,0),Vr:PI(a),Vcb:PI(a),rbb:PI(a),id:PI(a),eX:RI(a),offset:a.offset}};
g.uta=function(a){var b=$I(a,0,1701671783);if(!b)return null;var c=tta(b),d=c.h$;c=WI(c.eX);if(a=$I(a,b.offset+b.size,1701671783))if(a=tta(a),a=WI(a.eX),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 UI(c,d):null};
eJ=function(a,b){for(var c=$I(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=$I(a,c.offset+c.size,b)}};
g.fJ=function(a,b){for(var c=0,d=[];aJ(a,c);){var e=bJ(a,c);e.type===b&&d.push(e);c=cJ(e.type)?c+8:c+e.size}return d};
vta=function(a,b){var c=g.XI(a,0,1937011556),d=g.XI(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.XI(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 ita(a.byteLength+b);SI(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;SI(d,a,c.offset+16,c.size-16);SI(d,e,e.byteOffset+f.dataOffset+8,b);SI(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.XI(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.XI(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
wta=function(a){var b=g.XI(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(1701733217!==c&&1701733238!==c)return null;b=$I(a,b.offset+24+(1701733217===c?28:78),1936289382);if(!b)return null;c=$I(a,b.offset+8,1935894637);if(!c||1667392371!==a.getUint32(c.offset+12))return null;b=$I(a,b.offset+8,1935894633);if(!b)return null;b=$I(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};
gJ=function(a,b){this.j=a;this.pos=0;this.start=b||0};
hJ=function(a){return a.pos>=a.j.byteLength};
mJ=function(a,b,c){var d=new gJ(c);if(!iJ(d,a))return!1;d=jJ(d);if(!kJ(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=lJ(d,!0);d=a+(d.start+d.pos-b)+e;d=9<d?xta(d-9,8):xta(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
yta=function(a){var b=new gJ(a);b.Cn();if(iJ(b,[408125543,374648427,174,224]))b=jJ(b);else return null;for(var c=a=null;!hJ(b);){var d=lJ(b,!1);if(21432===d)switch(nJ(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=jJ(b):oJ(b)}if(!c)return null;for(var e,f=d=b=null;!hJ(c);)switch(lJ(c,!1)){case 30321:if(3!==nJ(c))return null;break;case 30324:b=pJ(c);break;case 30323:f=pJ(c);break;case 30325:d=pJ(c);break;case 30322:e=lJ(c,!0);e=qJ(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:oJ(c)}return e?new pta(a,b,f,d,e):null};
jJ=function(a){var b=lJ(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 gJ(c,a.start+a.pos);a.pos+=b;return c};
nJ=function(a){for(var b=lJ(a,!0),c=rJ(a),d=1;d<b;d++)c=256*c+rJ(a);return c};
pJ=function(a){var b=lJ(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};
zta=function(a){var b=lJ(a,!0);return GI(qJ(a,b))};
rJ=function(a){return a.j.getUint8(a.pos++)};
lJ=function(a,b){var c=rJ(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+rJ(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+rJ(a),d*=128;return b?c-d:c};
oJ=function(a){var b=lJ(a,!0);a.pos+=b};
Ata=function(a){if(!kJ(a,440786851,!0))return null;var b=a.pos;lJ(a,!1);var c=lJ(a,!0)+a.pos-b;a.pos=b+c;if(!kJ(a,408125543,!1))return null;lJ(a,!0);if(!kJ(a,357149030,!0))return null;var d=a.pos;lJ(a,!1);var e=lJ(a,!0)+a.pos-d;a.pos=d+e;if(!kJ(a,374648427,!0))return null;var f=a.pos;lJ(a,!1);var h=lJ(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};
sJ=function(a){var b=a.pos;a.pos=0;var c=1E6;iJ(a,[408125543,357149030,2807729])&&(c=nJ(a));a.pos=b;return c};
Bta=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!tJ(a)||!kJ(a,160))return a.pos=c,NaN;lJ(a,!0);var d=a.pos;if(!kJ(a,161))return a.pos=c,NaN;lJ(a,!0);rJ(a);var e=rJ(a)<<8|rJ(a);a.pos=d;if(!kJ(a,155))return a.pos=c,NaN;d=nJ(a);a.pos=c;return(e+d)*b/1E9};
tJ=function(a){if(!Cta(a)||!kJ(a,524531317))return!1;lJ(a,!0);return!0};
Cta=function(a){if(a.Cn()){if(!kJ(a,408125543))return!1;lJ(a,!0)}return!0};
iJ=function(a,b){for(var c=0;c<b.length;c++){if(!kJ(a,b[c]))return!1;c!==b.length-1&&lJ(a,!0)}return!0};
kJ=function(a,b,c){c=void 0===c?!1:c;if(hJ(a))return!1;for(var d=a.pos;lJ(a,!1)!==b;)if(oJ(a),d=a.pos,hJ(a))return!1;c&&(a.pos=d);return!0};
xta=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};
qJ=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
uJ=function(a){this.lj=a;this.j={};this.url=""};
Dta=function(a,b){var c=b.indexOf("?");if(0<c){var d=Xsa(b.substr(c+1));g.Wc(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=Wsa(b);g.Wc(b,function(e,f){this.set(f,e)},a)};
Eta=function(a){var b=a.lj.kf(),c=[];g.Wc(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=Vsa(a.lj)?"&":"?";return b+a+d};
vJ=function(a,b){var c=new g.pI(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Wc(a.j,function(d,e){c.set(e,null)});
return c};
wJ=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
xJ=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new wJ(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
yJ=function(a,b){return new wJ(a,a+b-1)};
Fta=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
zJ=function(a){if(!a)return new wJ(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new wJ(b,a),0<b.length))return b};
AJ=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.Jj=p;this.clipId=void 0===q?"":q;this.K=[];this.D="";this.Pa=-1;this.D=d;this.Pa=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.dc=l||0;this.u=0<=m?m:this.range?this.range.length:NaN;this.Cf=this.range?this.dc+this.u===this.range.length:void 0===n?!!this.u:n;this.range?(this.C=this.startTime+this.duration*this.dc/this.range.length,this.J=this.duration*this.u/this.range.length,this.B=
this.C+this.J):Gta(this)};
Gta=function(a){a.C=a.startTime;a.J=a.duration;a.B=a.C+a.J};
BJ=function(a){return a.Cf&&a.j.index.VN(a.Pa)};
Hta=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Pa!==a.Pa);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.dc+b.u===a.dc+a.u:d};
CJ=function(a){return 1===a.type||2===a.type};
DJ=function(a){return 3===a.type||7===a.type};
EJ=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.dc+a.u===b.range.start+b.dc:a.Pa===b.Pa?a.dc+a.u===b.dc:a.Pa+1===b.Pa&&0===b.dc&&a.Cf:!1};
Ita=function(a,b){return EJ(a,b)||se(a.B,b.C)||a.Pa+1===b.Pa&&0===b.dc&&a.Cf?!0:!1};
FJ=function(a){return a.Pa+(a.Cf?1:0)};
Jta=function(a){1===a.length||g.ln(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new wJ(a[0].range.start+a[0].dc,b.range.start+b.dc+b.u-1)};
Kta=function(a){for(var b=1;b<a.length;b++)if(!EJ(a[b-1],a[b]))return!1;return!0};
Lta=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};
GJ=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.src=""+a.source;b.segsrc=a.D;b.seg=String(a.Pa);a.range&&(b.range=""+(a.range.start+a.dc)+"-"+(a.range.start+a.dc+a.u-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.J).toFixed(1);b.off=String(a.dc);b.len=String(a.u);a.Cf&&(b.end="1");BJ(a)&&(b.eos="1");a.clipId&&(b.cid=a.clipId);return b};
Mta=function(a){return new AJ(a.type,a.j,a.range,"getEmptyStubBefore"+a.D,a.Pa,a.startTime,0,a.dc,0)};
Nta=function(a){return new AJ(a.type,a.j,a.range,"getEmptyStubAfter"+a.D,a.Pa,a.startTime+a.duration,0,a.dc+a.u,0)};
Ota=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.u<=b.range.start+b.dc+b.u:a.Pa===b.Pa&&a.dc>=b.dc&&(a.dc+a.u<=b.dc+b.u||b.Cf)};
Pta=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.zg()?(a=a.j.sA(a),xo(a,function(c){return Pta(c,b)})):a.Pa===b.Pa&&!!b.u&&b.dc+b.u>a.dc&&b.dc+b.u<=a.dc+a.u};
HJ=function(a,b){var c=b.Pa;a.D="updateWithSegmentInfo";a.Pa=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,Gta(a)};
IJ=function(a,b){var c=this;this.gb=a;this.J=this.u=null;this.D=this.hh=NaN;this.K=this.requestId=null;this.Rd={lcb:function(){return c.range}};
this.j=a[0].j.u;this.B=b||"";this.gb[0].range&&0<this.gb[0].u&&(Kta(a)?(this.range=Jta(a),this.C=this.range.length):(this.range=this.gb[this.gb.length-1].range,this.C=Lta(a)))};
JJ=function(a){return!CJ(a.gb[a.gb.length-1])};
KJ=function(a){return 4===a.gb[a.gb.length-1].type};
g.MJ=function(a,b,c){c=null===a.K?LJ(a.j,b,c,a.gb[0].type):a.K;if(a.u){c=c?uI(a.u,b.Il):a.u;var d=new uJ(c);d.get("alr")||d.set("alr","yes");a.B&&Dta(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new uJ(new g.pI(a.B)):(d=Qta(a.j,c,b),a.B&&Dta(d,a.B));if(b.Ww&&5===a.gb[0].type||6===a.gb[0].type)b=d.lj.clone(),qI(b),"/videogoodput"!==b.path&&(b.path="/videogoodput",b.url=""),d=new uJ(b);(b=a.range)?d.set("range",b.toString()):a.gb[0].j.Uv()&&1===a.gb.length&&a.gb[0].dc&&d.set("range",a.gb[0].dc+"-");a.requestId&&
d.set("req_id",a.requestId);isNaN(a.hh)||d.set("headm",a.hh.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.urlParams&&g.Wc(a.urlParams,function(e,f){d.set(f,e)});
return d};
Sta=function(a){if(a.range)return a.C;a=a.gb[0];return Rta?Math.round(a.u):Math.round(a.J*a.j.info.Wb)};
Tta=function(a,b){return Math.max(0,a.gb[0].C-b)};
Uta=function(){this.B=this.j=this.timedOut=this.started=this.C=this.u=0};
NJ=function(a){a.C=(0,g.mC)();a.started=0;a.timedOut=0;a.j=0};
Vta=function(a,b,c){var d=a.started+4*a.j;c&&(d+=a.B);return Math.pow(b.Bp,d)};
OJ=function(a,b){a[b]||(a[b]=new Uta);return a[b]};
PJ=function(a){this.K=this.D=this.J=this.u=0;this.j=a;this.B=a.clone()};
LJ=function(a,b,c,d){d=void 0===d?3:d;if(sI(a.j))return!1;var e=OJ(c,rI(a.j));if(1>e.timedOut&&1>e.j&&6!==d)return!1;var f=e.timedOut+e.j;a=QJ(a,b);c=OJ(c,rI(a));return 6===d?c.u<e.u:c.timedOut+c.j+ +(b.Io&&!c.C)<f};
Qta=function(a,b,c){a=b?QJ(a,c):a.j;return new uJ(a)};
QJ=function(a,b){b=b?b.Il:!1;a.C||(a.C=uI(a.B,b));return a.C};
RJ=function(a,b,c){return rI(b?QJ(a,c):a.j)};
cK=function(a,b,c){c=OJ(c,RJ(a,LJ(a,b,c),b));c=Math.max(a.J,c.timedOut)+b.pE*(a.u-a.J)+.25*a.D;b=c>b.Pi?1E3*Math.pow(b.Bp,c-b.Pi):0;return 0===b?!0:a.K+b<(0,g.mC)()};
Wta=function(a,b,c){a.j.set(b,c);a.B.set(b,c);a.C&&a.C.set(b,c)};
fK=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.u=new PJ(a)};
hK=function(a,b){return gK(a.info,b)};
iK=function(a,b,c,d,e,f){f=void 0===f?0:f;fK.call(this,a,b,d,void 0);this.J=c;this.Kj=f;this.index=e||new g.wI};
Xta=function(a,b,c,d,e){this.Pa=a;this.startSecs=b;this.Yh=c;this.j=d||NaN;this.u=e||NaN};
jK=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""};
kK=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
Yta=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};
Zta=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
lK=function(){this.j=[];this.u=null;this.J=0;this.B=[];this.D=!1;this.K="";this.C=-1};
$ta=function(a){var b=a.B;a.B=[];return b};
aua=function(){this.C=[];this.j=null;this.u={};this.B={}};
eua=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=bua(a):"AdaptationSet"===e.nodeName?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=cua(a,e)):"Representation"===e.nodeName&&(e=e.getAttribute("id")||"",f=dua(a,e));if(null==f)return;f.update(d);g.Nb(c,$ta(f))}g.Nb(a.C,c);xaa(a.C,function(h){return 1E3*h.startSecs+h.j})};
fua=function(a){a.j&&(a.j.j=[]);g.Wc(a.u,function(b){b.j=[]});
g.Wc(a.B,function(b){b.j=[]})};
bua=function(a){a.j||(a.j=new lK);return a.j};
cua=function(a,b){a.u[b]||(a.u[b]=new lK);return a.u[b]};
dua=function(a,b){a.B[b]||(a.B[b]=new lK);return a.B[b]};
mK=function(a){var b=void 0===a?{}:a;a=void 0===b.Kj?0:b.Kj;var c=void 0===b.Tm?!1:b.Tm,d=void 0===b.qq?0:b.qq,e=void 0===b.bf?0:b.bf,f=void 0===b.nh?Infinity:b.nh,h=void 0===b.Pz?0:b.Pz;b=void 0===b.Re?!1:b.Re;g.wI.call(this);this.Mq=this.vp=-1;this.Lj=a;this.qq=d;this.Tm=c;this.bf=e;this.nh=f;this.Pz=h;this.Re=b};
oK=function(a,b,c){b=nK(a,b);return 0<=b&&(c||!a.segments[b].pending)};
nK=function(a,b){return Ub(a.segments,function(c){return b-c.Pa})};
pK=function(a,b,c){c=void 0===c?{}:c;iK.call(this,a,b,"",void 0,void 0,c.Kj||0);this.index=new mK(c)};
qK=function(a,b,c){fK.call(this,a,b);this.J=c;this.index=new g.wI;this.index.u=!1};
gua=function(a,b,c){var d=a.index.dH(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.Wb*f;return new IJ([new AJ(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
hua=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.J;b=b.K.split(",").filter(function(p){return 0<p.length});
for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new vI(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
rK=function(a,b,c){this.info=a;this.j=b;this.B=c;this.u=null;this.D=-1;this.timestampOffset=0;this.J=!1;this.C=this.info.j.Az()&&!this.info.dc};
sK=function(a){return dta(a.j)};
iua=function(a,b){b=Math.min(b,a.info.u);var c=a.j.split(b);return[new rK(new AJ(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Pa,a.info.startTime,a.info.duration,a.info.dc,b,!1,a.info.Jj,a.info.clipId),c.aD,a.B),new rK(new AJ(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Pa,a.info.startTime,a.info.duration,a.info.dc+b,a.info.u-b,a.info.Cf,a.info.Jj,a.info.clipId),c.yl)]};
tK=function(a,b,c){var d;if(!(d=!EJ(a.info,b.info)||a.info.Cf)){if(c=void 0===c?!1:c)c=b.j,c=!(c.j.length?bta(a.j,c.j[0]):1);d=c}if(d)return null;c=new AJ(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Pa,a.info.startTime,a.info.duration,a.info.dc,a.info.u,a.info.Cf,a.info.Jj,a.info.clipId);d=b.info;c.u+=d.u;c.range&&(c.J+=d.J);c.B=d.B;c.Cf=d.Cf;d=new xI;yI(d,a.j);yI(d,b.j);c=new rK(c,d,a.B);c.u=b.u||a.u;return c};
jua=function(a){g.uK(a.info.j.info)||a.info.j.info.Ye();if(-1!==a.D)return a.D;if(a.u&&lta(a.u))return a.D=lta(a.u),a.D;if(g.uK(a.info.j.info)){var b=sK(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;aJ(b,f);){var h=bJ(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.YI(h):1952867444===h.type&&isNaN(d)&&(d=g.dJ(h));f=cJ(h.type)?f+8:f+h.size}!e&&c&&(e=ZI(c));b=d/e}else b=new gJ(sK(a)),c=a.C?b:new gJ(new DataView(a.info.j.j.buffer)),d=sJ(c),c=b.pos,b.pos=0,tJ(b)?kJ(b,231)?
(d=nJ(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.D=b||a.info.C;return a.D};
vK=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=jua(a)+b;kua(a,c);a.timestampOffset=b};
kua=function(a,b){g.uK(a.info.j.info)||a.info.j.info.Ye();a.D=b;if(g.uK(a.info.j.info)){var c=sK(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;aJ(c,f);){var h=bJ(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.YI(h)));if(1952867444===h.type){!d&&a&&(d=ZI(a));var l=g.dJ(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=cJ(h.type)?f+8:f+h.size}return!0}c=new gJ(sK(a));a=a.C?c:new gJ(new DataView(a.info.j.j.buffer));d=sJ(a);a=c.pos;c.pos=0;if(tJ(c)&&kJ(c,231))if(e=lJ(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};
wK=function(a,b){b=void 0===b?!1:b;var c=lua(a);a=b?0:a.info.J;return c||a};
lua=function(a){g.uK(a.info.j.info)||a.info.j.info.Ye();if(a.u&&7===a.info.type)return a.u.Kj;if(g.uK(a.info.j.info)){var b=sK(a);var c=0;b=g.fJ(b,1936286840);b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=sta(d.value),c+=d.PQ[0]/d.Vr;c=c||NaN;if(!(0<=c))a:{c=sK(a);b=a.info.j.j;for(var e=d=0,f=0;aJ(c,d);){var h=bJ(c,d);if(1836476516===h.type)e=g.YI(h);else if(1836019558===h.type){!e&&b&&(e=ZI(b));if(!e){c=NaN;break a}var l=$I(h.data,h.dataOffset,1953653094),m=e,n=$I(l.data,l.dataOffset,1952868452);
l=$I(l.data,l.dataOffset,1953658222);var p=OI(n);OI(n);p&2&&OI(n);n=p&8?OI(n):0;var q=OI(l),t=q&1;p=q&4;var v=q&256,y=q&512,A=q&1024;q&=2048;var E=PI(l);t&&OI(l);p&&OI(l);for(var K=t=0;K<E;K++){var I=v?OI(l):n;y&&OI(l);p&&0===K||!A||OI(l);q&&OI(l);t+=I}f+=t/m}d=cJ(h.type)?d+8:d+h.size}c=f||NaN}c||g.tG(new g.EB("Missing duration while parsing bmff",a.info.Td()))}else c=new gJ(sK(a)),a=a.C?c:new gJ(new DataView(a.info.j.j.buffer)),c=Bta(c,sJ(a));return c};
mua=function(a){var b=sK(a);var c=(c=g.XI(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.XI(b,0,1836476516))?g.YI(b):a?ZI(a):NaN);return c};
nua=function(a){return a.info.j.info.Ye()&&160===DI(a.j,0)};
oua=function(a){if(!a.u){g.uK(a.info.j.info)||a.info.j.info.Ye();if(g.uK(a.info.j.info))var b=g.uta(sK(a));else{b=new gJ(sK(a));var c=b.pos;b.pos=0;var d=null,e=null;if(iJ(b,[408125543,307544935]))for(var f=b.pos+lJ(b,!0);b.pos<f;)if(29555!==lJ(b,!1))oJ(b);else for(var h=b.pos+lJ(b,!0);b.pos<h;)if(26568!==lJ(b,!1))oJ(b);else for(var l=b.pos+lJ(b,!0);b.pos<l;){var m=lJ(b,!1);if(17543===m){if(m=zta(b),m=WI(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=zta(b),d||(d=m)):oJ(b)}b.pos=c;b=e?new UI(e,d):null}a.u=b}};
xK=function(a){if(!a.J){if(g.uK(a.info.j.info)){var b=sK(a);var c=$I(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=Ata(new gJ(sK(a)));b&&(a.info.j.j=b,a.J=!0)}};
g.yK=function(){this.count=0;this.j=1;this.u=!1;this.offsets=new Float64Array(128);this.Di=new Float64Array(128)};
pua=function(a,b){return b+1<a.count||a.u?a.offsets[b+1]-a.offsets[b]:-1};
zK=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
AK=function(a,b,c,d){fK.call(this,a,b,c,d);var e=this;this.J=null;this.Rd={MC:function(f,h,l){return e.MC(f,h,l)}};
this.index=new g.yK};
BK=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.u=void 0===e?0:e};
qua=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};
sua=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return rua[a];return null};
DK=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||CK(a,b);this.j=g.WH[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.WH[this.quality],0===a?a="Autom\u00e1tico":(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.u=l||"";this.primaries=m||""};
CK=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=EK[0];for(var d=0;d<EK.length;d++){var e=EK[d],f=g.WH[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
HK=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.Wb||(c.Wb=16E3);Object.assign(this,c);a=g.u(this.id.split(";"));this.itag=a.next().value;this.j=a.next().value;this.containerType=FK(b);this.yb=GK[this.itag]||""};
nI=function(a){return"9"===a.yb||"("===a.yb||"9h"===a.yb||"(h"===a.yb};
tua=function(a){return"H"===a.yb||"h"===a.yb};
IK=function(a){return"9h"===a.yb||"(h"===a.yb};
JK=function(a){return"1"===a.yb||"1h"===a.yb};
mI=function(a){return"mac3"===a.yb||"meac3"===a.yb||"m"===a.yb};
lI=function(a){return"MAC3"===a.yb||"MEAC3"===a.yb||"M"===a.yb};
g.uK=function(a){return 1===a.containerType};
KK=function(a){return"application/x-mpegURL"===a.mimeType};
LK=function(a,b){return{itag:+a.itag,hk:b?0:a.lastModified,xtags:a.j||""}};
gK=function(a,b){a=LK(a,b);return a.itag+";"+(a.hk||0)+";"+a.xtags};
uua=function(a){var b=navigator.mediaCapabilities;if(null==b||!b.decodingInfo||"f"===a.yb)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.Wb||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:8*a.Wb||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.u=d})};
vua=function(a){return/(opus|mp4a|dtse|ac-3|ec-3)/.test(a)};
wua=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)};
MK=function(a){return a.includes("vtt")||a.includes("text/mp4")};
FK=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};
NK=function(a,b,c,d,e,f){var h=new BK;b in g.WH||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.WH[b],d=Math.round(16*e/9));f=new DK(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new HK(c,a,{audio:h,video:f})};
xua=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.Zu)?void 0:c.toFixed(0))+", "+(null==(d=a.Wb)?void 0:d.toFixed(0))+")"};
g.OK=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.PK=function(){lB.apply(this,arguments)};
QK=function(){var a=g.Sa("yt.player.utils.videoElement_");a||(a=g.bf("VIDEO"),g.Qa("yt.player.utils.videoElement_",a));return a};
RK=function(a){var b=QK();return!!(b&&b.canPlayType&&b.canPlayType(a))};
TK=function(a){if(/opus/.test(a)&&g.SK&&!mr("38")&&!g.zA())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(yua&&window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Pma())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!RK(a)};
zua=function(a){try{var b=TK('video/mp4; codecs="avc1.42001E"')||TK('video/webm; codecs="vp9"');return(TK('audio/mp4; codecs="mp4a.40.2"')||TK('audio/webm; codecs="opus"'))&&(b||!a)||RK('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
Aua=function(){var a=QK();return!(!a.webkitSupportsPresentationMode||"function"!==typeof a.webkitSetPresentationMode)};
Bua=function(){var a=QK();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
UK=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
VK=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)};
WK=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};
XK=function(a,b){return 0<=WK(a,b)};
Cua=function(a,b){if(!a)return NaN;b=WK(a,b);return 0<=b?a.start(b):NaN};
YK=function(a,b){if(!a)return NaN;b=WK(a,b);return 0<=b?a.end(b):NaN};
ZK=function(a){return a&&a.length?a.end(a.length-1):NaN};
$K=function(a,b){a=YK(a,b);return 0<=a?a-b:0};
aL=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 UK(d,e)};
bL=function(a,b,c,d){g.SG.call(this);var e=this;this.Od=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.QV={error:function(){!e.isDisposed()&&e.isActive&&e.ra("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.ra("updateend",e)}};
g.TG(this.Od,this.QV);this.mF=this.isActive};
cL=function(a,b,c,d,e,f){g.SG.call(this);var h=this;this.pc=a;this.ph=b;this.id=c;this.containerType=d;this.yb=e;this.lh=f;this.gO=this.qD=this.Qf=null;this.kG=!1;this.appendWindowStart=this.timestampOffset=0;this.KL=UK([],[]);this.VB=!1;this.pD=[];this.uA=Dua?[]:void 0;this.Cd=function(m){return h.ra(m.type,h)};
var l;if(null==(l=this.pc)?0:l.addEventListener)this.pc.addEventListener("updateend",this.Cd),this.pc.addEventListener("error",this.Cd)};
dL=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
eL=function(a,b){this.j=a;this.u=void 0===b?!1:b;this.B=!1};
fL=function(a,b,c){c=void 0===c?!1:c;g.G.call(this);this.mediaElement=a;this.Xa=b;this.isView=c;this.J=0;this.C=!1;this.D=!0;this.V=0;this.callback=null;this.Xa||(this.ph=this.mediaElement.Bb());this.events=new g.PK(this);g.H(this,this.events);this.B=new eL(this.Xa?window.URL.createObjectURL(this.Xa):this.ph.webkitMediaSourceURL,!0);a=this.Xa||this.ph;mB(this.events,a,["sourceopen","webkitsourceopen"],this.S8);mB(this.events,a,["sourceclose","webkitsourceclose"],this.Q8);this.K={updateend:this.E1}};
Eua=function(){return!!(window.MediaSource||gL&&window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
Fua=function(a,b){hL(a)?g.Lf(function(){b(a)}):a.callback=b};
Hua=function(a,b,c){if(Gua){var d;iL(a.mediaElement,{l:"mswssb",sr:null==(d=a.mediaElement.va)?void 0:jL(d)},!1);g.TG(b,a.K,a);g.TG(c,a.K,a)}a.j=b;a.u=c;g.H(a,b);g.H(a,c)};
Iua=function(a){return!!a.j||!!a.u};
hL=function(a){try{return"open"===kL(a)}catch(b){return!1}};
kL=function(a){if(a.Xa)return a.Xa.readyState;switch(a.ph.webkitSourceState){case a.ph.SOURCE_OPEN:return"open";case a.ph.SOURCE_ENDED:return"ended";default:return"closed"}};
Jua=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||gL&&window.ManagedMediaSource};
Kua=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.Od:a.j,f=a.u.isView()?a.u.Od:a.u,h=new fL(a.mediaElement,a.Xa,!0);h.B=a.B;Hua(h,new bL(e,b,c,d),new bL(f,b,c,d));hL(a)||a.j.Nr(a.j.Hd());return h};
Lua=function(a){var b;null==(b=a.j)||b.Fy();var c;null==(c=a.u)||c.Fy();a.D=!1};
Nua=function(a){return Mua(function(b,c){return g.lA(b,c,4,1E3)},a,{format:"RAW",
method:"GET",withCredentials:!0})};
g.Oua=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=GI(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
Mua=function(a,b,c){b.match(Pua);return a(b,c).then(function(d){var e=g.Oua(d.xhr);return e?Mua(a,e,c):d.xhr})};
mL=function(a,b,c,d){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.SG.call(this);var e=this;this.sourceUrl=a;this.isLivePlayback=c;this.videoId=d;this.eb=this.duration=0;this.isPremiere=this.Re=this.B=this.isLiveHeadPlayable=this.isLive=this.u=!1;this.nh=this.bf=0;this.isOtf=this.Jc=!1;this.Ma=(0,g.mC)();this.V=Infinity;this.j={};this.K=new Map;this.state=this.Yg=0;this.timeline=null;this.isManifestless=!1;this.ea=[];this.C=null;this.oa=0;this.D="";this.Ba=NaN;this.pd=this.Eb=this.md=
this.timestampOffset=this.J=0;this.Va=this.Ya=this.qa=!1;this.Ga=[];this.Fa={};this.Rd={Zab:function(h){lL(e,h)}};
var f;this.kb=null==(f=b)?void 0:f.sb("html5_use_network_error_code_enums");Qua=!!b&&b.sb("html5_modern_vp9_mime_type")};
Psa=function(a){return g.Zc(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
fI=function(a){return g.Zc(a.j,function(b){return!!b.info.me})};
Rua=function(a){return g.Zc(a.j,function(b){return MK(b.info.mimeType)})};
Sua=function(a){return g.Zc(a.j,function(b){return b.info.video?"EQUIRECTANGULAR"===b.info.video.projectionType:!1})};
Tua=function(a){return g.Zc(a.j,function(b){return b.info.video?"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.info.video.projectionType:!1})};
Uua=function(a){return g.Zc(a.j,function(b){return b.info.video?"MESH"===b.info.video.projectionType:!1})};
Vua=function(a){return g.Zc(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
Wua=function(a){return nba(a.j,function(b){return b.info.video?b.EP():!0})};
cI=function(a){return g.Zc(a.j,function(b){return sI(b.u.j)})};
lL=function(a,b){a.j[b.info.id]=b;a.K.set(gK(b.info,a.Jc),b)};
Xua=function(a,b){return(b.itag||"")+";"+((a.Jc?0:b.hk||0)||0)+";"+(b.xtags||"")};
nL=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(wua(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=Yua[a.stereoLayout]);var t=sua(a)||void 0;if(null==n?0:n.primaries)var v=Zua[n.primaries]||void 0;h=new DK(h,e,l,p,q,void 0,m,t,v);d=$ua(d,h,GK[a.itag||""])}var y;if(vua(d)){var A=a.audioSampleRate;q=a.audioTrack;A=new BK(A?+A:void 0,a.audioChannels,a.spatialAudioType,
a.isDrc,a.loudnessDb);q&&(v=q.displayName,e=q.id,q=q.audioIsDefault,v&&(y=new g.OK(v,e||"",!!q)))}var E;a.captionTrack&&(m=a.captionTrack,q=m.displayName,v=m.vssId,e=m.languageCode,l=m.kind,m=m.id,q&&v&&e&&(E=new qua(q,v,e,l,a.xtags,m)));q=Number(a.bitrate)/8;v=Number(a.contentLength);e=Number(a.lastModified);m=a.drmFamilies;l=a.type;c=c&&v?v/c:0;a=Number(a.approxDurationMs);if(b&&m){var K={};m=g.u(m);for(n=m.next();!n.done;n=m.next())(n=ava[n.value])&&(K[n]=b[n])}return new HK(f,d,{audio:A,video:h,
Nc:y,me:K,Wb:q,Zu:c,contentLength:v,lastModified:e,captionTrack:E,streamType:l,approxDurationMs:a})};
bva=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(wua(d)){var h=(a.size||"640x360").split("x");h=new DK(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=$ua(d,h,GK[a.itag])}var l;if(vua(d)){var m=new BK(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.OK(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 qua(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 t={};for(var v=g.u(a.drm_families.split(",")),y=v.next();!y.done;y=v.next())y=y.value,t[y]=b[y]}return new HK(e,d,{audio:m,video:h,Nc:l,me:t,Wb:f,Zu:c,contentLength:p,lastModified:q,captionTrack:n,streamType:a.stream_type,approxDurationMs:Number(a.approx_duration_ms)})};
cva=function(a){return xo(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
dva=function(a){return xo(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
eva=function(a,b){return a.timeline?Ob(a.timeline.C,b):a.ea.length?Ob(a.ea,b):[]};
oL=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.pI(a,!0);a.set("alr","yes");c&&(c=Usa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
iva=function(a,b){var c=jK(b,"id");c=c.replace(":",";");var d=jK(b,"mimeType"),e=jK(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(jK(b,"bandwidth"))/8;var f=Number(kK(b,"BaseURL").getAttribute(a.D+":contentLength")),h=a.duration&&f?f/a.duration:0;if(wua(d)){var l=Number(jK(b,"width"));var m=Number(jK(b,"height")),n=Number(jK(b,"frameRate")),p=fva(jK(b,a.D+":projectionType"));a:switch(jK(b,a.D+":stereoLayout")){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=2;break a;default:q=
0}l=new DK(l,m,n,p,q)}if(vua(d)){var t=Number(jK(b,"audioSamplingRate"));var v=Number(jK(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=gva(jK(b,a.D+":spatialAudioType"));t=new BK(t,v,m);a:{v=jK(b,"lang")||"und";if(m=kK(b,"Role"))if(p=jK(m,"value")||"",g.cd(hva,p)){m=v+"."+hva[p];n="main"===p;a=jK(b,a.D+":langName")||v+" - "+p;v=new g.OK(a,m,n);break a}v=void 0}}if(b=kK(b,"ContentProtection"))if("http://youtube.com/drm/2012/10/10"===b.getAttribute("schemeIdUri")){var y={};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&&(y[a]=m.trim()))}else y=void 0;return new HK(c,d,{audio:t,video:l,Nc:v,me:y,Wb:e,Zu:h,contentLength:f})};
fva=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"}};
gva=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"}};
kva=function(a,b){b=void 0===b?"":b;a.state=1;a.Ma=(0,g.mC)();return Nua(b||a.sourceUrl).then(function(c){if(!a.isDisposed()){a.Yg=c.status;var d=c.responseText;c=new DOMParser;d=g.me(fma(d));c=c.parseFromString(g.le(d),"text/xml").getElementsByTagName("MPD")[0];a.V=1E3*Yta(jK(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.D=d;a.isLive=
Infinity>a.V&&a.isLivePlayback;a.eb=Number(jK(c,a.D+":earliestMediaSequence"))||0;if(d=Date.parse(Zta(jK(c,a.D+":mpdResponseTime"))))a.oa=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.ln(c.getElementsByTagName("Period"),a.s9,a);a.state=2;a.ra("loaded");jva(a)}return a}).Ek(function(c){if(c instanceof jA){var d=c.xhr;
a.Yg=d.status}a.state=3;a.ra("loaderror");return Qf(d)})};
lva=function(a,b,c){return kva(new mL(a,b,c),a)};
mva=function(a){return a.isLive&&(0,g.mC)()-a.Ma>=a.V};
jva=function(a){var b=a.V;isFinite(b)&&(mva(a)?a.refresh():(b=Math.max(0,a.Ma+b-(0,g.mC)()),a.C||(a.C=new g.Kq(a.refresh,b,a),g.H(a,a.C)),a.C.start(b)))};
nva=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.Gd()+1}return 0};
pL=function(a){return a.md?a.md-(a.J||a.timestampOffset):0};
qL=function(a){return a.Eb?a.Eb-(a.J||a.timestampOffset):0};
rL=function(a){if(!isNaN(a.Ba))return a.Ba;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.cn();c<=d.Gd();c++)b+=d.getDuration(c);b/=d.lz();b=.5*Math.round(b/.5);10<d.lz()&&(a.Ba=b);return b}if(a.isLive&&(d=b[c],d.Kj))return d.Kj}return NaN};
ova=function(a,b){a=pba(a.j,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.Lh(b);return a.getStartTime(c)===b?b:c<a.Gd()?a.getStartTime(c+1):NaN};
pva=function(a,b){if(!a.j["0"]){var c=new HK("0","fakesb",{video:new DK(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new iK(new g.pI("http://www.youtube.com/videoplayback"),c,"fake"):new AK(new g.pI("http://www.youtube.com/videoplayback"),c,new wJ(0,0),new wJ(0,0))}};
sL=function(a,b,c){for(var d in a.j){var e=MK(a.j[d].info.mimeType)||a.j[d].info.lh();if(c===e){e=a.j[d].index;var f=nK(e,b);0<=f&&e.segments.splice(f,1)}}};
qva=function(a){for(var b in a.j)MK(a.j[b].info.mimeType)||ata(a.j[b].index,Infinity)};
rva=function(a){a.Eb=0;a.md=0;a.pd=0};
sva=function(a){return a.Ya&&a.isManifestless?a.isLiveHeadPlayable:a.isLive};
$ua=function(a,b,c){null===tL&&(tL=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(Qua&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return tL||"9"!==c&&"("!==c?tL||"9h"!==c&&"(h"!==c||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!tL&&!tva||'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.u&&(f="16"),"arib-std-b67"===b.u&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'};
uva=function(a){g.rB("yt-player-bandwidth",a,2592E3)};
uL=function(a){a=void 0===a?2592E3:a;if(0<a&&!(vna()>(0,g.mC)()-1E3*a))return 0;a=g.sB("yt-player-quality");if("string"===typeof a){if(a=g.WH[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
vva=function(){var a=g.sB("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};
wva=function(){var a={values:{},Iq:{}};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};
xva=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
wL=function(a,b){return+vL()[xva(a,b)]||8192};
vL=function(){return g.sB("yt-player-performance-cap")||{}};
yva=function(a){g.rB("yt-player-watch-later-pending",a)};
zva=function(){return!!g.sB("yt-player-headers-readable")};
Ava=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.Bva=function(){var a=g.sB("yt-player-caption-language-preferences");return a?a:[]};
Cva=function(a){this.Ia=a;this.Qc=this.Sn=this.Oa=this.C=this.B=this.J=this.Ma=this.kb=this.Ba=!1;this.ea=this.V=0;this.rb=!1;this.Ga=!0;this.ob=!1;this.ij=0;this.Fa=!1;this.xc=Infinity;this.xL=!1;this.xd=!0;this.eb=this.Va=this.Ya=!1;this.j={};this.u=this.oa=!1;this.Ec=this.Ia.N("html5_enable_audio_track_log");this.Zb=!1;this.hc=this.Ia.experiments.sb("html5_enable_vp9_fairplay");this.md=this.Ia.N("html5_disable_av1_hdr");this.od=this.Ia.N("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");
this.kd=this.Ia.N("html5_account_onesie_format_selection_during_format_filter");this.pd=this.Ia.N("html5_prefer_hbr_vp9_over_av1");this.Vf=0;this.Eb=this.wb=!1;this.K=this.Ia.N("html5_block_audio_by_policy");this.Wb=g.xL(this.Ia.experiments,"html5_max_byterate")};
Qsa=function(a){if(a.kb)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Fa&&(b.unshift("1"),b.unshift("1h"));a.Sn&&b.unshift("h");a.qa&&(b=(Dva[a.qa]||[a.qa]).concat(b));return b};
Lsa=function(a){var b=["o","a","A"];1===a.Vf&&(a.J&&(b=["m","M"].concat(b)),a.B&&(b=["mac3","MAC3"].concat(b)),a.C&&(b=["meac3","MEAC3"].concat(b)));a.Ba&&(b=["so","sa"].concat(b));!a.Qc||a.Oa||a.D||b.unshift("a");a.Ma&&b.unshift("ah");a.D&&(b=(Dva[a.D]||[a.D]).concat(b));return b};
Eva=function(a,b,c){b=void 0===b?{}:b;if(a.N("html5_disable_av1"))return b.disabled=1,0;if(jI(a.D,kI.AV1_CODECS)&&jI(a.D,kI.HEIGHT)&&jI(a.D,kI.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=Ava();if(d)return b.localPref=d}catch(h){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;Oma()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(h){return JK(h)}))?void 0:null==(f=e.u)?void 0:f.powerEfficient)a=8192,b.isEfficient=1;
c=c.videoInfos[0].video;e=Math.min(wL("1",c.fps),wL("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=wL("1",30),b.perfCap30=c,a=Math.min(a,c),c=wL("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
yL=function(a){return a?function(){try{return a.apply(this,arguments)}catch(b){g.sG(b)}}:a};
zL=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.u=c;this.experiments=d;this.j={};this.Ya=this.keySystemAccess=null;this.Mx=this.Nx=-1;this.Ll=null;this.B=!!d&&d.sb("edge_nonprefixed_eme")};
BL=function(a){return a.B?!1:!a.keySystemAccess&&!!AL()&&"com.microsoft.playready"===a.keySystem};
CL=function(a){return"com.microsoft.playready"===a.keySystem};
DL=function(a){return!a.keySystemAccess&&!!AL()&&"com.apple.fps.1_0"===a.keySystem};
EL=function(a){return"com.youtube.fairplay"===a.keySystem};
FL=function(a){return"com.youtube.fairplay.sbdl"===a.keySystem};
g.GL=function(a){return"fairplay"===a.flavor};
AL=function(){var a=window,b=a.MSMediaKeys;CA()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
Fva=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.SK&&!g.zA())return mr("45");if(g.NC||g.Pe)return a.sb("edge_nonprefixed_eme");if(g.HL)return mr("47");if(g.dC){if(a.sb("html5_enable_safari_fairplay"))return!1;if(a=g.xL(a,"html5_safari_desktop_eme_min_version"))return mr(a)}return!0};
Hva=function(a,b,c,d){var e=AA(),f=(c=e||c&&CA())?["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.qa(f),g.qa(Gva.playready)):[].concat(g.qa(Gva.playready),g.qa(f))};
JL=function(){this.B=this.j=0;this.u=Array.from({length:IL.length}).fill(0)};
Iva=function(a){if(0===a.j)return null;for(var b=a.j.toString()+"."+Math.round(a.B).toString(),c=0;c<IL.length;++c)if(0<a.u[c])b+="."+IL[c].toString()+"_"+Math.round(a.u[c]).toString();else break;return b};
Jva=function(){};
Kva=function(a){this.name=a;this.startTimeMs=(0,g.mC)();this.j=!1};
Lva=function(){this.j=new Jva};
Mva=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.j||(a.j[b]=new JL),a.j[b].eg(c,d))};
Nva=function(){};
Ova=function(a){this.name=a;this.startTimeMs=(0,g.mC)();this.j=!1};
Pva=function(){this.j=new Nva};
Rva=function(a,b,c,d){if(b&&"object"===typeof b&&"then"in b&&"function"===typeof b.then){var e=function(f){Qva(a,c,(0,g.mC)()-d);return f};
return b.then(e,e)}Qva(a,c,(0,g.mC)()-d);return b};
Qva=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.j||(a.j[b]=new JL),a.j[b].eg(c,d))};
Sva=function(){};
KL=function(a,b,c,d,e){d=void 0===d?!1:d;g.G.call(this);this.Ia=b;this.useCobaltWidevine=d;this.ya=e;this.u=[];this.B={};this.j={};this.callback=null;this.D=!1;this.C=[];this.initialize(a,!c)};
Vva=function(a,b){a.callback=b;a.C=[];Fva(a.Ia.experiments)?Tva(a):Uva(a)};
Tva=function(a){if(!a.isDisposed())if(0===a.u.length)a.callback(a.C);else{var b=a.u[0],c=a.B[b],d=Wva(a,c);if(LL&&LL.keySystem===b&&LL.Y9===JSON.stringify(d))a.ya("remksa",{re:!0}),Xva(a,c,LL.keySystemAccess);else{var e,f;a.ya("remksa",{re:!1,ok:null!=(f=null==(e=LL)?void 0:e.keySystem)?f:""});LL=void 0;(ML.isActive()&&ML.wu()?ML.ql("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(yL(function(h){Xva(a,c,h,d)}),yL(function(){a.D=
!a.D&&"widevine"===a.B[a.u[0]].flavor;
a.D||a.u.shift();Tva(a)}))}}};
Xva=function(a,b,c,d){if(!a.isDisposed()){d&&(LL={keySystem:b.keySystem,keySystemAccess:c,Y9:JSON.stringify(d)});b.keySystemAccess=c;if(CL(b)){c=QK();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())Yva(a,b,e.value);if(c.videoCapabilities)for(c=g.u(c.videoCapabilities),d=c.next();!d.done;d=c.next())Yva(a,b,d.value)}a.C.push(b);
a.useCobaltWidevine||a.N("html5_enable_vp9_fairplay")&&FL(b)?(a.u.shift(),Tva(a)):a.callback(a.C)}};
Yva=function(a,b,c){a.N("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
Wva=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.N("html5_enable_vp9_fairplay")&&EL(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];CL(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.D?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.SK&&g.xA("windows nt")&&!a.N("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.N("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.N("html5_query_sw_secure_crypto_for_android")&&"MWEB"===g.NL(a.Ia)&&(IA()||yA())&&(a.ya("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
Uva=function(a){if(AL()&&g.dC)a.C.push(new zL("fairplay","com.apple.fps.1_0","",a.Ia.experiments));else{var b=Zva(),c=g.Db(a.u,function(d){var e=a.B[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.C.push(a.B[c]);a.u=[]}a.callback(a.C)};
Zva=function(){var a=AL();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=QK();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
$va=function(){this.j=0};
awa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=Pz(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.xL=function(a,b){return Number(a.flags[b])||0};
OL=function(a,b){return(a=a.flags[b])?a.toString():""};
bwa=function(a){if(a.j)return a.j;if(1>=a.experimentIds.length)return a.j=a.experimentIds,a.j;var b=[].concat(g.qa(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};
dwa=function(a){return cwa.then(a)};
ewa=function(a,b,c){this.experiments=a;this.qa=b;this.Ba=void 0===c?!1:c;this.V=!!g.Sa("cast.receiver.platform.canDisplayType");this.K={};this.ea=!1;this.u=new Map;this.J=!this.experiments.sb("html5_disable_protected_hdr");this.j=this.B=!1;this.oa=this.experiments.sb("html5_disable_vp9_encrypted");this.C=new Map;a=g.Sa("cast.receiver.platform.getValue");this.D=!this.V&&a&&a("max-video-resolution-vpx")||null};
Tsa=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.Ye()&&AA()&&a.experiments.sb("html5_appletv_disable_vp9"))return"dwebm";if(JK(b)&&a.ea)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(jI(a,kI.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.SK?mr(53):g.HL&&mr(64)))return"dopus";
var f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[kI.WIDTH.name]=b.video.width),b.video.height&&(c[kI.HEIGHT.name]=b.video.height),b.video.fps&&(c[kI.FRAMERATE.name]=b.video.fps*f),b.video.u&&(c[kI.EOTF.name]=b.video.u),b.Wb&&(c[kI.BITRATE.name]=8*b.Wb*f),"("===b.yb&&(c[kI.CRYPTOBLOCKFORMAT.name]="subsample"),"EQUIRECTANGULAR"===b.video.projectionType||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.video.projectionType||"MESH"===b.video.projectionType)&&(c[kI.DECODETOTEXTURE.name]="true");b.audio&&
b.audio.numChannels&&(c[kI.CHANNELS.name]=b.audio.numChannels);a.B&&nI(b)&&(c[kI.EXPERIMENTAL.name]="allowed");f=g.u(Object.keys(kI));for(var h=f.next();!h.done;h=f.next())if(h=kI[h.value],c[h.name]&&!(h===kI.EOTF&&0<b.mimeType.indexOf("vp09.02")||a.experiments.sb("html5_ignore_h264_framerate_cap")&&h===kI.FRAMERATE&&tua(b)))if(jI(a,h))if(a.D){if(a.D[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(IK(b)&&h===kI.EOTF)return"dvp92";a.V&&b.video&&1080<b.video.j&&b.me&&(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.sb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"};
PL=function(){var a=yA()&&!mr(29),b=g.xA("google tv")&&g.xA("chrome")&&!mr(30);return a||b?!1:Eua()};
fwa=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===Tsa(a,e,c)&&(d=f)}return d};
g.gwa=function(a,b){b=void 0===b?!1:b;return PL()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(QK(),"application/x-mpegURL")?!0:!1};
iwa=function(a){hwa(function(){for(var b=g.u(Object.keys(kI)),c=b.next();!c.done;c=b.next())jI(a,kI[c.value])})};
jI=function(a,b){b.name in a.K||(a.K[b.name]=jwa(a,b));return a.K[b.name]};
jwa=function(a,b){if(a.D)return!!a.D[b.name];if(b===kI.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===kI.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.An);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.An)};
kwa=function(a){a.B||(a.B=!0,a.j=!0)};
lwa=function(a,b){var c=0;a.u.has(b)&&(c=a.u.get(b).E4);a.u.set(b,{E4:c+1,SY:Math.pow(2,c+1)});a.j=!0};
Nsa=function(a,b,c){var d;c=(null==(d=c.video)?void 0:d.fps)||0;return a.C.has(b+"_"+c)};
Osa=function(a,b,c){var d,e=(null==(d=c.video)?void 0:d.fps)||0;d=b+"_"+e;if(!a.C.has(d)){var f=!!c.audio;b={itag:c.itag,yb: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,jI(a,kI.BITRATE)&&(b.lw=8*c.Wb),b.QN=null==f?void 0:f.isHdr());a.C.set(d,b)}};
mwa=function(){var a=this;this.queue=[];this.C=0;this.j=this.u=!1;this.B=function(){a.u=!1;a.nf()}};
nwa=function(a){a.j||(hwa(function(){a.nf()}),a.j=!0)};
QL=function(){g.SG.call(this);this.items={}};
RL=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
XL=function(a){g.G.call(this);this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.j=16;if(!owa){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);SL=new Uint8Array(256);TL=RL(256);UL=RL(256);VL=RL(256);WL=RL(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;SL[f]=e;b=e<<1^(e>>7&&283);var h=b^e;TL[f]=b<<24|e<<16|e<<8|h;UL[f]=h<<24|TL[f]>>>8;VL[f]=e<<24|UL[f]>>>8;WL[f]=e<<24|VL[f]>>>8}owa=!0}e=RL(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=(SL[a>>16&255]^d)<<24|SL[a>>8&255]<<16|SL[a&255]<<8|SL[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
pwa=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=TL[c>>>24]^UL[d>>16&255]^VL[e>>8&255]^WL[f&255]^b[n++],l=TL[d>>>24]^UL[e>>16&255]^VL[f>>8&255]^WL[c&255]^b[n++],m=TL[e>>>24]^UL[f>>16&255]^VL[c>>8&255]^WL[d&255]^b[n++],f=TL[f>>>24]^UL[c>>16&255]^VL[d>>8&255]^WL[e&255]^b[n++],c=h,d=l,e=m;a=a.u;h=b[40];a[0]=SL[c>>>24]^h>>>24;a[1]=SL[d>>16&255]^h>>16&255;a[2]=SL[e>>8&255]^
h>>8&255;a[3]=SL[f&255]^h&255;h=b[41];a[4]=SL[d>>>24]^h>>>24;a[5]=SL[e>>16&255]^h>>16&255;a[6]=SL[f>>8&255]^h>>8&255;a[7]=SL[c&255]^h&255;h=b[42];a[8]=SL[e>>>24]^h>>>24;a[9]=SL[f>>16&255]^h>>16&255;a[10]=SL[c>>8&255]^h>>8&255;a[11]=SL[d&255]^h&255;h=b[43];a[12]=SL[f>>>24]^h>>>24;a[13]=SL[c>>16&255]^h>>16&255;a[14]=SL[d>>8&255]^h>>8&255;a[15]=SL[e&255]^h&255};
ZL=function(){if(!qwa&&!g.NC){if(YL)return YL;var a;YL=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=YL)?0:b.importKey)&&(null==(c=YL)?0:c.sign)&&(null==(d=YL)?0:d.encrypt))return YL;YL=void 0}};
rwa=function(a){if(!$L.isActive())return a.exports.AES128CTRCipher_encrypt.bind(a.exports);var b=a.j?"oals":"oalw";return function(c,d,e){$L.ql(b,function(){a.exports.AES128CTRCipher_encrypt(c,d,e)},e/16)}};
aM=function(a,b){g.G.call(this);var c=this;this.j=a;this.u=rwa(this.j);this.cipher=this.j.exports.AES128CTRCipher_create(b.byteOffset);g.tb(this,function(){c.j.exports.AES128CTRCipher_release(c.cipher)})};
g.bM=function(a){this.C=a};
g.cM=function(a){g.G.call(this);this.u=a};
dM=function(a,b){g.G.call(this);this.j=a;this.C=b};
swa=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.J=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()};
twa=function(a,b,c){for(var d=a.K,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],t,v,y,A=0;64>A;)16>A?(d[A]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[A-2],v=d[A-15],y=d[A-7]+d[A-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3),d[A]=y),t=q+eM[A]+y+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),v=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=t+v,l+=t,A++,16>A?(d[A]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=
d[A-2],v=d[A-15],y=d[A-7]+d[A-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3),d[A]=y),t=p+eM[A]+y+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),v=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=t+v,h+=t,A++,16>A?(d[A]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[A-2],v=d[A-15],y=d[A-7]+d[A-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3),d[A]=y),t=n+eM[A]+y+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^
~h&m),v=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=t+v,f+=t,A++,16>A?(d[A]=y=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(t=d[A-2],v=d[A-15],y=d[A-7]+d[A-16]+((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+((v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3),d[A]=y),t=m+eM[A]+y+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),v=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),y=q,q=l,l=y,y=p,p=h,h=y,y=n,n=f,f=y,m=e+t,e=t+v,A++;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};
vwa=function(a){var b=new Uint8Array(32),c=64-a.u;55<a.u&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.C,f=1;9>f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.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;uwa(a);return b};
uwa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.K=[];a.K.length=64;a.C=0;a.u=0};
wwa=function(a){this.j=a};
xwa=function(a,b,c){a=new swa(a.j);a.update(b);a.update(c);b=vwa(a);a.update(a.D);a.update(b);b=vwa(a);a.reset();return b};
ywa=function(a){this.u=a};
zwa=function(a,b,c,d){var e,f,h;return g.Ha(function(l){switch(l.j){case 1:if(a.j){l.Ka(2);break}return g.z(l,d.importKey("raw",a.u,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:a.j=l.u;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.u,l.return(new Uint8Array(h))}})};
Awa=function(a,b,c){a.B||(a.B=new wwa(a.u));return xwa(a.B,b,c)};
Bwa=function(a,b,c){var d,e;return g.Ha(function(f){if(1==f.j){d=ZL();if(!d)return f.return(Awa(a,b,c));g.ya(f,3);return g.z(f,zwa(a,b,c,d),5)}if(3!=f.j)return f.return(f.u);e=g.Aa(f);g.tG(e);qwa=!0;return f.return(Awa(a,b,c))})};
fM=function(){g.bM.apply(this,arguments)};
gM=function(){g.cM.apply(this,arguments)};
hM=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)}dM.call(this,a,c||b);this.u=new Set;c&&this.u.add(c.byteOffset)};
Cwa=function(a,b,c){this.encryptedClientKey=b;this.D=c;this.j=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
Dwa=function(a){a.u||(a.u=new fM(a.j));return a.u};
iM=function(a){try{return ig(a)}catch(b){return null}};
Ewa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?iM(b.clientKey):null;var c=b.encryptedClientKey?iM(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.mC)():null;a&&c&&d&&(this.j=new Cwa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=iM(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
jM=function(a){this.j=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)};
kM=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.u=0;this.B=!1;this.D=!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.J=Fwa(this);this.C=c;this.K=d};
Fwa=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
lM=function(a,b){if(!a.B&&0===a.u)return 0;a.D&&(g.Vb(a.J,function(c,d){return a.values[c]-a.values[d]}),a.D=!1);
return a.values[a.J[Math.round(b*((a.B?a.j:a.u)-1))]]||0};
Gwa=function(a){var b=new $va;this.policy=a;this.ea=b;this.K=this.Ba=0;this.C=-1;this.D=!1;this.qa=this.J=(0,g.mC)();this.oa=new kM(4,1,.6,.4);this.u=new kM(10,1,.5,.4);this.j=a.D?new jM(a.j):new kM(a.j,20,.5,.4);this.V=new kM(5,1,.25);this.B=new kM(30,1,.5);a=g.sB("yt-player-bandwidth")||{};b=this.policy.u;0<a.byterate&&(b=a.byterate,this.D=!0);this.j.Rl(this.policy.J,b);0<a.delay&&this.oa.Rl(1,Math.min(a.delay,2));0<a.stall&&this.u.Rl(1,a.stall);0<a.init&&(this.qa=Math.min(a.init,this.qa));this.C=
(0,g.mC)()};
Hwa=function(a,b,c,d){a.j.Rl(void 0===d?b:d,c/b);a.J=(0,g.mC)()};
mM=function(a,b){a.oa.Rl(1,b);Iwa(a)};
nM=function(a,b,c,d,e){a.V.Rl(b,c/b);a.J=(0,g.mC)();e||a.B.Rl(1,b-d)};
oM=function(a,b,c){b=Math.max(b,2048);a.u.Rl(1,c/b);Iwa(a)};
pM=function(a){a=a.oa.pj();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
qM=function(a,b,c){isNaN(c)||(a.K+=c);isNaN(b)||(a.Ba+=b)};
Jwa=function(a){a=a.j.pj();return 0<a?a:1};
rM=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=Jwa(a);d=1/((a.u.pj()||0)*a.policy.C+1/d);var e=a.V.pj();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+pM(a);c=d*Math.min(1,c/(d*b));a.policy.B||(a=((lM(a.B,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
sM=function(a){return{delay:pM(a),stall:a.u.pj()||0,byterate:Jwa(a),init:a.qa}};
Iwa=function(a){-1<a.C&&3E4<(0,g.mC)()-a.C&&(uva(sM(a)),a.C=(0,g.mC)(),a.D=!0)};
Kwa=function(a){return 4E3<=(0,g.mC)()-a.J};
Lwa=function(){this.j=17;this.C=1;this.u=13E4;this.J=.5;this.B=this.D=!1};
Nwa=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.G.call(this);var c=this;this.values=a;this.Iq=b;this.u={};this.B=this.j=0;this.C=new g.Kq(function(){Mwa(c)},1E4);
g.H(this,this.C)};
Pwa=function(a,b){Owa(a,b);return a.values[b]&&a.Iq[b]?a.values[b]/Math.pow(2,a.j/a.Iq[b]):0};
Owa=function(a,b){a.values[b]||(b=wva(),a.values=b.values||{},a.Iq=b.halfLives||{},a.u=b.values?Object.assign({},b.values):{})};
Mwa=function(a){var b=wva();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.u[e]&&(a.values[e]+=b[e]-a.u[e]),c[e]=Pwa(a,e);a.u=c}b=a.Iq;c={};c.values=a.u;c.halfLives=b;g.rB("yt-player-memory",c,2592E3)};
tM=function(){var a=this;this.IY=this.PY=qaa;this.promise=new g.Nf(function(b,c){a.PY=b;a.IY=c})};
cxa=function(a,b,c,d){g.G.call(this);this.webPlayerContextConfig=b;this.Jl=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.jk=this.Ke=this.wb=this.sj=this.userDisplayName=this.userDisplayImage=this.Ri="";this.j={};this.controlsType="0";this.xd=NaN;this.Zb=!1;this.og=(0,g.mC)();this.Qc=0;this.Kl=this.Eo=!1;this.Lm=!0;this.preferGapless=this.embedsEnableRcat=this.jg=this.B=this.Il=this.Xf=!1;a=a?g.md(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 awa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:OA("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)?b.cspNonce:OA("",a.csp_nonce);this.N("web_player_deprecated_uvr_killswitch");try{var e=document.location.toString()}catch(E){e=""}this.If=e;this.ancestorOrigins=(d=window.location.ancestorOrigins)?
Array.from(d):[];this.C=LA(!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.C||Qwa(this)&&b.loaderUrl?b.loaderUrl||"":this.If:this.C||Qwa(this)&&a.loaderUrl?OA("",a.loaderUrl):this.If;this.C&&g.Qa("yt.embedded_player.embed_url",this.loaderUrl);this.J=HG(this.loaderUrl,Rwa);d=this.loaderUrl;var f=void 0===f?!1:f;this.No=GG(HG(d,Swa),d,f,"Trusted Ad Domain URL");this.od=LA(!1,a.privembed);this.protocol=0===this.If.indexOf("http:")?"http":
"https";this.Oa=IG((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||IG(this.If)||this.protocol+"://www.youtube.com/";f=b?b.eventLabel:a.el;d="detailpage";"adunit"===f?d=this.C?"embedded":"detailpage":"embedded"===f||this.J?d=MA(d,f,Twa):f&&(d="embedded");this.Fa=d;fqa();f=null;d=b?b.playerStyle:a.ps;e=g.Fb(Uwa,d);!d||e&&!this.J||(f=d);this.playerStyle=f;this.Ba=(this.K=g.Fb(Uwa,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Mo=!this.Ba;this.Va=LA(!1,a.disableplaybackui);
this.disablePaidContentOverlay=LA(!1,null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=LA(!1,null==b?void 0:b.disableSeek);this.Vf=this.N("variable_playback_rate")?!0:QK().defaultPlaybackRate?uM||g.HA||vM?g.HL&&mr("20")||g.SK&&mr("4")||g.wM&&mr("11")||DA():!(g.wM&&!g.xA("chrome")||uM||g.xA("android")||g.xA("silk")):!1;this.Ho=LA(!1,a.enable_faster_speeds);this.u=LA("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.Eb=GA()||IA();this.Lo=this.u&&!this.K;this.eb=
Bua();this.tp=g.Vwa;this.Ll=LA(!1,b?b.embedOptOutDeprecation:a.opt_out_deprecation);this.oa=!(!b||!b.embedsEnablePfpImaIntegration);this.Jo=this.N("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var h;b?void 0!==b.hideInfo&&(h=!b.hideInfo):h=a.showinfo;this.Im=g.xM(this)&&!this.Ll||LA(!yM(this)&&!zM(this)&&!this.K,h);this.Ml=b?!!b.mobileIphoneSupportsInlinePlayback:LA(!1,a.playsinline);h=this.u&&Wwa&&null!=AM&&0<AM&&2.3>=AM;f=b?b.useNativeControls:a.use_native_controls;this.V=g.xM(this)&&
this.u;d=this.u&&!this.V;f=g.BM(this)||!h&&LA(d,f)?"3":"1";d=b?b.controlsType:a.controls;this.controlsType="0"!==d&&0!==d?f:"0";this.Pi=this.u;this.color=MA("red",b?b.progressBarColor:a.color,Xwa);this.Qo="3"===this.controlsType||LA(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.md=!this.C;this.Km=(f=!this.md&&!zM(this)&&!this.Ba&&!this.K&&!yM(this))&&!this.Qo&&"1"===this.controlsType;this.Wd=g.CM(this)&&f&&"0"===this.controlsType&&!this.Km;this.Br=this.Yo=h;this.Fd=("3"===
this.controlsType||this.u||LA(!1,a.use_media_volume))&&!this.V;this.Mm=EA&&!g.Nc(601)?!1:!0;this.Ko=this.C||!1;this.pd=zM(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=OA("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.J||LA(!0,l);h=!0;b&&b.disableMdxCast&&(h=!1);this.wk=this.N("enable_cast_for_web_unplugged")&&g.DM(this)&&h||this.N("enable_cast_on_music_web")&&g.EM(this)&&h||l&&h&&"1"===this.controlsType&&
!this.u&&(zM(this)||g.CM(this)||"profilepage"===this.Fa)&&!g.FM(this);this.Ep=!!window.document.pictureInPictureEnabled||Aua();l=b?!!b.supportsAutoplayOverride:LA(!1,a.autoplayoverride);this.Ji=!(this.u&&!g.xM(this))&&!g.xA("nintendo wiiu")||l;l=b?!!b.enableMutedAutoplay:LA(!1,a.mutedautoplay);this.Cp=this.N("embeds_enable_muted_autoplay")&&g.xM(this);this.Li=l&&!1;l=(zM(this)||yM(this))&&"blazer"===this.playerStyle;this.xk=b?!!b.disableFullscreen:!LA(!0,a.fs);h=g.SA(g.GM(this))&&g.xM(this);this.xc=
!this.xk&&(l||g.$A())&&!h;this.Em=this.N("uniplayer_block_pip")&&(yA()&&mr(58)&&!IA()||MC);l=g.xM(this)&&!this.Ll;var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.Qd=l||LA(!this.K,m);this.Hm=LA(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.ea=IA()&&0<AM&&4.4>=AM?"_top":"_blank";this.Gh="profilepage"===this.Fa;this.Gl=LA("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":m="bl";break;case "gmail":m="gm";break;
case "gac":m="ga";break;case "books":m="gb";break;case "docs":m="gd";break;case "duo":m="gu";break;case "google-live":m="gl";break;case "google-one":m="go";break;case "play":m="gp";break;case "chat":m="hc";break;case "hangouts-meet":m="hm";break;case "photos-edu":case "picasaweb":m="pw";break;default:m="yt"}this.Ga=m;this.qa=OA("",b?b.authorizedUserIndex:a.authuser);this.kd=g.xM(this)&&(this.od||!Lma()||this.Eb);var n;b?void 0!==b.disableWatchLater&&(n=!b.disableWatchLater):n=a.showwatchlater;this.hc=
((m=!this.kd)||!!this.qa&&m)&&LA(!this.Ba,this.J?n:void 0);this.Ve=b?b.isMobileDevice||!!b.disableKeyboardControls:LA(!1,a.disablekb);this.loop=LA(!1,a.loop);this.pageId=OA("",b?b.initialDelegatedSessionId:a.pageid);this.Ap=LA(!0,a.canplaylive);this.rb=LA(!1,a.livemonitor);this.disableSharing=LA(this.K,b?b.disableSharing:a.ss);(n=b&&this.N("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(m=n.split("x"),2!==m.length?n=null:(n=Number(m[0]),m=Number(m[1]),
n=isNaN(n)||isNaN(m)||0>=n*m?null:new g.xe(n,m))):n=null;this.Nm=n;this.mute=b?!!b.startMuted:LA(!1,a.mute);this.storeUserVolume=!this.mute&&LA("0"!==this.controlsType,b?b.storeUserVolume:a.store_user_volume);n=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:MA(void 0,n,HM);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":OA("",a.cc_lang_pref);n=MA(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,HM);"3"===this.controlsType&&2===n&&
(n=3);this.Ec=n;this.nj=b?b.hl||"en_US":OA("en_US",a.hl);this.region=b?b.contentRegion||"US":OA("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":OA("en",a.host_language);this.Fo=!this.od&&Math.random()<g.xL(this.experiments,"web_player_api_logging_fraction");this.kb=!this.od;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.xd=NA(this.xd,a.ismb);this.Mo?(n=a.vss_host||"s.youtube.com","s.youtube.com"===n&&(n=Ywa(this.Oa)||"www.youtube.com")):n="video.google.com";
this.Om=n;Zwa(this,a,!0);this.Ma=new QL;g.H(this,this.Ma);m=b?b.innertubeApiKey:OA("",a.innertube_api_key);l=b?b.innertubeApiVersion:OA("",a.innertube_api_version);n=b?b.innertubeContextClientVersion:OA("",a.innertube_context_client_version);m=g.Fz("INNERTUBE_API_KEY")||m;l=g.Fz("INNERTUBE_API_VERSION")||l;h=g.Fz("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");f=g.NL(this);d="number"===typeof this.j.c?Number(this.j.c):Object.keys($wa).indexOf(this.j.c);this.Dk={innertubeApiKey:m,innertubeApiVersion:l,uH:h,
HN:f,lW:d,innertubeContextClientVersion:g.Fz("INNERTUBE_CONTEXT_CLIENT_VERSION")||n,JN:this.hostLanguage,IN:this.region,mW:g.Fz("INNERTUBE_HOST_OVERRIDE")||"",nW:!!g.Fz("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),KN:!!g.Fz("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Nl=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.D=new ewa(this.experiments,this.N("html5_force_hfr_support")?!0:IM(this)||BA()||Pma()||axa(this),g.SK&&g.Nc(56)||g.HL&&g.Nc(54)||this.N("html5_force_vp9_subsample_encryption_support")||
axa(this));n=this.xd;m=this.experiments;l=new Lwa;g.JM(this)&&(l.D=!0,l.J=.1);n&&(l.u=n/8);l.C=g.xL(m,"html5_stall_factor")||l.C;l.B=480<=uL();this.schedule=new Gwa(l);var p;this.enableSafetyMode=null!=(p=null==b?void 0:b.initialEnableSafetyMode)?p:LA(!1,a.enable_safety_mode);p=this.Va?!1:zM(this)&&"blazer"!==this.playerStyle;var q;b?null!=b.disableAutonav&&(q=!b.disableAutonav):q=a.allow_autonav;this.Je=LA(p,!this.Ba&&q);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:LA(!1,a.send_visitor_id_header);
var t;"docs"===this.playerStyle&&(b?t=b.disableNativeContextMenu:t=a.disable_native_context_menu);this.disableNativeContextMenu=LA(!1,t);this.Io=IM(this)&&this.N("enable_skip_intro_button");this.embedConfig=OA("",b?b.serializedEmbedConfig:a.embed_config);this.Ya=RA(a,g.xM(this));this.B="EMBEDDED_PLAYER_MODE_PFL"===this.Ya;this.embedsErrorLinks=!(null==b||!b.embedsErrorLinks);this.yk=LA(!1,a.full_window);this.eh=!g.DM(this)&&!KM(this)&&!g.FM(this)&&!0;var v;this.livingRoomAppMode=MA("LIVING_ROOM_APP_MODE_UNSPECIFIED",
a.living_room_app_mode||(null==b?void 0:null==(v=b.device)?void 0:v.livingRoomAppMode),bxa);var y;q=NA(NaN,null==b?void 0:null==(y=b.device)?void 0:y.deviceYear);isNaN(q)||(this.deviceYear=q);this.transparentBackground=b?!!b.transparentBackground:LA(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:LA(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:LA(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:
LA(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.Gm=LA(!1,a.showbackbutton);var A;this.Lm=null!=(A=a.show_loop_video_toggle)?A:!0;this.Po=1E-4>Math.random();this.Cl=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new Ewa(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.Wf=new Nwa;g.H(this,this.Wf);this.Il=LA(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||
g.Fz("DATASYNC_ID");this.Oo=g.Fz("LOGGED_IN",!1);this.xj=(null==b?void 0:b.allowWoffleManagement)||!1;this.Dm=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.N("html5_high_res_logging_always")?this.jg=!0:this.jg=100*Math.random()<(g.xL(this.experiments,"html5_unrestricted_layer_high_res_logging_percent")||g.xL(this.experiments,"html5_high_res_logging_percent"));this.N("html5_ping_queue")&&(this.Fl=new mwa);this.embedsEnableRcat=!(null==b||!b.embedsEnableRcat)};
g.GM=function(a){var b;if(null==(b=a.webPlayerContextConfig)||!b.embedsEnableLiteUx||a.od||a.K||a.B||"EMBEDDED_PLAYER_MODE_PFP"===a.Ya)return"EMBEDDED_PLAYER_LITE_MODE_NONE";a=g.xL(a.experiments,"embeds_web_lite_mode");return void 0===a?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":0<=a&&a<dxa.length?dxa[a]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
Zwa=function(a,b,c){c=void 0===c?!1:c;a.Ke=OA(a.Ke,b.video_id);a.wb=OA(a.wb,b.eventid);a.wb&&(yG=a.wb);for(var d=[],e=g.u(Object.keys(exa)),f=e.next();!f.done;f=e.next()){f=exa[f.value];var h=b[f];null!=h&&(h!==a.j[f]&&d.push(f),a.j[f]=h)}!c&&0<d.length&&a.Po&&(d.sort(),g.tG(new g.EB("Player client parameters changed after startup",d)));a.userAge=NA(a.userAge,b.user_age);a.Ri=OA(a.Ri,b.user_display_email);a.userDisplayImage=OA(a.userDisplayImage,b.user_display_image);g.KG(a.userDisplayImage)||(a.userDisplayImage=
"");a.userDisplayName=OA(a.userDisplayName,b.user_display_name);a.sj=OA(a.sj,b.user_gender);a.csiPageType=OA(a.csiPageType,b.csi_page_type);a.csiServiceName=OA(a.csiServiceName,b.csi_service_name);a.Gl=LA(a.Gl,b.enablecsi);a.pageId=OA(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.pg=b.living_room_session_po_token.toString())};
fxa=function(a,b){return!a.K&&yA()&&mr(55)&&"3"===a.controlsType&&!b};
g.LM=function(a){a=Ywa(a.Oa);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.MM=function(a){return g.FM(a)?"music.youtube.com":g.LM(a)};
NM=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
OM=function(a){return zM(a)&&!g.DM(a)};
g.BM=function(a){return a.N("html5_local_playsinline")?EA&&!g.Nc(602)&&!("playsInline"in QK()):EA&&!a.Ml||g.xA("nintendo wiiu")?!0:!1};
g.FM=function(a){return"music-embed"===a.playerStyle};
g.NL=function(a){return a.j.c};
g.JM=function(a){return/^TVHTML5/.test(g.NL(a))?!0:"TV"===a.j.cplatform};
Qwa=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===g.NL(a)};
axa=function(a){return"CHROMECAST ULTRA/STEAK"===a.j.cmodel||"CHROMECAST/STEAK"===a.j.cmodel};
g.PM=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
IM=function(a){return/web/i.test(g.NL(a))};
g.QM=function(a){return"WEB"===g.NL(a).toUpperCase()};
KM=function(a){return"WEB_KIDS"===g.NL(a)};
g.DM=function(a){return"WEB_UNPLUGGED"===g.NL(a)};
RM=function(a){return"TVHTML5_UNPLUGGED"===g.NL(a)};
g.SM=function(a){return g.DM(a)||"TV_UNPLUGGED_CAST"===g.NL(a)||RM(a)};
g.EM=function(a){return"WEB_REMIX"===g.NL(a)};
g.TM=function(a){return"WEB_EMBEDDED_PLAYER"===g.NL(a)};
g.VM=function(a){return(a.deviceIsAudioOnly||!g.SK||MC||"3"===a.controlsType?!1:g.HA?a.C&&g.Nc(51):!0)||(a.deviceIsAudioOnly||!g.HL||MC||"3"===a.controlsType?!1:g.HA?a.C&&g.Nc(48):g.Nc(38))||(a.deviceIsAudioOnly||!g.wM||MC||"3"===a.controlsType?!1:g.HA?a.C&&g.Nc(37):g.Nc(27))||!a.deviceIsAudioOnly&&g.UM&&!Rma()&&g.Nc(11)||!a.deviceIsAudioOnly&&g.dC&&g.Nc("604.4")};
gxa=function(a){if(g.CM(a)&&Wwa)return!1;if(g.HL){if(!g.Nc(47)||!g.Nc(52)&&g.Nc(51))return!1}else if(g.dC)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
WM=function(a){return!a.N("html5_disable_media_element_loop_on_tv")||!g.JM(a)};
zM=function(a){return"detailpage"===a.Fa};
g.CM=function(a){return"embedded"===a.Fa};
XM=function(a){return"leanback"===a.Fa};
yM=function(a){return"adunit"===a.Fa||"gvn"===a.playerStyle};
g.xM=function(a){return a.C&&g.CM(a)&&!yM(a)&&!a.K};
hxa=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.tG(new g.EB("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.YM=function(a){var b=g.MM(a);ixa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.ZM=function(a,b){b=void 0===b?"":b;if(a.N("enable_tectonic_player_oauth_callback")&&a.Jl){var c=new tM,d,e=a.Jl();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.tG(new g.EB("b189348328_oauth_callback_failed",{error:f}));
c.resolve(b)});
return void 0!==d?oA(d):new mA(c)}return oA(b)};
Ywa=function(a){var b=g.Sj(a);return(a=Number(g.Rj(4,a))||null)?b+":"+a:b};
$M=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(";")};
aN=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
bN=function(a){return 1===a||2===a};
cN=function(a,b){b=void 0===b?0:b;if(a instanceof aN)return a;a=a&&a instanceof Error?a:Error(""+a);bN(b)?g.sG(a):g.tG(a);return new aN(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
dN=function(a){this.j=a};
eN=function(a,b,c){if(c)return nA();c={};var d=QK();b=g.u(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(d,e.Kh().mimeType)){var f=e.j.video.quality;if(!c[f]||c[f].Kh().Ye())c[f]=e}a=[];c.auto&&a.push(c.auto);d=g.u(EK);for(b=d.next();!b.done;b=d.next())(b=c[b.value])&&a.push(b);return a.length?oA(a):nA()};
jxa=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.J=e;this.C=0;this.j=""};
kxa=function(a,b){a.B.some(function(c){var d;return(null==(d=c.Nc)?void 0:d.getId())===b});
a.j=b};
lxa=function(a,b,c){a.cpn&&(b=g.Yj(b,{cpn:a.cpn}));c&&(b=g.Yj(b,{Ocb:c}));return b};
mxa=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
nxa=function(a){for(var b=[],c=[],d=g.u(a.u),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.C?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate});
c.sort(function(f,h){return f.bitrate-h.bitrate});
a.u=b.concat(c)};
oxa=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.u=(null==(b=a.audioItag)?void 0:b.split(","))||[];this.XA=a.XA;this.me=a.me||"";this.Nc=a.Nc;this.audioChannels=a.audioChannels;this.j=""};
pxa=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.OK(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new oxa({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,XA:n?l[n]:void 0,me:f.drm_families,Nc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
fN=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.u=null};
qxa=function(a,b){if(!(MC||CA()||AA()))return null;a=pxa(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.Nc&&(f=h.Nc.getId(),c[f]||(h=new g.UH(f,h.Nc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
vxa=function(a,b,c,d,e,f,h){if(!(MC||CA()||AA()))return nA();var l={},m=rxa(c),n=pxa(c,a.N("html5_filter_fmp4_in_hls"),a.D.J,l);if(!n)return h({noplst:1}),nA();sxa(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var t=[],v=[],y=null,A="";d=d&&d.match(/hls_timedtext_playlist/)?new oxa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Nc:new g.OK("English","en",!1)}):null;for(var E=g.u(Object.keys(n)),K=E.next();!K.done;K=E.next())if(K=K.value,!a.N("html5_disable_drm_hfr_1080")||
"383"!==K&&"373"!==K){K=g.u(n[K]);for(var I=K.next();!I.done;I=K.next())if(I=I.value,I.width){for(var F=g.u(I.u),S=F.next();!S.done;S=F.next())if(S=S.value,n[S]){I.j=S;break}I.j||(I.j=txa(n,I));if(F=n[I.j])if(c.push(I),"fairplay"===I.me&&(q=p),S="","PQ"===I.XA?S="smpte2084":"HLG"===I.XA&&(S="arib-std-b67"),S&&(A=S),v.push(uxa(F,[I],d,f,I.itag,I.width,I.height,I.fps,m,void 0,void 0,q,S)),!y||I.width*I.height*I.fps>y.width*y.height*y.fps)y=I}else t.push(I)}else l[K]="disdrmhfr";v.reduce(function(Y,
ia){return ia.Kh().isEncrypted()&&Y},!0)&&(q=p);
e=Math.max(e,0);p=y||{};n=void 0===p.fps?0:p.fps;y=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;E=a.N("html5_native_audio_track_switching");v.push(uxa(t,c,d,f,"93",y,p,n,m,"auto",e,q,A,E));Object.entries(l).length&&h(l);return eN(a.D,v,fxa(a,b))};
uxa=function(a,b,c,d,e,f,h,l,m,n,p,q,t,v){for(var y=0,A="",E=g.u(a),K=E.next();!K.done;K=E.next())K=K.value,A||(A=K.itag),K.audioChannels&&K.audioChannels>y&&(y=K.audioChannels,A=K.itag);e=new HK(e,"application/x-mpegURL",{audio:new BK(0,y),video:new DK(f,h,l,null,void 0,n,void 0,t),me:q,iX:A});a=new jxa(a,b,c?[c]:[],d,!!v);a.C=p?p:1369843;return new fN(e,a,m)};
rxa=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};
txa=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.me===b.me&&!e.audioChannels)return d}return""};
sxa=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]};
gN=function(a,b){this.j=a;this.u=b};
wxa=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.pI(h.url,!0);if(h.s){var l=h.sp,m=Usa(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=NK(h.type,h.quality,h.itag,h.width,h.height);e.push(new gN(h,f))}}return eN(a.D,e,fxa(a,b))};
hN=function(a,b){this.j=a;this.u=b};
xxa=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=NK(e.type,"medium","0");d.push(new hN(f,e.url))}return eN(a.D,d,fxa(a,b))};
yxa=function(a,b){var c=[],d=NK(b.type,"auto",b.itag);c.push(new hN(d,b.url));return eN(a.D,c,!1)};
Axa=function(a){return a&&zxa[a]?zxa[a]:null};
Bxa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.qo=iM(a.ustreamerConfig)||void 0)};
Cxa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.hY=new Bxa(b)};
g.iN=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.kN=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.jN(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.lN=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.Dxa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.lN(a));return b};
g.jN=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Legendas autom\u00e1ticas)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")};
Hxa=function(a,b,c,d){a||(a=b&&Exa.hasOwnProperty(b)&&Fxa.hasOwnProperty(b)?Fxa[b]+"_"+Exa[b]:void 0);b=a;if(!b)return null;a=b.match(Gxa);if(!a||5!==a.length)return null;if(a=b.match(Gxa)){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};
mN=function(a,b){for(var c={},d=g.u(Object.keys(Ixa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.KG(f)&&(c[Ixa[e]]=f)}return c};
nN=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(Jxa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=Jxa[e];for(var f=g.u(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=Kxa(h.url);g.KG(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=Kxa(a.url),g.KG(a)&&(b["maxresdefault.jpg"]=a));return b};
Kxa=function(a){return a.startsWith("//")?"https:"+a:a};
oN=function(a){return a&&a.baseUrl||""};
pN=function(a){a=g.Tz(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};
Lxa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.Nk=b)};
Nxa=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.u(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=Mxa(d.baseUrl);if(!e)return;d=new g.iN({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.VG(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.OL=b.audioTracks||[];a.iU=b.defaultAudioTrackIndex||0;a.PL=b.translationLanguages?g.kn(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.VG(f.languageName)}}):
[];
a.GY=[];if(b.recommendedTranslationTargetIndices)for(c=g.u(b.recommendedTranslationTargetIndices),d=c.next();!d.done;d=c.next())a.GY.push(d.value);a.gG=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
Qxa=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.Q(h,Oxa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.Q(h,Pxa))return Object.assign({is_yto_interstitial:!0},Rz(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,jo:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,jo: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,
jo:0===f?5:7})}}};
Rxa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
Sxa=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)};
Txa=function(a,b){null!=b?(a.Xl=b,a.Dd=!0):(a.Xl="",a.Dd=!1)};
qN=function(){var a=Uxa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=$la.apply(null,[ama.apply(null,g.qa(b))].concat(g.qa(c)));this.store=cma(a,void 0,b)};
g.Vxa=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.qa(h),g.qa(l)):l;else if(!Array.isArray(l)&&g.Xa(l)&&!Array.isArray(h)&&g.Xa(h))d[f]=g.Vxa(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.EB("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,Ncb:h,updateValue:l}),
g.sG(b),a}return d};
rN=function(a){this.j=a;this.pos=0;this.u=-1};
sN=function(a){var b=DI(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=DI(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
tN=function(a,b){var c=a.u;for(a.u=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=sN(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.u=c;break}c=-1;switch(e){case 0:sN(a);break;case 1:a.pos+=8;break;case 2:d=sN(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
uN=function(a,b){if(tN(a,b))return sN(a)};
Wxa=function(a,b){if(tN(a,b))return!!sN(a)};
vN=function(a,b){if(tN(a,b)){b=sN(a);var c=CI(a.j,a.pos,b);a.pos+=b;return c}};
wN=function(a,b){if(a=vN(a,b))return g.II(a)};
xN=function(a,b,c){if(a=vN(a,b))return c(new rN(new xI([a])))};
yN=function(a,b){for(var c=[];tN(a,b);)c.push(sN(a));return c.length?c:void 0};
zN=function(a,b,c){for(var d=[],e;e=vN(a,b);)d.push(c(new rN(new xI([e]))));return d.length?d:void 0};
AN=function(a,b){a=a instanceof Uint8Array?new xI([a]):a;return b(new rN(a))};
Xxa=function(a,b){a=void 0===a?4096:a;this.u=b;this.pos=0;this.B=[];b=void 0;if(this.u)try{var c=this.u.exports.malloc(a);b=new Uint8Array(this.u.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)};
BN=function(a,b){var c=a.pos+b;if(!(a.j.length>=c)){for(b=2*a.j.length;b<c;)b*=2;a.u?(c=a.u.exports.realloc(a.j.byteOffset,b),a.j=new Uint8Array(a.u.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)}};
CN=function(a,b){if(268435455<b){BN(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(BN(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};
DN=function(a,b,c){void 0!==c&&(CN(a,8*b),CN(a,c))};
EN=function(a,b,c){void 0!==c&&DN(a,b,c?1:0)};
FN=function(a,b,c){void 0!==c&&(CN(a,8*b+2),b=c.length,CN(a,b),BN(a,b),a.j.set(c,a.pos),a.pos+=b)};
GN=function(a,b,c){void 0!==c&&(Yxa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),BN(a,1.2*c.length),b=KI(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(BN(a,b),b=KI(c,a.j.subarray(a.pos))),a.pos+=b,Zxa(a))};
Yxa=function(a,b,c){c=void 0===c?2:c;CN(a,8*b+2);a.B.push(a.pos);a.B.push(c);a.pos+=c};
Zxa=function(a){for(var b=a.B.pop(),c=a.B.pop(),d=a.pos-c-b;b--;){var e=b?128:0;a.view.setUint8(c++,d&127|e);d>>=7}};
HN=function(a,b,c,d,e){c&&(Yxa(a,b,void 0===e?3:e),d(a,c),Zxa(a))};
$xa=function(a){a.u&&a.j.buffer!==a.u.exports.memory.buffer&&(a.j=new Uint8Array(a.u.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.IN=function(a,b,c){c=new Xxa(4096,c);b(c,a);return $xa(c)};
g.JN=function(a){var b=new rN(new xI([ig(decodeURIComponent(a))]));a=wN(b,2);b=uN(b,4);var c=aya[b];if("undefined"===typeof c)throw a=new g.EB("Failed to recognize field number",{name:"EntityKeyHelperError",Bbb:b}),g.sG(a),a;return{y4:b,entityType:c,entityId:a}};
g.KN=function(a,b){var c=new Xxa;FN(c,2,hta(a));a=bya[b];if("undefined"===typeof a)throw b=new g.EB("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.sG(b),b;DN(c,4,a);DN(c,5,1);b=$xa(c);return encodeURIComponent(g.gg(b))};
LN=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))};
cya=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.Vxa(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))};
dya=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.sG(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.sG(new g.EB("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.$c(e.payload);
return LN(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=g.JN(e).entityType;l=LN(d,m,e)}catch(q){if(q instanceof Error)g.sG(new g.EB("Failed to deserialize entity key",{entityKey:e,wP:q.message})),l=d;else throw q;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.sG(new g.EB("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.$c(e.payload);var n,p;return cya(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 LN(a,c.entityType,c.key,c.x4);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 LN(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,cya(a,c.entityType,c.key,c.x4,c.Kcb);default:return a}};
eya=function(a,b,c){return a[b]?a[b][c]||null:null};
MN=function(a,b){this.type=a||"";this.id=b||""};
g.fya=function(a){return new MN(a.substr(0,2),a.substr(2))};
g.NN=function(a,b){this.Ia=a;this.author="";this.lC=null;this.playlistLength=0;this.j=this.sessionData=null;this.V={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=Pz(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.V=mN(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new MN("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.fya(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.ON=function(a,b){this.Ia=a;this.Ds=this.author="";this.lC=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.ew=this.lengthText="";this.sessionData=null;this.V={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Ds=b.Ds||"";if(a=b.endscreen_autoplay_session_data)this.lC=Pz(a,"&");this.mC=b.mC;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=Pz(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.V=mN(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
gya=function(a){var b,c,d=null==(b=a.Ad)?void 0:null==(c=b.contents)?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=null==(e=a.Ad)?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.iya=function(a){var b,c,d;a=g.Q(null==(b=a.Ad)?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,PN);return g.Q(null==a?void 0:a.playerBar,hya)};
jya=function(a){this.j=a.playback_progress_0s_url;this.B=a.playback_progress_2s_url;this.u=a.playback_progress_10s_url};
lya=function(a,b){var c=g.Sa("ytDebugData.callbacks");c||(c={},g.Qa("ytDebugData.callbacks",c));if(g.Hz("web_dd_iu")||kya.includes(a))c[a]=b};
QN=function(a){this.j=new qr(a)};
mya=function(){if(void 0===RN){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.Qr(g.FB()+"::yt-player"))){RN=new QN(a);break a}RN=void 0}}return RN};
g.SN=function(){var a=mya();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.nya=function(a){var b=mya();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.TN=function(a){return g.SN()[a]||0};
g.UN=function(a,b){var c=g.SN();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.nya(c))};
g.VN=function(a){return g.Ha(function(b){return b.return(g.JC(oya(),a))})};
tya=function(a,b,c,d,e,f,h,l){var m,n,p,q,t,v;return g.Ha(function(y){switch(y.j){case 1:return m=g.TN(a),4===m?y.return(4):g.z(y,g.RC(),2);case 2:n=y.u;if(!n)throw g.fC("wiac");if(!l||void 0===h){y.Ka(3);break}return g.z(y,pya(l,h),4);case 4:h=y.u;case 3:return p=c.lastModified||"0",g.z(y,g.VN(n),5);case 5:return q=y.u,g.ya(y,6),WN++,g.z(y,g.qC(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",jc:!0},function(A){if(void 0!==f&&void 0!==h){var E=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10,
"0");E=g.rC(A.objectStore("media"),h,E)}else E=g.hC.resolve(void 0);var K=qya(a,b.lh()),I=qya(a,!b.lh()),F={fmts:rya(d),format:c||{}};K=g.rC(A.objectStore("index"),F,K);var S=-1===d.downloadedEndTime;F=S?A.objectStore("index").get(I):g.hC.resolve(void 0);var Y={fmts:"music",format:{}};A=S&&e&&!b.lh()?g.rC(A.objectStore("index"),Y,I):g.hC.resolve(void 0);return g.hC.all([A,F,E,K]).then(function(ia){ia=g.u(ia);ia.next();ia=ia.next().value;WN--;var ta=g.TN(a);if(4!==ta&&S&&e||void 0!==ia&&g.sya(ia.fmts))ta=
1,g.UN(a,ta);return ta})}),8);
case 8:return y.return(y.u);case 6:t=g.Aa(y);WN--;v=g.TN(a);if(4===v)return y.return(v);g.UN(a,4);throw t;}})};
g.uya=function(a){var b,c;return g.Ha(function(d){if(1==d.j)return g.z(d,g.RC(),2);if(3!=d.j){b=d.u;if(!b)throw g.fC("ri");return g.z(d,g.VN(b),3)}c=d.u;return d.return(g.qC(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:{}})})}))})};
xya=function(a,b,c,d,e){var f,h,l;return g.Ha(function(m){if(1==m.j)return g.z(m,g.RC(),2);if(3!=m.j){f=m.u;if(!f)throw g.fC("rc");return g.z(m,g.VN(f),3)}h=m.u;l=g.qC(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM",jc:vya},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 wya(e,n)}).catch(function(n){throw new g.EB("Error while reading chunk: "+n.name+", "+n.message);
})):m.return(l)})};
g.sya=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
qya=function(a,b){return""+a+"|"+(b?"v":"a")};
rya=function(a){var b={};return Qz((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
zya=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.yya)?(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};
XN=function(a){g.SG.call(this);this.j=null;this.B=new Ala;this.j=null;this.J=new Set;this.crossOrigin=a||""};
Aya=function(a,b,c){for(c=YN(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(ZN(d,b))&&(d=g.$N(d,b)))return d;c--}return g.$N(a.levels[0],b)};
Cya=function(a,b,c){c=YN(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=ZN(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.J.has(h)||(d.J.add(h),d.B.gi(f,{MW:f,gX:e}))}Bya(a)};
Bya=function(a){if(!a.j&&!a.B.isEmpty()){var b=a.B.remove();a.j=Dya(a,b)}};
Dya=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.MW].kf(b.gX);c.onload=function(){var d=b.MW,e=b.gX;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);Bya(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.LF()-1);e=[e,d];a.ra("l",e[0],e[1])};
return c};
g.aO=function(a,b,c,d){this.level=a;this.D=b;this.loaded=new Set;this.level=a;this.D=b;a=c.split("#");this.width=Math.floor(Number(a[0]));this.height=Math.floor(Number(a[1]));this.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.B=a[6];this.C=a[7];this.videoLength=d};
ZN=function(a,b){return Math.floor(b/(a.columns*a.rows))};
g.$N=function(a,b){b>=a.CK()&&a.Jx();var c=ZN(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Jx()+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.kf(c),column:b,columns:h,row:e,rows:d,zD:a.width*h,mw:a.height*d}};
bO=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;XN.call(this,c);this.isLive=d;this.K=!!e;this.levels=this.u(a,b);this.C=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
Eya=function(a,b,c){return(a=a.levels[b])?a.MF(c):-1};
YN=function(a,b){var c=a.C.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].width>=b)return a.C.set(b,d),d;a.C.set(b,c-1);return c-1};
Fya=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.aO.call(this,a,b,c,0);this.u=null;this.J=d?2:0};
cO=function(a,b,c,d){bO.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].DS(c)};
Gya=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Yj(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.eO=function(a,b){g.SG.call(this);this.Ia=a;this.adModule=!1;this.adaptiveFormats="";this.ZS=this.bB=this.adQueryId=this.aB=null;this.fF={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.me=null;this.SP=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.Br=void 0;this.rB=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Va="";this.oF=this.mx=!1;this.fX=null;this.Xf=this.xj=this.tp=this.cL=
!1;this.C=null;this.jT=this.xk=!1;this.Ri=NaN;this.Dm=!1;this.pE=0;this.mT=!1;this.ZJ=this.cycToken=null;this.author="";this.CD=0;this.Hm=!1;this.yD=null;this.dK=[];this.ov=this.nB=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.xc=this.Fd="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.ob=0;this.Ll=this.Ya=this.u=null;this.NK="";this.loading=!1;this.xd=this.Gm=0;this.cT=this.pipable=this.Op=this.isAutonav=!1;this.paidContentOverlayDurationMs=
0;this.isLiveHeadPlayable=this.isLivePlayback=this.rb=this.isPrivate=this.isListed=this.WK=this.Wf=this.mutedAutoplay=this.jl=!1;this.gL="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.ZK=this.kd=this.Re=!1;this.latencyClass="UNKNOWN";this.ET=this.zW=this.UK=this.eT=this.pB=this.enablePreroll=this.enableServerStitchedDai=this.Bf=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Zb=
0;this.reloadReason="";this.aL=this.NW=this.jg=!1;this.keywords={};this.wb="";this.Eo=0;this.ey=!1;this.liveChunkReadahead=NaN;this.Gl=null;this.Ww=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.FT=this.paygated=!1;this.wm=[];this.yk=!1;this.Fa=[];this.Oj=null;this.fT=this.racyCheckOk=!1;this.B_={};this.FE=0;this.B=null;this.autonavState=1;this.XT=null;this.shortDescription="";this.Oa=this.gR=!1;this.nj=this.Qc=this.startSeconds=0;this.gy=this.sT=this.Kl=dO;this.nx=this.suggestions=
null;this.Xw=this.ax=void 0;this.isExternallyHostedPodcast=!1;this.Jl=null;this.xR=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.multiMarkersPlayerBarRenderer=this.vT=void 0;this.suggestedActions=[];this.tx=void 0;this.Qd=[];this.jk=[];this.hlsFormats=this.If="";this.Qx=this.Zx=this.wk=this.od=this.eb=this.Jo=this.Px=null;this.Gk="vvt";this.og=!1;this.gK=null;this.tT="";this.Cp=NaN;this.Ep=this.qz=this.Yo=this.Xy=this.Ay=this.Ml=this.Qo=this.Ez=this.Ap=this.Dz="";this.Nl=
null;this.dT=!1;this.K={};this.clipStart=0;this.clipEnd=Infinity;this.GT=!1;this.heartbeatToken="";this.oU=this.aU=NaN;this.Ji=this.Om=this.eh=this.cW=this.GU=!1;this.Lo=!0;this.V={};this.captionTracks=[];this.OL=[];this.iU=0;this.PL=[];this.GY=[];this.gG=!1;this.zT={};this.Im=new g.UH("und",new g.OK("Default","und",!0));this.fL=0;this.D=null;this.Go=[];this.vB=!1;this.pg=[];this.iy=this.Ke="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.Ad=this.iL=this.PK=this.playerResponse=
this.CT=this.Ux=this.Lm=this.Ig=this.uB=this.nF=this.aF=null;this.wx=!1;this.oa=null;this.isInlinePlaybackNoAd=this.Dk=this.oB=this.useCobaltWidevine=this.kT=this.yz=!1;this.tB=!0;this.Je=this.Gh=NaN;this.defraggedFromSubfragments=this.ZC=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.sabrContextUpdates=[];this.DT=!1;this.gatewayExperimentGroup="";this.fE=this.eK=this.sj=!1;this.interstitials=[];this.Dd=this.XK=!1;this.Xl="";this.allowImaMonetization=!1;this.VY="";this.vR=!1;
this.Ho="";this.jL=[];this.Tc="";this.ea=this.CV=!1;this.Vf=0;this.EY=this.Po="";this.FM=this.kL=this.SK=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Mo=!1;this.Il=this.hc=!0;this.errorDetail=this.userGenderAge="";this.aK=this.cK=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Vm=this.errorReason=this.errorCode=null;this.sx=
this.qx="";this.Km=!1;this.Gw=[];this.pd=this.Eb=this.md=this.nh=this.bf=0;this.fetchType=null;this.C_=!0;this.transitionEndpointAtEndOfStream=void 0;this.qF=this.nT=-1;this.Em=this.Ve=!1;this.Cl=null;this.Ma="";this.Mm=!1;this.watchUrl=null;this.Sx=[];this.visibleOnLoadKeys=[];this.WS=[];this.inlineMetricEnabled=this.Fo=!1;this.embedsRctn=this.embedsRct="";this.QK=NaN;this.y_=(0,g.mC)();this.Oo=this.No=0;this.qo=null;this.Ve=this.N("web_new_autonav_countdown");this.Em=this.N("web_new_big_thumbnail_endscreen");
Hya(this,b);this.vx=new bI;g.H(this,this.vx)};
g.hO=function(a,b,c){b&&b.cpn&&g.tG(new g.EB("CPN provided in VideoData update",{Lcb:b.cpn,wg:a.clientPlaybackNonce,A5:c}));c?(QA(b),Hya(a,b),fO(a)&&gO(a)):(b=b||{},Iya(a,b),Jya(a,b),Kya(a,b),a.ra("dataupdated"))};
Kya=function(a,b){a.fflags=OA(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Va=LG(c));a.mx=LA(a.mx,b.iv_ads_only);a.oF=LA(a.oF,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.d3=c;a.isPharma=LA(a.isPharma,b.is_pharma);a.author=OA(a.author,b.author);a.Fd=Mxa(b.ttsurl)||a.Fd;a.Hm=LA(a.Hm,b.cc_asr);a.xc=OA(a.xc,b.channel_path);if(c=b.profile_picture)a.profilePicture=OA(a.profilePicture,c);a.videoCountText=OA(a.videoCountText,b.video_count_text);a.autonavState=MA(a.autonavState,b.autonav_state,
Lya);a.clientPlaybackNonce=OA(a.clientPlaybackNonce,b.cpn);a.subscribed=LA(a.subscribed,b.subscribed);a.rawViewCount=NA(a.rawViewCount,b.view_count);a.shortViewCount=OA(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=OA(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=OA(a.lengthText||"",b.lengthText);a.ew=OA(a.ew||"",b.ew);a.Ds=OA(a.Ds||"",b.Ds);a.title=OA(a.title,b.title);a.subtitle=OA(a.subtitle,b.subtitle);a.expandedTitle=OA(a.expandedTitle,b.expanded_title);a.expandedSubtitle=
OA(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=OA(a.ariaLabel,b.aria_label);a.ypcPreview=OA(a.ypcPreview,b.ypc_preview);a.hK=OA(a.hK,b.ypc_origin);a.og=LA(a.og,b.ypc_is_premiere_trailer);a.Po=OA(a.Po,b.ypc_clickwrap_message);a.paygated=LA(a.paygated,b.paygated);a.dT=LA(a.dT,b.requires_purchase);a.showShareButton=!LA(!a.showShareButton,b.ss);a.hc=LA(a.hc,b.showwatchlater);a.Il=LA(a.Il,b.shownotifybutton);a.Mo=LA(a.Mo,b.copy_share);if(c=b.el)a.eventLabel=c;if(c=b.keywords)a.keywords=Mya(c.split(","));
if(c=b.rvs)a.suggestions=Sz(c).map(function(d){return d.playlist||d.list||d.api?new g.NN(a.Ia,d):new g.ON(a.Ia,d)});
a.contentCheckOk=LA(a.contentCheckOk,b.cco);a.racyCheckOk=LA(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=LA(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=OA(a.oauthToken,b.oauth_token);a.wb=OA(a.wb,b.kpt);a.visitorData=OA(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=Pz(c,"&");a.yx=OA(a.yx,b.endscreen_ad_tracking_data);a.qT=LA(a.qT,b.wait_for_vast_info_cards_xml);a.wR=LA(a.wR,b.suppress_creator_endscreen);a.BW=LA(a.BW,b.is_trueview_action);a.oT=OA(a.oT,b.tracking_list);
a.qx=OA(a.qx,b.clip);a.sx=OA(a.sx,b.clipt);Nya(a,b)};
Hya=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.Vm=f);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.AG(16));a.rb=LA(a.Ia.rb,b.livemonitor);Iya(a,b);var h=b.raw_player_response;if(h)a.iL=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.mx=!0);q.allowInPlaceSwitch&&(a.oF=!0);var t=q.loadPolicy;t&&(a.annotationsLoadPolicy=Oya[t]);var v=q.invideoUrl;v&&(a.Va=LG(v));a.cL=!0;break}}var y=a.playerResponse.attestation;y&&Lxa(a,y);var A=a.playerResponse.cotn;A&&(a.cotn=A);if(a.N("html5_enable_ssap_entity_id")){var E,K=null==(E=a.playerResponse.cpnInfo)?void 0:E.cpn;K&&(a.clientPlaybackNonce=K)}var I=a.playerResponse.heartbeatParams;
if(I){Pya(a)&&(a.GT=!0);var F=I.heartbeatToken;F&&(a.drmSessionId=I.drmSessionId||"",a.heartbeatToken=F,a.aU=Number(I.intervalMilliseconds),a.oU=Number(I.maxRetries),a.GU=!!I.softFailOnError,a.cW=!!I.useInnertubeHeartbeatsForDrm,a.tp=!0);a.heartbeatServerData=I.heartbeatServerData;var S;a.Dm=!(null==(S=I.heartbeatAttestationConfig)||!S.requiresAttestation)}var Y=a.playerResponse.messages;Y&&Rxa(a,Y);var ia=a.playerResponse.multicamera;if(ia){var ta=ia.playerLegacyMulticameraRenderer;if(ta){var na=
ta.metadataList;na&&(a.EY=na,a.pg=Sz(na))}}var ca=a.playerResponse.overlay;if(ca){var ha=ca.playerControlsOverlayRenderer;if(ha)if(Txa(a,ha.controlBgHtml),ha.mutedAutoplay){var Da=g.Q(ha.mutedAutoplay,Qya);if(Da&&Da.endScreen){var fa=g.Q(Da.endScreen,Rya);fa&&fa.text&&(a.VY=g.VG(fa.text))}}else a.mutedAutoplay=!1}var U=a.playerResponse.playabilityStatus;if(U){var Ua=U.backgroundability;Ua&&Ua.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var r,V;if(null==(r=U.offlineability)?0:null==
(V=r.offlineabilityRenderer)?0:V.offlineable)a.offlineable=!0;var ob=U.contextParams;ob&&(a.contextParams=ob);var Ya=U.pictureInPicture;Ya&&Ya.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);U.playableInEmbed&&(a.allowEmbed=!0);var Cb=U.ypcClickwrap;if(Cb){var Ab=Cb.playerLegacyDesktopYpcClickwrapRenderer,wb=Cb.ypcRentalActivationRenderer;if(Ab)a.Po=Ab.durationMessage||"",a.Xf=!0;else if(wb){var Tb=wb.durationMessage;a.Po=Tb?g.VG(Tb):"";a.Xf=!0}}var Ra=U.errorScreen;if(Ra){if(Ra.playerLegacyDesktopYpcTrailerRenderer){var ib=
Ra.playerLegacyDesktopYpcTrailerRenderer;a.Ep=ib.trailerVideoId||"";var w=Ra.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var C=w&&w.ypcTrailerRenderer}else if(Ra.playerLegacyDesktopYpcOfferRenderer)ib=Ra.playerLegacyDesktopYpcOfferRenderer;else if(Ra.ypcTrailerRenderer){C=Ra.ypcTrailerRenderer;var D=C.fullVideoMessage;a.Qo=D?g.VG(D):"";var B,M;a.Ep=(null==(B=g.Q(C,Sya))?void 0:null==(M=B.videoDetails)?void 0:M.videoId)||""}ib&&(a.Yo=ib.itemTitle||"",ib.itemUrl&&(a.qz=ib.itemUrl),ib.itemBuyUrl&&
(a.Ay=ib.itemBuyUrl),a.Xy=ib.itemThumbnail||"",a.Ez=ib.offerHeadline||"",a.Ap=ib.offerDescription||"",a.Ml=ib.offerId||"",a.Dz=ib.offerButtonText||"",a.gK=ib.offerButtonFormattedText||null,a.Cp=ib.overlayDurationMsec||NaN,a.Qo=ib.fullVideoMessage||"",a.xj=!0);if(C){var L=g.Q(C,Sya);if(L)a.Nl={raw_player_response:L};else{var T=g.Q(C,Tya);a.Nl=T?Rz(T):null}a.xj=!0}}}var W=a.playerResponse.playbackTracking;if(W){var oa=b,ma=oN(W.googleRemarketingUrl);ma&&(a.googleRemarketingUrl=ma);var ba=oN(W.youtubeRemarketingUrl);
ba&&(a.youtubeRemarketingUrl=ba);var pa=oN(W.ptrackingUrl);if(pa){var Fa=pN(pa),cb=Fa.oid;cb&&(a.IZ=cb);var rc=Fa.pltype;rc&&(a.YZ=rc);var Kb=Fa.ptchn;Kb&&(a.jZ=Kb);var xb=Fa.ptk;xb&&(a.Tx=encodeURIComponent(xb));var $a=Fa.m;$a&&(a.xx=$a)}var gc=oN(W.ppvRemarketingUrl);gc&&(a.ppvRemarketingUrl=gc);var hc=oN(W.qoeUrl);if(hc){for(var Wb=g.Tz(hc),fd=g.u(Object.keys(Wb)),yc=fd.next();!yc.done;yc=fd.next()){var Sc=yc.value,ud=Wb[Sc];Wb[Sc]=Array.isArray(ud)?ud.join(","):ud}a.pT=Wb;var Dc=Wb.cat;Dc&&(a.Ho=
Dc);var nd=Wb.live;nd&&(a.gL=nd);var Ed=Wb.drm_product;Ed&&(a.rB=Ed)}var zc=oN(W.remarketingUrl);if(zc){a.remarketingUrl=zc;var ee=pN(zc);ee.foc_id&&(a.K.focEnabled=!0);var Fd=ee.data;Fd&&(a.K.rmktEnabled=!0,Fd.engaged&&(a.K.engaged="1"));a.K.baseUrl=mfa(zc)+Hj(g.Rj(5,zc))}var Qe=oN(W.videostatsPlaybackUrl);if(Qe){var rb=pN(Qe);a.Ec=rb;var Mb=rb.adformat;if(Mb){oa.adformat=Mb;var mg=a.W(),gf=Hxa(Mb,a.iy,mg.C,mg.J);gf&&(a.adFormat=gf)}var Ph=rb.aqi;Ph&&(oa.ad_query_id=Ph);var gd=rb.autoplay;gd&&(a.jl=
"1"==gd,a.Op="1"==gd);var hd=rb.autonav;hd&&(a.isAutonav="1"==hd);var fe=rb.delay;fe&&(a.ob=Fe(fe));var Tc=rb.ei;Tc&&(a.eventId=Tc);"adunit"===rb.el&&(a.jl=!0);var Ec=rb.feature;Ec&&(a.Io=Ec);var Re=rb.list;Re&&(a.playlistId=Re);var Se=rb.of;Se&&(a.lL=Se);var ng=rb.osid;ng&&(a.osid=ng);var xf=rb.referrer;xf&&(a.referrer=xf);var Qh=rb.sdetail;Qh&&(a.Xx=Qh);var Te=rb.sourceid;Te&&(a.tcb=Te);var Ue=rb.ssrt;Ue&&(a.Ko="1"==Ue);var Tf=rb.subscribed;Tf&&(a.subscribed="1"==Tf,a.K.subscribed=Tf);var hf=rb.uga;
hf&&(a.userGenderAge=hf);var jf=rb.upt;jf&&(a.by=jf);var Rd=rb.vm;Rd&&(a.videoMetadata=Rd)}var Pb=oN(W.videostatsWatchtimeUrl);if(Pb){var lh=pN(Pb).ald;lh&&(a.ZA=lh)}if(W.promotedPlaybackTracking){var Ve=W.promotedPlaybackTracking;Ve.startUrls&&(a.Vx=Ve.startUrls);Ve.firstQuartileUrls&&(a.lO=Ve.firstQuartileUrls);Ve.secondQuartileUrls&&(a.sO=Ve.secondQuartileUrls);Ve.thirdQuartileUrls&&(a.HO=Ve.thirdQuartileUrls);Ve.completeUrls&&(a.cO=Ve.completeUrls);Ve.engagedViewUrls&&(1<Ve.engagedViewUrls.length&&
g.tG(new g.EB("There are more than one engaged_view_urls.")),a.Li=Ve.engagedViewUrls[0])}}var Jj=a.playerResponse.playerCueRanges;Jj&&0<Jj.length&&(a.cueRanges=Jj);var yf=a.playerResponse.playerCueRangeSet;yf&&g.Uya(a,yf);a:{var mh=a.playerResponse.adPlacements;if(mh)for(var ve=g.u(mh),Uf=ve.next();!Uf.done;Uf=ve.next()){var Ng=void 0,nh=void 0,kf=null==(Ng=Uf.value.adPlacementRenderer)?void 0:null==(nh=Ng.renderer)?void 0:nh.videoAdTrackingRenderer;if(kf){var Rh=kf;break a}}Rh=null}var oh=Rh;W&&
W.promotedPlaybackTracking&&oh&&g.tG(new g.EB("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));oh&&(a.FT=!0);var Kj=a.playerResponse.playerAds;if(Kj)for(var uk=b,Sd=g.u(Kj),Vf=Sd.next();!Vf.done;Vf=Sd.next()){var og=Vf.value;if(og){var vk=og.playerLegacyDesktopWatchAdsRenderer;if(vk){var zf=vk.playerAdParams;if(zf){"1"==zf.autoplay&&(a.jl=!0,a.Op=!0);a.bB=zf.encodedAdSafetyReason||null;void 0!==zf.showContentThumbnail&&(a.Lo=!!zf.showContentThumbnail);uk.enabled_engage_types=
zf.enabledEngageTypes;break}}}}var Ic=a.playerResponse.playerConfig;if(Ic){var Af=Ic.manifestlessWindowedLiveConfig;if(Af){var Sh=Number(Af.minDvrSequence),wk=Number(Af.maxDvrSequence),ph=Number(Af.minDvrMediaTimeMs),Ui=Number(Af.maxDvrMediaTimeMs),Vi=Number(Af.startWalltimeMs);Sh&&(a.bf=Sh);ph&&(a.Eb=ph/1E3);wk&&(a.nh=wk);Ui&&(a.md=Ui/1E3);Vi&&(a.pd=Vi/1E3)}var qh=Ic.daiConfig;if(qh){if(qh.enableDai){a.Bf=!0;var Bf=qh.enableServerStitchedDai;Bf&&(a.enableServerStitchedDai=Bf);var vd=qh.enablePreroll;
vd&&(a.enablePreroll=vd)}var We;if("DAI_TYPE_SS_DISABLED"===qh.daiType||(null==(We=qh.debugInfo)?0:We.isDisabledUnpluggedChannel))a.UK=!0}var Cf=Ic.audioConfig;if(Cf){var Wi=Cf.loudnessDb;null!=Wi&&(a.Ri=Wi);Cf.audioMuted&&(a.xk=!0);Cf.muteOnStart&&(a.jT=!0)}var Xi=Ic.playbackEndConfig;if(Xi){var xk=Xi.endSeconds,yk=Xi.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&(xk&&(a.endSeconds=xk),a.W().N("embeds_enable_muted_autoplay")&&yk&&(a.limitedPlaybackDurationInSeconds=yk))}var Yi=Ic.fairPlayConfig;
if(Yi){var ge=Yi.certificate;ge&&(a.Ya=iM(ge));var Wf=Number(Yi.keyRotationPeriodMs);0<Wf&&(a.Nx=Wf);var rh=Number(Yi.keyPrefetchMarginMs);0<rh&&(a.Mx=rh)}var Th=Ic.playbackStartConfig;if(Th){a.FM=Number(Th.startSeconds);var zk=Th.liveUtcStartSeconds,Lj=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds;zk&&!Lj&&(a.liveUtcStartSeconds=Number(zk));var Zi=Th.startPosition;if(Zi){var Og=Zi.utcTimeMillis;Og&&!Lj&&(a.liveUtcStartSeconds=.001*Number(Og));var Uh=Zi.streamTimeMillis;Uh&&(a.nj=.001*Number(Uh))}a.progressBarStartPosition=
Th.progressBarStartPosition;a.progressBarEndPosition=Th.progressBarEndPosition}else{var Pg=Ic.skippableSegmentsConfig;if(Pg){var Df=Pg.introSkipDurationMs;Df&&(a.SK=Number(Df)/1E3);var Qg=Pg.outroSkipDurationMs;Qg&&(a.kL=Number(Qg)/1E3)}}var Xf=Ic.skippableIntroConfig;if(Xf){var Vh=Number(Xf.startMs),Zb=Number(Xf.endMs);isNaN(Vh)||isNaN(Zb)||(a.Gh=Vh,a.Je=Zb)}var Td=Ic.streamSelectionConfig;Td&&(a.xd=Number(Td.maxBitrate));var he=Ic.vrConfig;he&&(a.yz="1"==he.partialSpherical);var Ak=Ic.webDrmConfig;
if(Ak){Ak.skipWidevine&&(a.kT=!0);var ao=Ak.widevineServiceCert;ao&&(a.Ll=iM(ao));Ak.useCobaltWidevine&&(a.useCobaltWidevine=!0);Ak.startWithNoQualityConstraint&&(a.Dk=!0)}var lf=Ic.mediaCommonConfig;if(lf){var $i=lf.dynamicReadaheadConfig;if($i){a.maxReadAheadMediaTimeMs=$i.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=$i.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=$i.readAheadGrowthRateMs||NaN;var Bk,sh=null==lf?void 0:null==(Bk=lf.mediaUstreamerRequestConfig)?void 0:Bk.videoPlaybackUstreamerConfig;
sh&&(a.Oj=iM(sh));var mf=null==lf?void 0:lf.sabrContextUpdates;mf&&mf.length&&(a.sabrContextUpdates=mf)}if(a.N("html5_server_playback_start_policy")){var Wh=lf.serverPlaybackStartConfig;Wh&&(a.serverPlaybackStartConfig=Wh)}}var aj=Ic.inlinePlaybackConfig;aj&&(a.tB=!!aj.showAudioControls);var yl=Ic.embeddedPlayerConfig;if(yl){a.embeddedPlayerConfig=yl;var Bm=yl.embeddedPlayerMode;if(Bm){var bo=a.W();bo.Ya=Bm;bo.B="EMBEDDED_PLAYER_MODE_PFL"===Bm}var bj=yl.permissions;bj&&(a.allowImaMonetization=!!bj.allowImaMonetization)}var Ck=
Ic.ssapConfig;Ck&&(a.DT=Ck.ssapPrerollEnabled||!1);var wd=Ic.webPlayerConfig;wd&&wd.gatewayExperimentGroup&&(a.gatewayExperimentGroup=wd.gatewayExperimentGroup)}var Gd=a.playerResponse.streamingData;if(Gd){var Rg=Gd.adaptiveFormats;if(Rg){var pg=Gd.streamingUrlTemplate;if(a.N("enable_streaming_url_template")&&pg)for(var cj=g.u(Rg),nf=cj.next();!nf.done;nf=cj.next()){var zl=nf.value;!zl.url&&zl.distinctParams&&(zl.url=pg+"&"+zl.distinctParams)}}var Cm=Gd.formats;if(Cm){var Ef=[],Mj=g.u(Cm);for(nf=
Mj.next();!nf.done;nf=Mj.next()){var Xe=nf.value;Ef.push(Xe.itag+"/"+Xe.width+"x"+Xe.height)}a.NK=Ef.join(",");Ef=[];var th=g.u(Cm);for(nf=th.next();!nf.done;nf=th.next()){var uh=nf.value,dj={itag:uh.itag,type:uh.mimeType,quality:uh.quality},co=uh.url;co&&(dj.url=co);var Sg=TH(uh),Dk=Sg.Ey,Ek=Sg.HA,Al=Sg.s;Sg.SV&&(dj.url=Dk,dj.sp=Ek,dj.s=Al);Ef.push(g.Xj(dj))}a.If=Ef.join(",")}var Bl=Gd.hlsFormats;if(Bl){var qg=Ic||null,Xh={};if(qg){var ej=qg.audioPairingConfig;if(ej&&ej.pairs)for(var of=g.u(ej.pairs),
rg=of.next();!rg.done;rg=of.next()){var Ye=rg.value,sg=Ye.videoItag;Xh[sg]||(Xh[sg]=[]);Xh[sg].push(Ye.audioItag)}}for(var fj={},Cl=g.u(Bl),tg=Cl.next();!tg.done;tg=Cl.next()){var Dl=tg.value;fj[Dl.itag]=Dl.bitrate}var El=[],Fk=g.u(Bl);for(tg=Fk.next();!tg.done;tg=Fk.next()){var we=tg.value,ug={itag:we.itag,type:we.mimeType,url:we.url,bitrate:we.bitrate,width:we.width,height:we.height,fps:we.fps},Nj=we.audioTrack;if(Nj){var eo=Nj.displayName;eo&&(ug.name=eo,ug.audio_track_id=Nj.id,Nj.audioIsDefault&&
(ug.is_default="1"))}if(we.drmFamilies){for(var fb=[],sr=g.u(we.drmFamilies),tr=sr.next();!tr.done;tr=sr.next())fb.push(ava[tr.value]);ug.drm_families=fb.join(",")}var Oj=Xh[we.itag];if(Oj&&Oj.length){ug.audio_itag=Oj.join(",");var Ep=fj[Oj[0]];Ep&&(ug.bitrate+=Ep)}var Fp=sua(we);Fp&&(ug.eotf=Fp);we.audioChannels&&(ug.audio_channels=we.audioChannels);El.push(g.Xj(ug))}a.hlsFormats=El.join(",")}var ti=Gd.licenseInfos;if(ti&&0<ti.length){for(var fo={},go=g.u(ti),ur=go.next();!ur.done;ur=go.next()){var gu=
ur.value,Gp=gu.drmFamily,hu=gu.url;Gp&&hu&&(fo[ava[Gp]]=hu)}a.me=fo}var iu=Gd.drmParams;iu&&(a.drmParams=iu);var ju=Gd.dashManifestUrl;ju&&(a.kb=g.Yj(ju,{cpn:a.clientPlaybackNonce}));var ku=Gd.hlsManifestUrl;ku&&(a.hlsvp=ku);var ho=Gd.probeUrl;ho&&(a.probeUrl=LG(g.Yj(ho,{cpn:a.clientPlaybackNonce})));var Hp=Gd.serverAbrStreamingUrl;Hp&&(a.Yx=new g.pI(Hp,!0))}var gj=a.playerResponse.trackingParams;gj&&(a.Ba=gj);var Pc=a.playerResponse.videoDetails;if(Pc){var vh=b,hj=Pc.videoId;hj&&(a.videoId=hj,vh.video_id||
(vh.video_id=hj));var Dm=Pc.channelId;Dm&&(a.K.uid=Dm.substr(2));var Em=Pc.title;Em&&(a.title=Em,vh.title||(vh.title=Em));var Yh=Pc.lengthSeconds;Yh&&(a.lengthSeconds=Number(Yh),vh.length_seconds||(vh.length_seconds=Yh));var Fm=Pc.keywords;Fm&&(a.keywords=Mya(Fm));var Fl=Pc.channelId;Fl&&(a.Fk=Fl,vh.ucid||(vh.ucid=Fl));var lu=Pc.viewCount;lu&&(a.rawViewCount=Number(lu));var vr=Pc.author;vr&&(a.author=vr,vh.author||(vh.author=vr));var Yf=Pc.shortDescription;Yf&&(a.shortDescription=Yf);var Gk=Pc.isCrawlable;
Gk&&(a.isListed=Gk);var Hk=Pc.musicVideoType;Hk&&(a.musicVideoType=Hk);var mu=Pc.isLive;null!=mu&&(a.isLivePlayback=mu);if(mu||Pc.isUpcoming)a.isPremiere=!Pc.isLiveContent;var Nx=Pc.thumbnail;Nx&&(a.V=nN(Nx));var wr=Pc.isExternallyHostedPodcast;wr&&(a.isExternallyHostedPodcast=wr);var xr=Pc.viewerLivestreamJoinPosition;if(null==xr?0:xr.utcTimeMillis)a.Oo=Fe(xr.utcTimeMillis);var yr=Ic||null,zr=b;Pc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Pc.isUpcoming&&(a.isUpcoming=!0);if(Pc.isPostLiveDvr)a.Re=
!0;else{var Ar=!1;if(a.rb)a.allowLiveDvr=PL()?!0:FA&&5>iO?!1:!0,a.isLivePlayback=!0;else if(Pc.isLive){zr.livestream="1";a.allowLiveDvr=Pc.isLiveDvrEnabled?PL()?!0:FA&&5>iO?!1:!0:!1;a.Ga=27;Pc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var Br=Pc.latencyClass;Br&&(a.latencyClass=Vya[Br]||"UNKNOWN");var nu=Pc.liveChunkReadahead;nu&&(a.liveChunkReadahead=nu);var Gl=yr&&yr.livePlayerConfig;if(Gl){Gl.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Gl.hasSubfragmentedWebm&&(a.ZC=!0);Gl.defraggedFromSubfragments&&
(a.defraggedFromSubfragments=!0);var io=Gl.liveExperimentalContentId;io&&(a.liveExperimentalContentId=Number(io));var Cr=Gl.isLiveHeadPlayable;a.N("html5_live_head_playable")&&null!=Cr&&(a.isLiveHeadPlayable=Cr)}Ar=!0}else Pc.isUpcoming&&(Ar=!0);Ar&&(a.isLivePlayback=!0,zr.adformat&&"8"!==zr.adformat.split("_")[1]||a.Fa.push("heartbeat"),a.tp=!0)}var Dr=Pc.isPrivate;void 0!==Dr&&(a.isPrivate=LA(a.isPrivate,Dr))}if(U){var jo=Pc||null,Er=!1,Hl=U.errorScreen;Er=Hl&&(Hl.playerLegacyDesktopYpcOfferRenderer||
Hl.playerLegacyDesktopYpcTrailerRenderer||Hl.ypcTrailerRenderer)?!0:jo&&jo.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(U.status);if(!Er){a.errorCode=Axa(U.errorCode)||"auth";var ko=Hl&&Hl.playerErrorMessageRenderer;if(ko){a.playerErrorMessageRenderer=ko;var ou=ko.reason;ou&&(a.errorReason=g.VG(ou));var Ik=ko.subreason;Ik&&(a.Vm=g.VG(Ik),a.Ox=Ik)}else a.errorReason=U.reason||null;var ij=U.status;if("LOGIN_REQUIRED"===ij)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===
ij)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===ij){var Jk=U.errorScreen,Ip=Jk&&Jk.playerKavRenderer;a.errorDetail=Ip&&Ip.kavUrl?"4":"3"}else a.errorDetail=U.isBlockedInRestrictedMode?"5":"0"}}var pu=a.playerResponse.interstitialPods;pu&&Qxa(a,pu);a.Va&&a.eventId&&(a.Va=Vz(a.Va,{ei:a.eventId}));var Fr=a.playerResponse.captions;Fr&&Fr.playerCaptionsTracklistRenderer&&Nxa(a,Fr.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&
(a.FM=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Sxa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var qu;a.compositeLiveIngestionOffsetToken=null==(qu=a.playerResponse.playbackTracking)?void 0:qu.compositeLiveIngestionOffsetToken;var ru;a.compositeLiveStatusToken=null==(ru=a.playerResponse.playbackTracking)?void 0:
ru.compositeLiveStatusToken}Jya(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var tu=b.hlsdvr;null!=tu&&(a.allowLiveDvr="1"==tu?PL()?!0:FA&&5>iO?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.bB||(a.bB=b.encoded_ad_safety_reason||null);a.ZS=b.agcid||null;a.aF=b.ad_id||null;a.nF=b.ad_sys||null;a.uB=b.encoded_ad_playback_context||null;a.xk=LA(a.xk,b.infringe||b.muted);a.lT=b.authkey;a.MR=b.authuser;a.mutedAutoplay=LA(a.mutedAutoplay,b&&b.playmuted)&&a.N("embeds_enable_muted_autoplay");a.vR=LA(a.vR,b&&
b.mutedautoplay)&&a.N("embeds_enable_muted_autoplay");var Zf=b.length_seconds;Zf&&(a.lengthSeconds="string"===typeof Zf?Fe(Zf):Zf);if(a.isAd()||a.yk||!g.SA(g.GM(a.Ia)))a.endSeconds=NA(a.endSeconds,a.kL||b.end||b.endSeconds);else{var Pj=a.lengthSeconds;switch(g.GM(a.Ia)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":30<Pj?a.limitedPlaybackDurationInSeconds=30:30>Pj&&10<Pj&&(a.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.limitedPlaybackDurationInSeconds=
.2*Pj}}a.Ba=OA(a.Ba,b.itct);a.WK=LA(a.WK,b.noiba);a.ZK=LA(a.ZK,b.is_live_destination);a.isLivePlayback=LA(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.Jc();b.isUpcoming&&(a.isUpcoming=LA(a.isUpcoming,b.isUpcoming));a.Re=LA(a.Re,b.post_live_playback);a.isMdxPlayback=LA(a.isMdxPlayback,b.mdx);var Qj=b.mdx_control_mode;Qj&&(a.mdxControlMode="number"===typeof Qj?Qj:Fe(Qj));a.isInlinePlaybackNoAd=LA(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Zb=NA(a.Zb,
b.reload_count);a.reloadReason=OA(a.reloadReason,b.reload_reason);a.Lo=LA(a.Lo,b.show_content_thumbnail);a.aL=LA(a.aL,b.utpsa);a.xR=LA(a.xR,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.ZJ=b.tkn||null;var uu=mN(b);0<Object.keys(uu).length&&(a.V=uu);a.qa=OA(a.qa,b.vvt);a.mdxEnvironment=OA(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.j3=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=OA(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?NA(0,b.index):NA(a.playlistIndex,b.index));a.CR=b.pyv_view_beacon_url;a.JR=b.pyv_quartile25_beacon_url;a.LR=b.pyv_quartile50_beacon_url;a.NR=b.pyv_quartile75_beacon_url;a.IR=b.pyv_quartile100_beacon_url;var vu=b.remarketing_url;vu&&(a.remarketingUrl=vu);var jj=b.ppv_remarketing_url;jj&&(a.ppvRemarketingUrl=jj);var lo=b.session_data;!a.XS&&lo&&
(a.XS=Pz(lo,"&").feature);a.isFling=1==NA(a.isFling?1:0,b.is_fling);a.vnd=NA(a.vnd,b.vnd);a.forceAdsUrl=OA(a.forceAdsUrl,b.force_ads_url);a.Zi=OA(a.Zi,b.ctrl);a.Hj=OA(a.Hj,b.ytr);a.kq=b.ytrcc;a.aT=b.ytrexp;a.DP=b.ytrext;a.Ke=OA(a.Ke,b.adformat);a.iy=OA(a.iy,b.attrib);a.slotPosition=NA(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Ko=LA(a.Ko,b.ssrt);a.videoId=QA(b)||a.videoId;a.J=OA(a.J,b.vss_credentials_token);a.Gk=OA(a.Gk,b.vss_credentials_token_type);a.sj=LA(a.sj,b.audio_only);a.eK=LA(a.eK,
b.aac_high);a.fE=LA(a.fE,b.prefer_low_quality_audio);a.Ho=OA(a.Ho,b.qoe_cat);a.Km=LA(a.Km,b.download_media);var mo=b.prefer_gapless;var Px=null!=mo?LA(a.ea,mo):a.ea?a.ea:a.Ia.preferGapless&&a.Ia.supportsGaplessShorts();a.ea=Px;a:{var Gr=a.playerResponse;if(Gr&&Gr.adPlacements)for(var Gm=g.u(Gr.adPlacements),no=Gm.next();!no.done;no=Gm.next()){var oo=no.value.adPlacementRenderer;if(null!=oo&&"AD_PLACEMENT_KIND_START"===(oo.config&&oo.config.adPlacementConfig&&oo.config.adPlacementConfig.kind)){var wu=
!0;break a}}wu=!1}wu&&(a.adModule=!0,a.Fa.push("ad"));var xu=b.adaptive_fmts;xu&&(a.adaptiveFormats=xu,a.ya("adpfmts",{},!0));var yu=b.allow_embed;yu&&(a.allowEmbed="1"==yu);var Hr=b.backgroundable;Hr&&(a.backgroundable="1"==Hr);var zu=b.autonav;zu&&(a.isAutonav="1"==zu);var Na=b.autoplay;Na&&(a.Op="1"==Na,a.jl="1"==Na);var SJ=b.iv_load_policy;SJ&&(a.annotationsLoadPolicy=MA(a.annotationsLoadPolicy,SJ,HM));var TJ=b.cc_lang_pref;TJ&&(a.captionsLanguagePreference=OA(TJ,a.captionsLanguagePreference));
var uC=b.cc_load_policy;uC&&(a.yD=MA(a.yD,uC,HM));var UJ;a.deviceCaptionsOn=null!=(UJ=b.device_captions_on)?UJ:void 0;var VJ;a.BT=null!=(VJ=b.device_captions_lang_pref)?VJ:"";var WJ;a.dK=null!=(WJ=b.viewer_selected_caption_langs)?WJ:[];var XJ=b.cached_load;XJ&&(a.ov=LA(a.ov,XJ));"0"==b.dash&&(a.nB=!0);var YJ=b.dashmpd;YJ&&(a.kb=g.Yj(YJ,{cpn:a.clientPlaybackNonce}));var ZJ=b.delay;ZJ&&(a.ob=Fe(ZJ));var vC=a.kL||b.end;void 0!=vC&&(a.clipEnd=NA(a.clipEnd,vC));var wC=b.fmt_list;wC&&(a.NK=wC);b.heartbeat_preroll&&
a.Fa.push("heartbeat");a.Gm=-Math.floor(10*Math.random());a.Ww=-Math.floor(40*Math.random());var $J=b.is_listed;$J&&(a.isListed=LA(a.isListed,$J));var aK=b.is_private;aK&&(a.isPrivate=LA(a.isPrivate,aK));var bK=b.is_dni;bK&&(a.Dd=LA(a.Dd,bK));var Ma=b.dni_color;Ma&&(a.Xl=OA(a.Xl,Ma));var RCa=b.pipable;RCa&&(a.pipable=LA(a.pipable,RCa));a.cT=a.pipable&&a.Ia.Ep;a.gR=a.cT&&!a.Ia.showMiniplayerButton;var SCa=b.paid_content_overlay_duration_ms;SCa&&(a.paidContentOverlayDurationMs=Fe(SCa));var TCa=b.paid_content_overlay_text;
TCa&&(a.paidContentOverlayText=TCa);var UCa=b.url_encoded_fmt_stream_map;UCa&&(a.If=UCa);var VCa=b.hls_formats;VCa&&(a.hlsFormats=VCa);var WCa=b.hlsvp;WCa&&(a.hlsvp=WCa);var CU=b.live_start_walltime;CU&&(a.hL="number"===typeof CU?CU:Fe(CU));var DU=b.live_manifest_duration;DU&&(a.Gl="number"===typeof DU?DU:Fe(DU));var XCa=b.player_params;XCa&&(a.playerParams=XCa);var YCa=b.partnerid;YCa&&(a.Ga=NA(a.Ga,YCa));var ZCa=b.probe_url;ZCa&&(a.probeUrl=LG(g.Yj(ZCa,{cpn:a.clientPlaybackNonce})));var Waa=b.pyv_billable_url;
Waa&&vra(Waa)&&(a.Li=Waa);var Xaa=b.pyv_conv_url;Xaa&&vra(Xaa)&&(a.DR=Xaa);Nya(a,b);0<a.startSeconds||(a.startSeconds=NA(a.startSeconds,a.FM||a.SK||b.start||b.startSeconds),a.Qc=a.startSeconds);if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var $Ca=b.live_utc_start;if(null!=$Ca)a.liveUtcStartSeconds=Number($Ca);else{var Yaa=a.startSeconds;Yaa&&isFinite(Yaa)&&1E9<Yaa&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var aDa=b.utc_start_millis;aDa&&
(a.liveUtcStartSeconds=.001*Number(aDa))}var bDa=b.stream_time_start_millis;bDa&&(a.nj=.001*Number(bDa));var cDa=a.SK||b.start;void 0==cDa||"1"==b.resume||a.isLivePlayback||(a.clipStart=NA(a.clipStart,cDa));var dDa=b.url_encoded_third_party_media;dDa&&(a.Jl=Sz(dDa));var Zaa=b.ypc_offer_button_formatted_text;if(Zaa){var eDa=JSON.parse(Zaa);a.gK=null!=eDa?eDa:null;a.tT=Zaa}var fDa=b.ypc_offer_button_text;fDa&&(a.Dz=fDa);var gDa=b.ypc_offer_description;gDa&&(a.Ap=gDa);var hDa=b.ypc_offer_headline;hDa&&
(a.Ez=hDa);var iDa=b.ypc_full_video_message;iDa&&(a.Qo=iDa);var jDa=b.ypc_offer_id;jDa&&(a.Ml=jDa);var kDa=b.ypc_buy_url;kDa&&(a.Ay=kDa);var lDa=b.ypc_item_thumbnail;lDa&&(a.Xy=lDa);var mDa=b.ypc_item_title;mDa&&(a.Yo=mDa);var nDa=b.ypc_item_url;nDa&&(a.qz=nDa);var oDa=b.ypc_vid;oDa&&(a.Ep=oDa);b.ypc_overlay_timeout&&(a.Cp=Number(b.ypc_overlay_timeout));var pDa=b.ypc_trailer_player_vars;pDa&&(a.Nl=Rz(pDa));var qDa=b.ypc_original_itct;qDa&&(a.G4=qDa);a.Fk=OA(a.Fk,b.ucid);b.baseUrl&&(a.K.baseUrl=b.baseUrl);
b.uid&&(a.K.uid=b.uid);b.oeid&&(a.K.oeid=b.oeid);b.ieid&&(a.K.ieid=b.ieid);b.ppe&&(a.K.ppe=b.ppe);b.engaged&&(a.K.engaged=b.engaged);b.subscribed&&(a.K.subscribed=b.subscribed);a.K.focEnabled=LA(a.K.focEnabled,b.focEnabled);a.K.rmktEnabled=LA(a.K.rmktEnabled,b.rmktEnabled);a.Zx=b.storyboard_spec||null;a.Qx=b.live_storyboard_spec||null;a.fX=b.iv_endscreen_url||null;a.cL=LA(a.cL,b.iv3_module);a.tp=LA(a.tp,b.ypc_license_checker_module);a.xj=LA(a.xj,b.ypc_module);a.Xf=LA(a.Xf,b.ypc_clickwrap_module);
a.xj&&a.Fa.push("ypc");a.Xf&&a.Fa.push("ypc_clickwrap");a.B_={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};
Kya(a,b);var rDa=b.cotn;rDa&&(a.cotn=rDa);if(Wya(a))jO(a)&&(a.isLivePlayback&&a.kb&&(a.eh=!0),a.Ya&&(a.Om=!0));else if(Xya(a))a.eh=!0;else{var uDa,vDa,wDa=(null==(uDa=a.playerResponse)?void 0:null==(vDa=uDa.streamingData)?void 0:vDa.adaptiveFormats)||[];if(0<wDa.length)var dK=Yya(a,wDa);else{var yDa=a.adaptiveFormats;if(yDa&&!jO(a)){kO(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(tva=!0);var xC=lO(yDa),$aa=a.me,zDa=a.lengthSeconds,V$a=a.isLivePlayback,eK=a.Re,yC=a.Ia,aba=a.videoId,W$a=cva(xC);
if(V$a||eK){var kj=new mL("",null==yC?void 0:yC.experiments,!0,aba);kj.Jc=!0;kj.isManifestless=!0;kj.u=!eK;kj.isLive=!eK;kj.Re=eK;for(var ADa=g.u(xC),bba=ADa.next();!bba.done;bba=ADa.next()){var zC=bba.value,BDa=bva(zC,$aa),Qx=oL(zC.url,zC.sp,zC.s),CDa=Qx.get("id");CDa&&CDa.includes("%7E")&&(kj.qa=!0);var X$a=Number(zC.target_duration_sec)||5,Y$a=Number(zC.max_dvr_duration_sec)||14400,DDa=Number(Qx.get("mindsq")||Qx.get("min_sq")||"0"),EDa=Number(Qx.get("maxdsq")||Qx.get("max_sq")||"0")||Infinity;
kj.bf=kj.bf||DDa;kj.nh=kj.nh||EDa;var Z$a=!MK(BDa.mimeType);Qx&&lL(kj,new pK(Qx,BDa,{Kj:X$a,Tm:Z$a,qq:Y$a,bf:DDa,nh:EDa,Pz:300,Re:eK}))}kj.B=!!kj.bf&&!!kj.nh&&isFinite(kj.nh);var FDa=kj}else{if("FORMAT_STREAM_TYPE_OTF"===W$a){var FU=zDa;FU=void 0===FU?0:FU;var AC=new mL("",null==yC?void 0:yC.experiments,!1,aba);AC.duration=FU||0;for(var GDa=g.u(xC),cba=GDa.next();!cba.done;cba=GDa.next()){var BC=cba.value,dba=bva(BC,$aa,AC.duration),eba=oL(BC.url,BC.sp,BC.s);if(eba)if("FORMAT_STREAM_TYPE_OTF"===dba.streamType)lL(AC,
new qK(eba,dba,"sq/0"));else{var $$a=xJ(BC.init),aab=xJ(BC.index);lL(AC,new AK(eba,dba,$$a,aab))}}AC.isOtf=!0;var HDa=AC}else{var GU=zDa;GU=void 0===GU?0:GU;var HU=new mL("",null==yC?void 0:yC.experiments,!1,aba);HU.duration=GU||0;for(var IDa=g.u(xC),fba=IDa.next();!fba.done;fba=IDa.next()){var CC=fba.value,bab=bva(CC,$aa,HU.duration),cab=xJ(CC.init),dab=xJ(CC.index),JDa=oL(CC.url,CC.sp,CC.s);JDa&&lL(HU,new AK(JDa,bab,cab,dab))}HDa=HU}FDa=HDa}var gba=FDa;if(0<xC.length){var Bu=xC[0];if("hangouts-meet"===
a.W().playerStyle&&Bu.url){var eab=g.Tz(Bu.url);a.No=a.No||Number(eab.expire)}if(Bu.url&&Bu.sp&&Bu.s){var fab=oL(Bu.url,Bu.sp,Bu.s),gab=Zya(fab);isFinite(gab)&&(a.kd=!0)}}var hab=a.isLivePlayback&&!a.Re&&!a.kd&&!a.isPremiere;a.N("html5_live_head_playable")&&(!mO(a)&&hab&&a.ya("missingLiveHeadPlayable",{}),"yt"===a.Ia.Ga&&(gba.Ya=!0));gba.Va=nO(a);dK=gba}else dK=null;a.ya("pafmts",{isManifestFilled:!!dK})}if(dK){$ya(a,dK);var LDa=!0}else LDa=!1;LDa?a.enableServerStitchedDai=a.enableServerStitchedDai&&
oO(a):a.kb&&(a.eh=!0)}var iba=b.adpings;iba&&(a.aB=iba?Rz(iba):null);var MDa=b.feature;MDa&&(a.Io=MDa);var NDa=b.referrer;NDa&&(a.referrer=NDa);a.clientScreenNonce=OA(a.clientScreenNonce,b.csn);a.FE=NA(a.FE,b.root_ve_type);a.Eo=NA(a.Eo,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.ey=LA(a.ey,b.upg_content_filter_mode);var ODa=b.unplugged_location_info;ODa&&(a.oa=ODa);var PDa=b.unplugged_partner_opt_out;PDa&&(a.tE=OA("",PDa));a.wx=LA(a.wx,b.disable_watch_next);a.Nm=
OA(a.Nm,b.internal_ip_override);a.XK=!!b.is_yto_interstitial;(a.interstitials.length||a.XK)&&a.Fa.push("yto");var QDa=b.wm;QDa&&(a.wm=QDa);b.wJ&&(a.wJ=b.wJ);var RDa;a.Ma=null!=(RDa=b.csi_timer)?RDa:"";a.Mm=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);var Rx=b.watch_endpoint;a.N("html5_attach_watch_endpoint_ustreamer_config")&&Rx&&Cxa(a,Rx);a.N("html5_attach_watch_endpoint_ustreamer_config_for_sabr")&&(null==Rx?0:Rx.ustreamerConfig)&&(a.qo=iM(Rx.ustreamerConfig));var SDa,TDa,UDa=null==Rx?void 0:
null==(SDa=Rx.loggingContext)?void 0:null==(TDa=SDa.qoeLoggingContext)?void 0:TDa.serializedContextData;UDa&&(a.p4=UDa);g.xM(a.Ia)&&a.Ia.embedsEnableRcat&&(a.embedsRct=OA(a.embedsRct,b.rct),a.embedsRctn=OA(a.embedsRctn,b.rctn));a.Fo=a.Fo||!!b.pause_at_start;b.default_active_source_video_id&&(a.defaultActiveSourceVideoId=b.default_active_source_video_id)};
Jya=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.Ad=c;var e,f=null==(e=a.Ad.contents)?void 0:e.twoColumnWatchNextResults;if(!a.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var h;a.T2=!!(null==f?0:null==(h=f.autoplay)?0:h.autoplay)}var l=a.Ad.playerCueRangeSet;l&&g.Uya(a,l);var m=a.Ad.playerOverlays;if(m){var n=m.playerOverlayRenderer;if(n){var p=n.autonavToggle;p&&(a.autoplaySwitchButtonRenderer=g.Q(p,aza),
a.N("web_player_autonav_use_server_provided_state")&&bza(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var q=n.videoDetails;if(q){var t=q.embeddedPlayerOverlayVideoDetailsRenderer;var v=q.playerOverlayVideoDetailsRenderer;v&&(v.title&&(b.title=g.VG(v.title)),v.subtitle&&(b.subtitle=g.VG(v.subtitle)))}if(!a.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var y,A=null==(y=g.Q(n.suggestedActionsRenderer,cza))?void 0:y.suggestedActions;if(A)for(var E=g.u(A),K=
E.next();!K.done;K=E.next()){var I=g.Q(K.value,dza);I&&g.Q(I.trigger,eza)&&a.suggestedActions.push(I)}}if(!a.N("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")){var F=g.Q(n.decoratedPlayerBarRenderer,PN);if(F){a.multiMarkersPlayerBarRenderer=g.Q(F.playerBar,hya);var S;a.vT=null==(S=g.Q(F.playerBar,fza))?void 0:S.chapters;a.B3=g.Q(F.playerBarActionButton,g.pO)}}g.CM(a.Ia)&&(a.hc=!!n.addToMenu);gza(a,n.shareButton);if(!a.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var Y=
n.productsInVideoOverlayRenderer;Y&&(a.shoppingOverlayRenderer=g.Q(Y,hza))}a.N("progress_bar_start_end_null_check_killswitch")?(a.progressBarStartPosition=n.startPosition,a.progressBarEndPosition=n.endPosition):n.startPosition&&n.endPosition&&(a.progressBarStartPosition=n.startPosition,a.progressBarEndPosition=n.endPosition);var ia=n.gatedActionsOverlayRenderer;ia&&(a.R2=g.Q(ia,iza));var ta,na,ca,ha=g.Q(null==(ta=a.Ad)?void 0:null==(na=ta.playerOverlays)?void 0:null==(ca=na.playerOverlayRenderer)?
void 0:ca.infoPanel,jza);if(ha){a.QK=Number(null==ha?void 0:ha.durationMs)||NaN;if(null==ha?0:ha.infoPanelOverviewViewModel)a.Wd=null==ha?void 0:ha.infoPanelOverviewViewModel;if(null==ha?0:ha.infoPanelDetailsViewModel)a.Fl=null==ha?void 0:ha.infoPanelDetailsViewModel}a.showSeekingControls=!!n.showSeekingControls}}if(a.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var Da,fa,U=null==(Da=a.Ad)?void 0:null==(fa=Da.contents)?void 0:fa.twoColumnWatchNextResults;if(U){var Ua=U.desktopOverlay&&
g.Q(U.desktopOverlay,kza);Ua&&(Ua.suppressShareButton&&(a.showShareButton=!1),Ua.suppressWatchLaterButton&&(a.hc=!1))}}else if(f){var r=f.desktopOverlay&&g.Q(f.desktopOverlay,kza);r&&(r.suppressShareButton&&(a.showShareButton=!1),r.suppressWatchLaterButton&&(a.hc=!1))}t&&lza(a,b,t);var V=NA(0,b.autoplay_count),ob=a.Ad,Ya,Cb=null==(Ya=ob.contents)?void 0:Ya.twoColumnWatchNextResults,Ab,wb,Tb,Ra=null==(Ab=ob.playerOverlays)?void 0:null==(wb=Ab.playerOverlayRenderer)?void 0:null==(Tb=wb.autoplay)?void 0:
Tb.playerOverlayAutoplayRenderer,ib=gya(a),w,C=null==(w=ob.contents)?void 0:w.singleColumnWatchNextResults;if(C){var D;if((null==(D=C.autoplay)?0:D.autoplay)&&!C.playlist){var B=C.autoplay.autoplay.sets,M={},L=new g.ON(a.W()),T=null,W;if(B){for(var oa=g.u(B),ma=oa.next();!ma.done;ma=oa.next()){var ba=ma.value.autoplayVideoRenderer;if(ba&&ba.compactVideoRenderer){T=ba.compactVideoRenderer;break}}if(W=B[0].autoplayVideo){var pa=W.clickTrackingParams;pa&&(M.itct=pa);M.autonav="1";M.playnext=String(V)}}else M.feature=
"related-auto";var Fa=g.Q(W,g.qO);if(T){L.videoId=T.videoId;var cb=T.shortBylineText;cb&&(L.author=g.VG(cb));var rc=T.title;rc&&(L.title=g.VG(rc))}else null!=Fa&&Fa.videoId&&(L.videoId=Fa.videoId);L.lC=M;a.suggestions=[];a.nx=L}}if(ib){for(var Kb=[],xb=g.u(ib),$a=xb.next();!$a.done;$a=xb.next()){var gc=$a.value,hc=void 0,Wb=null;if(gc.endScreenVideoRenderer){var fd=gc.endScreenVideoRenderer,yc=fd.title;Wb=new g.ON(a.W());Wb.videoId=fd.videoId;Wb.lengthSeconds=fd.lengthInSeconds||0;var Sc=fd.publishedTimeText;
Sc&&(Wb.publishedTimeText=g.VG(Sc));var ud=fd.shortBylineText;ud&&(Wb.author=g.VG(ud));var Dc=fd.shortViewCountText;Dc&&(Wb.shortViewCount=g.VG(Dc));if(yc){Wb.title=g.VG(yc);var nd=yc.accessibility;if(nd){var Ed=nd.accessibilityData;Ed&&Ed.label&&(Wb.ariaLabel=Ed.label)}}var zc=fd.navigationEndpoint;if(zc){hc=zc.clickTrackingParams;var ee=g.Q(zc,g.qO),Fd=g.Q(zc,g.rO);ee?Wb.mC=ee:null!=Fd&&(Wb.watchUrl=Fd.url)}var Qe=fd.thumbnailOverlays;if(Qe)for(var rb=g.u(Qe),Mb=rb.next();!Mb.done;Mb=rb.next()){var mg=
Mb.value.thumbnailOverlayTimeStatusRenderer;if(mg)if("LIVE"===mg.style){Wb.isLivePlayback=!0;break}else if("UPCOMING"===mg.style){Wb.isUpcoming=!0;break}}Wb.V=nN(fd.thumbnail)}else if(gc.endScreenPlaylistRenderer){var gf=gc.endScreenPlaylistRenderer,Ph=gf.navigationEndpoint;if(!Ph)continue;var gd=g.Q(Ph,g.qO);if(!gd)continue;var hd=gd.videoId;Wb=new g.NN(a.W());Wb.playlistId=gf.playlistId;Wb.playlistLength=Number(gf.videoCount)||0;Wb.j=hd||null;Wb.videoId=hd;var fe=gf.title;fe&&(Wb.title=g.VG(fe));
var Tc=gf.shortBylineText;Tc&&(Wb.author=g.VG(Tc));hc=Ph.clickTrackingParams;Wb.V=nN(gf.thumbnail)}Wb&&(hc&&(Wb.sessionData={itct:hc}),Kb.push(Wb))}a.suggestions=Kb}if(Ra){a.C_=!!Ra.preferImmediateRedirect;a.Ve=a.Ve||!!Ra.webShowNewAutonavCountdown;a.Em=a.Em||!!Ra.webShowBigThumbnailEndscreen;if(a.Ve||a.Em){var Ec=new g.ON(a.W());Ec.videoId=Ra.videoId;var Re=Ra.videoTitle;if(Re){Ec.title=g.VG(Re);var Se=Re.accessibility;if(Se){var ng=Se.accessibilityData;ng&&ng.label&&(Ec.ariaLabel=ng.label)}}var xf=
Ra.byline;xf&&(Ec.author=g.VG(xf));var Qh=Ra.publishedTimeText;Qh&&(Ec.publishedTimeText=g.VG(Qh));var Te=Ra.shortViewCountText;Te&&(Ec.shortViewCount=g.VG(Te));var Ue=Ra.thumbnailOverlays;if(Ue)for(var Tf=g.u(Ue),hf=Tf.next();!hf.done;hf=Tf.next()){var jf=hf.value.thumbnailOverlayTimeStatusRenderer;if(jf)if("LIVE"===jf.style){Ec.isLivePlayback=!0;break}else if("UPCOMING"===jf.style){Ec.isUpcoming=!0;break}else if("DEFAULT"===jf.style&&jf.text){Ec.lengthText=g.VG(jf.text);var Rd=jf.text.accessibility;
if(Rd){var Pb=Rd.accessibilityData;Pb&&Pb.label&&(Ec.ew=Pb.label||"")}break}}Ec.V=nN(Ra.background);var lh=Ra.nextButton;if(lh){var Ve=lh.buttonRenderer;if(Ve){var Jj=Ve.navigationEndpoint;if(Jj){var yf=g.Q(Jj,g.qO);yf&&(Ec.mC=yf)}}}if(Ra.topBadges){var mh=Ra.topBadges[0];if(mh){var ve=g.Q(mh,mza);ve&&"BADGE_STYLE_TYPE_PREMIUM"===ve.style&&(Ec.wJ=!0)}}var Uf=Ra.alternativeTitle;Uf&&(Ec.Ds=g.VG(Uf));var Ng=Cb||null,nh={autonav:"1",playnext:String(V)};Ec.playlistId&&(nh.autoplay="1");if(Ng){var kf,
Rh,oh,Kj,uk=null==(kf=Ng.autoplay)?void 0:null==(Rh=kf.autoplay)?void 0:null==(oh=Rh.sets)?void 0:null==(Kj=oh[0])?void 0:Kj.autoplayVideo;if(uk){var Sd=uk.clickTrackingParams;Sd&&(nh.itct=Sd);var Vf=g.Q(uk,g.qO);Vf&&(Ec.XT=Vf)}}else if(Ra){var og,vk,zf,Ic=null==(og=Ra.nextButton)?void 0:null==(vk=og.buttonRenderer)?void 0:null==(zf=vk.navigationEndpoint)?void 0:zf.clickTrackingParams;Ic&&(nh.itct=Ic)}nh.itct||(nh.feature="related-auto");Ec.lC=nh;a.suggestions||(a.suggestions=[]);a.nx=Ec}null!=Ra.countDownSecs&&
(a.nT=1E3*Ra.countDownSecs);null!=Ra.countDownSecsForFullscreen&&(a.qF=0<=Ra.countDownSecsForFullscreen?1E3*Ra.countDownSecsForFullscreen:-1);var Af;a.e3=null==(Af=Ra.cancelButton)?void 0:Af.buttonRenderer;a.N("web_autonav_color_transition")&&Ra.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.Q(Ra.watchToWatchTransitionRenderer,nza))}var Sh=gya(a);if(Sh){var wk,ph,Ui,Vi=null==Sh?void 0:null==(wk=Sh[0])?void 0:null==(ph=wk.endScreenVideoRenderer)?void 0:null==(Ui=ph.navigationEndpoint)?
void 0:Ui.clickTrackingParams,qh=g.sO(a);Vi&&qh&&(qh.sessionData={itct:Vi})}a.Ad.currentVideoThumbnail&&(a.V=nN(a.Ad.currentVideoThumbnail));var Bf,vd,We,Cf,Wi,Xi=null==(Bf=a.Ad)?void 0:null==(vd=Bf.contents)?void 0:null==(We=vd.twoColumnWatchNextResults)?void 0:null==(Cf=We.results)?void 0:null==(Wi=Cf.results)?void 0:Wi.contents;if(Xi&&Xi[1]){var xk,yk,Yi,ge,Wf=null==(xk=Xi[1].videoSecondaryInfoRenderer)?void 0:null==(yk=xk.owner)?void 0:null==(Yi=yk.videoOwnerRenderer)?void 0:null==(ge=Yi.thumbnail)?
void 0:ge.thumbnails;Wf&&Wf.length&&(a.profilePicture=Wf[Wf.length-1].url)}var rh=QA(b),Th,zk=null==(Th=a.Ad)?void 0:Th.onResponseReceivedEndpoints;if(zk)for(var Lj=g.u(zk),Zi=Lj.next();!Zi.done;Zi=Lj.next()){var Og=Zi.value;g.Q(Og,tO)&&(a.nX=g.Q(Og,tO));var Uh=g.Q(Og,oza),Pg=void 0;(a.N("web_key_moments_markers")||a.N("web_heat_map_v2"))&&(null==(Pg=Uh)?0:Pg.entityKeys)&&(a.Sx=Uh.entityKeys,Uh.visibleOnLoadKeys&&(a.visibleOnLoadKeys=Uh.visibleOnLoadKeys))}if(a.N("web_key_moments_markers")){var Df=
g.uO.getState().entities,Qg=g.KN("visibility_override","markersVisibilityOverrideEntity");var Xf=eya(Df,"markersVisibilityOverrideEntity",Qg);a.Qd=(null==Xf?void 0:Xf.videoId)===(a.videoId||rh)&&(null==Xf?0:Xf.visibilityOverrideMarkersKey)?Xf.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.qa(a.Qd))}if(!a.N("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")){var Vh=g.Q(a.Ad.currentVideoEndpoint,g.qO);if(null==Vh?0:Vh.playlistId)a.h3=Vh.playlistId}}};
bza=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
pza=function(a){return!!(a.B&&a.B.videoInfos&&a.B.videoInfos.length)};
wO=function(a){var b=a.ea,c=!!a.j&&a.j.Jc,d=a.Ia,e=a.RN(),f=vO(a),h=a.eK,l=a.isOtf(),m=a.xL(),n=a.rb,p=a.Vf,q=new Cva(d);if(d.Id()||d.N("html5_logging_format_selection"))q.u=!0;q.kb=f;q.Ma=h&&d.J;q.Vf=p;g.xA("windows nt 5.1")&&!g.HL&&(q.Sn=!0);if(f=e)f=g.VM(d)?gxa(d):!1;f&&(q.Ba=!0);b&&(q.Sn=!0,q.Qc=!0);l&&!d.N("html5_otf_prefer_vp9")&&(q.Sn=!0);"picasaweb"===d.playerStyle&&(l&&(q.Sn=!1),q.Ga=!1);n&&(q.Sn=!0);b=d.N("html5_ugc_vod_audio_51")&&!c;l=d.N("html5_ugc_live_audio_51")&&c;q.Va=b||l;jI(d.D,
kI.CHANNELS)&&(d.N("html5_enable_aac51")&&(q.J=!0),d.N("html5_enable_ac3")&&(q.B=!0),d.N("html5_enable_eac3")&&(q.C=!0),d.N("html5_enable_ac3_gapless")&&(q.Oa=!0));d.N("html5_block_8k_hfr")&&(q.ob=!0);q.V=g.xL(d.experiments,"html5_max_selectable_quality_ordinal");q.ea=g.xL(d.experiments,"html5_min_selectable_quality_ordinal");vM&&(q.xc=480);if(c||e)q.Ga=!1;q.rb=!1;c=Eva(d,q.j);0<c&&2160>c&&(dL()||d.N("html5_format_hybridization"))&&(q.j.supportsChangeType=+dL(),q.ij=c);2160<=c&&(q.Fa=!0);Ava()&&(q.j.serveVp9OverAv1IfHigherRes=
0,q.xd=!1);q.xL=m;q.eb=g.NC||JA()&&!m?!1:!0;q.oa=d.N("html5_format_hybridization");q.Zb=d.N("html5_disable_encrypted_vp9_live_non_2k_4k");AA()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.B=!0,q.C=!0);a.ea&&a.isAd()&&(a.ax&&(q.qa=a.ax),a.Xw&&(q.D=a.Xw));q.Ya=a.isLivePlayback&&a.uj()&&a.Ia.N("html5_drm_live_audio_51");q.Eb=a.oB;return a.Cl=q};
rza=function(a){RH("drm_pb_s",void 0,a.Ma);a.Ya||a.j&&fI(a.j);var b={};a.j&&(b=Gsa(a.vx,wO(a),a.Ia.D,a.j,function(c){return a.ra("ctmp","fmtflt",c)},!0));
b=new KL(b,a.Ia,a.kT,qza(a),function(c,d){a.ya(c,d)});
g.H(a,b);a.Om=!1;a.loading=!0;Vva(b,function(c){RH("drm_pb_f",void 0,a.Ma);for(var d=g.u(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Ya=a.Ya;e.Nx=a.Nx;e.Mx=a.Mx;break;case "widevine":e.Ll=a.Ll}a.Go=c;if(0<a.Go.length&&(a.D=a.Go[0],a.Ia.Id())){c={};d=g.u(Object.entries(a.D.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)}gO(a)})};
Yya=function(a,b){if(0===b.length||jO(a))return null;kO(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(tva=!0);var c=a.me;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.Re,h=a.Ia,l=a.videoId,m=dva(b);if(e||f){h=new mL("",h.experiments,!0,l);h.u=!f;h.Jc=!0;h.isManifestless=!0;h.isLive=!f;h.Re=f;l=g.u(b);for(d=l.next();!d.done;d=l.next()){var n=d.value;d=nL(n,c);e=TH(n);e=oL(e.Ey||n.url||"",e.HA,e.s);(m=e.get("id"))&&m.includes("%7E")&&(h.qa=!0);m=Number(n.targetDurationSec||5);n=Number(n.maxDvrDurationSec||
14400);var p=Number(e.get("mindsq")||e.get("min_sq")||"0"),q=Number(e.get("maxdsq")||e.get("max_sq")||"0")||Infinity;h.bf=h.bf||p;h.nh=h.nh||q;var t=!MK(d.mimeType);e&&lL(h,new pK(e,d,{Kj:m,Tm:t,qq:n,bf:p,nh:q,Pz:300,Re:f}))}h.B=!!h.bf&&!!h.nh&&isFinite(h.nh);c=h}else if("FORMAT_STREAM_TYPE_OTF"===m){d=void 0===d?0:d;f=new mL("",h.experiments,!1,l);f.duration=d||0;h=g.u(b);for(l=h.next();!l.done;l=h.next())l=l.value,d=nL(l,c,f.duration),e=TH(l),(e=oL(e.Ey||l.url||"",e.HA,e.s))&&("FORMAT_STREAM_TYPE_OTF"===
d.streamType?lL(f,new qK(e,d,"sq/0")):lL(f,new AK(e,d,zJ(l.initRange),zJ(l.indexRange))));f.isOtf=!0;c=f}else{d=void 0===d?0:d;f=new mL("",h.experiments,!1,l);f.duration=d||0;h=g.u(b);for(l=h.next();!l.done;l=h.next())m=l.value,l=nL(m,c,f.duration),d=zJ(m.initRange),e=zJ(m.indexRange),n=TH(m),(m=oL(n.Ey||m.url||"",n.HA,n.s))&&lL(f,new AK(m,l,d,e));c=f}h=TH(b[0]);b=h.Ey;f=h.HA;h=h.s;b&&f&&h&&(b=oL(b,f,h),b=Zya(b),isFinite(b)&&(a.kd=!0));b=a.isLivePlayback&&!a.Re&&!a.kd&&!a.isPremiere;a.N("html5_live_head_playable")&&
(!mO(a)&&b&&a.ya("missingLiveHeadPlayable",{}),"yt"===a.Ia.Ga&&(c.Ya=!0));c.Va=nO(a);return c};
Zya=function(a){return Number(a.get("maxdsq"))||Number(a.get("max_sq"))||Infinity};
jO=function(a){return AA()?!sza(a):CA()?!(!a.Ya||!a.N("html5_enable_safari_fairplay")):!1};
sza=function(a){return a.N("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
qza=function(a){return a.N("html5_disable_tvos_widevine")||!a.useCobaltWidevine?!1:AA()?sza(a):!1};
g.Uya=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.SP.set(c.cueRangeSetIdentifier,null!=(d=c.playerCueRanges)?d:[])}};
oO=function(a){return!(!a.j||!a.j.isManifestless)};
xO=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=rL(a.j)};
Wya=function(a){return AA()&&sza(a)?!1:jO(a)&&g.SM(a.Ia)&&!a.isLivePlayback||!PL()||a.nB?!0:!1};
uza=function(a){a.loading=!0;a.eh=!1;if(Xya(a))g.uya(a.videoId).then(function(c){tza(a,c)}).then(function(){gO(a)});
else{JG(a.kb)||g.tG(new g.EB("DASH MPD Origin invalid: ",a.kb));var b=a.kb;b=g.Yj(b,{mpd_version:g.xL(a.Ia.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Yj(b,{pacing:0}));lva(b,a.Ia.experiments,a.isLivePlayback).then(function(c){a.isDisposed()||($ya(a,c,!0),RH("mrc",void 0,a.Ma),gO(a))},function(c){a.isDisposed()||(a.loading=!1,a.ra("dataloaderror",new aN("manifest.net.retryexhausted",{backend:"manifest",
rc:c.status},1)))});
RH("mrs",void 0,a.Ma)}};
tza=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={Vp:h.Vp},f=e.next())h.Vp=f.value,c.includes(h.Vp.itag)&&(h.Vp=Object.assign({},h.Vp),h.Vp.url=b.find(function(l){return function(m){return m.itag===l.Vp.itag}}(h)).url,h.Vp.signatureCipher="",d.push(h.Vp));
b=Yya(a,d);$ya(a,b);a.ya("dlr",{})}else a.ya("offsdm",{cotn:a.iL?a.iL.cotn:"0",cpn:a.clientPlaybackNonce})};
gO=function(a){a.isDisposed()||(a.loading=!1,a.ra("dataloaded"))};
$ya=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.H(a,b);b.bf=a.bf;b.nh=a.nh;b.Eb=a.Eb;b.md=a.md;b.pd=a.pd;a.Yx&&(b.Oa=new PJ(a.Yx));vza(a)&&a.Fa.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.Gl=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.ya,a),c?b.subscribe("refresh",a.EX,a):b.subscribe("cuepointsadded",a.pU,a));fI(b)?a.Om=!0:LL=void 0;b.isPremiere=a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable};
Aza=function(a,b){if(a.isDisposed())return nA();a.B=null;a.eb=null;a.od=null;kO(a,"html5_high_res_logging_always")&&(a.Ia.jg=!0);return wza(a,b).then(void 0,function(){return xza(a,b)}).then(void 0,function(){return yza(a)}).then(void 0,function(){return zza(a)})};
wza=function(a,b){var c=b||Wya(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.ya("skipDash",{dm:!!a.j,air:b,dd:a.nB,mss:PL(),"3pp":a.isExternallyHostedPodcast}),nA();vO(a)&&pva(a.j,a.isLivePlayback);kO(a,"html5_enable_cobalt_experimental_vp9_decoder")&&kwa(a.Ia.D);return oA().then(function(){return Isa(a.vx,wO(a),a.Ia.D,a.j,a.D,function(d){return a.ra("ctmp","fmtflt",d)},a.jL,nO(a)&&a.N("html5_enable_server_format_filter")).then(function(d){Bza(a,d);
a.vx.j=null;/^av/.test(a.clientPlaybackNonce)&&a.Cl&&a.ya("av1",a.Cl.j)})})};
xza=function(a,b){if(b&&a.hlsvp)return nA();if(a.hlsFormats){b=lO(a.hlsFormats);var c;if((null==(c=a.Cl)?0:c.u)&&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.Px=qxa(a.Ia,b);c=a.clientPlaybackNonce;var f,h,l,m;return vxa(a.Ia,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.xd,c,function(n){return a.ra("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],t=g.u(n),v=t.next();!v.done;v=t.next()){v=v.value;
var y=void 0;q.push(null==(y=v.Kh())?void 0:y.itag);var A=y=void 0;(null==(y=v.Kh())?void 0:null==(A=y.audio)?void 0:A.numChannels)>p&&(p=v.Kh().audio.numChannels)}2<p&&a.ya("hlschl",{mn:p});var E;(null==(E=a.Cl)?0:E.u)&&a.ya("hlsfmtaf",{itags:q.join(".")});var K;if(a.N("html5_enable_vp9_fairplay")&&(null==(K=a.D)?0:FL(K)))for(a.ya("drm",{sbdlfbk:1}),p=g.u(a.Go),q=p.next();!q.done;q=p.next())if(q=q.value,EL(q)){a.D=q;break}yO(a,n)})}return nA()};
yza=function(a){if(a.isExternallyHostedPodcast&&a.If){var b=lO(a.If);return b[0]?yxa(a.Ia,b[0]).then(function(c){yO(a,c)}):nA()}return a.Jl&&a.NW?xxa(a.Ia,a.isAd(),a.Jl).then(function(c){yO(a,c)}):nA()};
zza=function(a){if(a.isExternallyHostedPodcast)return nA();var b=lO(a.If,a.NK);if(a.hlsvp){var c=Gya(a.hlsvp,a.clientPlaybackNonce,a.xd);b.push(c)}return wxa(a.Ia,a.isAd(),b,Cza(a)).then(function(d){yO(a,d)})};
Bza=function(a,b){a.B=b;if(a.B){b=g.u(a.B.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;0!==d&&(a.zT[d]=c.id)}}b=a.getAvailableAudioTracks();b=b.concat(a.Im);for(c=0;c<a.OL.length;c++){d=a.OL[c];for(var e=0;e<b.length;e++){var f=b[e],h=f.Nc.id==d.audioTrackId;if(f.Nc.isDefault&&c==a.iU||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.B=a.captionTracks[d.defaultCaptionTrackIndex]);
void 0!==d.forcedCaptionTrackIndex&&(f.j=a.captionTracks[d.forcedCaptionTrackIndex]);f.u=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}}if(a.D&&a.B&&a.B.videoInfos&&!(0>=a.B.videoInfos.length)&&(b=KK(a.B.videoInfos[0]),b!=("fairplay"==a.D.flavor)))for(c=g.u(a.Go),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.D=d;break}};
yO=function(a,b){a.od=b;Bza(a,new aI(g.kn(a.od,function(c){return c.Kh()})))};
Cza=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Ia.j.c,cver:a.Ia.j.cver};a.Tx&&(b.ptk=a.Tx,b.oid=a.IZ,b.ptchn=a.jZ,b.pltype=a.YZ,a.xx&&(b.m=a.xx));return b};
g.zO=function(a){return jO(a)&&a.Ya?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.u&&a.u.me||null};
Dza=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.VG(b.text):a.paidContentOverlayText};
Eza=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Fe(b.durationMs):a.paidContentOverlayDurationMs};
AO=function(a){var b="";if(a.gL)return a.gL;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.kd?"window":"live");a.Re&&(b="post");return b};
g.BO=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
Fza=function(a){return!!a.Li||!!a.aO||!!a.Vx||!!a.Wx||a.FT||a.K.focEnabled||a.K.rmktEnabled};
Gza=function(a){return!!(a.kb||a.If||a.Jl||a.hlsvp||a.Ov())};
fO=function(a){if(a.N("html5_onesie")&&a.errorCode)return!1;var b=g.Fb(a.Fa,"ypc");a.ypcPreview&&(b=!1);return a.Fe()&&!a.loading&&(Gza(a)||g.Fb(a.Fa,"heartbeat")||b)};
lO=function(a,b){a=Sz(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};
gza=function(a,b){a.showShareButton=!!b;var c,d,e=(null==(c=g.Q(b,g.pO))?void 0:c.navigationEndpoint)||(null==(d=g.Q(b,g.pO))?void 0:d.command);e&&(a.Mo=!!g.Q(e,Hza))};
Iya=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.Ig=c);if(a.Ig){a.embeddedPlayerConfig=a.Ig.embeddedPlayerConfig||null;if(c=a.Ig.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.Ig.embedPreview){c=c.thumbnailPreviewRenderer;a.N("embeds_web_enable_video_data_refactoring_embedded_player_response")?
Txa(a,c.controlBgHtml):(d=c.controlBgHtml,null!=d?(a.Xl=d,a.Dd=!0):(a.Xl="",a.Dd=!1));if(d=c.defaultThumbnail)a.V=nN(d),a.N("embeds_web_enable_video_data_refactoring_embedded_player_response")||(a.sampledThumbnailColor=d.sampledThumbnailColor);(d=g.Q(null==c?void 0:c.videoDetails,Iza))&&lza(a,b,d);d=g.Q(null==c?void 0:c.videoDetails,g.Jza);a.hc=!!c.addToWatchLaterButton;gza(a,c.shareButton);if(null==d?0:d.musicVideoType)a.musicVideoType=d.musicVideoType;var e,f,h,l,m;if(d=g.Q(null==(e=a.Ig)?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.qO))Cxa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=Fe(c.videoDurationSeconds));c.webPlayerActionsPorting&&Sxa(a,c.webPlayerActionsPorting);if(e=g.Q(null==c?void 0:c.playlist,Kza)){a.yk=!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.VG(c.shortBylineText):"";var n=c.title?g.VG(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.Dd:!1,dni_color:l===h?a.Xl:""})}b={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:f};e.titleText&&(b.title=g.VG(e.titleText));e.shortBylineText&&(b.author=g.VG(e.shortBylineText));a.CT=b}var p,q,t;if(b=g.Q(null==(p=a.Ig)?void 0:
null==(q=p.embedPreview)?void 0:null==(t=q.thumbnailPreviewRenderer)?void 0:t.infoPanel,jza)){a.QK=Number(null==b?void 0:b.durationMs)||NaN;if(null==b?0:b.infoPanelOverviewViewModel)a.Wd=null==b?void 0:b.infoPanelOverviewViewModel;if(null==b?0:b.infoPanelDetailsViewModel)a.Fl=null==b?void 0:b.infoPanelDetailsViewModel}}if(a.Ig.previewPlayabilityStatus){if(a.Ux=a.Ig.previewPlayabilityStatus,p=a.Ux,!["OK","LIVE_STREAM_OFFLINE"].includes(p.status)){a.errorCode=Axa(p.errorCode);q=p.errorScreen;if(t=null==
q?void 0:q.playerErrorMessageRenderer){a.sB=t;if(b=t.reason)a.errorReason=g.VG(b);if(t=t.subreason)a.Vm=g.VG(t)}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 v;(null==q?0:null==(v=q.playerKavRenderer)?0:v.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=p.isBlockedInRestrictedMode?"5":"0"}}}else a.Ig.playabilityStatus&&(a.Lm=a.Ig.playabilityStatus,
Lza(a)&&(a.errorDetail="0",a.Lm&&((v=a.Lm.embeddedPlayerErrorMessageRenderer)?a.sB=g.Q(v,Mza):a.errorReason=a.Lm.reason||null)));(v=a.Ig.attestation)&&Lxa(a,v);(v=a.Ig.permissions)&&v.allowImaMonetization&&(a.allowImaMonetization=!0)}};
lza=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.Q(null==(e=g.Q(null==c?void 0:c.channelThumbnailEndpoint,Nza))?void 0:e.urlEndpoint,g.rO))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.Q(e,Oza)){if(d=e.title)b.title=g.VG(d);if(e=e.subtitle)b.subtitle=g.VG(e)}if(c=c.expandedRenderer)if(c=g.Q(c,Pza)){if(e=c.title)b.expanded_title=g.VG(e);if(e=c.subtitle)b.expanded_subtitle=g.VG(e);if(c=c.subscribeButton)a.subscribeButtonRenderer=
g.Q(c,g.CO),a.subscribeButtonRenderer&&(b.ucid=a.subscribeButtonRenderer.channelId,b.subscribed=a.subscribeButtonRenderer.subscribed,a.Il=!!a.subscribeButtonRenderer.notificationPreferenceToggleButton,a.subscribeButtonRenderer.notificationPreferenceToggleButton&&a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.cK=b.toggledServiceEndpoint||null,a.aK=b.defaultServiceEndpoint||
null):(a.cK=b.defaultServiceEndpoint||null,a.aK=b.toggledServiceEndpoint||null)))}};
g.DO=function(a){return mO(a)&&!a.allowLiveDvr};
EO=function(a){return mO(a)&&a.allowLiveDvr};
mO=function(a){return a.N("html5_live_head_playable")&&oO(a)&&"yt"===a.Ia.Ga?a.isLiveHeadPlayable:a.isLivePlayback};
g.FO=function(a){return!!a.j&&Sua(a.j)};
g.GO=function(a){return!!a.j&&Tua(a.j)};
vza=function(a){return a.RN()||g.HO(a)};
g.IO=function(a){return!!a.j&&Uua(a.j)};
g.HO=function(a){return!!a.j&&Vua(a.j)};
g.Qza=function(a){if(a.wR)return null;var b=a.fX;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.Rza=function(a){return a.wR?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.JO=function(a){return a.N("enable_wn_infocards")};
g.KO=function(a){var b,c,d,e;return(g.JO(a)?null==(b=a.Ad)?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.Sza=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};
LO=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.Ia.Fa};
g.MO=function(a){return"shortspage"===LO(a)};
NO=function(a){if(a.isAd()&&a.videoId!=a.Ia.Ke)return a.Ia.Ke};
OO=function(a){return a.jl||"detailpage"==LO(a)||"shortspage"==LO(a)||a.mutedAutoplay};
Tza=function(a){var b=a.N("enable_cleanup_masthead_autoplay_hack_fix");return b&&"adunit"==LO(a)?a.Op:OO(a)?"detailpage"==LO(a)||"shortspage"==LO(a)?a.isAutonav||0<a.Zb:b||"17_8"!==a.adFormat||a.isAutonav||g.TM(a.Ia)||a.Op?a.Wf?!1:a.Ia.Ji||a.Ia.Li||!g.xM(a.Ia)?!b&&"adunit"==LO(a)&&a.Li?!1:!0:!1:!1:(a.Wf?0:a.jg)&&g.xM(a.Ia)?!0:!1};
g.PO=function(a){return a.oauthToken||a.Ia.jk};
Uza=function(a){var b=1,c=g.xL(a.Ia.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;c=(null==(d=a.C)?void 0:d.audio.u)||a.Ri;if(a.N("html5_stateful_audio_normalization")&&null!=c){if(a.mT)return Math.min(1,Math.pow(10,-a.pE/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.Ia.Dm,g.xL(a.Ia.experiments,"html5_stateful_audio_min_adjustment_value")));a.pE=c}return Math.min(1,Math.pow(10,-c/20))||b};
vO=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===g.NL(a.Ia)&&"MUSIC"===a.Ia.j.ctheme;!a.sj&&(g.EM(a.Ia)||c)&&b.includes(a.musicVideoType)&&(a.sj=!0);if(b=g.zA())b=/Starboard\/([0-9]+)/.exec(g.nc()),b=10>(b?parseInt(b[1],10):NaN);c=a.Ia;c=("TVHTML5_CAST"===g.NL(c)||"TVHTML5"===g.NL(c)&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&"MUSIC"===a.Ia.j.ctheme;var d;if(d=!a.sj)c||(c=a.Ia,c="TVHTML5"===g.NL(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.sj=!0);return a.Ia.deviceIsAudioOnly||a.sj&&a.Ia.J};
Vza=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
QO=function(a){return!(!a.Km||!a.Ia.J)&&a.Ov()};
Wza=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
nO=function(a){if(a.ET||a.cotn||!a.j||a.j.isOtf)return!1;if(a.N("html5_use_sabr_requests_for_debugging"))return!0;var b=!a.j.Jc&&!a.uj(),c=b&&RO&&a.N("html5_enable_sabr_vod_streaming_xhr");b=b&&!RO&&a.N("html5_enable_sabr_vod_non_streaming_xhr");var d=a.Jc()&&!a.uj();var e=d&&RO&&a.N("html5_enable_sabr_live_streaming_xhr")&&a.N("html5_sabr_live");d=d&&!RO&&a.N("html5_enable_sabr_live_non_streaming_xhr")&&a.N("html5_sabr_live");var f=a.Jc()&&"ULTRALOW"!==a.latencyClass&&!a.isLowLatencyLiveStream,h=
e&&a.Re&&a.N("html5_sabr_post_live"),l=e&&a.isPremiere&&a.N("html5_sabr_premiere");f=(g.DO(a)||EO(a))&&f;var m=(g.DO(a)||EO(a))&&a.isLowLatencyLiveStream&&a.N("html5_sabr_live_low_latency"),n=(g.DO(a)||EO(a))&&"ULTRALOW"===a.latencyClass&&a.N("html5_sabr_live_ultra_low_latency");e=e&&(h||l||f||m||n)||d;d=a.N("html5_enable_sabr_drm_vod_streaming_xhr")&&a.uj()&&!a.j.Jc&&RO;(c=c||b||e||d)&&!a.Yx&&a.ya("sabr",{loc:"m"});return c&&!!a.Yx};
SO=function(a){return a.DT&&nO(a)};
Xya=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.TN(b);return b&&!a.Km};
g.TO=function(a){if(!a.j||!a.u||!a.C)return!1;var b=a.j.j;return!!b[a.u.id]&&sI(b[a.u.id].u.j)&&!!b[a.C.id]&&sI(b[a.C.id].u.j)};
Xza=function(a){return a.Ux?["OK","LIVE_STREAM_OFFLINE"].includes(a.Ux.status):!0};
Lza=function(a){return(a=a.Lm)&&a.showError?a.showError:!1};
kO=function(a,b){return a.N(b)?!0:(a.fflags||"").includes(b+"=true")};
Pya=function(a){return a.N("html5_heartbeat_iff_heartbeat_params_filled")};
Yza=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
Nya=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.Wx=new jya(b));if(b=b.video_masthead_ad_quartile_urls)a.aO=b.quartile_0_url,a.yR=b.quartile_25_url,a.zR=b.quartile_50_url,a.BR=b.quartile_75_url,a.D_=b.quartile_100_url,a.Vx=b.quartile_0_urls,a.lO=b.quartile_25_urls,a.sO=b.quartile_50_urls,a.HO=b.quartile_75_urls,a.cO=b.quartile_100_urls};
Mya=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};
Mxa=function(a){if(a){if(zra(a))return a;a=Ara(a);if(zra(a,!0))return a}return""};
g.Zza=function(a){return a.captionsLanguagePreference||a.Ia.captionsLanguagePreference||g.BO(a,"yt:cc_default_lang")||a.Ia.nj};
UO=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
g.sO=function(a){var b;return a.nx||(null==(b=a.suggestions)?void 0:b[0])||null};
VO=function(a,b){this.j=a;this.qa=b||{};this.K=String(Math.floor(1E9*Math.random()));this.J={};this.oa=this.ea=0};
$za=function(a){return WO(a)&&1==a.getPlayerState(2)};
WO=function(a){a=a.td();return void 0!==a&&2==a.getPlayerType()};
aAa=function(a){a=a.W();return IM(a)&&!g.SM(a)&&"desktop-polymer"==a.playerStyle};
XO=function(a,b){var c=a.W();g.BM(c)||"3"!=c.controlsType||a.qb().OE(b)};
ZO=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=YO(a)};
YO=function(a){var b=":"+(Tr.getInstance().j++).toString(36);return a+b};
$O=function(a){this.Z=a};
bAa=function(a,b){if(0===b||1===b&&(a.Z.u&&g.dC?0:a.Z.u||g.SM(a.Z)||g.JM(a.Z)||KM(a.Z)||!g.dC))return!0;a=g.Ne("video-ads");return null!=a&&"none"!==Xn(a,"display")};
cAa=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}};
dAa=function(){g.SG.call(this);var a=this;this.j={};g.tb(this,function(){for(var b=g.u(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
aP=function(){if(null===eAa){eAa=new dAa;nn(vq).u="b";var a=nn(vq),b="h"==oq(a)||"b"==oq(a),c=!(sn(),!1);b&&c&&(a.D=!0,a.J=new Bja)}return eAa};
fAa=function(a,b,c){a.j[b]=c};
bP=function(a,b,c){this.j=a;this.D=b;this.B=c;this.u=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
cP=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)};
dP=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"};
eP=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||[]]])};
gAa=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}};
hAa=function(a){return(a=a.pings)?Object.fromEntries(eP(a)):{}};
fP=function(a,b,c,d,e){VO.call(this,a,hAa(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Va=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.B=new bP(0,[]);this.Fa=null;this.C={};this.Ga=null;this.u=0;this.V=null;this.Ba=e;this.Oa=null;c=this.j.skipOffsetMilliseconds||0;0<c&&(this.Ga=c);this.C=Rz(this.j.playerVars||"");this.V=this.j.externalVideoId||null;this.u=NA(this.u,this.C.length_seconds);this.Ba&&this.V&&(this.Oa=this.Ba(this.V));if(this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=
JSON.parse(this.C.cta_conversion_urls)}catch(f){g.sG(f)}this.Fa=this.j.clickthroughEndpoint||null;this.B=new bP(0,[this.u])};
iAa=function(a){var b=a.C||{};1<a.B.u&&(b.slot_pos=a.B.j);b.autoplay="1";return b};
gP=function(a){if(!a)return[];var b=[];a=g.u(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.u(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
hP=function(a){if(!a)return[];var b=[];a.forEach(function(c){c.command.loggingUrls.forEach(function(d){b.push({baseUrl:d.baseUrl,offsetMilliseconds:c.adVideoOffset.milliseconds})})});
return b};
iP=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
jP=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
jAa=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=gP(a.impressionCommands)||[];b.error=gP(a.errorCommands)||[];b.mute=gP(a.muteCommands)||[];b.unmute=gP(a.unmuteCommands)||[];b.pause=gP(a.pauseCommands)||[];b.rewind=gP(a.rewindCommands)||[];b.resume=gP(a.resumeCommands)||[];b.skip=gP(a.skipCommands)||[];b.close=gP(a.closeCommands)||[];b.clickthrough=gP(a.clickthroughCommands)||[];b.fullscreen=gP(a.fullscreenCommands)||[];b.active_view_viewable=gP(a.activeViewViewableCommands)||
[];b.active_view_measurable=gP(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=gP(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];a.activeViewTracking&&(b.audio_audible=gP(a.activeViewTracking.activeViewAudioAudibleCommands)||[],b.audio_measurable=gP(a.activeViewTracking.activeViewAudioMeasurableCommands)||[]);b.end_fullscreen=gP(a.endFullscreenCommands)||[];b.channel_clickthrough=gP(a.channelClickthroughCommands)||[];b.abandon=gP(a.abandonCommands)||
[];b.progress=hP(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=hP(a.progressCommands.filter(function(c){return jP(c)&&se(iP(c),0)}));
b.first_quartile=hP(a.progressCommands.filter(function(c){return jP(c)&&se(iP(c),.25)}));
b.midpoint=hP(a.progressCommands.filter(function(c){return jP(c)&&se(iP(c),.5)}));
b.third_quartile=hP(a.progressCommands.filter(function(c){return jP(c)&&se(iP(c),.75)}));
b.complete=hP(a.progressCommands.filter(function(c){return jP(c)&&se(iP(c),1)}));
return b};
mP=function(a){VO.call(this,a,jAa(a));a.questions&&a.questions.reduce(function(b,c){return(c=g.Q(c,kP)||g.Q(c,lP))?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0)};
oP=function(a,b){var c={};kAa(a,c,b);lAa(c);c.LACT=nP(function(){return sF().toString()});
c.VIS=nP(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=nP(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
mAa=function(a,b){var c={};if(b)return c;if(!a.kind)return g.sG(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.sG(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=nP(Kd(Math.round(Fe(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=nP(Kd("0"));return c};
nP=function(a){return{toString:function(){return a()}}};
nAa=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.id(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};
kAa=function(a,b,c){b.CPN=nP(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.tG(Error("Video data is null.")),d=null);return d});
b.AD_MT=nP(function(){return Math.round(Math.max(0,1E3*(null!=c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=nP(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=nP(function(){return a.qb().fk().height.toString()});
b.P_W=nP(function(){return a.qb().fk().width.toString()});
b.PV_H=nP(function(){return a.qb().getVideoContentRect().height.toString()});
b.PV_W=nP(function(){return a.qb().getVideoContentRect().width.toString()})};
lAa=function(a){a.CONN=nP(Kd("0"));a.WT=nP(function(){return Date.now().toString()})};
oAa=function(a){var b=Object.assign({},{});b.MIDROLL_POS=a.C()?nP(Kd(Math.round(a.j().start/1E3).toString())):nP(Kd("0"));return b};
pAa=function(a){var b={};b.SLOT_POS=nP(Kd(a.B.j.toString()));return b};
qAa=function(a){var b=a&&g.ic(a,"load_timeout")?"402":"400",c={};return c.YT_ERROR_CODE=(3).toString(),c.ERRORCODE=b,c.ERROR_MSG=a,c};
pP=function(a){for(var b={},c=g.u(rAa),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
qP=function(){var a={};Object.assign.apply(Object,[a].concat(g.qa(g.Ia.apply(0,arguments))));return a};
sAa=function(){};
tAa=function(a,b,c,d,e){var f,h,l,m,n,p,q,t,v,y,A;g.Ha(function(E){switch(E.j){case 1:f=!!b.scrubReferrer;h=g.zq(b.baseUrl,nAa(c,f,d));l={};if(!b.headers){E.Ka(2);break}m=a.j();if(!m.j){n=m.getValue();E.Ka(3);break}return g.z(E,m.j,4);case 4:n=E.u;case 3:p=n;q=g.u(b.headers);for(t=q.next();!t.done;t=q.next())switch(v=t.value,v.headerType){case "VISITOR_ID":g.Fz("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.Fz("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Fz("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]=
g.Fz("EOM_VISITOR_DATA"));break;case "USER_AUTH":p&&(l.Authorization="Bearer "+p);break;case "PLUS_PAGE_ID":(y=a.B())&&(l["X-Goog-PageId"]=y);break;case "AUTH_USER":A=a.u();a.N("move_vss_away_from_login_info_cookie")&&!p&&A&&(l["X-Goog-AuthUser"]=A,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.wD(h,void 0,f,0!==Object.keys(l).length?
l:void 0,"",!0,e),g.xa(E)}})};
rP=function(a){this.Vl=a};
vAa=function(a,b){var c=void 0===c?!0:c;var d=g.Fz("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.Sj(window.location.href);e&&d.push(e);e=g.Sj(a);if(g.Fb(d,e)||!e&&cc(a,"/"))if(d=document.createElement("a"),g.ne(d,a),a=d.href)if(a=Tj(a),a=nfa(a))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.sH()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&uAa(a,b,f)}else uAa(a,b)};
uAa=function(a,b,c){a="ST-"+Ee(a).toString(36);b=b?g.Xj(b):"";c=c||5;KA()&&g.rA(a,b,c)};
g.wAa=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;d=d.location;a=g.Yj(a,b)+c;var e=void 0===e?iga:e;e=jga(a,e)||Qba;e=$k(e);void 0!==e&&(d.href=e)};
g.xAa=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.Fz("EVENT_ID");d&&(b.ei||(b.ei=d));b&&vAa(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.wAa(a))};
g.sP=function(a,b,c,d){c&&vAa(a,c);c=g.be(a);c=g.$d(c);a!=c&&Oz(Error("Unsafe window.open URL: "+a));a=c;b=b||Ee(a).toString(36);try{var e;if("2"===(null==(e=Rz(a))?void 0:e.ase)){Oz(Error("Queries for attributionsrc label registration when opening a window."));a=yAa(a);window.open(a,b,"attributionsrc");return}}catch(h){g.Mz(h)}if(d){a=yAa(a);try{var f=encodeURIComponent(d);window.open(a,b,"attributionsrc="+f);return}catch(h){g.Mz(h)}}window.open(a,b)};
yAa=function(a){if("www.googleadservices.com"!==g.Sj(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"};
tP=function(a){this.Uu=a};
AAa=function(a,b,c,d,e,f){e=void 0===e?new tP(new rP(d.getVideoData(1))):e;f=void 0===f?!1:f;g.G.call(this);this.ad=a;this.C=b;this.macros=c;this.u=d;this.ym=e;this.daiEnabled=f;this.j={fK:.25,SECOND:.5,dL:.75};this.B=null;this.progressPings=Array.from(this.ad.qa.progress||[]);this.progressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
this.unmutedProgressPings=Array.from(this.ad.qa.unmuted_progress||[]);this.unmutedProgressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
zAa(dP(a.j.pings))};
EAa=function(a,b){uP(a)||(a.daiEnabled?(BAa(a,0,!0),CAa(a,b,b)):(BAa(a,0,!0),DAa(a,0,0,!0)),vP(a,"complete"))};
BAa=function(a,b,c){for(c=void 0===c?!1:c;a.ad.ea<a.progressPings.length;){var d=wP(a,"progress"),e=a.progressPings[a.ad.ea];if(e.offsetMilliseconds<=1E3*b||c)(e=e.baseUrl)&&FAa(a,e,d),a.ad.ea++;else break}};
GAa=function(a,b,c){for(c=void 0===c?!1:c;a.ad.oa<a.unmutedProgressPings.length;){var d=wP(a,"unmuted_progress"),e=a.unmutedProgressPings[a.ad.oa];if(e.offsetMilliseconds<=1E3*b||c)(e=e.baseUrl)&&FAa(a,e,d),a.ad.oa++;else break}};
DAa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.j.fK||d)&&vP(a,"first_quartile");(b>=c*a.j.SECOND||d)&&vP(a,"midpoint");(b>=c*a.j.dL||d)&&vP(a,"third_quartile")};
HAa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.j.fK||d)&&vP(a,"unmuted_first_quartile");(b>=c*a.j.SECOND||d)&&vP(a,"unmuted_midpoint");(b>=c*a.j.dL||d)&&vP(a,"unmuted_third_quartile")};
xP=function(a,b,c,d){if(null==a.B){if(c<d||1<c-d)return}else if(a.B>d||d>c)return;vP(a,b)};
CAa=function(a,b,c){if(0<c&&0<b){var d=a.u.Nb(a.u.getPresentingPlayerType());g.yP(d,16)||g.yP(d,32)||(xP(a,"first_quartile",b,c*a.j.fK),xP(a,"midpoint",b,c*a.j.SECOND),xP(a,"third_quartile",b,c*a.j.dL))}a.B=b};
zP=function(a,b){for(var c=wP(a,b),d=g.u(a.ad.qa[b]||[]),e=d.next();!e.done;e=d.next())(e=e.value.baseUrl)&&FAa(a,e,c);a.ad.J[b]=!0};
vP=function(a,b){a.ad.J.hasOwnProperty(b)||zP(a,b)};
AP=function(a,b){return a.ad.J.hasOwnProperty(b)};
FAa=function(a,b,c){for(var d=a.ym,e=d.send,f={},h=oP(a.u),l=g.u(Object.keys(h)),m=l.next();!m.done;m=l.next())m=m.value,f[m]=h[m].toString();if(h=a.u.getVideoData(2))f.AD_CPN=h.clientPlaybackNonce;a=Object.assign(f,a.macros);e.call(d,b,a,c)};
wP=function(a,b){var c=a.C;a=a.ad;if(a.D())if(b=IAa(b),null==b)c={};else{var d;(d=a.Ma()())||(d=(d=c.I)&&d.td?(d=d.td())&&2==d.getPlayerType()?BP(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.I.isFullscreen()},c=yq(b,a.K,c)):c={}}else c={};return c?Object.assign({},c):{}};
uP=function(a){return a.daiEnabled&&!AP(a,"impression")};
CP=function(a){return a.daiEnabled&&AP(a,"seek")};
DP=function(a,b){a.daiEnabled?zP(a,b):vP(a,b)};
g.EP=function(a,b){this.state=a;this.qw=b};
FP=function(a,b){return g.yP(a.state,b)&&!g.yP(a.qw,b)?1:!g.yP(a.state,b)&&g.yP(a.qw,b)?-1:0};
g.GP=function(a,b){return 0<FP(a,b)};
HP=function(a,b,c,d,e,f){f=void 0===f?0:f;g.SG.call(this);this.I=a;this.jb=d;this.j=e;this.j.j[b.K]=this;this.j.subscribe("adactiveviewmeasurable",this.xY,this);this.j.subscribe("adfullyviewableaudiblehalfdurationimpression",this.yY,this);this.j.subscribe("adoverlaymeasurableimpression",this.zY,this);this.j.subscribe("adoverlayunviewableimpression",this.AY,this);this.j.subscribe("adoverlayviewableendofsessionimpression",this.BY,this);this.j.subscribe("adoverlayviewableimmediateimpression",this.CY,
this);this.j.subscribe("adviewableimpression",this.DY,this);this.ad=b;this.qa=[];this.macros=c;this.K=!1;this.Ba=!bAa(new $O(this.I.W()),f);this.B=!1};
KAa=function(a,b){g.Nb(a.qa,b);JAa(a,b,1)};
JAa=function(a,b,c){0!=b.length&&(b=g.kn(b,function(d){return new RG(d,c,d.id)}),a.ra("onAdUxUpdate",b))};
LAa=function(a){var b={};b.abandon=a.abandonCommands&&gP(a.abandonCommands.commands)||[];VO.call(this,a,b)};
IP=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;ZO.call(this,"ad-action-interstitial",a,b,c,d);this.interactionLoggingClientData=d;this.EQ=e;this.sJ=f};
MAa=function(a,b,c,d,e,f){HP.call(this,a,b,c,d,e,1);this.C=b;this.u=b.j.durationMilliseconds||0;this.Lc=null;this.D=f};
NAa=function(a){VO.call(this,a);this.u=Rz(this.j.playerVars||"")};
OAa=function(a,b,c){this.B=a;this.j=b;this.u=c};
PAa=function(a,b,c,d,e){HP.call(this,a,b,c,d,e);var f=this;this.D=b;this.u=new g.Kq(function(){f.mp("load_timeout")},1E4);
g.H(this,this.u);this.C=new lB(this);g.H(this,this.C)};
QAa=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(!fF(a.Ea,c.value))return!1;return!0};
RAa=function(a){return null!=(null==a?void 0:a.durationMs)&&0<(null==a?void 0:a.durationMs)};
JP=function(a){return!!(a.L5&&a.slot&&a.layout)};
SAa=function(a,b,c){ZO.call(this,"ad-message",a,void 0,b,c)};
TAa=function(a,b,c,d,e,f,h,l){HP.call(this,a,b,c,d,e);var m=this;this.u=b;this.V=b.j.durationMs||0;this.J=l;this.ea=!1;this.D=this.C=0;this.oa=function(){var n=m.I.getProgressState().current;n<m.C?m.Jq():n>m.D&&m.Si()}};
WAa=function(a,b){if(a.J&&a.ea){a.ea=!1;var c=a.u.j;if(JP(c)){var d=c.slot;c=c.layout;b=UAa(b);a=g.u(a.J.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,h=c,l=b;KP(e.j(),f,h,l);VAa(e.j(),f)}}else g.tG(Error("adMessageRenderer is not augmented on termination"))}};
UAa=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return g.tG(Error("AdNotify abandoned")),"abandoned";default:return g.tG(Error("Unexpected eventType for adNotify exit")),"abandoned"}};
g.LP=function(a,b,c){void 0===c?delete a[b.name]:a[b.name]=c};
g.MP=function(a,b){for(var c=g.u(Object.keys(b)),d=c.next(),e={};!d.done;e={UJ:e.UJ},d=c.next())d=d.value,e.UJ=b[d],a=a.replace(new RegExp("\\$"+d,"gi"),function(f){return function(){return f.UJ}}(e));
return a};
XAa=function(a,b,c,d){this.j=a;this.C=b;this.u=oP(c);this.B=d};
YAa=function(a){for(var b={},c=g.u(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.u[d].toString();return Object.assign(b,a.C)};
ZAa=function(a,b,c,d){new XAa(a,b,c,d)};
$Aa=function(a,b,c,d,e,f,h,l,m){HP.call(this,a,b,c,d,e,1);var n=this;this.xH=!0;this.J=m;this.u=b;this.C=f;this.ea=new lB(this);g.H(this,this.ea);this.D=new g.Kq(function(){n.mp("load_timeout")},1E4);
g.H(this,this.D);this.V=h};
aBa=function(a){if(a.V&&(a.I.W().experiments.sb("enable_topsoil_wta_for_halftime")||a.I.W().experiments.sb("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.u.B,c=b.C,d=b.B,e=b.j;b=b.D;if(void 0===c)g.sG(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.sG(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,h){return f+h},0),Math.min(Math.max((d-c)/1E3-e,0),a.u.u)}};
hBa=function(a,b){if(null!==a.J){var c=bBa(a);a=g.u(a.J.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;d.j||"aderror"!==f||(cBa(d,e,[],!1),dBa(d.B(),d.u),eBa(d.B(),d.u),fBa(d.B(),d.u),h=!0);if(d.j&&d.j.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}KP(d.B(),d.u,d.j,e);if(h){e=d.B();h=d.u;NP(e.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.u(e.Jd);for(f=e.next();!f.done;f=e.next())f.value.Ej(h);
VAa(d.B(),d.u)}d.Da.get().I.W().N("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&gBa(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}};
iBa=function(a){return(a=a.I.getVideoData(2))?a.clientPlaybackNonce:""};
bBa=function(a){if(a=a.u.j.elementId)return a;g.sG(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
jBa=function(a){function b(f,h){f=a.z9;var l=Object.assign({},{});l.FINAL=nP(Kd("1"));l.SLOT_POS=nP(Kd("0"));return qP(f,pP(l),h)}
function c(f){return null==f?{create:function(){return null}}:{create:function(h,l,m){var n=b(h,l);
l=a.dR(h,n);h=f(h,n,l,m);g.H(h,l);return h}}}
var d=c(function(f,h,l){return new MAa(a.I,f,h,l,a.rC,a.Hh)});
c(function(f,h,l){return new TAa(a.I,f,h,l,a.rC,a.Hh,a.xn,a.er)});
var e=c(function(f,h,l){return new PAa(a.I,f,h,l,a.rC,a.Hh)});
this.n3=new OAa({create:function(f,h){var l=qP(b(f,h),pP(pAa(f)));h=a.dR(f,l);f=new $Aa(a.I,f,l,h,a.rC,a.Hh,a.daiEnabled,function(){return new ZAa(a.Hh,l,a.I,a.ym)},a.gr,a.Qi);
g.H(f,h);return f}},d,e)};
OP=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b};
kBa=function(a,b){var c=a.startSecs+a.Yh;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{b4:new kr(b,c),K5:new FG(b,c-b,a.context,a.identifier,a.event,a.j)}};
lBa=function(){this.j=[]};
mBa=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]};
nBa=function(){this.j=new lBa};
oBa=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()};
qBa=function(a,b,c){a.j&&pBa({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
rBa=function(a,b){a.j&&pBa({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.A3}})};
pBa=function(a){g.UB("adsClientStateChange",a)};
PP=function(a){this.I=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.yg=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
tBa=function(a,b,c,d,e,f){f();var h=a.I.getVideoData(1),l=a.I.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId,a.j=h.J);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=d?f():(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==a.actionType&&(a.yg=!0,NH("_start",a.actionType)&&sBa(a)))};
uBa=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)){RH("ad_i");g.OH({isMonetized:!0});break}};
sBa=function(a){if(a.yg)if(a.I.N("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.B&&"video_to_ad"===a.actionType)MH("video_to_ad");else if(a.I.N("web_csi_via_jspb")){var b=new bz;b=N(b,8,2);var c=new dz;c=N(c,21,vBa(a.B));c=N(c,7,4);b=oi(c,bz,22,b);b=N(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&O(b,76,a.contentCpn),a.videoId&&O(b,78,a.videoId)):(a.adCpn&&O(b,76,a.adCpn),a.adVideoId&&O(b,78,a.adVideoId));a.adFormat&&O(b,12,a.adFormat);a.contentCpn&&
O(b,8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&O(b,28,a.adCpn);a.adVideoId&&O(b,20,a.adVideoId);g.Nz(HH)(b,a.actionType)}else b={adBreakType:wBa(a.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),a.adFormat&&(b.adType=
a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),g.OH(b,a.actionType)};
wBa=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"}};
vBa=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}};
g.yBa=function(a){return(a=xBa[a.toString()])?a:"LICENSE"};
g.RP=function(a){g.QP?a=a.keyCode:(a=a||window.event,a=a.keyCode?a.keyCode:a.which);return a};
SP=function(a){if(g.QP)a=new g.te(a.pageX,a.pageY);else{a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&("number"!==typeof b&&(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),"number"!==typeof c&&(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));a=new g.te(b,c)}return a};
g.TP=function(a){return g.QP?a.target:pna(a)};
g.UP=function(a){g.QP?a=a.defaultPrevented:(a=a||window.event,a=!1===a.returnValue||a.tW&&a.tW());return a};
zBa=function(a,b){if(g.QP){var c=function(){var d=g.Ia.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.qa(d))};
a.addEventListener("playing",c)}else g.sna(a,"playing",b)};
g.VP=function(a){g.QP?a.preventDefault():qna(a)};
WP=function(){g.G.call(this);this.rH=!1;this.B=null;this.V=this.K=!1;this.D=new g.Hd;this.va=null;g.H(this,this.D)};
ABa=function(a){a=a.NC();return 1>a.length?NaN:a.end(a.length-1)};
BBa=function(a){!a.u&&Eua()&&(a.C?a.C.then(function(){return BBa(a)}):a.Of()||(a.u=a.kt()))};
CBa=function(a){a.u&&(a.u.dispose(),a.u=void 0)};
iL=function(a,b,c){var d;(null==(d=a.va)?0:d.Id())&&a.va.ya("rms",b,void 0===c?!1:c)};
DBa=function(a,b,c){a.Bo()||a.getCurrentTime()>b||10<c||(a.play(),g.bA(function(){DBa(a,a.getCurrentTime(),c+1)},500))};
EBa=function(a,b){a.B&&a.B.equals(b)||(a.B&&a.B.dispose(),a.B=b)};
XP=function(a){return $K(a.Jh(),a.getCurrentTime())};
FBa=function(a,b){if(0===a.Qj()||0<a.tf())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.NC(),a.length||!c)?XK(a,b):c};
HBa=function(a){a.Of()&&(GBa&&a.va&&a.va.Au("rs_s"),MC&&0<a.getCurrentTime()&&a.seekTo(0),a.bJ(),a.load(),EBa(a,null));delete a.C};
IBa=function(a){switch(a.tf()){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.YP=function(a,b,c){this.gh=void 0===b?null:b;this.seekSource=void 0===c?null:c;this.state=a||64};
ZP=function(a,b,c,d){if(!(b===a.state&&c===a.gh&&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.YP(b,c,e?d?d:a.seekSource:null)}return a};
$P=function(a,b,c){return ZP(a,a.state|b,null,void 0===c?null:c)};
aQ=function(a,b){return ZP(a,a.state&~b,null,null)};
bQ=function(a,b,c,d){return ZP(a,(a.state|b)&~c,null,void 0===d?null:d)};
g.yP=function(a,b){return!!(a.state&b)};
g.JBa=function(a,b){return b.state===a.state&&b.gh===a.gh};
g.cQ=function(a){return g.yP(a,4)};
g.dQ=function(a){return g.yP(a,8)&&!g.yP(a,2)&&!g.yP(a,1024)};
KBa=function(a){return a.wd()&&!g.yP(a,16)&&!g.yP(a,32)};
g.eQ=function(a){return g.yP(a,1)&&!g.yP(a,2)};
fQ=function(a){return g.yP(a,128)?-1:g.yP(a,2)?0:LBa&&g.yP(a,2048)?3:g.yP(a,64)?-1:g.yP(a,1)&&!g.yP(a,32)?3:g.yP(a,8)?1:g.yP(a,4)?2:-1};
gQ=function(a,b,c,d,e,f,h,l){g.SG.call(this);this.gq=a;this.I=b;this.u=d;this.C=this.u.J()instanceof VO?this.u.J():null;this.j=null;this.D=!1;this.B=c;this.J=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.Av=e;this.wG=f;this.NB=h;this.K=!1;this.daiEnabled=l;wG("AdPlacementCoordinator constructed")};
NBa=function(a){a.daiEnabled&&!a.u.D&&(MBa(a,a.M4()),a.u.D=!0)};
MBa=function(a,b){for(var c=OBa(a),d=a.u.j().start,e=[],f=g.u(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=PBa(h);e.push({externalVideoId:h.ud(),originalMediaDurationMs:(1E3*h.u).toString(),trimmedMediaDurationMs:(parseInt(h.j.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.B.C=a.u.j().start;h.B.B=c;if(!QBa(a,h,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+PBa(p)},0);
qBa(a.Av,a.u.j().Ym(),b);rBa(a.Av,{cueIdentifier:a.u.B()&&a.u.B().identifier,A3:e})};
PBa=function(a){var b=1E3*a.u;return 0<parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10):b};
OBa=function(a){var b=a.u.j().end;a=mBa(a.wG,a.u.j().start,b);return Math.min(b,null===a?Infinity:a)};
QBa=function(a,b,c,d){var e=a.NB.create(b,pP(oAa(a.u)),a.u.u());c=e.QU(c,d);g.qb(e);if(!c)return!1;a.u.ea(c,b);return!0};
RBa=function(){var a=Math.floor(g.eb()/1E3)-0;return function(b){b.seekTo(b.getCurrentTime()+a,!0,void 0,1)}};
SBa=function(a,b){this.j=a;this.u=b};
TBa=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};
UBa=function(a){fD.call(this,1,arguments);this.csn=a};
$Ba=function(a,b,c,d,e,f,h,l){function m(){g.tG(new g.EB("newScreen() parent element does not have a VE - rootVe",b))}
var n=VBa(),p=new oH({veType:b,youtubeData:f,jspbYoutubeData:void 0});f=hQ({},n);e&&(f.cttAuthInfo=e);if(g.Hz("il_via_jspb")){e=jma((new Sy).j(n),p.getAsJspb());c&&c.visualElement?(p=new Ry,c.clientScreenNonce&&O(p,2,c.clientScreenNonce),ima(p,c.visualElement.getAsJspb()),h&&N(p,4,WBa[h]),oi(e,Ry,5,p)):c&&m();d&&O(e,3,d);if(g.Hz("expectation_logging")&&l&&l.screenCreatedLoggingExpectations){c=new au;l=g.u(l.screenCreatedLoggingExpectations.expectedParentScreens||[]);for(d=l.next();!d.done;d=l.next())d=
d.value,d.screenVeType&&(d=hma(new Zt,d.screenVeType),c.j(d));oi(e,au,7,c)}ara(e,f,a)}else e={csn:n,pageVe:p.getAsJson()},g.Hz("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?iG("screenCreated",e,a,f):g.UB("screenCreated",e,f);iD(XBa,new UBa(n));
iQ.clear();YBa.clear();ZBa.clear();return n};
g.jQ=function(a,b,c,d,e){g.aCa(a,b,c,[d],void 0===e?!1:e)};
g.aCa=function(a,b,c,d,e){e=void 0===e?!1:e;for(var f=hQ({cttAuthInfo:tH(b)||void 0},b),h=g.u(d),l=h.next();!l.done;l=h.next()){l=l.value;var m=l.getAsJson();(g.id(m)||!m.trackingParams&&!m.veType)&&g.tG(Error("Child VE logged with no data"));if(g.Hz("no_client_ve_attach_unless_shown")){var n=kQ(l,b);if(m.veType&&!YBa.has(n)&&!ZBa.has(n)&&!e){iQ.set(n,[a,b,c,l]);return}l=kQ(c,b);iQ.has(l)?bCa(c,b):ZBa.set(l,!0)}}d=d.filter(function(q){q.csn!==b?(q.csn=b,q=!0):q=!1;return q});
if(g.Hz("il_via_jspb")){var p=kma((new Ty).j(b),c.getAsJspb());g.kn(d,function(q){q=q.getAsJspb();ui(p,3,px,q)});
"UNDEFINED_CSN"===b?lQ("visualElementAttached",f,void 0,p):cra(p,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.kn(d,function(q){return q.getAsJson()})},"UNDEFINED_CSN"===b?lQ("visualElementAttached",f,c):a?iG("visualElementAttached",c,a,f):g.UB("visualElementAttached",c,f)};
dCa=function(a,b,c,d,e,f){cCa(c,b);d=hQ({cttAuthInfo:tH(b)||void 0},b);g.Hz("il_via_jspb")?(e=(new Wy).j(b),c=c.getAsJspb(),c=oi(e,px,2,c),c=N(c,4,1),f&&oi(c,Qy,3,f),"UNDEFINED_CSN"===b?lQ("visualElementShown",d,void 0,c):rG(c,d,a)):(f={csn:b,ve:c.getAsJson(),eventType:1},e&&(f.clientData=e),"UNDEFINED_CSN"===b?lQ("visualElementShown",d,f):a?iG("visualElementShown",f,a,d):g.UB("visualElementShown",f,d))};
eCa=function(a,b,c,d){var e=(d=void 0===d?!1:d)?16:8,f=hQ({cttAuthInfo:tH(b)||void 0,endOfSequence:d},b);g.Hz("il_via_jspb")?(e=(new Vy).j(b),c=c.getAsJspb(),c=oi(e,px,2,c),N(c,4,d?16:8),"UNDEFINED_CSN"===b?lQ("visualElementHidden",f,void 0,c):Yqa(c,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},"UNDEFINED_CSN"===b?lQ("visualElementHidden",f,d):a?iG("visualElementHidden",d,a,f):g.UB("visualElementHidden",d,f))};
gCa=function(a,b,c,d,e){fCa(a,b,c,d,e)};
fCa=function(a,b,c,d,e){var f=void 0;cCa(c,b);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var h=hQ({cttAuthInfo:tH(b)||void 0},b);g.Hz("il_via_jspb")?(d=(new Uy).j(b),c=c.getAsJspb(),c=oi(d,px,2,c),N(c,4,WBa[f]),e&&oi(c,Qy,3,e),"UNDEFINED_CSN"===b?lQ("visualElementGestured",h,void 0,c):Zqa(c,h,a)):(e={csn:b,ve:c.getAsJson(),gestureType:f},d&&(e.clientData=d),"UNDEFINED_CSN"===b?lQ("visualElementGestured",h,e):a?iG("visualElementGestured",e,a,h):g.UB("visualElementGestured",e,h))};
hCa=function(){var a;g.Hz("enable_web_96_bit_csn")?a=Gra():g.Hz("enable_web_96_bit_csn_no_crypto")?a=Gra(!1):a=g.gg(g.fg(Math.random()+""),3);return a};
lQ=function(a,b,c,d){mQ.push({payloadName:a,payload:c,Gt:d,options:b});iCa||(iCa=lD(XBa,jCa))};
jCa=function(a){if(mQ){for(var b=g.u(mQ),c=b.next();!c.done;c=b.next())if(c=c.value,g.Hz("il_via_jspb")&&c.Gt)switch(c.Gt.j(a.csn),c.payloadName){case "screenCreated":ara(c.Gt,c.options);break;case "visualElementAttached":cra(c.Gt,c.options);break;case "visualElementShown":rG(c.Gt,c.options);break;case "visualElementHidden":Yqa(c.Gt,c.options);break;case "visualElementGestured":Zqa(c.Gt,c.options);break;case "visualElementStateChanged":$qa(c.Gt,c.options);break;default:g.tG(new g.EB("flushQueue unable to map payloadName to JSPB setter"))}else c.payload&&
(c.payload.csn=a.csn,g.UB(c.payloadName,c.payload,c.options));mQ.length=0}iCa=0};
kQ=function(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b};
cCa=function(a,b){if(g.Hz("no_client_ve_attach_unless_shown")){var c=kQ(a,b);YBa.set(c,!0);bCa(a,b)}};
bCa=function(a,b){a=kQ(a,b);iQ.has(a)&&(b=iQ.get(a)||[],g.jQ(b[0],b[1],b[2],b[3],!0),iQ.delete(a))};
hQ=function(a,b){g.Hz("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a};
g.nQ=function(a,b,c,d){g.Nz(dCa)(void 0,a,b,c,d,void 0)};
g.oQ=function(a,b){g.Nz(function(){g.$b(b,function(c){cCa(c,a);var d=hQ({cttAuthInfo:tH(a)||void 0},a);if(g.Hz("il_via_jspb")){var e=(new Wy).j(a);c=c.getAsJspb();e=oi(e,px,2,c);e=N(e,4,4);"UNDEFINED_CSN"===a?lQ("visualElementShown",d,void 0,e):rG(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"===a?lQ("visualElementShown",d,e):g.UB("visualElementShown",e,d)})})()};
g.pQ=function(a,b){g.Nz(function(){g.$b(b,function(c){eCa(void 0,a,c)})})()};
g.qQ=function(a,b,c){g.Nz(gCa)(void 0,a,b,c,void 0)};
rQ=function(){this.C=new Set;this.B=new Set;this.D=new Map;this.client=void 0;this.csn=null};
sQ=function(){rQ.instance||(rQ.instance=new rQ);return rQ.instance};
tQ=function(){};
uQ=function(){this.V=[];this.ea=[];this.j=[];this.Ba=[];this.J=[];this.oa=[];this.C=new Map;this.K=new Map;this.B=new Set;this.Ga=new Map};
vQ=function(){uQ.instance||(uQ.instance=new uQ);return uQ.instance};
wQ=function(a,b,c,d){d=void 0===d?{}:d;g.Nz(function(){kCa.includes(b)||(g.tG(new g.EB("createClientScreen() called with a non-page VE",b)),b=83769);d.isHistoryNavigation||(a.Ba=[],a.j.push({rootVe:b,key:d.key||""}));a.V=[];a.ea=[];d.EU?lCa(a,b,c,d):mCa(a,b,c,d)})()};
nCa=function(a,b,c){c=void 0===c?0:c;g.Nz(function(){b.then(function(d){a.B.has(c)&&a.D&&a.D();var e=g.sH(c),f=g.rH(c);if(e&&f){var h;(null==d?0:null==(h=d.response)?0:h.trackingParams)&&g.jQ(a.client,e,f,g.pH(d.response.trackingParams));var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.jQ(a.client,e,f,g.pH(d.playerResponse.trackingParams))}})})()};
yQ=function(a){var b=vQ();g.Nz(function(){var c=g.pH(a);xQ(b,c);return c})()};
xQ=function(a,b,c,d){d=void 0===d?0:d;g.Nz(function(){if(a.B.has(d))return a.V.push([b,c]),!0;var e=g.sH(d),f=c||g.rH(d);if(e&&f){if(g.Hz("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.JB(0,function(){oCa(a,e)},1200))}else g.jQ(a.client,e,f,b);
return!0}return!1})()};
pCa=function(a,b,c,d){d=void 0===d?0:d;var e=g.sH(d);d=b||g.rH(d);e&&d&&(a=a.client,b=hQ({cttAuthInfo:tH(e)||void 0},e),g.Hz("il_via_jspb")?(c=new Xy,c.j(e),d=d.getAsJspb(),oi(c,px,2,d),"UNDEFINED_CSN"===e?lQ("visualElementStateChanged",b,void 0,c):$qa(c,b,a)):(c={csn:e,ve:d.getAsJson(),clientData:c},"UNDEFINED_CSN"===e?lQ("visualElementStateChanged",b,c):a?iG("visualElementStateChanged",c,a,b):g.UB("visualElementStateChanged",c,b)))};
lCa=function(a,b,c,d){d=void 0===d?{}:d;a.B.add(d.layer||0);a.D=function(){mCa(a,b,c,d);var h=g.rH(d.layer);if(h){for(var l=g.u(a.V),m=l.next();!m.done;m=l.next())m=m.value,xQ(a,m[0],m[1]||h,d.layer);h=g.u(a.ea);for(l=h.next();!l.done;l=h.next())l=l.value,pCa(a,l[0],l[1])}};
c||g.sH(d.layer)||a.D();if(d.EU)for(var e=g.u(d.EU),f=e.next();!f.done;f=e.next())nCa(a,f.value,d.layer);else g.sG(Error("Delayed screen needs a data promise."))};
mCa=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.sH(e);e=g.rH(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.Fz("EVENT_ID");"UNDEFINED_CSN"===f&&n&&(m={servletData:{serializedServletEventId:n}});g.Hz("combine_ve_grafts")&&f&&oCa(a,f);g.Hz("no_client_ve_attach_unless_shown")&&h&&f&&bCa(h,f);try{var p=
$Ba(a.client,b,l,d.AU,d.cttAuthInfo,m,d.implicitGestureType,d.loggingExpectations)}catch(v){mra(v,{FE:b,rootVe:e,Scb:c,lbb:f,Qcb:l,AU:d.AU});g.sG(v);return}csa(p,b,d.layer,d.cttAuthInfo);f&&"UNDEFINED_CSN"!==f&&e&&!$ra(f)&&eCa(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.OH({clientScreenNonce:p});tQ.instance||(tQ.instance=new tQ);g.Nz(sQ().j).bind(sQ())();var q=g.rH(d.layer);f&&"UNDEFINED_CSN"!==f&&q&&(g.Hz("web_mark_root_visible")||g.Hz("music_web_mark_root_visible"))&&
g.nQ(p,q);a.B.delete(d.layer||0);a.D=void 0;var t;null==(t=a.Ga.get(d.layer))||t.forEach(function(v,y){v?xQ(a,y,v,d.layer):q&&xQ(a,y,q,d.layer)});
qCa(a)};
qCa=function(a){for(var b=0;b<a.J.length;b++){var c=a.J[b];try{c()}catch(d){g.sG(d)}}for(b=a.J.length=0;b<a.oa.length;b++){c=a.oa[b];try{c()}catch(d){g.sG(d)}}};
oCa=function(a,b){if(void 0===b)for(var c=Yra(),d=0;d<c.length;d++)void 0!==c[d]&&oCa(a,c[d]);else a.C.forEach(function(e,f){(f=a.K.get(f))&&g.aCa(a.client,b,f,e)}),a.C.clear(),a.K.clear(),a.qa=void 0};
sCa=function(){var a=void 0===a?window.location.href:a;if(g.Hz("kevlar_disable_theme_param"))return null;Hj(g.Rj(5,a));try{var b=g.Tz(a).theme;return rCa.get(b)||null}catch(c){}return null};
zQ=function(){this.j={};if(this.u=Lma()){var a=g.sA("CONSISTENCY");a&&tCa(this,{encryptedTokenJarContents:a})}};
tCa=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.u&&g.rA("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
AQ=function(){var a=g.Fz("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.Fz("INNERTUBE_CLIENT_NAME")&&(this.localStorage=uCa(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
uCa=function(a){return void 0===a.localStorage?new OB("yt-client-location"):a.localStorage};
g.BQ=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.Fz("INNERTUBE_CONTEXT");if(!d)return g.sG(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.od(d);g.Hz("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.Fz("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.yB();var h="USER_INTERFACE_THEME_LIGHT";g.zB(0,165)?h="USER_INTERFACE_THEME_DARK":g.zB(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.Hz("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:sCa()||h;e.userInterfaceTheme=f;if(!b){if(f=
Cna())e.connectionType=f;g.Hz("web_log_effective_connection_type")&&(f=Ena())&&(d.client.effectiveConnectionType=f)}var l;if(g.Hz("web_log_memory_total_kbytes")&&(null==(l=g.Pa.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.Pa.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}g.Hz("web_gcf_hashes_innertube")&&(f=Koa())&&(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.Tz(g.Pa.location.href);!g.Hz("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo={graftUrl:g.Pa.location.href},g.Hz("kevlar_woffle")&&xna.instance&&(m=xna.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.u?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=wB(),e.mainAppWebInfo.isWebNativeShareAvailable=
navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.Hz("web_lr_app_quality_killswitch")&&(m=g.Fz("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.Fz("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.Hz("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(K){}n=void 0}n&&(e.timeZone=
n)}(n=Jz())?e.experimentsToken=n:delete e.experimentsToken;n=Kz();zQ.instance||(zQ.instance=new zQ);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:ad(zQ.instance.j)});!g.Hz("web_prequest_context_killswitch")&&(n=g.Fz("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.yB();n=g.zB(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.Hz("warm_op_csn_cleanup")?c&&(b=
g.sH())&&(d.clientScreenNonce=b):!b&&(b=g.sH())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Sa("yt.mdx.remote.remoteClient_"))d.remoteClient=a;AQ.getInstance().setLocationOnInnerTubeContext(d);try{var p=Zz(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var t=g.u(Object.entries(p)),v=t.next();!v.done;v=t.next()){var y=g.u(v.value),A=y.next().value,E=y.next().value;p=A;q=E;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}}catch(K){g.sG(K)}return d};
vCa=function(){vB.apply(this,arguments);this.Jw={}};
CQ=function(){wCa||(wCa=new vCa);return wCa};
xCa=function(a,b){b?a.Jw.Authorization="Bearer "+b:delete a.Jw.Authorization};
yCa=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
zCa=function(){var a=null;ana().then(function(b){return a=b},function(b){return a=yCa(b)});
return a};
ACa=function(){var a=cg(1E3,"NO_BID");return Sf(Hca([ana(),a]).Ek(yCa),function(){a.cancel()})};
BCa=function(a){return a.Je?g.zB(g.yB(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
DQ=function(a){this.player=a;this.u=this.j=1};
DCa=function(a,b,c,d){var e=void 0===c?{}:c;c=e.uG;e=e.We;d=void 0===d?"":d;var f=a.player.getVideoData(1),h=a.player.W().Go,l={AD_BLOCK:a.j++,AD_BREAK_LENGTH:c?c.Yh:0,AUTONAV_STATE:BCa(a.player.W()),CA_TYPE:"image",CPN:f.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Ys(),LACT:sF(),LIVE_INDEX:c?a.u++:1,LIVE_TARGETING_CONTEXT:c&&c.context?c.context:"",MIDROLL_POS:e?Math.round(e.start/1E3):0,MIDROLL_POS_MS:e?Math.round(e.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.qb().fk().height,
P_W:a.player.qb().fk().width,YT_REMOTE:h?h.join(","):""},m=vma(uma);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};Yz(b)&&(d.sts="19563",(c=a.player.W().forcedExperiments)&&(d.forced_experiments=c));var n=Vz(g.zq(b,l),d);a.player.getVideoData();return 2!==n.split("?").length?Qf(Error("Invalid AdBreakInfo URL")):g.ZM(a.player.W(),null==f?void 0:f.oauthToken).then(function(p){if(p&&Xz()){var q=CQ();xCa(q,p)}p=a.player.dn(q);q=CCa(a,n,l,f.isMdxPlayback);return g.EQ(p,q,"/youtubei/v1/player/ad_break").then(function(t){return t})})};
GCa=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=Wz(b),f=ECa(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=ECa(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=Qz(Zz(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=[];FCa.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};
JCa=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 HCa&&(f.clientName=HCa[d[0]]),d[1]in ICa&&(f.platform=ICa[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};
CCa=function(a,b,c,d){var e=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?Math.trunc(c.DRIFT_FROM_HEAD_MS):0,f=KCa.exec(b);f=null!=f&&2<=f.length?f[1]:"";var h=LCa.test(b),l=MCa.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=NCa.exec(b),n=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;m=OCa.exec(b);var p=null!=m&&2<=m.length?m[1]:"0",q=Ywa(a.player.W().Oa);m=a.player.getVideoData(1);var t=g.BQ(m.Ba,!0),v="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";GCa(t,b,v.toString(),a.player.W());
var y={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19563,autonavState:BCa(a.player.W())};d&&(d={},JCa(d,c.YT_REMOTE)&&(y.mdxContext=d));if(d=PCa.includes(q)?void 0:g.sA("PREF")){for(var A=d.split(RegExp("[:&]")),E=0,K=A.length;E<K;E++){var I=A[E].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 QCa)for(d=d.split(RegExp("[:&]")),E=QCa.FLAG_AUTO_CAPTIONS_DEFAULT_ON,A="f"+(1+Math.floor(E/31)).toString(),E=1<<Math.floor(E%31),K=0,I=d.length;K<I;K++){var F=d[K].split("=");if(F[0]===A&&parseInt("0x"+F[1],16)&E){d=!0;break a}}d=!1}y.autoCaptionsDefaultOn=d}b=sDa.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(t.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:y};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:n,
breakPositionMs:p,clientPlaybackNonce:c.CPN,topLevelDomain:q,isProxyAdTagRequest:h,context:t,adSignalsInfoString:Qz(Zz(v.toString())),overridePlaybackContext:b};l&&(f.videoId=l);c.LIVE_TARGETING_CONTEXT&&(f.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(f.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());e&&(f.driftFromHeadMs=e.toString());f.currentMediaTimeMs=Math.round(1E3*a.player.getCurrentTime(1));a={isSabr:nO(m)};var S;if(c=null==(S=m.getHeartbeatResponse())?void 0:
S.adBreakHeartbeatParams)a.adBreakHeartbeatParams=c;a&&(f.getAdBreakContext=a);return f};
FQ=function(a,b,c,d,e){g.SG.call(this);this.j=e};
tDa=function(){VO.apply(this,arguments)};
xDa=function(a){this.j=new SBa(function(b){b=new gQ(a.gq,a.I,a.Z3(),b,a.Av,a.wG,a.NB,a.daiEnabled);NBa(b);return b},function(b){return new FQ(a.qL,a.gq,a.I,a.Su,b,a.Av)})};
GQ=function(a){g.G.call(this);var b=this;this.u=a;this.j=null;g.tb(this,function(){return b.j=null});
var c=cB(a);if(c){var d=function(){b.j&&b.j(!!aB())};
this.u.addEventListener(c,d);g.tb(this,function(){b.u.removeEventListener(c,d)})}};
HQ=function(a){g.G.call(this);this.j=a};
KDa=function(a){var b=window.document;return g.SM(a.W())?new GQ(b):new HQ(a)};
VDa=function(a){g.G.call(this);this.J1=new oBa(a.I,a.contentCpn,a.daiEnabled)};
WDa=function(a){IQ=a&&a.data};
XDa=function(a){JQ=a&&a.data};
YDa=function(a){KQ=a&&a.data};
$Da=function(){ZDa=KQ=JQ=IQ=null};
NQ=function(a){g.G.call(this);var b=this;this.Kd=a;this.Ff=new Map;this.j=new Map;LQ(this,"commandExecutorCommand",function(c,d,e){b.Wg(c.commands,d,e)});
MQ(this,"commandExecutorCommand",function(c,d,e){aEa(b,c.commands,d,e)});
LQ(this,"clickTrackingParams",function(){});
MQ(this,"clickTrackingParams",function(){})};
bEa=function(a,b){LQ(a,b.Bq(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
cEa=function(a,b){MQ(a,b.Bq(),function(c,d,e){b.Mv(c,d,e)})};
LQ=function(a,b,c){a.isDisposed();a.Ff.get(b)&&g.sG(Error("Extension name "+b+" already registered"));a.Ff.set(b,c)};
MQ=function(a,b,c){a.isDisposed();a.j.get(b)&&g.sG(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
aEa=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.Q(b,dEa)||g.Q(b,eEa)?e.push(b):f.push(b);e=g.u(e);for(b=e.next();!b.done;b=e.next())OQ(a,b.value,c,d);f=g.u(f);for(b=f.next();!b.done;b=f.next())OQ(a,b.value,c,d)};
fEa=function(a,b){a.Kd.get().Qa("innertubeCommand",{openPopupAction:b})};
gEa=function(a,b){a.Kd.get().Qa("innertubeCommand",{confirmDialogEndpoint:b})};
OQ=function(a,b,c,d){a.isDisposed();b.loggingUrls&&hEa(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?fEa(a,f):"confirmDialogEndpoint"===e?gEa(a,f):iEa.hasOwnProperty(e)||hEa(a,e,f,c,d)}};
jEa=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.Ff.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.sG(f)}else b=new g.EB("Unhandled field",b),g.tG(b)};
hEa=function(a,b,c,d,e){if((a=a.j.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.sG(f)}else b=new g.EB("Unhandled field",b),g.tG(b)};
kEa=function(a){var b=new rP(a.Vl),c=new tP(b);return{L4:function(){return b},
cN:function(){return c}}};
PQ=function(a){PP.call(this,a)};
IAa=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}};
lEa=function(a){this.I=a;var b=nn(vq),c=a.Bf();b.B!==c&&((b.B=c)||Aka(b));a.W().N("active_view_stop_starting_measurement_on_loaded")&&Rm(sn().Fc,"ssmol",1)};
zAa=function(a){xq(nn(vq),a)};
mEa=function(a){g.G.call(this);this.j=a;this.u=new lEa(a.I)};
nEa=function(a){return function(){return new PQ(a.j.I)}};
oEa=function(a){return function(b,c){return new AAa(b,a.u,c,a.j.I,a.j.ym,a.j.daiEnabled)}};
pEa=function(a,b,c,d,e){g.SG.call(this);this.j=b;this.C=null;this.Fa=c;this.Va=e.Qi;this.qa=e.Vt;this.u=null;this.B=new Map;c=kEa({Vl:b.getVideoData(1)});var f=new mEa({ym:c.cN(),I:b,daiEnabled:!1});g.H(this,f);this.K=new Set;this.V=new Map;this.Ga=new Map;this.eb=new Set;this.J=new lB(this);g.H(this,this.J);this.Ba=new lB(this);g.H(this,this.Ba);this.D=this.ob=!1;this.oa=g.SM(b.W());this.Ya=d;b=new VDa({contentCpn:this.j.getVideoData(1).clientPlaybackNonce,daiEnabled:!1,I:this.j});g.H(this,b);this.Oa=
b.J1;this.ea=(new nBa).j;var h=sba(pP(oP(this.j)));e=new jBa({Hh:this,rC:aP(),ym:c.cN(),I:this.j,z9:h,dR:oEa(f),daiEnabled:!1,gr:e.gr,Qi:this.Va,xn:e.xn,er:e.er});this.Ma=(new xDa({Su:this.Fa,NB:e.n3,qL:a,gq:this,rC:aP(),Z3:nEa(f),Av:this.Oa,wG:this.ea,I:this.j,xdb:h,dR:function(l){return oEa(f)(l,h)},
daiEnabled:!1})).cV();this.kb=KDa(this.j);g.H(this,this.kb);this.rb=XM(this.j.W())?this.j.W().experiments.sb("align_ad_to_video_player_lifecycle_for_bulleit_living_room"):this.j.W().experiments.sb("align_ad_to_video_player_lifecycle_for_bulleit")};
qEa=function(a,b){return b.every(function(c){c=a.B.get(c);return null==c?(g.sG(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof FQ?!1:c instanceof gQ?!c.ON():!0})};
RQ=function(a,b,c){var d=!!a.u&&a.u||null,e=d&&d.ON()&&(WO(a.j)||!1);d=b&&d&&d.reset()||null;a.u&&rEa(a,a.u);a.u=null;e&&(g.nB(a.Ba),a.ob=!1,g.Uq(a.j.getRootNode(),"ad-showing"),a.rb?(a.D||QQ(a.qa),sEa(a),a.j.cueVideoByPlayerVars({},2)):(a.j.cueVideoByPlayerVars({},2),sEa(a)),g.Uq(a.j.getRootNode(),"ad-interrupting"),a.j.W().experiments.sb("enable_html5_teal_ad_badge")&&g.Uq(a.j.getRootNode(),"ad-teal-design"),c&&c(a.j));a.D||QQ(a.qa);b&&d&&NBa(d)};
sEa=function(a){a.j.au();if(!a.oa){var b=a.j.Nb(1);g.cQ(b)&&!g.yP(b,2)&&a.j.playVideo()}};
rEa=function(a,b){a=a.B;for(var c=g.u(a),d=c.next();!d.done;d=c.next()){d=g.u(d.value);var e=d.next().value;if(d.next().value==b){a.delete(e);break}}g.qb(b)};
SQ=function(a){g.G.call(this);this.u=a};
TQ=function(a){SQ.call(this,!0);this.j=a};
tEa=function(a,b){g.G.call(this);var c=this;this.B=[];this.K=!1;this.u=0;this.D=this.J=this.C=!1;this.oa=null;var d=(0,g.bb)(a,b);this.j=new g.Kq(function(){return d(c.oa)},300);
g.H(this,this.j);this.ea=this.V=Infinity};
uEa=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.B.includes(d.identifier))return!0}return!1};
yEa=function(a){var b=g.Q(a,g.UQ);if(b)return b;if((b=g.Q(a,vEa))&&b.commands)return wEa(b.commands);if((a=g.Q(a,xEa))&&a.commands)return wEa(a.commands)};
wEa=function(a){if(0!==a.length){var b={commands:[]};a=g.u(a);for(var c=a.next();!c.done;c=a.next())(c=yEa(c.value))&&b.commands.push(c);a={};g.LP(a,g.VQ,b);return a}};
WQ=function(){var a="ytp-id-"+zEa.toString();zEa++;return a};
g.XQ=function(a){g.G.call(this);this.Zb={};this.Qd={};this.element=this.createElement(a)};
YQ=function(a,b,c,d){if("{{"===d.substr(0,2))a.Qd[d]=[b,c];else return d};
AEa=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.G?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.bf("BR"));c.push(g.cf(f))}):c.push(g.cf(d))}return c};
ZQ=function(a,b,c,d){if("child"===c){g.ef(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.G?[d]:d;c=AEa(a,e);c=g.u(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.Un(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.$d(g.be(a))),b.setAttribute(c,a))};
g.X=function(a){g.XQ.call(this,a);this.Gb=!0;this.ea=!1;this.listeners=[]};
g.$Q=function(a,b){b?a.show():a.hide()};
BEa=function(a,b){a.element.setAttribute("aria-label",b)};
g.aR=function(a){g.X.call(this,a);this.Va=new g.SG;g.H(this,this.Va)};
bR=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.aR.call(this,b);this.api=a;this.macros={};this.componentType=c;this.J=this.K=null;this.Eb=h;this.layoutId=d;this.interactionLoggingClientData=e;this.tb=f;this.eb=null;this.kQ=new TQ(this.element);g.H(this,this.kQ);this.wb=this.T(this.element,"click",this.onClick);this.Ga=[];this.Ba=new tEa(this.onClick,this);g.H(this,this.Ba);this.hc=!1;this.kb=this.oa=null};
cR=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.tG(Error("Got null or undefined adText object")),"";var c=g.De(a.text);if(!a.isTemplated)return c;if(null==b)return g.tG(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};
CEa=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.De(a.thumbnails[0].url):""};
DEa=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.xe(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.xe(0,0)};
g.EEa=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!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"}}]}};
FEa=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"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.dR=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},X:[{G:"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.eR=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},X:[{G:"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"}}]}};
GEa=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},X:[{G:"path",Y:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{G:"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"}}]}};
HEa=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},X:[{G:"path",wc:!0,Y:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
IEa=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},X:[{G:"path",wc:!0,Y:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.fR=function(){return{G:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{G:"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"}}]}};
JEa=function(){return{G:"svg",Y:{height:"100%",viewBox:"0 0 36 36",width:"100%"},X:[{G:"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"}}]}};
KEa=function(){return{G:"svg",Y:{viewBox:"0 0 24 24"},X:[{G:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{G:"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"}}]}};
LEa=function(){return{G:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},X:[{G:"path",Y:{d:"M0 0h48v48H0z",fill:"none"}},{G:"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"}}]}};
MEa=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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.NEa=function(){return{G:"svg",Y:{viewBox:"0 0 24 24"},X:[{G:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{G:"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"}}]}};
gR=function(){return{G:"svg",Y:{height:"100%",viewBox:"0 0 36 36",width:"100%"},X:[{G:"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"}}]}};
OEa=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},X:[{G:"path",wc:!0,Y:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
PEa=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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.QEa=function(){return{G:"svg",Y:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},X:[{G:"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"}}]}};
REa=function(){return{G:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},X:[{G:"path",Y:{d:"M0 0h48v48H0z",fill:"none"}},{G:"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"}}]}};
SEa=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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"}}]}};
TEa=function(){return{G:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{G:"path",S:"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"}}]}};
UEa=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!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"}}]}};
VEa=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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"}}]}};
WEa=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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.XEa=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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.YEa=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!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.ZEa=function(){return{G:"svg",Y:{height:"100%",viewBox:"0 0 16 16",width:"100%"},X:[{G:"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"}}]}};
$Ea=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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"}}]}};
aFa=function(){return{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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"}}]}};
hR=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return REa();case "CHECK_BOX":return{G:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{G:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{G:"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{G:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{G:"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"}},{G:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.fR();case "INFO_OUTLINE":return LEa();case "REMOVE_CIRCLE":return{G:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},X:[{G:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{G:"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 PEa();case "LIKE":return g.NEa();case "DISLIKE":return KEa();default:return g.tG(new g.EB("Unexpected icon:",
a)),null}};
iR=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={G:"button",Na:["ytp-ad-button"].concat(e)};null!=l&&(e.Y={tabindex:l});bR.call(this,a,e,f,b,c,d);this.j=this.u=this.B=null;this.C=h;this.hide()};
bFa=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||[]};
jR=function(){g.G.call(this);var a=this;this.j=new Map;this.u=rna(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.wD(b[c])})};
cFa=function(){null==kR&&(kR=new jR);return kR};
lR=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=dFa(a))){b=af("SPAN",null,b);break a}b=g.cf(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(eFa(e,b))}return 1==c.length?c[0]:af("SPAN",null,c)};
eFa=function(a,b){var c=null,d=a.text;b&&(d=dFa(d)||d);a.bold&&(c=af("B",null,c||d));a.italics&&(c=af("I",null,c||d));a.strikethrough&&(c=af("STRIKE",null,c||d));a.navigationEndpoint&&g.Q(a.navigationEndpoint,g.rO)&&(b=g.Q(a.navigationEndpoint,g.rO),c=af("A",null,c||d),g.ne(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),cFa().register(c,a),g.Sq(c,"ytp-ad-has-logging-urls"));
return c||af("SPAN",null,d)};
dFa=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(af("BR")),b.push(a[c]);return b}return null};
mR=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;bR.call(this,a,{G:"span",Na:["ytp-ad-hover-text-button"].concat(h)},l,b,c,d);this.button=this.u=null;this.D=f;this.C=e;this.hide()};
nR=function(a){return a&&a.thumbnails&&0!=(a.thumbnails||null).length&&a.thumbnails[0].url?g.De(a.thumbnails[0].url):""};
oR=function(a,b,c,d,e,f){f=void 0===f?!1:f;bR.call(this,a,{G:"img",S:"ytp-ad-image"},"ad-image",b,c,d,void 0===e?null:e);this.j=f;this.hide()};
pR=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"confirm-dialog":f;bR.call(this,a,{G:"div",Na:["ytp-ad-confirm-dialog-background"],X:[{G:"div",S:"ytp-ad-confirm-dialog-container",X:[{G:"div",Na:["ytp-ad-confirm-dialog"].concat(e),Y:{role:"dialog",tabindex:"-1"},X:[{G:"div",S:"ytp-ad-confirm-dialog-title",Aa:"{{title}}"},{G:"div",S:"ytp-ad-confirm-dialog-messages"},{G:"div",S:"ytp-ad-confirm-dialog-confirm-container",X:[{G:"button",S:"ytp-ad-confirm-dialog-cancel-button",Aa:"{{cancelLabel}}"},
{G:"button",S:"ytp-ad-confirm-dialog-confirm-button",Aa:"{{confirmLabel}}"}]}]}]},{G:"button",Na:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],X:[{G:"span",S:"ytp-ad-button-icon",X:[g.fR()]}]}]},f,b,c,d);this.V=this.Ha("ytp-ad-confirm-dialog-close-overlay-button");this.C=this.Ha("ytp-ad-confirm-dialog-cancel-button");this.D=this.Ha("ytp-ad-confirm-dialog-confirm-button");this.qa=this.Ha("ytp-ad-confirm-dialog-messages");this.B=null;this.j=new lB;g.H(this,this.j);
this.u=null;this.hide()};
fFa=function(a,b){if(b.title){var c=g.VG(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=lR(d.value),a.qa.appendChild(d)}b.cancelLabel&&(c=g.VG(b.cancelLabel),a.updateValue("cancelLabel",c),a.j.T(a.C,"click",function(e){return a.DK(e)}));
b.confirmLabel&&(b=g.VG(b.confirmLabel),a.updateValue("confirmLabel",b),a.j.T(a.D,"click",function(e){return a.QO(e)}));
a.j.T(a.V,"click",function(e){return a.PO(e)})};
qR=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=YO("ytp-ad-toggle-button-input"),l={role:"button","aria-label":"{{tooltipText}}"};a.W().experiments.sb("fix_h5_toggle_button_a11y")&&(l.tabindex="0");a.W().experiments.sb("fix_toggle_button_role_for_ad_components")&&(l.role="checkbox");bR.call(this,a,{G:"div",Na:["ytp-ad-toggle-button"].concat(e),X:[{G:"label",S:"ytp-ad-toggle-button-label",Y:{"for":h},X:[{G:"span",S:"ytp-ad-toggle-button-icon",Y:l,X:[{G:"span",S:"ytp-ad-toggle-button-untoggled-icon",
Aa:"{{untoggledIconTemplateSpec}}"},{G:"span",S:"ytp-ad-toggle-button-toggled-icon",Aa:"{{toggledIconTemplateSpec}}"}]},{G:"input",S:"ytp-ad-toggle-button-input",Y:{id:h,type:"checkbox"}},{G:"span",S:"ytp-ad-toggle-button-text",Aa:"{{buttonText}}"},{G:"span",S:"ytp-ad-toggle-button-tooltip",Aa:"{{tooltipText}}"}]}]},f,b,c,d);this.C=this.Ha("ytp-ad-toggle-button");this.j=this.Ha("ytp-ad-toggle-button-input");this.Ha("ytp-ad-toggle-button-label");this.B=this.Ha("ytp-ad-toggle-button-icon");this.V=this.Ha("ytp-ad-toggle-button-untoggled-icon");
this.D=this.Ha("ytp-ad-toggle-button-toggled-icon");this.Fa=this.Ha("ytp-ad-toggle-button-text");this.u=null;this.qa=!1;this.hide()};
gFa=function(a){a.qa&&(a.isToggled()?(g.uo(a.V,!1),g.uo(a.D,!0),a.api.W().experiments.sb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!0)):(g.uo(a.V,!0),g.uo(a.D,!1),a.api.W().experiments.sb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!1)))};
hFa=function(a,b){var c=null;a.u&&(c=(b?[a.u.defaultServiceEndpoint,a.u.defaultNavigationEndpoint]:[a.u.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
rR=function(a){lB.call(this);this.j=a;this.T(this.j,"onAdUxUpdate",this.J)};
iFa=function(a,b,c,d){bR.call(this,a,{G:"div",S:"ytp-ad-feedback-dialog-background",X:[{G:"div",S:"ytp-ad-feedback-dialog-container",X:[{G:"div",S:"ytp-ad-feedback-dialog-form",Y:{role:"dialog",tabindex:"-1"},X:[{G:"div",S:"ytp-ad-feedback-dialog-title",X:[{G:"span",Aa:"{{title}}"}]},{G:"span",S:"ytp-ad-info-dialog-feedback-options-title",Aa:"{{reasonsTitle}}"},{G:"div",S:"ytp-ad-info-dialog-feedback-options"},{G:"div",S:"ytp-ad-feedback-dialog-confirm-container",X:[{G:"button",S:"ytp-ad-feedback-dialog-cancel-button",
Aa:"{{cancelLabel}}"},{G:"button",S:"ytp-ad-feedback-dialog-confirm-button",Aa:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",b,c,d);this.C=[];this.j=null;this.D=this.Ha("ytp-ad-feedback-dialog-cancel-button");this.V=this.Ha("ytp-ad-feedback-dialog-confirm-button");this.qa=this.Ha("ytp-ad-info-dialog-feedback-options");this.Fa=this.Ha("ytp-ad-feedback-dialog-title");this.B=this.u=null;this.hide()};
mFa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.j=new iR(a.api,a.layoutId,a.interactionLoggingClientData,a.tb,["ytp-ad-feedback-dialog-close-button"],"button"),g.H(a,a.j),a.j.init(YO("button"),c,a.macros),a.j.Ta("click",a.yX,a),a.j.Ja(a.element));b.title&&(c=g.VG(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.VG(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&jFa(a,b.reasons);b.cancelLabel&&(c=g.VG(b.cancelLabel),a.updateValue("cancelLabel",
c),g.fB(a.D,"click",function(){return a.yX()}));
b.confirmLabel&&(c=g.VG(b.confirmLabel),a.updateValue("confirmLabel",c),g.fB(a.V,"click",function(){return kFa(a)}));
b.undoRenderer&&lFa(a,b.undoRenderer)};
jFa=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.tG(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?g.tG(Error("AdFeedbackReason.endpoint was not set.")):(c=new nFa(c,d),g.H(a,c),d=c.Bb(),a.qa.appendChild(d),a.C.push(c)))}};
lFa=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.u=new iR(a.api,a.layoutId,a.interactionLoggingClientData,a.tb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.H(a,a.u),a.u.init(YO("ad-feedback-undo-mute-button"),b,a.macros),a.u.Ta("click",a.k9,a),a.u.Ja(a.Fa)):g.tG(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
kFa=function(a){var b=a.C.filter(function(c){return c.isChecked()});
0!==b.length&&(b=b[0].u,a.layoutId?a.tb.executeCommand(b,a.layoutId):g.sG(Error("Missing layoutId for ad feedback dialog.")),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.ra("a"),a.hide())};
nFa=function(a,b){this.u=b;this.j=new g.aR({G:"label",S:"ytp-ad-feedback-dialog-reason-label",X:[{G:"input",S:"ytp-ad-feedback-dialog-reason-input",Y:{type:"radio",name:"feedback-reason-group"}},{G:"span",S:"ytp-ad-feedback-dialog-reason-text",Aa:g.VG(a)}]});this.B=this.j.Ha("ytp-ad-feedback-dialog-reason-input")};
sR=function(a,b,c,d){pR.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
oFa=function(a,b,c,d,e){bR.call(this,a,{G:"div",S:"ytp-ad-info-dialog-background",X:[{G:"div",S:"ytp-ad-info-dialog-container",X:[{G:"div",S:"ytp-ad-info-dialog-form",Y:{role:"dialog",tabindex:"-1"},X:[{G:"div",S:"ytp-ad-info-dialog-title",Aa:"{{title}}"},{G:"ul",S:"ytp-ad-info-dialog-ad-reasons"},{G:"div",S:"ytp-ad-info-dialog-message"},{G:"div",S:"ytp-ad-info-dialog-mute-container"},{G:"div",S:"ytp-ad-info-dialog-confirm-container",X:[{G:"button",S:"ytp-ad-info-dialog-confirm-button",Aa:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",b,c,d);this.j=this.u=null;this.V=this.Ha("ytp-ad-info-dialog-confirm-button");this.ob=this.Ha("ytp-ad-info-dialog-mute-container");this.Ya=this.Ha("ytp-ad-info-dialog-message");this.Ma=this.Ha("ytp-ad-info-dialog-ad-reasons");this.C=this.B=null;this.Fa=e;this.D=null;this.Oa=!1;this.qa=null;this.hide()};
pFa=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.u=new iFa(a.api,a.layoutId,a.interactionLoggingClientData,a.tb),g.H(a,a.u),a.u.init(YO("ad-feedback-dialog"),b,a.macros),a.u.Ja(a.Fa),a.u.subscribe("a",function(){return a.ra("c")})};
qFa=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.C=new sR(a.api,a.layoutId,a.interactionLoggingClientData,a.tb),g.H(a,a.C),a.C.init(YO("ad-mute-confirm-dialog"),b,a.macros),a.C.Ja(a.Fa),a.C.subscribe("b",function(){return a.ra("c")})};
rFa=function(a){a.j&&a.j.Ta("click",a.FS,a);g.fB(a.V,"click",function(){return a.FS()})};
tR=function(a,b,c,d,e,f){mR.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.B=e;this.hide()};
tFa=function(a,b,c){b=b.dialog&&g.Q(b.dialog,sFa)||null;null==b?g.sG(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.j=new oFa(a.api,a.layoutId,a.interactionLoggingClientData,a.tb,a.B),g.H(a,a.j),a.j.init(YO("ad-info-dialog"),b,c),a.j.Ja(a.B),a.j.subscribe("d",function(){return a.ra("f")}),a.j.subscribe("c",function(){return a.ra("e")}))};
wFa=function(a,b,c){null==a.button?g.sG(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.u&&g.Sq(a.u.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&g.Q(b.serviceEndpoint,uFa)||null)?(tFa(a,b,c),a.button.Ta("click",function(){a.j&&!a.j.Gb&&(a.j.show(),vFa(a))})):a.button.Ta("click",function(){return vFa(a)}))};
vFa=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
uR=function(a,b,c,d,e,f){bR.call(this,a,{G:"div",S:"ytp-ad-text"},void 0===f?"ad-text":f,b,c,d,void 0===e?null:e);this.j=null;this.hide()};
xFa=function(a,b){b&&g.sf(a.element,cR(a.j,b))};
vR=function(a,b,c,d,e,f,h){bR.call(this,a,b,c,d,e,f);this.j=h;g.H(this,this.j);this.Oa=this.D=-1};
wR=function(a){a.j&&-1===a.D&&(a.D=a.j.subscribe("h",a.Wt,a),a.Oa=a.j.subscribe("g",a.Ew,a),a.Wt())};
xR=function(a){null!=a.j&&-1!==a.D&&(a.j.Uh(a.D),a.j.Uh(a.Oa),a.Oa=-1,a.D=-1)};
g.yR=function(a,b,c,d,e,f){g.G.call(this);this.element=a;this.state=null;c||a.hide();this.u=b;this.B=void 0===d?b:d;this.j=f;this.onHidden=e;this.delay=new g.Kq(this.RF,0,this);g.H(this,this.delay)};
zR=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
AR=function(a,b,c,d,e,f){vR.call(this,a,{G:"div",S:"ytp-ad-preview-slot"},"ad-preview",b,c,d,e);var h=this;this.ob=-1;this.C=this.api.W().experiments.sb("enable_modern_skip_button_on_web");this.u=new g.aR({G:"span",S:"ytp-ad-preview-container"});this.C&&this.u.element.classList.add("ytp-ad-preview-container-detached");g.H(this,this.u);this.B=this.C?new uR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,"ytp-ad-preview-text-modern"):new uR(this.api,this.layoutId,this.interactionLoggingClientData,
this.tb,"ytp-ad-preview-text");g.H(this,this.B);this.B.Ja(this.u.element);this.qa=this.C?new g.aR({G:"span",S:"ytp-ad-preview-image-modern"}):new g.aR({G:"span",S:"ytp-ad-preview-image"});g.H(this,this.qa);this.V=new oR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb);g.H(this,this.V);this.V.Ja(this.qa.element);this.qa.Ja(this.u.element);this.u.Ja(this.element);this.Fa=new g.yR(this.u,400,!1,100,function(){return h.hide()});
g.H(this,this.Fa);this.Ma=0;this.Ya=!1;this.rb=f;this.hide()};
yFa=function(a){a.Fa.show(100);a.show()};
zFa=function(a,b,c,d,e){vR.call(this,a,{G:"div",Na:["ytp-flyout-cta","ytp-flyout-cta-inactive"],X:[{G:"div",S:"ytp-flyout-cta-icon-container"},{G:"div",S:"ytp-flyout-cta-body",X:[{G:"div",S:"ytp-flyout-cta-text-container",X:[{G:"div",S:"ytp-flyout-cta-headline-container"},{G:"div",S:"ytp-flyout-cta-description-container"}]},{G:"div",S:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",b,c,d,e);this.B=new oR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,"ytp-flyout-cta-icon");
g.H(this,this.B);this.B.Ja(this.Ha("ytp-flyout-cta-icon-container"));this.api.W().N("web_rounded_thumbnails")&&this.B.element.classList.add("ytp-flyout-cta-icon-rounded");this.V=new uR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,"ytp-flyout-cta-headline");g.H(this,this.V);this.V.Ja(this.Ha("ytp-flyout-cta-headline-container"));this.C=new uR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,"ytp-flyout-cta-description");g.H(this,this.C);this.C.Ja(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.u=new iR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,a);g.H(this,this.u);this.u.Ja(this.Ha("ytp-flyout-cta-action-button-container"));this.u.element.setAttribute("tabIndex","-1");Eq(this.u.element);this.qa=null;this.Fa=0;this.hide()};
AFa=function(a,b,c,d,e){bR.call(this,a,{G:"div",S:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",b,c,d,void 0===e?null:e);var f=this;this.j=null;this.B=new qR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,["ytp-ad-instream-user-sentiment-like-button"]);g.H(this,this.B);this.B.Ja(this.element);this.u=new qR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.H(this,this.u);this.u.Ja(this.element);
this.C=new g.yR(this,400,!1,500,function(){return f.hide()});
g.H(this,this.C);this.hide()};
BR=function(a,b,c,d,e,f){e=void 0===e?0:e;f=void 0===f?!1:f;g.G.call(this);this.u=a;this.B=!1;this.ea=d;this.oa=f;this.J=!1;this.j=null;0<b&&(this.j=new g.Kq(this.UT,b,this),g.H(this,this.j));this.D=new g.Kq(this.UT,c,this);g.H(this,this.D);this.V=dla(this.u,e,1,d);g.H(this,this.V);this.K=dla(this.u,0,d,1);g.H(this,this.K);this.C=new lB;g.H(this,this.C)};
BFa=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:dl(a,"Unknown method type")}};
CFa=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:dl(a,"unknown result type")}};
FFa=function(a){var b,c;g.Ha(function(d){b={TZ:"vr",metadata:a};c=["b.f_","j.s_","r.s_","e.h_"];c.forEach(function(e){var f;return g.Ha(function(h){if(1==h.j)return g.z(h,DFa[e](),2);f=h.u;EFa(f,e,b);g.xa(h)})});
g.xa(d)})};
GFa=function(){return g.Ha(function(a){return 1==a.j?g.z(a,$ma().then(function(){return 2},function(b){if("Biscotti id is disabled"===b.message)return 4;
g.tG("Failed fetching bid");return 3}),2):a.return(a.u)})};
IFa=function(){var a=JSON.parse(JSON.stringify(HFa));return a.adPlacements&&a.playerAds&&a.playerResponse&&a.playerResponse.adPlacements&&a.playerResponse.playerAds?2:3};
JFa=function(){var a;return g.Ha(function(b){if(1==b.j)return g.ya(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.u,a.adPlacements&&a.playerAds&&a.playerResponse&&a.playerResponse.adPlacements&&a.playerResponse.playerAds?b.return(2):b.return(3);g.Aa(b);return b.return(1)})};
KFa=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}};
LFa=function(){try{var a=document.querySelector(".ytp-ad-skip-button-slot");return a?"none"===getComputedStyle(a).display?3:2:5}catch(b){return 1}};
EFa=function(a,b,c){var d={detected:3===a,source:b+(c.TZ+("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.UB("biscottiBasedDetection",d);a=CFa(a);b=BFa(b);Ez("CATSTAT",Number(g.Fz("CATSTAT",0))&~(3<<b)|a<<b)};
CR=function(a,b,c,d,e,f){vR.call(this,a,{G:"div",S:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.qa=null;this.Fa=!1;this.Ya=f;this.V=this.api.W().experiments.sb("enable_modern_skip_button_on_web");this.ob=!1;this.C=new g.aR({G:"span",Na:["ytp-ad-skip-button-container"]});this.V&&this.C.element.classList.add("ytp-ad-skip-button-container-detached");g.H(this,this.C);this.C.Ja(this.element);this.u=this.B=null;this.rb=new g.yR(this.C,500,!1,100,function(){return h.hide()});
g.H(this,this.rb);this.Ma=new BR(this.C.element,15E3,5E3,.5,.5,this.V);g.H(this,this.Ma);this.hide()};
NFa=function(a){a=a.qa&&a.qa.adRendererCommands;return(a&&a.clickCommand&&g.Q(a.clickCommand,g.VQ)&&g.Q(a.clickCommand,g.VQ).commands||[]).some(function(b){return b.adLifecycleCommand?MFa(b.adLifecycleCommand):!1})};
MFa=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
DR=function(a,b,c,d,e,f){vR.call(this,a,{G:"div",S:"ytp-ad-skip-ad-slot"},"skip-ad",b,c,d,e);this.qa=f;this.C=!1;this.V=0;this.B=this.u=null;this.hide()};
OFa=function(a,b){a.C||(a.C=!0,a.u&&(b?a.u.Fa.hide():a.u.hide()),b?(a=a.B,a.rb.show(),a.show()):a.B.show())};
PFa=function(a,b,c,d){iR.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
ER=function(a,b,c,d,e){e=void 0===e?!1:e;bR.call(this,a,{G:"span",S:"ytp-ad-simple-ad-badge"},"simple-ad-badge",b,c,d);this.j=e;this.hide()};
QFa=function(a,b,c,d,e){e=void 0===e?!1:e;ZO.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.sJ=e};
FR=function(a,b){g.SG.call(this);this.api=a;this.durationMs=b;this.j=null;this.Cd=new lB(this);g.H(this,this.Cd);this.u=RFa;this.Cd.T(this.api,"presentingplayerstatechange",this.Md);this.j=this.Cd.T(this.api,"onAdPlaybackProgress",this.Bc)};
GR=function(a,b){g.SG.call(this);this.Hh=b;this.j=!1;this.aj=0;this.Cd=new lB(this);g.H(this,this.Cd);this.durationMs=a;this.timer=new g.ag(100);g.H(this,this.timer);this.Cd.T(this.timer,"tick",this.Bc);this.u={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.HR=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+" dia(s)");if(0<d||0<e)b+=" "+e+" hora(s)";b+=" "+f+" minuto(s)";b+=" "+c+" segundo(s)";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.IR=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)};
JR=function(a,b,c,d,e,f){vR.call(this,a,{G:"span",S:"ytp-ad-duration-remaining"},"ad-duration-remaining",b,c,d,e);this.videoAdDurationSeconds=f;this.u=null;this.hide()};
SFa=function(a,b,c,d){uR.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
KR=function(a,b){this.u=a;this.j=b};
TFa=function(a,b){return a.u+b*(a.j-a.u)};
LR=function(a,b,c){return a.j-a.u?g.pe((b-a.u)/(a.j-a.u),0,1):null!=c?c:Infinity};
MR=function(a,b){g.aR.call(this,{G:"div",S:"ytp-ad-persistent-progress-bar-container",X:[{G:"div",S:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.H(this,this.u);this.Pc=this.Ha("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
NR=function(a,b,c,d,e,f){bR.call(this,a,{G:"div",S:"ytp-ad-player-overlay",X:[{G:"div",S:"ytp-ad-player-overlay-flyout-cta"},{G:"div",S:"ytp-ad-player-overlay-instream-info"},{G:"div",S:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",S:"ytp-ad-player-overlay-progress-bar"},{G:"div",S:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",b,c,d);this.V=f;this.C=this.Ha("ytp-ad-player-overlay-flyout-cta");this.api.W().N("web_rounded_thumbnails")&&this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
this.u=this.Ha("ytp-ad-player-overlay-instream-info");this.B=null;UFa(this)&&(a=af("div"),g.Sq(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.u,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new SFa(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),c.Ja(a),c.init(YO("ad-title"),{text:b.title},this.macros),g.H(this,c)),this.B=a);this.D=this.Ha("ytp-ad-player-overlay-skip-or-preview");this.Fa=this.Ha("ytp-ad-player-overlay-progress-bar");
this.qa=this.Ha("ytp-ad-player-overlay-instream-user-sentiment");this.j=e;g.H(this,this.j);this.hide()};
UFa=function(a){a=a.api.W();return g.EM(a)&&a.u};
VFa=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.Yj("/sharing_services",a);g.wD(d)};
g.OR=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)};
YFa=function(a,b){if(!a)return!1;var c,d=null==(c=g.Q(a,WFa))?void 0:c.signal;if(d&&b.Qw)return!!b.Qw[d];var e;if((c=null==(e=g.Q(a,XFa))?void 0:e.request)&&b.bM)return!!b.bM[c];for(var f in a)if(b.XL[f])return!0;return!1};
ZFa=function(a,b){var c,d=null==(c=g.Q(a,WFa))?void 0:c.signal;if(d&&b.Qw&&(c=b.Qw[d]))return c();var e;if((c=null==(e=g.Q(a,XFa))?void 0:e.request)&&b.bM&&(e=b.bM[c]))return e();for(var f in a)if(b.XL[f]&&(a=b.XL[f]))return a()};
PR=function(a){return function(){return new a}};
aGa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=$Fa[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($Fa).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.QR=function(a){return"/youtubei/v1/"+aGa(a)};
RR=function(){};
SR=function(){};
bGa=function(){return g.Hz("copy_login_info_to_st_cookie")&&("WEB"===g.Fz("INNERTUBE_CLIENT_NAME")||"WEB_CREATOR"===g.Fz("INNERTUBE_CLIENT_NAME"))};
cGa=function(a){if(wj()&&bGa()){var b=g.Fz("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.Sj(window.location.href);c&&b.push(c);c=g.Sj(a);g.Fb(b,c)||!c&&cc(a,"/")?(b=Tj(a),(b=nfa(b))?(b="ST-"+Ee(b).toString(36),b=(b=g.sA(b)||null)?Rz(b):{}):b=null):b=null;null==b&&(b={});c=void 0;bGa()&&(c||(c=g.Fz("LOGIN_INFO")),c&&(b.session_logininfo=c));vAa(a,b)}};
TR=function(a,b,c,d){this.tM=a;this.oh=b;this.j=c;this.C=d;this.B=void 0;this.u=new Map;a.Qw||(a.Qw={});a.Qw=Object.assign({},dGa,a.Qw)};
eGa=function(a,b,c,d){if(void 0!==TR.instance){if(d=TR.instance,a=[a!==d.tM,b!==d.oh,c!==d.j,!1,!1,!1,void 0!==d.B],a.some(function(e){return e}))throw new g.EB("InnerTubeTransportService is already initialized",a);
}else TR.instance=new TR(a,b,c,d)};
UR=function(a,b,c){var d=void 0===d?eD:d;var e=ZFa(b,a.tM);if(!e)return Qf(new g.EB("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?(cGa(f.input),new g.Nf(function(h){var l,m,n;return g.Ha(function(p){if(1==p.j)return m="cors"===(null==(l=f.du)?void 0:l.mode)?"cors":void 0,a.j.FZ?(n=fGa(a,f.config,m),p.Ka(2)):g.z(p,gGa(a,f.config,m),3);2!=p.j&&(n=p.u);h(hGa(a,f,n));g.xa(p)})})):Qf(new g.EB("Error: Failed to build request for command.",b))};
g.EQ=function(a,b,c,d,e){e=void 0===e?{Yu:{identity:eD}}:e;var f=void 0===f?!0:f;b.context||(b.context=g.BQ(d,f));return new g.Nf(function(h){var l,m,n,p,q;return g.Ha(function(t){if(1==t.j)return l=uA(c),m=Wz(l)?"same-origin":"cors",a.j.FZ?(n=fGa(a,e,m),t.Ka(2)):g.z(t,gGa(a,e,m),3);2!=t.j&&(n=t.u);var v=n;p=Mma(uA(c),v);q={input:p,du:vA(p),yp:b,config:e};h(hGa(a,q,n));g.xa(t)})})};
jGa=function(a,b,c){var d;if(b&&!(null==b?0:null==(d=b.hdb)?0:d.wdb)&&a.C){d=g.u(iGa);for(var e=d.next();!e.done;e=d.next())e=e.value,a.C[e]&&a.C[e].handleResponse(b,c)}};
hGa=function(a,b,c){var d,e,f,h,l,m,n,p,q,t,v,y,A,E,K,I,F,S,Y,ia,ta,na,ca,ha,Da,fa,U,Ua,r;return g.Ha(function(V){switch(V.j){case 1:V.Ka(2);break;case 3:if((d=V.u)&&!d.isExpired())return V.return(Promise.resolve(d.j()));case 2:if(!(null==(e=b)?0:null==(f=e.yp)?0:f.context)){V.Ka(4);break}h=b.yp.context;V.Ka(5);break;case 5:l=g.u([]),m=l.next();case 7:if(m.done){V.Ka(4);break}n=m.value;return g.z(V,n.Zcb(h),8);case 8:m=l.next();V.Ka(7);break;case 4:if(null==(p=a.B)||!p.qdb(b.input,b.yp)){V.Ka(11);
break}return g.z(V,a.B.Hcb(b.input,b.yp),12);case 12:return q=V.u,g.Hz("kevlar_process_local_innertube_responses_killswitch")||jGa(a,q,b),V.return(q);case 11:return(y=null==(v=b.config)?void 0:v.qf)&&a.u.has(y)&&g.Hz("web_memoize_inflight_requests")?t=a.u.get(y):(A=JSON.stringify(b.yp),I=null!=(K=null==(E=b.du)?void 0:E.headers)?K:{},b.du=Object.assign({},b.du,{headers:Object.assign({},I,c)}),F=Object.assign({},b.du),"POST"===b.du.method&&(F=Object.assign({},F,{body:A})),(null==(S=b.config)?0:S.X9)&&
RH(b.config.X9),Y=function(){return a.oh.fetch(b.input,F,b.config)},t=Y(),y&&a.u.set(y,t)),g.z(V,t,13);
case 13:if((ia=V.u)&&"error"in ia&&(null==(ta=ia)?0:null==(na=ta.error)?0:na.details))for(ca=ia.error.details,ha=g.u(ca),Da=ha.next();!Da.done;Da=ha.next())fa=Da.value,(U=fa["@type"])&&-1<kGa.indexOf(U)&&(delete fa["@type"],ia=fa);y&&a.u.has(y)&&a.u.delete(y);(null==(Ua=b.config)?0:Ua.b$)&&RH(b.config.b$);if(ia||null==(r=a.B)||!r.fbb(b.input,b.yp)){V.Ka(14);break}return g.z(V,a.B.Gcb(b.input,b.yp),15);case 15:ia=V.u;case 14:return jGa(a,ia,b),V.return(ia||void 0)}})};
gGa=function(a,b,c){var d,e,f,h,l,m,n;return g.Ha(function(p){if(1==p.j){f=(null==(d=b)?void 0:null==(e=d.Yu)?void 0:e.identity)||eD;m=null==(h=b)?void 0:null==(l=h.Yu)?void 0:l.sessionIndex;var q=Pf(a.j.xC(f,{sessionIndex:m}));return g.z(p,q,2)}n=p.u;return p.return(Promise.resolve(Object.assign({},lGa(c),n)))})};
fGa=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.Yu)?void 0:d.identity)||eD,f;b=null==b?void 0:null==(f=b.Yu)?void 0:f.sessionIndex;a=a.j.xC(e,{sessionIndex:b});return Object.assign({},lGa(c),a)};
lGa=function(a){var b={"Content-Type":"application/json"};g.Fz("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.Fz("EOM_VISITOR_DATA"):g.Fz("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.Fz("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.Fz("LOGGED_IN",!1);"cors"!==a&&((a=g.Fz("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.Fz("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.Fz("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=
g.Fz("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
VR=function(){};
WR=function(){};
YR=function(){};
ZR=function(){};
$R=function(){};
aS=function(){};
bS=function(a){this.j=a};
g.cS=function(a,b){if(!mGa){var c=zF();vF(c,{RP:nGa,o_:bS});var d={XL:{feedbackEndpoint:PR(YR),modifyChannelNotificationPreferenceEndpoint:PR(ZR),playlistEditEndpoint:PR($R),subscribeEndpoint:PR(VR),unsubscribeEndpoint:PR(WR),webPlayerShareEntityServiceEndpoint:PR(aS)}},e=AQ.getInstance(),f={};e&&(f.client_location=e);void 0===a&&(a=wna());void 0===b&&(b=c.resolve(nGa));eGa(d,b,a,f);vF(c,{RP:oGa,rR:TR.instance});mGa=c.resolve(oGa)}return mGa};
dS=function(){};
pGa=function(){dS.instance||(dS.instance=new dS);return dS.instance};
sGa=function(){if(!g.Hz("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Hz("disable_biscotti_fetch_entirely_for_all_web_clients")&&KA()){var a=g.Fz("PLAYER_VARS",{});if("1"!=g.kd(a,"privembed",!1)&&!Tma(a)){var b=function(){qGa=!0;"google_ad_status"in window?Ez("DCLKSTAT",1):Ez("DCLKSTAT",2)};
try{g.QD("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}rGa.push(g.Cq.Ki(function(){if(!(qGa||"google_ad_status"in window)){try{if(b){var c=""+g.ab(b),d=Qpa[c];d&&g.OD(d)}}catch(e){}qGa=!0;Ez("DCLKSTAT",3)}},5E3))}}};
tGa=function(){var a=Number(g.Fz("DCLKSTAT",0));return isNaN(a)?0:a};
eS=function(a,b,c){if(!g.Hz("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)};
fS=function(a,b,c){if(!g.Hz("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)a(c[b[d]]);else a(c[b])};
Z=function(a){g.Hz("jspb_translator_log_errors")&&g.Mz(a)};
vGa=function(a){var b=new Ov,c=0;try{return void 0!==a.eventType&&(N(b,1,uGa[a.eventType]),c++),void 0!==a.storedEventsCount&&(wi(b,2,a.storedEventsCount),c++),void 0!==a.expiredEventsCount&&(wi(b,3,a.expiredEventsCount),c++),void 0!==a.averageTimeBetweenDispatchesMs&&(wi(b,4,a.averageTimeBetweenDispatchesMs),c++),void 0!==a.oldestStoredEventAgeMs&&(wi(b,5,a.oldestStoredEventAgeMs),c++),void 0!==a.metricIntervalMs&&(wi(b,6,a.metricIntervalMs),c++),void 0!==a.dispatchedEventCount&&(wi(b,7,a.dispatchedEventCount),
c++),void 0!==a.dispatchAttemptCount&&(wi(b,8,a.dispatchAttemptCount),c++),void 0!==a.withDiskSpaceMs&&(N(b,9,a.withDiskSpaceMs),c++),void 0!==a.withNetworkMs&&(N(b,10,a.withNetworkMs),c++),void 0!==a.foregroundMs&&(N(b,11,a.foregroundMs),c++),void 0!==a.activeMs&&(N(b,12,a.activeMs),c++),void 0!==a.condensedPageBcSlackCount&&(wi(b,13,a.condensedPageBcSlackCount),c++),void 0!==a.persistedDeleteUsedCount&&(wi(b,14,a.persistedDeleteUsedCount),c++),void 0!==a.persistedDeleteCount&&(wi(b,15,a.persistedDeleteCount),
c++),void 0!==a.eventDisabledCount&&(wi(b,16,a.eventDisabledCount),c++),void 0!==a.identityResolutionErrorCount&&(wi(b,17,a.identityResolutionErrorCount),c++),void 0!==a.exceededMaxRetryCount&&(wi(b,18,a.exceededMaxRetryCount),c++),void 0!==a.condensedPageBcPersistFailCount&&(wi(b,19,a.condensedPageBcPersistFailCount),c++),void 0!==a.couldNotUnloadPageCount&&(wi(b,20,a.couldNotUnloadPageCount),c++),void 0!==a.pageWasCorruptedCount&&(wi(b,24,a.pageWasCorruptedCount),c++),void 0!==a.badEventIndexCount&&
(wi(b,27,a.badEventIndexCount),c++),void 0!==a.serializeErrorCount&&(wi(b,25,a.serializeErrorCount),c++),void 0!==a.payloadInfoNotSetCount&&(wi(b,21,a.payloadInfoNotSetCount),c++),void 0!==a.requestEmptyErrorCount&&(wi(b,22,a.requestEmptyErrorCount),c++),void 0!==a.clientEventNotSetCount&&(wi(b,23,a.clientEventNotSetCount),c++),void 0!==a.differentIdCount&&(wi(b,26,a.differentIdCount),c++),void 0!==a.failedWriteCount&&(wi(b,28,a.failedWriteCount),c++),void 0!==a.failedReadCount&&(wi(b,29,a.failedReadCount),
c++),void 0!==a.failedDispatchCount&&(wi(b,30,a.failedDispatchCount),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
gS=function(a){var b=new px,c=0;try{void 0!==a.trackingParams&&(b.gg(a.trackingParams),c++);void 0!==a.veType&&(wi(b,2,a.veType),c++);void 0!==a.elementIndex&&(wi(b,3,a.elementIndex),c++);void 0!==a.veCounter&&(wi(b,6,a.veCounter),c++);if(a.dataElement){var d=gS(a.dataElement);d[0]&&(oi(b,px,7,d[1]),c++)}void 0!==a.isCounterfactual&&(vi(b,5,a.isCounterfactual),c++);if(a.youtubeData){var e=a.youtubeData,f=new cu,h=0;try{if(e.channelData){var l=e.channelData,m=new pt,n=0;try{void 0!==l.externalId&&
(si(m,1,l.externalId),n++);var p=[n===Object.keys(l).length,m]}catch(Na){Z(Na),p=[!1,void 0]}var q=p;q[0]&&(oi(f,pt,2,q[1]),h++)}if(e.channelItem){var t=e.channelItem,v=new qt,y=0;try{void 0!==t.externalId&&(si(v,1,t.externalId),y++);var A=[y===Object.keys(t).length,v]}catch(Na){Z(Na),A=[!1,void 0]}var E=A;E[0]&&(oi(f,qt,5,E[1]),h++)}if(e.playlistItem){var K=e.playlistItem,I=new Kt,F=0;try{void 0!==K.externalPlaylistId&&(si(I,5,K.externalPlaylistId),F++);var S=[F===Object.keys(K).length,I]}catch(Na){Z(Na),
S=[!1,void 0]}var Y=S;Y[0]&&(oi(f,Kt,6,Y[1]),h++)}if(e.analyticsData){var ia=e.analyticsData,ta=new nt,na=0;try{void 0!==ia.tabName&&(N(ta,1,wGa[ia.tabName]),na++);if(ia.analysisVariant){var ca=ia.analysisVariant,ha=new $s,Da=0;try{if(ca.analysisSummary){var fa=ca.analysisSummary,U=new Ks,Ua=0;try{void 0!==fa.type&&(N(U,1,xGa[fa.type]),Ua++);void 0!==fa.eligibility&&(N(U,2,yGa[fa.eligibility]),Ua++);void 0!==fa.sentiment&&(N(U,3,zGa[fa.sentiment]),Ua++);var r=[Ua===Object.keys(fa).length,U]}catch(Na){Z(Na),
r=[!1,void 0]}var V=r;V[0]&&(oi(ha,Ks,1,V[1]),Da++)}if(ca.videoPerformanceVariant){var ob=AGa(ca.videoPerformanceVariant);ob[0]&&(pi(ha,Xs,2,hS,ob[1]),Da++)}if(ca.videoOverviewVariant){var Ya=ca.videoOverviewVariant,Cb=new Ys,Ab=0;try{void 0!==Ya.timePeriod&&(N(Cb,1,iS[Ya.timePeriod]),Ab++);if(Ya.videoPerformanceVariant){var wb=AGa(Ya.videoPerformanceVariant);wb[0]&&(oi(Cb,Xs,2,wb[1]),Ab++)}void 0!==Ya.durationTimePeriod&&(N(Cb,3,BGa[Ya.durationTimePeriod]),Ab++);var Tb=[Ab===Object.keys(Ya).length,
Cb]}catch(Na){Z(Na),Tb=[!1,void 0]}var Ra=Tb;Ra[0]&&(pi(ha,Ys,3,hS,Ra[1]),Da++)}if(ca.channelFluctuationVariant){var ib=ca.channelFluctuationVariant,w=new Ns,C=0;try{void 0!==ib.views&&(N(w,1,jS[ib.views]),C++);void 0!==ib.driver&&(N(w,2,CGa[ib.driver]),C++);void 0!==ib.ctr&&(N(w,3,jS[ib.ctr]),C++);void 0!==ib.impressions&&(N(w,4,jS[ib.impressions]),C++);void 0!==ib.viewsPerVideo&&(N(w,5,jS[ib.viewsPerVideo]),C++);var D=[C===Object.keys(ib).length,w]}catch(Na){Z(Na),D=[!1,void 0]}var B=D;B[0]&&(pi(ha,
Ns,4,hS,B[1]),Da++)}if(ca.artistOverviewVariant){var M=ca.artistOverviewVariant,L=new Ls,T=0;try{void 0!==M.timePeriod&&(N(L,1,iS[M.timePeriod]),T++);void 0!==M.variantType&&(N(L,2,DGa[M.variantType]),T++);var W=[T===Object.keys(M).length,L]}catch(Na){Z(Na),W=[!1,void 0]}var oa=W;oa[0]&&(pi(ha,Ls,5,hS,oa[1]),Da++)}if(ca.monthlySubsVariant){var ma=EGa(ca.monthlySubsVariant);ma[0]&&(pi(ha,Rs,6,hS,ma[1]),Da++)}if(ca.monthlyRevenueVariant){var ba=FGa(ca.monthlyRevenueVariant);ba[0]&&(pi(ha,Qs,7,hS,ba[1]),
Da++)}if(ca.holisticMonthlyOverviewVariant){var pa=ca.holisticMonthlyOverviewVariant,Fa=new Ss,cb=0;try{if(pa.viewsPerformance){var rc=GGa(pa.viewsPerformance);rc[0]&&(oi(Fa,Ps,1,rc[1]),cb++)}if(pa.subsPerformance){var Kb=EGa(pa.subsPerformance);Kb[0]&&(oi(Fa,Rs,2,Kb[1]),cb++)}if(pa.revenuePerformance){var xb=FGa(pa.revenuePerformance);xb[0]&&(oi(Fa,Qs,3,xb[1]),cb++)}var $a=[cb===Object.keys(pa).length,Fa]}catch(Na){Z(Na),$a=[!1,void 0]}var gc=$a;gc[0]&&(pi(ha,Ss,8,hS,gc[1]),Da++)}if(ca.personalizedChannelOverviewVariant){var hc=
ca.personalizedChannelOverviewVariant,Wb=new Ws,fd=0;try{void 0!==hc.timePeriod&&(N(Wb,1,iS[hc.timePeriod]),fd++);if(hc.viewsPerformance){var yc=GGa(hc.viewsPerformance);yc[0]&&(oi(Wb,Ps,2,yc[1]),fd++)}var Sc=[fd===Object.keys(hc).length,Wb]}catch(Na){Z(Na),Sc=[!1,void 0]}var ud=Sc;ud[0]&&(pi(ha,Ws,9,hS,ud[1]),Da++)}if(ca.channelNewReturningVariant){var Dc=ca.channelNewReturningVariant,nd=new Os,Ed=0;try{void 0!==Dc.uniqueViewers&&(N(nd,1,jS[Dc.uniqueViewers]),Ed++);void 0!==Dc.newViewers&&(N(nd,
2,jS[Dc.newViewers]),Ed++);void 0!==Dc.returningViewers&&(N(nd,3,jS[Dc.returningViewers]),Ed++);var zc=[Ed===Object.keys(Dc).length,nd]}catch(Na){Z(Na),zc=[!1,void 0]}var ee=zc;ee[0]&&(pi(ha,Os,10,hS,ee[1]),Da++)}if(ca.lowReturningViewersDataStoryVariant){var Fd=ca.lowReturningViewersDataStoryVariant,Qe=new Ts,rb=0;try{void 0!==Fd.videoListType&&(N(Qe,1,HGa[Fd.videoListType]),rb++);var Mb=[rb===Object.keys(Fd).length,Qe]}catch(Na){Z(Na),Mb=[!1,void 0]}var mg=Mb;mg[0]&&(pi(ha,Ts,11,hS,mg[1]),Da++)}if(ca.weeklyDataStoryVariant){var gf=
ca.weeklyDataStoryVariant,Ph=new Zs,gd=0;try{void 0!==gf.dateId&&(xi(Ph,1,gf.dateId),gd++);var hd=[gd===Object.keys(gf).length,Ph]}catch(Na){Z(Na),hd=[!1,void 0]}var fe=hd;fe[0]&&(pi(ha,Zs,12,hS,fe[1]),Da++)}if(ca.monthlyDataStoryVariant){var Tc=ca.monthlyDataStoryVariant,Ec=new Us,Re=0;try{void 0!==Tc.dateId&&(xi(Ec,1,Tc.dateId),Re++);void 0!==Tc.highlightType&&(N(Ec,2,IGa[Tc.highlightType]),Re++);var Se=[Re===Object.keys(Tc).length,Ec]}catch(Na){Z(Na),Se=[!1,void 0]}var ng=Se;ng[0]&&(pi(ha,Us,13,
hS,ng[1]),Da++)}if(ca.otherFormatsDataStoryVariant){var xf=ca.otherFormatsDataStoryVariant,Qh=new Vs,Te=0;try{void 0!==xf.overlapShorts&&(xi(Qh,1,xf.overlapShorts),Te++);void 0!==xf.overlapChannels&&(xi(Qh,2,xf.overlapChannels),Te++);var Ue=[Te===Object.keys(xf).length,Qh]}catch(Na){Z(Na),Ue=[!1,void 0]}var Tf=Ue;Tf[0]&&(pi(ha,Vs,14,hS,Tf[1]),Da++)}if(ca.audienceWatchesLongformDataStoryVariant){var hf=ca.audienceWatchesLongformDataStoryVariant,jf=new Ms,Rd=0;try{void 0!==hf.hasOverlapVideo&&(vi(jf,
1,hf.hasOverlapVideo),Rd++);void 0!==hf.hasOverlapLivestream&&(vi(jf,2,hf.hasOverlapLivestream),Rd++);void 0!==hf.overlapChannels&&(xi(jf,3,hf.overlapChannels),Rd++);var Pb=[Rd===Object.keys(hf).length,jf]}catch(Na){Z(Na),Pb=[!1,void 0]}var lh=Pb;lh[0]&&(pi(ha,Ms,15,hS,lh[1]),Da++)}var Ve=[Da===Object.keys(ca).length,ha]}catch(Na){Z(Na),Ve=[!1,void 0]}var Jj=Ve;Jj[0]&&(oi(ta,$s,12,Jj[1]),na++)}if(ia.cardConfig){var yf=ia.cardConfig,mh=new dt,ve=0;try{void 0!==yf.cardType&&(N(mh,3,JGa[yf.cardType]),
ve++);void 0!==yf.legacyMobileCardType&&(N(mh,5,KGa[yf.legacyMobileCardType]),ve++);void 0!==yf.entityType&&(N(mh,4,LGa[yf.entityType]),ve++);if(yf.tableCardConfig){var Uf=yf.tableCardConfig,Ng=new ct,nh=0;try{void 0!==Uf.dimension&&(N(Ng,1,kS[Uf.dimension]),nh++);void 0!==Uf.metrics&&(fS(Ng.j.bind(Ng),Uf.metrics,kS),nh++);var kf=[nh===Object.keys(Uf).length,Ng]}catch(Na){Z(Na),kf=[!1,void 0]}var Rh=kf;Rh[0]&&(pi(mh,ct,1,MGa,Rh[1]),ve++)}if(yf.keyMetricCardConfig){var oh=yf.keyMetricCardConfig,Kj=
new bt,uk=0;try{oh.metricTabConfigs&&(eS(Kj.j.bind(Kj),oh.metricTabConfigs,NGa),uk++);var Sd=[uk===Object.keys(oh).length,Kj]}catch(Na){Z(Na),Sd=[!1,void 0]}var Vf=Sd;Vf[0]&&(pi(mh,bt,2,MGa,Vf[1]),ve++)}var og=[ve===Object.keys(yf).length,mh]}catch(Na){Z(Na),og=[!1,void 0]}var vk=og;vk[0]&&(oi(ta,dt,13,vk[1]),na++)}void 0!==ia.externalVideoId&&(O(ta,15,ia.externalVideoId),na++);void 0!==ia.videoSid&&(N(ta,16,ia.videoSid),na++);if(ia.exploreConfig){var zf=ia.exploreConfig,Ic=new mt,Af=0;try{void 0!==
zf.metrics&&(fS(Ic.j.bind(Ic),zf.metrics,kS),Af++);void 0!==zf.dimension&&(N(Ic,2,kS[zf.dimension]),Af++);void 0!==zf.timePeriodType&&(N(Ic,3,iS[zf.timePeriodType]),Af++);var Sh=[Af===Object.keys(zf).length,Ic]}catch(Na){Z(Na),Sh=[!1,void 0]}var wk=Sh;wk[0]&&(oi(ta,mt,18,wk[1]),na++)}if(ia.contentInspirationEntity){var ph=ia.contentInspirationEntity,Ui=new Js,Vi=0;try{if(ph.video){var qh=ph.video,Bf=new Is,vd=0;try{void 0!==qh.externalVideoId&&(O(Bf,1,qh.externalVideoId),vd++);var We=[vd===Object.keys(qh).length,
Bf]}catch(Na){Z(Na),We=[!1,void 0]}var Cf=We;Cf[0]&&(pi(Ui,Is,1,OGa,Cf[1]),Vi++)}if(ph.kgTopic){var Wi=ph.kgTopic,Xi=new Hs,xk=0;try{void 0!==Wi.kgTopicMid&&(O(Xi,1,Wi.kgTopicMid),xk++);var yk=[xk===Object.keys(Wi).length,Xi]}catch(Na){Z(Na),yk=[!1,void 0]}var Yi=yk;Yi[0]&&(pi(Ui,Hs,2,OGa,Yi[1]),Vi++)}if(ph.freeformTopic){var ge=ph.freeformTopic,Wf=new Gs,rh=0;try{void 0!==ge.freeformTopic&&(O(Wf,1,ge.freeformTopic),rh++);void 0!==ge.isContentGap&&(vi(Wf,2,ge.isContentGap),rh++);void 0!==ge.isShortsContentGap&&
(vi(Wf,3,ge.isShortsContentGap),rh++);var Th=[rh===Object.keys(ge).length,Wf]}catch(Na){Z(Na),Th=[!1,void 0]}var zk=Th;zk[0]&&(pi(Ui,Gs,3,OGa,zk[1]),Vi++)}var Lj=[Vi===Object.keys(ph).length,Ui]}catch(Na){Z(Na),Lj=[!1,void 0]}var Zi=Lj;Zi[0]&&(oi(ta,Js,19,Zi[1]),na++)}var Og=[na===Object.keys(ia).length,ta]}catch(Na){Z(Na),Og=[!1,void 0]}var Uh=Og;Uh[0]&&(oi(f,nt,20,Uh[1]),h++)}if(e.promotionData){var Pg=e.promotionData,Df=new Lt,Qg=0;try{void 0!==Pg.promotionId&&(O(Df,1,Pg.promotionId),Qg++);void 0!==
Pg.placementType&&(N(Df,9,PGa[Pg.placementType]),Qg++);var Xf=[Qg===Object.keys(Pg).length,Df]}catch(Na){Z(Na),Xf=[!1,void 0]}var Vh=Xf;Vh[0]&&(oi(f,Lt,21,Vh[1]),h++)}if(e.backstageItem){var Zb=e.backstageItem,Td=new ot,he=0;try{void 0!==Zb.stanzaId&&(O(Td,1,Zb.stanzaId),he++);void 0!==Zb.likeCount&&(N(Td,7,Zb.likeCount),he++);void 0!==Zb.backstageId&&(O(Td,9,Zb.backstageId),he++);void 0!==Zb.wasPostScheduled&&(vi(Td,14,Zb.wasPostScheduled),he++);var Ak=[he===Object.keys(Zb).length,Td]}catch(Na){Z(Na),
Ak=[!1,void 0]}var ao=Ak;ao[0]&&(oi(f,ot,32,ao[1]),h++)}if(e.adminSelfieData){var lf=e.adminSelfieData,$i=new jt,Bk=0;try{void 0!==lf.componentId&&(O($i,1,lf.componentId),Bk++);void 0!==lf.componentType&&(O($i,2,lf.componentType),Bk++);if(lf.payload){var sh=lf.payload,mf=new ht,Wh=0;try{if(sh.include){var aj=sh.include,yl=new et,Bm=0;try{void 0!==aj.fragmentName&&(O(yl,1,aj.fragmentName),Bm++);var bo=[Bm===Object.keys(aj).length,yl]}catch(Na){Z(Na),bo=[!1,void 0]}var bj=bo;bj[0]&&(pi(mf,et,1,QGa,
bj[1]),Wh++)}if(sh.toolboxPage){var Ck=sh.toolboxPage,wd=new gt,Gd=0;try{void 0!==Ck.fragmentName&&(O(wd,1,Ck.fragmentName),Gd++);var Rg=[Gd===Object.keys(Ck).length,wd]}catch(Na){Z(Na),Rg=[!1,void 0]}var pg=Rg;pg[0]&&(pi(mf,gt,2,QGa,pg[1]),Wh++)}if(sh.reviewQueuePage){var cj=sh.reviewQueuePage,nf=new ft,zl=0;try{void 0!==cj.queueId&&(wi(nf,1,cj.queueId),zl++);var Cm=[zl===Object.keys(cj).length,nf]}catch(Na){Z(Na),Cm=[!1,void 0]}var Ef=Cm;Ef[0]&&(pi(mf,ft,3,QGa,Ef[1]),Wh++)}var Mj=[Wh===Object.keys(sh).length,
mf]}catch(Na){Z(Na),Mj=[!1,void 0]}var Xe=Mj;Xe[0]&&(oi($i,ht,3,Xe[1]),Bk++)}var th=[Bk===Object.keys(lf).length,$i]}catch(Na){Z(Na),th=[!1,void 0]}var uh=th;uh[0]&&(oi(f,jt,41,uh[1]),h++)}if(e.notificationState){var dj=e.notificationState,co=new Yt,Sg=0;try{if(dj.inboxInteractionData){var Dk=dj.inboxInteractionData,Ek=new Xt,Al=0;try{Dk.notifications&&(eS(Ek.j.bind(Ek),Dk.notifications,RGa),Al++);var Bl=[Al===Object.keys(Dk).length,Ek]}catch(Na){Z(Na),Bl=[!1,void 0]}var qg=Bl;qg[0]&&(oi(co,Xt,9,
qg[1]),Sg++)}var Xh=[Sg===Object.keys(dj).length,co]}catch(Na){Z(Na),Xh=[!1,void 0]}var ej=Xh;ej[0]&&(oi(f,Yt,59,ej[1]),h++)}if(e.delegationContext){var of=e.delegationContext,rg=new It,Ye=0;try{void 0!==of.externalChannelId&&(O(rg,1,of.externalChannelId),Ye++);void 0!==of.externalOwnerId&&(O(rg,3,of.externalOwnerId),Ye++);void 0!==of.artistId&&(O(rg,4,of.artistId),Ye++);if(of.roleType){var sg=of.roleType,fj=new Ht,Cl=0;try{void 0!==sg.channelRoleType&&(ki(fj,1,SGa,TGa[sg.channelRoleType]),Cl++);
void 0!==sg.artistRoleType&&(ki(fj,2,SGa,UGa[sg.artistRoleType]),Cl++);void 0!==sg.contentOwnerRoleType&&(ki(fj,3,SGa,VGa[sg.contentOwnerRoleType]),Cl++);var tg=[Cl===Object.keys(sg).length,fj]}catch(Na){Z(Na),tg=[!1,void 0]}var Dl=tg;Dl[0]&&(oi(rg,Ht,5,Dl[1]),Ye++)}void 0!==of.oacChannelId&&(O(rg,6,of.oacChannelId),Ye++);void 0!==of.isInternalUser&&(vi(rg,8,of.isInternalUser),Ye++);void 0!==of.delegationContextSerialized&&(si(rg,9,of.delegationContextSerialized),Ye++);var El=[Ye===Object.keys(of).length,
rg]}catch(Na){Z(Na),El=[!1,void 0]}var Fk=El;Fk[0]&&(oi(f,It,63,Fk[1]),h++)}if(e.campaignData){var we=e.campaignData,ug=new Vt,Nj=0;try{void 0!==we.campaignName&&(O(ug,1,we.campaignName),Nj++);void 0!==we.campaignVersion&&(O(ug,2,we.campaignVersion),Nj++);var eo=[Nj===Object.keys(we).length,ug]}catch(Na){Z(Na),eo=[!1,void 0]}var fb=eo;fb[0]&&(oi(f,Vt,64,fb[1]),h++)}if(e.scoringEventInfo){var sr=e.scoringEventInfo,tr=new Mt,Oj=0;try{void 0!==sr.scoringTrackingParams&&(si(tr,1,sr.scoringTrackingParams),
Oj++);var Ep=[Oj===Object.keys(sr).length,tr]}catch(Na){Z(Na),Ep=[!1,void 0]}var Fp=Ep;Fp[0]&&(oi(f,Mt,77,Fp[1]),h++)}if(e.servletData){var ti=e.servletData,fo=new Nt,go=0;try{void 0!==ti.serializedServletEventId&&(O(fo,1,ti.serializedServletEventId),go++);var ur=[go===Object.keys(ti).length,fo]}catch(Na){Z(Na),ur=[!1,void 0]}var gu=ur;gu[0]&&(oi(f,Nt,83,gu[1]),h++)}if(e.yoodleData){var Gp=e.yoodleData,hu=new Ut,iu=0;try{void 0!==Gp.promoId&&(O(hu,1,Gp.promoId),iu++);var ju=[iu===Object.keys(Gp).length,
hu]}catch(Na){Z(Na),ju=[!1,void 0]}var ku=ju;ku[0]&&(oi(f,Ut,85,ku[1]),h++)}if(e.videoRestrictionData){var ho=e.videoRestrictionData,Hp=new Tt,gj=0;try{ho.restrictions&&(eS(Hp.j.bind(Hp),ho.restrictions,WGa),gj++);void 0!==ho.prechecksPending&&(vi(Hp,2,ho.prechecksPending),gj++);var Pc=[gj===Object.keys(ho).length,Hp]}catch(Na){Z(Na),Pc=[!1,void 0]}var vh=Pc;vh[0]&&(oi(f,Tt,92,vh[1]),h++)}if(e.creatorMusicData){var hj=e.creatorMusicData,Dm=new Gt,Em=0;try{if(hj.entity){var Yh=XGa(hj.entity);Yh[0]&&
(oi(Dm,Ft,1,Yh[1]),Em++)}hj.entities&&(eS(Dm.j.bind(Dm),hj.entities,XGa),Em++);if(hj.track){var Fm=YGa(hj.track);Fm[0]&&(pi(Dm,Et,3,ZGa,Fm[1]),Em++)}if(hj.collection){var Fl=$Ga(hj.collection);Fl[0]&&(pi(Dm,Ct,4,ZGa,Fl[1]),Em++)}var lu=[Em===Object.keys(hj).length,Dm]}catch(Na){Z(Na),lu=[!1,void 0]}var vr=lu;vr[0]&&(oi(f,Gt,96,vr[1]),h++)}if(e.creatorData){var Yf=e.creatorData,Gk=new wt,Hk=0;try{void 0!==Yf.ttWizardTargetFeature&&(ki(Gk,1,aHa,bHa[Yf.ttWizardTargetFeature]),Hk++);void 0!==Yf.ttWizardTargetLevel&&
(ki(Gk,2,aHa,cHa[Yf.ttWizardTargetLevel]),Hk++);if(Yf.simpleWizardDetails){var mu=Yf.simpleWizardDetails,Nx=new vt;try{var wr=[0===Object.keys(mu).length,Nx]}catch(Na){Z(Na),wr=[!1,void 0]}var xr=wr;xr[0]&&(pi(Gk,vt,3,dHa,xr[1]),Hk++)}if(Yf.advancedWizardDetails){var yr=Yf.advancedWizardDetails,zr=new tt,Ar=0;try{void 0!==yr.isDoubleHop&&(vi(zr,1,yr.isDoubleHop),Ar++);var Br=[Ar===Object.keys(yr).length,zr]}catch(Na){Z(Na),Br=[!1,void 0]}var nu=Br;nu[0]&&(pi(Gk,tt,4,dHa,nu[1]),Hk++)}if(Yf.blockedWizardDetails){var Gl=
Yf.blockedWizardDetails,io=new ut,Cr=0;try{void 0!==Gl.loggableBlockedReason&&(N(io,1,eHa[Gl.loggableBlockedReason]),Cr++);var Dr=[Cr===Object.keys(Gl).length,io]}catch(Na){Z(Na),Dr=[!1,void 0]}var jo=Dr;jo[0]&&(pi(Gk,ut,5,dHa,jo[1]),Hk++)}var Er=[Hk===Object.keys(Yf).length,Gk]}catch(Na){Z(Na),Er=[!1,void 0]}var Hl=Er;Hl[0]&&(oi(f,wt,98,Hl[1]),h++)}if(e.adstubeData){var ko=e.adstubeData,ou=new lt,Ik=0;try{if(ko.countryTargetingPrefill){var ij=ko.countryTargetingPrefill,Jk=new kt,Ip=0;try{ij.prefilledCodes&&
(eS(Jk.u.bind(Jk),ij.prefilledCodes),Ip++);ij.finalCodes&&(eS(Jk.j.bind(Jk),ij.finalCodes),Ip++);void 0!==ij.source&&(O(Jk,3,ij.source),Ip++);var pu=[Ip===Object.keys(ij).length,Jk]}catch(Na){Z(Na),pu=[!1,void 0]}var Fr=pu;Fr[0]&&(oi(ou,kt,1,Fr[1]),Ik++)}var qu=[Ik===Object.keys(ko).length,ou]}catch(Na){Z(Na),qu=[!1,void 0]}var ru=qu;ru[0]&&(oi(f,lt,104,ru[1]),h++)}if(e.loggingExpectations){var tu=fHa(e.loggingExpectations);tu[0]&&(oi(f,bu,106,tu[1]),h++)}if(e.channelPageVeData){var Zf=e.channelPageVeData,
Pj=new rt,Qj=0;try{void 0!==Zf.isForYouShelf&&(vi(Pj,2,Zf.isForYouShelf),Qj++);var uu=[Qj===Object.keys(Zf).length,Pj]}catch(Na){Z(Na),uu=[!1,void 0]}var vu=uu;vu[0]&&(oi(f,rt,107,vu[1]),h++)}if(e.shoppingAffiliateData){var jj=e.shoppingAffiliateData,lo=new Ot,mo=0;try{void 0!==jj.affiliateDeepLinkSource&&(N(lo,1,gHa[jj.affiliateDeepLinkSource]),mo++);var Px=[mo===Object.keys(jj).length,lo]}catch(Na){Z(Na),Px=[!1,void 0]}var Gr=Px;Gr[0]&&(oi(f,Ot,109,Gr[1]),h++)}if(e.hashtagSuggestionData){var Gm=
e.hashtagSuggestionData,no=new Jt,oo=0;try{void 0!==Gm.hashtagId&&(O(no,1,Gm.hashtagId),oo++);void 0!==Gm.suggestionSources&&(fS(no.j.bind(no),Gm.suggestionSources,hHa),oo++);var wu=[oo===Object.keys(Gm).length,no]}catch(Na){Z(Na),wu=[!1,void 0]}var xu=wu;xu[0]&&(oi(f,Jt,111,xu[1]),h++)}var yu=[h===Object.keys(e).length,f]}catch(Na){Z(Na),yu=[!1,void 0]}var Hr=yu;Hr[0]&&(oi(b,cu,8,Hr[1]),c++)}if(a.loggingExpectations){var zu=fHa(a.loggingExpectations);zu[0]&&(oi(b,bu,9,zu[1]),c++)}return[c===Object.keys(a).length,
b]}catch(Na){return Z(Na),[!1,void 0]}};
AGa=function(a){var b=new Xs,c=0;try{return void 0!==a.views&&(N(b,1,jS[a.views]),c++),void 0!==a.driver&&(N(b,2,iHa[a.driver]),c++),void 0!==a.ctr&&(N(b,3,jS[a.ctr]),c++),void 0!==a.avd&&(N(b,4,jS[a.avd]),c++),void 0!==a.impressions&&(N(b,5,jS[a.impressions]),c++),void 0!==a.videoLength&&(N(b,6,jS[a.videoLength]),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
EGa=function(a){var b=new Rs,c=0;try{return void 0!==a.subsGrowth&&(N(b,1,jS[a.subsGrowth]),c++),void 0!==a.nonSubViews&&(N(b,2,jS[a.nonSubViews]),c++),void 0!==a.subsAddedPerNonSubViews&&(N(b,3,jS[a.subsAddedPerNonSubViews]),c++),void 0!==a.accountsClosed&&(N(b,4,jS[a.accountsClosed]),c++),void 0!==a.subsRemovedToAddedRatio&&(N(b,5,jS[a.subsRemovedToAddedRatio]),c++),void 0!==a.videosPublished&&(N(b,6,jS[a.videosPublished]),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
FGa=function(a){var b=new Qs,c=0;try{return void 0!==a.revenue&&(N(b,1,jS[a.revenue]),c++),void 0!==a.revenueSource&&(N(b,2,jHa[a.revenueSource]),c++),void 0!==a.revenueDrivingMetrics&&(fS(b.j.bind(b),a.revenueDrivingMetrics,kHa),c++),void 0!==a.revenueChangeReason&&(N(b,4,lHa[a.revenueChangeReason]),c++),void 0!==a.revenueChangeFact&&(N(b,5,mHa[a.revenueChangeFact]),c++),void 0!==a.driverCountryCode&&(O(b,6,a.driverCountryCode),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
GGa=function(a){var b=new Ps,c=0;try{return void 0!==a.views&&(N(b,1,jS[a.views]),c++),void 0!==a.drivers&&(fS(b.j.bind(b),a.drivers,nHa),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
NGa=function(a){var b=new at,c=0;try{return void 0!==a.metric&&(N(b,1,kS[a.metric]),c++),void 0!==a.comparisonMetric&&(N(b,2,kS[a.comparisonMetric]),c++),void 0!==a.includeCumulative&&(vi(b,3,a.includeCumulative),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
RGa=function(a){var b=new Wt,c=0;try{return void 0!==a.attributionTag&&(O(b,2,a.attributionTag),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
WGa=function(a){var b=new St,c=0;try{if(a.limitedAds){var d=a.limitedAds,e=new Rt,f=0;try{void 0!==d.imposer&&(N(e,1,oHa[d.imposer]),f++);var h=[f===Object.keys(d).length,e]}catch(v){Z(v),h=[!1,void 0]}h[0]&&(pi(b,Rt,1,pHa,h[1]),c++)}if(a.copyright){var l=a.copyright,m=new Qt;h=0;try{void 0!==l.policyType&&(N(m,1,qHa[l.policyType]),h++);void 0!==l.productTagsBlocked&&(vi(m,2,l.productTagsBlocked),h++);var n=[h===Object.keys(l).length,m]}catch(v){Z(v),n=[!1,void 0]}n[0]&&(pi(b,Qt,2,pHa,n[1]),c++)}if(a.communityGuidelines){var p=
a.communityGuidelines,q=new Pt;n=0;try{void 0!==p.policyVerticals&&(fS(q.j.bind(q),p.policyVerticals,rHa),n++);var t=[n===Object.keys(p).length,q]}catch(v){Z(v),t=[!1,void 0]}t[0]&&(pi(b,Pt,3,pHa,t[1]),c++)}return[c===Object.keys(a).length,b]}catch(v){return Z(v),[!1,void 0]}};
XGa=function(a){var b=new Ft,c=0;try{if(a.featuredCollection){var d=sHa(a.featuredCollection);d[0]&&(pi(b,xt,1,lS,d[1]),c++)}if(a.mood){var e=tHa(a.mood);e[0]&&(pi(b,At,2,lS,e[1]),c++)}if(a.genre){var f=uHa(a.genre);f[0]&&(pi(b,zt,3,lS,f[1]),c++)}if(a.track){var h=YGa(a.track);h[0]&&(pi(b,Et,4,lS,h[1]),c++)}return[c===Object.keys(a).length,b]}catch(l){return Z(l),[!1,void 0]}};
sHa=function(a){var b=new xt,c=0;try{return void 0!==a.id&&(O(b,1,a.id),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
tHa=function(a){var b=new At,c=0;try{return void 0!==a.type&&(N(b,1,vHa[a.type]),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
uHa=function(a){var b=new zt,c=0;try{return void 0!==a.type&&(N(b,1,wHa[a.type]),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
YGa=function(a){var b=new Et,c=0;try{void 0!==a.artTrackId&&(O(b,1,a.artTrackId),c++);void 0!==a.assetId&&(O(b,2,a.assetId),c++);if(a.details){var d=a.details,e=new Dt;try{var f=[0===Object.keys(d).length,e]}catch(l){Z(l),f=[!1,void 0]}f[0]&&(oi(b,Dt,3,f[1]),c++)}if(a.parent){var h=$Ga(a.parent);h[0]&&(oi(b,Ct,4,h[1]),c++)}return[c===Object.keys(a).length,b]}catch(l){return Z(l),[!1,void 0]}};
$Ga=function(a){var b=new Ct,c=0;try{if(a.featuredCollection){var d=sHa(a.featuredCollection);d[0]&&(pi(b,xt,1,mS,d[1]),c++)}if(a.mood){var e=tHa(a.mood);e[0]&&(pi(b,At,2,mS,e[1]),c++)}if(a.genre){var f=uHa(a.genre);f[0]&&(pi(b,zt,3,mS,f[1]),c++)}if(a.section){var h=a.section,l=new Bt;d=0;try{void 0!==h.type&&(N(l,1,xHa[h.type]),d++);var m=[d===Object.keys(h).length,l]}catch(n){Z(n),m=[!1,void 0]}m[0]&&(pi(b,Bt,4,mS,m[1]),c++)}void 0!==a.dimension&&(N(b,5,yHa[a.dimension]),c++);return[c===Object.keys(a).length,
b]}catch(n){return Z(n),[!1,void 0]}};
fHa=function(a){var b=new bu,c=0;try{if(a.attachLoggingExpectations){var d=a.attachLoggingExpectations,e=new $t,f=0;try{d.attachScreenExpectations&&(eS(e.j.bind(e),d.attachScreenExpectations,zHa),f++);var h=[f===Object.keys(d).length,e]}catch(p){Z(p),h=[!1,void 0]}h[0]&&(oi(b,$t,1,h[1]),c++)}if(a.screenCreatedLoggingExpectations){var l=a.screenCreatedLoggingExpectations,m=new au;h=0;try{l.expectedParentScreens&&(eS(m.j.bind(m),l.expectedParentScreens,zHa),h++);var n=[h===Object.keys(l).length,m]}catch(p){Z(p),
n=[!1,void 0]}n[0]&&(oi(b,au,2,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return Z(p),[!1,void 0]}};
zHa=function(a){var b=new Zt,c=0;try{return void 0!==a.screenVeType&&(hma(b,a.screenVeType),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
CHa=function(a){var b=new hw,c=0;try{return a.segments&&(eS(b.j.bind(b),a.segments,AHa),c++),a.transitions&&(eS(b.u.bind(b),a.transitions,BHa),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
AHa=function(a){var b=new fw,c=0;try{void 0!==a.type&&(N(b,1,DHa[a.type]),c++);a.effects&&(eS(b.s3.bind(b),a.effects,EHa),c++);if(a.videoInfo){var d=FHa(a.videoInfo);d[0]&&(oi(b,dw,3,d[1]),c++)}if(a.audioInfo){var e=a.audioInfo,f=new cw;d=0;try{void 0!==e.sourceOffsetMs&&(N(f,1,e.sourceOffsetMs),d++);void 0!==e.sampleRateHz&&(wi(f,2,e.sampleRateHz),d++);void 0!==e.channelCount&&(wi(f,3,e.channelCount),d++);void 0!==e.isRemote&&(vi(f,4,e.isRemote),d++);var h=[d===Object.keys(e).length,f]}catch(l){Z(l),
h=[!1,void 0]}h[0]&&(oi(b,cw,4,h[1]),c++)}void 0!==a.startTimeMs&&(N(b,5,a.startTimeMs),c++);void 0!==a.durationMs&&(N(b,6,a.durationMs),c++);void 0!==a.playbackRate&&(b.setPlaybackRate(a.playbackRate),c++);void 0!==a.enabled&&(b.uQ(a.enabled),c++);return[c===Object.keys(a).length,b]}catch(l){return Z(l),[!1,void 0]}};
EHa=function(a){var b=new ew,c=0;try{return void 0!==a.effectBaseName&&(O(b,1,a.effectBaseName),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
FHa=function(a){var b=new dw,c=0;try{return void 0!==a.resolutionWidth&&(wi(b,1,a.resolutionWidth),c++),void 0!==a.resolutionHeight&&(wi(b,2,a.resolutionHeight),c++),void 0!==a.frameRate&&(qi(b,3,a.frameRate),c++),void 0!==a.durationMs&&(N(b,4,a.durationMs),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
BHa=function(a){var b=new gw,c=0;try{if(a.incomingSegment){var d=AHa(a.incomingSegment);d[0]&&(oi(b,fw,1,d[1]),c++)}if(a.outgoingSegment){var e=AHa(a.outgoingSegment);e[0]&&(oi(b,fw,2,e[1]),c++)}void 0!==a.durationMs&&(N(b,3,a.durationMs),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}};
GHa=function(a){var b=new Yv,c=0;try{return void 0!==a.previewWidth&&(wi(b,1,a.previewWidth),c++),void 0!==a.previewHeight&&(wi(b,2,a.previewHeight),c++),void 0!==a.fps&&(wi(b,3,a.fps),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
AIa=function(a){var b=new Tx,c=0;try{void 0!==a.encryptedVideoId&&(O(b,1,a.encryptedVideoId),c++);void 0!==a.cotn&&(O(b,20,a.cotn),c++);void 0!==a.cpn&&(O(b,30,a.cpn),c++);void 0!==a.transferStatusType&&(N(b,38,HHa[a.transferStatusType]),c++);void 0!==a.statusType&&(N(b,2,IHa[a.statusType]),c++);void 0!==a.failureReason&&(N(b,3,JHa[a.failureReason]),c++);void 0!==a.transferFailureReason&&(N(b,41,KHa[a.transferFailureReason]),c++);void 0!==a.failureExceptionType&&(O(b,37,a.failureExceptionType),c++);
void 0!==a.totalFetchedKbytes&&(N(b,4,a.totalFetchedKbytes),c++);void 0!==a.diskAvailableKbytes&&(N(b,5,a.diskAvailableKbytes),c++);void 0!==a.totalContentKbytes&&(N(b,21,a.totalContentKbytes),c++);void 0!==a.alreadyDownloadedKbytes&&(N(b,22,a.alreadyDownloadedKbytes),c++);void 0!==a.fetchedFromCacheKbytes&&(N(b,23,a.fetchedFromCacheKbytes),c++);if(a.systemHealth){var d=a.systemHealth,e=new Sw,f=0;try{void 0!==d.tag&&(N(e,1,LHa[d.tag]),f++);if(d.staticContext){var h=d.staticContext,l=new Nw,m=0;try{void 0!==
h.displayDensityDpi&&(wi(l,1,h.displayDensityDpi),m++);void 0!==h.heightPixels&&(wi(l,2,h.heightPixels),m++);void 0!==h.widthPixels&&(wi(l,3,h.widthPixels),m++);void 0!==h.memoryTotalKbytes&&(N(l,4,h.memoryTotalKbytes),m++);void 0!==h.osSdkVersion&&(wi(l,5,h.osSdkVersion),m++);void 0!==h.osIncrementalVersion&&(O(l,6,h.osIncrementalVersion),m++);void 0!==h.hardwareArchitecture&&(O(l,7,h.hardwareArchitecture),m++);void 0!==h.appVersionCode&&(wi(l,8,h.appVersionCode),m++);void 0!==h.devicePixelRatio&&
(qi(l,9,h.devicePixelRatio),m++);void 0!==h.buildFingerprint&&(O(l,10,h.buildFingerprint),m++);void 0!==h.socManufacturer&&(O(l,11,h.socManufacturer),m++);void 0!==h.socModel&&(O(l,12,h.socModel),m++);void 0!==h.availableProcessors&&(wi(l,13,h.availableProcessors),m++);void 0!==h.cpuCores&&(wi(l,14,h.cpuCores),m++);void 0!==h.heightPoints&&(wi(l,15,h.heightPoints),m++);void 0!==h.widthPoints&&(wi(l,16,h.widthPoints),m++);void 0!==h.androidMediaPerformanceClass&&(wi(l,17,h.androidMediaPerformanceClass),
m++);var n=[m===Object.keys(h).length,l]}catch(fb){Z(fb),n=[!1,void 0]}var p=n;p[0]&&(oi(e,Nw,2,p[1]),f++)}if(d.dynamicContext){var q=d.dynamicContext,t=new Hw,v=0;try{void 0!==q.screenOn&&(vi(t,1,q.screenOn),v++);void 0!==q.deviceRotation&&(wi(t,2,q.deviceRotation),v++);void 0!==q.networkType&&(wi(t,3,q.networkType),v++);void 0!==q.networkCoarseState&&(wi(t,4,q.networkCoarseState),v++);void 0!==q.chargingStatus&&(N(t,5,MHa[q.chargingStatus]),v++);void 0!==q.isInForeground&&(vi(t,6,q.isInForeground),
v++);void 0!==q.viewportHeightPixels&&(wi(t,7,q.viewportHeightPixels),v++);void 0!==q.viewportWidthPixels&&(wi(t,8,q.viewportWidthPixels),v++);void 0!==q.hasCoarsePointer&&(vi(t,9,q.hasCoarsePointer),v++);void 0!==q.hasFinePointer&&(vi(t,10,q.hasFinePointer),v++);void 0!==q.hasHoverSupport&&(vi(t,11,q.hasHoverSupport),v++);void 0!==q.deviceFreeStorageMbytes&&(N(t,12,q.deviceFreeStorageMbytes),v++);void 0!==q.deviceStorageQuotaMbytes&&(N(t,13,q.deviceStorageQuotaMbytes),v++);void 0!==q.deviceStorageUsageMbytes&&
(N(t,14,q.deviceStorageUsageMbytes),v++);void 0!==q.processUptimeMs&&(N(t,15,q.processUptimeMs),v++);void 0!==q.hasAppShell&&(vi(t,16,q.hasAppShell),v++);void 0!==q.glVersion&&(O(t,17,q.glVersion),v++);void 0!==q.glRenderer&&(O(t,18,q.glRenderer),v++);q.srsDatapushBuildIds&&(eS(t.u.bind(t),q.srsDatapushBuildIds,NHa),v++);q.playerDatapushBuildIds&&(eS(t.j.bind(t),q.playerDatapushBuildIds,OHa),v++);if(q.creationContext){var y=q.creationContext,A=new Fw,E=0;try{void 0!==y.activeFrontendUploadId&&(O(A,
1,y.activeFrontendUploadId),E++);void 0!==y.inShortsCreation&&(vi(A,2,y.inShortsCreation),E++);y.activeEffectLoggingIds&&(eS(A.j.bind(A),y.activeEffectLoggingIds,PHa),E++);var K=[E===Object.keys(y).length,A]}catch(fb){Z(fb),K=[!1,void 0]}var I=K;I[0]&&(oi(t,Fw,21,I[1]),v++)}if(q.kimonoContext){var F=q.kimonoContext,S=new Gw,Y=0;try{void 0!==F.cobaltUserAgent&&(O(S,1,F.cobaltUserAgent),Y++);void 0!==F.webAppVersion&&(O(S,2,F.webAppVersion),Y++);void 0!==F.cobaltVersion&&(O(S,3,F.cobaltVersion),Y++);
void 0!==F.webAppInterface&&(N(S,4,$wa[F.webAppInterface]),Y++);void 0!==F.clientDocumentNonce&&(O(S,5,F.clientDocumentNonce),Y++);var ia=[Y===Object.keys(F).length,S]}catch(fb){Z(fb),ia=[!1,void 0]}var ta=ia;ta[0]&&(oi(t,Gw,22,ta[1]),v++)}var na=[v===Object.keys(q).length,t]}catch(fb){Z(fb),na=[!1,void 0]}var ca=na;ca[0]&&(oi(e,Hw,3,ca[1]),f++)}void 0!==d.serializedPrimesMetric&&(si(e,4,d.serializedPrimesMetric),f++);void 0!==d.serializedIosPrimesMetric&&(si(e,6,d.serializedIosPrimesMetric),f++);
if(d.webMetric){var ha=d.webMetric,Da=new Pw,fa=0;try{void 0!==ha.currentHeapKbytes&&(wi(Da,1,ha.currentHeapKbytes),fa++);void 0!==ha.navigationCount&&(wi(Da,2,ha.navigationCount),fa++);var U=[fa===Object.keys(ha).length,Da]}catch(fb){Z(fb),U=[!1,void 0]}var Ua=U;Ua[0]&&(oi(e,Pw,7,Ua[1]),f++)}if(d.crashData){var r=d.crashData,V=new Bw,ob=0;try{void 0!==r.stackTrace&&(O(V,1,r.stackTrace),ob++);void 0!==r.screenVeType&&(wi(V,2,r.screenVeType),ob++);if(r.compactStackTrace){var Ya=nS(r.compactStackTrace);
Ya[0]&&(oi(V,Nv,3,Ya[1]),ob++)}void 0!==r.crashTimeMs&&(N(V,4,r.crashTimeMs),ob++);if(r.clientError){var Cb=r.clientError,Ab=new Aw,wb=0;try{if(Cb.errorMetadata){var Tb=Cb.errorMetadata,Ra=new nw,ib=0;try{void 0!==Tb.exceptionCategory&&(N(Ra,1,QHa[Tb.exceptionCategory]),ib++);if(Tb.serviceTrackingData){var w=Tb.serviceTrackingData,C=new Xv,D=0;try{void 0!==w.innertubeBuildChangelist&&(N(C,1,w.innertubeBuildChangelist),D++);void 0!==w.innertubeBuildExperimentsSourceVersion&&(N(C,2,w.innertubeBuildExperimentsSourceVersion),
D++);void 0!==w.innertubeBuildLabel&&(O(C,3,w.innertubeBuildLabel),D++);void 0!==w.innertubeBuildTimestampSec&&(N(C,4,w.innertubeBuildTimestampSec),D++);void 0!==w.innertubeBuildVariantsChecksum&&(O(C,5,w.innertubeBuildVariantsChecksum),D++);void 0!==w.innertubeJobName&&(O(C,6,w.innertubeJobName),D++);var B=[D===Object.keys(w).length,C]}catch(fb){Z(fb),B=[!1,void 0]}var M=B;M[0]&&(oi(Ra,Xv,2,M[1]),ib++)}void 0!==Tb.pageUrl&&(O(Ra,3,Tb.pageUrl),ib++);Tb.kvPairs&&(eS(Ra.j.bind(Ra),Tb.kvPairs,RHa),ib++);
Tb.experimentIds&&(eS(Ra.u.bind(Ra),Tb.experimentIds),ib++);if(Tb.playerMetadata){var L=Tb.playerMetadata,T=new mw,W=0;try{void 0!==L.error&&(fS(T.j.bind(T),L.error,SHa),W++);void 0!==L.stackTrace&&(O(T,2,L.stackTrace),W++);var oa=[W===Object.keys(L).length,T]}catch(fb){Z(fb),oa=[!1,void 0]}var ma=oa;ma[0]&&(oi(Ra,mw,6,ma[1]),ib++)}void 0!==Tb.exceptionType&&(N(Ra,7,THa[Tb.exceptionType]),ib++);void 0!==Tb.clientScreenNonce&&(O(Ra,8,Tb.clientScreenNonce),ib++);if(Tb.blocksMethodExecutionInfo){var ba=
Tb.blocksMethodExecutionInfo,pa=new Vv,Fa=0;try{void 0!==ba.methodId&&(xi(pa,1,ba.methodId),Fa++);void 0!==ba.blockTypeId&&(xi(pa,2,ba.blockTypeId),Fa++);void 0!==ba.methodType&&(N(pa,3,UHa[ba.methodType]),Fa++);void 0!==ba.requestSize&&(xi(pa,4,ba.requestSize),Fa++);void 0!==ba.responseSize&&(xi(pa,5,ba.responseSize),Fa++);void 0!==ba.statusCode&&(xi(pa,6,ba.statusCode),Fa++);void 0!==ba.containerId&&(xi(pa,7,ba.containerId),Fa++);void 0!==ba.moduleIdentifier&&(O(pa,8,ba.moduleIdentifier),Fa++);
void 0!==ba.datapushBuildId&&(N(pa,9,ba.datapushBuildId),Fa++);var cb=[Fa===Object.keys(ba).length,pa]}catch(fb){Z(fb),cb=[!1,void 0]}var rc=cb;rc[0]&&(oi(Ra,Vv,9,rc[1]),ib++)}if(Tb.mediaEngineMetadata){var Kb=Tb.mediaEngineMetadata,xb=new g.kw,$a=0;try{void 0!==Kb.client&&(xb.u(VHa[Kb.client]),$a++);void 0!==Kb.mdeErrorType&&(N(xb,2,WHa[Kb.mdeErrorType]),$a++);void 0!==Kb.uploadId&&(O(xb,3,Kb.uploadId),$a++);Kb.composition&&(eS(xb.j.bind(xb),Kb.composition,CHa),$a++);if(Kb.player){var gc=Kb.player,
hc=new iw,Wb=0;try{void 0!==gc.state&&(hc.Ac(XHa[gc.state]),Wb++);void 0!==gc.playbackPositionTimeMs&&(N(hc,2,gc.playbackPositionTimeMs),Wb++);var fd=[Wb===Object.keys(gc).length,hc]}catch(fb){Z(fb),fd=[!1,void 0]}var yc=fd;yc[0]&&(oi(xb,iw,5,yc[1]),$a++)}if(Kb.exporter){var Sc=Kb.exporter,ud=new bw,Dc=0;try{if(Sc.settings){var nd=Sc.settings,Ed=new aw,zc=0;try{void 0!==nd.audioChannelCount&&(wi(Ed,1,nd.audioChannelCount),zc++);void 0!==nd.resolutionWidth&&(wi(Ed,2,nd.resolutionWidth),zc++);void 0!==
nd.resolutionHeight&&(wi(Ed,3,nd.resolutionHeight),zc++);var ee=[zc===Object.keys(nd).length,Ed]}catch(fb){Z(fb),ee=[!1,void 0]}var Fd=ee;Fd[0]&&(ud.qh(Fd[1]),Dc++)}void 0!==Sc.state&&(ud.Ac(YHa[Sc.state]),Dc++);void 0!==Sc.durationMs&&(N(ud,3,Sc.durationMs),Dc++);var Qe=[Dc===Object.keys(Sc).length,ud]}catch(fb){Z(fb),Qe=[!1,void 0]}var rb=Qe;rb[0]&&(oi(xb,bw,6,rb[1]),$a++)}void 0!==Kb.projectId&&(O(xb,7,Kb.projectId),$a++);if(Kb.deviceInfo){var Mb=Kb.deviceInfo,mg=new $v,gf=0;try{void 0!==Mb.audioOutputLatencyMs&&
(wi(mg,1,Mb.audioOutputLatencyMs),gf++);var Ph=[gf===Object.keys(Mb).length,mg]}catch(fb){Z(fb),Ph=[!1,void 0]}var gd=Ph;gd[0]&&(oi(xb,$v,8,gd[1]),$a++)}if(Kb.preprocessor){var hd=Kb.preprocessor,fe=new g.jw,Tc=0;try{if(hd.originalVideo){var Ec=FHa(hd.originalVideo);Ec[0]&&(oi(fe,dw,1,Ec[1]),Tc++)}if(hd.processedVideo){var Re=FHa(hd.processedVideo);Re[0]&&(oi(fe,dw,2,Re[1]),Tc++)}var Se=[Tc===Object.keys(hd).length,fe]}catch(fb){Z(fb),Se=[!1,void 0]}var ng=Se;ng[0]&&(oi(xb,g.jw,9,ng[1]),$a++)}var xf=
[$a===Object.keys(Kb).length,xb]}catch(fb){Z(fb),xf=[!1,void 0]}var Qh=xf;Qh[0]&&(oi(Ra,g.kw,10,Qh[1]),ib++)}if(Tb.cameraMetadata){var Te=Tb.cameraMetadata,Ue=new Zv,Tf=0;try{void 0!==Te.uploadFrontendId&&(O(Ue,1,Te.uploadFrontendId),Tf++);void 0!==Te.cameraApiClient&&(N(Ue,2,ZHa[Te.cameraApiClient]),Tf++);Te.cameraConfigs&&(eS(Ue.j.bind(Ue),Te.cameraConfigs,GHa),Tf++);void 0!==Te.canFindCamera&&(vi(Ue,4,Te.canFindCamera),Tf++);var hf=[Tf===Object.keys(Te).length,Ue]}catch(fb){Z(fb),hf=[!1,void 0]}var jf=
hf;jf[0]&&(oi(Ra,Zv,11,jf[1]),ib++)}if(Tb.miniAppMetadata){var Rd=Tb.miniAppMetadata,Pb=new lw,lh=0;try{void 0!==Rd.externalPostId&&(O(Pb,1,Rd.externalPostId),lh++);void 0!==Rd.postPlayNonce&&(O(Pb,2,Rd.postPlayNonce),lh++);void 0!==Rd.localReleaseId&&(wi(Pb,3,Rd.localReleaseId),lh++);void 0!==Rd.source&&(N(Pb,4,$Ha[Rd.source]),lh++);void 0!==Rd.sdkErrorType&&(N(Pb,5,aIa[Rd.sdkErrorType]),lh++);void 0!==Rd.sdkApi&&(N(Pb,6,bIa[Rd.sdkApi]),lh++);var Ve=[lh===Object.keys(Rd).length,Pb]}catch(fb){Z(fb),
Ve=[!1,void 0]}var Jj=Ve;Jj[0]&&(oi(Ra,lw,12,Jj[1]),ib++)}void 0!==Tb.appVersionCode&&(wi(Ra,13,Tb.appVersionCode),ib++);var yf=[ib===Object.keys(Tb).length,Ra]}catch(fb){Z(fb),yf=[!1,void 0]}var mh=yf;mh[0]&&(oi(Ab,nw,1,mh[1]),wb++)}if(Cb.stackTrace){var ve=Cb.stackTrace,Uf=new yw,Ng=0;try{void 0!==ve.isObfuscated&&(vi(Uf,1,ve.isObfuscated),Ng++);if(ve.androidStackInfo){var nh=cIa(ve.androidStackInfo);nh[0]&&(pi(Uf,ow,2,vG,nh[1]),Ng++)}if(ve.browserStackInfo){var kf=ve.browserStackInfo,Rh=new pw,
oh=0;try{void 0!==kf.stackTrace&&(O(Rh,1,kf.stackTrace),oh++);void 0!==kf.lineNumber&&(wi(Rh,2,kf.lineNumber),oh++);void 0!==kf.columnNumber&&(wi(Rh,3,kf.columnNumber),oh++);void 0!==kf.filename&&(O(Rh,4,kf.filename),oh++);var Kj=[oh===Object.keys(kf).length,Rh]}catch(fb){Z(fb),Kj=[!1,void 0]}var uk=Kj;uk[0]&&(pi(Uf,pw,3,vG,uk[1]),Ng++)}if(ve.iosStackInfo){var Sd=ve.iosStackInfo,Vf=new qw,og=0;try{void 0!==Sd.stackTrace&&(O(Vf,1,Sd.stackTrace),og++);if(Sd.compactStackTrace){var vk=nS(Sd.compactStackTrace);
vk[0]&&(oi(Vf,Nv,2,vk[1]),og++)}var zf=[og===Object.keys(Sd).length,Vf]}catch(fb){Z(fb),zf=[!1,void 0]}var Ic=zf;Ic[0]&&(pi(Uf,qw,4,vG,Ic[1]),Ng++)}if(ve.multiLanguageStackInfo){var Af=ve.multiLanguageStackInfo,Sh=new xw,wk=0;try{Af.languageStackTraces&&(eS(Sh.j.bind(Sh),Af.languageStackTraces,dIa),wk++);var ph=[wk===Object.keys(Af).length,Sh]}catch(fb){Z(fb),ph=[!1,void 0]}var Ui=ph;Ui[0]&&(pi(Uf,xw,5,vG,Ui[1]),Ng++)}var Vi=[Ng===Object.keys(ve).length,Uf]}catch(fb){Z(fb),Vi=[!1,void 0]}var qh=Vi;
qh[0]&&(oi(Ab,yw,2,qh[1]),wb++)}if(Cb.logMessage){var Bf=Cb.logMessage,vd=new zw,We=0;try{void 0!==Bf.message&&(O(vd,1,Bf.message),We++);void 0!==Bf.level&&(N(vd,2,eIa[Bf.level]),We++);void 0!==Bf.errorClassName&&(O(vd,3,Bf.errorClassName),We++);void 0!==Bf.sourceMethodName&&(O(vd,4,Bf.sourceMethodName),We++);void 0!==Bf.sampleWeight&&(wi(vd,6,Bf.sampleWeight),We++);var Cf=[We===Object.keys(Bf).length,vd]}catch(fb){Z(fb),Cf=[!1,void 0]}var Wi=Cf;Wi[0]&&(oi(Ab,zw,3,Wi[1]),wb++)}var Xi=[wb===Object.keys(Cb).length,
Ab]}catch(fb){Z(fb),Xi=[!1,void 0]}var xk=Xi;xk[0]&&(oi(V,Aw,5,xk[1]),ob++)}var yk=[ob===Object.keys(r).length,V]}catch(fb){Z(fb),yk=[!1,void 0]}var Yi=yk;Yi[0]&&(oi(e,Bw,9,Yi[1]),f++)}d.delayedEventMetrics&&(eS(e.j.bind(e),d.delayedEventMetrics,vGa),f++);if(d.iosBatteryMetric){var ge=d.iosBatteryMetric,Wf=new Qv,rh=0;try{void 0!==ge.sampleDurationMs&&(N(Wf,1,ge.sampleDurationMs),rh++);if(ge.startSample){var Th=fIa(ge.startSample);Th[0]&&(oi(Wf,Pv,2,Th[1]),rh++)}if(ge.endSample){var zk=fIa(ge.endSample);
zk[0]&&(oi(Wf,Pv,3,zk[1]),rh++)}var Lj=[rh===Object.keys(ge).length,Wf]}catch(fb){Z(fb),Lj=[!1,void 0]}var Zi=Lj;Zi[0]&&(oi(e,Qv,11,Zi[1]),f++)}if(d.androidBatteryMetric){var Og=d.androidBatteryMetric,Uh=new Gv,Pg=0;try{void 0!==Og.sampleDurationMs&&(N(Uh,1,Og.sampleDurationMs),Pg++);if(Og.startSample){var Df=gIa(Og.startSample);Df[0]&&(oi(Uh,Fv,2,Df[1]),Pg++)}if(Og.endSample){var Qg=gIa(Og.endSample);Qg[0]&&(oi(Uh,Fv,3,Qg[1]),Pg++)}var Xf=[Pg===Object.keys(Og).length,Uh]}catch(fb){Z(fb),Xf=[!1,void 0]}var Vh=
Xf;Vh[0]&&(oi(e,Gv,12,Vh[1]),f++)}if(d.webApiSupport){var Zb=d.webApiSupport,Td=new Ow,he=0;try{void 0!==Zb.intersectionObserverPresent&&(vi(Td,1,Zb.intersectionObserverPresent),he++);void 0!==Zb.indexedDbPresent&&(vi(Td,2,Zb.indexedDbPresent),he++);void 0!==Zb.serviceWorkerPresent&&(vi(Td,3,Zb.serviceWorkerPresent),he++);void 0!==Zb.webSharePresent&&(vi(Td,4,Zb.webSharePresent),he++);void 0!==Zb.fullScreenApiPresent&&(vi(Td,5,Zb.fullScreenApiPresent),he++);void 0!==Zb.cacheStoragePresent&&(vi(Td,
6,Zb.cacheStoragePresent),he++);void 0!==Zb.storageEstimatePresent&&(vi(Td,7,Zb.storageEstimatePresent),he++);void 0!==Zb.storagePersistPresent&&(vi(Td,8,Zb.storagePersistPresent),he++);void 0!==Zb.webkitTemporaryStoragePresent&&(vi(Td,9,Zb.webkitTemporaryStoragePresent),he++);void 0!==Zb.idb2Present&&(vi(Td,10,Zb.idb2Present),he++);void 0!==Zb.promiseRejectionEventPresent&&(vi(Td,11,Zb.promiseRejectionEventPresent),he++);void 0!==Zb.subtleCryptoPresent&&(vi(Td,12,Zb.subtleCryptoPresent),he++);void 0!==
Zb.broadcastChannelPresent&&(vi(Td,13,Zb.broadcastChannelPresent),he++);void 0!==Zb.webLocksApiPresent&&(vi(Td,14,Zb.webLocksApiPresent),he++);void 0!==Zb.supportsP3Color&&(vi(Td,15,Zb.supportsP3Color),he++);void 0!==Zb.supportsRec2020Color&&(vi(Td,16,Zb.supportsRec2020Color),he++);var Ak=[he===Object.keys(Zb).length,Td]}catch(fb){Z(fb),Ak=[!1,void 0]}var ao=Ak;ao[0]&&(oi(e,Ow,13,ao[1]),f++)}if(d.cpuProfiling){var lf=d.cpuProfiling,$i=new Uv,Bk=0;try{if(lf.profilingSamples){var sh=nS(lf.profilingSamples);
sh[0]&&(oi($i,Nv,1,sh[1]),Bk++)}if(lf.config){var mf=lf.config,Wh=new Tv,aj=0;try{void 0!==mf.profilingIntervalSec&&(qi(Wh,1,mf.profilingIntervalSec),aj++);void 0!==mf.profilingDurationSec&&(qi(Wh,2,mf.profilingDurationSec),aj++);void 0!==mf.timerType&&(N(Wh,3,hIa[mf.timerType]),aj++);void 0!==mf.profilingStartTimeSec&&(qi(Wh,4,mf.profilingStartTimeSec),aj++);void 0!==mf.fractionOfRunsToSample&&(qi(Wh,5,mf.fractionOfRunsToSample),aj++);var yl=[aj===Object.keys(mf).length,Wh]}catch(fb){Z(fb),yl=[!1,
void 0]}var Bm=yl;Bm[0]&&($i.setConfig(Bm[1]),Bk++)}var bo=[Bk===Object.keys(lf).length,$i]}catch(fb){Z(fb),bo=[!1,void 0]}var bj=bo;bj[0]&&(oi(e,Uv,14,bj[1]),f++)}if(d.stallStackTrace){var Ck=nS(d.stallStackTrace);Ck[0]&&(oi(e,Nv,15,Ck[1]),f++)}if(d.memoryUsage){var wd=d.memoryUsage,Gd=new Kw,Rg=0;try{void 0!==wd.totalMemoryUsageBytes&&(N(Gd,1,wd.totalMemoryUsageBytes),Rg++);wd.classMemoryUsage&&(eS(Gd.j.bind(Gd),wd.classMemoryUsage,iIa),Rg++);if(wd.config){var pg=wd.config,cj=new Jw,nf=0;try{void 0!==
pg.maxStartTimeSec&&(N(cj,1,pg.maxStartTimeSec),nf++);void 0!==pg.durationTimeSec&&(N(cj,2,pg.durationTimeSec),nf++);void 0!==pg.intervalSec&&(N(cj,3,pg.intervalSec),nf++);void 0!==pg.maxLogCount&&(N(cj,4,pg.maxLogCount),nf++);void 0!==pg.fractionOfRunsToSample&&(qi(cj,5,pg.fractionOfRunsToSample),nf++);var zl=[nf===Object.keys(pg).length,cj]}catch(fb){Z(fb),zl=[!1,void 0]}var Cm=zl;Cm[0]&&(Gd.setConfig(Cm[1]),Rg++)}void 0!==wd.processUptimeMs&&(N(Gd,4,wd.processUptimeMs),Rg++);void 0!==wd.foregroundUptimeMs&&
(N(Gd,8,wd.foregroundUptimeMs),Rg++);wd.viewAllocation&&(eS(Gd.B.bind(Gd),wd.viewAllocation,iIa),Rg++);void 0!==wd.entityStoreCount&&(wi(Gd,6,wd.entityStoreCount),Rg++);void 0!==wd.entityStoreBytes&&(N(Gd,7,wd.entityStoreBytes),Rg++);void 0!==wd.emlTemplateStoreBytes&&(N(Gd,10,wd.emlTemplateStoreBytes),Rg++);wd.jsVmStatistics&&(eS(Gd.u.bind(Gd),wd.jsVmStatistics,jIa),Rg++);var Ef=[Rg===Object.keys(wd).length,Gd]}catch(fb){Z(fb),Ef=[!1,void 0]}var Mj=Ef;Mj[0]&&(oi(e,Kw,16,Mj[1]),f++)}d.networkEvents&&
(eS(e.u.bind(e),d.networkEvents,kIa),f++);if(d.threadUtilization){var Xe=d.threadUtilization,th=new Rw,uh=0;try{void 0!==Xe.userJourney&&(O(th,1,Xe.userJourney),uh++);void 0!==Xe.type&&(N(th,2,lIa[Xe.type]),uh++);Xe.threadPoolStats&&(eS(th.j.bind(th),Xe.threadPoolStats,mIa),uh++);void 0!==Xe.totalThreadCount&&(wi(th,4,Xe.totalThreadCount),uh++);void 0!==Xe.statsGenerateDurationMs&&(N(th,5,Xe.statsGenerateDurationMs),uh++);var dj=[uh===Object.keys(Xe).length,th]}catch(fb){Z(fb),dj=[!1,void 0]}var co=
dj;co[0]&&(oi(e,Rw,18,co[1]),f++)}if(d.androidBackgroundTask){var Sg=d.androidBackgroundTask,Dk=new Rv,Ek=0;try{void 0!==Sg.tag&&(O(Dk,1,Sg.tag),Ek++);void 0!==Sg.isKnownTask&&(vi(Dk,2,Sg.isKnownTask),Ek++);void 0!==Sg.result&&(N(Dk,3,nIa[Sg.result]),Ek++);void 0!==Sg.durationMs&&(N(Dk,4,Sg.durationMs),Ek++);var Al=[Ek===Object.keys(Sg).length,Dk]}catch(fb){Z(fb),Al=[!1,void 0]}var Bl=Al;Bl[0]&&(oi(e,Rv,19,Bl[1]),f++)}if(d.distributiveProfilingSpan){var qg=d.distributiveProfilingSpan,Xh=new Dw,ej=
0;try{void 0!==qg.spanId&&(N(Xh,1,oIa[qg.spanId]),ej++);void 0!==qg.sampleRate&&(qi(Xh,2,qg.sampleRate),ej++);void 0!==qg.spanDurationMs&&(N(Xh,3,qg.spanDurationMs),ej++);void 0!==qg.sampleFailureCount&&(wi(Xh,4,qg.sampleFailureCount),ej++);qg.sample&&(eS(Xh.Rl.bind(Xh),qg.sample,pIa),ej++);var of=[ej===Object.keys(qg).length,Xh]}catch(fb){Z(fb),of=[!1,void 0]}var rg=of;rg[0]&&(oi(e,Dw,20,rg[1]),f++)}if(d.appExitInfo){var Ye=d.appExitInfo,sg=new Sv,fj=0;try{void 0!==Ye.reason&&(N(sg,1,qIa[Ye.reason]),
fj++);void 0!==Ye.status&&(wi(sg,2,Ye.status),fj++);void 0!==Ye.importance&&(wi(sg,3,Ye.importance),fj++);void 0!==Ye.description&&(O(sg,4,Ye.description),fj++);var Cl=[fj===Object.keys(Ye).length,sg]}catch(fb){Z(fb),Cl=[!1,void 0]}var tg=Cl;tg[0]&&(oi(e,Sv,21,tg[1]),f++)}var Dl=[f===Object.keys(d).length,e]}catch(fb){Z(fb),Dl=[!1,void 0]}var El=Dl;El[0]&&(oi(b,Sw,6,El[1]),c++)}void 0!==a.detailedNetworkType&&(N(b,7,oS[a.detailedNetworkType]),c++);void 0!==a.isAd&&(vi(b,8,a.isAd),c++);void 0!==a.offlineModeType&&
(N(b,9,rIa[a.offlineModeType]),c++);void 0!==a.storageFormat&&(N(b,24,sIa[a.storageFormat]),c++);void 0!==a.offlineSourceVeType&&(wi(b,32,a.offlineSourceVeType),c++);void 0!==a.listId&&(O(b,10,a.listId),c++);void 0!==a.offlineabilityFormatType&&(N(b,11,tIa[a.offlineabilityFormatType]),c++);void 0!==a.offlineAudioQuality&&(N(b,29,uIa[a.offlineAudioQuality]),c++);void 0!==a.softErrorCount&&(wi(b,12,a.softErrorCount),c++);void 0!==a.pendingStateFlags&&(xi(b,13,a.pendingStateFlags),c++);void 0!==a.unusedOfflineVideoPendingState&&
(N(b,14,vIa[a.unusedOfflineVideoPendingState]),c++);void 0!==a.isRefresh&&(vi(b,15,a.isRefresh),c++);void 0!==a.isNewPlayerResponse&&(vi(b,16,a.isNewPlayerResponse),c++);void 0!==a.isOfflineShareable&&(vi(b,17,a.isOfflineShareable),c++);void 0!==a.hasContentVerificationSignature&&(vi(b,18,a.hasContentVerificationSignature),c++);void 0!==a.isOfflineInterleaving&&(vi(b,19,a.isOfflineInterleaving),c++);void 0!==a.blockSizeBytes&&(wi(b,25,a.blockSizeBytes),c++);void 0!==a.streamVerificationStrategy&&
(N(b,26,pS[a.streamVerificationStrategy]),c++);a.streamVerificationFailedBlocks&&(eS(b.j.bind(b),a.streamVerificationFailedBlocks,wIa),c++);if(a.spacecastInfo){var Fk=a.spacecastInfo,we=new Ox,ug=0;try{void 0!==Fk.applianceId&&(O(we,1,Fk.applianceId),ug++);void 0!==Fk.transferredFromCache&&(N(we,2,xIa[Fk.transferredFromCache]),ug++);var Nj=[ug===Object.keys(Fk).length,we]}catch(fb){Z(fb),Nj=[!1,void 0]}var eo=Nj;eo[0]&&(oi(b,Ox,28,eo[1]),c++)}void 0!==a.transferType&&(N(b,33,yIa[a.transferType]),
c++);void 0!==a.onlyDownloadOnWifi&&(vi(b,34,a.onlyDownloadOnWifi),c++);void 0!==a.appLifecycleStatus&&(N(b,35,zIa[a.appLifecycleStatus]),c++);void 0!==a.isDefaultDownloadToSdCard&&(vi(b,36,a.isDefaultDownloadToSdCard),c++);void 0!==a.serializedLoggingParams&&(si(b,39,a.serializedLoggingParams),c++);void 0!==a.transferServiceStartedFromBackground&&(vi(b,40,a.transferServiceStartedFromBackground),c++);void 0!==a.transferFirstStarted&&(vi(b,42,a.transferFirstStarted),c++);return[c===Object.keys(a).length,
b]}catch(fb){return Z(fb),[!1,void 0]}};
NHa=function(a){var b=new Au,c=0;try{if(a.datapushBuild){var d=BIa(a.datapushBuild);d[0]&&(oi(b,eu,1,d[1]),c++)}return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}};
BIa=function(a){var b=new eu,c=0;try{return void 0!==a.buildId&&(N(b,1,a.buildId),c++),void 0!==a.clientExperimentId&&(wi(b,2,a.clientExperimentId),c++),void 0!==a.accessType&&(N(b,3,CIa[a.accessType]),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
OHa=function(a){var b=new fu,c=0;try{if(a.datapushBuild){var d=BIa(a.datapushBuild);d[0]&&(oi(b,eu,1,d[1]),c++)}return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}};
PHa=function(a){var b=new Ew,c=0;try{return void 0!==a.assetLoggingId&&(O(b,1,a.assetLoggingId),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
nS=function(a){var b=new Nv,c=0;try{return a.stackTraces&&(eS(b.u.bind(b),a.stackTraces,DIa),c++),a.allModules&&(eS(b.j.bind(b),a.allModules,EIa),c++),void 0!==a.appVersionCode&&(wi(b,3,a.appVersionCode),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
DIa=function(a){var b=new Mv,c=0;try{if(a.mainThread){var d=FIa(a.mainThread);d[0]&&(oi(b,Lv,1,d[1]),c++)}a.backgroundThreads&&(eS(b.j.bind(b),a.backgroundThreads,FIa),c++);a.metaData&&(eS(b.u.bind(b),a.metaData,GIa),c++);return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}};
FIa=function(a){var b=new Lv,c=0;try{a.stackFrames&&(eS(b.j.bind(b),a.stackFrames,HIa),c++);void 0!==a.androidStack&&(O(b,6,a.androidStack),c++);void 0!==a.threadName&&(O(b,2,a.threadName),c++);void 0!==a.cpuUsage&&(qi(b,3,a.cpuUsage),c++);void 0!==a.cpuTimeSec&&(N(b,4,a.cpuTimeSec),c++);if(a.iosThreadInfo){var d=a.iosThreadInfo,e=new Jv,f=0;try{void 0!==d.state&&(e.Ac(IIa[d.state]),f++);void 0!==d.flag&&(N(e,2,JIa[d.flag]),f++);void 0!==d.currentPriority&&(wi(e,3,d.currentPriority),f++);void 0!==
d.priority&&(wi(e,4,d.priority),f++);void 0!==d.maxPriority&&(wi(e,5,d.maxPriority),f++);void 0!==d.isCrashedThread&&(vi(e,6,d.isCrashedThread),f++);var h=[f===Object.keys(d).length,e]}catch(l){Z(l),h=[!1,void 0]}h[0]&&(oi(b,Jv,5,h[1]),c++)}return[c===Object.keys(a).length,b]}catch(l){return Z(l),[!1,void 0]}};
HIa=function(a){var b=new Kv,c=0;try{return void 0!==a.instructionOffset&&(N(b,1,a.instructionOffset),c++),void 0!==a.moduleIndex&&(wi(b,2,a.moduleIndex),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
GIa=function(a){var b=new Iv,c=0;try{return void 0!==a.clientTimestampMs&&(N(b,1,a.clientTimestampMs),c++),void 0!==a.sampleTimeCostMs&&(qi(b,2,a.sampleTimeCostMs),c++),void 0!==a.numberOfBustedFrames&&(wi(b,3,a.numberOfBustedFrames),c++),void 0!==a.droppedFrameDurationMs&&(wi(b,4,a.droppedFrameDurationMs),c++),void 0!==a.deviceOrientation&&(N(b,5,KIa[a.deviceOrientation]),c++),void 0!==a.processUptimeMs&&(N(b,6,a.processUptimeMs),c++),void 0!==a.memoryUsageKbytes&&(N(b,7,a.memoryUsageKbytes),c++),
void 0!==a.batteryPercentage&&(qi(b,8,a.batteryPercentage),c++),void 0!==a.exceptionName&&(O(b,9,a.exceptionName),c++),void 0!==a.exceptionReason&&(O(b,10,a.exceptionReason),c++),void 0!==a.signalNumber&&(wi(b,11,a.signalNumber),c++),void 0!==a.signalCode&&(wi(b,12,a.signalCode),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
EIa=function(a){var b=new Hv,c=0;try{return void 0!==a.moduleUuid&&(si(b,1,a.moduleUuid),c++),void 0!==a.moduleName&&(O(b,2,a.moduleName),c++),void 0!==a.loadAddress&&(N(b,3,a.loadAddress),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
RHa=function(a){var b=new Wv,c=0;try{return void 0!==a.key&&(O(b,1,a.key),c++),void 0!==a.value&&(O(b,2,a.value),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
cIa=function(a){var b=new ow,c=0;try{return void 0!==a.serializedThrowable&&(si(b,1,a.serializedThrowable),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
dIa=function(a){var b=new ww,c=0;try{if(a.jsStack){var d=a.jsStack,e=new vw,f=0;try{d.stackTrace&&(eS(e.j.bind(e),d.stackTrace,LIa),f++);void 0!==d.moduleSetVersion&&(N(e,4,d.moduleSetVersion),f++);var h=[f===Object.keys(d).length,e]}catch(q){Z(q),h=[!1,void 0]}h[0]&&(pi(b,vw,1,MIa,h[1]),c++)}if(a.javaStack){var l=cIa(a.javaStack);l[0]&&(pi(b,ow,2,MIa,l[1]),c++)}if(a.ccStack){var m=a.ccStack,n=new tw;l=0;try{m.stackTrace&&(eS(n.j.bind(n),m.stackTrace,NIa),l++);var p=[l===Object.keys(m).length,n]}catch(q){Z(q),
p=[!1,void 0]}p[0]&&(pi(b,tw,3,MIa,p[1]),c++)}return[c===Object.keys(a).length,b]}catch(q){return Z(q),[!1,void 0]}};
LIa=function(a){var b=new uw,c=0;try{return void 0!==a.functionName&&(O(b,1,a.functionName),c++),void 0!==a.source&&(O(b,2,a.source),c++),void 0!==a.lineNumber&&(wi(b,3,a.lineNumber),c++),void 0!==a.columnNumber&&(wi(b,4,a.columnNumber),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
NIa=function(a){var b=new rw,c=0;try{return void 0!==a.functionName&&(O(b,1,a.functionName),c++),void 0!==a.source&&(O(b,2,a.source),c++),void 0!==a.lineNumber&&(wi(b,3,a.lineNumber),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
fIa=function(a){var b=new Pv,c=0;try{return void 0!==a.batteryLevelMicros&&(wi(b,1,a.batteryLevelMicros),c++),void 0!==a.networkType&&(N(b,2,oS[a.networkType]),c++),void 0!==a.screenBrightness&&(qi(b,3,a.screenBrightness),c++),void 0!==a.isLowPowerMode&&(vi(b,4,a.isLowPowerMode),c++),void 0!==a.isBackground&&(vi(b,5,a.isBackground),c++),void 0!==a.isStateTransition&&(vi(b,6,a.isStateTransition),c++),void 0!==a.observedBackgroundFetchMethodCallback&&(vi(b,7,a.observedBackgroundFetchMethodCallback),
c++),void 0!==a.observedBackgroundTaskDidExpire&&(vi(b,8,a.observedBackgroundTaskDidExpire),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
gIa=function(a){var b=new Fv,c=0;try{return void 0!==a.batteryLevelMicros&&(wi(b,1,a.batteryLevelMicros),c++),void 0!==a.networkType&&(N(b,2,oS[a.networkType]),c++),void 0!==a.screenBrightness&&(wi(b,3,a.screenBrightness),c++),void 0!==a.screenBrightnessMode&&(N(b,4,OIa[a.screenBrightnessMode]),c++),void 0!==a.lowPowerMode&&(N(b,5,PIa[a.lowPowerMode]),c++),void 0!==a.batteryHealth&&(N(b,6,QIa[a.batteryHealth]),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
iIa=function(a){var b=new Iw,c=0;try{return void 0!==a.className&&(O(b,1,a.className),c++),void 0!==a.instanceNum&&(N(b,2,a.instanceNum),c++),void 0!==a.instanceSizeBytes&&(N(b,3,a.instanceSizeBytes),c++),void 0!==a.allocationNum&&(N(b,4,a.allocationNum),c++),void 0!==a.deallocationNum&&(N(b,5,a.deallocationNum),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
jIa=function(a){var b=new Ou,c=0;try{if(a.v8Stats){var d=a.v8Stats,e=new Nu,f=0;try{void 0!==d.totalHeapSize&&(N(e,1,d.totalHeapSize),f++);void 0!==d.totalHeapSizeExecutable&&(N(e,2,d.totalHeapSizeExecutable),f++);void 0!==d.totalPhysicalSize&&(N(e,3,d.totalPhysicalSize),f++);void 0!==d.totalAvailableSize&&(N(e,4,d.totalAvailableSize),f++);void 0!==d.totalGlobalHandlesSize&&(N(e,5,d.totalGlobalHandlesSize),f++);void 0!==d.usedGlobalHandlesSize&&(N(e,6,d.usedGlobalHandlesSize),f++);void 0!==d.usedHeapSize&&
(N(e,7,d.usedHeapSize),f++);void 0!==d.heapSizeLimit&&(N(e,8,d.heapSizeLimit),f++);void 0!==d.mallocedMemory&&(N(e,9,d.mallocedMemory),f++);void 0!==d.externalMemory&&(N(e,10,d.externalMemory),f++);void 0!==d.peakMallocedMemory&&(N(e,11,d.peakMallocedMemory),f++);void 0!==d.numberOfNativeContexts&&(N(e,12,d.numberOfNativeContexts),f++);void 0!==d.numberOfDetachedContexts&&(N(e,13,d.numberOfDetachedContexts),f++);var h=[f===Object.keys(d).length,e]}catch(p){Z(p),h=[!1,void 0]}h[0]&&(pi(b,Nu,1,RIa,
h[1]),c++)}if(a.quickjsStats){var l=a.quickjsStats,m=new Mu;h=0;try{void 0!==l.mallocSize&&(N(m,1,l.mallocSize),h++);void 0!==l.mallocLimit&&(N(m,2,l.mallocLimit),h++);void 0!==l.memoryUsedSize&&(N(m,3,l.memoryUsedSize),h++);void 0!==l.mallocCount&&(N(m,4,l.mallocCount),h++);void 0!==l.memoryUsedCount&&(N(m,5,l.memoryUsedCount),h++);var n=[h===Object.keys(l).length,m]}catch(p){Z(p),n=[!1,void 0]}n[0]&&(pi(b,Mu,2,RIa,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return Z(p),[!1,void 0]}};
kIa=function(a){var b=new Mw,c=0;try{return void 0!==a.index&&(N(b,1,a.index),c++),void 0!==a.networkEventType&&(N(b,2,SIa[a.networkEventType]),c++),void 0!==a.path&&(O(b,3,a.path),c++),void 0!==a.failureReason&&(N(b,4,TIa[a.failureReason]),c++),void 0!==a.startTimeMs&&(N(b,5,a.startTimeMs),c++),void 0!==a.totalDurationMs&&(N(b,6,a.totalDurationMs),c++),void 0!==a.requestSize&&(N(b,7,a.requestSize),c++),void 0!==a.responseSize&&(N(b,8,a.responseSize),c++),a.networkRequestAttempt&&(eS(b.j.bind(b),
a.networkRequestAttempt,UIa),c++),void 0!==a.httpMethod&&(N(b,10,VIa[a.httpMethod]),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
UIa=function(a){var b=new Lw,c=0;try{return void 0!==a.failureReason&&(N(b,1,TIa[a.failureReason]),c++),void 0!==a.startTimeMs&&(N(b,5,a.startTimeMs),c++),void 0!==a.durationMs&&(N(b,2,a.durationMs),c++),void 0!==a.networkAvailable&&(N(b,3,WIa[a.networkAvailable]),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
mIa=function(a){var b=new Qw,c=0;try{return void 0!==a.threadPoolName&&(O(b,1,a.threadPoolName),c++),void 0!==a.threadCount&&(wi(b,2,a.threadCount),c++),void 0!==a.startedTaskCount&&(wi(b,3,a.startedTaskCount),c++),void 0!==a.finishedTaskCount&&(wi(b,4,a.finishedTaskCount),c++),void 0!==a.runningTimeMs&&(N(b,5,a.runningTimeMs),c++),void 0!==a.waitingTimeMs&&(N(b,6,a.waitingTimeMs),c++),void 0!==a.runCount&&(N(b,7,a.runCount),c++),void 0!==a.runningPercent&&(wi(b,8,a.runningPercent),c++),[c===Object.keys(a).length,
b]}catch(d){return Z(d),[!1,void 0]}};
pIa=function(a){var b=new Cw,c=0;try{void 0!==a.curveTimestampMs&&(N(b,1,a.curveTimestampMs),c++);void 0!==a.curveWeight&&(qi(b,2,a.curveWeight),c++);void 0!==a.realTimestampMs&&(N(b,3,a.realTimestampMs),c++);void 0!==a.sampleCostUsec&&(N(b,4,a.sampleCostUsec),c++);if(a.compactStackTraceSample){var d=nS(a.compactStackTraceSample);d[0]&&(oi(b,Nv,5,d[1]),c++)}return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}};
wIa=function(a){var b=new Sx,c=0;try{return void 0!==a.itag&&(wi(b,1,a.itag),c++),void 0!==a.startingByte&&(N(b,2,a.startingByte),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
bJa=function(a){var b=new tz,c=0;try{void 0!==a.id&&(O(b,1,a.id),c++);void 0!==a.videoState&&(N(b,2,XIa[a.videoState]),c++);void 0!==a.pendingStateFlags&&(xi(b,3,a.pendingStateFlags),c++);void 0!==a.totalBytes&&(N(b,21,a.totalBytes),c++);void 0!==a.downloadedBytes&&(N(b,4,a.downloadedBytes),c++);void 0!==a.selectedVideoQuality&&(N(b,5,tIa[a.selectedVideoQuality]),c++);void 0!==a.selectedOfflineMode&&(N(b,6,rIa[a.selectedOfflineMode]),c++);void 0!==a.playerResponseSavedTimeMs&&(N(b,7,a.playerResponseSavedTimeMs),
c++);void 0!==a.offlineStateUpdateTimeMs&&(N(b,8,a.offlineStateUpdateTimeMs),c++);void 0!==a.offlineStateExpiresInS&&(N(b,9,a.offlineStateExpiresInS),c++);void 0!==a.durationInS&&(N(b,10,a.durationInS),c++);void 0!==a.isInPlaylist&&(vi(b,11,a.isInPlaylist),c++);void 0!==a.addedNetworkType&&(N(b,12,oS[a.addedNetworkType]),c++);void 0!==a.downloadCompletedNetworkType&&(N(b,13,oS[a.downloadCompletedNetworkType]),c++);a.captions&&(eS(b.j.bind(b),a.captions,YIa),c++);void 0!==a.unusedOfflineVideoPendingState&&
(N(b,15,vIa[a.unusedOfflineVideoPendingState]),c++);void 0!==a.lastPlaybackTimestampMs&&(N(b,16,a.lastPlaybackTimestampMs),c++);a.offlineSuspendedStates&&(eS(b.u.bind(b),a.offlineSuspendedStates,ZIa),c++);void 0!==a.streamInLocalStorage&&(vi(b,18,a.streamInLocalStorage),c++);void 0!==a.streamInInternalStorage&&(vi(b,19,a.streamInInternalStorage),c++);if(a.storageIdStates){var d=a.storageIdStates,e=new sz,f=0;try{void 0!==d.storageId&&(xi(e,1,d.storageId),f++);void 0!==d.storageIdSourceType&&(N(e,
2,$Ia[d.storageIdSourceType]),f++);var h=[f===Object.keys(d).length,e]}catch(v){Z(v),h=[!1,void 0]}h[0]&&(oi(b,sz,20,h[1]),c++)}void 0!==a.cotn&&(O(b,22,a.cotn),c++);if(a.additionalVideoClientState){var l=a.additionalVideoClientState,m=new oz;try{var n=[0===Object.keys(l).length,m]}catch(v){Z(v),n=[!1,void 0]}n[0]&&(oi(b,oz,23,n[1]),c++)}if(a.offlineVideoEntityMigrationState){var p=a.offlineVideoEntityMigrationState,q=new qz;n=0;try{void 0!==p.isInOfflineStore&&(vi(q,1,p.isInOfflineStore),n++);void 0!==
p.isPlaybackDataEntityPresent&&(vi(q,2,p.isPlaybackDataEntityPresent),n++);void 0!==p.wasPlaybackDataEntityUsedToFillVideoState&&(vi(q,3,p.wasPlaybackDataEntityUsedToFillVideoState),n++);void 0!==p.isTransferEntityPresent&&(vi(q,4,p.isTransferEntityPresent),n++);void 0!==p.wasTransferEntityUsedToFillVideoState&&(vi(q,5,p.wasTransferEntityUsedToFillVideoState),n++);void 0!==p.offlineStoreCaptionTrackCount&&(wi(q,6,p.offlineStoreCaptionTrackCount),n++);void 0!==p.entityStoreCaptionTrackCount&&(wi(q,
7,p.entityStoreCaptionTrackCount),n++);void 0!==p.isMetadataEntityPresent&&(vi(q,8,p.isMetadataEntityPresent),n++);void 0!==p.transferDiffFields&&(fS(q.j.bind(q),p.transferDiffFields,aJa),n++);var t=[n===Object.keys(p).length,q]}catch(v){Z(v),t=[!1,void 0]}t[0]&&(oi(b,qz,24,t[1]),c++)}return[c===Object.keys(a).length,b]}catch(v){return Z(v),[!1,void 0]}};
YIa=function(a){var b=new pz,c=0;try{return void 0!==a.format&&(wi(b,1,a.format),c++),void 0!==a.isDownloaded&&(vi(b,2,a.isDownloaded),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
ZIa=function(a){var b=new rz,c=0;try{return void 0!==a.totalDownloadedBytes&&(N(b,1,a.totalDownloadedBytes),c++),void 0!==a.totalSegmentCount&&(N(b,2,a.totalSegmentCount),c++),void 0!==a.backgroundTransitionCount&&(N(b,3,a.backgroundTransitionCount),c++),void 0!==a.totalDurationMs&&(N(b,4,a.totalDurationMs),c++),void 0!==a.downloadErrorCount&&(wi(b,5,a.downloadErrorCount),c++),void 0!==a.totalDownloadedSizePercent&&(xi(b,6,a.totalDownloadedSizePercent),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),
[!1,void 0]}};
dJa=function(a){var b=new nz,c=0;try{return void 0!==a.id&&(O(b,1,a.id),c++),a.videoIds&&(eS(b.j.bind(b),a.videoIds),c++),void 0!==a.videoCount&&(wi(b,3,a.videoCount),c++),void 0!==a.successCount&&(wi(b,4,a.successCount),c++),void 0!==a.failCount&&(wi(b,5,a.failCount),c++),void 0!==a.pendingCount&&(wi(b,6,a.pendingCount),c++),void 0!==a.disabledCount&&(wi(b,7,a.disabledCount),c++),void 0!==a.deletedCount&&(wi(b,8,a.deletedCount),c++),void 0!==a.selectedVideoQuality&&(N(b,9,tIa[a.selectedVideoQuality]),
c++),void 0!==a.isPlaylistOwner&&(vi(b,10,a.isPlaylistOwner),c++),void 0!==a.lastSyncTimeMs&&(N(b,11,a.lastSyncTimeMs),c++),void 0!==a.requestSource&&(N(b,12,cJa[a.requestSource]),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
gJa=function(a){var b=new hz,c=0;try{return void 0!==a.videoId&&(b.setVideoId(a.videoId),c++),void 0!==a.itag&&(xi(b,6,a.itag),c++),void 0!==a.failureReason&&(N(b,2,eJa[a.failureReason]),c++),void 0!==a.isCachedExternally&&(vi(b,3,a.isCachedExternally),c++),void 0!==a.previousFailureReason&&(N(b,4,eJa[a.previousFailureReason]),c++),void 0!==a.previousFailureReasonTimestampMs&&(N(b,5,a.previousFailureReasonTimestampMs),c++),void 0!==a.streamVerificationStrategy&&(N(b,7,pS[a.streamVerificationStrategy]),
c++),void 0!==a.blockSizeBytes&&(wi(b,8,a.blockSizeBytes),c++),a.streamVerificationFailedBlocks&&(eS(b.j.bind(b),a.streamVerificationFailedBlocks,fJa),c++),void 0!==a.primaryVerificationStrategy&&(N(b,10,pS[a.primaryVerificationStrategy]),c++),void 0!==a.secondaryVerificationStrategy&&(N(b,11,pS[a.secondaryVerificationStrategy]),c++),void 0!==a.secondaryFailureReason&&(N(b,12,eJa[a.secondaryFailureReason]),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
fJa=function(a){var b=new gz,c=0;try{return void 0!==a.itag&&(wi(b,1,a.itag),c++),void 0!==a.startingByte&&(N(b,2,a.startingByte),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
hJa=function(a){var b=new jz,c=0;try{return void 0!==a.videoId&&(b.setVideoId(a.videoId),c++),void 0!==a.surrogateVideoId&&(N(b,2,a.surrogateVideoId),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
iJa=function(a){var b=new kz,c=0;try{return void 0!==a.externalVideoId&&(O(b,1,a.externalVideoId),c++),void 0!==a.videoSid&&(N(b,2,a.videoSid),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
qJa=function(a){var b=new jv,c=0;try{if(a.opportunityData){var d=a.opportunityData,e=new fv,f=0;try{if(d.debugData){var h=d.debugData,l=new ev,m=0;try{h.slots&&(eS(l.j.bind(l),h.slots,jJa),m++);void 0!==h.associatedSlotId&&(O(l,2,h.associatedSlotId),m++);var n=[m===Object.keys(h).length,l]}catch(wb){Z(wb),n=[!1,void 0]}n[0]&&(oi(e,ev,2,n[1]),f++)}void 0!==d.opportunityType&&(N(e,3,kJa[d.opportunityType]),f++);var p=[f===Object.keys(d).length,e]}catch(wb){Z(wb),p=[!1,void 0]}p[0]&&(oi(b,fv,1,p[1]),
c++)}if(a.slotData){var q=jJa(a.slotData);q[0]&&(oi(b,dv,2,q[1]),c++)}if(a.layoutData){var t=a.layoutData,v=new bv;q=0;try{void 0!==t.type&&(N(v,2,lJa[t.type]),q++);if(t.debugData){var y=t.debugData,A=new av;p=0;try{void 0!==y.layoutId&&(O(A,1,y.layoutId),p++);y.exitNormalTriggerData&&(eS(A.v3.bind(A),y.exitNormalTriggerData,qS),p++);y.exitSkipTriggerData&&(eS(A.w3.bind(A),y.exitSkipTriggerData,qS),p++);y.exitMuteTriggerData&&(eS(A.u3.bind(A),y.exitMuteTriggerData,qS),p++);y.exitUserInputSubmittedTriggerData&&
(eS(A.y3.bind(A),y.exitUserInputSubmittedTriggerData,qS),p++);y.exitUserCancelledTriggerData&&(eS(A.x3.bind(A),y.exitUserCancelledTriggerData,qS),p++);var E=[p===Object.keys(y).length,A]}catch(wb){Z(wb),E=[!1,void 0]}E[0]&&(oi(v,av,3,E[1]),q++)}void 0!==t.controlFlowManagerLayer&&(N(v,4,mJa[t.controlFlowManagerLayer]),q++);void 0!==t.pingTriggerTypes&&(fS(v.j.bind(v),t.pingTriggerTypes,rS),q++);var K=[q===Object.keys(t).length,v]}catch(wb){Z(wb),K=[!1,void 0]}K[0]&&(oi(b,bv,3,K[1]),c++)}if(a.triggerData){var I=
qS(a.triggerData);I[0]&&(oi(b,$u,4,I[1]),c++)}if(a.pingData){var F=a.pingData,S=new iv;I=0;try{void 0!==F.sourceTriggerType&&(N(S,1,rS[F.sourceTriggerType]),I++);F.debugData&&(eS(S.j.bind(S),F.debugData,nJa),I++);void 0!==F.pingCount&&(wi(S,3,F.pingCount),I++);void 0!==F.pingDispatchStatus&&(N(S,4,oJa[F.pingDispatchStatus]),I++);void 0!==F.serializedAdPingMetadata&&(si(S,5,F.serializedAdPingMetadata),I++);if(F.pingDebugData){var Y=F.pingDebugData,ia=new hv;K=0;try{void 0!==Y.substitutedMacros&&(fS(ia.j.bind(ia),
Y.substitutedMacros,pJa),K++);void 0!==Y.unsubstitutedMacros&&(fS(ia.u.bind(ia),Y.unsubstitutedMacros,pJa),K++);var ta=[K===Object.keys(Y).length,ia]}catch(wb){Z(wb),ta=[!1,void 0]}ta[0]&&(oi(S,hv,6,ta[1]),I++)}void 0!==F.pingIndex&&(wi(S,8,F.pingIndex),I++);var na=[I===Object.keys(F).length,S]}catch(wb){Z(wb),na=[!1,void 0]}na[0]&&(oi(b,iv,6,na[1]),c++)}if(a.externalContext){var ca=a.externalContext,ha=new Xu;na=0;try{if(ca.organicPlaybackContext){var Da=ca.organicPlaybackContext,fa=new Wu;F=0;try{void 0!==
Da.contentCpn&&(O(fa,1,Da.contentCpn),F++);void 0!==Da.isLivePlayback&&(vi(fa,2,Da.isLivePlayback),F++);void 0!==Da.isOfflinePlayback&&(vi(fa,3,Da.isOfflinePlayback),F++);void 0!==Da.isMdxPlayback&&(vi(fa,4,Da.isMdxPlayback),F++);void 0!==Da.isDaiContent&&(vi(fa,5,Da.isDaiContent),F++);void 0!==Da.isPrefetchedPlayback&&(vi(fa,6,Da.isPrefetchedPlayback),F++);var U=[F===Object.keys(Da).length,fa]}catch(wb){Z(wb),U=[!1,void 0]}U[0]&&(oi(ha,Wu,1,U[1]),na++)}if(ca.html5ExperimentContext){var Ua=ca.html5ExperimentContext,
r=new Vu;U=0;try{void 0!==Ua.ytExperimentId&&(wi(r,1,Ua.ytExperimentId),U++);var V=[U===Object.keys(Ua).length,r]}catch(wb){Z(wb),V=[!1,void 0]}V[0]&&(oi(ha,Vu,2,V[1]),na++)}if(ca.adVideoPlaybackContext){var ob=ca.adVideoPlaybackContext,Ya=new Uu;V=0;try{void 0!==ob.adVideoCpn&&(O(Ya,1,ob.adVideoCpn),V++);var Cb=[V===Object.keys(ob).length,Ya]}catch(wb){Z(wb),Cb=[!1,void 0]}Cb[0]&&(oi(ha,Uu,3,Cb[1]),na++)}var Ab=[na===Object.keys(ca).length,ha]}catch(wb){Z(wb),Ab=[!1,void 0]}Ab[0]&&(oi(b,Xu,5,Ab[1]),
c++)}return[c===Object.keys(a).length,b]}catch(wb){return Z(wb),[!1,void 0]}};
jJa=function(a){var b=new dv,c=0;try{void 0!==a.type&&(N(b,2,rJa[a.type]),c++);void 0!==a.entryTriggerType&&(N(b,6,rS[a.entryTriggerType]),c++);void 0!==a.slotPhysicalPosition&&(wi(b,8,a.slotPhysicalPosition),c++);if(a.debugData){var d=a.debugData,e=new cv,f=0;try{void 0!==d.slotId&&(O(e,1,d.slotId),f++);void 0!==d.entryTriggerTypes&&(fS(e.u.bind(e),d.entryTriggerTypes,rS),f++);void 0!==d.unscheduledDueToError&&(vi(e,3,d.unscheduledDueToError),f++);d.entryTriggerData&&(eS(e.j.bind(e),d.entryTriggerData,
qS),f++);if(d.slotEntryTriggerData){var h=qS(d.slotEntryTriggerData);h[0]&&(oi(e,$u,7,h[1]),f++)}d.fulfillmentTriggerData&&(eS(e.C.bind(e),d.fulfillmentTriggerData,qS),f++);d.expirationTriggerData&&(eS(e.B.bind(e),d.expirationTriggerData,qS),f++);var l=[f===Object.keys(d).length,e]}catch(m){Z(m),l=[!1,void 0]}l[0]&&(oi(b,cv,3,l[1]),c++)}void 0!==a.externallyManaged&&(vi(b,4,a.externallyManaged),c++);void 0!==a.controlFlowManagerLayer&&(N(b,5,mJa[a.controlFlowManagerLayer]),c++);return[c===Object.keys(a).length,
b]}catch(m){return Z(m),[!1,void 0]}};
qS=function(a){var b=new $u,c=0;try{void 0!==a.type&&(N(b,1,rS[a.type]),c++);void 0!==a.category&&(N(b,2,sJa[a.category]),c++);if(a.layoutIdEnteredTriggerData){var d=a.layoutIdEnteredTriggerData,e=new Yu,f=0;try{void 0!==d.enteredLayoutId&&(O(e,1,d.enteredLayoutId),f++);var h=[f===Object.keys(d).length,e]}catch(p){Z(p),h=[!1,void 0]}h[0]&&(pi(b,Yu,3,tJa,h[1]),c++)}if(a.triggerSourceData){var l=a.triggerSourceData,m=new Zu;h=0;try{void 0!==l.associatedSlotId&&(ki(m,1,uJa,Fh(l.associatedSlotId)),h++);
void 0!==l.associatedLayoutId&&(ki(m,2,uJa,Fh(l.associatedLayoutId)),h++);var n=[h===Object.keys(l).length,m]}catch(p){Z(p),n=[!1,void 0]}n[0]&&(pi(b,Zu,4,tJa,n[1]),c++)}void 0!==a.shouldOnlyTriggerOnce&&(vi(b,5,a.shouldOnlyTriggerOnce),c++);return[c===Object.keys(a).length,b]}catch(p){return Z(p),[!1,void 0]}};
nJa=function(a){var b=new gv,c=0;try{return void 0!==a.macros&&(fS(b.j.bind(b),a.macros,pJa),c++),void 0!==a.success&&(vi(b,2,a.success),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
wJa=function(a){var b=new Qu,c=0;try{if(a.cui){var d=a.cui,e=new Pu;try{var f=[0===Object.keys(d).length,e]}catch(h){Z(h),f=[!1,void 0]}f[0]&&(oi(b,Pu,1,f[1]),c++)}void 0!==a.step&&(N(b,2,vJa[a.step]),c++);return[c===Object.keys(a).length,b]}catch(h){return Z(h),[!1,void 0]}};
xJa=function(a){var b=new yv,c=0;try{return void 0!==a.startMs&&(qi(b,1,a.startMs),c++),void 0!==a.endMs&&(qi(b,2,a.endMs),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
yJa=function(a){var b=new kv,c=0;try{return void 0!==a.externalVideoId&&(O(b,1,a.externalVideoId),c++),void 0!==a.originalMediaDurationMs&&(N(b,2,a.originalMediaDurationMs),c++),void 0!==a.trimmedMediaDurationMs&&(N(b,3,a.trimmedMediaDurationMs),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
zJa=function(a){var b=new Lx,c=0;try{return void 0!==a.orchestrationActionId&&(O(b,1,a.orchestrationActionId),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
AJa=function(a){var b=new my,c=0;try{return void 0!==a.answerId&&(wi(b,1,a.answerId),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
DJa=function(a){var b=new fy,c=0;try{return void 0!==a.ypcCallerPage&&(N(b,1,BJa[a.ypcCallerPage]),c++),void 0!==a.useCase&&(N(b,2,CJa[a.useCase]),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
HJa=function(a){var b=new vy,c=0;try{if(a.itemId){var d=a.itemId,e=new Lu,f=0;try{void 0!==d.type&&(N(e,1,sS[d.type]),f++);void 0!==d.externalId&&(O(e,2,d.externalId),f++);var h=[f===Object.keys(d).length,e]}catch(p){Z(p),h=[!1,void 0]}h[0]&&(oi(b,Lu,1,h[1]),c++)}void 0!==a.productType&&(N(b,2,tS[a.productType]),c++);void 0!==a.originatingDeviceInterface&&(N(b,4,$wa[a.originatingDeviceInterface]),c++);if(a.alcLoggingParams){var l=a.alcLoggingParams,m=new uy;h=0;try{void 0!==l.purchaseOriginEntityType&&
(N(m,1,EJa[l.purchaseOriginEntityType]),h++);void 0!==l.purchaseOriginPageType&&(N(m,2,FJa[l.purchaseOriginPageType]),h++);var n=[h===Object.keys(l).length,m]}catch(p){Z(p),n=[!1,void 0]}n[0]&&(pi(b,uy,3,GJa,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return Z(p),[!1,void 0]}};
kKa=function(a){var b=new ex,c=0;try{if(a.dimensions){var d=a.dimensions,e=new cx,f=0;try{void 0!==d.csn&&(O(e,1,d.csn),f++);void 0!==d.userExperienceId&&(wi(e,2,d.userExperienceId),f++);if(d.studio){var h=d.studio,l=new $w,m=0;try{void 0!==h.route&&(O(l,1,h.route),m++);void 0!==h.feature&&(N(l,2,IJa[h.feature]),m++);void 0!==h.topEntityType&&(N(l,3,JJa[h.topEntityType]),m++);void 0!==h.availability&&(N(l,4,KJa[h.availability]),m++);void 0!==h.isChannelDelegation&&(vi(l,5,h.isChannelDelegation),m++);
void 0!==h.isArtistDelegation&&(vi(l,6,h.isArtistDelegation),m++);void 0!==h.environment&&(N(l,7,LJa[h.environment]),m++);void 0!==h.networkConnectionStatus&&(N(l,8,MJa[h.networkConnectionStatus]),m++);var n=[m===Object.keys(h).length,l]}catch(V){Z(V),n=[!1,void 0]}n[0]&&(oi(e,$w,3,n[1]),f++)}if(d.mweb){var p=d.mweb,q=new Zw;n=0;try{void 0!==p.pageType&&(N(q,1,NJa[p.pageType]),n++);void 0!==p.navType&&(N(q,2,OJa[p.navType]),n++);var t=[n===Object.keys(p).length,q]}catch(V){Z(V),t=[!1,void 0]}t[0]&&
(oi(e,Zw,4,t[1]),f++)}if(d.mainAppWeb){var v=d.mainAppWeb,y=new Yw;t=0;try{void 0!==v.pageType&&(N(y,1,PJa[v.pageType]),t++);void 0!==v.requestType&&(N(y,2,QJa[v.requestType]),t++);void 0!==v.isShellLoad&&(vi(y,3,v.isShellLoad),t++);var A=[t===Object.keys(v).length,y]}catch(V){Z(V),A=[!1,void 0]}A[0]&&(oi(e,Yw,5,A[1]),f++)}if(d.survivalSli){var E=d.survivalSli,K=new Ww;A=0;try{void 0!==E.partitionMinute&&(wi(K,1,E.partitionMinute),A++);void 0!==E.survivalStatus&&(N(K,2,RJa[E.survivalStatus]),A++);
void 0!==E.survivalSessionType&&(N(K,3,SJa[E.survivalSessionType]),A++);var I=[A===Object.keys(E).length,K]}catch(V){Z(V),I=[!1,void 0]}I[0]&&(oi(e,Ww,6,I[1]),f++)}if(d.tvhtml5){var F=d.tvhtml5,S=new ax;I=0;try{void 0!==F.authRefreshTokenFailureType&&(N(S,1,TJa[F.authRefreshTokenFailureType]),I++);void 0!==F.networkErrorEndpoint&&(N(S,2,UJa[F.networkErrorEndpoint]),I++);void 0!==F.networkErrorResponseCode&&(wi(S,3,F.networkErrorResponseCode),I++);void 0!==F.sessionSurvivalLengthMin&&(wi(S,4,F.sessionSurvivalLengthMin),
I++);void 0!==F.accountChangeType&&(N(S,5,VJa[F.accountChangeType]),I++);void 0!==F.accountChangeTrigger&&(N(S,6,WJa[F.accountChangeTrigger]),I++);void 0!==F.cpn&&(O(S,7,F.cpn),I++);void 0!==F.sessionSurvivalDidUserAgentChange&&(vi(S,8,F.sessionSurvivalDidUserAgentChange),I++);void 0!==F.adShownToPremiumUserCondition&&(N(S,9,XJa[F.adShownToPremiumUserCondition]),I++);void 0!==F.identityType&&(N(S,10,YJa[F.identityType]),I++);void 0!==F.identityDelegationType&&(N(S,11,ZJa[F.identityDelegationType]),
I++);void 0!==F.botguardServerEnvironment&&(N(S,12,$Ja[F.botguardServerEnvironment]),I++);void 0!==F.accountEventTrigger&&(N(S,13,aKa[F.accountEventTrigger]),I++);void 0!==F.signInMethodType&&(N(S,14,bKa[F.signInMethodType]),I++);void 0!==F.accountEventErrorType&&(N(S,15,cKa[F.accountEventErrorType]),I++);void 0!==F.hadRemoteDeviceConnected&&(vi(S,16,F.hadRemoteDeviceConnected),I++);void 0!==F.hadVoiceInitiatedPlayback&&(vi(S,17,F.hadVoiceInitiatedPlayback),I++);void 0!==F.restartLengthMin&&(wi(S,
18,F.restartLengthMin),I++);void 0!==F.restartReason&&(N(S,19,dKa[F.restartReason]),I++);void 0!==F.numberOfPersonaAccountsDelta&&(wi(S,20,F.numberOfPersonaAccountsDelta),I++);void 0!==F.accountEventCancellationType&&(N(S,21,eKa[F.accountEventCancellationType]),I++);void 0!==F.maxJsMemoryPerAppLifecycleBytes&&(wi(S,22,F.maxJsMemoryPerAppLifecycleBytes),I++);void 0!==F.appLifecycleLengthMin&&(wi(S,23,F.appLifecycleLengthMin),I++);var Y=[I===Object.keys(F).length,S]}catch(V){Z(V),Y=[!1,void 0]}Y[0]&&
(oi(e,ax,7,Y[1]),f++)}if(d.unpluggedWeb){var ia=d.unpluggedWeb,ta=new bx;Y=0;try{void 0!==ia.unpluggedWebEntitlementType&&(N(ta,1,fKa[ia.unpluggedWebEntitlementType]),Y++);void 0!==ia.unpluggedWebPurchaseType&&(N(ta,2,gKa[ia.unpluggedWebPurchaseType]),Y++);var na=[Y===Object.keys(ia).length,ta]}catch(V){Z(V),na=[!1,void 0]}na[0]&&(oi(e,bx,8,na[1]),f++)}void 0!==d.logEventStatus&&(wi(e,9,d.logEventStatus),f++);if(d.kids){var ca=d.kids,ha=new Xw;na=0;try{void 0!==ca.userType&&(N(ha,1,hKa[ca.userType]),
na++);var Da=[na===Object.keys(ca).length,ha]}catch(V){Z(V),Da=[!1,void 0]}Da[0]&&(oi(e,Xw,10,Da[1]),f++)}void 0!==d.screen&&(wi(e,11,d.screen),f++);if(d.navigation){var fa=d.navigation,U=new Vw;Da=0;try{void 0!==fa.destinationScreen&&(wi(U,1,fa.destinationScreen),Da++);void 0!==fa.navType&&(N(U,2,iKa[fa.navType]),Da++);var Ua=[Da===Object.keys(fa).length,U]}catch(V){Z(V),Ua=[!1,void 0]}Ua[0]&&(oi(e,Vw,12,Ua[1]),f++)}var r=[f===Object.keys(d).length,e]}catch(V){Z(V),r=[!1,void 0]}r[0]&&(oi(b,cx,1,
r[1]),c++)}a.records&&(eS(b.j.bind(b),a.records,jKa),c++);return[c===Object.keys(a).length,b]}catch(V){return Z(V),[!1,void 0]}};
jKa=function(a){var b=new dx,c=0;try{return void 0!==a.name&&(N(b,1,lKa[a.name]),c++),void 0!==a.status&&(N(b,2,mKa[a.status]),c++),void 0!==a.state&&(b.Ac(nKa[a.state]),c++),void 0!==a.sliId&&(O(b,4,a.sliId),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}};
uS=function(){};
oKa=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."))})};
SB=function(a,b){var c=this;this.handleError=a;this.j=b;this.u=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.u=!0});
this.B=Math.random()<=g.Iz("ytidb_transaction_ended_event_rate_limit_session",.2)};
qKa=function(a,b){uS.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:pKa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:pKa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
pKa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
rKa=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:dl(a,"unknown result type")}};
sKa=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:dl(a,"unknown result type")}};
tKa=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:dl(a,"Unknown method type")}};
uKa=function(){this.state=1;this.j=null};
wKa=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.Ac(2),g.QD(c,function(){if(window[h])vKa(a,d,h,e);else{a.Ac(3);var l=Ppa(c),m=document.getElementById(l);m&&(Lpa(l),m.parentNode.removeChild(m));g.tG(new g.EB("Unable to load Botguard","from "+c))}},f)):b?(f=g.bf("SCRIPT"),b instanceof Wd?(f.textContent=Fba(b),el(f)):f.textContent=b,f.nonce=oe(),document.head.appendChild(f),document.head.removeChild(f),window[h]?vKa(a,d,h,e):(a.Ac(4),g.tG(new g.EB("Unable to load Botguard from JS")))):g.tG(new g.EB("Unable to load VM; no url or JS provided"))};
vKa=function(a,b,c,d){a.Ac(5);try{var e=new Yk({program:b,globalName:c,N9:g.Hz("att_web_record_metrics")});e.r$.then(function(){a.Ac(6);d&&d(b)});
a.zQ(e)}catch(f){a.Ac(7),f instanceof Error&&g.tG(f)}};
xKa=function(a,b){var c=g.vS;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.lF()?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.lF()?c.u_({Oy:a}).then(d):d(null)})]):Promise.resolve(null)};
wS=function(){var a=g.Sa("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null};
yKa=function(){uKa.apply(this,arguments)};
AKa=function(a){return!zKa||(0,g.mC)()-zKa>a};
CKa=function(a,b){BKa(a.program,b.Q9)&&(SH("bg_i",void 0,"player_att"),g.vS.initialize(a,function(){SH("bg_l",void 0,"player_att");zKa=(0,g.mC)()},b.cspNonce))};
DKa=function(a){a=void 0===a?{}:a;return g.vS.invoke(a)};
EKa=function(a){var b=g.Iz("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return xKa(a,b)};
BKa=function(a,b){return a?g.vS.isLoading()?!1:AKa(b):!1};
g.FKa=function(a,b){return a.Oa+"timedtext_video?ref=player&v="+b.videoId};
g.xS=function(a,b){a.feature=b;return a};
g.GKa=function(a){var b=this;this.videoData=a;a={};this.u=(a.c1a=function(){var c=[];if(g.vS.isInitialized()){var d="";b.videoData&&b.videoData.Nk&&(d=b.videoData.Nk+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);SH("bg_v",void 0,"player_att");d=DKa(d);SH("bg_s",void 0,"player_att");d?c.push("r1a="+d):c.push("r1c=2")}else SH("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.vS.getState());return c.join("&")},a.c6a=
function(c){return"r6a="+(Number(c.c)^tGa())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.Fz("CATSTAT",0)))},a);
this.videoData&&this.videoData.Nk?this.j=Rz(this.videoData.Nk):this.j={}};
g.HKa=function(a){if(a.videoData&&a.videoData.Nk){for(var b=[a.videoData.Nk],c=g.u(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,a.j[d]&&a.u[d]&&(d=a.u[d](a.j))&&b.push(d);return b.join("&")}return null};
JKa=function(a){var b={};Object.assign(b,a.u);g.Hz("player_attestation_bg_async")&&(b.c1a=function(){return IKa(a)});
if(a.videoData&&a.videoData.Nk){for(var c=[a.videoData.Nk],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.KKa=function(a,b){CKa(a,{Q9:g.xL(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
IKa=function(a){function b(e){return e+"&r1d="+g.vS.getState()}
if(!g.vS.isInitialized())return SH("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.Nk&&(c=a.videoData.Nk+("&r1b="+a.videoData.clientPlaybackNonce));a={};var d=(a.atr_challenge=c,a);return new Promise(function(e){SH("bg_v",void 0,"player_att");EKa(d).then(function(f){f?(SH("bg_s",void 0,"player_att"),e(b("r1a="+f))):(SH("bg_e",void 0,"player_att"),e(b("r1c=2")))},function(){SH("bg_e",void 0,"player_att");
e(b("r1c=3"))})})};
g.yS=function(a){var b=a.W(),c=g.LKa(b),d=a.Ba;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=LO(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.Eo)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:MKa[e]}});a.ey&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.oa)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=NKa[b];c.request=d;d=c.user||{};if(b=a.qa)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.wb)d.delegatePurchases={oauthToken:b},d.kidsParent={oauthToken:b};c.user=d;if(d=a.contextParams)c.activePlayers=[{playerContextParams:d}];if(a=a.clientScreenNonce)c.clientScreenNonce=a;return c};
g.LKa=function(a){var b=g.BQ(),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.pd)b.thirdParty={embedUrl:a};return b};
SKa=function(a,b,c){var d=a.videoId,e=g.yS(a),f=a.W(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(sF()),referer:document.location.toString(),signatureTimestamp:19563};g.yB();a.isAutonav&&(h.autonav=!0);g.zB(0,141)&&(h.autonavState=g.zB(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.zB(0,66);Tza(a)&&(h.autoplay=!0);f.J&&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 t=q.next();!t.done;t=q.next()){var v=g.u(t.value.split("="));t=v.next().value;v=faa(v);p[t]=v.join("=")}q=p.url;t=p.presetad;v=p.viralresponseurl;var y=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),t&&(m.presetAd=t),v&&(m.viralAdResponseUrl=v),y&&(m.viralCampaignId=
String(y));else if("video_ad"===p.adtype){var A={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=OKa[p.breaktype])A.breakType=p;q&&(A.url=q);t&&(A.presetAd=t);v&&(A.viralAdResponseUrl=v);y&&(A.viralCampaignId=String(y));n.push(A)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.hL;if(null!=m){m={startWalltime:String(m)};if(n=a.Gl)m.manifestDuration=String(n||14400);
h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.Wf?0:a.jg)h.splay=!0;m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.kq)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Hj){n=a.DP;l=[];p=g.u(p.split(","));for(q=p.next();!q.done;q=p.next())if(t=q.value)if((q=t.startsWith("!"))&&(t=t.substr(1)),t=t.split("-"),!(3>t.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:PKa[t[1]]||"UNKNOWN_FORM_FACTOR",clientName:QKa[t[0]]||"UNKNOWN_INTERFACE",
clientVersion:t[2]||"",platform:RKa[t[1]]||"UNKNOWN_PLATFORM"};t={};if(n){v=void 0;try{v=JSON.parse(n)}catch(E){g.tG(E)}v&&(t={params:[{key:"ms",value:v.ms}]},v.advertising_id&&(t.advertisingId=v.advertising_id),void 0!==v.limit_ad_tracking&&null!==v.limit_ad_tracking&&(t.limitAdTracking=v.limit_ad_tracking),q.osName=v.os_name,q.userAgent=v.user_agent,q.windowHeightPoints=v.window_height_points,q.windowWidthPoints=v.window_width_points)}l.push({adSignalsInfo:t,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.xM(f)&&h&&(h.ancestorOrigins=f.ancestorOrigins);a.defaultActiveSourceVideoId&&(h.compositeVideoContext={defaultActiveSourceVideoId:a.defaultActiveSourceVideoId});
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.zB(g.yB(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.QM(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.BT&&(d.captionParams.deviceCaptionsLangPref=
a.BT);a.dK.length?d.captionParams.viewerSelectedCaptionLangs=a.dK:g.QM(e)&&(f=g.Bva(),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.pg&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.pg);e.N("fetch_att_independently")&&(d.attestationRequest={omitBotguardData:!0});return d};
UKa=function(a,b){var c,d,e;return g.Ha(function(f){if(1==f.j)return c={context:g.LKa(a.W()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.QR(TKa),g.z(f,g.EQ(b,c,d),2);e=f.u;return f.return(e)})};
VKa=function(a,b,c){AKa(g.xL(b.experiments,"bg_vm_reinit_threshold"))&&UKa(a,c).then(function(d){d&&(d=d.botguardData)&&g.KKa(d,b)},function(d){a.isDisposed()||(d=cN(d),a.ya("attf",{error:d.errorCode}))})};
WKa=function(){this.yy={}};
zS=function(a,b,c,d,e){b in a.yy||(c=new g.NG(c,d,{id:b,priority:2,namespace:"appad"}),e.addCueRange(c),a.yy[b]=c)};
XKa=function(){g.G.apply(this,arguments);this.C=new Set;this.D={};this.K={};this.j={};this.J={};this.B={};this.u=void 0;this.V=new Set};
ZKa=function(a){var b=void 0===b?5:b;return a?YKa[a]||b:b};
AS=function(a,b,c){g.G.call(this);this.app=a;this.state=b;this.playerType=c;this.j=!0;this.element=null};
$Ka=function(a){BS(a,"getInternalApiInterface",a.getInternalApiInterface);BS(a,"cueVideoByPlayerVars",a.cueVideoByPlayerVars);BS(a,"loadVideoByPlayerVars",a.loadVideoByPlayerVars);BS(a,"preloadVideoByPlayerVars",a.preloadVideoByPlayerVars);BS(a,"getAdState",a.getAdState);BS(a,"sendAbandonmentPing",a.sendAbandonmentPing);BS(a,"setLoopRange",a.setLoopRange);BS(a,"getLoopRange",a.getLoopRange);BS(a,"setAutonavState",a.setAutonavState);BS(a,"seekToLiveHead",a.seekToLiveHead);BS(a,"requestSeekToWallTimeSeconds",
a.requestSeekToWallTimeSeconds);BS(a,"seekToStreamTime",a.seekToStreamTime);BS(a,"startSeekCsiAction",a.startSeekCsiAction);BS(a,"getStreamTimeOffset",a.getStreamTimeOffset);BS(a,"getVideoData",a.W4);BS(a,"setInlinePreview",a.setInlinePreview);BS(a,"updateDownloadState",a.updateDownloadState);BS(a,"queueOfflineAction",a.queueOfflineAction);BS(a,"pauseVideoDownload",a.pauseVideoDownload);BS(a,"resumeVideoDownload",a.resumeVideoDownload);BS(a,"refreshAllStaleEntities",a.refreshAllStaleEntities);BS(a,
"isOrchestrationLeader",a.isOrchestrationLeader);BS(a,"getAppState",a.getAppState);BS(a,"updateLastActiveTime",a.updateLastActiveTime);BS(a,"setBlackout",a.setBlackout);BS(a,"setUserEngagement",a.setUserEngagement);BS(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);BS(a,"getPresentingPlayerType",a.getPresentingPlayerType);BS(a,"canPlayType",a.canPlayType);BS(a,"updatePlaylist",a.updatePlaylist);BS(a,"updateVideoData",a.updateVideoData);BS(a,"updateEnvironmentData",a.updateEnvironmentData);
BS(a,"sendVideoStatsEngageEvent",a.sendVideoStatsEngageEvent);BS(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);BS(a,"setSafetyMode",a.setSafetyMode);BS(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)});
BS(a,"getVideoAspectRatio",a.getVideoAspectRatio);BS(a,"getPreferredQuality",a.getPreferredQuality);BS(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);BS(a,"setPlaybackQualityRange",a.setPlaybackQualityRange);BS(a,"onAdUxClicked",a.onAdUxClicked);BS(a,"getFeedbackProductData",a.getFeedbackProductData);BS(a,"getStoryboardFrame",a.getStoryboardFrame);BS(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);BS(a,"getStoryboardLevel",a.getStoryboardLevel);BS(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);
BS(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);BS(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);BS(a,"addUtcCueRange",a.addUtcCueRange);BS(a,"showAirplayPicker",a.showAirplayPicker);BS(a,"dispatchReduxAction",a.dispatchReduxAction);BS(a,"getPlayerResponse",a.getPlayerResponse);BS(a,"getHeartbeatResponse",a.getHeartbeatResponse);BS(a,"changeMarkerVisibility",a.changeMarkerVisibility);BS(a,"setAutonav",a.setAutonav);BS(a,"isNotServable",a.isNotServable);BS(a,"channelSubscribed",
a.channelSubscribed);BS(a,"channelUnsubscribed",a.channelUnsubscribed);BS(a,"togglePictureInPicture",a.togglePictureInPicture);BS(a,"supportsGaplessAudio",a.supportsGaplessAudio);BS(a,"supportsGaplessShorts",a.supportsGaplessShorts);BS(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
BS(a,"clearQueue",a.clearQueue);BS(a,"getAudioTrack",a.A4);BS(a,"setAudioTrack",a.setAudioTrack);BS(a,"getAvailableAudioTracks",a.B4);BS(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);BS(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);BS(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);BS(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);BS(a,"setMinimized",a.setMinimized);BS(a,"confirmYpcRental",a.confirmYpcRental);BS(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);
BS(a,"isSubtitlesOn",a.isSubtitlesOn);BS(a,"queueNextVideo",a.queueNextVideo);BS(a,"handleExternalCall",a.handleExternalCall);BS(a,"logApiCall",a.logApiCall);BS(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);BS(a,"setScreenLayer",a.setScreenLayer);BS(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);BS(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);BS(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);BS(a,"syncVolume",a.syncVolume);BS(a,"highlightSettingsMenuItem",
a.highlightSettingsMenuItem);BS(a,"openSettingsMenuItem",a.openSettingsMenuItem);BS(a,"getVisibilityState",a.getVisibilityState);BS(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);BS(a,"setGlobalCrop",a.setGlobalCrop);BS(a,"setInternalSize",a.setInternalSize)};
CS=function(a,b,c){a.state.D[b]=function(){return c.apply(a,g.Ia.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||BS(a,b,c);a.state.C.add(b)};
DS=function(a,b,c){a.state.K[b]=function(){return c.apply(a,g.Ia.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||BS(a,b,c);a.state.C.add(b)};
BS=function(a,b,c){a.state.j[b]=function(){return c.apply(a,g.Ia.apply(0,arguments))}};
g.ES=function(a,b,c){return a.state.j[b].apply(a.state.j,g.qa(c))};
bLa=function(a){a.state.u||(a.state.u={addEventListener:function(b,c){aLa(a,b,c)},
removeEventListener:function(b,c){c="string"===typeof c?b+c:b+String(g.ab(c));var d=a.state.B[c];d&&(a.app.wq.unsubscribe(b,d),g.jd(a.state.B,c))}});
return a.state.u};
aLa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.ab(c));if(!a.state.B[d]){var e="string"===typeof c?function(){var h=g.Ia.apply(0,arguments);g.Sa(c).apply(window,h)}:c;
var f=function(h){e({target:a.state.u,data:h})};
a.state.B[d]=f;a.app.wq.subscribe(b,f)}};
cLa=function(a,b){b=void 0===b?a.playerType:b;var c={};if(b=g.FS(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=Xza(b);c.errorCode=b.errorCode;if(b.u&&b.u.video){c.video_quality=b.u.video.quality;b=b.u.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.GS=function(a){var b=dLa(a.app.Fb());if(b)return b.OG();a=a.app.Fb();a=g.FM(a.I.W())?a.Se.get("music"):void 0;return a?a.OG():null};
fLa=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 eLa(a)};
eLa=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.u(gLa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
hLa=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};
HS=function(a,b,c,d){AS.call(this,a,b,d);c&&($Ka(this),iLa(this))};
iLa=function(a){CS(a,"cueVideoById",a.cueVideoById);CS(a,"loadVideoById",a.loadVideoById);CS(a,"cueVideoByUrl",a.cueVideoByUrl);CS(a,"loadVideoByUrl",a.loadVideoByUrl);CS(a,"playVideo",a.playVideo);CS(a,"pauseVideo",a.pauseVideo);CS(a,"stopVideo",a.stopVideo);CS(a,"clearVideo",a.clearVideo);CS(a,"getVideoBytesLoaded",a.getVideoBytesLoaded);CS(a,"getVideoBytesTotal",a.getVideoBytesTotal);CS(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);CS(a,"getVideoStartBytes",a.getVideoStartBytes);CS(a,"cuePlaylist",
a.cuePlaylist);CS(a,"loadPlaylist",a.loadPlaylist);CS(a,"nextVideo",a.nextVideo);CS(a,"previousVideo",a.previousVideo);CS(a,"playVideoAt",a.playVideoAt);CS(a,"setShuffle",a.setShuffle);CS(a,"setLoop",a.setLoop);CS(a,"getPlaylist",a.T4);CS(a,"getPlaylistIndex",a.getPlaylistIndex);CS(a,"getPlaylistId",a.getPlaylistId);CS(a,"loadModule",a.loadModule);CS(a,"unloadModule",a.unloadModule);CS(a,"setOption",a.setOption);CS(a,"getOption",a.getOption);CS(a,"getOptions",a.getOptions);CS(a,"mute",a.mute);CS(a,
"unMute",a.unMute);CS(a,"isMuted",a.isMuted);CS(a,"setVolume",a.setVolume);CS(a,"getVolume",a.getVolume);CS(a,"seekTo",a.seekTo);CS(a,"getPlayerMode",a.getPlayerMode);CS(a,"getPlayerState",a.getPlayerState);CS(a,"getAvailablePlaybackRates",a.getAvailablePlaybackRates);CS(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
CS(a,"setPlaybackQuality",a.setPlaybackQuality);CS(a,"getAvailableQualityLevels",a.getAvailableQualityLevels);CS(a,"getCurrentTime",a.getCurrentTime);CS(a,"getDuration",a.getDuration);CS(a,"addEventListener",a.t3);CS(a,"removeEventListener",a.S9);CS(a,"getDebugText",a.getDebugText);CS(a,"getVideoData",function(){return cLa(a)});
CS(a,"addCueRange",a.addCueRange);CS(a,"removeCueRange",a.removeCueRange);CS(a,"setSize",a.setSize);CS(a,"getApiInterface",a.getApiInterface);CS(a,"destroy",a.destroy);CS(a,"getSphericalProperties",a.getSphericalProperties);CS(a,"setSphericalProperties",a.setSphericalProperties);CS(a,"mutedAutoplay",a.mutedAutoplay);var b=a.app.W();b.K||(CS(a,"getVideoEmbedCode",a.getVideoEmbedCode),CS(a,"getVideoUrl",a.getVideoUrl));CS(a,"getMediaReferenceTime",a.getMediaReferenceTime);CS(a,"getSize",a.getSize);
b.K||CS(a,"logImaAdEvent",a.logImaAdEvent)};
jLa=function(a,b,c){b=g.pe(Math.floor(b),0,100);isFinite(b)&&IS(a.app,{volume:b,muted:a.isMuted()},c)};
kLa=function(a,b){IS(a.app,{muted:!0,volume:a.getVolume()},b)};
lLa=function(a,b){g.JS(a.app)||IS(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
KS=function(a,b,c,d){HS.call(this,a,b,!1,d);this.j=!1;c&&($Ka(this),mLa(this),iLa(this))};
mLa=function(a){DS(a,"cueVideoByPlayerVars",function(b,c){a.cueVideoByPlayerVars(nLa(a,b),c)});
DS(a,"loadVideoByPlayerVars",function(b,c,d,e){a.loadVideoByPlayerVars(nLa(a,b),c,d,e)});
DS(a,"preloadVideoByPlayerVars",function(b,c,d,e){return void a.preloadVideoByPlayerVars(nLa(a,b),c,d,e)});
DS(a,"getVideoData",a.AV);DS(a,"seekBy",a.seekBy);DS(a,"showControls",a.showControls);DS(a,"hideControls",a.hideControls);DS(a,"cancelPlayback",a.cancelPlayback);DS(a,"getProgressState",a.getProgressState);DS(a,"isInline",a.isInline);DS(a,"setInline",a.setInline);DS(a,"setLoopVideo",a.setLoopVideo);DS(a,"getLoopVideo",a.getLoopVideo);DS(a,"getVideoContentRect",a.getVideoContentRect);DS(a,"getVideoStats",a.getVideoStats);DS(a,"getStoryboardFormat",a.getStoryboardFormat);DS(a,"toggleFullscreen",a.toggleFullscreen);
DS(a,"isFullscreen",a.isFullscreen);DS(a,"getPlayerSize",a.getPlayerSize);DS(a,"toggleSubtitles",a.toggleSubtitles);DS(a,"setCenterCrop",a.setCenterCrop);DS(a,"setFauxFullscreen",a.setFauxFullscreen);DS(a,"setSizeStyle",a.setSizeStyle);DS(a,"handleGlobalKeyDown",a.handleGlobalKeyDown);DS(a,"handleGlobalKeyUp",a.handleGlobalKeyUp);DS(a,"wakeUpControls",a.wakeUpControls)};
nLa=function(a,b){var c={};if(a.app.W().Ba){a=g.u(oLa);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(pLa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
qLa=function(a){var b=g.GM(a.app.W()),c,d=null==(c=a.app.getVideoData())?void 0:c.yk;a=g.JS(a.app);return g.SA(b)&&!d||a?!1:!0};
rLa=function(a,b,c){var d=a.app.uf(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
LS=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.u=this.j=a-1};
sLa=function(a){return a.data[a.j]||0};
MS=function(a){g.G.call(this);this.B=a;this.j=new Map;this.u=new g.Kq(this.sample,250,this);g.H(this,this.u);this.start()};
NS=function(a,b){if(null==(a=a.j.get(b)))a=void 0;else{a=a.buffer;for(b=[];a.u!==a.j;)a.u=(a.u+1)%a.data.length,b.push(a.data[a.u]);a=b}return a||[]};
OS=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:sLa(c.buffer))||0};
tLa=function(a){this.j=a;this.Fz=NaN;this.buffer=new LS(100)};
g.PS=function(a,b){KS.call(this,a,b,!1);this.EK=null};
g.QS=function(a){a=a.Fb();var b=a.Se.get("endscreen");return b&&b.Ow()?!0:a.SE()||g.FM(a.I.W())};
g.RS=function(a,b){3===a.getPresentingPlayerType()?a.ra("mdxautoplaycancel"):a.ra("autonavcancel",b)};
g.TS=function(a){var b=SS(a.Fb());return a.app.Zh&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.Yk()&&b.rp()||!!a.getPlaylist()};
g.US=function(a){var b=a.W();if(!g.xM(b)||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(b.Ya||"EMBEDDED_PLAYER_MODE_DEFAULT")||a.getPlaylist())return!1;var c=g.GS(a);b=a.getVideoData();a=c?c.WM():a.getPlayerSize();var d;return!!(b&&(null==(d=b.embeddedPlayerConfig)?0:d.isShortsExperienceEligible)&&a.width<=a.height)};
g.uLa=function(a,b,c){g.ES(a,"addEmbedsConversionTrackingParams",[b]);g.xS(b,c)};
g.WS=function(a){return(a=g.VS(a.Fb()))?a.eH():{}};
g.vLa=function(a){a=(a=a.getVideoData())&&a.u;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.XS=function(a,b,c){a=a.qb().element;var d=Ub(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.ff(a,b,d);b.setAttribute("data-layer",String(c))};
g.YS=function(a){var b=a.W();if(!b.Je)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay"))&&!UO(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.Yk();var f=c.Ad&&c.Ad.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Dd&&f;return!c.ypcPreview&&(!d||e)&&!g.Fb(c.Fa,"ypc")&&
!a&&(!g.xM(b)||f)};
wLa=function(a){a=g.FS(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.u||!b.u.video||1080>b.u.video.j||b.CV)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.u.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.ya("iqss",{trigger:d},!0),!0):!1};
ZS=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.mC)()-f).toFixed(),shost:g.Sj(a),trigger:b};xLa(h,a);c&&c(h);d&&!l&&d(new aN("pathprobe.net",h))}
var f=(0,g.mC)();g.hA(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
xLa=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(),yLa&&(a.perqsa=b.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
g.$S=function(a,b,c,d){d=void 0===d?!1:d;g.aR.call(this,b);var e=this;this.I=a;this.Fa=d;this.K=new g.PK(this);this.oa=new g.yR(this,c,!0,void 0,void 0,function(){e.aV()});
g.H(this,this.K);g.H(this,this.oa)};
zLa=function(a){a.u&&(document.activeElement&&g.rf(a.element,document.activeElement)&&(tf(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.nB(a.K);a.V=void 0};
aT=function(a,b,c){a.vj()?a.Mb():a.yd(b,c)};
ALa=function(a,b,c,d){d=new g.X({G:"div",Na:["ytp-linked-account-popup-button"],Aa:d,Y:{role:"button",tabindex:"0"}});b=new g.X({G:"div",S:"ytp-linked-account-popup",Y:{role:"dialog","aria-modal":"true",tabindex:"-1"},X:[{G:"div",S:"ytp-linked-account-popup-title",Aa:b},{G:"div",S:"ytp-linked-account-popup-description",Aa:c},{G:"div",S:"ytp-linked-account-popup-buttons",X:[d]}]});g.$S.call(this,a,{G:"div",S:"ytp-linked-account-popup-container",X:[b]},100);var e=this;this.dialog=b;g.H(this,this.dialog);
d.Ta("click",function(){e.Mb()});
g.H(this,d);g.XS(this.I,this.element,4);this.hide()};
g.cT=function(a,b,c,d){g.aR.call(this,a);this.priority=b;c&&g.bT(this,c);d&&this.qe(d)};
g.dT=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{G:c?"a":"div",Na:b,Y:a,X:[{G:"div",S:"ytp-menuitem-icon",Aa:"{{icon}}"},{G:"div",S:"ytp-menuitem-label",Aa:"{{label}}"},{G:"div",S:"ytp-menuitem-content",Aa:"{{content}}"}]}};
eT=function(a,b){a.updateValue("icon",b)};
g.bT=function(a,b){a.updateValue("label",b)};
fT=function(a){g.cT.call(this,g.dT({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.I=a;this.u=this.j=!1;this.Lb=a.hn();a.ag(this.element,this,!0);this.T(this.I,"settingsMenuVisibilityChanged",function(c){b.lc(c)});
this.T(this.I,"videodatachange",this.C);this.Ta("click",this.onClick);this.C()};
gT=function(a){return a?g.VG(a):""};
hT=function(a){g.G.call(this);this.api=a};
iT=function(a){hT.call(this,a);var b=this;BS(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
BS(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new fT(b.api);g.H(b,b.menuItem)})};
jT=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(!jT(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.sG(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(BLa(a)&&BLa(b))try{return a.equals(b)}catch(h){g.sG(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,!jT(a[f],b[f],c,d))return!1;return!0}return!1};
BLa=function(a){a=Object.getPrototypeOf(a).equals;return a instanceof Function&&1===a.length};
DLa=function(a){var b;g.Ha(function(c){b=["b.f_","j.s_","r.s_","e.h_"];b.forEach(function(d){var e;return g.Ha(function(f){if(1==f.j)return g.z(f,CLa[d](),2);e=f.u;a(e,d);g.xa(f)})});
g.xa(c)})};
FLa=function(){for(var a=g.u(ELa),b=a.next();!b.done;b=a.next()){var c=b.value;b=c.objectRepresentation;c=JSON.parse(c.jsonRepresentation);if(!jT(c,b,!1,!1))return 0}return 1};
GLa=function(){var a,b,c,d,e,f,h;return g.Ha(function(l){switch(l.j){case 1:g.ya(l,2),a=g.u(ELa),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.u;if(!jT(h,f,!1,!1))return l.return(0);b=a.next();l.Ka(4);break;case 2:return g.Aa(l),l.return(4)}})};
HLa=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}};
ILa=function(){return g.Ha(function(a){return 1==a.j?g.z(a,$ma().then(function(){return 1},function(b){if("Biscotti id is disabled"===b.message)return 3;
g.tG("Failed fetching bid");return 0}),2):a.return(a.u)})};
JLa=function(){return g.Fz("ISDSTAT",2)};
KLa=function(a){hT.call(this,a);this.events=new g.PK(a);g.H(this,this.events);this.events.T(a,"onPlaybackStartExternal",function(){if(!a.isInline()&&1===a.getPresentingPlayerType()){var b,c={contentCpn:(null==(b=a.getVideoData(1))?void 0:b.clientPlaybackNonce)||""};g.JB(g.LB(),function(){a.N("web_enable_abd_ref")?DLa(function(d,e){var f=c.contentCpn;f={detected:0===d,source:e,detectionResult:rKa(d),contentCpn:f};g.UB("biscottiBasedDetection",f);d=sKa(d);e=tKa(e);Ez("CATSTAT",Number(g.Fz("CATSTAT",
0))&~(3<<e)|d<<e)}):FFa(c)})}});
a.N("report_pml_debug_signal")&&this.events.T(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.UB("adsClientStateChange",e)}})};
MLa=function(a,b){g.X.call(this,{G:"button",Na:["ytp-button"],Y:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},X:[{G:"div",S:"ytp-autonav-toggle-button-container",X:[{G:"div",S:"ytp-autonav-toggle-button",Y:{"aria-checked":"true"}}]}]});this.I=a;this.u=[];this.j=!1;this.isChecked=!0;a.xb(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.IB);this.Ta("click",this.onClick);this.I.W().N("web_player_autonav_toggle_always_listen")&&
LLa(this);this.tooltip=b.Hc();g.tb(this,g.kT(b.Hc(),this.element));this.IB()};
LLa=function(a){a.u.push(a.T(a.I,"videodatachange",a.IB));a.u.push(a.T(a.I,"videoplayerreset",a.IB));a.u.push(a.T(a.I,"onPlaylistUpdate",a.IB));a.u.push(a.T(a.I,"autonavchange",a.KS))};
NLa=function(a){a.isChecked=a.isChecked;a.Ha("ytp-autonav-toggle-button").setAttribute("aria-checked",String(a.isChecked));var b=a.isChecked?"Reprodu\u00e7\u00e3o autom\u00e1tica ativada.":"Reprodu\u00e7\u00e3o auto. desativada.";a.updateValue("title",b);a.updateValue("label",b);lT(a.tooltip)};
OLa=function(a){return a.I.W().N("web_player_autonav_use_server_provided_state")&&bza(a.ge())};
PLa=function(a){hT.call(this,a);var b=this;this.events=new g.PK(a);g.H(this,this.events);var c=a.W();c.Je&&c.N("web_player_move_autonav_toggle")&&this.events.T(a,"standardControlsInitialized",function(){var d=g.GS(a),e=new MLa(a,d);g.H(b,e);d.vy(e)})};
RLa=function(){g.yB();return g.zB(0,192)?g.zB(0,190):!(g.Hz("web_watch_cinematics_disabled_by_default")||g.Hz("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&QLa())};
mT=function(a,b){g.cT.call(this,g.dT({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",S:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Ta("click",this.onClick)};
nT=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))};
SLa=function(a){var b=!a.W().xk&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.oT=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.IR(a))return g.VP(a),!0;b.pauseVideo();a=e.getAttribute("href");g.xAa(a,d,!0);return!1};
g.pT=function(a,b,c){if(OM(b.W())&&2!==b.getPresentingPlayerType()){if(g.IR(c))return b.isFullscreen()&&!b.W().externalFullscreen&&b.toggleFullscreen(),g.VP(c),!0}else if(b.W().N("embeds_enable_webview_nonjs_navigation")&&g.xM(b.W())&&(IA()||GA()))b=c.target,b instanceof HTMLAnchorElement&&cl(b,jga(a));else{var d=g.IR(c);d&&b.pauseVideo();g.xAa(a,void 0,!0);d&&(g.sP(a),g.VP(c))}return!1};
ULa=function(){var a=TLa.includes("pt-PT")?{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!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"}}]}:{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!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.S="ytp-subtitles-button-icon";return a};
VLa=function(){return{G:"div",S:"ytp-spinner-container",X:[{G:"div",S:"ytp-spinner-rotator",X:[{G:"div",S:"ytp-spinner-left",X:[{G:"div",S:"ytp-spinner-circle"}]},{G:"div",S:"ytp-spinner-right",X:[{G:"div",S:"ytp-spinner-circle"}]}]}]}};
WLa=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
g.qT=function(a,b,c){return a.W().Ve?b:g.MP("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c})};
g.rT=function(a){return a.W().N("web_modern_player_settings")?XLa:a.W().N("web_modern_player_settings_quality_bottom")?YLa:ZLa};
sT=function(a){var b=a.N("web_player_use_cinematic_label_2")?"Modo ambiente":"Ilumina\u00e7\u00e3o cinematogr\u00e1fica";mT.call(this,b,g.rT(a).bK);var c=this;this.I=a;this.j=!1;this.u=new g.Kq(function(){g.Uq(c.element,"ytp-menuitem-highlighted")},0);
this.Lb=a.hn();eT(this,{G:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{G:"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.C,this);this.Ta($La,this.B);g.H(this,this.u)};
bMa=function(a){hT.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(){aMa(b)}),a.addEventListener("highlightSettingsMenu",function(d){aMa(b);
var e=b.menuItem;"menu_item_cinematic_lighting"===d&&(g.Sq(e.element,"ytp-menuitem-highlighted"),g.Sq(e.element,"ytp-menuitem-highlight-transition-enabled"),e.u.start())}),BS(a,"updateCinematicSettings",function(d){b.updateCinematicSettings(d)}))};
aMa=function(a){a.menuItem||(a.menuItem=new sT(a.api),g.H(a,a.menuItem),a.menuItem.Sa(a.j))};
tT=function(a){hT.call(this,a);var b=this;this.j={};this.events=new g.PK(a);g.H(this,this.events);this.N("enable_precise_embargos")&&!g.SM(this.api.W())&&(this.events.T(a,"videodatachange",function(){b.onVideoDataChange()}),this.events.T(a,g.PG("embargo"),function(c){b.api.Vn(!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.Zg("auth",2,"This video isn't available in your current playback area",$M({embargoed:1,id:c.id,idx:c.u,start:c.start}));e=void 0;(f=null==(e=f.embargo)?void 0:e.onTrigger)&&b.api.Qa("innertubeCommand",f)}}))};
cMa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.u)};
dMa=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.u))}};
eMa=function(a){hT.call(this,a);var b=this;this.j=[];this.events=new g.PK(a);g.H(this,this.events);BS(a,"addEmbedsConversionTrackingParams",function(c){b.api.W().Jo&&b.addEmbedsConversionTrackingParams(c)});
this.events.T(a,"veClickLogged",function(c){b.api.rj(c)&&(c=Ci(c.visualElement.getAsJspb(),2),b.j.push(c))})};
fMa=function(a){hT.call(this,a);var b=this;this.events=new g.PK(a);g.H(this,this.events);a.W().C&&(this.events.T(a,"initialvideodatacreated",function(c){wQ(vQ(),16623);b.j=g.sH();var d=a.W().Ji&&!c.Wf;if(OO(c)&&d){wQ(vQ(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.Ad){var e,f=null==(e=c.Ad)?void 0:e.trackingParams;f&&yQ(f)}if(c.getPlayerResponse()){var h;(c=null==(h=c.getPlayerResponse())?void 0:h.trackingParams)&&yQ(c)}}else wQ(vQ(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),
c.Ig&&(h=null==(f=c.Ig)?void 0:f.trackingParams)&&yQ(h)}),this.events.T(a,"loadvideo",function(){wQ(vQ(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",
parentCsn:b.j})}),this.events.T(a,"cuevideo",function(){wQ(vQ(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",
parentCsn:b.j})}),this.events.T(a,"largeplaybuttonclicked",function(c){wQ(vQ(),27240,c.visualElement)}),this.events.T(a,"playlistnextbuttonclicked",function(c){wQ(vQ(),27240,c.visualElement)}),this.events.T(a,"playlistprevbuttonclicked",function(c){wQ(vQ(),27240,c.visualElement)}),this.events.T(a,"playlistautonextvideo",function(){wQ(vQ(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})}))};
uT=function(a,b){g.X.call(this,{G:"button",Na:["ytp-fullerscreen-edu-button","ytp-button"],X:[{G:"div",Na:["ytp-fullerscreen-edu-text"],Aa:"Desloque para ver mais informa\u00e7\u00f5es."},{G:"div",Na:["ytp-fullerscreen-edu-chevron"],X:[{G:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{G:"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.bb=a;this.B=b;this.j=new g.yR(this,250,void 0,100);this.C=this.u=!1;a.xb(this.element,
this,61214);this.B=b;g.H(this,this.j);this.T(a,"fullscreentoggled",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);this.Ta("click",this.onClick);this.Sa()};
vT=function(a){hT.call(this,a);var b=this;this.events=new g.PK(a);g.H(this,this.events);BS(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
BS(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
var c=a.W();a.N("external_fullscreen_with_edu")&&c.externalFullscreen&&OM(c)&&"1"===c.controlsType&&this.events.T(a,"standardControlsInitialized",function(){var d=g.GS(a);b.j=new uT(a,d);g.H(b,b.j);d.vy(b.j)})};
gMa=function(a){g.X.call(this,{G:"div",S:"ytp-gated-actions-overlay",X:[{G:"div",S:"ytp-gated-actions-overlay-background",X:[{G:"div",S:"ytp-gated-actions-overlay-background-overlay"}]},{G:"button",Na:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Y:{"aria-label":"Fechar"},X:[g.fR()]},{G:"div",S:"ytp-gated-actions-overlay-bar",X:[{G:"div",S:"ytp-gated-actions-overlay-text-container",X:[{G:"div",S:"ytp-gated-actions-overlay-title",Aa:"{{title}}"},{G:"div",S:"ytp-gated-actions-overlay-subtitle",
Aa:"{{subtitle}}"}]},{G:"div",S:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Ha("ytp-gated-actions-overlay-background");this.u=this.Ha("ytp-gated-actions-overlay-button-container");this.j=[];this.T(this.Ha("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.Qa("onCloseMiniplayer")});
this.hide()};
iMa=function(a,b){var c=0,d={};for(c=0;c<b.length;d={dB:d.dB},c++){var e=a.j[c],f=void 0,h=null==(f=e)?void 0:f.element;h||(h=new g.X({G:"button",S:"ytp-gated-actions-overlay-button",Y:{tabindex:"0"},X:[{G:"div",S:"ytp-gated-actions-overlay-button-title",Aa:"{{buttonText}}"}]}),g.H(a,h),h.Ja(a.u),e={element:h});d.dB=g.Q(b[c],g.hMa);var l=f=void 0,m=void 0,n=(null==(f=d.dB)?void 0:f.title)||(null==(l=d.dB)?void 0:null==(m=l.titleFormatted)?void 0:m.content)||"";h.update({buttonText:n});e.listener&&
h.Mc(e.listener);e.listener=h.Ta("click",function(p){return function(){var q,t=g.Q(null==(q=p.dB)?void 0:q.onTap,g.UQ);t&&a.api.Qa("innertubeCommand",t)}}(d));
a.j[c]=e}for(;c<a.j.length;)a.j.pop().element.dispose()};
jMa=function(a){hT.call(this,a);var b=this;this.events=new g.PK(a);g.H(this,this.events);this.N("enable_courses_player_overlay_purchase")&&(this.j=new gMa(this.api),g.H(this,this.j),this.events.T(a,"videodatachange",function(){var c,d=null==(c=b.api.getVideoData())?void 0:c.R2;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;iMa(c,d.actionButtons||[]);c.show()}else c.hide()}),g.XS(this.api,this.j.element,4))};
wT=function(a){hT.call(this,a);var b=this;this.events=new g.PK(a);g.H(this,this.events);g.QM(a.W())&&(BS(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)}),BS(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)}))};
kMa=function(a,b,c,d){var e=1E3*a.api.getCurrentTime()<c?1:-1;b.zE(e,d);a.api.seekTo(c/1E3)};
xT=function(a){hT.call(this,a);var b=this;this.u=new Map;this.B=this.j=void 0;this.compositeVideoState=null;this.events=new g.PK(a);g.H(this,this.events);this.events.T(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.Q(l.compositeVideoOverlay,lMa),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.IJ({top:d.topLeftCornerY,right:1-d.topLeftCornerX-d.width,bottom:1-d.topLeftCornerY-d.height,left:d.topLeftCornerX})});
this.events.T(a,"videodatachange",function(c){var d=b.api.getVideoData();b.j=void 0;b.u.clear();b.api.Te("compositeembargo",1);var e=null==d?void 0:d.SP.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==e?0:e.length)?mMa(b,e.filter(function(f){return nMa(b,f)})):(null==d?0:d.cueRanges)&&mMa(b,d.cueRanges.filter(function(f){return nMa(b,f)}));
"dataupdated"===c&&(null==d?void 0:d.compositeLiveStatusToken)!==b.B&&(b.B=null==d?void 0:d.compositeLiveStatusToken,b.api.po())});
this.events.T(a,g.PG("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)!==c.id&&(b.api.Vn(!0),b.u.has(c.id))){var e=b.u.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.Br!==f&&(d.Br=f,b.api.po());oMa(b,c)}}});
this.events.T(a,g.QG("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)===c.id&&(b.api.Vn(!1),b.u.has(c.id))){if(c=b.api.getVideoData())c.Br=void 0;b.api.po();oMa(b)}});
this.events.T(a,"heartbeatRequest",function(c){null!==b.compositeVideoState&&(c.playbackState||(c.playbackState={}),c.playbackState.compositeVideoState=b.compositeVideoState)});
a.N("html5_cut_vss_segment_on_audio_change")&&this.events.T(a,"onPlaybackAudioChange",function(){b.api.po()});
BS(a,"setCompositeParam",function(c){b.compositeVideoState=c})};
oMa=function(a,b){var c;(null==(c=a.j)?void 0:c.id)!==(null==b?void 0:b.id)&&(a.j&&(a.u.delete(a.j.id),a.api.Mp([a.j],1)),a.j=b)};
mMa=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.C),d.length&&(a.u.set(f,d),a.api.addUtcCueRange(f,c,e,"compositeembargo",!1)))}};
nMa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.C)};
pMa=function(a){hT.call(this,a);var b=this;BS(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()})};
qMa=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};
rMa=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++}};
sMa=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.zT=function(a,b,c,d){b=void 0===b?!1:b;d=void 0===d?!1:d;g.SG.call(this);this.K=!1;this.C=new lB(this);this.D=this.J=null;this.B=this.u=!1;g.H(this,this.C);this.target=a;this.j=b;this.V=c||a;this.K=d;b&&(g.Qc&&this.target.setAttribute("draggable","true"),this.target.style.touchAction="none");yT(this)};
AT=function(a){g.nB(a.C,!a.j)};
yT=function(a){a.D=null;a.J=null;a.T(BT("over"),a.nw);a.T("touchstart",a.GK);a.j&&a.T(BT("down"),a.u6)};
tMa=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier===a.J)return d}return null};
BT=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
vMa=function(a,b){g.X.call(this,{G:"div",Na:["ytp-overlay","ytp-speedmaster-overlay"],X:[{G:"div",S:"ytp-speedmaster-user-edu",Aa:b}]});this.I=a;this.j=this.Ha("ytp-speedmaster-user-edu");this.I.xb(this.j,this,173040,!0);uMa(this)};
uMa=function(a){g.Un(a.j,"display","none");a.I.Za(a.j,!1)};
DT=function(a){hT.call(this,a);var b=this;this.C=this.B=!1;this.Va=g.xL(this.api.W().experiments,"speedmaster_touch_activation_ms")||500;this.Ba=g.xL(this.api.W().experiments,"speedmaster_cancellation_movement_dp")||10;this.Oa=g.xL(this.api.W().experiments,"speedmaster_playback_rate")||2;this.N("web_enable_speedmaster")&&g.QM(this.api.W())&&(this.u=new g.PK(a),g.H(this,this.u),this.speedmasterUserEdu=new vMa(a,this.D),g.H(this,this.speedmasterUserEdu),g.XS(this.api,this.speedmasterUserEdu.element,
4),this.j=new g.zT(this.api.qb().Ny,!0),g.H(this,this.j),this.delay=new g.Kq(this.Fa,this.Va,this),g.H(this,this.delay),this.u.T(a,"videodatachange",function(c,d){var e,f;if(c=null==(e=d.Ad)?void 0:null==(f=e.playerOverlays)?void 0:f.playerOverlayRenderer){var h,l;(e=null==(h=g.Q(c.speedmasterUserEdu,wMa))?void 0:null==(l=h.bodyText)?void 0:l.content)&&e!==b.D&&(b.speedmasterUserEdu.j.textContent=e);b.D=e;CT(b)}},this),this.u.T(a,"presentingplayerstatechange",function(){CT(b)},this),this.u.T(a,"autonavvisibility",
function(){CT(b)},this),this.api.kp().subscribe("visibilitystatechange",function(){CT(b)}),this.u.T(a,"rootnodemousedown",function(c){b.oa=c}),this.N("web_speedmaster_spacebar_control")&&(this.u.T(a,"keyboardserviceglobalkeydown",function(c,d){b.ea=d;
xMa(b,c,!0)},this),this.u.T(a,"keyboardserviceglobalkeyup",function(c){xMa(b,c,!1)},this)))};
ET=function(a){a.delay.stop();a.j.unsubscribe("dragmove",a.K,a);a.j.unsubscribe("dragend",a.J,a);a.B&&(a.B=!1,uMa(a.speedmasterUserEdu),a.api.setPlaybackRate(a.Ga),a.api.showControls(),a.Ma&&a.api.pauseVideo())};
xMa=function(a,b,c){c?32!==b.keyCode||b.repeat||a.B||!a.C||g.Lq(a.delay):ET(a)};
CT=function(a){var b,c;var d=!!a.D&&!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.Pf()&&2!==a.api.getPresentingPlayerType()&&!g.yP(a.api.Nb(),2)&&!(null==(c=g.GS(a.api))?0:c.kh())&&!g.US(a.api)&&yMa(a.api.kp());a.C!==d&&(a.C=d,a.C?a.j.subscribe("dragstart",a.qa,a):(a.j.unsubscribe("dragstart",a.qa,a),a.j.unsubscribe("dragmove",a.K,a),a.j.unsubscribe("dragend",a.J,a),ET(a)))};
zMa=function(a){hT.call(this,a);var b=this;this.events=new g.PK(a);g.H(this,this.events);a.N("html5_enable_ssap")&&(BS(this.api,"addPlayerResponseForAssociation",function(c){b.api.addPlayerResponseForAssociation(c)}),BS(this.api,"finishSegmentByCpn",function(c,d){return b.api.finishSegmentByCpn(c,d)}),this.events.T(a,"modulecreated",function(c){if("ad"===c&&(c=b.api.getVideoData())&&(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=Rz(e),b.api.addPlayerResponseForAssociation(c)}}}))};
FT=function(a,b,c){g.yb.call(this,b,a);this.j=c};
g.GT=function(a){WP.call(this);var b=this;this.j=a;this.J={};this.listener=function(c){b.dispatchEvent(new FT(b,c.type,c))}};
CMa=function(a){var b=a.td(),c=a.getVideoData(),d=a.Qe(),e=d.Bb(),f=a.W(),h=b.SC(),l=b.LQ,m=8*OS(l,"bandwidth")/1024,n=OS(l,"networkactivity")/1024,p=OS(l,"bufferhealth");if(b.Oe){var q=b.videoData.useInnertubeDrmService()?"IT/":"";q+=b.Oe.j.Kh()+"/"+$H(b.Ev());q+="/"+b.Oe.Kh()}else q="";var t=q,v=b.getPlayerState().state.toString(16),y=d.getCurrentTime().toFixed(2),A=VK(d.Jh(),",",3);q="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(q+=c.UK?"DS":"SS");q+="DAI, ";var E=AMa(b);E&&(q+=E)}SO(c)?
(q+="SSAP, ",(E=AMa(b))&&(q+=E)):nO(c)&&(q+="SABR, ");if(c.fetchType){switch(c.fetchType){case "onesie":E="o";break;case "gp":E="gp";break;default:E="gvi"}q+="vd:"+E+", "}f.ob&&(q=f.ob.j?q+"wa, ":q+"w, ");q+="s:"+v+" t:"+y+" b:"+A+" ";d.Xg()&&(q+="S");d.Bo()&&(q+="P");d.ji()&&(q+="E");a.isOrchestrationLeader()&&(q+=" L");(d=b.HC())&&(q+=" l:"+d.toFixed());d=b.getCurrentTime();f=c.fF;d&&d>f.start&&d<f.end&&(q+=" as");d=q;q=g.Nz(KH)("_start",void 0);f=[];v=g.u(["pl_i","vir","or_p","orfb","pbs"]);for(y=
v.next();!y.done;y=v.next())y=y.value,(A=g.Nz(KH)(y,void 0))&&q&&(A-=q,f.push(y+":"+Math.round(A)));q=f.join(" ");f=g.PM();v=g.WS(a).H5;y=c.B&&!c.B.j?"display:none":"";if((A=c.clientPlaybackNonce)&&16==A.length){E=0;for(var K="",I=0;10>I;I++)if(E=(E<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(A.charAt(I)),4==I%5){for(var F="",S=0;6>S;S++)F="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(E&31)+F,E>>=5;K+=F}A=K.substr(0,4)+" "+K.substr(4,4)+" "+K.substr(8,4)}else A="";m=
{video_id_and_cpn:String(c.videoId)+" / "+A,codecs:"",dims_and_frames:"",bandwidth_kbps:m.toFixed(0)+" Kbps",buffer_health_seconds:p.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:t?"":"display:none",drm:t,debug_info:d,extra_debug_info:"",bandwidth_style:y,network_activity_style:y,network_activity_bytes:n.toFixed(0)+" KB",shader_info:v,shader_info_style:v?"":"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=Uza(c);var Y;n=(null==(Y=c.C)?0:Y.audio.j)?"DRC":Math.round(a*h)+"%";Y=Math.round(a)+"% / "+n;a=c.Ri.toFixed(1);isFinite(Number(a))&&(Y+=" (content loudness "+a+"dB)");m.volume=Y;m.resolution=e.videoWidth+"x"+e.videoHeight;if(Y=c.u)if(e=Y.video)a=e.fps,1<a&&(m.resolution+="@"+a),(a=g.HT(b))&&a.video&&(m.resolution+=" / "+a.video.width+"x"+a.video.height,1<a.video.fps&&(m.resolution+="@"+a.video.fps)),m.codecs=BMa(Y),
!c.C||Y.audio&&Y.video?Y.iX&&(m.codecs+=" / "+Y.iX+"A"):m.codecs+=" / "+BMa(c.C),e.u||e.primaries?(Y=e.u||"unknown","smpte2084"===Y?Y+=" (PQ)":"arib-std-b67"===Y&&(Y+=" (HLG)"),m.color=Y+" / "+(e.primaries||"unknown"),m.color_style=""):m.color_style="display:none";e=c.isLivePlayback;Y=c.Re;m.live_mode_style=e||Y?"":"display:none";m.live_latency_style=e?"":"display:none";if(Y)m.live_mode="Post-Live"+(oO(c)?" Manifestless":"");else if(e){Y=OS(l,"livelatency");m.live_latency_secs=Y.toFixed(2)+"s";e=
oO(c)?"Manifestless, ":"";c.kd&&(e+="Windowed, ");a="Uncertain";if(0<=Y&&120>Y)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;(Y=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+
Y.sequence);m.live_mode=e}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples=NS(l,"bandwidth");m.network_activity_samples=NS(l,"networkactivity");m.live_latency_samples=NS(l,"livelatency");m.buffer_health_samples=NS(l,"bufferhealth");b=g.TO(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";kO(c,"web_player_release_debug")?
(m.release_name="youtube.player.web_20230723_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};
BMa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
IT=function(a,b,c,d,e){g.X.call(this,{G:"div",S:"ytp-horizonchart"});this.J=b;this.sampleCount=c;this.C=d;this.D=e;this.index=0;this.heightPx=-1;this.B=this.u=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.J+"em"};
JT=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.bf("CANVAS"),a.u=c.getContext("2d")}catch(l){}if(a.u){var d=a.j*a.sampleCount;a.B=c;a.B.width=d;a.B.style.width=d+"px";a.element.appendChild(a.B)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c<a.sampleCount;c++)d=g.bf("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.u&&(c=1<(window.devicePixelRatio||1)?2:1,a.B.height=a.heightPx*c,a.B.style.height=
a.heightPx+"px",a.u.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.C.length&&c.C[d+1]<f;)d++;f=Math.min(1,(f-c.C[d])/(c.C[d+1]-c.C[d]));if(c.u)c.u.fillStyle=c.D[d],c.u.fillRect(e*c.j,0,c.j,c.heightPx),c.u.fillStyle=c.D[d+1],c.u.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.D[d+1];e.style.borderTop=
"solid "+(c.heightPx-f)+"px "+c.D[d]}a.index=(a.index+1)%a.sampleCount}b=a.index;a.u?a.u.clearRect(b*a.j,0,a.j,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
KT=function(a){var b=null;b={G:"button",Na:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],Y:{title:"close"},Aa:"[X]"};g.X.call(this,{G:"div",Na:["html5-video-info-panel","ytp-sfn"],X:[b,{G:"div",Na:["html5-video-info-panel-content","ytp-sfn-content"],X:[{G:"div",X:[{G:"div",Aa:"Video ID / sCPN"},{G:"span",Aa:"{{video_id_and_cpn}}",S:"ytp-sfn-cpn"}]},{G:"div",X:[{G:"div",Aa:"Viewport / Frames"},{G:"span",Aa:"{{dims_and_frames}}"}]},{G:"div",X:[{G:"div",Aa:"Current / Optimal Res"},{G:"span",
Aa:"{{resolution}}"}]},{G:"div",X:[{G:"div",Aa:"Volume / Normalized"},{G:"span",Aa:"{{volume}}"}]},{G:"div",X:[{G:"div",Aa:"Codecs"},{G:"span",Aa:"{{codecs}}"}]},{G:"div",Y:{style:"{{shader_info_style}}"},X:[{G:"div",Aa:"Shader Info"},{G:"span",Aa:"{{shader_info}}"}]},{G:"div",Y:{style:"{{color_style}}"},X:[{G:"div",Aa:"Color"},{G:"span",Aa:"{{color}}"}]},{G:"div",Y:{style:"{{drm_style}}"},X:[{G:"div",Aa:"Protected"},{G:"span",Aa:"{{drm}}"}]},{G:"div",Y:{style:"{{bandwidth_style}}"},X:[{G:"div",Aa:"Connection Speed"},
{G:"span",X:[{G:"span",Aa:"{{bandwidth_chart}}"},{G:"span",Aa:"{{bandwidth_kbps}}"}]}]},{G:"div",Y:{style:"{{network_activity_style}}"},X:[{G:"div",Aa:"Network Activity"},{G:"span",X:[{G:"span",Aa:"{{network_activity_chart}}"},{G:"span",Aa:"{{network_activity_bytes}}"}]}]},{G:"div",X:[{G:"div",Aa:"Buffer Health"},{G:"span",X:[{G:"span",Aa:"{{buffer_health_chart}}"},{G:"span",Aa:"{{buffer_health_seconds}}"}]}]},{G:"div",Y:{style:"{{live_latency_style}}"},X:[{G:"div",Aa:"Live Latency"},{G:"span",X:[{G:"span",
Aa:"{{live_latency_chart}}"},{G:"span",Aa:"{{live_latency_secs}}"}]}]},{G:"div",Y:{style:"{{live_mode_style}}"},X:[{G:"div",Aa:"Live Mode"},{G:"span",Aa:"{{live_mode}}"}]},{G:"div",Y:{style:"{{playback_categories_style}}"},X:[{G:"div",Aa:"Playback Categories"},{G:"span",Aa:"{{playback_categories}}"}]},{G:"div",X:[{G:"div",Aa:"Mystery Text"},{G:"span",Aa:"{{debug_info}}"}]},{G:"div",Y:{style:"{{extra_debug_info_style}}"},X:[{G:"div",Aa:""},{G:"span",X:[{G:"span",Aa:"{{extra_debug_info}}"}]}]},{G:"div",
X:[{G:"div",Aa:"Date"},{G:"span",Aa:"{{date}}"}]},{G:"div",Y:{style:"{{cotn_and_local_media_style}}"},X:[{G:"div",Aa:"COTN / Local Media"},{G:"span",Aa:"{{cotn_and_local_media}}"}]},{G:"div",Y:{style:"{{release_style}}"},X:[{G:"div",Aa:"Player Release"},{G:"span",Aa:"{{release_name}}"}]}]}]});this.bb=a;b?(a=this.Ha("ytp-sfn-close"),this.T(a,"click",this.hide)):this.T(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.D={};this.j=new IT(300,1,150,a,b);g.H(this,this.j);this.updateValue("bandwidth_chart",this.j);this.B=new IT(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.H(this,this.B);this.updateValue("live_latency_chart",this.B);this.u=new IT(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.H(this,this.u);this.updateValue("buffer_health_chart",this.u);this.C=new IT(300,1,150,c,b);g.H(this,this.C);this.updateValue("network_activity_chart",
this.C);this.delay=new g.Kq(this.Sa,500,this);g.H(this,this.delay)};
FMa=function(a){hT.call(this,a);var b=this;BS(a,"getStatsForNerds",function(){return CMa(b.api)});
CS(a,"showVideoInfo",function(){DMa(b,!0)});
CS(a,"hideVideoInfo",function(){DMa(b,!1)});
CS(a,"isVideoInfoVisible",function(){return EMa(b)})};
DMa=function(a,b){var c=EMa(a);a.j||(a.j=new KT(a.api),g.H(a,a.j),g.XS(a.api,a.j.element,4));g.$Q(a.j,b);var d=SS(a.api.Fb());d&&d.loaded&&c!==b&&d.UQ();b&&a.api.ya("sfn",{},!0)};
EMa=function(a){var b;return!(null==(b=a.j)||!b.Gb)};
LT=function(){g.G.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.Iq(this.j,null,this);g.H(this,this.delay)};
GMa=function(a,b){if("path"===b.G)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=GMa(a,d)))return d}};
KMa=function(a,b,c){c=GMa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=WQ();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=HMa(e),m=HMa(c);IMa(a,function(n){d.setAttribute("d",JMa(l,m,n))},200)};
IMa=function(a,b,c){a.u=b;a.startTime=(0,g.mC)();a.duration=c;a.j()};
HMa=function(a){var b=[];a=a.match(LMa);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};
JMa=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};
MT=function(a,b){g.X.call(this,{G:"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 LT;this.tooltip=b.Hc();g.H(this,this.transition);this.T(a,"sizestylechange",this.Sa);this.T(a,"fullscreentoggled",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);a.xb(this.element,this,139116);this.Sa();this.Ta("click",this.onClick);g.tb(this,
g.kT(this.tooltip,this.element))};
MMa=function(a){hT.call(this,a);var b=this;this.events=new g.PK(a);g.H(this,this.events);a.W().yk||this.events.T(a,"standardControlsInitialized",function(){var c=g.GS(a);b.button=new MT(a,c);g.H(b,b.button);c.vy(b.button)})};
NMa=function(a){hT.call(this,a);var b=this;CS(this.api,"getPlaybackRate",function(){return b.api.getPlaybackRate()});
CS(this.api,"setPlaybackRate",function(c){"number"===typeof c&&b.api.setPlaybackRate(c)})};
NT=function(a){function b(e){e="https://jnn-pa.googleapis.com"+e;return c?g.Yl(e,"$httpHeaders",d):e}
var c=void 0===c?!1:c;this.qf=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.u=b("/$rpc/google.internal.waa.v1.Waa/Create");this.B=b("/$rpc/google.internal.waa.v1.Waa/GenerateIT")};
PMa=function(a,b){DN(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(CN(a,112),CN(a,c<<1^c>>31));DN(a,16,b.V5);DN(a,17,b.detailedNetworkType);DN(a,18,b.Q3);DN(a,19,b.P3);DN(a,21,b.A$);DN(a,23,b.E3);DN(a,28,b.B9);DN(a,29,b.P$);DN(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(CN(a,285),BN(a,4),d=0;4>d;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}DN(a,36,b.q4);
HN(a,38,b.mediaCapabilities,OMa,3);DN(a,39,b.O$);DN(a,40,b.NU);DN(a,44,b.playerState);EN(a,46,b.n4);DN(a,48,b.j$);EN(a,56,b.r6);DN(a,57,b.V3);EN(a,58,b.Sn);DN(a,59,b.ij)};
QMa=function(a){return{EL:yN(a,2),videoId:wN(a,3),sR:uN(a,4)}};
RMa=function(a){return{EH:yN(a,1)}};
OMa=function(a,b){var c;if(b.MJ)for(c=0;c<b.MJ.length;c++)HN(a,1,b.MJ[c],SMa,1);if(b.YF)for(c=0;c<b.YF.length;c++)HN(a,2,b.YF[c],TMa,1);DN(a,5,b.B5)};
TMa=function(a,b){DN(a,1,b.ST);DN(a,2,b.numChannels);DN(a,3,b.lw);DN(a,6,b.y$)};
SMa=function(a,b){DN(a,1,b.r_);DN(a,3,b.maxHeight);DN(a,4,b.maxWidth);DN(a,11,b.maxFramerate);DN(a,12,b.lw);EN(a,15,b.QN)};
WMa=function(a){return{t9:uN(a,1),itag:wN(a,3),oY:xN(a,4,UMa),hk:uN(a,5),xbb:uN(a,7),xtags:wN(a,15),n6:xN(a,23,VMa),Iz:xN(a,34,RMa)}};
UMa=function(a){return{iv:vN(a,5),N5:Wxa(a,7)}};
VMa=function(a){return{videoId:wN(a,2)}};
YMa=function(a,b){HN(a,2,b.Hy,PMa,3);HN(a,3,b.LN,XMa,3);FN(a,4,b.onesieUstreamerConfig);FN(a,9,b.qo)};
ZMa=function(a){return{E9:Wxa(a,8)}};
$Ma=function(a){return{kJ:uN(a,1),lJ:uN(a,2),seekSource:uN(a,3)}};
aNa=function(a,b){DN(a,1,b.Di);DN(a,2,b.hC);DN(a,3,b.Vr)};
bNa=function(a){return{Di:uN(a,1),hC:uN(a,2),Vr:uN(a,3)}};
XMa=function(a,b){FN(a,2,b.OU);FN(a,5,b.encryptedClientKey);FN(a,6,b.iv);FN(a,7,b.dW);EN(a,10,b.dZ);EN(a,13,b.MU);EN(a,14,b.qM);FN(a,16,b.baa)};
cNa=function(a,b){GN(a,1,b.name);GN(a,2,b.value)};
dNa=function(a){return{minBandwidthBytesPerSec:uN(a,1),minReadaheadMs:uN(a,2)}};
eNa=function(a,b){GN(a,1,b.url);var c;if(b.BN)for(c=0;c<b.BN.length;c++)HN(a,2,b.BN[c],cNa,3);FN(a,3,b.postBody);EN(a,4,b.J9);EN(a,6,b.UE)};
fNa=function(a){return{iY:uN(a,1),fW:uN(a,2),body:vN(a,4)}};
gNa=function(a){return{startMinReadaheadPolicy:zN(a,1,dNa),resumeMinReadaheadPolicy:zN(a,2,dNa)}};
hNa=function(a,b){var c;if(b.pL)for(c=0;c<b.pL.length;c++)GN(a,1,b.pL[c]);FN(a,2,b.z3);GN(a,3,b.Ms);DN(a,4,b.rZ);DN(a,5,b.qaa);GN(a,6,b.raa)};
g.iNa=function(a,b){HN(a,1,b.Hy,PMa,1);FN(a,3,b.videoPlaybackUstreamerConfig);HN(a,6,b.NE,hNa,3)};
OT=function(a){hT.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.vu=this.Cb=null;this.C=!1;this.u=null;var c=a.W().webPlayerContextConfig;this.events=new g.PK(a);g.H(this,this.events);this.events.T(a,"spsumpstatuschange",function(d){b.vu=d;if(2===b.vu||3===b.vu)if(b.C&&!b.u&&jNa(b),3===b.vu){b.api.QH(!0);var e;null==(e=b.u)||e.then(function(){b.api.QH(!1)})}});
this.useLivingRoomPoToken=!(null==c||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.Cb=a.di();var d=(b.N("html5_generate_session_po_token")||b.N("html5_generate_content_po_token"))&&!b.useLivingRoomPoToken;try{d&&(b.Cb.Fi("pot_isc"),kNa(b),b.N("html5_webpo_idle_priority_job")?g.JB(g.LB(),function(){lNa(b)}):lNa(b))}catch(e){e instanceof Error&&g.tG(e)}});
a.wQ(this)};
mNa=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_web_po_prefetch")?"0wjYMhvxbLZ78HRVBg8V":a.N("html5_web_po_token_caching")?"nJH2JWixsHocEBryELkG":a.N("html5_generate_content_po_token")?"cpYJehUPFA4JYTzKNoEQ":OL(b.experiments,
"html5_mock_content_binding_for_session_token")?"Lw8FZiO1SU2A58z2DDu7":"O43z0dpjhgX20SCx4KAo";b=g.JM(b)?c:d;a.N("html5_placeholder_po_tokens")&&(b="2ZCPXHYZSpebQXqOYNtj");return b};
kNa=function(a){function b(e){g.tG(e)}
var c=mNa(a,a.api.W());try{var d=a.N("html5_po_token_enable_webpo_experimental")?new NT(c):fha(c);c={qf:c,onError:b,Yy:d};a.N("html5_web_po_prefetch")&&(c.NG=!0);a.j=new Im(c);a.N("html5_web_po_token_caching")&&mha(a.j)}catch(e){e instanceof Error&&g.tG(e)}};
lNa=function(a){var b=a.api.W();a.Cb.Fi("pot_ist");var c;null==(c=a.j)||c.start();a.N("html5_generate_content_po_token")||(PT(a),jNa(a),b=g.xL(b.experiments,"html5_session_po_token_interval_time_ms")||0,0<b&&(a.B=g.cA(function(){PT(a)},b)),a.C=!0)};
PT=function(a){var b,c,d,e;g.Ha(function(f){if(!a.N("html5_generate_session_po_token")||a.useLivingRoomPoToken)return f.return();b=a.api.W();c=g.Fz("EOM_VISITOR_DATA")||g.Fz("VISITOR_DATA");d=b.Oo?b.datasyncId:c;e=OL(b.experiments,"html5_mock_content_binding_for_session_token")||b.livingRoomPoTokenId||d;b.pg=nNa(a,e);g.xa(f)})};
nNa=function(a,b){if(!a.j)return"";try{var c=a.j.isReady();c?a.Cb.Fi("pot_cms"):a.Cb.Fi("pot_csms");a:{var d=a.j;b={Oy:b};var e,f=null!=(e=d.j)?e:new Hm(d.logger,d.B,d.state),h=new Rk(d.logger,f.B);try{if(d.isDisposed())throw new um(21,"BNT:disposed");var l=f.D(b);break a}catch(q){h=new Rk(d.logger,"e");var m=q instanceof um?q:new um(5,q);d.logger.uD(m.code);var n;null==(n=d.onError)||n.call(d,m);f=new Am(d.logger,m);l=f.D(b);break a}finally{h.done()}l=void 0}if(c){if(a.Cb.Fi("pot_cmf"),a.N("html5_use_sps_ump_part")){var p;
null==(p=a.u)||p.resolve();a.u=null}}else a.Cb.Fi("pot_csmf");return l}catch(q){return g.tG(q),""}};
jNa=function(a){a.j&&(a.N("html5_use_sps_ump_part")&&(a.u=new tM),a.j.ready().then(function(){a.Cb.Fi("pot_if");PT(a)}))};
oNa=function(a){hT.call(this,a);var b=this;this.freePreviewWatchedDuration=0;this.freePreviewUsageDetails=[];this.events=new g.PK(a);g.H(this,this.events);g.SM(a.W())&&(this.events.T(a,"heartbeatRequest",function(c){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}}),BS(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=c}),BS(a,"setFreePreviewUsageDetails",function(c){b.freePreviewUsageDetails=c}))};
pNa=function(a){g.G.call(this);this.features=[];this.features.push(new iT(a),new pMa(a),new OT(a),new tT(a),new KLa(a),new xT(a),new FMa(a),new NMa(a));this.features.push(new oNa(a),new zMa(a));this.features.push(new bMa(a),new vT(a),new jMa(a),new eMa(a),new fMa(a),new PLa(a),new wT(a),new DT(a),new MMa(a));a=g.u(this.features);for(var b=a.next();!b.done;b=a.next())g.H(this,b.value)};
QT=function(){this.u=this.j=NaN};
RT=function(a,b,c){NH(a,c)||SH(a,b,c);NH(a,"video_to_ad")||SH(a,b,"video_to_ad");NH(a,"ad_to_video")||SH(a,b,"ad_to_video");NH(a,"ad_to_ad")||SH(a,b,"ad_to_ad")};
qNa=function(a,b){this.Z=a;this.timerName="";this.B=!1;this.u=NaN;this.C=new QT;this.j=b||null;this.B=!1};
rNa=function(a,b,c){var d=g.CM(b.Ia)&&!b.Ia.K;if(b.Ia.Gl&&(zM(b.Ia)||"shortspage"===b.Ia.Fa||XM(b.Ia)||d)&&!a.B){a.B=!0;a.J=b.clientPlaybackNonce;g.Fz("TIMING_ACTION")||Ez("TIMING_ACTION",a.Z.csiPageType);a.Z.csiServiceName&&Ez("CSI_SERVICE_NAME",a.Z.csiServiceName);if(a.j){d=a.j.di();for(var e=g.u(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,RH(f,d[f],a.timerName);d=a.j.tG;e=g.u(Object.keys(d));for(f=e.next();!f.done;f=e.next())f=f.value,QH(f,d[f],a.timerName);d=a.j;d.u={};d.tG={}}QH("yt_pvis",
g.Nz(IH)(),a.timerName);QH("yt_pt","html5",a.timerName);a.D!==b.clientPlaybackNonce||Number.isNaN(a.u)||(NH("_start",a.timerName)?c=g.Nz(KH)("_start",a.timerName)+a.u:g.tG(new g.EB("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!NH("pbs",a.timerName)&&a.tick("pbs",c)}};
ST=function(a){vsa();tsa();a.timerName=""};
sNa=function(a){if(a.j){var b=a.j;b.u={};b.tG={}}a.B=!1;a.D=void 0;a.u=NaN};
tNa=function(a,b){g.SG.call(this);this.Ia=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.V={};this.u=0;if(a=b.session_data)this.sessionData=Pz(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 MN("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.fya(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.V=mN(b,"playlist_");this.B=(b=b.thumbnail_ids)?b.split(","):[]};
uNa=function(a){return!!(a.playlist||a.list||a.api)};
vNa=function(a){var b=a.index+1;return b>=a.length?0:b};
wNa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.TT=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.eO(a.Ia,b),g.H(a,e),e.yk=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
xNa=function(a,b){a.index=g.pe(b,0,a.length-1);a.startSeconds=0};
yNa=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.TT(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.u++;a.j&&a.j()}};
BNa=function(a,b){var c,d,e,f,h,l,m;return g.Ha(function(n){if(1==n.j){c=g.cS();var p=a.W(),q={context:g.yS(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};p=p.embedConfig;var t=b.docid||b.video_id||b.videoId||b.id;if(!t){t=b.raw_embedded_player_response;if(!t){var v=b.embedded_player_response;v&&(t=JSON.parse(v))}if(t){var y,A,E,K,I,F;t=(null==(F=g.Q(null==(y=t)?void 0:null==(A=y.embedPreview)?void 0:null==(E=A.thumbnailPreviewRenderer)?void 0:null==(K=E.playButton)?
void 0:null==(I=K.buttonRenderer)?void 0:I.navigationEndpoint,g.qO))?void 0:F.videoId)||null}else t=null}y=(y=t)?y:void 0;A=a.playlistId?a.playlistId:b.list;E=b.listType;if(A){var S;"user_uploads"===E?S={username:A}:S={playlistId:A};zNa(p,y,b,S);q.playlistRequest=S}else b.playlist?(S={templistVideoIds:b.playlist.toString().split(",")},zNa(p,y,b,S),q.playlistRequest=S):y&&(S={videoId:y},p&&(S.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=S);d=q;e=g.QR(ANa);g.ya(n,2);return g.z(n,g.EQ(c,d,
e),4)}if(2!=n.j)return f=n.u,h=a.W(),b.raw_embedded_player_response=f,h.Ya=RA(b,g.xM(h)),h.B="EMBEDDED_PLAYER_MODE_PFL"===h.Ya,f&&(l=f,l.trackingParams&&yQ(l.trackingParams)),n.return(new g.eO(h,b));m=g.Aa(n);m instanceof Error||(m=Error("b259802748"));g.sG(m);return n.return(a)})};
zNa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.VT=function(a,b){UT.get(a);UT.set(a,b)};
g.WT=function(a){g.SG.call(this);this.loaded=!1;this.player=a};
CNa=function(){this.u=[];this.j=[]};
g.XT=function(a,b){return b?a.j.concat(a.u):a.j};
g.ZT=function(a,b){switch(b.kind){case "asr":DNa(b,a.u);break;default:DNa(b,a.j)}};
DNa=function(a,b){g.Db(b,function(c){return a.equals(c)})||b.push(a)};
g.$T=function(a){g.G.call(this);this.Z=a;this.j=new CNa;this.C=[]};
g.aU=function(a,b,c){g.$T.call(this,a);this.audioTrack=c;this.u=null;this.B=!1;this.C=b.PL;this.B=g.MO(b)};
ENa=function(){this.j=10;this.cj=!1};
FNa=function(a,b){b=void 0===b?{}:b;var c=void 0===b.ZC?!1:b.ZC,d=new ENa;d.cj=(void 0===b.hasSubfragmentedFmp4?!1:b.hasSubfragmentedFmp4)||c;d.j=g.xL(a.experiments,"html5_streaming_xhr_time_based_consolidation_ms")||d.j;return d};
g.GNa=function(a){this.Ia=a;this.K=new ENa;this.Ko=this.Jo=!1;this.Lm=2;this.qa=20971520;this.Fa=8388608;this.oa=120;this.Va=3145728;this.md=this.Ia.N("html5_platform_backpressure");this.kb=62914560;this.xd=10485760;this.Om=g.xL(this.Ia.experiments,"html5_min_readbehind_secs");this.by=g.xL(this.Ia.experiments,"html5_min_readbehind_cap_secs");this.Zx=g.xL(this.Ia.experiments,"html5_max_readbehind_secs");this.tB=this.Ia.N("html5_trim_future_discontiguous_ranges");this.nj=this.Ia.N("html5_offline_reset_media_stream_on_unresumable_slices");
this.Wb=NaN;this.Yo=this.Gl=this.ax=2;this.Ma=2097152;this.Ve=0;this.Qo=1048576;this.Ec=!1;this.od=1800;this.Nm=this.Km=5;this.eb=15;this.Xf=1;this.J=1.15;this.V=1.05;this.Dm=1;this.Ho=!0;this.gs=!1;this.tp=.8;this.Ji=this.hc=!1;this.Li=6;this.B=!1;this.wk=g.xL(this.Ia.experiments,"html5_static_abr_resolution_shelf");this.rB=g.xL(this.Ia.experiments,"html5_top_shelf_format_byterate_factor")||1.2;this.Ri=g.xL(this.Ia.experiments,"html5_min_startup_buffered_media_duration_secs");this.Lo=g.xL(this.Ia.experiments,
"html5_post_interrupt_readahead");this.Io=!1;this.No=g.xL(this.Ia.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Br=100;this.Gh=10;this.gy=6;this.Il=this.Ia.experiments.sb("html5_clone_original_for_fallback_location");this.Pi=1;this.Bp=1.6;this.eh=!1;this.rb=g.xL(this.Ia.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.yk=g.xL(this.Ia.experiments,"html5_subsegment_readahead_timeout_secs");this.nB=g.xL(this.Ia.experiments,"html5_subsegment_readahead_min_buffer_health_secs");
this.xk=g.xL(this.Ia.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.oB=g.xL(this.Ia.experiments,"html5_subsegment_readahead_min_load_speed");this.Ep=g.xL(this.Ia.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.pB=g.xL(this.Ia.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Pm=15;this.Hm=1;this.kd=!1;this.aF=this.Ia.N("html5_restrict_streaming_xhr_on_sqless_requests");this.Xx=g.xL(this.Ia.experiments,"html5_max_headm_for_streaming_xhr");
this.qz=this.Ia.N("html5_pipeline_manifestless_allow_nonstreaming");this.yD=this.Ia.N("html5_prefer_server_bwe3");this.Ux=this.Ia.N("html5_last_slice_transition");this.qF=this.Ia.N("html5_store_xhr_headers_readable");this.Xj=!1;this.Oo=0;this.sj=2;this.Cp=this.If=!1;this.Im=g.xL(this.Ia.experiments,"html5_max_drift_per_track_secs");this.Fo=this.Ia.N("html5_no_placeholder_rollbacks");this.mB=this.Ia.N("html5_subsegment_readahead_enable_mffa");this.Je=this.Ia.N("html5_allow_video_keyframe_without_audio");
this.Xy=this.Ia.N("html5_enable_vp9_fairplay");this.Ap=g.xL(this.Ia.experiments,"html5_seek_on_current_time_gap_secs");this.nF=this.Ia.N("html5_seek_on_current_time_gap_cfl");this.Eo=this.Ia.N("html5_never_pause_appends");this.Zb=!0;this.Wd=this.Ya=this.Eb=!1;this.Kl=!0;this.xj=!1;this.j="";this.wx=1048576;this.Qd=[];this.Mx=this.Ia.N("html5_woffle_resume");this.Fl=this.Ia.N("html5_abs_buffer_health");this.Sx=this.Ia.N("html5_interruption_resets_seeked_time");this.Yx=g.xL(this.Ia.experiments,"html5_max_live_dvr_window_plus_margin_secs")||
46800;this.ea=!1;this.Nl=this.Ia.N("html5_explicitly_dispose_xhr");this.Po=!1;this.mx=!this.Ia.N("html5_encourage_array_coalescing");this.Em=!1;this.tE=this.Ia.N("html5_restart_on_unexpected_detach");this.ij=0;this.Ml="";this.vx=this.Ia.N("html5_disable_codec_for_playback_on_error");this.Qx=this.Ia.N("html5_filter_non_efficient_formats_for_safari");this.Ia.N("html5_format_hybridization");this.aB=this.Ia.N("html5_abort_before_separate_init");this.fF=DA();this.pF=this.Ia.N("html5_serialize_server_stitched_ad_request");
this.nx=this.Ia.N("html5_skip_buffer_check_seek_to_head");this.pd=!1;this.bB=this.Ia.N("html5_attach_po_token_to_bandaid");this.Mm=g.xL(this.Ia.experiments,"html5_max_redirect_response_length")||8192;this.jk=this.Ia.N("html5_rewrite_timestamps_for_webm");this.ob=this.Ia.N("html5_only_media_duration_for_discontinuities");this.pE=g.xL(this.Ia.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Ia.N("html5_onesie_live");this.uB=this.Ia.N("html5_onesie_premieres");this.yx=this.Ia.N("html5_drop_onesie_for_live_mode_mismatch");
this.iy=g.xL(this.Ia.experiments,"html5_onesie_live_ttl_secs")||8;this.Go=g.xL(this.Ia.experiments,"html5_attach_num_random_bytes_to_bandaid");this.oF=this.Ia.N("html5_self_init_consolidation");this.Ay=g.xL(this.Ia.experiments,"html5_onesie_request_timeout_ms")||3E3;this.C=!1;this.Ga=this.Ia.N("html5_ssdai_use_post_for_media")&&this.Ia.N("gab_return_sabr_ssdai_config");this.Xw=this.Ia.N("html5_use_post_for_media");this.wb=this.Ia.N("html5_use_live_ump_heartbeat");this.Fd=this.Ia.N("html5_use_sps_ump_part");
this.useUmp=this.Ia.N("html5_use_ump")||this.wb||this.Fd;this.Oa=this.Ba=!1;this.Mo=this.Ia.N("html5_prefer_drc");this.fE=this.Ia.N("html5_reset_primary_stats_on_redirector_failure");this.Ia.N("html5_remap_to_original_host_when_redirected");this.pg=this.u=!1;this.Dk=this.Ia.N("html5_server_playback_start_policy");this.jg=this.Ia.N("html5_enable_sabr_format_selection");this.qx=this.Ia.N("html5_iterative_seeking_buffered_time");this.Cl=this.Ia.N("html5_use_network_error_code_enums");this.tx=this.Ia.N("html5_disable_overlapping_requests");
this.Px=this.Ia.N("html5_fallback_to_cabr_on_net_bad_status");this.og=this.Ia.N("html5_enable_sabr_partial_segments");this.D=!1;this.ZA=this.Ia.N("html5_use_media_end_for_end_of_segment");this.Gw=this.Ia.N("html5_update_ctmp_rqs_logging");this.Gm=!this.Ia.N("html5_remove_deprecated_ticks");this.Wf=this.Ia.N("html5_disable_bandwidth_cofactors_for_sabr");this.enableServerDrivenRequestCancellation=this.Ia.N("html5_enable_server_driven_request_cancellation");this.Ox=this.Ia.N("html5_enable_sabr_request_timing");
this.Ll=this.Ia.N("html5_enable_server_format_filter");this.xx=this.Ia.N("html5_drc_edit_sync_workaround");this.Ia.N("html5_enable_sabr_readahead_features");this.Nx=this.Ia.N("html5_enable_lawnmower");this.sx=this.Ia.Id()?g.xL(this.Ia.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.Tx=g.xL(this.Ia.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.ey=g.xL(this.Ia.experiments,"html5_normal_latency_mffa_ms")||NaN;this.Ww=this.Ia.N("html5_use_goodput_request_for_probing");
this.sB=this.Ia.N("html5_treat_first_404_as_no_content");this.Wx=this.Ia.N("html5_live_defrag_only_h264_playbacks");this.Vx=this.Ia.N("html5_live_defrag_only_h264_formats");this.vB=this.Ia.N("html5_use_managed_media_source_buffering");this.CD=this.Ia.N("html5_record_now");this.Qc=this.Ia.N("html5_enable_sabr_sspr_fixes_v1");this.Vf=this.Ia.N("html5_consume_onesie_media_bytes_on_mismatch_for_sabr");this.Ke=this.xc=!1;this.Jl=g.xL(this.Ia.experiments,"html5_drm_byterate_soft_cap")};
HNa=function(a,b){1080<b.video.j&&!a.Jo&&(a.qa=36700160,a.Fa=5242880,a.Va=10485760,a.Ma=Math.max(4194304,a.Ma),a.Jo=!0);2160<b.video.j&&!a.Ko&&(a.qa=104857600,a.Wb=13107200,a.Ko=!0);0!==g.xL(a.Ia.experiments,"html5_samsung_kant_limit_max_bitrate")?b.isEncrypted()&&g.zA()&&g.xA("samsung")&&(g.xA("kant")||g.xA("muse"))&&(a.Wb=g.xL(a.Ia.experiments,"html5_samsung_kant_limit_max_bitrate")):b.isEncrypted()&&g.zA()&&g.xA("kant")&&(a.Wb=1310720);0!==a.Jl&&(a.Wb=a.Jl);b.Wb&&(a.Qo=Math.max(65536,Math.min(a.Ma,
5*b.Wb)))};
bU=function(a){return a.u&&a.jg};
cU=function(a){return a.u&&a.Dk&&a.pg&&a.playbackStartPolicy};
INa=function(a,b,c,d){a.pg&&(a.playbackStartPolicy=b,a.Ez=c,a.Dz=d)};
g.JNa=function(a,b){return MK(a.info.mimeType)?b?a.info.itag===b:!0:!1};
g.KNa=function(a,b){if(null!=a.j&&g.SM(b.W())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.Jc())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.JNa(c,"386")});
a=!!a.j&&!a.j.isManifestless&&Rua(a.j);return b||a};
g.dU=function(a,b,c,d,e,f){g.$T.call(this,a);this.videoId=c;this.hW=e;this.eventId=f;this.D={};this.u=null;a=d||g.Tz(b).hl||"";a=a.split("_").join("-");this.B=Uz(b,{hl:a})};
MNa=function(a){this.j=a;this.u=LNa(this)};
LNa=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.II(new Uint8Array(a.exports.memory.buffer,l,m));c+=8}console.log(e);return f}}}};
NNa=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)}};
ONa=function(a){var b;return g.Ha(function(c){return 1==c.j?(b={format:"RAW",method:"GET",responseType:"arraybuffer"},g.z(c,kA(a,b),2)):c.return(c.u.xhr.response)})};
PNa=function(a,b){b=void 0===b?!1:b;var c,d,e,f,h,l;return g.Ha(function(m){switch(m.j){case 1:return c=new MNa(!1),d=c.u,(b=b||!("instantiateStreaming"in WebAssembly))?(f=WebAssembly,h=f.instantiate,g.z(m,ONa(a),6)):g.z(m,WebAssembly.instantiateStreaming(fetch(a),d),4);case 4:e=m.u;m.Ka(3);break;case 6:return g.z(m,h.call(f,m.u,d),5);case 5:e=m.u;case 3:return l=e,c.module=l.module,c.instance=l.instance,c.exports=c.instance.exports,m.return(c)}})};
QNa=function(a){var b;return g.Ha(function(c){if(1==c.j)return b=new MNa(!0),b.B=a,g.z(c,a(b.u),2);b.exports=c.u;return c.return(b)})};
RNa=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.Ha(function(f){if(!d&&eU)try{return f.return(PNa(a,e))}catch(h){if(c)g.tG(h);else throw h;}return c&&b?f.return(QNa(b)):f.return(Promise.reject(Error("invalid arguments")))})};
SNa=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.Ha(function(h){if(1==h.j)return g.z(h,RNa(a,b,c,d,e),2);f=h.u;if(NNa(f))return h.return(f);throw Error((f.j?"asmjs":"wasm")+" sentinel failed");})};
TNa=function(a,b){g.G.call(this);this.I=a;this.j=b;this.tG={};this.u={};this.B=null;this.J=this.I.N("web_player_defer_modules");this.C=new Set;this.D=new g.PK(this);this.Se=new Map;g.H(this,this.D);this.D.T(a,"videodatachange",this.onVideoDataChange)};
g.fU=function(a){return a.Se.get("captions")};
ZNa=function(a,b){switch(b){case "ad":return UNa(a);case "annotations_module":return g.US(a.I)?a=!1:(b=a.I,a=b.W(),b=b.getVideoData(),a=a.B||b.BW||"3"===a.controlsType?!1:a.Ma.isEmpty()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.Va||!!g.KO(b)||!!g.Sza(b):!0),a;case "asmjs":return a.I.W().N("html5_allow_asmjs");case "creatorendscreen":return VNa(a);case "embed":return g.xM(a.I.W());case "endscreen":return g.WNa(a);case "heartbeat":return a.BQ();case "inline_preview":return a.I.W().showInlinePreviewUi;
case "kids":return KM(a.I.W());case "remote":return a.I.W().wk;case "miniplayer":return a.I.W().showMiniplayerUiWhenMinimized;case "music":return g.FM(a.I.W());case "offline":return a.I.W().xj;case "captions":return XNa(a);case "unplugged":return g.DM(a.I.W());case "ux":return a.I.W().eh;case "webgl":return YNa(a);case "ypc":return a.SE();case "ypc_clickwrap":return a=a.I.getVideoData(),a.Xf&&!a.XK;case "yto":return!!a.I.getVideoData().Fa.includes("yto");default:return g.sG(Error("Module descriptor "+
b+" does not match")),!1}};
gU=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.Se.get(b);if(!h||d)if(e||(e=function(){gU(a,b,c,d)}),f||(f=function(){a.I.Fg(b)}),h=h||$Na(a,b,ZNa(a,b),e,f))a.Se.set(b,h),h.create(),a.I.ra("modulecreated",b),c&&a.I.Qa("onApiChange")};
bOa=function(a){var b=void 0===b?!1:b;var c,d,e,f,h;return g.Ha(function(l){if(1==l.j)return(c=a.Se.get("asmjs"))&&!b?l.return(c):null!=(d=UT.get("asmjs"))?(e=d,l.Ka(2)):g.z(l,new Promise(function(m,n){aOa(a,"asmjs",function(){var p=UT.get("asmjs");p?m(p):n("cannot load module asmjs")},n)}),3);
2!=l.j&&(e=l.u);f=e;if(!f)return l.return(Promise.reject("cannot load module asmjs"));h=new f(a.I);a.Se.set("asmjs",h);h.create();return l.return(h)})};
eOa=function(a){cOa(a)&&a.dM();dOa(a)&&(gU(a,"captions",!0),gU(a,"endscreen"),a.sG(),gU(a,"creatorendscreen",!0))};
dOa=function(a){var b=a.I.getVideoData(),c=a.J&&!b.isInlinePlaybackNoAd;a.I.N("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c};
cOa=function(a){a=a.I.getVideoData();var b;if(b=a.N("web_player_defer_ad")){if(g.Fb(a.Fa,"ad")||kO(a,"disable_defer_admodule_on_advertiser_video")&&Fza(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};
XNa=function(a){var b=a.I.getVideoData();return!!b.Fd||!!b.captionTracks.length||g.KNa(b,a.I)};
g.WNa=function(a){var b=a.I.W();if(b.B||XM(b)||b.K||!b.Qd&&!b.Gh)return!1;var c=a.I.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.N("desktop_enable_autoplay");a=a.I.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.VS=function(a){return a.Se.get("webgl")};
YNa=function(a){var b=a.I.getVideoData();a=a.I.W();var c=g.Qma(),d=a.N("enable_spherical_kabuki"),e=g.VM(a);if(g.IO(b))return c||d||e;if(g.FO(b))return e||c||d;if(g.GO(b))return e||c||!1;if(g.HO(b))return e||!1;c=b.u&&b.u.video&&b.u.video.isHdr();return e&&!g.zO(b)&&!c&&a.N("enable_webgl_noop")};
UNa=function(a){if(a.I.W().B)return!1;if(a=a.I.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
VNa=function(a){if(g.US(a.I))return!1;a=a.I;var b=a.W();if(b.B||"3"===b.controlsType)return!1;if("creator-endscreen-editor"===b.playerStyle)return!0;a=a.getVideoData();return!!a&&(!!g.Qza(a)||!!g.Rza(a))};
$Na=function(a,b,c,d,e){try{if(c){var f=UT.get(b);if(f)return new f(a.I);aOa(a,b,d,e)}else a.I.Fg(b)}catch(h){a.I.Fg(b),g.sG(h)}return null};
hU=function(a,b,c){for(var d=g.u(a.Se),e=d.next();!e.done;e=d.next()){var f=g.u(e.value);e=f.next().value;(f=f.next().value)&&(c||f.vl(b))&&(g.qb(f),a.Se.delete(e))}};
iU=function(a){return a.Se.get("ad")};
fOa=function(a){if(KM(a.I.W()))return a.Se.get("kids")};
SS=function(a){if(a.I.W().wk)return a.Se.get("remote")};
g.jU=function(a){if(g.DM(a.I.W()))return a.Se.get("unplugged")};
dLa=function(a){if(a.I.W().eh)return a.Se.get("ux")};
kU=function(a){if(a.I.W().xj)return a.Se.get("offline")};
g.lU=function(a){return a.Se.get("annotations_module")};
gOa=function(a){return a.Se.get("creatorendscreen")};
iOa=function(a,b,c){var d,e;return g.Ha(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.Se.get("asmjs");return l?Promise.resolve(l.oW(h)):hOa(a).then(function(m){return m.oW(h)})};
return f.return(SNa(d,e,b,c))})};
hOa=function(a){var b,c;return g.Ha(function(d){if(1==d.j)return g.z(d,bOa(a),2);c=b=d.u;return d.return(c)})};
aOa=function(a,b,c,d){if(a.j){var e=jOa[b];kOa(a,a.j+e,function(){a.C.add(e);c.call(a)},d)}};
kOa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var h=g.Ke("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.bf("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(A){Ff(f);q&&q.apply(window,[A])};
var t=m.onerror;m.onerror=function(A){if(.01>Math.random()){var E=new g.EB("Unable to load player module",b,document.location&&document.location.origin);g.sG(E)}Ff(e);t&&t(A)};
var v=m,y=v.onreadystatechange;v.onreadystatechange=function(A){switch(v.readyState){case "loaded":case "complete":Ff(f)}y&&y(A)};
l&&((h=a.I.W().cspNonce)&&m.setAttribute("nonce",h),g.fl(m,g.Ds(b)),h=g.Ke("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.tb(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
lOa=function(a,b,c,d,e){g.SG.call(this);var f=this;this.target=a;this.fG=b;this.u=0;this.J=!1;this.C=new g.te(NaN,NaN);this.j=new g.PK(this);this.Ba=this.B=this.K=null;g.H(this,this.j);b=d||e?4E3:3E3;this.ea=new g.Kq(function(){mU(f,1,!1)},b,this);
g.H(this,this.ea);this.oa=new g.Kq(function(){mU(f,2,!1)},b,this);
g.H(this,this.oa);this.qa=new g.Kq(function(){mU(f,512,!1)},b,this);
g.H(this,this.qa);this.Ga=c&&0<c.pg.length?5E3:3E3;d||(this.B=this.j.T(a,"mouseover",this.nw),this.j.T(a,"mousemove",this.P1),this.j.T(a,"mouseleave",this.v6));Vn?this.j.T(a,"keypress",this.T5):this.j.T(a,"focusin",this.I4);this.D=this.j.T(a,"mousedown",this.NS);this.V=this.j.T(a,"touchstart",this.OS,void 0,!0);mU(this,640,!0)};
mOa=function(a){mU(a,4,!1);a.K&&(a.j.Mc(a.K),a.K=null,a.B=a.j.T(a.target,"mouseover",a.nw));a.B&&(a.j.Mc(a.B),a.B=a.j.T(a.target,"mouseover",a.nw))};
mU=function(a,b,c){a.isDisposed();var d=!a.u;c?(a.u|=b,b&1&&a.ea.start(),b&2&&a.oa.start()):(a.u&=~b,b&1&&a.ea.stop(),b&2&&a.oa.stop(),b&512&&a.qa.stop());a.u&512&&!(a.u&128)&&g.Lq(a.qa,a.Ga);b=!a.u;d!==b&&a.ra("autohideupdate",b)};
g.oU=function(a){g.X.call(this,{G:"button",Na:["ytp-large-play-button","ytp-button"],Y:{"aria-label":"Reproduzir"},X:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Sa);this.T(a,"basechromeinitialized",this.Sa);a=this.api.W();a.V&&nU&&(this.Ta("click",this.j,this),this.Ta("touchstart",this.u,this));g.CM(a)&&g.Sq(this.element,"ytp-large-play-button-red-bg");this.api.xb(this.element,this,28572);this.Sa()};
g.pU=function(a){var b=a.W(),c=["ytp-cued-thumbnail-overlay"];b.K&&c.push("ytp-exp-contain-thumbnail");b.N("web_player_show_frame_zero_when_cued")&&c.push("ytp-exp-frame0");g.X.call(this,{G:"div",Na:c,X:[{G:"div",S:"ytp-cued-thumbnail-overlay-image"}]});b=this.Ha("ytp-cued-thumbnail-overlay");c=new g.oU(a);g.H(this,c);c.Ja(b);this.C=new g.PK(this);g.H(this,this.C);this.api=a;this.D=this.Ha("ytp-cued-thumbnail-overlay-image");this.B=c;this.u=new g.yR(this,250);g.H(this,this.u);this.j=new g.Kq(this.Sa,
0,this);g.H(this,this.j);this.Sa();this.T(a,"appresize",this.Kb);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.r9);zM(a.W())&&this.T(a,"videoplayerreset",this.xw)};
nOa=function(a){if(!a.api.N("web_player_show_frame_zero_when_cued"))return!1;var b=a.api.getCurrentTime();a=a.api.Nb();a=g.yP(a,64)&&g.yP(a,1);return 0===b&&a};
g.qU=function(a){g.X.call(this,{G:"div",Na:["ytp-error"],Y:{role:"alert"},X:[{G:"div",S:"ytp-error-content",X:[{G:"div",S:"ytp-error-icon-container",X:[{G:"svg",Y:{fill:"#fff",viewBox:"0 0 48 48"},X:[{G:"path",Y:{d:"M0 0h48v48H0V0z",fill:"none"}},{G:"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"}}]}]},{G:"div",S:"ytp-error-content-wrap",
X:[{G:"div",S:"ytp-error-content-wrap-reason",Aa:"{{content}}"},{G:"div",S:"ytp-error-content-wrap-subreason",Aa:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.rU=function(a){a=a.split(oOa);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({G:"br"}),b.push(d[e]);c<a.length&&b.push({G:"a",Y:{href:a[c],target:a[c+1]},Aa:a[c+2]})}return{G:"span",X:b}};
pOa=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().C);a=a.api.getVideoData();b=g.MP(g.sU[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({G:"h2",Aa:f});d.push(b[0]);h&&d.push({G:"br"});d.push({G:"a",Y:{href:c,target:e?"_blank":null},Aa:b[2]});d.push(b[4]);return{G:"span",X:d}};
qOa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.T(c[d],"click",b);a.keys.push(e)}};
rOa=function(a){for(var b=0;b<a.keys.length;b++)a.Mc(a.keys[b]);a.keys=[]};
tU=function(a){g.PK.call(this);this.I=a;this.j=new Set;this.mediaSession=navigator.mediaSession;this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Yi);this.onVideoDataChange()};
uU=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.j.add(b)};
sOa=function(a){uU(a,"play",function(){a.I.playVideo()});
uU(a,"pause",function(){a.I.pauseVideo()});
uU(a,"seekbackward",function(){a.I.seekBy(-5*a.I.getPlaybackRate())});
uU(a,"seekforward",function(){a.I.seekBy(5*a.I.getPlaybackRate())})};
tOa=function(a){var b,c;a=a.I.getVideoData();a=a.Ad&&a.Ad.playerOverlays||null;return null==a?void 0:null==(b=a.playerOverlayRenderer)?void 0:null==(c=b.browserMediaSession)?void 0:c.browserMediaSessionRenderer};
uOa=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.KG(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
vOa=function(a){var b=a.I.Nb();b=b.isCued()||b.isError()?"none":g.dQ(b)?"playing":"paused";a.mediaSession.playbackState=b};
wOa=function(a){g.X.call(this,{G:"div",S:"ytp-paid-content-overlay",Y:{"aria-live":"assertive","aria-atomic":"true"}});this.I=a;this.videoId=null;this.B=!1;this.mf=this.j=null;var b=a.W();a.N("enable_new_paid_product_placement")&&!g.TM(b)?(this.u=new g.X({G:"a",S:"ytp-paid-content-overlay-link",Y:{href:"{{href}}",target:"_blank"},X:[{G:"div",S:"ytp-paid-content-overlay-icon",Aa:"{{icon}}"},{G:"div",S:"ytp-paid-content-overlay-text",Aa:"{{text}}"},{G:"div",S:"ytp-paid-content-overlay-chevron",Aa:"{{chevron}}"}]}),
this.T(this.u.element,"click",this.onClick)):this.u=new g.X({G:"div",Na:["ytp-button","ytp-paid-content-overlay-text"],Aa:"{{text}}"});this.C=new g.yR(this.u,250,!1,100);g.H(this,this.u);this.u.Ja(this.element);g.H(this,this.C);this.I.ag(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Md)};
yOa=function(a,b){var c=Dza(b),d=Eza(b);b.Xf&&a.I.qp()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.Nq(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&xOa(a,d,c,b)):c&&d&&xOa(a,d,c,b))};
xOa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.Kq(a.Mb,b,a);g.H(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.Q(e,g.rO))?void 0:l.url;a.I.gg(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!=h?h:"#",text:c,icon:"MONEY_HAND"===f?{G:"svg",Y:{fill:"none",height:"100%",viewBox:"0 0 24 24",
width:"100%"},X:[{G:"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.eR():null})};
zOa=function(a,b){a.j&&(g.yP(b,8)&&a.B?(a.B=!1,a.yd(),a.j.start()):(g.yP(b,2)||g.yP(b,64))&&a.videoId&&(a.videoId=null))};
vU=function(a){g.X.call(this,{G:"div",S:"ytp-spinner",X:[VLa(),{G:"div",S:"ytp-spinner-message",Aa:"Se a reprodu\u00e7\u00e3o n\u00e3o iniciar em breve, experimente reiniciar o seu dispositivo."}]});this.api=a;this.message=this.Ha("ytp-spinner-message");this.j=new g.Kq(this.show,500,this);g.H(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.u);this.Ac(a.Nb())};
wU=function(a){var b=[{G:"div",Na:["ytp-unmute-icon"],X:[{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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"}}]}]},
{G:"div",Na:["ytp-unmute-text"],Aa:"Toque para ativar som"}];b.push({G:"div",Na:["ytp-unmute-box"],X:[]});g.$S.call(this,a,{G:"button",Na:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],X:[{G:"div",S:"ytp-unmute-inner",X:b}]},100);this.j=this.clicked=!1;this.api=a;this.api.xb(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange",this.Yi);this.Ta("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&
!g.xM(this.api.W());g.$Q(this,a);a&&AOa(this);this.B=a};
AOa=function(a){a.j||(a.j=!0,a.api.Za(a.element,!0))};
g.xU=function(a){g.PK.call(this);var b=this;this.api=a;this.vO=!1;this.zp=null;this.rG=!1;this.Jg=null;this.cM=this.DJ=!1;this.bR=this.cR=null;this.GW=NaN;this.aR=this.gC=!1;this.BD=0;this.nL=[];this.yP=!1;this.tH={height:0,width:0};this.sZ=480;this.uaa=["ytp-player-content","html5-endscreen","ytp-overlay"];this.CO={CN:!1};var c=a.W(),d=a.qb();this.tH=a.getPlayerSize();this.VT=new g.Kq(this.MO,0,this);g.H(this,this.VT);g.FM(c)||(this.Um=new g.pU(a),g.H(this,this.Um),g.XS(a,this.Um.element,4));if(BOa(this)){var e=
new vU(a);g.H(this,e);e=e.element;g.XS(a,e,4)}var f=a.getVideoData();this.sf=new lOa(d,function(l){return b.fG(l)},f,c.Pi,!1);
g.H(this,this.sf);this.sf.subscribe("autohideupdate",this.Jn,this);if(!c.disablePaidContentOverlay){var h=new wOa(a);g.H(this,h);g.XS(a,h.element,4)}this.jR=new wU(a);g.H(this,this.jR);g.XS(this.api,this.jR.element,2);this.AN=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.CJ=new g.Kq(this.Wr,200,this);g.H(this,this.CJ);this.rD=f.videoId;this.MY=new g.Kq(function(){b.BD=0},350);
g.H(this,this.MY);this.yG=new g.Kq(function(){b.aR||COa(b)},350,this);
g.H(this,this.yG);f=a.getRootNode();f.setAttribute("aria-label","Leitor de v\u00eddeo do YouTube");switch(c.color){case "white":g.Sq(f,"ytp-color-white")}g.FM(c)&&g.Sq(f,"ytp-music-player");navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new tU(a),g.H(this,f));this.T(a,"appresize",this.Kb);this.T(a,"presentingplayerstatechange",this.Yi);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.a8);this.T(a,"autonavvisibility",function(){b.Tp()});
this.T(a,"sizestylechange",function(){b.Tp()});
this.T(d,"click",this.x8,this);this.T(d,"dblclick",this.y8,this);this.T(d,"mousedown",this.B8,this);c.xc&&(this.T(d,"gesturechange",this.z8,this),this.T(d,"gestureend",this.A8,this));this.Ot=[d.Ny];this.Um&&this.Ot.push(this.Um.element);e&&this.Ot.push(e)};
DOa=function(a,b){if(!b)return!1;var c=a.api.Qe();if(c.Ru()&&(c=c.Bb())&&g.rf(c,b))return c.controls;for(c=0;c<a.Ot.length;c++)if(g.rf(a.Ot[c],b))return!1;c=g.u(a.uaa);for(var d=c.next();!d.done;d=c.next())if(g.Rq(b,d.value))return!1;return b===a.api.getRootNode()?!1:!0};
EOa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.qb().oH||!1)&&a.api.W().u&&nU&&11<=iO;a=a.api.W().V&&nU;return!(!b&&!a)};
yU=function(a,b){return!a.api.isInline()&&!DOa(a,hB(b))&&g.IR(b)};
COa=function(a){a.sf.Rp();if(a.DJ&&a.cM)a.cM=!1;else if(!a.api.W().Va&&!a.fm()){var b=a.api.Nb();g.yP(b,2)&&g.QS(a.api)||a.Pw(b);!a.api.W().xc||b.isCued()||g.yP(b,1024)?a.Wr():a.CJ.isActive()?(a.pH(),a.CJ.stop()):a.CJ.start()}};
FOa=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.IR(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.Nb(),!g.yP(b,4)||g.yP(b,8)||g.yP(b,2)||a.Wr(),!0):!1};
GOa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
BOa=function(a){a=yA()&&67<=Nma()&&!a.api.W().V;return!g.xA("tizen")&&!vM&&!a&&!0};
zU=function(a,b){b=void 0===b?2:b;g.SG.call(this);this.api=a;this.j=null;this.Cd=new lB(this);g.H(this,this.Cd);this.u=RFa;this.Cd.T(this.api,"presentingplayerstatechange",this.Md);this.j=this.Cd.T(this.api,"progresssync",this.Bc);this.jo=b;1===this.jo&&this.Bc()};
HOa=function(a){g.X.call(this,{G:"button",Na:["ytp-button","ytp-back-button"],X:[{G:"div",S:"ytp-arrow-back-icon",X:[{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},X:[{G:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",wc:!0,Y:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.I=a;g.$Q(this,a.W().Gm);this.Ta("click",this.onClick)};
g.AU=function(a){g.X.call(this,{G:"div",X:[{G:"div",S:"ytp-bezel-text-wrapper",X:[{G:"div",S:"ytp-bezel-text",Aa:"{{title}}"}]},{G:"div",S:"ytp-bezel",Y:{role:"status","aria-label":"{{label}}"},X:[{G:"div",S:"ytp-bezel-icon",Aa:"{{icon}}"}]}]});this.I=a;this.u=new g.Kq(this.show,10,this);this.j=new g.Kq(this.hide,500,this);g.H(this,this.u);g.H(this,this.j);this.hide()};
EU=function(a,b,c){if(0>=b){c=aFa();b="som desativado";var d=0}else c=c?{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!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"}}]}:{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!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";BU(a,c,b,d+"%")};
IOa=function(a,b){b=b?{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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"}}]}:{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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.I.getPlaybackRate(),d=g.MP("A velocidade \u00e9 de $RATE",{RATE:String(c)});BU(a,b,d,c+"x")};
JOa=function(a,b){b=b?"Legendas ativadas":"Legendas desativadas";BU(a,ULa(),b)};
BU=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.Nq(a.j);a.u.start();a.updateValue("title",d);g.Wq(a.element,"ytp-bezel-text-hide",!d)};
LOa=function(a,b,c){g.X.call(this,{G:"button",Na:["ytp-button","ytp-cards-button"],Y:{"aria-label":"Mostrar cart\u00f5es","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.xM(a.W()))},X:[{G:"span",S:"ytp-cards-button-icon-default",X:[{G:"div",S:"ytp-cards-button-icon",X:[a.W().N("player_new_info_card_format")?MEa():{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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"}}]}]},
{G:"div",S:"ytp-cards-button-title",Aa:"Informa\u00e7\u00f5es"}]},{G:"span",S:"ytp-cards-button-icon-shopping",X:[{G:"div",S:"ytp-cards-button-icon",X:[{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",S:"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"}},{G:"path",S:"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"}},{G:"path",S:"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"}}]}]},{G:"div",
S:"ytp-cards-button-title",Aa:"Compras"}]}]});this.I=a;this.B=b;this.C=c;this.j=null;this.u=new g.yR(this,250,!0,100);g.H(this,this.u);g.Wq(this.C,"ytp-show-cards-title",g.xM(a.W()));this.hide();this.Ta("click",this.i7);this.Ta("mouseover",this.A7);KOa(this,!0)};
KOa=function(a,b){b?a.j=g.kT(a.B.Hc(),a.element):(a.j=a.j,a.j(),a.j=null)};
MOa=function(a,b,c){g.X.call(this,{G:"div",S:"ytp-cards-teaser",X:[{G:"div",S:"ytp-cards-teaser-box"},{G:"div",S:"ytp-cards-teaser-text",X:a.W().N("player_new_info_card_format")?[{G:"button",S:"ytp-cards-teaser-info-icon",Y:{"aria-label":"Mostrar cart\u00f5es","aria-haspopup":"true"},X:[MEa()]},{G:"span",S:"ytp-cards-teaser-label",Aa:"{{text}}"},{G:"button",S:"ytp-cards-teaser-close-button",Y:{"aria-label":"Fechar"},X:[g.fR()]}]:[{G:"span",S:"ytp-cards-teaser-label",Aa:"{{text}}"}]}]});var d=this;
this.I=a;this.oa=b;this.wh=c;this.C=new g.yR(this,250,!1,250);this.j=null;this.K=new g.Kq(this.N7,300,this);this.J=new g.Kq(this.M7,2E3,this);this.D=[];this.u=null;this.V=new g.Kq(function(){d.element.style.margin="0"},250);
this.onClickCommand=this.B=null;g.H(this,this.C);g.H(this,this.K);g.H(this,this.J);g.H(this,this.V);a.W().N("player_new_info_card_format")?(g.Sq(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Ha("ytp-cards-teaser-close-button"),"click",this.Gp),this.T(this.Ha("ytp-cards-teaser-info-icon"),"click",this.QQ),this.T(this.Ha("ytp-cards-teaser-label"),"click",this.QQ)):this.Ta("click",this.QQ);this.T(c.element,"mouseover",this.QS);this.T(c.element,"mouseout",this.PS);this.T(a,"cardsteasershow",
this.Z8);this.T(a,"cardsteaserhide",this.Mb);this.T(a,"cardstatechange",this.e_);this.T(a,"presentingplayerstatechange",this.e_);this.T(a,"appresize",this.pR);this.T(a,"onShowControls",this.pR);this.T(a,"onHideControls",this.O3);this.Ta("mouseenter",this.S1)};
NOa=function(a){g.X.call(this,{G:"button",Na:[IU.BUTTON,IU.TITLE_NOTIFICATIONS],Y:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},X:[{G:"div",S:IU.TITLE_NOTIFICATIONS_ON,Y:{title:"Deixar de receber notifica\u00e7\u00f5es acerca de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es da subscri\u00e7\u00e3o."},X:[g.QEa()]},{G:"div",S:IU.TITLE_NOTIFICATIONS_OFF,Y:{title:"Receber notifica\u00e7\u00f5es acerca de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es da subscri\u00e7\u00e3o."},
X:[{G:"svg",Y:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},X:[{G:"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.xb(this.element,this,36927);this.Ta("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Receber notifica\u00e7\u00f5es acerca de todos os v\u00eddeos novos")};
OOa=function(a,b){a.j=b;a.element.classList.toggle(IU.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.cK:c.aK)?(a=a.api.dn())?UR(a,b):g.sG(Error("No innertube service available when updating notification preferences.")):g.sG(Error("No update preferences command available.")):g.sG(Error("No video data when updating notification preferences."))};
g.JU=function(a,b,c){var d=void 0===d?800:d;var e=void 0===e?600:e;a=POa(a,b);if(a=g.gl(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))Jpa(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)};
POa=function(a,b){var c=document.location.protocol;return pfa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")};
g.LU=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 t=p.W(),v=t.userDisplayName&&g.CM(t);g.X.call(this,{G:"div",Na:["ytp-button","ytp-sb"],X:[{G:"div",S:"ytp-sb-subscribe",Y:v?{title:g.MP("Subscrever como $USER_NAME",{USER_NAME:t.userDisplayName}),"aria-label":"Subscrever o canal","data-tooltip-image":hxa(t),"data-tooltip-opaque":String(g.xM(t)),
tabindex:"0",role:"button"}:{"aria-label":"Subscrever o canal"},X:[{G:"div",S:"ytp-sb-text",X:[{G:"div",S:"ytp-sb-icon"},a]},b?{G:"div",S:"ytp-sb-count",Aa:b}:""]},{G:"div",S:"ytp-sb-unsubscribe",Y:v?{title:g.MP("Subscrito como $USER_NAME.",{USER_NAME:t.userDisplayName}),"aria-label":"Anular a subscri\u00e7\u00e3o do canal","data-tooltip-image":hxa(t),"data-tooltip-opaque":String(g.xM(t)),tabindex:"0",role:"button"}:{"aria-label":"Anular a subscri\u00e7\u00e3o do canal"},X:[{G:"div",S:"ytp-sb-text",
X:[{G:"div",S:"ytp-sb-icon"},c]},d?{G:"div",S:"ytp-sb-count",Aa:d}:""]}],Y:{"aria-live":"polite"}});var y=this;this.channelId=h;this.B=q;this.I=p;var A=this.Ha("ytp-sb-subscribe"),E=this.Ha("ytp-sb-unsubscribe");f&&g.Sq(this.element,"ytp-sb-classic");if(e){l?this.j():this.u();var K=function(){if(t.qa){var F=y.channelId;if(m||n){var S={c:F};var Y;g.vS.isInitialized()&&(Y=DKa(S));S=Y||"";if(Y=p.getVideoData())if(Y=Y.subscribeCommand){var ia=p.dn();ia?(UR(ia,Y,{botguardResponse:S,feature:m}),p.Qa("SUBSCRIBE",
F)):g.sG(Error("No innertube service available when updating subscriptions."))}else g.sG(Error("No subscribe command in videoData."));else g.sG(Error("No video data available when updating subscription."))}E.focus();E.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")}else g.JU(g.LM(y.I.W()),"sb_button",y.C)},I=function(){var F=y.channelId;
if(m||n){var S=p.getVideoData();UR(p.dn(),S.unsubscribeCommand,{feature:m});p.Qa("UNSUBSCRIBE",F)}A.focus();A.removeAttribute("aria-hidden");E.setAttribute("aria-hidden","true")};
this.T(A,"click",K);this.T(E,"click",I);this.T(A,"keypress",function(F){13===F.keyCode&&K(F)});
this.T(E,"keypress",function(F){13===F.keyCode&&I(F)});
this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.u);this.B&&v&&(this.tooltip=this.B.Hc(),KU(this.tooltip),g.tb(this,g.kT(this.tooltip,A)),g.tb(this,g.kT(this.tooltip,E)))}else g.Sq(A,"ytp-sb-disabled"),g.Sq(E,"ytp-sb-disabled")};
ROa=function(a,b){g.X.call(this,{G:"div",S:"ytp-title-channel",X:[{G:"div",S:"ytp-title-beacon"},{G:"a",S:"ytp-title-channel-logo",Y:{href:"{{channelLink}}",target:a.W().ea,"aria-label":"{{channelLogoLabel}}"}},{G:"div",S:"ytp-title-expanded-overlay",Y:{"aria-hidden":"{{flyoutUnfocusable}}"},X:[{G:"div",S:"ytp-title-expanded-heading",X:[{G:"div",S:"ytp-title-expanded-title",X:[{G:"a",Aa:"{{expandedTitle}}",Y:{href:"{{channelTitleLink}}",target:a.W().ea,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{G:"div",S:"ytp-title-expanded-subtitle",Aa:"{{expandedSubtitle}}",Y:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var c=this;this.api=a;this.K=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.D=this.Ha("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.C=!1;a.xb(this.j,this,36925);a.xb(this.channelName,this,37220);g.xM(this.api.W())&&
QOa(this);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.api.N("web_player_ve_conversion_fixes_for_channel_info")&&(this.T(this.channelName,"click",function(d){c.api.ub(c.channelName);g.gl(MU(c));d.preventDefault()}),this.T(this.j,"click",this.h7));
this.Sa()};
SOa=function(a){if(!a.api.W().kd){var b=a.api.getVideoData(),c=new g.LU("Subscrever",null,"Subscrito",null,!0,!1,b.Fk,b.subscribed,"channel_avatar",null,a.api,a.K);a.api.ag(c.element,a);var d;a.api.gg(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.ub(c.element)});
a.subscribeButton=c;g.H(a,a.subscribeButton);a.subscribeButton.Ja(a.D);a.subscribeButton.hide();var e=new NOa(a.api);a.u=e;g.H(a,e);e.Ja(a.D);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.Il&&(e.show(),a.api.Za(e.element,!0))});
a.T(a.api,"UNSUBSCRIBE",function(){b.Il&&(e.hide(),a.api.Za(e.element,!1),OOa(e,!1))})}};
QOa=function(a){var b=a.api.W();SOa(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.u||b.Eb?a.T(a.j,"click",function(c){a.api.N("web_player_ve_conversion_fixes_for_channel_info")||(TOa(a)&&(c.preventDefault(),a.isExpanded()?a.oG():a.FG()),a.api.ub(a.j))}):(a.T(a.channel,"mouseenter",a.FG),a.T(a.channel,"mouseleave",a.oG),a.T(a.channel,"focusin",
a.FG),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.oG()}),a.T(a.j,"click",function(){a.api.N("web_player_ve_conversion_fixes_for_channel_info")||a.api.ub(a.j)}));
a.B=new g.Kq(function(){a.isExpanded()&&(a.api.N("web_player_ve_conversion_fixes_for_channel_info")&&a.api.Za(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.Za(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.Za(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.H(a,a.B);a.T(a.channel,UOa,function(){VOa(a)});
a.T(a.api,"onHideControls",a.gQ);a.T(a.api,"appresize",a.gQ);a.T(a.api,"fullscreentoggled",a.gQ)};
VOa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
TOa=function(a){var b=a.api.getPlayerSize();return g.xM(a.api.W())&&524<=b.width};
MU=function(a){var b=a.api.W(),c=a.api.getVideoData();c=g.YM(b)+c.xc;if(!g.xM(b))return c;b={};g.ES(a.api,"addEmbedsConversionTrackingParams",[b]);g.xS(b,"emb_ch_name_ex");return g.Yj(c,b)};
NU=function(a,b,c,d,e,f){var h={G:"div",S:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={G:"div",S:"ytp-panel-header",X:[{G:"div",Na:["ytp-panel-back-button-container"],X:[{Y:{"aria-label":"Voltar ao menu anterior"},G:"button",Na:["ytp-button",l]}]},{Y:{tabindex:"0"},G:"span",Na:[m],X:[c]}]};if(e){var p="ytp-panel-options";n.X.push({G:"button",Na:["ytp-button",p],X:[d]})}h.X=[n]}d=!1;f&&(f={G:"div",S:"ytp-panel-footer",X:[f]},d=!0,h.X?h.X.push(f):h.X=[f]);g.aR.call(this,
h);this.content=b;d&&h.X?b.Ja(this.element,h.X.length-1):b.Ja(this.element);this.WV=!1;this.VV=d;c&&(c=this.Ha(l),m=this.Ha(m),this.T(c,"click",this.vX),this.T(m,"click",this.vX),this.WV=!0,e&&(p=this.Ha(p),this.T(p,"click",e)));b.subscribe("size-change",this.AX,this);this.T(a,"fullscreentoggled",this.AX);this.I=a};
g.OU=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.aR({G:"div",S:"ytp-panel-menu",Y:h});NU.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.H(this,this.menuItems)};
g.WOa=function(a){for(var b=g.u(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.gP,a);a.items=[];g.ef(a.menuItems.element);a.menuItems.ra("size-change")};
XOa=function(a,b){return b.priority-a.priority};
PU=function(a){var b=g.dT({"aria-haspopup":"true"});g.cT.call(this,b,a);this.Ta("keydown",this.j)};
QU=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
YOa=function(a,b){g.X.call(this,{G:"div",S:"ytp-user-info-panel",Y:{"aria-label":"Informa\u00e7\u00f5es do utilizador"},X:a.W().qa&&!a.N("embeds_web_always_enable_signed_out_state")?[{G:"div",S:"ytp-user-info-panel-icon",Aa:"{{icon}}"},{G:"div",S:"ytp-user-info-panel-content",X:[{G:"div",S:"ytp-user-info-panel-info",Y:{tabIndex:"{{userInfoFocusable}}",role:"text"},Aa:"{{watchingAsUsername}}"},{G:"div",S:"ytp-user-info-panel-info",Y:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Aa:"{{watchingAsEmail}}"}]}]:
[{G:"div",S:"ytp-user-info-panel-icon",Aa:"{{icon}}"},{G:"div",S:"ytp-user-info-panel-content",X:[{G:"div",X:[{G:"text",Y:{tabIndex:"{{userInfoFocusable}}"},Aa:"Sem sess\u00e3o iniciada"}]},{G:"div",S:"ytp-user-info-panel-login",X:[{G:"a",Y:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Aa:a.W().kd?"":"Iniciar sess\u00e3o no YouTube"}]}]}]});this.bb=a;this.j=b;a.W().qa||a.W().kd||(a=this.Ha("ytp-user-info-panel-login"),this.T(a,"click",this.U1));this.closeButton=new g.X({G:"button",Na:["ytp-collapse",
"ytp-button"],Y:{title:"Fechar"},X:[g.ZEa()]});this.closeButton.Ja(this.element);g.H(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.T1);this.Sa()};
$Oa=function(a,b,c,d){g.OU.call(this,a);this.Lb=c;this.Yc=d;this.getVideoUrl=new PU(6);this.pn=new PU(5);this.Zm=new PU(4);this.qc=new PU(3);this.BE=new g.cT(g.dT({href:"{{href}}",target:this.I.W().ea},void 0,!0),2,"Resolver problema de reprodu\u00e7\u00e3o");this.showVideoInfo=new g.cT(g.dT(),1,"Estat\u00edsticas avan\u00e7adas");this.Py=new g.aR({G:"div",Na:["ytp-copytext","ytp-no-contextmenu"],Y:{draggable:"false",tabindex:"1"},Aa:"{{text}}"});this.wU=new NU(this.I,this.Py);this.hF=this.At=null;
g.xM(this.I.W())&&(this.closeButton=new g.X({G:"button",Na:["ytp-collapse","ytp-button"],Y:{title:"Fechar"},X:[g.ZEa()]}),g.H(this,this.closeButton),this.closeButton.Ja(this.element),this.closeButton.Ta("click",this.R3,this));g.xM(this.I.W())&&(this.wl=new g.cT(g.dT(),8,"Conta"),g.H(this,this.wl),this.rd(this.wl,!0),this.wl.Ta("click",this.L8,this),a.xb(this.wl.element,this.wl,137682));this.I.W().Lm&&(this.al=new mT("Repetir",7),g.H(this,this.al),this.rd(this.al,!0),this.al.Ta("click",this.G7,this),
a.xb(this.al.element,this.al,28661));g.H(this,this.getVideoUrl);this.rd(this.getVideoUrl,!0);this.getVideoUrl.Ta("click",this.y7,this);a.xb(this.getVideoUrl.element,this.getVideoUrl,28659);g.H(this,this.pn);this.rd(this.pn,!0);this.pn.Ta("click",this.z7,this);a.xb(this.pn.element,this.pn,28660);g.H(this,this.Zm);this.rd(this.Zm,!0);this.Zm.Ta("click",this.x7,this);a.xb(this.Zm.element,this.Zm,28658);g.H(this,this.qc);this.rd(this.qc,!0);this.qc.Ta("click",this.w7,this);g.H(this,this.BE);this.rd(this.BE,
!0);this.BE.Ta("click",this.t8,this);g.H(this,this.showVideoInfo);this.rd(this.showVideoInfo,!0);this.showVideoInfo.Ta("click",this.M8,this);g.H(this,this.Py);this.Py.Ta("click",this.n7,this);g.H(this,this.wU);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=Qaa("Chromium")&&(b=!0);40>=Qaa("Firefox")&&(b=!1);b&&(this.At=new g.X({G:"textarea",S:"ytp-html5-clipboard",Y:{readonly:"",tabindex:"-1"}}),g.H(this,this.At),this.At.Ja(this.element));var e;null==(e=this.wl)||eT(e,
TEa());var f;null==(f=this.al)||eT(f,{G:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{G:"path",Y:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});eT(this.qc,{G:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{G:"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"}}]});eT(this.BE,{G:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{G:"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"}}]});eT(this.showVideoInfo,LEa());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);ZOa(this);this.QE(this.I.getVideoData())};
SU=function(a,b){var c=!1;if(a.At){var d=a.At.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Lb.Mb():(a.Py.qe(b,"text"),g.RU(a.Lb,a.wU),WLa(a.Py.element),a.At&&(a.At=null,ZOa(a)));return c};
ZOa=function(a){var b=!!a.At;g.bT(a.qc,b?"Copiar informa\u00e7\u00f5es de depura\u00e7\u00e3o":"Obter informa\u00e7\u00f5es de depura\u00e7\u00e3o");QU(a.qc,!b);g.bT(a.Zm,b?"Copiar c\u00f3digo incorporado":"Obter c\u00f3digo de incorpora\u00e7\u00e3o");QU(a.Zm,!b);g.bT(a.getVideoUrl,b?"Copiar URL do v\u00eddeo":"Obter URL do v\u00eddeo");QU(a.getVideoUrl,!b);g.bT(a.pn,b?"Copiar URL do v\u00eddeo \u00e0 hora atual":"Obter o URL do v\u00eddeo no tempo atual");QU(a.pn,!b);eT(a.Zm,b?JEa():null);eT(a.getVideoUrl,
b?gR():null);eT(a.pn,b?gR():null)};
aPa=function(a){return g.xM(a.I.W())?a.wl:a.al};
g.TU=function(a,b){g.$S.call(this,a,{G:"div",Na:["ytp-popup",b||""]},100,!0);this.j=[];this.J=this.D=null;this.maxHeight=this.maxWidth=0;this.size=new g.xe(0,0);this.Ta("keydown",this.V1)};
bPa=function(a){var b=a.j[a.j.length-1];if(b){g.so(a.element,a.maxWidth||"100%",a.maxHeight||"100%");g.Un(b.element,"width","");g.Un(b.element,"height","");g.Un(b.element,"maxWidth","100%");g.Un(b.element,"maxHeight","100%");g.Un(b.content.element,"height","");var c=g.to(b.element);c.width+=1;c.height+=1;g.Un(b.element,"width",c.width+"px");g.Un(b.element,"height",c.height+"px");g.Un(b.element,"maxWidth","");g.Un(b.element,"maxHeight","");var d=0;b.WV&&(d=b.Ha("ytp-panel-header"),d=g.to(d).height);
var e=0;b.VV&&(e=b.Ha("ytp-panel-footer"),g.Un(e,"width",c.width+"px"),e=g.to(e).height);g.Un(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.Un(b.element,"width",c.width+"px")));a.size=c}};
g.RU=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);cPa(a,c,b)};
g.UU=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];cPa(a,b,c,!0)}};
cPa=function(a,b,c,d){dPa(a);b&&(b.unsubscribe("size-change",a.TA,a),b.unsubscribe("back",a.Fj,a));c.subscribe("size-change",a.TA,a);c.subscribe("back",a.Fj,a);if(a.Gb){g.Sq(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ja(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;bPa(a);g.so(a.element,e);a.D=new g.Kq(function(){ePa(a,b,c,d)},20,a);
a.D.start()}else c.Ja(a.element),b&&b.detach()};
ePa=function(a,b,c,d){a.D.dispose();a.D=null;g.Sq(a.element,"ytp-popup-animating");d?(g.Sq(b.element,"ytp-panel-animate-forward"),g.Uq(c.element,"ytp-panel-animate-back")):(g.Sq(b.element,"ytp-panel-animate-back"),g.Uq(c.element,"ytp-panel-animate-forward"));g.so(a.element,a.size);a.J=new g.Kq(function(){g.Uq(a.element,"ytp-popup-animating");b.detach();g.Vq(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.J.dispose();a.J=null},250,a);
a.J.start()};
dPa=function(a){a.D&&g.Mq(a.D);a.J&&g.Mq(a.J)};
g.VU=function(a,b,c){g.TU.call(this,a);this.Ga=b;this.Yc=c;this.C=new g.PK(this);this.qa=new g.Kq(this.e9,1E3,this);this.Ba=this.B=null;g.H(this,this.C);g.H(this,this.qa);a.xb(this.element,this,28656);g.Sq(this.element,"ytp-contextmenu");fPa(this);this.hide()};
fPa=function(a){g.nB(a.C);var b=a.I.W();"gvn"===b.playerStyle||b.u||b.Eb||(b=a.I.qb(),a.C.T(b,"contextmenu",a.l7),a.C.T(b,"touchstart",a.X1,null,!0),a.C.T(b,"touchmove",a.cY,null,!0),a.C.T(b,"touchend",a.cY,null,!0))};
gPa=function(a){a.I.isFullscreen()?g.XS(a.I,a.element,10):a.Ja(document.body)};
g.WU=function(a,b,c){c=void 0===c?240:c;g.X.call(this,{G:"button",Na:["ytp-button","ytp-copylink-button"],Y:{title:"{{title-attr}}","data-tooltip-opaque":String(g.xM(a.W()))},X:[{G:"div",S:"ytp-copylink-icon",Aa:"{{icon}}"},{G:"div",S:"ytp-copylink-title",Aa:"Copiar link",Y:{"aria-hidden":"true"}}]});this.api=a;this.j=b;this.u=c;this.visible=!1;this.tooltip=this.j.Hc();b=a.W();KU(this.tooltip);g.Wq(this.element,"ytp-show-copylink-title",g.xM(b)&&!g.FM(b));a.xb(this.element,this,86570);this.Ta("click",
this.onClick);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.T(a,"appresize",this.Sa);this.Sa();g.tb(this,g.kT(this.tooltip,this.element))};
hPa=function(a){var b=a.api.W(),c=a.api.getVideoData(),d=a.api.qb().getPlayerSize().width,e=b.B;return!!c.videoId&&d>=a.u&&c.Mo&&!(c.Dd&&b.oa)&&!g.US(a.api)&&!e};
iPa=function(a){a.updateValue("icon",FEa());if(a.api.W().u)XU(a.tooltip,a.element,"Link copiado para a \u00e1rea de transfer\u00eancia.");else{a.updateValue("title-attr","Link copiado para a \u00e1rea de transfer\u00eancia.");lT(a.tooltip);XU(a.tooltip,a.element);var b=a.Ta("mouseleave",function(){a.Mc(b);a.Sa();a.tooltip.Pk()})}};
jPa=function(a,b){return g.Ha(function(c){if(1==c.j)return g.ya(c,2),g.z(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.Aa(c);var d=c.return,e=!1,f=g.bf("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(MC){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)})};
YU=function(a){g.X.call(this,{G:"div",S:"ytp-doubletap-ui-legacy",X:[{G:"div",S:"ytp-doubletap-fast-forward-ve"},{G:"div",S:"ytp-doubletap-rewind-ve"},{G:"div",S:"ytp-doubletap-static-circle",X:[{G:"div",S:"ytp-doubletap-ripple"}]},{G:"div",S:"ytp-doubletap-overlay-a11y"},{G:"div",S:"ytp-doubletap-seek-info-container",X:[{G:"div",S:"ytp-doubletap-arrows-container",X:[{G:"span",S:"ytp-doubletap-base-arrow"},{G:"span",S:"ytp-doubletap-base-arrow"},{G:"span",S:"ytp-doubletap-base-arrow"}]},{G:"div",
S:"ytp-doubletap-tooltip",X:[{G:"div",S:"ytp-chapter-seek-text-legacy",Aa:"{{seekText}}"},{G:"div",S:"ytp-doubletap-tooltip-label",Aa:"{{seekTime}}"}]}]}]});this.I=a;this.C=new g.Kq(this.show,10,this);this.u=new g.Kq(this.hide,700,this);this.J=this.B=0;this.D=!1;this.j=this.Ha("ytp-doubletap-static-circle");g.H(this,this.C);g.H(this,this.u);this.hide();this.K=this.Ha("ytp-doubletap-fast-forward-ve");this.V=this.Ha("ytp-doubletap-rewind-ve");this.I.xb(this.K,this,28240);this.I.xb(this.V,this,28239);
this.I.Za(this.K,!0);this.I.Za(this.V,!0);this.D=a.N("web_show_cumulative_seek_time")};
ZU=function(a,b,c){a.B=b===a.J?a.B+c:c;a.J=b;var d=a.I.qb().getPlayerSize();a.D?a.u.stop():g.Nq(a.u);a.C.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.Sq(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";kPa(a,a.D?a.B:c)};
lPa=function(a,b,c){g.Nq(a.u);a.C.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.Sq(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")};
kPa=function(a,b){b=g.MP("$TOTAL_SEEK_TIME segundos",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)};
bV=function(a,b,c){c=void 0===c?!0:c;g.X.call(this,{G:"div",S:"ytp-suggested-action"});var d=this;this.I=a;this.wb=b;this.kb=this.oa=this.V=this.u=this.j=this.J=this.expanded=this.enabled=this.Fa=!1;this.Ya=new g.Kq(function(){d.badge.element.style.width=""},200,this);
this.Ga=new g.Kq(function(){$U(d);aV(d)},200,this);
this.dismissButton=new g.X({G:"button",Na:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.H(this,this.dismissButton);this.B=new g.X({G:"div",S:"ytp-suggested-action-badge-expanded-content-container",X:[{G:"label",S:"ytp-suggested-action-badge-title",Aa:"{{badgeLabel}}"},this.dismissButton]});g.H(this,this.B);this.Ba=new g.X({G:"div",S:"ytp-suggested-action-badge-icon-container",X:[c?{G:"div",S:"ytp-suggested-action-badge-icon"}:""]});g.H(this,this.Ba);this.badge=new g.X({G:"button",
Na:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],X:[this.Ba,this.B]});g.H(this,this.badge);this.badge.Ja(this.element);this.K=new g.yR(this.badge,250,!1,100);g.H(this,this.K);this.Oa=new g.yR(this.B,250,!1,100);g.H(this,this.Oa);this.eb=new g.Iq(this.z$,null,this);g.H(this,this.eb);this.Ma=new g.Iq(this.w4,null,this);g.H(this,this.Ma);g.H(this,this.Ya);g.H(this,this.Ga);this.I.ag(this.badge.element,this.badge,!0);this.I.ag(this.dismissButton.element,this.dismissButton,
!0);this.T(this.I,"onHideControls",function(){d.jI(!1)});
this.T(this.I,"onShowControls",function(){d.jI(!0)});
this.T(this.badge.element,"click",this.gI);this.T(this.dismissButton.element,"click",this.JD);this.T(this.I,"pageTransition",this.Y1);this.T(this.I,"appresize",this.Cm);this.T(this.I,"fullscreentoggled",this.v7);this.T(this.I,"cardstatechange",this.e7);this.T(this.I,"annotationvisibility",this.daa,this);this.T(this.I,"offlineslatestatechange",this.eaa,this)};
$U=function(a){g.Wq(a.badge.element,"ytp-suggested-action-badge-with-controls",a.V||!a.J)};
aV=function(a,b){var c=a.tJ();a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.eb.stop(),a.Ma.stop(),a.Ya.stop(),a.eb.start()):(g.$Q(a.B,a.expanded),g.Wq(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),mPa(a))};
mPa=function(a){a.j&&a.I.Za(a.badge.element,a.GA());a.u&&a.I.Za(a.dismissButton.element,a.GA()&&a.tJ())};
nPa=function(a){var b=a.text||"";g.sf(g.Ne("ytp-suggested-action-badge-title",a.element),b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.ob?a.ob:"")};
cV=function(a,b){b?a.u&&a.I.ub(a.dismissButton.element):a.j&&a.I.ub(a.badge.element)};
oPa=function(a,b){bV.call(this,a,b,!1);this.D=[];this.J=!0;this.badge.element.classList.add("ytp-featured-product");this.qa=new g.X({G:"div",S:"ytp-featured-product-open-in-new"});g.H(this,this.qa);this.countdownTimer=new g.X({G:"text",S:"ytp-featured-product-countdown",Aa:"{{content}}"});this.countdownTimer.hide();g.H(this,this.countdownTimer);this.banner=new g.X({G:"a",S:"ytp-featured-product-container",Y:{href:"{{url}}",target:"_blank"},X:[{G:"div",S:"ytp-featured-product-thumbnail",X:[{G:"img",
Y:{src:"{{thumbnail}}"}},this.qa]},{G:"div",S:"ytp-featured-product-details",X:[{G:"text",S:"ytp-featured-product-title",Aa:"{{title}}"},this.countdownTimer,{G:"text",S:"ytp-featured-product-vendor",Aa:"{{vendor}}"},{G:"text",S:"ytp-featured-product-price",Aa:"{{price}}"}]},this.dismissButton]});g.H(this,this.banner);this.banner.Ja(this.B.element);this.T(this.I,g.PG("featured_product"),this.m$);this.T(this.I,g.QG("featured_product"),this.aJ);this.T(this.I,"videodatachange",this.onVideoDataChange)};
pPa=function(a){var b;return null==(b=g.Q(g.Q(a,g.UQ),g.rO))?void 0:b.url};
rPa=function(a,b){qPa(a);if(b){var c=g.uO.getState().entities;c=eya(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.D.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.NG(1E3*Number(f.startTimeSec),1E3*Number(f.endTimeSec)||0x7ffffffffffff,{id:d.identifier,namespace:"featured_product"}))}}a.I.hf(b)}}};
qPa=function(a){a.D=[];a.I.Te("featured_product")};
sPa=function(a){var b,c,d,e,f=null==(b=a.C)?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;c=a.countdownTimer;d=c.qe;var h={seconds:b};e=h.hours||0;f=h.minutes||0;var l=h.seconds||0;e=l+60*f+3600*e+86400*(h.days||0)+604800*(h.weeks||0)+2629800*(h.months||0)+31557600*(h.years||0);0>=e?e={hours:0,minutes:0,seconds:0}:(h=e,e=Math.floor(h/3600),h%=3600,f=Math.floor(h/60),l=Math.floor(h%60),e={hours:e,
minutes:f,seconds:l});var m=void 0===e.hours?0:e.hours;f=void 0===e.minutes?0:e.minutes;h=void 0===e.seconds?0:e.seconds;l=0<m;e=[];if(l){m=(new Intl.NumberFormat).format(m);var n=["fr"],p="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(" ");m="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(dV)?m.replace(",","\u00a0"):n.includes(dV)?m.replace(",","\u202f"):p.includes(dV)?m.replace(",","."):m;e.push(m)}l=void 0===
l?!1:l;f=(["af","be","lt"].includes(dV)||l)&&10>f?"0"+f:""+f;e.push(f);e.push(10>h?"0"+h:""+h);f=":";"da fi id si sl sr sr-Latn".split(" ").includes(dV)&&(f=".");d.call(c,e.join(f));if(0<b){var q;null==(q=a.Va)||q.start()}};
tPa=function(a){var b;null==(b=a.Va)||b.stop();a.countdownTimer.hide()};
wPa=function(a,b,c){g.X.call(this,{G:"div",Na:["ytp-info-panel-action-item"],X:[{G:"div",S:"ytp-info-panel-action-item-disclaimer",Aa:"{{disclaimer}}"},{G:"a",Na:["ytp-info-panel-action-item-button","ytp-button"],Y:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},X:[{G:"div",S:"ytp-info-panel-action-item-icon",Aa:"{{icon}}"},{G:"div",S:"ytp-info-panel-action-item-label",Aa:"{{label}}"}]}]});this.I=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.Fe=!1;this.I.ag(this.element,this,!0);this.Ta("click",this.onClick);a="";c=g.Q(null==b?void 0:b.onTap,g.UQ);var d=g.Q(c,g.rO);this.Fe=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.Fe=!0,cl(this.button,g.be(a))):(d=g.Q(c,uPa))&&!this.j?((a=d.phoneNumbers)&&0<a.length?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.Fe=!0,c=this.button,d=a,dc(d,"sms:")&&Nba(d)||(d="about:invalid#zClosurez"),cl(c,ae(d))):(c=
g.Q(c,vPa))&&!this.j&&(a=c.phoneNumber?"tel:"+c.phoneNumber:"",this.Fe=!0,c=a,dc(c,"tel:")||(c="about:invalid#zClosurez"),cl(this.button,ae(c)));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:REa(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:null==(h=b.bodyText)?void 0:h.content,icon:REa()})}this.I.gg(this.element,
b.trackingParams||null);this.Fe&&(this.u={externalLinkData:{url:a}})};
xPa=function(a,b){var c=WQ();g.$S.call(this,a,{G:"div",S:"ytp-info-panel-detail-skrim",X:[{G:"div",S:"ytp-info-panel-detail",Y:{role:"dialog",id:c},X:[{G:"div",S:"ytp-info-panel-detail-header",X:[{G:"div",S:"ytp-info-panel-detail-title",Aa:"{{title}}"},{G:"button",Na:["ytp-info-panel-detail-close","ytp-button"],Y:{"aria-label":"Fechar"},X:[g.fR()]}]},{G:"div",S:"ytp-info-panel-detail-body",Aa:"{{body}}"},{G:"div",S:"ytp-info-panel-detail-items"}]}]},250);this.j=b;this.items=this.Ha("ytp-info-panel-detail-items");
this.B=new g.PK(this);this.itemData=[];this.C=c;b=this.Ha("ytp-info-panel-detail-close");this.T(b,"click",this.Mb);b=this.Ha("ytp-info-panel-detail-skrim");this.T(b,"click",this.Mb);b=this.Ha("ytp-info-panel-detail");this.T(b,"click",function(d){d.stopPropagation()});
g.H(this,this.B);this.I.ag(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()};
yPa=function(a,b){a=g.u(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.I.Za(c.element,b)};
BPa=function(a,b,c){g.X.call(this,{G:"div",S:"ytp-info-panel-preview",Y:{"aria-live":"assertive","aria-atomic":"true","aria-owns":c.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.xM(a.W()))},X:[{G:"div",S:"ytp-info-panel-preview-text",Aa:"{{text}}"},{G:"div",S:"ytp-info-panel-preview-chevron",Aa:"{{chevron}}"}]});var d=this;this.I=a;this.mf=this.j=this.videoId=null;this.C=this.showControls=this.u=!1;this.T(this.element,"click",function(){a.ub(d.element);b.fm();aT(c)});
this.B=new g.yR(this,250,!1,100);g.H(this,this.B);this.I.ag(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Md);this.T(this.I,"paidcontentoverlayvisibilitychange",this.BX);this.T(this.I,"infopaneldetailvisibilitychange",this.BX);var e=a.getVideoData()||{};zPa(e)&&APa(this,e);this.T(a,"onShowControls",this.b2);this.T(a,"onHideControls",this.Z1)};
APa=function(a,b){if(!b.Xf||!a.I.qp()){var c=b.QK||1E4,d=zPa(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.Nq(a.j),a.videoId=b.videoId,d?(CPa(a,c,b),a.yd()):(a.Mb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),CPa(a,c,b),a.yd())}};
zPa=function(a){var b,c,d,e;return!!(null==(b=a.Wd)?0:null==(c=b.title)?0:c.content)||!!(null==(d=a.Wd)?0:null==(e=d.bodyText)?0:e.content)};
CPa=function(a,b,c){a.j&&a.j.dispose();a.j=new g.Kq(a.p$,b,a);g.H(a,a.j);var d;b=(null==(d=c.Wd)?void 0:d.trackingParams)||null;a.I.gg(a.element,b);var e;var f,h;if(null==c?0:null==(f=c.Wd)?0:null==(h=f.title)?0:h.content){var l;d=null==(e=c.Wd)?void 0:null==(l=e.title)?void 0:l.content;var m,n;if(null==(m=c.Wd)?0:null==(n=m.bodyText)?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=(null==(p=c.Wd)?void 0:null==(q=p.bodyText)?void 0:q.content)||"";a.update({text:e+c,chevron:g.eR()})};
DPa=function(a,b){a.j&&(g.yP(b,8)?(a.u=!0,a.yd(),a.j.start()):(g.yP(b,2)||g.yP(b,64))&&a.videoId&&(a.videoId=null))};
eV=function(a){var b=null;try{b=a.toLocaleString("pt-PT",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
fV=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};
EPa=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};
FPa=function(a,b){b=fV(a,b)+1;return b<a.length?b:-1};
GPa=function(a,b){return fV(a,b)-1};
HPa=function(a,b){return new g.NG(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
g.hV=function(a,b,c,d,e,f,h,l){g.PK.call(this);var m=this;this.api=a;this.contextMenu=c;this.sf=d;this.Yc=e;this.j=f;this.J=h;this.Pc=l;this.C=new g.Kq(function(){IPa(m,!1)},1E3);
this.u="";this.B={sH:!1};this.D=!1;g.H(this,this.C);this.T(b,"mousedown",function(){gV(m,!1)});
this.T(c.element,"mousedown",function(){gV(m,!1)});
this.T(b,"keydown",this.KV);this.T(c.element,"keydown",this.KV);this.T(b,"keyup",this.LV);this.T(c.element,"keyup",this.LV)};
gV=function(a,b){a.D=b;g.Wq(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.Wq(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
jV=function(a,b,c,d){var e=g.fU(a.api.Fb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.iV.length;h++){var l=g.iV[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);IPa(a,!0);a.C.start()}};
IPa=function(a,b){g.fU(a.api.Fb())&&a.api.setOption("captions","sampleSubtitles",b)};
g.kV=function(a,b,c){g.X.call(this,{G:"button",Na:["ytp-button","ytp-overflow-button"],Y:{title:"Mais","aria-haspopup":"true","aria-owns":c.element.id},X:[{G:"div",S:"ytp-overflow-icon",X:[{G:"svg",Y:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},X:[{G:"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.I=a;this.u=b;this.Qh=c;this.j=this.visible=!1;this.tooltip=
this.u.Hc();a.xb(this.element,this,16499);this.T(a,"videoplayerreset",this.Sa);this.T(a,"appresize",this.Sa);this.T(a,"fullscreentoggled",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);this.Sa();g.tb(this,g.kT(this.tooltip,this.element));this.Ta("click",function(){a.ub(d.element);aT(c,d.element,!1)});
this.T(c.closeButton,"click",function(){d.focus()})};
JPa=function(a,b){g.$S.call(this,a,{G:"div",S:"ytp-overflow-panel",Y:{id:WQ(),role:"dialog"},X:[{G:"div",S:"ytp-overflow-panel-content",X:[{G:"div",S:"ytp-overflow-panel-action-buttons",Aa:"{{buttons}}"}]},{G:"button",Na:["ytp-overflow-panel-close","ytp-button"],Y:{title:"Fechar"},X:[g.fR()]}]},250);this.actionButtons=[];this.tooltip=b.Hc();this.j=this.Ha("ytp-overflow-panel-content");this.closeButton=this.Ha("ytp-overflow-panel-close");this.T(this.closeButton,"click",this.Mb);g.tb(this,g.kT(this.tooltip,
this.closeButton));this.Ta("click",this.d2);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
KPa=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.updateValue("buttons",a.actionButtons))};
LPa=function(a,b){a=g.u(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.lc(b)};
MPa=function(a,b,c){var d=g.TT(b,c),e=a.W(),f=d.Kg("default.jpg");g.X.call(this,{G:"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:[{G:"div",S:"ytp-video-menu-item-index",Aa:String(c+1)},{G:"div",S:"ytp-video-menu-item-now-playing",Aa:"\u25b6"},{G:"div",S:"ytp-video-menu-item-thumbnail",Y:{style:f?"background-image: url("+f+");":void 0}},{G:"div",S:"ytp-video-menu-item-title",Aa:d.title},{G:"div",
S:"ytp-video-menu-item-author",Aa:d.author}]});this.api=a;this.index=c;this.Ta("click",this.onClick)};
NPa=function(a){g.$S.call(this,a,{G:"div",S:"ytp-playlist-menu",Y:{role:"dialog",id:WQ()},X:[{G:"div",S:"ytp-playlist-menu-header",X:[{G:"div",S:"ytp-playlist-menu-title",X:[a.W().B?{G:"span",S:"ytp-playlist-menu-title-name",Aa:"{{title}}"}:{G:"a",S:"ytp-playlist-menu-title-name",Y:{href:"{{playlisturl}}"},Aa:"{{title}}"},{G:"button",Na:["ytp-playlist-menu-close","ytp-button"],Y:{"aria-label":"Fechar"},X:[g.fR()]}]},{G:"div",S:"ytp-playlist-menu-subtitle",Aa:"{{subtitle}}"}]},{G:"div",S:"ytp-playlist-menu-items",
Y:{role:"menu"}}]},250);this.api=a;this.C=this.selected=this.D=this.playlist=null;this.items=this.Ha("ytp-playlist-menu-items");this.B=new g.PK(this);this.j=[];var b=this.Ha("ytp-playlist-menu-close");this.T(b,"click",this.Mb);b=this.Ha("ytp-playlist-menu-title-name");a.W().B||(this.C=this.T(b,"click",this.d9));g.H(this,this.B);this.hide()};
lV=function(a,b,c){g.X.call(this,{G:"button",Na:["ytp-playlist-menu-button","ytp-button"],Y:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},X:[{G:"div",S:"ytp-playlist-menu-button-icon",X:[{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!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"}}]}]},{G:"div",S:"ytp-playlist-menu-button-text",Aa:"{{text}}"}]});var d=this;this.api=a;this.playlist=null;this.visible=!1;this.tooltip=b.Hc();a.xb(this.element,this,70344);this.T(a,"videodatachange",this.j);this.T(a,"videoplayerreset",this.j);this.T(a,"onPlaylistUpdate",this.j);this.T(a,"presentingplayerstatechange",this.Sa);this.T(a,"appresize",this.Sa);this.hide();this.j();g.tb(this,g.kT(this.tooltip,this.element));this.Ta("click",function(){a.ub(d.element);aT(c,d.element,!1)})};
OPa=function(a,b,c){g.X.call(this,{G:"div",S:"ytp-promotooltip-wrapper",X:[{G:"div",S:"ytp-promotooltip-container",X:[{G:"div",S:"ytp-promotooltip-content",X:[{G:"div",S:"ytp-promotooltip-title",Aa:"{{title}}"},{G:"div",S:"ytp-promotooltip-details",Aa:"{{details}}"}]},{G:"div",S:"ytp-promotooltip-buttons",X:[{G:"div",S:"ytp-promotooltip-dismiss-button",Aa:"{{dismissButtonText}}",Y:{tabindex:"0"}},{G:"div",S:"ytp-promotooltip-accept-button",Aa:"{{acceptButtonText}}",Y:{tabindex:"0","aria-haspopup":"true"}}]}]},
{G:"div",S:"ytp-promotooltip-pointer"}]});var d=this;this.tooltipRenderer=a;this.K=b;this.I=c;this.j=this.B=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.u=this.D=!1;this.C=!0;this.qa=this.J=this.oa=this.V=!1;this.Rd={ME:function(e){d.ME(e)}};
g.$Q(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.u=!!a)this.I.ag(this.element,this,!0),this.I.gg(this.element,a);this.T(c,"onShowControls",this.f2);this.T(c,"onHideControls",this.e2);this.T(c,"resize",this.Kb);this.T(this.acceptButton,"click",this.C6);this.T(this.dismissButton,"click",this.r7);this.T(document,"click",this.g2)};
PPa=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=0<b.length?b[0]:null;var c=g.Ne("ytp-chrome-bottom"),d=g.Ne("ytp-ad-module");a.C=!(null==c||!c.contains(b));a.V=!(null==d||!d.contains(b));a.oa=!(null==b||!b.hasAttribute("data-tooltip-target-fixed"));return b};
SPa=function(a,b,c){if(!a.D){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.uo(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.XQ({G:"span",S:"ytp-promotooltip-details-icon",
X:[QPa[a.tooltipRenderer.targetId]]});g.H(a,h);for(var l=[],m=g.u(d),n=m.next();!n.done;n=m.next())n=new g.XQ({G:"span",S:"ytp-promotooltip-details-component",Aa:n.value}),g.H(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.ef(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.uo(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,t;(null==(p=g.Q(e,g.pO))?0:null==(q=p.text)?0:null==(t=q.runs)?0:t.length)&&g.Q(e,g.pO).text.runs[0].text&&(a.update({acceptButtonText:g.Q(e,g.pO).text.runs[0].text.toString()}),f=!0);g.uo(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var v,y,A;(null==(v=g.Q(p,g.pO))?0:null==(y=v.text)?0:null==(A=y.runs)?0:A.length)&&g.Q(p,g.pO).text.runs[0].text&&(a.update({dismissButtonText:g.Q(p,g.pO).text.runs[0].text.toString()}),
q=!0);g.uo(a.dismissButton,q)}c&&(a.B=c);a.j=PPa(a);a.J=!1;a.I.W().N("web_player_hide_nitrate_promo_tooltip")||g.$Q(a,!0);RPa(a);a.Gb&&!a.qa&&(a.qa=!0,a.Rd.ME(0));a.u&&a.I.Za(a.element,a.Gb)}};
mV=function(a){g.$Q(a,!1);a.u&&a.I.Za(a.element,a.Gb)};
TPa=function(a){var b,c,d,e=(null==(b=g.Q(a.acceptButton,g.pO))?void 0:null==(c=b.text)?void 0:null==(d=c.runs)?void 0:d.length)&&!!g.Q(a.acceptButton,g.pO).text.runs[0].text,f,h,l;b=(null==(f=g.Q(a.dismissButton,g.pO))?void 0:null==(h=f.text)?void 0:null==(l=h.runs)?void 0:l.length)&&!!g.Q(a.dismissButton,g.pO).text.runs[0].text;return e||b};
RPa=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.I.Ag())g.$Q(a,!1);else if(b=g.to(a.j),b.width&&b.height){a.K.Dw(a.element,a.j);var d=a.I.qb().getPlayerSize().height;c=g.to(a.Ha("ytp-promotooltip-container")).height;a.C?a.element.style.top=d-c-b.height-12+"px":a.oa||(d=a.K.Vk().height-c-b.height-12,a.element.style.top=d+"px");d=a.Ha("ytp-promotooltip-pointer");var e=g.ro(a.j,a.I.getRootNode()),
f=Number(a.element.style.left.replace(/[^\d\.]/g,""));a=a.I.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.$Q(a,!1)};
nV=function(a,b){g.X.call(this,{G:"button",Na:["ytp-replay-button","ytp-button"],Y:{title:"Reproduzir"},X:[g.XEa()]});this.I=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.Ta("click",this.onClick,this);this.Ac(a.Nb());g.kT(b.Hc(),this.element)};
g.oV=function(a,b,c,d){d=void 0===d?240:d;g.X.call(this,{G:"button",Na:["ytp-button","ytp-share-button"],Y:{title:"Partilhar","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.xM(a.W()))},X:[{G:"div",S:"ytp-share-icon",Aa:"{{icon}}"},{G:"div",S:"ytp-share-title",Aa:"Partilhar"}]});this.api=a;this.j=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.j.Hc();this.u=!1;a.xb(this.element,this,28664);this.Ta("click",this.onClick);this.T(a,"videodatachange",this.Sa);this.T(a,
"videoplayerreset",this.Sa);this.T(a,"appresize",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);this.Sa();g.tb(this,g.kT(this.tooltip,this.element))};
UPa=function(a){var b=a.api.W(),c=a.api.getVideoData(),d=g.xM(b)&&g.TS(a.api)&&g.yP(a.api.Nb(),128);b=b.B||b.disableSharing&&2!==a.api.getPresentingPlayerType()||!c.showShareButton||c.Mo||d||c.Dd&&b.oa||a.u;d=a.api.qb().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b};
VPa=function(a,b){"InvalidStateError"!==b.name&&"AbortError"!==b.name&&("NotAllowedError"===b.name?(a.j.fm(),aT(a.B,a.element,!1)):g.sG(b))};
g.pV=function(a,b){var c=WQ(),d=a.W();c={G:"div",S:"ytp-share-panel",Y:{id:WQ(),role:"dialog","aria-labelledby":c},X:[{G:"div",S:"ytp-share-panel-inner-content",X:[{G:"div",S:"ytp-share-panel-title",Y:{id:c},Aa:"Partilhar"},{G:"a",Na:["ytp-share-panel-link","ytp-no-contextmenu"],Y:{href:"{{link}}",target:d.ea,title:"Partilhar link","aria-label":"{{shareLinkWithUrl}}"},Aa:"{{linkText}}"},{G:"label",S:"ytp-share-panel-include-playlist",X:[{G:"input",S:"ytp-share-panel-include-playlist-checkbox",Y:{type:"checkbox",
checked:"true"}},"Incluir playlist"]},{G:"div",S:"ytp-share-panel-loading-spinner",X:[VLa()]},{G:"div",S:"ytp-share-panel-service-buttons",Aa:"{{buttons}}"},{G:"div",S:"ytp-share-panel-error",Aa:"Ocorreu um erro ao obter informa\u00e7\u00f5es de partilha. Tente mais tarde."}]},{G:"button",Na:["ytp-share-panel-close","ytp-button"],Y:{title:"Fechar"},X:[g.fR()]}]};g.$S.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Hc();this.B=[];this.D=this.Ha("ytp-share-panel-inner-content");
this.closeButton=this.Ha("ytp-share-panel-close");this.T(this.closeButton,"click",this.Mb);g.tb(this,g.kT(this.tooltip,this.closeButton));this.C=this.Ha("ytp-share-panel-include-playlist-checkbox");this.T(this.C,"click",this.Sa);this.j=this.Ha("ytp-share-panel-link");g.tb(this,g.kT(this.tooltip,this.j));this.api.xb(this.j,this,164503);this.T(this.j,"click",function(f){g.VP(f);e.api.ub(e.j);var h=e.api.getVideoUrl(!0,!0,!1,!1);h=WPa(e,h);g.pT(h,e.api,f)&&e.api.Qa("SHARE_CLICKED")});
this.Ta("click",this.h2);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.c6);this.hide()};
YPa=function(a,b){XPa(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={ls:e.ls,Hk:e.Hk},f++){e.ls=c[f];a:switch(e.ls.img||e.ls.iconId){case "facebook":var h={G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},X:[{G:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"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={G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},X:[{G:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"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.ls.sname||e.ls.serviceName;e.Hk=new g.X({G:"a",Na:["ytp-share-panel-service-button","ytp-button"],Y:{href:e.ls.url,target:"_blank",title:l},X:[h]});e.Hk.Ta("click",function(p){return function(q){if(g.IR(q)){var t=p.ls.url;var v=void 0===v?{}:v;v.target=v.target||"YouTube";v.width=v.width||"600";v.height=v.height||"600";var y=v;y||(y={});v=window;var A=t instanceof Zd?t:g.be("undefined"!=typeof t.href?t.href:String(t));var E=void 0!==self.crossOriginIsolated,
K="strict-origin-when-cross-origin";window.Request&&(K=(new Request("/")).referrerPolicy);var I="unsafe-url"===K;K=y.noreferrer;if(E&&K){if(I)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");K=!1}t=y.target||t.target;E=[];for(var F in y)switch(F){case "width":case "height":case "top":case "left":E.push(F+"="+y[F]);break;case "target":case "noopener":case "noreferrer":break;default:E.push(F+"="+(y[F]?1:0))}F=E.join(",");Hc()&&
v.navigator&&v.navigator.standalone&&t&&"_self"!=t?(y=g.bf("A"),g.ne(y,A),y.target=t,K&&(y.rel="noreferrer"),A=document.createEvent("MouseEvent"),A.initMouseEvent("click",!0,!0,v,1),y.dispatchEvent(A),v={}):K?(v=jca("",v,t,F),A=g.$d(A),v&&(g.UM&&g.ic(A,";")&&(A="'"+A.replace(/'/g,"%27")+"'"),v.opener=null,""===A&&(A="javascript:''"),g.Vd("b/12014412, meta tag with sanitized URL"),A='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.Ce(A)+'">',A=g.me(A),(y=
v.document)&&y.write&&(y.write(g.le(A)),y.close()))):((v=jca(A,v,t,F))&&y.noopener&&(v.opener=null),v&&y.noreferrer&&(v.opener=null));v&&(v.opener||(v.opener=window),v.focus());g.VP(q)}}}(e));
g.tb(e.Hk,g.kT(a.tooltip,e.Hk.element));"Facebook"===l?a.api.xb(e.Hk.element,e.Hk,164504):"Twitter"===l&&a.api.xb(e.Hk.element,e.Hk,164505);a.T(e.Hk.element,"click",function(p){return function(){a.api.ub(p.Hk.element)}}(e));
a.api.Za(e.Hk.element,!0);a.B.push(e.Hk);d++}}var m=b.more||b.moreLink,n=new g.X({G:"a",Na:["ytp-share-panel-service-button","ytp-button"],X:[{G:"span",S:"ytp-share-panel-service-button-more",X:[{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},X:[{G:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"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:"Mais"}});n.Ta("click",function(p){var q=m;a.api.ub(a.moreButton.element);q=WPa(a,q);g.pT(q,a.api,p)&&a.api.Qa("SHARE_CLICKED")});
g.tb(n,g.kT(a.tooltip,n.element));a.api.xb(n.element,n,164506);a.T(n.element,"click",function(){a.api.ub(n.element)});
a.api.Za(n.element,!0);a.B.push(n);a.moreButton=n;a.updateValue("buttons",a.B)};
WPa=function(a,b){var c={};g.xM(a.api.W())&&(g.ES(a.api,"addEmbedsConversionTrackingParams",[c]),b=g.Yj(b,g.xS(c,"emb_share")));return b};
XPa=function(a){for(var b=g.u(a.B),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.qb(c);a.B=[]};
qV=function(a){return void 0===a||void 0===a.startSec||void 0===a.endSec?!1:!0};
ZPa=function(a,b){a.startSec+=b;a.endSec+=b};
aQa=function(a,b){bV.call(this,a,b);this.D=this.C=this.isContentForward=this.Va=!1;$Pa(this);this.T(this.I,"changeProductsInVideoVisibility",this.c8);this.T(this.I,"videodatachange",this.onVideoDataChange)};
bQa=function(a){a.qa&&a.Ba.element.removeChild(a.qa.element);a.qa=void 0};
dQa=function(a,b){return b.map(function(c){var d,e;if((c=null==(d=g.Q(c,cQa))?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.X({G:"img",
S:"ytp-suggested-action-product-thumbnail",Y:{alt:"",src:c}});g.H(a,c);return c})};
eQa=function(a,b){a.isContentForward=b;g.Wq(a.badge.element,"ytp-suggested-action-badge-content-forward",b)};
rV=function(a){var b=a.isContentForward&&!a.tJ();g.Wq(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.C);g.Wq(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.D)};
sV=function(a,b,c){return new g.NG(1E3*a,1E3*b,{priority:9,namespace:c})};
fQa=function(a){a.I.Te("shopping_overlay_visible");a.I.Te("shopping_overlay_preview_collapsed");a.I.Te("shopping_overlay_preview_expanded");a.I.Te("shopping_overlay_expanded")};
$Pa=function(a){a.T(a.I,g.PG("shopping_overlay_visible"),function(){a.Qg(!0)});
a.T(a.I,g.QG("shopping_overlay_visible"),function(){a.Qg(!1)});
a.T(a.I,g.PG("shopping_overlay_expanded"),function(){a.oa=!0;aV(a)});
a.T(a.I,g.QG("shopping_overlay_expanded"),function(){a.oa=!1;aV(a)});
a.T(a.I,g.PG("shopping_overlay_preview_collapsed"),function(){a.C=!0;rV(a)});
a.T(a.I,g.QG("shopping_overlay_preview_collapsed"),function(){a.C=!1;rV(a)});
a.T(a.I,g.PG("shopping_overlay_preview_expanded"),function(){a.D=!0;rV(a)});
a.T(a.I,g.QG("shopping_overlay_preview_expanded"),function(){a.D=!1;rV(a)})};
hQa=function(a,b){g.X.call(this,{G:"div",S:"ytp-shorts-title-channel",X:[{G:"a",S:"ytp-shorts-title-channel-logo",Y:{href:"{{channelLink}}",target:a.W().ea,"aria-label":"{{channelLogoLabel}}"}},{G:"div",S:"ytp-shorts-title-expanded-heading",X:[{G:"div",S:"ytp-shorts-title-expanded-title",X:[{G:"a",Aa:"{{expandedTitle}}",Y:{href:"{{channelTitleLink}}",target:a.W().ea,tabIndex:"0"}}]}]}]});var c=this;this.api=a;this.B=b;this.j=this.Ha("ytp-shorts-title-channel-logo");this.channelName=this.Ha("ytp-shorts-title-expanded-title");
this.subscribeButton=null;a.xb(this.j,this,36925);this.T(this.j,"click",function(d){c.api.N("web_player_ve_conversion_fixes_for_channel_info")?(c.api.ub(c.j),g.gl(tV(c)),d.preventDefault()):c.api.ub(c.j)});
a.xb(this.channelName,this,37220);this.api.N("web_player_ve_conversion_fixes_for_channel_info")&&this.T(this.channelName,"click",function(d){c.api.ub(c.channelName);g.gl(tV(c));d.preventDefault()});
gQa(this);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.Sa()};
gQa=function(a){if(!a.api.W().kd){var b=a.api.getVideoData(),c=new g.LU("Subscrever",null,"Subscrito",null,!0,!1,b.Fk,b.subscribed,"channel_avatar",null,a.api,a.B);a.api.ag(c.element,a);var d;a.api.gg(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.ub(c.element)});
a.subscribeButton=c;g.H(a,a.subscribeButton);a.subscribeButton.Ja(a.element)}};
tV=function(a){var b=a.api.W(),c=a.api.getVideoData();c=g.YM(b)+c.xc;if(!g.xM(b))return c;b={};g.ES(a.api,"addEmbedsConversionTrackingParams",[b]);g.xS(b,"emb_ch_name_ex");return g.Yj(c,b)};
uV=function(a){g.$S.call(this,a,{G:"button",Na:["ytp-skip-intro-button","ytp-popup","ytp-button"],X:[{G:"div",S:"ytp-skip-intro-button-text",Aa:"Ignorar introdu\u00e7\u00e3o"}]},100);var b=this;this.B=!1;this.j=new g.Kq(function(){b.hide()},5E3);
this.Je=this.Gh=NaN;g.H(this,this.j);this.J=function(){b.show()};
this.D=function(){b.hide()};
this.C=function(){var c=b.I.getCurrentTime();c>b.Gh/1E3&&c<b.Je/1E3&&b.show()};
this.T(this.I,"videodatachange",function(c,d){b.vt(c,d)});
this.T(this.element,"click",function(){b.I.seekTo(b.Je/1E3)});
this.hide()};
vV=function(a,b){g.X.call(this,{G:"button",Na:["ytp-airplay-button","ytp-button"],Y:{title:"AirPlay","data-priority":"10"},Aa:"{{icon}}"});this.I=a;this.Ta("click",this.onClick);this.T(a,"airplayactivechange",this.Sa);this.T(a,"airplayavailabilitychange",this.Sa);this.Sa();g.tb(this,g.kT(b.Hc(),this.element))};
g.xV=function(a){g.X.call(this,{G:"div",S:"ytp-gradient-bottom"});this.u=g.bf("CANVAS");this.j=this.u.getContext("2d");this.C=NaN;this.u.width=1;this.B=g.FM(a.W());g.wV(this,a.qb().getPlayerSize().height)};
g.wV=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.u.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.u.toDataURL()+")"}catch(f){}}}};
yV=function(a,b,c,d,e){g.X.call(this,{G:"div",S:"ytp-chapter-container",X:[{G:"button",Na:["ytp-chapter-title","ytp-button"],X:[{G:"span",Y:{"aria-hidden":"true"},S:"ytp-chapter-title-prefix",Aa:"\u2022"},{G:"div",S:"ytp-chapter-title-content",Aa:"{{title}}",Y:{"aria-label":"{{ariaLabel}}",title:e}},{G:"div",S:"ytp-chapter-title-chevron",X:[{G:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{G:"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.I=a;this.C=c;this.D="";this.currentIndex=0;this.j=void 0;this.u=!0;this.V=this.Ha("ytp-chapter-container");this.B=this.Ha("ytp-chapter-title");this.oa=this.Ha("ytp-chapter-title-content");this.updateVideoData("newdata",this.I.getVideoData());this.T(a,"videodatachange",this.updateVideoData);this.T(this.V,"click",this.onClick);this.T(a,g.PG(d),this.Bc);this.T(a,"onLoopRangeChange",this.Bc);this.T(a,"innertubeCommand",this.onClickCommand);g.xM(this.I.W())||g.tb(this,g.kT(b.Hc(),this.oa))};
zV=function(a,b,c){yV.call(this,a,b,c,"chapterCueRange","Ver cap\u00edtulo")};
iQa=function(a,b,c,d,e){var f=b.mw/b.rows,h=Math.min(c/(b.zD/b.columns),d/f),l=b.zD*h,m=b.mw*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,q=-b.column*n,t=-b.row*p;e&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+t+"px/"+l+"px "+m+"px"};
AV=function(a){return a.N("web_big_boards")?a.Ag()?a.N("web_big_boards_enable_in_miniplayer"):a.isInline()?a.N("web_big_boards_enable_in_inline"):!0:!1};
g.BV=function(a,b){g.X.call(this,{G:"div",S:"ytp-storyboard-framepreview",X:[{G:"div",S:"ytp-storyboard-framepreview-timestamp",Aa:"{{timestamp}}"},{G:"div",S:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Ha("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.PK(this);this.j=new g.yR(this,100);g.H(this,this.events);g.H(this,this.j);this.T(this.api,"presentingplayerstatechange",this.Md);b&&this.T(this.element,"click",function(){b.Qs()});
AV(this.api)&&g.Sq(this.element,"ytp-storyboard-framepreview-big-boards")};
jQa=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.T(a.api,"videodatachange",function(){jQa(a,a.api.ek())}),a.events.T(a.api,"progresssync",a.cf),a.events.T(a.api,"appresize",a.D)),a.B=NaN,kQa(a),a.j.show(200)):(c&&g.nB(a.events),a.j.hide(),a.j.stop())};
kQa=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.qb().getPlayerSize(),e=YN(b,d.width);e=Eya(b,e,c);a.update({timestamp:g.HR(c)});e!==a.B&&(a.B=e,Cya(b,e,d.width),b=Aya(b,e,d.width),iQa(a.C,b,d.width,d.height))};
g.CV=function(a,b){g.X.call(this,{G:"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.I=a;this.u=b;this.message=null;this.j=g.kT(this.u.Hc(),this.element);this.B=new g.Kq(this.K3,2E3,this);g.H(this,this.B);this.T(a,"fullscreentoggled",this.Am);this.T(a,"presentingplayerstatechange",this.Sa);this.Ta("click",this.onClick);g.$A()&&(b=this.I.qb(),this.T(b,ina(),
this.WO),this.T(b,cB(document),this.wr));a.W().xc||a.W().V||this.disable();a.xb(this.element,this,139117);this.Sa();this.Am(a.isFullscreen())};
DV=function(a,b,c){g.X.call(this,{G:"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?{G:"svg",Y:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},X:[{G:"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"}},
{G:"text",Na:["ytp-jump-button-text","ytp-svg-fill"],Y:{x:"7.05",y:"15.05"}}]}:{G:"svg",Y:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},X:[{G:"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"}},
{G:"text",Na:["ytp-jump-button-text","ytp-svg-fill"],Y:{x:"6.5",y:"15"}}]}]});var d=this;this.I=a;this.C=b;this.j=c;this.u=new g.Kq(function(){d.B?(d.B=!1,d.u.start()):d.element.classList.remove("ytp-jump-spin","backwards")},250);
this.B=!1;a=0<c;this.tooltip=b.Hc();a?this.I.xb(this.element,this,36843):this.I.xb(this.element,this,36844);c=g.MP(a?"Avan\u00e7ar $SECONDS segundos. (\u2192)":"Recuar $SECONDS segundos. (\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.Ta("click",this.onClick,this);g.tb(this,g.kT(b.Hc(),this.element))};
lQa=function(a,b){b?a.element.classList.add("ytp-jump-button-enabled"):a.element.classList.remove("ytp-jump-button-enabled");a.I.Za(a.element,b);lT(a.tooltip)};
EV=function(a,b,c){yV.call(this,a,b,c,"timedMarkerCueRange","Ver momentos importantes");this.T(a,g.QG("timedMarkerCueRange"),this.Bc);this.T(a,"updatemarkervisibility",this.updateVideoData)};
mQa=function(a){var b,c=null==(b=a.I.getVideoData())?void 0:b.Qd;if(c)for(a=a.C.Oa,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}};
FV=function(a,b){g.X.call(this,{G:"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:[UEa()]});this.I=a;this.visible=!1;this.Ta("click",this.onClick);this.T(a,"fullscreentoggled",this.Sa);this.updateValue("title",g.qT(a,"Minileitor","i"));this.update({"data-title-no-tooltip":"Minileitor"});g.tb(this,g.kT(b.Hc(),this.element));a.xb(this.element,
this,62946);this.Sa()};
GV=function(a,b,c){g.X.call(this,{G:"button",Na:["ytp-multicam-button","ytp-button"],Y:{title:"Trocar c\u00e2mara","aria-haspopup":"true","data-preview":"{{preview}}","data-priority":"4","data-tooltip-text":"{{text}}"},X:[{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!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.I=a;this.j=!1;this.u=new g.Kq(this.B,400,this);this.tooltip=b.Hc();KU(this.tooltip);g.H(this,this.u);this.Ta("click",function(){aT(c,d.element,!1)});
this.T(a,"presentingplayerstatechange",function(){d.Sa(!1)});
this.T(a,"videodatachange",this.onVideoDataChange);this.Sa(!0);g.tb(this,g.kT(this.tooltip,this.element))};
nQa=function(a){g.$S.call(this,a,{G:"div",S:"ytp-multicam-menu",Y:{role:"dialog"},X:[{G:"div",S:"ytp-multicam-menu-header",X:[{G:"div",S:"ytp-multicam-menu-title",X:["Trocar c\u00e2mara",{G:"button",Na:["ytp-multicam-menu-close","ytp-button"],Y:{"aria-label":"Fechar"},X:[g.fR()]}]}]},{G:"div",S:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.PK(this);this.items=this.Ha("ytp-multicam-menu-items");this.j=[];g.H(this,this.B);a=this.Ha("ytp-multicam-menu-close");this.T(a,"click",this.Mb);this.hide()};
g.HV=function(a,b,c){c=void 0===c?!1:c;g.X.call(this,{G:"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.I=a;this.Fa=c;this.j=null;this.C=this.V=this.D=this.qa=NaN;this.Ba=this.J=null;this.B=[];this.u=[];this.visible=!1;this.K=null;c=this.I.W();this.updateValue("icon",aFa());this.tooltip=b.Hc();this.j=new g.XQ({G:"svg",Y:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"defs",X:[{G:"clipPath",Y:{id:"ytp-svg-volume-animation-mask"},X:[{G:"path",Y:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",Y:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"path",S:"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"}}]},{G:"clipPath",Y:{id:"ytp-svg-volume-animation-slash-mask"},X:[{G:"path",S:"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"}}]}]},
{G:"path",wc:!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"}},{G:"path",wc:!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.H(this,this.j);this.J=this.j.Ha("ytp-svg-volume-animation-speaker");
this.Ba=this.J.getAttribute("d");this.B=g.Me("ytp-svg-volume-animation-mover",this.j.element);this.u=g.Me("ytp-svg-volume-animation-hider",this.j.element);this.Ga=new LT;g.H(this,this.Ga);this.oa=new LT;g.H(this,this.oa);this.Ta("click",this.O7);this.T(a,"appresize",this.RS);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.eb)g.tb(this,g.kT(b.Hc(),this.element));else{var e="O seu navegador n\u00e3o suporta a altera\u00e7\u00e3o do volume. $BEGIN_LINKSaiba mais$END_LINK".split(/\$(BEGIN|END)_LINK/);
d=new g.$S(a,{G:"span",Na:["ytp-popup","ytp-generic-popup"],Y:{tabindex:"0"},X:[e[0],{G:"a",Y:{href:"https://support.google.com/youtube/?p=noaudio",target:c.ea},Aa:e[2]},e[4]]},100,!0);g.H(this,d);d.hide();d.subscribe("show",function(f){b.Wy(d,f)});
g.XS(a,d.element,4)}this.message=d;a.xb(this.element,this,28662);this.RS(a.qb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
qQa=function(a,b){a.qa=b;var c=a.Ba;b&&(c+=JMa(oQa,pQa,b));a.J.setAttribute("d",c)};
rQa=function(a,b){a.V=b;for(var c=20*b,d=0;d<a.B.length;d++)a.B[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=aFa():e=a.j;for(c=0;c<a.u.length;c++){d=a.u[c];var f=void 0;if(null==(f=d)?0:f.style)d.style.display=0===b?"none":""}e!==a.K&&(a.updateValue("icon",e),a.K=e)};
sQa=function(a,b){g.X.call(this,{G:"button",Na:["ytp-pip-button","ytp-button"],Y:{title:"{{title}}","data-priority":"7","data-tooltip-target-id":"ytp-pip-button"},X:[UEa()]});this.I=a;this.updateValue("title","Picture-in-picture");this.Ta("click",this.onClick);g.tb(this,g.kT(b.Hc(),this.element))};
g.IV=function(a,b){g.X.call(this,{G:"button",Na:["ytp-play-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Aa:"{{icon}}"});this.I=a;this.j=null;this.transition=new LT;this.tooltip=b.Hc();g.H(this,this.transition);a.xb(this.element,this,36842);a.Za(this.element,!0);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"videodatachange",this.onVideoDataChange);this.Ac(a.Nb());
this.Ta("click",this.Wr,this);g.tb(this,g.kT(b.Hc(),this.element))};
tQa=function(a){switch(a){case 1:return VEa();case 2:return SEa();case 3:return g.XEa();case 4:return $Ea();default:return null}};
g.JV=function(a,b,c){g.X.call(this,{G:"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?PEa():WEa()]});var d=this;this.I=a;this.j=c;this.playlist=this.videoData=null;this.J=
!1;this.C=this.D=this.u=null;this.B=!1;this.tooltip=b.Hc();c?a.xb(this.element,this,6193):a.xb(this.element,this,6194);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"onPlaylistUpdate",this.onVideoDataChange);this.T(a,"onLoopRangeChange",this.onVideoDataChange);this.j||this.T(a,"appresize",this.IK);this.T(a,"mdxpreviousnextchange",function(){uQa(d);d.IK()});
this.onVideoDataChange()};
vQa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
wQa=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.I.getCurrentTime()&&2!==a.I.getPresentingPlayerType()};
xQa=function(a){var b=SS(a.I.Fb());return b?a.j?b.Yk():b.rp():!1};
uQa=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.Yk();c=g.TS(a.I)&&(!a.j||c);var d=a.j&&g.YS(a.I),e=xQa(a),f=a.j&&5===a.I.getPresentingPlayerType(),h=g.qT(a.I,"Seguinte","SHIFT+n"),l=g.qT(a.I,"Anterior","SHIFT+p");if(f)b.title="Iniciar v\u00eddeo";else if(a.B)b.title="Reproduzir";else if(c){var m=null;a.playlist&&(m=g.TT(a.playlist,a.j?vNa(a.playlist):wNa(a.playlist)));if(m){if(m.videoId){var n=
a.playlist.listId;b.url=a.I.W().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.HR(m.lengthSeconds):null;b.preview=m.Kg("mqdefault.jpg")}a.j?(b.title=h,b["data-title-no-tooltip"]="Seguinte",b["aria-keyshortcuts"]="SHIFT+n"):(b.title=l,b["data-title-no-tooltip"]="Anterior",b["aria-keyshortcuts"]="SHIFT+p")}else if(d){if(l=null==(m=a.videoData)?void 0:g.sO(m))b.url=l.Wk(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?
g.HR(l.lengthSeconds):null,b.preview=l.Kg("mqdefault.jpg");b.title=h;b["data-title-no-tooltip"]="Seguinte";b["aria-keyshortcuts"]="SHIFT+n"}b.disabled=!d&&!c&&!e&&!f;a.update(b);a.J=!!b.url;d||c||a.B||e||f?a.u||(a.u=g.kT(a.tooltip,a.element),a.D=a.Ta("click",a.onClick,a)):a.u&&(a.u(),a.u=null,a.Mc(a.D),a.D=null);lT(a.tooltip)};
zQa=function(a,b){var c={G:"div",S:"ytp-fine-scrubbing-thumbnails",Y:{tabindex:"0",role:"slider",type:"range","aria-label":"Clique ou desloque o painel para uma procura precisa.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}};a.N("web_fix_fine_scrubbing_drag")&&(c={G:"div",S:"ytp-fine-scrubbing-draggable",X:[{G:"div",S:"ytp-fine-scrubbing-thumbnails",Y:{tabindex:"0",role:"slider",type:"range","aria-label":"Clique ou desloque o painel para uma procura precisa.",
"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]});g.X.call(this,{G:"div",S:"ytp-fine-scrubbing",X:[c,{G:"div",Y:{"aria-hidden":"true"},S:"ytp-fine-scrubbing-cursor"},{G:"div",S:"ytp-fine-scrubbing-seek-time",Y:{"aria-hidden":"true"},Aa:"{{seekTime}}"},{G:"div",S:"ytp-fine-scrubbing-play",X:[VEa()],Y:{title:"Reproduzir a partir desta posi\u00e7\u00e3o",role:"button"}},{G:"div",S:"ytp-fine-scrubbing-dismiss",X:[g.fR()],
Y:{title:"Sair da procura precisa",role:"button"}}]});this.api=a;this.B=this.Ha("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Ha("ytp-fine-scrubbing-dismiss");this.Ba=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.C=[];this.Ma=this.j=0;this.Fa=void 0;this.qa=NaN;this.Oa=this.V=this.u=this.D=0;this.J=[];this.interval=this.frameCount=0;this.K=160;this.scale=1;this.Va=0;this.isEnabled=
this.Ga=!1;yQa(this,this.api.getCurrentTime());g.tb(this,g.kT(b,this.dismissButton));g.tb(this,g.kT(b,this.playButton));a.N("web_fix_fine_scrubbing_drag")?this.oa=new g.zT(this.Ba,!0):this.oa=new g.zT(this.B,!0);this.oa.subscribe("dragstart",this.KK,this);this.oa.subscribe("dragmove",this.JK,this);this.oa.subscribe("dragend",this.l2,this);this.T(a,"SEEK_COMPLETE",this.dA);this.B.addEventListener("keydown",function(){});
g.H(this,this.oa);this.api.xb(this.element,this,153154);this.api.xb(this.B,this,152789);this.api.xb(this.dismissButton,this,153156);this.api.xb(this.playButton,this,153155)};
yQa=function(a,b){var c=g.HR(b),d=g.MP("Procurar at\u00e9 $PROGRESS",{PROGRESS:g.HR(b,!0)});a.update({ariamin:0,ariamax:Math.floor(a.api.getDuration()),arianow:Math.floor(b),arianowtext:d,seekTime:c})};
AQa=function(a){a.qa=NaN;a.V=0;a.D=a.u};
DQa=function(a){var b=a.api.ek();if(b){var c=90*a.scale,d=YN(b,160*a.scale);if(b=b.levels[d]){a.K=b.width;if(!a.J.length){d=[];for(var e=ZN(b,b.Jx()),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.kf(l),column:0,columns:p,row:n,rows:m,zD:b.width*p,mw:b.height*m};d.push(q);h-=p;if(1>=h)break}a.J=d;a.frameCount=b.LF();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.J.length;)d=
void 0,null==(d=a.thumbnails.pop())||d.dispose();for(;a.thumbnails.length<a.J.length;)d=new BQa,a.thumbnails.push(d),d.Ja(a.B),g.H(a,d);for(d=0;d<a.J.length;d++)e=a.thumbnails[d].element,f=a.J[d],h=a.K*a.scale,l=f.mw/f.rows,m=c/l,e.style.background="url("+f.url+") 0 "+-f.row*f.mw/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";KV(a,a.api.getCurrentTime());for(c=a.api.getVideoData().jk;a.C.length>c.length;)d=void 0,null==(d=a.C.pop())||d.dispose();
for(;a.C.length<c.length;)d=new CQa,a.C.push(new CQa),g.H(a,d);for(d=0;d<c.length;d++)e=c[d],a.C[d].update({chapterTitle:e.title}),e=Math.round(e.startTime/b.j),f=Math.floor(e/b.rows),g.Un(a.C[d].element,"transform","translateX("+e%b.rows*a.K*a.scale+"px)"),f<a.thumbnails.length&&a.thumbnails[f]&&a.C[d].Ja(a.thumbnails[f].element);a.Ga=!0}}};
KV=function(a,b){a.update({seekTime:g.HR(b)});var c=a.K*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.pe(b,EQa(a),a.j/2);a.D=b;a.u=a.D;a.api.N("web_fix_fine_scrubbing_drag")?(g.Un(a.Ba,"transform","translateX("+(a.D-a.j/2)+"px)"),g.Un(a.Ba,"padding","0px "+a.j/2+"px"),g.Un(a.B,"position","relative")):g.Un(a.B,"transform","translateX("+a.D+"px)")};
FQa=function(a,b){var c=a.K*a.scale;b-=a.j/2;return b>-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
EQa=function(a){return-((a.B.offsetWidth||(a.frameCount-1)*a.K*a.scale)-a.j/2)};
BQa=function(){g.X.call(this,{G:"div",S:"ytp-fine-scrubbing-thumbnail"})};
CQa=function(){g.X.call(this,{G:"div",S:"ytp-fine-scrubbing-chapter-title",X:[{G:"div",S:"ytp-fine-scrubbing-chapter-title-content",Aa:"{{chapterTitle}}"}]})};
HQa=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=GQa(a[c-1],a[c-2],d),f=GQa(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};
GQa=function(a,b,c,d){d=void 0===d?!1:d;b=new IQa(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.u:b.u)}};
IQa=function(a,b){this.u=this.j=0;this.j=b.x-a.x;this.u=b.y-a.y};
JQa=function(a){g.X.call(this,{G:"div",S:"ytp-heat-map-chapter",X:[{G:"svg",S:"ytp-heat-map-svg",Y:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},X:[{G:"defs",X:[{G:"clipPath",Y:{id:"{{id}}"},X:[{G:"path",S:"ytp-heat-map-path",Y:{d:"",fill:"white"}}]}]},{G:"rect",S:"ytp-heat-map-graph",Y:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",S:"ytp-heat-map-hover",Y:{"clip-path":"url(#hm_1)",fill:"white",
height:"100%",x:"0",y:"0"}},{G:"rect",S:"ytp-heat-map-play",Y:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.J=this.Ha("ytp-heat-map-svg");this.B=this.Ha("ytp-heat-map-path");this.D=this.Ha("ytp-heat-map-graph");this.C=this.Ha("ytp-heat-map-play");this.u=this.Ha("ytp-heat-map-hover");this.Fe=!1;this.j=60;a=""+g.ab(this);this.update({id:a});a="url(#"+a+")";this.D.setAttribute("clip-path",a);this.C.setAttribute("clip-path",a);this.u.setAttribute("clip-path",a);this.api.N("web_heat_map_v2")&&
g.Sq(this.api.getRootNode(),"ytp-heat-map-v2")};
KQa=function(a,b){0<b&&(a.j=b,a.J.style.height=a.j+"px")};
LV=function(){g.X.call(this,{G:"div",S:"ytp-chapter-hover-container",X:[{G:"div",S:"ytp-progress-bar-padding"},{G:"div",S:"ytp-progress-list",X:[{G:"div",Na:["ytp-play-progress","ytp-swatch-background-color"]},{G:"div",S:"ytp-progress-linear-live-buffer"},{G:"div",S:"ytp-load-progress"},{G:"div",S:"ytp-hover-progress"},{G:"div",S:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.Ha("ytp-progress-linear-live-buffer");this.B=this.Ha("ytp-ad-progress-list");
this.D=this.Ha("ytp-load-progress");this.J=this.Ha("ytp-play-progress");this.u=this.Ha("ytp-hover-progress");this.j=this.Ha("ytp-chapter-hover-container")};
MV=function(a,b){g.Un(a.j,"width",b)};
LQa=function(a,b){g.Un(a.j,"margin-right",b+"px")};
MQa=function(){this.fraction=this.position=this.u=this.j=this.B=this.width=NaN};
NQa=function(){g.X.call(this,{G:"div",S:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
OQa=function(a){return a.N("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")};
g.OV=function(a,b){g.aR.call(this,{G:"div",S:"ytp-progress-bar-container",Y:{"aria-disabled":"true"},X:[{G:"div",Na:["ytp-heat-map-container"],X:[{G:"div",S:"ytp-heat-map-edu"}]},{G:"div",Na:["ytp-progress-bar"],Y:{tabindex:"0",role:"slider","aria-label":"Controlo de deslize da procura","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},X:[{G:"div",S:"ytp-chapters-container"},{G:"div",S:"ytp-timed-markers-container"},{G:"div",
S:"ytp-clip-start-exclude"},{G:"div",S:"ytp-clip-end-exclude"},{G:"div",S:"ytp-scrubber-container",X:[{G:"div",Na:["ytp-scrubber-button","ytp-swatch-background-color"],X:[{G:"div",S:"ytp-scrubber-pull-indicator"}]}]}]},{G:"div",Na:["ytp-fine-scrubbing-container"],X:[{G:"div",S:"ytp-fine-scrubbing-edu"}]},{G:"div",S:"ytp-bound-time-left",Aa:"{{boundTimeLeft}}"},{G:"div",S:"ytp-bound-time-right",Aa:"{{boundTimeRight}}"},{G:"div",S:"ytp-clip-start",Y:{title:"{{clipstarttitle}}"},Aa:"{{clipstarticon}}"},
{G:"div",S:"ytp-clip-end",Y:{title:"{{clipendtitle}}"},Aa:"{{clipendicon}}"}]});this.api=a;this.Ke=!1;this.og=this.Ya=this.K=this.jg=0;this.Fd=null;this.Ma={};this.xc={};this.clipEnd=Infinity;this.hc=this.Ha("ytp-clip-end");this.xd=new g.zT(this.hc,!0);this.Ve=this.Ha("ytp-clip-end-exclude");this.eh=this.Ha("ytp-clip-start-exclude");this.clipStart=0;this.Ec=this.Ha("ytp-clip-start");this.kd=new g.zT(this.Ec,!0);this.oa=this.rb=0;this.Pc=this.Ha("ytp-progress-bar");this.Eb={};this.Oa={};this.Qc=this.Ha("ytp-chapters-container");
this.Xf=this.Ha("ytp-timed-markers-container");this.j=[];this.J=[];this.Wd={};this.If=null;this.eb=-1;this.wb=this.Ba=0;this.V=null;this.pg=this.Ha("ytp-scrubber-button");this.Gh=this.Ha("ytp-scrubber-container");this.ob=new g.te;this.Vf=new MQa;this.B=new KR(0,0);this.Hb=null;this.C=this.Je=!1;this.Wf=null;this.qa=this.Ha("ytp-heat-map-container");this.od=this.Ha("ytp-heat-map-edu");this.D=[];this.heatMarkersDecorations=[];this.kb=this.Ha("ytp-fine-scrubbing-container");this.md=this.Ha("ytp-fine-scrubbing-edu");
this.u=void 0;this.Ga=this.pd=this.Fa=!1;this.tooltip=b.Hc();g.tb(this,g.kT(this.tooltip,this.hc));g.H(this,this.xd);this.xd.subscribe("hoverstart",this.xX,this);this.xd.subscribe("hoverend",this.wX,this);this.T(this.hc,"click",this.ZI);g.tb(this,g.kT(this.tooltip,this.Ec));g.H(this,this.kd);this.kd.subscribe("hoverstart",this.xX,this);this.kd.subscribe("hoverend",this.wX,this);this.T(this.Ec,"click",this.ZI);PQa(this);this.T(a,"resize",this.Kb);this.T(a,"presentingplayerstatechange",this.n2);this.T(a,
"videodatachange",this.vt);this.T(a,"videoplayerreset",this.i5);this.T(a,"cuerangesadded",this.haa);this.T(a,"cuerangesremoved",this.T9);this.T(a,"onLoopRangeChange",this.SS);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.PG("timedMarkerCueRange"),this.c9);this.T(a,"updatemarkervisibility",this.g_);this.updateVideoData(a.getVideoData(),!0);this.SS(a.getLoopRange());NV(this)&&!this.u&&(this.u=new zQa(this.api,this.tooltip),a=g.qo(this.element).x||0,this.u.Kb(a,this.K),this.u.Ja(this.kb),
g.H(this,this.u),this.T(this.u.dismissButton,"click",this.Qs),this.T(this.u.playButton,"click",this.AM),this.T(this.u.element,"dblclick",this.AM));this.api.xb(this.qa,this,139609,!0);this.api.xb(this.od,this,140127,!0);this.api.xb(this.md,this,151179,!0);this.api.N("web_modern_miniplayer")&&(this.element.hidden=!0)};
PQa=function(a){if(0===a.j.length){var b=new LV;a.j.push(b);g.H(a,b);b.Ja(a.Qc,0)}for(;1<a.j.length;)a.j.pop().dispose();MV(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
QQa=function(a){var b=void 0===b?NaN:b;var c=new JQa(a.api);a.D.push(c);g.H(a,c);c.Ja(a.qa);0<=b&&(c.element.style.width=b+"px")};
RQa=function(a){for(;a.J.length;)a.J.pop().dispose()};
SQa=function(a){if(OQa(a)){var b,c,d,e,f;return null==(f=g.Q(null==(e=g.Q(null==(b=a.Ad)?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,PN))?void 0:e.playerBar,fza))?void 0:f.chapters}return a.vT};
TQa=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.NG(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.Te("chapterCueRange");a.api.hf(c)};
aRa=function(a,b){var c,d=null==(c=a.Eb[b])?void 0:c.chapters;d&&(UQa(a,d),a.api.getVideoData().jk=a.j,TQa(a));var e;if((c=null==(e=a.Eb[b])?void 0:e.markers)&&"HEATSEEKER"!==b){RQa(a);e=g.u(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new NQa,d=g.Q(d,g.VQa)){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;WQa(a,c)}XQa(a,
a.J);e=a.J;c=a.Wd;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=HPa(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.hf(d)}var l;if(b=g.Q(null==(l=a.Eb[b])?void 0:l.heatmap,YQa)){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.D.length&&
QQa(a);f=[];c&&f.push(c);for(var q=g.u(l),t=q.next();!t.done;t=q.next()){t=t.value;var v=void 0,y=void 0,A=null!=(y=null==(v=g.Q(t,ZQa))?void 0:v.timeRangeStartMillis)?y:-1;A>=h&&A<=p&&f.push(t)}0<m&&(a.qa.style.height=m+"px");h=a.D[d];q=0===d;q=void 0===q?!1:q;KQa(h,m);p=h.j;q=void 0===q?!1:q;t=1E3/f.length;v=[];v.push({x:0,y:100});for(y=0;y<f.length;y++){var E=void 0;A=(null==(E=g.Q(f[y],ZQa))?void 0:E.heatMarkerIntensityScoreNormalized)||0;E=(y+.5)*t;A=100-g.pe(100*A,e/p*100,m/p*100);0!==y||q||
v.push({x:0,y:A});v.push({x:E,y:A});y===f.length-1&&v.push({x:1E3,y:A})}v.push({x:1E3,y:100});p=v;p=0===f.length?"":HQa(p);h.B.setAttribute("d",p);h.Fe=""!==p;g.Wq(h.api.getRootNode(),"ytp-heat-map",h.Fe);g.Wq(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.PV(a);l=[];b=g.u(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.Q(e.value,$Qa))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.VG(m):""});a.heatMarkersDecorations=l}};
WQa=function(a,b){a.J.push(b);g.H(a,b);b.Ja(a.Xf,a.Xf.children.length)};
XQa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=bRa(a,c.timeRangeStartMillis/(1E3*a.B.j),QV(a));g.Un(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
UQa=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.Q(e,cRa)){e=g.Q(e,cRa);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.VG(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 LV,a.j.push(f),g.H(a,f),f.Ja(a.Qc,a.Qc.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.PV(a);RV(a)};
g.PV=function(a){a.Ba=a.j.length-1;a.wb=0;dRa(a,!0)&&dRa(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){LQa(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;MV(a.j[d],e+"px");break}a.j[c].width=0;MV(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,MV(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,MV(a.j[c],d+"px"));c=0;if(a.D.length===a.j.length)for(b=0;b<
a.D.length;b++)d=a.j[b].width,a.D[b].element.style.width=d+"px",a.D[b].element.style.left=c+"px",c+=d+(a.C?3:2)};
dRa=function(a,b){var c=0,d=!1,e=a.j.length,f=1E3*a.B.j;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.K){for(var h=a.K-(a.C?3:2)*a.Ba,l=0===a.wb?3:h*a.wb,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,LQa(a.j[c],a.C?3:2));g.Wq(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,t=p.j[q-1];void 0!==t&&0<t.width?
t.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);LQa(p.j[q],0);b&&(a.Ba--,m/f>a.wb&&(a.wb=m/f),d=!0)}c++}}return d};
RV=function(a){if(a.K){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:UO(d))&&b.airingStart&&b.airingEnd?eRa(a,b.airingStart,b.airingEnd):eRa(a,b.seekableStart,b.seekableEnd);d=LR(c,b.loaded,0);b=LR(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;SV(a,b,d);e&&fRa(a);gRa(a)}}};
eRa=function(a,b,c){return hRa(a)?new KR(Math.max(b,a.Hb.startTimeMs/1E3),Math.min(c,a.Hb.endTimeMs/1E3)):new KR(b,c)};
iRa=function(a,b){var c;if("repeatChapter"===(null==(c=a.Hb)?void 0:c.type)||"repeatChapter"===(null==b?void 0:b.type))b&&(b=a.j[fV(a.j,b.startTimeMs)],g.Wq(b.j,"ytp-repeating-chapter",!1)),a.Hb&&(b=a.j[fV(a.j,a.Hb.startTimeMs)],g.Wq(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.Wq(d.j,"ytp-exp-chapter-hover-container",!a.Hb)})};
UV=function(a,b){var c=TFa(a.B,b.fraction);if(1<a.j.length){c=TV(a,b.u,!0);for(var d=0,e=0;e<c;e++)0<a.j[e].width&&(d+=a.j[e].width,d+=a.C?3:2);c=(a.j[c].startTime+(b.u-d)/a.j[c].width*((c===a.j.length-1?1E3*a.B.j:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c};
jRa=function(a,b,c){return c>=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.B.j*(a.K-(a.C?3:2)*a.Ba)};
fRa=function(a){a.pg.style.removeProperty("height");for(var b=g.u(Object.keys(a.Ma)),c=b.next();!c.done;c=b.next())kRa(a,c.value);VV(a);SV(a,a.oa,a.rb)};
QV=function(a){var b=a.ob.x;b=g.pe(b,0,a.K);a.Vf.update(b,a.K);return a.Vf};
XV=function(a){return(a.C?135:90)-WV(a)};
WV=function(a){var b=48,c=a.api.W();a.C?b=54:g.xM(c)&&!c.u&&(b=40);return b};
SV=function(a,b,c){a.oa=b;a.rb=c;var d=QV(a),e=a.B.j,f=TFa(a.B,a.oa),h=g.MP("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.HR(f,!0),DURATION:g.HR(e,!0)}),l=fV(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.B.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Hb&&2!==a.api.getPresentingPlayerType()&&(e=a.Hb.startTimeMs/1E3,f=a.Hb.endTimeMs/1E3);e=LR(a.B,e,0);l=LR(a.B,f,1);h=a.api.getVideoData();f=g.pe(b,e,l);c=(null==h?0:g.TO(h))?1:g.pe(c,
e,l);b=bRa(a,b,d);g.Un(a.Gh,"transform","translateX("+b+"px)");YV(a,d,e,f,"PLAY_PROGRESS");(null==h?0:UO(h))?(b=a.api.getProgressState().seekableEnd)&&YV(a,d,f,LR(a.B,b),"LIVE_BUFFER"):YV(a,d,e,c,"LOAD_PROGRESS");if(a.api.N("web_player_heat_map_played_bar")){var m;null!=(m=a.D[0])&&m.C.setAttribute("width",(100*f).toFixed(2)+"%")}};
YV=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ba*(a.C?3:2),l=c*h;c=TV(a,l);var m=d*h;h=TV(a,m);"HOVER_PROGRESS"===e&&(h=TV(a,b.j*d,!0),m=b.j*d-lRa(a,b.j*d)*(a.C?3:2));b=Math.max(l-mRa(a,c),0);for(d=c;d<f;d++)a.j[d].Bb(e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.j[f].Bb(e),l=a.j[f].width,ZV(a,d,f===c?l-b:l,l);f=a.j[h].width;m=g.pe(m-mRa(a,h),0,f);c===h&&(m-=b);b=a.j[h].Bb(e);ZV(a,b,m,f);m=a.j.length;for(h+=1;h<m;h++)nRa(a,h,e);for(h=0;h<c;h++)nRa(a,h,e)};
mRa=function(a,b){if(b>=a.j.length)return a.K;for(var c=0,d=0;d<b;)c+=a.j[d].width,d++;return c};
nRa=function(a,b,c){c=a.j[b].Bb(c);ZV(a,c,0,a.j[b].width)};
ZV=function(a,b,c,d,e){e||a.api.W().u?b.style.width=c+"px":g.Un(b,"transform","scalex("+(d?c/d:0)+")")};
TV=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=lRa(a,b)*(a.C?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};
bRa=function(a,b,c){for(var d=b*a.B.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.C?3:2)*a.Ba)+(a.C?3:2)*(0>e?0:e)+c.B};
lRa=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.C?3:2,d++;else break;return d===c?c-1:d};
g.$V=function(a,b,c,d){var e=a.K!==c,f=a.C!==d;a.jg=b;a.K=c;a.C=d;NV(a)&&null!=(b=a.u)&&(b.scale=d?1.5:1);fRa(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.PV(a);a.u&&f&&NV(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-WV(a),a.kb.style.height=c+"px",g.Un(a.qa,"transform","translateY("+-d+"px)"),g.Un(a.Pc,"transform","translateY("+-d+"px)")),DQa(a.u))};
VV=function(a){var b=!!a.Hb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Hb?(c=a.Hb.startTimeMs/1E3,d=a.Hb.endTimeMs/1E3):(e=c>a.B.u,f=0<a.B.j&&d<a.B.j);var h,l;if((null==(h=a.Hb)?0:h.postId)||"repeatChapter"===(null==(l=a.Hb)?void 0:l.type))f=e=!1;g.Wq(a.element,"ytp-loop-range-enabled",b);g.Wq(a.element,"ytp-clip-start-enabled",e);g.Wq(a.element,"ytp-clip-end-enabled",f);b=e?LR(a.B,c,0):0;d=f?LR(a.B,d,1):1;a.Ec.style.left=Math.round(1E3*b)/10+"%";a.hc.style.left=
Math.round(1E3*d)/10+"%";a.eh.style.width=Math.round(1E3*b)/10+"%";a.Ve.style.left=Math.round(1E3*d)/10+"%";a.Ve.style.width=Math.round(1E3*(1-d))/10+"%"};
gRa=function(a){var b;if(null==(b=a.api.getVideoData())||!UO(b)){b=QV(a);YV(a,b,a.oa,Math.max(b.fraction,a.oa),"HOVER_PROGRESS");for(var c=TV(a,b.j*a.oa,!0),d=TV(a,b.u,!0),e=c;e<=d;e++)g.Wq(a.j[e].u,"ytp-hover-progress-light",b.fraction>a.oa);g.Wq(a.pg,"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.D[0])&&f.u.setAttribute("width",(100*b.fraction).toFixed(2)+"%")}}};
kRa=function(a,b){var c=a.Ma[b];b=a.xc[b];var d=QV(a),e=LR(a.B,c.start/1E3,0),f=Dra(c,a.C)/d.width;var h=LR(a.B,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.pe(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.B,0)+"px";ZV(a,b,g.pe((h-c)*d.j+d.B,0,d.width),d.width,!0)};
oRa=function(a,b){var c=b.getId();a.Ma[c]===b&&(g.pf(a.xc[c]),delete a.Ma[c],delete a.xc[c])};
NV=function(a){var b;return!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.Ag()&&!a.api.isInline()};
aW=function(a){a.u&&(a.u.disable(),a.Ya=0,a.qa.style.removeProperty("transform"),a.Pc.style.removeProperty("transform"),a.kb.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
pRa=function(a,b){var c=b/XV(a)*WV(a);g.Un(a.Pc,"transform","translateY("+-b+"px)");g.Un(a.qa,"transform","translateY("+-b+"px)");g.Un(a.kb,"transform","translateY("+c+"px)");a.kb.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=WV(a)-c+"px")};
qRa=function(a,b){b?a.V||(a.element.removeAttribute("aria-disabled"),a.V=new g.zT(a.Pc,!0),a.V.subscribe("hovermove",a.f8,a),a.V.subscribe("hoverend",a.e8,a),a.V.subscribe("dragstart",a.d8,a),a.V.subscribe("dragmove",a.h8,a),a.V.subscribe("dragend",a.g8,a),a.Wf=a.Ta("keydown",a.o2)):a.V&&(a.element.setAttribute("aria-disabled","true"),a.Mc(a.Wf),a.V.cancel(),a.V.dispose(),a.V=null)};
g.rRa=function(a){var b=2*a.K*g.PM(),c=a.B;return 1E3*(c.j-c.u)/a.api.getPlaybackRate()/b};
hRa=function(a){var b;return!(null==(b=a.Hb)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
bW=function(a,b,c){g.X.call(this,{G:"button",Na:["ytp-remote-button","ytp-button"],Y:{title:"Reproduzir na TV","aria-haspopup":"true","data-priority":"9"},Aa:"{{icon}}"});this.I=a;this.Lb=c;this.j=null;this.T(a,"onMdxReceiversChange",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);this.T(a,"appresize",this.Sa);a.xb(this.element,this,139118);this.Sa();this.Ta("click",this.u,this);g.tb(this,g.kT(b.Hc(),this.element))};
cW=function(a,b,c){g.X.call(this,{G:"button",Na:["ytp-button","ytp-settings-button"],Y:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":WQ(),title:"Defini\u00e7\u00f5es","data-tooltip-target-id":"ytp-settings-button"},X:[g.YEa()]});this.I=a;this.Lb=c;this.u=!0;this.Ta("click",this.B);this.T(a,"onPlaybackQualityChange",this.updateBadge);this.T(a,"videodatachange",this.updateBadge);this.T(a,"webglsettingschanged",this.updateBadge);this.T(a,"appresize",this.j);g.tb(this,g.kT(b.Hc(),this.element));
this.I.xb(this.element,this,28663);this.updateBadge();this.j(a.qb().getPlayerSize())};
sRa=function(a,b){a.u=!!b;a.j(a.I.qb().getPlayerSize())};
dW=function(a,b){mT.call(this,"Notas",g.rT(a).XJ);this.I=a;this.Lb=b;this.j=!1;a.N("web_settings_menu_icons")&&eT(this,{G:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{G:"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.T(a,"videodatachange",this.Sa);this.T(a,"onApiChange",this.Sa);this.subscribe("select",this.onSelect,this);this.Sa()};
g.eW=function(a,b,c,d,e,f,h){g.cT.call(this,g.dT({"aria-haspopup":"true"}),b,a);this.Lb=d;this.J=!1;this.B=null;this.options={};this.u=new g.OU(c,void 0,a,e,f,h);g.H(this,this.u);this.Ta("keydown",this.q2);this.Ta("click",this.open)};
tRa=function(a){if(a.B){var b=a.options[a.B];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.B=null}};
g.fW=function(a,b){g.WOa(a.u);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.B;l&&(d=!0);h&&h.priority===-e?(g.bT(a.options[f],a.Jk(f,!0)),delete a.options[f]):h=a.IL(f,-e,l);c[f]=h;a.u.rd(h,!0)}d||(a.B=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};
gW=function(a,b){g.eW.call(this,"Faixa de \u00e1udio:",g.rT(a).AUDIO,a,b);this.I=a;this.tracks={};this.j=new g.X({G:"div",X:[{G:"span",Aa:"Faixa de \u00e1udio:"},{G:"span",S:"ytp-menuitem-label-count",Aa:"{{content}}"}]});a.N("web_settings_menu_icons")&&eT(this,{G:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{G:"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.H(this,this.j);g.bT(this,this.j);this.T(a,"videodatachange",this.Sa);this.T(a,"onPlaybackAudioChange",this.Sa);this.Sa()};
hW=function(a,b){mT.call(this,"Reprodu\u00e7\u00e3o autom\u00e1tica",g.rT(a).YJ);this.I=a;this.Lb=b;this.j=!1;this.B=[];this.T(a,"presentingplayerstatechange",this.u);this.subscribe("select",this.onSelect,this);a.xb(this.element,this,113682);this.u()};
uRa=function(a,b){g.cT.call(this,g.dT({"aria-haspopup":"false"}),0,"Mais op\u00e7\u00f5es");this.I=a;this.Lb=b;this.T(this.element,"click",this.onClick);this.Lb.rd(this)};
vRa=function(a,b){var c;g.QM(a.W())&&(c={G:"div",S:"ytp-panel-footer-content",X:[{G:"span",Aa:"Ajuste a qualidade da transfer\u00eancia em "},{G:"a",S:"ytp-panel-footer-content-link",Aa:"Defini\u00e7\u00f5es",Y:{href:"/account_downloads"}}]});g.eW.call(this,"Qualidade",g.rT(a).YK,a,b,void 0,void 0,c);this.I=a;this.qa={};this.V={};this.C={};this.Ba=new Set;this.j=this.D=!1;this.K="unknown";this.oa="";this.D=this.I.N("web_player_use_new_api_for_quality_pullback");this.j=this.I.N("web_player_enable_premium_hbr_playback_cap");
a.N("web_settings_menu_icons")&&eT(this,{G:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{G:"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.Sq(this.u.element,"ytp-quality-menu");this.T(a,"videodatachange",this.JB);this.T(a,"videoplayerreset",this.JB);this.T(a,"onPlaybackQualityChange",this.US);this.JB();a.xb(this.element,this,137721)};
xRa=function(a,b,c){var d=a.qa[b],e=g.WH[b];return wRa(a,d?d.qualityLabel:e?e+"p":"Autom\u00e1tico",b,c)};
yRa=function(a,b,c,d,e){var f=(b=a.j?a.C[b]:a.V[b])&&b.quality,h=b&&b.qualityLabel;h=h?h:"Autom\u00e1tico";d&&(h="("+h);a=wRa(a,h,f||"",e);d&&a.X.push(")");(d=(d=b&&b.paygatedQualityDetails)&&d.paygatedIndicatorText)&&c&&a.X.push({G:"div",S:"ytp-premium-label",Aa:d});return a};
wRa=function(a,b,c,d){b={G:"span",Na:d,X:[b]};var e;d="ytp-swatch-color";if(a.D||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({G:"sup",S:d,Aa:e}));return b};
iW=function(a,b,c,d,e,f,h){g.X.call(this,{G:"div",S:"ytp-slider-section",Y:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},X:[{G:"div",S:"ytp-slider",X:[{G:"div",S:"ytp-slider-handle"}]}]});this.V=a;this.K=b;this.u=c;this.C=d;this.oa=e;this.Ga=f;this.range=this.C-this.u;this.Fa=this.Ha("ytp-slider-section");this.B=this.Ha("ytp-slider");this.qa=this.Ha("ytp-slider-handle");this.J=new g.zT(this.B,
!0);this.j=h?h:c;g.H(this,this.J);this.J.subscribe("dragmove",this.t2,this);this.T(this.element,"keydown",this.u2);this.T(this.element,"wheel",this.s2);this.init()};
jW=function(a){iW.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.I=a;this.D=g.bf("P");this.Ma=Cba(this.Ba,this);g.Sq(this.B,"ytp-speedslider");g.Sq(this.D,"ytp-speedslider-text");a=this.B;a.parentNode&&a.parentNode.insertBefore(this.D,a.nextSibling);zRa(this);this.T(this.I,"onPlaybackRateChange",this.updateValues)};
zRa=function(a){a.D.textContent=ARa(a,a.j)+"x"};
ARa=function(a,b){a=Number(g.pe(b,a.u,a.C).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))};
BRa=function(a){g.aR.call(this,{G:"div",S:"ytp-speedslider-component"});this.j=new jW(a);g.H(this,this.j);this.element.appendChild(this.j.element)};
CRa=function(a){var b=new BRa(a);NU.call(this,a,b,"Personalizada");g.H(this,b)};
DRa=function(a,b){var c=new CRa(a);g.eW.call(this,"Velocidade de reprodu\u00e7\u00e3o",g.rT(a).bL,a,b,"Personalizada",function(){g.RU(b,c)});
a.N("web_settings_menu_icons")&&eT(this,{G:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{G:"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.H(this,c);this.I=a;this.C=this.j=this.K=null;this.D=this.I.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Sa);this.Sa()};
FRa=function(a,b){var c=ERa(b);a.options[c]?a.Rj(c):b===a.C&&a.j&&(a.Rj(a.j),a.qe(b.toString()))};
HRa=function(a){g.fW(a,a.D.map(ERa));a.j=null;a.C=null;var b=a.I.getPlaybackRate();a.D.includes(b)||(GRa(a,b),g.eW.prototype.uh.call(a,a.j))};
GRa=function(a,b){a.C=b;a.j=g.MP("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.D.map(ERa);b.unshift(a.j);g.fW(a,b)};
ERa=function(a){return a.toString()};
JRa=function(a,b,c,d){var e=new g.OU(b,void 0,"Substituir no v\u00eddeo");g.eW.call(this,d.text||"",a,b,c,"Substituir no v\u00eddeo",function(){g.RU(c,e)});
var f=this;g.Sq(this.element,"ytp-subtitles-options-menu-item");this.K=d.option.toString();a=d.options;this.settings=g.ac(a,this.getKey,this);this.D=e;g.H(this,this.D);b=new g.cT({G:"div",S:"ytp-menuitemtitle",Aa:"Permitir estilo de legendas diferente, se especificado pelo v\u00eddeo."},0);g.H(this,b);this.D.rd(b,!0);this.C=new g.cT({G:"div",S:"ytp-menuitem",Y:{role:"menuitemradio",tabindex:"0"},X:[{G:"div",S:"ytp-menuitem-label",Aa:"Ativ."}]},-1);g.H(this,this.C);this.D.rd(this.C,!0);this.T(this.C.element,
"click",function(){IRa(f,!0)});
this.j=new g.cT({G:"div",S:"ytp-menuitem",Y:{role:"menuitemradio",tabindex:"0"},X:[{G:"div",S:"ytp-menuitem-label",Aa:"Desativ."}]},-2);g.H(this,this.j);this.D.rd(this.j,!0);this.T(this.j.element,"click",function(){IRa(f,!1)});
g.fW(this,g.kn(a,this.getKey))};
IRa=function(a,b){a.ra("settingChange",a.K+"Override",!b);a.Lb.Fj()};
kW=function(a,b){g.OU.call(this,a,void 0,"Op\u00e7\u00f5es");var c=this;this.Nt={};for(var d=0;d<g.iV.length;d++){var e=g.iV[d],f=new JRa(-d,a,b,e);g.H(this,f);f.subscribe("settingChange",this.nk,this);this.Nt[e.option.toString()]=f;this.rd(f,!0)}a=new g.cT(g.dT(),-g.iV.length,"Repor");g.H(this,a);a.Ta("click",function(){c.nk("reset",!0)});
this.rd(a,!0)};
lW=function(a,b){g.eW.call(this,"Traduzir automaticamente",0,a,b);this.I=a;this.languages={};a.xb(this.element,this,127301);a.Za(this.element,!0)};
KRa=function(a,b){a.languages=g.ac(b,a.getKey,a);g.fW(a,g.kn(b,a.getKey))};
MRa=function(a,b){var c=new kW(a,b),d=["A defini\u00e7\u00e3o aplica-se apenas ao v\u00eddeo atual. Ajuste a visibilidade das legendas em "," para todos os v\u00eddeos."],e;g.QM(a.W())&&(e={G:"div",S:"ytp-panel-footer-content",X:[{G:"span",Aa:d[0]},{G:"a",S:"ytp-panel-footer-content-link",Aa:"Defini\u00e7\u00f5es",Y:{href:"/account_playback"}},{G:"span",Aa:d[1]}]});g.eW.call(this,"Legendas",g.rT(a).SUBTITLES,a,b,"Op\u00e7\u00f5es",function(){g.RU(b,c)},e);
var f=this;this.I=a;this.Lb=b;this.tracks={};this.K=new g.Kq(function(){LRa(f,!1)},3E3);
g.H(this,this.K);this.V=new g.X({G:"div",X:[{G:"span",Aa:"Legendas"},{G:"span",S:"ytp-menuitem-label-count",Aa:"{{content}}"}]});g.H(this,this.V);g.bT(this,this.V);a.N("web_settings_menu_icons")&&eT(this,TLa.includes("pt-PT")?{G:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{G:"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"}}]}:{G:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{G:"path",Y:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.j=new lW(a,b);g.H(this,this.j);this.j.subscribe("select",this.v2,this);this.D=c;g.H(this,this.D);this.D.subscribe("settingChange",this.nk,this);b.subscribe("show",this.K8,this);this.T(a,"videodatachange",this.Sa);this.T(a,"onApiChange",this.Sa);this.T(a,"onCaptionsTrackListChanged",
this.Sa);this.T(a,"captionschanged",this.Sa);a.xb(this.element,this,127300);this.Sa()};
NRa=function(a){return Object.values(a.tracks).find(function(b){return"en"===b.languageCode&&"asr"===b.kind})};
mW=function(a,b){a.I.setOption("captions","track",b)};
LRa=function(a,b){a.I.setOption("captions","sampleSubtitles",b)};
ORa=function(a){g.TU.call(this,a,"ytp-settings-menu");var b=this;this.cg=new g.OU(this.I);this.TP=this.settingsButton=null;this.isInitialized=this.CI=!1;g.H(this,this.cg);this.hide();g.RU(this,this.cg);a.xb(this.element,this,108341,!0);this.subscribe("show",function(c){b.Qg(c)});
this.T(a,"highlightSettingsMenu",function(){b.CI=!0;b.yd()});
this.I.N("web_player_enable_open_menu_item_from_command")&&this.T(a,"openSettingsMenuItem",function(c){if(c&&(b.CI=!0,b.yd(),"menu_item_video_quality_advanced"===c)){var d;null==(d=b.TP)||d.open()}})};
PRa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
g.nW=function(a,b){g.X.call(this,{G:"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:[ULa()]});this.I=a;this.tooltip=b.Hc();this.T(a,"videodatachange",this.Sa);this.T(a,"appresize",this.Sa);this.T(a,"promotooltipacceptbuttonclicked",this.j);this.T(a,"onApiChange",this.Sa);this.T(a,"onCaptionsTrackListChanged",this.Sa);this.T(a,"captionschanged",this.Sa);
this.I.xb(this.element,this,127299);this.Sa();this.Ta("click",this.onClick);g.tb(this,g.kT(b.Hc(),this.element))};
QRa=function(a){return a.I.W().N("html5_honor_caption_availabilities_in_audio_track")?null!=g.fU(a.I.Fb())?!!a.I.getOption("captions","tracklist",{includeAsr:!0}).length:!1:null!=g.fU(a.I.Fb())};
g.pW=function(a,b,c){c=void 0===c?350:c;g.X.call(this,{G:"div",Na:["ytp-time-display","notranslate"],X:[{G:"span",S:"ytp-time-clip-icon",Aa:"{{clipicon}}"},{G:"span",X:[{G:"span",S:"ytp-time-current",Aa:"{{currenttime}}"},{G:"span",S:"ytp-time-separator",Aa:" / "},{G:"span",S:"ytp-time-duration",Aa:"{{duration}}"}]},{G:"span",S:"ytp-clip-watch-full-video-button-separator",Aa:"\u2022"},{G:"span",S:"ytp-clip-watch-full-video-button",Aa:"{{watchfullvideo}}"}]});this.api=a;this.K=c;this.liveBadge=new g.X({G:"button",
Na:["ytp-live-badge","ytp-button"],Y:{disabled:"true"},Aa:"{{content}}"});this.j=null;this.jD=this.u=!1;this.J=this.D=null;this.isPremiere=!1;this.Hb=this.C=this.B=null;this.V=this.Ha("ytp-clip-watch-full-video-button");this.liveBadge.qe("Em direto");g.H(this,this.liveBadge);this.liveBadge.Ja(this.element);this.tooltip=b.Hc();this.Ta("click",this.onClick);this.T(this.V,"click",this.n9);this.T(a,"presentingplayerstatechange",this.Bc);this.T(a,"appresize",this.Bc);this.T(a,"onLoopRangeChange",this.onLoopRangeChange);
this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Bc();a=a.getLoopRange();b=this.Hb!==a;this.Hb=a;b&&oW(this);this.api.N("web_modern_miniplayer")&&(this.element.hidden=!0)};
oW=function(a){a.updateValue("clipicon",{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},X:[{G:"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.jD&&!a.u?a.updateValue("watchfullvideo","Ver stream em direto"):a.updateValue("watchfullvideo","Veja o v\u00eddeo completo");g.Wq(a.element,"ytp-clip",qW(a));g.Wq(a.element,"ytp-live",rW(a))};
rW=function(a){var b=a.api.W().N("enable_linear_program_progress");return a.jD&&!qW(a)&&(!b||!a.u)};
qW=function(a){return!!a.Hb&&!!a.Hb.postId&&2!==a.api.getPresentingPlayerType()&&(!a.Hb.type||"clips"===a.Hb.type)};
SRa=function(a,b,c){g.X.call(this,{G:"div",S:"ytp-volume-panel",Y:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},X:[{G:"div",S:"ytp-volume-slider",X:[{G:"div",S:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.j=b;this.K=c;this.qm=!1;this.oa=this.volume=0;this.J=null;this.B=this.u=this.isDragging=!1;this.j=b;this.K=c;this.C=b.Mg();this.V=this.Ha("ytp-volume-slider");this.qa=this.Ha("ytp-volume-slider-handle");
this.D=new g.zT(this.V,!0);g.H(this,this.D);this.D.subscribe("dragstart",this.P8,this);this.D.subscribe("dragmove",this.z2,this);this.D.subscribe("dragend",this.O8,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.VS);this.T(a,"fullscreentoggled",this.wr);this.T(a,"onShowControls",this.qU);this.T(a,"onHideControls",this.qU);this.T(this.element,"keydown",this.A2);this.T(this.element,"focus",function(){sW(d,d.u,d.isDragging,!0,d.j.qm())});
this.T(this.element,"blur",function(){sW(d,d.u,d.isDragging,!1,d.j.qm())});
this.VS(a.qb().getPlayerSize());RRa(this,a.getVolume(),a.isMuted());g.tb(this,g.kT(b.Hc(),this.element))};
RRa=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" som desativado":"");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};
TRa=function(a,b){g.Wq(a.element,"ytp-volume-control-hover",b);sW(a,b,a.isDragging,a.B,a.j.qm())};
sW=function(a,b,c,d,e){var f=a.u||a.isDragging||a.B||a.qm;a.u=b;a.isDragging=c;a.B=d;a.qm=e;b=a.u||a.isDragging||a.B||a.qm;f!==b&&(b?a.J=a.T(a.element,"wheel",a.w2):(a.Mc(a.J),a.J=null),g.Wq(a.K,"ytp-volume-slider-active",b))};
g.tW=function(a,b){var c=a.W(),d=g.MM(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.B&&e.push("no-link");g.FM(c)&&e.push("ytp-youtube-music-button");var f={title:"",target:c.ea,"data-priority":"5","data-sessionlink":"feature=player-button"};c.B||(f.title="youtube.com"===d?"Ver no YouTube":g.MP("Ver em $WEBSITE",{WEBSITE:d}),f.href="{{url}}");g.X.call(this,{G:"a",Na:e,Y:f,Aa:"{{logoSvg}}"});this.j=null;this.api=a;this.visible=!1;a.xb(this.element,
this,28666);c.B||(this.j=this.Ta("click",this.onClick));this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.onVideoDataChange);this.T(a,"onLoopRangeChange",this.onVideoDataChange);this.T(a,"appresize",this.Kb);this.onVideoDataChange();c.B||g.tb(this,g.kT(b.Hc(),this.element));this.Kb()};
URa=function(a,b,c){g.PK.call(this);var d=this;this.I=a;this.B=b;this.sf=c;this.ob=NaN;this.rb=this.kb=null;this.u=new ORa(this.I);this.Pc=new g.OV(this.I,this.B);this.qa=this.oa=this.K=null;this.Mj=new g.pW(this.I,this.B);this.Ya=this.playButton=this.J=this.D=this.Va=this.Oa=null;this.Ba=new sQa(this.I,this.B);this.eb=new g.CV(this.I,this.B);this.Af=new g.Iq(this.uw,null,this);this.ea=null;c=a.W();this.sf.subscribe("autohideupdate",this.Jn,this);var e=!a.Nb().isCued(),f;g.FM(c)||a.W().N("html5_player_dynamic_bottom_gradient")?
this.rb=f=new g.xV(a):f=new g.X({G:"div",S:"ytp-gradient-bottom"});g.H(this,f);g.XS(a,f.element,9);this.Fa=new g.yR(f,250,e,100);g.H(this,this.Fa);this.C=new g.X({G:"div",S:"ytp-chrome-bottom",X:[{G:"div",S:"ytp-chrome-controls"}]});g.H(this,this.C);g.XS(a,this.C.element,9);this.Ga=new g.yR(this.C,250,e,100);g.H(this,this.Ga);this.Ma=this.C.element.children[0];g.tb(this.u,function(){a.hn()===d.u&&(a.EK=null)});
g.H(this,this.u);a.EK=this.u;g.XS(a,this.u.element,6);this.u.subscribe("show",function(m){d.B.Hc().uQ(!m);b.pJ(d.u,m)});
g.H(this,this.Pc);this.Pc.Ja(this.C.element,0);e=new g.BV(a,b);g.H(this,e);g.XS(a,e.element,4);e=new g.XQ({G:"div",S:"ytp-left-controls"});g.H(this,e);e.Ja(this.Ma);f=new g.JV(a,b,!1);g.H(this,f);f.Ja(e.element);a.N("web_render_jump_buttons")&&(this.oa=new DV(a,b,g.xL(a.W().experiments,"web_jump_button_backward_amount")||-10),g.H(this,this.oa),this.oa.Ja(e.element));c.Va||(this.playButton=new g.IV(a,b),g.H(this,this.playButton),this.playButton.Ja(e.element));a.N("web_render_jump_buttons")&&(this.qa=
new DV(a,b,g.xL(a.W().experiments,"web_jump_button_forward_amount")||10),g.H(this,this.qa),this.qa.Ja(e.element));f=new g.JV(a,b,!0);g.H(this,f);f.Ja(e.element);f=new g.X({G:"span",S:"ytp-volume-area"});g.H(this,f);f.Ja(e.element);if(!c.Fd&&(this.K=new g.HV(a,b),g.H(this,this.K),this.K.Ja(f.element),c.eb&&!c.V)){var h=new SRa(a,b,this.C.element);this.Ya=h;g.H(this,h);h.Ja(f.element);f=new g.zT(f.element);g.H(this,f);f.subscribe("hoverstart",function(){var m;null==(m=d.Ya)||TRa(m,!0)});
f=new g.zT(e.element);g.H(this,f);f.subscribe("hoverend",function(){var m;null==(m=d.Ya)||TRa(m,!1)})}g.H(this,this.Mj);
this.Mj.Ja(e.element);this.j=new g.XQ({G:"div",S:"ytp-right-controls"});g.H(this,this.j);this.Oa=new zV(a,b,this.Pc);g.H(this,this.Oa);this.Oa.Ja(e.element);c.N("web_key_moments_markers")&&(this.Va=new EV(a,b,this.Pc),g.H(this,this.Va),this.Va.Ja(e.element));this.j.Ja(this.Ma);e=new g.nW(a,b);g.H(this,e);e.Ja(this.j.element);e=new cW(a,b,this.u);g.H(this,e);PRa(this.u,e);e.Ja(this.j.element);var l=new nQa(a);g.H(this,l);g.XS(a,l.element,5);l.subscribe("show",function(m){b.rq(l,m)});
e=new GV(a,b,l);g.H(this,e);e.Ja(this.j.element);e=a.getVideoData();if(c.Km||e.Dd&&"1"===c.controlsType)this.D=new g.tW(a,b),g.H(this,this.D),this.D.Ja(this.j.element);g.H(this,this.Ba);c.showMiniplayerButton&&(this.J=new FV(a,b),g.H(this,this.J),this.J.Ja(this.j.element));this.Ba.Ja(this.j.element);e.gR||this.Ba.hide();c.wk&&(e=new bW(a,b,this.u),g.H(this,e),e.Ja(this.j.element));c.Nl&&(c=new vV(a,b),g.H(this,c),c.Ja(this.j.element));g.H(this,this.eb);this.eb.Ja(this.j.element);g.H(this,this.Af);
this.T(a,"appresize",this.Kb);this.T(a,"fullscreentoggled",this.Kb);this.T(a,"presentingplayerstatechange",this.LK);this.T(a,"videodatachange",this.onVideoDataChange);this.Kb()};
VRa=function(a,b){a.I.Nb().isCued()||b?b&&(a.Ga.hide(),a.Fa.hide(),a.K&&a.K.lc(!1),a.D&&a.D.lc(!1),a.J&&a.J.lc(!1),a.B.Hc().Pk(a.Bb())):b||(a.Ga.show(),a.Fa.show(),a.K&&a.K.lc(!0),a.D&&a.D.lc(!0),a.J&&a.J.lc(!0),a.Jn())};
XRa=function(a){var b=a.I.qb().getPlayerSize().width;return Math.max(b-2*WRa(a),100)};
WRa=function(a){var b=a.B.Mg(),c=a.I.getVideoData().Dd,d=0;a.B.Mg()&&g.US(a.I)&&(d=(a.I.qb().getPlayerSize().width-a.I.getVideoContentRect().width)/2);return 12*(c?0:b?2:1)+d};
YRa=function(a){var b=a.B.Mg()?72:50;a=a.I.W();g.QM(a)&&(b=62,g.CM(a)&&(b=54));return b};
ZRa=function(a,b){bV.call(this,a,b,!1);var c=this;this.suggestedActions={};this.T(this.I,"videodatachange",this.onVideoDataChange);this.T(this.I,g.PG("suggested_action_button_visible"),function(d){d=d.id;c.text=d;nPa(c);c.onClickCommand=c.suggestedActions[d];c.enabled=!0;c.Qg()});
this.T(this.I,g.QG("suggested_action_button_visible"),function(d){c.enabled=!1;c.Qg();c.I.N("suggested_actions_clear_cuerange_after_use")&&c.I.removeCueRange(d.id)})};
$Ra=function(a){a.suggestedActions={};a.I.Te("suggested_action_button_visible")};
vW=function(a){g.X.call(this,{G:"div",S:uW.TITLE,X:[{G:"div",S:uW.TEXT,X:[{G:"a",Na:[uW.LINK,uW.SESSIONLINK],Y:{target:a.W().ea,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},Aa:"{{title}}"},{G:"div",S:uW.SUBTEXT,X:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Ha(uW.LINK);a.xb(this.element,this,23851);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.Sa()};
aSa=function(a){a.updateValue("channelLink","");a.updateValue("channelName","");g.CM(a.api.W())?a.updateValue("channelTitleFocusable","0"):a.updateValue("channelTitleFocusable","-1")};
g.wW=function(a,b){g.X.call(this,{G:"div",X:[{G:"div",S:"ytp-tooltip-text-wrapper",Y:{"aria-hidden":"{{ariaHidden}}"},X:[{G:"div",S:"ytp-tooltip-edu",X:[{G:"svg",Y:{height:"100%",viewBox:"0 0 36 36",width:"100%"},X:[{G:"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"}}]},{G:"span",Aa:"{{eduText}}"}]},{G:"div",S:"ytp-tooltip-image"},{G:"div",S:"ytp-tooltip-title",X:[{G:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{G:"g",
X:[{G:"rect",Y:{fill:"none",height:"24",width:"24",x:"0"}}]},{G:"g",X:[{G:"g",X:[{G:"polygon",Y:{points:"19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25"}},{G:"polygon",Y:{points:"19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75"}},{G:"path",Y:{d:"M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z"}}]}]}]},{G:"span",Aa:"{{title}}"}]},{G:"span",S:"ytp-tooltip-text",
Aa:"{{text}}"}]},{G:"div",S:"ytp-tooltip-bg",X:[{G:"div",S:"ytp-tooltip-duration",Aa:"{{duration}}"}]}]});var c=this;this.api=a;this.Va=b;this.env=this.api.W();this.Oa=this.env.u;this.bg=this.Ha("ytp-tooltip-bg");this.Ya=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.qa=function(d){(d=g.QP?d.relatedTarget:iB(d))&&g.rf(c.j,d)||c.Co()};
this.D=function(d){3===c.type&&c.Co();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.D),d.addEventListener("mouseout",c.qa),d.removeEventListener("focus",c.D),d.addEventListener("blur",c.qa),bSa(c,d,2))};
this.Ga=function(){c.Co()};
this.j=null;this.J=new g.yR(this,100);this.type=null;this.oa=!1;this.u=null;this.C=NaN;this.B="";this.MK=this.api.qb().getPlayerSize().width;this.V=!0;this.scale=1;this.K=160;this.Ba=90;this.Fa=new g.Kq(this.Y5,250,this);this.Ma=new g.Kq(this.Co,5E3,this);g.H(this,this.J);g.H(this,this.Fa);g.H(this,this.Ma);uM&&(a=this.Ha("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"));AV(this.api)&&(this.K=243,this.Ba=141,g.Sq(this.api.getRootNode(),"ytp-bigboards"))};
KU=function(a){a.element.setAttribute("aria-live","polite")};
eSa=function(a,b,c,d,e,f,h,l,m){if(!a.Oa||a.env.V){3===a.type&&a.Co();1!==a.type&&(g.Qq(a.element,"ytp-tooltip ytp-bottom"),(AV(a.api)||a.env.N("web_modern_scrubber")&&a.api.isInline())&&g.Sq(a.element,"ytp-rounded-tooltip"),a.type=1,a.V&&a.J.show(),a.u&&a.u.dispose(),a.u=a.api.ek(),a.u&&a.u.subscribe("l",a.GX,a));if(m){var n=g.to(a.bg).height||a.Ba;a.Ya.style.bottom=n+2+"px"}a.update({text:d,title:null!=h?h:"",eduText:null!=m?m:""});g.Wq(a.text,"ytp-tooltip-text-no-title",1===a.type&&!h);a.env.N("web_modern_scrubber")&&
a.api.isInline()&&g.Sq(a.text,"ytp-modern-tooltip-text");g.Wq(a.element,"ytp-text-detail",!!e);d=-1;a.u&&(d=YN(a.u,a.K*a.scale),a.env.N("web_l3_storyboard")&&4===a.u.levels.length&&(d=a.u.levels.length-1),d=Eya(a.u,d,c));cSa(a,d);if(l)switch(c=g.to(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"}dSa(a,!!e,b,f)}};
g.xW=function(a){1===a.type&&a.Co()};
g.kT=function(a,b){if(a.Oa)return function(){};
b.addEventListener("mouseover",a.D);b.addEventListener("focus",a.D);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.j===b&&a.Co();b.removeEventListener("mouseover",a.D);b.removeEventListener("focus",a.D)}};
XU=function(a,b,c){if(a.type)if(3===a.type)a.Co();else return;bSa(a,b,3,c)};
bSa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.EB("showElementTooltip called with non-element.",b.toString()),g.sG(a);else{isNaN(a.C)||(a.C=NaN,a.bg.style.background="");a.j=b;a.oa=!!d;d?a.B=d:(a.B=b.getAttribute("title"),b.removeAttribute("title"));g.Qq(a.element,"ytp-tooltip");g.Sq(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.Wq(a.element,"ytp-tooltip-image-enabled",
!!e);b=b.getAttribute("data-tooltip-opaque");g.Wq(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.Ga);a.V&&(fSa(a),a.J.show(0))}};
fSa=function(a){if(a.j){var b=a.j.getAttribute("data-tooltip-text");if(a.B&&a.j.getAttribute("aria-label")!==a.B)var c=a.B;var d=a.j.getAttribute("aria-keyshortcuts"),e=a.j.getAttribute("data-title-no-tooltip");d&&e&&(c=g.MP("$BUTTON_TITLE atalho de teclado $SHORTCUT_KEY",{BUTTON_TITLE:e,SHORTCUT_KEY:d}));c&&a.j.setAttribute("aria-label",c);if(b&&!a.oa){d=a.j;a.updateValue("text",b);c=d.getAttribute("data-duration");a.update({title:a.B,duration:c});d=d.getAttribute("data-preview");e=a.K*a.scale;var f=
a.Ba*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.Tq(a.element,["ytp-text-detail","ytp-preview"]);g.Wq(a.element,"ytp-has-duration",!!c)}else a.updateValue("text",a.B),g.Vq(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);dSa(a,!!b)}};
dSa=function(a,b,c,d){var e=Math.min(a.MK,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Va.Dw(a.element,a.j,c,1===a.type,d);a.element.style.top?g.Sq(a.element,"ytp-bottom"):a.element.style.bottom&&g.Sq(a.element,"ytp-top");3===a.type&&a.Ma.start()};
lT=function(a){a.j&&!a.oa&&a.j.hasAttribute("title")&&(a.B=a.j.getAttribute("title")||"",a.j.removeAttribute("title"),a.V&&fSa(a))};
cSa=function(a,b){g.Wq(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.C)){a.C=b;b=a.K*a.scale;var c=a.Ba*a.scale,d=Aya(a.u,a.C,b);iQa(a.bg,d,b,c,!0);a.Fa.start()}};
gSa=function(a){var b=a.j;3===a.type&&a.Ma.stop();a.api.removeEventListener("appresize",a.Ga);a.oa||b.setAttribute("title",a.B);a.B="";a.j=null};
iSa=function(a,b){g.X.call(this,{G:"button",Na:["ytp-watch-later-button","ytp-button"],Y:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.xM(a.W()))},X:[{G:"div",S:"ytp-watch-later-icon",Aa:"{{icon}}"},{G:"div",S:"ytp-watch-later-title",Aa:"Ver mais tarde"}]});this.I=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.Hc();KU(this.tooltip);a.xb(this.element,this,28665);this.Ta("click",this.onClick,this);this.T(a,"videoplayerreset",this.xw);
this.T(a,"appresize",this.KB);this.T(a,"videodatachange",this.KB);this.T(a,"presentingplayerstatechange",this.KB);this.KB();a=this.I.W();var c=g.sB("yt-player-watch-later-pending");a.C&&c?(yva(),hSa(this)):this.Sa(2);g.Wq(this.element,"ytp-show-watch-later-title",g.xM(a));g.tb(this,g.kT(b.Hc(),this.element))};
jSa=function(a){var b=a.I.getPlayerSize(),c=a.I.W(),d=a.I.getVideoData(),e=g.xM(c)&&g.TS(a.I)&&g.yP(a.I.Nb(),128),f=c.B;return c.hc&&240<=b.width&&!d.isAd()&&d.hc&&!e&&!(d.Dd&&c.oa)&&!g.US(a.I)&&!f};
kSa=function(a,b){g.JU(g.LM(a.I.W()),"wl_button",function(){yva({videoId:b});window.location.reload()})};
hSa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Sa(3);var b=a.I.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.I.dn(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Sa(2);a.I.W().J&&a.I.Qa("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Sa(1);a.I.W().u&&XU(a.tooltip,a.element);a.I.W().J&&a.I.Qa("WATCH_LATER_VIDEO_ADDED")};
UR(c,b).then(d,function(){a.isRequestPending=!1;a.Sa(4,"Ocorreu um erro. Tente mais tarde.");a.I.W().J&&a.I.Qa("WATCH_LATER_ERROR","Ocorreu um erro. Tente mais tarde.")})}};
lSa=function(a,b){if(b!==a.icon){switch(b){case 3:var c=VLa();break;case 1:c=FEa();break;case 2:c={G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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={G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",
wc:!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.yW=function(a){g.xU.call(this,a);var b=this;this.vH=(this.Qq=g.xM(this.api.W()))&&(this.api.W().u||IA()||GA());this.UL=48;this.VL=69;this.Wo=null;this.Pt=[];this.Yc=new g.AU(this.api);this.Bv=new YU(this.api);this.Th=new g.X({G:"div",S:"ytp-chrome-top"});this.eF=[];this.tooltip=new g.wW(this.api,this);this.backButton=this.lA=null;this.channelAvatar=new ROa(this.api,this);this.title=new vW(this.api,this);this.Gi=new g.XQ({G:"div",S:"ytp-chrome-top-buttons"});this.Ni=this.shareButton=this.uo=null;
this.wh=new LOa(this.api,this,this.Th.element);this.overflowButton=this.Qh=null;this.dh="1"===this.api.W().controlsType?new URa(this.api,this,this.sf):null;this.contextMenu=new g.VU(this.api,this,this.Yc);this.FL=!1;this.KG=new g.X({G:"div",Y:{tabindex:"0"}});this.JG=new g.X({G:"div",Y:{tabindex:"0"}});this.nE=null;this.xP=this.vO=this.rG=!1;var c=a.qb(),d=a.W(),e=a.getVideoData();this.Qq&&(g.Sq(a.getRootNode(),"ytp-embed"),g.Sq(a.getRootNode(),"ytp-embed-playlist"),this.vH&&(g.Sq(a.getRootNode(),
"ytp-embed-overlays-autohide"),g.Sq(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.UL=60,this.VL=89);a.W().B&&g.Sq(a.getRootNode(),"ytp-embed-pfl");this.api.W().u&&(g.Sq(a.getRootNode(),"ytp-mobile"),this.api.W().V&&g.Sq(a.getRootNode(),"ytp-embed-mobile"));this.Ig=e&&e.Ig;g.H(this,this.Yc);g.XS(a,this.Yc.element,4);g.H(this,this.Bv);g.XS(a,this.Bv.element,4);e=new g.X({G:"div",S:"ytp-gradient-top"});g.H(this,e);g.XS(a,e.element,1);this.YQ=new g.yR(e,250,!0,100);g.H(this,this.YQ);g.H(this,
this.Th);g.XS(a,this.Th.element,1);this.XQ=new g.yR(this.Th,250,!0,100);g.H(this,this.XQ);g.H(this,this.tooltip);g.XS(a,this.tooltip.element,4);var f=new NPa(a);g.H(this,f);g.XS(a,f.element,5);f.subscribe("show",function(n){b.rq(f,n)});
this.eF.push(f);this.lA=new lV(a,this,f);g.H(this,this.lA);d.Gm&&(this.backButton=new HOa(a),g.H(this,this.backButton),this.backButton.Ja(this.Th.element));this.Qq||this.lA.Ja(this.Th.element);g.H(this,this.channelAvatar);this.channelAvatar.Ja(this.Th.element);g.H(this,this.title);this.title.Ja(this.Th.element);this.Qq&&(e=new hQa(this.api,this),g.H(this,e),e.Ja(this.Th.element));g.H(this,this.Gi);this.Gi.Ja(this.Th.element);var h=new g.pV(a,this);g.H(this,h);g.XS(a,h.element,5);h.subscribe("show",
function(n){b.rq(h,n)});
this.eF.push(h);this.uo=new iSa(a,this);g.H(this,this.uo);this.uo.Ja(this.Gi.element);this.shareButton=new g.oV(a,this,h);g.H(this,this.shareButton);this.shareButton.Ja(this.Gi.element);this.Ni=new g.WU(a,this);g.H(this,this.Ni);this.Ni.Ja(this.Gi.element);this.Qq&&this.lA.Ja(this.Gi.element);g.H(this,this.wh);this.wh.Ja(this.Gi.element);d.Io&&(e=new uV(a),g.H(this,e),g.XS(a,e.element,4));d.B||(e=new MOa(a,this,this.wh),g.H(this,e),e.Ja(this.Gi.element));this.Qh=new JPa(a,this);g.H(this,this.Qh);
g.XS(a,this.Qh.element,5);this.Qh.subscribe("show",function(){b.rq(b.Qh,b.Qh.vj())});
this.eF.push(this.Qh);this.overflowButton=new g.kV(a,this,this.Qh);g.H(this,this.overflowButton);this.overflowButton.Ja(this.Gi.element);this.dh&&g.H(this,this.dh);"3"===d.controlsType&&(e=new nV(a,this),g.H(this,e),g.XS(a,e.element,9));g.H(this,this.contextMenu);this.contextMenu.subscribe("show",this.m_,this);e=new MR(a,new zU(a));g.H(this,e);g.XS(a,e.element,4);this.KG.Ta("focus",this.J4,this);g.H(this,this.KG);this.JG.Ta("focus",this.K4,this);g.H(this,this.JG);var l;(this.Xq=d.Pi?null:new g.hV(a,
c,this.contextMenu,this.sf,this.Yc,this.Bv,function(){return b.fm()},null==(l=this.dh)?void 0:l.Pc))&&g.H(this,this.Xq);
this.Qq||(this.VU=new oPa(this.api,this),g.H(this,this.VU),g.XS(a,this.VU.element,4),this.lZ=new aQa(this.api,this),g.H(this,this.lZ),g.XS(a,this.lZ.element,4));this.EZ=new ZRa(this.api,this);g.H(this,this.EZ);g.XS(a,this.EZ.element,4);if(this.Qq){var m=new xPa(a,this.api.W().Eb);g.H(this,m);g.XS(a,m.element,5);m.subscribe("show",function(n){b.rq(m,n)});
c=new BPa(a,this,m);g.H(this,c);g.XS(a,c.element,4)}this.Ot.push(this.Yc.element);this.T(a,"fullscreentoggled",this.wr);this.T(a,"offlineslatestatechange",function(){b.api.lD()&&mU(b.sf,128,!1)});
this.T(a,"cardstatechange",function(){b.El()});
this.T(a,"resize",this.m7);this.T(a,"videoplayerreset",this.xw);this.T(a,"showpromotooltip",this.I7)};
mSa=function(a){var b=a.api.W(),c=g.yP(a.api.Nb(),128);return b.C&&c&&!a.api.isFullscreen()};
nSa=function(a){if(a.kh()&&!g.US(a.api)&&a.Qh){var b=a.api.N("web_player_hide_overflow_button_if_empty_menu");!a.uo||b&&!jSa(a.uo)||KPa(a.Qh,a.uo);!a.shareButton||b&&!UPa(a.shareButton)||KPa(a.Qh,a.shareButton);!a.Ni||b&&!hPa(a.Ni)||KPa(a.Qh,a.Ni)}else{if(a.Qh){b=a.Qh;for(var c=g.u(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.uo&&!g.rf(a.Gi.element,a.uo.element)&&a.uo.Ja(a.Gi.element);a.shareButton&&!g.rf(a.Gi.element,a.shareButton.element)&&a.shareButton.Ja(a.Gi.element);
a.Ni&&!g.rf(a.Gi.element,a.Ni.element)&&a.Ni.Ja(a.Gi.element)}};
oSa=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Xn(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=oSa(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};
pSa=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.nE){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.nE=new OPa(d,a,a.api),g.H(a,a.nE),g.XS(a.api,
a.nE.element,9));var m;null==(m=a.nE)||SPa(m,d,c)}}};
g.zW=function(a){g.WT.call(this,a);this.chrome=null;this.load()};
AW=function(a){g.G.call(this);var b=this;this.Z=a;this.j=new Map;this.C=[];this.u=this.Z.experiments.sb("html5_onesie_trusted_hosts_for_all")||!ZL();this.ea=g.xL(this.Z.experiments,"html5_onesie_prewarm_interval_ms");this.V=new g.Kq(this.K,this.ea,this);this.J=-1;this.Rd={Ubb:function(){return b.j},
bcb:function(){return b.D},
Vbb:function(){return qSa}};
g.H(this,this.V);rSa(this,g.sB("yt-player-bandaid-host"));this.D=this.load();this.ea&&this.D.then(function(){b.K()})};
rSa=function(a,b){var c=null==b?void 0:b.primary;a.B(0,c);c=c?sSa(c):void 0;a.B(2,c);a.B(1,null==b?void 0:b.secondary)};
BW=function(a,b){return new g.pI("https://"+b+a.Z.Cl.baseUrl)};
tSa=function(a,b){a="https://"+rI(b.location)+"/initplayback?c="+g.NL(a.Z)+"&owc=1";ZS(a,"pw",function(c){c.ht=b.j})};
CW=function(a,b,c,d){ZS("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.wH||d.OV();a.C.push(e)},function(e){a.C.push(e.details)})};
sSa=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
vSa=function(a,b){var c,d,e,f,h,l;return g.Ha(function(m){if(1==m.j){c=BW(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,kA(c.kf(),d),2)}e=m.u;if(200!==e.xhr.status||!e.xhr.responseText)return m.return(Promise.reject(new g.EB("b204258371_no_host",c.kf(),e.xhr.status)));f=new g.pI(e.xhr.responseText);
h=rI(f);l=f.get("ms");f=BW(a,h);f.set("ms",l);return h&&uSa(h)?2!==b||DW(h)?m.return(f):m.return(Promise.reject(new g.EB("b204258371_untrusted",h,l))):m.return(Promise.reject(new g.EB("b204258371_invalid",h,l)))})};
wSa=function(a){var b=a.C;a.C=[];return b};
uSa=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
DW=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
xSa=function(a,b){this.location=a;this.j=b};
g.EW=function(a){this.tag=a};
zSa=function(a,b){ySa.apply(null,[6,a,b].concat(g.qa(g.Ia.apply(2,arguments))))};
ASa=function(a,b){ySa.apply(null,[5,a,b].concat(g.qa(g.Ia.apply(2,arguments))))};
ySa=function(a,b,c){var d=g.Ia.apply(3,arguments),e=6===a?"ERROR":"WARNING",f="b"+c;g.sG(new (Function.prototype.bind.apply(g.EB,[null,f].concat(g.qa(d)))),e);d.unshift(f);d=d.join(", ");e=BSa.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){}BSa.set(b,f);e=f}a<e||("function"===typeof d&&(d=d()),console.log("plyr."+b,d))};
FW=function(a,b,c,d){var e=this;this.policy=a;this.gb=b;this.C=void 0===d?!1:d;this.j=0;this.u=null;this.gf=[];this.B=null;this.Rd={jn:function(){return e.gb}};
(this.length=c?c:0)?1!==this.gb.length||this.gb[0].u||(this.gb[0].u=this.length):1===this.gb.length||g.ln(this.gb,function(f){return!!f.range})};
GW=function(a,b,c){a.u&&(yI(a.u,b),b=a.u,a.u=null);for(var d=!1,e=!1,f=0,h=0,l=g.u(a.gb),m=l.next();!m.done;m=l.next()){m=m.value;if(a.C&&m.range&&c)break;if(m.range&&f+m.u<=a.j)f+=m.u;else{if(CJ(m)&&!c&&a.j+b.totalLength-h<f+m.u){a.u=b.split(h).yl;break}var n=3===m.type||4===m.type;a:{var p=a;var q=a.j-f,t=n&&d&&!e&&1===b.j.length,v=b.totalLength-h;m.range&&(v=Math.min(m.u-q,v));q=new AJ(m.type,m.j,m.range,"reslice"+m.D,m.Pa,m.startTime,m.duration,m.dc+q,v,m.range?m.dc+q+v===m.range.length:!!c,m.Jj,
m.clipId);var y=zI(b,h,v),A=void 0;if(t)for(A=new xI([]),t=0;t<p.gf.length;t++)yI(A,p.gf[t].j);t=new rK(q,y,A);if(p.policy.useUmp&&p.gf.length&&(q=tK(p.gf[p.gf.length-1],t))){p.gf[p.gf.length-1]=q;p=v;break a}p.gf.push(t);p=v}a.j+=p;h+=p;f+=m.u;1===m.type&&(d=!0);n&&(e=!0);a.C&&!m.range&&c&&(a.gb.shift(),a.j=0);if(h===b.totalLength)break}}};
CSa=function(a){return a.length-a.j+a.gf.reduce(function(b,c){return b+c.j.totalLength},0)};
HW=function(a){g.G.call(this);var b=this;this.B=a;this.logger=new g.EW("onesie");this.Xc=new Map;this.j=!1;this.Jt=this.Ua=null;this.u=!1;this.Rd={pcb:function(c){var d;return null==(d=b.Xc.get(c))?void 0:d.xf}}};
DSa=function(a,b,c){a.Xc.get(b).cf=c};
JW=function(a,b){a.Xc.has(b)&&(IW?a.Xc.get(b).jr=[]:a.Xc.get(b).gf=new xI,ESa(a,b))};
GSa=function(a){for(var b=g.u(a.Xc),c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;(FSa?d.TF:d.cf)||JW(a,c)}};
HSa=function(a,b){b=a.Xc.get(b);if(!b)return 0;a=0;if(0<b.gb.length){b=g.u(b.gb);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.WH.length)for(c=g.u(b.WH),d=c.next();!d.done;d=c.next())a+=d.value.Gr||0;return a+b.iW};
ISa=function(a,b){if(!IW){var c;return(null==(c=a.Xc.get(b))?void 0:c.gf.totalLength)||0}var d;a=null==(d=a.Xc.get(b))?void 0:d.jr;if(!a||!a.length)return 0;for(b=d=0;b<a.length;b++)d+=a[b].data.totalLength;return d};
JSa=function(a,b){a=a.Xc.get(b);b=!FSa||!(null==a||!a.TF);return IW?b&&!(null==a||!a.jr.length):b&&!(null==a||!a.gf.totalLength)};
KSa=function(a,b){var c=a.Xc.get(b),d=HSa(a,b),e=!d&&!!c.bytesReceived,f=a.ji(b);return e&&a.j&&void 0!==f?f:(e||c.bytesReceived===d)&&c.Cy+ISa(a,b)===c.bytesReceived};
LSa=function(a,b,c,d){c.gb.push.apply(c.gb,g.qa(d));if(c.xf){a=g.u(d);for(var e=a.next();!e.done;e=a.next())b=void 0,d=c.xf,e=e.value,d.gb.push(e),d.length+=(null==(b=e.range)?void 0:b.length)||0}else c.xf=new FW(a.Jt,[].concat(g.qa(c.gb)),HSa(a,b),!(null==(e=a.Jt)||!e.ZA))};
MSa=function(a,b,c,d){var e,f=null==(e=a.Ua)?void 0:e.K.get(b);if(!f)return[];if(c.Cn){var h;return(null==(h=f.Gv(0,d))?void 0:h.gb)||[]}if(f.Dn()){if(0>c.xA||0>c.ju||0>c.durationMs||0>c.startMs||0>c.Gr)return JW(a,b),[];b=yJ(c.xA,c.Gr);var l;if(null==(l=a.Jt)?0:l.og){var m=c.JO||0;var n=b.length-m}return[new AJ(3,f,b,"makeSliceInfosMediaBytes",c.ju-1,c.startMs/1E3,c.durationMs/1E3,m,n,void 0,c.Jj,d)]}if(0>c.ju)return JW(a,b),[];var p;return(null==(p=a.Ua)?0:p.Jc)?(a=f.Kj,[new AJ(3,f,void 0,"makeSliceInfosMediaBytes",
c.ju,void 0,a,void 0,a*f.info.Wb,!0,c.Jj,d)]):[]};
NSa=function(a,b,c){a.Ua=b;a.Jt=c;b=g.u(a.Xc);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.YY),f=e.next();!f.done;f=e.next())f=MSa(a,c,f.value),LSa(a,c,d,f)}};
OSa=function(a,b,c){(a=a.Xc.get(b))&&!a.jh&&(IW?(b=0<a.jr.length?a.jr[a.jr.length-1]:null,!b||b.sM?a.jr.push({data:new xI([CI(c)]),sM:!1}):yI(b.data,c)):yI(a.gf,c),a.bytesReceived+=c.totalLength,a.PP=!0)};
ESa=function(a,b){if((b=a.Xc.get(b))&&!b.jh){b.jh=!0;b.cf&&b.cf();a:{b=g.u(a.Xc.values());for(var c=b.next();!c.done;c=b.next())if(!c.value.jh){b=!1;break a}b=!0}b&&a.B.tX()}};
KW=function(a,b){var c,d;null==(c=window.h5vcc)||null==(d=c.settings)||d.set(a,b)};
PSa=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.qa(new Uint8Array(c))));a.close()}return b};
QSa=function(){for(var a=LW.length;4>a;a++){var b=g.bf("VIDEO");b.load();LW.push(new g.GT(b))}};
RSa=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};c=f.B;if(b.Tk()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(b=b.Qe())&&b.isView()&&(b=b.mediaElement);if(b&&12<b.Iv().length&&g.zO(e))return{msg:"played-ranges"};if(!e.B)return null;if(!e.B.j||!c.j)return{msg:"non-dash"};a=a.j&&g.MO(f)&&dL();if(e.B.videoInfos[0].containerType!==c.videoInfos[0].containerType)if(a)f.ya("sgap",
{ierr:"container"});else return{msg:"container"};if(g.zO(f)&&g.zO(e))return{msg:"content-protection"};c=c.j[0];e=e.B.j[0];b=c.audio;d=e.audio;if(b.sampleRate!==d.sampleRate&&!g.SK)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};
MW=function(a){g.G.call(this);this.app=a;this.j=null;this.u=1};
SSa=function(){this.j=!1};
TSa=function(a){var b=new SSa;b.j=a.N("h5_gapless_support_types_diff");return b};
g.NW=function(a,b,c,d){d=void 0===d?!1:d;WP.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
USa=function(a,b,c,d,e,f){f=void 0===f?0:f;g.G.call(this);var h=this;this.policy=a;this.j=b;this.u=c;this.rf=e;this.D=f;this.C=this.B=null;this.currentVideoDuration=this.J=-1;this.K=!1;this.Qp=new tM;this.Bm=d-1E3*b.Hd();this.Qp.then(void 0,function(){});
this.timeout=new g.Kq(function(){h.Sg("timeout")},1E4);
g.H(this,this.timeout);this.V=isFinite(d);this.status={status:0,error:null}};
ZSa=function(a){var b,c,d,e,f,h,l,m,n;return g.Ha(function(p){if(1==p.j){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.OW.Qr("gtfta");return g.z(p,a.Qp,2)}g.OW.xq(b);c=a.j.Qe();if(c.ji())return a.Sg("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.C||!hL(a.C))return a.Sg("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.u.kt()!==a.C)return a.Sg("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error||
"")));d=VSa(a);e=d.lX;f=d.CU;h=d.kX;a.j.Ij(!1,!0);l=WSa(c,e,h,!a.u.getVideoData().isAd());a.u.setMediaElement(l);a.V&&(a.u.seekTo(a.u.getCurrentTime()+.001,{Qv:!0,WQ:3,ke:"gapless_pseudo"}),l.play()||oA());m=c.qc();m.cpn=a.j.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+h;a.u.ya("gapless",m);a.j.ya("gaplessTo",{cpn:a.u.getVideoData().clientPlaybackNonce});n=a.j.getPlayerType()===a.u.getPlayerType();XSa(a.j,f,!1,n,a.u.getVideoData().clientPlaybackNonce);XSa(a.u,a.u.getCurrentTime(),!0,n,a.j.getVideoData().clientPlaybackNonce);
g.Lf(function(){!a.u.getVideoData().Oa&&g.dQ(a.u.getPlayerState())&&YSa(a.u)});
PW(a,6);a.dispose();return p.return(Promise.resolve())})};
cTa=function(a){if(a.u.getVideoData().B){$Sa(a.u,a.C);PW(a,3);aTa(a);var b=bTa(a),c=b.kZ;b=b.s$;c.subscribe("updateend",a.Lx,a);b.subscribe("updateend",a.Lx,a);a.Lx(c);a.Lx(b)}};
aTa=function(a){a.j.unsubscribe("internalvideodatachange",a.Xu,a);a.u.unsubscribe("internalvideodatachange",a.Xu,a);a.j.unsubscribe("mediasourceattached",a.Xu,a);a.u.unsubscribe("statechange",a.Md,a)};
WSa=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.NW(a,b,c,d)};
PW=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.Qp.resolve())};
VSa=function(a){var b=a.j.Qe();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:QW(a.j,!0);c=Math.min(a.Bm/1E3,c)+b;var d=a.V?100:0;a=c-a.u.Tk()+d;return{e4:b,lX:a,CU:c,kX:Infinity}};
bTa=function(a){return{kZ:a.B.j.Od,s$:a.B.u.Od}};
RW=function(a){g.G.call(this);var b=this;this.app=a;this.D=this.u=this.j=null;this.K=!1;this.C=null;this.V=TSa(this.app.W());this.B=null;this.J=function(){g.Lf(function(){dTa(b)})}};
eTa=function(a,b,c,d,e){d=void 0===d?0:d;e=void 0===e?0:e;a.Yv()||SW(a);a.C=new tM;a.j=b;var f=c,h=0===e;h=void 0===h?!0:h;var l=a.app.td(),m=l.getVideoData().isLivePlayback?Infinity:1E3*QW(l,!0);f>m&&(f=m-200,a.K=!0);h&&l.getCurrentTime()>=f/1E3?a.J():(a.u=l,h&&(h=f,f=a.u,a.app.bb.addEventListener(g.PG("vqueued"),a.J),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.D=new g.NG(h,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(a.D)));h=d/=1E3;f=b.getVideoData().j;d&&f&&a.u&&(l=d,m=0,
b.getVideoData().isLivePlayback&&(h=Math.min(c/1E3,QW(a.u,!0)),m=Math.max(0,h-a.u.getCurrentTime()),l=Math.min(d,QW(b)+m)),h=ova(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.TW(d,!0);f={};a.u&&(f=g.UW(a.u.Gc().provider),h=a.u.getVideoData().clientPlaybackNonce,f={crt:(1E3*f).toFixed(),cpn:h});d.ya("queued",f);0!==b&&d.seekTo(b+.01,{Qv:!0,WQ:3,ke:"videoqueuer_queued"});a.B=new USa(a.V,a.app.td(),a.j,c,a.app,e);c=a.B;Infinity!==c.status.status&&
(PW(c,1),c.j.subscribe("internalvideodatachange",c.Xu,c),c.u.subscribe("internalvideodatachange",c.Xu,c),c.j.subscribe("mediasourceattached",c.Xu,c),c.u.subscribe("statechange",c.Md,c),c.j.subscribe("newelementrequired",c.LX,c),c.Xu());return a.C};
dTa=function(a){var b,c,d;g.Ha(function(e){switch(e.j){case 1:if(a.isDisposed()||!a.C||!a.j)return e.return();a.K&&VW(a.app.td(),!0,!1);b=null;if(!a.B){e.Ka(2);break}g.ya(e,3);return g.z(e,ZSa(a.B),5);case 5:g.za(e,2);break;case 3:b=c=g.Aa(e);case 2:if(!a.j)return e.return();g.OW.ql("vqsp",function(){WW(a.app,a.j)});
g.OW.ql("vqpv",function(){a.app.playVideo()});
b&&fTa(a.j,b.message);d=a.C;SW(a);d.resolve();return e.return(Promise.resolve())}})};
SW=function(a){if(a.u){if(a.D){var b=a.u;a.app.bb.removeEventListener(g.PG("vqueued"),a.J);b.removeCueRange(a.D)}a.u=null;a.D=null}a.B&&(6!==a.B.status.status&&(b=a.B,Infinity!==b.status.status&&1!==b.D&&b.Sg("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.FS(a.app,1)&&a.j!==a.app.td()&&a.j.dispose();a.j=null;a.K=!1};
gTa=function(a){var b;return(null==(b=a.B)?void 0:b.currentVideoDuration)||-1};
hTa=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.ud())return"vinm";if(0>=gTa(a))return"ivd";if(1!==c)return"upt";var d,e;null==(d=a.B)?e=void 0:e=5!==d.getStatus().status?"neb":null!=RSa(d.policy,d.j,d.u,d.Bm)?"pge":null;a=e;return null!=a?a:null};
iTa=function(){var a=hna();return!(!a||"visible"===a)};
kTa=function(a){var b=jTa();b&&document.addEventListener(b,a,!1)};
lTa=function(a){var b=jTa();b&&document.removeEventListener(b,a,!1)};
jTa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[XA+"VisibilityState"])return"";a=XA+"visibilitychange"}return a};
mTa=function(){g.SG.call(this);var a=this;this.fullscreen=0;this.pictureInPicture=this.j=this.u=this.inline=!1;this.B=function(){a.Qg()};
kTa(this.B);this.C=this.getVisibilityState(this.Mh(),this.isFullscreen(),this.Ag(),this.isInline(),this.zz(),this.xz())};
yMa=function(a){return!(a.Ag()||a.isInline()||a.isBackground()||a.zz()||a.xz())};
XW=function(a,b,c,d,e){e=void 0===e?[]:e;g.G.call(this);this.Z=a;this.Ic=b;this.B=c;this.segments=e;this.j=void 0;this.u=new Map;e.length&&(this.j=e[0])};
nTa=function(a,b,c,d){if(a.j&&!(b>c)){b=new XW(a.Z,b,c,a.j,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.j.videoData.clientPlaybackNonce&&a.u.set(e,[c])}a.j.j.set(b.gm(),b)}};
YW=function(a,b,c,d,e,f,h){g.G.call(this);this.Ic=a;this.u=b;this.B=c;this.type=d;this.C=e;this.videoData=f;this.pO=h;this.j=new Map};
oTa=function(a){this.end=this.start=a};
g.$W=function(a,b,c){g.G.call(this);var d=this;this.api=a;this.Z=b;this.va=c;this.rb="";this.Ma=new Map;this.kb=new Map;this.Va=new Map;this.C=new Map;this.u=[];this.ea=[];this.D=new Map;this.kd=new Map;this.oa=new Map;this.xd=NaN;this.Ec=this.Eb=null;this.Qc=new g.Kq(function(){pTa(d,d.xd)});
this.events=new g.PK(this);this.xc=g.xL(this.Z.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.V=new g.Kq(function(){d.Fa=!0;var e=d.va,f=d.xc;e.ya("sdai",{aftimeout:f});e.pe(new aN("ad.fetchtimeout",{timeout:f}));qTa(d);d.VC(!1)},this.xc);
this.Fa=!1;this.Ba=new Map;this.hc=[];this.Ga=null;this.Ve=new Set;this.Oa=[];this.md=[];this.Wd=[];this.Fd=[];this.j=void 0;this.wb=0;this.ob=!0;this.K=!1;this.Ya=[];this.Qd=new Set;this.Ke=new Set;this.Je=new Set;this.B=0;this.qa=null;this.Zb=new Set;this.pd=0;this.mq=this.od=!1;this.J="";this.Rd={Dbb:function(){return d.C},
Ibb:function(){return d.u}};
this.va.getPlayerType();rTa(this.va,this);this.eb=this.Z.Id();g.H(this,this.Qc);g.H(this,this.events);g.H(this,this.V);ZW(this)||(this.events.T(this.api,g.PG("serverstitchedcuerange"),this.onCueRangeEnter),this.events.T(this.api,g.QG("serverstitchedcuerange"),this.onCueRangeExit))};
vTa=function(a,b,c,d,e,f,h,l){var m=sTa(a,f,f+e);a.Fa&&a.va.ya("sdai",{adaftto:1});a.mq&&a.va.ya("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.va;h=void 0===h?f+e:h;f===h&&!e&&a.Z.N("html5_allow_zero_duration_ads_on_timeline")&&a.va.ya("sdai",{attl0d:1});f>h&&aX(a,{reason:"enterTime_greater_than_return",Ic:f,Ud:h});var p=1E3*n.je();f<p&&aX(a,{reason:"enterTime_less_than_minSeekableTime",Ic:f,Rcb:p});n=1E3*n.getDuration();h>n&&aX(a,{reason:"parent_return_greater_than_content_duration",Ud:h,Pcb:n});
n=null;p=g.Sb(a.ea,{Ud:f},function(q,t){return q.Ud-t.Ud});
0<=p&&(n=a.ea[p],n.Ud>f&&tTa(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p<a.Oa.length;p++){if(a.Oa[p].identifier===m.identifier){a.Oa.splice(p,1);break}}else if(m)return a.va.ya("sdai",{rejectAttl:1}),l&&!xo(a.Fd,function(q){return q===l})&&(a.va.ya("sdai",{rejectAdBreakAttl:1}),a.Fd.push(l)),bX(a),"";
m="ss_childplayback_"+uTa++;b.cpn||(b.cpn=g.AG(16));p=b.cpn;b=new g.eO(a.Z,b);b.Tc=m;c={Tc:m,playerType:d,durationMs:e,Ic:f,Ud:h,cpn:p,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.Yb(a.ea,c,function(q,t){return q.Ic===t.Ic?q.durationMs-t.durationMs:q.Ic-t.Ic});
a.D.set(p,c);a.kd.set(m,c);a.va.ya("sdai",{attlDone:h-f,acpn:p});l?c.Qm=l:n?c.Qm=n.Qm:c.Qm=c.cpn;if(f=c.Qm)(d=a.oa.get(f))?(d.push(c),g.Vb(d,function(q,t){return q.Ic-t.Ic})):a.oa.set(f,[c]);
a.V.isActive()&&(a.Fa=!1,a.V.stop(),qTa(a),a.VC(!0));return m};
cX=function(a,b){return{ssvc:a,cpn:(null==b?void 0:b.cpn)||"",vid:(null==b?void 0:b.videoData.videoId)||""}};
wTa=function(a,b,c){return new g.NG(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
xTa=function(a){return{cpn:a.va.getVideoData().clientPlaybackNonce,durationMs:0,Ic:0,playerType:1,Ud:0,videoData:a.va.getVideoData(),errorCount:0}};
eX=function(a,b,c){var d=a.K,e=xTa(a),f=a.J;a.J="";var h=b.Eh-c.Eh;.5<Math.abs(h)&&a.va.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.D.get(b.adCpn);var m=a.D.get(c.adCpn)}m&&l&&(a.api.ra("serverstitchedvideochange",l.Tc,l.Bs),a.va.ya("sdai",cX("a2a",l)),a.B++,dX(a.va,m,l,c.Eh,b.Eh,d,!!f))}else if(!b.isAd&&c.isAd){a.api.ra("serverstitchedvideochange");a.va.ya("sdai",cX("a2c"));a.B=0;if(h=c.We)a.wb=h.end;var n;c.adCpn&&
(n=a.D.get(c.adCpn));n&&dX(a.va,n,e,c.Eh,b.Eh,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.D.get(b.adCpn));p&&(a.wb=0,a.api.ra("serverstitchedvideochange",p.Tc,p.Bs),a.va.ya("sdai",cX("c2a",p)),a.B=1,dX(a.va,e,p,c.Eh,b.Eh,d,!!f))}};
yTa=function(a,b){return a.mq?!1:ZW(a)?!!a.qa:!!fX(a,1E3*b)};
zTa=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.Sb(a.ea,{Ic:c},function(e,f){return e.Ic-f.Ic});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.ea[d],a.Ud>=c)?{Uo:a,aA:b}:{Uo:void 0,aA:b}};
fX=function(a,b){var c="";ZW(a)?(c=b/1E3-a.Fq(),c=a.va.nz(c)):(b=ATa(a,b))&&(c=b.getId());return c?a.D.get(c):void 0};
ATa=function(a,b){a=g.u(a.C.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
pTa=function(a,b){var c=a.Ec||a.api.td().getPlayerState();gX(a,!0);a.va.seekTo(b);a=a.api.td();b=a.getPlayerState();g.dQ(c)&&!g.dQ(b)?a.playVideo():g.cQ(c)&&!g.cQ(b)&&a.pauseVideo()};
gX=function(a,b){a.xd=NaN;a.Qc.stop();a.Eb&&b&&BTa(a.Eb);a.Ec=null;a.Eb=null};
CTa=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.Ic<b||f.Ud>c)&&d.push(f);a.ea=d;d=g.u(a.C.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.va.removeCueRange(e),a.C.delete(e.getId()),a.va.ya("sdai",{rmAdCR:1}));d=zTa(a,b/1E3);b=d.Uo;d=d.aA;if(b&&(d=1E3*d-b.Ic,e=b.Ic+d,b.durationMs=d,b.Ud=e,d=a.C.get(b.cpn))){e=g.u(a.u);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start=
b.Ic+b.durationMs:f.end===d.start&&(f.end=b.Ic);d.start=b.Ic;d.end=b.Ic+b.durationMs}if(b=zTa(a,c/1E3).Uo){var h;d="playback_timelinePlaybackId_"+b.Tc+"_video_id_"+(null==(h=b.videoData)?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.Ic+"_parentReturnTimeMs_"+b.Ud;a.vD("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
DTa=function(a){a.rb="";a.Ma.clear();a.kb.clear();a.Va.clear();a.C.clear();a.u=[];a.ea=[];a.D.clear();a.kd.clear();a.oa.clear();a.Ba.clear();a.hc=[];a.Ga=null;a.Ve.clear();a.Oa=[];a.md=[];a.Wd=[];a.Fd=[];a.Ya=[];a.Qd.clear();a.Ke.clear();a.Je.clear();a.Zb.clear();a.Fa=!1;a.j=void 0;a.wb=0;a.ob=!0;a.K=!1;a.B=0;a.qa=null;a.pd=0;a.od=!1;a.mq=!1;a.J="";a.V.isActive()&&bX(a)};
FTa=function(a,b,c,d,e,f){if(!a.mq)if(g.ETa(a,c))a.eb&&a.va.ya("sdai",{gdu:"undec",seg:c,itag:e});else return hX(a,b,c,d,f)};
hX=function(a,b,c,d,e){var f=a.Ba.get(c);if(!f){b+=a.Fq();b=zTa(a,b,1);if(b.Uo)return b.Uo;b=iX(a,c-1,null!=d?d:2);if(e)return a.va.ya("sdai",{misscue:e,sq:c,type:d,prevsstate:null==b?void 0:b.py,prevrecord:a.Ba.has(c-1)}),a.Ba.get(c-1);if(2===(null==b?void 0:b.py))return a.Ba.get(c-1)}return f};
GTa=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.C.values());for(b=c.next();!b.done;b=c.next())a.va.removeCueRange(b.value);c=g.u(a.u);for(b=c.next();!b.done;b=c.next())a.va.removeCueRange(b.value);a.C.clear();a.u=[];a.Ma.clear();a.kb.clear();a.Va.clear();a.j||(a.ob=!0)};
iX=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.va.ya("sdai",{rstadaist:1,old:a.rb,"new":d}),a.Ma.clear()),a.rb=d),a.Ma.has(b))return a.Ma.get(b)}else{if(2===c&&a.kb.has(b))return a.kb.get(b);if(3===c&&a.Va.has(b))return a.Va.get(b)}};
ITa=function(a,b,c,d){if(d)for(d=0;d<a.u.length;){var e=a.u[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;HTa(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.va.removeCueRange(e);if(a.Ya.includes(e))a.onCueRangeExit(e);a.u.splice(d,1);continue}d++}else HTa(a,b,c)};
HTa=function(a,b,c){b=wTa(b,c);c=!0;g.Yb(a.u,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.u.length;){if(0<d){var e=a.u[d],f=a.u[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.va.removeCueRange(e):c=!1;a.u.splice(d,1);continue}}d++}if(c)for(a.va.addCueRange(b),b=a.va.qC("serverstitchedcuerange",36E5),b=g.u(b),c=b.next();!c.done;c=b.next())a.C.delete(c.value.getId())};
jX=function(a,b,c){if(void 0===c||!c){c=g.u(a.hc);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.hc.push(new oTa(b))}};
g.ETa=function(a,b){a=g.u(a.hc);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
tTa=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",Mcb:b,Ic:c,Ud:d,vbb:e.Tc,wbb:(null==(f=e.videoData)?void 0:f.videoId)||"",sbb:e.durationMs,tbb:e.Ic,ubb:e.Ud};aX(a,b)};
aX=function(a,b){a=a.va;a.ya("timelineerror",b);a.pe(new aN("dai.timelineerror",b))};
JTa=function(a,b){var c=[];a=a.oa.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};
KTa=function(a,b,c){var d=0;a=a.oa.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};
LTa=function(a,b){var c=[];a=a.oa.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};
MTa=function(a,b){var c=0;a=a.oa.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.Ud!==b.Ic&&c++;return c};
NTa=function(a,b,c){var d=!1;if(c&&(c=a.oa.get(c))){c=g.u(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Ud!==e.Ic&&(e=e.cpn,b===e&&(d=!0),d&&!a.Ke.has(e)&&(a.va.ya("sdai",{decoratedAd:e}),a.Ke.add(e)))}};
qTa=function(a){a.eb&&a.va.ya("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.pd)+"_isTimeout_"+a.Fa})};
sTa=function(a,b,c){if(a.Oa.length)for(var d=g.u(a.Oa),e=d.next(),f={};!e.done;f={Hu:f.Hu},e=d.next()){f.Hu=e.value;e=1E3*f.Hu.startSecs;var h=1E3*f.Hu.Yh+e;if(b>e&&b<h||c>e&&c<h)return xo(a.Wd,function(l){return function(m){return m.identifier===l.Hu.identifier}}(f))||(a.va.ya("sdai",{adskip:b}),a.Wd.push(f.Hu)),f.Hu}};
bX=function(a){a.Fa=!1;a.V.isActive()&&qTa(a);a.V.stop();a.VC(!1)};
ZW=function(a){return a.Z.experiments.sb("html5_ssdai_use_new_ad_report")};
QTa=function(a,b,c){g.G.call(this);var d=this;this.api=a;this.timeline=b;this.va=c;this.B=new Map;this.u=new Map;this.D=new Map;this.events=new g.PK(this);this.J=0;this.lq="";this.V=[];this.j=new Set;this.K=new g.Kq(function(){d.api.playVideo();OTa(d,4)},3E4);
this.C="";this.ea=new Set;this.Rd={Kbb:function(){return d.u}};
this.va.getPlayerType();this.va.rJ(this);PTa(this);this.events.T(this.api,g.PG("ssap"),this.onCueRangeEnter);g.H(this,this.K)};
RTa=function(a,b,c,d){for(var e=a.va.YM(),f=g.u(d),h=f.next();!h.done;h=f.next()){var l=h.value;l.B||(h=l.videoData.clientPlaybackNonce,l=l.getVideoData(),h&&l&&e.fM(h,l))}nTa(a.timeline,b,c,d)};
kX=function(a,b){if("content_clip_id"===b){var c,d;b=null!=(d=null==(c=a.timeline.j)?void 0:c.videoData.clientPlaybackNonce)?d:""}a=a.timeline.u.get(b);return(null==a?0:a.length)?a[0].gm():0};
STa=function(a,b){if(!a.timeline.j)return{clipId:"",VH:0};if(b=lX(a,b)){var c;a=null!=(c=b.videoData.clientPlaybackNonce)?c:"";1===b.getType()&&(a="content_clip_id");return{clipId:a,VH:b.gm()}}a.api.ya("ssap",{mci:1});return{clipId:"",VH:0}};
TTa=function(a,b){return(a=lX(a,1E3*b))?a.gm():0};
UTa=function(a,b){return(a=lX(a,1E3*b))?(a.SG()-a.gm())/1E3:0};
lX=function(a,b){if(a=a.timeline.j){a=a.j;var c=Array.from(a.keys());g.Vb(c);var d=g.Sb(c,b);if(a=a.get(c[0>d?-1*(d+2):d]))for(a=g.u(a.segments),c=a.next();!c.done;c=a.next())if(c=c.value,c.gm()<=b&&c.SG()>b)return c}};
OTa=function(a,b){var c=a.V.shift();c&&(a.j.has(c)?VTa(a,c):3===b&&(a.K.stop(),a.api.playVideo()),a.D.set(a.lq,b),WTa(a,c))};
VTa=function(a,b){b=a.timeline.u.get(b);if(null==b?0:b.length)a.api.pauseVideo(),a.K.start(b[0].pO)};
WTa=function(a,b){if(a.lq!==b){var c=a.lq;a.lq=b;if(!a.j.has(a.lq)){var d=a.va.getCurrentTime();b=Math.max(0,d-kX(a,c)/1E3);d=Math.max(0,d-kX(a,a.lq)/1E3);var e=a.va.YM(),f=a.lq;if(e.wg!==f){var h=e.Gc(e.wg),l=e.Gc(f),m,n=(null==(m=h.getVideoData())?void 0:m.videoId)||"",p;m=(null==(p=l.getVideoData())?void 0:p.videoId)||"";p=e.wg;e.wg=f;var q;null!=(q=h.qoe)&&mX(q,0,e.wg,m,b);var t;null!=(t=l.qoe)&&mX(t,1,p,n,d);l.j&&XTa(l.j);YTa(l.B);e.j.has(p)&&(ZTa(e.j.get(p)),e.j.delete(p))}}q=a.timeline.u.get(a.lq);
if(null==q?0:q.length)q=q[0],t=q.getType(),b=a.va.getVideoData(),b=c===b.clientPlaybackNonce?b:a.B.get(c),(p=a.D.get(c))?a.D.delete(c):p=""===c?1:2,a.api.ra("videodatachange","newdata",q.getVideoData(),t,b,p),a.j.delete(c),a.C="",2===t?a.J++:a.J=0}};
PTa=function(a){a.va.yE(Array.from(a.u.values()));a.u.clear()};
aUa=function(a,b,c){g.G.call(this);var d=this;this.api=a;this.Z=b;this.j=c;this.J=new Map;this.u=[];this.B=this.K=null;this.ea=NaN;this.D=this.C=null;this.V=new g.Kq(function(){$Ta(d,d.ea)});
this.oa=[];this.qa=new g.Kq(function(){var e=d.oa.pop();if(e){var f=e.Tc,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.oa.length&&g.Lq(d.qa,4500))}});
this.events=new g.PK(this);c.getPlayerType();g.H(this,this.V);g.H(this,this.qa);g.H(this,this.events);this.events.T(this.api,g.PG("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Yi)};
eUa=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 nX(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.je();if(e<n)return nX(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.Hd(),nX(a,m,h,l),"";n=null;for(var p=g.u(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Ic&&e<q.Ud)return nX(a,"overlappingEnter",h,l),"";if(f<=q.Ud&&f>q.Ic)return nX(a,"overlappingReturn",h,l),"";if(f===q.Ic)return nX(a,"outOfOrder",h,l),"";e===q.Ud&&(n=q)}h="cs_childplayback_"+bUa++;l={We:oX(d,!0),Bm:Infinity,target:null};var t={Tc:h,playerVars:b,playerType:c,durationMs:d,Ic:e,Ud:f,Os:l};a.u=a.u.concat(t).sort(function(A,E){return A.Ic-E.Ic});
n?cUa(a,n,{We:oX(n.durationMs,!0),Bm:n.Os.Bm,target:t}):(b={We:oX(e,!1),Bm:e,target:t},a.J.set(b.We,b),m.addCueRange(b.We));b=!0;if(a.j===a.api.td()&&(m=1E3*m.getCurrentTime(),m>=t.Ic&&m<t.Ud)){var v=a.api.td().getPlayerState(),y=m-t.Ic;Ff(function(){dUa(a,t,y/1E3,v)});
b=!1}b&&(a.oa.unshift(t),g.Lq(a.qa,0));return h};
oX=function(a,b){return new g.NG(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
fUa=function(a,b,c,d){a.B=d;a.api.BG(a.j,c,b)};
gUa=function(a,b,c,d){a.B=d;d=b.Tc;var e=b.playerVars,f=b.playerType;a.K=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
cUa=function(a,b,c){var d=b.Os;b.Os=c;pX(a,b)&&(c=a.api.td(),d.We===a.B&&qX(a),c.removeCueRange(d.We),c.addCueRange(b.Os.We))};
qX=function(a){a.K=null;a.B=null;a.api.Yv()||a.api.clearQueue()};
hUa=function(a,b){pX(a,b)||nX(a,"childPlaybackIsNotPresenting");return b.Ud===b.Ic+b.durationMs?(a=a.api.td(),b.Ic+1E3*a.getCurrentTime()):b.Ud};
iUa=function(a,b){var c=0;a=g.u(a.u);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Ic/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{Uo:d,aA:b-e};c=f-d.Ud/1E3}return{Uo:null,aA:b-c}};
$Ta=function(a,b){var c=a.D||a.api.td().getPlayerState();rX(a,!0);b=isFinite(b)?b:a.j.Cq();var d=iUa(a,b);b=d.Uo;d=d.aA;var e=b&&!pX(a,b)||!b&&a.j!==a.api.td(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||qX(a);b?dUa(a,b,d,c):jUa(a,d,c)};
jUa=function(a,b,c){var d=a.j,e=a.api.td();d!==e&&a.api.au();d.seekTo(b,{ke:"application_timelinemanager"});kUa(a,c)};
dUa=function(a,b,c,d){var e=pX(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.eO(a.Z,b.playerVars);f.Tc=b.Tc;a.api.It(f,b.playerType)}f=a.api.td();e||f.addCueRange(b.Os.We);f.seekTo(c,{ke:"application_timelinemanager"});kUa(a,d)};
kUa=function(a,b){a=a.api.td();var c=a.getPlayerState();g.dQ(b)&&!g.dQ(c)?a.playVideo():g.cQ(b)&&!g.cQ(c)&&a.pauseVideo()};
rX=function(a,b){a.ea=NaN;a.V.stop();a.C&&b&&BTa(a.C);a.D=null;a.C=null};
pX=function(a,b){a=a.api.td();return!!a&&a.getVideoData().Tc===b.Tc};
lUa=function(a){var b=a.u.find(function(e){return pX(a,e)});
if(b){var c=a.api.td();qX(a);var d=new g.YP(8);b=hUa(a,b)/1E3;jUa(a,b,d);c.ya("forceParentTransition",{childPlayback:1});a.j.ya("forceParentTransition",{parentPlayback:1})}};
nUa=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.J),h=f.next();!h.done;h=f.next()){var l=g.u(h.value);h=l.next().value;l=l.next().value;l.Bm>=d&&l.target&&l.target.Ud<=e&&(a.j.removeCueRange(h),a.J.delete(h))}d=b;e=c;f=[];h=g.u(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Ic>=d&&l.Ud<=e){var m=a;m.K===l&&qX(m);pX(m,l)&&m.api.au()}else f.push(l);a.u=f;d=iUa(a,b/1E3);b=d.Uo;d=d.aA;b&&(d*=1E3,mUa(a,b,d,b.Ud===b.Ic+b.durationMs?b.Ic+d:b.Ud));(b=iUa(a,c/1E3).Uo)&&
nX(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Tc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Ic+" parentReturnTimeMs="+b.Ud+"}.Child playbacks can only have duration updated not their start."))};
mUa=function(a,b,c,d){b.durationMs=c;b.Ud=d;d={We:oX(c,!0),Bm:c,target:null};cUa(a,b,d);pX(a,b)&&1E3*a.api.td().getCurrentTime()>c&&(b=hUa(a,b)/1E3,c=a.api.td().getPlayerState(),jUa(a,b,c))};
nX=function(a,b,c,d){a.j.ya("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
pUa=function(a){a&&"web"!==a&&oUa.includes(a)};
tX=function(a,b){g.G.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.j=new g.Kq(function(){qUa(c);sX(c)});
g.H(this,this.j)};
qUa=function(a){var b=(0,g.mC)();a.data.forEach(function(c){c.expire<b&&uX(a,c,!0)});
a.data=g.cp(a.data,function(c){return!(c.expire<b)})};
uX=function(a,b,c){c&&a.u&&a.u(b.value)};
sX=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))};
vX=function(){g.G.call(this);this.j=new tX(5,null);g.H(this,this.j);this.u=new tX(15,null);g.H(this,this.u)};
rUa=function(a,b){return b?!!a.j.get(b):!1};
wX=function(){g.nr.call(this);this.D=new Map};
sUa=function(a){g.G.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.u=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.u.observe(a)};
vUa=function(a){g.X.call(this,{G:"div",Na:["html5-video-player"],Y:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},X:[{G:"div",S:g.xX.VIDEO_CONTAINER,Y:{"data-layer":"0"}}]});var b=this;this.app=a;this.Ny=this.Ha(g.xX.VIDEO_CONTAINER);this.nA=new g.Rn(0,0,0,0);this.uc=null;this.OI=new g.Rn(0,0,0,0);this.nN=this.yO=this.xO=NaN;this.oH=this.LI=this.HP=this.nU=!1;this.aM=NaN;this.YN=!1;this.xD=null;this.VO=function(){b.element.focus()};
this.tI=function(){b.app.bb.ra("playerUnderlayVisibilityChange","visible");b.uc.classList.remove(g.xX.VIDEO_CONTAINER_TRANSITIONING);b.uc.removeEventListener($La,b.tI);b.uc.removeEventListener("transitioncancel",b.tI)};
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.Cs("ytp-transparent");"0"===e.controlsType&&this.Cs("ytp-hide-controls");g.Sq(this.element,"ytp-exp-bottom-control-flexbox");e.N("enable_new_paid_product_placement")&&!g.TM(e)&&g.Sq(this.element,"ytp-exp-ppp-update");ena(this.element,"version",tUa(a));this.mZ=!1;this.uC=new g.xe(NaN,NaN);uUa(this);this.T(a.bb,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
uUa=function(a){function b(){a.uc&&yX(a);zX(a)!==a.YN&&a.resize()}
function c(h,l){a.vt(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.OI=new g.Rn(0,0,0,0);a.nA=new g.Rn(0,0,0,0)}
var f=a.app.bb;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.tb(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
xUa=function(a){var b=g.FS(a.app);if(b=b?b.getVideoData():null){if(g.FO(b)||g.GO(b)||g.IO(b))return 16/9;if(pza(b)&&b.B.j)return a=b.B.videoInfos[0].video,wUa(a.width,a.height)}return(a=a.uc)?wUa(a.videoWidth,a.videoHeight):16/9};
yUa=function(a,b,c,d){var e=c,f=wUa(b.width,b.height);a.nU?e=c<f?Infinity:0:isNaN(a.nN)?isNaN(a.yO)||(e=a.yO):e=a.nN;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};
wUa=function(a,b){return 1>Math.abs(zUa*b-a)||1>Math.abs(zUa/a-b)?zUa:a/b};
zX=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.FS(a.app);if(!b||b.qp())return!1;a=a.app.bb.Nb();b=!g.yP(a,2)||b&&b.getVideoData().ea;var c=g.yP(a,1024);return a&&b&&!c&&!a.isCued()};
yX=function(a){var b="3"===a.app.W().controlsType&&!a.oH&&zX(a)&&!a.app.Vz||!1;a.uc.controls=b;a.uc.tabIndex=b?0:-1;b?a.uc.removeEventListener("focus",a.VO):a.uc.addEventListener("focus",a.VO)};
AUa=function(a){var b=a.fk(),c=1,d=!1,e=yUa(a,b,a.getVideoAspectRatio()),f=a.app.W(),h=f.N("enable_desktop_player_underlay"),l=Rma(),m=g.xL(f.experiments,"player_underlay_min_player_width");m=h&&a.HP&&a.getPlayerSize().width>m;if(zX(a)){var n=xUa(a);var p=isNaN(n)||g.NC||AX&&g.dC||m;MC&&!g.Nc(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.Rn(p,0,b.width,b.height)):p=new g.Rn(0,
0,b.width,b.height):(c=e.aspectRatio/n,p=new g.Rn((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.dC&&(n=p.width-b.height*n,0<n&&(p.width+=n,p.height+=n)));g.Wq(a.element,"ytp-fit-cover-video",1>Math.max(p.width-e.width,p.height-e.height));if(l||a.mZ)a.uc.style.display="";a.YN=!0}else{p=-b.height;MC?p*=window.devicePixelRatio:g.UM&&(p-=window.screen.height);p=new g.Rn(0,p,b.width,b.height);if(l||a.mZ)a.uc.style.display="none";a.YN=!1}Sn(a.OI,p)||(a.OI=p,g.DM(f)?(a.uc.style.setProperty("width",
p.width+"px","important"),a.uc.style.setProperty("height",p.height+"px","important")):g.so(a.uc,p.getSize()),d=new g.te(p.left,p.top),g.$n(a.uc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Rn((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Sn(a.nA,b)||(a.nA=b,d=!0);g.Un(a.uc,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.LI&&(m&&(a.uc.addEventListener($La,a.tI),a.uc.addEventListener("transitioncancel",a.tI),a.uc.classList.add(g.xX.VIDEO_CONTAINER_TRANSITIONING)),a.LI=m,a.app.bb.ra("playerUnderlayVisibilityChange",
a.LI?"transitioning":"hidden"));return d};
BUa=function(){this.csn=g.sH();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.j=new Set;this.u=new Set};
CUa=function(a){if(a.csn!==g.sH())if("UNDEFINED_CSN"===a.csn)a.csn=g.sH();else{var b=g.sH(),c=g.rH();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.Hz("combine_ve_grafts")?xQ(vQ(),e,c):g.Nz(g.jQ)(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.nQ(b,c)}};
DUa=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
EUa=function(a,b){var c=Math.min(2.5,pM(a.schedule));a=BX(a);return b-c*a};
GUa=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.Fl&&(d=Math.abs(d));d/=a.playbackRate;var f=1/rM(a.schedule);c=Math.max(.9*(d-3),pM(a.schedule)+2048*f)/f*a.policy.tp/(b+c);if(!a.policy.Ve||d)c=Math.min(c,d);a.policy.Pm&&e&&(c=Math.max(c,a.policy.Pm));return FUa(a,c,b)};
FUa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.Yo*c),Math.min(Math.min(a.policy.Ma,31*c),Math.ceil(b*c))))||65536};
BX=function(a){return rM(a.schedule,!a.policy.Ji,a.policy.Qo)};
CX=function(a){return BX(a)/a.playbackRate};
HUa=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};
DX=function(a,b,c,d,e){this.Ca=a;this.Ua=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.j=0;this.D=!1;this.u=this.Ua.isManifestless&&!this.Ua.Re;this.C=null;this.B=0};
IUa=function(a,b,c){if(!a.policy.D){a=b.j.index;var d=b.u.Pa;oK(a,d)||c&&c.Pa===d?(b.D=!oK(a,d),b.oa=!oK(a,d)):(b.D=!0,b.oa=!0)}};
KUa=function(a,b,c,d,e){if(!b.j.zg()){if(!(d=0===c||!!b.B.length&&b.B[0]instanceof EX))a:{if(b.B.length&&(d=b.B[0],d instanceof FX&&d.rh&&d.Oj)){d=!0;break a}d=!1}d||a.policy.u||GX(b);return c}a=HX(b,c);if(!isNaN(a))return a;e.oD||b.Qk();return d&&(a=YK(d.dg(),c),!isNaN(a))?(IX(b,a+JUa),c):IX(b,c)};
OUa=function(a,b,c,d){if(a.Xg()&&a.j){var e=LUa(a,b,c);if(-1!==e){a.videoTrack.D=!1;a.audioTrack.D=!1;a.u=!0;a.B=0;g.Lf(function(){a.Ca.ya("seekreason",{reason:"behindMinSq",tgt:e});MUa(a,e)});
return}}c?a.videoTrack.oa=!1:a.audioTrack.oa=!1;var f=a.policy.nx||!a.u;0<=HX(a.videoTrack,a.j)&&0<=HX(a.audioTrack,a.j)&&f?((a.videoTrack.D||a.audioTrack.D)&&a.Ca.ya("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.D=!1,a.audioTrack.D=!1):d&&g.Lf(function(){if(a.u||!a.policy.Zb)NUa(a);else{var h=b.startTime,l=b.duration,m=c?a.videoTrack.D:a.audioTrack.D,n=-1!==a.videoTrack.J&&-1!==a.audioTrack.J,p=a.j>=h&&a.j<h+l+.1,q=!a.videoTrack.oa&&!a.audioTrack.oa,t=a.policy.qx&&HX(a.videoTrack,
h)&&HX(a.audioTrack,h);m&&n&&q&&(p||t?((c?a.videoTrack:a.audioTrack).D=!1,a.videoTrack.D||a.audioTrack.D||(a.Ca.ya("iterativeSeeking",{status:"done",target:h,count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.Ca.ya("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j,{})):(a.Ca.ya("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Ca.va.seekTo(h+
.1,{Qv:!0,ke:"chunkSelectorSynchronizeMedia",iq:!0})))}})};
LUa=function(a,b,c){if(!a.Xg())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.Lh(a.j);return(oK(c,a.Ua.bf)||b.Pa===a.Ua.bf)&&d<a.Ua.bf?a.Ua.je():-1};
MUa=function(a,b){a.u&&-1!==a.videoTrack.J&&-1!==a.audioTrack.J&&(a.u=!1,a.j=b,a.Ca.va.seekTo(b+.1,{Qv:!0,ke:"chunkSelectorSynchronize",iq:!0}))};
NUa=function(a){var b=-1!==a.videoTrack.J,c=-1!==a.audioTrack.J;if(!b||!c)if(b=!b&&JX(a.videoTrack),c=!c&&JX(a.audioTrack),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.J=JX(c).info.Pa,a.policy.D&&(b.J=JX(b).info.Pa),-1!==b.J){var d=Math.max(b.j.index.getStartTime(b.J),c.j.index.getStartTime(c.J));qL(a.Ua)&&432E3<Math.abs(d-qL(a.Ua))&&rva(a.Ua);a.B&&(d=a.B,a.B=0);g.Lf(function(){a.policy.D||MUa(a,d)});
a.Ca.ya("initManifestlessSync",{st:d,a:a.audioTrack.J,v:a.videoTrack.J});a.C&&(a.C.resolve(d+.1),a.C=null);a.policy.D&&MUa(a,d)}};
PUa=function(a){this.j=a;this.oa=this.Oa=this.V=this.Fa=this.B=this.D=this.C=this.J=this.ea=this.Ma=this.Ba=this.Ga=this.qa=0;this.ticks={}};
KX=function(a){a.qa||(a.qa=(0,g.mC)(),RT("mb_s",a.qa,a.j))};
QUa=function(a){a.Ga||(a.Ga=(0,g.mC)(),RT("ovfs_rp",a.Ga,a.j))};
RUa=function(a){a.Ba||(a.Ba=(0,g.mC)(),RT("oafs_rp",a.Ba,a.j))};
SUa=function(a,b,c,d,e,f){g.SG.call(this);this.Ca=a;this.Ua=b;this.policy=c;this.V=d;this.Fa=e;this.qa=this.j=null;this.B=this.D=NaN;this.J=0;this.ea=NaN;this.C=null;this.Ba=new Map;this.oa="";this.Ga=0;this.K=NaN;this.u=f?1:0};
LX=function(a,b,c){b.startSecs+=isNaN(a.J)?0:a.J;a=a.Ua;a.ea.push(b);a.ra("cuepointsadded",c)};
TUa=function(a,b,c){if(0!==a.u&&c&&b.gb[0].lh()){var d=b.gb[0].Pa,e;d!==(null==(e=a.j)?void 0:e.Pa)||1===a.u||b.u||b.J||"predictStart"===a.j.fh.event||a.ya("sdai",{undecevt:1,sq:d,evt:a.j.fh.event});d>a.B&&(a.B=NaN,a.D=NaN);if(a.j&&a.j.Pa===d){d=a.j;e=d.fh;var f=c.St(e);a.ya("sdai",{onqevt:e.event,sq:b.gb[0].Pa,gab:f});f?"predictStart"!==e.event?d.YC?MX(a,4,"cue"):(a.B=b.gb[0].Pa,a.D=b.gb[0].C,a.ya("sdai",{joinad:a.u,sg:a.B,st:a.D.toFixed(3)}),a.ea=Date.now(),MX(a,2,"join"),c.hH(d.fh)):(a.K=b.gb[0].Pa+
Math.max(Math.ceil(-e.j/5E3),1),a.ya("sdai",{onpred:b.gb[0].Pa,est:a.K}),a.ea=Date.now(),MX(a,3,"predict"),c.hH(d.fh)):1===a.u&&MX(a,5,"nogab")}else 1===a.u&&MX(a,5,"noad")}};
UUa=function(a,b,c){return(0>c||c===a.B)&&!isNaN(a.D)?a.D:b};
VUa=function(a,b){if(a.j){var c=a.j.fh.Yh-(b.startTime+a.J-a.j.fh.startSecs);0>=c||(c=new FG(a.j.fh.startSecs-(isNaN(a.J)?0:a.J),c,a.j.fh.context,a.j.fh.identifier,"stop",a.j.fh.j+1E3*b.duration),a.ya("cuepointdiscontinuity",{segNum:b.Pa}),LX(a,c,b.Pa))}};
MX=function(a,b,c){a.u!==b&&(a.ya("sdai",{setsst:b,old:a.u,r:c}),a.u=b)};
NX=function(a,b,c,d){(void 0===d?0:d)?MX(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.u&&MX(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
OX=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
PX=function(a,b){this.j=a;this.reason=b};
WUa=function(a){g.G.call(this);this.policy=a;this.j=new Map;this.u=0;this.B=!1};
QX=function(a,b,c){if(void 0===c?0:c)a.B=!0;++a.u;c=6E4*Math.pow(2,a.u);c=(0,g.mC)()+c;a.j.set(b.info.id,c)};
RX=function(a){for(var b=g.u(a.j.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.mC)()&&a.j.delete(c)}return a.j};
XUa=function(a){return a.B&&0<RX(a).size};
YUa=function(a,b,c,d,e,f){var h=this;f=void 0===f?[]:f;this.Ca=a;this.Fa=b;this.policy=c;this.Ua=d;this.D=e;this.wb=f;this.logger=new g.EW("dash/abr");this.u=dO;this.B=this.J=null;this.V=-1;this.Va=!1;this.nextVideo=this.j=null;this.C=[];this.kb=new Set;this.Oa={};this.K=0;this.ob=this.qa=this.ea=!1;this.Ma=0;this.eb=new Set;this.rb=!1;this.Ba=new Set;this.Ya=!1;this.Rd={aZ:function(){SX(h)}};
this.oa=new WUa(this.policy)};
cVa=function(a,b,c){TX(a,b);ZUa(a,c);a.J=a.j;$Ua(a);aVa(a);a.B=a.nextVideo;a.J=a.j;return bVa(a)};
eVa=function(a,b){if(dVa(a,b))return null;if("m"===b.reason&&b.isLocked())return TX(a,b),a.K=a.C.length-1,SX(a),UX(a),a.qa=a.qa||a.B!==a.nextVideo,a.B=a.nextVideo,new OX(a.j,a.B,b.reason);"r"===b.reason&&(a.V=-1);TX(a,b);UX(a);if("r"===b.reason&&a.nextVideo===a.B)return new OX(a.j,a.nextVideo,b.reason);a.B&&a.nextVideo&&VX(a,a.B.info)<VX(a,a.nextVideo.info)&&(b=a.u.reason,a.ea=a.ea||"r"===b||"u"===b||"v"===b);return null};
fVa=function(a,b){if(b.info.video){if(a.B!==b)return a.B=b,bVa(a)}else a.ob=a.J!==b,a.J=b;return null};
WX=function(a,b,c){QX(a.oa,b,void 0===c?!1:c);a.V=-1;TX(a,a.u)};
XX=function(a,b){return new OX(a.J,a.B,b||a.u.reason)};
YX=function(a){return a.u.isLocked()};
bVa=function(a){a.Va?a.Va=!1:a.V=(0,g.mC)();a.ea=!1;a.Ya=!1;return new OX(a.J,a.B,a.u.reason)};
gVa=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&&JK(f)&&f.video.j>a.policy.ij,l=e<=a.policy.ij?JK(d):nI(d);if(!f||h||l)c[e]=d}return c};
TX=function(a,b){a.u=b;var c=a.D.videoInfos;if(!YX(a)){var d=(0,g.mC)();c=g.cp(c,function(q){if(q.Wb>this.policy.Wb)return!1;var t=this.Ua.j[q.id],v=t.info.yb;return this.policy.vx&&this.eb.has(v)||RX(this.oa).get(q.id)>d||4<t.u.u||4<t.K?!1:!0},a);
XUa(a.oa)&&(c=g.cp(c,function(q){return 854>=q.video.width&&480>=q.video.height}))}0<a.Ba.size&&(c=g.cp(c,function(q){return!a.Ba.has(+q.itag)}));
c.length||(c=a.D.videoInfos);var e=g.cp(c,b.C,b);if(YX(a)&&a.Ga){var f=g.Db(c,function(q){return q.id===a.Ga});
f?e=[f]:delete a.Ga}f="m"===b.reason||"s"===b.reason;a.policy.Qx&&AX&&g.dC&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.u||q.u.powerEfficient)}));
if(0<e.length)if(dL()){var h=gVa(a,e);e=e.filter(function(q){return!!q&&!!q.video&&q.yb===h[q.video.j].yb})}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=gVa(a,b)[n].yb;e=e.filter(function(q){return!!q&&!!q.video&&q.yb===p})}}e.length||(e=[c[0]]);
e.sort(function(q,t){return VX(a,q)-VX(a,t)});
c={};for(b=1;b<e.length;c={sF:c.sF,rF:c.rF},b++)c.rF=e[b-1],c.sF=e[b],c.rF.video.width>c.sF.video.width?(g.Gb(e,b),b--):VX(a,c.rF)*a.policy.J>VX(a,c.sF)&&(g.Gb(e,b-1),b--);c=e[e.length-1];a.rb=!!a.B&&!!a.B.info&&a.B.info.yb!==c.yb;a.C=e;if(a.policy.wk)for(a.kb.clear(),b=!1,l=0;l<e.length;l++)b?a.kb.add(e[l].itag):e[l].video.j>=a.policy.wk&&(b=!0);HNa(a.policy,c)};
ZUa=function(a,b){if(b)a.j=a.Ua.j[b];else{b=g.Db(a.D.j,function(d){return!!d.Nc&&d.Nc.isDefault});
if(a.policy.Mo&&!b&&(b=g.Db(a.D.j,function(d){return d.audio.j}),a.policy.xx&&b)){var c=g.Db(a.D.j,function(d){return!d.audio.j});
a.Ca.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.D.j[0];a.j=a.Ua.j[b.id]}SX(a)};
hVa=function(a,b){for(var c=0;c+1<a.C.length&&"tiny"===a.C[c].video.quality;)c++;var d=CX(a.Fa)/a.policy.J;return VX(a,b.info)+VX(a,a.C[c])>d};
SX=function(a){if(!a.j||!a.policy.j&&!a.j.info.Nc){var b=a.D.j;a.j&&a.policy.Mo&&(b=b.filter(function(d){return d.audio.j===a.j.info.audio.j}),b.length||(b=a.D.j));
a.j=a.Ua.j[b[0].id];if(1<b.length){var c=!1;if(c=a.policy.Eb?!0:a.u.isLocked()?240>a.u.j:hVa(a,a.j))a.j=a.Ua.j[g.zb(b).id]}}};
UX=function(a){if(!a.nextVideo||!a.policy.j)if(YX(a))a.nextVideo=360>=a.u.j?a.Ua.j[a.C[0].id]:a.Ua.j[g.zb(a.C).id];else{for(var b=Math.min(a.K,a.C.length-1),c=CX(a.Fa),d=VX(a,a.j.info),e=c/a.policy.V-d;0<b&&!(VX(a,a.C[b])<=e);b--);for(var f=c/a.policy.J-d;b<a.C.length-1&&!(VX(a,a.C[b+1])>=f);b++);a.nextVideo=a.Ua.j[a.C[b].id];a.K!==b&&a.logger.info(function(){var h=a.u;return"Adapt to: "+xua(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+
f.toFixed(0)+", constraint: ["+(h.u+"-"+h.j+", override: "+(h.B+", reason: "+h.reason+"]"))});
a.K=b}};
$Ua=function(a){var b=a.policy.V,c=CX(a.Fa),d=c/b-VX(a,a.j.info);b=g.Eb(a.C,function(e){return VX(this,e)<d},a);
0>b&&(b=0);a.K=b;a.nextVideo=a.Ua.j[a.C[b].id];a.logger.info(function(){return"Initial selected fmt: "+xua(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
aVa=function(a){if(a.wb.length){var b=a.wb,c=function(d,e){if("f"===d.info.yb||b.includes(hK(d,a.Ua.Jc,a.Ca.ud())))return d;for(var f={},h=0;h<e.length;f={vF:f.vF,AF:f.AF},h++){var l=a.Ua.j[e[h].id],m=hK(l,a.Ua.Jc,a.Ca.ud());if(b.includes(m)){m=d.info.yb;var n=l.info.yb;if(m===n||dL()){if(d.info.j!==l.info.j)return a.Ca.ya("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.vF=d.info.itag;f.AF=l.info.itag;a.Ca.ya("ombifa",{f:f.vF,t:f.AF});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
p.vF+" to "+p.AF+" based on prefetched media."}}(f));
a.Va=!0;return l}a.Ca.ya("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.Ca.ya("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.D.videoInfos);a.j=c(a.j,a.D.j)}};
VX=function(a,b){if(!a.Oa[b.id]){var c=a.Ua.j[b.id].index.nV(a.Ma,15);c=b.Zu&&a.B&&a.B.index.isLoaded()?c||b.Zu:c||b.Wb;a.Oa[b.id]=c}c=a.Oa[b.id];a.policy.wk&&a.kb.has(b.itag)&&(c*=a.policy.rB);return c};
iVa=function(a,b){a=pba(a.Ua.j,function(c){return c.info.itag===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
jVa=function(a){var b=[];if("m"===a.u.reason||"s"===a.u.reason)return b;if(Wua(a.Ua)){for(var c=Math.max(0,a.K-2);c<a.K&&c<a.C.length;c++)b.push(a.C[c].itag);b.reverse()}return b};
dVa=function(a,b){var c;return a.u.equals(b)&&(!a.Ga||!YX(a)||(null==(c=a.nextVideo)?void 0:c.info.id)===a.Ga)};
kVa=function(a){a=void 0===a?{}:a;var b=void 0===a.Xj?!1:a.Xj,c=void 0===a.gs?!1:a.gs;return(void 0===a.cj?0:a.cj)?c?3:2:b?-1:1};
lVa=function(a,b,c){this.C=a;this.Ua=b;this.policy=c;this.hA=[];this.Be=[];this.j=-1;this.pc=null;this.timestampOffset=0;this.jd=null;this.u=b.Jc?0:1};
pVa=function(a,b,c,d,e){if(a.policy.og){if(!e.info.Cf){if(0===c.length)c.push(e);else{var f;(a=null==(f=c.pop())?void 0:tK(f,e))?c.push(a):c.push(e)}return d}var h;(c=null==(h=c.pop())?void 0:tK(h,e))||(c=e)}else c=e;e=c;c=LK(e.info.j.info,a.Ua.Jc);d=e.info.Pa+a.u;f=1E3*e.info.startTime;h=e.info.clipId;var l=0;a.policy.C&&a.jd&&(l=kX(a.jd,h));e={formatId:c,startTimeMs:f+l,durationMs:1E3*e.info.duration,Rr:d,Zj:d};c=mVa(b,e.startTimeMs);(d=0<=c?b[c]:null)&&nVa(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:oVa(a,h.formatId,l.formatId)?(l.durationMs=m-l.startTimeMs,l.Zj=h.Zj,h=!0):(h.startTimeMs=n,h.Rr=l.Zj+1,h=!1);if(!h)break;d++}d&&b.splice(c+1,d);return c};
mVa=function(a,b){a=g.Sb(a,{startTimeMs:b},function(c,d){return c.startTimeMs-d.startTimeMs});
return 0<=a?a:-a-2};
qVa=function(a){if(a.pc){for(var b=a.pc.dg(),c=[],d=0,e=0;d<b.length&&e<a.Be.length;){var f=b.start(d),h=b.end(d),l=a.Be[e].startTimeMs/1E3,m=(a.Be[e].startTimeMs+a.Be[e].durationMs)/1E3;if(l<=h&&m>=f){var n=0;if(a.jd){var p=STa(a.jd,1E3*l);p&&(n=p.VH/1E3)}p=Object.assign({},a.Be[e]);var q=a.Be[e].formatId;q=a.Ua.K.get(q.itag+";"+(q.hk||0)+";"+q.xtags);f=Math.max(l,f);l=q.index.Lh(f+.1-n);var t=q.index.getStartTime(l)+n;l+=+(.1<Math.abs(t-f));f=l+a.u;l=1E3*(q.index.getStartTime(l)+n);p.Rr=f;p.startTimeMs=
l;f=void 0;l=(null==(f=a.B)?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.Lh(f-.1-n);t=q.index.TM(l)+n;l-=+(.1<Math.abs(t-f));f=l+a.u;n=1E3*(q.index.TM(l)+n);p.Zj=f;p.durationMs=n-p.startTimeMs;p.Rr<=p.Zj&&c.push(p)}m<h?e+=1:d+=1}a.Be=c}};
rVa=function(a){var b=[],c=[].concat(g.qa(a.hA));a.Be.forEach(function(h){b.push(Object.assign({},h))});
for(var d=a.j,e=g.u(a.C.uV()),f=e.next();!f.done;f=e.next())d=pVa(a,b,c,d,f.value);b.forEach(function(h){h.startTimeMs&&(h.startTimeMs+=1E3*a.timestampOffset)});
return{Be:b,hA:c}};
nVa=function(a,b,c){var d=b.startTimeMs+b.durationMs,e=c.startTimeMs+c.durationMs;if(100<c.startTimeMs-d)return!1;if(oVa(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.Zj=Math.max(b.Zj,c.Zj),!0;if(100>=Math.abs(b.startTimeMs-c.startTimeMs)){if(b.durationMs>c.durationMs+100){a=b.formatId;var f=b.Rr,h=b.Zj;b.formatId=c.formatId;b.durationMs=c.durationMs;b.Rr=c.Rr;b.Zj=c.Zj;c.formatId=a;c.startTimeMs=e;c.durationMs=d-e;c.Rr=f;c.Zj=h;return!1}b.formatId=c.formatId;return!0}d>
c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs);return!1};
oVa=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.Ua.Jc||b.hk===c.hk};
sVa=function(a){a.Be=[];a.hA=[];a.j=-1;a.B=void 0};
tVa=function(a,b){this.u=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
pya=function(a,b){var c,d,e;return g.Ha(function(f){if(1==f.j){if(!b)return f.return(b);c=ZX.Qr("woe");d=new g.bM(a.u);return g.z(f,d.encrypt(b,a.j),2)}e=f.u;ZX.xq(c,Math.ceil(b.byteLength/16));return f.return(e)})};
wya=function(a,b){var c,d,e;return g.Ha(function(f){if(1==f.j){if(!b)return f.return(b);c=ZX.Qr("wod");d=new g.bM(a.u);return g.z(f,d.decrypt(b,a.j),2)}e=f.u;ZX.xq(c,Math.ceil(b.byteLength/16));return f.return(e)})};
vVa=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Ga=c;this.C=this.u=0;this.Qf=null;this.oa=new Set;this.ea=[];this.indexRange=this.initRange=null;this.V=new tM;this.qa=this.Ba=!1;this.Rd={icb:function(){return d.B},
Gbb:function(){return d.chunkSize},
Fbb:function(){return d.K},
Ebb:function(){return d.J}};
(b=uVa(this))?(this.chunkSize=b.csz,this.B=Math.floor(b.clen/b.csz),this.K=b.ck,this.J=b.civ):(this.chunkSize=a.wx,this.B=0,this.K=g.AG(16),this.J=g.AG(16));this.D=new Uint8Array(this.chunkSize);this.K&&this.J&&(this.crypto=new tVa(this.K,this.J))};
uVa=function(a){if(a.policy.Qd&&a.policy.Mx)for(var b=g.u(a.policy.Qd),c=b.next(),d={};!c.done;d={tF:d.tF,uF:d.uF},c=b.next())if(c=g.Tz(c.value),d.tF=+c.clen,d.uF=+c.csz,0<d.tF&&0<d.uF&&a.policy.j===c.docid&&a.j.info.id===c.fmtid&&a.j.info.lastModified===+c.lmt)return a={},a.clen=d.tF,a.csz=d.uF,a.ck=c.ck,a.civ=c.civ,a};
$X=function(a){return!!a.Qf&&BJ(a.Qf)};
AVa=function(a,b){if(!$X(a)&&!a.isDisposed()){if(!(a.Ba||(a.Ba=!0,0<a.B))){var c=wVa(a);c=tya(a.policy.j,a.j.info,aY(a),c,a.policy.Oa);xVa(a,c)}if(1===b.info.type){if(a.Qf){bY(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=yJ(0,b.j.totalLength)}else if(2===b.info.type)a.Qf&&1===a.Qf.type||bY(a,Error("Woffle: Index before init")),a.indexRange=yJ(a.initRange.end+1,b.j.totalLength);else if(3===b.info.type){if(!a.Qf){bY(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(3===a.Qf.type&&!EJ(a.Qf,b.info)&&(a.ea=[],b.info.Pa!==FJ(a.Qf)||0!==b.info.dc))return;if(b.info.Cf){c=g.u(a.ea);for(var d=c.next();!d.done;d=c.next())yVa(a,d.value);a.ea=[]}else{a.ea.push(b);a.Qf=b.info;return}}else{bY(a,Error("Woffle: Unexpected slice type"));return}a.Qf=b.info;yVa(a,b);zVa(a)}};
yVa=function(a,b){var c=0,d=CI(b.j);if(a.C<a.B){c=a.B*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.C=a.B;a.u=0}for(e={};c<d.length;)if(e={jB:e.jB},e.jB=Math.min(d.length-c,a.D.byteLength-a.u),f=new Uint8Array(d.buffer,d.byteOffset+c,e.jB),a.D.set(f,a.u),a.u+=e.jB,c+=e.jB,a.u===a.D.length){if(b.info===a.Qf&&$X(a)&&c===d.length)break;f=wVa(a);f=tya(a.policy.j,a.j.info,aY(a),f,a.policy.Oa,a.C,a.D,a.crypto);
a.oa.add(f);xVa(a,f);a.isDisposed()||(f=wVa(a),a.Ga(aY(a),void 0!==f?(f.downloadedEndTime||0)*f.averageByteRate:f.maxKnownEndTime*f.averageByteRate,f.maxKnownEndTime*f.averageByteRate));a.D=new Uint8Array(a.chunkSize);a.u=0;a.C+=1}};
zVa=function(a){if($X(a))if(a.Qf&&a.indexRange)if(a.u){var b=new Uint8Array(a.D.buffer,0,a.u),c=BVa(a),d=a.policy.j;Promise.all(a.oa).then(function(){var e=tya(d,a.Qf.j.info,aY(a,!0),c,a.policy.Oa,a.C,b,a.crypto);xVa(a,e,!0)})}else bY(a,new cY("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else bY(a,new cY("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
wVa=function(a){return{downloadedEndTime:Math.round(a.Qf?a.Qf.B:0),maxKnownEndTime:Math.round(a.j.index.jt()),averageByteRate:Math.round(a.j.info.Zu)}};
BVa=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.jt()),averageByteRate:Math.round(a.j.info.Zu)}};
aY=function(a,b){void 0===b||!b||a.indexRange&&a.initRange&&a.Qf||bY(a,new cY("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));b={lmt:a.j.info.lastModified,docid:a.policy.j,fmtid:a.j.info.id,type:a.j.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.C*a.chunkSize+a.u};a.crypto&&(b.ck=a.K,b.civ=a.J);var c="local://localhost/videoplayback?"+Qz(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:8*a.j.info.Wb,lastModified:String(a.j.info.lastModified),initRange:null==
(d=a.initRange)?void 0:Fta(d),indexRange:null==(e=a.indexRange)?void 0:Fta(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};
xVa=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.oa.delete(b);(c||4===d)&&a.V.resolve(d)},function(d){a.V.reject(d)})};
bY=function(a,b){4!==g.TN(a.policy.j)&&(g.UN(a.policy.j,4),g.tG(b),a.V.reject(new cY(b.message)))};
cY=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};
CVa=function(a){a=g.fJ(a,1886614376);for(var b=g.u(a),c=b.next();!c.done;c=b.next());return g.kn(a,function(d){return new Uint8Array(d.data.buffer,d.offset+d.data.byteOffset,d.size)})};
DVa=function(a){var b=mn(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};
EVa=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.u=c;this.C=d;this.B=e;this.py=f};
FVa=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.B=[];this.Ye=!1;this.u=null;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.Ye=!0};
HVa=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=GVa(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=Dh($h(n,7)),null==b||a.Ye||(a.cryptoPeriodIndex=b),b=Dh($h(n,10)),null!=b&&0<b&&!a.Ye&&(a.j=b),n=g.u(ei(n,2,Mh(n.ma)&34?vea:
wea)),b=n.next();!b.done;b=n.next())a.B.push(g.gg(zg(b.value),4))};
IVa=function(a){return isNaN(a.cryptoPeriodIndex)?g.gg(a.initData):""+a.cryptoPeriodIndex};
dY=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.mE?void 0:d.mE;d=void 0===d.qH?!1:d.qH;this.videoId=a;this.status=b;this.videoDuration=c;this.mE=e;this.qH=d};
JVa=function(a,b,c,d,e){this.videoId=a;this.DM=b;this.u=c;this.bytesDownloaded=d;this.j=e};
KVa=function(a){this.j=a;this.offset=0};
LVa=function(a){if(a.offset>=a.j.totalLength)throw Error();return DI(a.j,a.offset++)};
MVa=function(a,b){b=void 0===b?!1:b;var c=LVa(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=LVa(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+LVa(a),d*=128;return b?c:c-d};
OVa=function(a,b,c){var d=this;this.Ca=a;this.policy=b;this.J=c;this.logger=new g.EW("dash");this.u=[];this.j=null;this.Ba=-1;this.ea=0;this.Fa=NaN;this.oa=0;this.B=NaN;this.V=this.Oa=0;this.eb=-1;this.Ma=this.C=this.D=this.Ga=null;this.kb=this.Ya=NaN;this.K=this.qa=this.Va=this.ob=null;this.rb=!1;this.timestampOffset=0;this.Rd={uV:function(){return d.u}};
if(this.policy.j){var e=this.J,f=this.policy.j;this.policy.Oa&&a.ya("atv",{ap:this.policy.Oa});this.K=new vVa(this.policy,e,function(h,l,m){eY(a,new dY(d.policy.j,2,{mE:new JVa(f,h,e.info,l,m)}))});
this.K.V.promise.then(function(h){d.K=null;1===h?eY(a,new dY(d.policy.j,h)):d.Ca.ya("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof cY&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.Ca.ya("offlinenwerr",{em:l}),NVa(d),eY(a,new dY(d.policy.j,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Ca.ya("dldbwerr",{em:l}),NVa(d),eY(a,new dY(d.policy.j,4,{qH:!0})))})}};
PVa=function(a){return a.u.length?a.u[0]:null};
fY=function(a){return a.u.length?a.u[a.u.length-1]:null};
WVa=function(a,b,c,d){d=void 0===d?0:d;if(a.C){var e=a.C.dc+a.C.u;if(0<c.info.dc)if(c.info.Pa===a.C.Pa&&c.info.dc<e){if(c.info.dc+c.info.u<=e)return;c=iua(c,e-c.info.dc)[1]}else if(0<=c.info.Pa&&0<=a.C.Pa&&!EJ(a.C,c.info))throw new g.EB("improper_continuation",a.C.Td(),c.info.Td());e=a.C;var f=c.info;(e.Pa!==f.Pa&&f.Pa!==e.Pa+1||e.type!==f.type?0:EJ(e,f)||(se(e.C,f.C)&&e.Pa===f.Pa?0:Ita(e,f)))||QVa(a,"d")}else if(0<c.info.dc)throw new g.EB("continuation_of_null",c.info.Td());a.C=c.info;a.J=c.info.j;
if(0===c.info.dc){if(a.j)if(!a.Ca.isOffline()||a.policy.nj)a.Ca.ya("slice_not_fully_processed",{buffered:a.j.info.Td(),push:c.info.Td()});else throw new g.EB("slice_not_fully_processed",a.j.info.Td(),c.info.Td());gY(a);a.Oa=d}else{if(a.Oa&&d&&a.Oa!==d)throw a=new g.EB("lmt_mismatch",c.info.Pa,a.Oa,d),a.level="WARNING",a;!c.info.j.Dn()&&a.D&&(d=c.info,e=a.D.j,d.D="updateWithEmsg",d.Pa=e)}if(a.j){d=tK(a.j,c);if(!d)throw new g.EB("failed_to_merge",a.j.info.Td(),c.info.Td());a.j=d}else a.j=c;a:{c=g.uK(a.j.info.j.info);
if(3!==a.j.info.type){if(!a.j.info.Cf)break a;7===a.j.info.type?RVa(a,b,a.j):SVa(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(0>=a.Ba&&0===a.ea){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8<h.totalLength;){var m=fta(h,l),n=fta(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 KVa(h);for(m=l=!1;;){n=h.Dq();var p=h;try{var q=MVa(p,!0),t=MVa(p,!1);var v=q;var y=t}catch(E){y=v=-1}p=v;var A=y;if(!(0<p))break;if(408125543!==p)if(524531317===p)l=!0,0<=A&&(e=
h.Dq()+A,m=!0);else{if(l&&(160===p||163===p)&&(0>f&&(f=n),m))break;163===p&&(f=Math.max(0,f),e=h.Dq()+A);if(160===p){0>f&&(e=f=h.Dq()+A);break}h.skip(A)}}0>f&&(e=-1)}if(0>f)break;a.Ba=f;a.ea=e-f}if(a.Ba>d)break;a.Ba?(d=TVa(a,a.Ba),d.C&&UVa(a,d),RVa(a,b,d),VVa(a,d),a.Ba=0):a.ea&&(d=TVa(a,0>a.ea?Infinity:a.ea),a.ea-=d.j.totalLength,VVa(a,d))}}a.j&&a.j.info.Cf&&(VVa(a,a.j),a.j=null)};
SVa=function(a,b){!b.info.j.Dn()&&0===b.info.dc&&(g.uK(b.info.j.info)||b.info.j.info.Ye())&&oua(b);if(1===b.info.type)try{UVa(a,b),XVa(a,b)}catch(e){g.sG(e);var c=GJ(b.info);c.hms="1";a.Ca.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.sN(b);a.K&&AVa(a.K,b);if(c.zg()&&a.policy.u)a:{a=a.Ca.Ua;b=b.info.clipId;c=LK(c.info,a.Jc);if(b){var d=Xua(a,c);if(a.Fa[d])break a;a.Fa[d]=b}a.Ga.push(c)}};
NVa=function(a){var b;null==(b=a.K)||b.dispose();a.K=null};
YVa=function(a){var b=a.u.reduce(function(c,d){return c+d.j.totalLength},0);
a.j&&(b+=a.j.j.totalLength);return b};
TVa=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=iua(c,b);a.j=c[1];return c[0]};
UVa=function(a,b){var c=sK(b);if(IK(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new gJ(c);iJ(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;nI(d)&&!IK(d)&&(d=sK(b),(new gJ(d)).Cn(),mJ([408125543,374648427,174,224],21936,d));b.info.j.info.lh()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.uK(d.info)?d.B=rta(c):d.info.Ye()&&(d.B=yta(c))));b.info.j.info.Ye()&&
b.info.lh()&&(c=sK(b),(new gJ(c)).Cn(),mJ([408125543,374648427,174,224],30320,c)&&mJ([408125543,374648427,174,224],21432,c));if(a.policy.fF&&b.info.j.info.Ye()){c=sK(b);var e=new gJ(c);if(iJ(e,[408125543,374648427,174,29637])){d=lJ(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.uK(b.info.j.info)){d=sK(b);c=g.XI(d,0,1701606260);f=g.XI(d,0,1836476516);if(c&&f){c.skip(2);var h=NI(c),l=PI(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(QI(c)),e.push(QI(c)),
m.push(NI(c)),n.push(NI(c));else for(h=0;h<l;++h)d.push(OI(c)),e.push(OI(c)),m.push(NI(c)),n.push(NI(c));c=g.YI(f);c=new ota(e[0]/c,d[0]/c)}else c=null;if(c){if(g.uK(b.info.j.info))for(d=sK(b),e=g.XI(d,0,1701082227);e;)f=e,f.type=1936419184,f.data.setUint32(f.offset+4,1936419184),e=g.XI(d,e.offset+e.size,1701082227);a.rb=!0;b.info.j.D=c}}b.info.j.Dn()||b.info.j.j||b.info.j.indexRange||xK(b)};
RVa=function(a,b,c){if(c.info.j.Dn()){if(a.rb&&ZVa(c)&&(b=sK(c),b=g.XI(b,0,1953658222))){b.skip(1);var d=MI(b)<<16|NI(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=PI(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=PI(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.Ga&&!!a.Ga.J.D)if(b=c.info.lh())b=mua(c),h=a.Ga,hY?(l=1/b,b=iY(a,b)>=iY(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&ZVa(c)&&(b=a.Ga,hY?(l=mua(c),h=1/l,l=iY(a,l),b=iY(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,qta(sK(c),b))}else{h=!1;a.D||(oua(c),c.u&&(a.D=c.u,h=!0,f=c.info,d=c.u.j,f.D="updateWithEmsg",f.Pa=d,f=c.u,f.C&&(a.J.index.u=!f.C),f=c.info.j.info,d=sK(c),g.uK(f)?eJ(d,1701671783):f.Ye()&&mJ([408125543],307544935,d)));a:if((f=wK(c,a.policy.ob))&&nua(c))l=$Va(a,c),a.V+=l,f-=l,a.oa+=f,a.B=a.policy.jk?a.B+f:NaN;else{if(a.policy.Cp){if(d=m=a.Ca.iq(jua(c),1),0<=a.B&&7!==c.info.type){if(a.policy.jk&&isNaN(a.Ya)){g.tG(new g.EB("Missing duration while processing previous chunk",
c.info.Td()));a.Ca.isOffline()&&!a.policy.nj||aWa(a,c,d);QVa(a,"m");break a}var n=m-a.B,p=n-a.V,q=c.info.Pa,t=a.Ma?a.Ma.Pa:-1,v=a.kb,y=a.Ya,A=a.policy.Im&&n>a.policy.Im,E=10<Math.abs(p),K=1E-7>Math.abs(a.B-d);if(1E-4<Math.abs(p)){var I=null==(e=a.D)?void 0:VI(e);e={audio:""+ +a.Ui(),sq:q.toFixed(),sliceStart:m,lastSq:t.toFixed(),lastSliceStart:v,lastSliceDuration:y,totalDrift:(1E3*n).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+ +(A||E)};if(null==I?0:I.length)e.adCpn=I[0];a.Ca.handleError("qoe.avsync",
e);a.eb=q}A||E||K||(d=a.B);e=$Va(a,c,m);f-=e;a.V=n+e;a.policy.B&&(p&&!K||e)&&(n=null==(l=a.D)?void 0:VI(l),a.Ca.ya("discontinuityRewrite",{adCpn:(null==n?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Pa,originalStartTime:m,rewrittenStartTime:d,startTimeAdjustment:d-m,segDrift:(1E3*p).toFixed(),originalDuration:f+e,rewrittenDuration:f,durationAdjustment:e}))}}else d=isNaN(a.B)?c.info.startTime:a.B;aWa(a,c,d)&&(a.oa+=f,a.B=d+f)}a.Ma=c.info;a.Ya=lua(c);0<=c.D&&(a.kb=c.D);if(h&&a.D){h=
bWa(a,!0);HJ(c.info,h);a.j&&HJ(a.j.info,h);if(!a.policy.D)for(b=g.u(b),l=b.next();!l.done;l=b.next())HJ(l.value,h);(c.info.Cf||a.j&&a.j.info.Cf)&&7!==c.info.type||(a.qa=h,b=a.Ca,b.Ua.isManifestless&&cWa(b,h,null,!!a.J.info.video),a.policy.pd||dWa(a))}}XVa(a,c);a.timestampOffset&&vK(c,a.timestampOffset)};
VVa=function(a,b){if(b.info.Cf){a.ob=b.info;if(a.D){var c=a.D,d=bWa(a,!1),e=null;if(a.D.YC()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=VI(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 EVa(e,f,h,l,g.mta(c),g.nta(c))}a.Ca.fP(a.J,d,e);a.qa||a.policy.pd||dWa(a);a.qa=null}gY(a)}a.K&&AVa(a.K,b);if(c=fY(a))if(c=tK(c,b,a.policy.mx)){a.u.pop();a.u.push(c);return}a.u.push(b)};
gY=function(a){a.j=null;a.Ba=-1;a.ea=0;a.D=null;a.Fa=NaN;a.oa=0;a.qa=null};
QVa=function(a,b){b={rst4disc:b,cd:a.V.toFixed(3),sq:a.Ma?a.Ma.Pa:-1};a.B=NaN;a.V=0;a.eb=-1;a.Ma=null;a.kb=NaN;a.Ya=NaN;a.Va=null;a.Ca.ya("mdstm",b)};
XVa=function(a,b){if(a.J.info.me){if(b.info.j.info.Ye()){var c=new gJ(sK(b));if(iJ(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=lJ(c,!0);c=16!==d?null:qJ(c,d)}else c=null;d="webm"}else b.info.K=CVa(sK(b)),c=DVa(b.info.K),d="cenc";c&&c.length&&(c=new FVa(c,d),a.policy.Xy&&g.uK(b.info.j.info)&&(d=wta(sK(b)))&&(c.u=d),c.Ye=b.info.j.info.Ye(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),b.u&&b.u.B&&(c.j=b.u.B),a.Ca.bA(c))}};
dWa=function(a){var b=a.D,c=kta(b);c&&(c.startSecs+=a.Fa,a.Ca.eP(a.J,c,b.j,b.YC()))};
bWa=function(a,b){var c,d=a.D;if(c=kta(d))c.startSecs+=a.Fa;return new vI(d.j,a.Fa,b?d.Kj:a.oa,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)};
aWa=function(a,b,c){if(!kua(b,c))return b=GJ(b.info),b.smst="1",a.Ca.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Fa)&&(a.Fa=c);return!0};
$Va=function(a,b,c){var d=0;if(b.info.j.info.Ye()&&!nua(b))return 0;if(a.Ga&&!a.Ui()){var e=0;c&&g.uK(b.info.j.info)?e=c-a.B:b.info.j.info.Ye()&&(e=a.V);var f=b.info.Pa;c=wK(b,a.policy.ob);var h=a.Ga;var l=h.eb;h=h.V;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.uK(b.info.j.info))qta(sK(b),d);else if(b.info.j.info.Ye()&&(f=e-h,!g.uK(b.info.j.info)&&(b.info.j.info.Ye(),d=new gJ(sK(b)),l=b.C?d:new gJ(new DataView(b.info.j.j.buffer)),wK(b,!0)))){var n=
1E3*f,p=sJ(l);l=d.pos;d.pos=0;if(160===d.j.getUint8(d.pos)||tJ(d))if(kJ(d,160))if(lJ(d,!0),kJ(d,155)){if(f=d.pos,m=lJ(d,!0),d.pos=f,n=1E9*n/p,p=nJ(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=wK(b,a.policy.ob);d=c-d}d&&b.info.j.info.Ye()&&a.Ca.ya("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d};
ZVa=function(a){return a.info.j.Dn()&&a.info.Pa===a.info.j.index.Gd()};
iY=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.J.D&&b&&(b+=a.J.D.j);return b+a.getDuration()};
eWa=function(a,b){0>b||(a.u.forEach(function(c){vK(c,b)}),a.timestampOffset=b)};
jY=function(a){var b=this;this.requestNumber=++fWa;this.C=this.j=this.now();this.Ma=NaN;this.Ya=this.j;this.D=NaN;this.V=this.Ba=this.B=this.u=0;this.ea=void 0;this.isActive=!1;this.Rd={Ccb:function(){return b.Sk}};
a.kC&&(this.ea=[]);var c;this.Sk=null!=(c=a.Sk)?c:!1};
kY=function(a,b,c){c=Math.round(c/1024);a.ea&&a.ea.push(gWa(b-a.Ya,c-a.Ba));a.Ya=b;a.Ba=c};
lY=function(a){return a.ea?a.ea.join(""):""};
hWa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
mY=function(a){a.isActive&&(a.isActive=!1)};
gWa=function(a,b){for(var c="";4095<a;)c+=gWa(4095,0),a-=4095;for(;4095<b;)c+=gWa(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))};
nY=function(a,b){var c=b.Ae,d=b.Lp,e=void 0===b.pC?1:b.pC,f=void 0===b.zI?e:b.zI,h=void 0===b.Sq?!1:b.Sq,l=b.bl,m=b.Pa,n=b.hh;jY.call(this,{kC:void 0===b.kC?!1:b.kC,Sk:void 0===b.Sk?!1:b.Sk});this.Qb=a;this.eb=this.Va=!1;this.qa=NaN;this.K=this.J=Infinity;this.oa=NaN;this.Oa=!1;this.Ga=NaN;this.Ae=c;this.Lp=d;this.policy=this.Ae.ea;this.pC=e;this.zI=f;this.Sq=h;this.bl=l;this.Pa=m;this.hh=n;this.snapshot=sM(this.Ae);iWa(this);this.aQ(this.j);this.qa=(this.Ga-this.j)/1E3};
lWa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u,f=a.Vs();a.isActive?1===f&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&oY(a,.05,e)):oY(a,d,e),a.eb=!0):jWa(a,c)&&(1===f&&(f=(b-a.j)/1E3,kWa(a)||a.Sq||mM(a.Ae,f)),a.D=b,a.V=c,a.isActive=!0);a.Sq||(qM(a.Ae,d,e),a.Lp(d,e));a.C=b;a.u=c};
oY=function(a,b,c){a.Sq||(b=Math.max(b,.05),Hwa(a.Ae,b,c,b))};
jWa=function(a,b){return b?a.BH()?!0:2048<=b:!1};
mWa=function(a){return(a.C-a.j)/1E3};
iWa=function(a){a.oa=a.j+1E3*a.snapshot.delay;a.Oa=!1};
pWa=function(a,b){if(a.bl&&void 0!==a.Pa&&void 0!==a.hh){var c=Math,d=c.min,e=a.J;var f=a.bl;var h=a.j;if(nWa(f,a.Pa))f=b;else{var l=0;f.cj&&(l=.2);f=h+1E3*(f.Lj+l)}a.J=d.call(c,e,f);c=Math;d=c.min;e=a.K;f=a.bl;h=a.j;l=oWa(f,a.Pa,a.hh);2!==l&&(b=l?b:h+1E3*f.Lj,f.cj&&(b+=1E3*f.Lj));a.K=d.call(c,e,b);a.J<=a.j?iWa(a):(a.oa=a.J,a.Oa=!0)}};
kWa=function(a){a.bl&&pWa(a,a.now());return a.Oa};
qWa=function(a,b){if(b+1<=a.totalLength){var c=DI(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=DI(a,b++);else if(2===c)c=DI(a,b++),a=DI(a,b++),a=(c&63)+64*a;else if(3===c){c=DI(a,b++);var d=DI(a,b++);a=DI(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=DI(a,b++);d=DI(a,b++);var e=DI(a,b++);a=DI(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),BI(a,c,4)?a=cta(a).getUint32(c-a.B,!0):(d=DI(a,c+2)+256*DI(a,c+3),a=DI(a,c)+256*(DI(a,c+1)+
256*d)),b+=5;return[a,b]};
pY=function(a){this.Qb=a;this.j=new xI};
qY=function(a,b){this.info=a;this.callback=b;this.state=1;this.iA=this.yN=!1;this.xf=null};
rWa=function(a){return g.ln(a.info.gb,function(b){return 3===b.type})};
sWa=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Qb=c;this.status=0;this.j=new xI;this.u=0;this.isDisposed=this.B=!1;this.C=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.cA()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.j.append(f);e.u+=f.length;f=(0,g.mC)();f-e.C>e.policy.j&&(e.Qb.Ip(f,e.u),e.C=f)},function(){},d.body||null)};
uWa=function(a,b){var c=this;this.j=a;this.Qb=b;this.loaded=this.status=0;this.error="";a=xJ(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new xI;tWa(this).then(function(){c.Qb.Nn()},function(d){c.error=""+d||"unknown_err";
c.Qb.Nn()})};
tWa=function(a){var b,c,d,e,f,h,l,m,n,p,q,t,v,y,A;return g.Ha(function(E){if(1==E.j){a.status=200;b=a.j.get("docid");c=Be(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 tVa(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!=E.j)return n<=m?g.z(E,xya(b,c,d,n,f),5):E.Ka(0);p=E.u;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;t=(n+1)*
e;v=Math.max(0,h.start-q);y=Math.min(h.end+1,t)-(v+q);A=new Uint8Array(p.buffer,v,y);a.u.append(A);a.loaded+=y;a.loaded<h.length&&a.Qb.Ip((0,g.mC)(),a.loaded);n++;return E.Ka(2)})};
wWa=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Qb=c;this.ea=d;this.status=0;this.response=void 0;this.V=this.u=0;this.J=this.K=!1;this.errorMessage="";this.qa=function(f){if(f)if(e.status=f.status,f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.B=f.body.getReader(),e.isDisposed()?e.B.cancel().catch(function(){}):(e.D=f.headers,e.Qb.yr(),vWa(e));
else e.onDone();else e.onError(Error("null_response"))};
this.oa=function(f){var h=(0,g.mC)();e.isDisposed()||(f.done?(e.B=void 0,e.onDone()):(f=f.value,e.u+=f.length,e.j.append(f),vWa(e),f=(0,g.mC)(),f-e.V>e.policy.j&&(e.V=f,e.Qb.Ip(h,e.u))))};
this.onError=function(f){e.errorMessage=String(f);e.K=!0;e.onDone()};
this.j=new xI;this.C=window.AbortController?new AbortController:void 0;this.start(a)};
vWa=function(a){a.B.read().then(a.oa,a.onError).then(void 0,TB)};
xWa=function(a,b,c){var d=this;c=void 0===c?{}:c;this.Qb=b;this.u=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.cA(f)};
a=yL(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",yL(function(f){d.cf(f)}),!1)};
yWa=function(a,b,c,d,e){if(sI(a.lj))return new uWa(a,c);a=a.kf();return d?Asa()?new sWa(a,b,c,e):new wWa(a,b,c,e):new xWa(a,c,e)};
rY=function(a,b,c,d,e,f,h,l,m){m=void 0===m?!1:m;g.G.call(this);this.Qb=a;this.policy=b;this.Ue=c;this.B=d;this.timing=e;this.logger=f;this.D=h;this.zw=l;this.J=m;this.lastError=null;this.u=0;this.C=!1;this.j=new g.Kq(this.W9,this.policy.od,this)};
zWa=function(a){a.B.K=(0,g.mC)();a=sY(a);a.u=(0,g.mC)();a.started+=1};
AWa=function(a,b,c){a.timing.GO((0,g.mC)(),b,c);b=a.B;b.u=0;b.J=0;b.D=0;NJ(sY(a));if(null!=(b=a.zw)&&(a=a.Ue.lj,!((0,g.mC)()<b.J+3E5||sI(a))&&(c=rI(a))&&uSa(c)&&b.u===DW(c))){var d;tI(a)&&(d=rI(uI(a)));g.rB("yt-player-bandaid-host",{primary:c,secondary:d},864E3);b.J=(0,g.mC)();rSa(b,{primary:c,secondary:d})}};
tY=function(a){"net.timeout"===a.lastError&&a.timing.qX((0,g.mC)());if("net.nocontent"!==a.lastError){var b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError;if(b&&!sI(a.Ue.lj)){var c=sY(a);c.timedOut+=1}else c=sY(a),c.j+=1;if(!a.timing.u){c=a.B;var d=a.Ue,e=a.policy,f=a.D;++c.u;b&&++c.J;rI(d.lj).startsWith("redirector.")&&(c.j=c.B.clone(),delete c.C,e.fE&&delete f[rI(c.j)])}}else++a.B.D;a.Qb.Ac(5)};
BWa=function(a,b,c){return 400<=b.status?(a.lastError=!a.policy.sB||404!==b.status||a.B.u||a.B.D?"net.badstatus":"net.nocontent",!0):b.uE()||void 0!==c&&c?!1:(a.lastError=204===b.status?"net.nocontent":"net.connect",!0)};
sY=function(a){return OJ(a.D,rI(a.Ue.lj))};
CWa=function(a){var b=a.timing.Do();b.shost=rI(a.Ue.lj);return b};
DWa=function(a){return{first:uN(a,1),DW:uN(a,2)}};
FWa=function(a,b){HN(a,1,b.formatId,uY,3);DN(a,2,b.startTimeMs);DN(a,3,b.durationMs);DN(a,4,b.Rr);DN(a,5,b.Zj);HN(a,9,b.bbb,EWa,3)};
GWa=function(a,b){GN(a,1,b.videoId);DN(a,2,b.hk)};
EWa=function(a,b){var c;if(b.NT)for(c=0;c<b.NT.length;c++)HN(a,1,b.NT[c],GWa,3)};
uY=function(a,b){DN(a,1,b.itag);DN(a,2,b.hk);GN(a,3,b.xtags)};
HWa=function(a){return{itag:uN(a,1),hk:uN(a,2),xtags:wN(a,3)}};
IWa=function(a,b){HN(a,1,b.formatId,uY,3);DN(a,2,b.Jj);DN(a,3,b.sequenceNumber);HN(a,4,b.IG,aNa,1);DN(a,5,b.LW)};
KWa=function(a){return{pY:uN(a,1),items:zN(a,2,JWa),y6:uN(a,3)}};
JWa=function(a){return{zO:uN(a,1),aI:uN(a,2),minReadaheadMs:uN(a,3)}};
LWa=function(a,b){DN(a,1,b.type);FN(a,2,b.value)};
MWa=function(a){return{K9:wN(a,1),action:uN(a,2)}};
NWa=function(a,b){var c;if(b.Rv)for(c=0;c<b.Rv.length;c++)HN(a,1,b.Rv[c],uY,3);if(b.Be)for(c=0;c<b.Be.length;c++)HN(a,2,b.Be[c],FWa,3);GN(a,3,b.clipId)};
PWa=function(a,b){HN(a,1,b.clientInfo,OWa,3);FN(a,3,b.playbackCookie);FN(a,4,b.qo);var c;if(b.jJ)for(c=0;c<b.jJ.length;c++)HN(a,5,b.jJ[c],LWa,3);GN(a,7,b.u$)};
QWa=function(a,b){HN(a,1,b.Hy,PMa,3);var c;if(b.Rv)for(c=0;c<b.Rv.length;c++)HN(a,2,b.Rv[c],uY,3);if(b.Be)for(c=0;c<b.Be.length;c++)HN(a,3,b.Be[c],FWa,3);FN(a,5,b.videoPlaybackUstreamerConfig);if(b.On)for(c=0;c<b.On.length;c++)HN(a,6,b.On[c],IWa,3);if(b.KE)for(c=0;c<b.KE.length;c++)HN(a,16,b.KE[c],uY,3);if(b.LE)for(c=0;c<b.LE.length;c++)HN(a,17,b.LE[c],uY,3);HN(a,19,b.D$,PWa,3);if(b.yJ)for(c=0;c<b.yJ.length;c++)HN(a,1E3,b.yJ[c],NWa,3)};
OWa=function(a,b){GN(a,12,b.deviceMake);GN(a,13,b.deviceModel);DN(a,16,b.clientName);GN(a,17,b.clientVersion);GN(a,18,b.osName);GN(a,19,b.osVersion)};
RWa=function(a){return{bitrate:uN(a,6),width:uN(a,7),height:uN(a,8),fps:uN(a,25),averageBitrate:uN(a,31),audioSampleRate:uN(a,45),audioChannels:uN(a,46)}};
FX=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.iE?[]:h.iE;var l=void 0===h.WE?!1:h.WE,m=void 0===h.ev?0:h.ev,n=void 0===h.poToken?"":h.poToken,p=void 0===h.zw?void 0:h.zw,q=void 0===h.rE?"":h.rE,t=void 0===h.rh?0:h.rh,v=void 0===h.Oj?new Uint8Array(0):h.Oj;h=void 0===h.zJ?!1:h.zJ;qY.call(this,b,e);var y=this;this.policy=a;this.logger=new g.EW("dash/request");this.Jy=this.Yg=0;this.eZ=!1;this.Mq=this.vp=null;this.YV=!1;this.Oj=this.rh=null;this.a_=this.ZZ=!1;this.vu=this.aG=null;this.Rd=
{Ac:function(E){y.Ac(E)},
ocb:function(){return y.xf},
pdb:function(E){y.xf=E},
odb:function(E){y.Yg=E},
ndb:function(E){y.Nd.lastError=E},
mN:function(){return y.xhr}};
this.timing=new nY(this,c);this.WE=l;this.rh=t;this.Oj=v;this.Ue=g.MJ(this.info,this.policy,d);this.Ue.set("rn",this.Kv().toString());this.Ue.set("rbuf",(1E3*m).toFixed().toString());this.WE&&this.Ue.set("smb","1");this.policy.bB&&n&&this.Ue.set("pot",n);q&&this.Ue.set("bbs",q);this.policy.useUmp&&!sI(this.Ue.lj)&&(this.Nj=new pY(this),this.Ue.set("ump","1"),this.Ue.set("srfvp","1"));(b=this.policy.gs?this.policy.aF&&!isNaN(this.info.hh)&&this.info.hh>this.policy.Xx?!1:!0:!1)&&(this.policy.Vx&&this.policy.Xj?
this.Ue.set("defsel","1"):h&&this.Ue.set("defsel",""));this.Nd=new rY(this,this.policy,this.Ue,this.info.j,this.timing,this.logger,d,p);this.iE=f||null;this.iA=SWa(this);zWa(this.Nd);d=void 0;if(this.policy.Xw||this.Nj||this.policy.Ga){d={method:"POST"};c=(0,g.vY)([120,0]);if(this.Nj||this.policy.Xw)d.body=c;this.policy.Ga&&(e=this.info.qt(),d.body=e?g.IN(e,g.iNa):c)}if(this.rh&&this.Oj){this.Ue.set("iwts","1");d={method:"POST"};c={j$:1E3*this.rh};var A;e=null==(A=this.info.qt())?void 0:A.NE;A=g.IN({Hy:c,
NE:e||void 0,videoPlaybackUstreamerConfig:this.Oj},g.iNa);d.body=A}if(a.Ww&&5===this.info.gb[0].type||6===this.info.gb[0].type)d=void 0;try{this.xhr=yWa(this.Ue,this.policy.K,this.timing,b,d),this.Nd.j.start(),this.policy.CD&&hWa(this.timing,this.kf()),g.Lf(function(){})}catch(E){TWa(this,E,!0)}};
SWa=function(a){if(!(KJ(a.info)&&a.info.Sk()&&a.policy.kd&&a.iE)||2<=a.info.j.u||0<uL()||!zva())return!1;var b=a.Ue.get("aitags");if(!b)return!1;b=Be(b).split(",");for(var c=[],d=g.u(a.iE),e=d.next();!e.done;e=d.next())e=e.value,g.Fb(b,e)&&c.push(e);if(!c.length)return!1;a.Ue.set("altitags",g.Ae(c.join(",")));return!0};
TWa=function(a,b,c){c=void 0===c?!1:c;g.sG(b);a.Nd.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.Lf(function(){tY(a.Nd)}):tY(a.Nd)};
UWa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.AC();c=!c||c<=a.policy.Mm;return(!a.xhr.Ur()||!b||-1!==b.indexOf("text/plain"))&&c};
EX=function(a,b,c,d,e){qY.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.Cg=d;this.lastError=null;this.j=new g.Kq(function(){f.isComplete()||(f.lastError="net.timeout",f.Ac(5))},this.policy.Ay);
this.cf=function(){f.isDisposed()||(f.Cg.Xc.has(f.formatId)?(f.isComplete()||f.j.start(),JSa(f.Cg,f.formatId)&&f.Zz(2),f.Cg.jh(f.formatId)&&(KSa(f.Cg,f.formatId)?f.Ac(4):(f.lastError="net.closed",f.Ac(5)))):(f.lastError="player.exception",f.Ac(5)))};
this.j.start();DSa(this.Cg,this.formatId,this.cf);g.Lf(this.cf)};
VWa=function(a,b,c,d){var e=this;this.Ca=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.EW("dash");this.B=[];this.qa=[];this.u=this.pc=null;this.Ga=this.Fa=0;this.J=-1;this.oa=!1;this.Ba=-1;this.ea=NaN;this.Rd={ZM:function(){return e.C},
hcb:function(){return e.B}};
this.C=new OVa(a,b,c);this.policy.u&&(this.V=new lVa(this.C,this.Ca.pV(),this.policy));this.Wb=c.info.Wb;this.K=c.kD();this.isManifestless=c.kD();this.D=this.K};
wY=function(a,b){b&&hY&&eWa(a.C,b.kN());var c;null==(c=a.V)||sVa(c);a.pc=b;null!=(b=a.V)&&(b.pc=a.pc)};
xY=function(a){return a.pc&&a.pc.XG()};
WWa=function(a){for(var b={},c=0;c<a.qa.length;c++)b["r"+c]=a.qa[c];return b};
XWa=function(a,b){isNaN(a.ea)||a.Ca.ya("aswr",{sq:b.info.gb[0].Pa,id:b.info.gb[0].j.info.itag,xtag:b.info.gb[0].j.info.j,ep:Date.now()-a.ea});a.B.push(b);a.u=g.zb(b.info.gb);a.qa.push(b.Td());4<a.qa.length&&a.qa.shift()};
ZWa=function(a){for(;a.B.length&&4===a.B[0].state;){var b=a.B.shift();YWa(a,b);a.Fa=b.fV()}a.B.length&&YWa(a,a.B[0])};
YWa=function(a,b){if(b.ll()){var c=b.Bk();c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.B&&b instanceof EX&&a.Ca.ya("omblss",{s:d.info.Td()}),yY(a,b.info.gb,d,b.iN())}};
yY=function(a,b,c,d){d=void 0===d?0:d;isNaN(a.ea)||(a.Ca.ya("aswm",{sq:b[0].Pa,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:$Wa(a,c);break;case 4:var e=c.info.j,f=e.BS(c),h;(null==(h=a.u)?0:4===h.type)&&Ota(c.info,a.u)&&(a.u=e.sA(a.u).pop());c=g.u(f);for(e=c.next();!e.done;e=c.next())yY(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,f=a.policy.Gm,f=void 0===f?!0:f,e.J||(e.J=(0,g.mC)(),f&&RT("fvb",e.J,e.j),RT("fvb_r",e.J,e.j))):
(e=a.timing,f=a.policy.Gm,f=void 0===f?!0:f,e.C||(e.C=(0,g.mC)(),f&&RT("avb",e.C,e.j),RT("fab_r",e.C,e.j)));WVa(a.C,b,c,d);a.policy.u&&aXa(a);break;case 7:WVa(a.C,b,c,d),a.u=c.info}};
$Wa=function(a,b){if(1===b.info.type)if(b.info.j.info.video){var c=a.timing;c.Ma||(c.Ma=(0,g.mC)(),RT("vis_r",c.Ma,c.j))}else c=a.timing,c.ea||(c.ea=(0,g.mC)(),RT("ais_r",c.ea,c.j));SVa(a.C,b);a=a.Ca;a.videoTrack.j.zg()&&a.audioTrack.j.zg()&&a.policy.u&&!a.Ua.Jc&&(b=a.audioTrack.getDuration(),c=a.videoTrack.getDuration(),1<Math.abs(b-c)&&a.ya("trBug",{af:""+LK(a.audioTrack.j.info,!1),vf:""+LK(a.videoTrack.j.info,!1),a:""+b,v:""+c}))};
JX=function(a){return PVa(a.C)};
aXa=function(a){a.B.length?a.u=g.zb(g.zb(a.B).info.gb):a.C.u.length?a.u=fY(a.C).info:a.u=xY(a)};
bXa=function(a){var b={Be:[],On:[]},c;if(null==(a=a.V))a=void 0;else{qVa(a);var d=rVa(a),e=d.Be;d=d.hA;for(var f=[],h=0;h<d.length;h++){var l=d[h];f.push({formatId:LK(l.info.j.info,a.Ua.Jc),Jj:l.info.Jj,sequenceNumber:l.info.Pa+a.u,IG:{Di:1E3*(l.info.startTime+a.timestampOffset),hC:1E3*l.info.duration,Vr:1E3},LW:l.info.u})}a={Be:e,On:f}}return null!=(c=a)?c:b};
HX=function(a,b,c){c=void 0===c?!1:c;if(a.pc){var d=a.pc.dg(),e=YK(d,b),f=NaN,h=xY(a);h&&(f=YK(d,h.j.index.getStartTime(h.Pa)));if(e===f&&a.u&&a.u.u&&cXa(dXa(a),0))return b}a=eXa(a,b,c);return 0<=a?a:NaN};
IX=function(a,b){a.j.zg();var c=eXa(a,b);if(0<=c)return c;if(null!=(c=a.V)){var d=b;c.hA=[];qVa(c);c.j=mVa(c.Be,1E3*d)}c=Math;d=c.min;var e=a.C;if(e.K)if(e=e.K,e.Qf&&3===e.Qf.type)e=e.Qf.startTime;else if(0<e.B){var f=e.j.index;f=g.Sb(f.offsets.subarray(0,f.count),e.B*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.C){var h,l;c=null==(h=a.Ca.He)?void 0:null==(l=STa(h,b))?void 0:l.clipId;a.u=a.j.Eq(b,void 0,c).gb[0]}else a.u=a.j.Eq(b).gb[0];
zY(a)&&a.pc&&a.pc.abort();a.Ga=0;return a.u.startTime};
fXa=function(a){a.K=!0;a.D=!0;a.J=-1;IX(a,Infinity)};
AY=function(a){for(var b=0,c=g.u(a.B),d=c.next();!d.done;d=c.next())d=d.value,d=d.xf&&d.xf.length?CSa(d.xf):Sta(d.info),b+=d;return b+=YVa(a.C)};
BY=function(a,b){b=void 0===b?!1:b;var c=a.Ca.getCurrentTime(),d=fY(a.C);if(!a.pc)return a.policy.xc&&b&&!isNaN(c)&&d?d.info.B-c:0;var e=xY(a);if(e&&BJ(e))return e.B;e=a.pc.dg(!0);return b&&d?(b=0,a.policy.u&&(b=$K(e,d.info.B+.02)),b+d.info.B-c):$K(e,c)};
gXa=function(a,b,c,d){GX(a);for(var e=a.C,f=null,h=e.u.length-1;0<=h;h--){var l=e.u[h];l.info.Pa>=b&&(e.u.pop(),e.B-=wK(l,e.policy.ob),f=l.info)}f&&(e.C=0<e.u.length?e.u[e.u.length-1].info:e.Va,0!==e.u.length||e.C||QVa(e,"r"));e.Ca.ya("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Pa:-1,sq:b,lastslc:e.C?e.C.Pa:-1,lastfraget:e.B.toFixed(3)});d>c?IX(a,d):a.u=a.j.As(b-1,!1).gb[0]};
DY=function(a,b){var c;for(c=0;c<a.B.length&&b!==a.B[c];c++);if(c===a.B.length)CY(a,b);else{for(;c<a.B.length;)CY(a,a.B.pop());var d=hXa(a);d&&d.j.Uv()&&xo(b.info.gb,function(e){return Pta(e,d)})?(a.u=d,a.policy.B&&a.Ca.ya("cer",{lsr:"lsp",
lsp:d.Td()})):(DJ(b.info.gb[0])?(a.u=b.xf&&b.xf.B?Nta(b.xf.B):Mta(b.info.gb[0]),a.policy.B&&a.Ca.ya("cer",{lsr:a.u.Td(),lsp:null==d?void 0:d.Td()})):(a.u=null,a.policy.B&&a.Ca.ya("cer",{lsr:"null",lsp:null==d?void 0:d.Td()})),a.Ca.isOffline()&&!a.policy.nj||CY(a,b,!0))}};
zY=function(a){var b;!(b="f"===a.j.info.yb)&&(b=a.policy.j)&&(b=a.C,b=!!b.K&&$X(b.K));if(b)return!0;b=xY(a);if(!b)return!1;var c=BJ(b)&&b.Cf;return a.isManifestless&&0<a.Ba?c||b.Pa>=a.Ba:c};
EY=function(a){var b;return zY(a)||!(null==(b=fY(a.C))||!BJ(b.info))};
dXa=function(a){var b=[],c=xY(a);c&&b.push(c);b=g.Jb(b,a.C.jn());c=g.u(a.B);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.u(d.info.gb),f=e.next(),h={};!f.done;h={lx:h.lx},f=e.next())h.lx=f.value,d.yN&&(b=g.cp(b,function(l){return function(m){return!Ota(m,l.lx)}}(h))),(DJ(h.lx)||4===h.lx.type)&&b.push(h.lx)}a.u&&!Hta(a.u,g.zb(b),a.u.j.Dn())&&b.push(a.u);
return b};
cXa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!Ita(a[b-1],a[b]))return!1;return!0};
eXa=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.u)return NaN;a=dXa(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.C<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:cXa(a,c?b:0)?a[b].startTime:NaN};
FY=function(a){return!(!a.u||a.u.j===a.j)};
iXa=function(a){return FY(a)&&a.j.zg()&&a.u.j.info.Wb<a.j.info.Wb};
jXa=function(a,b,c){return(a=hXa(a))&&!BJ(a)?a.B>b&&a.B<b+c:!1};
hXa=function(a){var b=fY(a.C);return b?b.info:xY(a)};
GX=function(a){for(var b=g.u(a.B),c=b.next();!c.done;c=b.next())CY(a,c.value);a.B=[];a.u=null};
CY=function(a,b,c){c=void 0===c?!1:c;b.yN&&((void 0===c?0:c)||!b.info.gb[0].j.Uv())&&(a=a.C,a.qa&&!a.policy.Fo&&(c=a.Ca,c.Ua.isManifestless&&sL(c.Ua,a.qa.Pa,!!a.J.info.video)),a.qa=null,a.D=null,a.C=a.ob,a.B=a.C?a.B-a.oa:NaN,gY(a));b.dispose()};
kXa=function(a){return!!a.u&&-1!==a.u.Pa&&a.u.Pa<a.j.index.cn()};
lXa=function(a){var b=a.u;b&&-1===b.Pa&&(a=fY(a.C))&&DJ(a.info)&&(a=a.info.Pa,b.D="updateLastSliceRequested",b.Pa=a)};
mXa=function(a){return xo(a.B,function(b){return b.iA})};
nXa=function(a){a=void 0===a?{}:a;var b=a.cj,c=a.Lj,d=a.Gd,e=a.Dv;this.Xj=a.Xj;this.cj=b;this.Lj=c;this.Gd=d;this.Dv=e};
nWa=function(a,b){if(0>b)return!0;var c=a.Gd();return b<c||b===c&&!a.Xj||b===c&&(a=a.Dv())&&b===a.Pa?!0:!1};
oWa=function(a,b,c){if(!nWa(a,b))return 0;if(!a.cj||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.Gd();return b<c||b===c&&(a=a.Dv())&&b===a.Pa&&!a.pending?2:1};
oXa=function(a,b,c,d){var e=a.Hv();if(a.isComplete()||!e||LJ(a.info.j,b,c))return 0;var f=b.Oo;if(!d&&f&&e>=f)return 1;d=b.sj;if(!d||e<d)return 0;a=OJ(c,RJ(a.info.j,!0,b));return a.j||a.timedOut||a.started?0:2};
pXa=function(a,b,c){if(!(b.No&&a.isComplete()&&a.canRetry()&&LJ(a.info.j,b,c)))return 0;a=OJ(c,RJ(a.info.j,!1,b));return a.u+b.No*Vta(a,b,!0)>(0,g.mC)()?0:1};
GY=function(a,b,c,d,e,f,h,l,m,n,p,q,t){g.G.call(this);var v=this;this.Ca=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.C=e;this.j=f;this.timing=h;this.D=l;this.schedule=m;this.Ua=n;this.B=p;this.oa=q;this.zJ=t;this.qa=!1;this.rE="";this.bl=null;this.hh=NaN;this.ea=!1;this.u=null;this.rh=this.V=NaN;this.Oj=null;this.Ba=this.J=0;this.logger=new g.EW("dash");this.Rd={UN:function(y,A){return v.UN(y,A)}};
0<this.policy.Go&&(this.rE=g.AG(this.policy.Go));if(a=this.policy.sx)this.K=new g.Kq(this.Ga,a,this),g.H(this,this.K)};
sXa=function(a,b,c){if(qXa(a,b,c)){if(b.K){if(a.Ua.isLive){var d=a.Ua.bf&&a.Ua.B?b.j.As(a.Ua.bf,!1):b.j.Eq(Infinity);d.hh=a.hh}else d=b.j.As(0,!1);a.oa?0===d.hh&&(d.D=a.oa.V):d.D=a.V}else if(d=b.u,d.j.zg()){var e=d.B-a.Ca.getCurrentTime(),f=!d.range||0===d.u&&0===d.dc?0:d.range.length-(d.dc+d.u),h=d.j;a.UN(b,e)&&0===f&&(a.Ua.isManifestless?h=b.j:(h=d.startTime+rXa,d.u&&(h+=d.duration),IX(b,h),d=b.u,h=d.j));h.Dn()?(f=a.B,c=GUa(a.D,h.info.Wb,c.j.info.Wb,e,0<f.C.length&&0===f.K&&a.Ca.Uq),h=FY(b),c=d.j.Ix(d,
c),(e=c.C)&&1<c.gb.length&&(h||c.j.u||c.gb[0].j!==d.j?c=d.j.Ix(d,c.gb[0].u):(h=c.gb[c.gb.length-1],f=h.u/e,!h.Cf&&.4>f&&(c=d.j.Ix(d,e-h.u)))),d=c):(0>d.Pa&&(c=GJ(d),c.pr=""+b.B.length,a.Ca.Xg()&&(c.sk="1"),c.snss=d.D,a.Ca.ya("nosq",c)),d=h.GB(d));if(a.policy.Ba)for(c=g.u(d.gb),e=c.next();!e.done;e=c.next())e.value.type=7}else d.j.Dn()?(c=GUa(a.D,b.j.info.Wb,c.j.info.Wb,0),d=d.j.Ix(d,c)):d=d.j.GB(d);if(a.u){var l=d.gb[0].j.info.id;c=a.j;e=d.gb[0].Pa;c=0>e&&!isNaN(c.B)?c.B:e;e=UUa(a.j,d.gb[0].C,c);
var m=b===a.audioTrack?1:2;f=d.gb[0].j.info.yb;h=l.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.fh.event;if(n.j.Pa===c){n="predictStart"===p?void 0:n.j.fh.event;break a}if(n.j.Pa===c-1){n="start"===p||"continue"===p?p:void 0;break a}}n=void 0}if(a.policy.Ga&&0!==a.j.u){var q=a.u.qt(e,c,l,m,f,n);0>c&&2===m&&NX(a.j,0,0,!0);if(q){var t;l=(null==(t=q.NE)?void 0:t.Ms)||"";var v;t=(null==(v=q.NE)?void 0:v.rZ)||-1;a.Ca.ya("sdai",{ssdaiinfo:"1",ds:l,skipsq:t,itag:h,f:f,sg:c,st:e.toFixed(3)});d.J=q}}else if(v=
a.u.fp(e,c,l,m,f,n),0>c&&2===m&&NX(a.j,0,0,!0),v){t={dec_sq:c,itag:h,st:e.toFixed(3)};if(a.policy.pF&&b.isRequestPending(c-1)){a.Ca.ya("sdai",{wt_daistate_on_sg:c-1});return}a.Ca.ya("sdai",t);v&&(d.u=new g.pI(v));a.policy.B&&(v=d.j.B.get("id")||"",t=(null==(q=d.u)?void 0:q.get("id"))||"",v!==t&&a.Ca.ya("stmidmismatch",{cid:v,aid:t}))}else 5!==a.j.u&&a.Ca.ya("sdai",{nodec_sq:c,itag:h,st:e.toFixed(3)})}a.policy.Em&&-1!==d.gb[0].Pa&&d.gb[0].Pa<a.Ua.bf&&(d=b.j.As(a.Ua.bf,!1));XWa(b,HY(a,d));KX(a.timing);
a.K&&(a.Ba=0,g.Lq(a.K))}};
qXa=function(a,b,c){if(a.policy.Ke&&a.policy.Fd)return!1;var d;var e=a.j,f=(null==(d=b.u)?void 0:d.Pa)||-1;3===e.u&&f+1>=e.K?(e.ya("sdai",{haltrq:f+1,est:e.K}),d=!1):d=2!==e.u;if(!d||!cK(b.u?b.u.j.u:b.j.u,a.policy,a.C)||a.Ca.isSuspended&&(!Kwa(a.schedule)||a.Ca.dC))return!1;if(a.policy.j&&5<=WN)return g.Lq(a.Ca.LH),!1;if(a.Ua.isManifestless){if(0<b.B.length&&b.u&&-1===b.u.Pa||b.B.length>=a.policy.Hm||!a.policy.qz&&0<b.B.length&&!a.policy.K.cj)return!1;if(b.K)return!a.Ua.isLive||!isNaN(a.hh)}if(mXa(b))return!1;
if(!b.u){if(!b.j.zg())return!1;IX(b,a.Ca.getCurrentTime())}if(a.policy.md&&JX(b)&&(fY(b.C)!==JX(b)||a.Ca.isSuspended))return!1;e=(d=a.policy.Ve)&&!b.B.length&&BY(b,!0)<Math.min(d,BY(c));d=b.B.length+c.B.length;f=!a.policy.tx&&((b.B.length?b.B[0].Vv():!1)||(c.B.length?c.B[0].Vv():!1)||a.Ua.isLive);(e||f)&&--d;if(d+1>=a.policy.Lm)return!1;d=b.u;if(!d)return!0;4===d.type&&d.j.zg()&&(b.u=g.zb(d.j.sA(d)),d=b.u);if(!BJ(d)&&!d.j.zs(d))return!1;f=a.Ua.Re||a.Ua.B;if(a.Ua.isManifestless&&f){f=b.j.index.Gd();
var h=c.j.index.Gd();f=Math.min(f,h);if(0<b.j.index.UG()&&0<f&&d.Pa>=f)return b.Ba=f,c.Ba=f,!1}if(d.j.info.audio&&4===d.type)return!1;if(!a.policy.md&&iXa(b)&&!a.policy.Ec)return!0;if(BJ(d)||!a.policy.md&&AY(b)&&AY(b)+AY(c)>a.policy.Va)return!1;f=!b.D&&!c.D;if(e=!e)e=d.B,e=!!(c.u&&!BJ(c.u)&&c.u.B<e);h=b===a.videoTrack&&a.policy.Ba;return e&&(!a.Ua.isManifestless||c.u&&c.u.B&&d.B)&&f&&!h||a.policy.Zb&&!b.D&&c.D?!1:DJ(d)&&d.B>tXa(a,b)?(tXa(a,b),!1):(a=b.pc)&&a.isLocked()?!1:!0};
tXa=function(a,b){var c=a.j;c=c.j?c.j.fh:null;if(a.policy.Ba&&c)return c.startSecs+c.Yh+15;b=IY(a.Ca,b,!0);!YX(a.Ca.Ie)&&0<a.policy.eb&&(c=((0,g.mC)()-a.Ca.Yq)/1E3,b=Math.min(b,a.policy.eb+a.policy.Xf*c));c=a.Ca.getCurrentTime()+b;return a.policy.Lo&&(b=uXa(a)+a.policy.Lo,b<c)?(a.Ca.ya("mrl",{ori:c,mod:b},!0),a.policy.Sx&&(a=a.Ca,c=(0,g.mC)(),a.Yq=c),b):c};
uXa=function(a){var b=a.Ca.Xm().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.Ca.getCurrentTime())return c.start/1E3;return Infinity};
vXa=function(a,b,c){if(0!==c){a:if(b=b.info,c=2===c,b.u)b=null;else{var d=b.gb[0];if(b.range)var e=yJ(b.range.start,Math.min(4096,b.C));else{if(b.B&&0<=b.B.indexOf("/range/")||"1"===b.j.B.get("defrag")||"1"===b.j.B.get("otf")){b=null;break a}e=yJ(0,4096)}e=new IJ([new AJ(5,d.j,e,"createProbeRequestInfo"+d.D,d.Pa)],b.B);e.K=c;e.u=b.u;b=e}b&&HY(a,b)}};
HY=function(a,b){a.Ca.kH(b);var c=Sta(b);c={Ae:a.schedule,pC:c,zI:EUa(a.D,c),Sk:CJ(b.gb[0]),Sq:sI(b.j.j),kC:a.policy.B,Lp:function(e,f){a.Ca.wE(e,f)}};
a.bl&&(c.Pa=b.gb[0].Pa,c.hh=b.hh,c.bl=a.bl);var d={ev:Tta(b,a.Ca.getCurrentTime()),iE:a.policy.kd&&KJ(b)&&b.gb[0].j.info.video?jVa(a.B):void 0,WE:a.policy.Ba,poToken:a.Ca.dN(),zw:a.Ca.mz(),rE:a.rE,rh:isNaN(a.rh)?null:a.rh,Oj:a.Oj,zJ:a.zJ};return new FX(a.policy,b,c,a.C,function(e,f){try{a:{var h=e.info.gb[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.Hv()||!(!a.Ca.Xa||a.Ca.isSuspended||3<BY(l))){var m=oXa(e,a.policy,a.C,a.ea);1===m&&(a.ea=!0);vXa(a,e,m);if(e.isComplete()||
e.isDisposed()&&3>f){if(a.policy.B){var n=e.policy.Gw?Object.assign(e.timing.Do(),{rst:e.state,strm:e.xhr.Ur(),d:lY(e.timing),cncl:e.xhr&&e.Nd.C?1:0}):Object.assign(e.timing.Do(),{rst:e.state,strm:e.xhr.Ur(),d:lY(e.timing)});a.Ca.ya("rqs",n)}e.eZ&&a.Ca.ya("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var p=a.timing,q=e.info.gb[0].j,t=!p.K&&q.info.video,v=!p.u&&q.info.audio;3===e.state?t?p.tick("vrr"):v&&p.tick("arr"):4===e.state?t?(p.K=e.kf(),g.LB(),NB(4)):v&&(p.u=e.kf()):e.Vv()&&t&&(g.LB(),NB(4));
var y=a.Ca;a.rh&&e.aG&&y&&(a.rh=NaN,a.Ca.yQ(e.aG),a.Ca.ya("cabrUtcSeek",{mediaTimeSeconds:e.aG}));e.lQ&&a.rh&&e.lQ&&!e.lQ.action&&(a.Ca.RH(a.rh),a.rh=NaN,a.Ca.ya("cabrUtcSeekFallback",{targetUtcTimeSeconds:a.rh}));a.policy.Fd&&e.vu&&a.Ca.YD(e.vu);if(3===e.state){DY(l,e);KJ(e.info)&&JY(a,l,h,!0);if(a.u){var A=e.info.fp();A&&a.u.Xk(e.info.gb[0].Pa,h.info.id,A)}a.Ca.nf()}else if(e.isComplete()&&5===e.info.gb[0].type){if(4===e.state){var E=(e.info.gb[0].j.info.video?a.videoTrack:a.audioTrack).B[0]||null;
E&&E instanceof FX&&E.Hv()&&E.OA(!0)}e.dispose()}else{if(!e.Bn()&&e.iA&&2<=e.state&&3!==e.state){var K=e.xhr.getResponseHeader("X-Response-Itag");if(K){var I=iVa(a.B,K),F=e.info.C;if(F){var S=F-I.aN();I.C=!0;e.info.gb[0].j.C=!1;var Y=I.Gv(S);e.info=Y;if(e.xf){var ia=e.xf,ta=Y.gb;(ta.length!==ia.gb.length||ta.length<ia.gf.length)&&ASa("dash/request",260511119,""+ta.length,""+ia.gb.length,""+ia.gf.length);ia.gb=ta;var na=ta[0].range,ca=new xI;for(f=0;f<ia.gf.length;f++)yI(ca,ia.gf[f].j);for(f=0;f<ia.gf.length;f++){ia.gf[f].info=
ta[f];var ha=ta[f].range;ia.gf[f].j=zI(ca,ha.start-na.start,ha.length);delete ia.gf[f].B}}e.iA=!1;KY(a.videoTrack,I);var Da=a.videoTrack;Da.u&&(Da.u.j=I);a.Ca.rP(I.info.video.quality);var fa=e.iN();fa&&I.info.lastModified&&I.info.lastModified!==+fa&&DY(a.videoTrack,e)}}else e.iA=!1}var U;(null==(U=e.Iz)?0:U.EH)&&a.Ca.lI(e.Iz.EH);if(4===e.state)wXa(a,e),a.j&&TUa(a.j,e.info,a.u);else if(a.policy.gs&&e.ll()&&!e.isComplete()&&!wXa(a,e)&&!e.Bn())break a;e.Bn()&&(a.ut(e),isNaN(a.rh)||(a.Ca.RH(a.rh),a.rh=
NaN));a.Ca.nf();var Ua=pXa(e,a.policy,a.C);vXa(a,e,Ua)}}}}}catch(r){I=a.qa?1:0,a.qa=!0,e=bN(I),I=cN(r,I),a.Ca.handleError(I.errorCode,I.details,I.severity),e||a.Ca.Qk()}},d)};
wXa=function(a,b){if(a.policy.useUmp&&b.isDisposed())return!1;try{var c=b.info.gb[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.Ua.isManifestless&&d){a.J=0;d.K&&(b.isDisposed(),b.isComplete()||b.ll(),d.K=!1);b.KM()&&a.Ca.lG.Rl(1,b.KM());var e=b.UG(),f=b.jV(),h=a.Ua,l;for(l in h.j){var m=h.j[l].index;m.Tm&&(e&&(m.vp=Math.max(m.vp,e)),f&&(m.Mq=Math.max(m.Mq||0,f)))}}if(b.info.Sk()&&!JJ(b.info))for(var n=g.u(b.Bk()),p=n.next();!p.done;p=n.next())$Wa(d,p.value);ZWa(d,a.Ca.getCurrentTime());var q=
!!JX(d);q&&b instanceof EX&&(c.info.Ui()?RUa(a.timing):QUa(a.timing));return q}catch(t){return b=b.Aq(),b.origin="hrhs",xXa(a.Ca,t,b),!1}};
yXa=function(a){var b=a.videoTrack.j.index;a.bl=new nXa({Xj:a.policy.Xj,cj:a.policy.K.cj,Lj:b.Lj,Gd:function(){return b.Gd()},
Dv:function(){return b.Dv()}})};
JY=function(a,b,c,d){if(!(c.zg()||c.Az()||c.C||!cK(c.u,a.policy,a.C)||"f"===c.info.yb||a.policy.u)){if(d){d=a.D;var e=c.info;d=FUa(d,e.video?d.policy.ax:d.policy.Gl,e.Wb)}else d=0;d=c.Gv(d);a=HY(a,d);JJ(d)&&XWa(b,a);c.C=!0}};
LY=function(a,b,c,d,e,f,h){g.G.call(this);this.C=a;this.D=b;this.Ca=c;this.videoTrack=e;this.audioTrack=f;this.Ua=h;this.logger=new g.EW("sabr");this.videoInfos=this.C;this.B=this.D;this.u=new WUa(d);zXa(this)};
AXa=function(a){var b=[];a=g.u(a);for(var c=a.next();!c.done;c=a.next())b.push(LK(c.value));return b};
BXa=function(a){return"l"===a.reason||"b"===a.reason||"o"===a.reason};
CXa=function(a,b,c){a.videoInfos=a.C;a.videoInfos=g.cp(a.videoInfos,function(d){return d.video.j>=b&&d.video.j<=c})};
zXa=function(a){var b=g.Db(a.D,function(c){var d;return!(null==(d=c.Nc)||!d.isDefault)});
b&&(a.B=[b])};
DXa=function(a,b){return a.map(function(c){return gK(c,b)})};
EXa=function(a){var b;if(null==(b=a.j)?0:b.isLocked())return a.videoInfos;var c=RX(a.u);b=g.cp(a.videoInfos,function(d){return!c.has(d.id)});
XUa(a.u)&&(b=g.cp(b,function(d){return 854>=d.video.width&&480>=d.video.height}));
return b};
MY=function(a){this.u={};this.logger=new g.EW(a)};
FXa=function(a){return a.itag+";"+(a.hk||0)+";"+(a.xtags||"")};
NY=function(a,b){jY.call(this,b);this.Qb=a;this.oa=!0;this.K=!1;this.qa=this.J=0;this.Ae=b.Ae;this.snapshot=sM(this.Ae);this.Lp=b.Lp;this.policy=this.Ae.ea};
GXa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u;a.pm()?0<e&&(a.K&&(.2<d||1024>e?(a.B+=d,.2<d&&Hwa(a.Ae,.05,e,.05)):Hwa(a.Ae,d,e,d)),a.oa&&(a.J+=e,a.qa+=d)):(mM(a.Ae,(b-a.j)/1E3),a.D=b,a.V=c);qM(a.Ae,d,e);a.Lp(d,e);a.C=b;a.u=c};
JXa=function(a){var b=GK[a],c=HXa[b],d=IXa[a];if(!d||!c)return null;var e=new DK(d.width,d.height,d.fps);c=$ua(c,e,b);return new HK(a,c,{video:e,Wb:d.bitrate/8})};
LXa=function(a){var b=HXa[GK[a]],c=KXa[a];return c&&b?new HK(a,b,{audio:new BK(c.audioSampleRate,c.numChannels)}):null};
NXa=function(a,b){var c=[];b=g.u(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=MXa[d]||0;a.j&&e>a.j||c.push(d)}return c};
QXa=function(a,b,c){b.push.apply(b,g.qa(OXa[a]||[]));c.N("html5_early_media_for_drm")&&b.push.apply(b,g.qa(PXa[a]||[]))};
UXa=function(a,b){var c=wO(a),d=a.W().D;if(OY&&!d.j)return OY;var e=[],f=[],h={},l=[].concat(g.qa(RXa));a.N("html5_early_media_for_drm")&&a.N("allow_vp9_1080p_mq_enc")&&l.push(SXa);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=JXa(p);!q||!q.video||JK(q)&&!c.Fa&&q.video.j>c.ij||(n?(e.push(p),QXa(p,e,a)):(q=eI(c,q,d),!0===q?(n=!0,e.push(p),QXa(p,e,a)):h[p]=q))}}l=g.u(TXa);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=LXa(m))&&p.audio&&(a.N("html5_onesie_51_audio")||!mI(p)&&!lI(p)))if(p=eI(c,p,d),!0===p){f.push(m);QXa(m,f,a);break}else h[m]=p;c.u&&b("orfmts",h);OY={video:e,audio:f};d.j=!1;return OY};
WXa=function(a){return{NZ:zN(a,1,VXa),w$:wN(a,2)}};
XXa=function(a){return{pO:uN(a,1)}};
VXa=function(a){return{clipId:wN(a,1),UA:xN(a,2,YXa),A6:xN(a,3,XXa)}};
YXa=function(a){return{waa:wN(a,1),A9:uN(a,2),Icb:uN(a,3),hC:uN(a,4),Vr:uN(a,5)}};
ZXa=function(a){MY.call(this,"sabr");this.Qb=a};
$Xa=function(a,b,c,d,e,f,h){g.G.call(this);this.policy=a;this.info=b;this.Ua=c;this.Qb=e;this.logger=new g.EW("sabr");this.Nj=new pY(this);this.f$=new ZXa(this);this.Cg=new HW(this);this.state=1;this.WY=!1;this.cQ=0;this.clipId="";this.policy.Ox?this.yf=new NY(this,f):this.yf=new nY(this,f);e=this.policy;f=void 0===b.u?LJ(b.j,e,d):b.u;e=Qta(b.j,f,e);b.Xv()&&e.set("probe","1");this.Ue=e;this.Ue.set("rn",""+this.Kv());NSa(this.Cg,c,a);this.Nd=new rY(this,this.policy,this.Ue,b.j,this.yf,this.logger,
d,h,this.policy.enableServerDrivenRequestCancellation);zWa(this.Nd);a={method:"POST"};a.body=b.B;try{this.xhr=yWa(this.Ue,this.policy.K,this.yf,RO,a),this.Nd.j.start()}catch(l){g.tG(l)}};
aYa=function(a,b){var c=-1,d=-1,e=-1,f;if(null==(f=a.bQ)?0:f.items)for(a=g.u(a.bQ.items),f=a.next();!f.done;f=a.next())f=f.value,b<f.zO||f.zO<c||(c=f.zO,d=f.aI,e=f.minReadaheadMs);return{U5:c,aI:d,AO:e}};
cYa=function(a){var b=a.policy.Gw?Object.assign(a.yf.Do(),{rst:a.state,strm:a.xhr.Ur(),d:lY(a.yf),cncl:a.xhr&&a.Nd.C?1:0}):Object.assign(a.yf.Do(),{rst:a.state,strm:a.xhr.Ur(),d:lY(a.yf)});return Object.assign(bYa(a.info),b)};
gYa=function(a){var b={},c=a.va,d=a.Ia,e=!!a.nM,f=c.getVideoData(),h=uL(0),l=c.getPlayerSize(),m=c.getVisibilityState();h&&(b.V5=h,b.lastManualDirection=vva(),h=vna()||0,0<h&&(h=(d.N("html5_use_date_now_for_local_storage")?Date.now():(0,g.mC)())-h,d.N("html5_use_date_now_for_local_storage")?0<h&&(b.timeSinceLastManualFormatSelectionMs=h):b.timeSinceLastManualFormatSelectionMs=h));b.A$=uL();d.schedule.D&&(b.E3=rM(d.schedule,!e));e=g.PM();b.Q3=l.width*e;b.P3=l.height*e;b.visibility=m;b.O$=sF();b.q4=
1E3*g.UW(c.Gc().provider);if(d.N("html5_onesie_media_capabilities")||d.N("html5_enable_server_format_filter"))b.NU=3;d.N("html5_onesie_audio_only_playback")&&vO(f)&&(b.NU=1);f=wO(f);if(d.N("html5_onesie_media_capabilities")){l=d.D;m=[];e=[];h=[].concat(g.qa(RXa));d.N("html5_early_media_for_drm")&&d.N("allow_vp9_1080p_mq_enc")&&h.push(SXa);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=JXa(p);if(q&&q.video&&!0===eI(f,q,l)){m.push({r_:dYa[GK[p]],
maxWidth:q.video.width,maxHeight:q.video.height,maxFramerate:q.video.fps});break}}}h=g.u(TXa);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=LXa(p))&&q.audio&&(d.N("html5_onesie_51_audio")||!mI(q)&&!lI(q))&&!0===eI(f,q,l)){e.push({ST:eYa[GK[p]],numChannels:q.audio.numChannels});break}b.mediaCapabilities={MJ:m,YF:e}}var t;if(null==(t=a.Jt)?0:t.u&&t.Ll){t=d.D;l=[];m=[];if((e=t.C)&&0<e.size)for(e=g.u(e.values()),h=e.next();!h.done;h=e.next())if(n=h.value,
n.Ui)m.push({ST:eYa[n.yb],numChannels:n.numChannels,y$:fYa[n.yb]});else{h={r_:dYa[n.yb],maxWidth:n.maxWidth,maxHeight:n.maxHeight,maxFramerate:n.maxFramerate,QN:n.QN};if(n.lw){h.lw=n.lw;n=JXa(n.itag);if(!n||!n.video)continue;!0===eI(f,n,t)&&(n=8*n.Wb,n>h.lw&&(h.lw=n))}l.push(h)}b.mediaCapabilities={MJ:l,YF:m,B5:3};b.Sn=f.Sn;b.ij=f.ij}d.N("html5_prefer_drc")&&(b.n4=!0);b.B9=a.YB;d.N("html5_enable_sabr_readahead_features")&&(a.Yq&&(b.P$=(0,g.mC)()-a.Yq),RO||(b.r6=!0),b.V3=1E3*pM(d.schedule));d.N("html5_enable_sabr_varispeed_support")&&
(a=c.getPlaybackRate(),1!==a&&(b.playbackRate=a));return b};
hYa=function(a,b,c,d,e){e=void 0===e?!1:e;var f=b.Dk,h="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.KN&&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.nc()});g.Fz("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.Fz("EOM_VISITOR_DATA")}):(c=c.visitorData||g.Fz("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=OL(b.experiments,
"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=hta(JSON.stringify(a));return{url:h,BN:f,postBody:a,J9:e,UE:e}};
jYa=function(a,b,c,d,e,f){var h=g.IN(a,eNa,c.ob),l={encryptedClientKey:b.j.encryptedClientKey,dZ:!0,MU:!0,qM:iYa(c,!!a.UE)};a.UE?l.baa=h:(a=b.encrypt(h),l.OU=a,(0,g.mC)(),a=xwa(new wwa(b.j.B),a,b.iv),l.dW=a,l.iv=b.iv);b=d.getVideoData();c=gYa({Ia:c,va:d,YB:1E3*b.startSeconds});return{LN:l,Hy:c,onesieUstreamerConfig:e,qo:f}};
mYa=function(a,b,c){var d,e,f;return g.Ha(function(h){if(1==h.j)return d=g.IN(b,eNa),g.z(h,kYa(c,d),2);if(3!=h.j)return e=h.u,g.z(h,lYa(c,e),3);f=h.u;return h.return({OU:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,dW:f,dZ:!0,MU:!0,qM:iYa(a,!!b.UE)})})};
nYa=function(a,b,c,d,e,f){var h,l,m;return g.Ha(function(n){if(1==n.j)return g.z(n,mYa(c,a,b),2);h=n.u;l=d.getVideoData();m=gYa({Ia:c,va:d,YB:1E3*l.startSeconds});return n.return({LN:h,Hy:m,onesieUstreamerConfig:e,qo:f})})};
iYa=function(a,b){a=rM(a.schedule,!0);b=b||!!ZL()&&1572864<a;return"DecompressionStream"in window||!b};
PY=function(a,b,c,d){this.requestType=a;this.data=b;this.Qb=c;this.B=null;if(!this.Xv()){a=b.Ua;var e=b.va.getVideoData();c=SO(e);var f=gYa({Ia:e.W(),va:b.va,YB:b.YB,nM:!!b.nM,Jt:b.Jt,Yq:b.Yq}),h=b.nextRequestPolicy,l=b.xp,m=b.uq,n=b.TQ;h={playbackCookie:null==h?void 0:h.playbackCookie};if(SO(e)&&e.sabrContextUpdates){h.jJ=[];for(var p=g.u(e.sabrContextUpdates),q=p.next();!q.done;q=p.next()){q=q.value;var t=q.type||0,v=void 0,y=void 0;!(q.sendByDefault||(null==(v=l)?0:v.has(t)))||null!=(y=m)&&y.has(t)||
!q.value||(t=iM(q.value))&&h.jJ.push({type:q.type,value:t})}}l=e.W().j;h.clientInfo={clientName:oYa[l.c.toUpperCase()]||0};l.cbrand&&(h.clientInfo.deviceMake=l.cbrand);l.cmodel&&(h.clientInfo.deviceModel=l.cmodel);l.cver&&(h.clientInfo.clientVersion=l.cver);l.cos&&(h.clientInfo.osName=l.cos);l.cosver&&(h.clientInfo.osVersion=l.cosver);n&&(h.u$=n);e.qo&&(h.qo=e.qo);l=b.KE;n=b.LE;if(void 0===n&&void 0===l){var A;n=(n=null==(A=b.JL)?void 0:A.video)?[LK(n.info,a.Jc)]:[];var E;l=(A=null==(E=b.JL)?void 0:
E.audio)?[LK(A.info,a.Jc)]:[]}if(e.Oj)var K=e.Oj;E={Hy:f,On:b.On,KE:l,LE:n,videoPlaybackUstreamerConfig:K,D$:h};if(c&&d){K=new Map;c=g.u(a.Ga);for(A=c.next();!A.done;A=c.next())if(A=A.value,e=a.Fa[Xua(a,A)]||"")K.has(e)||K.set(e,[]),K.get(e).push(A);a=new Map;c=g.u(b.Be);for(A=c.next();!A.done;A=c.next())A=A.value,e=A.startTimeMs||0,f=void 0,h=null==(f=d)?void 0:STa(f,e),f=h.clipId,h=h.VH,f&&(a.has(f)||(n=K.get(f)||[],a.set(f,{clipId:f,Be:[],Rv:n})),0!==h&&(A.startTimeMs=e-h),a.get(f).Be.push(A));
E.yJ=[];d=g.u(a.entries());for(a=d.next();!a.done;a=d.next())a=g.u(a.value),a.next(),a=a.next().value,E.yJ.push(a)}else E.Be=b.Be,E.Rv=a.Ga;this.C=E;this.B=g.IN(this.C,QWa)}this.j=b.Ua.Oa};
bYa=function(a){for(var b={},c=[],d=[],e=0;e<a.data.Be.length;e++){var f=a.data.Be[e],h=void 0;c.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+f.startTimeMs+"_d."+f.durationMs+"_sn."+f.Rr+"_en."+f.Zj)}for(e=0;e<a.data.On.length;e++){f=a.data.On[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.Jj||NaN)+"_lb."+f.LW+"_tr.s_"+(null==(l=f.IG)?void 0:l.Di)+"_d_"+(null==(m=f.IG)?void 0:m.hC)+"_t_"+(null==(n=f.IG)?void 0:n.Vr))}b.rtype=
a.requestType;b.brl=c.join(";");b.ps=d.join(";");return b};
QY=function(a,b){g.G.call(this);this.j=a;this.B=b;this.iv=(0,g.vY)(zG(16))};
kYa=function(a,b){var c;return g.Ha(function(d){(0,g.mC)();c=Dwa(a.j);return d.return(c.encrypt(b,a.iv))})};
lYa=function(a,b){var c;return g.Ha(function(d){(0,g.mC)();var e=a.j;e.C||(e.C=new ywa(e.B));c=e.C;return d.return(Bwa(c,b,a.iv))})};
pYa=function(a,b,c){var d;return g.Ha(function(e){(0,g.mC)();d=Dwa(a.j);return e.return(d.decrypt(b,c))})};
qYa=function(a){this.il=a;this.u=!1;this.j=[]};
rYa=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.videoId,d=b.OQ;if(b=b.buffer){var e=void 0,f=a.il.Pd;null==(e=RY(f,c))||OSa(e,d,b);f.notifySubscribers(c)}else if(b=a.il,b.j[d].TV=!0,c=RY(b.Pd,c),null==c?0:c.Xc.has(d))null==c||ESa(c,d)}};
g.uYa=function(a){this.data=a;this.j=0;this.C=!1;this.B=0;this.error=!1;this.register=this.u=0;if(0===SY.length){SY.length=288;SY.fill(8);for(a=144;280>a;a++)SY[a]=255>=a?9:7;sYa.length=32;sYa.fill(5);TY.length=286;TY.fill(0);for(a=261;285>a;a++)TY[a]=Math.floor((a-261)/4);UY[257]=3;for(a=258;285>a;a++){var b=UY[a-1];b+=1<<TY[a-1];UY[a]=b}UY[285]=258;for(a=0;30>a;a++)tYa[a]=3>=a?0:Math.floor((a-2)/2);for(a=VY[0]=1;30>a;a++)b=VY[a-1],b+=1<<tYa[a-1],VY[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.vk=new Uint8Array(a)};
g.AYa=function(a){for(;!a.C&&!a.error;){var b=a;b.C=!!WY(b,1);switch(WY(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=WY(b,5)+257;var f=WY(b,5)+1;for(var h=WY(b,4)+4,l=0;l<h;l++)d[vYa[l]]=WY(b,3);d=wYa(d);for(h=e+f;c.length<h;){l=xYa(b,d);switch(l){case 16:l=c[c.length-1];var m=WY(b,2)+3;break;case 17:l=0;m=WY(b,3)+3;break;case 18:l=0;m=WY(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,yYa(b,c,f));break;case 1:yYa(b,SY,sYa);break;case 0:zYa(b,
b.j&7);c=WY(b,16);e=WY(b,16);65535!==(c^e)&&(b.error=!0);b.vk.set(b.data.subarray(b.u,b.u+c),b.B);b.u+=c;b.B+=c;break;default:b.error=!0}a.B>a.vk.length&&(a.vk=new Uint8Array(2*a.B),a.B=0,a.u=0,a.C=!1,a.j=0,a.register=0)}a.vk.length!==a.B&&(a.vk=a.vk.subarray(0,a.B));return a.error?new Uint8Array(0):a.vk};
yYa=function(a,b,c){b=wYa(b);c=wYa(c);for(var d=a.data,e=a.vk,f=a.B,h=a.register,l=a.j,m=a.u;;){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.u=m,256<n){h=UY[n];h+=WY(a,TY[n]);m=xYa(a,c);l=VY[m];l+=WY(a,tYa[m]);if(BYa&&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.u}else break}a.B=f};
xYa=function(a,b){if(7>a.j){var c=a.data,d=a.u;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<<a.j;a.u+=2;a.j+=16}c=b[a.register&127];if(0<=c)return zYa(a,c&15),c>>4;for(zYa(a,7);0>c;)c=b[WY(a,1)-c];return c>>4};
WY=function(a,b){for(;a.j<b;){if(a.u>=a.data.length)return a.error=!0,0;a.register|=a.data[a.u++]<<a.j;a.j+=8}var c=a.register&(1<<b)-1;a.register>>=b;a.j-=b;return c};
zYa=function(a,b){a.j-=b;a.register>>=b};
wYa=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};
CYa=function(a,b){var c,d,e,f,h,l,m,n,p,q,t,v;return g.Ha(function(y){switch(y.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=$L.ql(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 y.return(h)}catch(A){g.sG(A),b.reload()}if(!("DecompressionStream"in window))return $L.isActive()?y.return($L.ql("gzj",function(){return g.AYa(new g.uYa(a))})):y.return(g.AYa(new g.uYa(a)));
l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new xI([]);if($L.isActive()&&$L.wu())return y.return($L.ql("gzn",function(){var A,E,K;return g.Ha(function(I){if(1==I.j)return g.z(I,n.read(),5);if(4!=I.j){A=I.u;E=A.value;if(K=A.done)return I.Ka(4);p.append(E);return I.Ka(1)}return I.return(CI(p))})}));
case 2:return g.z(y,n.read(),5);case 5:q=y.u;t=q.value;if(v=q.done){y.Ka(4);break}p.append(t);y.Ka(2);break;case 4:return y.return(CI(p))}})};
DYa=function(a){MY.call(this,"onesie");this.Pd=a;this.j={};this.C=!0;this.B=null;this.queue=new qYa(this);this.D={}};
EYa=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.u&&(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.TV){var e=a.queue;e.j.push({videoId:d.videoId,OQ:c,isEncrypted:!1});e.u||rYa(e)}}};
FYa=function(a,b){var c=b.totalLength,d=!1;switch(a.B){case 0:a.jP(b,a.C).then(function(e){var f=a.Pd;f.hd("oprr");f.playerResponse=e;f.uO||(f.DE=!1);XY(f)},function(e){a.Pd.fail(e)});
break;case 2:a.hd("ormk");b=CI(b);a.queue.decrypt(b);break;default:d=!0}a.Pd.mm&&a.Pd.ya("ombup","id.11;pt."+a.B+";len."+c+(d?";ignored.1":""));a.B=null};
GYa=function(a){return new Promise(function(b){setTimeout(b,a)})};
HYa=function(a,b){var c=OL(b.Z.experiments,"debug_bandaid_hostname");if(c)b=BW(b,c);else{var d;b=null==(d=b.j.get(0))?void 0:d.location.clone()}if((d=b)&&a.videoId){b=iM(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}};
IYa=function(a,b,c){c=void 0===c?0:c;var d,e;return g.Ha(function(f){if(1==f.j)return d=[],d.push(b.load()),0<c&&d.push(GYa(c)),g.z(f,Promise.race(d),2);e=HYa(a,b);return f.return(e)})};
JYa=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");ZL()||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(",")),RO||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad","0"),a.set("oavd","0")))};
YY=function(a,b){g.G.call(this);var c=this;this.va=a;this.playerRequest=b;this.Z=this.va.W();this.videoData=this.va.getVideoData();this.logger=new g.EW("onesie");this.mm=this.Z.Id();this.iM=this.Z.Cl;this.bE=new QY(this.iM.j,this.Z.ob);this.xhr=null;this.state=1;this.Qp=new tM;this.XV=!1;this.playerResponse="";this.Nj=new pY(this);this.il=new DYa(this);this.cE=new g.Kq(this.OV,1E4,this);this.xI=this.N("html5_enable_onesie_media_stall_timeout")?new g.Kq(function(){if(!c.isComplete()){var d=KYa(c);
c.fail(new aN("net.timeout",d))}},g.xL(this.Z.experiments,"html5_onesie_request_timeout_ms")):void 0;
this.gY=new g.Kq(this.k6,2E3,this);this.Xt="";this.wH=this.rW=!1;this.sz=this.va.mz();this.uP="";this.DE=this.N("html5_onesie_wait_for_media_availability");this.enableCompression=this.uO=this.iD=!1;this.XE=[];g.H(this.videoData,this);g.H(this,this.cE);g.H(this,this.gY);g.H(this,this.bE);a=PL();RO&&a&&!this.Z.N("html5_disable_onesie_media_bytes")&&(this.Ng=new Map);this.bV=new Map};
RY=function(a,b){var c;return null==(c=a.Ng)?void 0:c.get(b)};
LYa=function(a,b,c){var d;return g.Ha(function(e){if(1==e.j)return a.hd("oprd_s"),ZL()?g.z(e,pYa(a.bE,b,c),3):(d=a.bE.decrypt(b,c),e.Ka(2));2!=e.j&&(d=e.u);a.hd("oprd_c");return e.return(d)})};
MYa=function(a){return a.N("html5_onesie_host_probing")||a.mm?RO:!1};
XY=function(a){if(!a.playerResponse)return!1;if(a.iD)return!0;var b=a.videoData.N("html5_onesie_audio_only_playback")&&vO(a.videoData);if(a.Ng&&a.DE){if(!a.Ng.has(a.Xt))return!1;var c=a.Ng.get(a.Xt),d;if(d=c){d=!1;for(var e=g.u(c.Xc.keys()),f=e.next();!f.done;f=e.next())if(f=c.Xc.get(f.value))for(var h=g.u(f.WH),l=h.next();!l.done;l=h.next())0<l.value.Gr&&(f.Ui?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.hd("ofr");a.Qp.resolve(a.playerResponse);var m;null==(m=a.xI)||m.start();a.cE.start();return a.iD=!0};
OYa=function(a){if(a.Ng&&!a.N("html5_onesie_media_capabilities")){a.hd("ogsf_s");var b=UXa(a.va.getVideoData(),function(d,e){a.ya(d,e)}),c=NYa(a.va);
b.video=NXa(c,b.video);a.hd("ogsf_c");if(b.video.length)return b;a.ya("ombspf","l."+c.u+";u."+c.j+";o."+c.B+";r."+c.reason)}};
KYa=function(a){if(!a.yf)return{};var b=a.yf.Do();b.d=lY(a.yf);b.shost=a.bZ;b.ty="o";return b};
PYa=function(a,b){var c,d;(d=null==(a=null==(c=a.Ng)?void 0:c.get(b)))||(b=a.u?!1:a.u=!0,d=!b);return!d};
QYa=function(a,b,c,d,e,f,h,l,m,n){g.G.call(this);var p=this;this.va=a;this.Ca=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.Ua=f;this.Ae=h;this.J=l;this.B=m;this.timing=n;this.j=[];this.u={};this.K=!1;this.V="";this.xp=new Set;this.uq=new Set;this.ea="";this.Rd={ncb:function(){return p.j},
Lbb:function(){return p.u},
gbb:function(){p.j.length=0},
Xbb:function(){return p.xp},
Pbb:function(){return p.uq}};
this.Ia=this.va.W();this.videoData=this.va.getVideoData()};
RYa=function(a){if(a.policy.Qc){if(a.Ca.dC&&a.Ca.isSuspended)return!1}else if(a.Ca.dC||a.Ca.isSuspended)return!1;if(a.D&&(0,g.mC)()<a.D||0<a.j.length)return!1;var b;if(null==(b=a.Ua.Oa)||!cK(b,a.policy,a.u)||EY(a.audioTrack)&&EY(a.videoTrack)&&(!a.policy.C||a.V===a.videoData.videoId))return!1;if(a.policy.Qc&&!a.Ca.hq&&AY(a.videoTrack)>a.policy.Va&&AY(a.audioTrack)>a.policy.Va)return a.policy.B&&a.Ca.ya("sabrHeap",{a:""+AY(a.audioTrack),v:""+AY(a.videoTrack)}),!1;if(!a.C)return!0;var c=Math.min(1E3*
IY(a.Ca,a.audioTrack,!0),a.C.targetAudioReadaheadMs);b=Math.min(1E3*IY(a.Ca,a.videoTrack,!0),a.C.targetVideoReadaheadMs);var d=Math.min(c,b),e=1E3*BY(a.audioTrack,!0),f=1E3*BY(a.videoTrack,!0);a.policy.Qc?(a=e>d,b=f>d):(a=e>c,b=f>b);return!a||!b};
SYa=function(a,b){b=new $Xa(a.policy,b,a.Ua,a.u,a,{Ae:a.Ae,Lp:function(c,d){a.va.wE(c,d)},
Sk:a.policy.Wf},a.Ca.mz());KX(a.timing);a.policy.B&&a.Ca.ya("rqs",cYa(b));return b};
ZY=function(a,b){if(!b.isDisposed()&&!a.isDisposed())if(b.isComplete()&&b.Xv())b.dispose();else{if(b.wW())a.xp.clear(),a.uq.clear(),a.j.pop(),null==b||b.dispose();else if(b.Bn())a.ut(b);else{if(a.policy.xc&&a.Ca.isSuspended&&!b.isComplete())return;TYa(a)}if(!(b.isDisposed()||b instanceof YY)){if(b.isComplete())var c=pXa(b,a.policy,a.u);else c=oXa(b,a.policy,a.u,a.K),1===c&&(a.K=!0);0!==c&&(c=2===c,b=new PY(1,b.info.data),b.u=c,SYa(a,b))}}a.Ca.nf()};
TYa=function(a){for(;a.j.length&&(a.policy.Qc?a.j[0].ZV(a.ud()):a.j[0].XN());){var b=a.j.shift();UYa(a,b)}a.j.length&&UYa(a,a.j[0])};
UYa=function(a,b){if(a.policy.C){var c;var d=((null==(c=a.Ca.He)?void 0:kX(c,b.eV()))||0)/1E3}else d=0;if(a.policy.jg){c=new Set(b.zq(a.ud()));c=g.u(c);for(var e=c.next();!e.done;e=c.next()){var f=e.value;if(!(e=!(b instanceof YY))){var h=a.B,l=h.Ua.Jc;h.Ca.ud();e=DXa(h.B,l);h=DXa(h.videoInfos,l);e=e.includes(f)||h.includes(f)}if(e&&b.ll(f,a.ud()))for(e=b.Bk(f,a.ud()),f=b.jn(f,a.ud()),e=g.u(e),l=e.next();!l.done;l=e.next()){h=l.value;a.policy.C&&a.policy.C&&d&&3===h.info.type&&vK(h,d);a.policy.B&&
b instanceof YY&&a.Ca.ya("omblss",{s:h.info.Td()});l=h.info.j.info.Ui();var m=h.info.j;if(l){var n=a.B;m!==n.J&&(n.J=m,n.kI(m,n.audioTrack))}else n=a.B,m!==n.K&&(n.K=m,n.kI(m,n.videoTrack));m=l?a.audioTrack:a.videoTrack;b instanceof YY&&(m.K=!1,b instanceof YY&&(l?RUa(a.timing):QUa(a.timing)));yY(m,f,h)}}}else for(h=b.dV()||XX(a.J),c=new Set(b.zq(a.ud())),a.policy.C?l=c:l=[(null==(f=h.video)?void 0:hK(f,a.Ua.Jc,a.ud()))||"",(null==(e=h.audio)?void 0:hK(e,a.Ua.Jc,a.ud()))||""],f=g.u(l),e=f.next();!e.done;e=
f.next())if(e=e.value,c.has(e)&&b.ll(e,a.ud()))for(h=b.Bk(e,a.ud()),h=g.u(h),l=h.next();!l.done;l=h.next()){l=l.value;a.policy.C&&d&&3===l.info.type&&vK(l,d);a.policy.B&&b instanceof YY&&a.Ca.ya("omblss",{s:l.info.Td()});m=b.jn(e,a.ud());var p=(n=l.info.j.info.Ui())?a.audioTrack:a.videoTrack;b instanceof YY&&(p.K=!1,b instanceof YY&&(n?RUa(a.timing):QUa(a.timing)));yY(p,m,l)}};
VYa=function(a,b){for(var c=[],d=0;d<a.j.length;d++)b&&a.j[d]instanceof YY?c.push(a.j[d]):a.j[d].dispose();a.j=c};
WYa=function(a,b){if(b.Bn()||b.isDisposed()){var c=a.Ca,d=c.ya,e=b.state;a=a.ud();var f,h;if(null==(b=null==(f=b.Ng)?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.Xc.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),b.XE.push(a),KX(a.timing)};
XYa=function(a,b,c,d,e){this.Ca=a;this.policy=b;this.schedule=c;this.Jy=d;this.ea=e;this.oa=NaN;this.u=this.K=this.C=null;this.j=this.D=this.J=this.startTimeSecs=NaN;this.B=!1;this.V=NaN};
YYa=function(a,b,c,d,e,f){return b.eh&&b.Je&&3===c?new XYa(a,b,d,e,f):null};
ZYa=function(a,b){if(a.policy.mB){var c=b.info.Wb,d=rM(a.schedule);b=b.index.Lj;c=Math.max(1,d/c);a.V=Math.round(1E3*Math.max(((c-1)*b+a.policy.rb)/c,b-a.policy.yk))}};
bZa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.J,f=e>=a.policy.Ep,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e<a.policy.oB&&(h=!0);a.J=c}c=d>=a.policy.yk&&!a.B;if(!f&&!c&&$Ya(a,b))return NaN;c&&(a.B=!0);a:{d=h;c=Date.now()/1E3-(a.Jy.pj()||0)-a.K.u-a.policy.rb;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){$Y(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.xk;d<c&&(c=d)}else a.B&&(d=c+a.policy.rb-a.oa+a.policy.pB,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.xk))),c=d);f=c=Math.max(c,
f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&$Ya(a,b))return aZa(a,b),NaN;if(a.j<=a.u.startTime)return $Y(a,NaN,"y",b),a.clear(),NaN;if(!a.ea(a.j,!1))return!aZa(a,b)&&h&&($Y(a,NaN,"t",b),a.clear()),NaN;h=a.j;$Y(a,h,"s",b);a.clear();return h};
aZa=function(a,b){return a.ea(a.j,!0)?!1:($Y(a,NaN,"ns",b),a.clear(),!0)};
$Ya=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.B?a.policy.xk:a.policy.nB)};
$Y=function(a,b,c,d){var e=a.C.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=Date.now().toFixed(0);e.ssr_f=(1E3*a.K.u).toFixed(0);e.ssr_fa=a.B?"1":"0";e.ssr_o=(1E3*a.Jy.pj()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.u.j.index;oK(b,a.u.Pa,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.u.Pa)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.u.Pa)).toFixed(0));a.Ca.ya("ssr",e)};
cZa=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.aZ=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.G.call(this);var p=this;this.va=a;this.schedule=b;this.policy=c;this.Ua=d;this.ea=m;this.wb=n;this.timing=new PUa(this.wb);this.J=new DUa(this.schedule,this.policy);this.Xa=null;this.ob=new g.Kq(this.nf,0,this);this.LH=new g.Kq(this.nf,1E3,this);this.rb=new g.Kq(this.nf,void 0,this);this.Va=new g.Kq(this.nf,1E4,this);this.D=this.currentTime=NaN;this.Ba=this.hq=0;this.Uq=this.dC=this.isSuspended=!1;this.Oa="";this.lG=new jM(5);this.Eb={};this.timestampOffset=
NaN;this.eb=!1;this.Ya=0;this.K=null;this.Ga=NaN;this.Fa=!1;this.logger=new g.EW("dash");this.Yq=0;this.Rd={getAudioTrack:function(){return p.audioTrack},
pV:function(){return p.Ua},
rcb:function(){return p.qa},
nf:function(){p.nf()}};
a=m&&m.zq();m&&(NSa(m,this.Ua,this.policy),this.Ga=Date.now());this.Ie=new YUa(this,this.J,c,this.Ua,e,a);c=cVa(this.Ie,f,h&&h.id);this.audioTrack=new VWa(this,this.policy,c.audio,this.timing);this.videoTrack=new VWa(this,this.policy,c.video,this.timing);this.videoTrack.C.Ga=this.audioTrack.ZM();this.Ma={updateend:this.k0,error:this.V6};g.H(this,this.ob);g.H(this,this.LH);g.H(this,this.rb);g.H(this,this.Va);c=this.policy.Wx&&this.policy.Xj?!tua(this.videoTrack.j.info):!1;this.kb=kVa({cj:this.policy.K.cj||
c,Xj:this.policy.Xj&&!c,gs:this.policy.gs});this.C=YYa(this,this.policy,this.kb,this.schedule,this.lG,function(K,I){return dZa(p,K,I)});
this.u=new SUa(this,this.Ua,this.policy,this.videoTrack,this.audioTrack,l);this.j=new DX(this,this.Ua,this.videoTrack,this.audioTrack,this.policy);this.B=new GY(this,this.policy,this.videoTrack,this.audioTrack,this.Eb,this.u,this.timing,this.J,this.schedule,this.Ua,this.Ie,this.C,c);g.H(this,this.B);this.oa=new LY(e.videoInfos,e.j,this,this.policy,this.videoTrack,this.audioTrack,this.Ua);g.H(this,this.oa);this.qa=new QYa(this.va,this,this.policy,this.audioTrack,this.videoTrack,this.Ua,this.schedule,
this.Ie,this.oa,this.timing);g.H(this,this.qa);this.V=this.va.rf.Mt.Yy;var q,t;if(null==(q=this.V)?0:null==(t=q.Iz)?0:t.EH){var v;this.lI(null==(v=this.V)?void 0:v.Iz.EH)}var y;if(null==(y=this.V)?0:y.playbackStartPolicy){var A,E;INa(this.policy,null==(A=this.V)?void 0:A.playbackStartPolicy,3,null==(E=this.V)?void 0:E.Kv())}};
bZ=function(a,b){var c=hK(b.j,a.Ua.Jc,a.ud()),d,e=(null==(d=a.ea)?void 0:d.jn(c))||[];if(0===e.length)return a.ya("ombmsi",{}),!1;a:{e=new IJ(e);d=a.currentTime;e=g.u(e.gb);for(var f=e.next();!f.done;f=e.next())if(f=f.value,3===f.type&&d>=f.C&&d<=f.B){d=!0;break a}d=!1}if(!d)return a.ya("ostmf",{ct:a.currentTime,a:b.j.info.Ui()}),!1;a.policy.Vf&&null!=(a=a.ea)&&(a.Xc.get(c).TF=!0);return!0};
eZa=function(a){if(!a.Ua.Jc)return!0;var b=a.va.getVideoData(),c,d;if(a.policy.yx&&!!(null==(c=a.V)?0:null==(d=c.X5)?0:d.E9)!==a.Ua.Re)return a.ya("ombplmm",{}),!1;b=b.Qc||b.liveUtcStartSeconds||b.nj;if(a.Ua.Re&&b)return a.ya("ombplst",{}),!1;if(a.Ua.qa)return a.ya("ombab",{}),!1;b=Date.now();return sva(a.Ua)&&!isNaN(a.Ga)&&b-a.Ga>1E3*a.policy.iy?(a.ya("ombttl",{}),!1):a.Ua.bf&&a.Ua.B||!a.policy.uB&&a.Ua.isPremiere?!1:!0};
fZa=function(a,b){var c=b.j,d=a.Ua.Jc;if(eZa(a))if(a.ud(),a.ea&&a.ea.Xc.has(gK(c.info,d))){if(d=gK(c.info,d),bZ(a,b)){var e=new IJ(a.ea.jn(d)),f=function(h){try{if(h.Bn())a.handleError(h.tf(),h.Aq()),DY(b,h),KJ(h.info)&&JY(a.B,b,c,!0),a.nf();else if(wXa(a.B,h)){var l;null==(l=a.u)||TUa(l,h.info,a.K);a.nf()}}catch(m){h=cN(m),a.handleError(h.errorCode,h.details,h.severity),a.Qk()}};
c.C=!0;JJ(e)&&(XWa(b,new EX(a.policy,d,e,a.ea,f)),KX(a.timing))}}else a.ya("ombfmt",{})};
cZ=function(a,b){b=b||a.videoTrack&&a.videoTrack.u&&a.videoTrack.u.startTime||a.currentTime;var c=a.videoTrack,d=a.Ie;b=d.nextVideo&&d.nextVideo.index.Lh(b)||0;d.Ma!==b&&(d.Oa={},d.Ma=b,TX(d,d.u));b=!YX(d)&&-1<d.V&&8E3>(0,g.mC)()-d.V;var e=d.nextVideo&&3*VX(d,d.nextVideo.info)<CX(d.Fa);if(!b||e)SX(d),UX(d),d.qa=d.qa||d.nextVideo!==d.B;d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.Ma=-1);KY(c,d.nextVideo);KY(a.audioTrack,a.Ie.j)};
dZ=function(a,b){a.dC=b;a.policy.Ba||(a.isSuspended=!0)};
gZa=function(a,b,c,d){gXa(a.videoTrack,d,c,b);gXa(a.audioTrack,d,c,b);sL(a.Ua,d,!0);sL(a.Ua,d,!1);a.ya("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
eZ=function(a){a.policy.Ya=!1;try{hZa(a)}catch(b){g.sG(b)}};
iZa=function(a){a.Xa&&a.Xa.j&&a.Xa.u&&(UG(a.Xa.j,a.Ma,a),UG(a.Xa.u,a.Ma,a));wY(a.audioTrack,null);wY(a.videoTrack,null);a.Xa&&(a.Xa.C=!1);a.Xa=null};
jZa=function(a){a.Xa&&a.Xa.jh()&&(a.Uy(),a.policy.tE&&a.handleError("fmt.unplayable",{unexpected:1},1))};
lZa=function(a,b){b&&kZa(a.va,new PX(b.video,b.reason));a.Ie.ob&&(b=XX(a.Ie,"a"),a.va.ww(new PX(b.audio,b.reason)))};
xXa=function(a,b,c){if(b instanceof Error){c.msg||(c.msg=""+b.message);c.name||(c.name=""+b.name);if(b instanceof g.EB&&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.tG(b);if("WARNING"===b.level){fZ(a.va,c);return}}a.handleError("fmt.unplayable",c,1)};
gZ=function(a){g.Lq(a.ob)};
hZa=function(a){if(a.Xa){var b=a.Xa.j,c=a.Xa.u,d=mZa(a);if(d){if(a.policy.gs){if(!b.Xs()){var e=JX(a.audioTrack);e&&(nZa(a,a.audioTrack,b,e.info),oZa(a,b,e))}!c.Xs()&&(b=JX(a.videoTrack))&&(nZa(a,a.videoTrack,c,b.info),oZa(a,c,b))}a.hq||(a.hq=(0,g.mC)(),a.policy.B&&(a.ya("apdps",{r:d}),cU(a.policy)&&(c=CX(a.J),a.ya("sdps",{ct:a.hq,ah:BY(a.audioTrack,!0),vh:BY(a.videoTrack,!0),mr:HUa(a.J,a.Uq,c),bw:c,js:+a.Uq,ps:(a.policy.Ez||"").toString(),rn:(a.policy.Dz||"").toString()}))))}else{if(a.hq){d=a.hq;
d=(0,g.mC)()-d;e=BY(a.audioTrack,!0);var f=BY(a.videoTrack,!0);a.policy.B&&a.ya("apdpe",{dur:d.toFixed(),abuf:(1E3*e).toFixed(),vbuf:(1E3*f).toFixed()});a.hq=0}a.C&&(d=a.C.nf(a.audioTrack,ZK(a.Xa.u.dg())))&&a.va.seekTo(d,{Qv:!0,ke:"pollSubsegmentReadahead",iq:!0});d=!1;pZa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.D||(e.D=(0,g.mC)(),RT("vda",e.D,e.j),e.B&&(g.LB(),NB(4))),e=a.timing,e.Oa||(e.Oa=(0,g.mC)(),RT("vrb_f",e.Oa,e.j)));if(a.Xa&&!a.Xa.jh()&&(pZa(a,a.audioTrack,b)&&(d=!0,e=a.timing,e.B||(e.B=(0,g.mC)(),
RT("ada",e.B,e.j),e.D&&(g.LB(),NB(4))),e=a.timing,e.oa||(e.oa=(0,g.mC)(),RT("arb_f",e.oa,e.j))),!a.isDisposed()&&a.Xa)){!a.policy.Ya&&zY(a.videoTrack)&&zY(a.audioTrack)&&hL(a.Xa)&&!a.Xa.wj()&&(e=xY(a.audioTrack).j,e===a.Ua.j[e.info.id]&&(e=a.Xa,hL(e)&&(e.Xa?e.Xa.endOfStream():e.ph.webkitSourceEndOfStream(e.ph.EOS_NO_ERROR)),e=a.schedule,uva(sM(e)),e.C=(0,g.mC)(),e.D=!0));e=a.policy.Zx;f=a.policy.tB;if(!d&&(0<e||f)&&hL(a.Xa)&&!zY(a.videoTrack)&&!zY(a.audioTrack)){var h=a.policy.ea?a.ya.bind(a,"sbr"):
void 0;b.GJ(a.currentTime,f,e,h);c.GJ(a.currentTime,f,e,h)}d&&!a.Xa.isAsync()&&gZ(a)}}}};
mZa=function(a){if(mXa(a.videoTrack))return"ssf";if(a.policy.Eo||EY(a.audioTrack)||EY(a.videoTrack)&&"f"!==a.videoTrack.j.info.yb)return"";if(a.j.Xg()){var b=a.J;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.u){var e=b.policy.Ri;cU(b.policy)&&(e=HUa(b,!1,CX(b)));b=e;c=BY(d,!0)>=b&&BY(c,!0)>=b}else c.B.length||d.B.length?(e=c.j.info.Wb+d.j.info.Wb,e=10*(1-CX(b)/e),b=Math.max(e,b.policy.Ri),c=BY(d,!0)>=b&&BY(c,!0)>=b):c=!0;if(!c)return"abr";c=a.videoTrack;if(0<c.B.length&&1===c.C.u.length&&PVa(c.C).info.J<
c.Fa)return"seek"}c=!a.policy.Li||10>a.currentTime||360<a.videoTrack.j.info.video.j;if(!a.Uq||!cU(a.policy)&&c)return"";c=a.policy.Li;cU(a.policy)&&(c=HUa(a.J,a.Uq,CX(a.J)));c=jXa(a.videoTrack,a.currentTime,c)||jXa(a.audioTrack,a.currentTime,c);return cU(a.policy)?c?"mbnm":"":(0<a.videoTrack.B.length||0<a.audioTrack.B.length||qXa(a.B,a.videoTrack,a.audioTrack)||qXa(a.B,a.audioTrack,a.videoTrack))&&c?"nord":""};
pZa=function(a,b,c){if(c.NN())return!0;if(!c.eG())return!1;var d=JX(b);if(!d||7===d.info.type)return!1;var e,f;(f=null==(e=a.u))||(f=1===e.u||2===e.u)||!(f=0!==e.u&&b===e.Fa)||(e=hXa(e.V),f=d.info.Pa>(e?e.Pa:-1));if(f)return a.j.Xg()&&gZ(a),!1;nZa(a,b,c,d.info);if(a.Ua.u&&0===d.info.dc){if(null==c.Xs()){e=xY(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.K,f=d.info.K,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.Xb(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.Xs(),d.info.j.Az()&&xK(d),
f=d.info.j.j,e=e!==f&&!g.Xb(e,f);e&&(f=xY(b),a.ya("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Pa}));f=g.uK(d.info.j.info);a.policy.hc&&f&&!e&&(g.uK(d.info.j.info)?(eJ(sK(d),1836019574),eJ(sK(d),1718909296)):(e=new gJ(sK(d)),Cta(e),kJ(e,524531317,!0),d.j=d.j.split(e.start+e.pos).yl),d.C=!1)}a.policy.xj?d.B=void 0:a.policy.oF&&!c.Xs()&&(e=d.info.j.j,1===d.j.j.length||0!==d.info.dc||d.C||d.B||3!==d.info.type||!e||(f=new xI([e]),yI(f,d.j),f=CI(f),e=(new xI([f])).split(e.length),
d.B=e.aD,d.j=e.yl));e=a.C&&!!a.C.C&&b.j.info.audio;f=a.Ua.isManifestless||d.B||d.C;if(!(a.Ua.u&&0!==d.info.dc||f&&!e)&&oZa(a,c,d))return!0;if(e)return!1;e=IY(a,b,!1);if(d.info.C>a.currentTime+e)return a.policy.u&&!a.Ba&&(a.Ba=(0,g.mC)()),!1;a.Ba&&(a.Ba=0);a:{e=a.policy.ea?(0,g.mC)():0;f=d.C||d.B?d.info.j.j:null;h=d.j;d.B&&(h=new xI([]),yI(h,d.B),yI(h,d.j));var l=CI(h);h=a.policy.ea?(0,g.mC)():0;f=qZa(a,c,l,d.info,f);a.policy.ea&&(!d.info.dc||d.info.Cf||10>d.info.C)&&a.ya("sba",c.qc({as:d.info.Td(),
pdur:Math.round(h-e),adur:Math.round((0,g.mC)()-h)}));if("s"===f)a.Fa&&(a.Fa=!1),a.Ya=0,a=!0;else{if("i"===f||"x"===f)rZa(a,"checked",f,d.info);else{if("q"===f){if(!a.Fa){a.Fa=!0;a=!1;break a}d.info.lh()?(c=a.policy,c.qa=Math.floor(.8*c.qa),c.kb=Math.floor(.8*c.kb),c.oa=Math.floor(.8*c.oa)):(c=a.policy,c.Fa=Math.floor(.8*c.Fa),c.xd=Math.floor(.8*c.xd),c.oa=Math.floor(.8*c.oa));bU(a.policy)?QX(a.oa.u,d.info.j,!1):WX(a.Ie,d.info.j)}fZ(a.va,{reattachOnAppend:f})}a=!1}}if(!a)return!1;b.Nw(d);return!0};
rZa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",bU(a.policy)?!d.j.info.video||0<RX(a.oa.u).size||QX(a.oa.u,d.j,!1):!d.j.info.video||0<RX(a.Ie.oa).size||WX(a.Ie,d.j)):"i"===c&&(15>a.Ya?(a.Ya++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=GJ(d);var h;d.mrs=null==(h=a.Xa)?void 0:kL(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
cWa=function(a,b,c,d,e){var f=a.Ua;var h=!1,l=-1;for(p in f.j){var m=MK(f.j[p].info.mimeType)||f.j[p].info.lh();if(d===m)if(m=f.j[p].index,oK(m,b.Pa)){if(!f.Va){h=b;var n=m.bp(h.Pa);n&&n.startTime!==h.startTime?(m.segments=[],m.BK(h),h=!0):h=!1}h&&(l=b.Pa)}else m.BK(b),h=!0}if(0<=l){var p={};f.ra("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;OUa(a.j,b,d,f);a.u.fP(b,c,d,e);b.Pa===a.Ua.bf&&f&&qL(a.Ua)&&b.startTime>qL(a.Ua)&&(a.Ua.Eb=b.startTime+(isNaN(a.timestampOffset)?0:a.timestampOffset),
a.j.Xg()&&a.j.j<a.Ua.je()&&a.j.seek(a.Ua.je(),{}))};
nZa=function(a,b,c,d){b=xY(b);!b||b.Cf||EJ(b,d)||c.abort();!c.GC()||dL()?c.lR(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.GC()&&a.ya("ctu",{ct:dL(),prev_c:c.GC(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.Kl&&b&&(d=0+b.duration,b=-b.j,0===c.wC()&&d===c.LG()||c.rQ(0,d),b!==c.Hd()&&(c.Nr(b),hY&&eWa(a.audioTrack.ZM(),c.kN())))};
oZa=function(a,b,c){c.info.j.zg();var d=c.info.j.j;if(!d||!b.eG()||b.Xs()===d)return!1;var e=d,f=b.VG();if(a.policy.xj&&f&&b.isView()&&g.uK(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=vta(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.ya("fenc",{})}f=null;(h=c.info.j.Gv(0,c.info.clipId))&&(f=h.gb[0]);a.policy.ea&&a.ya("sbi",b.qc({as:c.info.Td()}));a.policy.aB&&b.abort();d=qZa(a,b,e,f,d);if("s"!==d)return rZa(a,"sepInit",d,c.info),!0;c.info.lh()?(a=a.timing,
a.Fa||(a.Fa=(0,g.mC)(),RT("vis_a",a.Fa,a.j))):(a=a.timing,a.V||(a.V=(0,g.mC)(),RT("ais_a",a.V,a.j)));return b.wj()};
qZa=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:VK(b.dg()).replace(/,/g,"_"),vheap:AY(a.videoTrack),aheap:AY(a.audioTrack),message:g.hg(f.message,3),track:a.Xa?b===a.Xa.u?"v":"a":"u"},cZa()),a.handleError("player.exception",b),"q";g.sG(f)}return"u"}return a.Xa.jh()?"m":"s"};
eY=function(a,b){a.va.nI(b)};
IY=function(a,b,c){if(a.Fa&&!a.Uq)return c?5:3;if(a.isSuspended)return 1;var d;if(a.policy.vB&&(null==(d=a.Xa)?0:gL&&"boolean"===typeof d.Xa.streaming))return a.Xa.Xa.streaming?35:4;d=b.j.info.audio?a.policy.Fa:a.policy.qa;!a.policy.Ec&&YX(a.Ie)&&(d=Math.max(d,b.j.info.audio?a.policy.xd:a.policy.kb));c&&!a.policy.md&&(d+=a.policy.Va);c=YX(a.Ie)?b.u?b.u.j.info.Wb:b.j.info.Wb:b.Wb*a.policy.Dm;c=d/c;0<a.policy.Om&&a.Xa&&hL(a.Xa)&&(b=b.j.info.video?a.Xa.u:a.Xa.j)&&!b.wj()&&(b=b.dg(),d=WK(b,a.currentTime),
0<=d&&(b=a.currentTime-b.start(d),c+=Math.max(0,Math.min(b-a.policy.Om,a.policy.by))));0<a.policy.oa&&(c=Math.min(c,a.policy.oa));return c};
sZa=function(a,b){ZS(b,"cms",function(c){a.policy.B&&a.ya("pathprobe",c)},function(c){a.va.handleError(c)})};
tZa=function(a,b){a.K=b;a.u&&(a.u.C=b);a.K.AQ(a.videoTrack.j.info.Ye());a.B.u=a.K};
uZa=function(a,b){if(a.Xa&&a.Xa.u){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;var c=a.u,d=b;if(0!==c.u&&c.C){var e=c.nz(d);e!==c.oa&&(c.C.oP(c.oa,e,c.Ga,d),c.oa=e);c.Ga=d}a.currentTime!==b&&a.resume();a.j.Xg()&&a.Xa&&!a.Xa.jh()&&(c=a.currentTime<=b&&b<a.currentTime+10,d=XK(a.Xa.u.dg(),a.currentTime+rXa),c&&d&&(a.j.D=!1));if(!a.j.Xg()){var f;a.policy.Ap&&b-(null==(f=a.videoTrack.u)?NaN:f.B)>a.policy.Ap&&(a.ya("lucts",{pmt:a.currentTime,cmt:b,lvr:a.videoTrack.u.Td()}),a.policy.nF||a.va.seekTo(a.currentTime,
{ke:"trackGap",iq:!0,e6:!0}));a.currentTime=b}g.Lq(a.LH)}};
vZa=function(a,b){var c=dXa(a.videoTrack).find(function(d){return d.startTime>=b&&dZa(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
dZa=function(a,b,c){if(!(a.videoTrack.j.zg()&&a.audioTrack.j.zg()&&a.Xa&&a.Xa.u&&a.Xa.j))return!1;if(c&&a.Ua.isManifestless&&(-1===a.videoTrack.J||-1===a.audioTrack.J))return!0;var d=HX(a.videoTrack,b,c);if(isNaN(d))return!1;a=HX(a.audioTrack,a.policy.Je?b:d,c);return isNaN(a)?!1:!0};
hZ=function(a){a.Qk();a.C&&ZYa(a.C,a.videoTrack.j);gZ(a);a=a.j;var b=Math.max(a.videoTrack.C.B||0,a.audioTrack.C.B||0);fXa(a.videoTrack);fXa(a.audioTrack);a.policy.D||qva(a.Ua);a.Ua.isManifestless&&!a.policy.D&&(a.u=!0,a.B=0);a.Ca.currentTime=b;a.D=!0;a.C=new tM;return a.C};
KY=function(a,b){a.j!==b&&(a.j=b)};
wZa=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.u.J=a.timestampOffset,a.va.qP(a.timestampOffset),a.Ua.isManifestless&&(a.Ua.timestampOffset=a.timestampOffset),a.videoTrack.Nr(a.timestampOffset),a.audioTrack.Nr(a.timestampOffset))};
g.iZ=function(a){this.jd=a};
jZ=function(){g.SG.apply(this,arguments)};
kZ=function(a,b,c,d){jZ.call(this);var e=this;this.B=-1;this.j={};this.C=new g.Kq(this.D,0,this);g.H(this,this.C);this.u=new g.Kq(function(){e.isDisposed()||(e.C.start(Math.random()*c),e.u.start(b))},a,this);
g.H(this,this.u);d.subscribe("fairplay_next_need_key_info",this.J,this)};
xZa=function(a){if(!(28>=a.length))for(var b=(0,g.vY)([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=GI(b);a=ig(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++}};
lZ=function(a,b){jZ.call(this);var c=this;this.B=a;this.j=[];this.u=new g.Kq(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();yZa(c,d.info)}0<c.j.length&&(d=c.j[0].time-(0,g.mC)(),c.u.start(Math.max(0,d)))}},0);
g.H(this,this.u);b.subscribe("widevine_set_need_key_info",this.C,this)};
yZa=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.B.size)c=!0;else{for(var d=g.u(a.B.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)};
zZa=function(a){var b=a.interval,c=a.vA;this.url=a.url;this.interval=b;this.vA=c};
AZa=function(a,b){this.statusCode=a;this.message=b;this.u=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null};
BZa=function(a){var b=EI(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=WI(b.slice(d+2));if(null==b)return null;a=new AZa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.yBa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new zZa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,vA:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.u=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};
CZa=function(a,b,c){c=void 0===c?"":c;g.G.call(this);this.message=a;this.requestNumber=b;this.timer=c;this.onError=this.onSuccess=null;this.j=new g.Aj(5E3,2E4,.2)};
DZa=function(a,b,c){a.onSuccess=b;a.onError=c};
FZa=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(RH("drm_net_r",void 0,a.timer),e=new Uint8Array(e.response),e=BZa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else EZa(a,e)},
onError:function(e){EZa(a,e)}};
c&&(b=tfa(b,"access_token",c));g.hA(b,d)};
EZa=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)};
HZa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){RH("drm_net_r",void 0,a.timer);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=ig(f.license)}catch(y){g.sG(y)}if(0!==h||l){l=new AZa(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 t=GZa[q.trackType];if(t){"HD"===t&&f.isHd720&&(t="HD720");q.isHdr&&(t+="HDR");
h[t]||(m.push(t),h[t]=!0);var v=null;try{v=ig(q.keyId)}catch(y){g.sG(y)}v&&(n[g.gg(v,4)]=t)}}l.u=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.TT="Bearer "+d);g.ID(c,"player/get_drm_license",b,e)};
IZa=function(a,b,c,d){g.SG.call(this);this.videoData=a;this.Z=b;this.ea=c;this.sessionId=d;this.D={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.K=this.qa=!1;this.B=null;this.Ga=[];this.C=[];this.V=!1;this.j={};this.Ba=NaN;this.status="";this.J=NaN;this.u=a.D;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.Z.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.qa&&(a.vvt=this.videoData.qa,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.Z.qa&&(a.authuser=this.Z.qa);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.nc()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.D=a;this.D.session_id=d;this.oa=!0;"widevine"===this.u.flavor&&(this.D.hdr="1");"playready"===this.u.flavor&&(b=Number(OL(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.D.mfpe=""+b),this.oa=!1);b="";g.GL(this.u)?FL(this.u)?(d=c.u)&&(b="https://www.youtube.com/api/drm/fps?ek="+
jda(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.u.u;this.baseUrl=b;this.fairplayKeyId=ak(this.baseUrl,"ek")||"";if(b=ak(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Fa=this.videoData.N("html5_use_drm_retry");this.Ga=c.Ye?[g.gg(c.initData,4)]:c.B;mZ(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
MZa=function(a,b){mZ(a,{createkeysession:1});a.status="gr";RH("drm_gk_s",void 0,a.videoData.Ma);a.url=JZa(a);try{a.B=b.createSession(a.ea,function(c){mZ(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.B&&(KZa(a.B,function(c,d){LZa(a,c,d)},function(c,d,e){if(!a.isDisposed()){d=void 0;
var f=1;g.GL(a.u)&&g.DM(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()||(mZ(a,{onkyadd:1}),a.K||(a.ra("sessionready"),a.K=!0))},function(c){a.Hp(c)}),g.H(a,a.B))};
JZa=function(a){var b=a.baseUrl;xra(b)||a.error("drm.net",2,"t.x");if(!ak(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.Z.experiments.experiments[e]});
0<c.length&&(a.D.fexp=c.join())}c=g.u(Object.keys(a.D));for(var d=c.next();!d.done;d=c.next())d=d.value,b=tfa(b,d,a.D[d]);return b};
LZa=function(a,b,c){if(!a.isDisposed())if(b){mZ(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":NZa(a,b);return;default:a.ra("ctmp","message_type",{t:c,l:b.byteLength})}a.qa||(RH("drm_gk_f",void 0,a.videoData.Ma),a.qa=!0,a.ra("newsession",a));if(CL(a.u)&&(b=OZa(b),!b))return;g.GL(a.u)&&!a.videoData.useInnertubeDrmService()&&(b=gta(g.gg(b)));b=new CZa(b,++a.requestNumber,a.videoData.Ma);DZa(b,function(d){PZa(a,
d)},function(d,e,f){if(!a.isDisposed()){var h=0,l;
(l=3<=d.j.u)||(l=a.Fa&&36E4<(0,g.mC)()-a.Ba);l&&(h=1,e="drm.net.retryexhausted");mZ(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(bN(h),d)&&QZa(a,d)}});
g.H(a,b);RZa(a,b)}else a.error("drm.unavailable",1,"km.empty")};
NZa=function(a,b){mZ(a,{sdpvrq:1});a.J=Date.now();if("widevine"!==a.u.flavor)a.error("drm.provision",1,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.Z.j);c=g.Yj("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:EI(b)}),responseType:"arraybuffer"};
g.lA(c,b,3,500).then(yL(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=EI(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.ra("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.J)/1E3,a.J=NaN,a.ra("ctmp","provs",{et:f.toFixed(3)}),a.B&&a.B.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",1,d))}}),yL(function(d){a.isDisposed()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
nZ=function(a){var b;if(b=a.oa&&null!=a.B)a=a.B,b=!(!a.j||!a.j.keyStatuses);return b};
RZa=function(a,b){a.status="km";RH("drm_net_s",void 0,a.videoData.Ma);if(a.videoData.useInnertubeDrmService()){var c=new g.HD(a.Z.Dk),d={context:g.dD(c.config_||g.cD())};d.drmSystem=SZa[a.u.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.gg(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.u)?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.qa&&(d.context.user.credentialTransferTokens=[{token:a.videoData.qa,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.wb&&(d.context.user.kidsParent={oauthToken:a.videoData.wb});g.GL(a.u)&&(d.fairplayKeyId=g.gg(kda(a.fairplayKeyId)));g.ZM(a.Z,g.PO(a.videoData)).then(function(l){HZa(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.ZM(a.Z,g.PO(a.videoData)).then(function(l){FZa(b,a.url,l);
a.status="rs"})};
PZa=function(a,b){if(!a.isDisposed())if(mZ(a,{onlcsrsp:1}),a.status="rr",0!==b.statusCode)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{RH("drm_kr_s",void 0,a.videoData.Ma);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.N("outertube_streaming_data_always_use_staging_license_service")){var c=a.u.u.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.ra("newlicense",b.heartbeatParams);b.u&&(a.C=b.u,a.videoData.useInnertubeDrmService()&&
!a.videoData.vB&&a.ra("newlicense",new zZa({})),a.videoData.vB=!0,a.V=xo(a.C,function(d){return d.includes("HDR")}));
b.j&&(a.Z.N("html5_enable_vp9_fairplay")&&FL(a.u)?(c=g.gg(kda(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=Yc(b.j,function(d){return{type:d,status:"unknown"}}));
DL(a.u)&&!a.videoData.useInnertubeDrmService()?b.message=ig(EI(b.message)):EL(a.u)&&a.videoData.useInnertubeDrmService()&&(b.message=gta(g.gg(b.message)));a.B&&(mZ(a,{updtks:1}),a.status="ku",a.B.update(b.message).then(function(){RH("drm_kr_f",void 0,a.videoData.Ma);nZ(a)||(mZ(a,{ksApiUnsup:1}),a.ra("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.hg(d.message,3);
a.error("drm.keyerror",1,d)}));
a.K&&(a.Ba=(0,g.mC)());g.GL(a.u)&&a.ra("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.Z.N("html5_enable_vp9_fairplay")&&FL(a.u)&&a.ra("qualitychange",TZa(a.C))}};
QZa=function(a,b){var c=b.j.getValue();c=new g.Kq(function(){RZa(a,b)},c);
g.H(a,c);c.start();g.Bj(b.j);mZ(a,{rtyrq:1})};
UZa=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)};
VZa=function(a){var b={};b[a.status]=nZ(a)?UZa(a,"."):a.C.join(".");return b};
WZa=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};
XZa=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
YZa=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status};
mZ=function(a,b){var c=void 0===c?!1:c;$M(b);(c||a.Z.Id())&&a.ra("ctmp","drmlog",b)};
ZZa=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};
TZa=function(a){return g.Fb(a,"UHD2")||g.Fb(a,"UHD2HDR")?"highres":g.Fb(a,"UHD1")||g.Fb(a,"UHD1HDR")?"hd2160":g.Fb(a,"HD")||g.Fb(a,"HDHDR")?"hd1080":g.Fb(a,"HD720")||g.Fb(a,"HD720HDR")?"hd720":"large"};
OZa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=new DOMParser;b=g.me(b);b=a.parseFromString(g.le(b),"text/xml");return b?(b=b.querySelector("Challenge"))&&b.childNodes&&0!==b.childNodes.length?new Uint8Array((0,g.vY)(pda(b.childNodes[0].nodeValue)).buffer):null:null};
oZ=function(a,b,c,d,e){g.G.call(this);this.element=a;this.V=b;this.initData=c;this.j=d;this.u=e;this.sessionId="";this.K=this.J=this.B=this.D=null;this.C=new g.PK(this);g.H(this,this.C);$Za(this)};
$Za=function(a){a.j?(a.C.T(a.j,"message",a.l0),a.C.T(a.j,"keystatuseschange",a.Hp),a.j.closed&&a.j.closed.then(yL(function(){a.isDisposed()||g.xA("xboxone")&&a.B&&a.B("closed")}),null)):a.u&&(mB(a.C,a.u,["mskeymessage",
"webkitkeymessage"],a.TX),mB(a.C,a.u,["mskeyerror","webkitkeyerror"],a.SX),mB(a.C,a.u,["mskeyadded","webkitkeyadded"],a.RX))};
KZa=function(a,b,c,d,e){a.D=b;a.B=c;a.J=d;a.K=e};
a_a=function(a,b,c){g.sG(c);a.B&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.B(b))};
pZ=function(a,b,c){g.G.call(this);this.element=a;this.j=b;this.ya=c;this.J={};this.C=null;this.D=new g.PK(this);this.B=this.u=null;g.H(this,this.D)};
c_a=function(a,b){b=b_a(b,a.j.Ya);a=a.B.createSession("video/mp4",b);return new oZ(null,null,null,null,a)};
d_a=function(a,b){for(var c=new Uint8Array(270),d=0;135>d;d++)c[2*d]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);a=a.B.createSession("video/mp4",b,c);return new oZ(null,null,null,null,a)};
e_a=function(a,b){var c=a.J[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.J[b.sessionId]=c);return c};
b_a=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};
qZ=function(){this.keys=[];this.values=[]};
h_a=function(a,b,c){g.SG.call(this);this.element=a;this.videoData=b;this.Z=c;this.j=this.videoData.D;this.drmSessionId=this.videoData.drmSessionId||g.qra();this.u=new Map;this.J=new qZ;this.K=new qZ;this.B=[];this.Ma=2;this.qa=new g.PK(this);this.Oa=this.Ga=!1;this.heartbeatParams=null;this.Ba=this.ea=!1;this.D=null;this.Fa=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||AL()||Fva(c.experiments);this.Z.N("html5_enable_vp9_fairplay")&&FL(this.j)?c=f_a:(c=this.videoData.Dk,c="fairplay"===this.j.flavor||
c?dO:f_a);this.V=c;this.C=new pZ(this.element,this.j,this.iI.bind(this));g.H(this,this.C);BL(this.j)&&(this.oa=new pZ(this.element,this.j,this.iI.bind(this)),g.H(this,this.oa));g.H(this,this.qa);c=this.element;this.j.keySystemAccess?this.qa.T(c,"encrypted",this.u7):mB(this.qa,c,BL(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.Q7);g_a(this);a:switch(a=this.j,c=this.u,a.flavor){case "fairplay":19.2999<wA()?(c=a.Nx,a=a.Mx,a>=c&&(a=.75*c),b=.5*(c-a),c=new kZ(b,c,c-b-a,this)):c=null;break a;case "widevine":c=
new lZ(c,this);break a;default:c=null}if(this.D=c)g.H(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.PT,this),this.D.subscribe("log_qoe",this.gj,this);Fva(this.Z.experiments);this.gj({cks:this.j.Kh()})};
g_a=function(a){var b=a.C.BL();b?b.then(yL(function(){i_a(a)}),yL(function(c){if(!a.isDisposed()){g.sG(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.oa&&(b=a.oa.BL())};
k_a=function(a,b,c){a.Oa=!0;c=new FVa(b,c);a.Z.N("html5_eme_loader_sync")&&(a.J.get(b)||a.J.set(b,c));j_a(a,c)};
j_a=function(a,b){if(!a.isDisposed()){a.gj({onInitData:1});if(a.Z.N("html5_eme_loader_sync")&&a.videoData.B&&a.videoData.B.j){var c=a.K.get(b.initData);b=a.J.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.J.remove(c);a.K.remove(c)}a.gj({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.Ga&&!a.videoData.isLivePlayback)rZ(a);else{if(!(a.Z.N("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Ye)){a.Ga=!0;c=b.cryptoPeriodIndex;var d=b.j;HVa(b);b.Ye||(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.PT(b)}};
i_a=function(a){if(!a.isDisposed())if(a.Z.N("html5_drm_set_server_cert")&&!g.JM(a.Z)||FL(a.j)){var b=a.C.setServerCertificate();b?b.then(yL(function(c){a.Z.Id()&&a.ra("ctmp","ssc",{success:c})}),yL(function(c){a.ra("ctmp","ssce",{n:c.name,
m:c.message})})).then(yL(function(){l_a(a)})):l_a(a)}else l_a(a)};
l_a=function(a){a.isDisposed()||(a.ea=!0,a.gj({onmdkrdy:1}),rZ(a))};
m_a=function(a){return"widevine"===a.j.flavor&&a.videoData.N("html5_drm_cpi_license_key")};
rZ=function(a){if(a.Oa&&a.ea&&!a.Ba){for(;a.B.length;){var b=a.B[0],c=m_a(a)?IVa(b):g.gg(b.initData);if(FL(a.j)&&!b.u)a.B.shift();else{if(a.u.get(c))if("fairplay"!==a.j.flavor||FL(a.j)){a.B.shift();continue}else a.u.delete(c);HVa(b);break}}a.B.length&&a.createSession(a.B[0])}};
n_a=function(a){var b;if(b=g.zA()){var c;b=!(null==(c=a.C.u)||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.II(b),a.ra("ctmp","drm",{metrics:b}))};
tZ=function(a){g.G.call(this);var b=this;this.va=a;this.Ia=this.va.W();this.videoData=this.va.getVideoData();this.sD=0;this.D=this.u=!1;this.C=0;this.B=g.xL(this.Ia.experiments,"html5_delayed_retry_count");this.j=new g.Kq(function(){sZ(b.va)},g.xL(this.Ia.experiments,"html5_delayed_retry_delay_ms"));
g.H(this,this.j)};
s_a=function(a,b,c){var d=a.videoData.u,e=a.videoData.C;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.va.rk.C&&d&&"22"===d.itag)return a.va.rk.C=!0,a.pe("qoe.restart",{reason:"fmt.unplayable.22"}),o_a(a.va),!0;var f=!1,h=a.sD+3E4<(0,g.mC)()||a.j.isActive();if(a.Ia.N("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.pe("auth",c),!0;h||yMa(a.va.kp())||(c.nonfg="paused",h=!0,a.va.pauseVideo());
("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:mI(e)||lI(e))&&(lwa(a.Ia.D,e.yb),c.acfallexp=e.yb,f=h=!0);!h&&0<a.B&&(a.j.start(),h=!0,c.delayed="1",--a.B);e=a.va.Ca;if(!h&&((null==d?0:JK(d))||(null==d?0:nI(d)))){var l;if(a.videoData.N("html5_disable_codec_for_playback_on_error")&&e){if(bU(e.policy))var m=0;else{m=e.Ie;var n=d.yb;m.eb.has(n)?m=!1:(m.eb.add(n),m.V=-1,TX(m,m.u),m=!0)}m&&(l="cfallp")}else lwa(a.Ia.D,d.yb),l="cfallexp";l&&(f=h=!0,c[l]=d.yb)}if(!h)return p_a(a,c);a.sD=(0,g.mC)();
h=a.videoData;h.eb?(h=h.eb.CS(),l=Date.now()/1E3+1800,h=h<l):h=!1;c.e=b;h&&(c.staleprog="1");a.pe("qoe.restart",c);if(h&&q_a(a))return r_a(a),!0;if(g.xA("philips")&&"GAME_CONSOLE"!==a.Ia.j.cplatform)try{window.close()}catch(p){}d&&JK(d)?(f=a.Ia.D,f.ea=!0,f=f.j=!0):e?(b=(b=xY(e.videoTrack)||e.videoTrack.u)?b.j:e.videoTrack.j,b.K+=1,bU(e.policy)?QX(e.oa.u,b,!0):WX(e.Ie,b,!0)):a.videoData.eb&&a.videoData.eb.oQ();a.j.isActive()||sZ(a.va,f);return!0};
p_a=function(a,b){if(a.videoData.Oa)return!1;a.Ia.Qc+=1;if(10>=a.Ia.Qc)return!1;b.exiled=""+a.Ia.Qc;a.pe("qoe.start15s",b);a.va.ra("playbackstalledatstart");return!0};
q_a=function(a){return a.u?!0:"yt"===a.Ia.Ga?a.videoData.Oa?25>a.videoData.Zb:!a.videoData.Zb:!1};
r_a=function(a){if(!a.u){a.u=!0;var b=a.va.getPlayerState();b=g.cQ(b)||b.isSuspended();a.va.Wn();b&&!QO(a.videoData)||a.va.ra("signatureexpired")}};
t_a=function(a,b){if((a=a.va.Qe())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.tf();b.details.merr=c?c.toString():"0";b.details.mmsg=a.Mf()}};
u_a=function(a){return"net.badstatus"===a.errorCode&&(1===a.severity||!!a.details.fmt_unav)};
v_a=function(a,b){return a.Ia.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};
x_a=function(a,b){if(!v_a(a,b)&&!a.u)return!1;b.details.sts="19563";if(q_a(a))return bN(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new aN("qoe.restart",b)),a.pe(b.errorCode,b.details),r_a(a),!0;6048E5<(0,g.mC)()-a.Ia.og&&w_a(a,"signature");return!1};
w_a=function(a,b){try{window.location.reload(),a.pe("qoe.restart",{detail:"pr."+b})}catch(c){}};
y_a=function(a,b){var c=a.Ia.D;c.J=!1;c.j=!0;a.pe("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});sZ(a.va,!0)};
z_a=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d};
A_a=function(a,b,c){this.Z=a;this.TE=b;this.va=c;this.K=this.D=this.j=this.B=this.J=this.u=0;this.C=!1;this.V=g.xL(this.Z.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45};
C_a=function(a,b,c){!a.Z.N("html5_tv_ignore_capable_constraint")&&g.JM(a.Z)&&(c=c.compose(B_a(a,b)));return c};
E_a=function(a,b){var c,d=D_a(a,null==(c=b.j)?void 0:c.videoInfos);c=a.va.getPlaybackRate();return 1<c&&d?(a=fwa(a.Z.D,b.j.videoInfos,c),new VH(0,a,!0,"o")):new VH(0,0,!1,"o")};
D_a=function(a,b){return b&&g.JM(a.Z)?b.some(function(c){return 32<c.video.fps}):!1};
F_a=function(a,b){var c=a.va.TG();if(a.N("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.sR&&YH(b.videoData.Kl))a=c.sR,b.videoData.Kl=new VH(0,a,!1,"u");else{var d;if(c&&(null==(d=c.EL)?0:d.length)&&YH(b.videoData.Kl)){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.EL);for(e=c.next();!e.done;e=c.next())(e=a.get(e.value))&&d.push(e);a=Math.max.apply(Math,g.qa(d));b.videoData.Kl=new VH(0,a,!1,"u")}}return b.videoData.Kl};
B_a=function(a,b){if(g.JM(a.Z)&&jI(a.Z.D,kI.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.BM(a.Z)&&(e=window.screen&&window.screen.width?new g.xe(window.screen.width,window.screen.height):null);e||(e=a.Z.Nm?a.Z.Nm.clone():a.TE.fk());(EA||AX||d)&&e.scale(g.PM());d=e;vO(b.videoData)||QO(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||Wwa||(e=
.45);a=g.xL(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 VH(0,"93"===c.itag?g.WH[CK(d.width,d.height)]:d.j,!1,"r")}else c=dO;c=c.j}c&&(c=Math.max(c,360));return new VH(0,c,!1,"r")};
G_a=function(a){var b,c,d,e;return g.Ha(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.Ka(0);break}e=d.value;return g.z(f,uua(e),4);case 4:d=c.next(),f.Ka(3)}})};
I_a=function(a,b){if(!b.videoData.u||a.N("html5_disable_performance_downgrade"))return!1;6E4<g.eb()-a.J&&(a.u=0);a.u++;a.J=g.eb();if(4!==a.u)return!1;H_a(a,b.videoData.u);return!0};
K_a=function(a,b,c,d){if(!b||!c||!b.videoData.u)return!1;var e=g.xL(a.Z.experiments,"html5_df_downgrade_thresh"),f=a.N("html5_log_media_perf_info");if(!(5E3>(0,g.mC)()-a.B?0:f||0<e))return!1;var h=((0,g.mC)()-a.B)/1E3;a.B=(0,g.mC)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.D,m=c.totalVideoFrames-a.K;a.D=c.droppedVideoFrames;a.K=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&a.Z.Id()&&a.va.ya("ddf",{dr:c.droppedVideoFrames,
de:c.totalVideoFrames,comp:n});if(d)return a.j=0,!1;if((m-l)/h>a.V||!e||g.JM(a.Z))return!1;a.j=(60<m?l/m:0)>e?a.j+1:0;if(3!==a.j)return!1;H_a(a,b.videoData.u);a.va.ya("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},J_a()));return!0};
H_a=function(a,b){var c=b.yb,d=b.video.fps;b=b.video.j-1;var e=vL();c=xva(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.rB("yt-player-performance-cap",e,604800));a.va.QA()};
L_a=function(a,b){if(!b.j.j)return a.C?new VH(0,360,!1,"b"):dO;for(var c=!1,d=!1,e=g.u(b.j.videoInfos),f=e.next();!f.done;f=e.next())JK(f.value)?c=!0:d=!0;c=c&&d;d=0;f=g.xL(a.Z.experiments,"html5_performance_cap_floor");a=a.Z.u?240:f;b=g.u(b.j.videoInfos);for(f=b.next();!f.done;f=b.next())if(e=f.value,!c||!JK(e))if(f=wL(e.yb,e.video.fps),e=e.video.j,Math.max(f,a)>=e){d=e;break}return new VH(0,d,!1,"b")};
M_a=function(a){a=a.va.kp();return a.isInline()?new VH(0,480,!1,"v"):a.isBackground()&&60<sF()/1E3?new VH(0,360,!1,"v"):dO};
O_a=function(a,b,c){if(a.Z.experiments.sb("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.JM(a.Z)&&(1080<=uL(-1)||b.osid))return dO;var d=g.xL(a.Z.experiments,"html5_autonav_quality_cap"),e=g.xL(a.Z.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&sF()/1E3>e?(c&&(d=N_a(a,c,d)),new VH(0,d,!1,"e")):dO};
N_a=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};
P_a=function(a,b){a.N("html5_log_media_perf_info")&&(a.va.ya("perfdb",J_a()),a.va.ya("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.va.ya("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return!1===(null==(d=c.u)?void 0:d.smooth)}).map(function(c){return c.itag}).join("-")}))};
J_a=function(){return Yc(vL(),function(a){return""+a})};
uZ=function(a){g.G.call(this);this.provider=a;this.j=-1;this.D=!1;this.u=-1;this.playerState=new g.YP;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.C=0;this.delay=new g.Kq(this.send,6E4,this);this.B=!1;g.H(this,this.delay)};
Q_a=function(a){0<=a.j||(3===a.provider.va.getVisibilityState()?a.D=!0:(a.j=g.UW(a.provider),a.delay.start()))};
YTa=function(a){var b=g.UW(a.provider);0>a.j&&(a.j=b,a.delay.start());a.u=b;a.C=b};
R_a=function(a){if(!(0>a.u)){var b=g.UW(a.provider),c=b-a.C;a.C=b;8===a.playerState.state?a.playTimeSecs+=c:g.eQ(a.playerState)&&!g.yP(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
T_a=function(a,b){b?S_a.test(a):(a=g.Tz(a),Object.keys(a).includes("cpn"))};
V_a=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(Wz(a)&&Xz()){if(h){var n;2!==(null==(n=U_a.uaChPolyfill)?void 0:n.state.type)?h=null:(h=U_a.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.Fz("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
d:g.Fz("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.Fz("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);d=b.qa;b.N("move_vss_away_from_login_info_cookie")&&d&&!RM(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||b.N("move_vss_away_from_login_info_cookie")&&d?l.withCredentials=!0:b.N("html5_send_cpn_with_options")&&S_a.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};
W_a=function(a,b,c,d,e,f,h,l){Xz()&&c.token&&(a=Uz(a,{ctt:c.token,cttype:c.VQ,mdx_environment:c.mdxEnvironment}));f||l&&d.N("nwl_skip_retry")?(null==b?b={}:T_a(a,d.N("html5_assert_cpn_with_regex")),h?GD().sendAndWrite(a,b):GD().sendThenWrite(a,b,l)):d.Fl?(b=b||{},T_a(a,d.N("html5_assert_cpn_with_regex")),c=d.Fl,c.queue.push({url:a,options:b}),nwa(c)):b?(T_a(a,d.N("html5_assert_cpn_with_regex")),g.hA(a,b)):g.wD(a,e)};
Y_a=function(a){for(var b=[],c=0;c<a;c++){for(var d={},e=Math.floor(9*Math.random()*X_a)+X_a,f="",h=0;9>h;h++)f+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(52*Math.random())];d.videoDecoderName=f;d.elapsedTimeMs=e;b.push(d)}return b};
Z_a=function(a,b){DN(a,1,b.elapsedTimeMs);GN(a,3,b.videoDecoderName)};
$_a=function(a,b){GN(a,1,b.cpn);DN(a,2,b.sequenceNumber);GN(a,3,b.serializedWatchEndpointLoggingContext);var c;if(b.decoderInfo)for(c=0;c<b.decoderInfo.length;c++)HN(a,6,b.decoderInfo[c],Z_a,3)};
g.xZ=function(a){g.G.call(this);var b=this;this.provider=a;this.logger=new g.EW("qoe");this.j={};this.sequenceNumber=1;this.hc=NaN;this.mf="N";this.K=this.kd=this.xc=this.Eb=this.C=0;this.Oa=this.md="";this.Qc=this.Va=NaN;this.Ec=0;this.od=-1;this.xd=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.ob=this.wb=this.Ga=this.isOffline=this.Ba=!1;this.Fd=[];this.oa=null;this.kb=this.D=this.eb=this.J=!1;this.u=-1;this.Ya=!1;this.pd=new g.Kq(this.k5,750,this);this.qa=this.contentCpn="";this.V=!1;this.ea=
this.adCpn="";this.adFormat=void 0;this.Wd=0;this.Qd=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));this.rb=!1;this.Zb=NaN;this.Fa=0;this.Rd={XI:function(d){b.XI(d)},
acb:function(){return b.B},
Wm:function(){return b.contentCpn},
Jbb:function(){return b.qa},
Zbb:function(){return b.V},
reportStats:function(){b.reportStats()}};
var c=g.xL(this.provider.Z.experiments,"html5_qoe_proto_mock_length");c&&!vZ.length&&(vZ=Y_a(c));g.H(this,this.pd);(c="function"===typeof navigator.getBattery?navigator.getBattery():null)&&c.then&&c.then(function(d){b.oa=d});
g.wZ(this,0,"vps",["N"]);a.Z.Id()&&(this.Fa=(0,g.mC)(),this.Zb=g.cA(function(){var d=(0,g.mC)(),e=d-b.Fa;500<e&&b.ya("vmlock",{diff:e.toFixed()});b.Fa=d},250))};
g.wZ=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
a0a=function(a,b){var c=a.provider.va.getCurrentTime();g.wZ(a,b,"cmt",[c.toFixed(3)]);c=a.provider.va.Tk();if(a.B&&1E3*c>a.B.mX+100&&a.B){var d=a.B,e=d.isAd;c=1E3*c-d.mX;a.Ma=1E3*b-d.e$-c-d.R9;c=(0,g.mC)()-c;b=a.Ma;d=a.provider.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.J&&(h.cttAuthInfo={token:d.J,videoId:d.videoId});h.startTime=c-b;PH(f,h);g.OH({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},f);RH("pbs",c,f)}else c=a.provider.va.di(),c.J!==
d.clientPlaybackNonce?(c.D=d.clientPlaybackNonce,c.u=b):g.MO(d)||g.tG(new g.EB("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.ya("gllat",{l:a.Ma.toFixed(),prev_ad:+e});delete a.B}};
d0a=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.UW(a.provider);var c=a.provider.va.OC(),d=c.Xr-(a.Va||0);0<d&&g.wZ(a,b,"bwm",[d,(c.Bu-(a.Qc||0)).toFixed(3)]);isNaN(a.Va)&&c.Xr&&a.isOffline&&a.XI(!1);a.Va=c.Xr;a.Qc=c.Bu;isNaN(c.bandwidthEstimate)||g.wZ(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.Z.Id()&&0!==Object.keys(c.j).length&&a.ya("bwinfo",c.j);if(a.provider.Z.Id()||a.provider.Z.N("html5_log_meminfo"))d=cZa(),Object.values(d).some(function(e){return void 0!==e})&&a.ya("meminfo",d);
a.oa&&g.wZ(a,b,"bat",[a.oa.level,a.oa.charging?"1":"0"]);d=a.provider.va.getVisibilityState();a.od!==d&&(g.wZ(a,b,"vis",[d]),a.od=d);a0a(a,b);(d=b0a(a.provider))&&d!==a.Ec&&(g.wZ(a,b,"conn",[d]),a.Ec=d);c0a(a,b,c)};
e0a=function(a,b){var c=g.UW(a.provider);g.wZ(a,c,"lh",[b?"1":"0"])};
c0a=function(a,b,c){if(!isNaN(c.ev)){var d=c.ev;c.u<d&&(d=c.u);g.wZ(a,b,"bh",[d.toFixed(3)])}};
f0a=function(a,b,c){g.ZM(a.provider.Z,g.PO(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=V_a(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,
W_a(b,d,{token:a.provider.videoData.J,VQ:a.provider.videoData.Gk,mdxEnvironment:a.provider.videoData.mdxEnvironment},h,void 0,e,f&&a.Ga)):e?(e=a.provider.Z.N("networkless_ajax"),h={method:"POST",postBody:c},f&&a.Ga?GD().sendAndWrite(b,h):e?g.hA(b,{method:"POST",postBody:c}):GD().sendThenWrite(b,h)):(f=c,f=void 0===f?"":f,zpa(b,f)||g.wD(b,void 0,void 0,void 0,f))})};
g0a=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(mn(a.j[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.Kq(a.reportStats,0,a)).start()};
h0a=function(a){a.provider.videoData.Ji&&yZ(a,"prefetch");a.provider.videoData.Zb&&a.ya("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.Zb});a.provider.videoData.rb&&yZ(a,"monitor");a.provider.videoData.isLivePlayback&&yZ(a,"live");RO&&yZ(a,"streaming");(SO(a.provider.videoData)||a.V)&&yZ(a,"ssap");a.provider.videoData.Zi&&a.ya("ctrl",{mode:a.provider.videoData.Zi},!0);if(a.provider.videoData.Hj){var b=a.provider.videoData.Hj.replace(/,/g,"_");a.ya("ytp",{type:b},!0)}a.provider.videoData.aT&&
(b=a.provider.videoData.aT.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.HO(c)||g.FO(c)||g.GO(c)||g.IO(c);(b||c)&&(b=(0,g.zZ)())&&(a.j.gpu=[b]);QO(a.provider.videoData)&&g.wZ(a,g.UW(a.provider),"dt",["1"]);a.provider.Z.Id()&&(b=(0,g.mC)()-a.provider.Z.og,a.ya("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.D=!0;a.hc=g.cA(function(){a.reportStats()},1E4)};
j0a=function(a,b,c){var d=g.UW(a.provider);i0a(a,d,b,0,c);d0a(a,d);g0a(a)};
i0a=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)&&k0a(a,3);a.provider.Z.N("html5_use_ump")&&/b248180278/.test(e)&&k0a(a,4);f=a.provider.va.getCurrentTime();d=1===d?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+tGa());e&&c.push(l0a(e));g.wZ(a,b,"error",c);a.D=!0};
m0a=function(a){0<=a.u||(a.provider.Z.Xf||3!==a.provider.va.getVisibilityState()?a.u=g.UW(a.provider):a.Ya=!0)};
yZ=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c};
mX=function(a,b,c,d,e){var f=g.UW(a.provider);1!==b&&3!==b&&5!==b||g.wZ(a,f,"vps",[a.mf]);var h=a.j.xvt||[];h.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.j.xvt=h};
k0a=function(a,b){if(!a.kb){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.kb=!0}};
l0a=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
n0a=function(a){this.provider=a;this.K=!1;this.j=0;this.C=-1;this.Dp=NaN;this.u=0;this.segments=[];this.J=this.D=0;this.ea=this.provider.va.getVolume();this.V=this.provider.va.isMuted()?1:0;this.B=AZ(this.provider)};
BZ=function(a){a.B.startTime=a.u;a.B.endTime=a.j;a.segments.length&&g.zb(a.segments).isEmpty()?a.segments[a.segments.length-1]=a.B:a.segments.length&&a.B.isEmpty()||a.segments.push(a.B);a.D+=a.j-a.u;a.B=AZ(a.provider);a.u=a.j};
p0a=function(a){o0a(a);a.J=g.cA(function(){a.update()},100);
a.Dp=g.UW(a.provider);a.B=AZ(a.provider)};
o0a=function(a){g.eA(a.J);a.J=NaN};
q0a=function(a,b,c){c-=a.Dp;return b===a.j&&.5<c};
s0a=function(a,b,c,d){this.Z=b;this.segments=[];this.experimentIds=[];this.eb=this.xc=this.isFinal=this.Vf=this.hc=this.od=this.autoplay=this.autonav=!1;this.xd="yt";this.Ma=[];this.C=this.J=null;this.sendVisitorIdHeader=this.kb=!1;this.pageId="";this.B="watchtime"===c;this.D="playback"===c;this.oa="delayplay"===c;this.ea="atr"===c;this.Wf="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.ea?"/api/stats/"+c:"//"+b.Om+"/api/stats/"+c;d&&(this.xc=d.fs,d.rtn&&(this.C=d.rtn),this.B?(this.playerState=
d.state,0<d.rti&&(this.J=d.rti)):(this.Xf=d.mos,this.eh=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.md=d.inview),d.size&&(this.kd=d.size));this.Wd=g.md(b.j);this.If=b.pd;b.N("html5_delta_encode_fexp")?this.experimentIds=bwa(b.experiments):this.experimentIds=b.experiments.experimentIds;this.Ya=b.nj;this.xd=b.Ga;this.region=b.region;this.userAge=b.userAge;this.wb=b.sj;this.Fd=sF();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.qa=b.N("vss_pings_using_networkless")||
b.N("kevlar_woffle");this.jg=b.N("vss_final_ping_send_and_write");this.Ba=b.N("vss_use_send_and_write");this.pageId=b.pageId;this.og=b.N("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Ve=b.C&&b.N("embeds_append_synth_ch_headers");g.xM(b)&&(this.Oa=b.Ya);b.N("embeds_web_enable_lite_logging")&&g.SA(g.GM(b))&&this.Ma.push(r0a[1]);this.accessToken=g.PO(a);a.Ec&&(this.Ec=a.Ec);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=Tza(a);
this.D&&(this.od=(a.N("html5_enable_log_server_autoplay")||a.N("enable_cleanup_masthead_autoplay_hack_fix"))&&a.Op&&"adunit"==LO(a)?!0:!1);this.autonav=a.isAutonav||this.autonav;this.contentVideoId=NO(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.hc=a.Dd;a.J&&(this.K=a.J,this.Zb=a.Gk);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.CD;this.ob=a.ob;a.u&&(this.Qd=a.u.itag,a.C&&a.C.itag!==this.Qd&&(this.Eb=a.C.itag));a.j&&cI(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=
LO(a);this.eb=a.Wf?!1:a.jg;this.Je=a.Gm;if(b=AO(a))this.pg=b;this.Ke=a.Ww;this.Ga=a.Ga;this.eventId=a.eventId;this.playlistId=a.oT||a.playlistId;this.Xx=a.Xx;this.Zi=a.Zi;this.Hj=a.Hj;this.Ko=a.Ko;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.lL=a.lL;this.referrer=a.referrer;this.Io=a.XS||a.Io;this.rb=a.tE;this.by=a.by;this.userGenderAge=a.userGenderAge;this.ZA=a.ZA;this.embedsRct=a.embedsRct;this.embedsRctn=
a.embedsRctn;this.Va=a.X2;a.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=a.compositeLiveIngestionOffsetToken)};
t0a=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.ZM(a.Z,a.accessToken).then(function(d){return V_a(a.uri,a.Z,a.pageId,c,d,b,a.Ve)})};
v0a=function(a,b){return function(){a.Z.N("html5_simplify_pings")?(a.j=a.Fa,a.pd=b(),a.Fd=0,a.send()):t0a(a).then(function(c){var d=a.uri,e=u0a(a),f=a.qa,h=a.Ba;e.cmt=e.len;e.lact="0";var l=b().toFixed(3);e.rt=Number(l).toString();d=g.Yj(d,e);f?(null==c&&(c={}),h?GD().sendAndWrite(d,c):GD().sendThenWrite(d,c)):c?g.hA(d,c):g.wD(d)})}};
u0a=function(a){var b={ns:a.xd,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.u(a.j),fmt:a.Qd,fs:a.xc?"1":"0",rt:a.u(a.pd),adformat:a.adFormat,content_v:a.contentVideoId,euri:a.If,lact:a.Fd,live:a.pg,cl:(551026372).toString(),mos:a.Xf,state:a.playerState,volume:a.eh};a.subscribed&&(b.subscribed="1");Object.assign(b,a.Wd);a.autoplay&&(b.autoplay="1");a.od&&(b.sautoplay="1");a.hc&&(b.dni="1");!a.B&&a.Oa&&(b.epm=w0a[a.Oa]);a.isFinal&&(b["final"]="1");a.eb&&(b.splay="1");a.ob&&(b.delay=a.ob);a.Ya&&
(b.hl=a.Ya);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.wb&&(b.uga=a.wb+a.userAge);void 0!==a.Fa&&(b.len=a.u(a.Fa));!a.B&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.C&&(b.rtn=a.u(a.C));a.Io&&(b.feature=a.Io);a.Zi&&(b.ctrl=a.Zi);a.Hj&&(b.ytr=a.Hj);a.Eb&&(b.afmt=a.Eb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Qc&&(b.lio=a.u(a.Qc));a.B?(b.idpj=a.Je,b.ldpj=a.Ke,null!=a.J&&(b.rti=a.u(a.J)),a.ZA&&(b.ald=a.ZA),
a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken)):void 0!==a.adType&&(b.at=a.adType);a.kd&&(a.D||a.oa||a.B)&&(b.size=a.kd);!a.B&&a.Ma.length&&(b.pbstyle=a.Ma.join(","));null!=a.md&&(a.D||a.oa||a.B)&&(b.inview=a.u(a.md));a.B&&(b.volume=CZ(a,g.kn(a.segments,function(d){return d.volume})),b.st=CZ(a,g.kn(a.segments,function(d){return d.startTime})),b.et=CZ(a,g.kn(a.segments,function(d){return d.endTime})),xo(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=
CZ(a,g.kn(a.segments,function(d){return d.playbackRate}))),xo(a.segments,function(d){return"-"!==d.j})&&(b.als=g.kn(a.segments,function(d){return d.j}).join(",")));
b.muted=CZ(a,g.kn(a.segments,function(d){return d.muted?1:0}));
xo(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=CZ(a,g.kn(a.segments,function(d){return d.visibilityState})));
xo(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=CZ(a,g.kn(a.segments,function(d){return d.connectionType})));
xo(a.segments,function(d){return 0!==d.u})&&(b.blo=CZ(a,g.kn(a.segments,function(d){return d.u})));
xo(a.segments,function(d){return!!d.B})&&(b.blo=g.kn(a.segments,function(d){return d.B}).join(","));
xo(a.segments,function(d){return!!d.compositeLiveStatusToken})&&(b.cbs=g.kn(a.segments,function(d){return d.compositeLiveStatusToken}).join(","));
xo(a.segments,function(d){return"-"!==d.D})&&(b.cc=g.kn(a.segments,function(d){return d.D}).join(","));
xo(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.kn(a.segments,function(d){return d.clipId}).join(","));
if(xo(a.segments,function(d){return!!d.C})){var c="au";
a.D&&(c="au_d");b[c]=g.kn(a.segments,function(d){return d.C}).join(",")}Xz()&&a.K&&(b.ctt=a.K,b.cttype=a.Zb,b.mdx_environment=a.mdxEnvironment);
a.Wf&&(b.etype=void 0!==a.V?a.V:0);a.rb&&(b.uoo=a.rb);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=x0a[a.livingRoomAppMode]||a.livingRoomAppMode);a.Ec?y0a(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.lL,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.Ko&&(b.ssrt="1"),a.by&&(b.upt=a.by));if(a.D||a.oa)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};
y0a=function(a,b){if(b&&a.Ec){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.Ec.ns&&(b.ns="3pp");for(var f=g.u(Object.keys(a.Ec)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.Ec[h]||(b[h]=a.Ec[h])}};
CZ=function(a,b){return g.kn(b,a.u).join(",")};
z0a=function(a,b){a.attestationResponse&&t0a(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.qa?a.Ba?GD().sendAndWrite(b,c):GD().sendThenWrite(b,c):g.hA(b,c)})};
DZ=function(a){g.G.call(this);this.provider=a;this.J="paused";this.C=NaN;this.K=[10,10,10,40];this.ea=this.V=0;this.Ga=this.Ba=this.Ma=this.Fa=this.qa=this.oa=this.u=!1;this.B=this.D=NaN;this.j=new n0a(a)};
XTa=function(a){if(!a.u){16623===a.provider.videoData.FE&&g.tG(Error("Playback for EmbedPage"));var b=EZ(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.Gm,h=a.provider.videoData.Ww,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.K=c;break a}}a.K=[10+a.provider.videoData.Gm,10,10,40+a.provider.videoData.Ww-a.provider.videoData.Gm,40]}p0a(a.j);b.C=FZ(a);0<a.B&&(b.j-=a.B);b.send();a.provider.videoData.Tx&&(b=a.provider.Z,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Tx,oid:d.IZ,ptchn:d.jZ,pltype:d.YZ,content_v:NO(d)},d.xx&&Object.assign(c,{m:d.xx}),b=g.Yj(b.Oa+"ptracking",c),GZ(a,b));a.provider.videoData.ob||A0a(a);
a.u=!0;a=a.j;a.j=a.provider.va.Tk();a.Dp=g.UW(a.provider);!(0===a.u&&5>a.j)&&2<a.j-a.u&&(a.u=a.j);a.K=!0}};
FZ=function(a,b){b=void 0===b?NaN:b;var c=g.UW(a.provider);b=isNaN(b)?c:b;b=Math.ceil(b);var d=a.K[a.V];a.V+1<a.K.length&&a.V++;var e=b+d;a.C=g.bA(function(){if(!a.isDisposed()){a.C=NaN;var f=B0a(a),h=C0a(a,f);h.J=e;var l=1E3<a.ea;!(1<f.length)&&f[0].isEmpty()||l||(h.C=FZ(a,e));h.send();a.ea++}},1E3*(e-c));
return a.D=e};
HZ=function(a){g.dA(a.C);a.C=NaN};
B0a=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.u||BZ(a);var b=a.segments;a.segments=[];return b};
EZ=function(a,b){var c=D0a(a.provider);Object.assign(c,{state:a.J});b=new s0a(a.provider.videoData,a.provider.Z,b,c);b.j=a.provider.va.Tk();a.provider.videoData.isLivePlayback||(b.Fa=a.provider.va.getDuration());a.provider.videoData.j&&(c=a.provider.videoData.j.uf(b.j))&&(b.Qc=c-b.j);b.pd=g.UW(a.provider);b.segments=[AZ(a.provider)];return b};
C0a=function(a,b){var c=EZ(a,"watchtime");if(0<a.B){for(var d=g.u(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.B,e.endTime-=a.B;c.j-=a.B}else c.j=a.j.j;c.segments=b;return c};
IZ=function(a,b){var c=E0a(a,!isNaN(a.D));b&&(a.D=NaN);return c};
E0a=function(a,b){var c=C0a(a,B0a(a));!isNaN(a.D)&&b&&(c.J=a.D);return c};
A0a=function(a){a.provider.videoData.remarketingUrl&&!a.Fa&&(GZ(a,a.provider.videoData.remarketingUrl),a.Fa=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.Ma&&(GZ(a,a.provider.videoData.youtubeRemarketingUrl),a.Ma=!0);a.provider.videoData.googleRemarketingUrl&&!a.Ba&&(GZ(a,a.provider.videoData.googleRemarketingUrl),a.Ba=!0);a.provider.videoData.ppvRemarketingUrl&&!a.Ga&&(GZ(a,a.provider.videoData.ppvRemarketingUrl),a.Ga=!0);a.SA()};
F0a=function(a){if(!a.isDisposed()&&a.u){a.J="paused";var b=IZ(a);b.isFinal=!0;b.send();a.dispose()}};
G0a=function(a,b,c){if(!a.oa){c||(c=EZ(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.oa=!0}};
GZ=function(a,b){var c=a.provider.Z;g.ZM(a.provider.Z,g.PO(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=V_a(b,c,e,f,d);W_a(b,d,{token:a.provider.videoData.J,VQ:a.provider.videoData.Gk,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
H0a=function(){this.endTime=this.startTime=-1;this.D="-";this.playbackRate=1;this.visibilityState=0;this.C="";this.u=0;this.compositeLiveStatusToken=this.B=void 0;this.volume=this.connectionType=0;this.muted=!1;this.j=this.clipId="-"};
JZ=function(a,b,c){this.videoData=a;this.Z=b;this.va=c;this.j=void 0};
g.UW=function(a){return I0a(a)()};
I0a=function(a){if(!a.j){var b=g.db(function(d){var e=(0,g.mC)();d&&631152E6>=e&&(a.va.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.va.mP()}return a.j};
D0a=function(a){var b=a.va.Gq()||{};b.fs=a.va.hD();b.volume=a.va.getVolume();b.muted=a.va.isMuted()?1:0;b.mos=b.muted;b.inview=a.va.FC();b.size=a.va.vC();b.clipid=a.va.cz();a=a.videoData;var c={};a.u&&(c.fmt=a.u.itag,a.C&&a.C.itag!=a.u.itag&&(c.afmt=a.C.itag));c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.xk&&(c.infringe=1);(a.Wf?0:a.jg)&&(c.splay=1);var d=AO(a);d&&(c.live=d);a.Op&&(c.sautoplay=1);a.jl&&(c.autoplay=1);a.Xx&&(c.sdetail=a.Xx);a.Ga&&(c.partnerid=
a.Ga);a.osid&&(c.osid=a.osid);a.mB&&(c.cc=g.Dxa(a.mB));return Object.assign(b,c)};
b0a=function(a){if(navigator.connection&&navigator.connection.type)return J0a[navigator.connection.type]||J0a.other;if(g.JM(a.Z)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0};
AZ=function(a){var b=new H0a,c;b.D=(null==(c=D0a(a).cc)?void 0:c.toString())||"-";b.playbackRate=a.va.getPlaybackRate();c=a.va.getVisibilityState();0!==c&&(b.visibilityState=c);a.Z.Zb&&(b.u=1);b.B=a.videoData.Br;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.va.getAudioTrack();c.Nc&&c.Nc.id&&"und"!==c.Nc.id&&(b.C=c.Nc.id);b.connectionType=b0a(a);b.volume=a.va.getVolume();b.muted=a.va.isMuted();b.clipId=a.va.cz()||"-";b.j=a.videoData.KR||"-";return b};
g.KZ=function(a){g.G.call(this);var b=this;this.provider=a;this.qoe=this.j=null;this.wg=void 0;this.u=new Map;this.Rd={jcb:function(){return b.qoe}};
this.provider.videoData.Fe()&&!this.provider.videoData.Jl&&(this.j=new DZ(this.provider),g.H(this,this.j),this.qoe=new g.xZ(this.provider),g.H(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.wg=this.provider.videoData.clientPlaybackNonce)&&this.u.set(this.wg,this.j));this.B=new uZ(this.provider);g.H(this,this.B)};
K0a=function(a){Q_a(a.B);a.qoe&&m0a(a.qoe)};
L0a=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.wg){var b;null!=(b=a.u.get(a.wg))&&BZ(b.j)}else a.j&&BZ(a.j.j)};
ZTa=function(a){a.B.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.mf&&(b.mf="N");var c=g.UW(b.provider);g.wZ(b,c,"vps",[b.mf]);b.J||(0<=b.u&&(b.j.user_intent=[b.u.toString()]),b.J=!0);b.provider.Z.Id()&&b.ya("finalized",{});b.Ga=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.u(a.u.values()),c=b.next();!c.done;c=b.next())F0a(c.value);else a.j&&F0a(a.j);a.dispose()};
M0a=function(a,b){a.j&&G0a(a.j,b)};
N0a=function(a){if(!a.j)return null;var b=EZ(a.j,"atr");return function(c){a.j&&G0a(a.j,c,b)}};
O0a=function(a,b,c,d){c.adFormat=c.Ke;var e=b.va;b=new DZ(new JZ(c,b.Z,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Tk:function(){return e.Tk()},
OC:function(){return e.OC()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
SC:function(){return e.SC()},
getVisibilityState:function(){return e.getVisibilityState()},
di:function(){return e.di()},
Gq:function(){return e.Gq()},
getVolume:function(){return e.getVolume()},
isMuted:function(){return e.isMuted()},
hD:function(){return e.hD()},
cz:function(){return e.cz()},
FC:function(){return e.FC()},
vC:function(){return e.vC()},
mP:function(){e.mP()},
LD:function(){e.LD()},
ya:function(f,h){e.ya(f,h)}}));
b.B=d;g.H(a,b);return b};
P0a=function(){this.ev=0;this.B=this.Bu=this.Xr=this.u=NaN;this.j={};this.bandwidthEstimate=NaN};
LZ=function(a,b,c){g.G.call(this);var d=this;this.Z=a;this.va=b;this.u=c;this.j=new Map;this.wg="";this.Rd={hp:function(){return Array.from(d.j.keys())}}};
Q0a=function(){this.j=g.OG;this.array=[]};
S0a=function(a,b,c){var d=[];for(b=R0a(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};
T0a=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};
U0a=function(a){return a.array.slice(R0a(a,0x7ffffffffffff),a.array.length)};
R0a=function(a,b){a=Ub(a.array,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
V0a=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};
W0a=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
MZ=function(a,b,c,d){g.G.call(this);this.V=a;this.qa=b;this.D=c;this.ea=d;this.u=NaN;this.J=this.K=this.started=!1;this.B=[];this.oa=new g.Kq(this.Jm,250,this);g.H(this,this.oa);this.C=new g.Kq(this.Jm,0,this);g.H(this,this.C);this.j=new Q0a};
X0a=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.PG(d.namespace),d):a.ea(g.QG(d.namespace),d)}};
Y0a=function(a){this.u=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.JM(a)&&(this.C=.01)};
NZ=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
OZ=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.u>(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1};
Z0a=function(a,b){this.videoData=a;this.j=b};
$0a=function(a,b,c){return Aza(b,c).then(function(){return oA(new Z0a(b,b.B))},function(d){d instanceof Error&&g.tG(d);
var e=RK('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=TK('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.gwa(a.D,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.Ov(),d:!!b.kb,drm:b.uj(),f18:0<=b.If.indexOf("itag=18"),c18:e};b.j&&(b.uj()?(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=TK('video/mp4; codecs="avc1.42001E"'),
e.cVP9=TK('video/webm; codecs="vp9"'));b.D&&(e.drmsys=b.D.keySystem,f=0,b.D.j&&(f=Object.keys(b.D.j).length),e.drmst=f);return new aN(d,e,h)})};
a1a=function(a){this.D=a;this.B=this.u=0;this.C=new LS(50)};
PZ=function(a,b,c){g.SG.call(this);this.videoData=a;this.experiments=b;this.V=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.J=0;c=new b1a;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.rb?c.u=3:g.DO(a)&&(c.u=2);"NORMAL"===a.latencyClass&&(c.D=!0);if(g.xA("trident/")||g.xA("edge/"))c.B=Math.max(c.B,g.xL(b,"html5_platform_minimum_readahead_seconds")||3);g.xL(b,"html5_minimum_readahead_seconds")&&(c.B=g.xL(b,"html5_minimum_readahead_seconds"));g.xL(b,"html5_maximum_readahead_seconds")&&(c.J=g.xL(b,"html5_maximum_readahead_seconds"));
b.sb("html5_force_adaptive_readahead")&&(c.C=!0);xO(a)&&(c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2));this.policy=c;this.K=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.rb&&b--;this.experiments.sb("html5_disable_extra_readahead_normal_latency_live_stream")||a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;xO(a)&&(b=1);this.j=c1a(this,b)};
RZ=function(a,b){var c=a.Cq(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*QZ(a);return b>=c-a};
d1a=function(a,b,c){b=RZ(a,b);c||b?b&&(a.B=!0):a.B=!1;a.K=2===a.policy.u||3===a.policy.u&&a.B};
e1a=function(a,b){b=RZ(a,b);a.D!==b&&a.ra("livestatusshift",b);a.D=b};
QZ=function(a){return a.videoData.j?rL(a.videoData.j)||5:5};
c1a=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.B/QZ(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.J/QZ(a))),b)};
b1a=function(){this.B=0;this.J=Infinity;this.C=!0;this.j=2;this.u=1;this.D=!1};
UZ=function(a){g.G.call(this);this.va=a;this.Z=this.va.W();this.C=this.j=0;this.B=new g.Kq(this.nf,1E3,this);this.Ma=new SZ({delayMs:g.xL(this.Z.experiments,"html5_seek_timeout_delay_ms")});this.ea=new SZ({delayMs:g.xL(this.Z.experiments,"html5_long_rebuffer_threshold_ms")});this.Oa=TZ(this,"html5_seek_set_cmt");this.qa=TZ(this,"html5_seek_jiggle_cmt");this.Ga=TZ(this,"html5_seek_new_elem");this.kb=TZ(this,"html5_unreported_seek_reseek");this.K=TZ(this,"html5_long_rebuffer_jiggle_cmt");this.V=new SZ({delayMs:2E4});
this.Ba=TZ(this,"html5_seek_new_elem_shorts");this.Fa=TZ(this,"html5_seek_new_media_source_shorts_reuse");this.J=TZ(this,"html5_gapless_handoff_started_long_rebuffer");this.D=TZ(this,"html5_ads_preroll_lock_timeout");this.Va=new SZ({delayMs:g.xL(this.Z.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Qy:!this.Z.N("html5_report_slow_ads_as_error")});this.Ya=new SZ({delayMs:g.xL(this.Z.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Qy:!this.Z.N("html5_skip_slow_buffering_ad")});this.eb=new SZ({delayMs:g.xL(this.Z.experiments,
"html5_slow_start_timeout_delay_ms")});this.oa=TZ(this,"html5_slow_start_no_media_source");this.u={};g.H(this,this.B)};
TZ=function(a,b){var c=g.xL(a.Z.experiments,b+"_delay_ms");a=a.Z.N(b+"_cfl");return new SZ({delayMs:c,Qy:a})};
VZ=function(a,b,c,d,e,f,h,l){f1a(b,c)?(a.pe(e,b,h),b.Qy||f()):(b.dJ&&b.u&&!b.C?(c=(0,g.mC)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.u>b.dJ,c=b.j&&c-b.j>b.YP||f?b.C=!0:!1):c=!1,c&&(l=Object.assign({},a.qc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.va.ya("workaroundReport",l),d&&(b.reset(),a.u[e]=!1)))};
SZ=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.YP?1E3:b.YP,d=void 0===b.dJ?3E4:b.dJ;b=void 0===b.Qy?!1:b.Qy;this.j=this.u=this.B=this.startTimestamp=0;this.C=!1;this.D=Math.ceil(a/1E3);this.YP=c;this.dJ=d;this.Qy=b};
f1a=function(a,b){if(!a.D||a.u)return!1;if(!b)return a.reset(),!1;b=(0,g.mC)();if(!a.startTimestamp)a.startTimestamp=b,a.B=0;else if(a.B>=a.D)return a.u=b,!0;a.B+=1;return!1};
j1a=function(a){g.G.call(this);var b=this;this.va=a;this.Z=this.va.W();this.videoData=this.va.getVideoData();this.policy=new g1a;this.oa=new UZ(this.va);this.playbackData=null;this.eb=new g.PK;this.J=this.u=this.Ca=this.mediaElement=null;this.j=NaN;this.C=0;this.Ga=NaN;this.B=null;this.Fa=NaN;this.D=this.K=null;this.V=!1;this.Ya=g.xL(this.Z.experiments,"html5_qoe_lh_max_report_count");this.kb=g.xL(this.Z.experiments,"html5_qoe_lh_min_duration_ms");this.wb=NaN;this.Zb=0;this.ea=!1;this.Ba=new g.Kq(function(){h1a(b,
!1)},2E3);
this.hc=new g.Kq(function(){WZ(b)});
this.Va=new g.Kq(function(){b.V=!0;i1a(b,{})});
this.timestampOffset=0;this.ob=!0;this.Oa=0;this.Eb=NaN;this.qa=new g.Kq(function(){var c=b.Z.Wf;c.j+=1E4/36E5;c.j-c.B>1/6&&(Mwa(c),c.B=c.j);b.qa.start()},1E4);
this.rb=this.Ma=!1;g.H(this,this.oa);g.H(this,this.eb);g.H(this,this.Ba);g.H(this,this.Va);g.H(this,this.hc);g.H(this,this.qa)};
l1a=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.J=new a1a(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(oO(a.videoData)&&a.Ca){var c=a.Ca.lG.pj()||0;break a}if(a.videoData.j){c=a.videoData.j.oa;break a}}c=0}return c}),a.u=new PZ(a.videoData,a.Z.experiments,function(){return a.Pe(!0)}));
k1a(a)||(a.C=a.C||a.videoData.startSeconds||0)};
n1a=function(a,b){(a.Ca=b)?m1a(a,!0):XZ(a)};
p1a=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.J&&d){var e=a.J;if(e.j&&!(c>=e.u&&c<e.B)){var f=e.j.Lh(c);-1!==f&&(e.u=e.j.getStartTime(f),e.B=e.u+e.j.getDuration(f),f=Date.now()/1E3-e.j.uf(f),f-=e.D(),e.C.add(f))}}a.u&&(d&&(e=a.u,f=o1a(a),e.C++,3>e.C||3E3>g.eb()-e.J||(e.J=g.eb(),e.u.push(f),50<e.u.length&&e.u.shift())),e=a.u,d1a(e,c,void 0===b?!0:b),e1a(e,c),b&&h1a(a,!0));a.Z.N("html5_report_live_head_condition_to_qoe")&&(d!==a.Ma&&0===a.Ya&&0===a.kb?(b=a.va.Gc(),b.qoe&&e0a(b.qoe,
d),a.Ma=d):d!==a.Ma&&(b=a.getCurrentTime()-a.wb,c=0!==a.Ya&&a.Zb>=a.Ya,0!==a.kb&&b<=a.kb||c||(b=a.va.Gc(),b.qoe&&e0a(b.qoe,d),a.Ma=d,a.Zb++,a.wb=a.getCurrentTime())))};
h1a=function(a,b){if(a.u){var c=a.u;var d=a.getCurrentTime();!RZ(c,d)&&c.Tq()?(c.policy.D&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.je()?Math.min(c.videoData.je()+10,c.Cq()):NaN;if(!isNaN(c)){if(a.Ca&&b&&(b=a.Ba.isActive(),d=a.u.Cq(),(d=vZa(a.Ca,d-a.Hd()))&&!b)){a.Ba.start();a.va.ya("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.Hd()});a.seekTo(d+a.Hd(),{ke:"seektimeline_inBufferSeek"});return}a.seekTo(c,{ke:"seektimeline_pegToLive"})}}};
m1a=function(a,b){if(a.u&&a.Ca){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.u,b.u.length){c=b.j;b:{if(b.u.length){if(1<Math.min.apply(null,b.u)){var d=c1a(b,b.j-1);break b}if(b.policy.C){d=c1a(b,b.j+1);break b}}d=b.j}b.j=d;if(c=c!==b.j)b.u=[],b.C=0}else c=!1;c&&(b=a.va.Gc(),c=a.u,c=QZ(c)*c.j,b.qoe&&(b=b.qoe,g.wZ(b,g.UW(b.provider),"lra",[c]),b.ya("live-readahead-seconds",{v:c})));b=a.Ca;d=a.u.j;a=a.u;
a=(a.j-1+a.policy.j)*QZ(a);c=NaN;var e=b.kb;2===e||-1===e?xO(b.va.getVideoData())&&(c=b.policy.Tx):(--d,e=b.va.getVideoData(),e.Jc()&&"ULTRALOW"!==e.latencyClass&&!e.isLowLatencyLiveStream&&(c=b.policy.ey));d=Math.max(d,0);e=b.B;e.hh=d;e.V=c;b.C&&(b.C.oa=a)}};
q1a=function(a,b){a.C=b};
i1a=function(a,b){r1a(a,b).then(void 0,function(){XZ(a)});
s1a(a).then(function(c){t1a(a,c)},function(){XZ(a)});
BTa(a.va,b);a.Z.Id()&&(b=a.qc(),b["native"]=""+ +a.ea,b.tgt=""+a.j,a.va.ya("startSeek",b))};
r1a=function(a,b){a.K||(a.Ca?isFinite(a.j)?a.K=a.Ca.seek(a.j-a.timestampOffset,b):(mO(a.videoData),a.K=hZ(a.Ca),a.j=a.Ca.getCurrentTime()+a.timestampOffset):a.K=Pf(a.j-a.timestampOffset));return a.K};
s1a=function(a){var b=a.B;b||(a.B=new tM,b=a.B,WZ(a));return b};
u1a=function(a,b,c){return isNaN(b)?NaN:g.pe(b,a.je(),a.Pe(c))};
WZ=function(a){if(a.B)if(a.videoData.isLivePlayback&&a.videoData.B&&!a.videoData.B.j&&a.mediaElement&&0<a.mediaElement.Qj()&&0<ABa(a.mediaElement)&&(a.j=u1a(a,a.j,!1)),!a.mediaElement||!v1a(a))a.hc.start(750);else if(!isNaN(a.j)&&isFinite(a.j)&&a.Fa!==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.Oa)a.B&&a.B.resolve(a.mediaElement.getCurrentTime());else{if(a.videoData.pB)a.videoData.pB=!1;else if(!mO(a.videoData)&&
a.j>=a.Pe()-.1){a.j=a.Pe();a.B.resolve(a.Pe());VW(a.va);return}try{var c=a.j-a.timestampOffset;a.mediaElement.seekTo(c);a.oa.j=c;a.Fa=c;a.C=a.j}catch(d){}}}};
v1a=function(a){if(!a.mediaElement||0===a.mediaElement.Qj()||0<a.mediaElement.tf())return!1;var b=0<a.mediaElement.getCurrentTime();if(!(a.videoData.B&&a.videoData.B.j||a.videoData.isLivePlayback)&&a.videoData.uj())return b;if(0<=a.j){var c=a.mediaElement.NC();if(c.length||!b)return XK(c,a.j-a.timestampOffset)}return b};
t1a=function(a,b){a.D&&(a.D.resolve(b),a.va.ra("SEEK_COMPLETE"),a.Z.Id()&&(b=a.qc(),b["native"]=""+ +a.ea,a.va.ya("seekEnd",b)));XZ(a)};
XZ=function(a){a.j=NaN;a.Fa=NaN;a.B=null;a.K=null;a.D=null;a.V=!1;a.ea=!1;a.Oa=0;a.Ba.stop();a.Va.stop()};
w1a=function(a){if(a.mediaElement){for(var b=g.u(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.eb.T(a.mediaElement,c.value,function(d){var e=a.mediaElement;switch(d.type){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.B||a.ea&&d!==a.j)a.B=new tM,a.Fa=d,e=e.getCurrentTime(),a.oa.j=e,a.seekTo(d,{ke:"seektimeline_mediaElementEvent"}),a.ea=!0;break;case "seeked":a.B&&a.B.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":if(a.ob){e="ss";
d=0;a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.Qc&&!k1a(a)&&(e="mss",d=a.videoData.Qc);a.N("html5_prioritize_st_start_seconds")&&!d&&a.videoData.nj&&(e="stss",d=a.videoData.nj);var f;if(f=!d)f=(EO(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||k1a(a))&&!!a.videoData.j;f&&(d=a.videoData.liveUtcStartSeconds||a.videoData.Qc,e="utc",d=a.Pe()-a.uf(a.Pe())+d);!d&&a.videoData.nj&&(e="stss",d=a.videoData.nj);f={};if(d){if(d>a.Pe()||d<a.je())f.minSeekableTime=
a.je(),f.maxSeekableTime=a.Pe(),a.va.ya("startSecondsOutOfBounds",f),a.videoData.Jc()&&(d=u1a(a,d,!1));a.seekTo(d,{ke:"seektimeline_startSeconds"});f[e]=d;a.va.ya("startSeconds",f);a.ob=!1}else a.videoData.Qc&&(f[e]=a.videoData.Qc+a.Hd(),a.va.ya("startSeconds",f))}WZ(a);break;case "progress":WZ(a)}});
a.D||a.C||!a.mediaElement.fQ()||a.seekTo(.01,{ke:"seektimeline_setupMediaElement"})}};
k1a=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds};
x1a=function(a,b){a.va.ya("sdai",{adj4t:b.toFixed(3)});a.Ga=b;b+=1;a.j=b;a.C=b;s1a(a).then(function(c){t1a(a,c)},function(){XZ(a)})};
o1a=function(a){return a.mediaElement?XP(a.mediaElement):0};
g1a=function(){};
YZ=function(){this.finished=this.started=!1};
D1a=function(a){function b(e){return c.Il&&(!d.Km||!d.Ia.J)||"yt"!==c.Ga&&(38===d.Ga&&"books"===c.playerStyle||30===d.Ga&&"docs"===c.playerStyle||33===d.Ga&&"google-live"===c.playerStyle)?y1a(a,d,e):z1a(a,d).then(function(){ZZ(a,d)},function(f){ZZ(a,d,!0);
throw f;})}
var c=a.W(),d=a.getVideoData();d.isDisposed();d.loading=!0;return A1a(a)?B1a(a,d).then(function(){ZZ(a,d)},function(e){e=cN(e);
if(bN(e.severity))return ZZ(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(C1a=!0);a.handleError(e);return b("onesie")}):b("gvi")};
A1a=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.Ga)return!1;var c=b.Cl;if(!c||!c.j)return a.handleError(new aN("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.D<(0,g.mC)()&&(a.ya("okexp","1"),(c=a.mz())&&b.N("html5_prefer_trusted_host_on_key_expiration"))){c.u=!0;var d;(b=null==(d=c.j.get(0))?void 0:rI(d.location))&&!DW(b)&&c.j.delete(0)}if(C1a)return a.ya("ost3","1"),!1;d={};return 0<Object.keys(d).length?
(d.onesie="0",a.handleError(new aN("html5.missingapi",d)),!1):!0};
E1a=function(a){var b=CQ();xCa(b,a);return g.cS(b,pGa())};
B1a=function(a,b){var c,d,e,f,h,l,m,n,p,q,t,v,y,A,E,K,I,F,S,Y,ia,ta,na,ca,ha,Da;return g.Ha(function(fa){if(1==fa.j)return b.fetchType="onesie",c=SKa(b,a.getPlayerSize(),a.getVisibilityState()),d=new YY(a,c),g.z(fa,d.fetch(),2);e=fa.u;f={player_response:e};b.loading=!1;h=a.rf.Mt;if(d.Ng){l=g.u(d.Ng.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.u(n),q=p.next().value,t=p.next().value,v=q,y=t,h.j.set(v,y,180),v===b.videoId&&(A=y.zq(),b.jL=A);h.Yy=d}E=g.u(d.bV.entries());for(K=E.next();!K.done;K=
E.next())I=K.value,F=g.u(I),S=F.next().value,Y=F.next().value,ia=S,ta=Y,h.u.set(ia,ta,180);g.hO(b,f,!0);if(b.loading||fO(b))return fa.return(Promise.resolve());h.j.Tf();h.u.Tf();b.jL=[];na={};ca="onesie.response";ha=0;b.errorCode?(ca="auth",na.ec=b.errorCode,na.ed=b.errorDetail,na.es=b.Vm||"",ha=2):(na.successButUnplayable="1",na.disposed=""+ +b.isDisposed(),na.afmts=""+ +/adaptiveFormats/.test(e),na.cpn=b.clientPlaybackNonce);Da=new aN(ca,na,ha);return fa.return(Promise.reject(Da))})};
z1a=function(a,b){var c,d,e,f,h,l,m,n,p,q,t;return g.Ha(function(v){switch(v.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){v.Ka(4);break}if(!(0<f)){v.Ka(5);break}return g.z(v,cg(5E3),6);case 6:h=new g.EB("Retrying OnePlatform request",{attempt:f}),g.tG(h);case 5:return g.ya(v,7),g.z(v,F1a(a,b),9);case 9:return v.return();case 7:l=g.Aa(v);m=cN(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 v.return(Promise.reject(m));a.handleError(m);if(bN(m.severity)){v.Ka(4);break}case 3:f++;v.Ka(2);break;case 4:return q=c?"auth":"manifest.net.retryexhausted",t=c?2:1,v.return(Promise.reject(new aN(q,{backend:"op"},t)))}})};
F1a=function(a,b){function c(ca){2===ca.readyState&&a.hd("ps_c")}
var d,e,f,h,l,m,n,p,q,t,v,y,A,E,K,I,F,S,Y,ia,ta,na;return g.Ha(function(ca){switch(ca.j){case 1:b.fetchType="gp";d=a.W();e=g.ZM(d,g.PO(b));if(!e.j){f=e.getValue();ca.Ka(2);break}return g.z(ca,e.j,3);case 3:f=ca.u;case 2:return h=f,l=E1a(h),m=SKa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.QR(G1a),p=g.PO(b),q=(0,g.mC)(),t=!1,v="empty",y=0,a.hd("psns"),A={cA:c},g.z(ca,g.EQ(l,m,n,void 0,A),4);case 4:E=ca.u;a.hd("psnr");if(b.isDisposed())return ca.return();E?"error"in E&&E.error?(t=!0,v="esf:"+E.error.message,
y=E.error.code):E.errorMetadata&&(t=!0,v="its",y=E.errorMetadata.status):t=!0;if(t)return K=0,I=((0,g.mC)()-q).toFixed(),F={},F=d.N("html5_use_network_error_code_enums")?{backend:"op",rc:y,rt:I,reason:v,has_kpt:b.wb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.Fz("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.qa?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.Zi||"",token_eq:p===g.PO(b)?"1":"0"}:{backend:"op",
rc:""+y,rt:I,reason:v,has_kpt:b.wb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.Fz("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.qa?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.Zi||"",token_eq:p===g.PO(b)?"1":"0"},S="manifest.net.connect",429===y?(S="auth",K=2):200<y&&(S="manifest.net.badstatus",400===y&&(K=2)),ca.return(Promise.reject(new aN(S,F,K)));b.loading=!1;g.hO(b,{raw_player_response:E},!0);
Y=E;g.CM(b.W())&&Y&&Y.trackingParams&&yQ(Y.trackingParams);if(b.errorCode)return ia={ec:b.errorCode,ed:b.errorDetail,es:b.Vm||""},ca.return(Promise.reject(new aN("auth",ia,2)));if(!b.loading&&!fO(b))return ta=b.isAd()?"auth":"manifest.net.retryexhausted",na=b.isAd()?2:1,ca.return(Promise.reject(new aN(ta,{successButUnplayable:"1",hasMedia:Gza(b)?"1":"0"},na)));g.xa(ca)}})};
y1a=function(a,b,c){function d(y){y=cN(y);if(bN(y.severity))return Promise.reject(y);a.handleError(y);return!1}
function e(){return!0}
var f,h,l,m,n,p,q,t,v;return g.Ha(function(y){switch(y.j){case 1:var A=a.W(),E=a.getPlayerSize(),K=a.getVisibilityState();a.isFullscreen();var I=window.location.search;if(38===b.Ga&&"books"===A.playerStyle)I=b.videoId.indexOf(":"),I=g.Yj("//play.google.com/books/volumes/"+b.videoId.slice(0,I)+"/content/media",{aid:b.videoId.slice(I+1),sig:b.j3});else if(30===b.Ga&&"docs"===A.playerStyle)I=g.Yj("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.MR,authkey:b.lT,eurl:A.pd});else if(33===
b.Ga&&"google-live"===A.playerStyle)I=g.Yj("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{"yt"!==A.Ga&&g.sG(Error("getVideoInfoUrl for invalid namespace: "+A.Ga));var F={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:A.pd,ps:A.playerStyle,el:LO(b),hl:A.nj,list:b.playlistId,agcid:b.ZS,aqi:b.adQueryId,sts:19563,lact:sF()};Object.assign(F,A.j);A.forcedExperiments&&(F.forced_experiments=A.forcedExperiments);b.qa?(F.vvt=b.qa,b.mdxEnvironment&&(F.mdx_environment=b.mdxEnvironment)):
g.PO(b)&&(F.access_token=g.PO(b));b.adFormat&&(F.adformat=b.adFormat);0<=b.slotPosition&&(F.slot_pos=b.slotPosition);b.breakType&&(F.break_type=b.breakType);null!==b.aF&&(F.ad_id=b.aF);null!==b.nF&&(F.ad_sys=b.nF);null!==b.uB&&(F.encoded_ad_playback_context=b.uB);b.xR&&(F.tpra="1");A.captionsLanguagePreference&&(F.cc_lang_pref=A.captionsLanguagePreference);A.Ec&&2!==A.Ec&&(F.cc_load_policy=A.Ec);var S=g.zB(g.yB(),65);g.QM(A)&&null!=S&&!S&&(F.device_captions_on="1");A.mute&&(F.mute=A.mute);b.annotationsLoadPolicy&&
2!==A.annotationsLoadPolicy&&(F.iv_load_policy=b.annotationsLoadPolicy);b.yx&&(F.endscreen_ad_tracking=b.yx);(S=A.Ma.get(b.videoId))&&S.EJ&&(F.ic_track=S.EJ);b.Ba&&(F.itct=b.Ba);Tza(b)&&(F.autoplay="1");b.mutedAutoplay&&(F.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(F.autonav="1");b.WK&&(F.noiba="1");b.isMdxPlayback&&(F.mdx="1",F.ytr=b.Hj);b.mdxControlMode&&(F.mdx_control_mode=b.mdxControlMode);b.kq&&(F.ytrcc=b.kq);b.aL&&(F.utpsa="1");b.isFling&&(F.is_fling="1");b.isInlinePlaybackNoAd&&(F.mute="1");
b.vnd&&(F.vnd=b.vnd);b.forceAdsUrl&&(S=3===b.forceAdsUrl.split("|").length,F.force_ad_params=S?b.forceAdsUrl:"||"+b.forceAdsUrl);b.Ji&&(F.preload=b.Ji);E.width&&(F.width=E.width);E.height&&(F.height=E.height);(b.Wf?0:b.jg)&&(F.splay="1");b.ypcPreview&&(F.ypc_preview="1");NO(b)&&(F.content_v=NO(b));b.rb&&(F.livemonitor=1);A.qa&&(F.authuser=A.qa);A.pageId&&(F.pageid=A.pageId);A.wb&&(F.ei=A.wb);A.C&&(F.iframe="1");b.contentCheckOk&&(F.cco="1");b.racyCheckOk&&(F.rco="1");A.J&&b.hL&&(F.live_start_walltime=
b.hL);A.J&&b.Gl&&(F.live_manifest_duration=b.Gl);A.J&&b.playerParams&&(F.player_params=b.playerParams);A.J&&b.cycToken&&(F.cyc=b.cycToken);A.J&&b.ZJ&&(F.tkn=b.ZJ);0!==K&&(F.vis=K);A.enableSafetyMode&&(F.enable_safety_mode="1");b.wb&&(F.kpt=b.wb);b.Eo&&(F.kids_age_up_mode=b.Eo);b.kidsAppInfo&&(F.kids_app_info=b.kidsAppInfo);b.ey&&(F.upg_content_filter_mode="1");A.widgetReferrer&&(F.widget_referrer=A.widgetReferrer.substring(0,128));b.oa?(E=null!=b.oa.latitudeE7&&null!=b.oa.longitudeE7?b.oa.latitudeE7+
","+b.oa.longitudeE7:",",E+=","+(b.oa.clientPermissionState||0)+","+(b.oa.locationRadiusMeters||"")+","+(b.oa.locationOverrideToken||"")):E=null;E&&(F.uloc=E);b.Nm&&(F.internalipoverride=b.Nm);A.embedConfig&&(F.embed_config=A.embedConfig);A.Hm&&(F.co_rel="1");0<A.ancestorOrigins.length&&(F.ancestor_origins=Array.from(A.ancestorOrigins).join(","));void 0!==A.homeGroupInfo&&(F.home_group_info=A.homeGroupInfo);void 0!==A.livingRoomAppMode&&(F.living_room_app_mode=A.livingRoomAppMode);A.enablePrivacyFilter&&
(F.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(F.is_living_room_deeplink="1");b.qx&&b.sx&&(F.clip=b.qx,F.clipt=b.sx);b.wx&&(F.disable_watch_next="1");b.Mm&&(F.forced_by_var="1");for(var Y in F)!H1a.has(Y)&&F[Y]&&512<String(F[Y]).length&&(g.tG(Error("GVI param too long: "+Y)),F[Y]="");Y=A.Oa;g.DM(A)&&(Y=IG(Y.replace(/\b(?:www|web)([.-])/,"tv$1"))||A.Oa);A=g.Yj(Y+"get_video_info",F);I&&(A=Cma(A,I));I=A}f=I;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m<l)){y.Ka(4);break}n=f;if(!(0<m)){y.Ka(5);break}return g.z(y,
cg(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=Vz(f,p);case 5:return g.z(y,I1a(b,n).then(e,d),7);case 7:if(q=y.u)return y.return();m++;y.Ka(2);break;case 4:t=h?"auth":"manifest.net.retryexhausted";v=h?2:1;if(!h&&1E-4>Math.random())try{g.tG(new g.EB("b/152131571",btoa(f)))}catch(ia){}return y.return(Promise.reject(new aN(t,{backend:"gvi"},v)))}})};
I1a=function(a,b){function c(E){return d(E.xhr)}
function d(E){if(!a.isDisposed()){E=E?E.status:-1;var K=0,I=((0,g.mC)()-p).toFixed();I=e.N("html5_use_network_error_code_enums")?{backend:"gvi",rc:E,rt:I}:{backend:"gvi",rc:""+E,rt:I};var F="manifest.net.connect";429===E?(F="auth",K=2):200<E&&(F="manifest.net.badstatus",400===E&&(K=2));return Promise.reject(new aN(F,I,K))}}
var e,f,h,l,m,n,p,q,t,v,y,A;return g.Ha(function(E){if(1==E.j){a.fetchType="gvi";e=a.W();var K={};a.DP&&(K.ytrext=a.DP);(l=g.id(K)?void 0:K)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=Vz(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=OL(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);0<Object.keys(m).length&&
(f.headers=m);p=(0,g.mC)();return g.z(E,Mua(kA,h,f).then(void 0,c),2)}q=E.u;if(!q||!q.responseText)return E.return(d(q));a.loading=!1;t=Rz(q.responseText);g.hO(a,t,!0);if(a.errorCode)return v={ec:a.errorCode,ed:a.errorDetail,es:a.Vm||""},E.return(Promise.reject(new aN("auth",v,2)));if(!a.loading&&!fO(a))return y=a.isAd()?"auth":"manifest.net.retryexhausted",A=a.isAd()?2:1,E.return(Promise.reject(new aN(y,{successButUnplayable:"1"},A)));g.xa(E)})};
ZZ=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h;g.Ha(function(l){if(1==l.j){d=a.W();if(c&&(!g.TM(d)||"embedded"!==LO(b))||b.wx||"adunit"!==LO(b)&&(g.JM(d)||KM(d)||g.EM(d)||g.DM(d)||"WEB_CREATOR"===g.NL(d)))return l.return();e=g.ZM(d,g.PO(b));return e.j?g.z(l,e.j,3):(f=e.getValue(),l.Ka(2))}2!=l.j&&(f=l.u);h=f;return l.return(J1a(a,b,h))})};
J1a=function(a,b,c){var d,e,f,h,l;return g.Ha(function(m){if(1==m.j){g.ya(m,2);d=E1a(c);var n=b.W();g.yB();var p={context:g.yS(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===LO(b)&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.Hm&&(p.showContentOwnerOnly=!0);b.fT&&(p.showShortsOnly=!0);g.zB(0,141)&&(p.autonavState=g.zB(0,140)?"STATE_OFF":"STATE_ON");if(g.QM(n)){n=g.zB(0,65);n=null!=n?!n:
!1;var q=!!g.sB("yt-player-sticky-caption");p.captionsRequested=n&&q}e=p;f=g.QR(K1a);a.hd("wn_s");return g.z(m,g.EQ(d,e,f),4)}if(2!=m.j)return h=m.u,a.hd("wn_r"),!h||"error"in h&&h.error||(l=h,g.CM(b.W())&&l.trackingParams&&yQ(l.trackingParams),g.hO(b,{raw_watch_next_response:h},!1)),g.za(m,0);g.Aa(m);g.xa(m)})};
L1a=function(a){a.hd("vir");a.hd("ps_s");SH("vir",void 0,"video_to_ad");var b=D1a(a);b.then(function(){a.hd("virc");SH("virc",void 0,"video_to_ad");a.hd("ps_r");SH("ps_r",void 0,"video_to_ad")},function(){a.hd("virc");
SH("virc",void 0,"video_to_ad")});
return b};
g.b_=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new g.eO(a):m;n=void 0===n?!0:n;g.SG.call(this);var p=this;this.Z=a;this.playerType=b;this.Cb=c;this.TE=d;this.getVisibilityState=f;this.visibility=h;this.rf=l;this.videoData=m;this.G3=n;this.logger=new g.EW("VideoPlayer");this.TB=new Y0a(this.Z);this.Oe=null;this.jA=new qZ;this.tq=null;this.rk=new A_a(this.Z,this.TE,this);this.RV=!0;this.Xa=this.Ca=null;this.Pn=[];this.Jp=new YZ;this.Sf=this.eE=null;this.Cr=new YZ;this.HI=null;this.xN=this.Et=!1;this.II=
NaN;this.playerState=new g.YP;this.KI=[];this.WA=new g.PK;this.Yl=new tZ(this);this.mediaElement=null;this.hw=new g.Kq(this.E7,15E3,this);this.mQ=this.eI=!1;this.Fw=NaN;this.XF=!1;this.CL=0;this.DL=new g.Kq(this.pQ,4500,this);this.gD=!1;this.GH=NaN;this.LQ=new MS(new Map([["bufferhealth",function(){return o1a(p.Ed)}],
["bandwidth",function(){return p.IM()}],
["networkactivity",function(){return p.Z.schedule.K}],
["livelatency",function(){return p.isAtLiveHead()&&p.wd()?M1a(p):NaN}],
["rawlivelatency",function(){return M1a(p)}]]));
this.sD=0;this.loop=!1;this.playbackRate=1;this.EW=0;this.Ed=new j1a(this);this.ZT=!1;this.JI=[];this.fO=this.nY=0;this.jQ=this.h_=!1;this.Bu=this.Xr=0;this.oL=new g.Kq(this.a5,0,this);this.He=this.jd=null;this.pX=new g.Kq(this.L3,0,this);this.RI=new g.Kq(this.KY,3E4,this);this.B6=[this.WA,this.oL,this.hw,this.RI,this.DL,this.LQ,this.pX];this.Qg=function(){var q=p.Gc();q.provider.Z.Xf||3===q.provider.va.getVisibilityState()||(q.provider.Z.Xf=!0);L0a(q);var t=q.B;t.D&&0>t.j&&3!==t.provider.va.getVisibilityState()&&
Q_a(t);q.qoe&&(q=q.qoe,q.Ya&&0>q.u&&q.provider.Z.Xf&&m0a(q));p.Ca&&$Z(p);p.Z.Lo&&!p.videoData.backgroundable&&p.mediaElement&&!p.Mh()&&(p.isBackground()&&p.mediaElement.OF()?(p.ya("bgmobile",{suspend:1}),p.Wn(!0,!0)):p.isBackground()||a_(p)&&p.ya("bgmobile",{resume:1}));p.N("html5_log_tv_visibility_playerstate")&&g.JM(p.Z)&&p.ya("vischg",{vis:p.getVisibilityState(),ps:p.playerState.state.toString(16)})};
this.Rd={Hp:function(q){p.Hp(q)},
ldb:function(q){p.Oe=q},
ccb:function(){return p.Mz},
YM:function(){return p.wD}};
this.Oi=new MZ(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,t){q!==g.PG("endcr")||g.yP(p.playerState,32)||VW(p);
e(q,t,p.playerType)});
g.H(this,this.Oi);g.H(this,this.Ed);N1a(this,m);this.videoData.subscribe("dataupdated",this.m9,this);this.videoData.subscribe("dataloaded",this.TL,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ya,this);this.videoData.subscribe("ctmpstr",this.WP,this);this.fM();kTa(this.Qg);this.visibility.subscribe("visibilitystatechange",this.Qg)};
jL=function(a){return a.N("html5_not_reset_media_source")&&!a.uj()&&!a.videoData.isLivePlayback&&g.MO(a.videoData)};
N1a=function(a,b){if(2===a.playerType||a.Z.No)b.NW=!0;var c=Hxa(b.Ke,b.iy,a.Z.C,a.Z.J);c&&(b.adFormat=c);2===a.playerType&&(b.jl=!0);if(a.isFullscreen()||a.Z.C)c=g.sB("yt-player-autonavstate"),b.autonavState=c||(a.Z.C?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&O1a(a,b.endSeconds)};
Q1a=function(a){if(a.videoData.ea){var b=a.rf.td();a.videoData.Xw=a.videoData.Xw||(null==b?void 0:b.MM());a.videoData.ax=a.videoData.ax||(null==b?void 0:b.QM())}if(Lza(a.videoData)||!Xza(a.videoData))b=a.videoData.errorDetail,a.Zg(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Vm||void 0);1===a.playerType&&c_.isActive()&&a.RI.start();a.videoData.Vf=a.getUserAudio51Preference();a.N("html5_generate_content_po_token")&&P1a(a)};
R1a=function(a){ZTa(a.Mz);g.qb(a.Mz);for(var b=a.wD,c=g.u(b.j.values()),d=c.next();!d.done;d=c.next())ZTa(d.value);b.j.clear();g.qb(a.wD)};
BP=function(a){return a.mediaElement&&a.mediaElement.Ru()?a.mediaElement.Bb():null};
d_=function(a){if(a.N("html5_check_video_data_errors_before_playback_start")&&a.videoData.errorCode)return!1;if(a.videoData.Fe())return!0;a.Zg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.TW=function(a,b){(b=void 0===b?!1:b)||K0a(a.Gc());a.Et=b;!d_(a)||a.Jp.Ft()?g.JM(a.Z)&&a.videoData.isLivePlayback&&a.Jp.Ft()&&!a.Jp.finished&&!a.Et&&a.TL():(a.Jp.start(),b=a.Gc(),g.UW(b.provider),b.qoe&&h0a(b.qoe),a.TL())};
S1a=function(a){var b=a.videoData;L1a(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=cN(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Zg(c.errorCode,2,unescape(a.videoData.errorReason),$M(c.details),a.videoData.errorDetail,a.videoData.Vm||void 0):a.handleError(c))})};
rTa=function(a,b){a.jd=b;a.Ca&&tZa(a.Ca,new g.iZ(b))};
U1a=function(a){if(!g.yP(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.Pn=g.Lb(a.videoData.Fa)),Gza(a.videoData)){a.Cb.tick("bpd_s");e_(a).then(function(){a.Cb.tick("bpd_c");if(!a.isDisposed()){a.Et&&(a.vc($P($P(a.playerState,512),1)),a_(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&O1a(a,c.endSeconds);a.Jp.finished=!0;f_(a,"dataloaded");a.Cr.Ft()&&T1a(a);P_a(a.rk,a.Sf)}});
a.N("html5_log_media_perf_info")&&a.ya("loudness",{v:a.videoData.Ri.toFixed(3)},!0);var b=Yza(a.videoData);b&&a.ya("playerResponseExperiment",{id:b},!0);a.AL()}else f_(a,"dataloaded")};
e_=function(a){g_(a);a.Sf=null;var b=$0a(a.Z,a.videoData,a.Mh());a.eE=b;a.eE.then(function(c){V1a(a,c)},function(c){a.isDisposed()||(c=cN(c),a.visibility.isBackground()?(h_(a,"vp_none_avail"),a.eE=null,a.Jp.reset()):(a.Jp.finished=!0,a.Zg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",$M(c.details))))});
return b};
o_a=function(a){e_(a).then(function(){return a_(a)});
g.dQ(a.playerState)&&a.playVideo()};
V1a=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.Sf=b;l1a(a.Ed,a.Sf);if(a.videoData.isLivePlayback){var c=rUa(a.rf.Mt,a.videoData.videoId)||a.Ca&&!isNaN(a.Ca.Ga);c=a.N("html5_onesie_live")&&c;0<a.videoData.Qc&&!oO(a.videoData)||c||(c={ke:"videoplayer_playbackData"},a.N("html5_report_seek_source_to_qoe")&&(c.seekSource=18),a.seekTo(a.Pe(),c))}a.videoData.B.j?a.Ca?g.tG(Error("Duplicated Loader")):(c=g.xL(a.Z.experiments,"html5_onesie_defer_content_loader_ms"))&&g.Fb(a.Pn,"ad")&&rUa(a.rf.Mt,
a.videoData.I3)?g.bA(function(){a.isDisposed()||a.Ca||W1a(a)},c):W1a(a):!a.videoData.B.j&&QO(a.videoData)&&a.nI(new dY(a.videoData.videoId||"",4));
i_(a);G_a(b).then(function(){a.QA();$Z(a)})}};
X1a=function(a){a.mediaElement&&a.mediaElement.oy();g.TW(a);d_(a)&&!g.yP(a.playerState,128)&&(a.Cr.Ft()||(a.Cr.start(),a.videoData.Fo?a.vc($P(a.playerState,4)):a.vc($P($P(a.playerState,8),1))),T1a(a))};
T1a=function(a){a.isDisposed();if(!a.Cr.finished&&a.Jp.finished&&!g.yP(a.playerState,128)&&!a.Pn.length){if(!a.Oi.started){var b=a.Oi;b.started=!0;b.Jm()}if(!a.qp()){a.Ca&&(b=a.Ca.timing,a.xN=!!b.u&&!!b.K);a.Cr.finished||(a.Cr.finished=!0);b=a.N("html5_onesie_live")&&a.Ca&&!isNaN(a.Ca.Ga);!a.videoData.isLivePlayback||0<a.videoData.Qc&&!oO(a.videoData)||b||(b={ke:"videoplayer_readying"},a.N("html5_report_seek_source_to_qoe")&&(b.seekSource=18),a.seekTo(Infinity,b),a.isBackground()&&(a.mQ=!0));b=a.Gc();
if(b.qoe){b=b.qoe;b.provider.videoData.Ho&&yZ(b,b.provider.videoData.Ho);if(b.provider.videoData.isLivePlayback){var c=b.provider.videoData.j;oO(b.provider.videoData)&&yZ(b,"manifestless");c&&rL(c)&&yZ(b,"live-segment-"+rL(c).toFixed(1))}nO(b.provider.videoData)&&yZ(b,"sabr");(SO(b.provider.videoData)||b.V)&&yZ(b,"ssap");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"),yZ(b,c));"yt"!==b.provider.Z.Ga&&(b.j.len=[b.provider.videoData.lengthSeconds.toFixed(2)]);b.provider.videoData.cotn&&!QO(b.provider.videoData)&&b.XI(!0);b.provider.Z.Id()&&(c=PSa())&&b.ya("cblt",{m:c})}a.ra("playbackready",a);NH("pl_c",a.Cb.timerName)||(a.Cb.tick("pl_c"),SH("pl_c",void 0,"video_to_ad"));NH("pbr",a.Cb.timerName)||(a.Cb.tick("pbr"),SH("pbr",void 0,"video_to_ad"))}}};
VW=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.mediaElement&&a.mediaElement.pause();a.vc(b?new g.YP(14):new g.YP)};
O1a=function(a,b){a.tq&&Y1a(a);a.tq=new g.NG(1E3*b,0x7ffffffffffff);a.tq.namespace="endcr";a.addCueRange(a.tq)};
Y1a=function(a){a.removeCueRange(a.tq);a.tq=null};
Z1a=function(a,b,c){a.videoData.u=c;var d=g.HT(a);c=new z_a(a.videoData,c,b,d?d.itag:"");a.Gc().aE(c);c=a.rk;c.u=0;c.j=0;a.ra("internalvideoformatchange",a.videoData,"m"===b)};
g.HT=function(a){var b=j_(a);return YH(b)||!a.Sf?null:g.Db(a.Sf.j.videoInfos,function(c){return b.C(c)})};
fZ=function(a,b){b&&a.pe(new aN("qoe.restart",b));a.vc($P(a.playerState,2048));k_(a);b=a.videoData.j&&fI(a.videoData.j);var c=a.mediaElement&&a.mediaElement.isView();b||c?(a.Ca&&eZ(a.Ca),sZ(a)):(a_(a),g.dQ(a.playerState)&&a.playVideo())};
j_=function(a){if(a.Sf){var b=a.rk;var c=a.Sf;a=a.Ev();if(b.va.kp().isInline())var d=dO;else b.N("html5_exponential_memory_for_sticky")?d=.5>Pwa(b.Z.Wf,"sticky-lifetime")?"auto":ZH[uL()]:d=ZH[uL()],d=g.XH("auto",d,!1,"s");if(YH(d)){d=B_a(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.u)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;Oma()&&!g.JM(b.Z)&&nI(c.j.videoInfos[0])&&
(f=Math.min(f,g.WH.large));d=e.call(d,new VH(0,f,!1,"o"));e=d.compose;f=4320;!b.Z.u||g.CM(b.Z)||b.Z.N("hls_for_vod")||b.Z.N("mweb_remove_360p_cap")||(f=g.WH.medium);(h=g.xL(b.Z.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.Zi&&!c.videoData.me&&(f=Math.min(f,h));h=g.xL(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.xL(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.xL(b.Z.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=N_a(b,c,f);d=e.call(d,new VH(0,4320===f?0:f,!1,"d")).compose(M_a(b)).compose(O_a(b,c.videoData,c)).compose(L_a(b,c)).compose(E_a(b,c));YH(a)&&(d=d.compose(F_a(b,c)))}else b.N("html5_perf_cap_override_sticky")&&(d=d.compose(L_a(b,c))),b.N("html5_ustreamer_cap_override_sticky")&&(d=d.compose(F_a(b,c)));d=d.compose(E_a(b,c));b=c.videoData.gy.compose(d).compose(c.videoData.sT).compose(a)}else b=
dO;return b};
NYa=function(a){var b=a.rk;a=a.videoData;var c=M_a(b);b.N("html5_disable_client_autonav_cap_for_onesie")||c.compose(O_a(b,a));return c};
g.$1a=function(a,b,c,d){a.videoData.gy=b;if(a.Sf&&c){c=a.rk;var e=a.Sf;if(e.j.j){var f=uL(),h=e.j.videoInfos[0].video.j;if(!(f>h&&0!==h&&b.j===h)){var l;f=D_a(c,null==(l=e.j)?void 0:l.videoInfos);l=c.va.getPlaybackRate();1<l&&f&&(l=fwa(c.Z.D,e.j.videoInfos,l),0!==b.j&&l<b.j&&c.va.setPlaybackRate(1));var m,n;e=(null==(m=e.videoData.u)?void 0:null==(n=m.video)?void 0:n.j)||0;g.rB("yt-player-quality",{quality:g.WH[$H(b)],previousQuality:e},31104E3);c.Z.schedule.policy.B=480<=uL();if(c.N("html5_exponential_memory_for_sticky")){b=
c.Z.Wf;m=1;var p=void 0===p?!1:p;Owa(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.Iq["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.Iq["sticky-lifetime"]=0);p&&.0625<Pwa(b,"sticky-lifetime")&&(m=2*b.Iq["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.j/m);b.Iq["sticky-lifetime"]=m;b.C.start()}if(c.N("html5_perf_cap_override_sticky"))if(c.N("html5_perserve_av1_perf_cap")){p=vL();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.rB("yt-player-performance-cap",p,604800)}else g.tB("yt-player-performance-cap")}}}a.Ca&&(p=a.Ca,bU(p.policy)||(p.Ie.Ga=d||""));i_(a)};
P1a=function(a){a.videoData.videoId?a.rf.GM(a.videoData.videoId).then(function(b){a.videoData.f3=b}):a.ya("pomvid",{})};
i_=function(a){if(!a.isDisposed()&&!g.yP(a.playerState,128)&&a.videoData.B){if(a.videoData.B.j)$Z(a);else{var b=j_(a),c=a.videoData;a:{var d=a.videoData.od;if(b.j){for(var e=g.u(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.Kh(),l=g.WH[h.video.quality];if((!b.B||"auto"!==h.video.quality)&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.eb=d;Z1a(a,b.reason,a2a(a,a.videoData.eb))}if(a.N("html5_check_unstarted")?g.dQ(a.playerState):a.wd())a.Ed.ob=!1,a.playVideo()}};
$Z=function(a){if(a.videoData.B&&a.videoData.B.j){var b=j_(a);if(a.Ca&&(a=a.Ca,!a.isDisposed()))if(bU(a.policy)){var c=a.oa;if(void 0===c.j||!b.equals(c.j)){c=a.oa;if("m"===b.reason){if(b.isLocked()){var d=b.j;CXa(c,d,d)}}else BXa(b)?CXa(c,b.u,b.j):c.videoInfos=c.C;c.j=b;c="m"===b.reason;b=a.policy.If&&"l"===b.reason;c||b?fZ(a.va,{reattachOnConstraint:c?"u":"drm"}):gZ(a)}}else if(!dVa(a.Ie,b)&&a.videoTrack){var e=a.Ie.u;lZa(a,eVa(a.Ie,b));cZ(a);c=YX(a.Ie)&&"m"===b.reason&&a.Ie.qa;d=a.policy.If&&"l"===
b.reason&&FY(a.videoTrack);b=e.j>b.j&&"b"===b.reason;e=a.Ie.rb&&!dL();c||d||b||e?fZ(a.va,{reattachOnConstraint:c?"u":d?"drm":e?"codec":"perf"}):gZ(a)}}};
b2a=function(a){var b;return!!(a.N("html5_native_audio_track_switching")&&g.dC&&(null==(b=a.videoData.u)?0:KK(b)))};
c2a=function(a){if(!b2a(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1<a.length)};
e2a=function(a){var b=d2a(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Nc.getName()===b})};
d2a=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}};
W1a=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())Wta(h.value.u,d,e);f=void 0;null==(f=b.Oa)||Wta(f,d,e)}c=a.Z;d=a.videoData;b=new g.GNa(c);e=FNa(c,{hasSubfragmentedFmp4:d.hasSubfragmentedFmp4,ZC:d.ZC});b.K=e;b.oa=d.maxReadAheadMediaTimeMs/1E3||b.oa;e=c.schedule;e.j.pj()===e.policy.u?
b.eb=10:b.eb=d.minReadAheadMediaTimeMs/1E3||b.eb;b.Xf=d.readAheadGrowthRateMs/1E3||b.Xf;Vn&&(b.kb=41943040);b.Ec=!Jua();g.JM(c)||!Jua()?(e=c.experiments,b.qa=8388608,b.Fa=524288,b.Gl=5,b.Va=2097152,b.Ma=1048576,b.Yo=1.5,b.Ia.N("html5_enable_path_probe_on_tv")||(b.Ho=!1),b.Wb=4587520,BA()&&(b.Wb=786432),b.J*=1.1,b.V*=1.1,b.hc=!0,b.kb=b.qa,b.xd=b.Fa,b.Wd=e.sb("persist_disable_player_preload_on_tv")||e.sb("persist_disable_player_preload_on_tv_for_living_room")||!1):c.u&&(b.J*=1.3,b.V*=1.3);g.SK&&g.xA("crkey")&&
(e="CHROMECAST/ANCHOVY"===c.j.cmodel,b.qa=20971520,b.Fa=1572864,e&&(b.Wb=812500,b.od=1E3,b.ax=5,b.Ma=2097152));g.HL&&(b.hc=!0);c.supportsGaplessAudio()||(b.Kl=!1);vM&&(b.Eb=!0);b.kd=c.N("html5_peak_shave");"onesie"===d.fetchType&&c.N("html5_disable_peak_shave_for_onesie")&&(b.kd=!1);var l;e=null==(l=d.j)?void 0:fI(l);if(oO(d)){b.pd=!0;b.Ji=!0;b.ob=!0;b.jk=!0;b.Cp=!0;if("ULTRALOW"===d.latencyClass||"LOW"===d.latencyClass&&!c.N("html5_disable_low_pipeline"))b.Hm=2,b.Lm=4;b.Xj=d.defraggedFromSubfragments;
if(d.Bf||c.N("html5_publish_all_cuepoints"))b.Po=!0;g.DO(d)&&(b.Zb=!1);b.Em=g.SM(c)}d.isAd()&&(b.Li=0,b.Pm=0,b.Ri=g.xL(c.experiments,"html5_min_startup_buffered_ad_media_duration_secs"));RO&&(b.gs=!0,c.N("html5_aggressive_timeout_for_streaming_xhr")&&(b.od=400,b.Nm=10,b.Oo=1,b.Io=!0,b.sj=5,b.Km=2,b.Pi=3,b.Bp=1.4),l=g.xL(c.experiments,"html5_streaming_xhr_max_request_size_kb"))&&(b.Ma=1024*l,b.Ve=5);b.eh=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.Id();JA()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(c.j.cmodel)&&!c.N("html5_disable_move_pssh_to_moov")&&e&&(b.hc=!1);f=0;c.N("html5_live_use_alternate_bandwidth_window_sizes")&&(f=c.schedule.policy.j,d.isLivePlayback&&(f=g.xL(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.ea.j=oO(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.B?l.j:l.u),n=l.u-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.u=m%f;l.B=m===f;l.D=!0;l.J=Fwa(l)}b.Eo=d.isLivePlayback;xO(d)&&(b.eh=!0,"LOW"===d.latencyClass?b.rb=g.xL(c.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===d.latencyClass&&(b.rb=g.xL(c.experiments,"html5_jumbo_ull_subsegment_readahead_target")),
b.Fo=!0);d.Jc()&&(b.Dm=1.3);b.Eb=b.Eb||d.fE;b.C=SO(d);b.Ya=d.ea||b.C;c.Id()&&(b.ea=!0);d.ea&&!e&&(b.xj=!0);d.ea&&d.isAd()&&(b.J*=1.6,b.V*=1.6);QO(d)&&(b.j=d.videoId,b.Fl=!0,b.Br=4,d.Gw&&0<d.Gw.length&&(b.Qd=d.Gw));b.If=d.Dk;b.ij=Eva(c,{},d.B||void 0);b.Oa=vO(d)&&g.EM(c);nO(d)&&(b.u=!0,b.xc=c.N("html5_enable_loader_preload_optimizations_for_sabr"),b.Wf&&(b.Ji=!0));b.D=b.u&&c.N("html5_sabr_live");if(l=g.xL(c.experiments,"html5_request_sizing_multiplier"))b.tp=l;jI(c.D,kI.BITRATE)&&(b.Wb=NaN);c.D.B&&
(b.Ml="; "+kI.EXPERIMENTAL.name+"=allowed");c=d.serverPlaybackStartConfig;b.Dk&&(null==c?0:c.enable)&&(null==c?0:c.playbackStartPolicy)&&(b.pg=!0,INa(b,c.playbackStartPolicy,2));if(a.Z.experiments.sb("enable_audio_description_setting")&&g.zB(g.yB(),198))for(c=a.videoData.getAvailableAudioTracks(),c=g.u(c),d=c.next();!d.done;d=c.next())if(d=d.value,d.D){var q=d;break}q||(q=a.getAudioTrack(),q=q.Nc.isDefault?void 0:q);a.jA.Tf();a:{c=a.rf.Mt;if(d=a.videoData.videoId)if(l=c.j.get(d)){c.j.remove(d);c=
l;break a}c=void 0}a.Ca=new g.aZ(a,a.Z.schedule,b,a.videoData.j,a.videoData.B,j_(a),q,a.videoData.enableServerStitchedDai,c,a.videoData.Ma);q=f2a(a)?!0:a.Et&&g.JM(a.Z)&&a.videoData.isLivePlayback;a.Ca.initialize(a.getCurrentTime(),j_(a),q);a.videoData.probeUrl&&(a.Ca.Oa=a.videoData.probeUrl);if(a.Pn.length||a.Et)a.videoData.cotn||l_(a,!1);n1a(a.Ed,a.Ca);a.jd&&tZa(a.Ca,new g.iZ(a.jd));a.He&&a.Ca.rJ(a.He);g.TO(a.videoData)&&(q=a.Ca,q.policy.Gh=q.policy.gy,a.N("html5_offline_retry_index_db_read")&&(vya=
!0))};
g_=function(a){a.Ca&&(a.Ca.dispose(),a.Ca=null,n1a(a.Ed,null));jL(a)?g2a(a):k_(a)};
g2a=function(a){if(a.Xa)if(a.Uy(),a.Xa.D)try{a.Z.Id()&&a.ya("rms",{l:"vprms",sr:jL(a),rs:kL(a.Xa)});a.Xa.clear();var b;null!=(b=a.mediaElement)&&(b.u=a.Xa);a.Xa=null}catch(c){b=new g.EB("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=cN(b),a.handleError(b),k_(a)}else k_(a)};
k_=function(a){a.Xa&&(Lua(a.Xa),a.Uy(),a.Xa.dispose(),a.Xa=null)};
h2a=function(a){if(a.Xa)return a.Xa.B;a:{try{g.zA()&&a.videoData.RN()&&CBa(a.mediaElement);var b=a.mediaElement.kt(a.RM(),a.OM())}catch(d){if(s_a(a.Yl,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Zg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}$Sa(a,b)}var c;return(null==(c=a.kt())?void 0:c.B)||null};
$Sa=function(a,b){function c(d){try{if(a.Xa&&(!d||a.Xa===d)){var e=a.getDuration();!e&&oO(a.videoData)&&(e=25200);a.Xa.isView?(d=e,d>a.Xa.getDuration()&&a.Xa.ul(d)):a.Xa.ul(e);var f=a.Ca,h=a.Xa;f.policy.Ba&&(f.policy.Ga&&f.ya("loader",{setsmb:0}),f.Qk(),f.policy.Ba=!1);iZa(f);if(!Iua(h)){var l=JX(f.videoTrack),m=JX(f.audioTrack),n=(l?l.info.j:f.videoTrack.j).info,p=(m?m.info.j:f.audioTrack.j).info,q=f.policy.Ml,t=n.mimeType+(void 0===q?"":q),v=p.mimeType,y=n.yb,A=p.yb,E,K=null==(E=h.Xa)?void 0:E.addSourceBuffer(v),
I,F="fakesb"===t.split(";")[0]?void 0:null==(I=h.Xa)?void 0:I.addSourceBuffer(t);h.ph&&(h.ph.webkitSourceAddId("0",v),h.ph.webkitSourceAddId("1",t));var S=new cL(K,h.ph,"0",FK(v),A,!1),Y=new cL(F,h.ph,"1",FK(t),y,!0);Hua(h,S,Y)}wY(f.videoTrack,h.u||null);wY(f.audioTrack,h.j||null);f.Xa=h;f.Xa.C=!0;f.resume();g.TG(h.j,f.Ma,f);g.TG(h.u,f.Ma,f);try{f.nf()}catch(ia){g.sG(ia)}a.ra("mediasourceattached")}}catch(ia){g.tG(ia),a.handleError(new aN("fmt.unplayable",{msi:"1",ename:ia&&"object"===typeof ia&&
"name"in ia?String(ia.name):void 0},1))}}
i2a(a);a.Xa=b;jL(a)&&"open"===kL(a.Xa)?c(a.Xa):Fua(a.Xa,c)};
i2a=function(a){if(a.Ca){var b=a.getCurrentTime()-a.Hd();a.N("html5_skip_loader_media_source_seek")&&a.Ca.getCurrentTime()===b||a.Ca.seek(b,{}).Ek(function(){})}else W1a(a)};
kZa=function(a,b){Z1a(a,b.reason,b.j.info)};
sZ=function(a,b){b=void 0===b?!1:b;var c,d,e;return g.Ha(function(f){if(1==f.j){a.Ca&&a.Ca.Nv();a.Ca&&a.Ca.isDisposed()&&g_(a);if(a.N("html5_enable_vp9_fairplay")&&a.uj()&&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.vc($P(a.playerState,2048));a.ra("newelementrequired");return b?g.z(f,e_(a),2):f.Ka(2)}a.videoData.Jc()&&(null==(d=a.Ca)?0:d.Ga)&&((e=a.isAtLiveHead())&&mO(a.videoData)?a.seekTo(Infinity,{ke:"videoPlayer_getNewElement"}):a.videoData.Re&&
a.Ca&&(h=a.Ca,h.Ua.Jc&&(h.Ua.Re||h.Ua.B||h.Ua.isPremiere?(h.seek(0,{ke:"loader_resetSqless"}),h.videoTrack.K=!0,h.audioTrack.K=!0,h.videoTrack.D=!0,h.audioTrack.D=!0):sva(h.Ua)&&hZ(h))));g.yP(a.playerState,8)&&a.playVideo();g.xa(f)})};
fTa=function(a,b){a.ya("newelem",{r:b});sZ(a)};
j2a=function(a){a.Cb.C.NO();g.yP(a.playerState,32)||(a.vc($P(a.playerState,32)),g.yP(a.playerState,8)&&a.pauseVideo(!0),a.ra("beginseeking",a));a.Bc()};
BTa=function(a,b){b=null==b?void 0:b.seekSource;g.yP(a.playerState,32)?(a.vc(bQ(a.playerState,16,32,b)),a.ra("endseeking",a)):g.yP(a.playerState,2)||a.vc($P(a.playerState,16,b));a.Cb.C.SO(a.videoData,g.cQ(a.playerState))};
AMa=function(a){var b=0,c="";if(a.jd){if(a.jd.mq)return"D,";b=a.jd.LM()}else a.He&&(b=a.He.LM(),c=a.He.lq.substring(0,4));return 0<b?(a="AD"+b+", ",c&&(a+=c+", "),a):""};
f_=function(a,b){a.ra("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
k2a=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.WA.T(a.mediaElement,c.value,a.sP,a);a.Z.Nl&&a.mediaElement.Ru()&&(a.WA.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.Q6,a),a.WA.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.R6,a))};
m2a=function(a){g.eA(a.II);l2a(a)||(a.II=g.cA(function(){return l2a(a)},100))};
l2a=function(a){var b=a.mediaElement;b&&a.eI&&!a.videoData.Oa&&!NH("vfp",a.Cb.timerName)&&2<=b.Qj()&&!b.ji()&&0<ZK(b.Jh())&&a.Cb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Oa&&0<b.getDuration()&&(!NH("pbp",a.Cb.timerName)&&b.Bo()&&2<=b.Qj()&&0<ZK(b.Jh())&&a.Cb.tick("pbp"),b=b.getCurrentTime(),NZ(a.TB,b))?(YSa(a),!0):!1};
YSa=function(a){g.eA(a.II);a.hw.stop();a.videoData.Oa=!0;a.Z.Eo=!0;a.Z.Qc=0;var b=a.Yl;if(b.videoData.u){var c=b.Ia.D;c.u.delete(b.videoData.u.yb);c.j=!0}b.j.stop();a.Z.Dm=a.videoData.pE;a.videoData.mT=!0;n2a(a);g.yP(a.playerState,8)&&a.vc(aQ(a.playerState,65));a.Et=!1;b=a.Gc();b.j&&XTa(b.j);YTa(b.B);g.Lq(a.DL);a.ra("playbackstarted");g.MB()&&((a=g.Sa("yt.scheduler.instance.clearPriorityThreshold"))?a():NB(0))};
n2a=function(a){var b=a.getCurrentTime(),c=a.rf.ge();!NH("pbs",a.Cb.timerName)&&lH.measure&&lH.getEntriesByName&&(lH.getEntriesByName("mark_nr")[0]?xsa("mark_nr"):xsa());c.videoId&&a.Cb.info("docid",c.videoId);c.eventId&&a.Cb.info("ei",c.eventId);c.clientPlaybackNonce&&!a.N("web_player_early_cpn")&&a.Cb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.Cb.info("start",c.startSeconds.toString());if(a.mediaElement&&a.mediaElement.Bo())if(a.Z.experiments.sb("web_csi_via_jspb")){var d=new bz;vi(d,
6,!0);var e=new dz;oi(e,bz,22,d);g.Nz(HH)(e,a.Cb.timerName)}else a.Cb.info("paused",1);a.Z.experiments.sb("web_csi_via_jspb")?(d=new bz,c.u?wi(d,1,Number(c.u.itag)):wi(d,1,-1),e=new dz,oi(e,bz,22,d),g.Nz(HH)(e,a.Cb.timerName)):c.u?a.Cb.info("fmt",c.u.itag):a.Cb.info("fmt","-1");c.Ji&&(e=a.xN?2:1,a.Z.experiments.sb("web_csi_via_jspb")?(d=new bz,N(d,8,e),e=new dz,oi(e,bz,22,d),g.Nz(HH)(e,a.Cb.timerName)):a.Cb.info("yt_pre",String(a.xN?2:1)));a.isFullscreen()&&a.Cb.info("yt_fs","1");g.OH({liveStreamMode:o2a[AO(c)]},
a.Cb.timerName);a.Cb.info("cmt",b.toFixed(3));if(a.Ca){b=a.Ca.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.K&&(c=window.performance.getEntriesByName(b.K),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.u&&(c=window.performance.getEntriesByName(b.u),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.Cb.tick(f,b[f])}};
p2a=function(a){a.Gc().cf();if(mO(a.videoData)&&Date.now()>a.EW+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&mva(a.videoData.j))){var b=a.Gc();if(b.qoe){b=b.qoe;var c=b.provider.va.OC(),d=g.UW(b.provider);c0a(b,d,c);c=c.B;isNaN(c)||g.wZ(b,d,"e2el",[c.toFixed(3)])}}g.SM(a.Z)&&a.ya("rawlat",{l:OS(a.LQ,"rawlivelatency").toFixed(3)});a.EW=Date.now()}a.videoData.u&&KK(a.videoData.u)&&(b=BP(a))&&b.videoHeight!==a.fO&&(a.fO=b.videoHeight,Z1a(a,"a",a2a(a,a.videoData.eb)))};
a2a=function(a,b){if("auto"===b.j.video.quality&&KK(b.Kh())&&a.videoData.od)for(var c=g.u(a.videoData.od),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.fO&&"auto"!==d.j.video.quality)return d.Kh();return b.Kh()};
M1a=function(a){if(!mO(a.videoData))return NaN;var b=0;a.Ca&&a.videoData.j&&(b=oO(a.videoData)?a.Ca.lG.pj()||0:a.videoData.j.oa);return Date.now()/1E3-a.uf()-b};
r2a=function(a){a.mediaElement&&a.mediaElement.Mh()&&(a.GH=(0,g.mC)());a.Z.tp?g.bA(function(){q2a(a)},0):q2a(a)};
q2a=function(a){var b;if(null==(b=a.Xa)||!b.nm()){if(a.mediaElement)try{a.HI=a.mediaElement.playVideo()}catch(d){h_(a,"err."+d)}if(a.HI){var c=a.HI;c.then(void 0,function(d){if(!(g.yP(a.playerState,4)||g.yP(a.playerState,256)||a.HI!==c||d&&"AbortError"===d.name&&d.message&&d.message.includes("load"))){var e="promise";d&&d.name&&(e+=";m."+d.name);h_(a,e);a.ZT=!0;a.videoData.Wf=!0}})}}};
h_=function(a,b){g.yP(a.playerState,128)||(a.vc(bQ(a.playerState,1028,9)),a.ya("dompaused",{r:b}),a.ra("onAutoplayBlocked"))};
a_=function(a){if(!a.mediaElement||!a.videoData.B)return!1;var b,c=null;if(null==(b=a.videoData.B)?0:b.j){c=h2a(a);var d;null==(d=a.Ca)||d.resume()}else g_(a),a.videoData.eb&&(c=a.videoData.eb.HB());b=c;d=a.mediaElement.OF();c=!1;d&&d.equals(b)||(s2a(a,b),c=!0);g.yP(a.playerState,2)||(b=a.Ed,b.D||!(0<b.C)||b.mediaElement&&0<b.mediaElement.getCurrentTime()||(d={ke:"seektimeline_resumeTime"},b.N("html5_report_seek_source_to_qoe")&&!b.videoData.Oa&&(d.seekSource=15),b.seekTo(b.C,d)));a:{b=c;if(nO(a.videoData)){if(!a.videoData.uj())break a}else if(!g.zO(a.videoData))break a;
if(a.mediaElement)if((d=a.videoData.D)&&a.mediaElement.Ru()){var e=a.mediaElement.Bb();if(a.Oe)if(e!==a.Oe.element)m_(a);else if(b&&"fairplay"===d.flavor&&!AA())m_(a);else break a;if(a.N("html5_report_error_for_unsupported_tvos_widevine")&&AA()&&"widevine"===d.flavor)a.Zg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.Oe=new h_a(e,a.videoData,a.Z);a.Oe.subscribe("licenseerror",a.mI,a);a.Oe.subscribe("qualitychange",a.C7,a);a.Oe.subscribe("heartbeatparams",
a.OD,a);a.Oe.subscribe("keystatuseschange",a.Hp,a);a.Oe.subscribe("ctmp",a.ya,a);b=g.u(a.jA.keys);for(d=b.next();!d.done;d=b.next())d=a.jA.get(d.value),a.Oe.bA(d);a.N("html5_eme_loader_sync")||a.jA.Tf()}}else a.Zg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return c};
s2a=function(a,b){a.Cb.tick("vta");SH("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&q1a(a.Ed,a.getCurrentTime());a.mediaElement.oy(b);a.Xa&&NB(4);!a.videoData.Oa&&g.dQ(a.playerState)&&a.hw.start();if(b2a(a)){var c;if(b=null==(c=a.mediaElement)?void 0:c.audioTracks())b.onchange=function(){a.ra("internalaudioformatchange",a.videoData,!0)}}};
m_=function(a){a.Oe&&(a.Oe.dispose(),a.Oe=null)};
QW=function(a,b){b=void 0===b?!1:b;return mO(a.videoData)&&(a.isAtLiveHead()&&!g.cQ(a.playerState)||a.Tq()||g.DO(a.videoData))?a.getCurrentTime():a.Pe(b)};
t2a=function(a){a.mediaElement&&(a.Xa?(m_(a),k_(a),h2a(a)):(a.videoData.eb&&a.videoData.eb.oQ(),a.mediaElement.stopVideo()),a.playVideo())};
u2a=function(a,b){a.Z.N("html5_log_rebuffer_reason")&&a.ya("bufreason",{r:b,lact:sF()})};
dX=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.Gc();if(l.qoe){var q=l.qoe,t=b.cpn,v=c.cpn,y=m.videoData.Ke,A=q.provider.videoData.clientPlaybackNonce,E=q.provider.videoData.videoId,K=v!==A&&p!==E;A=t!==A&&n!==E;q.reportStats();q.adCpn&&q.adCpn!==t||(q.adCpn=A?t:"",q.ea=A?n:"",q.adFormat=A?y:void 0,mX(q,h?4:f?2:0,v,p,e),q.reportStats(),q.adCpn=K?v:"",q.ea=K?p:"",q.adFormat=K?y:void 0,mX(q,h?
5:f?3:1,t,n,d),q.reportStats())}d=b.cpn;if(l.u.has(d)){if(f=l.u.get(d),IZ(f,!0).send(),HZ(f),d!==l.provider.videoData.clientPlaybackNonce){F0a(f);var I;null==(I=l.j)||B0a(I);l.u.delete(d)}}else l.wg=l.provider.videoData.clientPlaybackNonce,l.wg&&l.j&&(l.u.set(l.wg,l.j),IZ(l.j).send(),HZ(l.j));I=c.cpn;m=m.videoData;d=e-a.Fq();if(l.u.has(I)){m=l.u.get(I);var F=m.u&&isNaN(m.C)?FZ(m):NaN;m=E0a(m,!1);isNaN(F)||(m.C=F);m.send()}else m=O0a(l,l.provider,m,d),l.u.set(I,m),m.Md(new g.EP($P(new g.YP,8),new g.YP)),
XTa(m),null==(F=l.j)||HZ(F);l.wg=I;l=a.videoData.clientPlaybackNonce;a=c.videoData;b=(b.cpn===l?"video":"ad")+"_to_"+(c.cpn===l?"video":"ad");l={};a.J&&(l.cttAuthInfo={token:a.J,videoId:a.videoId});l.startTime=e;PH(b,l);g.OH({targetVideoId:a.videoId,targetCpn:c.cpn},b);RH("pbs",e,b)}}};
v2a=function(a,b){if(a.Z.Id()){var c=g.xL(a.Z.experiments,"html5_log_rebuffer_events");if(c&&a.mediaElement){var d=a.mediaElement.qc();d.rt=(1E3*g.UW(a.Gc().provider)).toFixed();d.e=b.substr(0,3);a.JI[a.nY++%c]=d}}};
w2a=function(a){if(a.Z.Id()){a.JI.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.u(a.JI),c=b.next();!c.done;c=b.next())c=c.value,a.ya("vpe",Object.assign({t:c.rt},c));a.JI=[];a.nY=0}};
x2a=function(a){if(g.xA("cobalt")&&g.xA("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.ya("nxdock",{d:b})}};
XSa=function(a,b,c,d,e){a.ya("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
l_=function(a,b){var c;null==(c=a.Ca)||dZ(c,b||f2a(a))};
f2a=function(a){return a.N("disable_prefetch_when_ad_pending_for_living_room")&&g.JM(a.Z)&&g.Fb(a.Pn,"ad")};
y2a=function(a){return SO(a.videoData)&&a.He?UTa(a.He,a.getCurrentTime()):a.videoData.Pe()};
g.n_=function(a,b,c,d){g.G.call(this);var e=this;this.logger=new g.EW("App");this.Vz=this.Zh=!1;this.Du={};this.yy=new WKa;this.SI={};this.wA=[];this.kW=!1;this.MN=null;this.pW=!1;this.Wv=!0;this.DQ=!1;this.IW=this.hO=null;this.PW=!0;this.mediaElement=this.Hb=null;this.FO=NaN;this.dE=!1;this.ye=this.YA=this.He=this.df=this.screenLayer=this.qE=this.Ob=this.playlist=null;this.config=una(b||{});this.webPlayerContextConfig=c;Gna();b=this.config.args||{};this.Z=new cxa(b,c,c?c.canaryState:this.config.assets.player_canary_state,
d);g.H(this,this.Z);this.AL();this.Z.experiments.sb("web_player_empty_translator")?Uqa({},{}):this.Z.experiments.sb("web_player_all_payloads_via_jspb")&&Uqa(z2a,A2a);this.Z.u&&!B2a&&(window.addEventListener(uM?"touchstart":"click",QSa,{capture:!0,passive:!0}),B2a=!0);this.N("html5_onesie")&&(this.zw=new AW(this.Z),g.H(this,this.zw));this.pZ=LA(zM(this.Z)&&!0,b.enablesizebutton);this.ZN=LA(!1,b.player_wide);this.visibility=new mTa;g.H(this,this.visibility);this.Zh=LA(!1,b.external_list);this.events=
new g.PK(this);g.H(this,this.events);this.N("start_client_gcf")&&(vF(zF(),{RP:aD,rR:Boa()}),this.U3=zF().resolve(aD),Eoa(this.U3));this.Dr=new wX;g.H(this,this.Dr);this.wq=new wX;g.H(this,this.wq);this.Oq=new BUa;d=new XKa;this.bb=new g.PS(this,d);g.H(this,this.bb);this.template=new vUa(this);g.H(this,this.template);this.appState=1;this.Hi=C2a(this);this.I=this.Z.J?new KS(this,d,!0,1):new HS(this,d,!0,1);g.H(this,this.I);g.H(this,d);d={};this.zL=(d.internalvideodatachange=this.U6,d.playbackready=
this.W6,d.playbackstarted=this.X6,d.statechange=this.Y6,d);this.F4=new pNa(this.bb);g.H(this,this.F4);this.bd=D2a(this);d=this.N("html5_load_wasm");b=this.N("html5_allow_asmjs");(d&&eU||b)&&iOa(this.bd,b,b&&!d).then(function(f){e.Z.ob=f},function(f){g.tG(f)});
this.s6=new g.PK(this);g.H(this,this.s6);this.Cb=new qNa(this.Z,this.bd);this.bb.ra("csiinitialized");this.Ib=E2a(this);this.Ib.setPlaybackRate(this.Z.C?1:F2a(this,Number(g.sB("yt-player-playback-rate"))||1));g.TG(this.Ib,this.zL,this);Q1a(this.Ib);d={};this.rY=(d.airplayactivechange=this.onAirPlayActiveChange,d.airplayavailabilitychange=this.onAirPlayAvailabilityChange,d.beginseeking=this.NO,d.endseeking=this.SO,d.internalAbandon=this.YO,d.internalaudioformatchange=this.ID,d.internalvideodatachange=
this.onVideoDataChange,d.internalvideoformatchange=this.aE,d.liveviewshift=this.D7,d.playbackstalledatstart=this.T8,d.progresssync=this.j8,d.onLoadProgress=this.onLoadProgress,d.SEEK_COMPLETE=this.dA,d.SEEK_TO=this.H8,d.onVideoProgress=this.onVideoProgress,d.onLoadedMetadata=this.onLoadedMetadata,d.onAutoplayBlocked=this.onAutoplayBlocked,d.playbackready=this.Z7,d.statechange=this.fY,d.connectionissue=this.LD,d.newelementrequired=this.MX,d.heartbeatparams=this.OD,d.videoelementevent=this.sP,d.drmoutputrestricted=
this.onDrmOutputRestricted,d.signatureexpired=this.N8,d.nonfatalerror=this.R7,d);this.Lt=new g.PK(this);g.H(this,this.Lt);d=10;g.JM(this.Z)&&(d=3);RM(this.Z)&&(d=g.xL(this.Z.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Mt=new vX;g.H(this,this.Mt);this.kE=new tX(d,function(f){f!==g.FS(e,f.getPlayerType())&&f.dispose()});
g.H(this,this.kE);this.yM=this.GG=-1;this.hJ=new g.Kq(this.template.resize,16,this.template);g.H(this,this.hJ);this.jd=new aUa(this.bb,this.Z,this.Ib);this.kA=new XW(this.Z);this.oo=new RW(this);g.H(this,this.oo);this.s_=new MW(this);g.H(this,this.s_);pUa(this.Z.j.c);this.events.T(this.bb,g.PG("appapi"),this.S6);this.events.T(this.bb,g.QG("appapi"),this.T6);this.events.T(this.bb,g.PG("appad"),this.sX);this.events.T(this.bb,g.QG("appad"),this.sX);this.events.T(this.bb,g.PG("appprogressboundary"),this.i8);
this.events.T(this.bb,g.QG("applooprange"),this.mJ);this.events.T(this.bb,"presentingplayerstatechange",this.Yi);this.events.T(this.bb,"resize",this.u8);this.template.Ja(Je(document,a));this.events.T(this.bb,"offlineslatestatechange",this.T7);this.tR=G2a(this,this.template.element);g.H(this,this.tR);this.bd.I.W().xj&&gU(this.bd,"offline");this.Z.eh&&g.VT("ux",g.zW);this.RT=new g.Kq(this.P9,g.xL(this.Z.experiments,"html5_defer_fetch_att_ms"),this);g.H(this,this.RT);this.ge().Fe()&&(g.uB()&&this.ge().Fa.push("remote"),
H2a(this));this.Cb.tick("fs");I2a(this);this.Z.eh&&gU(this.bd,"ux",!0);g.FM(this.bd.I.W())&&gU(this.bd,"music");g.xM(this.bd.I.W())&&gU(this.bd,"embed");this.N("web_player_sentinel_is_uniplayer")||g.tG(new g.EB("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.N("web_player_sentinel_yt_experiments_sync");d=g.Hz("web_player_sentinel_yt_experiments_sync");a!==d&&g.tG(new g.EB("b/195699950",{yt:a,player:d}));c||g.tG(new g.EB("b/179532961"));this.b_=J2a(this);if(c=g.xL(this.Z.experiments,
"html5_block_pip_safari_delay"))this.EM=new g.Kq(this.hU,c,this),g.H(this,this.EM);pA=this.Z.od;c=g.xL(this.Z.experiments,"html5_performance_impact_profiling_timer_ms");0<c&&(this.kY=new g.ag(c),g.H(this,this.kY),this.events.T(this.kY,"tick",function(){e.lY&&K2a.xq(e.lY);e.lY=K2a.Qr("apit")}))};
J2a=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(c={n:c.name,m:c.message},(a.Ob||a.Ib).Gc().pe("player.exception",$M(c)))}
uG.subscribe("handleError",b);Lz.push(b);return function(){uG.unsubscribe("handleError",b);var c=Lz.indexOf(b);-1!==c&&Lz.splice(c,1)}};
E2a=function(a){var b=new g.eO(a.Z,a.config.args);a.bb.ra("initialvideodatacreated",b);return a.Ry(1,b)};
D2a=function(a){var b="",c=tUa(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.tG(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new TNa(a.bb,b);L2a(a,b);return b};
L2a=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.B=c};
C2a=function(a){if(a.Z.storeUserVolume){a=g.sB("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.pe(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.Z.mute};return a};
o_=function(a){a.mediaElement=a.Z.deviceIsAudioOnly?new g.GT(g.bf("AUDIO")):LW.pop()||new g.GT(g.bf("VIDEO"));g.H(a,a.mediaElement);a.Ob&&a.Ob.setMediaElement(a.mediaElement);try{a.Z.Fd?(a.YA&&a.events.Mc(a.YA),a.YA=a.events.T(a.mediaElement,"volumechange",a.L7)):(a.mediaElement.AA(a.Hi.muted),a.mediaElement.setVolume(a.Hi.volume/100))}catch(e){a.Sg("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.nB(a.Lt);M2a(a);var b=a.template,c=a.mediaElement.Bb();b.uc=c;b.oH=!1;b.uc.parentNode||g.ff(b.Ny,b.uc,0);b.OI=new g.Rn(0,0,0,0);AUa(b);yX(b);c=b.uc;g.Sq(c,"video-stream");g.Sq(c,g.xX.MAIN_VIDEO);var d=b.app.W();d.xk&&c.setAttribute("data-no-fullscreen","true");d.N("html5_local_playsinline")?"playsInline"in QK()&&(c.playsInline=!0):d.Ml&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.Yo&&b.uc&&b.T(c,"click",c.play,c);try{a.mediaElement.oy()}catch(e){a.Sg("html5.missingapi",
2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message&&e.message.replace(/[;:,]/g,"_")))}};
WW=function(a,b,c){if(a.Ob!==b){var d=null;if(a.Ob){d=a.Ob.getPlayerState();hU(a.bd,3);p_(a,"cuerangesremoved",a.Ob.Xm());a.oo&&!b.isGapless()&&a.Ob.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=jL(b)&&jL(a.Ob);a.N("html5_rebase_video_to_ad_timeline")&&a.Cb.Au("iv_s");e=void 0===e?!0:e;var f;if(f=a.ye)f=a.mediaElement,f=!!f&&f===a.ye.mediaElement;f&&(a.Ij(),o_(a));a.Ob&&(a.Ob.Ij(!e),UG(a.Ob,a.rY,a),1!==a.Ob.getPlayerType()&&a.Ob.dispose());a.Ob=null}1===b.getPlayerType()&&a.Ib!==b&&
(b.getVideoData().autonavState=a.Ib.getVideoData().autonavState,UG(a.Ib,a.zL,a),e=a.Ib.getPlaybackRate(),a.Ib.dispose(),a.Ib=b,a.Ib.setPlaybackRate(e),g.TG(b,a.zL,a),H2a(a));e=b.getPlayerType();if(b!==a.Ib&&b!==a.Du[e]){var h;null==(h=a.Du[e])||h.dispose();a.Du[e]=b}a.Ob=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.TG(b,a.rY,a);if(b.DH())N2a(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",b,b.getVideoData());d&&!g.JBa(d,b.getPlayerState())&&a.fY(new g.EP(b.getPlayerState(),d));c=
c&&a.I.N("html5_player_preload_ad_fix")&&1===b.getPlayerType();if(b.Jp.finished&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().u)&&c.video)&&a.bb.Qa("onPlaybackQualityChange",c.quality);p_(a,"cuerangesadded",a.Ob.Xm());c=b.getPlayerState();g.yP(c,2)?O2a(a):g.yP(c,8)?b.playVideo():b.mD()&&b.pauseVideo();if(2===b.getPlayerType()){var l;b.getVideoData().X2=null==(l=g.FS(a,1))?void 0:l.getVideoData().clientPlaybackNonce}2!==b.getPlayerType()||a.Bf()||(b=b.getVideoData(),
a.Ib.rA(b.clientPlaybackNonce,b.Ke||"",b.breakType||0,b.Ri))}}};
O2a=function(a){if(!P2a(a)){var b=a.Ib.Qe();b&&(b=b.oC(),b instanceof Promise&&b.catch(function(){}));
q_(a,fQ(a.Nb()))}};
M2a=function(a){var b=a.mediaElement;Aua()?a.Lt.T(b,"webkitpresentationmodechanged",a.E8):window.document.pictureInPictureEnabled&&(a.Lt.T(b,"enterpictureinpicture",function(){a.CA(!0)}),a.Lt.T(b,"leavepictureinpicture",function(){a.CA(!1)}));
EA&&(a.Lt.T(b,"webkitbeginfullscreen",function(){a.Am(3)}),a.Lt.T(b,"webkitendfullscreen",function(){a.Am(0)}))};
g.FS=function(a,b){return b?1===b?a.Ib:a.getVideoData().enableServerStitchedDai&&2===b?a.getVideoData().enablePreroll?a.Du[2]||a.Ob:a.Ob:SO(a.getVideoData())&&2===b?a.Du[2]||a.Ob:a.Du[b]||null:a.Ob};
Q2a=function(a,b,c,d){a=a.Ry(b,c,d);Q1a(a);return a};
r_=function(a,b){return a.Bf(b)?a.Ib:b};
s_=function(a,b){var c=a.Ob;return c&&b===a.Ib&&a.Bf(b)&&a.Bf(c)?c:b};
R2a=function(a){if(!t_(a)){var b=iU(a.bd);b&&!b.created&&UNa(a.bd)&&b.create()}};
S2a=function(a){var b=a.getVideoData(),c=a.bd;cOa(c)||c.dM();!eU&&c.I.N("html5_allow_asmjs")&&hOa(c);gU(c,"embed");gU(c,"inline_preview");gU(c,"kids");gU(c,"remote");gU(c,"miniplayer");gU(c,"music");gU(c,"offline");gU(c,"unplugged");gU(c,"ypc",!1,!0);gU(c,"ypc_clickwrap",!1,!0);gU(c,"yto",!1,!0);gU(c,"webgl",!1,!0);dOa(c)||(gU(c,"captions",!0),gU(c,"endscreen"),c.sG(),gU(c,"creatorendscreen",!0));c.xU();a.bb.ra("videoready",b)};
u_=function(a){a=a.ge();a.Fe();return OO(a)};
I2a=function(a){a.kM();var b=a.config.args;o_(a);var c=a.ge();a.bb.Qa("onVolumeChange",a.Hi);if(b&&uNa(b)){var d=OM(a.Z);d&&!a.Zh&&(b.fetch=0);var e=g.xM(a.Z);e&&!a.Zh&&(b.fetch=0);v_(a,b);g.xM(a.Z)&&a.Cb.tick("ep_pr_s");if(d&&!a.Zh)w_(a);else if(e&&!a.Zh)T2a(a);else if(!c.Fe())a.playlist.onReady(function(){x_(a)})}WW(a,a.Ib);
g.yP(a.Ib.getPlayerState(),128)||(b=zua(!a.Z.deviceIsAudioOnly),"fmt.noneavailable"===b?a.Sg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Sg(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.Fe()&&u_(a)&&(a.Z.Ji||a.Z.Li)?y_(a):c.vR?a.I.mutedAutoplay():g.sB("yt-player-playback-on-reload")?(g.UB("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.Z.qa}),g.rB("yt-player-playback-on-reload",!1),y_(a)):XM(a.Z)||U2a(a),g.QM(a.Z)||"MWEB"===g.NL(a.Z)?
(g.JB(g.LB(),function(){z_(a)}),g.JB(g.LB(),function(){sGa()})):(z_(a),sGa()))};
z_=function(a){if(a.N("fetch_att_independently"))g.Lq(a.RT);else{var b=a.getVideoData().botguardData;b&&g.KKa(b,a.Z,a.getVideoData().Nk||"")}};
U2a=function(a){a.bb.ra("initializingmode");a.Pp(2);a.N("embeds_web_enable_defer_loading_remote_js")&&g.TM(a.Z)?g.JB(g.LB(),function(){gU(a.bd,"remote")}):gU(a.bd,"remote");
gU(a.bd,"miniplayer")};
y_=function(a){if(g.yP(a.Ib.getPlayerState(),128))return!1;var b=a.Ib.getVideoData();u_(a)&&a.Z.Li&&(LW.length&&a.Vz?(IS(a,{muted:!1,volume:a.Hi.volume},!1),A_(a,!1)):LW.length||a.Hi.muted||(IS(a,{muted:!0,volume:a.Hi.volume},!1),A_(a,!0)));u_(a)&&a.Z.Cp&&b.mutedAutoplay&&(IS(a,{muted:!0,volume:a.Hi.volume},!1),A_(a,!0));b.jT&&IS(a,{muted:!0,volume:a.Hi.volume},!1);V2a(a,1,b,!1);a.bb.ra("initializingmode");WW(a,a.Ib);a.Pp(3);var c;if(!(c=!a.Z.Mm)){if(c=a.ye)c=a.mediaElement,c=!!c&&c===a.ye.mediaElement;
c=c&&a.kW}c&&(a.Ij(),o_(a),a.Ib.setMediaElement(a.mediaElement));X1a(a.Ib);if(g.yP(a.Ib.getPlayerState(),128))return!1;b.Fo||q_(a,3);return a.kW=!0};
t_=function(a){a=SS(a.bd);return!!a&&a.loaded};
W2a=function(a,b){if(!a.Hb)return!1;var c=.001*a.Hb.startTimeMs-1,d=.001*a.Hb.endTimeMs;"repeatChapter"===a.Hb.type&&d--;return se(b,c)||se(b,d)||b>=c&&b<=d};
X2a=function(a){if(!(g.yP(a.Ib.getPlayerState(),64)&&a.ge().isLivePlayback&&5E3>a.Hb.startTimeMs)){if("repeatChapter"===a.Hb.type){var b,c=null==(b=dLa(a.Fb()))?void 0:b.OG(),d;b=null==(d=a.getVideoData())?void 0:d.jk;c instanceof g.xU&&b&&(d=b[fV(b,a.Hb.startTimeMs)],c.zE(0,d.title));isNaN(Number(a.Hb.loopCount))?a.Hb.loopCount=0:a.Hb.loopCount++;1===a.Hb.loopCount&&a.I.Qa("innertubeCommand",a.getVideoData().i4)}c={ke:"application_loopRangeStart"};a.N("html5_report_seek_source_to_qoe")&&"clips"===
a.Hb.type&&(c.seekSource=58);a.Ib.seekTo(.001*a.Hb.startTimeMs,c)}};
F2a=function(a,b){var c=a.bb.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};
C_=function(a,b,c){if(a.Bf(c)){c=c.getVideoData();if(B_(a))c=b;else{a=a.jd;for(var d=g.u(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Tc===e.Tc){b+=e.Ic/1E3;break}d=b;a=g.u(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Tc===e.Tc)break;var f=e.Ic/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Ud/1E3;else break}c=d}return c}return b};
Y2a=function(a,b){if(3===a.getPresentingPlayerType())return fQ(SS(a.bd).mf);if(a.getVideoData().enableServerStitchedDai&&2===b){var c;return(null==(c=a.df)?0:yTa(c,a.getCurrentTime()))?a.GG:-1}return 2!==b||a.Bf()?a.GG:a.yM};
H2a=function(a){D_(a);a.setLoopVideo(!1);a.setLoopRange(null);a.yy.yy={};a.SI={};a.wA=[];sNa(a.Cb);if(a.df){var b=a.df,c=a.Ib;c.getPlayerType();gX(b,!1);CTa(b);DTa(b);b.va=c}b=a.jd;a=a.Ib;1!==a.getPlayerType()&&nX(b,"invalidParentVideoPlayerType");rX(b,!1);nUa(b);b.j=a};
w_=function(a){var b=Z2a();if(b)if(!b.list)a.jG();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.bb.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.TT(a.playlist).videoId||(b.index=a.playlist.index));yNa(a.playlist,b);a.qE&&$2a(a,a.qE)}else a.qE=null};
T2a=function(a,b){var c=(b?b:a.ge()).CT;a.Cb.tick("ep_pr_r");if(null!=c&&(yNa(a.playlist,c),a.DQ))a.playlist.onReady(function(){x_(a,b)})};
v_=function(a,b){a.playlist&&(g.qb(a.playlist),a.playlist=null);b&&(a.Zh&&(b.fetch=0),a.playlist=new tNa(a.Z,b))};
d3a=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.zq(c,d);d=void 0;d=void 0===d?!1:d;(d=GG(HG(c,a3a),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=GG(HG(c,b3a),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=GG(HG(c,c3a),c,d,"Nielsen OCR URL"));g.wD(c,void 0,d)}return!0};
q_=function(a,b){if(a.Ob){var c=a.Ob.getPlayerType();if(2===c&&!a.Bf()){a.yM!==b&&(a.yM=b,a.bb.Qa("onAdStateChange",b));return}if(2===c&&a.Bf()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}if(0===b){if(a.Hb)return;var d;if((null==(d=a.Ob)?0:d.gt())&&!WM(a.Z)){a.playVideo();return}}a.GG!==b&&(a.GG=b,a.bb.Qa("onStateChange",b))};
e3a=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=V2a(a,c,b,!0);f||(f=Q2a(a,c,b));2===c&&a.Ib&&(b=f.getVideoData(),a.Ib.rA(b.clientPlaybackNonce,b.Ke||"",b.breakType||0,b.Ri));a.BG(f,d,0,e)};
f3a=function(a,b,c){return E_(a,b,c.videoId,c.Tc,c.isAutonav,c.Op)};
E_=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};
V2a=function(a,b,c,d){var e=a.Z.N("html5_autonav_autoplay_in_preload_key")?f3a(a,b,c):E_(a,b,c.videoId,c.Tc);var f=a.kE.get(e);if(!f)return null;a.kE.remove(e);if(g.yP(f.getPlayerState(),128))return f.dispose(),null;if(f===g.FS(a,b))return g.OH({isCacheHit:!0},a.Cb.timerName),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||WW(a,f,!0);g.OH({isCacheHit:!0},a.Cb.timerName);return f};
F_=function(a,b,c){c=g.FS(a,c);b&&c===a.Ib&&(c.getVideoData().jg=!0)};
G_=function(a,b,c){c=void 0===c?1:c;if(b.Fe()){var d=a.Ry(c,b);a.cancelPlayback(4,c);WW(a,d);Q1a(d);1===c&&(a.Pp(1),g.xM(a.Z)&&!Xza(b)?(b.dispose(),g.qb(g.FS(a,c))):U2a(a))}else b.dispose(),g.qb(g.FS(a,c)),Wza(a.ge())&&2===c&&delete a.Du[2]};
g3a=function(a,b,c,d,e){b=hLa(b,c,d,e);(c=g.xM(a.Z)&&!a.Z.Ba)&&!a.Zh&&(b.fetch=0);v_(a,b);g.xM(a.Z)&&a.Cb.tick("ep_a_pr_s");if(c&&!a.Zh)c=a.ge(),BNa(c,b).then(function(f){a.DQ=!0;T2a(a,f)});
else a.playlist.onReady(function(){x_(a)});
g.xM(a.Z)&&a.Cb.tick("ep_a_pr_r")};
x_=function(a,b){var c=g.xM(a.Z)&&!a.Z.Ba,d=c&&b?b:g.TT(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.jl&&(a.Z.Ji||a.Z.Li)||!a.Wv?(b=b.jg,d=a.It(d,1),b&&F_(a,d)):G_(a,d,1));g.xM(a.Z)&&a.Cb.tick("ep_p_l");a.DQ=!1;a.bb.Qa("onPlaylistUpdate")};
P2a=function(a){if(a.playlist&&g.CM(a.Z)&&a.yC()){var b=a.Z.N("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
$2a=function(a,b){var c=g.Sa(b);c?((b=Z2a())&&b.list&&c(),a.qE=null):a.qE=b};
Z2a=function(){var a=g.Sa("yt.www.watch.lists.getState");return a?a():null};
h3a=function(a,b,c,d,e,f,h){b={id:b,namespace:null!=h?h:"appapi"};"chapter"===f?(b.style=MG.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=MG.AD_MARKER:(b.style=MG.TIME_MARKER,b.color=e),b.visible=!0);a.sy([new g.NG(1E3*c,1E3*d,b)],1);return!0};
i3a=function(a,b,c,d,e,f){f=void 0===f?!0:f;var h=a.uf();if(!h)return f&&a.getVideoData().isLivePlayback&&a.wA.push({id:b,paa:c,oaa:d}),!1;f=h-a.getCurrentTime();return h3a(a,b,c-f,d-f,void 0,void 0,e)};
j3a=function(a,b){a.wA=g.cp(a.wA,function(f){return f.id!==b});
for(var c=a.Ib.Xm(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.Ib.removeCueRange(e),p_(a,"cuerangesremoved",[e]),!0}return!1};
k3a=function(a){var b=(0,g.mC)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
IS=function(a,b,c){a.Z.eb&&(a.Hi=b,b.muted||A_(a,!1),c&&a.Z.storeUserVolume&&!a.Z.Fd&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.rB("yt-player-volume",c),g.rB("yt-player-volume",c,2592E3))),l3a(a),c=g.SK&&a.mediaElement&&!a.mediaElement.Of(),a.Z.Fd&&!c||a.bb.Qa("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.Z.storeUserVolume}))};
l3a=function(a){var b=a.getVideoData();if(!b.xk){b=a.Z.Fd?1:Uza(b);var c=a.mediaElement;c.AA(a.Hi.muted);try{c.setVolume(a.Hi.volume*b/100)}catch(d){g.tG(new g.EB("b183742307","multiplier: "+b+", volume: "+a.Hi.volume))}}};
A_=function(a,b){b!==a.Vz&&(a.Vz=b,a.bb.Qa("onMutedAutoplayChange",b))};
g.JS=function(a){return a.Vz&&a.getVideoData().mutedAutoplay};
m3a=function(a){var b=aB(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.Bb())?b:null};
o3a=function(a,b){var c=window.screen&&window.screen.orientation;if((a.Z.N("lock_fullscreen2")||a.Z.V)&&c&&c.lock&&(!g.SK||!n3a))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.dE||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
a.dE=!0}}else a.dE&&(a.dE=!1,c.unlock())};
p_=function(a,b,c){a.bb.ra(b,c);var d=g.JM(a.Z)||g.DM(a.Z)||g.EM(a.Z);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.bb.Qa(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}}))}};
H_=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.FS(a,e);if(!h||(2!==h.getPlayerType()||a.Bf(h)||f)&&!g.DO(h.getVideoData()))3===a.getPresentingPlayerType()?SS(a.bd).MD("control_seek",b,c):(h===a.Ib&&a.Hb&&!W2a(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
N2a=function(a,b,c){c&&(a.Ij(),o_(a));c=g.FS(a);c.pe(new aN("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?oO(d)&&g.SM(a.Z)&&(e.live_utc_start=c.uf(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.qa&&(e.vvt=d.qa);d.J&&(e.vss_credentials_token=d.J,e.vss_credentials_token_type=d.Gk);d.oauthToken&&(e.oauth_token=d.oauthToken);d.Mm&&(e.force_gvi=d.Mm);e.autoplay=1;e.reload_count=d.Zb+1;e.reload_reason=b;d.tE&&(e.unplugged_partner_opt_out=
d.tE);d.og&&(e.ypc_is_premiere_trailer=d.og);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);"signature"===b&&a.df&&R2a(a)};
p3a=function(a,b){a.ge().autonavState=b;g.rB("yt-player-autonavstate",b);a.bb.ra("autonavchange",b)};
q3a=function(a){var b=a.getVideoData().xk,c=a.Z.Zb,d=a.isInline()&&!a.getVideoData().tB,e=a.mediaElement;b||c||d?e.mM():(e.pM(),IS(a,a.Hi))};
G2a=function(a,b){return a.Z.N("html5_enable_embedded_player_visibility_signals")&&g.xM(a.Z)?new sUa(b):null};
D_=function(a){(a=iU(a.Fb()))&&a.created&&a.destroy()};
B_=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.df};
r3a=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]=Xn(a,d);b.hidden=!!a.hidden};
s3a=function(a,b){return g.JM(a.Z)&&Yz(b)&&Xz(b)?g.ZM(a.Z,g.PO(a.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):oA()};
I_=function(a,b){s3a(a,b).then(function(c){g.wD(b,void 0,void 0,c)})};
J_=function(a,b){b.forEach(function(c){I_(a,c)})};
tUa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
K_=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
fF=function(a,b){return a.j.has(b)};
dF=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
L_=function(a){return Array.from(a.j.keys())};
u3a=function(a){var b;return(null==(b=t3a.get(a))?void 0:b.Sw)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
w3a=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:v3a.get(b.ib)||"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=M_(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(M_(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(M_(a.value))}return c};
x3a=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:v3a.get(b.ib)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
M_=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};
y3a=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.kn(d||[],function(e){return w3a(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
O_=function(a,b){return function(c){return z3a(N_(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.ib,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.ib)}};
z3a=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:w3a(a,{slotId:b,slotType:c,slotPhysicalPosition:d,ib:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,Ea:new K_([])}),layoutData:x3a(a,{layoutId:m,layoutType:n,ib:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Yb:new Map,Ea:new K_([]),Cc:{}})}}};
A3a=function(){return!0};
P_=function(a){this.u=A3a;this.Da=a;a=Math.random();var b=this.Da.get();b=g.xL(b.I.W().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
N_=function(a){return a.j||a.Da.get().I.W().N("html5_force_debug_data_for_client_tmp_logs")};
B3a=function(a,b){var c={slotId:CG(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],ib:"surface",Ea:new K_([])},d=Object,e=d.assign;b=DG(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Yb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:"surface",Ea:new K_([]),
Cc:z3a(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.ib,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{L5:!0,slot:c,layout:b})};
C3a=function(a,b,c){for(var d=!1,e=g.u(a.xl.entries()),f=e.next();!f.done;f=e.next())f=g.u(f.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===f.slotType&&"core"===f.ib&&(d=!0);if(d){a:if(!c){a=g.u(a.xl.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.ib){c=d.layoutId;break a}c=void 0}c?b.tN(c):wG("No triggering layout ID available when attempting to mute.")}};
Q_=function(a,b){this.yj=a;this.dl=b};
R_=function(){};
S_=function(){};
T_=function(a,b,c){this.Qn=a;this.y9=b;this.Ra=c};
U_=function(a,b){this.Uu=a;this.Ra=b};
V_=function(a){this.I=a};
W_=function(a,b){this.ym=a;this.Ra=b};
E3a=function(a){g.G.call(this);this.j=a;this.q0=D3a(this)};
D3a=function(a){var b=new NQ(a.j.Kd);g.H(a,b);a=g.u([new U_(a.j.Uu,a.j.Ra),new V_(a.j.I),new W_(a.j.ym,a.j.Ra),new Q_(a.j.yj,a.j.dl),new S_,new T_(a.j.Qn,a.j.Qi,a.j.Ra),new R_]);for(var c=a.next();!c.done;c=a.next())c=c.value,bEa(b,c),cEa(b,c);a=g.u(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())c=c.value,LQ(b,c,function(){}),MQ(b,c,function(){});
return b};
X_=function(a,b,c,d){d=void 0===d?!1:d;ub.call(this,a);this.Lk=c;this.Wu=d;this.args=[];b&&this.args.push(b)};
F3a=function(a,b,c,d){g.G.call(this);this.Jd=b;this.ac=c;this.Da=d;this.j=a(this,this,this,this,this);g.H(this,this.j);a=g.u(b);for(b=a.next();!b.done;b=a.next())g.H(this,b.value)};
dBa=function(a,b){NP(a.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",b)};
eBa=function(a,b){NP(a.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.u(a.Jd);for(var c=a.next();!c.done;c=a.next())c.value.wi(b)};
fBa=function(a,b){NP(a.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.u(a.Jd);for(var c=a.next();!c.done;c=a.next())c.value.Og(b)};
VAa=function(a,b){NP(a.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.u(a.Jd);for(var c=a.next();!c.done;c=a.next())c.value.Pg(b)};
G3a=function(a,b,c,d){wG(c,b,void 0,void 0,c.Wu);c.Lk?Y_(a.ac,d,c.Lk,b):wG("adsClientErrorMessage is missing.",b);Z_(a,b,!0)};
J3a=function(a,b,c){if($_(a.j,b))if(a0(a.j,b).C=c?"filled":"not_filled",null===c){b0(a.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.u(a.Jd);for(var d=c.next();!d.done;d=c.next())d.value.pk(b);Z_(a,b,!1)}else{b0(a.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);b0(a.ac,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);var e=null!=(d=c.LA)?d:dF(c.Ea,"metadata_type_sub_layouts");if(e)for(d=g.u(e),e=d.next();!e.done;e=d.next())b0(a.ac,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,e.value);e=
g.u(a.Jd);for(d=e.next();!d.done;d=e.next())d.value.qk(b);if($_(a.j,b))if(a0(a.j,b).D)Z_(a,b,!1);else{b0(a.ac,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.j;if(!a0(f,b))throw new X_("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!f.Ff.Zq.get(b.slotType))throw new X_("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.Zc.length)throw new X_("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");c0(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);c0(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);c0(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);c0(f,
"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);c0(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Zc)}catch(n){n instanceof X_?a.Ef(b,c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.Ef(b,c,new X_("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");Z_(a,b,!0);return}a0(a.j,b).J=!0;try{var h=a.j,l=a0(h,b),m=h.Ff.Zq.get(b.slotType).get().Jf(h.C,h.u,b,c);m.init();l.layout=c;if(l.B)throw new X_("Already had LayoutRenderingAdapter registered for slot",
void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");l.B=m;d0(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);d0(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);d0(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);d0(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);d0(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Zc)}catch(n){H3a(a,b);n instanceof X_?a.Ef(b,
c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.Ef(b,c,new X_("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");Z_(a,b,!0);return}b0(a.ac,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);f=g.u(a.Jd);for(d=f.next();!d.done;d=f.next())d.value.Aj(b,c);H3a(a,b);I3a(a,b)}else a=a.Da.get(),g.SM(a.I.W())||IM(a.I.W())||g.JM(a.I.W())?a=!0:(wG("Composite VOD on legacy path."),a=!1),a&&wG("slot is unscheduled after been fulfilled.",
b,c)}};
K3a=function(a,b,c){"core"!==b.ib&&b0(a.ac,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c)};
L3a=function(a,b,c){b0(a.ac,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.u(a.Jd);for(var d=a.next();!d.done;d=a.next())d.value.Aj(b,c)};
gBa=function(a,b,c){a=g.u(a.Jd);for(var d=a.next();!d.done;d=a.next())d.value.Ph(b,c)};
e0=function(a,b,c){b0(a.ac,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.u(a.Jd);for(var d=a.next();!d.done;d=a.next())d.value.Rc(b,c)};
KP=function(a,b,c,d){b0(a.ac,u3a(d),b,c);a=g.u(a.Jd);for(var e=a.next();!e.done;e=a.next())e.value.Wc(b,c,d)};
H3a=function(a,b){if($_(a.j,b)){a0(a.j,b).J=!1;var c=f0;b=a0(a.j,b);var d=[].concat(g.qa(b.V));taa(b.V);c(a,d)}};
f0=function(a,b){b.sort(function(f,h){function l(m){wG("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):Zpa(f.category,l)-Zpa(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,$_(a.j,d.slot))if(a0(a.j,d.slot).J)a0(a.j,d.slot).V.push(d);else{M3a(a.ac,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.u(N3a);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))&&O3a(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&P3a(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&Q3a(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
R3a(a,c)};
O3a=function(a,b,c){b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&S3a(a.j,d.slot)&&T3a(a,d.slot,d.layout,c)};
P3a=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())Z_(a,c.value.slot,!1)};
Q3a=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(a0(a.j,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(NP(a.ac,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.tC(c.slot))}};
R3a=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;NP(a.ac,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.u(a.Jd),e=d.next();!e.done;e=d.next())e.value.Dj(c.slot);try{var f=a.j,h=c.slot,l=a0(f,h);if(!l)throw new iF("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!l.u)throw new iF("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if("scheduled"!==l.j)throw new iF("Tried to enter a slot from stage: "+
l.j,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(g0(l))throw new iF("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var m=g.u(h0(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&g0(p))throw new iF("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 iF&&q.Lk?(Y_(a.ac,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
q.Lk,c.slot),wG(q,c.slot,i0(a.j,c.slot),void 0,q.Wu)):(Y_(a.ac,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c.slot),wG(q,c.slot));Z_(a,c.slot,!0);continue}c=a0(a.j,c.slot);"scheduled"!==c.j&&j0(c.slot,c.j,"enterSlot");c.j="enter_requested";c.u.CG()}};
I3a=function(a,b){if($_(a.j,b)&&g0(a0(a.j,b))&&i0(a.j,b)&&!S3a(a.j,b)){var c;b0(a.ac,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=i0(a.j,b))?c:void 0);a=a0(a.j,b);"entered"!==a.j&&j0(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.B.startRendering(a.layout)}};
T3a=function(a,b,c,d){if($_(a.j,b)){var e=a.ac,f;var h=(null==(f=t3a.get(d))?void 0:f.Iw)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";b0(e,h,b,c);a=a0(a.j,b);"rendering"!==a.j&&j0(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.B.Gg(c,d)}};
Z_=function(a,b,c){if($_(a.j,b)){a:switch(a0(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(a0(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(a0(a.j,b).D=!0,!c))return;if(g0(a0(a.j,b)))a0(a.j,b).D=!0,U3a(a,b,c);else{a:switch(a0(a.j,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)a0(a.j,b).D=!0,$_(a.j,b)&&(NP(a.ac,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=a0(a.j,b),b.C="fill_cancel_requested",b.K.ML());else{c=
i0(a.j,b);(d=a.Da.get().I.W().experiments.sb("h5_enable_layout_unscheduling_events"))&&(c?a.Ph(b,c):wG(Error("Layout is null for LayoutUnscheduled event."),b,c,void 0,!1));NP(a.ac,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=a0(a.j,b),f=b.slotEntryTrigger,h=e.Ba.get(f.triggerId);h&&(h.Dl(f),e.Ba.delete(f.triggerId));f=g.u(b.slotFulfillmentTriggers);for(h=f.next();!h.done;h=f.next()){h=h.value;var l=e.oa.get(h.triggerId);l&&(l.Dl(h),e.oa.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.Dl(h),e.ea.delete(h.triggerId);null!=e.layout&&(f=e.layout,k0(e,f.layoutExitNormalTriggers),k0(e,f.layoutExitSkipTriggers),k0(e,f.layoutExitMuteTriggers),k0(e,f.layoutExitUserInputSubmittedTriggers),k0(e,f.Zc));e.K=void 0;null!=e.u&&(e.u.release(),e.u=void 0);null!=e.B&&(e.B.release(),e.B=void 0);e=a.j;a0(e,b)&&(e=h0(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);NP(a.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
b);a=g.u(a.Jd);for(e=a.next();!e.done;e=a.next())e=e.value,e.Ej(b),c&&!d&&e.Ph(b,c)}}}};
U3a=function(a,b,c){if($_(a.j,b)&&g0(a0(a.j,b))){var d=i0(a.j,b);if(d&&S3a(a.j,b))T3a(a,b,d,c?"error":"abandoned");else{NP(a.ac,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=a0(a.j,b);if(!e)throw new iF("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&&j0(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.u)throw e.j="scheduled",new iF("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");e.u.EG()}catch(f){f instanceof iF&&f.Lk?(Y_(a.ac,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",f.Lk,b),wG(f,b,void 0,void 0,f.Wu)):(Y_(a.ac,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),wG(f,b))}}}};
V3a=function(a){this.slot=a;this.Ba=new Map;this.oa=new Map;this.ea=new Map;this.qa=new Map;this.B=this.layout=this.u=this.K=void 0;this.J=this.D=!1;this.V=[];this.j="not_scheduled";this.C="not_filled"};
g0=function(a){return"enter_requested"===a.j||a.isActive()};
W3a=function(a,b,c,d,e,f){g.G.call(this);this.Ff=a;this.B=b;this.D=c;this.C=d;this.u=e;this.Da=f;this.j=new Map};
h0=function(a,b){return(a=a.j.get(b))?a:new Map};
a0=function(a,b){return h0(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
X3a=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};
$_=function(a,b){return null!=a0(a,b)};
S3a=function(a,b){a=a0(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};
i0=function(a,b){(a=a0(a,b))?null!=a.layout&&!a.layout&&wG("Unexpected empty layout",b):wG("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
$3a=function(a,b,c){if(0==c.length)throw new iF("No "+Y3a.get(b)+" triggers found for slot.",void 0,Z3a(b));c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Ff.Bl.get(d.triggerType))throw new iF("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
Z3a=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"}};
c0=function(a,b,c){c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Ff.Bl.get(d.triggerType))throw new X_("No trigger adapter registered for "+Y3a.get(b)+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
d0=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.Ff.Bl.get(e.triggerType);f.rl(c,e,b.slot,b.layout?b.layout:null);b.qa.set(e.triggerId,f)}};
k0=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.qa.get(c.triggerId);d&&(d.Dl(c),a.qa.delete(c.triggerId))}};
j0=function(a,b,c){wG("Slot stage was "+b+" when calling method "+c,a)};
a4a=function(a){return l0(a.Aw).concat(l0(a.Bl)).concat(l0(a.yq)).concat(l0(a.Pr)).concat(l0(a.Zq))};
l0=function(a){var b=[];a=g.u(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.tj&&b.push(c);return b};
c4a=function(a){g.G.call(this);this.j=a;this.u=b4a(this)};
b4a=function(a){var b=new F3a(function(c,d,e,f){return new W3a(a.j.Ff,c,d,e,f,a.j.Da)},new Set(a4a(a.j.Ff).concat(a.j.listeners)),a.j.ac,a.j.Da);
g.H(a,b);return b};
d4a=function(a){g.G.call(this);var b=this;this.j=a;this.instance=null;g.tb(this,function(){g.qb(b.instance);b.instance=null})};
m0=function(a){return new d4a(a)};
n0=function(a){this.j=a};
o0=function(a,b,c,d){(a=a.j())||wG("Could not initiate a command router instance.");OQ(a,b,c,d)};
p0=function(a){return null!=(null==a?void 0:a.layoutId)&&null!=(null==a?void 0:a.layoutType)};
e4a=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
q0=function(a){return void 0!==a.playerVars&&void 0!==a.pings&&void 0!==a.externalVideoId};
w0=function(a){if(!p0(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.Q(a,f4a);return b?g4a(b):(b=g.Q(a,r0))?q0(b):(b=g.Q(a,s0))?void 0!==b.playerVars:(b=g.Q(a,t0))?void 0!==b.durationMilliseconds:g.Q(a,u0)||g.Q(a,v0)?!0:!1};
g4a=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.Q(b,h4a)});
return 0<a.length&&a.every(w0)};
k4a=function(a){if(!p0(a.adLayoutMetadata))return!1;a=g.Q(a.renderingContent,x0);return g.Q(null==a?void 0:a.sidePanel,i4a)||g.Q(null==a?void 0:a.sidePanel,j4a)?!0:!1};
m4a=function(a){var b=a.adSlotMetadata;if(void 0===(null==b?void 0:b.slotId)||void 0===(null==b?void 0:b.slotType)||!(l4a(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var c;a=null==(c=a.fulfillmentContent)?void 0:c.fulfilledLayout;return(c=g.Q(a,h4a))?w0(c):(c=g.Q(a,y0))?k4a(c):!1};
l4a=function(a){var b;a=g.Q(null==(b=a.fulfillmentContent)?void 0:b.fulfilledLayout,y0);var c;return a&&"LAYOUT_TYPE_PANEL_QR_CODE"===(null==(c=a.adLayoutMetadata)?void 0:c.layoutType)};
n4a=function(a){return null!=a.linearAds&&p0(a.adLayoutMetadata)};
o4a=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
q4a=function(a,b,c,d,e,f,h){b=Era(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof iF?b:p4a(a,d,e,b,c);return a instanceof iF?a:[a]};
s4a=function(a,b,c,d,e){var f=CG(a.fb.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new PE({getAdBreakUrl:d.getAdBreakUrl,VP:0,UP:0}),new bF(!0)];a=b.pauseDurationMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new z0(a.j,f),slotFulfillmentTriggers:[new r4a(a.j)],slotExpirationTriggers:[new A0(a.j,e),new B0(a.j,f)],ib:"core",Ea:new K_(d),adSlotLoggingData:c}:new iF("AdPlacementConfig for Pause Ads is missing pause_duration_ms");return a instanceof iF?a:[a]};
t4a=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
C0=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)};
D0=function(a,b){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
E0=function(a,b){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
A0=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=c||a(this.triggerType)};
F0=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
B0=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
G0=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=c||a(this.triggerType)};
H0=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)};
u4a=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 iF("Invalid layout exit reason: "+
a)}};
v4a=function(a){this.triggerId=a;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
I0=function(a,b,c){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=c||a(this.triggerType)};
J0=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=c||a(this.triggerType)};
z0=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=c||a(this.triggerType)};
K0=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=c||a(this.triggerType)};
L0=function(a,b){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new jF(hF,b,a.id):new iF("Not able to create BeforeContentVideoIdStartedTrigger");else if(a.layoutExitedForReasonTrigger){var c,d;if((null==(c=a.layoutExitedForReasonTrigger)?0:c.triggeringLayoutId)&&(null==(d=a.layoutExitedForReasonTrigger)?0:d.layoutExitReason)){var e=u4a(a.layoutExitedForReasonTrigger.layoutExitReason);a=e instanceof iF?e:new H0(hF,a.layoutExitedForReasonTrigger.triggeringLayoutId,[e],
a.id)}else a=new iF("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger)var f=null!=(e=a.onLayoutSelfExitRequestedTrigger)&&e.triggeringLayoutId?new I0(hF,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new iF("Not able to create OnLayoutSelfExitRequestedTrigger");else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a=a.onNewPlaybackAfterContentVideoIdTrigger?new A0(hF,b,a.id):new iF("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");
else{if(a.skipRequestedTrigger)e=null!=(f=a.skipRequestedTrigger)&&f.triggeringLayoutId?new J0(hF,a.skipRequestedTrigger.triggeringLayoutId,a.id):new iF("Not able to create SkipRequestedTrigger");else if(a.slotIdEnteredTrigger){var h;e=null!=(h=a.slotIdEnteredTrigger)&&h.triggeringSlotId?new F0(hF,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new iF("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var l;e=null!=(l=a.slotIdExitedTrigger)&&l.triggeringSlotId?new B0(hF,a.slotIdExitedTrigger.triggeringSlotId,
a.id):new iF("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var m;e=null!=(m=a.surveySubmittedTrigger)&&m.triggeringLayoutId?new K0(hF,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new iF("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new v4a(a.id):new iF("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var n;e=null!=(n=a.closeRequestedTrigger)&&n.triggeringLayoutId?new G0(hF,a.closeRequestedTrigger.triggeringLayoutId,
a.id):new iF("Not able to create CloseRequestedTrigger")}else if(a.slotIdScheduledTrigger){var p;e=null!=(p=a.slotIdScheduledTrigger)&&p.triggeringSlotId?new z0(hF,a.slotIdScheduledTrigger.triggeringSlotId,a.id):new iF("Not able to create SlotIdScheduledTrigger")}else e=new iF("Not able to convert an AdsControlflowTrigger.");a=e}e=a}a=e}f=a}a=f}return a};
x4a=function(a,b,c,d,e,f,h,l){return null===b?new iF("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[w4a(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new K_([new WD(d),new eE(e)]);n=DG(c.fb.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var t={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",ib:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Yb:new Map,
layoutExitNormalTriggers:[new A0(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:"core",Ea:q,Cc:m(t),adLayoutLoggingData:p}})]};
B4a=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,M0(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return y4a(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.tL);for(var m=h.next(),n={};!m.done;n={Hl:n.Hl},m=h.next())n.Hl=m.value,m=function(p,q){return function(t){return p.Hl.eM(t,q.hs.instreamVideoAdRenderer.elementId,p.Hl.sL)}}(n,l),n.Hl.isContentVideoCompanion?b.push(z4a(c,d,e,l.hs.instreamVideoAdRenderer.elementId,n.Hl.associatedCompositePlayerBytesLayoutId,n.Hl.adSlotLoggingData,m)):1<a.length?b.push(A4a(c,d,e,l.hs.instreamVideoAdRenderer.elementId,n.Hl.adSlotLoggingData,
function(p,q){return function(t){return p.Hl.eM(t,q.hs.instreamVideoAdRenderer.elementId,p.Hl.sL,p.Hl.associatedCompositePlayerBytesLayoutId)}}(n,l))):b.push(A4a(c,d,e,l.hs.instreamVideoAdRenderer.elementId,n.Hl.adSlotLoggingData,m))}return b};
M0=function(a,b,c){if(b=C4a(b)){b=g.u(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=D4a(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.eD=c)}else wG("InstreamVideoAdRenderer without externalVideoId")}};
C4a=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.Q(a.sandwichedLinearAdRenderer.linearAd,r0);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.Q(c,r0)&&b.push(g.Q(c,r0));return b}return null};
y4a=function(a){if(void 0===a.instreamVideoAdRenderer)return wG("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.u(a.tL),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.eM)return!1;if(void 0===c.sL)return wG("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.eD||void 0===c.UF||a.eD!==c.UF&&"AD_PLACEMENT_KIND_SELF_START"!==c.UF)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return wG("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.eD,"matching APSR kind":c.UF}),!1}return!0};
D4a=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,eD:void 0,adVideoId:b,tL:[]});return a.get(b)};
N0=function(a,b,c,d,e,f,h,l,m){e?D4a(a,e).tL.push({Yab:b,UF:c,isContentVideoCompanion:d,sL:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,eM:m}):wG("Companion AdPlacementSupportedRenderer without adVideoId")};
E4a=function(a){var b,c=null==(b=dF(a.Ea,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=dF(a.Ea,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=dF(a.Ea,"metadata_type_content_cpn"),f=dF(a.Ea,"metadata_type_instream_ad_player_overlay_renderer"),h=dF(a.Ea,"metadata_type_player_underlay_renderer"),l=dF(a.Ea,"metadata_type_ad_placement_config"),m=dF(a.Ea,"metadata_type_video_length_seconds");var n=fF(a.Ea,"metadata_type_layout_enter_ms")&&fF(a.Ea,
"metadata_type_layout_exit_ms")?(dF(a.Ea,"metadata_type_layout_exit_ms")-dF(a.Ea,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Sp:d,contentCpn:e,FP:c,uL:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,TH:n,inPlayerLayoutId:dF(a.Ea,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:dF(a.Ea,"metadata_type_linked_in_player_slot_id")}};
H4a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,v,y){d=CG(d,"SLOT_TYPE_PLAYER_BYTES");a=F4a(e,a,h,c,d,m,n);if(a instanceof iF)return a;var A;n=null==(A=dF(a.Ea,"metadata_type_fulfilled_layout"))?void 0:A.layoutId;if(!n)return new iF("Invalid adNotify layout");b=G4a(n,e,f,c,l,b,m,p,q,t,v,y,h);return b instanceof iF?b:[a].concat(g.qa(b))};
G4a=function(a,b,c,d,e,f,h,l,m,n,p,q,t){c=I4a(b,c,d,f,h,l,m,n,p,q,t);if(c instanceof iF)return c;a=J4a(b,a,h,e,c);return a instanceof iF?a:[].concat(g.qa(a.Dg),[a.Cw])};
L4a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,v){b=I4a(a,b,c,e,f,l,m,n,p,q,t,v);if(b instanceof iF)return b;a=K4a(a,c,f,h,d,l.Jc,b);return a instanceof iF?a:a.Dg.concat(a.Cw)};
I4a=function(a,b,c,d,e,f,h,l,m,n,p,q){var t=O0(d,c,n);return t instanceof X_?new iF(t):n.I.W().experiments.sb("html5_refactor_in_player_slot_generation")?function(v){var y=new bP(0,[t.Ro]);v=M4a(b,t.layoutId,t.ao,c,P0(t.playerVars,t.qA,f,m,y),t.Ro,e,y,h(v),l.get(t.ao.externalVideoId),q);y=[];if(t.ao.playerOverlay.instreamAdPlayerOverlayRenderer){var A=E4a(v);if(!A)return wG("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,v),{layout:v,Dg:[]};
y=[N4a(a,A.contentCpn,A.Sp,function(K){return Q0(b,K.slotId,"core",A,O_(p,K))},A.inPlayerSlotId)].concat(g.qa(y));
if(A.instreamAdPlayerUnderlayRenderer&&O4a(n)){var E=A.instreamAdPlayerUnderlayRenderer;y=[P4a(a,A.contentCpn,A.Sp,function(K){return Q4a(b,K.slotId,E,A.adPlacementConfig,A.Sp,O_(p,K))})].concat(g.qa(y))}}return{layout:v,
Dg:y}}:function(v){var y=new bP(0,[t.Ro]);
return{layout:M4a(b,t.layoutId,t.ao,c,P0(t.playerVars,t.qA,f,m,y),t.Ro,e,y,h(v),l.get(t.ao.externalVideoId),q),Dg:[]}}};
O0=function(a,b,c){if(!a.playerVars)return new X_("No playerVars available in InstreamVideoAdRenderer.");var d;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null==(d=a.playerOverlay)?void 0:d.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new X_("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});d=Rz(a.playerVars);var e=Number(d.length_seconds);isNaN(e)&&(e=0,wG("Expected valid length seconds in player vars but got NaN"));
if(c.Gf("AD_PLACEMENT_KIND_START"===b.kind)){if(void 0===a.layoutId)return new X_("Expected server generated layout ID in instreamVideoAdRenderer");b=a.layoutId}else b=a.elementId;return{layoutId:b,ao:a,playerVars:d,qA:a.playerVars,Ro:e}};
P0=function(a,b,c,d,e){a.iv_load_policy=d;b=Rz(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){wG(f)}c.Zi&&(a.ctrl=c.Zi);c.Hj&&(a.ytr=c.Hj);c.kq&&(a.ytrcc=c.kq);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Gk&&(a.vss_credentials_token_type=c.Gk),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.j);a.autoplay="1";return a};
R4a=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};
U4a=function(a,b,c,d,e,f,h,l,m,n){for(var p=[],q=g.u(a),t=q.next();!t.done;t=q.next())if(t=t.value,!l4a(t)){var v="SLOT_TRIGGER_EVENT_BEFORE_CONTENT"===t.adSlotMetadata.triggerEvent,y=m.Gf(v)?new C0(function(S){return EG(n,S)},t.adSlotMetadata.slotId):L0(t.slotEntryTrigger,d);
if(y instanceof iF)return y;for(var A=[],E=g.u(t.slotFulfillmentTriggers),K=E.next();!K.done;K=E.next()){K=L0(K.value,d);if(K instanceof iF)return K;A.push(K)}E=[];var I=g.u(t.slotExpirationTriggers);for(K=I.next();!K.done;K=I.next()){K=L0(K.value,d);if(K instanceof iF)return K;E.push(K)}I=[];c.Jc&&I.push(new XE({}));var F=void 0;K={slotId:t.adSlotMetadata.slotId,slotType:t.adSlotMetadata.slotType,slotPhysicalPosition:null!=(F=t.adSlotMetadata.slotPhysicalPosition)?F:1,ib:"core",slotEntryTrigger:y,
slotFulfillmentTriggers:A,slotExpirationTriggers:E};if(y=g.Q(t.fulfillmentContent.fulfilledLayout,h4a)){if(!w0(y))return new iF("Invalid PlayerBytesAdLayoutRenderer");y=S4a(K,y,b,c,d,e,f,h,l,m,n,a);if(y instanceof iF)return y;I.push(new aF(v));t=Object.assign({},K,{Ea:new K_(I),fulfilledLayout:y.layout,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});p.push.apply(p,g.qa(y.Dg));p.push(t)}else if(v=g.Q(t.fulfillmentContent.fulfilledLayout,y0),A=y=void 0,"LAYOUT_TYPE_PANEL_QR_CODE"!==(null==(y=
v)?void 0:null==(A=y.adLayoutMetadata)?void 0:A.layoutType))if(v){if(!k4a(v))return new iF("Invalid PlayerUnderlayAdLayoutRenderer");v="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE"===v.adLayoutMetadata.layoutType?T4a(v,d,f,K,t.adSlotMetadata.triggerEvent):new iF("LayoutType ["+v.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");if(v instanceof iF)return v;t=Object.assign({},K,{Ea:new K_([]),fulfilledLayout:v,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});p.push(t)}else return new iF("Unable to retrieve a client slot ["+
K.slotType+"] from a given AdSlotRenderer")}return p};
T4a=function(a,b,c,d,e){var f=g.Q(a.renderingContent,x0);if(!f)return new iF("SqueezebackPlayerSidePanelRenderer is missing");f=g.Q(f.sidePanel,j4a);if(!f)return new iF("DismissablePanelTextPortraitImageRenderer is missing");var h={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,ib:"core"};b=V4a(a,b);if(b instanceof iF)return b;var l=[];"SLOT_TRIGGER_EVENT_CONTENT_PAUSED"===e&&l.push(new eE({kind:"AD_PLACEMENT_KIND_PAUSE"}));return Object.assign({},h,{renderingContent:a.renderingContent,
Yb:new Map([["impression",f.impressionPings||[]],["resume",f.resumePings||[]]])},b,{Cc:O_(c,d)(h),Ea:new K_(l)})};
S4a=function(a,b,c,d,e,f,h,l,m,n,p,q){var t=V4a(b,e);if(t instanceof iF)return t;if(g.Q(b.renderingContent,r0)){d=W4a([b],d,l);if(d instanceof iF)return d;if(1!==d.length)return new iF("Only expected one media layout.");a=X4a(a,b,t,d[0],void 0,"core",c,e,f,h,m,q);return a instanceof iF?a:{layout:a,Dg:[]}}var v=g.Q(b.renderingContent,f4a);if(v){if(!p0(b.adLayoutMetadata))return new iF("Invalid ad layout metadata");if(!g4a(v))return new iF("Invalid sequential layout");v=v.sequentialLayouts.map(function(y){return y.playerBytesAdLayoutRenderer});
a=Y4a(a,b.adLayoutMetadata,t,v,c,e,d,l,f,h,m,n,p,q);return a instanceof iF?a:{layout:a.T3,Dg:a.Dg}}return new iF("Not able to convert a sequential layout")};
Y4a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,v){var y=new iE({current:null}),A=W4a(d,h,l);if(A instanceof iF)return A;h=[];l=[];for(var E=void 0,K=0;K<d.length;K++){var I=d[K];if(g.Q(I.renderingContent,r0)){E=X4a(a,I,Z4a,A[K],R0(q)&&S0(q)?A[K+1]:void 0,"adapter",e,f,m,n,p,v);if(E instanceof iF)return E;h.push(E);E=A[K]}else if(g.Q(I.renderingContent,s0)){var F=a,S=n;if(w0(I)){var Y=g.Q(I.renderingContent,s0);if(Y&&void 0!==Y.playerVars){var ia={layoutId:I.adLayoutMetadata.layoutId,layoutType:I.adLayoutMetadata.layoutType,
ib:"adapter"};Y=Rz(Y.playerVars);Y.autoplay="1";I=Object.assign({},ia,Z4a,{renderingContent:I.renderingContent,Ea:new K_([new LE({}),new eE({kind:"AD_PLACEMENT_KIND_START"}),new zE({current:null}),new EE(Y)]),Yb:new Map,Cc:O_(S,F)(ia),adLayoutLoggingData:I.adLayoutMetadata.adLayoutLoggingData})}else I=new iF("Invalid ad intro renderer")}else I=new iF("Invalid PlayerBytesAdLayoutRenderer");if(I instanceof iF)return I;h.push(I)}else if(g.Q(I.renderingContent,t0)){a:{F=I.adLayoutMetadata.layoutId;S=
g.u(e);for(ia=S.next();!ia.done;ia=S.next()){ia=ia.value;var ta=Y=void 0,na=(null==(Y=ia.renderer)?void 0:null==(ta=Y.linearAdSequenceRenderer)?void 0:ta.linearAds)||[];Y=g.u(na);for(ta=Y.next();!ta.done;ta=Y.next())if((ta=g.Q(ta.value,t0))&&void 0!==ta.inPlayerSlotId&&void 0!==ta.inPlayerLayoutId&&void 0!==ta.associatedPlayerBytesLayoutId&&ta.associatedPlayerBytesLayoutId===F){F={AG:ta,adPlacementConfig:ia.config.adPlacementConfig};break a}}F=new iF("Not able to find associated InPlayer slot for endcap")}if(F instanceof
iF)return F;S=void 0;ia=a;Y=n;var ca=F.adPlacementConfig;ta=E;if(w0(I))if((na=g.Q(I.renderingContent,t0))&&void 0!==na.durationMilliseconds){var ha={layoutId:I.adLayoutMetadata.layoutId,layoutType:I.adLayoutMetadata.layoutType,ib:"adapter"};ca=[new TE(na.durationMilliseconds),new WE({impressionCommands:void 0,abandonCommands:na.abandonCommands?[{commandExecutorCommand:na.abandonCommands}]:void 0,completeCommands:na.completionCommands}),new eE(ca)];ta&&(ca.push(new gE(ta.qy.j-1)),ca.push(new JE(ta.qy.j)),
ca.push(new hE(null!=(S=ta.adPodSkipTarget)?S:-1)));I=Object.assign({},ha,Z4a,{renderingContent:I.renderingContent,Ea:new K_(ca),Yb:na.skipPings?new Map([["skip",na.skipPings]]):new Map,Cc:O_(Y,ia)(ha),adLayoutLoggingData:I.adLayoutMetadata.adLayoutLoggingData})}else I=new iF("Invalid endcap renderer");else I=new iF("Invalid PlayerBytesAdLayoutRenderer");if(I instanceof iF)return I;h.push(I);I=$4a(I.layoutId,t,f,F,y,n);if(I instanceof iF)return I;l.push(I)}}b={layoutId:b.layoutId,layoutType:b.layoutType,
ib:"core"};return{T3:Object.assign({},b,c,{LA:h,Yb:new Map,Ea:new K_([y]),Cc:O_(n,a)(b)}),Dg:l}};
X4a=function(a,b,c,d,e,f,h,l,m,n,p,q){if(!w0(b))return new iF("Invalid PlayerBytesAdLayoutRenderer");var t=g.Q(b.renderingContent,r0);(null==t?0:t.pings)?t=eP(t.pings):(t=g.Q(b.renderingContent,t0),t=(null==t?0:t.skipPings)?new Map([["skip",t.skipPings]]):new Map);if(t instanceof iF)return t;f={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,ib:f};var v=b.adLayoutMetadata.layoutId;b:{var y=g.u(h);for(h=y.next();!h.done;h=y.next()){h=h.value;var A=C4a(h.renderer)||[],
E=g.u(A);for(A=E.next();!A.done;A=E.next())if(A=A.value,A.associatedPlayerBytesLayoutId===v){A.associatedPlayerBytesLayoutId?(y=A.playerOverlay,y=void 0!==y&&void 0!==y.instreamAdPlayerOverlayRenderer&&void 0!==y.instreamAdPlayerOverlayRenderer.inPlayerSlotId&&void 0!==y.instreamAdPlayerOverlayRenderer.inPlayerLayoutId):y=!1;h=y?{instreamVideoAdRenderer:A,adPlacementConfig:h.config.adPlacementConfig}:new iF("Invalid InPlayer shim");break b}}h=new iF("Not able to find associated InPlayer slot")}y=
h;if(y instanceof iF)e=y;else if((h=g.Q(b.renderingContent,r0))&&q0(h)){A=y.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;d=[new fE(d.qy),new jE(h.externalVideoId),new lE(l),new mE(y.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer),new WE({impressionCommands:h.impressionCommands,abandonCommands:h.onAbandonCommands,completeCommands:h.completeCommands}),new EE(d.QB),new zE({current:null}),new DE(d.C9.Ro),new wE(A.inPlayerLayoutId),new xE(A.inPlayerSlotId),
new JE(d.qy.j),new ZE(dP(h.pings)),new eE(y.adPlacementConfig)];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&&(y=g.Q(l.fulfillmentContent.fulfilledLayout,y0))&&(y=g.Q(y.renderingContent,x0))&&y.associatedPlayerBytesLayoutId===v){v=l;break b}v=void 0}v&&d.push(new oE(v));e&&d.push(new FE(e.QB));h.adNextParams&&d.push(new YD(h.adNextParams));h.clickthroughEndpoint&&d.push(new ZD(h.clickthroughEndpoint));h.legacyInfoCardVastExtension&&
d.push(new UE(h.legacyInfoCardVastExtension));h.sodarExtensionData&&d.push(new GE(h.sodarExtensionData));(e=m.get(h.externalVideoId))&&d.push(new RE(e));e=new K_(d)}else e=new iF("Invalid vod media renderer");if(e instanceof iF)return e;a=Object.assign({},f,c,{Yb:t,renderingContent:b.renderingContent,Ea:e,Cc:O_(n,a)(f),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData});b=g.Q(b.renderingContent,r0);if(!b||!q0(b))return new iF("Invalid meida renderer");p=D4a(p,b.externalVideoId);p.instreamVideoAdRenderer=
b;p.eD="AD_PLACEMENT_KIND_START";return a};
$4a=function(a,b,c,d,e,f){function h(n){return EG(b,n)}
var l=d.AG.inPlayerSlotId,m={layoutId:d.AG.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",ib:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",slotEntryTrigger:new D0(h,a),slotFulfillmentTriggers:[new F0(h,l)],slotExpirationTriggers:[new B0(h,l),new A0(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new E0(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Yb:new Map,Ea:new K_([new qE(d.AG),new eE(d.adPlacementConfig),
e]),Cc:O_(f,c)(m),adLayoutLoggingData:d.AG.adLayoutLoggingData});return Object.assign({},c,{Ea:new K_([new OE(a)])})};
V4a=function(a,b){for(var c=[],d=g.u(a.layoutExitNormalTriggers||[]),e=d.next();!e.done;e=d.next()){e=L0(e.value,b);if(e instanceof iF)return e;c.push(e)}d=[];var f=g.u(a.layoutExitSkipTriggers||[]);for(e=f.next();!e.done;e=f.next()){e=L0(e.value,b);if(e instanceof iF)return e;d.push(e)}f=[];var h=g.u(a.layoutExitMuteTriggers||[]);for(e=h.next();!e.done;e=h.next()){e=L0(e.value,b);if(e instanceof iF)return e;f.push(e)}h=[];a=g.u(a.layoutExitUserInputSubmittedTriggers||[]);for(e=a.next();!e.done;e=
a.next()){e=L0(e.value,b);if(e instanceof iF)return e;h.push(e)}return{layoutExitNormalTriggers:c,layoutExitSkipTriggers:d,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:h,Zc:[]}};
W4a=function(a,b,c){for(var d=[],e=g.u(a),f=e.next();!f.done;f=e.next())if(f=g.Q(f.value.renderingContent,r0)){if(!q0(f))return new iF("Invalid vod media renderer");d.push(a5a(f))}e=d.map(function(q){return q.Ro});
f=[];for(var h=0,l=0;l<a.length;l++){var m=g.Q(a[l].renderingContent,r0);if(m){var n=new bP(h,e),p=P0(d[h].playerVars,d[h].qA,b,c,n);f[l]={qy:n,adPodSkipTarget:m.adPodSkipTarget,C9:d[h],QB:p};h++}}return f};
a5a=function(a){var b=Rz(a.playerVars),c=Number(b.length_seconds);isNaN(c)&&(c=0,wG("Expected valid length seconds in player vars but got NaN"));return{playerVars:b,qA:a.playerVars,Ro:c}};
c5a=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.Q(b,lP))?void 0:c.surveyAdQuestionCommon)||(null==(d=g.Q(b,kP))?void 0:d.surveyAdQuestionCommon);if(!b5a(e))return!1}return!0};
d5a=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.Q(a.questions[0],lP))?void 0:b.surveyAdQuestionCommon)||(null==(c=g.Q(a.questions[0],kP))?void 0:c.surveyAdQuestionCommon);b=b5a(d)}else b=!1;else b=!1;return b};
b5a=function(a){if(!a)return!1;a=g.Q(a.instreamAdPlayerOverlay,e5a);var b=g.Q(null==a?void 0:a.skipOrPreviewRenderer,T0),c=g.Q(null==a?void 0:a.adInfoRenderer,U0);return(g.Q(null==a?void 0:a.skipOrPreviewRenderer,V0)||b)&&c?!0:!1};
f5a=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.Q(c,lP)||g.Q(c,kP)){var d=void 0;b+=(null==(d=c.surveyAdQuestionCommon)?void 0:d.durationMilliseconds)||0}return b};
g5a=function(a){var b,c,d,e,f=(null==(c=g.Q(null==(b=a.questions)?void 0:b[0],lP))?void 0:c.surveyAdQuestionCommon)||(null==(e=g.Q(null==(d=a.questions)?void 0:d[0],kP))?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.qa((null==(h=a.playbackCommands)?void 0:h.instreamAdCompleteCommands)||[]),g.qa((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,t,v,y,A,E,K,I,F,S,Y,ia,ta,na,ca,ha;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==(t=a.playbackCommands)?void 0:t.rewindCommands,resumeCommands:null==(v=a.playbackCommands)?void 0:v.resumeCommands,skipCommands:null==(y=a.playbackCommands)?void 0:y.skipCommands,progressCommands:null==(A=a.playbackCommands)?void 0:A.progressCommands,hbb:null==
(E=a.playbackCommands)?void 0:E.clickthroughCommands,fullscreenCommands:null==(K=a.playbackCommands)?void 0:K.fullscreenCommands,activeViewViewableCommands:null==(I=a.playbackCommands)?void 0:I.activeViewViewableCommands,activeViewMeasurableCommands:null==(F=a.playbackCommands)?void 0:F.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(S=a.playbackCommands)?void 0:S.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:null==(Y=a.playbackCommands)?
void 0:null==(ia=Y.activeViewTracking)?void 0:ia.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(ta=a.playbackCommands)?void 0:null==(na=ta.activeViewTracking)?void 0:na.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(ca=a.playbackCommands)?void 0:ca.endFullscreenCommands,abandonCommands:null==(ha=a.playbackCommands)?void 0:ha.abandonCommands,completeCommands:b}};
j5a=function(a,b,c,d,e,f,h){return function(l,m){return h5a(a,m.slotId,l,f,function(n,p){n=h(n);return i5a(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new tE(c),d],c.adLayoutLoggingData)})}};
m5a=function(a,b,c,d,e,f,h){if(!k5a(a))return new iF("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[l5a(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=DG(e.fb.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",ib:"core"},q=new E0(e.j,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Yb:new Map,layoutExitNormalTriggers:[q],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:"core",Ea:new K_([new uE(l)]),Cc:n(p)}})]};
k5a=function(a){a=g.Q(null==a?void 0:a.additionalPlayerOverlay,n5a);if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
q5a=function(a,b,c,d,e){var f;if(null==(f=a.playerOverlay)||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!d5a(a))return function(){return new iF("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=f5a(h);return 0>=l?function(){return new iF("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=o5a(m,c,d,function(q){var t=n(q),v=q.slotId;
q=g5a(h);v=DG(e.fb.get(),"LAYOUT_TYPE_SURVEY",v);var y={layoutId:v,layoutType:"LAYOUT_TYPE_SURVEY",ib:"core"},A=new E0(e.j,d),E=new J0(e.j,v),K=new K0(e.j,v),I=new p5a(e.j);return{layoutId:v,layoutType:"LAYOUT_TYPE_SURVEY",Yb:new Map,layoutExitNormalTriggers:[A,I],layoutExitSkipTriggers:[E],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[K],Zc:[],ib:"core",Ea:new K_([new sE(h),new eE(b),new SE(l/1E3),new WE(q)]),Cc:t(y),adLayoutLoggingData:h.adLayoutLoggingData}});
m=m5a(a,c,p.slotId,d,e,m,n);return m instanceof iF?m:[p].concat(g.qa(m))}};
z5a=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(A){A=r5a(A.slotId,c,b,e(A),d,f,h);m=A.H$;return A.f4};
else if(c.renderer.instreamVideoAdRenderer)n=function(A){var E=A.slotId;A=e(A);var K=h,I=c.config.adPlacementConfig,F=s5a(I),S=F.RU,Y=F.UU;F=c.renderer.instreamVideoAdRenderer;var ia;if(null==F?0:null==(ia=F.playerOverlay)?0:ia.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var ta=t5a(F,K);ia=Math.min(S+1E3*ta.videoLengthSeconds,Y);K=new bP(0,[ta.videoLengthSeconds],ia);Y=ta.videoLengthSeconds;var na=ta.playerVars,ca=ta.instreamAdPlayerOverlayRenderer,
ha=ta.adVideoId,Da=u5a(c),fa=ta.Yb;ta=ta.KT;var U=null==F?void 0:F.adLayoutLoggingData;F=null==F?void 0:F.sodarExtensionData;E=DG(b.fb.get(),"LAYOUT_TYPE_MEDIA",E);var Ua={layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA",ib:"core"};return{layoutId:E,layoutType:"LAYOUT_TYPE_MEDIA",Yb:fa,layoutExitNormalTriggers:[new v5a(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:"core",Ea:new K_([new lE(d),new DE(Y),new EE(na),new HE(S),new IE(ia),ca&&new mE(ca),
new eE(I),new jE(ha),new fE(K),new NE(Da),F&&new GE(F),new zE({current:null}),new KE({}),new ZE(ta)].filter(w5a)),Cc:A(Ua),adLayoutLoggingData:U}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=x5a(a,d,c.adSlotLoggingData,n);l.push(p);for(var q=g.u(m),t=q.next();!t.done;t=q.next()){var v=t.value,y=v(a,e);if(y instanceof iF)return y;l.push.apply(l,g.qa(y))}}catch(A){return new iF(A,{errorMessage:A.message,AdPlacementRenderer:c,numberOfSurveyRenderers:y5a(c)})}return l};
y5a=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=g.Q(b,r0))?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0};
r5a=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=s5a(l),n=m.RU,p=m.UU;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==m||!m.length)throw new TypeError("Expected linear ads");var q=[],t={CZ:n,DZ:0,E$:q};m=m.map(function(y){return A5a(a,y,t,c,d,l,e,p,h)}).map(function(y,A){A=new bP(A,q,p);
return y(A)});
var v=m.map(function(y){return y.g4});
return{f4:B5a(c,a,n,v,l,u5a(b),d,p,f),H$:m.map(function(y){return y.G$})}};
A5a=function(a,b,c,d,e,f,h,l,m){var n=t5a(g.Q(b,r0),m),p=c.CZ,q=c.DZ,t=Math.min(p+1E3*n.videoLengthSeconds,l);c.CZ=t;c.DZ++;c.E$.push(n.videoLengthSeconds);var v,y,A=null==(v=g.Q(b,r0))?void 0:null==(y=v.playerOverlay)?void 0:y.instreamSurveyAdRenderer;if("nPpU29QrbiU"===n.adVideoId&&null==A)throw new TypeError("Survey slate media has no survey overlay");return function(E){var K=n.playerVars;2<=E.u&&(K.slot_pos=E.j);K.autoplay="1";var I,F;K=n.videoLengthSeconds;var S=n.playerVars,Y=n.Yb,ia=n.KT,ta=
n.instreamAdPlayerOverlayRenderer,na=n.adVideoId,ca=null==(I=g.Q(b,r0))?void 0:I.adLayoutLoggingData;I=null==(F=g.Q(b,r0))?void 0:F.sodarExtensionData;F=DG(d.fb.get(),"LAYOUT_TYPE_MEDIA",a);var ha={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA",ib:"adapter"};E={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA",Yb:Y,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:"adapter",Ea:new K_([new lE(h),new DE(K),new EE(S),new HE(p),new IE(t),
new JE(q),new zE({current:null}),ta&&new mE(ta),new eE(f),new jE(na),new fE(E),I&&new GE(I),A&&new YE(A),new KE({}),new ZE(ia)].filter(w5a)),Cc:e(ha),adLayoutLoggingData:ca};K=q5a(g.Q(b,r0),f,h,E.layoutId,d);return{g4:E,G$:K}}};
t5a=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=Rz(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=C5a[f])?h:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,adVideoId:f,Yb:a.pings?eP(a.pings):new Map,KT:dP(a.pings)}};
u5a=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
s5a=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{RU:b,UU:a}};
E5a=function(a,b,c,d,e,f,h){var l=c.pings;return l?[D5a(a,f,e,function(m){var n=m.slotId;m=h(m);var p=c.adLayoutLoggingData;n=DG(b.fb.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",ib:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Yb:eP(l),layoutExitNormalTriggers:[new A0(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:"core",Ea:new K_([new eE(d)]),
Cc:m(q),adLayoutLoggingData:p}})]:new iF("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})};
G5a=function(a,b,c,d,e,f,h,l){a=F5a(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=DG(b.fb.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",ib:"core"},q=new Map,t=e.impressionUrls;t&&q.set("impression",t);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Yb:q,layoutExitNormalTriggers:[new I0(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:"core",Ea:new K_([new ME(e),new eE(c)]),Cc:m(p)}});
return a instanceof iF?a:[a]};
L5a=function(a,b,c,d,e,f,h,l){a=H5a(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=DG(b.fb.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=I5a(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,J5a(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=DG(b.fb.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=I5a(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,J5a(b,n,p))):q.imageOverlayAdContentRenderer?(q=DG(b.fb.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=J5a(b,n,p),n.push(new K5a(b.j,q)),n=I5a(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new X_("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new X_("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof iF?a:[a]};
O5a=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new iF("Expected valid duration for AdActionInterstitialRenderer."):function(p){return M5a(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 N5a(a,q,e,function(t,v){var y=t.slotId;t=h(t);y=DG(b.fb.get(),"LAYOUT_TYPE_ENDCAP",
y);return i5a(b,y,v,c,t,"LAYOUT_TYPE_ENDCAP",[new qE(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
P5a=function(a,b,c,d){if(!c.playerVars)return new iF("No playerVars available in AdIntroRenderer.");var e=Rz(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=DG(a.fb.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",ib:"adapter"};return{Ck:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Yb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:"adapter",Ea:new K_([new LE({}),
new eE(b),new zE({current:null}),new EE(e)]),Cc:f(l)},Ul:[new H0(a.j,h,["error"])],Uj:[],Ly:[],Ky:[]}}};
R5a=function(a,b,c,d,e,f,h,l,m,n){n=void 0===n?!1:n;var p=f5a(e);if(!c5a(e,n))return new iF("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=p)return new iF("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=j5a(a,b,e,f,c,d,h);return q instanceof iF?q:function(t){return Q5a(b,t.slotId,c,p,g5a(e),h(t),q,l,m)}};
S5a=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.Q(a.ctaButton,g.pO)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.Q(a.backgroundImage,W0)&&(null==(b=g.Q(a.backgroundImage,W0))?0:b.landscape)?!0:!1};
U5a=function(a,b,c,d,e,f,h,l){function m(q){return N5a(a,q,d,n)}
function n(q,t){var v=q.slotId;q=h(q);v=DG(b.fb.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",v);return i5a(b,v,t,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new rE(e),f],e.adLayoutLoggingData)}
if(!S5a(e))return new iF("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},v=h(q);q=T5a(b,q.slotId,c,p,t,new Map,v,m);t=new wE(q.AI);v=new gE(l);return{Ck:{layoutId:q.layoutId,layoutType:q.layoutType,Yb:q.Yb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],
Zc:[],ib:q.ib,Ea:new K_([].concat(g.qa(q.Iy),[t,v])),Cc:q.Cc,adLayoutLoggingData:q.adLayoutLoggingData},Ul:[],Uj:q.layoutExitMuteTriggers,Ly:q.layoutExitUserInputSubmittedTriggers,Ky:q.Zc,Rg:q.Rg}}};
W5a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,v,y,A){a=CG(a,"SLOT_TYPE_PLAYER_BYTES");d=F4a(b,h,d,e,a,n,p);if(d instanceof iF)return d;var E;h=null==(E=dF(d.Ea,"metadata_type_fulfilled_layout"))?void 0:E.layoutId;if(!h)return new iF("Invalid adNotify layout");b=V5a(h,b,c,e,f,m,l,n,q,t,v,y,A);return b instanceof iF?b:[d].concat(g.qa(b))};
V5a=function(a,b,c,d,e,f,h,l,m,n,p,q,t){c=X5a(b,c,d,f,h,l,m,n,p,q,t);Y5a(f)?(d=Z5a(b,a),a=CG(b.fb.get(),"SLOT_TYPE_IN_PLAYER"),f=DG(b.fb.get(),"LAYOUT_TYPE_SURVEY",a),l=$5a(b,d,l),b=[].concat(g.qa(l.slotExpirationTriggers),[new G0(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,ib:l.ib},{slotId:a,layoutId:f}),e=a instanceof iF?a:{Cw:Object.assign({},
l,{slotExpirationTriggers:b,Ea:new K_([new OE(a.layout)]),adSlotLoggingData:e}),Dg:a.Dg}):e=J4a(b,a,l,e,c);return e instanceof iF?e:[].concat(g.qa(e.Dg),[e.Cw])};
d6a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,v){b=X5a(a,b,c,e,f,h,m,n,p,q,t,v);Y5a(e)?(e=a6a(a,c,h,l),e instanceof iF?a=e:(l=CG(a.fb.get(),"SLOT_TYPE_IN_PLAYER"),m=DG(a.fb.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.qa(e.slotExpirationTriggers),[new G0(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,ib:e.ib,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof iF?
l:{Cw:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:b6a(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:c6a(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,ib:e.ib,Ea:new K_([new aF(X0(c)),new OE(l.layout)]),adSlotLoggingData:d},Dg:l.Dg})):a=K4a(a,c,h,l,d,m.Jc,b);return a instanceof iF?a:a.Dg.concat(a.Cw)};
Y5a=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(g.Q(b.value,u0))return!0;return!1};
X5a=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(t,v){if(R0(p)&&S0(p))a:{var y=e6a(d,c,p);if(y instanceof iF)v=y;else{for(var A=0,E=[],K=[],I=[],F=[],S=[],Y=[],ia=new AE({current:null}),ta=new iE({current:null}),na=!1,ca=[],ha=0,Da=[],fa=0;fa<d.length;fa++){var U=d[fa],Ua=g.Q(U,r0);if(Ua){Ua=O0(Ua,c,p);if(Ua instanceof X_){v=new iF(Ua);break a}var r=new bP(ha,y),V=P0(Ua.playerVars,Ua.qA,h,n,r);ha++;Da[fa]={renderer:U,data:Ua,qy:r,QB:V}}}ha=-1;for(y=0;y<d.length;y++)if(fa=d[y],U=g.Q(fa,s0)){fa=
P5a(b,c,U,l);if(fa instanceof iF){v=fa;break a}fa=fa(t);E.push(fa.Ck);K=[].concat(g.qa(fa.Ul),g.qa(K));I=[].concat(g.qa(fa.Uj),g.qa(I));fa.Rg&&(ca=[fa.Rg].concat(g.qa(ca)))}else if(g.Q(fa,r0))U=Da[y],ha=U.data,fa=U.qy,U=U.QB,Ua=Da[y+1],r=void 0,Ua&&(r=Ua.QB),fa=f6a(b,ha.layoutId,ha.ao,c,U,ha.Ro,f,fa,l(t),ta,m.get(ha.ao.externalVideoId),r,q),A++,E.push(fa.Ck),K=[].concat(g.qa(fa.Ul),g.qa(K)),I=[].concat(g.qa(fa.Uj),g.qa(I)),na||(Y.push(ta),na=!0),ha=(ha=ha.ao.adPodSkipTarget)&&0<ha?ha:-1;else if(U=
g.Q(fa,t0)){fa=O5a(a,b,c,U,f,A,l,ta,ha);if(fa instanceof iF){v=fa;break a}fa=fa(t);E.push(fa.Ck);K=[].concat(g.qa(fa.Ul),g.qa(K));I=[].concat(g.qa(fa.Uj),g.qa(I));fa.Rg&&(ca=[fa.Rg].concat(g.qa(ca)))}else if(U=g.Q(fa,u0)){if(void 0===v){v=new iF("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:U});break a}fa=R5a(a,b,c,f,U,ia,l,v,A,Y0(p,"supports_multi_step_on_desktop"));if(fa instanceof iF){v=fa;break a}fa=fa(t);E.push(fa.Ck);fa.Rg&&ca.push(fa.Rg);
K=[].concat(g.qa(fa.Ul),g.qa(K));I=[].concat(g.qa(fa.Uj),g.qa(I));F=[].concat(g.qa(fa.Ly),g.qa(F));S=[].concat(g.qa(fa.Ky),g.qa(S));Y=[ia].concat(g.qa(Y))}else if(fa=g.Q(fa,v0)){fa=U5a(a,b,c,f,fa,ia,l,A);if(fa instanceof iF){v=fa;break a}fa=fa(t);E.push(fa.Ck);fa.Rg&&ca.push(fa.Rg);I=[].concat(g.qa(fa.Uj),g.qa(I))}else{v=new iF("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}v={LA:E,layoutExitSkipTriggers:K,layoutExitUserInputSubmittedTriggers:F,Zc:S,layoutExitMuteTriggers:I,Iy:Y,
Dg:ca}}}else a:if(A=e6a(d,c,p),A instanceof iF)v=A;else{E=0;K=[];I=[];F=[];S=[];Y=[];ia=[];ta=new AE({current:null});na=new iE({current:null});ca=!1;Da=[];ha=-1;y=g.u(d);for(fa=y.next();!fa.done;fa=y.next())if(fa=fa.value,g.Q(fa,s0)){fa=P5a(b,c,g.Q(fa,s0),l);if(fa instanceof iF){v=fa;break a}fa=fa(t);K.push(fa.Ck);I=[].concat(g.qa(fa.Ul),g.qa(I));F=[].concat(g.qa(fa.Uj),g.qa(F));fa.Rg&&(Da=[fa.Rg].concat(g.qa(Da)))}else if(g.Q(fa,r0)){ha=O0(g.Q(fa,r0),c,p);if(ha instanceof X_){v=new iF(ha);break a}fa=
new bP(E,A);fa=f6a(b,ha.layoutId,ha.ao,c,P0(ha.playerVars,ha.qA,h,n,fa),ha.Ro,f,fa,l(t),na,m.get(ha.ao.externalVideoId),void 0,q);E++;K.push(fa.Ck);I=[].concat(g.qa(fa.Ul),g.qa(I));F=[].concat(g.qa(fa.Uj),g.qa(F));ca||(ia.push(na),ca=!0);ha=(ha=ha.ao.adPodSkipTarget)&&0<ha?ha:-1}else if(g.Q(fa,t0)){fa=O5a(a,b,c,g.Q(fa,t0),f,E,l,na,ha);if(fa instanceof iF){v=fa;break a}fa=fa(t);K.push(fa.Ck);I=[].concat(g.qa(fa.Ul),g.qa(I));F=[].concat(g.qa(fa.Uj),g.qa(F));fa.Rg&&(Da=[fa.Rg].concat(g.qa(Da)))}else if(g.Q(fa,
u0)){if(void 0===v){v=new iF("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.Q(fa,u0)});break a}fa=R5a(a,b,c,f,g.Q(fa,u0),ta,l,v,E,Y0(p,"supports_multi_step_on_desktop"));if(fa instanceof iF){v=fa;break a}fa=fa(t);K.push(fa.Ck);fa.Rg&&Da.push(fa.Rg);I=[].concat(g.qa(fa.Ul),g.qa(I));F=[].concat(g.qa(fa.Uj),g.qa(F));S=[].concat(g.qa(fa.Ly),g.qa(S));Y=[].concat(g.qa(fa.Ky),g.qa(Y));ia=[ta].concat(g.qa(ia))}else if(g.Q(fa,v0)){fa=U5a(a,b,c,f,g.Q(fa,
v0),ta,l,E);if(fa instanceof iF){v=fa;break a}fa=fa(t);K.push(fa.Ck);fa.Rg&&Da.push(fa.Rg);F=[].concat(g.qa(fa.Uj),g.qa(F))}else{v=new iF("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}v={LA:K,layoutExitSkipTriggers:I,layoutExitUserInputSubmittedTriggers:S,Zc:Y,layoutExitMuteTriggers:F,Iy:ia,Dg:Da}}v instanceof iF?t=v:(Y=t.slotId,A=v.LA,E=v.layoutExitSkipTriggers,K=v.layoutExitMuteTriggers,I=v.layoutExitUserInputSubmittedTriggers,F=v.Iy,t=l(t),S=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",
Y=e?e.layoutId:DG(b.fb.get(),S,Y),ia={layoutId:Y,layoutType:S,ib:"core"},t={layout:{layoutId:Y,layoutType:S,Yb:new Map,layoutExitNormalTriggers:[new I0(b.j,Y)],layoutExitSkipTriggers:E,layoutExitMuteTriggers:K,layoutExitUserInputSubmittedTriggers:I,Zc:[],ib:"core",Ea:new K_([new BE(A)].concat(g.qa(F))),Cc:t(ia)},Dg:v.Dg});return t}};
e6a=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.Q(e,r0)){e=O0(g.Q(e,r0),b,c);if(e instanceof X_)return new iF(e);d.push(e.Ro)}return d};
h6a=function(a,b,c,d,e,f,h,l){if(!c5a(c,void 0===l?!1:l))return new iF("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=f5a(c);if(0>=m)return new iF("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new AE({current:null}),p=j5a(a,b,c,n,d,f,h);return g6a(a,d,f,m,e,function(q,t){var v=q.slotId,y=g5a(c);q=h(q);v=DG(b.fb.get(),"LAYOUT_TYPE_MEDIA_BREAK",v);var A={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",
ib:"core"},E=p(v,t);dF(E.Ea,"metadata_type_fulfilled_layout")||wG("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");y=[new eE(d),new TE(m),new WE(y),n];return{m6:{layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Yb:new Map,layoutExitNormalTriggers:[new I0(b.j,v)],layoutExitSkipTriggers:[new J0(b.j,t.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new K0(b.j,t.layoutId)],Zc:[],ib:"core",Ea:new K_(y),Cc:q(A)},
G5:E}})};
i6a=function(a){if(!o4a(a))return!1;var b=g.Q(a.adVideoStart,Z0);return b?g.Q(a.linearAd,r0)&&JP(b)?!0:(wG("Invalid Sandwich with notify"),!1):!1};
j6a=function(a){if(null==a.linearAds)return!1;a=g.Q(a.adStart,Z0);return a?JP(a)?!0:(wG("Invalid LASR with notify"),!1):!1};
k6a=function(a){if(!n4a(a))return!1;a=g.Q(a.adStart,Z0);return a?JP(a)?!0:(wG("Invalid LASR with notify"),!1):!1};
$0=function(a,b,c,d,e,f,h,l){this.fb=a;this.Rb=b;this.Jb=c;this.Da=d;this.Sb=e;this.j=f;this.Wj=h;this.loadPolicy=void 0===l?1:l};
Xpa=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(e4a);var p=c.filter(m4a),q=d.filter(e4a),t=new Map,v=R4a(b),y=c.some(function(fa){var U;return"SLOT_TYPE_PLAYER_BYTES"===(null==fa?void 0:null==(U=fa.adSlotMetadata)?void 0:U.slotType)});
c=c.some(function(fa){var U;return"SLOT_TYPE_PLAYER_UNDERLAY"===(null==fa?void 0:null==(U=fa.adSlotMetadata)?void 0:U.slotType)});
if(y||c)c=U4a(p,b,l,e,v,a.Sb.get(),a.loadPolicy,t,a.Da.get(),a.fb.get()),c instanceof iF?wG(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.qa(c));c=g.u(b);for(var A=c.next();!A.done;A=c.next()){A=A.value;var E=l6a(a,t,A,e,f,h,y,l,v,m,p);E instanceof iF?wG(E,void 0,void 0,{renderer:A.renderer,config:A.config.adPlacementConfig,kind:A.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.qa(E))}m6a(a.Da.get())||(f=n6a(a,q,e,l,v,t),n.push.apply(n,g.qa(f)));if(null===a.j||h&&!l.DU){var K,
I,F;a=l.Jc&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(K=b[0].config)?void 0:null==(I=K.adPlacementConfig)?void 0:I.kind)&&(null==(F=b[0].renderer)?void 0:F.adBreakServiceRenderer);if(!n.length&&!a){var S,Y,ia,ta;wG("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":null==(S=b[0])?void 0:null==(Y=S.config)?void 0:null==(ia=Y.adPlacementConfig)?void 0:ia.kind,renderer:null==(ta=b[0])?void 0:
ta.renderer})}return n}K=d.filter(e4a);n.push.apply(n,g.qa(B4a(t,K,a.Rb.get(),a.j,e,y)));if(!n.length){var na,ca,ha,Da;wG("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":null==(na=b[0])?void 0:null==(ca=na.config)?void 0:null==(ha=ca.adPlacementConfig)?void 0:ha.kind,renderer:null==(Da=b[0])?void 0:Da.renderer})}return n};
n6a=function(a,b,c,d,e,f){function h(t){return O_(a.Sb.get(),t)}
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&&i6a(p)?(wG("Found AdNotify with SandwichedLinearAdRenderer"),q=g.Q(p.adVideoStart,Z0),p=g.Q(p.linearAd,r0),M0(f,n,m.config.adPlacementConfig.kind),n=void 0,q=G4a(null==(n=q)?void 0:n.layout.layoutId,a.Rb.get(),a.Jb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Da.get(),a.Sb.get()),q instanceof iF?wG(q):l.push.apply(l,g.qa(q))):
q&&(!q.adLayoutMetadata&&j6a(q)||q.adLayoutMetadata&&k6a(q))&&(wG("Found AdNotify with LinearAdSequenceRenderer"),M0(f,n,m.config.adPlacementConfig.kind),n=void 0,p=V5a(null==(n=g.Q(q.adStart,Z0))?void 0:n.layout.layoutId,a.Rb.get(),a.Jb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,p0(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Da.get()),p instanceof iF?wG(p):l.push.apply(l,g.qa(p)))}return l};
l6a=function(a,b,c,d,e,f,h,l,m,n,p){function q(K){return O_(a.Sb.get(),K)}
var t=c.renderer,v=c.config.adPlacementConfig,y=v.kind,A=c.adSlotLoggingData,E=l.DU&&"AD_PLACEMENT_KIND_START"===y;E=f&&!E;if(null!=t.adsEngagementPanelRenderer)return N0(b,c.elementId,y,t.adsEngagementPanelRenderer.isContentVideoEngagementPanel,t.adsEngagementPanelRenderer.adVideoId,t.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,v,A,function(K,I,F,S){var Y=a.Jb.get(),ia=t.adsEngagementPanelRenderer,ta=O_(a.Sb.get(),K);return a1(Y,K.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new XD(ia),I,F,ia.impressionPings,ta,t.adsEngagementPanelRenderer.adLayoutLoggingData,S)}),[];
if(null!=t.actionCompanionAdRenderer){if(t.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return x4a(a.Rb.get(),a.j,a.Jb.get(),t.actionCompanionAdRenderer,v,A,d,q);N0(b,c.elementId,y,t.actionCompanionAdRenderer.isContentVideoCompanion,t.actionCompanionAdRenderer.adVideoId,t.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,v,A,function(K,I,F,S){var Y=a.Jb.get(),ia=t.actionCompanionAdRenderer,ta=O_(a.Sb.get(),K);return a1(Y,K.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new WD(ia),I,F,ia.impressionPings,ta,t.actionCompanionAdRenderer.adLayoutLoggingData,S)})}else if(t.imageCompanionAdRenderer)N0(b,c.elementId,y,t.imageCompanionAdRenderer.isContentVideoCompanion,t.imageCompanionAdRenderer.adVideoId,t.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,v,A,function(K,I,F,S){var Y=a.Jb.get(),ia=t.imageCompanionAdRenderer,ta=O_(a.Sb.get(),K);
return a1(Y,K.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new aE(ia),I,F,ia.impressionPings,ta,t.imageCompanionAdRenderer.adLayoutLoggingData,S)});
else if(t.shoppingCompanionCarouselRenderer)N0(b,c.elementId,y,t.shoppingCompanionCarouselRenderer.isContentVideoCompanion,t.shoppingCompanionCarouselRenderer.adVideoId,t.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,v,A,function(K,I,F,S){var Y=a.Jb.get(),ia=t.shoppingCompanionCarouselRenderer,ta=O_(a.Sb.get(),K);return a1(Y,K.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new bE(ia),I,F,ia.impressionPings,ta,t.shoppingCompanionCarouselRenderer.adLayoutLoggingData,S)});
else if(t.adBreakServiceRenderer){if(!t4a(c))return[];if("AD_PLACEMENT_KIND_PAUSE"===y)return s4a(a.Rb.get(),v,A,c.renderer.adBreakServiceRenderer,d);if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==y)return q4a(a.Rb.get(),v,A,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Wj)return new iF("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.Jc||wG("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:y,adPlacementConfig:v,
daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.Jc),clientPlaybackNonce:l.clientPlaybackNonce});o6a(a.Wj,{adPlacementRenderer:c,contentCpn:d,vU:e})}else{if(t.clientForecastingAdRenderer)return G5a(a.Rb.get(),a.Jb.get(),v,A,t.clientForecastingAdRenderer,d,e,q);if(t.invideoOverlayAdRenderer)return L5a(a.Rb.get(),a.Jb.get(),v,A,t.invideoOverlayAdRenderer,d,e,q);if((t.linearAdSequenceRenderer||t.instreamVideoAdRenderer)&&E)return z5a(a.Rb.get(),a.Jb.get(),c,d,q,n,!a.Da.get().I.W().N("html5_override_ad_video_length_killswitch"));
if(t.linearAdSequenceRenderer&&!E){if(h)return[];M0(b,t,y);if(t.linearAdSequenceRenderer.adLayoutMetadata){if(!n4a(t.linearAdSequenceRenderer))return new iF("Received invalid LinearAdSequenceRenderer.")}else if(null==t.linearAdSequenceRenderer.linearAds)return new iF("Received invalid LinearAdSequenceRenderer.");if(g.Q(t.linearAdSequenceRenderer.adStart,Z0)){wG("Found AdNotify in LinearAdSequenceRenderer");b=g.Q(t.linearAdSequenceRenderer.adStart,Z0);if(!RAa(b))return new iF("Invalid AdMessageRenderer.");
c=t.linearAdSequenceRenderer.linearAds;return W5a(a.fb.get(),a.Rb.get(),a.Jb.get(),a.Sb.get(),v,A,b,p0(t.linearAdSequenceRenderer.adLayoutMetadata)?t.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,l,q,m,a.loadPolicy,a.Da.get())}return d6a(a.Rb.get(),a.Jb.get(),v,A,t.linearAdSequenceRenderer.linearAds,p0(t.linearAdSequenceRenderer.adLayoutMetadata)?t.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,l,q,m,a.loadPolicy,a.Da.get(),p)}if(!t.remoteSlotsRenderer||f){if(t.instreamVideoAdRenderer&&
!E){if(h)return[];M0(b,t,y);return L4a(a.Rb.get(),a.Jb.get(),v,A,t.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.Da.get(),a.Sb.get(),p)}if(t.instreamSurveyAdRenderer)return h6a(a.Rb.get(),a.Jb.get(),t.instreamSurveyAdRenderer,v,A,d,q,Y0(a.Da.get(),"supports_multi_step_on_desktop"));if(null!=t.sandwichedLinearAdRenderer)return o4a(t.sandwichedLinearAdRenderer)?g.Q(t.sandwichedLinearAdRenderer.adVideoStart,Z0)?(wG("Found AdNotify in SandwichedLinearAdRenderer"),b=g.Q(t.sandwichedLinearAdRenderer.adVideoStart,
Z0),RAa(b)?(c=g.Q(t.sandwichedLinearAdRenderer.linearAd,r0))?H4a(b,c,v,a.fb.get(),a.Rb.get(),a.Jb.get(),a.Sb.get(),A,d,e,l,q,m,a.loadPolicy,a.Da.get()):new iF("Missing IVAR from Sandwich"):new iF("Invalid AdMessageRenderer.")):d6a(a.Rb.get(),a.Jb.get(),v,A,[t.sandwichedLinearAdRenderer.adVideoStart,t.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.Da.get()):new iF("Received invalid SandwichedLinearAdRenderer.");if(null!=t.videoAdTrackingRenderer)return E5a(a.Rb.get(),a.Jb.get(),
t.videoAdTrackingRenderer,v,A,d,q)}}return[]};
b1=function(a){g.G.call(this);this.j=a};
eF=function(a,b,c,d){a.j().Xi(b,d);c=c();a=a.j();a.ac.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;NP(d.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);NP(d.ac,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.ec(c.slotId))throw new iF("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(a0(e,c))throw new iF("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.Ff.yq.has(c.slotType))throw new iF("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.Ff.Pr.has(c.slotType))throw new iF("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");$3a(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);$3a(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
c.slotFulfillmentTriggers);$3a(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=h0(f,h);if(a0(f,c))throw new iF("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new V3a(c));f.j.set(h,l)}catch(na){na instanceof iF&&na.Lk?(Y_(d.ac,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",na.Lk,c),wG(na,c,void 0,void 0,na.Wu)):(Y_(d.ac,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
c),wG(na,c));break a}a0(d.j,c).J=!0;try{var m=d.j,n=a0(m,c),p=c.slotEntryTrigger,q=m.Ff.Bl.get(p.triggerType);q&&(q.rl("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Ba.set(p.triggerId,q));for(var t=g.u(c.slotFulfillmentTriggers),v=t.next();!v.done;v=t.next()){var y=v.value,A=m.Ff.Bl.get(y.triggerType);A&&(A.rl("TRIGGER_CATEGORY_SLOT_FULFILLMENT",y,c,null),n.oa.set(y.triggerId,A))}for(var E=g.u(c.slotExpirationTriggers),K=E.next();!K.done;K=E.next()){var I=K.value,F=m.Ff.Bl.get(I.triggerType);F&&(F.rl("TRIGGER_CATEGORY_SLOT_EXPIRATION",
I,c,null),n.ea.set(I.triggerId,F))}var S=m.Ff.yq.get(c.slotType).get().Jf(m.B,c);n.K=S;var Y=m.Ff.Pr.get(c.slotType).get().Jf(m.D,c);Y.init();n.u=Y}catch(na){na instanceof iF&&na.Lk?(Y_(d.ac,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",na.Lk,c),wG(na,c,void 0,void 0,na.Wu)):(Y_(d.ac,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),wG(na,c));Z_(d,c,!0);break a}NP(d.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.wi(c);for(var ia=g.u(d.Jd),ta=ia.next();!ta.done;ta=
ia.next())ta.value.wi(c);H3a(d,c)}};
c1=function(a,b,c,d){this.Yr=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
d1=function(a,b,c,d){g.G.call(this);var e=this;this.Tb=a;this.Rb=b;this.zc=c;this.j=new Map;d.get().addListener(this);g.tb(this,function(){d.isDisposed()||d.get().removeListener(e)})};
Vpa=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 c1?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):wG("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new kr(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.zc.get().addCueRange(d,c.start,c.end,!1,a)};
e1=function(){g.G.apply(this,arguments);this.tj=!0;this.xl=new Map;this.j=new Map};
p6a=function(a,b){a=g.u(a.xl.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
q6a=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}wG("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.ec(b)),layoutId:b})};
v5a=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
r6a=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)};
s6a=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)};
t6a=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)};
p5a=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
u6a=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)};
f1=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
v6a=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)};
K5a=function(a,b){this.durationMs=45E3;this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
w6a=function(a){var b=[new vE(a.Sp),new mE(a.instreamAdPlayerOverlayRenderer),new yE(a.FP),new eE(a.adPlacementConfig),new DE(a.videoLengthSeconds),new SE(a.TH)];a.uL&&b.push(new iE(a.uL));return b};
x6a=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:DG(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",ib:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Yb:new Map,layoutExitNormalTriggers:[new E0(function(l){return EG(f,l)},c.Sp)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:b,Ea:d,Cc:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
g1=function(a,b){var c=this;this.fb=a;this.Da=b;this.j=function(d){return EG(c.fb.get(),d)}};
Q4a=function(a,b,c,d,e,f){c=new K_([new nE(c),new eE(d)]);b=DG(a.fb.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",ib:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Yb:new Map,layoutExitNormalTriggers:[new E0(function(h){return EG(a.fb.get(),h)},e)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:"core",Ea:c,Cc:f(d),adLayoutLoggingData:void 0}};
Q0=function(a,b,c,d,e){var f=w6a(d);return x6a(b,c,d,new K_(f),e,a.fb.get())};
y6a=function(a,b,c,d,e){var f=w6a(d);f.push(new cE(d.o3));f.push(new dE(d.q3));return x6a(b,c,d,new K_(f),e,a.fb.get())};
a1=function(a,b,c,d,e,f,h,l,m,n){b=DG(a.fb.get(),c,b);var p={layoutId:b,layoutType:c,ib:"core"},q=new Map;h&&q.set("impression",h);h=[new r6a(a.j,e)];n&&h.push(new H0(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Yb:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:"core",Ea:new K_([d,new eE(f),new vE(e)]),Cc:l(p),adLayoutLoggingData:m}};
J5a=function(a,b,c){var d=[];d.push(new s6a(a.j,c));b&&d.push(b);return d};
I5a=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,ib:"core"};return{layoutId:b,layoutType:c,Yb:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new G0(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:"core",Ea:new K_([new $D(d),new eE(e)]),Cc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
i5a=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,ib:"core"};return{layoutId:b,layoutType:f,Yb:new Map,layoutExitNormalTriggers:[new E0(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:"core",Ea:new K_([new eE(d)].concat(g.qa(h))),Cc:e(m),adLayoutLoggingData:l}};
M5a=function(a,b,c,d,e,f,h,l,m,n,p,q,t){var v;a.Da.get().Gf("AD_PLACEMENT_KIND_START"===c.kind)&&(void 0===d.layoutId?wG("Expected layout ID in adActionInterstitialRenderer"):v=d.layoutId);a=T5a(a,b,c,e,f,h,l,m,q,v,t);b=a.Iy;c=new wE(a.AI);d=a.layoutExitSkipTriggers;0<n&&(b.push(c),b.push(new hE(n)),d=[]);b.push(new gE(p));return{Ck:{layoutId:a.layoutId,layoutType:a.layoutType,Yb:a.Yb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],
Zc:[],ib:a.ib,Ea:new K_(b),Cc:a.Cc,adLayoutLoggingData:a.adLayoutLoggingData},Ul:d,Uj:a.layoutExitMuteTriggers,Ly:a.layoutExitUserInputSubmittedTriggers,Ky:a.Zc,Rg:a.Rg}};
Q5a=function(a,b,c,d,e,f,h,l,m){b=T5a(a,b,c,d,e,new Map,f,function(n){return h(n,l)});
a=new K0(a.j,b.AI);c=new wE(b.AI);m=new gE(m);return{Ck:{layoutId:b.layoutId,layoutType:b.layoutType,Yb:b.Yb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:b.ib,Ea:new K_([].concat(g.qa(b.Iy),[c,m])),Cc:b.Cc,adLayoutLoggingData:b.adLayoutLoggingData},Ul:b.layoutExitSkipTriggers,Uj:b.layoutExitMuteTriggers,Ly:[].concat(g.qa(b.layoutExitUserInputSubmittedTriggers),[a]),Ky:b.Zc,Rg:b.Rg}};
T5a=function(a,b,c,d,e,f,h,l,m,n,p){b=null!=n?n:DG(a.fb.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);n={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",ib:"adapter"};l=l(b);var q=dF(l.Ea,"metadata_type_fulfilled_layout");q||wG("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new eE(c),new TE(d),new WE(e)];p&&c.push(new JE(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Yb:f,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new J0(a.j,
q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:"adapter",Iy:c,Cc:h(n),adLayoutLoggingData:m,Rg:l,AI:q}};
M4a=function(a,b,c,d,e,f,h,l,m,n,p){a=z6a(a,b,"core",c,d,e,f,h,l,m,n,void 0,p);return{layoutId:a.layoutId,layoutType:a.layoutType,Yb:a.Yb,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,Zc:a.Zc,ib:a.ib,Ea:new K_(a.sU),Cc:a.Cc,adLayoutLoggingData:a.adLayoutLoggingData}};
f6a=function(a,b,c,d,e,f,h,l,m,n,p,q,t){b=z6a(a,b,"adapter",c,d,e,f,h,l,m,p,q,t);d=b.layoutExitSkipTriggers;e=b.sU;c.adPodSkipTarget&&0<c.adPodSkipTarget&&(e.push(n),e.push(new hE(c.adPodSkipTarget)),d=[]);e.push(new gE(l.j));c.isCritical&&(d=[new H0(a.j,b.layoutId,["error"])].concat(g.qa(d)));return{Ck:{layoutId:b.layoutId,layoutType:b.layoutType,Yb:b.Yb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:b.ib,Ea:new K_(e),
Cc:b.Cc,adLayoutLoggingData:b.adLayoutLoggingData},Ul:d,Uj:b.layoutExitMuteTriggers,Ly:b.layoutExitUserInputSubmittedTriggers,Ky:b.Zc}};
z6a=function(a,b,c,d,e,f,h,l,m,n,p,q,t){var v={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",ib:c};e=[new eE(e),new fE(m),new jE(d.externalVideoId),new lE(l),new mE(d.playerOverlay.instreamAdPlayerOverlayRenderer),new WE({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands}),new EE(f),new zE({current:null}),new DE(h)];q&&e.push(new FE(q));(q=d.playerUnderlay)&&e.push(new nE(q));f=CG(a.fb.get(),"SLOT_TYPE_IN_PLAYER");q=(q=d.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?
q:DG(a.fb.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",f);e.push(new wE(q));e.push(new xE(f));e.push(new JE(m.j));d.adNextParams&&e.push(new YD(d.adNextParams));d.shrunkenPlayerBytesConfig&&e.push(new pE(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&e.push(new ZD(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&e.push(new UE(d.legacyInfoCardVastExtension));d.sodarExtensionData&&e.push(new GE(d.sodarExtensionData));p&&e.push(new RE(p));e.push(new ZE(dP(d.pings)));m=eP(d.pings);if(t){a:{t=
g.u(t);for(p=t.next();!p.done;p=t.next())if(p=p.value,"SLOT_TYPE_PLAYER_UNDERLAY"===p.adSlotMetadata.slotType&&(f=g.Q(p.fulfillmentContent.fulfilledLayout,y0))&&(f=g.Q(f.renderingContent,x0))&&f.associatedPlayerBytesLayoutId===b){t=p;break a}t=void 0}t&&e.push(new oE(t))}return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Yb:m,layoutExitNormalTriggers:[new I0(a.j,b)],layoutExitSkipTriggers:d.skipOffsetMilliseconds?[new J0(a.j,q)]:[],layoutExitMuteTriggers:[new J0(a.j,q)],layoutExitUserInputSubmittedTriggers:[],
Zc:[],ib:c,sU:e,Cc:n(v),adLayoutLoggingData:d.adLayoutLoggingData}};
B5a=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return QAa(p,[],["LAYOUT_TYPE_MEDIA"])})||wG("Unexpect subLayout type for DAI composite layout");
b=DG(a.fb.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",ib:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Yb:new Map,layoutExitNormalTriggers:[new v5a(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:"core",Ea:new K_([new HE(c),new IE(l),new BE(d),new eE(e),new NE(f),new KE({}),new $E(m)]),Cc:h(n)}};
w5a=function(a){return null!=a};
A6a=function(a,b,c){this.Yr=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
r4a=function(a){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=a(this.triggerType)};
h1=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)};
B6a=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
i1=function(a,b,c,d,e){this.Yr=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)};
C6a=function(a,b,c){this.Yr=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
j1=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
k1=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
l1=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
m1=function(a,b,c){var d=this;this.fb=a;this.Jb=b;this.Da=c;this.j=function(e){return EG(d.fb.get(),e)}};
p4a=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=CG(a.fb.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Zo&&d.Zo.start!==d.Un.start&&l.push(new c1(a.j,c,new kr(d.Zo.start,d.Un.start),!1));l.push(new c1(a.j,c,new kr(d.Un.start,d.Un.end),d.sE));d={getAdBreakUrl:b.getAdBreakUrl,VP:d.Un.start,UP:d.Un.end};b=new k1(a.j,h);f=[new PE(d)].concat(g.qa(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:[new A0(a.j,
c),new B0(a.j,h),new j1(a.j,h)],ib:"core",Ea:new K_(f),adSlotLoggingData:e}};
E6a=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())d.push(D6a(a,b,e.value));return d};
D6a=function(a,b,c){return null!=c.triggeringSlotId&&c.triggeringSlotId===a?c.clone(b):c};
h5a=function(a,b,c,d,e){return F6a(a,b,c,d,e)};
N5a=function(a,b,c,d){var e=CG(a.fb.get(),"SLOT_TYPE_IN_PLAYER");return F6a(a,e,b,c,d)};
F6a=function(a,b,c,d,e){var f=new D0(a.j,c),h=[new F0(a.j,b)];a=[new B0(a.j,b),new A0(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,ib:"core",Ea:new K_([new OE(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}};
g6a=function(a,b,c,d,e,f){var h=CG(a.fb.get(),"SLOT_TYPE_PLAYER_BYTES"),l=CG(a.fb.get(),"SLOT_TYPE_IN_PLAYER"),m=DG(a.fb.get(),"LAYOUT_TYPE_SURVEY",l);d=n1(a,b,c,d);var n=[new F0(a.j,h)];c=[new B0(a.j,h),new A0(a.j,c),new G0(a.j,m)];if(d instanceof iF)return d;l=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,ib:"core",slotEntryTrigger:d,slotFulfillmentTriggers:n,slotExpirationTriggers:c},{slotId:l,layoutId:m});f=l.m6;l=l.G5;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",
slotPhysicalPosition:1,slotEntryTrigger:b6a(a,b,h,d),slotFulfillmentTriggers:c6a(a,b,h,n),slotExpirationTriggers:c,ib:"core",Ea:new K_([new OE(f),new aF(X0(b))]),adSlotLoggingData:e},l]};
X0=function(a){return"AD_PLACEMENT_KIND_START"===a.kind};
N4a=function(a,b,c,d,e){e=e?e:CG(a.fb.get(),"SLOT_TYPE_IN_PLAYER");c=new D0(a.j,c);var f=[new F0(a.j,e)];a=[new A0(a.j,b),new B0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,ib:"core",Ea:new K_([new OE(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
P4a=function(a,b,c,d){var e=CG(a.fb.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new D0(a.j,c);var f=[new F0(a.j,e)];a=[new A0(a.j,b),new B0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,ib:"core",Ea:new K_([new OE(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,ib:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
F4a=function(a,b,c,d,e,f,h){var l=CG(a.fb.get(),"SLOT_TYPE_IN_PLAYER"),m=DG(a.fb.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=G6a(a,d,f,h,m);if(d instanceof iF)return d;h=[new F0(a.j,l)];e=[new A0(a.j,f),new F0(a.j,e),new l1(a.j,e)];c=O_(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e});a=a.Jb.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",ib:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
Yb:new Map,layoutExitNormalTriggers:[new u6a(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new v6a(a.j,m,b.durationMs)],Zc:[new f1(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],ib:"core",Ea:new K_([new VE(b)]),Cc:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Ea:new K_([new OE(b)])}};
H5a=function(a,b,c,d,e,f){b=n1(a,b,c,d);if(b instanceof iF)return b;var h=b instanceof c1?new C6a(a.j,c,b.j):null;d=CG(a.fb.get(),"SLOT_TYPE_IN_PLAYER");var l=[new F0(a.j,d)];a=[new A0(a.j,c),new B0(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a},h);return f instanceof X_?new iF(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,
slotExpirationTriggers:a,ib:"core",Ea:new K_([new OE(f)]),adSlotLoggingData:e}};
o5a=function(a,b,c,d){var e=CG(a.fb.get(),"SLOT_TYPE_IN_PLAYER");c=new D0(a.j,c);var f=[new F0(a.j,e)],h=[new B0(a.j,e),new A0(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new F0(a.j,e)],slotExpirationTriggers:[new A0(a.j,b),new B0(a.j,e)],ib:"core",Ea:new K_([new OE(d(f))])}};
l5a=function(a,b,c,d,e){var f=CG(a.fb.get(),"SLOT_TYPE_IN_PLAYER");c=new h1(a.j,d,c);d=[new F0(a.j,f)];a=[new A0(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,ib:"core",Ea:new K_([new OE(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,ib:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}};
A4a=function(a,b,c,d,e,f){var h=CG(a.fb.get(),b);return H6a(a,h,b,new D0(a.j,d),[new A0(a.j,c),new B0(a.j,h),new H0(a.j,d,["error"])],e,f)};
z4a=function(a,b,c,d,e,f,h){var l=CG(a.fb.get(),b);return H6a(a,l,b,new H0(a.j,e,["normal"]),[new A0(a.j,c),new B0(a.j,l),new H0(a.j,d,["error"])],f,h)};
w4a=function(a,b,c,d,e){var f=CG(a.fb.get(),b);return H6a(a,f,b,new jF(a.j,c),[new A0(a.j,c),new B0(a.j,f)],d,e)};
D5a=function(a,b,c,d){var e=CG(a.fb.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new jF(a.j,b);var f=[new F0(a.j,e)];a=[new B0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:f,slotExpirationTriggers:a,ib:"core",Ea:new K_([new OE(d({slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,ib:"core",slotEntryTrigger:b,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))]),adSlotLoggingData:c}};
x5a=function(a,b,c,d){var e=CG(a.fb.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new B6a(a.j),h=[new z0(a.j,e)];b=[new A0(a.j,b)];var l={slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,ib:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b};a=a.Da.get();return!g.JM(a.I.W())&&a.I.W().experiments.sb("enable_pacf_slot_asde_player_byte_h5")||g.JM(a.I.W())&&a.I.W().experiments.sb("enable_pacf_slot_asde_player_byte_h5_TV")?{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,ib:"core",Ea:new K_([new OE(d(l)),new KE({})]),adSlotLoggingData:c}:{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,ib:"core",Ea:new K_([new OE(d(l)),new KE({})])}};
Z5a=function(a,b){return m6a(a.Da.get())?new H0(a.j,b,["normal","error","skipped"]):new H0(a.j,b,["normal"])};
J4a=function(a,b,c,d,e){b=Z5a(a,b);a=$5a(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,ib:a.ib});return e instanceof iF?e:{Cw:Object.assign({},a,{Ea:new K_([new OE(e.layout)]),adSlotLoggingData:d}),Dg:e.Dg}};
K4a=function(a,b,c,d,e,f,h){c=a6a(a,b,c,d);if(c instanceof iF)return c;h=h({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,ib:c.ib});if(h instanceof iF)return h;d=[new aF(X0(b)),new OE(h.layout)];f&&d.push(new XE({}));return{Cw:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:b6a(a,b,
c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:c6a(a,b,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,ib:c.ib,Ea:new K_(d),adSlotLoggingData:e},Dg:h.Dg}};
b6a=function(a,b,c,d){return a.Da.get().Gf(X0(b))?new C0(a.j,c):d};
c6a=function(a,b,c,d){return a.Da.get().Gf(X0(b))?[new z0(a.j,c)]:d};
$5a=function(a,b,c){var d=CG(a.fb.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new F0(a.j,d)];a=[new B0(a.j,d),new A0(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,ib:"core"}};
a6a=function(a,b,c,d){b=n1(a,b,c,d);return b instanceof iF?b:$5a(a,b,c)};
F5a=function(a,b,c,d,e,f){var h=CG(a.fb.get(),"SLOT_TYPE_FORECASTING");b=n1(a,b,c,d);if(b instanceof iF)return b;d=[new F0(a.j,h)];a=[new B0(a.j,h),new A0(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,ib:"core",Ea:new K_([new OE(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,ib:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}};
I6a=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new jF(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=Era(b,d),a instanceof iF?a:e(a.Un,f);case "AD_PLACEMENT_KIND_END":return new A6a(a.j,c,f);default:return new iF("Cannot construct entry trigger",{kind:b.kind})}};
G6a=function(a,b,c,d,e){return I6a(a,b,c,d,function(f,h){return new i1(a.j,c,f,h,e)})};
n1=function(a,b,c,d){return I6a(a,b,c,d,function(e,f){return new c1(a.j,c,e,f)})};
H6a=function(a,b,c,d,e,f,h){a=[new z0(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,ib:"core",Ea:new K_([new OE(h({slotId:b,slotType:c,slotPhysicalPosition:1,ib:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}};
o1=function(a,b){g.G.call(this);this.Da=a;this.u=b;this.eventCount=0};
NP=function(a,b,c){a.j(b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData)};
b0=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)};
M3a=function(a,b,c,d){N_(a.u.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)};
Y_=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})};
J6a=function(a,b,c,d,e,f,h,l,m,n,p){if(a.B()&&("ADS_CLIENT_EVENT_TYPE_ERROR"!==b||a.CQ())&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){b||wG("Empty PACF event type",f,h);var q=N_(a.u.get());b={eventType:b,eventOrder:++a.eventCount};var t={};f&&(t.slotData=w3a(q,f));h&&(t.layoutData=x3a(q,h));l&&(t.triggerData=M_(l.trigger,l.category));c&&(t.opportunityData=y3a(q,c,d,e));c={organicPlaybackContext:{contentCpn:a.Wa.get().Nf(1).clientPlaybackNonce}};c.organicPlaybackContext.isLivePlayback=a.Wa.get().Nf(1).Jc;
var v;c.organicPlaybackContext.isMdxPlayback=null==(v=a.Wa.get().Nf(1))?void 0:v.isMdxPlayback;var y;if(v=null==(y=a.Wa.get().Nf(2))?void 0:y.clientPlaybackNonce)c.adVideoPlaybackContext={adVideoCpn:v};c&&(t.externalContext=c);b.adClientData=t;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);p&&(b.errorInfo=p);m={adsClientEvent:b};Y0(a.Da.get(),"tvh5_pacf_disable_gel_log_action")||g.UB("adsClientStateChange",m)}};
p1=function(a,b,c){o1.call(this,a,b);this.Da=a;this.Wa=c};
q1=function(){this.j=new Map};
r1=function(a,b,c,d,e){g.G.call(this);this.I=a;this.u=b;this.La=c;this.Wa=d;this.Kf=e;this.listeners=[];var f=new lB(this);g.H(this,f);f.T(a,"internalAbandon",this.YO);g.tb(this,function(){g.nB(f)})};
s1=function(a){g.G.call(this);this.I=a;this.j=new Map;this.u=new lB(this);g.H(this,this.u);this.u.T(this.I,g.PG("ad"),this.onCueRangeEnter,this);this.u.T(this.I,g.QG("ad"),this.onCueRangeExit,this)};
L6a=function(a,b){(b=a.j.get(b))&&K6a(a,b)};
K6a=function(a,b){a.I.Mp([b.We],b.jo);a.j.delete(b.We.id)};
M6a=function(a,b,c,d,e){g.NG.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
t1=function(a){this.I=a};
u1=function(a){this.I=a;this.j=Math.random()<g.xL(this.I.W().experiments,"tv_pacf_logging_sample_rate")};
v1=function(a){var b,c,d,e;return g.QM(a.I.W())&&(null==(b=a.I.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};
Y0=function(a,b){return a.I.W().N(b)};
N6a=function(a){return a.I.W().N("substitute_ad_cpn_macro_in_ssdai")};
w1=function(a){var b,c,d;return(null==(b=a.I.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
m6a=function(a){return a.I.W().N("html5_enable_vod_slar_with_notify_pacf")};
O6a=function(a){return a.I.W().N("html5_recognize_predict_start_cue_point")};
P6a=function(a){return a.I.W().N("enable_lr_home_infeed_ads_inline_playback_progress_pings")};
O4a=function(a){return a.I.W().experiments.sb("enable_desktop_player_underlay")};
R0=function(a){return a.I.W().experiments.sb("html5_load_ads_instead_of_cue")};
S0=function(a){return a.I.W().experiments.sb("html5_preload_ads")};
Q6a=function(a){return a.I.W().experiments.sb("html5_rebase_video_to_ad_timeline")};
x1=function(a,b){this.La=a;this.I=b;this.j=new Map;aP().subscribe("adactiveviewmeasurable",this.GD,this);aP().subscribe("adfullyviewableaudiblehalfdurationimpression",this.FD,this);aP().subscribe("adviewableimpression",this.HD,this);aP().subscribe("adaudioaudible",this.DD,this);aP().subscribe("adaudiomeasurable",this.ED,this)};
R6a=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?wG("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),Rm(sn().Fc,"fmd",1),xq(nn(vq),c),fAa(aP(),b,{DC:function(){return d?{currentTime:a.La.get().getCurrentTimeSec(2,!1),duration:d,wd:2===a.La.get().getPresentingPlayerType()&&1===y1(a.La.get(),2),Dcb:!1,Ecb:!0,volume:a.La.get().isMuted()?0:a.La.get().getVolume()/100}:{}}}))};
S6a=function(a,b){a.j.has(b)?(a.j.delete(b),delete aP().j[b]):wG("Unexpected unregistration of layout in LidarApi")};
z1=function(a,b,c,d){this.J=a;this.K=b;this.C=c;this.D=d};
A1=function(a,b,c,d){var e=void 0===e?new z1(function(){var f=a.W(),h=a.getVideoData(1);return g.ZM(f,h?g.PO(h):"")},function(){return a.W().pageId},function(){return a.W().qa},function(f){return a.W().N(f)}):e;
this.I=a;this.u=b;this.Ub=c;this.Wa=d;this.Uu=e;this.AJ=null;this.j=new Map;this.ym=new tP(e)};
U6a=function(a,b,c,d){var e=q6a(a.u.get(),c);e?(c=B1(a,T6a(e),e,void 0,void 0,d),b.hasOwnProperty("baseUrl")?a.Uu.send(b,c):a.ym.send(b,c,{})):wG("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
C1=function(a,b){g.UB("adsClientStateChange",b)};
V6a=function(a,b){a.j.has(b.iz())?wG("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.iz(),b)};
W6a=function(a,b){a.j.delete(b.iz())||wG("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
T6a=function(a){var b=dF(a.Ea,"metadata_type_ad_placement_config");a=dF(a.Ea,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,cX:a}};
B1=function(a,b,c,d,e,f){var h=c?X6a(a):{};c=c?Y6a(a,c.layoutId):{};var l=Z6a(a),m,n=null!=e?e:null==(m=a.Wa.get().Nf(2))?void 0:m.clientPlaybackNonce;a.I.W().N("enable_player_logging_lr_home_infeed_ads")&&!n&&(n=a.Wa.get().Nf(1).clientPlaybackNonce);e={};d=Object.assign({},oP(a.I,d),mAa(b.adPlacementConfig,a.I.N("h5_disable_client_subs_slot_pos")),c,h,l,(e.FINAL=nP(function(){return"1"}),e.AD_CPN=nP(function(){return n||""}),e));
a.I.N("h5_disable_client_subs_slot_pos")||(d.SLOT_POS=nP(function(){return(b.cX||0).toString()}));
a={};f=Object.assign({},d,f);d=g.u(Object.values($6a));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};
X6a=function(a){var b={},c,d=null==(c=a.AJ)?void 0:c.aj/1E3;null!=d&&(b.SURVEY_ELAPSED_MS=nP(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=nP(function(){return Math.round(Date.now()/1E3).toString()});
return b};
Y6a=function(a,b){a=a.j.get(b);if(!a)return{};a=a.HM();if(!a)return{};b={};return b.YT_ERROR_CODE=a.NJ.toString(),b.ERRORCODE=a.iF.toString(),b.ERROR_MSG=a.errorMessage,b};
Z6a=function(a){var b={},c=a.I.getVideoData(1);b.ASR=nP(function(){var d;return null!=(d=null==c?void 0:c.bB)?d:null});
b.EI=nP(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null});
return b};
D1=function(a,b,c){g.G.call(this);this.I=a;this.xe=b;this.Da=c;this.listeners=[];this.kO=null;this.vL=new Map;b=new g.PK(this);g.H(this,b);b.T(a,"videodatachange",this.l9);b.T(a,"serverstitchedvideochange",this.I8);this.zv=this.Nf()};
b7a=function(a,b,c){var d=a7a(a,b,c);a.zv=d;a.listeners.forEach(function(e){e.oI(d)})};
a7a=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,h=b.Tc,l=b.title,m=b.Zi,n=b.Hj,p=b.isMdxPlayback,q=b.Gk,t=b.mdxEnvironment,v=b.isAutonav,y=b.Op,A=b.jl,E=b.ov,K=b.videoId||"",I=b.profilePicture||"",F=b.Fk||"";b=b.kq||void 0;h=a.xe.get().j.get(h)||{layoutId:null,slotId:null};var S=a.I.getVideoData(1),Y=S.Jc();S=S.getPlayerResponse();c=1E3*a.I.getDuration(c);a=1E3*a.I.getDuration(1);var ia,ta,na=(null==S?void 0:null==(ia=S.playerConfig)?void 0:null==(ta=ia.daiConfig)?void 0:ta.enableDai)||
!1,ca,ha;ia=(null==S?void 0:null==(ca=S.playerConfig)?void 0:null==(ha=ca.daiConfig)?void 0:ha.enablePreroll)||!1;return Object.assign({},h,{videoId:K,author:d,clientPlaybackNonce:e,x9:c,vU:a,daiEnabled:na,DU:ia,isListed:f,Jc:Y,profilePicture:I,title:l,Fk:F,Zi:m,Hj:n,kq:b,isMdxPlayback:p,Gk:q,mdxEnvironment:t,isAutonav:v,Op:y,jl:A,ov:E})};
E1=function(a,b,c){g.G.call(this);this.I=a;this.Wa=b;this.Da=c;this.listeners=[];this.qG=[];this.j=function(){wG("Called 'doUnlockPreroll' before it's initialized.")};
b=new lB(this);c=new g.PK(this);g.H(this,c);g.H(this,b);b.T(a,"progresssync",this.k8);b.T(a,"presentingplayerstatechange",this.b8);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.Bh);b.T(a,"resize",this.Kb);c.T(a,g.PG("appad"),this.fl)};
QQ=function(a){v1(a.Da.get())||a.j()};
c7a=function(a,b){a.qG=a.qG.filter(function(c){return c!==b})};
d7a=function(a,b){var c;b=null!=(c=a.Wa.get().vL.get(b))?c:null;if(null===b)return wG("Expected ad video start time on playback timeline"),0;a=a.I.getCurrentTime(2,!0);return a<b?0:a-b};
y1=function(a,b){return a.I.Nb(b)};
e7a=function(a){var b=a.I.qb().fk();a=a.I.Vk(!0,!0);return b.height-(a.height+a.top)};
f7a=function(a){a.I.cueVideoByPlayerVars({videoId:"empty_video"},2)};
g7a=function(a,b){var c=a.I.W();g.BM(c)||"3"!==c.controlsType||a.I.qb().OE(b)};
F1=function(a,b){g.Sq(a.I.getRootNode(),b)};
G1=function(a,b){g.Uq(a.I.getRootNode(),b)};
h7a=function(a,b,c,d,e){g.G.call(this);var f=this;this.fb=m0(function(){return new BG});
g.H(this,this.fb);this.Jb=m0(function(){return new g1(f.fb,f.Da)});
g.H(this,this.Jb);this.Vc=m0(function(){return new e1});
g.H(this,this.Vc);this.Tb=m0(function(){return new b1(a)});
g.H(this,this.Tb);this.Rb=m0(function(){return new m1(f.fb,f.Jb,f.Da)});
g.H(this,this.Rb);this.xe=m0(function(){return new q1});
g.H(this,this.xe);this.Vb=m0(function(){return new n0(e)});
g.H(this,this.Vb);this.Sc=m0(function(){return new PP(b)});
g.H(this,this.Sc);this.zc=m0(function(){return new s1(b)});
g.H(this,this.zc);this.Kd=m0(function(){return new t1(b)});
g.H(this,this.Kd);this.Da=m0(function(){return new u1(b)});
g.H(this,this.Da);this.Sb=m0(function(){return new P_(f.Da)});
g.H(this,this.Sb);this.ze=m0(function(){return new $0(f.fb,f.Rb,f.Jb,f.Da,f.Sb,null,null)});
g.H(this,this.ze);this.Wa=m0(function(){return new D1(b,f.xe,f.Da)});
g.H(this,this.Wa);this.ac=new p1(this.Da,this.Sb,this.Wa);g.H(this,this.ac);this.La=m0(function(){return new E1(b,f.Wa,f.Da)});
g.H(this,this.La);this.Ub=m0(function(){return new x1(f.La,b)});
g.H(this,this.Ub);this.Ra=m0(function(){return new A1(b,f.Vc,f.Ub,f.Wa)});
g.H(this,this.Ra);this.fd=new xG(this.Tb,this.ze,c,this.Da,a,this.Wa,this.La,this.Sc);g.H(this,this.fd);var h=new r1(b,this.fd,this.La,this.Wa);this.Hg=m0(function(){return h});
this.Rt=h;this.Hf=new d1(this.Tb,this.Rb,this.zc,this.Hg);g.H(this,this.Hf);this.qd=new cF(this.Da,this.Tb,this.Rb,this.ze,this.Wa,this.Hf,c);g.H(this,this.qd);this.Ff={Aw:new Map,yq:new Map,Bl:new Map,Pr:new Map,Zq:new Map};this.listeners=[];this.dw={qd:this.qd,gr:null,Qi:this.Da.get(),tb:this.Vb.get(),Vt:this.La.get(),fd:this.fd,xn:this.fb.get(),er:null,dl:{tN:function(){}},
yj:this.Vc.get(),Qn:this.Wa.get()}};
H1=function(){this.listeners=new Set};
I1=function(){};
i7a=function(a,b){a=b.bgp&&b.bgub;var c=b.upb;b.siub&&b.scs&&(a||c)&&Pka(b.siub,b.scs,b.bgub,b.bgp,c)};
j7a=function(a,b,c,d,e){this.callback=a;this.slot=b;this.Jb=c;this.Sb=d;this.Da=e;this.j=null};
k7a=function(a,b,c,d){a.j&&wG("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.MA?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.Jb.get(),l=a.slot.slotId,m=O_(a.Sb.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,ib:a.slot.ib,slotEntryTrigger:a.slot.slotEntryTrigger,slotFulfillmentTriggers:a.slot.slotFulfillmentTriggers,slotExpirationTriggers:a.slot.slotExpirationTriggers}),
n=DG(h.fb.get(),f,l),p={layoutId:n,layoutType:f,ib:"core"};e={layoutId:n,layoutType:f,Yb:new Map,layoutExitNormalTriggers:[new t6a(h.j,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:"core",Ea:new K_([new QE(e)]),Cc:m(p)};J3a(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof $f||G3a(a.callback,a.slot,new iF(e,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
l7a=function(a){if(null==a.j)a.callback.rI(a.slot);else try{a.j.cancel(),a.j=null,a.callback.rI(a.slot)}catch(b){a.j=null,G3a(a.callback,a.slot,new iF(b,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
m7a=function(a,b,c,d,e,f,h,l,m){this.slot=b;this.Yf=c;this.Ra=h;this.La=l;this.Oc=m;this.j=new j7a(a,b,d,e,f)};
n7a=function(a){var b;null==(b=a.Oc)||b.get().Ut(dF(a.slot.Ea,"metadata_type_cue_point").identifier)};
o7a=function(a,b,c,d,e,f){this.slot=b;this.Yf=c;this.j=new j7a(a,b,d,e,f)};
p7a=function(a,b){this.callback=a;this.slot=b};
q7a=function(a,b){return gF(a,b.Ne,b.slotType)?!0:!1};
r7a=function(){};
J1=function(a,b,c,d,e,f,h){this.Yf=a;this.Jb=b;this.Sb=c;this.Da=d;this.Ra=e;this.La=f;this.Oc=h};
K1=function(){};
s7a=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.j=d;this.Tb=e;this.fb=f};
u7a=function(a){if(dF(a.slot.Ea,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var b=t7a(a,a.slot);eF(a.Tb.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[b]})}};
t7a=function(a,b){var c=CG(a.fb.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:v7a(b.slotId,c,b.slotFulfillmentTriggers),slotExpirationTriggers:v7a(b.slotId,c,b.slotExpirationTriggers)})};
v7a=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};
L1=function(a,b){return QAa(a,b.Ne,b.Rf)?!0:!1};
M1=function(a,b,c){this.j=a;this.Tb=b;this.fb=c};
N1=function(a,b,c,d,e){e=void 0===e?null:e;this.B=a;this.Ra=b;this.layoutId=d;this.C=0;this.J=null;this.D=void 0;this.j=new Set;this.u=Array.from(this.B.get("progress")||[]);this.u.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.K={adPlacementConfig:c,cX:e}};
O1=function(){return["metadata_type_ad_placement_config"]};
P1=function(a){var b=a.Ra.get();return B1(b,a.K)};
Q1=function(a,b,c){for(c=void 0===c?!1:c;a.C<a.u.length;){var d=a.u[a.C];if(d.offsetMilliseconds<=b||c)w7a(a,"progress",[d]),a.C++;else break}};
R1=function(a,b){return a.j.has(b)};
x7a=function(a){return a.u.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
y7a=function(a,b,c){a.J=b;a.D=c};
w7a=function(a,b,c){var d,e=a.Ra.get(),f=a.layoutId,h=null!=(d=a.J)?d:void 0;a=a.D;c=void 0===c?[]:c;if(d=q6a(e.u.get(),f))for(b=e.Ub.get().Dh(f,b),f=B1(e,T6a(d),d,h,a),c=g.u(c),h=c.next();!h.done;h=c.next())h=h.value,h.baseUrl&&e.ym.send(h.baseUrl,f,b);else wG("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
z7a=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ra=d;this.j=e;a=dF(this.layout.Ea,"metadata_type_ad_placement_config");this.jb=new N1(c.Yb,this.Ra,a,c.layoutId)};
A7a=function(){var a=["metadata_type_client_forecasting_ad_renderer"];O1().forEach(function(b){a.push(b)});
return{Ne:a,Rf:["LAYOUT_TYPE_FORECASTING"]}};
B7a=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Ra=d;this.j=e;a=dF(this.layout.Ea,"metadata_type_ad_placement_config");this.jb=new N1(c.Yb,this.Ra,a,c.layoutId)};
S1=function(a,b,c,d){this.Da=a;this.Ra=b;this.j=c;this.Ub=d};
C7a=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
D7a=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.Ef(a.slot,b,new X_("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()};
T1=function(a,b,c,d){g.SG.call(this);this.callback=a;this.B=d;this.j=[];this.u=new C7a(a,b,c)};
U1=function(a,b,c,d,e,f,h){e=dF(c.Ea,e);a=P1(a);var l=Nd(function(){d.Rc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.Cc},function(){l()}))};
V1=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.I.sendVideoStatsEngageEvent(1,void 0,2):e?e():wG("Tried to call engagePingCallback but it is null",h,l)}}else wG("Companion AdUxClick received without a layoutId",h,l)};
E7a=function(a,b,c,d,e){ZO.call(this,"action-companion",a,b,c,d,e)};
F7a=function(a,b,c,d,e,f,h,l){T1.call(this,a,b,c,d);this.Ra=e;this.Le=f;this.J=l;this.tj=!0;this.C=null;this.D=dF(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.Le().Jd.add(this);a=dF(c.Ea,"metadata_type_ad_placement_config");this.jb=new N1(c.Yb,this.Ra,a,c.layoutId)};
G7a=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];O1().forEach(function(b){a.push(b)});
return{Ne:a,Rf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
W1=function(a,b,c,d,e){T1.call(this,a,b,c,d);a=dF(c.Ea,"metadata_type_ad_placement_config");this.jb=new N1(c.Yb,e,a,c.layoutId)};
H7a=function(){var a=["metadata_type_ad_action_interstitial_renderer"];O1().forEach(function(b){a.push(b)});
return{Ne:a,Rf:["LAYOUT_TYPE_ENDCAP"]}};
X1=function(a,b,c,d,e,f,h,l){T1.call(this,a,b,c,d);this.La=e;this.Ra=f;this.J=h;this.D=l;this.C=!1;this.K=dF(this.layout.Ea,"metadata_type_linked_player_bytes_layout_id")};
I7a=function(){return{Ne:["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"]}};
Y1=function(a,b,c,d,e,f){T1.call(this,c,a,b,d);this.La=e;this.Da=f};
J7a=function(){return{Ne:["metadata_type_valid_ad_message_renderer"],Rf:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
Z1=function(a,b,c,d,e,f,h,l,m){return L1(c,I7a())?new X1(a,b,c,d,e,f,h,l):L1(c,H7a())?new W1(a,b,c,d,f):L1(c,J7a())?new Y1(b,c,a,d,e,m):null};
K7a=function(a,b,c,d,e,f){this.yc=a;this.La=b;this.Ra=c;this.u=d;this.j=e;this.Da=f};
L7a=function(a,b,c,d,e,f,h,l,m,n,p){g.G.call(this);this.callback=a;this.j=b;this.slot=c;this.layout=d;this.le=e;this.Ge=f;this.Wa=h;this.Oc=l;this.Ce=m;this.Le=n;this.La=p;this.tj=!0;this.u=void 0;this.B=!1};
$1=function(a,b,c,d,e,f){g.G.call(this);this.callback=a;this.Ce=b;this.La=c;this.Sc=d;this.Le=e;this.Da=f;this.tj=!0;this.DN=!1};
M7a=function(a,b,c,d,e,f,h,l,m,n,p,q,t){$1.call(this,a,d,e,f,q,t);this.Wa=b;this.Oc=c;this.B=h;this.slot=l;this.layout=m;this.le=n;this.D=p;this.u=[];this.j=-1;this.C=!1};
P7a=function(a,b,c){var d=a.u[a.j];if(c.layoutId!==a2(d,b,c))wG("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",d.Uc(),d.zb(),{requestingSlot:b,requestingLayout:c});else{var e=dF(d.zb().Ea,"metadata_type_ad_pod_skip_target");if(e&&0<e&&e<a.u.length){a:{for(var f=e;f<a.u.length;){if(e===dF(a.u[f].zb().Ea,"metadata_type_ad_pod_skip_index")){e=f;break a}f++}e=void 0}void 0===e?wG("Skip-to-index was requested but target index was not found",d.Uc(),d.zb(),{requestingSlot:b,
requestingLayout:c}):a.Gf()?N7a(a,d.zb(),e,"skipped"):O7a(a,d.Uc(),d.zb(),e)}else wG("Invalid ad pod skip target index",d.Uc(),d.zb(),{requestingSlot:b,requestingLayout:c})}};
a2=function(a,b,c){var d=dF(a.zb().Ea,"metadata_type_linked_in_player_layout_id");return d?d:(wG("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.Uc(),a.zb(),{requestingSlot:b,requestingLayout:c}),null)};
Q7a=function(a,b,c){b2(a,a.slot,b,c,function(){var d=a.J;d?(a.J=void 0,d(b)):wG("Expected further action after sublayout exit is confirmed",a.slot,a.layout)})};
S7a=function(a,b,c,d){a.Gf()?N7a(a,c,a.j+1,d):b2(a,b,c,d,function(){R7a(a,a.j+1)})};
N7a=function(a,b,c,d){b2(a,a.slot,b,d,function(){c>=a.u.length||0>c?wG("Unexpected target sublayout index",a.slot,a.layout,{targetSubLayoutIndex:c}):(a.j=c,a.Oc.get().finishSegmentByCpn(b.layoutId,a.u[c].zb().layoutId))})};
O7a=function(a,b,c,d){b2(a,b,c,"skipped",function(){R7a(a,d)})};
b2=function(a,b,c,d,e){if(!a.C){var f=a.u[a.j];f?(f.zb().layoutId!==c.layoutId&&wG("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.zb().layoutId}),a.C=!0,f.Gg(f.zb(),d),KP(a.B,b,c,d),a.C=!1,a.K?(a.K(),a.Sc.get().IA()):e()):wG("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
R7a=function(a,b){a.j===a.u.length-1?(a.j++,c2(a.D,a.layout),a.Sc.get().IA()):T7a(a,b)};
T7a=function(a,b){if(-1===a.j&&(a.callback.Rc(a.slot,a.layout),0<b)){wG("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});return}a.j=b;b=a.u[a.j];0<a.j&&a.Sc.get().wZ();b.startRendering(b.zb())};
U7a=function(a){return!a.qw.wd()&&a.state.wd()};
d2=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
V7a=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)};
W7a=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))};
X7a=function(a,b,c,d){this.Vb=a;this.layoutId=c;this.D=d;this.u=[];this.j=[];this.B=this.C=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":V7a(b)?this.u.push(b):wG("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":W7a(b)?this.j.push(b):wG("Invalid AdVideoProgressMillisecondsCommand");break;default:wG("Unknown or invalid AdVideoProgressOffSet kind")}this.u.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)})};
f2=function(a,b,c,d,e,f,h,l,m,n,p,q,t,v){g.G.call(this);var y=this;this.callback=a;this.slot=b;this.layout=c;this.Ra=d;this.Ub=e;this.La=f;this.Sc=h;this.qg=l;this.Vb=m;this.oE=n;this.position=q;this.RZ=t;this.Da=v;this.tj=!0;this.XY=!1;this.Kc="not_rendering";this.nD=!1;a=dF(this.layout.Ea,"metadata_type_ad_placement_config");this.jb=new N1(c.Yb,this.Ra,a,c.layoutId);var A;a=(null==(A=e2(this))?void 0:A.progressCommands)||[];this.I9=new X7a(m,a,c.layoutId,function(){return y.gz()});
this.ZL=Nd(function(){y.callback.Rc(y.slot,y.layout)});
this.pG=Nd(function(){"rendering_stop_requested"!==y.Kc&&p(y);y.layoutExitReason?y.callback.Wc(y.slot,y.layout,y.layoutExitReason):wG("Received layout exit signal when not in layout exit flow.",y.slot,y.layout)})};
e2=function(a){return dF(a.layout.Ea,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
g2=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.Kc){Q1(a.jb,1E3*b,c);a.nD||Q1(a.jb,1E3*b,void 0===c?!1:c);var d=a.gz();if(d&&(d/=1E3,(b>=.25*d||c)&&a.zd("first_quartile"),(b>=.5*d||c)&&a.zd("midpoint"),(b>=.75*d||c)&&a.zd("third_quartile"),a=a.I9,b*=1E3,c=a.D())){for(;a.C<a.u.length;)if(d=a.u[a.C],d.adVideoOffset.percent*c<=b)a.Vb.get().executeCommand(d.command,a.layoutId),a.C++;else break;for(;a.B<a.j.length;)if(c=a.j[a.B],Number(c.adVideoOffset.milliseconds)<=b)a.Vb.get().executeCommand(c.command,
a.layoutId),a.B++;else break}}};
Y7a=function(a){0===a.position&&(a.Sc.get(),a=dF(a.layout.Ea,"metadata_type_ad_placement_config").kind,a={adBreakType:wBa(a)},RH("ad_bl"),g.OH(a))};
Z7a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,v,y){f2.call(this,a,b,c,d,e,f,h,m,n,p,q,t,v,y);var A=this;this.Kd=l;this.xH=!0;this.jO=this.aj=0;this.timer=new g.ag(200);this.timer.Ta("tick",function(){A.Bc()});
g.H(this,this.timer)};
$7a=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.u(O1()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Ne:a,Rf:["LAYOUT_TYPE_MEDIA_BREAK"]}};
b8a=function(a){a.jO=Date.now();a8a(a,a.aj);a.timer.start()};
a8a=function(a,b){b={current:b/1E3,duration:a.gz()/1E3};a.Kd.get().Qa("onAdPlaybackProgress",b)};
h2=function(a,b,c,d,e,f,h,l,m,n,p,q,t,v,y,A,E,K,I,F){f2.call(this,a,b,c,d,e,m,p,t,v,A,E,K,I,F);var S=this;this.zf=f;this.Ce=h;this.Wa=l;this.zc=n;this.Kd=q;this.Bg=y;this.adCpn="";this.Gf()||(this.UH=new g.Kq(function(){S.Yz("load_timeout",new X_("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4),a=R0(this.Da.get()),F=S0(F.get()),a&&F&&(this.Rz=new g.Kq(function(){var Y=dF(c.Ea,"metadata_type_preload_player_vars");
Y&&S.Ce.get().I.preloadVideoByPlayerVars(Y,2,300)})))};
c8a=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.u(O1()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Ne:a,Rf:["LAYOUT_TYPE_MEDIA"]}};
d8a=function(a,b,c,d,e,f,h){$1.call(this,a,b,c,d,f,h);this.j=e};
g8a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,v,y,A,E,K,I,F,S){if(L1(d,{Ne:["metadata_type_sub_layouts"],Rf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||void 0!==d.LA&&"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"===d.layoutType){var Y,ia=null!=(Y=d.LA)?Y:dF(d.Ea,"metadata_type_sub_layouts");a=new M7a(a,q,S,p,t,y,b,c,d,f,h,e,F);e=[];for(f={Iu:0};f.Iu<ia.length;f={Iu:f.Iu},f.Iu++){S=e8a({Rc:a.V8.bind(a),Wc:a.X8.bind(a),Ef:a.W8.bind(a)},c,ia[f.Iu],l,m,n,p,q,t,v,y,A,E,K,I,function(ta){return function(na){na.Gg(ia[ta.Iu],
"normal")}}(f),f.Iu,ia.length,F);
if(!S)return;e.push(S)}a.u=e;return a}if(f8a(c,F.get())&&L1(d,{Ne:[],Rf:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(y=e8a({Rc:function(){},
Wc:function(){},
Ef:function(){}},c,d,l,m,n,p,q,t,v,y,A,E,K,I,function(){},0,1,F))?new L7a(a,y,c,d,f,h,q,S,p,e,t):y;
if(L1(d,{Ne:[],Rf:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=e8a({Rc:a.Rc.bind(a),Wc:a.Wc.bind(a),Ef:a.Ef.bind(a)},c,d,l,m,n,p,q,t,v,y,A,E,K,I,function(){c2(h,d)},0,1,F))?new d8a(a,p,t,y,c,e,F):c};
e8a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,v,y,A,E,K,I){if(L1(c,$7a()))return new Z7a(a,b,c,d,e,m,p,q,t,v,function(){},A,E,K,I);
if(L1(c,c8a()))return fF(c.Ea,"metadata_type_ad_intro")?new h2(a,b,c,d,e,f,h,l,m,n,p,q,t,v,y,function(F){q.get().Qa("onAdIntroStateChange",F)},A,E,K,I):new h2(a,b,c,d,e,f,h,l,m,n,p,q,t,v,y,function(F){q.get().Tn(F)},A,E,K,I)};
f8a=function(a,b){var c=dF(a.Ea,"metadata_type_eligible_for_ssap");return void 0===c?(wG("Expected SSAP eligibility in PlayerBytes factory",a),!1):b.Gf(c)};
i2=function(a,b,c,d,e,f,h,l,m,n,p,q,t,v,y,A,E){this.Le=a;this.le=b;this.j=c;this.Ra=d;this.Ub=e;this.zf=f;this.Ce=h;this.Wa=l;this.La=m;this.zc=n;this.Sc=p;this.Kd=q;this.qg=t;this.Vb=v;this.Bg=y;this.Da=A;this.Oc=E};
j2=function(a,b,c,d,e,f,h,l){g.G.call(this);var m=this;this.Tb=a;this.Rb=b;this.Kf=d;this.La=e;this.Da=f;this.Ra=h;this.Oc=l;this.j=null;c.get().addListener(this);g.tb(this,function(){c.isDisposed()||c.get().removeListener(m)});
d.get().addListener(this);g.tb(this,function(){d.isDisposed()||d.get().removeListener(m)})};
o6a=function(a,b){if(a.j)wG("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.u(a.Kf.get().FJ);for(var c=b.next();!c.done;c=b.next())h8a(a,a.j,c.value)}};
h8a=function(a,b,c){var d=a.La.get().getCurrentTimeSec(1,!1);a.Da.get().I.W().Id()&&a.Ra.get().ri("sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.Yh.toFixed(3));eF(a.Tb.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=w1(a.Da.get()),n=a.Ra;if(e.Da.get().I.W().experiments.sb("enable_smearing_expansion_dai")){var p=g.xL(e.Da.get().I.W().experiments,
"max_prefetch_window_sec_for_livestream_optimization");var q=g.xL(e.Da.get().I.W().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={Un:Fra(c),sE:!1};var t=c.startSecs+c.Yh;if(0===d)m.Zo=new kr(0,1E3*t);else{q=c.startSecs-q;var v=q-d;m.Zo=0>=v?new kr(1E3*q,1E3*t):new kr(1E3*Math.floor(d+Math.random()*Math.min(v,p)),1E3*t)}p=m}else p={Un:Fra(c),sE:!1},t=c.startSecs+c.Yh,c.startSecs<=d?m=new kr(1E3*(c.startSecs-4),1E3*t):(q=Math.max(0,c.startSecs-d-10),m=new kr(1E3*Math.floor(d+
Math.random()*(m?0===d?0:Math.min(q,5):q)),1E3*t)),p.Zo=m;f=p4a(e,f,h,p,l,[new CE(c)]);e.Da.get().I.W().experiments.sb("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.Zo.start/1E3-d,n=c.startSecs-d,null!=(h=h.I.td())&&(h=h.Gc(),h.qoe&&(h=h.qoe,h.provider.Z.N("html5_add_dai_smearing_to_qoe")&&(l=1E3*g.UW(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().ri("daism","ct."+Date.now()+";cmt."+d+";smw."+(p.Zo.start/1E3-d)+
";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})};
k2=function(a,b,c,d,e,f,h,l,m){g.G.call(this);this.j=a;this.B=b;this.u=c;this.Tb=d;this.Rb=e;this.Jb=f;this.Sb=h;this.Da=l;this.Wa=m;this.tj=!0};
i8a=function(a,b,c){return P4a(a.Rb.get(),b.contentCpn,b.Sp,function(d){return Q4a(a.Jb.get(),d.slotId,c,b.adPlacementConfig,b.Sp,O_(a.Sb.get(),d))})};
l2=function(a){var b,c=null==(b=dF(a.Ea,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=dF(a.Ea,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=dF(a.Ea,"metadata_type_content_cpn"),f=dF(a.Ea,"metadata_type_instream_ad_player_overlay_renderer"),h=dF(a.Ea,"metadata_type_player_underlay_renderer"),l=dF(a.Ea,"metadata_type_ad_placement_config"),m=dF(a.Ea,"metadata_type_video_length_seconds");var n=fF(a.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?
dF(a.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):fF(a.Ea,"metadata_type_layout_enter_ms")&&fF(a.Ea,"metadata_type_layout_exit_ms")?(dF(a.Ea,"metadata_type_layout_exit_ms")-dF(a.Ea,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Sp:d,contentCpn:e,FP:c,uL:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,TH:n,inPlayerLayoutId:dF(a.Ea,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:dF(a.Ea,"metadata_type_linked_in_player_slot_id")}};
k8a=function(a,b){return j8a(a,b)};
l8a=function(a,b){b=j8a(a,b);if(!b)return null;var c;b.TH=null==(c=dF(a.Ea,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
j8a=function(a,b){var c,d=null==(c=dF(a.Ea,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;fF(a.Ea,"metadata_ad_video_is_listed")?c=dF(a.Ea,"metadata_ad_video_is_listed"):b?c=b.isListed:(wG("No layout metadata nor AdPlayback specified for ad video isListed"),c=!1);fF(a.Ea,"metadata_type_ad_info_ad_metadata")?b=dF(a.Ea,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.Fk,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(wG("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{o3:b,adPlacementConfig:dF(a.Ea,"metadata_type_ad_placement_config"),q3:c,contentCpn:dF(a.Ea,"metadata_type_content_cpn"),inPlayerLayoutId:dF(a.Ea,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:dF(a.Ea,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:dF(a.Ea,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,TH:void 0,FP:d,Sp:a.layoutId,videoLengthSeconds:dF(a.Ea,
"metadata_type_video_length_seconds")}};
m8a=function(a,b){this.callback=a;this.slot=b};
m2=function(){};
n8a=function(a,b,c){this.callback=a;this.slot=b;this.La=c};
o8a=function(a,b,c){this.callback=a;this.slot=b;this.La=c;this.u=!1;this.j=0};
p8a=function(a,b,c){this.callback=a;this.slot=b;this.La=c};
n2=function(a){this.La=a};
o2=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
p2=function(a){g.G.call(this);this.iK=a;this.Xb=new Map};
q8a=function(a,b){for(var c=[],d=g.u(a.Xb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof K0&&f.triggeringLayoutId===b&&c.push(e)}c.length?f0(a.iK(),c):wG("Survey is submitted but no registered triggers can be activated.")};
q2=function(a,b,c){p2.call(this,a);var d=this;this.Da=c;b.get().addListener(this);g.tb(this,function(){b.isDisposed()||b.get().removeListener(d)})};
r2=function(a){g.G.call(this);this.j=a;this.tj=!0;this.Xb=new Map;this.D=new Set;this.B=new Set;this.C=new Set;this.J=new Set;this.u=new Set};
s2=function(a,b){g.G.call(this);var c=this;this.j=a;this.Xb=new Map;b.get().addListener(this);g.tb(this,function(){b.isDisposed()||b.get().removeListener(c)})};
r8a=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 A0){var h=f.trigger.j===b;h===c?e.push(f):d&&h&&(wG("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
s8a=function(a){return a instanceof u6a||a instanceof v6a||a instanceof f1};
t2=function(a,b,c,d){g.G.call(this);var e=this;this.u=a;this.zc=b;this.La=c;this.Wa=d;this.tj=!0;this.Xb=new Map;this.j=new Set;c.get().addListener(this);g.tb(this,function(){c.isDisposed()||c.get().removeListener(e)})};
t8a=function(a,b,c,d,e,f,h,l,m,n){if(a.Wa.get().Nf(1).clientPlaybackNonce!==m)throw new iF("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Xb.set(c.triggerId,{hv:new o2(b,c,d,e),yv:f});a.zc.get().addCueRange(f,h,l,n,a)};
u8a=function(a,b){a=g.u(a.Xb.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.yv)return c}return""};
u2=function(a){g.G.call(this);this.j=a;this.tj=!0;this.Xb=new Map};
c2=function(a,b){b=b.layoutId;for(var c=[],d=g.u(a.Xb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof I0){var f;if(f=e.trigger.layoutId===b)f=(f=N3a.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&f0(a.j(),c)};
v2=function(a){g.G.call(this);this.j=a;this.tj=!0;this.Xb=new Map};
w2=function(a){g.G.call(this);this.j=a;this.Xb=new Map};
v8a=function(a,b){for(var c=[],d=g.u(a.Xb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof C0&&e.trigger.slotId===b&&c.push(e);1<=c.length&&f0(a.j(),c)};
x2=function(a,b,c){g.G.call(this);this.j=a;this.Gn=b;this.fb=c;this.Gn.get().addListener(this)};
y2=function(a,b,c,d,e,f){g.G.call(this);this.B=a;this.wf=b;this.Sb=c;this.Wa=d;this.fb=e;this.Da=f;this.j=this.u=null;this.C=!1;this.wf.get().addListener(this)};
cBa=function(a,b,c,d,e){var f=CG(a.fb.get(),"SLOT_TYPE_PLAYER_BYTES");a.u={slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],ib:"surface",Ea:new K_([])};a.j={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Yb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],ib:"surface",Ea:new K_(c),Cc:z3a(N_(a.Sb.get()),f,"SLOT_TYPE_PLAYER_BYTES",
1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};K3a(a.B(),a.u,a.j);d&&(L3a(a.B(),a.u,a.j),a.C=!0,e0(a.B(),a.u,a.j))};
z2=function(a){this.Su=a};
w8a=function(a,b){if(!a)return{Vu:[],adSlots:[],MA:!0,ssdaiAdsConfig:void 0};a.trackingParams&&yQ(a.trackingParams);if(a.adThrottled)return{Vu:[],adSlots:[],MA:!0,ssdaiAdsConfig:void 0};var c,d=null!=(c=a.adSlots)?c:[];c=a.playerAds;if(!c||!c.length)return{Vu:[],adSlots:d,MA:!1,ssdaiAdsConfig:void 0};c=c.map(function(f){return f.adPlacementRenderer}).filter(function(f){return!(!f||!f.renderer)});
if(!c.length)return{Vu:[],adSlots:d,MA:!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)})}return{Vu:c,
adSlots:d,MA:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
A2=function(a){g.G.call(this);this.I=a;this.listeners=[];this.j=new lB(this);g.H(this,this.j);this.j.T(this.I,"aduxclicked",this.onAdUxClicked);this.j.T(this.I,"aduxmouseover",this.LO);this.j.T(this.I,"aduxmouseout",this.KO);this.j.T(this.I,"muteadaccepted",this.O6)};
x8a=function(a,b,c){b=g.kn(b,function(d){return new RG(d,c,d.id)});
a.I.Qa("onAdUxUpdate",b)};
B2=function(a,b){a=g.u(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
C2=function(a,b,c){g.G.call(this);this.I=a;this.Da=b;this.Ra=c;this.listeners=[];this.C=!1;this.FJ=[];this.u=null;this.D=new OP(this,O6a(b.get()));this.B=new lBa;this.j=null};
z8a=function(a,b){C1(a.Ra.get(),{cuepointTrigger:{event:y8a(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.Yh,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.I.getVideoData(1).clientPlaybackNonce}})};
y8a=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 dl(a,"Unexpected cuepoint event")}};
D2=function(a){this.I=a};
E2=function(a){this.I=a};
F2=function(){this.listeners=[]};
G2=function(a){this.I=a};
A8a=function(a){this.I=a};
B8a=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.La=d;this.Ra=e;this.Da=f;a=dF(c.Ea,"metadata_type_ad_placement_config");this.jb=new N1(c.Yb,this.Ra,a,c.layoutId)};
C8a=function(a,b,c){this.La=a;this.Ra=b;this.Da=c};
H2=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Wa=d;this.Oc=e;this.Kf=f;this.La=h;this.jb=l;this.Ra=m;this.C=n;this.driftRecoveryMs=dF(this.layout.Ea,"metadata_type_drift_recovery_ms")||null};
D8a=function(a){var b=dF(a.layout.Ea,"metadata_type_layout_enter_ms"),c=dF(a.layout.Ea,"metadata_type_layout_exit_ms");a=a.Kf.get();b=mBa(a.B,b,c);return Math.min(c,null!==b?b:Infinity)};
E8a=function(a,b){var c;C1(a.Ra.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.Wa.get().zv)?void 0:c.clientPlaybackNonce,adClientData:a.layout.Cc.adClientDataEntry},b)})};
F8a=function(a,b,c,d,e,f,h,l,m,n,p){H2.call(this,a,b,c,d,e,f,h,l,m,n);this.B=p;this.u=this.j=null;a=g.u(this.B);for(b=a.next();!b.done;b=a.next())b=b.value,fF(b.zb().Ea,"metadata_type_survey_overlay")&&(this.u=b.zb().layoutId)};
H8a=function(a,b){var c=G8a(a,b);a.j={Ql:c};c?c.startRendering(c.zb()):b===a.u&&wG("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
G8a=function(a,b){return null==b?null:a.B.find(function(c){return c.zb().layoutId===b})||null};
I8a=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=fF(b.Ea,"metadata_type_survey_overlay"),t,v=(null==(t=dF(a.Ea,"metadata_type_fulfilled_layout"))?void 0:dF(t.Ea,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.cD(c,v,2,f,d,e,a.slotId),n.ri("ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.wy(c,v,2,f,d,e,a.slotId);n.ri("ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return wG("Unexpected failure to add to playback timeline",
a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&wG("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):wG("Invalid timeline playback ID");d+f>e&&h.RA(p,e-d);return p};
J8a=function(a,b){var c=dF(b.Ea,"metadata_type_sodar_extension_data");if(c)try{i7a(0,c)}catch(d){wG("Unexpected error when loading Sodar",a,b,{error:d})}};
L8a=function(a,b,c,d,e,f){K8a(a,b,new g.EP(c,new g.YP),d,e,!1,f)};
K8a=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;U7a(c)&&d2(e,0,null)&&(!R1(a,"impression")&&h&&h(),a.zd("impression"));R1(a,"impression")&&(g.GP(c,4)&&!g.GP(c,2)&&a.Dh("pause"),0>FP(c,4)&&!(0>FP(c,2))&&a.Dh("resume"),g.GP(c,16)&&.5<=e&&a.Dh("seek"),f&&g.GP(c,2)&&M8a(a,c.state,b,d,e))};
M8a=function(a,b,c,d,e,f,h){if(R1(a,"impression")){var l=1>=Math.abs(d-e);N8a(a,b,l?d:e,c,d,f,h&&l);l&&a.zd("complete")}};
N8a=function(a,b,c,d,e,f,h){Q1(a,1E3*c,h);0>=e||0>=c||(null==b?0:g.yP(b,16))||(null==b?0:g.yP(b,32))||(d2(c,.25*e,d)&&(f&&!R1(a,"first_quartile")&&f("first"),a.zd("first_quartile")),d2(c,.5*e,d)&&(f&&!R1(a,"midpoint")&&f("second"),a.zd("midpoint")),d2(c,.75*e,d)&&(f&&!R1(a,"third_quartile")&&f("third"),a.zd("third_quartile")))};
O8a=function(a,b){R1(a,"impression")&&a.Dh(b?"fullscreen":"end_fullscreen")};
P8a=function(a){R1(a,"impression")&&a.Dh("clickthrough")};
Q8a=function(a){a.Dh("active_view_measurable")};
R8a=function(a){R1(a,"impression")&&!R1(a,"seek")&&a.Dh("active_view_fully_viewable_audible_half_duration")};
S8a=function(a){R1(a,"impression")&&!R1(a,"seek")&&a.Dh("active_view_viewable")};
T8a=function(a){R1(a,"impression")&&!R1(a,"seek")&&a.Dh("audio_audible")};
U8a=function(a){R1(a,"impression")&&!R1(a,"seek")&&a.Dh("audio_measurable")};
V8a=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Oc=d;this.jb=e;this.La=f;this.xe=h;this.Ub=l;this.zf=m;this.Da=n;this.Ra=p;this.Wa=q;this.xH=!0;this.Tc=this.Kc=null;this.adCpn=void 0};
W8a=function(a,b,c){var d;a.Ra.get().ri("ads_qua","cpn."+dF(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Wa.get().Nf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
X8a=function(a,b){var c,d;a.Ra.get().ri("ads_imp","cpn."+dF(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Wa.get().Nf(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.Q(null==(d=dF(a.layout.Ea,"metadata_type_instream_ad_player_overlay_renderer"))?void 0:d.skipOrPreviewRenderer,T0))};
Y8a=function(a){return{enterMs:dF(a.Ea,"metadata_type_layout_enter_ms"),exitMs:dF(a.Ea,"metadata_type_layout_exit_ms")}};
Z8a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,v){H2.call(this,a,b,c,d,e,h,l,m,n,q);this.xe=f;this.zf=p;this.Ub=t;this.Da=v;this.Tc=this.Kc=null};
$8a=function(a,b){var c;a.Ra.get().ri("ads_imp","acpn."+(null==(c=a.Wa.get().Nf(2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
a9a=function(a,b,c){var d;a.Ra.get().ri("ads_qua","cpn."+dF(a.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Wa.get().Nf(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
b9a=function(a,b,c,d,e,f,h,l,m,n,p,q,t,v,y,A,E,K,I,F){this.Le=a;this.le=b;this.u=c;this.Wa=d;this.Oc=e;this.La=f;this.Ra=h;this.xe=l;this.Kf=m;this.Ub=n;this.zf=p;this.Ce=q;this.zc=t;this.Sc=v;this.Kd=y;this.qg=A;this.Vb=E;this.Bg=K;this.Da=I;this.j=F};
I2=function(a){g.G.call(this);this.j=a;this.Xb=new Map};
J2=function(a,b){for(var c=[],d=g.u(a.Xb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&f0(a.j(),c)};
K2=function(a,b){g.G.call(this);var c=this;this.C=a;this.u=new Map;this.B=new Map;this.j=null;b.get().addListener(this);g.tb(this,function(){b.isDisposed()||b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().zv)?void 0:d.slotId)||null};
c9a=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};
d9a=function(a,b,c,d,e){ZO.call(this,"image-companion",a,b,c,d,e)};
e9a=function(a,b,c,d,e,f,h,l){T1.call(this,a,b,c,d);this.Ra=e;this.Le=f;this.J=l;this.tj=!0;this.C=null;this.D=dF(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.Le().Jd.add(this);a=dF(c.Ea,"metadata_type_ad_placement_config");this.jb=new N1(c.Yb,this.Ra,a,c.layoutId)};
f9a=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];O1().forEach(function(b){a.push(b)});
return{Ne:a,Rf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
g9a=function(a,b,c,d,e){ZO.call(this,"shopping-companion",a,b,c,d,e)};
h9a=function(a,b,c,d,e,f,h,l){T1.call(this,a,b,c,d);this.Ra=e;this.Le=f;this.J=l;this.tj=!0;this.C=null;this.D=dF(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.Le().Jd.add(this);a=dF(c.Ea,"metadata_type_ad_placement_config");this.jb=new N1(c.Yb,this.Ra,a,c.layoutId)};
i9a=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];O1().forEach(function(b){a.push(b)});
return{Ne:a,Rf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
j9a=function(a,b,c,d,e,f){T1.call(this,a,b,c,d);this.Ra=e;this.Le=f;this.tj=!0;this.Le().Jd.add(this);a=dF(c.Ea,"metadata_type_ad_placement_config");this.jb=new N1(c.Yb,this.Ra,a,c.layoutId)};
k9a=function(){var a=["metadata_type_action_companion_ad_renderer"];O1().forEach(function(b){a.push(b)});
return{Ne:a,Rf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
l9a=function(a,b,c,d,e){ZO.call(this,"ads-engagement-panel",a,b,c,d,e)};
m9a=function(a,b,c,d,e,f,h,l){T1.call(this,a,b,c,d);this.Ra=e;this.Le=f;this.J=l;this.tj=!0;this.C=null;this.D=dF(c.Ea,"metadata_type_linked_player_bytes_layout_id");this.Le().Jd.add(this);a=dF(c.Ea,"metadata_type_ad_placement_config");this.jb=new N1(c.Yb,this.Ra,a,c.layoutId)};
n9a=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];O1().forEach(function(b){a.push(b)});
return{Ne:a,Rf:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
o9a=function(a,b,c,d,e){this.yc=a;this.Ra=b;this.Le=c;this.j=d;this.Ub=e};
p9a=function(a,b,c){ZO.call(this,"player-underlay",a,{},b,c);this.interactionLoggingClientData=c};
L2=function(a,b,c,d){T1.call(this,a,b,c,d)};
q9a=function(a){this.yc=a};
r9a=function(a,b,c,d){ZO.call(this,"survey-interstitial",a,b,c,d)};
M2=function(a,b,c,d,e){T1.call(this,c,a,b,d);this.Ra=e;a=dF(b.Ea,"metadata_type_ad_placement_config");this.jb=new N1(b.Yb,e,a,b.layoutId)};
N2=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
t9a=function(a,b,c){c=void 0===c?s9a:c;c.width<s9a.width&&(c=s9a);if(a.width<c.width||a.height<c.height)return{NJ:3,iF:501,errorMessage:"ad("+N2(c)+") larger than container("+N2(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{NJ:3,iF:501,errorMessage:"ad("+N2(c)+") to container("+N2(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{NJ:3,iF:501,errorMessage:"ad("+N2(c)+") covers container("+N2(a)+") center."}};
u9a=function(a,b){var c=dF(a.Ea,"metadata_type_ad_placement_config");return new N1(a.Yb,b,c,a.layoutId)};
O2=function(a){return dF(a.Ea,"metadata_type_invideo_overlay_ad_renderer")};
v9a=function(a,b,c,d){ZO.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d};
P2=function(a,b,c,d,e,f,h,l,m,n,p,q){T1.call(this,f,a,b,e);this.Ra=c;this.C=h;this.La=l;this.Vb=m;this.Da=n;this.J=p;this.D=q;this.jb=u9a(b,c)};
w9a=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];O1().forEach(function(b){a.push(b)});
return{Ne:a,Rf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
Q2=function(a,b,c,d,e,f,h,l,m,n,p,q,t){T1.call(this,f,a,b,e);this.Ra=c;this.C=h;this.K=l;this.La=m;this.Vb=n;this.Da=p;this.J=q;this.D=t;this.jb=u9a(b,c)};
x9a=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.u(O1()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Ne:a,Rf:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
R2=function(a){this.La=a;this.j=!1};
y9a=function(a,b,c){ZO.call(this,"survey",a,{},b,c)};
z9a=function(a,b,c,d,e,f,h){T1.call(this,c,a,b,d);this.C=e;this.La=f;this.Da=h};
A9a=function(a,b,c,d,e,f,h,l,m,n){this.yc=a;this.La=b;this.Ra=c;this.C=d;this.Ub=e;this.u=f;this.B=h;this.Vb=l;this.Da=m;this.j=n};
S2=function(a){g.G.call(this);this.B=a;this.tj=!0;this.Xb=new Map;this.j=new Map;this.u=new Map};
B9a=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.u.get(d.value.triggerId))&&c.push(d)}return c};
C9a=function(a,b,c,d,e){g.G.call(this);var f=this;this.fb=m0(function(){return new BG});
g.H(this,this.fb);this.Jb=m0(function(){return new g1(f.fb,f.Da)});
g.H(this,this.Jb);this.Vc=m0(function(){return new e1});
g.H(this,this.Vc);this.Tb=m0(function(){return new b1(a)});
g.H(this,this.Tb);this.Rb=m0(function(){return new m1(f.fb,f.Jb,f.Da)});
g.H(this,this.Rb);this.xe=m0(function(){return new q1});
g.H(this,this.xe);this.qg=m0(function(){return new $O(b.W())});
g.H(this,this.qg);this.yc=m0(function(){return new A2(b)});
g.H(this,this.yc);this.Vb=m0(function(){return new n0(e)});
g.H(this,this.Vb);this.Sc=m0(function(){return new PP(b)});
g.H(this,this.Sc);this.zc=m0(function(){return new s1(b)});
g.H(this,this.zc);this.Ce=m0(function(){return new D2(b)});
g.H(this,this.Ce);this.Kd=m0(function(){return new t1(b)});
g.H(this,this.Kd);this.Da=m0(function(){return new u1(b)});
g.H(this,this.Da);this.Yf=m0(function(){return new z2(d)});
g.H(this,this.Yf);this.Sb=m0(function(){return new P_(f.Da)});
g.H(this,this.Sb);this.ze=m0(function(){return new $0(f.fb,f.Rb,f.Jb,f.Da,f.Sb,"SLOT_TYPE_ABOVE_FEED",f.Wj)});
g.H(this,this.ze);this.Bg=m0(function(){return new E2(b)});
g.H(this,this.Bg);this.wf=m0(function(){return new F2});
g.H(this,this.wf);this.Gn=m0(function(){return new H1});
g.H(this,this.Gn);this.Wa=m0(function(){return new D1(b,f.xe,f.Da)});
g.H(this,this.Wa);this.ac=new p1(this.Da,this.Sb,this.Wa);g.H(this,this.ac);this.Kf=m0(function(){return new C2(b,f.Da,f.Ra)});
g.H(this,this.Kf);this.Oc=m0(function(){return new G2(b)});
g.H(this,this.Oc);this.La=m0(function(){return new E1(b,f.Wa,f.Da)});
g.H(this,this.La);this.zf=m0(function(){return new I1});
this.Ub=m0(function(){return new x1(f.La,b)});
g.H(this,this.Ub);this.Ra=m0(function(){return new A1(b,f.Vc,f.Ub,f.Wa)});
g.H(this,this.Ra);this.Ai=new k2(l2,T2,function(l,m,n,p){return Q0(f.Jb.get(),l,m,n,p)},this.Tb,this.Rb,this.Jb,this.Sb,this.Da,this.Wa);
g.H(this,this.Ai);this.fd=new xG(this.Tb,this.ze,c,this.Da,a,this.Wa,this.La,this.Sc);g.H(this,this.fd);var h=new r1(b,this.fd,this.La,this.Wa,this.Kf);this.Hg=m0(function(){return h});
this.Rt=h;this.Wj=new j2(this.Tb,this.Rb,this.Hg,this.Kf,this.La,this.Da,this.Ra,this.Oc);g.H(this,this.Wj);this.Hf=new d1(this.Tb,this.Rb,this.zc,this.Hg);g.H(this,this.Hf);this.qd=new cF(this.Da,this.Tb,this.Rb,this.ze,this.Wa,this.Hf,c);g.H(this,this.qd);this.Wh=m0(function(){return new J1(f.Yf,f.Jb,f.Sb,f.Da,f.Ra,f.La,f.Oc)});
g.H(this,this.Wh);this.oe=m0(function(){return new K1});
g.H(this,this.oe);this.Zf=new q2(a,this.yc,this.Da);g.H(this,this.Zf);this.Pb=new r2(a);g.H(this,this.Pb);this.uv=new I2(a);g.H(this,this.uv);this.vg=new s2(a,this.Hg);g.H(this,this.vg);this.jf=new t2(a,this.zc,this.La,this.Wa);g.H(this,this.jf);this.gw=new K2(a,this.Wa);g.H(this,this.gw);this.Ge=new u2(a);g.H(this,this.Ge);this.le=new w2(a);g.H(this,this.le);this.xi=new v2(a);g.H(this,this.xi);this.Tw=new S2(a);g.H(this,this.Tw);this.le=new w2(a);g.H(this,this.le);this.Xd=m0(function(){return new m2});
g.H(this,this.Xd);this.Bi=m0(function(){return new n2(f.La)});
g.H(this,this.Bi);this.JT=m0(function(){return new o9a(f.yc,f.Ra,a,f.Vc,f.Ub)});
g.H(this,this.JT);this.Vh=m0(function(){return new M1(f.qd,f.Tb,f.fb)});
g.H(this,this.Vh);this.ai=m0(function(){return new S1(f.Da,f.Ra,f.Ge,f.Ub)});
g.H(this,this.ai);this.zi=m0(function(){return new b9a(a,f.le,f.Ge,f.Wa,f.Oc,f.La,f.Ra,f.xe,f.Kf,f.Ub,f.zf,f.Ce,f.zc,f.Sc,f.Kd,f.qg,f.Vb,f.Bg,f.Da,f.Vc)});
g.H(this,this.zi);this.mY=m0(function(){return new C8a(f.La,f.Ra,f.Da)});
g.H(this,this.mY);this.yn=m0(function(){return new A9a(f.yc,f.La,f.Ra,f.Vc,f.Ub,f.uv,f.Tw,f.Vb,f.Da,c)});
g.H(this,this.yn);this.c_=m0(function(){return new q9a(f.yc)});
g.H(this,this.c_);this.rL=new x2(a,this.Gn,this.fb);g.H(this,this.rL);this.Rn=new y2(a,this.wf,this.Sb,this.Wa,this.fb,this.Da);g.H(this,this.Rn);this.Ff={Aw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Wj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Hf]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Wh],["SLOT_TYPE_ABOVE_FEED",this.oe],["SLOT_TYPE_FORECASTING",this.oe],["SLOT_TYPE_IN_PLAYER",this.oe],["SLOT_TYPE_PLAYER_BYTES",this.oe],["SLOT_TYPE_PLAYER_UNDERLAY",this.oe],["SLOT_TYPE_PLAYBACK_TRACKING",this.oe]]),Bl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Zf],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Zf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Pb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Pb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Pb],
["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Pb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Pb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Pb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Pb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Pb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Pb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.uv],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vg],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.jf],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.jf],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.jf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.jf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.jf],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.jf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.jf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.gw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.gw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",
this.Ge],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xi],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Tw],["TRIGGER_TYPE_AD_BREAK_STARTED",this.le]]),Pr:new Map([["SLOT_TYPE_ABOVE_FEED",this.Xd],["SLOT_TYPE_AD_BREAK_REQUEST",this.Xd],["SLOT_TYPE_FORECASTING",this.Xd],["SLOT_TYPE_IN_PLAYER",this.Xd],["SLOT_TYPE_PLAYER_BYTES",this.Bi],["SLOT_TYPE_PLAYER_UNDERLAY",this.Xd],["SLOT_TYPE_PLAYBACK_TRACKING",this.Xd]]),Zq:new Map([["SLOT_TYPE_ABOVE_FEED",
this.JT],["SLOT_TYPE_AD_BREAK_REQUEST",this.Vh],["SLOT_TYPE_FORECASTING",this.ai],["SLOT_TYPE_PLAYER_BYTES",this.zi],["SLOT_TYPE_PLAYBACK_TRACKING",this.mY],["SLOT_TYPE_IN_PLAYER",this.yn],["SLOT_TYPE_PLAYER_UNDERLAY",this.c_]])};this.listeners=[this.Vc.get()];this.dw={qd:this.qd,gr:this.wf.get(),Qi:this.Da.get(),tb:this.Vb.get(),Vt:this.La.get(),fd:this.fd,xn:this.fb.get(),er:this.Gn.get(),dl:this.Zf,yj:this.Vc.get(),Qn:this.Wa.get()}};
D9a=function(a,b,c,d,e,f,h,l,m,n){this.yc=a;this.La=b;this.Ra=c;this.C=d;this.Ub=e;this.u=f;this.B=h;this.Vb=l;this.Da=m;this.j=n};
E9a=function(a,b,c,d,e){g.G.call(this);var f=this;this.fb=m0(function(){return new BG});
g.H(this,this.fb);this.Jb=m0(function(){return new g1(f.fb,f.Da)});
g.H(this,this.Jb);this.Vc=m0(function(){return new e1});
g.H(this,this.Vc);this.Tb=m0(function(){return new b1(a)});
g.H(this,this.Tb);this.Rb=m0(function(){return new m1(f.fb,f.Jb,f.Da)});
g.H(this,this.Rb);this.xe=m0(function(){return new q1});
g.H(this,this.xe);this.qg=m0(function(){return new $O(b.W())});
g.H(this,this.qg);this.yc=m0(function(){return new A2(b)});
g.H(this,this.yc);this.Vb=m0(function(){return new n0(e)});
g.H(this,this.Vb);this.Sc=m0(function(){return new PP(b)});
g.H(this,this.Sc);this.zc=m0(function(){return new s1(b)});
g.H(this,this.zc);this.Ce=m0(function(){return new D2(b)});
g.H(this,this.Ce);this.Kd=m0(function(){return new t1(b)});
g.H(this,this.Kd);this.Da=m0(function(){return new u1(b)});
g.H(this,this.Da);this.Yf=m0(function(){return new z2(d)});
g.H(this,this.Yf);this.Sb=m0(function(){return new P_(f.Da)});
g.H(this,this.Sb);this.ze=m0(function(){return new $0(f.fb,f.Rb,f.Jb,f.Da,f.Sb,null,f.Wj)});
g.H(this,this.ze);this.Bg=m0(function(){return new E2(b)});
g.H(this,this.Bg);this.wf=m0(function(){return new F2});
g.H(this,this.wf);this.Gn=m0(function(){return new H1});
g.H(this,this.Gn);this.Wa=m0(function(){return new D1(b,f.xe,f.Da)});
g.H(this,this.Wa);this.ac=new p1(this.Da,this.Sb,this.Wa);g.H(this,this.ac);this.Kf=m0(function(){return new C2(b,f.Da,f.Ra)});
this.La=m0(function(){return new E1(b,f.Wa,f.Da)});
g.H(this,this.La);this.Ub=m0(function(){return new x1(f.La,b)});
g.H(this,this.Ub);this.Ra=m0(function(){return new A1(b,f.Vc,f.Ub,f.Wa)});
g.H(this,this.Ra);this.zf=m0(function(){return new I1});
g.H(this,this.zf);this.Ai=new k2(l2,T2,function(l,m,n,p){return Q0(f.Jb.get(),l,m,n,p)},this.Tb,this.Rb,this.Jb,this.Sb,this.Da,this.Wa);
g.H(this,this.Ai);this.fd=new xG(this.Tb,this.ze,c,this.Da,a,this.Wa,this.La,this.Sc);g.H(this,this.fd);var h=new r1(b,this.fd,this.La,this.Wa,this.Kf);this.Hg=m0(function(){return h});
this.Rt=h;this.Wj=new j2(this.Tb,this.Rb,this.Hg,this.Kf,this.La,this.Da,this.Ra);g.H(this,this.Wj);this.Hf=new d1(this.Tb,this.Rb,this.zc,this.Hg);g.H(this,this.Hf);this.qd=new cF(this.Da,this.Tb,this.Rb,this.ze,this.Wa,this.Hf,c);g.H(this,this.qd);this.Wh=m0(function(){return new J1(f.Yf,f.Jb,f.Sb,f.Da,f.Ra,f.La)});
g.H(this,this.Wh);this.oe=m0(function(){return new K1});
g.H(this,this.oe);this.Zf=new q2(a,this.yc,this.Da);g.H(this,this.Zf);this.Pb=new r2(a);g.H(this,this.Pb);this.uv=new I2(a);g.H(this,this.uv);this.vg=new s2(a,this.Hg);g.H(this,this.vg);this.jf=new t2(a,this.zc,this.La,this.Wa);g.H(this,this.jf);this.Ge=new u2(a);g.H(this,this.Ge);this.xi=new v2(a);g.H(this,this.xi);this.Tw=new S2(a);g.H(this,this.Tw);this.Oc=m0(function(){return new G2(b)});
g.H(this,this.Oc);this.le=new w2(a);g.H(this,this.le);this.Xd=m0(function(){return new m2});
g.H(this,this.Xd);this.Bi=m0(function(){return new n2(f.La)});
g.H(this,this.Bi);this.Vh=m0(function(){return new M1(f.qd,f.Tb,f.fb)});
g.H(this,this.Vh);this.ai=m0(function(){return new S1(f.Da,f.Ra,f.Ge,f.Ub)});
g.H(this,this.ai);this.yn=m0(function(){return new D9a(f.yc,f.La,f.Ra,f.Vc,f.Ub,f.uv,f.Tw,f.Vb,f.Da,c)});
g.H(this,this.yn);this.zi=m0(function(){return new i2(a,f.le,f.Ge,f.Ra,f.Ub,f.zf,f.Ce,f.Wa,f.La,f.zc,f.Sc,f.Kd,f.qg,f.Vb,f.Bg,f.Da,f.Oc)});
g.H(this,this.zi);this.rL=new x2(a,this.Gn,this.fb);g.H(this,this.rL);this.Rn=new y2(a,this.wf,this.Sb,this.Wa,this.fb,this.Da);g.H(this,this.Rn);this.Ff={Aw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Wj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Hf]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Wh],["SLOT_TYPE_FORECASTING",this.oe],["SLOT_TYPE_IN_PLAYER",this.oe],["SLOT_TYPE_PLAYER_BYTES",this.oe]]),Bl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Zf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Pb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Pb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Pb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Pb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",
this.Pb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Pb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Pb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.uv],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.jf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.jf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.jf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ge],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",
this.xi],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Tw],["TRIGGER_TYPE_AD_BREAK_STARTED",this.le]]),Pr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xd],["SLOT_TYPE_FORECASTING",this.Xd],["SLOT_TYPE_IN_PLAYER",this.Xd],["SLOT_TYPE_PLAYER_BYTES",this.Bi]]),Zq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vh],["SLOT_TYPE_FORECASTING",this.ai],["SLOT_TYPE_IN_PLAYER",this.yn],["SLOT_TYPE_PLAYER_BYTES",this.zi]])};this.listeners=[this.Vc.get()];this.dw={qd:this.qd,gr:this.wf.get(),Qi:this.Da.get(),
tb:this.Vb.get(),Vt:this.La.get(),fd:this.fd,xn:this.fb.get(),er:this.Gn.get(),dl:this.Zf,yj:this.Vc.get(),Qn:this.Wa.get()}};
F9a=function(a,b,c,d,e){g.G.call(this);var f=this;this.fb=m0(function(){return new BG});
g.H(this,this.fb);this.Jb=m0(function(){return new g1(f.fb,f.Da)});
g.H(this,this.Jb);this.Vc=m0(function(){return new e1});
g.H(this,this.Vc);this.Tb=m0(function(){return new b1(a)});
g.H(this,this.Tb);this.Rb=m0(function(){return new m1(f.fb,f.Jb,f.Da)});
g.H(this,this.Rb);this.xe=m0(function(){return new q1});
g.H(this,this.xe);this.qg=m0(function(){return new $O(b.W())});
g.H(this,this.qg);this.yc=m0(function(){return new A2(b)});
g.H(this,this.yc);this.Vb=m0(function(){return new n0(e)});
g.H(this,this.Vb);this.Sc=m0(function(){return new PP(b)});
g.H(this,this.Sc);this.zc=m0(function(){return new s1(b)});
g.H(this,this.zc);this.Ce=m0(function(){return new D2(b)});
g.H(this,this.Ce);this.Kd=m0(function(){return new t1(b)});
g.H(this,this.Kd);this.Da=m0(function(){return new u1(b)});
g.H(this,this.Da);this.Yf=m0(function(){return new z2(d)});
g.H(this,this.Yf);this.Sb=m0(function(){return new P_(f.Da)});
g.H(this,this.Sb);this.ze=m0(function(){return new $0(f.fb,f.Rb,f.Jb,f.Da,f.Sb,null,null)});
g.H(this,this.ze);this.Bg=m0(function(){return new E2(b)});
g.H(this,this.Bg);this.wf=m0(function(){return new F2});
g.H(this,this.wf);this.Wa=m0(function(){return new D1(b,f.xe,f.Da)});
g.H(this,this.Wa);this.ac=new p1(this.Da,this.Sb,this.Wa);g.H(this,this.ac);this.La=m0(function(){return new E1(b,f.Wa,f.Da)});
g.H(this,this.La);this.Ub=m0(function(){return new x1(f.La,b)});
g.H(this,this.Ub);this.Ra=m0(function(){return new A1(b,f.Vc,f.Ub,f.Wa)});
g.H(this,this.Ra);this.zf=m0(function(){return new I1});
g.H(this,this.zf);this.Ai=new k2(l2,T2,function(l,m,n,p){return Q0(f.Jb.get(),l,m,n,p)},this.Tb,this.Rb,this.Jb,this.Sb,this.Da,this.Wa);
g.H(this,this.Ai);this.fd=new xG(this.Tb,this.ze,c,this.Da,a,this.Wa,this.La,this.Sc);g.H(this,this.fd);var h=new r1(b,this.fd,this.La,this.Wa);this.Hg=m0(function(){return h});
this.Rt=h;this.Hf=new d1(this.Tb,this.Rb,this.zc,this.Hg);g.H(this,this.Hf);this.qd=new cF(this.Da,this.Tb,this.Rb,this.ze,this.Wa,this.Hf,c);g.H(this,this.qd);this.Wh=m0(function(){return new J1(f.Yf,f.Jb,f.Sb,f.Da,f.Ra,f.La)});
g.H(this,this.Wh);this.oe=m0(function(){return new K1});
g.H(this,this.oe);this.Zf=new q2(a,this.yc,this.Da);g.H(this,this.Zf);this.Pb=new r2(a);g.H(this,this.Pb);this.vg=new s2(a,this.Hg);g.H(this,this.vg);this.jf=new t2(a,this.zc,this.La,this.Wa);g.H(this,this.jf);this.Ge=new u2(a);g.H(this,this.Ge);this.xi=new v2(a);g.H(this,this.xi);this.Oc=m0(function(){return new G2(b)});
g.H(this,this.Oc);this.le=new w2(a);g.H(this,this.le);this.Xd=m0(function(){return new m2});
g.H(this,this.Xd);this.Bi=m0(function(){return new n2(f.La)});
g.H(this,this.Bi);this.Vh=m0(function(){return new M1(f.qd,f.Tb,f.fb)});
g.H(this,this.Vh);this.ai=m0(function(){return new S1(f.Da,f.Ra,f.Ge,f.Ub)});
g.H(this,this.ai);this.jY=m0(function(){return new K7a(f.yc,f.La,f.Ra,f.Vc,c,f.Da)});
g.H(this,this.jY);this.zi=m0(function(){return new i2(a,f.le,f.Ge,f.Ra,f.Ub,f.zf,f.Ce,f.Wa,f.La,f.zc,f.Sc,f.Kd,f.qg,f.Vb,f.Bg,f.Da,f.Oc)});
g.H(this,this.zi);this.Rn=new y2(a,this.wf,this.Sb,this.Wa,this.fb,this.Da);g.H(this,this.Rn);this.Ff={Aw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Hf]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wh],["SLOT_TYPE_FORECASTING",this.oe],["SLOT_TYPE_IN_PLAYER",this.oe],["SLOT_TYPE_PLAYER_BYTES",
this.oe]]),Bl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Zf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Pb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Pb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Pb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Pb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Pb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Pb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.vg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.jf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.jf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ge],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.le]]),Pr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xd],["SLOT_TYPE_ABOVE_FEED",this.Xd],["SLOT_TYPE_FORECASTING",this.Xd],["SLOT_TYPE_IN_PLAYER",this.Xd],["SLOT_TYPE_PLAYER_BYTES",this.Bi]]),
Zq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vh],["SLOT_TYPE_FORECASTING",this.ai],["SLOT_TYPE_IN_PLAYER",this.jY],["SLOT_TYPE_PLAYER_BYTES",this.zi]])};this.listeners=[this.Vc.get()];this.dw={qd:this.qd,gr:this.wf.get(),Qi:this.Da.get(),tb:this.Vb.get(),Vt:this.La.get(),fd:this.fd,xn:this.fb.get(),er:null,dl:this.Zf,yj:this.Vc.get(),Qn:this.Wa.get()}};
G9a=function(a,b,c,d,e){g.G.call(this);var f=this;this.fb=m0(function(){return new BG});
g.H(this,this.fb);this.Jb=m0(function(){return new g1(f.fb,f.Da)});
g.H(this,this.Jb);this.Vc=m0(function(){return new e1});
g.H(this,this.Vc);this.Tb=m0(function(){return new b1(a)});
g.H(this,this.Tb);this.Rb=m0(function(){return new m1(f.fb,f.Jb,f.Da)});
g.H(this,this.Rb);this.xe=m0(function(){return new q1});
g.H(this,this.xe);this.qg=m0(function(){return new $O(b.W())});
g.H(this,this.qg);this.yc=m0(function(){return new A2(b)});
g.H(this,this.yc);this.Vb=m0(function(){return new n0(e)});
g.H(this,this.Vb);this.Sc=m0(function(){return new PP(b)});
g.H(this,this.Sc);this.zc=m0(function(){return new s1(b)});
g.H(this,this.zc);this.Ce=m0(function(){return new D2(b)});
g.H(this,this.Ce);this.Kd=m0(function(){return new t1(b)});
g.H(this,this.Kd);this.Da=m0(function(){return new u1(b)});
g.H(this,this.Da);this.Yf=m0(function(){return new z2(d)});
g.H(this,this.Yf);this.Sb=m0(function(){return new P_(f.Da)});
g.H(this,this.Sb);this.ze=m0(function(){return new $0(f.fb,f.Rb,f.Jb,f.Da,f.Sb,null,null)});
g.H(this,this.ze);this.Bg=m0(function(){return new E2(b)});
g.H(this,this.Bg);this.wf=m0(function(){return new F2});
g.H(this,this.wf);this.Wa=m0(function(){return new D1(b,f.xe,f.Da)});
g.H(this,this.Wa);this.ac=new p1(this.Da,this.Sb,this.Wa);g.H(this,this.ac);this.La=m0(function(){return new E1(b,f.Wa,f.Da)});
g.H(this,this.La);this.Ub=m0(function(){return new x1(f.La,b)});
g.H(this,this.Ub);this.Ra=m0(function(){return new A1(b,f.Vc,f.Ub,f.Wa)});
g.H(this,this.Ra);this.zf=m0(function(){return new I1});
g.H(this,this.zf);this.Ai=new k2(l2,T2,function(l,m,n,p){return Q0(f.Jb.get(),l,m,n,p)},this.Tb,this.Rb,this.Jb,this.Sb,this.Da,this.Wa);
g.H(this,this.Ai);this.fd=new xG(this.Tb,this.ze,c,this.Da,a,this.Wa,this.La,this.Sc);g.H(this,this.fd);var h=new r1(b,this.fd,this.La,this.Wa);this.Hg=m0(function(){return h});
this.Rt=h;this.Hf=new d1(this.Tb,this.Rb,this.zc,this.Hg);g.H(this,this.Hf);this.qd=new cF(this.Da,this.Tb,this.Rb,this.ze,this.Wa,this.Hf,c);g.H(this,this.qd);this.Wh=m0(function(){return new J1(f.Yf,f.Jb,f.Sb,f.Da,f.Ra,f.La)});
g.H(this,this.Wh);this.oe=m0(function(){return new K1});
g.H(this,this.oe);this.Zf=new q2(a,this.yc,this.Da);g.H(this,this.Zf);this.Pb=new r2(a);g.H(this,this.Pb);this.vg=new s2(a,this.Hg);g.H(this,this.vg);this.jf=new t2(a,this.zc,this.La,this.Wa);g.H(this,this.jf);this.Ge=new u2(a);g.H(this,this.Ge);this.xi=new v2(a);g.H(this,this.xi);this.Oc=m0(function(){return new G2(b)});
g.H(this,this.Oc);this.le=new w2(a);g.H(this,this.le);this.Xd=m0(function(){return new m2});
g.H(this,this.Xd);this.Bi=m0(function(){return new n2(f.La)});
g.H(this,this.Bi);this.Vh=m0(function(){return new M1(f.qd,f.Tb,f.fb)});
g.H(this,this.Vh);this.ai=m0(function(){return new S1(f.Da,f.Ra,f.Ge,f.Ub)});
g.H(this,this.ai);this.yn=m0(function(){return new K7a(f.yc,f.La,f.Ra,f.Vc,c,f.Da)});
g.H(this,this.yn);this.zi=m0(function(){return new i2(a,f.le,f.Ge,f.Ra,f.Ub,f.zf,f.Ce,f.Wa,f.La,f.zc,f.Sc,f.Kd,f.qg,f.Vb,f.Bg,f.Da,f.Oc)});
g.H(this,this.zi);this.Rn=new y2(a,this.wf,this.Sb,this.Wa,this.fb,this.Da);g.H(this,this.Rn);this.Ff={Aw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Hf]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wh],["SLOT_TYPE_FORECASTING",this.oe],["SLOT_TYPE_IN_PLAYER",this.oe],["SLOT_TYPE_PLAYER_BYTES",
this.oe]]),Bl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Zf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Pb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Pb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Pb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Pb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Pb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Pb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.vg],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.jf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ge],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.le]]),Pr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xd],["SLOT_TYPE_FORECASTING",this.Xd],["SLOT_TYPE_IN_PLAYER",this.Xd],["SLOT_TYPE_PLAYER_BYTES",this.Bi]]),Zq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vh],["SLOT_TYPE_FORECASTING",this.ai],
["SLOT_TYPE_IN_PLAYER",this.yn],["SLOT_TYPE_PLAYER_BYTES",this.zi]])};this.listeners=[this.Vc.get()];this.dw={qd:this.qd,gr:this.wf.get(),Qi:this.Da.get(),tb:this.Vb.get(),Vt:this.La.get(),fd:this.fd,xn:this.fb.get(),er:null,dl:this.Zf,yj:this.Vc.get(),Qn:this.Wa.get()}};
U2=function(a,b,c,d,e,f,h,l,m){X1.call(this,a,b,c,d,e,f,h,m);this.Rm=l};
H9a=function(){var a=I7a();a.Ne.push("metadata_type_ad_info_ad_metadata");return a};
I9a=function(a,b,c,d,e,f){this.yc=a;this.La=b;this.Ra=c;this.u=d;this.Rm=e;this.j=f};
J9a=function(a,b,c,d,e){g.G.call(this);var f=this;this.fb=m0(function(){return new BG});
g.H(this,this.fb);this.Jb=m0(function(){return new g1(f.fb,f.Da)});
g.H(this,this.Jb);this.Vc=m0(function(){return new e1});
g.H(this,this.Vc);this.Tb=m0(function(){return new b1(a)});
g.H(this,this.Tb);this.Rb=m0(function(){return new m1(f.fb,f.Jb,f.Da)});
g.H(this,this.Rb);this.xe=m0(function(){return new q1});
g.H(this,this.xe);this.Rm=m0(function(){return new A8a(b)});
g.H(this,this.Rm);this.qg=m0(function(){return new $O(b.W())});
g.H(this,this.qg);this.yc=m0(function(){return new A2(b)});
g.H(this,this.yc);this.Vb=m0(function(){return new n0(e)});
g.H(this,this.Vb);this.Sc=m0(function(){return new PP(b)});
g.H(this,this.Sc);this.zc=m0(function(){return new s1(b)});
g.H(this,this.zc);this.Ce=m0(function(){return new D2(b)});
g.H(this,this.Ce);this.Kd=m0(function(){return new t1(b)});
g.H(this,this.Kd);this.Da=m0(function(){return new u1(b)});
g.H(this,this.Da);this.Yf=m0(function(){return new z2(d)});
g.H(this,this.Yf);this.Sb=m0(function(){return new P_(f.Da)});
g.H(this,this.Sb);this.ze=m0(function(){return new $0(f.fb,f.Rb,f.Jb,f.Da,f.Sb,null,null)});
g.H(this,this.ze);this.Bg=m0(function(){return new E2(b)});
g.H(this,this.Bg);this.wf=m0(function(){return new F2});
g.H(this,this.wf);this.Wa=m0(function(){return new D1(b,f.xe,f.Da)});
g.H(this,this.Wa);this.ac=new p1(this.Da,this.Sb,this.Wa);g.H(this,this.ac);this.La=m0(function(){return new E1(b,f.Wa,f.Da)});
g.H(this,this.La);this.Ub=m0(function(){return new x1(f.La,b)});
g.H(this,this.Ub);this.Ra=m0(function(){return new A1(b,f.Vc,f.Ub,f.Wa)});
g.H(this,this.Ra);this.zf=m0(function(){return new I1});
g.H(this,this.zf);this.Ai=new k2(k8a,T2,function(l,m,n,p){return y6a(f.Jb.get(),l,m,n,p)},this.Tb,this.Rb,this.Jb,this.Sb,this.Da,this.Wa);
g.H(this,this.Ai);this.fd=new xG(this.Tb,this.ze,c,this.Da,a,this.Wa,this.La,this.Sc);g.H(this,this.fd);var h=new r1(b,this.fd,this.La,this.Wa);this.Hg=m0(function(){return h});
this.Rt=h;this.Hf=new d1(this.Tb,this.Rb,this.zc,this.Hg);g.H(this,this.Hf);this.qd=new cF(this.Da,this.Tb,this.Rb,this.ze,this.Wa,this.Hf,c);g.H(this,this.qd);this.Wh=m0(function(){return new J1(f.Yf,f.Jb,f.Sb,f.Da,f.Ra,f.La)});
g.H(this,this.Wh);this.oe=m0(function(){return new K1});
g.H(this,this.oe);this.Zf=new q2(a,this.yc,this.Da);g.H(this,this.Zf);this.Pb=new r2(a);g.H(this,this.Pb);this.vg=new s2(a,this.Hg);g.H(this,this.vg);this.jf=new t2(a,this.zc,this.La,this.Wa);g.H(this,this.jf);this.Ge=new u2(a);g.H(this,this.Ge);this.xi=new v2(a);g.H(this,this.xi);this.Oc=m0(function(){return new G2(b)});
g.H(this,this.Oc);this.le=new w2(a);g.H(this,this.le);this.Xd=m0(function(){return new m2});
g.H(this,this.Xd);this.Bi=m0(function(){return new n2(f.La)});
g.H(this,this.Bi);this.Vh=m0(function(){return new M1(f.qd,f.Tb,f.fb)});
g.H(this,this.Vh);this.ai=m0(function(){return new S1(f.Da,f.Ra,f.Ge,f.Ub)});
g.H(this,this.ai);this.zi=m0(function(){return new i2(a,f.le,f.Ge,f.Ra,f.Ub,f.zf,f.Ce,f.Wa,f.La,f.zc,f.Sc,f.Kd,f.qg,f.Vb,f.Bg,f.Da,f.Oc)});
g.H(this,this.zi);this.x_=m0(function(){return new I9a(f.yc,f.La,f.Ra,f.Vc,f.Rm,c)});
g.H(this,this.x_);this.Rn=new y2(a,this.wf,this.Sb,this.Wa,this.fb,this.Da);g.H(this,this.Rn);this.Ff={Aw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Hf]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wh],["SLOT_TYPE_FORECASTING",this.oe],["SLOT_TYPE_IN_PLAYER",this.oe],["SLOT_TYPE_PLAYER_BYTES",
this.oe]]),Bl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Zf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Pb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Pb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Pb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Pb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Pb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Pb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.vg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.jf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.jf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ge],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.le]]),Pr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xd],["SLOT_TYPE_FORECASTING",this.Xd],["SLOT_TYPE_IN_PLAYER",this.Xd],["SLOT_TYPE_PLAYER_BYTES",this.Bi]]),Zq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Vh],["SLOT_TYPE_FORECASTING",this.ai],["SLOT_TYPE_IN_PLAYER",this.x_],["SLOT_TYPE_PLAYER_BYTES",this.zi]])};this.listeners=[this.Vc.get()];this.dw={qd:this.qd,gr:this.wf.get(),Qi:this.Da.get(),tb:this.Vb.get(),Vt:this.La.get(),fd:this.fd,xn:this.fb.get(),er:null,dl:this.Zf,yj:this.Vc.get(),Qn:this.Wa.get()}};
K9a=function(a,b,c,d,e,f,h){this.yc=a;this.La=b;this.Ra=c;this.u=d;this.Rm=e;this.j=f;this.Da=h};
L9a=function(a,b,c,d,e){g.G.call(this);var f=this;this.fb=m0(function(){return new BG});
g.H(this,this.fb);this.Jb=m0(function(){return new g1(f.fb,f.Da)});
g.H(this,this.Jb);this.Vc=m0(function(){return new e1});
g.H(this,this.Vc);this.Tb=m0(function(){return new b1(a)});
g.H(this,this.Tb);this.Rb=m0(function(){return new m1(f.fb,f.Jb,f.Da)});
g.H(this,this.Rb);this.xe=m0(function(){return new q1});
g.H(this,this.xe);this.Rm=m0(function(){return new A8a(b)});
g.H(this,this.Rm);this.qg=m0(function(){return new $O(b.W())});
g.H(this,this.qg);this.yc=m0(function(){return new A2(b)});
g.H(this,this.yc);this.Vb=m0(function(){return new n0(e)});
g.H(this,this.Vb);this.Sc=m0(function(){return new PP(b)});
g.H(this,this.Sc);this.zc=m0(function(){return new s1(b)});
g.H(this,this.zc);this.Ce=m0(function(){return new D2(b)});
g.H(this,this.Ce);this.Kd=m0(function(){return new t1(b)});
g.H(this,this.Kd);this.Da=m0(function(){return new u1(b)});
g.H(this,this.Da);this.Yf=m0(function(){return new z2(d)});
g.H(this,this.Yf);this.Sb=m0(function(){return new P_(f.Da)});
g.H(this,this.Sb);this.ze=m0(function(){return new $0(f.fb,f.Rb,f.Jb,f.Da,f.Sb,null,f.Wj,3)});
g.H(this,this.ze);this.Bg=m0(function(){return new E2(b)});
g.H(this,this.Bg);this.wf=m0(function(){return new F2});
g.H(this,this.wf);this.Wa=m0(function(){return new D1(b,f.xe,f.Da)});
g.H(this,this.Wa);this.ac=new p1(this.Da,this.Sb,this.Wa);g.H(this,this.ac);this.Kf=m0(function(){return new C2(b,f.Da,f.Ra)});
g.H(this,this.Kf);this.Oc=m0(function(){return new G2(b)});
g.H(this,this.Oc);this.La=m0(function(){return new E1(b,f.Wa,f.Da)});
g.H(this,this.La);this.zf=m0(function(){return new I1});
this.Ub=m0(function(){return new x1(f.La,b)});
g.H(this,this.Ub);this.Ra=m0(function(){return new A1(b,f.Vc,f.Ub,f.Wa)});
g.H(this,this.Ra);this.fd=new xG(this.Tb,this.ze,c,this.Da,a,this.Wa,this.La,this.Sc);g.H(this,this.fd);var h=new r1(b,this.fd,this.La,this.Wa,this.Kf);this.Hg=m0(function(){return h});
this.Rt=h;this.Ai=new k2(l8a,T2,function(l,m,n,p){return y6a(f.Jb.get(),l,m,n,p)},this.Tb,this.Rb,this.Jb,this.Sb,this.Da,this.Wa);
g.H(this,this.Ai);this.Wj=new j2(this.Tb,this.Rb,this.Hg,this.Kf,this.La,this.Da,this.Ra,this.Oc);g.H(this,this.Wj);this.Hf=new d1(this.Tb,this.Rb,this.zc,this.Hg);g.H(this,this.Hf);this.qd=new cF(this.Da,this.Tb,this.Rb,this.ze,this.Wa,this.Hf,c);g.H(this,this.qd);this.Wh=m0(function(){return new J1(f.Yf,f.Jb,f.Sb,f.Da,f.Ra,f.La,f.Oc)});
g.H(this,this.Wh);this.oe=m0(function(){return new K1});
g.H(this,this.oe);this.Zf=new q2(a,this.yc,this.Da);g.H(this,this.Zf);this.Pb=new r2(a);g.H(this,this.Pb);this.vg=new s2(a,this.Hg);g.H(this,this.vg);this.jf=new t2(a,this.zc,this.La,this.Wa);g.H(this,this.jf);this.gw=new K2(a,this.Wa);g.H(this,this.gw);this.Ge=new u2(a);g.H(this,this.Ge);this.xi=new v2(a);g.H(this,this.xi);this.le=new w2(a);g.H(this,this.le);this.Xd=m0(function(){return new m2});
g.H(this,this.Xd);this.Bi=m0(function(){return new n2(f.La)});
g.H(this,this.Bi);this.Vh=m0(function(){return new M1(f.qd,f.Tb,f.fb)});
g.H(this,this.Vh);this.ai=m0(function(){return new S1(f.Da,f.Ra,f.Ge,f.Ub)});
g.H(this,this.ai);this.zi=m0(function(){return new b9a(a,f.le,f.Ge,f.Wa,f.Oc,f.La,f.Ra,f.xe,f.Kf,f.Ub,f.zf,f.Ce,f.zc,f.Sc,f.Kd,f.qg,f.Vb,f.Bg,f.Da,f.Vc)});
g.H(this,this.zi);this.yn=m0(function(){return new K9a(f.yc,f.La,f.Ra,f.Vc,f.Rm,c,f.Da)});
g.H(this,this.yn);this.Rn=new y2(a,this.wf,this.Sb,this.Wa,this.fb,this.Da);g.H(this,this.Rn);this.Ff={Aw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.qd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Wj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Ai],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.fd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Hf]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Wh],["SLOT_TYPE_FORECASTING",this.oe],
["SLOT_TYPE_IN_PLAYER",this.oe],["SLOT_TYPE_PLAYER_BYTES",this.oe]]),Bl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Zf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Pb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Pb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Pb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Pb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Pb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Pb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.Pb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.jf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.jf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.gw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.gw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ge],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.xi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.le]]),Pr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Xd],["SLOT_TYPE_FORECASTING",this.Xd],["SLOT_TYPE_IN_PLAYER",this.Xd],["SLOT_TYPE_PLAYER_BYTES",this.Bi]]),Zq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Vh],["SLOT_TYPE_FORECASTING",this.ai],["SLOT_TYPE_PLAYER_BYTES",this.zi],["SLOT_TYPE_IN_PLAYER",this.yn]])};this.listeners=[this.Vc.get()];this.dw={qd:this.qd,gr:this.wf.get(),Qi:this.Da.get(),tb:this.Vb.get(),Vt:this.La.get(),fd:this.fd,xn:this.fb.get(),er:null,dl:this.Zf,yj:this.Vc.get(),Qn:this.Wa.get()}};
N9a=function(a,b,c,d){g.G.call(this);var e=this;this.j=M9a(function(){return e.u},a,b,c,d);
g.H(this,this.j);this.u=(new c4a(this.j)).B();g.H(this,this.u)};
V2=function(a){return a.j.dw};
M9a=function(a,b,c,d,e){try{var f=b.W();if(g.QM(f))var h=new C9a(a,b,c,d,e);else if(g.TM(f))h=new E9a(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===g.NL(f))h=new G9a(a,b,c,d,e);else if(KM(f))h=new F9a(a,b,c,d,e);else if(g.EM(f))h=new J9a(a,b,c,d,e);else if(g.DM(f))h=new L9a(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.W(),wG("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,Acb:h.j.cver,zcb:h.j.ctheme,
ycb:h.j.cplayer,Tcb:h.playerStyle}),new h7a(a,b,c,d,e)}};
O9a=function(a){rR.call(this,a)};
P9a=function(a,b,c,d,e){vR.call(this,a,{G:"div",S:"ytp-ad-timed-pie-countdown-container",X:[{G:"svg",S:"ytp-ad-timed-pie-countdown",Y:{viewBox:"0 0 20 20"},X:[{G:"circle",S:"ytp-ad-timed-pie-countdown-background",Y:{r:"10",cx:"10",cy:"10"}},{G:"circle",S:"ytp-ad-timed-pie-countdown-inner",Y:{r:"5",cx:"10",cy:"10"}},{G:"circle",S:"ytp-ad-timed-pie-countdown-outer",Y:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.C=this.Ha("ytp-ad-timed-pie-countdown-container");this.B=this.Ha("ytp-ad-timed-pie-countdown-inner");
this.V=this.Ha("ytp-ad-timed-pie-countdown-outer");this.u=Math.ceil(10*Math.PI);this.hide()};
Q9a=function(a,b,c,d,e,f){bR.call(this,a,{G:"div",S:"ytp-ad-action-interstitial",Y:{tabindex:"0"},X:[{G:"div",S:"ytp-ad-action-interstitial-background-container"},{G:"div",S:"ytp-ad-action-interstitial-slot",X:[{G:"div",S:"ytp-ad-action-interstitial-instream-info"},{G:"div",S:"ytp-ad-action-interstitial-card",X:[{G:"div",S:"ytp-ad-action-interstitial-image-container"},{G:"div",S:"ytp-ad-action-interstitial-headline-container"},{G:"div",S:"ytp-ad-action-interstitial-description-container"},{G:"div",
S:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",b,c,d);this.EQ=e;this.sJ=f;this.navigationEndpoint=this.j=this.skipButton=this.u=this.actionButton=null;this.Ya=this.Ha("ytp-ad-action-interstitial-instream-info");this.Fa=this.Ha("ytp-ad-action-interstitial-image-container");this.V=new oR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,"ytp-ad-action-interstitial-image");g.H(this,this.V);this.V.Ja(this.Fa);this.Oa=this.Ha("ytp-ad-action-interstitial-headline-container");
this.D=new uR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,"ytp-ad-action-interstitial-headline");g.H(this,this.D);this.D.Ja(this.Oa);this.qa=this.Ha("ytp-ad-action-interstitial-description-container");this.C=new uR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,"ytp-ad-action-interstitial-description");g.H(this,this.C);this.C.Ja(this.qa);this.rb=this.Ha("ytp-ad-action-interstitial-background-container");this.Ma=new oR(this.api,this.layoutId,this.interactionLoggingClientData,
this.tb,"ytp-ad-action-interstitial-background",!0);g.H(this,this.Ma);this.Ma.Ja(this.rb);this.ob=this.Ha("ytp-ad-action-interstitial-action-button-container");this.slot=this.Ha("ytp-ad-action-interstitial-slot");this.B=new lB;g.H(this,this.B);this.hide()};
R9a=function(a){var b=g.Ne("html5-video-player");b&&g.Wq(b,"ytp-ad-display-override",a)};
V9a=function(a,b,c,d){bR.call(this,a,{G:"div",S:"ytp-ad-overlay-slot",X:[{G:"div",S:"ytp-ad-overlay-container"}]},"invideo-overlay",b,c,d);this.V=[];this.rb=this.Fa=this.C=this.ob=this.Oa=null;this.Ya=!1;this.D=null;this.qa=0;a=this.Ha("ytp-ad-overlay-container");this.Ma=new BR(a,45E3,6E3,.3,.4);g.H(this,this.Ma);this.B=S9a(this);g.H(this,this.B);this.B.Ja(a);this.u=T9a(this);g.H(this,this.u);this.u.Ja(a);this.j=U9a(this);g.H(this,this.j);this.j.Ja(a);this.hide()};
S9a=function(a){var b=new g.aR({G:"div",S:"ytp-ad-text-overlay",X:[{G:"div",S:"ytp-ad-overlay-ad-info-button-container"},{G:"div",S:"ytp-ad-overlay-close-container",X:[{G:"button",S:"ytp-ad-overlay-close-button",X:[hR(W9a)]}]},{G:"div",S:"ytp-ad-overlay-title",Aa:"{{title}}"},{G:"div",S:"ytp-ad-overlay-desc",Aa:"{{description}}"},{G:"div",Na:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Aa:"{{displayUrl}}"}]});a.T(b.Ha("ytp-ad-overlay-title"),"click",function(c){W2(a,b.element,c)});
a.T(b.Ha("ytp-ad-overlay-link"),"click",function(c){W2(a,b.element,c)});
a.T(b.Ha("ytp-ad-overlay-close-container"),"click",a.Gp);b.hide();return b};
T9a=function(a){var b=new g.aR({G:"div",Na:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],X:[{G:"div",S:"ytp-ad-overlay-ad-info-button-container"},{G:"div",S:"ytp-ad-overlay-close-container",X:[{G:"button",S:"ytp-ad-overlay-close-button",X:[hR(W9a)]}]},{G:"div",S:"ytp-ad-overlay-text-image",X:[{G:"img",Y:{src:"{{imageUrl}}"}}]},{G:"div",S:"ytp-ad-overlay-title",Aa:"{{title}}"},{G:"div",S:"ytp-ad-overlay-desc",Aa:"{{description}}"},{G:"div",Na:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
Aa:"{{displayUrl}}"}]});a.T(b.Ha("ytp-ad-overlay-title"),"click",function(c){W2(a,b.element,c)});
a.T(b.Ha("ytp-ad-overlay-link"),"click",function(c){W2(a,b.element,c)});
a.T(b.Ha("ytp-ad-overlay-close-container"),"click",a.Gp);a.T(b.Ha("ytp-ad-overlay-text-image"),"click",a.a9);b.hide();return b};
U9a=function(a){var b=new g.aR({G:"div",S:"ytp-ad-image-overlay",X:[{G:"div",S:"ytp-ad-overlay-ad-info-button-container"},{G:"div",S:"ytp-ad-overlay-close-container",X:[{G:"button",S:"ytp-ad-overlay-close-button",X:[hR(W9a)]}]},{G:"div",S:"ytp-ad-overlay-image",X:[{G:"img",Y:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Ha("ytp-ad-overlay-image"),"click",function(c){W2(a,b.element,c)});
a.T(b.Ha("ytp-ad-overlay-close-container"),"click",a.Gp);b.hide();return b};
X9a=function(a,b){if(b){var c=g.Q(b,U0)||null;if(null==c)g.sG(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.Ne("video-ads ytp-ad-module")||null,null==b)g.sG(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Fa=new g.aR({G:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.H(a,a.Fa),a.Fa.Ja(b),b=new tR(a.api,a.layoutId,a.interactionLoggingClientData,a.tb,a.Fa.element,!1),g.H(a,b),b.init(YO("ad-info-hover-text-button"),
c,a.macros),a.D){b.Ja(a.D,0);b.subscribe("f",a.I6,a);b.subscribe("e",a.hP,a);a.T(a.D,"click",a.J6);var d=g.Ne("ytp-ad-button",b.element);a.T(d,"click",function(){var e;if(g.Q(null==(e=g.Q(c.button,g.pO))?void 0:e.serviceEndpoint,uFa))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.sG(Error("Ad info button container within overlay ad was not present."))}else g.tG(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
Z9a=function(a,b){if(Y9a(a,X2)||a.api.Ag())return!1;var c=cR(b.title),d=cR(b.description);if(g.ec(c)||g.ec(d))return!1;a.ag(a.B.element,b.trackingParams||null);a.B.updateValue("title",cR(b.title));a.B.updateValue("description",cR(b.description));a.B.updateValue("displayUrl",cR(b.displayUrl));b.navigationEndpoint&&g.Nb(a.V,b.navigationEndpoint);a.B.show();a.Ma.start();a.Za(a.B.element,!0);a.T(a.B.element,"mouseover",function(){a.qa++});
return!0};
$9a=function(a,b){if(Y9a(a,X2)||a.api.Ag())return!1;var c=cR(b.title),d=cR(b.description);if(g.ec(c)||g.ec(d))return!1;a.ag(a.u.element,b.trackingParams||null);a.u.updateValue("title",cR(b.title));a.u.updateValue("description",cR(b.description));a.u.updateValue("displayUrl",cR(b.displayUrl));a.u.updateValue("imageUrl",CEa(b.image));b.navigationEndpoint&&g.Nb(a.V,b.navigationEndpoint);a.ob=b.imageNavigationEndpoint||null;a.u.show();a.Ma.start();a.Za(a.u.element,!0);a.T(a.u.element,"mouseover",function(){a.qa++});
return!0};
a$a=function(a,b){if(a.api.Ag())return!1;var c=DEa(b.image),d=c;c.width<X2.width&&(d=X2);if(0===c.width||0===c.height||Y9a(a,d))return!1;a.ag(a.j.element,b.trackingParams||null);a.j.updateValue("imageUrl",CEa(b.image));a.j.updateValue("width",c.width);a.j.updateValue("height",c.height);b.navigationEndpoint&&g.Nb(a.V,b.navigationEndpoint);b=a.j.Ha("ytp-ad-image-overlay");g.Un(b,"max-width",c.width+"px");a.j.show();a.Za(a.j.element,!0);a.T(a.j.element,"mouseover",function(){a.qa++;a.api.LO("invideo-overlay",
a.layoutId)});
a.T(a.j.element,"mouseout",function(){a.api.KO("invideo-overlay",a.layoutId)});
return!0};
Y9a=function(a,b){var c=a.api.qb().fk(),d=a.api.Vk(!0,!1);return(b=t9a(c,c.height-(d.height+d.top),b))?(a.Oa&&b&&(c=g.md(a.macros),c.ERRORCODE=b.iF.toString(),c.ERROR_MSG=b.errorMessage,a.layoutId?o0(a.tb,a.Oa,a.layoutId,c):g.sG(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
W2=function(a,b,c){var d=g.md(a.macros),e=g.to(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.ro(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.qa.toString()}};
b=g.u(a.V);for(c=b.next();!c.done;c=b.next())c=c.value,a.layoutId?o0(a.tb,c,a.layoutId,d):g.sG(Error("Missing layoutId for invideo_overlay_ad."));a.api.pauseVideo()};
b$a=function(a,b){a=a.api.getRootNode();g.Wq(a,"ytp-ad-overlay-open",b);g.Wq(a,"ytp-ad-overlay-closed",!b)};
c$a=function(a,b,c,d,e){vR.call(this,a,{G:"div",S:"ytp-ad-message-overlay",X:[{G:"div",S:"ytp-ad-message-slot"}]},"ad-message",b,c,d,e);var f=this;this.qa=-1;this.B=0;this.V=!1;this.Fa=this.Ha("ytp-ad-message-slot");this.u=new g.aR({G:"span",S:"ytp-ad-message-container"});this.u.Ja(this.Fa);g.H(this,this.u);this.messageText=new uR(this.api,this.layoutId,this.interactionLoggingClientData,d,"ytp-ad-message-text");g.H(this,this.messageText);this.messageText.Ja(this.u.element);this.C=new g.yR(this.u,
400,!1,100,function(){f.hide()});
g.H(this,this.C);this.hide()};
d$a=function(a,b){a=a.api.getRootNode();g.Wq(a,"ytp-ad-overlay-open",b);g.Wq(a,"ytp-ad-overlay-closed",!b)};
e$a=function(a,b,c,d){bR.call(this,a,{G:"div",S:"ytp-ad-underlay-companion",X:[{G:"div",S:"ytp-ad-underlay-side-container",X:[{G:"div",S:"ytp-ad-underlay-image-container"},{G:"div",S:"ytp-ad-underlay-description-container"},{G:"div",S:"ytp-ad-underlay-headline-container"},{G:"div",S:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",b,c,d);this.actionButton=null;this.Fa=this.Ha("ytp-ad-underlay-image-container");this.B=new oR(this.api,this.layoutId,this.interactionLoggingClientData,
this.tb,"ytp-ad-underlay-image");g.H(this,this.B);this.B.Ja(this.Fa);this.qa=this.Ha("ytp-ad-underlay-headline-container");this.u=new uR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,"ytp-ad-underlay-headline");g.H(this,this.u);this.u.Ja(this.qa);this.V=this.Ha("ytp-ad-underlay-description-container");this.C=new uR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,"ytp-ad-underlay-description");g.H(this,this.C);this.C.Ja(this.V);this.D=this.Ha("ytp-ad-underlay-action-button-container");
this.j=this.Ha("ytp-ad-underlay-side-container");this.hide()};
f$a=function(a){var b=g.Ne("html5-video-player");b&&g.Wq(b,"ytp-ad-display-override",a)};
Y2=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
bR.call(this,a,{G:"div",S:"ytp-ad-survey-answer"},"survey-answer",b,c,d);this.index=e;this.u=f;this.j=null;this.toggledLoggingParams="";this.answer=this.Ha("ytp-ad-survey-answer");this.hide()};
g$a=function(a,b,c,d){bR.call(this,a,{G:"div",S:"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()};
Z2=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");iR.call(this,a,b,c,d,e,"survey-submit")};
$2=function(a,b,c,d,e){bR.call(this,a,{G:"div",S:"ytp-ad-survey-player-overlay",X:[{G:"div",S:"ytp-ad-survey-player-overlay-instream-info"},{G:"div",S:"ytp-ad-survey-player-overlay-skip-preview-submit",X:[{G:"div",S:"ytp-ad-survey-player-overlay-skip-or-preview"},{G:"div",S:"ytp-ad-survey-player-overlay-submit"}]},{G:"div",S:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",b,c,d);this.B=e;this.u=this.j=null;this.C=this.Ha("ytp-ad-survey-player-overlay-instream-info");
this.D=this.Ha("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Ha("ytp-ad-survey-player-overlay-submit");g.H(this,this.B);this.hide()};
a3=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
bR.call(this,a,{G:"div",S:"ytp-ad-survey-question",X:[{G:"div",Na:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{G:"div",Na:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{G:"div",Na:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{G:"div",S:"ytp-ad-survey-question-background"}]},e,b,c,d);this.qa=f;this.C=null;this.u=[];this.j=null;this.question=this.Ha("ytp-ad-survey-question");this.Fa=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.B=g.eb()};
h$a=function(a,b){b=g.VG(b);g.sf(a.questionText,b);a.api.W().experiments.sb("fix_web_instream_survey_question_aria_label")&&a.answers.setAttribute("aria-label",b)};
i$a=function(a,b,c,d){d=new Y2(a.api,a.layoutId,a.interactionLoggingClientData,a.tb,d,a.qa);d.Ja(a.answers);d.init(YO("survey-answer"),b,c);a.u.push(d)};
k$a=function(a,b){if(b){var c=b.background;c&&g.Q(c,j$a)&&(c=(c=g.Q(c,j$a).image)&&nR(c)||"",g.ec(c)?g.tG(Error("Found ThumbnailDetails without valid image URL")):g.Un(a.Fa,"backgroundImage","url("+c+")"));if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.sG(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.B=g.eb();a.j=new FR(a.api,b.durationMilliseconds);g.H(a,a.j);if(a.j&&b.instreamAdPlayerOverlay&&g.Q(b.instreamAdPlayerOverlay,
e5a))try{var d=new $2(a.api,a.layoutId,a.interactionLoggingClientData,a.tb,a.j);d.Ja(a.playerOverlay);d.init(YO("survey-player-overlay"),g.Q(b.instreamAdPlayerOverlay,e5a),a.macros);a.C=d;g.H(a,d);a.HY()}catch(e){g.sG(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.sG(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.j&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new MR(a.api,a.j),b.Ja(a.playerOverlay),
g.H(a,b)):g.sG(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.sG(Error("addCommonComponents() needs to be called before starting countdown."))};
l$a=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.B).toString()})};
m$a=function(a,b,c,d,e){a3.call(this,a,b,c,d,"survey-question-multi-select");this.V=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.D=null;this.hide()};
n$a=function(a,b,c){a.noneOfTheAbove=new g$a(a.api,a.layoutId,a.interactionLoggingClientData,a.tb);a.noneOfTheAbove.Ja(a.answers);a.noneOfTheAbove.init(YO("survey-none-of-the-above"),b,c)};
p$a=function(a){a.u.forEach(function(b){b.j.toggleButton(!1)});
o$a(a,!0)};
o$a=function(a,b){var c=a.C;a=q$a(a);b=void 0===b?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof DR&&!c.j.C&&OFa(c.j,!1));c.u&&(a?c.u.show():c.u.hide())};
q$a=function(a){return a.u.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()};
b3=function(a,b,c,d,e){a3.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()};
c3=function(a,b,c,d){bR.call(this,a,{G:"div",S:"ytp-ad-survey",X:[{G:"div",S:"ytp-ad-survey-questions"}]},"survey",b,c,d);this.questions=[];this.u=[];this.conditioningRules=[];this.j=0;this.D=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()};
t$a=function(a,b){var c=a.u[b],d;null==(d=a.B)||d.dispose();g.Q(c,kP)?r$a(a,g.Q(c,kP),a.macros):g.Q(c,lP)&&s$a(a,g.Q(c,lP),a.macros);a.j=b};
r$a=function(a,b,c){var d=new b3(a.api,a.layoutId,a.interactionLoggingClientData,a.tb,a.C.bind(a));d.Ja(a.D);d.init(YO("survey-question-single-select"),b,c);a.api.W().N("supports_multi_step_on_desktop")?a.B=d:a.questions.push(d);g.H(a,d)};
s$a=function(a,b,c){var d=new m$a(a.api,a.layoutId,a.interactionLoggingClientData,a.tb,a.C.bind(a));d.Ja(a.D);d.init(YO("survey-question-multi-select"),b,c);a.api.W().N("supports_multi_step_on_desktop")?a.B=d:a.questions.push(d);g.H(a,d)};
d3=function(a,b,c,d){bR.call(this,a,{G:"div",S:"ytp-ad-survey-interstitial",X:[{G:"div",S:"ytp-ad-survey-interstitial-contents",X:[{G:"div",S:"ytp-ad-survey-interstitial-logo",X:[{G:"div",S:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",S:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",b,c,d);this.j=this.actionButton=null;this.interstitial=this.Ha("ytp-ad-survey-interstitial");this.u=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.yR(this,500,!1,300);g.H(this,this.transition)};
u$a=function(a,b){b=b&&nR(b)||"";if(g.ec(b))g.tG(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.Pe&&10>document.documentMode)c=je;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.bf("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=mla(d.style)}b=new ce([c,Vba({"background-image":'url("'+b+'")'})].map(ega).join(""),ie);a.style.cssText=de(b)}};
v$a=function(a){var b=g.Ne("html5-video-player");b&&g.Wq(b,"ytp-ad-display-override",a)};
e3=function(a,b,c){rR.call(this,a);this.api=a;this.tb=b;this.u={};a=new g.X({G:"div",Na:["video-ads","ytp-ad-module"]});g.H(this,a);vM&&g.Sq(a.element,"ytp-ads-tiny-mode");this.D=new TQ(a.element);g.H(this,this.D);g.XS(this.api,a.element,4);O4a(c)&&(c=new g.X({G:"div",Na:["ytp-ad-underlay"]}),g.H(this,c),this.B=new TQ(c.element),g.H(this,this.B),g.XS(this.api,c.element,0));g.H(this,cFa())};
w$a=function(a,b){a=g.kd(a.u,b.id,null);null==a&&g.tG(Error("Component not found for element id: "+b.id));return a||null};
x$a=function(a){g.WT.call(this,a);var b=this;this.u=this.Hh=null;this.created=!1;this.Su=new DQ(this.player);this.B=function(){if(null!=b.u)return b.u;var d=kEa({Vl:a.getVideoData(1)});d=new E3a({Uu:d.L4(),dl:V2(b.j).dl,ym:d.cN(),Qn:V2(b.j).Qn,I:b.player,Qi:V2(b.j).Qi,Ra:b.j.j.Ra,yj:V2(b.j).yj,Kd:b.j.j.Kd});b.u=d.q0;return b.u};
this.j=new N9a(this.player,this,this.Su,this.B);g.H(this,this.j);var c=a.W();!IM(c)||g.DM(c)||KM(c)||(g.H(this,new e3(a,V2(this.j).tb,V2(this.j).Qi)),g.H(this,new O9a(a)))};
y$a=function(a){a.created!==a.loaded&&wG("Created and loaded are out of sync")};
B$a=function(a){g.WT.prototype.load.call(a);var b=V2(a.j).Qi;ora(b.I.W().N("html5_reduce_ecatcher_errors"));try{a.player.getRootNode().classList.add("ad-created")}catch(m){wG(m instanceof Error?m:String(m))}var c=a.B(),d=a.player.getVideoData(1),e=d&&d.videoId||"",f=d&&d.getPlayerResponse()||{},h=(!a.player.W().experiments.sb("debug_ignore_ad_placements")&&f&&f.adPlacements||[]).map(function(m){return m.adPlacementRenderer}),l=((null==f?void 0:f.adSlots)||[]).map(function(m){return g.Q(m,Tpa)});
f=f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;d&&d.Jc();b=z$a(h,l,b,V2(a.j).xn);h=d&&d.clientPlaybackNonce||"";d=d&&d.ov||!1;l=1E3*a.player.getDuration(1);a.Hh=new pEa(a,a.player,a.Su,c,V2(a.j));A$a(a);a.j.j.Rt.lk(h,l,d,b.DI,b.OT,b.DI,f,e)};
A$a=function(a){var b;(null==(b=a.player.getVideoData(1))?0:b.ov)||g.Fz("SERVED_VIA_SPF_HISTORY")||!aAa(a.player)||(a=bLa(a.player),a.addEventListener("updateKevlarOrC3Companion",WDa),a.addEventListener("updateEngagementPanelAction",XDa),a.addEventListener("changeEngagementPanelVisibility",YDa),window.addEventListener("yt-navigate-start",$Da))};
C$a=function(a,b){b===a.ly&&(a.ly=void 0)};
D$a=function(a){if(a.Hh){var b=V2(a.j).fd,c=b.j().hN("SLOT_TYPE_PLAYER_BYTES",1);b=b.Wa.get().Nf(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 jF?e.slotEntryTrigger.Yr:void 0;f&&f===b&&(d&&wG("More than 1 preroll playerBytes slot detected",e),d=!0)}if(!(b=d)){b=a.Hh;d=[];c=g.u(b.K);for(e=c.next();!e.done;e=c.next())e=e.value,e.j()&&d.push(e);b=!qEa(b,d)}b||QQ(V2(a.j).Vt)}else wG("AdService is null when calling maybeUnlockPrerollIfReady")};
E$a=function(a){var b="";a=g.u(V2(a.j).yj.xl.keys());for(var c=a.next();!c.done;c=a.next()){c=c.value;if("SLOT_TYPE_PLAYER_BYTES"===c.slotType&&"core"===c.ib)return!0;b+=c.slotType+" "}.01>Math.random()&&wG("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1};
F$a=function(a){a=g.u(V2(a.j).yj.xl.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
Upa=function(a,b,c,d,e){c=void 0===c?[]:c;d=void 0===d?"":d;e=void 0===e?"":e;var f=V2(a.j).Qi,h=a.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.Jc();c=z$a(b,c,f,V2(a.j).xn);Ypa(V2(a.j).qd,d,c.DI,c.OT,b,e)};
z$a=function(a,b,c,d){b={DI:[],OT: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.I.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.Q(null==(n=f.sandwichedLinearAdRenderer)?void 0:n.adVideoStart,Z0)?(h=g.Q(null==(m=f.sandwichedLinearAdRenderer)?void 0:m.adVideoStart,Z0),p=B3a(h,p),g.LP(f.sandwichedLinearAdRenderer.adVideoStart,Z0,p)):g.Q(null==(l=f.linearAdSequenceRenderer)?void 0:l.adStart,Z0)&&
(m=g.Q(null==(h=f.linearAdSequenceRenderer)?void 0:h.adStart,Z0),p=B3a(m,p),g.LP(f.linearAdSequenceRenderer.adStart,Z0,p))}b.DI.push(e)}return b};
G$a=function(){if(!g.Pe)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.I$a=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=g.me(a);return b.parseFromString(g.le(a),"application/xml")}if(H$a){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.f3=function(a){g.G.call(this);this.callback=a;this.j=new ir(0,0,.4,0,.2,1,1,1);this.delay=new g.Iq(this.next,window,this);g.H(this,this.delay)};
g.J$a=function(a){var b=a.W();if(!b.Qd||b.B||!g.xM(b))return!1;b=g.GS(a);return g.US(a)?(a=b.Vk(),315<=Math.min(a.width,a.height)):g.US(a)?!1:!b.kh()};
g.g3=function(a,b){g.X.call(this,{G:"div",S:"ytp-more-videos-view",Y:{tabIndex:"-1"}});var c=this;this.api=a;this.K=b;this.B=!0;this.C=new g.PK(this);this.u=[];this.suggestionData=[];this.columns=this.containerWidth=this.oa=this.D=this.j=0;this.title=new g.X({G:"h2",S:"ytp-related-title",Aa:"{{title}}"});this.previous=new g.X({G:"button",Na:["ytp-button","ytp-previous"],Y:{"aria-label":"Mostrar v\u00eddeos sugeridos anteriores"},X:[g.dR()]});this.V=new g.f3(function(d){c.suggestions.element.scrollLeft=
-d});
this.next=new g.X({G:"button",Na:["ytp-button","ytp-next"],Y:{"aria-label":"Mostrar mais v\u00eddeos sugeridos"},X:[g.eR()]});g.H(this,this.C);this.J=a.W().C;g.H(this,this.title);this.title.Ja(this.element);this.suggestions=new g.X({G:"div",S:"ytp-suggestions"});g.H(this,this.suggestions);this.suggestions.Ja(this.element);g.H(this,this.previous);this.previous.Ja(this.element);this.previous.Ta("click",this.s0,this);g.H(this,this.V);K$a(this);g.H(this,this.next);this.next.Ja(this.element);this.next.Ta("click",
this.r0,this);this.C.T(this.api,"appresize",this.Kb);this.C.T(this.api,"fullscreentoggled",this.wr);this.C.T(this.api,"videodatachange",this.onVideoDataChange);this.Kb(this.api.qb().getPlayerSize());this.onVideoDataChange()};
K$a=function(a){for(var b={bx:0};16>b.bx;b={bx:b.bx},++b.bx){var c=new g.X({G:"a",S:"ytp-suggestion-link",Y:{href:"{{link}}",target:a.api.W().ea,"aria-label":"{{aria_label}}"},X:[{G:"div",S:"ytp-suggestion-image"},{G:"div",S:"ytp-suggestion-overlay",Y:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},X:[{G:"div",S:"ytp-suggestion-title",Aa:"{{title}}"},{G:"div",S:"ytp-suggestion-author",Aa:"{{author_and_views}}"},{G:"div",Y:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration",
Aa:"{{duration}}"}]}]});g.H(a,c);var d=c.Ha("ytp-suggestion-link");g.Un(d,"transitionDelay",b.bx/20+"s");a.C.T(d,"click",function(e){return function(f){var h=e.bx;if(a.B){var l=a.suggestionData[h],m=l.sessionData;a.J&&a.api.N("web_player_log_click_before_generating_ve_conversion_params")?(a.api.ub(a.u[h].element),h=l.Wk(),l={},g.uLa(a.api,l,"emb_rel_pause"),h=g.Yj(h,l),g.pT(h,a.api,f)):g.oT(f,a.api,a.J,m||void 0)&&a.api.xo(l.videoId,m,l.playlistId)}else g.VP(f),document.activeElement.blur()}}(b));
c.Ja(a.suggestions.element);a.u.push(c);a.api.ag(c.element,c)}};
L$a=function(a){if(a.api.W().N("web_player_log_click_before_generating_ve_conversion_params"))for(var b=Math.floor(-a.j/(a.D+8)),c=Math.min(b+a.columns,a.suggestionData.length)-1;b<=c;b++)a.api.Za(a.u[b].element,!0)};
g.h3=function(a){var b=a.K.Mg()?32:16;b=a.oa/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.D+8);g.Wq(a.element,"ytp-scroll-min",0<=b);g.Wq(a.element,"ytp-scroll-max",b<=c)};
N$a=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.u[c];f=g.US(d.api)?l.shortViewCount||"":l.shortViewCount?l.author+" \u2022 "+l.shortViewCount:l.author;m.element.style.display="";e=m.Ha("ytp-suggestion-link");g.Un(e,"display","inline-block");M$a.test(l.title)&&(m.Ha("ytp-suggestion-title").dir="rtl");M$a.test(f)&&(m.Ha("ytp-suggestion-author").dir="rtl");e=l.isLivePlayback?"Em direto":l.lengthSeconds?g.HR(l.lengthSeconds):
"";var n=l.Wk(g.US(d.api));if(g.xM(h)&&!h.N("web_player_log_click_before_generating_ve_conversion_params")){var p={};g.ES(d.api,"addEmbedsConversionTrackingParams",[p]);n=g.Yj(n,g.xS(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.SK||g.wM?"will-change: opacity":
void 0});f=m.Ha("ytp-suggestion-image");d=g.US(d.api)?l.Kg("hq2.jpg"):l.Kg();f.style.backgroundImage=d?"url("+d+")":""}if(16>b)for(;16>b;++b)c=a.u[b].Ha("ytp-suggestion-link"),g.Un(c,"display","none");g.h3(a)};
aaa=[];ka="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.ea=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;ka(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.ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ka(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a});
var O$a="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)ra(d,e)&&(a[e]=d[e])}return a};
la("Object.assign",function(a){return a||O$a});
var gaa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},P$a=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=gaa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),Q$a;
if("function"==typeof Object.setPrototypeOf)Q$a=Object.setPrototypeOf;else{var R$a;a:{var S$a={a:!0},T$a={};try{T$a.__proto__=S$a;R$a=T$a.a;break a}catch(a){}R$a=!1}Q$a=R$a?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var sa=Q$a;
ua.prototype.V=function(a){this.u=a};
ua.prototype.return=function(a){this.B={return:a};this.j=this.D};
ua.prototype.Ka=function(a){this.j=a};
la("Reflect",function(a){return a?a:{}});
la("Reflect.construct",function(){return P$a});
la("Reflect.setPrototypeOf",function(a){return a?a:sa?function(b,c){try{return sa(b,c),!0}catch(d){return!1}}:null});
la("Promise",function(a){function b(h){this.j=0;this.B=void 0;this.u=[];this.K=!1;var l=this.C();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.j=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.u=function(h){if(null==this.j){this.j=[];var l=this;this.B(function(){l.D()})}this.j.push(h)};
var e=g.ea.setTimeout;c.prototype.B=function(h){e(h,0)};
c.prototype.D=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.C(n)}}}this.j=null};
c.prototype.C=function(h){this.B(function(){throw h;})};
b.prototype.C=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.Ba),reject:h(this.D)}};
b.prototype.Ba=function(h){if(h===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Fa(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.qa(h):this.J(h)}};
b.prototype.qa=function(h){var l=void 0;try{l=h.then}catch(m){this.D(m);return}"function"==typeof l?this.Ma(l,h):this.J(h)};
b.prototype.D=function(h){this.V(2,h)};
b.prototype.J=function(h){this.V(1,h)};
b.prototype.V=function(h,l){if(0!=this.j)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.j);this.j=h;this.B=l;2===this.j&&this.Ga();this.ea()};
b.prototype.Ga=function(){var h=this;e(function(){if(h.oa()){var l=g.ea.console;"undefined"!==typeof l&&l.error(h.B)}},1)};
b.prototype.oa=function(){if(this.K)return!1;var h=g.ea.CustomEvent,l=g.ea.Event,m=g.ea.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=g.ea.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.B;return m(h)};
b.prototype.ea=function(){if(null!=this.u){for(var h=0;h<this.u.length;++h)f.u(this.u[h]);this.u=null}};
var f=new c;b.prototype.Fa=function(h){var l=this.C();h.dG(l.resolve,l.reject)};
b.prototype.Ma=function(h,l){var m=this.C();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(t,v){return"function"==typeof t?function(y){try{n(t(y))}catch(A){p(A)}}:v}
var n,p,q=new b(function(t,v){n=t;p=v});
this.dG(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.dG=function(h,l){function m(){switch(n.j){case 1:h(n.B);break;case 2:l(n.B);break;default:throw Error("Unexpected state: "+n.j);}}
var n=this;null==this.u?f.u(m):this.u.push(m);this.K=!0};
b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
b.race=function(h){return new b(function(l,m){for(var n=g.u(h),p=n.next();!p.done;p=n.next())d(p.value).dG(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(y){return function(A){t[y]=A;v--;0==v&&n(t)}}
var t=[],v=0;do t.push(void 0),v++,d(m.value).dG(q(t.length-1),p),m=l.next();while(!m.done)})};
return b});
la("Object.setPrototypeOf",function(a){return a||sa});
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(!ra(m,h)){var n=new c;ka(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(!ra(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&ra(m,h)?m[h][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&ra(m,h)&&ra(m[h],this.j)};
b.prototype.delete=function(m){return d(m)&&ra(m,h)&&ra(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&&ra(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 Ja(this,function(b){return b})}});
la("Array.prototype.find",function(a){return a?a:function(b,c){return laa(this,b,c).q_}});
la("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ka(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=Ka(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=Ka(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 Ja(this,function(b,c){return 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)ra(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!==Ka(this,b,"includes").indexOf(b,c||0)}});
la("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
la("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
la("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
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("Array.prototype.entries",function(a){return a?a:function(){return Ja(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",La);la("Uint8Array.prototype.fill",La);la("Uint8ClampedArray.prototype.fill",La);la("Int16Array.prototype.fill",La);la("Uint16Array.prototype.fill",La);la("Int32Array.prototype.fill",La);la("Uint32Array.prototype.fill",La);la("Float32Array.prototype.fill",La);la("Float64Array.prototype.fill",La);la("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)ra(b,d)&&c.push([d,b[d]]);return c}});
la("globalThis",function(a){return a||g.ea});
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 laa(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("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ka(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("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});
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("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",Oa);la("Uint8Array.prototype.copyWithin",Oa);la("Uint8ClampedArray.prototype.copyWithin",Oa);la("Int16Array.prototype.copyWithin",Oa);la("Uint16Array.prototype.copyWithin",Oa);la("Int32Array.prototype.copyWithin",Oa);la("Uint32Array.prototype.copyWithin",Oa);la("Float32Array.prototype.copyWithin",Oa);la("Float64Array.prototype.copyWithin",Oa);
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("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("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});
ek=ek||{};g.Pa=this||self;Za="closure_uid_"+(1E9*Math.random()>>>0);maa=0;g.k=lb.prototype;g.k.r3=function(a){var b=g.Ia.apply(1,arguments),c=this.JM(b);c?c.push(new paa(a)):this.fZ(a,b)};
g.k.fZ=function(a){this.Dy.set(this.mV(g.Ia.apply(1,arguments)),[new paa(a)])};
g.k.JM=function(){var a=this.mV(g.Ia.apply(0,arguments));return this.Dy.has(a)?this.Dy.get(a):void 0};
g.k.P4=function(){var a=this.JM(g.Ia.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.Dy.clear()};
g.k.mV=function(){var a=g.Ia.apply(0,arguments);return a?a.join(","):"key"};g.x(nb,lb);nb.prototype.B=function(a){var b=g.Ia.apply(1,arguments),c=0,d=this.P4(b);d&&(c=d.mU);this.fZ(c+a,b)};g.x(pb,lb);pb.prototype.eg=function(a){this.r3(a,g.Ia.apply(1,arguments))};g.G.prototype.Bp=!1;g.G.prototype.isDisposed=function(){return this.Bp};
g.G.prototype.dispose=function(){this.Bp||(this.Bp=!0,this.xa())};
g.G.prototype.xa=function(){if(this.Pm)for(;this.Pm.length;)this.Pm.shift()()};g.jb(ub,Error);ub.prototype.name="CustomError";var qca;g.jb(vb,ub);vb.prototype.name="AssertionError";g.yb.prototype.stopPropagation=function(){this.u=!0};
g.yb.prototype.preventDefault=function(){this.defaultPrevented=!0};var saa,mn,xo;saa=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.U$a=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.$b=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.cp=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.kn=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};
mn=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.$b)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
xo=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.ln=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 vba=function(){if(!g.Pa.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{var c=function(){};
g.Pa.addEventListener("test",c,b);g.Pa.removeEventListener("test",c,b)}catch(d){}return a}();var iab=Ta(1,!0),oc=Ta(610401301,!1);Ta(899588437,!1);Ta(533565600,!1);Ta(2147483644,!1);Ta(2147483645,!1);Ta(2147483646,iab);Ta(2147483647,!0);var pc=!!g.Sa("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var kc=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,jab=g.Pa.navigator;qc=jab?jab.userAgentData||null:null;Kc[" "]=function(){};var Vn,AX,n3a,kab,lab,mab,uM,vM,nab;g.wM=vc();g.Pe=wc();g.NC=tc("Edge");g.UM=g.NC||g.Pe;Vn=tc("Gecko")&&!(jc(g.nc(),"WebKit")&&!tc("Edge"))&&!(tc("Trident")||tc("MSIE"))&&!tc("Edge");g.Qc=jc(g.nc(),"WebKit")&&!tc("Edge");AX=Jc();n3a=Saa();g.HA=Raa();kab=Gc();lab=tc("iPad");mab=tc("iPod");uM=Hc();vM=jc(g.nc(),"KaiOS");
a:{var oab="",pab=function(){var a=g.nc();if(Vn)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.NC)return/Edge\/([\d\.]+)/.exec(a);if(g.Pe)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Qc)return/WebKit\/(\S+)/.exec(a);if(g.wM)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
pab&&(oab=pab?pab[1]:"");if(g.Pe){var qab=Vaa();if(null!=qab&&qab>parseFloat(oab)){nab=String(qab);break a}}nab=oab}var Mc=nab,Taa={},rab;if(g.Pa.document&&g.Pe){var sab=Vaa();rab=sab?sab:parseInt(Mc,10)||void 0}else rab=void 0;var hba=rab;var UOa=jba("AnimationEnd"),$La=jba("TransitionEnd");g.jb(Rc,g.yb);var tab={2:"touch",3:"pen",4:"mouse"};
Rc.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)?Vn&&(Lc(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX?
a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:tab[a.pointerType]||"";this.state=a.state;this.j=a;a.defaultPrevented&&Rc.Uf.preventDefault.call(this)};
Rc.prototype.stopPropagation=function(){Rc.Uf.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
Rc.prototype.preventDefault=function(){Rc.Uf.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var kba="closure_listenable_"+(1E6*Math.random()|0);var lba=0;var rba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=qd.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=sd(a,b,d,e);-1<h?(b=a[h],c||(b.cG=!1)):(b=new mba(b,this.src,f,!!d,e),b.cG=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=sd(e,b,c,d);return-1<b?(Vc(e[b]),g.Gb(e,b),0==e.length&&(delete this.listeners[a],this.j--),!0):!1};
g.k.Tf=function(){var a=0,b;for(b in this.listeners){for(var c=this.listeners[b],d=0;d<c.length;d++)++a,Vc(c[d]);delete this.listeners[b];this.j--}};
g.k.IC=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=sd(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.Zc(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 Ad="closure_lm_"+(1E6*Math.random()|0),Cd={},xba=0,Dd="__closure_events_fn_"+(1E9*Math.random()>>>0);g.jb(g.Hd,g.G);g.Hd.prototype[kba]=!0;g.k=g.Hd.prototype;g.k.addEventListener=function(a,b,c,d){g.xd(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){zba(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.zP;if(b){var c=[];for(var d=1;b;b=b.zP)c.push(b),++d}b=this.l3;d=a.type||a;if("string"===typeof a)a=new g.yb(a,b);else if(a instanceof g.yb)a.target=a.target||b;else{var e=a;a=new g.yb(d,b);g.pd(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=Id(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=Id(h,d,!0,a)&&e,a.u||(e=Id(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)h=a.currentTarget=c[f],e=Id(h,d,!1,a)&&e;return e};
g.k.xa=function(){g.Hd.Uf.xa.call(this);this.Zl&&this.Zl.Tf();this.zP=null};
g.k.Ta=function(a,b,c,d){return this.Zl.add(String(a),b,!1,c,d)};
g.k.IH=function(a,b,c,d){return this.Zl.add(String(a),b,!0,c,d)};
g.k.Mc=function(a,b,c,d){this.Zl.remove(String(a),b,c,d)};
g.k.IC=function(a,b,c,d){return this.Zl.IC(String(a),b,c,d)};
g.k.hasListener=function(a,b){return this.Zl.hasListener(void 0!==a?String(a):void 0,b)};Jd.prototype.get=function(){if(0<this.u){this.u--;var a=this.j;this.j=a.next;a.next=null}else a=this.B();return a};var wca=g.Pe||g.Qc;var uab={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;Qd.prototype.wp=!0;Qd.prototype.jm=function(){return this.BZ};
var Eba={},Dba={};g.Vd("");var Gba={};Wd.prototype.toString=function(){return this.KP.toString()};
Wd.prototype.jm=function(){return this.KP.toString()};Xd.prototype.toString=function(){return this.NP+""};
Xd.prototype.wp=!0;Xd.prototype.jm=function(){return this.NP.toString()};
var Kba=/%{(\w+)}/g,Jba=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),Mba={};Zd.prototype.toString=function(){return this.MP.toString()};
Zd.prototype.wp=!0;Zd.prototype.jm=function(){return this.MP.toString()};
var Pba=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Oba=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,vab;try{new URL("s://g"),vab=!0}catch(a){vab=!1}var Rba=vab,Tba={},Qba=ae("about:invalid#zClosurez");var ie={};ce.prototype.jm=function(){return this.LP};
ce.prototype.toString=function(){return this.LP.toString()};
var je=new ce("",ie),Yba=RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),Xba=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Wba=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"),Zba=/\/\*/;var fca={};ke.prototype.jm=function(){return this.JP.toString()};
ke.prototype.toString=function(){return this.JP.toString()};
var wab=/^[a-zA-Z0-9-]+$/,xab={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},yab={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},cca=new ke(g.Pa.trustedTypes&&g.Pa.trustedTypes.emptyHTML||"",fca);var hca=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.le(cca);return!b.parentElement}),kca=/^[\w+/_-]+[=]{0,2}$/;g.k=g.te.prototype;g.k.clone=function(){return new g.te(this.x,this.y)};
g.k.equals=function(a){return a instanceof g.te&&ue(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.xe.prototype;g.k.clone=function(){return new g.xe(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!ze(this)};
g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.zab=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var rca={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=Ge.prototype;g.k.Bb=function(a){return Je(this.j,a)};
g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.k.Ha=function(a){return g.Ne(a,this.j)};
g.k.createElement=function(a){return $e(this.j,a)};
g.k.appendChild=g.df;g.k.append=function(a,b){vca(He(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.pf;g.k.contains=g.rf;var wf;Hf.prototype.add=function(a,b){var c=Cca.get();c.set(a,b);this.u?this.u.next=c:this.j=c;this.u=c};
Hf.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.u=null),a.next=null);return a};
var Cca=new Jd(function(){return new If},function(a){return a.reset()});
If.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};
If.prototype.reset=function(){this.next=this.scope=this.fn=null};var Jf,Kf=!1,Aca=new Hf;Dca.prototype.reset=function(){this.context=this.u=this.B=this.j=null;this.C=!1};
var Eca=new Jd(function(){return new Dca},function(a){a.reset()});
g.Nf.prototype.then=function(a,b,c){return Oca(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
g.Nf.prototype.$goog_Thenable=!0;g.k=g.Nf.prototype;g.k.Ek=function(a,b){return Oca(this,null,a,b)};
g.k.catch=g.Nf.prototype.Ek;g.k.cancel=function(a){if(0==this.j){var b=new $f(a);g.Lf(function(){Kca(this,b)},this)}};
g.k.Z$=function(a){this.j=0;Mf(this,2,a)};
g.k.aaa=function(a){this.j=0;Mf(this,3,a)};
g.k.z4=function(){for(var a;a=Lca(this);)Mca(this,a,this.j,this.K);this.J=!1};
var Sca=Gf;g.jb($f,ub);$f.prototype.name="cancel";g.jb(g.ag,g.Hd);g.k=g.ag.prototype;g.k.enabled=!1;g.k.Lc=null;g.k.setInterval=function(a){this.Ti=a;this.Lc&&this.enabled?(this.stop(),this.start()):this.Lc&&this.stop()};
g.k.M$=function(){if(this.enabled){var a=g.eb()-this.JW;0<a&&a<.8*this.Ti?this.Lc=this.dF.setTimeout(this.dU,this.Ti-a):(this.Lc&&(this.dF.clearTimeout(this.Lc),this.Lc=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.Lc||(this.Lc=this.dF.setTimeout(this.dU,this.Ti),this.JW=g.eb())};
g.k.stop=function(){this.enabled=!1;this.Lc&&(this.dF.clearTimeout(this.Lc),this.Lc=null)};
g.k.xa=function(){g.ag.Uf.xa.call(this);this.stop();delete this.dF};g.x(g.dg,g.G);g.k=g.dg.prototype;g.k.sendIsolatedPayload=function(a){this.D=a;this.C=1};
g.k.Hx=function(){var a=this.u.values();a=[].concat(g.qa(a)).filter(function(b){return b.Dy.size});
a.length&&this.K.flush(a,this.D);Vca(a);this.B=0;this.j.enabled&&this.j.stop()};
g.k.Sj=function(a){var b=g.Ia.apply(1,arguments);this.u.has(a)||this.u.set(a,new nb(a,b))};
g.k.uy=function(a){var b=g.Ia.apply(1,arguments);this.u.has(a)||this.u.set(a,new pb(a,b))};
g.k.Ik=function(a){this.xK.apply(this,[a,1].concat(g.qa(g.Ia.apply(1,arguments))))};
g.k.xK=function(a,b){var c=g.Ia.apply(2,arguments),d=Uca(this,a);d&&d instanceof nb&&(d.B(b,c),Tca(this))};
g.k.eg=function(a,b){var c=g.Ia.apply(2,arguments),d=Uca(this,a);d&&d instanceof pb&&(d.eg(b,c),Tca(this))};Wca.prototype.eg=function(a,b,c,d,e){this.j.eg("/client_streamz/po/w/rl",a,b,c,d,e)};
Xca.prototype.eg=function(a,b,c){this.j.eg("/client_streamz/po/w/el",a,b,c)};
$ca.prototype.eg=function(a,b,c,d){this.j.eg("/client_streamz/po/w/cl",a,b,c,d)};
ada.prototype.eg=function(a,b,c){this.j.eg("/client_streamz/po/w/clt",a,b,c)};var Wg=void 0,Vg,Nda="undefined"!==typeof TextDecoder,hda,gda="undefined"!==typeof TextEncoder;var EA,FA;g.HL=Ac();EA=Gc()||tc("iPod");FA=tc("iPad");g.Vwa=Naa();g.SK=Bc();g.dC=Cc()&&!Hc();var mda={},jg=null,nda=Vn||g.Qc||"function"==typeof g.Pa.btoa;var wda="undefined"!==typeof Uint8Array,qda=!g.Pe&&"function"===typeof btoa,uda=/[-_.]/g,sda={"-":"+",_:"/",".":"="},xda,vg={};var zda;wg.prototype.isEmpty=function(){return null==this.Vd};
wg.prototype.sizeBytes=function(){var a=yg(this);return a?a.length:0};var Jda="function"===typeof Uint8Array.prototype.slice,Cg=0,Dg=0,Gda="function"===typeof BigInt;g.k=Eg.prototype;g.k.init=function(a,b,c,d){d=void 0===d?{}:d;this.VF=void 0===d.VF?!1:d.VF;a&&(a=Bg(a),this.u=a.buffer,this.D=a.Dt,this.C=b||0,this.B=void 0!==c?this.C+c:this.u.length,this.j=this.C)};
g.k.free=function(){this.clear();100>Lg.length&&Lg.push(this)};
g.k.clear=function(){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.VF=!1};
g.k.reset=function(){this.j=this.C};
g.k.advance=function(a){Fg(this,this.j+a)};
g.k.yK=function(){var a=Ig(this);return 4294967296*Ig(this)+(a>>>0)};
var Lg=[];Mg.prototype.free=function(){this.j.clear();this.u=this.C=-1;100>i3.length&&i3.push(this)};
Mg.prototype.reset=function(){this.j.reset();this.B=this.j.j;this.u=this.C=-1};
Mg.prototype.advance=function(a){this.j.advance(a)};
var i3=[];var Qda,Tda;Yg.prototype.length=function(){return this.j.length};
Yg.prototype.end=function(){var a=this.j;this.j=[];return a};var j3="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():void 0;Math.max.apply(Math,g.qa(Object.values({eDa:1,YCa:2,PCa:4,MRa:8,LRa:16,fOa:32,toa:64,d4a:128,Xza:256,Uza:512,tBa:1024})));var hh=j3?function(a,b){a[j3]|=b}:function(a,b){void 0!==a.zn?a.zn|=b:Object.defineProperties(a,{zn:{value:b,
configurable:!0,writable:!0,enumerable:!1}})},uea=j3?function(a,b){a[j3]&=~b}:function(a,b){void 0!==a.zn&&(a.zn&=~b)},eh=j3?function(a){return a[j3]|0}:function(a){return a.zn|0},Mh=j3?function(a){return a[j3]}:function(a){return a.zn},fh=j3?function(a,b){a[j3]=b}:function(a,b){void 0!==a.zn?a.zn=b:Object.defineProperties(a,{zn:{value:b,
configurable:!0,writable:!0,enumerable:!1}})};var Ih={},Aab,ci,Bab=[];fh(Bab,39);ci=Object.freeze(Bab);var zh;var Jh;g.k=P.prototype;g.k.toJSON=function(){if(Aab)var a=Gi(this,this.ma,!1);else a=Lh(this.ma,rea,void 0,void 0,!1,!1),a=Gi(this,a,!0);return a};
g.k.zm=function(){Aab=!0;try{return JSON.stringify(this.toJSON(),oea)}finally{Aab=!1}};
g.k.clone=function(){var a=this.ma;return Kh(this.constructor,Nh(a,Mh(a),!1))};
g.k.Dt=function(){return!!(eh(this.ma)&2)};
g.k.XH=Ih;g.k.toString=function(){return Gi(this,this.ma,!1).toString()};var Hea=Symbol(),Mea=Symbol(),Li=Symbol(),Ki=Symbol(),Cab=Ni(function(a,b,c){if(1!==a.u)return!1;Oi(b,c,Jg(a.j));return!0},Pi),Dab=Ni(function(a,b,c){if(1!==a.u)return!1;
a=Jg(a.j);Oi(b,c,0===a?void 0:a);return!0},Pi),Eab=Ni(function(a,b,c,d){if(1!==a.u)return!1;
li(b,c,d,Jg(a.j));return!0},Pi),Fab=Ni(function(a,b,c){if(0!==a.u)return!1;
Oi(b,c,Gg(a.j));return!0},Qi),Gab=Ni(function(a,b,c){if(0!==a.u)return!1;
a=Gg(a.j);Oi(b,c,0===a?void 0:a);return!0},Qi),Hab=Ni(function(a,b,c,d){if(0!==a.u)return!1;
li(b,c,d,Gg(a.j));return!0},Qi),Iab=Ni(function(a,b,c){if(0!==a.u)return!1;
Oi(b,c,Hg(a.j));return!0},Ri),Jab=Ni(function(a,b,c){if(0!==a.u)return!1;
a=Hg(a.j);Oi(b,c,0===a?void 0:a);return!0},Ri),Kab=Ni(function(a,b,c,d){if(0!==a.u)return!1;
li(b,c,d,Hg(a.j));return!0},Ri),Lab=Ni(function(a,b,c){if(1!==a.u)return!1;
Oi(b,c,a.j.yK());return!0},function(a,b,c){Yda(a,c,b)}),Mab=Ni(function(a,b,c){if(1!==a.u&&2!==a.u)return!1;
b=di(b,Mh(b),c,2,!1);if(2==a.u){c=Eg.prototype.yK;var d=Hg(a.j)>>>0;for(d=a.j.j+d;a.j.j<d;)b.push(c.call(a.j))}else b.push(a.j.yK());return!0},function(a,b,c){b=Hi(iea,b,!1);
if(null!=b)for(var d=0;d<b.length;d++)Yda(a,c,b[d])}),Nab=Ni(function(a,b,c){if(0!==a.u)return!1;
Oi(b,c,Kg(a.j));return!0},Uea),Oab=Ni(function(a,b,c,d){if(0!==a.u)return!1;
li(b,c,d,Kg(a.j));return!0},Uea),k3=Ni(function(a,b,c){if(2!==a.u)return!1;
Oi(b,c,Xg(a));return!0},Vea),Pab=Ni(function(a,b,c){if(2!==a.u)return!1;
a=Xg(a);hi(b,c,a);return!0},function(a,b,c){b=Hi(Gh,b,!0);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&ch(a,c,ida(e))}}),Qab=Ni(function(a,b,c,d){if(2!==a.u)return!1;
li(b,c,d,Xg(a));return!0},Vea),Rab=Ni(function(a,b,c,d,e){if(2!==a.u)return!1;
Ug(a,zea(b,d,c),e);return!0},Si),l3=Ni(function(a,b,c,d,e){if(2!==a.u)return!1;
d=J(void 0,d[0],d[1]);var f=Mh(b);yh(f);var h=di(b,f,c,3);if(Object.isFrozen(h)||eh(h)|4)h=dh(h),ai(b,f,c,h);h.push(d);f&1024&&fh(b,f&-1025);Ug(a,d,e);return!0},function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Si(a,b[f],c,d,e)}),m3=Ni(function(a,b,c,d,e,f){if(2!==a.u)return!1;
var h=Mh(b);yh(h);(f=ji(b,h,f))&&c!==f&&ai(b,h,f);b=zea(b,d,c);Ug(a,b,e);return!0},Si),n3=Ni(function(a,b,c){if(2!==a.u)return!1;
Oi(b,c,Oda(a));return!0},function(a,b,c){b=jea(b);
null!=b&&ch(a,c,Bg(b).buffer)}),Sab=Ni(function(a,b,c){if(2!==a.u)return!1;
a=Oda(a);hi(b,c,a);return!0},function(a,b,c){b=Hi(jea,b,!1);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&ch(a,c,Bg(e).buffer)}}),o3=Ni(function(a,b,c){if(0!==a.u)return!1;
Oi(b,c,Hg(a.j)>>>0);return!0},function(a,b,c){b=Dh(b);
null!=b&&null!=b&&(bh(a,c,0),Zg(a.j,b))}),Uab=Ni(function(a,b,c){if(0!==a.u)return!1;
Oi(b,c,Hg(a.j));return!0},function(a,b,c){b=Dh(b);
null!=b&&(b=parseInt(b,10),bh(a,c,0),Wda(a.j,b))});g.x(lj,P);lj.Ab=[1,2,3,4];g.x(mj,P);var sj=[1,2,3],Vab=[0,1,Qab,sj,1,Kab,sj,1,Oab,sj];var Wab=[0,1,l3,[0,1,Cab,1,Fab]];g.x(nj,P);var rj=[1,2,3],Xab=[0,1,Hab,rj,1,Eab,rj,1,m3,Wab,rj];g.x(oj,P);oj.Ab=[1];var Yab=[0,1,l3,Vab,1,Rab,Xab];var Zab=[1,2,3],$ab=[0,1,m3,[0,1,k3,1,k3,1,Nab],Zab,1,m3,[0,1,k3,1,k3,1,Iab,1,Nab],Zab,1,m3,[0,1,k3],Zab];g.x(pj,P);pj.prototype.Bq=function(){var a=Cea(this,3,void 0,2);bea(a);return a[void 0]};
pj.Ab=[3,6,4];pj.prototype.j=Wea([0,1,k3,1,Rab,$ab,1,Pab,1,l3,Yab,1,Lab,1,Mab]);g.x(qj,P);qj.Ab=[1];var cfa={};g.k=tj.prototype;g.k.isEnabled=function(){if(!g.Pa.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{MH: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.cdb;d=c.i$||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.MH}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=kc(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,"",{MH:0,path:b,domain:c});return d};
g.k.hp=function(){return uj(this).keys};
g.k.lm=function(){return uj(this).values};
g.k.isEmpty=function(){return!this.j.cookie};
g.k.clear=function(){for(var a=uj(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var qA=new tj("undefined"==typeof document?null:document);g.x(xj,P);xj.Ab=[2];g.x(yj,P);g.x(zj,P);g.Aj.prototype.u=0;g.Aj.prototype.reset=function(){this.j=this.B=this.C;this.u=0};
g.Aj.prototype.getValue=function(){return this.B};ffa.prototype.zm=function(a){var b=[];Dj(this,a,b);return b.join("")};
var ifa={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},hfa=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Ej.prototype.B=null;Ej.prototype.getOptions=function(){return this.B||(this.B=this.C())};var abb;g.jb(Fj,Ej);Fj.prototype.j=function(){var a=kfa(this);return a?new ActiveXObject(a):new XMLHttpRequest};
Fj.prototype.C=function(){var a={};kfa(this)&&(a[0]=!0,a[1]=!0);return a};
abb=new Fj;var Ij=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),rfa=/#|$/,sfa=/[?&]($|#)/;g.jb(g.ck,g.Hd);var Bfa=/^https?$/i,bbb=["POST","PUT"],ufa=[];g.k=g.ck.prototype;g.k.N3=function(){this.dispose();g.Hb(ufa,this)};
g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.oa+"; newUri="+a);b=b?b.toUpperCase():"GET";this.oa=a;this.C="";this.u=0;this.Ga=!1;this.B=!0;this.j=this.V?this.V.j():abb.j();this.Ba=this.V?this.V.getOptions():abb.getOptions();this.j.onreadystatechange=(0,g.bb)(this.WX,this);try{this.getStatus(),this.Fa=!0,this.j.open(b,String(a),!0),this.Fa=!1}catch(h){this.getStatus();yfa(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.Pa.FormData&&a instanceof g.Pa.FormData;!g.Fb(bbb,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.Ma&&(this.j.responseType=this.Ma);"withCredentials"in this.j&&this.j.withCredentials!==this.J&&(this.j.withCredentials=this.J);try{Afa(this),0<this.K&&(this.Oa=wfa(this.j),this.getStatus(),this.Oa?(this.j.timeout=this.K,this.j.ontimeout=(0,g.bb)(this.vS,
this)):this.qa=g.bg(this.vS,this.K,this)),this.getStatus(),this.ea=!0,this.j.send(a),this.ea=!1}catch(h){this.getStatus(),yfa(this,h)}};
g.k.vS=function(){"undefined"!=typeof ek&&this.j&&(this.C="Timed out after "+this.K+"ms, aborting",this.u=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.j&&this.B&&(this.getStatus(),this.B=!1,this.D=!0,this.j.abort(),this.D=!1,this.u=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),dk(this))};
g.k.xa=function(){this.j&&(this.B&&(this.B=!1,this.D=!0,this.j.abort(),this.D=!1),dk(this,!0));g.ck.Uf.xa.call(this)};
g.k.WX=function(){this.isDisposed()||(this.Fa||this.ea||this.D?zfa(this):this.m8())};
g.k.m8=function(){zfa(this)};
g.k.isActive=function(){return!!this.j};
g.k.isComplete=function(){return 4==g.fk(this)};
g.k.getStatus=function(){try{return 2<g.fk(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.C?this.C:String(this.C)};g.x(kk,P);g.x(lk,P);lk.Ab=[1];g.x(mk,P);var Nfa=["platform","platformVersion","architecture","model","uaFullVersion"];new lk;g.x(Ai,P);g.x(nk,P);nk.Ab=[1,2,3,4,5];g.x(ok,P);g.x(pk,P);pk.prototype.N=function(){return bi(this,nk,7)};
pk.prototype.iG=function(){return N(this,16,void 0,!1)};
pk.Ab=[3,20,27];g.x(qk,P);qk.Ab=[3,5];g.x(rk,P);var cbb=Ti(rk);rk.Ab=[5];g.x(Dfa,P);var p3;p3=new function(a,b,c){this.u=a;this.fieldName=b;this.j=c;this.isRepeated=0;this.B=g.ni;this.defaultValue=void 0}(175237375,{Fcb:0},Dfa);g.x(tk,g.Hd);g.k=tk.prototype;g.k.xa=function(){this.zM();g.Hd.prototype.xa.call(this)};
g.k.dispatch=function(a){if(a instanceof pk)this.log(a);else{var b=new pk;a=a.zm();b=O(b,8,a);this.log(b)}};
g.k.log=function(a){a=a.clone();var b=this.Ma++;a=N(a,21,b);this.componentId&&O(a,26,this.componentId);if(!$h(a,1)){b=a;var c=Date.now().toString();N(b,1,c)}null==$h(a,15)&&N(a,15,60*(new Date).getTimezoneOffset());this.experimentIds&&(b=this.experimentIds.clone(),oi(a,xj,16,b));b=this.u.length-1E3+1;0<b&&(this.u.splice(0,b),this.C+=b);this.u.push(a);this.dispatchEvent(new Kfa(a));this.cC||this.j.enabled||this.j.start()};
g.k.flush=function(a,b){var c=this;if(0===this.u.length)a&&a();else if(this.V)Lfa(this.B,3),Jfa(this);else{var d=Date.now();if(this.Fa>d&&this.qa<d)b&&b("throttled");else{Lfa(this.B,1);var e=this.B.Jf(this.u,this.C,this.J,this.pA);d={};var f=this.bz();f&&(d.Authorization=f);var h=Gfa(this);this.sessionIndex&&(d["X-Goog-AuthUser"]=this.sessionIndex,h=Zj(h,"authuser",this.sessionIndex));this.pageId&&(d["X-Goog-PageId"]=this.pageId,h=Zj(h,"pageId",this.pageId));if(f&&this.Ga===f)b&&b("stale-auth-token");
else{this.u=[];this.j.enabled&&this.j.stop();this.C=0;var l=e.zm(),m;this.K&&this.K.isSupported(l.length)&&(m=this.K.compress(l));var n={url:h,body:l,F3:1,Jw:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(v){c.D.reset();c.j.setInterval(c.D.getValue());if(v){var y=null;try{var A=JSON.stringify(JSON.parse(v.replace(")]}'\n","")));y=cbb(A)}catch(E){}y&&(v=Number(Bi($h(y,1),"-1")),0<v&&(c.qa=Date.now(),c.Fa=c.qa+v),y=p3.j?p3.B(y,p3.j,p3.u,!0):p3.B(y,
p3.u,null,!0),y=null===y?void 0:y)&&(y=Ci(y,1,-1),-1!==y&&(c.Ba||Hfa(c,y)))}a&&a();c.J=0},q=function(v,y){var A=Bea(e,pk),E=$h(e,14);
g.Bj(c.D);c.j.setInterval(c.D.getValue());401===v&&f&&(c.Ga=f);E&&(c.C+=E);void 0===y&&(y=c.isRetryable(v));y&&(c.u=A.concat(c.u),c.cC||c.j.enabled||c.j.start());b&&b("net-send-failed",v);++c.J},t=function(){c.network?c.network.send(n,p,q):c.Wz&&c.Wz(n,p,q)};
m?m.then(function(v){n.Jw["Content-Encoding"]="gzip";n.Jw["Content-Type"]="application/binary";n.body=v;n.F3=2;t()},function(){t()}):t()}}}};
g.k.zM=function(){Mfa(this.B,!0);this.flush();Mfa(this.B,!1)};
g.k.isRetryable=function(a){return 500<=a&&600>a||401===a||0===a};
g.x(Kfa,g.yb);Efa.prototype.Jf=function(a,b,c,d){b=void 0===b?0:b;c=void 0===c?0:c;if(bi(g.ni(this.j,Ai,1),mk,11)){var e=Lk(this);wi(e,3,c)}c=this.j.clone();e=Date.now().toString();c=N(c,4,e);a=ri(c,pk,3,a);d&&(c=new yj,d=wi(c,13,d),c=new zj,d=oi(c,yj,2,d),c=new ok,d=oi(c,zj,1,d),oi(a,ok,18,d));b&&N(a,14,b);return a};g.x(Mk,g.G);Mk.prototype.HU=function(){this.ea=!0;return this};
Mk.prototype.Jf=function(){var a=new tk({logSource:this.logSource,bz:this.bz?this.bz:efa,sessionIndex:this.sessionIndex,Wz:this.Wz,jaa:this.u,Bz:this.B,cC:!1,HU:this.ea,pageId:void 0,D3:void 0,network:this.network?this.network:void 0});g.H(this,a);this.D&&sk(a.B,this.D);if(this.j){var b=this.j,c=Kk(a.B);O(c,7,b)}this.C&&(a.K=this.C);this.componentId&&(a.componentId=this.componentId);this.pA&&(a.pA=this.pA);this.iG&&((b=this.iG)?(a.experimentIds||(a.experimentIds=new xj),b=b.zm(),O(a.experimentIds,
4,b)):a.experimentIds&&N(a.experimentIds,4,void 0,!1));if(this.K){var d=this.K;a.experimentIds||(a.experimentIds=new xj);b=a.experimentIds.ma;c=Mh(b);yh(c);d=null==d?ci:gh(d);ai(b,c,2,d)}this.J&&(b=this.J,a.Ba=!0,Hfa(a,b));this.V&&Ofa(a.B,this.V);return a};g.x(Nk,g.G);Nk.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new qj,c=[],d=0;d<a.length;d++){var e=a[d],f=g.Xea(e);c.push(f);e.clear()}ri(b,pj,1,c);this.j.dispatch(b);this.j.flush()}};g.x(Pk,Error);Pk.prototype.toString=function(){var a="RpcError("+(Qfa(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};
Pk.prototype.name="RpcError";Rk.prototype.done=function(){this.logger.UW(this.j,Qk()-this.startMillis)};
Sk.prototype.done=function(){this.logger.nO(this.operation,Qk()-this.startMillis,this.j)};
g.k=Sfa.prototype;g.k.uD=function(){};
g.k.UW=function(){};
g.k.oO=function(a,b,c){return c};
g.k.TW=function(){};
g.k.nO=function(){};
g.k.RW=function(){};
g.k.Kz=function(){};
g.k.JH=function(){};
g.k.QW=function(){};
g.k.SW=function(){};
g.k=Tfa.prototype;g.k.uD=function(a){this.clientError.j.Ik("/client_streamz/po/w/cec",a,this.qf)};
g.k.UW=function(a,b){this.V.eg(b,a,this.qf)};
g.k.oO=function(a,b,c){function d(h){var l=Qk()-f;e.ea.eg(l,a,b,h,e.qf)}
var e=this,f=Qk();c.then(function(){d(0)},function(h){h instanceof Pk?d(h.code):d(-1)});
return c};
g.k.TW=function(a){this.K.j.Ik("/client_streamz/po/w/csc",a,this.qf)};
g.k.nO=function(a,b,c){this.B.eg(b,a,c,this.qf)};
g.k.RW=function(a,b){this.C.eg(a,b,this.qf)};
g.k.Kz=function(a){this.j.j.Ik("/client_streamz/po/w/ca",a,this.qf)};
g.k.JH=function(a,b){this.D.j.Ik("/client_streamz/po/w/cta",a,b,this.qf)};
g.k.QW=function(){this.u.j.Ik("/client_streamz/po/w/cen",this.qf)};
g.k.SW=function(a){this.J.j.Ik("/client_streamz/po/w/ctot",a,this.qf)};Vfa.prototype.eg=function(a,b){this.j.eg("/client_streamz/bg/fil",a,b)};
Xfa.prototype.eg=function(a,b){this.j.eg("/client_streamz/bg/fsl",a,b)};var Zfa={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.x(cga,P);g.x(dga,P);g.x(Wk,P);var qga=Ti(Wk);Yk.prototype.snapshot=function(a){var b=this;if(this.j)throw Error("Already disposed");var c=Vk(),d;null!=(d=this.Rk)&&d.B.j.Ik("/client_streamz/bg/fsc",d.qf);return this.u.then(function(e){var f=e.C3;return new Promise(function(h){f(function(l){var m;null!=(m=b.Rk)&&m.C.eg(Vk()-c,m.qf);h(l)},[a.Oy,
a.v$,a.w_])})})};
Yk.prototype.tZ=function(a){if(this.j)throw Error("Already disposed");var b=Vk(),c;null!=(c=this.Rk)&&c.B.j.Ik("/client_streamz/bg/fsc",c.qf);a=this.B([a.Oy,a.v$,a.w_]);var d;null!=(d=this.Rk)&&d.C.eg(Vk()-b,d.qf);return a};
Yk.prototype.dispose=function(){var a;null!=(a=this.Rk)&&a.j.Hx();this.j=!0;this.u.then(function(b){(b=b.t$)&&b()})};
Yk.prototype.isDisposed=function(){return this.j};var dna={};g.x(Zk,gga);Zk.prototype.toString=function(){return this.j};var dbb;try{new URL("s://g"),dbb=!0}catch(a){dbb=!1}var hga=dbb;var iga=[bl("data"),bl("http"),bl("https"),bl("mailto"),bl("ftp"),new al(function(a){return/^[^:]*([/?#]|$)/.test(a)})];g.x(il,P);g.x(jl,P);kl.prototype.sC=function(a,b){var c=this,d,e,f,h,l;return g.Ha(function(m){if(1==m.j){var n=new il;d=zi(n,1,c.qf);a&&zi(d,2,a);b&&zi(d,3,b);e=c.j();return g.z(m,c.client.create(d,e),2)}f=m.u;h=zg(fi(f,2));if(h.length)return m.return(rga(h));l=g.ni(f,Wk,1);if(!l)throw Error("Missing field");return m.return(l)})};
kl.prototype.WU=function(a){var b=this,c,d;return g.Ha(function(e){c=b.j();var f=new jl;f=zi(f,1,b.qf);d=zi(f,2,a);f=e.return;var h=b.client;h=Sga(h.j,h.u+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},ebb);return f.call(e,h)})};g.x(ll,P);var fbb=Ti(ll);ml.prototype.YG=function(){return this.B};
ml.prototype.getMetadata=function(){return this.u};nl.prototype.getMetadata=function(){return this.j};
nl.prototype.YG=function(){return this.u};
nl.prototype.getStatus=function(){return null};ol.prototype.getName=function(){return this.name};
ol.prototype.getName=ol.prototype.getName;var gbb=new ol("/google.internal.waa.v1.Waa/Create",il,ll,function(a){return a.zm()},fbb);g.x(pl,P);var hbb=Ti(pl);var ebb=new ol("/google.internal.waa.v1.Waa/GenerateIT",jl,pl,function(a){return a.zm()},hbb);var Qga=Promise;g.x(ql,P);ql.prototype.getValue=function(){var a=$h(this,2);if(Array.isArray(a)||a instanceof P)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return fi(this,2)};g.x(rl,P);rl.prototype.getMessage=function(){return g.Ei(this,2)};
var xga=Ti(rl);rl.Ab=[3];sl.prototype.on=function(a,b){"data"==a?this.B.push(b):"metadata"==a?this.D.push(b):"status"==a?this.J.push(b):"end"==a?this.C.push(b):"error"==a&&this.u.push(b);return this};
sl.prototype.removeListener=function(a,b){"data"==a?wl(this.B,b):"metadata"==a?wl(this.D,b):"status"==a?wl(this.J,b):"end"==a?wl(this.C,b):"error"==a&&wl(this.u,b);return this};
sl.prototype.cancel=function(){this.j.abort()};
sl.prototype.cancel=sl.prototype.cancel;sl.prototype.removeListener=sl.prototype.removeListener;sl.prototype.on=sl.prototype.on;g.jb(g.xl,Ej);g.xl.prototype.j=function(){var a=new Il(this.J,this.D);this.u&&a.setCredentialsMode(this.u);return a};
g.xl.prototype.C=Kd({});g.xl.prototype.setCredentialsMode=function(a){this.u=a};
g.jb(Il,g.Hd);g.k=Il.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.oa=a;this.ea=b;this.readyState=1;Jl(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.V,method:this.oa,credentials:this.D,cache:void 0};a&&(b.body=a);(this.qa||g.Pa).fetch(new Request(this.ea,b)).then(this.n5.bind(this),this.mH.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.V=new Headers;this.status=0;this.B&&this.B.cancel("Request was aborted.").catch(function(){});
1<=this.readyState&&this.j&&4!=this.readyState&&(this.j=!1,Kl(this));this.readyState=0};
g.k.n5=function(a){if(this.j&&(this.C=a,this.u||(this.status=this.C.status,this.statusText=this.C.statusText,this.u=a.headers,this.readyState=2,Jl(this)),this.j&&(this.readyState=3,Jl(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.l5.bind(this),this.mH.bind(this));else if("undefined"!==typeof g.Pa.ReadableStream&&"body"in a){this.B=a.body.getReader();if(this.J){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.K=new TextDecoder;yga(this)}else a.text().then(this.m5.bind(this),this.mH.bind(this))};
g.k.d5=function(a){if(this.j){if(this.J&&a.value)this.response.push(a.value);else if(!this.J){var b=a.value?a.value:new Uint8Array(0);if(b=this.K.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?Kl(this):Jl(this);3==this.readyState&&yga(this)}};
g.k.m5=function(a){this.j&&(this.response=this.responseText=a,Kl(this))};
g.k.l5=function(a){this.j&&(this.response=a,Kl(this))};
g.k.mH=function(){this.j&&Kl(this)};
g.k.setRequestHeader=function(a,b){this.V.append(a,b)};
g.k.getResponseHeader=function(a){return this.u?this.u.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.u)return"";for(var a=[],b=this.u.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
g.k.setCredentialsMode=function(a){this.D=a};
Object.defineProperty(Il.prototype,"withCredentials",{get:function(){return"include"===this.D},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.Ml.prototype.toString=function(){var a=[],b=this.D;b&&a.push(Tl(b,ibb,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.V)&&a.push(Tl(b,ibb,!0),"@"),a.push(g.Ae(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,null!=c&&a.push(":",String(c));if(c=this.B)this.j&&"/"!=c.charAt(0)&&a.push("/"),a.push(Tl(c,"/"==c.charAt(0)?jbb:kbb,!0));(c=this.u.toString())&&a.push("?",c);(c=this.J)&&a.push("#",Tl(c,lbb));return a.join("")};
g.Ml.prototype.resolve=function(a){var b=this.clone(),c=!!a.D;c?g.Nl(b,a.D):c=!!a.V;c?b.V=a.V:c=!!a.j;c?g.Ol(b,a.j):c=null!=a.C;var d=a.B;if(c)g.Pl(b,a.C);else if(c=!!a.B){if("/"!=d.charAt(0))if(this.j&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");-1!=e&&(d=b.B.slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(g.ic(e,"./")||g.ic(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.B=d:c=""!==a.u.toString();c?Ql(b,a.u.clone()):c=!!a.J;c&&(b.J=a.J);return b};
g.Ml.prototype.clone=function(){return new g.Ml(this)};
var ibb=/[#\/\?@]/g,kbb=/[#\?:]/g,jbb=/[#\?]/g,Cga=/[#\?@]/g,lbb=/#/g;g.k=Sl.prototype;g.k.add=function(a,b){Wl(this);this.B=null;a=Xl(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.u=this.u+1;return this};
g.k.remove=function(a){Wl(this);a=Xl(this,a);return this.j.has(a)?(this.B=null,this.u=this.u-this.j.get(a).length,this.j.delete(a)):!1};
g.k.clear=function(){this.j=this.B=null;this.u=0};
g.k.isEmpty=function(){Wl(this);return 0==this.u};
g.k.forEach=function(a,b){Wl(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.hp=function(){Wl(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.lm=function(a){Wl(this);var b=[];if("string"===typeof a)Ega(this,a)&&(b=b.concat(this.j.get(Xl(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){Wl(this);this.B=null;a=Xl(this,a);Ega(this,a)&&(this.u=this.u-this.j.get(a).length);this.j.set(a,[b]);this.u=this.u+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.lm(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.B)return this.B;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.Ae(d);d=this.lm(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+g.Ae(d[f]));a.push(h)}}return this.B=a.join("&")};
g.k.clone=function(){var a=new Sl;a.B=this.B;this.j&&(a.j=new Map(this.j),a.u=this.u);return a};
g.k.extend=function(a){for(var b=0;b<arguments.length;b++)g.Ll(arguments[b],function(c,d){this.add(d,c)},this)};g.jb(g.Zl,g.G);var mbb=[];g.k=g.Zl.prototype;g.k.Ta=function(a,b,c,d){Array.isArray(b)||(b&&(mbb[0]=b.toString()),b=mbb);for(var e=0;e<b.length;e++){var f=g.xd(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.j[f.key]=f}return this};
g.k.IH=function(a,b,c,d){return Hga(this,a,b,c,d)};
g.k.Mc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Mc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Xa(d)?!!d.capture:!!d,e=e||this.u||this,c=yd(c),d=!!d,b=Uc(a)?a.IC(b,c,d,e):a?(a=zd(a))?a.IC(b,c,d,e):null:null,b&&(Bd(b),delete this.j[b.key])};
g.k.Tf=function(){g.Wc(this.j,function(a,b){this.j.hasOwnProperty(b)&&Bd(a)},this);
this.j={}};
g.k.xa=function(){g.Zl.Uf.xa.call(this);this.Tf()};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Iga.prototype.isInputValid=function(){return this.B};$l.prototype.isInputValid=function(){return 3!=this.j};
$l.prototype.Mf=function(){return this.J};
$l.prototype.SF=function(){return!0};
$l.prototype.parse=function(a){function b(m){m&128&&am(f,h,l,"invalid tag");2!=(m&7)&&am(f,h,l,"invalid wire type");f.B=m>>>3;1!=f.B&&2!=f.B&&15!=f.B&&am(f,h,l,"unexpected tag");f.j=1;f.u=0;f.C=0}
function c(m){f.C++;5==f.C&&m&240&&am(f,h,l,"message length too long");f.u|=(m&127)<<7*(f.C-1);m&128||(f.j=2,f.V=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.u):f.D=Array(f.u),0==f.u&&e())}
function d(m){f.D[f.V++]=m;f.V==f.u&&e()}
function e(){if(15>f.B){var m={};m[f.B]=f.D;f.K.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:am(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.K;f.K=[];return 0<a.length?a:null};bm.prototype.isInputValid=function(){return null===this.j};
bm.prototype.Mf=function(){return this.j};
bm.prototype.SF=function(){return!1};
bm.prototype.parse=function(a){null!==this.j&&Kga(this,a,"stream already broken");var b=null;try{var c=this.B;c.B||Jga(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=pda(c.j.slice(0,4*d))}catch(h){Jga(c,c.j,h.message)}c.u+=4*d;c.j=c.j.slice(4*d);e=f}b=null===e?null:this.C.parse(e)}catch(h){Kga(this,a,h.message)}this.u+=a.length;return b};var nbb={INIT:0,LB:1,VK:2,Rx:3,lB:4,kB:5,STRING:6,OK:7,YS:8,wT:9,xT:10,yT:11,ER:12,FR:13,GR:14,HR:15,gT:16,hT:17,iT:18,J2:19,TK:20};g.k=dm.prototype;g.k.isInputValid=function(){return 3!=this.D};
g.k.Mf=function(){return this.ea};
g.k.done=function(){return 2===this.D};
g.k.SF=function(){return!1};
g.k.parse=function(a){function b(){for(;t<a.length;)if(cm(a[t]))t++,f.B++;else break;return t<n}
function c(){for(var y;;){y=a[t++];if(!y)break;f.B++;switch(f.j){case m.INIT:"{"===y?f.j=m.VK:"["===y?f.j=m.lB:cm(y)||em(f,a,t);continue;case m.OK:case m.VK:if(cm(y))continue;if(f.j===m.OK)h.push(m.YS);else if("}"===y){e("{}");f.j=d();continue}else h.push(m.Rx);'"'===y?f.j=m.STRING:em(f,a,t);continue;case m.YS:case m.Rx:if(cm(y))continue;":"===y?(f.j===m.Rx&&(h.push(m.Rx),f.u++),f.j=m.LB):"}"===y?(f.u--,e(),f.j=d()):","===y?(f.j===m.Rx&&h.push(m.Rx),f.j=m.OK):em(f,a,t);continue;case m.lB:case m.LB:if(cm(y))continue;
if(f.j===m.lB)if(f.u++,f.j=m.LB,"]"===y){f.u--;if(0===f.u){f.j=m.kB;return}e("[]");f.j=d();continue}else h.push(m.kB);'"'===y?f.j=m.STRING:"{"===y?f.j=m.VK:"["===y?f.j=m.lB:"t"===y?f.j=m.wT:"f"===y?f.j=m.ER:"n"===y?f.j=m.gT:"-"!==y&&(-1!=="0123456789".indexOf(y)?f.j=m.TK:em(f,a,t));continue;case m.kB:if(","===y)h.push(m.kB),f.j=m.LB,1===f.u&&(q=t);else if("]"===y){f.u--;if(0===f.u)return;e();f.j=d()}else if(cm(y))continue;else em(f,a,t);continue;case m.STRING:var A=t;a:for(;;){for(;0<f.V;)if(y=a[t++],
4===f.V?f.V=0:f.V++,!y)break a;if('"'===y&&!f.K){f.j=d();break}if("\\"===y&&!f.K&&(f.K=!0,y=a[t++],!y))break;if(f.K)if(f.K=!1,"u"===y&&(f.V=1),y=a[t++])continue;else break;l.lastIndex=t;y=l.exec(a);if(!y){t=a.length+1;break}t=y.index+1;y=a[y.index];if(!y)break}f.B+=t-A;continue;case m.wT:if(!y)continue;"r"===y?f.j=m.xT:em(f,a,t);continue;case m.xT:if(!y)continue;"u"===y?f.j=m.yT:em(f,a,t);continue;case m.yT:if(!y)continue;"e"===y?f.j=d():em(f,a,t);continue;case m.ER:if(!y)continue;"a"===y?f.j=m.FR:
em(f,a,t);continue;case m.FR:if(!y)continue;"l"===y?f.j=m.GR:em(f,a,t);continue;case m.GR:if(!y)continue;"s"===y?f.j=m.HR:em(f,a,t);continue;case m.HR:if(!y)continue;"e"===y?f.j=d():em(f,a,t);continue;case m.gT:if(!y)continue;"u"===y?f.j=m.hT:em(f,a,t);continue;case m.hT:if(!y)continue;"l"===y?f.j=m.iT:em(f,a,t);continue;case m.iT:if(!y)continue;"l"===y?f.j=d():em(f,a,t);continue;case m.J2:"."===y?f.j=m.TK:em(f,a,t);continue;case m.TK:if(-1!=="0123456789.eE+-".indexOf(y))continue;else t--,f.B--,f.j=
d();continue;default:em(f,a,t)}}}
function d(){var y=h.pop();return null!=y?y:m.LB}
function e(y){1<f.u||(y||(y=-1===q?f.C+a.substring(p,t):a.substring(q,t)),f.oa?f.J.push(y):f.J.push(JSON.parse(y)),q=t)}
for(var f=this,h=f.qa,l=f.Ba,m=nbb,n=a.length,p=0,q=-1,t=0;t<n;)switch(f.D){case 3:return em(f,a,t),null;case 2:return b()&&em(f,a,t),null;case 0:if(b()){var v=a[t++];f.B++;if("["===v){f.D=1;p=t;f.j=m.lB;continue}else em(f,a,t)}return null;case 1:return c(),0===f.u&&f.j==m.kB?(f.D=2,f.C=a.substring(t)):f.C=-1===q?f.C+a.substring(p):a.substring(q),0<f.J.length?(v=f.J,f.J=[],v):null}return null};fm.prototype.isInputValid=function(){return null===this.D};
fm.prototype.Mf=function(){return this.D};
fm.prototype.SF=function(){return!1};
fm.prototype.parse=function(a){function b(m){f.u=6;f.D="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.D);}
function c(){f.B=new dm({cbb:!0,h4:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.C.push(p)}}
function e(m){if(m){(f.J||1<m.length)&&b("extra status: "+m);f.J=!0;var n={};n[2]=m[0];f.C.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.u){a:{for(;h<a.length;){if(!cm(a[h])){l=!0;break a}h++;f.j++}l=!1}l=!l}if(l)return null;switch(f.u){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.u=1,h++,f.j++):b("unexpected input token");break;case 1:"["===a[h]?(f.u=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.u=3:"]"===a[h]?(f.u=5,h++,f.j++):b("unexpected input token");break;case 2:l=f.B.parse(a.substring(h));d(l);f.B.done()?(f.u=3,l=f.B.C,f.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.u=4,c(),f.B.parse("["),h+=","===a[h]?1:5,f.j++):"]"===a[h]&&(f.u=5,h++,f.j++);break;case 4:l=f.B.parse(a.substring(h));e(l);f.B.done()?(f.u=5,l=f.B.C,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.C.length?(a=f.C,f.C=[],a):null};gm.prototype.mN=function(){return this.j};
gm.prototype.getStatus=function(){return this.C};
gm.prototype.oa=function(a){a=a.target;try{if(a==this.j)a:{var b=g.fk(this.j),c=this.j.u,d=this.j.getStatus(),e=g.hk(this.j);a=[];if(g.ik(this.j)instanceof Array){var f=g.ik(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?hm(this,7):7==c?hm(this,8):d||hm(this,3)),this.u||(this.u=Lga(this.j),null==this.u&&hm(this,5)),2<this.C)im(this);else{if(a.length>this.B){var h=a.length;c=[];try{if(this.u.SF())for(var l=0;l<h;l++){var m=
this.u.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.J){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.J=new TextDecoder}for(l=0;l<h;l++)m+=this.J.decode(a[l],{stream:4==b&&l==h-1});c=this.u.parse(m)}a.splice(0,h);c&&this.D(c)}catch(p){hm(this,5);im(this);break a}}else if(e.length>this.B){l=e.slice(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){hm(this,5);im(this);break a}}4==b?(0!=e.length||
this.ea?hm(this,2):hm(this,4),im(this)):hm(this,1)}}}catch(p){hm(this,6),im(this)}};g.k=Mga.prototype;g.k.on=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this};
g.k.addListener=function(a,b){this.on(a,b);return this};
g.k.removeListener=function(a,b){var c=this.u[a];c&&g.Hb(c,b);(a=this.j[a])&&g.Hb(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.o7=function(a){var b=this.u.data;b&&Nga(a,b);(b=this.j.data)&&Nga(a,b);this.j.data=[]};
g.k.U8=function(){switch(this.B.getStatus()){case 1:jm(this,"readable");break;case 5:case 6:case 4:case 7:case 3:jm(this,"error");break;case 8:jm(this,"close");break;case 2:jm(this,"end")}};Oga.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Pga(function(h){var l=h.YG(),m=h.getMetadata(),n=Tga(e,!1);m=Uga(e,m,n,f+l.getName());var p=Vga(n,l.u,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.C).call(this,sga(d,b,c))};Wga.prototype.create=function(a,b){return Sga(this.j,this.u+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},gbb)};var obb=1,qm=new WeakMap;g.x(km,g.G);km.prototype.signal=function(){var a=new mm(!1);this.j.add(a);g.H(this,a);return a};
km.prototype.Fz=function(a){this.j.has(a);return a.Fz()};
g.x(mm,g.G);g.k=mm.prototype;g.k.BL=function(){var a=this,b=obb++;nm(function(){Yga(a,b)});
return b};
g.k.detach=function(a){var b=this;nm(function(){var c=b.slots.get(a);c&&c.FU()})};
g.k.value=function(a){return this.promise(!0,a)};
g.k.Fz=function(){return this.HW};
g.k.next=function(a){return this.promise(!1,a)};
g.k.promise=function(a,b){var c=this,d=Jca();nm(function(){if(c.isDisposed())d.reject(new $f("Signal initially disposed"));else if(b&&b.isDisposed())d.reject(new $f("Owner initially disposed"));else if(a&&c.eU&&c.UV)d.resolve(c.HW);else if(c.tA.add(d),Sf(d.promise,function(){c.tA.delete(d)}),b){var e=function(){d.reject(new $f("Owner asynchronously disposed"))};
Sf(d.promise,function(){var f=qm.get(b);f&&g.Hb(f,e)});
bha(b,e)}});
return d.promise};
g.k.xa=function(){var a=this;g.G.prototype.xa.call(this);nm(function(){for(var b=g.u(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.FU,c();a.slots.clear();b=g.u(a.tA);for(c=b.next();!c.done;c=b.next())c.value.reject(new $f("Signal asynchronously disposed"));a.tA.clear()})};
var om=[],pm=!1;g.x(rm,g.G);rm.prototype.start=function(){var a=this;if(this.isDisposed())throw new tm("Cannot start a disposed timer.");if(!this.J){this.C=0;if(this.K){var b=Date.now();this.handle=setInterval(function(){a.C=0<a.milliseconds?Math.trunc((Date.now()-b)/a.milliseconds):a.C+1;var c;null==(c=a.u)||c.resolve();a.u=void 0;if(a.B){var d;null==(d=a.j)||lm(d,a.B,a)}a.Qb.sI(a)},this.milliseconds)}else this.handle=setTimeout(function(){a.state=3;
a.handle=void 0;a.C=1;var c;null==(c=a.u)||c.resolve();a.u=void 0;if(a.B){var d;null==(d=a.j)||lm(d,a.B,a)}a.Qb.sI(a)},this.milliseconds);
this.state=1}};
rm.prototype.cancel=function(){if(this.J){this.clear();this.state=2;var a;null==(a=this.u)||a.reject(new sm);var b;null==(b=this.Qb.OO)||b.call(this);if(this.D){var c;null==(c=this.j)||lm(c,this.D)}}};
rm.prototype.xa=function(){this.clear();var a;null==(a=this.u)||a.reject(new tm);this.state=4;g.G.prototype.xa.call(this)};
rm.prototype.clear=function(){this.K?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0};
g.ea.Object.defineProperties(rm.prototype,{J:{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.C}},
V:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return null!=this.u||(this.u=new g.Xk),this.u.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new sm("Timer has been cancelled."));case 4:return Promise.reject(new tm("Timer has been disposed."));default:dl(this.state)}}},
sI:{configurable:!0,enumerable:!0,get:function(){if(this.isDisposed())throw new tm("Cannot attach a signal to a disposed timer.");this.B||(null!=this.j||(this.j=new km(this)),this.B=this.j.signal());return this.B}},
OO:{configurable:!0,enumerable:!0,get:function(){if(this.isDisposed())throw new tm("Cannot attach a signal to a disposed timer.");this.D||(null!=this.j||(this.j=new km(this)),this.D=this.j.signal());return this.D}}});
g.x(sm,ub);g.x(tm,ub);var dha=globalThis.TextEncoder?new TextEncoder:void 0;g.x(um,Error);g.x(vm,g.G);vm.prototype.D=function(a){var b=this.j(a);a=new Rk(this.logger,this.u);b=g.gg(b,2);a.done();return b};
g.x(xm,vm);xm.prototype.j=function(a){++this.K>=this.V&&this.C.resolve();var b=gha(a,this.logger);a=new Rk(this.logger,"C");b=this.J(b,!0);a.done();if(void 0===b)throw new um(17,Error("YNJ:Undefined"));if(!(b instanceof Uint8Array))throw new um(18,Error("ODM:Invalid"));return b};
g.x(ym,vm);ym.prototype.j=function(){return this.J};
g.x(zm,vm);zm.prototype.j=function(){return ig(this.J)};
zm.prototype.D=function(){return this.J};
g.x(Am,vm);Am.prototype.j=function(){if(this.J)return this.J;this.J=hha(this,function(a){return"_"+$fa(a)});
return hha(this,function(a){return a})};
g.x(Hm,vm);Hm.prototype.j=function(a){var b=gha(a,this.logger);if(118<b.length)throw new um(19,Error("DFO:Invalid"));a=Date.now()/1E3|0;var c=[255*Math.random()|0,255*Math.random()|0],d=c.concat([this.J&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.TW(this.clientState);return a};
g.x(Im,g.G);g.k=Im.prototype;g.k.isReady=function(){return!!this.j};
g.k.ready=function(){var a=this;return g.Ha(function(b){return g.z(b,a.C.promise,0)})};
g.k.sC=function(a){var b=Jm,c=this.logger,d=c.oO,e=this.Yy,f=e.sC;var h=lga().u;return b(this,d.call(c,"c",void 0===a?1:a,f.call(e,h,null)),new um(10,"JVZ:Timeout"))};
g.k.prefetch=function(){1===this.state&&(this.u=this.sC())};
g.k.start=function(){if(1===this.state){this.state=2;var a=new Rk(this.logger,"r");this.ready().finally(function(){return void a.done()});
kha(this)}};var qha={NONE:0,Era:1},Xha={T_:0,uWa:1,tWa:2,vWa:3},tn={G_:"a",Zqa:"d",VIDEO:"v"};Km.prototype.isVisible=function(){return this.Tv?.3<=this.De:.5<=this.De};var Um={Doa:0,qxa:1},Vha={NONE:0,jCa:1,Cza:2};Lm.prototype.getValue=function(){return this.Vd};
g.x(Mm,Lm);Mm.prototype.u=function(a){null===this.Vd&&g.dd(this.B,a)&&(this.Vd=a)};
g.x(Nm,Lm);Nm.prototype.u=function(a){null===this.Vd&&"number"===typeof a&&(this.Vd=a)};
g.x(Om,Lm);Om.prototype.u=function(a){null===this.Vd&&"string"===typeof a&&(this.Vd=a)};Pm.prototype.disable=function(){this.u=!1};
Pm.prototype.enable=function(){this.u=!0};
Pm.prototype.isEnabled=function(){return this.u};
Pm.prototype.reset=function(){this.j={};this.u=!0;this.B={}};var zo=document,Ym=window;var Yia=!g.Pe&&!Cc();Vm.prototype.now=function(){return 0};
Vm.prototype.u=function(){return 0};
Vm.prototype.B=function(){return 0};
Vm.prototype.j=function(){return 0};g.x(Xm,Vm);Xm.prototype.now=function(){return Wm()&&Ym.performance.now?Ym.performance.now():Vm.prototype.now.call(this)};
Xm.prototype.u=function(){return Wm()&&Ym.performance.memory?Ym.performance.memory.totalJSHeapSize||0:Vm.prototype.u.call(this)};
Xm.prototype.B=function(){return Wm()&&Ym.performance.memory?Ym.performance.memory.usedJSHeapSize||0:Vm.prototype.B.call(this)};
Xm.prototype.j=function(){return Wm()&&Ym.performance.memory?Ym.performance.memory.jsHeapSizeLimit||0:Vm.prototype.j.call(this)};var tha=Md(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.Pa.addEventListener("test",null,b)}catch(c){}return a});uha.prototype.isVisible=function(){return 1===an(zo)};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 wha={Ufa:"allow-forms",Vfa:"allow-modals",Wfa:"allow-orientation-lock",Xfa:"allow-pointer-lock",Yfa:"allow-popups",Zfa:"allow-popups-to-escape-sandbox",aga:"allow-presentation",cga:"allow-same-origin",dga:"allow-scripts",ega:"allow-top-navigation",fga:"allow-top-navigation-by-user-activation"},Aha=Md(function(){return xha()});var Eha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");fn.prototype.kf=function(a,b,c){a=a+"//"+b+c;var d=Iha(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.u[f],l=0;l<h.length;l++){if(!d){c=null==c?f:c;break}var m=Hha(h[l],this.B,",$");if(m){m=b+m;if(d>=m.length){d-=m.length;a+=m;b=this.B;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};on.prototype.setInterval=function(a,b){return Ym.setInterval(a,b)};
on.prototype.clearInterval=function(a){Ym.clearInterval(a)};
on.prototype.setTimeout=function(a,b){return Ym.setTimeout(a,b)};
on.prototype.clearTimeout=function(a){Ym.clearTimeout(a)};g.x(qn,P);qn.prototype.j=Wea([0,1,Dab,1,Gab,1,Gab,1,Gab,1,Jab]);var Wha={EUa:1,Z2:2,RNa:3};Yha.prototype.OP=function(a){if("string"===typeof a&&0!=a.length){var b=this.Fc;if(b.u){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.u(d)}}}};var q3=null;var wn=g.Pa.performance,pbb=!!(wn&&wn.mark&&wn.measure&&wn.clearMarks),un=Md(function(){var a;if(a=pbb){var b;if(null===q3){q3="";try{a="";try{a=g.Pa.top.location.hash}catch(c){a=g.Pa.location.hash}a&&(q3=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=q3;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
vn.prototype.disable=function(){this.j=!1;this.events!=this.u.google_js_reporting_queue&&(un()&&g.$b(this.events,dia),this.events.length=0)};
vn.prototype.start=function(a,b){if(!this.j)return null;var c=bia()||aia();a=new cia(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";wn&&un()&&wn.mark(b);return a};
vn.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=bia()||aia();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";wn&&un()&&wn.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};eia.prototype.rO=function(a,b,c,d,e){e=e||this.SU;try{var f=new fn;f.j.push(1);f.u[1]=gn("context",a);b.error&&b.meta&&b.id||(b=new An(Bn(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.u[2]=gn("msg",h)}var l=b.meta||{};if(this.wL)try{this.wL(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.j.push(3);f.u[3]=b;var m=Gha();if(m.u){var n=m.u.url||"";f.j.push(4);f.u[4]=gn("top",n)}var p=[{url:m.j.url||""},{url:m.j.url?mfa(m.j.url):""}];f.j.push(5);f.u[5]=p;Zha(this.j,e,f,c)}catch(q){try{Zha(this.j,
e,{context:"ecmserr",rctx:a,msg:Bn(q),url:m&&m.j.url},c)}catch(t){}}return this.GQ};
g.x(An,$ha);var yn,zn,xn=new vn;yn=new function(){var a="https:";Ym&&Ym.location&&"http:"===Ym.location.protocol&&(a="http:");this.u=a;this.j=.01};
zn=new eia;Ym&&Ym.document&&("complete"==Ym.document.readyState?gia():xn.j&&$m(Ym,"load",function(){gia()}));var jia=Date.now(),In=-1,Gn=-1,yja,Jn=-1,Hn=!1;g.k=Kn.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new Kn(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof Kn?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};On.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&Mn(this.j,a.j)&&!0};Pn.prototype.Bb=function(){return this.K};
Pn.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.K==a.K&&Mn(this.B,a.B)&&Mn(this.J,a.J)&&this.j==a.j&&this.D==a.D&&this.u==a.u&&this.V==a.V};var qbb={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},up={P2:"start",b0:"firstquartile",G2:"midpoint",S2:"thirdquartile",O_:"complete",ERROR:"error",F2:"metric",PAUSE:"pause",M2:"resume",N2:"skip",Y2:"viewable_impression",I2:"mute",W2:"unmute",d0:"fullscreen",Z_:"exitfullscreen",M_:"bufferstart",L_:"bufferfinish",e0:"fully_viewable_audible_half_duration_impression",E2:"measurable_impression",E_:"abandon",Y_:"engagedview",h0:"impression",Q_:"creativeview",D2:"loaded",SVa:"progress",
CLOSE:"close",foa:"collapse",KSa:"overlay_resize",LSa:"overlay_unmeasurable_impression",MSa:"overlay_unviewable_impression",OSa:"overlay_viewable_immediate_impression",NSa:"overlay_viewable_end_of_session_impression",S_:"custom_metric_viewable",KRa:"verification_debug",H_:"audio_audible",J_:"audio_measurable",I_:"audio_impression"},Jka="start firstquartile midpoint thirdquartile resume loaded".split(" "),Kka=["start","firstquartile","midpoint","thirdquartile"],zja=["abandon"],Tp={UNKNOWN:-1,P2:0,
b0:1,G2:2,S2:3,O_:4,F2:5,PAUSE:6,M2:7,N2:8,Y2:9,I2:10,W2:11,d0:12,Z_:13,e0:14,E2:15,E_:16,Y_:17,h0:18,Q_:19,D2:20,S_:21,M_:22,L_:23,I_:27,J_:28,H_:29};var lia={vba:"addEventListener",Eza:"getMaxSize",Fza:"getScreenSize",Gza:"getState",Hza:"getVersion",oWa:"removeEventListener",kDa:"isViewable"};g.k=g.Rn.prototype;g.k.clone=function(){return new g.Rn(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.te?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.xe(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 pia={};yia.prototype.update=function(a){a&&a.document&&(this.K=Qn(!1,a,this.isMobileDevice),this.j=Qn(!0,a,this.isMobileDevice),Aia(this,a),zia(this,a))};Bo.prototype.cancel=function(){pn().clearTimeout(this.j);this.j=null};
Bo.prototype.schedule=function(){var a=this,b=pn(),c=sn().j.j;this.j=b.setTimeout(rn(c,Dn(143,function(){a.u++;a.B.sample()})),kia())};g.k=Co.prototype;g.k.CB=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.ez=function(){return this.j.Fa};
g.k.XC=function(){return this.j.oa};
g.k.fail=function(a,b){if(!this.oa||(void 0===b?0:b))this.oa=!0,this.Fa=a,this.V=0,this.j!=this||Eo(this)};
g.k.getName=function(){return this.j.Va};
g.k.Zs=function(){return this.j.kV()};
g.k.kV=function(){return{}};
g.k.Hq=function(){return this.j.V};
g.k.wS=function(){var a=yo();a.j=Qn(!0,this.B,a.isMobileDevice)};
g.k.xS=function(){zia(yo(),this.B)};
g.k.zV=function(){return this.C.j};
g.k.sample=function(){};
g.k.isActive=function(){return this.j.J};
g.k.oz=function(a){var b=this.j;this.j=a.Hq()>=this.V?a:this;b!==this.j?(this.J=this.j.J,Eo(this)):this.J!==this.j.J&&(this.J=this.j.J,Eo(this))};
g.k.xt=function(a){if(a.u===this.j){var b=!this.C.equals(a,this.ea);this.C=a;b&&Dia(this)}};
g.k.Np=function(){return this.ea};
g.k.dispose=function(){this.Ga=!0};
g.k.isDisposed=function(){return this.Ga};g.k=Fo.prototype;g.k.zK=function(){return!0};
g.k.DB=function(){};
g.k.dispose=function(){if(!this.isDisposed()){var a=this.u;g.Hb(a.D,this);a.ea&&this.Np()&&Cia(a);this.DB();this.oa=!0}};
g.k.isDisposed=function(){return this.oa};
g.k.Zs=function(){return this.u.Zs()};
g.k.Hq=function(){return this.u.Hq()};
g.k.ez=function(){return this.u.ez()};
g.k.XC=function(){return this.u.XC()};
g.k.oz=function(){};
g.k.xt=function(){this.Fs()};
g.k.Np=function(){return this.qa};g.k=Go.prototype;g.k.Hq=function(){return this.j.Hq()};
g.k.ez=function(){return this.j.ez()};
g.k.XC=function(){return this.j.XC()};
g.k.create=function(a,b,c){var d=null;this.j&&(d=this.KF(a,b,c),Do(this.j,d));return d};
g.k.yS=function(){return this.EB()};
g.k.EB=function(){return!1};
g.k.init=function(a){return this.j.initialize()?(Do(this.j,this),this.C=a,!0):!1};
g.k.oz=function(a){0==a.Hq()&&this.C(a.ez(),this)};
g.k.xt=function(){};
g.k.Np=function(){return!1};
g.k.dispose=function(){this.D=!0};
g.k.isDisposed=function(){return this.D};
g.k.Zs=function(){return{}};Ho.prototype.add=function(a,b,c){++this.B;a=new Eia(a,b,c);this.j.push(new Eia(a.j,a.Vd,a.u+this.B/4096));this.u=!0;return this};Jia.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Jo(this.j);0<b.length&&(a+="?"+b);return a};Ko.prototype.update=function(a,b,c){a&&(this.j+=b,this.u+=b,this.C+=b,this.B=Math.max(this.B,this.C));if(void 0===c?!a:c)this.C=0};var Oia=[1,.75,.5,.3,0];Lo.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.u.length;e++){var h=this.u[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};Ro.prototype.update=function(a,b,c,d){this.K=-1!=this.K?Math.min(this.K,b.De):b.De;this.qa=Math.max(this.qa,b.De);this.Ba=-1!=this.Ba?Math.min(this.Ba,b.zk):b.zk;this.Fa=Math.max(this.Fa,b.zk);this.ob.update(b.zk,c.zk,b.j,a,d);this.u.update(b.De,c.De,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)};
Ro.prototype.Wq=function(){return this.Va.B>=this.kb};if(zo&&zo.URL){var rbb=zo.URL,sbb;if(sbb=!!rbb){var tbb;a:{if(rbb){var ubb=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var r3=ubb.exec(decodeURIComponent(rbb));if(r3){tbb=r3[1]&&1<r3[1].length?r3[1].substring(1):"true";break a}}catch(a){}}tbb=""}sbb=0<tbb.length}zn.GQ=!sbb};var vbb=new Kn(0,0,0,0);var Wia=new Kn(0,0,0,0);g.x(Wo,g.G);g.k=Wo.prototype;
g.k.xa=function(){if(this.Vj.j){if(this.wv.EO){var a=this.Vj.j;a.removeEventListener&&a.removeEventListener("mouseover",this.wv.EO,Zm());this.wv.EO=null}this.wv.DO&&(a=this.Vj.j,a.removeEventListener&&a.removeEventListener("mouseout",this.wv.DO,Zm()),this.wv.DO=null)}this.VE&&this.VE.dispose();this.Df&&this.Df.dispose();delete this.SH;delete this.tO;delete this.d_;delete this.Vj.Kt;delete this.Vj.j;delete this.wv;delete this.VE;delete this.Df;delete this.Fc;g.G.prototype.xa.call(this)};
g.k.nt=function(){return this.Df?this.Df.j:this.position};
g.k.OP=function(a){sn().OP(a)};
g.k.Np=function(){return!1};
g.k.bH=function(){return new Ro};
g.k.qj=function(){return this.SH};
g.k.qV=function(a){return $ia(this,a,1E4)};
g.k.Sa=function(a,b,c,d,e,f,h){this.Ct||(this.iC&&(a=this.HL(a,c,e,h),d=d&&this.Oh.De>=(this.Tv()?.3:.5),this.nR(f,a,d),this.Dp=b,0<a.De&&-1===this.KZ&&(this.KZ=b),-1==this.PZ&&this.Wq()&&(this.PZ=b),-2==this.mO&&(this.mO=Uo(this.nt())?a.De:-1),this.Oh=a),this.tO(this))};
g.k.nR=function(a,b,c){this.qj().update(a,b,this.Oh,c)};
g.k.bN=function(){return new Km};
g.k.HL=function(a,b,c,d){c=this.bN();c.j=b;b=pn().u;b=0===an(zo)?-1:b.isVisible()?0:1;c.u=b;c.De=this.YL(a);c.Tv=this.Tv();c.zk=d;return c};
g.k.YL=function(a){return 0===this.opacity&&1===Sm(this.Fc,"opac")?0:a};
g.k.Tv=function(){return!1};
g.k.uJ=function(){return this.O5||this.R5};
g.k.nw=function(){Fn()};
g.k.Uz=function(){Fn()};
g.k.ip=function(){return 0};
g.k.Wq=function(){return this.SH.Wq()};
g.k.BV=function(){var a=this.iC;a=(this.hasCompleted||this.isDisposed())&&!a;var b=2!==sn().u||this.U$;return this.Ct||b&&a?2:this.Wq()?4:3};
g.k.MG=function(){return 0};g.Yo.prototype.next=function(){return g.s3};
g.s3={done:!0,value:void 0};g.Yo.prototype.Kk=function(){return this};g.x(fja,Km);var t3=hja([void 0,1,2,3,4,8,16]),u3=hja([void 0,4,8,16]),wbb={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:bp("p0",u3),p1:bp("p1",u3),p2:bp("p2",u3),p3:bp("p3",u3),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:ap("mtos1",[0,2,4],!1,u3),mtos2:ap("mtos2",[0,2,4],!1,u3),mtos3:ap("mtos3",[0,2,4],!1,u3),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:bp("a0",u3),a1:bp("a1",u3),a2:bp("a2",u3),a3:bp("a3",u3),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:bp("c0",u3),c1:bp("c1",u3),c2:bp("c2",u3),c3:bp("c3",u3),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:bp("qmtos",t3),qnc:bp("qnc",t3),qmv:bp("qmv",t3),qnv:bp("qnv",t3),
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:bp("ss0",u3),ss1:bp("ss1",u3),ss2:bp("ss2",u3),ss3:bp("ss3",u3),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"},xbb=Object.assign({},wbb,{avid:Kd("audio"),avas:"avas",vs:"vs"}),ybb={atos:"atos",avt:ap("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"};gp.prototype.getValue=function(){return this.u};
gp.prototype.update=function(a,b){32<=a||(this.j&1<<a&&!b?this.u&=~(1<<a):this.j&1<<a||!b||(this.u|=1<<a),this.j|=1<<a)};g.x(hp,Ro);
hp.prototype.update=function(a,b,c,d){if(!b.paused){Ro.prototype.update.call(this,a,b,c,d);var e=$o(b)&&$o(c),f=.5<=(d?Math.min(b.De,c.De):c.De);wo(b.volume)&&(this.C=-1!=this.C?Math.min(this.C,b.volume):b.volume,this.J=Math.max(this.J,b.volume));f&&(this.Ga+=a,this.ea+=e?a:0);this.j.update(b.De,c.De,b.j,a,d,e);this.B.update(!0,a);this.D.update(e,a);this.oa.update(c.fullscreen,a);this.rb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ma.update(a,b.isVisible());this.eb.update(a,1<=b.De);this.Ya.update(a,
$o(b))}};mja.prototype.u=function(a){this.B||(this.j(a)?(a=wka(this.ea,this.C,a),this.D|=a,a=0==a):a=!1,this.B=a)};g.x(jp,mja);jp.prototype.j=function(){return!0};
jp.prototype.J=function(){return!1};
jp.prototype.getId=function(){var a=this,b=ed(up,function(c){return c==a.C});
return Tp[b].toString()};
jp.prototype.toString=function(){var a="";this.J()&&(a+="c");this.B&&(a+="s");0<this.D&&(a+=":"+this.D);return this.getId()+a};g.x(kp,jp);kp.prototype.u=function(a,b){b=void 0===b?null:b;null!=b&&this.K.push(b);jp.prototype.u.call(this,a)};g.x(lp,nja);lp.prototype.u=function(){return null};
lp.prototype.B=function(){return[]};g.x(mp,Fo);g.k=mp.prototype;g.k.LL=function(){if(this.element){var a=this.element,b=this.u.j.B;try{try{var c=via(a.getBoundingClientRect())}catch(n){c=new Kn(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=sia(a,b),h=f.x,l=f.y;var m=new Kn(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=vbb.clone()}this.j=m}};
g.k.fU=function(){this.C=this.u.C.j};
g.k.uW=function(a){var b=1==Sm(this.Fc,"od");return Via(a,this.C,this.element,b)};
g.k.gU=function(){this.timestamp=Fn()};
g.k.Fs=function(){this.gU();this.LL();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.xe(a.videoWidth,a.videoHeight);a=this.j;var c=Ln(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.fU();
a=this.j;c=this.C;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new Kn(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 Kn(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new Kn(0,0,0,0):a;a=this.u.C;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.uW(c)?c=new Kn(0,0,0,0):(d=yo().C,b=new Kn(0,d.height,d.width,0),d=Vo(c,this.j),e=Vo(c,yo().j),b=Vo(c,b)));c=c.top>=c.bottom||c.left>=c.right?new Kn(0,0,0,
0):Nn(c,-this.j.left,-this.j.top);Ao()||(e=d=0);this.K=new Pn(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.u.getName()};var zbb=new Kn(0,0,0,0);g.x(np,mp);g.k=np.prototype;g.k.zK=function(){this.B();return!0};
g.k.xt=function(){mp.prototype.Fs.call(this)};
g.k.gU=function(){};
g.k.LL=function(){};
g.k.Fs=function(){this.B();mp.prototype.Fs.call(this)};
g.k.oz=function(a){a=a.isActive();a!==this.J&&(a?this.B():(yo().j=new Kn(0,0,0,0),this.j=new Kn(0,0,0,0),this.C=new Kn(0,0,0,0),this.timestamp=-1));this.J=a};var v3={},xja=(v3.firstquartile=0,v3.midpoint=1,v3.thirdquartile=2,v3.complete=3,v3);g.x(pp,Wo);g.k=pp.prototype;g.k.Np=function(){return!0};
g.k.Vq=function(){return 2==this.Vi};
g.k.qV=function(a){return $ia(this,a,Math.max(1E4,this.B/3))};
g.k.Sa=function(a,b,c,d,e,f,h){var l=this,m=this.K(this)||{};g.pd(m,e);this.B=m.duration||this.B;this.ea=m.isVpaid||this.ea;this.Oa=m.isYouTube||this.Oa;pn();this.rb=!1;e=pja(this,b);1===oja(this)&&(f=e);Wo.prototype.Sa.call(this,a,b,c,d,m,f,h);this.ir&&this.ir.B&&g.$b(this.J,function(n){n.u(l)})};
g.k.nR=function(a,b,c){Wo.prototype.nR.call(this,a,b,c);sp(this).update(a,b,this.Oh,c);this.ob=$o(this.Oh)&&$o(b);-1==this.Fa&&this.kb&&(this.Fa=this.qj().B.j);this.Vg.B=0;a=this.Wq();b.isVisible()&&fp(this.Vg,"vs");a&&fp(this.Vg,"vw");wo(b.volume)&&fp(this.Vg,"am");$o(b)?fp(this.Vg,"a"):fp(this.Vg,"mut");this.vz&&fp(this.Vg,"f");-1!=b.u&&(fp(this.Vg,"bm"),1==b.u&&(fp(this.Vg,"b"),$o(b)&&fp(this.Vg,"umutb")));$o(b)&&b.isVisible()&&fp(this.Vg,"avs");this.ob&&a&&fp(this.Vg,"avw");0<b.De&&fp(this.Vg,
"pv");tp(this,this.qj().B.j,!0)&&fp(this.Vg,"gdr");2E3<=Po(this.qj().u,1)&&fp(this.Vg,"pmx");this.rb&&fp(this.Vg,"tvoff")};
g.k.bH=function(){return new hp};
g.k.qj=function(){return this.SH};
g.k.bN=function(){return new fja};
g.k.HL=function(a,b,c,d){a=Wo.prototype.HL.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.vz;a.paused=this.Vq();a.volume=c.volume;wo(a.volume)||(this.Eb++,b=this.Oh,wo(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.YL=function(a){return yo(),this.vz?1:Wo.prototype.YL.call(this,a)};
g.k.ip=function(){return 1};
g.k.getDuration=function(){return this.B};
g.k.BV=function(){return this.Ct?2:rja(this)?5:this.Wq()?4:3};
g.k.MG=function(){return this.wb?2E3<=this.qj().D.B?4:3:2};var Abb=g.eb();Hja.prototype.reset=function(){this.j=[];this.u=[]};
var zp=nn(Hja);g.x(Cp,Go);g.k=Cp.prototype;g.k.getName=function(){return(this.u?this.u:this.j).getName()};
g.k.Zs=function(){return(this.u?this.u:this.j).Zs()};
g.k.Hq=function(){return(this.u?this.u:this.j).Hq()};
g.k.init=function(a){var b=!1;(0,g.$b)(this.B,function(c){c.initialize()&&(b=!0)});
b&&(this.C=a,Do(this.j,this));return b};
g.k.dispose=function(){(0,g.$b)(this.B,function(a){a.dispose()});
Go.prototype.dispose.call(this)};
g.k.yS=function(){return xo(this.B,function(a){return a.CB()})};
g.k.EB=function(){return xo(this.B,function(a){return a.CB()})};
g.k.KF=function(a,b,c){return new mp(a,this.j,b,c)};
g.k.xt=function(a){this.u=a.u};var Qja={threshold:[0,.3,.5,.75,1]};g.x(Dp,mp);g.k=Dp.prototype;g.k.zK=function(){var a=this;this.ea||(this.ea=Fn());if(iia(298,function(){return Rja(a)}))return!0;
this.u.fail("msf");return!1};
g.k.DB=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.J?(this.J.unobserve(this.element),this.J=null):this.D&&(this.D.disconnect(),this.D=null)}catch(a){}};
g.k.Fs=function(){var a=Jp(this);0<a.length&&Kp(this,a);mp.prototype.Fs.call(this)};
g.k.LL=function(){};
g.k.uW=function(){return!1};
g.k.fU=function(){};
g.k.Zs=function(){var a={};return Object.assign(this.u.Zs(),(a.niot_obs=this.ea,a.niot_cbk=this.V,a))};
g.k.getName=function(){return"nio"};g.x(Lp,Go);Lp.prototype.getName=function(){return"nio"};
Lp.prototype.EB=function(){return!yo().u&&null!=this.j.j.B.IntersectionObserver};
Lp.prototype.KF=function(a,b,c){return new Dp(a,this.j,b,c)};g.x(Mp,Co);Mp.prototype.zV=function(){return yo().j};
Mp.prototype.CB=function(){var a=Tja();this.V!==a&&(this.j!=this&&a>this.j.V&&(this.j=this,Eo(this)),this.V=a);return 2==a};Np.prototype.sample=function(){Qp(this,Ap(),!1)};
Np.prototype.C=function(){var a=Ao(),b=Fn();a?(Hn||(In=b,g.$b(zp.j,function(c){var d=c.qj();d.Oa=ip(d,b,1!=c.Vi)})),Hn=!0):(this.K=Yja(this,b),Hn=!1,yja=b,g.$b(zp.j,function(c){c.iC&&(c.qj().V=b)}));
Qp(this,Ap(),!a)};
var Op=nn(Np);var $ja=null,mq="",lq=!1;var cka=bka().Vo,Sp=bka().Xo;var fka={rxa:"visible",lka:"audible",B3a:"time",E3a:"timetype"},gka={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)}};
eka.prototype.setTime=function(a,b,c){"ms"==b?(this.B=a,this.C=-1):(this.B=-1,this.C=a);this.D=void 0===c?"tos":c;return this};g.x(Wp,jp);Wp.prototype.getId=function(){return this.K};
Wp.prototype.J=function(){return!0};
Wp.prototype.j=function(a){var b=a.qj(),c=a.getDuration();return xo(this.V,function(d){if(void 0!=d.j)var e=ika(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.j;break b;case "tos":e=d.u?b.D.j:b.B.j;break b}e=0}0==e?d=!1:(d=-1!=d.B?d.B:void 0!==c&&0<c?d.C*c:-1,d=-1!=d&&e>=d);return d})};g.x(Xp,ija);Xp.prototype.j=function(a){var b=new dp;b.j=ep(a,wbb);b.u=ep(a,ybb);return b};g.x(Yp,jp);Yp.prototype.j=function(a){return rja(a)};g.x(Zp,nja);g.x($p,jp);$p.prototype.j=function(a){return a.qj().Wq()};g.x(aq,kp);aq.prototype.j=function(a){var b=g.Fb(this.K,Sm(sn().Fc,"ovms"));return!a.Ct&&(0!=a.Vi||b)};g.x(bq,Zp);bq.prototype.u=function(){return new aq(this.j)};
bq.prototype.B=function(){return[new $p("viewable_impression",this.j),new Yp(this.j)]};g.x(cq,np);cq.prototype.B=function(){var a=g.Sa("ima.admob.getViewability"),b=Sm(this.Fc,"queryid");"function"===typeof a&&b&&a(b)};
cq.prototype.getName=function(){return"gsv"};g.x(dq,Go);dq.prototype.getName=function(){return"gsv"};
dq.prototype.EB=function(){var a=yo();sn();return a.u&&!1};
dq.prototype.KF=function(a,b,c){return new cq(this.j,b,c)};g.x(eq,np);eq.prototype.B=function(){var a=this,b=g.Sa("ima.bridge.getNativeViewability"),c=Sm(this.Fc,"queryid");"function"===typeof b&&c&&b(c,function(d){g.id(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=wia(d.opt_nativeViewBounds||{});var h=a.u.C;h.j=f?zbb.clone():wia(e);a.timestamp=d.opt_nativeTime||-1;yo().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
eq.prototype.getName=function(){return"nis"};g.x(fq,Go);fq.prototype.getName=function(){return"nis"};
fq.prototype.EB=function(){var a=yo();sn();return a.u&&!1};
fq.prototype.KF=function(a,b,c){return new eq(this.j,b,c)};g.x(gq,Co);g.k=gq.prototype;g.k.CB=function(){return null!=this.u.Hn};
g.k.kV=function(){var a={};this.Ma&&(a.mraid=this.Ma);this.Ba&&(a.mlc=1);a.mtop=this.u.x$;this.K&&(a.mse=this.K);this.Oa&&(a.msc=1);a.mcp=this.u.compatibility;return a};
g.k.fu=function(a){var b=g.Ia.apply(1,arguments);try{return this.u.Hn[a].apply(this.u.Hn,b)}catch(c){En(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.XC();this.isInitialized=!0;if(2===this.u.compatibility)return this.K="ng",this.fail("w"),!1;if(1===this.u.compatibility)return this.K="mm",this.fail("w"),!1;yo().V=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?mka(this):To(this.B,"load",function(){pn().setTimeout(Dn(292,function(){return mka(a)}),100)},292);
return!0};
g.k.wS=function(){var a=yo(),b=rka(this,"getMaxSize");a.j=new Kn(0,b.width,b.height,0)};
g.k.xS=function(){yo().C=rka(this,"getScreenSize")};
g.k.dispose=function(){oka(this);Co.prototype.dispose.call(this)};var Tha=new function(a,b){this.key=a;this.defaultValue=void 0===b?!1:b;this.valueType="boolean"}("45378663");g.k=iq.prototype;g.k.aC=function(a){Xo(a,!1);Lja(a)};
g.k.gH=function(){};
g.k.xE=function(a,b,c,d){var e=this;a=new pp(Ym,a,c?b:-1,7,this.gM(),this.yU());a.Ci=d;oha(a.Fc);Rm(a.Fc,"queryid",a.Ci);a.OP("");cja(a,function(){return e.JV.apply(e,g.qa(g.Ia.apply(0,arguments)))},function(){return e.p5.apply(e,g.qa(g.Ia.apply(0,arguments)))});
(d=nn(Bp).j)&&Zia(a,d);a.Vj.Kt&&nn(Uja);return a};
g.k.oz=function(a){switch(a.Hq()){case 0:if(a=nn(Bp).j)a=a.j,g.Hb(a.D,this),a.ea&&this.Np()&&Cia(a);kq();break;case 2:Pp()}};
g.k.xt=function(){};
g.k.Np=function(){return!1};
g.k.p5=function(a,b){a.Ct=!0;switch(a.ip()){case 1:xka(a,b);break;case 2:this.ZP(a)}};
g.k.y5=function(a){var b=a.K(a);b&&(b=b.volume,a.wb=wo(b)&&0<b);uja(a,0);return vp(a,"start",Ao())};
g.k.PA=function(a,b,c){Qp(Op,[a],!Ao());return this.jp(a,b,c)};
g.k.jp=function(a,b,c){return vp(a,c,Ao())};
g.k.t5=function(a){return qq(a,"firstquartile",1)};
g.k.v5=function(a){a.kb=!0;return qq(a,"midpoint",2)};
g.k.z5=function(a){return qq(a,"thirdquartile",3)};
g.k.q5=function(a){var b=qq(a,"complete",4);qp(a);return b};
g.k.r5=function(a){a.Vi=3;return vp(a,"error",Ao())};
g.k.RY=function(a,b,c){b=Ao();if(a.Vq()&&!b){var d=Fn();a.qj().V=d}Qp(Op,[a],!b);a.Vq()&&(a.Vi=1);return vp(a,c,b)};
g.k.x5=function(a,b){b=this.PA(a,b||{},"skip");qp(a);return b};
g.k.u5=function(a,b){Xo(a,!0);return this.PA(a,b||{},"fullscreen")};
g.k.s5=function(a,b){Xo(a,!1);return this.PA(a,b||{},"exitfullscreen")};
g.k.BP=function(a,b,c){b=a.qj();var d=Fn();b.Oa=ip(b,d,1!=a.Vi);Qp(Op,[a],!Ao());1==a.Vi&&(a.Vi=2);return vp(a,c,Ao())};
g.k.w5=function(a){Qp(Op,[a],!Ao());return a.u()};
g.k.vN=function(a){Qp(Op,[a],!Ao());this.JY(a);qp(a);return a.u()};
g.k.JV=function(){};
g.k.ZP=function(){};
g.k.JY=function(){};
g.k.zS=function(){};
g.k.hM=function(){};
g.k.yU=function(){this.j||(this.j=this.hM());return null==this.j?new lp:new bq(this.j)};
g.k.gM=function(){return new Xp};g.x(rq,jp);rq.prototype.j=function(a){return 4==a.MG()};g.x(sq,kp);sq.prototype.j=function(a){a=a.MG();return 3==a||4==a};g.x(tq,Zp);tq.prototype.u=function(){return new sq(this.j)};
tq.prototype.B=function(){return[new rq(this.j)]};g.x(uq,ija);uq.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 dp;b.j=ep(a,xbb);b.u=ep(a,ybb);return b};Cka.prototype.u=function(){return g.Sa(this.j)};g.x(vq,iq);g.k=vq.prototype;g.k.gH=function(a,b){var c=this,d=nn(Bp);if(null!=d.j)switch(d.j.getName()){case "nis":var e=Gka(this,a,b);break;case "gsv":e=Fka(this,a,b);break;case "exc":e=Hka(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=zka(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.ip()&&(e.K==g.Ld&&(e.K=function(f){return c.zS(f)}),Eka(this,e,b));
return e};
g.k.zS=function(a){a.u=0;a.Ga=0;if("h"==a.C||"n"==a.C){sn();a.eb&&(sn(),"h"!=oq(this)&&oq(this));var b=g.Sa("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Ci)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.Sa("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Ci)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.Sa("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Ci)}catch(e){a.u|=4}else a.u|=2;else a.u|=1;a.u||(void 0===c?a.u|=8:null===
c?a.u|=16:g.id(c)?a.u|=32:null!=c.errorCode&&(a.Ga=c.errorCode,a.u|=64));null==c&&(c={});b=c;a.V=0;for(var d in qbb)null==b[d]&&(a.V|=qbb[d]);Bka(b,"currentTime");Bka(b,"duration");wo(c.volume)&&wo()&&(c.volume*=NaN);return c};
g.k.hM=function(){sn();"h"!=oq(this)&&oq(this);var a=Ika(this);return null!=a?new Cka(a):null};
g.k.ZP=function(a){!a.j&&a.Ct&&pq(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.k.JY=function(a){a.nZ&&(a.Wq()?pq(this,a,"overlay_viewable_end_of_session_impression"):pq(this,a,"overlay_unviewable_impression"),a.nZ=!1)};
g.k.JV=function(){};
g.k.xE=function(a,b,c,d){if(Uha()){var e=Sm(sn().Fc,"mm"),f={};(e=(f[tn.G_]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[tn.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&xq(this,e);"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"===this.C&&En(1044,Error())}a=iq.prototype.xE.call(this,a,b,c,d);this.D&&(b=this.J,null==a.D&&(a.D=new dja),b.j[a.Ci]=a.D,a.D.D=Abb);return a};
g.k.aC=function(a){a&&1==a.ip()&&this.D&&delete this.J.j[a.Ci];return iq.prototype.aC.call(this,a)};
g.k.yU=function(){this.j||(this.j=this.hM());return null==this.j?new lp:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new tq(this.j):new bq(this.j)};
g.k.gM=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new uq:new Xp};
var wq=new dp;wq.j="stopped";wq.u="stopped";var Bbb=Cn(193,yq,void 0,yka);g.Qa("Goog_AdSense_Lidar_sendVastEvent",Bbb);var Cbb=Dn(194,function(a,b){b=void 0===b?{}:b;a=Lka(nn(vq),a,b);return Mka(a)});
g.Qa("Goog_AdSense_Lidar_getViewability",Cbb);var Dbb=Cn(195,function(){return Oha()});
g.Qa("Goog_AdSense_Lidar_getUrlSignalsArray",Dbb);var Ebb=Dn(196,function(){return JSON.stringify(Oha())});
g.Qa("Goog_AdSense_Lidar_getUrlSignalsList",Ebb);var $Ja={tXa:0,qXa:1,nXa:2,oXa:3,pXa:4,sXa:5,rXa:6};var wma=(new Date).getTime();var Qka="://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(" "),Rka=/\bocr\b/;var Tka=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;"undefined"!==typeof TextDecoder&&new TextDecoder;var Fbb="undefined"!==typeof TextEncoder?new TextEncoder:null,dpa=Fbb?function(a){return Fbb.encode(a)}:function(a){a=g.fg(a);
for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};g.x(Bq,g.Hd);Bq.prototype.dispose=function(){window.removeEventListener("offline",this.B);window.removeEventListener("online",this.B);this.En.Tj(this.D);delete Bq.instance};
Bq.prototype.oi=function(){return this.j};
Bq.prototype.nf=function(){var a=this;this.D=this.En.Ki(function(){var b;return g.Ha(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Ka(3):g.z(c,Aq(a),3):g.z(c,Aq(a),3);a.nf();g.xa(c)})},3E4)};Dq.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)};
Dq.prototype.get=function(a){return!!this.data[a]};var Fq;g.jb(g.Iq,g.G);g.k=g.Iq.prototype;g.k.start=function(){this.stop();this.C=!1;var a=Wka(this),b=Xka(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.j=g.xd(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.j=a&&b?a.call(this.u,this.B):this.u.setTimeout(Bba(this.B),20)};
g.k.stop=function(){if(this.isActive()){var a=Wka(this),b=Xka(this);a&&!b&&this.u.mozRequestAnimationFrame?Bd(this.j):a&&b?b.call(this.u,this.j):this.u.clearTimeout(this.j)}this.j=null};
g.k.isActive=function(){return null!=this.j};
g.k.D1=function(){this.C&&this.j&&Bd(this.j);this.j=null;this.J.call(this.D,g.eb())};
g.k.xa=function(){this.stop();g.Iq.Uf.xa.call(this)};g.jb(g.Kq,g.G);g.k=g.Kq.prototype;g.k.FB=0;g.k.xa=function(){g.Kq.Uf.xa.call(this);this.stop();delete this.j;delete this.u};
g.k.start=function(a){this.stop();this.FB=g.bg(this.B,void 0!==a?a:this.Ti)};
g.k.stop=function(){this.isActive()&&g.Pa.clearTimeout(this.FB);this.FB=0};
g.k.isActive=function(){return 0!=this.FB};
g.k.AS=function(){this.FB=0;this.j&&this.j.call(this.u)};Oq.prototype[Symbol.iterator]=function(){return this};
Oq.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.u.call(void 0,a.value),done:a.done}};Xq.prototype.Kk=function(){return new Yq(this.u())};
Xq.prototype[Symbol.iterator]=function(){return new Zq(this.u())};
Xq.prototype.j=function(){return new Zq(this.u())};
g.x(Yq,g.Yo);Yq.prototype.next=function(){return this.u.next()};
Yq.prototype[Symbol.iterator]=function(){return new Zq(this.u)};
Yq.prototype.j=function(){return new Zq(this.u)};
g.x(Zq,Xq);Zq.prototype.next=function(){return this.B.next()};g.k=g.ar.prototype;g.k.lm=function(){cr(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.u[this.j[b]]);return a};
g.k.hp=function(){cr(this);return this.j.concat()};
g.k.has=function(a){return br(this.u,a)};
g.k.equals=function(a,b){if(this===a)return!0;if(this.size!=a.size)return!1;b=b||ala;cr(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.u={};this.Cu=this.size=this.j.length=0};
g.k.remove=function(a){return this.delete(a)};
g.k.delete=function(a){return br(this.u,a)?(delete this.u[a],--this.size,this.Cu++,this.j.length>2*this.size&&cr(this),!0):!1};
g.k.get=function(a,b){return br(this.u,a)?this.u[a]:b};
g.k.set=function(a,b){br(this.u,a)||(this.size+=1,this.j.push(a),this.Cu++);this.u[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.ar(this)};
g.k.transpose=function(){for(var a=new g.ar,b=0;b<this.j.length;b++){var c=this.j[b];a.set(this.u[c],c)}return a};
g.k.keys=function(){return $q(this.Kk(!0)).j()};
g.k.values=function(){return $q(this.Kk(!1)).j()};
g.k.entries=function(){var a=this;return Yka(this.keys(),function(b){return[b,a.get(b)]})};
g.k.Kk=function(a){cr(this);var b=0,c=this.Cu,d=this,e=new g.Yo;e.next=function(){if(c!=d.Cu)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)return g.s3;var f=d.j[b++];return g.Zo(a?f:d.u[f])};
return e};g.jb(g.dr,g.Hd);g.k=g.dr.prototype;g.k.wd=function(){return 1==this.j};
g.k.hI=function(){this.Wl("begin")};
g.k.vr=function(){this.Wl("end")};
g.k.onFinish=function(){this.Wl("finish")};
g.k.Wl=function(a){this.dispatchEvent(a)};var Gbb=Md(function(){if(g.Pe)return!0;var a=g.bf("DIV"),b=g.Qc?"-webkit":Vn?"-moz":g.Pe?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!wab.test("div"))throw Error("");if("DIV"in yab)throw Error("");b=void 0;var d="";if(c)for(h in c)if(Object.prototype.hasOwnProperty.call(c,h)){if(!wab.test(h))throw Error("");var e=c[h];if(null!=e){var f=h;if(e instanceof Qd)e=Ud(e);else if("style"==f.toLowerCase()){if(!g.Xa(e))throw Error("");e instanceof
ce||(e=Vba(e));e=de(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in xab)if(e instanceof Xd)e=Iba(e).toString();else if(e instanceof Zd)e=g.$d(e);else if("string"===typeof e)e=g.be(e).jm();else throw Error("");}e.wp&&(e=e.jm());f=f+'="'+fc(String(e))+'"';d+=" "+f}}var h="<div"+d;null==b?b=[]:Array.isArray(b)||(b=[b]);!0===uab.div?h+=">":(b=eca(b),h+=">"+g.le(b).toString()+"</div>");h=g.me(h);g.ica(a,h);return""!=g.Wn(a.firstChild,"transition")});g.jb(er,g.dr);g.k=er.prototype;g.k.play=function(){if(this.wd())return!1;this.hI();this.Wl("play");this.startTime=g.eb();this.j=1;if(Gbb())return g.Un(this.u,this.J),this.B=g.bg(this.w9,void 0,this),!0;this.AK(!1);return!1};
g.k.w9=function(){g.to(this.u);bla(this.u,this.K);g.Un(this.u,this.C);this.B=g.bg((0,g.bb)(this.AK,this,!1),1E3*this.D)};
g.k.stop=function(){this.wd()&&this.AK(!0)};
g.k.AK=function(a){g.Un(this.u,"transition","");g.Pa.clearTimeout(this.B);g.Un(this.u,this.C);this.endTime=g.eb();this.j=0;if(a)this.Wl("stop");else this.onFinish();this.vr()};
g.k.xa=function(){this.stop();er.Uf.xa.call(this)};
g.k.pause=function(){};var ela={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};fr("Element","attributes")||fr("Node","attributes");fr("Element","innerHTML")||fr("HTMLElement","innerHTML");fr("Node","nodeName");fr("Node","nodeType");fr("Node","parentNode");fr("Node","childNodes");fr("HTMLElement","style")||fr("Element","style");fr("HTMLStyleElement","sheet");var kla=gla("getPropertyValue"),lla=gla("setProperty");fr("Element","namespaceURI")||fr("Node","namespaceURI");var jla={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var pla,M$a,ola,nla,qla;pla=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]");M$a=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.Hbb=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.gr=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]");ola=/^http:\/\/.*/;g.Ibb=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");nla=/\s+/;qla=/[\d\u06f0-\u06f9]/;ir.prototype.clone=function(){return new ir(this.j,this.K,this.B,this.D,this.C,this.J,this.u,this.V)};
ir.prototype.equals=function(a){return this.j==a.j&&this.K==a.K&&this.B==a.B&&this.D==a.D&&this.C==a.C&&this.J==a.J&&this.u==a.u&&this.V==a.V};kr.prototype.clone=function(){return new kr(this.start,this.end)};(function(){if(n3a){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.nc()))?a[1]:"0"}return AX?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.nc()))?a[0].replace(/_/g,"."):"10"):g.HA?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.nc()))?a[1]:""):kab||lab||mab?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.nc()))?a[1].replace(/_/g,"."):""):""})();var sla=function(){if(g.HL)return lr(/Firefox\/([0-9.]+)/);if(g.Pe||g.NC||g.wM)return Mc;if(g.SK){if(Hc()||Jc()){var a=lr(/CriOS\/([0-9.]+)/);if(a)return a}return lr(/Chrome\/([0-9.]+)/)}if(g.dC&&!Hc())return lr(/Version\/([0-9.]+)/);if(EA||FA){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.nc()))return a[1]+"."+a[2]}else if(g.Vwa)return(a=lr(/Android\s+([0-9.]+)/))?a:lr(/Version\/([0-9.]+)/);return""}();g.jb(g.nr,g.G);g.k=g.nr.prototype;g.k.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.J;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.J=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Uh(a)}return!1};
g.k.Uh=function(a){var b=this.j[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.j[a+1]=function(){}):(c&&g.Hb(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.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.K)for(e=0;e<c.length;e++){var h=c[e];tla(this.j[h+1],this.j[h+2],d)}else{this.C++;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.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.Uh(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.u[a];b&&(b.forEach(this.Uh,this),delete this.u[a])}else this.j.length=0,this.u={}};
g.k.xa=function(){g.nr.Uf.xa.call(this);this.clear();this.B.length=0};g.or.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.Cj(b))};
g.or.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.or.prototype.remove=function(a){this.j.remove(a)};g.jb(pr,g.or);pr.prototype.set=function(a,b){pr.Uf.set.call(this,a,vla(b))};
pr.prototype.u=function(a){a=pr.Uf.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
pr.prototype.get=function(a){if(a=this.u(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.jb(qr,pr);qr.prototype.set=function(a,b,c){if(b=vla(b)){if(c){if(c<g.eb()){qr.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.eb()}qr.Uf.set.call(this,a,b)};
qr.prototype.u=function(a,b){var c=qr.Uf.u.call(this,a);if(c)if(!b&&g.wla(c))qr.prototype.remove.call(this,a);else return c};g.jb(g.rr,qr);g.jb(Ir,xla);Ir.prototype[Symbol.iterator]=function(){return $q(this.Kk(!0)).j()};
Ir.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.jb(Jr,Ir);g.k=Jr.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.Kk=function(a){var b=0,c=this.j,d=new g.Yo;d.next=function(){if(b>=c.length)return g.s3;var e=c.key(b++);if(a)return g.Zo(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Zo(e)};
return d};
g.k.clear=function(){this.j.clear()};
g.k.key=function(a){return this.j.key(a)};g.jb(Kr,Jr);g.jb(yla,Jr);g.jb(Mr,Ir);var zla={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Lr=null;g.k=Mr.prototype;g.k.isAvailable=function(){return!!this.j};
g.k.set=function(a,b){this.j.setAttribute(Nr(a),b);Or(this)};
g.k.get=function(a){a=this.j.getAttribute(Nr(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeAttribute(Nr(a));Or(this)};
g.k.Kk=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.Yo;d.next=function(){if(b>=c.length)return g.s3;var e=c[b++];if(a)return g.Zo(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Zo(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);Or(this)};g.jb(Pr,Ir);Pr.prototype.set=function(a,b){this.u.set(this.j+a,b)};
Pr.prototype.get=function(a){return this.u.get(this.j+a)};
Pr.prototype.remove=function(a){this.u.remove(this.j+a)};
Pr.prototype.Kk=function(a){var b=this.u[Symbol.iterator](),c=this,d=new g.Yo;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.Zo(a?e.slice(c.j.length):c.u.get(e))};
return d};Rr.prototype.getKey=function(){return this.j};
Rr.prototype.getValue=function(){return this.Vd};
Rr.prototype.clone=function(){return new Rr(this.j,this.Vd)};g.k=Sr.prototype;g.k.gi=function(a,b){var c=this.j;c.push(new Rr(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.lm=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 Sr(this)};
g.k.isEmpty=function(){return 0===this.j.length};
g.k.clear=function(){this.j.length=0};g.x(Ala,Sr);Tr.ih=void 0;Tr.getInstance=function(){return Tr.ih?Tr.ih:Tr.ih=new Tr};
Tr.prototype.j=0;var Ur={},Jbb="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;Ur.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};
Ur.FQ=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
var Kbb={zy: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]},
ZU: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}},Lbb={zy:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},
ZU:function(a){return[].concat.apply([],a)}};
Ur.q$=function(){Jbb?(Ur.ox=Uint8Array,Ur.Zp=Uint16Array,Ur.N_=Int32Array,Ur.assign(Ur,Kbb)):(Ur.ox=Array,Ur.Zp=Array,Ur.N_=Array,Ur.assign(Ur,Lbb))};
Ur.q$();var Mbb=!0;try{new Uint8Array(1)}catch(a){Mbb=!1};var ts={};ts=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 us={},w3,Nbb=[],x3=0;256>x3;x3++){w3=x3;for(var Obb=0;8>Obb;Obb++)w3=w3&1?3988292384^w3>>>1:w3>>>1;Nbb[x3]=w3}us=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^Nbb[(a^b[d])&255];return a^-1};var js={};js={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 cs=[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],fs=[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],Xla=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Mla=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ns=Array(576);Vr(ns);var os=Array(60);Vr(os);var es=Array(512);Vr(es);var bs=Array(256);Vr(bs);var ds=Array(29);Vr(ds);var gs=Array(30);Vr(gs);var Ula,Vla,Wla,Tla=!1;var zs;zs=[new ys(0,0,0,0,function(a,b){var c=65535;for(c>a.xm-5&&(c=a.xm-5);;){if(1>=a.kc){vs(a);if(0===a.kc&&0===b)return 1;if(0===a.kc)break}a.Db+=a.kc;a.kc=0;var d=a.Ok+c;if(0===a.Db||a.Db>=d)if(a.kc=a.Db-d,a.Db=d,ps(a,!1),0===a.ue.Me)return 1;if(a.Db-a.Ok>=a.dj-262&&(ps(a,!1),0===a.ue.Me))return 1}a.gi=0;if(4===b)return ps(a,!0),0===a.ue.Me?3:4;a.Db>a.Ok&&ps(a,!1);return 1}),
new ys(4,4,8,4,ws),new ys(4,5,16,8,ws),new ys(4,6,32,32,ws),new ys(4,4,16,16,xs),new ys(8,16,32,32,xs),new ys(8,16,128,128,xs),new ys(8,32,128,256,xs),new ys(32,128,258,1024,xs),new ys(32,258,258,4096,xs)];var Sla={};Sla=function(){this.input=null;this.Uw=this.jj=this.pw=0;this.vk=null;this.ZQ=this.Me=this.Xz=0;this.msg="";this.state=null;this.jM=2;this.Sd=0};var Yla=Object.prototype.toString;
As.prototype.push=function(a,b){var c=this.ue,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:!0===b?4:0;"string"===typeof a?c.input=Bla(a):"[object ArrayBuffer]"===Yla.call(a)?c.input=new Uint8Array(a):c.input=a;c.pw=0;c.jj=c.input.length;do{0===c.Me&&(c.vk=new Ur.ox(d),c.Xz=0,c.Me=d);a=Rla(c,e);if(1!==a&&0!==a)return this.vr(a),this.ended=!0,!1;if(0===c.Me||0===c.jj&&(4===e||2===e))if("string"===this.options.to){var f=Ur.FQ(c.vk,c.Xz);b=f;f=f.length;if(65537>f&&(b.subarray&&Mbb||
!b.subarray))b=String.fromCharCode.apply(null,Ur.FQ(b,f));else{for(var h="",l=0;l<f;l++)h+=String.fromCharCode(b[l]);b=h}this.chunks.push(b)}else b=Ur.FQ(c.vk,c.Xz),this.chunks.push(b)}while((0<c.jj||0===c.Me)&&1!==a);if(4===e)return(c=this.ue)&&c.state?(d=c.state.status,42!==d&&69!==d&&73!==d&&91!==d&&103!==d&&113!==d&&666!==d?a=ks(c,-2):(c.state=null,a=113===d?ks(c,-3):0)):a=-2,this.vr(a),this.ended=!0,0===a;2===e&&(this.vr(0),c.Me=0);return!0};
As.prototype.vr=function(a){0===a&&(this.result="string"===this.options.to?this.chunks.join(""):Ur.ZU(this.chunks));this.chunks=[];this.err=a;this.msg=this.ue.msg};var Cs="@@redux/INIT"+Bs(),dma="@@redux/REPLACE"+Bs();var ema="function"===typeof Symbol&&Symbol.observable||"@@observable";var Pbb=[0,1,n3,1,n3,1,n3,1,n3,1,o3];g.x(Es,P);Es.prototype.getType=function(){return Fi(this,11)};
Es.Ab=[2,13,14];var GVa=function(){var a=[0,1,Uab,1,Sab,1,k3,1,n3,1,k3,1,k3,1,o3,1,n3,1,o3,1,o3,1,Uab,1,o3,1,Sab,1,l3,Pbb,1,k3,1,k3,1,o3];return function(b,c){a:{if(i3.length){var d=i3.pop();Lda(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new Mg(b,c);try{var e=new Es;Ji(a)(e.ma,b);var f=e;break a}finally{b.free()}f=void 0}return f}}();var uFa=new g.Fs("adInfoDialogEndpoint");var eEa=new g.Fs("adPingingEndpoint");var t0=new g.Fs("adActionInterstitialRenderer");var Qbb=new g.Fs("adDurationRemainingRenderer");var U0=new g.Fs("adHoverTextButtonRenderer");var sFa=new g.Fs("adInfoDialogRenderer");var Z0=new g.Fs("adMessageRenderer");var V0=new g.Fs("adPreviewRenderer");var j4a=new g.Fs("dismissablePanelTextPortraitImageRenderer");var Rbb=new g.Fs("flyoutCtaRenderer");var Sbb=new g.Fs("instreamAdPlayerUnderlayRenderer");var j$a=new g.Fs("instreamSurveyAdBackgroundImageRenderer");var e5a=new g.Fs("instreamSurveyAdPlayerOverlayRenderer");var u0=new g.Fs("instreamSurveyAdRenderer"),kP=new g.Fs("instreamSurveyAdSingleSelectQuestionRenderer"),lP=new g.Fs("instreamSurveyAdMultiSelectQuestionRenderer"),y3=new g.Fs("instreamSurveyAdAnswerRenderer"),Tbb=new g.Fs("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var r0=new g.Fs("instreamVideoAdRenderer");var Ubb=new g.Fs("textOverlayAdContentRenderer"),Vbb=new g.Fs("enhancedTextOverlayAdContentRenderer"),Wbb=new g.Fs("imageOverlayAdContentRenderer");var h4a=new g.Fs("playerBytesAdLayoutRenderer");var y0=new g.Fs("playerUnderlayAdLayoutRenderer");var s0=new g.Fs("adIntroRenderer");var f4a=new g.Fs("playerBytesSequentialLayoutRenderer");var n5a=new g.Fs("slidingTextPlayerOverlayRenderer");var v0=new g.Fs("surveyTextInterstitialRenderer");var Xbb=new g.Fs("simpleAdBadgeRenderer");var T0=new g.Fs("skipAdRenderer"),Ybb=new g.Fs("skipButtonRenderer");var Tpa=new g.Fs("adSlotRenderer");var x0=new g.Fs("squeezebackPlayerSidePanelRenderer");var Zbb=new g.Fs("timedPieCountdownRenderer");g.x(Gs,P);g.x(Hs,P);g.x(Is,P);g.x(Js,P);Js.prototype.clearVideo=function(){return N(this,1,void 0,!1)};
var OGa=[1,2,3];var yGa={kga:0,iga:1,jga:2};var zGa={pga:0,oga:1,nga:2,lga:3};var DGa={Xja:0,Wja:1,Vja:2};var jS={Gma:0,Hma:1,Ema:2,Dma:3,Bma:4,Fma:5,Cma:6,Ama:7};var CGa={sna:0,rna:1,nna:2,jna:3,qna:4,tna:5,mna:6,ina:7,lna:8,pna:9,ona:10,una:11,kna:12,vna:13};var nHa={Jna:0,xna:1,Ana:2,Kna:3,yna:4,zna:5,Fna:6,Hna:7,Cna:8,wna:9,Ena:10,Ina:11,Dna:12,Bna:13,Gna:14};var BGa={qra:0,ora:1,pra:2};var mHa={HWa:0,GWa:1,FWa:2,EWa:3};var lHa={OWa:0,IWa:1,JWa:5,KWa:6,MWa:2,NWa:3,LWa:4};var kHa={RWa:0,SWa:1,QWa:2,PWa:3};var jHa={WWa:0,UWa:1,VWa:2};var iHa={i9a:0,X8a:1,e9a:2,Y8a:3,f9a:4,b9a:5,g9a:6,c9a:7,a9a:8,Z8a:9,d9a:10,h9a:11,W8a:12};g.x(Ks,P);Ks.prototype.getType=function(){return Fi(this,1)};g.x(Ls,P);g.x(Ms,P);g.x(Ns,P);g.x(Os,P);g.x(Ps,P);Ps.prototype.j=function(a,b){return ii(this,2,a,b)};
Ps.Ab=[2];g.x(Qs,P);Qs.prototype.j=function(a,b){return ii(this,3,a,b)};
Qs.Ab=[3];g.x(Rs,P);g.x(Ss,P);g.x(Ts,P);g.x(Us,P);g.x(Vs,P);g.x(Ws,P);g.x(Xs,P);g.x(Ys,P);g.x(Zs,P);g.x($s,P);var hS=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var JGa={Rha:0,bha:2,Tha:3,cha:4,aha:5,Jha:6,Lha:58,oha:17,Sga:18,Nha:15,Qha:7,tha:8,Aga:10,Bga:26,Uga:45,Yga:11,nha:14,Vha:16,wga:19,Cga:20,xga:21,Wha:22,Dga:23,Zga:25,qga:27,rga:53,sha:28,Tga:30,Aha:31,Pga:32,Ega:33,vha:34,pha:35,jha:36,yga:37,Hha:38,Gha:39,fha:41,lha:42,hha:43,gha:44,zga:40,Cha:46,Bha:49,Dha:50,iha:51,mha:52,Uha:54,Oha:55,Pha:56,Hga:57,Jga:91,Kga:93,Iga:92,Iha:60,Qga:67,tga:64,Vga:65,Lga:68,vga:69,uha:70,eha:71,dha:72,Oga:73,Nga:75,Sha:76,zha:77,qha:78,Kha:79,Fha:80,Rga:81,Wga:82,
Mga:83,Xga:84,Mha:85,Eha:89,rha:86,xha:87,yha:88,wha:90,Gga:94,Fga:95};var IGa={dia:0,Yha:1,Xha:2,bia:3,eia:4,Zha:5,aia:6,cia:7};var HGa={sia:0,ria:1,qia:2};var KGa={UHa:0,NHa:1,QHa:2,qHa:3,SHa:4,dHa:5,JHa:6,tHa:7,THa:8,mHa:9,GHa:10,nHa:11,LHa:12,OGa:13,xHa:14,vHa:15,wHa:16,KHa:17,zHa:18,IHa:19,HHa:20,DHa:21,iHa:22,PGa:23,uHa:24,BHa:25,kHa:26,jHa:27,AHa:28,QGa:29,EHa:30,pHa:31,RHa:32,cHa:33,CHa:34,bHa:35,eHa:36,fHa:37,lHa:38,hHa:39,gHa:40,FHa:41,yHa:42,MHa:43,rHa:44,OHa:45,PHa:46,sHa:47,oHa:70,YGa:48,VGa:49,aHa:50,ZGa:51,XGa:52,UGa:53,RGa:54,WGa:55,TGa:56,SGa:57,MGa:58,LGa:59,KGa:60,EGa:61,JGa:62,FGa:63,GGa:64,DGa:65,HGa:66,NGa:67,IGa:68,CGa:69};var xGa={uma:0,pma:1,oma:18,hma:2,ama:3,gma:9,bma:10,ema:14,cma:4,Zla:5,dma:6,wma:11,fma:12,Wla:13,Vla:15,kma:16,qma:17,rma:19,xma:20,nma:21,lma:22,mma:23,Yla:24,tma:25,Xla:26,vma:27,jma:7};var LGa={oia:0,pia:1,iia:2,jia:3,kia:4,fia:5,hia:6,lia:7,mia:8,gia:9};var iS={Qia:0,Cia:1,Pia:3,Nia:4,Mia:5,Dia:25,Ria:6,Aia:7,uia:8,Fia:9,tia:12,Eia:22,Hia:23,Iia:26,Jia:27,Kia:28,Oia:24,Lia:13,Sia:14,Gia:15,via:16,yia:17,wia:18,xia:19,zia:20,Bia:21};g.x(at,P);g.x(bt,P);bt.prototype.j=function(a,b){return ui(this,1,at,a,b)};
bt.Ab=[1];g.x(ct,P);ct.prototype.j=function(a,b){return ii(this,2,a,b)};
ct.prototype.getMetrics=function(a){return Gea(this,2,a)};
ct.Ab=[2];g.x(dt,P);var MGa=[1,2];g.z3=new g.Fs("browseEndpoint");var $bb=new g.Fs("confirmDialogEndpoint");var Mqa=new g.Fs("rawColdConfigGroup");var Lqa=new g.Fs("rawHotConfigGroup");var qHa={CUa:0,BUa:1,xUa:2,vUa:3,yUa:4,wUa:5,AUa:6,zUa:7};g.VQ=new g.Fs("commandExecutorCommand");g.x(et,P);g.x(ft,P);g.x(gt,P);g.x(ht,P);var QGa=[1,2,3];g.x(jt,P);g.x(kt,P);kt.prototype.u=function(a,b){return ii(this,1,Eh(a),b)};
kt.prototype.j=function(a,b){return ii(this,2,Eh(a),b)};
kt.prototype.Of=function(){return yi(this,3)};
kt.Ab=[1,2];g.x(lt,P);g.x(mt,P);mt.prototype.j=function(a,b){return ii(this,1,a,b)};
mt.prototype.getMetrics=function(a){return Gea(this,1,a)};
mt.Ab=[1];g.x(nt,P);g.x(ot,P);g.x(pt,P);g.x(qt,P);g.x(rt,P);g.x(tt,P);g.x(ut,P);g.x(vt,P);g.x(wt,P);var aHa=[1,2],dHa=[3,4,5];g.x(xt,P);xt.prototype.getId=function(){return yi(this,1)};g.x(zt,P);zt.prototype.getType=function(){return Bh($h(this,1))};g.x(At,P);At.prototype.getType=function(){return Bh($h(this,1))};g.x(Bt,P);Bt.prototype.getType=function(){return Bh($h(this,1))};g.x(Ct,P);var mS=[1,2,3,4];g.x(Dt,P);g.x(Et,P);g.x(Ft,P);var lS=[1,2,3,4];g.x(Gt,P);Gt.prototype.j=function(a,b){return ui(this,2,Ft,a,b)};
Gt.Ab=[2];var ZGa=[3,4];g.x(Ht,P);var SGa=[1,2,3];g.x(It,P);g.x(Jt,P);Jt.prototype.j=function(a,b){return ii(this,2,a,b)};
Jt.Ab=[2];g.x(Kt,P);g.x(Lt,P);g.x(Mt,P);g.x(Nt,P);g.x(Ot,P);g.x(Pt,P);Pt.prototype.j=function(a,b){return ii(this,1,a,b)};
Pt.Ab=[1];g.x(Qt,P);g.x(Rt,P);g.x(St,P);var pHa=[1,2,3];g.x(Tt,P);Tt.prototype.j=function(a,b){return ui(this,1,St,a,b)};
Tt.Ab=[1];g.x(Ut,P);g.x(Vt,P);g.x(Wt,P);g.x(Xt,P);Xt.prototype.j=function(a,b){return ui(this,1,Wt,a,b)};
Xt.Ab=[1];g.x(Yt,P);g.x(Zt,P);g.x($t,P);$t.prototype.j=function(a,b){return ui(this,1,Zt,a,b)};
$t.Ab=[1];g.x(au,P);au.prototype.j=function(a,b){return ui(this,1,Zt,a,b)};
au.Ab=[1];g.x(bu,P);g.x(cu,P);var $wa={i8a:0,K9a:1,f$a:32,o$a:61,A$a:67,q$a:86,d$a:42,g$a:60,R9a:62,m$a:73,k$a:76,s$a:88,t$a:90,L$a:41,M$a:69,N$a:70,O$a:71,gOa:2,BOa:27,ANDROID:3,Yia:54,Zia:14,gja:91,aja:55,bja:24,cja:20,dja:18,fja:21,ija:30,lja:29,mja:28,nja:34,hja:36,eja:38,IOS:5,mCa:15,wCa:92,nCa:40,pCa:25,qCa:17,rCa:19,sCa:64,tCa:66,uCa:26,yCa:22,JCa:33,KCa:68,LCa:35,vCa:53,xCa:37,oCa:39,o6a:7,o7a:57,D7a:43,O7a:59,E7a:93,kja:74,V7a:75,W7a:85,X7a:65,Z7a:80,a8a:8,m6a:10,c8a:58,b8a:63,Y7a:72,jja:23,pab:11,qab:13,Wna:12,n6a:16,
b$a:56,p$a:31,dOa:77,Iza:84,j$a:87,Kza:89,Jza:94,sLa:95};var acb={U2:0,CLASSIC:1,B2:2,j0:3,R_:4,H2:5,f0:6,AT:7};g.x(du,P);du.prototype.Q4=function(){return g.Ei(this,3)};
du.prototype.R4=function(){return g.Ei(this,5)};
du.prototype.Ir=function(a){return O(this,5,a)};g.x(eu,P);g.x(fu,P);g.x(Au,P);g.x(Cu,P);g.x(Du,P);Du.Ab=[2];g.x(g.Eu,P);g.Eu.prototype.Ws=aa(0);g.Eu.prototype.getPlayerType=function(){return Fi(this,36)};
g.Eu.prototype.setHomeGroupInfo=function(a){return oi(this,Du,81,a)};
g.Eu.prototype.clearLocationPlayabilityToken=function(){return N(this,89,void 0,!1)};
g.Eu.Ab=[9,66,32,86,100,101];g.x(Fu,P);Fu.prototype.getKey=function(){return g.Ei(this,1)};
Fu.prototype.getValue=function(){return g.Ei(this,mi(this,Soa,2))};
var Soa=[2,3,4,5,6];g.x(Gu,P);Gu.Ab=[15,26,28];g.x(Hu,P);Hu.Ab=[5];g.x(Iu,P);Iu.prototype.setToken=function(a){return O(this,2,a)};g.x(Ju,P);Ju.prototype.setSafetyMode=function(a){return N(this,5,a)};
Ju.Ab=[12];g.x(Ku,P);Ku.prototype.u=function(a){return oi(this,g.Eu,1,a)};
Ku.Ab=[12];var W0=new g.Fs("thumbnailLandscapePortraitRenderer");var yHa={O0a:0,J0a:1,M0a:2,N0a:3,K0a:4,L0a:5};var wHa={w1a:0,v1a:1,P0a:2,Q0a:3,R0a:4,S0a:5,T0a:6,U0a:7,V0a:8,X0a:9,Y0a:10,Z0a:11,a1a:12,b1a:13,d1a:14,e1a:15,g1a:16,h1a:17,k1a:18,l1a:19,m1a:20,p1a:21,n1a:22,o1a:23,q1a:24,s1a:25,t1a:26,u1a:27,j1a:28,W0a:29,f1a:30,i1a:31};var vHa={G1a:0,x1a:1,y1a:2,z1a:3,A1a:4,B1a:5,C1a:6,D1a:7,E1a:8,F1a:9,H1a:10};var xHa={L1a:0,J1a:1,K1a:2,I1a:3};var bHa={bna:0,Lma:1,cna:2,Xma:3,Ima:4,Jma:5,Vma:6,Kma:7,Tma:8,Uma:13,Oma:9,Qma:10,Sma:11,dna:12,Mma:14,Rma:15,Pma:16,Yma:17,Wma:18,ana:19,Zma:20,Nma:21};var cHa={hna:0,gna:1,fna:2,ena:3};var rHa={T3a:0,R3a:1,S3a:2};var UGa={fka:0,cka:4,bka:2,Zja:5,aka:8,dka:9,Yja:3,gka:6,hka:7};var VGa={zoa:0,woa:1,xoa:2,Aoa:3,Boa:4,yoa:5};var TGa={Yoa:0,Woa:8,Uoa:2,Soa:5,Toa:9,Voa:3,Roa:4,Zoa:6,apa:7,Xoa:10};var gHa={Bfa:0,zfa:1,Afa:2,Dfa:3,Efa:4,Cfa:5};var oHa={n9a:0,m9a:1,o9a:2};var hHa={S8a:0,O8a:1,P8a:2,Q8a:3,R8a:4};var bcb={q9a:0,p9a:1};var CIa={Baa:0,zaa:1,yaa:2,Aaa:3};g.ccb=new g.Fs("changeEngagementPanelVisibilityAction");var XFa=new g.Fs("continuationCommand");g.dcb=new g.Fs("openPopupAction");g.A3=new g.Fs("webCommandMetadata");var mza=new g.Fs("metadataBadgeRenderer");var WFa=new g.Fs("signalServiceEndpoint");var EJa={Lfa:0,Mfa:1,Hfa:2,Kfa:3,Ifa:4,Jfa:5};var FJa={Sfa:0,Qfa:1,Nfa:2,Rfa:3,Tfa:4,Pfa:5,Ofa:6};g.x(Lu,P);Lu.prototype.getType=function(){return Fi(this,1)};var sS={sDa:0,tDa:1,rDa:2,nDa:3,pDa:4,qDa:5,uDa:6,oDa:7};var ecb={bOa:0,TNa:1,UNa:2,aOa:3,VNa:4,ZNa:6,YNa:7,WNa:8,XNa:9};var fcb={hPa:0,ePa:1,gPa:2,fPa:3,dPa:4};var gcb={nTa:0,YSa:1,oTa:2,mTa:3,lTa:4,kTa:5,jTa:6,bTa:7,ZSa:8,fTa:9,sTa:10,aTa:11,hTa:12,qTa:13,rTa:14,iTa:15,eTa:16,dTa:17,gTa:18,cTa:19,pTa:20};var PGa={wTa:0,vTa:86};var tS={NVa:0,MVa:1,FVa:2,CVa:3,EVa:4,OVa:5,LVa:6,AVa:7,PVa:8,yVa:9,JVa:10,QVa:11,KVa:12,BVa:13,xVa:14,DVa:15,HVa:16,GVa:17,IVa:18,zVa:19};var hcb={x0a:0,u0a:1,z0a:2,v0a:3,y0a:4,w0a:5};g.UQ=new g.Fs("innertubeCommand");var icb={X_:0,U_:1,W_:2,V_:3};var Uma={X_:"EMBEDDED_PLAYER_MODE_UNKNOWN",U_:"EMBEDDED_PLAYER_MODE_DEFAULT",W_:"EMBEDDED_PLAYER_MODE_PFP",V_:"EMBEDDED_PLAYER_MODE_PFL"};var Nza=new g.Fs("channelThumbnailEndpoint");var Mza=new g.Fs("embeddedPlayerErrorMessageRenderer");var Iza=new g.Fs("embeddedPlayerOverlayVideoDetailsRenderer"),Oza=new g.Fs("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),Pza=new g.Fs("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var jza=new g.Fs("embedsInfoPanelRenderer");var eHa={ZJa:0,MJa:1,WJa:2,YJa:3,NJa:4,RJa:5,TJa:6,PJa:7,QJa:8,VJa:9,XJa:10,SJa:11,UJa:12,OJa:13};var jcb=new g.Fs("feedbackEndpoint");var kcb=new g.Fs("callToActionButtonViewModel");g.x(Mu,P);g.x(Nu,P);g.x(Ou,P);var RIa=[1,2];var lcb={CDa:0,DDa:1,BDa:2,wDa:3,vDa:4,xDa:5,zDa:6,yDa:7,ADa:8};var mcb={XDa:0,LDa:1,WDa:2,VDa:3,GDa:4,IDa:5,JDa:6,HDa:7,PDa:8,MDa:9,NDa:10,ODa:16,EDa:11,YDa:12,FDa:13,TDa:14,KDa:15,UDa:17,QDa:18,RDa:19,SDa:20};var ncb={cEa:0,ZDa:1,bEa:2,aEa:3};var ocb={PAa:0,wAa:1,QAa:8,HAa:16,IAa:17,LAa:2,JAa:3,KAa:4,zAa:5,xAa:6,yAa:7,OAa:9,MAa:10,NAa:11,GAa:12,DAa:13,FAa:14,EAa:15,CAa:18,AAa:19,BAa:20,vAa:21};var pcb={QSa:0,RSa:1,PSa:2};var qcb={XSa:0,TSa:1,VSa:2,SSa:3,USa:4,WSa:5};var rcb={rEa:0,iEa:1,jEa:2,kEa:3,pEa:4,mEa:5,nEa:6,lEa:7,oEa:8,hEa:9,qEa:10};var scb={JIa:0,FIa:1,tIa:2,EIa:3,oIa:4,DIa:5,CIa:6,BIa:7,MIa:8,vIa:9,pIa:10,wIa:11,xIa:12,qIa:13,AIa:14,LIa:15,zIa:16,yIa:17,rIa:18,sIa:19,uIa:20,GIa:21,HIa:22,IIa:23,KIa:24};var tcb={gJa:0,cJa:9,WIa:8,iJa:1,nJa:2,lJa:3,mJa:13,dJa:4,YIa:21,ZIa:20,aJa:5,SIa:6,RIa:7,UIa:14,TIa:15,pJa:17,qJa:10,bJa:16,VIa:18,fJa:19,PIa:11,QIa:12,jJa:22,kJa:23,OIa:24,hJa:25,NIa:26,oJa:27,XIa:28,eJa:29};var ucb={wla:0,tla:1,ula:2};var vcb={gIa:0,YHa:1,bIa:2,eIa:3,ZHa:4,WHa:5,cIa:6,dIa:7,VHa:8,fIa:9,aIa:10,XHa:11};var wcb={zla:0,xla:1,Ala:2,yla:3};var xcb=new g.Fs("interactionLoggingCommandMetadata");var Uoa={Z9a:"WEB_DISPLAY_MODE_UNKNOWN",V9a:"WEB_DISPLAY_MODE_BROWSER",X9a:"WEB_DISPLAY_MODE_MINIMAL_UI",Y9a:"WEB_DISPLAY_MODE_STANDALONE",W9a:"WEB_DISPLAY_MODE_FULLSCREEN"};g.x(Pu,P);g.x(Qu,P);g.x(Ru,P);Ru.prototype.j=function(a,b){return ui(this,1,Qu,a,b)};
Ru.Ab=[1];var aKa={mba:0,Naa:1,Waa:2,aba:3,hba:4,jba:5,nba:6,bba:7,Maa:8,Taa:9,Saa:10,Caa:11,Vaa:12,Kaa:14,Paa:15,Zaa:16,Yaa:17,Uaa:18,Oaa:29,Qaa:19,Haa:20,Laa:21,lba:22,Daa:23,pba:24,Raa:25,Iaa:26,dba:27,Jaa:28,eba:30,fba:31,Xaa:32,kba:33,Eaa:34,cba:35,qba:36,Faa:37,Gaa:38,oba:39};var ycb={qoa:0,poa:1,ooa:2};g.x(Su,P);g.x(Tu,P);var zcb={Ada:0,vda:114,xca:1,pda:4,qda:14,kca:15,rda:17,Yba:6,bca:7,dca:8,cca:9,ica:5,Mca:16,Jca:101,oda:20,nda:26,fda:28,oca:104,Lba:105,Bda:50,mda:88,ida:89,kda:90,jda:91,pca:2,Cca:92,Dca:19,Oba:25,xda:107,aca:29,sca:93,uca:94,tca:95,yda:30,Kca:31,Bca:116,zca:3,vca:82,rca:83,qca:84,yca:85,hda:11,Cda:27,Nca:10,uda:115,Iba:12,Kba:13,Jba:49,Hba:106,Wba:18,Ica:21,fca:22,Gba:23,lda:24,xba:32,Hca:33,Bba:34,Jda:35,Tba:36,Uca:37,mca:38,wda:39,sda:40,tda:41,Eda:42,Xba:43,zda:44,lca:45,eca:46,Oca:47,Lca:48,
wca:51,jca:52,Zba:53,gda:54,nca:55,Nba:56,Sba:57,Uba:99,Mba:58,Rca:59,gca:60,Sca:61,Pca:62,Fca:63,Ida:64,Fda:65,Dda:66,Hda:67,Gda:68,wba:69,Qca:70,Vca:71,Wca:72,Zca:73,bda:74,Xca:75,Yca:117,Qba:76,Rba:77,Dba:78,Vba:79,Aca:80,hca:81,Pba:86,Fba:87,zba:97,yba:103,Eca:98,Tca:100,Cba:102,eda:108,dda:109,Aba:110,Eba:111,Gca:112,cda:113};var Acb={Yda:0,Sda:1,Uda:2,Wda:3,Qda:4,Lda:5,Nda:6,Pda:7,Vda:8,Mda:9,Oda:10,Tda:13,Xda:14,Kda:11,Rda:12};var Bcb={Vea:0,bea:1,cea:2,eea:3,mea:4,Pea:42,Hea:9,Qea:10,jea:11,Nea:12,Mea:13,uea:43,Gea:14,vea:15,Tea:47,xea:46,Cea:16,Bea:17,fea:18,Kea:19,iea:20,Lea:21,Uea:22,Rea:23,Sea:24,hea:25,dea:26,Oea:27,zea:28,Eea:38,Fea:39,Dea:49,Jea:5,wea:6,lea:7,qea:8,Aea:29,Iea:30,yea:31,Zda:32,rea:33,pea:34,nea:35,Xea:36,tea:37,Wea:40,sea:41,aea:44,oea:45,gea:48};var oJa={bfa:0,afa:1,Yea:2,Zea:3};var mJa={Ioa:0,Foa:1,Eoa:2,Hoa:3,Goa:4};var Ccb={jpa:0,hpa:1,epa:2,ipa:3,fpa:4,gpa:5};var Dcb={mpa:0,kpa:1,lpa:2};var Ecb={tpa:0,spa:1,qpa:2,rpa:3,ppa:4};var Fcb={xpa:0,upa:1,wpa:2,ypa:3};var Gcb={Epa:0,zpa:1,Dpa:2,Cpa:3,Bpa:4,Apa:5};var Hcb={Kpa:0,Jpa:1,Fpa:2};var Icb={Ipa:0,Gpa:1,Hpa:2};var Jcb={Npa:0,Lpa:1,Mpa:2};var Kcb={bqa:0,Xpa:1,Wpa:2,Rpa:3,Vpa:4,Ppa:5,Qpa:6,Ypa:7,Spa:8,Zpa:9,Upa:10,Opa:11,Tpa:12,aqa:13};var Lcb={gqa:0,eqa:1,fqa:2,dqa:3,cqa:4};var lJa={TFa:0,rFa:1,sFa:2,FEa:3,iFa:4,tFa:5,jFa:6,GEa:7,uFa:8,yEa:9,zEa:10,NEa:11,EEa:12,HEa:13,lFa:14,LEa:15,xEa:16,IFa:17,gFa:18,IEa:19,oFa:20,mFa:21,nFa:22,wEa:23,RFa:25,HFa:26,yGa:61,ZEa:35,REa:36,PEa:37,VEa:38,UEa:93,XEa:39,WEa:40,dFa:41,OFa:97,PFa:106,QFa:102,aFa:42,YEa:43,eFa:44,fFa:45,BEa:24,CEa:27,DEa:28,qGa:29,tGa:75,rGa:104,sGa:30,kGa:98,nGa:108,lGa:105,mGa:89,uGa:31,vGa:86,oGa:32,pGa:91,YFa:51,aGa:52,jGa:62,cGa:70,gGa:63,eGa:64,ZFa:65,iGa:66,bGa:71,fGa:67,dGa:68,hGa:69,xGa:33,bFa:46,
cFa:47,JFa:49,KFa:50,LFa:94,DFa:77,wFa:78,vFa:79,xFa:80,kFa:53,UFa:54,WFa:55,VFa:56,EFa:57,FFa:101,GFa:96,XFa:58,pFa:59,qFa:60,yFa:72,zFa:107,CFa:84,AFa:92,KEa:73,MFa:74,AEa:76,SFa:81,QEa:82,NFa:83,SEa:85,TEa:95,wGa:87,hFa:88,MEa:90,BFa:99,OEa:100,JEa:103};var pJa={P_:0,boa:1,vEa:2,uoa:3,K2:4,L2:5,sWa:6,hXa:7,ZTa:8,b3:9,coa:10,efa:11,gfa:12,F9a:13,vfa:14,xfa:15,pfa:16,qfa:17,ifa:18,gla:19,usa:20,qBa:21,hCa:22,g3:23,D3a:24,dfa:25,JMa:26,IMa:47,O2:27,fla:28,rWa:29,Hxa:30,pBa:31,noa:32,I8a:33,B8a:34,y8a:35,G8a:36,H8a:37,D8a:38,E8a:39,F8a:40,A8a:41,z8a:42,sla:43,C2:44,Dka:45,F_:46,tba:48,g0:49,x3a:50,nra:51,sJa:52,Wab:53};var Mcb={bSa:0,QRa:1,VRa:2,TRa:3,URa:4,PRa:5,ZRa:6,aSa:7,ORa:8,XRa:9,RRa:10,SRa:11,WRa:12,YRa:13};var Ncb={gSa:0,hSa:1,cSa:2,dSa:3,fSa:4,eSa:5};var kJa={GSa:0,CSa:1,xSa:2,ySa:3,zSa:21,sSa:4,nSa:5,pSa:6,oSa:7,rSa:8,FSa:9,mSa:10,ESa:11,DSa:12,wSa:22,BSa:13,ASa:20,tSa:14,vSa:15,uSa:16,lSa:17,kSa:19,qSa:18,jSa:23};var rJa={Z_a:0,U_a:1,V_a:14,X_a:15,Y_a:20,I_a:2,Q_a:3,N_a:4,O_a:5,F_a:6,R_a:7,M_a:8,J_a:9,H_a:10,T_a:11,P_a:12,S_a:13,G_a:16,W_a:17,L_a:18,K_a:19};var Ocb={l0a:0,k0a:1,d0a:2,e0a:3,i0a:4,h0a:5,j0a:6,f0a:7,g0a:8};var sJa={Q4a:0,N4a:1,P4a:2,O4a:3,H4a:4,L4a:5,K4a:6,J4a:8,I4a:9,M4a:7};var rS={k6a:0,R4a:1,w5a:2,e6a:3,Y5a:4,a5a:5,H5a:6,m5a:7,M5a:8,E5a:9,W5a:10,a6a:11,O5a:12,b5a:13,F5a:14,k5a:15,Y4a:16,C5a:17,N5a:18,Z5a:19,h5a:20,p5a:21,i6a:22,h6a:57,o5a:23,g5a:24,Z4a:25,j6a:26,A5a:27,b6a:28,d6a:29,I5a:30,g6a:31,j5a:32,P5a:33,t5a:34,v5a:35,D5a:36,B5a:37,R5a:38,G5a:39,l6a:40,q5a:41,r5a:42,s5a:43,W4a:44,V4a:45,U4a:46,S4a:58,T4a:59,U5a:47,V5a:48,J5a:67,K5a:68,l5a:49,Q5a:50,T5a:51,S5a:52,y5a:53,f5a:54,f6a:55,u5a:56,L5a:60,x5a:61,n5a:62,X5a:63,i5a:64,z5a:69,c5a:65,X4a:66,e5a:70,d5a:71};g.x(Uu,P);g.x(Vu,P);g.x(Wu,P);Wu.prototype.Wm=function(){return g.Ei(this,1)};g.x(Xu,P);g.x(Yu,P);g.x(Zu,P);var uJa=[1,2];g.x($u,P);$u.prototype.getType=function(){return Fi(this,1)};
var tJa=[3,4];g.x(av,P);g.k=av.prototype;g.k.iz=function(){return g.Ei(this,1)};
g.k.v3=function(a,b){return ui(this,2,$u,a,b)};
g.k.w3=function(a,b){return ui(this,3,$u,a,b)};
g.k.u3=function(a,b){return ui(this,4,$u,a,b)};
g.k.y3=function(a,b){return ui(this,5,$u,a,b)};
g.k.x3=function(a,b){return ui(this,6,$u,a,b)};
av.Ab=[2,3,4,5,6];g.x(bv,P);bv.prototype.getType=function(){return Fi(this,2)};
bv.prototype.j=function(a,b){return ii(this,5,a,b)};
bv.Ab=[5];g.x(cv,P);cv.prototype.u=function(a,b){return ii(this,2,a,b)};
cv.prototype.j=function(a,b){return ui(this,4,$u,a,b)};
cv.prototype.C=function(a,b){return ui(this,5,$u,a,b)};
cv.prototype.B=function(a,b){return ui(this,6,$u,a,b)};
cv.Ab=[2,4,5,6];g.x(dv,P);dv.prototype.getType=function(){return Fi(this,2)};g.x(ev,P);ev.prototype.j=function(a,b){return ui(this,1,dv,a,b)};
ev.Ab=[1];g.x(fv,P);g.x(gv,P);gv.prototype.j=function(a,b){return ii(this,1,a,b)};
gv.Ab=[1];g.x(hv,P);hv.prototype.j=function(a,b){return ii(this,1,a,b)};
hv.prototype.u=function(a,b){return ii(this,2,a,b)};
hv.Ab=[1,2];g.x(iv,P);iv.prototype.j=function(a,b){return ui(this,2,gv,a,b)};
iv.Ab=[2];g.x(jv,P);g.x(kv,P);g.x(lv,P);lv.prototype.Wm=function(){return g.Ei(this,1)};
lv.prototype.j=function(a,b){return ui(this,3,kv,a,b)};
lv.Ab=[3];g.x(mv,P);mv.prototype.tf=function(){return Fi(this,1)};g.x(nv,P);nv.prototype.Mf=function(){return Fi(this,2)};g.x(ov,P);g.x(pv,P);g.x(qv,P);qv.prototype.getType=function(){return Fi(this,1)};
qv.prototype.Wm=function(){return g.Ei(this,8)};g.x(rv,P);rv.prototype.Wm=function(){return g.Ei(this,1)};g.x(tv,P);tv.prototype.Wm=function(){return g.Ei(this,1)};g.x(uv,P);uv.prototype.Wm=function(){return g.Ei(this,1)};g.x(vv,P);vv.prototype.Wm=function(){return g.Ei(this,2)};g.x(wv,P);wv.prototype.Wm=function(){return g.Ei(this,1)};g.x(xv,P);xv.prototype.Wm=function(){return g.Ei(this,1)};g.x(yv,P);g.x(zv,P);g.x(Av,P);g.x(Bv,P);Bv.prototype.Wm=function(){return g.Ei(this,2)};g.x(Cv,P);g.x(Dv,P);g.x(Ev,P);var B3=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];g.x(Fv,P);g.x(Gv,P);g.x(Hv,P);g.x(Iv,P);g.x(Jv,P);Jv.prototype.getState=function(){return Fi(this,1)};
Jv.prototype.Ac=function(a){return N(this,1,a)};g.x(Kv,P);g.x(Lv,P);Lv.prototype.j=function(a,b){return ui(this,1,Kv,a,b)};
Lv.Ab=[1];g.x(Mv,P);Mv.prototype.j=function(a,b){return ui(this,2,Lv,a,b)};
Mv.prototype.u=function(a,b){return ui(this,3,Iv,a,b)};
Mv.Ab=[2,3];g.x(Nv,P);Nv.prototype.u=function(a,b){return ui(this,1,Mv,a,b)};
Nv.prototype.j=function(a,b){return ui(this,2,Hv,a,b)};
Nv.Ab=[1,2];g.x(Ov,P);g.x(Pv,P);g.x(Qv,P);g.x(Rv,P);Rv.prototype.Ym=function(){return Bi($h(this,4),0)};g.x(Sv,P);Sv.prototype.getStatus=function(){return Ci(this,2)};g.x(Tv,P);g.x(Uv,P);Uv.prototype.setConfig=function(a){return oi(this,Tv,2,a)};g.x(Vv,P);g.x(Wv,P);Wv.prototype.getKey=function(){return g.Ei(this,1)};
Wv.prototype.getValue=function(){return g.Ei(this,2)};g.x(Xv,P);g.x(Yv,P);g.x(Zv,P);Zv.prototype.j=function(a,b){return ui(this,3,Yv,a,b)};
Zv.Ab=[3];g.x($v,P);g.x(aw,P);g.x(bw,P);g.k=bw.prototype;g.k.getSettings=function(){return g.ni(this,aw,1)};
g.k.qh=function(a){return oi(this,aw,1,a)};
g.k.getState=function(){return Fi(this,2)};
g.k.Ac=function(a){return N(this,2,a)};
g.k.Ym=function(){return Bi($h(this,3),0)};g.x(cw,P);g.x(dw,P);dw.prototype.Ym=function(){return Bi($h(this,4),0)};g.x(ew,P);g.x(fw,P);g.k=fw.prototype;g.k.getType=function(){return Fi(this,1)};
g.k.s3=function(a,b){return ui(this,2,ew,a,b)};
g.k.Ym=function(){return Bi($h(this,6),0)};
g.k.getPlaybackRate=function(){return Fea(this,7)};
g.k.setPlaybackRate=function(a){return qi(this,7,a)};
g.k.uQ=function(a){vi(this,8,a)};
fw.Ab=[2];g.x(gw,P);gw.prototype.Ym=function(){return Bi($h(this,3),0)};g.x(hw,P);hw.prototype.j=function(a,b){return ui(this,1,fw,a,b)};
hw.prototype.u=function(a,b){return ui(this,2,gw,a,b)};
hw.Ab=[1,2];g.x(iw,P);iw.prototype.getState=function(){return Fi(this,1)};
iw.prototype.Ac=function(a){return N(this,1,a)};g.x(g.jw,P);g.x(g.kw,P);g.kw.prototype.u=function(a){return N(this,1,a)};
g.kw.prototype.j=function(a,b){return ui(this,4,hw,a,b)};
g.kw.prototype.Jv=aa(1);g.kw.Ab=[4];g.x(lw,P);lw.prototype.Of=function(){return Fi(this,4)};g.x(mw,P);mw.prototype.j=function(a,b){return ii(this,1,a,b)};
mw.prototype.Sg=function(a,b){yea(this,1,a,b,Dea)};
mw.Ab=[1];g.x(nw,P);nw.prototype.j=function(a,b){return ui(this,4,Wv,a,b)};
nw.prototype.u=function(a,b){return ii(this,5,a,b)};
nw.Ab=[4,5];g.x(ow,P);g.x(pw,P);g.x(qw,P);g.x(rw,P);rw.prototype.Of=function(){return g.Ei(this,2)};g.x(tw,P);tw.prototype.j=function(a,b){return ui(this,1,rw,a,b)};
tw.Ab=[1];g.x(uw,P);uw.prototype.Of=function(){return g.Ei(this,2)};g.x(vw,P);vw.prototype.j=function(a,b){return ui(this,1,uw,a,b)};
vw.Ab=[1];g.x(ww,P);var MIa=[1,2,3];g.x(xw,P);xw.prototype.j=function(a,b){return ui(this,1,ww,a,b)};
xw.Ab=[1];g.x(yw,P);var vG=[2,3,4,5];g.x(zw,P);zw.prototype.getMessage=function(){return g.Ei(this,1)};g.x(Aw,P);g.x(Bw,P);g.x(Cw,P);g.x(Dw,P);Dw.prototype.Rl=function(a,b){return ui(this,5,Cw,a,b)};
Dw.Ab=[5];g.x(Ew,P);g.x(Fw,P);Fw.prototype.j=function(a,b){return ui(this,3,Ew,a,b)};
Fw.Ab=[3,4];g.x(Gw,P);g.x(Hw,P);Hw.prototype.u=function(a,b){return ui(this,19,Au,a,b)};
Hw.prototype.j=function(a,b){return ui(this,20,fu,a,b)};
Hw.Ab=[19,20];g.x(Iw,P);g.x(Jw,P);g.x(Kw,P);Kw.prototype.j=function(a,b){return ui(this,2,Iw,a,b)};
Kw.prototype.setConfig=function(a){return oi(this,Jw,3,a)};
Kw.prototype.B=function(a,b){return ui(this,5,Iw,a,b)};
Kw.prototype.u=function(a,b){return ui(this,9,Ou,a,b)};
Kw.Ab=[2,5,9];g.x(Lw,P);Lw.prototype.Ym=function(){return Bi($h(this,2),0)};g.x(Mw,P);Mw.prototype.j=function(a,b){return ui(this,9,Lw,a,b)};
Mw.Ab=[9];g.x(Nw,P);g.x(Ow,P);g.x(Pw,P);g.x(Qw,P);g.x(Rw,P);Rw.prototype.getType=function(){return Fi(this,2)};
Rw.prototype.j=function(a,b){return ui(this,3,Qw,a,b)};
Rw.Ab=[3];g.x(Sw,P);Sw.prototype.j=function(a,b){return ui(this,10,Ov,a,b)};
Sw.prototype.u=function(a,b){return ui(this,17,Mw,a,b)};
Sw.Ab=[10,17];g.x(Tw,P);var zIa={Sja:0,Rja:1,Oja:2,Pja:3,Qja:4};var Pcb={ela:0,Xka:1,Zka:2,Yka:3,dla:4};g.x(Uw,P);Uw.prototype.Of=function(){return g.Ei(this,2)};
Uw.prototype.Wm=function(){return g.Ei(this,3)};var UHa={qla:0,ola:1,ila:2,jla:3,kla:4,lla:5,mla:6,nla:7,hla:8};var eIa={qsa:0,rsa:3,ssa:1,nsa:2};var QHa={Fta:0,Asa:1,Jsa:2,Lsa:3,Osa:4,Psa:5,Tsa:6,Usa:7,Vsa:8,Wsa:9,Xsa:10,ata:11,bta:12,dta:13,eta:14,fta:15,kta:16,pta:17,qta:18,sta:19,uta:20,wta:21,xta:22,zta:23,Bta:24,Gta:25,Hta:26,mta:27,Cta:28,nta:29,Zsa:30,Rsa:31,Ysa:32,Kta:33,Lta:34,zsa:35,Gsa:36,Dta:37,Eta:38,Ksa:39,gta:40,hta:51,Fsa:41,Bsa:42,Msa:43,ita:44,Hsa:45,lta:46,vta:47,Esa:48,rta:49,jta:50,Isa:52,Nsa:53,Qsa:54,yta:55,Ata:56,Jta:57,Ita:58,tta:59,Csa:60,Ssa:61,Dsa:62};var THa={Uwa:0,pua:1,Wva:2,Rwa:3,lxa:4,Pva:5,Xva:6,vua:7,yua:8,xua:9,kwa:10,Ova:11,Nva:12,twa:13,ywa:14,Swa:15,gxa:16,uua:17,Vta:18,eva:19,Gua:20,Uva:21,cwa:22,Twa:23,Xta:24,aua:25,pwa:26,Oua:116,hva:27,iva:28,jwa:29,qua:30,ava:31,Tva:32,iwa:33,Tta:34,Uta:35,Rta:36,Sta:37,Yva:38,Zva:39,wwa:40,tua:41,jxa:42,nwa:43,hwa:44,lwa:45,Qva:46,mwa:47,Vua:48,Bua:49,Aua:160,nxa:50,gva:51,fva:52,Dua:53,Eua:54,Owa:55,Nwa:56,Mwa:57,Pwa:58,Lua:59,Wua:60,fxa:61,swa:62,owa:63,qwa:64,bwa:65,Gwa:66,Ewa:67,Fwa:117,Hwa:68,
cva:69,dva:121,mxa:70,Zua:71,Iwa:72,Jwa:73,uwa:74,vwa:75,Yua:76,Xua:77,gwa:78,fwa:80,Ota:81,hua:115,fua:120,gua:122,oua:123,kva:124,jva:125,eua:126,Cwa:127,Awa:128,Bwa:129,kxa:130,Qta:131,cua:132,Yta:133,bva:152,Uua:178,Fua:179,ova:82,qva:83,Fva:84,rva:85,Lva:86,pva:87,tva:88,zva:89,Cva:90,Hva:91,Eva:92,Gva:93,nva:94,uva:95,Dva:96,wva:97,vva:98,mva:99,sva:100,Iva:101,Ava:102,Mva:103,Jva:104,xva:105,Kva:106,Bva:107,yva:118,Wwa:108,axa:109,Zwa:110,Ywa:111,bxa:112,Xwa:113,Vwa:114,Pta:134,Zta:138,iua:139,
jua:140,nua:141,rua:142,wua:144,zua:165,sua:143,Cua:135,Iua:145,Jua:146,Vva:147,cxa:148,exa:149,hxa:150,Lwa:153,Mta:154,dxa:155,ixa:156,Wta:157,Hua:158,Dwa:159,Qua:161,Nta:162,zwa:163,Qwa:164,Pua:166,Kua:167,ewa:168,Nua:169,Mua:170,dwa:171,rwa:172,Rua:173,kua:174,Sua:175,xwa:176,Tua:177,Sva:136,Rva:137,Kwa:151};var Qcb={aoa:0,Zna:1,Xna:2,Yna:3};var lKa={NYa:0,wZa:1,BZa:2,hZa:3,iZa:4,jZa:5,DZa:39,EZa:6,zZa:7,vZa:50,CZa:69,xZa:70,yZa:71,rZa:74,kZa:32,lZa:44,mZa:33,AZa:8,nZa:9,oZa:10,qZa:11,pZa:12,sZa:73,tZa:77,uZa:78,OYa:56,PYa:57,QYa:58,RYa:59,SYa:60,TYa:61,f_a:13,g_a:14,h_a:15,p_a:16,k_a:17,r_a:18,q_a:19,m_a:20,n_a:21,i_a:34,o_a:35,l_a:36,j_a:49,XYa:37,YYa:38,aZa:40,cZa:41,bZa:42,dZa:43,eZa:51,ZYa:52,WYa:67,UYa:22,VYa:23,IZa:24,PZa:25,QZa:62,OZa:26,MZa:27,HZa:48,FZa:53,GZa:63,RZa:66,LZa:54,NZa:68,SZa:72,KZa:75,JZa:76,gZa:64,fZa:65,TZa:28,
WZa:29,VZa:30,UZa:31,c_a:45,e_a:46,d_a:47,a_a:55,YZa:79,XZa:80,ZZa:81,b_a:82};var iKa={t_a:0,u_a:1,s_a:2};var nKa={x_a:0,w_a:1,v_a:2};var mKa={E_a:0,C_a:1,A_a:2,D_a:3,y_a:4,z_a:5,B_a:6};var SJa={r3a:0,q3a:1,p3a:2};var RJa={v3a:0,t3a:1,s3a:2,u3a:3};g.x(Vw,P);g.x(Ww,P);g.x(Xw,P);g.x(Yw,P);g.x(Zw,P);g.x($w,P);$w.prototype.hasFeature=function(){return null!=Bh($h(this,2))};g.x(ax,P);g.x(bx,P);g.x(cx,P);g.x(dx,P);dx.prototype.getName=function(){return Fi(this,1)};
dx.prototype.getStatus=function(){return Fi(this,2)};
dx.prototype.getState=function(){return Fi(this,3)};
dx.prototype.Ac=function(a){return N(this,3,a)};g.x(ex,P);ex.prototype.j=function(a,b){return ui(this,2,dx,a,b)};
ex.Ab=[2];g.x(fx,P);g.x(gx,P);gx.prototype.j=function(a,b){return ui(this,1,ex,a,b)};
gx.prototype.u=function(a,b){return ui(this,2,ex,a,b)};
gx.Ab=[1,2];var hKa={fEa:0,dEa:1,eEa:2};var PJa={mKa:0,gKa:1,jKa:2,nKa:3,hKa:4,iKa:5,kKa:6,lKa:7};var QJa={qKa:0,pKa:1,oKa:2};var OJa={iOa:0,jOa:1,hOa:2};var NJa={zOa:0,mOa:1,vOa:2,AOa:3,xOa:4,pOa:5,lOa:6,nOa:7,oOa:8,yOa:9,wOa:10,qOa:11,tOa:12,uOa:13,sOa:14,rOa:15,kOa:16};var KJa={c2a:0,Y1a:1,b2a:2,a2a:3,Z1a:4};var JJa={g2a:0,e2a:1,f2a:2,d2a:3};var LJa={n2a:0,j2a:1,l2a:2,h2a:3,m2a:4,i2a:5,k2a:6};var IJa={u2a:0,w2a:1,v2a:2,q2a:3,o2a:4,p2a:5,x2a:6,r2a:7,y2a:8,s2a:9,t2a:10};var MJa={B2a:0,A2a:1,z2a:2};var WJa={A6a:0,y6a:1,x6a:2,s6a:3,u6a:4,v6a:5,r6a:6,t6a:7,z6a:8,C6a:9,w6a:10,p6a:11,q6a:12,B6a:13};var VJa={E6a:0,D6a:1};var eKa={H6a:0,I6a:1,F6a:2,G6a:3};var cKa={e7a:0,J6a:1,d7a:2,c7a:3,i7a:4,h7a:5,b7a:19,N6a:6,P6a:7,X6a:8,O6a:24,a7a:25,Y6a:20,R6a:21,L6a:22,Z6a:23,K6a:9,M6a:10,Q6a:11,S6a:12,T6a:13,U6a:14,W6a:15,V6a:16,f7a:17,g7a:18};var XJa={m7a:0,l7a:1,n7a:2,j7a:3,k7a:4};var TJa={C7a:0,v7a:1,q7a:2,z7a:3,u7a:4,B7a:5,p7a:6,r7a:7,w7a:8,s7a:9,x7a:10,y7a:11,t7a:12,A7a:13};var ZJa={J7a:0,H7a:1,F7a:2,G7a:3,I7a:4};var YJa={N7a:0,K7a:1,L7a:2,M7a:3};var UJa={R7a:0,Q7a:1,P7a:2};var dKa={U7a:0,S7a:1,T7a:2};var fKa={p8a:0,o8a:1,n8a:2,l8a:3,m8a:4};var gKa={t8a:0,r8a:1,q8a:2,s8a:3};var Rcb={moa:0,joa:1,koa:2,hoa:3,loa:4,ioa:5};var uGa={V2:0,EBa:1,Aza:2,Bza:3,gEa:4,POa:5,kka:6};var oS={Hqa:0,oqa:101,uqa:102,jqa:103,mqa:104,rqa:105,sqa:106,vqa:107,wqa:108,yqa:109,zqa:110,Gqa:111,tqa:112,pqa:113,xqa:114,Bqa:115,Iqa:116,lqa:117,qqa:118,Jqa:119,Cqa:120,Dqa:121,nqa:122,kqa:123,Aqa:124,Fqa:125,Eqa:126};var KIa={Sqa:0,Pqa:1,Qqa:2,Nqa:3,Oqa:4,Mqa:5,Rqa:6};var Scb={Kra:0,Jra:1,Hra:2,Ira:3};var Tcb={Vra:0,Tra:1,Mra:2,Sra:3,Lra:4,Pra:5,Rra:6,Ura:7,Qra:8,Ora:9,Nra:10};var Ucb={Xra:0,Yra:1,Wra:2};g.x(hx,P);g.x(ix,P);g.x(jx,P);jx.prototype.getState=function(){return Ci(this,1)};
jx.prototype.Ac=function(a){return wi(this,1,a)};g.x(kx,P);g.x(lx,P);g.x(mx,P);g.x(nx,P);g.x(ox,P);ox.prototype.ud=function(){return g.Ei(this,1)};
ox.prototype.setVideoId=function(a){return O(this,1,a)};g.x(px,P);px.prototype.gg=function(a){si(this,1,a)};g.x(qx,P);qx.prototype.rj=function(){return bi(this,px,2)};g.x(rx,P);rx.prototype.hasFeature=function(){return null!=Bh($h(this,1))};g.x(sx,P);g.x(tx,P);g.x(ux,P);ux.prototype.Of=function(){return Fi(this,2)};
var Vcb=[1];g.x(vx,P);g.x(wx,P);g.x(xx,P);g.x(yx,P);yx.prototype.getVideoAspectRatio=function(){return Fea(this,2)};g.x(zx,P);g.x(Ax,P);g.x(Bx,P);g.x(Cx,P);g.x(Dx,P);g.x(Ex,P);g.x(Fx,P);g.x(Gx,P);g.x(Hx,P);g.x(Ix,P);g.x(Jx,P);Jx.prototype.getId=function(){return g.Ei(this,1)};g.x(Kx,P);g.x(Lx,P);g.x(Mx,P);Mx.prototype.j=function(a,b){return ui(this,5,Lx,a,b)};
Mx.Ab=[5];g.x(Ox,P);g.x(Sx,P);g.x(Tx,P);Tx.prototype.j=function(a,b){return ui(this,27,Sx,a,b)};
Tx.Ab=[27];g.x(Ux,P);g.x(Vx,P);g.x(Wx,P);g.x(Xx,P);var C3=[1,2,3,4];g.x(Yx,P);g.x(Zx,P);g.x($x,P);g.x(ay,P);g.x(by,P);by.prototype.Ym=function(){return Bi($h(this,2),0)};g.x(cy,P);g.x(dy,P);g.x(ey,P);g.x(fy,P);g.x(gy,P);g.x(hy,P);g.x(iy,P);iy.prototype.j=function(a,b){return ii(this,1,a,b)};
iy.Ab=[1];g.x(jy,P);jy.prototype.Of=function(){return Fi(this,3)};g.x(ky,P);g.x(ly,P);g.x(my,P);g.x(ny,P);g.x(oy,P);oy.prototype.j=function(a,b){return ui(this,2,my,a,b)};
oy.prototype.u=function(a,b){return ui(this,3,my,a,b)};
oy.Ab=[2,3];g.x(py,P);g.x(qy,P);g.x(ry,P);ry.prototype.ud=function(){return g.ni(this,py,mi(this,D3,2))};
ry.prototype.setVideoId=function(a){return pi(this,py,2,D3,a)};
ry.prototype.getPlaylistId=function(){return g.ni(this,ly,mi(this,D3,4))};
var D3=[2,3,4,5];g.x(sy,P);sy.prototype.getType=function(){return Fi(this,1)};
sy.prototype.ud=function(){return g.Ei(this,3)};
sy.prototype.setVideoId=function(a){return O(this,3,a)};g.x(ty,P);g.x(uy,P);g.x(vy,P);var GJa=[3];g.x(wy,P);g.x(yy,P);g.x(zy,P);g.x(Ay,P);g.x(By,P);g.x(Cy,P);g.x(Dy,P);g.x(Ey,P);g.x(Fy,P);g.x(Gy,P);g.x(Hy,P);Hy.prototype.getStarted=function(){return Bi(gea($h(this,1)),!1)};g.x(Iy,P);g.x(Jy,P);g.x(Ky,P);Ky.prototype.getDuration=function(){return Ci(this,2)};
Ky.prototype.ul=function(a){wi(this,2,a)};g.x(Ly,P);g.x(My,P);g.x(Ny,P);g.x(Oy,P);g.x(Py,P);g.x(Qy,P);Qy.prototype.Nf=function(){return g.ni(this,Oy,8)};
Qy.prototype.A5=function(){return bi(this,Oy,8)};
Qy.prototype.getVideoData=function(){return g.ni(this,Py,15)};
Qy.prototype.QE=function(a){oi(this,Py,15,a)};
Qy.Ab=[4];g.x(Ry,P);g.x(Sy,P);Sy.prototype.j=function(a){return O(this,2,a)};g.x(Ty,P);Ty.prototype.j=function(a){return O(this,1,a)};
Ty.Ab=[3];g.x(Uy,P);Uy.prototype.j=function(a){return O(this,1,a)};
Uy.prototype.rj=function(){return bi(this,px,2)};g.x(Vy,P);Vy.prototype.j=function(a){return O(this,1,a)};
Vy.prototype.rj=function(){return bi(this,px,2)};g.x(Wy,P);Wy.prototype.j=function(a){return O(this,1,a)};
Wy.prototype.rj=function(){return bi(this,px,2)};g.x(Xy,P);Xy.prototype.j=function(a){return O(this,1,a)};
Xy.prototype.rj=function(){return bi(this,px,2)};g.x(Yy,P);g.x(Zy,P);Zy.prototype.getId=function(){return g.Ei(this,2)};g.x(bz,P);bz.prototype.getVisibilityState=function(){return Fi(this,5)};
bz.Ab=[16];g.x(cz,P);g.x(dz,P);dz.prototype.getPlayerType=function(){return Fi(this,7)};
dz.prototype.ud=function(){return g.Ei(this,19)};
dz.prototype.setVideoId=function(a){return O(this,19,a)};
dz.Ab=[112,83,68];g.x(fz,P);g.x(gz,P);g.x(hz,P);hz.prototype.ud=function(){return g.Ei(this,1)};
hz.prototype.setVideoId=function(a){return O(this,1,a)};
hz.prototype.j=function(a,b){return ui(this,9,gz,a,b)};
hz.Ab=[9];g.x(iz,P);iz.prototype.j=function(a,b){return ui(this,3,hz,a,b)};
iz.Ab=[3];g.x(jz,P);jz.prototype.ud=function(){return g.Ei(this,1)};
jz.prototype.setVideoId=function(a){return O(this,1,a)};g.x(kz,P);g.x(lz,P);lz.prototype.j=function(a,b){return ui(this,1,jz,a,b)};
lz.prototype.u=function(a,b){return ui(this,2,kz,a,b)};
lz.Ab=[1,2];g.x(mz,P);g.x(nz,P);nz.prototype.getId=function(){return g.Ei(this,1)};
nz.prototype.j=function(a,b){return ii(this,2,Eh(a),b)};
nz.prototype.setVideoIds=function(a,b){return yea(this,2,a,Eh(b),Cea)};
nz.Ab=[2];g.x(oz,P);g.x(pz,P);g.x(qz,P);qz.prototype.j=function(a,b){return ii(this,9,a,b)};
qz.Ab=[9];g.x(rz,P);g.x(sz,P);g.x(tz,P);tz.prototype.getId=function(){return g.Ei(this,1)};
tz.prototype.j=function(a,b){return ui(this,14,pz,a,b)};
tz.prototype.u=function(a,b){return ui(this,17,rz,a,b)};
tz.Ab=[14,17];g.x(uz,P);uz.prototype.u=function(a,b){return ui(this,1,tz,a,b)};
uz.prototype.j=function(a,b){return ui(this,2,nz,a,b)};
uz.Ab=[1,2];g.x(vz,P);g.x(wz,P);wz.prototype.getOrigin=function(){return g.Ei(this,3)};
wz.prototype.tf=function(){return Ci(this,6)};g.x(xz,P);g.x(yz,P);g.x(zz,P);
var qG=[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,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];var Wcb={kra:0,hra:1,gra:2,jra:3,ira:4,dra:5,fra:6};var Xcb={uya:0,fya:1,iya:2,gya:3,lya:4,hya:5,Qxa:6,qya:7,Zxa:8,Kxa:9,aya:10,mya:11,jya:12,Sxa:13,Oxa:14,Rxa:15,tya:16,Lxa:17,Mxa:18,rya:19,Txa:20,Pxa:21,pya:22,Aya:23,zya:24,vya:25,bya:26,kya:27,Bya:28,Uxa:29,Ixa:30,xya:31,wya:32,Yxa:33,Eya:34,Xxa:35,nya:36,Dya:37,cya:38,oya:39,Wxa:40,Vxa:41,Nxa:42,eya:43,Cya:44,sya:45,yya:46,dya:47,Jxa:48};var Ycb={oza:0,Zya:1,cza:2,aza:3,fza:4,bza:5,Oya:6,kza:7,Tya:8,Hya:9,Uya:10,gza:11,dza:12,Qya:13,Mya:14,Pya:15,nza:16,Jya:17,Kya:18,lza:19,Rya:20,Nya:21,jza:22,tza:23,sza:24,pza:25,Vya:26,eza:27,uza:28,Sya:29,Fya:30,qza:31,Iya:32,xza:33,hza:34,wza:35,Wya:36,iza:37,Lya:38,Yya:39,vza:40,mza:41,rza:42,Xya:43,Gya:44};var Zcb={gBa:0,fBa:1,hBa:2};var $cb={kAa:0,iAa:1,eAa:3,gAa:4,hAa:5,jAa:6,fAa:7};var adb={qAa:0,nAa:1,pAa:2,oAa:3,mAa:4,lAa:5};var bdb={bBa:0,XAa:1,YAa:2,ZAa:3,aBa:4};var cdb={mBa:0,nBa:1,oBa:2,lBa:3,jBa:4,kBa:5};var WBa={YBa:0,FBa:1,LBa:2,MBa:4,SBa:8,NBa:16,OBa:32,XBa:64,WBa:128,HBa:256,JBa:512,QBa:1024,IBa:2048,KBa:4096,GBa:8192,PBa:16384,TBa:32768,RBa:65536,UBa:131072,VBa:262144};var JIa={CCa:0,BCa:1,ACa:2,zCa:4};var IIa={HCa:0,ECa:1,FCa:2,ICa:3,GCa:4,DCa:5};var ddb={uxa:0,txa:1,sxa:2};var edb={uKa:0,tKa:1,sKa:2};var fdb={kLa:0,RKa:1,iLa:2,UKa:3,aLa:4,mLa:5,jLa:6,HKa:7,GKa:8,FKa:9,LKa:10,QKa:11,PKa:12,IKa:13,bLa:14,WKa:15,YKa:16,xKa:17,hLa:18,BKa:19,XKa:20,wKa:21,ZKa:22,OKa:23,yKa:24,AKa:25,eLa:26,lLa:27,fLa:28,VKa:29,JKa:30,MKa:31,NKa:32,EKa:33,nLa:34,CKa:35,KKa:36,cLa:37,zKa:38,vKa:39,DKa:41,TKa:42,dLa:43,gLa:44,SKa:45};var gdb={rLa:0,qLa:1,pLa:2,oLa:3};var ZHa={Lla:0,Kla:1,Jla:2};var WHa={XLa:0,WLa:1,TLa:2,ULa:7,SLa:8,RLa:25,FLa:3,GLa:4,OLa:5,PLa:27,NLa:28,HLa:9,vLa:10,tLa:11,uLa:6,ELa:12,CLa:13,DLa:14,BLa:15,JLa:16,KLa:17,ILa:18,MLa:19,LLa:20,yLa:26,zLa:21,xLa:22,ALa:23,wLa:24,YLa:29,QLa:30,VLa:31};var YHa={dMa:0,aMa:1,bMa:2,cMa:3,ZLa:4};var XHa={jMa:0,hMa:1,iMa:2,fMa:3,gMa:4,eMa:5};var DHa={qMa:0,kMa:1,mMa:2,lMa:3,nMa:4,oMa:5,pMa:6,rMa:7};var $Ha={OMa:0,KMa:1,NMa:2,LMa:3,MMa:4};var bIa={ZMa:0,PMa:1,TMa:2,XMa:3,YMa:4,UMa:5,VMa:6,WMa:7,RMa:8,QMa:9,SMa:10};var aIa={dNa:0,aNa:1,bNa:2,cNa:3};var WIa={Dra:0,Bra:1,Cra:2,yra:3,zra:4,Ara:5};var aJa={TQa:0,SQa:1,LQa:2,QQa:3,MQa:4,PQa:5,RQa:6,OQa:7,NQa:8};var vIa={nRa:0,fRa:1,oRa:2,mRa:4,jRa:8,iRa:16,hRa:32,kRa:64,gRa:128,lRa:256};var XIa={GRa:0,BRa:1,FRa:2,yRa:3,qRa:4,wRa:5,rRa:6,sRa:7,uRa:8,zRa:9,DRa:10,CRa:11,ERa:12,tRa:13,vRa:14,xRa:15,ARa:16,pRa:17};var sIa={IQa:0,FQa:1,GQa:2,HQa:3};var yIa={aRa:0,cRa:1,ZQa:2,VQa:3,bRa:4,WQa:5,XQa:6,YQa:7};var JHa={g8a:0,roa:1,fKa:2,UOa:3,WOa:4,XOa:5,ROa:6,K3a:7,nPa:8,mPa:9,SOa:10,VOa:11,s4a:12,kfa:13,sfa:14,lfa:15,WTa:16,AQa:17,oPa:18,rPa:19,eRa:20,qPa:21,UQa:22,HRa:23,wPa:24,KQa:25,TOa:26,H3a:27,R1a:28,yWa:29,Mla:30,Uab:31,JQa:32};var IHa={j8a:0,uba:1,JRa:2,IRa:3,SUCCESS:4,w3a:5,vxa:6,nWa:7,dAa:9,soa:10,hqa:11,CANCELLED:12,xWa:13,S1a:14,X1a:15,C8a:16};var HHa={G4a:0,x4a:1,C4a:2,B4a:3,y4a:4,z4a:5,t4a:6,F4a:7,E4a:8,w4a:9,v4a:10,A4a:11,D4a:12,u4a:13};var SHa={LTa:0,CTa:1,GTa:2,ETa:3,KTa:4,FTa:5,JTa:6,ITa:7,HTa:8,DTa:9};var hdb={TUa:0,SUa:1,RUa:2};var idb={WUa:0,UUa:1,VUa:2};var VHa={BXa:0,zXa:1,yXa:2,AXa:3,xXa:4};var jdb={IXa:0,JXa:1};var CJa={PXa:0,NXa:1,OXa:2,QXa:3};var kdb={c0a:0,a0a:1,b0a:2};var ldb={U2a:0,Q2a:1,R2a:2,S2a:3,T2a:4};var xIa={o0a:0,m0a:1,n0a:2};var $Ia={I0a:0,F0a:1,G0a:2,H0a:3};var nIa={Xia:0,Wia:1,Uia:2,Via:3};var qIa={Lja:0,Eja:1,Kja:2,Hja:3,Aja:4,Bja:5,zja:6,Gja:7,Jja:8,Dja:9,Mja:10,Nja:11,Cja:12,Ija:13,Fja:14};var QIa={Uka:0,Oka:1,Rka:2,Ska:3,Qka:4,Tka:5,Vka:6,Pka:7};var hIa={Poa:0,Ooa:1,Qoa:2};var MHa={e8a:0,Mna:1,Nna:2,Lna:3,Ona:4};var LHa={f8a:0,JUa:1,uTa:2};var TIa={Exa:0,Axa:1,wxa:2,Dxa:3,yxa:4,Bxa:5,zxa:6,xxa:7,Cxa:8};var VIa={eBa:0,dBa:1,cBa:2};var PIa={eKa:0,dKa:1,cKa:2};var SIa={GOa:0,FOa:1,EOa:2};var OIa={dXa:0,bXa:1,cXa:2};var lIa={A3a:0,z3a:1,y3a:2};var mdb={zJa:0,vJa:1,wJa:2,xJa:3,yJa:4,AJa:5};var ndb={UTa:0,RTa:1,PTa:2,MTa:3,QTa:4,STa:5,NTa:6,OTa:7,TTa:8,VTa:9};var odb={b4a:0,a4a:1,c4a:2};var BJa={Pab:0,Aab:1,Hab:2,Gab:3,zab:4,Qab:5,Nab:6,Bab:7,Cab:8,Fab:9,Eab:12,wab:10,Oab:11,Jab:13,Kab:14,Rab:15,Iab:16,Lab:17,xab:18,Mab:19,yab:20,Sab:21,Dab:22};var vJa={cCa:0,aCa:1,bCa:2,ZBa:3};g.x(Az,P);g.x(Bz,P);Bz.prototype.ud=function(){return yi(this,mi(this,aG,1))};
Bz.prototype.setVideoId=function(a){return ki(this,1,aG,Fh(a))};
Bz.prototype.getPlaylistId=function(){return yi(this,mi(this,aG,2))};
var aG=[1,2];g.x(Cz,P);Cz.Ab=[3];var tO=new g.Fs("changeKeyedMarkersVisibilityCommand");var pdb=new g.Fs("changeMarkersVisibilityCommand");var oza=new g.Fs("loadMarkersCommand");var cQa=new g.Fs("productListItemRenderer");var hza=new g.Fs("shoppingOverlayRenderer");g.Jza=new g.Fs("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var qdb=new g.Fs("adFeedbackEndpoint");var vPa=new g.Fs("phoneDialerEndpoint");var uPa=new g.Fs("sendSmsEndpoint");var Hza=new g.Fs("copyTextEndpoint");var rdb=new g.Fs("webPlayerShareEntityServiceEndpoint");g.rO=new g.Fs("urlEndpoint");g.qO=new g.Fs("watchEndpoint");var sdb=new g.Fs("watchPlaylistEndpoint");var eJa={Ila:0,Hla:1,Gla:2,Ela:3,Fla:4};var uIa={lPa:0,jPa:1,kPa:2,iPa:3};var tdb={BPa:0,APa:1,yPa:2,zPa:3};var udb={FPa:0,CPa:1,DPa:2,EPa:3,GPa:4};var vdb={xQa:0,sQa:1,yQa:2,uQa:3,lQa:4,cQa:37,NPa:5,KPa:36,PPa:38,XPa:39,YPa:40,TPa:41,wQa:42,QPa:27,hQa:31,jQa:6,mQa:7,nQa:8,oQa:9,pQa:10,qQa:11,tQa:29,RPa:30,iQa:32,bQa:12,aQa:13,MPa:14,gQa:15,HPa:16,JPa:35,OPa:43,SPa:28,eQa:17,dQa:18,fQa:19,vQa:20,WPa:25,LPa:33,kQa:44,zQa:21,ZPa:22,VPa:26,UPa:34,rQa:23,IPa:24};var cJa={EQa:0,CQa:1,BQa:2,DQa:3};var pS={W1a:0,T1a:1,V1a:2,U1a:3};var KHa={r4a:0,f4a:1,e4a:2,k4a:3,q4a:4,g4a:5,n4a:6,l4a:7,m4a:8,h4a:9,o4a:10,i4a:11,p4a:12,j4a:13};var rIa={dRa:0,xPa:1,pPa:2,uPa:3,vPa:4,sPa:5,tPa:6};var wdb={EXa:0,DXa:1};var xdb={X2a:0,W2a:1,V2a:2,Y2a:3};var ydb={b3a:0,a3a:1,Z2a:2};var zdb={l3a:0,f3a:1,g3a:2,h3a:5,k3a:7,m3a:8,i3a:9,j3a:10};var Adb={e3a:0,d3a:1,c3a:2};var lMa=new g.Fs("compositeVideoOverlayRenderer");var Bdb=new g.Fs("miniplayerRenderer");var Qya=new g.Fs("playerMutedAutoplayOverlayRenderer"),Rya=new g.Fs("playerMutedAutoplayEndScreenRenderer");var Oxa=new g.Fs("unserializedPlayerResponse"),Sya=new g.Fs("unserializedPlayerResponse");var Cdb=new g.Fs("playlistEditEndpoint");var E3;g.pO=new g.Fs("buttonRenderer");E3=new g.Fs("toggleButtonRenderer");var tIa={h8a:0,zGa:4,fXa:1,Zza:2,zka:3,AGa:5,iXa:6,aAa:7,bAa:8,cAa:9};var Ddb=new g.Fs("resolveUrlCommandMetadata");var Edb=new g.Fs("modifyChannelNotificationPreferenceEndpoint");var dEa=new g.Fs("pingingEndpoint");var Fdb=new g.Fs("unsubscribeEndpoint");var wGa={k8a:0,ONa:1,KNa:2,JNa:3,kNa:71,jNa:4,MNa:5,PNa:6,NNa:16,LNa:69,lNa:70,gNa:56,hNa:64,iNa:65,xNa:7,nNa:8,sNa:9,oNa:10,rNa:11,qNa:12,pNa:13,uNa:43,ANa:44,BNa:45,CNa:46,DNa:47,ENa:48,FNa:49,GNa:50,HNa:51,INa:52,yNa:53,zNa:54,wNa:63,mNa:14,vNa:15,tNa:68,H$a:17,Q$a:18,a$a:19,G$a:20,u$a:21,I$a:22,S9a:23,C$a:24,x$a:25,e$a:26,Q9a:27,l$a:28,F$a:29,N9a:30,M9a:31,O9a:32,T9a:33,D$a:34,B$a:35,v$a:36,z$a:37,J$a:38,h$a:39,P$a:40,n$a:41,c$a:42,K$a:55,y$a:66,iab:67,r$a:57,E$a:58,U9a:59,P9a:60,i$a:61,w$a:62};var Gdb={pYa:0,rYa:1,iYa:2,aYa:3,mYa:4,nYa:5,sYa:6,RXa:7,SXa:8,YXa:9,jYa:10,bYa:11,fYa:12,dYa:13,eYa:14,gYa:15,hYa:19,UXa:16,lYa:17,kYa:18,WXa:20,cYa:21,TXa:22,qYa:23,ZXa:24,VXa:25,oYa:26,XXa:27};g.CO=new g.Fs("subscribeButtonRenderer");var Hdb=new g.Fs("subscribeEndpoint");var oIa={s0a:0,q0a:1,r0a:2};g.hMa=new g.Fs("buttonViewModel");var bKa={JYa:0,KYa:1,IYa:2,EYa:3,HYa:4,FYa:5,DYa:6,GYa:7};var i4a=new g.Fs("qrCodeRenderer");var bxa={IJa:"LIVING_ROOM_APP_MODE_UNSPECIFIED",FJa:"LIVING_ROOM_APP_MODE_MAIN",EJa:"LIVING_ROOM_APP_MODE_KIDS",GJa:"LIVING_ROOM_APP_MODE_MUSIC",HJa:"LIVING_ROOM_APP_MODE_UNPLUGGED",DJa:"LIVING_ROOM_APP_MODE_GAMING"};var aza=new g.Fs("autoplaySwitchButtonRenderer");var PN,fza,hya,cRa;PN=new g.Fs("decoratedPlayerBarRenderer");fza=new g.Fs("chapteredPlayerBarRenderer");hya=new g.Fs("multiMarkersPlayerBarRenderer");cRa=new g.Fs("chapterRenderer");g.VQa=new g.Fs("markerRenderer");var kza=new g.Fs("desktopOverlayConfigRenderer");var iza=new g.Fs("gatedActionsOverlayViewModel");var ZQa=new g.Fs("heatMarkerRenderer");var YQa=new g.Fs("heatmapRenderer");var nza=new g.Fs("watchToWatchTransitionRenderer");var Kza=new g.Fs("playlistPanelRenderer");var wMa=new g.Fs("speedmasterEduViewModel");var eza=new g.Fs("suggestedActionTimeRangeTrigger"),cza=new g.Fs("suggestedActionsRenderer"),dza=new g.Fs("suggestedActionRenderer");var $Qa=new g.Fs("timedMarkerDecorationRenderer");var Idb={hab:0,bab:1,cab:2,eab:3,dab:4,aab:5,Z$a:6,V$a:7,X$a:8,Y$a:9,W$a:10,T$a:11,S$a:12,R$a:13,U$a:14};var kS={V2:0,USER:74,Tja:459,TRACK:344,Uja:493,ika:419,hDa:494,Dla:337,MINUTE:237,HOUR:236,DAY:3,WEEK:78,jab:248,MONTH:79,QUARTER:246,YEAR:247,aPa:382,ZOa:383,YOa:384,C3a:235,VIDEO:4,oab:186,Coa:126,P2a:127,Koa:117,UVa:125,aXa:151,ara:515,voa:6,Lza:132,Qza:154,Oza:222,Pza:155,Mza:221,Nza:156,O2a:209,N2a:210,A9a:7,lWa:124,p0a:96,LOa:97,H9a:93,jIa:574,I9a:275,Lka:110,Kka:120,QUa:121,uBa:72,t9a:351,tYa:495,r9a:377,u9a:378,Fxa:496,Gxa:497,uYa:498,Mka:381,s9a:386,J9a:387,yja:410,iCa:437,xsa:338,Ika:380,
rba:352,zTa:113,ATa:114,U3a:82,V3a:112,Yqa:354,P3a:21,xja:556,tTa:567,zWa:566,Z3a:568,ura:523,wra:375,vra:514,mfa:302,Moa:136,vBa:85,Gfa:22,rab:23,Y3a:252,X3a:253,HSa:562,Loa:563,Gka:254,jfa:165,M2a:304,tra:408,WCa:421,O3a:422,B9a:423,TWa:463,PLAYLIST:63,y9a:27,x9a:28,z9a:29,E2a:30,H2a:31,G2a:324,I2a:32,Wka:398,K2a:399,L2a:400,NOa:411,MOa:413,OOa:414,QOa:415,eWa:39,fWa:143,jWa:144,aWa:40,bWa:145,dWa:146,l9a:504,iWa:325,jUa:262,lUa:263,kUa:264,nUa:355,oUa:249,qUa:250,pUa:251,goa:46,FXa:49,HXa:50,cfa:62,
N3a:561,tMa:105,aDa:242,Q1a:397,ZUa:83,yTa:135,uja:87,wja:153,vja:187,pja:89,oja:88,qja:139,sja:91,rja:104,tja:137,Rna:99,v8a:100,JOa:326,Uqa:148,Tqa:149,C2a:150,D2a:395,mka:166,ska:199,nka:534,rka:167,oka:168,wka:169,xka:170,pka:171,qka:172,tka:179,uka:180,yka:512,vka:513,K8a:200,w8a:476,L8a:213,jka:191,mUa:192,gUa:305,hUa:306,sUa:329,B0a:327,C0a:328,cUa:195,dUa:197,BTa:301,XTa:223,YTa:224,UCa:227,lCa:396,iDa:356,cDa:490,jDa:394,Nla:230,Aka:297,U8a:298,TCa:342,cra:346,oxa:245,W3a:261,yBa:265,DBa:266,
zBa:267,wBa:268,xBa:269,CBa:270,ABa:271,BBa:272,tJa:303,kIa:391,lIa:503,nIa:277,BJa:499,CJa:500,rJa:501,uJa:278,mIa:489,esa:332,gsa:333,csa:334,fsa:335,dsa:336,Qna:340,NCa:341,k9a:349,j9a:420,hWa:281,cWa:282,GXa:286,F2a:288,gWa:291,kWa:292,iIa:295,J2a:296,hIa:299,ofa:417,mDa:308,sab:309,uab:310,vab:311,gga:350,N8a:418,RAa:424,x8a:425,bPa:429,KOa:430,gDa:426,M1a:460,IOa:427,CWa:428,DWa:542,AWa:461,D0a:464,yMa:431,wMa:432,DMa:433,vMa:434,AMa:435,BMa:436,xMa:438,CMa:439,EMa:453,zMa:454,uMa:472,d8a:557,
BWa:558,Hka:559,Jka:560,Fka:565,eVa:545,cVa:546,pVa:547,sVa:548,rVa:549,qVa:550,fVa:551,oVa:552,aVa:554,hVa:516,iVa:544,jVa:553,lVa:519,kVa:570,mVa:571,gVa:572,nVa:573,G3a:520,bVa:521,dVa:522,dDa:543,IUa:440,KUa:441,OUa:442,GUa:448,HUa:449,LUa:450,PUa:451,NUa:491,POST:445,FUa:446,MUa:447,vVa:456,cPa:483,Ffa:569,wVa:529,Q3a:555,uVa:458,KXa:480,LXa:502,MXa:482,OCa:452,wYa:465,xYa:466,iqa:467,tVa:468,hsa:469,eoa:470,doa:471,bDa:474,MCa:475,bpa:477,QCa:478,Vza:479,tUa:484,rUa:485,fUa:486,eUa:487,tfa:488,
Gra:492,jsa:505,sra:506,C9a:507,uEa:508,Tza:509,Wza:510,Yza:511,T8a:524,v9a:530,kXa:531,isa:532,BYa:533,jXa:575,RCa:535,lDa:536,XCa:537,fDa:538,SCa:539,ZCa:540,VCa:541};var Bsa=new g.Fs("cipher");var Pxa=new g.Fs("playerVars");var Tya=new g.Fs("playerVars");var F3=g.Pa.window,Jdb,Kdb,Dz=(null==F3?void 0:null==(Jdb=F3.yt)?void 0:Jdb.config_)||(null==F3?void 0:null==(Kdb=F3.ytcfg)?void 0:Kdb.data_)||{};g.Qa("yt.config_",Dz);var Lz=[];var tma=/^[\w.]*$/,rma={q:!0,search_query:!0},qma=String(Pz);var uma=new function(){var a=window.document;this.j=window;this.u=a};
g.Qa("yt.ads_.signals_.getAdSignalsString",function(a){return Qz(Zz(a))});g.eb();var xma="XMLHttpRequest"in g.Pa?function(){return new XMLHttpRequest}:null;var Ldb="client_dev_domain client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");[].concat(g.qa(Ldb),["client_dev_set_cookie"]);var zma={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"},Bma="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.qa(Ldb)),Gma=!1,ECa=fA;g.x(jA,ub);mA.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):1===this.u&&a?(a=a.call(c,this.Vd))&&"function"===typeof a.then?a:oA(a):2===this.u&&b?(a=b.call(c,this.Vd))&&"function"===typeof a.then?a:nA(a):this};
mA.prototype.getValue=function(){return this.Vd};
mA.prototype.$goog_Thenable=!0;var pA=!1;var MC=EA||FA;var Sma=/^([0-9\.]+):([0-9\.]+)$/;g.x(UA,ub);UA.prototype.name="BiscottiError";g.x(TA,ub);TA.prototype.name="BiscottiMissingError";var WA={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},VA=null;var cna=eaa(["data-"]),gna={};var Mdb=0,XA=g.Qc?"webkit":Vn?"moz":g.Pe?"ms":g.wM?"o":"",Ndb=g.Sa("ytDomDomGetNextId")||function(){return++Mdb};
g.Qa("ytDomDomGetNextId",Ndb);var jna={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};dB.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
dB.prototype.tW=function(){return this.event?!1===this.event.returnValue:!1};
dB.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
dB.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var eB=g.Pa.ytEventsEventsListeners||{};g.Qa("ytEventsEventsListeners",eB);var mna=g.Pa.ytEventsEventsCounter||{count:0};g.Qa("ytEventsEventsCounter",mna);var tna=Md(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),nna=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 G3;G3=window;g.mC=G3.ytcsi&&G3.ytcsi.now?G3.ytcsi.now:G3.performance&&G3.performance.timing&&G3.performance.now&&G3.performance.timing.navigationStart?function(){return G3.performance.timing.navigationStart+G3.performance.now()}:function(){return(new Date).getTime()};g.jb(kB,g.G);kB.prototype.ea=function(a){void 0===a.j&&kna(a);var b=a.j;void 0===a.u&&kna(a);this.j=new g.te(b,a.u)};
kB.prototype.nt=function(){return this.j||new g.te};
kB.prototype.oa=function(){if(this.j){var a=(0,g.mC)();if(0!=this.C){var b=this.J,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.C);this.u[this.B]=.5<Math.abs((d-this.D)/this.D)?1:0;for(c=b=0;4>c;c++)b+=this.u[c]||0;3<=b&&this.K();this.D=d}this.C=a;this.J=this.j;this.B=(this.B+1)%4}};
kB.prototype.xa=function(){g.eA(this.V);g.gB(this.qa)};g.x(lB,g.G);lB.prototype.T=function(a,b,c,d,e){c=g.Nz((0,g.bb)(c,d||this.wb));c={target:a,name:b,callback:c};var f;e&&tna()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.V.push(c);return c};
lB.prototype.Mc=function(a){for(var b=0;b<this.V.length;b++)if(this.V[b]==a){this.V.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
lB.prototype.xa=function(){g.nB(this);g.G.prototype.xa.call(this)};oB.prototype.clone=function(){var a=new oB,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==Va(c)?g.md(c):c}return a};var TKa=["att/get"],ANa=["embedded_player"],Odb=["share/get_web_player_share_panel"],Pdb=["feedback"],Qdb=["notification/modify_channel_preference"],G1a=["player"],Rdb=["browse/edit_playlist"],Sdb=["subscription/subscribe"],Tdb=["subscription/unsubscribe"],K1a=["next","unplugged/watch_next"];var qB;g.pB=Md(function(){var a=new Kr;return a.isAvailable()?new g.rr(a):null});
qB=Md(function(){var a=new yla;return a.isAvailable()?new g.rr(a):null});vB.prototype.xC=function(a,b){a={};var c=efa([]);c&&(a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.Fz("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.Hz("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in Dz||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in Dz&&(a["X-Goog-PageId"]=g.Fz("DELEGATED_SESSION_ID")));return a};var eD={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var AB=g.Sa("ytglobal.prefsUserPrefsPrefs_")||{};g.Qa("ytglobal.prefsUserPrefsPrefs_",AB);var xB;g.k=yna.prototype;g.k.get=function(a,b){DB(a);CB(a);a=void 0!==AB[a]?AB[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){DB(a);CB(a);if(null==b)throw Error("ExpectedNotNull");AB[a]=b.toString()};
g.k.remove=function(a){DB(a);CB(a);delete AB[a]};
g.k.save=function(){var a=!0;g.Hz("web_secure_pref_cookie_killswitch")&&(a=!1);g.rA(this.j,this.dump(),63072E3,this.u,a)};
g.k.clear=function(){g.qba(AB)};
g.k.dump=function(){var a=[],b;for(b in AB)AB.hasOwnProperty(b)&&a.push(b+"="+encodeURIComponent(String(AB[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])&&(AB[d]=c.toString())}};var Bna={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"},Voa={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},Woa={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},Dna={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.x(g.EB,Error);HB.prototype.Ki=function(a,b){return IB(a,1,b)};
HB.prototype.H3=function(a){(a=this.j.get(a))&&a()};g.Sa("yt.scheduler.instance.timerIdMap_");g.x(KB,HB);KB.prototype.Tj=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Sa("yt.scheduler.instance.cancelJob");b?b(a):g.dA(a)}};
KB.prototype.start=function(){var a=g.Sa("yt.scheduler.instance.start");a&&a()};
KB.prototype.pause=function(){var a=g.Sa("yt.scheduler.instance.pause");a&&a()};
g.Cq=g.LB();OB.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.Cj(b))}catch(f){return}else e=escape(b);g.rA(a,e,c,this.u)};
OB.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.sA(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
OB.prototype.remove=function(a){this.j&&this.j.remove(a);g.tA(a,"/",this.u)};var PB=function(){var a;return function(){a||(a=new OB("ytidb"));return a}}();var VB=[],RB,WB=!1;var H3={},Hna=(H3.AUTH_INVALID="No user identifier specified.",H3.EXPLICIT_ABORT="Transaction was explicitly aborted.",H3.IDB_NOT_SUPPORTED="IndexedDB is not supported.",H3.MISSING_INDEX="Index not created.",H3.MISSING_OBJECT_STORES="Object stores not created.",H3.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",H3.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",H3.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",H3.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",H3.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",H3.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",H3.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",H3),I3={},Ina=(I3.AUTH_INVALID="ERROR",I3.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",I3.EXPLICIT_ABORT="IGNORED",
I3.IDB_NOT_SUPPORTED="ERROR",I3.MISSING_INDEX="WARNING",I3.MISSING_OBJECT_STORES="ERROR",I3.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",I3.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",I3.QUOTA_EXCEEDED="WARNING",I3.QUOTA_MAYBE_EXCEEDED="WARNING",I3.UNKNOWN_ABORT="WARNING",I3.INCOMPATIBLE_DB_VERSION="WARNING",I3),J3={},Jna=(J3.AUTH_INVALID=!1,J3.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,J3.EXPLICIT_ABORT=!1,J3.IDB_NOT_SUPPORTED=!1,J3.MISSING_INDEX=!1,J3.MISSING_OBJECT_STORES=!1,J3.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,J3.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,J3.QUOTA_EXCEEDED=!1,J3.QUOTA_MAYBE_EXCEEDED=!0,J3.UNKNOWN_ABORT=!0,J3.INCOMPATIBLE_DB_VERSION=!1,J3);g.x(g.aC,g.EB);g.x(bC,g.aC);g.x(cC,Error);var Kna=["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.hC.all=function(a){return new g.hC(new gC(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={gx:0};f.gx<a.length;f={gx:f.gx},++f.gx)g.hC.resolve(a[f.gx]).then(function(h){return function(l){d[h.gx]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
g.hC.resolve=function(a){return new g.hC(new gC(function(b,c){a instanceof g.hC?a.then(b,c):b(a)}))};
g.hC.reject=function(a){return new g.hC(new gC(function(b,c){c(a)}))};
g.hC.prototype.then=function(a,b){var c=this,d=null!=a?a:Mna,e=null!=b?b:Lna;return new g.hC(new gC(function(f,h){"PENDING"===c.state.status?(c.j.push(function(){Nna(c,c,d,f,h)}),c.u.push(function(){Ona(c,c,e,f,h)})):"FULFILLED"===c.state.status?Nna(c,c,d,f,h):"REJECTED"===c.state.status&&Ona(c,c,e,f,h)}))};
g.hC.prototype.catch=function(a){return this.then(void 0,a)};g.k=Rna.prototype;g.k.advance=function(a){this.cursor.advance(a);return lC(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return lC(this.request)};
g.k.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return lC(this.request)};
g.k.getKey=function(){return this.cursor.key};
g.k.cH=function(){return this.cursor.primaryKey};g.k=Sna.prototype;g.k.add=function(a,b,c){return g.qC(this,[a],{mode:"readwrite",jc:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return g.qC(this,[a],{mode:"readwrite",jc:!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.qC(this,[a],{mode:"readonly",jc:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return g.qC(this,[a],{mode:"readwrite",jc:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return g.qC(this,[a],{mode:"readonly",jc:!0},function(c){return c.objectStore(a).get(b)})};
g.k.getAll=function(a,b,c){return g.qC(this,[a],{mode:"readonly",jc:!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=nC.prototype;g.k.add=function(a,b){return jC(this.j.add(a,b))};
g.k.autoIncrement=function(){return this.j.autoIncrement};
g.k.clear=function(){return jC(this.j.clear()).then(function(){})};
g.k.count=function(a){return jC(this.j.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?Wna(this,a):jC(this.j.delete(a))};
g.k.get=function(a){return jC(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?jC(this.j.getAll(a,b)):Xna(this,a,b)};
g.k.index=function(a){try{return new aoa(this.j.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new cC(a,this.j.name);throw b;}};
g.k.getName=function(){return this.j.name};
g.k.keyPath=function(){return this.j.keyPath};
tC.prototype.abort=function(){this.j.abort();this.u=!0;throw new g.aC("EXPLICIT_ABORT");};
tC.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.B.get(a);b||(b=new nC(a),this.B.set(a,b));return b};
g.k=aoa.prototype;g.k.count=function(a){return jC(this.j.count(a))};
g.k.delete=function(a){return g.GC(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.k.get=function(a){return jC(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?jC(this.j.getAll(a,b)):boa(this,a,b)};
g.k.getKey=function(a){return jC(this.j.getKey(a))};
g.k.keyPath=function(){return this.j.keyPath};
g.k.unique=function(){return this.j.unique};
g.k=coa.prototype;g.k.advance=function(a){this.cursor.advance(a);return FC(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return FC(this.request)};
g.k.delete=function(){return jC(this.cursor.delete()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.cH=function(){return this.cursor.primaryKey};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return jC(this.cursor.update(a))};IC.prototype.u=function(a,b,c){c=void 0===c?{}:c;return eoa(a,b,c)};
IC.prototype.delete=function(a){a=void 0===a?{}:a;return HC(this.name,a)};
IC.prototype.open=function(){function a(){var f,h,l,m,n,p,q,t,v,y;return g.Ha(function(A){switch(A.j){case 1:return h=null!=(f=Error().stack)?f:"",g.ya(A,2),g.z(A,c.u(c.name,c.options.version,e),4);case 4:l=A.u;for(var E=c.options,K=[],I=g.u(Object.keys(E.rr)),F=I.next();!F.done;F=I.next()){F=F.value;var S=E.rr[F],Y=void 0===S.V9?Number.MAX_VALUE:S.V9;!(l.j.version>=S.Sm)||l.j.version>=Y||l.j.objectStoreNames.contains(F)||K.push(F)}m=K;if(0===m.length){A.Ka(5);break}n=Object.keys(c.options.rr);p=
l.objectStoreNames();if(c.D<g.Iz("ytidb_reopen_db_retries",0))return c.D++,l.close(),XB(new g.aC("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),A.return(a());if(!(c.C<g.Iz("ytidb_remake_db_retries",1))){A.Ka(6);break}c.C++;return g.z(A,c.delete(),7);case 7:return XB(new g.aC("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),A.return(a());case 6:throw new bC(p,n);case 5:return A.return(l);case 2:q=
g.Aa(A);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){A.Ka(8);break}return g.z(A,c.u(c.name,void 0,Object.assign({},e,{upgrade:void 0})),9);case 9:t=A.u;v=t.j.version;if(void 0!==c.options.version&&v>c.options.version+1)throw t.close(),c.B=!1,foa(c,v);return A.return(t);case 8:throw b(),
q instanceof Error&&!g.Hz("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),eC(q,c.name,"",null!=(y=c.options.version)?y:-1);}})}
function b(){c.j===d&&(c.j=void 0)}
var c=this;if(!this.B)throw foa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,J$:b,upgrade:this.options.upgrade};return this.j=d=a()};var KC=new IC("YtIdbMeta",{rr:{databases:{Sm:1}},upgrade:function(a,b){b(1)&&g.oC(a,"databases",{keyPath:"actualName"})}});var PC,OC=new function(){}(new function(){});new g.Xk;g.x(SC,IC);SC.prototype.u=function(a,b,c){c=void 0===c?{}:c;return(this.options.shared?ooa:noa)(a,b,Object.assign({},c))};
SC.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.shared?soa:poa)(this.name,a)};var Udb={},uoa=g.TC("ytGcfConfig",{rr:(Udb.coldConfigStore={Sm:1},Udb.hotConfigStore={Sm:1},Udb),shared:!1,upgrade:function(a,b){b(1)&&(g.DC(g.oC(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.DC(g.oC(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.x(VC,g.G);VC.prototype.xa=function(){this.j.length=0;g.G.prototype.xa.call(this)};aD.prototype.Ir=function(a){this.hotHashData=a;g.Qa("yt.gcf.config.hotHashData",this.hotHashData||null)};fD.prototype.zm=function(){return{version:this.version,args:this.args}};gD.prototype.toString=function(){return this.topic};var Vdb=g.Sa("ytPubsub2Pubsub2Instance")||new g.nr;g.nr.prototype.subscribe=g.nr.prototype.subscribe;g.nr.prototype.unsubscribeByKey=g.nr.prototype.Uh;g.nr.prototype.publish=g.nr.prototype.ra;g.nr.prototype.clear=g.nr.prototype.clear;g.Qa("ytPubsub2Pubsub2Instance",Vdb);var jD=g.Sa("ytPubsub2Pubsub2SubscribedKeys")||{};g.Qa("ytPubsub2Pubsub2SubscribedKeys",jD);var kD=g.Sa("ytPubsub2Pubsub2TopicToKeys")||{};g.Qa("ytPubsub2Pubsub2TopicToKeys",kD);var Yoa=g.Sa("ytPubsub2Pubsub2IsAsync")||{};
g.Qa("ytPubsub2Pubsub2IsAsync",Yoa);g.Qa("ytPubsub2Pubsub2SkipSubKey",null);var bpa=g.Iz("max_body_size_to_compress",5E5),cpa=g.Iz("min_body_size_to_compress",500),nD=!0,pD=0,oD=0,epa=g.Iz("compression_performance_threshold_lr",250),fpa=g.Iz("slow_compressions_before_abandon_count",4);g.k=sD.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(rD(this)&&this.yg){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Ah.set(d,this.Lf).then(function(e){d.id=e;c.oh.oi()&&c.bD(d)}).catch(function(e){c.bD(d);
tD(c,e)})}else this.Hr(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(rD(this)&&this.yg){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.sb&&this.sb("nwl_skip_retry")&&(e.skipRetry=c);if(this.oh.oi()||this.sb&&this.sb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.Ha(function(m){if(1==m.j)return g.z(m,d.Ah.set(e,d.Lf).catch(function(n){tD(d,n)}),2);
f(h,l);g.xa(m)})}}this.Hr(a,b,e.skipRetry)}else this.Ah.set(e,this.Lf).catch(function(h){d.Hr(a,b,e.skipRetry);
tD(d,h)})}else this.Hr(a,b,this.sb&&this.sb("nwl_skip_retry")&&c)};
g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(rD(this)&&this.yg){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.Ah.Sy(d.id,c.Lf):e=!0;c.oh.ow&&c.sb&&c.sb("vss_network_hint")&&c.oh.ow(!0);f(h,l)};
this.Hr(d.url,d.options);this.Ah.set(d,this.Lf).then(function(h){d.id=h;e&&c.Ah.Sy(d.id,c.Lf)}).catch(function(h){tD(c,h)})}else this.Hr(a,b)};
g.k.NA=function(){var a=this;if(!rD(this))throw g.fC("throttleSend");this.j||(this.j=this.En.Ki(function(){var b;return g.Ha(function(c){if(1==c.j)return g.z(c,a.Ah.rV("NEW",a.Lf),2);if(3!=c.j)return b=c.u,b?g.z(c,a.bD(b),3):(a.NL(),c.return());a.j&&(a.j=0,a.NA());g.xa(c)})},this.JZ))};
g.k.NL=function(){this.En.Tj(this.j);this.j=0};
g.k.bD=function(a){var b=this,c,d;return g.Ha(function(e){switch(e.j){case 1:if(!rD(b))throw c=g.fC("immediateSend"),c;if(void 0===a.id){e.Ka(2);break}return g.z(e,b.Ah.d6(a.id,b.Lf),3);case 3:(d=e.u)||b.pz(Error("The request cannot be found in the database."));case 2:if(b.fJ(a,b.LY)){e.Ka(4);break}b.pz(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.Ka(5);break}return g.z(e,b.Ah.Sy(a.id,b.Lf),5);case 5:return e.return();case 4:a.skipRetry||(a=lpa(b,a));if(!a){e.Ka(0);
break}if(!a.skipRetry||void 0===a.id){e.Ka(8);break}return g.z(e,b.Ah.Sy(a.id,b.Lf),8);case 8:b.Hr(a.url,a.options,!!a.skipRetry),g.xa(e)}})};
g.k.fJ=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0};
g.k.iJ=function(){var a=this;if(!rD(this))throw g.fC("retryQueuedRequests");this.Ah.rV("QUEUED",this.Lf).then(function(b){b&&!a.fJ(b,a.FY)?a.En.Ki(function(){return g.Ha(function(c){if(1==c.j)return void 0===b.id?c.Ka(2):g.z(c,a.Ah.hQ(b.id,a.Lf),2);a.iJ();g.xa(c)})}):a.oh.oi()&&a.NA()})};var uD;var pqa={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,tvhtml5ApiTest: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,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};var Wdb={},vpa=g.TC("ServiceWorkerLogsDatabase",{rr:(Wdb.SWHealthLog={Sm:1},Wdb),shared:!0,upgrade:function(a,b){b(1)&&g.DC(g.oC(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var xD={},Bpa=0;yD.prototype.requestComplete=function(a,b){b&&(this.u=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
yD.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.u?!0:null};
yD.prototype.removeParams=function(a){return a.split("?")[0]};
yD.prototype.removeParams=yD.prototype.removeParams;yD.prototype.isEndpointCFR=yD.prototype.isEndpointCFR;yD.prototype.requestComplete=yD.prototype.requestComplete;yD.getInstance=zD;var AD;g.x(CD,g.Hd);g.k=CD.prototype;g.k.oi=function(){return this.j.oi()};
g.k.ow=function(a){this.j.j=a};
g.k.X4=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.s4=function(){this.u=!0};
g.k.Ta=function(a,b){return this.j.Ta(a,b)};
g.k.nJ=function(a){a=Aq(this.j,a);a.then(function(b){g.Hz("use_cfr_monitor")&&zD().requestComplete("generate_204",b)});
return a};
CD.prototype.sendNetworkCheckRequest=CD.prototype.nJ;CD.prototype.listen=CD.prototype.Ta;CD.prototype.enableErrorFlushing=CD.prototype.s4;CD.prototype.getWindowStatus=CD.prototype.X4;CD.prototype.networkStatusHint=CD.prototype.ow;CD.prototype.isNetworkAvailable=CD.prototype.oi;CD.getInstance=Dpa;g.x(g.DD,g.Hd);g.DD.prototype.oi=function(){var a=g.Sa("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.u)():!0};
g.DD.prototype.ow=function(a){var b=g.Sa("yt.networkStatusManager.instance.networkStatusHint").bind(this.u);b&&b(a)};
g.DD.prototype.nJ=function(a){var b=this,c;return g.Ha(function(d){c=g.Sa("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.u);return g.Hz("skip_network_check_if_cfr")&&zD().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.ow((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.oi())})):c?d.return(c(a)):d.return(!0)})};var ED;g.x(FD,sD);FD.prototype.writeThenSend=function(a,b){b||(b={});g.GB()||(this.yg=!1);sD.prototype.writeThenSend.call(this,a,b)};
FD.prototype.sendThenWrite=function(a,b,c){b||(b={});g.GB()||(this.yg=!1);sD.prototype.sendThenWrite.call(this,a,b,c)};
FD.prototype.sendAndWrite=function(a,b){b||(b={});g.GB()||(this.yg=!1);sD.prototype.sendAndWrite.call(this,a,b)};
FD.prototype.awaitInitialization=function(){return this.u.promise};var Ipa=g.Pa.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Qa("ytNetworklessLoggingInitializationOptions",Ipa);g.HD.prototype.isReady=function(){!this.config_&&Loa()&&(this.config_=g.cD());return!!this.config_};var Xdb,KD,MD;Xdb=g.Pa.ytPubsubPubsubInstance||new g.nr;KD=g.Pa.ytPubsubPubsubSubscribedKeys||{};MD=g.Pa.ytPubsubPubsubTopicToKeys||{};g.LD=g.Pa.ytPubsubPubsubIsSynchronous||{};g.nr.prototype.subscribe=g.nr.prototype.subscribe;g.nr.prototype.unsubscribeByKey=g.nr.prototype.Uh;g.nr.prototype.publish=g.nr.prototype.ra;g.nr.prototype.clear=g.nr.prototype.clear;g.Qa("ytPubsubPubsubInstance",Xdb);g.Qa("ytPubsubPubsubTopicToKeys",MD);g.Qa("ytPubsubPubsubIsSynchronous",g.LD);
g.Qa("ytPubsubPubsubSubscribedKeys",KD);var Mpa=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,Npa=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,Qpa={};VD.prototype.get=function(){return this.value};
g.x(WD,VD);WD.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.x(XD,VD);XD.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.x(YD,VD);YD.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.x(ZD,VD);ZD.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.x($D,VD);$D.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.x(aE,VD);aE.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.x(bE,VD);bE.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.x(cE,VD);cE.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.x(dE,VD);dE.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.x(eE,VD);eE.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.x(fE,VD);fE.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.x(gE,VD);gE.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.x(hE,VD);hE.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.x(iE,VD);iE.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.x(jE,VD);jE.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.x(kE,VD);kE.prototype.getType=function(){return"metadata_type_ad_video_url"};
g.x(lE,VD);lE.prototype.getType=function(){return"metadata_type_content_cpn"};
g.x(mE,VD);mE.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.x(nE,VD);nE.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.x(oE,VD);oE.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.x(pE,VD);pE.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.x(qE,VD);qE.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.x(rE,VD);rE.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.x(sE,VD);sE.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.x(tE,VD);tE.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.x(uE,VD);uE.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.x(vE,VD);vE.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.x(wE,VD);wE.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.x(xE,VD);xE.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.x(yE,VD);yE.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.x(zE,VD);zE.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.x(AE,VD);AE.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.x(BE,VD);BE.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.x(CE,VD);CE.prototype.getType=function(){return"metadata_type_cue_point"};
g.x(DE,VD);DE.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.x(EE,VD);EE.prototype.getType=function(){return"metadata_type_player_vars"};
g.x(FE,VD);FE.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.x(GE,VD);GE.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.x(HE,VD);HE.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.x(IE,VD);IE.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.x(JE,VD);JE.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.x(KE,VD);KE.prototype.getType=function(){return"metadata_type_dai"};
g.x(LE,VD);LE.prototype.getType=function(){return"metadata_type_ad_intro"};
g.x(ME,VD);ME.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.x(NE,VD);NE.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.x(OE,VD);OE.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.x(PE,VD);PE.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.x(QE,VD);QE.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.x(RE,VD);RE.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.x(SE,VD);SE.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.x(TE,VD);TE.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.x(UE,VD);UE.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.x(VE,VD);VE.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.x(WE,VD);WE.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.x(XE,VD);XE.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.x(YE,VD);YE.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.x(ZE,VD);ZE.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.x($E,VD);$E.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};
g.x(aF,VD);aF.prototype.getType=function(){return"metadata_type_eligible_for_ssap"};
g.x(bF,VD);bF.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};g.x(cF,g.G);var Y3a=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.x(iF,ub);var fra=[{wO:function(a){return"Cannot read property '"+a.key+"'"},
FI:{Error:[{Gj:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Gj:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Gj:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Gj:/\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"]},{Gj:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Gj:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Gj:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{wO:function(a){return"Cannot call '"+a.key+"'"},
FI:{TypeError:[{Gj:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Gj:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Gj:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Gj:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Gj:/\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"]},
{Gj:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{wO:function(a){return a.key+" is not defined"},
FI:{ReferenceError:[{Gj:/(.*) is not defined/,groups:["key"]},{Gj:/Can't find variable: (.*)/,groups:["key"]}]}}];var cqa={lr:[],Gs:[{callback:$pa,weight:500}]};var kF;var uG=new g.nr;var gqa=new Set([174,173,175]),rF={};var wF=Symbol("injectionDeps");tF.prototype.toString=function(){return"InjectionToken("+this.name+")"};
hqa.prototype.resolve=function(a){return a instanceof uF?xF(this,a.key,[],!0):xF(this,a,[])};var yF;var AF=window;var EF=g.Hz("web_enable_lifecycle_monitoring")&&0!==BF();kqa.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.QI||this.scheduler.Tj(b.jobId),b.QI=!0;this.u.resolve()};g.k=FF.prototype;g.k.install=function(a){this.plugins.push(a);return this};
g.k.uninstall=function(){var a=this;g.Ia.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;EF&&jqa(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.u&&(lqa(this.u),this.u=void 0);nqa(this,a,b);this.state=a;EF&&CF(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]});
d(mqa(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);};
g.k.d$=function(a){var b=g.Ia.apply(1,arguments);g.LB();for(var c=g.u(a),d=c.next(),e={};!d.done;e={ix:e.ix},d=c.next())e.ix=d.value,Fna(function(f){return function(){HF(f.ix.name);f.ix.callback.apply(f.ix,g.qa(b));IF(f.ix.name)}}(e))};
g.k.c$=function(a){var b=g.Ia.apply(1,arguments),c,d,e,f;return g.Ha(function(h){1==h.j&&(g.LB(),c=g.u(a),d=c.next(),e={});if(3!=h.j){if(d.done)return h.Ka(0);e.Lu=d.value;e.cB=void 0;f=function(l){return function(){HF(l.Lu.name);var m=l.Lu.callback.apply(l.Lu,g.qa(b));"function"===typeof(null==m?void 0:m.then)?l.cB=m.then(function(){IF(l.Lu.name)}):IF(l.Lu.name)}}(e);
Fna(f);return e.cB?g.z(h,e.cB,3):h.Ka(3)}e={Lu:e.Lu,cB:e.cB};d=c.next();return h.Ka(2)})};
g.k.hZ=function(a){var b=g.Ia.apply(1,arguments),c=this,d=a.map(function(e){return{bO:function(){HF(e.name);e.callback.apply(e,g.qa(b));IF(e.name)},
priority:GF(c,e)}});
d.length&&(this.u=new kqa(d))};
g.ea.Object.defineProperties(FF.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var KF;g.x(JF,FF);JF.prototype.D=function(a,b){var c=this;this.j=g.JB(0,function(){"application_navigating"===c.currentState&&c.transition("none")},5E3);
a(null==b?void 0:b.event)};
JF.prototype.J=function(a,b){this.j&&(g.Cq.Tj(this.j),this.j=null);a(null==b?void 0:b.event)};LF.prototype.storePayload=function(a,b){a=MF(a);this.store[a]?this.store[a].push(b):(this.u={},this.store[a]=[b]);this.j++;return a};
LF.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=OF(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.qa(this.store[b[d]])),delete this.store[b[d]]):c.push.apply(c,g.qa(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.qa(this.smartExtractMatchingEntries(a))));
return c};
LF.prototype.extractMatchingEntries=function(a){a=OF(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,g.qa(this.store[a[c]])),delete this.store[a[c]]);this.j-=b.length;return b};
LF.prototype.getSequenceCount=function(a){a=OF(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};
LF.prototype.getSequenceCount=LF.prototype.getSequenceCount;LF.prototype.extractMatchingEntries=LF.prototype.extractMatchingEntries;LF.prototype.smartExtractMatchingEntries=LF.prototype.smartExtractMatchingEntries;LF.prototype.storePayload=LF.prototype.storePayload;var Bqa=g.Iz("initial_gel_batch_timeout",2E3),Aqa=g.Iz("gel_queue_timeout_max_ms",6E4),Kqa=Math.pow(2,16)-1,VF=void 0,Oqa=new PF,Nqa=new PF,zqa=new PF,yqa=new PF,XF,eG=!0,cG=g.Pa.ytLoggingTransportTokensToCttTargetIds_||{};g.Qa("ytLoggingTransportTokensToCttTargetIds_",cG);var bG=g.Pa.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Qa("ytLoggingTransportTokensToJspbCttTargetIds_",bG);var TF={};var hG=g.Pa.ytLoggingGelSequenceIdObj_||{};g.Qa("ytLoggingGelSequenceIdObj_",hG);var jG,kG,Tqa,lG=g.HD,Sqa=!1,nG=[];var Xqa=g.Pa.ytLoggingGelSequenceIdObj_||{};g.Qa("ytLoggingGelSequenceIdObj_",Xqa);var gra=new Set,dra=0,jra=0,ira=0,era=[],lra=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var nra=!1;g.x(xG,g.G);xG.prototype.lk=function(a,b,c,d,e,f,h){var l=this,m=this.Wa.get().Nf(1);m.ov?QQ(this.La.get()):(uBa(this.Sc.get(),d),eF(this.Tb.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return Xpa(l.ze.get(),d,e,f,a,b,h,m,"")}),D$a(this.qL))};
xG.prototype.Kn=function(){};var yG=Date.now().toString();var K3={},MG=(K3.AD_MARKER="ytp-ad-progress",K3.CHAPTER_MARKER="ytp-chapter-marker",K3.TIME_MARKER="ytp-time-marker",K3);var a3a=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/)"),rra=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/)"),
b3a=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),yra=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)|$))"),
wra=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)|$))"),tra=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/)"),
c3a=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),ura=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)"),sra=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/.*$)"),
Swa=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)"),
Rwa=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)"),
Ydb=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.NG.prototype.getId=function(){return this.id};
g.NG.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+Cra(this.start)+", "+Cra(this.end)+"]"};
g.NG.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 Bra=1;g.NG.prototype.getId=g.NG.prototype.getId;g.jb(g.SG,g.G);g.SG.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.Pi.subscribe(a,b,c)};
g.SG.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.Pi.unsubscribe(a,b,c)};
g.SG.prototype.Uh=function(a){return this.isDisposed()?!1:this.Pi.Uh(a)};
g.SG.prototype.ra=function(a,b){return this.isDisposed()?!1:this.Pi.ra.apply(this.Pi,arguments)};var L3={},Kra=(L3.auto_search="LATENCY_ACTION_AUTO_SEARCH",L3.ad_to_ad="LATENCY_ACTION_AD_TO_AD",L3.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",L3["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",L3.app_startup="LATENCY_ACTION_APP_STARTUP",L3["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",L3["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",L3["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",L3["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",
L3["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",L3["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",L3["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",L3["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",L3["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",L3["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",L3["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",L3["asset.ownership"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",L3["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",L3["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",L3["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",L3["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",L3["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",L3["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",L3["asset_group.claimed_videos"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",L3["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",L3["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",L3.browse="LATENCY_ACTION_BROWSE",L3.cast_splash="LATENCY_ACTION_CAST_SPLASH",L3.channels="LATENCY_ACTION_CHANNELS",L3.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",L3["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",L3["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",
L3["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",L3["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",L3["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",L3["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",L3["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",L3["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",L3["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",L3["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",
L3["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",L3["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",L3["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",L3.chips="LATENCY_ACTION_CHIPS",L3["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",L3["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",L3["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",L3.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
L3.embed="LATENCY_ACTION_EMBED",L3.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",L3.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",L3.explore="LATENCY_ACTION_EXPLORE",L3.home="LATENCY_ACTION_HOME",L3.library="LATENCY_ACTION_LIBRARY",L3.live="LATENCY_ACTION_LIVE",L3.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",L3.mini_app="LATENCY_ACTION_MINI_APP_PLAY",L3.onboarding="LATENCY_ACTION_ONBOARDING",L3.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",
L3["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",L3["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",L3["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",L3["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",L3["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",L3["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",L3["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",L3["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",L3["owner.channels"]=
"LATENCY_ACTION_CREATOR_CMS_CHANNELS",L3["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",L3["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",L3["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",L3["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",L3["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",L3["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",L3["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",
L3["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",L3["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",L3["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",L3["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",L3["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",L3.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",L3.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",L3.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",
L3.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",L3["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",L3["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",L3["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",L3.prebuffer="LATENCY_ACTION_PREBUFFER",L3.prefetch="LATENCY_ACTION_PREFETCH",L3.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",L3.profile_switcher="LATENCY_ACTION_LOGIN",L3.reel_watch="LATENCY_ACTION_REEL_WATCH",L3.results="LATENCY_ACTION_RESULTS",L3["promotion.edit"]=
"LATENCY_ACTION_CREATOR_PROMOTION_EDIT",L3.search_ui="LATENCY_ACTION_SEARCH_UI",L3.search_suggest="LATENCY_ACTION_SUGGEST",L3.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",L3.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",L3.seek="LATENCY_ACTION_PLAYER_SEEK",L3.settings="LATENCY_ACTION_SETTINGS",L3.store="LATENCY_ACTION_STORE",L3.tenx="LATENCY_ACTION_TENX",L3.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",L3.watch="LATENCY_ACTION_WATCH",L3.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",L3["watch,watch7"]=
"LATENCY_ACTION_WATCH",L3["watch,watch7_html5"]="LATENCY_ACTION_WATCH",L3["watch,watch7ad"]="LATENCY_ACTION_WATCH",L3["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",L3.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",L3.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",L3["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",L3["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",L3["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",L3["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",L3["video.edit"]=
"LATENCY_ACTION_CREATOR_VIDEO_EDIT",L3["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",L3["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",L3["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",L3["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",L3["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",L3["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",L3["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",
L3["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",L3.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",L3.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",L3.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",L3.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",L3.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",L3),M3={},Lra=(M3.ad_allowed="adTypesAllowed",M3.yt_abt="adBreakType",M3.ad_cpn="adClientPlaybackNonce",M3.ad_docid="adVideoId",
M3.yt_ad_an="adNetworks",M3.ad_at="adType",M3.aida="appInstallDataAgeMs",M3.browse_id="browseId",M3.p="httpProtocol",M3.t="transportProtocol",M3.cpn="clientPlaybackNonce",M3.ccs="creatorInfo.creatorCanaryState",M3.ctop="creatorInfo.topEntityType",M3.csn="clientScreenNonce",M3.docid="videoId",M3.GetHome_rid="requestIds",M3.GetSearch_rid="requestIds",M3.GetPlayer_rid="requestIds",M3.GetWatchNext_rid="requestIds",M3.GetBrowse_rid="requestIds",M3.GetLibrary_rid="requestIds",M3.is_continuation="isContinuation",
M3.is_nav="isNavigation",M3.b_p="kabukiInfo.browseParams",M3.is_prefetch="kabukiInfo.isPrefetch",M3.is_secondary_nav="kabukiInfo.isSecondaryNav",M3.nav_type="kabukiInfo.navigationType",M3.prev_browse_id="kabukiInfo.prevBrowseId",M3.query_source="kabukiInfo.querySource",M3.voz_type="kabukiInfo.vozType",M3.yt_lt="loadType",M3.mver="creatorInfo.measurementVersion",M3.yt_ad="isMonetized",M3.nr="webInfo.navigationReason",M3.nrsu="navigationRequestedSameUrl",M3.pnt="performanceNavigationTiming",M3.prt=
"playbackRequiresTap",M3.plt="playerInfo.playbackType",M3.pis="playerInfo.playerInitializedState",M3.paused="playerInfo.isPausedOnLoad",M3.yt_pt="playerType",M3.fmt="playerInfo.itag",M3.yt_pl="watchInfo.isPlaylist",M3.yt_pre="playerInfo.preloadType",M3.yt_ad_pr="prerollAllowed",M3.pa="previousAction",M3.yt_red="isRedSubscriber",M3.rce="mwebInfo.responseContentEncoding",M3.rc="resourceInfo.resourceCache",M3.scrh="screenHeight",M3.scrw="screenWidth",M3.st="serverTimeMs",M3.ssdm="shellStartupDurationMs",
M3.br_trs="tvInfo.bedrockTriggerState",M3.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",M3.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",M3.label="tvInfo.label",M3.is_mdx="tvInfo.isMdx",M3.preloaded="tvInfo.isPreloaded",M3.aac_type="tvInfo.authAccessCredentialType",M3.upg_player_vis="playerInfo.visibilityState",M3.query="unpluggedInfo.query",M3.upg_chip_ids_string="unpluggedInfo.upgChipIdsString",M3.yt_vst="videoStreamType",M3.vph="viewportHeight",M3.vpw="viewportWidth",M3.yt_vis=
"isVisible",M3.rcl="mwebInfo.responseContentLength",M3.GetSettings_rid="requestIds",M3.GetTrending_rid="requestIds",M3.GetMusicSearchSuggestions_rid="requestIds",M3.REQUEST_ID="requestIds",M3),Mra="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(" "),
N3={},Nra=(N3.ccs="CANARY_STATE_",N3.mver="MEASUREMENT_VERSION_",N3.pis="PLAYER_INITIALIZED_STATE_",N3.yt_pt="LATENCY_PLAYER_",N3.pa="LATENCY_ACTION_",N3.ctop="TOP_ENTITY_TYPE_",N3.yt_vst="VIDEO_STREAM_TYPE_",N3),Ora="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 R={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_ELEMENTS_PERFORMANCE:70,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_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_THUMBNAIL_LOAD:42,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_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_STARTUP:106,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};R[R.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";R[R.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";R[R.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";
R[R.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";R[R.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";R[R.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";R[R.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";R[R.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";R[R.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";R[R.LATENCY_ACTION_MINI_APP_PLAY]="LATENCY_ACTION_MINI_APP_PLAY";
R[R.LATENCY_ACTION_DMA_CONSENT_FLOW]="LATENCY_ACTION_DMA_CONSENT_FLOW";R[R.LATENCY_ACTION_GEL_FETCH]="LATENCY_ACTION_GEL_FETCH";R[R.LATENCY_ACTION_GEL_JSPB_SERIALIZE]="LATENCY_ACTION_GEL_JSPB_SERIALIZE";R[R.LATENCY_ACTION_GEL_COMPRESSION]="LATENCY_ACTION_GEL_COMPRESSION";R[R.LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE]="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE";R[R.LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC]="LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC";R[R.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION";
R[R.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";R[R.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";R[R.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";R[R.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC";R[R.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";
R[R.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";R[R.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";R[R.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";R[R.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";R[R.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC";R[R.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";
R[R.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";R[R.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";R[R.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";R[R.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";R[R.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC";R[R.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";
R[R.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";R[R.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";R[R.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";R[R.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";R[R.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";R[R.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW";R[R.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";
R[R.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";R[R.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";R[R.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";R[R.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";R[R.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";R[R.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";R[R.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";
R[R.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";R[R.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";R[R.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN";R[R.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";R[R.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";
R[R.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";R[R.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";R[R.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";R[R.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";R[R.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";R[R.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";R[R.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";
R[R.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";R[R.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";R[R.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";R[R.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";R[R.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";R[R.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";
R[R.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";R[R.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";R[R.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";R[R.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";R[R.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";R[R.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";
R[R.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";R[R.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";R[R.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";R[R.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";R[R.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";R[R.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";R[R.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";
R[R.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";R[R.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";R[R.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";R[R.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";R[R.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";R[R.LATENCY_ACTION_MDX_CONNECT_TO_SESSION]="LATENCY_ACTION_MDX_CONNECT_TO_SESSION";R[R.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";
R[R.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";R[R.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";R[R.LATENCY_ACTION_MOBILE_LIVE_NAV_MDE]="LATENCY_ACTION_MOBILE_LIVE_NAV_MDE";R[R.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";R[R.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";R[R.LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD]="LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD";R[R.LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET]="LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET";
R[R.LATENCY_ACTION_SHORTS_LOAD_PROJECT]="LATENCY_ACTION_SHORTS_LOAD_PROJECT";R[R.LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING]="LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING";R[R.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";R[R.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";R[R.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION";R[R.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";
R[R.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";R[R.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";R[R.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";R[R.LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD]="LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD";R[R.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";
R[R.LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING]="LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING";R[R.LATENCY_ACTION_SHORTS_RECOMPOSITION]="LATENCY_ACTION_SHORTS_RECOMPOSITION";R[R.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";R[R.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";R[R.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";R[R.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";R[R.LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT";
R[R.LATENCY_ACTION_CREATION_MODES_MODE_SWITCH]="LATENCY_ACTION_CREATION_MODES_MODE_SWITCH";R[R.LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT";R[R.LATENCY_ACTION_SWITCH_CAMERA]="LATENCY_ACTION_SWITCH_CAMERA";R[R.LATENCY_ACTION_OPEN_CAMERA]="LATENCY_ACTION_OPEN_CAMERA";R[R.LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE]="LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE";R[R.LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME]="LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME";
R[R.LATENCY_ACTION_MEDIA_ENGINE_EXPORT]="LATENCY_ACTION_MEDIA_ENGINE_EXPORT";R[R.LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA]="LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA";R[R.LATENCY_ACTION_PRODUCER_EXPORT_PROJECT]="LATENCY_ACTION_PRODUCER_EXPORT_PROJECT";R[R.LATENCY_ACTION_PRODUCER_EDITOR]="LATENCY_ACTION_PRODUCER_EDITOR";R[R.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";R[R.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";
R[R.LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL";R[R.LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL";R[R.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";R[R.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";R[R.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";R[R.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";
R[R.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE";R[R.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";R[R.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";R[R.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";R[R.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";R[R.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";R[R.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";R[R.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";
R[R.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";R[R.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";R[R.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";R[R.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";R[R.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";R[R.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";
R[R.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";R[R.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";R[R.LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT";R[R.LATENCY_ACTION_CREATOR_VIDEO_POLICY]="LATENCY_ACTION_CREATOR_VIDEO_POLICY";R[R.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";R[R.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";
R[R.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";R[R.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";R[R.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";R[R.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";R[R.LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT";R[R.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";
R[R.LATENCY_ACTION_CREATOR_VIDEO_CLAIMS]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS";R[R.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";R[R.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";R[R.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST";R[R.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT";R[R.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";
R[R.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";R[R.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";R[R.LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST";R[R.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";R[R.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";R[R.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";
R[R.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";R[R.LATENCY_ACTION_CREATOR_CMS_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_VIDEOS";R[R.LATENCY_ACTION_CREATOR_CMS_REPORTS]="LATENCY_ACTION_CREATOR_CMS_REPORTS";R[R.LATENCY_ACTION_CREATOR_CMS_RELEASES]="LATENCY_ACTION_CREATOR_CMS_RELEASES";R[R.LATENCY_ACTION_CREATOR_CMS_POLICIES]="LATENCY_ACTION_CREATOR_CMS_POLICIES";R[R.LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC";
R[R.LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING";R[R.LATENCY_ACTION_CREATOR_CMS_LICENSES]="LATENCY_ACTION_CREATOR_CMS_LICENSES";R[R.LATENCY_ACTION_CREATOR_CMS_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ISSUES";R[R.LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES";R[R.LATENCY_ACTION_CREATOR_CMS_DASHBOARD]="LATENCY_ACTION_CREATOR_CMS_DASHBOARD";R[R.LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY";
R[R.LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS";R[R.LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES";R[R.LATENCY_ACTION_CREATOR_CMS_CHANNELS]="LATENCY_ACTION_CREATOR_CMS_CHANNELS";R[R.LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS";R[R.LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS";
R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES";
R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS";
R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION";
R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS";R[R.LATENCY_ACTION_CREATOR_CMS_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSETS";R[R.LATENCY_ACTION_CREATOR_CMS_ART_TRACKS]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS";R[R.LATENCY_ACTION_CREATOR_CMS_ANALYTICS]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS";R[R.LATENCY_ACTION_CREATOR_CMS_ALLOWLIST]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST";R[R.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";
R[R.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";R[R.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";R[R.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";R[R.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";R[R.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";
R[R.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";R[R.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";R[R.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";R[R.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";R[R.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";R[R.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";
R[R.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";R[R.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";R[R.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";R[R.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";R[R.LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS]="LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS";R[R.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";
R[R.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";R[R.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";R[R.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";R[R.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";R[R.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";R[R.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";R[R.LATENCY_ACTION_PLAYLIST_AGGREGATION]="LATENCY_ACTION_PLAYLIST_AGGREGATION";
R[R.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";R[R.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";R[R.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";R[R.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";R[R.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";R[R.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";R[R.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";R[R.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";
R[R.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";R[R.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";R[R.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";R[R.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";R[R.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";R[R.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";R[R.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";R[R.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";
R[R.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";R[R.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";R[R.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";R[R.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";R[R.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";R[R.LATENCY_ACTION_INLINE_TO_WATCH]="LATENCY_ACTION_INLINE_TO_WATCH";R[R.LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH]="LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH";R[R.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";
R[R.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";R[R.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";R[R.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";R[R.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";R[R.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";R[R.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";R[R.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";R[R.LATENCY_ACTION_USER_ACTION]="LATENCY_ACTION_USER_ACTION";R[R.LATENCY_ACTION_INFRASTRUCTURE]="LATENCY_ACTION_INFRASTRUCTURE";
R[R.LATENCY_ACTION_PAGE_NAVIGATION]="LATENCY_ACTION_PAGE_NAVIGATION";R[R.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var xH={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};xH[xH.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";xH[xH.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";xH[xH.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";
var yH={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};yH[yH.CONN_INVALID]="CONN_INVALID";yH[yH.CONN_WIRED]="CONN_WIRED";yH[yH.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";yH[yH.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";yH[yH.CONN_WIFI_METERED]="CONN_WIFI_METERED";
yH[yH.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";yH[yH.CONN_DISCO]="CONN_DISCO";yH[yH.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";yH[yH.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";yH[yH.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";yH[yH.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";yH[yH.CONN_WIFI]="CONN_WIFI";yH[yH.CONN_NONE]="CONN_NONE";yH[yH.CONN_UNKNOWN]="CONN_UNKNOWN";yH[yH.CONN_DEFAULT]="CONN_DEFAULT";
var zH={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};zH[zH.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
zH[zH.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";zH[zH.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";zH[zH.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";zH[zH.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";zH[zH.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";zH[zH.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
zH[zH.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";zH[zH.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";zH[zH.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";zH[zH.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";zH[zH.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";zH[zH.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";zH[zH.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";zH[zH.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
zH[zH.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";zH[zH.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";zH[zH.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";zH[zH.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";zH[zH.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";zH[zH.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";zH[zH.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";zH[zH.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
zH[zH.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";zH[zH.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";zH[zH.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";zH[zH.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var AH={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};
AH[AH.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";AH[AH.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";AH[AH.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";AH[AH.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";AH[AH.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";AH[AH.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";AH[AH.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";AH[AH.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var BH={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};BH[BH.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";BH[BH.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";BH[BH.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";BH[BH.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var CH={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
CH[CH.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";CH[CH.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var DH={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};DH[DH.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";DH[DH.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";DH[DH.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
DH[DH.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";DH[DH.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";DH[DH.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var EH={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};EH[EH.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";EH[EH.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";EH[EH.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";EH[EH.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var FH={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};FH[FH.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";FH[FH.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";FH[FH.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var GH={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};GH[GH.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
GH[GH.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";GH[GH.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var esa="actionVisualElement spinnerInfo cacheAttempts resourceInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo 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.x(gH,fD);var qsa=new gD("aft-recorded",gH);var jH=g.Pa.ytLoggingLatencyUsageStats_||{};g.Qa("ytLoggingLatencyUsageStats_",jH);hH.prototype.tick=function(a,b,c,d){kH(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.Hz("web_csi_via_jspb")?(d=new fz,O(d,1,a),O(d,2,b),a=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz,pi(a,fz,5,qG,d),pG("latencyActionTicked",a,c)):g.UB("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
hH.prototype.info=function(a,b,c){var d=Object.keys(a).join("");kH(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.UB("latencyActionInfo",a,{cttAuthInfo:c}))};
hH.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));kH(this,"info_"+d+"_"+b)||(O(a,2,b),b={cttAuthInfo:c},c=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz,pi(c,dz,7,qG,a),pG("latencyActionInfo",c,b))};
hH.prototype.span=function(a,b,c){var d=Object.keys(a).join("");kH(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.UB("latencyActionSpan",a,{cttAuthInfo:c}))};var O3=window,lH=O3.performance||O3.mozPerformance||O3.msPerformance||O3.webkitPerformance||new Qra;var P3=g.Pa.ytLoggingDocDocumentNonce_;P3||(P3=g.AG(16),g.Qa("ytLoggingDocDocumentNonce_",P3));var bsa=P3;var Zra={T_:0,Pna:1,Joa:2,RK:3,Vqa:4,E9a:5,eOa:6,CXa:7,XVa:8,XWa: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 Sra=1;g.k=oH.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 px;void 0!==this.j.trackingParams?a.gg(this.j.trackingParams):(void 0!==this.j.veType&&wi(a,2,this.j.veType),void 0!==this.j.veCounter&&wi(a,6,this.j.veCounter),void 0!==this.j.elementIndex&&wi(a,3,this.j.elementIndex),this.j.isCounterfactual&&vi(a,5,!0));if(void 0!==this.j.dataElement){var b=this.j.dataElement.getAsJspb();oi(a,px,7,b)}void 0!==this.j.youtubeData&&oi(a,cu,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.Qa("yt_logging_screen.getRootVeType",Wra);g.Qa("yt_logging_screen.getCurrentCsn",g.sH);g.Qa("yt_logging_screen.getCttAuthInfo",tH);g.Qa("yt_logging_screen.setCurrentScreen",csa);var psa=!1,JH={'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"},ssa=(0,g.bb)(lH.clearResourceTimings||lH.webkitClearResourceTimings||lH.mozClearResourceTimings||lH.msClearResourceTimings||lH.oClearResourceTimings||g.Ld,lH);var Zdb=window;Zdb.ytcsi&&(Zdb.ytcsi.info=QH,Zdb.ytcsi.tick=RH);var $db;var aeb=g.nc(),beb=aeb.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!beb||2>beb.length)$db=void 0;else{var ceb=aeb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);$db=ceb&&6===ceb.length?Number(ceb[5].replace("_",".")):0}var iO=$db,nU=0<=iO;var Lya={Wqa:1,Zra:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var RO=Asa()?!0:"function"!==typeof window.fetch||!window.ReadableStream||!window.AbortController||g.NC||g.HL?!1:!0;var Q3={},ava=(Q3.FAIRPLAY="fairplay",Q3.PLAYREADY="playready",Q3.WIDEVINE="widevine",Q3.CLEARKEY=null,Q3.FLASHACCESS=null,Q3.UNKNOWN=null,Q3.WIDEVINE_CLASSIC=null,Q3);var deb=["h","H"],eeb=["9","("],feb=["9h","(h"],geb=["8","*"],heb=["a","A"],ieb=["o","O"],jeb=["m","M"],keb=["mac3","MAC3"],leb=["meac3","MEAC3"],R3={},Dva=(R3.h=deb,R3.H=deb,R3["9"]=eeb,R3["("]=eeb,R3["9h"]=feb,R3["(h"]=feb,R3["8"]=geb,R3["*"]=geb,R3.a=heb,R3.A=heb,R3.o=ieb,R3.O=ieb,R3.m=jeb,R3.M=jeb,R3.mac3=keb,R3.MAC3=keb,R3.meac3=leb,R3.MEAC3=leb,R3),meb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),Msa=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));g.UH.prototype.getLanguageInfo=function(){return this.Nc};
g.UH.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");1<a.length&&(this.xtags=a[1])}return this.xtags};
g.UH.prototype.toString=function(){return this.Nc.name};
g.UH.prototype.getLanguageInfo=g.UH.prototype.getLanguageInfo;var S3,ZH;S3={};g.WH=(S3.auto=0,S3.tiny=144,S3.light=144,S3.small=240,S3.medium=360,S3.large=480,S3.hd720=720,S3.hd1080=1080,S3.hd1440=1440,S3.hd2160=2160,S3.hd2880=2880,S3.highres=4320,S3);ZH={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};VH.prototype.equals=function(a){return this.u===a.u&&this.j===a.j&&this.B===a.B&&this.reason===a.reason};
VH.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.j};
VH.prototype.compose=function(a){if(a.B&&YH(a))return dO;if(a.B||YH(this))return a;if(this.B||YH(a))return this;var b=this.u&&a.u?Math.max(this.u,a.u):this.u||a.u,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);return b===this.u&&c===this.j?this:new VH(b,c,!1,c===this.j?this.reason:a.reason)};
VH.prototype.C=function(a){return a.video?Csa(this,a.video.quality):!1};
var neb=g.XH("auto","hd1080",!1,"l"),f_a=g.XH("auto","large",!1,"l"),dO=g.XH("auto","auto",!1,"p");aI.prototype.Us=function(a){a=a||dO;for(var b=g.cp(this.videoInfos,function(h){return a.C(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].video;
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
aI.prototype.zC=function(a){a=a||dO;return g.cp(this.videoInfos,function(b){return a.C(b)})};
aI.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var Ssa=new Set(["356"]);g.x(bI,g.G);bI.prototype.xa=function(){g.G.prototype.xa.call(this)};var oI={vQ:function(a,b){a.splice(0,b)},
k4:function(a){a.reverse()},
yV:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}};g.pI.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.pI.prototype.get=function(a){qI(this);return this.j[a]||null};
g.pI.prototype.kf=function(){this.url||(this.url=Zsa(this));return this.url};
g.pI.prototype.clone=function(){var a=new g.pI(this.u,this.D);a.B=this.B;a.path=this.path;a.C=this.C;a.j=g.md(this.j);a.url=this.url;return a};
var Ysa=[gma];g.k=g.wI.prototype;g.k.BK=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.bp(a))?a.duration:0};
g.k.gV=function(a){return this.getDuration(a)};
g.k.cn=function(){return this.segments.length?this.segments[0].Pa:-1};
g.k.uf=function(a){return(a=this.bp(a))?a.ingestionTime:NaN};
g.k.Gd=function(){return this.segments.length?this.segments[this.segments.length-1].Pa:-1};
g.k.VN=function(a){return this.Gd()===a&&!this.u&&0<=a};
g.k.jt=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.je=function(){return this.segments[0].startTime};
g.k.lz=function(){return this.segments.length};
g.k.Dq=function(){return 0};
g.k.Lh=function(a){return(a=this.Zy(a))?a.Pa:-1};
g.k.dH=function(a){return(a=this.bp(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.bp(a))?a.startTime:0};
g.k.TM=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.fH=aa(3);g.k.isLoaded=function(){return 0<this.segments.length};
g.k.bp=function(a){if(this.j&&this.j.Pa===a)return this.j;a=g.Sb(this.segments,new vI(a,0,0,0,""),function(b,c){return b.Pa-c.Pa});
return this.j=0<=a?this.segments[a]:null};
g.k.Zy=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.Lb(a),this.segments.length){var b=this.segments.length?g.zb(this.segments).endTime:0,c=a[0].Pa-this.Gd();1<c&&taa(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.nV=function(){return 0};xI.prototype.append=function(a){if(bta(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);AI(this)}else this.j.push(a);this.totalLength+=a.length};
xI.prototype.split=function(a){for(var b=new xI,c=new xI,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{aD:b,yl:c}};
xI.prototype.isFocused=function(a){return a>=this.B&&a<this.B+this.j[this.u].length};
xI.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.B&&AI(this);this.B+this.j[this.u].length<=a&&this.u<this.j.length;)this.B+=this.j[this.u].length,this.u+=1;this.C=void 0}};var HI,FI,JI;g.vY=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}();
HI=Array(1024);FI=window.TextDecoder?new TextDecoder:void 0;JI=window.TextEncoder?new TextEncoder:void 0;LI.prototype.skip=function(a){this.j+=a};var T3={},oeb=(T3.predictStart="predictStart",T3.start="start",T3["continue"]="continue",T3.stop="stop",T3),jta={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};UI.prototype.YC=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"])};
UI.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};var U3={},Yua=(U3.STEREO_LAYOUT_UNKNOWN=0,U3.STEREO_LAYOUT_LEFT_RIGHT=1,U3.STEREO_LAYOUT_TOP_BOTTOM=2,U3);gJ.prototype.Cn=function(){var a=this.pos;this.pos=0;var b=!1;try{kJ(this,440786851)&&(this.pos=0,kJ(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.tG(c);else throw c;}this.pos=a;return b};uJ.prototype.set=function(a,b){this.lj.get(a);this.j[a]=b;this.url=""};
uJ.prototype.get=function(a){return this.j[a]||this.lj.get(a)};
uJ.prototype.kf=function(){this.url||(this.url=Eta(this));return this.url};wJ.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};AJ.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
AJ.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.Pa!==this.Pa||a.dc!==this.dc||a.u!==this.u)};
AJ.prototype.lh=function(){return!!this.j.info.video};
AJ.prototype.Td=function(){var a=GJ(this),b="";g.Wc(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};IJ.prototype.fp=function(){return this.u?this.u.kf():""};
IJ.prototype.qt=function(){return this.J};
IJ.prototype.Sk=function(){return CJ(this.gb[0])};
IJ.prototype.Xk=function(a,b){this.j.Xk(a,b);if(this.u){this.u=vJ(a,b);b=g.u(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.u.set(c.value,null)}this.requestId=a.get("req_id")};
var Rta=!1;PJ.prototype.Xk=function(a,b){a.lj===this.j&&(this.j=vJ(a,b));a.lj===this.C&&(this.C=vJ(a,b))};fK.prototype.zg=function(){return!!this.j&&this.index.isLoaded()};
fK.prototype.Az=function(){return!1};
fK.prototype.BS=function(a){return[a]};
fK.prototype.sA=function(a){return[a]};g.x(iK,fK);g.k=iK.prototype;g.k.Dn=function(){return!1};
g.k.Uv=function(){return!0};
g.k.kD=function(){return!1};
g.k.Az=function(){return!this.J};
g.k.Gv=function(){return new IJ([new AJ(1,this,this.initRange,"getMetadataRequestInfo")],this.J)};
g.k.Ix=function(){return null};
g.k.GB=function(a){this.zs(a);return this.Uv()&&a.u&&!a.Cf?new IJ([new AJ(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Pa,a.startTime,a.duration,a.dc+a.u,NaN,!0)],this.index.dH(a.Pa)):this.As(FJ(a),!1)};
g.k.Eq=function(a,b){b=void 0===b?!1:b;a=this.index.Lh(a);b&&(a=Math.min(this.index.Gd(),a+1));return this.As(a,!0)};
g.k.sN=function(a){xK(a)};
g.k.zs=function(a){return 0===a.u?!0:this.index.Gd()>a.Pa&&this.index.cn()<=a.Pa+1};
g.k.update=function(a,b,c){this.index.append(a);ata(this.index,c);this.index.u=b};
g.k.zg=function(){return this.Az()?!0:fK.prototype.zg.call(this)};
g.k.As=function(a,b){var c=this.index.dH(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.Wb?this.info.Wb*e:1E3;return new IJ([new AJ(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
g.k.aN=function(){return this.Az()?0:this.initRange.length};
g.k.EP=function(){return!1};lK.prototype.update=function(a){var b=void 0;this.u&&(b=this.u);var c=new lK,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+jK(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+jK(a,"startNumber")||0;c.C=f;var l=b?b.startSecs+b.Yh:0,m=Date.parse(Zta(jK(a,"yt:segmentIngestTime")))/1E3;c.D="SegmentTemplate"===a.parentElement.tagName;c.D&&(c.K=jK(a,"media"));a=b?h-b.Pa:1;c.J=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,t=0;t<=q;t++)if(b&&h<=b.Pa)h++;else{var v=new Xta(h,l,n,m+p,f);c.j.push(v);var y=v.startSecs;v=d.getAttribute("yt:cuepointTimeOffset");var A=d.getAttribute("yt:cuepointDuration");if(v&&A){v=Number(v);y=-v/e+y;A=Number(A)/e;var E=d.getAttribute("yt:cuepointContext")||null,K=d.getAttribute("yt:cuepointIdentifier")||"",I=d.getAttribute("yt:cuepointEvent")||"";v=new FG(y,A,E,K,oeb[I]||"unknown",v)}else v=null;v&&c.B.push(v);h++;l+=n;f+=n;m+=n+p}}c.j.length&&(c.u=g.zb(c.j))}this.J=
c.J;this.u=c.u||this.u;g.Nb(this.j,c.j);g.Nb(this.B,c.B);this.D=c.D;this.K=c.K;-1===this.C&&(this.C=c.getStreamTimeOffset())};
lK.prototype.getStreamTimeOffset=function(){return-1===this.C?0:this.C};g.x(mK,g.wI);g.k=mK.prototype;g.k.cn=function(){return this.Tm?this.segments.length?this.Zy(this.je()).Pa:-1:g.wI.prototype.cn.call(this)};
g.k.je=function(){if(this.Re)return 0;if(!this.Tm)return g.wI.prototype.je.call(this);if(!this.segments.length)return 0;var a=Math.max(g.zb(this.segments).endTime-this.qq,0);return 0<this.bf&&this.Zy(a).Pa<this.bf?this.bp(this.bf).startTime:a};
g.k.jt=function(){if(!this.segments.length)return g.wI.prototype.jt.call(this);var a=this.Gd();if(!this.Tm||a<=this.segments[this.segments.length-1].Pa)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new vI(a,Math.max(0,b.startTime-(b.Pa-a)*this.Lj),this.Lj,0,"sq/"+a,void 0,void 0,!0)}return this.Re?Math.min(this.qq,a.endTime):a.endTime};
g.k.lz=function(){return this.Tm?this.segments.length?this.Gd()-this.cn()+1:0:g.wI.prototype.lz.call(this)};
g.k.Gd=function(){var a=Math.min(this.nh,Math.max(g.wI.prototype.Gd.call(this),this.vp)),b=1E3*this.qq;b=0<this.Mq&&this.Mq<b;this.Re&&0<this.qq&&0<this.vp&&!b&&(b=this.Zy(this.qq))&&(a=Math.min(b.Pa-1,a));return a};
g.k.Dv=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.BK=function(a){var b=nK(this,a.Pa);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.Pz&&0===a.Pa%(300/this.Lj)){var c=this.segments[0].Pa,d=Math.floor(this.Pz/this.Lj);a=a.Pa-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.UG=function(){return this.vp};
g.k.Zy=function(a){if(!this.Tm)return g.wI.prototype.Zy.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].Pa-Math.ceil((this.segments[0].startTime-a)/this.Lj));else if(a>=b.endTime)b=b.Pa+Math.floor((a-b.endTime)/this.Lj+1);else{b=Ub(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.Pa-b.Pa-1))+1)+b.Pa}return this.bp(b)};
g.k.bp=function(a){if(!this.Tm)return g.wI.prototype.bp.call(this,a);if(!this.segments.length)return null;var b=nK(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Lj;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Pa-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Pa-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Pa-d.Pa-1),d=d.endTime+(a-d.Pa-1)*b);return new vI(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.x(pK,iK);g.k=pK.prototype;g.k.kD=function(){return!0};
g.k.zg=function(){return!0};
g.k.zs=function(a){return this.Uv()&&a.u&&!a.Cf||!a.j.index.VN(a.Pa)};
g.k.Gv=function(){};
g.k.Eq=function(a,b){return"number"!==typeof a||isFinite(a)?iK.prototype.Eq.call(this,a,void 0===b?!1:b):new IJ([new AJ(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Kj,void 0,this.Kj*this.info.Wb)],"")};
g.k.As=function(a,b){var c=void 0===c?!1:c;if(oK(this.index,a))return iK.prototype.As.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.Kj*this.info.Wb),f=peb?this.Kj:0;b&&(f=e=0);return new IJ([new AJ(c?7:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],0<=a?"sq/"+a:"")};
var peb=!1;g.x(qK,fK);g.k=qK.prototype;g.k.Dn=function(){return!1};
g.k.Uv=function(){return!1};
g.k.kD=function(){return!1};
g.k.Gv=function(){return new IJ([new AJ(1,this,void 0,"otfInit")],this.J)};
g.k.Ix=function(){return null};
g.k.GB=function(a){this.zs(a);return gua(this,FJ(a),!1)};
g.k.Eq=function(a,b){b=void 0===b?!1:b;a=this.index.Lh(a);b&&(a=Math.min(this.index.Gd(),a+1));return gua(this,a,!0)};
g.k.sN=function(a){1===a.info.type&&(this.j||(this.j=eta(a.j)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&hua(this,a.u))};
g.k.zs=function(a){return 0===a.u?!0:this.index.Gd()>a.Pa&&this.index.cn()<=a.Pa+1};
g.k.aN=function(){return 0};
g.k.EP=function(){return!1};g.k=g.yK.prototype;g.k.Dq=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.Di[a]/this.j};
g.k.TM=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.fH=aa(2);g.k.uf=function(){return NaN};
g.k.getDuration=function(a){a=this.gV(a);return 0<=a?a/this.j:-1};
g.k.gV=function(a){return a+1<this.count||this.u?this.Di[a+1]-this.Di[a]:-1};
g.k.cn=function(){return 0};
g.k.Gd=function(){return this.count-1};
g.k.VN=function(a){return this.Gd()===a&&0<=a};
g.k.jt=function(){return this.u?this.Di[this.count]/this.j:NaN};
g.k.je=function(){return 0};
g.k.lz=function(){return this.count};
g.k.dH=function(){return""};
g.k.Lh=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.Gd()};
g.k.nV=function(a,b){if(a>=this.Gd())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.Gd()&&b>this.getStartTime(a);a++)c=Math.max(c,pua(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){zK(this);this.u=!0;this.Di[this.count]=b;this.offsets[this.count]=a};g.x(AK,fK);g.k=AK.prototype;g.k.Gv=function(a,b){var c=new AJ(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),d=[new AJ(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 AJ(4,this,yJ(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)));return new IJ(d)};
g.k.sN=function(a){if(1===a.info.type){if(this.j)return;this.j=eta(a.j)}else if(2===a.info.type){if(this.J||0<=this.index.Gd())return;if(g.uK(this.info)){var b=this.index,c=sK(a);a=a.info.range.start;var d=g.XI(c,0,1936286840);c=sta(d);b.j=c.Vr;var e=c.o4;b.offsets[0]=c.H4+a+d.size;b.Di[0]=e;b.u=!0;a=c.PQ.length;for(d=0;d<a;d++){e=b;var f=c.O9[d],h=c.PQ[d];e.count++;zK(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.Di[e.count]=e.Di[e.count-1]+h}}else this.J=sK(a)}if(this.info.Ye()&&this.j&&this.J){c=
new DataView(this.j.buffer);b=this.index;d=this.J;a=this.indexRange.end;e=new gJ(c);c=e;e=c.pos;f={LZ:1E6,MZ:1E9,duration:0,ZY:0,nQ:0};if(kJ(c,408125543))if(f.ZY=lJ(c,!0),f.nQ=c.start+c.pos,kJ(c,357149030)){for(h=jJ(c);!hJ(h);){var l=lJ(h,!1);2807729===l?f.LZ=nJ(h):2807730===l?f.MZ=nJ(h):17545===l?f.duration=pJ(h):oJ(h)}c.pos=e;c=f}else c.pos=e,c=null;else c.pos=e,c=null;if(null!==c){b.j=c.MZ/c.LZ;e=new gJ(d);d=e;h=c.nQ;e=d.pos;f=[];if(kJ(d,475249515)){for(l=jJ(d);kJ(l,187);){var m=jJ(l);if(kJ(m,
179)){var n=nJ(m);if(kJ(m,183)){m=jJ(m);for(var p=h;kJ(m,241);)p=nJ(m)+h;f.push({nG:p,d4:n})}}}if(0<f.length&&a===f[0].nG)for(a=0;a<f.length;a++)f[a].nG+=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.nG,f=f.d4,zK(d),d.offsets[d.count]=e,d.Di[d.count]=f,d.count++;b.cap(c.ZY+c.nQ,c.duration)}}this.J=null}};
g.k.MC=function(a,b,c,d){for(var e=[],f=a;f<=this.index.Gd();f++){var h=yJ(this.index.Dq(f),pua(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 AJ(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.sG(new g.EB("b189619593",""+a,""+b,""+c));return new IJ(e)};
g.k.BS=function(a){for(var b=this.sA(a.info),c=a.info.range.start+a.info.dc,d=a.B,e=[],f=0;f<b.length;f++){var h=zI(a.j,b[f].range.start+b[f].dc-c,b[f].u);e.push(new rK(b[f],h,d));d=void 0}return e};
g.k.sA=function(a){for(var b=a.range.start+a.dc,c=0;c<this.index.Gd()&&b>=this.index.Dq(c+1);)c++;return this.MC(c,b,a.u).gb};
g.k.zs=function(a){BJ(a);return this.zg()?!0:a.range.end+1<this.info.contentLength};
g.k.Ix=function(a,b){this.zs(a);if(!this.zg())return b=yJ(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new wJ(b.start,this.info.contentLength-1)),new IJ([new AJ(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.sA(a),a=a[a.length-1]);var c=0,d=a.range.start+a.dc+a.u;3===a.type&&(BJ(a),c=a.Pa,d===a.range.end+1&&(c+=1));return this.MC(c,d,b)};
g.k.GB=function(){return null};
g.k.Eq=function(a,b,c){b=void 0===b?!1:b;a=this.index.Lh(a);b&&(a=Math.min(this.index.Gd(),a+1));return this.MC(a,this.index.Dq(a),0,c)};
g.k.Dn=function(){return!0};
g.k.Uv=function(){return!0};
g.k.kD=function(){return!1};
g.k.aN=function(){return this.indexRange.length+this.initRange.length};
g.k.EP=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};BK.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var V3={},Zua=(V3.COLOR_PRIMARIES_BT709="bt709",V3.COLOR_PRIMARIES_BT2020="bt2020",V3.COLOR_PRIMARIES_UNKNOWN=null,V3.COLOR_PRIMARIES_UNSPECIFIED=null,V3),W3={},rua=(W3.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",W3.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",W3.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",W3.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",W3.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,W3.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,W3);var X3={},kI=(X3.WIDTH={name:"width",video:!0,valid:640,An:99999},X3.HEIGHT={name:"height",video:!0,valid:360,An:99999},X3.FRAMERATE={name:"framerate",video:!0,valid:30,An:9999},X3.BITRATE={name:"bitrate",video:!0,valid:3E5,An:2E9},X3.EOTF={name:"eotf",video:!0,valid:"bt709",An:"catavision"},X3.CHANNELS={name:"channels",video:!1,valid:2,An:99},X3.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",An:"invalidformat"},X3.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
An:"nope"},X3.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",An:"av99.0.05M.08"},X3.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",An:"invalid"},X3);var Y3={},GK=(Y3["0"]="f",Y3["160"]="h",Y3["133"]="h",Y3["134"]="h",Y3["135"]="h",Y3["136"]="h",Y3["137"]="h",Y3["264"]="h",Y3["266"]="h",Y3["138"]="h",Y3["298"]="h",Y3["299"]="h",Y3["304"]="h",Y3["305"]="h",Y3["214"]="h",Y3["216"]="h",Y3["374"]="h",Y3["375"]="h",Y3["140"]="a",Y3["141"]="ah",Y3["327"]="sa",Y3["258"]="m",Y3["380"]="mac3",Y3["328"]="meac3",Y3["161"]="H",Y3["142"]="H",Y3["143"]="H",Y3["144"]="H",Y3["222"]="H",Y3["223"]="H",Y3["145"]="H",Y3["224"]="H",Y3["225"]="H",Y3["146"]="H",Y3["226"]=
"H",Y3["227"]="H",Y3["147"]="H",Y3["384"]="H",Y3["376"]="H",Y3["385"]="H",Y3["377"]="H",Y3["149"]="A",Y3["261"]="M",Y3["381"]="MAC3",Y3["329"]="MEAC3",Y3["598"]="9",Y3["278"]="9",Y3["242"]="9",Y3["243"]="9",Y3["244"]="9",Y3["247"]="9",Y3["248"]="9",Y3["353"]="9",Y3["355"]="9",Y3["356"]="9",Y3["271"]="9",Y3["577"]="9",Y3["313"]="9",Y3["579"]="9",Y3["272"]="9",Y3["302"]="9",Y3["303"]="9",Y3["407"]="9",Y3["408"]="9",Y3["308"]="9",Y3["315"]="9",Y3["330"]="9h",Y3["331"]="9h",Y3["332"]="9h",Y3["333"]="9h",
Y3["334"]="9h",Y3["335"]="9h",Y3["336"]="9h",Y3["337"]="9h",Y3["338"]="so",Y3["600"]="o",Y3["250"]="o",Y3["251"]="o",Y3["194"]="*",Y3["195"]="*",Y3["220"]="*",Y3["221"]="*",Y3["196"]="*",Y3["197"]="*",Y3["279"]="(",Y3["280"]="(",Y3["317"]="(",Y3["318"]="(",Y3["273"]="(",Y3["274"]="(",Y3["357"]="(",Y3["358"]="(",Y3["275"]="(",Y3["359"]="(",Y3["360"]="(",Y3["276"]="(",Y3["583"]="(",Y3["584"]="(",Y3["314"]="(",Y3["585"]="(",Y3["561"]="(",Y3["277"]="(",Y3["361"]="(h",Y3["362"]="(h",Y3["363"]="(h",Y3["364"]=
"(h",Y3["365"]="(h",Y3["366"]="(h",Y3["591"]="(h",Y3["592"]="(h",Y3["367"]="(h",Y3["586"]="(h",Y3["587"]="(h",Y3["368"]="(h",Y3["588"]="(h",Y3["562"]="(h",Y3["409"]="(",Y3["410"]="(",Y3["411"]="(",Y3["412"]="(",Y3["557"]="(",Y3["558"]="(",Y3["394"]="1",Y3["395"]="1",Y3["396"]="1",Y3["397"]="1",Y3["398"]="1",Y3["399"]="1",Y3["400"]="1",Y3["401"]="1",Y3["571"]="1",Y3["402"]="1",Y3["694"]="1h",Y3["695"]="1h",Y3["696"]="1h",Y3["697"]="1h",Y3["698"]="1h",Y3["699"]="1h",Y3["700"]="1h",Y3["701"]="1h",Y3["702"]=
"1h",Y3["703"]="1h",Y3["386"]="3",Y3["387"]="w",Y3["406"]="6",Y3["645"]="(",Y3["646"]="(",Y3["647"]="(",Y3["648"]="(",Y3["649"]="(",Y3["650"]="(",Y3["651"]="(",Y3["652"]="(",Y3["653"]="(",Y3["654"]="(",Y3["655"]="(",Y3["656"]="(",Y3["657"]="(",Y3["658"]="(",Y3["659"]="(",Y3["660"]="(",Y3["661"]="(",Y3["662"]="(",Y3["663"]="(",Y3["664"]="(",Y3["665"]="(",Y3["666"]="(",Y3["667"]="(",Y3["668"]="(",Y3["669"]="(",Y3["670"]="(",Y3["671"]="(",Y3["672"]="(",Y3["673"]="(",Y3["674"]="(h",Y3["675"]="(h",Y3["676"]=
"(h",Y3["677"]="(h",Y3["678"]="(h",Y3["679"]="(h",Y3["680"]="(h",Y3["681"]="(h",Y3["682"]="(h",Y3["683"]="(h",Y3["684"]="(h",Y3["685"]="(h",Y3["686"]="(h",Y3["687"]="(h",Y3["688"]="A",Y3["689"]="A",Y3["690"]="A",Y3["691"]="MEAC3",Y3);var EK="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");DK.prototype.isHdr=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};HK.prototype.Ye=function(){return 2===this.containerType};
HK.prototype.isEncrypted=function(){return!!this.me};
HK.prototype.Ui=function(){return!!this.audio};
HK.prototype.lh=function(){return!!this.video};g.OK.prototype.getName=function(){return this.name};
g.OK.prototype.getId=function(){return this.id};
g.OK.prototype.getIsDefault=function(){return this.isDefault};
g.OK.prototype.toString=function(){return this.name};
g.OK.prototype.getName=g.OK.prototype.getName;g.OK.prototype.getId=g.OK.prototype.getId;g.OK.prototype.getIsDefault=g.OK.prototype.getIsDefault;g.x(g.PK,lB);g.PK.prototype.T=function(a,b,c,d,e){return lB.prototype.T.call(this,a,b,c,d,e)};var yua=!1;g.x(bL,g.SG);g.k=bL.prototype;g.k.appendBuffer=function(a,b,c){if(this.Od.wC()!==this.appendWindowStart+this.start||this.Od.LG()!==this.appendWindowEnd+this.start||this.Od.Hd()!==this.timestampOffset+this.start)this.Od.supports(1),this.Od.rQ(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Od.Nr(this.timestampOffset+this.start);this.Od.appendBuffer(a,b,c)};
g.k.abort=function(){this.Od.abort()};
g.k.remove=function(a,b){this.Od.remove(a+this.start,b+this.start)};
g.k.Tf=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.k.clear=function(){this.Od.clear()};
g.k.rQ=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.kN=function(){return this.timestampOffset+this.start};
g.k.wC=function(){return this.appendWindowStart};
g.k.LG=function(){return this.appendWindowEnd};
g.k.Nr=function(a){this.timestampOffset=a};
g.k.Hd=function(){return this.timestampOffset};
g.k.dg=function(a){a=this.Od.dg(void 0===a?!1:a);return aL(a,this.start,this.end)};
g.k.wj=function(){return this.Od.wj()};
g.k.nm=function(){return this.Od.nm()};
g.k.NN=function(){return this.Od.NN()};
g.k.Fy=function(){this.Od.Fy()};
g.k.Cz=function(a){return this.Od.Cz(a)};
g.k.Xs=function(){return this.Od.Xs()};
g.k.VG=function(){return this.Od.VG()};
g.k.lR=function(a,b){this.Od.lR(a,b)};
g.k.supports=function(a){return this.Od.supports(a)};
g.k.XG=function(){return this.Od.XG()};
g.k.isView=function(){return!0};
g.k.GJ=function(a,b,c){return this.isActive?this.Od.GJ(a,b,c):!1};
g.k.eG=function(){return this.Od.eG()?this.isActive:!1};
g.k.isLocked=function(){return this.mF&&!this.isActive};
g.k.qc=function(a){a=this.Od.qc(a);a.vw=this.start+"-"+this.end;return a};
g.k.WG=function(){return this.Od.WG()};
g.k.GC=function(){return this.Od.GC()};
g.k.gN=function(){return this.Od.gN()};
g.k.xa=function(){UG(this.Od,this.QV);g.SG.prototype.xa.call(this)};var hY=!1;g.x(cL,g.SG);g.k=cL.prototype;g.k.appendBuffer=function(a,b,c){this.VB=!1;c&&(this.qD=c);if(a.length){var d;(null==(d=this.pc)?0:d.appendBuffer)?this.pc.appendBuffer(a):this.pc?this.pc.append(a):this.ph&&this.ph.webkitSourceAppend(this.id,a)}b&&(b.isEncrypted()&&(this.gO=this.qD),3===b.type&&(this.Qf=b),this.pD.push(b.Td()),4<this.pD.length&&this.pD.shift());this.uA&&(2<=this.uA.length||1048576<a.length?delete this.uA:this.uA.push(a))};
g.k.abort=function(){try{this.pc?this.pc.abort():this.ph&&this.ph.webkitSourceAbort(this.id)}catch(a){qeb&&g.sG(new g.EB("Error while abort the source buffer: "+a.name+", "+a.message))}this.qD=this.Qf=null};
g.k.remove=function(a,b,c){this.VB=!1;var d;if(null==(d=this.pc)?0:d.remove)c&&c({b:VK(this.dg()),s:a,e:b}),this.pc.remove(a,b)};
g.k.Tf=function(){this.remove(this.wC(),this.LG())};
g.k.clear=function(){this.nm()||(this.abort(),this.Tf(),this.gO=this.qD=this.Qf=null,this.appendWindowStart=this.timestampOffset=0,this.KL=UK([],[]),this.VB=!1,this.uA=Dua?[]:void 0,this.kG=!0)};
g.k.wC=function(){if(hY&&this.lh)return this.appendWindowStart;var a;return(null==(a=this.pc)?void 0:a.appendWindowStart)||0};
g.k.LG=function(){var a;return(null==(a=this.pc)?void 0:a.appendWindowEnd)||0};
g.k.rQ=function(a,b){this.pc&&(hY&&this.lh?(this.appendWindowStart=a,this.pc.appendWindowEnd=b):a>this.wC()?(this.pc.appendWindowEnd=b,this.pc.appendWindowStart=a):(this.pc.appendWindowStart=a,this.pc.appendWindowEnd=b))};
g.k.kN=function(){return this.timestampOffset};
g.k.Nr=function(a){hY?this.timestampOffset=a:this.supports(1)&&(this.pc.timestampOffset=a)};
g.k.Hd=function(){return hY?this.timestampOffset:this.supports(1)?this.pc.timestampOffset:0};
g.k.dg=function(a){if(void 0===a?0:a)return this.VB||this.wj()||(this.KL=this.dg(!1),this.VB=!0),this.KL;try{return this.pc?this.pc.buffered:this.ph?this.ph.webkitSourceBuffered(this.id):UK([0],[Infinity])}catch(b){return UK([],[])}};
g.k.wj=function(){var a;return(null==(a=this.pc)?void 0:a.updating)||!1};
g.k.nm=function(){return this.kG};
g.k.NN=function(){return!this.kG&&this.wj()};
g.k.Fy=function(){this.kG=!1};
g.k.Cz=function(a){var b=null==a?void 0:a.yb;a=null==a?void 0:a.containerType;return!b&&!a||b===this.yb&&a===this.containerType};
g.k.Xs=function(){return this.qD};
g.k.VG=function(){return this.gO};
g.k.lR=function(a,b){this.containerType!==a&&(this.supports(4),dL()&&this.pc.changeType(b));this.containerType=a};
g.k.XG=function(){return this.Qf};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.pc)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.pc)||!c.appendBuffer);case 2:var d;return!(null==(d=this.pc)||!d.remove);case 3:var e,f;return!!((null==(e=this.pc)?0:e.addEventListener)&&(null==(f=this.pc)?0:f.removeEventListener));case 4:return!(!this.pc||!this.pc.changeType);default:return!1}};
g.k.eG=function(){return!this.wj()};
g.k.isLocked=function(){return!1};
g.k.qc=function(a){a.to=this.Hd();a.up=this.wj();var b,c=(null==(b=this.pc)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.pc)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=VK(this.dg())}catch(e){}return a};
g.k.WG=function(){for(var a={},b=0;b<this.pD.length;b++)a["s"+b]=this.pD[b];return a};
g.k.xa=function(){this.supports(3)&&(this.pc.removeEventListener("updateend",this.Cd),this.pc.removeEventListener("error",this.Cd));g.SG.prototype.xa.call(this)};
g.k.GJ=function(a,b,c,d){if(!this.supports(2)||this.wj())return!1;var e=this.dg(),f=WK(e,a);if(0>f)return!1;try{if(b&&f+1<e.length){var h=e.start(f+1),l=e.end(e.length-1);this.remove(h,l,d);return!0}if(this.isView())return!1;if(c){var m=Math.max(0,a-c);if(f||e.start(f)+5<m)return this.remove(0,m,d),!0}}catch(n){}return!1};
g.k.GC=function(){return this.containerType};
g.k.gN=function(){return this.uA};
var Dua=!1,qeb=!1;eL.prototype.dispose=function(){if(!this.isDisposed){if(this.u)try{URL.revokeObjectURL(this.j)}catch(a){}this.B=!0}};
eL.prototype.isDisposed=function(){return this.B};
eL.prototype.equals=function(a){return null!==a&&a.j===this.j};
eL.prototype.toString=function(){return"MediaResource {"+this.j+"}"};g.x(fL,g.G);g.k=fL.prototype;g.k.getDuration=function(){var a;return(null==(a=this.Xa)?void 0:a.duration)||this.V};
g.k.ul=function(a){try{this.Xa?this.Xa.duration=a:(this.V=a,this.ph.webkitSourceSetDuration(a))}catch(b){}};
g.k.jh=function(){try{return"closed"===kL(this)}catch(a){return!0}};
g.k.wj=function(){return!!(this.j&&this.j.wj()||this.u&&this.u.wj())};
g.k.isAsync=function(){return this.j?!!this.j.supports(0):Jua()};
g.k.S8=function(){!this.isDisposed()&&hL(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.Q8=function(){this.dispose()};
g.k.E1=function(a){if(Gua&&!this.C&&a.nm()&&0===a.dg().length){var b;iL(this.mediaElement,{l:"mswoue",sr:null==(b=this.mediaElement.va)?void 0:jL(b)},!1);a.Fy();this.nm()||(this.mediaElement.rH=!0,this.mediaElement.setCurrentTime(0))}};
g.k.clear=function(){Fua(this,function(){});
var a;null==(a=this.j)||a.clear();var b;null==(b=this.u)||b.clear()};
g.k.nm=function(){var a,b;return(null==(a=this.u)?void 0:a.nm())||(null==(b=this.j)?void 0:b.nm())};
g.k.Cz=function(a,b){return!!this.j&&!!this.u&&this.j.Cz(b)&&this.u.Cz(a)};
var Gua=!1,gL=!1;var Pua=/action_display_post/;var Qua;g.x(mL,g.SG);g.k=mL.prototype;g.k.isLoading=function(){return 1===this.state};
g.k.Bn=function(){return 3===this.state};
g.k.s9=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.Jc=this.u=!0;this.timeline||(this.timeline=new aua);eua(this.timeline,a);this.ra("refresh");for(a=0;a<b.length;a++){var c=iva(this,b[a]);if(!this.j[c.id]){var d=oL(kK(b[a],"BaseURL").textContent),e=kK(b[a],"Initialization"),f=jK(e,"sourceURL");e=xJ(jK(e,"range"));this.j[c.id]=new iK(d,c,f,e)}c=this.j[c.id];d=jK(b[a],"id","AdaptationSet");
d=""!==d?d:jK(b[a],"mimetype","AdaptationSet");f=this.timeline;f=f.B[c.info.id]||f.u[d]||f.j||null;d=f.j;!this.J&&f.getStreamTimeOffset()&&(this.J=f.getStreamTimeOffset());if(f.D){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.Wb,n=h.Pa;var p=h.startSecs;var q=f.K.split("$$");for(var t=0;t<q.length;t++)q[t]=q[t].replace("$RepresentationID$",l),q[t]=q[t].replace("$Number$",n.toString()),q[t]=q[t].replace("$Bandwidth$",m.toString()),q[t]=q[t].replace("$Time$",
p.toString());e.push(new vI(h.Pa,h.startSecs,h.Yh,h.j,q.join("$"),null,h.u))}d=e}else{f=Ob(kK(b[a],"SegmentList").getElementsByTagName("SegmentURL"),f.J);e=[];for(h=0;h<f.length;h++){l=e;m=l.push;n=d[h];p=void 0;t=f[h];q=t.getAttribute("media");if(t=t.getAttribute("mediaRange")){var v=t.split("-");v[1]&&0<=Number(v[1])?p=xJ(t):q=q+"?range="+t}m.call(l,new vI(n.Pa,n.startSecs,n.Yh,n.j,q,p,n.u))}d=e}c.update(d,this.isLive,this.eb)}fua(this.timeline);return!0}this.duration=Yta(jK(a,"mediaPresentationDuration"));
a:{for(a=0;a<b.length;a++){f=b[a];c=iva(this,f);d=oL(kK(f,"BaseURL").textContent);e=kK(f,"SegmentBase");f=xJ(e.attributes.getNamedItem("indexRange").value);e=xJ(e.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);c=new AK(d,c,e,f);if(!c){b=!1;break a}lL(this,c)}b=!0}return b};
g.k.refresh=function(){if(!this.isLoading()&&!this.isDisposed()){var a=g.Yj(this.sourceUrl,{start_seq:nva(this).toString()});kva(this,a).Ek(function(){})}};
g.k.resume=function(){jva(this)};
g.k.Pe=function(){if(this.isManifestless&&this.B&&pL(this))return pL(this);var a=this.j,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&(f.D&&(b=!0),h=h.jt(),f.info.Ui()&&(isNaN(c)||h<c)?c=h:f.info.lh()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.je=function(){if(this.isManifestless){if(qL(this))return qL(this);if(this.pd){var a=this.uf(this.Pe());if(a&&(a-=this.pd,0<a))return this.Pe()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.je()}return 0};
g.k.getStreamTimeOffset=function(){return this.J};
g.k.uf=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.Lh(a),e=c.uf(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var tL=null,reb,tva=!(null==(reb=navigator.mediaCapabilities)||!reb.decodingInfo),hva={commentary:1,alternate:2,dub:3,main:4};Cva.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})}};zL.prototype.clone=function(a){return new zL(this.flavor,a,this.u,this.experiments)};
zL.prototype.qc=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
zL.prototype.Kh=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 seb={},Gva=(seb.playready=["com.youtube.playready","com.microsoft.playready"],seb.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],seb),Z3={},SZa=(Z3.widevine="DRM_SYSTEM_WIDEVINE",Z3.fairplay="DRM_SYSTEM_FAIRPLAY",Z3.playready="DRM_SYSTEM_PLAYREADY",Z3),$3={},teb=($3.widevine=1,$3.fairplay=2,$3.playready=3,$3);JL.prototype.eg=function(a,b){b=void 0===b?1:b;this.j+=b;this.B+=a;a/=b;for(var c=0;c<IL.length&&!(a<IL[c]);++c)this.u[c]+=b};
JL.prototype.toString=function(){return""};
var IL=[20,100,500,2E3];g.k=Lva.prototype;g.k.isActive=function(){return!0};
g.k.wu=function(){return!1};
g.k.fD=function(a,b){var c=this;if(b){var d={},e;for(e in b)d={RJ:d.RJ,VJ:d.VJ},b.hasOwnProperty(e)&&(d.RJ=a.prototype[e],d.VJ=b[e],a.prototype[e]=function(f){return function(){var h=g.Ia.apply(0,arguments),l=(0,g.mC)();h=f.RJ.apply(this,h);Mva(c,f.VJ,(0,g.mC)()-l);return h}}(d))}};
g.k.Qr=function(a){return new Kva(a)};
g.k.xq=function(a,b){b=void 0===b?1:b;a instanceof Kva&&(Mva(this,a.name,(0,g.mC)()-a.startTimeMs,b),a.j=!0)};
g.k.ql=function(a,b,c){c=void 0===c?1:c;var d=(0,g.mC)();b=b();Mva(this,a,(0,g.mC)()-d,c);return b};
g.k.BM=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=Iva(this.j[b]);c&&(a[b]=c)}this.j=new Jva;return a};
g.k.toString=function(){return""};g.k=Pva.prototype;g.k.isActive=function(){return!0};
g.k.wu=function(){return!0};
g.k.fD=function(a,b){var c=this;if(b){var d={},e;for(e in b)d={SJ:d.SJ,WJ:d.WJ},b.hasOwnProperty(e)&&(d.SJ=a.prototype[e],d.WJ=b[e],a.prototype[e]=function(f){return function(){var h=g.Ia.apply(0,arguments),l=(0,g.mC)();h=f.SJ.apply(this,h);return Rva(c,h,f.WJ,l)}}(d))}};
g.k.Qr=function(a){return new Ova(a)};
g.k.xq=function(a,b){b=void 0===b?1:b;a instanceof Ova&&(Qva(this,a.name,(0,g.mC)()-a.startTimeMs,b),a.j=!0)};
g.k.ql=function(a,b){var c=(0,g.mC)();b=b();return Rva(this,b,a,c)};
g.k.BM=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=Iva(this.j[b]);c&&(a[b]=c)}this.j=new Nva;return a};
g.k.toString=function(){return""};g.k=Sva.prototype;g.k.isActive=function(){return!1};
g.k.wu=function(){return!0};
g.k.fD=function(){};
g.k.Qr=function(){};
g.k.xq=function(){};
g.k.ql=function(a,b){return b()};
g.k.BM=function(){return{}};
g.k.toString=function(){return""};var a4,ueb,veb,web,xeb,yeb,zeb,c_,$L,ZX,K2a,ML;a4=new Sva;ueb=!!+Gz("html5_enable_profiler");veb=!!+Gz("html5_onesie_enable_profiler");web=!!+Gz("html5_offline_encryption_enable_profiler");xeb=!!+Gz("html5_performance_impact_profiling_timer_ms");yeb=!!+Gz("html5_drm_enable_profiler");zeb=!!+Gz("html5_use_experimental_profiler");c_=ueb||veb||web||xeb||yeb?zeb?new Pva:new Lva:a4;g.OW=ueb?c_:a4;$L=veb?c_:a4;ZX=web?c_:a4;K2a=xeb?c_:a4;ML=yeb?c_:a4;var LL;g.x(KL,g.G);
KL.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.me)for(var h=g.u(Object.keys(f.me)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=Gva[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.B[n]=this.B[n]||new zL(l,n,f.me[l],this.Ia.experiments),this.j[l]=this.j[l]||
{},this.j[l][f.mimeType]=!0}}}AA()&&(this.B["com.youtube.fairplay"]=new zL("fairplay","com.youtube.fairplay","",this.Ia.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.u=Hva(b,this.useCobaltWidevine,this.N("html5_enable_safari_fairplay"),this.N("html5_enable_vp9_fairplay")).filter(function(p){return!!c.B[p]})};
KL.prototype.N=function(a){return this.Ia.experiments.sb(a)};var o2a={"":"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 Aeb={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},b4;a:{var c4=g.nc();c4=c4.toLowerCase();if(g.ic(c4,"android")){var Beb=c4.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Beb){var Ceb=parseFloat(Beb[1]);if(100>Ceb){b4=Ceb;break a}}var Deb=c4.match("("+Object.keys(Aeb).join("|")+")");b4=Deb?Aeb[Deb[0]]:0}else b4=void 0}var AM=b4,Wwa=0<=AM;var Xwa={RED:"red",mab:"white"};var Twa={wfa:"adunit",Kqa:"detailpage",xra:"editpage",Fra:"embedded",BGa:"leanback",XUa:"previewpage",RVa:"profilepage",AT:"unplugged",iUa:"playlistoverview",A0a:"sponsorshipsoffer",vYa:"shortspage",Rza:"handlesclaiming",rBa:"immersivelivepage",cpa:"creatormusic",sBa:"immersivelivepreviewpage"};awa.prototype.sb=function(a){return"true"===this.flags[a]};var cwa=Promise.resolve(),hwa=window.queueMicrotask?window.queueMicrotask.bind(window):dwa;ewa.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;MC?a=a||Eeb[b]:2.2===AM?a=a||Feb[b]:yA()&&(a=a||Geb[b]);return!!a};
ewa.prototype.isTypeSupported=function(a){return this.V?window.cast.receiver.platform.canDisplayType(a):TK(a)};
var Feb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Geb={"application/x-mpegURL":"maybe"},Eeb={"application/x-mpegURL":"maybe"};mwa.prototype.nf=function(){this.j=!1;if(this.queue.length&&!(this.u&&5>=this.queue.length&&15E3>(0,g.mC)()-this.C)){var a=this.queue.shift(),b=a.url;a=a.options;a.timeout=1E4;g.lA(b,a,3,1E3).then(this.B,this.B);this.u=!0;this.C=(0,g.mC)();5<this.queue.length&&nwa(this)}};
mwa.prototype.flush=function(){for(;this.queue.length;){var a=this.queue.shift();g.hA(a.url,a.options)}};g.x(QL,g.SG);QL.prototype.add=function(a,b){!this.items[a]&&(b.WB||b.RL||b.EJ)&&(this.items[a]=sba(b),this.ra("vast_info_card_add",a))};
QL.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
QL.prototype.get=function(a){return this.items[a]||null};
QL.prototype.isEmpty=function(){return g.id(this.items)};var HM={JJa:1,KJa:2,LJa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var owa=!1,SL,TL,UL,VL,WL;g.x(XL,g.G);
XL.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.u,d=0;d<b&&16>this.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d<e;)pwa(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(pwa(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};
XL.prototype.oJ=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 qwa=!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 YL;g.x(aM,g.G);aM.prototype.encrypt=function(a){this.u(this.cipher,a.byteOffset,a.byteLength);return a};
aM.prototype.oJ=function(a){this.j.exports.AES128CTRCipher_setCounter(this.cipher,a.byteOffset)};g.bM.prototype.encrypt=function(a,b){var c=this,d,e;return g.Ha(function(f){if(1==f.j){d=ZL();if(!d)return f.return(c.j(a,b));g.ya(f,3);return g.z(f,c.u(a,b,d),5)}if(3!=f.j)return f.return(f.u);e=g.Aa(f);g.tG(e);qwa=!0;return f.return(c.j(a,b))})};
g.bM.prototype.u=function(a,b,c){var d=this,e,f;return g.Ha(function(h){switch(h.j){case 1:if(d.D){h.Ka(2);break}return g.z(h,c.importKey("raw",d.C,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:d.D=h.u;case 2:return e={name:"AES-CTR",counter:b,length:128},g.z(h,c.encrypt(e,d.D,a),4);case 4:return f=h.u,h.return(new Uint8Array(f))}})};
g.bM.prototype.j=function(a,b){this.B||(this.B=new XL(this.C));this.B.oJ(b);return this.B.encrypt(a)};
g.bM.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.x(g.cM,g.G);g.cM.prototype.encrypt=function(a,b){this.j||(this.j=new XL(this.u),g.H(this,this.j));this.j.oJ(b);return this.j.encrypt(a)};
g.cM.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.x(dM,g.G);dM.prototype.encrypt=function(a,b){this.B||(this.B=new aM(this.j,this.C),g.H(this,this.B));this.B.oJ(b);return this.B.encrypt(a)};
dM.prototype.decrypt=function(a,b){return this.encrypt(a,b)};swa.prototype.reset=function(){uwa(this);this.update(this.B)};
swa.prototype.update=function(a){var b=0,c=a.length;this.C+=c;this.u&&64<=this.u+c&&(this.J.set(a.subarray(0,64-this.u),this.u),b=64-this.u,this.u=0,twa(this,this.J,0));for(;b+64<=c;b+=64)twa(this,a,b);b<c&&(a=a.subarray(b),this.J.set(a,this.u),this.u+=a.length)};
var eM=[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 Heb;Heb={};g.Ieb=g.TC("yt-idb-pref-storage",{rr:(Heb.prefs={Sm:1},Heb),shared:!1,upgrade:function(a,b){b(1)&&g.DC(g.oC(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});g.x(fM,g.bM);fM.prototype.j=function(a,b){var c=$L.Qr("oap");b=g.bM.prototype.j.call(this,a,b);$L.xq(c,Math.ceil(a.length/16));return b};
fM.prototype.u=function(a,b,c){var d=this,e,f;return g.Ha(function(h){if(1==h.j)return e=$L.Qr("oan2"),g.z(h,g.bM.prototype.u.call(d,a,b,c),2);f=h.u;$L.xq(e,Math.ceil(a.byteLength/16));return h.return(f)})};
g.x(gM,g.cM);gM.prototype.encrypt=function(a,b){var c=$L.Qr("oap");b=g.cM.prototype.encrypt.call(this,a,b);$L.xq(c,Math.ceil(a.byteLength/16));return b};
g.x(hM,dM);hM.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.u.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.u.add(d.byteOffset);d.set(b)}return dM.prototype.encrypt.call(this,c||a,d||b)};
hM.prototype.dispose=function(){dM.prototype.dispose.call(this);for(var a=g.u(this.u),b=a.next();!b.done;b=a.next())this.j.exports.free(b.value);this.u.clear()};jM.prototype.Rl=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.u+=a};
jM.prototype.pj=function(){return this.j/(1-Math.pow(this.alpha,this.u))};kM.prototype.Rl=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.u>=this.j&&(this.B=!0);for(;a--;)this.values[this.u]=b,this.u=(this.u+1)%this.j;this.D=!0};
kM.prototype.pj=function(){return this.K?(lM(this,this.C-this.K)+lM(this,this.C)+lM(this,this.C+this.K))/3:lM(this,this.C)};g.x(Nwa,g.G);tM.prototype.then=function(a,b){return this.promise.then(a,b)};
tM.prototype.resolve=function(a){this.PY(a)};
tM.prototype.reject=function(a){this.IY(a)};var Uwa="blogger gac books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),exa={rla:"cbrand",Bla:"cbr",Cla:"cbrver",dCa:"c",gCa:"cver",fCa:"ctheme",eCa:"cplayer",QNa:"cmodel",DOa:"cnetwork",ISa:"cos",JSa:"cosver",xTa:"cplatform"};g.x(cxa,g.G);g.k=cxa.prototype;g.k.N=function(a){return this.experiments.sb(a)};
g.k.getVideoUrl=function(a,b,c,d,e,f,h){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.MM(this);e="www.youtube.com"===c;h&&this.N("fill_live_watch_url_in_watch_endpoint")&&e?f="https://"+c+"/live/"+a:!f&&d&&e?f="https://youtu.be/"+a:g.DM(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),MC&&(a=lma())&&(b.ebc=a));return g.Yj(f,b)};
g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.MM(this)+"/embed/"+b;d&&(b=g.Yj(b,{list:d}));d=c.width;c=c.height;b=g.Ce(b);a=g.Ce(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.SK&&!MC&&74<=Nma()||g.HL&&g.Nc(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.Id=function(){return this.jg};
var ixa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],dxa=["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=dN.prototype;g.k.Kh=function(){return this.j};
g.k.HB=function(){return null};
g.k.CS=function(){var a=this.HB();return a?(a=g.Tz(a.j),Number(a.expire)):NaN};
g.k.oQ=function(){};
g.k.getHeight=function(){return this.j.video.height};jxa.prototype.Jf=function(){nxa(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.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Nc){if(e.Nc.getIsDefault()){c=e.Nc.getId();break a}c||(c=e.Nc.getId())}}d=g.u(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.J||!e.Nc||e.Nc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.u(this.u);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.Nc){p=f.Nc;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=lxa(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(mxa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}c=g.u(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=Jeb,d=(h=d.Nc)?'#EXT-X-MEDIA:URI="'+lxa(this,d.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0<this.D.length?Jeb:void 0;d=g.u(this.u);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="')+(mxa(h,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(h+=",FRAME-RATE="+
e.fps),e.XA&&(h+=",VIDEO-RANGE="+e.XA),a.push(h),a.push(lxa(this,e.url,"")));return a.join("\n")};
var Jeb="text";g.x(fN,dN);fN.prototype.CS=function(){return this.expiration};
fN.prototype.HB=function(){if(!this.u||this.u.isDisposed()){var a=this.B.Jf();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.u=new eL(a)}return this.u};g.x(gN,dN);gN.prototype.HB=function(){return new eL(this.u.kf())};
gN.prototype.oQ=function(){this.u=uI(this.u)};g.x(hN,dN);hN.prototype.HB=function(){return new eL(this.u)};var Keb={},zxa=(Keb.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Keb.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Keb);g.k=g.iN.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.j};
g.k.kf=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.jN(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.k.equals=function(a){return a?this.toString()===a.toString():!1};
g.k.Fe=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Exa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Fxa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Gxa=/^(\d*)_((\d*)_?(\d*))$/;var Ixa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Jxa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var d4={},Oya=(d4.ALWAYS=1,d4.BY_REQUEST=3,d4.UNKNOWN=void 0,d4),e4={},Vya=(e4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",e4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",e4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",e4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",e4);qN.prototype.getState=function(){return this.store.getState()};
qN.prototype.dispatch=function(a){return this.store.dispatch(a)};
qN.prototype.subscribe=function(a){return this.store.subscribe(a)};
qN.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
qN.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};for(var bya={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,liveChatPollStateEntity:217,
logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,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,settingEntity:297,transfer:120,videoDownloadContextEntity:461,
videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},aya={},Leb=g.u(Object.entries(bya)),Meb=Leb.next();!Meb.done;Meb=Leb.next()){var Neb=g.u(Meb.value),Oeb=Neb.next().value,Peb=Neb.next().value,Qeb=Oeb,Reb=Peb;Reb&&(aya[Reb]=Qeb)};var f4;f4={};g.Seb=(f4.INVALID_ENCODER_VERSION="Invalid encoder version",f4.KEY_CREATION_FAILED="Failed to create encoder key",f4.UNKNOWN_DECODE_ERROR="Failed to decode PES data",f4.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",f4.WRONG_DATA_TYPE="Encoder cannot process the data type",f4);var Uxa;
Uxa=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{bma(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},q=0;q<f.length;q++){var t=f[q],v=l[t],y=(0,c[t])(v,m);if("undefined"===typeof y)throw l=m&&m.type,Error("When called with an action of type "+(l?'"'+String(l)+'"':"(unknown type)")+', the slice reducer for key "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');p[t]=
y;n=n||y!==v}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
return dya(a,b)}});
g.uO=new qN;MN.prototype.toString=function(){return this.type+this.id};g.NN.prototype.Kg=function(a){a=a||"hqdefault.jpg";var b=this.V[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.j)return NM(this.Ia,this.j,a)};
g.NN.prototype.Wk=function(){return this.Ia.getVideoUrl(this.videoId,this.playlistId)};g.ON.prototype.Kg=function(a){a||(a="hqdefault.jpg");var b=this.V[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:NM(this.Ia,this.videoId,a)};
g.ON.prototype.Wk=function(a){return this.watchUrl||this.Ia.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,a)};var kya=["APP_STATE","PI"];var g4={},oya=g.TC("yt-player-local-media",{rr:(g4.index={Sm:2},g4.media={Sm:2},g4.captions={Sm:5},g4),shared:!1,upgrade:function(a,b){b(2)&&(g.oC(a,"index"),g.oC(a,"media"));b(5)&&g.oC(a,"captions");b(6)&&(pC(a,"metadata"),pC(a,"playerdata"))},
version:5});QN.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
QN.prototype.get=function(a){return this.j.get(a)};
QN.prototype.remove=function(a){this.j.remove(a)};var RN=void 0;lya("LMS",function(){return g.Ha(function(a){return a.return(g.SN())})});var WN,vya;WN=0;vya=!1;g.yya=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;lya("LMDB",function(){var a,b;return g.Ha(function(c){if(1==c.j)return g.z(c,g.RC(),2);if(3!=c.j){a=c.u;if(!a)throw g.fC("edd");return g.z(c,g.VN(a),3)}b=c.u;return c.return(g.qC(b,["index","media","captions"],{mode:"readonly",jc:!0},function(d){var e={};d=[g.EC(d.objectStore("index"),{},function(f){e[f.getKey()]=f.getValue();return f.continue()}),
Zna(d.objectStore("media")),Zna(d.objectStore("captions"))];return g.hC.all(d).then(function(f){var h=g.u(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:zya(f||[]),captions:h}})}))})});g.x(XN,g.SG);XN.prototype.xa=function(){this.j&&(this.j=this.j.onload=null);g.SG.prototype.xa.call(this)};g.k=g.aO.prototype;g.k.getHeight=function(){return this.height};
g.k.lV=aa(4);g.k.LF=function(){return this.frameCount};
g.k.isDefault=function(){return-1!==this.B.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.kf=function(a){var b=this.D;b=b.replace("$N",this.B);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.C&&(b=g.Yj(b,{sigh:this.C}));return LG(b)};
g.k.MF=function(a){var b=this.LF()-1;return g.pe(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
g.k.Jx=function(){return this.frameCount-1};
g.k.CK=function(){return this.frameCount?0:-1};
g.k.DS=function(){};g.x(bO,XN);bO.prototype.u=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.D(e-1,d,a[e],b);(this.K||180>f.getHeight())&&c.push(f)}return c};
bO.prototype.D=function(a,b,c,d){return new g.aO(a,b,c,d)};g.x(Fya,g.aO);g.k=Fya.prototype;g.k.LF=function(){return this.u.lz()};
g.k.MF=function(a){var b=this.rows*this.columns*this.J,c=this.u,d=c.Gd();a=c.Lh(a);return a>d-b?-1:a};
g.k.Jx=function(){return this.u.Gd()};
g.k.CK=function(){return this.u.cn()};
g.k.DS=function(a){this.u=a};g.x(cO,bO);cO.prototype.u=function(a,b){return bO.prototype.u.call(this,"$N|"+a,b)};
cO.prototype.D=function(a,b,c){return new Fya(a,b,c,this.isLive)};g.x(g.eO,g.SG);g.k=g.eO.prototype;g.k.W=function(){return this.Ia};
g.k.N=function(a){return this.Ia.N(a)};
g.k.Nh=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Cl)||!a.wb)};
g.k.EX=function(){this.isDisposed()||(this.j.u||this.j.unsubscribe("refresh",this.EX,this),this.pU(-1))};
g.k.pU=function(a){if(!this.isLivePlayback||!this.D||"fairplay"!=this.D.flavor){var b=eva(this.j,this.fL);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.je());this.ra("cuepointupdated",b,a);this.fL+=b.length;if(oO(this)&&this.Ia.Id())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.fF.start=this.CD,this.fF.end=
c+3)}}};
g.k.uj=function(){return this.me?!0:!!this.j&&fI(this.j)};
g.k.ek=function(){if(this.cotn)return null;var a=g.SM(this.Ia)||this.N("web_l3_storyboard");if(!this.wk)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.wk=new bO(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=oba(this.j.j).index)&&(this.wk=new cO(b.spec,this.j.isLive,c,a))}else this.Zx?this.wk=new bO(this.Zx,this.lengthSeconds,void 0,!1,a):this.Qx&&this.j&&
(b=oba(this.j.j).index)&&(this.wk=new cO(this.Qx,this.j.isLive,b,a));return this.wk};
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.Zx||this.Qx};
g.k.Pe=function(){return this.j&&!isNaN(this.j.Pe())?this.j.Pe():oO(this)?this.N("html5_live_seek_timeline_timestamps")||this.N("html5_sabr_live")?46800:0:this.lengthSeconds};
g.k.je=function(){return this.j&&!isNaN(this.j.je())?this.j.je():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.j&&this.u){var b=this.j.j[this.u.id];if(!b)return null;var c=b.index.Lh(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.Fe=function(){return!this.isDisposed()&&!(!this.videoId&&!this.Jl)};
g.k.Ov=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 fO(this)&&!this.eh&&!this.Om};
g.k.Kg=function(a){if(30==this.Ga)return(a=this.V["default.jpg"])?a:this.videoId?g.Yj("//docs.google.com/vt",{id:this.videoId,authuser:this.MR,authkey:this.lT}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.V[a];return b||this.Ia.Ba||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:NM(this.Ia,this.videoId,a)};
g.k.Jc=function(){return this.isLivePlayback||this.Re||this.kd||!(!this.liveUtcStartSeconds||!this.Gl)};
g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.Re&&!this.isLivePlayback&&this.j.u)};
g.k.getAvailableAudioTracks=function(){return this.B?0<this.B.getAvailableAudioTracks().length?this.B.getAvailableAudioTracks():this.Px||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.C&&!KK(this.C))return g.Db(this.getAvailableAudioTracks(),function(d){return d.id==a.C.id})||this.Im;
if(this.Px){if(!this.Jo)for(var b=g.u(this.Px),c=b.next();!c.done;c=b.next())if(c=c.value,c.Nc.getIsDefault()){this.Jo=c;break}return this.Jo||this.Im}return this.Im};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getHeartbeatResponse=function(){return this.PK};
g.k.Wk=function(){return this.watchUrl?this.watchUrl:this.Ia.getVideoUrl(this.videoId)};
g.k.RN=function(){return!!this.j&&(Sua(this.j)||Tua(this.j)||Uua(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.BQ=function(){return Pya(this)?this.GT:this.tp||this.og};
g.k.SE=function(){return this.xj||this.og};
g.k.xL=function(){return kO(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.WP=function(a,b,c){this.ra("ctmpstr",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.xa=function(){g.SG.prototype.xa.call(this);this.aB=null;delete this.d3;delete this.accountLinkingConfig;delete this.j;this.B=this.PK=this.playerResponse=this.Ad=null;this.If=this.adaptiveFormats="";delete this.botguardData;this.Qd=this.suggestions=this.nx=null};VO.prototype.D=function(){return!1};
VO.prototype.Ma=function(){return function(){return null}};var eAa=null;g.x(dAa,g.SG);dAa.prototype.DC=function(a){return this.j.hasOwnProperty(a)?this.j[a].DC():{}};
g.Qa("ytads.bulleit.getVideoMetadata",function(a){return aP().DC(a)});
g.Qa("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=aP();c=cAa(c);null!==c&&d.ra(c,{queryId:a,viewabilityString:b})});g.x(fP,VO);fP.prototype.isSkippable=function(){return null!=this.Ga};
fP.prototype.ud=function(){return this.V};
fP.prototype.getVideoUrl=function(){return null};
fP.prototype.D=function(){return!0};g.x(mP,VO);mP.prototype.D=function(){return!0};
mP.prototype.Ma=function(){return function(){return g.Ne("video-ads")}};var $6a={xaa:"FINAL",F_:"AD_BREAK_LENGTH",ffa:"AD_CPN",nfa:"AH",rfa:"AD_MT",ufa:"ASR",yfa:"AW",Tna:"NM",Una:"NX",Vna:"NY",P_:"CONN",Noa:"CPN",rra:"DV_VIEWABILITY",ksa:"ERRORCODE",vsa:"ERROR_MSG",ysa:"EI",g0:"GOOGLE_VIEWABILITY",iBa:"IAS_VIEWABILITY",tEa:"LACT",C2:"LIVE_TARGETING_CONTEXT",aKa:"I_X",bKa:"I_Y",sMa:"MT",GMa:"MIDROLL_POS",HMa:"MIDROLL_POS_MS",eNa:"MOAT_INIT",fNa:"MOAT_VIEWABILITY",K2:"P_H",aUa:"PV_H",bUa:"PV_W",L2:"P_W",uUa:"TRIGGER_TYPE",gXa:"SDKV",O2:"SLOT_POS",o3a:"SURVEY_LOCAL_TIME_EPOCH_S",
n3a:"SURVEY_ELAPSED_MS",Z2:"VIS",w9a:"VIEWABILITY",D9a:"VED",b3:"VOL",G9a:"WT",g3:"YT_ERROR_CODE"};var rAa=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];sAa.prototype.send=function(a,b,c,d){try{tAa(this,a,b,c,void 0===d?!1:d)}catch(e){}};g.x(rP,sAa);rP.prototype.j=function(){return this.Vl?g.ZM(this.Vl.W(),g.PO(this.Vl)):oA("")};
rP.prototype.B=function(){return this.Vl?this.Vl.W().pageId:""};
rP.prototype.u=function(){return this.Vl?this.Vl.W().qa:""};
rP.prototype.N=function(a){return this.Vl?this.Vl.N(a):!1};var Teb=eaa(["attributionsrc"]);
tP.prototype.send=function(a,b,c){var d=!1;try{var e=new g.Ml(a);if("2"===e.u.get("ase"))g.tG(Error("Queries for attributionsrc label registration when sending pings.")),d=!0,a=yAa(a);else if("1"===e.u.get("ase")&&"video_10s_engaged_view"===e.u.get("label")){var f=document.createElement("img");kga([new Zk(Teb[0].toLowerCase(),dna)],f,"attributionsrc",a+"&asr=1")}var h=a.match(Ij);if("https"===h[1])var l=a;else h[1]="https",l=Gj("https",h[2],h[3],h[4],h[5],h[6],h[7]);var m=Ska(l);h=[];Yz(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.Uu.send({baseUrl:l,scrubReferrer:m,headers:h},b,c,d)}catch(n){}};g.x(AAa,g.G);g.x(HP,g.SG);g.k=HP.prototype;g.k.DC=function(){return{}};
g.k.QY=function(){};
g.k.Sh=function(a){this.qv();this.ra(a)};
g.k.qv=function(){JAa(this,this.qa,3);this.qa=[]};
g.k.getDuration=function(){return this.I.getDuration(2,!1)};
g.k.TC=function(){var a=this.jb;uP(a)||!AP(a,"impression")&&!AP(a,"start")||AP(a,"abandon")||AP(a,"complete")||AP(a,"skip")||DP(a,"pause");this.B||(a=this.jb,uP(a)||!AP(a,"unmuted_impression")&&!AP(a,"unmuted_start")||AP(a,"unmuted_abandon")||AP(a,"unmuted_complete")||DP(a,"unmuted_pause"))};
g.k.UC=function(){this.Ba||this.K||this.un()};
g.k.Si=function(){EAa(this.jb,this.getDuration());if(!this.B){var a=this.jb;this.getDuration();uP(a)||(GAa(a,0,!0),HAa(a,0,0,!0),vP(a,"unmuted_complete"))}};
g.k.Jq=function(){var a=this.jb;!AP(a,"impression")||AP(a,"skip")||AP(a,"complete")||zP(a,"abandon");this.B||(a=this.jb,AP(a,"unmuted_impression")&&!AP(a,"unmuted_complete")&&zP(a,"unmuted_abandon"))};
g.k.pN=function(){var a=this.jb;a.daiEnabled?vP(a,"skip"):!AP(a,"impression")||AP(a,"abandon")||AP(a,"complete")||vP(a,"skip")};
g.k.un=function(){if(!this.K){var a=this.jb,b=this.I.getVideoData(2);a.macros.AD_CPN=b&&b.clientPlaybackNonce||"";a=this.jb;a.daiEnabled?(b=a.u.getCurrentTime(2,!1),xP(a,"impression",b,0)):vP(a,"impression");vP(a,"start");uP(a)||a.u.isFullscreen()&&zP(a,"fullscreen");this.K=!0;this.B=this.I.isMuted()||0==this.I.getVolume();this.B||(a=this.jb,vP(a,"unmuted_impression"),vP(a,"unmuted_start"),uP(a)||a.u.isFullscreen()&&zP(a,"unmuted_fullscreen"))}};
g.k.mp=function(a){a=a||"";var b="",c="",d="";WO(this.I)&&(b=this.I.Nb(2).state,this.I.Qe()&&(c=this.I.Qe().Qj(),null!=this.I.Qe().tf()&&(d=this.I.Qe().tf())));var e=this.jb;e.macros=qP(e.macros,qAa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));vP(e,"error");this.B||(e=this.jb,e.macros=qP(e.macros,qAa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d))),vP(e,"unmuted_error"))};
g.k.yh=function(){};
g.k.xY=function(){this.ra("adactiveviewmeasurable")};
g.k.yY=function(){this.ra("adfullyviewableaudiblehalfdurationimpression")};
g.k.zY=function(){this.ra("adoverlaymeasurableimpression")};
g.k.AY=function(){this.ra("adoverlayunviewableimpression")};
g.k.BY=function(){this.ra("adoverlayviewableendofsessionimpression")};
g.k.CY=function(){this.ra("adoverlayviewableimmediateimpression")};
g.k.DY=function(){this.ra("adviewableimpression")};
g.k.dispose=function(){this.isDisposed()||(this.qv(),this.j.unsubscribe("adactiveviewmeasurable",this.xY,this),this.j.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.yY,this),this.j.unsubscribe("adoverlaymeasurableimpression",this.zY,this),this.j.unsubscribe("adoverlayunviewableimpression",this.AY,this),this.j.unsubscribe("adoverlayviewableendofsessionimpression",this.BY,this),this.j.unsubscribe("adoverlayviewableimmediateimpression",this.CY,this),this.j.unsubscribe("adviewableimpression",
this.DY,this),delete this.j.j[this.ad.K],g.SG.prototype.dispose.call(this))};
g.k.QU=function(){return""};g.x(LAa,VO);g.x(IP,ZO);g.x(MAa,HP);g.k=MAa.prototype;g.k.NF=function(){0<this.u&&this.un()};
g.k.un=function(){var a=this;this.Lc=new g.Kq(function(){a.Si();for(var b=g.u(a.C.j.completionCommands||[]),c=b.next();!c.done;c=b.next())a.D.executeCommand(c.value,a.macros);a.Sh("adended")},this.u,this);
g.H(this,this.Lc);this.Lc.start();KAa(this,[new IP(this.C.j,this.macros)]);HP.prototype.un.call(this)};
g.k.Jq=function(){HP.prototype.Jq.call(this);this.Sh("adabandoned")};
g.k.Si=function(){HP.prototype.Si.call(this)};
g.k.Sh=function(a){this.Lc&&this.Lc.stop();HP.prototype.Sh.call(this,a)};g.x(NAa,VO);OAa.prototype.create=function(a,b){return a instanceof fP?this.B.create(a,b):a instanceof LAa?this.j.create(a,b):a instanceof NAa?this.u.create(a,b):null};g.x(PAa,HP);g.k=PAa.prototype;g.k.Jq=function(){HP.prototype.Jq.call(this);this.Sh("adabandoned")};
g.k.TC=function(){HP.prototype.TC.call(this);this.ra("adpause",2)};
g.k.UC=function(){HP.prototype.UC.call(this);this.ra("adplay",1)};
g.k.un=function(){HP.prototype.un.call(this);this.u.stop();this.C.T(this.I,g.PG("bltplayback"),this.F1);var a=new g.NG(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.I.hf([a],2);this.ra("adplay",1)};
g.k.Si=function(){HP.prototype.Si.call(this);this.Sh("adended")};
g.k.mp=function(a){HP.prototype.mp.call(this,a);this.Sh("aderror")};
g.k.NF=function(){XO(this.I,!1);var a=this.D.u||{};a.autoplay="1";this.I.cueVideoByPlayerVars(a,2);this.u.start();this.I.playVideo(2);this.I.Qa("onAdIntroStateChange",1)};
g.k.Sh=function(a){this.u.stop();XO(this.I,!0);"adabandoned"!=a&&this.I.Qa("onAdComplete");this.I.Qa("onAdEnd");this.ra(a);this.I.Qa("onAdIntroStateChange",0)};
g.k.F1=function(a){"bltcompletion"==a.getId()&&(this.I.Te("bltplayback",2),EAa(this.jb,this.getDuration()))};var N3a=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"]]);g.x(SAa,ZO);g.x(TAa,HP);g.k=TAa.prototype;g.k.NF=function(){if(this.J){var a=this.u.j;if(!JP(a)){g.tG(Error("adMessageRenderer is not augmented on playAd"));return}a=a.slot;for(var b=g.u(this.J.listeners),c=b.next();!c.done;c=b.next()){var d=c.value;c=a;dBa(d.j(),c);eBa(d.j(),c);d=d.j();d=g.u(d.Jd);for(var e=d.next();!e.done;e=d.next())e.value.Dj(c)}}0>=this.V&&(g.sG(Error("durationMs was specified incorrectly with a value of: "+this.V)),this.Si());this.un();this.I.addEventListener("progresssync",this.oa)};
g.k.Jq=function(){HP.prototype.Jq.call(this);this.Sh("adabandonedreset",!0)};
g.k.un=function(){var a=this.I.W();SH("apbs",void 0,"video_to_ad");HP.prototype.un.call(this);this.C=a.N("disable_rounding_ad_notify")?this.I.getCurrentTime():Math.floor(this.I.getCurrentTime());this.D=this.C+this.V/1E3;g.JM(a)?this.I.Qa("onAdMessageChange",{renderer:this.u.j,startTimeSecs:this.C}):KAa(this,[new SAa(this.u.j)]);a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.sH(),c=this.u.j.videoAdBreakOffsetMsInt64;b&&g.UB("adNotify",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*
this.D),timeToAdBreakSec:Math.ceil(this.D-this.C),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.J){this.ea=!0;b=this.u.j;if(!JP(b)){g.tG(Error("adMessageRenderer is not augmented on ad started"));return}a=b.slot;b=b.layout;c=g.u(this.J.listeners);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a,f=b;fBa(d.j(),e);e0(d.j(),e,f)}}g.yP(this.I.Nb(1),512)&&(g.tG(Error("player stuck during adNotify")),a=(a=this.I.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.sH(),c=this.u.j.videoAdBreakOffsetMsInt64,
b&&g.UB("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.D),timeToAdBreakSec:Math.ceil(this.D-this.C),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.Si())};
g.k.Si=function(){HP.prototype.Si.call(this);this.Sh("adended",!0)};
g.k.mp=function(a){g.tG(new g.EB("Player error during adNotify.",{errorCode:a}));HP.prototype.mp.call(this,a);this.Sh("aderror",!0)};
g.k.Sh=function(a,b){(void 0===b?0:b)||g.tG(Error("TerminateAd directly called from other class during adNotify."));this.I.removeEventListener("progresssync",this.oa);this.qv();WAa(this,a);"adended"===a||"aderror"===a?this.ra("adnotifyexitednormalorerror"):this.ra(a)};
g.k.dispose=function(){this.I.removeEventListener("progresssync",this.oa);WAa(this);HP.prototype.dispose.call(this)};
g.k.qv=function(){g.JM(this.I.W())?this.I.Qa("onAdMessageChange",{renderer:null,startTimeSecs:this.C}):HP.prototype.qv.call(this)};XAa.prototype.sendAdsPing=function(a){this.B.send(a,YAa(this),{})};
XAa.prototype.Wg=function(a){var b=this;if(a){var c=YAa(this);Array.isArray(a)?a.forEach(function(d){return b.j.executeCommand(d,c)}):this.j.executeCommand(a,c)}};g.x($Aa,HP);g.k=$Aa.prototype;g.k.DC=function(){return{currentTime:this.I.getCurrentTime(2,!1),duration:this.u.u,isPlaying:$za(this.I),isVpaid:!1,isYouTube:!0,volume:this.I.isMuted()?0:this.I.getVolume()/100}};
g.k.NF=function(){var a=this.u.j.legacyInfoCardVastExtension,b=this.u.ud();a&&b&&this.I.W().Ma.add(b,{WB:a});try{var c=this.u.j.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{Pka(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.Vd("//tpc.googlesyndication.com/sodar/%{path}");g.tG(new g.EB("Load Sodar Error.",d instanceof Qd,d.constructor===Qd,{Message:e.message,"Escaped injector basename":g.Ce(c.siub),"BG vm basename":c.bgub}));if(d.constructor===Qd)throw e;}}catch(e){g.sG(e)}XO(this.I,!1);
a=iAa(this.u);b=this.I.W();a.iv_load_policy=b.u||g.JM(b)||g.SM(b)?3:1;b=this.I.getVideoData(1);b.Zi&&(a.ctrl=b.Zi);b.Hj&&(a.ytr=b.Hj);b.kq&&(a.ytrcc=b.kq);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.Gk&&(a.vss_credentials_token_type=b.Gk),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.ra("adunstarted",-1);this.V?this.D.start():(this.I.cueVideoByPlayerVars(a,2),this.D.start(),this.I.playVideo(2))};
g.k.TC=function(){HP.prototype.TC.call(this);this.ra("adpause",2)};
g.k.UC=function(){HP.prototype.UC.call(this);this.ra("adplay",1)};
g.k.un=function(){HP.prototype.un.call(this);this.D.stop();this.ea.T(this.I,g.PG("bltplayback"),this.G1);var a=new g.NG(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.I.hf([a],2);a=iBa(this);this.C.C=a;if(this.I.isMuted()){a=this.jb;var b=this.I.isMuted();a.daiEnabled||vP(a,b?"mute":"unmute")}this.ra("adplay",1);if(null!==this.J){a=null!==this.C.j.getVideoData(1)?this.C.j.getVideoData(1).clientPlaybackNonce:"";b=bBa(this);for(var c=this.u,d=aBa(this),
e=g.u(this.J.listeners),f=e.next();!f.done;f=e.next()){f=f.value;var h=b,l=c,m=d,n=[],p=l.ud(),q=l.getVideoUrl();p&&n.push(new jE(p));q&&n.push(new kE(q));(q=(p=l.j)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new mE(q)),(q=q.elementId)&&n.push(new wE(q))):wG("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new nE(p));l.j.adNextParams&&n.push(new YD(l.j.adNextParams||""));(p=l.Fa)&&n.push(new ZD(p));(p=f.Wa.get().Nf(2))?
(n.push(new cE({channelId:p.Fk,channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new dE(p.isListed))):wG("Expected meaningful PlaybackData on ad started.");n.push(new fE(l.B));n.push(new DE(l.u));n.push(new lE(a));n.push(new zE({current:this}));p=l.Va;null!=p.kind&&n.push(new eE(p));(p=l.Oa)&&n.push(new RE(p));void 0!==m&&n.push(new SE(m));f.j?wG(f.j.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):
cBa(f,h,n,!0,l.j.adLayoutLoggingData)}}this.I.Qa("onAdStart",iBa(this));a=g.u(this.u.j.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)};
g.k.G1=function(a){"bltcompletion"==a.getId()&&(this.I.Te("bltplayback",2),EAa(this.jb,this.getDuration()),hBa(this,"adended"))};
g.k.Si=function(){HP.prototype.Si.call(this);this.Sh("adended");for(var a=g.u(this.u.j.completeCommands||[]),b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)};
g.k.Jq=function(){HP.prototype.Jq.call(this);this.Sh("adabandoned")};
g.k.cJ=function(){var a=this.jb;uP(a)||zP(a,"clickthrough");this.B||(a=this.jb,uP(a)||zP(a,"unmuted_clickthrough"))};
g.k.fA=function(){this.pN()};
g.k.pN=function(){HP.prototype.pN.call(this);this.Sh("adended")};
g.k.mp=function(a){HP.prototype.mp.call(this,a);this.Sh("aderror")};
g.k.Sh=function(a){this.D.stop();XO(this.I,!0);"adabandoned"!=a&&this.I.Qa("onAdComplete");hBa(this,a);this.I.Qa("onAdEnd",iBa(this));this.ra(a)};
g.k.qv=function(){var a=this.I.W();g.JM(a)&&(g.SM(a)||a.N("enable_topsoil_wta_for_halftime")||a.N("enable_topsoil_wta_for_halftime_live_infra")||g.JM(a))?this.I.Qa("onAdInfoChange",null):HP.prototype.qv.call(this)};
g.k.QY=function(){this.S5&&this.I.playVideo()};
g.k.S5=function(){return 2==this.I.getPlayerState(2)};
g.k.QU=function(a,b){if(!Number.isFinite(a))return g.sG(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.sG(Error("Start time is not earlier than end time")),"";var c=1E3*this.u.u,d=iAa(this.u);d=this.I.wy(d,"",2,c,a,b);a+c>b&&this.I.RA(d,b-a);return d};
g.k.dispose=function(){$za(this.I)&&!this.V&&this.I.stopVideo(2);hBa(this,"adabandoned");HP.prototype.dispose.call(this)};OP.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.identifier;var c=this.j[b];c?b=c:(c={XB:null,KW:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.KW))if(b.KW=c,b.XB){if(c<b.XB.end){a:{c=b.XB;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.Yh;a=a<c.start||c.end<=a?null:a}null!==a&&(b.XB.end=a,this.u.DX(a))}}else if(a=kBa(a,this.B))c=
a.K5,b.XB=a.b4,this.u.iP(c)};
OP.prototype.updateTime=function(){};g.k=PP.prototype;g.k.fv=function(a,b,c,d,e){var f=this;tBa(this,a,b,d,e,function(){f.contentCpn=null;f.adCpn=null;f.videoId=null;f.adVideoId=null;f.adFormat=null;f.B="AD_PLACEMENT_KIND_UNKNOWN";f.actionType="unknown_type";f.yg=!1;f.u=!1;f.C=!b&&0===c})};
g.k.IQ=function(){var a=this.I.getVideoData(1);if(!this.I.N("html5_no_video_to_ad_on_preroll")||null!=a&&a.Oa)this.u=!1,a={},this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId}),PH("video_to_ad",a)};
g.k.wZ=function(){this.u=!1;var a={};this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});PH("ad_to_ad",a)};
g.k.IA=function(){this.u=!1;var a={};this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});PH("ad_to_video",a);sBa(this)};
g.k.qQ=function(){this.yg&&!this.u&&(this.C=!1,this.u=!0,"ad_to_video"!==this.actionType&&(this.I.N("html5_no_video_to_ad_on_preroll")?(this.I.N("html5_remove_deprecated_ticks")||SH("apbs",void 0,this.actionType),SH("pbs",void 0,this.actionType)):(this.I.N("html5_remove_deprecated_ticks")||RH("apbs",void 0,this.actionType),RH("pbs",void 0,this.actionType)),g.Hz("finalize_all_timelines")&&wsa(this.actionType)))};
g.k.reset=function(){return new PP(this.I)};var Ueb,h4,xBa;
Ueb={hga:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Bka:"AUTHENTICATION_MALFORMED",Cka:"AUTHENTICATION_MISSING",Nka:"BAD_REQUEST",Qla:"CAST_SESSION_DEVICE_MISMATCHED",Rla:"CAST_SESSION_VIDEO_MISMATCHED",Sla:"CAST_TOKEN_EXPIRED",Tla:"CAST_TOKEN_FAILED",Ula:"CAST_TOKEN_MALFORMED",yma:"CGI_PARAMS_MALFORMED",zma:"CGI_PARAMS_MISSING",Lqa:"DEVICE_FALLBACK",lsa:"GENERIC_WITH_LINK_AND_CPN",msa:"ERROR_HDCP",tsa:"LICENSE",wsa:"VIDEO_UNAVAILABLE",yza:"FORMAT_UNAVAILABLE",Dza:"GEO_FAILURE",
SAa:"HTML5_AUDIO_RENDERER_ERROR",TAa:"GENERIC_WITHOUT_LINK",UAa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",VAa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",WAa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",kCa:"INVALID_DRM_MESSAGE",VVa:"PURCHASE_NOT_FOUND",WVa:"PURCHASE_REFUNDED",pWa:"RENTAL_EXPIRED",wWa:"RETRYABLE_ERROR",uXa:"SERVER_ERROR",CYa:"SIGNATURE_EXPIRED",E0a:"STOPPED_BY_ANOTHER_PLAYBACK",N1a:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",O1a:"STREAMING_NOT_ALLOWED",P1a:"STREAM_LICENSE_NOT_FOUND",
I3a:"TOO_MANY_REQUESTS",J3a:"TOO_MANY_REQUESTS_WITH_LINK",L3a:"TOO_MANY_STREAMS_PER_ENTITLEMENT",M3a:"TOO_MANY_STREAMS_PER_USER",u8a:"UNSUPPORTED_DEVICE",M8a:"VIDEO_FORBIDDEN",V8a:"VIDEO_NOT_FOUND"};h4={};
g.sU=(h4.ALREADY_PINNED_ON_A_DEVICE="Este v\u00eddeo j\u00e1 foi transferido para o n\u00famero m\u00e1ximo de dispositivos permitido pelo detentor dos Direitos de Autor. Antes de poder reproduzir o v\u00eddeo aqui, o mesmo tem de ser removido noutro dispositivo.",h4.DEVICE_FALLBACK="Lamentamos, mas este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel neste dispositivo",h4.GENERIC_WITH_LINK_AND_CPN="Ocorreu um erro. Tente mais tarde. (ID de reprodu\u00e7\u00e3o: $CPN) $BEGIN_LINKSaiba mais$END_LINK",
h4.LICENSE="Lamentamos, mas ocorreu um erro ao licenciar o v\u00eddeo.",h4.VIDEO_UNAVAILABLE="V\u00eddeo indispon\u00edvel",h4.FORMAT_UNAVAILABLE="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel com a qualidade selecionada. Tente mais tarde.",h4.GEO_FAILURE="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel no seu pa\u00eds.",h4.HTML5_AUDIO_RENDERER_ERROR="Erro do renderizador de \u00e1udio. Reinicie o seu computador.",h4.GENERIC_WITHOUT_LINK="Ocorreu um erro. Tente mais tarde.",h4.HTML5_NO_AVAILABLE_FORMATS_FALLBACK=
"Este formato de v\u00eddeo n\u00e3o \u00e9 suportado.",h4.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="O seu navegador n\u00e3o reconhece, de momento, qualquer dos formatos de v\u00eddeo dispon\u00edveis. $BEGIN_LINKClique aqui para aceder \u00e0s perguntas mais frequentes sobre v\u00eddeo em HTML5.$END_LINK",h4.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="N\u00e3o \u00e9 poss\u00edvel reproduzir este v\u00eddeo no seu navegador. $BEGIN_LINKSaiba mais$END_LINK",h4.INVALID_DRM_MESSAGE="A mensagem espec\u00edfica do sistema DRM \u00e9 inv\u00e1lida.",
h4.PURCHASE_NOT_FOUND="Este v\u00eddeo requer um pagamento.",h4.PURCHASE_REFUNDED="A compra deste v\u00eddeo foi reembolsada.",h4.RENTAL_EXPIRED="O aluguer do v\u00eddeo expirou.",h4.CAST_SESSION_DEVICE_MISMATCHED="O dispositivo na sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao que foi solicitado.",h4.CAST_SESSION_VIDEO_MISMATCHED="O v\u00eddeo na sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao que foi solicitado.",h4.CAST_TOKEN_FAILED="A sess\u00e3o de transmiss\u00e3o encontra-se indispon\u00edvel. Atualize a p\u00e1gina ou tente novamente mais tarde.",
h4.CAST_TOKEN_EXPIRED="A sess\u00e3o de transmiss\u00e3o. Atualize a p\u00e1gina.",h4.CAST_TOKEN_MALFORMED="A sess\u00e3o de transmiss\u00e3o \u00e9 inv\u00e1lida. Atualize a p\u00e1gina ou tente novamente mais tarde.",h4.SERVER_ERROR="Ocorreu um erro interno no servidor. Tente mais tarde.",h4.STOPPED_BY_ANOTHER_PLAYBACK="A sua conta est\u00e1 a reproduzir este v\u00eddeo noutra localiza\u00e7\u00e3o. Atualize esta p\u00e1gina para retomar a visualiza\u00e7\u00e3o.",h4.STREAM_LICENSE_NOT_FOUND="Reprodu\u00e7\u00e3o do v\u00eddeo interrompida. Tente novamente.",
h4.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Foram utilizados demasiados dispositivos/endere\u00e7os IP ao longo do per\u00edodo de 24 horas.",h4.STREAMING_NOT_ALLOWED="A reprodu\u00e7\u00e3o n\u00e3o \u00e9 permitida porque o v\u00eddeo foi atribu\u00eddo a outro dispositivo.",h4.RETRYABLE_ERROR="Ocorreu um erro tempor\u00e1rio no servidor. Tente mais tarde.",h4.TOO_MANY_REQUESTS="Inicie sess\u00e3o para ver este v\u00eddeo.",h4.TOO_MANY_REQUESTS_WITH_LINK="$BEGIN_LINKClique aqui$END_LINK para ver este v\u00eddeo no YouTube.",
h4.TOO_MANY_STREAMS_PER_USER="A reprodu\u00e7\u00e3o parou, uma vez que est\u00e3o a ser reproduzidos demasiados v\u00eddeos pertencentes \u00e0 mesma conta.",h4.TOO_MANY_STREAMS_PER_ENTITLEMENT="A reprodu\u00e7\u00e3o parou, uma vez que este v\u00eddeo est\u00e1 a ser reproduzido em demasiados dispositivos.",h4.UNSUPPORTED_DEVICE="N\u00e3o \u00e9 poss\u00edvel reproduzir neste dispositivo.",h4.VIDEO_FORBIDDEN="O acesso a este v\u00eddeo est\u00e1 interdito.",h4.VIDEO_NOT_FOUND="N\u00e3o \u00e9 poss\u00edvel localizar este v\u00eddeo.",
h4);
xBa={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",5102:"AUTHENTICATION_EXPIRED",
5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};g.QP=!1;g.x(WP,g.G);g.k=WP.prototype;g.k.OF=function(){return this.B};
g.k.oy=function(a){var b="";a&&(EBa(this,a),b=a.j);if(!this.Of()||b)b&&this.Of()!==b&&(this.QF(b),delete this.u,this.C&&(this.C.reject(),delete this.C)),a&&a.u||this.load(),this.V||(this.addEventListener("volumechange",this.rU),this.V=!0)};
g.k.kt=function(a,b){if(this.u)if(Veb&&Iua(this.u)&&!this.u.Cz(a,b)){var c;iL(this,{l:"megms",sr:null==(c=this.va)?void 0:jL(c)});CBa(this);this.stopVideo()}else return this.Xa=this.u,this.u=void 0,this.Xa;a=window.MediaSource?new fL(this,new window.MediaSource,!1):gL&&window.ManagedMediaSource?new fL(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new fL(this,new window.WebKitMediaSource,!1):new fL(this,void 0,!1);this.oy(a.B);this.Xa=a;this.rH=!1;return a};
g.k.playVideo=function(){var a=this;this.ji()&&this.seekTo(0);!this.Of()&&this.B&&(g.sG(Error("playVideo without src")),this.QF(this.B.j),this.B.u||this.load());var b=this.play();!b&&nU&&7<=(iO||0)&&zBa(this,function(){g.bA(function(){DBa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.Qj()&&(nU&&4>iO&&(a=Math.max(.1,a)),this.setCurrentTime(a))};
g.k.Wn=function(){if(!this.u&&this.Xa)if(this.Xa.D)try{var a;iL(this,{l:"mer",sr:null==(a=this.va)?void 0:jL(a),rs:kL(this.Xa)});this.Xa.clear();this.u=this.Xa;this.Xa=void 0}catch(b){a=new g.EB("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.sG(a),this.stopVideo()}else this.stopVideo()};
g.k.stopVideo=function(){var a=this,b;null==(b=this.Xa)||Lua(b);if(!this.u)if(Web){if(!this.C){var c=new tM;c.then(void 0,function(){});
this.C=c;Xeb&&this.pause();g.bA(function(){a.C===c&&(HBa(a),c.resolve())},200)}}else HBa(this)};
g.k.jz=function(){var a=this.Jh();return 0<ZK(a)&&this.getDuration()?YK(a,this.getCurrentTime()):0};
g.k.Fv=function(){var a=this.getDuration();return Infinity===a?1:a?this.jz()/a:0};
g.k.qc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:VK(this.Iv(),",",3),vbu:VK(this.Jh()),vpa:""+ +this.Bo(),vsk:""+ +this.Xg(),ven:""+ +this.ji(),vpr:""+this.getPlaybackRate(),vrs:""+this.Qj(),vns:""+this.aH(),vec:""+this.tf(),vemsg:this.Mf(),vvol:""+this.getVolume(),vdom:""+ +this.PN(),vsrc:""+ +!!this.Of(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.D.Ta(a,b,!1,this);this.uM(a)};
g.k.removeEventListener=function(a,b){this.D.Mc(a,b,!1,this)};
g.k.dispatchEvent=function(a){if(this.C&&"pause"===a.type)return!1;if(Veb){var b,c=(null==(b=a.j)?void 0:b.timeStamp)||Infinity;b=c>performance.now()?c-Date.now()+performance.now():c;c=this.u||this.Xa;if((null==c?0:c.nm())||b<=((null==c?void 0:c.J)||0)){var d;iL(this,{l:"mede",sr:null==(d=this.va)?void 0:jL(d),et:a.type});return!1}if(this.rH)return iL(this,{l:"medes",et:a.type}),c&&"seeking"===a.type&&(c.J=performance.now(),this.rH=!1),!1}return this.D.dispatchEvent(a)};
g.k.pM=function(){this.K=!1};
g.k.mM=function(){this.K=!0;this.AA(!0)};
g.k.rU=function(){this.K&&!this.ZG()&&this.AA(!0)};
g.k.equals=function(a){return!!a&&a.Bb()===this.Bb()};
g.k.xa=function(){this.V&&this.removeEventListener("volumechange",this.rU);Web&&HBa(this);g.G.prototype.xa.call(this)};
var Web=!1,Xeb=!1,Veb=!1,GBa=!1;g.k=g.YP.prototype;g.k.wd=function(){return g.yP(this,8)&&!g.yP(this,512)&&!g.yP(this,64)&&!g.yP(this,2)};
g.k.isCued=function(){return g.yP(this,64)&&!g.yP(this,8)&&!g.yP(this,4)};
g.k.isError=function(){return g.yP(this,128)};
g.k.isSuspended=function(){return g.yP(this,512)};
g.k.mD=function(){return g.yP(this,64)&&g.yP(this,4)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};
var i4={},j4=(i4.BUFFERING="buffering-mode",i4.CUED="cued-mode",i4.ENDED="ended-mode",i4.PAUSED="paused-mode",i4.PLAYING="playing-mode",i4.SEEKING="seeking-mode",i4.UNSTARTED="unstarted-mode",i4),LBa=!1;g.x(gQ,g.SG);g.k=gQ.prototype;g.k.ON=function(){return this.u.Ba()};
g.k.uS=function(){return this.u.C()};
g.k.yW=function(){return this.C instanceof fP};
g.k.onAdEnd=function(a,b){b=void 0===b?!1:b;this.Tn(0);a=b;a=void 0===a?!1:a;this.D=!0;g.qb(this.j);this.B.IA();b=this.u.K();if(null!==b){var c=this.Av,d=this.u.B()&&this.u.B().identifier,e=this.u.j().start,f=OBa(this);c.j&&pBa({driftRecoveryInfo:{contentCpn:c.u,cueIdentifier:d||void 0,driftRecoveryMs:b.toString(),breakDurationMs:Math.round(f-e).toString(),driftFromHeadMs:Math.round(1E3*c.B.Ys()).toString()}});this.u.V()}a||this.daiEnabled?RQ(this.gq,!0):this.J&&this.uS()&&this.yW()?RQ(this.gq,!1,
RBa()):RQ(this.gq,!1);this.B.fv(this.u.u(),!0,0,1,this.isLiveStream())};
g.k.G6=function(){this.onAdEnd()};
g.k.D6=function(){vP(this.j.jb,"active_view_measurable")};
g.k.H6=function(){var a=this.j.jb;uP(a)||CP(a)||vP(a,"active_view_fully_viewable_audible_half_duration")};
g.k.K6=function(){};
g.k.L6=function(){};
g.k.M6=function(){};
g.k.N6=function(){};
g.k.P6=function(){var a=this.j.jb;uP(a)||CP(a)||vP(a,"active_view_viewable")};
g.k.E6=function(){var a=this.j.jb;uP(a)||CP(a)||vP(a,"audio_audible")};
g.k.F6=function(){var a=this.j.jb;uP(a)||CP(a)||vP(a,"audio_measurable")};
g.k.M4=function(){return this.yW()?[this.C]:[]};
g.k.Md=function(a){if(null!==this.j){this.K||(a=new g.EP(a.state,new g.YP),this.K=!0);var b=a.state;if(g.GP(a,2))this.j.Si();else{var c=a;(this.I.W().experiments.sb("html5_bulleit_handle_gained_playing_state")?c.state.wd()&&!c.qw.wd():c.state.wd())?(this.B.qQ(),this.j.UC()):b.isError()?this.j.mp(b.gh.errorCode):g.GP(a,4)&&(this.D||this.j.TC())}if(null!==this.j){if(g.GP(a,16)&&(b=this.j.jb,!(uP(b)||.5>b.u.getCurrentTime(2,!1)))){c=b.ad;if(c.D()){var d=b.C.I.W().N("html5_dai_enable_active_view_creating_completed_adblock");
Nka(c.K,d)}b.ad.J.seek=!0}0>FP(a,4)&&!(0>FP(a,2))&&(b=this.j,c=b.jb,uP(c)||DP(c,"resume"),b.B||(b=b.jb,uP(b)||DP(b,"unmuted_resume")));this.daiEnabled&&g.GP(a,512)&&!g.eQ(a.state)&&this.B.IA()}}};
g.k.onVideoDataChange=function(){if(this.daiEnabled)a:{if(WO(this.I)){var a=this.I.getVideoData(2);a=this.u.qa(a.Tc);if(!a){this.rM();a=!0;break a}(!this.j||this.j&&this.j.ad!==a)&&this.H1(a)}else if(1===this.I.getPresentingPlayerType()&&this.j){this.rM();a=!0;break a}a=!1}else a=!1;return a};
g.k.resume=function(){this.j&&this.j.QY()};
g.k.PU=function(){this.j&&this.j.Sh("adended")};
g.k.rM=function(){this.PU()};
g.k.Tn=function(a){this.gq.Tn(a)};
g.k.I1=function(a){this.gq.j.Qa("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.j.yh(a)};
g.k.eR=function(a){this.daiEnabled&&this.u.D&&this.u.j().start<=a&&a<OBa(this)&&this.I.tv(a,this.u.j().end)};
g.k.H1=function(a){g.qb(this.j);this.j=a=this.NB.create(a,pP(oAa(this.u)),this.u.u());this.W5(a);a.Ba?a.mp("ui_unstable"):a.NF();this.B.fv(this.u.u(),!1,0,1,this.isLiveStream())};
g.k.W5=function(a){a.subscribe("adabandoned",g.db(this.onAdEnd,!0),this);a.subscribe("adabandonedreset",g.db(this.onAdEnd,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.D6,this);a.subscribe("adended",this.onAdEnd,this);a.subscribe("aderror",this.G6,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.H6,this);a.subscribe("adoverlaymeasurableimpression",this.K6,this);a.subscribe("adoverlayunviewableimpression",this.L6,this);a.subscribe("adoverlayviewableendofsessionimpression",
this.M6,this);a.subscribe("adoverlayviewableimmediateimpression",this.N6,this);a.subscribe("adpause",this.uN,this);a.subscribe("adplay",this.uN,this);a.subscribe("adunstarted",this.uN,this);a.subscribe("onAdUxUpdate",this.I1,this);a.subscribe("adviewableimpression",this.P6,this);a.subscribe("adaudioaudible",this.E6,this);a.subscribe("adaudiomeasurable",this.F6,this)};
g.k.uN=function(a){this.Tn(a)};
g.k.isLiveStream=function(){return this.J};
g.k.reset=function(){return new gQ(this.gq,this.I,this.B.reset(),this.u,this.Av,this.wG,this.NB,this.daiEnabled)};
g.k.xa=function(){g.qb(this.j);this.j=null;g.SG.prototype.xa.call(this)};SBa.prototype.create=function(a){return(""===a.oa()?this.j:this.u)(a)};g.x(UBa,fD);var XBa=new gD("screen-created",UBa),mQ=[],VBa=hCa,iCa=0,iQ=new Map,YBa=new Map,ZBa=new Map;var kCa=[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,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,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,156653,144401,117431,133797,153964,128572,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,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,
133622,133621,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,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,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,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,166382,37671,49953,179556,36216,28237,173718,39553,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,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,167637,110386,113746,66557,183215,17310,28631,21589,164817,168011,154946,68012,
162617,60480,184431,138664,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,78314,147799,174049,148649,55761,127098,134841,96368,
67374,48992,146176,176105,49956,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];rQ.prototype.u=function(a){this.client=a};
rQ.prototype.j=function(){this.clear();this.csn=g.sH()};
rQ.prototype.clear=function(){this.C.clear();this.B.clear();this.D.clear();this.csn=null};tQ.prototype.u=function(a){g.Nz(sQ().u).bind(sQ())(a)};
tQ.prototype.clear=function(){g.Nz(sQ().clear).bind(sQ())()};uQ.prototype.u=function(a){this.client=a};
uQ.prototype.zU=function(a,b){var c=this;b=void 0===b?{}:b;g.Nz(function(){var d,e,f,h=(null==(d=g.Q(null==a?void 0:a.commandMetadata,g.A3))?void 0:d.rootVe)||(null==(e=g.Q(null==a?void 0:a.commandMetadata,xcb))?void 0:null==(f=e.screenVisualElement)?void 0:f.uiType);if(h){d=g.Q(null==a?void 0:a.commandMetadata,Ddb);if(null==d?0:d.parentTrackingParams){var l=g.pH(d.parentTrackingParams);if(d.parentCsn)var m=d.parentCsn}else b.clickedVisualElement?l=b.clickedVisualElement:a.clickTrackingParams&&(l=
g.pH(a.clickTrackingParams));a:{d=g.Q(a,g.qO);e=g.Q(a,sdb);if(d){if(e=TBa(d,"VIDEO")){d={token:e,videoId:d.videoId};break a}}else if(e&&(d=TBa(e,"PLAYLIST"))){d={token:d,playlistId:e.playlistId};break a}d=void 0}b=Object.assign({},{cttAuthInfo:d,parentCsn:m},b);if(g.Hz("expectation_logging")){var n;b.loggingExpectations=(null==(n=g.Q(null==a?void 0:a.commandMetadata,xcb))?void 0:n.loggingExpectations)||void 0}wQ(c,h,l,b)}else g.tG(new g.EB("Error: Trying to create a new screen without a rootVeType",
a))})()};
uQ.prototype.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.sH(void 0===c?0:c))?(fCa(this.client,c,g.pH(a),b),b=!0):b=!1:b=!1;return b};
uQ.prototype.visualElementStateChanged=function(a,b,c){c=void 0===c?0:c;0===c&&this.B.has(c)?this.ea.push([a,b]):pCa(this,a,b,c)};var rCa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);zQ.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)};
zQ.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];tCa(this,b)};var Yeb=window.location.hostname.split(".").slice(-2).join("."),k4;AQ.getInstance=function(){k4=g.Sa("yt.clientLocationService.instance");k4||(k4=new AQ,g.Qa("yt.clientLocationService.instance",k4));return k4};
g.k=AQ.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.Fz("INNERTUBE_CLIENT_NAME")?(this.localStorage=uCa(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.rA("YT_CL",JSON.stringify({loctok:a}),15552E3,Yeb,!0))};
g.k.clearLocationPlayabilityToken=function(a){"TVHTML5"===a?(this.localStorage=uCa(this))&&this.localStorage.remove("yt-location-playability-token"):g.tA("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.Fz("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};var wCa;g.x(vCa,vB);vCa.prototype.xC=function(a,b){a=vB.prototype.xC.call(this,a,b);return Object.assign({},a,this.Jw)};var LCa=/[&\?]action_proxy=1/,KCa=/[&\?]token=([\w-]*)/,MCa=/[&\?]video_id=([\w-]*)/,NCa=/[&\?]index=([\d-]*)/,OCa=/[&\?]m_pos_ms=([\d-]*)/,sDa=/[&\?]vvt=([\w-]*)/,FCa="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(" "),PCa="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(" "),HCa={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"},ICa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},QCa={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};DQ.prototype.Lz=function(a){this.player.di().tick(a)};
DQ.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return DCa(this,a,b);var d=1===this.j;d&&this.Lz("a_bid_s");var e=zCa();if(null!==e)return d&&this.Lz("a_bid_f"),DCa(this,a,b,e);e=ACa();d&&Sf(e,function(){c.Lz("a_bid_f")});
return e.then(function(f){return DCa(c,a,b,f)})};
DQ.prototype.reset=function(){this.u=this.j=1};g.x(FQ,g.SG);FQ.prototype.uS=function(){return this.j.C()};
FQ.prototype.ON=function(){return!1};
FQ.prototype.onAdUxClicked=function(){};
FQ.prototype.eR=function(){};g.x(tDa,VO);Object.freeze([LAa,NAa,mP,tDa,fP]);xDa.prototype.cV=function(){return this.j};g.x(GQ,g.G);GQ.prototype.addEventListener=function(a,b){this.j=b};
GQ.prototype.removeEventListener=function(){this.j=null};
g.x(HQ,g.G);HQ.prototype.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};
HQ.prototype.removeEventListener=function(a,b){this.j.removeEventListener(a,b)};g.x(VDa,g.G);var IQ=null,JQ=null,KQ=null,ZDa=null;g.Qa("yt.www.ads.eventcache.getLastCompanionData",function(){return IQ});
g.Qa("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Qa("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return JQ});
g.Qa("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return KQ});
g.Qa("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return ZDa});var iEa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.x(NQ,g.G);NQ.prototype.xa=function(){this.Ff.clear();g.G.prototype.xa.call(this)};
NQ.prototype.Wg=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)};
NQ.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&jEa(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?fEa(this,e):"confirmDialogEndpoint"===d?gEa(this,e):iEa.hasOwnProperty(d)||jEa(this,d,e,b,c)}};g.x(PQ,PP);g.k=PQ.prototype;g.k.fv=function(){};
g.k.IQ=function(){};
g.k.wZ=function(){};
g.k.IA=function(){};
g.k.qQ=function(){};
g.k.reset=function(){return new PQ(this.I)};g.x(mEa,g.G);g.x(pEa,g.SG);g.k=pEa.prototype;
g.k.xa=function(){this.D=!0;g.nB(this.J);if(aAa(this.j)){var a=bLa(this.j);a.removeEventListener("updateKevlarOrC3Companion",WDa);a.removeEventListener("updateEngagementPanelAction",XDa);a.removeEventListener("changeEngagementPanelVisibility",YDa);window.removeEventListener("yt-navigate-start",$Da);ZDa=KQ=JQ=IQ=null}a=g.u(this.B.values());for(var b=a.next();!b.done;b=a.next())rEa(this,b.value);RQ(this,!1);this.K.clear();this.eb.clear();g.qb(this.V);this.V=new Map;g.qb(this.Ga);this.Ga=new Map;this.B.clear();
g.SG.prototype.xa.call(this)};
g.k.iP=function(){};
g.k.DX=function(a){var b=1E3*a;this.u&&this.u.eR(b);for(var c=g.u(this.B.values()),d=c.next();!d.done;d=c.next())d.value.eR(b);g.Yb(this.ea.j,1E3*a)};
g.k.Tn=function(a){this.j.Tn(a)};
g.k.oZ=function(){var a=this.j.getVideoData(2);return a&&a.isListed&&!this.oa?(wG("showInfoBarDuring Ad returns true"),!0):!1};
g.k.Bc=function(a){if(this.u){var b=this.u;if(b.j&&(b=b.j,b.K)){var c=b.jb,d=b.getDuration();!uP(c)&&0<d&&(BAa(c,a),c.daiEnabled?CAa(c,a,d):DAa(c,a,d,!1));b.B||(c=b.jb,b=b.getDuration(),!uP(c)&&0<b&&(GAa(c,a),HAa(c,a,b,!1)))}}};
g.k.executeCommand=function(a,b,c){var d=this.Ya,e=d.executeCommand;if(c=void 0===c?null:c){var f=!!this.u&&this.u||null;f?(f=f.j,c=f.ad.D()?wP(f.jb,c):{}):c={}}else c={};e.call(d,a,b,c)};
g.k.isDaiEnabled=function(){return!1};
g.k.cV=function(){return this.Ma};g.x(SQ,g.G);SQ.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");a=a.Bb();this.Bb().appendChild(a)};
g.x(TQ,SQ);TQ.prototype.Bb=function(){return this.j};g.x(tEa,g.G);var vEa=new g.Fs("parallelCommand");var xEa=new g.Fs("serialCommand");var zUa=16/9,Zeb=[.25,.5,.75,1,1.25,1.5,1.75,2],$eb=Zeb.concat([3,4,5,6,7,8,9,10,15]);var zEa=1;g.x(g.XQ,g.G);g.k=g.XQ.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.G;var c=a.S,d=a.Na;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.UM&&(a.Y||(a.Y={}),a.Y.focusable="false")}else e=g.bf(a.G);if(c){if(c=YQ(this,e,"class",c))ZQ(this,e,"class",c),this.Zb[c]=e}else if(d){c=g.u(d);for(var f=c.next();!f.done;f=c.next())this.Zb[f.value]=e;ZQ(this,e,"class",d.join(" "))}d=a.Aa;c=a.X;if(d)b=YQ(this,e,"child",d),void 0!==b&&e.appendChild(g.cf(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=YQ(this,e,"child",f),null!=f&&e.appendChild(g.cf(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.wc&&(h=WQ(),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.ff(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],ZQ(this,b,c,"string"===typeof f?
YQ(this,b,c,f):f);return e};
g.k.Ha=function(a){return this.Zb[a]};
g.k.Ja=function(a,b){"number"===typeof b?g.ff(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.pf(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.Qd["{{"+a+"}}"])&&ZQ(this,a[0],a[1],b)};
g.k.xa=function(){this.Zb={};this.Qd={};this.detach();g.G.prototype.xa.call(this)};g.x(g.X,g.XQ);g.k=g.X.prototype;g.k.qe=function(a,b){this.updateValue(b||"content",a)};
g.k.show=function(){this.Gb||(g.Un(this.element,"display",""),this.Gb=!0)};
g.k.hide=function(){this.Gb&&(g.Un(this.element,"display","none"),this.Gb=!1)};
g.k.lc=function(a){this.ea=a};
g.k.Ta=function(a,b,c){return this.T(this.element,a,b,c)};
g.k.T=function(a,b,c,d){c=(0,g.bb)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.Mc=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;tf(a);a.focus()};
g.k.xa=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.XQ.prototype.xa.call(this)};g.x(g.aR,g.X);g.aR.prototype.subscribe=function(a,b,c){return this.Va.subscribe(a,b,c)};
g.aR.prototype.unsubscribe=function(a,b,c){return this.Va.unsubscribe(a,b,c)};
g.aR.prototype.Uh=function(a){return this.Va.Uh(a)};
g.aR.prototype.ra=function(a){return this.Va.ra.apply(this.Va,[a].concat(g.qa(g.Ia.apply(1,arguments))))};var afb=new WeakSet;g.x(bR,g.aR);g.k=bR.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.Eb&&g.Sq(this.element,this.Eb);this.oa=b&&b.adRendererCommands;this.kb=b.xcb;this.macros=c;this.K=b.trackingParams||null;this.J=b.loggingDirectives;null!=this.K?this.ag(this.element,this.K):this.J&&(a=this.element,b=this.J,this.api.ag(a,this,!0),this.api.gg(a,b.trackingParams||null))};
g.k.clear=function(){};
g.k.hide=function(){g.aR.prototype.hide.call(this);(null!=this.K||this.J)&&this.Za(this.element,!1)};
g.k.show=function(){g.aR.prototype.show.call(this);if(!this.hc){this.hc=!0;var a=this.oa&&this.oa.impressionCommand,b,c=null==(b=this.kb)?void 0:b.onFirstVisible;a?this.GE(a):c&&(a=yEa(c))&&this.GE(a)}(null!=this.K||this.J)&&this.Za(this.element,!0)};
g.k.onClick=function(a){if((this.K||this.J)&&!afb.has(a)){var b=this.element;this.api.rj(b)&&this.Gb&&this.api.ub(b,this.interactionLoggingClientData);afb.add(a)}a=this.oa&&this.oa.clickCommand;var c;b=null==(c=this.kb)?void 0:c.onTap;a?(c=this.wY(a),this.GE(c)):b&&(c=yEa(b))&&this.GE(c)};
g.k.wY=function(a){return a};
g.k.M1=function(a){var b=this.Ba;b.K=!0;b.u=a.touches.length;b.j.isActive()&&(b.j.stop(),b.D=!0);a=a.touches;b.J=uEa(b,a)||1!=a.length;var c=a.item(0);b.J||!c?(b.V=Infinity,b.ea=Infinity):(b.V=c.clientX,b.ea=c.clientY);for(c=b.B.length=0;c<a.length;c++){var d=a.item(c);b.B.push(d.identifier)}};
g.k.L1=function(a){var b=this.Ba;a=a.changedTouches.item(0);var c;if(c=Hc()){c=g.nc();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(Jc())d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10";else if(jc(g.nc(),"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(Fc()?"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.mc(d||"",8))}if(c||a&&Math.pow(a.clientX-b.V,2)+Math.pow(a.clientY-b.ea,2)>Math.pow(5,2))b.C=!0};
g.k.K1=function(a){if(this.Ba){var b=this.Ba,c=a.changedTouches;c&&b.K&&1==b.u&&!b.C&&!b.D&&!b.J&&uEa(b,c)&&(b.oa=a,b.j.start());b.u=a.touches.length;0===b.u&&(b.K=!1,b.C=!1,b.B.length=0);b.D=!1}};
g.k.GE=function(a){this.layoutId?this.tb.executeCommand(a,this.layoutId):g.sG(new g.EB("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
g.k.ag=function(a,b){this.api.ag(a,this);this.api.gg(a,b)};
g.k.Za=function(a,b){this.api.rj(a)&&this.api.Za(a,b,this.interactionLoggingClientData)};
g.k.xa=function(){this.clear(null);this.Mc(this.wb);for(var a=g.u(this.Ga),b=a.next();!b.done;b=a.next())this.Mc(b.value);g.aR.prototype.xa.call(this)};g.x(iR,bR);
iR.prototype.init=function(a,b,c){bR.prototype.init.call(this,a,b,c);this.j=b;if(null==b.text&&null==b.icon)g.tG(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.Sq(this.element,a);null!=b.text&&(a=g.VG(b.text),g.ec(a)||(this.element.setAttribute("aria-label",a),this.B=new g.aR({G:"span",S:"ytp-ad-button-text",Aa:a}),g.H(this,this.B),this.B.Ja(this.element)));this.api.W().N("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&&
b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.ec(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);null!=b.icon&&(b=hR(b.icon),null!=b&&(this.u=new g.aR({G:"span",S:"ytp-ad-button-icon",X:[b]}),g.H(this,this.u)),this.C?g.ff(this.element,this.u.element,0):this.u.Ja(this.element))}};
iR.prototype.clear=function(){this.hide()};
iR.prototype.onClick=function(a){bR.prototype.onClick.call(this,a);a=g.u(bFa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.tb.executeCommand(b,this.layoutId):g.sG(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.x(jR,g.G);jR.prototype.xa=function(){this.u&&g.gB(this.u);this.j.clear();kR=null;g.G.prototype.xa.call(this)};
jR.prototype.register=function(a,b){b&&this.j.set(a,b)};
var kR=null;g.x(mR,bR);
mR.prototype.init=function(a,b,c){bR.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.Q(b.button,g.pO)||null;null==b?g.sG(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new iR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),g.H(this,this.button),this.button.init(YO("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.VG(a)),this.button.Ja(this.element),this.D&&!g.Rq(this.button.element,"ytp-ad-clickable")&&g.Sq(this.button.element,
"ytp-ad-clickable"),a&&(this.u=new g.aR({G:"div",S:"ytp-ad-hover-text-container"}),this.C&&(b=new g.aR({G:"div",S:"ytp-ad-hover-text-callout"}),b.Ja(this.u.element),g.H(this,b)),g.H(this,this.u),this.u.Ja(this.element),b=lR(a),g.ff(this.u.element,b,0)),this.show())};
mR.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();bR.prototype.hide.call(this)};
mR.prototype.show=function(){this.button&&this.button.show();bR.prototype.show.call(this)};g.x(oR,bR);
oR.prototype.init=function(a,b,c){bR.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&nR(a)||"";g.ec(c)?.01>Math.random()&&g.tG(Error("Found AdImage without valid image URL")):(this.j?g.Un(this.element,"backgroundImage","url("+c+")"):Oe(this.element,{src:c}),Oe(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())};
oR.prototype.clear=function(){this.hide()};g.x(pR,bR);g.k=pR.prototype;g.k.hide=function(){bR.prototype.hide.call(this);this.B&&this.B.focus()};
g.k.show=function(){this.B=document.activeElement;bR.prototype.show.call(this);this.C.focus()};
g.k.init=function(a,b,c){bR.prototype.init.call(this,a,b,c);this.u=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.sG(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.sG(Error("ConfirmDialogRenderer.cancelLabel was not set.")):fFa(this,b):g.sG(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.nB(this.j);this.hide()};
g.k.PO=function(){this.hide()};
g.k.DK=function(){var a=this.u.cancelEndpoint;a&&(this.layoutId?this.tb.executeCommand(a,this.layoutId):g.sG(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.k.QO=function(){var a=this.u.confirmNavigationEndpoint||this.u.confirmEndpoint;a&&(this.layoutId?this.tb.executeCommand(a,this.layoutId):g.sG(Error("Missing layoutId for confirm dialog.")));this.hide()};g.x(qR,bR);g.k=qR.prototype;
g.k.init=function(a,b,c){bR.prototype.init.call(this,a,b,c);this.u=b;if(null==b.defaultText&&null==b.defaultIcon)g.sG(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.sG(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.Sq(this.C,a)}a={};b.defaultText?
(c=g.VG(b.defaultText),g.ec(c)||(a.buttonText=c,this.j.setAttribute("aria-label",c),this.api.W().experiments.sb("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",c))):g.uo(this.Fa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.B.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=hR(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.qa=!0,c=hR(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",
c)):(g.uo(this.V,!0),g.uo(this.D,!1)),g.uo(this.j,!1)):g.uo(this.B,!1);g.id(a)||this.update(a);b.isToggled&&(g.Sq(this.C,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));gFa(this);this.T(this.element,"change",this.ES);this.show()}};
g.k.onClick=function(a){0<this.Ga.length&&(this.toggleButton(!this.isToggled()),this.ES());bR.prototype.onClick.call(this,a)};
g.k.ES=function(){g.Wq(this.C,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.u(hFa(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.tb.executeCommand(b,this.layoutId):g.sG(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);gFa(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.Wq(this.C,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;gFa(this)};
g.k.isToggled=function(){return this.j.checked};g.x(rR,lB);rR.prototype.J=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 RG&&this.C(b)}};g.x(iFa,bR);g.k=iFa.prototype;g.k.init=function(a,b,c){bR.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.sG(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.tG(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.tG(Error("AdFeedbackRenderer.title was not set.")),mFa(this,b)):g.sG(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){jB(this.D);jB(this.V);this.C.length=0;this.hide()};
g.k.hide=function(){this.j&&this.j.hide();this.u&&this.u.hide();bR.prototype.hide.call(this);this.B&&this.B.focus()};
g.k.show=function(){this.j&&this.j.show();this.u&&this.u.show();this.B=document.activeElement;bR.prototype.show.call(this);this.D.focus()};
g.k.yX=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.ra("a");this.hide()};
g.k.k9=function(){this.hide()};
nFa.prototype.Bb=function(){return this.j.element};
nFa.prototype.isChecked=function(){return this.B.checked};g.x(sR,pR);sR.prototype.PO=function(a){pR.prototype.PO.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
sR.prototype.DK=function(a){pR.prototype.DK.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
sR.prototype.QO=function(a){pR.prototype.QO.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.ra("b")};g.x(oFa,bR);g.k=oFa.prototype;
g.k.init=function(a,b,c){bR.prototype.init.call(this,a,b,c);this.D=b;if(null==b.dialogMessage&&null==b.title)g.sG(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.tG(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.Q(b.closeOverlayRenderer,g.pO)||null)this.j=new iR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.H(this,this.j),this.j.init(YO("button"),a,this.macros),this.j.Ja(this.element);b.title&&(a=g.VG(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=lR(a[c]);if(!g.ec(d.textContent)){var e=af("LI");e.appendChild(d);this.Ma.appendChild(e)}}else g.uo(this.Ma,!1);b.dialogMessage&&(a=lR(b.dialogMessage,!0),this.Ya.appendChild(a));b.confirmLabel&&(a=g.VG(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=g.Q(b.muteAdRenderer,g.pO)||null)&&
(a=b.navigationEndpoint&&g.Q(b.navigationEndpoint,qdb)||null,c=b.navigationEndpoint&&g.Q(b.navigationEndpoint,$bb)||null,null==a&&null==c?g.tG(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?pFa(this,a):c&&qFa(this,c),this.B=new iR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.H(this,this.B),this.B.init(YO("button"),b,this.macros),this.B.Ta("click",
this.P7,this),this.B.Ja(this.ob)));rFa(this)}};
g.k.clear=function(){jB(this.V);this.hide()};
g.k.hide=function(){this.u?this.u.hide():this.C&&this.C.hide();this.j&&this.j.hide();this.B&&this.B.hide();bR.prototype.hide.call(this);this.qa&&this.qa.focus()};
g.k.show=function(){this.j&&this.j.show();this.B&&this.B.show();if(!this.Oa){for(var a=g.u(this.D&&this.D.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.tb.executeCommand(b,this.layoutId):g.sG(Error("Missing layoutId for ad info dialog."));this.Oa=!0}this.qa=document.activeElement;bR.prototype.show.call(this);this.V.focus()};
g.k.FS=function(){if(this.D&&this.D.confirmServiceEndpoint){var a=this.D.confirmServiceEndpoint;this.layoutId?this.tb.executeCommand(a,this.layoutId):g.sG(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.ra("d");this.hide()};
g.k.P7=function(){var a=this.u?this.u:this.C;a&&!a.Gb&&(this.hide(),a.show())};g.x(tR,mR);tR.prototype.init=function(a,b,c){mR.prototype.init.call(this,a,b,c);a=b.button&&g.Q(b.button,g.pO)||null;null!=a&&(wFa(this,a,c),this.show())};
tR.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();mR.prototype.hide.call(this)};
tR.prototype.show=function(){this.button&&this.button.show();mR.prototype.show.call(this)};
tR.prototype.clear=function(){this.hide()};g.x(uR,bR);
uR.prototype.init=function(a,b,c){bR.prototype.init.call(this,a,b,c);this.j=b;this.isTemplated()||g.sf(this.element,cR(this.j));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?nR(a):"",c=(c=this.api.getVideoData(1))&&c.Lo,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.De(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()};
uR.prototype.isTemplated=function(){return this.j.isTemplated||!1};
uR.prototype.clear=function(){this.hide()};var RFa={seekableStart:0,seekableEnd:1,current:0};g.x(vR,bR);vR.prototype.clear=function(){this.dispose()};g.x(g.yR,g.G);g.k=g.yR.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.RF(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.Gb||(zR(this,!0),this.state=1,a?this.delay.start(a):this.RF()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Gb&&(zR(this,!0),this.state=4,this.delay.start(this.B)))};
g.k.RF=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:zR(this,!1);this.state=3;this.delay.start(this.u);break;case 3:this.state=null;this.j&&this.j();break;case 4:this.element.hide();zR(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.RF()};
g.k.xa=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.G.prototype.xa.call(this)};g.x(AR,vR);g.k=AR.prototype;
g.k.init=function(a,b,c){vR.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.sG(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.rb&&(this.C?g.Sq(this.u.element,"modern-countdown-next-to-thumbnail"):g.Sq(this.u.element,"countdown-next-to-thumbnail"));a=b.durationMilliseconds;this.Ma=null==a||0===a?this.j.Ym():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);
this.B.init(YO("ad-text"),d,c);(d=this.api.getVideoData(1))&&d.Lo&&b.thumbnail?this.V.init(YO("ad-image"),b.thumbnail,c):(this.qa.hide(),this.C&&this.rb&&g.Sq(this.B.element,"ytp-ad-preview-text-modern-postroll"))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.u.hide();this.B.hide();this.V.hide();xR(this);vR.prototype.hide.call(this)};
g.k.show=function(){wR(this);this.u.show();this.B.show();this.V.show();vR.prototype.show.call(this)};
g.k.Ew=function(){this.hide()};
g.k.Wt=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ya&&a>=this.Ma?(this.Fa.hide(),this.Ya=!0,this.ra("i")):this.B&&this.B.isTemplated()&&(a=Math.max(0,Math.ceil((this.Ma-a)/1E3)),a!=this.ob&&(xFa(this.B,{TIME_REMAINING:String(a)}),this.ob=a)))}};g.x(zFa,vR);g.k=zFa.prototype;
g.k.init=function(a,b,c){vR.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.Q(b.actionButton,g.pO))&&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.ec(g.De(e[0].url))&&(e[0].url=d.profilePicture)}else g.tG(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.B.init(YO("ad-image"),b.image,c);this.V.init(YO("ad-text"),
b.headline,c);this.C.init(YO("ad-text"),b.description,c);this.u.init(YO("button"),a,c);this.api.W().N("web_enable_instream_ads_link_definition_a11y_bugfix")&&(c=gb(),d=Hq(this.u.element),Gq(this.u.element,d+c));this.qa=a.navigationEndpoint;this.api.yH()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.GS.bind(this));this.Fa=b.startMs||0;wR(this)}else g.sG(Error("FlyoutCtaRenderer has no valid action button."));else g.sG(Error("FlyoutCtaRenderer has no description AdText."));
else g.sG(Error("FlyoutCtaRenderer has no headline AdText."));else g.tG(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){vR.prototype.onClick.call(this,a);this.api.pauseVideo();!g.rf(this.u.element,a.target)&&this.qa&&(this.layoutId?this.tb.executeCommand(this.qa,this.layoutId):g.sG(Error("Missing layoutId for flyout cta.")))};
g.k.Wt=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.Fa&&(xR(this),g.Uq(this.element,"ytp-flyout-cta-inactive"),this.u.element.removeAttribute("tabIndex"))}};
g.k.Ew=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.GS.bind(this))};
g.k.show=function(){this.u&&this.u.show();vR.prototype.show.call(this)};
g.k.hide=function(){this.u&&this.u.hide();vR.prototype.hide.call(this)};
g.k.GS=function(a){"hidden"==a?this.show():this.hide()};g.x(AFa,bR);g.k=AFa.prototype;
g.k.init=function(a,b,c){bR.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.Q(this.j.likeButton,E3),b=this.j.dislikeButton&&g.Q(this.j.dislikeButton,E3),this.B.init(YO("toggle-button"),a,c),this.u.init(YO("toggle-button"),b,c),this.T(this.element,"change",this.HS),this.C.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.tb.executeCommand(a,this.layoutId):g.sG(Error("Missing layoutId for instream user sentiment."))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.u.hide();bR.prototype.hide.call(this)};
g.k.show=function(){this.B.show();this.u.show();bR.prototype.show.call(this)};
g.k.HS=function(){$ka(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.Qa("onYtShowToast",this.j.postMessageAction);this.C.hide()};
g.k.onClick=function(a){0<this.Ga.length&&this.HS();bR.prototype.onClick.call(this,a)};g.x(BR,g.G);g.k=BR.prototype;g.k.xa=function(){this.reset();g.G.prototype.xa.call(this)};
g.k.reset=function(){g.nB(this.C);this.J=!1;this.j&&this.j.stop();this.D.stop();this.B&&(this.B=!1,this.K.play())};
g.k.start=function(){this.reset();this.C.T(this.u,"mouseover",this.JS,this);this.C.T(this.u,"mouseout",this.IS,this);this.oa&&(this.C.T(this.u,"focusin",this.JS,this),this.C.T(this.u,"focusout",this.IS,this));this.j?this.j.start():(this.J=this.B=!0,g.Un(this.u,{opacity:this.ea}))};
g.k.JS=function(){this.B&&(this.B=!1,this.K.play());this.D.stop();this.j&&this.j.stop()};
g.k.IS=function(){this.J?this.D.start():this.j&&this.j.start()};
g.k.UT=function(){this.B||(this.B=!0,this.V.play(),this.J=!0)};var l4={},DFa=(l4["b.f_"]=GFa,l4["j.s_"]=IFa,l4["r.s_"]=JFa,l4["e.h_"]=KFa,l4["i.s_"]=LFa,l4),HFa={adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0}};g.x(CR,vR);g.k=CR.prototype;
g.k.init=function(a,b,c){vR.prototype.init.call(this,a,b,c);this.qa=b;(this.Fa=NFa(this))&&g.tG(Error("hasAdControlInClickCommands_ is true."));if(!b||g.id(b))g.sG(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.id(b.message))g.sG(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=hR(a);null==b?g.sG(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")):(this.B=new g.aR({G:"button",Na:[this.V?
"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],X:[{G:"span",S:this.V?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",X:[b]}]}),g.H(this,this.B),this.B.Ja(this.C.element),this.u=new uR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,"ytp-ad-skip-button-text"),this.V&&this.u.element.classList.add("ytp-ad-skip-button-text-centered"),this.u.init(YO("ad-text"),this.qa.message,c),g.H(this,this.u),g.ff(this.B.element,this.u.element,0));var d=void 0===d?null:d;
c=this.api.W();!(0<this.Ga.length)&&c.u&&(vM?0:"ontouchstart"in document.documentElement&&(vha()||bn()))&&(this.Mc(this.wb),d&&this.Mc(d),this.Ga=[this.T(this.element,"touchstart",this.M1,this),this.T(this.element,"touchmove",this.L1,this),this.T(this.element,"touchend",this.K1,this)])}};
g.k.clear=function(){this.Ma.reset();this.hide()};
g.k.hide=function(){this.C.hide();this.u&&this.u.hide();xR(this);vR.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.B&&(a&&qna(a),!this.api.W().N("ab_sa_ef")||!1!==a.isTrusted)){vR.prototype.onClick.call(this,a);if(this.api.W().N("fetch_bid_for_dclk_status")){var b;a={contentCpn:(null==(b=this.api.getVideoData(1))?void 0:b.clientPlaybackNonce)||""};EFa(LFa(),"i.s_",{TZ:"sk",metadata:a})}this.ra("j");if(this.Ya||!this.Fa)this.api.onAdUxClicked(this.componentType,this.layoutId)}};
g.k.wY=function(a){if(!this.Ya)return this.Fa&&wG("SkipButton click commands not pruned while ALC exist"),a;var b,c=null==(b=g.Q(a,g.VQ))?void 0:b.commands;if(!c)return a;a=[];for(b=0;b<c.length;b++){var d=c[b];d.adLifecycleCommand&&MFa(d.adLifecycleCommand)||d.pingingEndpoint||d.adPingingEndpoint||a.push(d)}return{commandExecutorCommand:{commands:a}}};
g.k.show=function(){this.Ma.start();this.C.show();this.u&&this.u.show();wR(this);vR.prototype.show.call(this);this.ob&&this.api.W().N("enable_skip_to_next_messaging")&&this.api.ra("showpromotooltip",this.element)};
g.k.Ew=function(){this.ra("k")};
g.k.Wt=function(){};g.x(DR,vR);g.k=DR.prototype;
g.k.init=function(a,b,c){vR.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&g.Q(b.preskipRenderer,V0)||{};(a=g.id(a)?null:a)?(this.V=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3,this.u=new AR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.j,"countdown_next_to_thumbnail"==OL(this.api.W().experiments,"preskip_button_style_ads_backend")&&IM(this.api.W())),this.u.init(YO("preskip-component"),a,c),yFa(this.u),g.H(this,this.u),this.u.Ja(this.element)):
b.skipOffsetMilliseconds&&(this.V=b.skipOffsetMilliseconds);a=b&&b.skippableRenderer&&g.Q(b.skippableRenderer,Ybb)||{};a=g.id(a)?null:a;null==a?g.sG(Error("SkipButtonRenderer was not set in player response.")):(this.B=new CR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.j,this.qa),this.B.init(YO("skip-button"),a,c),g.H(this,this.B),this.B.Ja(this.element),this.api.W().experiments.sb("enable_skip_to_next_messaging")&&(b=g.De(b.targetId))&&(c=this.B,null!=c.B&&(c.ob=!0,c.B.element.setAttribute("data-tooltip-target-id",
b),c.B.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
g.k.show=function(){this.C&&this.B?this.B.show():this.u&&this.u.show();wR(this);vR.prototype.show.call(this)};
g.k.Ew=function(){};
g.k.clear=function(){this.u&&this.u.clear();this.B&&this.B.clear();xR(this);vR.prototype.hide.call(this)};
g.k.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();xR(this);vR.prototype.hide.call(this)};
g.k.Wt=function(){1E3*this.j.getProgressState().current>=this.V&&OFa(this,!0)};g.x(PFa,iR);PFa.prototype.init=function(a,b,c){iR.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.VG(b.text),a=!g.ec(a));a?null==b.navigationEndpoint?g.tG(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.tG(Error("Button style was not a link-style type in renderer,")):this.show():g.tG(Error("No visit advertiser text was present in the renderer."))};g.x(ER,bR);ER.prototype.init=function(a,b,c){bR.prototype.init.call(this,a,b,c);a=b.text;g.ec(cR(a))?g.tG(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.j&&(b=this.api.W(),b=a.text+" "+(b&&b.u?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new uR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),a.init(YO("simple-ad-badge"),b,c),a.Ja(this.element),g.H(this,a)),this.show())};
ER.prototype.clear=function(){this.hide()};g.x(QFa,ZO);g.x(FR,g.SG);g.k=FR.prototype;g.k.Ym=function(){return this.durationMs};
g.k.stop=function(){this.j&&this.Cd.Mc(this.j)};
g.k.Bc=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ra("h")};
g.k.getProgressState=function(){return this.u};
g.k.Md=function(a){g.GP(a,2)&&this.ra("g")};g.x(GR,g.SG);g.k=GR.prototype;g.k.Ym=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.Bc=function(){this.aj+=100;var a=!1;this.aj>this.durationMs&&(this.aj=this.durationMs,this.timer.stop(),a=!0);this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.aj/1E3};this.Hh&&this.Hh.Bc(this.u.current);this.ra("h");a&&this.ra("g")};
g.k.getProgressState=function(){return this.u};g.x(JR,vR);g.k=JR.prototype;g.k.init=function(a,b,c){vR.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.tG(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.u=new uR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb);this.u.init(YO("ad-text"),a,{});this.u.Ja(this.element);g.H(this,this.u)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){xR(this);vR.prototype.hide.call(this)};
g.k.Ew=function(){this.hide()};
g.k.Wt=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&this.u&&(a=(this.j instanceof FR?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.j instanceof GR?a.seekableEnd:this.api.getDuration(2,!1))-a.current,xFa(this.u,{FORMATTED_AD_DURATION_REMAINING:String(g.HR(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
g.k.show=function(){wR(this);vR.prototype.show.call(this)};g.x(SFa,uR);SFa.prototype.onClick=function(a){uR.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.x(MR,g.aR);MR.prototype.Bc=function(){var a=this.u.getProgressState();this.Pc.style.width=100*LR(new KR(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
MR.prototype.onStateChange=function(){g.DM(this.api.W())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.u.subscribe("h",this.Bc,this),this.Bc()):-1!==this.j&&(this.hide(),this.u.Uh(this.j),this.j=-1))};g.x(NR,bR);
NR.prototype.init=function(a,b,c,d){bR.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.Q(c,T0),c=g.Q(c,V0),a?(c=new DR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.j,this.V),c.Ja(this.D),c.init(YO("skip-button"),a,this.macros),g.H(this,c)):c&&(a=new AR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.j,!1),a.Ja(this.D),a.init(YO("ad-preview"),c,this.macros),yFa(a),g.H(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,
c=new AFa(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),c.Ja(this.qa),c.init(YO("instream-user-sentiment"),a,this.macros),g.H(this,c));if(a=g.Q(b,Rbb))if(a=g.Q(a,Rbb))c=new zFa(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.j),g.H(this,c),c.Ja(this.C),c.init(YO("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"An\u00fancio",isTemplated:!1}}),c=new ER(this.api,
this.layoutId,this.interactionLoggingClientData,this.tb,!0),g.H(this,c),c.Ja(this.u),c.init(YO("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new JR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.j,d),g.H(this,d),d.Ja(this.u),d.init(YO("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.Q(b.adInfoRenderer,
U0))&&(a=new tR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.element),g.H(this,a),a.Ja(this.u),a.init(YO("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(d=g.Q(b.visitAdvertiserRenderer,g.pO))&&(a=UFa(this)&&this.B?this.B:this.u)&&(b=new PFa(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),g.H(this,b),b.Ja(a),b.init(YO("visit-advertiser"),d,this.macros),Eq(b.element),d=gb(),a=Hq(b.element),Gq(b.element,a+d));(b=this.api.W())&&!g.BM(b)&&
"3"==b.controlsType&&(b=new MR(this.api,this.j),b.Ja(this.Fa),g.H(this,b));this.api.W().N("enable_updated_html5_player_focus_style")&&g.Sq(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
NR.prototype.clear=function(){this.hide()};var m4={},$Fa=(m4.WEB_UNPLUGGED="^unplugged/",m4.WEB_UNPLUGGED_ONBOARDING="^unplugged/",m4.WEB_UNPLUGGED_OPS="^unplugged/",m4.WEB_UNPLUGGED_PUBLIC="^unplugged/",m4.WEB_CREATOR="^creator/",m4.WEB_KIDS="^kids/",m4.WEB_EXPERIMENTS="^experiments/",m4.WEB_MUSIC="^music/",m4.WEB_REMIX="^music/",m4.WEB_MUSIC_EMBEDDED_PLAYER="^music/",m4.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",m4);RR.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?eD:c;var d={context:g.BQ(a.clickTrackingParams,!1,this.C)};var e=this.j(a);if(e){this.u(d,e,b);var f;b=g.QR(this.B());(e=null==(f=g.Q(a.commandMetadata,g.A3))?void 0:f.apiUrl)&&(b=e);f=Mma(uA(b));a=Object.assign({},{command:a},void 0);d={input:f,du:vA(f),yp:d,config:a};d.config.Yu?d.config.Yu.identity=c:d.config.Yu={identity:c};return d}g.sG(new g.EB("Error: Failed to create Request from Command.",a))};
g.ea.Object.defineProperties(RR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.x(SR,RR);SR.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",du:vA("/getDatasyncIdsEndpoint","GET"),yp:{}}};
SR.prototype.B=function(){return[]};
SR.prototype.j=function(){};
SR.prototype.u=function(){};var bfb={},dGa=(bfb.GET_DATASYNC_IDS=PR(SR),bfb);var iGa="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD".split(" "),kGa=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse"];var oGa=new tF("INNERTUBE_TRANSPORT_TOKEN");g.x(VR,RR);VR.prototype.B=function(){return Sdb};
VR.prototype.j=function(a){return g.Q(a,Hdb)||void 0};
VR.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
g.ea.Object.defineProperties(VR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.x(WR,RR);WR.prototype.B=function(){return Tdb};
WR.prototype.j=function(a){return g.Q(a,Fdb)||void 0};
WR.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
g.ea.Object.defineProperties(WR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.x(YR,RR);YR.prototype.B=function(){return Pdb};
YR.prototype.j=function(a){return g.Q(a,jcb)||void 0};
YR.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
g.ea.Object.defineProperties(YR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.x(ZR,RR);ZR.prototype.B=function(){return Qdb};
ZR.prototype.j=function(a){return g.Q(a,Edb)||void 0};
ZR.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.x($R,RR);$R.prototype.B=function(){return Rdb};
$R.prototype.j=function(a){return g.Q(a,Cdb)||void 0};
$R.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.x(aS,RR);aS.prototype.B=function(){return Odb};
aS.prototype.j=function(a){return g.Q(a,rdb)};
aS.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var cfb=new tF("NETWORK_SLI_TOKEN");bS.prototype.fetch=function(a,b){var c=this,d,e,f;return g.Ha(function(h){c.j&&(d=Hj(g.Rj(5,bk(a,"key")))||"/UNKNOWN_PATH",c.j.start(d));e=b;g.Hz("wug_networking_gzip_request")&&(e=hpa(b));f=new window.Request(a,e);return g.Hz("web_fetch_promise_cleanup_killswitch")?h.return(Promise.resolve(fetch(f).then(function(l){return c.handleResponse(l)}).catch(function(l){g.tG(l)}))):h.return(fetch(f).then(function(l){return c.handleResponse(l)}).catch(function(l){g.tG(l)}))})};
bS.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.zbb(),b=b.then(function(c){g.tG(new g.EB("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})}));
return b};
bS[wF]=[new uF(cfb)];var nGa=new tF("NETWORK_MANAGER_TOKEN");var mGa;dS.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.cA)f.onreadystatechange=function(p){c.cA(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)})};
dS.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.tG(new g.EB("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.tG(new g.EB("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};var rGa=[],qGa=!1;var z2a={adNotify:function(a){var b=new Tu,c=0;try{return void 0!==a.adMediaTimeSec&&(wi(b,1,a.adMediaTimeSec),c++),void 0!==a.adMediaTimeMs&&(N(b,6,a.adMediaTimeMs),c++),void 0!==a.timeToAdBreakSec&&(wi(b,2,a.timeToAdBreakSec),c++),void 0!==a.clientScreenNonce&&(O(b,3,a.clientScreenNonce),c++),void 0!==a.clientPlaybackNonce&&(O(b,4,a.clientPlaybackNonce),c++),void 0!==a.videoAdBreakOffsetSec&&(wi(b,5,a.videoAdBreakOffsetSec),c++),void 0!==a.videoAdBreakOffsetMs&&(N(b,7,a.videoAdBreakOffsetMs),c++),
[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
biscottiBasedDetection:function(a){var b=new Uw,c=0;try{return void 0!==a.detected&&(vi(b,1,a.detected),c++),void 0!==a.source&&(O(b,2,a.source),c++),void 0!==a.contentCpn&&(O(b,3,a.contentCpn),c++),void 0!==a.contentCsn&&(O(b,4,a.contentCsn),c++),void 0!==a.method&&(wi(b,5,a.method),c++),void 0!==a.result&&(wi(b,6,a.result),c++),void 0!==a.detectionResult&&(N(b,9,Pcb[a.detectionResult]),c++),void 0!==a.adCpn&&(O(b,7,a.adCpn),c++),void 0!==a.playbackType&&(O(b,8,a.playbackType),c++),[c===Object.keys(a).length,
b]}catch(d){return Z(d),[!1,void 0]}},
adNotifyFilled:function(a){var b=new Su,c=0;try{return void 0!==a.notifyCompositeType&&(N(b,1,ycb[a.notifyCompositeType]),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
idbTransactionEnded:function(a){var b=new Ky,c=0;try{return void 0!==a.objectStoreNames&&(O(b,1,a.objectStoreNames),c++),void 0!==a.duration&&(b.ul(a.duration),c++),void 0!==a.isSuccessful&&(vi(b,3,a.isSuccessful),c++),void 0!==a.connectionHasUnknownAbortedTransaction&&(vi(b,4,a.connectionHasUnknownAbortedTransaction),c++),void 0!==a.tryCount&&(wi(b,5,a.tryCount),c++),void 0!==a.tag&&(N(b,6,cdb[a.tag]),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
idbUnexpectedlyClosed:function(a){var b=new Ly,c=0;try{return void 0!==a.dbName&&(O(b,1,a.dbName),c++),void 0!==a.dbVersion&&(wi(b,2,a.dbVersion),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
flowEvent:function(a){var b=new Dy,c=0;try{void 0!==a.flowNonce&&(O(b,1,a.flowNonce),c++);if(a.flowEventType){var d=a.flowEventType,e=new Cy,f=0;try{void 0!==d.flowEventNamespace&&(N(e,1,Xcb[d.flowEventNamespace]),f++);void 0!==d.flowEventType&&(wi(e,2,d.flowEventType),f++);var h=[f===Object.keys(d).length,e]}catch(Ma){Z(Ma),h=[!1,void 0]}var l=h;l[0]&&(oi(b,Cy,2,l[1]),c++)}if(a.flowMetadata){var m=a.flowMetadata,n=new By,p=0;try{if(m.notaireContext){var q=m.notaireContext,t=new Kx,v=0;try{if(q.serverInfo){var y=
q.serverInfo,A=new Jx,E=0;try{void 0!==y.id&&(O(A,1,y.id),E++);void 0!==y.forceLog&&(vi(A,2,y.forceLog),E++);var K=[E===Object.keys(y).length,A]}catch(Ma){Z(Ma),K=[!1,void 0]}var I=K;I[0]&&(oi(t,Jx,1,I[1]),v++)}if(q.clientInfo){var F=q.clientInfo,S=new Ix,Y=0;try{void 0!==F.timeSinceReceivedMs&&(N(S,1,F.timeSinceReceivedMs),Y++);var ia=[Y===Object.keys(F).length,S]}catch(Ma){Z(Ma),ia=[!1,void 0]}var ta=ia;ta[0]&&(oi(t,Ix,2,ta[1]),v++)}var na=[v===Object.keys(q).length,t]}catch(Ma){Z(Ma),na=[!1,void 0]}var ca=
na;ca[0]&&(oi(n,Kx,1,ca[1]),p++)}if(m.offlineTransferStatusChangedContext){var ha=m.offlineTransferStatusChangedContext,Da=new Ux,fa=0;try{if(ha.offlineTransferStatusChanged){var U=AIa(ha.offlineTransferStatusChanged);U[0]&&(oi(Da,Tx,1,U[1]),fa++)}var Ua=[fa===Object.keys(ha).length,Da]}catch(Ma){Z(Ma),Ua=[!1,void 0]}var r=Ua;r[0]&&(oi(n,Ux,2,r[1]),p++)}if(m.offlineOrchestrationContext){var V=m.offlineOrchestrationContext,ob=new Mx,Ya=0;try{void 0!==V.entityType&&(wi(ob,1,V.entityType),Ya++);void 0!==
V.entityId&&(O(ob,7,V.entityId),Ya++);void 0!==V.offlineOrchestrationActionType&&(N(ob,6,udb[V.offlineOrchestrationActionType]),Ya++);void 0!==V.offlineOrchestrationActionResult&&(N(ob,2,tdb[V.offlineOrchestrationActionResult]),Ya++);void 0!==V.offlineOrchestrationFailureReason&&(N(ob,10,vdb[V.offlineOrchestrationFailureReason]),Ya++);void 0!==V.isRetryable&&(vi(ob,3,V.isRetryable),Ya++);void 0!==V.isRestored&&(vi(ob,11,V.isRestored),Ya++);if(V.orchestrationAction){var Cb=zJa(V.orchestrationAction);
Cb[0]&&(oi(ob,Lx,4,Cb[1]),Ya++)}V.additionalOrchestrationActions&&(eS(ob.j.bind(ob),V.additionalOrchestrationActions,zJa),Ya++);void 0!==V.intervalSinceEnqueuedMs&&(N(ob,8,V.intervalSinceEnqueuedMs),Ya++);void 0!==V.executionIntervalMs&&(N(ob,9,V.executionIntervalMs),Ya++);var Ab=[Ya===Object.keys(V).length,ob]}catch(Ma){Z(Ma),Ab=[!1,void 0]}var wb=Ab;wb[0]&&(oi(n,Mx,3,wb[1]),p++)}if(m.shortsCreationContext){var Tb=m.shortsCreationContext,Ra=new iy,ib=0;try{void 0!==Tb.shortsCreationSurfaces&&(fS(Ra.j.bind(Ra),
Tb.shortsCreationSurfaces,Gdb),ib++);var w=[ib===Object.keys(Tb).length,Ra]}catch(Ma){Z(Ma),w=[!1,void 0]}var C=w;C[0]&&(oi(n,iy,4,C[1]),p++)}if(m.mdxConnectionContext){var D=m.mdxConnectionContext,B=new Ex,M=0;try{void 0!==D.isReconnection&&(vi(B,1,D.isReconnection),M++);void 0!==D.disconnectReason&&(N(B,2,fdb[D.disconnectReason]),M++);void 0!==D.isRetry&&(vi(B,3,D.isRetry),M++);var L=[M===Object.keys(D).length,B]}catch(Ma){Z(Ma),L=[!1,void 0]}var T=L;T[0]&&(oi(n,Ex,5,T[1]),p++)}if(m.premiumMultiStepPurchaseContext){var W=
m.premiumMultiStepPurchaseContext,oa=new ay,ma=0;try{if(W.selectedOption){var ba=W.selectedOption,pa=new $x,Fa=0;try{void 0!==ba.offerType&&(N(pa,1,ecb[ba.offerType]),Fa++);void 0!==ba.itemType&&(N(pa,2,sS[ba.itemType]),Fa++);void 0!==ba.itemExternalId&&(O(pa,3,ba.itemExternalId),Fa++);var cb=[Fa===Object.keys(ba).length,pa]}catch(Ma){Z(Ma),cb=[!1,void 0]}var rc=cb;rc[0]&&(oi(oa,$x,1,rc[1]),ma++)}void 0!==W.itemType&&(N(oa,2,sS[W.itemType]),ma++);void 0!==W.productType&&(N(oa,3,tS[W.productType]),
ma++);void 0!==W.landingPageVariantId&&(O(oa,4,W.landingPageVariantId),ma++);void 0!==W.experimentStatus&&(N(oa,5,hdb[W.experimentStatus]),ma++);void 0!==W.themeKey&&(O(oa,6,W.themeKey),ma++);void 0!==W.signupType&&(N(oa,7,idb[W.signupType]),ma++);var Kb=[ma===Object.keys(W).length,oa]}catch(Ma){Z(Ma),Kb=[!1,void 0]}var xb=Kb;xb[0]&&(oi(n,ay,6,xb[1]),p++)}if(m.mdxReceiverConnectionContext){var $a=m.mdxReceiverConnectionContext,gc=new Fx,hc=0;try{void 0!==$a.isFromAppLaunch&&(vi(gc,1,$a.isFromAppLaunch),
hc++);void 0!==$a.dialServerType&&(N(gc,2,edb[$a.dialServerType]),hc++);void 0!==$a.supportsSmoothPairing&&(vi(gc,3,$a.supportsSmoothPairing),hc++);void 0!==$a.hasManuallyPairedRemotesOnAppStartup&&(vi(gc,4,$a.hasManuallyPairedRemotesOnAppStartup),hc++);void 0!==$a.mismatchedTheme&&(N(gc,5,acb[$a.mismatchedTheme]),hc++);void 0!==$a.mdxSenderConnectedCounter&&(wi(gc,6,$a.mdxSenderConnectedCounter),hc++);void 0!==$a.externalRouteSource&&(N(gc,7,ddb[$a.externalRouteSource]),hc++);void 0!==$a.appReloadCount&&
(wi(gc,8,$a.appReloadCount),hc++);var Wb=[hc===Object.keys($a).length,gc]}catch(Ma){Z(Ma),Wb=[!1,void 0]}var fd=Wb;fd[0]&&(oi(n,Fx,7,fd[1]),p++)}if(m.parentToolsOnboardingContext){var yc=m.parentToolsOnboardingContext,Sc=new Wx,ud=0;try{void 0!==yc.triggerPoint&&(N(Sc,1,qcb[yc.triggerPoint]),ud++);if(yc.kidsFlowInfo){var Dc=yc.kidsFlowInfo,nd=new Vx,Ed=0;try{void 0!==Dc.kidsFlowVersion&&(N(nd,1,ncb[Dc.kidsFlowVersion]),Ed++);void 0!==Dc.flowLabel&&(O(nd,2,Dc.flowLabel),Ed++);void 0!==Dc.hostClientName&&
(N(nd,3,ocb[Dc.hostClientName]),Ed++);void 0!==Dc.hostClientVersion&&(O(nd,4,Dc.hostClientVersion),Ed++);void 0!==Dc.kidsFlowType&&(N(nd,5,mcb[Dc.kidsFlowType]),Ed++);var zc=[Ed===Object.keys(Dc).length,nd]}catch(Ma){Z(Ma),zc=[!1,void 0]}var ee=zc;ee[0]&&(oi(Sc,Vx,2,ee[1]),ud++)}void 0!==yc.kidsCorpusPreferenceNew&&(N(Sc,3,lcb[yc.kidsCorpusPreferenceNew]),ud++);void 0!==yc.appChoice&&(N(Sc,4,pcb[yc.appChoice]),ud++);void 0!==yc.isKidSignedIn&&(vi(Sc,5,yc.isKidSignedIn),ud++);void 0!==yc.alreadyOnboardedYtk&&
(vi(Sc,6,yc.alreadyOnboardedYtk),ud++);void 0!==yc.alreadyOnboardedSupex&&(vi(Sc,7,yc.alreadyOnboardedSupex),ud++);var Fd=[ud===Object.keys(yc).length,Sc]}catch(Ma){Z(Ma),Fd=[!1,void 0]}var Qe=Fd;Qe[0]&&(oi(n,Wx,8,Qe[1]),p++)}if(m.hashtagAutoCompleteContext){var rb=m.hashtagAutoCompleteContext,Mb=new sx,mg=0;try{void 0!==rb.suggestionSelected&&(wi(Mb,1,rb.suggestionSelected),mg++);var gf=[mg===Object.keys(rb).length,Mb]}catch(Ma){Z(Ma),gf=[!1,void 0]}var Ph=gf;Ph[0]&&(oi(n,sx,9,Ph[1]),p++)}if(m.liveStreamingContext){var gd=
m.liveStreamingContext,hd=new Dx,fe=0;try{void 0!==gd.broadcastSource&&(N(hd,1,wcb[gd.broadcastSource]),fe++);void 0!==gd.isAutoDashboard&&(vi(hd,2,gd.isAutoDashboard),fe++);void 0!==gd.externalVideoId&&(O(hd,3,gd.externalVideoId),fe++);void 0!==gd.broadcastConferenceType&&(N(hd,4,ucb[gd.broadcastConferenceType]),fe++);if(gd.eventData){var Tc=gd.eventData,Ec=new Cx,Re=0;try{if(Tc.webrtcHandshakeOffer){var Se=Tc.webrtcHandshakeOffer,ng=new Bx,xf=0;try{void 0!==Se.localVideoSsrc&&(xi(ng,1,Se.localVideoSsrc),
xf++);void 0!==Se.localAudioSsrc&&(xi(ng,2,Se.localAudioSsrc),xf++);void 0!==Se.participantId&&(N(ng,3,Se.participantId),xf++);var Qh=[xf===Object.keys(Se).length,ng]}catch(Ma){Z(Ma),Qh=[!1,void 0]}var Te=Qh;Te[0]&&(oi(Ec,Bx,1,Te[1]),Re++)}if(Tc.webrtcHandshakeAnswer){var Ue=Tc.webrtcHandshakeAnswer,Tf=new zx,hf=0;try{void 0!==Ue.remoteVideoSsrc&&(xi(Tf,1,Ue.remoteVideoSsrc),hf++);void 0!==Ue.remoteAudioSsrc&&(xi(Tf,2,Ue.remoteAudioSsrc),hf++);var jf=[hf===Object.keys(Ue).length,Tf]}catch(Ma){Z(Ma),
jf=[!1,void 0]}var Rd=jf;Rd[0]&&(oi(Ec,zx,2,Rd[1]),Re++)}if(Tc.webrtcHandshakeError){var Pb=Tc.webrtcHandshakeError,lh=new Ax,Ve=0;try{void 0!==Pb.description&&(O(lh,1,Pb.description),Ve++);var Jj=[Ve===Object.keys(Pb).length,lh]}catch(Ma){Z(Ma),Jj=[!1,void 0]}var yf=Jj;yf[0]&&(oi(Ec,Ax,3,yf[1]),Re++)}if(Tc.costreamStartNotification){var mh=Tc.costreamStartNotification,ve=new vx,Uf=0;try{void 0!==mh.broadcastStartTimeMs&&(N(ve,1,mh.broadcastStartTimeMs),Uf++);var Ng=[Uf===Object.keys(mh).length,ve]}catch(Ma){Z(Ma),
Ng=[!1,void 0]}var nh=Ng;nh[0]&&(oi(Ec,vx,4,nh[1]),Re++)}if(Tc.remoteParticipant){var kf=Tc.remoteParticipant,Rh=new xx,oh=0;try{void 0!==kf.videoSsrc&&(xi(Rh,1,kf.videoSsrc),oh++);void 0!==kf.audioSsrc&&(xi(Rh,2,kf.audioSsrc),oh++);var Kj=[oh===Object.keys(kf).length,Rh]}catch(Ma){Z(Ma),Kj=[!1,void 0]}var uk=Kj;uk[0]&&(oi(Ec,xx,5,uk[1]),Re++)}if(Tc.webcamEventData){var Sd=Tc.webcamEventData,Vf=new yx,og=0;try{void 0!==Sd.videoFrameRate&&(qi(Vf,1,Sd.videoFrameRate),og++);void 0!==Sd.videoAspectRatio&&
(qi(Vf,2,Sd.videoAspectRatio),og++);void 0!==Sd.videoHeight&&(xi(Vf,3,Sd.videoHeight),og++);void 0!==Sd.videoWidth&&(xi(Vf,4,Sd.videoWidth),og++);void 0!==Sd.videoCaptureCursor&&(O(Vf,5,Sd.videoCaptureCursor),og++);void 0!==Sd.videoCaptureSurface&&(O(Vf,6,Sd.videoCaptureSurface),og++);void 0!==Sd.videoCaptureAudioEnabled&&(vi(Vf,7,Sd.videoCaptureAudioEnabled),og++);var vk=[og===Object.keys(Sd).length,Vf]}catch(Ma){Z(Ma),vk=[!1,void 0]}var zf=vk;zf[0]&&(oi(Ec,yx,6,zf[1]),Re++)}if(Tc.errorEventData){var Ic=
Tc.errorEventData,Af=new wx,Sh=0;try{void 0!==Ic.liveClientErrorType&&(N(Af,1,scb[Ic.liveClientErrorType]),Sh++);void 0!==Ic.liveServerErrorType&&(N(Af,2,tcb[Ic.liveServerErrorType]),Sh++);void 0!==Ic.kioskClientApiErrorType&&(N(Af,3,rcb[Ic.kioskClientApiErrorType]),Sh++);var wk=[Sh===Object.keys(Ic).length,Af]}catch(Ma){Z(Ma),wk=[!1,void 0]}var ph=wk;ph[0]&&(oi(Ec,wx,7,ph[1]),Re++)}var Ui=[Re===Object.keys(Tc).length,Ec]}catch(Ma){Z(Ma),Ui=[!1,void 0]}var Vi=Ui;Vi[0]&&(oi(hd,Cx,5,Vi[1]),fe++)}void 0!==
gd.isMonetizationOn&&(vi(hd,6,gd.isMonetizationOn),fe++);void 0!==gd.sharedmdeEnabled&&(vi(hd,7,gd.sharedmdeEnabled),fe++);void 0!==gd.isScreencast&&(vi(hd,8,gd.isScreencast),fe++);void 0!==gd.broadcastLifecycleStatus&&(N(hd,9,vcb[gd.broadcastLifecycleStatus]),fe++);var qh=[fe===Object.keys(gd).length,hd]}catch(Ma){Z(Ma),qh=[!1,void 0]}var Bf=qh;Bf[0]&&(oi(n,Dx,10,Bf[1]),p++)}if(m.touAppealContext){var vd=m.touAppealContext,We=new ry,Cf=0;try{void 0!==vd.scope&&(O(We,1,vd.scope),Cf++);if(vd.videoId){var Wi=
vd.videoId,Xi=new py,xk=0;try{void 0!==Wi.externalVideoId&&(O(Xi,1,Wi.externalVideoId),xk++);var yk=[xk===Object.keys(Wi).length,Xi]}catch(Ma){Z(Ma),yk=[!1,void 0]}var Yi=yk;Yi[0]&&(We.setVideoId(Yi[1]),Cf++)}if(vd.videoThumbnailId){var ge=vd.videoThumbnailId,Wf=new qy,rh=0;try{void 0!==ge.externalVideoId&&(O(Wf,1,ge.externalVideoId),rh++);void 0!==ge.thumbnailVersion&&(N(Wf,3,ge.thumbnailVersion),rh++);void 0!==ge.checksum&&(N(Wf,4,ge.checksum),rh++);var Th=[rh===Object.keys(ge).length,Wf]}catch(Ma){Z(Ma),
Th=[!1,void 0]}var zk=Th;zk[0]&&(pi(We,qy,3,D3,zk[1]),Cf++)}if(vd.playlistId){var Lj=vd.playlistId,Zi=new ly,Og=0;try{void 0!==Lj.externalPlaylistId&&(O(Zi,1,Lj.externalPlaylistId),Og++);var Uh=[Og===Object.keys(Lj).length,Zi]}catch(Ma){Z(Ma),Uh=[!1,void 0]}var Pg=Uh;Pg[0]&&(pi(We,ly,4,D3,Pg[1]),Cf++)}void 0!==vd.urlHostname&&(ki(We,5,D3,Fh(vd.urlHostname)),Cf++);void 0!==vd.encodedTouViolativeContentId&&(O(We,6,vd.encodedTouViolativeContentId),Cf++);void 0!==vd.encodedChannelTouViolativeContentId&&
(O(We,7,vd.encodedChannelTouViolativeContentId),Cf++);if(vd.trainingData){var Df=vd.trainingData,Qg=new oy,Xf=0;try{if(Df.question){var Vh=Df.question,Zb=new ny,Td=0;try{void 0!==Vh.questionId&&(wi(Zb,1,Vh.questionId),Td++);void 0!==Vh.supplementaryInfoId&&(wi(Zb,2,Vh.supplementaryInfoId),Td++);var he=[Td===Object.keys(Vh).length,Zb]}catch(Ma){Z(Ma),he=[!1,void 0]}var Ak=he;Ak[0]&&(oi(Qg,ny,1,Ak[1]),Xf++)}Df.answers&&(eS(Qg.j.bind(Qg),Df.answers,AJa),Xf++);Df.correctAnswers&&(eS(Qg.u.bind(Qg),Df.correctAnswers,
AJa),Xf++);void 0!==Df.strikeId&&(O(Qg,4,Df.strikeId),Xf++);void 0!==Df.preTrainingMaterialId&&(wi(Qg,5,Df.preTrainingMaterialId),Xf++);var ao=[Xf===Object.keys(Df).length,Qg]}catch(Ma){Z(Ma),ao=[!1,void 0]}var lf=ao;lf[0]&&(oi(We,oy,8,lf[1]),Cf++)}var $i=[Cf===Object.keys(vd).length,We]}catch(Ma){Z(Ma),$i=[!1,void 0]}var Bk=$i;Bk[0]&&(oi(n,ry,11,Bk[1]),p++)}if(m.dragAndDropContext){var sh=m.dragAndDropContext,mf=new qx,Wh=0;try{if(sh.rootVe){var aj=gS(sh.rootVe);aj[0]&&(oi(mf,px,1,aj[1]),Wh++)}if(sh.ve){var yl=
gS(sh.ve);yl[0]&&(oi(mf,px,2,yl[1]),Wh++)}var Bm=[Wh===Object.keys(sh).length,mf]}catch(Ma){Z(Ma),Bm=[!1,void 0]}var bo=Bm;bo[0]&&(oi(n,qx,12,bo[1]),p++)}if(m.socialSuggestionsContext){var bj=m.socialSuggestionsContext,Ck=new jy,wd=0;try{void 0!==bj.socialSuggestionsType&&(N(Ck,1,kdb[bj.socialSuggestionsType]),wd++);void 0!==bj.suggestionSelected&&(wi(Ck,2,bj.suggestionSelected),wd++);void 0!==bj.source&&(N(Ck,3,ldb[bj.source]),wd++);var Gd=[wd===Object.keys(bj).length,Ck]}catch(Ma){Z(Ma),Gd=[!1,
void 0]}var Rg=Gd;Rg[0]&&(oi(n,jy,13,Rg[1]),p++)}if(m.featureEnablementContext){var pg=m.featureEnablementContext,cj=new rx,nf=0;try{void 0!==pg.feature&&(N(cj,1,bHa[pg.feature]),nf++);var zl=[nf===Object.keys(pg).length,cj]}catch(Ma){Z(Ma),zl=[!1,void 0]}var Cm=zl;Cm[0]&&(oi(n,rx,14,Cm[1]),p++)}if(m.iapContext){var Ef=m.iapContext,Mj=new ux,Xe=0;try{if(Ef.playIapProduct){var th=Ef.playIapProduct,uh=new tx,dj=0;try{void 0!==th.packageId&&(O(uh,1,th.packageId),dj++);void 0!==th.productId&&(O(uh,2,
th.productId),dj++);var co=[dj===Object.keys(th).length,uh]}catch(Ma){Z(Ma),co=[!1,void 0]}var Sg=co;Sg[0]&&(pi(Mj,tx,1,Vcb,Sg[1]),Xe++)}void 0!==Ef.source&&(N(Mj,2,Zcb[Ef.source]),Xe++);void 0!==Ef.attributionId&&(N(Mj,3,Ef.attributionId),Xe++);void 0!==Ef.externalVideoId&&(O(Mj,4,Ef.externalVideoId),Xe++);void 0!==Ef.externalChannelId&&(O(Mj,5,Ef.externalChannelId),Xe++);var Dk=[Xe===Object.keys(Ef).length,Mj]}catch(Ma){Z(Ma),Dk=[!1,void 0]}var Ek=Dk;Ek[0]&&(oi(n,ux,15,Ek[1]),p++)}if(m.shoppingCheckoutContext){var Al=
m.shoppingCheckoutContext,Bl=new hy,qg=0;try{if(Al.shoppingFlowParams){var Xh=DJa(Al.shoppingFlowParams);Xh[0]&&(oi(Bl,fy,1,Xh[1]),qg++)}void 0!==Al.shoppingCheckoutErrorReason&&(N(Bl,2,jdb[Al.shoppingCheckoutErrorReason]),qg++);var ej=[qg===Object.keys(Al).length,Bl]}catch(Ma){Z(Ma),ej=[!1,void 0]}var of=ej;of[0]&&(oi(n,hy,16,of[1]),p++)}if(m.ypcCancellationContext){var rg=m.ypcCancellationContext,Ye=new yy,sg=0;try{void 0!==rg.itemType&&(N(Ye,1,sS[rg.itemType]),sg++);void 0!==rg.productType&&(N(Ye,
2,tS[rg.productType]),sg++);var fj=[sg===Object.keys(rg).length,Ye]}catch(Ma){Z(Ma),fj=[!1,void 0]}var Cl=fj;Cl[0]&&(oi(n,yy,17,Cl[1]),p++)}if(m.ypcBrowseOffersContext){var tg=m.ypcBrowseOffersContext,Dl=new wy,El=0;try{if(tg.commerceFlowLoggingParams){var Fk=HJa(tg.commerceFlowLoggingParams);Fk[0]&&(oi(Dl,vy,1,Fk[1]),El++)}void 0!==tg.offerType&&(N(Dl,2,fcb[tg.offerType]),El++);void 0!==tg.entityType&&(N(Dl,3,Rcb[tg.entityType]),El++);var we=[El===Object.keys(tg).length,Dl]}catch(Ma){Z(Ma),we=[!1,
void 0]}var ug=we;ug[0]&&(oi(n,wy,18,ug[1]),p++)}if(m.mdxStreamTransferContext){var Nj=m.mdxStreamTransferContext,eo=new Gx,fb=0;try{void 0!==Nj.completedReason&&(N(eo,1,gdb[Nj.completedReason]),fb++);var sr=[fb===Object.keys(Nj).length,eo]}catch(Ma){Z(Ma),sr=[!1,void 0]}var tr=sr;tr[0]&&(oi(n,Gx,19,tr[1]),p++)}if(m.pdgBuyFlowContext){var Oj=m.pdgBuyFlowContext,Ep=new Zx,Fp=0;try{void 0!==Oj.productType&&(N(Ep,1,tS[Oj.productType]),Fp++);if(Oj.entryPointClickedContext){var ti=Oj.entryPointClickedContext,
fo=new Xx,go=0;try{void 0!==ti.superVodBuyFlowEntryPoint&&(ki(fo,1,C3,zdb[ti.superVodBuyFlowEntryPoint]),go++);void 0!==ti.superChatBuyFlowEntryPoint&&(ki(fo,2,C3,xdb[ti.superChatBuyFlowEntryPoint]),go++);void 0!==ti.sharedPdgBuyFlowEntryPoint&&(ki(fo,3,C3,wdb[ti.sharedPdgBuyFlowEntryPoint]),go++);void 0!==ti.superStickerBuyFlowEntryPoint&&(ki(fo,4,C3,ydb[ti.superStickerBuyFlowEntryPoint]),go++);var ur=[go===Object.keys(ti).length,fo]}catch(Ma){Z(Ma),ur=[!1,void 0]}var gu=ur;gu[0]&&(oi(Ep,Xx,2,gu[1]),
Fp++)}if(Oj.itemSelectionPageDisplayedContext){var Gp=Oj.itemSelectionPageDisplayedContext,hu=new Yx,iu=0;try{void 0!==Gp.superStickerBuyFlowType&&(N(hu,1,Adb[Gp.superStickerBuyFlowType]),iu++);var ju=[iu===Object.keys(Gp).length,hu]}catch(Ma){Z(Ma),ju=[!1,void 0]}var ku=ju;ku[0]&&(oi(Ep,Yx,3,ku[1]),Fp++)}var ho=[Fp===Object.keys(Oj).length,Ep]}catch(Ma){Z(Ma),ho=[!1,void 0]}var Hp=ho;Hp[0]&&(oi(n,Zx,20,Hp[1]),p++)}if(m.ypcPurchaseContext){var gj=m.ypcPurchaseContext,Pc=new Ay,vh=0;try{if(gj.commerceFlowLoggingParams){var hj=
HJa(gj.commerceFlowLoggingParams);hj[0]&&(oi(Pc,vy,1,hj[1]),vh++)}void 0!==gj.offerType&&(N(Pc,2,fcb[gj.offerType]),vh++);void 0!==gj.transactionType&&(N(Pc,3,odb[gj.transactionType]),vh++);void 0!==gj.paymentProcessor&&(N(Pc,4,gcb[gj.paymentProcessor]),vh++);var Dm=[vh===Object.keys(gj).length,Pc]}catch(Ma){Z(Ma),Dm=[!1,void 0]}var Em=Dm;Em[0]&&(oi(n,Ay,21,Em[1]),p++)}if(m.webViewContext){var Yh=m.webViewContext,Fm=new ty,Fl=0;try{void 0!==Yh.hostname&&(O(Fm,1,Yh.hostname),Fl++);void 0!==Yh.webViewUseCase&&
(N(Fm,2,Idb[Yh.webViewUseCase]),Fl++);void 0!==Yh.isFirstPartyHost&&(vi(Fm,5,Yh.isFirstPartyHost),Fl++);void 0!==Yh.isLoaded&&(vi(Fm,3,Yh.isLoaded),Fl++);void 0!==Yh.webViewEngagementSec&&(wi(Fm,4,Yh.webViewEngagementSec),Fl++);var lu=[Fl===Object.keys(Yh).length,Fm]}catch(Ma){Z(Ma),lu=[!1,void 0]}var vr=lu;vr[0]&&(oi(n,ty,22,vr[1]),p++)}if(m.videoSuggestionsContext){var Yf=m.videoSuggestionsContext,Gk=new sy,Hk=0;try{void 0!==Yf.type&&(N(Gk,1,bcb[Yf.type]),Hk++);void 0!==Yf.serializedSuggestionData&&
(si(Gk,2,Yf.serializedSuggestionData),Hk++);void 0!==Yf.videoId&&(Gk.setVideoId(Yf.videoId),Hk++);var mu=[Hk===Object.keys(Yf).length,Gk]}catch(Ma){Z(Ma),mu=[!1,void 0]}var Nx=mu;Nx[0]&&(oi(n,sy,23,Nx[1]),p++)}if(m.actionSheetContext){var wr=m.actionSheetContext,xr=new nx,yr=0;try{void 0!==wr.parentScreenUiType&&(wi(xr,1,wr.parentScreenUiType),yr++);var zr=[yr===Object.keys(wr).length,xr]}catch(Ma){Z(Ma),zr=[!1,void 0]}var Ar=zr;Ar[0]&&(oi(n,nx,24,Ar[1]),p++)}if(m.producerExportContext){var Br=m.producerExportContext,
nu=new ey,Gl=0;try{if(Br.exportDetails){var io=Br.exportDetails,Cr=new dy,Dr=0;try{if(io.project){var jo=io.project,Er=new by,Hl=0;try{void 0!==jo.projectId&&(zi(Er,1,jo.projectId),Hl++);void 0!==jo.durationMs&&(gi(Er,2,jo.durationMs,0),Hl++);var ko=[Hl===Object.keys(jo).length,Er]}catch(Ma){Z(Ma),ko=[!1,void 0]}var ou=ko;ou[0]&&(oi(Cr,by,1,ou[1]),Dr++)}if(io.renderDetails){var Ik=io.renderDetails,ij=new cy,Jk=0;try{void 0!==Ik.sizeBytes&&(gi(ij,1,Ik.sizeBytes,0),Jk++);void 0!==Ik.pixelWidth&&(gi(ij,
2,Ch(Ik.pixelWidth),0),Jk++);void 0!==Ik.pixelHeight&&(gi(ij,3,Ch(Ik.pixelHeight),0),Jk++);var Ip=[Jk===Object.keys(Ik).length,ij]}catch(Ma){Z(Ma),Ip=[!1,void 0]}var pu=Ip;pu[0]&&(oi(Cr,cy,2,pu[1]),Dr++)}var Fr=[Dr===Object.keys(io).length,Cr]}catch(Ma){Z(Ma),Fr=[!1,void 0]}var qu=Fr;qu[0]&&(oi(nu,dy,1,qu[1]),Gl++)}var ru=[Gl===Object.keys(Br).length,nu]}catch(Ma){Z(Ma),ru=[!1,void 0]}var tu=ru;tu[0]&&(oi(n,ey,25,tu[1]),p++)}if(m.downloadMyVideoContext){var Zf=m.downloadMyVideoContext,Pj=new ox,Qj=
0;try{void 0!==Zf.videoId&&(Pj.setVideoId(Zf.videoId),Qj++);void 0!==Zf.videoSid&&(N(Pj,2,Zf.videoSid),Qj++);void 0!==Zf.downloadError&&(N(Pj,3,Wcb[Zf.downloadError]),Qj++);void 0!==Zf.totalAssetSize&&(N(Pj,4,Zf.totalAssetSize),Qj++);void 0!==Zf.totalDownloadedPercent&&(xi(Pj,5,Zf.totalDownloadedPercent),Qj++);void 0!==Zf.mddDownloadErrorCode&&(xi(Pj,6,Zf.mddDownloadErrorCode),Qj++);var uu=[Qj===Object.keys(Zf).length,Pj]}catch(Ma){Z(Ma),uu=[!1,void 0]}var vu=uu;vu[0]&&(oi(n,ox,26,vu[1]),p++)}if(m.miniAppContext){var jj=
m.miniAppContext,lo=new Hx,mo=0;try{void 0!==jj.externalPostId&&(O(lo,1,jj.externalPostId),mo++);void 0!==jj.localReleaseId&&(O(lo,2,jj.localReleaseId),mo++);void 0!==jj.miniAppReleaseId&&(wi(lo,3,jj.miniAppReleaseId),mo++);void 0!==jj.postPlayNonce&&(O(lo,4,jj.postPlayNonce),mo++);var Px=[mo===Object.keys(jj).length,lo]}catch(Ma){Z(Ma),Px=[!1,void 0]}var Gr=Px;Gr[0]&&(oi(n,Hx,27,Gr[1]),p++)}if(m.shoppingCartContext){var Gm=m.shoppingCartContext,no=new gy,oo=0;try{if(Gm.shoppingFlowParams){var wu=
DJa(Gm.shoppingFlowParams);wu[0]&&(oi(no,fy,1,wu[1]),oo++)}var xu=[oo===Object.keys(Gm).length,no]}catch(Ma){Z(Ma),xu=[!1,void 0]}var yu=xu;yu[0]&&(oi(n,gy,28,yu[1]),p++)}if(m.sponsorshipsPurchaseContext){var Hr=m.sponsorshipsPurchaseContext,zu=new ky,Na=0;try{void 0!==Hr.joinMethod&&(N(zu,1,hcb[Hr.joinMethod]),Na++);var SJ=[Na===Object.keys(Hr).length,zu]}catch(Ma){Z(Ma),SJ=[!1,void 0]}var TJ=SJ;TJ[0]&&(oi(n,ky,29,TJ[1]),p++)}if(m.ypcCujContext){var uC=m.ypcCujContext,UJ=new zy,VJ=0;try{void 0!==
uC.serializedYpcCujLoggingParams&&(si(UJ,1,uC.serializedYpcCujLoggingParams),VJ++);var WJ=[VJ===Object.keys(uC).length,UJ]}catch(Ma){Z(Ma),WJ=[!1,void 0]}var XJ=WJ;XJ[0]&&(oi(n,zy,30,XJ[1]),p++)}var YJ=[p===Object.keys(m).length,n]}catch(Ma){Z(Ma),YJ=[!1,void 0]}var ZJ=YJ;ZJ[0]&&(oi(b,By,3,ZJ[1]),c++)}void 0!==a.flowType&&(N(b,4,Ycb[a.flowType]),c++);void 0!==a.flowEventStatus&&(wi(b,5,a.flowEventStatus),c++);void 0!==a.csn&&(O(b,6,a.csn),c++);void 0!==a.can&&(O(b,7,a.can),c++);if(a.cuiAssociations){var vC=
a.cuiAssociations,wC=new Ru,$J=0;try{vC.association&&(eS(wC.j.bind(wC),vC.association,wJa),$J++);var aK=[$J===Object.keys(vC).length,wC]}catch(Ma){Z(Ma),aK=[!1,void 0]}var bK=aK;bK[0]&&(oi(b,Ru,8,bK[1]),c++)}return[c===Object.keys(a).length,b]}catch(Ma){return Z(Ma),[!1,void 0]}},
idbQuotaExceeded:function(a){var b=new Iy,c=0;try{return void 0!==a.deviceStorageUsageMbytes&&(N(b,1,a.deviceStorageUsageMbytes),c++),void 0!==a.deviceStorageQuotaMbytes&&(N(b,2,a.deviceStorageQuotaMbytes),c++),void 0!==a.isIframe&&(vi(b,3,a.isIframe),c++),void 0!==a.isSw&&(vi(b,4,a.isSw),c++),void 0!==a.dbName&&(O(b,5,a.dbName),c++),void 0!==a.objectStoreNames&&(O(b,6,a.objectStoreNames),c++),void 0!==a.transactionCount&&(wi(b,7,a.transactionCount),c++),void 0!==a.transactionMode&&(O(b,8,a.transactionMode),
c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
idbTransactionAborted:function(a){var b=new Jy,c=0;try{return void 0!==a.objectStoreNames&&(O(b,1,a.objectStoreNames),c++),void 0!==a.hasWindowUnloaded&&(vi(b,2,a.hasWindowUnloaded),c++),void 0!==a.transactionCount&&(wi(b,3,a.transactionCount),c++),void 0!==a.transactionDuration&&(wi(b,4,a.transactionDuration),c++),void 0!==a.dbDuration&&(wi(b,5,a.dbDuration),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
streamzIncremented:function(a){var b=new vz,c=0;try{return void 0!==a.serializedIncrementBatch&&(si(b,1,a.serializedIncrementBatch),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
sliEventBatch:function(a){var b=new gx,c=0;try{a.loggedEvents&&(eS(b.j.bind(b),a.loggedEvents,kKa),c++);a.unloggedEvents&&(eS(b.u.bind(b),a.unloggedEvents,kKa),c++);void 0!==a.playerClientVersion&&(N(b,3,a.playerClientVersion),c++);void 0!==a.playerCanaryState&&(N(b,4,Qcb[a.playerCanaryState]),c++);if(a.dimensions){var d=a.dimensions,e=new fx,f=0;try{void 0!==d.playerClientVersion&&(N(e,1,d.playerClientVersion),f++);void 0!==d.playerCanaryState&&(N(e,2,Qcb[d.playerCanaryState]),f++);var h=[f===Object.keys(d).length,
e]}catch(l){Z(l),h=[!1,void 0]}h[0]&&(oi(b,fx,5,h[1]),c++)}return[c===Object.keys(a).length,b]}catch(l){return Z(l),[!1,void 0]}},
playbackAssociated:function(a){var b=new Ny,c=0;try{void 0!==a.cpn&&(O(b,1,a.cpn),c++);if(a.playbackVe){var d=gS(a.playbackVe);d[0]&&(oi(b,px,2,d[1]),c++)}void 0!==a.csn&&(O(b,3,a.csn),c++);if(a.queueInfo){var e=a.queueInfo,f=new My;d=0;try{if(e.enqueueingVe){var h=gS(e.enqueueingVe);h[0]&&(oi(f,px,1,h[1]),d++)}void 0!==e.enqueueingCsn&&(O(f,2,e.enqueueingCsn),d++);void 0!==e.clientEnqueueingTimeMs&&(N(f,3,e.clientEnqueueingTimeMs),d++);var l=[d===Object.keys(e).length,f]}catch(m){Z(m),l=[!1,void 0]}l[0]&&
(oi(b,My,4,l[1]),c++)}return[c===Object.keys(a).length,b]}catch(m){return Z(m),[!1,void 0]}},
autoplayTriggered:function(a){var b=new ix,c=0;try{return void 0!==a.intentional&&(vi(b,1,a.intentional),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
webPlayerApiCalled:function(a){var b=new wz,c=0;try{return void 0!==a.callerUrl&&(O(b,1,a.callerUrl),c++),void 0!==a.methodName&&(O(b,2,a.methodName),c++),void 0!==a.origin&&(O(b,3,a.origin),c++),void 0!==a.playerStyle&&(O(b,4,a.playerStyle),c++),void 0!==a.embeddedPlayerMode&&(N(b,5,icb[a.embeddedPlayerMode]),c++),void 0!==a.errorCode&&(wi(b,6,a.errorCode),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
embedsAdEvent:function(a){var b=new hx,c=0;try{return void 0!==a.eventType&&(N(b,1,Tcb[a.eventType]),c++),void 0!==a.breakType&&(N(b,2,Scb[a.breakType]),c++),void 0!==a.packageName&&(O(b,3,a.packageName),c++),void 0!==a.embedUrl&&(O(b,4,a.embedUrl),c++),void 0!==a.adSource&&(N(b,5,Ucb[a.adSource]),c++),void 0!==a.youtubeHost&&(O(b,6,a.youtubeHost),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
embedsShouldRequestStorageAccessResult:function(a){var b=new lx,c=0;try{return void 0!==a.result&&(vi(b,1,a.result),c++),void 0!==a.returnsUndefined&&(vi(b,2,a.returnsUndefined),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
embedsRequestStorageAccessState:function(a){var b=new kx,c=0;try{return void 0!==a.isCued&&(vi(b,1,a.isCued),c++),void 0!==a.isAutoplayBlocked&&(vi(b,2,a.isAutoplayBlocked),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
embedsRequestStorageAccessFailedState:function(a){var b=new jx,c=0;try{return void 0!==a.state&&(b.Ac(a.state),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
heartbeatActionPlayerHalted:function(a){var b=new Fy,c=0;try{return void 0!==a.serializedServerContext&&(si(b,1,a.serializedServerContext),c++),void 0!==a.enforcedPolicyToHaltOnNetworkFailure&&(vi(b,2,a.enforcedPolicyToHaltOnNetworkFailure),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
heartbeatActionPlayerTransitioned:function(a){var b=new Gy,c=0;try{return void 0!==a.reason&&(N(b,1,$cb[a.reason]),c++),void 0!==a.trigger&&(N(b,2,adb[a.trigger]),c++),void 0!==a.serializedServerContext&&(si(b,3,a.serializedServerContext),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
embedsItpWatchLaterResult:function(a){var b=new mx,c=0;try{return void 0!==a.accepted&&(vi(b,1,a.accepted),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
html5PlayerHealthEvent:function(a){var b=new Hy,c=0;try{return void 0!==a.started&&(vi(b,1,a.started),c++),void 0!==a.stateAtSend&&(N(b,2,ndb[a.stateAtSend]),c++),void 0!==a.joinLatencySecs&&(qi(b,4,a.joinLatencySecs),c++),void 0!==a.playTimeSecs&&(qi(b,5,a.playTimeSecs),c++),void 0!==a.rebufferTimeSecs&&(qi(b,6,a.rebufferTimeSecs),c++),void 0!==a.playerCanaryType&&(N(b,7,bdb[a.playerCanaryType]),c++),void 0!==a.isAd&&(vi(b,8,a.isAd),c++),void 0!==a.liveMode&&(N(b,9,mdb[a.liveMode]),c++),void 0!==
a.isGapless&&(vi(b,10,a.isGapless),c++),void 0!==a.hasDrm&&(vi(b,11,a.hasDrm),c++),void 0!==a.seekCount&&(wi(b,12,a.seekCount),c++),void 0!==a.networkErrorCount&&(wi(b,13,a.networkErrorCount),c++),void 0!==a.nonNetworkErrorCount&&(wi(b,14,a.nonNetworkErrorCount),c++),void 0!==a.isServerStitchedDai&&(vi(b,15,a.isServerStitchedDai),c++),[c===Object.keys(a).length,b]}catch(d){return Z(d),[!1,void 0]}},
adsClientStateChange:function(a){var b=new Ev,c=0;try{if(a.cuepointTrigger){var d=a.cuepointTrigger,e=new qv,f=0;try{void 0!==d.type&&(N(e,1,Dcb[d.type]),f++);void 0!==d.event&&(N(e,2,Ccb[d.event]),f++);void 0!==d.cuepointId&&(O(e,3,d.cuepointId),f++);void 0!==d.totalCueDurationMs&&(qi(e,4,d.totalCueDurationMs),f++);void 0!==d.playheadTimeMs&&(qi(e,5,d.playheadTimeMs),f++);void 0!==d.cueStartTimeMs&&(qi(e,6,d.cueStartTimeMs),f++);void 0!==d.cuepointReceivedTimeMs&&(qi(e,7,d.cuepointReceivedTimeMs),
f++);void 0!==d.contentCpn&&(O(e,8,d.contentCpn),f++);void 0!==d.externalChannelId&&(O(e,9,d.externalChannelId),f++);var h=[f===Object.keys(d).length,e]}catch(Pb){Z(Pb),h=[!1,void 0]}var l=h;l[0]&&(pi(b,qv,1,B3,l[1]),c++)}if(a.daiStateTrigger){var m=a.daiStateTrigger,n=new wv,p=0;try{void 0!==m.contentCpn&&(O(n,1,m.contentCpn),p++);void 0!==m.totalCueDurationMs&&(qi(n,2,m.totalCueDurationMs),p++);void 0!==m.filledAdsDurationMs&&(qi(n,3,m.filledAdsDurationMs),p++);void 0!==m.cueStartChange&&(N(n,4,
Jcb[m.cueStartChange]),p++);void 0!==m.cueDurationChange&&(N(n,5,Hcb[m.cueDurationChange]),p++);void 0!==m.cueDurationChangeReason&&(N(n,6,Icb[m.cueDurationChangeReason]),p++);void 0!==m.errorType&&(N(n,7,Kcb[m.errorType]),p++);void 0!==m.externalChannelId&&(O(n,8,m.externalChannelId),p++);if(m.adClientData){var q=qJa(m.adClientData);q[0]&&(oi(n,jv,9,q[1]),p++)}var t=[p===Object.keys(m).length,n]}catch(Pb){Z(Pb),t=[!1,void 0]}var v=t;v[0]&&(pi(b,wv,2,B3,v[1]),c++)}if(a.daiAdBreakCriticalError){var y=
a.daiAdBreakCriticalError,A=new rv,E=0;try{void 0!==y.contentCpn&&(O(A,1,y.contentCpn),E++);void 0!==y.errorType&&(N(A,2,Kcb[y.errorType]),E++);void 0!==y.externalChannelId&&(O(A,3,y.externalChannelId),E++);void 0!==y.msg&&(O(A,4,y.msg),E++);void 0!==y.cueIdentifier&&(O(A,5,y.cueIdentifier),E++);var K=[E===Object.keys(y).length,A]}catch(Pb){Z(Pb),K=[!1,void 0]}var I=K;I[0]&&(pi(b,rv,3,B3,I[1]),c++)}if(a.daiAdBreakWarning){var F=a.daiAdBreakWarning,S=new uv,Y=0;try{void 0!==F.contentCpn&&(O(S,1,F.contentCpn),
Y++);void 0!==F.errorType&&(N(S,2,Kcb[F.errorType]),Y++);void 0!==F.externalChannelId&&(O(S,3,F.externalChannelId),Y++);void 0!==F.msg&&(O(S,4,F.msg),Y++);void 0!==F.cueIdentifier&&(O(S,5,F.cueIdentifier),Y++);var ia=[Y===Object.keys(F).length,S]}catch(Pb){Z(Pb),ia=[!1,void 0]}var ta=ia;ta[0]&&(pi(b,uv,4,B3,ta[1]),c++)}if(a.daiAdBreakInfo){var na=a.daiAdBreakInfo,ca=new tv,ha=0;try{void 0!==na.contentCpn&&(O(ca,1,na.contentCpn),ha++);void 0!==na.totalCueDurationMs&&(N(ca,2,na.totalCueDurationMs),
ha++);void 0!==na.filledAdsDurationMs&&(N(ca,3,na.filledAdsDurationMs),ha++);void 0!==na.cueStartChange&&(N(ca,4,Jcb[na.cueStartChange]),ha++);void 0!==na.cueDurationChange&&(N(ca,5,Hcb[na.cueDurationChange]),ha++);void 0!==na.cueDurationChangeReason&&(N(ca,6,Icb[na.cueDurationChangeReason]),ha++);void 0!==na.externalChannelId&&(O(ca,7,na.externalChannelId),ha++);void 0!==na.cueIdentifier&&(O(ca,8,na.cueIdentifier),ha++);void 0!==na.infoType&&(N(ca,9,Lcb[na.infoType]),ha++);void 0!==na.msg&&(O(ca,
10,na.msg),ha++);void 0!==na.filledAdCount&&(wi(ca,11,na.filledAdCount),ha++);var Da=[ha===Object.keys(na).length,ca]}catch(Pb){Z(Pb),Da=[!1,void 0]}var fa=Da;fa[0]&&(pi(b,tv,5,B3,fa[1]),c++)}if(a.visibilityErrorDebugInfo){var U=a.visibilityErrorDebugInfo,Ua=new Dv,r=0;try{void 0!==U.elementName&&(O(Ua,1,U.elementName),r++);void 0!==U.contentVideoPlaybackEventId&&(O(Ua,2,U.contentVideoPlaybackEventId),r++);void 0!==U.errorList&&(O(Ua,3,U.errorList),r++);void 0!==U.htmlDump&&(O(Ua,4,U.htmlDump),r++);
var V=[r===Object.keys(U).length,Ua]}catch(Pb){Z(Pb),V=[!1,void 0]}var ob=V;ob[0]&&(pi(b,Dv,6,B3,ob[1]),c++)}if(a.playbackTimelineAdBreakStateTrigger){var Ya=a.playbackTimelineAdBreakStateTrigger,Cb=new Av,Ab=0;try{void 0!==Ya.cueIdentifier&&(O(Cb,1,Ya.cueIdentifier),Ab++);void 0!==Ya.timestampUnixEpochSec&&(N(Cb,2,Ya.timestampUnixEpochSec),Ab++);void 0!==Ya.adRequestState&&(N(Cb,3,Ecb[Ya.adRequestState]),Ab++);void 0!==Ya.segmentState&&(N(Cb,4,Fcb[Ya.segmentState]),Ab++);void 0!==Ya.timestampUnixEpochMs&&
(N(Cb,5,Ya.timestampUnixEpochMs),Ab++);var wb=[Ab===Object.keys(Ya).length,Cb]}catch(Pb){Z(Pb),wb=[!1,void 0]}var Tb=wb;Tb[0]&&(pi(b,Av,7,B3,Tb[1]),c++)}if(a.extraLongAdBreakDebugInfo){var Ra=a.extraLongAdBreakDebugInfo,ib=new zv,w=0;try{void 0!==Ra.contentVideoPlaybackEventId&&(O(ib,1,Ra.contentVideoPlaybackEventId),w++);if(Ra.adPlacementKindCuepointInitiatedCueRange){var C=xJa(Ra.adPlacementKindCuepointInitiatedCueRange);C[0]&&(oi(ib,yv,2,C[1]),w++)}if(Ra.adPlacementConfigImpliedCueRange){var D=
xJa(Ra.adPlacementConfigImpliedCueRange);D[0]&&(oi(ib,yv,3,D[1]),w++)}if(Ra.adPlacementKindMillisecondsInitiatedCueRange){var B=xJa(Ra.adPlacementKindMillisecondsInitiatedCueRange);B[0]&&(oi(ib,yv,4,B[1]),w++)}void 0!==Ra.cueIdentifier&&(O(ib,5,Ra.cueIdentifier),w++);var M=[w===Object.keys(Ra).length,ib]}catch(Pb){Z(Pb),M=[!1,void 0]}var L=M;L[0]&&(pi(b,zv,8,B3,L[1]),c++)}if(a.comparePyvAdTagInfo){var T=a.comparePyvAdTagInfo,W=new pv,oa=0;try{void 0!==T.pyvAdTagUrlFromPlayer&&(O(W,1,T.pyvAdTagUrlFromPlayer),
oa++);void 0!==T.pyvAdTagUrlFromWatchNext&&(O(W,2,T.pyvAdTagUrlFromWatchNext),oa++);var ma=[oa===Object.keys(T).length,W]}catch(Pb){Z(Pb),ma=[!1,void 0]}var ba=ma;ba[0]&&(pi(b,pv,9,B3,ba[1]),c++)}if(a.driftRecoveryInfo){var pa=a.driftRecoveryInfo,Fa=new xv,cb=0;try{void 0!==pa.contentCpn&&(O(Fa,1,pa.contentCpn),cb++);void 0!==pa.cueIdentifier&&(O(Fa,2,pa.cueIdentifier),cb++);void 0!==pa.driftRecoveryMs&&(N(Fa,3,pa.driftRecoveryMs),cb++);void 0!==pa.breakDurationMs&&(N(Fa,4,pa.breakDurationMs),cb++);
void 0!==pa.driftFromHeadMs&&(N(Fa,5,pa.driftFromHeadMs),cb++);void 0!==pa.appliedDriftRecoveryMs&&(N(Fa,6,pa.appliedDriftRecoveryMs),cb++);void 0!==pa.destinationMs&&(N(Fa,7,pa.destinationMs),cb++);if(pa.adClientData){var rc=qJa(pa.adClientData);rc[0]&&(oi(Fa,jv,8,rc[1]),cb++)}var Kb=[cb===Object.keys(pa).length,Fa]}catch(Pb){Z(Pb),Kb=[!1,void 0]}var xb=Kb;xb[0]&&(pi(b,xv,10,B3,xb[1]),c++)}if(a.adsClientEvent){var $a=a.adsClientEvent,gc=new ov,hc=0;try{void 0!==$a.eventType&&(N(gc,1,Bcb[$a.eventType]),
hc++);if($a.adClientData){var Wb=qJa($a.adClientData);Wb[0]&&(oi(gc,jv,3,Wb[1]),hc++)}void 0!==$a.serializedAdServingData&&(si(gc,4,$a.serializedAdServingData),hc++);void 0!==$a.eventOrder&&(wi(gc,5,$a.eventOrder),hc++);void 0!==$a.serializedSlotAdServingData&&(si(gc,6,$a.serializedSlotAdServingData),hc++);if($a.errorInfo){var fd=$a.errorInfo,yc=new nv,Sc=0;try{void 0!==fd.errorType&&(N(yc,1,Acb[fd.errorType]),Sc++);void 0!==fd.errorMessage&&(N(yc,2,zcb[fd.errorMessage]),Sc++);var ud=[Sc===Object.keys(fd).length,
yc]}catch(Pb){Z(Pb),ud=[!1,void 0]}var Dc=ud;Dc[0]&&(oi(gc,nv,7,Dc[1]),hc++)}var nd=[hc===Object.keys($a).length,gc]}catch(Pb){Z(Pb),nd=[!1,void 0]}var Ed=nd;Ed[0]&&(pi(b,ov,11,B3,Ed[1]),c++)}if(a.daiAdStateTracking){var zc=a.daiAdStateTracking,ee=new vv,Fd=0;try{void 0!==zc.eventType&&(N(ee,1,Gcb[zc.eventType]),Fd++);void 0!==zc.contentCpn&&(O(ee,2,zc.contentCpn),Fd++);void 0!==zc.externalChannelId&&(O(ee,3,zc.externalChannelId),Fd++);void 0!==zc.adCpn&&(O(ee,4,zc.adCpn),Fd++);void 0!==zc.adCount&&
(N(ee,5,zc.adCount),Fd++);void 0!==zc.msg&&(O(ee,6,zc.msg),Fd++);var Qe=[Fd===Object.keys(zc).length,ee]}catch(Pb){Z(Pb),Qe=[!1,void 0]}var rb=Qe;rb[0]&&(pi(b,vv,12,B3,rb[1]),c++)}if(a.adTrimmingInfo){var Mb=a.adTrimmingInfo,mg=new lv,gf=0;try{void 0!==Mb.contentCpn&&(O(mg,1,Mb.contentCpn),gf++);void 0!==Mb.cueIdentifier&&(O(mg,2,Mb.cueIdentifier),gf++);Mb.adMediaInfo&&(eS(mg.j.bind(mg),Mb.adMediaInfo,yJa),gf++);var Ph=[gf===Object.keys(Mb).length,mg]}catch(Pb){Z(Pb),Ph=[!1,void 0]}var gd=Ph;gd[0]&&
(pi(b,lv,13,B3,gd[1]),c++)}if(a.adsAttributionEvent){var hd=a.adsAttributionEvent,fe=new mv,Tc=0;try{void 0!==hd.errorCode&&(N(fe,1,Mcb[hd.errorCode]),Tc++);void 0!==hd.attributionStep&&(N(fe,2,Ncb[hd.attributionStep]),Tc++);void 0!==hd.innerErrorDomain&&(O(fe,3,hd.innerErrorDomain),Tc++);void 0!==hd.innerErrorCode&&(N(fe,4,hd.innerErrorCode),Tc++);var Ec=[Tc===Object.keys(hd).length,fe]}catch(Pb){Z(Pb),Ec=[!1,void 0]}var Re=Ec;Re[0]&&(pi(b,mv,14,B3,Re[1]),c++)}if(a.playerDebugData){var Se=a.playerDebugData,
ng=new Bv,xf=0;try{void 0!==Se.pmlSignal&&(vi(ng,1,Se.pmlSignal),xf++);void 0!==Se.contentCpn&&(O(ng,2,Se.contentCpn),xf++);var Qh=[xf===Object.keys(Se).length,ng]}catch(Pb){Z(Pb),Qh=[!1,void 0]}var Te=Qh;Te[0]&&(pi(b,Bv,15,B3,Te[1]),c++)}if(a.sourceRegistrationEvent){var Ue=a.sourceRegistrationEvent,Tf=new Cv,hf=0;try{void 0!==Ue.eventType&&(N(Tf,1,Ocb[Ue.eventType]),hf++);var jf=[hf===Object.keys(Ue).length,Tf]}catch(Pb){Z(Pb),jf=[!1,void 0]}var Rd=jf;Rd[0]&&(pi(b,Cv,16,B3,Rd[1]),c++)}return[c===
Object.keys(a).length,b]}catch(Pb){return Z(Pb),[!1,void 0]}},
offlineTransferStatusChanged:AIa,offlineStateSnapshot:function(a){var b=new uz,c=0;try{a.offlineVideos&&(eS(b.u.bind(b),a.offlineVideos,bJa),c++);a.offlinePlaylists&&(eS(b.j.bind(b),a.offlinePlaylists,dJa),c++);void 0!==a.freeDiskSpaceBytes&&(N(b,3,a.freeDiskSpaceBytes),c++);void 0!==a.lastOfflineUsageTimeMs&&(N(b,4,a.lastOfflineUsageTimeMs),c++);void 0!==a.lastOfflinePlaybackTimeMs&&(N(b,5,a.lastOfflinePlaybackTimeMs),c++);void 0!==a.lastOfflineSaveTimeMs&&(N(b,6,a.lastOfflineSaveTimeMs),c++);void 0!==
a.lastOfflineDownloadSuccessTimeMs&&(N(b,7,a.lastOfflineDownloadSuccessTimeMs),c++);void 0!==a.isBatteryCharging&&(vi(b,8,a.isBatteryCharging),c++);void 0!==a.detailedNetworkType&&(N(b,9,oS[a.detailedNetworkType]),c++);void 0!==a.batteryLevelPercentage&&(wi(b,10,a.batteryLevelPercentage),c++);void 0!==a.isPostMigrationState&&(vi(b,11,a.isPostMigrationState),c++);if(a.offlineCacheVerificationFailure){var d=a.offlineCacheVerificationFailure,e=new iz,f=0;try{void 0!==d.numUncachedVideos&&(xi(e,1,d.numUncachedVideos),
f++);void 0!==d.numTotalCompletedVideos&&(xi(e,2,d.numTotalCompletedVideos),f++);d.uncachedVideos&&(eS(e.j.bind(e),d.uncachedVideos,gJa),f++);var h=[f===Object.keys(d).length,e]}catch(v){Z(v),h=[!1,void 0]}h[0]&&(oi(b,iz,12,h[1]),c++)}if(a.additionalOfflineClientState){var l=a.additionalOfflineClientState,m=new mz;h=0;try{if(l.mainAppAdditionalOfflineClientState){var n=l.mainAppAdditionalOfflineClientState,p=new lz;d=0;try{n.downloadRecsVideos&&(eS(p.j.bind(p),n.downloadRecsVideos,hJa),d++);n.smartDownloadVideos&&
(eS(p.u.bind(p),n.smartDownloadVideos,iJa),d++);var q=[d===Object.keys(n).length,p]}catch(v){Z(v),q=[!1,void 0]}q[0]&&(oi(m,lz,1,q[1]),h++)}var t=[h===Object.keys(l).length,m]}catch(v){Z(v),t=[!1,void 0]}t[0]&&(oi(b,mz,13,t[1]),c++)}return[c===Object.keys(a).length,b]}catch(v){return Z(v),[!1,void 0]}}},A2a={adNotify:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;
pi(d,Tu,184,qG,a);c?oG("adNotify",d,c,b):pG("adNotify",d,b)},
biscottiBasedDetection:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Uw,439,qG,a);c?oG("biscottiBasedDetection",d,c,b):pG("biscottiBasedDetection",d,b)},
adNotifyFilled:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Su,300,qG,a);c?oG("adNotifyFilled",d,c,b):pG("adNotifyFilled",d,b)},
idbTransactionEnded:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Ky,352,qG,a);c?oG("idbTransactionEnded",d,c,b):pG("idbTransactionEnded",d,b)},
idbUnexpectedlyClosed:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Ly,348,qG,a);c?oG("idbUnexpectedlyClosed",d,c,b):pG("idbUnexpectedlyClosed",d,b)},
flowEvent:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Dy,304,qG,a);c?oG("flowEvent",d,c,b):pG("flowEvent",d,b)},
idbQuotaExceeded:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Iy,351,qG,a);c?oG("idbQuotaExceeded",d,c,b):pG("idbQuotaExceeded",d,b)},
idbTransactionAborted:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Jy,353,qG,a);c?oG("idbTransactionAborted",d,c,b):pG("idbTransactionAborted",d,b)},
streamzIncremented:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,vz,126,qG,a);c?oG("streamzIncremented",d,c,b):pG("streamzIncremented",d,b)},
sliEventBatch:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,gx,344,qG,a);c?oG("sliEventBatch",d,c,b):pG("sliEventBatch",d,b)},
playbackAssociated:bra,autoplayTriggered:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,ix,209,qG,a);c?oG("autoplayTriggered",d,c,b):pG("autoplayTriggered",d,b)},
webPlayerApiCalled:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,wz,76,qG,a);c?oG("webPlayerApiCalled",d,c,b):pG("webPlayerApiCalled",d,b)},
embedsAdEvent:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,hx,327,qG,a);c?oG("embedsAdEvent",d,c,b):pG("embedsAdEvent",d,b)},
embedsShouldRequestStorageAccessResult:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,lx,251,qG,a);c?oG("embedsShouldRequestStorageAccessResult",d,c,b):pG("embedsShouldRequestStorageAccessResult",d,b)},
embedsRequestStorageAccessState:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,kx,256,qG,a);c?oG("embedsRequestStorageAccessState",d,c,b):pG("embedsRequestStorageAccessState",d,b)},
embedsRequestStorageAccessFailedState:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,jx,257,qG,a);c?oG("embedsRequestStorageAccessFailedState",d,c,b):pG("embedsRequestStorageAccessFailedState",d,b)},
heartbeatActionPlayerHalted:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Fy,332,qG,a);c?oG("heartbeatActionPlayerHalted",d,c,b):pG("heartbeatActionPlayerHalted",d,b)},
heartbeatActionPlayerTransitioned:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Gy,330,qG,a);c?oG("heartbeatActionPlayerTransitioned",d,c,b):pG("heartbeatActionPlayerTransitioned",d,b)},
embedsItpWatchLaterResult:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,mx,266,qG,a);c?oG("embedsItpWatchLaterResult",d,c,b):pG("embedsItpWatchLaterResult",d,b)},
html5PlayerHealthEvent:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Hy,293,qG,a);c?oG("html5PlayerHealthEvent",d,c,b):pG("html5PlayerHealthEvent",d,b)},
adsClientStateChange:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Ev,197,qG,a);c?oG("adsClientStateChange",d,c,b):pG("adsClientStateChange",d,b)},
offlineTransferStatusChanged:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,Tx,2,qG,a);c?oG("offlineTransferStatusChanged",d,c,b):pG("offlineTransferStatusChanged",d,b)},
offlineStateSnapshot:function(a,b,c){var d=g.Hz("jspb_sparse_encoded_pivot")?new zz([{}]):new zz;pi(d,uz,22,qG,a);c?oG("offlineStateSnapshot",d,c,b):pG("offlineStateSnapshot",d,b)}};uS.getInstance=function(){var a=g.Sa("ytglobal.storage_");a||(a=new uS,g.Qa("ytglobal.storage_",a));return a};
uS.prototype.estimate=function(){var a,b,c;return g.Ha(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(oKa()):d.return()})};
g.Qa("ytglobal.storageClass_",uS);SB.prototype.vD=function(a){this.handleError(a)};
SB.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Hz("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Hz("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":qKa(this,b);break;case "TRANSACTION_ENDED":this.B&&Math.random()<=g.Iz("ytidb_transaction_ended_event_rate_limit_transaction",.1)&&this.j("idbTransactionEnded",
b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},b,{hasWindowUnloaded:this.u}),this.j("idbTransactionAborted",a)}};var ELa=[{jsonRepresentation:'{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true,"playerConfig": {"audioConfig": {}, "streamSelectionConfig": {}}},"playerConfig": {"audioConfig": {}, "streamSelectionConfig": {}}}',objectRepresentation:{adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0,playerConfig:{audioConfig:{},streamSelectionConfig:{}}},playerConfig:{audioConfig:{},streamSelectionConfig:{}}}},{jsonRepresentation:'[{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true}}]',
objectRepresentation:[{adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0}}]}];g.k=uKa.prototype;g.k.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterUrl)?d:null;if(a.interpreterSafeScript)d=Hba(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=Yd(e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());wKa(this,d,e,a.program,b,c)}else g.tG(Error("Cannot initialize botguard without program"))};
g.k.isInitialized=function(){return this.lF()};
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.lF()?this.v_({Oy:a}):null};
g.k.dispose=function(){this.xa()};
g.k.xa=function(){this.zQ(null);this.Ac(8)};
g.k.lF=function(){return!!this.j};
g.k.u_=function(a){return this.j.snapshot(a)};
g.k.v_=function(a){return this.j.tZ(a)};
g.k.zQ=function(a){g.qb(this.j);this.j=a};
g.k.Ac=function(a){this.state=a};g.x(yKa,uKa);g.k=yKa.prototype;g.k.xa=function(){this.Ac(8)};
g.k.zQ=function(a){var b;null==(b=wS())||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.tZ.bind(a)},g.Qa("yt.abuse.playerAttLoader",b),g.Qa("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(g.Qa("yt.abuse.playerAttLoader",null),g.Qa("yt.abuse.playerAttLoaderRun",null))};
g.k.lF=function(){return!!wS()};
g.k.u_=function(a){return wS().bgvmb(a)};
g.k.v_=function(a){return wS().bgvmc(a)};var zKa;g.vS=new yKa;zKa=0;var H1a=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var PKa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},QKa={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"},RKa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},OKa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},MKa={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"},NKa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};g.x(XKa,g.G);XKa.prototype.xa=function(){this.V=this.u=this.B=this.J=this.j=this.K=this.D=this.C=void 0};var n4={},YKa=(n4["api.invalidparam"]=2,n4.auth=150,n4["drm.auth"]=150,n4["heartbeat.net"]=150,n4["heartbeat.servererror"]=150,n4["heartbeat.stop"]=150,n4["html5.unsupportedads"]=5,n4["fmt.noneavailable"]=5,n4["fmt.decode"]=5,n4["fmt.unplayable"]=5,n4["html5.missingapi"]=5,n4["html5.unsupportedlive"]=5,n4["drm.unavailable"]=5,n4["mrm.blocked"]=151,n4);g.x(AS,g.G);g.k=AS.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.D[a],e=this.state.K[a],f=d;if(e)if(c&&HG(c,Ydb))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.tG(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.D[a]?!0:!!(this.state.K[a]&&b&&HG(b,Ydb))};
g.k.getBandwidthEstimate=function(){return rM(this.app.W().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.FS(this.app);b&&(a={gpu:(0,g.zZ)(),d:a},b.handleError(new aN("feedback",a)))};
g.k.getInternalApiInterface=function(){return g.bd(this.state.j)};
g.k.logApiCall=function(a,b,c){var d=this.app.W();d.Fo&&!this.state.V.has(a)&&(this.state.V.add(a),g.UB("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.di().C.j=(0,g.mC)()};
g.k.seekToStreamTime=function(a,b,c){this.j&&F_(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.FS(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.Hd()&&(l=h.getStreamTimeOffset());H_(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.FS(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.FS(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&H_(this.app,Infinity,a,b,this.playerType)};
g.k.requestSeekToWallTimeSeconds=function(a){var b=g.FS(this.app,this.playerType);b&&b.eQ(a)};
g.k.syncVolume=function(){var a=C2a(this.app);IS(this.app,{volume:a.volume,muted:a.muted},!1)};
g.k.getAvailableQualityLabels=function(){var a=g.FS(this.app,this.playerType);return a?g.kn(a.Us(),function(b){return b.qualityLabel}):[]};
g.k.channelSubscribed=function(){this.Qa("SUBSCRIBE",this.app.ge().Fk)};
g.k.channelUnsubscribed=function(){this.Qa("UNSUBSCRIBE",this.app.ge().Fk)};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.FS(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.FS(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.confirmYpcRental=function(){var a=g.FS(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().Go=a};
g.k.setLivingRoomAppMode=function(a){this.app.W().livingRoomAppMode=MA("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,bxa)};
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 i3a(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.W4=function(a){a=void 0===a?this.playerType:a;var b=this.AV(a);if(a=g.FS(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.Ba;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?0:c.utcTimeMillis)?Fe(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?Fe(a.progressBarEndPosition.utcTimeMillis):
null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.G4;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=Dza(a);b.paidContentOverlayDurationMs=Eza(a);a.j&&cI(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}return b};
g.k.AV=function(a){a=void 0===a?this.playerType:a;var b=cLa(this,a);if(a=g.FS(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.kd;b.isManifestless=oO(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.uj()&&(b.isEncrypted=!0);if(a.B)for(var c=g.u(a.B.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.C)?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.FS(this.app,1))?a.getPlayerState():null)?a.gh:null;return!!(a&&b&&g.yP(a,128)&&5===ZKa(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.FS(this.app);a&&a.sendAbandonmentPing()};
g.k.updateDownloadState=function(a,b){return this.app.updateDownloadState(a,b)};
g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.Ha(function(l){return 1==l.j?(f=kU(e.app.Fb()))?g.z(l,f.L9([a],b,c,d),3):l.Ka(2):2!=l.j&&(h=l.u,h.length)?l.return(h[0]):l.return(Promise.reject())})};
g.k.pauseVideoDownload=function(a){this.app.pauseVideoDownload(a)};
g.k.resumeVideoDownload=function(a){var b=this;return g.Ha(function(c){return c.return(b.app.resumeVideoDownload(a))})};
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.ge(),null==b?0:bza(b))){if(this.N("web_player_autonav_server_provided_state_pause_killswitch"))return;if(3===a)3!==b.autonavState&&(b.pF=b.autonavState);else if(void 0!==b.pF)a=b.pF,b.pF=void 0;else return}p3a(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.FS(this.app,this.playerType))||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a,b){b=void 0===b?!1:b;var c=g.FS(this.app,this.playerType);c&&c.setUserAudio51Preference(a,b)};
g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.FS(this.app,this.playerType))?void 0:a.getUserAudio51Preference())?b:1};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.updateLastActiveTime=function(){pF()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setUserEngagement=function(a){this.app.W().Kl!==a&&(this.app.W().Kl=a,(a=g.FS(this.app,this.playerType))&&i_(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.fU(this.app.Fb()).j_(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.fU(this.app.Fb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.fU(this.app.Fb());a&&a.QZ()};
g.k.isSubtitlesOn=function(){var a=g.fU(this.app.Fb());return a?a.isSubtitlesOn():!1};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Bf()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.FS(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getHeartbeatResponse=function(){var a=g.FS(this.app,this.playerType);return a?a.getVideoData().getHeartbeatResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.ek();if(!c)return null;b=c.levels[b];return b?(a=g.$N(b,a))?{column:a.column,columns:a.columns,height:a.mw,row:a.row,rows:a.rows,url:a.url,width:a.zD}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.ek();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Hd();return b.MF(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.ek();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.Jx(),minFrameIndex:b.CK()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.ek();return a?a.levels.length:0};
g.k.A4=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.FS(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().Im};
g.k.setAudioTrack=function(a,b){3===this.getPresentingPlayerType()&&SS(this.app.Fb()).MD("control_set_audio_track",a);var c=g.FS(this.app,this.playerType);if(c)if(c.isDisposed()||g.yP(c.playerState,128))a=!1;else{var d;if(null==(d=c.videoData.B)?0:d.j){d=b?c.getCurrentTime()-c.Hd():NaN;if(b=c.N("html5_log_audio_switch_metrics")&&b){var e=o1a(c.Ed);c.ya("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})}c.Ca.setAudioTrack(a,d,b)}else if(c2a(c)){b:{d=c.mediaElement.audioTracks();for(b=0;b<d.length;++b)if(e=
d[b],e.label===a.Nc.getName()){if(e.enabled){d=!1;break b}d=e.enabled=!0;break b}d=void 0}d&&c.ya("hlsaudio",{id:a.id})}else{b:if(d=c.videoData,d.C&&!KK(d.C)||a==d.Jo||!d.od||0>=d.od.length)d=!1;else{b=g.u(d.od);for(e=b.next();!e.done;e=b.next()){e=e.value;if(!(e instanceof fN)){d=!1;break b}var f=a.Nc.getId();e.B&&(kxa(e.B,f),e.u=null)}d.Jo=a;d=!0}d&&a_(c)&&(c.ra("internalaudioformatchange",c.videoData,!0),c.ya("hlsaudio",{id:a.id}))}a=!0}else a=!1;return a};
g.k.B4=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.FS(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.FS(this.app,this.playerType);return a&&a.getVideoData().u?$H(a.Sf?C_a(a.rk,a.Sf,a.Ev()):dO):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.FS(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.fU(this.app.Fb());return a?a.V4():null};
g.k.resetSubtitlesUserSettings=function(){g.fU(this.app.Fb()).Z9()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.k.setGlobalCrop=function(a){this.app.qb().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.Ag();return this.app.getVisibilityState(this.Mh(),this.isFullscreen()||g.BM(this.app.W()),a,this.isInline(),this.app.zz(),this.app.xz())};
g.k.isMutedByMutedAutoplay=function(){return this.app.Vz};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.qb().setInternalSize(new g.xe(a,b))};
g.k.Hd=function(){var a=g.FS(this.app);return a?a.Hd():0};
g.k.Ag=function(){return this.app.Ag()};
g.k.Mh=function(){var a=g.FS(this.app,this.playerType);return!!a&&a.Mh()};
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.Zh=LA(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.TT(b).videoId||(a.index=b.index)):v_(this.app,{list:a.list,index:a.index,playlist_length:d.length});yNa(this.app.getPlaylist(),a);this.Qa("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.FS(this.app,this.playerType||1);c&&g.hO(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){Zwa(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.qb().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.FS(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.getPlaybackQualityLabel=function(a){if(a=g.FS(this.app,a)){var b,c;return(null==(c=null==(b=a.getVideoData().u)?void 0:b.video)?void 0:c.qualityLabel)||""}return""};
g.k.setPlaybackQualityRange=function(a,b,c){var d=g.FS(this.app,this.playerType);d&&g.$1a(d,g.XH(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.uO.dispatch(a)};
g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.Qd.includes(e)||(c.Qd.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Hb(c.Qd,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.Ia.apply(1,arguments);this.app.W().J&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.wq.ra.apply(this.app.wq,[a].concat(g.qa(b)));this.app.Dr.ra.apply(this.app.Dr,[a].concat(g.qa(b)))};
g.k.Qa=function(a){var b=g.Ia.apply(1,arguments);this.app.wq.ra.apply(this.app.wq,[a].concat(g.qa(b)));this.app.Dr.ra.apply(this.app.Dr,[a].concat(g.qa(b)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.N=function(a){return this.app.W().N(a)};
g.k.xa=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.G.prototype.xa.call(this)};var gLa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.x(HS,AS);g.k=HS.prototype;g.k.getApiInterface=function(){return Array.from(this.state.C)};
g.k.t3=function(a,b){if("string"===typeof b){var c=function(){var d=g.Ia.apply(0,arguments);g.Sa(b).apply(window,d)};
this.state.J[b]=c}else c=b;this.app.wq.subscribe(a,c)};
g.k.S9=function(a,b){if("string"===typeof b){var c=this.state.J[b];g.jd(this.state.J,b);b=c}this.app.wq.unsubscribe(a,b)};
g.k.getPlayerState=function(){return Y2a(this.app)};
g.k.seekTo=function(a,b,c){var d=g.GM(this.app.W()),e=g.JS(this.app),f=this.app.getVideoData().yk;g.SA(d)&&!f||e||(this.j&&F_(this.app,!0,this.playerType),H_(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.uf(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.Hi.volume};
g.k.setVolume=function(a){jLa(this,a)};
g.k.isMuted=function(){return this.app.Hi.muted};
g.k.mute=function(){kLa(this)};
g.k.unMute=function(){lLa(this)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().Dd&&(a.pfp={enableIma:this.app.W().oa&&this.app.ge().allowImaMonetization,autoplay:OO(this.app.ge()),mutedAutoplay:this.app.ge().mutedAutoplay});return a};
g.k.playVideo=function(){this.j&&F_(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Bf()){var b=iU(this.app.Fb());if(!E$a(b)||F$a(b))return}3===a?SS(this.app.Fb()).MD("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(a){var b=this.app.getPresentingPlayerType();if(2!==b||this.app.Bf()||E$a(iU(this.app.Fb())))3===b?SS(this.app.Fb()).MD("control_pause"):this.app.pauseVideo(b,a)};
g.k.stopVideo=function(){var a=this.app;a.Z.md&&a.bb.ra("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getAvailablePlaybackRates=function(){var a=this.app.W();return a.Vf?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(a.C?a.ancestorOrigins[0]:window.location.origin)||a.Ho?$eb:Zeb:[1]};
g.k.getPlaybackQuality=function(a){return(a=g.FS(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.FS(this.app,this.playerType);return a?(a=g.kn(a.Us(),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.qb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.setSize=function(){this.app.qb().resize()};
g.k.loadModule=function(a){"captions"===a&&(a=g.fU(this.app.Fb()))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.fU(this.app.Fb()))&&a.loaded&&a.caa()};
g.k.loadVideoById=function(a,b,c){a&&(a=eLa(a,b,c),a=this.app.loadVideoByPlayerVars(a,this.playerType),this.j&&F_(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){a=eLa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=fLa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.j&&F_(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=fLa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.W();if(a.Ba)return"";var b=this.app.ge(),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.Ba)return"";var b=this.app.ge();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.ge().videoId,this.app.qb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return h3a(this.app,a,b,c)};
g.k.removeCueRange=function(a){return j3a(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.j&&F_(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&&F_(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.j&&F_(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.j&&F_(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.T4=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.TT(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.Fb();return"captions"===a?(a=g.fU(d))&&a.Ih(b,c):null};
g.k.getOption=function(a,b,c){var d=g.FS(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.W().C?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.Fb();if("captions"===a){var c;return(null==(c=g.fU(b))?void 0:c.getOptions())||null}return a?null:(a=[],g.fU(b)&&a.push("captions"),a)};
g.k.getSphericalProperties=function(){var a=g.VS(this.app.Fb());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.VS(this.app.Fb());b&&b.setSphericalProperties(a,!0)}};
g.k.destroy=function(){this.app.dispose()};
g.k.logImaAdEvent=function(a,b){this.app.W().oa&&this.app.ge().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.lfa(this.app.W().loaderUrl),eventType:a,youtubeHost:g.Sj(this.app.W().Oa)||""},g.UB("embedsAdEvent",a))};
g.k.mutedAutoplay=function(){var a=this.app.W(),b;this.N("embeds_enable_muted_autoplay")&&(null==(b=a.webPlayerContextConfig)?0:b.allowEmbedsMutedAutoplay)&&!a.B&&this.app.mutedAutoplay()};g.x(KS,HS);g.k=KS.prototype;g.k.addCueRange=function(a,b,c,d,e){return h3a(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return Y2a(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){qLa(this)&&H_(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){qLa(this)&&H_(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):HS.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=SS(this.app.Fb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):HS.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return SS(this.app.Fb()).getProgressState();var b=this.app.getVideoData(),c=g.FS(this.app,a)||g.FS(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=rLa(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=rLa(this,h,a);break a}h=0}f=this.getCurrentTime(a);a=this.getDuration(a);var l=this.app.uf(d),m=this.app.isAtLiveHead(d),n=this.app.jz(),p=this.app.je(d);var q=this.app;var t=g.FS(q,d);t?(t=r_(q,t),q=C_(q,QW(t),t)):q=0;c=c.Hd();a:{t=this.app.getVideoData();if(t.Oo&&(t=t.Oo,!isNaN(t))){d=rLa(this,t,d);break a}d=0}return{airingStart:e,airingEnd:h,allowSeeking:this.app.Nh(),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.GS(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.GS(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.GS(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.GS(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.qb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.setFauxFullscreen=function(a){g.$A();this.app.Am(a?2:0)};
g.k.toggleFullscreen=function(){function a(c){g.tG(c)}
var b=this.app.W();if(b.externalFullscreen){if(!g.TM(b))return this.isFullscreen()?bB(window.document.documentElement):ZA(window.document.documentElement).catch(a)}else if(g.$A()||b.V)return this.isFullscreen()?bB(aB()):"3"!==b.controlsType&&g.$A()?ZA(this.app.qb().element).catch(a):(b=this.app.Qe().Bb())?ZA(b).catch(a):Promise.reject(Error("Media element missing"));this.Qa("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=iU(this.app.Fb());a&&a.created&&a.destroy();(a=g.FS(this.app))&&a.stopVideo();(a=this.app.Fb().Se.get("endscreen"))&&a.M5()&&g.RS(this.app.bb,!0)};
g.k.getVideoStats=function(){return g.FS(this.app,this.playerType).qc(!0)};
g.k.toggleSubtitles=function(){var a=g.fU(this.app.Fb());a&&a.Q$()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.VS(this.app.Fb());b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.VS(this.app.Fb());return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){jLa(this,a,b)};
g.k.mute=function(a){kLa(this,a)};
g.k.unMute=function(a){lLa(this,a)};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.lU(this.app.Fb());b&&!b.loaded&&b.load()}HS.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.lU(this.app.Fb());b&&b.loaded&&b.unload()}HS.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.Fb();switch(a){case "ad":return(a=iU(d))&&a.Ih&&a.Ih(b,c);case "kids":return(a=fOa(d))&&a.Ih(b,c);case "remote":return(a=SS(d))&&a.Ih(b,c);case "unplugged":return(a=g.jU(d))&&a.Ih(b,c);case "annotations_module":return(a=g.lU(d))&&a.Ih(b,c);case "creatorendscreen":return(a=gOa(d))&&a.Ih(b,c)}return HS.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.Fb();switch(a){case "ad":var c,d;return(null==(c=iU(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=SS(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var h,l;return(null==(h=g.lU(b))?void 0:null==(l=h.getOptions)?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return(null==(m=gOa(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null==
(p=g.jU(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var t,v;return(null==(t=fOa(b))?void 0:null==(v=t.getOptions)?void 0:v.call(t))||null}if(!a){a=HS.prototype.getOptions.call(this);if(!a)return a;iU(b)&&a.push("ad");SS(b)&&a.push("remote");g.lU(b)&&a.push("annotations_module");gOa(b)&&a.push("creatorendscreen");g.jU(b)&&a.push("unplugged");fOa(b)&&a.push("kids");return a}return HS.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.qb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.GS(this);a&&a.Rp()};
g.k.setCenterCrop=function(a){this.app.qb().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var oLa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pipable 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(" "),
pLa="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(" ");LS.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
LS.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)};
LS.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.u=this.j=this.data.length-1};g.x(MS,g.G);MS.prototype.start=function(){this.u.start()};
MS.prototype.stop=function(){this.u.stop()};
MS.prototype.clear=function(){for(var a=g.u(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
MS.prototype.sample=function(){for(var a=g.u(this.B),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 tLa(dfb.has(b)));this.j.get(b).update(c())}this.u.start()};
var dfb=new Set(["networkactivity"]);tLa.prototype.update=function(a){this.j?(this.buffer.add(a-this.Fz||0),this.Fz=a):this.buffer.add(a)};
tLa.prototype.clear=function(){this.buffer.clear();this.Fz=0};g.x(g.PS,KS);g.k=g.PS.prototype;g.k.xo=function(a,b,c,d,e,f,h){return this.app.xo(a,b,c,d,e,f,h)};
g.k.yC=function(){return this.app.yC()};
g.k.Ts=aa(6);g.k.Fb=function(){return this.app.Fb()};
g.k.Pf=function(){var a=this.Fb().Se.get("endscreen");return!!a&&a.Pf()};
g.k.getRootNode=function(){return this.qb().element};
g.k.W=function(){return this.app.W()};
g.k.kz=aa(8);g.k.dn=function(a){return this.app.dn(a)};
g.k.hn=function(){return this.EK};
g.k.Nb=function(a){return this.app.Nb(a)};
g.k.qb=function(){return this.app.qb()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.FS(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a){a=this.app;if(null==(b=a.df))b=void 0;else{var d=a.getCurrentTime();b=b.mq?void 0:null==(c=fX(b,1E3*d))?void 0:c.videoData}c=b||a.getVideoData()}else c=b;return c};
g.k.ek=function(a){return this.app.ek(a)};
g.k.Zv=function(){return this.app.Zv()};
g.k.isHdr=function(){var a=g.FS(this.app);return a?a.isHdr():!1};
g.k.WN=function(){return this.app.WN()};
g.k.DA=function(a){this.app.DA(a)};
g.k.Zg=function(a,b,c,d,e){this.app.Sg(a,b,c,d,e)};
g.k.Mr=function(a,b){this.app.Mr(a,b)};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){SS(this.app.Fb()).MD("control_play");return}if(2===this.getPresentingPlayerType()){var b=iU(this.app.Fb());if(b&&F$a(b))return}}catch(c){g.sG(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.FS(this.app,a).stopVideo()};
g.k.Wn=function(a){g.FS(this.app,a).Wn()};
g.k.addEventListener=function(a,b){this.app.Dr.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.Dr.unsubscribe(a,b)};
g.k.ra=function(a){KS.prototype.ra.call.apply(KS.prototype.ra,[this,a].concat(g.qa(g.Ia.apply(1,arguments))))};
g.k.Tn=function(a){this.app.Tn(a)};
g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)};
g.k.Us=function(){var a={},b=g.FS(this.app).Us();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.zC=function(){return g.FS(this.app).zC()};
g.k.JC=aa(12);g.k.eJ=function(a){this.app.eJ(a);a&&p3a(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.KC=aa(14);g.k.Ln=aa(18);g.k.Vn=function(a){var b=g.FS(this.app);b&&b.Vn(a)};
g.k.Lz=function(a,b){this.Fb().Lz(a,b)};
g.k.Mk=function(){var a=g.lU(this.Fb());return!!a&&a.Mk()};
g.k.So=function(){var a=g.lU(this.Fb());return!!a&&a.So()};
g.k.zA=function(a,b,c){var d=g.lU(this.Fb());d&&d.zA(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ra("changeProductsInVideoVisibility",a)};
g.k.yA=aa(19);g.k.po=function(){var a=g.FS(this.app);a&&a.po()};
g.k.OE=function(a){this.Qa("onVideoAreaChange");this.Qa(a?"onShowControls":"onHideControls")};
g.k.Vk=function(a,b){var c=g.GS(this);if(c)return c.Vk(a,b);a=this.app.qb().fk();return new g.Rn(0,0,a.width,a.height)};
g.k.kp=function(){return this.app.kp()};
g.k.lD=function(){var a=this.Fb().Se.get("heartbeat");return!!a&&a.lD()};
g.k.Nh=function(){var a=this.W();if(a.Va||a.disableSeek)return!1;var b=g.FS(this.app);if(!b)return!1;var c=b.getVideoData();return!c.Fe()||g.DO(c)||2===this.getPresentingPlayerType()&&!this.app.Bf()||b.qp()&&3!==this.getPresentingPlayerType()||g.SA(g.GM(a))&&!c.yk||g.JS(this.app)?!1:!0};
g.k.gD=function(){var a;return(null==(a=g.FS(this.app))?void 0:a.gD)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.nu=function(){var a=g.FS(this.app);a&&a.nu()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.hf=function(a,b,c){this.app.sy(a,b,c)};
g.k.Mp=function(a,b){this.app.yE(a,b)};
g.k.Te=function(a,b){var c=this.app,d=g.FS(c,b);d&&(a=d.Oi.Te(a),b&&c.getPresentingPlayerType()!==b||p_(c,"cuerangesremoved",a))};
g.k.Fg=function(a,b){(b=g.FS(this.app,b))&&b.Fg(a)};
g.k.qp=function(){var a=g.FS(this.app);return a?a.qp():!0};
g.k.Ov=function(){var a=this.getVideoData();return!!a&&(a.Ov()||!!a.hlsFormats||!!a.kb)};
g.k.getPlaybackRate=function(){return g.FS(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.pe(a,0,100);IS(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){IS(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){IS(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.Qe=function(){return this.app.Qe()};
g.k.di=function(){return this.app.di()};
g.k.dk=function(a){return this.app.dk(a)};
g.k.getBandwidthEstimate=function(){return rM(this.W().schedule)};
g.k.xb=function(a,b,c,d){this.W().kb&&this.app.Oq.xb(a,b,c,void 0===d?!1:d)};
g.k.ag=function(a,b,c){this.W().kb&&this.app.Oq.ag(a,b,void 0===c?!1:c)};
g.k.gg=function(a,b){this.W().kb&&this.app.Oq.gg(a,b)};
g.k.ub=function(a,b){this.W().kb&&(this.app.Oq.click(a,b),this.ra("veClickLogged",a))};
g.k.Za=function(a,b,c){if(this.W().kb){var d=this.app.Oq;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.sH(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.oQ(e,[f]):g.pQ(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.nQ(e,f,void 0,c),d.B.add(a))}};
g.k.rj=function(a){return this.W().kb?this.app.Oq.rj(a):!1};
g.k.Ty=function(a){this.W().kb&&this.app.Oq.Ty(a)};
g.k.td=function(){return g.FS(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.au=function(){this.app.au()};
g.k.Ry=function(a,b){return this.app.Ry(a,b)};
g.k.Pp=function(a){this.app.Pp(a)};
g.k.Nz=function(){this.app.Nz()};
g.k.addPlayerResponseForAssociation=function(a){this.app.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.app.finishSegmentByCpn(a,b)};
g.k.wy=function(a,b,c,d,e,f,h){return this.app.wy(a,b,c,d,e,f,h)};
g.k.cD=function(a,b,c,d,e,f,h){return this.app.cD(a,b,c,d,e,f,h)};
g.k.Ut=function(a){this.app.Ut(a)};
g.k.tv=function(a,b){b=void 0===b?Infinity:b;this.app.tv(void 0===a?-1:a,b)};
g.k.IJ=function(a){var b;null==(b=g.fU(this.Fb()))||b.IJ(a)};
g.k.RA=function(a,b,c){this.app.RA(a,b,c)};
g.k.Ys=function(){return this.app.Ys()};
g.k.BG=function(a,b,c){this.app.BG(a,b,void 0===c?0:c)};
g.k.Yv=function(){return this.app.Yv()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.Bf=function(){return this.app.Bf()};
g.k.It=function(a,b,c){return this.app.It(a,b,c)};
g.k.ya=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.FS(this.app,d))||e.ya(a,b,c)};
g.k.LO=function(a,b){this.ra("aduxmouseover",a,b)};
g.k.KO=function(a,b){this.ra("aduxmouseout",a,b)};
g.k.hP=function(a,b){this.ra("muteadaccepted",a,b)};
g.k.yH=function(){return this.app.qb().yH()};
g.k.EA=function(a){this.app.qb().EA(a)};
g.k.Or=function(){var a=g.FS(this.app);return a?a.Or():!1};
g.k.wQ=function(a){this.app.wQ(a)};
g.k.QH=function(a){var b,c=null==(b=g.FS(this.app))?void 0:b.Ca;c&&c.QH(a)};var yLa=!1;g.x(g.$S,g.aR);g.k=g.$S.prototype;g.k.show=function(){var a=this.vj();g.aR.prototype.show.call(this);this.Fa&&(this.K.T(window,"blur",this.Mb),this.K.T(document,"click",this.N1));a||this.ra("show",!0)};
g.k.hide=function(){var a=this.vj();g.aR.prototype.hide.call(this);zLa(this);a&&this.ra("show",!1)};
g.k.yd=function(a,b){this.u=a;this.oa.show();b?(this.V||(this.V=this.K.T(this.I,"appresize",this.QT)),this.QT()):this.V&&(this.K.Mc(this.V),this.V=void 0)};
g.k.aV=function(){this.u&&this.element&&(this.u.getAttribute("aria-haspopup"),this.u.setAttribute("aria-expanded","true"),this.focus())};
g.k.QT=function(){var a=g.GS(this.I);this.u&&a.Dw(this.element,this.u)};
g.k.Mb=function(){var a=this.vj();zLa(this);this.oa.hide();a&&this.ra("show",!1)};
g.k.N1=function(a){var b=hB(a);b&&(g.rf(this.element,b)||this.u&&g.rf(this.u,b)||!g.IR(a))||this.Mb()};
g.k.vj=function(){return this.Gb&&4!==this.oa.state};g.x(ALa,g.$S);ALa.prototype.yd=function(){g.$S.prototype.yd.call(this);this.dialog.focus()};g.x(g.cT,g.aR);g.cT.prototype.updateValue=function(a,b){g.aR.prototype.updateValue.call(this,a,b);this.ra("size-change")};var ZLa={bK:13,rT:12,uT:11,RK:10,eL:9,YJ:8,XJ:7,bL:6,SUBTITLES:5,AUDIO:4,YK:3,bT:2,REMOTE:1,AR: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.x(fT,g.cT);fT.prototype.lc=function(a){this.u&&this.I.Za(this.element,this.j&&a)};
fT.prototype.C=function(){var a,b,c=null==(a=this.I.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.I.getVideoData())?void 0:d.accountLinkingConfig;eT(this,gR());var e;g.bT(this,gT(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.B=new ALa(this.I,gT(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),gT(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),gT(null==a?void 0:null==
(l=a.menuData)?void 0:l.confirmButtonText));g.H(this,this.B);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;(this.u=!!d)&&this.I.gg(this.element,d);this.Lb.rd(this);this.j=!0}else!c&&this.j&&(this.Lb.Ch(this),this.j=!1)};
fT.prototype.onClick=function(){this.u&&this.I.ub(this.element);this.Lb.Mb();this.B&&this.B.yd()};g.x(hT,g.G);hT.prototype.N=function(a){return this.api.N(a)};g.x(iT,hT);iT.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.KR=b};
iT.prototype.setAccountLinkState=function(a){this.api.getVideoData().KR=a;this.api.po()};
iT.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())};var o4={},CLa=(o4["b.f_"]=ILa,o4["j.s_"]=FLa,o4["r.s_"]=GLa,o4["e.h_"]=HLa,o4["i.s_"]=JLa,o4);g.x(KLa,hT);new OB("yt.autonav");g.x(MLa,g.X);g.k=MLa.prototype;
g.k.IB=function(){var a;if(a=3!==this.I.getPresentingPlayerType()&&g.YS(this.I)&&400<=this.I.qb().getPlayerSize().width){a=this.ge();if(this.I.W().N("client_respect_autoplay_switch_button_renderer"))var b=!!a.autoplaySwitchButtonRenderer;else{if(this.I.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var c=!1;var d,e,f;if(null==(b=a.Ad)?0:null==(d=b.contents)?0:null==(e=d.twoColumnWatchNextResults)?0:null==(f=e.autoplay)?0:f.autoplay)c=!0}else c=a.T2;b=!1!==c}a=b}if(a)this.j||
(this.j=!0,g.$Q(this,this.j),this.I.W().N("web_player_autonav_toggle_always_listen")||LLa(this),b=this.ge(),this.KS(b.autonavState),this.I.Za(this.element,this.j));else if(this.j=!1,g.$Q(this,this.j),!this.I.W().N("web_player_autonav_toggle_always_listen"))for(this.I.W().N("web_player_autonav_toggle_always_listen"),b=g.u(this.u),d=b.next();!d.done;d=b.next())this.Mc(d.value)};
g.k.KS=function(a){OLa(this)?this.isChecked=1!==a:((a=1!==a)||(g.yB(),a=g.Hz("web_autonav_allow_off_by_default")&&!g.zB(0,141)&&g.Fz("AUTONAV_OFF_BY_DEFAULT")?!1:!g.zB(0,140)),this.isChecked=a);NLa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.I.eJ(this.isChecked?2:1);NLa(this);if(OLa(this)){var a=this.ge().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.I.Qa("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.I.Qa("innertubeCommand",a.onDisabledCommand)}this.I.ub(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.ge=function(){return this.I.getVideoData(1)};g.x(PLa,hT);var QLa=Md(function(){var a,b;return null==(b=(a=window).matchMedia)?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});g.x(mT,g.cT);mT.prototype.onClick=function(){nT(this,!this.checked);this.ra("select",this.checked)};
mT.prototype.getValue=function(){return this.checked};var XLa={rT:13,uT:12,RK:11,eL:10,YJ:9,YK:8,bL:7,SUBTITLES:6,AUDIO:5,XJ:4,bK:3,bT:2,REMOTE:1,AR: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"},YLa={rT:13,uT:12,RK:11,eL:10,YJ:9,bK:8,XJ:7,AUDIO:6,SUBTITLES:5,bL:4,YK:3,bT:2,REMOTE:1,AR: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 TLa=["en-CA","en","es-MX","fr-CA"];g.x(sT,mT);sT.prototype.Sa=function(a){a?this.j||(this.Lb.rd(this),this.j=!0):this.j&&(this.Lb.Ch(this),this.j=!1);this.j&&nT(this,RLa())};
sT.prototype.B=function(){g.Uq(this.element,"ytp-menuitem-highlight-transition-enabled")};
sT.prototype.C=function(a){var b=RLa();a!==b&&(b=g.yB(),BB(190,a),BB(192,!0),b.save(),this.I.Qa("cinematicSettingsToggleChange",a))};
sT.prototype.xa=function(){this.j&&this.Lb.Ch(this);mT.prototype.xa.call(this)};g.x(bMa,hT);bMa.prototype.updateCinematicSettings=function(a){this.j=a;var b;null==(b=this.menuItem)||b.Sa(a);this.api.ra("onCinematicSettingsVisibilityChange",a)};g.x(tT,hT);tT.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.Te("embargo",1);var c=null==b?void 0:b.SP.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==c?0:c.length)?dMa(this,c.filter(function(d){return cMa(a,d)})):(null==b?0:b.cueRanges)&&dMa(this,b.cueRanges.filter(function(d){return cMa(a,d)}))};
tT.prototype.u=function(a){return void 0!==a.embargo};
tT.prototype.xa=function(){hT.prototype.xa.call(this);this.j={}};g.x(eMa,hT);
eMa.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.W(),c=b.widgetReferrer,d=b.pd,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.C&&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.SA(g.GM(b))&&e.unshift(159628),b=e.join(","),b=g.zA()?b:g.hg(b,4),a.source_ve_path=b);this.j.length=
0};g.x(fMa,hT);g.x(uT,g.X);uT.prototype.onClick=function(){this.bb.ub(this.element);this.bb.Qa("onFullerscreenEduClicked")};
uT.prototype.Sa=function(){this.bb.isFullscreen()?this.u?this.j.hide():this.j.show():this.hide();this.bb.Za(this.element,this.bb.isFullscreen()&&!this.u)};g.x(vT,hT);vT.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;null!=(b=this.j)&&(g.Wq(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Desloque para ver mais informa\u00e7\u00f5es."),g.tb(b,g.kT(b.B.Hc(),b.element)),b.C=!0))};
vT.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;null!=(b=this.j)&&(b.u=a,b.Sa())};g.x(gMa,g.X);g.x(jMa,hT);g.x(wT,hT);wT.prototype.seekToChapterWithAnimation=function(a){var b=this,c=g.GS(this.api);if(c&&!(0>a)){var d=this.api.getVideoData(),e=d.jk;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){kMa(this,c,f.startTime,f.title);return}}this.N("web_key_moments_markers")&&(d=d.WS)&&a<d.length&&d.forEach(function(h,l){l===a&&kMa(b,c,h.timeRangeStartMillis,h.title)})}};
wT.prototype.seekToTimeWithAnimation=function(a,b){var c=g.GS(this.api);c&&kMa(this,c,a,b)};g.x(xT,hT);xT.prototype.C=function(a){return void 0!==a.compositeEmbargo};
xT.prototype.xa=function(){hT.prototype.xa.call(this);this.u.clear()};g.x(pMa,hT);pMa.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=NK(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=wO(a);gI(e);d=[];e=g.u(e);for(f=e.next();!f.done;f=e.next())f=f.value,!0===eI(a,f,this.api.W().D)&&d.push(f);b=b.concat(qMa(d,!1,c))}a=this.api.zC();b=b.concat(qMa(a,!0,c));c=[];if(this.api.N("web_player_enable_premium_hbr_in_h5_api"))return b=sMa(b),rMa(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.x(g.zT,g.SG);g.k=g.zT.prototype;g.k.T=function(a,b){this.C.T(this.V,a,b,void 0,!this.j)};
g.k.cancel=function(){this.B&&(this.B=!1,this.ra("dragend",0,0,null));this.u&&(this.u=!1,this.ra("hoverend",0,0,null),AT(this),yT(this))};
g.k.nw=function(a){AT(this);this.T(BT("move"),this.LS);this.T(BT("out"),this.Uz);this.T("touchstart",this.GK);this.j&&this.T(BT("down"),this.FK);var b=g.TP(a);a=SP(a);this.u=!0;this.ra("hoverstart",a.x,a.y,b);this.ra("hovermove",a.x,a.y,b)};
g.k.LS=function(a){var b=g.TP(a);a=SP(a);if(this.D){var c=this.D;this.D=null;if((g.QP?c.relatedTarget:iB(c))===b&&ue(SP(c),a))return}this.ra("hovermove",a.x,a.y,b)};
g.k.Uz=function(a){var b=SP(a),c=g.QP?a.relatedTarget:iB(a);try{if(c&&g.rf(this.target,c)){this.D=a;this.ra("hovermove",b.x,b.y,c);return}}catch(d){}AT(this);yT(this);this.u=!1;this.ra("hoverend",b.x,b.y,c)};
g.k.u6=function(a){this.nw(a);this.FK(a)};
g.k.FK=function(a){if("number"!==typeof a.button||0===a.button){AT(this);this.C.T(document,BT("move"),this.t6);this.C.T(document,BT("up"),this.O1);var b=g.TP(a);if(g.Qc)this.T("dragstart",this.l4);else if(g.VP(a),(g.UM||Vn)&&b)a:{for(var c=b;c;){if(tf(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=SP(a);this.ra("dragstart",a.x,a.y,b);this.ra("dragmove",a.x,a.y,b)}};
g.k.l4=function(a){g.VP(a)};
g.k.t6=function(a){var b=g.TP(a);b===document&&(b=null);a=SP(a);this.ra("hovermove",a.x,a.y,b);this.ra("dragmove",a.x,a.y,b)};
g.k.O1=function(a){AT(this);this.B=!1;var b=hB(a),c=g.TP(a);a=SP(a);b&&g.rf(this.target,b)?(this.T(BT("move"),this.LS),this.T(BT("out"),this.Uz),this.T(BT("down"),this.FK),this.T("touchstart",this.GK),this.ra("dragend",a.x,a.y,c)):(yT(this),this.u=!1,this.ra("dragend",a.x,a.y,c),this.ra("hoverend",a.x,a.y,c))};
g.k.GK=function(a){var b=a.changedTouches[0];b&&(AT(this),this.T("touchmove",this.R$),this.T("touchend",this.MS),this.T("touchcancel",this.MS),this.J=b.identifier,a=g.TP(a),this.u||(this.u=!0,this.ra("hoverstart",b.pageX,b.pageY,a)),this.ra("hovermove",b.pageX,b.pageY,a),this.j&&(this.B=!0,this.ra("dragstart",b.pageX,b.pageY,a),this.ra("dragmove",b.pageX,b.pageY,a)))};
g.k.R$=function(a){var b=tMa(this,a);b&&(this.j&&g.VP(a),a=g.TP(a),this.ra("hovermove",b.pageX,b.pageY,a),this.j&&this.ra("dragmove",b.pageX,b.pageY,a))};
g.k.MS=function(a){var b=tMa(this,a);if(b){AT(this);yT(this);this.u=!1;var c=g.TP(a);this.j&&(this.K||g.VP(a),this.B=!1,this.ra("dragend",b.pageX,b.pageY,c));this.ra("hoverend",b.pageX,b.pageY,c)}};
g.k.xa=function(){this.j&&(g.Qc&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");AT(this);g.SG.prototype.xa.call(this)};g.x(vMa,g.X);g.x(DT,hT);DT.prototype.qa=function(a,b){this.V=[a,b];this.j.subscribe("dragmove",this.K,this);this.j.subscribe("dragend",this.J,this);this.B||g.Lq(this.delay)};
DT.prototype.Fa=function(){if(this.C){this.B=!0;this.Ga=this.api.getPlaybackRate();this.Ma=g.cQ(this.api.Nb());var a=this.speedmasterUserEdu;g.Un(a.j,"display","");a.I.Za(a.j,!0);this.api.setPlaybackRate(this.Oa);this.api.hideControls();this.api.playVideo();this.oa&&(this.oa.CN=!0);this.ea&&(this.ea.sH=!0)}};
DT.prototype.K=function(a,b){if(!this.B){a=[a,b];var c=this.V;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.Ba?this.V=a:ET(this)}};
DT.prototype.J=function(){ET(this)};g.x(zMa,hT);g.x(FT,g.yb);FT.prototype.preventDefault=function(){g.yb.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
FT.prototype.stopPropagation=function(){g.yb.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.x(g.GT,WP);g.k=g.GT.prototype;g.k.Ru=function(){return!0};
g.k.isView=function(){return!1};
g.k.fQ=function(){return!1};
g.k.Bb=function(){return this.j};
g.k.Of=function(){return this.j.src};
g.k.QF=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.k.bJ=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.gt=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.Bo=function(){return this.j.paused};
g.k.Xg=function(){return this.j.seeking};
g.k.ji=function(){return this.j.ended};
g.k.ZG=function(){return this.j.muted};
g.k.AA=function(a){Bua();this.j.muted=a};
g.k.Iv=function(){return this.j.played||UK([],[])};
g.k.Jh=function(){try{var a=this.j.buffered}catch(b){}return a||UK([],[])};
g.k.NC=function(){return this.j.seekable||UK([],[])};
g.k.PF=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.Qj=function(){return this.j.readyState};
g.k.aH=function(){return this.j.networkState};
g.k.tf=function(){return this.j.error?this.j.error.code:null};
g.k.Mf=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.Mh=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.k.nu=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():Aua()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.nt=function(){var a=this.j;return new g.te(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.to(this.j)};
g.k.setSize=function(a){g.so(this.j,a)};
g.k.getVolume=function(){return this.j.volume};
g.k.setVolume=function(a){Bua();this.j.volume=a};
g.k.uM=function(a){this.J[a]||(this.j.addEventListener(a,this.listener),this.J[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.OB=aa(21);g.k.YE=aa(23);g.k.ZE=aa(25);g.k.Gy=aa(27);g.k.oC=function(){return bB(this.j)};
g.k.Cs=function(a){g.Sq(this.j,a)};
g.k.PC=function(a){return g.Wn(this.j,a)};
g.k.PN=function(){return g.rf(document.body,this.j)};
g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
g.k.xa=function(){for(var a=g.u(Object.keys(this.J)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.J[b]);WP.prototype.xa.call(this)};g.x(IT,g.X);g.x(KT,g.X);KT.prototype.show=function(){g.X.prototype.show.call(this);this.Sa()};
KT.prototype.hide=function(){g.X.prototype.hide.call(this);this.delay.stop()};
KT.prototype.Sa=function(){var a=(0,g.mC)(),b=CMa(this.bb);JT(this.j,b.bandwidth_samples);JT(this.C,b.network_activity_samples);JT(this.B,b.live_latency_samples);JT(this.u,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.D[d]!==e&&(c[d]=" "+String(e));this.D[d]=e}this.update(c);a=25<(0,g.mC)()-a?5E3:500;this.delay.start(a)};g.x(FMa,hT);g.x(LT,g.G);LT.prototype.j=function(){var a=(0,g.mC)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(jr(efb,a));1>a&&this.delay.start()};
var efb=new ir(0,0,.4,0,.2,1,1,1),LMa=/[0-9.-]+|[^0-9.-]+/g;g.x(MT,g.X);MT.prototype.onClick=function(){var a=this.api.app;a.bb.Qa("SIZE_CLICKED",!a.ZN);this.api.ub(this.element)};
MT.prototype.Sa=function(){g.$Q(this,this.api.WN()&&!this.api.isFullscreen()&&3!==this.api.getPresentingPlayerType());if(this.Gb){var a=this.api.Zv();if(this.Zv!==a){var b=a?{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!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"}}]}:{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!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):KMa(this.transition,this.element,b);this.Zv=a;b=g.qT(this.api,"Vista predefinida","t");var c=g.qT(this.api,"Modo cinema","t");this.updateValue("title",a?b:c);this.update({"data-title-no-tooltip":a?"Vista predefinida":"Modo cinema"});lT(this.tooltip)}}this.api.Za(this.element,this.Gb)};g.x(MMa,hT);g.x(NMa,hT);NT.prototype.send=function(a,b){var c;return g.Ha(function(d){if(1==d.j)return g.ya(d,2),g.z(d,kA(a,b),4);if(2!=d.j)return d.return(d.u);c=g.Aa(d);if(c instanceof jA)throw new Pk(Ok($z(c.xhr)),c.message);throw c;})};
NT.prototype.sC=function(a,b){var c=this,d,e,f,h,l,m;return g.Ha(function(n){if(1==n.j){var p=new il;d=zi(p,1,c.qf);a&&zi(d,2,a);b&&zi(d,3,b);return g.z(n,c.send(c.u,Object.assign({},{postBody:d.zm()},c.j)),2)}e=n.u;f=fbb(e.xhr.responseText);h=fi(f,2);if(!h.isEmpty()){if(g.zA()&&10>wA())throw Error("Unsupported");l=ig(Ada(h));return n.return(rga(l))}m=g.ni(f,Wk,1);if(!m)throw Error("Missing field");return n.return(m)})};
NT.prototype.WU=function(a){var b=this,c,d;return g.Ha(function(e){if(1==e.j){var f=new jl;f=zi(f,1,b.qf);c=zi(f,2,a);return g.z(e,b.send(b.B,Object.assign({},{postBody:c.zm()},b.j)),2)}d=e.u;return e.return(hbb(d.xhr.responseText))})};g.x(OT,hT);OT.prototype.xa=function(){this.B&&(g.eA(this.B),this.B=void 0);hT.prototype.xa.call(this)};
OT.prototype.GM=function(a){var b=this;return g.Ha(function(c){return b.j?c.return(b.j.ready().then(function(){b.Cb.Fi("pot_if");return nNa(b,a)})):c.return(Promise.reject("web po not ready"))})};
OT.prototype.BO=function(a){return nNa(this,a)};
OT.prototype.oR=function(){this.j&&!this.j.isReady()&&PT(this)};g.x(oNa,hT);g.x(pNa,g.G);QT.prototype.NO=function(){this.u=(0,g.mC)()};
QT.prototype.reset=function(){this.j=this.u=NaN};
QT.prototype.SO=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.1>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};a.J&&(c.cttAuthInfo={token:a.J,videoId:a.videoId});PH("seek",c);g.OH({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.u)||RH("pl_ss",this.u,"seek");RH(b,(0,g.mC)(),"seek")}this.reset()}};g.k=qNa.prototype;g.k.reset=function(){MH(this.timerName)};
g.k.tick=function(a,b){RH(a,b,this.timerName)};
g.k.Fi=function(a){return ysa(a,this.timerName)};
g.k.Au=function(a){RT(a,void 0,this.timerName)};
g.k.info=function(a,b){QH(a,b,this.timerName)};g.x(tNa,g.SG);g.k=tNa.prototype;g.k.Yk=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.rp=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.u++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.u++}this.ra("shuffle")};
g.k.Kg=function(a){a=a||"hqdefault.jpg";var b=this.V[a];if(b||this.Ia.Ba||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.B.length)return NM(this.Ia,this.B[0],a)};
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.bA(this.j,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Wk=function(){return this.Ia.getVideoUrl(g.TT(this).videoId,this.getPlaylistId())};
g.k.xa=function(){this.j=null;g.sb(this.items);g.SG.prototype.xa.call(this)};var UT=new Map;g.x(g.WT,g.SG);g.k=g.WT.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.Ih=function(){};
g.k.vl=function(){return!0};
g.k.xa=function(){this.loaded&&this.unload();g.SG.prototype.xa.call(this)};
g.k.qc=function(){return{}};
g.k.getOptions=function(){return[]};g.x(g.$T,g.G);g.k=g.$T.prototype;g.k.Ht=aa(30);g.k.Jz=function(){};
g.k.Zr=function(){};
g.k.Lv=function(){return""};
g.k.IP=aa(31);g.k.xa=function(){this.Zr();g.G.prototype.xa.call(this)};g.x(g.aU,g.$T);g.aU.prototype.Ht=aa(29);g.aU.prototype.Jz=function(a){if(this.audioTrack)for(var b=g.u(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.ZT(this.j,c.value);a()};
g.aU.prototype.Lv=function(a,b){var c=a.kf(),d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.zA()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.lN(a));this.Z.N("web_player_topify_subtitles_for_shorts")&&this.B&&(d.xosf="1");Object.assign(d,this.Z.j);return Uz(c,d)};
g.aU.prototype.Zr=function(){this.u&&this.u.abort()};g.GNa.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.ffb=new Map;g.x(g.dU,g.$T);g.dU.prototype.Ht=aa(28);
g.dU.prototype.Jz=function(a){var b=this,c=this.B,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.hW&&(d.asrs=1);c=Uz(c,d);this.Zr();this.u=g.hA(c,{format:"RAW",onSuccess:function(e){b.u=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),t=l.getAttribute("id"),v="true"===l.getAttribute("lang_default"),y="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.ZT(b.j,new g.iN({languageCode:m,languageName:n,name:p,kind:q,id:t,is_servable:!0,is_translateable:y,vss_id:l,is_default:v}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.D[m.languageCode]=m.languageName,b.C.push(m)}a()},
withCredentials:!0})};
g.dU.prototype.Lv=function(a,b){var c=this.B;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.lN(a));Object.assign(b,this.Z.j);return c=Uz(c,b)};
g.dU.prototype.Zr=function(){this.u&&this.u.abort()};MNa.prototype.reload=function(){var a=this;return g.Ha(function(b){if(1==b.j)return eU&&a.module?g.z(b,WebAssembly.instantiate(a.module,a.u),6):a.exports&&a.B?g.z(b,a.B(a.u),5):b.Ka(0);if(6!=b.j)return a.exports=b.u,b.Ka(0);a.instance=b.u;a.exports=a.instance.exports;g.xa(b)})};
g.SK||g.HL&&!g.xA("windows nt")||g.dC||g.NC||wA();var eU="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);g.x(TNa,g.G);g.k=TNa.prototype;g.k.createSubtitlesModuleIfNeeded=function(){XNa(this)&&gU(this,"captions");return!!g.fU(this)};
g.k.SE=function(){return this.I.getVideoData().SE()};
g.k.BQ=function(){return this.I.getVideoData().BQ()};
g.k.xU=function(){var a=this.Se.get("heartbeat");gU(this,"heartbeat",!1,!0,this.xU);!a&&this.Se.has("heartbeat")&&this.I.ra("offlineslatestatechange")};
g.k.sG=function(){gU(this,"annotations_module",!0,void 0,this.sG);var a=this.Se.get("annotations_module");if(a)for(var b in this.B)if(this.B.hasOwnProperty(b)){var c=b;a.subscribe(c,this.B[c])}};
g.k.dM=function(){if(!this.Se.get("ad"))try{UNa(this)?gU(this,"ad",!1,!0,this.dM):this.I.Fg("ad")}catch(a){this.I.Fg("ad"),g.sG(a)}};
g.k.di=function(){return this.u};
g.k.Gq=function(){var a={},b=g.fU(this);b&&Object.assign(a,b.Gq());return a};
g.k.Lz=function(a,b){Object.assign(this.u,a||null);Object.assign(this.tG,b||null)};
g.k.onVideoDataChange=function(){var a=this.I.getVideoData();this.I.N("enable_wn_infocards")&&g.KO(a)&&!g.lU(this)&&this.sG()};
g.k.xa=function(){g.G.prototype.xa.call(this);hU(this,1,!0);for(var a=g.u(Object.entries(jOa)),b=a.next();!b.done;b=a.next()){var c=g.u(b.value);b=c.next().value;c=c.next().value;this.C.has(c)&&UT.delete(b)}this.C.clear()};
var p4={},jOa=(p4.ad="ad.js",p4.annotations_module="annotations_module.js",p4.asmjs="asmjs.js",p4.creatorendscreen="annotations_module.js",p4.embed="embed.js",p4.endscreen="endscreen.js",p4.heartbeat="heartbeat.js",p4.inline_preview="inline_preview.js",p4.kids="kids.js",p4.remote="remote.js",p4.miniplayer="miniplayer.js",p4.music="music.js",p4.offline="offline.js",p4.captions="captions.js",p4.unplugged="unplugged.js",p4.ux="ux.js",p4.webgl="webgl.js",p4.ypc="ypc.js",p4.ypc_clickwrap="ypc_clickwrap.js",
p4.yto="yto.js",p4);g.x(lOa,g.SG);g.k=lOa.prototype;g.k.P1=function(a){a=SP(a);if(!ue(a,this.C)){var b=2;this.J&&(b|=8);this.C=a;mU(this,b,!0)}};
g.k.v6=function(){this.J&&mU(this,8,!0);mU(this,2,!1)};
g.k.nw=function(a){var b=SP(a);ue(b,this.C)||(this.C=b,(a=g.TP(a))&&this.fG(a)&&(mU(this,4,!0),this.j.Mc(this.B),this.B=this.j.T(this.target,"mouseover",this.Uz),this.K=this.j.T(this.target,"mouseout",this.Uz)))};
g.k.Uz=function(a){a=g.QP?a.relatedTarget:iB(a);a&&this.fG(a)||(this.C=new g.te(NaN,NaN),mOa(this))};
g.k.T5=function(){mU(this,1,!0)};
g.k.I4=function(a){a=g.TP(a);a instanceof Element&&!(0<a.tabIndex)||mU(this,1,!0)};
g.k.NS=function(){this.J=!0;this.j.Mc(this.D);this.D=this.j.T(document,"mouseup",this.Q1)};
g.k.Q1=function(){this.J=!1;mU(this,8,!1);this.j.Mc(this.D);this.D=this.j.T(this.target,"mousedown",this.NS)};
g.k.OS=function(a){if(a=(a=a.changedTouches)&&a[0])this.Ba=a.identifier,this.j.Mc(this.V),this.V=this.j.T(this.target,"touchend",this.R1,void 0,!0),mU(this,1024,!0)};
g.k.R1=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.Ba){var d=c;break}}d&&(this.j.Mc(this.V),this.V=this.j.T(this.target,"touchstart",this.OS,void 0,!0),mU(this,1024,!1))};
g.k.Rp=function(){mU(this,2,!0)};
g.k.resize=function(){g.SK&&mOa(this)};
g.k.toString=function(){return g.SG.prototype.toString.call(this)};g.x(g.oU,g.X);
g.oU.prototype.Sa=function(){var a=this.api.getVideoData(),b=this.api.W(),c=!!g.US(this.api);g.Wq(this.element,"ytp-shorts-mode",c);c?c=[{G:"svg",Y:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},X:[{G:"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"}},{G:"path",Y:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:a.Dd&&(a.Xl||b.oa)?c=b.oa?[{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},X:[{G:"path",S:"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"}},{G:"path",Y:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},X:[{G:"path",S:"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"}},{G:"path",Y:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:b.K?(g.Wq(this.element,"ytp-touch-device",b.u),c=[b.K?{G:"svg",Y:{height:"100%",version:"1.1",
viewBox:"0 0 60 60",width:"100%"},X:[{G:"path",S:"ytp-large-play-button-bg",Y:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",Y:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},X:[{G:"path",S:"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"}},{G:"path",Y:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):c=[{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},X:[{G:"path",S:"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"}},{G:"path",Y:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",c);a.Dd&&(a.Xl||b.oa)&&(a=a.Xl?a.Xl:"#1f1f1f",this.Ha("ytp-dni-large-play-button-bg").setAttribute("fill",a))};
g.oU.prototype.show=function(){g.X.prototype.show.call(this);this.api.W().N("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.Za(this.element,!0)};
g.oU.prototype.j=function(){this.api.getVideoData().mutedAutoplay||(this.api.Nz(),this.api.playVideo())};
g.oU.prototype.u=function(a){this.api.getVideoData().mutedAutoplay||g.VP(a)};g.x(g.pU,g.X);g.k=g.pU.prototype;g.k.show=function(){var a=this;this.Gb||(this.C.T(this.api,"videodatachange",function(){g.Lq(a.j)}),this.C.T(this.api,"videoplayerreset",function(){g.Lq(a.j)}));
g.X.prototype.show.call(this)};
g.k.hide=function(){this.C&&g.nB(this.C);g.X.prototype.hide.call(this)};
g.k.Kb=function(){g.Lq(this.j)};
g.k.onStateChange=function(){g.Lq(this.j)};
g.k.r9=function(){g.Lq(this.j)};
g.k.xw=function(){this.u.stop();this.hide();g.Lq(this.j)};
g.k.Sa=function(){var a=this.api.Nb();if(3===this.api.getPresentingPlayerType()&&(a.wd()||g.cQ(a)))var b=!0;else(b=this.api.Fb().Se.get("ypc"))&&b.BI?b=!0:(b=this.api.W(),b=g.yP(a,2)&&g.QS(this.api)&&b.Gh?!0:!1);b?(b=!0,this.B.hide()):this.api.N("web_player_show_frame_zero_when_cued")&&nOa(this)?(b=!0,this.B.hide()):(this.B.show(),b=a.isCued()&&2!==this.api.getPresentingPlayerType()||g.yP(a,2)&&!g.QS(this.api)&&!this.api.yC()||g.yP(a,1024)?!0:!1);b?(this.u.show(),a=this.api.getVideoData(),this.iaa(this.api.getPlaylist(),
a)):(this.u.hide(),g.yP(a,1)||this.u.stop())};
g.k.iaa=function(){var a=g.Ia.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&&nOa(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.eO&&!c.videoId)){e=this.api.qb().getPlayerSize();var f=g.PM();d=e.width*f;f*=e.height;if(1280<d||720<f)if(e=c.Kg("maxresdefault.jpg"))break;if(640<d||480<f)if(e=c.Kg("maxresdefault.jpg"))break;
if(320<d||180<f)if(e=c.Kg("sddefault.jpg")||c.Kg("hqdefault.jpg")||c.Kg("mqdefault.jpg"))break;if(e=c.Kg("default.jpg"))break}g.TM(b)&&(b=new Image,b.addEventListener("load",function(){zsa()}),b.src=e?e:"",this.api.di().tick("ftr"));
this.D.style.backgroundImage=e?"url("+e+")":""};g.x(g.qU,g.X);g.qU.prototype.resize=function(){};
g.qU.prototype.u=function(a){var b=this;rOa(this);var c=a.wM,d=this.api.W();"GENERIC_WITHOUT_LINK"!==c||d.K?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.qe(pOa(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Wk(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.K?this.qe(g.rU(a.errorMessage)):this.qe(pOa(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.Yj(c,{hl:a})),this.qe(pOa(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.md&&!d.C&&qOa(this,function(e){if(g.oT(e,b.api,!OM(b.api.W()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.Qa("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var oOa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.x(tU,g.PK);tU.prototype.Yi=function(){vOa(this)};
tU.prototype.onVideoDataChange=function(){var a=this,b=this.I.getVideoData();if(b.Fe()){var c=this.I.W(),d=[],e="";if(!c.Ba){var f=tOa(this);c.N("enable_web_media_session_metadata_fix")&&g.EM(c)&&f?(d=uOa(f.thumbnailDetails),f.album&&(e=g.VG(f.album))):d=[{src:b.Kg("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}vOa(this);sOa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.TS(this.I)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"),
b=function(){a.I.nextVideo()},c=function(){a.I.previousVideo()});
uU(this,"nexttrack",b);uU(this,"previoustrack",c)}};
tU.prototype.xa=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.u(this.j),b=a.next();!b.done;b=a.next())uU(this,b.value,null);g.PK.prototype.xa.call(this)};g.x(wOa,g.X);g.k=wOa.prototype;g.k.onClick=function(a){g.oT(a,this.I,!0);this.I.ub(this.element)};
g.k.onVideoDataChange=function(a,b){yOa(this,b);this.mf&&zOa(this,this.mf)};
g.k.Md=function(a){var b=this.I.getVideoData();this.videoId!==b.videoId&&yOa(this,b);this.j&&zOa(this,a.state);this.mf=a.state};
g.k.yd=function(){this.C.show();this.I.ra("paidcontentoverlayvisibilitychange",!0);this.I.Za(this.element,!0)};
g.k.Mb=function(){this.C.hide();this.I.ra("paidcontentoverlayvisibilitychange",!1);this.I.Za(this.element,!1)};g.x(vU,g.X);vU.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.X.prototype.hide.call(this)};
vU.prototype.onStateChange=function(a){this.Ac(a.state)};
vU.prototype.Ac=function(a){if(g.yP(a,128))var b=!1;else{var c;b=(null==(c=this.api.td())?0:c.Et)?!1:g.yP(a,16)||g.yP(a,1)?!0:!1}b?this.j.start():this.hide()};
vU.prototype.u=function(){this.message.style.display="block"};g.x(wU,g.$S);wU.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(AOa(this),this.yd()):(this.j&&this.ub(),this.Mb()))};
wU.prototype.Yi=function(a){this.api.isMutedByMutedAutoplay()&&g.GP(a,2)&&this.Mb()};
wU.prototype.onClick=function(){this.api.unMute();this.ub()};
wU.prototype.ub=function(){this.clicked||(this.clicked=!0,this.api.ub(this.element))};g.x(g.xU,g.PK);g.k=g.xU.prototype;g.k.init=function(){var a=this.api,b=a.Nb();this.tH=a.getPlayerSize();this.vc(b);this.Tp();this.Kb();this.api.ra("basechromeinitialized",this);this.jN()&&this.api.ra("standardControlsInitialized")};
g.k.onVideoDataChange=function(a,b){var c=this.rD!==b.videoId;if(c||"newdata"===a)a=this.api,a.isFullscreen()||(this.tH=a.getPlayerSize());c&&(this.rD=b.videoId,c=this.sf,c.Ga=b&&0<b.pg.length?5E3:3E3,mU(c,512,!0),this.Tp());this.api.N("web_render_jump_buttons")&&b.showSeekingControls&&(this.sZ=572)};
g.k.a8=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.mu=function(){var a=this.api.Mk()&&this.api.So();return this.rG||a||this.AN};
g.k.El=function(){var a=!this.mu();g.Wq(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.fG=function(a){try{if(!g.rf(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!tf(a);)a=a===this.api.getRootNode()?null:g.qf(a);return!!a};
g.k.Jn=function(a){var b=this.api.getRootNode();g.Wq(b,"ytp-autohide",a);g.Wq(b,"ytp-autohide-active",!0);this.VT.start(a?250:100);a&&(this.DJ=!1,g.Uq(b,"ytp-touch-mode"));this.cM=!a;this.api.OE(!a)};
g.k.MO=function(){var a=this.api.getRootNode();g.Wq(a,"ytp-autohide-active",!1)};
g.k.D8=function(){this.aR=!0};
g.k.C8=function(a){if(this.api.W().N("player_doubletap_to_seek")||this.api.W().V)this.aR=!1,this.bR&&this.Mc(this.bR),0===this.BD&&yU(this,a)?(this.pH(),this.yG.start(),this.bR=this.T(this.api.qb(),"touchmove",this.D8,void 0,!0)):this.yG.stop();EOa(this)&&yU(this,a)&&!this.api.W().V&&COa(this);var b=this.jR.vj();if(!g.xM(this.api.W())&&uM&&FOa(this,a))b&&g.VP(a);else if(this.DJ=!0,g.Sq(this.api.getRootNode(),"ytp-touch-mode"),this.sf.Rp(),this.api.W().N("player_doubletap_to_seek")||this.api.W().V)if(b=
this.api.Nb(),!(!this.api.Nh()||g.yP(b,2)&&g.QS(this.api)||g.yP(b,64))){b=Date.now()-this.GW;this.BD+=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.BD-1);0<d&&d<b?(this.AE(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.AE(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.VP(a)}else nU&&this.api.W().V&&yU(this,
a)&&g.VP(a);this.GW=Date.now();this.MY.start()}};
g.k.B8=function(){this.CO.CN=!1;this.api.ra("rootnodemousedown",this.CO)};
g.k.x8=function(a){this.CO.CN||FOa(this,a)||(EOa(this)||!yU(this,a)||this.yG.isActive()||(COa(this),g.VP(a)),this.gC&&(this.gC=!1))};
g.k.pH=function(){};
g.k.Pw=function(){};
g.k.AE=function(){};
g.k.zE=function(){};
g.k.Wr=function(){var a=this.api.Nb();g.yP(a,2)&&g.QS(this.api)||(g.dQ(a)?this.api.pauseVideo():(this.Um&&(a=this.Um.B,document.activeElement===a.element&&this.api.ra("largeplaybuttonclicked",a.element)),this.api.Nz(),this.api.playVideo(),this.Um&&document.activeElement===this.Um.B.element&&(null==(a=this.jN())?a=0:a.playButton?(a.playButton.focus(),a=!0):a=!1,a||this.api.getRootNode().focus())))};
g.k.y8=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!DOa(this,hB(a)))if(a=this.api.W(),(this.api.W().N("player_doubletap_to_seek")||this.api.W().V)&&this.gC)this.gC=!1;else if(a.xc&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.WC(d)})}catch(d){this.WC(d)}};
g.k.WC=function(a){String(a).includes("fullscreen error")?g.tG(a):g.sG(a)};
g.k.z8=function(a){GOa(this,.3,a.scale);g.VP(a)};
g.k.A8=function(a){GOa(this,.1,a.scale)};
g.k.Kb=function(){var a=this.api.qb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.sf.resize();g.Wq(b,"ytp-fullscreen",this.api.isFullscreen());g.Wq(b,"ytp-large-width-mode",c);g.Wq(b,"ytp-small-mode",this.kh());g.Wq(b,"ytp-tiny-mode",this.CH());g.Wq(b,"ytp-big-mode",this.Mg());this.Jg&&this.Jg.resize(a)};
g.k.Yi=function(a){this.vc(a.state);this.Tp()};
g.k.PE=aa(32);g.k.VM=function(){var a=!!this.rD&&!this.api.Pf()&&!this.yP,b=2===this.api.getPresentingPlayerType(),c=this.api.W();if(b){if(lab&&c.N("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=iU(this.api.Fb());return a&&b.oZ()}return a&&(c.Im||this.api.isFullscreen()||c.yk)};
g.k.Tp=function(){var a=this.VM();this.zp!==a&&(this.zp=a,g.Wq(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.vc=function(a){var b=a.isCued()||this.api.qp()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.cR&&this.Mc(this.cR),this.cR=this.T(this.api.qb(),"touchstart",this.C8,void 0,b));var c=a.wd()&&!g.yP(a,32)||this.api.lD();mU(this.sf,128,!c);c=3===this.api.getPresentingPlayerType();mU(this.sf,256,c);c=this.api.getRootNode();if(g.yP(a,2))var d=[j4.ENDED];else d=[],g.yP(a,8)?d.push(j4.PLAYING):g.yP(a,4)&&d.push(j4.PAUSED),g.yP(a,1)&&!g.yP(a,32)&&d.push(j4.BUFFERING),g.yP(a,
32)&&d.push(j4.SEEKING),g.yP(a,64)&&d.push(j4.UNSTARTED);g.Xb(this.nL,d)||(g.Vq(c,this.nL),this.nL=d,g.Tq(c,d));d=this.api.W();var e=g.yP(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.yP(a,2)||this.isCued||(2!==this.api.getPresentingPlayerType()?0:F$a(iU(this.api.Fb())))||g.xM(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.Wq(c,"ytp-hide-controls",!f);g.Wq(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.AN);g.yP(a,128)&&!g.xM(d)?
(this.Jg||(this.Jg=new g.qU(this.api),g.H(this,this.Jg),g.XS(this.api,this.Jg.element,4)),this.Jg.u(a.gh),this.Jg.show()):this.Jg&&(this.Jg.dispose(),this.Jg=null)};
g.k.fm=function(){return this.api.Mk()&&this.api.So()?(this.api.zA(!1,!1),!0):this.api.Pf()?(g.RS(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.AN=a;this.El()};
g.k.Mg=function(){return!1};
g.k.kh=function(){return!this.Mg()&&(this.api.getPlayerSize().width<this.sZ||290>this.api.getPlayerSize().height)};
g.k.CH=function(){return this.kh()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.qm=function(){return this.DJ};
g.k.hn=function(){return null};
g.k.PG=function(){return null};
g.k.Vk=function(){var a=this.api.qb().getPlayerSize();return new g.Rn(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.Dw=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.qb().OE(a)};
g.k.Rp=function(){};
g.k.jN=function(){return null};
g.k.WM=function(){return this.tH};g.x(zU,g.SG);g.k=zU.prototype;g.k.Ym=function(){return 1E3*this.api.getDuration(this.jo,!1)};
g.k.stop=function(){this.j&&this.Cd.Mc(this.j)};
g.k.Bc=function(){var a=this.api.getProgressState(this.jo);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.jo,!1)};this.ra("h")};
g.k.getProgressState=function(){return this.u};
g.k.Md=function(a){g.GP(a,2)&&this.ra("g")};g.x(HOa,g.X);HOa.prototype.onClick=function(){this.I.Qa("BACK_CLICKED")};g.x(g.AU,g.X);g.AU.prototype.show=function(){g.X.prototype.show.call(this);g.Lq(this.j)};
g.AU.prototype.hide=function(){this.u.stop();g.X.prototype.hide.call(this)};
g.AU.prototype.Pw=function(a){a?g.yP(this.I.Nb(),64)||BU(this,VEa(),"Reproduzir"):(a=this.I.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?BU(this,$Ea(),"Parar reprodu\u00e7\u00e3o em direto"):BU(this,SEa(),"Pausa"))};g.x(LOa,g.X);g.k=LOa.prototype;g.k.yd=function(){this.I.W().N("player_new_info_card_format")&&g.Rq(this.I.getRootNode(),"ytp-cards-teaser-shown")&&!g.xM(this.I.W())||(this.u.show(),g.PD("iv-button-shown"))};
g.k.Mb=function(){g.PD("iv-button-hidden");this.u.hide()};
g.k.vj=function(){return this.Gb&&4!==this.u.state};
g.k.xa=function(){this.j&&this.j();g.X.prototype.xa.call(this)};
g.k.A7=function(){g.PD("iv-button-mouseover")};
g.k.i7=function(a){this.I.Mk();var b=g.Rq(this.I.getRootNode(),"ytp-cards-teaser-shown");g.PD("iv-teaser-clicked",b);var c;if(null==(c=this.I.getVideoData())?0:g.JO(c)){var d;a=null==(d=this.I.getVideoData())?void 0:g.KO(d);(null==a?0:a.onIconTapCommand)&&this.I.Qa("innertubeCommand",a.onIconTapCommand)}else d=0===a.screenX&&0===a.screenY,this.I.zA(!this.I.So(),d,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.x(MOa,g.X);g.k=MOa.prototype;g.k.e_=function(){this.I.Mk()&&this.I.So()&&this.vj()&&this.Mb()};
g.k.QQ=function(){this.Mb();!this.I.Mk()&&this.I.W().N("enable_error_corrections_infocards_icon_web")&&this.wh.Mb();g.PD("iv-teaser-clicked",null!=this.j);if(this.onClickCommand)this.I.Qa("innertubeCommand",this.onClickCommand);else{var a;(null==(a=this.I.getVideoData())?0:g.JO(a))||this.I.zA(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.k.S1=function(){g.PD("iv-teaser-mouseover");this.j&&this.j.stop()};
g.k.Z8=function(a){this.I.W().N("player_new_info_card_format")&&!g.xM(this.I.W())?this.wh.Mb():this.I.W().N("enable_error_corrections_infocards_icon_web")&&this.wh.yd();this.j||!a||this.I.So()||this.u&&this.u.isActive()||(this.yd(a),g.PD("iv-teaser-shown"))};
g.k.yd=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.hr(a.teaserText));this.C.show();this.u=new g.Kq(function(){g.Sq(this.I.getRootNode(),"ytp-cards-teaser-shown");this.I.N("player_new_info_card_format")&&!g.xM(this.I.W())&&this.wh.Mb();this.pR()},0,this);
this.u.start();KOa(this.wh,!1);this.j=new g.Kq(this.Mb,580+a.durationMs,this);this.j.start();this.D.push(this.Ta("mouseover",this.QS,this));this.D.push(this.Ta("mouseout",this.PS,this))};
g.k.pR=function(){if(!this.I.W().N("player_new_info_card_format")&&g.xM(this.I.W())&&this.Gb){var a=this.wh.element.offsetLeft,b=g.Ne("ytp-cards-button-icon"),c=this.I.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.O3=function(){g.xM(this.I.W())&&this.oa.kh()&&this.Gb&&this.V.start()};
g.k.QS=function(){this.J.stop();this.j&&this.j.isActive()&&this.K.start()};
g.k.PS=function(){this.K.stop();this.j&&!this.j.isActive()&&this.J.start()};
g.k.N7=function(){this.j&&this.j.stop()};
g.k.M7=function(){this.Mb()};
g.k.Gp=function(){this.Mb()};
g.k.Mb=function(){!this.j||this.B&&this.B.isActive()||(g.PD("iv-teaser-hidden"),this.C.hide(),g.Uq(this.I.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.Kq(function(){for(var a=g.u(this.D),b=a.next();!b.done;b=a.next())this.Mc(b.value);this.D=[];this.j&&(this.j.dispose(),this.j=null);KOa(this.wh,!0);!this.I.Mk()&&this.I.W().N("enable_error_corrections_infocards_icon_web")&&this.wh.Mb()},330,this),this.B.start())};
g.k.vj=function(){return this.Gb&&4!==this.C.state};
g.k.xa=function(){var a=this.I.getRootNode();a&&g.Uq(a,"ytp-cards-teaser-shown");g.sb(this.u,this.B,this.j);g.X.prototype.xa.call(this)};var q4={},IU=(q4.BUTTON="ytp-button",q4.TITLE_NOTIFICATIONS="ytp-title-notifications",q4.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",q4.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",q4.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",q4);g.x(NOa,g.X);
NOa.prototype.onClick=function(){this.api.ub(this.element);var a=!this.j;this.updateValue("label",a?"Deixar de receber notifica\u00e7\u00f5es acerca de todos os v\u00eddeos novos":"Receber notifica\u00e7\u00f5es acerca de todos os v\u00eddeos novos");this.updateValue("pressed",a);OOa(this,a)};g.Qa("yt.pubsub.publish",g.PD);g.x(g.LU,g.X);g.LU.prototype.C=function(){window.location.reload()};
g.LU.prototype.j=function(){g.Sq(this.element,"ytp-sb-subscribed")};
g.LU.prototype.u=function(){g.Uq(this.element,"ytp-sb-subscribed")};g.x(ROa,g.X);g.k=ROa.prototype;g.k.h7=function(a){this.api.ub(this.j);var b=this.api.W();b.u||b.Eb?TOa(this)&&(this.isExpanded()?this.oG():this.FG()):g.gl(MU(this));a.preventDefault()};
g.k.gQ=function(){VOa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.FG=function(){if(TOa(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.B&&this.B.stop();this.api.N("web_player_ve_conversion_fixes_for_channel_info")&&this.api.Za(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.Za(this.subscribeButton.element,!0));var a=this.api.getVideoData();
this.u&&a.Il&&a.subscribed&&(this.u.show(),this.api.Za(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.oG=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.B&&this.B.start()};
g.k.Sa=function(){var a=this.api.W();g.$Q(this,!g.US(this.api));var b=this.api.getVideoData(),c=this.api.W(),d=this.api.getVideoData();this.C=!1;var e=!!d.videoId&&!!d.xc&&!!d.profilePicture;2===this.api.getPresentingPlayerType()?this.C=e&&!!d.isListed&&!!d.author:g.xM(c)&&(this.C=e&&!(d.Dd&&c.oa)&&!c.B&&!(c.V&&200>this.api.getPlayerSize().width));c=b.profilePicture;a=g.xM(a)?b.expandedTitle:b.author;c=void 0===c?"":c;a=void 0===a?"":a;this.C?(this.J!==c&&(this.j.style.backgroundImage="url("+c+")",
this.J=c),this.api.N("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",MU(this)),this.updateValue("channelLogoLabel",g.MP("Foto ou imagem de $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Sq(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Uq(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Za(this.j,this.C&&this.ea);this.subscribeButton&&(this.subscribeButton.channelId=b.Fk);this.updateValue("expandedTitle",b.expandedTitle);this.api.N("web_player_ve_conversion_fixes_for_channel_info")||
this.updateValue("channelTitleLink",MU(this));this.updateValue("expandedSubtitle",b.expandedSubtitle)};
g.k.lc=function(a){g.X.prototype.lc.call(this,a);this.api.Za(this.j,this.C&&a)};g.x(NU,g.aR);NU.prototype.AX=function(){this.ra("size-change")};
NU.prototype.focus=function(){this.content.focus()};
NU.prototype.vX=function(){this.ra("back")};g.x(g.OU,NU);g.k=g.OU.prototype;g.k.rd=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,XOa);if(0<=b)return;b=~b;g.Qb(this.items,b,0,a);g.ff(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.gP,this);this.menuItems.ra("size-change")};
g.k.Ch=function(a){a.unsubscribe("size-change",this.gP,this);this.isDisposed()||(g.Hb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ra("size-change"))};
g.k.gP=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.x(PU,g.cT);PU.prototype.j=function(a){g.UP(a)||39!==g.RP(a)||(this.element.click(),g.VP(a))};g.x(YOa,g.X);g.k=YOa.prototype;g.k.show=function(){g.X.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.k.hide=function(){g.X.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.k.T1=function(a){var b=hB(a),c=g.rf(this.closeButton.element,b),d=g.rf(this.element,b);a=this.j&&g.rf(this.j,b)&&g.IR(a);b&&(d||a)&&!c||this.hide()};
g.k.U1=function(){g.JU(g.LM(this.bb.W()),"user_info_panel",function(){window.location.reload()})};
g.k.Sa=function(){var a=this.bb.W(),b={USER_NAME:a.userDisplayName,USER_EMAIL:a.Ri};this.updateValue("icon",TEa());this.updateValue("watchingAsUsername",g.MP("A ver como $USER_NAME",b));a.Ri?this.updateValue("watchingAsEmail",g.MP("($USER_EMAIL)",b)):this.updateValue("watchingAsEmail","")};g.x($Oa,g.OU);g.k=$Oa.prototype;g.k.R3=function(){this.Lb.Mb()};
g.k.n7=function(){WLa(this.Py.element)};
g.k.w7=function(){SU(this,this.I.getDebugText(!0))&&BU(this.Yc,FEa())};
g.k.x7=function(){SU(this,this.I.getVideoEmbedCode())&&BU(this.Yc,JEa());this.I.ub(this.Zm.element);VFa("EMBED",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.k.y7=function(){SU(this,this.I.getVideoUrl(!0,!0))&&BU(this.Yc,gR());this.I.ub(this.getVideoUrl.element);VFa("COPY_PASTE",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.k.z7=function(){SU(this,this.I.getVideoUrl(!1,!0))&&BU(this.Yc,gR());this.I.ub(this.pn.element);VFa("COPY_PASTE",this.I.getVideoData().videoId,this.I.getPlaylistId()||"")};
g.k.onLoopChange=function(a){var b;null==(b=this.al)||nT(b,a)};
g.k.G7=function(){this.I.setLoopVideo(this.al.getValue());this.Lb.Mb();this.I.ub(this.al.element)};
g.k.t8=function(a){this.I.reportPlaybackIssue();if(g.oT(a,this.I,!OM(this.I.W()))){a=this.I;var b=a.app.getFeedbackProductData();a.Qa("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Lb.Mb()};
g.k.M8=function(){g.ES(this.I,"isVideoInfoVisible",[])?g.ES(this.I,"hideVideoInfo",[]):g.ES(this.I,"showVideoInfo",[]);this.Lb.Mb()};
g.k.L8=function(){this.wl&&(this.hF||(this.hF=new YOa(this.I,this.wl.element),g.H(this,this.hF),g.XS(this.I,this.hF.element,4)),this.hF.show(),this.Lb.Mb(),this.I.ub(this.wl.element))};
g.k.onVideoDataChange=function(a,b){this.QE(b)};
g.k.QE=function(a){var b=this.I.W(),c=2===this.I.getPresentingPlayerType(),d=!c||a.isListed;d=!b.Ba&&!!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.u&&(b.fmt=a.u.itag),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.Ga&&(b.partnerid=a.Ga),b=g.Yj("//support.google.com/googleplay/",b));g.$Q(this.Zm,d&&a.allowEmbed);g.$Q(this.getVideoUrl,d);g.$Q(this.pn,d&&
!a.isLivePlayback);this.BE.qe(b,"href");var e;null==(e=this.al)||g.$Q(e,!a.isLivePlayback&&!c);var f;null==(f=this.wl)||g.$Q(f,!c)};
g.k.lc=function(a){g.OU.prototype.lc.call(this,a);this.I.Za(this.Zm.element,a);this.I.Za(this.getVideoUrl.element,a);this.I.Za(this.pn.element,a);this.al&&this.I.Za(this.al.element,a);this.wl&&this.I.Za(this.wl.element,a)};g.x(g.TU,g.$S);g.k=g.TU.prototype;g.k.show=function(){g.$S.prototype.show.call(this);this.TA()};
g.k.hide=function(){g.$S.prototype.hide.call(this);1<this.j.length&&g.UU(this)};
g.k.TA=function(){dPa(this);this.Gb&&(bPa(this),g.so(this.element,this.size))};
g.k.Fj=function(){var a=this.j.pop();cPa(this,a,this.j[this.j.length-1],!0)};
g.k.V1=function(a){if(!g.UP(a))switch(g.RP(a)){case 27:this.Mb();g.VP(a);break;case 37:1<this.j.length&&this.Fj();g.VP(a);break;case 39:g.VP(a)}};
g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
g.k.xa=function(){g.$S.prototype.xa.call(this);this.D&&this.D.dispose();this.J&&this.J.dispose()};g.x(g.VU,g.TU);g.k=g.VU.prototype;g.k.X1=function(a){var b=hB(a);if(!(b&&(vf(b,"a")||vf(b,null,"ytp-no-contextmenu"))||this.Gb)){var c;this.Ba=(a=null==(c=a.touches)?void 0:c.item(0))?new g.te(a.clientX,a.clientY):new g.te(0,0);this.qa.start()}};
g.k.cY=function(){this.qa.stop()};
g.k.e9=function(){this.open(this.Ba)};
g.k.aV=function(){if(this.B&&aPa(this.B)){var a=aPa(this.B).element;a.tabIndex=-1;a.focus()}else this.element.tabIndex=-1,this.element.focus()};
g.k.show=function(){this.B||(this.B=new $Oa(this.I,this.Ga,this,this.Yc),g.H(this,this.B),g.RU(this,this.B));this.B.onLoopChange(this.I.getLoopVideo());g.TU.prototype.show.call(this);this.I.Za(this.element,!0);this.B.lc(!0)};
g.k.hide=function(){fPa(this);g.TU.prototype.hide.call(this);this.I.Za(this.element,!1);this.B&&this.B.lc(!1)};
g.k.l7=function(a){var b=hB(a);this.Gb||b&&(vf(b,"a")||vf(b,null,"ytp-no-contextmenu"))||(g.VP(a),this.open(SP(a)))};
g.k.yd=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.te(b.x,b.y))}g.TU.prototype.yd.call(this,a)};
g.k.open=function(a){gPa(this);var b=this.I.getVideoData();g.Wq(this.element,"ytp-dni",b.Dd);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.TU.prototype.yd.call(this);var c=document.body;b=new Kn(0,Infinity,Infinity,0);var d=Ie(c);for(var e=d.j.body,f=d.j.documentElement,h=tca(d.j);c=qia(c);)if(!(g.Pe&&0==c.clientWidth||g.Qc&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Yn(c,"overflow")){var l=g.qo(c),m=new g.te(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=sca(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.Rn(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.$n(this.element,new g.te(d.left,d.top));g.nB(this.C);this.C.T(document,"contextmenu",this.s7);this.C.T(this.I,"fullscreentoggled",this.onFullscreenToggled);this.C.T(this.I,"pageTransition",this.W1)};
g.k.s7=function(a){if(!g.UP(a)){var b=hB(a);g.rf(this.element,b)||this.Mb();this.I.W().disableNativeContextMenu&&g.VP(a)}};
g.k.onFullscreenToggled=function(){this.Mb();gPa(this)};
g.k.W1=function(){this.Mb()};g.x(g.WU,g.X);g.WU.prototype.onClick=function(){var a=this,b,c,d,e;return g.Ha(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,jPa(a,e),2);f.u&&iPa(a);a.api.ub(a.element);g.xa(f)})};
g.WU.prototype.Sa=function(){this.updateValue("icon",{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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","Copiar link");this.visible=hPa(this);g.Wq(this.element,"ytp-copylink-button-visible",
this.visible);g.$Q(this,this.visible);lT(this.tooltip);this.api.Za(this.element,this.visible&&this.ea)};
g.WU.prototype.lc=function(a){g.X.prototype.lc.call(this,a);this.api.Za(this.element,this.visible&&a)};
g.WU.prototype.xa=function(){g.X.prototype.xa.call(this);g.Uq(this.element,"ytp-copylink-button-visible")};g.x(YU,g.X);YU.prototype.show=function(){g.X.prototype.show.call(this);g.Lq(this.u)};
YU.prototype.hide=function(){this.C.stop();this.B=0;g.Uq(this.element,"ytp-chapter-seek");g.Uq(this.element,"ytp-time-seeking");g.X.prototype.hide.call(this)};
YU.prototype.AE=function(a,b,c,d){this.B=a===this.J?this.B+d:d;this.J=a;var e=-1===a?this.V:this.K;e&&this.I.ub(e);this.D?this.u.stop():g.Nq(this.u);this.C.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.I.qb().getPlayerSize().height;e=this.I.qb().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.I.qb().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");kPa(this,this.D?this.B:d)};var dV=window.Vab||"pt-PT";g.x(bV,g.X);g.k=bV.prototype;g.k.gI=function(){};
g.k.JD=function(){};
g.k.GA=function(){return!0};
g.k.z$=function(){if(this.expanded){this.Oa.show();var a=this.B.element.scrollWidth}else a=this.B.element.scrollWidth,this.Oa.hide();this.rb=34+a;g.Wq(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.rb)+"px";this.Ma.start()};
g.k.w4=function(){this.badge.element.style.width=(this.expanded?this.rb:34)+"px";this.Ya.start()};
g.k.jI=function(a){this.V=a;aV(this);$U(this);this.Cm()};
g.k.eaa=function(){g.Wq(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.tJ=function(){return this.oa||this.V||!this.J};
g.k.Cm=function(){this.GA()?this.K.show():this.K.hide();mPa(this)};
g.k.Y1=function(){this.enabled=!1;this.Cm()};
g.k.daa=function(){this.Cm()};
g.k.e7=function(a){this.kb=1===a;this.Cm();g.Wq(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.v7=function(){g.Wq(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.I.isFullscreen());this.Cm()};g.x(oPa,bV);g.k=oPa.prototype;g.k.GA=function(){return!!this.C};
g.k.tJ=function(){return!!this.C};
g.k.gI=function(a){a.target===this.dismissButton.element?a.preventDefault():cV(this,!1)};
g.k.JD=function(){cV(this,!0);this.aJ()};
g.k.m$=function(a){var b=this,c;if(a.id!==(null==(c=this.C)?void 0:c.identifier)){this.aJ();c=g.u(this.D);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.C=e;BEa(this.banner,d.accessibilityLabel||"");e=void 0;this.banner.update({url:pPa(d.onTapCommand),thumbnail:null==(e=(d.thumbnailSources||[])[0])?void 0:e.url,title:d.productTitle,vendor:d.vendorName,price:d.price});d.trackingParams&&
(this.j=!0,this.I.gg(this.badge.element,d.trackingParams));this.K.show();aV(this);g.$Q(this.qa,!d.stayInApp);tPa(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.Va=new g.Kq(function(){sPa(b)},1E3),this.qa.hide(),this.countdownTimer.show(),sPa(this))}}}};
g.k.aJ=function(){this.C&&(this.C=void 0,this.Cm())};
g.k.onVideoDataChange=function(a,b){var c=this;"dataloaded"===a&&qPa(this);var d,e;if(null==b?0:null==(d=b.getPlayerResponse())?0:null==(e=d.videoDetails)?0:e.isLiveContent){var f,h,l;a=b.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")?g.Q(null==(f=b.Ad)?void 0:null==(h=f.playerOverlays)?void 0:null==(l=h.playerOverlayRenderer)?void 0:l.productsInVideoOverlayRenderer,hza):b.shoppingOverlayRenderer;var m=null==a?void 0:a.featuredProductsEntityKey,n;if(b=null==a?void 0:null==(n=
a.dismissButton)?void 0:n.trackingParams)this.I.gg(this.dismissButton.element,b),this.u=!0;var p;(n=null==a?void 0:null==(p=a.dismissButton)?void 0:p.a11yLabel)&&BEa(this.dismissButton,g.VG(n));this.D.length||rPa(this,m);var q;null==(q=this.Eb)||q.call(this);this.Eb=g.uO.subscribe(function(){rPa(c,m)})}else this.aJ()};
g.k.xa=function(){qPa(this);tPa(this);bV.prototype.xa.call(this)};g.x(wPa,g.X);wPa.prototype.onClick=function(){this.I.ub(this.element,this.u)};g.x(xPa,g.$S);g.k=xPa.prototype;g.k.show=function(){g.$S.prototype.show.call(this);this.I.ra("infopaneldetailvisibilitychange",!0);this.I.Za(this.element,!0);yPa(this,!0)};
g.k.hide=function(){g.$S.prototype.hide.call(this);this.I.ra("infopaneldetailvisibilitychange",!1);this.I.Za(this.element,!1);yPa(this,!1)};
g.k.getId=function(){return this.C};
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.Fl)?void 0:null==(d=c.title)?void 0:d.content)||"",body:(null==(e=b.Fl)?void 0:null==(f=e.bodyText)?void 0:f.content)||""});var h;a=(null==(h=b.Fl)?void 0:h.trackingParams)||null;this.I.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.Fl)?0:l.ctaButtons)for(b=g.u(b.Fl.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.Q(l.value,kcb))l=new wPa(this.I,
l,this.j),l.Fe&&(this.itemData.push(l),l.Ja(this.items))}};
g.k.xa=function(){this.hide();g.$S.prototype.xa.call(this)};g.x(BPa,g.X);g.k=BPa.prototype;g.k.onVideoDataChange=function(a,b){APa(this,b);this.mf&&DPa(this,this.mf)};
g.k.Md=function(a){var b=this.I.getVideoData();this.videoId!==b.videoId&&APa(this,b);DPa(this,a.state);this.mf=a.state};
g.k.BX=function(a){(this.C=a)?this.hide():this.j&&this.show()};
g.k.b2=function(){this.u||this.yd();this.showControls=!0};
g.k.Z1=function(){this.u||this.Mb();this.showControls=!1};
g.k.yd=function(){this.j&&!this.C&&(this.B.show(),this.I.ra("infopanelpreviewvisibilitychange",!0),this.I.Za(this.element,!0))};
g.k.Mb=function(){this.j&&!this.C&&(this.B.hide(),this.I.ra("infopanelpreviewvisibilitychange",!1),this.I.Za(this.element,!1))};
g.k.p$=function(){this.u=!1;this.showControls||this.Mb()};var gfb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(gfb).reduce(function(a,b){a[gfb[b]]=b;return a},{});
var hfb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(hfb).reduce(function(a,b){a[hfb[b]]=b;return a},{});
var ifb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(ifb).reduce(function(a,b){a[ifb[b]]=b;return a},{});var jfb,kfb;jfb=[{option:"#fff",text:"Branco"},{option:"#ff0",text:"Amarelo"},{option:"#0f0",text:"Verde"},{option:"#0ff",text:"Azul-turquesa"},{option:"#00f",text:"Azul"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Vermelho"},{option:"#080808",text:"Preto"}];kfb=[{option:0,text:eV(0)},{option:.25,text:eV(.25)},{option:.5,text:eV(.5)},{option:.75,text:eV(.75)},{option:1,text:eV(1)}];
g.iV=[{option:"fontFamily",text:"Fam\u00edlia de tipos de letra",options:[{option:1,text:"Serif monoespa\u00e7ada"},{option:2,text:"Serif proporcional"},{option:3,text:"Sans-Serif monoespa\u00e7ada"},{option:4,text:"Sans-Serif proporcional"},{option:5,text:"Casual"},{option:6,text:"Cursivo"},{option:7,text:"Mai\u00fasculas pequenas"}]},{option:"color",text:"Cor do tipo de letra",options:jfb},{option:"fontSizeIncrement",text:"Tamanho da letra",options:[{option:-2,text:eV(.5)},{option:-1,text:eV(.75)},
{option:0,text:eV(1)},{option:1,text:eV(1.5)},{option:2,text:eV(2)},{option:3,text:eV(3)},{option:4,text:eV(4)}]},{option:"background",text:"Cor do fundo",options:jfb},{option:"backgroundOpacity",text:"Opacidade do fundo",options:kfb},{option:"windowColor",text:"Cor da janela",options:jfb},{option:"windowOpacity",text:"Opacidade da janela",options:kfb},{option:"charEdgeStyle",text:"Estilo do limite dos carateres",options:[{option:0,text:"Nenhum"},{option:4,text:"Sombra projetada"},{option:1,text:"Em relevo"},
{option:2,text:"Em depress\u00e3o"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidade do tipo de letra",options:[{option:.25,text:eV(.25)},{option:.5,text:eV(.5)},{option:.75,text:eV(.75)},{option:1,text:eV(1)}]}];var lfb=[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.x(g.hV,g.PK);g.k=g.hV.prototype;
g.k.KV=function(a){a.repeat||(this.B.sH=!1);var b=!1,c=g.RP(a),d=hB(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.JS(this.api.app)||lfb.includes(c)),f=!1,h=!1,l=this.api.W();g.UP(a)?(e=!1,h=!0):l.Ve&&!g.JS(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);EU(this.Yc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);
EU(this.Yc,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Nh()&&(this.api.startSeekCsiAction(),this.api.seekTo(0),h=f=!0);break;case 35:this.api.Nh()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&gV(this,!0);(b||h)&&this.sf.Rp();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&g.VP(a);l.J&&(a={keyCode:g.RP(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.UP(a),fullscreen:this.api.isFullscreen()},
this.api.Qa("onKeyPress",a))};
g.k.LV=function(a){this.handleGlobalKeyUp(g.RP(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)&&g.VP(a)};
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.B.sH)return b;(c=g.VS(this.api.Fb()))&&(c=c.ou)&&c.Gb&&(c.GV(a),b=!0);switch(a){case 9:gV(this,!0);b=!0;break;case 32:if(this.api.N("web_speedmaster_spacebar_control")&&!this.D&&!this.api.W().Ve){var l,m;a=null==(l=this.Pc)?void 0:null==(m=l.u)?void 0:m.isEnabled;b=this.Wr(a)}}return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.B.sH=!1);var m=!1,n=this.api.W();if(n.Ve&&!g.JS(this.api.app))return m;var p=g.VS(this.api.Fb());if(p&&(p=p.ou)&&p.Gb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.FV(a)}n.K||m||(m=f||String.fromCharCode(a).toLowerCase(),this.u+=m,0==="awesome".indexOf(this.u)?(m=!0,7===this.u.length&&$ka(this.api.getRootNode(),"ytp-color-party")):(this.u=m,m=0==="awesome".indexOf(this.u)));if(!m&&(!g.JS(this.api.app)||
lfb.includes(a))){var q=this.api.getVideoData(),t,v;p=null==(t=this.Pc)?void 0:null==(v=t.u)?void 0:v.isEnabled;t=q?q.jk:[];v=AX?d:c;switch(a){case 80:b&&!n.Va&&(BU(this.Yc,WEa(),"Anterior"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Va&&(BU(this.Yc,PEa(),"Seguinte"),this.api.nextVideo(),m=!0);break;case 74:this.api.Nh()&&(this.api.startSeekCsiAction(),this.j?ZU(this.j,-1,10):BU(this.Yc,{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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.Nh()&&(this.api.startSeekCsiAction(),this.j?ZU(this.j,1,10):BU(this.Yc,{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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.Nh()&&(this.api.startSeekCsiAction(),v?(v=GPa(t,1E3*this.api.getCurrentTime()),-1!==v&&null!=this.j&&(lPa(this.j,-1,t[v].title),this.api.seekTo(t[v].startTime/1E3),m=!0)):(this.j?ZU(this.j,-1,5):BU(this.Yc,{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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.Nh()&&(this.api.startSeekCsiAction(),v?(v=FPa(t,1E3*this.api.getCurrentTime()),-1!==v&&null!=this.j&&(lPa(this.j,1,t[v].title),this.api.seekTo(t[v].startTime/1E3),m=!0)):(null!=this.j?ZU(this.j,1,5):BU(this.Yc,{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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(),EU(this.Yc,this.api.getVolume(),!1)):(this.api.mute(),EU(this.Yc,0,!0));m=!0;break;case 32:m=this.api.N("web_speedmaster_spacebar_control")?!this.api.W().Va:this.Wr(p);break;case 75:m=this.Wr(p);break;case 190:b?n.Vf&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),IOa(this.Yc,!1),m=!0):this.api.Nh()&&(this.step(1),m=!0);break;case 188:b?n.Vf&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-
.25,!0),IOa(this.Yc,!0),m=!0):this.api.Nh()&&(this.step(-1),m=!0);break;case 70:SLa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0);
break;case 27:p?(this.Pc.Qs(),m=!0):this.J()&&(m=!0)}if("3"!==n.controlsType)switch(a){case 67:g.fU(this.api.Fb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),JOa(this.Yc,!n||n&&!n.displayName),m=!0);break;case 79:jV(this,"textOpacity");break;case 87:jV(this,"windowOpacity");break;case 187:case 61:jV(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:jV(this,"fontSizeIncrement",!0,!0)}var y;b||c||d||(48<=a&&57>=a?y=a-48:96<=a&&105>=a&&(y=a-96));null!=y&&this.api.Nh()&&
(this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(y/10*(n.seekableEnd-n.seekableStart)+n.seekableStart),m=!0);m&&this.sf.Rp()}this.D||this.api.ra("keyboardserviceglobalkeydown",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h,repeat:l},this.B);return m};
g.k.step=function(a){this.api.Nh();if(g.cQ(this.api.Nb())){var b=this.api.getVideoData().u;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30))}};
g.k.Wr=function(a){if(!this.api.W().Va){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.Q(d.miniplayer,Bdb))?void 0:e.playbackMode)}else b=!1;b&&this.api.Qa("onExpandMiniplayer");a?this.Pc.AM():(a=!g.dQ(this.api.Nb()),this.Yc.Pw(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
g.k.xa=function(){g.Nq(this.C);g.PK.prototype.xa.call(this)};g.x(g.kV,g.X);g.kV.prototype.Kr=aa(34);g.kV.prototype.Sa=function(){var a=this.I.W(),b=a.B||this.I.N("web_player_hide_overflow_button_if_empty_menu")&&this.Qh.isEmpty(),c=g.xM(a)&&g.TS(this.I)&&g.yP(this.I.Nb(),128),d=this.I.getPlayerSize();this.visible=this.u.kh()&&!c&&240<=d.width&&!(this.I.getVideoData().Dd&&a.oa)&&!b&&!this.j&&!g.US(this.I);g.Wq(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&lT(this.tooltip);this.I.Za(this.element,this.visible&&this.ea)};
g.kV.prototype.lc=function(a){g.X.prototype.lc.call(this,a);this.I.Za(this.element,this.visible&&a)};
g.kV.prototype.xa=function(){g.X.prototype.xa.call(this);g.Uq(this.element,"ytp-overflow-button-visible")};g.x(JPa,g.$S);g.k=JPa.prototype;g.k.d2=function(a){a=hB(a);g.rf(this.element,a)&&(g.rf(this.j,a)||g.rf(this.closeButton,a)||aT(this))};
g.k.Mb=function(){g.$S.prototype.Mb.call(this);this.tooltip.Pk(this.element)};
g.k.show=function(){this.Gb&&this.I.ra("OVERFLOW_PANEL_OPENED");g.$S.prototype.show.call(this);this.element.setAttribute("aria-modal","true");LPa(this,!0)};
g.k.hide=function(){g.$S.prototype.hide.call(this);this.element.removeAttribute("aria-modal");LPa(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.vj()&&aT(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.Gb){b.focus();break}};g.x(MPa,g.X);MPa.prototype.onClick=function(a){g.oT(a,this.api)&&this.api.playVideoAt(this.index)};g.x(NPa,g.$S);g.k=NPa.prototype;g.k.show=function(){g.$S.prototype.show.call(this);this.B.T(this.api,"videodatachange",this.HK);this.B.T(this.api,"onPlaylistUpdate",this.HK);this.HK()};
g.k.hide=function(){g.$S.prototype.hide.call(this);g.nB(this.B);this.updatePlaylist(null)};
g.k.HK=function(){this.updatePlaylist(this.api.getPlaylist());this.api.W().B&&(this.Ha("ytp-playlist-menu-title-name").removeAttribute("href"),this.C&&(this.Mc(this.C),this.C=null))};
g.k.gJ=function(){var a=this.playlist,b=a.author,c=b?"de $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.MP(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.u;if(b===this.D)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 MPa(this.api,a,d);this.j.push(e);e.Ja(this.items)}this.selected=this.j[a.index];this.D=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.d9=function(a){var b=this.api.getVideoUrl(!0);g.pT(b,this.api,a)};
g.k.updatePlaylist=function(a){this.playlist!==a?(this.playlist&&this.playlist.unsubscribe("shuffle",this.gJ,this),this.playlist=a,this.D=null,a?(a.subscribe("shuffle",this.gJ,this),this.gJ()):this.Gb&&this.hide()):this.playlist&&this.gJ()};
g.k.focus=function(){this.selected.focus()};
g.k.xa=function(){this.hide();g.$S.prototype.xa.call(this)};g.x(lV,g.X);lV.prototype.hide=function(){g.X.prototype.hide.call(this);this.lc(!1);lT(this.tooltip)};
lV.prototype.Sa=function(){var a=g.xM(this.api.W());g.Wq(this.element,"ytp-playlist-menu-button-tiny",400>this.api.qb().getPlayerSize().width&&!a);g.US(this.api)?this.hide():this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.MP("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.MP("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Gb||(this.show(),lT(this.tooltip)),
this.visible=!0,this.lc(!0)):this.Gb&&this.hide()};
lV.prototype.lc=function(a){g.X.prototype.lc.call(this,a);this.api.Za(this.element,this.visible&&a)};
lV.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.x(OPa,g.X);g.k=OPa.prototype;g.k.f2=function(){this.C?SPa(this):RPa(this)};
g.k.e2=function(){this.C?(mV(this),this.J=!0):RPa(this)};
g.k.C6=function(){this.D=!0;this.ME(1);this.I.ra("promotooltipacceptbuttonclicked",this.acceptButton);mV(this);this.u&&this.I.ub(this.acceptButton)};
g.k.r7=function(){this.D=!0;this.ME(2);mV(this);this.u&&this.I.ub(this.dismissButton)};
g.k.g2=function(a){if(1===this.I.getPresentingPlayerType()||2===this.I.getPresentingPlayerType()&&this.V){var b=!0,c=g.Ne("ytp-ad-overlay-ad-info-dialog-container"),d=hB(a);if(this.B&&d&&g.rf(this.B,d))this.B=null;else{1===this.I.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
var e=TPa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.rf(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.rf(this.element,d))}this.j&&this.Gb&&!c&&(!d||b&&g.IR(a))&&(this.D=!0,mV(this))}}};
g.k.ME=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.Q(d,jcb))?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.I.dn(),(null==a?0:YFa(d,a.tM))&&UR(a,d,e))}};
g.k.Kb=function(){this.J||(this.j||(this.j=PPa(this)),SPa(this))};
var QPa={"ytp-settings-button":g.YEa()};g.x(nV,g.X);nV.prototype.onStateChange=function(a){this.Ac(a.state)};
nV.prototype.Ac=function(a){g.$Q(this,g.yP(a,2))};
nV.prototype.onClick=function(){this.I.Nb();this.I.playVideo()};g.x(g.oV,g.X);g.k=g.oV.prototype;g.k.Lr=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){VPa(a,f)})}catch(f){f instanceof Error&&VPa(this,f)}else this.j.fm(),aT(this.B,this.element,!1);
this.api.ub(this.element)};
g.k.Sa=function(){var a=this.api.W(),b=g.US(this.api);g.Wq(this.element,"ytp-show-share-title",g.xM(a)&&!g.FM(a)&&!b);this.j.Mg()&&b?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Un(this.element,"right",a+"px")):b&&g.Un(this.element,"right","0px");this.updateValue("icon",{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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=UPa(this);g.Wq(this.element,"ytp-share-button-visible",this.visible);g.$Q(this,this.visible);lT(this.tooltip);this.api.Za(this.element,UPa(this)&&this.ea)};
g.k.lc=function(a){g.X.prototype.lc.call(this,a);this.api.Za(this.element,this.visible&&a)};
g.k.xa=function(){g.X.prototype.xa.call(this);g.Uq(this.element,"ytp-share-button-visible")};g.x(g.pV,g.$S);g.k=g.pV.prototype;g.k.h2=function(a){a=hB(a);g.rf(this.D,a)||g.rf(this.closeButton,a)||aT(this)};
g.k.Mb=function(){g.$S.prototype.Mb.call(this);this.tooltip.Pk(this.element);this.api.Za(this.j,!1);for(var a=g.u(this.B),b=a.next();!b.done;b=a.next())b=b.value,this.api.rj(b.element)&&this.api.Za(b.element,!1)};
g.k.show=function(){var a=this.Gb;g.$S.prototype.show.call(this);this.Sa();a||this.api.Qa("onSharePanelOpened")};
g.k.c6=function(){this.Gb&&this.Sa()};
g.k.Sa=function(){var a=this;g.Sq(this.element,"ytp-share-panel-loading");g.Uq(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&UR(this.api.dn(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.Uq(a.element,"ytp-share-panel-loading"),YPa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.FM(this.api.W())&&(b=g.Yj(b,g.xS({},"emb_share")));this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.MP("Partilhar link $URL",{URL:b}));WLa(this.j);this.api.Za(this.j,!0)};
g.k.onFullscreenToggled=function(a){!a&&this.vj()&&aT(this)};
g.k.focus=function(){this.j.focus()};
g.k.xa=function(){g.$S.prototype.xa.call(this);XPa(this)};g.x(aQa,bV);g.k=aQa.prototype;g.k.xa=function(){fQa(this);bV.prototype.xa.call(this)};
g.k.gI=function(a){a.target!==this.dismissButton.element&&(cV(this,!1),this.I.Qa("innertubeCommand",this.onClickCommand))};
g.k.JD=function(){this.Fa=!0;cV(this,!0);this.Cm()};
g.k.c8=function(a){this.Va=a;this.Cm()};
g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Fa=!1,this.V=!0,this.J=this.oa=!1,fQa(this),eQa(this,!1),this.D=this.C=!1,rV(this),bQa(this);if(a||!b.videoId)this.u=this.j=!1;var c,d;if(null==b?0:null==(c=b.getPlayerResponse())?0:null==(d=c.videoDetails)?0:d.isLiveContent)this.Qg(!1);else{var e,f,h;c=b.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")?g.Q(null==(e=b.Ad)?void 0:null==(f=e.playerOverlays)?void 0:null==(h=
f.playerOverlayRenderer)?void 0:h.productsInVideoOverlayRenderer,hza):b.shoppingOverlayRenderer;this.Va=this.enabled=!1;if(c){this.enabled=!0;if(!this.j){var l;b=null==(l=c.badgeInteractionLogging)?void 0:l.trackingParams;(this.j=!!b)&&this.I.gg(this.badge.element,b||null)}if(!this.u){var m;if(this.u=!(null==(m=c.dismissButton)||!m.trackingParams)){var n;this.I.gg(this.dismissButton.element,(null==(n=c.dismissButton)?void 0:n.trackingParams)||null)}}c.isContentForward&&(l=c.productsData,eQa(this,
!0),bQa(this),l=dQa(this,l),m=[],0<l.length&&m.push(l[0]),1<l.length&&(n=new g.X({G:"div",S:"ytp-suggested-action-more-products-icon"}),g.H(this,n),m.push(n),m.push.apply(m,g.qa(l.slice(1)))),this.qa=new g.X({G:"div",X:m,S:"ytp-suggested-action-content-forward-container"}),g.H(this,this.qa),this.Ba.element.append(this.qa.element));this.text=g.VG(c.text);var p;if(l=null==(p=c.dismissButton)?void 0:p.a11yLabel)this.ob=g.VG(l);this.onClickCommand=c.onClickCommand;this.timing=c.timing;this.hf()}nPa(this);
aV(this);this.Cm()}};
g.k.GA=function(){return!this.Va&&this.enabled&&!this.Fa&&!this.wb.kh()&&!this.kb&&(this.J||this.V)};
g.k.jI=function(a){bV.prototype.jI.call(this,a);if(this.C||this.D)this.timing&&qV(this.timing.preview)&&(this.C=!1,rV(this),this.D=!1,rV(this),this.I.Te("shopping_overlay_preview_collapsed"),this.I.Te("shopping_overlay_preview_expanded"),a=sV(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),qV(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.I.Te("shopping_overlay_expanded"),a.end=1E3*this.timing.expanded.endSec),this.I.hf([a])),
this.oa=!0,aV(this);rV(this)};
g.k.Qg=function(a){(this.J=a)?($U(this),aV(this,!1)):(fQa(this),this.Ga.start());this.Cm()};
g.k.hf=function(a){var b=this.timing;a=(void 0===a?0:a)+this.I.getCurrentTime();var c=[],d=b.visible,e=b.preview;b=b.expanded;qV(d)&&(ZPa(d,a),c.push(sV(d.startSec,d.endSec,"shopping_overlay_visible")));qV(e)&&(ZPa(e,a),d=e.startSec+1,c.push(sV(e.startSec,d,"shopping_overlay_preview_collapsed")),c.push(sV(d,e.endSec,"shopping_overlay_preview_expanded")));qV(b)&&(ZPa(b,a),c.push(sV(b.startSec,b.endSec,"shopping_overlay_expanded")));this.I.hf(c)};g.x(hQa,g.X);
hQa.prototype.Sa=function(){var a=this.api.W();g.$Q(this,g.xM(a)&&g.US(this.api));this.subscribeButton&&this.api.Za(this.subscribeButton.element,this.Gb);var b=this.api.getVideoData(),c=!1;2===this.api.getPresentingPlayerType()?c=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.xc&&!!b.profilePicture:g.xM(a)&&(c=!!b.videoId&&!!b.xc&&!!b.profilePicture&&!(b.Dd&&a.oa)&&!a.B&&!(a.V&&200>this.api.getPlayerSize().width));var d=b.profilePicture;a=g.xM(a)?b.expandedTitle:b.author;d=void 0===d?"":d;a=void 0===
a?"":a;c?(this.u!==d&&(this.j.style.backgroundImage="url("+d+")",this.u=d),this.api.N("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",tV(this)),this.updateValue("channelLogoLabel",g.MP("Foto ou imagem de $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Sq(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Uq(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Za(this.j,c&&this.ea);this.api.N("web_player_ve_conversion_fixes_for_channel_info")&&this.api.Za(this.channelName,
c&&this.ea);this.subscribeButton&&(this.subscribeButton.channelId=b.Fk);this.updateValue("expandedTitle",b.expandedTitle);this.api.N("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelTitleLink",tV(this))};g.x(uV,g.$S);uV.prototype.show=function(){g.$S.prototype.show.call(this);this.j.start()};
uV.prototype.hide=function(){g.$S.prototype.hide.call(this);this.j.stop()};
uV.prototype.vt=function(a,b){"dataloaded"===a&&((this.Gh=b.Gh,this.Je=b.Je,isNaN(this.Gh)||isNaN(this.Je))?this.B&&(this.I.Te("intro"),this.I.removeEventListener(g.PG("intro"),this.J),this.I.removeEventListener(g.QG("intro"),this.D),this.I.removeEventListener("onShowControls",this.C),this.hide(),this.B=!1):(this.I.addEventListener(g.PG("intro"),this.J),this.I.addEventListener(g.QG("intro"),this.D),this.I.addEventListener("onShowControls",this.C),a=new g.NG(this.Gh,this.Je,{priority:9,namespace:"intro"}),
this.I.hf([a]),this.B=!0))};g.x(vV,g.X);vV.prototype.onClick=function(){this.I.nu()};
vV.prototype.Sa=function(){var a=!0;g.xM(this.I.W())&&(a=a&&480<=this.I.qb().getPlayerSize().width);g.$Q(this,a);this.updateValue("icon",this.I.Mh()?{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!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"}}]}:
{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!0,S:"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.x(g.xV,g.X);g.xV.prototype.xa=function(){this.j=null;g.X.prototype.xa.call(this)};g.x(yV,g.X);yV.prototype.onClick=function(){this.I.Qa("innertubeCommand",this.j)};
yV.prototype.K=function(a){a!==this.D&&(this.update({title:a,ariaLabel:a}),this.D=a);a?this.show():this.hide()};
yV.prototype.J=function(){this.B.disabled=null==this.j;g.Wq(this.B,"ytp-chapter-container-disabled",this.B.disabled);this.Bc()};g.x(zV,yV);zV.prototype.onClickCommand=function(a){g.Q(a,tO)&&this.Bc()};
zV.prototype.updateVideoData=function(a,b){var c;if(b.N("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")){var d,e;a=g.Q(null==(c=b.Ad)?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.decoratedPlayerBarRenderer,PN);c=g.Q(null==a?void 0:a.playerBarActionButton,g.pO)}else c=b.B3;var f;this.j=null==(f=c)?void 0:f.command;yV.prototype.J.call(this)};
zV.prototype.Bc=function(){var a="",b=this.C.j,c,d="clips"===(null==(c=this.I.getLoopRange())?void 0:c.type);if(1<b.length&&!d){a=1E3*this.I.getProgressState().current;c=fV(b,a);a=b[c].title||"Cap\u00edtulos";if(c!==this.currentIndex||this.u)this.I.Qa("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.u=!1}else this.u=!0;yV.prototype.K.call(this,a)};g.x(g.BV,g.X);g.BV.prototype.Md=function(a){g.yP(a.state,32)?jQa(this,this.api.ek()):this.Gb&&(g.yP(a.state,16)||g.yP(a.state,1))||this.j.hide()};
g.BV.prototype.cf=function(){var a=this.api.Nb();(g.yP(a,32)||g.yP(a,16))&&kQa(this)};
g.BV.prototype.D=function(){this.B=NaN;kQa(this)};
g.BV.prototype.hide=function(){this.u&&jQa(this,null);g.X.prototype.hide.call(this)};g.x(g.CV,g.X);g.k=g.CV.prototype;g.k.onClick=function(){var a=this;if(this.I.W().xc||this.I.W().V){this.I.ub(this.element);try{this.I.toggleFullscreen().catch(function(b){a.WC(b)})}catch(b){this.WC(b)}}else aT(this.message,this.element,!0)};
g.k.WC=function(a){String(a).includes("fullscreen error")?g.tG(a):g.sG(a);this.WO()};
g.k.WO=function(){this.disable();this.message.yd(this.element,!0)};
g.k.wr=function(){aB()===this.I.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.K3=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.WO()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=YA(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Modo de ecr\u00e3 inteiro n\u00e3o dispon\u00edvel. $BEGIN_LINKSaiba mais$END_LINK":"O seu navegador n\u00e3o suporta o modo de ecr\u00e3 inteiro. $BEGIN_LINKSaiba mais$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.$S(this.I,{G:"div",Na:["ytp-popup","ytp-generic-popup"],Y:{role:"alert",tabindex:"0"},X:[b[0],{G:"a",
Y:{href:"https://support.google.com/youtube/answer/6276924",target:this.I.W().ea},Aa:b[2]},b[4]]},100,!0);this.message.hide();g.H(this,this.message);this.message.subscribe("show",function(c){a.u.Wy(a.message,c)});
g.XS(this.I,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=SLa(this.I),b=this.I.W().V&&250>this.I.getPlayerSize().width;g.$Q(this,a&&!b);this.I.Za(this.element,this.Gb)};
g.k.Am=function(a){if(a){var b={G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"g",S:"ytp-fullscreen-button-corner-2",X:[{G:"path",wc:!0,S:"ytp-svg-fill",Y:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",S:"ytp-fullscreen-button-corner-3",X:[{G:"path",wc:!0,S:"ytp-svg-fill",Y:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",S:"ytp-fullscreen-button-corner-0",X:[{G:"path",wc:!0,S:"ytp-svg-fill",Y:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g",
S:"ytp-fullscreen-button-corner-1",X:[{G:"path",wc:!0,S:"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.qT(this.I,"Sair do ecr\u00e3 inteiro","f");this.update({"data-title-no-tooltip":"Sair do ecr\u00e3 inteiro"});document.activeElement===this.element&&this.I.getRootNode().focus();document.u&&document.j().catch(function(c){g.tG(c)})}else b={G:"svg",
Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"g",S:"ytp-fullscreen-button-corner-0",X:[{G:"path",wc:!0,S:"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"}}]},{G:"g",S:"ytp-fullscreen-button-corner-1",X:[{G:"path",wc:!0,S:"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"}}]},{G:"g",S:"ytp-fullscreen-button-corner-2",X:[{G:"path",wc:!0,S:"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"}}]},{G:"g",S:"ytp-fullscreen-button-corner-3",
X:[{G:"path",wc:!0,S:"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.qT(this.I,"Ecr\u00e3 inteiro","f"),this.update({"data-title-no-tooltip":"Ecr\u00e3 inteiro"});a=this.message?null:a;this.update({title:a,icon:b});lT(this.u.Hc())};
g.k.xa=function(){this.message||((0,this.j)(),this.j=null);g.X.prototype.xa.call(this)};g.x(DV,g.X);DV.prototype.onClick=function(){this.I.ub(this.element);this.I.seekBy(this.j,!0);null!=this.C.Bv&&ZU(this.C.Bv,0<this.j?1:-1,Math.abs(this.j));if(this.u.isActive())this.B=!0;else{var a=["ytp-jump-spin"];0>this.j&&a.push("backwards");this.element.classList.add.apply(this.element.classList,g.qa(a));g.Lq(this.u)}};g.x(EV,yV);EV.prototype.onClickCommand=function(a){g.Q(a,pdb)&&this.Bc()};
EV.prototype.updateVideoData=function(){var a,b;this.j=null==(a=mQa(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;yV.prototype.J.call(this)};
EV.prototype.Bc=function(){var a="",b=this.C.J,c,d=null==(c=mQa(this))?void 0:c.headerTitle;c=d?g.VG(d):"";var e;d="clips"===(null==(e=this.I.getLoopRange())?void 0:e.type);1<b.length&&!d&&(a=1E3*this.I.getProgressState().current,e=EPa(b,a),a=null!=e?b[e].title:c,null!=e&&e!==this.currentIndex&&(this.I.Qa("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));yV.prototype.K.call(this,a)};g.x(FV,g.X);FV.prototype.onClick=function(){this.I.Qa("onCollapseMiniplayer");this.I.ub(this.element)};
FV.prototype.Sa=function(){this.visible=!this.I.isFullscreen();g.$Q(this,this.visible);this.I.Za(this.element,this.visible&&this.ea)};
FV.prototype.lc=function(a){g.X.prototype.lc.call(this,a);this.I.Za(this.element,this.visible&&a)};g.x(GV,g.X);GV.prototype.onVideoDataChange=function(a){this.Sa("newdata"===a)};
GV.prototype.Sa=function(a){var b=this.I.getVideoData(),c=b.pg,d=this.I.Nb();d=(g.dQ(d)||g.cQ(d))&&0<c.length;g.$Q(this,d);a&&(this.j=!0);if(d){this.j&&g.Lq(this.u);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.MP("Visualiza\u00e7\u00e3o $CAMERA_INDEX de $CAMERA_COUNT",{CAMERA_INDEX:String(e+1),CAMERA_COUNT:String(c.length)})+"\n";break}this.update({text:d+a,preview:b.Kg("default.jpg")});lT(this.tooltip)}else this.u.stop()};
GV.prototype.B=function(){XU(this.tooltip,this.element,"Est\u00e3o dispon\u00edveis mais c\u00e2maras");this.j=!1};g.x(nQa,g.$S);g.k=nQa.prototype;g.k.show=function(){var a=this.Gb;g.$S.prototype.show.call(this);a||(this.B.T(this.api,"presentingplayerstatechange",this.Sa),this.B.T(this.api,"videodatachange",this.Sa),this.Sa())};
g.k.hide=function(){this.B&&(g.nB(this.B),g.$S.prototype.hide.call(this))};
g.k.Sa=function(){var a=this,b=this.api.getVideoData(),c=b.pg,d,e={};for(d=0;d<c.length;e={PJ:e.PJ},d++){var f=this.j[d];f||(f=new g.X({G:"button",Na:["ytp-multicam-menu-item","ytp-button"],Y:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},X:[{G:"div",S:"ytp-multicam-menu-item-title",Aa:"{{cameraName}}"}]}),e.PJ=d,f.Ta("click",function(n){return function(){var p=n.PJ,q=a.api.getVideoData(),t=a.api,v=q.pg[p];p=g.FS(t.app,1).getVideoData();q=t.getCurrentTime();v.id===p.videoId?(v=g.FS(t.app,
1),g.FS(t.app)!==v&&(t.app.au(),p.isLivePlayback||t.seekTo(q))):t.app.loadVideoByPlayerVars({videoId:v.id,title:p.title,start:p.isLivePlayback?null:q,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.EY}}}},4)}}(e)),f.Ja(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=NM(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.Nb();b=c.length||!b.isLoaded();g.dQ(d)||g.cQ(d)||b||!this.vj()||aT(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.pg,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.j[c].focus();break}};
g.k.xa=function(){g.sb(this.j);g.$S.prototype.xa.call(this)};g.x(g.HV,g.X);g.k=g.HV.prototype;g.k.RS=function(a){this.visible=300<=a.width||this.Fa;g.$Q(this,this.visible);this.I.Za(this.element,this.visible&&this.ea)};
g.k.O7=function(){this.I.W().eb?this.I.isMuted()?this.I.unMute():this.I.mute():aT(this.message,this.element,!0);this.I.ub(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.I.W();a=0===d?1:50<a?1:0;if(this.D!==a){var f=this.qa;isNaN(f)?qQa(this,a):IMa(this.Ga,function(l){qQa(c,f+(c.D-f)*l)},250);
this.D=a}d=0===d?1:0;if(this.C!==d){var h=this.V;isNaN(h)?rQa(this,d):IMa(this.oa,function(l){rQa(c,h+(c.C-h)*l)},250);
this.C=d}e.eb&&(e=g.qT(this.I,"Desativar som","m"),d=g.qT(this.I,"Reativar som","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Reativar som":"Desativar som"}),lT(this.tooltip))};
g.k.lc=function(a){g.X.prototype.lc.call(this,a);this.I.Za(this.element,this.visible&&a)};
var oQa=["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"],pQa=["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.x(sQa,g.X);sQa.prototype.onClick=function(){this.I.togglePictureInPicture()};g.x(g.IV,g.X);g.IV.prototype.onStateChange=function(a){this.Ac(a.state)};
g.IV.prototype.Ac=function(a){var b=g.DO(this.I.getVideoData()),c=!1;g.dQ(a)?a=b?4:2:g.yP(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.qT(this.I,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:b="Reproduzir";this.update({"data-title-no-tooltip":"Reproduzir"});break;case 1:b=g.qT(this.I,"Reproduzir","k");this.update({"data-title-no-tooltip":"Reproduzir"});break;case 4:b="Parar reprodu\u00e7\u00e3o em direto",this.update({"data-title-no-tooltip":"Parar reprodu\u00e7\u00e3o em direto"})}3===
a?this.update({title:b,icon:tQa(a)}):(this.update({title:b}),(b=tQa(a))&&this.j&&3!==this.j?KMa(this.transition,this.element,b):this.updateValue("icon",b));lT(this.tooltip);this.j=a}};
g.IV.prototype.onVideoDataChange=function(){g.Wq(this.element,"ytp-play-button-playlist",g.TS(this.I))};
g.IV.prototype.Wr=function(a){this.I.ub(this.element);if(g.dQ(this.I.Nb()))this.I.pauseVideo();else{if(this.I.Ag()&&this.I.Nb().isCued()){var b={},c;if(null==(c=this.I.getVideoData())?0:c.J)b.cttAuthInfo={token:this.I.getVideoData().J,videoId:this.I.getVideoData().videoId};PH("direct_playback",b);this.I.di().timerName="direct_playback"}else 3===this.j&&ST(this.I.di());this.I.playVideo()}this.I.Ag()&&"click"===(null==a?void 0:a.type)&&this.element.blur()};g.x(g.JV,g.X);g.k=g.JV.prototype;g.k.onVideoDataChange=function(){vQa(this);this.C&&(this.Mc(this.C),this.C=null);this.videoData=this.I.getVideoData(1);if(this.playlist=this.I.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.C=this.T(this.I,"progresssync",this.j2);this.B=wQa(this);uQa(this);this.IK(this.I.qb().getPlayerSize())};
g.k.IK=function(a){a=void 0===a?this.I.qb().getPlayerSize():a;var b,c="clips"===(null==(b=this.I.getLoopRange())?void 0:b.type);a=(g.TS(this.I)||this.j&&g.YS(this.I)&&!this.I.N("web_hide_next_button")||xQa(this))&&!c&&(this.j||400<=a.width);g.$Q(this,a);this.I.Za(this.element,a)};
g.k.onClick=function(a){this.I.ub(this.element);var b=!0;this.J?b=g.oT(a,this.I):g.VP(a);b&&(this.j&&5===this.I.getPresentingPlayerType()?this.I.ra("ytoprerollinternstitialnext"):this.j?(ST(this.I.di()),this.I.ra("playlistnextbuttonclicked",this.element),this.I.nextVideo(!0)):this.B?this.I.seekTo(0):(ST(this.I.di()),this.I.ra("playlistprevbuttonclicked",this.element),this.I.previousVideo(!0)))};
g.k.j2=function(){var a=wQa(this);a!==this.B&&(this.B=a,uQa(this))};
g.k.xa=function(){this.u&&(this.u(),this.u=null);vQa(this);g.X.prototype.xa.call(this)};g.x(zQa,g.X);g.k=zQa.prototype;g.k.m2=function(a){this.KK(a.pageX);this.JK(a.pageX+a.deltaX);AQa(this)};
g.k.KK=function(a){this.qa=a-this.Ma};
g.k.JK=function(a){a-=this.Ma;!isNaN(this.qa)&&0<this.thumbnails.length&&(this.V=a-this.qa,0<this.thumbnails.length&&0!==this.V&&(this.u=this.D+this.V,a=FQa(this,this.u),this.u<=this.j/2&&this.u>=EQa(this)?(this.api.seekTo(a,!1),this.api.N("web_fix_fine_scrubbing_drag")?g.Un(this.Ba,"transform","translateX("+(this.u-this.j/2)+"px)"):g.Un(this.B,"transform","translateX("+this.u+"px)"),yQa(this,a)):this.u=this.D))};
g.k.l2=function(){var a=300>(0,g.mC)()-this.Va;if(5>Math.abs(this.V)&&!a){this.Va=(0,g.mC)();a=this.qa+this.V;var b=this.j/2-a;this.KK(a);this.JK(a+b);AQa(this);this.api.ub(this.B)}AQa(this)};
g.k.dA=function(){KV(this,this.api.getCurrentTime())};
g.k.play=function(a){this.api.seekTo(FQa(this,this.u));this.api.playVideo();a&&this.api.ub(this.playButton)};
g.k.onExit=function(a){this.api.seekTo(this.Oa);this.api.playVideo();a&&this.api.ub(this.dismissButton)};
g.k.Kb=function(a,b){this.Ma=a;this.j=b;KV(this,this.api.getCurrentTime())};
g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Oa=this.api.getCurrentTime(),yQa(this,this.Oa),g.Wq(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Fa=this.T(this.element,"wheel",this.m2),this.Za(this.isEnabled))};
g.k.disable=function(){this.isEnabled=!1;this.hide();g.Wq(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Fa&&this.Mc(this.Fa);this.Za(this.isEnabled)};
g.k.reset=function(){this.disable();this.J=[];this.Ga=!1};
g.k.Za=function(a){this.api.Za(this.element,a);this.api.Za(this.B,a);this.api.Za(this.dismissButton,a);this.api.Za(this.playButton,a)};
g.k.xa=function(){for(;this.C.length;){var a=void 0;null==(a=this.C.pop())||a.dispose()}g.X.prototype.xa.call(this)};
g.x(BQa,g.X);g.x(CQa,g.X);g.x(JQa,g.X);g.x(LV,g.X);LV.prototype.Bb=function(a){return"PLAY_PROGRESS"===a?this.J:"LOAD_PROGRESS"===a?this.D:"LIVE_BUFFER"===a?this.C:this.u};MQa.prototype.update=function(a,b,c,d){c=void 0===c?0:c;this.width=b;this.B=c;this.j=b-c-(void 0===d?0:d);this.position=g.pe(a,c,c+this.j);this.u=this.position-c;this.fraction=this.u/this.j};g.x(NQa,g.X);g.x(g.OV,g.aR);g.k=g.OV.prototype;
g.k.g_=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.Te("timedMarkerCueRange");RQa(this);for(var c=g.u(b.Qd),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Oa[d])?void 0:e.markerType;e=void 0;var h=null==(e=this.Oa[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 NQa;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;WQa(this,f)}XQa(this,this.J);a=this.J;f=this.Wd;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=HPa(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.hf(e);this.If=this.Oa[d];a=!0}else if("MARKER_TYPE_HEATMAP"===f){d=this.Oa[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.D.length&&QQa(this);n=[];l&&n.push(l);for(var t=g.u(d.markers),v=t.next();!v.done;v=t.next()){v=v.value;var y=Number(v.startMillis);y>=p&&y<=q&&n.push(v)}0<e&&(this.qa.style.height=
e+"px");p=this.D[m];q=n;v=f;var A=e,E=0===m;E=void 0===E?!1:E;KQa(p,A);t=q;y=p.j;E=void 0===E?!1:E;var K=1E3/t.length,I=[];I.push({x:0,y:100});for(var F=0;F<t.length;F++){var S=(F+.5)*K,Y=100-g.pe(100*(t[F].intensityScoreNormalized||0),v/y*100,A/y*100);0!==F||E||I.push({x:0,y:Y});I.push({x:S,y:Y});F===t.length-1&&I.push({x:1E3,y:Y})}I.push({x:1E3,y:100});t=I;q=0===q.length?"":HQa(t);p.B.setAttribute("d",q);p.Fe=""!==q;g.Wq(p.api.getRootNode(),"ytp-heat-map",p.Fe);0<n.length&&(l=n[n.length-1])}g.PV(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.VG(e.label):""});d=f;this.heatMarkersDecorations=d}}b.WS=this.J;g.Wq(this.element,"ytp-timed-markers-enabled",a);return a};
g.k.Kb=function(){g.PV(this);RV(this);XQa(this,this.J);if(this.u){var a=g.qo(this.element).x||0;this.u.Kb(a,this.K)}};
g.k.onClickCommand=function(a){if(a=g.Q(a,tO)){var b=a.key;a.isVisible&&b&&aRa(this,b)}};
g.k.c9=function(a){this.api.Qa("innertubeCommand",this.Wd[a.id])};
g.k.Bc=function(){RV(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.ZI()};
g.k.o2=function(a){if(!g.UP(a)){var b=!1;switch(g.RP(a)){case 36:this.api.seekTo(0);b=!0;break;case 35:this.api.seekTo(Infinity);b=!0;break;case 34:this.api.seekBy(-60);b=!0;break;case 33:this.api.seekBy(60);b=!0;break;case 38:this.api.seekBy(5);b=!0;break;case 40:this.api.seekBy(-5),b=!0}b&&g.VP(a)}};
g.k.vt=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.i5=function(){this.vt("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.Fe();c&&(UO(a)||hRa(this)?this.Je=!1:this.Je=a.allowLiveDvr,g.Wq(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!UO(a))));qRa(this,this.api.Nh());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;VV(this);for(SV(this,this.oa,this.rb);0<this.D.length;)this.D.pop().dispose();this.heatMarkersDecorations=[];this.Eb={};var d;null==(d=this.u)||d.reset();aW(this);g.Wq(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
NV(this))}else this.ZI();g.xW(this.tooltip)}if(a){b=a.Ad;var e;d="clips"===(null==(e=this.Hb)?void 0:e.type);if(e=!a.isLivePlayback&&b)e=this.api.getVideoData(),b=OQa(e)?g.iya(e):e.multiMarkersPlayerBarRenderer,c=SQa(e),e=null!=b||null!=c&&0<c.length||0<e.Sx.length;if(e&&!d){e=this.api.getVideoData();b=OQa(e)?g.iya(e):e.multiMarkersPlayerBarRenderer;d=!1;if(null==b?0:b.markersMap){d=this.api.getVideoData();var f;d.tx=(null==(f=b.visibleOnLoad)?void 0:f.key)||d.tx;f=g.u(b.markersMap);for(b=f.next();!b.done;b=
f.next())b=b.value,b.key&&b.value&&(this.Eb[b.key]=b.value,b.value.onChapterRepeat&&(d.i4=b.value.onChapterRepeat));null!=d.tx&&aRa(this,d.tx);d=!0}if((this.api.W().N("web_key_moments_markers")||this.api.W().N("web_heat_map_v2"))&&0<e.Sx.length){f=g.uO.getState().entities;b=g.u(e.Sx);for(c=b.next();!c.done;c=b.next()){c=c.value;var h=void 0,l=null==(h=eya(f,"macroMarkersListEntity",c))?void 0:h.markersList,m=h=void 0;if("MARKER_TYPE_TIMESTAMPS"===(null==(h=l)?void 0:h.markerType)||"MARKER_TYPE_HEATMAP"===
(null==(m=l)?void 0:m.markerType))this.Oa[c]=l}d=this.g_()||d}!d&&(f=SQa(e))&&(UQa(this,f),e.jk=this.j,TQa(this));iRa(this,null);a.nX&&0===this.D.length&&(a=a.nX,e=a.key,a.isVisible&&e&&aRa(this,e))}else PQa(this),RQa(this)}RV(this)};
g.k.n2=function(a){this.V&&!g.yP(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.V.cancel();var b;(null==(b=this.u)?0:b.isEnabled)&&g.yP(a.state,8)&&this.api.pauseVideo()};
g.k.SS=function(a){var b=!!this.Hb!==!!a,c=this.Hb;this.Hb=a;iRa(this,c);"clips"!==(null==a?void 0:a.type)&&a||(a?(this.updateValue("clipstarticon",OEa()),this.updateValue("clipendicon",OEa()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",IEa()),this.updateValue("clipendicon",HEa()),this.updateValue("clipstarttitle","Veja o v\u00eddeo completo"),this.updateValue("clipendtitle","Veja o v\u00eddeo completo")),b&&(this.updateVideoData(this.api.getVideoData(),
!0),g.PV(this)),VV(this));SV(this,this.oa,this.rb)};
g.k.f8=function(a,b,c){var d=g.qo(this.element),e=QV(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=LR(this.B,Number(c.getAttribute("data-position")),0)*e+g.qo(this.Pc).x);this.ob.x=a-d.x;this.ob.y=b-d.y;a=QV(this);c=UV(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:UO(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=LR(this.B,m)*QV(this).j),b=this.B.u;hRa(this)&&
(b=this.B.u);m=f||g.HR(this.Je?c-this.B.j:c-b);b=a.position+this.jg;c-=this.api.Hd();var n;if(null==(n=this.u)||!n.isEnabled)if(this.api.ek()){if(1<this.j.length){n=TV(this,this.ob.x,!0);if(!this.Hb)for(d=0;d<this.j.length;)g.Wq(this.j[d].j,"ytp-exp-chapter-hover-effect",d===n),d++;if(1<this.D.length)for(d=0;d<this.j.length;d++)g.Wq(this.D[d].element,"ytp-heatmap-hover",d===n)}if(0<this.J.length)for(n=this.ob.x,d=g.u(this.J),e=d.next();!e.done;e=d.next())e=e.value,h=bRa(this,e.timeRangeStartMillis/
(1E3*this.B.j),QV(this)),g.Wq(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.If?(n=EPa(this.J,1E3*c),n=null!=n?this.J[n].title:""):(n=fV(this.j,1E3*c),n=this.j[n].title):(n=fV(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=fV(this.j,1E3*c);this.eb=jRa(this,c,d)?d:jRa(this,c,d+1)?d+1:-1;g.Wq(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.HR(h.decorationTimeMillis/1E3),d=!0)}this.pd!==d&&(this.pd=d,this.api.Za(this.od,this.pd));g.Wq(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.C?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.K-a.position&&(d=2);this.api.W().V&&(l-=10);
this.D.length&&this.D[0].Fe&&(l-=14*(this.C?2:1),this.Fa||(this.Fa=!0,this.api.Za(this.qa,this.Fa)));var q;if(NV(this)&&((null==(q=this.u)?0:q.isEnabled)||0<this.Ya)){var t;l-=(null==(t=this.u)?0:t.isEnabled)?XV(this):this.Ya}q=void 0;NV(this)&&(q="Deslize para cima para uma procura mais detalhada",this.Ga||(this.Ga=!0,this.api.Za(this.md,this.Ga)));eSa(this.tooltip,b,c,m,!!f,l,n,d,q)}else eSa(this.tooltip,b,c,m,!!f,l);g.Sq(this.api.getRootNode(),"ytp-progress-bar-hover");gRa(this)};
g.k.e8=function(){g.xW(this.tooltip);g.Uq(this.api.getRootNode(),"ytp-progress-bar-hover");this.Fa&&(this.Fa=!1,this.api.Za(this.qa,this.Fa));this.Ga&&(this.Ga=!1,this.api.Za(this.md,this.Ga))};
g.k.d8=function(a,b){AV(this.api)&&g.xW(this.tooltip);NV(this)&&this.u&&(this.u.Ga?KV(this.u,this.api.getCurrentTime()):DQa(this.u),this.u.show(),g.Wq(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.u.isEnabled));this.Fd&&(this.Fd.dispose(),this.Fd=null);this.og=b;1<this.j.length&&-1!==this.eb?this.api.seekTo(this.j[this.eb].startTime/1E3,!1):this.api.seekTo(UV(this,QV(this)),!1);g.Sq(this.element,"ytp-drag");(this.Ke=g.dQ(this.api.Nb()))&&this.api.pauseVideo()};
g.k.g8=function(){if(NV(this)&&this.u){var a=XV(this);this.Ya>=.5*a?(this.u.enable(),KV(this.u,this.api.getCurrentTime()),pRa(this,a)):aW(this)}if(g.yP(this.api.Nb(),32)||3===this.api.getPresentingPlayerType()){var b;if(null==(b=this.u)?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=UV(this,QV(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.ub(this.od)}g.Uq(this.element,"ytp-drag");this.Ke&&!g.yP(this.api.Nb(),2)&&this.api.playVideo()}}};
g.k.h8=function(a,b){a=QV(this);a=UV(this,a);AV(this.api)&&g.xW(this.tooltip);this.api.seekTo(a,!1);var c;NV(this)&&(null==(c=this.u)?0:c.Ga)&&(KV(this.u,a),this.u.isEnabled||(this.Ya=g.pe(this.og-b-10,0,XV(this)),pRa(this,this.Ya)))};
g.k.xX=function(){this.Hb||(this.updateValue("clipstarticon",GEa()),this.updateValue("clipendicon",GEa()),g.Sq(this.element,"ytp-clip-hover"))};
g.k.wX=function(){this.Hb||(this.updateValue("clipstarticon",IEa()),this.updateValue("clipendicon",HEa()),g.Uq(this.element,"ytp-clip-hover"))};
g.k.ZI=function(){this.clipStart=0;this.clipEnd=Infinity;VV(this);SV(this,this.oa,this.rb)};
g.k.haa=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.Ma[c]){var d=g.bf("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Ma[c]=b;this.xc[c]=d;g.Qq(d,b.style);kRa(this,c);this.api.W().N("disable_ad_markers_on_content_progress_bar")||this.j[0].B.appendChild(d)}}else oRa(this,b)};
g.k.T9=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())oRa(this,b.value)};
g.k.Qs=function(a){this.u&&(this.u.onExit(null!=a),aW(this))};
g.k.AM=function(a){this.u&&(this.u.play(null!=a),aW(this))};
g.k.xa=function(){qRa(this,!1);g.aR.prototype.xa.call(this)};g.x(bW,g.X);bW.prototype.isActive=function(){return!!this.I.getOption("remote","casting")};
bW.prototype.Sa=function(){var a=!1;this.I.getOptions().includes("remote")&&(a=1<this.I.getOption("remote","receivers").length);g.$Q(this,a&&400<=this.I.qb().getPlayerSize().width);this.I.Za(this.element,this.Gb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{G:"path",wc:!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.EEa())}g.Wq(this.element,"ytp-remote-button-active",this.isActive())}};
bW.prototype.u=function(){if(this.I.getOption("remote","quickCast"))this.I.setOption("remote","quickCast",!0);else{var a=this.Lb,b=this.element;if(a.vj())a.Mb();else{a.initialize();a:{var c=g.u(a.cg.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.yd(b));a.yd(b)}}this.I.ub(this.element)};g.x(cW,g.X);cW.prototype.j=function(a){var b=this.I.W(),c=400;this.I.N("web_player_small_hbp_settings_menu")&&b.K?c=300:b.V&&(c=200);a=this.u&&a.width>=c;g.$Q(this,a);this.I.Za(this.element,a)};
cW.prototype.B=function(){if(this.Lb.Gb)this.Lb.Mb();else{var a=g.fU(this.I.Fb());a&&!a.loaded&&(a.Ih("tracklist",{includeAsr:!0}).length||a.load());this.I.ub(this.element);this.Lb.yd(this.element)}};
cW.prototype.updateBadge=function(){var a=this.I.isHdr(),b=this.I.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.WS(this.I),e=c&&!!g.VS(this.I.Fb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.I.getPlaybackQuality();g.Wq(this.element,"ytp-hdr-quality-badge",a);g.Wq(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.Wq(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.Wq(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.Wq(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.Wq(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.Wq(this.element,"ytp-3d-badge",!a&&e&&d)};g.x(dW,mT);dW.prototype.isLoaded=function(){var a=g.lU(this.I.Fb());return void 0!==a&&a.loaded};
dW.prototype.Sa=function(){void 0!==g.lU(this.I.Fb())&&3!==this.I.getPresentingPlayerType()?this.j||(this.Lb.rd(this),this.j=!0):this.j&&(this.Lb.Ch(this),this.j=!1);nT(this,this.isLoaded())};
dW.prototype.onSelect=function(a){this.isLoaded();a?this.I.loadModule("annotations_module"):this.I.unloadModule("annotations_module");this.I.ra("annotationvisibility",a)};
dW.prototype.xa=function(){this.j&&this.Lb.Ch(this);mT.prototype.xa.call(this)};g.x(g.eW,g.cT);g.k=g.eW.prototype;g.k.open=function(){g.RU(this.Lb,this.u)};
g.k.Rj=function(a){tRa(this);this.options[a].element.setAttribute("aria-checked","true");this.qe(this.Jk(a));this.B=a};
g.k.IL=function(a,b,c){var d=this;b=new g.cT({G:"div",Na:["ytp-menuitem"],Y:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},X:[{G:"div",Na:["ytp-menuitem-label"],Aa:"{{label}}"}]},b,this.Jk(a,!0));b.Ta("click",function(){d.uh(a)});
return b};
g.k.enable=function(a){this.J?a||(this.J=!1,this.Kx(!1)):a&&(this.J=!0,this.Kx(!0))};
g.k.Kx=function(a){a?this.Lb.rd(this):this.Lb.Ch(this)};
g.k.uh=function(a){this.ra("select",a)};
g.k.Jk=function(a){return a.toString()};
g.k.q2=function(a){g.UP(a)||39!==g.RP(a)||(this.open(),g.VP(a))};
g.k.xa=function(){this.J&&this.Lb.Ch(this);g.cT.prototype.xa.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.x(gW,g.eW);gW.prototype.Sa=function(){var a=this.I.getAvailableAudioTracks();1<a.length?(g.fW(this,g.kn(a,this.C)),this.tracks=g.ac(a,this.C,this),this.j.qe(a.length?" ("+a.length+")":""),this.ra("size-change"),this.Rj(this.C(this.I.getAudioTrack())),this.enable(!0)):this.enable(!1)};
gW.prototype.uh=function(a){g.eW.prototype.uh.call(this,a);this.I.setAudioTrack(this.tracks[a]);this.Lb.Fj()};
gW.prototype.C=function(a){return a.toString()};g.x(hW,mT);
hW.prototype.u=function(){var a=this.I.getPresentingPlayerType();if(2!==a&&3!==a&&g.YS(this.I))this.j||(this.Lb.rd(this),this.j=!0,this.B.push(this.T(this.I,"videodatachange",this.u)),this.B.push(this.T(this.I,"videoplayerreset",this.u)),this.B.push(this.T(this.I,"onPlaylistUpdate",this.u)),this.B.push(this.T(this.I,"autonavchange",this.C)),a=this.I.getVideoData(),this.C(a.autonavState),this.I.Za(this.element,this.j));else if(this.j){this.Lb.Ch(this);this.j=!1;a=g.u(this.B);for(var b=a.next();!b.done;b=a.next())this.Mc(b.value)}};
hW.prototype.C=function(a){nT(this,1!==a)};
hW.prototype.onSelect=function(a){this.I.eJ(a?2:1);this.j&&(this.I.Za(this.element,this.j),this.I.ub(this.element))};
hW.prototype.xa=function(){this.j&&this.Lb.Ch(this);mT.prototype.xa.call(this)};g.x(uRa,g.cT);uRa.prototype.onClick=function(a){a.preventDefault();var b,c;null==(b=g.GS(this.I))||null==(c=b.hn())||c.Mb();var d,e;null==(d=g.GS(this.I))||null==(e=d.PG())||e.yd(a.target)};g.x(vRa,g.eW);g.k=vRa.prototype;
g.k.JB=function(){var a=this.I.getPresentingPlayerType();if(2!==a&&3!==a){this.qa=this.I.Us();a=this.I.getAvailableQualityLevels();if(this.j){this.C={};var b=g.ES(this.I,"getAvailableQualityData",[]);b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.C[c.qualityLabel]=c;b=Object.keys(this.C);"auto"===a[a.length-1]&&b.push("auto");this.Ba=new Set(a)}else if(this.D){c=g.ES(this.I,"getAvailableQualityData",[]);b=[];c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.V[d.quality]=
d,d.quality&&b.push(d.quality);"auto"===a[a.length-1]&&b.push("auto")}else b=a;g.vLa(this.I)&&this.I.Ov()&&b.unshift("missing-qualities");wLa(this.I)&&b.unshift("inline-survey");g.fW(this,b);a=this.I.getVideoData().cotn?!0:!1;c=!g.QM(this.I.W())||!(void 0===a?0:a);a=this.u;c=void 0===c?!1:c;c=void 0===c?!1:c;a.VV&&(a=a.Ha("ytp-panel-footer"),g.Wq(a,"ytp-panel-hide-footer",c));if(b.length){this.US();this.enable(!0);return}}this.enable(!1)};
g.k.US=function(){if(this.j){var a=this.I.getPreferredQuality();this.Ba.has(a)&&(this.K=this.I.getPlaybackQuality(),this.oa=this.I.getPlaybackQualityLabel(),"auto"===a?(this.Rj(a),this.qe(this.Jk(a))):this.Rj(this.oa))}else a=this.I.getPreferredQuality(),this.options[a]&&(this.K=this.I.getPlaybackQuality(),this.Rj(a),"auto"===a&&this.qe(this.Jk(a)))};
g.k.uh=function(a){if("missing-qualities"!==a){g.eW.prototype.uh.call(this,a);var b=this.j?this.C[a]:this.V[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.I.ub(e)}if(this.j){var h,l;if(this.I.N("web_player_enable_early_warning_snackbar")&&(null==(h=g.Q(b,g.dcb))?0:null==(l=h.popup)?0:l.notificationActionRenderer))this.I.Qa("innertubeCommand",b);else if(b){this.I.Qa("innertubeCommand",
b);return}d?this.I.setPlaybackQuality(c,d):this.I.setPlaybackQuality(c)}else{if(this.D){var m,n;if(this.I.N("web_player_enable_early_warning_snackbar")&&(null==(m=g.Q(b,g.dcb))?0:null==(n=m.popup)?0:n.notificationActionRenderer))this.I.Qa("innertubeCommand",b);else if(b){this.I.Qa("innertubeCommand",b);return}}this.I.setPlaybackQuality(a)}this.Lb.Mb();this.JB()}};
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.I.rj(null==(c=b)?void 0:c.element)&&(c=void 0,this.I.Za(null==(c=b)?void 0:c.element,!0))}g.eW.prototype.open.call(this);this.I.ub(this.element)};
g.k.IL=function(a,b,c){var d=this;if("missing-qualities"===a)return new g.cT({G:"a",Na:["ytp-menuitem"],Y:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.I.W().ea,tabindex:"0",role:"menuitemradio"},X:[{G:"div",Na:["ytp-menuitem-label"],Aa:"{{label}}"}]},b,this.Jk(a));if("inline-survey"!==a){var e,f=null==(e=this.j?this.C[a]:this.V[a])?void 0:e.paygatedQualityDetails;e=null==f?void 0:f.veType;f=null==f?void 0:f.trackingParams;b=g.eW.prototype.IL.call(this,a,b,c);f?(this.I.ag(b.element,
this,!0),this.I.gg(b.element,f)):e&&this.I.xb(b.element,this,e,!0);return b}a=[{G:"span",Aa:"Parece bem?"}];c=g.u([!0,!1]);f=c.next();for(e={};!f.done;e={wF:e.wF},f=c.next())e.wF=f.value,f=new g.X({G:"span",S:"ytp-menuitem-inline-survey-response",X:[e.wF?g.NEa():KEa()],Y:{tabindex:"0",role:"button"}}),f.Ta("click",function(h){return function(){var l=h.wF,m=g.FS(d.I.app);m&&(m.ya("iqsr",{tu:l}),m.getVideoData().CV=!0);d.Lb.Mb();d.JB()}}(e)),a.push(f);
return new g.cT({G:"div",S:"ytp-menuitem",Y:{"aria-disabled":"true"},X:[{G:"div",Na:["ytp-menuitem-label"],X:a}]},b)};
g.k.Jk=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{G:"div",Aa:"Op\u00e7\u00f5es em falta?"};if("inline-survey"===a)return"";var c=this.D||this.j?[yRa(this,a,b,!1)]:[xRa(this,a)];var d=this.I.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),this.j?c.push(yRa(this,this.oa,b,!0,["ytp-menu-label-secondary"])):this.D?c.push(yRa(this,this.K,b,!0,["ytp-menu-label-secondary"])):c.push(xRa(this,this.K,["ytp-menu-label-secondary"])));return{G:"div",X:c}};g.x(iW,g.X);g.k=iW.prototype;g.k.init=function(){this.Lw(this.j);this.updateValue("minvalue",this.u);this.updateValue("maxvalue",this.C)};
g.k.u2=function(a){if(!g.UP(a)){switch(g.RP(a)){case 37:case 40:var b=-this.V;break;case 39:case 38:b=this.V;break;default:return}this.Lw(this.j+b);g.VP(a)}};
g.k.s2=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.K:this.K;this.Lw(b);g.VP(a)};
g.k.t2=function(a){a=(a-g.qo(this.B).x)/this.oa*this.range+this.u;this.Lw(a)};
g.k.Lw=function(a,b){b=void 0===b?"":b;a=g.pe(a,this.u,this.C);""===b&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.qa.style.left=(a-this.u)/this.range*(this.oa-this.Ga)+"px";this.j=a};
g.k.focus=function(){this.Fa.focus()};g.x(jW,iW);jW.prototype.Ba=function(){this.I.setPlaybackRate(this.j,!0)};
jW.prototype.Lw=function(a){iW.prototype.Lw.call(this,a,ARa(this,a).toString());this.D&&(zRa(this),this.Ma())};
jW.prototype.updateValues=function(){var a=this.I.getPlaybackRate();ARa(this,this.j)!==a&&(this.Lw(a),zRa(this))};g.x(BRa,g.aR);BRa.prototype.focus=function(){this.j.focus()};g.x(CRa,NU);g.x(DRa,g.eW);g.k=DRa.prototype;g.k.Jk=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.Sa=function(){var a=this.I.getPresentingPlayerType();this.enable(2!==a&&3!==a);HRa(this)};
g.k.Kx=function(a){g.eW.prototype.Kx.call(this,a);a?(this.K=this.T(this.I,"onPlaybackRateChange",this.onPlaybackRateChange),HRa(this),FRa(this,this.I.getPlaybackRate())):(this.Mc(this.K),this.K=null)};
g.k.onPlaybackRateChange=function(a){var b=this.I.getPlaybackRate();this.D.includes(b)||GRa(this,b);FRa(this,a)};
g.k.uh=function(a){g.eW.prototype.uh.call(this,a);a===this.j?this.I.setPlaybackRate(this.C,!0):this.I.setPlaybackRate(Number(a),!0);this.Lb.Fj()};g.x(JRa,g.eW);g.k=JRa.prototype;g.k.Rj=function(a){g.eW.prototype.Rj.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.Jk=function(a){return this.getOption(a).text||""};
g.k.uh=function(a){g.eW.prototype.uh.call(this,a);this.ra("settingChange",this.K,this.settings[a].option)};g.x(kW,g.OU);kW.prototype.qh=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.Nt[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Rj(e),c.C.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
kW.prototype.nk=function(a,b){this.ra("settingChange",a,b)};g.x(lW,g.eW);lW.prototype.getKey=function(a){return a.languageCode};
lW.prototype.Jk=function(a){return this.languages[a].languageName||""};
lW.prototype.uh=function(a){this.ra("select",a);this.I.ub(this.element);g.UU(this.Lb)};g.x(MRa,g.eW);g.k=MRa.prototype;g.k.getKey=function(a){return g.id(a)?"__off__":a.displayName};
g.k.Jk=function(a){return"__off__"===a?"Desativadas":"__translate__"===a?"Traduzir automaticamente":"__contribute__"===a?"Adicionar legendas":"__correction__"===a?"Sugerir corre\u00e7\u00f5es de legendas":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.uh=function(a){if("__translate__"===a)this.j.open();else if("__contribute__"===a){this.I.pauseVideo();this.I.isFullscreen()&&this.I.toggleFullscreen();var b=g.FKa(this.I.W(),this.I.getVideoData());g.sP(b)}else if("__correction__"===a){this.I.pauseVideo();this.I.isFullscreen()&&this.I.toggleFullscreen();var c=NRa(this);mW(this,c);g.eW.prototype.uh.call(this,this.getKey(c));var d,e;c=null==(b=this.I.getVideoData().getPlayerResponse())?void 0:null==(d=b.captions)?void 0:null==(e=d.playerCaptionsTracklistRenderer)?
void 0:e.openTranscriptCommand;this.I.Qa("innertubeCommand",c);this.Lb.Fj();this.C&&this.I.ub(this.C)}else{if("__correction__"===a){this.I.pauseVideo();this.I.isFullscreen()&&this.I.toggleFullscreen();b=NRa(this);mW(this,b);g.eW.prototype.uh.call(this,this.getKey(b));var f,h;b=null==(c=this.I.getVideoData().getPlayerResponse())?void 0:null==(f=c.captions)?void 0:null==(h=f.playerCaptionsTracklistRenderer)?void 0:h.openTranscriptCommand;this.I.Qa("innertubeCommand",b)}else this.I.ub(this.element),
mW(this,"__off__"===a?{}:this.tracks[a]),g.eW.prototype.uh.call(this,a);this.Lb.Fj()}};
g.k.Sa=function(){var a=this.I.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.I.getVideoData(),c=b&&b.gG,d,e=!(null==(d=this.I.getVideoData())||!g.TO(d));d={};if(a||c){var f;if(a){var h=this.I.getOption("captions","track");d=this.I.getOption("captions","tracklist",{includeAsr:!0});var l=e?[]:this.I.getOption("captions","translationLanguages");this.tracks=g.ac(d,this.getKey,this);e=g.kn(d,this.getKey);var m=NRa(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.id(h)){if((f=h.translationLanguage)&&f.languageName){var q=f.languageName;f=l.findIndex(function(t){return t.languageName===q});
Aaa(l,f)}KRa(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.fW(this,e);this.Rj(f);h&&h.translationLanguage?this.j.Rj(this.j.getKey(h.translationLanguage)):tRa(this.j);a&&this.D.qh(this.I.getSubtitlesUserSettings());this.V.qe(d&&d.length?" ("+d.length+")":"");this.ra("size-change");this.I.Za(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.v2=function(a){var b=this.I.getOption("captions","track");b=g.md(b);b.translationLanguage=this.j.languages[a];mW(this,b)};
g.k.nk=function(a,b){if("reset"===a)this.I.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.I.updateSubtitlesUserSettings(c)}LRa(this,!0);this.K.start();this.D.qh(this.I.getSubtitlesUserSettings())};
g.k.K8=function(a){a||g.Nq(this.K)};
g.k.xa=function(){g.Nq(this.K);g.eW.prototype.xa.call(this)};
g.k.open=function(){g.eW.prototype.open.call(this);this.options.__correction__&&!this.C&&(this.C=this.options.__correction__.element,this.I.xb(this.C,this,167341),this.I.Za(this.C,!0))};g.x(ORa,g.TU);g.k=ORa.prototype;
g.k.initialize=function(){if(!this.isInitialized){var a=this.I.W();this.isInitialized=!0;this.TP=new vRa(this.I,this);g.H(this,this.TP);var b=new MRa(this.I,this);g.H(this,b);a.B||(b=new dW(this.I,this),g.H(this,b));a.Vf&&(b=new DRa(this.I,this),g.H(this,b));(g.xM(a)||a.K)&&(a.u||a.Eb)&&(b=new uRa(this.I,this),g.H(this,b));a.Je&&!a.N("web_player_move_autonav_toggle")&&(a=new hW(this.I,this),g.H(this,a));a=new gW(this.I,this);g.H(this,a);this.I.ra("settingsMenuInitialized");sRa(this.settingsButton,
this.cg.gp())}};
g.k.rd=function(a){this.initialize();this.cg.rd(a);sRa(this.settingsButton,this.cg.gp())};
g.k.Ch=function(a){this.Gb&&1>=this.cg.gp()&&this.hide();this.cg.Ch(a);sRa(this.settingsButton,this.cg.gp())};
g.k.yd=function(a){this.initialize();0<this.cg.gp()&&g.TU.prototype.yd.call(this,a)};
g.k.Mb=function(){this.CI?this.CI=!1:g.TU.prototype.Mb.call(this)};
g.k.show=function(){g.TU.prototype.show.call(this);g.Sq(this.I.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.TU.prototype.hide.call(this);g.Uq(this.I.getRootNode(),"ytp-settings-shown")};
g.k.Qg=function(a){this.I.Za(this.element,a);this.I.ra("settingsMenuVisibilityChanged",a)};g.x(g.nW,g.X);g.nW.prototype.onClick=function(){if(QRa(this)&&(this.I.toggleSubtitles(),this.I.ub(this.element),!this.isEnabled())){var a=!1,b=g.zB(g.yB(),65);g.QM(this.I.W())&&null!=b&&(a=!b);a&&this.I.W().N("web_player_nitrate_promo_tooltip")&&this.I.ra("showpromotooltip",this.element)}};
g.nW.prototype.j=function(a){var b,c;null==(b=g.GS(this.I))||null==(c=b.hn())||c.yd(a)};
g.nW.prototype.isEnabled=function(){return!!this.I.getOption("captions","track").displayName};
g.nW.prototype.Sa=function(){var a=QRa(this),b=300;this.I.W().V&&(b=480);if(this.I.W().K){this.updateValue("title",g.qT(this.I,"Legendas","c"));this.update({"data-title-no-tooltip":"Legendas"});var c=a}else{if(a)null==(c=this.Ha("ytp-subtitles-button-icon"))||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.qT(this.I,"Legendas","c")),this.update({"data-title-no-tooltip":"Legendas"});else{var d;null==(d=this.Ha("ytp-subtitles-button-icon"))||d.setAttribute("fill-opacity","0.3");this.updateValue("title",
"Legendas indispon\u00edveis");this.update({"data-title-no-tooltip":"Legendas indispon\u00edveis"})}c=!0}lT(this.tooltip);c=c&&this.I.qb().getPlayerSize().width>=b;g.$Q(this,c);this.I.Za(this.element,c);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.x(g.pW,g.X);g.k=g.pW.prototype;
g.k.Bc=function(){var a=this.api.qb().getPlayerSize().width,b=this.K;this.api.W().V&&(b=400);b=a>=b&&(!rW(this)||!g.yP(this.api.Nb(),64));g.$Q(this,b);g.Wq(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.u&&(c-=a.airingStart);qW(this)&&(c-=this.Hb.startTimeMs/1E3);c=g.HR(c);this.B!==c&&(this.updateValue("currenttime",c),this.B=c);b=qW(this)?g.HR((this.Hb.endTimeMs-this.Hb.startTimeMs)/
1E3):g.HR(this.api.getDuration(b,!1));this.C!==b&&(this.updateValue("duration",b),this.C=b)}a=a.isAtLiveHead;!rW(this)||this.J===a&&this.D===this.isPremiere||(this.J=a,this.D=this.isPremiere,this.Bc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.qe(this.isPremiere?"Estreia":"Em direto"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Avan\u00e7ar para a stream em direto.",this.j=g.kT(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Hb!==a;this.Hb=
a;b&&oW(this)};
g.k.onLoopRangeChange=function(a){var b=this.Hb!==a;this.Hb=a;b&&(this.Bc(),oW(this))};
g.k.n9=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.Bc();oW(this)};
g.k.updateVideoData=function(a){this.jD=a.isLivePlayback&&!a.rb;this.u=UO(a);this.isPremiere=a.isPremiere;g.Wq(this.element,"ytp-live",rW(this))};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.xa=function(){this.j&&this.j();g.X.prototype.xa.call(this)};g.x(SRa,g.X);g.k=SRa.prototype;g.k.wr=function(){var a=this.j.Mg();this.C!==a&&(this.C=a,RRa(this,this.api.getVolume(),this.api.isMuted()))};
g.k.VS=function(a){g.$Q(this,350<=a.width)};
g.k.A2=function(a){if(!g.UP(a)){var b=g.RP(a),c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.pe(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.VP(a))}};
g.k.w2=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.pe(b/10,-10,10));g.VP(a)};
g.k.P8=function(){sW(this,this.u,!0,this.B,this.j.qm());this.oa=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.z2=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.qo(this.V).x;this.api.setVolume(100*g.pe((a-c/2)/(b-c),0,1))};
g.k.O8=function(){sW(this,this.u,!1,this.B,this.j.qm());0===this.volume&&(this.api.mute(),this.api.setVolume(this.oa))};
g.k.onVolumeChange=function(a){RRa(this,a.volume,a.muted)};
g.k.qU=function(){sW(this,this.u,this.isDragging,this.B,this.j.qm())};
g.k.xa=function(){g.X.prototype.xa.call(this);g.Uq(this.K,"ytp-volume-slider-active")};g.x(g.tW,g.X);
g.tW.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).Dd,b=this.api.W();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.oa);g.$Q(this,this.visible);this.api.Za(this.element,this.visible&&this.ea);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",a));b.B&&(this.j&&(this.Mc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Sq(this.element,"no-link"));this.Kb()};
g.tW.prototype.onClick=function(a){this.api.N("web_player_log_click_before_generating_ve_conversion_params")&&this.api.ub(this.element);var b=this.api.W(),c=this.api.getVideoUrl(!g.IR(a),!1,!0,!0);if(g.xM(b)||g.FM(b)){var d={};g.xM(b)&&g.ES(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.Yj(c,g.xS(d,"emb_logo"))}g.pT(c,this.api,a);this.api.N("web_player_log_click_before_generating_ve_conversion_params")||this.api.ub(this.element)};
g.tW.prototype.Kb=function(){var a={G:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},X:[{G:"path",wc:!0,S:"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.FM(this.api.W())){var b=this.Ha("ytp-youtube-music-button"),c=300>this.api.getPlayerSize().width;a=c?{G:"svg",Y:{fill:"none",height:"24",width:"24"},X:[{G:"circle",Y:{cx:"12",cy:"12",fill:"red",r:"12"}},{G:"ellipse",Y:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",Y:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{G:"svg",Y:{viewBox:"0 0 80 24"},X:[{G:"ellipse",Y:{cx:"12.18",cy:"12",fill:"red",rx:"12.18",ry:"12"}},{G:"ellipse",Y:{cx:"12.18",
cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"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.Wq(b,"ytp-youtube-music-logo-icon-only",c)}else g.US(this.api)&&(a={G:"svg",Y:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},X:[{G:"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.tW.prototype.lc=function(a){g.X.prototype.lc.call(this,a);this.api.Za(this.element,this.visible&&a)};g.x(URa,g.PK);g.k=URa.prototype;g.k.cf=function(){g.yP(this.I.Nb(),2)||(this.Pc.Bc(),this.Mj.Bc())};
g.k.Jn=function(){this.LK();this.sf.u?this.cf():g.xW(this.Pc.tooltip)};
g.k.uw=function(){this.cf();this.Af.start()};
g.k.LK=function(){var a=!this.I.W().u&&300>g.rRa(this.Pc)&&this.I.Nb().wd()&&!!window.requestAnimationFrame,b=!a;this.sf.u||(a=b=!1);b?this.ea||(this.ea=this.T(this.I,"progresssync",this.cf)):this.ea&&(this.Mc(this.ea),this.ea=null);a?this.Af.isActive()||this.Af.start():this.Af.stop()};
g.k.Kb=function(){var a=this.B.Mg(),b=this.I.qb().getPlayerSize(),c=WRa(this),d=Math.max(b.width-2*c,100);if(this.ob!==b.width||this.kb!==a){this.ob=b.width;this.kb=a;var e=XRa(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.$V(this.Pc,c,e,a);this.B.Hc().MK=e}c=this.u;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-YRa(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.maxHeight=e;c.TA();this.LK();this.I.W().N("html5_player_dynamic_bottom_gradient")&&g.wV(this.rb,b.height)};
g.k.onVideoDataChange=function(){var a=this.I.getVideoData();this.Ma.style.background=a.Dd?a.Xl:"";g.$Q(this.Ba,a.gR);this.qa&&lQa(this.qa,a.showSeekingControls);this.oa&&lQa(this.oa,a.showSeekingControls)};
g.k.Bb=function(){return this.C.element};g.x(ZRa,bV);g.k=ZRa.prototype;g.k.gI=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.I.Qa("innertubeCommand",this.onClickCommand),this.JD())};
g.k.JD=function(){this.enabled=!1;this.K.hide()};
g.k.onVideoDataChange=function(a,b){"dataloaded"===a&&$Ra(this);if(this.I.N("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){a=[];var c,d,e,f;if(b=null==(f=g.Q(null==(c=b.Ad)?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.suggestedActionsRenderer,cza))?void 0:f.suggestedActions)for(c=g.u(b),d=c.next();!d.done;d=c.next())(d=g.Q(d.value,dza))&&g.Q(d.trigger,eza)&&a.push(d)}else a=b.suggestedActions;c=a;if(0!==c.length){a=[];c=g.u(c);for(d=c.next();!d.done;d=
c.next())if(d=d.value,e=g.Q(d.trigger,eza))f=(f=d.title)?g.VG(f):"View Chapters",b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,null!=b&&null!=e&&d.tapCommand&&(a.push(new g.NG(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.I.hf(a)}};
g.k.GA=function(){return this.enabled};
g.k.Qg=function(){this.enabled?this.Ga.start():$U(this);this.Cm()};
g.k.xa=function(){$Ra(this);bV.prototype.xa.call(this)};var r4={},uW=(r4.CHANNEL_NAME="ytp-title-channel-name",r4.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",r4.LINK="ytp-title-link",r4.SESSIONLINK="yt-uix-sessionlink",r4.SUBTEXT="ytp-title-subtext",r4.TEXT="ytp-title-text",r4.TITLE="ytp-title",r4);g.x(vW,g.X);vW.prototype.onClick=function(a){this.api.ub(this.element);var b=this.api.W(),c=this.api.getVideoUrl(!g.IR(a),!1,!0);g.xM(b)&&(b={},g.ES(this.api,"addEmbedsConversionTrackingParams",[b]),c=g.Yj(c,g.xS(b,"emb_title")));g.pT(c,this.api,a)};
vW.prototype.Sa=function(){var a=this.api.getVideoData(),b=this.api.W();this.updateValue("title",a.title);var c={G:"a",S:uW.CHANNEL_NAME,Y:{href:"{{channelLink}}",target:"_blank"},Aa:"{{channelName}}"};this.api.W().B&&(c={G:"span",S:uW.CHANNEL_NAME,Aa:"{{channelName}}",Y:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);aSa(this);2===this.api.getPresentingPlayerType()&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.xc&&c.profilePicture?(this.updateValue("channelLink",
c.xc),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):aSa(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.yk;g.Wq(this.link,uW.FULLERSCREEN_LINK,c);b.Ba||!a.videoId||c||a.Dd&&b.oa||b.B?this.j&&(this.updateValue("url",null),this.Mc(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.T(this.link,"click",this.onClick)));b.B&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.xM(b)?a.expandedTitle:
a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.x(g.wW,g.X);g.k=g.wW.prototype;g.k.uQ=function(a){if(null!=this.type)if(a)switch(this.type){case 3:case 2:fSa(this);this.J.show();break;default:this.J.show()}else this.J.hide();this.V=a};
g.k.GX=function(a,b){a<=this.C&&this.C<=b&&(a=this.C,this.C=NaN,cSa(this,a))};
g.k.Y5=function(){Cya(this.u,this.C,this.K*this.scale)};
g.k.Co=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.qa);a.addEventListener("mouseover",this.D);a.removeEventListener("blur",this.qa);a.addEventListener("focus",this.D);gSa(this);break;case 3:gSa(this);break;case 1:this.u&&(this.u.unsubscribe("l",this.GX,this),this.u=null),this.api.removeEventListener("videoready",this.Ga),this.Fa.stop()}this.type=null;this.V&&this.J.hide()};
g.k.Pk=function(){if(this.j)for(var a=0;a<arguments.length;a++)g.rf(arguments[a],this.j)&&this.Co()};
g.k.xa=function(){null!=this.type&&this.Co();this.u&&this.u.dispose();g.X.prototype.xa.call(this)};g.x(iSa,g.X);g.k=iSa.prototype;g.k.KB=function(){this.visible=jSa(this);g.$Q(this,this.visible);this.icon&&lSa(this,this.icon);this.I.Za(this.element,this.visible&&this.ea)};
g.k.ud=function(){return this.I.getVideoData().videoId};
g.k.onClick=function(){this.I.ub(this.element);var a=this.I.W(),b=this.ud();a.qa?hSa(this):kSa(this,b)};
g.k.xw=function(){this.isRequestPending=this.j=!1;this.Sa(2);this.KB()};
g.k.Sa=function(a,b){var c=this.I.W();lSa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.MP("Adicionado como $USER_NAME",a):g.MP("Ver mais tarde como $USER_NAME",a),image:hxa(c)})):this.update({title:"Ver mais tarde",image:null});lT(this.tooltip)};
g.k.lc=function(a){g.X.prototype.lc.call(this,a);this.I.Za(this.element,this.visible&&a)};g.x(g.yW,g.xU);g.k=g.yW.prototype;g.k.Hc=function(){return this.tooltip};
g.k.jN=function(){return this.dh};
g.k.rq=function(a,b){b?this.Wo=a:this.Wo=null;this.El()};
g.k.Wy=function(a,b){if(b)this.Pt.push(a);else for(b=this.Pt.length;0<=b;b--)if(this.Pt[b]===a){this.Pt.splice(b,1);break}mU(this.sf,64,0<this.Pt.length)};
g.k.mu=function(){this.api.Mk()&&this.api.So();return!!this.Wo||mSa(this)||g.xU.prototype.mu.call(this)};
g.k.BA=aa(37);g.k.Lr=aa(35);g.k.Kr=aa(33);g.k.El=function(){var a=!this.mu(),b=a&&this.api.Mk()&&!g.yP(this.api.Nb(),2)&&!(this.api.getVideoData().Dd&&this.api.W().oa)&&!this.api.W().B&&!g.US(this.api),c=this.Qq&&g.TS(this.api)&&g.yP(this.api.Nb(),128);a||c?(this.XQ.show(),this.YQ.show()):(this.XQ.hide(),this.YQ.hide(),this.tooltip.Pk(this.Th.element));b?this.wh.yd():this.wh.Mb();this.dh&&VRa(this.dh,this.xP||!a);this.api.N("web_player_hide_overflow_button_if_empty_menu")&&nSa(this);g.xU.prototype.El.call(this)};
g.k.Dw=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.to(a),h=d||this.dh&&g.rf(this.dh.Bb(),b),l=d=null;null!=c&&h||(d=g.to(b),l=g.ro(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.dh,d=WRa(b),l=XRa(b),h=this.api.qb().getPlayerSize().height,c=g.pe(c,d,d+l-f.width),f=h-YRa(b)-f.height):g.rf(this.Th.element,b)?(b=this.api.qb().getPlayerSize().width,c=g.pe(c,12,b-f.width-12),f=this.Mg()?this.VL:this.UL,"gvn"===this.api.W().playerStyle&&(f+=
20),this.Qq&&(f-=this.Mg()?26:18)):(b=this.api.qb().getPlayerSize(),c=g.pe(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.Jn=function(a){a&&(this.tooltip.Pk(this.Th.element),this.dh&&this.tooltip.Pk(this.dh.Bb()));this.vH&&(g.Wq(this.contextMenu.element,"ytp-autohide",a),g.Wq(this.contextMenu.element,"ytp-autohide-active",!0));g.xU.prototype.Jn.call(this,a)};
g.k.MO=function(){g.xU.prototype.MO.call(this);this.vH&&(g.Wq(this.contextMenu.element,"ytp-autohide-active",!1),this.vH&&(this.contextMenu.hide(),this.Qh&&this.Qh.hide()))};
g.k.Vk=function(a,b){var c=this.api.qb().getPlayerSize();c=new g.Rn(0,0,c.width,c.height);if(a||this.sf.u&&!this.mu()){if(this.api.W().Im||b)a=this.Mg()?this.VL:this.UL,c.top+=a,c.height-=a;this.dh&&(c.height-=YRa(this.dh))}return c};
g.k.wr=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","Leitor de v\u00eddeo do YouTube em ecr\u00e3 inteiro"),this.api.W().externalFullscreen||(b.parentElement.insertBefore(this.KG.element,b),b.parentElement.insertBefore(this.JG.element,b.nextSibling))):g.sG(Error("Player not in DOM.")):(b.setAttribute("aria-label","Leitor de v\u00eddeo do YouTube"),this.KG.detach(),this.JG.detach());this.Kb();this.Tp()};
g.k.Mg=function(){var a=this.api.W();return this.api.isFullscreen()&&!a.V||!1};
g.k.showControls=function(a){this.rG=!a;this.El()};
g.k.Kb=function(){var a=this.Mg();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.Wq(this.contextMenu.element,"ytp-big-mode",a);this.El();this.api.N("web_player_hide_overflow_button_if_empty_menu")||nSa(this);this.Tp();var b=g.US(this.api);b&&a?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Un(this.Th.element,"padding-left",a+"px"),g.Un(this.Th.element,"padding-right",a+"px")):b&&(g.Un(this.Th.element,"padding-left",""),g.Un(this.Th.element,"padding-right",""));g.xU.prototype.Kb.call(this)};
g.k.VM=function(){if(mSa(this)&&!g.TS(this.api))return!1;var a=this.api.getVideoData();return!g.xM(this.api.W())||2===this.api.getPresentingPlayerType()||!this.Ig||((a=this.Ig||a.Ig)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.Q(a.videoDetails,Iza)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.xU.prototype.VM.call(this):!1};
g.k.Tp=function(){g.xU.prototype.Tp.call(this);this.api.Za(this.title.element,!!this.zp);this.lA&&this.lA.lc(!!this.zp);this.channelAvatar.lc(!!this.zp);this.overflowButton&&this.overflowButton.lc(this.kh()&&!!this.zp);this.shareButton&&this.shareButton.lc(!this.kh()&&!!this.zp);this.uo&&this.uo.lc(!this.kh()&&!!this.zp);this.Ni&&this.Ni.lc(!this.kh()&&!!this.zp);if(!this.zp){this.tooltip.Pk(this.Th.element);for(var a=0;a<this.eF.length;a++){var b=this.eF[a];b.vj()&&b.Mb()}}};
g.k.vc=function(a){this.dh&&VRa(this.dh,this.mu());this.El();g.xU.prototype.vc.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){return this.Xq?this.Xq.handleGlobalKeyDown(a,b,c,d,e,f,h,l):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.Xq?this.Xq.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.fm=function(){if(this.contextMenu.Gb)return this.contextMenu.Mb(),!0;if(this.Pt.length)return this.Pt[this.Pt.length-1].Mb(),!0;if(this.Wo)return this.Wo.Mb(),!0;this.dh&&this.tooltip.Pk(this.dh.Bb());this.Gi&&this.tooltip.Pk(this.Gi.element);return g.xU.prototype.fm.call(this)};
g.k.pJ=function(a,b){this.vO=b;this.Wy(a,b);this.m_()};
g.k.m_=function(){var a=this.vO||this.contextMenu.vj();this.FL!==a&&(this.FL=a,this.api.Qa("onAutonavPauseRequest",this.FL))};
g.k.J4=function(){oSa(this,this.api.getRootNode(),!0).focus()};
g.k.K4=function(){oSa(this,this.api.getRootNode(),!1).focus()};
g.k.hn=function(){return this.dh&&this.dh.u};
g.k.Rp=function(){this.sf.Rp()};
g.k.pH=function(){this.Yc.hide()};
g.k.Pw=function(a){this.Yc.Pw(!g.dQ(a))};
g.k.AE=function(a,b,c,d){this.Bv.AE(a,b,c,d)};
g.k.zE=function(a,b){lPa(this.Bv,a,b)};
g.k.m7=function(){pSa(this,!0)};
g.k.xw=function(){nSa(this)};
g.k.I7=function(a){pSa(this,!1,a)};
g.k.PG=function(){return this.contextMenu};
g.k.vy=function(a){var b;if(null!=(b=this.dh)){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.Ja(b.j.element,d)}};
g.k.Qs=function(){var a,b=null==(a=this.dh)?void 0:a.Pc;if(b){var c;(null==(c=b.u)?0:c.isEnabled)&&b.Qs()}};g.x(g.zW,g.WT);g.zW.prototype.vl=function(){return!1};
g.zW.prototype.create=function(){var a=this.player.W();g.EM(a)&&a.u?this.chrome=new g.xU(this.player):this.chrome=new g.yW(this.player);g.H(this,this.chrome);this.chrome.init();this.player.Fg("ux")};
g.zW.prototype.OG=function(){return this.chrome};g.x(AW,g.G);AW.prototype.B=function(a,b){if(b){b=b instanceof g.pI?b:BW(this,b);var c;(null==(c=this.j.get(a))?void 0:rI(c.location))!==rI(b)&&this.j.set(a,new xSa(b,a))}else this.j.delete(a)};
AW.prototype.load=function(){var a=this,b,c,d,e,f,h,l,m,n,p;return g.Ha(function(q){switch(q.j){case 1:b=a.j.get(0);g.ya(q,2);var t;if(t=b&&!a.u)t=rI(b.location),t=a.u===DW(t);if(t){q.Ka(4);break}return g.z(q,vSa(a,a.u?2:0),5);case 5:if(c=q.u)a.B(0,c),tI(c)&&a.B(1,uI(c));case 4:g.za(q,3);break;case 2:d=g.Aa(q);g.tG(d);if(!a.u){q.Ka(3);break}a.u=!1;return g.z(q,a.load(),7);case 7:return q.return();case 3:if(!a.Z.experiments.sb("html5_onesie_probe_ec_hosts")){q.Ka(0);break}g.ya(q,9);e=a;f=e.B;h=3;return g.z(q,
vSa(a,1),11);case 11:return f.call(e,h,q.u),l=a,m=l.B,n=4,g.z(q,vSa(a,2),12);case 12:m.call(l,n,q.u);g.za(q,0);break;case 9:p=g.Aa(q),g.tG(p),g.xa(q)}})};
AW.prototype.K=function(){var a=this,b,c;return g.Ha(function(d){g.Lq(a.V);b=g.xL(a.Z.experiments,"html5_onesie_prewarm_max_lact_ms");if(sF()>=b)return d.return();(c=a.j.get(0))&&tSa(a,c);g.xa(d)})};
var qSa={YUa:0,lXa:1,ZVa:2,mXa:3,opa:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};g.EW.prototype.info=function(){};
var BSa=new Map;FW.prototype.Bk=function(){if(!this.gf.length)return[];var a=this.gf;this.gf=[];this.B=g.zb(a).info;return a};
FW.prototype.gE=function(){return this.gf};g.x(HW,g.G);g.k=HW.prototype;g.k.zq=function(){return Array.from(this.Xc.keys())};
g.k.Nw=function(a){a=this.Xc.get(a);var b=a.gf;a.Cy+=b.totalLength;a.gf=new xI;return b};
g.k.jh=function(a){return this.Xc.get(a).jh};
g.k.ji=function(a){return this.Xc.get(a).ji};
g.k.eA=function(a,b,c,d){this.Xc.get(a)||this.Xc.set(a,{gf:new xI,jr:[],Cy:0,bytesReceived:0,iW:0,PP:!1,jh:!1,ji:!1,Ui:b,YY:[],gb:[],WH:[],TF:!1});b=this.Xc.get(a);this.Ua?(c=MSa(this,a,c,d),LSa(this,a,b,c)):(c.Cn?b.iW=c.Gr:b.WH.push(c),b.YY.push(c))};
g.k.jn=function(a){var b;return(null==(b=this.Xc.get(a))?void 0:b.gb)||[]};
g.k.Zz=function(){for(var a=g.u(this.Xc.values()),b=a.next();!b.done;b=a.next())b=b.value,b.PP&&(b.cf&&b.cf(),b.PP=!1)};
g.k.xr=function(a){a=this.Xc.get(a);IW&&a.jr.push({data:new xI([]),sM:!0});a&&!a.ji&&(a.ji=!0)};
g.k.Bk=function(a){var b,c=null==(b=this.Xc.get(a))?void 0:b.xf;if(!c)return[];this.vn(a,c);return c.Bk()};
g.k.ll=function(a){var b,c,d;return!!(null==(c=null==(b=this.Xc.get(a))?void 0:b.xf)?0:null==(d=c.gE())?0:d.length)||JSa(this,a)};
g.k.vn=function(a,b){for(;JSa(this,a);)if(IW){var c=this.Xc.get(a),d=c.jr.shift();c.Cy+=(null==d?void 0:d.data.totalLength)||0;c=d;GW(b,c.data,c.sM)}else c=this.Nw(a),d=a,d=this.Xc.get(d).jh&&!ISa(this,d),GW(b,c,d&&KSa(this,a))};
g.k.xa=function(){g.G.prototype.xa.call(this);for(var a=g.u(this.Xc.keys()),b=a.next();!b.done;b=a.next())ESa(this,b.value);this.Xc.clear()};
var IW=!1,FSa=!1;var LW=[],B2a=!1;g.zZ=Md(function(){var a="";try{var b=g.bf("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.x(MW,g.G);MW.prototype.B=function(){null!=this.j&&this.app.getVideoData()!==this.j&&fO(this.j)&&e3a(this.app,this.j,void 0,void 0,this.u)};
MW.prototype.xa=function(){this.j=null;g.G.prototype.xa.call(this)};g.x(g.NW,WP);g.k=g.NW.prototype;g.k.isView=function(){return!0};
g.k.fQ=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Jh(),c=YK(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Iv=function(){return aL(this.mediaElement.Iv(),this.start,this.end)};
g.k.Jh=function(){return aL(this.mediaElement.Jh(),this.start,this.end)};
g.k.NC=function(){return aL(this.mediaElement.NC(),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.fQ()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(a){}}return this.mediaElement.play()};
g.k.qc=function(){var a=WP.prototype.qc.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.OF=function(){return this.mediaElement.OF()};
g.k.oy=function(a){this.mediaElement.oy(a)};
g.k.kt=function(){return this.mediaElement.kt()};
g.k.playVideo=function(){return this.mediaElement.playVideo()};
g.k.pM=function(){this.mediaElement.pM()};
g.k.mM=function(){this.mediaElement.mM()};
g.k.Ru=function(){return this.mediaElement.Ru()};
g.k.Bb=function(){return this.mediaElement.Bb()};
g.k.Of=function(){return this.mediaElement.Of()};
g.k.QF=function(a){this.mediaElement.QF(a)};
g.k.bJ=function(){this.mediaElement.bJ()};
g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.k.gt=function(){return this.mediaElement.gt()};
g.k.setLoop=function(a){this.mediaElement.setLoop(a)};
g.k.canPlayType=function(a,b){return this.mediaElement.canPlayType(a,b)};
g.k.Bo=function(){return this.mediaElement.Bo()};
g.k.Xg=function(){return this.mediaElement.Xg()};
g.k.ji=function(){return this.mediaElement.ji()};
g.k.ZG=function(){return this.mediaElement.ZG()};
g.k.AA=function(a){this.mediaElement.AA(a)};
g.k.PF=function(){return this.mediaElement.PF()};
g.k.load=function(){this.mediaElement.load()};
g.k.pause=function(){this.mediaElement.pause()};
g.k.Qj=function(){return this.mediaElement.Qj()};
g.k.aH=function(){return this.mediaElement.aH()};
g.k.tf=function(){return this.mediaElement.tf()};
g.k.Mf=function(){return this.mediaElement.Mf()};
g.k.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.k.Mh=function(){return this.mediaElement.Mh()};
g.k.nu=function(){return this.mediaElement.nu()};
g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.k.nt=function(){return this.mediaElement.nt()};
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.OB=aa(20);g.k.YE=aa(22);g.k.ZE=aa(24);g.k.Gy=aa(26);g.k.oC=function(){return this.mediaElement.oC()};
g.k.Cs=function(a){this.mediaElement.Cs(a)};
g.k.PC=function(a){return this.mediaElement.PC(a)};
g.k.PN=function(){return this.mediaElement.PN()};
g.k.stopVideo=function(){this.mediaElement.stopVideo()};
g.k.uM=function(a){this.mediaElement.uM(a)};
g.k.audioTracks=function(){return this.mediaElement.audioTracks()};g.x(USa,g.G);g.k=USa.prototype;g.k.getStatus=function(){return this.status};
g.k.Xu=function(){var a=this.j.getVideoData(),b=this.u.getVideoData(),c;if((c=a.B)&&!(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.Qe()){f=RSa(this.policy,this.j,this.u,this.Bm);h=VSa(this);c=h.e4;e=h.lX;d=h.CU;h=h.kX;if(!this.K){var l=1E3*this.u.Tk(),m=this.j.Tk();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=0);a=a.isAd();this.u.vE(l,
m,a);this.K=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Sg(b,f)):2===this.status.status?cTa(this):(a=this.j.kt())&&Iua(a)&&(!hL(a)&&g.zA()?this.Sg("mse_closed"):b.j&&fI(b.j)&&a.u&&!a.u.VG()?this.Sg("encr_upgrade"):(b=this.j.Qe(),b.ji()?this.Sg("elem_ended"):0>e?this.Sg("next_player_future"):(this.J=d,this.currentVideoDuration=d-c,this.B=Kua(a,c,d,!0),this.C=Kua(a,e,h,!1),a=this.u.getVideoData().clientPlaybackNonce,this.j.ya("gaplessPrep",{cpn:a}),$Sa(this.j,this.B),this.j.setMediaElement(WSa(b,
c,d,!this.j.getVideoData().isAd())),PW(this,2),cTa(this))))}else this.Sg("no-elem")};
g.k.Lx=function(a){var b=a===bTa(this).kZ,c=b?this.B.j:this.B.u;b=b?this.C.j:this.C.u;if(c.isActive&&!b.isActive){var d=this.J;XK(a.dg(),d-.01)&&(PW(this,4),c.isActive=!1,c.mF=c.mF||c.isActive,(1===this.D?this.j:this.u).ya("sbh",{}),b.isActive=!0,b.mF=b.mF||b.isActive);a=this.C.u;this.C.j.isActive&&a.isActive&&(PW(this,5),0!==this.D&&(this.j.getVideoData().eT=!0,this.rf.setLoopRange({startTimeMs:0,endTimeMs:1E3*this.currentVideoDuration})))}};
g.k.LX=function(){4<=this.status.status&&6>this.status.status&&this.Sg("player-reload-after-handoff")};
g.k.Sg=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.u){var d=this.u.getVideoData().clientPlaybackNonce;this.j.pe(new aN("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.Bm,msg:a})));b=this.j;b.videoData.ea=!1;c&&sZ(b);b.Ca&&eZ(b.Ca)}this.Qp.reject(a);this.dispose()}};
g.k.Sv=function(){return 4===this.status.status};
g.k.xa=function(){aTa(this);this.j.unsubscribe("newelementrequired",this.LX,this);if(this.B){var a=this.B.u;this.B.j.Od.unsubscribe("updateend",this.Lx,this);a.Od.unsubscribe("updateend",this.Lx,this)}g.G.prototype.xa.call(this)};
g.k.Md=function(a){g.GP(a,128)&&this.Sg("player-error-event")};g.x(RW,g.G);RW.prototype.clearQueue=function(){this.C&&this.C.reject("Queue cleared");SW(this)};
RW.prototype.Yv=function(){return!this.j};
RW.prototype.Sv=function(){var a;return(null==(a=this.B)?void 0:a.Sv())||!1};
RW.prototype.xa=function(){SW(this);g.G.prototype.xa.call(this)};g.x(mTa,g.SG);g.k=mTa.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:iTa()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.Am=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Qg())};
g.k.setMinimized=function(a){this.u!==a&&(this.u=a,this.Qg())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Qg())};
g.k.CA=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Qg())};
g.k.Mh=function(){return this.j};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.fz=function(){return this.fullscreen};
g.k.Ag=function(){return this.u};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return iTa()};
g.k.zz=function(){return this.pictureInPicture};
g.k.xz=function(){return!1};
g.k.Qg=function(){this.ra("visibilitychange");var a=this.getVisibilityState(this.Mh(),this.isFullscreen(),this.Ag(),this.isInline(),this.zz(),this.xz());a!==this.C&&this.ra("visibilitystatechange");this.C=a};
g.k.xa=function(){lTa(this.B);g.SG.prototype.xa.call(this)};g.x(XW,g.G);XW.prototype.gm=function(){return this.Ic||0};
XW.prototype.SG=function(){return this.B||0};
XW.prototype.Tf=function(){for(;this.segments.length;){var a=void 0;null==(a=this.segments.pop())||a.dispose()}this.u.clear()};
XW.prototype.xa=function(){this.Tf()};
g.x(YW,g.G);g.k=YW.prototype;g.k.gm=function(){return this.Ic};
g.k.SG=function(){return this.u};
g.k.getType=function(){return this.type};
g.k.getVideoData=function(){return this.videoData};
g.k.QE=function(a){this.videoData=a};g.x(g.$W,g.G);g.k=g.$W.prototype;
g.k.onCueRangeEnter=function(a){this.Ya.push(a);var b=a.getId(),c=""===b;this.Zb.add(a.u);c||this.va.ya("sdai",{enterAdCueRange:1});if(this.ob&&!this.j){this.ob=!1;if(!c){var d=this.D.get(b);d&&(c=this.va.getCurrentTime(),eX(this,{We:a,isAd:!0,Rq:!0,Eh:c,adCpn:b},{isAd:!1,Rq:!1,Eh:c}),this.api.ra("serverstitchedvideochange",d.Tc,d.Bs),this.va.ya("sdai",cX("midab",d)),this.B=1)}this.K=!1}else if(this.j){if(this.j.Rq)this.va.ya("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Eh,
cpn:b,currentTime:this.va.getCurrentTime()}),d=this.va.getCurrentTime(),a={We:a,isAd:!c,Rq:!0,Eh:d,adCpn:b},b={We:this.j.We,isAd:this.j.isAd,Rq:!1,Eh:d,adCpn:this.j.adCpn},this.j.We&&this.Zb.delete(this.j.We.u),eX(this,a,b);else{if(this.j.We===a){this.va.ya("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Eh,cpn:b,currentTime:this.va.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.va.ya("sdai",{dchtsc:b});
this.j=void 0;return}a={We:a,isAd:!c,Rq:!0,Eh:this.va.getCurrentTime(),adCpn:b};eX(this,a,this.j)}this.j=void 0;this.K=!1}else this.j={We:a,isAd:!c,Rq:!0,Eh:this.va.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){if(this.Zb.has(a.u)){this.Zb.delete(a.u);this.Ya=this.Ya.filter(function(d){return d!==a});
this.ob&&(this.K=this.ob=!1,this.va.ya("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.Rq){if(this.j.We===a){this.va.ya("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.Eh,cpn:b,currentTime:this.va.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.va.ya("sdai",{dchtsc:b});this.j=void 0;return}b={We:a,isAd:!c,Rq:!1,Eh:this.va.getCurrentTime(),adCpn:b};eX(this,this.j,b)}else this.va.ya("sdai",
{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Eh,upcomingCpn:b,contentCpn:this.va.getVideoData().clientPlaybackNonce,currentTime:this.va.getCurrentTime()});this.j=void 0;this.K=!1}else this.j={We:a,isAd:!c,Rq:!1,Eh:this.va.getCurrentTime(),adCpn:b}}else this.va.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.K=!0;if(void 0===b?0:b)pTa(this,a);else{b=this.api.td();var d=b===this.Eb?this.Ec:null;gX(this,!1);this.xd=a;null!=c&&this.Qc.start(c);b&&(this.Ec=d||b.getPlayerState(),j2a(b),this.Eb=b)}};
g.k.xa=function(){gX(this,!1);CTa(this);DTa(this);g.G.prototype.xa.call(this)};
g.k.AQ=function(a){this.od=a;this.va.ya("sdai",{swebm:a})};
g.k.Xk=function(a,b,c){if(c&&b){var d=this.Ba.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.pI(c);this.eb&&this.va.ya("sdai",{hdlredir:1,itag:b,seg:a,hostport:rI(c)});d.locations.set(e,c)}}};
g.k.qt=function(a,b,c,d,e,f){var h=3===d,l=FTa(this,a,b,d,c,f);if(!l)return jX(this,b,h),l=g.ETa(this,b)?"undec":"ncp",this.va.ya("sdai",{gvprp:l,mt:a,seg:b,tt:d,itag:c,ce:f}),null;h||this.Ba.set(b,l);a=l.Qm;var m;d=(null==(m=iX(this,b-1,d,e))?void 0:m.Ms)||"";""===d&&this.va.ya("sdai",{eds:1});m=iM(l.ssdaiAdsConfig||"")||void 0;c=this.va.getVideoData();var n;e=(null==(n=c.u)?void 0:n.containerType)||0;n=c.zT[e];b=l.Rw&&b>=l.Rw?l.Rw:void 0;return{NE:{pL:a?JTa(this,a):[],z3:m,Ms:d,rZ:b,qaa:Fe(n.split(";")[0]),
raa:n.split(";")[1]||""}}};
g.k.fp=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]),l=3===d;a=FTa(this,a,b,d,c,f);this.eb&&this.va.ya("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return jX(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.va.ya("sdai",{gdu:"noadpfmts",seg:b,itag:h}),jX(this,b,l),null;m=f.find(function(A){return A.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.va.ya("sdai",{gdu:"nofmt",seg:b,vid:p,itag:h,fullitag:c,itags:a.join(",")});jX(this,b,l);return null}a.locations.set(h,new g.pI(m.url,!0))}f=a.locations.get(h);if(!f)return this.va.ya("sdai",{gdu:"nourl",seg:b,itag:h}),jX(this,b,l),null;f=new uJ(f);this.od&&(f.get("dvc")?this.va.ya("sdai",{dvc:f.get("dvc")||""}):f.set("dvc","webm"));var t;(e=null==(t=iX(this,b-1,d,e))?void 0:t.Ms)&&
f.set("daistate",e);a.Rw&&b>=a.Rw&&f.set("skipsq",""+a.Rw);(e=this.va.getVideoData().clientPlaybackNonce)&&f.set("cpn",e);t=[];a.Qm&&(t=JTa(this,a.Qm),0<t.length&&f.set("acpns",t.join(",")));l||this.Ba.set(b,a);l=null;l=f.get("aids");var v;if(((null==(q=l)?void 0:null==(v=q.split(","))?void 0:v.length)||0)!==t.length)if(a.Qm){var y;this.va.ya("sdai",{acpns_aids_nm:1,ids:LTa(this,a.Qm).join("_"),acpns:t.join("_"),aids:null==(y=l)?void 0:y.replace(/,/g,"_"),cpn:e,trackType:d})}else this.va.ya("sdai",
{acpns_aids_nm:"noAdBreakId",cpn:e});d=f.kf();2048<(null==d?void 0:d.length)&&this.va.ya("sdai",{urltoolong:1,sq:b,itag:h,len:d.length});this.eb&&(d&&(v=a.cpn,q=a.Qm,NTa(this,v,q),q&&!this.Je.has(q)&&(v=KTa(this,v,q),y=MTa(this,q),this.va.ya("sdai",{iofa:v}),this.va.ya("sdai",{noawnzd:y-v}),this.va.ya("sdai",{acpns:t.join("."),aids:null==(p=l)?void 0:p.replace(/,/g,".")}),this.Je.add(q))),this.va.ya("sdai",{gdu:"v",seg:b,itag:c,ast:a.Ic.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));
return d};
g.k.IE=function(a,b,c){var d=hX(this,a,c);return(d=d?(d.Ic+d.durationMs)/1E3:0)&&b>d?(this.xJ(a,c,!0),this.va.seekTo(d),!0):!1};
g.k.xJ=function(a,b,c){c=void 0===c?!1:c;if(a=hX(this,a,b)){var d=a.Qm;if(d){this.va.ya("sdai",{skipadonsq:b,sts:c,abid:d,acpn:a.cpn,avid:a.videoData.videoId});c=this.oa.get(d);if(!c)return;c=g.u(c);for(d=c.next();!d.done;d=c.next())d.value.Rw=b}this.J=a.cpn;GTa(this)}};
g.k.iQ=function(){for(var a=g.u(this.ea),b=a.next();!b.done;b=a.next())b.value.Rw=NaN;GTa(this);this.va.ya("sdai",{rsac:"resetSkipAd",sac:this.J});this.J=""};
g.k.gF=aa(39);
g.k.pP=function(a,b,c,d,e,f,h,l,m){m&&(h?this.kb.set(a,{Ms:m,py:l}):this.Ma.set(a,{Ms:m,py:l}));if(h){if(d.length&&e.length)for(this.J&&this.J===d[0]&&this.va.ya("sdai",{skipfail:1,sq:a,acpn:this.J}),a=b+this.Fq(),h=0;h<d.length;h++)if(m=d[h],l=a,a=l+e[h],m=this.D.get(m))l-=f[h],m.Bs=null!=m.Bs?Math.min(m.Bs,l):l;if(!ZW(this))if(d.length&&e.length)for(b=1E3*(b+this.Fq()),c=0;c<d.length;c++)if(a=d[c],h=1E3*e[c],a===this.va.getVideoData().clientPlaybackNonce)ITa(this,b,b+h,!1),b+=h;else if(this.Qd.has(a)||(this.va.ya("sdai",
{adCpnFromEmsg:1}),this.Qd.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.C.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.va.Oi.Jm()):(m=wTa(b-l,b+h,a),this.C.set(a,m),this.va.ya("sdai",{newAdCR:1,cpn:a,startTime:m.start,endTime:m.end}),n=!0);b=m.end;ITa(this,m.start,m.end,!0);if(n)for(this.va.addCueRange(m),
a=this.va.qC("serverstitchedcuerange",36E5),a=g.u(a),h=a.next();!h.done;h=a.next())this.C.delete(h.value.getId())}else 5!==c&&4!==c||ITa(this,1E3*(b+this.Fq()),1E3*(b+this.Fq())+5E3,!1)}};
g.k.BC=aa(41);g.k.Fq=function(){return this.va.Fq()};
g.k.vD=function(a){this.va.ya("timelineerror",{e:a})};
g.k.VC=function(a){this.Fa&&this.Ga&&this.Oa.push(this.Ga);a&&this.Ga&&this.md.push(this.Ga);this.Ga=null;this.va.VC(a)};
g.k.hH=function(a){if(this.mq||a.identifier&&this.Ve.has(a.identifier))this.eb&&this.va.ya("sdai",{startnoad:a.identifier}),bX(this);else if(xo(this.Oa,function(c){return c.identifier===a.identifier}))this.va.ya("sdai",{timedoutcp:1}),this.V.start(0);
else if(xo(this.md,function(c){return c.identifier===a.identifier}))this.va.ya("sdai",{fetchedcp:1}),bX(this);
else if(this.V.isActive()){var b;this.va.ya("sdai",{racingcp:(null==(b=this.Ga)?void 0:b.identifier)+"_"+a.identifier})}else this.pd=(new Date).getTime()/1E3,this.eb&&this.va.ya("sdai",{adf:1}),(b=g.xL(this.Z.experiments,"html5_ssdai_adfetch_dynamic_timeout_ms")||0)&&"predictStart"===a.event&&(b-=a.j),this.xc=Math.max(b,g.xL(this.Z.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4),this.Fa=!1,this.V.start(this.xc),this.Ga=a,this.Ma.clear(),this.kb.clear(),this.Va.clear(),this.hc=[]};
g.k.ut=function(a,b){a=hX(this,a,b);if(!this.Z.experiments.sb("disable_ssdai_on_errors")||!a||this.mq)return!1;this.mq=!0;0<this.B&&(this.B=0,this.qa=null,this.api.ra("serverstitchedvideochange"));this.va.xG({reason:"disablessdai",sq:b});return!0};
g.k.Nv=function(){this.va.ya("sdai",{rstdaist:1});this.rb="";this.Ma.clear();this.kb.clear();this.Va.clear()};
g.k.Ut=function(a){this.Ve.add(a);var b;(null==(b=this.Ga)?void 0:b.identifier)===a&&bX(this)};
g.k.LM=function(){return this.B};
g.k.oP=function(a,b,c,d){if(ZW(this)){var e=this.va.getVideoData().clientPlaybackNonce;a=a||e;b=b||e;if(a!==b){var f=a===e?xTa(this):this.D.get(a),h=b===e?xTa(this):this.D.get(b);f&&h?(c=this.K?c:d,dX(this.va,f,h,c,d,this.K,!!this.J),this.J="",b===e?(this.wb=1E3*c,this.B=0,this.qa=null,this.va.ya("sdai",{adchg:this.B}),this.api.ra("serverstitchedvideochange")):(this.wb=0,this.B++,this.qa=h,this.va.ya("sdai",{adchg:this.B,apid:this.qa.Tc,acpn:this.qa.cpn}),this.api.ra("serverstitchedvideochange",h.Tc,
h.Bs))):this.va.ya("sdai",{unknowntrans:"1",old:a,"new":b});this.K=!1}}};
g.k.St=function(a){var b=iU(this.api.Fb());return b?b.St(a):!1};
var uTa=0;g.x(QTa,g.G);g.k=QTa.prototype;g.k.addPlayerResponseForAssociation=function(a){a=new g.eO(this.api.W(),a);var b=a.clientPlaybackNonce;if(b&&(this.B.set(b,a),b=this.timeline.u.get(b),null==b?0:b.length)){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c.value.QE(a)}};
g.k.finishSegmentByCpn=function(a,b){this.C=b;if(this.j.has(a))return OTa(this,3),[a];if(b=this.timeline.u.get(b)){b.sort(function(e,f){return e.gm()-f.gm()});
b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=this.va.getCurrentTime();if(c.gm()>=d){this.D.set(a,3);if(b=this.u.get(a))this.va.removeCueRange(b),this.u.delete(a);this.va.seekTo(c.gm()/1E3);return[a]}}}return[]};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;var c=TTa(this,this.va.getCurrentTime());this.va.seekTo(a+c/1E3,b)};
g.k.onCueRangeEnter=function(a){a=a.getId().split(",");for(var b=0;b<a.length&&this.C&&a[b]!==this.C;){var c=a[b];this.j.has(c)&&(this.j.delete(c),this.ea.add(c));b++}if(a.length>b+1)for(c=b+1;c<a.length;c++)this.V.push(a[c]);a=a[b];this.j.has(a)&&VTa(this,a);this.ea.has(a)||WTa(this,a)};
g.k.LM=function(){return this.J};
g.k.xa=function(){this.B.clear();this.j.clear();this.V=[];PTa(this);this.D.clear();this.C="";this.ea.clear();g.G.prototype.xa.call(this)};g.x(aUa,g.G);g.k=aUa.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.td()){var b=this.J.get(a);b?gUa(this,b.target,b.Bm,a):this.pe("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.u.find(function(e){return e.Os.We===a})){var c=b.Os,d=c.target;
c=c.Bm;d?gUa(this,d,c,a):fUa(this,b.Ud,c,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.K;qX(this);if(a){if(!pX(this,a)){var b=this.api.td();this.pe("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.td().addCueRange(a.Os.We)}};
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)$Ta(this,a);else{b=this.api.td();var d=b===this.C?this.D:null;rX(this,!1);this.ea=a;null!=c&&this.V.start(c);b&&(this.D=d||b.getPlayerState(),j2a(b),this.C=b)}};
g.k.Yi=function(a){g.GP(a,128)&&lUa(this)};
g.k.isManifestless=function(){return oO(this.j.getVideoData())};
g.k.xa=function(){rX(this,!1);nUa(this);g.G.prototype.xa.call(this)};
g.k.pe=function(a,b){this.j.pe(new aN(a,b))};
var bUa=0;var oUa="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.x(tX,g.G);g.k=tX.prototype;g.k.get=function(a){qUa(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);qUa(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.mC)()+c);for(this.data.push(a);this.data.length>this.B;)(c=this.data.shift())&&uX(this,c,!0);sX(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&&(uX(this,c,b),g.Ib(this.data,function(d){return d.key===a}),sX(this))};
g.k.Tf=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())uX(this,c.value,a);this.data=[];sX(this)};
g.k.xa=function(){var a=this;g.G.prototype.xa.call(this);this.data.forEach(function(b){uX(a,b,!0)});
this.data=[]};g.x(vX,g.G);vX.prototype.TG=function(a){if(a)return this.u.get(a)};
vX.prototype.xa=function(){this.j.Tf();this.u.Tf();g.G.prototype.xa.call(this)};g.x(wX,g.nr);wX.prototype.ra=function(a){var b=g.Ia.apply(1,arguments);if(this.D.has(a))return this.D.get(a).push(b),!0;var c=!1;try{for(b=[b],this.D.set(a,b);b.length;)c=g.nr.prototype.ra.call.apply(g.nr.prototype.ra,[this,a].concat(g.qa(b.shift())))}finally{this.D.delete(a)}return c};g.x(sUa,g.G);sUa.prototype.xa=function(){g.G.prototype.xa.call(this);this.j=null;this.u&&this.u.disconnect()};g.mfb=Md(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var s4;s4={};g.xX=(s4.STOP_EVENT_PROPAGATION="html5-stop-propagation",s4.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",s4.IV_DRAWER_OPEN="ytp-iv-drawer-open",s4.MAIN_VIDEO="html5-main-video",s4.VIDEO_CONTAINER="html5-video-container",s4.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",s4.HOUSE_BRAND="house-brand",s4);g.x(vUa,g.X);g.k=vUa.prototype;g.k.Cs=function(){g.Tq(this.element,g.Ia.apply(0,arguments))};
g.k.Ij=function(){this.uc&&(this.uc.removeEventListener("focus",this.VO),g.pf(this.uc),this.uc=null)};
g.k.kM=function(){this.isDisposed();var a=this.app.W();a.Mm||this.Cs("tag-pool-enabled");a.K&&this.Cs(g.xX.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Cs("ytp-gvn"),this.element.style.backgroundColor="transparent");a.md&&(this.aM=g.ND("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
g.k.OE=function(a){g.BM(this.app.W());this.oH=!a;yX(this)};
g.k.resize=function(){if(this.uc){var a=this.fk();if(!a.isEmpty()){var b=!g.ye(a,this.nA.getSize()),c=AUa(this);b&&(this.nA.width=a.width,this.nA.height=a.height);a=this.app.W();(c||b||a.md)&&this.app.bb.ra("resize",this.getPlayerSize())}}};
g.k.vt=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.uc){var b=this.app.W();MC&&(this.uc.setAttribute("x-webkit-airplay","allow"),a.title?this.uc.setAttribute("title",a.title):this.uc.removeAttribute("title"));vza(a)||yua&&!window.MediaSource&&window.ManagedMediaSource?this.uc.setAttribute("disableremoteplayback",""):this.uc.removeAttribute("disableremoteplayback");this.uc.setAttribute("controlslist","nodownload");b.Br&&a.videoId&&(this.uc.poster=a.Kg("default.jpg"))}b=g.BO(a,"yt:bgcolor");this.Ny.style.backgroundColor=
b?b:"";this.xO=PA(g.BO(a,"yt:stretch"));this.yO=PA(g.BO(a,"yt:crop"),!0);g.Wq(this.element,"ytp-dni",a.Dd);this.resize()};
g.k.setGlobalCrop=function(a){this.nN=PA(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.nU=a;this.resize()};
g.k.Am=function(){};
g.k.getPlayerSize=function(){var a=this.app.W(),b=this.app.bb.isFullscreen();if(b&&yA())return new g.xe(window.outerWidth,window.outerHeight);if(b||a.Ko){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.xD&&this.xD.media===a||(this.xD=window.matchMedia(a));var c=this.xD&&this.xD.matches}if(c)return new g.xe(window.innerWidth,window.innerHeight)}else if(!isNaN(this.uC.width)&&!isNaN(this.uC.height))return this.uC.clone();return new g.xe(this.element.clientWidth,
this.element.clientHeight)};
g.k.fk=function(){var a=this.app.W().N("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.xL(this.app.W().experiments,"player_underlay_min_player_width");return a&&this.HP&&b.width>c?new g.xe(b.width*g.xL(this.app.W().experiments,"player_underlay_video_width_fraction"),b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.xO)?xUa(this):this.xO};
g.k.getVideoContentRect=function(a){var b=this.fk();a=yUa(this,b,this.getVideoAspectRatio(),a);return new g.Rn((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.EA=function(a){this.HP=a;this.resize()};
g.k.yH=function(){return this.LI};
g.k.onMutedAutoplayChange=function(){yX(this)};
g.k.setInternalSize=function(a){g.ye(this.uC,a)||(this.uC=a,this.resize())};
g.k.xa=function(){this.aM&&g.OD(this.aM);this.Ij();g.X.prototype.xa.call(this)};g.k=BUa.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.sH();c&&a.visualElement&&g.qQ(c,a.visualElement,b)};
g.k.xb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=Tra(c);a.visualElement=c;var f=g.sH(),h=g.rH();f&&h&&(g.Hz("combine_ve_grafts")?xQ(vQ(),c,h):g.Nz(g.jQ)(void 0,f,h,c));g.tb(b,function(){e.Ty(a)});
d&&this.u.add(a)};
g.k.ag=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.tb(b,function(){d.Ty(a)});
c&&this.u.add(a)};
g.k.Ty=function(a){this.elements.has(a);this.elements.delete(a);this.B.delete(a);this.j.delete(a);this.u.delete(a)};
g.k.zU=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,wQ(vQ(),a),CUa(this))};
g.k.gg=function(a,b){this.elements.has(a);b&&(a.visualElement=g.pH(b))};
g.k.rj=function(a){return this.elements.has(a)};DUa.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
DUa.prototype.getPlaybackRate=function(){return this.playbackRate};DX.prototype.seek=function(a,b){a!==this.j&&(this.seekCount=0);this.j=a;var c=this.videoTrack.u,d=this.audioTrack.u,e=this.audioTrack.pc,f=KUa(this,this.videoTrack,a,this.videoTrack.pc,b);b=KUa(this,this.audioTrack,this.policy.Je?a:f,e,b);a=Math.max(a,f,b);this.D=!0;this.Ua.isManifestless&&(IUa(this,this.videoTrack,c),IUa(this,this.audioTrack,d));return a};
DX.prototype.Xg=function(){return this.D};
DX.prototype.yQ=function(a){this.B=a};
var JUa=2/24;PUa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.mC)()};g.x(SUa,g.SG);g.k=SUa.prototype;
g.k.fP=function(a,b,c,d){if(this.C&&d){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.u,f=b.C,h=b.B,l=b.py);this.C.pP(a.Pa,a.startTime,this.u,d,e,f,c,l,h)}if(c){if(b&&!this.Ba.has(a.Pa)){c=a.startTime;d=[];for(e=0;e<b.j.length;e++)f=b.j[e],h=c,c=h+b.u[e],d.push({startTime:h,endTime:c,adCpn:f});this.Ba.set(a.Pa,d)}this.policy.pd&&(c=this.qa&&a.Pa===this.qa.Pa+1,this.qa=a,d=this.j&&a.Pa===this.j.Pa+1,d=this.j&&c&&d&&"stop"!==this.j.fh.event&&"predictStart"!==this.j.fh.event,e=a.fh||null,f=this.V.j.index.Gd()<=
a.Pa,h=this.Ua.isManifestless&&this.policy.Po,e?(this.j={fh:e,Pa:a.Pa,YC:!!b},f?LX(this,e,a.Pa):h&&(c?d?LX(this,e,a.Pa):"continue"===e.event||"stop"===e.event?VUa(this,a):LX(this,e,a.Pa):LX(this,e,a.Pa))):(d&&VUa(this,a),4===this.u&&MX(this,5,"qend")))}};
g.k.eP=function(a,b,c){var d=this.V.j.index.Gd()<=b;this.j={fh:a,Pa:b,YC:c};d&&LX(this,a,b)};
g.k.Nv=function(){this.C&&this.C.Nv()};
g.k.ya=function(a,b){this.Ca.ya(a,b)};
g.k.Or=function(a,b){var c=this.V.j.index.Lh(a),d;if(d=0<=c){var e;d=(null==(e=iX(b.jd,c,2))?void 0:e.Ms)||""}if(d)return b.xJ(a,c),gZa(this.Ca,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.nz=function(a){var b="",c=this.V.j.index.Lh(a);if(c=this.Ba.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.x(WUa,g.G);YUa.prototype.lI=function(a){var b=this;this.policy.Nx&&(a=new Set(a),a.size===this.Ba.size&&[].concat(g.qa(a)).every(function(c){return b.Ba.has(c)})||(this.V=-1,this.Ba=a,TX(this,this.u),this.Ya=!0))};
YUa.prototype.QA=function(a){var b=this.policy.ij;this.policy.ij=Eva(a,{},this.D);if(b!==this.policy.ij){TX(this,this.u);UX(this);var c,d;b>this.policy.ij&&(null==(c=this.B)?0:JK(c.info))&&(null==(d=this.nextVideo)||!JK(d.info))&&(this.ea=!0)}};lVa.prototype.Nr=function(a){this.timestampOffset=a};vVa.prototype.dispose=function(){this.qa=!0};
vVa.prototype.isDisposed=function(){return this.qa};
g.x(cY,Error);KVa.prototype.skip=function(a){this.offset+=a};
KVa.prototype.Dq=function(){return this.offset};g.k=OVa.prototype;g.k.uV=function(){return this.u};
g.k.Qk=function(){this.u=[];gY(this);NVa(this)};
g.k.Nw=function(a){this.Va=this.u.shift().info;a.info.equals(this.Va)};
g.k.jn=function(){return g.kn(this.u,function(a){return a.info})};
g.k.Ui=function(){return!!this.J.info.audio};
g.k.getDuration=function(){return this.J.index.jt()};var fWa=0;jY.prototype.Do=function(){var a={rn:this.requestNumber,rt:(this.now()-this.j).toFixed(),lb:this.u,stall:(1E3*this.B).toFixed(),ht:(this.Ma-this.j).toFixed(),elt:(this.D-this.j).toFixed(),elb:this.V};this.url&&xLa(a,this.url);return a};
jY.prototype.now=function(){return(0,g.mC)()};g.x(nY,jY);g.k=nY.prototype;g.k.Do=function(){var a=jY.prototype.Do.call(this);a.pb=this.pC;a.pt=(1E3*this.qa).toFixed();return a};
g.k.Vs=function(){this.Fa||(this.Fa=this.Qb.Vs?this.Qb.Vs():1);return this.Fa};
g.k.BH=function(){return this.bl?1!==this.Vs():!1};
g.k.yr=function(){this.Ma=this.now();this.Qb.yr()};
g.k.Ip=function(a,b){kY(this,a,b);50>a-this.C&&this.pm()||lWa(this,a,b);this.Qb.Ip(a,b)};
g.k.Nn=function(){this.Qb.Nn()};
g.k.GO=function(a,b,c){if(!this.Va){this.Va=!0;if(!this.Sq){kY(this,a,b);lWa(this,a,b);var d=this.Vs();if(2===d&&c)oY(this,this.u/c,this.u);else if(2===d||1===d)c=(a-this.j)/1E3,(c<=this.policy.j||!this.policy.j)&&!this.eb&&this.pm()&&oY(this,c,b),this.pm()&&oM(this.Ae,b,this.B);nM(this.Ae,(a-this.j)/1E3||.05,this.u,this.qa,this.Sk)}mY(this)}};
g.k.qX=function(a){if(!this.Sq){kY(this,a,1024*this.Ba);var b=(a-this.j)/1E3;2!==this.Vs()&&(this.pm()?(this.B+=(a-this.C)/1E3,oM(this.Ae,this.u,this.B)):(kWa(this)||this.Sq||mM(this.Ae,b),this.D=a,this.V=0));nM(this.Ae,b,this.u,this.qa,this.Sk);a=(a-this.C)/1E3;qM(this.Ae,a,0);this.Lp(a,0)}};
g.k.pm=function(){return jWa(this,this.u)};
g.k.vV=function(){this.bl&&pWa(this,this.now());return this.oa};
g.k.Vv=function(){return this.u>this.zI&&jWa(this,this.u)};
g.k.eN=function(){return this.Ga};
g.k.aQ=function(a){a=void 0===a?this.now():a;if(this.bl){pWa(this,a);if(this.Fa?this.BH():this.J!==this.K){var b=this.K;if(a<b){this.Ga=this.K;return}}else b=this.J;b=Math.max(b,this.oa)}else b=this.oa;var c=this.pC-this.u;0>c&&(c=0);c=1E3*(c*this.snapshot.stall+c/this.snapshot.byterate);this.Ga=c=this.pm()?c+a:c+Math.max(a,b)};
g.k.QG=function(){return this.now()-this.D};
g.k.fN=function(){return 1E3*(this.u-this.V)/this.QG()||0};
g.k.wV=function(){return this.D};pY.prototype.feed=function(a){yI(this.j,a);this.nf()};
pY.prototype.nf=function(){if(this.C){if(!this.j.totalLength)return;var a=this.j.split(this.B-this.u),b=a.aD;a=a.yl;this.Qb.kP(this.C,b,this.u,this.B);this.u+=b.totalLength;this.j=a;this.u===this.B&&(this.C=this.B=this.u=void 0)}for(;;){var c=0;a=g.u(qWa(this.j,c));b=a.next().value;c=a.next().value;c=g.u(qWa(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.Qb.kP&&c+1<=this.j.totalLength))break;c=this.j.split(c).yl;this.Qb.kP(b,c,0,a)&&(this.C=
b,this.u=c.totalLength,this.B=a,this.j=new xI([]));break}a=this.j.split(c).yl.split(a);c=a.yl;this.Qb.gA(b,a.aD);this.j=c}};
pY.prototype.dispose=function(){this.j=new xI};g.k=qY.prototype;g.k.KM=function(){return 0};
g.k.UG=function(){return null};
g.k.jV=function(){return null};
g.k.Ft=function(){return 1<=this.state};
g.k.isComplete=function(){return 3<=this.state};
g.k.Bn=function(){return 5===this.state};
g.k.onStateChange=function(){};
g.k.Ac=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
g.k.Zz=function(a){a&&this.state<a?this.Ac(a):this.callback&&this.callback(this,this.state)};
g.k.isDisposed=function(){return-1===this.state};
g.k.Td=function(){var a="";this.info.gb.forEach(function(b){a+=b.Td()+"."});
return a.slice(0,-1)};
g.k.dispose=function(){this.isDisposed()||(this.info.gb[0].j.C=!1,this.Ac(-1))};
g.k.iN=function(){return 0};g.k=sWa.prototype;g.k.cA=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.Qb.yr()};
g.k.onError=function(){this.B=!0;this.onDone()};
g.k.onDone=function(){this.isDisposed||this.Qb.Nn()};
g.k.Pv=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.AC=function(){return+this.getResponseHeader("content-length")};
g.k.hm=function(){return this.u};
g.k.uE=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.k.Pq=function(){return 0<this.j.totalLength};
g.k.Mw=function(){var a=this.j;this.j=new xI;return a};
g.k.GI=function(){return this.j};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Ur=function(){return!0};
g.k.VI=function(){return this.B};
g.k.Mf=function(){return""};g.k=uWa.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
g.k.abort=function(){};
g.k.Pv=function(){return!0};
g.k.AC=function(){return this.range.length};
g.k.hm=function(){return this.loaded};
g.k.uE=function(){return!!this.loaded};
g.k.Pq=function(){return!!this.u.totalLength};
g.k.Mw=function(){var a=this.u;this.u=new xI;return a};
g.k.GI=function(){return this.u};
g.k.Ur=function(){return!0};
g.k.VI=function(){return!!this.error};
g.k.Mf=function(){return this.error};g.k=wWa.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.ea);this.C&&(b.signal=this.C.signal);a=new Request(a,b);fetch(a).then(this.qa,this.onError).then(void 0,TB)};
g.k.onDone=function(){this.isDisposed()||this.Qb.Nn()};
g.k.getResponseHeader=function(a){return this.D?this.D.get(a):null};
g.k.Pv=function(){return!!this.D};
g.k.hm=function(){return this.u};
g.k.AC=function(){return+this.getResponseHeader("content-length")};
g.k.uE=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.k.Pq=function(){return!!this.j.totalLength};
g.k.Mw=function(){var a=this.j;this.j=new xI;return a};
g.k.GI=function(){return this.j};
g.k.isDisposed=function(){return this.J};
g.k.abort=function(){this.B&&this.B.cancel().catch(function(){});
this.C&&this.C.abort();this.J=!0};
g.k.Ur=function(){return!0};
g.k.VI=function(){return this.K};
g.k.Mf=function(){return this.errorMessage};g.k=xWa.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.j=!0;this.Qb.Nn()}};
g.k.cA=function(){2===this.xhr.readyState&&this.Qb.yr()};
g.k.cf=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.u=a.loaded),this.Qb.Ip((0,g.mC)(),a.loaded))};
g.k.Pv=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.tG(Error("Could not read XHR header "+a)),""}};
g.k.AC=function(){return+this.getResponseHeader("content-length")};
g.k.hm=function(){return this.u};
g.k.uE=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.u};
g.k.Pq=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.k.Mw=function(){var a=this.response;this.response=void 0;return new xI([new Uint8Array(a)])};
g.k.GI=function(){return new xI([new Uint8Array(this.response)])};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Ur=function(){return!1};
g.k.VI=function(){return!1};
g.k.Mf=function(){return""};g.x(rY,g.G);g.k=rY.prototype;g.k.W9=function(){if(!this.isDisposed()){var a=(0,g.mC)(),b=!1;if(this.timing.pm()){if(this.J)return;a=this.timing.eN();this.timing.aQ();this.timing.eN()-a>=.8*this.policy.od?(this.u++,b=this.u>=this.policy.Nm):this.u=0}else b=a-this.timing.vV(),this.policy.sj&&0<b&&(this.u+=1),a=Vta(sY(this),this.policy,!1)*this.policy.Km,b=b>1E3*a;0<this.u&&this.Qb.NV();b?this.OA(!1):this.j.start()}};
g.k.OA=function(a){this.C=!0;a&&(a=sY(this),a.B+=1);this.Qb.jy();this.lastError="net.timeout";tY(this)};
g.k.canRetry=function(a){var b=sY(this);a=a?3:this.policy.Gh;return b.timedOut<this.policy.Br&&b.j<a};
g.k.tf=function(){return this.lastError};
g.k.Hv=function(){return this.u};
g.k.dispose=function(){this.j.dispose();g.G.prototype.dispose.call(this)};g.x(FX,qY);g.k=FX.prototype;g.k.Kv=function(){return this.timing.requestNumber};
g.k.kf=function(){return this.Ue.kf()};
g.k.Aq=function(){var a=CWa(this.Nd);if(this.Nj){var b=this.Nj,c=b.j.totalLength;a.ulen=c;0<c&&(b=DI(b.j,0),a.ubyte=b,1===c&&0===b&&(a.b248180278=!0))}this.Yg&&(a.rc=this.policy.Cl?this.Yg:this.Yg.toString());this.policy.wb&&this.OZ&&(a.tr=this.OZ);a.itag=this.info.gb[0].j.info.itag;a.ml=""+ +this.info.gb[0].j.zg();a.sq=""+this.info.gb[0].Pa;this.Ue&&(a.ifi=""+ +tI(this.info.j.B));410!==this.Yg&&500!==this.Yg&&503!==this.Yg||(a.fmt_unav="true");var d;(c=this.errorMessage||(null==(d=this.xhr)?void 0:
d.Mf()))&&(a.msg=c);this.WE&&(a.smb="1");this.info.fp()&&(a.sdai="1");return a};
g.k.fV=function(){return mWa(this.timing)};
g.k.Mf=function(){return this.xhr.Mf()||""};
g.k.Vv=function(){return this.isComplete()||this.timing.Vv()};
g.k.Ip=function(){!this.isDisposed()&&this.xhr&&(this.Yg=this.xhr.status,this.ll()?this.Zz(2):!this.YV&&this.Vv()&&(this.Zz(),this.YV=!0))};
g.k.yr=function(){if(!this.isDisposed()&&this.xhr){if(!this.Jy&&this.xhr.Pv()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Jy=((0,g.mC)()-a)/1E3}this.xhr.Pv()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.qF&&!zva()&&g.rB("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.vp=a||this.vp;this.Mq=b||this.Mq}};
g.k.Nn=function(){var a=this.xhr;if(!this.isDisposed()&&a){this.policy.useUmp||this.Nd.j.stop();this.Yg=a.status;a=this.wN(a);if(this.policy.wb){var b;null==(b=this.AD)||b.stop()}5===a?tY(this.Nd):this.Ac(a);this.policy.useUmp&&this.Nd.j.stop()}};
g.k.wN=function(a){if(BWa(this.Nd,this.xhr))return 5;var b="";if(UWa(this)){var c=a.GI();c.totalLength<=this.policy.Mm&&(b=CI(c),b=GI(b),b=JG(b)?b:"")}if(b)return NJ(sY(this.Nd)),this.info.Xk(this.Ue,b),3;b=a.hm();if(this.Nj){if(this.vn(!0),!this.ZZ){if(this.a_)return NJ(sY(this.Nd)),3;this.Nd.lastError="net.closed";return 5}}else{if((c=this.info.C)&&c!==b||a.VI())return this.Nd.lastError="net.closed",5;this.vn(!0)}c=rWa(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=rWa(this)?a.getResponseHeader("X-Bandwidth-Est3"):
0)this.eZ=!0,this.policy.yD&&(c=a);AWa(this.Nd,b,c?Number(c):0);return 4};
g.k.canRetry=function(){this.isDisposed();return this.Nd.canRetry(!!this.info.fp())};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.Nl?this.jy():mY(this.timing))};
g.k.OA=function(a){this.Nd.OA(a)};
g.k.NV=function(){this.callback&&this.callback(this,this.state)};
g.k.Hv=function(){return this.Nd.Hv()};
g.k.dispose=function(){qY.prototype.dispose.call(this);this.Nd.dispose();var a;null==(a=this.AD)||a.dispose();this.policy.Nl||this.jy()};
g.k.jy=function(){this.xhr&&this.xhr.abort();mY(this.timing)};
g.k.Bk=function(){if(!this.gE().length)return[];this.yN=!0;return this.xf.Bk()};
g.k.ll=function(){if(1>this.state)return!1;if(this.xf&&this.xf.gf.length)return!0;var a;return(null==(a=this.xhr)?0:a.Pq())?!0:!1};
g.k.gE=function(){this.vn(!1);return this.xf?this.xf.gE():[]};
g.k.vn=function(a){try{if(a||this.xhr.Pv()&&this.xhr.Pq()&&!UWa(this)&&!this.iA){if(!this.xf){var b;this.xhr.Ur()||this.Nj?b=this.info.C:b=this.xhr.hm();this.xf=new FW(this.policy,this.info.gb,b)}this.xhr.Pq()&&(this.Nj?this.Nj.feed(this.xhr.Mw()):GW(this.xf,this.xhr.Mw(),a&&!this.xhr.Pq()))}}catch(c){this.Nj?TWa(this,c):g.tG(c)}};
g.k.gA=function(a,b){switch(a){case 21:a=b.split(1).yl;GW(this.xf,a,!1);if(this.policy.wb){var c;null==(c=this.AD)||c.stop()}break;case 22:this.ZZ=!0;GW(this.xf,new xI([]),!0);break;case 43:if(c=wN(new rN(b),1))this.info.Xk(this.Ue,c),this.a_=!0;break;case 45:a=$Ma(new rN(b));c=a.kJ;a=a.lJ;c&&a&&(this.aG=c/a);break;case 44:this.lQ=MWa(new rN(b));break;case 53:this.policy.wb&&(c=KWa(new rN(b)).y6)&&(this.AD||(this.AD=new g.Kq(this.j6,c,this)),this.AD.start());break;case 60:this.Iz=RMa(new rN(b));break;
case 58:this.policy.Fd&&(c=uN(new rN(b),1))&&(this.vu=c)}};
g.k.kP=function(a,b,c){if(21!==a)return!1;if(!c){if(1===b.totalLength)return!0;b=b.split(1).yl}GW(this.xf,b,!1);return!0};
g.k.hm=function(){return this.xhr.hm()};
g.k.KM=function(){return this.Jy};
g.k.Vs=function(){return this.BH()?2:1};
g.k.BH=function(){if(!this.policy.K.cj||!isNaN(this.info.hh)&&0<this.info.hh)return!1;if(!this.xhr.Pv())return!0;if(this.Nj)var a=!this.info.C;else this.xhr.AC()?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.gb[0].Pa?!1:!0};
g.k.iN=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.k.UG=function(){this.xhr&&(this.vp=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.vp};
g.k.jV=function(){this.xhr&&(this.Mq=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Mq};
g.k.tf=function(){return this.Nd.tf()};
g.k.j6=function(){!this.isDisposed()&&this.xhr&&(this.OZ="heartbeat",this.OA(!1))};g.x(EX,qY);g.k=EX.prototype;g.k.onStateChange=function(){this.isDisposed()&&(JW(this.Cg,this.formatId),this.j.dispose())};
g.k.Aq=function(){var a=HSa(this.Cg,this.formatId),b;var c=(null==(b=this.Cg.Xc.get(this.formatId))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.Cg.Xc.get(this.formatId))?void 0:d.Cy)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:ISa(this.Cg,this.formatId),isEnded:this.Cg.ji(this.formatId)}};
g.k.fV=function(){return 0};
g.k.Vv=function(){return!0};
g.k.Bk=function(){return this.Cg.Bk(this.formatId)};
g.k.gE=function(){return[]};
g.k.ll=function(){return this.Cg.ll(this.formatId)};
g.k.tf=function(){return this.lastError};
g.k.Hv=function(){return 0};g.k=VWa.prototype;g.k.Nw=function(a){this.C.Nw(a);var b;null!=(b=this.V)&&(b.j=pVa(b,b.Be,b.hA,b.j,a),b.B=a);this.Wb=Math.max(this.Wb,a.info.j.info.Wb||0)};
g.k.getDuration=function(){return this.j.index.jt()};
g.k.Qk=function(){GX(this);this.C.Qk()};
g.k.ZM=function(){return this.C};
g.k.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.gb[0].Pa:!1};
g.k.Nr=function(a){var b;null==(b=this.V)||b.Nr(a)};g.x(GY,g.G);GY.prototype.UN=function(a,b){if(!FY(a)||!a.j.zg())return!1;var c=Math.min(15,.5*IY(this.Ca,a,!0));return this.B.Ya||iXa(a)||b<=c||this.B.ea};
GY.prototype.Ga=function(){if(!(15<this.Ba++)){var a,b,c=(null==(a=this.videoTrack.u)?void 0:a.j)||(null==(b=this.audioTrack.u)?void 0:b.j);if(c){a=Math.ceil(Math.min(1E5,.1*rM(this.schedule)));HY(this,new IJ([new AJ(6,c,new wJ(0,a-1),"goodputProbe",0)]));var d;null==(d=this.K)||d.start()}}};
GY.prototype.ut=function(a){var b=a.info.gb[0].j,c=a.tf();if(sI(b.u.j)){var d=g.hg(a.Mf(),3);this.Ca.ya("dldbrerr",{em:d||"none"})}d=a.info.gb[0].Pa;var e=UUa(this.j,a.info.gb[0].C,d);"net.badstatus"===c&&(this.J+=1);if(a.canRetry()){if(!(3<=a.info.j.u&&this.u&&a.info.fp()&&"net.badstatus"===a.tf()&&this.u.ut(e,d))){d=(b.info.video&&1<b.u.u||410===a.Yg||500===a.Yg||503===a.Yg)&&!(0<RX(this.B.oa).size)&&!sI(b.u.j);e=a.Aq();var f=b.info.video?this.videoTrack:this.audioTrack;d&&(e.stun="1");this.Ca.handleError(c,
e);this.isDisposed()||(d&&WX(this.B,b),DY(f,a),this.Ca.nf())}}else b=1,this.u&&a.info.fp()&&"net.badstatus"===a.tf()&&this.u.ut(e,d)&&(b=0),this.Ua.isLive&&"net.badstatus"===a.tf()&&this.J<=2*this.policy.Gh?(qva(this.Ua),this.Ua.Re||this.Ua.isPremiere?this.Ca.va.seekTo(0,{ke:"badStatusWorkaround"}):this.Ua.B?this.Ca.va.seekTo(this.Ua.Eb,{ke:"badStatusWorkaround",iq:!0}):hZ(this.Ca)):this.Ca.handleError(c,a.Aq(),b)};
GY.prototype.xa=function(){g.G.prototype.xa.call(this)};
var rXa=2/24;g.x(LY,g.G);LY.prototype.kI=function(a,b){var c;var d="m"===(null==(c=this.j)?void 0:c.reason)?"m":this.j&&BXa(this.j)?this.j.reason:"a";this.Ca.kI(new PX(a,d));KY(b,a)};
LY.prototype.aZ=function(a){for(var b=g.u(this.D),c=b.next();!c.done;c=b.next())if(c=c.value,c.id===a)return this.B=[c],this.J=this.Ua.j[a],new PX(this.J,"m");this.B=[];return null};MY.prototype.gA=function(a,b){switch(a){case 20:a=new rN(b);a={bW:uN(a,1),videoId:wN(a,2),itag:uN(a,3),hk:uN(a,4),xtags:wN(a,5),xA:uN(a,6),Cn:Wxa(a,8),ju:uN(a,9),mbb:uN(a,10),startMs:uN(a,11),durationMs:uN(a,12),Gr:uN(a,14),timeRange:xN(a,15,bNa),Jj:uN(a,16),JO:uN(a,17),clipId:wN(a,1E3)};this.dP(a);break;case 21:this.bP(b,!1);break;case 22:this.xr(b);break;default:this.TO(a,b)}};
MY.prototype.dP=function(){};
MY.prototype.TO=function(){};g.x(NY,jY);g.k=NY.prototype;g.k.yr=function(){this.Ma=this.now();this.Qb.yr()};
g.k.Nn=function(){this.Qb.Nn()};
g.k.Ip=function(a,b){kY(this,a,b);50>a-this.C&&this.pm()||GXa(this,a,b);this.Qb.Ip(a,b)};
g.k.GO=function(a,b){kY(this,a,b);GXa(this,a,b);this.K&&(this.pm()&&oM(this.Ae,this.J,this.B),nM(this.Ae,this.qa,this.J,0,!0))};
g.k.qX=function(a){kY(this,a,1024*this.Ba);var b=(a-this.C)/1E3;qM(this.Ae,b,0);this.Lp(b,0);this.K&&(this.pm()?(this.B+=(a-this.C)/1E3,oM(this.Ae,this.J,this.B)):mM(this.Ae,(a-this.j)/1E3),nM(this.Ae,this.qa,this.J,0,!0))};
g.k.XD=function(a){a=a.GL||2147483647;2!==(a&2)&&(this.oa=!1);1===(a&1)&&(this.K=!0)};
g.k.QD=function(a){a=a.GL||2147483647;2===(a&2)&&(this.oa=!1);1===(a&1)&&(this.K=!1)};
g.k.wV=function(){return this.D};
g.k.QG=function(){var a=this.oa?this.now()-this.C:0;return Math.max(1E3*this.qa+a,1)};
g.k.fN=function(){return 1E3*this.J/this.QG()};
g.k.pm=function(){return 0<this.u};
g.k.Do=function(){var a=jY.prototype.Do.call(this);a.rbw=this.fN();a.rbe=+this.oa;a.gbe=+this.K;return a};
g.k.aQ=function(){};
g.k.eN=function(){return NaN};
g.k.vV=function(){return this.j+1E3*this.snapshot.delay};var t4={},dYa=(t4["1h"]=8,t4["9h"]=4,t4["1"]=8,t4["9"]=4,t4.h=2,t4),u4={},eYa=(u4.o=3,u4.O=3,u4.so=3,u4.a=1,u4.ah=1,u4.A=1,u4.m=1,u4.M=1,u4.sa=1,u4.mac3=7,u4.MAC3=7,u4.meac3=5,u4.MEAC3=5,u4),v4={},fYa=(v4.o=0,v4.O=0,v4.a=0,v4.ah=0,v4.A=0,v4.m=1,v4.M=1,v4.mac3=1,v4.MAC3=1,v4.meac3=1,v4.MEAC3=1,v4.so=4,v4.sa=4,v4);var w4={},KXa=(w4["140"]={numChannels:2},w4["251"]={audioSampleRate:48E3,numChannels:2},w4["380"]={numChannels:6},w4["328"]={numChannels:6},w4),x4={},HXa=(x4["1"]='video/mp4; codecs="av01.0.08M.08"',x4["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',x4["9"]='video/webm; codecs="vp9"',x4["("]='video/webm; codecs="vp9"',x4["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',x4.h='video/mp4; codecs="avc1.64001e"',x4.H='video/mp4; codecs="avc1.64001e"',x4.o='audio/webm; codecs="opus"',
x4.a='audio/mp4; codecs="mp4a.40.2"',x4.mac3='audio/mp4; codecs="ac-3"; channels=6',x4.meac3='audio/mp4; codecs="ec-3"; channels=6',x4),y4={},IXa=(y4["337"]={width:3840,height:2160,bitrate:3E7,fps:30},y4["336"]={width:2560,height:1440,bitrate:15E6,fps:30},y4["335"]={width:1920,height:1080,bitrate:75E5,fps:30},y4["702"]={width:7680,height:4320,bitrate:4E7,fps:60},y4["701"]={width:3840,height:2160,bitrate:2E7,fps:60},y4["700"]={width:2560,height:1440,bitrate:1E7,fps:60},y4["412"]={width:1920,height:1080,
bitrate:85E5,fps:60,cryptoblockformat:"subsample"},y4["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},y4["315"]={width:3840,height:2160,bitrate:2E7,fps:60},y4["308"]={width:2560,height:1440,bitrate:1E7,fps:60},y4["303"]={width:1920,height:1080,bitrate:5E6,fps:60},y4["302"]={width:1280,height:720,bitrate:25E5,fps:60},y4["299"]={width:1920,height:1080,bitrate:75E5,fps:60},y4["298"]={width:1280,height:720,bitrate:35E5,fps:60},y4["571"]={width:7680,height:4320,bitrate:3E7,
fps:60},y4["401"]={width:3840,height:2160,bitrate:15E6,fps:60},y4["400"]={width:2560,height:1440,bitrate:75E5,fps:60},y4["399"]={width:1920,height:1080,bitrate:2E6,fps:60},y4["398"]={width:1280,height:720,bitrate:1E6,fps:60},y4["313"]={width:3840,height:2160,bitrate:8E6,fps:30},y4["271"]={width:2560,height:1440,bitrate:4E6,fps:30},y4["248"]={width:1920,height:1080,bitrate:2E6,fps:30},y4["247"]={width:1280,height:720,bitrate:15E5,fps:30},y4["137"]={width:1920,height:1080,bitrate:4E6,fps:30},y4["136"]=
{width:1280,height:720,bitrate:3E6,fps:30},y4);var OY,RXa=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["571","401","400","399","398"],["313","271","248","247"],["137","136"]],SXa=["412","359"],TXa=[["140"],["251"],["380"],["328"]],z4={},PXa=(z4["303"]=["411"],z4["299"]=["385"],z4["302"]=["409","410"],z4["298"]=["384","376"],z4["248"]=["360"],z4["247"]="274 357 358 317 273 318 280 279".split(" "),z4["136"]="145 224 225 144 222 223 143 142".split(" "),z4["140"]=["149"],z4["380"]=["381"],z4["328"]=["329"],z4),
A4={},OXa=(A4["398"]=["397","396","395","394"],A4["247"]=["244","243","242"],A4["136"]=["135","134","133","160"],A4["251"]=["250"],A4),B4={},MXa=(B4["133"]=240,B4["134"]=360,B4["135"]=480,B4["136"]=720,B4["137"]=1080,B4["242"]=240,B4["243"]=360,B4["244"]=480,B4["247"]=720,B4["248"]=1080,B4["298"]=720,B4["299"]=1080,B4["302"]=720,B4["303"]=1080,B4["395"]=240,B4["396"]=360,B4["397"]=480,B4["398"]=720,B4["399"]=1080,B4);g.x(ZXa,MY);g.k=ZXa.prototype;g.k.TO=function(a,b){switch(a){case 35:this.PD(b);break;case 44:this.TD(b);break;case 43:this.nP(b);break;case 53:this.lP(b);break;case 55:(a={timeline:xN(new rN(b),1,WXa)},a.timeline)&&a.timeline.NZ&&this.Qb.ZD(a.timeline.NZ,a.timeline.w$);break;case 42:this.ND(b);break;case 45:this.VD(b);break;case 59:this.SD(b);break;case 51:this.WD(b);break;case 49:this.XD(b);break;case 50:this.QD(b);break;case 47:this.UD(b)}};
g.k.WD=function(a){a=new rN(a);a={fdb:zN(a,1,HWa),edb:zN(a,2,HWa)};this.Qb.WD(a)};
g.k.SD=function(a){var b=new rN(a);a=yN(b,1);var c=yN(b,2);b=yN(b,3);this.Qb.SD(a,c,b)};
g.k.VD=function(a){a=$Ma(new rN(a));this.Qb.VD(a)};
g.k.UD=function(a){a=AN(a,gNa);this.Qb.UD(a)};
g.k.ND=function(a){a=new rN(a);a={videoId:wN(a,1),formatId:xN(a,2,HWa),endTimeMs:uN(a,3),qbb:uN(a,4),mimeType:wN(a,5),jW:xN(a,6,DWa),indexRange:xN(a,7,DWa),DM:xN(a,8,RWa)};this.Qb.ND(a)};
g.k.PD=function(a){a=new rN(a);a={targetAudioReadaheadMs:uN(a,1),targetVideoReadaheadMs:uN(a,2),backoffTimeMs:uN(a,4),playbackCookie:vN(a,7)};this.Qb.PD(a)};
g.k.lP=function(a){a=KWa(new rN(a));this.Qb.lP(a)};
g.k.TD=function(a){a=MWa(new rN(a));this.Qb.TD(a)};
g.k.nP=function(a){a={redirectUrl:wN(new rN(a),1)};this.Qb.nP(a)};
g.k.bP=function(a){var b=DI(a,0);if(1!==a.totalLength&&(a=a.split(1).yl,b=this.u[b]||null)){var c=this.Qb;OSa(c.Cg,b,a);ZY(c.Qb,c)}};
g.k.xr=function(a){a=DI(a,0);(a=this.u[a]||null)&&this.Qb.xr(a)};
g.k.dP=function(a){var b=a.bW,c=a.Cn,d=a.xA,e=a.JO,f=a.Jj,h=a.ju,l=a.startMs,m=a.durationMs,n=a.Gr,p=a.clipId,q=FXa(a);a=meb.has(GK[""+a.itag]);this.u[b]=q;this.Qb.eA(q,a,{Cn:!!c,xA:null!=d?d:-1,ju:null!=h?h:-1,startMs:null!=l?l:-1,durationMs:null!=m?m:-1,Gr:n,JO:e,Jj:f},p)};
g.k.XD=function(a){a={GL:uN(new rN(a),1)};this.Qb.XD(a)};
g.k.QD=function(a){a={GL:uN(new rN(a),1)};this.Qb.QD(a)};g.x($Xa,g.G);g.k=$Xa.prototype;g.k.Ip=function(){!this.isDisposed()&&this.xhr&&this.vn()};
g.k.yr=function(){};
g.k.Nn=function(){if(!this.isDisposed()&&this.xhr){var a=this.wN();5===a?tY(this.Nd):this.Ac(a);this.Nd.j.stop();var b;null==(b=this.CE)||b.stop()}};
g.k.wN=function(){if(BWa(this.Nd,this.xhr,this.info.Xv()))return 5;this.vn();if(this.WY)return 3;AWa(this.Nd,this.xhr.hm(),0);return 4};
g.k.vn=function(){var a=this.xhr;a.Pq()&&(a=a.Mw(),this.Nj.feed(a))};
g.k.gA=function(a,b){this.f$.gA(a,b)};
g.k.PD=function(a){this.Qb.PD(a)};
g.k.lP=function(a){if(this.policy.enableServerDrivenRequestCancellation){var b;null==(b=this.CE)||b.dispose();this.bQ=a;a.pY&&(this.CE=new g.Kq(this.bX,a.pY,this));this.bX()}};
g.k.bX=function(){var a;if(null!=(a=this.bQ)&&a.items){var b;null==(b=this.CE)||b.start();if(this.yf.pm()&&(b=this.yf.QG(),a=this.yf.fN(),b=aYa(this,b),!(a>b.aI||0<b.AO&&this.info.PM()>b.AO))){this.cQ=(0,g.mC)();var c;null==(c=this.CE)||c.stop();this.Nd.OA(!1)}}};
g.k.TD=function(a){this.Qb.TD(a)};
g.k.nP=function(a){this.WY=!0;this.info.j.Xk(this.Ue,a.redirectUrl)};
g.k.XD=function(a){this.yf instanceof NY&&this.yf.XD(a)};
g.k.QD=function(a){this.yf instanceof NY&&this.yf.QD(a)};
g.k.ZD=function(a,b){this.Qb.ZD(a,b)};
g.k.ND=function(a){if(this.policy.C){var b=a.videoId,c=a.formatId,d=FXa({videoId:b,itag:c.itag,hk:c.hk,xtags:c.xtags}),e,f,h=new wJ((null==(e=a.jW)?void 0:e.first)||0,(null==(f=a.jW)?void 0:f.DW)||0),l,m;e=new wJ((null==(l=a.indexRange)?void 0:l.first)||0,(null==(m=a.indexRange)?void 0:m.DW)||0);this.Ua.K.get(d)||(d=a.DM||{},d.mimeType=a.mimeType,d.itag=c.itag,d.lastModified=""+(c.hk||0),d.xtags=c.xtags,a=this.Ua,c=oL(""),d=nL(d,null),lL(a,new AK(c,d,h,e)));this.policy.C&&this.Qb.ND(b)}};
g.k.VD=function(a){a.kJ&&a.lJ&&this.Qb.VD(a)};
g.k.SD=function(a,b,c){this.Qb.SD(a,b,c)};
g.k.WD=function(a){this.policy.Ll&&this.Qb.WD(a)};
g.k.UD=function(a){this.Qb.UD(a,this.Kv())};
g.k.canRetry=function(){this.isDisposed();return this.Nd.canRetry(!1)};
g.k.dispose=function(){if(!this.isDisposed()){g.G.prototype.dispose.call(this);this.Nd.dispose();var a;null==(a=this.CE)||a.dispose();this.Ac(-1);this.policy.xc&&this.jy()}};
g.k.Ac=function(a){this.state=a;ZY(this.Qb,this)};
g.k.Xv=function(){return this.info.Xv()};
g.k.eA=function(a,b,c,d){d&&(this.clipId=d);this.Cg.eA(a,b,c,d);this.policy.Vf&&(this.Cg.Xc.get(a).TF=!0)};
g.k.xr=function(a){this.Cg.xr(a);ZY(this.Qb,this)};
g.k.Bk=function(a){return this.Cg.Bk(a)};
g.k.jn=function(a){return this.Cg.jn(a)};
g.k.ll=function(a){return this.Cg.ll(a)};
g.k.zq=function(){return this.Cg.zq()};
g.k.Vs=function(){return 1};
g.k.Kv=function(){return this.yf.requestNumber};
g.k.eV=function(){return this.clipId};
g.k.tX=function(){this.jy()};
g.k.jy=function(){mY(this.yf);var a;null==(a=this.xhr)||a.abort()};
g.k.isComplete=function(){return 3<=this.state};
g.k.wW=function(){return 3===this.state};
g.k.Bn=function(){return 5===this.state};
g.k.XN=function(){return 4===this.state};
g.k.ZV=function(){return this.XN()};
g.k.Ft=function(){return 1<=this.state};
g.k.Hv=function(){return 0};
g.k.dV=function(){return this.info.data.JL};
g.k.NV=function(){};
g.k.tf=function(){return this.Nd.tf()};
g.k.Aq=function(){var a=CWa(this.Nd);Object.assign(a,bYa(this.info));a.req="sabr";a.rn=this.Kv();var b;if(null==(b=this.xhr)?0:b.status)a.rc=this.policy.Cl?this.xhr.status:this.xhr.status.toString();var c;(b=null==(c=this.xhr)?void 0:c.Mf())&&(a.msg=b);this.cQ&&(c=aYa(this,this.cQ-this.yf.wV()),a.letm=c.U5,a.mrbps=c.aI,a.mram=c.AO);return a};var oYa={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};PY.prototype.Xv=function(){return 1===this.requestType};
PY.prototype.PM=function(){var a;return(null==(a=this.Qb)?void 0:a.PM())||0};g.x(QY,g.G);QY.prototype.encrypt=function(a){(0,g.mC)();if(this.u)var b=this.u;else this.B?(b=new hM(this.B,this.j.j),g.H(this,b),this.u=b):this.u=new gM(this.j.j),b=this.u;return b.encrypt(a,this.iv)};
QY.prototype.decrypt=function(a,b){(0,g.mC)();return(new gM(this.j.j)).decrypt(a,b)};qYa.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.Ha(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.u=!0;b.il.hd("omd_s");c=new Uint8Array(16);ZL()?d=new fM(a):e=new gM(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ka(4);break}f=b.j.shift();if(!d){h=e.decrypt(CI(f.buffer),c);m.Ka(5);break}return g.z(m,d.decrypt(CI(f.buffer),c),6);case 6:h=m.u;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 xI([l]);var p=
b.il.Pd,q=f.videoId,t=f.OQ,v;null==(v=RY(p,q))||OSa(v,t,n);p.notifySubscribers(q);m.Ka(2);break;case 4:b.il.N("html5_remove_deprecated_ticks")||b.il.hd("omdf"),b.il.hd("omd_c"),rYa(b),b.u=!1,b.il.cP(),g.xa(m)}})};var BYa=!!Uint8Array.prototype.copyWithin,SY=[],sYa=[],vYa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],UY=[],TY=[],VY=[],tYa=[];g.x(DYa,MY);g.k=DYa.prototype;g.k.cP=function(){this.Pd.cP()};
g.k.TO=function(a,b){switch(a){case 10:var c=AN(b,WMa);a=c.t9;var d=!1;switch(a){case 0:this.C=!c.oY.N5;this.iv=c.oY.iv;break;case 2:break;case 23:var e=this.Pd;c=c.n6;e.hd("omp_r");c.videoId&&(e.Xt=c.videoId);e.Xt!==e.videoData.videoId&&(e.videoData.I3=e.Xt,e.ya("ompp","vid."+e.Xt));e.uO=!0;break;case 24:c=this.Pd;c.hd("omp_c");c.uO=!1;c.DE=!1;var f=null==(e=c.Ng)?void 0:e.get(c.Xt);c.notifySubscribers(c.Xt);null!=f&&(f.j=!0);XY(c);break;default:d=!0}this.Pd.mm&&this.Pd.ya("ombup","id.10;pt."+a+
";len."+b.totalLength+(d?";ignored.1":""));this.B=a;break;case 11:FYa(this,b);break;case 12:this.bP(b,!0);break;case 37:b=AN(b,QMa);(b.EL||b.sR)&&b.videoId&&this.Pd.bV.set(b.videoId,b);break;case 31:b=AN(b,ZMa);this.Pd.X5=b;break;case 60:this.ZO(b);break;case 47:this.N("html5_server_playback_start_policy")&&(b=AN(b,gNa),this.Pd.playbackStartPolicy=b);break;default:this.Pd.mm&&this.Pd.ya("ombup","id."+a+";len."+b.totalLength+";ignored.1")}};
g.k.ZO=function(a){a=AN(a,RMa);this.Pd.ZO(a)};
g.k.dP=function(a){var b=a.bW,c=a.Cn,d=a.xA,e=a.Jj,f=a.ju,h=a.startMs,l=a.durationMs,m=a.Gr,n=FXa(a),p=meb.has(GK[""+a.itag]);c&&this.hd(p?"oais_r":"ovis_r");var q=void 0!==this.j[n];this.Pd.mm&&this.Pd.ya("ombup","id.20;hid."+b+";fid"+n);var t=a.videoId||"";this.u[b]=n;this.D[b]=t;q||(this.j[n]={videoId:t,TV:!1,Ui:p,headers:[]});this.j[n].headers.push(a);this.Pd.eA(t,n,p,{Cn:!!c,xA:null!=d?d:-1,ju:null!=f?f:-1,startMs:null!=h?h:-1,durationMs:null!=l?l:-1,Gr:null!=m?m:0,Jj:e})};
g.k.bP=function(a,b){var c=DI(a,0);this.Pd.mm&&this.Pd.ya("ombup","id."+(b?12:21)+";len."+a.totalLength+";hid."+c);if(1!==a.totalLength){a=a.split(1).yl;var d=this.u[c]||null;c=this.D[c]||"";if(d){this.Fi(this.j[d].Ui?"oafs_r":"ovfs_r");var e=this.queue;e.j.push({videoId:c,OQ:d,buffer:a,isEncrypted:b});e.u||rYa(e)}}};
g.k.xr=function(a){var b=DI(a,0);this.Pd.mm&&this.Pd.ya("ombup","id.22;len."+a.totalLength+";hid."+b);a=this.u[b]||null;b=this.D[b]||"";a&&this.Pd.xr(b,a)};
g.k.jP=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,t,v,y,A,E,K;return g.Ha(function(I){switch(I.j){case 1:c.Pd.jP();d=CI(a);if(!b){f=d;I.Ka(2);break}return g.z(I,LYa(c.Pd,d,c.iv),3);case 3:f=I.u;case 2:e=f;if(!c.Pd.enableCompression){I.Ka(4);break}h=c.Pd.W();m=null==(l=performance)?void 0:l.now();return g.z(I,CYa(e,h.ob),5);case 5:e=I.u,c.Pd.ya("decompression",{ds:"DecompressionStream"in window,wasm:!!h.ob,rt:(null==(n=performance)?NaN:n.now())-m});case 4:try{p=AN(e,fNa)}catch(F){return q=F instanceof
Error?{name:F.name,message:F.message}:{},q.webcrypto=""+ +!!ZL(),q.enc=""+ +c.C,t=new aN("onesie.response.parse",q),I.return(Promise.reject(t))}if(1!==p.iY)return v={st:p.iY,webcrypto:""+ +!!ZL(),textencoder:""+ +!!g.Pa.TextEncoder},y=new aN("onesie.response.badproxystatus",v),I.return(Promise.reject(y));if(200!==p.fW)return A={st:p.fW},E=new aN("onesie.response.badstatus",A),I.return(Promise.reject(E));K=g.II(p.body);return I.return(K)}})};
g.k.hd=function(a){this.Pd.hd(a)};
g.k.Fi=function(a){return this.Pd.Fi(a)};
g.k.N=function(a){return this.Pd.N(a)};g.x(YY,g.G);g.k=YY.prototype;g.k.eV=function(){return""};
g.k.zq=function(a){var b,c;return(null==(c=null==(b=this.Ng)?void 0:b.get(a))?void 0:c.zq())||[]};
g.k.ll=function(a,b){var c;return!(null==(c=RY(this,b))||!c.ll(a))};
g.k.Bk=function(a,b){var c;return(null==(c=RY(this,b))?void 0:c.Bk(a))||[]};
g.k.jn=function(a,b){var c;return(null==(c=RY(this,b))?void 0:c.jn(a))||[]};
g.k.Ac=function(a){this.state=a;this.notifySubscribers()};
g.k.Xv=function(){return!1};
g.k.hd=function(a){this.va.hd(a)};
g.k.Fi=function(a){return this.va.Fi(a)};
g.k.gA=function(a,b){this.il.gA(a,b)};
g.k.UO=function(){this.hd("orfb");this.wH=!0;if(MYa(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.hm(),rt:(1E3*mWa(this.yf)).toFixed(),shost:g.Sj(this.uP),trigger:"o1"};this.ya("pathprobe",$M(a))}};
g.k.jP=function(){this.N("html5_remove_deprecated_ticks")||this.hd("orpr");this.hd("opr_r");this.XV=!0};
g.k.eA=function(a,b,c,d){if(this.Ng){if(!this.Ng.has(a)){var e=new HW(this);this.Ng.set(a,e);g.H(this,e)}var f;null==(f=this.Ng.get(a))||f.eA(b,c,d)}XY(this)};
g.k.ZO=function(a){this.Iz=a};
g.k.cP=function(){if(this.Ng)for(var a=g.u(this.Ng.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.Ng.get(b.value))||c.Zz()}};
g.k.ya=function(a,b,c){this.va.ya(a,b,void 0===c?!1:c)};
g.k.xr=function(a,b){var c;null==(c=RY(this,a))||c.xr(b)};
g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,t,v,y,A,E,K,I,F,S;return g.Ha(function(Y){switch(Y.j){case 1:a.cE.start();a.N("html5_remove_deprecated_ticks")||a.hd("ogpd");a.hd("or_i");b=a.Z.experiments.sb("html5_onesie_verbose_timing");c={};d=(0,g.mC)();e=function(ia){b&&(c[ia]=(0,g.mC)()-d)};
e("loc_s");if(f=HYa(a.videoData,a.sz)){Y.Ka(2);break}e("loc_async");h=g.xL(a.Z.experiments,"html5_onesie_redirector_timeout_ms");return g.z(Y,IYa(a.videoData,a.sz,h),3);case 3:f=Y.u;case 2:if(!f)return a.logger.info("Onesie URL creation failed."),l={url:"0"},m=new aN("onesie.unavailable.hotconfig",l),a.fail(m),Y.return(a.Qp);a.bZ=rI(f);e("loc_e");n=g.ZM(a.Z,g.PO(a.videoData));if(!n.j){p=n.getValue();Y.Ka(4);break}return g.z(Y,n.j,5);case 5:p=Y.u;case 4:q=p;e("oauth");t=hYa(a.playerRequest,a.Z,a.videoData,
q,DW(a.bZ));g.ya(Y,6);if(a.N("html5_onesie_sync_request_encryption")||t.UE||g.TM(a.Z)&&a.N("html5_embed_onesie_use_sync_encryption")||!ZL()){e("or_s_sync");a.tP=jYa(t,a.bE,a.Z,a.va,a.iM.onesieUstreamerConfig,null==(v=a.videoData.hY)?void 0:v.qo);Y.Ka(8);break}e("or_s_async");return g.z(Y,nYa(t,a.bE,a.Z,a.va,a.iM.onesieUstreamerConfig,null==(y=a.videoData.hY)?void 0:y.qo),9);case 9:a.tP=Y.u;case 8:g.za(Y,7);break;case 6:return A=g.Aa(Y),a.logger.info("Failed to create OnesieRequestProto."),a.fail(A),
Y.return(a.Qp);case 7:return e("or_e"),b&&a.ya("oreqvt",c),a.enableCompression=a.tP.LN.qM,a.hd("osor"),E=FNa(a.Z),K=g.IN(a.tP,YMa),I={method:"POST",body:K,headers:{"Content-Type":"text/plain",Referer:location.origin}},F=a.N("html5_onesie_media_capabilities"),JYa(f,a.videoData,OYa(a),F),a.mm&&a.ya("ombrs","1"),S=a.va.W().schedule,a.yf=new nY(a,{Ae:S,kC:a.mm,Lp:function(ia,ta){a.va.wE(ia,ta)},
Sk:a.N("html5_disable_bandwidth_cofactors_for_sabr")}),f.set("rn",""+a.yf.requestNumber),a.uP=f.kf(),hWa(a.yf,a.uP),a.N("html5_remove_deprecated_ticks")||a.hd("ocs"),a.hd("or_p"),a.xhr=yWa(new uJ(f),E,a.yf,RO,I),a.gY.start(),Y.return(a.Qp)}})};
g.k.yr=function(){this.hd("orh_r")};
g.k.Ip=function(){!this.wH&&this.xhr.hm()&&this.UO();if(this.iD){var a;null==(a=this.xI)||a.start()}this.vn()};
g.k.Nn=function(){this.vn();if(!this.isDisposed()){var a=KYa(this),b=this.xhr;a.rc=b.status;if(b.Mf()){var c="onesie.net";a.msg=b.Mf()}else 400<=b.status?c="onesie.net.badstatus":b.uE()?this.XV||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.fail(new aN(c,a)):(this.N("html5_remove_deprecated_ticks")||this.hd("orf"),this.hd("or_fs"),this.yf.GO((0,g.mC)(),b.hm(),0),this.Ac(4),this.mm&&this.ya("rqs",a));this.mm&&this.ya("ombre","ok."+ +!c);
this.DE=!1;XY(this);EYa(this.il);this.cE.stop();var d;null==(d=this.xI)||d.stop();var e;if(c=null==(e=this.sz)?void 0:wSa(e))for(e=0;e<c.length;e++)this.ya("pathprobe",c[e])}};
g.k.dV=function(){};
g.k.tX=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.k6=function(){if(MYa(this)&&this.sz&&(!this.wH||this.N("html5_onesie_probe_ec_hosts"))){var a=this.sz;if(a.Z.experiments.sb("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:rI(b.location);c&&CW(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:rI(d.location))&&CW(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:rI(e.location))&&CW(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:rI(c.location))&&CW(a,d,"o3",this)}}};
g.k.OV=function(){this.logger.info("Onesie request timed out");this.DE=!1;if(!XY(this)){var a=KYa(this);a.timeout="1";this.fail(new aN("onesie.request",a))}};
g.k.fail=function(a){var b=this;a=cN(a);this.iD?this.va.pe(a):(this.Qp.reject(a),this.iD=!0);EYa(this.il);this.cE.stop();this.N("html5_remove_deprecated_ticks")||this.hd("ore");this.hd("or_fe");var c,d;null==(c=this.sz)||null==(d=wSa(c))||d.forEach(function(e){b.ya("pathprobe",e)});
this.Ac(5);this.dispose()};
g.k.isComplete=function(){return 3<=this.state};
g.k.XN=function(){return 4===this.state};
g.k.ZV=function(a){var b,c;return this.isComplete()||!!(null==(b=this.Ng)?0:null==(c=b.get(a))?0:c.j)};
g.k.wW=function(){return!1};
g.k.Bn=function(){return 5===this.state};
g.k.notifySubscribers=function(a){for(var b=0;b<this.XE.length;b++)a&&this.XE[b].ud()!==a||ZY(this.XE[b],this)};
g.k.xa=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();EYa(this.il);this.Nj.dispose();var b;null==(b=this.xI)||b.dispose();this.Ac(-1);this.XE=[];g.G.prototype.xa.call(this)};
g.k.vn=function(){try{var a=this.xhr;102400<a.hm()&&!this.rW&&(this.hd("or100k"),this.rW=!0);if(a.Pq()){var b=a.Mw(),c=b.totalLength;this.mm&&this.ya("ombrss","len."+c);this.Nj.feed(b)}if(this.Ng)for(var d=g.u(this.Ng.keys()),e=d.next();!e.done;e=d.next())a=void 0,null==(a=this.Ng.get(e.value))||a.Zz()}catch(f){this.fail(f)}};
g.k.Kv=function(){return this.yf.requestNumber};g.x(QYa,g.G);g.k=QYa.prototype;g.k.ut=function(a){if(a instanceof YY)this.j.pop();else{var b=1;a.canRetry()&&(this.j.pop(),null==a||a.dispose(),b=0);this.Ca.handleError(a.tf(),a.Aq(),b);!this.policy.Px||"net.badstatus"!==a.tf()&&"net.connect"!==a.tf()||this.Ca.eC(a.Aq())}};
g.k.PD=function(a){this.C=a;this.D=(0,g.mC)()+(a.backoffTimeMs||0)};
g.k.TD=function(a){if(void 0!==a.action){var b={};b.reason=a.K9;b.action=a.action;switch(a.action){case 1:this.Ca.xG(b);break;case 0:this.Ca.eC(b);break;case 2:this.Ca.handleError("sabr.config",b,1)}}};
g.k.ZD=function(a,b){this.Ia.N("html5_enable_ssap")&&(b&&(this.ea=b),this.Ca.ZD(a))};
g.k.ND=function(a){this.V=a};
g.k.VD=function(a){a.kJ&&a.lJ&&(a=a.kJ/a.lJ,this.audioTrack.K=!1,this.videoTrack.K=!1,this.Ca.va.seekTo(a,{ke:"sabr_seek",oD:!0,qZ:!0}))};
g.k.SD=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.uq.has(a)&&this.uq.delete(a)}if(b)for(b=g.u(b),a=b.next();!a.done;a=b.next())a=a.value,this.uq.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.uq.add(b),this.xp.has(b)&&this.xp.delete(b)};
g.k.WD=function(){};
g.k.UD=function(a,b){this.policy.Dk&&INa(this.policy,a,4,b)};
g.k.ud=function(){return this.va.ud()||""};
g.k.PM=function(){var a=1E3*BY(this.audioTrack,!0),b=1E3*BY(this.videoTrack,!0);return Math.min(a,b)};
g.k.kH=function(a){lZa(this.Ca,fVa(this.J,a))};
g.k.xa=function(){g.G.prototype.xa.call(this);this.C=void 0;VYa(this,!0);this.j=[]};XYa.prototype.nf=function(a,b){if(this.C)return bZa(this,b);if(b=JX(a)){var c=b.u;c&&c.D&&c.u&&(a=a.B.length?a.B[0]:null)&&2<=a.state&&!a.Bn()&&0===a.info.hh&&(this.C=a,this.K=c,this.u=b.info,this.J=this.startTimeSecs=Date.now()/1E3,this.D=this.u.startTime)}return NaN};
XYa.prototype.clear=function(){this.u=this.K=this.C=null;this.j=this.D=this.J=this.startTimeSecs=NaN;this.B=!1};g.x(g.aZ,g.G);g.k=g.aZ.prototype;
g.k.initialize=function(a,b,c){a=a||0;bU(this.policy)||(b=XX(this.Ie),kZa(this.va,new PX(b.video,b.reason)),this.va.ww(new PX(b.audio,b.reason)));this.Ua.isManifestless&&yXa(this.B);this.C&&ZYa(this.C,this.videoTrack.j);b=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.Ua.isManifestless?b:a;if(this.policy.u)if(this.policy.Vf){var d;if((null==(d=this.V)?0:PYa(d,this.ud()||""))&&eZa(this)&&(a=bZ(this,this.videoTrack),d=bZ(this,this.audioTrack),a||d)){WYa(this.qa,this.V);var e;null==
(e=this.ea)||GSa(e)}}else{var f;(null==(f=this.V)?0:PYa(f,this.ud()||""))&&eZa(this)&&bZ(this,this.videoTrack)&&bZ(this,this.audioTrack)&&WYa(this.qa,this.V)}else this.ea&&(fZa(this,this.videoTrack),fZa(this,this.audioTrack),GSa(this.ea),delete this.ea);c?(this.policy.Wd?(this.eb=c,dZ(this,c)):dZ(this,!1),g.Lq(this.LH)):(c=0===this.currentTime,JY(this.B,this.videoTrack,this.videoTrack.j,c),JY(this.B,this.audioTrack,this.audioTrack.j,c),this.seek(this.currentTime,{}).Ek(function(){}),this.timing.tick("gv"));
(this.Ua.bf||this.Ua.nh||this.Ua.Eb||this.Ua.md||this.Ua.pd)&&this.ya("minMaxSq",{minSq:this.Ua.bf,maxSq:this.Ua.nh,minDvrTime:this.Ua.Eb,maxDvrTime:this.Ua.md,startWalltime:this.Ua.pd})};
g.k.resume=function(){if(this.isSuspended||this.Uq){this.dC=this.Uq=this.isSuspended=!1;try{this.nf()}catch(a){g.sG(a)}}};
g.k.Uy=function(a){a=void 0===a?!1:a;iZa(this);jL(this.va)&&(this.D=NaN);a?(this.policy.Ga&&this.ya("loader",{setsmb:1}),this.policy.Ba=!0):this.policy.Wd?dZ(this,this.eb):dZ(this,!1);this.Qk()};
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());bU(this.policy)?(c=this.oa.aZ(a.id),this.va.ww(c)):(c=this.Ie,c.j=c.Ua.j[a.id],c.J=c.j,c=new OX(c.J,c.B,d?"t":"m"),this.va.ww(new PX(c.audio,c.reason)));if(d&&(d=this.audioTrack.j.index.Lh(b),this.ya("setAudio",{id:a.id,cmt:b,sq:d}),0<=d)){gXa(this.audioTrack,d,NaN,NaN);sL(this.Ua,d,!1);return}fZ(this.va)}};
g.k.setPlaybackRate=function(a){a!==this.J.getPlaybackRate()&&this.J.setPlaybackRate(a)};
g.k.kI=function(a){a.j.info.Ui()?this.va.ww(a):kZa(this.va,a)};
g.k.kH=function(a){DJ(a.gb[a.gb.length-1])&&lZa(this,fVa(this.Ie,a.gb[0].j))};
g.k.dN=function(){return this.va.dN()};
g.k.YD=function(a){this.va.YD(a)};
g.k.mz=function(){return this.va.mz()};
g.k.Xm=function(){return this.va.Xm()};
g.k.rP=function(a){this.va.rP(a)};
g.k.nf=function(){jZa(this);if(this.Xa&&hL(this.Xa)&&!this.Xa.wj()){var a=xY(this.videoTrack);a=this.policy.Ux&&a&&BJ(a);this.Ua.isManifestless&&this.Ua.B&&pL(this.Ua)?(this.D=pL(this.Ua),this.Xa.ul(this.D)):sva(this.Ua)&&!a?isNaN(this.D)?(this.D=this.currentTime+3600,this.Xa.ul(this.D)):this.D<=this.currentTime+1800&&(this.D=Math.max(this.D+1800,this.currentTime+3600),this.Xa.ul(this.D)):this.Xa.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),(!isFinite(this.D)||
this.D!==a)&&0<a&&(this.Xa.ul(a),this.D=a))}if(!this.isDisposed())if(mva(this.Ua)&&this.Ua.Bn()){var b=this.Ua;this.handleError("manifest.net.retryexhausted",b.kb?{rc:b.Yg}:{rc:b.Yg.toString()},1)}else if(this.policy.u){try{if(TYa(this.qa),this.Ua.isManifestless&&this.policy.D&&NUa(this.j),this.Xa&&hZa(this),bU(this.policy)||cZ(this),b=this.qa,RYa(b)){var c=bXa(b.audioTrack),d=bXa(b.videoTrack),e=[].concat(g.qa(c.Be),g.qa(d.Be));a=[];b.policy.og&&(a=[].concat(g.qa(c.On),g.qa(d.On)));var f,h=(null==
(f=b.Ca)?void 0:f.zH())&&(EO(b.videoData)||g.DO(b.videoData)),l=b.policy.D&&h,m=b.va.getCurrentTime()||0,n={va:b.va,Ua:b.Ua,Be:e,On:a,YB:l?Number.MAX_SAFE_INTEGER:1E3*m,nextRequestPolicy:b.C,nM:b.policy.Wf,xp:b.xp,uq:b.uq,TQ:b.ea,Jt:b.policy,Yq:b.Ca.Yq};if(b.policy.jg){n.KE=AXa(b.B.B);var p=b.B,q=EXa(p);0===q.length&&(q=p.C);var t=AXa(q);n.LE=t}else b.kH(b.videoTrack.j),b.kH(b.audioTrack.j),n.JL=XX(b.J);var v=new PY(0,n,b,b.Ca.He);b.j.push(SYa(b,v))}}catch(y){g.tG(y),b=y,this.eC({reason:"exp",ename:b.name,
emsg:b.message})}g.Lq(this.Va)}else if(!this.Ua.u||!kXa(this.videoTrack)&&!kXa(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.Zb?b=!1:(this.Qk(),this.va.seekTo(Infinity,{ke:"checkLoaderTracksSync",iq:!0}),b=!0),!b){jZa(this);if(!this.policy.useUmp)try{ZWa(this.videoTrack);if(this.isDisposed())return;ZWa(this.audioTrack);if(this.isDisposed())return}catch(y){xXa(this,y,{origin:"pollSlice"})}this.Ua.isManifestless&&(lXa(this.videoTrack),lXa(this.audioTrack),NUa(this.j),(b=JX(this.videoTrack))&&
b.u&&(b=b.u.D&&!this.policy.Xj,this.ya(b===this.policy.K.cj?"strm":"strmbug",{strm:b,sfmp4:this.policy.K.cj,dfs:this.policy.Xj},!0)));this.Xa?hZa(this):this.policy.j&&((b=JX(this.videoTrack))&&this.videoTrack.Nw(b),(c=JX(this.audioTrack))&&this.audioTrack.Nw(c),zY(this.videoTrack)&&zY(this.audioTrack)||(b||c)&&gZ(this));cZ(this);JY(this.B,this.videoTrack,this.videoTrack.j,!1);JY(this.B,this.audioTrack,this.audioTrack.j,!1);b=this.videoTrack;e=this.audioTrack;if((!this.Xa||hL(this.Xa)&&!this.policy.Ec)&&
!this.j.Xg()&&(bU(this.policy)||FY(b)&&b.j.zg()&&this.Ie.ea))a:{if(c=this.currentTime,d=this.J,e=GUa(d,b.j.info.Wb,e.j.info.Wb,0),d=pM(d.schedule)+e/rM(d.schedule),c+=Math.max(d,d+10-e/b.j.info.Wb),b.B.length){if(b.B[0].info.gb[0].startTime<=c)break a;GX(b)}d=b.C;for(e=d.u.length-1;0<=e;e--)d.u[e].info.startTime>c&&d.u.pop();aXa(b);b.u&&c<b.u.startTime&&(b.Ga=0,b.j.zg()?b.u=b.j.Eq(c,!0).gb[0]:b.u=null)}sXa(this.B,this.videoTrack,this.audioTrack);sXa(this.B,this.audioTrack,this.videoTrack);this.policy.Ho&&
this.Oa&&!this.isSuspended&&Kwa(this.schedule)&&(sZa(this,this.Oa),this.Oa="");this.C&&(b=this.C,b.C?(c=b.J+b.policy.Ep,b.B||(c=Math.min(c,b.startTimeSecs+b.policy.yk)),b=Math.max(0,1E3*c-Date.now())):b=NaN,isNaN(b)||g.Lq(this.rb,b));g.Lq(this.Va)}};
g.k.eC=function(a){this.va.eC(a)};
g.k.xG=function(a){this.va.xG(a)};
g.k.k0=function(a){var b=this;a.nm()&&0===a.dg().length&&(a.Fy(),this.Xa&&!this.Xa.nm()&&(this.Xa.J=performance.now(),this.va.CM()));if(this.policy.ea&&this.Xa){var c=a===this.Xa.j,d=a.XG();d&&(d.dc&&!d.Cf||this.ya("sbu",a.qc({a:c})),d.Cf&&!a.wj()&&setTimeout(function(){var e=a.dg(),f=WK(e,d.startTime+rXa),h=WK(e,b.currentTime);(0>f||f!==h)&&b.ya("sbu_mismatch",{b:VK(e),c:b.currentTime,s:d.Td()})},0))}this.nf()};
g.k.V6=function(a){if(this.Xa){var b=xY(a===this.Xa.j?this.audioTrack:this.videoTrack);if(a=a.gN())for(var c=0;c<a.length;c++)this.ya("appendedbuffer",{i:c,b:g.gg(a[c].subarray(0,4096),3)});a=void 0;b&&(a=GJ(b));this.handleError("fmt.unplayable",a,1)}};
g.k.bA=function(a){this.va.bA(a)};
g.k.fP=function(a,b,c){this.Ua.isManifestless&&cWa(this,b,c,!!a.info.video,!0)};
g.k.eP=function(a,b,c,d){a.info.video&&this.u.eP(b,c,d)};
g.k.lI=function(a){this.Ie.lI(a)};
g.k.QC=aa(10);g.k.rJ=function(a){this.He=a;var b;null!=(b=this.audioTrack.V)&&(b.jd=a);null!=(b=this.videoTrack.V)&&(b.jd=a)};
g.k.zH=function(){return this.videoTrack.K||this.audioTrack.K};
g.k.seek=function(a,b){if(this.isDisposed())return Qf();if(this.zH())return Qf("seeking to head");jZa(this);this.Yq=(0,g.mC)();bU(this.policy)||cZ(this,a);this.Xa&&this.Xa.j&&this.Xa.u&&!this.va.getVideoData().eT&&(this.Xa.j.isLocked()||this.Xa.u.isLocked())&&fZ(this.va,{reattachOnLockedBuffer:1,vsb:""+this.Xa.u.isLocked(),asb:""+this.Xa.j.isLocked()});var c=this.currentTime;if(this.policy.u&&!b.oD){var d=this.qa;d.D=void 0;VYa(d,!0)}this.currentTime=this.j.seek(a,b);NX(this.u,a,c);gZ(this);return Pf(this.currentTime)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.OM=function(){return this.audioTrack.j.info};
g.k.RM=function(){return this.videoTrack.j.info};
g.k.MM=function(){return this.audioTrack.j.info.yb};
g.k.QM=function(){return this.videoTrack.j.info.yb};
g.k.xa=function(){try{this.Uy();GX(this.audioTrack);GX(this.videoTrack);var a;null==(a=this.audioTrack.V)||sVa(a);var b;null==(b=this.videoTrack.V)||sVa(b);g.G.prototype.xa.call(this)}catch(c){g.sG(c)}};
g.k.handleError=function(a,b,c){c=void 0===c?0:c;var d=bN(c);if("fmt.unplayable"===a&&this.Ua.isLive){this.policy.gs=!1;var e=this.Ua;if(e.isManifestless)for(var f in e.j)e.j[f].index.segments=[]}b=new aN(a,b,c);g.ab(this);$M(b.details);this.va.handleError(b);"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose()};
g.k.qc=function(){var a=xY(this.audioTrack),b=xY(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.j.Xg(),lmf:YX(this.Ie),lbw:Jwa(this.schedule).toFixed(3),lhd:pM(this.schedule).toFixed(3),lst:(1E9*(this.schedule.u.pj()||0)).toFixed(3),laa:a?a.Td():"",lva:b?b.Td():"",lar:this.audioTrack.u?this.audioTrack.u.Td():"",lvr:this.videoTrack.u?this.videoTrack.u.Td():"",laq:""+AY(this.audioTrack),lvq:""+AY(this.videoTrack)};this.Xa&&!this.Xa.jh()&&this.Xa.j&&this.Xa.u&&(a.lab=VK(this.Xa.j.dg()),
a.lvb=VK(this.Xa.u.dg()));this.hq&&(a.lapt=((0,g.mC)()-this.hq).toFixed(0),a.lapr=mZa(this));this.Ba&&(a.lapmbht=((0,g.mC)()-this.Ba).toFixed(0));return a};
g.k.Qk=function(){try{if(this.policy.u){var a=this.qa;a.D=void 0;VYa(a,!1)}this.audioTrack.Qk();this.videoTrack.Qk()}catch(b){g.sG(b)}this.policy.j=""};
g.k.IM=function(){return BX(this.J)};
g.k.ya=function(a,b,c){this.va.ya(a,b,void 0===c?!1:c)};
g.k.ud=function(){return this.va.ud()};
g.k.iq=function(a,b){a/=b;isNaN(this.timestampOffset)&&wZa(this,a-Math.min(a,this.policy.Yx));return(a-this.timestampOffset)*b};
g.k.Hd=function(){return this.timestampOffset};
g.k.Xg=function(){return this.j.Xg()};
g.k.Nv=function(){this.u.Nv()};
g.k.QA=function(a){bU(this.policy)||this.Ie.QA(a)};
g.k.IE=function(a,b){if(!this.K)return!1;var c=this.videoTrack.j.index.Lh(a);return this.K.IE(a,b,c)};
g.k.Or=function(a,b){if(this.K&&this.u.Or(a,this.K))return wZa(this,this.timestampOffset-b),gZ(this),!0;b=this.videoTrack.j.index.Lh(a);this.handleError("ad.skipfailed",{dec:!!this.K,t:a.toFixed(3),sq:b});return!1};
g.k.nz=function(a){return this.u.nz(a)};
g.k.pV=function(){return this.Ua};
g.k.isOffline=function(){return!!this.va.getVideoData().cotn};
g.k.wE=function(a,b){this.va.wE(a,b)};
g.k.eQ=function(a){var b=this.va.getVideoData().Oj;if(b){var c=this.B;c.rh=a;c.Oj=b;hZ(this)}};
g.k.RH=function(a){this.videoTrack.K=!1;this.audioTrack.K=!1;this.j.u=!1;this.va.RH(a)};
g.k.yQ=function(a){this.j.yQ(a-this.Hd())};
g.k.ZD=function(a,b){if(this.He){var c=this.He;b=void 0===b?"":b;if(c.TQ!==b){c.TQ=b;var d=c.timeline.j;if(d&&d.getVideoData()){b=[];var e=d.getVideoData();d=d.videoData.clientPlaybackNonce;var f=[],h=0,l=0,m=0,n=[];a=g.u(a);for(var p=a.next();!p.done;p=a.next()){var q=p.value,t=q.clipId;"content_clip_id"===t&&(t=d);if(t){var v;if(q.UA){m=q.UA.hC||0;var y=q.UA.Vr||1;p=(q.UA.A9||0)/y*1E3;y=m/y*1E3;m=v=p+y}else p=m,y=0,v=p,c.j.add(t);n.push(t);q.UA&&(n=new g.NG(p,v,{id:n.join(","),namespace:"ssap",
priority:9}),c.u.set(t,n),n=[]);var A=void 0,E=void 0;if((null==(A=q.UA)?void 0:A.waa)===(null==(E=e)?void 0:E.videoId))f.length&&RTa(c,h||0,l,f),l=h=v,f=[],q=void 0,t!==(null==(q=e)?void 0:q.clientPlaybackNonce)&&c.api.ya("ssap",{cnm:1}),q=new YW(p,p+(y||0),!y,1,c.timeline,e,void 0),b.push(q),nTa(c.timeline,p,v,[q]);else{E=c.B.get(t);var K=void 0;A=null!=(K=E)?K:new g.eO(c.api.W(),{cpn:t});c.j.has(t)&&c.B.set(t,A);h=Math.min(p,h);l=Math.max(v,l);c.api.ya("ssap",{e:p,d:y,c:t,p:E?1:0});t=void 0;q=
null==(t=q.A6)?void 0:t.pO;p=new YW(p,p+(y||0),!y,2,c.timeline,A,q);f.push(p)}}else c.api.ya("ssap",{cm:1})}f.length&&RTa(c,h||0,l,f);d&&b.length&&c.timeline.u.set(d,b);c.u.size&&c.va.sy(Array.from(c.u.values()))}}}};
g.k.QH=function(a){a!==this.policy.Ke&&((this.policy.Ke=a)||this.nf())};g.k=g.iZ.prototype;g.k.fp=function(a,b,c,d,e,f){return this.jd.fp(a,b,c,d,e,f)};
g.k.qt=function(a,b,c,d,e,f){return this.jd.qt(a,b,c,d,e,f)};
g.k.hH=function(a){this.jd.hH(a)};
g.k.ut=function(a,b){return this.jd.ut(a,b)};
g.k.Nv=function(){this.jd.Nv()};
g.k.IE=function(a,b,c){return this.jd.IE(a,b,c)};
g.k.xJ=function(a,b){this.jd.xJ(a,b)};
g.k.iQ=function(){this.jd.iQ()};
g.k.BC=aa(40);g.k.Xk=function(a,b,c){this.jd.Xk(a,b,c)};
g.k.gF=aa(38);g.k.pP=function(a,b,c,d,e,f,h,l,m){this.jd.pP(a,b,c,d,e,f,h,l,m)};
g.k.AQ=function(a){this.jd.AQ(a)};
g.k.oP=function(a,b,c,d){this.jd.oP(a,b,c,d)};
g.k.St=function(a){return this.jd.St(a)};g.x(jZ,g.SG);g.x(kZ,jZ);kZ.prototype.J=function(a,b){if(a&&b){var c=1*Number(ak(a,"cpi"))+1;isNaN(c)||0>=c||c<this.B?(this.C.stop(),this.u.stop(),this.B=-1,this.j={}):(c>this.B&&(this.B=c,g.id(this.j)||(this.j={},this.C.stop(),this.u.stop())),this.j[b]=a,g.Lq(this.u))}};
kZ.prototype.D=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.B,e=this.j[c].match(Ij),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.Ae(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 FVa(d,"fairplay",!0))}this.j={}};
kZ.prototype.xa=function(){this.j={};jZ.prototype.xa.call(this)};g.x(lZ,jZ);
lZ.prototype.C=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.mC)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.u(this.B.values());for(var e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c?(c=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?yZa(this,a):(this.j.push({time:b+c,info:a}),g.Lq(this.u,c))}};
lZ.prototype.xa=function(){this.j=[];jZ.prototype.xa.call(this)};var C4={},GZa=(C4.DRM_TRACK_TYPE_AUDIO="AUDIO",C4.DRM_TRACK_TYPE_SD="SD",C4.DRM_TRACK_TYPE_HD="HD",C4.DRM_TRACK_TYPE_UHD1="UHD1",C4);g.x(CZa,g.G);g.x(IZa,g.SG);g.k=IZa.prototype;g.k.Hp=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=CL(b.u)?d:c;d=new Uint8Array(CL(b.u)?c:d);CL(b.u)&&ZZa(d);c=g.gg(d,4);ZZa(d);d=g.gg(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),UZa(this,","),mZ(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.J)/1E3,this.J=NaN,this.ra("ctmp","provf",{et:a.toFixed(3)})));bN(b)&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Fa&&this.K?!1:!a&&this.requestNumber===b.requestNumber};
g.k.xa=function(){this.j={};g.SG.prototype.xa.call(this)};
g.k.qc=function(){var a={ctype:this.ea.contentType||"",length:this.ea.initData.length,requestedKeyIds:this.Ga,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.j);return a};
g.k.Kh=function(){var a=this.C.join();if(nZ(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.kf=function(){return this.url};g.x(oZ,g.G);g.k=oZ.prototype;g.k.l0=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}};
g.k.Hp=function(){this.K&&this.K(this.j.keyStatuses)};
g.k.TX=function(a){this.D&&this.D(a.message,"license-request")};
g.k.SX=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
g.k.RX=function(){this.J&&this.J()};
g.k.update=function(a){var b=this;if(this.j)return(ML.isActive()&&ML.wu()?ML.ql("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,yL(function(c){a_a(b,"t.update",c)}));
this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.V.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.V.keySystem,a,this.initData,this.sessionId);return oA()};
g.k.xa=function(){this.j&&this.j.close();this.element=null;g.G.prototype.xa.call(this)};g.x(pZ,g.G);g.k=pZ.prototype;g.k.BL=function(){var a=this;if(this.j.keySystemAccess)return(ML.isActive()&&ML.wu()?ML.ql("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.isDisposed())if(a.u=c,ML.isActive()&&ML.wu())ML.ql("emeset",function(){return a.element.setMediaKeys(c)});
else{var d;null==(d=a.element)||d.setMediaKeys(c)}});
if(BL(this.j))this.B=new (AL())(this.j.keySystem);else if(DL(this.j)){this.B=new (AL())(this.j.keySystem);var b;null==(b=this.element)||b.webkitSetMediaKeys(this.B)}else ML.isActive()&&this.ya("emev",{v:"01b"}),mB(this.D,this.element,["keymessage","webkitkeymessage"],this.o0),mB(this.D,this.element,["keyerror","webkitkeyerror"],this.n0),mB(this.D,this.element,["keyadded","webkitkeyadded"],this.m0);return null};
g.k.setServerCertificate=function(){return this.u.setServerCertificate?"widevine"===this.j.flavor&&this.j.Ll?this.u.setServerCertificate(this.j.Ll):FL(this.j)&&this.j.Ya?this.u.setServerCertificate(this.j.Ya):null:null};
g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.u.createSession();EL(this.j)?c=b_a(c,this.j.Ya):FL(this.j)&&(c=xZa(c)||new Uint8Array(0));b&&b("genreq");var e=ML.isActive()&&ML.wu()?ML.ql("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c);
var f=new oZ(null,null,null,d,null);e.then(function(){b&&b("genreqsuccess")},yL(function(l){a_a(f,"t.generateRequest",l)}));
return f}if(BL(this.j))return d_a(this,c);if(DL(this.j))return c_a(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.C=new oZ(this.element,this.j,c,null,null)};
g.k.o0=function(a){var b=e_a(this,a);b&&b.TX(a)};
g.k.n0=function(a){var b=e_a(this,a);b&&b.SX(a)};
g.k.m0=function(a){var b=e_a(this,a);b&&b.RX(a)};
g.k.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a};
g.k.xa=function(){this.B=this.u=null;var a;null==(a=this.C)||a.dispose();a=g.u(Object.values(this.J));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.J={};g.G.prototype.xa.call(this);delete this.element};g.k=qZ.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.Tf=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.Eb(this.keys,function(b){return g.Xb(a,b)})};g.x(h_a,g.SG);g.k=h_a.prototype;g.k.u7=function(a){this.gj({onecpt:1});a.initData&&k_a(this,new Uint8Array(a.initData),a.initDataType)};
g.k.Q7=function(a){this.gj({onndky:1});k_a(this,a.initData,a.contentType)};
g.k.bA=function(a){this.gj({onneedkeyinfo:1});this.Z.N("html5_eme_loader_sync")&&(this.K.get(a.initData)||this.K.set(a.initData,a));j_a(this,a)};
g.k.PT=function(a){this.B.push(a);rZ(this)};
g.k.createSession=function(a){var b=m_a(this)?IVa(a):g.gg(a.initData);this.u.get(b);this.Ba=!0;a=new IZa(this.videoData,this.Z,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.iI,this);a.subscribe("keystatuseschange",this.Hp,this);a.subscribe("licenseerror",this.mI,this);a.subscribe("newlicense",this.OX,this);a.subscribe("newsession",this.PX,this);a.subscribe("sessionready",this.aY,this);a.subscribe("fairplay_next_need_key_info",this.FX,this);this.Z.N("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange",
this.qR,this);MZa(a,this.C)};
g.k.OX=function(a){this.isDisposed()||(this.gj({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ra("heartbeatparams",a)))};
g.k.PX=function(){this.isDisposed()||(this.gj({newlcssn:1}),this.B.shift(),this.Ba=!1,rZ(this))};
g.k.aY=function(){if(BL(this.j)&&(this.gj({onsnrdy:1}),this.Ma--,0===this.Ma)){var a=this.oa,b,c;null==(b=a.element)||null==(c=b.msSetMediaKeys)||c.call(b,a.B)}};
g.k.Hp=function(a){if(!this.isDisposed()){!this.Fa&&this.videoData.N("html5_log_drm_metrics_on_key_statuses")&&(n_a(this),this.Fa=!0);this.gj({onksch:1});var b=this.qR;if(!nZ(a)&&g.NC&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(nZ(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(!nZ(a)||d)c=a.C;c=TZa(c)}b.call(this,c);
this.ra("keystatuseschange",a)}};
g.k.iI=function(a,b){this.isDisposed()||this.ra("ctmp",a,b)};
g.k.FX=function(a,b){this.isDisposed()||this.ra("fairplay_next_need_key_info",a,b)};
g.k.mI=function(a,b,c,d){this.isDisposed()||(this.videoData.N("html5_log_drm_metrics_on_error")&&n_a(this),this.ra("licenseerror",a,b,c,d))};
g.k.Ev=function(){return this.V};
g.k.qR=function(a){var b=g.XH("auto",a,!1,"l");if(this.videoData.Dk){if(this.V.equals(b))return}else if(Csa(this.V,a))return;this.V=b;this.ra("qualitychange");this.gj({updtlq:a})};
g.k.xa=function(){this.j.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.u(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.iI,this),b.unsubscribe("keystatuseschange",this.Hp,this),b.unsubscribe("licenseerror",this.mI,this),b.unsubscribe("newlicense",this.OX,this),b.unsubscribe("newsession",this.PX,this),b.unsubscribe("sessionready",this.aY,this),b.unsubscribe("fairplay_next_need_key_info",this.FX,this),this.Z.N("html5_enable_vp9_fairplay")&&
b.unsubscribe("qualitychange",this.qR,this),b.dispose();this.u.clear();this.J.Tf();this.K.Tf();this.heartbeatParams=null;g.SG.prototype.xa.call(this)};
g.k.qc=function(){for(var a={systemInfo:this.j.qc(),sessions:[]},b=g.u(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.qc());return a};
g.k.Kh=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.Kh()+(this.D?"/KR":"")};
g.k.gj=function(a,b){b=void 0===b?!1:b;this.isDisposed()||($M(a),(this.Z.Id()||b)&&this.ra("ctmp","drmlog",a))};g.x(tZ,g.G);tZ.prototype.DH=function(){return this.u};
tZ.prototype.handleError=function(a){var b=this;t_a(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!s_a(this,a.errorCode,a.details))&&!x_a(this,a)){if("yt"!==this.Ia.Ga&&v_a(this,a)&&this.videoData.No&&(0,g.mC)()/1E3>this.videoData.No&&"hm"===this.Ia.Ga){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.No;c.init=this.videoData.y_/1E3;c.now=(0,g.mC)()/1E3;c.systelapsed=((0,g.mC)()-this.videoData.y_)/
1E3;a=new aN(a.errorCode,c,2);this.va.Zg(a.errorCode,2,"SIGNATURE_EXPIRED",$M(a.details))}if(bN(a.severity)){var d;c=null==(d=this.va.Ca)?void 0:d.Ie.u;if(this.Ia.N("html5_use_network_error_code_enums"))if(u_a(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else{if(!this.Ia.K&&"auth"===a.errorCode&&429===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}}else u_a(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.Ia.K||"auth"!==a.errorCode||"429"!==a.details.rc||(e="TOO_MANY_REQUESTS",f="6");this.va.Zg(a.errorCode,
a.severity,e,$M(a.details),f)}else this.va.ra("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.pe(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.mC)(),ZS(a,"manifest",function(h){b.D=!0;b.ya("pathprobe",h)},function(h){b.pe(h.errorCode,h.details)}))}};
tZ.prototype.ya=function(a,b){this.va.Gc().ya(a,b)};
tZ.prototype.pe=function(a,b){b=$M(b);this.va.Gc().pe(a,b)};A_a.prototype.N=function(a){return this.Z.N(a)};g.x(uZ,g.G);uZ.prototype.Md=function(a){R_a(this);this.playerState=a.state;0<=this.u&&g.GP(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
uZ.prototype.onError=function(a){if("player.fatalexception"!==a||this.provider.N("html5_exception_to_health"))a.match(nfb)?this.networkErrorCount++:this.nonNetworkErrorCount++};
uZ.prototype.send=function(){if(!(this.B||0>this.j)){R_a(this);var a=g.UW(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.gh;this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.yP(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.yP(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.yP(this.playerState,16)||g.yP(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.yP(this.playerState,1)&&g.yP(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.yP(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.yP(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.yP(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=o2a[AO(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=0>this.u?a:this.u-
this.j;a=this.provider.Z.og+36E5<(0,g.mC)();b={started:0<=this.u,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.zO(this.provider.videoData),isGapless:this.provider.videoData.ea,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai};a||g.UB("html5PlayerHealthEvent",
b);this.B=!0;this.dispose()}};
uZ.prototype.xa=function(){this.B||this.send();g.G.prototype.xa.call(this)};
var nfb=/\bnet\b/;var U_a=window;var S_a=/[?&]cpn=/;var X_a=Math.pow(10,8);g.x(g.xZ,g.G);g.k=g.xZ.prototype;g.k.k5=function(){var a=g.UW(this.provider);a0a(this,a)};
g.k.HC=function(){return this.Ma};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.UW(this.provider),-1<["PL","B","S"].indexOf(this.mf)&&(!g.id(this.j)||a>=this.C+30)&&(g.wZ(this,a,"vps",[this.mf]),this.C=a),!g.id(this.j))){7E3===this.sequenceNumber&&g.tG(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){d0a(this,a);var b=a,c=this.provider.va.SC(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.xc,h=e&&!this.kd;d>c.totalVideoFrames||5E3<f?j0a(this,"html5.badframedropcount",
"df."+d+";tf."+c.totalVideoFrames):(0<f||h)&&g.wZ(this,b,"df",[f]);this.xc=d;this.kd=e;0<this.K&&(g.wZ(this,a,"glf",[this.K]),this.K=0);this.provider.Z.Id()&&this.provider.N("html5_record_now")&&this.ya("now",{wt:(0,g.mC)()});a={};this.provider.videoData.u&&(a.fmt=this.provider.videoData.u.itag,(b=this.provider.videoData.C)&&b.itag!==a.fmt&&(a.afmt=b.itag));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.ea&&(a.addocid=this.ea);this.contentCpn&&(a.ccpn=this.contentCpn);
this.qa&&(a.cdocid=this.qa);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=LO(this.provider.videoData);a.content_v=NO(this.provider.videoData);a.ns=this.provider.Z.Ga;this.provider.Z.N("html5_delta_encode_fexp")?a.fexp=bwa(this.provider.Z.experiments).toString():a.fexp=this.provider.Z.experiments.experimentIds.toString();a.cl=(551026372).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=AO(this.provider.videoData))&&(a.live=b);this.provider.videoData.uj()&&
(a.drm=1,this.provider.videoData.D&&(a.drm_system=teb[this.provider.videoData.D.flavor]||0),this.provider.videoData.rB&&(a.drm_product=this.provider.videoData.rB));Xz()&&this.provider.videoData.J&&(a.ctt=this.provider.videoData.J,a.cttype=this.provider.videoData.Gk,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.zW&&(a.dai_fallback=
"1")):this.provider.videoData.Tc?a.dai="cs":this.provider.videoData.UK&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.pT){if(b=this.provider.videoData.pT,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.Qd.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.p4};
vZ.length&&(b.decoderInfo=vZ);b=g.IN(b,$_a);a.qclc=g.gg(b,4);a.embargoed=this.wb?"1":"0";g.pd(a,this.provider.Z.j);a=g.Yj("//"+this.provider.Z.Om+"/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.tG(new g.EB("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),100<e.length?c+=e:b+=e);f0a(this,a+b,c.replace(/ /g,"%20"))}this.j={}}};
g.k.gZ=function(){if(this.provider.videoData.D){var a=this.provider.videoData.D;yZ(this,"eme-"+(a.keySystemAccess?"final":BL(a)?"ms":EL(a)?"ytfp":DL(a)?"safarifp":"nonfinal"))}};
g.k.Md=function(a){var b=a.state,c=g.UW(this.provider),d=this.getPlayerState(a.state);if(d!==this.mf){c<this.C||("PL"===this.mf?this.playTimeSecs+=c-this.C:"B"===this.mf&&this.Ba&&(this.Ba=!1,this.rebufferTimeSecs+=c-this.Eb,!this.ob&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.provider.va.LD(),this.j.qoealert=["1"],this.ob=!0)),"B"!==d||"PL"!==this.mf&&"PB"!==this.mf||(this.Ba=!0),this.C=c);"PL"===this.mf&&("B"===d||"S"===d)||this.provider.Z.Id()?d0a(this,c):(this.rb||"PL"!==d||(this.rb=
!0,c0a(this,c,this.provider.va.OC())),a0a(this,c));"PL"===d&&g.Lq(this.pd);var e=[d];a=a.state.seekSource;this.provider.Z.N("html5_report_seek_source_to_qoe")&&"S"===d&&a&&e.push("ss."+a);g.wZ(this,c,"vps",e);this.mf=d;this.C=this.Eb=c;this.D=!0}d=b.gh;g.yP(b,128)&&d&&(d.TI=d.TI||"",i0a(this,c,d.errorCode,d.DG,d.TI));(g.yP(b,2)||g.yP(b,128))&&this.reportStats(c);b.wd()&&!this.J&&(0<=this.u&&(this.j.user_intent=[this.u.toString()]),this.J=!0);g0a(this)};
g.k.aE=function(a){var b=g.UW(this.provider);g.wZ(this,b,"vfs",[a.j.id,a.u,this.md,a.reason]);this.md=a.j.id;var c=this.provider.va.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.PM();1<d&&c.push(d);g.wZ(this,b,"view",c)}this.eb||(this.provider.Z.Id()&&yZ(this,"rqs"),this.provider.videoData.j&&cI(this.provider.videoData.j)&&(this.j.preload=["1"]));this.D=this.eb=!0;"m"===a.reason&&100===++this.Wd&&k0a(this,2);g.wZ(this,b,"vps",[this.mf]);this.reportStats(b)};
g.k.ID=function(a){var b=g.UW(this.provider);a.j.id!==this.Oa&&(g.wZ(this,b,"afs",[a.j.id,this.Oa,a.reason]),this.Oa=a.j.id)};
g.k.Tt=aa(44);g.k.Vn=function(a){this.wb=a};
g.k.onPlaybackRateChange=function(a){var b=g.UW(this.provider);a&&a!==this.xd&&(g.wZ(this,b,"rate",[a]),this.xd=a);this.reportStats(b)};
g.k.Ln=aa(17);g.k.getPlayerState=function(a){if(g.yP(a,128))return"ER";if(g.yP(a,2048))return"B";if(g.yP(a,512))return"SU";if(g.yP(a,16)||g.yP(a,32))return"S";if(g.dQ(a)&&g.yP(a,64))return"B";var b=ofb[fQ(a)];g.JM(this.provider.Z)&&"B"===b&&3===this.provider.va.getVisibilityState()&&(b="SU");"B"===b&&g.yP(a,4)&&(b="PB");return b};
g.k.xa=function(){g.G.prototype.xa.call(this);g.eA(this.hc);g.eA(this.Zb)};
g.k.XI=function(a){this.isOffline=a;g.wZ(this,g.UW(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.k.ya=function(a,b,c){var d=this.j.ctmp||[],e=-1!==this.Fd.indexOf(a);e||this.Fd.push(a);if(!c||!e){b="string"!==typeof b?$M(b):b;b=l0a(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.UW(this.provider);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.j.ctmp=d;g0a(this);return f}};
g.k.vE=function(a,b,c){this.B={e$:Number(this.ya("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),mX:a,R9:b,isAd:c}};
g.k.rA=function(a,b,c){g.wZ(this,g.UW(this.provider),"ad_playback",[a,b,c])};
var D4={},ofb=(D4[5]="N",D4[-1]="N",D4[3]="B",D4[0]="EN",D4[2]="PA",D4[1]="PL",D4),vZ=[];n0a.prototype.update=function(){if(this.K){var a=this.provider.va.Tk()||0,b=g.UW(this.provider);if(a!==this.j||q0a(this,a,b)){var c;if(!(c=a<this.j||a-this.j>b-this.Dp+2||q0a(this,a,b))){c=this.provider.va.getVolume();var d=c!==this.ea,e=this.provider.va.isMuted()?1:0;e!==this.V?(this.V=e,c=!0):(!d||0<=this.C||(this.ea=c,this.C=b),c=b-this.C,0<=this.C&&2<c?(this.C=-1,c=!0):c=!1)}c&&(BZ(this),this.u=a);this.Dp=b;this.j=a}}};s0a.prototype.send=function(a){var b=this;if(!this.kb){var c=u0a(this),d=g.Yj(this.uri,c);this.ea&&!this.Z.N("html5_simplify_pings")?z0a(this,d):t0a(this,a).then(function(e){b.ea&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});W_a(d,e,{token:b.K,VQ:b.Zb,mdxEnvironment:b.mdxEnvironment},b.Z,a,b.qa,b.isFinal&&b.jg||b.Ba||b.D&&b.og)});
this.kb=!0}};
s0a.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var E4={},x0a=(E4.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,E4.LIVING_ROOM_APP_MODE_MAIN=1,E4.LIVING_ROOM_APP_MODE_KIDS=2,E4.LIVING_ROOM_APP_MODE_MUSIC=3,E4.LIVING_ROOM_APP_MODE_UNPLUGGED=4,E4.LIVING_ROOM_APP_MODE_GAMING=5,E4),F4={},w0a=(F4.EMBEDDED_PLAYER_MODE_UNKNOWN=0,F4.EMBEDDED_PLAYER_MODE_DEFAULT=1,F4.EMBEDDED_PLAYER_MODE_PFP=2,F4.EMBEDDED_PLAYER_MODE_PFL=3,F4),pfb={},r0a=(pfb[0]=0,pfb[1]=1,pfb);g.x(DZ,g.G);g.k=DZ.prototype;g.k.cf=function(){this.j.update();var a;if(a=this.provider.videoData.isLoaded()&&this.provider.videoData.ob&&this.u&&!this.qa)a=this.j,a=a.D+a.provider.va.Tk()-a.u>=this.provider.videoData.ob;a&&(this.u&&this.provider.videoData.ob&&(a=EZ(this,"delayplay"),a.Vf=!0,a.send(),this.qa=!0),A0a(this))};
g.k.Md=function(a){if(!this.isDisposed())if(g.yP(a.state,2)||g.yP(a.state,512))this.J="paused",(g.GP(a,2)||g.GP(a,512))&&this.u&&(HZ(this),IZ(this).send(),this.D=NaN);else if(g.yP(a.state,8)){this.J="playing";var b=this.u&&isNaN(this.C)?FZ(this):NaN;!isNaN(b)&&(0>FP(a,64)||0>FP(a,512))&&(a=E0a(this,!1),a.C=b,a.send())}else this.J="paused"};
g.k.xa=function(){g.G.prototype.xa.call(this);HZ(this);o0a(this.j)};
g.k.qc=function(){return u0a(EZ(this,"playback"))};
g.k.SA=function(){this.provider.videoData.K.eventLabel=LO(this.provider.videoData);this.provider.videoData.K.playerStyle=this.provider.Z.playerStyle;this.provider.videoData.Li&&(this.provider.videoData.K.feature="pyv");this.provider.videoData.K.vid=this.provider.videoData.videoId;var a=this.provider.videoData.K;var b=this.provider.videoData;b=b.isAd()||!!b.Li;a.isAd=b};
g.k.dk=function(a){var b=EZ(this,"engage");b.V=a;return v0a(b,I0a(this.provider))};H0a.prototype.isEmpty=function(){return this.endTime===this.startTime};JZ.prototype.N=function(a){return this.Z.N(a)};
var J0a={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.x(g.KZ,g.G);g.k=g.KZ.prototype;g.k.Md=function(a){if(g.GP(a,1024)||g.GP(a,512)||g.GP(a,4)){var b=this.B;0<=b.u||(b.j=-1,b.delay.stop());this.qoe&&(b=this.qoe,b.J||(b.u=-1))}if(this.provider.videoData.enableServerStitchedDai&&this.wg){var c;null==(c=this.u.get(this.wg))||c.Md(a)}else this.j&&this.j.Md(a);this.qoe&&this.qoe.Md(a);this.B.Md(a)};
g.k.cf=function(){if(this.provider.videoData.enableServerStitchedDai&&this.wg){var a;null==(a=this.u.get(this.wg))||a.cf()}else this.j&&this.j.cf()};
g.k.Vn=function(a){this.qoe&&this.qoe.Vn(a)};
g.k.pe=function(a,b){this.qoe&&j0a(this.qoe,a,b);this.B.onError(a)};
g.k.aE=function(a){this.qoe&&this.qoe.aE(a)};
g.k.ID=function(a){this.qoe&&this.qoe.ID(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
g.k.Tt=aa(43);g.k.ya=function(a,b,c){this.qoe&&this.qoe.ya(a,b,c)};
g.k.vE=function(a,b,c){this.qoe&&this.qoe.vE(a,b,c)};
g.k.rA=function(a,b,c){this.qoe&&this.qoe.rA(a,b,c)};
g.k.Ln=aa(16);g.k.HC=function(){if(this.qoe)return this.qoe.HC()};
g.k.qc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.wg){var a;null==(a=this.u.get(this.wg))||a.qc()}else if(this.j)return this.j.qc();return{}};
g.k.dk=function(a){return this.j?this.j.dk(a):function(){}};
g.k.SA=function(){this.j&&this.j.SA()};
g.k.getVideoData=function(){return this.provider.videoData};g.x(LZ,g.G);LZ.prototype.fM=function(a,b){if(!this.j.has(a)){var c=new g.KZ(new JZ(b,this.Z,this.va));b=this.u.getVideoData();this.j.set(a,c);a=SO(b);if(c.qoe){c=c.qoe;var d=b.videoId||"";c.contentCpn=b.clientPlaybackNonce;c.qa=d;c.V=a}}};
LZ.prototype.Gc=function(a){a=a||this.wg;return this.j.get(a)||this.u};g.x(MZ,g.G);g.k=MZ.prototype;g.k.hf=function(a,b){this.Jm();b&&2E3<=this.j.array.length&&this.qC("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.Yb(b.array,c,b.j)}this.u=NaN;this.Jm()};
g.k.Mp=function(a){1E4<a.length&&g.tG(new g.EB("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.isDisposed()){var b=new Set(a);this.B=this.B.filter(function(c){return!b.has(c)});
W0a(this.j,b);this.Jm()}};
g.k.qC=function(a,b){var c=(isNaN(this.u)?g.yP(this.D(),2)?0x8000000000000:1E3*this.V():this.u)-b;b=this.Xm().filter(function(d){return d.namespace===a&&d.end<c});
this.Mp(b);return b};
g.k.Xm=function(){return this.isDisposed()?[]:this.j.array};
g.k.reset=function(){this.started=!1;this.C.stop();this.j.array=[];this.B=[];this.Jm()};
g.k.Te=function(a){var b=this.Xm().filter(function(c){return c.namespace===a});
this.Mp(b);return b};
g.k.Md=function(a){this.started&&(this.Jm(),g.yP(a.qw,16)&&(a=V0a(this.j,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.C.start()))};
g.k.vM=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&-1===this.B.indexOf(d)&&(this.B.push(d),b.push([1,d]))}return b};
g.k.xM=function(a){var b=[];if(!a.length)return b;a.sort(g.OG);a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.B.splice(this.B.indexOf(c),1),b.push([2,c]);return b};
g.k.Jm=function(){this.J=!0;if(!this.K){for(var a=3;this.J&&a;)this.J=!1,this.K=!0,this.qW(),this.K=!1,a--;this.D().wd()&&(a=V0a(this.j,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.qa(),this.C.start(a)))}};
g.k.qW=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.yP(a,32)&&this.oa.start();for(var b=g.yP(this.D(),2)?0x8000000000000:1E3*this.V(),c=g.yP(a,2),d=[],e=[],f=g.u(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.xM(e));f=e=null;c?(a=T0a(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=U0a(this.j)):a=this.u<=b&&KBa(a)?S0a(this.j,this.u,b):T0a(this.j,b);
d=d.concat(this.vM(a));e&&(d=d.concat(this.xM(e)));f&&(d=d.concat(this.vM(f)));this.u=b;X0a(this,d)}};
g.k.xa=function(){this.B=[];this.j.array=[];g.G.prototype.xa.call(this)};
g.OW.fD(MZ,{hf:"crmacr",vM:"crmncr",xM:"crmxcr",qW:"crmis",Mp:"crmrcr"});g.x(PZ,g.SG);PZ.prototype.Tq=function(){return this.K};
PZ.prototype.Cq=function(){return Math.max(this.V()-QZ(this)*this.j,this.videoData.je())};g.x(UZ,g.G);UZ.prototype.Md=function(){g.Lq(this.B)};
UZ.prototype.nf=function(){var a=this,b=this.va.Qe(),c=this.va.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.yP(c,8)&&g.yP(c,16),h=this.va.kp().isBackground()||c.isSuspended();VZ(this,this.Ma,f&&!h,e,"qoe.slowseek",function(){},"timeout");
var l=isFinite(this.j);l=f&&l&&FBa(b,this.j);var m=!d||10<Math.abs(d-this.j);VZ(this,this.Oa,l&&m&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
var n=l&&XK(b.Jh(),this.j);m=this.va.Ca;l=!m||!m.policy.Ya;var p=function(){b.seekTo(a.j+.001)};
VZ(this,this.qa,n&&l&&!h,e,"qoe.slowseek",p,"jiggle_cmt");l=function(){return sZ(a.va)};
VZ(this,this.Ga,n&&!h,e,"qoe.slowseek",l,"new_elem");n=KBa(c);var q=g.eQ(c),t=b.Jh(),v=WK(t,d),y=0<=v&&t.end(v)>d+5,A=n&&q&&y,E=this.va.getVideoData();VZ(this,this.Ba,.002>d&&.002>this.j&&f&&g.JM(this.Z)&&g.MO(E)&&!h,e,"qoe.slowseek",l,"slow_seek_shorts");VZ(this,this.K,A&&!h,n&&!q,"qoe.longrebuffer",p,"jiggle_cmt");VZ(this,this.V,A&&!h,n&&!q,"qoe.longrebuffer",l,"new_elem_nnr");if(m){var K=m.getCurrentTime();f=b.Iv();f=Cua(f,K);f=!m.Xg()&&d===f;VZ(this,this.kb,n&&q&&f&&!h,n&&!q&&!f,"qoe.longrebuffer",
function(){b.seekTo(K)},"seek_to_loader")}f={};
p=WK(t,Math.max(d-3.5,0));A=0<=p&&d>t.end(p)-1.1;var I=0<=p&&p+1<t.length?t.start(p+1)-t.end(p):9999;f.mindex=v;f.disIndex=p;f.isdisc=0<=p&&A&&11>I;f.close2edge=A;f.gapsize=I;f.buflen=t.length;VZ(this,this.ea,n&&q&&!h,n&&!q,"qoe.longrebuffer",function(){},"timeout",f);
v=c.isSuspended();v=g.Fb(this.va.Pn,"ad")&&!v;VZ(this,this.D,v,!v,"qoe.start15s",function(){a.va.Fg("ad")},"ads_preroll_timeout");
f=.5>d-this.C;p=E.isAd()&&n&&!q&&f;v=function(){var F=a.va,S=F.rf.td();(!S||!F.videoData.isAd()||S.getVideoData().Tc!==F.getVideoData().Tc)&&F.videoData.Bf||F.Zg("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+F.videoData.videoId)};
VZ(this,this.Va,p,!p,"ad.rebuftimeout",v,"skip_slow_ad");f=E.isAd()&&q&&XK(b.Jh(),d+5)&&f;VZ(this,this.Ya,f,!f,"ad.rebuftimeout",v,"skip_slow_ad_buf");v=g.dQ(c)&&g.yP(c,64)&&!h;VZ(this,this.eb,v,e,"qoe.start15s",function(){},"timeout");
VZ(this,this.oa,!!m&&!m.Xa&&g.dQ(c),e,"qoe.start15s",l,"newElemMse");e=$K(t,0);VZ(this,this.Fa,g.MO(E)&&v&&q&&5<e,n&&!q,"qoe.longrebuffer",function(){fZ(a.va)},"reset_media_source");
c=g.dQ(c)&&!h;VZ(this,this.J,g.MO(E)&&c&&q&&y&&this.va.Sv(),n&&!q,"qoe.longrebuffer",l,"handoff_long_buffer_reload");this.C=d;this.B.start()}};
UZ.prototype.pe=function(a,b,c){b=this.qc(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.va.pe(new aN(a,b));this.u[a]=!0};
UZ.prototype.qc=function(a){a=Object.assign(this.va.qc(!0),a.qc());this.j&&(a.stt=this.j.toFixed(3));this.Z.N("html5_live_report_broadcast_timestamps")&&this.va.getVideoData().isLivePlayback&&(a.ct=this.va.getCurrentTime().toFixed(3),a.to=this.va.Hd().toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
SZ.prototype.reset=function(){this.j=this.u=this.B=this.startTimestamp=0;this.C=!1};
SZ.prototype.qc=function(){var a={},b=(0,g.mC)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.u&&(a.wtd=(b-this.u).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.x(j1a,g.G);g.k=j1a.prototype;g.k.setMediaElement=function(a){g.nB(this.eb);(this.mediaElement=a)?(w1a(this),WZ(this)):XZ(this)};
g.k.Md=function(a){this.oa.Md(a);this.N("html5_exponential_memory_for_sticky")&&(a.state.wd()?g.Lq(this.qa):this.qa.stop());if(this.mediaElement)if(8===a.qw.state&&KBa(a.state)&&g.eQ(a.state)){a=this.mediaElement.getCurrentTime();var b=this.mediaElement.Jh();var c=this.N("manifestless_post_live_ufph")||this.N("manifestless_post_live")?WK(b,Math.max(a-3.5,0)):WK(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.Eb-c)||(this.va.ya("seekover",
{b:VK(b,"_"),cmt:a}),this.Eb=c,this.seekTo(c,{Qv:!0,ke:"seektimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&(this.Z.N("embeds_enable_muted_autoplay")||g.SA(g.GM(this.Z)))&&!this.rb&&0<this.videoData.limitedPlaybackDurationInSeconds&&(O1a(this.va,this.getCurrentTime()+this.videoData.limitedPlaybackDurationInSeconds),this.rb=!0)};
g.k.getCurrentTime=function(){return!isNaN(this.j)&&isFinite(this.j)?this.j:this.mediaElement&&v1a(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.C||0};
g.k.Tk=function(){return this.getCurrentTime()-this.Hd()};
g.k.Cq=function(){return this.u?this.u.Cq():Infinity};
g.k.isAtLiveHead=function(a){if(!this.u)return!1;void 0===a&&(a=this.getCurrentTime());return RZ(this.u,a)};
g.k.Tq=function(){return!!this.u&&this.u.Tq()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.hR?!1:c.hR;var d=void 0===c.iR?0:c.iR,e=void 0===c.Qv?!1:c.Qv,f=void 0===c.WQ?0:c.WQ,h=void 0===c.ke?"":c.ke,l=void 0===c.seekSource?void 0:c.seekSource,m=void 0===c.oD?!1:c.oD,n=void 0===c.qZ?!1:c.qZ;if(void 0===c.iq?0:c.iq)a+=this.Hd();if(c=a<this.Ga&&!!this.Ca){this.va.ya("sdai",{sk2bk:a.toFixed(3),mt:(a-this.timestampOffset).toFixed(3),lstadj:this.Ga.toFixed(3)});this.Ga=NaN;this.timestampOffset-=1E3;var p;if(null!=(p=this.Ca)){wZa(p,
p.timestampOffset-1E3);var q=p.Ua,t=new Set;for(A in q.j){var v=q.j[A].index,y=v.Dv();y&&!t.has(y)&&(y.startTime+=1E3,y.endTime=y.startTime+y.duration,t.add(y));v.segments.length&&(y=v.segments[v.segments.length-1],v.segments=[],v.segments.push(y))}p.K&&p.K.iQ();NX(p.u,0,0,!0)}}var A=a;(p=!isFinite(A)||(this.u?RZ(this.u,A):A>=this.Pe())||!g.DO(this.videoData))||this.va.ya("seeknotallowed",{st:A,mst:this.Pe()});if(!p)return this.B&&(this.B=null,s1a(this)),Pf(this.getCurrentTime());if(.005>Math.abs(a-
this.j)&&this.V)return this.D;h&&(A=a,(this.Z.Id()||this.N("html5_log_seek_reasons"))&&this.va.ya("seekreason",{reason:h,tgt:A}));this.V&&XZ(this);this.D||(this.D=new tM);a&&!isFinite(a)&&m1a(this,!1);(h=n||c)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.B&&!this.videoData.B.j&&!(this.mediaElement&&0<this.mediaElement.Qj()&&0<ABa(this.mediaElement))||oO(this.videoData)&&this.je()===this.Pe(!1)?0:isFinite(h)||!oO(this.videoData)));h||(a=u1a(this,a,e));a&&!isFinite(a)&&m1a(this,!1);this.C=
a;this.Oa=f;this.j=a;this.u&&(e=this.u,f=a,d1a(e,f,!1),e1a(e,f));e=this.va;f=a;e.Ed.C=f;h=e.TB;h.mediaTime=f;h.j=!0;b&&j2a(e);e.tq&&f>e.videoData.endSeconds&&isFinite(f)&&Y1a(e);f<e.Pe()-.01&&(h=aQ(e.playerState,2),g.yP(h,8)&&(h=aQ(h,4)),e.vc(h));e.ra("SEEK_TO",e,f);this.D&&(b?d&&this.Va.start(d):(b={oD:m,seekSource:l},this.V=!0,i1a(this,b)));(b=this.va.tq)&&a>b.start&&Y1a(this.va);return this.D};
g.k.Pe=function(a){if(!this.videoData.isLivePlayback)return y2a(this.va);var b;return UO(this.videoData)&&(null==(b=this.mediaElement)?0:b.Bo())&&this.videoData.j?(a=this.getCurrentTime(),Vza(1E3*this.uf(a))+a):oO(this.videoData)&&this.videoData.kd&&this.videoData.j?this.videoData.j.Pe()+this.timestampOffset:this.videoData.B&&this.videoData.B.j?!a&&this.u?this.u.Cq():y2a(this.va)+this.timestampOffset:this.mediaElement?AA()?Vza(this.mediaElement.PF().getTime()):ABa(this.mediaElement)+this.timestampOffset||
this.timestampOffset:this.timestampOffset};
g.k.je=function(){var a=this.videoData?this.videoData.je()+this.timestampOffset:this.timestampOffset;if(UO(this.videoData)&&this.videoData.j){var b,c=Number(null==(b=this.videoData.progressBarStartPosition)?void 0:b.utcTimeMillis)/1E3;b=this.getCurrentTime();b=this.uf(b)-b;if(!isNaN(c)&&!isNaN(b))return Math.max(a,c-b)}return a};
g.k.CM=function(){if(!this.D){var a={ke:"seektimeline_forceResumeTime_singleMediaSourceTransition"};this.N("html5_report_seek_source_to_qoe")&&(a.seekSource=15);this.seekTo(this.C,a)}};
g.k.zH=function(){return this.V&&!isFinite(this.j)};
g.k.xa=function(){n1a(this,null);this.oa.dispose();g.G.prototype.xa.call(this)};
g.k.qc=function(){var a={};this.Ca&&Object.assign(a,this.Ca.qc());this.mediaElement&&Object.assign(a,this.mediaElement.qc());return a};
g.k.qP=function(a){this.timestampOffset=a};
g.k.getStreamTimeOffset=function(){return oO(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.k.Hd=function(){return this.timestampOffset};
g.k.uf=function(a){return this.videoData.j.uf(a-this.timestampOffset)};
g.k.Fv=function(){if(!this.mediaElement)return 0;if(EO(this.videoData)){var a=this.mediaElement,b=a.Jh();a=(0<ZK(b)&&a.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.je();b=this.Pe()-this.je();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.Fv()};
g.k.ww=function(a){this.J&&(this.J.j=a)};
g.k.N=function(a){return this.Z&&this.Z.N(a)};YZ.prototype.Ft=function(){return this.started};
YZ.prototype.start=function(){this.started=!0};
YZ.prototype.reset=function(){this.finished=this.started=!1};var C1a=!1;g.x(g.b_,g.SG);g.k=g.b_.prototype;g.k.xa=function(){this.KY();this.RI.stop();g.eA(this.II);lTa(this.Qg);this.visibility.unsubscribe("visibilitystatechange",this.Qg);R1a(this);g_(this);g.Cq.Tj(this.Fw);this.Ij();this.Sf=null;g.qb(this.videoData);g.qb(this.Yl);g.sb(this.B6);this.tq=null;g.SG.prototype.xa.call(this)};
g.k.rA=function(a,b,c,d){this.Gc().rA(a,b,c);this.N("html5_log_media_perf_info")&&this.ya("adloudness",{ld:d.toFixed(3),cpn:a})};
g.k.MM=function(){var a;return null==(a=this.Ca)?void 0:a.MM()};
g.k.QM=function(){var a;return null==(a=this.Ca)?void 0:a.QM()};
g.k.RM=function(){var a;return null==(a=this.Ca)?void 0:a.RM()};
g.k.OM=function(){var a;return null==(a=this.Ca)?void 0:a.OM()};
g.k.uj=function(){return this.videoData.uj()};
g.k.YM=function(){return this.wD};
g.k.fM=function(){!this.Mz||this.Mz.isDisposed();this.Mz=new g.KZ(new JZ(this.videoData,this.Z,this));this.wD=new LZ(this.Z,this,this.Mz)};
g.k.getVideoData=function(){return this.videoData};
g.k.W=function(){return this.Z};
g.k.Gc=function(){return this.wD.Gc()};
g.k.kp=function(){return this.visibility};
g.k.Qe=function(){return this.mediaElement};
g.k.TL=function(){if(this.videoData.isLoaded()){var a=this.Yl;0<g.xL(a.Ia.experiments,"html5_player_min_build_cl")&&551026372<g.xL(a.Ia.experiments,"html5_player_min_build_cl")&&w_a(a,"oldplayer");U1a(this)}else this.videoData.eh||this.videoData.Om?this.Et&&g.JM(this.Z)&&this.videoData.isLivePlayback||(this.videoData.eh?uza(this.videoData):(a=this.Gc(),a.qoe&&(a=a.qoe,yZ(a,"protected"),a.provider.videoData.D?a.gZ():a.provider.videoData.subscribe("dataloaded",a.gZ,a)),rza(this.videoData))):!this.videoData.loading&&
this.G3&&S1a(this)};
g.k.rJ=function(a){this.He=a;this.Ca&&this.Ca.rJ(a)};
g.k.kz=aa(7);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.yP(this.getPlayerState(),128)||(this.ra("internalAbandon"),this.pQ(!0),R1a(this),g.Cq.Tj(this.Fw));var a;null==(a=this.Z.Fl)||a.flush()};
g.k.po=function(){L0a(this.Gc())};
g.k.Zg=function(a,b,c,d,e,f){var h,l;g.dd(Ueb,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+tGa());b={errorCode:a,errorDetail:e,errorMessage:l||g.sU[h]||"",wM:h,Vm:f||"",TI:d,DG:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;f_(this,"dataloaderror");this.vc(ZP(this.playerState,128,b));g.Cq.Tj(this.Fw);g_(this);this.Wn()};
g.k.Fg=function(a){this.Pn=this.Pn.filter(function(b){return a!==b});
this.Cr.Ft()&&T1a(this)};
g.k.qp=function(){var a;(a=!!this.Pn.length)||(a=this.Oi.j.array[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.Tq=function(){return this.Ed.Tq()};
g.k.wd=function(){return this.playerState.wd()};
g.k.mD=function(){return this.playerState.mD()&&this.videoData.Fo};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.Sf){var a=this.Sf;a=a.videoData.gy.compose(a.videoData.sT);a=$H(a)}else a="auto";return a};
g.k.JC=aa(11);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.k.setMediaElement=function(a){if(this.mediaElement&&a.Bb()===this.mediaElement.Bb()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.nB(this.WA),this.mediaElement=a,this.mediaElement.va=this,k2a(this),this.Ed.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Ij();if(!this.playerState.isError()){var b=aQ(this.playerState,512);g.yP(b,8)&&!g.yP(b,2)&&(b=$P(b,1));a.isView()&&(b=aQ(b,64));this.vc(b)}this.mediaElement=a;this.mediaElement.va=this;WM(this.Z)&&
this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);k2a(this);this.Ed.setMediaElement(this.mediaElement);this.N("html5_prewarm_media_source")&&!this.Yl.sD&&BBa(this.mediaElement)}};
g.k.Ij=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.Ed.C=c);this.Ed.setMediaElement(null);!a&&jL(this)?g2a(this):k_(this);this.Ca&&(gZ(this.Ca),l_(this,b));this.hw.stop();if(this.mediaElement&&(!this.Cr.Ft()||this.playerState.isError()||g.yP(this.playerState,2)||this.vc($P(this.playerState,512)),this.mediaElement)){g.nB(this.WA);if(a||!this.mediaElement.isView())this.N("html5_rebase_video_to_ad_timeline")&&this.Cb.Au("mesv_s"),this.mediaElement.stopVideo(),
m_(this);this.mediaElement=this.mediaElement.va=null}}};
g.k.playVideo=function(a){a=void 0===a?!1:a;var b=this,c,d,e,f,h,l;return g.Ha(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.yP(b.playerState,128))return m.return();if(b.Yl.DH())return b.ra("signatureexpired"),m.return();b.mediaElement&&K0a(b.Gc());X1a(b);(g.yP(b.playerState,64)||a)&&b.vc($P(b.playerState,8));return b.Cr.finished&&b.mediaElement?b.Sf||!b.eE?m.Ka(2):g.z(m,b.eE,3):m.return()}if(2!=m.j&&g.yP(b.playerState,128))return m.return();
if(!b.videoData.B)return b.videoData.isLivePlayback&&!g.gwa(b.Z.D,!0)?(c="html5.unsupportedlive",d=2):(c=b.videoData.uj()?"fmt.unplayable":"fmt.noneavailable",d=1),g.tG(Error("selectableFormats")),b.Zg(c,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),m.return();if(b.Mh()&&b.videoData.B.j)return m.return(e_(b));if(mO(b.videoData)&&(e=b.getCurrentTime()<b.je()-15,f=g.DO(b.videoData)&&g.cQ(b.playerState),(h=g.yP(b.playerState,1024))||!e&&!f||(f?b.seekTo(Infinity,{ke:"videoplayer_unpauseLiveOnly"}):
b.seekTo(b.je(),{ke:"videoplayer_outOfWindow"})),!b.isAtLiveHead(void 0,!0)&&b.Tq()&&(l={ke:"videoplayer_peggedToLive"},b.N("html5_report_seek_source_to_qoe")&&(l.seekSource=34),b.seekTo(Infinity,l)),g.yP(b.playerState,256)&&b.videoData.Oa&&b.Ed.zH()))return b.vc(bQ(b.playerState,8,4)),m.return();g.yP(b.playerState,4)&&g.yP(b.playerState,16)&&b.vc(bQ(b.playerState,9,4));if(a_(b))return r2a(b),m.return();q2a(b);g.xa(m)})};
g.k.Us=function(){if(!this.Sf)return[];var a=C_a(this.rk,this.Sf,this.Ev());return this.Sf.j.Us(a)};
g.k.zC=function(){if(!this.Sf)return[];var a=C_a(this.rk,this.Sf,this.Ev());return this.Sf.j.zC(a)};
g.k.Ev=function(){var a=this.Oe?this.Oe.Ev():pza(this.videoData)&&this.videoData.j&&fI(this.videoData.j)?this.videoData.Dk?dO:f_a:dO;this.jQ&&(a=a.compose(neb));return a};
g.k.TG=function(){var a=this.ud(),b=this.rf.ge().videoId;return this.rf.Mt.TG(a)||this.rf.Mt.TG(b)};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.B&&!this.videoData.B.j?$H(this.videoData.gy):ZH[uL()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a,b){this.videoData.Vf!==a&&(this.ya("toggle51",{pref:a}),this.videoData.Vf=a,g.rB("yt-player-audio51",a,b?void 0:2592E3),o_a(this))};
g.k.getUserAudio51Preference=function(){var a=1;RM(this.Z)&&this.N("html5_ytv_surround_toggle_default_off")&&(a=0);var b;return null!=(b=g.sB("yt-player-audio51"))?b:a};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(c2a(this)){var a=e2a(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.Uy=function(){if(this.Ca){var a=this.Ca,b=a.Uy;var c=this.videoData;c=c.N("html5_ssdai_use_post_for_media")&&c.enableServerStitchedDai?!1:oO(c)&&c.Bf&&!c.isAd();b.call(a,c)}};
g.k.kt=function(){return this.Xa};
g.k.bA=function(a){this.jA.set(a.initData,a);this.Oe&&(this.Oe.bA(a),this.N("html5_eme_loader_sync")||this.jA.remove(a.initData))};
g.k.rP=function(a){this.videoData.Kl=g.XH("auto",a,!1,"u");$Z(this)};
g.k.ww=function(a){var b=a.reason,c=a.j.info;if(c!==this.videoData.C){var d=!this.videoData.C;this.videoData.C=c;"m"!==b&&"t"!==b&&(b=d?"i":"a");var e="m"===b||"t"===b;b=new z_a(this.videoData,c,b,"");this.Gc().ID(b);d||this.ra("internalaudioformatchange",this.videoData,e)}this.Ed.ww(a.j.index)};
g.k.nI=function(a){this.ra("localmediachange",a)};
g.k.QA=function(){var a;null==(a=this.Ca)||a.QA(this.Z)};
g.k.DH=function(){return this.Yl.DH()};
g.k.handleError=function(a){this.Yl.handleError(a)};
g.k.RH=function(a){isNaN(this.uf())||(a=this.uf()-a,a=this.getCurrentTime()-a,this.seekTo(a))};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.yP(this.playerState,64)||g.yP(this.playerState,2))&&!a)if(g.yP(this.playerState,8))this.vc(bQ(this.playerState,4,8));else if(this.mD())a_(this);else return;g.yP(this.playerState,128)||(a?this.vc($P(this.playerState,256)):this.vc(bQ(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.DO(this.videoData)&&this.Ca&&l_(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.Ca&&(l_(this,!1),this.Ca.Qk())};
g.k.Wn=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(jL(this)&&b){var c;null==(c=this.mediaElement)||c.Wn()}else{var d;null==(d=this.mediaElement)||d.stopVideo()}m_(this);g_(this);g.yP(this.playerState,128)||(a?this.vc(aQ(aQ($P(this.playerState,4),8),16)):this.vc(ZP(this.playerState)));this.videoData.videoId&&this.Z.Ma.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;g.yP(this.playerState,2)&&a_(this);b.e6&&this.vc($P(this.playerState,2048));this.Ed.seekTo(a,b);this.Oi.Jm()};
g.k.getCurrentTime=function(){return this.Ed.getCurrentTime()};
g.k.Tk=function(){return this.Ed.Tk()};
g.k.Cq=function(){return this.Ed.Cq()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Hd())};
g.k.jz=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.jz());return 0<=a?a:this.getCurrentTime()};
g.k.uf=function(){var a;return(null==(a=this.videoData.j)?0:a.uf)?this.videoData.j.uf(this.getCurrentTime()-this.Hd()):this.mediaElement&&(a=this.mediaElement.PF())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN};
g.k.getDuration=function(){if(SO(this.videoData)&&this.He){var a=this.He.timeline.j;if(a){var b=0;a=a.j.values();a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b+=(c.SG()-c.gm())/1E3}else b=0}else b=this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Hd():this.Pe()?this.Pe():0;return b};
g.k.OC=function(){var a=new P0a;if(this.Ca){var b=this.Z.schedule;a.Xr=b.K;a.Bu=b.Ba;a.bandwidthEstimate=rM(b);a.j={d:pM(b).toFixed(2),st:(1E9*(b.u.pj()||0)).toFixed(2),bw:b.j.pj().toFixed(0),abw:b.V.pj().toFixed(0),v50:lM(b.B,.5).toFixed(2),v92:lM(b.B,.92).toFixed(2),v96:lM(b.B,.96).toFixed(2),v98:lM(b.B,.98).toFixed(2)};b=this.Ca;if(b.Xa&&!b.Xa.jh()&&(a.ev=BY(b.videoTrack),a.u=BY(b.audioTrack),b.policy.B)){var c=AY(b.videoTrack),d=AY(b.audioTrack),e=VK(b.Xa.u.dg(),"_",5),f=VK(b.Xa.j.dg(),"_",5);
Object.assign(a.j,{lvq:c,laq:d,lvb:e,lab:f})}a.bandwidthEstimate=BX(b.J)}else this.mediaElement&&(a.ev=XP(this.mediaElement));a.Xr=this.Xr;a.Bu=this.Bu;a.B=this.isAtLiveHead()&&this.wd()?M1a(this):NaN;return a};
g.k.wE=function(a,b){this.Bu+=a;this.Xr+=b};
g.k.Fv=function(){return this.mediaElement?g.DO(this.videoData)?1:EO(this.videoData)?this.isAtLiveHead()||this.Tq()?1:this.Ed.Fv():this.mediaElement.Fv():0};
g.k.qc=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.Gc().qc());this.mediaElement&&(Object.assign(b,this.mediaElement.qc()),Object.assign(b,this.SC()));this.Ca&&Object.assign(b,this.Ca.qc());this.Oe&&(b.drm=JSON.stringify(this.Oe.qc()));b.state=this.playerState.state.toString(16);g.yP(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.gh));this.qp()&&(b.prerolls=this.Pn.join(","));this.videoData.xd&&(b.ismb=this.videoData.xd);"UNKNOWN"!==this.videoData.latencyClass&&
(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.rf.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&rL(this.videoData.j)&&(b.segduration=rL(this.videoData.j)),a=this.Ed,b.lat=a.J?sLa(a.J.C):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Ri.toFixed(3);if(a=g.HT(this))b.optimal_format=a.video.qualityLabel;
b.user_qual=uL();b.release_version="youtube.player.web_20230723_00_RC01"}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.sy([a])};
g.k.removeCueRange=function(a){this.Oi.Mp([a])};
g.k.qC=function(a,b){return this.Oi.qC(a,b)};
g.k.sy=function(a,b){this.Oi.hf(a,b)};
g.k.yE=function(a){this.Oi.Mp(a)};
g.k.Xm=function(){return this.Oi.Xm()||[]};
g.k.Mh=function(){return this.visibility.Mh()};
g.k.nu=function(){this.mediaElement&&this.mediaElement.nu()};
g.k.m9=function(){f_(this)};
g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.k.sP=function(a){var b=a.target.Of();if(this.mediaElement&&this.mediaElement.Of()&&this.mediaElement.Of()===b){v2a(this,a.type);switch(a.type){case "error":var c=IBa(this.mediaElement)||"";if("capability.changed"===c){this.N("html5_restart_on_capability_change")?(this.ya("capchg",{msg:this.mediaElement.Mf()}),sZ(this,!0)):e_(this);return}if(0<this.mediaElement.tf()&&s_a(this.Yl,c,{msg:this.mediaElement.Mf()}))return;if(this.isBackground()&&4===this.mediaElement.tf()){this.Wn();h_(this,"unplayable");
return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Xa||0<c)&&1!==c&&this.ul(c);break;case "ratechange":this.Ca&&this.Ca.setPlaybackRate(this.mediaElement.getPlaybackRate());c=this.Oi;c.started=!0;c.Jm();this.Gc().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":x2a(this);this.ra("onLoadedMetadata");m2a(this);c=this.uf();this.videoData.Oo&&(this.videoData.Oo=c);break;case "loadstart":m2a(this);break;case "progress":case "suspend":this.Bc();
this.ra("onLoadProgress",this,this.Fv());break;case "playing":this.Cb.Au("plev");this.mQ&&(this.mQ=!1,this.isAtLiveHead()||this.seekTo(Infinity,{ke:"videoplayer_onPlaying"}));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();var d=this.mediaElement&&0===this.mediaElement.Qj();if(c&&(!this.eI||d))return;this.eI=this.eI||!!this.mediaElement.getCurrentTime();l2a(this);this.Bc();if(!this.mediaElement||this.mediaElement.Of()!==b)return;this.ra("onVideoProgress",this,this.getCurrentTime());
break;case "waiting":if(0<this.mediaElement.Iv().length&&0===this.mediaElement.Jh().length&&0<this.mediaElement.getCurrentTime()&&5>this.mediaElement.getCurrentTime()&&this.Ca)return;this.N("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.Bo()||2<this.mediaElement.Qj()||!this.mediaElement.Xg()&&XK(this.mediaElement.Jh(),this.mediaElement.getCurrentTime()))&&(c=this.mediaElement.qc(),c.bh=XP(this.mediaElement).toFixed(3),this.ya("uwe",c));break;case "resize":x2a(this);this.videoData.u&&"auto"===
this.videoData.u.video.quality&&this.ra("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.ZT&&g.yP(this.playerState,8)&&!g.yP(this.playerState,1024)&&0===this.getCurrentTime()&&g.dC){h_(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Of()===b){this.ra("videoelementevent",a);b=this.playerState;c=this.videoData.clientPlaybackNonce;if(!g.yP(b,128)){d=this.TB;var e=this.mediaElement,f=this.Z.experiments,h=b.state;e=e?e:a.target;var l=e.getCurrentTime();
if(!g.yP(b,64)||"ended"!==a.type&&"pause"!==a.type){var m=e.ji()||1<l&&1.1>Math.abs(l-e.getDuration()),n="pause"===a.type&&e.ji();l="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.yP(b,4)&&!NZ(d,l);if(n||m&&l)0<e.aH()&&e.Of()&&(h=14);else switch(a.type){case "error":IBa(e)&&(h|=128);break;case "pause":g.yP(b,256)?(h^=256)||(h=64):g.yP(b,32)||g.yP(b,2)||g.yP(b,4)||(h=4,g.yP(b,1)&&g.yP(b,8)&&(h|=1));break;case "playing":m=h;h=(h|8)&-1093;f&&f.sb("html5_distrust_playing")&&m&4?(h|=1,
OZ(d,e.getCurrentTime(),(0,g.mC)(),XP(e))):NZ(d,e.getCurrentTime())&&(h&=-2);g.yP(b,1)&&OZ(d,e.getCurrentTime(),(0,g.mC)(),XP(e))&&(h|=1);break;case "seeking":h|=16;g.yP(b,8)&&(h|=1);h&=-3;break;case "seeked":h&=-17;break;case "waiting":g.yP(b,2)||(h|=1);OZ(d,e.getCurrentTime(),(0,g.mC)(),XP(e));break;case "timeupdate":f=g.yP(b,16),m=g.yP(b,4),(g.yP(b,8)||f)&&!m&&NZ(d,e.getCurrentTime())&&(h=8),OZ(d,e.getCurrentTime(),(0,g.mC)(),XP(e))&&(h|=1)}}d=h;h=null;d&128&&(h=a.target,e=IBa(h),f=1,e?("capability.changed"===
e&&(f=2),m="GENERIC_WITHOUT_LINK",n=h.qc(),n.mediaElem="1",/AUDIO_RENDERER/.test(h.Mf())&&(m="HTML5_AUDIO_RENDERER_ERROR"),h={errorCode:e,errorMessage:g.sU[m]||"",wM:m,TI:$M(n),DG:f,cpn:b.gh?b.gh.cpn:""}):h=null,h&&(h.cpn=c));b=ZP(b,d,h)}!g.yP(this.playerState,1)&&g.yP(b,1)&&u2a(this,"evt"+a.type);this.vc(b)}}};
g.k.Q6=function(a){a="available"===a.j.availability;a!==this.gD&&(this.gD=a,this.ra("airplayavailabilitychange"))};
g.k.R6=function(){var a=(0,g.mC)(),b=this.mediaElement.Mh();this.ya("airplay",{ia:b});!b&&!isNaN(this.GH)&&2E3>a-this.GH||(this.GH=a,b!==this.Mh()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Qg()),this.ya("airplay",{rbld:b}),o_a(this)),this.ra("airplayactivechange"))};
g.k.VC=function(a){if(this.Ca){var b=this.Ca,c=b.u,d=b.currentTime,e=Date.now()-c.ea;c.ea=NaN;c.ya("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.D)&&3!==c.u&&gZa(c.Ca,d,c.D,c.B);c.K=NaN;MX(c,4,3===c.u?"adfps":"adf");gZ(b)}};
g.k.Bc=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){p1a(this.Ed,this.wd());var c=this.getCurrentTime();this.Ca&&(g.yP(this.playerState,4)&&g.DO(this.videoData)||uZa(this.Ca,c));5<c&&(this.Ed.C=c);var d=g.MB();d?g.Cq.Tj(this.Fw):g.dA(this.Fw);var e=this.mediaElement.Bo();if((g.eQ(this.playerState)||!e||UO(this.videoData))&&!g.yP(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.yP(b.playerState,128)){b.Z.Id()&&g.xL(b.Z.experiments,"html5_log_rebuffer_events")&&
v2a(b,"pfx");var h=b.getCurrentTime(),l=XP(b.mediaElement),m=g.yP(b.playerState,8),n=NZ(b.TB,h),p=OZ(b.TB,h,(0,g.mC)(),l);m&&n?b.vc(aQ(b.playerState,1)):m&&p?(m=b.getDuration(),n=mO(b.videoData),m&&1.1>Math.abs(m-h)?(b.ya("setended",{ct:h,bh:l,dur:m,live:n}),b.mediaElement.gt()?b.seekTo(0,{ke:"videoplayer_loop"}):VW(b)):(g.eQ(b.playerState)||u2a(b,"progress_fix"),b.vc($P(b.playerState,1)))):(m&&!n&&!p&&0<h&&(m=(Date.now()-b.sD)/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)})),g.cQ(b.playerState)&&g.eQ(b.playerState)&&5<XP(b.mediaElement)&&b.vc(aQ(b.playerState,1)));b.Bc()}};
0===this.mediaElement.Iv().length?this.Fw=d?g.Cq.Ki(f,100):g.bA(f,100):this.Fw=d?g.Cq.Ki(f,500):g.bA(f,500)}this.videoData.CD=c;!a&&this.wd()&&p2a(this);K_a(this.rk,this.Sf,this.Qe(),this.isBackground())&&$Z(this);this.ra("progresssync",this,a);e&&UO(this.videoData)&&this.ra("onVideoProgress",this,this.getCurrentTime())}};
g.k.a5=function(){this.Zg("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.HC=function(){return this.Gc().HC()};
g.k.IM=function(){return this.Ca?this.Ca.IM():rM(this.Z.schedule,!0)};
g.k.L3=function(){g.eQ(this.playerState)&&I_a(this.rk,this.Sf)&&$Z(this)};
g.k.vc=function(a){if(g.JBa(this.playerState,a))this.Z.Id()&&a.seekSource!==this.playerState.seekSource&&this.ya("ssdiff",{ps:(this.playerState.seekSource||"").toString(),ns:(a.seekSource||"").toString()});else{var b=new g.EP(a,this.playerState);this.playerState=a;w2a(this);var c=!this.KI.length;this.KI.push(b);var d=this.mediaElement&&this.mediaElement.Xg();if(g.GP(b,1)&&!g.yP(b.qw,16)&&!d&&g.yP(this.playerState,8)&&!g.yP(this.playerState,64)&&this.Ca){d=this.Ca;d.Uq=!0;if(d.policy.ea&&d.Xa){var e,
f,h,l;d.ya("lr_rb",{c:d.currentTime,s:d.Xg(),ab:VK(d.Xa.j.dg()),ala:null==(e=xY(d.audioTrack))?void 0:e.Td(),alr:null==(f=d.audioTrack.u)?void 0:f.Td(),vb:VK(d.Xa.u.dg()),vla:null==(h=xY(d.videoTrack))?void 0:h.Td(),vlr:null==(l=d.videoTrack.u)?void 0:l.Td()})}this.mediaElement&&5<=XP(this.mediaElement)&&((e=g.xL(this.Z.experiments,"html5_non_network_rebuffer_duration_ms"))?this.pX.start(e):I_a(this.rk,this.Sf)&&$Z(this))}(e=g.xL(this.Z.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&
g.yP(a,1)&&(g.yP(a,8)||g.yP(a,16))?this.oL.start(e):this.oL.stop();(0>FP(b,8)||g.GP(b,1024))&&this.hw.stop();!g.GP(b,8)||this.videoData.Oa||g.yP(b.state,1024)||this.hw.start();g.yP(b.state,8)&&0>FP(b,16)&&!g.yP(b.state,32)&&!g.yP(b.state,2)&&this.playVideo();g.yP(b.state,2)&&EO(this.videoData)&&(this.ul(this.getCurrentTime()),this.Bc(!0));g.GP(b,2)&&this.pQ(!0);g.GP(b,128)&&this.Wn();this.videoData.j&&this.videoData.isLivePlayback&&!this.h_&&(0>FP(b,8)?(a=this.videoData.j,a.C&&a.C.stop()):g.GP(b,
8)&&this.videoData.j.resume());this.Ed.Md(b);this.Gc().Md(b);if(c&&!this.isDisposed())try{for(var m=g.u(this.KI),n=m.next();!n.done;n=m.next()){var p=n.value;this.Oi.Md(p);this.ra("statechange",p)}}finally{this.KI.length=0}}};
g.k.LD=function(){this.videoData.isLivePlayback||this.N("html5_disable_connection_issue_event")||this.ra("connectionissue")};
g.k.mP=function(){this.Cb.tick("qoes")};
g.k.CM=function(){this.Ed.CM()};
g.k.mI=function(a,b,c,d){a:{var e=this.Yl;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=bN(b);"drm.keyerror"===a&&this.Oe&&1<this.Oe.u.keys.length&&96>e.C&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.u&&e.videoData.u.video.isHdr())y_a(e,a);else{if(e.va.Zg(a,b,d,c),p_a(e,{detail:c}))break a}else e.pe(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.ya("retrydrm",{sessionLimitExhausted:1}),e.C++,t2a(e.va))}};
g.k.C7=function(){var a=this,b=g.xL(this.Z.experiments,"html5_license_constraint_delay"),c=JA();b&&c?(b=new g.Kq(function(){i_(a);f_(a)},b),g.H(this,b),b.start()):(i_(this),f_(this))};
g.k.OD=function(a){this.ra("heartbeatparams",a)};
g.k.Hp=function(a){this.ya("keystatuses",VZa(a));var b="auto",c=!1;this.videoData.u&&(b=this.videoData.u.video.quality,c=this.videoData.u.video.isHdr());if(this.N("html5_drm_check_all_key_error_states")){var d=WZa(b,c);d=nZ(a)?XZa(a,d):a.C.includes(d)}else{a:{b=WZa(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.V){var f;if(null==(f=this.Oe)?0:FL(f.j))if(null==(c=this.Oe))c=
0;else{b=f=void 0;e=g.u(c.u.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=YZa(h,"SD")),b||(b=YZa(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});y_a(this.Yl);return}}else{this.videoData.oB||(this.videoData.oB=!0,this.ya("drm",{dphdr:1}),sZ(this,!0));return}var l;if(null==(l=this.Oe)?0:FL(l.j))return}else if(l=a.V&&d,c&&!l){y_a(this.Yl);return}d||XZa(a,"AUDIO")&&XZa(a,"SD")||(a=VZa(a),this.jQ?(this.ra("drmoutputrestricted"),
this.N("html5_report_fatal_drm_restricted_error_killswitch")||this.Zg("drm.keyerror",2,void 0,"info."+a)):(this.jQ=!0,this.pe(new aN("qoe.restart",Object.assign({},{retrydrm:1},a))),$Z(this),t2a(this)))};
g.k.E7=function(){if(!this.videoData.Oa&&this.mediaElement&&!this.isBackground()){var a="0";0<this.mediaElement.Qj()&&5<=XP(this.mediaElement)&&this.videoData.B&&this.videoData.B.j&&(this.vc($P(this.playerState,1)),u2a(this,"load_soft_timeout"),this.ra("playbackstalledatstart"),a="1");w2a(this);var b=this.videoData.B;a={restartmsg:a,mfmt:!pza(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].me)||this.Oe),mfmtinfo:!this.videoData.u,prerolls:this.qp()?this.Pn.join(","):
"0"};if(this.Oe){b=this.Oe;if(0>=b.u.size){var c="ns;";b.ea||(c+="nr;");b=c+="ql."+b.B.length}else b=VZa(b.u.values().next().value),b=$M(b);a.drmp=b}var d;Object.assign(a,(null==(d=this.Ca)?void 0:d.qc())||{});var e;Object.assign(a,(null==(e=this.mediaElement)?void 0:e.qc())||{});this.Gc().pe("qoe.start15s",$M(a));this.ra("loadsofttimeout")}};
g.k.ul=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,f_(this))};
g.k.pQ=function(a){var b=this;a=void 0===a?!1:a;if(!this.XF){NH("att_s","player_att")||SH("att_s",void 0,"player_att");var c=new g.GKa(this.videoData);if("c1a"in c.j&&!g.vS.isInitialized()&&(SH("att_wb",void 0,"player_att"),2===this.CL&&.01>Math.random()&&g.tG(Error("Botguard not available after 2 attempts")),a&&this.Z.experiments.sb("html5_atr_disable_force_fallback")&&(a=!1),!a&&5>this.CL)){g.Lq(this.DL);this.CL++;return}if("c1b"in c.j){var d=N0a(this.Gc());d&&JKa(c).then(function(e){e&&!b.XF&&
d?(SH("att_f",void 0,"player_att"),d(e),b.XF=!0):SH("att_e",void 0,"player_att")},function(){SH("att_e",void 0,"player_att")})}else(a=g.HKa(c))?(SH("att_f",void 0,"player_att"),M0a(this.Gc(),a),this.XF=!0):SH("att_e",void 0,"player_att")}};
g.k.Pe=function(a){return this.Ed.Pe(void 0===a?!1:a)};
g.k.je=function(){return this.Ed.je()};
g.k.Hd=function(){return this.Ed?this.Ed.Hd():0};
g.k.getStreamTimeOffset=function(){return this.Ed?this.Ed.getStreamTimeOffset():0};
g.k.Fq=function(){var a=0;this.Z.N("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Hd():this.getStreamTimeOffset());return a};
g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&D_a(this.rk,null==(b=this.videoData.B)?void 0:b.videoInfos)&&$Z(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.u&&(a=this.videoData.u.video.quality,"auto"===a&&this.mediaElement)){var b=BP(this);b&&0<b.videoHeight&&(a=CK(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.u&&this.videoData.u.video&&this.videoData.u.video.isHdr())};
g.k.SA=function(){this.Gc().SA()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.Gc();c.j?(c=EZ(c.j,"engage"),c.V=a,c.send(b)):b&&b()};
g.k.dk=function(a){return this.Gc().dk(a)};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;return mO(this.videoData)&&(this.RV||b)?this.Ed.isAtLiveHead(a):!1};
g.k.Ys=function(){var a=this.Pe(),b=this.getCurrentTime(),c;(c=!mO(this.videoData))||(c=this.Ed,c=!(c.u&&c.u.B));return c||this.Tq()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.Ln=aa(15);g.k.Tt=aa(42);g.k.Vn=function(a){this.Gc().Vn(a)};
g.k.SC=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.k.setLoop=function(a){this.loop=a;this.mediaElement&&WM(this.Z)&&this.mediaElement.setLoop(a);this.Ca&&this.N("html5_loop_skip_set_end_of_stream")&&(a?this.Ca.policy.Ya=!0:eZ(this.Ca))};
g.k.gt=function(){return this.mediaElement&&WM(this.Z)?this.mediaElement.gt():this.loop};
g.k.qP=function(a){this.ya("timestamp",{o:a.toString()});this.Ed.qP(a)};
g.k.hd=function(a){this.Cb.tick(a)};
g.k.Fi=function(a){return this.Cb.Fi(a)};
g.k.Au=function(a){this.Cb.Au(a)};
g.k.ya=function(a,b,c){c=void 0===c?!1:c;this.Gc().ya(a,b,c)};
g.k.WP=function(a,b,c){c=void 0===c?!1:c;this.Gc().ya(a,b,c)};
g.k.pe=function(a){this.Gc().pe(a.errorCode,$M(a.details));if(this.N("html5_record_sliceinfo_for_live_on_error")&&(a=a.errorCode,this.videoData.isLivePlayback&&("qoe.longrebuffer"===a||"qoe.slowseek"===a))){a=this.Ca?WWa(this.Ca.videoTrack):{};var b,c;this.ya("lasoe",Object.assign(this.Ca?WWa(this.Ca.audioTrack):{},null==(b=this.Xa)?void 0:null==(c=b.j)?void 0:c.WG()));var d,e;this.ya("lvsoe",Object.assign(a,null==(d=this.Xa)?void 0:null==(e=d.u)?void 0:e.WG()))}};
g.k.vE=function(a,b,c){this.Gc().vE(a,b,c)};
g.k.eC=function(a){this.videoData.ET=!0;this.pe(new aN("sabr.fallback",a));sZ(this,!0)};
g.k.xG=function(a){this.videoData.zW=!0;this.pe(new aN("qoe.restart",a));sZ(this,!0)};
g.k.getPlayerSize=function(){return this.TE.getPlayerSize()};
g.k.fk=function(){return this.TE.fk()};
g.k.di=function(){return this.Cb};
g.k.Gq=function(){return this.rf.Gq()};
g.k.getVolume=function(){return this.rf.getVolume()};
g.k.hD=function(){return this.rf.hD()};
g.k.isMuted=function(){return this.rf.isMuted()};
g.k.cz=function(){return this.rf.cz()};
g.k.FC=function(){return this.rf.FC()};
g.k.vC=function(){return this.rf.vC()};
g.k.N=function(a){return this.Z.N(a)};
g.k.AL=function(){if(kO(this.videoData,"html5_set_debugging_opt_in")){var a=g.yB();g.zB(0,183)||(BB(183,!0),a.save())}};
g.k.KY=function(){if(g.dQ(this.playerState)){var a=c_.BM();0!==Object.keys(a).length&&this.Gc().ya("profile",a)}this.RI.start()};
g.k.Or=function(){var a=this.getCurrentTime(),b=a-this.Hd();var c=this.mediaElement?ZK(this.mediaElement.Jh()):0;c=Math.floor(Math.max(c-b,0))+100;var d;if(null==(d=this.Ca)?0:d.IE(b,this.Pe()))return this.ya("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var e;return(null==(e=this.Ca)?0:e.Or(b,c))?(this.ya("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),x1a(this.Ed,a),!0):!1};
g.k.Id=function(){return this.Z.Id()};
g.k.dN=function(){if(this.N("html5_generate_content_po_token")&&this.videoData.videoId)return this.videoData.f3||this.rf.BO(this.videoData.videoId);this.rf.oR();return this.Z.pg||""};
g.k.ud=function(){return this.videoData.videoId};
g.k.nz=function(a){return this.Ca?this.Ca.nz(a):""};
g.k.mz=function(){return this.rf.zw};
g.k.Sv=function(){return this.rf.Sv()};
g.k.eQ=function(a){this.ya("requestUtcSeek",{time:a});var b;null==(b=this.Ca)||b.eQ(a)};
g.k.YD=function(a){this.rf.YD(a)};g.x(g.n_,g.G);g.n_.create=function(a,b,c,d){try{var e="string"===typeof a?a:"player"+g.ab(a),f=G4[e];if(f){try{f.dispose()}catch(l){g.sG(l)}G4[e]=null}var h=new g.n_(a,b,c,d);g.tb(h,function(){G4[e]=null;h.b_&&h.b_()});
return G4[e]=h}catch(l){throw g.sG(l),(l&&l instanceof Error?l:Error(String(l))).stack;}};
g.k=g.n_.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.dn=function(){this.MN||(this.MN=g.cS(CQ(),pGa()));return this.MN};
g.k.Ij=function(){if(this.mediaElement){this.YA&&(this.events.Mc(this.YA),this.YA=null);g.nB(this.Lt);this.Ob&&this.Ob.Ij(!0);this.template.Ij();try{this.N("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.bJ()}catch(a){g.tG(a)}this.mediaElement=null}};
g.k.td=function(){return this.Ob};
g.k.au=function(){this.Ob!==this.Ib&&WW(this,this.Ib)};
g.k.Ry=function(a,b,c){var d=this,e=this.Cb;2===a&&(e=new qNa(this.Z));return new g.b_(this.Z,a,e,this.template,function(f){return d.Dr.ra.apply(d.Dr,[f].concat(g.qa(g.Ia.apply(1,arguments))))},function(){return d.bb.getVisibilityState()},this.visibility,this,b,c)};
g.k.W6=function(){t_(this)||this.Pp(5)};
g.k.Z7=function(a){if(!t_(this)){l3a(this);var b=a.getPlayerState();a.mD()?this.pauseVideo():g.dQ(b)&&this.playVideo()}};
g.k.canPlayType=function(a){return RK(a)};
g.k.W=function(){return this.Z};
g.k.getVideoData=function(){return this.Ob.getVideoData()};
g.k.QC=aa(9);g.k.ge=function(){return this.Ib.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.FS(this,a);return a?g.TO(a.getVideoData())?1:(a=a.Qe())?a.Fv():0:0};
g.k.qb=function(){return this.template};
g.k.Fb=function(){return this.bd};
g.k.di=function(){return this.Cb};
g.k.DA=function(a){var b=g.FS(this,1);b&&VW(b,a)};
g.k.Gq=function(){return this.bd.Gq()};
g.k.getVolume=function(){return Math.round(this.bb.getVolume())};
g.k.hD=function(){return this.bb.isFullscreen()};
g.k.isMuted=function(){return this.bb.isMuted()};
g.k.FC=function(){if(this.Z.N("html5_enable_embedded_player_visibility_signals")&&g.xM(this.Z)&&this.tR){var a=this.tR;a=null==a.j?null:Math.round(100*a.j)/100;if(null!=a)return a}};
g.k.vC=function(){if(this.Z.N("html5_enable_embedded_player_visibility_signals")&&g.xM(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.PM();1<b&&a.push(b);return a.join(":")}}};
g.k.cz=function(){if(this.Ob===this.Ib&&this.Hb)return this.Hb.postId};
g.k.P9=function(){var a=this;g.JM(this.Z)?g.ZM(this.Z,g.PO(this.getVideoData())).then(function(b){xCa(CQ(),b);VKa(a.getVideoData(),a.Z,a.dn())}):VKa(this.getVideoData(),this.Z,this.dn())};
g.k.GM=function(a){var b=this;return g.Ha(function(c){return b.mA?c.return(b.mA.GM(a)):c.return(Promise.reject("web po not available"))})};
g.k.oR=function(){this.mA&&this.mA.oR()};
g.k.BO=function(a){return this.mA?this.mA.BO(a):""};
g.k.wQ=function(a){this.mA=a};
g.k.Tn=function(a){1===a&&(this.Cb.tick("vr"),n2a(this.Ob),rNa(this.Cb,this.Ob.getVideoData(),k3a(this)),eOa(this.bd));var b=this.Z;(XM(b)&&b.J||g.DM(b))&&(this.Bf()||this.bb.Qa("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.Ob===this.Ib&&this.Ob.gt()!==a&&(this.Ob.setLoop(a),this.bb.Qa("onLoopChange",a))};
g.k.getLoopVideo=function(){return this.Ob.gt()};
g.k.setLoopRange=function(a){var b=!1;!!this.Hb!==!!a?b=!0:this.Hb&&a&&(b=this.Hb.startTimeMs!==a.startTimeMs||this.Hb.endTimeMs!==a.endTimeMs||this.Hb.postId!==a.postId||this.Hb.type!==a.type);if(b){this.Ib.Oi.Te("applooprange");if(a)b=new g.NG(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.Ib.addCueRange(b);else{this.ge().clipConfig=void 0;var c,d;"repeatChapter"!==(null==(c=this.Hb)?void 0:c.type)||isNaN(Number(null==(d=this.Hb)?void 0:d.loopCount))||(b={loopCount:String(this.Hb.loopCount),
cpn:this.getVideoData().clientPlaybackNonce},g.UB("repeatChapterLoopEvent",b))}this.Hb=a;this.bb.Qa("onLoopRangeChange",a||void 0);this.Ob===this.Ib&&(this.mJ(),this.Ob.po())}};
g.k.getLoopRange=function(){return this.Hb};
g.k.mJ=function(){this.Hb&&this.Ob===this.Ib&&(W2a(this,this.Ib.getCurrentTime())?this.Hb.loopCount=0:X2a(this))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=F2a(this,a),this.Ib.getPlaybackRate()!==a&&(this.Ib.setPlaybackRate(a),b&&!this.Z.C&&g.rB("yt-player-playback-rate",a),this.bb.Qa("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return SS(this.bd).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai,d=SO(this.getVideoData());a=c||d?g.FS(this):g.FS(this,a);if(!a)return 0;if(d&&this.He)return a=a.getCurrentTime(),b=TTa(this.He,a),a-b/1E3;if(b){if(c&&this.df&&(b=this.df.wb/1E3,0!==b))return b;a=s_(this,a);return C_(this,a.getCurrentTime(),a)}c&&this.df?(b=this.df,a=a.getCurrentTime(),ZW(b)?(b=fX(b,1E3*a))&&b.Bs&&(a-=
b.Bs):(b=ATa(b,1E3*a))&&(a-=b.start/1E3)):a=a.getCurrentTime();return a};
g.k.jz=function(){var a=g.FS(this);if(!a)return 0;a=s_(this,a);return C_(this,a.jz(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai,e=SO(c);a=d||e?g.FS(this):g.FS(this,a);if(!a)return 0;if(c.hasProgressBarBoundaries()&&!d&&!e){var f,h=Number(null==(f=c.progressBarStartPosition)?void 0:f.utcTimeMillis),l;c=Number(null==(l=c.progressBarEndPosition)?void 0:l.utcTimeMillis);if(!isNaN(h)&&!isNaN(c))return(c-h)/1E3}if(e&&this.He)return UTa(this.He,a.getCurrentTime());if(b)return b=r_(this,a),C_(this,b.getDuration(),b);d&&this.df?
(b=this.df,d=a.getCurrentTime(),b=ZW(b)?b.qa?b.qa.durationMs/1E3:0:(b=fX(b,1E3*d))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.k.je=function(a){a=g.FS(this,a);if(!a)return 0;a=r_(this,a);return C_(this,a.je(),a)};
g.k.uf=function(a){var b=g.FS(this,a);return b?this.Bf(b)?(b=r_(this,b),b.uf()-b.getCurrentTime()+this.getCurrentTime(a)):b.uf():0};
g.k.addPlayerResponseForAssociation=function(a){this.He&&this.He.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.He?this.He.finishSegmentByCpn(a,b):[]};
g.k.kM=function(){this.template.kM();var a=this.I;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=cB(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.v8)};
g.k.getDebugText=function(a){var b=this.Ib.qc(a);if(this.Ob&&this.Ob!==this.Ib){for(var c=this.Ob.qc(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=Je(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.Ne("video-ads");f?(r3a(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.Ne("videoAdUiSkipContainer"),l=g.Ne("ytp-ad-skip-button-container"),m=h||l;m?(r3a(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===+ze(this.mediaElement.getSize())),b.op=this.mediaElement.PC("opacity"),c=this.mediaElement.nt().y+this.mediaElement.getSize().height,b.yof=""+(0>=+c),b.dis=this.mediaElement.PC("display"));(a=a?(0,g.zZ)():null)&&(b.gpu=a);b.debug_playbackQuality=this.bb.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.W().experiments.experimentIds.join(", ")},b=this.Nb().gh;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(t_(this))return 3;var b;if(a&&(null==(b=this.df)?0:yTa(b,this.getCurrentTime())))return 2;a=g.FS(this);if(b=SO(this.getVideoData())&&a)null==(b=this.He)?a=0:(a=a.getCurrentTime(),a=(a=lX(b,1E3*a))?2===a.getType():!1),b=a;return b?2:g.FS(this).getPlayerType()};
g.k.Nb=function(a){return 3===this.getPresentingPlayerType()?SS(this.bd).mf:g.FS(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.sP=function(a){switch(a.type){case "loadedmetadata":this.hJ.start();a=g.u(this.wA);for(var b=a.next();!b.done;b=a.next())b=b.value,i3a(this,b.id,b.paa,b.oaa,void 0,!1);this.wA=[];break;case "loadstart":this.Cb.Au("gv");break;case "progress":case "timeupdate":2<=ZK(a.target.Jh())&&this.Cb.Au("l2s");break;case "playing":g.UM&&this.hJ.start();if(g.JM(this.Z))a=!1;else{b=g.VS(this.Fb());a="none"===this.mediaElement.PC("display")||0===ze(this.mediaElement.getSize());var c=zX(this.template),d=this.Ob.getVideoData(),
e=g.EM(this.Z)||g.FM(this.Z);d=vO(d);b=!c||b||e||d||this.Z.Zb;a=a&&!b}a&&(this.Ob.ya("hidden",{},!0),this.getVideoData().Zb||(this.getVideoData().Zb=1,this.MX(),this.Ob.playVideo()))}};
g.k.onLoadProgress=function(a,b){this.bb.Qa("onLoadProgress",b)};
g.k.T8=function(){this.bb.ra("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=s_(this,a);b=C_(this,a.getCurrentTime(),a);this.bb.Qa("onVideoProgress",b)};
g.k.onAutoplayBlocked=function(){this.bb.Qa("onAutoplayBlocked")};
g.k.j8=function(){this.bb.ra("progresssync")};
g.k.Y6=function(a){if(1===this.getPresentingPlayerType()){g.GP(a,1)&&!g.yP(a.state,64)&&this.ge().isLivePlayback&&this.Ib.isAtLiveHead()&&1<this.bb.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.GP(a,2)){if(this.Hb&&this.Hb.endTimeMs>=1E3*(this.getDuration()-1)){X2a(this);return}O2a(this)}if(g.yP(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.gh;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.bb.Qa("onError",ZKa(b.errorCode));this.bb.Qa("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.wM,cpn:b.cpn});6048E5<(0,g.mC)()-this.Z.og&&this.bb.Qa("onReloadRequired")}b={};if(a.state.wd()&&!g.eQ(a.state)&&!NH("pbresume","ad_to_video")&&NH("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.OH(b,"ad_to_video");RH("pbresume",void 0,"ad_to_video");eOa(this.bd)}this.bb.ra("applicationplayerstatechange",a)}};
g.k.fY=function(a){3!==this.getPresentingPlayerType()&&this.bb.ra("presentingplayerstatechange",a)};
g.k.Yi=function(a){q_(this,fQ(a.state));g.yP(a.state,1024)&&this.bb.isMutedByMutedAutoplay()&&(IS(this,{muted:!1,volume:this.Hi.volume},!1),A_(this,!1))};
g.k.U6=function(a,b,c){"newdata"===a&&H2a(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.ID=function(){this.bb.Qa("onPlaybackAudioChange",this.bb.getAudioTrack().Nc.name)};
g.k.aE=function(a){var b=this.Ob.getVideoData();a===b&&this.bb.Qa("onPlaybackQualityChange",a.u.video.quality)};
g.k.onVideoDataChange=function(a,b,c){b===this.Ib&&(this.Z.jk=c.oauthToken);if(b===this.Ib&&(this.getVideoData().enableServerStitchedDai&&!this.df?this.df=new g.$W(this.bb,this.Z,this.Ib):!this.getVideoData().enableServerStitchedDai&&this.df&&(this.df.dispose(),this.df=null),SO(this.getVideoData())&&"newdata"===a)){this.kA.Tf();var d=this.getDuration(1);var e=this.getVideoData();d=new YW(0,0+(d||0),!d,1,this.kA,e,void 0);e=this.kA;d.C===e&&(0===e.segments.length&&(e.j=d),e.segments.push(d));this.He=
new QTa(this.bb,this.kA,this.Ib)}if("newdata"===a)hU(this.bd,2),this.bb.ra("videoplayerreset",b);else{if(!this.mediaElement)return;"dataloaded"===a&&(this.Ob===this.Ib?(Zwa(c.Ia,c.B_),this.Ib.getPlayerState().isError()||(d=t_(this),this.ge().isLoaded(),d&&this.Pp(6),S2a(this),cOa(this.bd)||R2a(this))):S2a(this));if(1===b.getPlayerType()&&(this.Z.eb&&q3a(this),this.getVideoData().isLivePlayback&&!this.Z.Ap&&this.Sg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded())){if(Fza(c)||this.getVideoData().aB){d=
this.yy;var f=this.getVideoData();e=this.Ib;zS(d,"part2viewed",1,0x8000000000000,e);zS(d,"engagedview",Math.max(1,1E3*f.ob),0x8000000000000,e);f.isLivePlayback||(f=1E3*f.lengthSeconds,zS(d,"videoplaytime25",.25*f,f,e),zS(d,"videoplaytime50",.5*f,f,e),zS(d,"videoplaytime75",.75*f,f,e),zS(d,"videoplaytime100",f,0x8000000000000,e),zS(d,"conversionview",f,0x8000000000000,e),zS(d,"videoplaybackstart",1,f,e),zS(d,"videoplayback2s",2E3,f,e),zS(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.uf())&&(h-=this.getCurrentTime(),h=1E3*(d-h),d=this.SI.progressEndBoundary,(null==d?void 0:d.start)!==h&&(d&&this.yE([d]),h=new g.NG(h,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.Ib.addCueRange(h),this.SI.progressEndBoundary=h))}}this.bb.ra("videodatachange",a,c,b.getPlayerType())}this.bb.Qa("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.mJ();
(a=c.FE)?this.Oq.zU(a,c.clientPlaybackNonce):CUa(this.Oq)};
g.k.jG=function(){v_(this,null);this.bb.Qa("onPlaylistUpdate")};
g.k.sX=function(a){var b=a.getId(),c=this.ge(),d=!this.isInline();if(!c.inlineMetricEnabled&&!this.Z.experiments.sb("enable_player_logging_lr_home_infeed_ads")||d){if("part2viewed"===b){if(c.CR&&g.wD(c.CR),c.aO&&I_(this,c.aO),c.Vx)for(var e={CPN:this.getVideoData().clientPlaybackNonce},f=g.u(c.Vx),h=f.next();!h.done;h=f.next())I_(this,g.zq(h.value,e))}else"conversionview"===b?this.Ib.SA():"engagedview"===b&&c.Li&&(e={CPN:this.getVideoData().clientPlaybackNonce},g.wD(g.zq(c.Li,e)));c.DR&&(e=a.getId(),
e=Uz(c.DR,{label:e}),g.wD(e));switch(b){case "videoplaytime25":c.yR&&I_(this,c.yR);c.lO&&J_(this,c.lO);c.JR&&g.wD(c.JR);break;case "videoplaytime50":c.zR&&I_(this,c.zR);c.sO&&J_(this,c.sO);c.LR&&g.wD(c.LR);break;case "videoplaytime75":c.BR&&I_(this,c.BR);c.HO&&J_(this,c.HO);c.NR&&g.wD(c.NR);break;case "videoplaytime100":c.D_&&I_(this,c.D_),c.cO&&J_(this,c.cO),c.IR&&g.wD(c.IR)}(e=this.getVideoData().aB)&&d3a(this,e,a.getId())&&d3a(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&!d)switch(b){case "videoplaybackstart":var l,
m=null==(l=c.Wx)?void 0:l.j;m&&I_(this,m);break;case "videoplayback2s":(l=null==(m=c.Wx)?void 0:m.B)&&I_(this,l);break;case "videoplayback10s":var n;(l=null==(n=c.Wx)?void 0:n.u)&&I_(this,l)}this.Ib.removeCueRange(a)};
g.k.i8=function(a){delete this.SI[a.getId()];this.Ib.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=(null==(b=a.Ad)?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.Ad)?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.Q(c,g.qO),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.Q(a,g.qO))&&this.bb.Qa("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
g.k.Pp=function(a){a!==this.appState&&(2===a&&1===this.getPresentingPlayerType()&&(q_(this,-1),q_(this,5)),this.appState=a,this.bb.ra("appstatechange",a))};
g.k.Sg=function(a,b,c,d,e){this.Ib.Zg(a,b,c,d,e)};
g.k.Mr=function(a,b){this.Ib.handleError(new aN(a,b))};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.FS(this,a);if(!c)return!1;a=r_(this,c);c=s_(this,c);return a!==c?a.isAtLiveHead(C_(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Ys=function(){var a=g.FS(this);return a?r_(this,a).Ys():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.FS(this,d))2===this.appState&&y_(this),this.Bf(d)?B_(this)?this.df.seekTo(a,b,c):this.jd.seekTo(a,b,c):SO(this.getVideoData())&&this.He?this.He.seekTo(a,{hR:!b,iR:c,ke:"application"}):d.seekTo(a,{hR:!b,iR:c,ke:"application"})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.dA=function(){this.bb.Qa("SEEK_COMPLETE")};
g.k.H8=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.yP(a.getPlayerState(),512)||y_(this):this.bb.Qa("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.bb.ra("airplayactivechange");this.Z.N("html5_external_airplay_events")&&this.bb.Qa("onAirPlayActiveChange",this.bb.Mh())};
g.k.onAirPlayAvailabilityChange=function(){this.bb.ra("airplayavailabilitychange");this.Z.N("html5_external_airplay_events")&&this.bb.Qa("onAirPlayAvailabilityChange",this.bb.gD())};
g.k.showAirplayPicker=function(){var a;null==(a=this.Ob)||a.nu()};
g.k.NO=function(){this.bb.ra("beginseeking")};
g.k.SO=function(){this.bb.ra("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.FS(this,a))?r_(this,a).getVideoData().getStoryboardFormat():null};
g.k.ek=function(a){return(a=g.FS(this,a))?r_(this,a).getVideoData().ek():null};
g.k.Bf=function(a){a=a||this.Ob;var b=!1;if(a){a=a.getVideoData();if(B_(this))a=a===this.df.va.getVideoData();else a:if(b=this.jd,a===b.j.getVideoData()&&b.u.length)a=!0;else{b=g.u(b.u);for(var c=b.next();!c.done;c=b.next())if(a.Tc===c.value.Tc){a=!0;break a}a=!1}b=a}return b};
g.k.wy=function(a,b,c,d,e,f,h){var l=B_(this),m;null==(m=g.FS(this))||m.ya("appattl",{sstm:this.df?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:l});return l?vTa(this.df,a,b,c,d,e,f,h):eUa(this.jd,a,c,d,e,f)};
g.k.cD=function(a,b,c,d,e,f,h){B_(this)&&vTa(this.df,a,b,c,d,e,f,h);return""};
g.k.Ut=function(a){var b;null==(b=this.df)||b.Ut(a)};
g.k.tv=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;B_(this)||nUa(this.jd,a,b)};
g.k.RA=function(a,b,c){if(B_(this)){var d=this.df,e=d.kd.get(a);e?(void 0===c&&(c=e.Ud),e.durationMs=b,e.Ud=c):d.vD("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.jd;e=null;for(var f=g.u(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.Tc===a){e=h;break}e?(void 0===c&&(c=e.Ud),mUa(d,e,b,c)):nX(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Bf();a=new g.eO(this.Z,a);d&&(a.Tc=d);e3a(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.td();a&&b&&(c=this.oo.V,d=b.getVideoData(),e=a.getVideoData(),d.W().supportsGaplessShorts()?d.jl||e.jl?c={nq:"autoplay"}:d.ea?(c=RSa(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.Ca&&eZ(b.Ca))):(a=a.getVideoData(),b=this.s_,b.j!==a&&(b.j=a,b.u=1,a.isLoaded()?b.B():
b.j.subscribe("dataloaded",b.B,b))))};
g.k.BG=function(a,b,c,d){var e=this;c=void 0===c?0:c;d=void 0===d?0:d;var f=g.FS(this);f&&(r_(this,f).h_=!0);eTa(this.oo,a,b,c,d).then(function(){e.bb.Qa("onQueuedVideoLoaded")},function(){})};
g.k.Yv=function(){return this.oo.Yv()};
g.k.clearQueue=function(){this.oo.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f=!1,h=new g.eO(this.Z,a);g.TM(this.Z)&&!h.jl&&ST(this.Cb);var l,m=null!=(l=h.Ma)?l:"";this.Cb.timerName=m;this.Cb.Fi("pl_i");this.N("web_player_early_cpn")&&h.clientPlaybackNonce&&this.Cb.info("cpn",h.clientPlaybackNonce);if(this.W().supportsGaplessShorts()&&!this.N("html5_shorts_gapless_always_fallback")){l=hTa(this.oo,h,b);if(null==l){q_(this,-1);h=this.oo;h.app.setLoopRange(null);h.app.getVideoData().pB=!0;var n;null==(n=h.j)||
K0a(n.Gc());h.app.seekTo(gTa(h));if(!h.app.Nb(b).wd()){var p;null==(p=g.FS(h.app))||p.playVideo(!0)}h.J();return!0}this.oo.clearQueue();var q;null==(q=g.FS(this))||q.ya("sgap",{f:l})}if(e){for(;h.wm.length&&h.wm[0].isExpired();)h.wm.shift();n=h.wm.length-1;f=0<n&&e.u(h.wm[n])&&e.u(h.wm[n-1]);h.wm.push(e)}c||(a&&uNa(a)?(OM(this.Z)&&!this.Zh&&(a.fetch=0),v_(this,a)):this.playlist&&v_(this,null),a&&(this.Zh=LA(!1,a.external_list)),OM(this.Z)&&!this.Zh&&w_(this));this.bb.ra("loadvideo");b=this.It(h,b,
d);f&&this.Sg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+h.wm.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=QA(a);d=E_(this,d,h,f,"1"===a.autonav||!0===a.autonav,"1"===a.autoplay||!0===a.autoplay||1===a.autoplay)}else d=QA(a),d=E_(this,b,d,e);if(this.kE.get(d))return null;a=new g.eO(this.Z,a);e&&(a.Tc=e);a:{e=this.Z.N("html5_autonav_autoplay_in_preload_key")?f3a(this,b,a):E_(this,b,a.videoId,a.Tc);if(this.Ob&&(d=this.Z.N("html5_autonav_autoplay_in_preload_key")?
f3a(this,this.Ob.getPlayerType(),this.Ob.getVideoData()):E_(this,this.Ob.getPlayerType(),this.Ob.getVideoData().videoId,this.Ob.getVideoData().Tc),e===d)){g.TW(this.Ob,!0);a.dispose();c=null;break a}a.Ji=!0;a=Q2a(this,b,a);1===b&&RM(this.Z)||g.TW(a,!0);this.kE.set(e,a,c||3600);c=a}return c};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.bd;a=a.I.W().showMiniplayerUiWhenMinimized?a.Se.get("miniplayer"):void 0;a&&(this.Ag()?a.load():a.unload());this.bb.ra("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.bd;a=a.I.W().showInlinePreviewUi?a.Se.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.bb.Qa("onInlinePreviewModeChange"))};
g.k.CA=function(a){var b=this.Z.N("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.Z.Em&&this.Z.N("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.EM&&b?this.EM.start():this.hU():this.visibility.CA(a)};
g.k.hU=function(){var a,b=null==(a=this.mediaElement)?void 0:a.Bb();b&&bB(b).catch(function(c){return g.tG(c)})};
g.k.E8=function(){this.mediaElement.Bb();"picture-in-picture"===this.mediaElement.Bb().webkitPresentationMode?this.CA(!0):this.CA(!1)};
g.k.togglePictureInPicture=function(){var a=g.FS(this);a&&a.togglePictureInPicture()};
g.k.It=function(a,b,c){b=void 0===b?1:b;NH("_start",this.Cb.timerName)||(g.Nz(vH)(void 0,this.Cb.timerName),this.Cb.info("srt",0));var d=!1,e=V2a(this,b,a,!1);e?(d=!0,a.dispose()):(e=Q2a(this,b,a,c),(this.N("html5_onesie")||this.N("html5_load_before_stop"))&&d_(e)&&g.TW(e),this.hJ.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),WW(this,e));e===this.Ib&&(this.Z.jk=a.oauthToken);if(!d_(e))return!1;if(e===this.Ib){this.Pp(1);a=y_(this);if(d&&this.I.N("html5_player_preload_ad_fix")&&
1===e.getPlayerType()&&e.Jp.finished)this.onVideoDataChange("dataloaded",e,e.getVideoData());return a}X1a(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(a&&uNa(a))if(this.Wv=!0,v_(this,a),(a=g.TT(this.playlist))&&a.Fe())G_(this,a,b);else this.playlist.onReady(function(){x_(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.jG();var d=new g.eO(this.Z,a),e=g.xM(this.Z)&&!this.Z.Ba&&1===b&&!d.isAd()&&!d.Ke;this.bb.ra("cuevideo");e?(this.td().getVideoData().loading=!0,BNa(d,a?a:{}).then(function(f){G_(c,f,b)}),d.dispose()):G_(this,d,b)}};
g.k.xo=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(zM(this.Z)||g.SM(this.Z))return b=b||{},b.lact=sF(),b.vis=this.bb.getVisibilityState(),this.bb.Qa("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;sNa(this.Cb);this.Cb.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;g3a(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Wv=!1;g3a(this,a,b,c,d)};
g.k.yC=function(){if(this.bb.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;OM(this.Z)&&!this.Zh&&w_(this);return!(!this.playlist||!this.playlist.Yk())};
g.k.Ts=aa(5);
g.k.nextVideo=function(a,b){var c=g.sO(this.Ib.getVideoData());g.YS(this.bb)&&c?this.xo(c.videoId,b?c.lC:c.sessionData,c.playlistId,b,void 0,c.XT||void 0):this.Zh?this.bb.Qa("onPlaylistNext"):3===this.getPresentingPlayerType()?SS(this.bd).nextVideo():this.playlist&&(OM(this.Z)&&!this.bb.isFullscreen()?$2a(this,"yt.www.watch.lists.next"):(this.playlist.Yk(a)&&xNa(this.playlist,vNa(this.playlist)),this.playlist.loaded?(a=b&&this.Z.N("html5_player_autonav_logging"),b&&this.bb.ra("playlistautonextvideo"),this.It(g.TT(this.playlist,
void 0,b,a),1)):this.Wv=!1))};
g.k.previousVideo=function(a){this.Zh?this.bb.Qa("onPlaylistPrevious"):3===this.getPresentingPlayerType()?SS(this.bd).NI():this.playlist&&(OM(this.Z)&&!this.bb.isFullscreen()?$2a(this,"yt.www.watch.lists.prev"):(this.playlist.rp(a)&&xNa(this.playlist,wNa(this.playlist)),this.playlist.loaded?this.It(g.TT(this.playlist),1):this.Wv=!1))};
g.k.playVideoAt=function(a){this.Zh?this.bb.Qa("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.It(g.TT(this.playlist,a),1):this.Wv=!1,xNa(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.KC=aa(13);g.k.S6=function(a){this.bb.Qa("onCueRangeEnter",a.getId())};
g.k.T6=function(a){this.bb.Qa("onCueRangeExit",a.getId())};
g.k.sy=function(a,b,c){var d=g.FS(this,b);d&&(d.sy(a,c),b&&this.getPresentingPlayerType()!==b||p_(this,"cuerangesadded",a))};
g.k.yE=function(a,b){var c=g.FS(this,b);c&&(c.yE(a),b&&this.getPresentingPlayerType()!==b||p_(this,"cuerangesremoved",a))};
g.k.X6=function(){function a(){var d=g.sH(b.screenLayer||(b.Ag()?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 Ny;var l=b.getVideoData().clientPlaybackNonce;l=O(h,1,l);O(l,3,d);b.getVideoData().Ba&&(e||f)&&(e=g.pH(b.getVideoData().Ba),g.nQ(d,e),f&&(d=e.getAsJspb(),oi(h,px,2,d)));if(b.getVideoData().queueInfo){d=b.getVideoData().queueInfo;f=new My;if(null==d?0:d.enqueueingVe)(null==d?0:d.enqueueingVe.trackingParams)?
(e=g.pH(d.enqueueingVe.trackingParams),e=e.getAsJspb(),oi(f,px,1,e)):g.tG(new g.EB("Cannot map enqueueingVe from a client VE "));(null==d?0:d.enqueueingCsn)&&O(f,2,d.enqueueingCsn);(null==d?0:d.clientEnqueueingTimeMs)&&N(f,3,Number(d.clientEnqueueingTimeMs));oi(h,My,4,f)}d={};b.N("web_playback_associated_log_ctt")&&b.getVideoData().J&&(d.cttAuthInfo={token:b.getVideoData().J,videoId:b.getVideoData().videoId});bra(h,d)}else h={cpn:b.getVideoData().clientPlaybackNonce,csn:d},b.getVideoData().Ba&&(e||
f)&&(e=g.pH(b.getVideoData().Ba),g.nQ(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().J&&(d.cttAuthInfo={token:b.getVideoData().J,videoId:b.getVideoData().videoId}),g.UB("playbackAssociated",h,d)}else g.tG(new g.EB("CSN Missing or undefined during playback association"))}
var b=this;this.getPresentingPlayerType();rNa(this.Cb,this.Ob.getVideoData(),k3a(this));u_(this)&&this.Z.C&&"embedded"===LO(this.ge())&&this.PW&&.01>Math.random()&&g.UB("autoplayTriggered",{intentional:this.pW});this.PW=!1;eOa(this.bd);this.N("web_player_defer_ad")&&R2a(this);this.bb.Qa("onPlaybackStartExternal");(this.Z.N("mweb_client_log_screen_associated"),KM(this.Z))||a();var c={};this.getVideoData().J&&(c.cttAuthInfo={token:this.getVideoData().J,videoId:this.getVideoData().videoId});PH("player_att",
c);if(this.getVideoData().botguardData||this.N("fetch_att_independently"))g.QM(this.Z)||"MWEB"===g.NL(this.Z)?g.JB(g.LB(),function(){z_(b)}):z_(this);
this.mJ()};
g.k.YO=function(){this.bb.ra("internalAbandon");D_(this)};
g.k.onApiChange=function(){this.Z.J&&this.Ob?this.bb.Qa("onApiChange",this.Ob.getPlayerType()):this.bb.Qa("onApiChange")};
g.k.L7=function(){var a=this.mediaElement;a={volume:g.pe(Math.floor(100*a.getVolume()),0,100),muted:a.ZG()};a.muted||A_(this,!1);this.Hi=g.md(a);this.bb.Qa("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.FO)&&(this.FO=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.FO}),this.bb.Qa("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=m3a(this);this.Am(a?1:0);o3a(this,!!a)};
g.k.Am=function(a){var b=!!a,c=!!this.fz()!==b;this.visibility.Am(a);this.template.Am(b);this.N("html5_media_fullscreen")&&!b&&this.mediaElement&&m3a(this)===this.mediaElement.Bb()&&this.mediaElement.oC();this.template.resize();c&&this.Cb.tick("fsc");c&&(this.bb.ra("fullscreentoggled",b),a=this.ge(),b={fullscreen:b,videoId:a.hK||a.videoId,time:this.getCurrentTime()},this.bb.getPlaylistId()&&(b.listId=this.bb.getPlaylistId()),this.bb.Qa("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.fz=function(){return this.visibility.fz()};
g.k.v8=function(){this.Ob&&(0!==this.fz()&&1!==this.fz()||this.Am(m3a(this)?1:0),this.Z.Em&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.oC())};
g.k.D7=function(a){3!==this.getPresentingPlayerType()&&this.bb.ra("liveviewshift",a)};
g.k.playVideo=function(a){if(a=g.FS(this,a))2===this.appState?(g.TM(this.Z)&&ST(this.Cb),y_(this)):g.yP(a.getPlayerState(),2)?(this.seekTo(0),this.Z.Id()&&a.ya("szro",{})):a.playVideo()};
g.k.pauseVideo=function(a,b){(a=g.FS(this,a))&&a.pauseVideo(b)};
g.k.stopVideo=function(){var a=this.Ib.getVideoData(),b=new g.eO(this.Z,{video_id:a.hK||a.videoId,oauth_token:a.oauthToken});b.V=g.md(a.V);this.cancelPlayback(6);G_(this,b,1)};
g.k.cancelPlayback=function(a,b){var c=g.FS(this,b);c&&(2===b&&1===c.getPlayerType()&&Wza(this.ge())?c.ya("canclpb",{r:"no_adpb_ssdai"}):(this.Z.Id()&&c.ya("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Ob&&hU(this.bd,a),1===b&&(c.stopVideo(),D_(this)),c.Wn(void 0,6!==a),p_(this,"cuerangesremoved",c.Xm()),c.Oi.reset(),this.oo&&c.isGapless()&&(c.Ij(!0),c.setMediaElement(this.mediaElement)))))};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.FS(this,b))&&this.Z.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.dk=function(a){var b=g.FS(this);return b&&this.Z.enabledEngageTypes.has(a.toString())?b.dk(a):null};
g.k.updatePlaylist=function(){OM(this.Z)?w_(this):g.xM(this.Z)&&T2a(this);this.bb.Qa("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.pZ=a;this.ZN=b;this.bb.ra("sizestylechange",a,b);this.template.resize()};
g.k.Zv=function(){return this.ZN};
g.k.Ag=function(){return this.visibility.Ag()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.zz=function(){return this.visibility.zz()};
g.k.xz=function(){return this.visibility.xz()};
g.k.WN=function(){return this.pZ};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return SS(this.bd).getAdState();if(!this.Bf()){var a=iU(this.Fb());if(a)return a.getAdState()}return-1};
g.k.u8=function(a){var b=this.template.getVideoContentRect();Sn(this.IW,b)||(this.IW=b,this.Ob&&i_(this.Ob),this.Ib&&this.Ib!==this.Ob&&i_(this.Ib),1===this.fz()&&this.dE&&o3a(this,!0));this.hO&&g.ye(this.hO,a)||(this.bb.ra("appresize",a),this.hO=a)};
g.k.Nh=function(){return this.bb.Nh()};
g.k.N8=function(){2===this.getPresentingPlayerType()&&this.jd.isManifestless()?lUa(this.jd):(this.df&&(CTa(this.df),D_(this)),N2a(this,"signature"))};
g.k.MX=function(){this.Ij();o_(this)};
g.k.R7=function(a){"manifest.net.badstatus"===a.errorCode&&a.details.rc===(this.Z.experiments.sb("html5_use_network_error_code_enums")?401:"401")&&this.bb.Qa("onPlayerRequestAuthFailed")};
g.k.LD=function(){this.bb.Qa("CONNECTION_ISSUE")};
g.k.OD=function(a){this.bb.ra("heartbeatparams",a)};
g.k.eJ=function(a){this.bb.Qa("onAutonavChangeRequest",1!==a)};
g.k.Qe=function(){return this.mediaElement};
g.k.setBlackout=function(a){this.N("html5_ignore_unchanged_blackout_state_set")&&this.Z.Zb===a||(this.Z.Zb=a,this.Ob&&(this.Ob.po(),this.Z.eb&&q3a(this),this.Ob.Vn(a)))};
g.k.T7=function(){var a=g.FS(this);if(a){var b=!this.bb.lD();(a.RV=b)||a.hw.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.C&&c.C.stop()}a.Ca&&(b?a.Ca.resume():l_(a,!0));g.yP(a.playerState,2)||b?g.yP(a.playerState,512)&&b&&a.vc(aQ(a.playerState,512)):a.vc($P(a.playerState,512));a=a.Gc();a.qoe&&(a=a.qoe,g.wZ(a,g.UW(a.provider),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.bb.Qa("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.bb.Qa("onDrmOutputRestricted")};
g.k.AL=function(){Web=this.N("html5_use_async_stopVideo");Xeb=this.N("html5_pause_for_async_stopVideo");Veb=this.N("html5_not_reset_media_source");GBa=this.N("html5_rebase_video_to_ad_timeline");Gua=this.N("html5_not_reset_media_source");qeb=this.N("html5_not_reset_media_source");Dua=this.N("html5_retain_source_buffer_appends_for_debugging");this.N("html5_mediastream_applies_timestamp_offset")&&(hY=!0);this.N("html5_support_managed_media_source")&&(gL=yua=!0);Rta=this.N("html5_prefer_slice_length");
peb=this.N("html5_use_target_duration");var a=g.xL(this.Z.experiments,"html5_cobalt_override_quic");a&&KW("QUIC",+(0<a));this.N("html5_cobalt_enable_min_processor_cnt_to_offload_algo")&&KW("MediaSource.MinimumProcessorCountToOffloadAlgorithm",g.xL(this.Z.experiments,"html5_cobalt_min_processor_cnt_to_offload_algo"));(a=this.N("html5_cobalt_async_redn"))&&KW("MediaSource.EnableAsynchronousReduction",+a);if(a=g.xL(this.Z.experiments,"html5_cobalt_max_size_for_immed_job"))KW("MediaSource.MaxSizeForImmediateJob",
a),KW("MediaSource.MinSizeForImmediateJob",a);(a=this.N("html5_cobalt_enable_fetch_buffer_pool"))&&KW("XHR.EnableFetchBufferPool",+a);(a=g.xL(this.Z.experiments,"html5_cobalt_default_buffer_size_in_bytes"))&&KW("XHR.DefaultFetchBufferSize",a);(a=this.N("html5_cobalt_enable_try_lock_for_progress_check"))&&KW("XHR.EnableTryLockForProgressCheck",+a);(a=g.xL(this.Z.experiments,"html5_max_source_buffer_append_size_in_bytes"))&&KW("MediaSource.MaxSourceBufferAppendSizeInBytes",a);(a=this.N("html5_cobalt_enable_avoid_copying_array_buffer"))&&
KW("MediaSource.EnableAvoidCopyingArrayBuffer",+a);Error.stackTraceLimit=25;var b=g.xL(this.Z.experiments,"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}});
iwa(this.Z.D);IW=this.N("html5_use_media_end_for_end_of_segment");FSa=this.N("html5_consume_onesie_media_bytes_on_mismatch_for_sabr");yLa=this.N("html5_record_now");g.QP=this.N("web_player_use_native_events");LBa=this.N("html5_reloading_is_external_buffering")};
g.k.Nz=function(){this.pW=!0};
g.k.xa=function(){this.bd.dispose();this.jd.dispose();this.df&&this.df.dispose();this.kA.Tf();this.kA.dispose();this.He&&this.He.dispose();this.Ib.dispose();this.Ij();g.sb(ad(this.Du),this.playlist);g.G.prototype.xa.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.bd.createSubtitlesModuleIfNeeded()};
g.k.updateDownloadState=function(a,b){var c=this,d;return g.Ha(function(e){return(d=kU(c.bd))?e.return(d.updateDownloadState(a,b)):e.return(Promise.reject())})};
g.k.pauseVideoDownload=function(a){var b=kU(this.bd);b&&b.AP(a)};
g.k.resumeVideoDownload=function(a){var b=this,c;return g.Ha(function(d){return(c=kU(b.bd))?d.return(c.EE(a)):d.return(Promise.reject())})};
g.k.refreshAllStaleEntities=function(a){void 0===a&&(a=14400);var b=kU(this.bd);return b?b.refreshAllStaleEntities(a):Promise.reject()};
g.k.isOrchestrationLeader=function(){var a=kU(this.bd);return a?a.isOrchestrationLeader():!1};
g.k.getVideoUrl=function(a,b,c,d,e){if(this.Hb&&this.Hb.postId)return a=this.Z.getVideoUrl(a),a=bk(a,"v"),a.replace("/watch","/clip/"+this.Hb.postId);var f=g.US(this.bb)||"shortspage"===this.Z.Fa,h=this.getVideoData().isLivePlayback;return this.Z.getVideoUrl(a,b,c,d,e,f,h)};
g.k.Sv=function(){return this.oo.Sv()};
g.k.YD=function(a){this.bb.ra("spsumpstatuschange",a)};
var G4={};g.Qa("yt.player.Application.create",g.n_.create);g.Qa("yt.player.Application.createAlternate",g.n_.create);bqa(lF(),{lr:[{Sz:/Unable to load player module/,weight:20},{Sz:/Failed to fetch/,weight:500},{Sz:/XHR API fetch failed/,weight:10},{Sz:/JSON parsing failed after XHR fetch/,weight:10},{Sz:/Retrying OnePlatform request/,weight:10},{Sz:/CSN Missing or undefined during playback association/,weight:100}]});var qfb=g.Sa("ytcsi.tick");qfb&&qfb("pe");var v3a=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"]]),t3a=new Map([["normal",{Iw:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Sw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Iw:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Sw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{Iw:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Sw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Iw:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Sw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Iw:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Sw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Iw:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Sw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{Iw:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Sw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);var rfb={qWa:"replaceUrlMacros",NRa:"onAboutThisAdPopupClosed",pxa:"executeCommand"};Q_.prototype.Bq=function(){return"muteAdEndpoint"};
Q_.prototype.handle=function(a){switch(a.type){case "SKIP":C3a(this.yj,this.dl)}};
Q_.prototype.Mv=function(a,b){switch(a.type){case "SKIP":C3a(this.yj,this.dl,b)}};R_.prototype.Bq=function(){return"openPopupAction"};
R_.prototype.handle=function(){};
R_.prototype.Mv=function(a){this.handle(a)};S_.prototype.Bq=function(){return"pingingEndpoint"};
S_.prototype.handle=function(){};
S_.prototype.Mv=function(a){this.handle(a)};T_.prototype.Bq=function(){return"urlEndpoint"};
T_.prototype.handle=function(){g.sG(Error("The deprecated handle method is called for url_endpoint_handler."))};
T_.prototype.Mv=function(a,b,c){var d=this.Ra.get(),e=q6a(d.u.get(),b);e?b=B1(d,T6a(e),e,void 0,void 0,c):(wG("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});b=Object.assign({},b);Y0(this.y9,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(c=this.Qn.Nf(2))&&(b.AD_CPN=c.clientPlaybackNonce);a=g.zq(a.url,b);"1"===(new g.Ml(a)).u.get("ase")?g.sP(a,void 0,void 0,a+"&asr=1"):g.sP(a)};U_.prototype.Bq=function(){return"adPingingEndpoint"};
U_.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.Uu.send(a,b,c)};
U_.prototype.Mv=function(a,b,c){U6a(this.Ra.get(),a,b,c)};V_.prototype.Bq=function(){return"changeEngagementPanelVisibilityAction"};
V_.prototype.handle=function(a){this.I.Qa("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
V_.prototype.Mv=function(a){this.handle(a)};W_.prototype.Bq=function(){return"loggingUrls"};
W_.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.ym.send(d.value.baseUrl,b,c)};
W_.prototype.Mv=function(a,b,c){a=g.u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,U6a(this.Ra.get(),d.baseUrl,b,c)};g.x(E3a,g.G);g.x(X_,ub);g.x(F3a,g.G);g.k=F3a.prototype;g.k.hN=function(a,b){return this.j.hN(a,b)};
g.k.Xi=function(a,b){this.ac.j("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.u(this.Jd),d=c.next();!d.done;d=c.next())d.value.Xi(a,b)};
g.k.Og=function(a){if($_(this.j,a)){NP(this.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.Og(a);for(var b=g.u(this.Jd),c=b.next();!c.done;c=b.next())c.value.Og(a);I3a(this,a)}};
g.k.Pg=function(a){if($_(this.j,a)){NP(this.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.Pg(a);for(var b=g.u(this.Jd),c=b.next();!c.done;c=b.next())c.value.Pg(a);$_(this.j,a)&&a0(this.j,a).D&&Z_(this,a,!1)}};
g.k.rI=function(a){NP(this.ac,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);$_(this.j,a)&&(this.j.rI(a),Z_(this,a,!1))};
g.k.Rc=function(a,b){if($_(this.j,a)){b0(this.ac,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.u(this.Jd),d=c.next();!d.done;d=c.next())d.value.Rc(a,b)}};
g.k.Wc=function(a,b,c){if($_(this.j,a)){b0(this.ac,u3a(c),a,b);this.j.Wc(a,b);for(var d=g.u(this.Jd),e=d.next();!e.done;e=d.next())e.value.Wc(a,b,c);(c=i0(this.j,a))&&b.layoutId===c.layoutId&&U3a(this,a,!1)}};
g.k.Ef=function(a,b,c,d){c.Lk&&d?(wG(c,a,b,void 0,c.Wu),Y_(this.ac,d,c.Lk,a,b)):wG("adsClientErrorMessage is missing.",a,b);Z_(this,a,!0)};
g.k.xa=function(){var a=X3a(this.j);a=g.u(a);for(var b=a.next();!b.done;b=a.next())Z_(this,b.value,!1);g.G.prototype.xa.call(this)};
g.k.Ph=function(a,b){b0(this.ac,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",a,b);b0(this.ac,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",a,b);for(var c=g.u(this.Jd),d=c.next();!d.done;d=c.next())d=d.value,b&&d.Ph(a,b)};V3a.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.x(W3a,g.G);g.k=W3a.prototype;g.k.hN=function(a,b){b=h0(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.wi=function(a){a=a0(this,a);"not_scheduled"!==a.j&&j0(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.k.tC=function(a){a=a0(this,a);a.C="fill_requested";a.K.tC()};
g.k.Og=function(a){a=a0(this,a);"enter_requested"!==a.j&&j0(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.k.rI=function(a){a0(this,a).C="fill_canceled"};
g.k.Pg=function(a){a=a0(this,a);"exit_requested"!==a.j&&j0(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.k.Wc=function(a,b){a=a0(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&j0(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.x(c4a,g.G);c4a.prototype.B=function(){return this.u};g.x(d4a,g.G);d4a.prototype.get=function(){this.isDisposed()&&wG("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.j());return this.instance};n0.prototype.executeCommand=function(a,b){OQ(this.j(),a,b)};
n0.prototype.Wg=function(a,b){aEa(this.j(),a,b)};F0.prototype.clone=function(a){var b=this;return new F0(function(){return b.triggerId},a)};B0.prototype.clone=function(a){var b=this;return new B0(function(){return b.triggerId},a)};z0.prototype.clone=function(a){var b=this;return new z0(function(){return b.triggerId},a)};var Z4a={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Zc:[],layoutExitUserInputSubmittedTriggers:[]};var C5a={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};g.x(b1,g.G);g.x(d1,g.G);d1.prototype.onCueRangeEnter=function(){};
d1.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.zc.get().removeCueRange(a),eF(this.Tb.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.Rb.get();d=CG(d.fb.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,slotEntryTrigger:c.slotEntryTrigger?D6a(c.slotId,d,c.slotEntryTrigger):void 0,slotFulfillmentTriggers:E6a(c.slotId,d,c.slotFulfillmentTriggers),slotExpirationTriggers:E6a(c.slotId,d,c.slotExpirationTriggers)})]},
c.slotId))};
d1.prototype.lk=function(){for(var a=g.u(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.zc.get().removeCueRange(b);this.j.clear()};
d1.prototype.Kn=function(){};g.x(e1,g.G);g.k=e1.prototype;g.k.wi=function(){};
g.k.Ej=function(a){var b=this;g.JB(g.LB(),function(){var c=b.j.get(a);c&&wG("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.qa(c)).map(function(d){return d.layoutType})})},0)};
g.k.Og=function(){};
g.k.Dj=function(){};
g.k.Pg=function(){};
g.k.pk=function(){};
g.k.qk=function(){};
g.k.Aj=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.k.Ph=function(a,b){this.xl.has(a)&&this.xl.get(a)===b&&wG("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)):wG("Trying to unscheduled a Layout that was not scheduled.",a,b)}else wG("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Rc=function(a,b){this.xl.set(a,b)};
g.k.Wc=function(a){this.xl.delete(a)};
g.k.Xi=function(){};j1.prototype.clone=function(a){var b=this;return new j1(function(){return b.triggerId},a)};k1.prototype.clone=function(a){var b=this;return new k1(function(){return b.triggerId},a)};l1.prototype.clone=function(a){var b=this;return new l1(function(){return b.triggerId},a)};g.x(o1,g.G);o1.prototype.logEvent=function(a){this.j(a)};
o1.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.JB(g.LB(),function(){return void J6a(q,a,b,c,d,e,f,h,l,m,n)},p):J6a(this,a,b,c,d,e,f,h,l,m,n)}catch(t){Y0(this.Da.get(),"html5_log_pacf_logging_errors")&&g.JB(g.LB(),function(){wG(t instanceof Error?t:String(t),e,f,{pacf_message:"exception during pacf logging"})})}};
o1.prototype.B=function(){return!this.Da.get().I.W().N("html5_disable_client_tmp_logs")};
o1.prototype.CQ=function(){return this.Da.get().CQ()};g.x(p1,o1);p1.prototype.B=function(){var a=o1.prototype.B.call(this);if(Y0(this.Da.get(),"H5_enable_full_pacf_logging"))return a;var b=this.u.get().u();var c=this.Da.get();c=g.JM(c.I.W())?c.j:!0;return a&&b&&c};
p1.prototype.j=function(a,b,c,d,e,f,h,l,m,n){var p=this.Da.get();g.JM(p.I.W())&&Y0(p,"H5_use_async_logging")?(p=this.Da.get(),p=g.xL(p.I.W().experiments,"H5_async_logging_delay_ms")):p=void 0;o1.prototype.j.call(this,a,b,c,d,e,f,h,l,m,n,p)};q1.prototype.clear=function(){this.j.clear()};g.x(r1,g.G);g.k=r1.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.lk=function(a,b,c,d,e,f,h,l){if(""===a)wG("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.I.W().N("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.La.get().lk(a,b,c,d,e,f,h,l);this.Wa.get().lk(a,b,c,d,e,f,h,l);var m;null==(m=this.Kf)||m.get().lk(a,b,c,d,e,f,h,l);this.u.lk(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.lk(a,b,c,d,e,f,h,l)}};
g.k.YO=function(){this.j&&this.Kn(this.j)};
g.k.Kn=function(a){this.j=void 0;for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Kn(a)};g.x(s1,g.G);s1.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)?wG("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new M6a(a,b,c,d,f),this.j.set(a.id,{We:a,listener:e,jo:h}),this.I.hf([a],h))};
s1.prototype.removeCueRange=function(a){var b=this.j.get(a);b?K6a(this,b):wG("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
s1.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
s1.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.x(M6a,g.NG);t1.prototype.Tn=function(a){this.I.Tn(a)};
t1.prototype.Qa=function(a){this.I.Qa.apply(this.I,[a].concat(g.qa(g.Ia.apply(1,arguments))))};u1.prototype.Gf=function(a){return a&&v1(this)};
u1.prototype.CQ=function(){return this.I.W().experiments.sb("h5_enable_generic_error_logging_event")};g.k=x1.prototype;g.k.Dh=function(a,b){if(!this.j.has(a))return{};if("seek"===b)return b=this.I.W().N("html5_dai_enable_active_view_creating_completed_adblock"),Nka(a,b),{};b=IAa(b);if(null===b||this.I.W().N("enable_server_stitched_dai")&&2!==this.I.getPresentingPlayerType(!0))return{};var c=this.I.td();c=c&&(this.I.W().N("enable_server_stitched_dai")||2===c.getPlayerType())&&BP(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.La.get().isFullscreen()};return yq(b,a,c)};
g.k.GD=function(a){var b;null==(b=this.j.get(a.queryId))||b.GD()};
g.k.FD=function(a){var b;null==(b=this.j.get(a.queryId))||b.FD()};
g.k.HD=function(a){var b;null==(b=this.j.get(a.queryId))||b.HD()};
g.k.DD=function(a){var b;null==(b=this.j.get(a.queryId))||b.DD()};
g.k.ED=function(a){var b;null==(b=this.j.get(a.queryId))||b.ED()};g.x(z1,sAa);z1.prototype.j=function(){return this.J()};
z1.prototype.B=function(){return this.K()};
z1.prototype.u=function(){return this.C()};
z1.prototype.N=function(a){return this.D(a)};A1.prototype.dk=function(){var a=this.I.td();return a&&(a=a.dk(1))?a:null};
A1.prototype.ri=function(a,b){"string"===typeof b?this.I.getVideoData(1).WP(a,b):this.I.getVideoData(1).ya(a,b)};g.x(D1,g.G);g.k=D1.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.lk=function(){this.vL.clear();this.kO=null;this.xe.get().clear()};
g.k.Kn=function(){};
g.k.Nf=function(a){var b=this.I.getVideoData(a);return b?a7a(this,b,a||this.I.getPresentingPlayerType(!0)):null};
g.k.l9=function(a,b,c,d){"nPpU29QrbiU"===b.videoId&&this.ri("ads_ssm_vdc_s",{pt:c,dvt:a});w1(this.Da.get())&&"dataloaded"!==a||b7a(this,b,c);if(v1(this.Da.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.vI(a,b);a=g.u(this.listeners);for(c=a.next();!c.done;c=a.next())c.value.uI(b)}};
g.k.I8=function(a,b){void 0!==a&&(this.kO=a,void 0===b?wG("Expected ad video start time on SS video changed"):this.vL.set(a,b));var c=this.I.getPresentingPlayerType(!0),d=this.I.getVideoData(c);this.I.getVideoData(1).ya("ads_ssvc",{pt:c,cpn:null==d?void 0:d.clientPlaybackNonce,crtt:this.I.getCurrentTime(1,!1),atlh:this.I.isAtLiveHead(),adstt:b});d?b7a(this,d,c):wG("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.I.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.xa=function(){this.listeners.length=0;this.zv=null;g.G.prototype.xa.call(this)};
g.k.ri=function(a,b){this.I.getVideoData(1).ya(a,b)};g.x(E1,g.G);g.k=E1.prototype;g.k.lk=function(){var a=this;v1(this.Da.get())||(this.j=Nd(function(){a.I.isDisposed()||a.I.Fg("ad",1)}))};
g.k.Kn=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.zX=function(){};
g.k.playVideo=function(){this.I.playVideo()};
g.k.pauseVideo=function(){this.I.pauseVideo()};
g.k.resumeVideo=function(a){this.Vq(a)&&this.I.playVideo()};
g.k.Vq=function(a){return 2===this.I.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b){var c=this.Wa.get().kO;return 2!==a||b||null===c?this.I.getCurrentTime(a,b):d7a(this,c)};
g.k.getVolume=function(){return this.I.getVolume()};
g.k.isMuted=function(){return this.I.isMuted()};
g.k.getPresentingPlayerType=function(){return this.I.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.I.getPlayerState(a)};
g.k.isFullscreen=function(){return this.I.isFullscreen()};
g.k.isAtLiveHead=function(){return this.I.isAtLiveHead()};
g.k.EA=function(a){this.I.EA(a)};
g.k.k8=function(){var a=this.I.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.Wi(b)}else if(1===a&&P6a(this.Da.get()))for(c=g.u(this.qG),a=c.next();!a.done;a=c.next())a.value.zX(b)};
g.k.b8=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Bj(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.Bh=function(){for(var a=this.I.Ag(),b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Bh(a)};
g.k.Kb=function(){for(var a=this.I.qb().fk(),b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.zj(a)};
g.k.fl=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.fl(a)};g.x(h7a,g.G);H1.prototype.addListener=function(a){this.listeners.add(a)};
H1.prototype.removeListener=function(a){this.listeners.delete(a)};m7a.prototype.tC=function(){var a=this,b=0;k7a(this.j,function(){var c=dF(a.slot.Ea,"metadata_type_ad_break_request_data");b=Date.now();a.Ra.get().ri("abrs","ct."+b+";cmt."+a.La.get().getCurrentTimeSec(1,!1)+";sid."+a.slot.slotId+";");return a.Yf.get().fetch({n_:c.getAdBreakUrl,BU:new g.NG(c.VP,c.UP),uG:dF(a.slot.Ea,"metadata_type_cue_point")})},function(){n7a(a)},function(c){var d=Date.now()-b;
a.Ra.get().ri("abrr","ct."+(new Date).getTime()+";cmt."+a.La.get().getCurrentTimeSec(1,!1)+";l."+d.toString()+";sid."+a.slot.slotId+";");d=c.Vu;2<=d.length&&c.ssdaiAdsConfig&&wG("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)})||n7a(a)})};
m7a.prototype.ML=function(){l7a(this.j)};o7a.prototype.tC=function(){var a=this;k7a(this.j,function(){var b=dF(a.slot.Ea,"metadata_type_ad_break_request_data");return a.Yf.get().fetch({n_:b.getAdBreakUrl,BU:new g.NG(b.VP,b.UP)})})};
o7a.prototype.ML=function(){l7a(this.j)};p7a.prototype.tC=function(){var a=this.slot.Ea,b,c=null!=(b=this.slot.fulfilledLayout)?b:dF(a,"metadata_type_fulfilled_layout");J3a(this.callback,this.slot,c)};
p7a.prototype.ML=function(){G3a(this.callback,this.slot,new iF("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")};r7a.prototype.Jf=function(a,b){return b.fulfilledLayout||q7a(b,{Ne:["metadata_type_fulfilled_layout"]})?new p7a(a,b):this.j(a,b)};g.x(J1,r7a);
J1.prototype.j=function(a,b){if(q7a(b,{Ne:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new m7a(a,b,this.Yf,this.Jb,this.Sb,this.Da,this.Ra,this.La,this.Oc);if(q7a(b,{Ne:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new o7a(a,b,this.Yf,this.Jb,this.Sb,this.Da);throw new iF("Unsupported slot with type: "+b.slotType+" and client metadata: "+L_(b.Ea)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.x(K1,r7a);K1.prototype.j=function(a,b){throw new iF("Unsupported slot with type: "+b.slotType+" and client metadata: "+L_(b.Ea)+" in DefaultFulfillmentAdapterFactory.");};g.k=s7a.prototype;g.k.Uc=function(){return this.slot};
g.k.zb=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.Ef(this.slot,a,new X_("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=dF(a.Ea,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.Rc(this.slot,a),Wpa(this.j,this.slot,
b)):wG("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}};
g.k.Gg=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Ef(this.slot,a,new X_("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.Wc(this.slot,a,b),u7a(this))};M1.prototype.Jf=function(a,b,c,d){if(L1(d,{Ne:["metadata_type_ad_break_response_data"],Rf:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new s7a(a,c,d,this.j,this.Tb,this.fb);throw new X_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+L_(d.Ea)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};N1.prototype.Dh=function(a,b){b=void 0===b?!1:b;var c=(this.B.get(a)||[]).concat();if(b=b&&gAa(a)){var d=this.B.get(b);d&&c.push.apply(c,g.qa(d))}w7a(this,a,c);this.j.add(a);b&&this.j.add(b)};
N1.prototype.zd=function(a,b){b=void 0===b?!1:b;if(!this.j.has(a)){var c=b&&gAa(a);c&&(b=!this.j.has(c));this.Dh(a,b)}};
N1.prototype.Vw=function(a,b){b=void 0===b?!1:b;this.j.has(a)?w7a(this,a,[]):this.zd(a,b)};g.k=z7a.prototype;g.k.Uc=function(){return this.slot};
g.k.zb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Ef(this.slot,a,new X_("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.Rc(this.slot,a),this.jb.zd("impression"),c2(this.j,a))};
g.k.Gg=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Ef(this.slot,a,new X_("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.Wc(this.slot,a,b)};g.k=B7a.prototype;g.k.Uc=function(){return this.slot};
g.k.zb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Ef(this.slot,a,new X_("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.Rc(this.slot,a),this.jb.zd("impression"),c2(this.j,a))};
g.k.Gg=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Ef(this.slot,a,new X_("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.Wc(this.slot,a,b)};S1.prototype.Jf=function(a,b,c,d){if(!this.Da.get().I.W().N("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(L1(d,A7a()))return new z7a(a,c,d,this.Ra,this.j)}else if(L1(d,{Ne:[],Rf:["LAYOUT_TYPE_FORECASTING"]}))return new B7a(a,c,d,this.Ra,this.j);throw new X_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+L_(d.Ea)+" in ForecastingLayoutRenderingAdapterFactory.");};g.x(T1,g.SG);g.k=T1.prototype;g.k.Uc=function(){return this.u.slot};
g.k.zb=function(){return this.u.layout};
g.k.init=function(){this.B.get().addListener(this)};
g.k.release=function(){this.B.get().removeListener(this);this.dispose()};
g.k.tN=function(){};
g.k.rN=function(){};
g.k.qN=function(){};
g.k.jH=function(){};
g.k.startRendering=function(a){var b=this;D7a(this.u,a,function(){return void b.vJ()})};
g.k.vJ=function(){this.B.get().vJ(this.j)};
g.k.Gg=function(a,b){var c=this;D7a(this.u,a,function(){var d=c.B.get();x8a(d,c.j,3);c.j=[];c.callback.Wc(c.slot,a,b)})};
g.k.xa=function(){this.B.isDisposed()||this.B.get().removeListener(this);g.SG.prototype.xa.call(this)};
g.ea.Object.defineProperties(T1.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.u.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.u.layout}}});g.x(E7a,ZO);g.x(F7a,T1);g.k=F7a.prototype;g.k.yh=function(a,b){V1("action-companion",a,this.J.get().xl,this.Ra.get(),this.C,this.D,this.Uc(),this.zb(),b)};
g.k.startRendering=function(a){U1(this.jb,this.Uc(),this.zb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new E7a(b,c,d,e,f)},this.j);
T1.prototype.startRendering.call(this,a)};
g.k.Rc=function(a,b){b.layoutId===this.layout.layoutId?this.jb.zd("impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Ra.get().dk():wG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Wc=function(){};
g.k.wi=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.Og=function(){};
g.k.Pg=function(){};
g.k.pk=function(){};
g.k.qk=function(){};
g.k.Aj=function(){};
g.k.Ph=function(){};
g.k.Xi=function(){};
g.k.xa=function(){this.Le().Jd.delete(this);T1.prototype.xa.call(this)};g.x(W1,T1);W1.prototype.init=function(){T1.prototype.init.call(this);var a=dF(this.layout.Ea,"metadata_type_ad_action_interstitial_renderer"),b=P1(this.jb);this.j.push(new IP(a,b,this.layout.layoutId,{adsClientData:this.layout.Cc},!0,!0))};
W1.prototype.startRendering=function(a){T1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
W1.prototype.yh=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=null==(c=dF(this.layout.Ea,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:c.current)&&P7a(a,this.Uc(),this.layout)}};
W1.prototype.xa=function(){T1.prototype.xa.call(this)};g.x(X1,T1);g.k=X1.prototype;g.k.init=function(){T1.prototype.init.call(this);var a=dF(this.layout.Ea,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Cc},c=!dF(this.layout.Ea,"metadata_type_player_bytes_callback").xH;this.j.push(new QFa(a,this.layout.layoutId,dF(this.layout.Ea,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.Qt=function(){this.C||this.La.get().resumeVideo(2)};
g.k.startRendering=function(a){T1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a);this.D.ly=this};
g.k.Gg=function(a,b){T1.prototype.Gg.call(this,a,b);C$a(this.D,this)};
g.k.yh=function(a){if(p6a(this.J.get(),this.K))switch(a){case "visit-advertiser":this.Ra.get().I.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.C||this.La.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.C=this.La.get().Vq(2))||this.La.get().pauseVideo();break;case "visit-advertiser":this.La.get().pauseVideo();dF(this.layout.Ea,"metadata_type_player_bytes_callback").cJ();
break;case "skip-button":if(a=dF(this.layout.Ea,"metadata_type_player_bytes_callback"),a.xH)a.fA(this.Uc(),this.layout);else{var b;(a=null==(b=dF(this.layout.Ea,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&P7a(a,this.Uc(),this.layout)}}};
g.k.xa=function(){T1.prototype.xa.call(this)};g.x(Y1,T1);g.k=Y1.prototype;g.k.startRendering=function(a){var b=this;D7a(this.u,a,function(){b.j.push(new SAa(dF(b.layout.Ea,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.Cc));b.vJ();b.callback.Rc(b.slot,a);g.yP(y1(b.La.get(),1),512)&&b.callback.Ef(b.Uc(),b.zb(),new X_("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.k.Wi=function(){};
g.k.Bj=function(a){if(a.state.isError()){var b;this.callback.Ef(this.Uc(),this.zb(),new X_("A player error happened during adNotify",{playerErrorCode:null==(b=a.state.gh)?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.Bh=function(){};
g.k.zj=function(){};
g.k.onVolumeChange=function(){};
g.k.fl=function(){};
g.k.yh=function(){};K7a.prototype.Jf=function(a,b,c,d){if(a=Z1(a,c,d,this.yc,this.La,this.Ra,this.u,this.j,this.Da))return a;throw new X_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+L_(d.Ea)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.x(L7a,g.G);g.k=L7a.prototype;g.k.init=function(){var a=dF(this.layout.Ea,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Wa.get().addListener(this);this.j.init();(a=dF(this.j.zb().Ea,"metadata_type_player_vars"))&&this.Ce.get().addPlayerResponseForAssociation(a)};
g.k.release=function(){this.Wa.get().removeListener(this);this.j.release()};
g.k.oI=function(){};
g.k.vI=function(a){this.layout.layoutId===a&&(void 0!==this.u?(this.callback.Wc(this.slot,this.layout,this.u),this.u=void 0):(this.B&&wG("Expected a video to exit at most once",this.slot,this.layout),this.B=!0,c2(this.Ge,this.layout)))};
g.k.uI=function(a){this.layout.layoutId===a&&v8a(this.le,this.slot.slotId)};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Ef(this.Uc(),a,new X_("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.La.get().addListener(this),this.Le().Jd.add(this),this.j.startRendering(this.layout),this.callback.Rc(this.slot,this.layout))};
g.k.Gg=function(a,b){this.j.Gg(this.layout,b);this.La.get().removeListener(this);this.B?(this.callback.Wc(this.slot,this.layout,b),this.B=!1):(void 0!==this.u&&wG("Expected the layout to be requested to exit at most once",this.slot,this.layout),this.u=b,this.Oc.get().finishSegmentByCpn(this.layout.layoutId,this.Wa.get().Nf(1).clientPlaybackNonce))};
g.k.Uc=function(){return this.slot};
g.k.zb=function(){return this.layout};
g.k.Ar=function(){this.j.Ar()};
g.k.Er=function(){this.j.Er()};
g.k.fA=function(a,b){wG("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.slot,this.layout,{requestingSlot:a,requestingLayout:b})};
g.k.Rc=function(a,b){this.j.Rc(a,b)};
g.k.Wc=function(a,b,c){b.layoutId===this.layout.layoutId&&this.Le().Jd.delete(this);this.j.Wc(a,b,c)};
g.k.wi=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.Og=function(){};
g.k.Pg=function(){};
g.k.pk=function(){};
g.k.qk=function(){};
g.k.Aj=function(){};
g.k.Ph=function(){};
g.k.Xi=function(){};
g.k.Wi=function(a){this.j.Wi(a)};
g.k.Bj=function(a){if(a.state.isError()){var b,c=new X_("There was a player error during SSAP single media layout.",{playerErrorCode:null==(b=a.state.gh)?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),d;this.j.Yz(null==(d=a.state.gh)?void 0:d.errorCode,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");this.callback.Ef(this.slot,this.layout,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.j.Bj(a)};
g.k.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)};
g.k.Bh=function(a){this.j.Bh(a)};
g.k.zj=function(a){this.j.zj(a)};
g.k.onVolumeChange=function(){this.j.onVolumeChange()};
g.k.fl=function(){};g.x($1,g.G);g.k=$1.prototype;g.k.init=function(){var a=dF(this.zb().Ea,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Bt()};
g.k.release=function(){var a=dF(this.zb().Ea,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.Zt()};
g.k.startRendering=function(a){a.layoutId!==this.zb().layoutId?this.callback.Ef(this.Uc(),a,new X_("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.zb().layoutId+("and LayoutType: "+this.zb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.La.get().addListener(this),this.Le().Jd.add(this),Q6a(this.Da.get())&&this.Sc.get().IQ(),this.Da.get().I.W().experiments.sb("html5_load_empty_player_in_media_break_sub_lra")||
this.Gf()||f7a(this.La.get()),Q6a(this.Da.get())||this.Sc.get().IQ(),this.pu(a))};
g.k.Gg=function(a,b){this.Gf()?(this.Tr(a,b),this.La.get().removeListener(this)):(this.DN=!0,this.Tr(a,b),this.La.get().I.au(),this.Ce.get().I.cueVideoByPlayerVars({},2),a=y1(this.La.get(),1),g.cQ(a)&&!g.yP(a,2)&&this.La.get().playVideo(),this.La.get().removeListener(this),this.DN&&this.ZW())};
g.k.Wc=function(a,b){b.layoutId===this.zb().layoutId&&(this.DN=!1,this.Le().Jd.delete(this))};
g.k.Bj=function(a,b){if(a.state.isError()){var c,d;this.Ef(null==(c=a.state.gh)?void 0:c.errorCode,new X_("There was a player error during this media layout.",{playerErrorCode:null==(d=a.state.gh)?void 0:d.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED",b)}else this.UX(a)};
g.k.wi=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.Og=function(){};
g.k.Pg=function(){};
g.k.pk=function(){};
g.k.qk=function(){};
g.k.Aj=function(){};
g.k.Ph=function(){};
g.k.Xi=function(){};
g.k.fl=function(){};
g.k.Gf=function(){var a=dF(this.Uc().Ea,"metadata_type_eligible_for_ssap");return void 0===a?(wG("Expected SSAP eligibility in PlayerBytes slots",this.Uc(),this.zb()),!1):this.Da.get().Gf(a)};g.x(M7a,$1);g.k=M7a.prototype;g.k.Uc=function(){return this.slot};
g.k.zb=function(){return this.layout};
g.k.Bt=function(){if(1>this.u.length)throw new iF("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});var a=dF(this.zb().Ea,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=this);a=g.u(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),K3a(this.B,this.slot,b.zb()),L3a(this.B,this.slot,b.zb());if(this.Gf())for(this.Wa.get().addListener(this),a=g.u(this.u),b=a.next();!b.done;b=a.next())(b=dF(b.value.zb().Ea,"metadata_type_player_vars"))&&
this.Ce.get().addPlayerResponseForAssociation(b)};
g.k.Zt=function(){var a=dF(this.zb().Ea,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=null);a=g.u(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,gBa(this.B,this.slot,b.zb()),b.release();this.Gf()&&this.Wa.get().removeListener(this)};
g.k.oI=function(){};
g.k.vI=function(a,b){var c=this,d=this.u[this.j];d&&(d.zb().layoutId!==a&&wG("Unexpected active subLRA when previous playback ends",this.slot,this.layout),this.J=function(e){e.layoutId!==a&&wG("Unexpected previous CPN when sublayout exit is confirmed",c.slot,c.layout);c.u.some(function(f){return f.zb().layoutId===b})||(c.j=c.u.length,c2(c.D,c.layout))},d.PV())};
g.k.uI=function(a){var b=this.u.findIndex(function(c){return c.zb().layoutId===a});
-1!==b&&(-1===this.j&&v8a(this.le,this.slot.slotId),T7a(this,b))};
g.k.Ar=function(a,b){var c=this.u[this.j];b.layoutId!==a2(c,a,b)?wG("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Ar()};
g.k.Er=function(a,b){var c=this.u[this.j];b.layoutId!==a2(c,a,b)?wG("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Er()};
g.k.fA=function(a,b){var c=this.u[this.j];b.layoutId!==a2(c,a,b)?wG("onSkipRequested for a PlayerBytes layout that is not currently active",c.Uc(),c.zb(),{requestingSlot:a,requestingLayout:b}):S7a(this,c.Uc(),c.zb(),"skipped")};
g.k.pu=function(){this.Gf()||-1===this.j&&R7a(this,this.j+1)};
g.k.V8=function(a,b){e0(this.B,a,b)};
g.k.Tr=function(a,b){var c=this;this.j===this.u.length?this.callback.Wc(this.slot,this.layout,b):(a=this.u[this.j],a.Gg(a.zb(),b),this.K=function(){c.callback.Wc(c.slot,c.layout,b)},this.Gf()&&this.Oc.get().finishSegmentByCpn(a.zb().layoutId,this.Wa.get().Nf(1).clientPlaybackNonce))};
g.k.Rc=function(a,b){var c=this.u[this.j];c&&c.Rc(a,b)};
g.k.Wc=function(a,b,c){$1.prototype.Wc.call(this,a,b,c);var d=this.u[this.j];d&&d.Wc(a,b,c)};
g.k.ZW=function(){var a=this.u[this.j];a&&a.iH()};
g.k.Wi=function(a){var b=this.u[this.j];b&&b.Wi(a)};
g.k.UX=function(a){var b=this.u[this.j];b&&b.Bj(a)};
g.k.Ef=function(a,b,c){-1===this.j&&(this.callback.Rc(this.slot,this.layout),this.j++);var d=this.u[this.j];d?d.Yz(a,b,c):wG("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.j),layoutId:this.zb().layoutId})};
g.k.onFullscreenToggled=function(a){var b=this.u[this.j];if(b)b.onFullscreenToggled(a)};
g.k.Bh=function(a){var b=this.u[this.j];b&&b.Bh(a)};
g.k.zj=function(a){var b=this.u[this.j];b&&b.zj(a)};
g.k.onVolumeChange=function(){var a=this.u[this.j];if(a)a.onVolumeChange()};
g.k.X8=function(a,b,c){this.Gf()?Q7a(this,b,c):S7a(this,a,b,c)};
g.k.W8=function(a,b,c,d){this.Gf()?wG("Unexpected sublayout error",a,b,{errorMessage:c.message,errorType:d}):S7a(this,a,b,"error")};g.x(f2,g.G);g.k=f2.prototype;g.k.Uc=function(){return this.slot};
g.k.zb=function(){return this.layout};
g.k.init=function(){var a=dF(this.layout.Ea,"metadata_type_video_length_seconds"),b=dF(this.layout.Ea,"metadata_type_active_view_traffic_type");cP(this.layout.Yb)&&R6a(this.Ub.get(),this.layout.layoutId,b,a,this);V6a(this.Ra.get(),this);this.Bt()};
g.k.release=function(){cP(this.layout.Yb)&&S6a(this.Ub.get(),this.layout.layoutId);W6a(this.Ra.get(),this);this.Zt()};
g.k.Ar=function(){};
g.k.Er=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Ef(this.slot,a,new X_("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.Kc="rendering_start_requested",bAa(this.qg.get(),1)?(this.oE(-1),this.pu(a),this.fv(!1)):this.Yz("ui_unstable",new X_("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.Rc=function(a,b){if(b.layoutId===this.layout.layoutId){this.Kc="rendering";this.nD=this.La.get().isMuted()||0===this.La.get().getVolume();this.zd("impression");this.zd("start");if(this.La.get().isMuted()){this.Vw("mute");var c;a=(null==(c=e2(this))?void 0:c.muteCommands)||[];this.Vb.get().Wg(a,this.layout.layoutId)}if(this.La.get().isFullscreen()){this.Dh("fullscreen");var d;c=(null==(d=e2(this))?void 0:d.fullscreenCommands)||[];this.Vb.get().Wg(c,this.layout.layoutId)}this.Sc.get().qQ();this.oE(1);
this.IX();var e;d=(null==(e=e2(this))?void 0:e.impressionCommands)||[];this.Vb.get().Wg(d,this.layout.layoutId)}};
g.k.Yz=function(a,b,c){this.Tu={NJ:3,iF:"load_timeout"===a?402:400,errorMessage:b.message};this.zd("error");var d;a=(null==(d=e2(this))?void 0:d.errorCommands)||[];this.Vb.get().Wg(a,this.layout.layoutId);this.callback.Ef(this.slot,this.layout,b,c)};
g.k.iH=function(){this.Gf()&&wG("Unexpected ad player in SSAP",this.slot,this.layout);this.pG()};
g.k.PV=function(){this.pG()};
g.k.HV=function(){if("rendering"===this.Kc){this.Vw("pause");var a,b=(null==(a=e2(this))?void 0:a.pauseCommands)||[];this.Vb.get().Wg(b,this.layout.layoutId);this.oE(2)}};
g.k.IV=function(){if("rendering"===this.Kc){this.Vw("resume");var a,b=(null==(a=e2(this))?void 0:a.resumeCommands)||[];this.Vb.get().Wg(b,this.layout.layoutId)}};
g.k.Gg=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.Ef(this.slot,a,new X_("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.Kc){this.Kc="rendering_stop_requested";this.layoutExitReason=b;switch(b){case "normal":this.zd("complete");break;case "skipped":this.zd("skip");
break;case "abandoned":R1(this.jb,"impression")&&this.zd("abandon")}this.Tr(a,b)}};
g.k.Wc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.Kc="not_rendering",this.layoutExitReason=void 0,(a="normal"!==c||this.position+1===this.RZ)&&this.fv(a),this.JX(c),this.oE(0),c){case "abandoned":if(R1(this.jb,"impression")){var d,e=(null==(d=e2(this))?void 0:d.abandonCommands)||[];this.Vb.get().Wg(e,this.layout.layoutId)}break;case "normal":d=(null==(e=e2(this))?void 0:e.completeCommands)||[];this.Vb.get().Wg(d,this.layout.layoutId);break;case "skipped":var f;d=(null==(f=e2(this))?
void 0:f.skipCommands)||[];this.Vb.get().Wg(d,this.layout.layoutId)}};
g.k.iz=function(){return this.layout.layoutId};
g.k.HM=function(){return this.Tu};
g.k.Bj=function(a){if("not_rendering"!==this.Kc){this.XY||(a=new g.EP(a.state,new g.YP),this.XY=!0);if(!this.Gf()){var b=2===this.La.get().getPresentingPlayerType();if("rendering_start_requested"===this.Kc){b&&U7a(a)&&this.ZL();return}if(!b){this.iH();return}if(g.GP(a,2)){this.Si();return}}U7a(a)?this.oE(1):g.GP(a,4)&&!g.GP(a,2)&&this.HV();0>FP(a,4)&&!(0>FP(a,2))&&this.IV()}};
g.k.GD=function(){if("rendering"===this.Kc){this.jb.zd("active_view_measurable");var a,b=(null==(a=e2(this))?void 0:a.activeViewMeasurableCommands)||[];this.Vb.get().Wg(b,this.layout.layoutId)}};
g.k.FD=function(){if("rendering"===this.Kc){this.jb.zd("active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=e2(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.Vb.get().Wg(b,this.layout.layoutId)}};
g.k.HD=function(){if("rendering"===this.Kc){this.jb.zd("active_view_viewable");var a,b=(null==(a=e2(this))?void 0:a.activeViewViewableCommands)||[];this.Vb.get().Wg(b,this.layout.layoutId)}};
g.k.DD=function(){if("rendering"===this.Kc){this.jb.zd("audio_audible");var a,b=(null==(a=e2(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.Vb.get().Wg(b,this.layout.layoutId)}};
g.k.ED=function(){if("rendering"===this.Kc){this.jb.zd("audio_measurable");var a,b=(null==(a=e2(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.Vb.get().Wg(b,this.layout.layoutId)}};
g.k.fv=function(a){this.Sc.get().fv(dF(this.layout.Ea,"metadata_type_ad_placement_config").kind,a,this.position,this.RZ,!1)};
g.k.onFullscreenToggled=function(a){if("rendering"===this.Kc)if(a){this.Dh("fullscreen");var b,c=(null==(b=e2(this))?void 0:b.fullscreenCommands)||[];this.Vb.get().Wg(c,this.layout.layoutId)}else this.Dh("end_fullscreen"),b=(null==(c=e2(this))?void 0:c.endFullscreenCommands)||[],this.Vb.get().Wg(b,this.layout.layoutId)};
g.k.onVolumeChange=function(){if("rendering"===this.Kc)if(this.La.get().isMuted()){this.Vw("mute");var a,b=(null==(a=e2(this))?void 0:a.muteCommands)||[];this.Vb.get().Wg(b,this.layout.layoutId)}else this.Vw("unmute"),a=(null==(b=e2(this))?void 0:b.unmuteCommands)||[],this.Vb.get().Wg(a,this.layout.layoutId)};
g.k.Bh=function(){};
g.k.zj=function(){};
g.k.fl=function(){};
g.k.Dh=function(a){this.jb.Dh(a,!this.nD)};
g.k.zd=function(a){this.jb.zd(a,!this.nD)};
g.k.Vw=function(a){this.jb.Vw(a,!this.nD)};
g.k.Gf=function(){var a=dF(this.slot.Ea,"metadata_type_eligible_for_ssap");return void 0===a?(wG("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Da.get().Gf(a)};g.x(Z7a,f2);g.k=Z7a.prototype;g.k.Bt=function(){};
g.k.Zt=function(){var a=this.Ra.get();a.AJ===this&&(a.AJ=null);this.timer.stop()};
g.k.pu=function(){Y7a(this);this.Gf()||f7a(this.La.get());this.Ra.get().AJ=this;NH("pbp")||NH("pbs")||SH("pbp");NH("pbp","watch")||NH("pbs","watch")||SH("pbp",void 0,"watch");this.ZL()};
g.k.IX=function(){b8a(this)};
g.k.Si=function(){};
g.k.Ar=function(){this.timer.stop();f2.prototype.HV.call(this)};
g.k.Er=function(){b8a(this);f2.prototype.IV.call(this)};
g.k.gz=function(){return dF(this.zb().Ea,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.Tr=function(){this.timer.stop()};
g.k.Bc=function(){var a=Date.now(),b=a-this.jO;this.jO=a;this.aj+=b;this.aj>=this.gz()?(this.aj=this.gz(),g2(this,this.aj/1E3,!0),a8a(this,this.aj),this.pG()):(g2(this,this.aj/1E3),a8a(this,this.aj))};
g.k.JX=function(){};
g.k.Wi=function(){};g.x(h2,f2);g.k=h2.prototype;g.k.Bt=function(){dF(this.zb().Ea,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=dF(this.zb().Ea,"metadata_type_shrunken_player_bytes_config")};
g.k.Zt=function(){dF(this.zb().Ea,"metadata_type_player_bytes_callback_ref").current=null;this.vv&&this.zc.get().removeCueRange(this.vv);this.vv=void 0;var a;null==(a=this.UH)||a.dispose();this.Rz&&this.Rz.dispose()};
g.k.pu=function(a){var b=R0(this.Da.get()),c=S0(this.Da.get());if(b&&c&&!this.Gf()){c=dF(a.Ea,"metadata_type_preload_player_vars");var d=g.xL(this.Da.get().I.W().experiments,"html5_preload_wait_time_secs");c&&this.Rz&&this.Rz.start(1E3*d)}c=dF(a.Ea,"metadata_type_ad_video_id");d=dF(a.Ea,"metadata_type_legacy_info_card_vast_extension");c&&d&&this.Bg.get().I.W().Ma.add(c,{WB:d});(c=dF(a.Ea,"metadata_type_sodar_extension_data"))&&i7a(this.zf.get(),c);g7a(this.La.get(),!1);Y7a(this);if(this.Gf())this.ZL();
else{b?(c=this.Ce.get(),a=dF(a.Ea,"metadata_type_player_vars"),c.I.loadVideoByPlayerVars(a,!1,2)):(c=this.Ce.get(),a=dF(a.Ea,"metadata_type_player_vars"),c.I.cueVideoByPlayerVars(a,2));var e;null==(e=this.UH)||e.start();b||this.Ce.get().I.playVideo(2)}};
g.k.IX=function(){var a;null==(a=this.UH)||a.stop();this.vv="adcompletioncuerange:"+this.zb().layoutId;this.zc.get().addCueRange(this.vv,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var b;(this.adCpn=(null==(b=this.Wa.get().Nf(2))?void 0:b.clientPlaybackNonce)||"")||wG("Media layout confirmed started, but ad CPN not set.");this.Kd.get().Qa("onAdStart",this.adCpn)};
g.k.Si=function(){this.pG()};
g.k.gz=function(){var a;return null==(a=this.Wa.get().Nf(2))?void 0:a.x9};
g.k.cJ=function(){this.jb.Dh("clickthrough")};
g.k.Tr=function(){var a;null==(a=this.UH)||a.stop();this.Rz&&this.Rz.stop();g7a(this.La.get(),!0);var b;(null==(b=this.shrunkenPlayerBytesConfig)?0:b.shouldRequestShrunkenPlayerBytes)&&this.La.get().EA(!1)};
g.k.onCueRangeEnter=function(a){a!==this.vv?wG("Received CueRangeEnter signal for unknown layout.",this.Uc(),this.zb(),{cueRangeId:a}):(this.zc.get().removeCueRange(this.vv),this.vv=void 0,a=dF(this.zb().Ea,"metadata_type_video_length_seconds"),g2(this,a,!0),this.zd("complete"))};
g.k.JX=function(a){"abandoned"!==a&&this.Kd.get().Qa("onAdComplete");this.Kd.get().Qa("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.Wi=function(a){"rendering"===this.Kc&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.La.get().EA(!0),g2(this,a))};g.x(d8a,$1);g.k=d8a.prototype;g.k.Uc=function(){return this.j.Uc()};
g.k.zb=function(){return this.j.zb()};
g.k.Bt=function(){this.j.init()};
g.k.Zt=function(){this.j.release()};
g.k.Ar=function(){this.j.Ar()};
g.k.Er=function(){this.j.Er()};
g.k.fA=function(a,b){wG("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.Uc(),this.zb(),{requestingSlot:a,requestingLayout:b})};
g.k.pu=function(a){this.j.startRendering(a)};
g.k.Tr=function(a,b){this.j.Gg(a,b)};
g.k.Rc=function(a,b){this.j.Rc(a,b)};
g.k.Wc=function(a,b,c){$1.prototype.Wc.call(this,a,b,c);this.j.Wc(a,b,c);b.layoutId===this.zb().layoutId&&this.Sc.get().IA()};
g.k.ZW=function(){this.j.iH()};
g.k.Wi=function(a){this.j.Wi(a)};
g.k.UX=function(a){this.j.Bj(a)};
g.k.Ef=function(a,b,c){this.j.Yz(a,b,c)};
g.k.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)};
g.k.Bh=function(a){this.j.Bh(a)};
g.k.zj=function(a){this.j.zj(a)};
g.k.onVolumeChange=function(){this.j.onVolumeChange()};i2.prototype.Jf=function(a,b,c,d){if(a=g8a(a,b,c,d,this.Le,this.le,this.j,this.Ra,this.Ub,this.zf,this.Ce,this.Wa,this.La,this.zc,this.Sc,this.Kd,this.qg,this.Vb,this.Bg,this.Da,this.Oc))return a;throw new X_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+L_(d.Ea)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.x(j2,g.G);g.k=j2.prototype;g.k.KX=function(a){if(!this.j){var b;null==(b=this.Oc)||b.get().Ut(a.identifier);return!1}h8a(this,this.j,a);return!0};
g.k.CX=function(){};
g.k.lk=function(a){this.j&&this.j.contentCpn!==a&&(wG("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.k.Kn=function(a){this.j&&this.j.contentCpn!==a&&wG("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.xa=function(){g.G.prototype.xa.call(this);this.j=null};g.x(k2,g.G);g.k=k2.prototype;g.k.Rc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&QAa(b,this.B)){var d=this.Wa.get().Nf(2),e=this.j(b,d||void 0,this.Da.get().I.W().experiments.sb("enable_post_ad_perception_survey_in_tvhtml5"));e?eF(this.Tb.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[N4a(c.Rb.get(),e.contentCpn,e.Sp,function(h){return c.u(h.slotId,"core",e,O_(c.Sb.get(),h))},e.inPlayerSlotId)];
e.instreamAdPlayerUnderlayRenderer&&O4a(c.Da.get())&&f.push(i8a(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):wG("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.wi=function(){};
g.k.Ej=function(){};
g.k.Og=function(){};
g.k.Dj=function(){};
g.k.Pg=function(){};
g.k.pk=function(){};
g.k.qk=function(){};
g.k.Aj=function(){};
g.k.Ph=function(){};
g.k.Xi=function(){};
g.k.Wc=function(){};var T2=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=m8a.prototype;g.k.init=function(){};
g.k.Uc=function(){return this.slot};
g.k.CG=function(){this.callback.Og(this.slot)};
g.k.EG=function(){this.callback.Pg(this.slot)};
g.k.release=function(){};m2.prototype.Jf=function(a,b){return new m8a(a,b)};g.k=n8a.prototype;g.k.init=function(){};
g.k.Uc=function(){return this.slot};
g.k.CG=function(){F1(this.La.get(),"ad-showing");this.callback.Og(this.slot)};
g.k.EG=function(){this.callback.Pg(this.slot);G1(this.La.get(),"ad-showing")};
g.k.release=function(){};g.k=o8a.prototype;g.k.init=function(){};
g.k.Uc=function(){return this.slot};
g.k.CG=function(){F1(this.La.get(),"ad-showing");F1(this.La.get(),"ad-interrupting");this.u=this.La.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.Og(this.slot)};
g.k.EG=function(){G1(this.La.get(),"ad-showing");G1(this.La.get(),"ad-interrupting");var a=this.u?Infinity:this.La.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.La.get().I.seekTo(a,void 0,void 0,1);this.callback.Pg(this.slot)};
g.k.release=function(){};g.k=p8a.prototype;g.k.init=function(){};
g.k.Uc=function(){return this.slot};
g.k.CG=function(){F1(this.La.get(),"ad-showing");F1(this.La.get(),"ad-interrupting");this.callback.Og(this.slot)};
g.k.EG=function(){QQ(this.La.get());G1(this.La.get(),"ad-showing");G1(this.La.get(),"ad-interrupting");this.callback.Pg(this.slot)};
g.k.release=function(){QQ(this.La.get())};n2.prototype.Jf=function(a,b){if(gF(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new n8a(a,b,this.La);if(b.slotEntryTrigger instanceof c1&&gF(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new o8a(a,b,this.La);if(gF(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new p8a(a,b,this.La);throw new iF("Unsupported slot with type "+b.slotType+" and client metadata: "+(L_(b.Ea)+" in PlayerBytesSlotAdapterFactory."));};g.x(p2,g.G);p2.prototype.j=function(a){for(var b=[],c=g.u(this.Xb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof J0&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.triggeringLayoutId===a&&b.push(d)}b.length?f0(this.iK(),b):wG("Mute requested but no registered triggers can be activated.")};g.x(q2,p2);g.k=q2.prototype;g.k.yh=function(a,b){if(b)if("skip-button"===a){a=[];for(var c=g.u(this.Xb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof J0&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.triggeringLayoutId===b&&a.push(d)}a.length&&f0(this.iK(),a)}else Y0(this.Da.get(),"supports_multi_step_on_desktop")?"ad-action-submit-survey"===a&&q8a(this,b):"survey-submit"===a?q8a(this,b):"survey-single-select-answer-button"===a&&q8a(this,b)};
g.k.tN=function(a){p2.prototype.j.call(this,a)};
g.k.rl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new iF("Tried to register duplicate trigger for slot.");if(!(b instanceof K0||b instanceof J0))throw new iF("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Xb.set(b.triggerId,new o2(a,b,c,d))};
g.k.Dl=function(a){this.Xb.delete(a.triggerId)};
g.k.rN=function(){};
g.k.qN=function(){};
g.k.jH=function(){};g.x(r2,g.G);g.k=r2.prototype;
g.k.rl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new iF("Tried to register duplicate trigger for slot.");if(!(b instanceof F0||b instanceof B0||b instanceof j1||b instanceof k1||b instanceof z0||b instanceof l1||b instanceof s6a||b instanceof D0||b instanceof E0||b instanceof H0||b instanceof r6a||b instanceof h1))throw new iF("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new o2(a,b,c,d);this.Xb.set(b.triggerId,a);b instanceof
z0&&this.D.has(b.triggeringSlotId)&&f0(this.j(),[a]);b instanceof F0&&this.B.has(b.triggeringSlotId)&&f0(this.j(),[a]);b instanceof D0&&this.u.has(b.triggeringLayoutId)&&f0(this.j(),[a])};
g.k.Dl=function(a){this.Xb.delete(a.triggerId)};
g.k.wi=function(a){this.D.add(a.slotId);for(var b=[],c=g.u(this.Xb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof z0&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&f0(this.j(),b)};
g.k.Ej=function(a){this.D.delete(a.slotId);for(var b=[],c=g.u(this.Xb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof l1&&e.triggeringSlotId===a.slotId&&b.push(d)}0<b.length&&f0(this.j(),b)};
g.k.Dj=function(a){for(var b=[],c=g.u(this.Xb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof s6a&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&f0(this.j(),b)};
g.k.Og=function(a){this.B.add(a.slotId);for(var b=[],c=g.u(this.Xb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof F0&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&f0(this.j(),b)};
g.k.Pg=function(a){this.B.delete(a.slotId);this.C.add(a.slotId);for(var b=[],c=g.u(this.Xb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof B0)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof h1){var e=d.trigger;a.slotId===e.slotId&&this.u.has(e.triggeringLayoutId)&&b.push(d)}0<b.length&&f0(this.j(),b)};
g.k.pk=function(a){for(var b=[],c=g.u(this.Xb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof j1&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&f0(this.j(),b)};
g.k.qk=function(a){for(var b=[],c=g.u(this.Xb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof k1&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&f0(this.j(),b)};
g.k.Aj=function(a,b){this.J.add(b.layoutId)};
g.k.Ph=function(a,b){this.J.delete(b.layoutId)};
g.k.Rc=function(a,b){this.u.add(b.layoutId);for(var c=[],d=g.u(this.Xb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof D0)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof r6a){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof h1&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.C.has(f.slotId)&&c.push(e));0<c.length&&f0(this.j(),c)};
g.k.Wc=function(a,b,c){this.u.delete(b.layoutId);a=[];for(var d=g.u(this.Xb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof E0&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof H0){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}0<a.length&&f0(this.j(),a)};
g.k.Xi=function(){};
g.k.lk=function(){this.C.clear()};
g.k.Kn=function(){};g.x(s2,g.G);s2.prototype.rl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new iF("Tried to register duplicate trigger for slot.");if(!(b instanceof jF||b instanceof A0))throw new iF("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Xb.set(b.triggerId,new o2(a,b,c,d))};
s2.prototype.Dl=function(a){this.Xb.delete(a.triggerId)};
s2.prototype.lk=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.u(this.Xb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof jF&&l.trigger.Yr===a&&f.push(l);e.call(d,b,g.qa(f));b.push.apply(b,g.qa(r8a(this.Xb,a,!1,c)));b.length&&f0(this.j(),b)};
s2.prototype.Kn=function(a){var b=[];b.push.apply(b,g.qa(r8a(this.Xb,a,!0,!1)));b.length&&f0(this.j(),b)};g.x(t2,g.G);g.k=t2.prototype;
g.k.rl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new iF("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(s8a(b))this.Xb.set(b.triggerId,{hv:new o2(a,b,c,d),yv:e});else if(b instanceof c1||b instanceof i1)t8a(this,a,b,c,d,e,b.j.start,b.j.end,b.Yr,b.visible);else if(b instanceof C6a)t8a(this,a,b,c,d,e,b.j.start,b.j.end,b.Yr,!1);else if(b instanceof A6a)t8a(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Yr,b.visible);else throw new iF("Incorrect TriggerType: Tried to register trigger of type "+
b.triggerType+" in CueRangeTriggerAdapter");};
g.k.Dl=function(a){var b=this.Xb.get(a.triggerId);b&&this.zc.get().removeCueRange(b.yv);this.Xb.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a,b){b=void 0===b?!1:b;if(a=u8a(this,a))if(a=this.Xb.get(a))if(g.yP(y1(this.La.get()),32))this.j.add(a.yv);else{var c=null==a?void 0:a.hv.trigger;b=b?c instanceof v6a:c instanceof u6a;(c instanceof c1||c instanceof i1||c instanceof A6a||c instanceof f1||b)&&f0(this.u(),[a.hv])}};
g.k.onCueRangeExit=function(a){if(a=u8a(this,a))if(a=this.Xb.get(a))this.j.delete(a.yv),a.hv.trigger instanceof C6a&&f0(this.u(),[a.hv])};
g.k.Bj=function(a){if(0>FP(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.wi=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.Og=function(){};
g.k.Pg=function(){};
g.k.pk=function(){};
g.k.qk=function(){};
g.k.Aj=function(){};
g.k.Ph=function(){};
g.k.Rc=function(a,b){a=g.u(this.Xb.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.hv.trigger;c=c.yv;if(s8a(d)&&d.layoutId===b.layoutId){var e=1E3*this.La.get().getCurrentTimeSec(1,!1);d instanceof f1?d=0:(d=e+d.offsetMs,e=0x7ffffffffffff);this.zc.get().addCueRange(c,d,e,!1,this)}}};
g.k.Wc=function(a,b,c){var d=this;a=g.u(this.Xb.values());for(var e=a.next(),f={};!e.done;f={eB:f.eB,Yp:f.Yp},e=a.next())e=e.value,f.Yp=e.hv.trigger,f.eB=e.yv,s8a(f.Yp)&&f.Yp.layoutId===b.layoutId?L6a(this.zc.get(),f.eB):f.Yp instanceof i1&&f.Yp.layoutId===b.layoutId&&"user_cancelled"===c&&(this.zc.get().removeCueRange(f.eB),g.JB(g.LB(),function(h){return function(){d.zc.get().addCueRange(h.eB,h.Yp.j.start,h.Yp.j.end,h.Yp.visible,d)}}(f)))};
g.k.Xi=function(){};
g.k.Wi=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Bh=function(){};
g.k.zj=function(){};
g.k.onVolumeChange=function(){};
g.k.fl=function(){};g.x(u2,g.G);g.k=u2.prototype;g.k.rl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new iF("Tried to register duplicate trigger for slot.");if(!(b instanceof I0))throw new iF("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Xb.set(b.triggerId,new o2(a,b,c,d))};
g.k.Dl=function(a){this.Xb.delete(a.triggerId)};
g.k.PU=function(){};
g.k.rM=function(){};
g.k.Rc=function(){};
g.k.Wc=function(){};
g.k.wi=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.Og=function(){};
g.k.Pg=function(){};
g.k.pk=function(){};
g.k.qk=function(){};
g.k.Aj=function(){};
g.k.Ph=function(){};
g.k.Xi=function(){};g.x(v2,g.G);g.k=v2.prototype;g.k.Xi=function(a,b){for(var c=[],d=g.u(this.Xb.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&&f0(this.j(),c)};
g.k.rl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new iF("Tried to register duplicate trigger for slot.");if(!(b instanceof t6a))throw new iF("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Xb.set(b.triggerId,new o2(a,b,c,d))};
g.k.Dl=function(a){this.Xb.delete(a.triggerId)};
g.k.wi=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.Og=function(){};
g.k.Pg=function(){};
g.k.pk=function(){};
g.k.qk=function(){};
g.k.Aj=function(){};
g.k.Ph=function(){};
g.k.Rc=function(){};
g.k.Wc=function(){};g.x(w2,g.G);w2.prototype.rl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new iF("Tried to register duplicate trigger for slot.");if(!(b instanceof C0))throw new iF("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Xb.set(b.triggerId,new o2(a,b,c,d))};
w2.prototype.Dl=function(a){this.Xb.delete(a.triggerId)};g.x(x2,g.G);x2.prototype.xa=function(){this.Gn.isDisposed()||this.Gn.get().removeListener(this);g.G.prototype.xa.call(this)};g.x(y2,g.G);y2.prototype.xa=function(){this.wf.isDisposed()||this.wf.get().removeListener(this);g.G.prototype.xa.call(this)};z2.prototype.fetch=function(a){var b=a.BU;return this.Su.fetch(a.n_,{uG:void 0===a.uG?void 0:a.uG,We:b}).then(function(c){return w8a(c,b)})};g.x(A2,g.G);g.k=A2.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.vJ=function(a){x8a(this,a,1)};
g.k.onAdUxClicked=function(a,b){B2(this,function(c){c.yh(a,b)})};
g.k.LO=function(a){B2(this,function(b){b.rN(a)})};
g.k.KO=function(a){B2(this,function(b){b.qN(a)})};
g.k.O6=function(a){B2(this,function(b){b.jH(a)})};g.x(C2,g.G);g.k=C2.prototype;
g.k.lk=function(){this.D=new OP(this,O6a(this.Da.get()));this.B=new lBa;var a=this.I.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.I.getVideoData(1),c;(null==(c=this.j)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.RO,this),b.subscribe("cuepointupdated",this.RO,this),this.j=b)}this.FJ.length=0;var d;b=(null==(d=a.j)?void 0:eva(d,0))||[];d=g.u(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.St(b)&&wG("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
g.k.Kn=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.iP=function(a){this.FJ.push(a);for(var b=!1,c=g.u(this.listeners),d=c.next();!d.done;d=c.next())b=d.value.KX(a)||b;this.C=b};
g.k.DX=function(a){g.Yb(this.B.j,1E3*a);for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.CX(a)};
g.k.St=function(a){z8a(this,a);this.D.reduce(a);a=this.C;this.C=!1;return a};
g.k.RO=function(a){var b=this.I.getVideoData(1).isDaiEnabled();if(b||!g.SM(this.I.W())){a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,z8a(this,c),b?this.D.reduce(c):0!==this.I.getCurrentTime(1)&&"start"===c.event&&(this.Da.get().I.W().experiments.sb("ignore_overlapping_cue_points_on_endemic_live_html5")&&(null==this.u?0:c.startSecs+c.Yh>=this.u.startSecs&&c.startSecs<=this.u.startSecs+this.u.Yh)?wG("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.u=c,this.iP(c)))}};
g.k.xa=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.RO,this),this.j=null);this.listeners.length=0;this.FJ.length=0;g.G.prototype.xa.call(this)};D2.prototype.addPlayerResponseForAssociation=function(a){this.I.addPlayerResponseForAssociation(a)};F2.prototype.addListener=function(a){this.listeners.push(a)};
F2.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=G2.prototype;g.k.wy=function(a,b,c,d,e,f,h){return this.I.wy(a,b,c,d,e,f,h)};
g.k.tv=function(a,b){this.I.tv(a,b)};
g.k.RA=function(a,b,c){this.I.RA(a,b,c)};
g.k.Ut=function(a){this.I.Ut(a)};
g.k.cD=function(a,b,c,d,e,f,h){this.I.cD(a,b,c,d,e,f,h)};
g.k.Or=function(){return this.I.Or()};
g.k.finishSegmentByCpn=function(a,b){this.I.finishSegmentByCpn(a,b)};g.k=B8a.prototype;g.k.Uc=function(){return this.slot};
g.k.zb=function(){return this.layout};
g.k.init=function(){this.La.get().addListener(this);this.La.get().qG.push(this)};
g.k.release=function(){this.La.get().removeListener(this);c7a(this.La.get(),this)};
g.k.startRendering=function(a){this.callback.Rc(this.slot,a)};
g.k.Gg=function(a,b){this.callback.Wc(this.slot,a,b)};
g.k.fl=function(a){switch(a.id){case "part2viewed":this.jb.zd("start");break;case "videoplaytime25":this.jb.zd("first_quartile");break;case "videoplaytime50":this.jb.zd("midpoint");break;case "videoplaytime75":this.jb.zd("third_quartile");break;case "videoplaytime100":this.jb.zd("complete");break;case "engagedview":if(!P6a(this.Da.get())){this.jb.zd("progress");break}x7a(this.jb)||this.jb.zd("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:wG("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.zj=function(){};
g.k.Bh=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Bj=function(){};
g.k.Wi=function(){};
g.k.zX=function(a){P6a(this.Da.get())&&x7a(this.jb)&&Q1(this.jb,1E3*a,!1)};C8a.prototype.Jf=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.u(O1()),f=e.next();!f.done;f=e.next())b.push(f.value);if(L1(d,{Ne:b,Rf:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new B8a(a,c,d,this.La,this.Ra,this.Da);throw new X_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+L_(d.Ea)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.k=H2.prototype;g.k.Uc=function(){return this.slot};
g.k.zb=function(){return this.layout};
g.k.init=function(){this.Kf.get().addListener(this);this.La.get().addListener(this);this.Bt();var a=dF(this.layout.Ea,"metadata_type_layout_enter_ms"),b=dF(this.layout.Ea,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Wa.get().zv)?void 0:c.clientPlaybackNonce;c=this.layout.Cc.adClientDataEntry;C1(this.Ra.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.Kf.get();e=mBa(e.B,a,b);null!==e&&(C1(this.Ra.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.Oc.get().tv(e,b))};
g.k.release=function(){this.Zt();this.Kf.get().removeListener(this);this.La.get().removeListener(this)};
g.k.startRendering=function(){this.pu();this.callback.Rc(this.slot,this.layout)};
g.k.Gg=function(a,b){this.Tr(b);null!==this.driftRecoveryMs&&(E8a(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(D8a(this)-dF(this.layout.Ea,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.La.get().I.Ys()).toString()}),this.driftRecoveryMs=null);this.callback.Wc(this.slot,this.layout,b)};
g.k.KX=function(){return!1};
g.k.CX=function(a){var b=dF(this.layout.Ea,"metadata_type_layout_enter_ms"),c=dF(this.layout.Ea,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;C1(this.Ra.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.Wa.get().zv)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Cc.adClientDataEntry}});this.Oc.get().tv(a,c)}};
g.k.Wi=function(a){this.rX(a);a=this.La.get().getCurrentTimeSec(2,!0);if(p6a(this.C.get(),this.layout.layoutId)){var b=dF(this.layout.Ea,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=D8a(this),e=this.La.get().I.Ys(),f=Math.min(a+e,d/1E3);f<=a?E8a(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(E8a(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.La.get().I.seekTo(f,void 0,void 0,1))}}};
g.k.Bh=function(){};
g.k.zj=function(){};
g.k.onVolumeChange=function(){};
g.k.fl=function(){};g.x(F8a,H2);g.k=F8a.prototype;g.k.Bt=function(){this.Wa.get().addListener(this);this.B.forEach(function(a){a.init()});
null!=this.u&&this.Ra.get().ri("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.u)};
g.k.Zt=function(){this.Wa.get().removeListener(this);this.j=null;this.B.forEach(function(a){a.release()})};
g.k.pu=function(){if(this.j)wG("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.u)});else{var a,b=null==(a=this.Wa.get().zv)?void 0:a.layoutId;H8a(this,b)}};
g.k.Tr=function(a){var b,c,d,e;null==(d=this.j)||null==(e=d.Ql)||e.Gg(null==(b=this.j)?void 0:null==(c=b.Ql)?void 0:c.zb(),a);this.j=null};
g.k.oI=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;this.Ra.get().ri("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.u+";slrs."+!!this.j+";slrslid."+(null==(c=this.j)?void 0:null==(d=c.Ql)?void 0:d.zb().layoutId))}var e;if(this.j&&(null==(e=this.j.Ql)?void 0:e.zb().layoutId)!==a){var f,h;null==(h=this.j.Ql)||h.Gg(null==(f=this.j.Ql)?void 0:f.zb(),"normal");H8a(this,a)}};
g.k.vI=function(){};
g.k.uI=function(){};
g.k.rX=function(){};
g.k.Bj=function(){};
g.k.onFullscreenToggled=function(){};g.k=V8a.prototype;g.k.Uc=function(){return this.slot};
g.k.zb=function(){return this.layout};
g.k.init=function(){var a=this;dF(this.layout.Ea,"metadata_type_player_bytes_callback_ref").current=this;this.Tc=I8a(this.slot,this.layout,dF(this.layout.Ea,"metadata_type_player_vars"),dF(this.layout.Ea,"metadata_type_layout_enter_ms"),dF(this.layout.Ea,"metadata_type_layout_exit_ms"),1E3*dF(this.layout.Ea,"metadata_type_video_length_seconds"),this.Oc.get(),this.xe.get(),function(){var d=Object,e=d.assign,f=Y8a(a.layout);var h=dF(a.slot.Ea,"metadata_type_fulfilled_layout");h=Object.assign({},Y8a(h),
{adPlacementConfig:dF(h.Ea,"metadata_type_ad_placement_config"),subLayouts:dF(h.Ea,"metadata_type_sub_layouts").map(Y8a)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:h,hasSurveyOverlay:fF(a.layout.Ea,"metadata_type_survey_overlay"),surveyOverlay:dF(a.layout.Ea,"metadata_type_survey_overlay")})},this.Ra.get());
this.La.get().addListener(this);var b=dF(this.layout.Ea,"metadata_type_video_length_seconds"),c=dF(this.layout.Ea,"metadata_type_active_view_traffic_type");cP(this.layout.Yb)&&R6a(this.Ub.get(),this.layout.layoutId,c,b,this);K3a(this.callback,this.slot,this.layout);L3a(this.callback,this.slot,this.layout)};
g.k.release=function(){this.La.get().removeListener(this);cP(this.layout.Yb)&&S6a(this.Ub.get(),this.layout.layoutId);this.Da.get();gBa(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;fF(this.layout.Ea,"metadata_type_survey_overlay")&&this.Ra.get().ri("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.Kc)wG("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:fF(this.layout.Ea,"metadata_type_survey_overlay"),surveyOverlay:dF(this.layout.Ea,"metadata_type_survey_overlay")});else{this.Kc={Fn:null,JE:!1};if(N6a(this.Da.get())){var b;this.adCpn=null==(b=this.Wa.get().Nf(2))?void 0:b.clientPlaybackNonce}this.Da.get().I.W().experiments.sb("html5_disable_sodar_for_tvhtml5")||
J8a(this.slot,this.layout,this.zf.get());this.jb.zd("start");if(w1(this.Da.get())){b=y1(this.La.get());var c=dF(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.La.get().getCurrentTimeSec(2,!1);L8a(this.jb,this.Kc.Fn,b,c,d,function(){return void X8a(a,"teois")})}e0(this.callback,this.slot,this.layout);
fF(this.layout.Ea,"metadata_type_survey_overlay")&&this.Ra.get().ri("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.Gg=function(a,b){var c=this;if(this.Kc){if(w1(this.Da.get()))if(null===this.Tc)wG("Unexpected media sub layout exited without a timeline playback ID");else{a=dF(this.layout.Ea,"metadata_type_video_length_seconds");var d=d7a(this.La.get(),this.Tc);N6a(this.Da.get())&&void 0===this.adCpn&&wG("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:dF(this.layout.Ea,"metadata_type_content_cpn")});y7a(this.jb,d,this.adCpn);M8a(this.jb,null,this.Kc.Fn,a,d,function(e){return void W8a(c,
e,"fue")},N6a(this.Da.get()))}this.Kc=null;
KP(this.callback,this.slot,this.layout,b)}else wG("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.Yz=function(){};
g.k.iH=function(){};
g.k.PV=function(){};
g.k.Wi=function(a){var b=this;if(this.Kc){if(R1(this.jb,"impression")){var c=y1(this.La.get()),d=dF(this.layout.Ea,"metadata_type_video_length_seconds");N8a(this.jb,c,a,this.Kc.Fn,d,function(e){return void W8a(b,e,"tpaqe")})}this.Kc.Fn=a}};
g.k.Bj=function(a){var b=this;if(this.Kc){w1(this.Da.get())||this.Kc.JE||(this.Kc.JE=!0,a=new g.EP(a.state,new g.YP));var c=dF(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.La.get().getCurrentTimeSec(2,!1);K8a(this.jb,this.Kc.Fn,a,c,d,!w1(this.Da.get()),function(){return void X8a(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){O8a(this.jb,a)};
g.k.Bh=function(){};
g.k.zj=function(){};
g.k.fA=function(a,b){var c;a=this.Ra.get();var d=a.ri,e="ti."+R1(this.jb,"impression")+";ts."+R1(this.jb,"skip")+";hp.",f;var h=!(null==(f=this.jb.B.get("skip"))||!f.length);d.call(a,"ads_dsr",e+h+";cpn."+dF(this.layout.Ea,"metadata_type_content_cpn")+";acpn."+(null==(c=this.Wa.get().Nf(2))?void 0:c.clientPlaybackNonce)+";sl."+(dF(b.Ea,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));R1(this.jb,"impression")&&this.jb.zd("skip");this.Oc.get().Or()||wG("Unexpected failure to skip a server stitched ad",
this.slot,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Rc=function(){};
g.k.Wc=function(){};
g.k.Ar=function(){};
g.k.Er=function(){};
g.k.cJ=function(){P8a(this.jb)};
g.k.GD=function(){Q8a(this.jb)};
g.k.FD=function(){R8a(this.jb)};
g.k.HD=function(){S8a(this.jb)};
g.k.DD=function(){T8a(this.jb)};
g.k.ED=function(){U8a(this.jb)};
g.k.fl=function(){};g.x(Z8a,H2);g.k=Z8a.prototype;
g.k.Bt=function(){var a=this;dF(this.layout.Ea,"metadata_type_player_bytes_callback_ref").current=this;var b=dF(this.layout.Ea,"metadata_type_layout_enter_ms"),c=dF(this.layout.Ea,"metadata_type_layout_exit_ms");this.Tc=I8a(this.slot,this.layout,dF(this.layout.Ea,"metadata_type_player_vars"),b,c,1E3*dF(this.layout.Ea,"metadata_type_video_length_seconds"),this.Oc.get(),this.xe.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:dF(a.layout.Ea,"metadata_type_ad_placement_config")}},
this.Ra.get());
var d=dF(this.layout.Ea,"metadata_type_video_length_seconds"),e=dF(this.layout.Ea,"metadata_type_active_view_traffic_type");cP(this.layout.Yb)&&R6a(this.Ub.get(),this.layout.layoutId,e,d,this)};
g.k.Zt=function(){cP(this.layout.Yb)&&S6a(this.Ub.get(),this.layout.layoutId)};
g.k.pu=function(){var a=this;if(this.Kc)wG("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.Kc={Fn:null,JE:!1},J8a(this.slot,this.layout,this.zf.get()),this.jb.zd("start"),w1(this.Da.get())){var b=y1(this.La.get()),c=dF(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.La.get().getCurrentTimeSec(2,!1);L8a(this.jb,this.Kc.Fn,b,c,d,function(){return void $8a(a,"teois")})}};
g.k.Tr=function(){var a=this;if(this.Kc){if(w1(this.Da.get()))if(null===this.Tc)wG("Unexpected single media layout exited without a timeline playback ID");else{var b=dF(this.layout.Ea,"metadata_type_video_length_seconds"),c=d7a(this.La.get(),this.Tc);y7a(this.jb,c);M8a(this.jb,null,this.Kc.Fn,b,c,function(d){return void a9a(a,d,"fue")})}this.Kc=null}else wG("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.rX=function(a){var b=this;if(this.Kc){if(R1(this.jb,"impression")){var c=y1(this.La.get()),d=dF(this.layout.Ea,"metadata_type_video_length_seconds");N8a(this.jb,c,a,this.Kc.Fn,d,function(e){return void a9a(b,e,"tpaqe")})}this.Kc.Fn=a}};
g.k.Bj=function(a){var b=this;if(this.Kc){w1(this.Da.get())||this.Kc.JE||(this.Kc.JE=!0,a=new g.EP(a.state,new g.YP));var c=dF(this.layout.Ea,"metadata_type_video_length_seconds"),d=this.La.get().getCurrentTimeSec(2,!1);K8a(this.jb,this.Kc.Fn,a,c,d,!w1(this.Da.get()),function(){return void $8a(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){O8a(this.jb,a)};
g.k.cJ=function(){P8a(this.jb)};
g.k.GD=function(){Q8a(this.jb)};
g.k.FD=function(){R8a(this.jb)};
g.k.HD=function(){S8a(this.jb)};
g.k.DD=function(){T8a(this.jb)};
g.k.ED=function(){U8a(this.jb)};b9a.prototype.Jf=function(a,b,c,d){if(fF(c.Ea,"metadata_type_dai")){var e=dF(d.Ea,"metadata_type_ad_placement_config");L1(d,{Ne:"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 N1(d.Yb,this.Ra,e,d.layoutId,null),e=new Z8a(a,c,d,this.Wa,this.Oc,this.xe,this.Kf,this.La,e,this.Ra,this.zf,this.j,this.Ub,this.Da)):
e=null;if(e)return e;a:{var f=dF(d.Ea,"metadata_type_sub_layouts"),h=dF(d.Ea,"metadata_type_ad_placement_config");if(L1(d,{Ne:["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=dF(l.Ea,"metadata_type_media_sub_layout_index");if(!L1(l,{Ne:"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 N1(l.Yb,this.Ra,h,l.layoutId,m);e.push(new V8a(b,c,l,this.Oc,m,this.La,this.xe,this.Ub,this.zf,this.Da,this.Ra,this.Wa))}b=new N1(d.Yb,this.Ra,h,d.layoutId);a=new F8a(a,c,d,this.Wa,this.Oc,this.Kf,this.La,b,this.Ra,this.j,e)}else a=null}if(a)return a}else if(a=g8a(a,b,c,d,this.Le,this.le,this.u,this.Ra,this.Ub,this.zf,this.Ce,this.Wa,this.La,this.zc,this.Sc,this.Kd,this.qg,this.Vb,this.Bg,this.Da,this.Oc))return a;throw new X_("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+L_(d.Ea)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.x(I2,g.G);I2.prototype.rl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new iF("Tried to register duplicate trigger for slot.");if(!(b instanceof G0))throw new iF("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Xb.set(b.triggerId,new o2(a,b,c,d))};
I2.prototype.Dl=function(a){this.Xb.delete(a.triggerId)};g.x(K2,g.G);g.k=K2.prototype;
g.k.rl=function(a,b,c,d){if(this.u.has(b.triggerId)||this.B.has(b.triggerId))throw new iF("Tried to re-register the trigger.");a=new o2(a,b,c,d);if(a.trigger instanceof B6a)this.u.set(a.trigger.triggerId,a);else if(a.trigger instanceof v5a)this.B.set(a.trigger.triggerId,a);else throw new iF("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&f0(this.C(),[a])};
g.k.Dl=function(a){this.u.delete(a.triggerId);this.B.delete(a.triggerId)};
g.k.oI=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.qa(c9a(this.B,this.j)));null!=a&&b.push.apply(b,g.qa(c9a(this.u,a)));this.j=a;b.length&&f0(this.C(),b)}};
g.k.vI=function(){};
g.k.uI=function(){};g.x(d9a,ZO);g.x(e9a,T1);g.k=e9a.prototype;g.k.yh=function(a,b){V1("image-companion",a,this.J.get().xl,this.Ra.get(),this.C,this.D,this.Uc(),this.zb(),b)};
g.k.startRendering=function(a){U1(this.jb,this.Uc(),this.zb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new d9a(b,c,d,e,f)},this.j);
T1.prototype.startRendering.call(this,a)};
g.k.Rc=function(a,b){b.layoutId===this.layout.layoutId?this.jb.zd("impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Ra.get().dk():wG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Wc=function(){};
g.k.wi=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.Og=function(){};
g.k.Pg=function(){};
g.k.pk=function(){};
g.k.qk=function(){};
g.k.Aj=function(){};
g.k.Ph=function(){};
g.k.Xi=function(){};
g.k.xa=function(){this.Le().Jd.delete(this);T1.prototype.xa.call(this)};g.x(g9a,ZO);g.x(h9a,T1);g.k=h9a.prototype;g.k.yh=function(a,b){V1("shopping-companion",a,this.J.get().xl,this.Ra.get(),this.C,this.D,this.Uc(),this.zb(),b)};
g.k.startRendering=function(a){U1(this.jb,this.Uc(),this.zb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new g9a(b,c,d,e,f)},this.j);
T1.prototype.startRendering.call(this,a)};
g.k.Rc=function(a,b){b.layoutId===this.layout.layoutId?this.jb.zd("impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Ra.get().dk():wG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Wc=function(){};
g.k.wi=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.Og=function(){};
g.k.Pg=function(){};
g.k.pk=function(){};
g.k.qk=function(){};
g.k.Aj=function(){};
g.k.Ph=function(){};
g.k.Xi=function(){};
g.k.xa=function(){this.Le().Jd.delete(this);T1.prototype.xa.call(this)};g.x(j9a,T1);g.k=j9a.prototype;g.k.startRendering=function(a){U1(this.jb,this.Uc(),this.zb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new E7a(b,c,d,e,f)},this.j);
T1.prototype.startRendering.call(this,a)};
g.k.Rc=function(){};
g.k.Wc=function(){};
g.k.wi=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.Og=function(){};
g.k.Pg=function(){};
g.k.pk=function(){};
g.k.qk=function(){};
g.k.Aj=function(){};
g.k.Ph=function(){};
g.k.Xi=function(){};
g.k.xa=function(){this.Le().Jd.delete(this);T1.prototype.xa.call(this)};
g.k.yh=function(){};g.x(l9a,ZO);g.x(m9a,T1);g.k=m9a.prototype;g.k.yh=function(a,b){V1("ads-engagement-panel",a,this.J.get().xl,this.Ra.get(),this.C,this.D,this.Uc(),this.zb(),b)};
g.k.startRendering=function(a){U1(this.jb,this.Uc(),this.zb(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new l9a(b,c,d,e,f)},this.j);
T1.prototype.startRendering.call(this,a)};
g.k.Rc=function(a,b){b.layoutId===this.layout.layoutId?this.jb.zd("impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Ra.get().dk():wG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Wc=function(){};
g.k.wi=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.Og=function(){};
g.k.Pg=function(){};
g.k.pk=function(){};
g.k.qk=function(){};
g.k.Aj=function(){};
g.k.Ph=function(){};
g.k.Xi=function(){};
g.k.xa=function(){this.Le().Jd.delete(this);T1.prototype.xa.call(this)};o9a.prototype.Jf=function(a,b,c,d){if(L1(d,n9a()))return new m9a(a,c,d,this.yc,this.Ra,this.Le,this.Ub,this.j);if(L1(d,G7a()))return new F7a(a,c,d,this.yc,this.Ra,this.Le,this.Ub,this.j);if(L1(d,f9a()))return new e9a(a,c,d,this.yc,this.Ra,this.Le,this.Ub,this.j);if(L1(d,i9a()))return new h9a(a,c,d,this.yc,this.Ra,this.Le,this.Ub,this.j);if(L1(d,k9a()))return new j9a(a,c,d,this.yc,this.Ra,this.Le,this.Ub,this.j);throw new X_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+L_(d.Ea)+
" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.x(p9a,ZO);g.x(L2,T1);L2.prototype.init=function(){T1.prototype.init.call(this);var a=dF(this.layout.Ea,"metadata_type_player_underlay_renderer");this.j.push(new p9a(g.Q(a,Sbb),this.layout.layoutId,{adsClientData:this.layout.Cc}))};
L2.prototype.yh=function(){};
L2.prototype.startRendering=function(a){T1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
L2.prototype.xa=function(){T1.prototype.xa.call(this)};q9a.prototype.Jf=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.u(O1()),f=e.next();!f.done;f=e.next())b.push(f.value);if(L1(d,{Ne:b,Rf:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new L2(a,c,d,this.yc);throw new X_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+L_(d.Ea)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.x(r9a,ZO);g.x(M2,T1);M2.prototype.startRendering=function(a){var b=P1(this.jb),c={adsClientData:this.layout.Cc};this.j.push(new r9a(dF(this.layout.Ea,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.zb().layoutId,c));T1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
M2.prototype.yh=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=dF(this.layout.Ea,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.fA(this.slot,this.layout):wG("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
M2.prototype.xa=function(){T1.prototype.xa.call(this)};var s9a=new g.xe(320,63);g.x(v9a,ZO);g.x(P2,T1);g.k=P2.prototype;g.k.Wi=function(){};
g.k.Bj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Bh=function(a){a&&J2(this.C,this.layout)};
g.k.zj=function(a){var b=O2(this.layout);if(this.Tu=t9a(a,e7a(this.La.get())))b.onErrorCommand&&this.Vb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),J2(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.iz=function(){return this.zb().layoutId};
g.k.HM=function(){return this.Tu};
g.k.yh=function(a){this.D.yh(a);"in_video_overlay_close_button"===a&&J2(this.C,this.layout)};
g.k.jH=function(a){"invideo-overlay"===a&&J2(this.C,this.layout)};
g.k.Qt=function(){this.D.Qt()};
g.k.startRendering=function(a){T1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a);this.J.ly=this};
g.k.Gg=function(a,b){T1.prototype.Gg.call(this,a,b);C$a(this.J,this)};
g.k.init=function(){T1.prototype.init.call(this);V6a(this.Ra.get(),this);this.La.get().addListener(this);this.j.push(new v9a(O2(this.layout),P1(this.jb),this.layout.layoutId,{adsClientData:this.layout.Cc}))};
g.k.release=function(){T1.prototype.release.call(this);this.La.get().removeListener(this);W6a(this.Ra.get(),this)};
g.k.fl=function(){};g.x(Q2,T1);g.k=Q2.prototype;g.k.init=function(){T1.prototype.init.call(this);V6a(this.Ra.get(),this);this.La.get().addListener(this);this.j.push(new v9a(O2(this.layout),P1(this.jb),this.layout.layoutId,{adsClientData:this.layout.Cc}))};
g.k.Qt=function(){this.D.Qt()};
g.k.startRendering=function(a){T1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a);this.J.ly=this};
g.k.Gg=function(a,b){T1.prototype.Gg.call(this,a,b);C$a(this.J,this)};
g.k.yh=function(a){this.D.yh(a);"in_video_overlay_close_button"===a&&J2(this.C,this.layout)};
g.k.rN=function(a){if("invideo-overlay"===a){a=B9a(this.K,this.layout);a=g.u(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.jH=function(a){"invideo-overlay"===a&&J2(this.C,this.layout)};
g.k.qN=function(a){if("invideo-overlay"===a){a=B9a(this.K,this.layout);a=g.u(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Wi=function(){};
g.k.Bj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Bh=function(a){a&&J2(this.C,this.layout)};
g.k.zj=function(a){var b=O2(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=e7a(this.La.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.xe(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.xe(0,0)}if(this.Tu=t9a(a,d,c))b.onErrorCommand&&this.Vb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),J2(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.iz=function(){return this.zb().layoutId};
g.k.HM=function(){return this.Tu};
g.k.release=function(){T1.prototype.release.call(this);this.La.get().removeListener(this);W6a(this.Ra.get(),this)};
g.k.fl=function(){};R2.prototype.yh=function(a){"ad-info-hover-text-button"===a&&((this.j=this.La.get().Vq(1))||this.La.get().pauseVideo())};
R2.prototype.Qt=function(){this.j||this.La.get().resumeVideo(1)};g.x(y9a,ZO);g.x(z9a,T1);g.k=z9a.prototype;g.k.init=function(){T1.prototype.init.call(this);this.La.get().addListener(this)};
g.k.startRendering=function(a){var b=dF(this.layout.Ea,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new y9a(b,this.layout.layoutId,{adsClientData:this.layout.Cc}));T1.prototype.startRendering.call(this,a);this.callback.Rc(this.slot,a)};
g.k.Rc=function(){};
g.k.yh=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=dF(this.layout.Ea,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.Ar(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.Er(this.slot,this.layout):wG("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.zj=function(a){450>a.width&&J2(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Wi=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Bh=function(){};
g.k.Bj=function(){};
g.k.fl=function(){};
g.k.xa=function(){T1.prototype.xa.call(this)};
g.k.release=function(){T1.prototype.release.call(this);this.La.get().removeListener(this)};A9a.prototype.Jf=function(a,b,c,d){if(b=Z1(a,c,d,this.yc,this.La,this.Ra,this.C,this.j,this.Da))return b;if(L1(d,x9a()))return new Q2(c,d,this.Ra,this.Ub,this.yc,a,this.u,this.B,this.La,this.Vb,this.Da,this.j,new R2(this.La));if(L1(d,w9a()))return new P2(c,d,this.Ra,this.Ub,this.yc,a,this.u,this.La,this.Vb,this.Da,this.j,new R2(this.La));if(L1(d,{Ne:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Rf:["LAYOUT_TYPE_SURVEY"]}))return new z9a(c,d,a,this.yc,this.u,this.La,this.Da);if(L1(d,
{Ne:["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 M2(c,d,a,this.yc,this.Ra);if(L1(d,J7a()))return new Y1(c,d,a,this.yc,this.La,this.Da);throw new X_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+L_(d.Ea)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.x(S2,g.G);g.k=S2.prototype;g.k.rl=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new iF("Tried to register duplicate trigger for slot.");if(!(b instanceof K5a))throw new iF("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Xb.set(b.triggerId,new o2(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.Dl=function(a){this.Xb.delete(a.triggerId);if(!(a instanceof K5a))throw new iF("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.u.get(a.triggerId);b&&(b.dispose(),this.u.delete(a.triggerId));if(b=this.j.get(a.triggeringLayoutId))b.delete(a),0===b.size&&this.j.delete(a.triggeringLayoutId)};
g.k.wi=function(){};
g.k.Ej=function(){};
g.k.Dj=function(){};
g.k.Og=function(){};
g.k.Pg=function(){};
g.k.pk=function(){};
g.k.qk=function(){};
g.k.Aj=function(){};
g.k.Ph=function(){};
g.k.Xi=function(){};
g.k.Rc=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={iB:b.iB},d=a.next())b.iB=d.value,d=new g.Kq(function(e){return function(){var f=c.Xb.get(e.iB.triggerId);f0(c.B(),[f])}}(b),b.iB.durationMs),d.start(),this.u.set(b.iB.triggerId,d)}};
g.k.Wc=function(){};g.x(C9a,g.G);D9a.prototype.Jf=function(a,b,c,d){if(b=Z1(a,c,d,this.yc,this.La,this.Ra,this.C,this.j,this.Da))return b;if(L1(d,x9a()))return new Q2(c,d,this.Ra,this.Ub,this.yc,a,this.u,this.B,this.La,this.Vb,this.Da,this.j,new R2(this.La));if(L1(d,w9a()))return new P2(c,d,this.Ra,this.Ub,this.yc,a,this.u,this.La,this.Vb,this.Da,this.j,new R2(this.La));throw new X_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+L_(d.Ea)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.x(E9a,g.G);g.x(F9a,g.G);g.x(G9a,g.G);g.x(U2,X1);U2.prototype.startRendering=function(a){X1.prototype.startRendering.call(this,a);dF(this.layout.Ea,"metadata_ad_video_is_listed")&&(a=dF(this.layout.Ea,"metadata_type_ad_info_ad_metadata"),this.Rm.get().I.Qa("onAdMetadataAvailable",a))};I9a.prototype.Jf=function(a,b,c,d){if(L1(d,H9a()))return new U2(a,c,d,this.yc,this.La,this.Ra,this.u,this.Rm,this.j);throw new X_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+L_(d.Ea)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.x(J9a,g.G);K9a.prototype.Jf=function(a,b,c,d){if(L1(d,H9a()))return new U2(a,c,d,this.yc,this.La,this.Ra,this.u,this.Rm,this.j);if(a=Z1(a,c,d,this.yc,this.La,this.Ra,this.u,this.j,this.Da))return a;throw new X_("Unsupported layout with type: "+d.layoutType+" and client metadata: "+L_(d.Ea)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.x(L9a,g.G);g.x(N9a,g.G);N9a.prototype.B=function(){return this.u};g.x(O9a,rR);
O9a.prototype.C=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.Qa("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.Qa("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.Qa("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.Qa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.Qa("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Qa("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.Qa("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.Qa("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.Qa("updateEngagementPanelAction",b.addAction);this.j.Qa("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.Qa("changeEngagementPanelVisibility",b.hideAction),this.j.Qa("updateEngagementPanelAction",b.removeAction)}};g.x(P9a,vR);g.k=P9a.prototype;g.k.init=function(a,b,c){vR.prototype.init.call(this,a,b,c);g.Un(this.B,"stroke-dasharray","0 "+this.u);this.api.W().N("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.B.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.V.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.api.W().N("enable_dsa_ad_badge_for_action_endcap_on_web")&&this.C.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){xR(this);vR.prototype.hide.call(this)};
g.k.show=function(){wR(this);vR.prototype.show.call(this)};
g.k.Ew=function(){this.hide()};
g.k.Wt=function(){if(this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&g.Un(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.u+" "+this.u)}};g.x(Q9a,bR);g.k=Q9a.prototype;
g.k.init=function(a,b,c){bR.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.Q(b.actionButton,g.pO))if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.sG(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.ec(g.De(e[0].url))&&(e[0].url=d.profilePicture,g.ec(g.De(d.profilePicture))&&zSa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.ec(g.De(e[0].url))&&(e[0].url=d.Kg());e=b.headline;null!=e&&g.ec(g.De(e.text))&&(e.text=d.author)}this.V.init(YO("ad-image"),b.image,c);this.D.init(YO("ad-text"),b.headline,c);this.C.init(YO("ad-text"),b.description,c);this.Ma.init(YO("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.D.element.classList.add("ytp-ad-action-interstitial-headline-light"),this.C.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().u&&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().u&&d.push("ytp-ad-action-interstitial-action-button-dark");this.actionButton=new iR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,d);g.H(this,this.actionButton);this.actionButton.Ja(this.ob);this.actionButton.init(YO("button"),g.Q(b.actionButton,g.pO),c);Eq(this.actionButton.element);d=gb();e=Hq(this.actionButton.element);
Gq(this.actionButton.element,e+d);this.navigationEndpoint=b.navigationEndpoint;this.api.W().u?this.api.W().N("enable_mweb_endcap_clickable_icon_description")&&(this.B.T(this.Fa,"click",this.nC,this),this.B.T(this.qa,"click",this.nC,this)):(this.B.T(this.Fa,"click",this.nC,this),this.B.T(this.Oa,"click",this.nC,this),this.B.T(this.qa,"click",this.nC,this));this.j=this.EQ?new FR(this.api,a):new GR(a);g.H(this,this.j);if(b.skipButton){if((a=g.Q(b.skipButton,Ybb))&&this.j&&(this.skipButton=new CR(this.api,
this.layoutId,this.interactionLoggingClientData,this.tb,this.j,this.sJ),g.H(this,this.skipButton),this.skipButton.Ja(this.element),this.skipButton.init(YO("skip-button"),a,c)),this.api.W().N("enable_dsa_ad_badge_for_action_endcap_on_web")){if(c=b.adBadgeRenderer)if(c=g.Q(c,Xbb))a=new ER(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,!0),a.Ja(this.Ya),a.init(YO("simple-ad-badge"),c,this.macros),g.H(this,a);if(c=b.adInfoRenderer)if(c=g.Q(c,U0))a=new tR(this.api,this.layoutId,this.interactionLoggingClientData,
this.tb,this.element),a.Ja(this.Ya),a.init(YO("ad-info-hover-text-button"),c,this.macros),g.H(this,a)}}else b.nonskippableOverlayRenderer&&(a=g.Q(b.nonskippableOverlayRenderer,V0))&&this.j&&(this.u=new AR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.j,!1),g.H(this,this.u),this.u.Ja(this.element),this.u.init(YO("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.Q(b,Zbb)&&this.j&&(c=new P9a(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.j),
g.H(this,c),c.Ja(this.element),c.init(YO("timed-pie-countdown"),g.Q(b,Zbb),this.macros)));this.show();this.element.focus()}else g.sG(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.sG(Error("AdActionInterstitialRenderer has no button."));else g.sG(Error("AdActionInterstitialRenderer has no background AdImage."));else g.sG(Error("AdActionInterstitialRenderer has no description AdText."));else g.sG(Error("AdActionInterstitialRenderer has no headline AdText."));else g.sG(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.nB(this.B);this.hide()};
g.k.show=function(){R9a(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.u&&this.u.show();bR.prototype.show.call(this)};
g.k.hide=function(){R9a(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.u&&this.u.hide();bR.prototype.hide.call(this)};
g.k.nC=function(){this.navigationEndpoint&&(this.layoutId?this.tb.executeCommand(this.navigationEndpoint,this.layoutId):g.sG(Error("Missing layoutId for ad action interstitial.")))};var W9a={iconType:"CLOSE"},X2=new g.xe(320,63);g.x(V9a,bR);g.k=V9a.prototype;
g.k.init=function(a,b,c){bR.prototype.init.call(this,a,b,c);this.C=b;this.V=g.Lb(this.C.onClickCommands||[]);this.Oa=this.C.onErrorCommand||null;if(a=this.C.contentSupportedRenderer)a=this.C.contentSupportedRenderer,b=this.C.adInfoRenderer||null,g.Q(a,Ubb)?(this.D=g.Ne("ytp-ad-overlay-ad-info-button-container",this.B.element),X9a(this,b),a=Z9a(this,g.Q(a,Ubb))):g.Q(a,Vbb)?(this.D=g.Ne("ytp-ad-overlay-ad-info-button-container",this.u.element),X9a(this,b),a=$9a(this,g.Q(a,Vbb))):g.Q(a,Wbb)?(this.D=
g.Ne("ytp-ad-overlay-ad-info-button-container",this.j.element),X9a(this,b),a=a$a(this,g.Q(a,Wbb))):(g.sG(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),b$a(this,!0))};
g.k.clear=function(){b$a(this,!1);this.Ma.reset();this.qa=0;this.B.hide();this.Za(this.B.element,!1);this.u.hide();this.Za(this.u.element,!1);this.j.hide();this.Za(this.j.element,!1);this.hide();this.dispose()};
g.k.a9=function(){this.ob&&(this.layoutId?this.tb.executeCommand(this.ob,this.layoutId):g.sG(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.k.Gp=function(){a:{if(this.C&&this.C.closeButton&&this.C.closeButton.buttonRenderer){var a=this.C.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.tb.executeCommand(b,this.layoutId):g.sG(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.I6=function(){this.Ya||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.hP=function(){this.Ya||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.hP("invideo-overlay")};
g.k.J6=function(a){a.target===this.D&&g.Ne("ytp-ad-button",this.rb.element).click()};g.x(c$a,vR);g.k=c$a.prototype;g.k.init=function(a,b,c){vR.prototype.init.call(this,a,b,c);a=b.durationMs;this.B=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(YO("ad-text"),d,c);this.messageText.Ja(this.u.element);this.C.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){d$a(this,!1);vR.prototype.hide.call(this);this.u.hide();this.messageText.hide();xR(this)};
g.k.show=function(){d$a(this,!0);vR.prototype.show.call(this);wR(this);this.u.show();this.messageText.show()};
g.k.Ew=function(){this.hide()};
g.k.Wt=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.V&&a>=this.B?(this.C.hide(),this.V=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.B-a)/1E3)),a!==this.qa&&(xFa(this.messageText,{TIME_REMAINING:String(a)}),this.qa=a)))}};g.x(e$a,bR);g.k=e$a.prototype;
g.k.init=function(a,b,c){bR.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.Q(b.actionButton,g.pO)?(this.B.init(YO("ad-image"),b.image,c),this.u.init(YO("ad-text"),b.headline,c),this.C.init(YO("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 iR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,
a),b.backgroundColor&&g.Un(this.element,"background-color",g.OR(b.backgroundColor)),g.H(this,this.actionButton),this.actionButton.Ja(this.D),this.actionButton.init(YO("button"),g.Q(b.actionButton,g.pO),c),b=g.xL(this.api.W().experiments,"player_underlay_video_width_fraction"),this.api.W().N("place_shrunken_video_on_left_of_player")?(c=this.j,g.Uq(c,"ytp-ad-underlay-left-container"),g.Sq(c,"ytp-ad-underlay-right-container"),g.Un(this.j,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.j,g.Uq(c,"ytp-ad-underlay-right-container"),
g.Sq(c,"ytp-ad-underlay-left-container")),g.Un(this.j,"width",Math.round(100*(1-b-.04))+"%"),this.api.yH()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.OR.bind(this)),this.api.addEventListener("resize",this.MV.bind(this))):g.sG(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.sG(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.sG(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.sG(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){f$a(!0);this.actionButton&&this.actionButton.show();bR.prototype.show.call(this)};
g.k.hide=function(){f$a(!1);this.actionButton&&this.actionButton.hide();bR.prototype.hide.call(this)};
g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.OR.bind(this));this.api.removeEventListener("resize",this.MV.bind(this));this.hide()};
g.k.onClick=function(a){bR.prototype.onClick.call(this,a);this.actionButton&&g.rf(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.OR=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.MV=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.Un(this.u.element,"font-size",a.width/40+"px")};g.x(Y2,bR);
Y2.prototype.init=function(a,b,c){bR.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.Q(b.answer,g.pO)?(a=new iR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ja(this.answer),a.init(YO("ytp-ad-survey-answer-button"),g.Q(b.answer,g.pO),c),a.show()):b.answer&&g.Q(b.answer,E3)&&(this.j=new qR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,
["ytp-ad-survey-answer-toggle-button"]),this.j.Ja(this.answer),g.H(this,this.j),this.j.init(YO("survey-answer-button"),g.Q(b.answer,E3),c));this.show()};
Y2.prototype.GE=function(a){this.layoutId?o0(this.tb,a,this.layoutId,this.macros):g.sG(new g.EB("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
Y2.prototype.onClick=function(a){bR.prototype.onClick.call(this,a);this.api.W().N("supports_multi_step_on_desktop")&&null!==this.index&&this.u(this.index)};
Y2.prototype.clear=function(){this.hide()};g.x(g$a,bR);g$a.prototype.init=function(a,b,c){bR.prototype.init.call(this,a,b,c);b.answer&&g.Q(b.answer,E3)&&(this.button=new qR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ja(this.j),this.button.init(YO("survey-none-of-the-above-button"),g.Q(b.answer,E3),c));this.show()};g.x(Z2,iR);Z2.prototype.init=function(a,b,c){iR.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.VG(b.text),a=!g.ec(b));a||g.tG(Error("No submit text was present in the renderer."))};
Z2.prototype.onClick=function(a){this.ra("l");iR.prototype.onClick.call(this,a)};g.x($2,bR);
$2.prototype.init=function(a,b,c){bR.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.Q(a,T0)?(a=g.Q(a,T0),c=new DR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.B,!0),c.Ja(this.D),c.init(YO("skip-button"),a,this.macros),g.H(this,c),this.j=c):g.Q(a,V0)&&(a=g.Q(a,V0),c=new AR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.B,!1),c.Ja(this.D),c.init(YO("ad-preview"),a,this.macros),yFa(c),g.H(this,c),this.j=c);null==this.j&&g.sG(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,g.Q(a,g.pO)&&(a=g.Q(a,g.pO),c=new Z2(this.api,this.layoutId,this.interactionLoggingClientData,this.tb),c.Ja(this.submitButton),c.init(YO("survey-submit"),a,this.macros),g.H(this,c),this.u=c));if(a=b.adBadgeRenderer)a=g.Q(a,Xbb),c=new ER(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,!0),c.Ja(this.C),c.init(YO("simple-ad-badge"),a,this.macros),g.H(this,c);if(a=b.adDurationRemaining)a=g.Q(a,Qbb),c=new JR(this.api,this.layoutId,this.interactionLoggingClientData,
this.tb,this.B,void 0),c.Ja(this.C),c.init(YO("ad-duration-remaining"),a,this.macros),g.H(this,c);(b=b.adInfoRenderer)&&g.Q(b,U0)&&(a=new tR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,this.element),g.H(this,a),a.Ja(this.C),a.init(YO("ad-info-hover-text-button"),g.Q(b,U0),this.macros));this.show()};
$2.prototype.clear=function(){this.hide()};g.x(a3,bR);a3.prototype.init=function(a,b,c){bR.prototype.init.call(this,a,b,c);l$a(this)};
a3.prototype.show=function(){this.B=g.eb();bR.prototype.show.call(this)};
a3.prototype.HY=function(){};g.x(m$a,a3);g.k=m$a.prototype;g.k.init=function(a,b,c){var d=this;a3.prototype.init.call(this,a,b,c);b.questionText&&h$a(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.Q(e,y3)&&i$a(d,g.Q(e,y3),c,f)});
this.D=new Set(this.u.map(function(e){return e.j.j}));
(a=b.noneOfTheAbove)&&(a=g.Q(a,Tbb))&&n$a(this,a,c);b.surveyAdQuestionCommon&&k$a(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
g.k.HY=function(){o$a(this,!1);this.C.u.subscribe("l",this.Y8,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?p$a(this):this.D.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),o$a(this,!0))};
g.k.Y8=function(){var a=[],b=this.u.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.od(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=Zj(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?o0(this.tb,d,this.layoutId,this.macros):g.sG(Error("Missing layoutId for multi_select_question."))}this.api.W().N("supports_multi_step_on_desktop")&&this.V(a)};
g.k.clear=function(){this.api.W().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.x(b3,a3);b3.prototype.init=function(a,b,c){var d=this;a3.prototype.init.call(this,a,b,c);b.questionText&&h$a(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.Q(e,y3)&&i$a(d,g.Q(e,y3),c,f)});
b.surveyAdQuestionCommon?k$a(this,b.surveyAdQuestionCommon):g.sG(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
b3.prototype.clear=function(){this.api.W().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.x(c3,bR);c3.prototype.init=function(a,b,c){var d=this;bR.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.u=null!=(f=b.questions)?f:[];var h;(null==(h=b.questions)?0:h.length)&&t$a(this,0)}else(b.questions||[]).forEach(function(l){g.Q(l,kP)?r$a(d,g.Q(l,kP),c):g.Q(l,lP)&&s$a(d,g.Q(l,lP),c)});
this.show()};
c3.prototype.clear=function(){this.api.W().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
c3.prototype.C=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.sG(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.sG(Error("Expected specified condition in survey conditioning rules."))}}),null!=d)t$a(this,d);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else 1<this.questions.length&&g.sG(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.x(d3,bR);
d3.prototype.init=function(a,b,c){var d=this;bR.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.sG(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.Q(b.ctaButton,g.pO))if(b.brandImage)if(b.backgroundImage&&g.Q(b.backgroundImage,W0)&&g.Q(b.backgroundImage,W0).landscape){this.layoutId||g.sG(Error("Missing layoutId for survey interstitial."));u$a(this.interstitial,g.Q(b.backgroundImage,
W0).landscape);u$a(this.logoImage,b.brandImage);g.sf(this.text,g.VG(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 iR(this.api,this.layoutId,this.interactionLoggingClientData,this.tb,e);g.H(this,this.actionButton);this.actionButton.Ja(this.u);this.actionButton.init(YO("button"),g.Q(b.ctaButton,g.pO),c);this.actionButton.show();this.j=new FR(this.api,1E3*a);
this.j.subscribe("g",function(){d.transition.hide()});
g.H(this,this.j);this.T(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.sG(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.sG(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.sG(Error("SurveyTextInterstitialRenderer has no button."));else g.sG(Error("SurveyTextInterstitialRenderer has no text."));else g.sG(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
d3.prototype.clear=function(){this.hide()};
d3.prototype.show=function(){v$a(!0);bR.prototype.show.call(this)};
d3.prototype.hide=function(){v$a(!1);bR.prototype.hide.call(this)};var sfb="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.x(e3,rR);
e3.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!sfb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.tb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof IP?c.EQ:!1,m=c instanceof IP||c instanceof QFa?c.sJ:!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 V9a(a,f,h,e);break;case "player-overlay":a=new NR(a,f,h,e,new zU(a),m);break;case "survey":a=new c3(a,f,h,e);break;case "ad-action-interstitial":a=new Q9a(a,
f,h,e,l,m);break;case "survey-interstitial":a=new d3(a,f,h,e);break;case "ad-message":a=new c$a(a,f,h,e,new zU(a,1));break;case "player-underlay":a=new e$a(a,f,h,e);break;default:a=null}if(!a){g.tG(Error("No UI component returned from ComponentFactory for type: "+d));break}g.cd(this.u,b)?g.tG(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof p9a?this.B?this.B.append(a.kQ):g.sG(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(a.kQ);
break;case 2:b=w$a(this,a);if(null==b)break;b.bind(c);break;case 3:c=w$a(this,a),null!=c&&(g.qb(c),g.cd(this.u,b)?g.jd(this.u,b):g.tG(Error("Ad UI component does not exist: "+b)))}};
e3.prototype.xa=function(){g.sb(Object.values(this.u));this.u={};rR.prototype.xa.call(this)};g.x(x$a,g.WT);g.k=x$a.prototype;g.k.create=function(){try{y$a(this),this.load(),this.created=!0,y$a(this)}catch(a){wG(a instanceof Error?a:String(a))}};
g.k.load=function(){try{B$a(this)}finally{v1(V2(this.j).Qi)&&this.player.Fg("ad",1)}};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Rt.Kn(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.WT.prototype.unload.call(this);ora(!1);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){wG(b instanceof Error?b:String(b))}if(null!==this.Hh){var a=this.Hh;this.Hh=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.Su.reset()};
g.k.vl=function(){return!1};
g.k.oZ=function(){var a=this.player.getVideoData(2);return null!==this.Hh||this.player.W().experiments.sb("html5_deprecate_adservice")?a?a.isListed&&!g.SM(this.player.W()):!1:(a&&a.isListed&&!g.SM(this.player.W())&&wG("showInfoBarDuringAd will return true if AdService check is removed."),!1)};
g.k.getAdState=function(){return-1};
g.k.getOptions=function(){return Object.values(rfb)};
g.k.Ih=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":a=b;if(a.url){b=oP(this.player);Object.assign(b,a.abb);if(this.Hh&&!b.AD_CPN){var c=this.Hh;null!=c.C&&wG("AdCpn in AdService is not Null");b.AD_CPN=c.C}a=g.zq(a.url,b)}else a=null;return a;case "onAboutThisAdPopupClosed":this.Qt(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}};
g.k.St=function(a){var b;return!(null==(b=this.j.j.Kf)||!b.get().St(a))};
g.k.Qt=function(a){a.isMuted&&C3a(V2(this.j).yj,V2(this.j).dl,a.layoutId);this.ly&&this.ly.Qt()};
g.k.executeCommand=function(a){V2(this.j).tb.executeCommand(a.command,a.layoutId)};g.VT("ad",x$a);var H$a=g.Pe&&G$a();g.x(g.f3,g.G);g.f3.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.mC)()};this.next()};
g.f3.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.f3.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.mC)()-a;a=this.j;d=rla(a,e/d);if(0==d)a=a.K;else if(1==d)a=a.V;else{e=re(a.K,a.D,d);var f=re(a.D,a.J,d);a=re(a.J,a.V,d);e=re(e,f,d);f=re(f,a,d);a=re(e,f,d)}a=g.pe(a,0,1);this.callback(b+(c-b)*a);1>a&&this.delay.start()}};g.x(g.g3,g.X);g.k=g.g3.prototype;g.k.r0=function(){this.B&&this.scrollTo(this.j-this.containerWidth)};
g.k.show=function(){g.X.prototype.show.call(this);L$a(this)};
g.k.s0=function(){this.B&&this.scrollTo(this.j+this.containerWidth)};
g.k.wr=function(){this.Kb(this.api.qb().getPlayerSize())};
g.k.Kb=function(a){var b=g.US(this.api)?.5625:16/9,c=this.K.Mg();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.u),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.D=d;this.oa=b;this.containerWidth=a;this.columns=c;this.j=0;this.suggestions.element.scrollLeft=-0;g.h3(this)};
g.k.onVideoDataChange=function(){var a=this.api.W(),b=this.api.getVideoData();this.J=b.Dd?!1:a.C;this.suggestionData=b.suggestions?g.cp(b.suggestions,function(c){return c&&!c.playlistId}):[];
N$a(this);b.Dd?this.title.update({title:g.MP("Mais v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:g.US(this.api)?"Mais v\u00eddeos curtos":"Mais v\u00eddeos"})};
g.k.scrollTo=function(a){a=g.pe(a,this.containerWidth-this.suggestionData.length*(this.D+8),0);this.V.start(this.j,a,1E3);this.j=a;g.h3(this);L$a(this)};})(_yt_player);
