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

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
'use strict';var da,baa,caa,ma,daa,oa,eaa,qa,ua,wa,za,gaa,haa,Ga,Ha,iaa,jaa,Ja,kaa,Ka,Pa,Qa,laa,Ra,Ya,$a,naa,oaa,pb,paa,sb,tb,ub,yb,zb,qaa,raa,Cb,taa,uaa,Ob,vaa,Vb,waa,xaa,Sb,yaa,zaa,Aaa,Caa,Baa,Daa,ec,Eaa,hc,jc,lc,wc,xc,yc,Ac,Bc,Cc,Maa,Dc,Gc,Fc,Naa,Oaa,Paa,Qaa,Hc,Raa,Mc,Nc,Oc,Saa,Qc,Rc,Uaa,Vaa,Xaa,Xc,Yc,$aa,ad,dd,aba,bba,ld,cba,sd,zd,fba,gba,Ad,lba,Fd,iba,kba,Dd,Cd,Md,Nd,mba,Rd,nba,Td,Ud,oba,Yd,$d,ae,fe,uba,ne,Bba,zba,Aba,Eba,Fba,ve,we,Iba,ze,Kba,Be,Ce,Lba,Mba,Nba,Oba,Sba,Rba,Je,Ne,Tba,Te,Ve,Uba,
Vba,Wba,Ze,hf,jf,Xba,Yba,Zba,$ba,vf,wf,Bf,cca,eca,dca,Df,Hf,fca,Gf,Qf,mf,Wf,hca,ag,$f,kf,cg,ica,dg,eg,fg,jca,lca,nca,lg,mg,tg,rca,tca,vg,uca,ug,yca,jg,pca,Aca,xca,vca,wca,Bca,zca,wg,sca,zg,Dca,Eca,Fca,Gca,Hca,Ica,Jca,Kca,Lca,Mca,Nca,Oca,Pca,Qca,Rca,Sca,Tca,Uca,Vca,Wca,Xca,Yca,Bg,Zca,cda,dda,eda,jda,Fg,ida,fda,lda,nda,pda,Mg,Ng,sda,Pg,Qg,uda,Sg,Rg,vda,Tg,wda,Ug,Vg,Zg,xda,$g,yda,zda,ah,Wg,ch,eh,dh,uh,vh,wh,xh,yh,Ada,Cda,Ah,Dda,Eda,Bh,Ch,Fh,Gda,Hda,Jda,Kda,Mda,Gh,Nda,Hh,Oda,Ih,Pda,Jh,Kh,Qda,Lh,Mh,Nh,
Oh,Rda,hi,Sda,Uda,ii,ji,li,mi,Vda,Wda,oi,pi,Xda,Yda,Zda,$da,qi,ri,si,bea,ti,ui,vi,dea,yi,zi,eea,fea,xi,Ai,cea,wi,Wi,gea,hea,Xi,Yi,Zi,$i,iea,cj,ej,O,lea,kea,mea,nea,fj,oea,pea,hj,jj,yj,kj,Aj,zj,Bj,Ej,Hj,rea,sea,Gj,tea,uea,Ij,vea,Jj,Lj,Kj,wea,xea,Nj,Oj,Pj,Mj,Qj,qea,yea,zea,Sj,Tj,Uj,Fj,Vj,Wj,Aea,Xj,Bea,Cea,Yj,pk,qk,Dea,rk,Eea,tk,Fea,uk,vk,wk,xk,yk,zk,Q,Ak,Bk,S,Ck,T,Gea,Dk,Jea,Ek,Ik,Mea,Jk,Oea,Pea,Lea,Qea,Lk,Uea,Vea,Wea,Mk,Yea,Zea,Fk,Xea,$ea,Tea,Pk,Qk,rl,sl,tl,ul,bfa,cfa,vl,dfa,wl,xl,yl,zl,Al,Bl,Cl,ffa,
gfa,ifa,hfa,jfa,Fl,Gl,Hl,lfa,mfa,nfa,Il,Jl,Kl,Ll,Ol,Pl,Ql,ofa,ym,qfa,Bm,Cm,Dm,Em,Fm,Gm,rfa,Jm,tfa,Im,Hm,sfa,ufa,vfa,Lm,wfa,Km,Mm,xfa,Om,yfa,Bfa,Pm,Qm,Cfa,Rm,Sm,Efa,Wm,Ffa,Xm,Ym,Zm,Gfa,Hfa,bn,Ifa,cn,Hn,Lfa,Nfa,Ofa,Qfa,Pfa,Rfa,Jn,Sfa,Mn,Qn,Rn,Sn,Tn,Vfa,Un,Vn,Wn,Wfa,Xfa,Yfa,Xn,$fa,Yn,aga,cga,fga,ega,dga,iga,gga,$n,bo,co,eo,ao,jga,kga,fo,ho,lga,io,mga,oga,nga,pga,qga,rga,tga,jo,ko,lo,mo,no,oo,po,qo,uga,ro,so,to,uo,vo,yga,vga,yo,xga,zo,wga,xo,wo,Bo,Aga,Do,Co,Io,Jo,Lo,Dga,Ko,Oo,Ega,Po,Bga,Hga,Iga,Jga,Fp,
Gp,Hp,Kga,Ip,Jp,Kp,Lp,Lga,Mp,Np,Op,Mga,Nga,Pp,Oga,Qp,Rga,Sga,Tga,Uga,Pga,Rp,Sp,Tp,Up,Wga,Xga,Vga,Vp,Yga,Zga,$ga,Zp,aha,$p,aq,cha,dha,bq,eha,cq,dq,eq,fq,gq,hq,iq,jq,fha,kq,lq,gha,iha,mq,hha,jha,kha,lha,nq,oq,pq,qq,rq,sq,tq,mha,uq,vq,wq,nha,pha,qha,yq,Aq,zq,Cq,Dq,Eq,sha,Fq,tha,wr,xr,yr,vha,wha,zha,xha,Aha,Eha,zr,Dha,Bha,Ar,Br,Fha,Cr,Gha,Dr,Iha,Hha,Jha,Kha,Hr,Lha,Mha,Nha,Ir,Jr,Oha,Kr,Pha,Qha,Sha,Wha,Lr,Xha,Yha,Zha,$ha,aia,Or,bia,cia,dia,Vr,Ur,Tr,eia,fia,gia,Wr,Xr,Yr,iia,cs,ds,es,jia,fs,lia,mia,nia,gs,
is,js,ns,os,rs,pia,ria,qia,sia,tia,ys,uia,via,zs,wia,xia,yia,zia,Ds,Bs,Es,Fs,Gs,Aia,Bia,Cia,Hs,Is,Js,Dia,Eia,Fia,Ks,Gia,Ls,Ms,Hia,Iia,Jia,Kia,Lia,Mia,Ns,Os,Ps,Rs,Pia,Ss,Ts,Qia,Oia,Qs,Ria,ct,dt,et,gt,ft,Sia,Tia,Uia,ht,Wia,it,Yia,Zia,$ia,aja,bja,cja,dja,eja,lt,mt,nt,gja,fja,hja,ija,pt,jja,qt,kja,lja,rt,tt,ut,mja,vt,wt,nja,xt,zt,At,Bt,Ct,Dt,Et,Ft,oja,pja,qja,rja,Gt,sja,uja,tja,It,Jt,wja,vja,zja,Cja,Bja,Kt,Dja,Eja,Fja,Hja,Gja,Ija,Lt,Jja,Kja,Nt,Lja,Mja,Nja,Oja,Ot,Pja,Pt,Qja,Qt,Rt,Sja,St,Tja,Tt,Ut,Uja,
Vja,Vt,Xt,Xja,Yt,Wja,Yja,Zja,$ja,bka,Zt,cka,bu,cu,eka,fka,ika,jka,du,eu,fu,gu,hu,iu,ju,ku,lu,mu,nu,ou,pu,nka,mka,oka,qka,pka,ska,lka,rka,kka,qu,ru,uka,vka,wka,wu,xu,yu,tu,yka,zu,tka,Aka,Bka,zka,Au,Bu,Cu,Du,Cka,xka,Dka,Eu,Eka,Fka,Gka,Hka,Ika,Lka,Mka,Nka,Oka,Pka,Ska,Hu,Uka,Gu,Ju,Vka,Ku,Mu,Nu,Wka,Xka,Uu,Yka,Zka,Vu,$ka,ala,dv,bla,ela,lv,fla,gla,lla,hla,tv,pv,qv,rv,uv,vv,qla,wv,xv,yv,sla,Bv,tla,ula,Cv,wla,Ev,Fv,Gv,Hv,xla,Kv,Jv,Mv,Nv,Ov,Pv,Rv,Sv,zla,Ala,Vv,Wv,Xv,Yv,Zv,$v,Bla,Cla,Dla,Ela,Fla,Gla,aw,Hla,
hw,Ila,Jla,Kla,iw,kw,lw,mw,pw,qw,rw,Mla,vw,ww,xw,Nla,Ola,yw,Pla,Qla,Aw,Yla,Zla,$la,Bw,ama,bma,Dw,fma,ema,Fw,gma,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,Nx,Ox,ey,fy,gy,hy,iy,jy,ky,ly,my,ny,oy,py,qy,ry,sy,ty,uy,vy,wy,yy,zy,hma,Ay,By,Cy,Dy,Ey,Fy,Gy,Hy,Iy,Jy,Ly,My,Ny,Oy,Py,Qy,Ry,Sy,Ty,Uy,Vy,Wy,Xy,ima,jma,kma,lma,Yy,mma,nma,oma,Zy,$y,az,bz,cz,dz,pma,ez,fz,gz,hz,qma,iz,
jz,kz,rma,sma,lz,mz,nz,oz,pz,qz,rz,sz,tma,uma,tz,vma,wma,xma,uz,yma,zma,Ama,vz,Bma,wz,xz,yz,Cma,zz,Dma,Az,Bz,Ema,Cz,Fma,Dz,Gma,Hma,Ima,Ez,Jma,Kma,Fz,Gz,Lma,Hz,Mma,Iz,Jz,Kz,Lz,Oz,Pz,Qz,Nma,Rz,Sz,Tz,Oma,Uz,Vz,Wz,Xz,Pma,Yz,Zz,$z,aA,bA,Qma,cA,Rma,dA,Sma,Tma,eA,fA,Uma,gA,hA,iA,Vma,Wma,Xma,Yma,jA,kA,Zma,lA,$ma,ana,bna,cna,dna,mA,nA,ena,fna,oA,pA,gna,qA,hna,ina,rA,jna,kna,lna,mna,sA,tA,uA,vA,nna,ona,wA,pna,qna,rna,sna,xA,tna,una,vna,wna,xna,yna,zna,Ana,Bna,yA,Cna,zA,AA,Dna,Ena,BA,Fna,Gna,Hna,Ina,Jna,Kna,
Lna,Mna,CA,Nna,Ona,Pna,DA,Qna,Rna,EA,FA,Sna,GA,HA,Tna,IA,Una,JA,Vna,KA,LA,Wna,Xna,MA,Yna,Zna,NA,$na,aoa,boa,coa,doa,eoa,foa,goa,hoa,ioa,OA,joa,koa,PA,loa,QA,RA,moa,noa,SA,ooa,poa,TA,qoa,UA,roa,VA,WA,XA,YA,soa,ZA,$A,aB,bB,toa,cB,dB,uoa,voa,eB,fB,gB,woa,hB,xoa,yoa,zoa,iB,Aoa,Boa,Coa,jB,Doa,Eoa,kB,lB,Foa,mB,Goa,Hoa,nB,Ioa,oB,Joa,Koa,Loa,qB,sB,Moa,yB,zB,AB,BB,Qoa,DB,EB,Roa,FB,GB,HB,Noa,IB,Uoa,Xoa,JB,Zoa,Yoa,$oa,cpa,bpa,fpa,gpa,hpa,ipa,kpa,ppa,lpa,npa,opa,TB,SB,qpa,VB,WB,XB,spa,tpa,upa,vpa,wpa,xpa,cC,
ypa,eC,zpa,Apa,fC,Cpa,Dpa,iC,kC,Epa,Fpa,lC,mC,nC,oC,Jpa,pC,Lpa,Kpa,Npa,rC,Opa,Spa,Qpa,Rpa,Tpa,Upa,Ypa,Zpa,Vpa,bqa,tC,cqa,wC,dqa,eqa,vC,xC,gqa,hqa,kqa,BC,lqa,mqa,CC,DC,EC,GC,oqa,qqa,MC,rqa,sqa,tqa,uqa,vqa,yqa,zqa,Aqa,xqa,Bqa,Dqa,Fqa,TC,Gqa,WC,UC,ZC,$C,Iqa,Lqa,eD,fD,gD,hD,Pqa,jD,Rqa,Sqa,Tqa,mD,Vqa,Wqa,Uqa,Xqa,Yqa,Zqa,$qa,ara,cra,rD,fra,gra,dra,hra,ira,lra,kra,vD,era,ora,AD,nra,pra,qra,BD,CD,rra,tra,ED,ura,vra,xra,zra,HD,Ara,Bra,Cra,Dra,Era,Fra,Gra,Hra,JD,Ira,LD,Kra,Lra,Mra,Nra,Ora,Pra,QD,Sra,Vra,RD,
Wra,Yra,Rra,Zra,$ra,asa,Tra,Ura,MD,Qra,PD,Xra,OD,ND,bsa,csa,dsa,esa,fsa,gsa,msa,hsa,UD,VD,WD,psa,rsa,qsa,nsa,ssa,usa,ZD,wsa,zsa,bE,ysa,Jsa,Asa,Isa,fE,Ksa,Nsa,gE,eE,Lsa,Msa,Osa,iE,Qsa,Rsa,Ssa,Tsa,Usa,Vsa,Wsa,Psa,Ysa,Zsa,$sa,ata,bta,eta,kE,lE,mE,gta,nE,hta,ita,pE,qE,lta,kta,nta,mta,pta,rta,qta,sta,yta,wta,BE,zta,Bta,AE,Ata,CE,DE,Cta,Dta,Eta,FE,Gta,IE,HE,JE,KE,LE,Ita,Jta,NE,Kta,OE,Mta,Nta,Ota,Qta,Rta,Pta,RE,Tta,Sta,Uta,SE,Wta,TE,Yta,UE,$ta,VE,Zta,WE,XE,cua,iua,kua,hua,gua,jua,$E,lua,tua,pua,qua,rua,
bua,Cua,Eua,Bua,Hua,Aua,ZE,Gua,oua,sua,Dua,mua,eua,dua,fua,bF,zua,iF,Rua,Qua,Vua,Yua,Xua,$ua,kF,lF,bva,cva,dva,eva,fva,gva,hva,nF,jva,kva,lva,mva,nva,ova,pva,rva,sva,rF,uva,wva,vva,xva,zva,Ava,Eva,Cva,Gva,Fva,Iva,Hva,sF,Kqa,Qva,Nva,Sva,zF,Uva,Xva,Yva,Zva,ewa,iwa,jwa,lwa,kwa,mwa,FF,owa,EF,hwa,gwa,BF,MF,LF,PF,QF,SF,qwa,TF,WF,XF,rwa,swa,uwa,vwa,wwa,xwa,ywa,zwa,Awa,Bwa,Cwa,Dwa,Ewa,cG,Fwa,Gwa,Iwa,Jwa,Kwa,Lwa,Mwa,Nwa,Qwa,Rwa,eG,fG,Swa,gG,Twa,oG,Vwa,Uwa,qG,rG,sG,tG,Wwa,uG,Xwa,Ywa,Zwa,vG,$wa,dxa,axa,cxa,
bxa,exa,wG,fxa,gxa,hxa,ixa,xG,kxa,nxa,mxa,yG,oxa,zG,AG,BG,DG,EG,pxa,qxa,rxa,FG,sxa,txa,GG,vxa,uxa,wxa,HG,KG,MG,yxa,xxa,OG,zxa,Axa,PG,QG,RG,SG,VG,Cxa,WG,XG,YG,ZG,Dxa,Exa,bH,Fxa,cH,Jxa,Lxa,Nxa,Pxa,Rxa,eH,Sxa,fH,Txa,Wxa,Xxa,Yxa,hH,$xa,aya,jH,kH,lH,cya,mH,nH,oH,dya,pH,bya,eya,qH,gya,fya,rH,iya,sH,tH,vH,jya,kya,xH,yH,AH,MH,LH,mya,zH,pya,qya,tya,uya,vya,xya,sya,yya,zya,Aya,NH,oya,rya,OH,Eya,Gya,RH,Hya,SH,Iya,PH,Jya,TH,Kya,Fya,UH,Mya,VH,Rya,Pya,Oya,Nya,XH,YH,ZH,$H,aI,bI,dI,Tya,Yya,fI,Zya,$ya,bza,aza,cza,
dza,eza,gza,fza,jza,kza,lza,gI,mza,nza,oza,pza,qza,sza,tza,hI,rza,iI,wza,yza,jI,kI,lI,zza,mI,nI,Aza,Bza,Cza,Dza,Eza,Fza,oI,pI,qI,rI,sI,tI,uI,vI,wI,xI,yI,Gza,Hza,zI,Iza,Jza,Kza,Lza,AI,BI,CI,DI,Mza,EI,FI,GI,Nza,HI,II,JI,KI,LI,MI,NI,OI,PI,Oza,QI,RI,SI,Pza,TI,UI,VI,WI,Qza,XI,YI,Rza,ZI,Sza,$I,Tza,bJ,cJ,Uza,dJ,eJ,fJ,aJ,gJ,hJ,iJ,Wza,Yza,Zza,jJ,$za,kJ,aAa,mJ,bAa,cAa,nJ,oJ,dAa,gAa,hAa,iAa,jAa,kAa,lAa,eAa,zJ,oAa,pAa,qAa,rAa,fAa,tAa,qJ,uAa,vAa,BJ,wAa,CJ,sJ,xAa,rJ,sAa,DJ,AAa,zAa,uJ,vJ,FJ,EJ,BAa,GJ,CAa,HJ,EAa,
DAa,IJ,JJ,KJ,LJ,MJ,GAa,HAa,JAa,KAa,OJ,PJ,NAa,QJ,RAa,TAa,VAa,WAa,SJ,YAa,ZAa,aBa,bBa,cBa,dBa,eBa,fBa,XJ,YJ,gBa,iBa,hBa,jBa,kBa,lBa,bK,dK,eK,fK,gK,hK,mBa,iK,jK,cK,kK,lK,mK,pBa,oBa,sBa,tBa,uBa,vBa,wBa,xBa,yBa,zBa,ABa,BBa,CBa,DBa,EBa,FBa,GBa,HBa,IBa,JBa,KBa,LBa,MBa,NBa,oK,pK,OBa,qK,rK,PBa,QBa,RBa,SBa,TBa,UBa,VBa,sK,WBa,XBa,YBa,ZBa,tK,$Ba,aCa,bCa,cCa,dCa,uK,eCa,fCa,gCa,vK,hCa,yK,jCa,kCa,zK,lCa,mCa,nCa,AK,BK,CK,DK,qCa,EK,FK,HK,sCa,tCa,uCa,JK,LK,vCa,PK,QK,wCa,xCa,RK,yCa,SK,zCa,UK,VK,WK,ACa,BCa,CCa,XK,NK,
YK,ZK,$K,aL,bL,cL,DCa,dL,eL,fL,gL,hL,iL,jL,kL,lL,FCa,GCa,HCa,ICa,rL,nL,sL,JCa,KCa,LCa,MCa,tL,uL,NCa,OCa,PCa,pL,QCa,RCa,vL,SCa,UCa,VCa,xL,yL,zL,AL,BL,YCa,EL,GL,FL,$Ca,HL,aDa,bDa,dDa,cDa,KL,eDa,fDa,hDa,gDa,iDa,lDa,LL,mDa,oDa,jDa,kDa,ML,nDa,qDa,rDa,tDa,sDa,OL,vDa,wDa,xDa,zDa,yDa,ADa,BDa,DDa,CDa,EDa,FDa,GDa,HDa,IDa,JDa,KDa,LDa,MDa,NDa,ODa,PDa,QDa,RDa,SDa,TDa,UDa,RL,VDa,SL,TL,XDa,YDa,UL,ZDa,VL,$Da,WL,aEa,XL,bEa,cEa,dEa,eEa,YL,fEa,gEa,hEa,ZL,$L,aM,bM,cM,iEa,dM,eM,fM,jEa,gM,kEa,lEa,mEa,hM,iM,nEa,jM,oEa,
kM,lM,IAa,pEa,qEa,mM,rEa,nM,oM,pM,qM,rM,sM,tM,uM,sEa,vM,wM,tEa,uEa,vEa,wEa,xM,CM,yEa,DEa,GEa,EEa,IEa,JEa,HEa,LEa,MEa,NEa,LM,QEa,SEa,VEa,WEa,XEa,NM,ZEa,$Ea,dFa,OM,eFa,aFa,fFa,PM,gFa,jFa,iFa,nFa,kFa,QM,RM,tFa,wFa,vFa,zFa,yFa,BFa,CFa,FFa,DFa,EFa,uFa,GFa,HFa,TM,xFa,IFa,UM,JFa,KFa,NFa,QFa,OFa,TFa,aGa,$Fa,UFa,bGa,WFa,XFa,VFa,fGa,hGa,jGa,nGa,qGa,rGa,tGa,vGa,xGa,wGa,FGa,zGa,yGa,GGa,JGa,KGa,LGa,MGa,$M,REa,PGa,NGa,bN,RGa,SGa,eN,VGa,WGa,UGa,fN,XGa,gN,hN,ZJ,iN,PEa,jN,YGa,qBa,ZGa,kN,$Ga,aHa,bHa,lN,mN,cHa,nN,oN,
pN,qN,rN,dHa,eHa,sN,fHa,gHa,tN,hHa,uN,NL,vN,wN,iHa,xN,jHa,kHa,TEa,TGa,lHa,yN,$J,NJ,VM,mHa,nHa,zN,sFa,SM,oHa,aN,QGa,mGa,lGa,MFa,WM,oGa,sGa,uGa,oFa,HGa,pHa,cGa,YFa,AN,UEa,rHa,qHa,LFa,pGa,sHa,IGa,XM,pFa,rFa,hFa,kGa,iGa,SFa,PFa,cFa,bFa,YEa,eGa,ZFa,AGa,lFa,mFa,DGa,EGa,BGa,CGa,gGa,vHa,tHa,BN,uHa,CN,AJ,tJ,mAa,pJ,DN,EN,FN,SN,xHa,UN,zHa,AHa,BHa,CHa,EHa,DHa,FHa,GHa,XN,$N,HHa,IHa,KHa,JHa,LHa,MHa,NHa,OHa,PHa,QHa,bO,cO,THa,dO,eO,UHa,VHa,WHa,XHa,fO,YHa,gO,ZHa,$Ha,hO,jO,nO,aIa,oO,pO,qO,rO,sO,tO,uO,vO,wO,xO,yO,bIa,
cIa,zO,AO,BO,CO,DO,EO,dIa,eIa,FO,JO,hIa,iIa,KO,kIa,jIa,lIa,mIa,MO,NO,OO,Z,oIa,PO,tIa,xIa,yIa,zIa,IIa,LIa,QIa,RIa,oJa,pJa,qJa,SIa,TIa,ZIa,vJa,cJa,dJa,AJa,yJa,CJa,DJa,zJa,EJa,GKa,LJa,HKa,MJa,NJa,YO,JKa,LKa,NKa,MKa,KKa,SJa,iKa,jKa,RKa,TKa,lKa,mKa,oKa,pKa,qKa,$Ka,sKa,vKa,CKa,iLa,dLa,eLa,kLa,nLa,mLa,oLa,pLa,xLa,qLa,aP,uLa,DLa,ELa,FLa,GLa,HLa,KLa,PLa,sMa,rMa,eP,fP,gP,hP,iP,jP,zMa,lP,kP,BMa,xMa,yMa,CMa,AMa,mP,DMa,Jqa,FMa,EMa,HMa,JMa,LMa,MMa,KMa,NMa,qP,SMa,TMa,UMa,VMa,WMa,rP,XMa,YMa,ZMa,$Ma,aNa,cNa,tP,dNa,
vP,xP,eNa,yP,zP,fNa,jNa,lNa,kNa,nNa,uNa,vNa,BP,mNa,iNa,hNa,gNa,GP,CP,FP,LP,MP,yNa,zNa,NP,KP,DNa,ANa,BNa,ENa,OP,PP,GNa,HNa,RP,SP,TP,UP,VP,INa,JNa,KNa,WP,XP,ZP,MNa,NNa,YP,ONa,RNa,SNa,$P,TNa,cQ,UNa,dQ,fQ,WNa,eQ,gQ,XNa,ZNa,$Na,aOa,iQ,jQ,oQ,dOa,lQ,pQ,rQ,eOa,sQ,nQ,qQ,fOa,tQ,gOa,uQ,hOa,kQ,mQ,bOa,cOa,vQ,iOa,jOa,kOa,wQ,xQ,yQ,lOa,zQ,AQ,mOa,BQ,nOa,CQ,DQ,EQ,oOa,pOa,qOa,rOa,sOa,FQ,tOa,uOa,vOa,wOa,xOa,yOa,GQ,HQ,zOa,IQ,DOa,EOa,FOa,GOa,HOa,KQ,MQ,JQ,AOa,IOa,JOa,KOa,LOa,NQ,OQ,MOa,PQ,QQ,NOa,OOa,RQ,POa,QOa,UOa,VOa,ROa,
SOa,TOa,WOa,SQ,TQ,UQ,XOa,YOa,VQ,WQ,ZOa,XQ,$Oa,bPa,aPa,YQ,cPa,dPa,ePa,fPa,gPa,hPa,jPa,kPa,ZQ,lPa,nPa,pPa,oPa,bR,tPa,sNa,DP,uPa,vPa,wPa,xPa,yPa,zPa,AP,aR,APa,cR,FPa,GPa,HPa,IPa,dR,MPa,JPa,KPa,OPa,PPa,QPa,RPa,NPa,SPa,eR,fR,gR,TPa,UPa,hR,VPa,WPa,XPa,iR,DPa,lR,ZPa,tNa,oNa,aQa,mR,oR,pR,qR,rR,sR,nR,bQa,dQa,vR,gQa,eQa,iQa,jQa,hQa,fQa,kQa,lQa,mQa,AR,nQa,oQa,qQa,rQa,xNa,BR,sQa,vQa,HP,wQa,xQa,yQa,EP,pNa,rNa,CR,DR,ER,FR,AQa,BQa,GR,CQa,HR,IR,DQa,JR,EQa,KR,FQa,GQa,MR,NR,OR,HQa,IQa,PR,JQa,KQa,LR,QR,LQa,MQa,OQa,
QQa,PQa,NQa,cRa,$Qa,fRa,hS,iS,RQa,aRa,xJ,fS,lS,gRa,pS,iRa,WR,qS,VR,jRa,eS,tS,uS,lRa,mRa,nRa,oRa,pRa,qRa,rRa,vS,sRa,xRa,wRa,tRa,vRa,uRa,wS,yRa,xS,zRa,ARa,CRa,DRa,ERa,JRa,CS,DS,MRa,ES,FS,NRa,QRa,RRa,SRa,TRa,GS,VRa,ZRa,$Ra,gSa,jSa,dSa,eSa,lSa,PS,mSa,oSa,nSa,pSa,RS,US,qSa,QS,rSa,VS,sSa,wSa,tSa,zSa,vSa,RSa,$Sa,nT,aTa,cTa,MSa,bT,bTa,gT,oT,KSa,eTa,dTa,pT,ZS,NSa,jTa,fTa,gTa,hTa,iTa,kTa,rT,lTa,nTa,oTa,tT,pTa,YS,dT,mTa,SSa,uSa,WSa,zT,eT,FT,lT,HT,IT,CTa,DTa,mT,KT,ETa,LT,FTa,fT,MT,LSa,GTa,uTa,cT,DSa,HTa,BSa,
ASa,xSa,PT,JTa,RTa,TTa,UTa,ST,UT,VT,TT,XT,VTa,WTa,ZT,YTa,$T,$Ta,aUa,ZTa,bUa,eUa,gUa,iUa,jUa,lUa,kUa,fU,mUa,pUa,qUa,qU,rU,sU,sUa,vUa,wUa,yUa,xUa,zUa,uUa,BUa,AUa,EUa,CUa,DUa,HUa,IUa,JUa,KUa,GUa,MUa,NUa,LUa,FUa,OUa,PUa,QUa,RUa,SUa,TUa,UUa,WUa,YUa,ZUa,XUa,tU,$Ua,aVa,cVa,bVa,dVa,fVa,eVa,gVa,hVa,iVa,jVa,lVa,mVa,kVa,vU,oVa,wU,xU,yU,pVa,zU,qVa,AU,BU,rVa,wVa,zVa,AVa,BVa,CVa,FU,GU,yVa,vVa,DVa,DU,sVa,GVa,CU,EU,tVa,uVa,HU,HVa,IVa,xVa,FVa,JVa,MU,KVa,QU,RU,SU,TU,UU,LVa,VU,MVa,QVa,WU,XU,RVa,SVa,UVa,TVa,VVa,WVa,
XVa,YU,ZU,YVa,$Va,aWa,bWa,cV,hWa,gWa,dV,eV,iWa,fV,jWa,kWa,lWa,mWa,nWa,gV,pWa,oWa,qWa,rWa,hV,iV,sWa,uWa,vWa,wWa,xWa,jV,yWa,kV,zWa,CWa,lV,AWa,FWa,DWa,EWa,BWa,mV,JWa,HWa,IWa,KWa,nV,LWa,MWa,NWa,oV,OWa,PWa,QWa,rV,pV,RWa,sV,SWa,uV,vV,UWa,tV,WWa,wV,yV,XWa,zV,AV,BV,YWa,aXa,$Wa,DV,EV,FV,dXa,bXa,cXa,GV,eXa,iXa,gXa,fXa,hXa,HV,kXa,lXa,IV,JV,pXa,nXa,oXa,KV,qXa,mXa,rXa,LV,MV,sXa,tXa,uXa,NV,vXa,wXa,xXa,yXa,zXa,AXa,BXa,EXa,CXa,FXa,GXa,HXa,IXa,EVa,XV,YV,KXa,WV,OXa,NXa,PXa,QXa,RXa,SXa,TXa,UXa,zQa,VXa,WXa,bYa,bW,eYa,
hYa,gYa,fYa,$Xa,aYa,XXa,YXa,cYa,cW,dW,jYa,kU,fUa,fW,kYa,mYa,lYa,dYa,oYa,pYa,qYa,hW,rYa,oW,tYa,uYa,vYa,xYa,wYa,yYa,pW,qW,zYa,CYa,DYa,sW,BYa,EYa,FYa,AYa,tW,wW,GYa,HYa,vW,IYa,JYa,KYa,LYa,NYa,MYa,PYa,QYa,OYa,TYa,RYa,zW,AW,UYa,DW,EW,VYa,XYa,GW,WYa,YYa,ZYa,$Ya,bZa,aZa,dZa,cZa,eZa,JW,fZa,gZa,hZa,KW,LW,jZa,iZa,OW,MW,NW,kZa,lZa,PW,QW,nZa,oZa,mZa,pZa,qZa,rZa,tZa,sZa,uZa,vZa,wZa,xZa,zZa,SW,RW,TW,AZa,BZa,yZa,GZa,HZa,IZa,LZa,KZa,JZa,MZa,NZa,UW,VW,OZa,PZa,QZa,RZa,TZa,WW,YW,SZa,UZa,VZa,WZa,XZa,YZa,$W,ZZa,$Za,c_a,
aX,d_a,b_a,bX,cX,e_a,f_a,h_a,j_a,g_a,i_a,eX,k_a,m_a,n_a,p_a,q_a,fX,gX,r_a,l_a,t_a,s_a,hX,iX,jX,v_a,u_a,kX,lX,w_a,x_a,mX,U_a,V_a,W_a,nX,X_a,oX,Y_a,pX,a0a,b0a,c0a,e0a,f0a,g0a,d0a,i0a,h0a,j0a,m0a,tX,o0a,n0a,k0a,l0a,p0a,q0a,uX,vX,r0a,s0a,t0a,u0a,v0a,w0a,y0a,z0a,H0a,C0a,D0a,A0a,K0a,AX,L0a,P0a,DX,Q0a,M0a,zX,GX,FX,BX,HX,T0a,U0a,IX,CX,I0a,S0a,EX,N0a,R0a,W0a,wX,JX,X0a,Y0a,O0a,KX,LX,Z0a,MX,$0a,PX,QX,a1a,b1a,d1a,e1a,c1a,RX,SX,f1a,g1a,h1a,i1a,j1a,l1a,n1a,m1a,k1a,p1a,o1a,TX,UX,q1a,s1a,t1a,VX,r1a,u1a,v1a,w1a,XX,
$X,ZX,y1a,x1a,z1a,aY,bY,A1a,B1a,D1a,C1a,E1a,F1a,G1a,dY,H1a,I1a,J1a,K1a,L1a,M1a,O1a,P1a,Q1a,N1a,R1a,S1a,T1a,U1a,V1a,hY,X1a,iY,Z1a,jY,Y1a,a2a,b2a,$1a,kY,c2a,lY,mY,nY,d2a,pY,f2a,g2a,h2a,qY,i2a,j2a,k2a,l2a,m2a,n2a,e2a,o2a,r2a,t2a,v2a,y2a,D2a,sY,E2a,F2a,G2a,H2a,uY,I2a,J2a,K2a,P2a,U2a,S2a,M2a,xY,R2a,L2a,T2a,zY,W2a,V2a,AY,Y2a,Z2a,$2a,b3a,c3a,a3a,d3a,VWa,EY,e3a,f3a,FY,GY,g3a,HY,i3a,h3a,j3a,k3a,r3a,LY,s3a,MY,u3a,OY,NY,v3a,l3a,PY,x3a,y3a,A3a,QY,RY,B3a,SY,D3a,C3a,TY,p3a,JY,E3a,F3a,G3a,H3a,I3a,m3a,o3a,KY,L3a,
M3a,UY,WY,XY,O3a,P3a,N3a,Q3a,R3a,S3a,VY,J3a,T3a,U3a,Y3a,$Y,K3a,$3a,d4a,bZ,e4a,f4a,b4a,dZ,g4a,h4a,Z3a,i4a,c4a,j4a,eZ,cZ,k4a,m4a,l4a,aZ,o4a,hZ,p4a,fZ,iZ,gZ,jZ,q4a,r4a,s4a,v4a,u4a,x4a,y4a,w4a,mZ,lZ,A4a,B4a,C4a,D4a,E4a,G4a,F4a,H4a,nZ,KU,I4a,oZ,J4a,L4a,O4a,M4a,N4a,uZ,yZ,Q4a,zZ,R4a,S4a,T4a,AZ,BZ,CZ,V4a,W4a,U4a,Z4a,$4a,DZ,EZ,a5a,b5a,c5a,cSa,iSa,d5a,f5a,e5a,g5a,h5a,GZ,i5a,j5a,IZ,JZ,HZ,k5a,qZ,l5a,m5a,n5a,o5a,p5a,q5a,r5a,LZ,t5a,u5a,s5a,v5a,w5a,x5a,MZ,z5a,A5a,NZ,B5a,C5a,D5a,E5a,F5a,G5a,H5a,I5a,J5a,K5a,L5a,OZ,
N5a,O5a,P5a,PZ,QZ,Q5a,R5a,V5a,S5a,W5a,X5a,T5a,U5a,Y5a,Z5a,a6a,$5a,RZ,f6a,d6a,e6a,b6a,g6a,SZ,c6a,TZ,UZ,h6a,i6a,j6a,VZ,l6a,m6a,WZ,n6a,XZ,o6a,p6a,q6a,r6a,t6a,u6a,B6a,x6a,s6a,D6a,E6a,y6a,z6a,w6a,A6a,ZZ,v6a,C6a,K6a,I6a,H6a,G6a,F6a,a_,L6a,pZ,M6a,b_,c_,N6a,O6a,P6a,d_,Q6a,wZ,R6a,S6a,T6a,sZ,tZ,X6a,f_,h_,Y6a,Z6a,j_,g_,e_,k_,V6a,U6a,W6a,l_,a7a,b7a,$6a,c7a,rZ,d7a,i_,e7a,f7a,g7a,h7a,m_,i7a,X4a,Y4a,j7a,k7a,n_,n7a,l7a,o7a,q7a,o_,r7a,s7a,t7a,q_,s_,v7a,w7a,A7a,y7a,B7a,C7a,x7a,z7a,u7a,D7a,E7a,F7a,G7a,K7a,M7a,N7a,t_,
O7a,y5a,P7a,Q7a,u_,R7a,S7a,T7a,U7a,V7a,w_,b8a,a8a,B_,c8a,$7a,f8a,g8a,h8a,j8a,k8a,l8a,m8a,n8a,o8a,q8a,r8a,s8a,p8a,E_,v_,t8a,u8a,C_,w8a,i8a,D_,x8a,y8a,B8a,C8a,z8a,A8a,F8a,E8a,G8a,H8a,I8a,D8a,J8a,K8a,F_,L8a,M8a,N8a,O8a,R8a,Q8a,P8a,G_,S8a,U8a,V8a,W8a,J_,K_,M5a,X8a,Y8a,a9a,$8a,Z8a,b9a,d9a,e9a,c9a,L_,g9a,h9a,i9a,n9a,m9a,o9a,q9a,J6a,j9a,l9a,k9a,p9a,vZ,YZ,p_,s9a,r9a,t9a,u9a,v9a,w9a,T8a,M_,r_,x9a,y9a,p7a,O_,P_,z9a,Q_,A9a,B9a,C9a,D9a,E9a,F9a,H9a,G9a,J9a,K9a,O9a,L9a,N9a,P9a,S_,T9a,R9a,S9a,W9a,X9a,Y9a,Z9a,$9a,
R_,a$a,V9a,Q9a,T_,b$a,M9a,c$a,U_,e$a,f$a,g$a,d$a,V_,j$a,i$a,m$a,l$a,k$a,n$a,o$a,W_,p$a,q$a,u$a,r$a,s$a,t$a,v$a,w$a,x$a,z$a,y$a,A$a,B$a,C$a,E$a,G$a,F$a,H$a,D$a,I$a,K$a,M$a,J$a,N$a,O$a,Q$a,P$a,R$a,L$a,$_,S$a,T$a,U$a,W$a,Y$a,Z$a,aab,bab,dab,cab,eab,hab,gab,iab,jab,kab,mab,lab,pab,d0,YY,nab,oab,qab,g0,sab,rab,tab,vab,wab,zab,xab,Cab,h0,yab,Dab,i0,Fab,k0,m0,Gab,j0,Hab,n0,Kab,Jab,Eab,Lab,Mab,l0,Nab,o0,Oab,Iab,fab,f0,ZY,Qab,W3a,V3a,Rab,X3a,Sab,Uab,q0,Vab,Xab,Yab,Zab,Wab,$ab,abb,r0,bbb,cbb,dbb,ebb,s0,WCa,
fbb,gbb,hbb,u0,kbb,lbb,w0,mbb,nbb,jbb,v0,t0,ibb,z0,y0,obb,A0,x0,sbb,ubb,wbb,xbb,zbb,qbb,vbb,Abb,rbb,Bbb,Cbb,Ebb,B0,Fbb,Dbb,C0,Hbb,Ibb,tbb,Gbb,Jbb,ybb,pbb,E0,Pbb,Mbb,Qbb,Nbb,Lbb,Rbb,Kbb,Ubb,F0,Vbb,Xbb,qL,Zbb,acb,bcb,ccb,J0,dcb,n3a,fcb,K0,Y_,gcb,icb,ecb,CY,D0,jcb,kcb,P0,v8a,$bb,O0,G0,ncb,ocb,qcb,pcb,hcb,M0,rcb,R0,scb,Q2a,ucb,tcb,f9a,X_,vcb,X2a,wcb,w3a,ZWa,L0,xcb,zcb,ycb,O2a,Acb,Ccb,mcb,Ybb,Ecb,Dcb,N0,H0,Fcb,S0,yY,Hcb,Icb,t3a,Jcb,Kcb,Lcb,N2a,Q0,I_,Mcb,Xcb,Scb,$cb,Rcb,adb,Qcb,U0,DY,fdb,bdb,ddb,cdb,hdb,
X0,Y0,kdb,jdb,idb,$0,Wcb,e1,mdb,d1,Z0,odb,rdb,sdb,Tcb,pdb,h1,tdb,Vcb,b1,ldb,a1,wdb,W0,xdb,zdb,Adb,ydb,k1,ndb,l1,m1,Bdb,c1,gdb,vdb,udb,Cdb,Ddb,Edb,qdb,Fdb,f1,Gdb,g1,Hdb,Jdb,V0,n1,edb,Kdb,Ldb,Ucb,j1,i1,Mdb,t4a,Ndb,Odb,Pdb,o1,p1,Sdb,Vdb,Xdb,Rdb,eeb,feb,geb,heb,ieb,jeb,keb,meb,leb,q1,r1,oeb,peb,s1,pDa,neb,ZCa,reb,qeb,t1,teb,seb,ueb,u1,v1,w1,x1,YM,veb,cN,OGa,web,qFa,xeb,IL,JL,y1,yeb,zeb,z1,Beb,Ceb,A1,C1,D1,Feb,Geb,E1,Heb,Deb,Eeb,Ieb,Jeb,Keb,Leb,F1,Meb,nBa,PL,Neb,Oeb,rBa,nK,Peb,Qeb,Reb,G1,Ueb,Teb,Veb,H1,
I1,Web,Xeb,B1,Yeb,Zeb,$eb,J1,K1,afb,L1,M1,bfb,N1,O1,cfb,P1,Q1,dfb,efb,uDa,R1,ffb,hfb,gfb,S1,ifb,T1,U1,jfb,kfb,lfb,mfb,nfb,ofb,pfb,rfb,W1,qfb,sfb,tfb,ufb,vfb,zfb,wfb,xfb,yfb,Bfb,Dfb,Efb,Ffb,Cfb,X1,Gfb,Hfb,Ifb,Jfb,Kfb,Z1,Lfb,$1,a2,b2,Mfb,Nfb,Pfb,Qfb,Rfb,Sfb,Ufb,Tfb,Vfb,c2,d2,Yfb,Wfb,Xfb,e2,$fb,agb,f2,g2,bgb,h2,dgb,i2,egb,fgb,ggb,j2,k2,l2,hgb,igb,jgb,mgb,lgb,m2,ngb,ogb,pgb,OEa,kgb,qgb,tgb,ugb,wgb,aaa,la;da=function(a){return function(){return aaa[a].apply(this,arguments)}};
g.fa=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");};
ma=function(a,b){if(b)a:{var c=g.ha;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&&la(c,a,{configurable:!0,writable:!0,value:b})}};
daa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
oa=function(a){return a.raw=a};
g.u=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return{next:baa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");};
eaa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.pa=function(a){return a instanceof Array?a:eaa(g.u(a))};
qa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.w=function(a,b){a.prototype=faa(b.prototype);a.prototype.constructor=a;if(ra)ra(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Uf=b.prototype};
ua=function(){this.N=!1;this.D=null;this.B=void 0;this.j=1;this.G=this.K=0;this.Y=this.C=null};
wa=function(a){if(a.N)throw new TypeError("Generator is already running");a.N=!0};
za=function(a,b){a.C={yW:b,iY:!0};a.j=a.K||a.G};
g.z=function(a,b,c){a.j=c;return{value:b}};
g.Aa=function(a){a.j=0};
g.Ba=function(a,b,c){a.K=b;void 0!=c&&(a.G=c)};
g.Ca=function(a,b){a.j=b;a.K=0};
g.Da=function(a){a.K=0;var b=a.C.yW;a.C=null;return b};
g.Ea=function(a){a.Y=[a.C];a.K=0;a.G=0};
g.Fa=function(a,b){var c=a.Y.splice(0)[0];(c=a.C=a.C||c)?c.iY?a.j=a.K||a.G:void 0!=c.Ka&&a.G<c.Ka?(a.j=c.Ka,a.C=null):a.j=a.G:a.j=b};
gaa=function(a){this.j=new ua;this.B=a};
haa=function(a,b){wa(a.j);var c=a.j.D;if(c)return Ga(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return Ha(a)};
Ga=function(a,b,c,d){try{var e=b.call(a.j.D,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.N=!1,e;var f=e.value}catch(h){return a.j.D=null,za(a.j,h),Ha(a)}a.j.D=null;d.call(a.j,f);return Ha(a)};
Ha=function(a){for(;a.j.j;)try{var b=a.B(a.j);if(b)return a.j.N=!1,{value:b.value,done:!1}}catch(c){a.j.B=void 0,za(a.j,c)}a.j.N=!1;if(a.j.C){b=a.j.C;a.j.C=null;if(b.iY)throw b.yW;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
iaa=function(a){this.next=function(b){wa(a.j);a.j.D?b=Ga(a,a.j.D.next,b,a.j.Z):(a.j.Z(b),b=Ha(a));return b};
this.throw=function(b){wa(a.j);a.j.D?b=Ga(a,a.j.D["throw"],b,a.j.Z):(za(a.j,b),b=Ha(a));return b};
this.return=function(b){return haa(a,b)};
this[Symbol.iterator]=function(){return this}};
jaa=function(a){function b(d){return a.next(d)}
function c(d){return a.throw(d)}
return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
f(a.next())})};
g.H=function(a){return jaa(new iaa(new gaa(a)))};
g.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};
kaa=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,iL:f}}return{i:-1,iL: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+""};
Pa=function(a){return a?a:Array.prototype.fill};
Qa=function(a){return a?a:Array.prototype.copyWithin};
laa=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length-1;0<=d;d--){var e=a[d];if(b.call(c,e,d,a))return{i:d,iL:e}}return{i:-1,iL:void 0}};
Ra=function(a){return a?a:function(b,c){return laa(this,b,c).i}};
g.Va=function(a,b,c){a=a.split(".");c=c||g.Sa;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};
Ya=function(a,b){var c=g.Wa("CLOSURE_FLAGS");a=c&&c[a];return null!=a?a:b};
g.Wa=function(a,b){a=a.split(".");b=b||g.Sa;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
$a=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.ab=function(a){var b=$a(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.bb=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.fb=function(a){return Object.prototype.hasOwnProperty.call(a,eb)&&a[eb]||(a[eb]=++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.ib=function(a,b,c){g.ib=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?naa:oaa;return g.ib.apply(null,arguments)};
g.jb=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.kb=function(){return Date.now()};
g.ob=function(a,b){function c(){}
c.prototype=b.prototype;a.Uf=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
pb=function(a){return a};
paa=function(a){this.j=a};
sb=function(a,b,c){this.D=a;this.C=b;this.fields=c||[];this.j=new Map};
tb=function(a,b){sb.call(this,a,3,b)};
ub=function(a,b){sb.call(this,a,2,b)};
g.vb=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.xb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.ab(d)?g.xb.apply(null,d):g.vb(d)}};
g.I=function(){this.Yx=this.Yx;this.fn=this.fn};
g.N=function(a,b){a.addOnDisposeCallback(g.jb(g.vb,b))};
yb=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,yb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)};
zb=function(a,b){var c=yb.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(yb,this,d+a[e])};
qaa=function(){};
g.Ab=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.B=!1};
g.Bb=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=Cb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
Cb=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.Ib=function(a,b){b=saa(a,b);var c;(c=0<=b)&&g.Hb(a,b);return c};
g.Hb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.Jb=function(a,b){b=Cb(a,b);0<=b&&g.Hb(a,b)};
uaa=function(a,b){var c=0;raa(a,function(d,e){b.call(void 0,d,e,a)&&g.Hb(a,e)&&c++})};
g.Kb=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.Mb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.ab(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.Rb=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.bb(e)?"o"+g.fb(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.Tb=function(a,b,c){return waa(a,c||Sb,!1,b)};
Vb=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.Xb=function(a,b){a.sort(b||Sb)};
xaa=function(a,b){var c=Sb;g.Xb(a,function(d,e){return c(b(d),b(e))})};
g.Zb=function(a,b){if(!g.ab(a)||!g.ab(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};
Sb=function(a,b){return a>b?1:a<b?-1:0};
yaa=function(a,b){return a===b};
g.$b=function(a,b,c){c=g.Tb(a,b,c);0>c&&g.Rb(a,-(c+1),0,b)};
g.cc=function(a,b,c){var d={};(0,g.bc)(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.Wa("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.Sa.$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,dc[c])c=dc[c];else{c=String(c);if(!dc[c]){var f=/function\s+([^\(]+)/m.exec(c);dc[c]=f?f[1]:"[Anonymous]"}c=dc[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"}}return{message:a.message,
name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:b}};
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};
ec=function(a,b){return 0==a.lastIndexOf(b,0)};
Eaa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.fc=function(a){return/^[\s\xa0]*$/.test(a)};
hc=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.oc=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.pc=function(){var a=g.Sa.navigator;return a&&(a=a.userAgent)?a:""};
wc=function(a){return rc||sc?tc?tc.brands.some(function(b){return(b=b.brand)&&g.ic(b,a)}):!1:!1};
xc=function(a){return g.ic(g.pc(),a)};
yc=function(){return rc||sc?!!tc&&0<tc.brands.length:!1};
Ac=function(){return yc()?!1:xc("Opera")};
Bc=function(){return yc()?!1:xc("Trident")||xc("MSIE")};
Cc=function(){return yc()?!1:xc("Edge")};
Maa=function(){return yc()?wc("Microsoft Edge"):xc("Edg/")};
Dc=function(){return xc("Firefox")||xc("FxiOS")};
Gc=function(){return xc("Safari")&&!(Fc()||(yc()?0:xc("Coast"))||Ac()||Cc()||Maa()||(yc()?wc("Opera"):xc("OPR"))||Dc()||xc("Silk")||xc("Android"))};
Fc=function(){return yc()?wc("Chromium"):(xc("Chrome")||xc("CriOS"))&&!Cc()||xc("Silk")};
Naa=function(){return xc("Android")&&!(Fc()||Dc()||Ac()||xc("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.pc();if("Internet Explorer"===a){if(Bc())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(Ac())return b(["Version","Opera"]);if(yc()?wc("Opera"):xc("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Cc())return b(["Edge"]);if(Maa())return b(["Edg"]);break;case "Chromium":if(Fc())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Dc()||"Safari"===a&&Gc()||"Android Browser"===a&&Naa()||"Silk"===a&&xc("Silk")?(b=c[2])&&b[1]||"":""};
Qaa=function(a){if(yc()&&"Silk"!==a){var b=tc.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])};
Hc=function(){return rc||sc?!!tc&&!!tc.platform:!1};
Raa=function(){return Hc()?"Android"===tc.platform:xc("Android")};
Mc=function(){return xc("iPhone")&&!xc("iPod")&&!xc("iPad")};
Nc=function(){return Mc()||xc("iPad")||xc("iPod")};
Oc=function(){return Hc()?"macOS"===tc.platform:xc("Macintosh")};
Saa=function(){return Hc()?"Windows"===tc.platform:xc("Windows")};
Qc=function(a){Qc[" "](a);return a};
Rc=function(a,b){try{return Qc(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.Sa.document;return a?a.documentMode:void 0};
g.Tc=function(a){return Uaa(a,function(){return 0<=g.oc(Sc,a)})};
g.Uc=function(a){return Number(Waa)>=a};
Xaa=function(a){return g.Vc?"webkit"+a:a.toLowerCase()};
Xc=function(a,b){g.Ab.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.j=null;a&&this.init(a,b)};
Yc=function(a){return!(!a||!a[Yaa])};
$aa=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Id=e;this.key=++Zaa;this.removed=this.fH=!1};
ad=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Id=null};
g.bd=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.cd=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
dd=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.ed=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
aba=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.fd=function(a){for(var b in a)return b};
bba=function(a){for(var b in a)return a[b]};
g.gd=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.id=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.jd=function(a,b){return null!==a&&b in a};
g.kd=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
ld=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
cba=function(a,b){return(b=ld(a,b))&&a[b]};
g.md=function(a){for(var b in a)return!1;return!0};
g.dba=function(a){for(var b in a)delete a[b]};
g.nd=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.od=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0};
g.pd=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.qd=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();if("undefined"!==typeof Map&&a instanceof Map)return new Map(a);if("undefined"!==typeof Set&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var b=Array.isArray(a)?[]:"function"!==typeof ArrayBuffer||"function"!==typeof ArrayBuffer.isView||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.qd(a[c]);return b};
g.rd=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<eba.length;f++)c=eba[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
sd=function(a){this.src=a;this.listeners={};this.j=0};
g.td=function(a,b){var c=b.type;c in a.listeners&&g.Ib(a.listeners[c],b)&&(ad(b),0==a.listeners[c].length&&(delete a.listeners[c],a.j--))};
zd=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.Id==d)return e}return-1};
g.Bd=function(a,b,c,d,e){if(d&&d.once)return Ad(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.Bd(a,b[f],c,d,e);return null}c=Cd(c);return Yc(a)?a.Ta(b,c,g.bb(d)?!!d.capture:!!d,e):fba(a,b,c,!1,d,e)};
fba=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.bb(e)?!!e.capture:!!e,l=Dd(a);l||(a[Ed]=l=new sd(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=gba();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)hba||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(iba(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");jba++;return c};
gba=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=kba;return a};
Ad=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)Ad(a,b[f],c,d,e);return null}c=Cd(c);return Yc(a)?a.YI(b,c,g.bb(d)?!!d.capture:!!d,e):fba(a,b,c,!0,d,e)};
lba=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)lba(a,b[f],c,d,e);else d=g.bb(d)?!!d.capture:!!d,c=Cd(c),Yc(a)?a.Tc(b,c,d,e):a&&(a=Dd(a))&&(b=a.ED(b,c,d,e))&&Fd(b)};
Fd=function(a){if("number"!==typeof a&&a&&!a.removed){var b=a.src;if(Yc(b))g.td(b.Zl,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(iba(c),d):b.addListener&&b.removeListener&&b.removeListener(d);jba--;(c=Dd(b))?(g.td(c,a),0==c.j&&(c.src=null,b[Ed]=null)):ad(a)}}};
iba=function(a){return a in Id?Id[a]:Id[a]="on"+a};
kba=function(a,b){if(a.removed)a=!0;else{b=new Xc(b,this);var c=a.listener,d=a.Id||a.src;a.fH&&Fd(a);a=c.call(d,b)}return a};
Dd=function(a){a=a[Ed];return a instanceof sd?a:null};
Cd=function(a){if("function"===typeof a)return a;a[Kd]||(a[Kd]=function(b){return a.handleEvent(b)});
return a[Kd]};
g.Ld=function(){g.I.call(this);this.Zl=new sd(this);this.l5=this;this.RQ=null};
Md=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.Id||h.src;h.fH&&g.td(a.Zl,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Nd=function(a,b){this.C=a;this.D=b;this.B=0;this.j=null};
mba=function(a,b){a.D(b);100>a.B&&(a.B++,b.next=a.j,a.j=b)};
Rd=function(a){return function(){return a}};
g.Sd=function(){};
nba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Td=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
Ud=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
oba=function(a,b){var c=0;return function(d){g.Sa.clearTimeout(c);var e=arguments;c=g.Sa.setTimeout(function(){a.apply(b,e)},50)}};
Yd=function(){if(void 0===Vd){var a=null,b=g.Sa.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:pb,createScript:pb,createScriptURL:pb})}catch(c){g.Sa.console&&g.Sa.console.error(c.message)}Vd=a}else Vd=a}return Vd};
g.Zd=function(a,b){this.r0=a===pba&&b||"";this.Z4=qba};
$d=function(a){return a instanceof g.Zd&&a.constructor===g.Zd&&a.Z4===qba?a.r0:"type_error:Const"};
ae=function(a){return new g.Zd(pba,a)};
g.be=function(a){this.o_=a};
g.ee=function(a){return a instanceof g.be&&a.constructor===g.be?a.o_:"type_error:TrustedResourceUrl"};
fe=function(a){var b=Yd();a=b?b.createScriptURL(a):a;return new g.be(a,rba)};
g.ge=function(a){this.n_=a};
g.ke=function(a){return a instanceof g.ge&&a.constructor===g.ge?a.n_:"type_error:SafeUrl"};
uba=function(a){if(a instanceof g.ge)return a;a=String(a);sba.test(a)?a=new g.ge(a,le):(a=String(a).replace(/(%0A|%0D)/g,""),a=a.match(tba)?new g.ge(a,le):null);return a};
g.me=function(a){this.m_=a};
ne=function(a){return a instanceof g.me&&a.constructor===g.me?a.m_:"type_error:SafeStyle"};
Bba=function(a){if(a instanceof g.ge)return'url("'+g.ke(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof g.Zd)a=$d(a);else{a=String(a);var b=a.replace(vba,"$1").replace(vba,"$1").replace(wba,"url");if(xba.test(b)){if(b=!yba.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&&zba(a)}a=b?Aba(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new zb("Value does not allow [{;}], got: %s.",[a]);return a};
zba=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};
Aba=function(a){return a.replace(wba,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=(uba(d)||Cba).toString();return c+f+b+f+e})};
g.oe=function(a){this.l_=a};
g.pe=function(a){return a instanceof g.oe&&a.constructor===g.oe?a.l_:"type_error:SafeHtml"};
Eba=function(a){function b(e){Array.isArray(e)?e.forEach(b):(e=e instanceof g.oe?e:g.te(hc(String(e))),d.push(g.pe(e).toString()))}
var c=Dba;c=c instanceof g.oe?c:g.te(hc(String(c)));var d=[];a.forEach(b);return g.te(d.join(g.pe(c).toString()))};
Fba=function(a){return Eba(Array.prototype.slice.call(arguments))};
g.te=function(a){var b=Yd();a=b?b.createHTML(a):a;return new g.oe(a,Gba)};
ve=function(a){this.Ke=a};
we=function(a){return new ve(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
Iba=function(a,b){b=void 0===b?Hba:b;if(a instanceof g.ge)return a;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof ve&&d.Ke(a))return new g.ge(a,le)}};
g.ye=function(a,b){b=void 0===b?Hba:b;return Iba(a,b)||g.xe};
ze=function(a){a instanceof g.ge?a=g.ke(a):a=Jba.test(a)?a:void 0;return a};
Kba=function(){};
Be=function(a){this.j=a};
Ce=function(){};
Lba=function(a){var b=Yd();a=b?b.createScript(a):a;b=new Ce;b.p_=a;return b};
Mba=function(a){return ne(a)};
Nba=function(a){var b=g.Ia.apply(1,arguments);if(0===b.length)return fe(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return fe(c)};
Oba=function(a){for(var b=g.Ia.apply(1,arguments),c=a[0],d=0;d<a.length-1;d++)c+=String(b[d])+a[d+1];if(/[<>]/.test(c))throw Error("Forbidden characters in style string: "+c);return new g.me(c,Ge)};
g.Qba=function(a,b){if(Pba())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.pe(b)};
Sba=function(a,b,c,d){a=Rba(a);b=b||g.Sa;c=c instanceof g.Zd?$d(c):c||"";return void 0!==d?b.open(a,c,d):b.open(a,c)};
Rba=function(a){a=ze(a);return void 0!==a?a:g.xe.toString()};
g.He=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Ie=function(a,b){a%=b;return 0>a*b?a+b:a};
Je=function(a,b,c){return a+c*(b-a)};
g.Ke=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
Ne=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Oe=function(a,b){this.width=a;this.height=b};
g.Re=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
g.Se=function(a,b){b=ze(b);void 0!==b&&(a.href=b)};
Tba=function(a,b,c,d){if(0===a.length)throw Error("");a=a.map(function(f){if(f instanceof Be)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)};
Te=function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);};
g.Ue=function(a,b,c){var d=window;a=ze(a);return void 0!==a?d.open(a,b,c):null};
Ve=function(a){var b,c;return(a=null==(c=(b=a.document).querySelector)?void 0:c.call(b,"script[nonce]"))?a.nonce||a.getAttribute("nonce")||"":""};
Uba=function(a){var b=Ve(a.ownerDocument&&a.ownerDocument.defaultView||window);b&&a.setAttribute("nonce",b)};
Vba=function(a,b){if(b instanceof Ce)b=b.p_;else throw Error("");a.textContent=b;Uba(a)};
g.We=function(a,b){a.src=g.ee(b);Uba(a)};
Wba=function(a,b){return a.parseFromString(g.pe(b),"text/xml")};
g.Ye=function(a){return encodeURIComponent(String(a))};
Ze=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.$e=function(a){return a=hc(a)};
g.gf=function(a){return null==a?"":String(a)};
hf=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
jf=function(a){var b=Number(a);return 0==b&&g.fc(a)?NaN:b};
Xba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
Yba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Zba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
$ba=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};
vf=function(a){return a?new kf(mf(a)):aca||(aca=new kf)};
wf=function(a,b){return"string"===typeof b?a.getElementById(b):b};
g.xf=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.zf=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.yf(document,"*",a,b)};
g.Af=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.yf(c,"*",a,b)[0]||null}return a||null};
g.yf=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};
Bf=function(a,b){g.bd(b,function(c,d){"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:bca.hasOwnProperty(d)?a.setAttribute(bca[d],c):ec(d,"aria-")||ec(d,"data-")?a.setAttribute(d,c):a[d]=c})};
cca=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.Oe(a.clientWidth,a.clientHeight)};
eca=function(a){var b=dca(a);a=a.parentWindow||a.defaultView;return g.Cf&&a.pageYOffset!=b.scrollTop?new g.Ke(b.scrollLeft,b.scrollTop):new g.Ke(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
dca=function(a){return a.scrollingElement?a.scrollingElement:g.Vc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
Df=function(a){return a?a.parentWindow||a.defaultView:window};
Hf=function(a,b,c){var d=arguments,e=document,f=d[1],h=Gf(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):Bf(h,f));2<d.length&&fca(e,h,d,2);return h};
fca=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.ab(f)||g.bb(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.bb(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.bc(h?g.Lb(f):f,e)}}};
g.If=function(a){return Gf(document,a)};
Gf=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.Nf=function(a){return document.createTextNode(String(a))};
g.Of=function(a,b){a.appendChild(b)};
g.Pf=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
Qf=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Rf=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
g.Sf=function(a){var b;if(gca&&(b=a.parentElement))return b;b=a.parentNode;return g.bb(b)&&1==b.nodeType?b:null};
g.Uf=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};
mf=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Vf=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.Pf(a),a.appendChild(mf(a).createTextNode(String(b)))};
Wf=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")||hca(a)):a.hasAttribute("tabindex")&&hca(a))&&g.Cf){var c;"function"!==typeof a.getBoundingClientRect||g.Cf&&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};
hca=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
ag=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return $f(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Fb(e.className.split(/\s+/),c))},!0)};
$f=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
kf=function(a){this.j=a||g.Sa.document||document};
cg=function(a){"function"!==typeof g.Sa.setImmediate||g.Sa.Window&&g.Sa.Window.prototype&&!Cc()&&g.Sa.Window.prototype.setImmediate==g.Sa.setImmediate?(bg||(bg=ica()),bg(a)):g.Sa.setImmediate(a)};
ica=function(){var a=g.Sa.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!xc("Presto")&&(a=function(){var e=g.If("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.ib)(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&&!Bc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.MV;c.MV=null;e()}};
return function(e){d.next={MV:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.Sa.setTimeout(e,0)}};
dg=function(a){g.Sa.setTimeout(function(){throw a;},0)};
eg=function(){this.B=this.j=null};
fg=function(){this.next=this.scope=this.Ls=null};
g.ig=function(a,b){gg||jca();hg||(gg(),hg=!0);kca.add(a,b)};
jca=function(){if(g.Sa.Promise&&g.Sa.Promise.resolve){var a=g.Sa.Promise.resolve(void 0);gg=function(){a.then(lca)}}else gg=function(){cg(lca)}};
lca=function(){for(var a;a=kca.remove();){try{a.Ls.call(a.scope)}catch(b){dg(b)}mba(mca,a)}hg=!1};
g.kg=function(a){this.j=0;this.N=void 0;this.D=this.B=this.C=null;this.G=this.K=!1;if(a!=g.Sd)try{var b=this;a.call(void 0,function(c){jg(b,2,c)},function(c){jg(b,3,c)})}catch(c){jg(this,3,c)}};
nca=function(){this.next=this.context=this.B=this.C=this.j=null;this.D=!1};
lg=function(a,b,c){var d=oca.get();d.C=a;d.B=b;d.context=c;return d};
mg=function(a){if(a instanceof g.kg)return a;var b=new g.kg(g.Sd);jg(b,2,a);return b};
tg=function(a){return new g.kg(function(b,c){c(a)})};
g.qca=function(a,b,c){pca(a,b,c,null)||g.ig(g.jb(b,a))};
rca=function(a){return new g.kg(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.qca(e,b,c)})};
tca=function(){var a,b,c=new g.kg(function(d,e){a=d;b=e});
return new sca(c,a,b)};
vg=function(a,b){b=lg(b,b);b.D=!0;ug(a,b);return a};
uca=function(a,b){if(0==a.j)if(a.C){var c=a.C;if(c.B){for(var d=0,e=null,f=null,h=c.B;h&&(h.D||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.j&&1==d?uca(c,b):(f?(d=f,d.next==c.D&&(c.D=d),d.next=d.next.next):vca(c),wca(c,e,3,b)))}a.C=null}else jg(a,3,b)};
ug=function(a,b){a.B||2!=a.j&&3!=a.j||xca(a);a.D?a.D.next=b:a.B=b;a.D=b};
yca=function(a,b,c,d){var e=lg(null,null,null);e.j=new g.kg(function(f,h){e.C=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.B=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof wg?h(l):f(m)}catch(n){h(n)}}:h});
e.j.C=a;ug(a,e);return e.j};
jg=function(a,b,c){0==a.j&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,pca(c,a.oda,a.pda,a)||(a.N=c,a.j=b,a.C=null,xca(a),3!=b||c instanceof wg||zca(a,c)))};
pca=function(a,b,c,d){if(a instanceof g.kg)return ug(a,lg(b||g.Sd,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.bb(a))try{var f=a.then;if("function"===typeof f)return Aca(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
Aca=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)}};
xca=function(a){a.K||(a.K=!0,g.ig(a.G6,a))};
vca=function(a){var b=null;a.B&&(b=a.B,a.B=b.next,b.next=null);a.B||(a.D=null);return b};
wca=function(a,b,c,d){if(3==c&&b.B&&!b.D)for(;a&&a.G;a=a.C)a.G=!1;if(b.j)b.j.C=null,Bca(b,c,d);else try{b.D?b.C.call(b.context):Bca(b,c,d)}catch(e){Cca.call(null,e)}mba(oca,b)};
Bca=function(a,b,c){2==b?a.C.call(a.context,c):a.B&&a.B.call(a.context,c)};
zca=function(a,b){a.G=!0;g.ig(function(){a.G&&Cca.call(null,b)})};
wg=function(a){yb.call(this,a)};
sca=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};
g.xg=function(a,b){g.Ld.call(this);this.gj=a||1;this.jG=b||g.Sa;this.GV=(0,g.ib)(this.Yca,this);this.vY=g.kb()};
g.yg=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.ib)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.ib)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.Sa.setTimeout(a,b||0)};
zg=function(a,b){var c=null;return(new g.kg(function(d,e){c=g.yg(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).Al(function(d){g.Sa.clearTimeout(c);
throw d;})};
g.Ag=function(a){g.I.call(this);this.N=a;this.C=0;this.D=100;this.G=!1;this.B=new Map;this.K=new Set;this.flushInterval=3E4;this.j=new g.xg(this.flushInterval);this.j.Ta("tick",this.Kr,!1,this);g.N(this,this.j)};
Dca=function(a){a.j.enabled||a.j.start();a.C++;a.C>=a.D&&a.Kr()};
Eca=function(a,b){return a.K.has(b)?void 0:a.B.get(b)};
Fca=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
Gca=function(a){this.j=a;this.j.Kh("/client_streamz/bg/fic",{Pc:3,Oc:"ke"})};
Hca=function(a){this.j=a;this.j.Kh("/client_streamz/bg/fiec",{Pc:3,Oc:"rk"},{Pc:3,Oc:"ke"},{Pc:2,Oc:"ec"},{Pc:3,Oc:"em"})};
Ica=function(a){this.j=a;this.j.Ru("/client_streamz/bg/fil",{Pc:3,Oc:"rk"},{Pc:3,Oc:"ke"})};
Jca=function(a){this.j=a;this.j.Kh("/client_streamz/bg/fcc",{Pc:2,Oc:"ph"},{Pc:3,Oc:"ke"})};
Kca=function(a){this.j=a;this.j.Ru("/client_streamz/bg/fcd",{Pc:2,Oc:"ph"},{Pc:3,Oc:"ke"})};
Lca=function(a){this.j=a;this.j.Kh("/client_streamz/bg/fsc",{Pc:3,Oc:"rk"},{Pc:3,Oc:"ke"})};
Mca=function(a){this.j=a;this.j.Ru("/client_streamz/bg/fsl",{Pc:3,Oc:"rk"},{Pc:3,Oc:"ke"})};
Nca=function(a){this.j=a;this.j.Ru("/client_streamz/bg/wrl",{Pc:3,Oc:"mn"},{Pc:2,Oc:"ac"},{Pc:2,Oc:"sc"},{Pc:3,Oc:"rk"})};
Oca=function(a){this.j=a;this.j.Ru("/client_streamz/bg/el",{Pc:3,Oc:"en"},{Pc:3,Oc:"rk"})};
Pca=function(a){this.j=a;this.j.Kh("/client_streamz/bg/cec",{Pc:2,Oc:"ec"},{Pc:3,Oc:"rk"})};
Qca=function(a){this.j=a;this.j.Kh("/client_streamz/bg/po/csc",{Pc:2,Oc:"cs"},{Pc:3,Oc:"rk"})};
Rca=function(a){this.j=a;this.j.Kh("/client_streamz/bg/po/ctav",{Pc:3,Oc:"av"},{Pc:3,Oc:"rk"})};
Sca=function(a){this.j=a;this.j.Kh("/client_streamz/bg/po/cwsc",{Pc:3,Oc:"su"},{Pc:3,Oc:"rk"})};
Tca=function(a){this.j=a;this.j.Ru("/client_streamz/po/w/rl",{Pc:3,Oc:"mn"},{Pc:2,Oc:"ac"},{Pc:2,Oc:"sc"},{Pc:3,Oc:"rk"})};
Uca=function(a){this.j=a;this.j.Ru("/client_streamz/po/w/el",{Pc:3,Oc:"en"},{Pc:3,Oc:"rk"})};
Vca=function(a){this.j=a;this.j.Kh("/client_streamz/po/w/cec",{Pc:2,Oc:"ec"},{Pc:3,Oc:"rk"})};
Wca=function(a){this.j=a;this.j.Kh("/client_streamz/po/w/csc",{Pc:2,Oc:"cs"},{Pc:3,Oc:"rk"})};
Xca=function(a){this.j=a;this.j.Kh("/client_streamz/po/w/ctav",{Pc:3,Oc:"av"},{Pc:3,Oc:"rk"})};
Yca=function(a){this.j=a;this.j.Kh("/client_streamz/po/w/cwsc",{Pc:3,Oc:"su"},{Pc:3,Oc:"rk"})};
Bg=function(){throw Error("Invalid UTF8");};
Zca=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
cda=function(a){var b=!1;b=void 0===b?!1:b;if($ca){if(b&&(ada?!a.B8():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("Found an unpaired surrogate");a=(bda||(bda=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};
dda=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
eda=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.Cg=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.Dg=function(a,b){void 0===b&&(b=0);fda();b=gda[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.Eg=function(a,b){if(hda&&!b)a=g.Sa.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.Dg(c,b)}return a};
jda=function(a){var b=[];ida(a,function(c){b.push(c)});
return b};
Fg=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;ida(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
ida=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Lg[n];if(null!=p)return p;if(!g.fc(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
fda();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))}};
fda=function(){if(!Lg){Lg={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));gda[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Lg[f]&&(Lg[f]=e)}}}};
lda=function(a){if(!kda)return g.Dg(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)};
nda=function(a){return mda[a]||""};
pda=function(a){if(!kda)return Fg(a);oda.test(a)&&(a=a.replace(oda,nda));a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
Mg=function(a){return qda&&null!=a&&a instanceof Uint8Array};
Ng=function(){return rda||(rda=new Uint8Array(0))};
sda=function(a){if(a!==Og)throw Error("illegal external caller");};
Pg=function(a,b){sda(b);this.j=a;if(null!=a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
Qg=function(){return tda||(tda=new Pg(null,Og))};
uda=function(a){var b=a.j;return null==b?"":"string"===typeof b?b:a.j=lda(b)};
Sg=function(a){return(a=Rg(a))?new Uint8Array(a):Ng()};
Rg=function(a){sda(Og);var b=a.j;b=null==b||Mg(b)?b:"string"===typeof b?pda(b):null;return null==b?b:a.j=b};
vda=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
Tg=function(){return Error("Failed to read varint, encoding is invalid.")};
wda=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
Ug=function(a){if("string"===typeof a)return{buffer:pda(a),Vv:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Vv:!1};if(a.constructor===Uint8Array)return{buffer:a,Vv:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Vv:!1};if(a.constructor===Pg)return{buffer:Rg(a)||Ng(),Vv:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Vv:!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");
};
Vg=function(){return"function"===typeof BigInt};
Zg=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.u(Wg(c,a)),b=c.next().value,a=c.next().value,c=b);Xg=c>>>0;Yg=a>>>0};
xda=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=4294967296*b+(a>>>0);return c?-a:a};
$g=function(a,b){b>>>=0;a>>>=0;if(2097151>=b)var c=""+(4294967296*b+a);else Vg()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+6777216*c+6710656*b,c+=8147497*b,b*=2,1E7<=a&&(c+=Math.floor(a/1E7),a%=1E7),1E7<=c&&(b+=Math.floor(c/1E7),c%=1E7),c=b+yda(c)+yda(a));return c};
yda=function(a){a=String(a);return"0000000".slice(a.length)+a};
zda=function(){var a=Xg,b=Yg;b&2147483648?Vg()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=g.u(Wg(a,b)),a=b.next().value,b=b.next().value,a="-"+$g(a,b)):a=$g(a,b);return a};
ah=function(a){if(16>a.length)Zg(Number(a));else if(Vg())a=BigInt(a),Xg=Number(a&BigInt(4294967295))>>>0,Yg=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);Yg=Xg=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)),Yg*=1E6,Xg=1E6*Xg+d,4294967296<=Xg&&(Yg+=Math.trunc(Xg/4294967296),Yg>>>=0,Xg>>>=0);b&&(b=g.u(Wg(Xg,Yg)),a=b.next().value,b=b.next().value,Xg=a,Yg=b)}};
Wg=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
ch=function(a,b){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.init(a,void 0,void 0,b)};
eh=function(a){var b=0,c=0,d=0,e=a.B,f=a.j;do{var h=e[f++];b|=(h&127)<<d;d+=7}while(32>d&&h&128);32<d&&(c|=(h&127)>>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<<d;dh(a,f);if(128>h)return xda(b>>>0,c>>>0);throw Tg();};
dh=function(a,b){a.j=b;if(b>a.C)throw wda(a.C,b);};
uh=function(a){var b=a.B,c=a.j,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw Tg();dh(a,c);return e};
vh=function(a){var b=a.B,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];dh(a,a.j+4);return(d<<0|e<<8|f<<16|b<<24)>>>0};
wh=function(a){var b=vh(a);return 4294967296*vh(a)+(b>>>0)};
xh=function(a){var b=vh(a),c=vh(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)};
yh=function(a){for(var b=0,c=a.j,d=c+10,e=a.B;c<d;){var f=e[c++];b|=f;if(0===(f&128))return dh(a,c),!!(b&127)}throw Tg();};
Ada=function(a,b){if(0>b)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.C)throw wda(b,a.C-c);a.j=d;return c};
Cda=function(a,b){if(0==b)return Qg();var c=Ada(a,b);a.UG&&a.G?c=a.B.subarray(c,c+b):(a=a.B,b=c+b,c=c===b?Ng():Bda?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return 0==c.length?Qg():new Pg(c,Og)};
Ah=function(a,b){if(zh.length){var c=zh.pop();c.init(a,void 0,void 0,b);a=c}else a=new ch(a,b);this.j=a;this.C=this.j.j;this.B=this.D=-1;Dda(this,b)};
Dda=function(a,b){b=void 0===b?{}:b;a.CN=void 0===b.CN?!1:b.CN};
Eda=function(a){var b=a.j;if(b.j==b.C)return!1;a.C=a.j.j;var c=uh(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw vda(c,a.C);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.C+")");a.D=b;a.B=c;return!0};
Bh=function(a){switch(a.B){case 0:0!=a.B?Bh(a):yh(a.j);break;case 1:a=a.j;dh(a,a.j+8);break;case 2:if(2!=a.B)Bh(a);else{var b=uh(a.j)>>>0;a=a.j;dh(a,a.j+b)}break;case 5:a=a.j;dh(a,a.j+4);break;case 3:b=a.D;do{if(!Eda(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.B){if(a.D!=b)throw Error("Unmatched end-group tag");break}Bh(a)}while(1);break;default:throw vda(a.B,a.C);}};
Ch=function(a,b,c){var d=a.j.C,e=uh(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.C=f,c(b,a,void 0,void 0,void 0),h=f-a.j.j);if(h)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-h)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.C=d};
Fh=function(a){var b=uh(a.j)>>>0;a=a.j;var c=Ada(a,b);a=a.B;if(Fda){var d=a,e;(e=Dh)||(e=Dh=new TextDecoder("utf-8",{fatal:!0}));b=c+b;d=0===c&&b===d.length?d:d.subarray(c,b);try{var f=e.decode(d)}catch(n){if(void 0===Eh){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Eh=!0}catch(p){Eh=!1}}!Eh&&(Dh=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?Bg():(m=a[f++],194>l||128!==(m&192)?(f--,Bg()):c.push((l&31)<<6|m&63)):
240>l?f>=b-1?Bg():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((e=a[f++])&192)?(f--,Bg()):c.push((l&15)<<12|(m&63)<<6|e&63)):244>=l?f>=b-2?Bg():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((e=a[f++])&192)||128!==((d=a[f++])&192)?(f--,Bg()):(l=(l&7)<<18|(m&63)<<12|(e&63)<<6|d&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):Bg(),8192<=c.length&&(h=Zca(h,c),c.length=0);f=Zca(h,c)}return f};
Gda=function(a){var b=uh(a.j)>>>0;return Cda(a.j,b)};
Hda=function(a,b){this.B=a>>>0;this.j=b>>>0};
Jda=function(a){if(!a)return Ida||(Ida=new Hda(0,0));if(!/^\d+$/.test(a))return null;ah(a);return new Hda(Xg,Yg)};
Kda=function(a,b){this.B=a>>>0;this.j=b>>>0};
Mda=function(a){if(!a)return Lda||(Lda=new Kda(0,0));if(!/^-?\d+$/.test(a))return null;ah(a);return new Kda(Xg,Yg)};
Gh=function(){this.j=[]};
Nda=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)};
Hh=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
Oda=function(a,b){if(0<=b)Hh(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
Ih=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)};
Pda=function(){this.C=[];this.B=0;this.j=new Gh};
Jh=function(a,b){0!==b.length&&(a.C.push(b),a.B+=b.length)};
Kh=function(a,b,c){Hh(a.j,8*b+c)};
Qda=function(a,b,c){null!=c&&("string"===typeof c&&Jda(c),Kh(a,b,1),"number"===typeof c?(a=a.j,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,Xg=b,Yg=c,Ih(a,Xg),Ih(a,Yg)):(c=Jda(c),a=a.j,b=c.j,Ih(a,c.B),Ih(a,b)))};
Lh=function(a,b,c){Kh(a,b,2);Hh(a.j,c.length);Jh(a,a.j.end());Jh(a,c)};
Mh=function(a,b,c,d){this.oL=a;this.pL=b;this.j=c;this.F1=d};
Nh=function(a){return Array.prototype.slice.call(a)};
Oh=function(a,b,c){return c?a|b:a&~b};
Rda=function(a,b){Ph(b,(a|0)&-14591)};
hi=function(a,b){Ph(b,(a|34)&-14557)};
Sda=function(a){a=a>>14&1023;return 0===a?536870912:a};
Uda=function(a){return!(!a||"object"!==typeof a||a.j!==Tda)};
ii=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
ji=function(a,b,c){if(null!=a)if("string"===typeof a)a=a?new Pg(a,Og):Qg();else if(a.constructor!==Pg)if(Mg(a))a=a.length?new Pg(c?a:new Uint8Array(a),Og):Qg();else{if(!b)throw Error();a=void 0}return a};
li=function(a,b,c){if(!Array.isArray(a)||a.length)return!1;var d=ki(a);if(d&1)return!0;if(!(b&&(Array.isArray(b)?b.includes(c):b.has(c))))return!1;Ph(a,d|1);return!0};
mi=function(a){if(a&2)throw Error();};
Vda=function(a,b){if("number"!==typeof b||0>b||b>=a.length)throw Error();};
Wda=function(a,b){(b=ni?b[ni]:void 0)&&(a[ni]=Nh(b))};
oi=function(a){a=Error(a);a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity="warning";return a};
pi=function(a){if(null!=a&&"number"!==typeof a)throw Error("Value of float/double field must be a number, found "+typeof a+": "+a);return a};
Xda=function(a){if(null==a||"number"===typeof a)return a;if("NaN"===a||"Infinity"===a||"-Infinity"===a)return Number(a)};
Yda=function(a){return a.displayName||a.name||"unknown type name"};
Zda=function(a){if("boolean"!==typeof a)throw Error("Expected boolean but got "+$a(a)+": "+a);return a};
$da=function(a){if(null==a||"boolean"===typeof a)return a;if("number"===typeof a)return!!a};
qi=function(a){var b=typeof a;return"number"===b?Number.isFinite(a):"string"!==b?!1:aea.test(a)};
ri=function(a){if(!Number.isFinite(a))throw oi("enum");return a|0};
si=function(a){return null==a?a:Number.isFinite(a)?a|0:void 0};
bea=function(a){if("number"!==typeof a)throw oi("int32");if(!Number.isFinite(a))throw oi("int32");return a|0};
ti=function(a){return null==a?a:bea(a)};
ui=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if("number"===typeof a)return Number.isFinite(a)?a|0:void 0};
vi=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if("number"===typeof a)return Number.isFinite(a)?a>>>0:void 0};
dea=function(a,b){b=!!b;if(!qi(a))throw oi("int64");return"string"===typeof a?wi(a):b?cea(a):xi(a)};
yi=function(a){return null==a?a:dea(a)};
zi=function(a){return"-"===a[0]?!1:20>a.length?!0:20===a.length&&184467>Number(a.substring(0,6))};
eea=function(a){return"-"===a[0]?20>a.length?!0:20===a.length&&-922337<Number(a.substring(0,7)):19>a.length?!0:19===a.length&&922337>Number(a.substring(0,6))};
fea=function(a){if(0>a){Zg(a);var b=$g(Xg,Yg);a=Number(b);return Number.isSafeInteger(a)?a:b}if(zi(String(a)))return a;Zg(a);return 4294967296*Yg+(Xg>>>0)};
xi=function(a){qi(a);a=Math.trunc(a);Number.isSafeInteger(a)||(Zg(a),a=xda(Xg,Yg));return a};
Ai=function(a){qi(a);a=Math.trunc(a);return 0<=a&&Number.isSafeInteger(a)?a:fea(a)};
cea=function(a){qi(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);eea(b)?a=b:(Zg(a),a=zda())}return a};
wi=function(a){qi(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");-1!==b&&(a=a.substring(0,b));eea(a)||(ah(a),a=zda());return a};
Wi=function(a){qi(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b)&&0<=b)return String(b);b=a.indexOf(".");-1!==b&&(a=a.substring(0,b));zi(a)||(ah(a),a=$g(Xg,Yg));return a};
gea=function(a){if(null==a)return a;if(qi(a)){if("string"===typeof a)return Wi(a);if("number"===typeof a)return Ai(a)}};
hea=function(a){if(null==a||"string"==typeof a||Mg(a)||a instanceof Pg)return a};
Xi=function(a){if("string"!==typeof a)throw Error();return a};
Yi=function(a){if(null!=a&&"string"!==typeof a)throw Error();return a};
Zi=function(a){return null==a||"string"===typeof a?a:void 0};
$i=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Yda(b)+" but got "+(a&&Yda(a.constructor)));return a};
iea=function(a,b,c){if(null!=a&&"object"===typeof a&&a.lJ===aj)return a;if(Array.isArray(a)){var d=ki(a),e=d;0===e&&(e|=c&32);e|=c&2;e!==d&&Ph(a,e);return new b(a)}};
cj=function(a,b){bj=b;a=new a(b);bj=void 0;return a};
ej=function(a){switch(typeof a){case "boolean":return dj||(dj=[0,void 0,!0]);case "number":return 0<a?void 0:0===a?jea||(jea=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}};
O=function(a,b,c){null==a&&(a=bj);bj=void 0;if(null==a){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error();d=ki(a);if(d&2048)throw Error();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;if(ii(c[f])){d|=256;b=f-(+!!(d&512)-1);if(1024<=b)throw Error();d=d&-16760833|(b&1023)<<14;break a}}if(b){b=Math.max(b,e-(+!!(d&512)-1));if(1024<b)throw Error();d=d&-16760833|(b&1023)<<14}}}Ph(a,d);return a};
lea=function(a,b){return kea(b)};
kea=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(li(a,void 0,0))return}else{if(Mg(a))return lda(a);if(a instanceof Pg)return uda(a)}}return a};
mea=function(a,b,c){var d=Nh(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])}Wda(d,a);return d};
nea=function(a,b,c,d,e){if(null!=a){if(Array.isArray(a))a=li(a,void 0,0)?void 0:e&&ki(a)&2?a:fj(a,b,c,void 0!==d,e);else if(ii(a)){var f={},h;for(h in a)f[h]=nea(a[h],b,c,d,e);a=f}else a=b(a,d);return a}};
fj=function(a,b,c,d,e){var f=d||c?ki(a):0;d=d?!!(f&32):void 0;for(var h=Nh(a),l=0;l<h.length;l++)h[l]=nea(h[l],b,c,d,e);c&&(Wda(h,a),c(f,h));return h};
oea=function(a){return a.lJ===aj?a.toJSON():kea(a)};
pea=function(a,b,c){c=void 0===c?hi:c;if(null!=a){if(qda&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=ki(a);if(d&2)return a;b&&(b=0===d||!!(d&32)&&!(d&64||!(d&16)));return b?Ph(a,(d|34)&-12293):fj(a,pea,d&4?hi:c,!0,!0)}a.lJ===aj&&(c=a.ea,d=gj(c),a=d&2?a:cj(a.constructor,hj(c,d,!0)));return a}};
hj=function(a,b,c){var d=c||b&2?hi:Rda,e=!!(b&32);a=mea(a,b,function(f){return pea(f,e,d)});
ij(a,32|(c?2:0));return a};
jj=function(a){var b=a.ea,c=gj(b);return c&2?cj(a.constructor,hj(b,c,!1)):a};
yj=function(a,b){a=a.ea;return kj(a,gj(a),b)};
kj=function(a,b,c,d){if(-1===c)return null;if(c>=Sda(b)){if(b&256)return a[a.length-1][c]}else{var e=a.length;if(d&&b&256&&(d=a[e-1][c],null!=d))return d;b=c+(+!!(b&512)-1);if(b<e)return a[b]}};
Aj=function(a,b,c){var d=a.ea,e=gj(d);mi(e);zj(d,e,b,c);return a};
zj=function(a,b,c,d,e){var f=Sda(b);if(c>=f||e){var h=b;if(b&256)e=a[a.length-1];else{if(null==d)return h;e=a[f+(+!!(b&512)-1)]={};h|=256}e[c]=d;c<f&&(a[c+(+!!(b&512)-1)]=void 0);h!==b&&Ph(a,h);return h}a[c+(+!!(b&512)-1)]=d;b&256&&(a=a[a.length-1],c in a&&delete a[c]);return b};
Bj=function(a,b,c){return void 0!==qea(a,b,c,!1)};
Ej=function(a,b,c,d,e){var f=b&2,h=kj(a,b,c,e);Array.isArray(h)||(h=Cj);var l=!(d&2);d=!(d&1);var m=!!(b&32),n=ki(h);0!==n||!m||f||l?n&1||(n|=1,Ph(h,n)):(n|=33,Ph(h,n));f?(a=!1,n&2||(ij(h,34),a=!!(4&n)),(d||a)&&Object.freeze(h)):(f=!!(2&n)||!!(2048&n),d&&f?(h=Nh(h),d=1,m&&!l&&(d|=32),Ph(h,d),zj(a,b,c,h,e)):l&&n&32&&!f&&Dj(h,32));return h};
Hj=function(a,b,c,d,e,f){a=a.ea;var h=gj(a);d=2&h?1:d;f=!!f;var l=rea(a,h,b,e),m=ki(l);if(!(4&m)){if(4&m||Object.isFrozen(l))l=Nh(l),m=Fj(m,h,f),h=zj(a,h,b,l,e);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=sea(m,h,f);m=Oh(m,20,!0);c=Oh(m,4096,!1);m=c=Oh(c,8192,!1);Ph(l,m);2&m&&Object.freeze(l)}Gj(m)||(c=m,(n=1===d)?m=Oh(m,2,!0):f||(m=Oh(m,32,!1)),m!==c&&Ph(l,m),n&&Object.freeze(l));2===d&&Gj(m)&&(l=Nh(l),m=Fj(m,h,f),Ph(l,m),zj(a,h,b,l,e));return l};
rea=function(a,b,c,d){a=kj(a,b,c,d);return Array.isArray(a)?a:Cj};
sea=function(a,b,c){0===a&&(a=Fj(a,b,c));return a=Oh(a,1,!0)};
Gj=function(a){return!!(2&a)&&!!(4&a)||!!(2048&a)};
tea=function(a){return ji(a,!0,!0)};
uea=function(a){return ji(a,!0,!1)};
Ij=function(a,b){a=a.ea;var c=gj(a),d=kj(a,c,b),e=ji(d,!0,!!(c&34));null!=e&&e!==d&&zj(a,c,b,e);return null==e?Qg():e};
vea=function(a,b,c){var d=a.ea,e=gj(d);mi(e);if(null==b)return zj(d,e,3),a;if(!Array.isArray(b))throw oi();var f=ki(b),h=f,l=!!(2&f)||Object.isFrozen(b),m=!l&&!1;if(!(4&f))for(f=21,l&&(b=Nh(b),h=0,f=Fj(f,e,!0)),l=0;l<b.length;l++)b[l]=c(b[l]);m&&(b=Nh(b),h=0,f=Fj(f,e,!0));f!==h&&Ph(b,f);zj(d,e,3,b);return a};
Jj=function(a,b,c,d){var e=a.ea,f=gj(e);mi(f);zj(e,f,b,("0"===d?0===Number(c):c===d)?void 0:c);return a};
Lj=function(a,b,c,d,e){Kj(a.ea,b,c,d,e);return a};
Kj=function(a,b,c,d,e){var f=gj(a);mi(f);a=Ej(a,f,b,2);b=ki(a);d=c(d,!!(4&b)&&!!(4096&b));void 0!=e?a.splice(e,0,d):a.push(d)};
wea=function(a){return a};
xea=function(a,b,c,d,e,f){mi(gj(a.ea));b=f(a,b,2,void 0,!0);if("number"!==typeof d||0>d||d>b.length)throw Error();f=ki(b);b[d]=c(e,!!(4&f)&&!!(4096&f));return a};
Nj=function(a,b,c,d){var e=a.ea,f=gj(e);mi(f);(c=Mj(e,f,c))&&c!==b&&null!=d&&(f=zj(e,f,c));zj(e,f,b,d);return a};
Oj=function(a,b,c,d){var e=gj(a);mi(e);(c=Mj(a,e,c))&&c!==b&&(e=zj(a,e,c));zj(a,e,b,d)};
Pj=function(a,b,c){a=a.ea;return Mj(a,gj(a),b)===c?c:-1};
Mj=function(a,b,c){for(var d=0,e=0;e<c.length;e++){var f=c[e];null!=kj(a,b,f)&&(0!==d&&(b=zj(a,b,d)),d=f)}return d};
Qj=function(a,b,c,d){var e=gj(a);mi(e);var f=kj(a,e,c,d),h;if(null!=f&&f.lJ===aj)return b=jj(f),b!==f&&zj(a,e,c,b,d),b.ea;if(Array.isArray(f)){var l=ki(f);l&2?h=hj(f,l,!1):h=f;h=O(h,b[0],b[1])}else h=O(void 0,b[0],b[1]);h!==f&&zj(a,e,c,h,d);return h};
qea=function(a,b,c,d){a=a.ea;var e=gj(a),f=kj(a,e,c,d);b=iea(f,b,e);b!==f&&null!=b&&zj(a,e,c,b,d);return b};
g.Rj=function(a,b,c,d){d=void 0===d?!1:d;b=qea(a,b,c,d);if(null==b)return b;a=a.ea;var e=gj(a);if(!(e&2)){var f=jj(b);f!==b&&(b=f,zj(a,e,c,b,d))}return b};
yea=function(a,b,c,d,e,f){var h=!!(2&b),l=h?1:2,m=1===l;l=2===l;e=!!e;f&&(f=!h);h=rea(a,b,d);var n=ki(h),p=!!(4&n);if(!p){n=sea(n,b,e);var q=h,r=b,t;(t=!!(2&n))&&(r=Oh(r,2,!0));for(var v=!t,x=!0,A=0,E=0;A<q.length;A++){var F=iea(q[A],c,r);if(F instanceof c){if(!t){var G=!!(ki(F.ea)&2);v&&(v=!G);x&&(x=G)}q[E++]=F}}E<A&&(q.length=E);n=Oh(n,4,!0);n=Oh(n,16,x);n=Oh(n,8,v);Ph(q,n);t&&Object.freeze(q)}c=!!(8&n)||m&&!h.length;if(f&&!c){Gj(n)&&(h=Nh(h),n=Fj(n,b,e),b=zj(a,b,d,h));f=h;c=n;for(q=0;q<f.length;q++)n=
f[q],r=jj(n),n!==r&&(f[q]=r);c=Oh(c,8,!0);c=Oh(c,16,!f.length);Ph(f,c);n=c}Gj(n)||(f=n,m?n=Oh(n,!h.length||16&n&&(!p||32&n)?2:2048,!0):e||(n=Oh(n,32,!1)),n!==f&&Ph(h,n),m&&Object.freeze(h));l&&Gj(n)&&(h=Nh(h),n=Fj(n,b,e),Ph(h,n),zj(a,b,d,h));return h};
zea=function(a,b){a=a.ea;var c=gj(a);return yea(a,c,b,3,!1,!(2&c))};
Sj=function(a,b,c,d){null!=d?$i(d,b):d=void 0;return Aj(a,c,d)};
Tj=function(a,b,c,d,e){null!=e?$i(e,b):e=void 0;return Nj(a,c,d,e)};
Uj=function(a,b,c,d){var e=a.ea,f=gj(e);mi(f);if(null==d)return zj(e,f,c),a;if(!Array.isArray(d))throw oi();for(var h=ki(d),l=h,m=!!(2&h)||!!(2048&h),n=m||Object.isFrozen(d),p=!n&&!1,q=!0,r=!0,t=0;t<d.length;t++){var v=d[t];$i(v,b);m||(v=!!(ki(v.ea)&2),q&&(q=!v),r&&(r=v))}m||(h=Oh(h,5,!0),h=Oh(h,8,q),h=Oh(h,16,r));if(p||n&&h!==l)d=Nh(d),l=0,h=Fj(h,f,!0);h!==l&&Ph(d,h);zj(e,f,c,d);return a};
Fj=function(a,b,c){a=Oh(a,2,!!(2&b));a=Oh(a,32,!!(32&b)&&c);return a=Oh(a,2048,!1)};
Vj=function(a,b,c,d,e){var f=a.ea,h=gj(f);mi(h);b=yea(f,h,c,b,!0);c=null!=d?$i(d,c):new c;void 0!=e?b.splice(e,void 0,c):b.push(c);ki(c.ea)&2?Dj(b,8):Dj(b,16);return a};
Wj=function(a,b){a=yj(a,b);var c;null==a?c=a:qi(a)?"number"===typeof a?c=xi(a):c=wi(a):c=void 0;return c};
Aea=function(a){a=yj(a,1);var b=void 0===b?!1:b;b=null==a?a:qi(a)?"string"===typeof a?wi(a):b?cea(a):xi(a):void 0;return b};
Xj=function(a,b){return Zi(yj(a,b))};
Bea=function(a,b,c,d,e){return Hj(a,b,Zi,c,d,e)};
Cea=function(a,b,c,d,e){return Hj(a,b,si,c,d,e)};
Yj=function(a,b){return null!=a?a:b};
pk=function(a,b,c){c=void 0===c?0:c;return Yj(ui(yj(a,b)),c)};
qk=function(a,b){var c=void 0===c?0:c;return Yj(vi(yj(a,b)),c)};
Dea=function(a,b){var c=void 0===c?0:c;return Yj(Wj(a,b),c)};
rk=function(a,b){var c=void 0===c?0:c;a=yj(a,b);a=null==a?a:qi(a)?"number"===typeof a?Ai(a):Wi(a):void 0;return Yj(a,c)};
Eea=function(a,b){var c=void 0===c?0:c;a=a.ea;var d=gj(a),e=kj(a,d,b),f=Xda(e);null!=f&&f!==e&&zj(a,d,b,f);return Yj(f,c)};
g.sk=function(a,b){return Yj(Xj(a,b),"")};
tk=function(a,b){var c=0;c=void 0===c?0:c;return Yj(si(yj(a,b)),c)};
Fea=function(a,b,c){a=Cea(a,b,3,void 0,!0);Vda(a,c);return a[c]};
uk=function(a,b,c){return Aj(a,b,null==c?c:Zda(c))};
vk=function(a,b,c){return Aj(a,b,ti(c))};
wk=function(a,b,c){if(null!=c){if("number"!==typeof c)throw oi("uint32");if(!Number.isFinite(c))throw oi("uint32");c>>>=0}Aj(a,b,c)};
xk=function(a,b,c){return Aj(a,b,yi(c))};
yk=function(a,b,c){if(null!=c){var d=!!d;if(!qi(c))throw oi("uint64");"string"===typeof c?c=Wi(c):d?(qi(c),c=Math.trunc(c),0<=c&&Number.isSafeInteger(c)?c=String(c):(d=String(c),zi(d)?c=d:(Zg(c),c=$g(Xg,Yg)))):c=Ai(c)}Aj(a,b,c)};
zk=function(a,b,c){return Aj(a,b,pi(c))};
Q=function(a,b,c){return Aj(a,b,Yi(c))};
Ak=function(a,b,c){return Jj(a,b,Yi(c),"")};
Bk=function(a,b,c){return Aj(a,b,ji(c,!1,!1))};
S=function(a,b,c){return Aj(a,b,null==c?c:ri(c))};
Ck=function(a,b,c,d){Nj(a,b,c,null==d?d:ri(d))};
T=function(a,b,c){this.ea=O(a,b,c)};
Gea=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error(void 0);ij(b,32);return cj(a,b)};
Dk=function(a,b,c){var d=Hea?void 0:a.constructor.yb;var e=gj(c?a.ea:b);a=b.length;if(!a)return b;var f;if(ii(c=b[a-1])){a:{var h=c;var l={},m=!1,n;for(n in h){var p=h[n];if(Array.isArray(p)){var q=p;if(li(p,d,+n)||Uda(p)&&0===p.size)p=null;p!=q&&(m=!0)}null!=p?l[n]=p:m=!0}if(m){for(var r in l){h=l;break a}h=null}}h!=c&&(f=!0);a--}for(n=+!!(e&512)-1;0<a;a--){r=a-1;c=b[r];r-=n;if(!(null==c||li(c,d,r)||Uda(c)&&0===c.size))break;var t=!0}if(!f&&!t)return b;b=Array.prototype.slice.call(b,0,a);h&&b.push(h);
return b};
Jea=function(a){return Array.isArray(a)?a[0]instanceof Mh?a:[Iea,a]:[a,void 0]};
Ek=function(a,b,c){if(Array.isArray(b)){var d=ki(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&&(Ph(b,(d|5)&-12289),d&2&&Object.freeze(b));return b}};
Ik=function(a){var b=a[Kea];if(!b){var c=Lea(a),d=Fk(a),e=d.C;b=e?function(f,h){return e(f,h,d)}:function(f,h){for(;Eda(h)&&4!=h.B;){var l=h.D,m=d[l];
if(!m){var n=d.extensions;n&&(n=n[l])&&(m=d[l]=Mea(n))}m&&m(h,f,l)||(m=h,l=m.C,Bh(m),m.CN?m=void 0:(n=m.j.j-l,m.j.j=l,m=Cda(m.j,n)),l=f,m&&(ni||(ni=Symbol()),(n=l[ni])?n.push(m):l[ni]=[m]))}c===Gk||c===Hk||c.G||(f[Nea||(Nea=Symbol())]=c)};
a[Kea]=b}return b};
Mea=function(a){a=Jea(a);var b=a[0].oL;if(a=a[1]){var c=Ik(a),d=Fk(a).uA;return function(e,f,h){return b(e,f,h,d,c)}}return b};
Jk=function(){};
Oea=function(a,b,c){var d=c[1];if(d){var e=d[Kk];var f=e?e.uA:ej(d[0]);a[b]=null!=e?e:d}f&&f===dj?(a.j||(a.j=new Set)).add(b):c[0]&&(a.B||(a.B=new Set)).add(b)};
Pea=function(a,b){return[a.j,!b||0<b[0]?void 0:b]};
Lea=function(a){var b=a[Kk];if(b)return b;b=Lk(a,a[Kk]=new Jk,Pea,Pea,Oea);if(!b.extensions&&!b.B&&!b.j){var c=!0,d;for(d in b)isNaN(d)||(c=!1);c?(ej(a[0])===dj?Hk?b=Hk:(b=new Jk,b.uA=ej(!0),b=Hk=b):b=Gk||(Gk=new Jk),b=a[Kk]=b):b.G=!0}return b};
Qea=function(a,b,c){a[b]=c};
Lk=function(a,b,c,d,e){e=void 0===e?Qea:e;b.uA=ej(a[0]);var f=0,h=a[++f];h&&h.constructor===Object&&(b.extensions=h,h=a[++f],"function"===typeof h&&(b.C=h,b.D=a[++f],h=a[++f]));for(var l={};Array.isArray(h)&&"number"===typeof h[0]&&0<h[0];){for(var m=0;m<h.length;m++)l[h[m]]=h;h=a[++f]}for(m=1;void 0!==h;){"number"===typeof h&&(m+=h,h=a[++f]);var n=void 0;if(h instanceof Mh)var p=h;else p=Rea,f--;if(p.F1){h=a[++f];n=a;var q=f;"function"==typeof h&&(h=h(),n[q]=h);n=h}h=a[++f];q=m+1;"number"===typeof h&&
0>h&&(q-=h,h=a[++f]);for(;m<q;m++){var r=l[m];e(b,m,n?d(p,n,r):c(p,r))}}return b};
Uea=function(a){var b=a[Sea];if(!b){var c=Mk(a);b=function(d,e){return Tea(d,e,c)};
a[Sea]=b}return b};
Vea=function(a){return a.pL};
Wea=function(a,b){var c,d,e=a.pL;return function(f,h,l){return e(f,h,l,d||(d=Mk(b).uA),c||(c=Uea(b)))}};
Mk=function(a){var b=a[Nk];if(b)return b;b=Lk(a,a[Nk]={},Vea,Wea);Xea(a);return b};
Yea=function(a,b){var c=a.oL;return b?function(d,e,f){return c(d,e,f,b)}:c};
Zea=function(a,b,c){var d=a.oL,e,f;return function(h,l,m){return d(h,l,m,f||(f=Fk(b).uA),e||(e=Ik(b)),c)}};
Fk=function(a){var b=a[Ok];if(b)return b;Lea(a);b=Lk(a,a[Ok]={},Yea,Zea);Xea(a);return b};
Xea=function(a){Ok in a&&Kk in a&&Nk in a&&(a.length=0)};
$ea=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){c=Jea(c);var d=c[0].pL;if(c=c[1]){var e=Uea(c),f=Mk(c).uA;c=(c=a.D)?c(f,e):function(h,l,m){return d(h,l,m,f,e)}}else c=d;
return a[b]=c}};
Tea=function(a,b,c){for(var d=gj(a),e=+!!(d&512)-1,f=a.length,h=f+(d&256?-1:0),l=d&512?1:0;l<h;l++){var m=a[l];if(null!=m){var n=l-e,p=$ea(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=$ea(c,e))&&h(b,f,e))}if(a=ni?a[ni]:void 0)for(Jh(b,b.j.end()),c=0;c<a.length;c++)Jh(b,Rg(a[c])||Ng())};
Pk=function(a,b){return new Mh(a,b,!1,!1)};
Qk=function(a,b){return new Mh(a,b,!0,!1)};
rl=function(a,b,c){zj(a,gj(a),b,c)};
sl=function(a,b,c){b=Xda(b);null!=b&&(Kh(a,c,1),a=a.j,c=afa||(afa=new DataView(new ArrayBuffer(8))),c.setFloat64(0,+b,!0),Xg=c.getUint32(0,!0),Yg=c.getUint32(4,!0),Ih(a,Xg),Ih(a,Yg))};
tl=function(a,b,c){a:if(null!=b){if(qi(b)){if("string"===typeof b){b=wi(b);break a}if("number"===typeof b){b=xi(b);break a}}b=void 0}null!=b&&("string"===typeof b&&Mda(b),null!=b&&(Kh(a,c,0),"number"===typeof b?(a=a.j,Zg(b),Nda(a,Xg,Yg)):(c=Mda(b),Nda(a.j,c.B,c.j))))};
ul=function(a,b,c){b=ui(b);null!=b&&null!=b&&(Kh(a,c,0),Oda(a.j,b))};
bfa=function(a,b,c){b=$da(b);null!=b&&(Kh(a,c,0),a.j.j.push(b?1:0))};
cfa=function(a,b,c){b=Zi(b);null!=b&&Lh(a,c,cda(b))};
vl=function(a,b,c,d,e){b=b instanceof T?b.ea:Array.isArray(b)?O(b,d[0],d[1]):void 0;if(null!=b){Kh(a,c,2);c=a.j.end();Jh(a,c);c.push(a.B);e(b,a);e=c.pop();for(e=a.B+a.j.length()-e;127<e;)c.push(e&127|128),e>>>=7,a.B++;c.push(e);a.B++}};
dfa=function(a){return function(){var b=new Pda;Tea(this.ea,b,Mk(a));Jh(b,b.j.end());for(var c=new Uint8Array(b.B),d=b.C,e=d.length,f=0,h=0;h<e;h++){var l=d[h];c.set(l,f);f+=l.length}b.C=[c];return c}};
wl=function(a){return function(b){return Gea(a,b)}};
xl=function(a){this.ea=O(a)};
yl=function(a){this.ea=O(a)};
zl=function(a){this.ea=O(a)};
Al=function(a){this.ea=O(a)};
Bl=function(a){this.ea=O(a)};
Cl=function(a){this.ea=O(a)};
g.efa=function(a){var b=new Bl;b=Q(b,1,a.D);for(var c=[],d=0;d<a.fields.length;d++)c.push(a.fields[d].Oc);b=vea(b,c,Xi);c=[];d=[];for(var e=g.u(a.j.keys()),f=e.next();!f.done;f=e.next())d.push(f.value.split(","));for(e=0;e<d.length;e++){f=d[e];for(var h=a.C,l=a.XN(f)||[],m=[],n=0;n<l.length;n++){var p=l[n],q=p&&p.j;p=new zl;switch(h){case 3:q=Number(q);Number.isFinite(q)&&Nj(p,1,Dl,yi(q));break;case 2:Nj(p,2,Dl,pi(Number(q)))}m.push(p)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new Al;m=Sj(n,zl,2,m);n=
[];p=a;q=[];for(var r=0;r<p.fields.length;r++)q.push(p.fields[r].Pc);p=q;for(q=0;q<p.length;q++){var t=p[q],v=f[q];r=new yl;switch(t){case 3:Nj(r,1,El,Yi(String(v)));break;case 2:t=Number(v);Number.isFinite(t)&&Nj(r,2,El,ti(t));break;case 1:t="true"===v,t=null==t?t:Zda(t),Nj(r,3,El,t)}n.push(r)}Uj(m,yl,1,n);c.push(m)}}Uj(b,Al,4,c);return b};
ffa=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";0===a.indexOf("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};
gfa=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(q){for(var r=h,t=0;64>t;t+=4)r[t/4]=q[t]<<24|q[t+1]<<16|q[t+2]<<8|q[t+3];for(t=16;80>t;t++)q=r[t-3]^r[t-8]^r[t-14]^r[t-16],r[t]=(q<<1|q>>>31)&4294967295;q=e[0];var v=e[1],x=e[2],A=e[3],E=e[4];for(t=0;80>t;t++){if(40>t)if(20>t){var F=A^v&(x^A);var G=1518500249}else F=v^x^A,G=1859775393;else 60>t?(F=v&x|A&(v|x),G=2400959708):(F=v^x^A,G=3395469782);F=((q<<5|q>>>27)&4294967295)+F+E+G+r[t]&4294967295;E=A;A=x;x=(v<<30|v>>>2)&4294967295;v=q;q=F}e[0]=e[0]+q&4294967295;e[1]=e[1]+v&4294967295;e[2]=
e[2]+x&4294967295;e[3]=e[3]+A&4294967295;e[4]=e[4]+E&4294967295}
function c(q,r){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var t=[],v=0,x=q.length;v<x;++v)t.push(q.charCodeAt(v));q=t}r||(r=q.length);t=0;if(0==n)for(;t+64<r;)b(q.slice(t,t+64)),t+=64,p+=64;for(;t<r;)if(f[n++]=q[t++],p++,64==n)for(n=0,b(f);t+64<r;)b(q.slice(t,t+64)),t+=64,p+=64}
function d(){var q=[],r=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var t=63;56<=t;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;5>t;t++)for(var v=24;0<=v;v-=8)q[r++]=e[t]>>v&255;return q}
for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,q6:function(){for(var q=d(),r="",t=0;t<q.length;t++)r+="0123456789ABCDEF".charAt(Math.floor(q[t]/16))+"0123456789ABCDEF".charAt(q[t]%16);return r}}};
ifa=function(a,b,c){var d=String(g.Sa.location.href);return d&&a&&b?[b,hfa(ffa(d),a,c||null)].join(" "):null};
hfa=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.bc(d,function(l){e.push(l)}),jfa(e.join(" "));
var f=[],h=[];g.bc(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.bc(d,function(l){e.push(l)});
a=jfa(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")};
jfa=function(a){var b=gfa();b.update(a);return b.q6().toLowerCase()};
Fl=function(a){this.j=a||{cookie:""}};
Gl=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}};
Hl=function(a){return!!kfa.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
lfa=function(a){a=void 0===a?!1:a;var b=g.Sa.__SAPISID||g.Sa.__APISID||g.Sa.__3PSAPISID||g.Sa.__OVERRIDE_SID;Hl(a)&&(b=b||g.Sa.__1PSAPISID);if(b)return!0;if("undefined"!==typeof document){var c=new Fl(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID")||c.get("OSID");Hl(a)&&(b=b||c.get("__Secure-1PAPISID"))}return!!b};
mfa=function(a,b,c,d){(a=g.Sa[a])||"undefined"===typeof document||(a=(new Fl(document)).get(b));return a?ifa(a,c,d):null};
nfa=function(a,b){b=void 0===b?!1:b;var c=ffa(String(g.Sa.location.href)),d=[];if(lfa(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.Sa.__SAPISID:g.Sa.__APISID;e||"undefined"===typeof document||(e=new Fl(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?ifa(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&Hl(b)&&((b=mfa("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=mfa("__3PSAPISID","__Secure-3PAPISID",
"SAPISID3PHASH",a))&&d.push(a))}return 0==d.length?null:d.join(" ")};
Il=function(a){this.ea=O(a)};
Jl=function(a){g.Ld.call(this);this.intervalMs=a;this.enabled=!1;this.j=function(){return g.kb()};
this.B=this.j()};
Kl=function(a){this.ea=O(a)};
Ll=function(a){this.ea=O(a)};
g.Ml=function(a,b,c,d){this.D=a;this.G=b;this.j=this.C=a;this.K=c||0;this.N=d||2};
g.Nl=function(a){a.j=Math.min(a.G,a.j*a.N);a.C=Math.min(a.G,a.j+(a.K?Math.round(a.K*(Math.random()-.5)*2*a.j):0));a.B++};
Ol=function(a){this.ea=O(a)};
Pl=function(a){this.ea=O(a)};
Ql=function(a){this.ea=O(a)};
ofa=function(a,b){Uj(a,Pl,1,b)};
ym=function(a){this.ea=O(a)};
qfa=function(a,b){b=void 0===b?pfa:b;if(!zm){var c;a=null==(c=a.navigator)?void 0:c.userAgentData;if(!a||"function"!==typeof a.getHighEntropyValues||a.brands&&"function"!==typeof a.brands.map)return Promise.reject(Error("UACH unavailable"));c=(a.brands||[]).map(function(e){var f=new Pl;f=Q(f,1,e.brand);return Q(f,2,e.version)});
ofa(uk(Am,2,a.mobile),c);zm=a.getHighEntropyValues(b)}var d=new Set(b);return zm.then(function(e){var f=Am.clone();d.has("platform")&&Q(f,3,e.platform);d.has("platformVersion")&&Q(f,4,e.platformVersion);d.has("architecture")&&Q(f,5,e.architecture);d.has("model")&&Q(f,6,e.model);d.has("uaFullVersion")&&Q(f,7,e.uaFullVersion);return f}).catch(function(){return Am.clone()})};
Bm=function(a){this.ea=O(a)};
Cm=function(a){this.ea=O(a)};
Dm=function(a){this.ea=O(a,4)};
Em=function(a){this.ea=O(a,35)};
Fm=function(a){this.ea=O(a,19)};
Gm=function(a){this.ea=O(a,7)};
rfa=function(a){this.ea=O(a)};
Jm=function(a){g.I.call(this);var b=this;this.componentId="";this.C=[];this.va="";this.pageId=null;this.Ca=this.ma=-1;this.experimentIds=null;this.Y=this.G=0;this.Ia=1;this.timeoutMillis=0;this.logSource=a.logSource;this.tD=a.tD||function(){};
this.B=new Hm(a.logSource,a.ew);this.network=a.network;this.bB=a.bB||null;this.K=a.yda||null;this.sessionIndex=a.sessionIndex||null;this.aD=a.aD||!1;this.logger=null;this.withCredentials=!a.mW;this.ew=a.ew||!1;this.Z="undefined"!==typeof URLSearchParams&&!!(new URL(Im())).searchParams&&!!(new URL(Im())).searchParams.set;var c=S(new Bm,1,1);sfa(this.B,c);this.D=new g.Ml(1E4,3E5,.1);this.j=new Jl(this.D.getValue());a=tfa(this,a.BV);g.Bd(this.j,"tick",a,!1,this);this.N=new Jl(6E5);g.Bd(this.N,"tick",
a,!1,this);this.aD||this.N.start();this.ew||(g.Bd(document,"visibilitychange",function(){"hidden"===document.visibilityState&&b.MN()}),g.Bd(document,"pagehide",this.MN,!1,this))};
tfa=function(a,b){return a.Z?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
Im=function(){return"https://play.google.com/log?format=json&hasfast=true"};
Hm=function(a,b){this.ew=b=void 0===b?!1:b;this.B=this.locale=null;this.j=new Fm;Number.isInteger(a)&&this.j.OF(a);b||(this.locale=document.documentElement.getAttribute("lang"));sfa(this,new Bm)};
sfa=function(a,b){Sj(a.j,Bm,1,b);si(yj(b,1))||S(b,1,1);a.ew||(b=Km(a),Xj(b,5)||Q(b,5,a.locale));a.B&&(b=Km(a),g.Rj(b,Ql,9)||Sj(b,Ql,9,a.B))};
ufa=function(a,b){Bj(Lm(a),ym,11)&&(a=Mm(a),S(a,1,b))};
vfa=function(a,b){Bj(Lm(a),ym,11)&&(a=Mm(a),uk(a,2,b))};
Lm=function(a){return g.Rj(a.j,Bm,1)};
wfa=function(a){var b=void 0===b?pfa:b;var c=a.ew?void 0:Df();c?qfa(c,b).then(function(d){a.B=d;d=Km(a);Sj(d,Ql,9,a.B);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
Km=function(a){a=Lm(a);var b=g.Rj(a,ym,11);b||(b=new ym,Sj(a,ym,11,b));return b};
Mm=function(a){a=Km(a);var b=g.Rj(a,Ol,10);b||(b=new Ol,uk(b,2,!1),Sj(a,Ol,10,b));return b};
g.Nm=function(a){return(new xfa).Hk(a)};
xfa=function(){};
Om=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),Om(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),yfa(d,c),c.push(":"),Om(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":yfa(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);}}};
yfa=function(a,b){b.push('"',a.replace(zfa,function(c){var d=Afa[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Afa[c]=d);return d}),'"')};
Bfa=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"}};
Pm=function(){};
Qm=function(){};
Cfa=function(a){if(!a.B&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.B=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.B};
Rm=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};
Sm=function(a){return a?decodeURI(a):a};
g.Um=function(a,b){return b.match(Tm)[a]||null};
g.Vm=function(a){return Sm(g.Um(3,a))};
g.Dfa=function(a){a=a.match(Tm);return Rm(a[1],a[2],a[3],a[4])};
Efa=function(a){a=a.match(Tm);return Rm(a[1],null,a[3],a[4])};
Wm=function(a){a=a.match(Tm);return Rm(null,null,null,null,a[5],a[6],a[7])};
Ffa=function(a){var b=a.indexOf("#");return 0>b?a:a.slice(0,b)};
Xm=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?Ze(e):"")}}};
Ym=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]};
Zm=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Zm(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.Ye(b)))};
Gfa=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Zm(a[b],a[b+1],c);return c.join("&")};
g.$m=function(a){var b=[],c;for(c in a)Zm(c,a[c],b);return b.join("&")};
Hfa=function(a,b){var c=2==arguments.length?Gfa(arguments[1],0):Gfa(arguments,1);return Ym(a,c)};
g.an=function(a,b){b=g.$m(b);return Ym(a,b)};
bn=function(a,b,c){c=null!=c?"="+g.Ye(c):"";return Ym(a,b+c)};
Ifa=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};
cn=function(a,b){var c=a.search(Jfa),d=Ifa(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return Ze(a.slice(d,-1!==e?e:0))};
Hn=function(a,b){for(var c=a.search(Jfa),d=0,e,f=[];0<=(e=Ifa(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(Kfa,"$1")};
Lfa=function(a,b,c){return bn(Hn(a,b),b,c)};
g.In=function(a){g.Ld.call(this);this.headers=new Map;this.Z=a||null;this.C=!1;this.Ca=this.j=null;this.ma="";this.B=0;this.D="";this.G=this.Ea=this.Y=this.Ia=!1;this.N=0;this.va=null;this.Ma="";this.Na=this.K=!1};
Nfa=function(a,b,c,d,e,f,h){var l=new g.In;Mfa.push(l);b&&l.Ta("complete",b);l.YI("ready",l.R5);f&&(l.N=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)};
Ofa=function(a){return g.Cf&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
Qfa=function(a,b){a.C=!1;a.j&&(a.G=!0,a.j.abort(),a.G=!1);a.D=b;a.B=5;Pfa(a);Jn(a)};
Pfa=function(a){a.Ia||(a.Ia=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Rfa=function(a){if(a.C&&"undefined"!=typeof Kn)if(a.Ca[1]&&4==g.Ln(a)&&2==a.getStatus())a.getStatus();else if(a.Y&&4==g.Ln(a))g.yg(a.FZ,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(Mn(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.B=6;try{var b=2<g.Ln(a)?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";Pfa(a)}}finally{Jn(a)}}};
Jn=function(a,b){if(a.j){Sfa(a);var c=a.j,d=a.Ca[0]?function(){}:null;
a.j=null;a.Ca=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Sfa=function(a){a.j&&a.Na&&(a.j.ontimeout=null);a.va&&(g.Sa.clearTimeout(a.va),a.va=null)};
Mn=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.Um(1,String(a.ma)),!a&&g.Sa.self&&g.Sa.self.location&&(a=g.Sa.self.location.protocol.slice(0,-1)),b=!Tfa.test(a?a.toLowerCase():"");c=b}return c};
g.Ln=function(a){return a.j?a.j.readyState:0};
g.Nn=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.On=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.Ufa=function(a){var b={};a=(a.j&&2<=g.Ln(a)?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.fc(a[c])){var d=$ba(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 dd(b,function(h){return h.join(", ")})};
g.Pn=function(a,b){return a.j?a.j.getResponseHeader(b):null};
Qn=function(){};
Rn=function(a,b){g.I.call(this);this.logSource=a;this.sessionIndex=b;this.B="https://play.google.com/log?format=json&hasfast=true";this.j=null;this.C=!1;this.componentId="";this.pageId=this.Vy=this.bB=null;this.network=new Qn};
Sn=function(a,b,c,d,e,f,h){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.I.call(this);this.logSource=a;this.componentId=b;f?b=f:(a=new Rn(a,"0"),a.componentId=b,g.N(this,a),""!==c&&(a.B=c),d&&(a.C=!0),e&&(a.j=e),h&&(a.network=h),b=a.build());this.j=b};
Tn=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}};
Vfa=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""}};
Un=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};
Vn=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()};
Wn=function(a,b){this.logger=a;this.j=b;this.startMillis=Vn()};
Wfa=function(){};
Xfa=function(a,b,c){this.jj=a;a=new Rn(c?1828:1654,"0");a.j="18";a.network=new Qn;if(b){var d=new xl;b=vea(d,b,bea);a.Vy=b}b=new Sn(c?1828:1654,"","",!1,"",a.build());b=new g.Ag(b);c?(this.clientError=new Pca(b),this.D=new Oca(b),this.G=new Nca(b),this.C=new Qca(b),this.B=new Rca(b),this.j=new Sca(b)):(this.clientError=new Vca(b),this.D=new Uca(b),this.G=new Tca(b),this.C=new Wca(b),this.B=new Xca(b),this.j=new Yca(b))};
Yfa=function(a,b){try{return globalThis.sessionStorage.setItem(a,b),!0}catch(c){return!1}};
Xn=function(a,b,c,d){b=void 0===b?0:b;c=void 0===c?a.length:c;var e=0;for(d&&(e=Xn(d));b<c;b++)d="string"===typeof a?a.charCodeAt(b):a[b],e=Zfa(31,e)+d|0;return e};
$fa=function(a,b){return[Xn(a,0,a.length>>1,b),Xn(a,a.length>>1)]};
Yn=function(a,b,c){c=void 0===c?[]:c;this.maxItems=a;this.j=void 0===b?0:b;this.B=c};
aga=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new Yn(a);var c=b.split(",");if(2>c.length)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Yn(a);b=c.slice(1);1===b.length&&""===b[0]&&(b=[]);c=Number(c[0]);return isNaN(c)||0>c||c>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Yn(a)):new Yn(a,c,b)};
cga=function(a,b){this.logger=b;try{var c=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(d){c=!1}c&&(this.index=aga(a))};
fga=function(a,b,c,d,e){if(a.index){var f=new Wn(a.logger,"W"),h=(4-(Zn.length+c.length)%4)%4,l=new Uint8Array(4+h+Zn.length+4+c.length),m=new DataView(l.buffer),n=0;m.setUint32(n,4294967295*Math.random());n=n+4+h;l.set(Zn,n);n+=Zn.length;m.setUint32(n,e);l.set(c,n+4);dga(l,d);b=ega(null!=b?b:[]);a.index.Ah(b,function(p){globalThis.sessionStorage.removeItem(p)})?Yfa(b,g.Dg(l))?(a.logger.sE("s"),f.done()):a.logger.sE("t"):a.logger.sE("i")}else a.logger.sE("u")};
ega=function(a){var b=g.u($fa(a,Zn));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)};
dga=function(a,b){var c=$fa(b);a=new Uint32Array(a.buffer);b=a[0];var d=g.u(c);c=d.next().value;d=d.next().value;for(var e=1;e<a.length;e+=2){for(var f=b,h=e,l=c,m=d,n=0;22>n;n++)h=h>>>8|h<<24,h+=f|0,h^=l+38293,f=f<<3|f>>>29,f^=h,m=m>>>8|m<<24,m+=l|0,m^=n+38293,l=l<<3|l>>>29,l^=m;f=[f,h];a[e]^=f[0];e+1<a.length&&(a[e+1]^=f[1])}};
iga=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=gga(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=$n(a,l),d+=$n(a,l+4),e+=$n(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 hga.toString(e)};
gga=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
$n=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
bo=function(a,b,c){this.logger=a;this.event=b;if(void 0===c||c)this.startMillis=ao()};
co=function(){};
eo=function(a,b){this.B=b;this.D=new Sn(1828,"","",!1,"",void 0,new Qn);this.j=new g.Ag(this.D);this.K=new Ica(this.j);this.N=new Lca(this.j);this.Z=new Mca(this.j);this.G=new Hca(this.j);new Jca(this.j);new Kca(this.j);this.C=iga(a);(new Gca(this.j)).j.rj("/client_streamz/bg/fic",this.B)};
ao=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()};
jga=function(a){this.ea=O(a)};
kga=function(a){this.ea=O(a)};
fo=function(a){this.ea=O(a,0,"bfkj")};
g.go=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
ho=function(a){function b(p,q,r){Promise.resolve().then(function(){m.done();l.resolve({G5:p,Dca:q,dob:r})})}
function c(){}
this.j=!1;if(a.challenge instanceof fo){var d=g.sk(a.challenge,4);var e=g.sk(a.challenge,5)}else d=a.program,e=a.globalName;if(!1!==a.Mba){var f,h;this.Tj=null!=(h=a.Tj)?h:new eo(e,null!=(f=a.Nnb)?f:"_")}else this.Tj=new co;var l=new g.go;this.B=l.promise;var m=new bo(this.Tj,0,!1);g.Sa[e]?g.Sa[e].a||(this.Tj.aJ(2,""),this.Tj.Kr()):(this.Tj.aJ(1,""),this.Tj.Kr());try{var n=g.Sa[e].a;m.start();this.C=g.u(n(d,b,!0,a.Uob,c)).next().value;this.X_=l.promise.then(function(){})}catch(p){throw this.Tj.aJ(4,
p.message),this.Tj.Kr(),p;
}};
lga=function(a){if(!a)return null;a=Xj(a,4);return null===a||void 0===a?null:fe(a)};
io=function(){this.j={};this.B=null};
mga=function(){io.instance||(io.instance=new io);return io.instance};
oga=function(a){var b=mga();return nga(b,g.Rj(a,jga,1),g.Rj(a,kga,2),g.sk(a,3))};
nga=function(a,b,c,d){if(!b&&!c)return Promise.resolve();if(!d)return pga(b,c);var e;(e=a.j)[d]||(e[d]=new Promise(function(f,h){pga(b,c).then(function(){a.B=d;f()},function(l){delete a.j[d];
h(l)})}));
return a.j[d]};
pga=function(a,b){return b?qga(b):a?rga(a):Promise.resolve()};
qga=function(a){return new Promise(function(b,c){var d=g.If("SCRIPT"),e=lga(a);g.We(d,e);d.onload=function(){g.Rf(d);b()};
d.onerror=function(){g.Rf(d);c(Error("EWLS"))};
(g.xf("HEAD")[0]||document.documentElement).appendChild(d)})};
rga=function(a){return new Promise(function(b){var c=g.If("SCRIPT");if(a){var d=Xj(a,6);d=null===d||void 0===d?null:Lba(d)}else d=null;Vba(c,d);(g.xf("HEAD")[0]||document.documentElement).appendChild(c);g.Rf(c);b()})};
tga=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a[c]+97;if(g.Sa.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 sga(b)};
jo=function(a){this.ea=O(a)};
ko=function(a){this.ea=O(a)};
lo=function(a){this.ea=O(a)};
mo=function(a,b,c){this.client=a;this.jj=b;this.j=c};
no=function(a){this.ea=O(a)};
oo=function(a,b,c){this.j=a;this.C=b;this.B=c};
po=function(a,b,c){c=void 0===c?{}:c;this.cca=a;this.j=c;this.B=b};
qo=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.B=e};
uga=function(a,b,c){c=void 0===c?{}:c;return new oo(b,a,c)};
ro=function(a){this.ea=O(a)};
so=function(a){this.ea=O(a)};
to=function(a){this.ea=O(a)};
uo=function(a){this.ea=O(a)};
vo=function(a,b){this.N=a.r9;this.Z=b;this.j=a.xhr;this.C=[];this.G=[];this.K=[];this.D=[];this.B=[];this.N&&vga(this)};
yga=function(a,b){g.Bd(a.j,"complete",function(){if(Mn(a.j)){var c=g.Nn(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.Z(c)}catch(h){wo(a,new Un(13,"Error when deserializing response data; error: "+h+(", response: "+c)));return}c=Tn(a.j.getStatus());xo(a,yo(a));0==c?wga(a,d):wo(a,new Un(c,"Xhr succeeded but the status code is not 200"))}else{c=g.Nn(a.j);d=yo(a);if(c){var e=xga(a,c);c=e.code;var f=e.details;
e=e.metadata}else c=2,f="Rpc failed due to xhr error. error code: "+a.j.B+", error: "+a.j.getLastError(),e=d;xo(a,d);wo(a,new Un(c,f,e))}})};
vga=function(a){a.N.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.Z(c)}catch(e){wo(a,new Un(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&wga(a,d)}if("2"in b)for(b=xga(a,b["2"]),c=0;c<a.K.length;c++)a.K[c](b)});
a.N.on("end",function(){xo(a,yo(a));for(var b=0;b<a.D.length;b++)a.D[b]()});
a.N.on("error",function(){if(0!=a.B.length){var b=a.j.B;0!==b||Mn(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=Tn(c);break;default:d=14}xo(a,yo(a));b=Bfa(b)+", error: "+a.j.getLastError();-1!=c&&(b+=", http status code: "+c);wo(a,new Un(d,b))}})};
yo=function(a){var b={},c=g.Ufa(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
xga=function(a,b){var c=2,d={};try{var e=zga(b);c=pk(e,1);var f=g.sk(e,2);zea(e,to).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.ma)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
zo=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
wga=function(a,b){for(var c=0;c<a.C.length;c++)a.C[c](b)};
xo=function(a,b){for(var c=0;c<a.G.length;c++)a.G[c](b)};
wo=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
g.Ao=function(a){this.K=a.Ida||null;this.G=a.q0||!1;this.B=void 0};
Bo=function(a,b){g.Ld.call(this);this.va=a;this.K=b;this.G=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.Z=new Headers;this.B=null;this.ma="GET";this.Y="";this.j=!1;this.N=this.C=this.D=null};
Aga=function(a){a.C.read().then(a.H7.bind(a)).catch(a.vI.bind(a))};
Do=function(a){a.readyState=4;a.D=null;a.C=null;a.N=null;Co(a)};
Co=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
g.Eo=function(a){this.j=this.Z=this.G="";this.D=null;this.K=this.C="";this.N=!1;var b;a instanceof g.Eo?(this.N=a.N,g.Fo(this,a.G),this.Z=a.Z,g.Go(this,a.j),g.Ho(this,a.D),this.C=a.C,Io(this,a.B.clone()),this.K=a.K):a&&(b=String(a).match(Tm))?(this.N=!1,g.Fo(this,b[1]||"",!0),this.Z=Jo(b[2]||""),g.Go(this,b[3]||"",!0),g.Ho(this,b[4]),this.C=Jo(b[5]||"",!0),Io(this,b[6]||"",!0),this.K=Jo(b[7]||"")):(this.N=!1,this.B=new Ko(null,this.N))};
g.Fo=function(a,b,c){a.G=c?Jo(b,!0):b;a.G&&(a.G=a.G.replace(/:$/,""))};
g.Go=function(a,b,c){a.j=c?Jo(b,!0):b};
g.Ho=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null};
Io=function(a,b,c){b instanceof Ko?(a.B=b,Bga(a.B,a.N)):(c||(b=Lo(b,Cga)),a.B=new Ko(b,a.N))};
g.Mo=function(a,b,c){a.B.set(b,c)};
g.No=function(a){return a instanceof g.Eo?a.clone():new g.Eo(a)};
Jo=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Lo=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)};
Ko=function(a,b){this.B=this.j=null;this.C=a||null;this.D=!!b};
Oo=function(a){a.j||(a.j=new Map,a.B=0,a.C&&Xm(a.C,function(b,c){a.add(Ze(b),c)}))};
Ega=function(a,b){Oo(a);b=Po(a,b);return a.j.has(b)};
g.Fga=function(a,b,c){a.remove(b);0<c.length&&(a.C=null,a.j.set(Po(a,b),g.Lb(c)),a.B=a.B+c.length)};
Po=function(a,b){b=String(b);a.D&&(b=b.toLowerCase());return b};
Bga=function(a,b){b&&!a.D&&(Oo(a),a.C=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Fga(this,e,c))},a));
a.D=b};
g.Gga=function(a){var b="";g.bd(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Dp=function(a,b,c){if(g.md(c))return a;c=g.Gga(c);if("string"===typeof a)return bn(a,g.Ye(b),c);g.Mo(a,b,c);return a};
g.Ep=function(a){g.I.call(this);this.B=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=Ad(b,c,d||a.handleEvent,e,f||a.B||a);if(!b)return a;a.j[b.key]=b}return a};
Iga=function(){this.C=!0;this.B=0;this.j=""};
Jga=function(a,b,c){a.C=!1;throw Error("The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b);};
Fp=function(){this.K=null;this.N=[];this.D=this.B=this.C=this.j=this.Y=0;this.G=null;this.Z=0};
Gp=function(a,b,c,d){a.j=3;a.K="The stream is broken @"+a.Y+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.K);};
Hp=function(){this.j=null;this.B=0;this.C=new Iga;this.D=new Fp};
Kga=function(a,b,c){a.j="The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
Ip=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
Jp=function(a){this.Y=null;this.K=[];this.D="";this.va=[];this.C=this.B=0;this.N=!1;this.Z=0;this.Ca=/[\\"]/g;this.j=this.G=0;this.ma=!(!a||!a.m6)};
Kp=function(a,b,c){a.G=3;a.Y="The stream is broken @"+a.C+"/"+c+". With input:\n"+b;throw Error(a.Y);};
Lp=function(){this.G=this.C=null;this.B=this.j=0;this.D=[];this.K=!1};
Lga=function(a){var b=g.Pn(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new Lp:new Jp:b.startsWith("application/x-protobuf")?(a=g.Pn(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new Hp:null:new Fp:null};
Mp=function(a){this.j=a;this.B=null;this.D=this.C=0;this.Y=!1;this.G=this.N=this.K=null;this.Z=new g.Ep(this);this.Z.Ta(this.j,"readystatechange",this.ma)};
Np=function(a,b){a.D!=b&&(a.D=b,a.N&&a.N())};
Op=function(a){a.Z.Tf();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
Mga=function(a){a=this.C=a;var b=(0,g.ib)(this.W9,this);a.G=b;a=this.C;b=(0,g.ib)(this.Iaa,this);a.N=b;this.B={};this.j={}};
Nga=function(a,b){for(var c={},d=0;d<a.length;c={RY:void 0},d++)c.RY=a[d],b.forEach(function(e){return function(f){try{f(e.RY)}catch(h){}}}(c))};
Pp=function(a,b){var c=a.B[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.j[b])&&c.forEach(function(d){d()});
a.j[b]=[]};
Oga=function(){var a={format:"jspb"};a=void 0===a?{}:a;this.G=a.Kob||g.Wa("suppressCorsPreflight",a)||!1;this.B=a.withCredentials||g.Wa("withCredentials",a)||!1;this.D=a.Job||[];this.K=a.Pob||[];this.j=a.Wob;this.C=a.Sob||!1};
Qp=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 r=h.dI(),t=n;t=void 0===t?{}:t;l(new po(q,r,t))})})},a.K).call(a,uga(e,c,d)).then(function(h){return h.cca})};
Rga=function(a,b,c){var d=b.dI(),e=b.getMetadata(),f=Sga(a,!0);a=Tga(a,e,f,c+d.getName());c=Uga(f,d.B,!1);yga(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
Sga=function(a,b){b=a.C&&!b;return a.j||b?new g.In(new g.Ao({Ida:a.j,q0:b})):new g.In};
Tga=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.B)c.K=!0;if(a.G)d=g.Dp(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
Uga=function(a,b,c){if(c)if(a.isActive(),!g.Cf||g.Uc(10)){c=new Mp(a);var d=new Mga(c)}else d=null;return new vo({xhr:a,r9: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};
Rp=function(){this.j=new Oga;this.B="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
Sp=function(a){g.I.call(this);this.owner=a;this.signals=new Set;a&&g.N(a,this)};
Tp=function(a,b,c){var d=Vga;a.signals.has(b);d({signal:b,data:c})};
Up=function(a){g.I.call(this);this.IV=a;this.slots=new Map;this.hB=new Set;this.GX=!1};
Wga=function(a,b){a.isDisposed()||a.slots.set(b,{slotId:b,slot:void 0,kW:function(){return a.slots.delete(b)}})};
Xga=function(a,b){return new Promise(function(c){Vp(function(){a.IV&&(a.tY=b,a.GX=!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){dg(h)}}d=g.u(a.hB);for(e=d.next();!e.done;e=d.next())e.value.resolve(b);a.hB.clear();c()})})};
Vga=function(){var a=g.Ia.apply(0,arguments);0===a.length?Promise.resolve():1===a.length?(a=a[0],Xga(a.signal,a.data)):Promise.all(a.map(function(b){return Xga(b.signal,b.data)})).then()};
Vp=function(a){Wp.push(a);Yga()};
Yga=function(){var a,b;g.H(function(c){switch(c.j){case 1:if(Xp)return c.return();g.Ba(c,2,3);Xp=!0;a=Zga(0);case 5:if(!(a<Wp.length)){c.Ka(3);break}return g.z(c,Promise.resolve(),8);case 8:a=Zga(a);c.Ka(5);break;case 3:g.Ea(c);Wp.length=0;Xp=!1;g.Fa(c,0);break;case 2:b=g.Da(c),dg(b),c.Ka(3)}})};
Zga=function(a){for(var b=a+100;a<b&&a<Wp.length;)try{Wp[a++]()}catch(c){dg(c)}return a};
$ga=function(a,b){if(a.isDisposed())b();else{var c=Yp.get(a);if(c)c.push(b);else{var d=[b];Yp.set(a,d);a.addOnDisposeCallback(function(){for(var e=g.u([].concat(g.pa(d))),f=e.next();!f.done;f=e.next())f=f.value,f();Yp.delete(a)})}}};
Zp=function(a,b,c){g.I.call(this);this.N=a;this.milliseconds=b;this.Ib=c;this.state=this.D=0};
aha=function(a,b){if(b)if("function"===typeof b)var c=b;else{c=b.KJ;var d=b.gQ}else c=function(){};
return new Zp(!1,a,{KJ:c,gQ:d})};
$p=function(a){yb.call(this,a);this.name="TimerCancelledError"};
aq=function(a){yb.call(this,a);this.name="TimerDisposedError"};
cha=function(a){return bha?Array.from(bha.encode(a)):g.Cg(a)};
dha=function(a){var b=new Rp,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new mo(b,a,function(){return c})};
bq=function(a,b){if(a.tW)return a.tW;if(void 0===a.gz)return[];b=new Wn(b,"c");var c=cha(a.gz);b.done();return a.tW=c};
eha=function(a,b,c){b=new Wn(c,b);a=g.Dg(a,2);b.done();return a};
cq=function(a,b,c){b.ZI(a.code);null==c||c(a)};
dq=function(a,b,c){var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;b+=":";null!=c||(c=Error());if(c instanceof Error){this.message=b+c.message;var e;this.stack=null!=(e=c.stack)?e:""}else this.message=b+String(c),this.stack="";Object.setPrototypeOf(this,dq.prototype)};
eq=function(a){g.I.call(this);var b=this;this.logger=a;this.D=new g.go;this.addOnDisposeCallback(function(){return b.D.reject()})};
fq=function(a,b){b=aha(b,function(){a.D.resolve()});
g.N(a,b);b.start()};
gq=function(a,b,c,d,e,f,h){eq.call(this,a);this.Z=c;this.ma=d;this.N=f;this.onError=h;this.C="m";this.B="x";this.Y=0;g.N(this,b);fq(this,e);this.K=Math.floor((Date.now()+e)/1E3)};
hq=function(a,b,c){eq.call(this,a);this.K=b;this.C="f";this.B="z";fq(this,c)};
iq=function(a,b,c){eq.call(this,a);this.K=b;this.C="w";this.B="z";fq(this,c)};
jq=function(a,b){eq.call(this,a);this.error=b;this.C="e";this.B="y"};
fha=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(cha(b)))};
kq=function(a,b,c){eq.call(this,a);this.K=b;this.clientState=c;this.C="S";this.B="q"};
lq=function(a){g.I.call(this);var b=this;this.j=void 0;this.D=new g.go;this.state=1;this.C=0;this.cache=this.B=void 0;this.sz=a.sz;this.tZ=a.tZ;this.onError=a.onError;var c;this.GA=null!=(c=a.GA)?c:function(){};
this.logger=a.lob?new Wfa:new Xfa(a.jj,a.Vy,a.Rob);this.addOnDisposeCallback(function(){b.j&&(b.j.dispose(),b.j=void 0)})};
gha=function(a,b,c,d){if(!d)throw new dq(4,"PMD:Undefined");d=d(Sg(Ij(b,1)));if(!(d instanceof Function))throw new dq(16,"APF:Failed");return new gq(a.logger,c,d,qk(b,3),1E3*qk(b,2),function(){return a.cache},a.onError)};
iha=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,A,E,F,G,M;return g.H(function(P){switch(P.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.Ml(c,6E5,.25,2),e={},f=1;case 2:if(!(2>=f)){P.Ka(4);break}g.Ba(P,5);a.state=3;a.C=f-1;return g.z(P,a.B&&1===f?a.B:a.mD(f),7);case 7:return h=P.B,a.B=void 0,a.state=4,l=new Wn(a.logger,"b"),g.z(P,oga(h),8);case 8:return a.state=5,a.GA(1),e.OM=3,m=new ho({challenge:h}),n=mq(a,12E4).then(function(ba){return function(){a.GA(ba.OM);return Promise.reject(new dq(15,
"MDA:Timeout"))}}(e)),g.z(P,Promise.race([m.X_,
n]),9);case 9:return a.GA(2),p=[],a.GA(4),e.OM=6,g.z(P,Promise.race([m.snapshot({t1:p}),n]),10);case 10:return q=P.B,a.GA(5),r=g.u(p),v=t=r.next().value,l.done(),a.state=6,g.z(P,hha(a,a.logger.DP("g",f,a.sz.DW(q)),new dq(10,"BWB:Timeout")),11);case 11:x=P.B;a.state=7;A=new Wn(a.logger,"i");if(g.sk(x,4)){m.dispose();var R=new iq(a.logger,g.sk(x,4),1E3*qk(x,2))}else qk(x,3)?R=gha(a,x,m,v):(m.dispose(),R=new hq(a.logger,Sg(Ij(x,1)),1E3*qk(x,2)));E=R;A.done();G=F=void 0;null==(G=(F=a).tZ)||G.call(F,Sg(Ij(x,
1)));a.state=8;return P.return(E);case 5:M=g.Da(P);b=M instanceof dq?M:M instanceof aq?new dq(20,"WTO:Disposed",M):M instanceof Un?new dq(11,"EBH:Error",M):new dq(12,"BSO:Unknown",M);cq(b,a.logger,a.onError);a:{if(M instanceof Un)switch(M.code){case 2:case 13:case 14:case 4:R=!0;break a;default:R=!1;break a}R=M instanceof dq?20!==M.code:!0}if(!R)throw b;return g.z(P,mq(a,d.getValue()),12);case 12:g.Nl(d);case 3:e={OM:void 0};f++;P.Ka(2);break;case 4:throw b;}})};
mq=function(a,b){b=aha(b);g.N(a,b);b.start();return b.Z};
hha=function(a,b,c){return Promise.race([b,mq(a,12E4).then(function(){return Promise.reject(c)})])};
jha=function(a){var b,c,d;g.H(function(e){switch(e.j){case 1:return b=void 0,g.Ba(e,5),g.z(e,iha(a),7);case 7:b=e.B;g.Ca(e,6);break;case 5:c=g.Da(e);if(a.j){a.logger.ZI(13);e.Ka(0);break}a.logger.ZI(14);b=new jq(a.logger,c instanceof dq?c:new dq(14,"SOM:Init",c instanceof Error?c:Error(String(c))));case 6:return d=void 0,null==(d=a.j)||d.dispose(),a.j=b,a.D.resolve(),g.Ba(e,8),g.z(e,a.j.D.promise,10);case 10:g.Ca(e,1);break;case 8:g.Da(e),e.Ka(0)}})};
kha=function(a,b){b=Object.assign({},b);var c=22;try{b.Ry&&!a.cache&&(a.cache=new cga(Math.min(b.Ry.U8,150),a.logger));c=23;var d;if(!a.isReady()&&(null==(d=b.Ry)?0:d.H5)){var e;if(null==(e=a.cache))var f=void 0;else a:{var h=bq(b,a.logger),l=b.Ry.HV;if(e.index){var m=new Wn(e.logger,"R"),n=ega(null!=h?h:[]),p=globalThis.sessionStorage.getItem(n);if(p){try{var q=Fg(p);dga(q,l)}catch(A){globalThis.sessionStorage.removeItem(n);e.logger.xw("c");f=void 0;break a}for(d=4;7>d&&0===q[d];)d++;for(h=0;h<Zn.length;h++)if(q[d++]!==
Zn[h]){globalThis.sessionStorage.removeItem(n);e.logger.xw("d");f=void 0;break a}var r=(new DataView(q.buffer)).getUint32(d);if(Math.floor(Date.now()/1E3)>=r)globalThis.sessionStorage.removeItem(n),e.logger.xw("e");else{var t=new Uint8Array(q.buffer,d+4);m.done();e.logger.xw("a");f=t;break a}}else e.logger.xw("m")}else e.logger.xw("u");f=void 0}if(e=f)return eha(e,"a",a.logger)}}catch(A){cq(new dq(c,22===c?"GBJ:init":"RXO:read",A),a.logger,a.onError)}var v;c=null!=(v=a.j)?v:new kq(a.logger,a.C,a.state);
v=new Wn(a.logger,c.C);try{if(a.isDisposed())throw new dq(21,"BNT:disposed");return c.G(b)}catch(A){v=new Wn(a.logger,"e");var x=A instanceof dq?A:new dq(5,"TVD:error",A);cq(x,a.logger,a.onError);c=new jq(a.logger,x);return c.G(b)}finally{v.done()}};
lha=function(a){var b={};g.bc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.j(e)||(b[d]=null)):b[d]=c});
uaa(a,function(c){return null===b[c.event]})};
nq=function(){this.Ie=0;this.j=!1;this.B=-1;this.Wv=!1;this.Gk=0};
oq=function(){this.B=null;this.j=!1};
pq=function(a){oq.call(this);this.D=a};
qq=function(){oq.call(this)};
rq=function(){oq.call(this)};
sq=function(){this.j={};this.B=!0;this.C={}};
tq=function(a,b,c){a.j[b]||(a.j[b]=new pq(c));return a.j[b]};
mha=function(a){a.j.queryid||(a.j.queryid=new rq)};
uq=function(a,b,c){(a=a.j[b])&&a.C(c)};
vq=function(a,b){if(g.jd(a.C,b))return a.C[b];if(a=a.j[b])return a.getValue()};
wq=function(a){var b={},c=g.cd(a.j,function(d){return d.j});
g.bd(c,function(d,e){d=void 0!==a.C[e]?String(a.C[e]):d.j&&null!==d.B?String(d.B):"";0<d.length&&(b[e]=d)},a);
return b};
nha=function(a){a=wq(a);var b=[];g.bd(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
pha=function(a){tq(a,"od",oha);tq(a,"opac",xq).j=!0;tq(a,"sbeos",xq).j=!0;tq(a,"prf",xq).j=!0;tq(a,"mwt",xq).j=!0;tq(a,"iogeo",xq)};
qha=function(){this.j=this.Gt=null};
yq=function(){};
Aq=function(){if(!zq())throw Error();};
zq=function(){return!(!Bq||!Bq.performance)};
Cq=function(a){return a?a.passive&&rha()?a:a.capture||!1:!1};
Dq=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Cq(d)),!0):!1};
Eq=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
sha=function(){};
Fq=function(a){var b="jh";if(a.jh&&a.hasOwnProperty(b))return a.jh;var c=new a;a.jh=c;a.hasOwnProperty(b);return c};
tha=function(){return(rc||sc)&&tc?tc.mobile:!wr()&&(xc("iPod")||xc("iPhone")||xc("Android")||xc("IEMobile"))};
wr=function(){return(rc||sc)&&tc?!tc.mobile&&(xc("iPad")||xc("Android")||xc("Silk")):xc("iPad")||xc("Android")&&!xc("Mobile")||xc("Silk")};
xr=function(a){try{return!!a&&null!=a.location.href&&Rc(a,"foo")}catch(b){return!1}};
yr=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
vha=function(){var a=[];yr(uha,function(b){a.push(b)});
return a};
wha=function(a){var b,c;return null!=(c=null==(b=/https?:\/\/[^\/]+/.exec(a))?void 0:b[0])?c:""};
zha=function(){var a=xha("IFRAME"),b={};g.bc(yha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
xha=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
Aha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,xr(a)&&(b=a);return b};
Eha=function(a){a=a||zr();for(var b=new Bha(g.Sa.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Cha.test(f.url)&&(c=f);if(f.url&&!f.iP){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Dha(b,e,c)};
zr=function(){var a=g.Sa,b=[],c=null;do{var d=a;if(xr(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Bha(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.Sa;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.iP=!0);return b};
Dha=function(a,b,c){this.j=a;this.B=b;this.C=c};
Bha=function(a,b){this.url=a;this.iP=!!b;this.depth=null};
Ar=function(){this.C="&";this.B={};this.D=0;this.j=[]};
Br=function(a,b){var c={};c[a]=b;return[c]};
Fha=function(a,b,c,d,e){var f=[];yr(a,function(h,l){(h=Cr(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
Cr=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(Cr(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(Fha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Gha=function(a){var b=1,c;for(c in a.B)b=c.length>b?c.length:b;return 3997-b-a.C.length-1};
Dr=function(a,b){this.j=a;this.depth=b};
Iha=function(){function a(l,m){return null==l?m:l}
var b=zr(),c=Math.max(b.length-1,0),d=Eha(b);b=d.j;var e=d.B,f=d.C,h=[];f&&h.push(new Dr([f.url,f.iP?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Dr([e.url,2],0));b.url&&b!=f&&h.push(new Dr([b.url,0],a(b.depth,c)));d=g.Er(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=wha(b.url))&&d.push([new Dr([e,1],a(b.depth,c))]);d.push([]);return g.Er(d,function(l){return Hha(c,l)})};
Hha=function(a,b){g.Fr(b,function(e){return 0<=e.depth});
var c=Gr(b,function(e,f){return Math.max(e,f.depth)},-1),d=zaa(c+2);
d[0]=a;g.bc(b,function(e){return d[e.depth+1]=e.j});
return d};
Jha=function(){var a=void 0===a?Iha():a;return a.map(function(b){return Cr(b)})};
Kha=function(a){var b=!1;b=void 0===b?!1:b;Bq.google_image_requests||(Bq.google_image_requests=[]);var c=xha("IMG",Bq.document);b&&(c.attributionSrc="");c.src=a;Bq.google_image_requests.push(c)};
Hr=function(){this.B=new sha;this.j=zq()?new Aq:new yq};
Lha=function(){Ir();var a=Bq.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Bq.setInterval&&"function"===typeof Bq.clearInterval&&"function"===typeof Bq.setTimeout&&"function"===typeof Bq.clearTimeout)};
Mha=function(){Ir();return Jha()};
Nha=function(){};
Ir=function(){var a=Fq(Nha);if(!a.j){if(!Bq)throw Error("Context has not been set and window is undefined.");a.j=Fq(Hr)}return a.j};
Jr=function(a){this.ea=O(a)};
Oha=function(a){this.C=a;this.j=-1;this.B=this.D=0};
Kr=function(a,b){return function(){var c=g.Ia.apply(0,arguments);if(-1<a.j)return b.apply(null,g.pa(c));try{return a.j=a.C.j.now(),b.apply(null,g.pa(c))}finally{a.D+=a.C.j.now()-a.j,a.j=-1,a.B+=1}}};
Pha=function(a,b){this.B=a;this.C=b;this.j=new Oha(a)};
Qha=function(){this.j={}};
Sha=function(){var a=Lr().flags,b=Rha;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};
Wha=function(){this.C=void 0;this.B=this.K=0;this.G=-1;this.Mc=new sq;tq(this.Mc,"mv",Tha).j=!0;tq(this.Mc,"omid",xq);tq(this.Mc,"epoh",xq).j=!0;tq(this.Mc,"epph",xq).j=!0;tq(this.Mc,"umt",xq).j=!0;tq(this.Mc,"phel",xq).j=!0;tq(this.Mc,"phell",xq).j=!0;tq(this.Mc,"oseid",Uha).j=!0;var a=this.Mc;a.j.sloi||(a.j.sloi=new qq);a.j.sloi.j=!0;tq(this.Mc,"mm",Mr);tq(this.Mc,"ovms",Vha).j=!0;tq(this.Mc,"xdi",xq).j=!0;tq(this.Mc,"amp",xq).j=!0;tq(this.Mc,"prf",xq).j=!0;tq(this.Mc,"gtx",xq).j=!0;tq(this.Mc,
"mvp_lv",xq).j=!0;tq(this.Mc,"ssmol",xq).j=!0;tq(this.Mc,"fmd",xq).j=!0;tq(this.Mc,"gen204simple",xq);this.j=new Pha(Ir(),this.Mc);this.D=!1;this.flags=new Qha};
Lr=function(){return Fq(Wha)};
Xha=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof Ar)var e=c;else e=new Ar,yr(c,function(h,l){var m=e,n=m.D++;h=Br(l,h);m.j.push(n);m.B[n]=h});
var f=e.Ue(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(Ir(),Kha(f))}catch(h){}};
Yha=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};
Zha=function(){var a=void 0===a?g.Sa:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.kb()};
$ha=function(){var a=void 0===a?g.Sa:a;return(a=a.performance)&&a.now?a.now():null};
aia=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()};
Or=function(){var a=window;this.events=[];this.B=a||g.Sa;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=Nr()||(null!=b?b:1>Math.random())};
bia=function(a){a&&Pr&&Nr()&&(Pr.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Pr.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
cia=function(){var a=Qr;this.j=Rr;this.xW="jserror";this.cS=!0;this.DM=null;this.B=this.HP;this.qd=void 0===a?null:a};
dia=function(a,b,c){var d=Sr;return Kr(Lr().j.j,function(){try{if(d.qd&&d.qd.j){var e=d.qd.start(a.toString(),3);var f=b();d.qd.end(e)}else f=b()}catch(l){var h=d.cS;try{bia(e),h=d.B(a,new Tr(Ur(l)),void 0,c)}catch(m){d.HP(217,m)}if(!h)throw l;}return f})()};
Vr=function(a,b,c,d){return Kr(Lr().j.j,function(){var e=g.Ia.apply(0,arguments);return dia(a,function(){return b.apply(c,e)},d)})};
Ur=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};
Tr=function(a){Yha.call(this,Error(a),{message:a})};
eia=function(){Bq&&"undefined"!=typeof Bq.google_measure_js_timing&&(Bq.google_measure_js_timing||Qr.disable())};
fia=function(a){Sr.DM=function(b){g.bc(a,function(c){c(b)})}};
gia=function(a,b){return dia(a,b)};
Wr=function(a,b){return Vr(a,b)};
Xr=function(a,b,c,d){Sr.HP(a,b,c,d)};
Yr=function(){return Date.now()-hia};
iia=function(){var a=Lr().C,b=0<=Zr?Yr()-Zr:-1,c=$r?Yr()-as:-1,d=0<=bs?Yr()-bs:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];Xr(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};
cs=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
ds=function(a){return a.right-a.left};
es=function(a,b,c){b instanceof g.Ke?(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};
jia=function(a,b,c){var d=new cs(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.j=d;this.B=c};
fs=function(a,b,c,d,e,f,h,l){this.D=a;this.N=b;this.C=c;this.K=d;this.j=e;this.G=f;this.B=h;this.Z=l};
lia=function(a){var b=a!==a.top,c=a.top===Aha(a),d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),aba(kia,function(h){return"function"===typeof f[h]})||(e=1));
return{Sn:f,compatibility:e,Hca:d}};
mia=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
nia=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Oe(b.innerWidth,b.innerHeight)).round():cca(b||window).round()}catch(d){return new g.Oe(-12245933,-12245933)}};
gs=function(a,b,c){try{a&&(b=b.top);var d=nia(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new cs(f,f,f,f);var h=eca(vf(b.document).j),l=h.x,m=h.y;return new cs(m,l+f,m+e,l)}catch(n){return new cs(-12245933,-12245933,-12245933,-12245933)}};
g.hs=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
is=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.ks=function(a,b,c){if("string"===typeof b)(b=js(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=js(c,d);f&&(c.style[f]=e)}};
js=function(a,b){var c=oia[b];if(!c){var d=Xba(b);c=d;void 0===a.style[d]&&(d=(g.Vc?"Webkit":ls?"Moz":g.Cf?"ms":null)+Zba(d),void 0!==a.style[d]&&(c=d));oia[b]=c}return c};
g.ms=function(a,b){var c=a.style[Xba(b)];return"undefined"!==typeof c?c:a.style[js(a,b)]||""};
ns=function(a,b){var c=mf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
os=function(a,b){return ns(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.qs=function(a,b,c){if(b instanceof g.Ke){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.ps(d,!1);a.style.top=g.ps(b,!1)};
rs=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
pia=function(a){if(g.Cf&&!g.Uc(8))return a.offsetParent;var b=mf(a),c=os(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=os(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.ts=function(a){var b=mf(a),c=new g.Ke(0,0);var d=b?mf(b):document;d=!g.Cf||g.Uc(9)||"CSS1Compat"==vf(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=rs(a);b=eca(vf(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
ria=function(a,b){var c=new g.Ke(0,0),d=Df(mf(a));if(!Rc(d,"parent"))return c;do{var e=d==b?g.ts(a):qia(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.us=function(a,b){a=sia(a);b=sia(b);return new g.Ke(a.x-b.x,a.y-b.y)};
qia=function(a){a=rs(a);return new g.Ke(a.left,a.top)};
sia=function(a){if(1==a.nodeType)return qia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Ke(a.clientX,a.clientY)};
g.vs=function(a,b,c){if(b instanceof g.Oe)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.ps(b,!0);a.style.height=g.ps(c,!0)};
g.ps=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.ws=function(a){var b=tia;if("none"!=os(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};
tia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Vc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=rs(a),new g.Oe(a.right-a.left,a.bottom-a.top)):new g.Oe(b,c)};
g.xs=function(a,b){a.style.display=b?"":"none"};
ys=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
uia=function(a){return new cs(a.top,a.right,a.bottom,a.left)};
via=function(a){var b=a.top||0,c=a.left||0;return new cs(b,c+(a.width||0),b+(a.height||0),c)};
zs=function(a){return null!=a&&0<=a&&1>=a};
wia=function(){var a=g.pc();return a?As("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".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};
xia=function(){this.C=!xr(Bq.top);this.isMobileDevice=wr()||tha();var a=zr();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.Vm(a[a.length-1].url)||"":"";this.j=new cs(0,0,0,0);this.D=new g.Oe(0,0);this.G=new g.Oe(0,0);this.N=new cs(0,0,0,0);this.K=0;this.Z=!1;this.B=!(!Bq||!lia(Bq).Sn);this.update(Bq)};
yia=function(a,b){b&&b.screen&&(a.D=new g.Oe(b.screen.width,b.screen.height))};
zia=function(a,b){var c=a.j?new g.Oe(ds(a.j),a.j.getHeight()):new g.Oe(0,0);b=void 0===b?Bq:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=q):m<p?(d=m,e=n):(d=p,e=q)}var r=new g.Oe(e,d)}catch(t){r=new g.Oe(-12245933,-12245933)}a.G=r};
Ds=function(){var a=Bs();if(0<a.K||a.Z)return!0;a=Ir().B.isVisible();var b=0===Eq(Cs);return a||b};
Bs=function(){return Fq(xia)};
Es=function(a){this.C=a;this.B=0;this.j=null};
Fs=function(a,b,c){this.C=a;this.Ra=void 0===c?"na":c;this.G=[];this.isInitialized=!1;this.D=new jia(-1,!0,this);this.j=this;this.Z=b;this.ma=this.Y=!1;this.Ea="uk";this.Ia=!1;this.K=!0};
Gs=function(a,b){g.Fb(a.G,b)||(a.G.push(b),b.Hz(a.j),b.jt(a.D),b.Vp()&&(a.Y=!0))};
Aia=function(a){a=a.j;a.TT();a.ST();var b=Bs();b.N=gs(!1,a.C,b.isMobileDevice);zia(Bs(),a.C);a.D.j=a.kX()};
Bia=function(a){a.Y=a.G.length?As(a.G,function(b){return b.Vp()}):!1};
Cia=function(a){var b=g.Lb(a.G);g.bc(b,function(c){c.jt(a.D)})};
Hs=function(a){var b=g.Lb(a.G);g.bc(b,function(c){c.Hz(a.j)});
a.j!=a||Cia(a)};
Is=function(a,b,c,d){this.element=a;this.j=new cs(0,0,0,0);this.D=new cs(0,0,0,0);this.B=b;this.Mc=c;this.va=d;this.ma=!1;this.timestamp=-1;this.N=new fs(b.D,this.element,this.j,new cs(0,0,0,0),0,0,Yr(),0)};
Js=function(a){this.G=!1;this.j=a;this.D=function(){}};
Dia=function(a,b,c){this.C=void 0===c?0:c;this.B=a;this.j=null==b?"":b};
Eia=function(a){switch(Math.trunc(a.C)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Fia=function(a,b){return a.C<b.C?!0:a.C>b.C?!1:a.B<b.B?!0:a.B>b.B?!1:typeof a.j<typeof b.j?!0:typeof a.j>typeof b.j?!1:a.j<b.j};
Ks=function(){this.C=0;this.j=[];this.B=!1};
Gia=function(a,b){(0,g.bc)(b.j,function(c){a.add(c.B,c.j,Eia(c))})};
Ls=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;yr(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
Ms=function(a){var b=Hia;a.B&&(g.Xb(a.j,function(c,d){return Fia(d,c)?1:Fia(c,d)?-1:0}),a.B=!1);
return Gr(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
Hia=function(a){var b=a.B;a=a.j;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))};
Iia=function(a){var b=void 0===b?!0:b;this.j=new Ks;void 0!==a&&Gia(this.j,a);b&&this.j.add("v","unreleased",-16)};
Jia=function(a){var b=[],c=[];g.bd(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)};
Kia=function(a){a=a.toString();Ir();Kha(a)};
Lia=function(){this.j=0};
Mia=function(a,b,c){(0,g.bc)(a.C,function(d){var e=a.j;if(!d.j&&(d.C(b,c),d.D())){d.j=!0;var f=d.B(),h=new Ks;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.G);d=Fq(Lia);h.add("i",d.j++);h.add("adk",e);Ls(h,f);e=new Iia(h);Kia(e)}})};
Ns=function(){this.B=this.C=this.D=this.j=0};
Os=function(a){this.B=a=void 0===a?Nia:a;this.j=g.Er(this.B,function(){return new Ns})};
Ps=function(a,b){return Oia(a,function(c){return c.j},void 0===b?!0:b)};
Rs=function(a,b){return Qs(a,b,function(c){return c.j})};
Pia=function(a,b){return Oia(a,function(c){return c.C},void 0===b?!0:b)};
Ss=function(a,b){return Qs(a,b,function(c){return c.C})};
Ts=function(a,b){return Qs(a,b,function(c){return c.B})};
Qia=function(a){g.bc(a.j,function(b){b.B=0})};
Oia=function(a,b,c){a=g.Er(a.j,function(d){return b(d)});
return c?a:Ria(a)};
Qs=function(a,b,c){var d=g.Eb(a.B,function(e){return b<=e});
return-1==d?0:c(a.j[d])};
Ria=function(a){return g.Er(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
ct=function(){this.B=new Os;this.Ra=new Ns;this.va=this.N=-1;this.fb=1E3;this.Za=new Os([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ea=this.Ca=-1};
dt=function(a,b){return Pia(a.B,void 0===b?!0:b)};
et=function(a,b,c,d){var e=void 0===e?!1:e;c=Vr(d,c);Dq(a,b,c,{capture:e})};
gt=function(a,b){b=ft(b);return 0===b?0:ft(a)/b};
ft=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Sia=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.Sf(a)||a){var d=mf(a),e=d&&Df(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
Tia=function(a,b,c){if(!a||!b)return!1;b=es(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;xr(window.top)&&window.top&&window.top.document&&(window=window.top);if(!mia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=mf(c))&&b.defaultView&&b.defaultView.frameElement)&&Sia(b,a);var d=a===c;a=!d&&a&&$f(a,function(e){return e===c});
return!(b||d||a)};
Uia=function(a,b,c,d){return Bs().C?!1:0>=ds(a)||0>=a.getHeight()?!0:c&&d?gia(208,function(){return Tia(a,b,c)}):!1};
ht=function(a,b,c){g.I.call(this);this.position=Via.clone();this.iJ=this.gI();this.CP=-2;this.Zca=Date.now();this.E0=-1;this.Jp=b;this.WI=null;this.eD=!1;this.xJ=null;this.opacity=-1;this.requestSource=c;this.hda=!1;this.JP=function(){};
this.T0=function(){};
this.Wj=new qha;this.Wj.Gt=a;this.Wj.j=a;this.qt=!1;this.qv={TP:null,SP:null};this.e0=!0;this.bG=null;this.Sz=this.A8=!1;Lr().K++;this.Vh=this.nO();this.z0=-1;this.fg=null;this.hasCompleted=this.x8=!1;this.Mc=new sq;pha(this.Mc);Wia(this);1==this.requestSource?uq(this.Mc,"od",1):uq(this.Mc,"od",0)};
Wia=function(a){a=a.Wj.Gt;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Xia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Yba()):!!a.getAttribute("data-"+Yba());b&&(Bs().B=!0)};
it=function(a,b){b!=a.Sz&&(a.Sz=b,a=Bs(),b?a.K++:0<a.K&&a.K--)};
Yia=function(a,b){if(a.fg){if(b.getName()===a.fg.getName())return;a.fg.dispose();a.fg=null}b=b.create(a.Wj.j,a.Mc,a.Vp());if(b=null!=b&&b.TL()?b:null)a.fg=b};
Zia=function(a,b,c){if(!a.WI||-1==a.Jp||-1===b.B||-1===a.WI.B)return 0;a=b.B-a.WI.B;return a>c?0:a};
$ia=function(a,b,c){if(a.fg){a.fg.xs();var d=a.fg.N,e=d.D,f=e.j;if(null!=d.K){var h=d.C;a.xJ=new g.Ke(h.left-f.left,h.top-f.top)}f=a.MK()?Math.max(d.j,d.G):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.bX(d);a.WI=d;a.Sa(f,b,c,!1,h,e,d.Z)}};
aja=function(a){if(a.eD&&a.bG){var b=1==vq(a.Mc,"od"),c=Bs().j,d=a.bG,e=a.fg?a.fg.getName():"ns",f=a.xJ,h=new g.Oe(ds(c),c.getHeight());c=a.MK();a={Pca:e,xJ:f,Gda:h,MK:c,Ie:a.Vh.Ie,Ada:b};if(b=d.B){b.xs();e=b.N;f=e.D.j;var l=h=null;null!=e.K&&f&&(h=e.C,h=new g.Ke(h.left-f.left,h.top-f.top),l=new g.Oe(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.G):e.j;c={Pca:b.getName(),xJ:h,Gda:l,MK:c,Ada:!1,Ie:e}}else c=null;c&&Mia(d,a,c)}};
bja=function(a,b,c){b&&(a.JP=b);c&&(a.T0=c)};
g.jt=function(){};
g.kt=function(a){return{value:a,done:!1}};
cja=function(){this.D=this.j=this.C=this.B=this.G=0};
dja=function(a){var b={};var c=g.kb()-a.G;b=(b.ptlt=c,b);(c=a.B)&&(b.pnk=c);(c=a.C)&&(b.pnc=c);(c=a.D)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b};
eja=function(){nq.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
lt=function(a){return zs(a.volume)&&0<a.volume};
mt=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 fja(f,b,c)}};
nt=function(a,b){return function(c){return b(c)?c[a]:void 0}};
gja=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}};
fja=function(a,b,c){return void 0===c||c?g.ot(a,function(d,e){return g.Fb(b,e)}):g.Er(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)})};
hja=function(){this.B=this.j=""};
ija=function(){};
pt=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.rd(c,a);return Ms(Ls(new Ks,c))};
jja=function(){var a={};this.B=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a.mut=[33554432,33554432],a.umutb=[67108864,67108864],a.tvoff=[134217728,134217728],a);this.j={};for(var b in this.B)0<this.B[b][1]&&(this.j[b]=0);this.C=0};
qt=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];0<d&&0==a.j[b]&&(a.j[b]=1)};
kja=function(a){var b=g.id(a.B),c=0,d;for(d in a.j)g.Fb(b,d)&&1==a.j[d]&&(c+=a.B[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.B[c][1]}return b};
rt=function(){this.j=this.B=0};
tt=function(){ct.call(this);this.C=new Ns;this.Na=this.Y=this.Ia=0;this.Z=-1;this.ib=new Ns;this.G=new Ns;this.j=new Os;this.K=this.D=-1;this.ma=new Ns;this.fb=2E3;this.Ma=new rt;this.Xa=new rt;this.Wa=new rt};
ut=function(a,b,c){var d=a.Na;$r||c||-1==a.Z||(d+=b-a.Z);return d};
mja=function(){this.C=!1};
vt=function(a,b){this.C=!1;this.D=a;this.Y=b;this.G=0};
wt=function(a,b){vt.call(this,a,b);this.N=[]};
nja=function(){};
xt=function(){};
zt=function(a,b,c,d){Is.call(this,a,b,c,d)};
At=function(a,b,c){Is.call(this,null,a,b,c);this.K=a.isActive();this.G=0};
Bt=function(a){return[a.top,a.left,a.bottom,a.right]};
Ct=function(a,b,c,d,e,f){f=void 0===f?new xt:f;ht.call(this,b,c,d);this.UQ=e;this.AN=0;this.di={};this.Sg=new jja;this.q1={};this.ij="";this.fb=null;this.Gb=!1;this.j=[];this.gr=f.B();this.K=f.C();this.D=null;this.C=-1;this.Ra=this.Y=void 0;this.va=this.ma=0;this.Ea=-1;this.ib=this.Za=!1;this.Ia=this.Z=this.B=this.JB=this.Nb=0;new Os;this.Ma=this.Wa=0;this.Xa=-1;this.rk=0;this.N=g.Sd;this.Ca=[this.gI()];this.Vb=2;this.Fx={};this.Fx.pause="p";this.Fx.resume="r";this.Fx.skip="s";this.Fx.mute="m";this.Fx.unmute=
"um";this.Fx.exitfullscreen="ef";this.G=null;this.tb=this.ub=!1;this.Ob=Math.floor(Date.now()/1E3-1704067200);this.Na=0};
Dt=function(a){a.hasCompleted=!0;0!=a.rk&&(a.rk=3)};
Et=function(a){return void 0===a?a:Number(a)?ys(a,3):0};
Ft=function(a,b){return a.Ca[null!=b&&b<a.Ca.length?b:a.Ca.length-1]};
oja=function(a){var b=!!vq(Lr().Mc,"umt");return a.Y||!b&&!a.Ra?0:1};
pja=function(a,b){a.On()?b=0:-1==a.Jp?b=0:(b-=a.Jp,b=b>Math.max(1E4,a.C/3)?0:b);var c=a.N(a)||{};c=void 0!==c.currentTime?c.currentTime:a.ma;var d=c-a.ma,e=0;0<=d?(a.va+=b,a.Ma+=Math.max(b-d,0),e=Math.min(d,a.va)):a.Wa+=Math.abs(d);0!=d&&(a.va=0);-1==a.Xa&&0<d&&(a.Xa=0<=bs?Yr()-bs:-1);a.ma=c;return e};
qja=function(a,b){As(a.K,function(c){return c.D==b.D})||a.K.push(b)};
rja=function(a){var b=Rs(a.Aj().j,1);return Gt(a,b)};
Gt=function(a,b,c){return 15E3<=b?!0:a.Za?(void 0===c?0:c)?!0:0<a.C?b>=a.C/2:0<a.Ea?b>=a.Ea:!1:!1};
sja=function(a){var b=ys(a.Vh.Ie,2),c=a.Sg.C,d=a.Vh,e=Ft(a),f=Et(e.D),h=Et(e.K),l=Et(d.volume),m=ys(e.N,2),n=ys(e.va,2),p=ys(d.Ie,2),q=ys(e.Ca,2),r=ys(e.Ea,2);d=ys(d.Gk,2);a=a.Vs().clone();a.round();e=dt(e,!1);return{Fda:b,aE:c,mJ:f,cJ:h,KC:l,nJ:m,eJ:n,Ie:p,pJ:q,fJ:r,Gk:d,position:a,rJ:e}};
uja=function(a,b){tja(a.j,b,function(){return{Fda:0,aE:void 0,mJ:-1,cJ:-1,KC:-1,nJ:-1,eJ:-1,Ie:-1,pJ:-1,fJ:-1,Gk:-1,position:void 0,rJ:[]}});
a.j[b]=sja(a)};
tja=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
It=function(a,b,c){var d=a.q1[b];if(null!=d)return d;d=vja(a,b);var e=ld(Ht,function(f){return f==b});
a=wja(a,d,d,c,xja[Ht[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
Jt=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.qt)return{"if":0,vs:0};var f=a.Vs().clone();f.round();var h=Bs(),l=Lr(),m=a.Aj(),n=a.fg?a.fg.getName():"ns",p={};p["if"]=h.C?1:void 0;p.sdk=a.D?a.D:void 0;p.t=a.Zca;p.p=[f.top,f.left,f.bottom,f.right];p.tos=Ps(m.B,!1);p.mtos=dt(m);p.mcvt=m.Ra.C;p.ps=void 0;f=ut(m,Yr(),a.On());p.vht=f;p.mut=m.ib.C;p.a=Et(a.Vh.volume);p.mv=Et(m.K);p.fs=a.Sz?1:0;p.ft=m.ma.j;p.at=m.G.j;p.as=0<m.D?1:0;p.atos=Ps(m.j);p.ssb=Ps(m.Za,!1);p.amtos=Pia(m.j,!1);p.uac=a.Nb;p.vpt=m.C.j;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=Gt(a,m.C.j,!0)?1:0;p.efpf=a.Vb;if("gsv"==n||"nis"==n)n=a.fg,0<n.G&&(p.nnut=n.G);p.tcm=oja(a);p.nmt=a.Wa;p.bt=a.Ma;p.pst=a.Xa;p.vpaid=a.Y;p.dur=a.C;p.vmtime=a.ma;p.is=a.Sg.C;1<=a.j.length&&(p.i0=a.j[0].aE,p.a0=[a.j[0].KC],p.c0=[a.j[0].Ie],p.ss0=[a.j[0].Gk],n=a.j[0].position,p.p0=n?Bt(n):void 0);2<=a.j.length&&(p.i1=a.j[1].aE,p.a1=Jt(a.j[1].mJ,a.j[1].KC,a.j[1].cJ),p.c1=Jt(a.j[1].nJ,a.j[1].Ie,a.j[1].eJ),p.ss1=Jt(a.j[1].pJ,a.j[1].Gk,a.j[1].fJ),n=a.j[1].position,p.p1=n?
Bt(n):void 0,p.mtos1=a.j[1].rJ);3<=a.j.length&&(p.i2=a.j[2].aE,p.a2=Jt(a.j[2].mJ,a.j[2].KC,a.j[2].cJ),p.c2=Jt(a.j[2].nJ,a.j[2].Ie,a.j[2].eJ),p.ss2=Jt(a.j[2].pJ,a.j[2].Gk,a.j[2].fJ),n=a.j[2].position,p.p2=n?Bt(n):void 0,p.mtos2=a.j[2].rJ);4<=a.j.length&&(p.i3=a.j[3].aE,p.a3=Jt(a.j[3].mJ,a.j[3].KC,a.j[3].cJ),p.c3=Jt(a.j[3].nJ,a.j[3].Ie,a.j[3].eJ),p.ss3=Jt(a.j[3].pJ,a.j[3].Gk,a.j[3].fJ),n=a.j[3].position,p.p3=n?Bt(n):void 0,p.mtos3=a.j[3].rJ);p.cs=lja(a.Sg);b&&(p.ic=kja(a.Sg),p.dvpt=m.C.B,p.dvs=Ts(m.B,
.5),p.dfvs=Ts(m.B,1),p.davs=Ts(m.j,.5),p.dafvs=Ts(m.j,1),c&&(m.C.B=0,Qia(m.B),Qia(m.j)),a.Wq()&&(p.dtos=m.Ia,p.dav=m.Y,p.dtoss=a.AN+1,c&&(m.Ia=0,m.Y=0,a.AN++)),p.dat=m.G.B,p.dft=m.ma.B,c&&(m.G.B=0,m.ma.B=0));p.ps=[h.G.width,h.G.height];p.bs=[ds(h.j),h.j.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.JB&&(p.vds=a.JB);if(0<a.K.length||a.gr)b=g.Lb(a.K),a.gr&&b.push(a.gr),p.pings=g.Er(b,function(q){return q.toString()});
b=g.Er(g.ot(a.K,function(q){return q.K()}),function(q){return q.getId()});
vaa(b);p.ces=b;a.B&&(p.vmer=a.B);a.Z&&(p.vmmk=a.Z);a.Ia&&(p.vmiec=a.Ia);p.avms=a.fg?a.fg.getName():"ns";a.fg&&g.rd(p,a.fg.Ss());d?(p.c=ys(a.Vh.Ie,2),p.ss=ys(a.Vh.Gk,2)):p.tth=Yr()-yja;p.mc=ys(m.va,2);p.nc=ys(m.N,2);p.mv=Et(m.K);p.nv=Et(m.D);p.lte=ys(a.CP,2);d=Ft(a,e);dt(m);p.qmtos=dt(d);p.qnc=ys(d.N,2);p.qmv=Et(d.K);p.qnv=Et(d.D);p.qas=0<d.D?1:0;p.qi=a.ij;p.avms||(p.avms="geo");p.psm=m.Ma.j;p.psv=m.Ma.getValue();p.psfv=m.Xa.getValue();p.psa=m.Wa.getValue();l=nha(l.Mc);l.length&&(p.veid=l);a.G&&g.rd(p,
dja(a.G));p.avas=a.TH();p.vs=a.nX();p.co=zja(a);return p};
vja=function(a,b){if(g.Fb(Aja,b))return!0;var c=a.di[b];return void 0!==c?(a.di[b]=!0,!c):!1};
zja=function(a){var b=a.Na.toString(10).padStart(2,"0");b=""+a.Ob+b;99>a.Na&&a.Na++;return b};
Cja=function(){this.j={};var a=Df();Kt(this,a,document);var b=Bja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Kt(this,c,c.document);Kt(this,a.top,a.top.document)}}catch(d){}};
Bja=function(){var a=document.documentElement;try{if(!xr(Df().top))return"2";var b=[],c=Df(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"}};
Kt=function(a,b,c){et(c,"mousedown",function(){return Dja(a)},301);
et(b,"scroll",function(){return Eja(a)},302);
et(c,"touchmove",function(){return Fja(a)},303);
et(c,"mousemove",function(){return Gja(a)},304);
et(c,"keydown",function(){return Hja(a)},305)};
Dja=function(a){g.bd(a.j,function(b){1E5<b.C||++b.C})};
Eja=function(a){g.bd(a.j,function(b){1E5<b.j||++b.j})};
Fja=function(a){g.bd(a.j,function(b){1E5<b.j||++b.j})};
Hja=function(a){g.bd(a.j,function(b){1E5<b.B||++b.B})};
Gja=function(a){g.bd(a.j,function(b){1E5<b.D||++b.D})};
Ija=function(){this.j=[];this.B=[]};
Lt=function(a,b){return g.Db(a.j,function(c){return c.ij==b})};
Jja=function(a,b){return b?g.Db(a.j,function(c){return c.Wj.Gt==b}):null};
Kja=function(a,b){return g.Db(a.B,function(c){return 2==c.Ap()&&c.ij==b})};
Nt=function(){var a=Mt;return 0==a.j.length?a.B:0==a.B.length?a.j:g.Kb(a.B,a.j)};
Lja=function(a,b){a=1==b.Ap()?a.j:a.B;var c=Cb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.fg&&b.fg.KG(),b.dispose(),!0):!1};
Mja=function(a){var b=Mt;if(Lja(b,a)){switch(a.Ap()){case 0:var c=function(){return null};
case 2:c=function(){return Kja(b,a.ij)};
break;case 1:c=function(){return Lt(b,a.ij)}}for(var d=c();d;d=c())Lja(b,d)}};
Nja=function(a){var b=Mt;a=g.ot(a,function(c){return!Jja(b,c.Wj.Gt)});
b.j.push.apply(b.j,g.pa(a))};
Oja=function(a){var b=[];g.bc(a,function(c){As(Mt.j,function(d){return d.Wj.Gt===c.Wj.Gt&&d.ij===c.ij})||(Mt.j.push(c),b.push(c))})};
Ot=function(){this.j=this.B=null};
Pja=function(a,b){function c(d,e){b(d,e)}
if(null==a.B)return!1;a.j=g.Db(a.B,function(d){return null!=d&&d.UT()});
a.j&&(a.j.init(c)?Aia(a.j.j):b(a.j.j.yz(),a.j));return null!=a.j};
Pt=function(a){a=Qja(a);Js.call(this,a.length?a[a.length-1]:new Fs(Bq,0));this.C=a;this.B=null};
Qja=function(a){if(!a.length)return[];a=(0,g.ot)(a,function(c){return null!=c&&c.fC()});
for(var b=1;b<a.length;b++)Gs(a[b-1],a[b]);return a};
Qt=function(a,b,c,d){Is.call(this,a,b,c,d);this.Y=this.Z=this.G=this.K=this.C=null};
Rt=function(a){return a.C&&a.C.takeRecords?a.C.takeRecords():[]};
Sja=function(a){if(!a.element)return!1;var b=a.element,c=a.B.j.C,d=Lr().j.j;a.C=new c.IntersectionObserver(Kr(d,function(e){return St(a,e)}),Rja);
d=Kr(d,function(){a.C.unobserve(b);a.C.observe(b);St(a,Rt(a))});
c.ResizeObserver?(a.K=new c.ResizeObserver(d),a.K.observe(b)):c.MutationObserver&&(a.G=new g.Sa.MutationObserver(d),a.G.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.C.observe(b);St(a,Rt(a));return!0};
St=function(a,b){try{if(b.length){a.Z||(a.Z=Yr());var c=Tja(b),d=ria(a.element,a.B.j.C),e=d.x,f=d.y;a.j=new cs(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=uia(c.intersectionRect);a.D=es(h,a.j.left-h.left,a.j.top-h.top)}}catch(l){a.KG(),Xr(299,l)}};
Tja=function(a){return Gr(a,function(b,c){return b.time>c.time?b:c},a[0])};
Tt=function(a){a=void 0===a?Bq:a;Js.call(this,new Fs(a,2))};
Ut=function(){var a=Uja();Fs.call(this,Bq.top,a,"geo")};
Uja=function(){Lr();var a=Bs();return a.C||a.B?0:2};
Vja=function(){};
Vt=function(){this.done=!1;this.j={m5:0,oV:0,oob:0,pW:0,VO:-1,Z5:0,Y5:0,a6:0,Mca:0};this.G=null;this.K=!1;this.C=null;this.N=0;this.B=new Es(this)};
Xt=function(){var a=Wt;a.K||(a.K=!0,Wja(a,function(){return a.D.apply(a,g.pa(g.Ia.apply(0,arguments)))}),a.D())};
Xja=function(){Fq(Vja);var a=Fq(Ot);null!=a.j&&a.j.j?Aia(a.j.j):Bs().update(Bq)};
Yt=function(a,b,c){if(!a.done&&(a.B.cancel(),0!=b.length)){a.C=null;try{Xja();var d=Yr();Lr().G=d;if(null!=Fq(Ot).j)for(var e=0;e<b.length;e++)$ia(b[e],d,c);for(d=0;d<b.length;d++)aja(b[d]);++a.j.pW}finally{c?g.bc(b,function(f){f.Vh.Ie=0}):a.B.schedule()}}};
Wja=function(a,b){if(!a.G){b=Vr(142,b);Ir();var c;Cs.visibilityState?c="visibilitychange":Cs.mozVisibilityState?c="mozvisibilitychange":Cs.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Dq(Cs,c,b,{capture:!1})&&(a.G=b)}};
Yja=function(){var a=Fq(Ot);if(null!=a.j){var b=a.j;g.bc(Nt(),function(c){return Yia(c,b)})}};
Zja=function(a,b){a=a.N;$r&&(a+=b-as);return a};
$ja=function(a){a=void 0===a?function(){return{}}:a;
Sr.xW="av-js";Rr.j=.01;fia([function(b){var c=Lr(),d={};d=(d.bin=c.B,d.type="error",d);c=wq(c.Mc);if(!Wt.C){var e=Wt,f=Bq.document,h=0<=Zr?Yr()-Zr:-1,l=Yr();-1==e.j.VO&&(h=l);var m=Bs(),n=Lr(),p=wq(n.Mc),q=Nt();try{if(0<q.length){var r=m.j;r&&(p.bs=[ds(r),r.getHeight()]);var t=m.G;t&&(p.ps=[t.width,t.height]);Bq.screen&&(p.scs=[Bq.screen.width,Bq.screen.height])}else p.url=encodeURIComponent(Bq.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512)));
p.tt=h;p.pt=Zr;p.bin=n.B;void 0!==Bq.google_osd_load_pub_page_exp&&(p.olpp=Bq.google_osd_load_pub_page_exp);p.deb=[1,e.j.m5,e.j.oV,e.j.pW,e.j.VO,0,e.B.B,e.j.Z5,e.j.Y5,e.j.a6,e.j.Mca,-1].join(";");p.tvt=Zja(e,l);m.B&&(p.inapp=1);if(null!==Bq&&Bq!=Bq.top){0<q.length&&(p.iframe_loc=encodeURIComponent(Bq.location.href.substring(0,512)));var v=m.N;p.is=[ds(v),v.getHeight()]}}catch(x){p.error=1}Wt.C=p}r=g.pd(Wt.C);t=Lr().j;1==vq(t.C,"prf")?(v=new Jr,e=t.j,f=0,-1<e.j&&(f=e.C.j.now()-e.j),v=Jj(v,1,pi(e.D+
f),0),e=t.j,v=Jj(v,5,ti(-1<e.j?e.B+1:e.B),0),v=Jj(v,2,yi(t.B.j.C()),"0"),v=Jj(v,3,yi(t.B.j.B()),"0"),t=Jj(v,4,yi(t.B.j.j()),"0"),v={},t=(v.pf=g.Dg(t.j()),v)):t={};g.rd(r,t);g.rd(b,d,c,r,a())}])};
bka=function(){var a=aka||Bq;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("&")};
Zt=function(){var a="youtube.player.web_20240305_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20240305_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20240305_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20240305_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20240305_00_RC00".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};
cka=function(){return"av.default_js".includes("ima_html5_sdk")?{jp:"ima",mp:null}:"av.default_js".includes("ima_native_sdk")?{jp:"nima",mp:null}:"av.default_js".includes("admob-native-video-javascript")?{jp:"an",mp:null}:"youtube.player.web_20240305_00_RC00".includes("cast_js_sdk")?{jp:"cast",mp:Zt()}:"youtube.player.web_20240305_00_RC00".includes("youtube.player.web")?{jp:"yw",mp:Zt()}:"youtube.player.web_20240305_00_RC00".includes("outstream_web_client")?{jp:"out",mp:Zt()}:"youtube.player.web_20240305_00_RC00".includes("drx_rewarded_web")?
{jp:"r",mp:Zt()}:"youtube.player.web_20240305_00_RC00".includes("gam_native_web_video")?{jp:"n",mp:Zt()}:"youtube.player.web_20240305_00_RC00".includes("admob_interstitial_video")?{jp:"int",mp:Zt()}:{jp:"j",mp:null}};
bu=function(a,b){var c={sv:"961"};null!==$t&&(c.v=$t);c.cb=dka;c.nas=Mt.j.length;c.msg=a;void 0!==b&&(a=eka(b))&&(c.e=au[a]);return c};
cu=function(a){return ec(a,"custom_metric_viewable")};
eka=function(a){var b=cu(a)?"custom_metric_viewable":a.toLowerCase();return ld(Ht,function(c){return c==b})};
fka=function(){this.j=void 0;this.B=!1;this.C=0;this.D=-1;this.G="tos"};
ika=function(a){try{var b=a.split(",");return b.length>g.id(gka).length?null:Gr(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===hka[d[0]]||!hka[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
jka=function(a,b){if(void 0==a.j)return 0;switch(a.G){case "mtos":return a.B?Ss(b.j,a.j):Ss(b.B,a.j);case "tos":return a.B?Rs(b.j,a.j):Rs(b.B,a.j)}return 0};
du=function(a,b,c,d){vt.call(this,b,d);this.N=a;this.Z=c};
eu=function(){};
fu=function(a){vt.call(this,"fully_viewable_audible_half_duration_impression",a)};
gu=function(a){this.j=a};
hu=function(a,b){vt.call(this,a,b)};
iu=function(a){wt.call(this,"measurable_impression",a)};
ju=function(){gu.apply(this,arguments)};
ku=function(a,b,c){At.call(this,a,b,c)};
lu=function(a){a=void 0===a?Bq:a;Js.call(this,new Fs(a,2))};
mu=function(a,b,c){At.call(this,a,b,c)};
nu=function(a){a=void 0===a?Bq:a;Js.call(this,new Fs(a,2))};
ou=function(){Fs.call(this,Bq,2,"mraid");this.Ma=0;this.va=this.Ca=!1;this.N=null;this.B=lia(this.C);this.D.j=new cs(0,0,0,0);this.Na=!1};
pu=function(a,b,c){a.Vt("addEventListener",b,c)};
nka=function(a){Lr().D=!!a.Vt("isViewable");pu(a,"viewableChange",kka);"loading"===a.Vt("getState")?pu(a,"ready",lka):mka(a)};
mka=function(a){"string"===typeof a.B.Sn.AFMA_LIDAR?(a.Ca=!0,oka(a)):(a.B.compatibility=3,a.N="nc",a.xj("w"))};
oka=function(a){a.va=!1;var b=1==vq(Lr().Mc,"rmmt"),c=!!a.Vt("isViewable");(b?!c:1)&&Ir().setTimeout(Wr(524,function(){a.va||(pka(a),Xr(540,Error()),a.N="mt",a.xj("w"))}),500);
qka(a);pu(a,a.B.Sn.AFMA_LIDAR,rka)};
qka=function(a){var b=1==vq(Lr().Mc,"sneio"),c=void 0!==a.B.Sn.AFMA_LIDAR_EXP_1,d=void 0!==a.B.Sn.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.B.Sn.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Sn.AFMA_LIDAR_EXP_1=!b)};
pka=function(a){a.Vt("removeEventListener",a.B.Sn.AFMA_LIDAR,rka);a.Ca=!1};
ska=function(a,b){if("loading"===a.Vt("getState"))return new g.Oe(-1,-1);b=a.Vt(b);if(!b)return new g.Oe(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Oe(-1,-1):new g.Oe(a,b)};
lka=function(){try{var a=Fq(ou);a.Vt("removeEventListener","ready",lka);mka(a)}catch(b){Xr(541,b)}};
rka=function(a,b){try{var c=Fq(ou);c.va=!0;var d=a?new cs(a.y,a.x+a.width,a.y+a.height,a.x):new cs(0,0,0,0);var e=Yr(),f=Ds();var h=new jia(e,f,c);h.j=d;h.volume=b;c.jt(h)}catch(l){Xr(542,l)}};
kka=function(a){var b=Lr(),c=Fq(ou);a&&!b.D&&(b.D=!0,c.Na=!0,c.N&&c.xj("w",!0))};
qu=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.K=(a.start=this.d8,a.firstquartile=this.Y7,a.midpoint=this.a8,a.thirdquartile=this.e8,a.complete=this.V7,a.error=this.W7,a.pause=this.TQ,a.resume=this.D_,a.skip=this.c8,a.viewable_impression=this.Bp,a.mute=this.GB,a.unmute=this.GB,a.fullscreen=this.Z7,a.exitfullscreen=this.X7,a.fully_viewable_audible_half_duration_impression=this.Bp,a.measurable_impression=this.Bp,a.abandon=this.TQ,a.engagedview=this.Bp,a.impression=this.Bp,a.creativeview=
this.Bp,a.progress=this.GB,a.custom_metric_viewable=this.Bp,a.bufferstart=this.TQ,a.bufferfinish=this.D_,a.audio_measurable=this.Bp,a.audio_audible=this.Bp,a);a={};this.N=(a.overlay_resize=this.b8,a.abandon=this.IO,a.close=this.IO,a.collapse=this.IO,a.overlay_unmeasurable_impression=function(b){return It(b,"overlay_unmeasurable_impression",Ds())},a.overlay_viewable_immediate_impression=function(b){return It(b,"overlay_viewable_immediate_impression",Ds())},a.overlay_unviewable_impression=function(b){return It(b,
"overlay_unviewable_impression",Ds())},a.overlay_viewable_end_of_session_impression=function(b){return It(b,"overlay_viewable_end_of_session_impression",Ds())},a);
Lr().B=3;tka(this)};
ru=function(a,b,c,d){a=a.tF(null,d,!0,b);a.D=c;Nja([a]);return a};
uka=function(a,b,c){lha(b);var d=a.j;g.bc(b,function(e){var f=g.Er(e.criteria,function(h){var l=ika(h);if(null==l)h=null;else if(h=new fka,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.B=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=Eaa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h});
As(f,function(h){return null==h})||qja(c,new du(e.id,e.event,f,d))})};
vka=function(){var a=[],b=Lr();a.push(Fq(Ut));vq(b.Mc,"mvp_lv")&&a.push(Fq(ou));b=[new lu,new nu];b.push(new Pt(a));b.push(new Tt(Bq));return b};
wka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=Yr(),c=Lr(),d=Bs();Zr=b;c.C=79463069;"o"!==a.B&&(aka=Aha(Bq));if(Lha()){Wt.j.oV=0;Wt.j.VO=Yr()-b;var e=vka(),f=Fq(Ot);f.B=e;Pja(f,function(){tu()})?Wt.done||(Yja(),Gs(f.j.j,a),Xt()):d.C?tu():Xt()}else uu=!0}catch(h){throw Mt.reset(),h;
}}};
wu=function(a){Wt.B.cancel();vu=a;Wt.done=!0};
xu=function(a){if(a.B)return a.B;var b=Fq(Ot).j;if(b)switch(b.getName()){case "nis":a.B="n";break;case "gsv":a.B="m"}a.B||(a.B="h");return a.B};
yu=function(a,b,c){if(null==a.j)return b.JB|=4,!1;a=xka(a.j,c,b);b.JB|=a;return 0==a};
tu=function(){var a=[new Tt(Bq)],b=Fq(Ot);b.B=a;Pja(b,function(){wu("i")})?Wt.done||(Yja(),Xt()):wu("i")};
yka=function(a,b){if(!a.Gb){var c=It(a,"start",Ds());c=a.UQ.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="961";null!==$t&&(d.v=$t);Xm(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=bka();Xm(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//pagead2.googlesyndication.com/pagead/gen_204?"+Ms(Ls(new Ks,d));Kia(b);a.Gb=!0}};
zu=function(a,b,c){Yt(Wt,[a],!Ds());uja(a,c);4!=c&&tja(a.Ca,c,a.gI);return It(a,b,Ds())};
tka=function(a){$ja(function(){var b=zka();null!=a.B&&(b.sdk=a.B);var c=Fq(Ot);null!=c.j&&(b.avms=c.j.getName());return b})};
Aka=function(a,b,c,d){var e=Jja(Mt,c);null!==e&&e.ij!==b&&(a.wH(e),e=null);e||(b=a.tF(c,Yr(),!1,b),0==Mt.B.length&&(Lr().C=79463069),Oja([b]),e=b,e.D=xu(a),d&&(e.fb=d));return e};
Bka=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
zka=function(){var a=Bs(),b={},c={},d={};return Object.assign({},(b.sv="961",b),null!==$t&&(c.v=$t,c),(d["if"]=a.C?"1":"0",d.nas=String(Mt.j.length),d))};
Au=function(a){vt.call(this,"audio_audible",a)};
Bu=function(a){wt.call(this,"audio_measurable",a)};
Cu=function(){gu.apply(this,arguments)};
Du=function(){};
Cka=function(a){this.j=a};
xka=function(a,b,c){a=a.B();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==$t&&(d.v=$t,d),(e.sv="961",e.cb=dka,e.e=Dka(b),e));e=It(c,b,Ds());g.rd(d,e);c.q1[b]=e;d=2==c.Ap()?Jia(d).join("&"):c.UQ.j(d).j;try{return a(c.ij,d,b),0}catch(f){return 2}}else return 1};
Dka=function(a){var b=cu(a)?"custom_metric_viewable":a;a=ld(Ht,function(c){return c==b});
return au[a]};
Eu=function(){qu.call(this);this.G=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)&&uka(a,c,b)};
Fka=function(a,b,c){var d=Lt(Mt,b);d||(d=c.opt_nativeTime||-1,d=ru(a,b,xu(a),d),c.opt_osdId&&(d.fb=c.opt_osdId));return d};
Gka=function(a,b,c){var d=Lt(Mt,b);d||(d=ru(a,b,"n",c.opt_nativeTime||-1));return d};
Hka=function(a,b){var c=Lt(Mt,b);c||(c=ru(a,b,"h",-1));return c};
Ika=function(a){Lr();switch(xu(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.rd(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.nI(b,c);c=f?f.UQ:a.uN();if(e.opt_bounds)return c.j(bu("ol",d));if(void 0!==d)if(void 0!==eka(d))if(uu)a=bu("ue",d);else if(wka(a),"i"==vu)a=bu("i",d),a["if"]=0;else if(b=a.nI(b,e)){b:{"i"==vu&&(b.qt=!0);f=e.opt_fullscreen;void 0!==f&&it(b,!!f);var h;if(f=!Bs().B)(f=jc(g.pc(),"CrKey")||jc(g.pc(),"PlayStation")||jc(g.pc(),"Roku")||wia()||jc(g.pc(),"Xbox"))||(f=g.pc(),f=jc(f,"AppleTV")||jc(f,
"Apple TV")||jc(f,"CFNetwork")||jc(f,"tvOS")),f||(f=g.pc(),f=jc(f,"sdk_google_atv_x86")||jc(f,"Android TV")),f=!f;f&&(Ir(),f=0===Eq(Cs));if(h=f){switch(b.Ap()){case 1:yka(b,"pv");break;case 2:a.oR(b)}wu("pv")}f=d.toLowerCase();if(h=!h)h=vq(Lr().Mc,"ssmol")&&"loaded"===f?!1:g.Fb(Jka,f);if(h&&0==b.rk){"i"!=vu&&(Wt.done=!1);h=void 0!==e?e.opt_nativeTime:void 0;bs=h="number"===typeof h?h:Yr();b.eD=!0;var l=Ds();b.rk=1;b.di={};b.di.start=!1;b.di.firstquartile=!1;b.di.midpoint=!1;b.di.thirdquartile=!1;
b.di.complete=!1;b.di.resume=!1;b.di.pause=!1;b.di.skip=!1;b.di.mute=!1;b.di.unmute=!1;b.di.viewable_impression=!1;b.di.measurable_impression=!1;b.di.fully_viewable_audible_half_duration_impression=!1;b.di.fullscreen=!1;b.di.exitfullscreen=!1;b.AN=0;l||(b.Aj().Z=h);Yt(Wt,[b],!l)}(h=b.Fx[f])&&qt(b.Sg,h);vq(Lr().Mc,"fmd")||g.Fb(Kka,f)&&b.gr&&b.gr.B(b,null);switch(b.Ap()){case 1:var m=cu(f)?a.K.custom_metric_viewable:a.K[f];break;case 2:m=a.N[f]}if(m&&(d=m.call(a,b,e,d),vq(Lr().Mc,"fmd")&&g.Fb(Kka,f)&&
b.gr&&b.gr.B(b,null),void 0!==d)){e=bu(void 0,f);g.rd(e,d);d=e;break b}d=void 0}3==b.rk&&a.wH(b);a=d}else a=bu("nf",d);else a=void 0;else uu?a=bu("ue"):f?(a=bu(),g.rd(a,wja(f,!0,!1,!1))):a=bu("nf");return"string"===typeof a?c.j():c.j(a)};
Mka=function(a,b){b&&(a.C=b)};
Nka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.B,b};
Oka=function(a,b,c){c=void 0===c?{}:c;a=Lka(Fq(Eu),b,c,a);return Nka(a)};
Pka=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.C=!b&&/[?&]ae=1(&|$)/.test(a);this.D=!b&&/[?&]ae=2(&|$)/.test(a);if((this.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.B=c}};
Ska=function(a){if(g.fc(g.gf(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Eo(a)}catch(c){return null!=g.Db(Qka,function(d){return 0<a.search(d)})}return b.K.match(Rka)?!0:null!=g.Db(Qka,function(c){return null!=a.match(c)})};
g.Fu=function(a,b){return a.replace(Tka,function(c,d){try{var e=g.nd(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.fc(g.gf(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
Hu=function(a){g.Ld.call(this);var b=this;this.G=this.B=0;this.Pn=null!=a?a:{Xi:function(e,f){return setTimeout(e,f)},
Sj:function(e){clearTimeout(e)}};
var c,d;this.j=null!=(d=null==(c=window.navigator)?void 0:c.onLine)?d:!0;this.C=function(){return g.H(function(e){return g.z(e,Gu(b),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.G||this.xf()};
Uka=function(){var a=g.Iu;Hu.instance||(Hu.instance=new Hu(a));return Hu.instance};
Gu=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,h;return g.H(function(l){switch(l.j){case 1:return d=window.AbortController?new window.AbortController:void 0,f=null==(e=d)?void 0:e.signal,h=!1,g.Ba(l,2,3),d&&(a.B=a.Pn.Xi(function(){d.abort()},b||2E4)),g.z(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:h=!0;case 3:g.Ea(l);a.D=void 0;a.B&&(a.Pn.Sj(a.B),a.B=0);h!==a.j&&(a.j=h,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(h);g.Fa(l,0);break;case 2:g.Da(l),h=!1,l.Ka(3)}})})};
Ju=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};
Ku=function(a){a.setAttribute("role","link")};
Mu=function(a,b){Array.isArray(b)&&(b=b.join(" "));""===b||void 0==b?(Lu||(b={},Lu=(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=Lu,"label"in b?a.setAttribute("aria-label",b.label):a.removeAttribute("aria-label")):a.setAttribute("aria-label",b)};
Nu=function(a){a=a.getAttribute("aria-label");return null==a||void 0==a?"":String(a)};
g.Ou=function(a,b,c){g.I.call(this);this.j=null;this.D=!1;this.K=a;this.G=c;this.B=b||window;this.C=(0,g.ib)(this.N3,this)};
g.Pu=function(a){a.isActive()||a.start()};
Wka=function(a){a=a.B;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
Xka=function(a){a=a.B;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.Qu=function(a,b,c){g.I.call(this);this.j=a;this.gj=b||0;this.B=c;this.C=(0,g.ib)(this.XT,this)};
g.Ru=function(a,b){a.isActive()||a.start(b)};
g.Su=function(a){a.stop();a.XT()};
g.Tu=function(a){a.isActive()&&g.Su(a)};
Uu=function(a,b){this.j=a[g.Sa.Symbol.iterator]();this.B=b};
Yka=function(a,b){return new Uu(a,b)};
Zka=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
Vu=function(a){return a.classList?a.classList:Zka(a).match(/\S+/g)||[]};
g.Wu=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Xu=function(a,b){return a.classList?a.classList.contains(b):g.Fb(Vu(a),b)};
g.Yu=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Xu(a,b)){var c=Zka(a);g.Wu(a,c+(0<c.length?" "+b:b))}};
g.Zu=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.Yu(a,e)});
else{var c={};Array.prototype.forEach.call(Vu(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.Wu(a,b)}};
g.$u=function(a,b){a.classList?a.classList.remove(b):g.Xu(a,b)&&g.Wu(a,Array.prototype.filter.call(Vu(a),function(c){return c!=b}).join(" "))};
g.av=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.$u(a,c)}):g.Wu(a,Array.prototype.filter.call(Vu(a),function(c){return!g.Fb(b,c)}).join(" "))};
g.bv=function(a,b,c){c?g.Yu(a,b):g.$u(a,b)};
$ka=function(a,b){var c=!g.Xu(a,b);g.bv(a,b,c)};
g.cv=function(){g.Ld.call(this);this.j=0;this.endTime=this.startTime=null};
ala=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.ks(a,"transition",b.join(","))};
dv=function(a,b,c,d,e){g.cv.call(this);this.B=a;this.G=b;this.K=c;this.D=d;this.N=Array.isArray(e)?e:[e]};
bla=function(a,b,c,d){return new dv(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
ela=function(a){a=kc(a);if(""==a)return null;var b=String(a.slice(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in dla))return null}return a};
lv=function(a,b){a=g.Sa[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
fla=function(a){var b=g.Sa.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
gla=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Cf&&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)};
lla=function(a){if(!a)return mv;var b=document.createElement("div").style;hla(a).forEach(function(c){var d=g.Vc&&c in ila?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");ec(d,"--")||ec(d,"var")||(c=gla(jla,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=ela(c),null!=c&&gla(kla,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return new g.me(b.cssText||"",Ge)};
hla=function(a){g.ab(a)?a=g.Lb(a):(a=g.id(a),g.Ib(a,"cssText"));return a};
g.ov=function(a){var b,c=b=0,d=!1;a=a.split(mla);for(var e=0;e<a.length;e++){var f=a[e];g.nv.test(f)?(b++,c++):nla.test(f)?d=!0:ola.test(f)?c++:pla.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
tv=function(a){if(a instanceof pv||a instanceof qv||a instanceof rv)return a;if("function"==typeof a.next)return new pv(function(){return a});
if("function"==typeof a[Symbol.iterator])return new pv(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Lk)return new pv(function(){return a.Lk()});
throw Error("Not an iterator or iterable.");};
pv=function(a){this.B=a};
qv=function(a){this.B=a};
rv=function(a){pv.call(this,function(){return a});
this.C=a};
uv=function(a,b,c,d,e,f,h,l){this.j=a;this.C=b;this.x1=c;this.y1=d;this.x2=e;this.y2=f;this.B=h;this.D=l};
vv=function(a,b){if(0==b)return a.j;if(1==b)return a.B;var c=Je(a.j,a.x1,b),d=Je(a.x1,a.x2,b);a=Je(a.x2,a.B,b);c=Je(c,d,b);d=Je(d,a,b);return Je(c,d,b)};
qla=function(a,b){var c=(b-a.j)/(a.B-a.j);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,h=0;8>h;h++){f=vv(a,c);var l=(vv(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=vv(a,c);return c};
wv=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
xv=function(a){return(a=a.exec(g.pc()))?a[1]:""};
yv=function(a){return 0<=g.oc(rla,a)};
g.zv=function(a){g.I.call(this);this.K=1;this.C=[];this.D=0;this.j=[];this.B={};this.N=!!a};
sla=function(a,b,c){g.ig(function(){a.apply(b,c)})};
g.Av=function(a){this.j=a};
Bv=function(a){this.j=a};
tla=function(a){this.data=a};
ula=function(a){return void 0===a||a instanceof tla?a:new tla(a)};
Cv=function(a){this.j=a};
g.vla=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.kb()||!!b&&b>g.kb()};
g.Dv=function(a){this.j=a};
wla=function(){};
Ev=function(){};
Fv=function(a){this.j=a;this.B=null};
Gv=function(a){if(null==a.j)throw Error("Storage mechanism: Storage unavailable");var b;(null!=(b=a.B)?b:a.isAvailable())||dg(Error("Storage mechanism: Storage unavailable"))};
Hv=function(){var a=null;try{a=g.Sa.localStorage||null}catch(b){}Fv.call(this,a)};
xla=function(){var a=null;try{a=g.Sa.sessionStorage||null}catch(b){}Fv.call(this,a)};
g.Iv=function(a,b){this.B={};this.j=[];this.yu=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.Iv)for(c=a.yp(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
Kv=function(a){if(a.size!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];Jv(a.B,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.size!=a.j.length){var e={};for(c=b=0;b<a.j.length;)d=a.j[b],Jv(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};
Jv=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Mv=function(a,b){this.B=a;this.j=null;if(g.Cf&&!g.Uc(9)){Lv||(Lv=new g.Iv);this.j=Lv.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)),Lv.set(a,this.j));try{this.j.load(this.B)}catch(c){this.j=null}}};
Nv=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return yla[b]})};
Ov=function(a){try{a.j.save(a.B)}catch(b){throw"Storage mechanism: Quota exceeded";}};
Pv=function(a,b){this.B=a;this.j=b+"::"};
g.Qv=function(a){var b=new Hv;return b.isAvailable()?a?new Pv(b,a):b:null};
Rv=function(a,b){this.j=a;this.B=b};
Sv=function(a){this.j=[];if(a)a:{if(a instanceof Sv){var b=a.yp();a=a.jm();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new Rv(b[d],a[d]));break a}}else b=g.id(a),a=g.gd(a);for(c=0;c<b.length;c++)this.Ah(b[c],a[c])}};
zla=function(){Sv.apply(this,arguments)};
g.Tv=function(){};
Ala=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 Uv.Kx(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};
Vv=function(a){for(var b=a.length;0<=--b;)a[b]=0};
Wv=function(a,b,c,d,e){this.o0=a;this.J6=b;this.I6=c;this.x6=d;this.Y8=e;this.OX=a&&a.length};
Xv=function(a,b){this.rW=a;this.rA=0;this.ju=b};
Yv=function(a,b){a.zg[a.pending++]=b&255;a.zg[a.pending++]=b>>>8&255};
Zv=function(a,b,c){a.xi>16-c?(a.vj|=b<<a.xi&65535,Yv(a,a.vj),a.vj=b>>16-a.xi,a.xi+=c-16):(a.vj|=b<<a.xi&65535,a.xi+=c)};
$v=function(a,b,c){Zv(a,c[2*b],c[2*b+1])};
Bla=function(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(0<--b);return c>>>1};
Cla=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]=Bla(d[e]++,e))};
Dla=function(a){var b;for(b=0;286>b;b++)a.Zj[2*b]=0;for(b=0;30>b;b++)a.xv[2*b]=0;for(b=0;19>b;b++)a.Yi[2*b]=0;a.Zj[512]=1;a.rr=a.zB=0;a.xm=a.matches=0};
Ela=function(a){8<a.xi?Yv(a,a.vj):0<a.xi&&(a.zg[a.pending++]=a.vj);a.vj=0;a.xi=0};
Fla=function(a,b,c){Ela(a);Yv(a,c);Yv(a,~c);Uv.Ny(a.zg,a.window,b,c,a.pending);a.pending+=c};
Gla=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]};
aw=function(a,b,c){for(var d=a.Gg[c],e=c<<1;e<=a.Rq;){e<a.Rq&&Gla(b,a.Gg[e+1],a.Gg[e],a.depth)&&e++;if(Gla(b,d,a.Gg[e],a.depth))break;a.Gg[c]=a.Gg[e];c=e;e<<=1}a.Gg[c]=d};
Hla=function(a,b,c){var d=0;if(0!==a.xm){do{var e=a.zg[a.XC+2*d]<<8|a.zg[a.XC+2*d+1];var f=a.zg[a.tP+d];d++;if(0===e)$v(a,f,b);else{var h=bw[f];$v(a,h+256+1,b);var l=cw[h];0!==l&&(f-=dw[h],Zv(a,f,l));e--;h=256>e?ew[e]:ew[256+(e>>>7)];$v(a,h,c);l=fw[h];0!==l&&(e-=gw[h],Zv(a,e,l))}}while(d<a.xm)}$v(a,256,b)};
hw=function(a,b){var c=b.rW,d=b.ju.o0,e=b.ju.OX,f=b.ju.x6,h,l=-1;a.Rq=0;a.Kz=573;for(h=0;h<f;h++)0!==c[2*h]?(a.Gg[++a.Rq]=l=h,a.depth[h]=0):c[2*h+1]=0;for(;2>a.Rq;){var m=a.Gg[++a.Rq]=2>l?++l:0;c[2*m]=1;a.depth[m]=0;a.rr--;e&&(a.zB-=d[2*m+1])}b.rA=l;for(h=a.Rq>>1;1<=h;h--)aw(a,c,h);m=f;do h=a.Gg[1],a.Gg[1]=a.Gg[a.Rq--],aw(a,c,1),d=a.Gg[1],a.Gg[--a.Kz]=h,a.Gg[--a.Kz]=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.Gg[1]=m++,aw(a,c,1);while(2<=
a.Rq);a.Gg[--a.Kz]=a.Gg[1];h=b.rW;m=b.rA;d=b.ju.o0;e=b.ju.OX;f=b.ju.J6;var n=b.ju.I6,p=b.ju.Y8,q,r=0;for(q=0;15>=q;q++)a.wq[q]=0;h[2*a.Gg[a.Kz]+1]=0;for(b=a.Kz+1;573>b;b++){var t=a.Gg[b];q=h[2*h[2*t+1]+1]+1;q>p&&(q=p,r++);h[2*t+1]=q;if(!(t>m)){a.wq[q]++;var v=0;t>=n&&(v=f[t-n]);var x=h[2*t];a.rr+=x*(q+v);e&&(a.zB+=x*(d[2*t+1]+v))}}if(0!==r){do{for(q=p-1;0===a.wq[q];)q--;a.wq[q]--;a.wq[q+1]+=2;a.wq[p]--;r-=2}while(0<r);for(q=p;0!==q;q--)for(t=a.wq[q];0!==t;)d=a.Gg[--b],d>m||(h[2*d+1]!==q&&(a.rr+=(q-
h[2*d+1])*h[2*d],h[2*d+1]=q),t--)}Cla(c,l,a.wq)};
Ila=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.Yi[2*n]+=h:0!==n?(n!==e&&a.Yi[2*n]++,a.Yi[32]++):10>=h?a.Yi[34]++:a.Yi[36]++,h=0,e=n,0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}};
Jla=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 $v(a,n,a.Yi);while(0!==--h)}else 0!==n?(n!==e&&($v(a,n,a.Yi),h--),$v(a,16,a.Yi),Zv(a,h-3,2)):10>=h?($v(a,17,a.Yi),Zv(a,h-3,3)):($v(a,18,a.Yi),Zv(a,h-11,7));h=0;e=n;0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}};
Kla=function(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.Zj[2*c])return 0;if(0!==a.Zj[18]||0!==a.Zj[20]||0!==a.Zj[26])return 1;for(c=32;256>c;c++)if(0!==a.Zj[2*c])return 1;return 0};
iw=function(a,b,c){a.zg[a.XC+2*a.xm]=b>>>8&255;a.zg[a.XC+2*a.xm+1]=b&255;a.zg[a.tP+a.xm]=c&255;a.xm++;0===b?a.Zj[2*c]++:(a.matches++,b--,a.Zj[2*(bw[c]+256+1)]++,a.xv[2*(256>b?ew[b]:ew[256+(b>>>7)])]++);return a.xm===a.rE-1};
kw=function(a,b){a.msg=jw[b];return b};
lw=function(a){for(var b=a.length;0<=--b;)a[b]=0};
mw=function(a){var b=a.state,c=b.pending;c>a.Qe&&(c=a.Qe);0!==c&&(Uv.Ny(a.output,b.zg,b.bF,c,a.zA),a.zA+=c,b.bF+=c,a.tS+=c,a.Qe-=c,b.pending-=c,0===b.pending&&(b.bF=0))};
pw=function(a,b){var c=0<=a.Ok?a.Ok:-1,d=a.Db-a.Ok,e=0;if(0<a.level){2===a.Be.yN&&(a.Be.yN=Kla(a));hw(a,a.TI);hw(a,a.vH);Ila(a,a.Zj,a.TI.rA);Ila(a,a.xv,a.vH.rA);hw(a,a.FV);for(e=18;3<=e&&0===a.Yi[2*Lla[e]+1];e--);a.rr+=3*(e+1)+14;var f=a.rr+3+7>>>3;var h=a.zB+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&-1!==c)Zv(a,b?1:0,3),Fla(a,c,d);else if(4===a.strategy||h===f)Zv(a,2+(b?1:0),3),Hla(a,nw,ow);else{Zv(a,4+(b?1:0),3);c=a.TI.rA+1;d=a.vH.rA+1;e+=1;Zv(a,c-257,5);Zv(a,d-1,5);Zv(a,e-4,4);for(f=0;f<e;f++)Zv(a,
a.Yi[2*Lla[f]+1],3);Jla(a,a.Zj,c-1);Jla(a,a.xv,d-1);Hla(a,a.Zj,a.xv)}Dla(a);b&&Ela(a);a.Ok=a.Db;mw(a.Be)};
qw=function(a,b){a.zg[a.pending++]=b};
rw=function(a,b){a.zg[a.pending++]=b>>>8&255;a.zg[a.pending++]=b&255};
Mla=function(a,b){var c=a.OY,d=a.Db,e=a.il,f=a.eZ,h=a.Db>a.pj-262?a.Db-(a.pj-262):0,l=a.window,m=a.Au,n=a.Sp,p=a.Db+258,q=l[d+e-1],r=l[d+e];a.il>=a.pX&&(c>>=2);f>a.pc&&(f=a.pc);do{var t=b;if(l[t+e]===r&&l[t+e-1]===q&&l[t]===l[d]&&l[++t]===l[d+1]){d+=2;for(t++;l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&l[++d]===l[++t]&&d<p;);t=258-(p-d);d=p-258;if(t>e){a.pA=b;e=t;if(t>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&0!==
--c);return e<=a.pc?e:a.pc};
vw=function(a){var b=a.pj,c;do{var d=a.z1-a.pc-a.Db;if(a.Db>=b+(b-262)){Uv.Ny(a.window,a.window,b,b,0);a.pA-=b;a.Db-=b;a.Ok-=b;var e=c=a.wI;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Sp[--e],a.Sp[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.Be.uj)break;e=a.Be;c=a.window;f=a.Db+a.pc;var h=e.uj;h>d&&(h=d);0===h?c=0:(e.uj-=h,Uv.Ny(c,e.input,e.Fw,h,f),1===e.state.wrap?e.Xd=tw(e.Xd,c,h,f):2===e.state.wrap&&(e.Xd=uw(e.Xd,c,h,f)),e.Fw+=h,e.Dx+=h,c=h);a.pc+=c;if(3<=a.pc+a.Ah)for(d=a.Db-a.Ah,
a.Je=a.window[d],a.Je=(a.Je<<a.Pq^a.window[d+1])&a.Oq;a.Ah&&!(a.Je=(a.Je<<a.Pq^a.window[d+3-1])&a.Oq,a.Sp[d&a.Au]=a.head[a.Je],a.head[a.Je]=d,d++,a.Ah--,3>a.pc+a.Ah););}while(262>a.pc&&0!==a.Be.uj)};
ww=function(a,b){for(var c;;){if(262>a.pc){vw(a);if(262>a.pc&&0===b)return 1;if(0===a.pc)break}c=0;3<=a.pc&&(a.Je=(a.Je<<a.Pq^a.window[a.Db+3-1])&a.Oq,c=a.Sp[a.Db&a.Au]=a.head[a.Je],a.head[a.Je]=a.Db);0!==c&&a.Db-c<=a.pj-262&&(a.df=Mla(a,c));if(3<=a.df)if(c=iw(a,a.Db-a.pA,a.df-3),a.pc-=a.df,a.df<=a.GP&&3<=a.pc){a.df--;do a.Db++,a.Je=(a.Je<<a.Pq^a.window[a.Db+3-1])&a.Oq,a.Sp[a.Db&a.Au]=a.head[a.Je],a.head[a.Je]=a.Db;while(0!==--a.df);a.Db++}else a.Db+=a.df,a.df=0,a.Je=a.window[a.Db],a.Je=(a.Je<<a.Pq^
a.window[a.Db+1])&a.Oq;else c=iw(a,0,a.window[a.Db]),a.pc--,a.Db++;if(c&&(pw(a,!1),0===a.Be.Qe))return 1}a.Ah=2>a.Db?a.Db:2;return 4===b?(pw(a,!0),0===a.Be.Qe?3:4):a.xm&&(pw(a,!1),0===a.Be.Qe)?1:2};
xw=function(a,b){for(var c,d;;){if(262>a.pc){vw(a);if(262>a.pc&&0===b)return 1;if(0===a.pc)break}c=0;3<=a.pc&&(a.Je=(a.Je<<a.Pq^a.window[a.Db+3-1])&a.Oq,c=a.Sp[a.Db&a.Au]=a.head[a.Je],a.head[a.Je]=a.Db);a.il=a.df;a.k_=a.pA;a.df=2;0!==c&&a.il<a.GP&&a.Db-c<=a.pj-262&&(a.df=Mla(a,c),5>=a.df&&(1===a.strategy||3===a.df&&4096<a.Db-a.pA)&&(a.df=2));if(3<=a.il&&a.df<=a.il){d=a.Db+a.pc-3;c=iw(a,a.Db-1-a.k_,a.il-3);a.pc-=a.il-1;a.il-=2;do++a.Db<=d&&(a.Je=(a.Je<<a.Pq^a.window[a.Db+3-1])&a.Oq,a.Sp[a.Db&a.Au]=
a.head[a.Je],a.head[a.Je]=a.Db);while(0!==--a.il);a.yw=0;a.df=2;a.Db++;if(c&&(pw(a,!1),0===a.Be.Qe))return 1}else if(a.yw){if((c=iw(a,0,a.window[a.Db-1]))&&pw(a,!1),a.Db++,a.pc--,0===a.Be.Qe)return 1}else a.yw=1,a.Db++,a.pc--}a.yw&&(iw(a,0,a.window[a.Db-1]),a.yw=0);a.Ah=2>a.Db?a.Db:2;return 4===b?(pw(a,!0),0===a.Be.Qe?3:4):a.xm&&(pw(a,!1),0===a.Be.Qe)?1:2};
Nla=function(a,b){for(var c,d,e,f=a.window;;){if(258>=a.pc){vw(a);if(258>=a.pc&&0===b)return 1;if(0===a.pc)break}a.df=0;if(3<=a.pc&&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.df=258-(e-d);a.df>a.pc&&(a.df=a.pc)}3<=a.df?(c=iw(a,1,a.df-3),a.pc-=a.df,a.Db+=a.df,a.df=0):(c=iw(a,0,a.window[a.Db]),a.pc--,a.Db++);if(c&&(pw(a,!1),0===a.Be.Qe))return 1}a.Ah=0;return 4===
b?(pw(a,!0),0===a.Be.Qe?3:4):a.xm&&(pw(a,!1),0===a.Be.Qe)?1:2};
Ola=function(a,b){for(var c;;){if(0===a.pc&&(vw(a),0===a.pc)){if(0===b)return 1;break}a.df=0;c=iw(a,0,a.window[a.Db]);a.pc--;a.Db++;if(c&&(pw(a,!1),0===a.Be.Qe))return 1}a.Ah=0;return 4===b?(pw(a,!0),0===a.Be.Qe?3:4):a.xm&&(pw(a,!1),0===a.Be.Qe)?1:2};
yw=function(a,b,c,d,e){this.B7=a;this.X8=b;this.p9=c;this.W8=d;this.func=e};
Pla=function(){this.Be=null;this.status=0;this.zg=null;this.wrap=this.pending=this.bF=this.Cm=0;this.Sd=null;this.Dn=0;this.method=8;this.fA=-1;this.Au=this.MS=this.pj=0;this.window=null;this.z1=0;this.head=this.Sp=null;this.eZ=this.pX=this.strategy=this.level=this.GP=this.OY=this.il=this.pc=this.pA=this.Db=this.yw=this.k_=this.df=this.Ok=this.Pq=this.Oq=this.NO=this.wI=this.Je=0;this.Zj=new Uv.iq(1146);this.xv=new Uv.iq(122);this.Yi=new Uv.iq(78);lw(this.Zj);lw(this.xv);lw(this.Yi);this.FV=this.vH=
this.TI=null;this.wq=new Uv.iq(16);this.Gg=new Uv.iq(573);lw(this.Gg);this.Kz=this.Rq=0;this.depth=new Uv.iq(573);lw(this.depth);this.xi=this.vj=this.Ah=this.matches=this.zB=this.rr=this.XC=this.xm=this.rE=this.tP=0};
Qla=function(a,b){if(!a||!a.state||5<b||0>b)return a?kw(a,-2):-2;var c=a.state;if(!a.output||!a.input&&0!==a.uj||666===c.status&&4!==b)return kw(a,0===a.Qe?-5:-2);c.Be=a;var d=c.fA;c.fA=b;if(42===c.status)if(2===c.wrap)a.Xd=0,qw(c,31),qw(c,139),qw(c,8),c.Sd?(qw(c,(c.Sd.text?1:0)+(c.Sd.kt?2:0)+(c.Sd.extra?4:0)+(c.Sd.name?8:0)+(c.Sd.comment?16:0)),qw(c,c.Sd.time&255),qw(c,c.Sd.time>>8&255),qw(c,c.Sd.time>>16&255),qw(c,c.Sd.time>>24&255),qw(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),qw(c,c.Sd.os&
255),c.Sd.extra&&c.Sd.extra.length&&(qw(c,c.Sd.extra.length&255),qw(c,c.Sd.extra.length>>8&255)),c.Sd.kt&&(a.Xd=uw(a.Xd,c.zg,c.pending,0)),c.Dn=0,c.status=69):(qw(c,0),qw(c,0),qw(c,0),qw(c,0),qw(c,0),qw(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),qw(c,3),c.status=113);else{var e=8+(c.MS-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;rw(c,e+(31-e%31));0!==c.Db&&(rw(c,a.Xd>>>16),rw(c,a.Xd&65535));a.Xd=1}if(69===c.status)if(c.Sd.extra){for(e=
c.pending;c.Dn<(c.Sd.extra.length&65535)&&(c.pending!==c.Cm||(c.Sd.kt&&c.pending>e&&(a.Xd=uw(a.Xd,c.zg,c.pending-e,e)),mw(a),e=c.pending,c.pending!==c.Cm));)qw(c,c.Sd.extra[c.Dn]&255),c.Dn++;c.Sd.kt&&c.pending>e&&(a.Xd=uw(a.Xd,c.zg,c.pending-e,e));c.Dn===c.Sd.extra.length&&(c.Dn=0,c.status=73)}else c.status=73;if(73===c.status)if(c.Sd.name){e=c.pending;do{if(c.pending===c.Cm&&(c.Sd.kt&&c.pending>e&&(a.Xd=uw(a.Xd,c.zg,c.pending-e,e)),mw(a),e=c.pending,c.pending===c.Cm)){var f=1;break}f=c.Dn<c.Sd.name.length?
c.Sd.name.charCodeAt(c.Dn++)&255:0;qw(c,f)}while(0!==f);c.Sd.kt&&c.pending>e&&(a.Xd=uw(a.Xd,c.zg,c.pending-e,e));0===f&&(c.Dn=0,c.status=91)}else c.status=91;if(91===c.status)if(c.Sd.comment){e=c.pending;do{if(c.pending===c.Cm&&(c.Sd.kt&&c.pending>e&&(a.Xd=uw(a.Xd,c.zg,c.pending-e,e)),mw(a),e=c.pending,c.pending===c.Cm)){f=1;break}f=c.Dn<c.Sd.comment.length?c.Sd.comment.charCodeAt(c.Dn++)&255:0;qw(c,f)}while(0!==f);c.Sd.kt&&c.pending>e&&(a.Xd=uw(a.Xd,c.zg,c.pending-e,e));0===f&&(c.status=103)}else c.status=
103;103===c.status&&(c.Sd.kt?(c.pending+2>c.Cm&&mw(a),c.pending+2<=c.Cm&&(qw(c,a.Xd&255),qw(c,a.Xd>>8&255),a.Xd=0,c.status=113)):c.status=113);if(0!==c.pending){if(mw(a),0===a.Qe)return c.fA=-1,0}else if(0===a.uj&&(b<<1)-(4<b?9:0)<=(d<<1)-(4<d?9:0)&&4!==b)return kw(a,-5);if(666===c.status&&0!==a.uj)return kw(a,-5);if(0!==a.uj||0!==c.pc||0!==b&&666!==c.status){d=2===c.strategy?Ola(c,b):3===c.strategy?Nla(c,b):zw[c.level].func(c,b);if(3===d||4===d)c.status=666;if(1===d||3===d)return 0===a.Qe&&(c.fA=
-1),0;if(2===d&&(1===b?(Zv(c,2,3),$v(c,256,nw),16===c.xi?(Yv(c,c.vj),c.vj=0,c.xi=0):8<=c.xi&&(c.zg[c.pending++]=c.vj&255,c.vj>>=8,c.xi-=8)):5!==b&&(Zv(c,0,3),Fla(c,0,0),3===b&&(lw(c.head),0===c.pc&&(c.Db=0,c.Ok=0,c.Ah=0))),mw(a),0===a.Qe))return c.fA=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(qw(c,a.Xd&255),qw(c,a.Xd>>8&255),qw(c,a.Xd>>16&255),qw(c,a.Xd>>24&255),qw(c,a.Dx&255),qw(c,a.Dx>>8&255),qw(c,a.Dx>>16&255),qw(c,a.Dx>>24&255)):(rw(c,a.Xd>>>16),rw(c,a.Xd&65535));mw(a);0<c.wrap&&
(c.wrap=-c.wrap);return 0!==c.pending?0:1};
Aw=function(a){if(!(this instanceof Aw))return new Aw(a);a=this.options=Uv.assign({level:-1,method:8,chunkSize:16384,Bu:15,e9:8,strategy:0,to:""},a||{});a.raw&&0<a.Bu?a.Bu=-a.Bu:a.C7&&0<a.Bu&&16>a.Bu&&(a.Bu+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Be=new Rla;this.Be.Qe=0;var b=this.Be;var c=a.level,d=a.method,e=a.Bu,f=a.e9,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=kw(b,-2);else{8===e&&(e=9);var m=
new Pla;b.state=m;m.Be=b;m.wrap=l;m.Sd=null;m.MS=e;m.pj=1<<m.MS;m.Au=m.pj-1;m.NO=f+7;m.wI=1<<m.NO;m.Oq=m.wI-1;m.Pq=~~((m.NO+3-1)/3);m.window=new Uv.Kx(2*m.pj);m.head=new Uv.iq(m.wI);m.Sp=new Uv.iq(m.pj);m.rE=1<<f+6;m.Cm=4*m.rE;m.zg=new Uv.Kx(m.Cm);m.XC=1*m.rE;m.tP=3*m.rE;m.level=c;m.strategy=h;m.method=d;if(b&&b.state){b.Dx=b.tS=0;b.yN=2;c=b.state;c.pending=0;c.bF=0;0>c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Xd=2===c.wrap?0:1;c.fA=0;if(!Sla){d=Array(16);for(f=h=0;28>f;f++)for(dw[f]=h,e=0;e<
1<<cw[f];e++)bw[h++]=f;bw[h-1]=f;for(f=h=0;16>f;f++)for(gw[f]=h,e=0;e<1<<fw[f];e++)ew[h++]=f;for(h>>=7;30>f;f++)for(gw[f]=h<<7,e=0;e<1<<fw[f]-7;e++)ew[256+h++]=f;for(e=0;15>=e;e++)d[e]=0;for(e=0;143>=e;)nw[2*e+1]=8,e++,d[8]++;for(;255>=e;)nw[2*e+1]=9,e++,d[9]++;for(;279>=e;)nw[2*e+1]=7,e++,d[7]++;for(;287>=e;)nw[2*e+1]=8,e++,d[8]++;Cla(nw,287,d);for(e=0;30>e;e++)ow[2*e+1]=5,ow[2*e]=Bla(e,5);Tla=new Wv(nw,cw,257,286,15);Ula=new Wv(ow,fw,0,30,15);Vla=new Wv([],Wla,0,19,7);Sla=!0}c.TI=new Xv(c.Zj,Tla);
c.vH=new Xv(c.xv,Ula);c.FV=new Xv(c.Yi,Vla);c.vj=0;c.xi=0;Dla(c);c=0}else c=kw(b,-2);0===c&&(b=b.state,b.z1=2*b.pj,lw(b.head),b.GP=zw[b.level].X8,b.pX=zw[b.level].B7,b.eZ=zw[b.level].p9,b.OY=zw[b.level].W8,b.Db=0,b.Ok=0,b.pc=0,b.Ah=0,b.df=b.il=2,b.yw=0,b.Je=0);b=c}}else b=-2;if(0!==b)throw Error(jw[b]);a.header&&(b=this.Be)&&b.state&&2===b.state.wrap&&(b.state.Sd=a.header);if(a.YC){var n;"string"===typeof a.YC?n=Ala(a.YC):"[object ArrayBuffer]"===Xla.call(a.YC)?n=new Uint8Array(a.YC):n=a.YC;a=this.Be;
f=n;h=f.length;if(a&&a.state)if(n=a.state,b=n.wrap,2===b||1===b&&42!==n.status||n.pc)b=-2;else{1===b&&(a.Xd=tw(a.Xd,f,h,0));n.wrap=0;h>=n.pj&&(0===b&&(lw(n.head),n.Db=0,n.Ok=0,n.Ah=0),c=new Uv.Kx(n.pj),Uv.Ny(c,f,h-n.pj,n.pj,0),f=c,h=n.pj);c=a.uj;d=a.Fw;e=a.input;a.uj=h;a.Fw=0;a.input=f;for(vw(n);3<=n.pc;){f=n.Db;h=n.pc-2;do n.Je=(n.Je<<n.Pq^n.window[f+3-1])&n.Oq,n.Sp[f&n.Au]=n.head[n.Je],n.head[n.Je]=f,f++;while(--h);n.Db=f;n.pc=2;vw(n)}n.Db+=n.pc;n.Ok=n.Db;n.Ah=n.pc;n.pc=0;n.df=n.il=2;n.yw=0;a.Fw=
d;a.input=e;a.uj=c;n.wrap=b;b=0}else b=-2;if(0!==b)throw Error(jw[b]);this.Elb=!0}};
Yla=function(a,b){b=b||{};b.C7=!0;b=new Aw(b);b.push(a,!0);if(b.err)throw b.msg||jw[b.err];return b.result};
Zla=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.pa(g.Ia.apply(0,arguments))))}})};
$la=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.pa(g.Ia.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=Zla.apply(null,g.pa(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
Bw=function(){return Math.random().toString(36).substring(7).split("").join(".")};
ama=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:Cw}))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"+Bw()}))throw Error('The slice reducer for key "'+
b+"\" returned undefined when probed with a random type. Don't try to handle '"+(Cw+'\' 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.'));})};
bma=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m}
function f(t){if("function"!==typeof t)throw Error("Expected the listener to be a function. Instead, received: '"+typeof t+"'");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var v=!0;p===n&&(p=n.slice());p.push(t);return function(){if(v){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
v=!1;p===n&&(p=n.slice());p.splice(p.indexOf(t),1);n=null}}}
function h(t){if("object"!==typeof t||null===t)var v=!1;else{for(v=t;null!==Object.getPrototypeOf(v);)v=Object.getPrototypeOf(v);v=Object.getPrototypeOf(t)===v}if(!v)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof t+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
if("undefined"===typeof t.type)throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,t)}finally{q=!1}v=n=p;for(var x=0;x<v.length;x++)(0,v[x])();return t}
if("function"===typeof b&&"function"===typeof c||"function"===typeof c&&"function"===typeof d)throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");"function"===typeof b&&"undefined"===typeof c&&(c=b,b=void 0);if("undefined"!==typeof c){if("function"!==typeof c)throw Error("Expected the enhancer to be a function. Instead, received: '"+
typeof c+"'");return c(bma)(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:Cw});a={};var r=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(t){if("function"!==typeof t)throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof t);l=t;h({type:cma});return r},a[dma]=function(){var t={};
return t.subscribe=function(v){function x(){v.next&&v.next(e())}
if("object"!==typeof v||null===v)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof v+"'");x();return{unsubscribe:f(x)}},t[dma]=function(){return this},t},a);
return r};
Dw=function(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?fe(a):null:null};
fma=function(a){a=ema(a);return g.te(a)};
g.Ew=function(a){a=ema(a);return fe(a)};
ema=function(a){return null===a?"null":void 0===a?"undefined":a};
Fw=function(a){this.ea=O(a)};
gma=function(a){var b=a.split(""),c=[b,1570503852,-1567911479,653647677,null,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},
78756329,711034976,905933145,631725727,1001513777,-1986790907,-1975832269,function(d,e,f,h,l,m,n,p){return e(f,h,l,m,n,p)},
function(d,e){0!=e.length&&(d=(d%e.length+e.length)%e.length,e.splice(0,1,e.splice(d,1,e[0])[0]))},
-336788662,b,1912995566,-658973614,-1962687386,function(d,e){if(0!=e.length){d=(d%e.length+e.length)%e.length;var f=e[0];e[0]=e[d];e[d]=f}},
2134058804,312072653,null,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
-1553193953,-1567911479,-2091749137,-650624554,1667125861,1875085766,-1543798665,-712611036,-1071433047,-242341565,2013535546,-2046639022,function(d,e){e.push(d)},
function(d,e){d=(d%e.length+e.length)%e.length;e.splice(d,1)},
491828204,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},
b,-2112351620,"\\/\u2297[u","reverse",-495660025,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
-295004379,654590411,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
65611864,424664747,",;;,)\\",function(d,e,f,h,l,m){return e(h,l,m)},
function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
-1172971467,-371031861,-371031861,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,-1569840169,function(d){d.reverse()},
function(d,e,f,h,l){return e(f,h,l)},
538939955,-1777334819,-99349242,67004610,422085909,function(d,e,f){var h=d.length;e.forEach(function(l,m,n){this.push(n[m]=d[(d.indexOf(l)-d.indexOf(this[m])+m+h--)%d.length])},f.split(""))},
-1629389297,1596855673,1793125897,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},
333379898];c[4]=c;c[23]=c;c[59]=c;try{try{c[35]!=new Date("1969-12-31T17:00:02.000-07:00")/1E3&&(-2<=c[new Date("1969-12-31T19:45:12.000-04:15")/1E3]&&((0,c[62])(((0,c[68])((0,c[new Date("1970-01-01T07:31:12.000+07:30")/1E3])(),c[16],c[44]),c[68])((0,c[72])(),c[41],c[44]),c[24],c[4],c[56]),1)||(0,c[13])((0,c[20])(c[64],c[41]),c[62],(0,c[54])(c[16],c[6]),c[37],c[47],c[Math.pow(3,4)-7991+7933]))}catch(d){(0,c[68])((0,c[58])(),c[0],c[44])}finally{5!=c[10]&&(3>c[70]?(((0,c[54])(c[16],c[12]),c[68])((0,c[58])(),
c[Math.pow(1,3)- -32536-32537],c[44]),c[68])((0,c[40])(),c[0],c[44]):(0,c[62])((0,c[49])(c[23],c[36]),c[16],c[9],c[53])^(0,c[16])(c[3],c[19]))}try{-5<=c[41]?(0,c[40])(((((0,c[Math.pow(4,3)%390-25])(c[19]),c[67])(c[47],c[57]),c[2])(c[53],c[13]),c[40])((0,c[27])(c[57],c[26]),c[50],c[12]),c[71],c[19],c[26]):(((0,c[47])(c[12],c[69]),(((0,c[5-Math.pow(2,1)+14])((0,c[45])(),c[10],c[41]),c[47])(c[new Date("1969-12-31T13:00:53.000-11:00")/1E3],c[69]),c[65])(c[25],c[69]),c[17])((0,c[5])(),c[10],c[41]),c[61])(c[6],
c[40]),(10!==c[8]||(((((((0,c[23])((0,c[-161*Math.pow(1,1)- -232])(c[18],c[69]),c[47],c[7],c[10]),c[47])(c[15],c[6]),c[23])((0,c[188+Math.pow(6,4)+-1413])(c[58],c[10]),c[17],(0,c[27])(),c[44],c[41]),c[61])(c[44],c[22]),c[17])((0,c[Math.pow(5,4)-46098+45518])(),c[69],c[41]),(0,c[-326+Math.pow(7,3)%352])((0,c[45])(),c[10],c[41]),c[23])((0,c[61])(c[26],c[51]),c[39],c[10]),0))&&(((((0,c[39])(c[69]),c[71])(c[30],c[6]),c[Math.pow(6,1)+16- -17])(c[10]),c[23])((0,c[113+Math.pow(3,5)+-317])(c[69]),c[31],c[26],
c[56]),(0,c[51])(c[41],c[8330-Math.pow(4,1)-8271]),c[9])((0,c[9])(((0,c[10])(c[12]),c[52])(c[19],c[25]),c[49],c[44]),c[49],c[26])}catch(d){((0,c[47])(c[12],c[38]),c[33])(c[56],c[55])}finally{-5!=c[16]&&(-8!==c[5]||((0,c[18])(((((0,c[3])((0,c[74])(),c[71],c[27]),c[57])(c[53],c[71]),c[3])((0,c[31])(),c[71],c[27]),c[3])((0,c[66])(),c[71],c[27]),c[3],(0,c[3])((0,c[31])(),c[30],c[27]),(0,c[66])(),c[71],c[135%Math.pow(1,3)- -27]),0))&&(0,c[9])((((0,c[9])((0,c[22])(c[48],c[6]),c[58],c[25]),(0,c[38])((0,c[50])(),
c[61],c[24-Math.pow(5,5)- -3115]),c[new Date("1969-12-31T13:31:09.000-10:30")/1E3])(c[68],c[12]),c[45])(c[46],c[25]),c[11],c[29])}try{2>=c[7]&&((0,c[71])((0,c[0])(c[8],c[30]),c[63],(0,c[25])(c[8],c[73]),c[26]),"true")||((0,c[42-Math.pow(5,3)+157])(c[9],c[26]),c[18])((0,c[22])(),c[66],c[69])&(0,c[18])((0,c[65])(),c[25],c[69]),6!=c[5]&&(9<=c[52]&&((0,c[3])(((0,c[3])((0,c[18])((0,c[8])(),c[66],c[69]),c[63],(0,c[63])(c[42],c[25]),c[34],c[new Date("1970-01-01T08:46:06.000+08:45")/1E3]),c[63])(c[50],c[25]),
c[71],((0,c[18])((0,c[65])(),c[66],c[69]),c[18])((0,c[8])(),c[41],c[69]),c[29]),1)||(0,c[3])((0,c[45])(c[21],c[25]),c[4],((0,c[12])(((0,c[12])((0,c[39])(c[27],c[48]),c[49],c[29],c[72]),c[66])(c[new Date("1970-01-01T08:45:10.000+08:45")/1E3],c[62]),c[70],c[69],c[new Date("1969-12-31T22:00:53.000-02:00")/1E3]),c[46])(c[13],c[8]),c[1],c[25]))}catch(d){(0,c[55])((0,c[17])(c[72],c[201-200%Math.pow(5,4)]),c[29+Math.pow(6,3)%214],c[14],c[9])}}catch(d){return"enhanced_except_zJoBs-X-_w8_"+a}return b.join("")};
g.Gw=function(a){this.name=a};
Hw=function(a){this.ea=O(a)};
Iw=function(a){this.ea=O(a)};
Jw=function(a){this.ea=O(a)};
Kw=function(a){this.ea=O(a)};
Lw=function(a){this.ea=O(a)};
Mw=function(a){this.ea=O(a)};
Nw=function(a){this.ea=O(a)};
Ow=function(a){this.ea=O(a)};
Pw=function(a){this.ea=O(a)};
Qw=function(a){this.ea=O(a)};
Rw=function(a){this.ea=O(a)};
Sw=function(a){this.ea=O(a)};
Tw=function(a){this.ea=O(a)};
Uw=function(a){this.ea=O(a)};
Vw=function(a){this.ea=O(a)};
Ww=function(a){this.ea=O(a)};
Xw=function(a){this.ea=O(a)};
Yw=function(a){this.ea=O(a)};
Zw=function(a){this.ea=O(a)};
$w=function(a){this.ea=O(a)};
ax=function(a){this.ea=O(a)};
bx=function(a){this.ea=O(a)};
cx=function(a){this.ea=O(a)};
dx=function(a){this.ea=O(a)};
ex=function(a){this.ea=O(a)};
fx=function(a){this.ea=O(a)};
gx=function(a){this.ea=O(a)};
hx=function(a){this.ea=O(a)};
ix=function(a){this.ea=O(a)};
jx=function(a){this.ea=O(a)};
kx=function(a){this.ea=O(a)};
lx=function(a){this.ea=O(a)};
mx=function(a){this.ea=O(a)};
nx=function(a){this.ea=O(a)};
ox=function(a){this.ea=O(a)};
px=function(a){this.ea=O(a)};
qx=function(a){this.ea=O(a)};
rx=function(a){this.ea=O(a)};
sx=function(a){this.ea=O(a)};
tx=function(a){this.ea=O(a)};
ux=function(a){this.ea=O(a)};
vx=function(a){this.ea=O(a)};
wx=function(a){this.ea=O(a)};
xx=function(a){this.ea=O(a)};
yx=function(a){this.ea=O(a)};
zx=function(a){this.ea=O(a)};
Ax=function(a){this.ea=O(a)};
Bx=function(a){this.ea=O(a)};
Cx=function(a){this.ea=O(a)};
Dx=function(a){this.ea=O(a)};
Ex=function(a){this.ea=O(a)};
Fx=function(a){this.ea=O(a)};
Gx=function(a){this.ea=O(a)};
Hx=function(a){this.ea=O(a)};
Ix=function(a){this.ea=O(a)};
Jx=function(a){this.ea=O(a)};
Kx=function(a){this.ea=O(a)};
Lx=function(a){this.ea=O(a)};
Mx=function(a){this.ea=O(a)};
Nx=function(a){this.ea=O(a)};
Ox=function(a){this.ea=O(a)};
ey=function(a){this.ea=O(a)};
fy=function(a){this.ea=O(a)};
gy=function(a){this.ea=O(a)};
hy=function(a){this.ea=O(a)};
iy=function(a){this.ea=O(a)};
jy=function(a){this.ea=O(a)};
ky=function(a){this.ea=O(a)};
ly=function(a){this.ea=O(a)};
my=function(a){this.ea=O(a)};
ny=function(a){this.ea=O(a)};
oy=function(a){this.ea=O(a)};
py=function(a){this.ea=O(a)};
qy=function(a){this.ea=O(a)};
ry=function(a){this.ea=O(a)};
sy=function(a){this.ea=O(a)};
ty=function(a){this.ea=O(a)};
uy=function(a){this.ea=O(a)};
vy=function(a){this.ea=O(a)};
wy=function(a){this.ea=O(a)};
yy=function(a){this.ea=O(a)};
zy=function(a){this.ea=O(a)};
hma=function(a,b){return vk(a,1,b)};
Ay=function(a){this.ea=O(a)};
By=function(a){this.ea=O(a)};
Cy=function(a){this.ea=O(a)};
Dy=function(a){this.ea=O(a)};
Ey=function(a){this.ea=O(a)};
Fy=function(a){this.ea=O(a)};
Gy=function(a){this.ea=O(a)};
Hy=function(a){this.ea=O(a)};
Iy=function(a){this.ea=O(a)};
Jy=function(a){this.ea=O(a)};
g.Ky=function(a){this.ea=O(a)};
Ly=function(a){this.ea=O(a)};
My=function(a){this.ea=O(a)};
Ny=function(a){this.ea=O(a)};
Oy=function(a){this.ea=O(a)};
Py=function(a){this.ea=O(a)};
Qy=function(a){this.ea=O(a)};
Ry=function(a){this.ea=O(a)};
Sy=function(a){this.ea=O(a)};
Ty=function(a){this.ea=O(a)};
Uy=function(a){this.ea=O(a)};
Vy=function(a){this.ea=O(a)};
Wy=function(a){this.ea=O(a)};
Xy=function(a){this.ea=O(a)};
ima=function(a){this.ea=O(a)};
jma=function(a){this.ea=O(a)};
kma=function(a){this.ea=O(a)};
lma=function(a){this.ea=O(a)};
Yy=function(a){this.ea=O(a)};
mma=function(a){this.ea=O(a)};
nma=function(a){this.ea=O(a)};
oma=function(a){this.ea=O(a)};
Zy=function(a){this.ea=O(a)};
$y=function(a){this.ea=O(a)};
az=function(a){this.ea=O(a)};
bz=function(a){this.ea=O(a)};
cz=function(a){this.ea=O(a)};
dz=function(a){this.ea=O(a)};
pma=function(a){this.ea=O(a)};
ez=function(a){this.ea=O(a)};
fz=function(a){this.ea=O(a)};
gz=function(a){this.ea=O(a)};
hz=function(a){this.ea=O(a)};
qma=function(a){this.ea=O(a)};
iz=function(a){this.ea=O(a)};
jz=function(a){this.ea=O(a)};
kz=function(a){this.ea=O(a)};
rma=function(a){this.ea=O(a)};
sma=function(a){this.ea=O(a)};
lz=function(a){this.ea=O(a)};
mz=function(a){this.ea=O(a)};
nz=function(a){this.ea=O(a)};
oz=function(a){this.ea=O(a)};
pz=function(a){this.ea=O(a)};
qz=function(a){this.ea=O(a)};
rz=function(a){this.ea=O(a)};
sz=function(a){this.ea=O(a)};
tma=function(a){this.ea=O(a)};
uma=function(a){this.ea=O(a)};
tz=function(a){this.ea=O(a)};
vma=function(a){this.ea=O(a)};
wma=function(a){this.ea=O(a)};
xma=function(a){this.ea=O(a)};
uz=function(a){this.ea=O(a)};
yma=function(a){this.ea=O(a)};
zma=function(a){this.ea=O(a)};
Ama=function(a){this.ea=O(a)};
vz=function(a){this.ea=O(a)};
Bma=function(a){this.ea=O(a)};
wz=function(a){this.ea=O(a)};
xz=function(a){this.ea=O(a)};
yz=function(a){this.ea=O(a)};
Cma=function(a){this.ea=O(a)};
zz=function(a){this.ea=O(a)};
Dma=function(a){this.ea=O(a)};
Az=function(a){this.ea=O(a)};
Bz=function(a){this.ea=O(a)};
Ema=function(a){this.ea=O(a)};
Cz=function(a){this.ea=O(a)};
Fma=function(a){this.ea=O(a)};
Dz=function(a){this.ea=O(a)};
Gma=function(a){this.ea=O(a)};
Hma=function(a){this.ea=O(a)};
Ima=function(a){this.ea=O(a)};
Ez=function(a){this.ea=O(a)};
Jma=function(a){this.ea=O(a)};
Kma=function(a){this.ea=O(a)};
Fz=function(a){this.ea=O(a)};
Gz=function(a){this.ea=O(a)};
Lma=function(a){this.ea=O(a)};
Hz=function(a){this.ea=O(a)};
Mma=function(a){this.ea=O(a)};
Iz=function(a){this.ea=O(a)};
Jz=function(a){this.ea=O(a)};
Kz=function(a){this.ea=O(a)};
Lz=function(a){this.ea=O(a)};
g.Mz=function(a){this.ea=O(a)};
g.Nz=function(a){this.ea=O(a)};
Oz=function(a){this.ea=O(a)};
Pz=function(a){this.ea=O(a)};
Qz=function(a){this.ea=O(a)};
Nma=function(a){this.ea=O(a)};
Rz=function(a){this.ea=O(a)};
Sz=function(a){this.ea=O(a)};
Tz=function(a){this.ea=O(a)};
Oma=function(a){this.ea=O(a)};
Uz=function(a){this.ea=O(a)};
Vz=function(a){this.ea=O(a)};
Wz=function(a){this.ea=O(a)};
Xz=function(a){this.ea=O(a)};
Pma=function(a){this.ea=O(a)};
Yz=function(a){this.ea=O(a)};
Zz=function(a){this.ea=O(a)};
$z=function(a){this.ea=O(a)};
aA=function(a){this.ea=O(a)};
bA=function(a){this.ea=O(a)};
Qma=function(a){this.ea=O(a)};
cA=function(a){this.ea=O(a)};
Rma=function(a){this.ea=O(a)};
dA=function(a){this.ea=O(a)};
Sma=function(a){this.ea=O(a)};
Tma=function(a){this.ea=O(a)};
eA=function(a){this.ea=O(a)};
fA=function(a){this.ea=O(a)};
Uma=function(a){this.ea=O(a)};
gA=function(a){this.ea=O(a)};
hA=function(a){this.ea=O(a)};
iA=function(a){this.ea=O(a)};
Vma=function(a){this.ea=O(a)};
Wma=function(a){this.ea=O(a)};
Xma=function(a){this.ea=O(a)};
Yma=function(a){this.ea=O(a)};
jA=function(a){this.ea=O(a)};
kA=function(a){this.ea=O(a)};
Zma=function(a){this.ea=O(a)};
lA=function(a){this.ea=O(a)};
$ma=function(a){this.ea=O(a)};
ana=function(a){this.ea=O(a)};
bna=function(a){this.ea=O(a)};
cna=function(a){this.ea=O(a)};
dna=function(a){this.ea=O(a)};
mA=function(a){this.ea=O(a)};
nA=function(a){this.ea=O(a)};
ena=function(a){this.ea=O(a)};
fna=function(a){this.ea=O(a)};
oA=function(a){this.ea=O(a)};
pA=function(a){this.ea=O(a)};
gna=function(a){this.ea=O(a)};
qA=function(a){this.ea=O(a)};
hna=function(a){this.ea=O(a)};
ina=function(a){this.ea=O(a)};
rA=function(a){this.ea=O(a)};
jna=function(a){this.ea=O(a)};
kna=function(a){this.ea=O(a)};
lna=function(a){this.ea=O(a)};
mna=function(a){this.ea=O(a)};
sA=function(a){this.ea=O(a)};
tA=function(a){this.ea=O(a)};
uA=function(a){this.ea=O(a)};
vA=function(a){this.ea=O(a)};
nna=function(a){this.ea=O(a)};
ona=function(a){this.ea=O(a)};
wA=function(a){this.ea=O(a)};
pna=function(a){this.ea=O(a)};
qna=function(a){this.ea=O(a)};
rna=function(a){this.ea=O(a)};
sna=function(a){this.ea=O(a)};
xA=function(a){this.ea=O(a)};
tna=function(a){this.ea=O(a)};
una=function(a){this.ea=O(a)};
vna=function(a){this.ea=O(a)};
wna=function(a){this.ea=O(a)};
xna=function(a){this.ea=O(a)};
yna=function(a){this.ea=O(a)};
zna=function(a){this.ea=O(a)};
Ana=function(a){this.ea=O(a)};
Bna=function(a){this.ea=O(a)};
yA=function(a){this.ea=O(a)};
Cna=function(a){this.ea=O(a)};
zA=function(a){this.ea=O(a)};
AA=function(a){this.ea=O(a)};
Dna=function(a){this.ea=O(a)};
Ena=function(a){this.ea=O(a)};
BA=function(a){this.ea=O(a)};
Fna=function(a){this.ea=O(a)};
Gna=function(a){this.ea=O(a)};
Hna=function(a){this.ea=O(a)};
Ina=function(a){this.ea=O(a)};
Jna=function(a){this.ea=O(a)};
Kna=function(a){this.ea=O(a)};
Lna=function(a){this.ea=O(a)};
Mna=function(a){this.ea=O(a)};
CA=function(a){this.ea=O(a)};
Nna=function(a){this.ea=O(a)};
Ona=function(a){this.ea=O(a)};
Pna=function(a){this.ea=O(a)};
DA=function(a){this.ea=O(a)};
Qna=function(a){this.ea=O(a)};
Rna=function(a){this.ea=O(a)};
EA=function(a){this.ea=O(a)};
FA=function(a){this.ea=O(a)};
Sna=function(a){this.ea=O(a)};
GA=function(a){this.ea=O(a)};
HA=function(a){this.ea=O(a)};
Tna=function(a){this.ea=O(a)};
IA=function(a){this.ea=O(a)};
Una=function(a){this.ea=O(a)};
JA=function(a){this.ea=O(a)};
Vna=function(a){this.ea=O(a)};
KA=function(a){this.ea=O(a)};
LA=function(a){this.ea=O(a)};
Wna=function(a){this.ea=O(a)};
Xna=function(a){this.ea=O(a)};
MA=function(a){this.ea=O(a)};
Yna=function(a){this.ea=O(a)};
Zna=function(a){this.ea=O(a)};
NA=function(a){this.ea=O(a)};
$na=function(a){this.ea=O(a)};
aoa=function(a){this.ea=O(a)};
boa=function(a){this.ea=O(a)};
coa=function(a){this.ea=O(a)};
doa=function(a){this.ea=O(a)};
eoa=function(a){this.ea=O(a)};
foa=function(a){this.ea=O(a)};
goa=function(a){this.ea=O(a)};
hoa=function(a){this.ea=O(a)};
ioa=function(a){this.ea=O(a)};
OA=function(a){this.ea=O(a)};
joa=function(a){this.ea=O(a)};
koa=function(a){this.ea=O(a)};
PA=function(a){this.ea=O(a)};
loa=function(a){this.ea=O(a)};
QA=function(a){this.ea=O(a)};
RA=function(a){this.ea=O(a)};
moa=function(a){this.ea=O(a)};
noa=function(a){this.ea=O(a)};
SA=function(a){this.ea=O(a)};
ooa=function(a){this.ea=O(a)};
poa=function(a,b){Sj(a,tA,1,b)};
TA=function(a){this.ea=O(a)};
qoa=function(a,b){return Sj(a,tA,1,b)};
UA=function(a){this.ea=O(a)};
roa=function(a,b){return Sj(a,tA,2,b)};
VA=function(a){this.ea=O(a)};
WA=function(a){this.ea=O(a)};
XA=function(a){this.ea=O(a)};
YA=function(a){this.ea=O(a)};
soa=function(a){this.ea=O(a)};
ZA=function(a){this.ea=O(a)};
$A=function(a){var b=new ZA;return Q(b,1,a)};
aB=function(a,b){return Q(a,2,b)};
bB=function(a){this.ea=O(a)};
toa=function(a){this.ea=O(a)};
cB=function(a){this.ea=O(a)};
dB=function(a,b){Vj(a,68,ZA,b)};
uoa=function(a){this.ea=O(a)};
voa=function(a){this.ea=O(a)};
eB=function(a){this.ea=O(a)};
fB=function(a){this.ea=O(a)};
gB=function(a){this.ea=O(a)};
woa=function(a){this.ea=O(a)};
hB=function(a){this.ea=O(a)};
xoa=function(a){this.ea=O(a)};
yoa=function(a){this.ea=O(a)};
zoa=function(a){this.ea=O(a)};
iB=function(a){this.ea=O(a)};
Aoa=function(a){this.ea=O(a)};
Boa=function(a){this.ea=O(a)};
Coa=function(a){this.ea=O(a)};
jB=function(a){this.ea=O(a)};
Doa=function(a){this.ea=O(a)};
Eoa=function(a){this.ea=O(a)};
kB=function(a){this.ea=O(a)};
lB=function(a){this.ea=O(a)};
Foa=function(a){this.ea=O(a)};
mB=function(a){this.ea=O(a)};
Goa=function(a){this.ea=O(a)};
Hoa=function(a){this.ea=O(a)};
nB=function(a){this.ea=O(a,497)};
Ioa=function(a){this.ea=O(a)};
oB=function(a){this.ea=O(a)};
Joa=function(a){this.ea=O(a)};
Koa=function(){return g.Wa("yt.ads.biscotti.lastId_")||""};
Loa=function(a){g.Va("yt.ads.biscotti.lastId_",a)};
qB=function(){var a=arguments;1<a.length?pB[a[0]]=a[1]:1===a.length&&Object.assign(pB,a[0])};
g.rB=function(a,b){return a in pB?pB[a]:b};
sB=function(a){var b=pB.EXPERIMENT_FLAGS;return b?b[a]:void 0};
Moa=function(a){tB.forEach(function(b){return b(a)})};
g.xB=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.wB(b)}}:a};
g.wB=function(a){var b=g.Wa("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=g.rB("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),qB("ERRORS",b));Moa(a)};
yB=function(a,b,c,d,e){var f=g.Wa("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=g.rB("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),qB("ERRORS",f))};
zB=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=Noa(f[0]||""),l=Noa(f[1]||"");if(h in c){var m=c[h];Array.isArray(m)?g.Mb(m,l):c[h]=[m,l]}else c[h]=l}catch(r){var n=r,p=f[0],q=String(zB);n.args=[{key:p,value:f[1],query:a,method:Ooa===q?"unchanged":q}];Poa.hasOwnProperty(p)||yB(n)}}return c};
AB=function(a){var b=[];g.bd(a,function(c,d){var e=g.Ye(d);g.bc(Array.isArray(c)?c:[c],function(f){""==f?b.push(e):b.push(e+"="+g.Ye(f))})});
return b.join("&")};
BB=function(a){"?"===a.charAt(0)&&(a=a.substring(1));return zB(a,"&")};
Qoa=function(a){return a.split(",").map(function(b){return BB(b)})};
g.CB=function(a){return-1!==a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),BB(1<a.length?a[1]:a[0])):{}};
DB=function(a,b){return Roa(a,b||{},!0)};
EB=function(a,b){return Roa(a,b||{},!1)};
Roa=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=BB(e[1]||"");for(var f in b)if(c||!g.jd(e,f))e[f]=b[f];return g.an(a,e)+d};
FB=function(a){if(!b)var b=window.location.href;var c=g.Um(1,a),d=g.Vm(a);c&&d?(a=a.match(Tm),b=b.match(Tm),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Vm(b)===d&&(Number(g.Um(4,b))||null)===(Number(g.Um(4,a))||null):!0;return a};
GB=function(a){a||(a=document.location.href);a=g.Um(1,a);return null!==a&&"https"===a};
HB=function(a){a=g.Vm(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"===a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Noa=function(a){return a&&a.match(Soa)?a:Ze(a)};
IB=function(a){var b=Toa;a=void 0===a?Koa():a;var c=Object,d=c.assign,e=Uoa(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(E){}try{var m=f.outerWidth;var n=f.outerHeight}catch(E){}try{var p=f.innerWidth;var q=f.innerHeight}catch(E){}try{var r=f.screenLeft;var t=f.screenTop}catch(E){}try{p=f.innerWidth,q=f.innerHeight}catch(E){}try{var v=f.screen.availWidth;var x=f.screen.availTop}catch(E){}f=[r,t,h,l,v,x,m,n,p,q];h=nia(!1,b.j.top);l={};var A=void 0===A?g.Sa:A;m=new Ju;"SVGElement"in A&&"createElementNS"in
A.document&&m.set(0);n=zha();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);A.crypto&&A.crypto.subtle&&m.set(3);"TextDecoder"in A&&"TextEncoder"in A&&m.set(4);A=Vka(m);b=(l.bc=A,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Eq(b.B),l.wgl=!!Bq.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
Uoa=function(a){var b={};b.dt=Voa;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.B.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Bq:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Bq.screen)?void 0:f.height;var h;b.u_w=null==(h=Bq.screen)?void 0:h.width;var l;b.u_ah=null==(l=Bq.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Bq.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Bq.screen)?void 0:
n.colorDepth}catch(p){}return b};
Xoa=function(){if(!Woa)return null;var a=Woa();return"open"in a?a:null};
g.KB=function(a){switch(JB(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
JB=function(a){return a&&"status"in a?a.status:-1};
g.LB=function(a,b){"function"===typeof a&&(a=g.xB(a));return window.setTimeout(a,b)};
g.MB=function(a,b){"function"===typeof a&&(a=g.xB(a));return window.setInterval(a,b)};
g.NB=function(a){window.clearTimeout(a)};
g.OB=function(a){window.clearInterval(a)};
g.PB=function(a){a=Yoa(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.QB=function(a,b){a=Yoa(a);return void 0===a&&void 0!==b?b:Number(a||0)};
Zoa=function(){return g.rB("EXPERIMENTS_TOKEN","")};
Yoa=function(a){return g.rB("EXPERIMENT_FLAGS",{})[a]};
$oa=function(){for(var a=[],b=g.rB("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.rB("EXPERIMENT_FLAGS",{});d=g.u(Object.keys(c));for(var e=d.next();!e.done;e=d.next())e=e.value,e.startsWith("force_")&&void 0===b[e]&&a.push({key:e,value:String(c[e])});return a};
cpa=function(a,b,c,d,e,f,h,l){function m(){4===(n&&"readyState"in n?n.readyState:0)&&b&&g.xB(b)(n)}
c=void 0===c?"GET":c;d=void 0===d?"":d;l=void 0===l?!1:l;var n=Xoa();if(!n)return null;"onloadend"in n?n.addEventListener("loadend",m,!1):n.onreadystatechange=m;g.PB("debug_forward_web_query_parameters")&&(a=apa(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=bpa(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");if(l&&"setAttributionReporting"in XMLHttpRequest.prototype){a={eventSourceEligible:!0,triggerEligible:!1};try{n.setAttributionReporting(a)}catch(q){yB(q)}}n.send(d);return n};
bpa=function(a,b){b=void 0===b?{}:b;var c=FB(a),d=g.PB("web_ajax_ignore_global_headers_if_set"),e;for(e in dpa){var f=g.rB(dpa[e]),h="X-Goog-AuthUser"===e||"X-Goog-PageId"===e;"X-Goog-Visitor-Id"!==e||f||(f=g.rB("VISITOR_DATA"));!f||!c&&g.Vm(a)||d&&void 0!==b[e]||"TVHTML5_UNPLUGGED"===g.rB("INNERTUBE_CLIENT_NAME")&&h||(b[e]=f)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!g.Vm(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!g.Vm(a)){try{var l=
(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(m){}l&&(b["X-YouTube-Time-Zone"]=l)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&g.Vm(a)||(b["X-YouTube-Ad-Signals"]=AB(IB()));return b};
fpa=function(a,b){var c=g.Vm(a);g.PB("debug_handle_relative_url_for_query_forward_killswitch")||!c&&FB(a)&&(c=document.location.hostname);var d=Sm(g.Um(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=BB(b),f={};g.bc(epa,function(h){e[h]&&(f[h]=e[h])});
return EB(a,f)};
gpa=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.RB(a,b)};
g.RB=function(a,b){var c=b.format||"JSON";a=hpa(a,b);var d=ipa(a,b),e=!1,f=jpa(a,function(m){if(!e){e=!0;l&&g.NB(l);var n=g.KB(m),p=null,q=400<=m.status&&500>m.status,r=500<=m.status&&600>m.status;if(n||q||r)p=kpa(a,c,m,b.convertToSafeHtml);n&&(n=lpa(c,m,p));p=p||{};q=b.context||g.Sa;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.LB(function(){e||(e=!0,f.abort(),g.NB(l),h.call(b.context||g.Sa,f))},d)}return f};
hpa=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.rB("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=DB(a,b);return a};
ipa=function(a,b){var c=g.rB("XSRF_FIELD_NAME"),d=g.rB("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.rB("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.Vm(a)&&!b.withCredentials&&g.Vm(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.PB("ajax_parse_query_data_only_when_filled")&&f&&0<Object.keys(f).length||f)&&"string"===typeof e&&(e=BB(e),g.rd(e,f),e=b.postBodyFormat&&
"JSON"===b.postBodyFormat?JSON.stringify(e):g.$m(e));f=e||f&&!g.md(f);!mpa&&f&&"POST"!==b.method&&(mpa=!0,g.wB(Error("AJAX request with postData should use POST")));return e};
kpa=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,yB(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)?npa(a):null)e={},g.bc(a.getElementsByTagName("*"),function(h){e[h.tagName]=opa(h)})}d&&ppa(e);
return e};
ppa=function(a){if(g.bb(a))for(var b in a)"html_content"===b||Eaa(b,"_html")?a[b]=g.te(a[b]):ppa(a[b])};
lpa=function(a,b,c){if(b&&204===b.status)return!0;switch(a){case "JSON":return!!c;case "XML":return 0===Number(c&&c.return_code);case "RAW":return!0;default:return!!c}};
npa=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
opa=function(a){var b="";g.bc(a.childNodes,function(c){b+=c.nodeValue});
return b};
TB=function(a,b){var c=g.pd(b),d;return(new g.kg(function(e,f){c.onSuccess=function(h){g.KB(h)?e(new qpa(h)):f(new SB("Request failed, status="+JB(h),"net.badstatus",h))};
c.onError=function(h){f(new SB("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new SB("Request timed out","net.timeout",h))};
d=g.RB(a,c)})).Al(function(e){if(e instanceof wg){var f;
null==(f=d)||f.abort()}return tg(e)})};
g.UB=function(a,b,c,d){function e(l,m,n){return l.Al(function(p){if(0>=m||403===JB(p.xhr))return tg(new SB("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(TB(a,b),m-1,q)})})}
function f(l){return new g.kg(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(TB(a,b),c-1,d)};
SB=function(a,b,c){yb.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
qpa=function(a){this.xhr=a};
VB=function(a){this.j=void 0===a?null:a;this.C=0;this.B=null};
WB=function(a){var b=new VB;a=void 0===a?null:a;b.C=2;b.B=void 0===a?null:a;return b};
XB=function(a){var b=new VB;a=void 0===a?null:a;b.C=1;b.B=void 0===a?null:a;return b};
g.$B=function(a,b,c,d,e){YB||ZB.set(""+a,b,{yE:c,path:"/",domain:void 0===d?"youtube.com":d,K_:void 0===e?!1:e})};
g.aC=function(a,b){if(!YB)return ZB.get(""+a,b)};
g.rpa=function(a,b,c){YB||ZB.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
spa=function(){if(g.PB("embeds_web_enable_cookie_detection_fix")){if(!g.Sa.navigator.cookieEnabled)return!1}else if(!ZB.isEnabled())return!1;if(!ZB.isEmpty())return!0;g.PB("embeds_web_enable_cookie_detection_fix")?ZB.set("TESTCOOKIESENABLED","1",{yE:60,lca:"none",K_:!0}):ZB.set("TESTCOOKIESENABLED","1",{yE:60});if("1"!==ZB.get("TESTCOOKIESENABLED"))return!1;ZB.remove("TESTCOOKIESENABLED");return!0};
g.U=function(a,b){if(a)return a[b.name]};
tpa=function(a){var b=g.rB("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Wm(a)));return a};
upa=function(a,b){var c={};g.PB("web_api_key_killswitch")&&(g.rB("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.rB("INNERTUBE_API_KEY")));g.PB("json_condensed_response")&&(c.prettyPrint="false");return a=EB(a,c)};
vpa=function(a,b){var c=void 0===c?{}:c;a={method:void 0===b?"POST":b,mode:FB(a)?"same-origin":"cors",credentials:FB(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};
wpa=function(){var a=/Chrome\/(\d+)/.exec(g.pc());return a?parseFloat(a[1]):NaN};
xpa=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.pc());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("."))};
cC=function(){return g.bC("android")&&g.bC("chrome")&&!(g.bC("trident/")||g.bC("edge/"))&&!g.bC("cobalt")};
ypa=function(){return g.bC("armv7")||g.bC("aarch64")||g.bC("android")};
g.dC=function(){return g.bC("cobalt")};
eC=function(){return g.bC("cobalt")&&g.bC("appletv")};
zpa=function(){return g.bC("(ps3; leanback shell)")||g.bC("ps3")&&g.dC()};
Apa=function(){return g.bC("(ps4; leanback shell)")||g.bC("ps4")&&g.dC()};
g.Bpa=function(){return g.dC()&&(g.bC("ps4 vr")||g.bC("ps4 pro vr"))};
fC=function(){var a=/WebKit\/([0-9]+)/.exec(g.pc());return!!(a&&600<=parseInt(a[1],10))};
Cpa=function(){var a=/WebKit\/([0-9]+)/.exec(g.pc());return!!(a&&602<=parseInt(a[1],10))};
Dpa=function(){return g.bC("iemobile")||g.bC("windows phone")&&g.bC("edge")};
iC=function(){return(gC||hC)&&g.bC("applewebkit")&&!g.bC("version")&&(!g.bC("safari")||g.bC("gsa/"))};
kC=function(){return g.jC&&g.bC("version/")};
Epa=function(){return g.bC("smart-tv")&&g.bC("samsung")};
g.bC=function(a){var b=g.pc();return b?0<=b.toLowerCase().indexOf(a):!1};
Fpa=function(){return lfa()||iC()||kC()?!0:g.rB("EOM_VISITOR_DATA")?!1:!0};
lC=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
mC=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
nC=function(a,b){return void 0===b||null===b?a:Number(b)};
oC=function(a,b){return void 0===b||null===b?a:b.toString()};
Jpa=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(Gpa))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
pC=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};
Lpa=function(a){return"EMBEDDED_PLAYER_MODE_PFL"===Kpa(a,!1)};
g.qC=function(a){return"EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"===a||"EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"===a?!0:!1};
Kpa=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?mC(b,c.embeddedPlayerMode,Mpa):b};
Npa=function(a){yb.call(this,a.message||a.description||a.name);this.isMissing=a instanceof rC;this.isTimeout=a instanceof SB&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof wg};
rC=function(){yb.call(this,"Biscotti ID is missing from server")};
Opa=function(){if(g.PB("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Fpa())return Error("User has not consented - not fetching biscotti id.");var a=g.rB("PLAYER_VARS",{});if("1"==g.nd(a,"privembed",!1))return Error("Biscotti ID is not available in private embed mode");if(Lpa(a))return Error("Biscotti id fetching has been disabled for pfl.")};
Spa=function(){var a=Opa();if(void 0!==a)return tg(a);sC||(sC=TB("//googleads.g.doubleclick.net/pagead/id",Ppa).then(Qpa).Al(function(b){return Rpa(2,b)}));
return sC};
Qpa=function(a){a=a.xhr.responseText;if(!ec(a,")]}'"))throw new rC;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new rC;a=a.id;Loa(a);sC=XB(a);Tpa(18E5,2);return a};
Rpa=function(a,b){b=new Npa(b);Loa("");sC=WB(b);0<a&&Tpa(12E4,a-1);throw b;};
Tpa=function(a,b){g.LB(function(){TB("//googleads.g.doubleclick.net/pagead/id",Ppa).then(Qpa,function(c){return Rpa(b,c)}).Al(g.Sd)},a)};
Upa=function(){try{var a=g.Wa("yt.ads.biscotti.getId_");return a?a():Spa()}catch(b){return tg(b)}};
Ypa=function(a){a&&(a.dataset?a.dataset[Vpa()]="true":Tba([new Be(Wpa[0].toLowerCase(),Xpa)],a,"data-loaded","true".toString()))};
Zpa=function(a){return a?a.dataset?a.dataset[Vpa()]:a.getAttribute("data-loaded"):null};
Vpa=function(){return $pa.loaded||($pa.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))};
bqa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=aqa+"VisibilityState";if(b in a)return a[b]};
tC=function(a,b){var c;As(a,function(d){c=b[d];return!!c});
return c};
cqa=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()};
wC=function(a){var b;g.uC()?vC()==a&&(b=document):b=a;return b&&(a=tC(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
dqa=function(a){return g.Db(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
eqa=function(){var a=document;return g.Db(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.uC=function(){return!!tC(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
vC=function(a){a=void 0===a?!1:a;var b=tC(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
xC=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 fqa||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;
if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.j=a.pageX;this.B=a.pageY}}catch(e){}};
gqa=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.B=a.clientY+b}};
hqa=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 ld(yC,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.bb(e[4])&&g.bb(d)&&g.od(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.zC=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=hqa(a,b,c,d);if(e)return e;e=++iqa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new xC(l);if(!$f(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new xC(l);
l.currentTarget=a;return c.call(a,l)};
h=g.xB(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),jqa()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);yC[e]=[a,b,c,h,d];return e};
kqa=function(a,b){var c=document.body||document;return g.zC(c,"click",function(d){var e=$f(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.AC=function(a){a&&("string"==typeof a&&(a=[a]),g.bc(a,function(b){if(b in yC){var c=yC[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?jqa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete yC[b]}}))};
BC=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;b&&b.length?a=b[0]:(a=a||window.event,a=a.target||a.srcElement,3==a.nodeType&&(a=a.parentNode));return a};
lqa=function(a){return kqa(a,function(b){return g.Xu(b,"ytp-ad-has-logging-urls")})};
mqa=function(a){for(var b in yC)yC[b][0]==a&&g.AC(b)};
CC=function(a){this.N=a;this.j=null;this.D=0;this.K=null;this.G=0;this.B=[];for(a=0;4>a;a++)this.B.push(0);this.C=0;this.va=g.zC(window,"mousemove",(0,g.ib)(this.Y,this));this.Z=g.MB((0,g.ib)(this.ma,this),25)};
DC=function(a){g.I.call(this);this.N=[];this.tb=a||this};
EC=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
g.FC=function(a,b){for(;a.N.length;){var c=a.N.pop(),d=void 0;b&&nqa()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
GC=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.pd(b);this.assets=a.assets||{};this.attrs=a.attrs||g.pd(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
oqa=function(a){a instanceof GC||(a=new GC(a));return a};
g.IC=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.HC)():pqa())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.JC=function(a){var b=pqa(),c=(0,g.HC)();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};
qqa=function(){var a=(0,g.HC)();if(a&&(a=a.B("yt-player-quality")))return a.creation};
g.KC=function(a){try{var b=pqa(),c=(0,g.HC)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.LC=function(){return g.JC("yt-remote-session-screen-id")};
MC=function(){this.u0=!0};
rqa=function(){MC.instance||(MC.instance=new MC);return MC.instance};
sqa=function(a){var b=this;this.B=void 0;this.j=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.B=c});
a.addEventListener("appinstalled",function(){b.j=!0},{once:!0})};
tqa=function(){if(!g.Sa.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Sa.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Sa.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Sa.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Sa.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
uqa=function(a){switch(a){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}};
vqa=function(){this.j=g.rB("ALT_PREF_COOKIE_NAME","PREF");this.B=g.rB("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.aC(this.j);a&&this.parse(a)};
g.NC=function(){wqa||(wqa=new vqa);return wqa};
g.OC=function(a,b){return!!((xqa("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
yqa=function(a,b){var c="f"+(Math.floor(a/31)+1);a=1<<a%31;var d=xqa(c)||0;d=b?d|a:d&~a;0===d?delete PC[c]:(b=d.toString(16),PC[c]=b.toString())};
zqa=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
Aqa=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
xqa=function(a){a=void 0!==PC[a]?PC[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Bqa=function(){var a=g.Sa.navigator;return a?a.connection:void 0};
Dqa=function(){var a=Bqa();if(a){var b=Cqa[a.type||"unknown"]||"CONN_UNKNOWN";a=Cqa[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}};
Fqa=function(){var a=Bqa();if(null!=a&&a.effectiveType)return Eqa.hasOwnProperty(a.effectiveType)?Eqa[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.QC=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.pa(b))};
g.SC=function(){try{return g.RC(),!0}catch(a){return!1}};
g.RC=function(a){if(void 0!==g.rB("DATASYNC_ID"))return g.rB("DATASYNC_ID");throw new g.QC("Datasync ID not set",void 0===a?"unknown":a);};
TC=function(){this.j=new WeakMap};
g.VC=function(a,b,c){return UC(b,0,c)};
Gqa=function(a){var b=g.Wa("yt.scheduler.instance.addImmediateJob");b?b(a):a()};
WC=function(){TC.apply(this,arguments)};
g.XC=function(){WC.instance||(WC.instance=new WC);return WC.instance};
g.YC=function(){return!!g.Wa("yt.scheduler.instance")};
UC=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Wa("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.LB(a,c||0)};
ZC=function(a,b){(a=g.Wa("yt.scheduler.instance.setPriorityThreshold"))&&a(b)};
$C=function(a){var b;(b=g.Qv(a))||(a=new Mv(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.j=(a=b)?new Cv(a):null;this.B=document.domain||window.location.hostname};
Iqa=function(){var a;return null==(a=Hqa())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
Lqa=function(){var a={};for(aD=new Jqa(void 0===a.handleError?Kqa:a.handleError,void 0===a.logEvent?g.bD:a.logEvent);0<cD.length;)switch(a=cD.shift(),a.type){case "ERROR":aD.tE(a.payload);break;case "EVENT":aD.logEvent(a.eventType,a.payload)}};
eD=function(a){dD||(aD?aD.tE(a):(cD.push({type:"ERROR",payload:a}),10<cD.length&&cD.shift()))};
fD=function(a,b){dD||(aD?aD.logEvent(a,b):(cD.push({type:"EVENT",eventType:a,payload:b}),10<cD.length&&cD.shift()))};
gD=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
hD=function(a){return a.substr(0,a.indexOf(":"))||a};
g.iD=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?Mqa[a]:c;d=void 0===d?Nqa[a]:d;e=void 0===e?Oqa[a]:e;g.QC.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.iD.prototype)};
Pqa=function(a,b){g.iD.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Mqa.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Pqa.prototype)};
jD=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,jD.prototype)};
Rqa=function(a,b,c,d){b=hD(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.iD)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new g.iD("QUOTA_EXCEEDED",a);if(g.kD&&"UnknownError"===e.name)return new g.iD("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof jD)return new g.iD("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&Qqa.some(function(f){return e.message.includes(f)}))return new g.iD("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new g.iD("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",SJ:e.name})];e.level="WARNING";return e};
g.lD=function(a,b,c){var d=Iqa();return new g.iD("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
Sqa=function(a){if(!a)throw Error();throw a;};
Tqa=function(a){return a};
mD=function(a){this.j=a};
g.nD=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.u(d.B);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
function c(e){if("PENDING"===d.state.status){d.state={status:"FULFILLED",value:e};e=g.u(d.j);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
var d=this;this.state={status:"PENDING"};this.j=[];this.B=[];a=a.j;try{a(c,b)}catch(e){b(e)}};
Vqa=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.nD?Uqa(a,b,f,d,e):d(f)}catch(h){e(h)}};
Wqa=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.nD?Uqa(a,b,f,d,e):d(f)}catch(h){e(h)}};
Uqa=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.nD?Uqa(a,b,f,d,e):d(f)},function(f){e(f)})};
Xqa=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)};
Yqa=function(a){return new Promise(function(b,c){Xqa(a,b,c)})};
g.oD=function(a){return new g.nD(new mD(function(b,c){Xqa(a,b,c)}))};
Zqa=function(a,b){return new g.nD(new mD(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
$qa=function(a,b){this.request=a;this.cursor=b};
ara=function(a){return g.oD(a).then(function(b){return b?new $qa(a,b):null})};
g.bra=function(a){a.cursor.continue(void 0);return ara(a.request)};
cra=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.pD)());this.B=!1};
g.qD=function(a,b,c){a=a.j.createObjectStore(b,c);return new dra(a)};
rD=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
g.uD=function(a,b,c){return g.sD(a,[b],{mode:"readwrite",Tb:!0},function(d){return g.tD(d.objectStore(b),c)})};
g.sD=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,t,v,x;return g.H(function(A){switch(A.j){case 1:var E={mode:"readonly",Tb:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?E.mode=c:Object.assign(E,c);e=E;a.transactionCount++;f=e.Tb?3:1;h=0;case 2:if(l){A.Ka(4);break}h++;m=Math.round((0,g.pD)());g.Ba(A,5);n=a.j.transaction(b,e.mode);E=new vD(n);E=era(E,d);return g.z(A,E,7);case 7:return p=A.B,q=Math.round((0,g.pD)()),fra(a,m,q,h,void 0,b.join(),e),A.return(p);case 5:r=g.Da(A);t=Math.round((0,g.pD)());
v=Rqa(r,a.j.name,b.join(),a.j.version);if((x=v instanceof g.iD&&!v.j)||h>=f)fra(a,m,t,h,v,b.join(),e),l=v;A.Ka(2);break;case 4:return A.return(Promise.reject(l))}})};
fra=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.iD&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&fD("QUOTA_EXCEEDED",{dbName:hD(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.iD&&"UNKNOWN_ABORT"===e.type&&(c-=a.C,0>c&&c>=Math.pow(2,31)&&(c=0),fD("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),gra(a,!1,d,f,b,h.tag),eD(e)):gra(a,!0,d,
f,b,h.tag)};
gra=function(a,b,c,d,e,f){fD("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
dra=function(a){this.j=a};
g.wD=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
hra=function(a,b){return g.xD(a,{query:b},function(c){return c.delete().then(function(){return g.yD(c)})}).then(function(){})};
g.jra=function(a,b){return"getAll"in IDBObjectStore.prototype?g.oD(a.j.getAll(b,void 0)):ira(a,b)};
ira=function(a,b){var c=[];return g.xD(a,{query:b},function(d){c.push(d.getValue());return g.yD(d)}).then(function(){return c})};
lra=function(a){return"getAllKeys"in IDBObjectStore.prototype?g.oD(a.j.getAllKeys(void 0,void 0)):kra(a)};
kra=function(a){var b=[];return g.mra(a,{query:void 0},function(c){b.push(c.cursor.primaryKey);return g.bra(c)}).then(function(){return b})};
g.tD=function(a,b,c){return g.oD(a.j.put(b,c))};
g.xD=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return nra(a).then(function(d){return Zqa(d,c)})};
g.mra=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 ara(a).then(function(e){return Zqa(e,c)})};
vD=function(a){var b=this;this.j=a;this.C=new Map;this.B=!1;this.done=new Promise(function(c,d){b.j.addEventListener("complete",function(){c()});
b.j.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.j.error)});
b.j.addEventListener("abort",function(){var e=b.j.error;if(e)d(e);else if(!b.B){e=g.iD;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)}})})};
era=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})};
ora=function(a){this.j=a};
g.zD=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return nra(a).then(function(d){return Zqa(d,c)})};
AD=function(a,b){this.request=a;this.cursor=b};
nra=function(a){return g.oD(a).then(function(b){return b?new AD(a,b):null})};
g.yD=function(a){a.cursor.continue(void 0);return nra(a.request)};
pra=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new cra(h.result,{closed:q}));return r}
var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.Vca,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(t){try{if(null===t.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&"none"!==t.dataLoss&&fD("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:hD(a)});var v=f(),x=new vD(h.transaction);
p&&p(v,function(A){return t.oldVersion<A&&t.newVersion>=A},x);
x.done.catch(function(A){e(A)})}catch(A){e(A)}});
h.addEventListener("success",function(){var t=h.result;m&&t.addEventListener("versionchange",function(){m(f())});
t.addEventListener("close",function(){fD("IDB_UNEXPECTEDLY_CLOSED",{dbName:hD(a),dbVersion:t.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
qra=function(a,b,c){c=void 0===c?{}:c;return pra(a,b,c)};
BD=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.H(function(h){if(1==h.j)return g.Ba(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.z(h,Yqa(c),4);
if(2!=h.j)return g.Ca(h,0);f=g.Da(h);throw Rqa(f,a,"",-1);})};
CD=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0};
rra=function(a,b){return new g.iD("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.DD=function(a,b){if(!b)throw g.lD("openWithToken",hD(a.name));return a.open()};
tra=function(a,b){var c;return g.H(function(d){if(1==d.j)return g.z(d,g.DD(sra,b),2);c=d.B;return d.return(g.sD(c,["databases"],{Tb:!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.tD(f,a).then(function(){})})}))})};
ED=function(a,b){var c;return g.H(function(d){if(1==d.j)return a?g.z(d,g.DD(sra,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})};
ura=function(a,b){var c,d;return g.H(function(e){return 1==e.j?(c=[],g.z(e,g.DD(sra,b),2)):3!=e.j?(d=e.B,g.z(e,g.sD(d,["databases"],{Tb:!0,mode:"readonly"},function(f){c.length=0;return g.xD(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return g.yD(h)})}),3)):e.return(c)})};
vra=function(a,b){return ura(function(c){return c.publicName===a&&void 0!==c.userIdentifier},b)};
xra=function(){var a,b,c,d;return g.H(function(e){switch(e.j){case 1:a=Iqa();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(FD&&fC()&&!Cpa()||g.GD)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.Ba(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.z(e,tra(d,wra),4);case 4:return g.z(e,ED("yt-idb-test-do-not-use",wra),5);case 5:return e.return(!0);case 2:return g.Da(e),e.return(!1)}})};
zra=function(){if(void 0!==yra)return yra;dD=!0;return yra=xra().then(function(a){dD=!1;var b;if(null!=(b=Hqa())&&b.j){var c;b={hasSucceededOnce:(null==(c=Iqa())?void 0:c.hasSucceededOnce)||a};var d;null==(d=Hqa())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
HD=function(){return g.Wa("ytglobal.idbToken_")||void 0};
g.ID=function(){var a=HD();return a?Promise.resolve(a):zra().then(function(b){(b=b?wra:void 0)&&g.Va("ytglobal.idbToken_",b);return b})};
Ara=function(a){if(!g.SC())throw a=new g.iD("AUTH_INVALID",{dbName:a}),eD(a),a;var b=g.RC();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
Bra=function(a,b,c,d){var e,f,h,l,m,n;return g.H(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.z(p,g.ID(),2);case 2:h=p.B;if(!h)throw l=g.lD("openDbImpl",a,b),g.PB("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),eD(l),l;gD(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Ara(a);g.Ba(p,3);return g.z(p,tra(m,h),5);case 5:return g.z(p,qra(m.actualName,b,d),6);case 6:return p.return(p.B);case 3:return n=g.Da(p),g.Ba(p,7),g.z(p,ED(m.actualName,
h),9);case 9:g.Ca(p,8);break;case 7:g.Da(p);case 8:throw n;}})};
Cra=function(a,b,c){c=void 0===c?{}:c;return Bra(a,b,!1,c)};
Dra=function(a,b,c){c=void 0===c?{}:c;return Bra(a,b,!0,c)};
Era=function(a,b){b=void 0===b?{}:b;var c,d;return g.H(function(e){if(1==e.j)return g.z(e,g.ID(),2);if(3!=e.j){c=e.B;if(!c)return e.return();gD(a);d=Ara(a);return g.z(e,BD(d.actualName,b),3)}return g.z(e,ED(d.actualName,c),0)})};
Fra=function(a,b,c){a=a.map(function(d){return g.H(function(e){return 1==e.j?g.z(e,BD(d.actualName,b),2):g.z(e,ED(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
Gra=function(a){var b=void 0===b?{}:b;var c,d;return g.H(function(e){if(1==e.j)return g.z(e,g.ID(),2);if(3!=e.j){c=e.B;if(!c)return e.return();gD(a);return g.z(e,vra(a,c),3)}d=e.B;return g.z(e,Fra(d,b,c),0)})};
Hra=function(a,b){b=void 0===b?{}:b;var c;return g.H(function(d){if(1==d.j)return g.z(d,g.ID(),2);if(3!=d.j){c=d.B;if(!c)return d.return();gD(a);return g.z(d,BD(a,b),3)}return g.z(d,ED(a,c),0)})};
JD=function(a,b){CD.call(this,a,b);this.options=b;gD(a)};
Ira=function(a,b){var c;return function(){c||(c=new JD(a,b));return c}};
g.KD=function(a,b){return Ira(a,b)};
LD=function(a){return g.DD(Jra(),a)};
Kra=function(a,b,c,d){var e,f,h;return g.H(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:void 0!==d?d:(0,g.pD)()},g.z(l,LD(c),2);case 2:return f=l.B,g.z(l,f.clear("hotConfigStore"),3);case 3:return g.z(l,g.uD(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})};
Lra=function(a,b,c,d,e){var f,h,l;return g.H(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:void 0!==e?e:(0,g.pD)()},g.z(m,LD(d),2);case 2:return h=m.B,g.z(m,h.clear("coldConfigStore"),3);case 3:return g.z(m,g.uD(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})};
Mra=function(a){var b,c;return g.H(function(d){return 1==d.j?g.z(d,LD(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.sD(b,["coldConfigStore"],{mode:"readwrite",Tb:!0},function(e){return g.zD(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
Nra=function(a){var b,c;return g.H(function(d){return 1==d.j?g.z(d,LD(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.sD(b,["hotConfigStore"],{mode:"readwrite",Tb:!0},function(e){return g.zD(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
Ora=function(){return g.H(function(a){return g.z(a,Gra("ytGcfConfig"),0)})};
Pra=function(){g.I.call(this);this.B=[];this.j=[];var a=g.Wa("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.pa(a)),this.j=a):(this.j=[],g.Va("yt.gcf.config.hotUpdateCallbacks",this.j))};
QD=function(){var a=this;this.G=!1;this.C=this.D=0;this.K=new Pra;this.Cd={wnb:function(){a.G=!0},
Dmb:function(){return a.j},
xob:function(b){MD(a,b)},
Dr:function(b){a.Dr(b)},
sob:function(b){Qra(a,b)},
Y6:function(){return a.coldHashData},
h7:function(){return a.hotHashData},
Tmb:function(){return a.B},
Lmb:function(){return ND()},
Nmb:function(){return OD()},
Mmb:function(){return g.Wa("yt.gcf.config.coldHashData")},
Omb:function(){return g.Wa("yt.gcf.config.hotHashData")},
Nob:function(){Rra(a)},
nob:function(){a.Dr(void 0);PD(a);delete QD.instance},
uob:function(b){a.C=b},
Imb:function(){return a.C}}};
Sra=function(){if(!QD.instance){var a=new QD;QD.instance=a}return QD.instance};
Vra=function(a){var b;g.H(function(c){if(1==c.j)return g.PB("start_client_gcf")||g.PB("delete_gcf_config_db")?g.PB("start_client_gcf")?g.z(c,g.ID(),3):c.Ka(2):c.return();2!=c.j&&((b=c.B)&&g.SC()&&!g.PB("delete_gcf_config_db")?(a.G=!0,Rra(a)):(Tra(a),Ura(a)));return g.PB("delete_gcf_config_db")?g.z(c,Ora(),0):c.Ka(0)})};
RD=function(){var a;return null!=(a=OD())?a:g.rB("RAW_HOT_CONFIG_GROUP")};
Wra=function(a){var b,c,d,e,f,h;return g.H(function(l){switch(l.j){case 1:if(a.B)return l.return(OD());if(!a.G)return b=g.lD("getHotConfig IDB not initialized"),yB(b),l.return(Promise.reject(b));c=HD();d=g.rB("TIME_CREATED_MS");if(!c){e=g.lD("getHotConfig token error");yB(e);l.Ka(2);break}return g.z(l,Nra(c),3);case 3:if((f=l.B)&&f.timestamp>d)return MD(a,f.config),a.Dr(f.hashData),l.return(OD());case 2:Ura(a);if(!(c&&a.B&&a.hotHashData)){l.Ka(4);break}return g.z(l,Kra(a.B,a.hotHashData,c,d),4);case 4:return a.B?
l.return(OD()):(h=new g.QC("Config not available in ytConfig"),yB(h),l.return(Promise.reject(h)))}})};
Yra=function(a){var b,c,d,e,f,h;return g.H(function(l){switch(l.j){case 1:if(a.j)return l.return(ND());if(!a.G)return b=g.lD("getColdConfig IDB not initialized"),yB(b),l.return(Promise.reject(b));c=HD();d=g.rB("TIME_CREATED_MS");if(!c){e=g.lD("getColdConfig");yB(e);l.Ka(2);break}return g.z(l,Mra(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Qra(a,f.config),Xra(a,f.configData),PD(a,f.hashData),l.return(ND());case 2:Tra(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ka(4);break}return g.z(l,Lra(a.j,
a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(ND()):(h=new g.QC("Config not available in ytConfig"),yB(h),l.return(Promise.reject(h)))}})};
Rra=function(a){if(!a.B||!a.j){if(!HD()){var b=g.lD("scheduleGetConfigs");yB(b)}a.D||(a.D=g.Iu.Xi(function(){return g.H(function(c){switch(c.j){case 1:return g.Ba(c,2),g.z(c,Wra(a),4);case 4:g.Ca(c,3);break;case 2:g.Da(c);case 3:return g.Ba(c,5),g.z(c,Yra(a),7);case 7:g.Ca(c,6);break;case 5:g.Da(c);case 6:a.D&&(a.D=0),g.Aa(c)}})},100))}};
Zra=function(a,b,c){var d,e,f;return g.H(function(h){switch(h.j){case 1:if(!g.PB("start_client_gcf")){h.Ka(0);break}c&&MD(a,c);a.Dr(b);d=HD();if(!d){h.Ka(3);break}if(c){h.Ka(4);break}return g.z(h,Nra(d),5);case 5:e=h.B,c=null==(f=e)?void 0:f.config;case 4:return g.z(h,Kra(c,b,d),3);case 3:if(c)for(var l=c,m=g.u(a.K.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.Aa(h)}})};
$ra=function(a,b,c){var d,e,f,h;return g.H(function(l){if(1==l.j){if(!g.PB("start_client_gcf"))return l.Ka(0);PD(a,b);return(d=HD())?c?l.Ka(4):g.z(l,Mra(d),5):l.Ka(0)}4!=l.j&&(e=l.B,c=null==(f=e)?void 0:f.config);if(!c)return l.Ka(0);h=c.configData;return g.z(l,Lra(c,b,h,d),0)})};
asa=function(){var a=Sra(),b=(0,g.pD)()-a.C;if(!(0!==a.C&&b<g.QB("send_config_hash_timer"))){b=g.Wa("yt.gcf.config.coldConfigData");var c=g.Wa("yt.gcf.config.hotHashData"),d=g.Wa("yt.gcf.config.coldHashData");b&&c&&d&&(a.C=(0,g.pD)());return{coldConfigData:b,hotHashData:c,coldHashData:d}}};
Tra=function(a){Qra(a,g.rB("RAW_COLD_CONFIG_GROUP"));PD(a,g.rB("SERIALIZED_COLD_HASH_DATA"));var b;Xra(a,null==(b=a.j)?void 0:b.configData)};
Ura=function(a){MD(a,g.rB("RAW_HOT_CONFIG_GROUP"));a.Dr(g.rB("SERIALIZED_HOT_HASH_DATA"))};
MD=function(a,b){a.B=b;g.Va("yt.gcf.config.hotConfigGroup",a.B||null)};
Qra=function(a,b){a.j=b;g.Va("yt.gcf.config.coldConfigGroup",a.j||null)};
PD=function(a,b){a.coldHashData=b;g.Va("yt.gcf.config.coldHashData",a.coldHashData||null)};
Xra=function(a,b){a.configData=b;g.Va("yt.gcf.config.coldConfigData",a.configData||null)};
OD=function(){return g.Wa("yt.gcf.config.hotConfigGroup")};
ND=function(){return g.Wa("yt.gcf.config.coldConfigGroup")};
bsa=function(){return"INNERTUBE_API_KEY"in pB&&"INNERTUBE_API_VERSION"in pB};
g.SD=function(){return{innertubeApiKey:g.rB("INNERTUBE_API_KEY"),innertubeApiVersion:g.rB("INNERTUBE_API_VERSION"),GI:g.rB("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),WO:g.rB("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),ZX:g.rB("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.rB("INNERTUBE_CONTEXT_CLIENT_VERSION"),YO:g.rB("INNERTUBE_CONTEXT_HL"),XO:g.rB("INNERTUBE_CONTEXT_GL"),aY:g.rB("INNERTUBE_HOST_OVERRIDE")||"",bY:!!g.rB("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),ZO:!!g.rB("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.rB("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.isa=function(a){var b={client:{hl:a.YO,gl:a.XO,clientName:a.WO,clientVersion:a.innertubeContextClientVersion,configInfo:a.GI}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.Sa.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=Zoa();""!==c&&(b.client.experimentsToken=c);c=$oa();0<c.length&&(b.request={internalExperimentFlags:c});csa(a,void 0,b);dsa(void 0,b);esa(void 0,b);fsa(a,void 0,b);gsa(void 0,b);g.PB("start_client_gcf")&&hsa(void 0,b);g.rB("DELEGATED_SESSION_ID")&&
!g.PB("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.rB("DELEGATED_SESSION_ID")});!g.PB("fill_delegate_context_in_gel_killswitch")&&(a=g.rB("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(BB(g.rB("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};
csa=function(a,b,c){a=a.WO;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=g.Rj(b,Iy,96)||new Iy;var d=tqa();d=Object.keys(jsa).indexOf(d);d=-1===d?null:d;null!==d&&S(c,3,d);Sj(b,Iy,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=tqa())};
dsa=function(a,b){var c=g.Wa("yt.embedded_player.embed_url");c&&(a?(b=g.Rj(a,Ny,7)||new Ny,Q(b,4,c),Sj(a,Ny,7,b)):b&&(b.thirdParty={embedUrl:c}))};
esa=function(a,b){var c;if(g.PB("web_log_memory_total_kbytes")&&(null==(c=g.Sa.navigator)?0:c.deviceMemory)){var d;c=null==(d=g.Sa.navigator)?void 0:d.deviceMemory;a?Aj(a,95,yi(1E6*c)):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
fsa=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=g.Rj(b,Ey,62))?d:new Ey;Q(c,6,a.appInstallData);Sj(b,Ey,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
gsa=function(a,b){var c=Dqa();c&&(a?S(a,61,ksa[c]):b&&(b.client.connectionType=c));g.PB("web_log_effective_connection_type")&&(c=Fqa())&&(a?S(a,94,lsa[c]):b&&(b.client.effectiveConnectionType=c))};
msa=function(a,b,c){c=void 0===c?{}:c;var d={};g.rB("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.rB("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.rB("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.wV||g.rB("AUTHORIZATION");b||(a?b="Bearer "+g.Wa("gapi.auth.getToken")().access_token:(a=rqa().uD(TD),g.PB("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d};
hsa=function(a,b){var c=asa();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(d&&e&&c)if(a){var f;b=null!=(f=g.Rj(a,Ey,62))?f:new Ey;Q(b,1,d);Q(b,3,e);b.Dr(c);Sj(a,Ey,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)}};
UD=function(a,b){this.version=a;this.args=b};
VD=function(a,b){this.topic=a;this.j=b};
WD=function(a,b){var c=nsa();c&&c.publish.call(c,a.toString(),a,b)};
psa=function(a,b){var c=nsa();if(!c)return 0;var d=c.subscribe(a.toString(),function(e,f){var h=g.Wa("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(XD[d])try{if(f&&a instanceof VD&&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.yu){var n=new l;l.yu=n.version}var p=l.yu}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.wB(q)}},osa[a.toString()]?g.YC()?g.Iu.Xi(h):g.LB(h,0):h())});
XD[d]=!0;YD[a.toString()]||(YD[a.toString()]=[]);YD[a.toString()].push(d);return d};
rsa=function(a,b){var c=psa(a,function(d){b.apply(void 0,arguments);qsa(c)});
return c};
qsa=function(a){var b=nsa();b&&("number"===typeof a&&(a=[a]),g.bc(a,function(c){b.unsubscribeByKey(c);delete XD[c]}))};
nsa=function(){return g.Wa("ytPubsub2Pubsub2Instance")};
ssa=function(a,b,c){c=void 0===c?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&WD("meta_logging_csi_event",{timerName:a,Lob:b})};
usa=function(){tsa||(tsa=Dw(g.rB("WORKER_SERIALIZATION_URL")));return tsa||void 0};
ZD=function(){var a=usa();vsa||void 0===a||(vsa=new Worker(g.ee(a),void 0));return vsa};
wsa=function(){return"function"===typeof Worker&&usa()?!0:!1};
zsa=function(){if(wsa()&&!xsa){var a=function(c){c=c.data;if("gzippedGelBatch"===c.op){var d=$D.get(c.key);d&&(ysa(c.gzippedBatch,d.latencyPayload,d.url,d.options,d.sendFn),$D.delete(c.key))}},b=ZD();
b&&(b.addEventListener("message",a),b.onerror=function(){$D.clear()},xsa=!0)}};
bE=function(a,b,c,d,e){e=void 0===e?!1:e;var f={startTime:(0,g.pD)(),ticks:{},infos:{}};if(aE)try{var h=Asa(b);if(null!=h&&(h>Bsa||h<Csa))d(a,c);else{if(g.PB("gzip_gel_with_worker")&&(g.PB("initial_gzip_use_main_thread")&&!Dsa||!g.PB("initial_gzip_use_main_thread"))){xsa||zsa();var l=ZD();if(l&&!e){$D.set(Esa,{latencyPayload:f,url:a,options:c,sendFn:d});l.postMessage({op:"gelBatchToGzip",serializedBatch:b,key:Esa});Esa++;return}}var m=Yla(Fsa(b));ysa(m,f,a,c,d)}}catch(n){yB(n),d(a,c)}else d(a,c)};
ysa=function(a,b,c,d,e){Dsa=!1;var f=(0,g.pD)();b.ticks.gelc=f;cE++;g.PB("disable_compression_due_to_performance_degredation")&&f-b.startTime>=Gsa&&(dE++,g.PB("abandon_compression_after_N_slow_zips")?cE===g.QB("compression_disable_point")&&dE>Hsa&&(aE=!1):aE=!1);Isa(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)};
Jsa=function(a){var b=void 0===b?!1:b;var c=void 0===c?!1:c;var d=(0,g.pD)(),e={startTime:d,ticks:{},infos:{}},f=b?g.Wa("yt.logging.gzipForFetch",!1):!0;if(aE&&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=Asa(h);if(null!=l&&(l>Bsa||l<Csa))return a;c=b?{level:1}:void 0;f=Yla(Fsa(h),c);var m=(0,g.pD)();e.ticks.gelc=m;if(b){cE++;if((g.PB("disable_compression_due_to_performance_degredation")||g.PB("disable_compression_due_to_performance_degradation_lr"))&&
m-d>=Gsa)if(dE++,g.PB("abandon_compression_after_N_slow_zips")||g.PB("abandon_compression_after_N_slow_zips_lr")){b=dE/cE;var n=Hsa/g.QB("compression_disable_point");0<cE&&0===cE%g.QB("compression_disable_point")&&b>=n&&(aE=!1)}else aE=!1;Isa(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return yB(p),a}}else return a};
Asa=function(a){try{return(new Blob(a.split(""))).size}catch(b){return yB(b),null}};
Isa=function(a){g.PB("gel_compression_csi_killswitch")||!g.PB("log_gel_compression_latency")&&!g.PB("log_gel_compression_latency_lr")||ssa("gel_compression",a,{sampleRate:.1})};
fE=function(a){var b=this;this.bH=this.j=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){};
this.Iz=function(){};
this.now=Date.now;this.bD=!1;this.Cd={tob:function(p){b.Jf=p},
Oob:function(){b.DB()},
L5:function(){b.WM()},
XD:function(p){return g.H(function(q){return g.z(q,b.XD(p),0)})},
uK:function(p,q){return b.uK(p,q)},
yK:function(){b.yK()}};
var c;this.y0=null!=(c=a.y0)?c:100;var d;this.G_=null!=(d=a.G_)?d:1;var e;this.z_=null!=(e=a.z_)?e:2592E6;var f;this.u_=null!=(f=a.u_)?f:12E4;var h;this.F_=null!=(h=a.F_)?h:5E3;var l;this.Jf=null!=(l=a.Jf)?l:void 0;this.EH=!!a.EH;var m;this.kH=null!=(m=a.kH)?m:.1;var n;this.fK=null!=(n=a.fK)?n:10;a.handleError&&(this.handleError=a.handleError);a.Iz&&(this.Iz=a.Iz);a.bD&&(this.bD=a.bD);a.bH&&(this.bH=a.bH);this.kb=a.kb;this.Pn=a.Pn;this.Dh=a.Dh;this.kh=a.kh;this.sendFn=a.sendFn;this.MQ=a.MQ;this.bQ=
a.bQ;eE(this)&&(!this.kb||this.kb("networkless_logging"))&&Ksa(this)};
Ksa=function(a){eE(a)&&!a.bD&&(a.j=!0,a.EH&&Math.random()<=a.kH&&a.Dh.Q5(a.Jf),a.yK(),a.kh.Th()&&a.DB(),a.kh.Ta(a.MQ,a.DB.bind(a)),a.kh.Ta(a.bQ,a.WM.bind(a)))};
Nsa=function(a,b){if(!eE(a))throw Error("IndexedDB is not supported: updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var h,l,m,n;return g.H(function(p){switch(p.j){case 1:h=Lsa(f);(l=Msa(f))&&a.kb&&a.kb("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.kb&&a.kb("nwl_consider_error_code")&&h||a.kb&&!a.kb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.fK)){p.Ka(2);break}if(!a.kh.DK){p.Ka(3);break}return g.z(p,a.kh.DK(),3);case 3:if(a.kh.Th()){p.Ka(2);break}c(e,f);if(!a.kb||!a.kb("nwl_consider_error_code")||void 0===(null==(m=
b)?void 0:m.id)){p.Ka(6);break}return g.z(p,a.Dh.wR(b.id,a.Jf,!1),6);case 6:return p.return();case 2:if(a.kb&&a.kb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.fK)return p.return();a.potentialEsfErrorCounter++;if(void 0===(null==(n=b)?void 0:n.id)){p.Ka(8);break}return b.sendCount<a.G_?g.z(p,a.Dh.wR(b.id,a.Jf,!0,l?!1:void 0),12):g.z(p,a.Dh.nz(b.id,a.Jf),8);case 12:a.Pn.Xi(function(){a.kh.Th()&&a.DB()},a.F_);
case 8:c(e,f),g.Aa(p)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var h;return g.H(function(l){if(1==l.j)return void 0===(null==(h=b)?void 0:h.id)?l.Ka(2):g.z(l,a.Dh.nz(b.id,a.Jf),2);a.kh.Dw&&a.kb&&a.kb("vss_network_hint")&&a.kh.Dw(!0);d(e,f);g.Aa(l)})};
return b};
gE=function(a,b){a.A1&&!a.kh.Th()?a.A1(b):a.handleError(b)};
eE=function(a){return!!a.Jf||a.bH};
Lsa=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
Msa=function(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)};
Osa=function(){if(hE)return hE();var a={};hE=g.KD("LogsDatabaseV2",{jr:(a.LogsRequestsStore={cn:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.qD(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.wD(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&rD(b,"sapisid");c(9)&&rD(b,"SWHealthLog")},
version:9});return hE()};
iE=function(a){return g.DD(Osa(),a)};
Qsa=function(a,b){var c,d,e,f;return g.H(function(h){if(1==h.j)return c={startTime:(0,g.pD)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.z(h,iE(b),2);if(3!=h.j)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.rB("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.z(h,g.uD(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.pD)();Psa(c);return h.return(f)})};
Rsa=function(a,b){var c,d,e,f,h,l,m;return g.H(function(n){if(1==n.j)return c={startTime:(0,g.pD)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.z(n,iE(b),2);if(3!=n.j)return d=n.B,e=g.rB("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.pD)()],l=IDBKeyRange.bound(f,h),m=void 0,g.z(n,g.sD(d,["LogsRequestsStore"],{mode:"readwrite",Tb:!0},function(p){return g.zD(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.pD)();Psa(c);return n.return(m)})};
Ssa=function(a,b){var c;return g.H(function(d){if(1==d.j)return g.z(d,iE(b),2);c=d.B;return d.return(g.sD(c,["LogsRequestsStore"],{mode:"readwrite",Tb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.tD(f,h).then(function(){return h})})}))})};
Tsa=function(a,b,c,d){c=void 0===c?!0:c;var e;return g.H(function(f){if(1==f.j)return g.z(f,iE(b),2);e=f.B;return f.return(g.sD(e,["LogsRequestsStore"],{mode:"readwrite",Tb:!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.tD(l,m).then(function(){return m})):g.nD.resolve(void 0)})}))})};
Usa=function(a,b){var c;return g.H(function(d){if(1==d.j)return g.z(d,iE(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})};
Vsa=function(a){var b,c;return g.H(function(d){if(1==d.j)return g.z(d,iE(a),2);b=d.B;c=(0,g.pD)()-2592E6;return g.z(d,g.sD(b,["LogsRequestsStore"],{mode:"readwrite",Tb:!0},function(e){return g.xD(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.yD(f)})})}),0)})};
Wsa=function(){g.H(function(a){return g.z(a,Gra("LogsDatabaseV2"),0)})};
Psa=function(a){g.PB("nwl_csi_killswitch")||ssa("networkless_performance",a,{sampleRate:1})};
Ysa=function(a){return g.DD(Xsa(),a)};
Zsa=function(a){var b,c;g.H(function(d){if(1==d.j)return g.z(d,Ysa(a),2);b=d.B;c=(0,g.pD)()-2592E6;return g.z(d,g.sD(b,["SWHealthLog"],{mode:"readwrite",Tb:!0},function(e){return g.xD(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.yD(f)})})}),0)})};
$sa=function(a){var b;return g.H(function(c){if(1==c.j)return g.z(c,Ysa(a),2);b=c.B;return g.z(c,b.clear("SWHealthLog"),0)})};
g.jE=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.dC()){if(a){a=g.ke(g.ye(a));if(a===g.xe.toString()||a.startsWith("data"))a="";else{var l=void 0===l?{}:l;a instanceof g.oe?l=a:(a=String(a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),l.iob&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;")),l.hob&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>")),l.job&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>')),
l=g.te(a));a=g.Ye(g.Nm(g.pe(l).toString()))}g.fc(a)||(l=Hf("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),mf(l).body.appendChild(l))}}else if(e)cpa(a,b,"POST",e,d);else if(g.rB("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)cpa(a,b,"GET","",d,void 0,f,h);else{b:{try{var m=new Pka({url:a});if(m.C&&m.B||m.D){var n=Sm(g.Um(5,a));var p=!(!n||!n.endsWith("/aclk")||"1"!==cn(a,"ri"));break b}}catch(q){}p=!1}p?ata(a)?(b&&b(),l=!0):l=!1:l=!1;l||bta(a,b)}};
ata=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
bta=function(a,b){var c=new Image,d=""+cta++;dta[d]=c;c.onload=c.onerror=function(){b&&dta[d]&&b();delete dta[d]};
c.src=a};
eta=function(a){var b=g.Vm(a);if(!g.PB("update_chrome_api_monitoring_allowed_features")&&"www.googleadservices.com"!==b)return a;var c,d,e;return(g.PB("update_chrome_api_monitoring_allowed_features")?null==(c=document.featurePolicy)?0:c.allowedFeatures().includes("attribution-reporting"):"function"===typeof(null==(d=document.featurePolicy)?void 0:d.features)&&(null==(e=document.featurePolicy)?0:e.features().includes("attribution-reporting")))?a+"&nis=6":a+"&nis=5"};
kE=function(){this.j=new Map;this.B=!1};
lE=function(){if(!kE.instance){var a=g.Wa("yt.networkRequestMonitor.instance")||new kE;g.Va("yt.networkRequestMonitor.instance",a);kE.instance=a}return kE.instance};
mE=function(){fta||(fta=new $C("yt.offline"));return fta};
gta=function(a){if(g.PB("offline_error_handling")){var b=mE().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);mE().set("errors",b,2592E3,!0)}};
nE=function(){g.Ld.call(this);var a=this;this.B=!1;this.j=Uka();this.j.Ta("networkstatus-online",function(){if(a.B&&g.PB("offline_error_handling")){var b=mE().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.QC(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.wB(d)}mE().set("errors",{},2592E3,!0)}}})};
hta=function(){if(!nE.instance){var a=g.Wa("yt.networkStatusManager.instance")||new nE;g.Va("yt.networkStatusManager.instance",a);nE.instance=a}return nE.instance};
g.oE=function(a){a=void 0===a?{}:a;g.Ld.call(this);var b=this;this.j=this.D=0;this.B=hta();var c=g.Wa("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){ita(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){ita(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
ita=function(a,b){a.rateLimit?a.j?(g.Iu.Sj(a.D),a.D=g.Iu.Xi(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.pD)())},a.rateLimit-((0,g.pD)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.pD)()):a.dispatchEvent(b)};
pE=function(){var a=fE.call;jta||(jta=new g.oE({Hnb:!0,cmb:!0}));a.call(fE,this,{Dh:{Q5:Vsa,nz:Usa,cX:Rsa,T8:Ssa,wR:Tsa,set:Qsa},kh:jta,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;yB(new g.QC(b.message,c,null==d?void 0:null==(h=d.error)?void 0:h.code),void 0,void 0,void 0,!0)}else g.wB(b)},
Iz:yB,sendFn:kta,now:g.pD,A1:gta,Pn:g.XC(),MQ:"publicytnetworkstatus-online",bQ:"publicytnetworkstatus-offline",EH:!0,kH:.1,fK:g.QB("potential_esf_error_limit",10),kb:g.PB,bD:!(g.SC()&&"www.youtube-nocookie.com"!==g.Vm(document.location.toString()))});this.C=new g.go;g.PB("networkless_immediately_drop_all_requests")&&Wsa();Hra("LogsDatabaseV2")};
qE=function(){var a=g.Wa("yt.networklessRequestController.instance");a||(a=new pE,g.Va("yt.networklessRequestController.instance",a),g.PB("networkless_logging")&&g.ID().then(function(b){a.Jf=b;Ksa(a);a.C.resolve();a.EH&&Math.random()<=a.kH&&a.Jf&&Zsa(a.Jf);g.PB("networkless_immediately_drop_sw_health_store")&&lta(a)}));
return a};
lta=function(a){var b;g.H(function(c){if(!a.Jf)throw b=g.lD("clearSWHealthLogsDb"),b;return c.return($sa(a.Jf).catch(function(d){a.handleError(d)}))})};
kta=function(a,b,c,d){d=void 0===d?!1:d;b=g.PB("web_fp_via_jspb")?Object.assign({},b):b;g.PB("use_cfr_monitor")&&mta(a,b);if(g.PB("use_request_time_ms_header"))b.headers&&FB(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.pD)())));else{var e;if(null==(e=b.postParams)?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.pD)())}c&&0===Object.keys(b).length?g.jE(a):b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),bE(a,b.postBody,
b,g.RB,d)):bE(a,JSON.stringify(b.postParams),b,gpa,d):g.RB(a,b)};
nta=function(a,b){g.PB("use_event_time_ms_header")&&FB(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.pD)())));return b};
mta=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){lE().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){lE().requestComplete(a,!0);d(e,f)}};
g.rE=function(a){this.config_=null;a?this.config_=a:bsa()&&(this.config_=g.SD())};
g.sE=function(a,b,c,d){function e(p){try{if((void 0===p?0:p)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?qE().writeThenSend(n,f):qE().sendAndWrite(n,f);else if(d.compress){var q=!d.networklessOptions.writeThenSend;if(f.postBody){var r=f.postBody;"string"!==typeof r&&(r=JSON.stringify(f.postBody));bE(n,r,f,g.RB,q)}else bE(n,JSON.stringify(f.postParams),f,gpa,q)}else g.PB("web_all_payloads_via_jspb")?g.RB(n,f):gpa(n,f)}catch(t){if("InvalidAccessError"===
t.name)yB(Error("An extension is blocking network request."));else throw t;}}
!g.rB("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&yB(new g.QC("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.QC("innertube xhrclient not ready",b,c,d),g.wB(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_.aY;h&&(c=h);var l=a.config_.bY||!1;h=msa(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_.ZO&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=DB(""+c+b,l);g.Wa("ytNetworklessLoggingInitializationOptions")&&
ota.isNwlInitialized?zra().then(function(p){e(p)}):e(!1)};
g.xE=function(a,b,c){var d=g.tE();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){uE[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.vE[a]?h():g.LB(h,0)}catch(l){g.wB(l)}},c);
uE[e]=!0;wE[a]||(wE[a]=[]);wE[a].push(e);return e}return 0};
pta=function(a){var b=g.xE("LOGGED_IN",function(c){a.apply(void 0,arguments);g.yE(b)})};
g.yE=function(a){var b=g.tE();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.bc(a,function(c){b.unsubscribeByKey(c);delete uE[c]}))};
g.zE=function(a,b){var c=g.tE();return c?c.publish.apply(c,arguments):!1};
rta=function(a){var b=g.tE();if(b)if(b.clear(a),a)qta(a);else for(var c in wE)qta(c)};
g.tE=function(){return g.Sa.ytPubsubPubsubInstance};
qta=function(a){wE[a]&&(a=wE[a],g.bc(a,function(b){uE[b]&&delete uE[b]}),a.length=0)};
g.vta=function(a,b,c){c=void 0===c?null:c;if(g.PB("web_simple_scriptloader"))sta(a,b,c);else 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(tta,""),c=c.replace(uta,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else sta(a,b,c)};
sta=function(a,b,c){c=void 0===c?null:c;var d=wta(a),e=document.getElementById(d),f=e&&Zpa(e),h=e&&!f;f?b&&b():(b&&(f=g.xE(d,b),b=""+g.fb(b),xta[b]=f),h||(e=yta(a,d,function(){Zpa(e)||(Ypa(e),g.zE(d),g.LB(function(){rta(d)},0))},c)))};
yta=function(a,b,c,d){d=void 0===d?null:d;var e=g.If("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.We(e,g.Ew(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
wta=function(a){var b=document.createElement("a");g.Se(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+hf(a)};
BE=function(a){var b=g.Ia.apply(1,arguments);if(!AE(a)||b.some(function(d){return!AE(d)}))throw Error("Only objects may be merged.");
b=g.u(b);for(var c=b.next();!c.done;c=b.next())zta(a,c.value)};
zta=function(a,b){for(var c in b)if(AE(b[c])){if(c in a&&!AE(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});zta(a[c],b[c])}else if(Ata(b[c])){if(c in a&&!Ata(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Bta(a[c],b[c])}else a[c]=b[c];return a};
Bta=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,AE(c)?a.push(zta({},c)):Ata(c)?a.push(Bta([],c)):a.push(c);return a};
AE=function(a){return"object"===typeof a&&!Array.isArray(a)};
Ata=function(a){return"object"===typeof a&&Array.isArray(a)};
CE=function(a){g.I.call(this);this.B=a};
DE=function(a){CE.call(this,!0);this.j=a};
Cta=function(a,b){g.I.call(this);var c=this;this.C=[];this.N=!1;this.B=0;this.G=this.K=this.D=!1;this.ma=null;var d=(0,g.ib)(a,b);this.j=new g.Qu(function(){return d(c.ma)},300);
g.N(this,this.j);this.Y=this.Z=Infinity};
Dta=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.C.includes(d.identifier))return!0}return!1};
Eta=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(EE)for(c=1,d=0;d<EE.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^EE.charCodeAt(d),c++;return b};
FE=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 Eta(a)};
g.GE=function(a){a=FE(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Fta=function(){return g.Er(FE(16),function(a){return(a&15).toString(16)}).join("")};
Gta=function(){var a={},b=void 0===a.yba?!1:a.yba;a=void 0===a.B6?!0:a.B6;if(null==g.Wa("_lact",window)){var c=parseInt(g.rB("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Va("_lact",c,window);g.Va("_fact",c,window);-1==c&&HE();g.zC(document,"keydown",HE);g.zC(document,"keyup",HE);g.zC(document,"mousedown",HE);g.zC(document,"mouseup",HE);b?g.zC(window,"touchmove",function(){IE("touchmove",200)},{passive:!0}):(g.zC(window,"resize",function(){IE("resize",200)}),a&&g.zC(window,"scroll",function(){IE("scroll",
200)}));
new CC(function(){IE("mouse",100)});
g.zC(document,"touchstart",HE,{passive:!0});g.zC(document,"touchend",HE,{passive:!0})}};
IE=function(a,b){Hta[a]||(Hta[a]=!0,g.Iu.Xi(function(){HE();Hta[a]=!1},b))};
HE=function(){null==g.Wa("_lact",window)&&(Gta(),g.Wa("_lact",window));var a=Date.now();g.Va("_lact",a,window);-1==g.Wa("_fact",window)&&g.Va("_fact",a,window);(a=g.Wa("ytglobal.ytUtilActivityCallback_"))&&a()};
JE=function(){var a=g.Wa("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)};
KE=function(a){this.name=a};
LE=function(a){this.key=a};
Ita=function(){var a=this;this.j=new Map;this.C=new Map;this.B=new Map;this.Cd={Vmb:function(){return new Map(a.j)}}};
Jta=function(a,b){a.j.set(b.iF,b);var c=a.C.get(b.iF);c&&c.yR(a.resolve(b.iF))};
NE=function(a,b,c,d){d=void 0===d?!1:d;if(-1<c.indexOf(b))throw Error("Deps cycle for: "+b);if(a.B.has(b))return a.B.get(b);if(!a.j.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.j.get(b);c.push(b);if(void 0!==d.IS)var e=d.IS;else if(d.zda)e=d[ME]?Kta(a,d[ME],c):[],e=d.zda.apply(d,g.pa(e));else if(d.l1){e=d.l1;var f=e[ME]?Kta(a,e[ME],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.pa(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.Hob||a.B.set(b,e);
return e};
Kta=function(a,b,c){return b?b.map(function(d){return d instanceof LE?NE(a,d.key,c,!0):NE(a,d,c)}):[]};
OE=function(){Lta||(Lta=new Ita);return Lta};
Mta=function(){var a,b;return"h5vcc"in PE&&(null==(a=PE.h5vcc.traceEvent)?0:a.traceBegin)&&(null==(b=PE.h5vcc.traceEvent)?0:b.traceEnd)?1:"performance"in PE&&PE.performance.mark&&PE.performance.measure?2:0};
Nta=function(a){var b=Mta();switch(b){case 1:PE.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:PE.performance.mark(a+"-start");break;case 0:break;default:Te(b,"unknown trace type")}};
Ota=function(a){var b=Mta();switch(b){case 1:PE.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";PE.performance.mark(c);PE.performance.measure(a,b,c);break;case 0:break;default:Te(b,"unknown trace type")}};
Qta=function(a){var b=this;var c=void 0===c?0:c;var d=void 0===d?g.XC():d;this.C=c;this.scheduler=d;this.B=new g.go;this.j=a;for(a={Ov:0};a.Ov<this.j.length;a={YJ:void 0,Ov:a.Ov},a.Ov++)a.YJ=this.j[a.Ov],c=function(e){return function(){e.YJ.rP();b.j[e.Ov].iK=!0;b.j.every(function(f){return!0===f.iK})&&b.B.resolve()}}(a),d=UC(c,Pta(this,a.YJ)),this.j[a.Ov]=Object.assign({},a.YJ,{rP:c,
jobId:d})};
Rta=function(a){var b=Array.from(a.j.keys()).sort(function(d,e){return Pta(a,a.j[e])-Pta(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.iK||(a.scheduler.Sj(c.jobId),UC(c.rP,10))};
Pta=function(a,b){var c;return null!=(c=b.priority)?c:a.C};
RE=function(a){this.state=a;this.plugins=[];this.C=void 0;this.D={};QE&&Nta(this.state)};
Tta=function(a,b){var c=b.filter(function(e){return 10===Sta(a,e)}),d=b.filter(function(e){return 10!==Sta(a,e)});
return a.D.Dob?function(){var e=g.Ia.apply(0,arguments);return g.H(function(f){if(1==f.j)return g.z(f,a.fca.apply(a,[c].concat(g.pa(e))),2);a.U_.apply(a,[d].concat(g.pa(e)));g.Aa(f)})}:function(){var e=g.Ia.apply(0,arguments);
a.gca.apply(a,[c].concat(g.pa(e)));a.U_.apply(a,[d].concat(g.pa(e)))}};
Sta=function(a,b){var c,d;return null!=(d=null!=(c=a.C)?c:b.priority)?d:0};
Uta=function(a){QE&&a&&Nta(a)};
SE=function(a){QE&&a&&Ota(a)};
Wta=function(a,b,c){Vta&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())};
TE=function(a){RE.call(this,void 0===a?"none":a);this.j=null;this.C=10;this.transitions=[{from:"none",to:"application_navigating",action:this.G},{from:"application_navigating",to:"none",action:this.K},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]};
Yta=function(){Xta||(Xta=new TE);return Xta};
UE=function(){var a=this;this.store={};this.j=0;this.B={};this.Cd={Jmb:function(){return a.j}}};
$ta=function(a,b){var c=Zta(b);if(a.B[c])return a.B[c];var d=Object.keys(a.store)||[];if(1>=d.length&&Zta(b)===d[0])return d;for(var e=[],f=0;f<d.length;f++){var h=d[f].split("/");if(VE(b.auth,h[0])){var l=b.isJspb;VE(void 0===l?"undefined":l?"true":"false",h[1])&&VE(b.cttAuthInfo,h[2])&&(l=b.tier,l=void 0===l?"undefined":JSON.stringify(l),VE(l,h[3])&&e.push(d[f]))}}return a.B[c]=e};
VE=function(a,b){return void 0===a||"undefined"===a?!0:a===b};
Zta=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("/")};
WE=function(){this.D=this.j=this.B=0;this.C=!1};
XE=function(){var a=g.Wa("yt.logging.ims");a||(a=new UE,g.Va("yt.logging.ims",a));return a};
cua=function(){if(wsa()&&!aua){var a=function(c){c=c.data;if("serializedGelBatch"===c.op){var d=YE.get(c.key);d&&(bua(c.serializedBatch,d.client,d.resolve,d.networklessOptions,d.isIsolated,d.useVSSEndpoint,d.dangerousLogToVisitorSession,d.requestsOutstanding),YE.delete(c.key))}},b=ZD();
b&&(b.addEventListener("message",a),b.onerror=function(){YE.clear()});
aua=!0}};
iua=function(a,b){if("log_event"===a.endpoint){ZE(a);var c=$E(a),d=dua(a.payload)||"",e=eua(d),f=200;if(e){if(!1===e.enabled&&!g.PB("web_payload_policy_disabled_killswitch"))return;f=fua(e.tier);if(400===f){gua(a,b);return}}aF[c]=!0;e={cttAuthInfo:c,isJspb:!1,tier:f};XE().storePayload(e,a.payload);hua(b,c,!1,e,bF(d))}};
kua=function(a,b,c){if("log_event"===b.endpoint){ZE(void 0,b);var d=$E(b,!0),e=eua(a),f=200;if(e){if(!1===e.enabled&&!g.PB("web_payload_policy_disabled_killswitch"))return;f=fua(e.tier);if(400===f){jua(a,b,c);return}}aF[d]=!0;e={cttAuthInfo:d,isJspb:!0,tier:f};XE().storePayload(e,b.payload.toJSON());hua(c,d,!0,e,bF(a))}};
hua=function(a,b,c,d,e){function f(){lua({writeThenSend:!0},g.PB("flush_only_full_queue")?b:void 0,c,d.tier)}
c=void 0===c?!1:c;e=void 0===e?!1:e;a&&(cF=new a);a=g.QB("tvhtml5_logging_max_batch_ads_fork")||g.QB("web_logging_max_batch")||100;var h=(0,g.pD)(),l=mua(c,d.tier),m=l.D;e&&(l.C=!0);e=0;d&&(e=XE().getSequenceCount(d));1E3<=e?f():e>=a?nua||(nua=oua(function(){f();nua=void 0},0)):10<=h-m&&(pua(c,d.tier),l.D=h)};
gua=function(a,b){if("log_event"===a.endpoint){ZE(a);var c=$E(a),d=new Map;d.set(c,[a.payload]);var e=dua(a.payload)||"";b&&(cF=new b);return new g.kg(function(f,h){cF&&cF.isReady()?qua(d,cF,f,h,{bypassNetworkless:!0},!0,bF(e)):f()})}};
jua=function(a,b,c){if("log_event"===b.endpoint){ZE(void 0,b);var d=$E(b,!0),e=new Map;e.set(d,[b.payload.toJSON()]);c&&(cF=new c);return new g.kg(function(f){cF&&cF.isReady()?rua(e,cF,f,{bypassNetworkless:!0},!0,bF(a)):f()})}};
$E=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new oB;c.videoId?d.setVideoId(c.videoId):c.playlistId&&Nj(d,2,dF,Yi(c.playlistId));eF[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),fF[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
lua=function(a,b,c,d){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.kg(function(e,f){var h=mua(c,d),l=h.C;h.C=!1;sua(h.B);sua(h.j);h.j=0;cF&&cF.isReady()?void 0===d&&g.PB("enable_web_tiered_gel")?tua(e,f,a,b,c,300,l):tua(e,f,a,b,c,d,l):(pua(c,d),e())})};
tua=function(a,b,c,d,e,f,h){var l=cF;c=void 0===c?{}:c;e=void 0===e?!1:e;f=void 0===f?200:f;h=void 0===h?!1:h;var m=new Map,n=new Map,p={isJspb:e,cttAuthInfo:d,tier:f},q={isJspb:e,cttAuthInfo:d};if(void 0!==d)e?(b=g.PB("enable_web_tiered_gel")?XE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):XE().extractMatchingEntries(q),m.set(d,b),rua(m,l,a,c,!1,h)):(m=g.PB("enable_web_tiered_gel")?XE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):XE().extractMatchingEntries(q),n.set(d,m),
qua(n,l,a,b,c,!1,h));else if(e){b=g.u(Object.keys(aF));for(n=b.next();!n.done;n=b.next())n=n.value,f=g.PB("enable_web_tiered_gel")?XE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):XE().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),0<f.length&&m.set(n,f),(g.PB("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.PB("web_fp_via_jspb_and_json"))&&delete aF[n];rua(m,l,a,c,!1,h)}else{m=g.u(Object.keys(aF));for(p=m.next();!p.done;p=m.next())p=p.value,q=g.PB("enable_web_tiered_gel")?XE().smartExtractMatchingEntries({keys:[{isJspb:!1,
cttAuthInfo:p,tier:f},{isJspb:!1,cttAuthInfo:p}],sizeLimit:1E3}):XE().extractMatchingEntries({isJspb:!1,cttAuthInfo:p}),0<q.length&&n.set(p,q),(g.PB("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.PB("web_fp_via_jspb_and_json"))&&delete aF[p];qua(n,l,a,b,c,!1,h)}};
pua=function(a,b){function c(){lua({writeThenSend:!0},void 0,a,b)}
a=void 0===a?!1:a;b=void 0===b?200:b;var d=mua(a,b),e=d===uua||d===vua?5E3:wua;g.PB("web_gel_timeout_cap")&&!d.j&&(e=oua(function(){c()},e),d.j=e);
sua(d.B);e=g.rB("LOGGING_BATCH_TIMEOUT",g.QB("web_gel_debounce_ms",1E4));g.PB("shorten_initial_gel_batch_timeout")&&gF&&(e=xua);e=oua(function(){0<g.QB("gel_min_batch_size")?XE().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=yua&&c():c()},e);
d.B=e};
qua=function(a,b,c,d,e,f,h){e=void 0===e?{}:e;var l=Math.round((0,g.pD)()),m=a.size,n=zua(h);a=g.u(a);var p=a.next();for(h={};!p.done;h={VP:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,HQ:void 0,mQ:void 0},p=a.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.qd({context:g.isa(b.config_||g.SD())});if(!g.ab(q)&&!g.PB("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=fF[p])&&Aua(h.batchRequest,p,q);delete fF[p];h.dangerousLogToVisitorSession=
"visitorOnlyApprovedKey"===p;Bua(h.batchRequest,l,h.dangerousLogToVisitorSession);Cua(e);h.HQ=function(r){g.PB("start_client_gcf")&&g.Iu.Xi(function(){return g.H(function(t){return g.z(t,Dua(r),0)})});
m--;m||c()};
h.VP=0;h.mQ=function(r){return function(){r.VP++;if(e.bypassNetworkless&&1===r.VP)try{g.sE(b,n,r.batchRequest,Eua({writeThenSend:!0},r.dangerousLogToVisitorSession,r.HQ,r.mQ,f)),gF=!1}catch(t){g.wB(t),d()}m--;m||c()}}(h);
try{g.sE(b,n,h.batchRequest,Eua(e,h.dangerousLogToVisitorSession,h.HQ,h.mQ,f)),gF=!1}catch(r){g.wB(r),d()}}};
rua=function(a,b,c,d,e,f){d=void 0===d?{}:d;var h=Math.round((0,g.pD)()),l={value:a.size},m=new Map([].concat(g.pa(a)));m=g.u(m);for(var n=m.next();!n.done;n=m.next()){var p=g.u(n.value).next().value,q=a.get(p);n=new Joa;var r=b.config_||g.SD(),t=new Qy,v=new g.Ky;Q(v,1,r.YO);Q(v,2,r.XO);S(v,16,r.ZX);Q(v,17,r.innertubeContextClientVersion);if(r.GI){var x=r.GI,A=new Ey;x.coldConfigData&&Q(A,1,x.coldConfigData);x.appInstallData&&Q(A,6,x.appInstallData);x.coldHashData&&Q(A,3,x.coldHashData);x.hotHashData&&
A.Dr(x.hotHashData);Sj(v,Ey,62,A)}(x=g.Sa.devicePixelRatio)&&1!=x&&zk(v,65,x);x=Zoa();""!==x&&Q(v,54,x);x=$oa();if(0<x.length){A=new My;for(var E=0;E<x.length;E++){var F=new Ly;Q(F,1,x[E].key);Nj(F,2,Fua,Yi(x[E].value));Vj(A,15,Ly,F)}Sj(t,My,5,A)}csa(r,v);dsa(t);esa(v);fsa(r,v);gsa(v);g.PB("start_client_gcf")&&hsa(v);g.rB("DELEGATED_SESSION_ID")&&!g.PB("pageid_as_header_web")&&(r=new Py,Q(r,3,g.rB("DELEGATED_SESSION_ID")));!g.PB("fill_delegate_context_in_gel_killswitch")&&(x=g.rB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
(A=g.Rj(t,Py,3)||new Py,r=t,x=Q(A,18,x),Sj(r,Py,3,x));r=v;x=g.u(Object.entries(BB(g.rB("DEVICE",""))));for(A=x.next();!A.done;A=x.next())E=g.u(A.value),A=E.next().value,E=E.next().value,"cbrand"===A?Q(r,12,E):"cmodel"===A?Q(r,13,E):"cbr"===A?Q(r,87,E):"cbrver"===A?Q(r,88,E):"cos"===A?Q(r,18,E):"cosver"===A?Q(r,19,E):"cplatform"===A&&S(r,42,uqa(E));t.qx(v);Sj(n,Qy,1,t);if(v=eF[p])a:{if(v.xe())t=1;else if(v.getPlaylistId())t=2;else break a;Sj(n,oB,4,v);v=g.Rj(n,Qy,1)||new Qy;r=g.Rj(v,Py,3)||new Py;
x=new Oy;x.setToken(p);S(x,1,t);Vj(r,12,Oy,x);Sj(v,Py,3,r)}delete eF[p];p="visitorOnlyApprovedKey"===p;Gua()||xk(n,2,h);!p&&(t=g.rB("EVENT_ID"))&&(v=Hua(),r=new Ioa,Q(r,1,t),xk(r,2,v),Sj(n,Ioa,5,r));Cua(d);if(g.PB("jspb_serialize_with_worker")&&(t=ZD())&&d.writeThenSend){YE.set(Iua,{client:b,resolve:c,networklessOptions:d,isIsolated:e,useVSSEndpoint:f,dangerousLogToVisitorSession:p,requestsOutstanding:l});t.postMessage({op:"gelBatchToSerialize",batchRequest:n.toJSON(),clientEvents:q,key:Iua});Iua++;
break}if(q){t=[];for(v=0;v<q.length;v++)try{t.push(new nB(q[v]))}catch(G){g.wB(new g.QC("Transport failed to deserialize "+String(q[v])))}q=t}else q=[];q=g.u(q);for(t=q.next();!t.done;t=q.next())Vj(n,3,nB,t.value);q={startTime:(0,g.pD)(),ticks:{},infos:{}};n=n.Hk();q.ticks.geljspc=(0,g.pD)();g.PB("log_jspb_serialize_latency")&&ssa("gel_jspb_serialize",q,{sampleRate:.1});bua(n,b,c,d,e,f,p,l)}};
bua=function(a,b,c,d,e,f,h,l){d=void 0===d?{}:d;l=void 0===l?{value:0}:l;f=zua(f);d=Eua(d,h,function(m){g.PB("start_client_gcf")&&g.Iu.Xi(function(){return g.H(function(n){return g.z(n,Dua(m),0)})});
l.value--;l.value||c()},function(){l.value--;
l.value||c()},e);
d.headers["Content-Type"]="application/json+protobuf";d.postBodyFormat="JSPB";d.postBody=a;g.sE(b,f,"",d);gF=!1};
Cua=function(a){g.PB("always_send_and_write")&&(a.writeThenSend=!1)};
Eua=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,Qlb:!!e,headers:{},postBodyFormat:"",postBody:"",compress:g.PB("compress_gel")||g.PB("compress_gel_lr")};Gua()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.pD)())));return a};
Bua=function(a,b,c){Gua()||(a.requestTimeMs=String(b));g.PB("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.rB("EVENT_ID"))&&(c=Hua(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
Hua=function(){var a=g.rB("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*Jua/2));a++;a>Jua&&(a=1);qB("BATCH_CLIENT_COUNTER",a);return a};
Aua=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}]};
ZE=function(a,b){if(!g.Wa("yt.logging.transport.enableScrapingForTest")){var c=Yoa("il_payload_scraping");if("enable_il_payload_scraping"===(void 0!==c?String(c):""))Kua=[],g.Va("yt.logging.transport.enableScrapingForTest",!0),g.Va("yt.logging.transport.scrapedPayloadsForTesting",Kua),g.Va("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Va("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
g.Va("yt.logging.transport.scrapeClientEvent",!0);else return}c=g.Wa("yt.logging.transport.scrapedPayloadsForTesting");var d=g.Wa("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.Wa("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));b=g.Wa("yt.logging.transport.scrapeClientEvent");if(d&&1<=d.length)for(var e=0;e<d.length;e++)if(a&&a.payload[d[e]])if(b)c.push(a.payload);else{var f=void 0;c.push((null==(f=a)?void 0:f.payload)[d[e]])}g.Va("yt.logging.transport.scrapedPayloadsForTesting",
c)};
Gua=function(){return g.PB("use_request_time_ms_header")||g.PB("lr_use_request_time_ms_header")};
oua=function(a,b){return!1===g.PB("embeds_transport_use_scheduler")?g.LB(a,b):g.PB("logging_avoid_blocking_during_navigation")||g.PB("lr_logging_avoid_blocking_during_navigation")?g.VC(0,function(){if("none"===Yta().currentState)a();else{var c={};Yta().install((c.none={callback:a},c))}},b):UC(a,0,b)};
sua=function(a){g.PB("transport_use_scheduler")?g.Iu.Sj(a):g.NB(a)};
Dua=function(a){var b,c,d,e,f,h,l,m,n,p;return g.H(function(q){return 1==q.j?(d=null==(b=a)?void 0:null==(c=b.responseContext)?void 0:c.globalConfigGroup,e=g.U(d,Lua),h=null==(f=d)?void 0:f.hotHashData,l=g.U(d,Mua),n=null==(m=d)?void 0:m.coldHashData,(p=OE().resolve(new LE(QD)))?h?e?g.z(q,Zra(p,h,e),2):g.z(q,Zra(p,h),2):q.Ka(2):q.return()):n?l?g.z(q,$ra(p,n,l),0):g.z(q,$ra(p,n),0):q.Ka(0)})};
mua=function(a,b){b=void 0===b?200:b;return a?300===b?uua:Nua:300===b?vua:Oua};
eua=function(a){if(g.PB("enable_web_tiered_gel")){a=Pua[a||""];var b,c,d,e=null==OE().resolve(new LE(QD))?void 0:null==(b=RD())?void 0:null==(c=b.loggingHotConfig)?void 0:null==(d=c.eventLoggingConfig)?void 0:d.payloadPolicies;if(e)for(b=0;b<e.length;b++)if(e[b].payloadNumber===a)return e[b]}};
dua=function(a){a=Object.keys(a);a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,Pua[b])return b};
fua=function(a){switch(a){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
bF=function(a){return"gelDebuggingEvent"===a};
zua=function(a){return(void 0===a?0:a)&&g.PB("vss_through_gel_video_stats")?"video_stats":"log_event"};
iF=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.pD)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=JE();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};d.sequenceGroup&&!g.PB("web_gel_sequence_info_killswitch")&&(a=e.context,b=d.sequenceGroup,b={index:Qua(b),groupKey:b},a.sequence=b,d.endOfSequence&&delete hF[d.sequenceGroup]);(d.sendIsolatedPayload?gua:iua)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},
c)};
Rua=function(a){lua(void 0,void 0,void 0===a?!1:a)};
Qua=function(a){hF[a]=a in hF?hF[a]+1:0;return hF[a]};
Vua=function(a,b){Sua||(Sua=!0);Tua=a;jF=b;Uua=!1};
g.bD=function(a,b,c){c=void 0===c?{}:c;var d=Wua;g.rB("ytLoggingEventsDefaultDisabled",!1)&&Wua===g.rE&&(d=null);if(g.PB("web_all_payloads_via_jspb"))if(c.timestamp||(c.lact=JE(),c.timestamp=(0,g.pD)()),Tua&&jF){var e=Tua[a];if(e){e=e(Xua(b));var f=e[1];(e[0]||!g.PB("jspb_translator_return_completion"))&&f&&jF[a]?(jF[a](f,c,d||void 0),Yua()):(yB(new g.QC("Unable to call logFn for payload",a)),iF(a,b,d,c))}else{if(!g.PB("web_translate_player_logs"))yB(new g.QC("Unable to translate payload to JSPB",
a));else if(!1===Uua){var h=!1;e=rsa("app_received_payload",function(){h=!0});
WD("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c});if(h)return;qsa(e);rsa("app_has_initialized",function(){WD("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c})})}iF(a,b,d,c)}}else Zua.push({payloadName:a,
payload:b,options:c});else iF(a,b,d,c)};
Yua=function(a){a=void 0===a?!1:a;var b=Zua;Zua=[];if(b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a?iF(c.payloadName,c.payload,Wua,c.options):g.bD(c.payloadName,c.payload,c.options)}};
Xua=function(a){if(!g.PB("jspb_convert_payloads_to_lower_camel")||!g.bb(a))return a;for(var b=Object.keys(a),c=0;c<b.length;c++){var d=$ua(b[c]);b[c]!==d&&(a[d]=a[b[c]],delete a[b[c]]);if("object"===typeof a[d]&&!g.ab(a[d]))a[d]=Xua(a[d]);else if(g.ab(a[d])){for(var e=a[d],f=[],h=0;h<e.length;h++)f.push(Xua(e[h]));a[d]=f}}return a};
$ua=function(a){return a.includes("_")?a.toLowerCase().replace(/([_][a-z])/g,function(b){return b.toUpperCase().replace("_","")}):a};
kF=function(a,b,c,d){d=void 0===d?{}:d;var e=Math.round(d.timestamp||(0,g.pD)());xk(b,1,e<Number.MAX_SAFE_INTEGER?e:0);e=new Hoa;if(d.lact)xk(e,1,isFinite(d.lact)?d.lact:-1);else if(d.timestamp)xk(e,1,-1);else{var f=JE();xk(e,1,isFinite(f)?f:-1)}if(d.sequenceGroup&&!g.PB("web_gel_sequence_info_killswitch")){f=d.sequenceGroup;var h=Qua(f),l=new Goa;xk(l,2,h);Q(l,1,f);Sj(e,Goa,3,l);d.endOfSequence&&delete ava[d.sequenceGroup]}Sj(b,Hoa,33,e);(d.sendIsolatedPayload?jua:kua)(a,{endpoint:"log_event",payload:b,
cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},c)};
lF=function(a,b,c){c=void 0===c?{}:c;var d=!1;g.rB("ytLoggingEventsDefaultDisabled",!1)&&(d=!0);kF(a,b,d?null:g.rE,c)};
bva=function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,XA,72,mF,a);c?kF("visualElementShown",d,c,b):lF("visualElementShown",d,b)};
cva=function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,WA,73,mF,a);c?kF("visualElementHidden",d,c,b):lF("visualElementHidden",d,b)};
dva=function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,VA,78,mF,a);c?kF("visualElementGestured",d,c,b):lF("visualElementGestured",d,b)};
eva=function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,YA,208,mF,a);c?kF("visualElementStateChanged",d,c,b):lF("visualElementStateChanged",d,b)};
fva=function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,TA,156,mF,a);c?kF("screenCreated",d,c,b):lF("screenCreated",d,b)};
gva=function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,RA,202,mF,a);c?kF("playbackAssociated",d,c,b):lF("playbackAssociated",d,b)};
hva=function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,UA,215,mF,a);c?kF("visualElementAttached",d,c,b):lF("visualElementAttached",d,b)};
nF=function(a){this.j=a};
g.oF=function(a){return new nF({trackingParams:a})};
jva=function(a){var b=iva++;return new nF({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})};
kva=function(a){return g.rB("client-screen-nonce-store",{})[void 0===a?0:a]};
lva=function(a,b){b=void 0===b?0:b;var c=g.rB("client-screen-nonce-store");c||(c={},qB("client-screen-nonce-store",c));c[b]=a};
mva=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
nva=function(a){return g.rB(mva(void 0===a?0:a))};
g.pF=function(a){return(a=nva(void 0===a?0:a))?new nF({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
ova=function(){var a=g.rB("csn-to-ctt-auth-info");a||(a={},qB("csn-to-ctt-auth-info",a));return a};
pva=function(){return Object.values(g.rB("client-screen-nonce-store",{})).filter(function(a){return void 0!==a})};
g.qF=function(a){a=kva(void 0===a?0:a);if(!a&&!g.rB("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
rva=function(a){for(var b=g.u(Object.values(qva)),c=b.next();!c.done;c=b.next())if(g.qF(c.value)===a)return!0;return!1};
sva=function(a,b,c){var d=ova();(c=g.qF(c))&&delete d[c];b&&(d[a]=b)};
rF=function(a){return ova()[a]};
uva=function(a,b,c,d){c=void 0===c?0:c;if(a!==kva(c)||b!==g.rB(mva(c)))if(sva(a,d,c),lva(a,c),qB(mva(c),b),b=function(){setTimeout(function(){if(a)if(g.PB("web_time_via_jspb")){var e=new goa;Q(e,1,tva);Q(e,2,a);var f=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(f,goa,111,mF,e);lF("foregroundHeartbeatScreenAssociated",f)}else g.bD("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:tva,clientScreenNonce:a})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
wva=function(a,b){var c=void 0===c?!0:c;var d=g.rB("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.Vm(window.location.href);e&&d.push(e);e=g.Vm(a);if(g.Fb(d,e)||!e&&ec(a,"/"))if(d=document.createElement("a"),g.Se(d,a),a=d.href)if(a=Wm(a),a=Ffa(a))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.qF()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&vva(a,b,f)}else vva(a,b)};
vva=function(a,b,c){a=xva(a);b=b?g.$m(b):"";c=c||5;Fpa()&&g.$B(a,b,c)};
xva=function(a){for(var b=g.u(yva),c=b.next();!c.done;c=b.next())a=Hn(a,c.value);return"ST-"+hf(a).toString(36)};
zva=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
Ava=function(){this.ys=[];this.ir=[]};
Eva=function(){if(!Bva){var a=Bva=new Ava;a.ir.length=0;a.ys.length=0;Cva(a,Dva)}return Bva};
Cva=function(a,b){b.ir&&a.ir.push.apply(a.ir,b.ir);b.ys&&a.ys.push.apply(a.ys,b.ys)};
Gva=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=Fva(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=Fva(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Fva(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)};
Fva=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};
Iva=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=Hva(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=e;var h=a[e],l=b,m=c;f="string"!==typeof h||"clickTrackingParams"!==f&&"trackingParams"!==f?0:(h=Gva(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?Hva(f+".ve",h,l,m):0;d+=f;d+=Hva(e,a[e],b,c);if(500<d)break}}else c[b]=sF(a),d+=c[b].length;else c[b]=sF(a),d+=c[b].length;return d};
Hva=function(a,b,c,d){c+="."+a;a=sF(b);d[c]=a;return c.length+a.length};
sF=function(a){try{return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}};
Kqa=function(a){g.tF(a)};
g.uF=function(a){g.tF(a,"WARNING")};
g.tF=function(a,b){var c=void 0===c?{}:c;c.name=g.rB("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.rB("INNERTUBE_CONTEXT_CLIENT_VERSION");var d=void 0===b?"ERROR":b,e=!1;d=void 0===d?"ERROR":d;e=void 0===e?!1:e;if(a){a.hasOwnProperty("level")&&a.level&&(d=a.level);if(g.PB("console_log_js_exceptions")){var f=[];f.push("Name: "+a.name);f.push("Message: "+a.message);a.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&f.push("Error args: "+JSON.stringify(a.args));
f.push("File name: "+a.fileName);f.push("Stacktrace: "+a.stack);window.console.log(f.join("\n"),a)}if(!(5<=Jva)){var h=Kva,l=Caa(a),m=l.message||"Unknown Error",n=l.name||"UnknownError",p=l.stack||a.B||"Not available";if(p.startsWith(n+": "+m)){var q=p.split("\n");q.shift();p=q.join("\n")}var r=l.lineNumber||"Not available",t=l.fileName||"Not available",v=p,x=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var A=0;A<a.args.length&&!(x=Iva(a.args[A],"params."+A,c,x),500<=x);A++);else if(a.hasOwnProperty("params")&&
a.params){var E=a.params;if("object"===typeof a.params)for(var F in E){if(E[F]){var G="params."+F,M=sF(E[F]);c[G]=M;x+=G.length+M.length;if(500<x)break}}else c.params=sF(E)}if(h.length)for(var P=0;P<h.length&&!(x=Iva(h[P],"params.context."+P,c,x),500<=x);P++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);var R={message:m,name:n,lineNumber:r,fileName:t,stack:v,params:c,sampleWeight:1},ba=Number(a.columnNumber);isNaN(ba)||(R.lineNumber=R.lineNumber+":"+ba);if("IGNORED"===
a.level)var na=0;else a:{for(var ta=Eva(),ka=g.u(ta.ir),va=ka.next();!va.done;va=ka.next()){var ea=va.value;if(R.message&&R.message.match(ea.vA)){na=ea.weight;break a}}for(var Y=g.u(ta.ys),Ma=Y.next();!Ma.done;Ma=Y.next()){var y=Ma.value;if(y.callback(R)){na=y.weight;break a}}na=1}R.sampleWeight=na;for(var aa=g.u(Lva),Ua=aa.next();!Ua.done;Ua=aa.next()){var cb=Ua.value;if(cb.XJ[R.name])for(var nb=g.u(cb.XJ[R.name]),Na=nb.next();!Na.done;Na=nb.next()){var Ta=Na.value,gb=R.message.match(Ta.Ij);if(gb){R.params["params.error.original"]=
gb[0];for(var qb=Ta.groups,rb={},B=0;B<qb.length;B++)rb[qb[B]]=gb[B+1],R.params["params.error."+qb[B]]=gb[B+1];R.message=cb.MP(rb);break}}}R.params||(R.params={});var C=Eva();R.params["params.errorServiceSignature"]="msg="+C.ir.length+"&cb="+C.ys.length;R.params["params.serviceWorker"]="false";g.Sa.document&&g.Sa.document.querySelectorAll&&(R.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));ae("sample").constructor!==g.Zd&&(R.params["params.fconst"]="true");
window.yterr&&"function"===typeof window.yterr&&window.yterr(R);if(0!==R.sampleWeight&&!Mva.has(R.message)){if(e&&g.PB("web_enable_error_204"))Nva(void 0===d?"ERROR":d,R);else{var D=d;D=void 0===D?"ERROR":D;if("ERROR"===D){vF.ra("handleError",R);if(g.PB("record_app_crashed_web")&&0===Ova&&1===R.sampleWeight)if(Ova++,g.PB("errors_via_jspb")){var J=new Zma;var K=S(J,1,1);if(!g.PB("report_client_error_with_app_crash_ks")){var ca=new kA,sa=new bA,ia=new aA,L=new $z;var X=Q(L,1,R.message);var ya=Sj(ia,
$z,3,X);var xa=Sj(sa,aA,5,ya);var Za=Sj(ca,bA,9,xa);Sj(K,kA,4,Za)}var Xa=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(Xa,Zma,20,mF,K);lF("appCrashed",Xa)}else{var wb={appCrashType:"APP_CRASH_TYPE_BREAKPAD"};g.PB("report_client_error_with_app_crash_ks")||(wb.systemHealth={crashData:{clientError:{logMessage:{message:R.message}}}});g.bD("appCrashed",wb)}Pva++}else"WARNING"===D&&vF.ra("handleWarning",R);if(g.PB("kevlar_gel_error_routing"))a:{var Pb=D;if(g.PB("errors_via_jspb")){if(Qva())var db=
void 0;else{var Qb=new Tz;Q(Qb,1,R.stack);R.fileName&&Q(Qb,4,R.fileName);var gc=R.lineNumber&&R.lineNumber.split?R.lineNumber.split(":"):[];0!==gc.length&&(1!==gc.length||isNaN(Number(gc[0]))?2!==gc.length||isNaN(Number(gc[0]))||isNaN(Number(gc[1]))||(vk(Qb,2,Number(gc[0])),vk(Qb,3,Number(gc[1]))):vk(Qb,2,Number(gc[0])));var zc=new $z;Q(zc,1,R.message);Q(zc,3,R.name);vk(zc,6,R.sampleWeight);"ERROR"===Pb?S(zc,2,2):"WARNING"===Pb?S(zc,2,1):S(zc,2,0);var Yb=new Zz;uk(Yb,1,!0);Tj(Yb,Tz,3,wF,Qb);var uc=
new Rz;Q(uc,3,window.location.href);for(var Wc=g.rB("FEXP_EXPERIMENTS",[]),Ic=0;Ic<Wc.length;Ic++)uc.B(Wc[Ic]);var Jc=g.rB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!sB("web_disable_gel_stp_ecatcher_killswitch")&&Jc)for(var Kc=g.u(Object.keys(Jc)),Ub=Kc.next();!Ub.done;Ub=Kc.next()){var ud=Ub.value,vd=new Dz;Q(vd,1,ud);Q(vd,2,String(Jc[ud]));uc.j(vd)}var ac=R.params;if(ac)for(var Wb=g.u(Object.keys(ac)),Lc=Wb.next();!Lc.done;Lc=Wb.next()){var Gb=Lc.value,Zc=new Dz;Q(Zc,1,"client."+Gb);Q(Zc,2,
String(ac[Gb]));uc.j(Zc)}var wd=g.rB("SERVER_NAME"),Nb=g.rB("SERVER_VERSION");if(wd&&Nb){var qe=new Dz;Q(qe,1,"server.name");Q(qe,2,wd);uc.j(qe);var Od=new Dz;Q(Od,1,"server.version");Q(Od,2,Nb);uc.j(Od)}var Pd=new aA;Sj(Pd,Rz,1,uc);Sj(Pd,Zz,2,Yb);Sj(Pd,$z,3,zc);db=Pd}var Le=db;if(!Le)break a;var Ae=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(Ae,aA,163,mF,Le);lF("clientError",Ae)}else{var Gd=void 0;Gd=void 0===Gd?{}:Gd;if(Qva())var Ef=void 0;else{var Xe={stackTrace:R.stack};R.fileName&&
(Xe.filename=R.fileName);var ce=R.lineNumber&&R.lineNumber.split?R.lineNumber.split(":"):[];0!==ce.length&&(1!==ce.length||isNaN(Number(ce[0]))?2!==ce.length||isNaN(Number(ce[0]))||isNaN(Number(ce[1]))||(Xe.lineNumber=Number(ce[0]),Xe.columnNumber=Number(ce[1])):Xe.lineNumber=Number(ce[0]));var Ff={level:"ERROR_LEVEL_UNKNOWN",message:R.message,errorClassName:R.name,sampleWeight:R.sampleWeight};"ERROR"===Pb?Ff.level="ERROR_LEVEL_ERROR":"WARNING"===Pb&&(Ff.level="ERROR_LEVEL_WARNNING");var de={isObfuscated:!0,
browserStackInfo:Xe};Gd.pageUrl=window.location.href;Gd.kvPairs=[];g.rB("FEXP_EXPERIMENTS")&&(Gd.experimentIds=g.rB("FEXP_EXPERIMENTS"));var re=g.rB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!sB("web_disable_gel_stp_ecatcher_killswitch")&&re)for(var Hd=g.u(Object.keys(re)),xd=Hd.next();!xd.done;xd=Hd.next()){var hd=xd.value;Gd.kvPairs.push({key:hd,value:String(re[hd])})}var Qd=R.params;if(Qd)for(var yd=g.u(Object.keys(Qd)),lf=yd.next();!lf.done;lf=yd.next()){var Tf=lf.value;Gd.kvPairs.push({key:"client."+
Tf,value:String(Qd[Tf])})}var se=g.rB("SERVER_NAME"),nc=g.rB("SERVER_VERSION");se&&nc&&(Gd.kvPairs.push({key:"server.name",value:se}),Gd.kvPairs.push({key:"server.version",value:nc}));Ef={errorMetadata:Gd,stackTrace:de,logMessage:Ff}}var Me=Ef;if(!Me)break a;g.bD("clientError",Me)}if("ERROR"===Pb||g.PB("errors_flush_gel_always_killswitch"))b:{if(g.PB("web_fp_via_jspb")&&(Yua(!0),Rua(!0),!g.PB("web_fp_via_jspb_and_json")))break b;Rua()}}g.PB("suppress_error_204_logging")||Nva(D,R)}try{Mva.add(R.message)}catch(bh){}Jva++}}}};
Qva=function(){for(var a=g.u(Rva),b=a.next();!b.done;b=a.next())if(g.bC(b.value.toLowerCase()))return!0;return!1};
Nva=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.rB("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.rB("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.rB("SERVER_NAME");b=g.rB("SERVER_VERSION");c&&b&&(a.postParams["server.name"]=c,a.postParams["server.version"]=b)}g.RB(g.rB("ECATCHER_REPORT_HOST","")+"/error_204",a)};
Sva=function(a){var b=g.Ia.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.pa(b))};
zF=function(a){var b=g.U(a,xF);if(b)return b;if((b=g.U(a,Tva))&&b.commands)return Uva(b.commands);if((b=g.U(a,Vva))&&b.commands)return Uva(b.commands);if((a=g.U(a,Wva))&&a.identifier&&a.command&&(yF||(yF=[]),!yF.includes(a.identifier)))return yF.push(a.identifier),g.U(a.command,xF)};
Uva=function(a){if(0!==a.length){var b=[];a=g.u(a);for(var c=a.next();!c.done;c=a.next())(c=zF(c.value))&&b.push(c);return{commandExecutorCommand:{commands:b}}}};
g.AF=function(a,b,c){void 0===c?delete a[b.name]:a[b.name]=c};
Xva=function(a){a=void 0===a||a?FE(16):Eta(16);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
Yva=function(a){for(var b=0,c=0;c<a.length;c++)b=31*b+a.charCodeAt(c),c<a.length-1&&(b%=Math.pow(2,47));return b%1E5};
Zva=function(a){UD.call(this,1,arguments);this.csn=a};
ewa=function(a,b,c,d,e,f,h,l){function m(){g.uF(new g.QC("newScreen() parent element does not have a VE - rootVe",b))}
var n=$va(),p=new nF({veType:b,youtubeData:f,jspbYoutubeData:void 0});f=BF({},n);e&&(f.cttAuthInfo=e);if(g.PB("il_via_jspb")){e=qoa((new TA).j(n),p.getAsJspb());c&&c.visualElement?(p=new ooa,c.clientScreenNonce&&Q(p,2,c.clientScreenNonce),poa(p,c.visualElement.getAsJspb()),h&&S(p,4,awa[h]),Sj(e,ooa,5,p)):c&&m();d&&Q(e,3,d);if(g.PB("expectation_logging")&&l&&l.screenCreatedLoggingExpectations){c=new By;l=g.u(l.screenCreatedLoggingExpectations.expectedParentScreens||[]);for(d=l.next();!d.done;d=l.next())d=
d.value,d.screenVeType&&(d=hma(new zy,d.screenVeType),c.j(d));Sj(e,By,7,c)}fva(e,f,a)}else e={csn:n,pageVe:p.getAsJson()},g.PB("expectation_logging")&&l&&l.screenCreatedLoggingExpectations&&(e.screenCreatedLoggingExpectations=l.screenCreatedLoggingExpectations),c&&c.visualElement?(e.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},h&&(e.implicitGesture.gestureType=h)):c&&m(),d&&(e.cloneCsn=d),a?iF("screenCreated",e,a,f):g.bD("screenCreated",e,f);WD(bwa,new Zva(n));
CF.clear();cwa.clear();dwa.clear();return n};
g.DF=function(a,b,c,d,e){g.fwa(a,b,c,[d],void 0===e?!1:e)};
g.fwa=function(a,b,c,d,e){e=void 0===e?!1:e;if(!g.PB("do_not_send_empty_attach_payloads")||d&&!(1>d.length)){for(var f=BF({cttAuthInfo:rF(b)||void 0},b),h=g.u(d),l=h.next();!l.done;l=h.next()){l=l.value;var m=l.getAsJson();(g.md(m)||!m.trackingParams&&!m.veType)&&g.uF(Error("Child VE logged with no data"));if(g.PB("no_client_ve_attach_unless_shown")){var n=EF(l,b);if(m.veType&&!cwa.has(n)&&!dwa.has(n)&&!e){if(!g.PB("il_attach_cache_limit")||1E3>CF.size){CF.set(n,[a,b,c,l]);return}g.PB("il_attach_cache_limit")&&
1E3<CF.size&&g.uF(new g.QC("IL Attach cache exceeded limit"))}l=EF(c,b);CF.has(l)?gwa(c,b):dwa.set(l,!0)}}d=d.filter(function(q){q.csn!==b?(q.csn=b,q=!0):q=!1;return q});
if(g.PB("il_via_jspb")){var p=roa((new UA).j(b),c.getAsJspb());g.Er(d,function(q){q=q.getAsJspb();Vj(p,3,tA,q)});
"UNDEFINED_CSN"===b?FF("visualElementAttached",f,void 0,p):hva(p,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.Er(d,function(q){return q.getAsJson()})},"UNDEFINED_CSN"===b?FF("visualElementAttached",f,c):a?iF("visualElementAttached",c,a,f):g.bD("visualElementAttached",c,f)}};
iwa=function(a,b,c,d,e,f){hwa(c,b);d=BF({cttAuthInfo:rF(b)||void 0},b);g.PB("il_via_jspb")?(e=(new XA).j(b),c=c.getAsJspb(),c=Sj(e,tA,2,c),c=S(c,4,1),f&&Sj(c,SA,3,f),"UNDEFINED_CSN"===b?FF("visualElementShown",d,void 0,c):bva(c,d,a)):(f={csn:b,ve:c.getAsJson(),eventType:1},e&&(f.clientData=e),"UNDEFINED_CSN"===b?FF("visualElementShown",d,f):a?iF("visualElementShown",f,a,d):g.bD("visualElementShown",f,d))};
jwa=function(a,b,c,d){var e=(d=void 0===d?!1:d)?16:8,f=BF({cttAuthInfo:rF(b)||void 0,endOfSequence:d},b);g.PB("il_via_jspb")?(e=(new WA).j(b),c=c.getAsJspb(),c=Sj(e,tA,2,c),S(c,4,d?16:8),"UNDEFINED_CSN"===b?FF("visualElementHidden",f,void 0,c):cva(c,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},"UNDEFINED_CSN"===b?FF("visualElementHidden",f,d):a?iF("visualElementHidden",d,a,f):g.bD("visualElementHidden",d,f))};
lwa=function(a,b,c,d,e){kwa(a,b,c,d,e)};
kwa=function(a,b,c,d,e){var f=void 0;hwa(c,b);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var h=BF({cttAuthInfo:rF(b)||void 0},b);g.PB("il_via_jspb")?(d=(new VA).j(b),c=c.getAsJspb(),c=Sj(d,tA,2,c),S(c,4,awa[f]),e&&Sj(c,SA,3,e),"UNDEFINED_CSN"===b?FF("visualElementGestured",h,void 0,c):dva(c,h,a)):(e={csn:b,ve:c.getAsJson(),gestureType:f},d&&(e.clientData=d),"UNDEFINED_CSN"===b?FF("visualElementGestured",h,e):a?iF("visualElementGestured",e,a,h):g.bD("visualElementGestured",e,h))};
mwa=function(){var a;g.PB("enable_web_96_bit_csn")?a=Xva():g.PB("enable_web_96_bit_csn_no_crypto")?a=Xva(!1):a=g.Dg(g.Cg(Math.random()+""),3);return a};
FF=function(a,b,c,d){GF.push({payloadName:a,payload:c,Bt:d,options:b});nwa||(nwa=rsa(bwa,owa))};
owa=function(a){if(GF){for(var b=g.u(GF),c=b.next();!c.done;c=b.next())if(c=c.value,g.PB("il_via_jspb")&&c.Bt)switch(c.Bt.j(a.csn),c.payloadName){case "screenCreated":fva(c.Bt,c.options);break;case "visualElementAttached":hva(c.Bt,c.options);break;case "visualElementShown":bva(c.Bt,c.options);break;case "visualElementHidden":cva(c.Bt,c.options);break;case "visualElementGestured":dva(c.Bt,c.options);break;case "visualElementStateChanged":eva(c.Bt,c.options);break;default:g.uF(new g.QC("flushQueue unable to map payloadName to JSPB setter"))}else c.payload&&
(c.payload.csn=a.csn,g.bD(c.payloadName,c.payload,c.options));GF.length=0}nwa=0};
EF=function(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b};
hwa=function(a,b){if(g.PB("no_client_ve_attach_unless_shown")){var c=EF(a,b);cwa.set(c,!0);gwa(a,b)}};
gwa=function(a,b){a=EF(a,b);CF.has(a)&&(b=CF.get(a)||[],g.DF(b[0],b[1],b[2],b[3],!0),CF.delete(a))};
BF=function(a,b){g.PB("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a};
g.HF=function(a,b,c,d){g.xB(iwa)(void 0,a,b,c,d,void 0)};
g.IF=function(a,b){g.xB(function(){g.bc(b,function(c){hwa(c,a);var d=BF({cttAuthInfo:rF(a)||void 0},a);if(g.PB("il_via_jspb")){var e=(new XA).j(a);c=c.getAsJspb();e=Sj(e,tA,2,c);e=S(e,4,4);"UNDEFINED_CSN"===a?FF("visualElementShown",d,void 0,e):bva(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"===a?FF("visualElementShown",d,e):g.bD("visualElementShown",e,d)})})()};
g.JF=function(a,b){g.xB(function(){g.bc(b,function(c){jwa(void 0,a,c)})})()};
g.KF=function(a,b,c){g.xB(lwa)(void 0,a,b,c,void 0)};
MF=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=LF(a)};
LF=function(a){var b=":"+(g.Tv.getInstance().j++).toString(36);return a+b};
g.NF=function(a){a=void 0===a?!1:a;g.I.call(this);this.zj=new g.zv(a);g.N(this,this.zj)};
g.OF=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
PF=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
QF=function(){var a="ytp-id-"+pwa.toString();pwa++;return a};
g.RF=function(a){g.I.call(this);this.Nb={};this.Ee={};this.element=this.createElement(a)};
SF=function(a,b,c,d){if("{{"===d.substr(0,2))a.Ee[d]=[b,c];else return d};
qwa=function(a,b){var c=[];if(!b)return c;b=g.u(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,null!=d){var e=d.nodeType;1===e||3===e?c.push(d):d&&"string"===typeof d.I?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.If("BR"));c.push(g.Nf(f))}):c.push(g.Nf(d))}return c};
TF=function(a,b,c,d){if("child"===c){g.Pf(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.I?[d]:d;c=qwa(a,e);c=g.u(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.ks(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.ke(g.ye(a))),b.setAttribute(c,a))};
g.V=function(a){g.RF.call(this,a);this.Jb=!0;this.Z=!1;this.listeners=[]};
g.UF=function(a,b){b?a.show():a.hide()};
g.VF=function(a){g.V.call(this,a);this.Ra=new g.NF;g.N(this,this.Ra)};
WF=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.VF.call(this,b);this.api=a;this.macros={};this.componentType=c;this.K=this.N=null;this.ub=h;this.layoutId=d;this.interactionLoggingClientData=e;this.jb=f;this.fb=null;this.BR=new DE(this.element);g.N(this,this.BR);this.tb=this.T(this.element,"click",this.onClick);this.Ia=[];this.Ca=new Cta(this.onClick,this);g.N(this,this.Ca);this.Gb=!1;this.Ma=this.ma=null};
XF=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.uF(Error("Got null or undefined adText object")),"";var c=g.gf(a.text);if(!a.isTemplated)return c;if(null==b)return g.uF(Error("Missing required parameters for a templated message")),c;a=g.u(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.u(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
rwa=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.gf(a.thumbnails[0].url):""};
swa=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.Oe(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.Oe(0,0)};
g.YF=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.ZF=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=Hf("B",null,h||l));d.italics&&(h=Hf("I",null,h||l));d.strikethrough&&(h=Hf("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=Hf("A",null,h||l),g.Se(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||Hf("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:Hf("SPAN",null,b)};
g.twa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{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"}}]}};
uwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",X:{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.$F=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{I:"path",X:{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.aG=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{I:"path",X:{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"}}]}};
vwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",X:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{I:"path",X:{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"}}]}};
wwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
xwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.bG=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{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"}}]}};
ywa=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",X:{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"}}]}};
zwa=function(){return{I:"svg",X:{viewBox:"0 0 24 24"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{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"}}]}};
Awa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
Bwa=function(){return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{"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"}}]}};
Cwa=function(){return{I:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{I:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",X:{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"}}]}};
Dwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{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"}}]}};
Ewa=function(){return{I:"svg",X:{viewBox:"0 0 24 24"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{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"}}]}};
cG=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",X:{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"}}]}};
Fwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
Gwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{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.Hwa=function(){return{I:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",X:{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"}}]}};
Iwa=function(){return{I:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{I:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",X:{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"}}]}};
Jwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
Kwa=function(){return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",S:"ytp-svg-fill",X:{"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"}}]}};
Lwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{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"}}]}};
Mwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{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"}}]}};
Nwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.Owa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{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.Pwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{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.dG=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 16 16",width:"100%"},V:[{I:"path",X:{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"}}]}};
Qwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
Rwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{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"}}]}};
eG=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return Iwa();case "CHECK_BOX":return{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},
V:[{I:"path",X:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.bG();case "INFO_OUTLINE":return Cwa();case "REMOVE_CIRCLE":return{I:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{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 Gwa();case "SKIP_NEXT_NEW":return{I:"svg",X:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},V:[{I:"path",X:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return Ewa();case "DISLIKE":return zwa();default:return g.uF(new g.QC("Unexpected icon:",a)),null}};
fG=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={I:"button",La:["ytp-ad-button"].concat(e)};null!=l&&(e.X={tabindex:l});WF.call(this,a,e,void 0===f?"button":f,b,c,d);this.j=this.B=this.C=null;this.D=h;this.hide()};
Swa=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||[]};
gG=function(){g.I.call(this);var a=this;this.j=new Map;this.B=lqa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.jE(b[c])})};
Twa=function(){null==nG&&(nG=new gG);return nG};
oG=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=Uwa(a))){b=Hf("SPAN",null,b);break a}b=g.Nf(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(Vwa(e,b))}return 1==c.length?c[0]:Hf("SPAN",null,c)};
Vwa=function(a,b){var c=null,d=a.text;b&&(d=Uwa(d)||d);a.bold&&(c=Hf("B",null,c||d));a.italics&&(c=Hf("I",null,c||d));a.strikethrough&&(c=Hf("STRIKE",null,c||d));a.navigationEndpoint&&g.U(a.navigationEndpoint,g.pG)&&(b=g.U(a.navigationEndpoint,g.pG),c=Hf("A",null,c||d),g.Se(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),Twa().register(c,a),g.Yu(c,"ytp-ad-has-logging-urls"));
return c||Hf("SPAN",null,d)};
Uwa=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(Hf("BR")),b.push(a[c]);return b}return null};
qG=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;WF.call(this,a,{I:"span",La:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,b,c,d);this.button=this.B=null;this.G=f;this.D=e;this.hide()};
rG=function(a){return a&&a.thumbnails&&0!=(a.thumbnails||null).length&&a.thumbnails[0].url?g.gf(a.thumbnails[0].url):""};
sG=function(a,b,c,d,e,f){f=void 0===f?!1:f;WF.call(this,a,{I:"img",S:"ytp-ad-image"},"ad-image",b,c,d,void 0===e?null:e);this.j=f;this.hide()};
tG=function(a,b,c,d,e,f){e=void 0===e?[]:e;WF.call(this,a,{I:"div",La:["ytp-ad-confirm-dialog-background"],V:[{I:"div",S:"ytp-ad-confirm-dialog-container",V:[{I:"div",La:["ytp-ad-confirm-dialog"].concat(e),X:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-confirm-dialog-title",ya:"{{title}}"},{I:"div",S:"ytp-ad-confirm-dialog-messages"},{I:"div",S:"ytp-ad-confirm-dialog-confirm-container",V:[{I:"button",S:"ytp-ad-confirm-dialog-cancel-button",ya:"{{cancelLabel}}"},{I:"button",S:"ytp-ad-confirm-dialog-confirm-button",
ya:"{{confirmLabel}}"}]}]}]},{I:"button",La:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],V:[{I:"span",S:"ytp-ad-button-icon",V:[g.bG()]}]}]},void 0===f?"confirm-dialog":f,b,c,d);this.Y=this.Ga("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.Ga("ytp-ad-confirm-dialog-cancel-button");this.G=this.Ga("ytp-ad-confirm-dialog-confirm-button");this.va=this.Ga("ytp-ad-confirm-dialog-messages");this.C=null;this.j=new DC;g.N(this,this.j);this.B=null;this.hide()};
Wwa=function(a,b){if(b.title){var c=g.YF(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=oG(d.value),a.va.appendChild(d)}b.cancelLabel&&(c=g.YF(b.cancelLabel),a.updateValue("cancelLabel",c),a.j.T(a.D,"click",function(e){return a.VL(e)}));
b.confirmLabel&&(b=g.YF(b.confirmLabel),a.updateValue("confirmLabel",b),a.j.T(a.G,"click",function(e){return a.iQ(e)}));
a.j.T(a.Y,"click",function(e){return a.hQ(e)})};
uG=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=LF("ytp-ad-toggle-button-input"),l={role:"button","aria-label":"{{tooltipText}}"};a.U().experiments.kb("fix_h5_toggle_button_a11y")&&(l.tabindex="0");a.U().experiments.kb("fix_toggle_button_role_for_ad_components")&&(l.role="checkbox");WF.call(this,a,{I:"div",La:["ytp-ad-toggle-button"].concat(e),V:[{I:"label",S:"ytp-ad-toggle-button-label",X:{"for":h},V:[{I:"span",S:"ytp-ad-toggle-button-icon",X:l,V:[{I:"span",S:"ytp-ad-toggle-button-untoggled-icon",
ya:"{{untoggledIconTemplateSpec}}"},{I:"span",S:"ytp-ad-toggle-button-toggled-icon",ya:"{{toggledIconTemplateSpec}}"}]},{I:"input",S:"ytp-ad-toggle-button-input",X:{id:h,type:"checkbox"}},{I:"span",S:"ytp-ad-toggle-button-text",ya:"{{buttonText}}"},{I:"span",S:"ytp-ad-toggle-button-tooltip",ya:"{{tooltipText}}"}]}]},f,b,c,d);this.D=this.Ga("ytp-ad-toggle-button");this.j=this.Ga("ytp-ad-toggle-button-input");this.Ga("ytp-ad-toggle-button-label");this.B=this.Ga("ytp-ad-toggle-button-icon");this.Y=this.Ga("ytp-ad-toggle-button-untoggled-icon");
this.G=this.Ga("ytp-ad-toggle-button-toggled-icon");this.Ea=this.Ga("ytp-ad-toggle-button-text");this.C=null;this.va=!1;this.hide()};
Xwa=function(a){a.va&&(a.isToggled()?(g.xs(a.Y,!1),g.xs(a.G,!0),a.api.U().experiments.kb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!0)):(g.xs(a.Y,!0),g.xs(a.G,!1),a.api.U().experiments.kb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!1)))};
Ywa=function(a,b){var c=null;a.C&&(c=(b?[a.C.defaultServiceEndpoint,a.C.defaultNavigationEndpoint]:[a.C.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
Zwa=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
vG=function(a){DC.call(this);this.j=a;this.T(this.j,"onAdUxUpdate",this.K)};
$wa=function(a,b,c,d){WF.call(this,a,{I:"div",S:"ytp-ad-feedback-dialog-background",V:[{I:"div",S:"ytp-ad-feedback-dialog-container",V:[{I:"div",S:"ytp-ad-feedback-dialog-form",X:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-feedback-dialog-title",V:[{I:"span",ya:"{{title}}"}]},{I:"span",S:"ytp-ad-info-dialog-feedback-options-title",ya:"{{reasonsTitle}}"},{I:"div",S:"ytp-ad-info-dialog-feedback-options"},{I:"div",S:"ytp-ad-feedback-dialog-confirm-container",V:[{I:"button",S:"ytp-ad-feedback-dialog-cancel-button",
ya:"{{cancelLabel}}"},{I:"button",S:"ytp-ad-feedback-dialog-confirm-button",ya:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",b,c,d);this.D=[];this.j=null;this.G=this.Ga("ytp-ad-feedback-dialog-cancel-button");this.Y=this.Ga("ytp-ad-feedback-dialog-confirm-button");this.va=this.Ga("ytp-ad-info-dialog-feedback-options");this.Ea=this.Ga("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
dxa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.j=new fG(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,["ytp-ad-feedback-dialog-close-button"],"button"),g.N(a,a.j),a.j.init(LF("button"),c,a.macros),a.j.Ta("click",a.mZ,a),a.j.Ja(a.element));b.title&&(c=g.YF(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.YF(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&axa(a,b.reasons);b.cancelLabel&&(c=g.YF(b.cancelLabel),a.updateValue("cancelLabel",
c),g.zC(a.G,"click",function(){return a.mZ()}));
b.confirmLabel&&(c=g.YF(b.confirmLabel),a.updateValue("confirmLabel",c),g.zC(a.Y,"click",function(){return bxa(a)}));
b.undoRenderer&&cxa(a,b.undoRenderer)};
axa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;if(null==c)g.uF(Error("AdFeedbackReason.reason was not set."));else if(d=d.endpoint,null==d)g.uF(Error("AdFeedbackReason.endpoint was not set."));else{c=new exa(c,d);g.N(a,c);d=a.va;var e=c.Kb();d.appendChild(e);a.D.push(c)}}};
cxa=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new fG(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.N(a,a.B),a.B.init(LF("ad-feedback-undo-mute-button"),b,a.macros),a.B.Ta("click",a.Yaa,a),a.B.Ja(a.Ea)):g.uF(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
bxa=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(b=b[0].B,a.layoutId?a.jb.executeCommand(b,a.layoutId):g.tF(Error("Missing layoutId for ad feedback dialog.")),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.ra("a"),a.hide())};
exa=function(a,b){this.B=b;this.j=new g.VF({I:"label",S:"ytp-ad-feedback-dialog-reason-label",V:[{I:"input",S:"ytp-ad-feedback-dialog-reason-input",X:{type:"radio",name:"feedback-reason-group"}},{I:"span",S:"ytp-ad-feedback-dialog-reason-text",ya:g.YF(a)}]});this.C=this.j.Ga("ytp-ad-feedback-dialog-reason-input")};
wG=function(a,b,c,d){tG.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
fxa=function(a,b,c,d,e){WF.call(this,a,{I:"div",S:"ytp-ad-info-dialog-background",V:[{I:"div",S:"ytp-ad-info-dialog-container",V:[{I:"div",S:"ytp-ad-info-dialog-form",X:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-info-dialog-title",ya:"{{title}}"},{I:"ul",S:"ytp-ad-info-dialog-ad-reasons"},{I:"div",S:"ytp-ad-info-dialog-message"},{I:"div",S:"ytp-ad-info-dialog-mute-container"},{I:"div",S:"ytp-ad-info-dialog-confirm-container",V:[{I:"button",S:"ytp-ad-info-dialog-confirm-button",ya:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",b,c,d);this.j=this.B=null;this.Y=this.Ga("ytp-ad-info-dialog-confirm-button");this.Za=this.Ga("ytp-ad-info-dialog-mute-container");this.Xa=this.Ga("ytp-ad-info-dialog-message");this.Na=this.Ga("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.Ea=e;this.G=null;this.Wa=!1;this.va=null;this.hide()};
gxa=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new $wa(a.api,a.layoutId,a.interactionLoggingClientData,a.jb),g.N(a,a.B),a.B.init(LF("ad-feedback-dialog"),b,a.macros),a.B.Ja(a.Ea),a.B.subscribe("a",function(){return a.ra("c")})};
hxa=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new wG(a.api,a.layoutId,a.interactionLoggingClientData,a.jb),g.N(a,a.D),a.D.init(LF("ad-mute-confirm-dialog"),b,a.macros),a.D.Ja(a.Ea),a.D.subscribe("b",function(){return a.ra("c")})};
ixa=function(a){a.j&&a.j.Ta("click",a.aU,a);g.zC(a.Y,"click",function(){return a.aU()})};
xG=function(a,b,c,d,e,f){qG.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.j=null;this.C=e;this.hide()};
kxa=function(a,b,c){b=b.dialog&&g.U(b.dialog,jxa)||null;null==b?g.tF(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.j=new fxa(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,a.C),g.N(a,a.j),a.j.init(LF("ad-info-dialog"),b,c),a.j.Ja(a.C),a.j.subscribe("d",function(){return a.ra("f")}),a.j.subscribe("c",function(){return a.ra("e")}))};
nxa=function(a,b,c){null==a.button?g.tF(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.Yu(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&g.U(b.serviceEndpoint,lxa)||null)?(kxa(a,b,c),a.button.Ta("click",function(){a.j&&!a.j.Jb&&(a.j.show(),mxa(a))})):a.button.Ta("click",function(){return mxa(a)}))};
mxa=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
yG=function(a,b,c,d,e,f){WF.call(this,a,{I:"div",S:"ytp-ad-text"},void 0===f?"ad-text":f,b,c,d,void 0===e?null:e);this.j=null;this.hide()};
oxa=function(a,b){b&&g.Vf(a.element,XF(a.j,b))};
zG=function(a,b,c,d,e,f,h){WF.call(this,a,b,c,d,e,f);this.j=h;g.N(this,this.j);this.Wa=this.Y=-1};
AG=function(a){a.j&&-1===a.Y&&(a.Y=a.j.subscribe("h",a.oo,a),a.Wa=a.j.subscribe("g",a.Tp,a),a.oo())};
BG=function(a){null!=a.j&&-1!==a.Y&&(a.j.Ih(a.Y),a.j.Ih(a.Wa),a.Wa=-1,a.Y=-1)};
g.CG=function(a,b,c,d,e,f){g.I.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=void 0===d?b:d;this.j=f;this.onHidden=e;this.delay=new g.Qu(this.MG,0,this);g.N(this,this.delay)};
DG=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
EG=function(a,b,c,d,e,f){zG.call(this,a,{I:"div",S:"ytp-ad-preview-slot"},"ad-preview",b,c,d,e);var h=this;this.Za=-1;this.D=this.api.U().experiments.kb("enable_modern_skip_button_on_web");this.B=new g.VF({I:"span",S:"ytp-ad-preview-container"});this.D&&this.B.element.classList.add("ytp-ad-preview-container-detached");g.N(this,this.B);this.C=this.D?new yG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-preview-text-modern"):new yG(this.api,this.layoutId,this.interactionLoggingClientData,
this.jb,"ytp-ad-preview-text");g.N(this,this.C);this.C.Ja(this.B.element);this.va=this.D?new g.VF({I:"span",S:"ytp-ad-preview-image-modern"}):new g.VF({I:"span",S:"ytp-ad-preview-image"});g.N(this,this.va);this.G=new sG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);g.N(this,this.G);this.G.Ja(this.va.element);this.va.Ja(this.B.element);this.B.Ja(this.element);this.Ea=new g.CG(this.B,400,!1,100,function(){return h.hide()});
g.N(this,this.Ea);this.Na=0;this.Xa=!1;this.ib=f;this.hide()};
pxa=function(a){a.Ea.show(100);a.show()};
qxa=function(a,b,c,d,e,f){zG.call(this,a,{I:"div",La:["ytp-flyout-cta","ytp-flyout-cta-inactive"],V:[{I:"div",S:"ytp-flyout-cta-icon-container"},{I:"div",S:"ytp-flyout-cta-body",V:[{I:"div",S:"ytp-flyout-cta-text-container",V:[{I:"div",S:"ytp-flyout-cta-headline-container"},{I:"div",S:"ytp-flyout-cta-description-container"}]},{I:"div",S:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",b,c,d,e);this.C=new sG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-flyout-cta-icon");
g.N(this,this.C);this.C.Ja(this.Ga("ytp-flyout-cta-icon-container"));this.api.U().L("web_rounded_thumbnails")&&this.C.element.classList.add("ytp-flyout-cta-icon-rounded");this.G=new yG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-flyout-cta-headline");g.N(this,this.G);this.G.Ja(this.Ga("ytp-flyout-cta-headline-container"));this.D=new yG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-flyout-cta-description");g.N(this,this.D);this.D.Ja(this.Ga("ytp-flyout-cta-description-container"));
a=["ytp-flyout-cta-action-button"];this.api.U().L("web_modern_buttons")&&a.push("ytp-flyout-cta-action-button-rounded");this.B=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,a);g.N(this,this.B);this.B.Ja(this.Ga("ytp-flyout-cta-action-button-container"));this.B.element.setAttribute("tabIndex","-1");Ku(this.B.element);this.va=null;this.Ea=0;this.Na=f;this.hide()};
rxa=function(a,b,c,d,e){WF.call(this,a,{I:"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.C=new uG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,["ytp-ad-instream-user-sentiment-like-button"]);g.N(this,this.C);this.C.Ja(this.element);this.B=new uG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.N(this,this.B);this.B.Ja(this.element);
this.D=new g.CG(this,400,!1,500,function(){return f.hide()});
g.N(this,this.D);this.hide()};
FG=function(a,b,c,d,e,f){e=void 0===e?0:e;f=void 0===f?!1:f;g.I.call(this);this.B=a;this.C=!1;this.Y=d;this.ma=f;this.K=!1;this.j=null;0<b&&(this.j=new g.Qu(this.xV,b,this),g.N(this,this.j));this.G=new g.Qu(this.xV,c,this);g.N(this,this.G);this.Z=bla(this.B,e,1,d);g.N(this,this.Z);this.N=bla(this.B,0,d,1);g.N(this,this.N);this.D=new DC;g.N(this,this.D)};
sxa=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Te(a,"unknown result type")}};
txa=function(a){switch(a){case "b.f_":return 0;case "j.s_":return 2;case "r.s_":return 4;case "e.h_":return 6;case "i.s_":return 8;case "p.h_":return 12;case "s.t_":return 10;case "s.i_":return 14;case "f.i_":return 16;case "a.b_":return 18;case "a.o_":return 20;case "g.o_":return 22;case "p.i_":return 24;case "p.m_":return 26;case "i.k_":return 28;case "i.f_":return 30;case "a.s_":return 32;default:Te(a,"Unknown method type")}};
GG=function(a,b){var c=1,d=[];try{var e=document.querySelector(".ytp-ad-skip-button-slot");e?"none"===getComputedStyle(e).display?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_INVISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_VISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_NOT_FOUND")}catch(f){d.push("BISCOTTI_BASED_DETECTION_STATE_IS_FINDING_BUTTON_FAILURE")}!0===a.isTrusted?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED"):!1===a.isTrusted?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED"):
d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED_UNDEFINED");d.includes("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED")&&(c=0);qB("ISDSTAT",c);uxa(c,"i.s_",{ida:"sk",metadata:b,states:d});return c};
vxa=function(a){uxa(0,"a.s_",{metadata:a},!1);qB("ASDSTAT",0)};
uxa=function(a,b,c,d){d=void 0===d?!0:d;var e,f,h={detected:0===a,source:""+b+(null!=(e=c.ida)?e:"")+(null!=(f=c.p5)?f:""),detectionStates:c.states,durationMs:c.o5};c.metadata&&(h.contentCpn=c.metadata.contentCpn,h.adCpn=c.metadata.adCpn);g.bD("biscottiBasedDetection",h);d&&(a=sxa(a),b=txa(b),qB("CATSTAT",Number(g.rB("CATSTAT",0))&~(3<<b)|a<<b))};
wxa=function(a){.1>Math.random()&&g.uF(Error(a))};
HG=function(a,b,c,d,e){d=void 0===d?{}:d;if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.QC(a);if(a.args)for(var f=g.u(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign({},h,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.slotType:"");c&&(d.layout=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.uF(a)}};
g.IG=function(a,b){this.state=a;this.DA=b};
KG=function(a,b){return g.JG(a.state,b)&&!g.JG(a.DA,b)?1:!g.JG(a.state,b)&&g.JG(a.DA,b)?-1:0};
g.LG=function(a,b){return 0<KG(a,b)};
MG=function(a,b,c,d,e,f){zG.call(this,a,{I:"div",S:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.va=null;this.Ea=!1;this.Xa=f;this.G=this.api.U().experiments.kb("enable_modern_skip_button_on_web");this.Za=!1;this.D=new g.VF({I:"span",La:["ytp-ad-skip-button-container"]});this.G&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");g.N(this,this.D);this.D.Ja(this.element);this.B=this.C=null;this.ib=new g.CG(this.D,500,!1,100,function(){return h.hide()});
g.N(this,this.ib);this.Na=new FG(this.D.element,15E3,5E3,.5,.5,this.G);g.N(this,this.Na);this.hide()};
yxa=function(a){a=a.va&&a.va.adRendererCommands;return(a&&a.clickCommand&&g.U(a.clickCommand,g.NG)&&g.U(a.clickCommand,g.NG).commands||[]).some(function(b){return b.adLifecycleCommand?xxa(b.adLifecycleCommand):!1})};
xxa=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
OG=function(a,b,c,d,e,f){zG.call(this,a,{I:"div",S:"ytp-ad-skip-ad-slot"},"skip-ad",b,c,d,e);this.va=f;this.D=!1;this.G=0;this.C=this.B=null;this.hide()};
zxa=function(a,b){a.D||(a.D=!0,a.B&&(b?a.B.Ea.hide():a.B.hide()),b?(a=a.C,a.ib.show(),a.show()):a.C.show())};
Axa=function(a,b,c,d){fG.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
PG=function(a,b,c,d,e,f){WF.call(this,a,{I:"span",S:"ytp-ad-simple-ad-badge"},"simple-ad-badge",b,c,d);this.B=e;this.C=f;this.j=this.Ga("ytp-ad-simple-ad-badge");this.hide()};
QG=function(a,b,c,d,e){e=void 0===e?!1:e;MF.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.KK=e};
RG=function(a,b){g.NF.call(this);this.api=a;this.durationMs=b;this.j=null;this.Id=new DC(this);g.N(this,this.Id);this.B=Bxa;this.Id.T(this.api,"presentingplayerstatechange",this.R3);this.j=this.Id.T(this.api,"onAdPlaybackProgress",this.Rc)};
SG=function(a){g.NF.call(this);this.j=!1;this.lj=0;this.Id=new DC(this);g.N(this,this.Id);this.durationMs=a;this.sf=new g.xg(100);g.N(this,this.sf);this.Id.T(this.sf,"tick",this.Rc);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.TG=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){b="";0<d&&(b+=" "+d+" \u0434\u043d.");if(0<d||0<e)b+=" "+e+" \u0447.";b+=" "+f+" \u043c\u0438\u043d.";b+=" "+c+" \u0441\u0435\u043a.";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.UG=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)};
VG=function(a,b,c,d,e,f){zG.call(this,a,{I:"span",S:"ytp-ad-duration-remaining"},"ad-duration-remaining",b,c,d,e);this.videoAdDurationSeconds=f;this.B=null;this.hide()};
Cxa=function(a,b,c,d){yG.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
WG=function(a,b){this.B=a;this.j=b};
XG=function(a,b,c){if(!a.getLength())return null!=c?c:Infinity;a=(b-a.B)/a.getLength();return g.He(a,0,1)};
YG=function(a,b){g.VF.call(this,{I:"div",S:"ytp-ad-persistent-progress-bar-container",V:[{I:"div",S:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.B=b;g.N(this,this.B);this.progressBar=this.Ga("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
ZG=function(a,b,c,d,e,f){WF.call(this,a,{I:"div",S:"ytp-ad-player-overlay",V:[{I:"div",S:"ytp-ad-player-overlay-flyout-cta"},{I:"div",S:"ytp-ad-player-overlay-instream-info"},{I:"div",S:"ytp-ad-player-overlay-skip-or-preview"},{I:"div",S:"ytp-ad-player-overlay-progress-bar"},{I:"div",S:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",b,c,d);this.Y=f;this.C=this.Ga("ytp-ad-player-overlay-flyout-cta");this.api.U().L("web_rounded_thumbnails")&&this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
this.j=this.Ga("ytp-ad-player-overlay-instream-info");this.D=null;Dxa(this)&&(a=Hf("div"),g.Yu(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.j,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new Cxa(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),c.Ja(a),c.init(LF("ad-title"),{text:b.title},this.macros),g.N(this,c)),this.D=a);this.G=this.Ga("ytp-ad-player-overlay-skip-or-preview");this.Ea=this.Ga("ytp-ad-player-overlay-progress-bar");
this.va=this.Ga("ytp-ad-player-overlay-instream-user-sentiment");this.B=e;g.N(this,this.B);this.hide()};
Dxa=function(a){a=a.api.U();return g.$G(a)&&a.B};
Exa=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.an("/sharing_services",a);g.jE(d)};
g.aH=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)};
bH=function(a){this.j=new Cv(a)};
Fxa=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return g.PB("copy_login_info_to_st_cookie")&&("WEB"===g.rB("INNERTUBE_CLIENT_NAME")||"WEB_CREATOR"===g.rB("INNERTUBE_CLIENT_NAME"))&&a};
cH=function(a){if(g.rB("LOGGED_IN",!0)&&Fxa()){var b=g.rB("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.Vm(window.location.href);c&&b.push(c);c=g.Vm(a);g.Fb(b,c)||!c&&ec(a,"/")?(b=Wm(a),(b=Ffa(b))?(b=xva(b),b=(b=g.aC(b)||null)?BB(b):{}):b=null):b=null;null==b&&(b={});c=b;var d=void 0;Fxa()?(d||(d=g.rB("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&wva(a,b)}};
g.Gxa=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;a=g.an(a,b);cH(a);c=g.ye(a+c);d=d.location;c=ze(c);void 0!==c&&(d.href=c)};
g.Hxa=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.rB("EVENT_ID");d&&(b.ei||(b.ei=d));b&&wva(a,b);c||(cH(a),g.Gxa(a))};
g.dH=function(a,b,c,d){c&&wva(a,c);c=g.ye(a);var e=g.ke(c);a!=e&&yB(Error("Unsafe window.open URL: "+a));a=e;b=b||hf(a).toString(36);try{var f;if("2"===(null==(f=BB(a))?void 0:f.ase)){a=eta(a);cH(a);g.Ue(a,b,"attributionsrc");return}}catch(l){g.wB(l)}if(d){a=eta(a);try{var h=encodeURIComponent(d);cH(a);g.Ue(a,b,"attributionsrc="+h);return}catch(l){g.wB(l)}}cH(a);g.Ue(c,b)};
Jxa=function(a){Ixa=a&&a.data};
Lxa=function(a){Kxa=a&&a.data};
Nxa=function(a){Mxa=a&&a.data};
Pxa=function(){Oxa=Mxa=Kxa=Ixa=null};
Rxa=function(){var a=void 0===a?window.location.href:a;if(g.PB("kevlar_disable_theme_param"))return null;Sm(g.Um(5,a));try{var b=g.CB(a).theme;return Qxa.get(b)||null}catch(c){}return null};
eH=function(){this.j={};if(this.B=spa()){var a=g.aC("CONSISTENCY");a&&Sxa(this,{encryptedTokenJarContents:a})}};
Sxa=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},1E3*c);
a.B&&g.$B("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
fH=function(){var a=g.rB("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.rB("INNERTUBE_CLIENT_NAME")&&(this.localStorage=Txa(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
Txa=function(a){return void 0===a.localStorage?new $C("yt-client-location"):a.localStorage};
g.gH=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.rB("INNERTUBE_CONTEXT");if(!d)return g.tF(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.qd(d);g.PB("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&"AUTOMOTIVE_FORM_FACTOR"!==e.clientFormFactor&&(e.clientFormFactor=g.rB("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.NC();var h="USER_INTERFACE_THEME_LIGHT";g.OC(0,165)?h="USER_INTERFACE_THEME_DARK":g.OC(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.PB("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:Rxa()||h;e.userInterfaceTheme=f;if(!b){if(f=Dqa())e.connectionType=f;g.PB("web_log_effective_connection_type")&&(f=Fqa())&&(d.client.effectiveConnectionType=f)}var l;if(g.PB("web_log_memory_total_kbytes")&&(null==(l=g.Sa.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.Sa.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}g.PB("web_gcf_hashes_innertube")&&(f=asa())&&(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.CB(g.Sa.location.href);!g.PB("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo={graftUrl:g.Sa.location.href},g.PB("kevlar_woffle")&&sqa.instance&&(m=sqa.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),
e.mainAppWebInfo.webDisplayMode=tqa(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.PB("web_lr_app_quality_killswitch")&&(m=g.rB("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.rB("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.PB("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;
break a}catch(G){}n=void 0}n&&(e.timeZone=n)}(n=Zoa())?e.experimentsToken=n:delete e.experimentsToken;n=$oa();eH.instance||(eH.instance=new eH);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:g.gd(eH.instance.j)});!g.PB("web_prequest_context_killswitch")&&(n=g.rB("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.NC();n=g.OC(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=
!0);g.PB("warm_op_csn_cleanup")?c&&(b=g.qF())&&(d.clientScreenNonce=b):!b&&(b=g.qF())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Wa("yt.mdx.remote.remoteClient_"))d.remoteClient=a;fH.getInstance().setLocationOnInnerTubeContext(d);try{var p=IB(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.u(Object.entries(p)),t=r.next();!t.done;t=r.next()){var v=g.u(t.value),x=v.next().value,A=v.next().value;p=x;q=A;a=void 0;null==(a=d.adSignalsInfo.params)||
a.push({key:p,value:""+q})}var E;if(g.PB("add_ifa_to_tvh5_requests")&&"TVHTML5"===(null==(E=d.client)?void 0:E.clientName)){var F=g.rB("INNERTUBE_CONTEXT");F.adSignalsInfo&&(d.adSignalsInfo.advertisingId=F.adSignalsInfo.advertisingId,d.adSignalsInfo.limitAdTracking=F.adSignalsInfo.limitAdTracking)}}catch(G){g.tF(G)}return d};
Wxa=function(a,b){if(!a)return!1;var c,d=null==(c=g.U(a,Uxa))?void 0:c.signal;if(d&&b.wx)return!!b.wx[d];var e;if((c=null==(e=g.U(a,Vxa))?void 0:e.request)&&b.oN)return!!b.oN[c];for(var f in a)if(b.jN[f])return!0;return!1};
Xxa=function(a,b){var c,d=null==(c=g.U(a,Uxa))?void 0:c.signal;if(d&&b.wx&&(c=b.wx[d]))return c();var e;if((c=null==(e=g.U(a,Vxa))?void 0:e.request)&&b.oN&&(e=b.oN[c]))return e();for(var f in a)if(b.jN[f]&&(a=b.jN[f]))return a()};
Yxa=function(a){var b={"Content-Type":"application/json"};g.rB("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.rB("EOM_VISITOR_DATA"):g.rB("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.rB("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.rB("LOGGED_IN",!1);g.rB("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=g.rB("DEBUG_SETTINGS_METADATA"));"cors"!==a&&((a=g.rB("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.rB("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=
a),(a=g.rB("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.rB("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
hH=function(a){return function(){return new a}};
$xa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=Zxa[b];if(c){c=new RegExp(c);for(var d=g.u(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var f=[];Object.entries(Zxa).forEach(function(h){var l=g.u(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
c=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
d=g.u(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]};
g.iH=function(a){return"/youtubei/v1/"+$xa(a)};
aya=function(){};
jH=function(){};
kH=function(){};
lH=function(a){return g.Wa("ytcsi."+(a||"")+"data_")||bya(a)};
cya=function(){var a=lH();a.info||(a.info={});return a.info};
mH=function(a){a=lH(a);a.metadata||(a.metadata={});return a.metadata};
nH=function(a){a=lH(a);a.tick||(a.tick={});return a.tick};
oH=function(a){a=lH(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
dya=function(a){a=oH(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
pH=function(a){var b=lH(a).nonce;b||(b=g.GE(16),lH(a).nonce=b);return b};
bya=function(a){var b={tick:{},info:{}};g.Va("ytcsi."+(a||"")+"data_",b);return b};
eya=function(){var a=g.Wa("ytcsi.debug");a||(a=[],g.Va("ytcsi.debug",a),g.Va("ytcsi.reference",{}));return a};
qH=function(a){a=a||"";var b=fya();if(b[a])return b[a];var c=eya(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
gya=function(a){a=a||"";var b=fya();b[a]&&delete b[a];var c=eya(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
fya=function(){var a=g.Wa("ytcsi.reference");if(a)return a;eya();return g.Wa("ytcsi.reference")};
rH=function(a){return hya[a]||"LATENCY_ACTION_UNKNOWN"};
iya=function(a,b){UD.call(this,1,arguments);this.sf=b};
sH=function(){this.j=0};
tH=function(){sH.instance||(sH.instance=new sH);return sH.instance};
vH=function(a,b){uH[b]=uH[b]||{count:0};var c=uH[b];c.count++;c.time=(0,g.pD)();a.j||(a.j=g.VC(0,function(){var d=(0,g.pD)(),e;for(e in uH)uH[e]&&6E4<d-uH[e].time&&delete uH[e];a&&(a.j=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.QC("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.uF(c)),!0):!1};
jya=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
kya=function(){var a;if(g.PB("csi_use_performance_navigation_timing")||g.PB("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==wH?void 0:null==(a=wH.getEntriesByType)?void 0:null==(b=a.call(wH,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=xH(e.requestStart),e.responseEnd=xH(e.responseEnd),e.redirectStart=xH(e.redirectStart),e.redirectEnd=xH(e.redirectEnd),e.domainLookupEnd=xH(e.domainLookupEnd),e.connectStart=xH(e.connectStart),
e.connectEnd=xH(e.connectEnd),e.responseStart=xH(e.responseStart),e.secureConnectionStart=xH(e.secureConnectionStart),e.domainLookupStart=xH(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=wH.timing}else a=wH.timing;return a};
xH=function(a){return Math.round(yH()+a)};
yH=function(){return(g.PB("csi_use_time_origin")||g.PB("csi_use_time_origin_tvhtml5"))&&wH.timeOrigin?Math.floor(wH.timeOrigin):wH.timing.navigationStart};
AH=function(a,b){zH("_start",a,b)};
MH=function(a,b,c){c=void 0===c?!1:c;if(!g.PB("web_csi_action_sampling_enabled")||!lH(b).actionDisabled)if(g.PB("web_csi_via_jspb")&&!c){c=new cB;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":S(c,1,W[a[e]]);break;case "clientActionNonce":Q(c,2,a[e]);break;case "clientScreenNonce":Q(c,4,a[e]);break;case "loadType":Q(c,3,a[e]);break;case "isPrewarmedLaunch":uk(c,92,a[e]);break;case "isFirstInstall":uk(c,55,a[e]);break;case "networkType":S(c,
5,BH[a[e]]);break;case "connectionType":S(c,26,CH[a[e]]);break;case "detailedConnectionType":S(c,27,DH[a[e]]);break;case "isVisible":uk(c,6,a[e]);break;case "playerType":S(c,7,EH[a[e]]);break;case "clientPlaybackNonce":Q(c,8,a[e]);break;case "adClientPlaybackNonce":Q(c,28,a[e]);break;case "previousCpn":Q(c,77,a[e]);break;case "targetCpn":Q(c,76,a[e]);break;case "isMonetized":uk(c,9,a[e]);break;case "isPrerollAllowed":uk(c,16,a[e]);break;case "isPrerollShown":uk(c,17,a[e]);break;case "adType":Q(c,
12,a[e]);break;case "adTypesAllowed":Q(c,36,a[e]);break;case "adNetworks":Q(c,37,a[e]);break;case "previousAction":S(c,13,W[a[e]]);break;case "isRedSubscriber":uk(c,14,a[e]);break;case "serverTimeMs":vk(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":Q(c,20,a[e]);break;case "targetVideoId":Q(c,78,a[e]);break;case "adBreakType":S(c,21,FH[a[e]]);break;case "isNavigation":uk(c,25,a[e]);break;case "viewportHeight":vk(c,29,a[e]);break;case "viewportWidth":vk(c,30,a[e]);break;
case "screenHeight":vk(c,84,a[e]);break;case "screenWidth":vk(c,85,a[e]);break;case "browseId":Q(c,31,a[e]);break;case "isCacheHit":uk(c,32,a[e]);break;case "httpProtocol":Q(c,33,a[e]);break;case "transportProtocol":Q(c,34,a[e]);break;case "searchQuery":Q(c,41,a[e]);break;case "isContinuation":uk(c,42,a[e]);break;case "availableProcessors":vk(c,43,a[e]);break;case "sdk":Q(c,44,a[e]);break;case "isLocalStream":uk(c,45,a[e]);break;case "navigationRequestedSameUrl":uk(c,64,a[e]);break;case "shellStartupDurationMs":vk(c,
70,a[e]);break;case "appInstallDataAgeMs":vk(c,73,a[e]);break;case "latencyActionError":S(c,71,GH[a[e]]);break;case "actionStep":vk(c,79,a[e]);break;case "jsHeapSizeLimit":xk(c,80,a[e]);break;case "totalJsHeapSize":xk(c,81,a[e]);break;case "usedJsHeapSize":xk(c,82,a[e]);break;case "sourceVideoDurationMs":xk(c,90,a[e]);break;case "videoOutputFrames":xk(c,93,a[e]);break;case "isResume":uk(c,104,a[e]);break;case "debugTicksExcluded":uk(c,105,a[e]);break;case "abandonedPing":uk(c,113,a[e]);break;case "retries":vk(c,
123,a[e]);break;case "adPrebufferedTimeSecs":vk(c,39,a[e]);break;case "isLivestream":uk(c,47,a[e]);break;case "liveStreamMode":S(c,91,HH[a[e]]);break;case "adCpn2":Q(c,48,a[e]);break;case "adDaiDriftMillis":xk(c,49,a[e]);break;case "videoStreamType":S(c,53,IH[a[e]]);break;case "playbackRequiresTap":uk(c,56,a[e]);break;case "performanceNavigationTiming":uk(c,67,a[e]);break;case "transactionType":S(c,74,JH[a[e]]);break;case "playerRotationType":S(c,101,KH[a[e]]);break;case "allowedPreroll":uk(c,10,
a[e]);break;case "shownPreroll":uk(c,11,a[e]);break;case "getHomeRequestId":Q(c,57,a[e]);break;case "getSearchRequestId":Q(c,60,a[e]);break;case "getPlayerRequestId":Q(c,61,a[e]);break;case "getWatchNextRequestId":Q(c,62,a[e]);break;case "getBrowseRequestId":Q(c,63,a[e]);break;case "getLibraryRequestId":Q(c,66,a[e]);break;case "isTransformerEnabledForFeature":uk(c,106,a[e]);break;case "sourceVideoFrameCount":xk(c,109,a[e]);break;default:lya.includes(f)&&g.wB(new g.QC("Codegen laipb translator asked to translate message field",
""+f))}}catch(h){g.wB(Error("Codegen laipb translator failed to set "+f))}}LH(c,b)}else c=qH(b||""),BE(c.info,a),a.loadType&&(c=a.loadType,mH(b).loadType=c),BE(dya(b),a),c=pH(b),b=lH(b).cttAuthInfo,tH().info(a,c,b)};
LH=function(a,b){if(!g.PB("web_csi_action_sampling_enabled")||!lH(b).actionDisabled){var c=g.sk(a,3);c&&(mH(b).loadType=c);qH(b||"").jspbInfo.push(a);c=pH(b);b=lH(b).cttAuthInfo;tH().jspbInfo(a,c,b)}};
mya=function(){var a,b,c,d;return(null!=(d=null==OE().resolve(new LE(QD))?void 0:null==(a=RD())?void 0:null==(b=a.loggingHotConfig)?void 0:null==(c=b.csiConfig)?void 0:c.debugTicks)?d:[]).map(function(e){return Object.values(e)[0]})};
zH=function(a,b,c){if(!g.PB("web_csi_action_sampling_enabled")||!lH(c).actionDisabled){var d=pH(c),e;if(e=g.PB("web_csi_debug_sample_enabled")&&d){(null==OE().resolve(new LE(QD))?0:RD())&&!nya&&(nya=!0,zH("gcfl",(0,g.pD)(),c));var f,h,l;e=(null==OE().resolve(new LE(QD))?void 0:null==(f=RD())?void 0:null==(h=f.loggingHotConfig)?void 0:null==(l=h.csiConfig)?void 0:l.debugSampleWeight)||0;if(f=0!==e)b:{f=mya();if(0<f.length)for(h=0;h<f.length;h++)if(a===f[h]){f=!0;break b}f=!1}f?(e=0!==Yva(d)%e,lH(c).debugTicksExcludedLogged||
(g.PB("web_csi_via_jspb")?(f=new cB,f=uk(f,105,e),LH(f,c)):(f={},f.debugTicksExcluded=e,MH(f,c))),lH(c).debugTicksExcludedLogged=!0):e=!1}if(!e){b||"_"===a[0]||(e=a,wH.mark&&(e.startsWith("mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),wH.mark(e)));e=qH(c||"");e.tick[a]=b||(0,g.pD)();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=oH(c);e.gelTicks&&(e.gelTicks[a]=!0);f=nH(c);e=b||(0,g.pD)();g.PB("log_repeated_ytcsi_ticks")?a in f||(f[a]=e):f[a]=e;f=lH(c).cttAuthInfo;
"_start"===a?(a=tH(),vH(a,"baseline_"+d)||(b={timestamp:b,cttAuthInfo:f},g.PB("web_csi_via_jspb")?(a=new soa,Q(a,1,d),d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB,Tj(d,soa,6,mF,a),lF("latencyActionBaselined",d,b)):g.bD("latencyActionBaselined",{clientActionNonce:d},b))):tH().tick(a,d,b,f);oya(c);return e}}};
pya=function(){var a,b=null==(a=wH.getEntriesByType)?void 0:a.call(wH,"mark");b&&b.forEach(function(c){if(c.name.startsWith("mark_")){var d;null==(d=wH.clearMarks)||d.call(wH,c.name)}})};
qya=function(){switch(bqa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
tya=function(a){var b=kya(),c=yH(),d=g.rB("CSI_START_TIMESTAMP_MILLIS",0);0<d&&!g.PB("embeds_web_enable_csi_start_override_killswitch")&&(c=d);c&&(zH("srt",b.responseStart),1!==a.prerender&&AH(c));a=rya();0<a&&zH("fpt",a);a=kya();a.isPerformanceNavigationTiming&&MH({performanceNavigationTiming:!0},void 0);zH("nreqs",a.requestStart,void 0);zH("nress",a.responseStart,void 0);zH("nrese",a.responseEnd,void 0);0<a.redirectEnd-a.redirectStart&&(zH("nrs",a.redirectStart,void 0),zH("nre",a.redirectEnd,void 0));
0<a.domainLookupEnd-a.domainLookupStart&&(zH("ndnss",a.domainLookupStart,void 0),zH("ndnse",a.domainLookupEnd,void 0));0<a.connectEnd-a.connectStart&&(zH("ntcps",a.connectStart,void 0),zH("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=yH()&&0<a.connectEnd-a.secureConnectionStart&&(zH("nstcps",a.secureConnectionStart,void 0),zH("ntcpe",a.connectEnd,void 0));wH&&"getEntriesByType"in wH&&sya()};
uya=function(a){function b(f,h,l){h=h.match("_rid")?h.split("_rid")[0]:h;"number"===typeof l&&(l=JSON.stringify(l));f.requestIds?f.requestIds.push({endpoint:h,id:l}):f.requestIds=[{endpoint:h,id:l}]}
var c={};a=g.u(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":b(c,d,e);break;case "GetGuide_rid":b(c,d,e);break;case "GetHome_rid":b(c,d,e);break;case "GetPlayer_rid":b(c,d,e);break;case "GetSearch_rid":b(c,d,e);break;case "GetSettings_rid":b(c,d,e);break;case "GetTrending_rid":b(c,d,e);break;case "GetWatchNext_rid":b(c,d,e);break;case "yt_red":c.isRedSubscriber=!!e;break;case "yt_ad":c.isMonetized=!!e}}return c};
vya=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);Ve(window)&&a.setAttribute("nonce",Ve(window));return c?(a=wH.getEntriesByName(c))&&a[0]&&(a=a[0],c=yH(),zH("rsf_"+b,c+Math.round(a.fetchStart)),zH("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
xya=function(){var a=[];if(document.querySelector&&wH&&wH.getEntriesByName)for(var b in wya)if(wya.hasOwnProperty(b)){var c=wya[b];vya(b,c)&&a.push(c)}return a};
sya=function(){var a=window.location.protocol,b=wH.getEntriesByType("resource");b=g.ot(b,function(c){return 0===c.name.indexOf(a+"//fonts.gstatic.com/s/")});
(b=Gr(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(zH("wffs",xH(b.startTime)),zH("wffe",xH(b.responseEnd)))};
yya=function(a,b,c){wH&&wH.measure&&(a.startsWith("measure_")||(a="measure_"+a),c?wH.measure(a,b,c):b?wH.measure(a,b):wH.measure(a))};
zya=function(a){var b=NH("aft",a);if(b)return b;b=g.rB((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=NH(b[d],a);if(e)return e}return NaN};
Aya=function(a,b){g.Va("ytglobal.timing"+(b||"")+"ready_",a)};
NH=function(a,b){if(a=nH(b)[a])return"number"===typeof a?a:a[a.length-1]};
oya=function(a){var b=NH("_start",a),c=zya(a);b&&c&&!Bya&&(WD(Cya,new iya(Math.round(c-b),a)),Bya=!0)};
rya=function(){if(wH.getEntriesByType){var a=wH.getEntriesByType("paint");if(a=g.Db(a,function(b){return"first-paint"===b.name}))return xH(a.startTime)}a=wH.timing;
return a.m9?Math.max(0,a.m9):0};
OH=function(a){bya(a);Dya();pya();a||(g.rB("TIMING_ACTION")&&qB("PREVIOUS_ACTION",g.rB("TIMING_ACTION")),qB("TIMING_ACTION",""))};
Eya=function(){var a=["pbs","pbu"];g.xB(function(){qH("").info.actionType="watch";a&&qB("TIMING_AFT_KEYS",a);qB("TIMING_ACTION","watch");if(g.PB("web_csi_via_jspb")){var b=g.rB("TIMING_INFO",{}),c=new cB;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":dB(c,aB($A(d),String(e)));break;case "GetGuide_rid":dB(c,aB($A(d),String(e)));break;case "GetHome_rid":dB(c,aB($A(d),String(e)));break;case "GetPlayer_rid":dB(c,
aB($A(d),String(e)));break;case "GetSearch_rid":dB(c,aB($A(d),String(e)));break;case "GetSettings_rid":dB(c,aB($A(d),String(e)));break;case "GetTrending_rid":dB(c,aB($A(d),String(e)));break;case "GetWatchNext_rid":dB(c,aB($A(d),String(e)));break;case "yt_red":uk(c,14,!!e);break;case "yt_ad":uk(c,9,!!e)}}LH(c);c=new cB;c=uk(c,25,!0);c=S(c,1,W[rH(g.rB("TIMING_ACTION"))]);(b=g.rB("PREVIOUS_ACTION"))&&S(c,13,W[rH(b)]);(b=g.rB("CLIENT_PROTOCOL"))&&Q(c,33,b);(b=g.rB("CLIENT_TRANSPORT"))&&Q(c,34,b);(b=g.qF())&&
"UNDEFINED_CSN"!==b&&Q(c,4,b);b=qya();1!==b&&-1!==b||uk(c,6,!0);b=cya();(d="cold"===mH().loadType)||(d="cold"===b.yt_lt);if(d&&(Q(c,3,"cold"),tya(b),b=xya(),0<b.length))for(b=g.u(b),d=b.next();!d.done;d=b.next())d=d.value,e=new toa,Q(e,1,d),Vj(c,83,toa,e);LH(c)}else{c=uya(g.rB("TIMING_INFO",{}));0<Object.keys(c).length&&MH(c);c={isNavigation:!0,actionType:rH(g.rB("TIMING_ACTION"))};if(b=g.rB("PREVIOUS_ACTION"))c.previousAction=rH(b);if(b=g.rB("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.rB("CLIENT_TRANSPORT"))c.transportProtocol=
b;(b=g.qF())&&"UNDEFINED_CSN"!==b&&(c.clientScreenNonce=b);b=qya();if(1===b||-1===b)c.isVisible=!0;b="cold"===mH().loadType;d=cya();b||(b="cold"===d.yt_lt);if(b&&(c.loadType="cold",tya(cya()),b=xya(),0<b.length))for(c.resourceInfo=[],b=g.u(b),d=b.next();!d.done;d=b.next())c.resourceInfo.push({resourceCache:d.value});MH(c)}c=oH();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);b=c.preLoggedGelInfos;c=dya();d=void 0;for(e=0;e<b.length;e++){var f=b[e];if(f.loadType){d=f.loadType;break}}if("cold"===mH().loadType&&
("cold"===c.loadType||"cold"===d)){d=nH();e=oH();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var h in d)if(!(h in e))if("number"===typeof d[h])zH(h,NH(h));else if(g.PB("log_repeated_ytcsi_ticks")){f=g.u(d[h]);for(var l=f.next();!l.done;l=f.next())zH(h.slice(1),l.value)}h={};d=!1;b=g.u(b);for(e=b.next();!e.done;e=b.next())d=e.value,BE(c,d),BE(h,d),d=!0;d&&MH(h)}Aya(!0);h=g.rB("TIMING_ACTION");g.Wa("ytglobal.timingready_")&&h&&PH("_start")&&zya()&&oya()})()};
Gya=function(){var a=void 0===a?{}:a;g.xB(function(){Fya();gya();OH();Aya(!1);a.cttAuthInfo&&(lH().cttAuthInfo=a.cttAuthInfo);qB("TIMING_AFT_KEYS",[]);a.Anb?g.QH({loadType:"hot"}):g.QH({loadType:"warm"});qB("TIMING_ACTION","");delete g.rB("TIMING_INFO",{}).yt_lt;g.xB(AH)(a.startTime,void 0)})()};
RH=function(a,b){b=void 0===b?{}:b;g.xB(function(){Hya(a);var c=b.sampleRate;if(!g.PB("web_csi_action_sampling_enabled")||void 0===c||1>=c)c=!1;else{var d=pH(a);c=0!==Yva(d)%c}c&&(lH(a).actionDisabled=!0);qH(a||"").info.actionType=a;b.cttAuthInfo&&(lH(a).cttAuthInfo=b.cttAuthInfo);qB(a+"TIMING_ACTION",a);g.xB(AH)(b.startTime,a);c={actionType:rH(a)};(d=g.qF())&&"UNDEFINED_CSN"!==d&&(c.clientScreenNonce=d);g.QH(c,a);Aya(!0,a)})()};
Hya=function(a){g.xB(function(){Fya(a);gya(a);OH(a)})()};
g.QH=function(a,b,c){g.xB(MH)(a,b,void 0===c?!1:c)};
SH=function(a,b,c){return g.xB(zH)(a,b,c)};
Iya=function(a){g.xB(yya)("above_the_fold",a,void 0)};
PH=function(a,b){return g.xB(function(){var c=nH(b);return a in c})()};
Jya=function(a,b){return g.xB(function(){if(PH(a,b))return!1;SH(a,void 0,b);return!0})()};
TH=function(a,b,c){g.xB(function(){if(!PH("_start",c)||PH(a,c))return!1;SH(a,b,c);return!0})()};
Kya=function(){g.xB(function(){var a=pH();requestAnimationFrame(function(){setTimeout(function(){a===pH()&&SH("ftl",void 0,void 0)},0)})})()};
Fya=function(a){PH("_start",a)&&SH("aa",void 0,a)};
UH=function(a,b,c,d){this.HN=a;this.kh=b;this.j=c;this.D=d;this.C=void 0;this.B=new Map;a.wx||(a.wx={});a.wx=Object.assign({},Lya,a.wx)};
Mya=function(a,b,c,d){if(void 0!==UH.instance){if(d=UH.instance,a=[a!==d.HN,b!==d.kh,c!==d.j,!1,!1,!1,void 0!==d.C],a.some(function(e){return e}))throw new g.QC("InnerTubeTransportService is already initialized",a);
}else UH.instance=new UH(a,b,c,d)};
VH=function(a,b,c){var d=void 0===d?TD:d;var e=Xxa(b,a.HN);if(!e)return tg(new g.QC("Error: No request builder found for command.",b));var f=e.G(b,c,d);return f?(cH(f.input),new g.kg(function(h){var l,m,n;return g.H(function(p){if(1==p.j)return m="cors"===(null==(l=f.Ut)?void 0:l.mode)?"cors":void 0,a.j.u0?(n=Nya(a,f.config,m),p.Ka(2)):g.z(p,Oya(a,f.config,m),3);2!=p.j&&(n=p.B);h(Pya(a,f,n));g.Aa(p)})})):tg(new g.QC("Error: Failed to build request for command.",b))};
g.WH=function(a,b,c,d,e){e=void 0===e?{Uu:{identity:TD}}:e;var f=void 0===f?!0:f;b.context||(b.context=g.gH(d,f));return new g.kg(function(h){var l,m,n,p,q;return g.H(function(r){if(1==r.j)return l=tpa(c),m=FB(l)?"same-origin":"cors",a.j.u0?(n=Nya(a,e,m),r.Ka(2)):g.z(r,Oya(a,e,m),3);2!=r.j&&(n=r.B);var t=n;p=upa(tpa(c),t);q={input:p,Ut:vpa(p),Gp:b,config:e};h(Pya(a,q,n));g.Aa(r)})})};
Rya=function(a,b,c){var d;if(b&&!(null==b?0:null==(d=b.sequenceMetaData)?0:d.skipProcessing)&&a.D){d=g.u(Qya);for(var e=d.next();!e.done;e=d.next())e=e.value,a.D[e]&&a.D[e].handleResponse(b,c)}};
Pya=function(a,b,c){var d,e,f,h,l,m,n,p,q,r,t,v,x,A,E,F,G,M,P,R,ba,na,ta,ka,va,ea,Y,Ma,y;return g.H(function(aa){switch(aa.j){case 1:aa.Ka(2);break;case 3:if((d=aa.B)&&!d.isExpired())return aa.return(Promise.resolve(d.j()));case 2:if(!(null==(e=b)?0:null==(f=e.Gp)?0:f.context)){aa.Ka(4);break}h=b.Gp.context;aa.Ka(5);break;case 5:l=g.u([]),m=l.next();case 7:if(m.done){aa.Ka(4);break}n=m.value;return g.z(aa,n.kob(h),8);case 8:m=l.next();aa.Ka(7);break;case 4:if(null==(p=a.C)||!p.Cob(b.input,b.Gp)){aa.Ka(11);
break}return g.z(aa,a.C.Gnb(b.input,b.Gp),12);case 12:return q=aa.B,g.PB("kevlar_process_local_innertube_responses_killswitch")||Rya(a,q,b),aa.return(q);case 11:return(v=null==(t=b.config)?void 0:t.jj)&&a.B.has(v)?r=a.B.get(v):(x=JSON.stringify(b.Gp),F=null!=(E=null==(A=b.Ut)?void 0:A.headers)?E:{},b.Ut=Object.assign({},b.Ut,{headers:Object.assign({},F,c)}),G=Object.assign({},b.Ut),"POST"===b.Ut.method&&(G=Object.assign({},G,{body:x})),(null==(M=b.config)?0:M.Zba)&&SH(b.config.Zba),P=function(){return a.kh.fetch(b.input,
G,b.config)},r=P(),v&&a.B.set(v,r)),g.z(aa,r,13);
case 13:if((R=aa.B)&&"error"in R&&(null==(ba=R)?0:null==(na=ba.error)?0:na.details))for(ta=R.error.details,ka=g.u(ta),va=ka.next();!va.done;va=ka.next())ea=va.value,(Y=ea["@type"])&&-1<Sya.indexOf(Y)&&(delete ea["@type"],R=ea);v&&a.B.has(v)&&a.B.delete(v);(null==(Ma=b.config)?0:Ma.dca)&&SH(b.config.dca);if(R||null==(y=a.C)||!y.Rlb(b.input,b.Gp)){aa.Ka(14);break}return g.z(aa,a.C.Fnb(b.input,b.Gp),15);case 15:R=aa.B;case 14:return Rya(a,R,b),aa.return(R||void 0)}})};
Oya=function(a,b,c){var d,e,f,h,l,m,n;return g.H(function(p){if(1==p.j){f=(null==(d=b)?void 0:null==(e=d.Uu)?void 0:e.identity)||TD;m=null==(h=b)?void 0:null==(l=h.Uu)?void 0:l.sessionIndex;var q=mg(a.j.uD(f,{sessionIndex:m}));return g.z(p,q,2)}n=p.B;return p.return(Promise.resolve(Object.assign({},Yxa(c),n)))})};
Nya=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.Uu)?void 0:d.identity)||TD,f;b=null==b?void 0:null==(f=b.Uu)?void 0:f.sessionIndex;a=a.j.uD(e,{sessionIndex:b});return Object.assign({},Yxa(c),a)};
XH=function(){};
YH=function(){};
ZH=function(){};
$H=function(){};
aI=function(){};
bI=function(){};
g.cI=function(a,b){var c=g.Ia.apply(2,arguments);a=void 0===a?0:a;g.QC.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)};
dI=function(a){this.j=a};
Tya=function(a,b,c){if(a.j){var d=Sm(g.Um(5,Hn(b,"key")))||"/UNKNOWN_PATH";a.j.start(d)}a=c;g.PB("wug_networking_gzip_request")&&(a=Jsa(c));return new window.Request(b,a)};
g.eI=function(a,b){if(!Uya){var c=OE();Jta(c,{iF:Vya,l1:dI});var d={jN:{feedbackEndpoint:hH(ZH),modifyChannelNotificationPreferenceEndpoint:hH($H),playlistEditEndpoint:hH(aI),subscribeEndpoint:hH(XH),unsubscribeEndpoint:hH(YH),webPlayerShareEntityServiceEndpoint:hH(bI)}},e=fH.getInstance(),f={};e&&(f.client_location=e);void 0===a&&(a=rqa());void 0===b&&(b=c.resolve(Vya));Mya(d,b,a,f);Jta(c,{iF:Wya,IS:UH.instance});Uya=c.resolve(Wya)}return Uya};
Yya=function(a,b){var c=g.Wa("ytDebugData.callbacks");c||(c={},g.Va("ytDebugData.callbacks",c));if(g.PB("web_dd_iu")||Xya.includes(a))c[a]=b};
fI=function(){};
Zya=function(){fI.instance||(fI.instance=new fI);return fI.instance};
$ya=function(a,b,c){var d=new XMLHttpRequest;if(null==c?0:c.JA)d.onreadystatechange=function(f){c.JA(d,f)};
var e;d.open(null!=(e=b.method)?e:"GET",a,!0);d.responseType="text";d.withCredentials=!0;if(b.headers)for(a=g.u(Object.entries(b.headers)),b=a.next();!b.done;b=a.next())e=g.u(b.value),b=e.next().value,e=e.next().value,d.setRequestHeader(b,e);return d};
bza=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=aza(a[c-1],a[c-2],d),f=aza(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};
aza=function(a,b,c,d){d=void 0===d?!1:d;b=new cza(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.j:b.j),y:a.y+.2*((void 0===d?0:d)?-1*b.B:b.B)}};
cza=function(a,b){this.B=this.j=0;this.j=b.x-a.x;this.B=b.y-a.y};
dza=function(a,b,c){if(!b)return 1<=a.length?a[a.length-1]:null;for(var d=g.u(a),e=d.next();!e.done;e=d.next())if(e=e.value,e.width&&e.height&&(c&&e.width>=b||!c&&e.height>=b))return e;for(b=a.length-1;0<=b;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]};
eza=function(){this.state=1;this.j=null};
gza=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.Hc(2),g.vta(c,function(){if(window[h])fza(a,d,h,e);else{a.Hc(3);var l=wta(c),m=document.getElementById(l);m&&(rta(l),m.parentNode.removeChild(m));g.uF(new g.QC("Unable to load Botguard","from "+c))}},f)):b?(f=g.If("SCRIPT"),b instanceof Ce?Vba(f,b):f.textContent=b,f.nonce=Ve(window),document.head.appendChild(f),document.head.removeChild(f),window[h]?fza(a,d,h,e):(a.Hc(4),g.uF(new g.QC("Unable to load Botguard from JS")))):g.uF(new g.QC("Unable to load VM; no url or JS provided"))};
fza=function(a,b,c,d){a.Hc(5);try{var e=new ho({program:b,globalName:c,Mba:g.PB("att_web_record_metrics")});e.X_.then(function(){a.Hc(6);d&&d(b)});
a.SR(e)}catch(f){a.Hc(7),f instanceof Error&&g.uF(f)}};
jza=function(){if(!g.PB("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.PB("disable_biscotti_fetch_entirely_for_all_web_clients")&&Fpa()){var a=g.rB("PLAYER_VARS",{});if("1"!=g.nd(a,"privembed",!1)&&!Lpa(a)){var b=function(){hza=!0;"google_ad_status"in window?qB("DCLKSTAT",1):qB("DCLKSTAT",2)};
try{g.vta("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}iza.push(g.Iu.Xi(function(){if(!(hza||"google_ad_status"in window)){try{if(b){var c=""+g.fb(b),d=xta[c];d&&g.yE(d)}}catch(e){}hza=!0;qB("DCLKSTAT",3)}},5E3))}}};
kza=function(){var a=Number(g.rB("DCLKSTAT",0));return isNaN(a)?0:a};
lza=function(){var a=g.Wa("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null};
gI=function(){eza.apply(this,arguments)};
mza=function(){};
nza=function(a,b,c){for(var d=!1,e=g.u(a.Lj.entries()),f=e.next();!f.done;f=e.next())f=g.u(f.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===f.slotType&&"core"===f.Ya&&(d=!0);if(d){a:if(!c){a=g.u(a.Lj.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.Ya){c=d.layoutId;break a}c=void 0}c?b.GO(c):HG("No triggering layout ID available when attempting to mute.")}};
oza=function(a,b){this.nk=a;this.zm=b};
pza=function(){};
qza=function(){};
sza=function(a){g.I.call(this);var b=this;this.jd=a;this.j=new Map;hI(this,"commandExecutorCommand",function(c,d,e){rza(b,c.commands,d,e)});
hI(this,"clickTrackingParams",function(){})};
tza=function(a,b){hI(a,b.Fq(),function(c,d,e){b.Ys(c,d,e)})};
hI=function(a,b,c){a.isDisposed();a.j.get(b)&&g.tF(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
rza=function(a,b,c,d){b=void 0===b?[]:b;a.isDisposed();var e=[],f=[];b=g.u(b);for(var h=b.next();!h.done;h=b.next())h=h.value,g.U(h,uza)||g.U(h,vza)?e.push(h):f.push(h);e=g.u(e);for(b=e.next();!b.done;b=e.next())iI(a,b.value,c,d);f=g.u(f);for(e=f.next();!e.done;e=f.next())iI(a,e.value,c,d)};
iI=function(a,b,c,d){a.isDisposed();b.loggingUrls&&wza(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?a.jd.get().bx("innertubeCommand",{openPopupAction:f}):"confirmDialogEndpoint"===e?a.jd.get().bx("innertubeCommand",{confirmDialogEndpoint:f}):xza.hasOwnProperty(e)||wza(a,e,f,c,d)}};
wza=function(a,b,c,d,e){if((a=a.j.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.tF(f)}else b=new g.QC("Unhandled field",b),g.uF(b)};
yza=function(a,b,c){this.ao=a;this.j=b;this.Oa=c};
jI=function(a){this.value=a};
kI=function(a){this.value=a};
lI=function(a){this.value=a};
zza=function(a){this.value=a};
mI=function(a){this.value=a};
nI=function(a){this.value=a};
Aza=function(){jI.apply(this,arguments)};
Bza=function(a){this.value=a};
Cza=function(a){this.value=a};
Dza=function(a){this.value=a};
Eza=function(a){this.value=a};
Fza=function(a){this.value=a};
oI=function(a){this.value=a};
pI=function(a){this.value=a};
qI=function(a){this.value=a};
rI=function(a){this.value=a};
sI=function(a){this.value=a};
tI=function(){jI.apply(this,arguments)};
uI=function(a){this.value=a};
vI=function(a){this.value=a};
wI=function(a){this.value=a};
xI=function(a){this.value=a};
yI=function(a){this.value=a};
Gza=function(a){this.value=a};
Hza=function(a){this.value=a};
zI=function(a){this.value=a};
Iza=function(a){this.value=a};
Jza=function(a){this.value=a};
Kza=function(a){this.value=a};
Lza=function(a){this.value=a};
AI=function(a){this.value=a};
BI=function(a){this.value=a};
CI=function(a){this.value=a};
DI=function(a){this.value=a};
Mza=function(a){this.value=a};
EI=function(a){this.value=a};
FI=function(a){this.value=a};
GI=function(a){this.value=a};
Nza=function(a){this.value=a};
HI=function(a){this.value=a};
II=function(a){this.value=a};
JI=function(a){this.value=a};
KI=function(a){this.value=a};
LI=function(a){this.value=a};
MI=function(a){this.value=a};
NI=function(a){this.value=a};
OI=function(a){this.value=a};
PI=function(a){this.value=a};
Oza=function(a){this.value=a};
QI=function(a){this.value=a};
RI=function(a){this.value=a};
SI=function(a){this.value=a};
Pza=function(a){this.value=a};
TI=function(a){this.value=a};
UI=function(a){this.value=a};
VI=function(a){this.value=a};
WI=function(){jI.apply(this,arguments)};
Qza=function(a){this.value=a};
XI=function(){jI.apply(this,arguments)};
YI=function(){jI.apply(this,arguments)};
Rza=function(){jI.apply(this,arguments)};
ZI=function(){jI.apply(this,arguments)};
Sza=function(a){this.value=a};
$I=function(a){this.value=a};
Tza=function(a){this.value=a};
bJ=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(!aJ(a.Ba,c.value))return!1;return!0};
cJ=function(){return""};
Uza=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}};
dJ=function(a,b,c,d){d=void 0===d?!1:d;yb.call(this,a);this.Mk=c;this.Su=d;this.args=[];b&&this.args.push(b)};
eJ=function(a,b,c,d){d=void 0===d?!1:d;yb.call(this,a);this.Mk=c;this.Su=d;this.args=[];b&&this.args.push(b)};
fJ=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
aJ=function(a,b){return a.j.has(b)};
gJ=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
hJ=function(a){return Array.from(a.j.keys())};
iJ=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(!aJ(a.Ba,c.value))return!1;return!0};
Wza=function(a){var b;return(null==(b=Vza.get(a))?void 0:b.Ax)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
Yza=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:Xza.get(b.Ya)||"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=jJ(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(jJ(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(jJ(a.value))}return c};
Zza=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:Xza.get(b.Ya)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
jJ=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};
$za=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Er(d||[],function(e){return Yza(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
kJ=function(a,b){return function(c){return aAa(bAa(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.Ya,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.Ya)}};
aAa=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:Yza(a,{slotId:b,slotType:c,slotPhysicalPosition:d,Ya:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,Ba:new fJ([])}),layoutData:Zza(a,{layoutId:m,layoutType:n,Ya:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Fb:new Map,Ba:new fJ([]),lc:{}})}}};
mJ=function(a){this.Da=a;a=Math.random();var b=this.Da.get();b=g.lJ(b.J.U().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
bAa=function(a){return a.j||a.Da.get().J.U().L("html5_force_debug_data_for_client_tmp_logs")};
cAa=function(a,b,c,d){g.I.call(this);this.B=b;this.kc=c;this.Da=d;this.j=a(this,this,this,this,this);g.N(this,this.j);a=g.u(b);for(b=a.next();!b.done;b=a.next())g.N(this,b.value)};
nJ=function(a,b){a.B.add(b)};
oJ=function(a,b){a.B.delete(b)};
dAa=function(a,b,c,d){HG(c,b,void 0,void 0,c.Su);c.Mk?pJ(a.kc,d,c.Mk,b):HG("adsClientErrorMessage is missing.",b);qJ(a,b,!0)};
gAa=function(a,b,c){if(rJ(a.j,b))if(sJ(a.j,b).D=c?"filled":"not_filled",null===c){tJ(a.kc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.u(a.B);for(var d=c.next();!d.done;d=c.next())d.value.Xh(b);qJ(a,b,!1)}else{tJ(a.kc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);tJ(a.kc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);var e,f=null!=(e=c.AB)?e:gJ(c.Ba,"metadata_type_sub_layouts");if(f)for(e=g.u(f),f=e.next();!f.done;f=e.next())tJ(a.kc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,f.value);
e=g.u(a.B);for(f=e.next();!f.done;f=e.next())f.value.Yh(b);if(rJ(a.j,b))if(sJ(a.j,b).G)qJ(a,b,!1);else{tJ(a.kc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{d=a.j;if(!sJ(d,b))throw new dJ("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!d.Wg.Zq.get(b.slotType))throw new dJ("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 dJ("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");uJ(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);uJ(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);uJ(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);uJ(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
c.layoutExitUserInputSubmittedTriggers);uJ(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Zc)}catch(n){n instanceof dJ?a.uf(b,c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.uf(b,c,new dJ("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");qJ(a,b,!0);return}sJ(a.j,b).K=!0;try{var h=a.j,l=sJ(h,b),m=h.Wg.Zq.get(b.slotType).get().build(h.D,h.B,b,c);m.init();l.layout=c;if(l.C)throw new dJ("Already had LayoutRenderingAdapter registered for slot",
void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");l.C=m;vJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);vJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);vJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);vJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);vJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Zc)}catch(n){eAa(a,b);n instanceof dJ?a.uf(b,
c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.uf(b,c,new dJ("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");qJ(a,b,!0);return}tJ(a.kc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);d=g.u(a.B);for(h=d.next();!h.done;h=d.next())h.value.Eh(b,c);eAa(a,b);fAa(a,b)}else a=a.Da.get(),g.wJ(a.J.U())||xJ(a.J.U())||g.yJ(a.J.U())?a=!0:(HG("Composite VOD on legacy path."),a=!1),a&&HG("slot is unscheduled after been fulfilled.",b,
c)}};
hAa=function(a,b,c){"core"!==b.Ya&&tJ(a.kc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c)};
iAa=function(a,b,c){tJ(a.kc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.u(a.B);for(var d=a.next();!d.done;d=a.next())d.value.Eh(b,c)};
jAa=function(a,b,c){a=g.u(a.B);for(var d=a.next();!d.done;d=a.next())d.value.Kg(b,c)};
kAa=function(a,b,c){tJ(a.kc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.u(a.B);for(var d=a.next();!d.done;d=a.next())d.value.Ec(b,c)};
lAa=function(a,b,c,d){tJ(a.kc,Wza(d),b,c);a=g.u(a.B);for(var e=a.next();!e.done;e=a.next())e.value.Wc(b,c,d)};
eAa=function(a,b){if(rJ(a.j,b)){sJ(a.j,b).K=!1;var c=zJ;b=sJ(a.j,b);var d=[].concat(g.pa(b.Z));taa(b.Z);c(a,d)}};
zJ=function(a,b){b.sort(function(f,h){function l(m){HG("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):Uza(f.category,l)-Uza(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,rJ(a.j,d.slot))if(sJ(a.j,d.slot).K)sJ(a.j,d.slot).Z.push(d);else{mAa(a.kc,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.u(nAa);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))&&oAa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&pAa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&qAa(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
rAa(a,c)};
oAa=function(a,b,c){b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&sAa(a.j,d.slot)&&tAa(a,d.slot,d.layout,c)};
pAa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())qJ(a,c.value.slot,!1)};
qAa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(sJ(a.j,c.slot).D){case "not_filled":var d=!0;break a;default:d=!1}d&&(AJ(a.kc,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.nD(c.slot))}};
rAa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;AJ(a.kc,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.u(a.B),e=d.next();!e.done;e=d.next())e.value.Wh(c.slot);try{var f=a.j,h=c.slot,l=sJ(f,h);if(!l)throw new eJ("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!l.B)throw new eJ("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if("scheduled"!==l.j)throw new eJ("Tried to enter a slot from stage: "+
l.j,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(BJ(l))throw new eJ("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var m=g.u(CJ(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&BJ(p))throw new eJ("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 eJ&&q.Mk?(pJ(a.kc,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
q.Mk,c.slot),HG(q,c.slot,DJ(a.j,c.slot),void 0,q.Su)):(pJ(a.kc,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c.slot),HG(q,c.slot));qJ(a,c.slot,!0);continue}c=sJ(a.j,c.slot);"scheduled"!==c.j&&EJ(c.slot,c.j,"enterSlot");c.j="enter_requested";c.B.IH()}};
fAa=function(a,b){if(rJ(a.j,b)&&BJ(sJ(a.j,b))&&DJ(a.j,b)&&!sAa(a.j,b)){var c;tJ(a.kc,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=DJ(a.j,b))?c:void 0);a=sJ(a.j,b);"entered"!==a.j&&EJ(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.C.startRendering(a.layout)}};
tAa=function(a,b,c,d){if(rJ(a.j,b)){var e=a.kc,f;var h=(null==(f=Vza.get(d))?void 0:f.nx)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";tJ(e,h,b,c);a=sJ(a.j,b);"rendering"!==a.j&&EJ(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.C.Ye(c,d)}};
qJ=function(a,b,c){if(rJ(a.j,b)){a:switch(sJ(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(sJ(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(sJ(a.j,b).G=!0,!c))return;if(BJ(sJ(a.j,b)))sJ(a.j,b).G=!0,uAa(a,b,c);else{a:switch(sJ(a.j,b).D){case "fill_requested":c=!0;break a;default:c=!1}if(c)sJ(a.j,b).G=!0,rJ(a.j,b)&&(AJ(a.kc,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=sJ(a.j,b),b.D="fill_cancel_requested",b.N.VM());else{c=
DJ(a.j,b);(d=a.Da.get().J.U().experiments.kb("h5_enable_layout_unscheduling_events"))&&(c?a.Kg(b,c):HG(Error("Layout is null for LayoutUnscheduled event."),b,c,void 0,!1));AJ(a.kc,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=sJ(a.j,b),f=b.slotEntryTrigger,h=e.Ca.get(f.triggerId);h&&(h.Fl(f),e.Ca.delete(f.triggerId));f=g.u(b.slotFulfillmentTriggers);for(h=f.next();!h.done;h=f.next()){h=h.value;var l=e.ma.get(h.triggerId);l&&(l.Fl(h),e.ma.delete(h.triggerId))}f=g.u(b.slotExpirationTriggers);
for(h=f.next();!h.done;h=f.next())if(h=h.value,l=e.Y.get(h.triggerId))l.Fl(h),e.Y.delete(h.triggerId);null!=e.layout&&(f=e.layout,FJ(e,f.layoutExitNormalTriggers),FJ(e,f.layoutExitSkipTriggers),FJ(e,f.layoutExitMuteTriggers),FJ(e,f.layoutExitUserInputSubmittedTriggers),FJ(e,f.Zc));e.N=void 0;null!=e.B&&(e.B.release(),e.B=void 0);null!=e.C&&(e.C.release(),e.C=void 0);e=a.j;sJ(e,b)&&(e=CJ(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);AJ(a.kc,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
b);a=g.u(a.B);for(e=a.next();!e.done;e=a.next())e=e.value,e.Zh(b),c&&!d&&e.Kg(b,c)}}}};
uAa=function(a,b,c){if(rJ(a.j,b)&&BJ(sJ(a.j,b))){var d=DJ(a.j,b);if(d&&sAa(a.j,b))tAa(a,b,d,c?"error":"abandoned");else{AJ(a.kc,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=sJ(a.j,b);if(!e)throw new eJ("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&&EJ(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.B)throw e.j="scheduled",new eJ("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");e.B.LH()}catch(f){f instanceof eJ&&f.Mk?(pJ(a.kc,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",f.Mk,b),HG(f,b,void 0,void 0,f.Su)):(pJ(a.kc,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),HG(f,b))}}}};
vAa=function(a){this.slot=a;this.Ca=new Map;this.ma=new Map;this.Y=new Map;this.va=new Map;this.C=this.layout=this.B=this.N=void 0;this.K=this.G=!1;this.Z=[];this.j="not_scheduled";this.D="not_filled"};
BJ=function(a){return"enter_requested"===a.j||a.isActive()};
wAa=function(a,b,c,d,e,f){g.I.call(this);this.Wg=a;this.C=b;this.G=c;this.D=d;this.B=e;this.Da=f;this.j=new Map};
CJ=function(a,b){return(a=a.j.get(b))?a:new Map};
sJ=function(a,b){return CJ(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
xAa=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};
rJ=function(a,b){return null!=sJ(a,b)};
sAa=function(a,b){a=sJ(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};
DJ=function(a,b){(a=sJ(a,b))?null!=a.layout&&!a.layout&&HG("Unexpected empty layout",b):HG("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
AAa=function(a,b,c){if(0==c.length)throw new eJ("No "+yAa.get(b)+" triggers found for slot.",void 0,zAa(b));c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Wg.Cl.get(d.triggerType))throw new eJ("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
zAa=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"}};
uJ=function(a,b,c){c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Wg.Cl.get(d.triggerType))throw new dJ("No trigger adapter registered for "+yAa.get(b)+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
vJ=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.Wg.Cl.get(e.triggerType);f.ql(c,e,b.slot,b.layout?b.layout:null);b.va.set(e.triggerId,f)}};
FJ=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.va.get(c.triggerId);d&&(d.Fl(c),a.va.delete(c.triggerId))}};
EJ=function(a,b,c){HG("Slot stage was "+b+" when calling method "+c,a)};
BAa=function(a){return GJ(a.Uw).concat(GJ(a.Cl)).concat(GJ(a.Cq)).concat(GJ(a.Jr)).concat(GJ(a.Zq))};
GJ=function(a){var b=[];a=g.u(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Bh&&b.push(c);return b};
CAa=function(a){g.I.call(this);var b=this;this.p8=a;this.instance=null;this.addOnDisposeCallback(function(){g.vb(b.instance);b.instance=null})};
HJ=function(a){return new CAa(a)};
EAa=function(a){g.I.call(this);this.fh=a;this.j=DAa(this)};
DAa=function(a){var b=new cAa(function(c,d,e,f){return new wAa(a.fh.Wg,c,d,e,f,a.fh.Da)},new Set(BAa(a.fh.Wg).concat(a.fh.listeners)),a.fh.kc,a.fh.Da);
g.N(a,b);return b};
IJ=function(a){this.j=a};
JJ=function(a,b,c){rza(a.j(),b,c)};
KJ=function(a,b,c,d){(a=a.j())||HG("Could not initiate a command router instance.");iI(a,b,c,d)};
LJ=function(){this.listeners=new Set};
MJ=function(){};
GAa=function(a,b){a=b.bgp&&b.bgub;var c=b.upb;if(b.siub&&b.scs&&(a||c)){a=b.siub;var d=b.scs,e=b.bgub,f=b.bgp;b=window;var h=e?"//pagead2.googlesyndication.com/bg/"+g.$e(e)+".js":"";e=b.document;var l={};d&&(l._scs_=d);l._bgu_=h;l._bgp_=f;l._li_="v_h.3.0.0.0";c&&(l._upb_=c);(c=b.GoogleTyFxhY)&&"function"==typeof c.push||(c=b.GoogleTyFxhY=[]);c.push(l);c=vf(e).createElement("SCRIPT");c.type="text/javascript";c.async=!0;a=Nba(FAa,g.$e(a)+".js");g.We(c,a);(a=(b.GoogleTyFxhYEET||{})[c.src])?a():e.getElementsByTagName("head")[0].appendChild(c)}};
HAa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.Cb=c;this.Wb=d;this.Da=e;this.j=null};
JAa=function(a,b,c,d){a.j&&HG("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.CB?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.Cb.get(),l=a.slot.slotId,m=kJ(a.Wb.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,Ya:a.slot.Ya,slotEntryTrigger:a.slot.slotEntryTrigger,slotFulfillmentTriggers:a.slot.slotFulfillmentTriggers,slotExpirationTriggers:a.slot.slotExpirationTriggers}),
n=NJ(h.gb.get(),f,l),p={layoutId:n,layoutType:f,Ya:"core"};e={layoutId:n,layoutType:f,Fb:new Map,layoutExitNormalTriggers:[new IAa(h.j,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new fJ([new Pza(e)]),lc:m(p)};gAa(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof wg||dAa(a.callback,a.slot,new eJ(e,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
KAa=function(a){if(null==a.j)a.callback.JJ(a.slot);else try{a.j.cancel(),a.j=null,a.callback.JJ(a.slot)}catch(b){a.j=null,dAa(a.callback,a.slot,new eJ(b,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
OJ=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.uF(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
PJ=function(a,b,c){return b&&b.test(a)||LAa&&c&&c.test(a)?!0:!1};
NAa=function(a){return(a=MAa&&MAa.exec(a))?a[0]:""};
QJ=function(a){var b=void 0===b?!1:b;return OJ(PJ(a,OAa,null),a,b,"Trusted Stream URL")};
g.RJ=function(a){var b=void 0===b?!1:b;return OJ(PJ(a,PAa,null),a,b,"Trusted Image URL")};
RAa=function(a){var b=void 0===b?!1:b;return OJ(PJ(a,QAa,null),a,b,"Trusted Promoted Video Domain URL")};
TAa=function(a){var b=void 0===b?!1:b;return OJ(PJ(a,SAa,null),a,b,"Drm Licensor URL")};
VAa=function(a,b){b=void 0===b?!1:b;return OJ(PJ(a,UAa,null),a,b,"Captions URL")};
WAa=function(a){a=new g.Eo(a);g.Fo(a,document.location.protocol);g.Go(a,document.location.hostname);document.location.port&&g.Ho(a,document.location.port);return a.toString()};
SJ=function(a){a=new g.Eo(a);g.Fo(a,document.location.protocol);return a.toString()};
g.UJ=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.al=0;this.B=XAa++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||TJ.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.Fr(d.thumbnails,function(e){return g.RJ(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
YAa=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
ZAa=function(a,b){switch(a.style){case TJ.CHAPTER_MARKER:return b?8:5;case TJ.AD_MARKER:return 6;case TJ.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.$Aa=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B};
g.VJ=function(a){return"crn_"+a};
g.WJ=function(a){return"crx_"+a};
aBa=function(a,b,c,d,e,f,h,l,m){this.slot=b;this.ag=c;this.Oa=h;this.Fa=l;this.Sc=m;this.j=new HAa(a,b,d,e,f)};
bBa=function(a){var b;null==(b=a.Sc)||b.get().Pt(gJ(a.slot.Ba,"metadata_type_cue_point").identifier)};
cBa=function(a,b,c,d,e,f){this.slot=b;this.ag=c;this.j=new HAa(a,b,d,e,f)};
dBa=function(a,b){this.callback=a;this.slot=b};
eBa=function(a,b){return iJ(a,b.Od,b.slotType)?!0:!1};
fBa=function(){};
XJ=function(a,b,c,d,e,f,h){this.ag=a;this.Cb=b;this.Wb=c;this.Da=d;this.Oa=e;this.Fa=f;this.Sc=h};
YJ=function(){};
gBa=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.j=d;this.Rb=e;this.gb=f};
iBa=function(a){if(gJ(a.slot.Ba,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var b=hBa(a,a.slot);ZJ(a.Rb.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[b]})}};
hBa=function(a,b){var c=$J(a.gb.get(),a.slot.slotType),d=Object,e=d.assign;a=a.slot;if(b.slotEntryTrigger){var f=b.slotId;var h=b.slotEntryTrigger;f=null!=h.triggeringSlotId&&h.triggeringSlotId===f?h.clone(c):h}else f=void 0;return e.call(d,{},a,{slotId:c,slotEntryTrigger:f,slotFulfillmentTriggers:jBa(b.slotId,c,b.slotFulfillmentTriggers),slotExpirationTriggers:jBa(b.slotId,c,b.slotExpirationTriggers)})};
jBa=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;var l=a;var m=b;e=e.value;l=null!=e.triggeringSlotId&&e.triggeringSlotId===l?e.clone(m):e;h.call(f,l)}return d};
g.aK=function(a,b){for(var c=g.u(Object.keys(b)),d=c.next(),e={};!d.done;e={placeholder:void 0},d=c.next())d=d.value,e.placeholder=b[d],a=a.replace(new RegExp("\\$"+d,"gi"),function(f){return function(){return f.placeholder}}(e));
return a};
kBa=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
lBa=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.uf(a.slot,b,new dJ("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()};
bK=function(a,b,c,d){g.NF.call(this);this.callback=a;this.C=d;this.j=[];this.B=new kBa(a,b,c)};
dK=function(a,b,c,d,e,f,h){e=gJ(c.Ba,e);a=cK(a);var l=Ud(function(){d.Ec(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.lc},function(){l()}))};
eK=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.u(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.J.sendVideoStatsEngageEvent(1,void 0,2):e?e():HG("Tried to call engagePingCallback but it is null",h,l)}}else HG("Companion AdUxClick received without a layoutId",h,l)};
fK=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)};
gK=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"};
hK=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||[]],["swipe",a.swipePings||[]],["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||[]]])};
mBa=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 "swipe":return null;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}};
iK=function(a,b,c,d,e){e=void 0===e?null:e;this.C=a;this.Oa=b;this.layoutId=d;this.D=0;this.K=null;this.G=void 0;this.j=new Set;this.B=Array.from(this.C.get("progress")||[]);this.B.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.N={adPlacementConfig:c,QY:e}};
jK=function(){return["metadata_type_ad_placement_config"]};
cK=function(a){return nBa(a.Oa.get(),a.N)};
kK=function(a,b,c){for(c=void 0===c?!1:c;a.D<a.B.length;){var d=a.B[a.D];if(d.offsetMilliseconds<=b||c)oBa(a,"progress",[d]),a.D++;else break}};
lK=function(a,b){return a.j.has(b)};
mK=function(a){return a.B.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
pBa=function(a,b,c){a.K=b;a.G=c};
oBa=function(a,b,c){var d,e=a.Oa.get(),f=a.layoutId,h=null!=(d=a.K)?d:void 0;a=a.G;c=void 0===c?[]:c;if(d=qBa(e.B.get(),f))for(b=e.wb.get().Gh(f,b),f=nK(e,rBa(d),d,h,a),c=g.u(c),h=c.next();!h.done;h=c.next())h=h.value,h.baseUrl&&e.C.send(h.baseUrl,f,b,h.attributionSrcMode);else HG("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
sBa=function(a,b,c,d,e){MF.call(this,"banner-image",a,b,c,d,e)};
tBa=function(a,b,c,d,e,f,h,l,m,n){bK.call(this,a,b,c,d);this.Oa=e;this.Uc=f;this.K=l;this.Ab=m;this.Da=n;this.Bh=!0;this.D=null;this.G=gJ(c.Ba,"metadata_type_linked_player_bytes_layout_id");nJ(this.Uc(),this);this.adPlacementConfig=gJ(c.Ba,"metadata_type_ad_placement_config");this.bb=new iK(c.Fb,this.Oa,this.adPlacementConfig,c.layoutId)};
uBa=function(){var a=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];jK().forEach(function(b){a.push(b)});
return{Od:a,We:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
vBa=function(a,b,c,d,e){MF.call(this,"action-companion",a,b,c,d,e)};
wBa=function(a,b,c,d,e,f,h,l){bK.call(this,a,b,c,d);this.Oa=e;this.Uc=f;this.K=l;this.Bh=!0;this.D=null;this.G=gJ(c.Ba,"metadata_type_linked_player_bytes_layout_id");nJ(this.Uc(),this);a=gJ(c.Ba,"metadata_type_ad_placement_config");this.bb=new iK(c.Fb,this.Oa,a,c.layoutId)};
xBa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];jK().forEach(function(b){a.push(b)});
return{Od:a,We:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
yBa=function(a,b,c,d,e){MF.call(this,"image-companion",a,b,c,d,e)};
zBa=function(a,b,c,d,e,f,h,l){bK.call(this,a,b,c,d);this.Oa=e;this.Uc=f;this.K=l;this.Bh=!0;this.D=null;this.G=gJ(c.Ba,"metadata_type_linked_player_bytes_layout_id");nJ(this.Uc(),this);a=gJ(c.Ba,"metadata_type_ad_placement_config");this.bb=new iK(c.Fb,this.Oa,a,c.layoutId)};
ABa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];jK().forEach(function(b){a.push(b)});
return{Od:a,We:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
BBa=function(a,b,c,d,e){MF.call(this,"shopping-companion",a,b,c,d,e)};
CBa=function(a,b,c,d,e,f,h,l){bK.call(this,a,b,c,d);this.Oa=e;this.Uc=f;this.K=l;this.Bh=!0;this.D=null;this.G=gJ(c.Ba,"metadata_type_linked_player_bytes_layout_id");nJ(this.Uc(),this);a=gJ(c.Ba,"metadata_type_ad_placement_config");this.bb=new iK(c.Fb,this.Oa,a,c.layoutId)};
DBa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];jK().forEach(function(b){a.push(b)});
return{Od:a,We:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
EBa=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)};
FBa=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))};
GBa=function(a,b,c,d){this.Ab=a;this.layoutId=c;this.G=d;this.B=[];this.j=[];this.C=this.D=0;a=g.u(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,c=void 0,null==(c=b.adVideoOffset)?void 0:c.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":EBa(b)?this.B.push(b):HG("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":FBa(b)?this.j.push(b):HG("Invalid AdVideoProgressMillisecondsCommand");break;default:HG("Unknown or invalid AdVideoProgressOffSet kind")}this.B.sort(function(e,
f){return e.adVideoOffset.percent-f.adVideoOffset.percent});
this.j.sort(function(e,f){return Number(e.adVideoOffset.milliseconds)-Number(f.adVideoOffset.milliseconds)})};
HBa=function(a,b,c,d,e,f){bK.call(this,a,b,c,d);this.Oa=e;this.Uc=f;this.Bh=!0;nJ(this.Uc(),this);a=gJ(c.Ba,"metadata_type_ad_placement_config");this.bb=new iK(c.Fb,this.Oa,a,c.layoutId)};
IBa=function(){var a=["metadata_type_action_companion_ad_renderer"];jK().forEach(function(b){a.push(b)});
return{Od:a,We:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
JBa=function(a,b,c,d,e,f,h){this.callback=a;this.slot=b;this.layout=c;this.Fa=d;this.Oa=e;this.Da=f;this.wb=h;a=gJ(c.Ba,"metadata_type_ad_placement_config");this.bb=new iK(c.Fb,this.Oa,a,c.layoutId)};
KBa=function(a,b,c,d,e,f){bK.call(this,a,b,c,d);this.Fa=e;this.G=f;this.D=!1};
LBa=function(a,b,c,d,e){MF.call(this,"top-banner-image-text-icon-buttoned",a,b,c,d,e)};
MBa=function(a,b,c,d,e,f){bK.call(this,a,b,c,d);this.Oa=e;this.Uc=f;this.Bh=!0;nJ(this.Uc(),this);a=gJ(c.Ba,"metadata_type_ad_placement_config");this.bb=new iK(c.Fb,this.Oa,a,c.layoutId)};
NBa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];jK().forEach(function(b){a.push(b)});
return{Od:a,We:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
oK=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;MF.call(this,"ad-action-interstitial",a,b,c,d);this.interactionLoggingClientData=d;this.aS=e;this.KK=f};
pK=function(a,b,c,d,e){bK.call(this,a,b,c,d);a=gJ(c.Ba,"metadata_type_ad_placement_config");this.bb=new iK(c.Fb,e,a,c.layoutId)};
OBa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];jK().forEach(function(b){a.push(b)});
return{Od:a,We:["LAYOUT_TYPE_ENDCAP"]}};
qK=function(a,b){return bJ(a,b.Od,b.We)?!0:!1};
rK=function(a,b,c){this.j=a;this.Rb=b;this.gb=c};
PBa=function(a,b,c,d,e){MF.call(this,"ads-engagement-panel",a,b,c,d,e)};
QBa=function(a,b,c,d,e,f,h,l){bK.call(this,a,b,c,d);this.Oa=e;this.Uc=f;this.K=l;this.Bh=!0;this.D=null;this.G=gJ(c.Ba,"metadata_type_linked_player_bytes_layout_id");nJ(this.Uc(),this);a=gJ(c.Ba,"metadata_type_ad_placement_config");this.bb=new iK(c.Fb,this.Oa,a,c.layoutId)};
RBa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];jK().forEach(function(b){a.push(b)});
return{Od:a,We:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
SBa=function(a,b,c,d,e,f,h,l,m,n){bK.call(this,a,b,c,d);this.Oa=e;this.Uc=f;this.K=l;this.Ab=m;this.Da=n;this.Bh=!0;this.D=null;this.G=gJ(c.Ba,"metadata_type_linked_player_bytes_layout_id");nJ(this.Uc(),this);this.adPlacementConfig=gJ(c.Ba,"metadata_type_ad_placement_config");this.bb=new iK(c.Fb,this.Oa,this.adPlacementConfig,c.layoutId)};
TBa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];jK().forEach(function(b){a.push(b)});
return{Od:a,We:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
UBa=function(a,b,c,d,e,f,h){this.vc=a;this.Oa=b;this.Uc=c;this.j=d;this.wb=e;this.Ab=f;this.Da=h};
VBa=function(a,b,c){MF.call(this,"player-underlay",a,{},b,c);this.interactionLoggingClientData=c};
sK=function(a,b,c,d){bK.call(this,a,b,c,d)};
WBa=function(a){this.vc=a};
XBa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.zk=e;a=gJ(this.layout.Ba,"metadata_type_ad_placement_config");this.bb=new iK(c.Fb,this.Oa,a,c.layoutId)};
YBa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];jK().forEach(function(b){a.push(b)});
return{Od:a,We:["LAYOUT_TYPE_FORECASTING"]}};
ZBa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.zk=e;a=gJ(this.layout.Ba,"metadata_type_ad_placement_config");this.bb=new iK(c.Fb,this.Oa,a,c.layoutId)};
tK=function(a,b,c,d){this.Da=a;this.Oa=b;this.zk=c;this.wb=d};
$Ba=function(a,b){return aJ(a.Ba,"metadata_type_ad_info_ad_metadata")?gJ(a.Ba,"metadata_type_ad_info_ad_metadata"):b?{channelId:b.Gl,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(HG("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
aCa=function(a,b){return aJ(a.Ba,"metadata_ad_video_is_listed")?gJ(a.Ba,"metadata_ad_video_is_listed"):b?b.isListed:(HG("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
bCa=function(a,b,c,d){MF.call(this,"player-overlay-layout",a,{},c,d);this.videoAdDurationSeconds=b;this.interactionLoggingClientData=d};
cCa=function(a,b,c,d,e,f,h,l){bK.call(this,a,b,c,d);this.Fa=e;this.Oa=f;this.K=h;this.G=l;this.D=!1;this.N=gJ(this.layout.Ba,"metadata_type_linked_player_bytes_layout_id")};
dCa=function(a){if(a.layout.renderingContent){var b;return null==(b=gJ(a.layout.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current}return gJ(a.layout.Ba,"metadata_type_player_bytes_callback")};
uK=function(a,b,c,d,e,f,h,l){bK.call(this,a,b,c,d);this.Fa=e;this.Oa=f;this.K=h;this.G=l;this.D=!1;this.N=gJ(this.layout.Ba,"metadata_type_linked_player_bytes_layout_id")};
eCa=function(){return{Od:["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"],We:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
fCa=function(a){if(a.layout.renderingContent){var b;return null==(b=gJ(a.layout.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current}return gJ(a.layout.Ba,"metadata_type_player_bytes_callback")};
gCa=function(a,b,c){MF.call(this,"ad-message",a,void 0,b,c)};
vK=function(a,b,c,d,e,f){bK.call(this,c,a,b,d);this.Fa=e;this.Da=f};
hCa=function(){return{Od:["metadata_type_valid_ad_message_renderer"],We:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
yK=function(a,b,c,d,e,f,h,l,m){return qK(c,eCa())||"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===c.layoutType&&void 0!==g.U(c.renderingContent,wK)?new uK(a,b,c,d,e,f,h,l):qK(c,{Od:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],We:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===c.layoutType&&void 0!==g.U(c.renderingContent,iCa)?
new cCa(a,b,c,d,e,f,h,l):qK(c,OBa())||"LAYOUT_TYPE_ENDCAP"===c.layoutType&&void 0!==g.U(c.renderingContent,xK)?new pK(a,b,c,d,f):qK(c,hCa())?new vK(b,c,a,d,e,m):qK(c,{Od:["metadata_type_instream_ad_player_overlay_renderer"],We:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new KBa(a,b,c,d,e,l):null};
jCa=function(a,b,c,d,e,f){this.vc=a;this.Fa=b;this.Oa=c;this.B=d;this.j=e;this.Da=f};
kCa=function(a){return!a.DA.isPlaying()&&a.state.isPlaying()};
zK=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
lCa=function(a,b,c,d,e,f,h){this.callback=a;this.slot=b;this.layout=c;this.Fa=d;this.Oa=e;this.Da=f;this.wb=h;this.j=!1;a=gJ(c.Ba,"metadata_type_ad_placement_config");this.bb=new iK(c.Fb,this.Oa,a,c.layoutId)};
mCa=function(a,b){a.j||(a.bb.hc(b),a.j=!0)};
nCa=function(a,b,c,d){this.Fa=a;this.Oa=b;this.Da=c;this.wb=d};
AK=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(";")};
BK=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
CK=function(a){return 1===a||2===a};
DK=function(a,b){b=void 0===b?0:b;if(a instanceof BK)return a;a=a&&a instanceof Error?a:Error(""+a);CK(b)?g.tF(a):g.uF(a);return new BK(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
g.pCa=function(a){return(a=oCa[a.toString()])?a:"LICENSE"};
qCa=function(a,b){function c(){var d=g.Ia.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.pa(d))}
a.addEventListener("playing",c)};
EK=function(){var a=g.Wa("yt.player.utils.videoElement_");a||(a=g.If("VIDEO"),g.Va("yt.player.utils.videoElement_",a));return a};
FK=function(a){var b=EK();return!!(b&&b.canPlayType&&b.canPlayType(a))};
HK=function(a){if(/opus/.test(a)&&g.GK&&!yv("38")&&!g.dC())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(rCa&&window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Apa())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!FK(a)};
sCa=function(a){try{var b=HK('video/mp4; codecs="avc1.42001E"')||HK('video/webm; codecs="vp9"');return(HK('audio/mp4; codecs="mp4a.40.2"')||HK('audio/webm; codecs="opus"'))&&(b||!a)||FK('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
tCa=function(){var a=EK();return!(!a.webkitSupportsPresentationMode||"function"!==typeof a.webkitSetPresentationMode)};
uCa=function(){var a=EK();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
g.IK=function(){DC.apply(this,arguments)};
JK=function(a,b,c,d,e,f){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.C=void 0===e?0:e;this.B=void 0===f?0:f};
LK=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||vCa(a,b);this.j=g.KK[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.KK[this.quality],0===a?a="\u0410\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430":(b=this.fps,c=this.projectionType,a=a.toString()+("EQUIRECTANGULAR"===c||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===
c||"MESH"===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));this.qualityLabel=a;this.B=l||"";this.primaries=m||""};
vCa=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=MK[0];for(var d=0;d<MK.length;d++){var e=MK[d],f=g.KK[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
PK=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.Pb||(c.Pb=16E3);Object.assign(this,c);a=g.u(this.id.split(";"));this.itag=a.next().value;this.j=a.next().value;this.containerType=NK(b);this.sb=OK[this.itag]||""};
QK=function(a){return"9"===a.sb||"("===a.sb||"9h"===a.sb||"(h"===a.sb};
wCa=function(a){return"H"===a.sb||"h"===a.sb};
xCa=function(a){return"9h"===a.sb||"(h"===a.sb};
RK=function(a){return"1"===a.sb||"1h"===a.sb};
yCa=function(a){return"mac3"===a.sb||"meac3"===a.sb||"m"===a.sb};
SK=function(a){return"MAC3"===a.sb||"MEAC3"===a.sb||"M"===a.sb};
g.TK=function(a){return 1===a.containerType};
zCa=function(a){return"("===a.sb||"(h"===a.sb||"H"===a.sb};
UK=function(a){return"application/x-mpegURL"===a.mimeType};
VK=function(a,b){return{itag:+a.itag,lmt:b?0:a.lastModified,xtags:a.j||""}};
WK=function(a,b){a=VK(a,b);return a.itag+";"+(a.lmt||0)+";"+a.xtags};
ACa=function(a){var b=navigator.mediaCapabilities;if(null==b||!b.decodingInfo||"f"===a.sb)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.Pb||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:8*a.Pb||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.B=d})};
BCa=function(a){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(a)};
CCa=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)};
XK=function(a){return a.includes("vtt")||a.includes("text/mp4")};
NK=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};
YK=function(a,b,c,d,e,f){var h=new JK;b in g.KK||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.KK[b],d=Math.round(16*e/9));f=new LK(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new PK(c,a,{audio:h,video:f})};
ZK=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.Vu)?void 0:c.toFixed(0))+", "+(null==(d=a.Pb)?void 0:d.toFixed(0))+")"};
$K=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
aL=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)};
bL=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};
cL=function(a,b){return 0<=bL(a,b)};
DCa=function(a,b){if(!a)return NaN;b=bL(a,b);return 0<=b?a.start(b):NaN};
dL=function(a,b){if(!a)return NaN;b=bL(a,b);return 0<=b?a.end(b):NaN};
eL=function(a){return a&&a.length?a.end(a.length-1):NaN};
fL=function(a,b){a=dL(a,b);return 0<=a?a-b:0};
gL=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 $K(d,e)};
hL=function(a,b,c,d){g.NF.call(this);var e=this;this.Vd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.BX={error:function(){!e.isDisposed()&&e.isActive&&e.ra("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.ra("updateend",e)}};
g.OF(this.Vd,this.BX);this.wG=this.isActive};
iL=function(a,b,c,d,e,f){g.NF.call(this);var h=this;this.dc=a;this.Ag=b;this.id=c;this.containerType=d;this.sb=e;this.Hg=f;this.wP=this.nE=this.Pf=null;this.mH=!1;this.appendWindowStart=this.timestampOffset=0;this.SM=$K([],[]);this.QC=!1;this.mE=[];this.iB=ECa?[]:void 0;this.Id=function(m){return h.ra(m.type,h)};
var l;if(null==(l=this.dc)?0:l.addEventListener)this.dc.addEventListener("updateend",this.Id),this.dc.addEventListener("error",this.Id)};
jL=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
kL=function(a,b){this.resource=a;this.j=void 0===b?!1:b;this.B=!1};
lL=function(a,b,c){c=void 0===c?!1:c;g.I.call(this);this.mediaElement=a;this.Qa=b;this.isView=c;this.N=0;this.G=!1;this.K=!0;this.va=0;this.callback=null;this.ma=!1;this.Qa||(this.Ag=this.mediaElement.Kb());this.events=new g.IK(this);g.N(this,this.events);this.C=new kL(this.Qa?window.URL.createObjectURL(this.Qa):this.Ag.webkitMediaSourceURL,!0);a=this.Qa||this.Ag;EC(this.events,a,["sourceopen","webkitsourceopen"],this.Gaa);EC(this.events,a,["sourceclose","webkitsourceclose"],this.Faa);this.D={updateend:this.S3}};
FCa=function(){return!!(window.MediaSource||mL&&window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
GCa=function(a,b){nL(a)?g.ig(function(){b(a)}):a.callback=b};
HCa=function(a,b,c){if(oL){var d;pL(a.mediaElement,{l:"mswssb",sr:null==(d=a.mediaElement.oa)?void 0:qL(d)},!1);g.OF(b,a.D,a);g.OF(c,a.D,a)}a.j=b;a.B=c;g.N(a,b);g.N(a,c)};
ICa=function(a,b,c,d){d=b.mimeType+(void 0===d?"":d);var e=c.mimeType;b=b.sb;c=c.sb;var f;a.Z=null==(f=a.Qa)?void 0:f.addSourceBuffer(e);var h;a.Y="fakesb"===d.split(";")[0]?void 0:null==(h=a.Qa)?void 0:h.addSourceBuffer(d);a.Ag&&(a.Ag.webkitSourceAddId("0",e),a.Ag.webkitSourceAddId("1",d));f=new iL(a.Z,a.Ag,"0",NK(e),c,!1);d=new iL(a.Y,a.Ag,"1",NK(d),b,!0);HCa(a,f,d)};
rL=function(a){return!!a.j||!!a.B};
nL=function(a){try{return"open"===sL(a)}catch(b){return!1}};
sL=function(a){if(a.Qa)return a.Qa.readyState;switch(a.Ag.webkitSourceState){case a.Ag.SOURCE_OPEN:return"open";case a.Ag.SOURCE_ENDED:return"ended";default:return"closed"}};
JCa=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||mL&&window.ManagedMediaSource};
KCa=function(a){nL(a)&&(a.Qa?a.Qa.endOfStream():a.Ag.webkitSourceEndOfStream(a.Ag.EOS_NO_ERROR))};
LCa=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Vd:a.j,f=a.B.isView()?a.B.Vd:a.B,h=new lL(a.mediaElement,a.Qa,!0);h.C=a.C;HCa(h,new hL(e,b,c,d),new hL(f,b,c,d));nL(a)||a.j.Yp(a.j.Vc());return h};
MCa=function(a){var b;null==(b=a.j)||b.Uy();var c;null==(c=a.B)||c.Uy();a.K=!1};
tL=function(){var a=this;this.x_=this.yR=qaa;this.promise=new g.kg(function(b,c){a.yR=b;a.x_=c})};
uL=function(){g.I.call(this);this.CI=!1;this.resource=null;this.N=this.K=!1;this.D=new g.Ld;this.oa=null;g.N(this,this.D)};
NCa=function(a){a=a.KD();return 1>a.length?NaN:a.end(a.length-1)};
OCa=function(a){!a.B&&FCa()&&(a.C?a.C.then(function(){return OCa(a)}):a.Kf()||(a.B=a.Iq()))};
PCa=function(a){a.B&&(a.B.dispose(),a.B=void 0)};
pL=function(a,b,c){var d;(null==(d=a.oa)?0:d.Dc())&&a.oa.qa("rms",b,void 0===c?!1:c)};
QCa=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||10<c||(a.play(),g.LB(function(){QCa(a,a.getCurrentTime(),c+1)},500))};
RCa=function(a,b){a.resource&&null!==b&&b.resource===a.resource.resource||(a.resource&&a.resource.dispose(),a.resource=b)};
vL=function(a){return fL(a.Oh(),a.getCurrentTime())};
SCa=function(a,b){if(0===a.Jk()||a.hasError())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.KD(),a.length||!c)?cL(a,b):c};
UCa=function(a){a.Kf()&&(TCa&&a.oa&&a.oa.ou("rs_s"),FD&&0<a.getCurrentTime()&&a.seekTo(0),a.qK(),a.load(),RCa(a,null));delete a.C};
VCa=function(a,b){b=void 0===b?!1:b;switch(a.gh()){case 2:return"progressive.net.retryexhausted";case 3:if(b){var c;if(null==(c=a.Af())?0:c.includes("MEDIA_ERR_CAPABILITY_CHANGED"))return"capability.changed"}return"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
g.wL=function(a,b,c){this.Tg=void 0===b?null:b;this.seekSource=void 0===c?null:c;this.state=a||64};
xL=function(a,b){return WCa(a,b.getCurrentTime(),(0,g.pD)(),vL(b))};
yL=function(a,b,c,d){if(!(b===a.state&&c===a.Tg&&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.wL(b,c,e?d?d:a.seekSource:null)}return a};
zL=function(a,b,c){return yL(a,a.state|b,null,void 0===c?null:c)};
AL=function(a,b){return yL(a,a.state&~b,null,null)};
BL=function(a,b,c,d){return yL(a,(a.state|b)&~c,null,void 0===d?null:d)};
g.JG=function(a,b){return!!(a.state&b)};
g.XCa=function(a,b){return b.state===a.state&&b.Tg===a.Tg};
g.CL=function(a){return g.JG(a,8)&&!g.JG(a,2)&&!g.JG(a,1024)};
YCa=function(a){return a.isPlaying()&&!g.JG(a,16)&&!g.JG(a,32)};
g.DL=function(a){return g.JG(a,1)&&!g.JG(a,2)};
EL=function(a){return g.JG(a,128)?-1:g.JG(a,2)?0:g.JG(a,2048)?3:g.JG(a,64)?-1:g.JG(a,1)&&!g.JG(a,32)?3:g.JG(a,8)?1:g.JG(a,4)?2:-1};
GL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){g.I.call(this);var x=this;this.EB=a;this.slot=b;this.layout=c;this.Oa=d;this.wb=e;this.Ua=f;this.Fa=h;this.Ac=l;this.tf=m;this.Ab=n;this.kF=p;this.position=r;this.G0=t;this.Da=v;this.Bh=!0;this.L_=!1;this.Qc="not_rendering";this.kE=!1;a=gJ(this.layout.Ba,"metadata_type_ad_placement_config");this.bb=new iK(c.Fb,this.Oa,a,c.layoutId);var A;a=(null==(A=FL(this))?void 0:A.progressCommands)||[];this.Hba=new GBa(n,a,c.layoutId,function(){return x.Az()});
this.lN=Ud(function(){x.EB.Ec(x.slot,x.layout)});
this.rH=Ud(function(){"rendering_stop_requested"!==x.Qc&&q(x);x.layoutExitReason?x.EB.Wc(x.slot,x.layout,x.layoutExitReason):HG("Received layout exit signal when not in layout exit flow.",x.slot,x.layout)})};
FL=function(a){return gJ(a.layout.Ba,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
$Ca=function(a){0===a.position&&(a.Ac.get(),a=gJ(a.layout.Ba,"metadata_type_ad_placement_config").kind,a={adBreakType:ZCa(a)},SH("ad_bl"),g.QH(a))};
HL=function(a,b,c){PH(a,c)||TH(a,b,c);PH(a,"video_to_ad")||TH(a,b,"video_to_ad");PH(a,"ad_to_video")||TH(a,b,"ad_to_video");PH(a,"ad_to_ad")||TH(a,b,"ad_to_ad")};
aDa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x){GL.call(this,a,b,c,d,e,f,h,l,n,p,q,r,t,v,x);var A=this;this.jd=m;this.KI=!0;this.zP=this.lj=0;this.sf=new g.xg(200);this.sf.Ta("tick",function(){A.Rc()});
g.N(this,this.sf)};
bDa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.u(jK()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Od:a,We:["LAYOUT_TYPE_MEDIA_BREAK"]}};
dDa=function(a){a.zP=Date.now();cDa(a,a.lj);a.sf.start()};
cDa=function(a,b){b={current:b/1E3,duration:a.Az()/1E3};a.jd.get().bx("onAdPlaybackProgress",b)};
KL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,A,E,F,G){GL.call(this,a,b,c,d,e,l,m,p,r,t,x,A,E,F,G);var M=this;this.Xe=f;this.Md=h;this.wc=n;this.jd=q;this.Bf=v;this.adCpn="";this.qV=0;this.FX=!1;this.rf()||(this.kJ=new g.Qu(function(){M.Gw("load_timeout",new dJ("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4),a=IL(this.Da.get()),G=JL(G.get()),a&&G&&(this.tA=new g.Qu(function(){var P=gJ(c.Ba,"metadata_type_preload_player_vars");
P&&M.Md.get().J.preloadVideoByPlayerVars(P,2,300)})))};
eDa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.u(jK()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Od:a,We:["LAYOUT_TYPE_MEDIA"]}};
fDa=function(a){if(qK(a.Cg,bDa()))return new aDa(a.callback,a.slot,a.Cg,a.Oa,a.wb,a.Ua,a.Fa,a.Ac,a.jd,a.tf,a.Ab,function(){},a.YD,a.mu,a.lG,a.Da);
if(qK(a.Cg,eDa()))return aJ(a.Cg.Ba,"metadata_type_ad_intro")?new KL(a.callback,a.slot,a.Cg,a.Oa,a.wb,a.Xe,a.Md,a.Ua,a.Fa,a.wc,a.Ac,a.jd,a.tf,a.Ab,a.Bf,function(b){a.jd.get().bx("onAdIntroStateChange",b)},a.YD,a.mu,a.lG,a.Da):new KL(a.callback,a.slot,a.Cg,a.Oa,a.wb,a.Xe,a.Md,a.Ua,a.Fa,a.wc,a.Ac,a.jd,a.tf,a.Ab,a.Bf,function(b){a.jd.get().jF(b)},a.YD,a.mu,a.lG,a.Da)};
hDa=function(){var a=g.Ia.apply(0,arguments);try{return new (Function.prototype.bind.apply(gDa,[null].concat(g.pa(a))))}catch(b){}};
gDa=function(a,b,c,d,e,f,h,l,m,n,p){g.I.call(this);this.callback=a;this.slot=b;this.layout=c;this.le=d;this.Ne=e;this.Ua=f;this.Sc=h;this.Md=l;this.Uc=m;this.Fa=n;this.Bh=!0;this.j=void 0;this.B=!1;a=fDa(p);if(!a)throw Error("Invalid params for sublayout");this.Nd=a};
iDa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){g.I.call(this);this.callback=a;this.Ua=b;this.Sc=c;this.Md=d;this.Fa=e;this.Ac=f;this.dG=h;this.slot=l;this.layout=m;this.le=n;this.zk=p;this.Uc=q;this.Da=r;this.Bh=!0;this.Rv=!1;this.Ad=[];this.zd=-1;this.cP=this.KO=!1};
lDa=function(a,b,c){var d=a.Ad[a.zd];a.zd===a.Ad.length-1&&HG("Unexpected skip with target requested during the last sublayout",d.xc(),d.rb(),{requestingSlot:b,requestingLayout:c});if(void 0===c.renderingContent&&c.layoutId!==LL(d,b,c))HG("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",d.xc(),d.rb(),{requestingSlot:b,requestingLayout:c});else{var e=gJ(d.rb().Ba,"metadata_type_ad_pod_skip_target");if(e&&0<e&&e<a.Ad.length){a:{for(var f=e;f<a.Ad.length;){if(e===
gJ(a.Ad[f].rb().Ba,"metadata_type_ad_pod_skip_index")){e=f;break a}f++}e=void 0}void 0===e?HG("Skip-to-index was requested but target index was not found",d.xc(),d.rb(),{requestingSlot:b,requestingLayout:c}):a.rf()?jDa(a,d.rb(),e,"skipped"):kDa(a,d.xc(),d.rb(),e)}else HG("Invalid ad pod skip target index",d.xc(),d.rb(),{requestingSlot:b,requestingLayout:c})}};
LL=function(a,b,c){var d=gJ(a.rb().Ba,"metadata_type_linked_in_player_layout_id");return d?d:(HG("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.xc(),a.rb(),{requestingSlot:b,requestingLayout:c}),null)};
mDa=function(a,b,c){ML(a,a.slot,b,c,function(){var d=a.RV;d?(a.RV=void 0,d(b)):HG("Expected further action after sublayout exit is confirmed",a.slot,a.layout)})};
oDa=function(a,b,c,d){a.rf()?jDa(a,c,a.zd+1,d):ML(a,b,c,d,function(){nDa(a,a.zd+1)})};
jDa=function(a,b,c,d){ML(a,a.slot,b,d,function(){if(c>=a.Ad.length+1||0>c)HG("Unexpected target sublayout index",a.slot,a.layout,{targetSubLayoutIndex:c});else{a.zd=c;if(c===a.Ad.length){var e=a.Ua.get().Se(1).clientPlaybackNonce;NL(a.zk,a.layout)}else e=a.Ad[c].rb().layoutId;a.Sc.get().finishSegmentByCpn(b.layoutId,e)}})};
kDa=function(a,b,c,d){ML(a,b,c,"skipped",function(){nDa(a,d)})};
ML=function(a,b,c,d,e){if(!a.cP){var f=a.Ad[a.zd];f?(f.rb().layoutId!==c.layoutId&&HG("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.rb().layoutId}),a.cP=!0,f.Ye(f.rb(),d),lAa(a.dG,b,c,d),a.cP=!1,a.KO=!1,a.TO?(a.TO(),pDa(a.Ac.get())):e()):HG("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
nDa=function(a,b){a.zd===a.Ad.length-1?(a.zd++,NL(a.zk,a.layout),pDa(a.Ac.get())):qDa(a,b)};
qDa=function(a,b){if(-1===a.zd&&(a.callback.Ec(a.slot,a.layout),0<b)){HG("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});return}a.zd=b;a.KO=!0;b=a.Ad[a.zd];if(0<a.zd){a=a.Ac.get();a.B=!1;var c={};a.j&&a.videoId&&(c.cttAuthInfo={token:a.j,videoId:a.videoId});RH("ad_to_ad",c)}b.startRendering(b.rb())};
rDa=function(a,b,c,d,e,f,h){g.I.call(this);this.callback=a;this.Md=b;this.Fa=c;this.Ac=d;this.Nd=e;this.Uc=f;this.Da=h;this.Bh=!0;this.Rv=!1};
tDa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,A,E,F,G,M){l={Oa:l,wb:m,Xe:n,Md:p,Ua:q,Fa:r,wc:t,Ac:v,jd:x,tf:A,Ab:E,Bf:F,Da:G};if(qK(d,{Od:["metadata_type_sub_layouts"],We:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||void 0!==d.AB&&"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"===d.layoutType){var P,R=null!=(P=d.AB)?P:gJ(d.Ba,"metadata_type_sub_layouts");a=new iDa(a,q,M,p,r,v,b,c,d,f,h,e,G);e=[];for(p={Pv:0};p.Pv<R.length;p={Pv:p.Pv},p.Pv++){r=fDa(Object.assign({},l,{callback:{Ec:a.Jaa.bind(a),Wc:a.Laa.bind(a),
CF:a.CF.bind(a),uf:a.Kaa.bind(a)},slot:c,Cg:R[p.Pv],YD:function(ba){return function(na){na.Ye(R[ba.Pv],"normal")}}(p),
mu:p.Pv,lG:R.length}));if(!r)return;e.push(r)}a.Ad=e;return a}if(sDa(c,G.get())&&qK(d,{Od:[],We:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return v=Object.assign({},l,{callback:{Ec:function(){},
Wc:function(){},
CF:function(){return void NL(h,d)},
uf:function(){}},
slot:c,Cg:d,YD:function(){},
mu:0,lG:1}),hDa(a,c,d,f,h,q,M,p,e,r,v);if(qK(d,{Od:[],We:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=fDa(Object.assign({},l,{callback:{Ec:a.Ec.bind(a),Wc:a.Wc.bind(a),CF:function(){},
uf:a.uf.bind(a)},slot:c,Cg:d,YD:function(){NL(h,d)},
mu:0,lG:1})))?new rDa(a,p,r,v,c,e,G):c};
sDa=function(a,b){var c=gJ(a.Ba,"metadata_type_eligible_for_ssap");return void 0===c?(HG("Expected SSAP eligibility in PlayerBytes factory",a),!1):b.rf(c)};
OL=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Ua=d;this.Sc=e;this.If=f;this.Fa=h;this.bb=l;this.Oa=m;this.D=n;this.driftRecoveryMs=gJ(this.layout.Ba,"metadata_type_drift_recovery_ms")||null};
vDa=function(a){var b=gJ(a.layout.Ba,"metadata_type_layout_enter_ms"),c=gJ(a.layout.Ba,"metadata_type_layout_exit_ms");a=a.If.get();b=uDa(a.C,b,c);return Math.min(c,null!==b?b:Infinity)};
wDa=function(a,b){var c;PL(a.Oa.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.Ua.get().vv)?void 0:c.clientPlaybackNonce,adClientData:a.layout.lc.adClientDataEntry},b)})};
xDa=function(a,b,c,d,e,f,h,l,m,n,p){OL.call(this,a,b,c,d,e,f,h,l,m,n);this.C=p;this.B=this.j=null;a=g.u(this.C);for(b=a.next();!b.done;b=a.next())b=b.value,aJ(b.rb().Ba,"metadata_type_survey_overlay")&&(this.B=b.rb().layoutId)};
zDa=function(a,b){var c=yDa(a,b);a.j={Sl:c};c?c.startRendering(c.rb()):b===a.B&&HG("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
yDa=function(a,b){return null==b?null:a.C.find(function(c){return c.rb().layoutId===b})||null};
ADa=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=aJ(b.Ba,"metadata_type_survey_overlay"),r,t=(null==(r=gJ(a.Ba,"metadata_type_fulfilled_layout"))?void 0:gJ(r.Ba,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.ZD(c,t,2,f,d,e,a.slotId),n.Ii("ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.IC(c,t,2,f,d,e,a.slotId);n.Ii("ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return HG("Unexpected failure to add to playback timeline",
a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&HG("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):HG("Invalid timeline playback ID");d+f>e&&h.qG(p,e-d);return p};
BDa=function(a,b){var c=gJ(b.Ba,"metadata_type_sodar_extension_data");if(c)try{GAa(0,c)}catch(d){HG("Unexpected error when loading Sodar",a,b,{error:d})}};
DDa=function(a,b,c,d,e,f){CDa(a,b,new g.IG(c,new g.wL),d,e,!1,f)};
CDa=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;kCa(c)&&zK(e,0,null)&&(!lK(a,"impression")&&h&&h(),a.hc("impression"));lK(a,"impression")&&(g.LG(c,4)&&!g.LG(c,2)&&a.Gh("pause"),0>KG(c,4)&&!(0>KG(c,2))&&a.Gh("resume"),g.LG(c,16)&&.5<=e&&a.Gh("seek"),f&&g.LG(c,2)&&EDa(a,c.state,b,d,e))};
EDa=function(a,b,c,d,e,f,h){if(lK(a,"impression")){var l=1>=Math.abs(d-e);FDa(a,b,l?d:e,c,d,f,h&&l);l&&a.hc("complete")}};
FDa=function(a,b,c,d,e,f,h){kK(a,1E3*c,h);0>=e||0>=c||(null==b?0:g.JG(b,16))||(null==b?0:g.JG(b,32))||(zK(c,.25*e,d)&&(f&&!lK(a,"first_quartile")&&f("first"),a.hc("first_quartile")),zK(c,.5*e,d)&&(f&&!lK(a,"midpoint")&&f("second"),a.hc("midpoint")),zK(c,.75*e,d)&&(f&&!lK(a,"third_quartile")&&f("third"),a.hc("third_quartile")))};
GDa=function(a,b){lK(a,"impression")&&a.Gh(b?"fullscreen":"end_fullscreen")};
HDa=function(a){lK(a,"impression")&&a.Gh("clickthrough")};
IDa=function(a){a.Gh("active_view_measurable")};
JDa=function(a){lK(a,"impression")&&!lK(a,"seek")&&a.Gh("active_view_fully_viewable_audible_half_duration")};
KDa=function(a){lK(a,"impression")&&!lK(a,"seek")&&a.Gh("active_view_viewable")};
LDa=function(a){lK(a,"impression")&&!lK(a,"seek")&&a.Gh("audio_audible")};
MDa=function(a){lK(a,"impression")&&!lK(a,"seek")&&a.Gh("audio_measurable")};
NDa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Sc=d;this.bb=e;this.Fa=f;this.Ce=h;this.wb=l;this.Xe=m;this.Da=n;this.Oa=p;this.Ua=q;this.KI=!0;this.yd=this.Qc=null;this.adCpn=void 0};
ODa=function(a,b,c){var d;a.Oa.get().Ii("ads_qua","cpn."+gJ(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ua.get().Se(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
PDa=function(a,b){var c,d;a.Oa.get().Ii("ads_imp","cpn."+gJ(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Ua.get().Se(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.U(null==(d=gJ(a.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"))?void 0:d.skipOrPreviewRenderer,QL))};
QDa=function(a){return{enterMs:gJ(a.Ba,"metadata_type_layout_enter_ms"),exitMs:gJ(a.Ba,"metadata_type_layout_exit_ms")}};
RDa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){OL.call(this,a,b,c,d,e,h,l,m,n,q);this.Ce=f;this.Xe=p;this.wb=r;this.Da=t;this.yd=this.Qc=null};
SDa=function(a,b){var c;a.Oa.get().Ii("ads_imp","acpn."+(null==(c=a.Ua.get().Se(2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
TDa=function(a,b,c){var d;a.Oa.get().Ii("ads_qua","cpn."+gJ(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ua.get().Se(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
UDa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,A,E,F,G){this.Uc=a;this.le=b;this.zk=c;this.Ua=d;this.Sc=e;this.Fa=f;this.Oa=h;this.Ce=l;this.If=m;this.wb=n;this.Xe=p;this.Md=q;this.wc=r;this.Ac=t;this.jd=v;this.tf=x;this.Ab=A;this.Bf=E;this.Da=F;this.j=G};
RL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,A){this.Uc=a;this.le=b;this.zk=c;this.Oa=d;this.wb=e;this.Xe=f;this.Md=h;this.Ua=l;this.Fa=m;this.wc=n;this.Ac=p;this.jd=q;this.tf=r;this.Ab=t;this.Bf=v;this.Da=x;this.Sc=A};
VDa=function(a,b,c,d){MF.call(this,"survey-interstitial",a,b,c,d)};
SL=function(a,b,c,d,e){bK.call(this,c,a,b,d);this.Oa=e;a=gJ(b.Ba,"metadata_type_ad_placement_config");this.bb=new iK(b.Fb,e,a,b.layoutId)};
TL=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
XDa=function(a,b,c){c=void 0===c?WDa:c;c.width<WDa.width&&(c=WDa);if(a.width<c.width||a.height<c.height)return{nL:3,tG:501,errorMessage:"ad("+TL(c)+") larger than container("+TL(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{nL:3,tG:501,errorMessage:"ad("+TL(c)+") to container("+TL(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{nL:3,tG:501,errorMessage:"ad("+TL(c)+") covers container("+TL(a)+") center."}};
YDa=function(a,b){var c=gJ(a.Ba,"metadata_type_ad_placement_config");return new iK(a.Fb,b,c,a.layoutId)};
UL=function(a){return gJ(a.Ba,"metadata_type_invideo_overlay_ad_renderer")};
ZDa=function(a,b,c,d){MF.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d};
VL=function(a,b,c,d,e,f,h,l,m,n,p,q){bK.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Fa=l;this.Ab=m;this.Da=n;this.K=p;this.G=q;this.bb=YDa(b,c)};
$Da=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];jK().forEach(function(b){a.push(b)});
return{Od:a,We:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
WL=function(a,b,c,d,e,f,h,l,m,n,p,q,r){bK.call(this,f,a,b,e);this.Oa=c;this.D=h;this.N=l;this.Fa=m;this.Ab=n;this.Da=p;this.K=q;this.G=r;this.bb=YDa(b,c)};
aEa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.u(jK()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Od:a,We:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
XL=function(a){this.Fa=a;this.j=!1};
bEa=function(a,b,c){MF.call(this,"survey",a,{},b,c)};
cEa=function(a,b,c,d,e,f,h){bK.call(this,c,a,b,d);this.D=e;this.Fa=f;this.Da=h};
dEa=function(a,b,c,d,e,f,h,l,m,n){this.vc=a;this.Fa=b;this.Oa=c;this.D=d;this.wb=e;this.B=f;this.C=h;this.Ab=l;this.Da=m;this.j=n};
eEa=function(a,b,c,d,e,f,h,l,m,n){this.vc=a;this.Fa=b;this.Oa=c;this.D=d;this.wb=e;this.B=f;this.C=h;this.Ab=l;this.Da=m;this.j=n};
YL=function(a,b,c,d,e,f,h,l,m,n){uK.call(this,a,b,c,d,e,f,h,m);this.Ym=l;this.Ua=n};
fEa=function(){var a=eCa();a.Od.push("metadata_type_ad_info_ad_metadata");return a};
gEa=function(a,b,c,d,e,f,h){this.vc=a;this.Fa=b;this.Oa=c;this.B=d;this.Ym=e;this.j=f;this.Ua=h};
hEa=function(a,b,c,d,e,f,h,l){this.vc=a;this.Fa=b;this.Oa=c;this.B=d;this.Ym=e;this.j=f;this.Da=h;this.Ua=l};
ZL=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)};
$L=function(a,b){this.j=a;this.B=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
var c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
aM=function(a,b,c){this.Pr=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=c||a(this.triggerType)};
bM=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=c||a(this.triggerType)};
cM=function(a,b,c,d){this.Pr=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=d||a(this.triggerType)};
iEa=function(a){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=a(this.triggerType)};
dM=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)};
eM=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
fM=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)};
jEa=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 eJ("Invalid layout exit reason: "+
a)}};
gM=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
kEa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
lEa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
mEa=function(a){this.triggerId=a;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
hM=function(a,b,c,d,e){this.Pr=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)};
iM=function(a,b,c,d,e){this.Pr=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=e||a(this.triggerType)};
nEa=function(a,b,c){this.Pr=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
jM=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)};
oEa=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)};
kM=function(a,b,c){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=c||a(this.triggerType)};
lM=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=c||a(this.triggerType)};
IAa=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)};
pEa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
qEa=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)};
mM=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
rEa=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)};
nM=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=c||a(this.triggerType)};
oM=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
pM=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
qM=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
rM=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
sM=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=c||a(this.triggerType)};
tM=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
uM=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=c||a(this.triggerType)};
sEa=function(a,b){this.durationMs=45E3;this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
vM=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
wM=function(a){return null!=(null==a?void 0:a.layoutId)&&null!=(null==a?void 0:a.layoutType)};
tEa=function(a){return null!=(null==a?void 0:a.durationMs)&&0<(null==a?void 0:a.durationMs)};
uEa=function(a){return!!(a.u8&&a.slot&&a.layout)};
vEa=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
wEa=function(a){if(!wM(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.U(a,xK)||g.U(a,wK)||g.U(a,iCa)?!0:!1};
xM=function(a){return void 0!==a.playerVars&&void 0!==a.pings&&void 0!==a.externalVideoId};
CM=function(a){if(!wM(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.U(a,xEa);return b?yEa(b):(b=g.U(a,yM))?xM(b):(b=g.U(a,zM))?void 0!==b.playerVars:(b=g.U(a,xK))?void 0!==b.durationMilliseconds:g.U(a,AM)||g.U(a,BM)?!0:!1};
yEa=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.U(b,zEa)});
return 0<a.length&&a.every(CM)};
DEa=function(a){if(!wM(a.adLayoutMetadata))return!1;if(g.U(a.renderingContent,AEa))return!0;a=g.U(a.renderingContent,DM);return g.U(null==a?void 0:a.sidePanel,BEa)||g.U(null==a?void 0:a.sidePanel,CEa)?!0:!1};
GEa=function(a){var b=a.adSlotMetadata;if(void 0===(null==b?void 0:b.slotId)||void 0===(null==b?void 0:b.slotType)||!(EEa(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var c;a=null==(c=a.fulfillmentContent)?void 0:c.fulfilledLayout;return(c=g.U(a,zEa))?CM(c):(c=g.U(a,EM))?DEa(c):(c=g.U(a,FEa))?wEa(c):!1};
EEa=function(a){var b;a=g.U(null==(b=a.fulfillmentContent)?void 0:b.fulfilledLayout,EM);var c;return a&&"LAYOUT_TYPE_PANEL_QR_CODE"===(null==(c=a.adLayoutMetadata)?void 0:c.layoutType)};
IEa=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.U(b,FM))?void 0:c.surveyAdQuestionCommon)||(null==(d=g.U(b,GM))?void 0:d.surveyAdQuestionCommon);if(!HEa(e))return!1}return!0};
JEa=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.U(a.questions[0],FM))?void 0:b.surveyAdQuestionCommon)||(null==(c=g.U(a.questions[0],GM))?void 0:c.surveyAdQuestionCommon);b=HEa(d)}else b=!1;else b=!1;return b};
HEa=function(a){if(!a)return!1;a=g.U(a.instreamAdPlayerOverlay,KEa);var b=g.U(null==a?void 0:a.skipOrPreviewRenderer,QL),c=g.U(null==a?void 0:a.adInfoRenderer,HM);return(g.U(null==a?void 0:a.skipOrPreviewRenderer,IM)||b)&&c?!0:!1};
LEa=function(a){return null!=a.linearAds&&wM(a.adLayoutMetadata)};
MEa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
NEa=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.U(a.ctaButton,g.JM)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.U(a.backgroundImage,KM)&&(null==(b=g.U(a.backgroundImage,KM))?0:b.landscape)?!0:!1};
LM=function(a,b,c,d,e,f,h){g.I.call(this);this.Da=a;this.Rb=b;this.Lb=c;this.Ge=d;this.Ua=e;this.B=f;this.j=h};
QEa=function(a,b,c){var d,e=(null!=(d=c.adSlots)?d:[]).map(function(f){return g.U(f,MM)});
c.CB?gJ(b.Ba,"metadata_type_allow_pause_ad_break_request_slot_reschedule")?ZJ(a.Rb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId):(a.Da.get().J.U().L("h5_check_forecasting_renderer_for_throttled_midroll")?(d=c.Pu.filter(function(f){var h;
return null!=(null==(h=f.renderer)?void 0:h.clientForecastingAdRenderer)}),0!==d.length?OEa(a.j,d,e,b.slotId,c.ssdaiAdsConfig):ZJ(a.Rb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)):ZJ(a.Rb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),PEa(a.B,b)):OEa(a.j,c.Pu,e,b.slotId,c.ssdaiAdsConfig)};
SEa=function(a,b,c,d,e,f){var h=a.Ua.get().Se(1);ZJ(a.Rb.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return REa(a.Ge.get(),c,d,e,h.clientPlaybackNonce,h.Cs,h.daiEnabled,h,f)},b)};
VEa=function(a,b,c,d,e,f,h){b=TEa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof eJ?b:UEa(a,d,e,b,c);return a instanceof eJ?a:[a]};
WEa=function(a,b,c,d,e){var f=$J(a.gb.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new SI({getAdBreakUrl:d.getAdBreakUrl,kR:0,jR:0}),new Tza(!0)];a=b.pauseDurationMs?b.lactThresholdMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new sM(a.j,f),slotFulfillmentTriggers:[new iEa(a.j)],slotExpirationTriggers:[new lM(a.j,e),new pM(a.j,f)],Ya:"core",Ba:new fJ(d),adSlotLoggingData:c}:new eJ("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new eJ("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
return a instanceof eJ?a:[a]};
XEa=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
NM=function(a,b,c){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new aM(cJ,b,a.id):new eJ("Not able to create BeforeContentVideoIdStartedTrigger");else{if(a.layoutIdExitedTrigger){var d;b=null!=(d=a.layoutIdExitedTrigger)&&d.triggeringLayoutId?new gM(cJ,a.layoutIdExitedTrigger.triggeringLayoutId,a.id):new eJ("Not able to create LayoutIdExitedTrigger")}else{if(a.layoutExitedForReasonTrigger){var e,f;(null==(e=a.layoutExitedForReasonTrigger)?0:e.triggeringLayoutId)&&
(null==(f=a.layoutExitedForReasonTrigger)?0:f.layoutExitReason)?(b=jEa(a.layoutExitedForReasonTrigger.layoutExitReason),a=b instanceof eJ?b:new fM(cJ,a.layoutExitedForReasonTrigger.triggeringLayoutId,[b],a.id)):a=new eJ("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger){var h;b=null!=(h=a.onLayoutSelfExitRequestedTrigger)&&h.triggeringLayoutId?new kM(cJ,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new eJ("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a=
a.onNewPlaybackAfterContentVideoIdTrigger?new lM(cJ,b,a.id):new eJ("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(a.skipRequestedTrigger){var l;b=null!=(l=a.skipRequestedTrigger)&&l.triggeringLayoutId?new nM(cJ,a.skipRequestedTrigger.triggeringLayoutId,a.id):new eJ("Not able to create SkipRequestedTrigger")}else if(a.slotIdEnteredTrigger){var m;b=null!=(m=a.slotIdEnteredTrigger)&&m.triggeringSlotId?new oM(cJ,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new eJ("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var n;
b=null!=(n=a.slotIdExitedTrigger)&&n.triggeringSlotId?new pM(cJ,a.slotIdExitedTrigger.triggeringSlotId,a.id):new eJ("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var p;b=null!=(p=a.surveySubmittedTrigger)&&p.triggeringLayoutId?new uM(cJ,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new eJ("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new mEa(a.id):new eJ("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var q;
b=null!=(q=a.closeRequestedTrigger)&&q.triggeringLayoutId?new bM(cJ,a.closeRequestedTrigger.triggeringLayoutId,a.id):new eJ("Not able to create CloseRequestedTrigger")}else if(a.slotIdScheduledTrigger){var r;b=null!=(r=a.slotIdScheduledTrigger)&&r.triggeringSlotId?new sM(cJ,a.slotIdScheduledTrigger.triggeringSlotId,a.id):new eJ("Not able to create SlotIdScheduledTrigger")}else{if(a.mediaTimeRangeTrigger){var t;d=Number(null==(t=a.mediaTimeRangeTrigger)?void 0:t.offsetStartMilliseconds);var v;h=Number(null==
(v=a.mediaTimeRangeTrigger)?void 0:v.offsetEndMilliseconds);isFinite(d)&&isFinite(h)?(v=h,-1===v&&(v=c),c=d>v?new eJ("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:v},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",v===c&&d-500<=v):new wv(d,v),a=c instanceof eJ?c:new iM(cJ,b,c,!1,a.id)):a=new eJ("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new cM(cJ,b,!1,a.id):new eJ("Not able to create ContentVideoIdEndedTrigger");
else{if(a.layoutIdEnteredTrigger){var x;b=null!=(x=a.layoutIdEnteredTrigger)&&x.triggeringLayoutId?new eM(cJ,a.layoutIdEnteredTrigger.triggeringLayoutId,a.id):new eJ("Not able to create LayoutIdEnteredTrigger")}else b=new eJ("Not able to convert an AdsControlflowTrigger.");a=b}b=a}a=b}b=a}a=b}b=a}a=b}b=a}a=b}return a};
ZEa=function(a,b,c,d,e,f,h,l){return null===b?new eJ("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[YEa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new fJ([new kI(d),new oI(e)]);n=NJ(c.gb.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ya:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Fb:new Map,
layoutExitNormalTriggers:[new lM(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:q,lc:m(r),adLayoutLoggingData:p}})]};
$Ea=function(a,b,c,d,e,f,h,l){return null===b?new eJ("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:b,TopBannerImageTextIconButtonedLayoutViewModel:d}):[YEa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new fJ([new lI(d),new oI(e)]);n=NJ(c.gb.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ya:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
Fb:new Map,layoutExitNormalTriggers:[new lM(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:q,lc:m(r),adLayoutLoggingData:p}})]};
dFa=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,OM(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return aFa(p)});
b=[];f=g.u(a);for(var h=f.next(),l={};!h.done;l={bv:void 0},h=f.next()){l.bv=h.value;h=g.u(l.bv.AM);for(var m=h.next(),n={};!m.done;n={Zm:void 0},m=h.next())n.Zm=m.value,m=function(p,q){return function(r){return p.Zm.sN(r,q.bv.instreamVideoAdRenderer.elementId,p.Zm.zM)}}(n,l),n.Zm.isContentVideoCompanion?b.push(bFa(c,d,e,l.bv.instreamVideoAdRenderer.elementId,n.Zm.associatedCompositePlayerBytesLayoutId,n.Zm.adSlotLoggingData,m)):1<a.length?b.push(cFa(c,d,e,l.bv.instreamVideoAdRenderer.elementId,n.Zm.adSlotLoggingData,
function(p,q){return function(r){return p.Zm.sN(r,q.bv.instreamVideoAdRenderer.elementId,p.Zm.zM,p.Zm.associatedCompositePlayerBytesLayoutId)}}(n,l))):b.push(cFa(c,d,e,l.bv.instreamVideoAdRenderer.elementId,n.Zm.adSlotLoggingData,m))}return b};
OM=function(a,b,c){if(b=eFa(b)){b=g.u(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=fFa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.bE=c)}else HG("InstreamVideoAdRenderer without externalVideoId")}};
eFa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.U(a.sandwichedLinearAdRenderer.linearAd,yM);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.U(c,yM)&&b.push(g.U(c,yM));return b}return null};
aFa=function(a){if(void 0===a.instreamVideoAdRenderer)return HG("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.u(a.AM),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.sN)return!1;if(void 0===c.zM)return HG("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.bE||void 0===c.TG||a.bE!==c.TG&&"AD_PLACEMENT_KIND_SELF_START"!==c.TG)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return HG("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.bE,"matching APSR kind":c.TG}),!1}return!0};
fFa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,bE:void 0,adVideoId:b,AM:[]});return a.get(b)};
PM=function(a,b,c,d,e,f,h,l,m){e?fFa(a,e).AM.push({Flb:b,TG:c,isContentVideoCompanion:d,zM:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,sN:m}):HG("Companion AdPlacementSupportedRenderer without adVideoId")};
gFa=function(a){var b,c=null==(b=gJ(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=gJ(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=gJ(a.Ba,"metadata_type_content_cpn"),f=gJ(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=gJ(a.Ba,"metadata_type_player_underlay_renderer"),l=gJ(a.Ba,"metadata_type_ad_placement_config"),m=gJ(a.Ba,"metadata_type_video_length_seconds");var n=aJ(a.Ba,"metadata_type_layout_enter_ms")&&aJ(a.Ba,
"metadata_type_layout_exit_ms")?(gJ(a.Ba,"metadata_type_layout_exit_ms")-gJ(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{cq:d,contentCpn:e,YQ:c,BM:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,jJ:n,inPlayerLayoutId:gJ(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:gJ(a.Ba,"metadata_type_linked_in_player_slot_id")}};
jFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){d=$J(d,"SLOT_TYPE_PLAYER_BYTES");a=hFa(e,a,h,c,d,m,n);if(a instanceof eJ)return a;var x;n=null==(x=gJ(a.Ba,"metadata_type_fulfilled_layout"))?void 0:x.layoutId;if(!n)return new eJ("Invalid adNotify layout");b=iFa(n,e,f,c,l,b,m,p,q,r,t,v,h);return b instanceof eJ?b:[a].concat(g.pa(b))};
iFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=kFa(b,c,d,f,h,l,m,n,p,q,r);if(c instanceof eJ)return c;a=lFa(b,a,h,e,c);return a instanceof eJ?a:[].concat(g.pa(a.yg),[a.Yw])};
nFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=kFa(a,b,c,e,f,l,m,n,p,q,r,t);if(b instanceof eJ)return b;a=mFa(a,c,f,h,d,l.yc,b);return a instanceof eJ?a:a.yg.concat(a.Yw)};
kFa=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=QM(d,c,n);return r instanceof dJ?new eJ(r):n.J.U().experiments.kb("html5_refactor_in_player_slot_generation")?function(t){var v=new $L(0,[r.Yo]);t=oFa(b,r.layoutId,r.Fo,c,RM(r.playerVars,r.cB,f,m,v),r.Yo,e,v,h(t),l.get(r.Fo.externalVideoId),q);v=[];if(r.Fo.playerOverlay.instreamAdPlayerOverlayRenderer){var x=gFa(t);if(!x)return HG("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,yg:[]};
v=[pFa(a,x.contentCpn,x.cq,function(E){return SM(b,E.slotId,"core",x,kJ(p,E))},x.inPlayerSlotId)].concat(g.pa(v));
if(x.instreamAdPlayerUnderlayRenderer&&qFa(n)){var A=x.instreamAdPlayerUnderlayRenderer;v=[rFa(a,x.contentCpn,x.cq,function(E){return sFa(b,E.slotId,A,x.adPlacementConfig,x.cq,kJ(p,E))})].concat(g.pa(v))}}return{layout:t,
yg:v}}:function(t){var v=new $L(0,[r.Yo]);
return{layout:oFa(b,r.layoutId,r.Fo,c,RM(r.playerVars,r.cB,f,m,v),r.Yo,e,v,h(t),l.get(r.Fo.externalVideoId),q),yg:[]}}};
QM=function(a,b,c){if(!a.playerVars)return new dJ("No playerVars available in InstreamVideoAdRenderer.");var d,e;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null==(d=a.playerOverlay)?void 0:d.instreamAdPlayerOverlayRenderer)&&null==(null==(e=a.playerOverlay)?void 0:e.playerOverlayLayoutRenderer)||null==a.pings||null==a.externalVideoId)return new dJ("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});d=BB(a.playerVars);e=Number(d.length_seconds);
isNaN(e)&&(e=0,HG("Expected valid length seconds in player vars but got NaN"));if(c.rf("AD_PLACEMENT_KIND_START"===b.kind)){if(void 0===a.layoutId)return new dJ("Expected server generated layout ID in instreamVideoAdRenderer");b=a.layoutId}else b=a.elementId;return{layoutId:b,Fo:a,playerVars:d,cB:a.playerVars,Yo:e}};
RM=function(a,b,c,d,e){a.iv_load_policy=d;b=BB(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){HG(f)}c.Fk&&(a.ctrl=c.Fk);c.rl&&(a.ytr=c.rl);c.hv&&(a.ytrcc=c.hv);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Km&&(a.vss_credentials_token_type=c.Km),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.B&&(a.slot_pos=e.j);a.autoplay="1";return a};
tFa=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};
wFa=function(a,b,c,d,e,f,h,l,m,n,p){for(var q=[],r=g.u(a),t=r.next();!t.done;t=r.next()){t=t.value;var v;if(v=!EEa(t)){var x=void 0;v="SLOT_TYPE_IN_PLAYER"!==(null==t?void 0:null==(x=t.adSlotMetadata)?void 0:x.slotType)}if(v){x="SLOT_TRIGGER_EVENT_BEFORE_CONTENT"===t.adSlotMetadata.triggerEvent;var A=m.rf(x),E=uFa(t,n,d,c.Cs,A);if(E instanceof eJ)return E;var F=[];c.yc&&F.push(new YI({}));var G=void 0;v={slotId:t.adSlotMetadata.slotId,slotType:t.adSlotMetadata.slotType,slotPhysicalPosition:null!=
(G=t.adSlotMetadata.slotPhysicalPosition)?G:1,Ya:"core",slotEntryTrigger:E.slotEntryTrigger,slotFulfillmentTriggers:E.slotFulfillmentTriggers,slotExpirationTriggers:E.slotExpirationTriggers};if(E=g.U(t.fulfillmentContent.fulfilledLayout,zEa)){if(!CM(E))return new eJ("Invalid PlayerBytesAdLayoutRenderer");A=vFa(v,t.adSlotMetadata.triggerEvent,E,b,c,d,e,f,h,l,m,n,a,p,A);if(A instanceof eJ)return A;F.push(new $I(x));t=Object.assign({},v,{Ba:new fJ(F),fulfilledLayout:A.layout,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});
q.push.apply(q,g.pa(A.yg));q.push(t)}else if(x=g.U(t.fulfillmentContent.fulfilledLayout,EM),A=F=void 0,"LAYOUT_TYPE_PANEL_QR_CODE"!==(null==(F=x)?void 0:null==(A=F.adLayoutMetadata)?void 0:A.layoutType))if(x){if(!DEa(x))return new eJ("Invalid PlayerUnderlayAdLayoutRenderer");F=x;E=d;var M=c.Cs;G=f;A=v;x=t.adSlotMetadata.triggerEvent;if("LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE"===F.adLayoutMetadata.layoutType){var P=g.U(F.renderingContent,DM);if(P)if(P=g.U(P.sidePanel,CEa)){var R={layoutId:F.adLayoutMetadata.layoutId,
layoutType:F.adLayoutMetadata.layoutType,Ya:"core"};E=TM(F,E,M);x=E instanceof eJ?E:Object.assign({},R,{renderingContent:F.renderingContent,Fb:new Map([["impression",P.impressionPings||[]],["resume",P.resumePings||[]]])},E,{lc:kJ(G,A)(R),Ba:new fJ([new oI(UM(x))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})}else x=new eJ("DismissablePanelTextPortraitImageRenderer is missing");else x=new eJ("SqueezebackPlayerSidePanelRenderer is missing")}else"LAYOUT_TYPE_DISPLAY_TRACKING"===F.adLayoutMetadata.layoutType?
g.U(F.renderingContent,AEa)?(P={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,Ya:"core"},E=TM(F,E,M),x=E instanceof eJ?E:Object.assign({},P,{renderingContent:F.renderingContent,Fb:new Map},E,{lc:kJ(G,A)(P),Ba:new fJ([new oI(UM(x))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})):x=new eJ("CounterfactualRenderer is missing"):x=new eJ("LayoutType ["+F.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");if(x instanceof eJ)return x;t=Object.assign({},
v,{Ba:new fJ([]),fulfilledLayout:x,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else return new eJ("Unable to retrieve a client slot ["+v.slotType+"] from a given AdSlotRenderer")}}return q};
vFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){var x=TM(c,f,e.Cs);if(x instanceof eJ)return x;if(g.U(c.renderingContent,yM)){m=xFa([c],e,m);if(m instanceof eJ)return m;if(1!==m.length)return new eJ("Only expected one media layout.");a=yFa(a,b,c,x,m[0],void 0,"core",d,f,h,l,n,r,t,v,e.Cs,q);return a instanceof eJ?a:{layout:a.layout,yg:a.wf?[a.wf]:[]}}var A=g.U(c.renderingContent,xEa);if(A){if(!wM(c.adLayoutMetadata))return new eJ("Invalid ad layout metadata");if(!yEa(A))return new eJ("Invalid sequential layout");
A=A.sequentialLayouts.map(function(E){return E.playerBytesAdLayoutRenderer});
a=zFa(a,b,c.adLayoutMetadata,x,A,d,f,e,m,h,l,n,p,q,v,r,t);return a instanceof eJ?a:{layout:a.V5,yg:a.yg}}return new eJ("Not able to convert a sequential layout")};
zFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,A){var E=new sI({current:null}),F=xFa(e,l,m);if(F instanceof eJ)return F;m=[];for(var G=[],M=void 0,P=0;P<e.length;P++){var R=e[P];if(g.U(R.renderingContent,yM)){M=yFa(a,b,R,AFa,F[P],IL(r)&&JL(r)?F[P+1]:void 0,"adapter",f,h,n,p,q,x,A,v,l.Cs,t,E);if(M instanceof eJ)return M;m.push(M.layout);M.wf&&G.push(M.wf);M=F[P]}else if(g.U(R.renderingContent,zM)){var ba=a,na=p;if(CM(R)){var ta=g.U(R.renderingContent,zM);if(ta&&void 0!==ta.playerVars){var ka={layoutId:R.adLayoutMetadata.layoutId,
layoutType:R.adLayoutMetadata.layoutType,Ya:"adapter"};ta=BB(ta.playerVars);ta.autoplay="1";R=Object.assign({},ka,AFa,{renderingContent:R.renderingContent,Ba:new fJ([new PI({}),new oI({kind:"AD_PLACEMENT_KIND_START"}),new EI({current:null}),new II(ta)]),Fb:new Map,lc:kJ(na,ba)(ka),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData})}else R=new eJ("Invalid ad intro renderer")}else R=new eJ("Invalid PlayerBytesAdLayoutRenderer");if(R instanceof eJ)return R;m.push(R)}else if(g.U(R.renderingContent,
xK))if(A){R=BFa(a,R,p,UM(b),M);if(R instanceof eJ)return R;m.push(R);R=CFa(x,R,h,l.Cs,p,t,v,E);if(R instanceof eJ)return R;if(R)G.push(R);else return new eJ("Not able to retrieve InPlayer slot for endcap")}else{a:{ba=R.adLayoutMetadata.layoutId;na=g.u(f);for(ka=na.next();!ka.done;ka=na.next()){ka=ka.value;var va=ta=void 0,ea=(null==(ta=ka.renderer)?void 0:null==(va=ta.linearAdSequenceRenderer)?void 0:va.linearAds)||[];ta=g.u(ea);for(va=ta.next();!va.done;va=ta.next())if((va=g.U(va.value,xK))&&void 0!==
va.inPlayerSlotId&&void 0!==va.inPlayerLayoutId&&void 0!==va.associatedPlayerBytesLayoutId&&va.associatedPlayerBytesLayoutId===ba){ba={GH:va,adPlacementConfig:ka.config.adPlacementConfig};break a}}ba=new eJ("Not able to find associated InPlayer slot for endcap")}if(ba instanceof eJ)return ba;R=BFa(a,R,p,ba.adPlacementConfig,M);if(R instanceof eJ)return R;m.push(R);R=DFa(R.layoutId,t,h,ba,E,p);if(R instanceof eJ)return R;G.push(R)}}b={layoutId:c.layoutId,layoutType:c.layoutType,Ya:"core"};return{V5:Object.assign({},
b,d,{AB:m,Fb:new Map,Ba:new fJ([E]),lc:kJ(p,a)(b)}),yg:G}};
yFa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,A,E){if(!CM(c))return new eJ("Invalid PlayerBytesAdLayoutRenderer");var F=g.U(c.renderingContent,yM);(null==F?0:F.pings)?F=hK(F.pings):(F=g.U(c.renderingContent,xK),F=(null==F?0:F.skipPings)?new Map([["skip",F.skipPings]]):new Map);if(F instanceof eJ)return F;h={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,Ya:h};a:{var G=c.adLayoutMetadata.layoutId,M=g.U(c.renderingContent,yM);if(M&&xM(M)){var P=[];if(t)P.push(new oI(UM(b)));
else{b:{l=g.u(l);for(b=l.next();!b.done;b=l.next()){b=b.value;var R=eFa(b.renderer)||[],ba=g.u(R);for(R=ba.next();!R.done;R=ba.next())if(R=R.value,R.associatedPlayerBytesLayoutId===G){R.associatedPlayerBytesLayoutId?(l=R.playerOverlay,ba=void 0!==l&&void 0!==l.playerOverlayLayoutRenderer&&void 0!==l.playerOverlayLayoutRenderer.inPlayerSlotId&&void 0!==l.playerOverlayLayoutRenderer.inPlayerLayoutId,l=void 0!==l&&void 0!==l.instreamAdPlayerOverlayRenderer&&void 0!==l.instreamAdPlayerOverlayRenderer.inPlayerSlotId&&
void 0!==l.instreamAdPlayerOverlayRenderer.inPlayerLayoutId||ba):l=!1;b=l?{instreamVideoAdRenderer:R,adPlacementConfig:b.config.adPlacementConfig}:new eJ("Invalid InPlayer shim");break b}}b=new eJ("Not able to find associated InPlayer slot")}if(b instanceof eJ){f=b;break a}l=b.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;R=b.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var na;ba=null!=(na=null==l?void 0:l.inPlayerSlotId)?na:null==R?void 0:R.inPlayerSlotId;
var ta;na=null!=(ta=null==l?void 0:l.inPlayerLayoutId)?ta:null==R?void 0:R.inPlayerLayoutId;if(void 0===ba){f=new eJ("InPlayer shim slot id is undefined");break a}if(void 0===na){f=new eJ("InPlayer shim layout id is undefined");break a}P.push(new BI(na),new DI(ba),new NI(e.Qu.j),new oI(b.adPlacementConfig));l&&P.push(new vI(l));R&&P.push(new wI(R))}P.push(new pI(e.Qu),new tI(M.externalVideoId),new uI(m),new XI({impressionCommands:M.impressionCommands,abandonCommands:M.onAbandonCommands,completeCommands:M.completeCommands,
progressCommands:M.adVideoProgressCommands}),new II(e.LC),new EI({current:null}),new HI(e.uba.Yo),new ZI(gK(M.pings)),new qI(e.Qu.j));(e=EFa(G,r))&&P.push(new yI(e));f&&P.push(new JI(f.LC));M.adNextParams&&P.push(new mI(M.adNextParams));M.clickthroughEndpoint&&P.push(new nI(M.clickthroughEndpoint));M.legacyInfoCardVastExtension&&P.push(new WI(M.legacyInfoCardVastExtension));M.sodarExtensionData&&P.push(new KI(M.sodarExtensionData));E&&M.adPodSkipTarget&&0<M.adPodSkipTarget&&(P.push(E),P.push(new rI(M.adPodSkipTarget)));
(f=n.get(M.externalVideoId))&&P.push(new TI(f));f=P}else f=new eJ("Invalid vod media renderer")}if(f instanceof eJ)return f;a=Object.assign({},h,d,{Fb:F,renderingContent:c.renderingContent,Ba:new fJ(f),lc:kJ(p,a)(h),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});c=g.U(c.renderingContent,yM);if(!c||!xM(c))return new eJ("Invalid meida renderer");q=fFa(q,c.externalVideoId);q.instreamVideoAdRenderer=c;q.bE="AD_PLACEMENT_KIND_START";return t?(m=CFa(r,a,m,x,p,A,v,E),m instanceof eJ?m:EFa(a.layoutId,
r)&&m?{layout:Object.assign({},a,{Ba:new fJ(f.concat(new Gza(m)))})}:{layout:a,wf:m}):{layout:a}};
BFa=function(a,b,c,d,e){if(!CM(b))return new eJ("Invalid PlayerBytesAdLayoutRenderer");var f=g.U(b.renderingContent,xK);if(!f||void 0===f.durationMilliseconds)return new eJ("Invalid endcap renderer");var h={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,Ya:"adapter"};d=[new VI(f.durationMilliseconds),new XI({impressionCommands:void 0,abandonCommands:f.abandonCommands?[{commandExecutorCommand:f.abandonCommands}]:void 0,completeCommands:f.completionCommands}),new oI(d),
new CI("LAYOUT_TYPE_ENDCAP")];if(e){d.push(new qI(e.Qu.j-1));d.push(new NI(e.Qu.j));var l;d.push(new rI(null!=(l=e.adPodSkipTarget)?l:-1))}return Object.assign({},h,AFa,{renderingContent:b.renderingContent,Ba:new fJ(d),Fb:f.skipPings?new Map([["skip",f.skipPings]]):new Map,lc:kJ(c,a)(h),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData})};
CFa=function(a,b,c,d,e,f,h,l){a=a.filter(function(n){return"SLOT_TYPE_IN_PLAYER"===n.adSlotMetadata.slotType&&n.adSlotMetadata.triggeringSourceLayoutId===b.layoutId});
if(0!==a.length){if(1!==a.length)return new eJ("Invalid InPlayer slot association for the given PlayerBytes layout");a=a[0];h=uFa(a,f,c,d,h);if(h instanceof eJ)return h;var m;f={slotId:a.adSlotMetadata.slotId,slotType:a.adSlotMetadata.slotType,slotPhysicalPosition:null!=(m=a.adSlotMetadata.slotPhysicalPosition)?m:1,Ya:"core",slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers};m=g.U(a.fulfillmentContent.fulfilledLayout,
FEa);if(!m||!wEa(m))return new eJ("Invalid InPlayerAdLayoutRenderer");h={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,Ya:"core"};c=TM(m,c,d);if(c instanceof eJ)return c;d=[];if("LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===m.adLayoutMetadata.layoutType)d.push.apply(d,g.pa(FFa(a.adSlotMetadata.triggerEvent,b)));else if("LAYOUT_TYPE_ENDCAP"===m.adLayoutMetadata.layoutType)d.push(new oI(UM(a.adSlotMetadata.triggerEvent))),l&&d.push(l);else return new eJ("Not able to parse an SDF InPlayer layout");
e=Object.assign({},h,c,{renderingContent:m.renderingContent,Fb:new Map,lc:kJ(e,f)(h),Ba:new fJ(d),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},f,{fulfilledLayout:e,Ba:new fJ([])})}};
FFa=function(a,b){var c=[];c.push(new oI(UM(a)));c.push(new AI(b.layoutId));(a=gJ(b.Ba,"metadata_type_player_bytes_callback_ref"))&&c.push(new EI(a));(a=gJ(b.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))&&c.push(new sI(a));(a=gJ(b.Ba,"metadata_type_remote_slots_data"))&&c.push(new TI(a));(a=gJ(b.Ba,"metadata_type_ad_next_params"))&&c.push(new mI(a));(a=gJ(b.Ba,"metadata_type_ad_video_clickthrough_endpoint"))&&c.push(new nI(a));(a=gJ(b.Ba,"metadata_type_ad_pod_info"))&&c.push(new pI(a));(b=
gJ(b.Ba,"metadata_type_ad_video_id"))&&c.push(new tI(b));return c};
DFa=function(a,b,c,d,e,f){function h(n){return VM(b,n)}
var l=d.GH.inPlayerSlotId,m={layoutId:d.GH.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Ya:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:new eM(h,a),slotFulfillmentTriggers:[new oM(h,l)],slotExpirationTriggers:[new pM(h,l),new lM(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new gM(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Fb:new Map,Ba:new fJ([new zI(d.GH),new oI(d.adPlacementConfig),
e]),lc:kJ(f,c)(m),adLayoutLoggingData:d.GH.adLayoutLoggingData});return Object.assign({},c,{Ba:new fJ([new RI(a)])})};
EFa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,"SLOT_TYPE_PLAYER_UNDERLAY"===c.adSlotMetadata.slotType){var d=g.U(c.fulfillmentContent.fulfilledLayout,EM);if(d&&(d=g.U(d.renderingContent,DM))&&d.associatedPlayerBytesLayoutId===a)return c}};
uFa=function(a,b,c,d,e){var f=GFa(NM(a.slotEntryTrigger,c,d),e,a,b);if(f instanceof eJ)return f;for(var h=[],l=g.u(a.slotFulfillmentTriggers),m=l.next();!m.done;m=l.next()){m=NM(m.value,c,d);if(m instanceof eJ)return m;h.push(m)}h=HFa(h,e,a,b);b=[];a=g.u(a.slotExpirationTriggers);for(e=a.next();!e.done;e=a.next()){e=NM(e.value,c,d);if(e instanceof eJ)return e;b.push(e)}return{slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b}};
GFa=function(a,b,c,d){return b&&"SLOT_TYPE_PLAYER_BYTES"===c.adSlotMetadata.slotType&&a instanceof aM?new ZL(function(e){return VM(d,e)},c.adSlotMetadata.slotId):a};
HFa=function(a,b,c,d){return b&&"SLOT_TYPE_PLAYER_BYTES"===c.adSlotMetadata.slotType?a.map(function(e){return e instanceof oM?new sM(function(f){return VM(d,f)},c.adSlotMetadata.slotId):e}):a};
TM=function(a,b,c){for(var d=[],e=g.u(a.layoutExitNormalTriggers||[]),f=e.next();!f.done;f=e.next()){f=NM(f.value,b,c);if(f instanceof eJ)return f;d.push(f)}e=[];f=g.u(a.layoutExitSkipTriggers||[]);for(var h=f.next();!h.done;h=f.next()){h=NM(h.value,b,c);if(h instanceof eJ)return h;e.push(h)}f=[];h=g.u(a.layoutExitMuteTriggers||[]);for(var l=h.next();!l.done;l=h.next()){l=NM(l.value,b,c);if(l instanceof eJ)return l;f.push(l)}h=[];a=g.u(a.layoutExitUserInputSubmittedTriggers||[]);for(l=a.next();!l.done;l=
a.next()){l=NM(l.value,b,c);if(l instanceof eJ)return l;h.push(l)}return{layoutExitNormalTriggers:d,layoutExitSkipTriggers:e,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:h,Zc:[]}};
xFa=function(a,b,c){for(var d=[],e=g.u(a),f=e.next();!f.done;f=e.next())if(f=g.U(f.value.renderingContent,yM)){if(!xM(f))return new eJ("Invalid vod media renderer");d.push(IFa(f))}e=d.map(function(q){return q.Yo});
f=[];for(var h=0,l=0;l<a.length;l++){var m=g.U(a[l].renderingContent,yM);if(m){var n=new $L(h,e),p=RM(d[h].playerVars,d[h].cB,b,c,n);f[l]={Qu:n,adPodSkipTarget:m.adPodSkipTarget,uba:d[h],LC:p};h++}}return f};
IFa=function(a){var b=BB(a.playerVars),c=Number(b.length_seconds);isNaN(c)&&(c=0,HG("Expected valid length seconds in player vars but got NaN"));return{playerVars:b,cB:a.playerVars,Yo:c}};
UM=function(a){switch(a){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}};
JFa=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.U(c,FM)||g.U(c,GM)){var d=void 0;b+=(null==(d=c.surveyAdQuestionCommon)?void 0:d.durationMilliseconds)||0}return b};
KFa=function(a){var b,c,d,e,f=(null==(c=g.U(null==(b=a.questions)?void 0:b[0],FM))?void 0:c.surveyAdQuestionCommon)||(null==(e=g.U(null==(d=a.questions)?void 0:d[0],GM))?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.pa((null==(h=a.playbackCommands)?void 0:h.instreamAdCompleteCommands)||[]),g.pa((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,r,t,v,x,A,E,F,G,M,P,R,ba,na,ta,ka;return{impressionCommands:null==(l=a.playbackCommands)?void 0:l.impressionCommands,errorCommands:null==(m=a.playbackCommands)?
void 0:m.errorCommands,muteCommands:null==(n=a.playbackCommands)?void 0:n.muteCommands,unmuteCommands:null==(p=a.playbackCommands)?void 0:p.unmuteCommands,pauseCommands:null==(q=a.playbackCommands)?void 0:q.pauseCommands,rewindCommands:null==(r=a.playbackCommands)?void 0:r.rewindCommands,resumeCommands:null==(t=a.playbackCommands)?void 0:t.resumeCommands,skipCommands:null==(v=a.playbackCommands)?void 0:v.skipCommands,progressCommands:null==(x=a.playbackCommands)?void 0:x.progressCommands,Ulb:null==
(A=a.playbackCommands)?void 0:A.clickthroughCommands,fullscreenCommands:null==(E=a.playbackCommands)?void 0:E.fullscreenCommands,activeViewViewableCommands:null==(F=a.playbackCommands)?void 0:F.activeViewViewableCommands,activeViewMeasurableCommands:null==(G=a.playbackCommands)?void 0:G.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(M=a.playbackCommands)?void 0:M.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:null==(P=a.playbackCommands)?
void 0:null==(R=P.activeViewTracking)?void 0:R.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(ba=a.playbackCommands)?void 0:null==(na=ba.activeViewTracking)?void 0:na.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(ta=a.playbackCommands)?void 0:ta.endFullscreenCommands,abandonCommands:null==(ka=a.playbackCommands)?void 0:ka.abandonCommands,completeCommands:b}};
NFa=function(a,b,c,d,e,f,h){return function(l,m){return LFa(a,m.slotId,l,f,function(n,p){var q=m.layoutId;n=h(n);return MFa(b,q,p,e,n,"LAYOUT_TYPE_SURVEY",[new Kza(c),d],c.adLayoutLoggingData)})}};
QFa=function(a,b,c,d,e,f,h){if(!OFa(a))return new eJ("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[PFa(f,b,c,d,function(m){var n=m.slotId;m=h(m);n=NJ(e.gb.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Ya:"core"},q=new gM(e.j,d);return{layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Fb:new Map,layoutExitNormalTriggers:[q],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new fJ([new Lza(l)]),lc:m(p)}})]};
OFa=function(a){a=g.U(null==a?void 0:a.additionalPlayerOverlay,RFa);if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
TFa=function(a,b,c,d,e){var f;if(null==(f=a.playerOverlay)||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!JEa(a))return function(){return new eJ("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=JFa(h);return 0>=l?function(){return new eJ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=SFa(m,c,d,function(q){var r=q.slotId;
q=n(q);var t=KFa(h);r=NJ(e.gb.get(),"LAYOUT_TYPE_SURVEY",r);var v={layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Ya:"core"},x=new gM(e.j,d),A=new nM(e.j,r),E=new uM(e.j,r),F=new pEa(e.j);return{layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Fb:new Map,layoutExitNormalTriggers:[x,F],layoutExitSkipTriggers:[A],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[E],Zc:[],Ya:"core",Ba:new fJ([new Jza(h),new oI(b),new UI(l/1E3),new XI(t)]),lc:q(v),adLayoutLoggingData:h.adLayoutLoggingData}});
m=QFa(a,c,p.slotId,d,e,m,n);return m instanceof eJ?m:[p].concat(g.pa(m))}};
aGa=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;var l=[];try{var m=[];if(c.renderer.linearAdSequenceRenderer)var n=function(x){x=UFa(x.slotId,c,b,e(x),d,f,h);m=x.Tca;return x.k6};
else if(c.renderer.instreamVideoAdRenderer)n=function(x){var A=x.slotId;x=e(x);var E=h,F=c.config.adPlacementConfig,G=VFa(F),M=G.vW,P=G.zW;G=c.renderer.instreamVideoAdRenderer;var R;if(null==G?0:null==(R=G.playerOverlay)?0:R.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var ba=WFa(G,E);R=Math.min(M+1E3*ba.videoLengthSeconds,P);E=new $L(0,[ba.videoLengthSeconds]);P=ba.videoLengthSeconds;var na=ba.playerVars,ta=ba.instreamAdPlayerOverlayRenderer,ka=
ba.adVideoId,va=XFa(c),ea=ba.Fb;ba=ba.nV;var Y=null==G?void 0:G.adLayoutLoggingData;G=null==G?void 0:G.sodarExtensionData;A=NJ(b.gb.get(),"LAYOUT_TYPE_MEDIA",A);var Ma={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"core"};return{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Fb:ea,layoutExitNormalTriggers:[new kEa(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new fJ([new uI(d),new HI(P),new II(na),new LI(M),new MI(R),ta&&new vI(ta),
new oI(F),new tI(ka),new pI(E),new QI(va),G&&new KI(G),new EI({current:null}),new OI({}),new ZI(ba)].filter(YFa)),lc:x(Ma),adLayoutLoggingData:Y}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=ZFa(a,d,c.adSlotLoggingData,n);l.push(p);for(var q=g.u(m),r=q.next();!r.done;r=q.next()){var t=r.value,v=t(a,e);if(v instanceof eJ)return v;l.push.apply(l,g.pa(v))}}catch(x){return new eJ(x,{errorMessage:x.message,AdPlacementRenderer:c,numberOfSurveyRenderers:$Fa(c)})}return l};
$Fa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=g.U(b,yM))?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0};
UFa=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=VFa(l),n=m.vW,p=m.zW;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==m||!m.length)throw new TypeError("Expected linear ads");var q=[],r={s0:n,mu:0,Qca:q};m=m.map(function(v){return bGa(a,v,r,c,d,l,e,p,h)}).map(function(v,x){x=new $L(x,q);
return v(x)});
var t=m.map(function(v){return v.l6});
return{k6:cGa(c,a,n,t,l,XFa(b),d,p,f),Tca:m.map(function(v){return v.Sca})}};
bGa=function(a,b,c,d,e,f,h,l,m){var n=WFa(g.U(b,yM),m),p=c.s0,q=c.mu,r=Math.min(p+1E3*n.videoLengthSeconds,l);c.s0=r;c.mu++;c.Qca.push(n.videoLengthSeconds);var t,v,x=null==(t=g.U(b,yM))?void 0:null==(v=t.playerOverlay)?void 0:v.instreamSurveyAdRenderer;if("nPpU29QrbiU"===n.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(A){var E=n.playerVars;2<=A.B&&(E.slot_pos=A.j);E.autoplay="1";var F,G;E=n.videoLengthSeconds;var M=n.playerVars,P=n.Fb,R=n.nV,ba=
n.instreamAdPlayerOverlayRenderer,na=n.adVideoId,ta=null==(F=g.U(b,yM))?void 0:F.adLayoutLoggingData;F=null==(G=g.U(b,yM))?void 0:G.sodarExtensionData;G=NJ(d.gb.get(),"LAYOUT_TYPE_MEDIA",a);var ka={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"adapter"};A={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",Fb:P,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"adapter",Ba:new fJ([new uI(h),new HI(E),new II(M),new LI(p),new MI(r),
new NI(q),new EI({current:null}),ba&&new vI(ba),new oI(f),new tI(na),new pI(A),F&&new KI(F),x&&new Rza(x),new OI({}),new ZI(R)].filter(YFa)),lc:e(ka),adLayoutLoggingData:ta};E=TFa(g.U(b,yM),f,h,A.layoutId,d);return{l6:A,Sca:E}}};
WFa=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=BB(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=dGa[f])?h:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,adVideoId:f,Fb:a.pings?hK(a.pings):new Map,nV:gK(a.pings)}};
XFa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
VFa=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{vW:b,zW:a}};
fGa=function(a,b,c,d,e,f,h,l,m){var n=c.pings;return n?[eGa(a,f,l,e,function(p){var q=p.slotId;p=m(p);var r=c.adLayoutLoggingData;q=NJ(b.gb.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",q);var t={layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Ya:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Fb:hK(n),layoutExitNormalTriggers:[new lM(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new fJ([new oI(d),
new ZI(gK(n)),new HI(h/1E3)]),lc:p(t),adLayoutLoggingData:r}})]:new eJ("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})};
hGa=function(a,b,c,d,e,f,h,l){a=gGa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=NJ(b.gb.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Ya:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Fb:q,layoutExitNormalTriggers:[new kM(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new fJ([new Oza(e),new oI(c)]),lc:m(p)}});
return a instanceof eJ?a:[a]};
jGa=function(a,b,c,d,e,f,h){return[iGa(a,f,d,function(l){var m=l.slotId;l=h(l);m=NJ(b.gb.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",m);var n={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ya:"core"};return{layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Fb:new Map,layoutExitNormalTriggers:[new lM(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new fJ([new vI(e),new oI(c)]),lc:l(n),adLayoutLoggingData:e.adLayoutLoggingData}})]};
nGa=function(a,b,c,d,e,f,h,l){a=kGa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=NJ(b.gb.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=lGa(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,mGa(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=NJ(b.gb.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=lGa(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,mGa(b,n,p))):q.imageOverlayAdContentRenderer?(q=NJ(b.gb.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=mGa(b,n,p),n.push(new sEa(b.j,q)),n=lGa(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new dJ("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new dJ("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof eJ?a:[a]};
qGa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new eJ("Expected valid duration for AdActionInterstitialRenderer."):function(p){return oGa(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 pGa(a,q,e,function(r,t){var v=r.slotId;r=h(r);v=NJ(b.gb.get(),"LAYOUT_TYPE_ENDCAP",
v);return MFa(b,v,t,c,r,"LAYOUT_TYPE_ENDCAP",[new zI(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
rGa=function(a,b,c,d){if(!c.playerVars)return new eJ("No playerVars available in AdIntroRenderer.");var e=BB(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=NJ(a.gb.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"adapter"};return{Cg:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Fb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"adapter",Ba:new fJ([new PI({}),
new oI(b),new EI({current:null}),new II(e)]),lc:f(l)},Wl:[new fM(a.j,h,["error"])],Uj:[],cz:[],bz:[]}}};
tGa=function(a,b,c,d,e,f,h,l,m,n){n=void 0===n?!1:n;var p=JFa(e);if(!IEa(e,n))return new eJ("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=p)return new eJ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=NFa(a,b,e,f,c,d,h);return q instanceof eJ?q:function(r){return sGa(b,r.slotId,c,p,e,KFa(e),h(r),q,l,m)}};
vGa=function(a,b,c,d,e,f,h,l){function m(q){return pGa(a,q,d,n)}
function n(q,r){var t=q.slotId;q=h(q);t=NJ(b.gb.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return MFa(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new Iza(e),f],e.adLayoutLoggingData)}
if(!NEa(e))return new eJ("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var r=q.slotId,t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands};q=h(q);r=uGa(b,r,c,p,t,new Map,q,m,void 0,WM(b,c,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));t=new BI(r.TJ);q=new qI(l);return{Cg:{layoutId:r.layoutId,layoutType:r.layoutType,Fb:r.Fb,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:r.Ya,Ba:new fJ([].concat(g.pa(r.Xy),[t,q])),lc:r.lc,adLayoutLoggingData:r.adLayoutLoggingData},Wl:[],Uj:r.layoutExitMuteTriggers,cz:r.layoutExitUserInputSubmittedTriggers,bz:r.Zc,wf:r.wf}}};
xGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x){a=$J(a,"SLOT_TYPE_PLAYER_BYTES");d=hFa(b,h,d,e,a,n,p);if(d instanceof eJ)return d;var A;h=null==(A=gJ(d.Ba,"metadata_type_fulfilled_layout"))?void 0:A.layoutId;if(!h)return new eJ("Invalid adNotify layout");b=wGa(h,b,c,e,f,m,l,n,q,r,t,v,x);return b instanceof eJ?b:[d].concat(g.pa(b))};
wGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=yGa(b,c,d,f,h,l,m,n,p,q,r);zGa(f)?(d=AGa(b,a),a=$J(b.gb.get(),"SLOT_TYPE_IN_PLAYER"),f=NJ(b.gb.get(),"LAYOUT_TYPE_SURVEY",a),l=BGa(b,d,l),b=[].concat(g.pa(l.slotExpirationTriggers),[new bM(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,Ya:l.Ya},{slotId:a,layoutId:f}),e=a instanceof eJ?a:{Yw:Object.assign({},
l,{slotExpirationTriggers:b,Ba:new fJ([new RI(a.layout)]),adSlotLoggingData:e}),yg:a.yg}):e=lFa(b,a,l,e,c);return e instanceof eJ?e:[].concat(g.pa(e.yg),[e.Yw])};
FGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=yGa(a,b,c,e,f,h,m,n,p,q,r,t);zGa(e)?(e=CGa(a,c,h,l),e instanceof eJ?a=e:(l=$J(a.gb.get(),"SLOT_TYPE_IN_PLAYER"),m=NJ(a.gb.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.pa(e.slotExpirationTriggers),[new bM(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,Ya:e.Ya,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof eJ?
l:{Yw:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:DGa(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:EGa(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,Ya:e.Ya,Ba:new fJ([new $I(XM(c)),new RI(l.layout)]),adSlotLoggingData:d},yg:l.yg})):a=mFa(a,c,h,l,d,m.yc,b);return a instanceof eJ?a:a.yg.concat(a.Yw)};
zGa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(g.U(b.value,AM))return!0;return!1};
yGa=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(IL(p)&&JL(p))a:{var v=GGa(d,c,p);if(v instanceof eJ)t=v;else{for(var x=0,A=[],E=[],F=[],G=[],M=[],P=[],R=new FI({current:null}),ba=new sI({current:null}),na=!1,ta=[],ka=0,va=[],ea=0;ea<d.length;ea++){var Y=d[ea],Ma=g.U(Y,yM);if(Ma){Ma=QM(Ma,c,p);if(Ma instanceof dJ){t=new eJ(Ma);break a}var y=new $L(ka,v),aa=RM(Ma.playerVars,Ma.cB,h,n,y);ka++;va[ea]={renderer:Y,data:Ma,Qu:y,LC:aa}}}ka=-1;for(v=0;v<d.length;v++)if(ea=d[v],Y=g.U(ea,zM)){ea=
rGa(b,c,Y,l);if(ea instanceof eJ){t=ea;break a}ea=ea(r);A.push(ea.Cg);E=[].concat(g.pa(ea.Wl),g.pa(E));F=[].concat(g.pa(ea.Uj),g.pa(F));ea.wf&&(ta=[ea.wf].concat(g.pa(ta)))}else if(g.U(ea,yM))Y=va[v],ka=Y.data,ea=Y.Qu,Y=Y.LC,Ma=va[v+1],y=void 0,Ma&&(y=Ma.LC),ea=HGa(b,ka.layoutId,ka.Fo,c,Y,ka.Yo,f,ea,l(r),ba,m.get(ka.Fo.externalVideoId),y,q),x++,A.push(ea.Cg),E=[].concat(g.pa(ea.Wl),g.pa(E)),F=[].concat(g.pa(ea.Uj),g.pa(F)),na||(P.push(ba),na=!0),ka=(ka=ka.Fo.adPodSkipTarget)&&0<ka?ka:-1;else if(Y=
g.U(ea,xK)){ea=qGa(a,b,c,Y,f,x,l,ba,ka);if(ea instanceof eJ){t=ea;break a}ea=ea(r);A.push(ea.Cg);E=[].concat(g.pa(ea.Wl),g.pa(E));F=[].concat(g.pa(ea.Uj),g.pa(F));ea.wf&&(ta=[ea.wf].concat(g.pa(ta)))}else if(Y=g.U(ea,AM)){if(void 0===t){t=new eJ("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Y});break a}ea=tGa(a,b,c,f,Y,R,l,t,x,YM(p,"supports_multi_step_on_desktop"));if(ea instanceof eJ){t=ea;break a}ea=ea(r);A.push(ea.Cg);ea.wf&&ta.push(ea.wf);
E=[].concat(g.pa(ea.Wl),g.pa(E));F=[].concat(g.pa(ea.Uj),g.pa(F));G=[].concat(g.pa(ea.cz),g.pa(G));M=[].concat(g.pa(ea.bz),g.pa(M));P=[R].concat(g.pa(P))}else if(ea=g.U(ea,BM)){ea=vGa(a,b,c,f,ea,R,l,x);if(ea instanceof eJ){t=ea;break a}ea=ea(r);A.push(ea.Cg);ea.wf&&ta.push(ea.wf);F=[].concat(g.pa(ea.Uj),g.pa(F))}else{t=new eJ("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={AB:A,layoutExitSkipTriggers:E,layoutExitUserInputSubmittedTriggers:G,Zc:M,layoutExitMuteTriggers:F,Xy:P,
yg:ta}}}else a:if(x=GGa(d,c,p),x instanceof eJ)t=x;else{A=0;E=[];F=[];G=[];M=[];P=[];R=[];ba=new FI({current:null});na=new sI({current:null});ta=!1;va=[];ka=-1;v=g.u(d);for(ea=v.next();!ea.done;ea=v.next())if(ea=ea.value,g.U(ea,zM)){ea=rGa(b,c,g.U(ea,zM),l);if(ea instanceof eJ){t=ea;break a}ea=ea(r);E.push(ea.Cg);F=[].concat(g.pa(ea.Wl),g.pa(F));G=[].concat(g.pa(ea.Uj),g.pa(G));ea.wf&&(va=[ea.wf].concat(g.pa(va)))}else if(g.U(ea,yM)){ka=QM(g.U(ea,yM),c,p);if(ka instanceof dJ){t=new eJ(ka);break a}ea=
new $L(A,x);ea=HGa(b,ka.layoutId,ka.Fo,c,RM(ka.playerVars,ka.cB,h,n,ea),ka.Yo,f,ea,l(r),na,m.get(ka.Fo.externalVideoId),void 0,q);A++;E.push(ea.Cg);F=[].concat(g.pa(ea.Wl),g.pa(F));G=[].concat(g.pa(ea.Uj),g.pa(G));ta||(R.push(na),ta=!0);ka=(ka=ka.Fo.adPodSkipTarget)&&0<ka?ka:-1}else if(g.U(ea,xK)){ea=qGa(a,b,c,g.U(ea,xK),f,A,l,na,ka);if(ea instanceof eJ){t=ea;break a}ea=ea(r);E.push(ea.Cg);F=[].concat(g.pa(ea.Wl),g.pa(F));G=[].concat(g.pa(ea.Uj),g.pa(G));ea.wf&&(va=[ea.wf].concat(g.pa(va)))}else if(g.U(ea,
AM)){if(void 0===t){t=new eJ("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.U(ea,AM)});break a}ea=tGa(a,b,c,f,g.U(ea,AM),ba,l,t,A,YM(p,"supports_multi_step_on_desktop"));if(ea instanceof eJ){t=ea;break a}ea=ea(r);E.push(ea.Cg);ea.wf&&va.push(ea.wf);F=[].concat(g.pa(ea.Wl),g.pa(F));G=[].concat(g.pa(ea.Uj),g.pa(G));M=[].concat(g.pa(ea.cz),g.pa(M));P=[].concat(g.pa(ea.bz),g.pa(P));R=[ba].concat(g.pa(R))}else if(g.U(ea,BM)){ea=vGa(a,b,c,f,g.U(ea,
BM),ba,l,A);if(ea instanceof eJ){t=ea;break a}ea=ea(r);E.push(ea.Cg);ea.wf&&va.push(ea.wf);G=[].concat(g.pa(ea.Uj),g.pa(G))}else{t=new eJ("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={AB:E,layoutExitSkipTriggers:F,layoutExitUserInputSubmittedTriggers:M,Zc:P,layoutExitMuteTriggers:G,Xy:R,yg:va}}t instanceof eJ?r=t:(P=r.slotId,x=t.AB,A=t.layoutExitSkipTriggers,E=t.layoutExitMuteTriggers,F=t.layoutExitUserInputSubmittedTriggers,G=t.Xy,r=l(r),M=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",
P=e?e.layoutId:NJ(b.gb.get(),M,P),R={layoutId:P,layoutType:M,Ya:"core"},r={layout:{layoutId:P,layoutType:M,Fb:new Map,layoutExitNormalTriggers:[new kM(b.j,P)],layoutExitSkipTriggers:A,layoutExitMuteTriggers:E,layoutExitUserInputSubmittedTriggers:F,Zc:[],Ya:"core",Ba:new fJ([new GI(x)].concat(g.pa(G))),lc:r(R)},yg:t.yg});return r}};
GGa=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.U(e,yM)){e=QM(g.U(e,yM),b,c);if(e instanceof dJ)return new eJ(e);d.push(e.Yo)}return d};
JGa=function(a,b,c,d,e,f,h,l){if(!IEa(c,void 0===l?!1:l))return new eJ("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=JFa(c);if(0>=m)return new eJ("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new FI({current:null}),p=NFa(a,b,c,n,d,f,h);return IGa(a,d,f,m,e,function(q,r){var t=q.slotId,v=KFa(c);q=h(q);var x,A=null!=(x=WM(b,d,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))?
x:NJ(b.gb.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ya:"core"};x=p(A,r);var E=gJ(x.Ba,"metadata_type_fulfilled_layout");E||HG("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");v=[new oI(d),new VI(m),new XI(v),n];E&&v.push(new CI(E.layoutType));return{c9:{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Fb:new Map,layoutExitNormalTriggers:[new kM(b.j,A)],layoutExitSkipTriggers:[new nM(b.j,r.layoutId)],
layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new uM(b.j,r.layoutId)],Zc:[],Ya:"core",Ba:new fJ(v),lc:q(t)},n8:x}})};
KGa=function(a){if(!MEa(a))return!1;var b=g.U(a.adVideoStart,ZM);return b?g.U(a.linearAd,yM)&&uEa(b)?!0:(HG("Invalid Sandwich with notify"),!1):!1};
LGa=function(a){if(null==a.linearAds)return!1;a=g.U(a.adStart,ZM);return a?uEa(a)?!0:(HG("Invalid LASR with notify"),!1):!1};
MGa=function(a){if(!LEa(a))return!1;a=g.U(a.adStart,ZM);return a?uEa(a)?!0:(HG("Invalid LASR with notify"),!1):!1};
$M=function(a,b,c,d,e,f,h,l){this.gb=a;this.Lb=b;this.Cb=c;this.Da=d;this.Wb=e;this.j=f;this.Xj=h;this.loadPolicy=void 0===l?1:l};
REa=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(vEa);var p=c.filter(GEa),q=d.filter(vEa),r=new Map,t=tFa(b),v=c.some(function(ea){var Y;return"SLOT_TYPE_PLAYER_BYTES"===(null==ea?void 0:null==(Y=ea.adSlotMetadata)?void 0:Y.slotType)}),x=c.some(function(ea){var Y;
return"SLOT_TYPE_PLAYER_UNDERLAY"===(null==ea?void 0:null==(Y=ea.adSlotMetadata)?void 0:Y.slotType)});
c=c.some(function(ea){var Y;return"SLOT_TYPE_IN_PLAYER"===(null==ea?void 0:null==(Y=ea.adSlotMetadata)?void 0:Y.slotType)});
if(v||x||c)c=wFa(p,b,l,e,t,a.Wb.get(),a.loadPolicy,r,a.Da.get(),a.gb.get(),c),c instanceof eJ?HG(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.pa(c));c=g.u(b);for(x=c.next();!x.done;x=c.next()){x=x.value;var A=NGa(a,r,x,e,f,h,v,l,t,m,p);A instanceof eJ?HG(A,void 0,void 0,{renderer:x.renderer,config:x.config.adPlacementConfig,kind:x.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.pa(A))}OGa(a.Da.get())||(f=PGa(a,q,e,l,t,r),n.push.apply(n,g.pa(f)));if(null===a.j||h&&!l.iW){var E,
F,G;a=l.yc&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(E=b[0].config)?void 0:null==(F=E.adPlacementConfig)?void 0:F.kind)&&(null==(G=b[0].renderer)?void 0:G.adBreakServiceRenderer);if(!n.length&&!a){var M,P,R,ba;HG("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":null==(M=b[0])?void 0:null==(P=M.config)?void 0:null==(R=P.adPlacementConfig)?void 0:R.kind,renderer:null==(ba=b[0])?void 0:ba.renderer})}return n}E=
d.filter(vEa);n.push.apply(n,g.pa(dFa(r,E,a.Lb.get(),a.j,e,v)));if(!n.length){var na,ta,ka,va;HG("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==(ta=na.config)?void 0:null==(ka=ta.adPlacementConfig)?void 0:ka.kind,renderer:null==(va=b[0])?void 0:va.renderer})}return n};
PGa=function(a,b,c,d,e,f){function h(r){return kJ(a.Wb.get(),r)}
var l=[];b=g.u(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&KGa(p)?(HG("Found AdNotify with SandwichedLinearAdRenderer"),q=g.U(p.adVideoStart,ZM),p=g.U(p.linearAd,yM),OM(f,n,m.config.adPlacementConfig.kind),n=void 0,q=iFa(null==(n=q)?void 0:n.layout.layoutId,a.Lb.get(),a.Cb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Da.get(),a.Wb.get()),q instanceof eJ?HG(q):l.push.apply(l,g.pa(q))):
q&&(!q.adLayoutMetadata&&LGa(q)||q.adLayoutMetadata&&MGa(q))&&(HG("Found AdNotify with LinearAdSequenceRenderer"),OM(f,n,m.config.adPlacementConfig.kind),n=void 0,p=wGa(null==(n=g.U(q.adStart,ZM))?void 0:n.layout.layoutId,a.Lb.get(),a.Cb.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,wM(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Da.get()),p instanceof eJ?HG(p):l.push.apply(l,g.pa(p)))}return l};
NGa=function(a,b,c,d,e,f,h,l,m,n,p){function q(E){return kJ(a.Wb.get(),E)}
var r=c.renderer,t=c.config.adPlacementConfig,v=t.kind,x=c.adSlotLoggingData,A=l.iW&&"AD_PLACEMENT_KIND_START"===v;A=f&&!A;if(null!=r.adsEngagementPanelRenderer)return PM(b,c.elementId,v,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,G,M){var P=a.Cb.get(),R=E.slotId,ba=r.adsEngagementPanelRenderer;E=kJ(a.Wb.get(),E);return aN(P,R,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new zza(ba),F,G,ba.impressionPings,E,r.adsEngagementPanelRenderer.adLayoutLoggingData,M)}),[];
if(null!=r.actionCompanionAdRenderer){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return ZEa(a.Lb.get(),a.j,a.Cb.get(),r.actionCompanionAdRenderer,t,x,d,q);PM(b,c.elementId,v,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,G,M){var P=a.Cb.get(),R=E.slotId,ba=r.actionCompanionAdRenderer;E=kJ(a.Wb.get(),E);return aN(P,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new kI(ba),F,G,ba.impressionPings,E,r.actionCompanionAdRenderer.adLayoutLoggingData,M)})}else if(void 0!==r.topBannerImageTextIconButtonedLayoutViewModel){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return $Ea(a.Lb.get(),a.j,a.Cb.get(),r.topBannerImageTextIconButtonedLayoutViewModel,t,x,d,q);
PM(b,c.elementId,v,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,G,M){var P=a.Cb.get(),R=E.slotId,ba=r.topBannerImageTextIconButtonedLayoutViewModel;E=kJ(a.Wb.get(),E);return QGa(P,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new lI(ba),F,G,E,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,M)})}else if(r.imageCompanionAdRenderer)PM(b,
c.elementId,v,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,G,M){var P=a.Cb.get(),R=E.slotId,ba=r.imageCompanionAdRenderer;
E=kJ(a.Wb.get(),E);return aN(P,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Bza(ba),F,G,ba.impressionPings,E,r.imageCompanionAdRenderer.adLayoutLoggingData,M)});
else if(r.bannerImageLayoutViewModel)PM(b,c.elementId,v,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,G,M){var P=a.Cb.get(),R=E.slotId,ba=r.bannerImageLayoutViewModel;E=kJ(a.Wb.get(),E);return QGa(P,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Cza(ba),F,G,E,r.bannerImageLayoutViewModel.adLayoutLoggingData,M)});
else if(r.shoppingCompanionCarouselRenderer)PM(b,c.elementId,v,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,x,function(E,F,G,M){var P=a.Cb.get(),R=E.slotId,ba=r.shoppingCompanionCarouselRenderer;E=kJ(a.Wb.get(),E);return aN(P,R,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Dza(ba),F,G,ba.impressionPings,E,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,M)});
else if(r.adBreakServiceRenderer){if(!XEa(c))return[];if("AD_PLACEMENT_KIND_PAUSE"===v)return WEa(a.Lb.get(),t,x,c.renderer.adBreakServiceRenderer,d);if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==v)return VEa(a.Lb.get(),t,x,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Xj)return new eJ("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.yc||HG("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:v,adPlacementConfig:t,
daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.yc),clientPlaybackNonce:l.clientPlaybackNonce});RGa(a.Xj,{adPlacementRenderer:c,contentCpn:d,Cs:e})}else{if(r.clientForecastingAdRenderer)return hGa(a.Lb.get(),a.Cb.get(),t,x,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return nGa(a.Lb.get(),a.Cb.get(),t,x,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return jGa(a.Lb.get(),a.Cb.get(),t,x,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer||
r.instreamVideoAdRenderer)&&A)return aGa(a.Lb.get(),a.Cb.get(),c,d,q,n,!a.Da.get().J.U().L("html5_override_ad_video_length_killswitch"));if(r.linearAdSequenceRenderer&&!A){if(h)return[];OM(b,r,v);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!LEa(r.linearAdSequenceRenderer))return new eJ("Received invalid LinearAdSequenceRenderer.")}else if(null==r.linearAdSequenceRenderer.linearAds)return new eJ("Received invalid LinearAdSequenceRenderer.");if(g.U(r.linearAdSequenceRenderer.adStart,ZM)){HG("Found AdNotify in LinearAdSequenceRenderer");
b=g.U(r.linearAdSequenceRenderer.adStart,ZM);if(!tEa(b))return new eJ("Invalid AdMessageRenderer.");c=r.linearAdSequenceRenderer.linearAds;return xGa(a.gb.get(),a.Lb.get(),a.Cb.get(),a.Wb.get(),t,x,b,wM(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,l,q,m,a.loadPolicy,a.Da.get())}return FGa(a.Lb.get(),a.Cb.get(),t,x,r.linearAdSequenceRenderer.linearAds,wM(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:
void 0,d,e,l,q,m,a.loadPolicy,a.Da.get(),p)}if(!r.remoteSlotsRenderer||f){if(r.instreamVideoAdRenderer&&!A){if(h)return[];OM(b,r,v);return nFa(a.Lb.get(),a.Cb.get(),t,x,r.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.Da.get(),a.Wb.get(),p)}if(r.instreamSurveyAdRenderer)return JGa(a.Lb.get(),a.Cb.get(),r.instreamSurveyAdRenderer,t,x,d,q,YM(a.Da.get(),"supports_multi_step_on_desktop"));if(null!=r.sandwichedLinearAdRenderer)return MEa(r.sandwichedLinearAdRenderer)?g.U(r.sandwichedLinearAdRenderer.adVideoStart,
ZM)?(HG("Found AdNotify in SandwichedLinearAdRenderer"),b=g.U(r.sandwichedLinearAdRenderer.adVideoStart,ZM),tEa(b)?(c=g.U(r.sandwichedLinearAdRenderer.linearAd,yM))?jFa(b,c,t,a.gb.get(),a.Lb.get(),a.Cb.get(),a.Wb.get(),x,d,e,l,q,m,a.loadPolicy,a.Da.get()):new eJ("Missing IVAR from Sandwich"):new eJ("Invalid AdMessageRenderer.")):FGa(a.Lb.get(),a.Cb.get(),t,x,[r.sandwichedLinearAdRenderer.adVideoStart,r.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.Da.get()):new eJ("Received invalid SandwichedLinearAdRenderer.");
if(null!=r.videoAdTrackingRenderer)return l=YM(a.Da.get(),"enable_h5_shorts_ad_terminal_events")&&l.Nn,fGa(a.Lb.get(),a.Cb.get(),r.videoAdTrackingRenderer,t,x,d,e,l,q)}}return[]};
bN=function(a,b,c,d,e,f,h,l){g.I.call(this);var m=this;this.Rb=a;this.Lb=b;this.If=d;this.Fa=e;this.Da=f;this.Oa=h;this.Sc=l;this.j=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.isDisposed()||c.get().removeListener(m)});
d.get().addListener(this);this.addOnDisposeCallback(function(){d.isDisposed()||d.get().removeListener(m)})};
RGa=function(a,b){if(a.j)HG("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.u(a.If.get().aL);for(var c=b.next();!c.done;c=b.next())SGa(a,a.j,c.value)}};
SGa=function(a,b,c){var d=a.Fa.get().getCurrentTimeSec(1,!1);a.Da.get().J.U().Dc()&&a.Oa.get().Ii("sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.yh.toFixed(3));ZJ(a.Rb.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.Lb.get(),f=b.adPlacementRenderer.renderer.adBreakServiceRenderer,h=b.contentCpn,l=b.adPlacementRenderer.adSlotLoggingData,m=cN(a.Da.get()),n=a.Oa;if(e.Da.get().J.U().experiments.kb("enable_smearing_expansion_dai")){var p=g.lJ(e.Da.get().J.U().experiments,
"max_prefetch_window_sec_for_livestream_optimization");var q=g.lJ(e.Da.get().J.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={po:TGa(c),oF:!1,cueProcessedMs:1E3*d};var r=c.startSecs+c.yh;if(0===d)m.wp=new wv(0,1E3*r);else{q=c.startSecs-q;var t=q-d;m.wp=0>=t?new wv(1E3*q,1E3*r):new wv(1E3*Math.floor(d+Math.random()*Math.min(t,p)),1E3*r)}p=m}else p={po:TGa(c),oF:!1},r=c.startSecs+c.yh,c.startSecs<=d?m=new wv(1E3*(c.startSecs-4),1E3*r):(q=Math.max(0,c.startSecs-d-10),m=new wv(1E3*
Math.floor(d+Math.random()*(m?0===d?0:Math.min(q,5):q)),1E3*r)),p.wp=m;f=UEa(e,f,h,p,l,[new Nza(c)]);e.Da.get().J.U().experiments.kb("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.wp.start/1E3-d,n=c.startSecs-d,null!=(h=h.J.fd())&&(h=h.Cc(),h.qoe&&(h=h.qoe,h.provider.W.L("html5_add_dai_smearing_to_qoe")&&(l=1E3*g.dN(h.provider),p=h.j.daism||[],p.push("t."+l.toFixed(0)+";smw."+(1E3*e).toFixed(0)+";smo."+(1E3*n).toFixed(0)),h.j.daism=p)))):n.get().Ii("daism","ct."+Date.now()+";cmt."+d+";smw."+(p.wp.start/
1E3-d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})};
eN=function(a){var b,c=null==(b=gJ(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=gJ(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=gJ(a.Ba,"metadata_type_content_cpn"),f=gJ(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=gJ(a.Ba,"metadata_type_player_overlay_layout_renderer"),l=gJ(a.Ba,"metadata_type_player_underlay_renderer"),m=gJ(a.Ba,"metadata_type_ad_placement_config"),n=gJ(a.Ba,"metadata_type_video_length_seconds");
var p=aJ(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?gJ(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):aJ(a.Ba,"metadata_type_layout_enter_ms")&&aJ(a.Ba,"metadata_type_layout_exit_ms")?(gJ(a.Ba,"metadata_type_layout_exit_ms")-gJ(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{cq:d,contentCpn:e,YQ:c,BM:b,instreamAdPlayerOverlayRenderer:f,playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,jJ:p,inPlayerLayoutId:gJ(a.Ba,"metadata_type_linked_in_player_layout_id"),
inPlayerSlotId:gJ(a.Ba,"metadata_type_linked_in_player_slot_id")}};
VGa=function(a,b){return UGa(a,b)};
WGa=function(a,b){b=UGa(a,b);if(!b)return null;var c;b.jJ=null==(c=gJ(a.Ba,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
UGa=function(a,b){var c,d=null==(c=gJ(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;c=aCa(a,b);return{n5:$Ba(a,b),adPlacementConfig:gJ(a.Ba,"metadata_type_ad_placement_config"),q5:c,contentCpn:gJ(a.Ba,"metadata_type_content_cpn"),inPlayerLayoutId:gJ(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:gJ(a.Ba,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:gJ(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,
instreamAdPlayerUnderlayRenderer:void 0,jJ:void 0,YQ:d,cq:a.layoutId,videoLengthSeconds:gJ(a.Ba,"metadata_type_video_length_seconds")}};
fN=function(a,b,c,d,e,f,h,l,m){g.I.call(this);this.j=a;this.C=b;this.B=c;this.Rb=d;this.Lb=e;this.Cb=f;this.Wb=h;this.Da=l;this.Ua=m;this.Bh=!0};
XGa=function(a,b,c){return rFa(a.Lb.get(),b.contentCpn,b.cq,function(d){return sFa(a.Cb.get(),d.slotId,c,b.adPlacementConfig,b.cq,kJ(a.Wb.get(),d))})};
gN=function(a,b,c,d,e,f,h,l){g.I.call(this);this.Rb=a;this.Ge=b;this.j=c;this.Da=d;this.B=e;this.Ua=f;this.Fa=h;this.Ac=l};
hN=function(a){g.I.call(this);this.j=a};
ZJ=function(a,b,c,d){a.j().nh(b,d);c=c();a=a.j();a.kc.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;AJ(d.kc,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);AJ(d.kc,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.fc(c.slotId))throw new eJ("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(sJ(e,c))throw new eJ("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.Wg.Cq.has(c.slotType))throw new eJ("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.Wg.Jr.has(c.slotType))throw new eJ("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");AAa(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);AAa(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
c.slotFulfillmentTriggers);AAa(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=CJ(f,h);if(sJ(f,c))throw new eJ("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new vAa(c));f.j.set(h,l)}catch(na){na instanceof eJ&&na.Mk?(pJ(d.kc,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",na.Mk,c),HG(na,c,void 0,void 0,na.Su)):(pJ(d.kc,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
c),HG(na,c));break a}sJ(d.j,c).K=!0;try{var m=d.j,n=sJ(m,c),p=c.slotEntryTrigger,q=m.Wg.Cl.get(p.triggerType);q&&(q.ql("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Ca.set(p.triggerId,q));for(var r=g.u(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var v=t.value,x=m.Wg.Cl.get(v.triggerType);x&&(x.ql("TRIGGER_CATEGORY_SLOT_FULFILLMENT",v,c,null),n.ma.set(v.triggerId,x))}for(var A=g.u(c.slotExpirationTriggers),E=A.next();!E.done;E=A.next()){var F=E.value,G=m.Wg.Cl.get(F.triggerType);G&&(G.ql("TRIGGER_CATEGORY_SLOT_EXPIRATION",
F,c,null),n.Y.set(F.triggerId,G))}var M=m.Wg.Cq.get(c.slotType).get().build(m.C,c);n.N=M;var P=m.Wg.Jr.get(c.slotType).get().build(m.G,c);P.init();n.B=P}catch(na){na instanceof eJ&&na.Mk?(pJ(d.kc,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",na.Mk,c),HG(na,c,void 0,void 0,na.Su)):(pJ(d.kc,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),HG(na,c));qJ(d,c,!0);break a}AJ(d.kc,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.oh(c);for(var R=g.u(d.B),ba=R.next();!ba.done;ba=
R.next())ba.value.oh(c);eAa(d,c)}};
iN=function(a,b,c,d){g.I.call(this);var e=this;this.Rb=a;this.Lb=b;this.wc=c;this.j=new Map;d.get().addListener(this);this.addOnDisposeCallback(function(){d.isDisposed()||d.get().removeListener(e)})};
PEa=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 iM?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):HG("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new wv(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.wc.get().addCueRange(d,c.start,c.end,!1,a)};
jN=function(){g.I.apply(this,arguments);this.Bh=!0;this.Lj=new Map;this.j=new Map};
YGa=function(a,b){a=g.u(a.Lj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
qBa=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}HG("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.fc(b)),layoutId:b})};
ZGa=function(a,b){this.callback=a;this.slot=b};
kN=function(){};
$Ga=function(a,b,c){this.callback=a;this.slot=b;this.Fa=c};
aHa=function(a,b,c){this.callback=a;this.slot=b;this.Fa=c;this.B=!1;this.j=0};
bHa=function(a,b,c){this.callback=a;this.slot=b;this.Fa=c};
lN=function(a){this.Fa=a};
mN=function(a){g.I.call(this);this.WL=a;this.Ub=new Map};
cHa=function(a,b){for(var c=[],d=g.u(a.Ub.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof uM&&f.triggeringLayoutId===b&&c.push(e)}c.length?zJ(a.WL(),c):HG("Survey is submitted but no registered triggers can be activated.")};
nN=function(a,b,c){mN.call(this,a);var d=this;this.Da=c;b.get().addListener(this);this.addOnDisposeCallback(function(){b.isDisposed()||b.get().removeListener(d)})};
oN=function(a){g.I.call(this);this.j=a;this.Bh=!0;this.Ub=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.K=new Set;this.B=new Set};
pN=function(a){g.I.call(this);this.j=a;this.Ub=new Map};
qN=function(a,b){for(var c=[],d=g.u(a.Ub.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&zJ(a.j(),c)};
rN=function(a,b){g.I.call(this);var c=this;this.j=a;this.Ub=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.isDisposed()||b.get().removeListener(c)})};
dHa=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 lM){var h=f.trigger.j===b;h===c?e.push(f):d&&h&&(HG("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
eHa=function(a){return a instanceof qEa||a instanceof rEa||a instanceof mM};
sN=function(a,b,c,d){g.I.call(this);var e=this;this.B=a;this.wc=b;this.Fa=c;this.Ua=d;this.Bh=!0;this.Ub=new Map;this.j=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.isDisposed()||c.get().removeListener(e)})};
fHa=function(a,b,c,d,e,f,h,l,m,n){if(a.Ua.get().Se(1).clientPlaybackNonce!==m)throw new eJ("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Ub.set(c.triggerId,{Yu:new vM(b,c,d,e),uv:f});a.wc.get().addCueRange(f,h,l,n,a)};
gHa=function(a,b){a=g.u(a.Ub.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;if(b===d.uv)return c}return""};
tN=function(a,b){g.I.call(this);var c=this;this.D=a;this.B=new Map;this.C=new Map;this.j=null;b.get().addListener(this);this.addOnDisposeCallback(function(){b.isDisposed()||b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().vv)?void 0:d.slotId)||null};
hHa=function(a,b){var c=[];a=g.u(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
uN=function(a){g.I.call(this);this.j=a;this.Bh=!0;this.Ub=new Map};
NL=function(a,b){b=b.layoutId;for(var c=[],d=g.u(a.Ub.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof kM){var f;if(f=e.trigger.layoutId===b)f=(f=nAa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&zJ(a.j(),c)};
vN=function(a){g.I.call(this);this.j=a;this.Bh=!0;this.Ub=new Map};
wN=function(a){g.I.call(this);this.C=a;this.Bh=!0;this.Ub=new Map;this.j=new Map;this.B=new Map};
iHa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.u(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c};
xN=function(a){g.I.call(this);this.j=a;this.Ub=new Map};
jHa=function(a,b){for(var c=[],d=g.u(a.Ub.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof ZL&&e.trigger.slotId===b&&c.push(e);1<=c.length&&zJ(a.j(),c)};
kHa=function(a,b){var c={slotId:$J(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Ya:"surface",Ba:new fJ([])},d=Object,e=d.assign;b=NJ(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Fb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"surface",Ba:new fJ([]),
lc:aAa(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.Ya,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{u8:!0,slot:c,layout:b})};
TEa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={po:new wv(-0x8000000000000,-0x8000000000000),oF:d},null!=c&&(d.wp=new wv(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={po:new wv(0x7ffffffffffff,0x8000000000000),oF:d},null!=c&&(d.wp=new wv(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||HG("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||HG("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 eJ("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={po:new wv(a,e),oF:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.wp=new wv(a,e)}return d;
default:return new eJ("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}};
TGa=function(a){var b=1E3*a.startSecs;return new wv(b,b+1E3*a.yh)};
lHa=function(a){if(!a||!a.adPlacements&&!a.adSlots)return!1;for(var b=g.u(a.adPlacements||[]),c=b.next();!c.done;c=b.next())if(c=c.value)if(c=c.adPlacementRenderer,null!=c&&"AD_PLACEMENT_KIND_START"===(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind))return!0;a=g.u(a.adSlots||[]);for(b=a.next();!b.done;b=a.next()){var d=c=void 0;if("SLOT_TRIGGER_EVENT_BEFORE_CONTENT"===(null==(c=g.U(b.value,MM))?void 0:null==(d=c.adSlotMetadata)?void 0:d.triggerEvent))return!0}return!1};
yN=function(){this.B=new Map;this.j=new Map;this.C=new Map};
$J=function(a,b){if(g.rB("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.GE(16)};
NJ=function(a,b,c){if(g.rB("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.GE(16)};
VM=function(a,b){if(g.rB("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.GE(16)};
mHa=function(a){var b=[new AI(a.cq),new Mza(a.YQ),new oI(a.adPlacementConfig),new HI(a.videoLengthSeconds),new UI(a.jJ)];a.instreamAdPlayerOverlayRenderer&&b.push(new vI(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new wI(a.playerOverlayLayoutRenderer));a.BM&&b.push(new sI(a.BM));return b};
nHa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:NJ(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h,l,m=c.instreamAdPlayerOverlayRenderer?null==(h=c.instreamAdPlayerOverlayRenderer)?void 0:h.adLayoutLoggingData:null==(l=c.playerOverlayLayoutRenderer)?void 0:l.adLayoutLoggingData;h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ya:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Fb:new Map,layoutExitNormalTriggers:[new gM(function(n){return VM(f,
n)},c.cq)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:b,Ba:d,lc:e(h),adLayoutLoggingData:m}};
zN=function(a,b){var c=this;this.gb=a;this.Da=b;this.j=function(d){return VM(c.gb.get(),d)}};
sFa=function(a,b,c,d,e,f){c=new fJ([new xI(c),new oI(d)]);b=NJ(a.gb.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ya:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Fb:new Map,layoutExitNormalTriggers:[new gM(function(h){return VM(a.gb.get(),h)},e)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:c,lc:f(d),adLayoutLoggingData:void 0}};
SM=function(a,b,c,d,e){var f=mHa(d);return nHa(b,c,d,new fJ(f),e,a.gb.get())};
oHa=function(a,b,c,d,e){var f=mHa(d);f.push(new Eza(d.n5));f.push(new Fza(d.q5));return nHa(b,c,d,new fJ(f),e,a.gb.get())};
aN=function(a,b,c,d,e,f,h,l,m,n){b=NJ(a.gb.get(),c,b);var p={layoutId:b,layoutType:c,Ya:"core"},q=new Map;h&&q.set("impression",h);h=[new jM(a.j,e)];n&&h.push(new fM(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Fb:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new fJ([d,new oI(f),new AI(e)]),lc:l(p),adLayoutLoggingData:m}};
QGa=function(a,b,c,d,e,f,h,l,m){b=NJ(a.gb.get(),c,b);var n={layoutId:b,layoutType:c,Ya:"core"},p=[new jM(a.j,e)];m&&p.push(new fM(a.j,m,["normal"]));return{layoutId:b,layoutType:c,Fb:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new fJ([d,new oI(f),new AI(e)]),lc:h(n),adLayoutLoggingData:l}};
mGa=function(a,b,c){var d=[];d.push(new oEa(a.j,c));b&&d.push(b);return d};
lGa=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Ya:"core"};return{layoutId:b,layoutType:c,Fb:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new bM(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new fJ([new Aza(d),new oI(e)]),lc:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
MFa=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,Ya:"core"};return{layoutId:b,layoutType:f,Fb:new Map,layoutExitNormalTriggers:[new gM(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new fJ([new oI(d)].concat(g.pa(h))),lc:e(m),adLayoutLoggingData:l}};
WM=function(a,b,c,d){if(a.Da.get().rf("AD_PLACEMENT_KIND_START"===b.kind))if(void 0===c)HG("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c};
oGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=uGa(a,b,c,e,f,h,l,m,q,WM(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.Xy;c=new BI(a.TJ);d=a.layoutExitSkipTriggers;0<n&&(b.push(c),b.push(new rI(n)),d=[]);b.push(new qI(p));return{Cg:{layoutId:a.layoutId,layoutType:a.layoutType,Fb:a.Fb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:a.Ya,Ba:new fJ(b),lc:a.lc,adLayoutLoggingData:a.adLayoutLoggingData},
Wl:d,Uj:a.layoutExitMuteTriggers,cz:a.layoutExitUserInputSubmittedTriggers,bz:a.Zc,wf:a.wf}};
sGa=function(a,b,c,d,e,f,h,l,m,n){b=uGa(a,b,c,d,f,new Map,h,function(p){return l(p,m)},void 0,WM(a,c,e.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
a=new uM(a.j,b.TJ);c=new BI(b.TJ);n=new qI(n);return{Cg:{layoutId:b.layoutId,layoutType:b.layoutType,Fb:b.Fb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:b.Ya,Ba:new fJ([].concat(g.pa(b.Xy),[c,n])),lc:b.lc,adLayoutLoggingData:b.adLayoutLoggingData},Wl:b.layoutExitSkipTriggers,Uj:b.layoutExitMuteTriggers,cz:[].concat(g.pa(b.layoutExitUserInputSubmittedTriggers),[a]),bz:b.Zc,wf:b.wf}};
uGa=function(a,b,c,d,e,f,h,l,m,n,p){b=null!=n?n:NJ(a.gb.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);n={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ya:"adapter"};l=l(b);var q=gJ(l.Ba,"metadata_type_fulfilled_layout");q||HG("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var r=q?q.layoutId:"";c=[new oI(c),new VI(d),new XI(e)];q&&c.push(new CI(q.layoutType));p&&c.push(new NI(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Fb:f,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[new nM(a.j,r)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"adapter",Xy:c,lc:h(n),adLayoutLoggingData:m,wf:l,TJ:r}};
oFa=function(a,b,c,d,e,f,h,l,m,n,p){a=pHa(a,b,"core",c,d,e,f,h,l,m,n,void 0,p);return{layoutId:a.layoutId,layoutType:a.layoutType,Fb:a.Fb,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,Zc:a.Zc,Ya:a.Ya,Ba:new fJ(a.VV),lc:a.lc,adLayoutLoggingData:a.adLayoutLoggingData}};
HGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=pHa(a,b,"adapter",c,d,e,f,h,l,m,p,q,r);d=b.layoutExitSkipTriggers;e=b.VV;c.adPodSkipTarget&&0<c.adPodSkipTarget&&(e.push(n),e.push(new rI(c.adPodSkipTarget)),d=[]);e.push(new qI(l.j));c.isCritical&&(d=[new fM(a.j,b.layoutId,["error"])].concat(g.pa(d)));return{Cg:{layoutId:b.layoutId,layoutType:b.layoutType,Fb:b.Fb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:b.Ya,Ba:new fJ(e),
lc:b.lc,adLayoutLoggingData:b.adLayoutLoggingData},Wl:d,Uj:b.layoutExitMuteTriggers,cz:b.layoutExitUserInputSubmittedTriggers,bz:b.Zc}};
pHa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){var t={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Ya:c};e=[new oI(e),new pI(m),new tI(d.externalVideoId),new uI(l),new XI({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new II(f),new EI({current:null}),new HI(h)];(f=d.playerOverlay.instreamAdPlayerOverlayRenderer)&&e.push(new vI(f));(h=d.playerOverlay.playerOverlayLayoutRenderer)&&e.push(new wI(h));
q&&e.push(new JI(q));(q=d.playerUnderlay)&&e.push(new xI(q));l=$J(a.gb.get(),"SLOT_TYPE_IN_PLAYER");q=(q=f?f.elementId:null==h?void 0:h.layoutId)?q:NJ(a.gb.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);e.push(new BI(q));e.push(new DI(l));e.push(new NI(m.j));d.adNextParams&&e.push(new mI(d.adNextParams));d.shrunkenPlayerBytesConfig&&e.push(new Hza(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&e.push(new nI(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&e.push(new WI(d.legacyInfoCardVastExtension));
d.sodarExtensionData&&e.push(new KI(d.sodarExtensionData));p&&e.push(new TI(p));e.push(new ZI(gK(d.pings)));m=hK(d.pings);if(r){a:{r=g.u(r);for(p=r.next();!p.done;p=r.next())if(p=p.value,"SLOT_TYPE_PLAYER_UNDERLAY"===p.adSlotMetadata.slotType&&(f=g.U(p.fulfillmentContent.fulfilledLayout,EM))&&(f=g.U(f.renderingContent,DM))&&f.associatedPlayerBytesLayoutId===b){r=p;break a}r=void 0}r&&e.push(new yI(r))}return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Fb:m,layoutExitNormalTriggers:[new kM(a.j,b)],layoutExitSkipTriggers:d.skipOffsetMilliseconds?
[new nM(a.j,q)]:[],layoutExitMuteTriggers:[new nM(a.j,q)],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:c,VV:e,lc:n(t),adLayoutLoggingData:d.adLayoutLoggingData}};
cGa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return bJ(p,[],["LAYOUT_TYPE_MEDIA"])})||HG("Unexpect subLayout type for DAI composite layout");
b=NJ(a.gb.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ya:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Fb:new Map,layoutExitNormalTriggers:[new kEa(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Zc:[],Ya:"core",Ba:new fJ([new LI(c),new MI(l),new GI(d),new oI(e),new QI(f),new OI({}),new Sza(m)]),lc:h(n)}};
YFa=function(a){return null!=a};
AN=function(a,b,c){var d=this;this.gb=a;this.Cb=b;this.Da=c;this.j=function(e){return VM(d.gb.get(),e)}};
UEa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=$J(a.gb.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.wp&&d.wp.start!==d.po.start&&l.push(new iM(a.j,c,new wv(d.wp.start,d.po.start),!1));l.push(new iM(a.j,c,new wv(d.po.start,d.po.end),d.oF));d={getAdBreakUrl:b.getAdBreakUrl,kR:d.po.start,jR:d.po.end,cueProcessedMs:d.cueProcessedMs};b=new rM(a.j,h);f=[new SI(d)].concat(g.pa(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:[new lM(a.j,
c),new pM(a.j,h),new qM(a.j,h)],Ya:"core",Ba:new fJ(f),adSlotLoggingData:e}};
rHa=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())d.push(qHa(a,b,e.value));return d};
qHa=function(a,b,c){return null!=c.triggeringSlotId&&c.triggeringSlotId===a?c.clone(b):c};
LFa=function(a,b,c,d,e){return sHa(a,b,c,d,e)};
pGa=function(a,b,c,d){var e=$J(a.gb.get(),"SLOT_TYPE_IN_PLAYER");return sHa(a,e,b,c,d)};
sHa=function(a,b,c,d,e){var f=new eM(a.j,c),h=[new oM(a.j,b)];a=[new pM(a.j,b),new lM(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Ba:new fJ([new RI(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}};
IGa=function(a,b,c,d,e,f){var h=$J(a.gb.get(),"SLOT_TYPE_PLAYER_BYTES"),l=$J(a.gb.get(),"SLOT_TYPE_IN_PLAYER"),m=NJ(a.gb.get(),"LAYOUT_TYPE_SURVEY",l);d=BN(a,b,c,d);var n=[new oM(a.j,h)];c=[new pM(a.j,h),new lM(a.j,c),new bM(a.j,m)];if(d instanceof eJ)return d;l=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:n,slotExpirationTriggers:c},{slotId:l,layoutId:m});f=l.c9;l=l.n8;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",
slotPhysicalPosition:1,slotEntryTrigger:DGa(a,b,h,d),slotFulfillmentTriggers:EGa(a,b,h,n),slotExpirationTriggers:c,Ya:"core",Ba:new fJ([new RI(f),new $I(XM(b))]),adSlotLoggingData:e},l]};
XM=function(a){return"AD_PLACEMENT_KIND_START"===a.kind};
pFa=function(a,b,c,d,e){e=e?e:$J(a.gb.get(),"SLOT_TYPE_IN_PLAYER");c=new eM(a.j,c);var f=[new oM(a.j,e)];a=[new lM(a.j,b),new pM(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Ya:"core",Ba:new fJ([new RI(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
rFa=function(a,b,c,d){var e=$J(a.gb.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new eM(a.j,c);var f=[new oM(a.j,e)];a=[new lM(a.j,b),new pM(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Ya:"core",Ba:new fJ([new RI(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
hFa=function(a,b,c,d,e,f,h){var l=$J(a.gb.get(),"SLOT_TYPE_IN_PLAYER"),m=NJ(a.gb.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=tHa(a,d,f,h,m);if(d instanceof eJ)return d;h=[new oM(a.j,l)];e=[new lM(a.j,f),new oM(a.j,e),new tM(a.j,e)];c=kJ(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e});a=a.Cb.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ya:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
Fb:new Map,layoutExitNormalTriggers:[new qEa(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new rEa(a.j,m,b.durationMs)],Zc:[new mM(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ya:"core",Ba:new fJ([new Qza(b)]),lc:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Ba:new fJ([new RI(b)])}};
kGa=function(a,b,c,d,e,f){b=BN(a,b,c,d);if(b instanceof eJ)return b;var h=b instanceof iM?new nEa(a.j,c,b.j):null;d=$J(a.gb.get(),"SLOT_TYPE_IN_PLAYER");var l=[new oM(a.j,d)];a=[new lM(a.j,c),new pM(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a},h);return f instanceof dJ?new eJ(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,
slotExpirationTriggers:a,Ya:"core",Ba:new fJ([new RI(f)]),adSlotLoggingData:e}};
iGa=function(a,b,c,d){var e=$J(a.gb.get(),"SLOT_TYPE_IN_PLAYER"),f=new aM(a.j,b),h=[new sM(a.j,e)];a=[new lM(a.j,b),new pM(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Ba:new fJ([new RI(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:c}};
SFa=function(a,b,c,d){var e=$J(a.gb.get(),"SLOT_TYPE_IN_PLAYER");c=new eM(a.j,c);var f=[new oM(a.j,e)],h=[new pM(a.j,e),new lM(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new oM(a.j,e)],slotExpirationTriggers:[new lM(a.j,b),new pM(a.j,e)],Ya:"core",Ba:new fJ([new RI(d(f))])}};
PFa=function(a,b,c,d,e){var f=$J(a.gb.get(),"SLOT_TYPE_IN_PLAYER");c=new dM(a.j,d,c);d=[new oM(a.j,f)];a=[new lM(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Ya:"core",Ba:new fJ([new RI(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}};
cFa=function(a,b,c,d,e,f){var h=$J(a.gb.get(),b);return uHa(a,h,b,new eM(a.j,d),[new lM(a.j,c),new pM(a.j,h),new fM(a.j,d,["error"])],e,f)};
bFa=function(a,b,c,d,e,f,h){var l=$J(a.gb.get(),b);return uHa(a,l,b,new fM(a.j,e,["normal"]),[new lM(a.j,c),new pM(a.j,l),new fM(a.j,d,["error"])],f,h)};
YEa=function(a,b,c,d,e){var f=$J(a.gb.get(),b);return uHa(a,f,b,new aM(a.j,c),[new lM(a.j,c),new pM(a.j,f)],d,e)};
eGa=function(a,b,c,d,e){c=c?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var f=$J(a.gb.get(),c);b=new aM(a.j,b);var h=[new oM(a.j,f)];a=[new pM(a.j,f)];return{slotId:f,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Ba:new fJ([new RI(e({slotId:f,slotType:c,slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:d}};
ZFa=function(a,b,c,d){var e=$J(a.gb.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new lEa(a.j),h=[new sM(a.j,e)];b=[new lM(a.j,b)];var l={slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b};a=a.Da.get();return!g.yJ(a.J.U())&&a.J.U().experiments.kb("enable_pacf_slot_asde_player_byte_h5")||g.yJ(a.J.U())&&a.J.U().experiments.kb("enable_pacf_slot_asde_player_byte_h5_TV")?{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Ya:"core",Ba:new fJ([new RI(d(l)),new OI({})]),adSlotLoggingData:c}:{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Ya:"core",Ba:new fJ([new RI(d(l)),new OI({})])}};
AGa=function(a,b){return OGa(a.Da.get())?new fM(a.j,b,["normal","error","skipped"]):new fM(a.j,b,["normal"])};
lFa=function(a,b,c,d,e){b=AGa(a,b);a=BGa(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,Ya:a.Ya});return e instanceof eJ?e:{Yw:Object.assign({},a,{Ba:new fJ([new RI(e.layout)]),adSlotLoggingData:d}),yg:e.yg}};
mFa=function(a,b,c,d,e,f,h){c=CGa(a,b,c,d);if(c instanceof eJ)return c;h=h({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,Ya:c.Ya});if(h instanceof eJ)return h;d=[new $I(XM(b)),new RI(h.layout)];f&&d.push(new YI({}));return{Yw:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:DGa(a,b,
c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:EGa(a,b,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,Ya:c.Ya,Ba:new fJ(d),adSlotLoggingData:e},yg:h.yg}};
DGa=function(a,b,c,d){return a.Da.get().rf(XM(b))?new ZL(a.j,c):d};
EGa=function(a,b,c,d){return a.Da.get().rf(XM(b))?[new sM(a.j,c)]:d};
BGa=function(a,b,c){var d=$J(a.gb.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new oM(a.j,d)];a=[new pM(a.j,d),new lM(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,Ya:"core"}};
CGa=function(a,b,c,d){b=BN(a,b,c,d);return b instanceof eJ?b:BGa(a,b,c)};
gGa=function(a,b,c,d,e,f){var h=$J(a.gb.get(),"SLOT_TYPE_FORECASTING");b=BN(a,b,c,d);if(b instanceof eJ)return b;d=[new oM(a.j,h)];a=[new pM(a.j,h),new lM(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Ya:"core",Ba:new fJ([new RI(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}};
vHa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new aM(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=TEa(b,d),a instanceof eJ?a:e(a.po,f);case "AD_PLACEMENT_KIND_END":return new cM(a.j,c,f);default:return new eJ("Cannot construct entry trigger",{kind:b.kind})}};
tHa=function(a,b,c,d,e){return vHa(a,b,c,d,function(f,h){return new hM(a.j,c,f,h,e)})};
BN=function(a,b,c,d){return vHa(a,b,c,d,function(e,f){return new iM(a.j,c,e,f)})};
uHa=function(a,b,c,d,e,f,h){a=[new sM(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,Ya:"core",Ba:new fJ([new RI(h({slotId:b,slotType:c,slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}};
CN=function(a,b){g.I.call(this);this.Da=a;this.B=b;this.eventCount=0};
AJ=function(a,b,c){a.j(b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData)};
tJ=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)};
mAa=function(a,b,c,d){bAa(a.B.get())&&a.j("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
pJ=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})};
DN=function(a,b,c){CN.call(this,a,b);this.Da=a;this.Ua=c};
EN=function(){this.j=new Map};
FN=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
SN=function(a){g.I.call(this);this.counter=[0,0,0,0];this.B=new Uint8Array(16);this.j=16;if(!wHa){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);GN=new Uint8Array(256);HN=FN(256);IN=FN(256);QN=FN(256);RN=FN(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;GN[f]=e;b=e<<1^(e>>7&&283);var h=b^e;HN[f]=b<<24|e<<16|e<<8|h;IN[f]=h<<24|HN[f]>>>8;QN[f]=e<<24|IN[f]>>>8;RN[f]=e<<24|QN[f]>>>8}wHa=!0}e=FN(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=(GN[a>>16&255]^d)<<24|GN[a>>8&255]<<16|GN[a&255]<<8|GN[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
xHa=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=HN[c>>>24]^IN[d>>16&255]^QN[e>>8&255]^RN[f&255]^b[n++],l=HN[d>>>24]^IN[e>>16&255]^QN[f>>8&255]^RN[c&255]^b[n++],m=HN[e>>>24]^IN[f>>16&255]^QN[c>>8&255]^RN[d&255]^b[n++],f=HN[f>>>24]^IN[c>>16&255]^QN[d>>8&255]^RN[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=GN[c>>>24]^h>>>24;a[1]=GN[d>>16&255]^h>>16&255;a[2]=GN[e>>8&255]^
h>>8&255;a[3]=GN[f&255]^h&255;h=b[41];a[4]=GN[d>>>24]^h>>>24;a[5]=GN[e>>16&255]^h>>16&255;a[6]=GN[f>>8&255]^h>>8&255;a[7]=GN[c&255]^h&255;h=b[42];a[8]=GN[e>>>24]^h>>>24;a[9]=GN[f>>16&255]^h>>16&255;a[10]=GN[c>>8&255]^h>>8&255;a[11]=GN[d&255]^h&255;h=b[43];a[12]=GN[f>>>24]^h>>>24;a[13]=GN[c>>16&255]^h>>16&255;a[14]=GN[d>>8&255]^h>>8&255;a[15]=GN[e&255]^h&255};
UN=function(){if(!yHa&&!g.GD){if(TN)return TN;var a;TN=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=TN)?0:b.importKey)&&(null==(c=TN)?0:c.sign)&&(null==(d=TN)?0:d.encrypt))return TN;TN=void 0}};
zHa=function(){this.C=this.j=0;this.B=Array.from({length:VN.length}).fill(0)};
AHa=function(){};
BHa=function(a){this.name=a;this.startTimeMs=(0,g.pD)();this.j=!1};
CHa=function(){this.j=new AHa};
EHa=function(a,b,c,d){if(b&&"object"===typeof b&&"then"in b&&"function"===typeof b.then){var e=function(f){DHa(a,c,(0,g.pD)()-d);return f};
return b.then(e,e)}DHa(a,c,(0,g.pD)()-d);return b};
DHa=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.j||(a.j[b]=new zHa),a.j[b].Lg(c,d))};
FHa=function(){};
GHa=function(a){if(!WN.isActive())return a.exports.AES128CTRCipher_encrypt.bind(a.exports);var b=a.j?"oals":"oalw";return function(c,d,e){WN.Ek(b,function(){a.exports.AES128CTRCipher_encrypt(c,d,e)})}};
XN=function(a,b){g.I.call(this);var c=this;this.j=a;this.B=GHa(this.j);this.cipher=this.j.exports.AES128CTRCipher_create(b.byteOffset);this.addOnDisposeCallback(function(){c.j.exports.AES128CTRCipher_release(c.cipher)})};
g.YN=function(a){this.D=a};
g.ZN=function(a){g.I.call(this);this.B=a};
$N=function(a,b){this.B=new XN(a,b)};
HHa=function(a){this.G=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.K=new Uint8Array(64);this.B=0;this.G.set(a);this.C.set(a);for(a=0;64>a;a++)this.G[a]^=92,this.C[a]^=54;this.reset()};
IHa=function(a,b,c){for(var d=a.N,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],r,t,v,x=0;64>x;)16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=q+aO[x]+v+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),t=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=r+t,l+=r,x++,16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=
d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=p+aO[x]+v+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),t=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=r+t,h+=r,x++,16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=n+aO[x]+v+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^
~h&m),t=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=r+t,f+=r,x++,16>x?(d[x]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[x-2],t=d[x-15],v=d[x-7]+d[x-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[x]=v),r=m+aO[x]+v+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),t=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),v=q,q=l,l=v,v=p,p=h,h=v,v=n,n=f,f=v,m=e+r,e=r+t,x++;a.j[0]=e+a.j[0]|0;a.j[1]=f+a.j[1]|0;a.j[2]=h+a.j[2]|0;a.j[3]=
l+a.j[3]|0;a.j[4]=m+a.j[4]|0;a.j[5]=n+a.j[5]|0;a.j[6]=p+a.j[6]|0;a.j[7]=q+a.j[7]|0};
KHa=function(a){var b=new Uint8Array(32),c=64-a.B;55<a.B&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.D,f=1;9>f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;JHa(a);return b};
JHa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.N=[];a.N.length=64;a.D=0;a.B=0};
LHa=function(a){this.j=a};
MHa=function(a,b,c){a=new HHa(a.j);a.update(b);a.update(c);b=KHa(a);a.update(a.G);a.update(b);b=KHa(a);a.reset();return b};
NHa=function(a){this.B=a};
OHa=function(a,b,c,d){var e,f,h;return g.H(function(l){switch(l.j){case 1:if(a.j){l.Ka(2);break}return g.z(l,d.importKey("raw",a.B,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:a.j=l.B;case 2:return e=new Uint8Array(b.length+c.length),e.set(b),e.set(c,b.length),f={name:"HMAC",hash:"SHA-256"},g.z(l,d.sign(f,a.j,e),4);case 4:return h=l.B,l.return(new Uint8Array(h))}})};
PHa=function(a,b,c){a.C||(a.C=new LHa(a.B));return MHa(a.C,b,c)};
QHa=function(a,b,c){var d,e;return g.H(function(f){if(1==f.j){d=UN();if(!d)return f.return(PHa(a,b,c));g.Ba(f,3);return g.z(f,OHa(a,b,c,d),5)}if(3!=f.j)return f.return(f.B);e=g.Da(f);g.uF(e);yHa=!0;return f.return(PHa(a,b,c))})};
bO=function(){var a=RHa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Zla.apply(null,[$la.apply(null,g.pa(b))].concat(g.pa(c)));this.store=bma(a,void 0,b)};
g.SHa=function(a,b,c){for(var d=Object.assign({},a),e=g.u(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.pa(h),g.pa(l)):l;else if(!Array.isArray(l)&&g.bb(l)&&!Array.isArray(h)&&g.bb(h))d[f]=g.SHa(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.QC("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,Wnb:h,updateValue:l}),
g.tF(b),a}return d};
cO=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
THa=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};
dO=function(a,b){b=g.u(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
eO=function(a,b,c){return a.split(b).Gm.split(c).zI};
UHa=function(a){a.D=void 0;a.B=0;a.C=0};
VHa=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.j[a.B].length};
WHa=function(a){if(!a.D){var b=a.j[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D};
XHa=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(!VHa(a,b,c)){var d=a.B,e=a.C;a.focus(b+c-1);e=new Uint8Array(a.C+a.j[a.B].length-e);for(var f=0,h=d;h<=a.B;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.B-d+1,e);UHa(a);a.focus(b)}d=a.j[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)};
fO=function(a,b,c){a=XHa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
YHa=function(a,b,c){a=fO(a,void 0===b?0:b,void 0===c?-1:c);b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(c=0;c<a.length;c++)b[c]=a[c]}return b};
gO=function(a,b){a.focus(b);return a.j[a.B][b-a.C]};
ZHa=function(a,b){a.focus(b);return VHa(a,b,4)?WHa(a).getUint32(b-a.C):256*(256*(256*gO(a,b)+gO(a,b+1))+gO(a,b+2))+gO(a,b+3)};
$Ha=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
hO=function(a){return String.fromCharCode.apply(null,a)};
jO=function(a){return a.length?iO?iO.decode(a):hO(a):""};
g.lO=function(a){if(!a.length)return"";try{if(iO)return iO.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)kO[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;kO[e++]=55296|f>>10;f=56320|f&1023}kO[e++]=f}}f=String.fromCharCode.apply(String,kO);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
nO=function(a,b){var c;if(null==(c=mO)?0:c.encodeInto)return b=mO.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};
aIa=function(a){if(mO)return mO.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=nO(a,b);b.length<c&&(b=new Uint8Array(c),c=nO(a,b));b.length>c&&(b=b.subarray(0,c));return b};
oO=function(a){this.j=a;this.pos=0;this.B=-1};
pO=function(a){var b=gO(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=gO(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
qO=function(a,b){var c=a.B;for(a.B=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=pO(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.B=c;break}c=-1;switch(e){case 0:pO(a);break;case 1:a.pos+=8;break;case 2:d=pO(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
rO=function(a,b){if(qO(a,b))return pO(a)};
sO=function(a,b){if(qO(a,b))return!!pO(a)};
tO=function(a,b){if(qO(a,b)){b=pO(a);var c=fO(a.j,a.pos,b);a.pos+=b;return c}};
uO=function(a,b){if(a=tO(a,b))return g.lO(a)};
vO=function(a,b,c){if(a=tO(a,b))return c(new oO(new cO([a])))};
wO=function(a,b){for(var c=[];qO(a,b);)c.push(pO(a));return c.length?c:void 0};
xO=function(a,b,c){for(var d=[],e;e=tO(a,b);)d.push(c(new oO(new cO([e]))));return d.length?d:void 0};
yO=function(a,b){a=a instanceof Uint8Array?new cO([a]):a;return b(new oO(a))};
bIa=function(a,b,c){if(b&&c&&c.buffer===b.exports.memory.buffer){var d=b.exports.realloc(c.byteOffset,a);if(d)return new Uint8Array(b.exports.memory.buffer,d,a)}a=b?new Uint8Array(b.exports.memory.buffer,b.exports.malloc(a),a):new Uint8Array(a);c&&a.set(c);return a};
cIa=function(a,b){this.C=b;this.pos=0;this.B=[];this.j=bIa(void 0===a?4096:a,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)};
zO=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=2*a.j.length;c<b;)c*=2;a.j=bIa(c,a.C,a.j.subarray(0,a.pos));a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength)}};
AO=function(a,b){if(268435455<b){zO(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(zO(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};
BO=function(a,b,c){void 0!==c&&(AO(a,8*b),AO(a,c))};
CO=function(a,b,c){void 0!==c&&BO(a,b,c?1:0)};
DO=function(a,b,c){void 0!==c&&(AO(a,8*b+2),b=c.length,AO(a,b),zO(a,b),a.j.set(c,a.pos),a.pos+=b)};
EO=function(a,b,c){void 0!==c&&(dIa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),zO(a,1.2*c.length),b=nO(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(zO(a,b),b=nO(c,a.j.subarray(a.pos))),a.pos+=b,eIa(a))};
dIa=function(a,b,c){c=void 0===c?2:c;AO(a,8*b+2);a.B.push(a.pos);a.B.push(c);a.pos+=c};
eIa=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}};
FO=function(a,b,c,d,e){c&&(dIa(a,b,void 0===e?3:e),d(a,c),eIa(a))};
g.GO=function(a,b,c){c=new cIa(4096,c);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)};
g.HO=function(a){var b=new oO(new cO([Fg(decodeURIComponent(a))]));a=uO(b,2);b=rO(b,4);var c=fIa[b];if("undefined"===typeof c)throw a=new g.QC("Failed to recognize field number",{name:"EntityKeyHelperError",rmb:b}),g.tF(a),a;return{F6:b,entityType:c,entityId:a}};
g.IO=function(a,b){var c=new cIa;DO(c,2,aIa(a));a=gIa[b];if("undefined"===typeof a)throw b=new g.QC("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.tF(b),b;BO(c,4,a);BO(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.Dg(b))};
JO=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))};
hIa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.SHa(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))};
iIa=function(a,b){a=void 0===a?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null==(f=e.options)?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.tF(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.tF(new g.QC("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.fd(e.payload);
return JO(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=g.HO(e).entityType;l=JO(d,m,e)}catch(q){if(q instanceof Error)g.tF(new g.QC("Failed to deserialize entity key",{entityKey:e,NQ:q.message})),l=d;else throw q;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.tF(new g.QC("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.fd(e.payload);var n,p;return hIa(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 JO(a,c.entityType,c.key,c.E6);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 JO(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,hIa(a,c.entityType,c.key,c.E6,c.Lnb);default:return a}};
KO=function(a,b,c){return a[b]?a[b][c]||null:null};
kIa=function(a){var b=a.hours||0;var c=a.minutes||0,d=a.seconds||0;b=d+60*c+3600*b+86400*(a.days||0)+604800*(a.weeks||0)+2629800*(a.months||0)+31557600*(a.years||0);0>=b?b={hours:0,minutes:0,seconds:0}:(a=b,b=Math.floor(a/3600),a%=3600,c=Math.floor(a/60),d=Math.floor(a%60),b={hours:b,minutes:c,seconds:d});var e=void 0===b.hours?0:b.hours;c=void 0===b.minutes?0:b.minutes;a=void 0===b.seconds?0:b.seconds;d=0<e;b=[];if(d){e=(new Intl.NumberFormat("en-u-nu-latn")).format(e);var f=["fr"],h="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");
e="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(LO)?e.replace(",","\u00a0"):f.includes(LO)?e.replace(",","\u202f"):h.includes(LO)?e.replace(",","."):e;b.push(e)}d=void 0===d?!1:d;c=(["af","be","lt"].includes(LO)||d)&&10>c?jIa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=jIa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(LO)&&(c=".");return b.join(c)};
jIa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
lIa=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};
mIa=function(a){if(a&&a.simpleText)return a.simpleText;var b="";if(a&&a.runs)for(var c=0;c<a.runs.length;c++)a.runs[c].text&&(b+=a.runs[c].text);return b};
MO=function(a){return a?function(){try{return a.apply(this,arguments)}catch(b){g.tF(b)}}:a};
NO=function(a,b,c){if(!g.PB("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)};
OO=function(a,b,c){if(!g.PB("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.PB("jspb_translator_log_errors")&&g.wB(a)};
oIa=function(a){var b=new Cma,c=0;try{var d=a.eventType;void 0!==d&&(S(b,1,nIa[d]),c++);var e=a.storedEventsCount;void 0!==e&&(vk(b,2,e),c++);var f=a.expiredEventsCount;void 0!==f&&(vk(b,3,f),c++);var h=a.averageTimeBetweenDispatchesMs;void 0!==h&&(vk(b,4,h),c++);var l=a.oldestStoredEventAgeMs;void 0!==l&&(vk(b,5,l),c++);var m=a.metricIntervalMs;void 0!==m&&(vk(b,6,m),c++);var n=a.dispatchedEventCount;void 0!==n&&(vk(b,7,n),c++);var p=a.dispatchAttemptCount;void 0!==p&&(vk(b,8,p),c++);var q=a.withDiskSpaceMs;
void 0!==q&&(xk(b,9,q),c++);var r=a.withNetworkMs;void 0!==r&&(xk(b,10,r),c++);var t=a.foregroundMs;void 0!==t&&(xk(b,11,t),c++);var v=a.activeMs;void 0!==v&&(xk(b,12,v),c++);var x=a.condensedPageBcSlackCount;void 0!==x&&(vk(b,13,x),c++);var A=a.persistedDeleteUsedCount;void 0!==A&&(vk(b,14,A),c++);var E=a.persistedDeleteCount;void 0!==E&&(vk(b,15,E),c++);var F=a.eventDisabledCount;void 0!==F&&(vk(b,16,F),c++);var G=a.identityResolutionErrorCount;void 0!==G&&(vk(b,17,G),c++);var M=a.exceededMaxRetryCount;
void 0!==M&&(vk(b,18,M),c++);var P=a.condensedPageBcPersistFailCount;void 0!==P&&(vk(b,19,P),c++);var R=a.couldNotUnloadPageCount;void 0!==R&&(vk(b,20,R),c++);var ba=a.pageWasCorruptedCount;void 0!==ba&&(vk(b,24,ba),c++);var na=a.badEventIndexCount;void 0!==na&&(vk(b,27,na),c++);var ta=a.serializeErrorCount;void 0!==ta&&(vk(b,25,ta),c++);var ka=a.payloadInfoNotSetCount;void 0!==ka&&(vk(b,21,ka),c++);var va=a.requestEmptyErrorCount;void 0!==va&&(vk(b,22,va),c++);var ea=a.clientEventNotSetCount;void 0!==
ea&&(vk(b,23,ea),c++);var Y=a.differentIdCount;void 0!==Y&&(vk(b,26,Y),c++);var Ma=a.failedWriteCount;void 0!==Ma&&(vk(b,28,Ma),c++);var y=a.failedReadCount;void 0!==y&&(vk(b,29,y),c++);var aa=a.failedDispatchCount;void 0!==aa&&(vk(b,30,aa),c++);var Ua=a.failedFetchCount;void 0!==Ua&&(vk(b,31,Ua),c++);var cb=a.loggingliteLogsMoved;void 0!==cb&&(vk(b,32,cb),c++);var nb=a.loggingliteLogsDropped;void 0!==nb&&(vk(b,33,nb),c++);return[c===Object.keys(a).length,b]}catch(Na){return Z(Na),[!1,void 0]}};
PO=function(a){var b=new tA,c=0;try{var d=a.trackingParams;void 0!==d&&(b.setTrackingParams(d),c++);var e=a.veType;void 0!==e&&(vk(b,2,e),c++);var f=a.elementIndex;void 0!==f&&(vk(b,3,f),c++);var h=a.veCounter;void 0!==h&&(vk(b,6,h),c++);var l=a.dataElement;if(l){var m=PO(l);m[0]&&(Sj(b,tA,7,m[1]),c++)}var n=a.isCounterfactual;void 0!==n&&(uk(b,5,n),c++);var p=a.youtubeData;if(p){var q=new Dy,r=0;try{var t=p.channelData;if(t){var v=new rx,x=0;try{var A=t.externalId;void 0!==A&&(Bk(v,1,A),x++);var E=
[x===Object.keys(t).length,v]}catch(La){Z(La),E=[!1,void 0]}var F=E;F[0]&&(Sj(q,rx,2,F[1]),r++)}var G=p.channelItem;if(G){var M=new sx,P=0;try{var R=G.externalId;void 0!==R&&(Bk(M,1,R),P++);var ba=[P===Object.keys(G).length,M]}catch(La){Z(La),ba=[!1,void 0]}var na=ba;na[0]&&(Sj(q,sx,5,na[1]),r++)}var ta=p.playlistItem;if(ta){var ka=new jy,va=0;try{var ea=ta.externalPlaylistId;void 0!==ea&&(Bk(ka,5,ea),va++);var Y=[va===Object.keys(ta).length,ka]}catch(La){Z(La),Y=[!1,void 0]}var Ma=Y;Ma[0]&&(Sj(q,
jy,6,Ma[1]),r++)}var y=p.analyticsData;if(y){var aa=new px,Ua=0;try{var cb=y.tabName;void 0!==cb&&(S(aa,1,pIa[cb]),Ua++);var nb=y.analysisVariant;if(nb){var Na=new cx,Ta=0;try{var gb=nb.analysisSummary;if(gb){var qb=new Mw,rb=0;try{var B=gb.type;void 0!==B&&(S(qb,1,qIa[B]),rb++);var C=gb.eligibility;void 0!==C&&(S(qb,2,rIa[C]),rb++);var D=gb.sentiment;void 0!==D&&(S(qb,3,sIa[D]),rb++);var J=[rb===Object.keys(gb).length,qb]}catch(La){Z(La),J=[!1,void 0]}var K=J;K[0]&&(Sj(Na,Mw,1,K[1]),Ta++)}var ca=
nb.videoPerformanceVariant;if(ca){var sa=tIa(ca);sa[0]&&(Tj(Na,$w,2,QO,sa[1]),Ta++)}var ia=nb.videoOverviewVariant;if(ia){var L=new ax,X=0;try{var ya=ia.timePeriod;void 0!==ya&&(S(L,1,RO[ya]),X++);var xa=ia.videoPerformanceVariant;if(xa){var Za=tIa(xa);Za[0]&&(Sj(L,$w,2,Za[1]),X++)}var Xa=ia.durationTimePeriod;void 0!==Xa&&(S(L,3,uIa[Xa]),X++);var wb=[X===Object.keys(ia).length,L]}catch(La){Z(La),wb=[!1,void 0]}var Pb=wb;Pb[0]&&(Tj(Na,ax,3,QO,Pb[1]),Ta++)}var db=nb.channelFluctuationVariant;if(db){var Qb=
new Pw,gc=0;try{var zc=db.views;void 0!==zc&&(S(Qb,1,SO[zc]),gc++);var Yb=db.driver;void 0!==Yb&&(S(Qb,2,vIa[Yb]),gc++);var uc=db.ctr;void 0!==uc&&(S(Qb,3,SO[uc]),gc++);var Wc=db.impressions;void 0!==Wc&&(S(Qb,4,SO[Wc]),gc++);var Ic=db.viewsPerVideo;void 0!==Ic&&(S(Qb,5,SO[Ic]),gc++);var Jc=[gc===Object.keys(db).length,Qb]}catch(La){Z(La),Jc=[!1,void 0]}var Kc=Jc;Kc[0]&&(Tj(Na,Pw,4,QO,Kc[1]),Ta++)}var Ub=nb.artistOverviewVariant;if(Ub){var ud=new Nw,vd=0;try{var ac=Ub.timePeriod;void 0!==ac&&(S(ud,
1,RO[ac]),vd++);var Wb=Ub.variantType;void 0!==Wb&&(S(ud,2,wIa[Wb]),vd++);var Lc=[vd===Object.keys(Ub).length,ud]}catch(La){Z(La),Lc=[!1,void 0]}var Gb=Lc;Gb[0]&&(Tj(Na,Nw,5,QO,Gb[1]),Ta++)}var Zc=nb.monthlySubsVariant;if(Zc){var wd=xIa(Zc);wd[0]&&(Tj(Na,Uw,6,QO,wd[1]),Ta++)}var Nb=nb.monthlyRevenueVariant;if(Nb){var qe=yIa(Nb);qe[0]&&(Tj(Na,Tw,7,QO,qe[1]),Ta++)}var Od=nb.holisticMonthlyOverviewVariant;if(Od){var Pd=new Vw,Le=0;try{var Ae=Od.viewsPerformance;if(Ae){var Gd=zIa(Ae);Gd[0]&&(Sj(Pd,Sw,
1,Gd[1]),Le++)}var Ef=Od.subsPerformance;if(Ef){var Xe=xIa(Ef);Xe[0]&&(Sj(Pd,Uw,2,Xe[1]),Le++)}var ce=Od.revenuePerformance;if(ce){var Ff=yIa(ce);Ff[0]&&(Sj(Pd,Tw,3,Ff[1]),Le++)}var de=[Le===Object.keys(Od).length,Pd]}catch(La){Z(La),de=[!1,void 0]}var re=de;re[0]&&(Tj(Na,Vw,8,QO,re[1]),Ta++)}var Hd=nb.personalizedChannelOverviewVariant;if(Hd){var xd=new Zw,hd=0;try{var Qd=Hd.timePeriod;void 0!==Qd&&(S(xd,1,RO[Qd]),hd++);var yd=Hd.viewsPerformance;if(yd){var lf=zIa(yd);lf[0]&&(Sj(xd,Sw,2,lf[1]),hd++)}var Tf=
[hd===Object.keys(Hd).length,xd]}catch(La){Z(La),Tf=[!1,void 0]}var se=Tf;se[0]&&(Tj(Na,Zw,9,QO,se[1]),Ta++)}var nc=nb.channelNewReturningVariant;if(nc){var Me=new Qw,bh=0;try{var Qh=nc.uniqueViewers;void 0!==Qh&&(S(Me,1,SO[Qh]),bh++);var Bi=nc.newViewers;void 0!==Bi&&(S(Me,2,SO[Bi]),bh++);var Ci=nc.returningViewers;void 0!==Ci&&(S(Me,3,SO[Ci]),bh++);var Jf=[bh===Object.keys(nc).length,Me]}catch(La){Z(La),Jf=[!1,void 0]}var af=Jf;af[0]&&(Tj(Na,Qw,10,QO,af[1]),Ta++)}var bf=nb.lowReturningViewersDataStoryVariant;
if(bf){var Rh=new Ww,qc=0;try{var vc=bf.videoListType;void 0!==vc&&(S(Rh,1,AIa[vc]),qc++);var Ec=[qc===Object.keys(bf).length,Rh]}catch(La){Z(La),Ec=[!1,void 0]}var Gg=Ec;Gg[0]&&(Tj(Na,Ww,11,QO,Gg[1]),Ta++)}var Pc=nb.weeklyDataStoryVariant;if(Pc){var cf=new bx,Xf=0;try{var Di=Pc.dateId;void 0!==Di&&(wk(cf,1,Di),Xf++);var Ei=[Xf===Object.keys(Pc).length,cf]}catch(La){Z(La),Ei=[!1,void 0]}var Sh=Ei;Sh[0]&&(Tj(Na,bx,12,QO,Sh[1]),Ta++)}var Hg=nb.monthlyDataStoryVariant;if(Hg){var Kf=new Xw,fh=0;try{var lj=
Hg.dateId;void 0!==lj&&(wk(Kf,1,lj),fh++);var nf=Hg.highlightType;void 0!==nf&&(S(Kf,2,BIa[nf]),fh++);var df=Hg.adviceType;void 0!==df&&(S(Kf,3,CIa[df]),fh++);var ng=Hg.revenueInsightType;void 0!==ng&&(S(Kf,4,DIa[ng]),fh++);var Fi=[fh===Object.keys(Hg).length,Kf]}catch(La){Z(La),Fi=[!1,void 0]}var Th=Fi;Th[0]&&(Tj(Na,Xw,13,QO,Th[1]),Ta++)}var of=nb.otherFormatsDataStoryVariant;if(of){var gh=new Yw,hh=0;try{var Gi=of.overlapShorts;void 0!==Gi&&(wk(gh,1,Gi),hh++);var De=of.overlapChannels;void 0!==
De&&(wk(gh,2,De),hh++);var ef=[hh===Object.keys(of).length,gh]}catch(La){Z(La),ef=[!1,void 0]}var Jd=ef;Jd[0]&&(Tj(Na,Yw,14,QO,Jd[1]),Ta++)}var mj=nb.audienceWatchesLongformDataStoryVariant;if(mj){var ff=new Ow,pf=0;try{var Pe=mj.hasOverlapVideo;void 0!==Pe&&(uk(ff,1,Pe),pf++);var og=mj.hasOverlapLivestream;void 0!==og&&(uk(ff,2,og),pf++);var Ig=mj.overlapChannels;void 0!==Ig&&(wk(ff,3,Ig),pf++);var Ee=[pf===Object.keys(mj).length,ff]}catch(La){Z(La),Ee=[!1,void 0]}var pg=Ee;pg[0]&&(Tj(Na,Ow,15,QO,
pg[1]),Ta++)}var Lf=nb.contentInspirationDataStoryVariant;if(Lf){var Uh=new Rw,Zj=0;try{var Rl=Lf.hasVideoOverlapData;void 0!==Rl&&(uk(Uh,1,Rl),Zj++);var Rk=Lf.hasChannelOverlapData;void 0!==Rk&&(uk(Uh,2,Rk),Zj++);var Sl=Lf.hasSearchTermsData;void 0!==Sl&&(uk(Uh,3,Sl),Zj++);var Tl=[Zj===Object.keys(Lf).length,Uh]}catch(La){Z(La),Tl=[!1,void 0]}var ak=Tl;ak[0]&&(Tj(Na,Rw,16,QO,ak[1]),Ta++)}var qf=[Ta===Object.keys(nb).length,Na]}catch(La){Z(La),qf=[!1,void 0]}var Wd=qf;Wd[0]&&(Sj(aa,cx,12,Wd[1]),Ua++)}var Xd=
y.cardConfig;if(Xd){var rf=new gx,ih=0;try{var Ul=Xd.cardType;void 0!==Ul&&(S(rf,3,EIa[Ul]),ih++);var Sk=Xd.legacyMobileCardType;void 0!==Sk&&(S(rf,5,FIa[Sk]),ih++);var nj=Xd.entityType;void 0!==nj&&(S(rf,4,GIa[nj]),ih++);var oj=Xd.tableCardConfig;if(oj){var qg=new fx,Yf=0;try{var bk=oj.dimension;void 0!==bk&&(S(qg,1,TO[bk]),Yf++);var Tk=oj.metrics;void 0!==Tk&&(OO(qg.j.bind(qg),Tk,TO),Yf++);var Vl=[Yf===Object.keys(oj).length,qg]}catch(La){Z(La),Vl=[!1,void 0]}var jh=Vl;jh[0]&&(Tj(rf,fx,1,HIa,jh[1]),
ih++)}var Vh=Xd.keyMetricCardConfig;if(Vh){var Hi=new ex,pj=0;try{var kh=Vh.metricTabConfigs;kh&&(NO(Hi.j.bind(Hi),kh,IIa),pj++);var lh=[pj===Object.keys(Vh).length,Hi]}catch(La){Z(La),lh=[!1,void 0]}var sf=lh;sf[0]&&(Tj(rf,ex,2,HIa,sf[1]),ih++)}var Wl=[ih===Object.keys(Xd).length,rf]}catch(La){Z(La),Wl=[!1,void 0]}var Xl=Wl;Xl[0]&&(Sj(aa,gx,13,Xl[1]),Ua++)}var Yl=y.externalVideoId;void 0!==Yl&&(Q(aa,15,Yl),Ua++);var Uk=y.videoSid;void 0!==Uk&&(xk(aa,16,Uk),Ua++);var Qe=y.exploreConfig;if(Qe){var Mf=
new ox,tf=0;try{var Zl=Qe.metrics;void 0!==Zl&&(OO(Mf.j.bind(Mf),Zl,TO),tf++);var Vk=Qe.dimension;void 0!==Vk&&(S(Mf,2,TO[Vk]),tf++);var Wk=Qe.timePeriodType;void 0!==Wk&&(S(Mf,3,RO[Wk]),tf++);var mc=[tf===Object.keys(Qe).length,Mf]}catch(La){Z(La),mc=[!1,void 0]}var Qo=mc;Qo[0]&&(Sj(aa,ox,18,Qo[1]),Ua++)}var Ii=y.contentInspirationEntity;if(Ii){var qj=new Lw,$l=0;try{var am=Ii.video;if(am){var Xk=new Kw,dn=0;try{var en=am.externalVideoId;void 0!==en&&(Q(Xk,1,en),dn++);var Ro=[dn===Object.keys(am).length,
Xk]}catch(La){Z(La),Ro=[!1,void 0]}var Gq=Ro;Gq[0]&&(Tj(qj,Kw,1,UO,Gq[1]),$l++)}var bm=Ii.kgTopic;if(bm){var So=new Jw,Hq=0;try{var Yk=bm.kgTopicMid;void 0!==Yk&&(Q(So,1,Yk),Hq++);var fn=[Hq===Object.keys(bm).length,So]}catch(La){Z(La),fn=[!1,void 0]}var cm=fn;cm[0]&&(Tj(qj,Jw,2,UO,cm[1]),$l++)}var ck=Ii.freeformTopic;if(ck){var Wh=new Hw,mh=0;try{var dm=ck.freeformTopic;void 0!==dm&&(Q(Wh,1,dm),mh++);var Iq=ck.languageCode;void 0!==Iq&&(Q(Wh,4,Iq),mh++);var Jq=ck.isContentGap;void 0!==Jq&&(uk(Wh,
2,Jq),mh++);var To=ck.isShortsContentGap;void 0!==To&&(uk(Wh,3,To),mh++);var Zf=ck.isInVideoIdeaShelf;void 0!==Zf&&(uk(Wh,5,Zf),mh++);var Xh=[mh===Object.keys(ck).length,Wh]}catch(La){Z(La),Xh=[!1,void 0]}var gn=Xh;gn[0]&&(Tj(qj,Hw,3,UO,gn[1]),$l++)}var nh=Ii.generatedOutline;if(nh){var Ji=new Iw,Ki=0;try{var Uo=nh.feedbackToken;void 0!==Uo&&(Q(Ji,1,Uo),Ki++);var rg=[Ki===Object.keys(nh).length,Ji]}catch(La){Z(La),rg=[!1,void 0]}var Yh=rg;Yh[0]&&(Tj(qj,Iw,4,UO,Yh[1]),$l++)}var Zh=[$l===Object.keys(Ii).length,
qj]}catch(La){Z(La),Zh=[!1,void 0]}var Vo=Zh;Vo[0]&&(Sj(aa,Lw,19,Vo[1]),Ua++)}var Wo=[Ua===Object.keys(y).length,aa]}catch(La){Z(La),Wo=[!1,void 0]}var Kq=Wo;Kq[0]&&(Sj(q,px,20,Kq[1]),r++)}var em=p.promotionData;if(em){var Xo=new ky,Yo=0;try{var Lq=em.promotionId;void 0!==Lq&&(Q(Xo,1,Lq),Yo++);var Li=em.placementType;void 0!==Li&&(S(Xo,9,JIa[Li]),Yo++);var dk=[Yo===Object.keys(em).length,Xo]}catch(La){Z(La),dk=[!1,void 0]}var ek=dk;ek[0]&&(Sj(q,ky,21,ek[1]),r++)}var Zk=p.backstageItem;if(Zk){var fm=
new qx,gm=0;try{var $c=Zk.stanzaId;void 0!==$c&&(Q(fm,1,$c),gm++);var $h=Zk.likeCount;void 0!==$h&&(xk(fm,7,$h),gm++);var hn=Zk.backstageId;void 0!==hn&&(Q(fm,9,hn),gm++);var jn=Zk.wasPostScheduled;void 0!==jn&&(uk(fm,14,jn),gm++);var kn=[gm===Object.keys(Zk).length,fm]}catch(La){Z(La),kn=[!1,void 0]}var ln=kn;ln[0]&&(Sj(q,qx,32,ln[1]),r++)}var Jg=p.adminSelfieData;if(Jg){var oh=new lx,ai=0;try{var mn=Jg.componentId;void 0!==mn&&(Q(oh,1,mn),ai++);var Mq=Jg.componentType;void 0!==Mq&&(Q(oh,2,Mq),ai++);
var hm=Jg.payload;if(hm){var nn=new kx,im=0;try{var Zo=hm.include;if(Zo){var Nq=new hx,$o=0;try{var fk=Zo.fragmentName;void 0!==fk&&(Q(Nq,1,fk),$o++);var Mi=[$o===Object.keys(Zo).length,Nq]}catch(La){Z(La),Mi=[!1,void 0]}var gk=Mi;gk[0]&&(Tj(nn,hx,1,KIa,gk[1]),im++)}var jm=hm.toolboxPage;if(jm){var ap=new jx,hk=0;try{var ik=jm.fragmentName;void 0!==ik&&(Q(ap,1,ik),hk++);var $k=[hk===Object.keys(jm).length,ap]}catch(La){Z(La),$k=[!1,void 0]}var al=$k;al[0]&&(Tj(nn,jx,2,KIa,al[1]),im++)}var bp=hm.reviewQueuePage;
if(bp){var Oq=new ix,bl=0;try{var rj=bp.queueId;void 0!==rj&&(vk(Oq,1,rj),bl++);var km=[bl===Object.keys(bp).length,Oq]}catch(La){Z(La),km=[!1,void 0]}var cl=km;cl[0]&&(Tj(nn,ix,3,KIa,cl[1]),im++)}var cp=[im===Object.keys(hm).length,nn]}catch(La){Z(La),cp=[!1,void 0]}var Pq=cp;Pq[0]&&(Sj(oh,kx,3,Pq[1]),ai++)}var Qq=[ai===Object.keys(Jg).length,oh]}catch(La){Z(La),Qq=[!1,void 0]}var on=Qq;on[0]&&(Sj(q,lx,41,on[1]),r++)}var lm=p.notificationState;if(lm){var ph=new yy,pn=0;try{var mm=lm.inboxInteractionData;
if(mm){var Kg=new wy,Rq=0;try{var dp=mm.notifications;dp&&(NO(Kg.j.bind(Kg),dp,LIa),Rq++);var Sq=[Rq===Object.keys(mm).length,Kg]}catch(La){Z(La),Sq=[!1,void 0]}var dl=Sq;dl[0]&&(Sj(ph,wy,9,dl[1]),pn++)}var sj=[pn===Object.keys(lm).length,ph]}catch(La){Z(La),sj=[!1,void 0]}var bi=sj;bi[0]&&(Sj(q,yy,59,bi[1]),r++)}var qh=p.delegationContext;if(qh){var ci=new hy,Ni=0;try{var ep=qh.externalChannelId;void 0!==ep&&(Q(ci,1,ep),Ni++);var Tq=qh.externalOwnerId;void 0!==Tq&&(Q(ci,3,Tq),Ni++);var qn=qh.artistId;
void 0!==qn&&(Q(ci,4,qn),Ni++);var nm=qh.roleType;if(nm){var Oi=new gy,tj=0;try{var uj=nm.channelRoleType;void 0!==uj&&(Ck(Oi,1,MIa,NIa[uj]),tj++);var rn=nm.artistRoleType;void 0!==rn&&(Ck(Oi,2,MIa,OIa[rn]),tj++);var Pi=nm.contentOwnerRoleType;void 0!==Pi&&(Ck(Oi,3,MIa,PIa[Pi]),tj++);var el=[tj===Object.keys(nm).length,Oi]}catch(La){Z(La),el=[!1,void 0]}var fl=el;fl[0]&&(Sj(ci,gy,5,fl[1]),Ni++)}var sn=qh.oacChannelId;void 0!==sn&&(Q(ci,6,sn),Ni++);var fp=qh.isInternalUser;void 0!==fp&&(uk(ci,8,fp),
Ni++);var gp=qh.user;void 0!==gp&&(uk(ci,10,gp),Ni++);var Us=qh.delegationContextSerialized;void 0!==Us&&(Bk(ci,9,Us),Ni++);var Uq=[Ni===Object.keys(qh).length,ci]}catch(La){Z(La),Uq=[!1,void 0]}var Vq=Uq;Vq[0]&&(Sj(q,hy,63,Vq[1]),r++)}var tn=p.campaignData;if(tn){var hp=new uy,jk=0;try{var un=tn.campaignName;void 0!==un&&(Q(hp,1,un),jk++);var vn=tn.campaignVersion;void 0!==vn&&(Q(hp,2,vn),jk++);var Wq=[jk===Object.keys(tn).length,hp]}catch(La){Z(La),Wq=[!1,void 0]}var Xq=Wq;Xq[0]&&(Sj(q,uy,64,Xq[1]),
r++)}var om=p.scoringEventInfo;if(om){var ip=new ly,jp=0;try{var Yq=om.scoringTrackingParams;void 0!==Yq&&(Bk(ip,1,Yq),jp++);var Zq=[jp===Object.keys(om).length,ip]}catch(La){Z(La),Zq=[!1,void 0]}var pm=Zq;pm[0]&&(Sj(q,ly,77,pm[1]),r++)}var qm=p.servletData;if(qm){var wn=new my,xn=0;try{var kp=qm.serializedServletEventId;void 0!==kp&&(Q(wn,1,kp),xn++);var lp=[xn===Object.keys(qm).length,wn]}catch(La){Z(La),lp=[!1,void 0]}var $q=lp;$q[0]&&(Sj(q,my,83,$q[1]),r++)}var mp=p.yoodleData;if(mp){var ar=new ty,
br=0;try{var he=mp.promoId;void 0!==he&&(Q(ar,1,he),br++);var Fe=[br===Object.keys(mp).length,ar]}catch(La){Z(La),Fe=[!1,void 0]}var ie=Fe;ie[0]&&(Sj(q,ty,85,ie[1]),r++)}var gl=p.videoRestrictionData;if(gl){var yn=new sy,np=0;try{var cr=gl.restrictions;cr&&(NO(yn.j.bind(yn),cr,QIa),np++);var op=gl.prechecksPending;void 0!==op&&(uk(yn,2,op),np++);var pp=[np===Object.keys(gl).length,yn]}catch(La){Z(La),pp=[!1,void 0]}var qp=pp;qp[0]&&(Sj(q,sy,92,qp[1]),r++)}var di=p.creatorMusicData;if(di){var Qi=new Lx,
vj=0;try{var dr=di.entity;if(dr){var er=RIa(dr);er[0]&&(Sj(Qi,Jx,1,er[1]),vj++)}var hl=di.entities;hl&&(NO(Qi.j.bind(Qi),hl,RIa),vj++);var zn=di.track;if(zn){var An=SIa(zn);An[0]&&(Tj(Qi,Ix,3,VO,An[1]),vj++)}var rp=di.artist;if(rp){var il=new Ax,rm=0;try{var Ri=rp.details;if(Ri){var Bn=new zx,Cn=0;try{var fr=Ri.kgMid;void 0!==fr&&(Q(Bn,1,fr),Cn++);var gr=Ri.name;void 0!==gr&&(Q(Bn,2,gr),Cn++);var kk=[Cn===Object.keys(Ri).length,Bn]}catch(La){Z(La),kk=[!1,void 0]}var jl=kk;jl[0]&&(Sj(il,zx,1,jl[1]),
rm++)}var lk=[rm===Object.keys(rp).length,il]}catch(La){Z(La),lk=[!1,void 0]}var hr=lk;hr[0]&&(Tj(Qi,Ax,5,VO,hr[1]),vj++)}var Dn=di.licensePurchase;if(Dn){var sp=new Kx,tp=0;try{var sm=Dn.assetId;void 0!==sm&&(Q(sp,1,sm),tp++);var ir=Dn.artTrackId;void 0!==ir&&(Q(sp,2,ir),tp++);var kl=[tp===Object.keys(Dn).length,sp]}catch(La){Z(La),kl=[!1,void 0]}var mk=kl;mk[0]&&(Tj(Qi,Kx,6,VO,mk[1]),vj++)}var ll=di.claim;if(ll){var En=new Bx,tm=0;try{var uf=ll.assetId;void 0!==uf&&(Q(En,1,uf),tm++);var sg=[tm===
Object.keys(ll).length,En]}catch(La){Z(La),sg=[!1,void 0]}var je=sg;je[0]&&(Tj(Qi,Bx,7,VO,je[1]),vj++)}var jr=di.collection;if(jr){var up=TIa(jr);up[0]&&(Tj(Qi,Gx,4,VO,up[1]),vj++)}var rh=[vj===Object.keys(di).length,Qi]}catch(La){Z(La),rh=[!1,void 0]}var sh=rh;sh[0]&&(Sj(q,Lx,96,sh[1]),r++)}var ue=p.creatorData;if(ue){var ei=new yx,um=0;try{var Vs=ue.ttWizardTargetFeature;void 0!==Vs&&(Ck(ei,1,UIa,VIa[Vs]),um++);var kr=ue.ttWizardTargetLevel;void 0!==kr&&(Ck(ei,2,UIa,WIa[kr]),um++);var lr=ue.simpleWizardDetails;
if(lr){var ev=new xx;try{var mr=[0===Object.keys(lr).length,ev]}catch(La){Z(La),mr=[!1,void 0]}var Fn=mr;Fn[0]&&(Tj(ei,xx,3,XIa,Fn[1]),um++)}var fi=ue.advancedWizardDetails;if(fi){var Gn=new vx,vm=0;try{var ml=fi.isDoubleHop;void 0!==ml&&(uk(Gn,1,ml),vm++);var vp=[vm===Object.keys(fi).length,Gn]}catch(La){Z(La),vp=[!1,void 0]}var wp=vp;wp[0]&&(Tj(ei,vx,4,XIa,wp[1]),um++)}var nr=ue.blockedWizardDetails;if(nr){var Ws=new wx,xp=0;try{var Si=nr.loggableBlockedReason;void 0!==Si&&(S(Ws,1,YIa[Si]),xp++);
var Ti=[xp===Object.keys(nr).length,Ws]}catch(La){Z(La),Ti=[!1,void 0]}var nl=Ti;nl[0]&&(Tj(ei,wx,5,XIa,nl[1]),um++)}var yp=[um===Object.keys(ue).length,ei]}catch(La){Z(La),yp=[!1,void 0]}var ol=yp;ol[0]&&(Sj(q,yx,98,ol[1]),r++)}var zp=p.adstubeData;if(zp){var Xs=new nx,Ys=0;try{var nk=zp.countryTargetingPrefill;if(nk){var wj=new mx,Ui=0;try{var pl=nk.prefilledCodes;pl&&(NO(wj.B.bind(wj),pl),Ui++);var wm=nk.finalCodes;wm&&(NO(wj.j.bind(wj),wm),Ui++);var Ap=nk.source;void 0!==Ap&&(Q(wj,3,Ap),Ui++);
var Bp=[Ui===Object.keys(nk).length,wj]}catch(La){Z(La),Bp=[!1,void 0]}var or=Bp;or[0]&&(Sj(Xs,mx,1,or[1]),Ys++)}var pr=[Ys===Object.keys(zp).length,Xs]}catch(La){Z(La),pr=[!1,void 0]}var qr=pr;qr[0]&&(Sj(q,nx,104,qr[1]),r++)}var xm=p.loggingExpectations;if(xm){var Vi=ZIa(xm);Vi[0]&&(Sj(q,Cy,106,Vi[1]),r++)}var gi=p.channelPageVeData;if(gi){var th=new tx,rr=0;try{var sr=gi.isForYouShelf;void 0!==sr&&(uk(th,2,sr),rr++);var tr=[rr===Object.keys(gi).length,th]}catch(La){Z(La),tr=[!1,void 0]}var Px=tr;
Px[0]&&(Sj(q,tx,107,Px[1]),r++)}var fv=p.shoppingAffiliateData;if(fv){var Qx=new ny,Rx=0;try{var Cp=fv.affiliateDeepLinkSource;void 0!==Cp&&(S(Qx,1,$Ia[Cp]),Rx++);var xj=[Rx===Object.keys(fv).length,Qx]}catch(La){Z(La),xj=[!1,void 0]}var ok=xj;ok[0]&&(Sj(q,ny,109,ok[1]),r++)}var ql=p.hashtagSuggestionData;if(ql){var Zs=new iy,gv=0;try{var Sx=ql.hashtagId;void 0!==Sx&&(Q(Zs,1,Sx),gv++);var Tx=ql.suggestionSources;void 0!==Tx&&(OO(Zs.j.bind(Zs),Tx,aJa),gv++);var Ux=[gv===Object.keys(ql).length,Zs]}catch(La){Z(La),
Ux=[!1,void 0]}var Vx=Ux;Vx[0]&&(Sj(q,iy,111,Vx[1]),r++)}var hv=p.componentData;if(hv){var Wx=new ux,ur=0;try{var $s=hv.standardComponentType;void 0!==$s&&(S(Wx,1,bJa[$s]),ur++);var at=[ur===Object.keys(hv).length,Wx]}catch(La){Z(La),at=[!1,void 0]}var Xx=at;Xx[0]&&(Sj(q,ux,121,Xx[1]),r++)}var bt=p.creatorShoppingTaggingData;if(bt){var vr=new fy,iv=0;try{var Yx=bt.products;Yx&&(NO(vr.j.bind(vr),Yx,cJa),iv++);var jv=bt.taggedVideos;jv&&(NO(vr.B.bind(vr),jv,dJa),iv++);var Zx=[iv===Object.keys(bt).length,
vr]}catch(La){Z(La),Zx=[!1,void 0]}var $x=Zx;$x[0]&&(Sj(q,fy,122,$x[1]),r++)}var ay=[r===Object.keys(p).length,q]}catch(La){Z(La),ay=[!1,void 0]}var by=ay;by[0]&&(Sj(b,Dy,8,by[1]),c++)}var cy=a.loggingExpectations;if(cy){var dy=ZIa(cy);dy[0]&&(Sj(b,Cy,9,dy[1]),c++)}return[c===Object.keys(a).length,b]}catch(La){return Z(La),[!1,void 0]}};
tIa=function(a){var b=new $w,c=0;try{var d=a.views;void 0!==d&&(S(b,1,SO[d]),c++);var e=a.driver;void 0!==e&&(S(b,2,eJa[e]),c++);var f=a.ctr;void 0!==f&&(S(b,3,SO[f]),c++);var h=a.avd;void 0!==h&&(S(b,4,SO[h]),c++);var l=a.impressions;void 0!==l&&(S(b,5,SO[l]),c++);var m=a.videoLength;void 0!==m&&(S(b,6,SO[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Z(n),[!1,void 0]}};
xIa=function(a){var b=new Uw,c=0;try{var d=a.subsGrowth;void 0!==d&&(S(b,1,SO[d]),c++);var e=a.nonSubViews;void 0!==e&&(S(b,2,SO[e]),c++);var f=a.subsAddedPerNonSubViews;void 0!==f&&(S(b,3,SO[f]),c++);var h=a.accountsClosed;void 0!==h&&(S(b,4,SO[h]),c++);var l=a.subsRemovedToAddedRatio;void 0!==l&&(S(b,5,SO[l]),c++);var m=a.videosPublished;void 0!==m&&(S(b,6,SO[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Z(n),[!1,void 0]}};
yIa=function(a){var b=new Tw,c=0;try{var d=a.revenue;void 0!==d&&(S(b,1,SO[d]),c++);var e=a.revenueSource;void 0!==e&&(S(b,2,fJa[e]),c++);var f=a.revenueDrivingMetrics;void 0!==f&&(OO(b.j.bind(b),f,gJa),c++);var h=a.revenueChangeReason;void 0!==h&&(S(b,4,hJa[h]),c++);var l=a.revenueChangeFact;void 0!==l&&(S(b,5,iJa[l]),c++);var m=a.driverCountryCode;void 0!==m&&(Q(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Z(n),[!1,void 0]}};
zIa=function(a){var b=new Sw,c=0;try{var d=a.views;void 0!==d&&(S(b,1,SO[d]),c++);var e=a.drivers;void 0!==e&&(OO(b.j.bind(b),e,jJa),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}};
IIa=function(a){var b=new dx,c=0;try{var d=a.metric;void 0!==d&&(S(b,1,TO[d]),c++);var e=a.comparisonMetric;void 0!==e&&(S(b,2,TO[e]),c++);var f=a.includeCumulative;void 0!==f&&(uk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Z(h),[!1,void 0]}};
LIa=function(a){var b=new vy,c=0;try{var d=a.attributionTag;void 0!==d&&(Q(b,2,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}};
QIa=function(a){var b=new ry,c=0;try{var d=a.limitedAds;if(d){var e=new qy,f=0;try{var h=d.imposer;void 0!==h&&(S(e,1,kJa[h]),f++);var l=[f===Object.keys(d).length,e]}catch(E){Z(E),l=[!1,void 0]}d=l;d[0]&&(Tj(b,qy,1,lJa,d[1]),c++)}var m=a.copyright;if(m){var n=new py;d=0;try{var p=m.policyType;void 0!==p&&(S(n,1,mJa[p]),d++);var q=m.productTagsBlocked;void 0!==q&&(uk(n,2,q),d++);var r=[d===Object.keys(m).length,n]}catch(E){Z(E),r=[!1,void 0]}m=r;m[0]&&(Tj(b,py,2,lJa,m[1]),c++)}var t=a.communityGuidelines;
if(t){var v=new oy;m=0;try{var x=t.policyVerticals;void 0!==x&&(OO(v.j.bind(v),x,nJa),m++);var A=[m===Object.keys(t).length,v]}catch(E){Z(E),A=[!1,void 0]}t=A;t[0]&&(Tj(b,oy,3,lJa,t[1]),c++)}return[c===Object.keys(a).length,b]}catch(E){return Z(E),[!1,void 0]}};
RIa=function(a){var b=new Jx,c=0;try{var d=a.featuredCollection;if(d){var e=oJa(d);e[0]&&(Tj(b,Cx,1,WO,e[1]),c++)}var f=a.mood;if(f){var h=pJa(f);h[0]&&(Tj(b,Ex,2,WO,h[1]),c++)}var l=a.genre;if(l){var m=qJa(l);m[0]&&(Tj(b,Dx,3,WO,m[1]),c++)}var n=a.track;if(n){var p=SIa(n);p[0]&&(Tj(b,Ix,4,WO,p[1]),c++)}return[c===Object.keys(a).length,b]}catch(q){return Z(q),[!1,void 0]}};
oJa=function(a){var b=new Cx,c=0;try{var d=a.id;void 0!==d&&(Q(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}};
pJa=function(a){var b=new Ex,c=0;try{var d=a.type;void 0!==d&&(S(b,1,rJa[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}};
qJa=function(a){var b=new Dx,c=0;try{var d=a.type;void 0!==d&&(S(b,1,sJa[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}};
SIa=function(a){var b=new Ix,c=0;try{var d=a.artTrackId;void 0!==d&&(Q(b,1,d),c++);var e=a.assetId;void 0!==e&&(Q(b,2,e),c++);var f=a.details;if(f){var h=new Hx;try{var l=[0===Object.keys(f).length,h]}catch(p){Z(p),l=[!1,void 0]}d=l;d[0]&&(Sj(b,Hx,3,d[1]),c++)}var m=a.parent;if(m){var n=TIa(m);n[0]&&(Sj(b,Gx,4,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return Z(p),[!1,void 0]}};
TIa=function(a){var b=new Gx,c=0;try{var d=a.featuredCollection;if(d){var e=oJa(d);e[0]&&(Tj(b,Cx,1,XO,e[1]),c++)}var f=a.mood;if(f){var h=pJa(f);h[0]&&(Tj(b,Ex,2,XO,h[1]),c++)}var l=a.genre;if(l){var m=qJa(l);m[0]&&(Tj(b,Dx,3,XO,m[1]),c++)}var n=a.section;if(n){var p=new Fx;d=0;try{var q=n.type;void 0!==q&&(S(p,1,tJa[q]),d++);var r=[d===Object.keys(n).length,p]}catch(v){Z(v),r=[!1,void 0]}n=r;n[0]&&(Tj(b,Fx,4,XO,n[1]),c++)}var t=a.dimension;void 0!==t&&(S(b,5,uJa[t]),c++);return[c===Object.keys(a).length,
b]}catch(v){return Z(v),[!1,void 0]}};
ZIa=function(a){var b=new Cy,c=0;try{var d=a.attachLoggingExpectations;if(d){var e=new Ay,f=0;try{var h=d.attachScreenExpectations;h&&(NO(e.j.bind(e),h,vJa),f++);var l=[f===Object.keys(d).length,e]}catch(r){Z(r),l=[!1,void 0]}d=l;d[0]&&(Sj(b,Ay,1,d[1]),c++)}var m=a.screenCreatedLoggingExpectations;if(m){var n=new By;d=0;try{var p=m.expectedParentScreens;p&&(NO(n.j.bind(n),p,vJa),d++);var q=[d===Object.keys(m).length,n]}catch(r){Z(r),q=[!1,void 0]}m=q;m[0]&&(Sj(b,By,2,m[1]),c++)}return[c===Object.keys(a).length,
b]}catch(r){return Z(r),[!1,void 0]}};
vJa=function(a){var b=new zy,c=0;try{var d=a.screenVeType;void 0!==d&&(hma(b,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}};
cJa=function(a){var b=new Ox,c=0;try{var d=a.taggingSource;void 0!==d&&(S(b,1,wJa[d]),c++);var e=a.id;if(e){var f=new Mx;d=0;try{var h=e.docid;void 0!==h&&(yk(f,1,h),d++);var l=[d===Object.keys(e).length,f]}catch(A){Z(A),l=[!1,void 0]}e=l;e[0]&&(Sj(b,Mx,2,e[1]),c++)}var m=a.skuId;if(m){var n=new Nx;e=0;try{var p=m.merchantId;void 0!==p&&(Nj(n,1,xJa,yi(p)),e++);var q=m.youtubeGroupId;void 0!==q&&(Nj(n,2,xJa,Yi(q)),e++);var r=m.rawMerchantOfferId;void 0!==r&&(Q(n,3,r),e++);var t=[e===Object.keys(m).length,
n]}catch(A){Z(A),t=[!1,void 0]}m=t;m[0]&&(Sj(b,Nx,3,m[1]),c++)}var v=a.userInputUrl;void 0!==v&&(Q(b,4,v),c++);var x=a.userSearchQuery;void 0!==x&&(Q(b,5,x),c++);return[c===Object.keys(a).length,b]}catch(A){return Z(A),[!1,void 0]}};
dJa=function(a){var b=new ey,c=0;try{var d=a.externalVideoId;void 0!==d&&(Q(b,1,d),c++);var e=a.products;e&&(NO(b.j.bind(b),e,cJa),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}};
AJa=function(a){var b=new Kz,c=0;try{var d=a.segments;d&&(NO(b.j.bind(b),d,yJa),c++);var e=a.transitions;e&&(NO(b.B.bind(b),e,zJa),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}};
yJa=function(a){var b=new Iz,c=0;try{var d=a.type;void 0!==d&&(S(b,1,BJa[d]),c++);var e=a.effects;e&&(NO(b.u5.bind(b),e,CJa),c++);var f=a.videoInfo;if(f){var h=DJa(f);h[0]&&(Sj(b,Hz,3,h[1]),c++)}var l=a.audioInfo;if(l){var m=new Lma;d=0;try{var n=l.sourceOffsetMs;void 0!==n&&(xk(m,1,n),d++);var p=l.sampleRateHz;void 0!==p&&(vk(m,2,p),d++);var q=l.channelCount;void 0!==q&&(vk(m,3,q),d++);var r=l.isRemote;void 0!==r&&(uk(m,4,r),d++);var t=[d===Object.keys(l).length,m]}catch(F){Z(F),t=[!1,void 0]}l=
t;l[0]&&(Sj(b,Lma,4,l[1]),c++)}var v=a.startTimeMs;void 0!==v&&(xk(b,5,v),c++);var x=a.durationMs;void 0!==x&&(yk(b,6,x),c++);var A=a.playbackRate;void 0!==A&&(b.setPlaybackRate(A),c++);var E=a.enabled;void 0!==E&&(b.MR(E),c++);return[c===Object.keys(a).length,b]}catch(F){return Z(F),[!1,void 0]}};
CJa=function(a){var b=new Mma,c=0;try{var d=a.effectBaseName;void 0!==d&&(Q(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}};
DJa=function(a){var b=new Hz,c=0;try{var d=a.resolutionWidth;void 0!==d&&(vk(b,1,d),c++);var e=a.resolutionHeight;void 0!==e&&(vk(b,2,e),c++);var f=a.frameRate;void 0!==f&&(zk(b,3,f),c++);var h=a.durationMs;void 0!==h&&(yk(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Z(l),[!1,void 0]}};
zJa=function(a){var b=new Jz,c=0;try{var d=a.incomingSegment;if(d){var e=yJa(d);e[0]&&(Sj(b,Iz,1,e[1]),c++)}var f=a.outgoingSegment;if(f){var h=yJa(f);h[0]&&(Sj(b,Iz,2,h[1]),c++)}var l=a.durationMs;void 0!==l&&(yk(b,3,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Z(m),[!1,void 0]}};
EJa=function(a){var b=new Ima,c=0;try{var d=a.previewWidth;void 0!==d&&(vk(b,1,d),c++);var e=a.previewHeight;void 0!==e&&(vk(b,2,e),c++);var f=a.fps;void 0!==f&&(vk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Z(h),[!1,void 0]}};
GKa=function(a){var b=new BA,c=0;try{var d=a.encryptedVideoId;void 0!==d&&(Q(b,1,d),c++);var e=a.cotn;void 0!==e&&(Q(b,20,e),c++);var f=a.cpn;void 0!==f&&(Q(b,30,f),c++);var h=a.transferStatusType;void 0!==h&&(S(b,38,FJa[h]),c++);var l=a.statusType;void 0!==l&&(S(b,2,GJa[l]),c++);var m=a.failureReason;void 0!==m&&(S(b,3,HJa[m]),c++);var n=a.transferFailureReason;void 0!==n&&(S(b,41,IJa[n]),c++);var p=a.failureExceptionType;void 0!==p&&(Q(b,37,p),c++);var q=a.totalFetchedKbytes;void 0!==q&&(xk(b,4,
q),c++);var r=a.diskAvailableKbytes;void 0!==r&&(xk(b,5,r),c++);var t=a.totalContentKbytes;void 0!==t&&(xk(b,21,t),c++);var v=a.alreadyDownloadedKbytes;void 0!==v&&(xk(b,22,v),c++);var x=a.fetchedFromCacheKbytes;void 0!==x&&(xk(b,23,x),c++);var A=a.systemHealth;if(A){var E=new kA,F=0;try{var G=A.tag;void 0!==G&&(S(E,1,JJa[G]),F++);var M=A.staticContext;if(M){var P=new Vma,R=0;try{var ba=M.displayDensityDpi;void 0!==ba&&(vk(P,1,ba),R++);var na=M.heightPixels;void 0!==na&&(vk(P,2,na),R++);var ta=M.widthPixels;
void 0!==ta&&(vk(P,3,ta),R++);var ka=M.memoryTotalKbytes;void 0!==ka&&(xk(P,4,ka),R++);var va=M.osSdkVersion;void 0!==va&&(vk(P,5,va),R++);var ea=M.osIncrementalVersion;void 0!==ea&&(Q(P,6,ea),R++);var Y=M.hardwareArchitecture;void 0!==Y&&(Q(P,7,Y),R++);var Ma=M.appVersionCode;void 0!==Ma&&(vk(P,8,Ma),R++);var y=M.devicePixelRatio;void 0!==y&&(zk(P,9,y),R++);var aa=M.buildFingerprint;void 0!==aa&&(Q(P,10,aa),R++);var Ua=M.socManufacturer;void 0!==Ua&&(Q(P,11,Ua),R++);var cb=M.socModel;void 0!==cb&&
(Q(P,12,cb),R++);var nb=M.availableProcessors;void 0!==nb&&(vk(P,13,nb),R++);var Na=M.cpuCores;void 0!==Na&&(vk(P,14,Na),R++);var Ta=M.heightPoints;void 0!==Ta&&(vk(P,15,Ta),R++);var gb=M.widthPoints;void 0!==gb&&(vk(P,16,gb),R++);var qb=M.androidMediaPerformanceClass;void 0!==qb&&(vk(P,17,qb),R++);var rb=[R===Object.keys(M).length,P]}catch(lb){Z(lb),rb=[!1,void 0]}var B=rb;B[0]&&(Sj(E,Vma,2,B[1]),F++)}var C=A.dynamicContext;if(C){var D=new eA,J=0;try{var K=C.screenOn;void 0!==K&&(uk(D,1,K),J++);
var ca=C.deviceRotation;void 0!==ca&&(vk(D,2,ca),J++);var sa=C.networkType;void 0!==sa&&(vk(D,3,sa),J++);var ia=C.networkCoarseState;void 0!==ia&&(vk(D,4,ia),J++);var L=C.chargingStatus;void 0!==L&&(S(D,5,KJa[L]),J++);var X=C.isInForeground;void 0!==X&&(uk(D,6,X),J++);var ya=C.viewportHeightPixels;void 0!==ya&&(vk(D,7,ya),J++);var xa=C.viewportWidthPixels;void 0!==xa&&(vk(D,8,xa),J++);var Za=C.hasCoarsePointer;void 0!==Za&&(uk(D,9,Za),J++);var Xa=C.hasFinePointer;void 0!==Xa&&(uk(D,10,Xa),J++);var wb=
C.hasHoverSupport;void 0!==wb&&(uk(D,11,wb),J++);var Pb=C.deviceFreeStorageMbytes;void 0!==Pb&&(xk(D,12,Pb),J++);var db=C.deviceStorageQuotaMbytes;void 0!==db&&(xk(D,13,db),J++);var Qb=C.deviceStorageUsageMbytes;void 0!==Qb&&(xk(D,14,Qb),J++);var gc=C.processUptimeMs;void 0!==gc&&(xk(D,15,gc),J++);var zc=C.hasAppShell;void 0!==zc&&(uk(D,16,zc),J++);var Yb=C.glVersion;void 0!==Yb&&(Q(D,17,Yb),J++);var uc=C.glRenderer;void 0!==uc&&(Q(D,18,uc),J++);var Wc=C.srsDatapushBuildIds;Wc&&(NO(D.B.bind(D),Wc,
LJa),J++);var Ic=C.playerDatapushBuildIds;Ic&&(NO(D.j.bind(D),Ic,MJa),J++);var Jc=C.creationContext;if(Jc){var Kc=new dA,Ub=0;try{var ud=Jc.activeFrontendUploadId;void 0!==ud&&(Q(Kc,1,ud),Ub++);var vd=Jc.inShortsCreation;void 0!==vd&&(uk(Kc,2,vd),Ub++);var ac=Jc.activeEffectLoggingIds;ac&&(NO(Kc.j.bind(Kc),ac,NJa),Ub++);var Wb=Jc.activePages;void 0!==Wb&&(OO(Kc.B.bind(Kc),Wb,OJa),Ub++);var Lc=[Ub===Object.keys(Jc).length,Kc]}catch(lb){Z(lb),Lc=[!1,void 0]}var Gb=Lc;Gb[0]&&(Sj(D,dA,21,Gb[1]),J++)}var Zc=
C.kimonoContext;if(Zc){var wd=new Tma,Nb=0;try{var qe=Zc.cobaltUserAgent;void 0!==qe&&(Q(wd,1,qe),Nb++);var Od=Zc.webAppVersion;void 0!==Od&&(Q(wd,2,Od),Nb++);var Pd=Zc.cobaltVersion;void 0!==Pd&&(Q(wd,3,Pd),Nb++);var Le=Zc.webAppInterface;void 0!==Le&&(S(wd,4,PJa[Le]),Nb++);var Ae=Zc.clientDocumentNonce;void 0!==Ae&&(Q(wd,5,Ae),Nb++);var Gd=Zc.applicationState;void 0!==Gd&&(S(wd,6,QJa[Gd]),Nb++);var Ef=[Nb===Object.keys(Zc).length,wd]}catch(lb){Z(lb),Ef=[!1,void 0]}var Xe=Ef;Xe[0]&&(Sj(D,Tma,22,
Xe[1]),J++)}var ce=[J===Object.keys(C).length,D]}catch(lb){Z(lb),ce=[!1,void 0]}var Ff=ce;Ff[0]&&(Sj(E,eA,3,Ff[1]),F++)}var de=A.serializedPrimesMetric;void 0!==de&&(Bk(E,4,de),F++);var re=A.serializedIosPrimesMetric;void 0!==re&&(Bk(E,6,re),F++);var Hd=A.webMetric;if(Hd){var xd=new Xma,hd=0;try{var Qd=Hd.currentHeapKbytes;void 0!==Qd&&(vk(xd,1,Qd),hd++);var yd=Hd.navigationCount;void 0!==yd&&(vk(xd,2,yd),hd++);var lf=[hd===Object.keys(Hd).length,xd]}catch(lb){Z(lb),lf=[!1,void 0]}var Tf=lf;Tf[0]&&
(Sj(E,Xma,7,Tf[1]),F++)}var se=A.crashData;if(se){var nc=new bA,Me=0;try{var bh=se.stackTrace;void 0!==bh&&(Q(nc,1,bh),Me++);var Qh=se.screenVeType;void 0!==Qh&&(vk(nc,2,Qh),Me++);var Bi=se.compactStackTrace;if(Bi){var Ci=YO(Bi);Ci[0]&&(Sj(nc,yz,3,Ci[1]),Me++)}var Jf=se.crashTimeMs;void 0!==Jf&&(xk(nc,4,Jf),Me++);var af=se.clientError;if(af){var bf=new aA,Rh=0;try{var qc=af.errorMetadata;if(qc){var vc=new Rz,Ec=0;try{var Gg=qc.exceptionCategory;void 0!==Gg&&(S(vc,1,RJa[Gg]),Ec++);var Pc=qc.serviceTrackingData;
if(Pc){var cf=new Gma,Xf=0;try{var Di=Pc.innertubeBuildChangelist;void 0!==Di&&(xk(cf,1,Di),Xf++);var Ei=Pc.innertubeBuildExperimentsSourceVersion;void 0!==Ei&&(xk(cf,2,Ei),Xf++);var Sh=Pc.innertubeBuildLabel;void 0!==Sh&&(Q(cf,3,Sh),Xf++);var Hg=Pc.innertubeBuildTimestampSec;void 0!==Hg&&(xk(cf,4,Hg),Xf++);var Kf=Pc.innertubeBuildVariantsChecksum;void 0!==Kf&&(Q(cf,5,Kf),Xf++);var fh=Pc.innertubeJobName;void 0!==fh&&(Q(cf,6,fh),Xf++);var lj=[Xf===Object.keys(Pc).length,cf]}catch(lb){Z(lb),lj=[!1,
void 0]}var nf=lj;nf[0]&&(Sj(vc,Gma,2,nf[1]),Ec++)}var df=qc.pageUrl;void 0!==df&&(Q(vc,3,df),Ec++);var ng=qc.kvPairs;ng&&(NO(vc.j.bind(vc),ng,SJa),Ec++);var Fi=qc.experimentIds;Fi&&(NO(vc.B.bind(vc),Fi),Ec++);var Th=qc.playerMetadata;if(Th){var of=new Pz,gh=0;try{var hh=Th.error;void 0!==hh&&(OO(of.j.bind(of),hh,TJa),gh++);var Gi=Th.stackTrace;void 0!==Gi&&(Q(of,2,Gi),gh++);var De=[gh===Object.keys(Th).length,of]}catch(lb){Z(lb),De=[!1,void 0]}var ef=De;ef[0]&&(Sj(vc,Pz,6,ef[1]),Ec++)}var Jd=qc.exceptionType;
void 0!==Jd&&(S(vc,7,UJa[Jd]),Ec++);var mj=qc.clientScreenNonce;void 0!==mj&&(Q(vc,8,mj),Ec++);var ff=qc.blocksMethodExecutionInfo;if(ff){var pf=new Fma,Pe=0;try{var og=ff.methodId;void 0!==og&&(wk(pf,1,og),Pe++);var Ig=ff.blockTypeId;void 0!==Ig&&(wk(pf,2,Ig),Pe++);var Ee=ff.methodType;void 0!==Ee&&(S(pf,3,VJa[Ee]),Pe++);var pg=ff.requestSize;void 0!==pg&&(wk(pf,4,pg),Pe++);var Lf=ff.responseSize;void 0!==Lf&&(wk(pf,5,Lf),Pe++);var Uh=ff.statusCode;void 0!==Uh&&(wk(pf,6,Uh),Pe++);var Zj=ff.containerId;
void 0!==Zj&&(wk(pf,7,Zj),Pe++);var Rl=ff.moduleIdentifier;void 0!==Rl&&(Q(pf,8,Rl),Pe++);var Rk=ff.datapushBuildId;void 0!==Rk&&(yk(pf,9,Rk),Pe++);var Sl=ff.attribution;void 0!==Sl&&(S(pf,10,WJa[Sl]),Pe++);var Tl=[Pe===Object.keys(ff).length,pf]}catch(lb){Z(lb),Tl=[!1,void 0]}var ak=Tl;ak[0]&&(Sj(vc,Fma,9,ak[1]),Ec++)}var qf=qc.mediaEngineMetadata;if(qf){var Wd=new g.Nz,Xd=0;try{var rf=qf.client;void 0!==rf&&(Wd.qx(XJa[rf]),Xd++);var ih=qf.mdeErrorType;void 0!==ih&&(S(Wd,2,YJa[ih]),Xd++);var Ul=
qf.uploadId;void 0!==Ul&&(Q(Wd,3,Ul),Xd++);var Sk=qf.composition;Sk&&(NO(Wd.j.bind(Wd),Sk,AJa),Xd++);var nj=qf.player;if(nj){var oj=new Lz,qg=0;try{var Yf=nj.state;void 0!==Yf&&(oj.Hc(ZJa[Yf]),qg++);var bk=nj.playbackPositionTimeMs;void 0!==bk&&(xk(oj,2,bk),qg++);var Tk=[qg===Object.keys(nj).length,oj]}catch(lb){Z(lb),Tk=[!1,void 0]}var Vl=Tk;Vl[0]&&(Sj(Wd,Lz,5,Vl[1]),Xd++)}var jh=qf.exporter;if(jh){var Vh=new Gz,Hi=0;try{var pj=jh.settings;if(pj){var kh=new Fz,lh=0;try{var sf=pj.audioChannelCount;
void 0!==sf&&(vk(kh,1,sf),lh++);var Wl=pj.resolutionWidth;void 0!==Wl&&(vk(kh,2,Wl),lh++);var Xl=pj.resolutionHeight;void 0!==Xl&&(vk(kh,3,Xl),lh++);var Yl=[lh===Object.keys(pj).length,kh]}catch(lb){Z(lb),Yl=[!1,void 0]}var Uk=Yl;Uk[0]&&(Vh.qh(Uk[1]),Hi++)}var Qe=jh.state;void 0!==Qe&&(Vh.Hc($Ja[Qe]),Hi++);var Mf=jh.durationMs;void 0!==Mf&&(yk(Vh,3,Mf),Hi++);var tf=jh.progressMs;void 0!==tf&&(yk(Vh,4,tf),Hi++);var Zl=[Hi===Object.keys(jh).length,Vh]}catch(lb){Z(lb),Zl=[!1,void 0]}var Vk=Zl;Vk[0]&&
(Sj(Wd,Gz,6,Vk[1]),Xd++)}var Wk=qf.projectId;void 0!==Wk&&(Q(Wd,7,Wk),Xd++);var mc=qf.deviceInfo;if(mc){var Qo=new Kma,Ii=0;try{var qj=mc.audioOutputLatencyMs;void 0!==qj&&(vk(Qo,1,qj),Ii++);var $l=[Ii===Object.keys(mc).length,Qo]}catch(lb){Z(lb),$l=[!1,void 0]}var am=$l;am[0]&&(Sj(Wd,Kma,8,am[1]),Xd++)}var Xk=qf.preprocessor;if(Xk){var dn=new g.Mz,en=0;try{var Ro=Xk.originalVideo;if(Ro){var Gq=DJa(Ro);Gq[0]&&(Sj(dn,Hz,1,Gq[1]),en++)}var bm=Xk.processedVideo;if(bm){var So=DJa(bm);So[0]&&(Sj(dn,Hz,
2,So[1]),en++)}var Hq=[en===Object.keys(Xk).length,dn]}catch(lb){Z(lb),Hq=[!1,void 0]}var Yk=Hq;Yk[0]&&(Sj(Wd,g.Mz,9,Yk[1]),Xd++)}var fn=qf.clientSurface;void 0!==fn&&(S(Wd,10,aKa[fn]),Xd++);var cm=[Xd===Object.keys(qf).length,Wd]}catch(lb){Z(lb),cm=[!1,void 0]}var ck=cm;ck[0]&&(Sj(vc,g.Nz,10,ck[1]),Ec++)}var Wh=qc.cameraMetadata;if(Wh){var mh=new Ez,dm=0;try{var Iq=Wh.uploadFrontendId;void 0!==Iq&&(Q(mh,1,Iq),dm++);var Jq=Wh.cameraApiClient;void 0!==Jq&&(S(mh,2,bKa[Jq]),dm++);var To=Wh.cameraConfigs;
To&&(NO(mh.j.bind(mh),To,EJa),dm++);var Zf=Wh.canFindCamera;void 0!==Zf&&(uk(mh,4,Zf),dm++);var Xh=[dm===Object.keys(Wh).length,mh]}catch(lb){Z(lb),Xh=[!1,void 0]}var gn=Xh;gn[0]&&(Sj(vc,Ez,11,gn[1]),Ec++)}var nh=qc.miniAppMetadata;if(nh){var Ji=new Oz,Ki=0;try{var Uo=nh.externalPostId;void 0!==Uo&&(Q(Ji,1,Uo),Ki++);var rg=nh.postPlayNonce;void 0!==rg&&(Q(Ji,2,rg),Ki++);var Yh=nh.localReleaseId;void 0!==Yh&&(vk(Ji,3,Yh),Ki++);var Zh=nh.source;void 0!==Zh&&(S(Ji,4,cKa[Zh]),Ki++);var Vo=nh.sdkErrorType;
void 0!==Vo&&(S(Ji,5,dKa[Vo]),Ki++);var Wo=nh.sdkApi;void 0!==Wo&&(S(Ji,6,eKa[Wo]),Ki++);var Kq=nh.sdkVersion;void 0!==Kq&&(Q(Ji,7,Kq),Ki++);var em=nh.rpcErrorCode;void 0!==em&&(vk(Ji,8,em),Ki++);var Xo=[Ki===Object.keys(nh).length,Ji]}catch(lb){Z(lb),Xo=[!1,void 0]}var Yo=Xo;Yo[0]&&(Sj(vc,Oz,12,Yo[1]),Ec++)}var Lq=qc.appVersionCode;void 0!==Lq&&(vk(vc,13,Lq),Ec++);var Li=qc.hatsMetadata;if(Li){var dk=new Hma,ek=0;try{var Zk=Li.hatsSessionId;void 0!==Zk&&(Q(dk,1,Zk),ek++);var fm=Li.csn;void 0!==fm&&
(Q(dk,2,fm),ek++);var gm=Li.hatsTriggerId;void 0!==gm&&(Q(dk,3,gm),ek++);var $c=Li.hatsStatus;void 0!==$c&&(S(dk,4,fKa[$c]),ek++);var $h=[ek===Object.keys(Li).length,dk]}catch(lb){Z(lb),$h=[!1,void 0]}var hn=$h;hn[0]&&(Sj(vc,Hma,14,hn[1]),Ec++)}var jn=qc.reelPlaybackError;if(jn){var kn=new Nma,ln=0;try{var Jg=jn.reelPlaybackContext;if(Jg){var oh=new Qz,ai=0;try{var mn=Jg.videoId;void 0!==mn&&(oh.setVideoId(mn),ai++);var Mq=Jg.playlistId;void 0!==Mq&&(Q(oh,2,Mq),ai++);var hm=Jg.playlistIndex;void 0!==
hm&&(wk(oh,3,hm),ai++);var nn=Jg.cpn;void 0!==nn&&(Q(oh,4,nn),ai++);var im=Jg.playerType;void 0!==im&&(S(oh,5,gKa[im]),ai++);var Zo=Jg.audioFmt;void 0!==Zo&&(vk(oh,6,Zo),ai++);var Nq=Jg.videoFmt;void 0!==Nq&&(vk(oh,7,Nq),ai++);var $o=[ai===Object.keys(Jg).length,oh]}catch(lb){Z(lb),$o=[!1,void 0]}var fk=$o;fk[0]&&(Sj(kn,Qz,1,fk[1]),ln++)}var Mi=jn.errorType;void 0!==Mi&&(S(kn,2,hKa[Mi]),ln++);var gk=[ln===Object.keys(jn).length,kn]}catch(lb){Z(lb),gk=[!1,void 0]}var jm=gk;jm[0]&&(Sj(vc,Nma,15,jm[1]),
Ec++)}var ap=[Ec===Object.keys(qc).length,vc]}catch(lb){Z(lb),ap=[!1,void 0]}var hk=ap;hk[0]&&(Sj(bf,Rz,1,hk[1]),Rh++)}var ik=af.stackTrace;if(ik){var $k=new Zz,al=0;try{var bp=ik.isObfuscated;void 0!==bp&&(uk($k,1,bp),al++);var Oq=ik.androidStackInfo;if(Oq){var bl=iKa(Oq);bl[0]&&(Tj($k,Sz,2,wF,bl[1]),al++)}var rj=ik.browserStackInfo;if(rj){var km=new Tz,cl=0;try{var cp=rj.stackTrace;void 0!==cp&&(Q(km,1,cp),cl++);var Pq=rj.lineNumber;void 0!==Pq&&(vk(km,2,Pq),cl++);var Qq=rj.columnNumber;void 0!==
Qq&&(vk(km,3,Qq),cl++);var on=rj.filename;void 0!==on&&(Q(km,4,on),cl++);var lm=[cl===Object.keys(rj).length,km]}catch(lb){Z(lb),lm=[!1,void 0]}var ph=lm;ph[0]&&(Tj($k,Tz,3,wF,ph[1]),al++)}var pn=ik.iosStackInfo;if(pn){var mm=new Oma,Kg=0;try{var Rq=pn.stackTrace;void 0!==Rq&&(Q(mm,1,Rq),Kg++);var dp=pn.compactStackTrace;if(dp){var Sq=YO(dp);Sq[0]&&(Sj(mm,yz,2,Sq[1]),Kg++)}var dl=[Kg===Object.keys(pn).length,mm]}catch(lb){Z(lb),dl=[!1,void 0]}var sj=dl;sj[0]&&(Tj($k,Oma,4,wF,sj[1]),al++)}var bi=ik.multiLanguageStackInfo;
if(bi){var qh=new Yz,ci=0;try{var Ni=bi.languageStackTraces;Ni&&(NO(qh.j.bind(qh),Ni,jKa),ci++);var ep=[ci===Object.keys(bi).length,qh]}catch(lb){Z(lb),ep=[!1,void 0]}var Tq=ep;Tq[0]&&(Tj($k,Yz,5,wF,Tq[1]),al++)}var qn=[al===Object.keys(ik).length,$k]}catch(lb){Z(lb),qn=[!1,void 0]}var nm=qn;nm[0]&&(Sj(bf,Zz,2,nm[1]),Rh++)}var Oi=af.logMessage;if(Oi){var tj=new $z,uj=0;try{var rn=Oi.message;void 0!==rn&&(Q(tj,1,rn),uj++);var Pi=Oi.level;void 0!==Pi&&(S(tj,2,kKa[Pi]),uj++);var el=Oi.errorClassName;
void 0!==el&&(Q(tj,3,el),uj++);var fl=Oi.sourceMethodName;void 0!==fl&&(Q(tj,4,fl),uj++);var sn=Oi.sampleWeight;void 0!==sn&&(vk(tj,6,sn),uj++);var fp=[uj===Object.keys(Oi).length,tj]}catch(lb){Z(lb),fp=[!1,void 0]}var gp=fp;gp[0]&&(Sj(bf,$z,3,gp[1]),Rh++)}var Us=[Rh===Object.keys(af).length,bf]}catch(lb){Z(lb),Us=[!1,void 0]}var Uq=Us;Uq[0]&&(Sj(nc,aA,5,Uq[1]),Me++)}var Vq=[Me===Object.keys(se).length,nc]}catch(lb){Z(lb),Vq=[!1,void 0]}var tn=Vq;tn[0]&&(Sj(E,bA,9,tn[1]),F++)}var hp=A.delayedEventMetrics;
hp&&(NO(E.j.bind(E),hp,oIa),F++);var jk=A.iosBatteryMetric;if(jk){var un=new Dma,vn=0;try{var Wq=jk.sampleDurationMs;void 0!==Wq&&(xk(un,1,Wq),vn++);var Xq=jk.startSample;if(Xq){var om=lKa(Xq);om[0]&&(Sj(un,zz,2,om[1]),vn++)}var ip=jk.endSample;if(ip){var jp=lKa(ip);jp[0]&&(Sj(un,zz,3,jp[1]),vn++)}var Yq=[vn===Object.keys(jk).length,un]}catch(lb){Z(lb),Yq=[!1,void 0]}var Zq=Yq;Zq[0]&&(Sj(E,Dma,11,Zq[1]),F++)}var pm=A.androidBatteryMetric;if(pm){var qm=new yma,wn=0;try{var xn=pm.sampleDurationMs;void 0!==
xn&&(xk(qm,1,xn),wn++);var kp=pm.startSample;if(kp){var lp=mKa(kp);lp[0]&&(Sj(qm,uz,2,lp[1]),wn++)}var $q=pm.endSample;if($q){var mp=mKa($q);mp[0]&&(Sj(qm,uz,3,mp[1]),wn++)}var ar=[wn===Object.keys(pm).length,qm]}catch(lb){Z(lb),ar=[!1,void 0]}var br=ar;br[0]&&(Sj(E,yma,12,br[1]),F++)}var he=A.webApiSupport;if(he){var Fe=new Wma,ie=0;try{var gl=he.intersectionObserverPresent;void 0!==gl&&(uk(Fe,1,gl),ie++);var yn=he.indexedDbPresent;void 0!==yn&&(uk(Fe,2,yn),ie++);var np=he.serviceWorkerPresent;void 0!==
np&&(uk(Fe,3,np),ie++);var cr=he.webSharePresent;void 0!==cr&&(uk(Fe,4,cr),ie++);var op=he.fullScreenApiPresent;void 0!==op&&(uk(Fe,5,op),ie++);var pp=he.cacheStoragePresent;void 0!==pp&&(uk(Fe,6,pp),ie++);var qp=he.storageEstimatePresent;void 0!==qp&&(uk(Fe,7,qp),ie++);var di=he.storagePersistPresent;void 0!==di&&(uk(Fe,8,di),ie++);var Qi=he.webkitTemporaryStoragePresent;void 0!==Qi&&(uk(Fe,9,Qi),ie++);var vj=he.idb2Present;void 0!==vj&&(uk(Fe,10,vj),ie++);var dr=he.promiseRejectionEventPresent;
void 0!==dr&&(uk(Fe,11,dr),ie++);var er=he.subtleCryptoPresent;void 0!==er&&(uk(Fe,12,er),ie++);var hl=he.broadcastChannelPresent;void 0!==hl&&(uk(Fe,13,hl),ie++);var zn=he.webLocksApiPresent;void 0!==zn&&(uk(Fe,14,zn),ie++);var An=he.supportsP3Color;void 0!==An&&(uk(Fe,15,An),ie++);var rp=he.supportsRec2020Color;void 0!==rp&&(uk(Fe,16,rp),ie++);var il=[ie===Object.keys(he).length,Fe]}catch(lb){Z(lb),il=[!1,void 0]}var rm=il;rm[0]&&(Sj(E,Wma,13,rm[1]),F++)}var Ri=A.cpuProfiling;if(Ri){var Bn=new Cz,
Cn=0;try{var fr=Ri.profilingSamples;if(fr){var gr=YO(fr);gr[0]&&(Sj(Bn,yz,1,gr[1]),Cn++)}var kk=Ri.config;if(kk){var jl=new Ema,lk=0;try{var hr=kk.profilingIntervalSec;void 0!==hr&&(zk(jl,1,hr),lk++);var Dn=kk.profilingDurationSec;void 0!==Dn&&(zk(jl,2,Dn),lk++);var sp=kk.timerType;void 0!==sp&&(S(jl,3,nKa[sp]),lk++);var tp=kk.profilingStartTimeSec;void 0!==tp&&(zk(jl,4,tp),lk++);var sm=kk.fractionOfRunsToSample;void 0!==sm&&(zk(jl,5,sm),lk++);var ir=[lk===Object.keys(kk).length,jl]}catch(lb){Z(lb),
ir=[!1,void 0]}var kl=ir;kl[0]&&(Bn.setConfig(kl[1]),Cn++)}var mk=[Cn===Object.keys(Ri).length,Bn]}catch(lb){Z(lb),mk=[!1,void 0]}var ll=mk;ll[0]&&(Sj(E,Cz,14,ll[1]),F++)}var En=A.stallStackTrace;if(En){var tm=YO(En);tm[0]&&(Sj(E,yz,15,tm[1]),F++)}var uf=A.memoryUsage;if(uf){var sg=new gA,je=0;try{var jr=uf.totalMemoryUsageBytes;void 0!==jr&&(xk(sg,1,jr),je++);var up=uf.classMemoryUsage;up&&(NO(sg.j.bind(sg),up,oKa),je++);var rh=uf.config;if(rh){var sh=new Uma,ue=0;try{var ei=rh.maxStartTimeSec;void 0!==
ei&&(xk(sh,1,ei),ue++);var um=rh.durationTimeSec;void 0!==um&&(xk(sh,2,um),ue++);var Vs=rh.intervalSec;void 0!==Vs&&(xk(sh,3,Vs),ue++);var kr=rh.maxLogCount;void 0!==kr&&(xk(sh,4,kr),ue++);var lr=rh.fractionOfRunsToSample;void 0!==lr&&(zk(sh,5,lr),ue++);var ev=[ue===Object.keys(rh).length,sh]}catch(lb){Z(lb),ev=[!1,void 0]}var mr=ev;mr[0]&&(sg.setConfig(mr[1]),je++)}var Fn=uf.processUptimeMs;void 0!==Fn&&(xk(sg,4,Fn),je++);var fi=uf.foregroundUptimeMs;void 0!==fi&&(xk(sg,8,fi),je++);var Gn=uf.viewAllocation;
Gn&&(NO(sg.C.bind(sg),Gn,oKa),je++);var vm=uf.entityStoreCount;void 0!==vm&&(vk(sg,6,vm),je++);var ml=uf.entityStoreBytes;void 0!==ml&&(xk(sg,7,ml),je++);var vp=uf.emlTemplateStoreBytes;void 0!==vp&&(xk(sg,10,vp),je++);var wp=uf.jsVmStatistics;wp&&(NO(sg.B.bind(sg),wp,pKa),je++);var nr=[je===Object.keys(uf).length,sg]}catch(lb){Z(lb),nr=[!1,void 0]}var Ws=nr;Ws[0]&&(Sj(E,gA,16,Ws[1]),F++)}var xp=A.networkEvents;xp&&(NO(E.B.bind(E),xp,qKa),F++);var Si=A.threadUtilization;if(Si){var Ti=new jA,nl=0;
try{var yp=Si.userJourney;void 0!==yp&&(Q(Ti,1,yp),nl++);var ol=Si.type;void 0!==ol&&(S(Ti,2,rKa[ol]),nl++);var zp=Si.threadPoolStats;zp&&(NO(Ti.j.bind(Ti),zp,sKa),nl++);var Xs=Si.totalThreadCount;void 0!==Xs&&(vk(Ti,4,Xs),nl++);var Ys=Si.statsGenerateDurationMs;void 0!==Ys&&(xk(Ti,5,Ys),nl++);var nk=[nl===Object.keys(Si).length,Ti]}catch(lb){Z(lb),nk=[!1,void 0]}var wj=nk;wj[0]&&(Sj(E,jA,18,wj[1]),F++)}var Ui=A.androidBackgroundTask;if(Ui){var pl=new Az,wm=0;try{var Ap=Ui.tag;void 0!==Ap&&(Q(pl,
1,Ap),wm++);var Bp=Ui.isKnownTask;void 0!==Bp&&(uk(pl,2,Bp),wm++);var or=Ui.result;void 0!==or&&(S(pl,3,tKa[or]),wm++);var pr=Ui.durationMs;void 0!==pr&&(xk(pl,4,pr),wm++);var qr=[wm===Object.keys(Ui).length,pl]}catch(lb){Z(lb),qr=[!1,void 0]}var xm=qr;xm[0]&&(Sj(E,Az,19,xm[1]),F++)}var Vi=A.distributiveProfilingSpan;if(Vi){var gi=new cA,th=0;try{var rr=Vi.spanId;void 0!==rr&&(S(gi,1,uKa[rr]),th++);var sr=Vi.sampleRate;void 0!==sr&&(zk(gi,2,sr),th++);var tr=Vi.spanDurationMs;void 0!==tr&&(xk(gi,3,
tr),th++);var Px=Vi.sampleFailureCount;void 0!==Px&&(vk(gi,4,Px),th++);var fv=Vi.sample;fv&&(NO(gi.Rj.bind(gi),fv,vKa),th++);var Qx=[th===Object.keys(Vi).length,gi]}catch(lb){Z(lb),Qx=[!1,void 0]}var Rx=Qx;Rx[0]&&(Sj(E,cA,20,Rx[1]),F++)}var Cp=A.appExitInfo;if(Cp){var xj=new Bz,ok=0;try{var ql=Cp.reason;void 0!==ql&&(S(xj,1,wKa[ql]),ok++);var Zs=Cp.status;void 0!==Zs&&(vk(xj,2,Zs),ok++);var gv=Cp.importance;void 0!==gv&&(vk(xj,3,gv),ok++);var Sx=Cp.description;void 0!==Sx&&(Q(xj,4,Sx),ok++);var Tx=
[ok===Object.keys(Cp).length,xj]}catch(lb){Z(lb),Tx=[!1,void 0]}var Ux=Tx;Ux[0]&&(Sj(E,Bz,21,Ux[1]),F++)}var Vx=[F===Object.keys(A).length,E]}catch(lb){Z(lb),Vx=[!1,void 0]}var hv=Vx;hv[0]&&(Sj(b,kA,6,hv[1]),c++)}var Wx=a.detailedNetworkType;void 0!==Wx&&(S(b,7,ZO[Wx]),c++);var ur=a.isAd;void 0!==ur&&(uk(b,8,ur),c++);var $s=a.offlineModeType;void 0!==$s&&(S(b,9,xKa[$s]),c++);var at=a.storageFormat;void 0!==at&&(S(b,24,yKa[at]),c++);var Xx=a.offlineSourceVeType;void 0!==Xx&&(vk(b,32,Xx),c++);var bt=
a.listId;void 0!==bt&&(Q(b,10,bt),c++);var vr=a.offlineabilityFormatType;void 0!==vr&&(S(b,11,zKa[vr]),c++);var iv=a.offlineAudioQuality;void 0!==iv&&(S(b,29,AKa[iv]),c++);var Yx=a.softErrorCount;void 0!==Yx&&(vk(b,12,Yx),c++);var jv=a.pendingStateFlags;void 0!==jv&&(wk(b,13,jv),c++);var Zx=a.unusedOfflineVideoPendingState;void 0!==Zx&&(S(b,14,BKa[Zx]),c++);var $x=a.isRefresh;void 0!==$x&&(uk(b,15,$x),c++);var ay=a.isNewPlayerResponse;void 0!==ay&&(uk(b,16,ay),c++);var by=a.isOfflineShareable;void 0!==
by&&(uk(b,17,by),c++);var cy=a.hasContentVerificationSignature;void 0!==cy&&(uk(b,18,cy),c++);var dy=a.isOfflineInterleaving;void 0!==dy&&(uk(b,19,dy),c++);var La=a.blockSizeBytes;void 0!==La&&(vk(b,25,La),c++);var JN=a.streamVerificationStrategy;void 0!==JN&&(S(b,26,$O[JN]),c++);var KN=a.streamVerificationFailedBlocks;KN&&(NO(b.j.bind(b),KN,CKa),c++);var uB=a.spacecastInfo;if(uB){var hG=new Dna,iG=0;try{var vB=uB.applianceId;void 0!==vB&&(Q(hG,1,vB),iG++);var jG=uB.transferredFromCache;void 0!==
jG&&(S(hG,2,DKa[jG]),iG++);var kG=[iG===Object.keys(uB).length,hG]}catch(lb){Z(lb),kG=[!1,void 0]}var LN=kG;LN[0]&&(Sj(b,Dna,28,LN[1]),c++)}var lG=a.transferType;void 0!==lG&&(S(b,33,EKa[lG]),c++);var MN=a.onlyDownloadOnWifi;void 0!==MN&&(uk(b,34,MN),c++);var NN=a.appLifecycleStatus;void 0!==NN&&(S(b,35,FKa[NN]),c++);var mG=a.isDefaultDownloadToSdCard;void 0!==mG&&(uk(b,36,mG),c++);var ON=a.serializedLoggingParams;void 0!==ON&&(Bk(b,39,ON),c++);var PN=a.transferServiceStartedFromBackground;void 0!==
PN&&(uk(b,40,PN),c++);var kv=a.transferFirstStarted;void 0!==kv&&(uk(b,42,kv),c++);return[c===Object.keys(a).length,b]}catch(lb){return Z(lb),[!1,void 0]}};
LJa=function(a){var b=new Hy,c=0;try{var d=a.datapushBuild;if(d){var e=HKa(d);e[0]&&(Sj(b,Fy,1,e[1]),c++)}return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}};
HKa=function(a){var b=new Fy,c=0;try{var d=a.buildId;void 0!==d&&(xk(b,1,d),c++);var e=a.clientExperimentId;void 0!==e&&(vk(b,2,e),c++);var f=a.accessType;void 0!==f&&(S(b,3,IKa[f]),c++);return[c===Object.keys(a).length,b]}catch(h){return Z(h),[!1,void 0]}};
MJa=function(a){var b=new Gy,c=0;try{var d=a.datapushBuild;if(d){var e=HKa(d);e[0]&&(Sj(b,Fy,1,e[1]),c++)}return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}};
NJa=function(a){var b=new Rma,c=0;try{var d=a.assetLoggingId;void 0!==d&&(Q(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}};
YO=function(a){var b=new yz,c=0;try{var d=a.stackTraces;d&&(NO(b.B.bind(b),d,JKa),c++);var e=a.allModules;e&&(NO(b.j.bind(b),e,KKa),c++);var f=a.appVersionCode;void 0!==f&&(vk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Z(h),[!1,void 0]}};
JKa=function(a){var b=new xz,c=0;try{var d=a.mainThread;if(d){var e=LKa(d);e[0]&&(Sj(b,wz,1,e[1]),c++)}var f=a.backgroundThreads;f&&(NO(b.j.bind(b),f,LKa),c++);var h=a.metaData;h&&(NO(b.B.bind(b),h,MKa),c++);return[c===Object.keys(a).length,b]}catch(l){return Z(l),[!1,void 0]}};
LKa=function(a){var b=new wz,c=0;try{var d=a.stackFrames;d&&(NO(b.j.bind(b),d,NKa),c++);var e=a.androidStack;void 0!==e&&(Q(b,6,e),c++);var f=a.threadName;void 0!==f&&(Q(b,2,f),c++);var h=a.cpuUsage;void 0!==h&&(zk(b,3,h),c++);var l=a.cpuTimeSec;void 0!==l&&(xk(b,4,l),c++);var m=a.iosThreadInfo;if(m){var n=new vz;d=0;try{var p=m.state;void 0!==p&&(n.Hc(OKa[p]),d++);var q=m.flag;void 0!==q&&(S(n,2,PKa[q]),d++);var r=m.currentPriority;void 0!==r&&(vk(n,3,r),d++);var t=m.priority;void 0!==t&&(vk(n,4,
t),d++);var v=m.maxPriority;void 0!==v&&(vk(n,5,v),d++);var x=m.isCrashedThread;void 0!==x&&(uk(n,6,x),d++);var A=[d===Object.keys(m).length,n]}catch(E){Z(E),A=[!1,void 0]}m=A;m[0]&&(Sj(b,vz,5,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(E){return Z(E),[!1,void 0]}};
NKa=function(a){var b=new Bma,c=0;try{var d=a.instructionOffset;void 0!==d&&(xk(b,1,d),c++);var e=a.moduleIndex;void 0!==e&&(vk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}};
MKa=function(a){var b=new Ama,c=0;try{var d=a.clientTimestampMs;void 0!==d&&(xk(b,1,d),c++);var e=a.sampleTimeCostMs;void 0!==e&&(zk(b,2,e),c++);var f=a.numberOfBustedFrames;void 0!==f&&(vk(b,3,f),c++);var h=a.droppedFrameDurationMs;void 0!==h&&(vk(b,4,h),c++);var l=a.deviceOrientation;void 0!==l&&(S(b,5,QKa[l]),c++);var m=a.processUptimeMs;void 0!==m&&(xk(b,6,m),c++);var n=a.memoryUsageKbytes;void 0!==n&&(xk(b,7,n),c++);var p=a.batteryPercentage;void 0!==p&&(zk(b,8,p),c++);var q=a.exceptionName;
void 0!==q&&(Q(b,9,q),c++);var r=a.exceptionReason;void 0!==r&&(Q(b,10,r),c++);var t=a.signalNumber;void 0!==t&&(vk(b,11,t),c++);var v=a.signalCode;void 0!==v&&(vk(b,12,v),c++);return[c===Object.keys(a).length,b]}catch(x){return Z(x),[!1,void 0]}};
KKa=function(a){var b=new zma,c=0;try{var d=a.moduleUuid;void 0!==d&&(Bk(b,1,d),c++);var e=a.moduleName;void 0!==e&&(Q(b,2,e),c++);var f=a.loadAddress;void 0!==f&&(xk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Z(h),[!1,void 0]}};
SJa=function(a){var b=new Dz,c=0;try{var d=a.key;void 0!==d&&(Q(b,1,d),c++);var e=a.value;void 0!==e&&(Q(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}};
iKa=function(a){var b=new Sz,c=0;try{var d=a.serializedThrowable;void 0!==d&&(Bk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}};
jKa=function(a){var b=new Pma,c=0;try{var d=a.jsStack;if(d){var e=new Xz,f=0;try{var h=d.stackTrace;h&&(NO(e.j.bind(e),h,RKa),f++);var l=d.moduleSetVersion;void 0!==l&&(yk(e,4,l),f++);var m=[f===Object.keys(d).length,e]}catch(x){Z(x),m=[!1,void 0]}d=m;d[0]&&(Tj(b,Xz,1,SKa,d[1]),c++)}var n=a.javaStack;if(n){var p=iKa(n);p[0]&&(Tj(b,Sz,2,SKa,p[1]),c++)}var q=a.ccStack;if(q){var r=new Vz;n=0;try{var t=q.stackTrace;t&&(NO(r.j.bind(r),t,TKa),n++);var v=[n===Object.keys(q).length,r]}catch(x){Z(x),v=[!1,
void 0]}q=v;q[0]&&(Tj(b,Vz,3,SKa,q[1]),c++)}return[c===Object.keys(a).length,b]}catch(x){return Z(x),[!1,void 0]}};
RKa=function(a){var b=new Wz,c=0;try{var d=a.functionName;void 0!==d&&(Q(b,1,d),c++);var e=a.source;void 0!==e&&(Q(b,2,e),c++);var f=a.lineNumber;void 0!==f&&(vk(b,3,f),c++);var h=a.columnNumber;void 0!==h&&(vk(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Z(l),[!1,void 0]}};
TKa=function(a){var b=new Uz,c=0;try{var d=a.functionName;void 0!==d&&(Q(b,1,d),c++);var e=a.source;void 0!==e&&(Q(b,2,e),c++);var f=a.lineNumber;void 0!==f&&(vk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Z(h),[!1,void 0]}};
lKa=function(a){var b=new zz,c=0;try{var d=a.batteryLevelMicros;void 0!==d&&(vk(b,1,d),c++);var e=a.networkType;void 0!==e&&(S(b,2,ZO[e]),c++);var f=a.screenBrightness;void 0!==f&&(zk(b,3,f),c++);var h=a.isLowPowerMode;void 0!==h&&(uk(b,4,h),c++);var l=a.isBackground;void 0!==l&&(uk(b,5,l),c++);var m=a.isStateTransition;void 0!==m&&(uk(b,6,m),c++);var n=a.observedBackgroundFetchMethodCallback;void 0!==n&&(uk(b,7,n),c++);var p=a.observedBackgroundTaskDidExpire;void 0!==p&&(uk(b,8,p),c++);return[c===
Object.keys(a).length,b]}catch(q){return Z(q),[!1,void 0]}};
mKa=function(a){var b=new uz,c=0;try{var d=a.batteryLevelMicros;void 0!==d&&(vk(b,1,d),c++);var e=a.networkType;void 0!==e&&(S(b,2,ZO[e]),c++);var f=a.screenBrightness;void 0!==f&&(vk(b,3,f),c++);var h=a.screenBrightnessMode;void 0!==h&&(S(b,4,UKa[h]),c++);var l=a.lowPowerMode;void 0!==l&&(S(b,5,VKa[l]),c++);var m=a.batteryHealth;void 0!==m&&(S(b,6,WKa[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Z(n),[!1,void 0]}};
oKa=function(a){var b=new fA,c=0;try{var d=a.className;void 0!==d&&(Q(b,1,d),c++);var e=a.instanceNum;void 0!==e&&(xk(b,2,e),c++);var f=a.instanceSizeBytes;void 0!==f&&(xk(b,3,f),c++);var h=a.allocationNum;void 0!==h&&(xk(b,4,h),c++);var l=a.deallocationNum;void 0!==l&&(xk(b,5,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Z(m),[!1,void 0]}};
pKa=function(a){var b=new Uy,c=0;try{var d=a.v8Stats;if(d){var e=new Ty,f=0;try{var h=d.totalHeapSize;void 0!==h&&(yk(e,1,h),f++);var l=d.totalHeapSizeExecutable;void 0!==l&&(yk(e,2,l),f++);var m=d.totalPhysicalSize;void 0!==m&&(yk(e,3,m),f++);var n=d.totalAvailableSize;void 0!==n&&(yk(e,4,n),f++);var p=d.totalGlobalHandlesSize;void 0!==p&&(yk(e,5,p),f++);var q=d.usedGlobalHandlesSize;void 0!==q&&(yk(e,6,q),f++);var r=d.usedHeapSize;void 0!==r&&(yk(e,7,r),f++);var t=d.heapSizeLimit;void 0!==t&&(yk(e,
8,t),f++);var v=d.mallocedMemory;void 0!==v&&(yk(e,9,v),f++);var x=d.externalMemory;void 0!==x&&(yk(e,10,x),f++);var A=d.peakMallocedMemory;void 0!==A&&(yk(e,11,A),f++);var E=d.numberOfNativeContexts;void 0!==E&&(yk(e,12,E),f++);var F=d.numberOfDetachedContexts;void 0!==F&&(yk(e,13,F),f++);var G=[f===Object.keys(d).length,e]}catch(ea){Z(ea),G=[!1,void 0]}d=G;d[0]&&(Tj(b,Ty,1,XKa,d[1]),c++)}var M=a.quickjsStats;if(M){var P=new Sy;d=0;try{var R=M.mallocSize;void 0!==R&&(yk(P,1,R),d++);var ba=M.mallocLimit;
void 0!==ba&&(yk(P,2,ba),d++);var na=M.memoryUsedSize;void 0!==na&&(yk(P,3,na),d++);var ta=M.mallocCount;void 0!==ta&&(yk(P,4,ta),d++);var ka=M.memoryUsedCount;void 0!==ka&&(yk(P,5,ka),d++);var va=[d===Object.keys(M).length,P]}catch(ea){Z(ea),va=[!1,void 0]}M=va;M[0]&&(Tj(b,Sy,2,XKa,M[1]),c++)}return[c===Object.keys(a).length,b]}catch(ea){return Z(ea),[!1,void 0]}};
qKa=function(a){var b=new iA,c=0;try{var d=a.index;void 0!==d&&(xk(b,1,d),c++);var e=a.networkEventType;void 0!==e&&(S(b,2,YKa[e]),c++);var f=a.path;void 0!==f&&(Q(b,3,f),c++);var h=a.failureReason;void 0!==h&&(S(b,4,ZKa[h]),c++);var l=a.startTimeMs;void 0!==l&&(xk(b,5,l),c++);var m=a.totalDurationMs;void 0!==m&&(xk(b,6,m),c++);var n=a.requestSize;void 0!==n&&(xk(b,7,n),c++);var p=a.responseSize;void 0!==p&&(xk(b,8,p),c++);var q=a.networkRequestAttempt;q&&(NO(b.j.bind(b),q,$Ka),c++);var r=a.httpMethod;
void 0!==r&&(S(b,10,aLa[r]),c++);return[c===Object.keys(a).length,b]}catch(t){return Z(t),[!1,void 0]}};
$Ka=function(a){var b=new hA,c=0;try{var d=a.failureReason;void 0!==d&&(S(b,1,ZKa[d]),c++);var e=a.startTimeMs;void 0!==e&&(xk(b,5,e),c++);var f=a.durationMs;void 0!==f&&(xk(b,2,f),c++);var h=a.networkAvailable;void 0!==h&&(S(b,3,bLa[h]),c++);return[c===Object.keys(a).length,b]}catch(l){return Z(l),[!1,void 0]}};
sKa=function(a){var b=new Yma,c=0;try{var d=a.threadPoolName;void 0!==d&&(Q(b,1,d),c++);var e=a.threadCount;void 0!==e&&(vk(b,2,e),c++);var f=a.startedTaskCount;void 0!==f&&(vk(b,3,f),c++);var h=a.finishedTaskCount;void 0!==h&&(vk(b,4,h),c++);var l=a.runningTimeMs;void 0!==l&&(xk(b,5,l),c++);var m=a.waitingTimeMs;void 0!==m&&(xk(b,6,m),c++);var n=a.runCount;void 0!==n&&(xk(b,7,n),c++);var p=a.runningPercent;void 0!==p&&(vk(b,8,p),c++);return[c===Object.keys(a).length,b]}catch(q){return Z(q),[!1,void 0]}};
vKa=function(a){var b=new Qma,c=0;try{var d=a.curveTimestampMs;void 0!==d&&(xk(b,1,d),c++);var e=a.curveWeight;void 0!==e&&(zk(b,2,e),c++);var f=a.realTimestampMs;void 0!==f&&(xk(b,3,f),c++);var h=a.sampleCostUsec;void 0!==h&&(xk(b,4,h),c++);var l=a.compactStackTraceSample;if(l){var m=YO(l);m[0]&&(Sj(b,yz,5,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(n){return Z(n),[!1,void 0]}};
CKa=function(a){var b=new Ena,c=0;try{var d=a.itag;void 0!==d&&(vk(b,1,d),c++);var e=a.startingByte;void 0!==e&&(xk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}};
iLa=function(a){var b=new kB,c=0;try{var d=a.id;void 0!==d&&(Q(b,1,d),c++);var e=a.videoState;void 0!==e&&(S(b,2,cLa[e]),c++);var f=a.pendingStateFlags;void 0!==f&&(wk(b,3,f),c++);var h=a.totalBytes;void 0!==h&&(xk(b,21,h),c++);var l=a.downloadedBytes;void 0!==l&&(xk(b,4,l),c++);var m=a.selectedVideoQuality;void 0!==m&&(S(b,5,zKa[m]),c++);var n=a.selectedOfflineMode;void 0!==n&&(S(b,6,xKa[n]),c++);var p=a.playerResponseSavedTimeMs;void 0!==p&&(xk(b,7,p),c++);var q=a.offlineStateUpdateTimeMs;void 0!==
q&&(xk(b,8,q),c++);var r=a.offlineStateExpiresInS;void 0!==r&&(xk(b,9,r),c++);var t=a.durationInS;void 0!==t&&(xk(b,10,t),c++);var v=a.isInPlaylist;void 0!==v&&(uk(b,11,v),c++);var x=a.addedNetworkType;void 0!==x&&(S(b,12,ZO[x]),c++);var A=a.downloadCompletedNetworkType;void 0!==A&&(S(b,13,ZO[A]),c++);var E=a.captions;E&&(NO(b.j.bind(b),E,dLa),c++);var F=a.unusedOfflineVideoPendingState;void 0!==F&&(S(b,15,BKa[F]),c++);var G=a.lastPlaybackTimestampMs;void 0!==G&&(xk(b,16,G),c++);var M=a.offlineSuspendedStates;
M&&(NO(b.B.bind(b),M,eLa),c++);var P=a.streamInLocalStorage;void 0!==P&&(uk(b,18,P),c++);var R=a.streamInInternalStorage;void 0!==R&&(uk(b,19,R),c++);var ba=a.storageIdStates;if(ba){var na=new Eoa;d=0;try{var ta=ba.storageId;void 0!==ta&&(wk(na,1,ta),d++);var ka=ba.storageIdSourceType;void 0!==ka&&(S(na,2,fLa[ka]),d++);var va=[d===Object.keys(ba).length,na]}catch(ya){Z(ya),va=[!1,void 0]}ba=va;ba[0]&&(Sj(b,Eoa,20,ba[1]),c++)}var ea=a.cotn;void 0!==ea&&(Q(b,22,ea),c++);var Y=a.additionalVideoClientState;
if(Y){var Ma=new Boa;ea=0;try{var y=Y.musicAppAdditionalVideoClientState;if(y){var aa=new Aoa;ba=0;try{var Ua=y.episodePublishedTimeMs;void 0!==Ua&&(xk(aa,1,Ua),ba++);var cb=[ba===Object.keys(y).length,aa]}catch(ya){Z(ya),cb=[!1,void 0]}y=cb;y[0]&&(Sj(Ma,Aoa,1,y[1]),ea++)}var nb=[ea===Object.keys(Y).length,Ma]}catch(ya){Z(ya),nb=[!1,void 0]}Y=nb;Y[0]&&(Sj(b,Boa,23,Y[1]),c++)}var Na=a.offlineVideoEntityMigrationState;if(Na){var Ta=new jB;Y=0;try{var gb=Na.isInOfflineStore;void 0!==gb&&(uk(Ta,1,gb),
Y++);var qb=Na.isPlaybackDataEntityPresent;void 0!==qb&&(uk(Ta,2,qb),Y++);var rb=Na.wasPlaybackDataEntityUsedToFillVideoState;void 0!==rb&&(uk(Ta,3,rb),Y++);var B=Na.isTransferEntityPresent;void 0!==B&&(uk(Ta,4,B),Y++);var C=Na.wasTransferEntityUsedToFillVideoState;void 0!==C&&(uk(Ta,5,C),Y++);var D=Na.offlineStoreCaptionTrackCount;void 0!==D&&(vk(Ta,6,D),Y++);var J=Na.entityStoreCaptionTrackCount;void 0!==J&&(vk(Ta,7,J),Y++);var K=Na.isMetadataEntityPresent;void 0!==K&&(uk(Ta,8,K),Y++);var ca=Na.transferDiffFields;
void 0!==ca&&(OO(Ta.j.bind(Ta),ca,gLa),Y++);var sa=[Y===Object.keys(Na).length,Ta]}catch(ya){Z(ya),sa=[!1,void 0]}Na=sa;Na[0]&&(Sj(b,jB,24,Na[1]),c++)}var ia=a.lastProgressTimeMs;void 0!==ia&&(xk(b,25,ia),c++);var L=a.initialProgressTimeMs;void 0!==L&&(xk(b,26,L),c++);var X=a.offlinePlaybackDisabledReason;void 0!==X&&(S(b,27,hLa[X]),c++);return[c===Object.keys(a).length,b]}catch(ya){return Z(ya),[!1,void 0]}};
dLa=function(a){var b=new Coa,c=0;try{var d=a.format;void 0!==d&&(vk(b,1,d),c++);var e=a.isDownloaded;void 0!==e&&(uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}};
eLa=function(a){var b=new Doa,c=0;try{var d=a.totalDownloadedBytes;void 0!==d&&(xk(b,1,d),c++);var e=a.totalSegmentCount;void 0!==e&&(xk(b,2,e),c++);var f=a.backgroundTransitionCount;void 0!==f&&(xk(b,3,f),c++);var h=a.totalDurationMs;void 0!==h&&(xk(b,4,h),c++);var l=a.downloadErrorCount;void 0!==l&&(vk(b,5,l),c++);var m=a.totalDownloadedSizePercent;void 0!==m&&(wk(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Z(n),[!1,void 0]}};
kLa=function(a){var b=new iB,c=0;try{var d=a.id;void 0!==d&&(Q(b,1,d),c++);var e=a.videoIds;e&&(NO(b.j.bind(b),e),c++);var f=a.videoCount;void 0!==f&&(vk(b,3,f),c++);var h=a.successCount;void 0!==h&&(vk(b,4,h),c++);var l=a.failCount;void 0!==l&&(vk(b,5,l),c++);var m=a.pendingCount;void 0!==m&&(vk(b,6,m),c++);var n=a.disabledCount;void 0!==n&&(vk(b,7,n),c++);var p=a.deletedCount;void 0!==p&&(vk(b,8,p),c++);var q=a.selectedVideoQuality;void 0!==q&&(S(b,9,zKa[q]),c++);var r=a.isPlaylistOwner;void 0!==
r&&(uk(b,10,r),c++);var t=a.lastSyncTimeMs;void 0!==t&&(xk(b,11,t),c++);var v=a.requestSource;void 0!==v&&(S(b,12,jLa[v]),c++);var x=a.additionalPlaylistClientState;if(x){var A=new zoa;d=0;try{var E=x.musicAppAdditionalPlaylistClientState;if(E){var F=new yoa;e=0;try{var G=E.isPodcastShow;void 0!==G&&(uk(F,1,G),e++);var M=[e===Object.keys(E).length,F]}catch(R){Z(R),M=[!1,void 0]}E=M;E[0]&&(Sj(A,yoa,1,E[1]),d++)}var P=[d===Object.keys(x).length,A]}catch(R){Z(R),P=[!1,void 0]}x=P;x[0]&&(Sj(b,zoa,13,
x[1]),c++)}return[c===Object.keys(a).length,b]}catch(R){return Z(R),[!1,void 0]}};
nLa=function(a){var b=new eB,c=0;try{var d=a.videoId;void 0!==d&&(b.setVideoId(d),c++);var e=a.itag;void 0!==e&&(wk(b,6,e),c++);var f=a.failureReason;void 0!==f&&(S(b,2,lLa[f]),c++);var h=a.isCachedExternally;void 0!==h&&(uk(b,3,h),c++);var l=a.previousFailureReason;void 0!==l&&(S(b,4,lLa[l]),c++);var m=a.previousFailureReasonTimestampMs;void 0!==m&&(yk(b,5,m),c++);var n=a.streamVerificationStrategy;void 0!==n&&(S(b,7,$O[n]),c++);var p=a.blockSizeBytes;void 0!==p&&(vk(b,8,p),c++);var q=a.streamVerificationFailedBlocks;
q&&(NO(b.j.bind(b),q,mLa),c++);var r=a.primaryVerificationStrategy;void 0!==r&&(S(b,10,$O[r]),c++);var t=a.secondaryVerificationStrategy;void 0!==t&&(S(b,11,$O[t]),c++);var v=a.secondaryFailureReason;void 0!==v&&(S(b,12,lLa[v]),c++);return[c===Object.keys(a).length,b]}catch(x){return Z(x),[!1,void 0]}};
mLa=function(a){var b=new voa,c=0;try{var d=a.itag;void 0!==d&&(vk(b,1,d),c++);var e=a.startingByte;void 0!==e&&(xk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}};
oLa=function(a){var b=new gB,c=0;try{var d=a.videoId;void 0!==d&&(b.setVideoId(d),c++);var e=a.surrogateVideoId;void 0!==e&&(xk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}};
pLa=function(a){var b=new woa,c=0;try{var d=a.externalVideoId;void 0!==d&&(Q(b,1,d),c++);var e=a.videoSid;void 0!==e&&(xk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}};
xLa=function(a){var b=new hz,c=0;try{var d=a.opportunityData;if(d){var e=new pma,f=0;try{var h=d.debugData;if(h){var l=new dz,m=0;try{var n=h.slots;n&&(NO(l.j.bind(l),n,qLa),m++);var p=h.associatedSlotId;void 0!==p&&(Q(l,2,p),m++);var q=[m===Object.keys(h).length,l]}catch(Ub){Z(Ub),q=[!1,void 0]}h=q;h[0]&&(Sj(e,dz,2,h[1]),f++)}var r=d.opportunityType;void 0!==r&&(S(e,3,rLa[r]),f++);var t=[f===Object.keys(d).length,e]}catch(Ub){Z(Ub),t=[!1,void 0]}d=t;d[0]&&(Sj(b,pma,1,d[1]),c++)}var v=a.slotData;
if(v){var x=qLa(v);x[0]&&(Sj(b,cz,2,x[1]),c++)}var A=a.layoutData;if(A){var E=new az;v=0;try{var F=A.type;void 0!==F&&(S(E,2,sLa[F]),v++);var G=A.debugData;if(G){var M=new $y;F=0;try{var P=G.layoutId;void 0!==P&&(Q(M,1,P),F++);var R=G.exitNormalTriggerData;R&&(NO(M.z5.bind(M),R,aP),F++);var ba=G.exitSkipTriggerData;ba&&(NO(M.A5.bind(M),ba,aP),F++);var na=G.exitMuteTriggerData;na&&(NO(M.y5.bind(M),na,aP),F++);var ta=G.exitUserInputSubmittedTriggerData;ta&&(NO(M.C5.bind(M),ta,aP),F++);var ka=G.exitUserCancelledTriggerData;
ka&&(NO(M.B5.bind(M),ka,aP),F++);var va=[F===Object.keys(G).length,M]}catch(Ub){Z(Ub),va=[!1,void 0]}G=va;G[0]&&(Sj(E,$y,3,G[1]),v++)}var ea=A.controlFlowManagerLayer;void 0!==ea&&(S(E,4,tLa[ea]),v++);var Y=A.pingTriggerTypes;void 0!==Y&&(OO(E.j.bind(E),Y,bP),v++);var Ma=[v===Object.keys(A).length,E]}catch(Ub){Z(Ub),Ma=[!1,void 0]}A=Ma;A[0]&&(Sj(b,az,3,A[1]),c++)}var y=a.triggerData;if(y){var aa=aP(y);aa[0]&&(Sj(b,Zy,4,aa[1]),c++)}var Ua=a.pingData;if(Ua){var cb=new gz;y=0;try{var nb=Ua.sourceTriggerType;
void 0!==nb&&(S(cb,1,bP[nb]),y++);var Na=Ua.debugData;Na&&(NO(cb.j.bind(cb),Na,uLa),y++);var Ta=Ua.pingCount;void 0!==Ta&&(vk(cb,3,Ta),y++);var gb=Ua.pingDispatchStatus;void 0!==gb&&(S(cb,4,vLa[gb]),y++);var qb=Ua.serializedAdPingMetadata;void 0!==qb&&(Bk(cb,5,qb),y++);var rb=Ua.pingDebugData;if(rb){var B=new fz;nb=0;try{var C=rb.substitutedMacros;void 0!==C&&(OO(B.j.bind(B),C,wLa),nb++);var D=rb.unsubstitutedMacros;void 0!==D&&(OO(B.B.bind(B),D,wLa),nb++);var J=[nb===Object.keys(rb).length,B]}catch(Ub){Z(Ub),
J=[!1,void 0]}rb=J;rb[0]&&(Sj(cb,fz,6,rb[1]),y++)}var K=Ua.pingIndex;void 0!==K&&(vk(cb,8,K),y++);var ca=[y===Object.keys(Ua).length,cb]}catch(Ub){Z(Ub),ca=[!1,void 0]}Ua=ca;Ua[0]&&(Sj(b,gz,6,Ua[1]),c++)}var sa=a.externalContext;if(sa){var ia=new mma;Ua=0;try{var L=sa.organicPlaybackContext;if(L){var X=new Yy;ca=0;try{var ya=L.contentCpn;void 0!==ya&&(Q(X,1,ya),ca++);var xa=L.isLivePlayback;void 0!==xa&&(uk(X,2,xa),ca++);var Za=L.isOfflinePlayback;void 0!==Za&&(uk(X,3,Za),ca++);var Xa=L.isMdxPlayback;
void 0!==Xa&&(uk(X,4,Xa),ca++);var wb=L.isDaiContent;void 0!==wb&&(uk(X,5,wb),ca++);var Pb=L.isPrefetchedPlayback;void 0!==Pb&&(uk(X,6,Pb),ca++);var db=[ca===Object.keys(L).length,X]}catch(Ub){Z(Ub),db=[!1,void 0]}L=db;L[0]&&(Sj(ia,Yy,1,L[1]),Ua++)}var Qb=sa.html5ExperimentContext;if(Qb){var gc=new lma;L=0;try{var zc=Qb.ytExperimentId;void 0!==zc&&(vk(gc,1,zc),L++);var Yb=[L===Object.keys(Qb).length,gc]}catch(Ub){Z(Ub),Yb=[!1,void 0]}Qb=Yb;Qb[0]&&(Sj(ia,lma,2,Qb[1]),Ua++)}var uc=sa.adVideoPlaybackContext;
if(uc){var Wc=new kma;Qb=0;try{var Ic=uc.adVideoCpn;void 0!==Ic&&(Q(Wc,1,Ic),Qb++);var Jc=[Qb===Object.keys(uc).length,Wc]}catch(Ub){Z(Ub),Jc=[!1,void 0]}uc=Jc;uc[0]&&(Sj(ia,kma,3,uc[1]),Ua++)}var Kc=[Ua===Object.keys(sa).length,ia]}catch(Ub){Z(Ub),Kc=[!1,void 0]}sa=Kc;sa[0]&&(Sj(b,mma,5,sa[1]),c++)}return[c===Object.keys(a).length,b]}catch(Ub){return Z(Ub),[!1,void 0]}};
qLa=function(a){var b=new cz,c=0;try{var d=a.type;void 0!==d&&(S(b,2,yLa[d]),c++);var e=a.entryTriggerType;void 0!==e&&(S(b,6,bP[e]),c++);var f=a.slotPhysicalPosition;void 0!==f&&(vk(b,8,f),c++);var h=a.debugData;if(h){var l=new bz;d=0;try{var m=h.slotId;void 0!==m&&(Q(l,1,m),d++);var n=h.entryTriggerTypes;void 0!==n&&(OO(l.B.bind(l),n,bP),d++);var p=h.unscheduledDueToError;void 0!==p&&(uk(l,3,p),d++);var q=h.entryTriggerData;q&&(NO(l.j.bind(l),q,aP),d++);var r=h.slotEntryTriggerData;if(r){var t=
aP(r);t[0]&&(Sj(l,Zy,7,t[1]),d++)}var v=h.fulfillmentTriggerData;v&&(NO(l.D.bind(l),v,aP),d++);var x=h.expirationTriggerData;x&&(NO(l.C.bind(l),x,aP),d++);var A=[d===Object.keys(h).length,l]}catch(G){Z(G),A=[!1,void 0]}h=A;h[0]&&(Sj(b,bz,3,h[1]),c++)}var E=a.externallyManaged;void 0!==E&&(uk(b,4,E),c++);var F=a.controlFlowManagerLayer;void 0!==F&&(S(b,5,tLa[F]),c++);return[c===Object.keys(a).length,b]}catch(G){return Z(G),[!1,void 0]}};
aP=function(a){var b=new Zy,c=0;try{var d=a.type;void 0!==d&&(S(b,1,bP[d]),c++);var e=a.category;void 0!==e&&(S(b,2,zLa[e]),c++);var f=a.layoutIdEnteredTriggerData;if(f){var h=new nma;d=0;try{var l=f.enteredLayoutId;void 0!==l&&(Q(h,1,l),d++);var m=[d===Object.keys(f).length,h]}catch(x){Z(x),m=[!1,void 0]}f=m;f[0]&&(Tj(b,nma,3,ALa,f[1]),c++)}var n=a.triggerSourceData;if(n){var p=new oma;f=0;try{var q=n.associatedSlotId;void 0!==q&&(Nj(p,1,BLa,Yi(q)),f++);var r=n.associatedLayoutId;void 0!==r&&(Nj(p,
2,BLa,Yi(r)),f++);var t=[f===Object.keys(n).length,p]}catch(x){Z(x),t=[!1,void 0]}n=t;n[0]&&(Tj(b,oma,4,ALa,n[1]),c++)}var v=a.shouldOnlyTriggerOnce;void 0!==v&&(uk(b,5,v),c++);return[c===Object.keys(a).length,b]}catch(x){return Z(x),[!1,void 0]}};
uLa=function(a){var b=new ez,c=0;try{var d=a.macros;void 0!==d&&(OO(b.j.bind(b),d,wLa),c++);var e=a.success;void 0!==e&&(uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}};
DLa=function(a){var b=new Wy,c=0;try{var d=a.cui;if(d){var e=new Vy;try{var f=[0===Object.keys(d).length,e]}catch(l){Z(l),f=[!1,void 0]}d=f;d[0]&&(Sj(b,Vy,1,d[1]),c++)}var h=a.step;void 0!==h&&(S(b,2,CLa[h]),c++);return[c===Object.keys(a).length,b]}catch(l){return Z(l),[!1,void 0]}};
ELa=function(a){var b=new sz,c=0;try{var d=a.startMs;void 0!==d&&(zk(b,1,d),c++);var e=a.endMs;void 0!==e&&(zk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}};
FLa=function(a){var b=new qma,c=0;try{var d=a.externalVideoId;void 0!==d&&(Q(b,1,d),c++);var e=a.originalMediaDurationMs;void 0!==e&&(xk(b,2,e),c++);var f=a.trimmedMediaDurationMs;void 0!==f&&(xk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Z(h),[!1,void 0]}};
GLa=function(a){var b=new zA,c=0;try{var d=a.orchestrationActionId;void 0!==d&&(Q(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}};
HLa=function(a){var b=new HA,c=0;try{var d=a.answerId;void 0!==d&&(vk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}};
KLa=function(a){var b=new DA,c=0;try{var d=a.ypcCallerPage;void 0!==d&&(S(b,1,ILa[d]),c++);var e=a.useCase;void 0!==e&&(S(b,2,JLa[e]),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}};
PLa=function(a){var b=new MA,c=0;try{var d=a.itemId;if(d){var e=new Ry,f=0;try{var h=d.type;void 0!==h&&(S(e,1,cP[h]),f++);var l=d.externalId;void 0!==l&&(Q(e,2,l),f++);var m=[f===Object.keys(d).length,e]}catch(E){Z(E),m=[!1,void 0]}d=m;d[0]&&(Sj(b,Ry,1,d[1]),c++)}var n=a.productType;void 0!==n&&(S(b,2,dP[n]),c++);var p=a.originatingDeviceInterface;void 0!==p&&(S(b,4,PJa[p]),c++);var q=a.alcLoggingParams;if(q){var r=new Xna;n=0;try{var t=q.purchaseOriginEntityType;void 0!==t&&(S(r,1,LLa[t]),n++);
var v=q.purchaseOriginPageType;void 0!==v&&(S(r,2,MLa[v]),n++);var x=q.purchaseOriginComponent;void 0!==x&&(S(r,3,NLa[x]),n++);var A=[n===Object.keys(q).length,r]}catch(E){Z(E),A=[!1,void 0]}q=A;q[0]&&(Tj(b,Xna,3,OLa,q[1]),c++)}return[c===Object.keys(a).length,b]}catch(E){return Z(E),[!1,void 0]}};
sMa=function(a){var b=new pA,c=0;try{var d=a.dimensions;if(d){var e=new fna,f=0;try{var h=d.csn;void 0!==h&&(Q(e,1,h),f++);var l=d.userExperienceId;void 0!==l&&(vk(e,2,l),f++);var m=d.studio;if(m){var n=new mA,p=0;try{var q=m.route;void 0!==q&&(Q(n,1,q),p++);var r=m.feature;void 0!==r&&(S(n,2,QLa[r]),p++);var t=m.topEntityType;void 0!==t&&(S(n,3,RLa[t]),p++);var v=m.availability;void 0!==v&&(S(n,4,SLa[v]),p++);var x=m.isChannelDelegation;void 0!==x&&(uk(n,5,x),p++);var A=m.isArtistDelegation;void 0!==
A&&(uk(n,6,A),p++);var E=m.environment;void 0!==E&&(S(n,7,TLa[E]),p++);var F=m.networkConnectionStatus;void 0!==F&&(S(n,8,ULa[F]),p++);var G=[p===Object.keys(m).length,n]}catch(nc){Z(nc),G=[!1,void 0]}var M=G;M[0]&&(Sj(e,mA,3,M[1]),f++)}var P=d.mweb;if(P){var R=new dna,ba=0;try{var na=P.pageType;void 0!==na&&(S(R,1,VLa[na]),ba++);var ta=P.navType;void 0!==ta&&(S(R,2,WLa[ta]),ba++);var ka=[ba===Object.keys(P).length,R]}catch(nc){Z(nc),ka=[!1,void 0]}var va=ka;va[0]&&(Sj(e,dna,4,va[1]),f++)}var ea=
d.mainAppWeb;if(ea){var Y=new cna,Ma=0;try{var y=ea.pageType;void 0!==y&&(S(Y,1,XLa[y]),Ma++);var aa=ea.requestType;void 0!==aa&&(S(Y,2,YLa[aa]),Ma++);var Ua=ea.isShellLoad;void 0!==Ua&&(uk(Y,3,Ua),Ma++);var cb=[Ma===Object.keys(ea).length,Y]}catch(nc){Z(nc),cb=[!1,void 0]}var nb=cb;nb[0]&&(Sj(e,cna,5,nb[1]),f++)}var Na=d.survivalSli;if(Na){var Ta=new ana,gb=0;try{var qb=Na.partitionMinute;void 0!==qb&&(vk(Ta,1,qb),gb++);var rb=Na.survivalStatus;void 0!==rb&&(S(Ta,2,ZLa[rb]),gb++);var B=Na.survivalSessionType;
void 0!==B&&(S(Ta,3,$La[B]),gb++);var C=[gb===Object.keys(Na).length,Ta]}catch(nc){Z(nc),C=[!1,void 0]}var D=C;D[0]&&(Sj(e,ana,6,D[1]),f++)}var J=d.tvhtml5;if(J){var K=new nA,ca=0;try{var sa=J.authRefreshTokenFailureType;void 0!==sa&&(S(K,1,aMa[sa]),ca++);var ia=J.networkErrorEndpoint;void 0!==ia&&(S(K,2,bMa[ia]),ca++);var L=J.networkErrorResponseCode;void 0!==L&&(vk(K,3,L),ca++);var X=J.sessionSurvivalLengthMin;void 0!==X&&(vk(K,4,X),ca++);var ya=J.accountChangeType;void 0!==ya&&(S(K,5,cMa[ya]),
ca++);var xa=J.accountChangeTrigger;void 0!==xa&&(S(K,6,dMa[xa]),ca++);var Za=J.cpn;void 0!==Za&&(Q(K,7,Za),ca++);var Xa=J.sessionSurvivalDidUserAgentChange;void 0!==Xa&&(uk(K,8,Xa),ca++);var wb=J.adShownToPremiumUserCondition;void 0!==wb&&(S(K,9,eMa[wb]),ca++);var Pb=J.identityType;void 0!==Pb&&(S(K,10,fMa[Pb]),ca++);var db=J.identityDelegationType;void 0!==db&&(S(K,11,gMa[db]),ca++);var Qb=J.botguardServerEnvironment;void 0!==Qb&&(S(K,12,hMa[Qb]),ca++);var gc=J.accountEventTrigger;void 0!==gc&&
(S(K,13,iMa[gc]),ca++);var zc=J.signInMethodType;void 0!==zc&&(S(K,14,jMa[zc]),ca++);var Yb=J.accountEventErrorType;void 0!==Yb&&(S(K,15,kMa[Yb]),ca++);var uc=J.hadRemoteDeviceConnected;void 0!==uc&&(uk(K,16,uc),ca++);var Wc=J.hadVoiceInitiatedPlayback;void 0!==Wc&&(uk(K,17,Wc),ca++);var Ic=J.restartLengthMin;void 0!==Ic&&(vk(K,18,Ic),ca++);var Jc=J.restartReason;void 0!==Jc&&(S(K,19,lMa[Jc]),ca++);var Kc=J.numberOfPersonaAccountsDelta;void 0!==Kc&&(vk(K,20,Kc),ca++);var Ub=J.accountEventCancellationType;
void 0!==Ub&&(S(K,21,mMa[Ub]),ca++);var ud=J.maxJsMemoryPerAppLifecycleBytes;void 0!==ud&&(vk(K,22,ud),ca++);var vd=J.appLifecycleLengthMin;void 0!==vd&&(vk(K,23,vd),ca++);var ac=[ca===Object.keys(J).length,K]}catch(nc){Z(nc),ac=[!1,void 0]}var Wb=ac;Wb[0]&&(Sj(e,nA,7,Wb[1]),f++)}var Lc=d.unpluggedWeb;if(Lc){var Gb=new ena,Zc=0;try{var wd=Lc.unpluggedWebEntitlementType;void 0!==wd&&(S(Gb,1,nMa[wd]),Zc++);var Nb=Lc.unpluggedWebPurchaseType;void 0!==Nb&&(S(Gb,2,oMa[Nb]),Zc++);var qe=[Zc===Object.keys(Lc).length,
Gb]}catch(nc){Z(nc),qe=[!1,void 0]}var Od=qe;Od[0]&&(Sj(e,ena,8,Od[1]),f++)}var Pd=d.logEventStatus;void 0!==Pd&&(vk(e,9,Pd),f++);var Le=d.kids;if(Le){var Ae=new bna,Gd=0;try{var Ef=Le.userType;void 0!==Ef&&(S(Ae,1,pMa[Ef]),Gd++);var Xe=[Gd===Object.keys(Le).length,Ae]}catch(nc){Z(nc),Xe=[!1,void 0]}var ce=Xe;ce[0]&&(Sj(e,bna,10,ce[1]),f++)}var Ff=d.screen;void 0!==Ff&&(vk(e,11,Ff),f++);var de=d.navigation;if(de){var re=new $ma,Hd=0;try{var xd=de.destinationScreen;void 0!==xd&&(vk(re,1,xd),Hd++);
var hd=de.navType;void 0!==hd&&(S(re,2,qMa[hd]),Hd++);var Qd=[Hd===Object.keys(de).length,re]}catch(nc){Z(nc),Qd=[!1,void 0]}var yd=Qd;yd[0]&&(Sj(e,$ma,12,yd[1]),f++)}var lf=[f===Object.keys(d).length,e]}catch(nc){Z(nc),lf=[!1,void 0]}var Tf=lf;Tf[0]&&(Sj(b,fna,1,Tf[1]),c++)}var se=a.records;se&&(NO(b.j.bind(b),se,rMa),c++);return[c===Object.keys(a).length,b]}catch(nc){return Z(nc),[!1,void 0]}};
rMa=function(a){var b=new oA,c=0;try{var d=a.name;void 0!==d&&(S(b,1,tMa[d]),c++);var e=a.status;void 0!==e&&(S(b,2,uMa[e]),c++);var f=a.state;void 0!==f&&(b.Hc(vMa[f]),c++);var h=a.sliId;void 0!==h&&(Q(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Z(l),[!1,void 0]}};
eP=function(){this.C=new Set;this.B=new Set;this.D=new Map;this.client=void 0;this.csn=null};
fP=function(){eP.instance||(eP.instance=new eP);return eP.instance};
gP=function(){};
hP=function(){this.N=[];this.Z=[];this.j=[];this.va=[];this.G=[];this.Y=[];this.C=new Map;this.K=new Map;this.B=new Set;this.Ca=new Map};
iP=function(){hP.instance||(hP.instance=new hP);return hP.instance};
jP=function(a,b,c,d){d=void 0===d?{}:d;g.xB(function(){wMa.includes(b)||(g.uF(new g.QC("createClientScreen() called with a non-page VE",b)),b=83769);d.isHistoryNavigation||(a.va=[],a.j.push({rootVe:b,key:d.key||""}));a.N=[];a.Z=[];d.jW?xMa(a,b,c,d):yMa(a,b,c,d)})()};
zMa=function(a,b,c){c=void 0===c?0:c;g.xB(function(){b.then(function(d){a.B.has(c)&&a.D&&a.D();var e=g.qF(c),f=g.pF(c);if(e&&f){var h;(null==d?0:null==(h=d.response)?0:h.trackingParams)&&g.DF(a.client,e,f,g.oF(d.response.trackingParams));var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.DF(a.client,e,f,g.oF(d.playerResponse.trackingParams))}})})()};
lP=function(a){var b=iP();g.xB(function(){var c=g.oF(a);kP(b,c);return c})()};
kP=function(a,b,c,d){d=void 0===d?0:d;g.xB(function(){if(a.B.has(d))return a.N.push([b,c]),!0;var e=g.qF(d),f=c||g.pF(d);if(e&&f){if(g.PB("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.ma||(a.ma=g.VC(0,function(){AMa(a,e)},1200))}else g.DF(a.client,e,f,b);
return!0}return!1})()};
BMa=function(a,b,c,d){d=void 0===d?0:d;var e=g.qF(d);d=b||g.pF(d);e&&d&&(a=a.client,b=BF({cttAuthInfo:rF(e)||void 0},e),g.PB("il_via_jspb")?(c=new YA,c.j(e),d=d.getAsJspb(),Sj(c,tA,2,d),"UNDEFINED_CSN"===e?FF("visualElementStateChanged",b,void 0,c):eva(c,b,a)):(c={csn:e,ve:d.getAsJson(),clientData:c},"UNDEFINED_CSN"===e?FF("visualElementStateChanged",b,c):a?iF("visualElementStateChanged",c,a,b):g.bD("visualElementStateChanged",c,b)))};
xMa=function(a,b,c,d){d=void 0===d?{}:d;a.B.add(d.layer||0);a.D=function(){yMa(a,b,c,d);var h=g.pF(d.layer);if(h){for(var l=g.u(a.N),m=l.next();!m.done;m=l.next())m=m.value,kP(a,m[0],m[1]||h,d.layer);h=g.u(a.Z);for(l=h.next();!l.done;l=h.next())l=l.value,BMa(a,l[0],l[1])}};
c||g.qF(d.layer)||a.D();if(d.jW)for(var e=g.u(d.jW),f=e.next();!f.done;f=e.next())zMa(a,f.value,d.layer);else g.tF(Error("Delayed screen needs a data promise."))};
yMa=function(a,b,c,d){d=void 0===d?{}:d;var e=void 0;d.layer||(d.layer=0);e=void 0!==d.parentLayer?d.parentLayer:d.layer;var f=g.qF(e);e=g.pF(e);var h=c||e,l;h&&(void 0!==d.parentCsn?l={clientScreenNonce:d.parentCsn,visualElement:h}:f&&"UNDEFINED_CSN"!==f&&(l={clientScreenNonce:f,visualElement:h}));var m,n=g.rB("EVENT_ID");"UNDEFINED_CSN"===f&&n&&(m={servletData:{serializedServletEventId:n}});g.PB("combine_ve_grafts")&&f&&AMa(a,f);g.PB("no_client_ve_attach_unless_shown")&&h&&f&&gwa(h,f);try{var p=
ewa(a.client,b,l,d.fW,d.cttAuthInfo,m,d.implicitGestureType,d.loggingExpectations)}catch(t){Sva(t,{GF:b,rootVe:e,bob:c,Zlb:f,Znb:l,fW:d.fW});g.tF(t);return}uva(p,b,d.layer,d.cttAuthInfo);f&&"UNDEFINED_CSN"!==f&&e&&!rva(f)&&jwa(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.QH({clientScreenNonce:p});gP.instance||(gP.instance=new gP);g.xB(fP().j).bind(fP())();var q=g.pF(d.layer);f&&"UNDEFINED_CSN"!==f&&q&&(g.PB("web_mark_root_visible")||g.PB("music_web_mark_root_visible"))&&
g.HF(p,q);a.B.delete(d.layer||0);a.D=void 0;var r;null==(r=a.Ca.get(d.layer))||r.forEach(function(t,v){t?kP(a,v,t,d.layer):q&&kP(a,v,q,d.layer)});
CMa(a)};
CMa=function(a){for(var b=0;b<a.G.length;b++){var c=a.G[b];try{c()}catch(d){g.tF(d)}}for(b=a.G.length=0;b<a.Y.length;b++){c=a.Y[b];try{c()}catch(d){g.tF(d)}}};
AMa=function(a,b){if(void 0===b)for(var c=pva(),d=0;d<c.length;d++)void 0!==c[d]&&AMa(a,c[d]);else a.C.forEach(function(e,f){(f=a.K.get(f))&&g.fwa(a.client,b,f,e)}),a.C.clear(),a.K.clear(),a.ma=void 0};
mP=function(){};
DMa=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."))})};
Jqa=function(a,b){var c=this;this.handleError=a;this.j=b;this.B=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.B=!0});
this.C=Math.random()<=g.QB("ytidb_transaction_ended_event_rate_limit_session",.2)};
FMa=function(a,b){mP.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:EMa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:EMa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
EMa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
HMa=function(){g.NC();return g.OC(0,192)?g.OC(0,190):!(g.PB("web_watch_cinematics_disabled_by_default")||g.PB("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&GMa())};
JMa=function(a){return!IMa||(0,g.pD)()-IMa>a};
LMa=function(a,b){KMa(a.program,b.Pba)&&(TH("bg_i",void 0,"player_att"),g.nP.initialize(a,function(){TH("bg_l",void 0,"player_att");IMa=(0,g.pD)()},b.cspNonce))};
MMa=function(a){a=void 0===a?{}:a;return g.nP.invoke(a)};
KMa=function(a,b){return a?g.nP.isLoading()?!1:JMa(b):!1};
NMa=function(a){a=a.split("");oP.NW(a,43);oP.wJ(a,53);oP.ww(a,3);oP.wJ(a,1);oP.ww(a,3);oP.wJ(a,68);oP.NW(a,15);oP.ww(a,2);return a.join("")};
g.OMa=function(a,b){return a.Ea+"timedtext_video?ref=player&v="+b.videoId};
g.pP=function(a,b){a.feature=b;return a};
g.PMa=function(a){var b=this;this.videoData=a;a={};this.B=(a.c1a=function(){var c=[];if(g.nP.isInitialized()){var d="";b.videoData&&b.videoData.uq&&(d=b.videoData.uq+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);TH("bg_v",void 0,"player_att");d=MMa(d);TH("bg_s",void 0,"player_att");d?c.push("r1a="+d):c.push("r1c=2")}else TH("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.nP.getState());return c.join("&")},a.c6a=
function(c){return"r6a="+(Number(c.c)^kza())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.rB("CATSTAT",0)))},a);
this.videoData&&this.videoData.uq?this.j=BB(this.videoData.uq):this.j={}};
g.QMa=function(a){if(a.videoData&&a.videoData.uq){for(var b=[a.videoData.uq],c=g.u(Object.keys(a.B)),d=c.next();!d.done;d=c.next())d=d.value,a.j[d]&&a.B[d]&&(d=a.B[d](a.j))&&b.push(d);return b.join("&")}return null};
g.RMa=function(a,b){LMa(a,{Pba:g.lJ(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
qP=function(a){a=void 0===a?2592E3:a;if(0<a&&!(qqa()>(0,g.pD)()-1E3*a))return 0;a=g.JC("yt-player-quality");if("string"===typeof a){if(a=g.KK[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
SMa=function(){var a=g.JC("yt-player-proxima-pref");return null==a?null:a};
TMa=function(){var a=g.JC("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};
UMa=function(){var a={values:{},Nq:{}};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};
VMa=function(a,b,c){c=void 0===c?!1:c;var d=rP();0<+d[a]&&(b=Math.min(+d[a],b));d[a]!==b&&(d[a]=b,g.IC("yt-player-performance-cap",d,c?2592E3:604800))};
WMa=function(a,b){b=void 0===b?!0:b;var c=rP();return b?+c[a]||8192:c[a]};
rP=function(){return g.JC("yt-player-performance-cap")||{}};
XMa=function(){var a;return null!=(a=g.JC("yt-player-performance-cap-active-set"))?a:[]};
YMa=function(a){(void 0===a?0:a)?(a=XMa().filter(function(b){return b.startsWith("1")}),g.IC("yt-player-performance-cap-active-set",a,2592E3)):g.IC("yt-player-performance-cap-active-set",[],2592E3)};
ZMa=function(a){g.IC("yt-player-watch-later-pending",a)};
$Ma=function(){return!!g.JC("yt-player-headers-readable")};
aNa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.bNa=function(){var a=g.JC("yt-player-caption-language-preferences");return a?a:[]};
cNa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
g.sP=function(a,b){this.id=a;this.uc=b;this.captionTracks=[];this.C=this.D=null;this.xtags="";this.G=!1;this.j=null;this.B="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";a=this.uc.id.split(".");1<a.length&&(this.G="2"===a[1])};
tP=function(a,b,c,d){this.C=c;this.reason=d;this.B=a||0;this.j=b||0};
dNa=function(a,b){return a.B===b.B&&a.j===b.j&&a.C===b.C&&a.reason===b.reason};
g.uP=function(a,b,c,d){return new tP(g.KK[a]||0,g.KK[b]||0,c,d)};
vP=function(a){var b=g.KK.auto;return a.B===b&&a.j===b};
xP=function(a){return wP[a.j||a.B]||"auto"};
eNa=function(a,b){b=g.KK[b];return a.B<=b&&(!a.j||a.j>=b)};
yP=function(a){return"["+a.B+"-"+a.j+", override: "+(a.C+", reason: "+a.reason+"]")};
zP=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.uc||a.has(d.uc.id)){var e=void 0,f=void 0,h=void 0;null==(h=c)||h({atkerr:!!d.uc,itag:d.itag,xtag:d.j,lang:(null==(e=d.uc)?void 0:e.name)||"",langid:(null==(f=d.uc)?void 0:f.id)||""})}else e=new g.sP(d.id,d.uc),a.add(d.uc.id),this.audioTracks.push(e);null==c||c({atklen:this.audioTracks.length})}};
fNa=function(){g.I.apply(this,arguments);this.j=null};
jNa=function(a,b,c,d,e,f,h){if(a.j)return a.j;var l={},m=new Set,n={};if(AP(d)){for(var p in d.j)d.j.hasOwnProperty(p)&&(a=d.j[p],n[a.info.sb]=[a.info]);return n}p=gNa(b,d,l);f&&e({aftsrt:BP(p)});for(var q={},r=g.u(Object.keys(p)),t=r.next();!t.done;t=r.next()){t=t.value;for(var v=g.u(p[t]),x=v.next();!x.done;x=v.next()){x=x.value;var A=x.itag,E=void 0,F=t+"_"+((null==(E=x.video)?void 0:E.fps)||0);q.hasOwnProperty(F)?!0===q[F]?n[t].push(x):l[A]=q[F]:(E=CP(b,x,c,d.isLive,m),!0!==E?(h.add(t),l[A]=E,
"disablevp9hfr"===E&&(q[F]="disablevp9hfr")):(n[t]=n[t]||[],n[t].push(x),q[F]=!0))}}f&&e({bfflt:BP(n)});for(var G in n)n.hasOwnProperty(G)&&(d=G,n[d]&&n[d][0].Hg()&&(n[d]=n[d],n[d]=hNa(b,n[d],l),n[d]=iNa(n[d],l)));f&&e(l);b=g.u(m.values());for(d=b.next();!d.done;d=b.next())(d=c.C.get(d.value))&&--d.E_;f&&e({aftflt:BP(n)});a.j=g.cd(n,function(M){return!!M.length});
return a.j};
lNa=function(a,b,c,d,e,f,h,l){l=void 0===l?!1:l;if(b.Yc&&h&&1<h.length&&!(0<b.tj||b.Y)){for(var m=b.B||!!e,n=m&&b.Vb?f:void 0,p=gNa(b,d),q=[],r=[],t={},v=0;v<h.length;v++){var x=h[v],A=d.N.get(x);if(A&&A.info){var E=A.info;A=E.sb;if(CP(b,E,c,d.isLive)){x=E.Hg()?q:r;E=g.u(p[A]);for(var F=E.next();!F.done;F=E.next()){F=F.value;var G=void 0,M=A+"_"+((null==(G=F.video)?void 0:G.fps)||0);t.hasOwnProperty(M)?!0===t[M]&&x.push(F):CP(b,F,c,d.isLive)&&(x.push(F),t[M]=!0)}}else m&&f({opfu:x})}}if(q.length&&
r.length)return m&&f({opfm:q[0].itag+","+r[0].itag}),XB(new zP(q,r,n))}return kNa(a,b,c,d,e,f,l)};
kNa=function(a,b,c,d,e,f,h){function l(E){return!!q[E]}
var m=b.B||!!e,n=m&&b.Vb?f:void 0,p=new Set,q=jNa(a,b,c,d,f,m,p);DP(d)&&(q=mNa(c,q,e,m,f,b),m&&f({enflt:BP(q)}));b.tb=nNa(q);if(AP(d))return f=g.Db(Object.values(q),function(E){return!!E.length&&!!E[0].audio}),a=g.Db(Object.values(q),function(E){return!!E.length&&!!E[0].video}),f&&a||WB(),XB(new zP(a,f,n));
e=oNa(b);m&&f({audioPrefOrder:e.join("_")});a=[];if(b.Ee){e=g.ot(e,l);for(var r=new Set,t=g.u(e),v=t.next();!v.done;v=t.next()){v=g.u(q[v.value]);for(var x=v.next();!x.done;x=v.next())x=x.value,x.uc&&!r.has(x.uc.id)&&(r.add(x.uc.id),a.push(x))}if(0===a.length){if(0===e.length)return m&&f({noaudio:1}),WB();a=q[e[0]]}}else{a=g.Db(e,l);if(!a)return m&&f({noaudio:1}),WB();a=q[a]}q["9"]&&q.h&&d.yc&&!b.Wa&&(m&&f({dltvp9:1}),delete q["9"]);if(h){m&&f({bfsflt:BP(q),bfsflta:EP(c)});pNa(c,p);m&&f({bfsfltb:EP(c)});
for(var A in q)if(q.hasOwnProperty(A)&&(h=A,!("f"===h||0===b.Yf&&qNa.has(h))))for(p=g.u(q[h]),e=p.next();!e.done;e=p.next())rNa(c,h,e.value);m&&f({aftsflt:EP(c)})}h=q["1h"]?"1h":"1";c=q["9h"]?"9h":"9";e=q[h];r=q[c];e&&e.length&&(b.j.highestAv1Resolution=e[e.length-1].video.j);r&&r.length&&(b.j.highestVp9Resolution=r[r.length-1].video.j);A=[];p=[];if(b.Bd&&e)A=e,p=[h],f({forceAv1:h});else if(b.Y&&!b.jo)for(p=sNa(d)?q["1h"]||q["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],m&&f({newhybpref:p.join(".")}),
e=g.u(p),r=e.next();!r.done;r=e.next())A=A.concat(q[r.value]).filter(function(E){return E});
else 0<b.tj&&r&&e&&(p=[h,c],A=e.concat(r).filter(function(E){return E}));
if(A.length&&!b.jo){FP(A,p);if(m){m=[];b=g.u(A);for(d=b.next();!d.done;d=b.next())m.push(d.value.itag);f({hbdfmt:m.join(".")})}return XB(new zP(A,a,n))}A=tNa(b);A=g.Db(A,l);if(!A){if(q[h])return f=q[h],FP(f),XB(new zP(f,a,n));m&&f({novideo:1});return WB()}b.Jc&&("1"===A||"1h"===A)&&q[c]&&(h=GP(q[A]),p=GP(q[c]),p>h?A=c:b.rd&&p===h&&uNa(q[c])&&(A=c));"9"===A&&q.h&&GP(q.h)>GP(q["9"])&&(A="h");b.Nb&&d.isLive&&"("===A&&q.H&&1440>GP(q["("])&&(A="H");m&&f({vfmly:vNa(A)});b=q[A];if(!b.length)return m&&f({novfmly:vNa(A)}),
WB();FP(b);return XB(new zP(b,a,n))};
nNa=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3);return!(!a.m&&!a.M)||b||c};
uNa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&wNa.has(b.itag))return!0;return!1};
vNa=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
BP=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(vNa(d));d=g.u(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
mNa=function(a,b,c,d,e,f){var h={},l={};g.bd(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.qe)return l[q]="noenc",!1;if(f.Gb&&"(h"===p.sb&&f.ub)return l[q]="lichdr",!1;if("("===p.sb||"(h"===p.sb){if(a.D&&c&&"widevine"===c.flavor){var r=p.mimeType+"; experimental=allowed";(r=!!p.qe[c.flavor]&&!!c.j[r])||(l[q]=p.qe[c.flavor]?"unspt":"noflv");return r}if(!HP(a,IP.CRYPTOBLOCKFORMAT)&&!a.Ca||a.ma)return l[q]=a.ma?"disvp":"vpsub",!1}return c&&p.qe[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.qe[c.flavor]?
"unspt":"noflv":"nosys",!1)});
m.length&&(h[n]=m)});
d&&Object.entries(l).length&&e(l);return h};
iNa=function(a,b){var c=Gr(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}));
zpa()&&(a=a.filter(function(d){if("299"!==d.itag)return!0;b[d.itag]="ps3hfr1080";return!1}));
return a};
hNa=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.jc)return!0;c[d.itag]="maxquality";return!1})};
gNa=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.N&&f.video&&f.video.j<a.N)c&&(c[f.itag]="min"+a.N);else{var h=f.sb;d[h]=d[h]||[];d[h].push(f)}}a=g.u(Object.keys(d));for(b=a.next();!b.done;b=a.next())FP(d[b.value]);return d};
GP=function(a){return Gr(a,function(b,c){return Math.max(b,c.video.j)},0)};
CP=function(a,b,c,d,e){e=void 0===e?new Set:e;if(""===b.sb)return"unkn";if(("304"===b.itag||"266"===b.itag)&&a.Ia)return"blk2khfr";if(a.K&&b.video&&b.video.j>a.K)return"max"+a.K;if(a.ib&&"h"===b.sb&&b.video&&1080<b.video.j)return"blkhigh264";if("(h"===b.sb&&!c.K)return"enchdr";if((void 0===d?0:d)&&SK(b)&&!a.Ra)return"blk51live";if(("MAC3"===b.sb||"mac3"===b.sb)&&!a.D)return"blkac3";if(("MEAC3"===b.sb||"meac3"===b.sb)&&!a.G)return"blkeac3";if(("M"===b.sb||"m"===b.sb)&&!a.va)return"blkaac51";if(("so"===
b.sb||"sa"===b.sb)&&!a.Ca)return"blkamb";if(!a.Gb&&b.qe&&b.qe.fairplay&&("("===b.sb||"(h"===b.sb||"A"===b.sb||"MEAC3"===b.sb))return"cbc";if("i"===b.sb&&!a.Ob)return"blkiamf";var f,h;if(a.fb&&("1"===b.sb||"1h"===b.sb)&&(null==(f=b.video)?0:f.j)&&(null==(h=b.video)?void 0:h.j)>a.fb)return"av1cap";if((d=c.C.get(b.sb))&&0<d.E_)return e.add(b.sb),"byerr";var l;if(null==(l=b.video)?0:32<l.fps){if(!c.va&&!HP(c,IP.FRAMERATE))return"capHfr";if(a.Za&&4320<=b.video.j)return"blk8khfr";if(QK(b)&&a.Kd&&b.qe&&
1440<=b.video.j)return"disablevp9hfr"}if(a.Pb&&b.Pb>a.Pb)return"ratecap";a=xNa(c,b);return!0!==a?a:!0};
FP=function(a,b){b=void 0===b?[]:b;g.Xb(a,function(c,d){var e=d.Pb-c.Pb;if(!c.Hg()||!d.Hg())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.sb)+1,d=b.indexOf(d.sb)+1,f=0===c||0===d?d||-1:c-d);f||(f=e);return f})};
g.JP=function(a,b){this.B=a;this.D=void 0===b?!1:b;this.C=this.path=this.scheme="";this.j={};this.url=""};
LP=function(a){KP(a);return a.C};
MP=function(a){return a.B?a.B.startsWith("local"):"local"===a.scheme};
yNa=function(a){KP(a);return g.ed(a.j,function(b){return null!==b})};
zNa=function(a){KP(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
NP=function(a,b){b=void 0===b?!1:b;KP(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=a.Ue();c=new g.Eo(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.Go(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.JP(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.Go(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Go(c,"www.youtube.com"),d=c.toString()):(c=WAa(d),QJ(c)&&(d=c));c=new g.JP(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
KP=function(a){if(a.B){if(!QJ(a.B)&&!a.B.startsWith("local"))throw new g.QC("Untrusted URL",a.B);var b=g.No(a.B);a.scheme=b.G;a.C=b.j+(null!=b.D?":"+b.D:"");var c=b.C;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=ANa(c);Object.assign(a.j,
BNa(b.B.toString()));Object.assign(a.j,d);"index.m3u8"===a.j.file&&(delete a.j.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(b=a.get("n"))&&(b=CNa[0](b),a.set("n",b),CNa.length||gma(""))}};
DNa=function(a){KP(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(yNa(a)){var c=[];g.bd(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
ANa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&ENa(c,a[b],a[b+1]);return c};
BNa=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?ENa(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
ENa=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};
OP=function(a){var b=g.U(a,FNa)||a.signatureCipher;a={DX:!1,RC:"",ZF:"",s:""};if(!b)return a;b=BB(b);a.DX=!0;a.RC=b.url;a.ZF=b.sp;a.s=b.s;return a};
PP=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.dh=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.dh=m||null};
g.QP=function(){this.segments=[];this.j=null;this.B=!0};
GNa=function(a,b){if(b>a.Hd())a.segments=[];else{var c=Cb(a.segments,function(d){return d.Pa>=b},a);
0<c&&a.segments.splice(0,c)}};
HNa=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.B=e)?0:8;this.dataOffset=this.offset+this.j};
RP=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
SP=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
TP=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
UP=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
VP=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};
INa=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 jO(b)};
JNa=function(a){return new Uint8Array(a.data.buffer,a.offset+a.data.byteOffset,a.size)};
KNa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
WP=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};
XP=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};
ZP=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.j=YP(this,"Sequence-Number");this.K=YP(this,"Segment-Count");this.N=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=YP(this,"Ingestion-Walltime-Us")/1E6;this.B=(YP(this,"First-Frame-Time-Us")+YP(this,"First-Frame-Uncertainty-Us"))/1E6;this.Mj=YP(this,"Target-Duration-Us")/1E6;this.D="T"===this.data["Stream-Finished"];this.G="T"===this.data.Streamable;this.cryptoPeriodIndex=YP(this,"Crypto-Period-Index");
this.C=YP(this,"Crypto-Period-Seconds")};
MNa=function(a){return a.data["Cuepoint-Type"]?new XP(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",LNa[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):null};
NNa=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
YP=function(a,b){return Number(a.data[b])||0};
ONa=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.PNa=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
g.QNa=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
RNa=function(a,b){this.j=a;this.duration=b};
SNa=function(a,b,c,d,e){this.B=e;this.j=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
$P=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};
TNa=function(a,b){var c=g.aQ(a,0,1952868452);a=g.aQ(a,0,1953658222);if(c&&a){c.skip(1);var d=RP(c)<<16|SP(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=UP(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=RP(a)<<16|SP(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=UP(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=UP(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
cQ=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.aQ(a,0,1836476516))?g.bQ(a):NaN};
UNa=function(a){var b=g.aQ(a,0,1937011556);if(!b)return null;b=dQ(a,b.dataOffset+8,1635148593)||dQ(a,b.dataOffset+8,1635135537);if(!b)return null;var c=dQ(a,b.dataOffset+78,1936995172),d=dQ(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),RP(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=dQ(a,d.dataOffset,1886547818)){var h=dQ(a,d.dataOffset,1886546020),l=dQ(a,d.dataOffset,2037673328);if(!l&&(l=dQ(a,d.dataOffset,1836279920),
!l))return null;h&&(h.skip(4),c=TP(h)/65536,f=TP(h)/65536,e=TP(h)/65536);a=JNa(l);a=new DataView(a.buffer,a.byteOffset+8,a.byteLength-8);return new SNa(b,c,f,e,a)}return null};
dQ=function(a,b,c){for(;eQ(a,b);){var d=fQ(a,b);if(d.type===c)return d;b+=d.size}return null};
g.aQ=function(a,b,c){for(;eQ(a,b);){var d=fQ(a,b);if(d.type===c)return d;b=gQ(d.type)?b+8:b+d.size}return null};
g.VNa=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};
fQ=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new HNa(a,b,c,d)};
g.bQ=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
WNa=function(a){a=new HNa(a.data,a.offset,a.size,a.type,a.B);var b=RP(a);a.skip(7);var c=UP(a);if(0===b){b=UP(a);var d=UP(a)}else b=VP(a),d=VP(a);a.skip(2);for(var e=SP(a),f=[],h=[],l=0;l<e;l++){var m=UP(a);f.push(m);h.push(UP(a));a.skip(4)}return{Lr:c,u6:b,N6:d,Nba:f,kS:h}};
eQ=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};
gQ=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
XNa=function(a){a.skip(4);return{mca:INa(a,0),value:INa(a,0),Lr:UP(a),gob:UP(a),hmb:UP(a),id:UP(a),TY:INa(a),offset:a.offset}};
g.YNa=function(a){var b=dQ(a,0,1701671783);if(!b)return null;var c=XNa(b),d=c.mca;c=$P(c.TY);if(a=dQ(a,b.offset+b.size,1701671783))if(a=XNa(a),a=$P(a.TY),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 ZP(c,d):null};
ZNa=function(a,b){for(var c=dQ(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=dQ(a,c.offset+c.size,b)}};
g.hQ=function(a,b){for(var c=0,d=[];eQ(a,c);){var e=fQ(a,c);e.type===b&&d.push(e);c=gQ(e.type)?c+8:c+e.size}return d};
$Na=function(a,b){var c=g.aQ(a,0,1937011556),d=g.aQ(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.aQ(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 KNa(a.byteLength+b);WP(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;WP(d,a,c.offset+16,c.size-16);WP(d,e,e.byteOffset+f.dataOffset+8,b);WP(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.aQ(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.aQ(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
aOa=function(a){var b=g.aQ(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(1701733217!==c&&1701733238!==c)return null;b=dQ(a,b.offset+24+(1701733217===c?28:78),1936289382);if(!b)return null;c=dQ(a,b.offset+8,1935894637);if(!c||1667392371!==a.getUint32(c.offset+12))return null;b=dQ(a,b.offset+8,1935894633);if(!b)return null;b=dQ(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};
iQ=function(a,b){this.j=a;this.pos=0;this.start=b||0};
jQ=function(a){return a.pos>=a.j.byteLength};
oQ=function(a,b,c){var d=new iQ(c);if(!kQ(d,a))return!1;d=lQ(d);if(!mQ(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=nQ(d,!0);d=a+(d.start+d.pos-b)+e;d=9<d?bOa(d-9,8):bOa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
dOa=function(a){var b=new iQ(a);b.Ln();if(kQ(b,[408125543,374648427,174,224]))b=lQ(b);else return null;for(var c=a=null;!jQ(b);){var d=nQ(b,!1);if(21432===d)switch(pQ(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=lQ(b):qQ(b)}if(!c)return null;for(var e,f=d=b=null;!jQ(c);)switch(nQ(c,!1)){case 30321:if(3!==pQ(c))return null;break;case 30324:b=rQ(c);break;case 30323:f=rQ(c);break;case 30325:d=rQ(c);break;case 30322:e=nQ(c,!0);e=cOa(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:qQ(c)}return e?new SNa(a,b,f,d,e):null};
lQ=function(a){var b=nQ(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 iQ(c,a.start+a.pos);a.pos+=b;return c};
pQ=function(a){for(var b=nQ(a,!0),c=sQ(a),d=1;d<b;d++)c=256*c+sQ(a);return c};
rQ=function(a){var b=nQ(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};
eOa=function(a){var b=nQ(a,!0);return jO(cOa(a,b))};
sQ=function(a){return a.j.getUint8(a.pos++)};
nQ=function(a,b){var c=sQ(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+sQ(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+sQ(a),d*=128;return b?c-d:c};
qQ=function(a){var b=nQ(a,!0);a.pos+=b};
fOa=function(a){if(!mQ(a,440786851,!0))return null;var b=a.pos;nQ(a,!1);var c=nQ(a,!0)+a.pos-b;a.pos=b+c;if(!mQ(a,408125543,!1))return null;nQ(a,!0);if(!mQ(a,357149030,!0))return null;var d=a.pos;nQ(a,!1);var e=nQ(a,!0)+a.pos-d;a.pos=d+e;if(!mQ(a,374648427,!0))return null;var f=a.pos;nQ(a,!1);var h=nQ(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};
tQ=function(a){var b=a.pos;a.pos=0;var c=1E6;kQ(a,[408125543,357149030,2807729])&&(c=pQ(a));a.pos=b;return c};
gOa=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!uQ(a)||!mQ(a,160))return a.pos=c,NaN;nQ(a,!0);var d=a.pos;if(!mQ(a,161))return a.pos=c,NaN;nQ(a,!0);sQ(a);var e=sQ(a)<<8|sQ(a);a.pos=d;if(!mQ(a,155))return a.pos=c,NaN;d=pQ(a);a.pos=c;return(e+d)*b/1E9};
uQ=function(a){if(!hOa(a)||!mQ(a,524531317))return!1;nQ(a,!0);return!0};
hOa=function(a){if(a.Ln()){if(!mQ(a,408125543))return!1;nQ(a,!0)}return!0};
kQ=function(a,b){for(var c=0;c<b.length;c++){if(!mQ(a,b[c]))return!1;c!==b.length-1&&nQ(a,!0)}return!0};
mQ=function(a,b,c){c=void 0===c?!1:c;if(jQ(a))return!1;for(var d=a.pos;nQ(a,!1)!==b;)if(qQ(a),d=a.pos,jQ(a))return!1;c&&(a.pos=d);return!0};
bOa=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};
cOa=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
vQ=function(a){this.base=a;this.j={};this.url=""};
iOa=function(a,b){var c=b.indexOf("?");if(0<c){var d=BNa(b.substr(c+1));g.bd(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=ANa(b);g.bd(b,function(e,f){this.set(f,e)},a)};
jOa=function(a){var b=a.base.Ue(),c=[];g.bd(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=yNa(a.base)?"&":"?";return b+a+d};
kOa=function(a,b){var c=new g.JP(b);(b=c.get("req_id"))&&a.set("req_id",b);g.bd(a.j,function(d,e){c.set(e,null)});
return c};
wQ=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
xQ=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new wQ(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
yQ=function(a,b){return new wQ(a,a+b-1)};
lOa=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
zQ=function(a){if(!a)return new wQ(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new wQ(b,a),0<b.length))return b};
AQ=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.Kj=p;this.clipId=void 0===q?"":q;this.N=[];this.G="";this.Pa=-1;this.G=d;this.Pa=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Zb=l||0;this.B=0<=m?m:this.range?this.range.length:NaN;this.mf=this.range?this.Zb+this.B===this.range.length:void 0===n?!!this.B:n;this.range?(this.C=this.startTime+this.duration*this.Zb/this.range.length,this.K=this.duration*this.B/this.range.length,this.D=
this.C+this.K):mOa(this)};
mOa=function(a){a.C=a.startTime;a.K=a.duration;a.D=a.C+a.K};
BQ=function(a){return a.mf&&a.j.index.mP(a.Pa)};
nOa=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.Zb+b.B===a.Zb+a.B:d};
CQ=function(a){return 1===a.type||2===a.type};
DQ=function(a){return 3===a.type||7===a.type};
EQ=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Zb+a.B===b.range.start+b.Zb:a.Pa===b.Pa?a.Zb+a.B===b.Zb:a.Pa+1===b.Pa&&0===b.Zb&&a.mf:!1};
oOa=function(a,b){return EQ(a,b)||1E-6>=Math.abs(a.D-b.C)||a.Pa+1===b.Pa&&0===b.Zb&&a.mf?!0:!1};
pOa=function(a){return a.Pa+(a.mf?1:0)};
qOa=function(a){1===a.length||g.Fr(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new wQ(a[0].range.start+a[0].Zb,b.range.start+b.Zb+b.B-1)};
rOa=function(a){for(var b=1;b<a.length;b++)if(!EQ(a[b-1],a[b]))return!1;return!0};
sOa=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};
FQ=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.src=""+a.source;b.segsrc=a.G;b.seg=String(a.Pa);a.range&&(b.range=a.range.start+a.Zb+"-"+(a.range.start+a.Zb+a.B-1));b.time=a.C.toFixed(1)+"-"+(a.C+a.K).toFixed(1);b.off=String(a.Zb);b.len=String(a.B);a.mf&&(b.end="1");BQ(a)&&(b.eos="1");a.clipId&&(b.cid=a.clipId);return b};
tOa=function(a){return new AQ(a.type,a.j,a.range,"getEmptyStubBefore"+a.G,a.Pa,a.startTime,0,a.Zb,0)};
uOa=function(a){return new AQ(a.type,a.j,a.range,"getEmptyStubAfter"+a.G,a.Pa,a.startTime+a.duration,0,a.Zb+a.B,0)};
vOa=function(a,b,c,d){return new AQ(a.type,a.j,a.range,"reslice"+a.G,a.Pa,a.startTime,a.duration,b,c,d,a.Kj,a.clipId)};
wOa=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.Zb>=b.range.start+b.Zb&&a.range.start+a.Zb+a.B<=b.range.start+b.Zb+b.B:a.Pa===b.Pa&&a.Zb>=b.Zb&&(a.Zb+a.B<=b.Zb+b.B||b.mf)};
xOa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.wg()?(a=a.j.gB(a),As(a,function(c){return xOa(c,b)})):a.Pa===b.Pa&&!!b.B&&b.Zb+b.B>a.Zb&&b.Zb+b.B<=a.Zb+a.B};
yOa=function(a,b){var c=b.Pa;a.G="updateWithSegmentInfo";a.Pa=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,mOa(a)};
GQ=function(a,b){var c=this;this.eb=a;this.D=this.j=null;this.G=this.ih=NaN;this.K=this.requestId=null;this.Cd={hnb:function(){return c.range}};
this.resource=a[0].j.resource;this.B=b||"";this.eb[0].range&&0<this.eb[0].B&&(rOa(a)?(this.range=qOa(a),this.C=this.range.length):(this.range=this.eb[this.eb.length-1].range,this.C=sOa(a)))};
HQ=function(a){return!!(a.j||a.D&&a.D.ox)};
zOa=function(a){return!CQ(a.eb[a.eb.length-1])};
IQ=function(a){return 4===a.eb[a.eb.length-1].type};
g.BOa=function(a,b,c){c=null===a.K?JQ(a.resource,b,c,a.eb[0].type):a.K;if(a.j){c=c?NP(a.j,b.zl):a.j;var d=new vQ(c);d.get("alr")||d.set("alr","yes");a.B&&iOa(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new vQ(new g.JP(a.B)):(d=AOa(a.resource,c,b),a.B&&iOa(d,a.B));if(b.Eu&&5===a.eb[0].type||6===a.eb[0].type)b=d.base.clone(),KP(b),"/videogoodput"!==b.path&&(b.path="/videogoodput",b.url=""),d=new vQ(b);(b=a.range)?d.set("range",b.toString()):a.eb[0].j.Xv()&&1===a.eb.length&&a.eb[0].Zb&&d.set("range",a.eb[0].Zb+
"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.ih)||d.set("headm",a.ih.toString());isNaN(a.G)||d.set("mffa",a.G+"ms");a.urlParams&&g.bd(a.urlParams,function(e,f){d.set(f,e)});
return d};
DOa=function(a){if(a.range)return a.C;a=a.eb[0];return COa?Math.round(a.B):Math.round(a.K*a.j.info.Pb)};
EOa=function(a,b){return Math.max(0,a.eb[0].C-b)};
FOa=function(){this.D=this.C=this.j=this.timedOut=this.started=this.G=this.B=0};
GOa=function(a){a.G=(0,g.pD)();a.started=0;a.timedOut=0;a.j=0};
HOa=function(a,b){var c=a.started+4*a.j;b&&(c+=a.C);c=Math.max(0,c-3);return Math.pow(1.6,c)};
KQ=function(a,b){a[b]||(a[b]=new FOa);return a[b]};
MQ=function(a){this.Z=this.K=this.G=this.C=0;this.N=!1;this.j=a;this.B=a.clone()};
JQ=function(a,b,c,d){if(MP(a.j))return!1;if(6===(void 0===d?3:d))return a.N=!a.N,a.N;d=KQ(c,LP(a.j));if(1>d.timedOut&&1>d.j)return!1;d=d.timedOut+d.j;a=IOa(a,b);c=KQ(c,LP(a));return c.timedOut+c.j+0<d};
AOa=function(a,b,c){a=b?IOa(a,c):a.j;return new vQ(a)};
IOa=function(a,b){b=b?b.zl:!1;a.D||(a.D=NP(a.B,b));return a.D};
JOa=function(a,b,c){return LP(b?IOa(a,c):a.j)};
KOa=function(a,b,c){c=KQ(c,JOa(a,JQ(a,b,c),b));b=Math.max(a.G,c.timedOut)+b.rC*(a.C-a.G)+.25*a.K;b=3<b?1E3*Math.pow(1.6,b-3):0;return 0===b?!0:a.Z+b<(0,g.pD)()};
LOa=function(a,b,c){a.j.set(b,c);a.B.set(b,c);a.D&&a.D.set(b,c)};
NQ=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.C=!1;this.K=0;this.D=this.B=null;this.info=b;this.resource=new MQ(a)};
OQ=function(a,b,c,d,e,f){f=void 0===f?0:f;NQ.call(this,a,b,d,void 0);this.G=c;this.Mj=f;this.index=e||new g.QP};
MOa=function(a,b,c,d,e){this.Pa=a;this.startSecs=b;this.yh=c;this.j=d||NaN;this.B=e||NaN};
PQ=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""};
QQ=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
NOa=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};
OOa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
RQ=function(){this.j=[];this.B=null;this.K=0;this.C=[];this.G=!1;this.N="";this.D=-1};
POa=function(a){var b=a.C;a.C=[];return b};
QOa=function(){this.D=[];this.j=null;this.B={};this.C={}};
UOa=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=ROa(a):"AdaptationSet"===e.nodeName?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=SOa(a,e)):"Representation"===e.nodeName&&(e=e.getAttribute("id")||"",f=TOa(a,e));if(null==f)return;f.update(d);g.Mb(c,POa(f))}g.Mb(a.D,c);xaa(a.D,function(h){return 1E3*h.startSecs+h.j})};
VOa=function(a){a.j&&(a.j.j=[]);g.bd(a.B,function(b){b.j=[]});
g.bd(a.C,function(b){b.j=[]})};
ROa=function(a){a.j||(a.j=new RQ);return a.j};
SOa=function(a,b){a.B[b]||(a.B[b]=new RQ);return a.B[b]};
TOa=function(a,b){a.C[b]||(a.C[b]=new RQ);return a.C[b]};
WOa=function(a){var b=void 0===a?{}:a;a=void 0===b.Mj?0:b.Mj;var c=void 0===b.dn?!1:b.dn,d=void 0===b.xq?0:b.xq,e=void 0===b.qf?0:b.qf,f=void 0===b.Ji?Infinity:b.Ji,h=void 0===b.qA?0:b.qA;b=void 0===b.ye?!1:b.ye;g.QP.call(this);this.Qq=this.Ep=-1;this.Nj=a;this.xq=d;this.dn=c;this.qf=e;this.Ji=f;this.qA=h;this.ye=b};
SQ=function(a,b){return Vb(a.segments,function(c){return b-c.Pa})};
TQ=function(a,b,c){c=void 0===c?{}:c;OQ.call(this,a,b,"",void 0,void 0,c.Mj||0);this.index=new WOa(c)};
UQ=function(a,b,c){NQ.call(this,a,b);this.G=c;this.index=new g.QP;this.index.B=!1};
XOa=function(a,b,c){var d=a.index.kI(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.Pb*f;return new GQ([new AQ(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
YOa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.K;b=b.N.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 PP(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
VQ=function(a,b){this.info=a;this.j=b;this.B=null;this.D=this.C=-1;this.timestampOffset=0;this.K=!1;this.G=this.info.j.aA()&&!this.info.Zb};
WQ=function(a){return XHa(a.j)};
ZOa=function(a,b){a.j.getLength();b=Math.min(b,a.info.B);var c=a.j.split(b),d=c.Gm;c=new VQ(new AQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Zb,b,!1,a.info.Kj,a.info.clipId),c.zI);c.D=a.D;c.C=a.C;b=new VQ(new AQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Zb+b,a.info.B-b,a.info.mf,a.info.Kj,a.info.clipId),d);b.D=a.D;b.C=a.C;return[c,b]};
XQ=function(a,b,c){var d;if(!(d=!EQ(a.info,b.info)||a.info.mf)){if(c=void 0===c?!1:c)c=a.j,d=b.j,c=!(d.j.length?THa(c,d.j[0]):1);d=c}if(d)return null;c=new AQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Zb,a.info.B,a.info.mf,a.info.Kj,a.info.clipId);d=b.info;c.B+=d.B;c.range&&(c.K+=d.K);c.D=d.D;c.mf=d.mf;d=new cO;dO(d,a.j);dO(d,b.j);c=new VQ(c,d);c.B=b.B||a.B;c.C=-1!==a.C?a.C:b.C;c.D=-1!==a.D?a.D:b.D;return c};
$Oa=function(a){g.TK(a.info.j.info)||a.info.j.info.Ve();if(-1!==a.C)return a.C;if(a.B&&NNa(a.B))return a.C=NNa(a.B),a.C;if(g.TK(a.info.j.info)){var b=WQ(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;eQ(b,f);){var h=fQ(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.bQ(h):1952867444===h.type&&isNaN(d)&&(d=g.VNa(h));f=gQ(h.type)?f+8:f+h.size}!e&&c&&(e=cQ(c));b=d/e}else b=new iQ(WQ(a)),c=a.G?b:new iQ(new DataView(a.info.j.j.buffer)),d=tQ(c),c=b.pos,b.pos=0,uQ(b)?mQ(b,231)?
(d=pQ(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.C=b||a.info.C;return a.C};
bPa=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=$Oa(a)+b;aPa(a,c);a.timestampOffset=b};
aPa=function(a,b){g.TK(a.info.j.info)||a.info.j.info.Ve();a.C=b;if(g.TK(a.info.j.info)){var c=WQ(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;eQ(c,f);){var h=fQ(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.bQ(h)));if(1952867444===h.type){!d&&a&&(d=cQ(a));var l=g.VNa(h);isNaN(e)&&(e=Math.round(b*d)-l);var m=h;l+=e;if(m.data.getUint8(m.dataOffset)){var n=m.data;m=m.dataOffset+4;n.setUint32(m,Math.floor(l/4294967296));n.setUint32(m+4,l&4294967295)}else m.data.setUint32(m.dataOffset+
4,l)}f=gQ(h.type)?f+8:f+h.size}return!0}c=new iQ(WQ(a));a=a.G?c:new iQ(new DataView(a.info.j.j.buffer));d=tQ(a);a=c.pos;c.pos=0;if(uQ(c)&&mQ(c,231))if(e=nQ(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};
YQ=function(a,b){b=void 0===b?!1:b;var c=cPa(a);a=b?0:a.info.K;return c||a};
cPa=function(a){g.TK(a.info.j.info)||a.info.j.info.Ve();if(a.B&&7===a.info.type)return a.B.Mj;if(g.TK(a.info.j.info)){var b=WQ(a);var c=0;b=g.hQ(b,1936286840);b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=WNa(d.value),c+=d.kS[0]/d.Lr;c=c||NaN;if(!(0<=c))a:{c=WQ(a);b=a.info.j.j;for(var e=d=0,f=0;eQ(c,d);){var h=fQ(c,d);if(1836476516===h.type)e=g.bQ(h);else if(1836019558===h.type){!e&&b&&(e=cQ(b));if(!e){c=NaN;break a}var l=dQ(h.data,h.dataOffset,1953653094),m=l;l=e;var n=dQ(m.data,m.dataOffset,
1952868452);m=dQ(m.data,m.dataOffset,1953658222);var p=TP(n);TP(n);p&2&&TP(n);n=p&8?TP(n):0;var q=TP(m),r=q&1;p=q&4;var t=q&256,v=q&512,x=q&1024;q&=2048;var A=UP(m);r&&TP(m);p&&TP(m);for(var E=r=0;E<A;E++){var F=t?TP(m):n;v&&TP(m);p&&0===E||!x||TP(m);q&&TP(m);r+=F}f+=r/l}d=gQ(h.type)?d+8:d+h.size}c=f||NaN}c||g.uF(new g.QC("Missing duration while parsing bmff",a.info.Qd()))}else c=new iQ(WQ(a)),a=a.G?c:new iQ(new DataView(a.info.j.j.buffer)),c=gOa(c,tQ(a));return c};
dPa=function(a){var b=WQ(a);var c=(c=g.aQ(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.aQ(b,0,1836476516))?g.bQ(b):a?cQ(a):NaN);return c};
ePa=function(a){return a.info.j.info.Ve()&&160===gO(a.j,0)};
fPa=function(a){if(!a.B){g.TK(a.info.j.info)||a.info.j.info.Ve();if(g.TK(a.info.j.info))var b=g.YNa(WQ(a));else{b=new iQ(WQ(a));var c=b.pos;b.pos=0;var d=null,e=null;if(kQ(b,[408125543,307544935]))for(var f=b.pos+nQ(b,!0);b.pos<f;)if(29555!==nQ(b,!1))qQ(b);else for(var h=b.pos+nQ(b,!0);b.pos<h;)if(26568!==nQ(b,!1))qQ(b);else for(var l=b.pos+nQ(b,!0);b.pos<l;){var m=nQ(b,!1);if(17543===m){if(m=eOa(b),m=$P(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=eOa(b),d||(d=m)):qQ(b)}b.pos=c;b=e?new ZP(e,d):null}a.B=b}};
gPa=function(a){if(g.TK(a.info.j.info))ZNa(WQ(a),1836019574),ZNa(WQ(a),1718909296);else{var b=new iQ(WQ(a));hOa(b);mQ(b,524531317,!0);a.j=a.j.split(b.start+b.pos).Gm}a.G=!1};
hPa=function(a){if(!a.K){if(g.TK(a.info.j.info)){var b=WQ(a);var c=dQ(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=fOa(new iQ(WQ(a)));b&&(a.info.j.j=b,a.K=!0)}};
g.iPa=function(){this.count=0;this.j=1;this.B=!1;this.offsets=new Float64Array(128);this.Fh=new Float64Array(128)};
jPa=function(a,b){return b+1<a.count||a.B?a.offsets[b+1]-a.offsets[b]:-1};
kPa=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
ZQ=function(a,b,c,d){NQ.call(this,a,b,c,d);var e=this;this.G=null;this.Cd={JD:function(f,h,l,m){return e.JD(f,h,l,m)}};
this.index=new g.iPa};
lPa=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};
nPa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return mPa[a];return null};
g.$Q=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
pPa=function(a){return oPa(function(b,c){return g.UB(b,c,4,1E3)},a,{format:"RAW",
method:"GET",withCredentials:!0})};
g.qPa=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=jO(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
oPa=function(a,b,c){b.match(rPa);return a(b,c).then(function(d){var e=g.qPa(d.xhr);return e?oPa(a,e,c):d.xhr})};
bR=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.NF.call(this);var d=this;this.sourceUrl=a;this.isLivePlayback=c;this.Xa=this.duration=0;this.isPremiere=this.ye=this.C=this.isLiveHeadPlayable=this.isLive=this.B=!1;this.Ji=this.qf=0;this.isOtf=this.yc=!1;this.Ma=(0,g.pD)();this.Y=Infinity;this.j={};this.N=new Map;this.state=this.Ig=0;this.timeline=null;this.isManifestless=!1;this.ma=[];this.G=null;this.va=0;this.D="";this.Ca=NaN;this.jc=this.Za=this.Ob=this.timestampOffset=
this.K=0;this.Ra=this.Wa=this.Z=!1;this.Ia=[];this.Ea={};this.Cd={Glb:function(f){aR(d,f)}};
var e;this.fb=null==(e=b)?void 0:e.kb("html5_use_network_error_code_enums");sPa=!!b&&b.kb("html5_modern_vp9_mime_type")};
tPa=function(a){return g.ed(a.j,function(b){return!!b.info.video&&2160<=b.info.video.j})};
sNa=function(a){return g.ed(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
DP=function(a){return g.ed(a.j,function(b){return!!b.info.qe})};
uPa=function(a){return g.ed(a.j,function(b){return XK(b.info.mimeType)})};
vPa=function(a){return g.ed(a.j,function(b){return b.info.video?"EQUIRECTANGULAR"===b.info.video.projectionType:!1})};
wPa=function(a){return g.ed(a.j,function(b){return b.info.video?"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.info.video.projectionType:!1})};
xPa=function(a){return g.ed(a.j,function(b){return b.info.video?"MESH"===b.info.video.projectionType:!1})};
yPa=function(a){return g.ed(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
zPa=function(a){return aba(a.j,function(b){return b.info.video?b.VQ():!0})};
AP=function(a){return g.ed(a.j,function(b){return MP(b.resource.j)})};
aR=function(a,b){a.j[b.info.id]=b;a.N.set(WK(b.info,a.yc),b)};
APa=function(a,b){return(b.itag||"")+";"+((a.yc?0:b.lmt||0)||0)+";"+(b.xtags||"")};
cR=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(CCa(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=BPa[a.stereoLayout]);var r=nPa(a)||void 0;if(null==n?0:n.primaries)var t=CPa[n.primaries]||void 0;h=new LK(h,e,l,p,q,void 0,m,r,t);d=DPa(d,h,OK[a.itag||""])}var v;if(BCa(d)){var x=a.audioSampleRate;q=a.audioTrack;x=new JK(x?+x:void 0,a.audioChannels,a.spatialAudioType,
a.isDrc,a.loudnessDb,a.trackAbsoluteLoudnessLkfs);q&&(t=q.displayName,e=q.id,q=q.audioIsDefault,t&&(v=new g.$Q(t,e||"",!!q)))}var A;a.captionTrack&&(m=a.captionTrack,q=m.displayName,t=m.vssId,e=m.languageCode,l=m.kind,m=m.id,q&&t&&e&&(A=new lPa(q,t,e,l,a.xtags,m)));q=Number(a.bitrate)/8;t=Number(a.contentLength);e=Number(a.lastModified);m=a.drmFamilies;l=a.type;c=c&&t?t/c:0;a=Number(a.approxDurationMs);if(b&&m){var E={};m=g.u(m);for(n=m.next();!n.done;n=m.next())(n=EPa[n.value])&&(E[n]=b[n])}return new PK(f,
d,{audio:x,video:h,uc:v,qe:E,Pb:q,Vu:c,contentLength:t,lastModified:e,captionTrack:A,streamType:l,approxDurationMs:a})};
FPa=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(CCa(d)){var h=(a.size||"640x360").split("x");h=new LK(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=DPa(d,h,OK[a.itag])}var l;if(BCa(d)){var m=new JK(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.$Q(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 lPa(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind,a.xtags,a.caption_id));f=Number(a.bitrate)/8;var p=Number(a.clen),q=Number(a.lmt);c=c&&p?p/c:0;if(b&&a.drm_families){var r={};for(var t=g.u(a.drm_families.split(",")),v=t.next();!v.done;v=t.next())v=v.value,r[v]=b[v]}return new PK(e,d,{audio:m,video:h,uc:l,qe:r,Pb:f,Vu:c,contentLength:p,lastModified:q,captionTrack:n,streamType:a.stream_type,approxDurationMs:Number(a.approx_duration_ms)})};
GPa=function(a){return As(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
HPa=function(a){return As(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
IPa=function(a,b){return a.timeline?Ob(a.timeline.D,b):a.ma.length?Ob(a.ma,b):[]};
dR=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.JP(a,!0);a.set("alr","yes");c&&(c=NMa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
MPa=function(a,b){var c=PQ(b,"id");c=c.replace(":",";");var d=PQ(b,"mimeType"),e=PQ(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(PQ(b,"bandwidth"))/8;var f=Number(QQ(b,"BaseURL").getAttribute(a.D+":contentLength")),h=a.duration&&f?f/a.duration:0;if(CCa(d)){var l=Number(PQ(b,"width"));var m=Number(PQ(b,"height")),n=Number(PQ(b,"frameRate")),p=JPa(PQ(b,a.D+":projectionType"));a:switch(PQ(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 LK(l,m,n,p,q)}if(BCa(d)){var r=Number(PQ(b,"audioSamplingRate"));var t=Number(PQ(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=KPa(PQ(b,a.D+":spatialAudioType"));r=new JK(r,t,m);a:{t=PQ(b,"lang")||"und";if(m=QQ(b,"Role"))if(p=PQ(m,"value")||"",g.jd(LPa,p)){m=t+"."+LPa[p];n="main"===p;a=PQ(b,a.D+":langName")||t+" - "+p;t=new g.$Q(a,m,n);break a}t=void 0}}if(b=QQ(b,"ContentProtection"))if("http://youtube.com/drm/2012/10/10"===b.getAttribute("schemeIdUri")){var v={};for(b=
b.firstChild;null!=b;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(v[a]=m.trim()))}else v=void 0;return new PK(c,d,{audio:r,video:l,uc:t,qe:v,Pb:e,Vu:h,contentLength:f})};
JPa=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"}};
KPa=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"}};
OPa=function(a,b){b=void 0===b?"":b;a.state=1;a.Ma=(0,g.pD)();return pPa(b||a.sourceUrl).then(function(c){if(!a.isDisposed()){a.Ig=c.status;c=c.responseText;var d=new DOMParser;c=Wba(d,fma(c)).getElementsByTagName("MPD")[0];a.Y=1E3*NOa(PQ(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.Y&&a.isLivePlayback;a.Xa=Number(PQ(c,
a.D+":earliestMediaSequence"))||0;if(d=Date.parse(OOa(PQ(c,a.D+":mpdResponseTime"))))a.va=((0,g.pD)()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Fr(c.getElementsByTagName("Period"),a.jba,a);a.state=2;a.ra("loaded");NPa(a)}return a}).Al(function(c){if(c instanceof SB){var d=c.xhr;
a.Ig=d.status}a.state=3;a.ra("loaderror");return tg(d)})};
PPa=function(a,b,c){return OPa(new bR(a,b,c),a)};
QPa=function(a){return a.isLive&&(0,g.pD)()-a.Ma>=a.Y};
RPa=function(a){a.G&&a.G.stop()};
NPa=function(a){var b=a.Y;isFinite(b)&&(QPa(a)?a.refresh():(b=Math.max(0,a.Ma+b-(0,g.pD)()),a.G||(a.G=new g.Qu(a.refresh,b,a),g.N(a,a.G)),a.G.start(b)))};
SPa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.Hd()+1}return 0};
eR=function(a){return a.Ob?a.Ob-(a.K||a.timestampOffset):0};
fR=function(a){return a.Za?a.Za-(a.K||a.timestampOffset):0};
gR=function(a){if(!isNaN(a.Ca))return a.Ca;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()&&!XK(b[c].info.mimeType)){b=0;for(c=d.xn();c<=d.Hd();c++)b+=d.getDuration(c);b/=d.Ez();b=.5*Math.round(b/.5);10<d.Ez()&&(a.Ca=b);return b}if(a.isLive&&(d=b[c],d.Mj))return d.Mj}return NaN};
TPa=function(a,b){a=cba(a.j,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.Fi(b);return a.getStartTime(c)===b?b:c<a.Hd()?a.getStartTime(c+1):NaN};
UPa=function(a,b){if(!a.j["0"]){var c=new PK("0","fakesb",{video:new LK(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new OQ(new g.JP("http://www.youtube.com/videoplayback"),c,"fake"):new ZQ(new g.JP("http://www.youtube.com/videoplayback"),c,new wQ(0,0),new wQ(0,0))}};
hR=function(a,b,c){for(var d in a.j){var e=XK(a.j[d].info.mimeType)||a.j[d].info.Hg();if(c===e){e=a.j[d].index;var f=SQ(e,b);0<=f&&e.segments.splice(f,1)}}};
VPa=function(a){for(var b in a.j)XK(a.j[b].info.mimeType)||GNa(a.j[b].index,Infinity)};
WPa=function(a,b,c){for(var d in a.j){var e=a.j[d].index,f=b,h=c;e.dn&&(f&&(e.Ep=Math.max(e.Ep,f)),h&&(e.Qq=Math.max(e.Qq||0,h)))}};
XPa=function(a){a.Za=0;a.Ob=0;a.jc=0};
iR=function(a){return a.Wa&&a.isManifestless?a.isLiveHeadPlayable:a.isLive};
DPa=function(a,b,c){null===jR&&(jR=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(sPa&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return jR||"9"!==c&&"("!==c?jR||"9h"!==c&&"(h"!==c||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!jR&&!YPa||'video/webm; codecs="vp9"'!==a&&'video/webm; codecs="vp9.2"'!==
a)return a;c="00";var d="08",e="01",f="01",h="01";'video/webm; codecs="vp9.2"'===a&&(c="02",d="10","bt2020"===b.primaries&&(h=e="09"),"smpte2084"===b.B&&(f="16"),"arib-std-b67"===b.B&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'};
lR=function(a,b,c,d){b=""+b+(49<c?"p60":32<c?"p48":"");if(!a.L("html5_gradual_perf_cap"))return WMa(b);a=WMa(b,!1);if(null!=a)return a;a=kR.get(b);if(null!=a)return a;d=null==d?void 0:d.get(b);return null!=d?d:8192};
ZPa=function(a){this.Ha=a;this.Lc=this.jo=this.Na=this.G=this.D=this.va=this.Ma=this.Xa=this.Ca=!1;this.N=this.K=0;this.ib=!1;this.Ia=!0;this.Za=!1;this.tj=0;this.Ea=!1;this.jc=Infinity;this.EM=!1;this.Jc=!0;this.Wa=this.Ra=!1;this.j={};this.B=this.Y=!1;this.Vb=this.Ha.Dc();this.Nb=!1;this.Gb=this.Ha.experiments.kb("html5_enable_vp9_fairplay");this.Bd=this.Ha.L("html5_force_av1_for_testing");this.fb=g.lJ(this.Ha.experiments,"html5_av1_ordinal_cap");this.Kd=this.Ha.L("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");
this.Yc=this.Ha.L("html5_account_onesie_format_selection_during_format_filter");this.rd=this.Ha.L("html5_prefer_hbr_vp9_over_av1");this.Yf=0;this.disableAv1=this.ub=this.tb=!1;this.Pb=g.lJ(this.Ha.experiments,"html5_max_byterate");this.Z=this.Ha.L("html5_prefer_high_aac_by_default");this.Ee=this.Ha.L("html5_prefer_language_over_codec");this.Ob=this.Ha.L("html5_enable_iamf_audio")};
tNa=function(a){if(a.Xa)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Ea&&(b.unshift("1"),b.unshift("1h"));a.jo&&b.unshift("h");a.ma&&(b=($Pa[a.ma]||[a.ma]).concat(b));return b};
oNa=function(a){var b=["o","a","A"];a.Z&&b.unshift("ah");1===a.Yf&&(a.va&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.G&&(b=["meac3","MEAC3"].concat(b)));a.Ca&&(b=["so","sa"].concat(b));!a.Lc||a.Na||a.C||b.unshift("a");!a.Z&&a.Ma&&b.unshift("ah");a.C&&(b=($Pa[a.C]||[a.C]).concat(b));a.Ob&&b.unshift("i");return b};
aQa=function(a,b,c,d){b=void 0===b?{}:b;if(void 0===d?0:d)return b.disabled=1,0;if(HP(a.G,IP.AV1_CODECS)&&HP(a.G,IP.HEIGHT)&&HP(a.G,IP.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=aNa();if(e)return b.localPref=e}catch(l){}d=1080;2>=navigator.hardwareConcurrency&&(d=480);b.coreCount=navigator.hardwareConcurrency;ypa()&&(b.isArm=1,d=240);if(c){var f,h;if(e=null==(f=c.videoInfos.find(function(l){return RK(l)}))?void 0:null==(h=f.B)?void 0:h.powerEfficient)d=8192,b.isEfficient=1;
c=c.videoInfos[0].video;a=Math.min(lR(a,"1",c.fps),lR(a,"1",30));b.perfCap=a;d=Math.min(d,a);c.isHdr()&&!e&&(b.hdr=1,d*=.75)}else c=lR(a,"1",30),b.perfCap30=c,d=Math.min(d,c),c=lR(a,"1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
mR=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.j={};this.Xa=this.keySystemAccess=null;this.jy=this.ly=-1;this.Nl=null;this.C=!!d&&d.kb("edge_nonprefixed_eme")};
oR=function(a){return a.C?!1:!a.keySystemAccess&&!!nR()&&"com.microsoft.playready"===a.keySystem};
pR=function(a){return"com.microsoft.playready"===a.keySystem};
qR=function(a){return!a.keySystemAccess&&!!nR()&&"com.apple.fps.1_0"===a.keySystem};
rR=function(a){return"com.youtube.fairplay"===a.keySystem};
sR=function(a){return"com.youtube.fairplay.sbdl"===a.keySystem};
g.tR=function(a){return"fairplay"===a.flavor};
nR=function(){var a=window,b=a.MSMediaKeys;fC()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
bQa=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.GK&&!g.dC())return yv("45");if(g.GD||g.Cf)return a.kb("edge_nonprefixed_eme");if(g.uR)return yv("47");if(g.kD){if(a.kb("html5_enable_safari_fairplay"))return!1;if(a=g.lJ(a,"html5_safari_desktop_eme_min_version"))return yv(a)}return!0};
dQa=function(a,b,c,d){var e=eC(),f=(c=e||c&&fC())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&f.unshift("com.youtube.widevine.l3");e&&d&&f.unshift("com.youtube.fairplay.sbdl");return c?f:a?[].concat(g.pa(f),g.pa(cQa.playready)):[].concat(g.pa(cQa.playready),g.pa(f))};
vR=function(a,b,c,d,e){d=void 0===d?!1:d;g.I.call(this);this.Ha=b;this.useCobaltWidevine=d;this.qa=e;this.B=[];this.C={};this.j={};this.callback=null;this.G=!1;this.D=[];this.initialize(a,!c)};
gQa=function(a,b){a.callback=b;a.D=[];bQa(a.Ha.experiments)?eQa(a):fQa(a)};
eQa=function(a){if(!a.isDisposed())if(0===a.B.length)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=hQa(a,c);if(wR&&wR.keySystem===b&&wR.aca===JSON.stringify(d))a.qa("remksa",{re:!0}),iQa(a,c,wR.keySystemAccess);else{var e,f;a.qa("remksa",{re:!1,ok:null!=(f=null==(e=wR)?void 0:e.keySystem)?f:""});wR=void 0;(xR.isActive()?xR.Ek("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(MO(function(h){iQa(a,c,h,d)}),MO(function(){a.G=!a.G&&
"widevine"===a.C[a.B[0]].flavor;
a.G||a.B.shift();eQa(a)}))}}};
iQa=function(a,b,c,d){if(!a.isDisposed()){d&&(wR={keySystem:b.keySystem,keySystemAccess:c,aca:JSON.stringify(d)});b.keySystemAccess=c;if(pR(b)){c=EK();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())jQa(a,b,e.value);if(c.videoCapabilities)for(c=g.u(c.videoCapabilities),d=c.next();!d.done;d=c.next())jQa(a,b,d.value)}a.D.push(b);
a.useCobaltWidevine||a.L("html5_enable_vp9_fairplay")&&sR(b)?(a.B.shift(),eQa(a)):a.callback(a.D)}};
jQa=function(a,b,c){a.L("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
hQa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.L("html5_enable_vp9_fairplay")&&rR(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];pR(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.u(Object.keys(a.j[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==
b.flavor||a.G?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.GK&&g.bC("windows nt")&&!a.L("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.L("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),"MWEB"===g.yR(a.Ha)&&(kC()||cC())&&(a.qa("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
fQa=function(a){if(nR()&&g.kD)a.D.push(new mR("fairplay","com.apple.fps.1_0","",a.Ha.experiments));else{var b=kQa(),c=g.Db(a.B,function(d){var e=a.C[d],f=!1,h=!1,l;for(l in a.j[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c&&a.D.push(a.C[c]);a.B=[]}a.callback(a.D)};
kQa=function(){var a=nR();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=EK();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
lQa=function(a){this.experiments=a;this.C=0;this.K=(this.D=this.experiments.kb("html5_consider_end_stall"))&&zR;this.B=this.experiments.kb("html5_measure_max_progress_handling");this.G=(this.j=this.experiments.kb("html5_record_ump_timing"))&&this.experiments.kb("html5_use_ump_timing")};
mQa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=zB(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.lJ=function(a,b){return Number(a.flags[b])||0};
AR=function(a,b){return(a=a.flags[b])?a.toString():""};
nQa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]};
oQa=function(a){if(a.j)return a.j;if(1>=a.experimentIds.length)return a.j=a.experimentIds,a.j;var b=[].concat(g.pa(a.experimentIds)).map(function(d){return Number(d)});
b.sort();for(var c=b.length-1;0<c;--c)b[c]-=b[c-1];a.j=b.map(function(d){return d.toString()});
a.j.unshift("v1");return a.j};
qQa=function(a){return pQa.then(a)};
rQa=function(a,b,c){this.experiments=a;this.va=b;this.Ca=void 0===c?!1:c;this.Z=!!g.Wa("cast.receiver.platform.canDisplayType");this.N={};this.Y=!1;this.C=new Map;this.K=!0;this.B=this.D=!1;this.ma=this.experiments.kb("html5_disable_vp9_encrypted");this.j=new Map;a=g.Wa("cast.receiver.platform.getValue");this.G=!this.Z&&a&&a("max-video-resolution-vpx")||null};
xNa=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.Ve()&&eC()&&a.experiments.kb("html5_appletv_disable_vp9"))return"dwebm";if(RK(b)&&a.Y)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(HP(a,IP.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.GK?yv(53):g.uR&&yv(64)))return"dopus";
var f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[IP.WIDTH.name]=b.video.width),b.video.height&&(c[IP.HEIGHT.name]=b.video.height),b.video.fps&&(c[IP.FRAMERATE.name]=b.video.fps*f),b.video.B&&(c[IP.EOTF.name]=b.video.B),b.Pb&&(c[IP.BITRATE.name]=8*b.Pb*f),"("===b.sb&&(c[IP.CRYPTOBLOCKFORMAT.name]="subsample"),"EQUIRECTANGULAR"===b.video.projectionType||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.video.projectionType||"MESH"===b.video.projectionType)&&(c[IP.DECODETOTEXTURE.name]="true");b.audio&&
b.audio.numChannels&&(c[IP.CHANNELS.name]=b.audio.numChannels);a.D&&QK(b)&&(c[IP.EXPERIMENTAL.name]="allowed");f=g.u(Object.keys(IP));for(var h=f.next();!h.done;h=f.next())if(h=IP[h.value],c[h.name]&&!(h===IP.EOTF&&0<b.mimeType.indexOf("vp09.02")||a.experiments.kb("html5_ignore_h264_framerate_cap")&&h===IP.FRAMERATE&&wCa(b)))if(HP(a,h))if(a.G){if(a.G[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(xCa(b)&&h===IP.EOTF)return"dvp92";a.Z&&b.video&&1080<b.video.j&&b.qe&&(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.kb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"};
BR=function(){var a=cC()&&!yv(29),b=g.bC("google tv")&&g.bC("chrome")&&!yv(30);return a||b?!1:FCa()};
sQa=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===xNa(a,e,c)&&(d=f)}return d};
g.tQa=function(a,b){b=void 0===b?!1:b;return BR()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(EK(),"application/x-mpegURL")?!0:!1};
vQa=function(a){uQa(function(){for(var b=g.u(Object.keys(IP)),c=b.next();!c.done;c=b.next())HP(a,IP[c.value])})};
HP=function(a,b){b.name in a.N||(a.N[b.name]=wQa(a,b));return a.N[b.name]};
wQa=function(a,b){if(a.G)return!!a.G[b.name];if(b===IP.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===IP.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.In);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.In)};
xQa=function(a){a.D||(a.D=!0,a.B=!0)};
yQa=function(a,b){var c=0;a.C.has(b)&&(c=a.C.get(b).K6);a.C.set(b,{K6:c+1,E_:Math.pow(2,c+1)});a.B=!0};
EP=function(a){for(var b=[],c=g.u(a.j.keys()),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.j.get(d);b.push(d+"_"+e.maxWidth+"_"+e.maxHeight)}return b.join(".")};
pNa=function(a,b){for(var c=new Map,d=g.u(a.j.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.split("_")[0];b.has(f)||c.set(e,a.j.get(e))}a.j=c};
rNa=function(a,b,c){var d,e=(null==(d=c.video)?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h=a.j.get(d);a:{var l=a.j.get(d),m=!!c.audio;if(l){if(m){var n=!1;break a}var p;if(!m&&(null==(n=c.video)?0:n.height)&&l.maxHeight&&l.maxHeight>=(null==(p=c.video)?void 0:p.height)){n=!1;break a}}n=!0}n&&(n=c.itag,b=h?h:{itag:n,sb:b,Hi: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,HP(a,IP.BITRATE)&&(b.zw=8*c.Pb),b.jY=null==
f?void 0:f.isHdr()),a.j.set(d,b))};
CR=function(){g.NF.call(this);this.items={}};
DR=function(){g.YN.apply(this,arguments)};
ER=function(){g.ZN.apply(this,arguments)};
FR=function(a,b){var c=zQa(a,b);$N.call(this,a,c||b);this.j=a;c&&this.j.exports.free(c.byteOffset)};
AQa=function(a,b,c){this.encryptedClientKey=b;this.G=c;this.j=new Uint8Array(a.buffer,0,16);this.C=new Uint8Array(a.buffer,16)};
BQa=function(a){a.B||(a.B=new DR(a.j));return a.B};
GR=function(a){try{return Fg(a)}catch(b){return null}};
CQa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?GR(b.clientKey):null;var c=b.encryptedClientKey?GR(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.pD)():null;a&&c&&d&&(this.j=new AQa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=GR(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
HR=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)};
IR=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.B=0;this.C=!1;this.Xl=!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.G=DQa(this);this.D=c;this.K=d};
DQa=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
JR=function(a,b){if(!a.C&&0===a.B)return 0;a.Xl&&(g.Xb(a.G,function(c,d){return a.values[c]-a.values[d]}),a.Xl=!1);
return a.values[a.G[Math.round(b*((a.C?a.j:a.B)-1))]]||0};
EQa=function(a,b,c){g.I.call(this);this.policy=a;this.Na=b;this.oe=c;this.Y=this.Ma=0;this.Z=-1;this.ma=this.C=0;this.Ia=!1;this.interruptions=[];this.j=[{stamp:0,net:0,max:0}];this.Ca=this.D=(0,g.pD)();this.N=new IR(4,1,.6,.4);this.G=new IR(20,1,.5,.4);this.B=a.G?new HR(a.B):new IR(a.B,20,.5,.4);this.va=new IR(5,1,.25);this.K=new IR(30,1,.5);a=g.JC("yt-player-bandwidth")||{};b=this.policy.C;0<a.byterate&&(b=a.byterate,this.Ia=!0);this.B.Rj(this.policy.K,b);0<a.delay&&this.N.Rj(1,Math.min(a.delay,
2));0<a.stall&&this.G.Rj(1,a.stall);0<a.init&&(this.Ca=Math.min(a.init,this.Ca));this.policy.j&&a.interruptions&&(this.j=this.j.concat(a.interruptions),16<this.j.length&&this.j.pop());this.Z=(0,g.pD)();0<this.policy.N&&(this.Ea=new g.Qu(this.Ra,this.policy.N,this),g.N(this,this.Ea),this.Ea.start())};
KR=function(a,b,c,d){a.B.Rj(void 0===d?b:d,c/b);a.D=(0,g.pD)()};
FQa=function(a){a.policy.j&&!a.C&&(a.C=(0,g.pD)());a.policy.Y&&(a.D=(0,g.pD)())};
GQa=function(a,b){if(a.policy.j){if(a.C){var c=b-a.C;if(1E3<c){var d=a.interruptions;d.push(Math.ceil(c));d.sort(function(e,f){return f-e});
16<d.length&&d.pop()}a.ma+=c}a.C=b}};
MR=function(a,b,c,d,e,f){f=void 0===f?!1:f;a.va.Rj(b,c/b);a.D=(0,g.pD)();e||a.K.Rj(1,b-d);a.policy.j&&!f&&(a.C=0);a.policy.j&&LR(a)};
NR=function(a,b,c){b=Math.max(b,2048);a.G.Rj(1,c/b);a.policy.j||LR(a)};
OR=function(a){a=a.N.cj();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
HQa=function(a,b,c){isNaN(c)||(a.Y+=c);isNaN(b)||(a.Ma+=b)};
IQa=function(a){a=a.B.cj();return 0<a?a:1};
PR=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=IQa(a);d=1/((a.G.cj()||0)*a.policy.ma+1/d);var e=a.va.cj();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+OR(a);c=d*Math.min(1,c/(d*b));a.policy.D||(a=((JR(a.K,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
JQa=function(a){var b={delay:OR(a),stall:a.G.cj()||0,byterate:IQa(a),init:a.Ca};if(a.policy.j){var c=a.j[0];c.stamp=36E5*Math.round(a.D/36E5);c.net=Math.ceil(a.ma);c.max=a.interruptions[0]||0;b.interruptions=a.j}return b};
KQa=function(a){g.IC("yt-player-bandwidth",JQa(a),2592E3);a.Z=(0,g.pD)();a.Ia=!0};
LR=function(a){-1<a.Z&&3E4<(0,g.pD)()-a.Z&&KQa(a)};
QR=function(a){return 4E3<=(0,g.pD)()-a.D};
LQa=function(a,b){b.Nr=a.Y;b.pu=a.Ma;b.bandwidthEstimate=PR(a);b.j={d:OR(a).toFixed(2),st:(1E9*(a.G.cj()||0)).toFixed(2),bw:a.B.cj().toFixed(0),abw:a.va.cj().toFixed(0),v50:JR(a.K,.5).toFixed(2),v92:JR(a.K,.92).toFixed(2),v96:JR(a.K,.96).toFixed(2),v98:JR(a.K,.98).toFixed(2)};a.policy.j&&(b.j["int"]=a.interruptions.join("."),b.j.intDur=Math.ceil(a.ma),b.j.intHist=a.j.map(function(c){return c.stamp+"."+c.net+"."+c.max}).join(";"))};
MQa=function(a){this.experiments=a;this.B=17;this.ma=g.lJ(this.experiments,"html5_stall_factor")||1;this.C=13E4;this.K=.5;this.D=this.G=!1;this.N=g.lJ(this.experiments,"html5_check_for_idle_network_interval_ms");this.Z=this.experiments.kb("html5_trigger_loader_when_idle_network");this.Y=this.experiments.kb("html5_sabr_fetch_on_idle_network_preloaded_players");this.j=this.experiments.kb("html5_track_interruptions")};
OQa=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.I.call(this);var c=this;this.values=a;this.Nq=b;this.B={};this.C=this.j=0;this.D=new g.Qu(function(){NQa(c)},1E4);
g.N(this,this.D)};
QQa=function(a,b){PQa(a,b);return a.values[b]&&a.Nq[b]?a.values[b]/Math.pow(2,a.j/a.Nq[b]):0};
PQa=function(a,b){a.values[b]||(b=UMa(),a.values=b.values||{},a.Nq=b.halfLives||{},a.B=b.values?Object.assign({},b.values):{})};
NQa=function(a){var b=UMa();if(b.values){b=b.values;for(var c={},d=g.u(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.B[e]&&(a.values[e]+=b[e]-a.B[e]),c[e]=QQa(a,e);a.B=c}b=a.Nq;c={};c.values=a.B;c.halfLives=b;g.IC("yt-player-memory",c,2592E3)};
cRa=function(a,b,c,d,e){g.I.call(this);this.webPlayerContextConfig=b;this.Ml=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.fk=this.Ff=this.ub=this.yj=this.userDisplayName=this.userDisplayImage=this.Wi="";this.j={};this.jc={};this.controlsType="0";this.Kd=NaN;this.Nb=!1;this.Zf=(0,g.pD)();this.Vb=0;this.Nl=this.Oo=!1;this.Tm=!0;this.preferGapless=this.Mm=this.Yf=this.C=this.Ll=this.Xf=!1;this.wh=[];this.Pm=!0;this.Nm=!1;a=a?g.pd(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);
b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);b&&b.preferGapless&&(this.preferGapless=b.preferGapless);this.experiments=new mQa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:oC("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)?b.cspNonce:oC("",a.csp_nonce);LAa=this.L("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(R){f=""}this.Vf=f;this.ancestorOrigins=
(d=window.location.ancestorOrigins)?Array.from(d):[];this.D=lC(!1,b?b.isEmbed:a.is_embed);if(b&&b.device){if(d=b.device,d.androidOsExperience&&(this.j.caoe=""+d.androidOsExperience),d.brand&&(this.j.cbrand=d.brand),d.browser&&(this.j.cbr=d.browser),d.browserVersion&&(this.j.cbrver=d.browserVersion),d.cobaltReleaseVehicle&&(this.j.ccrv=""+d.cobaltReleaseVehicle),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),f=AR(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),"all"===f||"once"===f)d.chipset&&(this.jc.cchip=d.chipset),d.cobaltAppVersion&&(this.jc.ccappver=d.cobaltAppVersion),d.firmwareVersion&&(this.jc.cfrmver=d.firmwareVersion),d.deviceYear&&(this.jc.crqyear=d.deviceYear)}else this.j.c=
a.c||"web",this.j.cver=a.cver||"html5",this.j.cplayer="UNIPLAYER";this.loaderUrl=b?this.D||RQa(this)&&b.loaderUrl?b.loaderUrl||"":this.Vf:this.D||RQa(this)&&a.loaderUrl?oC("",a.loaderUrl):this.Vf;this.D&&g.Va("yt.embedded_player.embed_url",this.loaderUrl);this.K=PJ(this.loaderUrl,SQa,TQa);d=this.loaderUrl;var h=void 0===h?!1:h;this.Xo=OJ(PJ(d,UQa,null),d,h,"Trusted Ad Domain URL");this.Yc=lC(!1,a.privembed);this.protocol=0===this.Vf.indexOf("http:")?"http":"https";this.Ea=NAa((b?b.customBaseYoutubeUrl:
a.BASE_YT_URL)||"")||NAa(this.Vf)||this.protocol+"://www.youtube.com/";h=b?b.eventLabel:a.el;d="detailpage";"adunit"===h?d=this.D?"embedded":"detailpage":"embedded"===h||this.K?d=mC(d,h,VQa):h&&(d="embedded");this.Ma=d;Gta();h=null;d=b?b.playerStyle:a.ps;f=g.Fb(WQa,d);!d||f&&!this.K||(h=d);this.playerStyle=h;this.ma=(this.N=g.Fb(WQa,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Wo=!this.ma;this.Wa=lC(!1,a.disableplaybackui);this.disablePaidContentOverlay=lC(!1,
null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=lC(!1,null==b?void 0:b.disableSeek);this.enableSpeedOptions=(null==b?void 0:b.enableSpeedOptions)||(EK().defaultPlaybackRate?RR||g.jC||SR?g.uR&&yv("20")||g.GK&&yv("4")||g.TR&&yv("11")||Cpa():!(g.TR&&!g.bC("chrome")||RR||g.bC("android")||g.bC("silk")):!1);this.Ro=lC(!1,a.enable_faster_speeds);this.B=lC("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.fb=iC()||kC();this.Vo=this.L("mweb_allow_background_playback")?
!1:this.B&&!this.N;this.Xa=uCa();this.er=g.XQa;var l;this.Ol=!!(null==b?0:null==(l=b.embedsHostFlags)?0:l.optOutApiDeprecation);var m;this.Kl=!!(null==b?0:null==(m=b.embedsHostFlags)?0:m.allowPfpImaIntegration);this.To=this.L("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var n;b?void 0!==b.hideInfo&&(n=!b.hideInfo):n=a.showinfo;this.Rm=g.UR(this)&&!this.Ol||lC(!VR(this)&&!WR(this)&&!this.N,n);this.Pl=b?!!b.mobileIphoneSupportsInlinePlayback:lC(!1,a.playsinline);l=this.B&&YQa&&
null!=YR&&0<YR&&2.3>=YR;m=b?b.useNativeControls:a.use_native_controls;this.Z=g.UR(this)&&this.B;n=this.B&&!this.Z;m=g.ZR(this)||!l&&lC(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType="0"!==n&&0!==n?m:"0";this.Il=this.B;this.color=mC("red",b?b.progressBarColor:a.color,ZQa);this.Ip="3"===this.controlsType;this.Jc=!this.D;this.Sm=(m=!this.Jc&&!WR(this)&&!this.ma&&!this.N&&!VR(this))&&!this.Ip&&"1"===this.controlsType;this.Fe=g.$R(this)&&m&&"0"===this.controlsType&&!this.Sm;this.Qr=this.Xq=
l;this.Bd=("3"===this.controlsType||this.B||lC(!1,a.use_media_volume))&&!this.Z;this.Um=gC&&!g.Tc(601)?!1:!0;this.Uo=this.D||!1;this.rd=WR(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=oC("",b?b.widgetReferrer:a.widget_referrer);var p;b?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.K||lC(!0,p);l=!0;b&&b.disableMdxCast&&(l=!1);this.lk=this.L("enable_cast_for_web_unplugged")&&g.aS(this)&&l||this.L("enable_cast_on_music_web")&&g.$G(this)&&l||p&&l&&"1"===
this.controlsType&&!this.B&&(WR(this)||g.$R(this)||g.bS(this));this.zr=!!window.document.pictureInPictureEnabled||tCa();p=b?!!b.supportsAutoplayOverride:lC(!1,a.autoplayoverride);this.Ui=!(this.B&&!g.UR(this))&&!g.bC("nintendo wiiu")||p;p=b?!!b.enableMutedAutoplay:lC(!1,a.mutedautoplay);this.Po=this.L("embeds_enable_muted_autoplay")&&g.UR(this);this.Vi=p&&!1;p=(WR(this)||VR(this))&&"blazer"===this.playerStyle;this.xk=b?!!b.disableFullscreen:!lC(!0,a.fs);l=g.qC(g.cS(this))&&g.UR(this);this.Ob=!this.xk&&
(p||g.uC())&&!l;this.Lm=this.L("uniplayer_block_pip")&&(cC()&&yv(58)&&!kC()||FD);p=g.UR(this)&&!this.Ol;var q;b?void 0!==b.disableRelatedVideos&&(q=!b.disableRelatedVideos):q=a.rel;this.me=p||lC(!this.N,q);this.Qm=lC(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.Y=kC()&&0<YR&&4.4>=YR?"_top":"_blank";this.Yg=g.bS(this);this.Hl=lC("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":q="bl";break;case "gmail":q="gm";break;case "gac":q="ga";break;
case "books":q="gb";break;case "docs":case "flix":q="gd";break;case "duo":q="gu";break;case "google-live":q="gl";break;case "google-one":q="go";break;case "play":q="gp";break;case "chat":q="hc";break;case "hangouts-meet":q="hm";break;case "photos-edu":case "picasaweb":q="pw";break;default:q="yt"}this.va=q;this.Ca=oC("",b?b.authorizedUserIndex:a.authuser);this.Lc=g.UR(this)&&(this.Yc||!spa()||this.fb);var r;b?void 0!==b.disableWatchLater&&(r=!b.disableWatchLater):r=a.showwatchlater;this.Ee=((q=!this.Lc)||
!!this.Ca&&q)&&lC(!this.ma,this.K?r:void 0);this.Gf=b?b.isMobileDevice||!!b.disableKeyboardControls:lC(!1,a.disablekb);this.loop=lC(!1,a.loop);this.pageId=oC("",b?b.initialDelegatedSessionId:a.pageid);this.wr=lC(!0,a.canplaylive);this.tb=lC(!1,a.livemonitor);this.disableSharing=lC(this.N,b?b.disableSharing:a.ss);(r=b&&this.L("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(q=r.split("x"),2!==q.length?r=null:(r=Number(q[0]),q=Number(q[1]),r=isNaN(r)||
isNaN(q)||0>=r*q?null:new g.Oe(r,q))):r=null;this.Vm=r;this.mute=b?!!b.startMuted:lC(!1,a.mute);this.storeUserVolume=!this.mute&&lC("0"!==this.controlsType,b?b.storeUserVolume:a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:mC(void 0,r,dS);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":oC("",a.cc_lang_pref);r=mC(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,dS);"3"===this.controlsType&&2===r&&(r=3);this.Gb=
r;this.wj=b?b.hl||"en_US":oC("en_US",a.hl);this.region=b?b.contentRegion||"US":oC("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":oC("en",a.host_language);this.Qo=!this.Yc&&Math.random()<g.lJ(this.experiments,"web_player_api_logging_fraction");this.ib=!this.Yc;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.Kd=nC(this.Kd,a.ismb);this.Wo?(r=a.vss_host||"s.youtube.com","s.youtube.com"===r&&(r=eS(this.Ea)||"www.youtube.com")):r="video.google.com";this.Wm=
r;$Qa(this,a,!0);this.Na=new CR;g.N(this,this.Na);q=b?b.innertubeApiKey:oC("",a.innertube_api_key);p=b?b.innertubeApiVersion:oC("",a.innertube_api_version);r=b?b.innertubeContextClientVersion:oC("",a.innertube_context_client_version);q=g.rB("INNERTUBE_API_KEY")||q;p=g.rB("INNERTUBE_API_VERSION")||p;l=g.rB("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");m=g.yR(this);n="number"===typeof this.j.c?Number(this.j.c):Object.keys(PJa).indexOf(this.j.c);this.ll={innertubeApiKey:q,innertubeApiVersion:p,GI:l,WO:m,ZX:n,
innertubeContextClientVersion:g.rB("INNERTUBE_CONTEXT_CLIENT_VERSION")||r,YO:this.hostLanguage,XO:this.region,aY:g.rB("INNERTUBE_HOST_OVERRIDE")||"",bY:!!g.rB("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),ZO:!!g.rB("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Om=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.G=new rQa(this.experiments,this.L("html5_force_hfr_support")?!0:xJ(this)||zpa()||Apa()||aRa(this),g.GK&&g.Tc(56)||g.uR&&g.Tc(54)||this.L("html5_force_vp9_subsample_encryption_support")||
aRa(this));r=this.Kd;q=new MQa(this.experiments);g.yJ(this)&&(q.G=!0,q.K=.1);r&&(q.C=r/8);q.D=480<=qP();this.schedule=new EQa(q,new lQa(this.experiments),e);g.N(this,this.schedule);var t;this.enableSafetyMode=null!=(t=null==b?void 0:b.initialEnableSafetyMode)?t:lC(!1,a.enable_safety_mode);e=this.Wa?!1:WR(this)&&"blazer"!==this.playerStyle;var v;b?null!=b.disableAutonav&&(v=!b.disableAutonav):v=a.allow_autonav;this.Pe=lC(e,!this.ma&&v);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:lC(!1,a.send_visitor_id_header);
var x;"docs"===this.playerStyle&&(b?x=b.disableNativeContextMenu:x=a.disable_native_context_menu);this.disableNativeContextMenu=lC(!1,x);this.So=xJ(this)&&this.L("enable_skip_intro_button");this.embedConfig=oC("",b?b.serializedEmbedConfig:a.embed_config);this.Ia=Kpa(a,g.UR(this));this.C="EMBEDDED_PLAYER_MODE_PFL"===this.Ia;this.embedsErrorLinks=!(null==b||!b.embedsErrorLinks);this.jl=lC(!1,a.full_window);var A;this.Za=!(null==(A=this.webPlayerContextConfig)?0:A.chromeless);var E;this.livingRoomAppMode=
mC("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||(null==b?void 0:null==(E=b.device)?void 0:E.livingRoomAppMode),bRa);var F;v=nC(NaN,null==b?void 0:null==(F=b.device)?void 0:F.deviceYear);isNaN(v)||(this.deviceYear=v);this.transparentBackground=b?!!b.transparentBackground:lC(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:lC(!1,a.show_miniplayer_button);var G;this.L("embeds_web_enable_set_faux_fullscreen_in_public_api")&&g.UR(this)&&!(null==b?0:null==
(G=b.embedsHostFlags)?0:G.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=b?!!b.externalFullscreen:lC(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:lC(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;var M;this.Tm=null!=(M=a.show_loop_video_toggle)?M:!0;this.Dp=1E-4>Math.random();this.vl=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new CQa(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):
void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=null==b?void 0:b.canaryStage;this.Wf=new OQa;g.N(this,this.Wf);this.Ll=lC(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.rB("DATASYNC_ID");this.pp=g.rB("LOGGED_IN",!1);this.zj=(null==b?void 0:b.allowWoffleManagement)||!1;this.Dl=this.zl=Infinity;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.L("html5_high_res_logging_always")?this.Yf=!0:this.Yf=100*Math.random()<
g.lJ(this.experiments,"html5_high_res_logging_percent");var P;this.Mm=!!(null==b?0:null==(P=b.embedsHostFlags)?0:P.allowRcat);this.Jl=!g.aS(this)&&!fS(this)};
g.cS=function(a){var b,c;if(!(null==(b=a.webPlayerContextConfig)?0:null==(c=b.embedsHostFlags)?0:c.enableLiteUx)||a.Yc||a.N||a.C||"EMBEDDED_PLAYER_MODE_PFP"===a.Ia)return"EMBEDDED_PLAYER_LITE_MODE_NONE";a=g.lJ(a.experiments,"embeds_web_lite_mode");return void 0===a?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":0<=a&&a<dRa.length?dRa[a]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
$Qa=function(a,b,c){c=void 0===c?!1:c;a.Ff=oC(a.Ff,b.video_id);a.ub=oC(a.ub,b.eventid);a.ub&&(EE=a.ub);for(var d=[],e=g.u(Object.keys(eRa)),f=e.next();!f.done;f=e.next()){f=eRa[f.value];var h=b[f];null!=h&&(h!==a.j[f]&&d.push(f),a.j[f]=h)}!c&&0<d.length&&a.Dp&&(d.sort(),g.uF(new g.QC("Player client parameters changed after startup",d)));a.userAge=nC(a.userAge,b.user_age);a.Wi=oC(a.Wi,b.user_display_email);a.userDisplayImage=oC(a.userDisplayImage,b.user_display_image);g.RJ(a.userDisplayImage)||(a.userDisplayImage=
"");a.userDisplayName=oC(a.userDisplayName,b.user_display_name);a.yj=oC(a.yj,b.user_gender);a.csiPageType=oC(a.csiPageType,b.csi_page_type);a.csiServiceName=oC(a.csiServiceName,b.csi_service_name);a.Hl=lC(a.Hl,b.enablecsi);a.pageId=oC(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.rg=b.living_room_session_po_token.toString())};
fRa=function(a,b){return!a.N&&cC()&&yv(55)&&"3"===a.controlsType&&!b};
g.gS=function(a){a=eS(a.Ea);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
hS=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
iS=function(a){return WR(a)&&!g.aS(a)};
g.ZR=function(a){return a.L("html5_local_playsinline")?gC&&!g.Tc(602)&&!("playsInline"in EK()):gC&&!a.Pl||g.bC("nintendo wiiu")?!0:!1};
g.yR=function(a){return a.j.c};
g.yJ=function(a){return/^TVHTML5/.test(g.yR(a))};
RQa=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===g.yR(a)};
aRa=function(a){return"CHROMECAST ULTRA/STEAK"===a.j.cmodel||"CHROMECAST/STEAK"===a.j.cmodel};
g.jS=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
xJ=function(a){return/web/i.test(g.yR(a))};
g.kS=function(a){return"WEB"===g.yR(a).toUpperCase()};
fS=function(a){return"WEB_KIDS"===g.yR(a)};
g.aS=function(a){return"WEB_UNPLUGGED"===g.yR(a)};
lS=function(a){return"TVHTML5_UNPLUGGED"===g.yR(a)};
g.wJ=function(a){return g.aS(a)||"TV_UNPLUGGED_CAST"===g.yR(a)||lS(a)};
g.$G=function(a){return"WEB_REMIX"===g.yR(a)};
g.mS=function(a){return"WEB_EMBEDDED_PLAYER"===g.yR(a)};
g.oS=function(a){return(a.deviceIsAudioOnly||!g.GK||FD||"3"===a.controlsType?!1:g.jC?a.D&&g.Tc(51):!0)||(a.deviceIsAudioOnly||!g.uR||FD||"3"===a.controlsType?!1:g.jC?a.D&&g.Tc(48):g.Tc(38))||(a.deviceIsAudioOnly||!g.TR||FD||"3"===a.controlsType?!1:g.jC?a.D&&g.Tc(37):g.Tc(27))||!a.deviceIsAudioOnly&&g.nS&&!Dpa()&&g.Tc(11)||!a.deviceIsAudioOnly&&g.kD&&g.Tc("604.4")};
gRa=function(a){if(g.$R(a)&&YQa)return!1;if(g.uR){if(!g.Tc(47)||!g.Tc(52)&&g.Tc(51))return!1}else if(g.kD)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
pS=function(a){return!a.L("html5_disable_media_element_loop_on_tv")||!g.yJ(a)};
iRa=function(a,b){return a.enabledEngageTypes.has(b.toString())||hRa.includes(b)};
WR=function(a){return"detailpage"===a.Ma};
g.$R=function(a){return"embedded"===a.Ma};
qS=function(a){return"leanback"===a.Ma};
VR=function(a){return"adunit"===a.Ma||"gvn"===a.playerStyle};
g.bS=function(a){return"profilepage"===a.Ma};
g.UR=function(a){return a.D&&g.$R(a)&&!VR(a)&&!a.N};
jRa=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(5===b.length)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(8===b.length)return b.splice(7,0,"s20-c"),b.join("/");if(9===b.length)return b[7]+="-s20-c",b.join("/");g.uF(new g.QC("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.rS=function(a){var b=g.gS(a);kRa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.sS=function(a,b){b=void 0===b?"":b;if(a.L("enable_tectonic_player_oauth_callback")&&a.Ml){var c=new tL,d,e=a.Ml();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.uF(new g.QC("b189348328_oauth_callback_failed",{error:f}));
c.resolve(b)});
return void 0!==d?XB(d):new VB(c)}return XB(b)};
eS=function(a){var b=g.Vm(a);return(a=Number(g.Um(4,a))||null)?b+":"+a:b};
tS=function(a){this.j=a};
uS=function(a,b,c,d){if(c)return WB();c={};var e=EK();b=g.u(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,a.canPlayType(e,f.Ph().mimeType)||d){var h=f.j.video.quality;if(!c[h]||c[h].Ph().Ve())c[h]=f}a=[];c.auto&&a.push(c.auto);d=g.u(MK);for(e=d.next();!e.done;e=d.next())(e=c[e.value])&&a.push(e);return a.length?XB(a):WB()};
lRa=function(a,b,c,d,e){this.C=a;this.B=b;this.G=c;this.cpn=d;this.K=e;this.D=0;this.j=""};
mRa=function(a,b){a.C.some(function(c){var d;return(null==(d=c.uc)?void 0:d.getId())===b});
a.j=b};
nRa=function(a,b,c){a.cpn&&(b=g.an(b,{cpn:a.cpn}));c&&(b=g.an(b,{Xnb:c}));return b};
oRa=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
pRa=function(a){for(var b=[],c=[],d=g.u(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.D?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate});
c.sort(function(f,h){return f.bitrate-h.bitrate});
a.B=b.concat(c)};
qRa=function(a){this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;var b;this.B=(null==(b=a.audioItag)?void 0:b.split(","))||[];this.LB=a.LB;this.qe=a.qe||"";this.uc=a.uc;this.audioChannels=a.audioChannels;this.j=""};
rRa=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.$Q(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new qRa({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,LB:n?l[n]:void 0,qe:f.drm_families,uc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
vS=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.resource=null};
sRa=function(a,b){if(!(FD||fC()||eC()))return null;a=rRa(b,a.L("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.uc&&(f=h.uc.getId(),c[f]||(h=new g.sP(f,h.uc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
xRa=function(a,b,c,d,e,f,h){if(!(FD||fC()||eC()))return WB();var l={},m=tRa(c),n=rRa(c,a.L("html5_filter_fmp4_in_hls"),a.G.K,l);if(!n)return h({noplst:1}),WB();uRa(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var r=[],t=[],v=null,x="";d=d&&d.match(/hls_timedtext_playlist/)?new qRa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,uc:new g.$Q("English","en",!1)}):null;for(var A=g.u(Object.keys(n)),E=A.next();!E.done;E=A.next())if(E=E.value,!a.L("html5_disable_drm_hfr_1080")||
"383"!==E&&"373"!==E){E=g.u(n[E]);for(var F=E.next();!F.done;F=E.next())if(F=F.value,F.width){for(var G=g.u(F.B),M=G.next();!M.done;M=G.next())if(M=M.value,n[M]){F.j=M;break}F.j||(F.j=vRa(n,F));if(G=n[F.j])if(c.push(F),"fairplay"===F.qe&&(q=p),M="","PQ"===F.LB?M="smpte2084":"HLG"===F.LB&&(M="arib-std-b67"),M&&(x=M),t.push(wRa(G,[F],d,f,F.itag,F.width,F.height,F.fps,m,void 0,void 0,q,M)),!v||F.width*F.height*F.fps>v.width*v.height*v.fps)v=F}else r.push(F)}else l[E]="disdrmhfr";t.reduce(function(P,
R){return R.Ph().isEncrypted()&&P},!0)&&(q=p);
e=Math.max(e,0);p=v||{};n=void 0===p.fps?0:p.fps;v=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;A=a.L("html5_native_audio_track_switching");t.push(wRa(r,c,d,f,"93",v,p,n,m,"auto",e,q,x,A));Object.entries(l).length&&h(l);return uS(a.G,t,fRa(a,b),!1)};
wRa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var v=0,x="",A=g.u(a),E=A.next();!E.done;E=A.next())E=E.value,x||(x=E.itag),E.audioChannels&&E.audioChannels>v&&(v=E.audioChannels,x=E.itag);e=new PK(e,"application/x-mpegURL",{audio:new JK(0,v),video:new LK(f,h,l,null,void 0,n,void 0,r),qe:q,XY:x});a=new lRa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new vS(e,a,m)};
tRa=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};
vRa=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.qe===b.qe&&!e.audioChannels)return d}return""};
uRa=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(c=b.next();!c.done;c=b.next())delete a[c.value]};
wS=function(a,b){this.j=a;this.B=b};
yRa=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.JP(h.url,!0);if(h.s){var l=f,m=h.sp,n=NMa(decodeURIComponent(h.s));l.set(m,encodeURIComponent(n))}l=g.u(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=YK(h.type,h.quality,h.itag,h.width,h.height);e.push(new wS(h,f))}}return uS(a.G,e,fRa(a,b),!1)};
xS=function(a,b){this.j=a;this.B=b};
zRa=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=YK(e.type,"medium","0");d.push(new xS(f,e.url))}return uS(a.G,d,fRa(a,b),!1)};
ARa=function(a,b){var c=[],d=YK(b.type,"auto",b.itag);c.push(new xS(d,b.url));return uS(a.G,c,!1,!0)};
CRa=function(a){return a&&BRa[a]?BRa[a]:null};
DRa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.Io=GR(a.ustreamerConfig)||void 0)};
ERa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.QZ=new DRa(b)};
g.yS=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=void 0===a.name?null:a.name;this.displayName=a.displayName||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.AS=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.zS(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.BS=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.FRa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.BS(a));return b};
g.zS=function(a){var b=[];if(a.displayName)b.push(a.displayName);else{var c=a.languageName||"";b.push(c);"asr"===a.kind&&-1===c.indexOf("(")&&b.push(" (\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0438\u0442\u0440\u044b)");a.name&&b.push(" - "+a.name)}a.translationLanguage&&b.push(" >> "+a.translationLanguage.languageName);return b.join("")};
JRa=function(a,b,c,d){a||(a=b&&GRa.hasOwnProperty(b)&&HRa.hasOwnProperty(b)?HRa[b]+"_"+GRa[b]:void 0);b=a;if(!b)return null;a=b.match(IRa);if(!a||5!==a.length)return null;if(a=b.match(IRa)){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};
CS=function(a,b){for(var c={},d=g.u(Object.keys(KRa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.RJ(f)&&(c[KRa[e]]=f)}return c};
DS=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(LRa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=LRa[e];for(var f=g.u(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=MRa(h.url);g.RJ(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=MRa(a.url),g.RJ(a)&&(b["maxresdefault.jpg"]=a));return b};
MRa=function(a){return a.startsWith("//")?"https:"+a:a};
ES=function(a){return a&&a.baseUrl||""};
FS=function(a){a=g.CB(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};
NRa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.uq=b)};
QRa=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.U(h,ORa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.U(h,PRa))return Object.assign({is_yto_interstitial:!0},BB(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,Go:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Go: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,
Go:0===f?5:7})}}};
RRa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
SRa=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)};
TRa=function(a,b){null!=b?(a.tp=b,a.Of=!0):(a.tp="",a.Of=!1)};
GS=function(a,b){this.type=a||"";this.id=b||""};
g.URa=function(a){return new GS(a.substr(0,2),a.substr(2))};
g.HS=function(a,b){this.Ha=a;this.author="";this.hD=null;this.playlistLength=0;this.j=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=zB(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.Z=CS(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new GS("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.URa(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.IS=function(a,b){this.Ha=a;this.us=this.author="";this.hD=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.nw=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.us=b.us||"";if(a=b.endscreen_autoplay_session_data)this.hD=zB(a,"&");this.iD=b.iD;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.nw=b.nw||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=zB(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=CS(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
VRa=function(a){var b,c,d=null==(b=a.getWatchNextResponse())?void 0:null==(c=b.contents)?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=null==(e=a.getWatchNextResponse())?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.YRa=function(a){var b,c,d;a=g.U(null==(b=a.getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,WRa);return g.U(null==a?void 0:a.playerBar,XRa)};
ZRa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url};
$Ra=function(){if(void 0===JS){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.Qv(g.RC()+"::yt-player"))){JS=new bH(a);break a}JS=void 0}}return JS};
g.KS=function(){var a=$Ra();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.aSa=function(a){var b=$Ra();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.LS=function(a){return g.KS()[a]||0};
g.MS=function(a,b){var c=g.KS();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.aSa(c))};
g.NS=function(a){return g.H(function(b){return b.return(g.DD(bSa(),a))})};
gSa=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.H(function(v){switch(v.j){case 1:return m=g.LS(a),4===m?v.return(4):g.z(v,g.ID(),2);case 2:n=v.B;if(!n)throw g.lD("wiac");if(!l||void 0===h){v.Ka(3);break}return g.z(v,cSa(l,h),4);case 4:h=v.B;case 3:return p=c.lastModified||"0",g.z(v,g.NS(n),5);case 5:return q=v.B,g.Ba(v,6),OS++,g.z(v,g.sD(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Tb:!0},function(x){if(void 0!==f&&void 0!==h){var A=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10,
"0");A=g.tD(x.objectStore("media"),h,A)}else A=g.nD.resolve(void 0);var E=dSa(a,b.Hg()),F=dSa(a,!b.Hg()),G={fmts:eSa(d),format:c||{}};E=g.tD(x.objectStore("index"),G,E);var M=-1===d.downloadedEndTime;G=M?x.objectStore("index").get(F):g.nD.resolve(void 0);var P={fmts:"music",format:{}};x=M&&e&&!b.Hg()?g.tD(x.objectStore("index"),P,F):g.nD.resolve(void 0);return g.nD.all([x,G,A,E]).then(function(R){R=g.u(R);R.next();R=R.next().value;OS--;var ba=g.LS(a);if(4!==ba&&M&&e||void 0!==R&&g.fSa(R.fmts))ba=
1,g.MS(a,ba);return ba})}),8);
case 8:return v.return(v.B);case 6:r=g.Da(v);OS--;t=g.LS(a);if(4===t)return v.return(t);g.MS(a,4);throw r;}})};
g.hSa=function(a){var b,c;return g.H(function(d){if(1==d.j)return g.z(d,g.ID(),2);if(3!=d.j){b=d.B;if(!b)throw g.lD("ri");return g.z(d,g.NS(b),3)}c=d.B;return d.return(g.sD(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return g.jra(e.objectStore("index"),f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})};
jSa=function(a,b,c,d,e){var f,h,l;return g.H(function(m){if(1==m.j)return g.z(m,g.ID(),2);if(3!=m.j){f=m.B;if(!f)throw g.lD("rc");return g.z(m,g.NS(f),3)}h=m.B;l=g.sD(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)});
return e?m.return(l.then(function(n){if(void 0===n)throw Error("No data from indexDb");return iSa(e,n)}).catch(function(n){throw new g.QC("Error while reading chunk: "+n.name+", "+n.message);
})):m.return(l)})};
g.fSa=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
dSa=function(a,b){return""+a+"|"+(b?"v":"a")};
eSa=function(a){var b={};return AB((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
lSa=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.kSa)?(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};
PS=function(a){g.NF.call(this);this.j=null;this.C=new zla;this.j=null;this.K=new Set;this.crossOrigin=a||""};
mSa=function(a,b,c){for(c=QS(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(RS(d,b))&&(d=g.SS(d,b)))return d;c--}return g.SS(a.levels[0],b)};
oSa=function(a,b,c){c=QS(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=RS(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),d.C.Ah(f,{yY:f,WY:e}))}nSa(a)};
nSa=function(a){if(!a.j&&!a.C.isEmpty()){var b=a.C.remove();a.j=pSa(a,b)}};
pSa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.yY].Ue(b.WY);c.onload=function(){var d=b.yY,e=b.WY;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);nSa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.XH()-1);e=[e,d];a.ra("l",e[0],e[1])};
return c};
g.TS=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.C=a[6];this.signature=a[7];this.videoLength=d};
RS=function(a,b){return Math.floor(b/(a.columns*a.rows))};
g.SS=function(a,b){b>=a.YL()&&a.ey();var c=RS(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.ey()+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.Ue(c),column:b,columns:h,row:e,rows:d,AE:a.width*h,Bw:a.height*d}};
US=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;PS.call(this,c);this.isLive=d;this.N=!!e;this.levels=this.B(a,b);this.D=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
qSa=function(a,b,c){return(a=a.levels[b])?a.QG(c):-1};
QS=function(a,b){var c=a.D.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].width>=b)return a.D.set(b,d),d;a.D.set(b,c-1);return c-1};
rSa=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.TS.call(this,a,b,c,0);this.B=null;this.G=d?2:0};
VS=function(a,b,c,d){US.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].gU(c)};
sSa=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.an(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.XS=function(a,b){g.NF.call(this);this.Ha=a;this.adModule=!1;this.adaptiveFormats="";this.MU=this.Hx=this.adQueryId=this.Gx=null;this.zG={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.qe=null;this.sL=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.Xq=void 0;this.Rm=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Wa="";this.PB=this.Ix=!1;this.O0=null;this.rg=this.xk=this.Xo=this.CC=
!1;this.D=null;this.XU=this.vl=!1;this.Vf=NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=Infinity;this.lW=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.Mm=!1;this.xL=this.cycToken=null;this.author="";this.pF=0;this.Pm=!1;this.lF=null;this.BL=[];this.gp=this.WB=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.Jc=this.me="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=
this.endSeconds=this.Nb=0;this.Nl=this.Xa=this.B=null;this.sC="";this.loading=!1;this.Kd=this.Nm=0;this.PU=this.pipable=this.Wp=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.isLiveHeadPlayable=this.isLivePlayback=this.tb=this.isPrivate=this.isListed=this.xC=this.Zf=this.mutedAutoplay=this.bl=!1;this.EC="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.zC=this.fb=this.ye=!1;this.latencyClass="UNKNOWN";this.oX=this.H_=this.wC=this.SU=this.YB=this.enablePreroll=
this.enableServerStitchedDai=this.Nf=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Vb=0;this.reloadReason="";this.BC=this.x0=this.Yg=!1;this.keywords={};this.ub="";this.Wm=0;this.Fy=!1;this.liveChunkReadahead=NaN;this.Il=null;this.wr=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.PX=this.paygated=!1;this.ym=[];this.Om=!1;this.Ia=[];this.oi=null;this.QU=this.racyCheckOk=!1;this.US={};this.isProximaLatencyEligible=
!1;this.GF=0;this.C=null;this.autonavState=1;this.zV=null;this.shortDescription="";this.Ea=this.YU=!1;this.jk=this.Gb=this.startSeconds=0;this.Gy=this.eV=this.Oy=WS;this.Jx=this.suggestions=null;this.zr=this.Qr=void 0;this.isExternallyHostedPodcast=!1;this.Ml=null;this.wL=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.Lx=void 0;this.Fe=[];this.jl=[];this.hlsFormats=this.Xf="";this.qy=this.Dy=this.ll=this.rd=this.ib=this.Qo=this.py=null;this.Km="vvt";this.Ui=!1;this.iM=
null;this.hV="";this.Dp=NaN;this.Ip=this.sA=this.Wo=this.dA=this.cA=this.Ol=this.Vo=this.QA=this.pp=this.BA="";this.Pl=null;this.NU=!1;this.N={};this.clipStart=0;this.clipEnd=Infinity;this.mY=!1;this.heartbeatToken="";this.zY=this.nY=NaN;this.wj=this.Vm=this.Vi=this.t_=this.UY=!1;this.Jl=!0;this.Z={};this.captionTracks=[];this.SB=[];this.gV=0;this.UB=[];this.Du=[];this.Cu=!1;this.iV={};this.zl=new g.sP("und",new g.$Q("Default","und",!0));this.DC=0;this.K=null;this.Oo=[];this.rC=!1;this.rz=this.Bd=
"";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.Ra=this.SN=this.tC=this.playerResponse=this.EV=this.wy=this.Sm=this.Ai=this.qC=this.AG=this.yG=null;this.Nx=!1;this.ma=null;this.isInlinePlaybackNoAd=this.Dl=this.XB=this.useCobaltWidevine=this.TU=this.Zz=!1;this.pC=!0;this.Gf=this.Wi=NaN;this.defraggedFromSubfragments=this.VD=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.sabrContextUpdates=new Map;this.Cy="";this.QV=!1;this.gatewayExperimentGroup="";this.nG=
this.gM=this.lk=!1;this.interstitials=[];this.Of=this.yC=!1;this.tp="";this.allowPfpUnbranded=this.allowImaMonetization=!1;this.B1="";this.tL=!1;this.wh="";this.qP=[];this.yd="";this.AL=this.Y=this.dZ=!1;this.Yf=0;this.Uo="";this.IP=this.sP=this.vC=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.So=!1;this.Ll=this.Ee=!0;this.errorDetail=this.userGenderAge="";this.yL=this.zL=this.getSharePanelCommand=this.removeFromWatchLaterCommand=
this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.qn=this.errorReason=this.errorCode=null;this.Fu=this.Eu="";this.Qm=!1;this.er=[];this.jc=this.Za=this.Ob=this.Ji=this.qf=0;this.fetchType=null;this.VS=!0;this.transitionEndpointAtEndOfStream=void 0;this.RB=this.aV=-1;this.Kl=this.Wf=!1;this.Pe=null;this.Na="";this.Tm=!1;this.watchUrl=null;this.uy=[];this.visibleOnLoadKeys=[];this.KU=[];this.inlineMetricEnabled=this.Lm=!1;this.embedsRctn=this.embedsRct=
"";this.uC=NaN;this.RS=(0,g.pD)();this.Jz=this.To=0;this.Io=null;this.fk=0;this.IU=!1;this.bV=0;this.Wf=this.L("web_new_autonav_countdown");this.Kl=this.L("web_new_big_thumbnail_endscreen");tSa(this,b);this.Mx=new fNa;g.N(this,this.Mx)};
g.$S=function(a,b,c){b&&b.cpn&&g.uF(new g.QC("CPN provided in VideoData update",{Snb:b.cpn,eh:a.clientPlaybackNonce,f8:c}));c?(pC(b),tSa(a,b),YS(a)&&ZS(a)):(b=b||{},uSa(a,b),vSa(a,b),wSa(a,b),a.ra("dataupdated"))};
wSa=function(a,b){a.fflags=oC(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Wa=SJ(c));a.Ix=lC(a.Ix,b.iv_ads_only);a.PB=lC(a.PB,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.E5=c;a.isPharma=lC(a.isPharma,b.is_pharma);a.author=oC(a.author,b.author);a.me=xSa(b.ttsurl)||a.me;a.Pm=lC(a.Pm,b.cc_asr);a.Jc=oC(a.Jc,b.channel_path);if(c=b.profile_picture)a.profilePicture=oC(a.profilePicture,c);a.videoCountText=oC(a.videoCountText,b.video_count_text);a.autonavState=mC(a.autonavState,b.autonav_state,
ySa);if(a.L("html5_enable_ssap_entity_id")){var d;c=!!b.cotn||!(null==(d=a.playerResponse)||!d.cotn);d=g.lJ(a.Ha.experiments,"html5_entity_id_simplified_preferred_record_size");!a.playerResponse||a.L("html5_entity_id_bypass_offline")&&c||(a.clientPlaybackNonce=zSa(a,a.playerResponse,d)||a.clientPlaybackNonce);a.clientPlaybackNonce||(b.cpn&&a.dB("ssei","uhdc"),a.clientPlaybackNonce=oC(a.clientPlaybackNonce,b.cpn))}else a.clientPlaybackNonce=oC(a.clientPlaybackNonce,b.cpn);a.subscribed=lC(a.subscribed,
b.subscribed);a.rawViewCount=nC(a.rawViewCount,b.view_count);a.shortViewCount=oC(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=oC(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=oC(a.lengthText||"",b.lengthText);a.nw=oC(a.nw||"",b.nw);a.us=oC(a.us||"",b.us);a.title=oC(a.title,b.title);a.subtitle=oC(a.subtitle,b.subtitle);a.expandedTitle=oC(a.expandedTitle,b.expanded_title);a.expandedSubtitle=oC(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=oC(a.ariaLabel,b.aria_label);
a.ypcPreview=oC(a.ypcPreview,b.ypc_preview);a.jM=oC(a.jM,b.ypc_origin);a.Ui=lC(a.Ui,b.ypc_is_premiere_trailer);a.Uo=oC(a.Uo,b.ypc_clickwrap_message);a.paygated=lC(a.paygated,b.paygated);a.NU=lC(a.NU,b.requires_purchase);a.showShareButton=!lC(!a.showShareButton,b.ss);a.Ee=lC(a.Ee,b.showwatchlater);a.Ll=lC(a.Ll,b.shownotifybutton);a.So=lC(a.So,b.copy_share);if(d=b.el)a.eventLabel=d;if(d=b.keywords)a.keywords=ASa(d.split(","));if(d=b.rvs)a.suggestions=Qoa(d).map(function(e){return e.playlist||e.list||
e.api?new g.HS(a.Ha,e):new g.IS(a.Ha,e)});
a.contentCheckOk=lC(a.contentCheckOk,b.cco);a.racyCheckOk=lC(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=lC(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=oC(a.oauthToken,b.oauth_token);a.ub=oC(a.ub,b.kpt);a.visitorData=oC(a.visitorData,b.visitor_data);if(d=b.session_data)a.sessionData=zB(d,"&");a.Px=oC(a.Px,b.endscreen_ad_tracking_data);a.fV=lC(a.fV,b.wait_for_vast_info_cards_xml);a.vL=lC(a.vL,b.suppress_creator_endscreen);a.Y_=lC(a.Y_,b.is_trueview_action);a.dV=oC(a.dV,b.tracking_list);
a.Eu=oC(a.Eu,b.clip);a.Fu=oC(a.Fu,b.clipt);BSa(a,b)};
tSa=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.qn=f);a.L("html5_enable_ssap_entity_id")||a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.GE(16));a.tb=lC(a.Ha.tb,b.livemonitor);uSa(a,b);var h=b.raw_player_response;if(h)a.SN=h;else{var l=b.player_response;l&&(h=JSON.parse(l))}if(a.L("html5_enable_ssap_entity_id")){var m=
b.cached_load;m&&(a.gp=lC(a.gp,m));if(!a.clientPlaybackNonce){var n=b.cpn;n?(a.dB("ssei","shdc"),a.clientPlaybackNonce=n):a.clientPlaybackNonce=g.GE(16)}}h&&(a.playerResponse=h);if(a.playerResponse){var p=a.playerResponse.annotations;if(p)for(var q=g.u(p),r=q.next();!r.done;r=q.next()){var t=r.value.playerAnnotationsUrlsRenderer;if(t){t.adsOnly&&(a.Ix=!0);t.allowInPlaceSwitch&&(a.PB=!0);var v=t.loadPolicy;v&&(a.annotationsLoadPolicy=CSa[v]);var x=t.invideoUrl;x&&(a.Wa=SJ(x));a.CC=!0;break}}var A=
a.playerResponse.attestation;A&&NRa(a,A);var E=a.playerResponse.cotn;E&&(a.cotn=E);var F=a.playerResponse.heartbeatParams;if(F){DSa(a)&&(a.mY=!0);var G=F.heartbeatToken;G&&(a.drmSessionId=F.drmSessionId||"",a.heartbeatToken=G,a.nY=Number(F.intervalMilliseconds),a.zY=Number(F.maxRetries),a.UY=!!F.softFailOnError,a.t_=!!F.useInnertubeHeartbeatsForDrm,a.Xo=!0);a.heartbeatServerData=F.heartbeatServerData;var M;a.Mm=!(null==(M=F.heartbeatAttestationConfig)||!M.requiresAttestation)}var P=a.playerResponse.messages;
P&&RRa(a,P);var R=a.playerResponse.overlay;if(R){var ba=R.playerControlsOverlayRenderer;if(ba)if(TRa(a,ba.controlBgHtml),ba.mutedAutoplay){var na=g.U(ba.mutedAutoplay,ESa);if(na&&na.endScreen){var ta=g.U(na.endScreen,FSa);ta&&ta.text&&(a.B1=g.YF(ta.text))}}else a.mutedAutoplay=!1}var ka=a.playerResponse.playabilityStatus;if(ka){var va=ka.backgroundability;va&&va.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var ea,Y;if(null==(ea=ka.offlineability)?0:null==(Y=ea.offlineabilityRenderer)?
0:Y.offlineable)a.offlineable=!0;var Ma=ka.contextParams;Ma&&(a.contextParams=Ma);var y=ka.pictureInPicture;y&&y.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);ka.playableInEmbed&&(a.allowEmbed=!0);var aa=ka.ypcClickwrap;if(aa){var Ua=aa.playerLegacyDesktopYpcClickwrapRenderer,cb=aa.ypcRentalActivationRenderer;if(Ua)a.Uo=Ua.durationMessage||"",a.rg=!0;else if(cb){var nb=cb.durationMessage;a.Uo=nb?g.YF(nb):"";a.rg=!0}}var Na=ka.errorScreen;if(Na){if(Na.playerLegacyDesktopYpcTrailerRenderer){var Ta=
Na.playerLegacyDesktopYpcTrailerRenderer;a.Ip=Ta.trailerVideoId||"";var gb=Na.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var qb=gb&&gb.ypcTrailerRenderer}else if(Na.playerLegacyDesktopYpcOfferRenderer)Ta=Na.playerLegacyDesktopYpcOfferRenderer;else if(Na.ypcTrailerRenderer){qb=Na.ypcTrailerRenderer;var rb=qb.fullVideoMessage;a.Vo=rb?g.YF(rb):"";var B,C;a.Ip=(null==(B=g.U(qb,GSa))?void 0:null==(C=B.videoDetails)?void 0:C.videoId)||""}Ta&&(a.Wo=Ta.itemTitle||"",Ta.itemUrl&&(a.sA=Ta.itemUrl),Ta.itemBuyUrl&&
(a.cA=Ta.itemBuyUrl),a.dA=Ta.itemThumbnail||"",a.QA=Ta.offerHeadline||"",a.pp=Ta.offerDescription||"",a.Ol=Ta.offerId||"",a.BA=Ta.offerButtonText||"",a.iM=Ta.offerButtonFormattedText||null,a.Dp=Ta.overlayDurationMsec||NaN,a.Vo=Ta.fullVideoMessage||"",a.xk=!0);if(qb){var D=g.U(qb,GSa);if(D)a.Pl={raw_player_response:D};else{var J=g.U(qb,HSa);a.Pl=J?BB(J):null}a.xk=!0}}}var K=a.playerResponse.playbackTracking;if(K){var ca=b,sa=ES(K.googleRemarketingUrl);sa&&(a.googleRemarketingUrl=sa);var ia=ES(K.youtubeRemarketingUrl);
ia&&(a.youtubeRemarketingUrl=ia);var L=ES(K.ptrackingUrl);if(L){var X=FS(L),ya=X.oid;ya&&(a.E1=ya);var xa=X.pltype;xa&&(a.QS=xa);var Za=X.ptchn;Za&&(a.C1=Za);var Xa=X.ptk;Xa&&(a.vy=encodeURIComponent(Xa));var wb=X.m;wb&&(a.Ox=wb)}var Pb=ES(K.ppvRemarketingUrl);Pb&&(a.ppvRemarketingUrl=Pb);var db=ES(K.qoeUrl);if(db){for(var Qb=g.CB(db),gc=g.u(Object.keys(Qb)),zc=gc.next();!zc.done;zc=gc.next()){var Yb=zc.value,uc=Qb[Yb];Qb[Yb]=Array.isArray(uc)?uc.join(","):uc}a.cV=Qb;var Wc=Qb.cat;Wc&&(a.wh=Wc);var Ic=
Qb.live;Ic&&(a.EC=Ic);var Jc=Qb.drm_product;Jc&&(a.Rm=Jc)}var Kc=ES(K.remarketingUrl);if(Kc){a.remarketingUrl=Kc;var Ub=FS(Kc);Ub.foc_id&&(a.N.focEnabled=!0);var ud=Ub.data;ud&&(a.N.rmktEnabled=!0,ud.engaged&&(a.N.engaged="1"));a.N.baseUrl=Efa(Kc)+Sm(g.Um(5,Kc))}var vd=ES(K.videostatsPlaybackUrl);if(vd){var ac=FS(vd);a.Lc=ac;var Wb=ac.adformat;if(Wb){ca.adformat=Wb;var Lc=a.U(),Gb=JRa(Wb,a.rz,Lc.D,Lc.K);Gb&&(a.adFormat=Gb)}var Zc=ac.aqi;Zc&&(ca.ad_query_id=Zc);var wd=ac.autoplay;wd&&(a.bl="1"==wd,
a.Wp="1"==wd);var Nb=ac.autonav;Nb&&(a.isAutonav="1"==Nb);var qe=ac.delay;qe&&(a.Nb=jf(qe));var Od=ac.ei;Od&&(a.eventId=Od);"adunit"===ac.el&&(a.bl=!0);var Pd=ac.feature;Pd&&(a.Po=Pd);var Le=ac.list;Le&&(a.playlistId=Le);var Ae=ac.of;Ae&&(a.BP=Ae);var Gd=ac.osid;Gd&&(a.osid=Gd);var Ef=ac.referrer;Ef&&(a.referrer=Ef);var Xe=ac.sdetail;Xe&&(a.Ay=Xe);var ce=ac.sourceid;ce&&(a.Vob=ce);var Ff=ac.ssrt;Ff&&(a.Ro="1"==Ff);var de=ac.subscribed;de&&(a.subscribed="1"==de,a.N.subscribed=de);var re=ac.uga;re&&
(a.userGenderAge=re);var Hd=ac.upt;Hd&&(a.Ey=Hd);var xd=ac.vm;xd&&(a.videoMetadata=xd)}var hd=ES(K.videostatsWatchtimeUrl);if(hd){var Qd=FS(hd).ald;Qd&&(a.Ex=Qd)}if(K.promotedPlaybackTracking){var yd=K.promotedPlaybackTracking;yd.startUrls&&(a.yy=yd.startUrls);yd.firstQuartileUrls&&(a.yS=yd.firstQuartileUrls);yd.secondQuartileUrls&&(a.NS=yd.secondQuartileUrls);yd.thirdQuartileUrls&&(a.OS=yd.thirdQuartileUrls);yd.completeUrls&&(a.hR=yd.completeUrls);yd.engagedViewUrls&&(1<yd.engagedViewUrls.length&&
g.uF(new g.QC("There are more than one engaged_view_urls.")),a.yj=yd.engagedViewUrls[0])}}var lf=a.playerResponse.playerCueRanges;lf&&0<lf.length&&(a.cueRanges=lf);var Tf=a.playerResponse.playerCueRangeSet;Tf&&g.ISa(a,Tf);a:{var se=a.playerResponse.adPlacements;if(se)for(var nc=g.u(se),Me=nc.next();!Me.done;Me=nc.next()){var bh=void 0,Qh=void 0,Bi=null==(bh=Me.value.adPlacementRenderer)?void 0:null==(Qh=bh.renderer)?void 0:Qh.videoAdTrackingRenderer;if(Bi){var Ci=Bi;break a}}Ci=null}var Jf=Ci;K&&
K.promotedPlaybackTracking&&Jf&&g.uF(new g.QC("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));Jf&&(a.PX=!0);var af=a.playerResponse.playerAds;if(af)for(var bf=b,Rh=g.u(af),qc=Rh.next();!qc.done;qc=Rh.next()){var vc=qc.value;if(vc){var Ec=vc.playerLegacyDesktopWatchAdsRenderer;if(Ec){var Gg=Ec.playerAdParams;if(Gg){"1"==Gg.autoplay&&(a.bl=!0,a.Wp=!0);a.Hx=Gg.encodedAdSafetyReason||null;void 0!==Gg.showContentThumbnail&&(a.Jl=!!Gg.showContentThumbnail);bf.enabled_engage_types=
Gg.enabledEngageTypes;break}}}}var Pc=a.playerResponse.playerConfig;if(Pc){var cf=Pc.manifestlessWindowedLiveConfig;if(cf){var Xf=Number(cf.minDvrSequence),Di=Number(cf.maxDvrSequence),Ei=Number(cf.minDvrMediaTimeMs),Sh=Number(cf.maxDvrMediaTimeMs),Hg=Number(cf.startWalltimeMs);Xf&&(a.qf=Xf);Ei&&(a.Za=Ei/1E3);Di&&(a.Ji=Di);Sh&&(a.Ob=Sh/1E3);Hg&&(a.jc=Hg/1E3);(Xf||Ei)&&(Di||Sh)&&(a.fb=!0,a.isLivePlayback=!0,a.allowLiveDvr=!0,a.ye=!1)}var Kf=Pc.daiConfig;if(Kf){if(Kf.enableDai){a.Nf=!0;var fh=Kf.enableServerStitchedDai;
fh&&(a.enableServerStitchedDai=fh);var lj=Kf.enablePreroll;lj&&(a.enablePreroll=lj)}var nf;if("DAI_TYPE_SS_DISABLED"===Kf.daiType||(null==(nf=Kf.debugInfo)?0:nf.isDisabledUnpluggedChannel))a.wC=!0}var df=Pc.audioConfig;if(df){var ng=df.loudnessDb;null!=ng&&(a.Vf=ng);var Fi=df.trackAbsoluteLoudnessLkfs;null!=Fi&&(a.lW=Fi);var Th=df.loudnessTargetLkfs;null!=Th&&(a.loudnessTargetLkfs=Th);df.audioMuted&&(a.vl=!0);df.muteOnStart&&(a.XU=!0);var of=df.loudnessNormalizationConfig;if(of){of.applyStatefulNormalization&&
(a.applyStatefulNormalization=!0);of.preserveStatefulLoudnessTarget&&(a.preserveStatefulLoudnessTarget=!0);var gh=of.minimumLoudnessTargetLkfs;null!=gh&&(a.minimumLoudnessTargetLkfs=gh);var hh=of.maxStatefulTimeThresholdSec;null!=hh&&(a.maxStatefulTimeThresholdSec=hh)}}var Gi=Pc.playbackEndConfig;if(Gi){var De=Gi.endSeconds,ef=Gi.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&(De&&(a.endSeconds=De),a.U().L("embeds_enable_muted_autoplay")&&ef&&(a.limitedPlaybackDurationInSeconds=ef))}var Jd=Pc.fairPlayConfig;
if(Jd){var mj=Jd.certificate;mj&&(a.Xa=GR(mj));var ff=Number(Jd.keyRotationPeriodMs);0<ff&&(a.ly=ff);var pf=Number(Jd.keyPrefetchMarginMs);0<pf&&(a.jy=pf)}var Pe=Pc.playbackStartConfig;if(Pe){a.IP=Number(Pe.startSeconds);var og=Pe.liveUtcStartSeconds,Ig=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds;og&&!Ig&&(a.liveUtcStartSeconds=Number(og));var Ee=Pe.startPosition;if(Ee){var pg=Ee.utcTimeMillis;pg&&!Ig&&(a.liveUtcStartSeconds=.001*Number(pg));var Lf=Ee.streamTimeMillis;Lf&&(a.jk=.001*Number(Lf))}a.progressBarStartPosition=
Pe.progressBarStartPosition;a.progressBarEndPosition=Pe.progressBarEndPosition}else{var Uh=Pc.skippableSegmentsConfig;if(Uh){var Zj=Uh.introSkipDurationMs;Zj&&(a.vC=Number(Zj)/1E3);var Rl=Uh.outroSkipDurationMs;Rl&&(a.sP=Number(Rl)/1E3)}}var Rk=Pc.skippableIntroConfig;if(Rk){var Sl=Number(Rk.startMs),Tl=Number(Rk.endMs);isNaN(Sl)||isNaN(Tl)||(a.Wi=Sl,a.Gf=Tl)}var ak=Pc.streamSelectionConfig;ak&&(a.Kd=Number(ak.maxBitrate));var qf=Pc.vrConfig;qf&&(a.Zz="1"==qf.partialSpherical);var Wd=Pc.webDrmConfig;
if(Wd){Wd.skipWidevine&&(a.TU=!0);var Xd=Wd.widevineServiceCert;Xd&&(a.Nl=GR(Xd));Wd.useCobaltWidevine&&(a.useCobaltWidevine=!0);Wd.startWithNoQualityConstraint&&(a.Dl=!0)}var rf=Pc.mediaCommonConfig;if(rf){var ih=rf.dynamicReadaheadConfig;if(ih){a.maxReadAheadMediaTimeMs=ih.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=ih.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=ih.readAheadGrowthRateMs||NaN;var Ul,Sk=null==rf?void 0:null==(Ul=rf.mediaUstreamerRequestConfig)?void 0:Ul.videoPlaybackUstreamerConfig;
Sk&&(a.oi=GR(Sk));var nj=null==rf?void 0:rf.sabrContextUpdates;if(nj&&0<nj.length)for(var oj=g.u(nj),qg=oj.next();!qg.done;qg=oj.next()){var Yf=qg.value;if(Yf.type&&Yf.value){var bk={type:Yf.type,scope:Yf.scope,value:GR(Yf.value)||void 0,sendByDefault:Yf.sendByDefault};a.sabrContextUpdates.set(Yf.type,bk)}}}var Tk=rf.serverPlaybackStartConfig;Tk&&(a.serverPlaybackStartConfig=Tk)}var Vl=Pc.inlinePlaybackConfig;Vl&&(a.pC=!!Vl.showAudioControls);var jh=Pc.embeddedPlayerConfig;if(jh){a.embeddedPlayerConfig=
jh;var Vh=jh.embeddedPlayerMode;if(Vh){var Hi=a.U();Hi.Ia=Vh;Hi.C="EMBEDDED_PLAYER_MODE_PFL"===Vh}var pj=jh.permissions;pj&&(a.allowImaMonetization=!!pj.allowImaMonetization)}var kh=Pc.ssapConfig;kh&&(a.QV=kh.ssapPrerollEnabled||!1);var lh=Pc.webPlayerConfig;lh&&(lh.gatewayExperimentGroup&&(a.gatewayExperimentGroup=lh.gatewayExperimentGroup),lh.isProximaEligible&&(a.isProximaLatencyEligible=!0))}var sf=a.playerResponse.streamingData;if(sf){var Wl=sf.adaptiveFormats;if(Wl){var Xl=sf.streamingUrlTemplate;
if(a.L("enable_streaming_url_template")&&Xl)for(var Yl=g.u(Wl),Uk=Yl.next();!Uk.done;Uk=Yl.next()){var Qe=Uk.value;!Qe.url&&Qe.distinctParams&&(Qe.url=Xl+"&"+Qe.distinctParams)}}var Mf=sf.formats;if(Mf){for(var tf=[],Zl=g.u(Mf),Vk=Zl.next();!Vk.done;Vk=Zl.next()){var Wk=Vk.value;tf.push(Wk.itag+"/"+Wk.width+"x"+Wk.height)}a.sC=tf.join(",");tf=[];for(var mc=g.u(Mf),Qo=mc.next();!Qo.done;Qo=mc.next()){var Ii=Qo.value,qj={itag:Ii.itag,type:Ii.mimeType,quality:Ii.quality},$l=Ii.url;$l&&(qj.url=$l);var am=
OP(Ii),Xk=am.RC,dn=am.ZF,en=am.s;am.DX&&(qj.url=Xk,qj.sp=dn,qj.s=en);tf.push(g.$m(qj))}a.Xf=tf.join(",")}var Ro=sf.hlsFormats;if(Ro){var Gq=Pc||null,bm={};if(Gq){var So=Gq.audioPairingConfig;if(So&&So.pairs)for(var Hq=g.u(So.pairs),Yk=Hq.next();!Yk.done;Yk=Hq.next()){var fn=Yk.value,cm=fn.videoItag;bm[cm]||(bm[cm]=[]);bm[cm].push(fn.audioItag)}}for(var ck={},Wh=g.u(Ro),mh=Wh.next();!mh.done;mh=Wh.next()){var dm=mh.value;ck[dm.itag]=dm.bitrate}for(var Iq=[],Jq=g.u(Ro),To=Jq.next();!To.done;To=Jq.next()){var Zf=
To.value,Xh={itag:Zf.itag,type:Zf.mimeType,url:Zf.url,bitrate:Zf.bitrate,width:Zf.width,height:Zf.height,fps:Zf.fps},gn=Zf.audioTrack;if(gn){var nh=gn.displayName;nh&&(Xh.name=nh,Xh.audio_track_id=gn.id,gn.audioIsDefault&&(Xh.is_default="1"))}if(Zf.drmFamilies){for(var Ji=[],Ki=g.u(Zf.drmFamilies),Uo=Ki.next();!Uo.done;Uo=Ki.next())Ji.push(EPa[Uo.value]);Xh.drm_families=Ji.join(",")}var rg=bm[Zf.itag];if(rg&&rg.length){Xh.audio_itag=rg.join(",");var Yh=ck[rg[0]];Yh&&(Xh.bitrate+=Yh)}var Zh=nPa(Zf);
Zh&&(Xh.eotf=Zh);Zf.audioChannels&&(Xh.audio_channels=Zf.audioChannels);Iq.push(g.$m(Xh))}a.hlsFormats=Iq.join(",")}var Vo=sf.licenseInfos;if(Vo&&0<Vo.length){for(var Wo={},Kq=g.u(Vo),em=Kq.next();!em.done;em=Kq.next()){var Xo=em.value,Yo=Xo.drmFamily,Lq=Xo.url;Yo&&Lq&&(Wo[EPa[Yo]]=Lq)}a.qe=Wo}var Li=sf.drmParams;Li&&(a.drmParams=Li);var dk=sf.dashManifestUrl;dk&&(a.Yc=g.an(dk,{cpn:a.clientPlaybackNonce}));var ek=sf.hlsManifestUrl;ek&&(a.hlsvp=ek);var Zk=sf.probeUrl;Zk&&(a.probeUrl=SJ(g.an(Zk,{cpn:a.clientPlaybackNonce})));
var fm=sf.serverAbrStreamingUrl;fm&&(a.By=new g.JP(fm,!0))}var gm=a.playerResponse.trackingParams;gm&&(a.va=gm);var $c=a.playerResponse.videoDetails;if($c){var $h=b,hn=$c.videoId;hn&&(a.videoId=hn,$h.video_id||($h.video_id=hn));var jn=$c.channelId;jn&&(a.N.uid=jn.substr(2));var kn=$c.title;kn&&(a.title=kn,$h.title||($h.title=kn));var ln=$c.lengthSeconds;ln&&(a.lengthSeconds=Number(ln),$h.length_seconds||($h.length_seconds=ln));var Jg=$c.keywords;Jg&&(a.keywords=ASa(Jg));var oh=$c.channelId;oh&&(a.Gl=
oh,$h.ucid||($h.ucid=oh));var ai=$c.viewCount;ai&&(a.rawViewCount=Number(ai));var mn=$c.author;mn&&(a.author=mn,$h.author||($h.author=mn));var Mq=$c.shortDescription;Mq&&(a.shortDescription=Mq);var hm=$c.isCrawlable;hm&&(a.isListed=hm);var nn=$c.musicVideoType;nn&&(a.musicVideoType=nn);var im=$c.isLive;null!=im&&(a.isLivePlayback=im);if(im||$c.isUpcoming)a.isPremiere=!$c.isLiveContent;var Zo=$c.thumbnail;Zo&&(a.Z=DS(Zo));var Nq=$c.isExternallyHostedPodcast;Nq&&(a.isExternallyHostedPodcast=Nq);var $o=
$c.viewerLivestreamJoinPosition;if(null==$o?0:$o.utcTimeMillis)a.Jz=jf($o.utcTimeMillis);var fk=Pc||null,Mi=b;$c.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);$c.isUpcoming&&(a.isUpcoming=!0);if($c.isPostLiveDvr)a.ye=!0;else{var gk=!1;if(a.tb)a.allowLiveDvr=BR()?!0:hC&&5>aT?!1:!0,a.isLivePlayback=!0;else if($c.isLive){Mi.livestream="1";a.allowLiveDvr=$c.isLiveDvrEnabled?BR()?!0:hC&&5>aT?!1:!0:!1;a.Ma=27;$c.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var jm=$c.latencyClass;jm&&(a.latencyClass=
JSa[jm]||"UNKNOWN");var ap=$c.liveChunkReadahead;ap&&(a.liveChunkReadahead=ap);var hk=fk&&fk.livePlayerConfig;if(hk){hk.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);hk.hasSubfragmentedWebm&&(a.VD=!0);hk.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var ik=hk.liveExperimentalContentId;ik&&(a.liveExperimentalContentId=Number(ik));var $k=hk.isLiveHeadPlayable;a.L("html5_live_head_playable")&&null!=$k&&(a.isLiveHeadPlayable=$k)}gk=!0}else $c.isUpcoming&&(gk=!0);gk&&(a.isLivePlayback=
!0,Mi.adformat&&"8"!==Mi.adformat.split("_")[1]||a.Ia.push("heartbeat"),a.Xo=!0)}var al=$c.isPrivate;void 0!==al&&(a.isPrivate=lC(a.isPrivate,al))}if(ka){var bp=$c||null,Oq=!1,bl=ka.errorScreen;Oq=bl&&(bl.playerLegacyDesktopYpcOfferRenderer||bl.playerLegacyDesktopYpcTrailerRenderer||bl.ypcTrailerRenderer)?!0:bp&&bp.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(ka.status);if(!Oq){a.errorCode=CRa(ka.errorCode)||"auth";var rj=bl&&bl.playerErrorMessageRenderer;if(rj){a.playerErrorMessageRenderer=
rj;var km=rj.reason;km&&(a.errorReason=g.YF(km));var cl=rj.subreason;cl&&(a.qn=g.YF(cl),a.oy=cl)}else a.errorReason=ka.reason||null;var cp=ka.status;if("LOGIN_REQUIRED"===cp)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===cp)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===cp){var Pq=ka.errorScreen,Qq=Pq&&Pq.playerKavRenderer;a.errorDetail=Qq&&Qq.kavUrl?"4":"3"}else a.errorDetail=ka.isBlockedInRestrictedMode?"5":"0"}}var on=a.playerResponse.interstitialPods;on&&QRa(a,on);a.Wa&&a.eventId&&(a.Wa=
EB(a.Wa,{ei:a.eventId}));var lm=a.playerResponse.captions;if(lm&&lm.playerCaptionsTracklistRenderer)a:{var ph=lm.playerCaptionsTracklistRenderer;a.captionTracks=[];if(ph.captionTracks)for(var pn=g.u(ph.captionTracks),mm=pn.next();!mm.done;mm=pn.next()){var Kg=mm.value,Rq=xSa(Kg.baseUrl);if(!Rq)break a;var dp={is_translateable:!!Kg.isTranslatable,languageCode:Kg.languageCode,languageName:Kg.name&&g.YF(Kg.name),url:Rq,vss_id:Kg.vssId,kind:Kg.kind};dp.name=Kg.trackName;dp.displayName=Kg.name&&g.YF(Kg.name);
a.captionTracks.push(new g.yS(dp))}a.SB=ph.audioTracks||[];a.gV=ph.defaultAudioTrackIndex||0;a.Du=[];if(ph.translationLanguages)for(var Sq=g.u(ph.translationLanguages),dl=Sq.next();!dl.done;dl=Sq.next()){var sj=dl.value,bi={};bi.languageCode=sj.languageCode;bi.languageName=g.YF(sj.languageName);if(sj.translationSourceTrackIndices){bi.translationSourceTrackIndices=[];for(var qh=g.u(sj.translationSourceTrackIndices),ci=qh.next();!ci.done;ci=qh.next())bi.translationSourceTrackIndices.push(ci.value)}if(sj.excludeAudioTrackIndices){bi.excludeAudioTrackIndices=
[];for(var Ni=g.u(sj.excludeAudioTrackIndices),ep=Ni.next();!ep.done;ep=Ni.next())bi.excludeAudioTrackIndices.push(ep.value)}a.Du.push(bi)}a.UB=[];if(ph.defaultTranslationSourceTrackIndices)for(var Tq=g.u(ph.defaultTranslationSourceTrackIndices),qn=Tq.next();!qn.done;qn=Tq.next())a.UB.push(qn.value);a.Cu=!!ph.contribute&&!!ph.contribute.captionsMetadataRenderer}a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.IP=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&&
a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&SRa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var nm;a.compositeLiveIngestionOffsetToken=null==(nm=a.playerResponse.playbackTracking)?void 0:nm.compositeLiveIngestionOffsetToken;var Oi;a.compositeLiveStatusToken=null==(Oi=a.playerResponse.playbackTracking)?void 0:Oi.compositeLiveStatusToken}vSa(a,b);b.queue_info&&(a.queueInfo=
b.queue_info);var tj=b.hlsdvr;null!=tj&&(a.allowLiveDvr="1"==tj?BR()?!0:hC&&5>aT?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.Hx||(a.Hx=b.encoded_ad_safety_reason||null);a.MU=b.agcid||null;a.yG=b.ad_id||null;a.AG=b.ad_sys||null;a.qC=b.encoded_ad_playback_context||null;a.vl=lC(a.vl,b.infringe||b.muted);a.M5=b.authkey;a.j5=b.authuser;a.mutedAutoplay=lC(a.mutedAutoplay,b&&b.playmuted)&&a.L("embeds_enable_muted_autoplay");a.tL=lC(a.tL,b&&b.mutedautoplay)&&a.L("embeds_enable_muted_autoplay");var uj=b.length_seconds;
uj&&(a.lengthSeconds="string"===typeof uj?jf(uj):uj);if(a.isAd()||a.Om||!g.qC(g.cS(a.Ha)))a.endSeconds=nC(a.endSeconds,a.sP||b.end||b.endSeconds);else{var rn=a.lengthSeconds;switch(g.cS(a.Ha)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":30<rn?a.limitedPlaybackDurationInSeconds=30:30>rn&&10<rn&&(a.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.limitedPlaybackDurationInSeconds=.2*rn}}a.va=oC(a.va,b.itct);a.xC=lC(a.xC,b.noiba);a.zC=lC(a.zC,
b.is_live_destination);a.isLivePlayback=lC(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.yc();b.isUpcoming&&(a.isUpcoming=lC(a.isUpcoming,b.isUpcoming));a.ye=lC(a.ye,b.post_live_playback);a.fb&&(a.ye=!1);a.isMdxPlayback=lC(a.isMdxPlayback,b.mdx);var Pi=b.mdx_control_mode;Pi&&(a.mdxControlMode="number"===typeof Pi?Pi:jf(Pi));a.isInlinePlaybackNoAd=lC(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Vb=nC(a.Vb,b.reload_count);a.reloadReason=oC(a.reloadReason,
b.reload_reason);a.Jl=lC(a.Jl,b.show_content_thumbnail);a.BC=lC(a.BC,b.utpsa);a.wL=lC(a.wL,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.xL=b.tkn||null;var el=CS(b);0<Object.keys(el).length&&(a.Z=el);a.Ca=oC(a.Ca,b.vvt);a.mdxEnvironment=oC(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.A7=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||
(a.osid=b.osid);a.playlistId=oC(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?nC(0,b.index):nC(a.playlistIndex,b.index));a.eT=b.pyv_view_beacon_url;a.AU=b.pyv_quartile25_beacon_url;a.CU=b.pyv_quartile50_beacon_url;a.HU=b.pyv_quartile75_beacon_url;a.yU=b.pyv_quartile100_beacon_url;var fl=b.remarketing_url;fl&&(a.remarketingUrl=fl);var sn=b.ppv_remarketing_url;sn&&(a.ppvRemarketingUrl=sn);var fp=b.session_data;!a.JU&&fp&&(a.JU=zB(fp,"&").feature);a.isFling=1==nC(a.isFling?
1:0,b.is_fling);a.vnd=nC(a.vnd,b.vnd);a.forceAdsUrl=oC(a.forceAdsUrl,b.force_ads_url);a.Fk=oC(a.Fk,b.ctrl);a.rl=oC(a.rl,b.ytr);a.hv=b.ytrcc;a.LU=b.ytrexp;a.PS=b.ytrext;a.Bd=oC(a.Bd,b.adformat);a.rz=oC(a.rz,b.attrib);a.slotPosition=nC(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Ro=lC(a.Ro,b.ssrt);a.videoId=pC(b)||a.videoId;a.G=oC(a.G,b.vss_credentials_token);a.Km=oC(a.Km,b.vss_credentials_token_type);a.lk=lC(a.lk,b.audio_only);a.gM=lC(a.gM,b.aac_high);a.nG=lC(a.nG,b.prefer_low_quality_audio);
a.AL=lC(a.AL,b.uncap_inline_quality);a.wh=oC(a.wh,b.qoe_cat);a.Qm=lC(a.Qm,b.download_media);var gp=b.prefer_gapless;var Us=null!=gp?lC(a.Y,gp):a.Y?a.Y:a.Ha.preferGapless&&a.Ha.supportsGaplessShorts();a.Y=Us;lHa(a.playerResponse)&&(a.adModule=!0,a.Ia.push("ad"));var Uq=b.adaptive_fmts;Uq&&(a.adaptiveFormats=Uq,a.qa("adpfmts",{},!0));var Vq=b.allow_embed;Vq&&(a.allowEmbed="1"==Vq);var tn=b.backgroundable;tn&&(a.backgroundable="1"==tn);var hp=b.autonav;hp&&(a.isAutonav="1"==hp);var jk=b.autoplay;jk&&
(a.Wp="1"==jk,a.bl="1"==jk);var un=b.iv_load_policy;un&&(a.annotationsLoadPolicy=mC(a.annotationsLoadPolicy,un,dS));var vn=b.cc_lang_pref;vn&&(a.captionsLanguagePreference=oC(vn,a.captionsLanguagePreference));var Wq=b.cc_load_policy;Wq&&(a.lF=mC(a.lF,Wq,dS));var Xq;a.deviceCaptionsOn=null!=(Xq=b.device_captions_on)?Xq:void 0;var om;a.jV=null!=(om=b.device_captions_lang_pref)?om:"";var ip;a.BL=null!=(ip=b.viewer_selected_caption_langs)?ip:[];if(!a.L("html5_enable_ssap_entity_id")){var jp=b.cached_load;
jp&&(a.gp=lC(a.gp,jp))}"0"==b.dash&&(a.WB=!0);var Yq=b.dashmpd;Yq&&(a.Yc=g.an(Yq,{cpn:a.clientPlaybackNonce}));var Zq=b.delay;Zq&&(a.Nb=jf(Zq));var pm=a.sP||b.end;void 0!=pm&&(a.clipEnd=nC(a.clipEnd,pm));var qm=b.fmt_list;qm&&(a.sC=qm);b.heartbeat_preroll&&a.Ia.push("heartbeat");a.Nm=-Math.floor(10*Math.random());a.wr=-Math.floor(40*Math.random());var wn=b.is_listed;wn&&(a.isListed=lC(a.isListed,wn));var xn=b.is_private;xn&&(a.isPrivate=lC(a.isPrivate,xn));var kp=b.is_dni;kp&&(a.Of=lC(a.Of,kp));var lp=
b.dni_color;lp&&(a.tp=oC(a.tp,lp));var $q=b.pipable;$q&&(a.pipable=lC(a.pipable,$q));a.PU=a.pipable&&a.Ha.zr;a.YU=a.PU&&!a.Ha.showMiniplayerButton;var mp=b.paid_content_overlay_duration_ms;mp&&(a.paidContentOverlayDurationMs=jf(mp));var ar=b.paid_content_overlay_text;ar&&(a.paidContentOverlayText=ar);var br=b.url_encoded_fmt_stream_map;br&&(a.Xf=br);var he=b.hls_formats;he&&(a.hlsFormats=he);var Fe=b.hlsvp;Fe&&(a.hlsvp=Fe);var ie=b.live_start_walltime;ie&&(a.rM="number"===typeof ie?ie:jf(ie));var gl=
b.live_manifest_duration;gl&&(a.Il="number"===typeof gl?gl:jf(gl));var yn=b.player_params;yn&&(a.playerParams=yn);var np=b.partnerid;np&&(a.Ma=nC(a.Ma,np));var cr=b.probe_url;cr&&(a.probeUrl=SJ(g.an(cr,{cpn:a.clientPlaybackNonce})));var op=b.pyv_billable_url;op&&RAa(op)&&(a.yj=op);var pp=b.pyv_conv_url;pp&&RAa(pp)&&(a.wU=pp);BSa(a,b);0<a.startSeconds||(a.startSeconds=nC(a.startSeconds,a.IP||a.vC||b.start||b.startSeconds),a.Gb=a.startSeconds);if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var qp=
b.live_utc_start;if(null!=qp)a.liveUtcStartSeconds=Number(qp);else{var di=a.startSeconds;di&&isFinite(di)&&1E9<di&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var Qi=b.utc_start_millis;Qi&&(a.liveUtcStartSeconds=.001*Number(Qi))}var vj=b.stream_time_start_millis;vj&&(a.jk=.001*Number(vj));var dr=a.vC||b.start;void 0==dr||"1"==b.resume||a.isLivePlayback||(a.clipStart=nC(a.clipStart,dr));var er=b.url_encoded_third_party_media;er&&(a.Ml=Qoa(er));var hl=
b.ypc_offer_button_formatted_text;if(hl){var zn=JSON.parse(hl);a.iM=null!=zn?zn:null;a.hV=hl}var An=b.ypc_offer_button_text;An&&(a.BA=An);var rp=b.ypc_offer_description;rp&&(a.pp=rp);var il=b.ypc_offer_headline;il&&(a.QA=il);var rm=b.ypc_full_video_message;rm&&(a.Vo=rm);var Ri=b.ypc_offer_id;Ri&&(a.Ol=Ri);var Bn=b.ypc_buy_url;Bn&&(a.cA=Bn);var Cn=b.ypc_item_thumbnail;Cn&&(a.dA=Cn);var fr=b.ypc_item_title;fr&&(a.Wo=fr);var gr=b.ypc_item_url;gr&&(a.sA=gr);var kk=b.ypc_vid;kk&&(a.Ip=kk);b.ypc_overlay_timeout&&
(a.Dp=Number(b.ypc_overlay_timeout));var jl=b.ypc_trailer_player_vars;jl&&(a.Pl=BB(jl));var lk=b.ypc_original_itct;lk&&(a.eca=lk);a.Gl=oC(a.Gl,b.ucid);b.baseUrl&&(a.N.baseUrl=b.baseUrl);b.uid&&(a.N.uid=b.uid);b.oeid&&(a.N.oeid=b.oeid);b.ieid&&(a.N.ieid=b.ieid);b.ppe&&(a.N.ppe=b.ppe);b.engaged&&(a.N.engaged=b.engaged);b.subscribed&&(a.N.subscribed=b.subscribed);a.N.focEnabled=lC(a.N.focEnabled,b.focEnabled);a.N.rmktEnabled=lC(a.N.rmktEnabled,b.rmktEnabled);a.Dy=b.storyboard_spec||null;a.qy=b.live_storyboard_spec||
null;a.O0=b.iv_endscreen_url||null;a.CC=lC(a.CC,b.iv3_module);a.Xo=lC(a.Xo,b.ypc_license_checker_module);a.xk=lC(a.xk,b.ypc_module);a.rg=lC(a.rg,b.ypc_clickwrap_module);a.xk&&a.Ia.push("ypc");a.rg&&a.Ia.push("ypc_clickwrap");a.US={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};wSa(a,b);var hr=b.cotn;hr&&(a.cotn=hr);if(KSa(a))bT(a)&&(a.isLivePlayback&&a.Yc&&(a.Vi=!0),a.Xa&&(a.Vm=!0));else if(LSa(a))a.Vi=!0;else{var Dn,sp,tp=(null==(Dn=a.playerResponse)?void 0:null==(sp=Dn.streamingData)?void 0:sp.adaptiveFormats)||[];if(0<tp.length)var sm=MSa(a,tp);else{var ir=a.adaptiveFormats;
if(ir&&!bT(a)){cT(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(YPa=!0);var kl=dT(ir),mk=a.qe,ll=a.lengthSeconds,En=a.isLivePlayback,tm=a.ye,uf=a.Ha,sg=GPa(kl);if(En||tm){var je=new bR("",null==uf?void 0:uf.experiments,!0);je.yc=!0;je.isManifestless=!0;je.B=!tm;je.isLive=!tm;je.ye=tm;for(var jr=g.u(kl),up=jr.next();!up.done;up=jr.next()){var rh=up.value,sh=FPa(rh,mk),ue=dR(rh.url,rh.sp,rh.s),ei=ue.get("id");ei&&ei.includes("%7E")&&(je.Z=!0);var um=Number(rh.target_duration_sec)||5,Vs=Number(rh.max_dvr_duration_sec)||
14400,kr=Number(ue.get("mindsq")||ue.get("min_sq")||"0"),lr=Number(ue.get("maxdsq")||ue.get("max_sq")||"0")||Infinity;je.qf=je.qf||kr;je.Ji=je.Ji||lr;var ev=!XK(sh.mimeType);ue&&aR(je,new TQ(ue,sh,{Mj:um,dn:ev,xq:Vs,qf:kr,Ji:lr,qA:300,ye:tm}))}var mr=je}else{if("FORMAT_STREAM_TYPE_OTF"===sg){var Fn=ll;Fn=void 0===Fn?0:Fn;var fi=new bR("",null==uf?void 0:uf.experiments,!1);fi.duration=Fn||0;for(var Gn=g.u(kl),vm=Gn.next();!vm.done;vm=Gn.next()){var ml=vm.value,vp=FPa(ml,mk,fi.duration),wp=dR(ml.url,
ml.sp,ml.s);if(wp)if("FORMAT_STREAM_TYPE_OTF"===vp.streamType)aR(fi,new UQ(wp,vp,"sq/0"));else{var nr=xQ(ml.init),Ws=xQ(ml.index);aR(fi,new ZQ(wp,vp,nr,Ws))}}fi.isOtf=!0;var xp=fi}else{var Si=ll;Si=void 0===Si?0:Si;var Ti=new bR("",null==uf?void 0:uf.experiments,!1);Ti.duration=Si||0;for(var nl=g.u(kl),yp=nl.next();!yp.done;yp=nl.next()){var ol=yp.value,zp=FPa(ol,mk,Ti.duration),Xs=xQ(ol.init),Ys=xQ(ol.index),nk=dR(ol.url,ol.sp,ol.s);nk&&aR(Ti,new ZQ(nk,zp,Xs,Ys))}xp=Ti}mr=xp}var wj=mr;if(0<kl.length){var Ui=
kl[0];if("hangouts-meet"===a.U().playerStyle&&Ui.url){var pl=g.CB(Ui.url);a.To=a.To||Number(pl.expire)}}var wm=a.isLivePlayback&&!a.ye&&!a.fb&&!a.isPremiere;a.L("html5_live_head_playable")&&(!eT(a)&&wm&&a.qa("missingLiveHeadPlayable",{}),"yt"===a.Ha.va&&(wj.Wa=!0));wj.Ra=fT(a);sm=wj}else sm=null;a.qa("pafmts",{isManifestFilled:!!sm})}if(sm){NSa(a,sm);var Ap=!0}else Ap=!1;Ap?a.enableServerStitchedDai=a.enableServerStitchedDai&&gT(a):a.Yc&&(a.Vi=!0)}var Bp=b.adpings;Bp&&(a.Gx=Bp?BB(Bp):null);var or=
b.feature;or&&(a.Po=or);var pr=b.referrer;pr&&(a.referrer=pr);a.clientScreenNonce=oC(a.clientScreenNonce,b.csn);a.GF=nC(a.GF,b.root_ve_type);a.Wm=nC(a.Wm,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.Fy=lC(a.Fy,b.upg_content_filter_mode);var qr=b.unplugged_location_info;qr&&(a.ma=qr);var xm=b.unplugged_partner_opt_out;xm&&(a.xG=oC("",xm));a.Nx=lC(a.Nx,b.disable_watch_next);a.Um=oC(a.Um,b.internal_ip_override);a.yC=!!b.is_yto_interstitial;(a.interstitials.length||a.yC)&&
a.Ia.push("yto");var Vi=b.ym;Vi&&(a.ym=Vi);b.OK&&(a.OK=b.OK);var gi;a.Na=null!=(gi=b.csi_timer)?gi:"";a.Tm=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);var th=b.watch_endpoint;a.L("html5_attach_watch_endpoint_ustreamer_config")&&th&&ERa(a,th);if(null==th?0:th.ustreamerConfig)a.Io=GR(th.ustreamerConfig);var rr,sr,tr=null==th?void 0:null==(rr=th.loggingContext)?void 0:null==(sr=rr.qoeLoggingContext)?void 0:sr.serializedContextData;tr&&(a.oba=tr);g.UR(a.Ha)&&a.Ha.Mm&&(a.embedsRct=oC(a.embedsRct,
b.rct),a.embedsRctn=oC(a.embedsRctn,b.rctn));a.Lm=a.Lm||!!b.pause_at_start;b.default_active_source_video_id&&(a.defaultActiveSourceVideoId=b.default_active_source_video_id)};
zSa=function(a,b,c){var d,e=null==(d=b.cpnInfo)?void 0:d.cpn;a.playerResponseCpn=null!=e?e:"";var f;return(null==(f=b.cacheMetadata)?0:f.isCacheHit)||a.gp||!e?"":(OSa.has(e)?c="":(b=PSa.push(e),OSa.add(e),b>(null!=c?c:50)&&(c=PSa.shift())&&OSa.delete(c),c=e),e!==c&&a.dB("ssei","dcpn,"+e+","+c),c)};
vSa=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.Ra=c;var e=a.Ra.playerCueRangeSet;e&&g.ISa(a,e);var f=a.Ra.playerOverlays;if(f){var h=f.playerOverlayRenderer;if(h){var l=h.autonavToggle;l&&(a.autoplaySwitchButtonRenderer=g.U(l,QSa),a.L("web_player_autonav_use_server_provided_state")&&RSa(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var m=h.videoDetails;if(m){var n=m.embeddedPlayerOverlayVideoDetailsRenderer;var p=
m.playerOverlayVideoDetailsRenderer;p&&(p.title&&(b.title=g.YF(p.title)),p.subtitle&&(b.subtitle=g.YF(p.subtitle)))}g.$R(a.Ha)&&(a.Ee=!!h.addToMenu);SSa(a,h.shareButton);a.L("progress_bar_start_end_null_check_killswitch")?(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition):h.startPosition&&h.endPosition&&(a.progressBarStartPosition=h.startPosition,a.progressBarEndPosition=h.endPosition);var q=h.gatedActionsOverlayRenderer;q&&(a.k5=g.U(q,TSa));var r,t,v,x=g.U(null==
(r=a.getWatchNextResponse())?void 0:null==(t=r.playerOverlays)?void 0:null==(v=t.playerOverlayRenderer)?void 0:v.infoPanel,USa);if(x){a.uC=Number(null==x?void 0:x.durationMs)||NaN;if(null==x?0:x.infoPanelOverviewViewModel)a.Ff=null==x?void 0:x.infoPanelOverviewViewModel;if(null==x?0:x.infoPanelDetailsViewModel)a.Hl=null==x?void 0:x.infoPanelDetailsViewModel}a.showSeekingControls=!!h.showSeekingControls}}var A,E,F=null==(A=a.getWatchNextResponse())?void 0:null==(E=A.contents)?void 0:E.twoColumnWatchNextResults;
if(F){var G=F.desktopOverlay&&g.U(F.desktopOverlay,VSa);G&&(G.suppressShareButton&&(a.showShareButton=!1),G.suppressWatchLaterButton&&(a.Ee=!1))}n&&WSa(a,b,n);var M=nC(0,b.autoplay_count),P=a.getWatchNextResponse(),R,ba=null==(R=P.contents)?void 0:R.twoColumnWatchNextResults,na,ta,ka,va=null==(na=P.playerOverlays)?void 0:null==(ta=na.playerOverlayRenderer)?void 0:null==(ka=ta.autoplay)?void 0:ka.playerOverlayAutoplayRenderer,ea=VRa(a),Y,Ma=null==(Y=P.contents)?void 0:Y.singleColumnWatchNextResults;
if(Ma){var y;if((null==(y=Ma.autoplay)?0:y.autoplay)&&!Ma.playlist){var aa=Ma.autoplay.autoplay.sets,Ua={},cb=new g.IS(a.U()),nb=null,Na;if(aa){for(var Ta=g.u(aa),gb=Ta.next();!gb.done;gb=Ta.next()){var qb=gb.value.autoplayVideoRenderer;if(qb&&qb.compactVideoRenderer){nb=qb.compactVideoRenderer;break}}if(Na=aa[0].autoplayVideo){var rb=Na.clickTrackingParams;rb&&(Ua.itct=rb);Ua.autonav="1";Ua.playnext=String(M)}}else Ua.feature="related-auto";var B=g.U(Na,g.hT);if(nb){cb.videoId=nb.videoId;var C=nb.shortBylineText;
C&&(cb.author=g.YF(C));var D=nb.title;D&&(cb.title=g.YF(D))}else null!=B&&B.videoId&&(cb.videoId=B.videoId);cb.hD=Ua;a.suggestions=[];a.Jx=cb}}if(ea){for(var J=[],K=g.u(ea),ca=K.next();!ca.done;ca=K.next()){var sa=ca.value,ia=void 0,L=null;if(sa.endScreenVideoRenderer){var X=sa.endScreenVideoRenderer,ya=X.title;L=new g.IS(a.U());L.videoId=X.videoId;L.lengthSeconds=X.lengthInSeconds||0;var xa=X.publishedTimeText;xa&&(L.publishedTimeText=g.YF(xa));var Za=X.shortBylineText;Za&&(L.author=g.YF(Za));var Xa=
X.shortViewCountText;Xa&&(L.shortViewCount=g.YF(Xa));if(ya){L.title=g.YF(ya);var wb=ya.accessibility;if(wb){var Pb=wb.accessibilityData;Pb&&Pb.label&&(L.ariaLabel=Pb.label)}}var db=X.navigationEndpoint;if(db){ia=db.clickTrackingParams;var Qb=g.U(db,g.hT),gc=g.U(db,g.pG);Qb?L.iD=Qb:null!=gc&&(L.watchUrl=gc.url)}var zc=X.thumbnailOverlays;if(zc)for(var Yb=g.u(zc),uc=Yb.next();!uc.done;uc=Yb.next()){var Wc=uc.value.thumbnailOverlayTimeStatusRenderer;if(Wc)if("LIVE"===Wc.style){L.isLivePlayback=!0;break}else if("UPCOMING"===
Wc.style){L.isUpcoming=!0;break}}L.Z=DS(X.thumbnail)}else if(sa.endScreenPlaylistRenderer){var Ic=sa.endScreenPlaylistRenderer,Jc=Ic.navigationEndpoint;if(!Jc)continue;var Kc=g.U(Jc,g.hT);if(!Kc)continue;var Ub=Kc.videoId;L=new g.HS(a.U());L.playlistId=Ic.playlistId;L.playlistLength=Number(Ic.videoCount)||0;L.j=Ub||null;L.videoId=Ub;var ud=Ic.title;ud&&(L.title=g.YF(ud));var vd=Ic.shortBylineText;vd&&(L.author=g.YF(vd));ia=Jc.clickTrackingParams;L.Z=DS(Ic.thumbnail)}L&&(ia&&(L.sessionData={itct:ia}),
J.push(L))}a.suggestions=J}if(va){a.VS=!!va.preferImmediateRedirect;a.Wf=a.Wf||!!va.webShowNewAutonavCountdown;a.Kl=a.Kl||!!va.webShowBigThumbnailEndscreen;if(a.Wf||a.Kl){var ac=ba||null,Wb=new g.IS(a.U());Wb.videoId=va.videoId;var Lc=va.videoTitle;if(Lc){Wb.title=g.YF(Lc);var Gb=Lc.accessibility;if(Gb){var Zc=Gb.accessibilityData;Zc&&Zc.label&&(Wb.ariaLabel=Zc.label)}}var wd=va.byline;wd&&(Wb.author=g.YF(wd));var Nb=va.publishedTimeText;Nb&&(Wb.publishedTimeText=g.YF(Nb));var qe=va.shortViewCountText;
qe&&(Wb.shortViewCount=g.YF(qe));var Od=va.thumbnailOverlays;if(Od)for(var Pd=g.u(Od),Le=Pd.next();!Le.done;Le=Pd.next()){var Ae=Le.value.thumbnailOverlayTimeStatusRenderer;if(Ae)if("LIVE"===Ae.style){Wb.isLivePlayback=!0;break}else if("UPCOMING"===Ae.style){Wb.isUpcoming=!0;break}else if("DEFAULT"===Ae.style&&Ae.text){Wb.lengthText=g.YF(Ae.text);var Gd=Ae.text.accessibility;if(Gd){var Ef=Gd.accessibilityData;Ef&&Ef.label&&(Wb.nw=Ef.label||"")}break}}Wb.Z=DS(va.background);var Xe=va.nextButton;if(Xe){var ce=
Xe.buttonRenderer;if(ce){var Ff=ce.navigationEndpoint;if(Ff){var de=g.U(Ff,g.hT);de&&(Wb.iD=de)}}}if(va.topBadges){var re=va.topBadges[0];if(re){var Hd=g.U(re,XSa);Hd&&"BADGE_STYLE_TYPE_PREMIUM"===Hd.style&&(Wb.OK=!0)}}var xd=va.alternativeTitle;xd&&(Wb.us=g.YF(xd));var hd={autonav:"1",playnext:String(M)};Wb.playlistId&&(hd.autoplay="1");if(ac){var Qd,yd,lf,Tf,se=null==(Qd=ac.autoplay)?void 0:null==(yd=Qd.autoplay)?void 0:null==(lf=yd.sets)?void 0:null==(Tf=lf[0])?void 0:Tf.autoplayVideo;if(se){var nc=
se.clickTrackingParams;nc&&(hd.itct=nc);var Me=g.U(se,g.hT);Me&&(Wb.zV=Me)}}else if(va){var bh,Qh,Bi,Ci=null==(bh=va.nextButton)?void 0:null==(Qh=bh.buttonRenderer)?void 0:null==(Bi=Qh.navigationEndpoint)?void 0:Bi.clickTrackingParams;Ci&&(hd.itct=Ci)}hd.itct||(hd.feature="related-auto");Wb.hD=hd;a.suggestions||(a.suggestions=[]);a.Jx=Wb}null!=va.countDownSecs&&(a.aV=1E3*va.countDownSecs);null!=va.countDownSecsForFullscreen&&(a.RB=0<=va.countDownSecsForFullscreen?1E3*va.countDownSecsForFullscreen:
-1);if(a.L("web_player_autonav_next_button_renderer")){var Jf;a.v6=null==(Jf=va.nextButton)?void 0:Jf.buttonRenderer}var af;a.n6=null==(af=va.cancelButton)?void 0:af.buttonRenderer;a.L("web_autonav_color_transition")&&va.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.U(va.watchToWatchTransitionRenderer,YSa))}var bf=VRa(a);if(bf){var Rh,qc,vc,Ec=null==bf?void 0:null==(Rh=bf[0])?void 0:null==(qc=Rh.endScreenVideoRenderer)?void 0:null==(vc=qc.navigationEndpoint)?void 0:vc.clickTrackingParams,
Gg=g.iT(a);Ec&&Gg&&(Gg.sessionData={itct:Ec})}a.Ra.currentVideoThumbnail&&(a.Z=DS(a.Ra.currentVideoThumbnail));var Pc,cf,Xf,Di,Ei,Sh=null==(Pc=a.Ra)?void 0:null==(cf=Pc.contents)?void 0:null==(Xf=cf.twoColumnWatchNextResults)?void 0:null==(Di=Xf.results)?void 0:null==(Ei=Di.results)?void 0:Ei.contents;if(Sh&&Sh[1]){var Hg,Kf,fh,lj,nf=null==(Hg=Sh[1].videoSecondaryInfoRenderer)?void 0:null==(Kf=Hg.owner)?void 0:null==(fh=Kf.videoOwnerRenderer)?void 0:null==(lj=fh.thumbnail)?void 0:lj.thumbnails;nf&&
nf.length&&(a.profilePicture=nf[nf.length-1].url)}var df=pC(b),ng,Fi=null==(ng=a.getWatchNextResponse())?void 0:ng.onResponseReceivedEndpoints;if(Fi)for(var Th=g.u(Fi),of=Th.next();!of.done;of=Th.next()){var gh=of.value;g.U(gh,jT)&&(a.w1=g.U(gh,jT));var hh=g.U(gh,ZSa),Gi=void 0;if(null==(Gi=hh)?0:Gi.entityKeys)a.uy=hh.entityKeys||[],hh.visibleOnLoadKeys&&(a.visibleOnLoadKeys=hh.visibleOnLoadKeys)}if(a.L("web_key_moments_markers")){var De=g.kT.getState().entities,ef=g.IO("visibility_override","markersVisibilityOverrideEntity");
var Jd=KO(De,"markersVisibilityOverrideEntity",ef);a.Fe=(null==Jd?void 0:Jd.videoId)===(a.videoId||df)&&(null==Jd?0:Jd.visibilityOverrideMarkersKey)?Jd.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.pa(a.Fe))}}};
RSa=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
$Sa=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
nT=function(a){var b=a.Y;a.L("html5_gapless_unlimit_format_selection")&&lT(a)&&(b=!1);var c=!!a.j&&a.j.yc,d=a.Ha,e=a.gP(),f=mT(a),h=a.gM,l=b,m=a.isOtf();b=a.EM();var n=a.tb,p=a.Yf,q=aTa(a),r=new ZPa(d);if(d.Dc()||d.L("html5_logging_format_selection"))r.B=!0;r.Xa=f;r.Ma=h&&d.K;r.Yf=p;g.bC("windows nt 5.1")&&!g.uR&&(r.jo=!0);if(f=e)f=g.oS(d)?gRa(d):!1;f&&(r.Ca=!0);l&&(r.jo=!0,r.Lc=!0);m&&!d.L("html5_otf_prefer_vp9")&&(r.jo=!0);"picasaweb"===d.playerStyle&&(m&&(r.jo=!1),r.Ia=!1);n&&(r.jo=!0);HP(d.G,
IP.CHANNELS)&&(d.L("html5_enable_aac51")&&(r.va=!0),d.L("html5_enable_ac3")&&(r.D=!0),d.L("html5_enable_eac3")&&(r.G=!0),d.L("html5_enable_ac3_gapless")&&(r.Na=!0));d.L("html5_block_8k_hfr")&&(r.Za=!0);r.K=g.lJ(d.experiments,"html5_max_selectable_quality_ordinal");r.N=g.lJ(d.experiments,"html5_min_selectable_quality_ordinal");SR&&(r.jc=480);if(c||e)r.Ia=!1;r.ib=!1;r.disableAv1=q;c=aQa(d,r.j,void 0,r.disableAv1);0<c&&2160>c&&(jL()||d.L("html5_format_hybridization"))&&(r.j.supportsChangeType=+jL(),
r.tj=c);2160<=c&&(r.Ea=!0);aNa()&&(r.j.serveVp9OverAv1IfHigherRes=0,r.Jc=!1);r.EM=b;r.Wa=g.GD||Epa()&&!b?!1:!0;r.Y=d.L("html5_format_hybridization");r.Nb=d.L("html5_disable_encrypted_vp9_live_non_2k_4k");eC()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(r.D=!0,r.G=!0);a.Y&&a.isAd()&&(a.Qr&&(r.ma=a.Qr),a.zr&&(r.C=a.zr));r.Ra=a.isLivePlayback&&a.Bj()&&a.Ha.L("html5_drm_live_audio_51");
r.ub=a.XB;return a.Pe=r};
aTa=function(a){return a.Ha.L("html5_disable_av1")||a.L("html5_gapless_shorts_disable_av1")&&lT(a)?!0:!1};
cTa=function(a){SH("drm_pb_s",void 0,a.Na);a.Xa||a.j&&DP(a.j);var b={};a.j&&(b=jNa(a.Mx,nT(a),a.Ha.G,a.j,function(c){return a.ra("ctmp","fmtflt",c)},!0,new Set));
b=new vR(b,a.Ha,a.TU,a.useCobaltWidevine?eC()?bTa(a):!1:!1,function(c,d){a.qa(c,d)});
g.N(a,b);a.Vm=!1;a.loading=!0;gQa(b,function(c){SH("drm_pb_f",void 0,a.Na);for(var d=g.u(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Xa=a.Xa;e.ly=a.ly;e.jy=a.jy;break;case "widevine":e.Nl=a.Nl}a.Oo=c;if(0<a.Oo.length&&(a.K=a.Oo[0],a.Ha.Dc())){c={};d=g.u(Object.entries(a.K.j));for(e=d.next();!e.done;e=d.next()){var f=g.u(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.qa("drmProbe",c)}ZS(a)})};
MSa=function(a,b){if(0===b.length||bT(a))return null;cT(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(YPa=!0);var c=a.qe;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.ye,h=a.Ha,l=HPa(b);if(e||f){h=new bR("",h.experiments,!0);h.B=!f;h.yc=!0;h.isManifestless=!0;h.isLive=!f;h.ye=f;b=g.u(b);for(d=b.next();!d.done;d=b.next()){var m=d.value;d=cR(m,c);e=OP(m);e=dR(e.RC||m.url||"",e.ZF,e.s);(l=e.get("id"))&&l.includes("%7E")&&(h.Z=!0);l=Number(m.targetDurationSec||5);m=Number(m.maxDvrDurationSec||14400);
var n=Number(e.get("mindsq")||e.get("min_sq")||"0"),p=Number(e.get("maxdsq")||e.get("max_sq")||"0")||Infinity;h.qf=h.qf||n;h.Ji=h.Ji||p;var q=!XK(d.mimeType);e&&aR(h,new TQ(e,d,{Mj:l,dn:q,xq:m,qf:n,Ji:p,qA:300,ye:f}))}c=h}else if("FORMAT_STREAM_TYPE_OTF"===l){d=void 0===d?0:d;f=new bR("",h.experiments,!1);f.duration=d||0;h=g.u(b);for(b=h.next();!b.done;b=h.next())b=b.value,d=cR(b,c,f.duration),e=OP(b),(e=dR(e.RC||b.url||"",e.ZF,e.s))&&("FORMAT_STREAM_TYPE_OTF"===d.streamType?aR(f,new UQ(e,d,"sq/0")):
aR(f,new ZQ(e,d,zQ(b.initRange),zQ(b.indexRange))));f.isOtf=!0;c=f}else{d=void 0===d?0:d;f=new bR("",h.experiments,!1);f.duration=d||0;h=g.u(b);for(b=h.next();!b.done;b=h.next())l=b.value,b=cR(l,c,f.duration),d=zQ(l.initRange),e=zQ(l.indexRange),m=OP(l),(l=dR(m.RC||l.url||"",m.ZF,m.s))&&aR(f,new ZQ(l,b,d,e));c=f}f=a.isLivePlayback&&!a.ye&&!a.fb&&!a.isPremiere;a.L("html5_live_head_playable")&&(!eT(a)&&f&&a.qa("missingLiveHeadPlayable",{}),"yt"===a.Ha.va&&(c.Wa=!0));c.Ra=fT(a);return c};
bT=function(a){return eC()?!bTa(a):fC()?!(!a.Xa||!a.L("html5_enable_safari_fairplay")):!1};
bTa=function(a){return a.L("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
g.ISa=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.sL.set(c.cueRangeSetIdentifier,null!=(d=c.playerCueRanges)?d:[])}};
gT=function(a){return!(!a.j||!a.j.isManifestless)};
oT=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=gR(a.j)};
KSa=function(a){return eC()&&bTa(a)?!1:bT(a)&&g.wJ(a.Ha)&&!a.isLivePlayback||!BR()||a.WB?!0:!1};
eTa=function(a){a.loading=!0;a.Vi=!1;if(LSa(a))g.hSa(a.videoId).then(function(c){dTa(a,c)}).then(function(){ZS(a)});
else{QJ(a.Yc)||g.uF(new g.QC("DASH MPD Origin invalid: ",a.Yc));var b=a.Yc;b=g.an(b,{mpd_version:g.lJ(a.Ha.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.an(b,{pacing:0}));PPa(b,a.Ha.experiments,a.isLivePlayback).then(function(c){a.isDisposed()||(NSa(a,c,!0),SH("mrc",void 0,a.Na),ZS(a))},function(c){a.isDisposed()||(a.loading=!1,a.ra("dataloaderror",new BK("manifest.net.retryexhausted",{backend:"manifest",
rc:c.status},1)))});
SH("mrs",void 0,a.Na)}};
dTa=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={Ks:void 0},f=e.next())h.Ks=f.value,c.includes(h.Ks.itag)&&(h.Ks=Object.assign({},h.Ks),h.Ks.url=b.find(function(l){return function(m){return m.itag===l.Ks.itag}}(h)).url,h.Ks.signatureCipher="",d.push(h.Ks));
b=MSa(a,d);NSa(a,b);a.qa("dlr",{})}else a.qa("offsdm",{cotn:a.SN?a.SN.cotn:"0",cpn:a.clientPlaybackNonce})};
pT=function(a){if(!a.isProximaLatencyEligible)return!1;var b=SMa();return null!=b?1===b:a.L("html5_enable_proxima")};
ZS=function(a){a.isDisposed()||(a.loading=!1,a.ra("dataloaded"))};
NSa=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.N(a,b);b.qf=a.qf;b.Ji=a.Ji;b.Za=a.Za;b.Ob=a.Ob;b.jc=a.jc;a.By&&(b.Na=new MQ(a.By));(a.gP()||g.qT(a))&&a.Ia.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.Il=Number(d[d.indexOf("manifest_duration")+1]));b.B&&(b.subscribe("clienttemp",a.qa,a),c?b.subscribe("refresh",a.qZ,a):b.subscribe("cuepointsadded",a.SV,a));DP(b)?a.Vm=!0:wR=void 0;a.fb&&(b.C=a.fb,b.isLive=!0,a.isLivePlayback=!0);b.isPremiere=
a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable};
jTa=function(a,b){if(a.isDisposed())return WB();a.C=null;a.ib=null;a.rd=null;cT(a,"html5_high_res_logging_always")&&(a.Ha.Yf=!0);return fTa(a,b).then(void 0,function(){return gTa(a,b)}).then(void 0,function(){return hTa(a)}).then(void 0,function(){return iTa(a)})};
fTa=function(a,b){var c=b||KSa(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.qa("skipDash",{dm:!!a.j,air:b,dd:a.WB,mss:BR(),"3pp":a.isExternallyHostedPodcast}),WB();mT(a)&&UPa(a.j,a.isLivePlayback);cT(a,"html5_enable_cobalt_experimental_vp9_decoder")&&xQa(a.Ha.G);return XB().then(function(){return lNa(a.Mx,nT(a),a.Ha.G,a.j,a.K,function(d){return a.ra("ctmp","fmtflt",d)},a.qP,fT(a)&&a.L("html5_enable_server_format_filter")).then(function(d){kTa(a,d);
a.Mx.j=null;/^av/.test(a.clientPlaybackNonce)&&a.Pe&&a.qa("av1",a.Pe.j)})})};
gTa=function(a,b){if(b&&a.hlsvp)return WB();if(a.hlsFormats){b=dT(a.hlsFormats);var c;if((null==(c=a.Pe)?0:c.B)&&b){c=[];for(var d=g.u(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.qa("hlsfmt",{itags:c.join(".")})}a.py=sRa(a.Ha,b);c=a.clientPlaybackNonce;var f,h,l,m;return xRa(a.Ha,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.Kd,c,function(n){return a.ra("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],r=g.u(n),t=r.next();!t.done;t=r.next()){t=t.value;
var v=void 0;q.push(null==(v=t.Ph())?void 0:v.itag);var x=v=void 0;(null==(v=t.Ph())?void 0:null==(x=v.audio)?void 0:x.numChannels)>p&&(p=t.Ph().audio.numChannels)}2<p&&a.qa("hlschl",{mn:p});var A;(null==(A=a.Pe)?0:A.B)&&a.qa("hlsfmtaf",{itags:q.join(".")});var E;if(a.L("html5_enable_vp9_fairplay")&&(null==(E=a.K)?0:sR(E)))for(a.qa("drm",{sbdlfbk:1}),p=g.u(a.Oo),q=p.next();!q.done;q=p.next())if(q=q.value,rR(q)){a.K=q;break}rT(a,n)})}return WB()};
hTa=function(a){if(a.isExternallyHostedPodcast&&a.Xf){var b=dT(a.Xf);if(!b[0])return WB();a.Jba=b[0];return ARa(a.Ha,b[0]).then(function(c){rT(a,c)})}return a.Ml&&a.x0?zRa(a.Ha,a.isAd(),a.Ml).then(function(c){rT(a,c)}):WB()};
iTa=function(a){if(a.isExternallyHostedPodcast)return WB();var b=dT(a.Xf,a.sC);if(a.hlsvp){var c=sSa(a.hlsvp,a.clientPlaybackNonce,a.Kd);b.push(c)}return yRa(a.Ha,a.isAd(),b,lTa(a)).then(function(d){rT(a,d)})};
kTa=function(a,b){a.C=b;if(a.C){b=g.u(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;0!==d&&(a.iV[d]=c.id)}}mTa(a);if(a.K&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=UK(a.C.videoInfos[0]),b!=("fairplay"==a.K.flavor)))for(c=g.u(a.Oo),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.K=d;break}};
rT=function(a,b){a.rd=b;kTa(a,new zP(g.Er(a.rd,function(c){return c.Ph()})))};
lTa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Ha.j.c,cver:a.Ha.j.cver};a.vy&&(b.ptk=a.vy,b.oid=a.E1,b.ptchn=a.C1,b.pltype=a.QS,a.Ox&&(b.m=a.Ox));return b};
g.sT=function(a){return bT(a)&&a.Xa?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.qe||null};
nTa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.YF(b.text):a.paidContentOverlayText};
oTa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?jf(b.durationMs):a.paidContentOverlayDurationMs};
tT=function(a){var b="";if(a.EC)return a.EC;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.fb?"window":"live");a.ye&&(b="post");return b};
g.uT=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
pTa=function(a){return!!a.yj||!!a.aQ||!!a.yy||!!a.zy||a.PX||a.N.focEnabled||a.N.rmktEnabled};
g.vT=function(a){return!!(a.Yc||a.Xf||a.Ml||a.hlsvp||a.Mv())};
YS=function(a){if(a.L("html5_onesie")&&a.errorCode)return!1;var b=g.Fb(a.Ia,"ypc");a.ypcPreview&&(b=!1);return a.Ke()&&!a.loading&&(g.vT(a)||g.Fb(a.Ia,"heartbeat")||b)};
dT=function(a,b){a=Qoa(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};
mTa=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.zl);for(var c=0;c<a.SB.length;c++)for(var d=a.SB[c],e=0;e<b.length;e++){var f=b[e],h=f.uc.id==d.audioTrackId;if(f.uc.isDefault&&c==a.gV||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.C=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.j=a.captionTracks[d.forcedCaptionTrackIndex]);
f.B=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}};
SSa=function(a,b){a.showShareButton=!!b;var c,d,e=(null==(c=g.U(b,g.JM))?void 0:c.navigationEndpoint)||(null==(d=g.U(b,g.JM))?void 0:d.command);e&&(a.So=!!g.U(e,qTa))};
uSa=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.Ai=c);if(a.Ai){a.embeddedPlayerConfig=a.Ai.embeddedPlayerConfig||null;if(c=a.Ai.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.Ai.embedPreview){c=c.thumbnailPreviewRenderer;TRa(a,c.controlBgHtml);if(d=c.defaultThumbnail)a.Z=
DS(d);a.L("embeds_web_enable_search_button")&&c.searchButton&&(d=g.U(c.searchButton,g.JM))&&(a.t9=g.U(d.navigationEndpoint,g.wT));(d=g.U(null==c?void 0:c.videoDetails,rTa))&&WSa(a,b,d);d=g.U(null==c?void 0:c.videoDetails,sTa);a.Ee=!!c.addToWatchLaterButton;SSa(a,c.shareButton);if(null==d?0:d.musicVideoType)a.musicVideoType=d.musicVideoType;var e,f,h,l,m;if(d=g.U(null==(e=a.getEmbeddedPlayerResponse())?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.hT))ERa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=jf(c.videoDurationSeconds));c.webPlayerActionsPorting&&SRa(a,c.webPlayerActionsPorting);if(e=g.U(null==c?void 0:c.playlist,tTa)){a.Om=!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.YF(c.shortBylineText):"";var n=c.title?g.YF(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.Of:!1,dni_color:l===h?a.tp:""})}b={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:f};e.titleText&&(b.title=g.YF(e.titleText));e.shortBylineText&&(b.author=g.YF(e.shortBylineText));a.EV=b}var p,q,r;if(b=g.U(null==(p=a.getEmbeddedPlayerResponse())?void 0:null==(q=p.embedPreview)?void 0:null==(r=q.thumbnailPreviewRenderer)?
void 0:r.infoPanel,USa)){a.uC=Number(null==b?void 0:b.durationMs)||NaN;if(null==b?0:b.infoPanelOverviewViewModel)a.Ff=null==b?void 0:b.infoPanelOverviewViewModel;if(null==b?0:b.infoPanelDetailsViewModel)a.Hl=null==b?void 0:b.infoPanelDetailsViewModel}}if(a.Ai.previewPlayabilityStatus){if(a.wy=a.Ai.previewPlayabilityStatus,p=a.wy,!["OK","LIVE_STREAM_OFFLINE"].includes(p.status)){a.errorCode=CRa(p.errorCode);q=p.errorScreen;if(r=null==q?void 0:q.playerErrorMessageRenderer){a.oC=r;if(b=r.reason)a.errorReason=
g.YF(b);if(r=r.subreason)a.qn=g.YF(r)}else a.errorReason=p.reason||null;switch(p.status){case "LOGIN_REQUIRED":a.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":a.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var t;(null==q?0:null==(t=q.playerKavRenderer)?0:t.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=p.isBlockedInRestrictedMode?"5":"0"}}}else a.Ai.playabilityStatus&&(a.Sm=a.Ai.playabilityStatus,uTa(a)&&(a.errorDetail="0",a.Sm&&((t=a.Sm.embeddedPlayerErrorMessageRenderer)?
a.oC=g.U(t,vTa):a.errorReason=a.Sm.reason||null)));(t=a.Ai.attestation)&&NRa(a,t);(t=a.Ai.permissions)&&t.allowImaMonetization&&(a.allowImaMonetization=!0);t&&t.allowPfpUnbranded&&(a.allowPfpUnbranded=!0)}};
WSa=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.U(null==(e=g.U(null==c?void 0:c.channelThumbnailEndpoint,wTa))?void 0:e.urlEndpoint,g.pG))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.U(e,xTa)){if(d=e.title)b.title=g.YF(d);if(e=e.subtitle)b.subtitle=g.YF(e)}if(c=c.expandedRenderer)if(c=g.U(c,yTa)){if(e=c.title)b.expanded_title=g.YF(e);if(e=c.subtitle)b.expanded_subtitle=g.YF(e);if(c=c.subscribeButton)a.subscribeButtonRenderer=
g.U(c,g.xT),a.subscribeButtonRenderer&&(b.ucid=a.subscribeButtonRenderer.channelId,b.subscribed=a.subscribeButtonRenderer.subscribed,a.Ll=!!a.subscribeButtonRenderer.notificationPreferenceToggleButton,a.subscribeButtonRenderer.notificationPreferenceToggleButton&&a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.zL=b.toggledServiceEndpoint||null,a.yL=b.defaultServiceEndpoint||
null):(a.zL=b.defaultServiceEndpoint||null,a.yL=b.toggledServiceEndpoint||null)))}};
g.yT=function(a){return eT(a)&&!a.allowLiveDvr};
zT=function(a){return eT(a)&&a.allowLiveDvr};
eT=function(a){return a.L("html5_live_head_playable")&&gT(a)&&"yt"===a.Ha.va?a.isLiveHeadPlayable:a.isLivePlayback};
g.AT=function(a){return!!a.j&&vPa(a.j)};
g.BT=function(a){return!!a.j&&wPa(a.j)};
g.CT=function(a){return!!a.j&&xPa(a.j)};
g.qT=function(a){return!!a.j&&yPa(a.j)};
g.zTa=function(a){if(a.vL)return null;var b=a.O0;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.ATa=function(a){return a.vL?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.DT=function(a){return a.L("enable_wn_infocards")};
g.ET=function(a){var b,c,d,e;return(g.DT(a)?null==(b=a.Ra)?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.BTa=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};
FT=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.Ha.Ma};
g.GT=function(a){return"shortspage"===FT(a)};
lT=function(a){return a.Nn()&&a.U().supportsGaplessShorts()};
HT=function(a){if(a.isAd()&&a.videoId!=a.Ha.Ff)return a.Ha.Ff};
IT=function(a){return a.bl||"detailpage"==FT(a)||"shortspage"==FT(a)||a.mutedAutoplay};
CTa=function(a){var b=a.L("enable_cleanup_masthead_autoplay_hack_fix");return b&&"adunit"==FT(a)?a.Wp:IT(a)?"detailpage"==FT(a)||"shortspage"==FT(a)?a.isAutonav||0<a.Vb:b||"17_8"!==a.adFormat||a.isAutonav||g.mS(a.Ha)||a.Wp?a.Zf?!1:a.Ha.Ui||a.Ha.Vi||!g.UR(a.Ha)?!b&&"adunit"==FT(a)&&a.yj?!1:!0:!1:!1:(a.Zf?0:a.Yg)&&g.UR(a.Ha)?!0:!1};
g.JT=function(a){return a.oauthToken||a.Ha.fk};
DTa=function(a){var b=1,c=g.lJ(a.Ha.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;c=Infinity;if(a.L("html5_combine_format_loudness_and_video_target_loudness"))if(c=(null==(d=a.D)?void 0:d.audio.B)||a.lW){var e;d=c-(null!=(e=a.loudnessTargetLkfs)?e:0)}else d=a.Vf;else{var f;d=(null==(f=a.D)?void 0:f.audio.C)||a.Vf}if(a.L("html5_stateful_audio_normalization")){if(!isFinite(c))return b;c=Math.max(c,a.minimumLoudnessTargetLkfs);a.applyStatefulNormalization?(Date.now()-a.Ha.Dl>1E3*a.maxStatefulTimeThresholdSec&&
(a.Ha.zl=Infinity,a.Ha.Dl=Infinity),e=Math.min(a.loudnessTargetLkfs,a.Ha.zl)):e=Math.min(a.loudnessTargetLkfs,c);e=Math.min(e-c,0);a.preserveStatefulLoudnessTarget&&(a.Ha.zl=c+e,a=a.Ha,c=Date.now(),a.Dl=c);return Math.min(1,Math.pow(10,e/20))||b}return Math.min(1,Math.pow(10,-d/20))||b};
mT=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===g.yR(a.Ha)&&"MUSIC"===a.Ha.j.ctheme;a.lk||!g.$G(a.Ha)&&!c||!b.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.lk=!0);if(b=g.dC())b=/Starboard\/([0-9]+)/.exec(g.pc()),b=10>(b?parseInt(b[1],10):NaN);c=a.Ha;c=("TVHTML5_CAST"===g.yR(c)||"TVHTML5"===g.yR(c)&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&"MUSIC"===a.Ha.j.ctheme;var d;if(d=!a.lk)c||(c=a.Ha,c=
"TVHTML5"===g.yR(c)&&c.j.cver.startsWith("7")),d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.L("cast_prefer_audio_only_for_atv_and_uploads")||a.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c||a.isExternallyHostedPodcast)&&(a.lk=!0);return a.Ha.deviceIsAudioOnly||a.lk&&a.Ha.K};
KT=function(a){var b,c,d;return a.isDaiEnabled()&&!!(null==(b=a.playerResponse)?0:null==(c=b.playerConfig)?0:null==(d=c.daiConfig)?0:d.ssaEnabledPlayback)};
ETa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
LT=function(a){return!(!a.Qm||!a.Ha.K)&&a.Mv()};
FTa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
fT=function(a){if(a.oX||a.cotn||!a.j||a.j.isOtf)return!1;if(a.L("html5_use_sabr_requests_for_debugging"))return!0;var b=!a.j.yc&&!a.Bj(),c=b&&zR&&a.L("html5_enable_sabr_vod_streaming_xhr");b=b&&!zR&&a.L("html5_enable_sabr_vod_non_streaming_xhr");var d=MT(a),e;if(e=a.L("html5_enable_sabr_drm_vod_streaming_xhr")&&a.Bj()&&!a.j.yc&&zR)e=a.Rm,e="1"===e?!1:"6"===e||"4"===e?!1:!0;(c=c||b||d||e)&&!a.By&&a.qa("sabr",{loc:"m"},!0);return c&&!!a.By};
MT=function(a){if(a.enableServerStitchedDai)return!1;var b=a.yc()&&!a.Bj(),c=b&&zR;b=b&&!zR&&a.L("html5_enable_sabr_live_non_streaming_xhr");var d=a.yc()&&"ULTRALOW"!==a.latencyClass&&!a.isLowLatencyLiveStream&&a.L("html5_sabr_live_normal_latency_streaming_xhr"),e=a.isLowLatencyLiveStream&&a.L("html5_sabr_live_low_latency_streaming_xhr");a="ULTRALOW"===a.latencyClass&&a.L("html5_sabr_live_ultra_low_latency_streaming_xhr");return c&&(d||e||a)||b};
g.NT=function(a){return a.QV&&fT(a)};
LSa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.LS(b);return b&&!a.Qm};
g.OT=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j;return!!b[a.B.id]&&MP(b[a.B.id].resource.j)&&!!b[a.D.id]&&MP(b[a.D.id].resource.j)};
GTa=function(a){return a.wy?["OK","LIVE_STREAM_OFFLINE"].includes(a.wy.status):!0};
uTa=function(a){return(a=a.Sm)&&a.showError?a.showError:!1};
cT=function(a,b){return a.L(b)?!0:(a.fflags||"").includes(b+"=true")};
DSa=function(a){return a.L("html5_heartbeat_iff_heartbeat_params_filled")};
HTa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
BSa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.zy=new ZRa(b));if(b=b.video_masthead_ad_quartile_urls)a.aQ=b.quartile_0_url,a.bT=b.quartile_25_url,a.cT=b.quartile_50_url,a.dT=b.quartile_75_url,a.WS=b.quartile_100_url,a.yy=b.quartile_0_urls,a.yS=b.quartile_25_urls,a.NS=b.quartile_50_urls,a.OS=b.quartile_75_urls,a.hR=b.quartile_100_urls};
ASa=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};
xSa=function(a){if(a){if(VAa(a))return a;a=WAa(a);if(VAa(a,!0))return a}return""};
g.ITa=function(a){return a.captionsLanguagePreference||a.Ha.captionsLanguagePreference||g.uT(a,"yt:cc_default_lang")||a.Ha.wj};
PT=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
g.iT=function(a){var b;return a.Jx||(null==(b=a.suggestions)?void 0:b[0])||null};
JTa=function(a){var b={isSabr:fT(a)},c;if(a=null==(c=a.getHeartbeatResponse())?void 0:c.adBreakHeartbeatParams)b.adBreakHeartbeatParams=a;return b};
g.QT=function(a){return a.L("embeds_web_disable_pfp_unbranded_livestream")&&a.isLivePlayback?!1:a.L("embeds_web_enable_pfp_unbranded_flag")?a.Ha.Kl&&a.allowPfpUnbranded:a.Of&&a.Ha.Kl};
g.RT=function(a){var b=a.U(),c=g.KTa(b),d=a.va;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=FT(a);"leanback"===f?e="WATCH":b.L("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.tb?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.Wm)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:LTa[e]}});a.Fy&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.ma)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.wj&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=MTa[b];c.request=d;d=c.user||{};if(b=a.Ca)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.ub)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.KTa=function(a){var b=g.gH(),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.L("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.rd)b.thirdParty={embedUrl:a};return b};
RTa=function(a,b,c){var d=a.videoId,e=g.RT(a),f=a.U(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(JE()),referer:document.location.toString(),signatureTimestamp:19788};g.NC();a.isAutonav&&(h.autonav=!0);g.OC(0,141)&&(h.autonavState=g.OC(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.OC(0,66);CTa(a)&&(h.autoplay=!0);f.K&&a.cycToken&&(h.cycToken=a.cycToken);f.enablePrivacyFilter&&(h.enablePrivacyFilter=!0);a.isFling&&(h.fling=!0);var l=a.forceAdsUrl;if(l){var m={},n=[];l=
l.split(",");l=g.u(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.u(q);for(var r=q.next();!r.done;r=q.next()){var t=g.u(r.value.split("="));r=t.next().value;t=eaa(t);p[r]=t.join("=")}q=p.url;r=p.presetad;t=p.viralresponseurl;var v=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),r&&(m.presetAd=r),t&&(m.viralAdResponseUrl=t),v&&(m.viralCampaignId=
String(v));else if("video_ad"===p.adtype){var x={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=NTa[p.breaktype])x.breakType=p;q&&(x.url=q);r&&(x.presetAd=r);t&&(x.viralAdResponseUrl=t);v&&(x.viralCampaignId=String(v));n.push(x)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.rM;if(null!=m){m={startWalltime:String(m)};if(n=a.Il)m.manifestDuration=String(n||14400);
h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.Zf?0:a.Yg)h.splay=!0;m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.hv)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.rl){n=a.PS;l=[];p=g.u(p.split(","));for(q=p.next();!q.done;q=p.next())if(r=q.value)if((q=r.startsWith("!"))&&(r=r.substr(1)),r=r.split("-"),!(3>r.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:OTa[r[1]]||"UNKNOWN_FORM_FACTOR",clientName:PTa[r[0]]||"UNKNOWN_INTERFACE",
clientVersion:r[2]||"",platform:QTa[r[1]]||"UNKNOWN_PLATFORM"};r={};if(n){t=void 0;try{t=JSON.parse(n)}catch(A){g.uF(A)}t&&(r={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(r.advertisingId=t.advertising_id),void 0!==t.limit_ad_tracking&&null!==t.limit_ad_tracking&&(r.limitAdTracking=t.limit_ad_tracking),q.osName=t.os_name,q.userAgent=t.user_agent,q.windowHeightPoints=t.window_height_points,q.windowWidthPoints=t.window_width_points)}l.push({adSignalsInfo:r,remoteClient:q})}m.remoteContexts=l}n=
a.sourceContainerPlaylistId;l=a.serializedMdxMetadata;if(n||l)p={},n&&(p.mdxPlaybackContainerInfo={sourceContainerPlaylistId:n}),l&&(p.serializedMdxMetadata=l),m.mdxPlaybackSourceContext=p;h.mdxContext=m;m=b.width;0<m&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.UR(f)&&h&&(h.ancestorOrigins=f.ancestorOrigins);a.defaultActiveSourceVideoId&&(h.compositeVideoContext={defaultActiveSourceVideoId:a.defaultActiveSourceVideoId});
if(f=f.getWebPlayerContextConfig())h.encryptedHostFlags=f.encryptedHostFlags;d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);e=a.U();if(h=e.embedConfig)d.serializedThirdPartyEmbedConfig=h;d.captionParams={};h=g.OC(g.NC(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.kS(e)&&
(d.captionParams.deviceCaptionsOn=null!=h?!h:!1);a.jV&&(d.captionParams.deviceCaptionsLangPref=a.jV);a.BL.length?d.captionParams.viewerSelectedCaptionLangs=a.BL:g.kS(e)&&(h=g.bNa(),null==h?0:h.length)&&(d.captionParams.viewerSelectedCaptionLangs=h);h="onesie"===a.fetchType&&a.L("html5_onesie_attach_po_token");f="onesie"!==a.fetchType&&a.L("html5_non_onesie_attach_po_token");if(h||f)a=a.U(),a.rg&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.rg);e.L("fetch_att_independently")&&
(d.attestationRequest={omitBotguardData:!0});return d};
TTa=function(a,b){var c,d,e;return g.H(function(f){if(1==f.j)return c={context:g.KTa(a.U()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.iH(STa),g.z(f,g.WH(b,c,d),2);e=f.B;return f.return(e)})};
UTa=function(a,b,c){JMa(g.lJ(b.experiments,"bg_vm_reinit_threshold"))&&TTa(a,c).then(function(d){d&&(d=d.botguardData)&&g.RMa(d,b)},function(d){a.isDisposed()||(d=DK(d),a.qa("attf",d.details))})};
ST=function(a,b){g.I.call(this);this.app=a;this.state=b};
UT=function(a,b,c){a.state.Y[b]=function(){return c.apply(a,g.Ia.apply(0,arguments))};
a.state.B.hasOwnProperty(b)||TT(a,b,c);a.state.Z.add(b)};
VT=function(a,b,c){a.state.ma[b]=function(){return c.apply(a,g.Ia.apply(0,arguments))};
a.state.B.hasOwnProperty(b)||TT(a,b,c);a.state.Z.add(b)};
TT=function(a,b,c){a.state.B[b]=function(){return c.apply(a,g.Ia.apply(0,arguments))}};
g.WT=function(a,b,c){return a.state.B[b].apply(a.state.B,g.pa(c))};
XT=function(){g.zv.call(this);this.G=new Map};
VTa=function(){g.I.apply(this,arguments);this.element=null;this.Z=new Set;this.Y={};this.ma={};this.B={};this.K={};this.G=void 0;this.va=new Set;this.C=new XT;this.j=new XT;this.D=new XT;this.N=new XT};
WTa=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 ZT(a)};
ZT=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.u(XTa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
YTa=function(a,b,c,d){if(g.bb(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};
$T=function(a,b,c){ST.call(this,a,b);this.playerType=c};
$Ta=function(a){UT(a,"cueVideoById",a.e6);UT(a,"loadVideoById",a.J8);UT(a,"cueVideoByUrl",a.i6);UT(a,"loadVideoByUrl",a.M8);UT(a,"playVideo",a.qba);UT(a,"pauseVideo",a.pauseVideo);UT(a,"stopVideo",a.Nca);UT(a,"clearVideo",a.clearVideo);UT(a,"getVideoBytesLoaded",a.r7);UT(a,"getVideoBytesTotal",a.s7);UT(a,"getVideoLoadedFraction",a.mX);UT(a,"getVideoStartBytes",a.v7);UT(a,"cuePlaylist",a.cuePlaylist);UT(a,"loadPlaylist",a.I8);UT(a,"nextVideo",a.o9);UT(a,"previousVideo",a.Dba);UT(a,"playVideoAt",a.pba);
UT(a,"setShuffle",a.setShuffle);UT(a,"setLoop",a.setLoop);UT(a,"getPlaylist",a.o7);UT(a,"getPlaylistIndex",a.getPlaylistIndex);UT(a,"getPlaylistId",a.getPlaylistId);UT(a,"loadModule",a.BY);UT(a,"unloadModule",a.S0);UT(a,"setOption",a.OR);UT(a,"getOption",a.j7);UT(a,"getOptions",a.oO);UT(a,"mute",a.n9);UT(a,"unMute",a.nda);UT(a,"isMuted",a.isMuted);UT(a,"setVolume",a.Cca);UT(a,"getVolume",a.getVolume);UT(a,"seekTo",a.pca);UT(a,"getPlayerMode",a.getPlayerMode);UT(a,"getPlayerState",a.m7);UT(a,"getAvailablePlaybackRates",
a.getAvailablePlaybackRates);UT(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
UT(a,"setPlaybackQuality",a.xca);UT(a,"getAvailableQualityLevels",a.W6);UT(a,"getCurrentTime",a.Z6);UT(a,"getDuration",a.d7);UT(a,"addEventListener",a.w5);UT(a,"removeEventListener",a.Tba);UT(a,"getDebugText",a.b7);UT(a,"getVideoData",function(){return ZTa(a)});
UT(a,"addCueRange",a.s5);UT(a,"removeCueRange",a.removeCueRange);UT(a,"setSize",a.setSize);UT(a,"getApiInterface",a.getApiInterface);UT(a,"destroy",a.destroy);UT(a,"mutedAutoplay",a.mutedAutoplay);var b=a.app.U();b.N||(UT(a,"getVideoEmbedCode",a.getVideoEmbedCode),UT(a,"getVideoUrl",a.x7));UT(a,"getMediaReferenceTime",a.i7);UT(a,"getSize",a.getSize);b.L("embeds_web_enable_set_faux_fullscreen_in_public_api")&&UT(a,"setFauxFullscreen",a.uca);b.N||UT(a,"logImaAdEvent",a.logImaAdEvent);UT(a,"preloadVideoById",
a.zba)};
aUa=function(a){var b=g.cS(a.app.U()),c,d=null==(c=a.app.getVideoData())?void 0:c.Om;a=g.aU(a.app);return g.qC(b)&&!d||a?!1:!0};
ZTa=function(a,b){var c={};if(b=g.bU(a.app,void 0===b?1:b)){b=b.getVideoData();if(b.isPrivate)return{};c.video_id=b.videoId;c.author=b.author;c.title=b.title;c.isPlayable=GTa(b);c.errorCode=b.errorCode;if(b.B&&b.B.video){c.video_quality=b.B.video.quality;b=b.B.video;var d=[];32<b.fps&&d.push("hfr");b.isHdr()&&d.push("hdr");"bt2020"===b.primaries&&d.push("wcg");c.video_quality_features=d}}if(a=a.getPlaylistId())c.list=a;return c};
bUa=function(a,b,c){$T.call(this,a,b,c)};
eUa=function(a,b){var c={};if(a.app.U().ma){a=g.u(cUa);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(dUa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
g.cU=function(a){return(a=fUa(a.app.Bb()))?a.Di():null};
gUa=function(a,b,c){var d=a.app.jf(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
iUa=function(a){var b=void 0===b?5:b;return a?hUa[a]||b:b};
g.dU=function(a,b,c,d){$T.call(this,a,b,d);c&&(jUa(this),a.U().K&&(VT(this,"addEventListener",this.x5),VT(this,"removeEventListener",this.Uba),VT(this,"cueVideoByPlayerVars",this.g6),VT(this,"loadVideoByPlayerVars",this.L8),VT(this,"preloadVideoByPlayerVars",this.Bba),VT(this,"loadVideoById",this.DY),VT(this,"loadVideoByUrl",this.EY),VT(this,"playVideo",this.WQ),VT(this,"loadPlaylist",this.loadPlaylist),VT(this,"nextVideo",this.nextVideo),VT(this,"previousVideo",this.previousVideo),VT(this,"playVideoAt",
this.playVideoAt),VT(this,"getVideoData",this.lX),VT(this,"seekBy",this.nca),VT(this,"seekTo",this.qca),VT(this,"showControls",this.showControls),VT(this,"hideControls",this.hideControls),VT(this,"cancelPlayback",this.cancelPlayback),VT(this,"getProgressState",this.getProgressState),VT(this,"isInline",this.isInline),VT(this,"setInline",this.setInline),VT(this,"setLoopVideo",this.setLoopVideo),VT(this,"getLoopVideo",this.getLoopVideo),VT(this,"getVideoContentRect",this.getVideoContentRect),VT(this,
"getVideoStats",this.w7),VT(this,"getCurrentTime",this.a7),VT(this,"getDuration",this.e7),VT(this,"getPlayerState",this.n7),VT(this,"getVideoLoadedFraction",this.u7),VT(this,"mute",this.sJ),VT(this,"unMute",this.dL),VT(this,"setVolume",this.JK),VT(this,"loadModule",this.loadModule),VT(this,"unloadModule",this.unloadModule),VT(this,"getOption",this.getOption),VT(this,"getOptions",this.getOptions),VT(this,"setOption",this.setOption),VT(this,"addCueRange",this.addCueRange),VT(this,"getDebugText",this.getDebugText),
VT(this,"getStoryboardFormat",this.getStoryboardFormat),VT(this,"toggleFullscreen",this.toggleFullscreen),VT(this,"isFullscreen",this.isFullscreen),VT(this,"getPlayerSize",this.getPlayerSize),VT(this,"toggleSubtitles",this.toggleSubtitles),VT(this,"setCenterCrop",this.setCenterCrop),VT(this,"setFauxFullscreen",this.setFauxFullscreen),VT(this,"setSizeStyle",this.setSizeStyle),VT(this,"handleGlobalKeyDown",this.handleGlobalKeyDown),VT(this,"handleGlobalKeyUp",this.handleGlobalKeyUp),VT(this,"wakeUpControls",
this.wakeUpControls)),$Ta(this))};
jUa=function(a){TT(a,"getInternalApiInterface",a.getInternalApiInterface);TT(a,"addEventListener",a.v5);TT(a,"removeEventListener",a.Sba);TT(a,"cueVideoByPlayerVars",a.f6);TT(a,"loadVideoByPlayerVars",a.K8);TT(a,"preloadVideoByPlayerVars",a.Aba);TT(a,"getAdState",a.getAdState);TT(a,"sendAbandonmentPing",a.sendAbandonmentPing);TT(a,"setLoopRange",a.setLoopRange);TT(a,"getLoopRange",a.getLoopRange);TT(a,"setAutonavState",a.setAutonavState);TT(a,"seekTo",a.seekTo);TT(a,"seekBy",a.seekBy);TT(a,"seekToLiveHead",
a.seekToLiveHead);TT(a,"requestSeekToWallTimeSeconds",a.requestSeekToWallTimeSeconds);TT(a,"seekToStreamTime",a.seekToStreamTime);TT(a,"startSeekCsiAction",a.startSeekCsiAction);TT(a,"getStreamTimeOffset",a.getStreamTimeOffset);TT(a,"getVideoData",a.t7);TT(a,"setInlinePreview",a.setInlinePreview);TT(a,"getAppState",a.getAppState);TT(a,"updateLastActiveTime",a.updateLastActiveTime);TT(a,"setBlackout",a.setBlackout);TT(a,"setUserEngagement",a.setUserEngagement);TT(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);
TT(a,"getPresentingPlayerType",a.iI);TT(a,"canPlayType",a.canPlayType);TT(a,"updatePlaylist",a.updatePlaylist);TT(a,"updateVideoData",a.updateVideoData);TT(a,"updateEnvironmentData",a.updateEnvironmentData);TT(a,"sendVideoStatsEngageEvent",a.sca);TT(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);TT(a,"setSafetyMode",a.setSafetyMode);TT(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)});
TT(a,"getVideoAspectRatio",a.getVideoAspectRatio);TT(a,"getPreferredQuality",a.getPreferredQuality);TT(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);TT(a,"setPlaybackQualityRange",a.setPlaybackQualityRange);TT(a,"onAdUxClicked",a.onAdUxClicked);TT(a,"getFeedbackProductData",a.getFeedbackProductData);TT(a,"getStoryboardFrame",a.getStoryboardFrame);TT(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);TT(a,"getStoryboardLevel",a.getStoryboardLevel);TT(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);
TT(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);TT(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);TT(a,"addCueRange",a.addCueRange);TT(a,"addUtcCueRange",a.addUtcCueRange);TT(a,"showAirplayPicker",a.showAirplayPicker);TT(a,"dispatchReduxAction",a.dispatchReduxAction);TT(a,"getPlayerResponse",a.l7);TT(a,"getWatchNextResponse",a.y7);TT(a,"getHeartbeatResponse",a.g7);TT(a,"changeMarkerVisibility",a.changeMarkerVisibility);TT(a,"getCurrentTime",a.getCurrentTime);TT(a,"getDuration",
a.getDuration);TT(a,"getPlayerState",a.getPlayerState);TT(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);TT(a,"getProgressState",a.getProgressState);TT(a,"getVolume",a.getVolume);TT(a,"setVolume",a.JK);TT(a,"isMuted",a.isMuted);TT(a,"mute",a.sJ);TT(a,"unMute",a.dL);TT(a,"loadModule",a.loadModule);TT(a,"unloadModule",a.unloadModule);TT(a,"getOption",a.getOption);TT(a,"getOptions",a.getOptions);TT(a,"setOption",a.setOption);TT(a,"loadVideoById",a.DY);TT(a,"loadVideoByUrl",a.EY);TT(a,"playVideo",
a.WQ);TT(a,"loadPlaylist",a.loadPlaylist);TT(a,"nextVideo",a.nextVideo);TT(a,"previousVideo",a.previousVideo);TT(a,"playVideoAt",a.playVideoAt);TT(a,"getDebugText",a.getDebugText);TT(a,"getWebPlayerContextConfig",a.getWebPlayerContextConfig);TT(a,"notifyShortsAdSwipeEvent",a.notifyShortsAdSwipeEvent);TT(a,"getVideoContentRect",a.getVideoContentRect);TT(a,"setSqueezeback",a.setSqueezeback);TT(a,"setAutonav",a.setAutonav);TT(a,"isNotServable",a.isNotServable);TT(a,"channelSubscribed",a.channelSubscribed);
TT(a,"channelUnsubscribed",a.channelUnsubscribed);TT(a,"togglePictureInPicture",a.togglePictureInPicture);TT(a,"supportsGaplessAudio",a.supportsGaplessAudio);TT(a,"supportsGaplessShorts",a.supportsGaplessShorts);TT(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
TT(a,"clearQueue",a.clearQueue);TT(a,"getAudioTrack",a.S6);TT(a,"setAudioTrack",a.setAudioTrack);TT(a,"getAvailableAudioTracks",a.V6);TT(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);TT(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);TT(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);TT(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);TT(a,"setMinimized",a.setMinimized);TT(a,"setOverlayVisibility",a.setOverlayVisibility);TT(a,"confirmYpcRental",a.confirmYpcRental);
TT(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);TT(a,"isSubtitlesOn",a.isSubtitlesOn);TT(a,"queueNextVideo",a.queueNextVideo);TT(a,"handleExternalCall",a.handleExternalCall);TT(a,"logApiCall",a.logApiCall);TT(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);TT(a,"setScreenLayer",a.setScreenLayer);TT(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);TT(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);TT(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);TT(a,
"syncVolume",a.syncVolume);TT(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem);TT(a,"openSettingsMenuItem",a.openSettingsMenuItem);TT(a,"getEmbeddedPlayerResponse",a.getEmbeddedPlayerResponse);TT(a,"getVisibilityState",a.getVisibilityState);TT(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);TT(a,"setGlobalCrop",a.setGlobalCrop);TT(a,"setInternalSize",a.setInternalSize);a.app.U().L("embeds_web_enable_set_faux_fullscreen_in_public_api")&&TT(a,"setFauxFullscreen",a.setFauxFullscreen)};
lUa=function(a){a.state.G||(a.state.G={addEventListener:function(b,c){kUa(a,b,c)},
removeEventListener:function(b,c){c="string"===typeof c?b+c:b+String(g.fb(c));var d=a.state.K[c];d&&(a.state.j.unsubscribe(b,d),delete a.state.K[c])}});
return a.state.G};
kUa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.fb(c));if(!a.state.K[d]){var e=function(f){c({target:a.state.G,data:f})};
a.state.K[d]=e;a.state.j.subscribe(b,e)}};
fU=function(a,b,c){a=g.eU(a.Te(),b);return c?(c.addOnDisposeCallback(a),null):a};
g.gU=function(a,b,c){return a.app.U().Gf?b:g.aK("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c})};
mUa=function(a){a.Te().element.setAttribute("aria-live","polite")};
g.hU=function(a,b){g.dU.call(this,a,b,!1)};
g.iU=function(a){a=a.Bb();var b=a.Me.get("endscreen");return b&&b.Yt()?!0:a.TF()};
g.jU=function(a,b){3===a.getPresentingPlayerType()?a.ra("mdxautoplaycancel"):a.ob("onAutonavCancelled",b)};
g.lU=function(a){var b=kU(a.Bb());return a.app.Bi&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.Vk()&&b.Cp()||!!a.getPlaylist()};
g.nUa=function(a,b,c){g.WT(a,"addEmbedsConversionTrackingParams",[b]);g.pP(b,c)};
g.nU=function(a){return(a=g.mU(a.Bb()))?a.lI():{}};
g.oUa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.oU=function(a,b,c){a=a.qb().element;var d=Vb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));Qf(a,b,d);b.setAttribute("data-layer",String(c))};
g.pU=function(a){var b=a.U();if(!b.Pe)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay"))&&!PT(c);d=c.isLivePlayback&&(!b.L("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.L("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.Vk();var f=c.Ra&&c.Ra.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Of&&f;return!c.ypcPreview&&(!d||e)&&!g.Fb(c.Ia,"ypc")&&
!a&&(!g.UR(b)||f)};
pUa=function(a){a=g.bU(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.j||b.dZ)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.B.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.qa("iqss",{trigger:d},!0),!0):!1};
qUa=function(){MC.apply(this,arguments);this.AF={}};
qU=function(){rUa||(rUa=new qUa);return rUa};
rU=function(a,b){b?a.AF.Authorization="Bearer "+b:delete a.AF.Authorization};
sU=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.pD)()-f).toFixed(),shost:g.Vm(a),trigger:b};sUa(h,a);c&&c(h);d&&!l&&d(new BK("pathprobe.net",h))}
var f=(0,g.pD)();g.RB(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
sUa=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(),tUa&&(a.perqsa=b.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
vUa=function(a,b){BO(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(AO(a,112),AO(a,c<<1^c>>31));BO(a,16,b.G8);BO(a,17,b.detailedNetworkType);BO(a,18,b.iN);BO(a,19,b.hN);BO(a,21,b.Lca);BO(a,23,b.J5);BO(a,28,b.aR);BO(a,29,b.cda);BO(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(AO(a,285),zO(a,4),d=0;4>d;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}BO(a,36,b.w6);
FO(a,38,b.mediaCapabilities,uUa,3);BO(a,39,b.bda);BO(a,40,b.yv);BO(a,44,b.playerState);CO(a,46,b.qW);BO(a,48,b.oca);BO(a,50,b.Zu);BO(a,51,b.Bx);BO(a,54,b.Up);CO(a,56,b.h9);BO(a,57,b.X5);CO(a,58,b.jo);BO(a,59,b.tj);BO(a,60,b.Ew);CO(a,61,b.isPrefetch);BO(a,62,b.Yy)};
wUa=function(a){return{I5:wO(a,2),videoId:uO(a,3),JS:rO(a,4)}};
yUa=function(a){return{Mnb:xO(a,1,xUa)}};
xUa=function(a){return{conditions:wO(a,1),Qnb:rO(a,2)}};
zUa=function(a){return{QI:wO(a,1)}};
uUa=function(a,b){var c;if(b.kL)for(c=0;c<b.kL.length;c++)FO(a,1,b.kL[c],AUa,1);if(b.YG)for(c=0;c<b.YG.length;c++)FO(a,2,b.YG[c],BUa,1);BO(a,5,b.g8)};
BUa=function(a,b){BO(a,1,b.audioCodec);BO(a,2,b.numChannels);BO(a,3,b.zw);BO(a,6,b.Jca)};
AUa=function(a,b){BO(a,1,b.o1);BO(a,3,b.maxHeight);BO(a,4,b.maxWidth);BO(a,11,b.maxFramerate);BO(a,12,b.zw);CO(a,15,b.t8)};
EUa=function(a){return{kba:rO(a,1),itag:uO(a,3),c_:vO(a,4,CUa),lmt:rO(a,5),omb:rO(a,7),xtags:uO(a,15),d9:vO(a,23,DUa),hA:vO(a,34,zUa)}};
CUa=function(a){return{iv:tO(a,5),w8:sO(a,7)}};
DUa=function(a){return{videoId:uO(a,2)}};
HUa=function(a,b){FO(a,2,b.zs,vUa,3);FO(a,3,b.aP,FUa,3);DO(a,4,b.onesieUstreamerConfig);DO(a,9,b.Io);FO(a,10,b.QK,GUa,3)};
IUa=function(a,b){BO(a,1,b.type);DO(a,2,b.value)};
JUa=function(a){return{xI:rO(a,3),yI:rO(a,4),xba:sO(a,8),tnb:rO(a,10),Onb:rO(a,12),Pnb:rO(a,13),Jnb:rO(a,14),Knb:rO(a,15)}};
KUa=function(a){return{AK:rO(a,1),BK:rO(a,2),seekSource:rO(a,3)}};
GUa=function(a,b){FO(a,1,b.clientInfo,LUa,3);DO(a,2,b.gR);DO(a,3,b.playbackCookie);DO(a,4,b.Io);var c;if(b.zK)for(c=0;c<b.zK.length;c++)FO(a,5,b.zK[c],IUa,3);if(b.eL)for(c=0;c<b.eL.length;c++)BO(a,6,b.eL[c]);EO(a,7,b.Eca)};
MUa=function(a,b){BO(a,1,b.Fh);BO(a,2,b.dD);BO(a,3,b.Lr)};
NUa=function(a){return{Fh:rO(a,1),dD:rO(a,2),Lr:rO(a,3)}};
LUa=function(a,b){EO(a,12,b.deviceMake);EO(a,13,b.deviceModel);BO(a,16,b.clientName);EO(a,17,b.clientVersion);EO(a,18,b.osName);EO(a,19,b.osVersion)};
FUa=function(a,b){DO(a,2,b.uW);DO(a,5,b.encryptedClientKey);DO(a,6,b.iv);DO(a,7,b.QX);CO(a,10,b.Q_);CO(a,13,b.sW);CO(a,14,b.FN);DO(a,16,b.qda);CO(a,17,b.m1)};
OUa=function(a,b){EO(a,1,b.name);EO(a,2,b.value)};
PUa=function(a){return{minBandwidthBytesPerSec:rO(a,1),minReadaheadMs:rO(a,2)}};
QUa=function(a,b){EO(a,1,b.url);var c;if(b.RO)for(c=0;c<b.RO.length;c++)FO(a,2,b.RO[c],OUa,3);DO(a,3,b.postBody);CO(a,4,b.Iba);CO(a,6,b.xB)};
RUa=function(a){return{RZ:rO(a,1),SX:rO(a,2),body:tO(a,4)}};
SUa=function(a){return{startMinReadaheadPolicy:xO(a,1,PUa),resumeMinReadaheadPolicy:xO(a,2,PUa)}};
TUa=function(a,b){var c;if(b.xM)for(c=0;c<b.xM.length;c++)EO(a,1,b.xM[c]);DO(a,2,b.D5);EO(a,3,b.Fs);BO(a,4,b.g0);BO(a,5,b.Dda);EO(a,6,b.Eda)};
UUa=function(a){return{aq:rO(a,1),Qba:rO(a,2)}};
g.VUa=function(a,b){FO(a,1,b.zs,vUa,1);DO(a,3,b.videoPlaybackUstreamerConfig);FO(a,6,b.ox,TUa,3)};
WUa=function(a){return{first:rO(a,1),oY:rO(a,2)}};
YUa=function(a,b){FO(a,1,b.formatId,tU,3);BO(a,2,b.startTimeMs);BO(a,3,b.durationMs);BO(a,4,b.Ao);BO(a,5,b.Zi);FO(a,9,b.Ilb,XUa,3);FO(a,11,b.cob,MUa,1);FO(a,12,b.lba,MUa,1)};
ZUa=function(a,b){EO(a,1,b.videoId);BO(a,2,b.lmt)};
XUa=function(a,b){var c;if(b.pV)for(c=0;c<b.pV.length;c++)FO(a,1,b.pV[c],ZUa,3)};
tU=function(a,b){BO(a,1,b.itag);BO(a,2,b.lmt);EO(a,3,b.xtags)};
$Ua=function(a){return{itag:rO(a,1),lmt:rO(a,2),xtags:uO(a,3)}};
aVa=function(a,b){FO(a,1,b.formatId,tU,3);BO(a,2,b.Kj);BO(a,3,b.sequenceNumber);FO(a,4,b.QH,MUa,1);BO(a,5,b.xY)};
cVa=function(a){return{f_:rO(a,1),items:xO(a,2,bVa),q9:rO(a,3)}};
bVa=function(a){return{PP:rO(a,1),oJ:rO(a,2),minReadaheadMs:rO(a,3)}};
dVa=function(a){return{token:uO(a,1),videoId:uO(a,2)}};
fVa=function(a){return{Kba:uO(a,1),action:rO(a,2),I_:vO(a,3,eVa)}};
eVa=function(a){return{vp:rO(a,1)}};
gVa=function(a,b){var c;if(b.Tv)for(c=0;c<b.Tv.length;c++)FO(a,1,b.Tv[c],tU,3);if(b.Ld)for(c=0;c<b.Ld.length;c++)FO(a,2,b.Ld[c],YUa,3);EO(a,3,b.clipId)};
hVa=function(a,b){FO(a,1,b.zs,vUa,3);var c;if(b.Tv)for(c=0;c<b.Tv.length;c++)FO(a,2,b.Tv[c],tU,3);if(b.Ld)for(c=0;c<b.Ld.length;c++)FO(a,3,b.Ld[c],YUa,3);DO(a,5,b.videoPlaybackUstreamerConfig);if(b.Yn)for(c=0;c<b.Yn.length;c++)FO(a,6,b.Yn[c],aVa,3);if(b.LF)for(c=0;c<b.LF.length;c++)FO(a,16,b.LF[c],tU,3);if(b.MF)for(c=0;c<b.MF.length;c++)FO(a,17,b.MF[c],tU,3);FO(a,19,b.QK,GUa,3);FO(a,21,b.ox,TUa,3);BO(a,22,b.XI);BO(a,23,b.VI);if(b.aG)for(c=0;c<b.aG.length;c++)FO(a,1E3,b.aG[c],gVa,3)};
iVa=function(a){return{bitrate:rO(a,6),width:rO(a,7),height:rO(a,8),fps:rO(a,25),averageBitrate:rO(a,31),audioSampleRate:rO(a,45),audioChannels:rO(a,46)}};
jVa=function(a){return{targetAudioReadaheadMs:rO(a,1),targetVideoReadaheadMs:rO(a,2),backoffTimeMs:rO(a,4),playbackCookie:tO(a,7),videoId:uO(a,8)}};
g.uU=function(a){this.tag=a};
lVa=function(a,b){kVa.apply(null,[6,a,b].concat(g.pa(g.Ia.apply(2,arguments))))};
mVa=function(a,b){kVa.apply(null,[5,a,b].concat(g.pa(g.Ia.apply(2,arguments))))};
kVa=function(a,b,c){var d=g.Ia.apply(3,arguments),e=6===a?"ERROR":"WARNING",f="b"+c;g.tF(new (Function.prototype.bind.apply(g.QC,[null,f].concat(g.pa(d)))),e);d.unshift(f);d=d.join(", ");e=nVa.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){}nVa.set(b,f);e=f}a<e||("function"===typeof d&&(d=d()),console.log("plyr."+b,d))};
vU=function(a){this.B={};this.logger=new g.uU(a)};
oVa=function(a){return a.itag+";"+(a.lmt||0)+";"+(a.xtags||"")};
wU=function(a,b,c){g.I.call(this);this.policy=a;this.D=b;this.qa=c;this.C=new Map;this.G=0;this.K=!1;this.j="";this.B=!1};
xU=function(a,b,c){if(void 0===c?0:c)a.K=!0;++a.G;c=6E4*Math.pow(2,a.G);c=(0,g.pD)()+c;a.C.set(b.info.id,c)};
yU=function(a){for(var b=g.u(a.C.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.pD)()&&a.C.delete(c)}return a.C};
pVa=function(a){return a.K&&0<yU(a).size};
zU=function(a,b){a.j!==b&&(a.j=b,a.B=!0)};
qVa=function(a,b){if(b){(a.policy.ll||a.policy.wr)&&a.qa("iaudio",{id:b});var c=g.Db(a.D.j,function(d){return d.id===b})}c||(c=g.Db(a.D.j,function(d){var e;
return!(null==(e=d.uc)||!e.isDefault)}));
return c};
AU=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
BU=function(a,b,c){this.j=a;this.reason=b;this.token=c;this.videoId=void 0};
rVa=function(a,b,c,d,e,f){var h=this;f=void 0===f?[]:f;this.Aa=a;this.Ia=b;this.policy=c;this.manifest=d;this.K=e;this.ib=f;this.logger=new g.uU("dash/abr");this.j=WS;this.C=this.N=null;this.ma=-1;this.Na=!1;this.nextVideo=this.B=null;this.D=[];this.Wa=new Set;this.Ma={};this.Za=new HR(1);this.Z=0;this.Xa=this.Ca=this.va=!1;this.Ea=0;this.fb=!1;this.Y=new Set;this.Ra=!1;this.Cd={N_:function(){CU(h)}};
this.G=new wU(this.policy,e,function(l,m){h.Aa.qa(l,m)})};
wVa=function(a,b,c){DU(a,b);sVa(a,c);a.N=a.B;tVa(a);uVa(a);a.C=a.nextVideo;a.N=a.B;return vVa(a)};
zVa=function(a,b){if(xVa(a,b))return null;if("m"===b.reason&&b.isLocked())return a.logger.debug(function(){return"User sets constraint to: "+yP(b)}),DU(a,b),a.Z=a.D.length-1,CU(a),EU(a),a.Ca=a.Ca||a.C!==a.nextVideo,a.C=a.nextVideo,new AU(a.B,a.C,b.reason);
"r"===b.reason&&(a.ma=-1);DU(a,b);EU(a);if("r"===b.reason&&a.nextVideo===a.C)return new AU(a.B,a.nextVideo,b.reason);yVa(a);return null};
AVa=function(a,b,c){a.B=a.manifest.j[b];a.N=a.B;return new AU(a.N,a.C,c?"t":"m")};
BVa=function(a,b){if(b.info.video){if(a.C!==b)return a.C=b,vVa(a)}else a.Xa=a.N!==b,a.N=b;return null};
CVa=function(a,b){if(b.j.info.video&&b.mf){var c=(b.Zb+b.B)/b.duration,d=b.j.info.Pb;c&&d&&(a.Za.Rj(1,c/d),a.policy.B&&1.5<c/d&&a.Aa.qa("overshoot",{sq:b.Pa,br:c,max:d}))}};
FU=function(a,b,c){xU(a.G,b,void 0===c?!1:c);a.ma=-1;DU(a,a.j)};
GU=function(a,b){return new AU(a.N,a.C,b||a.j.reason)};
yVa=function(a){if(a.C&&a.nextVideo&&HU(a,a.C.info)<HU(a,a.nextVideo.info)){var b=a.j.reason;a.va=a.va||"r"===b||"u"===b||"v"===b}};
vVa=function(a){a.Na?a.Na=!1:a.ma=(0,g.pD)();a.va=!1;a.Ra=!1;return new AU(a.N,a.C,a.j.reason)};
DVa=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&&RK(f)&&f.video.j>a.policy.tj,l=e<=a.policy.tj?RK(d):QK(d);if(!f||h||l)c[e]=d}return c};
DU=function(a,b){a.j=b;var c=a.K.videoInfos;if(!a.j.isLocked()){var d=(0,g.pD)();c=g.ot(c,function(r){if(r.Pb>this.policy.Pb)return!1;var t=this.manifest.j[r.id];return yU(this.G).get(r.id)>d?!1:4<t.resource.C||4<t.K?(this.logger.debug(function(){return"Remove "+ZK(r)+"; 4 load failures"}),!1):this.policy.Pl&&this.Y.has(+r.itag)?(this.policy.Om&&this.Aa.qa("lwnmow",{f:r.itag}),!1):!0},a);
pVa(a.G)&&(c=g.ot(c,function(r){return 854>=r.video.width&&480>=r.video.height}))}!a.policy.Pl&&0<a.Y.size&&(c=g.ot(c,function(r){return a.Y.has(+r.itag)?(a.policy.Om&&a.Aa.qa("lwnmow",{f:r.itag}),!1):!0}));
c.length||(c=a.K.videoInfos);var e=g.ot(c,b.D,b);if(a.j.isLocked()&&a.G.j){var f=g.Db(c,function(r){return r.id===a.G.j});
f?e=[f]:zU(a.G,"")}f="m"===b.reason||"s"===b.reason;a.policy.Gy&&IU&&g.kD&&(!f||1080>b.j)&&(e=e.filter(function(r){return r.video&&(!r.B||r.B.powerEfficient)}));
if(0<e.length)if(jL()){var h=DVa(a,e);e=e.filter(function(r){return!!r&&!!r.video&&r.sb===h[r.video.j].sb})}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(r){return!!r&&!!r.video&&r.video.j===n});
var p=DVa(a,b)[n].sb;e=e.filter(function(r){return!!r&&!!r.video&&r.sb===p})}}e.length||(e=[c[0]]);
e.sort(function(r,t){return HU(a,r)-HU(a,t)});
c={};for(b=1;b<e.length;c={LM:void 0,tM:void 0},b++)c.tM=e[b-1],c.LM=e[b],c.tM.video.width>c.LM.video.width?(g.Hb(e,b),b--):HU(a,c.tM)*a.policy.K>HU(a,c.LM)&&(g.Hb(e,b-1),b--);var q=e[e.length-1];a.fb=!!a.C&&!!a.C.info&&a.C.info.sb!==q.sb;a.logger.debug(function(){return"Constraint: "+yP(a.j)+", "+e.length+" fmts selectable, max selectable fmt: "+ZK(q)});
a.D=e;a.Wa.clear();c=!1;for(b=0;b<e.length;b++)c?a.Wa.add(e[b].itag):1080<=e[b].video.j&&(c=!0);EVa(a.policy,q,a.manifest.yc)};
sVa=function(a,b){if(a.policy.ll){var c=qVa(a.G,b);b||c||!JU&&!a.policy.tb||(c=FVa(a));c=c||a.K.j[0]}else b?a.B=a.manifest.j[b]:(c=g.Db(a.K.j,function(d){return!!d.uc&&d.uc.isDefault}))||!JU&&!a.policy.tb||(c=FVa(a)),c=c||a.K.j[0];
a.B=a.manifest.j[c.id];CU(a)};
GVa=function(a,b){for(var c=0;c+1<a.D.length&&"tiny"===a.D[c].video.quality;)c++;var d=KU(a.Ia)/a.policy.K;return HU(a,b.info)+HU(a,a.D[c])>d};
CU=function(a){if(!a.B||!a.policy.D&&!a.B.info.uc){var b=a.K.j;a.B&&(a.policy.tb||JU)&&(b=b.filter(function(d){return d.audio.j===a.B.info.audio.j}),b.length||(b=a.K.j));
a.B=a.manifest.j[b[0].id];if(1<b.length){var c=!1;if(c=a.policy.Vb?!0:a.j.isLocked()?240>a.j.j:GVa(a,a.B))a.B=a.manifest.j[g.Bb(b).id]}}};
EU=function(a){if(!a.nextVideo||!a.policy.D)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.manifest.j[a.D[0].id]:a.manifest.j[g.Bb(a.D).id],a.logger.debug(function(){return"Select max fmt: "+ZK(a.nextVideo.info)});
else{for(var b=Math.min(a.Z,a.D.length-1),c=KU(a.Ia),d=HU(a,a.B.info),e=c/a.policy.Z-d;0<b&&!(HU(a,a.D[b])<=e);b--);for(var f=c/a.policy.K-d;b<a.D.length-1&&!(HU(a,a.D[b+1])>=f);b++);a.nextVideo=a.manifest.j[a.D[b].id];a.Z!==b&&a.logger.info(function(){return"Adapt to: "+ZK(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+yP(a.j)});
a.Z=b}};
tVa=function(a){var b=a.policy.Z,c=KU(a.Ia),d=c/b-HU(a,a.B.info);b=g.Eb(a.D,function(e){return HU(this,e)<d},a);
0>b&&(b=0);a.Z=b;a.nextVideo=a.manifest.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+ZK(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
uVa=function(a){if(a.ib.length){var b=a.ib,c=function(d,e){if("f"===d.info.sb||b.includes(WK(d.info,a.manifest.yc)))return d;for(var f={},h=0;h<e.length;f={QN:void 0,pS:void 0},h++){var l=a.manifest.j[e[h].id];if(b.includes(WK(l.info,a.manifest.yc))){var m=d.info.sb,n=l.info.sb;if(m===n||jL()){if(d.info.j!==l.info.j)return a.Aa.qa("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.QN=d.info.itag;f.pS=l.info.itag;a.Aa.qa("ombifa",{f:f.QN,t:f.pS});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
p.QN+" to "+p.pS+" based on prefetched media."}}(f));
a.Na=!0;return l}a.Aa.qa("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.Aa.qa("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.K.videoInfos);a.B=c(a.B,a.K.j)}};
HU=function(a,b){if(!a.Ma[b.id]){var c=a.manifest.j[b.id].index.YW(a.Ea,15);c=b.Vu&&a.C&&a.C.index.isLoaded()?c||b.Vu:c||b.Pb;a.Ma[b.id]=c}c=a.Ma[b.id];a.Wa.has(b.itag)&&(c*=1.5);return c*=Math.max(1,a.Za.cj()||0)};
HVa=function(a,b){a=cba(a.manifest.j,function(c){return c.info.itag===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
IVa=function(a){var b=[];if("m"===a.j.reason||"s"===a.j.reason)return b;if(zPa(a.manifest)){for(var c=Math.max(0,a.Z-2);c<a.Z&&c<a.D.length;c++)b.push(a.D[c].itag);b.reverse()}return b};
xVa=function(a,b){var c;return dNa(a.j,b)&&(!a.G.j||!a.j.isLocked()||(null==(c=a.nextVideo)?void 0:c.info.id)===a.G.j)};
FVa=function(a){var b=g.Db(a.K.j,function(d){return d.audio.j}),c=g.Db(a.K.j,function(d){return!d.audio.j});
if(!b&&JU)return null;if(!a.policy.tb&&JU)return c;a.policy.yy&&b&&(a.Aa.qa("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));return b};
g.LU=function(a,b,c,d){d=void 0===d?!1:d;g.VF.call(this,b);var e=this;this.J=a;this.Ia=d;this.N=new g.IK(this);this.ma=new g.CG(this,c,!0,void 0,void 0,function(){e.IW()});
g.N(this,this.N);g.N(this,this.ma)};
JVa=function(a){a.B&&(document.activeElement&&g.Uf(a.element,document.activeElement)&&(Wf(a.B),a.B.focus()),a.B.setAttribute("aria-expanded","false"),a.B=void 0);g.FC(a.N);a.Y=void 0};
MU=function(a,b,c){a.gk()?a.Qb():a.xd(b,c)};
KVa=function(a,b,c,d){d=new g.V({I:"div",La:["ytp-linked-account-popup-button"],ya:d,X:{role:"button",tabindex:"0"}});b=new g.V({I:"div",S:"ytp-linked-account-popup",X:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{I:"div",S:"ytp-linked-account-popup-title",ya:b},{I:"div",S:"ytp-linked-account-popup-description",ya:c},{I:"div",S:"ytp-linked-account-popup-buttons",V:[d]}]});g.LU.call(this,a,{I:"div",S:"ytp-linked-account-popup-container",V:[b]},100);var e=this;this.dialog=b;g.N(this,this.dialog);
d.Ta("click",function(){e.Qb()});
g.N(this,d);g.oU(this.J,this.element,4);this.hide()};
g.OU=function(a,b,c,d){g.VF.call(this,a);this.priority=b;c&&g.NU(this,c);d&&this.Ud(d)};
g.PU=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");var d=a;"role"in d||(d.role="menuitem");c||(d=a,"tabindex"in d||(d.tabindex="0"));return{I:c?"a":"div",La:b,X:a,V:[{I:"div",S:"ytp-menuitem-icon",ya:"{{icon}}"},{I:"div",S:"ytp-menuitem-label",ya:"{{label}}"},{I:"div",S:"ytp-menuitem-content",ya:"{{content}}"}]}};
QU=function(a,b){a.updateValue("icon",b)};
g.NU=function(a,b){a.updateValue("label",b)};
RU=function(a){g.OU.call(this,g.PU({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.J=a;this.B=this.j=!1;this.Hb=a.zp();a.createServerVe(this.element,this,!0);this.T(this.J,"settingsMenuVisibilityChanged",function(c){b.Nc(c)});
this.T(this.J,"videodatachange",this.D);this.Ta("click",this.onClick);this.D()};
SU=function(a){return a?g.YF(a):""};
TU=function(a){g.I.call(this);this.api=a};
UU=function(a){TU.call(this,a);var b=this;TT(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
TT(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new RU(b.api);g.N(b,b.menuItem)})};
LVa=function(a){this.api=a;this.j={}};
VU=function(a,b,c,d){b in a.j||(c=new g.UJ(c,d,{id:b,priority:2,namespace:"appad"}),a.api.yf([c],1),a.j[b]=c)};
MVa=function(a){TU.call(this,a);var b=this;this.events=new g.IK(this);g.N(this,this.events);this.j=new LVa(this.api);this.events.T(this.api,"legacyadtrackingpingreset",function(){b.j.j={}});
this.events.T(this.api,"legacyadtrackingpingchange",function(c){var d=b.j;VU(d,"part2viewed",1,0x8000000000000);VU(d,"engagedview",Math.max(1,1E3*c.Nb),0x8000000000000);c.isLivePlayback||(c=1E3*c.lengthSeconds,VU(d,"videoplaytime25",.25*c,c),VU(d,"videoplaytime50",.5*c,c),VU(d,"videoplaytime75",.75*c,c),VU(d,"videoplaytime100",c,0x8000000000000),VU(d,"conversionview",c,0x8000000000000),VU(d,"videoplaybackstart",1,c),VU(d,"videoplayback2s",2E3,c),VU(d,"videoplayback10s",1E4,c))});
this.events.T(this.api,g.VJ("appad"),this.B);this.events.T(this.api,g.WJ("appad"),this.B)};
QVa=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.api.getVideoData().clientPlaybackNonce};c=g.Fu(c,d);d=void 0;d=void 0===d?!1:d;(d=OJ(PJ(c,NVa,null),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=OJ(PJ(c,OVa,null),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=OJ(PJ(c,PVa,null),c,d,"Nielsen OCR URL"));g.jE(c,void 0,d)}return!0};
WU=function(a,b){RVa(a,b).then(function(c){g.jE(b,void 0,void 0,c)})};
XU=function(a,b){b.forEach(function(c){WU(a,c)})};
RVa=function(a,b){return g.yJ(a.api.U())&&HB(b)&&GB(b)?g.sS(a.api.U(),g.JT(a.api.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):XB()};
SVa=function(a){TU.call(this,a);this.events=new g.IK(a);g.N(this,this.events);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.bD("adsClientStateChange",e)}})};
UVa=function(a){g.V.call(this,{I:"button",La:["ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{I:"div",S:"ytp-autonav-toggle-button-container",V:[{I:"div",S:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.J=a;this.B=[];this.j=!1;this.isChecked=!0;a.createClientVe(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.kC);this.Ta("click",this.onClick);this.J.U().L("web_player_autonav_toggle_always_listen")&&
TVa(this);fU(a,this.element,this);this.kC()};
TVa=function(a){a.B.push(a.T(a.J,"videodatachange",a.kC));a.B.push(a.T(a.J,"videoplayerreset",a.kC));a.B.push(a.T(a.J,"onPlaylistUpdate",a.kC));a.B.push(a.T(a.J,"autonavchange",a.hU))};
VVa=function(a){a.isChecked=a.isChecked;a.Ga("ytp-autonav-toggle-button").setAttribute("aria-checked",String(a.isChecked));var b=a.isChecked?"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e":"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u043e";a.updateValue("title",
b);a.updateValue("label",b);a.J.Mh()};
WVa=function(a){return a.J.U().L("web_player_autonav_use_server_provided_state")&&RSa(a.Pd())};
XVa=function(a){TU.call(this,a);var b=this;this.events=new g.IK(a);g.N(this,this.events);this.events.T(a,"standardControlsInitialized",function(){var c=new UVa(a);g.N(b,c);a.My(c)})};
YU=function(a,b){g.OU.call(this,g.PU({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{I:"div",S:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Ta("click",this.onClick)};
ZU=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))};
YVa=function(a){var b=!a.U().xk&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.$U=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.UG(a))return a.preventDefault(),!0;b.pauseVideo();a=e.getAttribute("href");g.Hxa(a,d,!0);return!1};
g.aV=function(a,b,c){if(iS(b.U())&&2!==b.getPresentingPlayerType()){if(g.UG(c))return b.isFullscreen()&&!b.U().externalFullscreen&&b.toggleFullscreen(),c.preventDefault(),!0}else if(b.U().L("embeds_enable_webview_nonjs_navigation")&&g.UR(b.U())&&(kC()||iC()))b=c.target,b instanceof HTMLAnchorElement&&g.Se(b,Iba(a));else{var d=g.UG(c);d&&b.pauseVideo();g.Hxa(a,void 0,!0);d&&(g.dH(a),c.preventDefault())}return!1};
$Va=function(){var a=ZVa.includes("ru")?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{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};
aWa=function(){return{I:"div",S:"ytp-spinner-container",V:[{I:"div",S:"ytp-spinner-rotator",V:[{I:"div",S:"ytp-spinner-left",V:[{I:"div",S:"ytp-spinner-circle"}]},{I:"div",S:"ytp-spinner-right",V:[{I:"div",S:"ytp-spinner-circle"}]}]}]}};
bWa=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
g.bV=function(a){return a.U().L("web_modern_player_settings")?cWa:a.U().L("web_modern_player_settings_quality_bottom")?dWa:eWa};
cV=function(a){var b=a.L("web_player_use_cinematic_label_2")?"\u0424\u043e\u043d\u043e\u0432\u0430\u044f \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0430":"\u041f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u0441\u0432\u0435\u0449\u0435\u043d\u0438\u0435";YU.call(this,b,g.bV(a).uL);var c=this;this.J=a;this.j=!1;this.B=new g.Qu(function(){g.$u(c.element,"ytp-menuitem-highlighted")},0);
this.Hb=a.zp();QU(this,{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{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(fWa,this.D);g.N(this,this.B)};
hWa=function(a){TU.call(this,a);var b=this;this.j=!1;a.addEventListener("settingsMenuInitialized",function(){gWa(b)});
a.addEventListener("highlightSettingsMenu",function(c){gWa(b);var d=b.menuItem;"menu_item_cinematic_lighting"===c&&(g.Yu(d.element,"ytp-menuitem-highlighted"),g.Yu(d.element,"ytp-menuitem-highlight-transition-enabled"),d.B.start())});
TT(a,"updateCinematicSettings",function(c){b.updateCinematicSettings(c)})};
gWa=function(a){a.menuItem||(a.menuItem=new cV(a.api),g.N(a,a.menuItem),a.menuItem.Sa(a.j))};
dV=function(a,b){YU.call(this,"\u041f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438",g.bV(a).pM);this.Hb=a.zp();this.callback=b;a=1===g.JC("yt-player-drc-pref");QU(this,{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",
fill:"white"}}]});this.subscribe("select",this.j,this);ZU(this,a);this.Hb.Xc(this)};
eV=function(a){TU.call(this,a);var b=this;this.events=new g.IK(a);g.N(this,this.events);a.L("html5_show_drc_toggle")&&a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new dV(b.api,b.setDrcUserPreference.bind(b)),g.N(b,b.menuItem))});
TT(this.api,"setDrcUserPreference",function(d){b.setDrcUserPreference(d)});
TT(this.api,"getDrcUserPreference",function(){return b.getDrcUserPreference()});
var c;this.j=null!=(c=g.JC("yt-player-drc-pref"))?c:1;this.updateEnvironmentData()};
iWa=function(a){var b,c;return(a=null==(b=a.api.getVideoData())?void 0:null==(c=b.C)?void 0:c.j)?As(a,function(d){var e;return!0===(null==(e=d.audio)?void 0:e.j)}):!1};
fV=function(a){TU.call(this,a);var b=this;this.j={};this.events=new g.IK(a);g.N(this,this.events);this.events.T(a,"videodatachange",function(){b.onVideoDataChange()});
this.events.T(a,g.VJ("embargo"),function(c){b.api.qo(!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.Bg("auth",2,"This video isn't available in your current playback area",AK({embargoed:1,id:c.id,idx:c.B,start:c.start}));e=void 0;(f=null==(e=f.embargo)?void 0:e.onTrigger)&&b.api.ob("innertubeCommand",f)}})};
jWa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.B)};
kWa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=Number(null==(d=c.playbackPosition)?void 0:d.utcTimeMillis)/1E3,f=void 0;d=e+Number(null==(f=c.duration)?void 0:f.seconds);f="embargo_"+e;a.api.addUtcCueRange(f,e,d,"embargo",!1);c.onEnter&&(a.j[f]=c.onEnter.filter(a.B))}};
lWa=function(a){TU.call(this,a);var b=this;this.j=[];this.events=new g.IK(a);g.N(this,this.events);TT(a,"addEmbedsConversionTrackingParams",function(c){b.api.U().To&&b.addEmbedsConversionTrackingParams(c)});
this.events.T(a,"veClickLogged",function(c){b.api.hasVe(c)&&(c=pk(c.visualElement.getAsJspb(),2),b.j.push(c))})};
mWa=function(a){TU.call(this,a);var b=this;this.events=new g.IK(a);g.N(this,this.events);this.events.T(a,"initialvideodatacreated",function(c){jP(iP(),16623);b.j=g.qF();var d=a.U().Ui&&!c.Zf;if(IT(c)&&d){jP(iP(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var e,f=null==(e=c.getWatchNextResponse())?void 0:e.trackingParams;f&&lP(f)}if(c.getPlayerResponse()){var h;(c=null==(h=c.getPlayerResponse())?void 0:h.trackingParams)&&lP(c)}}else jP(iP(),
32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(h=null==(f=c.getEmbeddedPlayerResponse())?void 0:f.trackingParams)&&lP(h)});
this.events.T(a,"loadvideo",function(){jP(iP(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
this.events.T(a,"cuevideo",function(){jP(iP(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
this.events.T(a,"largeplaybuttonclicked",function(c){jP(iP(),27240,c.visualElement)});
this.events.T(a,"playlistnextbuttonclicked",function(c){jP(iP(),27240,c.visualElement)});
this.events.T(a,"playlistprevbuttonclicked",function(c){jP(iP(),27240,c.visualElement)});
this.events.T(a,"playlistautonextvideo",function(){jP(iP(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
nWa=function(a){var b;return(null==(b=((null==a?void 0:a.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))?void 0:b.timeCounterRenderer)||null};
gV=function(a){g.V.call(this,{I:"div",La:["ytp-player-content","ytp-iv-player-content"],V:[{I:"div",S:"ytp-free-preview-countdown-timer",V:[{I:"span",ya:"{{label}}"},{I:"span",S:"ytp-free-preview-countdown-timer-separator",ya:"\u2022"},{I:"span",ya:"{{duration}}"}]}]});this.api=a;this.j=null;this.C=this.B=0;this.T(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)};
pWa=function(a,b){a.j||(a.B=b,a.C=(0,g.pD)(),a.j=new g.Ou(function(){oWa(a)},null),oWa(a))};
oWa=function(a){var b=Math,c=b.round,d=Math.min((0,g.pD)()-a.C,a.B);b=c.call(b,(a.B-d)/1E3);a.updateValue("duration",kIa({seconds:b}));0>=b&&a.j?qWa(a):a.j&&a.j.start()};
qWa=function(a){a.j&&(a.j.dispose(),a.j=null)};
rWa=function(a){TU.call(this,a);var b=this;this.events=new g.IK(a);g.N(this,this.events);this.events.T(a,"basechromeinitialized",function(){b.j=new gV(a);g.N(b,b.j);g.oU(a,b.j.element,4);b.j.hide()})};
hV=function(a){g.V.call(this,{I:"button",La:["ytp-fullerscreen-edu-button","ytp-button"],V:[{I:"div",La:["ytp-fullerscreen-edu-text"],ya:"\u041f\u0440\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u0435 \u044d\u043a\u0440\u0430\u043d \u0432\u043d\u0438\u0437, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e"},{I:"div",La:["ytp-fullerscreen-edu-chevron"],
V:[{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],X:{"data-priority":"1"}});this.Va=a;this.j=new g.CG(this,250,void 0,100);this.C=this.B=!1;a.createClientVe(this.element,this,61214);g.N(this,this.j);this.T(a,"fullscreentoggled",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);this.Ta("click",this.onClick);this.Sa()};
iV=function(a){TU.call(this,a);var b=this;this.events=new g.IK(a);g.N(this,this.events);TT(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
TT(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
var c=a.U();a.L("external_fullscreen_with_edu")&&c.externalFullscreen&&iS(c)&&"1"===c.controlsType&&this.events.T(a,"standardControlsInitialized",function(){b.j=new hV(a);g.N(b,b.j);a.My(b.j)})};
sWa=function(a){g.V.call(this,{I:"div",S:"ytp-gated-actions-overlay",V:[{I:"div",S:"ytp-gated-actions-overlay-background",V:[{I:"div",S:"ytp-gated-actions-overlay-background-overlay"}]},{I:"button",La:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},V:[g.bG()]},{I:"div",S:"ytp-gated-actions-overlay-bar",V:[{I:"div",S:"ytp-gated-actions-overlay-text-container",V:[{I:"div",S:"ytp-gated-actions-overlay-title",ya:"{{title}}"},
{I:"div",S:"ytp-gated-actions-overlay-subtitle",ya:"{{subtitle}}"}]},{I:"div",S:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Ga("ytp-gated-actions-overlay-background");this.B=this.Ga("ytp-gated-actions-overlay-button-container");this.j=[];this.T(this.Ga("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.ob("onCloseMiniplayer")});
this.hide()};
uWa=function(a,b){var c=0;c=0;for(var d={};c<b.length;d={aH:void 0},c++){var e=a.j[c],f=void 0,h=null==(f=e)?void 0:f.element;h||(h=new g.V({I:"button",S:"ytp-gated-actions-overlay-button",X:{tabindex:"0"},V:[{I:"div",S:"ytp-gated-actions-overlay-button-title",ya:"{{buttonText}}"}]}),g.N(a,h),h.Ja(a.B),e={element:h});d.aH=g.U(b[c],tWa);var l=f=void 0,m=void 0,n=(null==(f=d.aH)?void 0:f.title)||(null==(l=d.aH)?void 0:null==(m=l.titleFormatted)?void 0:m.content)||"";h.update({buttonText:n});e.listener&&
h.Tc(e.listener);e.listener=h.Ta("click",function(p){return function(){var q,r=g.U(null==(q=p.aH)?void 0:q.onTap,xF);r&&a.api.ob("innertubeCommand",r)}}(d));
a.j[c]=e}for(;c<a.j.length;)a.j.pop().element.dispose()};
vWa=function(a){TU.call(this,a);var b=this;this.events=new g.IK(a);g.N(this,this.events);this.j=new sWa(this.api);g.N(this,this.j);this.events.T(a,"videodatachange",function(){var c,d=null==(c=b.api.getVideoData())?void 0:c.k5;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;uWa(c,d.actionButtons||[]);c.show()}else c.hide()});
g.oU(this.api,this.j.element,4)};
wWa=function(a){TU.call(this,a);a=a.U();a.Za=!1;a.Pm=!1};
xWa=function(a){TU.call(this,a);a=a.U();a.wh.push("flix");a.Za=!1;a.Jl=!1};
jV=function(a){TU.call(this,a);var b=this;VT(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()});
VT(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.pa(g.Ia.apply(0,arguments)))});
UT(this.api,"getSphericalProperties",function(){return 2===b.api.getPresentingPlayerType()?{}:b.getSphericalProperties()});
UT(this.api,"setSphericalProperties",function(){var c=g.Ia.apply(0,arguments);2!==b.api.getPresentingPlayerType()&&b.setSphericalProperties.apply(b,g.pa(c))})};
yWa=function(a){TU.call(this,a);TT(a,"createClientVe",this.createClientVe.bind(this));TT(a,"createServerVe",this.createServerVe.bind(this));TT(a,"destroyVe",this.destroyVe.bind(this));TT(a,"hasVe",this.hasVe.bind(this));TT(a,"logClick",this.logClick.bind(this));TT(a,"logVisibility",this.logVisibility.bind(this));TT(a,"setTrackingParams",this.setTrackingParams.bind(this))};
kV=function(a){TU.call(this,a);var b=this;this.events=new g.IK(a);g.N(this,this.events);TT(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)});
TT(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)});
TT(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)})};
zWa=function(a,b,c){var d=1E3*a.api.getCurrentTime()<b?1:-1;a.api.vF(d,c);a.api.seekTo(b/1E3,void 0,void 0,void 0,3)};
CWa=function(a){TU.call(this,a);var b=this;this.events=new g.IK(a);g.N(this,this.events);this.events.T(a,"videodatachange",function(){AWa(b)});
this.events.T(a,"presentingplayerstatechange",function(){BWa(b)})};
lV=function(a,b){navigator.mediaSession.setActionHandler(a,b)};
AWa=function(a){var b=a.api.getVideoData();if(null!=b&&b.Ke()){var c=a.api.U(),d=[],e="";if(!c.ma){var f=DWa(a);g.$G(c)&&f?(d=EWa(f.thumbnailDetails),f.album&&(e=mIa(f.album))):d=[{src:b.hh("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}BWa(a);FWa(a);navigator.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.lU(a.api)&&(b=function(){a.api.nextVideo()},c=function(){a.api.previousVideo()});
lV("nexttrack",b);lV("previoustrack",c)}};
FWa=function(a){lV("play",function(){a.api.playVideo()});
lV("pause",function(){a.api.pauseVideo()});
lV("seekbackward",function(){a.api.seekBy(-5*a.api.getPlaybackRate())});
lV("seekforward",function(){a.api.seekBy(5*a.api.getPlaybackRate())})};
DWa=function(a){var b,c,d,e;return null==(b=a.api.getVideoData().getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:null==(e=d.browserMediaSession)?void 0:e.browserMediaSessionRenderer};
EWa=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.RJ(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
BWa=function(a){a=a.api.Xb();a=a.isCued()||a.isError()?"none":g.CL(a)?"playing":"paused";navigator.mediaSession.playbackState=a};
mV=function(a){TU.call(this,a);var b=this;this.B=new Map;this.C=this.j=void 0;this.compositeVideoState=null;this.events=new g.IK(a);g.N(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.U(l.compositeVideoOverlay,GWa),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.fL({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.B.clear();b.api.Cf("compositeembargo",1);var e=null==d?void 0:d.sL.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==e?0:e.length)?HWa(b,e.filter(function(f){return IWa(b,f)})):(null==d?0:d.cueRanges)&&HWa(b,d.cueRanges.filter(function(f){return IWa(b,f)}));
"dataupdated"===c&&(null==d?void 0:d.compositeLiveStatusToken)!==b.C&&(b.C=null==d?void 0:d.compositeLiveStatusToken,b.api.Ho())});
this.events.T(a,g.VJ("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)!==c.id&&(b.api.qo(!0),b.B.has(c.id))){var e=b.B.get(c.id);d=b.api.getVideoData();e=g.u(e);for(var f=e.next();!f.done;f=e.next()){var h=void 0;f=null==(h=f.value.compositeEmbargo)?void 0:h.embargoStatusToken;d.Xq!==f&&(d.Xq=f,b.api.Ho());JWa(b,c)}}});
this.events.T(a,g.WJ("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)===c.id&&(b.api.qo(!1),b.B.has(c.id))){if(c=b.api.getVideoData())c.Xq=void 0;b.api.Ho();JWa(b)}});
this.events.T(a,"heartbeatRequest",function(c){null!==b.compositeVideoState&&(c.playbackState||(c.playbackState={}),c.playbackState.compositeVideoState=b.compositeVideoState)});
this.events.T(a,"onPlaybackAudioChange",function(){b.api.Ho()});
TT(a,"setCompositeParam",function(c){b.compositeVideoState=c})};
JWa=function(a,b){var c;(null==(c=a.j)?void 0:c.id)!==(null==b?void 0:b.id)&&(a.j&&(a.B.delete(a.j.id),a.api.xo([a.j],1)),a.j=b)};
HWa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=void 0;c=Number(null==(e=d.playbackRelativePosition)?void 0:e.utcTimeMs)/1E3;var f=void 0;e=c+Number(null==(f=d.duration)?void 0:f.seconds);f="composite_embargo_"+c;d.onEnter&&(d=d.onEnter.filter(a.D),d.length&&(a.B.set(f,d),a.api.addUtcCueRange(f,c,e,"compositeembargo",!1)))}};
IWa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.D)};
KWa=function(a){TU.call(this,a);TT(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));TT(this.api,"updateDownloadState",this.updateDownloadState.bind(this));TT(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));TT(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));TT(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));TT(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this))};
nV=function(a){TU.call(this,a);var b=this;TT(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()});
TT(a,"getAvailableQualityDataAndMessaging",function(){return b.getAvailableQualityDataAndMessaging()})};
LWa=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};
MWa=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++}};
NWa=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(a=d.next();!a.done;a=d.next())e=a.value,(a=e.quality)&&!b.has(a)&&(e.formatId=void 0),c.push(e);return c};
oV=function(a){g.V.call(this,{I:"button",La:["ytp-pip-button","ytp-button"],X:{title:"{{title}}","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},V:[Lwa()]});var b=this;this.api=a;this.Ta("click",this.onClick);var c=this.api.Cn(),d=c.subscribe("visibilitystatechange",function(){b.Sa(c.ut())});
this.addOnDisposeCallback(function(){c.Ih(d)});
fU(a,this.element,this);this.Sa(c.ut())};
OWa=function(a){TU.call(this,a);var b=this;this.events=new g.IK(a);g.N(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.createButton()})};
PWa=function(a){var b=a.api.getVideoData();g.UF(a.button,b.YU)};
QWa=function(a){TU.call(this,a);var b=this;this.events=new g.IK(a);g.N(this,this.events);TT(this.api,"musicDisableUi",function(){g.Yu(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
TT(this.api,"musicEnableUi",function(){g.$u(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
g.qV=function(a,b,c,d,e){b=void 0===b?!1:b;d=void 0===d?!1:d;e=void 0===e?!1:e;g.NF.call(this);this.Y=e;this.N=!1;this.D=new DC(this);this.G=this.K=null;this.C=this.B=!1;g.N(this,this.D);this.target=a;this.j=b;this.Z=c||a;this.N=d;b&&(g.Vc&&this.target.setAttribute("draggable","true"),e||(this.target.style.touchAction="none"));pV(this)};
rV=function(a){g.FC(a.D,!a.j)};
pV=function(a){a.G=null;a.K=null;a.T(sV("over"),a.Cw);a.T("touchstart",a.aM);a.j&&a.T(sV("down"),a.k9)};
RWa=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier===a.K)return d}return null};
sV=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
SWa=function(a,b,c){g.V.call(this,{I:"div",La:["ytp-overlay","ytp-speedmaster-overlay"],V:[{I:"div",S:"ytp-speedmaster-user-edu",V:[{I:"div",S:"ytp-speedmaster-label",ya:b},{I:"div",S:"ytp-speedmaster-icon",ya:"{{icon}}"}]}]});this.J=a;this.j=this.Ga("ytp-speedmaster-user-edu");c&&(this.updateValue("icon",Awa()),g.Yu(this.j,"ytp-speedmaster-has-icon"));this.J.createClientVe(this.j,this,173040,!0);this.Rh()};
uV=function(a){TU.call(this,a);var b=this;this.D=this.C=!1;this.Ra=g.lJ(this.api.U().experiments,"speedmaster_touch_activation_ms")||500;this.Ca=g.lJ(this.api.U().experiments,"speedmaster_cancellation_movement_dp")||10;this.Na=g.lJ(this.api.U().experiments,"speedmaster_playback_rate")||2;this.B=new g.IK(a);g.N(this,this.B);var c=this.L("web_speedmaster_updated_edu");c&&(this.G="2x");this.speedmasterUserEdu=new SWa(a,this.G,c);g.N(this,this.speedmasterUserEdu);g.oU(this.api,this.speedmasterUserEdu.element,
4);this.j=new g.qV(this.api.qb().fz,!0,null,!1,!0);g.N(this,this.j);this.delay=new g.Qu(this.Ea,this.Ra,this);g.N(this,this.delay);this.B.T(a,"videodatachange",function(d,e){if(c)tV(b);else{var f,h;if(d=null==(f=e.getWatchNextResponse())?void 0:null==(h=f.playerOverlays)?void 0:h.playerOverlayRenderer){var l,m;(f=null==(l=g.U(d.speedmasterUserEdu,TWa))?void 0:null==(m=l.bodyText)?void 0:m.content)&&f!==b.G&&(b.speedmasterUserEdu.j.textContent=f);b.G=f;tV(b)}}},this);
this.B.T(a,"presentingplayerstatechange",function(){tV(b)},this);
this.B.T(a,"autonavvisibility",function(){tV(b)},this);
this.api.Cn().subscribe("visibilitystatechange",function(){tV(b)});
this.B.T(a,"rootnodemousedown",function(d){b.Z=d});
this.L("web_speedmaster_spacebar_control")&&(this.B.T(a,"keyboardserviceglobalkeydown",function(d,e){b.ma=e;UWa(b,d,!0)},this),this.B.T(a,"keyboardserviceglobalkeyup",function(d){UWa(b,d,!1)},this))};
vV=function(a){a.delay.stop();a.j.unsubscribe("dragmove",a.N,a);a.j.unsubscribe("dragend",a.K,a);a.C&&(a.C=!1,a.speedmasterUserEdu.Rh(),a.api.setPlaybackRate(a.Ia),a.api.showControls(),a.Ma&&a.api.pauseVideo())};
UWa=function(a,b,c){c?32!==b.keyCode||b.repeat||a.C||!a.D||g.Ru(a.delay):vV(a)};
tV=function(a){var b,c;var d=!!a.G&&!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.Mf()&&2!==a.api.getPresentingPlayerType()&&!g.JG(a.api.Xb(),2)&&!(null==(c=g.cU(a.api))?0:c.Vg())&&!a.api.kd()&&VWa(a.api.Cn());a.D!==d&&(a.D=d,a.D?a.j.subscribe("dragstart",a.va,a):(a.j.unsubscribe("dragstart",a.va,a),a.j.unsubscribe("dragmove",a.N,a),a.j.unsubscribe("dragend",a.K,a),vV(a)))};
WWa=function(a){TU.call(this,a);var b=this;this.events=new g.IK(a);g.N(this,this.events);TT(this.api,"addPlayerResponseForAssociation",function(c){b.api.addPlayerResponseForAssociation(c)});
TT(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(1))&&(c=c.getPlayerResponse())){var d;c=null!=(d=c.adPlacements)?d:[];d=g.u(c);for(var e=d.next();!e.done;e=d.next()){var f=c=void 0,h=void 0;if(e=null==(c=e.value.adPlacementRenderer)?void 0:null==(f=c.renderer)?void 0:null==(h=f.instreamVideoAdRenderer)?void 0:h.playerVars)c=BB(e),b.api.addPlayerResponseForAssociation(c)}}});
this.events.T(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)})};
wV=function(a,b,c){g.Ab.call(this,b,a);this.j=c};
g.xV=function(a){uL.call(this);var b=this;this.j=a;this.G={};this.listener=function(c){b.dispatchEvent(new wV(b,c.type,c))}};
yV=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.B=this.j=a-1};
XWa=function(a){return a.data[a.j]||0};
zV=function(a){g.I.call(this);this.C=a;this.j=new Map;this.B=new g.Qu(this.sample,250,this);g.N(this,this.B);this.start()};
AV=function(a,b){if(null==(a=a.j.get(b)))a=void 0;else{a=a.buffer;for(b=[];a.B!==a.j;)a.B=(a.B+1)%a.data.length,b.push(a.data[a.B]);a=b}return a||[]};
BV=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:XWa(c.buffer))||0};
YWa=function(a){this.j=a;this.eA=NaN;this.buffer=new yV(100)};
aXa=function(a){var b=a.fd(),c=a.getVideoData(),d=a.kf(),e=d.Kb(),f=a.U(),h=b.PD(),l=b.iS,m=8*BV(l,"bandwidth")/1024,n=BV(l,"networkactivity")/1024,p=BV(l,"bufferhealth");if(b.He){var q=b.videoData.useInnertubeDrmService()?"IT/":"";q+=b.He.j.Ph()+"/"+xP(b.Ev());q+="/"+b.He.Ph()}else q="";var r=q,t=b.getPlayerState().state.toString(16),v=d.getCurrentTime().toFixed(2),x=aL(d.Oh(),",",3);q="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(q+=c.wC?"DS":"SS");q+="DAI, ";var A=ZWa(b);A&&(q+=A)}var E;
(null==(E=a.getVideoData(1))?0:g.NT(E))?(q+="SSAP, ",(E=ZWa(b))&&(q+=E)):fT(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.Ra&&(q=f.Ra.j?q+"wa, ":q+"w, ");q+="s:"+t+" t:"+v+" b:"+x+" ";d.eg()&&(q+="S");d.isPaused()&&(q+="P");d.isEnded()&&(q+="E");a.isOrchestrationLeader()&&(q+=" L");(d=b.DD())&&(q+=" l:"+d.toFixed());d=b.getCurrentTime();t=c.zG;d&&d>t.start&&d<t.end&&(q+=" as");d=q;q=g.xB(NH)("_start",void 0);
t=[];v=g.u(["pl_i","vir","or_p","orfb","pbs"]);for(x=v.next();!x.done;x=v.next())x=x.value,(E=g.xB(NH)(x,void 0))&&q&&(E-=q,t.push(x+":"+Math.round(E)));q=t.join(" ");t=g.jS();v=g.nU(a).o8;x=c.C&&!c.C.j?"display:none":"";E=String(c.videoId)+" / ";A=c.clientPlaybackNonce;f=f.L("html5_long_scpn");f=void 0===f?!1:f;if(A&&16==A.length){var F=10;f&&(A+="AAAA",F=20);for(var G=0,M="",P=0;P<F;P++)if(G=(G<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(A.charAt(P)),4==P%5){for(var R=
"",ba=0;6>ba;ba++)R="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(G&31)+R,G>>=5;M+=R}A=M.substr(0,4)+" "+M.substr(4,4)+" "+M.substr(8,4);f&&(A+=" "+M.substr(12,4)+" "+M.substr(16,4));f=A}else f="";m={video_id_and_cpn:E+f,codecs:"",dims_and_frames:"",bandwidth_kbps:m.toFixed(0)+" Kbps",buffer_health_seconds:p.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:r?"":"display:none",drm:r,debug_info:d,extra_debug_info:"",bandwidth_style:x,network_activity_style:x,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<t?"*"+t.toFixed(2):"");p="-";h.totalVideoFrames&&(p=(h.droppedVideoFrames||0)+" dropped of "+h.totalVideoFrames);m.dims_and_frames=n+" / "+p;a=a.getVolume();h=DTa(c);var na;n=(null==(na=c.D)?0:na.audio.j)?"DRC":Math.round(a*h)+"%";na=Math.round(a)+"% / "+n;a=c.Vf.toFixed(1);isFinite(Number(a))&&(na+=" (content loudness "+a+"dB)");m.volume=na;m.resolution=e.videoWidth+"x"+e.videoHeight;
if(na=c.B)if(e=na.video)a=e.fps,1<a&&(m.resolution+="@"+a),(a=g.CV(b))&&a.video&&(m.resolution+=" / "+a.video.width+"x"+a.video.height,1<a.video.fps&&(m.resolution+="@"+a.video.fps)),m.codecs=$Wa(na),!c.D||na.audio&&na.video?na.XY&&(m.codecs+=" / "+na.XY+"A"):m.codecs+=" / "+$Wa(c.D),e.B||e.primaries?(na=e.B||"unknown","smpte2084"===na?na+=" (PQ)":"arib-std-b67"===na&&(na+=" (HLG)"),m.color=na+" / "+(e.primaries||"unknown"),m.color_style=""):m.color_style="display:none";e=c.isLivePlayback;na=c.ye;
m.live_mode_style=e||na?"":"display:none";m.live_latency_style=e?"":"display:none";if(na)m.live_mode="Post-Live"+(gT(c)?" Manifestless":"");else if(e){na=BV(l,"livelatency");m.live_latency_secs=na.toFixed(2)+"s";e=gT(c)?"Manifestless, ":"";c.fb&&(e+="Windowed, ");a="Uncertain";if(0<=na&&120>na)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;(na=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+na.sequence);m.live_mode=e}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples=AV(l,"bandwidth");m.network_activity_samples=AV(l,"networkactivity");m.live_latency_samples=AV(l,"livelatency");m.buffer_health_samples=
AV(l,"bufferhealth");b=g.OT(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";cT(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20240305_00_RC00",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};
$Wa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
DV=function(a,b,c,d,e){g.V.call(this,{I:"div",S:"ytp-horizonchart"});this.K=b;this.sampleCount=c;this.D=d;this.G=e;this.index=0;this.heightPx=-1;this.C=this.B=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.K+"em"};
EV=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.If("CANVAS"),a.B=c.getContext("2d")}catch(l){}if(a.B){var d=a.j*a.sampleCount;a.C=c;a.C.width=d;a.C.style.width=d+"px";a.element.appendChild(a.C)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c<a.sampleCount;c++)d=g.If("SPAN"),d.style.width=a.j+"px",d.style.left=a.j*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.B&&(c=1<(window.devicePixelRatio||1)?2:1,a.C.height=a.heightPx*c,a.C.style.height=
a.heightPx+"px",a.B.scale(1,c)));b=g.u(b);for(d=b.next();!d.done;d=b.next()){c=a;var e=a.index,f=d.value;for(d=0;d+2<c.D.length&&c.D[d+1]<f;)d++;f=Math.min(1,(f-c.D[d])/(c.D[d+1]-c.D[d]));if(c.B)c.B.fillStyle=c.G[d],c.B.fillRect(e*c.j,0,c.j,c.heightPx),c.B.fillStyle=c.G[d+1],c.B.fillRect(e*c.j,c.heightPx*(1-f),c.j,c.heightPx);else{e=c.element.children[e];var h=window.devicePixelRatio||1;f=Math.min(c.heightPx,Math.round(c.heightPx*f*h)/h)||0;e.style.height=f+"px";e.style.backgroundColor=c.G[d+1];e.style.borderTop=
"solid "+(c.heightPx-f)+"px "+c.G[d]}a.index=(a.index+1)%a.sampleCount}b=a.index;a.B?a.B.clearRect(b*a.j,0,a.j,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
FV=function(a){var b=null;b={I:"button",La:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],X:{title:"close"},ya:"[X]"};g.V.call(this,{I:"div",La:["html5-video-info-panel","ytp-sfn"],V:[b,{I:"div",La:["html5-video-info-panel-content","ytp-sfn-content"],V:[{I:"div",V:[{I:"div",ya:"Video ID / sCPN"},{I:"span",ya:"{{video_id_and_cpn}}",S:"ytp-sfn-cpn"}]},{I:"div",V:[{I:"div",ya:"Viewport / Frames"},{I:"span",ya:"{{dims_and_frames}}"}]},{I:"div",V:[{I:"div",ya:"Current / Optimal Res"},{I:"span",
ya:"{{resolution}}"}]},{I:"div",V:[{I:"div",ya:"Volume / Normalized"},{I:"span",ya:"{{volume}}"}]},{I:"div",V:[{I:"div",ya:"Codecs"},{I:"span",ya:"{{codecs}}"}]},{I:"div",X:{style:"{{shader_info_style}}"},V:[{I:"div",ya:"Shader Info"},{I:"span",ya:"{{shader_info}}"}]},{I:"div",X:{style:"{{color_style}}"},V:[{I:"div",ya:"Color"},{I:"span",ya:"{{color}}"}]},{I:"div",X:{style:"{{drm_style}}"},V:[{I:"div",ya:"Protected"},{I:"span",ya:"{{drm}}"}]},{I:"div",X:{style:"{{bandwidth_style}}"},V:[{I:"div",ya:"Connection Speed"},
{I:"span",V:[{I:"span",ya:"{{bandwidth_chart}}"},{I:"span",ya:"{{bandwidth_kbps}}"}]}]},{I:"div",X:{style:"{{network_activity_style}}"},V:[{I:"div",ya:"Network Activity"},{I:"span",V:[{I:"span",ya:"{{network_activity_chart}}"},{I:"span",ya:"{{network_activity_bytes}}"}]}]},{I:"div",V:[{I:"div",ya:"Buffer Health"},{I:"span",V:[{I:"span",ya:"{{buffer_health_chart}}"},{I:"span",ya:"{{buffer_health_seconds}}"}]}]},{I:"div",X:{style:"{{live_latency_style}}"},V:[{I:"div",ya:"Live Latency"},{I:"span",V:[{I:"span",
ya:"{{live_latency_chart}}"},{I:"span",ya:"{{live_latency_secs}}"}]}]},{I:"div",X:{style:"{{live_mode_style}}"},V:[{I:"div",ya:"Live Mode"},{I:"span",ya:"{{live_mode}}"}]},{I:"div",X:{style:"{{playback_categories_style}}"},V:[{I:"div",ya:"Playback Categories"},{I:"span",ya:"{{playback_categories}}"}]},{I:"div",V:[{I:"div",ya:"Mystery Text"},{I:"span",ya:"{{debug_info}}"}]},{I:"div",X:{style:"{{extra_debug_info_style}}"},V:[{I:"div",ya:""},{I:"span",V:[{I:"span",ya:"{{extra_debug_info}}"}]}]},{I:"div",
V:[{I:"div",ya:"Date"},{I:"span",ya:"{{date}}"}]},{I:"div",X:{style:"{{cotn_and_local_media_style}}"},V:[{I:"div",ya:"COTN / Local Media"},{I:"span",ya:"{{cotn_and_local_media}}"}]},{I:"div",X:{style:"{{release_style}}"},V:[{I:"div",ya:"Player Release"},{I:"span",ya:"{{release_name}}"}]}]}]});this.Va=a;this.position=0;this.G=!0;b?(a=this.Ga("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.Y={};this.j=new DV(300,1,150,a,b);g.N(this,this.j);this.updateValue("bandwidth_chart",this.j);this.C=new DV(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.N(this,this.C);this.updateValue("live_latency_chart",this.C);this.B=new DV(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.N(this,this.B);this.updateValue("buffer_health_chart",this.B);this.K=new DV(300,1,150,c,b);g.N(this,this.K);this.updateValue("network_activity_chart",
this.K);this.delay=new g.Qu(this.Sa,500,this);g.N(this,this.delay);this.D=new g.Qu(this.N,2E4,this);g.N(this,this.D)};
dXa=function(a){TU.call(this,a);var b=this;TT(a,"getStatsForNerds",function(){return aXa(b.api)});
UT(a,"showVideoInfo",function(){bXa(b,!0)});
UT(a,"hideVideoInfo",function(){bXa(b,!1)});
UT(a,"isVideoInfoVisible",function(){return cXa(b)})};
bXa=function(a,b){var c=cXa(a);a.j||(a.j=new FV(a.api),g.N(a,a.j),g.oU(a.api,a.j.element,4));g.UF(a.j,b);var d=kU(a.api.Bb());d&&d.loaded&&c!==b&&d.qS();b&&a.api.qa("sfn",{},!0)};
cXa=function(a){var b;return!(null==(b=a.j)||!b.Jb)};
GV=function(){g.I.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.Ou(this.j,null,this);g.N(this,this.delay)};
eXa=function(a,b){if("path"===b.I)return b.X.d;if(b.V)for(var c=0;c<b.V.length;c++){var d=b.V[c];if(d&&"string"!==typeof d&&(d=eXa(a,d)))return d}};
iXa=function(a,b,c){c=eXa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=QF();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=fXa(e),m=fXa(c);gXa(a,function(n){d.setAttribute("d",hXa(l,m,n))},200)};
gXa=function(a,b,c){a.B=b;a.startTime=(0,g.pD)();a.duration=c;a.j()};
fXa=function(a){var b=[];a=a.match(jXa);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};
hXa=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};
HV=function(a){g.V.call(this,{I:"button",La:["ytp-size-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ya:"{{icon}}"});this.api=a;this.hw=null;this.transition=new GV;g.N(this,this.transition);this.T(a,"sizestylechange",this.Sa);this.T(a,"fullscreentoggled",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);a.createClientVe(this.element,this,139116);this.Sa();this.Ta("click",this.onClick);fU(a,this.element,
this)};
kXa=function(a){TU.call(this,a);var b=this;this.events=new g.IK(a);g.N(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.button=new HV(a);g.N(b,b.button);a.My(b.button)})};
lXa=function(a){TU.call(this,a);var b=this;UT(this.api,"getPlaybackRate",function(){return b.api.getPlaybackRate()});
UT(this.api,"setPlaybackRate",function(c){"number"===typeof c&&b.api.setPlaybackRate(c)})};
IV=function(a){function b(e){e="https://jnn-pa.googleapis.com"+e;return c?g.Dp(e,"$httpHeaders",d):e}
var c=void 0===c?!1:c;this.jj=a;this.j={};var d={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw","Content-Type":"application/json+protobuf"};this.j={method:"POST",format:"RAW",postBodyFormat:"JSPB",headers:c?{}:d};this.B=b("/$rpc/google.internal.waa.v1.Waa/Create");this.C=b("/$rpc/google.internal.waa.v1.Waa/GenerateIT")};
JV=function(a){TU.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.Sb=null;this.D=!1;this.B=null;var c=a.U().getWebPlayerContextConfig();this.events=new g.IK(a);g.N(this,this.events);this.events.T(a,"spsumpstatuschange",function(d){b.aq=d.aq;a.U().Dc()&&b.api.qa("sps",{status:b.aq||""});if(b.L("html5_handle_sps_status"))if(1===b.aq)b.api.HK(0);else if(2===b.aq||3===b.aq)if(b.D&&!b.B&&mXa(b),3===b.aq){var e=b.api.uO();e++;var f;d=null!=(f=d.Qba)?f:Infinity;if(e<d){b.api.gJ(!0);var h;null==
(h=b.B)||h.then(function(){b.api.gJ(!1)});
b.api.HK(e)}else b.api.Bg("ump.spsrejectfailure",1,"HTML5_SPS_UMP_STATUS_REJECTED")}});
this.useLivingRoomPoToken=!(null==c||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.Sb=a.Ei();var d=(b.L("html5_generate_session_po_token")||b.L("html5_generate_content_po_token"))&&!b.useLivingRoomPoToken;try{d&&(b.Sb.gi("pot_isc"),nXa(b),b.L("html5_webpo_idle_priority_job")?g.VC(g.XC(),function(){oXa(b)}):oXa(b))}catch(e){e instanceof Error&&g.uF(e)}});
a.PR(this)};
pXa=function(a,b){var c=a.L("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN";var d=a.L("html5_webpo_critical_experiment")?"6BW35shnjYbBdd0Xn55t":a.L("html5_webpo_critical_control")?"Av5DGcHDtt8bC80Ew9nc":a.L("html5_po_token_enable_webpo_experimental")?"bxNLZUJrsnkb8KzwCOTR":a.L("html5_generate_content_po_token")?"cpYJehUPFA4JYTzKNoEQ":AR(b.experiments,"html5_mock_content_binding_for_session_token")?"Lw8FZiO1SU2A58z2DDu7":"O43z0dpjhgX20SCx4KAo";d=g.yJ(b)?c:
d;a.L("html5_placeholder_po_tokens")&&(d="2ZCPXHYZSpebQXqOYNtj");AR(b.experiments,"html5_cache_request_key")&&(d=AR(b.experiments,"html5_cache_request_key"));return d};
nXa=function(a){function b(h){g.uF(h)}
var c=a.api.U(),d=pXa(a,c);try{var e=a.L("html5_po_token_enable_webpo_experimental")?new IV(d):dha(d),f=nQa(c.experiments);a.j=new lq({jj:d,onError:b,sz:e,Vy:f});g.N(a,a.j)}catch(h){h instanceof Error&&g.uF(h)}};
oXa=function(a){var b=a.api.U();a.Sb.gi("pot_ist");var c;null==(c=a.j)||c.start();a.L("html5_generate_content_po_token")||(KV(a),mXa(a),b=g.lJ(b.experiments,"html5_session_po_token_interval_time_ms")||0,0<b&&(a.C=g.MB(function(){KV(a)},b)),a.D=!0)};
KV=function(a){var b,c,d,e;g.H(function(f){if(!a.L("html5_generate_session_po_token")||a.useLivingRoomPoToken)return f.return();b=a.api.U();c=g.rB("EOM_VISITOR_DATA")||g.rB("VISITOR_DATA");d=b.pp?b.datasyncId:c;e=AR(b.experiments,"html5_mock_content_binding_for_session_token")||b.livingRoomPoTokenId||d;b.rg=qXa(a,e);g.Aa(f)})};
qXa=function(a,b){if(!a.j)return"";try{var c=a.j.isReady();c?a.Sb.gi("pot_cms"):a.Sb.gi("pot_csms");var d="";d=a.L("html5_web_po_token_caching")?kha(a.j,{gz:b,Ry:{HV:b,U8:150,H5:!0,Oca:!0}}):kha(a.j,{gz:b});if(c){if(a.Sb.gi("pot_cmf"),a.L("html5_use_sps_ump_part")){var e;null==(e=a.B)||e.resolve();a.B=null}}else a.Sb.gi("pot_csmf");return d}catch(f){return g.uF(f),""}};
mXa=function(a){a.j&&(a.L("html5_use_sps_ump_part")&&(a.B=new tL),a.j.ready().then(function(){a.Sb.gi("pot_if");KV(a)}))};
rXa=function(a){TU.call(this,a);var b=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.IK(a);g.N(this,this.events);this.events.T(a,"heartbeatRequest",function(c){if(b.freePreviewUsageDetails.length||null!==b.freePreviewWatchedDuration)c.heartbeatRequestParams||(c.heartbeatRequestParams={}),c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={}),0<b.freePreviewUsageDetails.length?c.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
b.freePreviewUsageDetails:c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}});
TT(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=c});
TT(a,"setFreePreviewUsageDetails",function(c){b.freePreviewUsageDetails=c})};
LV=function(a){g.I.call(this);this.features=[];var b=this.j,c=new yWa(a),d=new UU(a),e=new nV(a),f=new JV(a);var h=g.wJ(a.U())?void 0:new fV(a);var l=new mV(a),m=new dXa(a),n=new lXa(a),p=new jV(a);var q=g.wJ(a.U())?new rXa(a):void 0;var r=a.L("html5_enable_ssap")?new WWa(a):void 0;var t=a.L("web_cinematic_watch_settings")&&null!=(t=a.U().getWebPlayerContextConfig())&&t.cinematicSettingsAvailable?new hWa(a):void 0;var v=new iV(a);var x=a.L("enable_courses_player_overlay_purchase")?new vWa(a):void 0;
var A=g.kS(a.U())?new rWa(a):void 0;var E=new lWa(a);var F=a.U().D?new mWa(a):void 0;var G=a.L("web_player_move_autonav_toggle")&&a.U().Pe?new XVa(a):void 0;var M=g.kS(a.U())?new kV(a):void 0;var P=a.L("web_enable_speedmaster")&&g.kS(a.U())?new uV(a):void 0;var R=a.U().jl?void 0:new kXa(a);var ba=a.L("report_pml_debug_signal")?new SVa(a):void 0;var na=new KWa(a),ta=new OWa(a);var ka=a.L("enable_web_player_player_in_bar_feature")&&g.$G(a.U())?new QWa(a):void 0;var va="flix"===a.U().playerStyle?new xWa(a):
void 0;var ea=navigator.mediaSession&&window.MediaMetadata&&a.U().Jl?new CWa(a):void 0;var Y=a.L("html5_enable_drc_toggle_api")&&a.L("html5_enable_drc")?new eV(a):void 0;var Ma=new MVa(a);var y;var aa="apps-elements"===(null==(y=a.U().getWebPlayerContextConfig())?void 0:y.houseBrandEnvironment)?new wWa(a):void 0;b.call(this,c,d,e,f,h,l,m,n,p,q,r,t,v,x,A,E,F,G,M,P,R,ba,na,ta,ka,va,ea,Y,Ma,aa)};
MV=function(){this.B=this.j=NaN};
sXa=function(a,b){this.W=a;this.timerName="";this.C=!1;this.B=NaN;this.D=new MV;this.j=b||null;this.C=!1};
tXa=function(a,b,c){var d=g.$R(b.Ha)&&!b.Ha.N;if(b.Ha.Hl&&(WR(b.Ha)||"shortspage"===b.Ha.Ma||qS(b.Ha)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.rB("TIMING_ACTION")||qB("TIMING_ACTION",a.W.csiPageType);a.W.csiServiceName&&qB("CSI_SERVICE_NAME",a.W.csiServiceName);if(a.j){d=a.j.Ei();for(var e=g.u(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,SH(f,d[f],a.timerName);d=g.xB(uya)(a.j.tH);g.QH(d,a.timerName);d=a.j;d.B={};d.tH={}}g.QH({playerInfo:{visibilityState:g.xB(qya)()},playerType:"LATENCY_PLAYER_HTML5"},
a.timerName);a.G!==b.clientPlaybackNonce||Number.isNaN(a.B)||(PH("_start",a.timerName)?c=g.xB(NH)("_start",a.timerName)+a.B:g.uF(new g.QC("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!PH("pbs",a.timerName)&&a.tick("pbs",c)}};
uXa=function(a,b,c,d,e,f,h){a=(a===c?"video":"ad")+"_to_"+(b===c?"video":"ad");if("video_to_ad"!==a||null!=h&&h.Ea){h="ad_to_video"===a?h:e;c={};if(null==e?0:e.G)c.cttAuthInfo={token:e.G,videoId:e.videoId};c.startTime=null!=f?f:d;RH(a,c);var l,m;e={targetVideoId:null!=(l=null==e?void 0:e.videoId)?l:"empty_video",targetCpn:b,adVideoId:null!=(m=null==h?void 0:h.videoId)?m:"empty_video",adClientPlaybackNonce:null==h?void 0:h.clientPlaybackNonce};if(null==h?0:h.adFormat)e.adType=h.adFormat;g.QH(e,a);
SH("pbs",d,a)}};
NV=function(a){Gya();Eya();a.timerName=""};
vXa=function(a){if(a.j){var b=a.j;b.B={};b.tH={}}a.C=!1;a.G=void 0;a.B=NaN};
wXa=function(a,b){g.NF.call(this);this.Ha=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.Z={};this.B=0;if(a=b.session_data)this.sessionData=zB(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 GS("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.URa(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.Z=CS(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
xXa=function(a){return!!(a.playlist||a.list||a.api)};
yXa=function(a){var b=a.index+1;return b>=a.length?0:b};
zXa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.OV=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.XS(a.Ha,b),g.N(a,e),e.Om=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
AXa=function(a,b){a.index=g.He(b,0,a.length-1);a.startSeconds=0};
BXa=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.OV(a);a.items=[];for(var d=g.u(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}};
EXa=function(a,b){var c,d,e,f,h,l,m;return g.H(function(n){if(1==n.j){c=g.eI();var p=a.U(),q={context:g.RT(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};if(p.L("embeds_web_enable_havs_getembeddedplayer")){var r=p.getWebPlayerContextConfig();if(null==r?0:r.encryptedHostFlags)q.playbackContext.contentPlaybackContext.encryptedHostFlags=r.encryptedHostFlags;if(null==r?0:r.hideInfo)q.playerParams={showinfo:!1}}p=p.embedConfig;r=b.docid||b.video_id||b.videoId||b.id;if(!r){r=
b.raw_embedded_player_response;if(!r){var t=b.embedded_player_response;t&&(r=JSON.parse(t))}if(r){var v,x,A,E,F,G;r=(null==(G=g.U(null==(v=r)?void 0:null==(x=v.embedPreview)?void 0:null==(A=x.thumbnailPreviewRenderer)?void 0:null==(E=A.playButton)?void 0:null==(F=E.buttonRenderer)?void 0:F.navigationEndpoint,g.hT))?void 0:G.videoId)||null}else r=null}v=(v=r)?v:void 0;x=a.playlistId?a.playlistId:b.list;A=b.listType;if(x){var M;"user_uploads"===A?M={username:x}:M={playlistId:x};CXa(p,v,b,M);q.playlistRequest=
M}else b.playlist?(M={templistVideoIds:b.playlist.toString().split(",")},CXa(p,v,b,M),q.playlistRequest=M):v&&(M={videoId:v},p&&(M.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=M);d=q;e=g.iH(DXa);g.Ba(n,2);return g.z(n,g.WH(c,d,e),4)}if(2!=n.j)return f=n.B,h=a.U(),b.raw_embedded_player_response=f,h.Ia=Kpa(b,g.UR(h)),h.C="EMBEDDED_PLAYER_MODE_PFL"===h.Ia,f&&(l=f,l.trackingParams&&lP(l.trackingParams)),n.return(new g.XS(h,b));m=g.Da(n);m instanceof Error||(m=Error("b259802748"));g.tF(m);return n.return(a)})};
CXa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.QV=function(a,b){PV.get(a);PV.set(a,b)};
g.RV=function(a){g.NF.call(this);this.loaded=!1;this.player=a};
FXa=function(){this.B=[];this.j=[]};
g.SV=function(a,b){return b?a.j.concat(a.B):a.j};
g.TV=function(a,b){switch(b.kind){case "asr":GXa(b,a.B);break;default:GXa(b,a.j)}};
GXa=function(a,b){g.Db(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)};
g.UV=function(a){g.I.call(this);this.W=a;this.B=new FXa;this.D=[];this.N=[]};
g.VV=function(a,b,c){g.UV.call(this,a);this.audioTrack=c;this.j=null;this.C=!1;this.D=b.Du;this.N=b.UB;this.C=g.GT(b)};
HXa=function(){this.j=10;this.nj=!1};
IXa=function(a,b){b=void 0===b?{}:b;var c=void 0===b.VD?!1:b.VD,d=new HXa;d.nj=(void 0===b.hasSubfragmentedFmp4?!1:b.hasSubfragmentedFmp4)||c;d.j=g.lJ(a.experiments,"html5_streaming_xhr_time_based_consolidation_ms")||d.j;return d};
g.JXa=function(a){this.Ha=a;this.N=new HXa;this.To=this.So=!1;this.Tm=2;this.ma=20971520;this.Ra=8388608;this.Y=120;this.Jc=62914560;this.Wm=g.lJ(this.Ha.experiments,"html5_min_readbehind_secs");this.nG=g.lJ(this.Ha.experiments,"html5_min_readbehind_cap_secs");this.Vi=this.Ha.L("html5_offline_reset_media_stream_on_unresumable_slices");this.Pb=NaN;this.Dp=this.lk=this.Fu=2;this.fn=1024*WV(this,"html5_request_size_min_kb",64);this.Ea=2097152;this.Px=WV(this,"html5_bypass_contention_secs");this.pp=1048576;
this.Dl=!1;this.Wi=WV(this,"html5_repredict_interval_ms",1800);this.BA=WV(this,"html5_head_miss_secs",5);this.yG=WV(this,"html5_min_upgrade_health_secs",10);this.fb=15;this.wh=1;this.K=1.15;this.Z=1.05;this.jl=1;this.xG=WV(this,"html5_min_seconds_between_format_selections",8);this.sA=WV(this,"html5_max_buffer_health_for_downgrade_secs",15);this.xu=zR;this.rg=this.jc=!1;this.Yg=6;this.B=!1;this.Ui=g.lJ(this.Ha.experiments,"html5_min_startup_buffered_media_duration_secs");this.Uo=g.lJ(this.Ha.experiments,
"html5_post_interrupt_readahead");this.qy=this.Ha.L("html5_disable_classic_alr");this.Vo=g.lJ(this.Ha.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Cu=100;this.Yf=10;this.AG=6;this.Gx=WV(this,"html5_ssdai_failure_retry_limit",3);this.zl=this.Ha.experiments.kb("html5_clone_original_for_fallback_location");this.Xf=!1;this.Nb=g.lJ(this.Ha.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.zj=g.lJ(this.Ha.experiments,"html5_subsegment_readahead_timeout_secs");this.yC=
g.lJ(this.Ha.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.yj=g.lJ(this.Ha.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.zC=g.lJ(this.Ha.experiments,"html5_subsegment_readahead_min_load_speed");this.Ix=g.lJ(this.Ha.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.BC=g.lJ(this.Ha.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Zf=WV(this,"html5_hopeless_secs",15);this.Pm=1;this.Yc=!1;this.tC=this.Ha.L("html5_restrict_streaming_xhr_on_sqless_requests");
this.QA=g.lJ(this.Ha.experiments,"html5_max_headm_for_streaming_xhr");this.SB=this.Ha.L("html5_pipeline_manifestless_allow_nonstreaming");this.WB=this.Ha.L("html5_prefer_server_bwe3");this.Jz=this.Ha.L("html5_last_slice_transition");this.wC=this.Ha.L("html5_store_xhr_headers_readable");this.Qr=this.Ff=this.Yj=!1;this.Rm=g.lJ(this.Ha.experiments,"html5_max_drift_per_track_secs");this.Oo=this.Ha.L("html5_no_placeholder_rollbacks");this.xC=this.Ha.L("html5_subsegment_readahead_enable_mffa");this.Fe=
this.Ha.L("html5_allow_video_keyframe_without_audio");this.RB=this.Ha.L("html5_enable_vp9_fairplay");this.Xa=!0;this.me=this.Ma=this.Vb=!1;this.Kl=!0;this.Ip=!1;this.D="";this.wy=1048576;this.Ee=[];this.Ay=this.Ha.L("html5_woffle_resume");this.jk=this.Ha.L("html5_abs_buffer_health");this.Oy=this.Ha.L("html5_interruption_resets_seeked_time");this.lF=g.lJ(this.Ha.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Ia=!1;this.Nl=this.Ha.L("html5_explicitly_dispose_xhr");this.Wo=!1;
this.xk=!this.Ha.L("html5_encourage_array_coalescing");this.vl=!1;this.sC=this.Ha.L("html5_restart_on_unexpected_detach");this.tj=0;this.Za="";this.Gy=this.Ha.L("html5_filter_non_efficient_formats_for_safari");this.Ha.L("html5_format_hybridization");this.Lx=this.Ha.L("html5_abort_before_separate_init");this.uC=Cpa();this.vC=this.Ha.L("html5_serialize_server_stitched_ad_request");this.jy=this.Ha.L("html5_skip_buffer_check_seek_to_head");this.Bd=!1;this.Ox=this.Ha.L("html5_attach_po_token_to_bandaid");
this.Um=g.lJ(this.Ha.experiments,"html5_max_redirect_response_length")||8192;this.wj=this.Ha.L("html5_rewrite_timestamps_for_webm");this.ib=this.Ha.L("html5_only_media_duration_for_discontinuities");this.rC=g.lJ(this.Ha.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Ha.L("html5_onesie_live");this.CC=this.Ha.L("html5_onesie_premieres");this.zy=this.Ha.L("html5_drop_onesie_for_live_mode_mismatch");this.PB=g.lJ(this.Ha.experiments,"html5_onesie_live_ttl_secs")||8;this.Qo=g.lJ(this.Ha.experiments,
"html5_attach_num_random_bytes_to_bandaid");this.QB=g.lJ(this.Ha.experiments,"html5_onesie_request_timeout_ms")||3E3;this.j=!1;this.Ey=this.Ha.L("html5_reinit_source_buffer_on_sabr_format");this.Jl=this.Ha.L("html5_init_source_buffer_after_metadata");this.Du=!1;this.Ca=this.Ha.L("html5_ssdai_use_post_for_media")&&this.Ha.L("gab_return_sabr_ssdai_config");this.EC=this.Ha.L("html5_use_post_for_media");this.Gb=this.Ha.L("html5_use_live_ump_heartbeat");this.Ob=this.Ha.L("html5_use_sps_ump_part");this.useUmp=
this.Ha.L("html5_use_ump")||this.Gb||this.Ob;this.Na=this.va=!1;this.tb=this.Ha.L("html5_enable_drc_toggle_api")?this.Ha.Nm:this.Ha.L("html5_enable_drc");this.qC=this.Ha.L("html5_reset_primary_stats_on_redirector_failure");this.YB=this.Ha.L("html5_remap_to_original_host_when_redirected");this.Hl=this.Wf=this.C=!1;this.Vf=this.Ha.L("html5_enable_sabr_format_selection");this.Ll=this.Ha.L("html5_sabr_support_quality_constraints");this.oC=this.Ha.L("html5_sabr_remove_all_quality_constraints");this.ly=
this.Ha.L("html5_iterative_seeking_buffered_time");this.fk=this.Ha.L("html5_use_network_error_code_enums");this.uy=this.Ha.L("html5_disable_overlapping_requests");this.G=!1;this.enableServerDrivenRequestCancellation=this.Ha.L("html5_enable_server_driven_request_cancellation");this.Fy=this.Ha.L("html5_enable_sabr_request_timing");this.Ml=this.Ha.L("html5_enable_server_format_filter");this.yy=this.Ha.L("html5_drc_edit_sync_workaround");this.By=this.Ha.L("html5_enable_lawnmower");this.Cy=this.Ha.L("html5_enable_lawnmower_messaging");
this.py=this.Ha.Dc()?g.lJ(this.Ha.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.rz=g.lJ(this.Ha.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Po=g.lJ(this.Ha.experiments,"html5_normal_latency_mffa_ms")||NaN;this.zG=g.lJ(this.Ha.experiments,"html5_mffa_ms_proxima_override")||this.Po;this.Eu=this.Ha.L("html5_use_goodput_request_for_probing");this.dA=this.Ha.L("html5_live_defrag_only_h264_playbacks");this.cA=this.Ha.L("html5_live_defrag_only_h264_formats");this.DC=
this.Ha.L("html5_use_managed_media_source_buffering");this.XB=this.Ha.L("html5_record_now");this.Pe=!1;this.Lm=g.lJ(this.Ha.experiments,"html5_drm_byterate_soft_cap");this.Mm=g.lJ(this.Ha.experiments,"html5_drm_live_byterate_soft_cap");this.Nm=this.Xo=!1;this.ub=this.Ha.L("html5_sabr_report_request_cancellation_info");this.Gf=this.Ro=this.Hx=!1;this.Ex=this.Ha.L("html5_spoof_4k");this.Vm=WV(this,"html5_min_media_duration_for_cabr_slice");this.pF=this.xk?0:WV(this,"html5_min_media_duration_for_append_prop");
this.pC=this.Ha.L("html5_remove_defrag_without_frame_level_streaming");this.Lc=!0;this.oy=this.Ha.L("html5_consume_all_buffered_bytes_one_poll");this.vy=this.Ha.L("html5_disable_urgent_adaptation");this.Nx=this.Ha.L("html5_apply_constraints_in_client_for_sabr");this.zr=this.Ha.L("html5_send_video_playback_ustreamer_config");this.Dy=this.Ha.L("html5_enable_path_probe_for_sabr_polling");this.Qm=WV(this,"html5_max_discontinuity_rewrite_count");this.Sm=WV(this,"html5_max_drift_seconds");this.Ol=WV(this,
"html5_fixed_media_duration_for_request");this.wr=this.Ha.L("html5_sabr_use_init_selected_audio");this.ll=this.Ha.L("html5_use_init_selected_audio");this.Wa=!1;this.rd=WV(this,"html5_sabr_request_limit_per_period");this.Jx=!1;this.Xq=this.Ha.L("html5_sabr_hbr_reset_media_source");this.er=this.Ha.L("html5_sabr_live_partial_segment");this.Kd=this.Ha.L("html5_sabr_dispose_media_objects");this.Pl=this.Ha.L("html5_ignore_lawnmower_denylist_for_locked_constraint");this.Om=this.Ha.L("html5_log_lawnmower_itag_filtering");
this.Il=!1;this.Mx=this.Ha.L("html5_account_for_underrun_advance_in_sabr")};
EVa=function(a,b,c){c=void 0===c?!1:c;1080<b.video.j&&!a.So&&(a.ma=36700160,a.Ra=5242880,a.Ea=Math.max(4194304,a.Ea),a.So=!0);2160<b.video.j&&!a.To&&(a.ma=104857600,a.Pb=13107200,a.To=!0);0!==g.lJ(a.Ha.experiments,"html5_samsung_kant_limit_max_bitrate")?b.isEncrypted()&&g.dC()&&g.bC("samsung")&&(g.bC("kant")||g.bC("muse"))&&(a.Pb=g.lJ(a.Ha.experiments,"html5_samsung_kant_limit_max_bitrate")):b.isEncrypted()&&g.dC()&&g.bC("kant")&&(a.Pb=1310720);0!==a.Lm&&b.isEncrypted()&&(a.Pb=a.Lm);0!==a.Mm&&b.isEncrypted()&&
c&&(a.Pb=a.Mm);b.Pb&&(a.pp=Math.max(a.fn,Math.min(a.Ea,5*b.Pb)))};
XV=function(a){return a.C&&a.Vf};
YV=function(a){return a.C&&a.Wf&&a.playbackStartPolicy};
KXa=function(a,b,c,d){a.Wf&&(a.playbackStartPolicy=b,a.VB=c,a.UB=d)};
WV=function(a,b,c){return g.lJ(a.Ha.experiments,b)||(void 0===c?0:c)};
g.LXa=function(a,b){return XK(a.info.mimeType)?b?a.info.itag===b:!0:!1};
g.MXa=function(a,b){if(null!=a.j&&g.wJ(b.U())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.yc())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.LXa(c,"386")});
a=!!a.j&&!a.j.isManifestless&&uPa(a.j);return b||a};
g.ZV=function(a,b,c,d,e,f){g.UV.call(this,a);this.videoId=c;this.UX=e;this.eventId=f;this.G={};this.j=null;a=d||g.CB(b).hl||"";a=a.split("_").join("-");this.C=DB(b,{hl:a})};
OXa=function(a){this.j=a;this.B=NXa(this)};
NXa=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.lO(new Uint8Array(a.exports.memory.buffer,l,m));c+=8}console.log(e);return f}}}};
PXa=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)}};
QXa=function(a){var b;return g.H(function(c){return 1==c.j?(b={format:"RAW",method:"GET",responseType:"arraybuffer"},g.z(c,TB(a,b),2)):c.return(c.B.xhr.response)})};
RXa=function(a,b){b=void 0===b?!1:b;var c,d,e,f,h,l;return g.H(function(m){switch(m.j){case 1:return c=new OXa(!1),d=c.B,(b=b||!("instantiateStreaming"in WebAssembly))?(f=WebAssembly,h=f.instantiate,g.z(m,QXa(a),6)):g.z(m,WebAssembly.instantiateStreaming(fetch(a),d),4);case 4:e=m.B;m.Ka(3);break;case 6:return g.z(m,h.call(f,m.B,d),5);case 5:e=m.B;case 3:return l=e,c.module=l.module,c.instance=l.instance,c.exports=c.instance.exports,m.return(c)}})};
SXa=function(a){var b;return g.H(function(c){if(1==c.j)return b=new OXa(!0),b.C=a,g.z(c,a(b.B),2);b.exports=c.B;return c.return(b)})};
TXa=function(a,b,c,d,e){c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;return g.H(function(f){if(!d&&$V)try{return f.return(RXa(a,e))}catch(h){if(c)g.uF(h);else throw h;}return c&&b?f.return(SXa(b)):f.return(Promise.reject(Error("invalid arguments")))})};
UXa=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;var e=void 0===e?!1:e;var f;return g.H(function(h){if(1==h.j)return g.z(h,TXa(a,b,c,d,e),2);f=h.B;f.exports._initialize();if(PXa(f))return h.return(f);throw Error((f.j?"asmjs":"wasm")+" sentinel failed");})};
zQa=function(a,b){if(b.buffer!==a.exports.memory.buffer)return WN.Ek("copyj2w",function(){var c=a.exports.malloc(b.byteLength);c=new Uint8Array(a.exports.memory.buffer,c,b.byteLength);c.set(b);return c})};
VXa=function(a,b){if(b.buffer===a.exports.memory.buffer)return WN.Ek("copyw2j",function(){var c=b.slice();a.exports.free(b.byteOffset);return c})};
WXa=function(a,b){g.I.call(this);var c=this;this.J=a;this.j=b;this.tH={};this.B={};this.C=null;this.K=this.J.L("web_player_defer_modules");this.D=new Set;this.G=new g.IK(this);this.Cd={mnb:function(){return c.j}};
this.Me=new Map;g.N(this,this.G);this.G.T(a,"videodatachange",this.onVideoDataChange)};
g.aW=function(a){return a.Me.get("captions")};
bYa=function(a,b){switch(b){case "ad":return XXa(a);case "annotations_module":return a.J.kd()?a=!1:(b=a.J,a=b.U(),b=b.getVideoData(),a=a.C||b.Y_||"3"===a.controlsType?!1:a.Na.isEmpty()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.Wa||!!g.ET(b)||!!g.BTa(b):!0),a;case "asmjs":return a.J.U().L("html5_allow_asmjs");case "creatorendscreen":return YXa(a);case "embed":return g.UR(a.J.U());case "endscreen":return g.ZXa(a);case "heartbeat":return a.VR();case "inline_preview":return a.J.U().showInlinePreviewUi;
case "kids":return fS(a.J.U());case "remote":return a.J.U().lk;case "miniplayer":return a.J.U().showMiniplayerUiWhenMinimized;case "offline":return a.J.U().zj;case "captions":return $Xa(a);case "unplugged":return g.aS(a.J.U());case "ux":return a.J.U().Za;case "webgl":return aYa(a);case "ypc":return a.TF();case "ypc_clickwrap":return a=a.J.getVideoData(),a.rg&&!a.yC;case "yto":return!!a.J.getVideoData().Ia.includes("yto");default:return g.tF(Error("Module descriptor "+b+" does not match")),!1}};
bW=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.Me.get(b);if(!h||d)if(e||(e=function(){bW(a,b,c,d)}),f||(f=function(){a.J.Ng(b)}),h=h||cYa(a,b,bYa(a,b),e,f))a.Me.set(b,h),h.create(),a.J.ra("modulecreated",b),c&&a.J.Dm("onApiChange")};
eYa=function(a){var b=void 0===b?!1:b;var c,d,e,f,h;return g.H(function(l){if(1==l.j)return(c=a.Me.get("asmjs"))&&!b?l.return(c):null!=(d=PV.get("asmjs"))?(e=d,l.Ka(2)):g.z(l,new Promise(function(m,n){dYa(a,"asmjs",function(){var p=PV.get("asmjs");p?m(p):n("cannot load module asmjs")},n)}),3);
2!=l.j&&(e=l.B);f=e;if(!f)return l.return(Promise.reject("cannot load module asmjs"));h=new f(a.J);a.Me.set("asmjs",h);h.create();return l.return(h)})};
hYa=function(a){fYa(a)&&a.rN();gYa(a)&&(bW(a,"captions",!0),bW(a,"endscreen"),a.sH(),bW(a,"creatorendscreen",!0))};
gYa=function(a){var b=a.J.getVideoData(),c=a.K&&!b.isInlinePlaybackNoAd;a.J.L("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c};
fYa=function(a){a=a.J.getVideoData();var b;if(b=a.L("web_player_defer_ad")){if(g.Fb(a.Ia,"ad")||cT(a,"disable_defer_admodule_on_advertiser_video")&&pTa(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};
$Xa=function(a){var b=a.J.getVideoData();return!!b.me||!!b.captionTracks.length||g.MXa(b,a.J)};
g.ZXa=function(a){var b=a.J.U();if(b.C||qS(b)||b.N||!b.me&&!b.Yg)return!1;var c=a.J.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.L("desktop_enable_autoplay");a=a.J.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.L("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.L("allow_live_autoplay_on_mweb");return!c||b};
g.mU=function(a){return a.Me.get("webgl")};
aYa=function(a){var b=a.J.getVideoData();a=a.J.U();var c=g.Bpa(),d=a.L("enable_spherical_kabuki"),e=g.oS(a);if(g.CT(b))return c||d||e;if(g.AT(b))return e||c||d;if(g.BT(b))return e||c||!1;if(g.qT(b))return e||!1;c=b.B&&b.B.video&&b.B.video.isHdr();return e&&!g.sT(b)&&!c&&a.L("enable_webgl_noop")};
XXa=function(a){if(a.J.U().C)return!1;a=a.J.getVideoData(1);var b=a.getPlayerResponse();if(b){var c=b.adPlacements;if(c)for(var d=0;d<c.length;d++)if(c[d].adPlacementRenderer)return!0;if(b.adSlots)return!0}return g.NT(a)?!0:!1};
YXa=function(a){if(a.J.kd())return!1;a=a.J;var b=a.U();if(b.C||"3"===b.controlsType)return!1;if("creator-endscreen-editor"===b.playerStyle)return!0;a=a.getVideoData();return!!a&&(!!g.zTa(a)||!!g.ATa(a))};
cYa=function(a,b,c,d,e){try{if(c){var f=PV.get(b);if(f)return new f(a.J);dYa(a,b,d,e)}else a.J.Ng(b)}catch(h){a.J.Ng(b),g.tF(h)}return null};
cW=function(a,b,c){if(a.J.U().L("html5_dispose_modules_in_order"))for(var d=g.u(iYa),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Me.get(e);f&&(c||f.xl(b))&&(g.vb(f),a.Me.delete(e))}else for(d=g.u(a.Me),e=d.next();!e.done;e=d.next())f=g.u(e.value),e=f.next().value,(f=f.next().value)&&(c||f.xl(b))&&(g.vb(f),a.Me.delete(e))};
dW=function(a){return a.Me.get("ad")};
jYa=function(a){if(fS(a.J.U()))return a.Me.get("kids")};
kU=function(a){if(a.J.U().lk)return a.Me.get("remote")};
g.eW=function(a){if(g.aS(a.J.U()))return a.Me.get("unplugged")};
fUa=function(a){if(a.J.U().Za)return a.Me.get("ux")};
fW=function(a){if(a.J.U().zj)return a.Me.get("offline")};
g.gW=function(a){return a.Me.get("annotations_module")};
kYa=function(a){return a.Me.get("creatorendscreen")};
mYa=function(a,b,c){var d,e;return g.H(function(f){d=a.j.startsWith("https://")?a.j+"lib.wasm":a.j.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";e=function(h){var l=a.Me.get("asmjs");return l?Promise.resolve(l.cY(h)):lYa(a).then(function(m){return m.cY(h)})};
return f.return(UXa(d,e,b,c))})};
lYa=function(a){var b,c;return g.H(function(d){if(1==d.j)return g.z(d,eYa(a),2);c=b=d.B;return d.return(c)})};
dYa=function(a,b,c,d){if(a.j){var e=nYa[b];oYa(a,a.j+e,function(){a.D.add(e);c.call(a)},d)}};
oYa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var h=g.xf("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.If("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(x){cg(f);q&&q.apply(window,[x])};
var r=m.onerror;m.onerror=function(x){if(.01>Math.random()){var A=new g.QC("Unable to load player module",b,document.location&&document.location.origin);g.tF(A)}cg(e);r&&r(x)};
var t=m,v=t.onreadystatechange;t.onreadystatechange=function(x){switch(t.readyState){case "loaded":case "complete":cg(f)}v&&v(x)};
l&&((h=a.J.U().cspNonce)&&m.setAttribute("nonce",h),g.We(m,g.Ew(b)),h=g.xf("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),a.addOnDisposeCallback(function(){m.parentNode&&m.parentNode.removeChild(m)}))};
pYa=function(a,b,c,d,e){g.NF.call(this);var f=this;this.target=a;this.iH=b;this.B=0;this.K=!1;this.D=new g.Ke(NaN,NaN);this.j=new g.IK(this);this.Ca=this.C=this.N=null;g.N(this,this.j);b=d||e?4E3:3E3;this.Y=new g.Qu(function(){hW(f,1,!1)},b,this);
g.N(this,this.Y);this.ma=new g.Qu(function(){hW(f,2,!1)},b,this);
g.N(this,this.ma);this.va=new g.Qu(function(){hW(f,512,!1)},b,this);
g.N(this,this.va);this.Ia=3E3;d||(this.C=this.j.T(a,"mouseover",this.Cw),this.j.T(a,"mousemove",this.V3),this.j.T(a,"mouseleave",this.l9));ls?this.j.T(a,"keypress",this.E8):this.j.T(a,"focusin",this.O6);this.G=this.j.T(a,"mousedown",this.kU);this.Z=this.j.T(a,"touchstart",this.lU,void 0,!0);hW(this,640,!0)};
qYa=function(a){hW(a,4,!1);a.N&&(a.j.Tc(a.N),a.N=null,a.C=a.j.T(a.target,"mouseover",a.Cw));a.C&&(a.j.Tc(a.C),a.C=a.j.T(a.target,"mouseover",a.Cw))};
hW=function(a,b,c){a.isDisposed();var d=!a.B;c?(a.B|=b,b&1&&a.Y.start(),b&2&&a.ma.start()):(a.B&=~b,b&1&&a.Y.stop(),b&2&&a.ma.stop(),b&512&&a.va.stop());a.B&512&&!(a.B&128)&&g.Ru(a.va,a.Ia);b=!a.B;d!==b&&a.ra("autohideupdate",b)};
g.jW=function(a){g.V.call(this,{I:"button",La:["ytp-large-play-button","ytp-button"],X:{"aria-label":"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c",title:"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c"},V:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Sa);this.T(a,"basechromeinitialized",this.sda);a=this.api.U();a.Z&&iW&&(this.Ta("click",this.E7,this),this.Ta("touchstart",this.Cba,this));g.$R(a)&&g.Yu(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,
this,28572);this.Sa()};
g.kW=function(a){var b=a.U(),c=["ytp-cued-thumbnail-overlay"];b.N&&c.push("ytp-exp-contain-thumbnail");b.L("web_player_show_frame_zero_when_cued")&&c.push("ytp-exp-frame0");g.V.call(this,{I:"div",La:c,V:[{I:"div",S:"ytp-cued-thumbnail-overlay-image"}]});b=this.Ga("ytp-cued-thumbnail-overlay");c=new g.jW(a);g.N(this,c);c.Ja(b);this.D=new g.IK(this);g.N(this,this.D);this.api=a;this.G=this.Ga("ytp-cued-thumbnail-overlay-image");this.C=c;this.B=new g.CG(this,250);g.N(this,this.B);this.j=new g.Qu(this.Sa,
0,this);g.N(this,this.j);this.Sa();this.T(a,"appresize",this.Yb);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.hba);WR(a.U())&&this.T(a,"videoplayerreset",this.Qw)};
rYa=function(a){if(!a.api.L("web_player_show_frame_zero_when_cued"))return!1;var b=a.api.getCurrentTime();a=a.api.Xb();a=g.JG(a,64)&&g.JG(a,1);return 0===b&&a};
g.lW=function(a){g.V.call(this,{I:"div",La:["ytp-error"],X:{role:"alert"},V:[{I:"div",S:"ytp-error-content",V:[{I:"div",S:"ytp-error-icon-container",V:[{I:"svg",X:{fill:"#fff",viewBox:"0 0 48 48"},V:[{I:"path",X:{d:"M0 0h48v48H0V0z",fill:"none"}},{I:"path",X:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{I:"div",S:"ytp-error-content-wrap",
V:[{I:"div",S:"ytp-error-content-wrap-reason",ya:"{{content}}"},{I:"div",S:"ytp-error-content-wrap-subreason",ya:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.mW=function(a){a=a.split(sYa);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({I:"br"}),b.push(d[e]);c<a.length&&b.push({I:"a",X:{href:a[c],target:a[c+1]},ya:a[c+2]})}return{I:"span",V:b}};
oW=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.U().D);a=a.api.getVideoData();b=g.aK(g.nW[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({I:"h2",ya:f});d.push(b[0]);h&&d.push({I:"br"});d.push({I:"a",X:{href:c,target:e?"_blank":null},ya:b[2]});d.push(b[4]);return{I:"span",V:d}};
tYa=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)}};
uYa=function(a){for(var b=0;b<a.keys.length;b++)a.Tc(a.keys[b]);a.keys=[]};
vYa=function(a){g.V.call(this,{I:"div",S:"ytp-paid-content-overlay",X:{"aria-live":"assertive","aria-atomic":"true"}});this.J=a;this.videoId=null;this.C=!1;this.Le=this.j=null;var b=a.U();a.L("enable_new_paid_product_placement")&&!g.mS(b)?(this.B=new g.V({I:"a",S:"ytp-paid-content-overlay-link",X:{href:"{{href}}",target:"_blank"},V:[{I:"div",S:"ytp-paid-content-overlay-icon",ya:"{{icon}}"},{I:"div",S:"ytp-paid-content-overlay-text",ya:"{{text}}"},{I:"div",S:"ytp-paid-content-overlay-chevron",ya:"{{chevron}}"}]}),
this.T(this.B.element,"click",this.onClick)):this.B=new g.V({I:"div",La:["ytp-button","ytp-paid-content-overlay-text"],ya:"{{text}}"});this.D=new g.CG(this.B,250,!1,100);g.N(this,this.B);this.B.Ja(this.element);g.N(this,this.D);this.J.createServerVe(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Y3)};
xYa=function(a,b){var c=nTa(b),d=oTa(b);b.rg&&a.J.En()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.Tu(a.j),a.videoId=b.videoId,a.C=!!d,a.C&&c&&wYa(a,d,c,b)):c&&d&&wYa(a,d,c,b))};
wYa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.Qu(a.Qb,b,a);g.N(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.U(e,g.pG))?void 0:l.url;a.J.setTrackingParams(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.B.update({href:null!=h?h:"#",text:c,icon:"MONEY_HAND"===f?{I:"svg",X:{fill:"none",height:"100%",
viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{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.aG():null})};
yYa=function(a,b){a.j&&(g.JG(b,8)&&a.C?(a.C=!1,a.xd(),a.j.start()):(g.JG(b,2)||g.JG(b,64))&&a.videoId&&(a.videoId=null))};
pW=function(a){g.V.call(this,{I:"div",S:"ytp-spinner",V:[aWa(),{I:"div",S:"ytp-spinner-message",ya:"\u041f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e. \u0415\u0441\u043b\u0438 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0442\u0430\u043a \u0438 \u043d\u0435 \u043d\u0430\u0447\u043d\u0435\u0442\u0441\u044f, \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e."}]});
this.api=a;this.message=this.Ga("ytp-spinner-message");this.j=new g.Qu(this.show,500,this);g.N(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.B);this.Hc(a.Xb())};
qW=function(a){var b=[{I:"div",La:["ytp-unmute-icon"],V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{I:"div",La:["ytp-unmute-text"],ya:"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"}];b.push({I:"div",La:["ytp-unmute-box"],V:[]});g.LU.call(this,a,{I:"button",La:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],V:[{I:"div",S:"ytp-unmute-inner",V:b}]},100);this.j=this.clicked=!1;this.api=a;this.api.createClientVe(this.element,this,51663);this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.T(a,"presentingplayerstatechange",
this.Ak);this.Ta("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.UR(this.api.U());g.UF(this,a);a&&zYa(this);this.C=a};
zYa=function(a){a.j||(a.j=!0,a.api.logVisibility(a.element,!0))};
g.rW=function(a){g.IK.call(this);var b=this;this.api=a;this.LP=!1;this.Jn=null;this.pN=!1;this.Eg=null;this.qN=this.XK=!1;this.vS=this.wS=null;this.sY=NaN;this.uS=this.cD=!1;this.FE=0;this.vM=[];this.QQ=!1;this.FI={height:0,width:0};this.h0=480;this.Hda=["ytp-player-content","html5-endscreen","ytp-overlay"];this.qJ={Rz:!1};var c=a.U(),d=a.qb();this.FI=a.getPlayerSize();this.yV=new g.Qu(this.eQ,0,this);g.N(this,this.yV);this.pn=new g.kW(a);g.N(this,this.pn);g.oU(a,this.pn.element,4);if(AYa(this)){var e=
new pW(a);g.N(this,e);e=e.element;g.oU(a,e,4)}var f=a.getVideoData();this.Rg=new pYa(d,function(l){return b.iH(l)},f,c.Il,!1);
g.N(this,this.Rg);this.Rg.subscribe("autohideupdate",this.EA,this);if(!c.disablePaidContentOverlay){var h=new vYa(a);g.N(this,h);g.oU(a,h.element,4)}this.AS=new qW(a);g.N(this,this.AS);g.oU(this.api,this.AS.element,2);this.OO=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.UK=new g.Qu(this.Mr,200,this);g.N(this,this.UK);this.oE=f.videoId;this.B_=new g.Qu(function(){b.FE=0},350);
g.N(this,this.B_);this.CH=new g.Qu(function(){b.uS||BYa(b)},350,this);
g.N(this,this.CH);f=a.getRootNode();f.setAttribute("aria-label","\u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c YouTube");switch(c.color){case "white":g.Yu(f,"ytp-color-white")}this.T(a,"appresize",this.Yb);this.T(a,"presentingplayerstatechange",this.Ak);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.L$);this.T(a,"autonavvisibility",function(){b.fq()});
this.T(a,"sizestylechange",function(){b.fq()});
this.T(d,"click",this.maa,this);this.T(d,"dblclick",this.naa,this);this.T(d,"mousedown",this.qaa,this);c.Ob&&(this.T(d,"gesturechange",this.oaa,this),this.T(d,"gestureend",this.paa,this));this.DE=[d.fz];this.pn&&this.DE.push(this.pn.element);e&&this.DE.push(e)};
CYa=function(a,b){if(!b)return!1;var c=a.api.kf();if(c.Lu()&&(c=c.Kb())&&g.Uf(c,b))return c.controls;for(c=0;c<a.DE.length;c++)if(g.Uf(a.DE[c],b))return!1;c=g.u(a.Hda);for(var d=c.next();!d.done;d=c.next())if(g.Xu(b,d.value))return!1;return b===a.api.getRootNode()?!1:!0};
DYa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.qb().AI||!1)&&a.api.U().B&&iW&&11<=aT;a=a.api.U().Z&&iW;return!(!b&&!a)};
sW=function(a,b){return!a.api.isInline()&&!CYa(a,BC(b))&&g.UG(b)};
BYa=function(a){a.Rg.uu();if(a.XK&&a.qN)a.qN=!1;else if(!a.api.U().Wa&&!a.zq()){var b=a.api.Xb();g.JG(b,2)&&g.iU(a.api)||a.UF(b);!a.api.U().Ob||b.isCued()||g.JG(b,1024)?a.Mr():a.UK.isActive()?(a.PO(),a.UK.stop()):a.UK.start()}};
EYa=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.UG(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.Xb(),!g.JG(b,4)||g.JG(b,8)||g.JG(b,2)||a.Mr(),!0):!1};
FYa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
AYa=function(a){a=cC()&&67<=wpa()&&!a.api.U().Z;return!g.bC("tizen")&&!SR&&!a&&!0};
tW=function(a,b){b=void 0===b?2:b;g.NF.call(this);this.api=a;this.j=null;this.Id=new DC(this);g.N(this,this.Id);this.B=Bxa;this.Id.T(this.api,"presentingplayerstatechange",this.Z3);this.j=this.Id.T(this.api,"progresssync",this.Rc);this.Go=b;1===this.Go&&this.Rc()};
g.uW=function(a){g.V.call(this,{I:"div",V:[{I:"div",S:"ytp-bezel-text-wrapper",V:[{I:"div",S:"ytp-bezel-text",ya:"{{title}}"}]},{I:"div",S:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},V:[{I:"div",S:"ytp-bezel-icon",ya:"{{icon}}"}]}]});this.J=a;this.B=new g.Qu(this.show,10,this);this.j=new g.Qu(this.hide,500,this);g.N(this,this.B);g.N(this,this.j);this.hide()};
wW=function(a,b,c){if(0>=b){c=Rwa();b="\u0437\u0432\u0443\u043a \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d";var d=0}else c=c?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},d=Math.floor(b),b=d+"\u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c";vW(a,c,b,d+"%")};
GYa=function(a,b){b=b?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{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"}}]}:Awa();var c=a.J.getPlaybackRate(),d=g.aK("\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f\u00a0\u2013 $RATE",{RATE:String(c)});vW(a,b,d,c+"x")};
HYa=function(a,b){b=b?"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b":"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b";vW(a,$Va(),b)};
vW=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.Tu(a.j);a.B.start();a.updateValue("title",d);g.bv(a.element,"ytp-bezel-text-hide",!d)};
IYa=function(a,b){g.V.call(this,{I:"button",La:["ytp-button","ytp-cards-button"],X:{"aria-label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.UR(a.U()))},V:[{I:"span",S:"ytp-cards-button-icon-default",V:[{I:"div",S:"ytp-cards-button-icon",V:[a.U().L("player_new_info_card_format")?Dwa():{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",
Ic:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},{I:"div",S:"ytp-cards-button-title",ya:"\u041e \u0432\u0438\u0434\u0435\u043e"}]},{I:"span",S:"ytp-cards-button-icon-shopping",V:[{I:"div",S:"ytp-cards-button-icon",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",S:"ytp-svg-shadow",X:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},
{I:"path",S:"ytp-svg-fill",X:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{I:"path",S:"ytp-svg-shadow-fill",X:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{I:"div",
S:"ytp-cards-button-title",ya:"\u041f\u043e\u043a\u0443\u043f\u043a\u0438"}]}]});this.J=a;this.C=b;this.j=null;this.B=new g.CG(this,250,!0,100);g.N(this,this.B);g.bv(this.C,"ytp-show-cards-title",g.UR(a.U()));this.hide();this.Ta("click",this.Q9);this.Ta("mouseover",this.j$);this.QF(!0)};
JYa=function(a,b){g.V.call(this,{I:"div",S:"ytp-cards-teaser",V:[{I:"div",S:"ytp-cards-teaser-box"},{I:"div",S:"ytp-cards-teaser-text",V:a.U().L("player_new_info_card_format")?[{I:"button",S:"ytp-cards-teaser-info-icon",X:{"aria-label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438","aria-haspopup":"true"},V:[Dwa()]},{I:"span",S:"ytp-cards-teaser-label",ya:"{{text}}"},{I:"button",S:"ytp-cards-teaser-close-button",X:{"aria-label":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},
V:[g.bG()]}]:[{I:"span",S:"ytp-cards-teaser-label",ya:"{{text}}"}]}]});var c=this;this.J=a;this.Zg=b;this.D=new g.CG(this,250,!1,250);this.j=null;this.N=new g.Qu(this.x$,300,this);this.K=new g.Qu(this.w$,2E3,this);this.G=[];this.B=null;this.Y=new g.Qu(function(){c.element.style.margin="0"},250);
this.onClickCommand=this.C=null;g.N(this,this.D);g.N(this,this.N);g.N(this,this.K);g.N(this,this.Y);a.U().L("player_new_info_card_format")?(g.Yu(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Ga("ytp-cards-teaser-close-button"),"click",this.a4),this.T(this.Ga("ytp-cards-teaser-info-icon"),"click",this.lS),this.T(this.Ga("ytp-cards-teaser-label"),"click",this.lS)):this.Ta("click",this.lS);this.T(b.element,"mouseover",this.nU);this.T(b.element,"mouseout",this.mU);this.T(a,"cardsteasershow",
this.Naa);this.T(a,"cardsteaserhide",this.Qb);this.T(a,"cardstatechange",this.U0);this.T(a,"presentingplayerstatechange",this.U0);this.T(a,"appresize",this.bM);this.T(a,"onShowControls",this.bM);this.T(a,"onHideControls",this.S5);this.Ta("mouseenter",this.b4)};
KYa=function(a){g.V.call(this,{I:"button",La:[xW.BUTTON,xW.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{I:"div",S:xW.TITLE_NOTIFICATIONS_ON,X:{title:"\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435","aria-label":"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430\u0445 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b"},
V:[g.Hwa()]},{I:"div",S:xW.TITLE_NOTIFICATIONS_OFF,X:{title:"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435","aria-label":"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430\u0445 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b"},
V:[{I:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",X:{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.createClientVe(this.element,this,36927);this.Ta("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435")};
LYa=function(a,b){a.j=b;a.element.classList.toggle(xW.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.zL:c.yL)?(a=a.api.hm())?VH(a,b):g.tF(Error("No innertube service available when updating notification preferences.")):g.tF(Error("No update preferences command available.")):g.tF(Error("No video data when updating notification preferences."))};
NYa=function(a,b,c){var d=void 0===d?800:d;var e=void 0===e?600:e;a=MYa(a,b);if(a=g.Ue(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))pta(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)};
MYa=function(a,b){var c=document.location.protocol;return Hfa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")};
g.yW=function(a,b,c,d,e,f,h,l,m,n,p,q){a=a.charAt(0)+a.substring(1).toLowerCase();c=c.charAt(0)+c.substring(1).toLowerCase();if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var r=p.U(),t=r.userDisplayName&&g.$R(r);g.V.call(this,{I:"div",La:["ytp-button","ytp-sb"],V:[{I:"div",S:"ytp-sb-subscribe",X:t?{title:g.aK("\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u0430\u043d\u0430\u043b",
"data-tooltip-image":jRa(r),"data-tooltip-opaque":String(g.UR(r)),tabindex:"0",role:"button"}:{"aria-label":"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u043a\u0430\u043d\u0430\u043b"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},a]},b?{I:"div",S:"ytp-sb-count",ya:b}:""]},{I:"div",S:"ytp-sb-unsubscribe",X:t?{title:g.aK("\u041f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0430 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435 $USER_NAME",
{USER_NAME:r.userDisplayName}),"aria-label":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0443 \u043d\u0430 \u043a\u0430\u043d\u0430\u043b","data-tooltip-image":jRa(r),"data-tooltip-opaque":String(g.UR(r)),tabindex:"0",role:"button"}:{"aria-label":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0443 \u043d\u0430 \u043a\u0430\u043d\u0430\u043b"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},c]},
d?{I:"div",S:"ytp-sb-count",ya:d}:""]}],X:{"aria-live":"polite"}});var v=this;this.channelId=h;this.J=p;this.C=q;var x=this.Ga("ytp-sb-subscribe"),A=this.Ga("ytp-sb-unsubscribe");f&&g.Yu(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var E=function(){if(r.Ca){var G=v.channelId;if(m||n){var M={c:G};var P;g.nP.isInitialized()&&(P=MMa(M));M=P||"";if(P=p.getVideoData())if(P=P.subscribeCommand){var R=p.hm();R?(VH(R,P,{botguardResponse:M,feature:m}),p.ob("SUBSCRIBE",G)):g.tF(Error("No innertube service available when updating subscriptions."))}else g.tF(Error("No subscribe command in videoData."));
else g.tF(Error("No video data available when updating subscription."))}A.focus();A.removeAttribute("aria-hidden");x.setAttribute("aria-hidden","true")}else NYa(g.gS(v.J.U()),"sb_button",v.D)},F=function(){var G=v.channelId;
if(m||n){var M=p.getVideoData();VH(p.hm(),M.unsubscribeCommand,{feature:m});p.ob("UNSUBSCRIBE",G)}x.focus();x.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")};
this.T(x,"click",E);this.T(A,"click",F);this.T(x,"keypress",function(G){13===G.keyCode&&E(G)});
this.T(A,"keypress",function(G){13===G.keyCode&&F(G)});
this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.B);this.C&&t&&(mUa(p),fU(p,x,this),fU(p,A,this))}else g.Yu(x,"ytp-sb-disabled"),g.Yu(A,"ytp-sb-disabled")};
PYa=function(a){g.V.call(this,{I:"div",S:"ytp-title-channel",V:[{I:"div",S:"ytp-title-beacon"},{I:"a",S:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().Y,role:"link","aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{I:"div",S:"ytp-title-expanded-heading",V:[{I:"div",S:"ytp-title-expanded-title",V:[{I:"a",ya:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",S:"ytp-title-expanded-subtitle",ya:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var b=this;this.api=a;this.channel=this.Ga("ytp-title-channel");this.j=this.Ga("ytp-title-channel-logo");this.channelName=this.Ga("ytp-title-expanded-title");this.G=this.Ga("ytp-title-expanded-overlay");this.C=this.B=this.subscribeButton=null;this.D=!1;a.createClientVe(this.j,this,36925);a.createClientVe(this.channelName,this,
37220);g.UR(this.api.U())&&OYa(this);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&(this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Ue(zW(b));c.preventDefault()}),this.T(this.j,"click",this.P9));
this.Sa()};
QYa=function(a){if(!a.api.U().Lc){var b=a.api.getVideoData(),c=new g.yW("\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f",null,"\u0412\u044b \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u044b",null,!0,!1,b.Gl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)});
a.subscribeButton=c;g.N(a,a.subscribeButton);a.subscribeButton.Ja(a.G);a.subscribeButton.hide();var e=new KYa(a.api);a.B=e;g.N(a,e);e.Ja(a.G);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.Ll&&(e.show(),a.api.logVisibility(e.element,!0))});
a.T(a.api,"UNSUBSCRIBE",function(){b.Ll&&(e.hide(),a.api.logVisibility(e.element,!1),LYa(e,!1))})}};
OYa=function(a){var b=a.api.U();QYa(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.fb?a.T(a.j,"click",function(c){a.api.L("web_player_ve_conversion_fixes_for_channel_info")||(RYa(a)&&(c.preventDefault(),a.isExpanded()?a.qH():a.NH()),a.api.logClick(a.j))}):(a.T(a.channel,"mouseenter",a.NH),a.T(a.channel,"mouseleave",a.qH),a.T(a.channel,"focusin",
a.NH),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.qH()}),a.T(a.j,"click",function(){a.api.L("web_player_ve_conversion_fixes_for_channel_info")||a.api.logClick(a.j)}));
a.C=new g.Qu(function(){a.isExpanded()&&(a.api.L("web_player_ve_conversion_fixes_for_channel_info")&&a.api.logVisibility(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.logVisibility(a.subscribeButton.element,!1)),a.B&&(a.B.hide(),a.api.logVisibility(a.B.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.N(a,a.C);a.T(a.channel,SYa,function(){TYa(a)});
a.T(a.api,"onHideControls",a.vR);a.T(a.api,"appresize",a.vR);a.T(a.api,"fullscreentoggled",a.vR)};
TYa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
RYa=function(a){var b=a.api.getPlayerSize();return g.UR(a.api.U())&&524<=b.width};
zW=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.rS(b)+c.Jc;if(!g.UR(b))return c;b={};g.WT(a.api,"addEmbedsConversionTrackingParams",[b]);g.pP(b,"emb_ch_name_ex");return g.an(c,b)};
AW=function(a,b,c,d,e,f){var h={I:"div",S:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={I:"div",S:"ytp-panel-header",V:[{I:"div",La:["ytp-panel-back-button-container"],V:[{X:{"aria-label":"\u0412\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043a \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c\u0443 \u043c\u0435\u043d\u044e"},I:"button",La:["ytp-button",l]}]},{I:"span",La:[m],V:[c]}]};if(e){var p="ytp-panel-options";n.V.push({I:"button",La:["ytp-button",
p],V:[d]})}h.V=[n]}d=!1;f&&(f={I:"div",S:"ytp-panel-footer",V:[f]},d=!0,h.V?h.V.push(f):h.V=[f]);g.VF.call(this,h);this.content=b;d&&h.V?b.Ja(this.element,h.V.length-1):b.Ja(this.element);this.IX=!1;this.HX=d;c&&(c=this.Ga(l),m=this.Ga(m),this.T(c,"click",this.jZ),this.T(m,"click",this.jZ),this.IX=!0,e&&(p=this.Ga(p),this.T(p,"click",e)));b.subscribe("size-change",this.nZ,this);this.T(a,"fullscreentoggled",this.nZ);this.J=a};
g.BW=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.VF({I:"div",S:"ytp-panel-menu",X:h});AW.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.N(this,this.menuItems)};
g.CW=function(a){for(var b=g.u(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.AQ,a);a.items=[];g.Pf(a.menuItems.element);a.menuItems.ra("size-change")};
UYa=function(a,b){return b.priority-a.priority};
DW=function(a){var b=g.PU({"aria-haspopup":"true"});g.OU.call(this,b,a);this.Ta("keydown",this.j)};
EW=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
VYa=function(a,b){g.V.call(this,{I:"div",S:"ytp-user-info-panel",X:{"aria-label":"\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435"},V:a.U().Ca&&!a.L("embeds_web_always_enable_signed_out_state")?[{I:"div",S:"ytp-user-info-panel-icon",ya:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",S:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},ya:"{{watchingAsUsername}}"},{I:"div",S:"ytp-user-info-panel-info",
X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},ya:"{{watchingAsEmail}}"}]}]:[{I:"div",S:"ytp-user-info-panel-icon",ya:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",V:[{I:"text",X:{tabIndex:"{{userInfoFocusable}}"},ya:"\u0412\u044b \u0432\u044b\u0448\u043b\u0438 \u0438\u0437 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430"}]},{I:"div",S:"ytp-user-info-panel-login",V:[{I:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},ya:a.U().Lc?"":"\u0412\u043e\u0439\u0442\u0438 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 YouTube"}]}]}]});
this.Va=a;this.j=b;a.U().Ca||a.U().Lc||(a=this.Ga("ytp-user-info-panel-login"),this.T(a,"click",this.e4));this.closeButton=new g.V({I:"button",La:["ytp-collapse","ytp-button"],X:{title:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},V:[g.dG()]});this.closeButton.Ja(this.element);g.N(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.d4);this.Sa()};
XYa=function(a,b,c){g.BW.call(this,a);this.Hb=b;this.Yd=c;this.getVideoUrl=new DW(6);this.Bn=new DW(5);this.vn=new DW(4);this.qc=new DW(3);this.xF=new g.OU(g.PU({href:"{{href}}",target:this.J.U().Y},void 0,!0),2,"\u0420\u0435\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0441 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c");this.showVideoInfo=new g.OU(g.PU(),1,"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0434\u043b\u044f \u0441\u0438\u0441\u0430\u0434\u043c\u0438\u043d\u043e\u0432");
this.iz=new g.VF({I:"div",La:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},ya:"{{text}}"});this.bW=new AW(this.J,this.iz);this.sG=this.nt=null;g.UR(this.J.U())&&(this.closeButton=new g.V({I:"button",La:["ytp-collapse","ytp-button"],X:{title:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},V:[g.dG()]}),g.N(this,this.closeButton),this.closeButton.Ja(this.element),this.closeButton.Ta("click",this.T5,this));g.UR(this.J.U())&&(this.yl=new g.OU(g.PU(),8,"\u0410\u043a\u043a\u0430\u0443\u043d\u0442"),
g.N(this,this.yl),this.Xc(this.yl,!0),this.yl.Ta("click",this.Aaa,this),a.createClientVe(this.yl.element,this.yl,137682));this.J.U().Tm&&(this.Yk=new YU("\u041f\u043e\u0432\u0442\u043e\u0440",7),g.N(this,this.Yk),this.Xc(this.Yk,!0),this.Yk.Ta("click",this.q$,this),a.createClientVe(this.Yk.element,this.Yk,28661));g.N(this,this.getVideoUrl);this.Xc(this.getVideoUrl,!0);this.getVideoUrl.Ta("click",this.h$,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.N(this,this.Bn);this.Xc(this.Bn,
!0);this.Bn.Ta("click",this.i$,this);a.createClientVe(this.Bn.element,this.Bn,28660);g.N(this,this.vn);this.Xc(this.vn,!0);this.vn.Ta("click",this.g$,this);a.createClientVe(this.vn.element,this.vn,28658);g.N(this,this.qc);this.Xc(this.qc,!0);this.qc.Ta("click",this.f$,this);g.N(this,this.xF);this.Xc(this.xF,!0);this.xF.Ta("click",this.faa,this);g.N(this,this.showVideoInfo);this.Xc(this.showVideoInfo,!0);this.showVideoInfo.Ta("click",this.Baa,this);g.N(this,this.iz);this.iz.Ta("click",this.V9,this);
g.N(this,this.bW);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=Qaa("Chromium")&&(b=!0);40>=Qaa("Firefox")&&(b=!1);b&&(this.nt=new g.V({I:"textarea",S:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),g.N(this,this.nt),this.nt.Ja(this.element));var d;null==(d=this.yl)||QU(d,Kwa());var e;null==(e=this.Yk)||QU(e,{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",
fill:"white"}}]});QU(this.qc,{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{"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"}}]});QU(this.xF,Bwa());QU(this.showVideoInfo,Cwa());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);WYa(this);this.RF(this.J.getVideoData())};
GW=function(a,b){var c=!1;if(a.nt){var d=a.nt.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Hb.Qb():(a.iz.Ud(b,"text"),g.FW(a.Hb,a.bW),bWa(a.iz.element),a.nt&&(a.nt=null,WYa(a)));return c};
WYa=function(a){var b=!!a.nt;g.NU(a.qc,b?"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u043e\u0442\u043b\u0430\u0434\u043a\u0435");EW(a.qc,!b);g.NU(a.vn,b?"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c HTML-\u043a\u043e\u0434":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u044f");
EW(a.vn,!b);g.NU(a.getVideoUrl,b?"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e");EW(a.getVideoUrl,!b);g.NU(a.Bn,b?"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438":"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438");
EW(a.Bn,!b);QU(a.vn,b?ywa():null);QU(a.getVideoUrl,b?cG():null);QU(a.Bn,b?cG():null)};
YYa=function(a){return g.UR(a.J.U())?a.yl:a.Yk};
g.HW=function(a,b){g.LU.call(this,a,{I:"div",La:["ytp-popup",b||""]},100,!0);this.j=[];this.K=this.G=null;this.maxHeight=this.maxWidth=0;this.size=new g.Oe(0,0);this.Ta("keydown",this.f4)};
ZYa=function(a){var b=a.j[a.j.length-1];if(b){g.vs(a.element,a.maxWidth||"100%",a.maxHeight||"100%");g.ks(b.element,"width","");g.ks(b.element,"height","");g.ks(b.element,"maxWidth","100%");g.ks(b.element,"maxHeight","100%");g.ks(b.content.element,"height","");var c=g.ws(b.element);c.width+=1;c.height+=1;g.ks(b.element,"width",c.width+"px");g.ks(b.element,"height",c.height+"px");g.ks(b.element,"maxWidth","");g.ks(b.element,"maxHeight","");var d=0;b.IX&&(d=b.Ga("ytp-panel-header"),d=g.ws(d).height);
var e=0;b.HX&&(e=b.Ga("ytp-panel-footer"),g.ks(e,"width",c.width+"px"),e=g.ws(e).height);g.ks(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.ks(b.element,"width",c.width+"px")));a.size=c}};
g.FW=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);$Ya(a,c,b)};
g.IW=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];$Ya(a,b,c,!0)}};
$Ya=function(a,b,c,d){aZa(a);b&&(b.unsubscribe("size-change",a.HB,a),b.unsubscribe("back",a.Hj,a));c.subscribe("size-change",a.HB,a);c.subscribe("back",a.Hj,a);if(a.Jb){g.Yu(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;ZYa(a);g.vs(a.element,e);a.G=new g.Qu(function(){bZa(a,b,c,d)},20,a);
a.G.start()}else c.Ja(a.element),b&&b.detach()};
bZa=function(a,b,c,d){a.G.dispose();a.G=null;g.Yu(a.element,"ytp-popup-animating");d?(g.Yu(b.element,"ytp-panel-animate-forward"),g.$u(c.element,"ytp-panel-animate-back")):(g.Yu(b.element,"ytp-panel-animate-back"),g.$u(c.element,"ytp-panel-animate-forward"));g.vs(a.element,a.size);a.K=new g.Qu(function(){g.$u(a.element,"ytp-popup-animating");b.detach();g.av(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.K.dispose();a.K=null},250,a);
a.K.start()};
aZa=function(a){a.G&&g.Su(a.G);a.K&&g.Su(a.K)};
dZa=function(a,b){g.HW.call(this,a);this.Yd=b;this.D=new g.IK(this);this.va=new g.Qu(this.Saa,1E3,this);this.Ca=this.C=null;g.N(this,this.D);g.N(this,this.va);a.createClientVe(this.element,this,28656);g.Yu(this.element,"ytp-contextmenu");cZa(this);this.hide()};
cZa=function(a){g.FC(a.D);var b=a.J.U();"gvn"===b.playerStyle||b.B||b.fb||(b=a.J.qb(),a.D.T(b,"contextmenu",a.T9),a.D.T(b,"touchstart",a.i4,null,!0),a.D.T(b,"touchmove",a.LZ,null,!0),a.D.T(b,"touchend",a.LZ,null,!0))};
eZa=function(a){a.J.isFullscreen()?g.oU(a.J,a.element,10):a.Ja(document.body)};
JW=function(a,b,c){c=void 0===c?240:c;g.V.call(this,{I:"button",La:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.UR(a.U()))},V:[{I:"div",S:"ytp-copylink-icon",ya:"{{icon}}"},{I:"div",S:"ytp-copylink-title",ya:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443",X:{"aria-hidden":"true"}}]});this.api=a;this.Ze=b;this.j=c;this.visible=!1;this.tooltip=this.Ze.Te();b=a.U();this.tooltip.element.setAttribute("aria-live",
"polite");g.bv(this.element,"ytp-show-copylink-title",g.UR(b));a.createClientVe(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();this.addOnDisposeCallback(g.eU(this.tooltip,this.element))};
fZa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=a.api.qb().getPlayerSize().width;b=b.C;return!!c.videoId&&d>=a.j&&c.So&&!g.QT(c)&&!a.api.kd()&&!b};
gZa=function(a){a.updateValue("icon",uwa());if(a.api.U().B)a.tooltip.VF(a.element,"\u0421\u0441\u044b\u043b\u043a\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430");else{a.updateValue("title-attr","\u0421\u0441\u044b\u043b\u043a\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430");a.tooltip.Mh();a.tooltip.VF(a.element);
var b=a.Ta("mouseleave",function(){a.Tc(b);a.Sa();a.tooltip.Vl()})}};
hZa=function(a,b){return g.H(function(c){if(1==c.j)return g.Ba(c,2),g.z(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.Da(c);var d=c.return,e=!1,f=g.If("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(FD){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)})};
KW=function(a){g.V.call(this,{I:"div",S:"ytp-doubletap-ui-legacy",V:[{I:"div",S:"ytp-doubletap-fast-forward-ve"},{I:"div",S:"ytp-doubletap-rewind-ve"},{I:"div",S:"ytp-doubletap-static-circle",V:[{I:"div",S:"ytp-doubletap-ripple"}]},{I:"div",S:"ytp-doubletap-overlay-a11y"},{I:"div",S:"ytp-doubletap-seek-info-container",V:[{I:"div",S:"ytp-doubletap-arrows-container",V:[{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"},{I:"span",S:"ytp-doubletap-base-arrow"}]},{I:"div",
S:"ytp-doubletap-tooltip",V:[{I:"div",S:"ytp-chapter-seek-text-legacy",ya:"{{seekText}}"},{I:"div",S:"ytp-doubletap-tooltip-label",ya:"{{seekTime}}"}]}]}]});this.J=a;this.D=new g.Qu(this.show,10,this);this.B=new g.Qu(this.hide,700,this);this.K=this.C=0;this.G=!1;this.j=this.Ga("ytp-doubletap-static-circle");g.N(this,this.D);g.N(this,this.B);this.hide();this.N=this.Ga("ytp-doubletap-fast-forward-ve");this.Y=this.Ga("ytp-doubletap-rewind-ve");this.J.createClientVe(this.N,this,28240);this.J.createClientVe(this.Y,
this,28239);this.J.logVisibility(this.N,!0);this.J.logVisibility(this.Y,!0);this.G=a.L("web_show_cumulative_seek_time")};
LW=function(a,b,c){a.C=b===a.K?a.C+c:c;a.K=b;var d=a.J.qb().getPlayerSize();a.G?a.B.stop():g.Tu(a.B);a.D.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.Yu(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";iZa(a,a.G?a.C:c)};
jZa=function(a,b,c){g.Tu(a.B);a.D.start();switch(b){case -1:b="back";break;case 1:b="forward";break;default:b=""}a.element.setAttribute("data-side",b);a.j.style.width="0";a.j.style.height="0";g.Yu(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")};
iZa=function(a,b){b=g.aK("$TOTAL_SEEK_TIME \u0441\u0435\u043a.",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)};
OW=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?!1:c;g.V.call(this,{I:"div",S:"ytp-suggested-action"});var d=this;this.J=a;this.tb=this.Ca=this.va=this.C=this.B=this.Y=this.expanded=this.enabled=this.Ra=!1;this.fb=new g.Qu(function(){d.badge.element.style.width=""},200,this);
this.Na=new g.Qu(function(){MW(d);NW(d)},200,this);
this.dismissButton=new g.V({I:"button",La:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.N(this,this.dismissButton);this.K=new g.V({I:"div",S:"ytp-suggested-action-badge-expanded-content-container",V:[{I:"label",S:"ytp-suggested-action-badge-title",ya:"{{badgeLabel}}"},this.dismissButton]});g.N(this,this.K);this.Ma=new g.V({I:"div",S:"ytp-suggested-action-badge-icon-container",V:[b?{I:"div",S:"ytp-suggested-action-badge-icon"}:""]});g.N(this,this.Ma);this.badge=new g.V({I:c?"div":
"button",La:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],V:[this.Ma,this.K]});g.N(this,this.badge);this.badge.Ja(this.element);this.ma=new g.CG(this.badge,250,!1,100);g.N(this,this.ma);this.Xa=new g.CG(this.K,250,!1,100);g.N(this,this.Xa);this.ib=new g.Ou(this.Kca,null,this);g.N(this,this.ib);this.Wa=new g.Ou(this.D6,null,this);g.N(this,this.Wa);g.N(this,this.fb);g.N(this,this.Na);this.J.createServerVe(this.badge.element,this.badge,!0);this.J.createServerVe(this.dismissButton.element,
this.dismissButton,!0);this.T(this.J,"onHideControls",function(){d.BJ(!1)});
this.T(this.J,"onShowControls",function(){d.BJ(!0)});
this.T(this.badge.element,"click",this.yJ);this.T(this.dismissButton.element,"click",this.FA);this.T(this.J,"pageTransition",this.oU);this.T(this.J,"appresize",this.Im);this.T(this.J,"fullscreentoggled",this.e$);this.T(this.J,"cardstatechange",this.M9);this.T(this.J,"annotationvisibility",this.tda,this);this.T(this.J,"offlineslatestatechange",this.uda,this)};
MW=function(a){g.bv(a.badge.element,"ytp-suggested-action-badge-with-controls",a.va||!a.Y)};
NW=function(a,b){var c=a.LK();a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.ib.stop(),a.Wa.stop(),a.fb.stop(),a.ib.start()):(g.UF(a.K,a.expanded),g.bv(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),kZa(a))};
kZa=function(a){a.B&&a.J.logVisibility(a.badge.element,a.wB());a.C&&a.J.logVisibility(a.dismissButton.element,a.wB()&&a.LK())};
lZa=function(a){var b=a.text||"",c=g.Af("ytp-suggested-action-badge-title",a.element);c&&g.Vf(c,b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Gb?a.Gb:"")};
PW=function(a,b){b?a.C&&a.J.logClick(a.dismissButton.element):a.B&&a.J.logClick(a.badge.element)};
QW=function(a){g.HW.call(this,a,"ytp-shopping-product-menu");this.bf=new g.BW(this.J);g.N(this,this.bf);this.hide();g.FW(this,this.bf);g.oU(this.J,this.element,4)};
nZa=function(a,b,c){var d,e=null==b?void 0:null==(d=b.text)?void 0:d.simpleText;e&&(c=mZa(a,c,e,null==b?void 0:b.icon),b.navigationEndpoint&&c.Ta("click",function(){a.J.ob("innertubeCommand",b.navigationEndpoint);a.hide()},a))};
oZa=function(a,b,c){var d,e=null==b?void 0:null==(d=b.text)?void 0:d.simpleText;e&&mZa(a,c,e,null==b?void 0:b.icon).Ta("click",function(){var f;"HIDE"===(null==b?void 0:null==(f=b.icon)?void 0:f.iconType)?a.J.ra("featuredproductdismissed"):b.serviceEndpoint&&a.J.ob("innertubeCommand",b.serviceEndpoint);a.hide()},a)};
mZa=function(a,b,c,d){b=new g.OU(g.PU(),b,c);QU(b,pZa(d));g.N(a,b);a.bf.Xc(b,!0);return b};
pZa=function(a){if(!a)return null;switch(a.iconType){case "ACCOUNT_CIRCLE":return{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z",
fill:"#fff"}}]};case "FLAG":return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return Bwa();case "HIDE":return{I:"svg",X:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"g",V:[{I:"path",X:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}}};
qZa=function(a){OW.call(this,a,!1,!0);this.Ia=[];this.Ob=[];this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.Ea=new g.V({I:"div",S:"ytp-featured-product-open-in-new"});g.N(this,this.Ea);this.countdownTimer=new g.V({I:"text",S:"ytp-featured-product-countdown",ya:"{{content}}"});this.countdownTimer.hide();g.N(this,this.countdownTimer);this.N=new g.V({I:"div",S:"ytp-featured-product-trending",V:[{I:"div",S:"ytp-featured-product-trending-icon"},{I:"text",S:"ytp-featured-product-trending-text",
ya:"{{trendingOffer}}"}]});this.N.hide();g.N(this,this.N);this.overflowButton=new g.V({I:"button",La:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.N(this,this.overflowButton);this.infoButton=new g.V({I:"button",La:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.N(this,this.infoButton);this.G=new g.V({I:"text",S:"ytp-featured-product-exclusive-countdown",ya:"{{content}}",X:{id:"exclusiveCountdown","aria-hidden":"true"}});
this.G.hide();g.N(this,this.G);this.D=new g.V({I:"div",S:"ytp-featured-product-exclusive-container",X:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{I:"div",S:"ytp-featured-product-exclusive-badge-container",V:[{I:"div",S:"ytp-featured-product-exclusive-badge",V:[{I:"text",S:"ytp-featured-product-exclusive-badge-text",ya:"{{exclusive}}",X:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.G]});this.D.hide();g.N(this,this.D);this.banner=new g.V({I:"a",S:"ytp-featured-product-container",
V:[{I:"div",S:"ytp-featured-product-thumbnail",V:[{I:"img",X:{src:"{{thumbnail}}"}},this.Ea]},{I:"div",S:"ytp-featured-product-details",V:[{I:"text",S:"ytp-featured-product-title",ya:"{{title}}"},{I:"div",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price",ya:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-sales-original-price",ya:"{{salesOriginalPrice}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-price-drop-reference-price",ya:"{{priceDropReferencePrice}}",
X:{"aria-hidden":"true"}}]},{I:"div",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer",ya:"{{affiliateDisclaimer}}"},this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.D:null,this.N,{I:"text",S:"ytp-featured-product-vendor",ya:"{{vendor}}"},this.countdownTimer]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.N(this,this.banner);this.banner.Ja(this.K.element);this.T(this.J,g.VJ("featured_product"),this.vca);this.T(this.J,g.WJ("featured_product"),
this.fB);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.infoButton.element,"click",this.k$);this.T(this.overflowButton.element,"click",this.G$);this.T(a,"featuredproductdismissed",this.FA)};
rZa=function(a){var b,c;a=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;var d,e,f;return(null==a||!a.affiliateDisclaimer)&&(null==a?0:null==(d=a.exclusivesData)?0:d.exclusiveOfferLabelText)&&(null==a?0:null==(e=a.exclusivesData)?0:e.expirationTimestampMs)&&(null==a?0:null==(f=a.exclusivesData)?0:f.exclusiveOfferCountdownText)?!0:!1};
tZa=function(a){var b,c,d,e,f=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:null==(e=d.exclusivesData)?void 0:e.expirationTimestampMs;b=(Number(f)-Date.now())/1E3;if(0<b){if(604800>b){var h,l,m,n;c=null==(h=a.j)?void 0:null==(l=h.bannerData)?void 0:null==(m=l.itemData)?void 0:null==(n=m.exclusivesData)?void 0:n.exclusiveOfferCountdownText;if(void 0!==c)for(h=Date.now(),l=g.u(c),m=l.next();!m.done;m=l.next())if(m=m.value,void 0!==m&&void 0!==m.text&&(n=Number(m.textDisplayStartTimestampMs),
!isNaN(n)&&h>=n)){m.insertCountdown?(b=m.text.replace(/\$0/,String(kIa({seconds:b}))),a.G.Ud(b)):a.G.Ud(m.text);a.G.show();break}}var p,q,r,t;a.D.update({exclusive:null==(p=a.j)?void 0:null==(q=p.bannerData)?void 0:null==(r=q.itemData)?void 0:null==(t=r.exclusivesData)?void 0:t.exclusiveOfferLabelText});a.D.show();RW(a);var v;null==(v=a.Vb)||v.start()}else sZa(a)};
sZa=function(a){var b;null==(b=a.Vb)||b.stop();a.G.hide();a.D.hide();SW(a)};
uZa=function(a){var b,c;a=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;var d,e;if((null==a||!a.priceReplacementText)&&(null==a?0:null==(d=a.dealsData)?0:null==(e=d.sales)?0:e.originalPrice)){var f,h;return null==a?void 0:null==(f=a.dealsData)?void 0:null==(h=f.sales)?void 0:h.originalPrice}return null};
vZa=function(a){var b,c;a=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;var d,e,f,h;if(!(null!=a&&a.priceReplacementText||(null==a?0:null==(d=a.dealsData)?0:null==(e=d.sales)?0:e.originalPrice))&&(null==a?0:null==(f=a.dealsData)?0:null==(h=f.priceDrop)?0:h.referencePrice)){var l,m;return null==a?void 0:null==(l=a.dealsData)?void 0:null==(m=l.priceDrop)?void 0:m.referencePrice}return null};
wZa=function(a){var b,c;a=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;if(null==a?0:a.priceReplacementText)return null==a?void 0:a.priceReplacementText;var d,e;if(null==a?0:null==(d=a.dealsData)?0:null==(e=d.sales)?0:e.originalPrice){var f,h;return null==a?void 0:null==(f=a.dealsData)?void 0:null==(h=f.sales)?void 0:h.salesPriceAccessibilityLabel}var l,m;if(null==a?0:null==(l=a.dealsData)?0:null==(m=l.priceDrop)?0:m.referencePrice){var n,p;return(null==a?void 0:a.price)+" "+(null==
a?void 0:null==(n=a.dealsData)?void 0:null==(p=n.priceDrop)?void 0:p.referencePrice)}return null==a?void 0:a.price};
xZa=function(a){var b,c,d,e,f,h;return a.N.Jb||a.D.Jb||(null==(b=a.j)?0:null==(c=b.bannerData)?0:null==(d=c.itemData)?0:d.affiliateDisclaimer)?null:null==(e=a.j)?void 0:null==(f=e.bannerData)?void 0:null==(h=f.itemData)?void 0:h.vendorName};
zZa=function(a,b){TW(a);if(b){var c=g.kT.getState().entities;c=KO(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.Ia.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()){var h=f.value;f=yZa(h.startTimeSec);void 0!==f&&(h=yZa(h.endTimeSec),b.push(new g.UJ(1E3*f,void 0===h?0x7ffffffffffff:1E3*h,{id:d.identifier,
namespace:"featured_product"})))}}}a.J.yf(b)}}};
SW=function(a){if(a.trendingOfferEntityKey){var b=g.kT.getState().entities;if(b=KO(b,"trendingOfferEntity",a.trendingOfferEntityKey)){var c,d,e;b.encodedSkuId!==(null==(c=a.j)?void 0:null==(d=c.bannerData)?void 0:null==(e=d.itemData)?void 0:e.encodedOfferSkuId)?RW(a):(a.N.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.N.show(),a.banner.update({vendor:xZa(a)}))}else RW(a)}else RW(a)};
RW=function(a){a.N.hide();a.banner.update({vendor:xZa(a)})};
TW=function(a){a.Ia=[];a.fB();a.J.Cf("featured_product")};
AZa=function(a){var b,c,d,e,f=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:null==(e=d.hiddenProductOptions)?void 0:e.dropTimestampMs;b=(Number(f)-Date.now())/1E3;a.countdownTimer.Ud(kIa({seconds:b}));if(0<b){var h;null==(h=a.ub)||h.start()}};
BZa=function(a){var b;null==(b=a.ub)||b.stop();a.countdownTimer.hide()};
yZa=function(a){if(void 0!==a&&""!==a.trim()&&(a=Math.trunc(Number(a.trim())),!(isNaN(a)||0>a)))return a};
GZa=function(a,b,c){g.V.call(this,{I:"div",La:["ytp-info-panel-action-item"],V:[{I:"div",S:"ytp-info-panel-action-item-disclaimer",ya:"{{disclaimer}}"},{I:"a",La:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{I:"div",S:"ytp-info-panel-action-item-icon",ya:"{{icon}}"},{I:"div",S:"ytp-info-panel-action-item-label",ya:"{{label}}"}]}]});this.J=a;this.j=c;this.disclaimer=this.Ga("ytp-info-panel-action-item-disclaimer");this.button=
this.Ga("ytp-info-panel-action-item-button");this.Ke=!1;this.J.createServerVe(this.element,this,!0);this.Ta("click",this.onClick);a="";c=g.U(null==b?void 0:b.onTap,xF);var d=g.U(c,g.pG);this.Ke=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.Ke=!0,g.Se(this.button,g.ye(a))):(d=g.U(c,CZa))&&!this.j?((a=d.phoneNumbers)&&0<a.length?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.Ke=!0,g.Se(this.button,g.ye(a,[DZa]))):(c=g.U(c,EZa))&&!this.j&&(a=c.phoneNumber?
"tel:"+c.phoneNumber:"",this.Ke=!0,g.Se(this.button,g.ye(a,[FZa])));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:Iwa(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:null==(h=b.bodyText)?void 0:h.content,icon:Iwa()})}this.J.setTrackingParams(this.element,b.trackingParams||null);this.Ke&&(this.B={externalLinkData:{url:a}})};
HZa=function(a,b){var c=QF();g.LU.call(this,a,{I:"div",S:"ytp-info-panel-detail-skrim",V:[{I:"div",S:"ytp-info-panel-detail",X:{role:"dialog",id:c},V:[{I:"div",S:"ytp-info-panel-detail-header",V:[{I:"div",S:"ytp-info-panel-detail-title",ya:"{{title}}"},{I:"button",La:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},V:[g.bG()]}]},{I:"div",S:"ytp-info-panel-detail-body",ya:"{{body}}"},{I:"div",S:"ytp-info-panel-detail-items"}]}]},250);this.j=
b;this.items=this.Ga("ytp-info-panel-detail-items");this.C=new g.IK(this);this.itemData=[];this.D=c;b=this.Ga("ytp-info-panel-detail-close");this.T(b,"click",this.Qb);b=this.Ga("ytp-info-panel-detail-skrim");this.T(b,"click",this.Qb);b=this.Ga("ytp-info-panel-detail");this.T(b,"click",function(d){d.stopPropagation()});
g.N(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()};
IZa=function(a,b){a=g.u(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.J.logVisibility(c.element,b)};
LZa=function(a,b){g.V.call(this,{I:"div",S:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":b.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.UR(a.U()))},V:[{I:"div",S:"ytp-info-panel-preview-text",ya:"{{text}}"},{I:"div",S:"ytp-info-panel-preview-chevron",ya:"{{chevron}}"}]});var c=this;this.J=a;this.Le=this.j=this.videoId=null;this.D=this.showControls=this.B=!1;this.T(this.element,"click",function(){a.logClick(c.element);a.zq();MU(b)});
this.C=new g.CG(this,250,!1,100);g.N(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.m4);this.T(this.J,"paidcontentoverlayvisibilitychange",this.oZ);this.T(this.J,"infopaneldetailvisibilitychange",this.oZ);var d=a.getVideoData()||{};JZa(d)&&KZa(this,d);this.T(a,"onShowControls",this.l4);this.T(a,"onHideControls",this.j4)};
KZa=function(a,b){if(!b.rg||!a.J.En()){var c=b.uC||1E4,d=JZa(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.Tu(a.j),a.videoId=b.videoId,d?(MZa(a,c,b),a.xd()):(a.Qb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),MZa(a,c,b),a.xd())}};
JZa=function(a){var b,c,d,e;return!!(null==(b=a.Ff)?0:null==(c=b.title)?0:c.content)||!!(null==(d=a.Ff)?0:null==(e=d.bodyText)?0:e.content)};
MZa=function(a,b,c){a.j&&a.j.dispose();a.j=new g.Qu(a.zca,b,a);g.N(a,a.j);var d;b=(null==(d=c.Ff)?void 0:d.trackingParams)||null;a.J.setTrackingParams(a.element,b);var e;var f,h;if(null==c?0:null==(f=c.Ff)?0:null==(h=f.title)?0:h.content){var l;d=null==(e=c.Ff)?void 0:null==(l=e.title)?void 0:l.content;var m,n;if(null==(m=c.Ff)?0:null==(n=m.bodyText)?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=(null==(p=c.Ff)?void 0:null==(q=p.bodyText)?void 0:q.content)||"";a.update({text:e+c,chevron:g.aG()})};
NZa=function(a,b){a.j&&(g.JG(b,8)?(a.B=!0,a.xd(),a.j.start()):(g.JG(b,2)||g.JG(b,64))&&a.videoId&&(a.videoId=null))};
UW=function(a){var b=null;try{b=a.toLocaleString("ru",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
VW=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};
OZa=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};
PZa=function(a,b){b=VW(a,b)+1;return b<a.length?b:-1};
QZa=function(a,b){return VW(a,b)-1};
RZa=function(a,b){return new g.UJ(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
TZa=function(a,b,c,d,e,f,h,l){g.IK.call(this);var m=this;this.api=a;this.contextMenu=c;this.Rg=d;this.Yd=e;this.j=f;this.K=h;this.progressBar=l;this.D=new g.Qu(function(){SZa(m,!1)},1E3);
this.B="";this.C={DI:!1};this.G=!1;g.N(this,this.D);this.T(b,"mousedown",function(){WW(m,!1)});
this.T(c.element,"mousedown",function(){WW(m,!1)});
this.T(b,"keydown",this.wX);this.T(c.element,"keydown",this.wX);this.T(b,"keyup",this.xX);this.T(c.element,"keyup",this.xX)};
WW=function(a,b){a.G=b;g.bv(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.bv(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
YW=function(a,b,c,d){var e=g.aW(a.api.Bb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.XW.length;h++){var l=g.XW[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);SZa(a,!0);a.D.start()}};
SZa=function(a,b){g.aW(a.api.Bb())&&a.api.setOption("captions","sampleSubtitles",b)};
g.ZW=function(a,b){g.V.call(this,{I:"button",La:["ytp-button","ytp-overflow-button"],X:{title:"\u0414\u0440\u0443\u0433\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b","aria-haspopup":"true","aria-owns":b.element.id},V:[{I:"div",S:"ytp-overflow-icon",V:[{I:"svg",X:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},V:[{I:"path",X:{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 c=this;this.J=a;this.ai=b;this.j=this.visible=!1;a.createClientVe(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();fU(a,this.element,this);this.Ta("click",function(){a.logClick(c.element);MU(b,c.element,!1)});
this.T(b.closeButton,"click",function(){c.focus()})};
UZa=function(a){g.LU.call(this,a,{I:"div",S:"ytp-overflow-panel",X:{id:QF(),role:"dialog"},V:[{I:"div",S:"ytp-overflow-panel-content",V:[{I:"div",S:"ytp-overflow-panel-action-buttons",ya:"{{buttons}}"}]},{I:"button",La:["ytp-overflow-panel-close","ytp-button"],X:{title:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},V:[g.bG()]}]},250);this.actionButtons=[];this.j=this.Ga("ytp-overflow-panel-content");this.closeButton=this.Ga("ytp-overflow-panel-close");this.T(this.closeButton,"click",this.Qb);fU(a,
this.closeButton,this);this.Ta("click",this.n4);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
VZa=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.updateValue("buttons",a.actionButtons))};
WZa=function(a,b){a=g.u(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Nc(b)};
XZa=function(a,b,c){var d=g.OV(b,c),e=d.hh("default.jpg");g.V.call(this,{I:"a",La:["ytp-video-menu-item","ytp-button"],X:{role:"menuitemradio","aria-label":d.title,href:a.U().getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},V:[{I:"div",S:"ytp-video-menu-item-index",ya:String(c+1)},{I:"div",S:"ytp-video-menu-item-now-playing",ya:"\u25b6"},{I:"div",S:"ytp-video-menu-item-thumbnail",X:{style:e?"background-image: url("+e+");":void 0}},{I:"div",S:"ytp-video-menu-item-title",ya:d.title},{I:"div",
S:"ytp-video-menu-item-author",ya:d.author}]});this.api=a;this.index=c;this.Ta("click",this.onClick)};
YZa=function(a){g.LU.call(this,a,{I:"div",S:"ytp-playlist-menu",X:{role:"dialog",id:QF()},V:[{I:"div",S:"ytp-playlist-menu-header",V:[{I:"div",S:"ytp-playlist-menu-title",V:[a.U().C?{I:"span",S:"ytp-playlist-menu-title-name",ya:"{{title}}"}:{I:"a",S:"ytp-playlist-menu-title-name",X:{href:"{{playlisturl}}"},ya:"{{title}}"},{I:"button",La:["ytp-playlist-menu-close","ytp-button"],X:{"aria-label":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},V:[g.bG()]}]},{I:"div",S:"ytp-playlist-menu-subtitle",ya:"{{subtitle}}"}]},
{I:"div",S:"ytp-playlist-menu-items",X:{role:"menu"}}]},250);this.api=a;this.D=this.selected=this.G=this.playlist=null;this.items=this.Ga("ytp-playlist-menu-items");this.C=new g.IK(this);this.j=[];var b=this.Ga("ytp-playlist-menu-close");this.T(b,"click",this.Qb);b=this.Ga("ytp-playlist-menu-title-name");a.U().C||(this.D=this.T(b,"click",this.Raa));g.N(this,this.C);this.hide()};
$W=function(a,b){g.V.call(this,{I:"button",La:["ytp-playlist-menu-button","ytp-button"],X:{title:"{{title}}","aria-owns":String(b.element.id),"aria-haspopup":"true","aria-label":"\u041f\u043b\u0435\u0439\u043b\u0438\u0441\u0442"},V:[{I:"div",S:"ytp-playlist-menu-button-icon",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{I:"div",S:"ytp-playlist-menu-button-text",ya:"{{text}}"}]});var c=this;this.api=a;this.playlist=null;this.visible=!1;a.createClientVe(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();fU(a,this.element,this);this.Ta("click",function(){a.logClick(c.element);MU(b,c.element,!1)})};
ZZa=function(a,b){g.V.call(this,{I:"div",S:"ytp-promotooltip-wrapper",V:[{I:"div",S:"ytp-promotooltip-container",V:[{I:"div",S:"ytp-promotooltip-content",V:[{I:"div",S:"ytp-promotooltip-title",ya:"{{title}}"},{I:"div",S:"ytp-promotooltip-details",ya:"{{details}}"}]},{I:"div",S:"ytp-promotooltip-buttons",V:[{I:"div",S:"ytp-promotooltip-dismiss-button",ya:"{{dismissButtonText}}",X:{tabindex:"0"}},{I:"div",S:"ytp-promotooltip-accept-button",ya:"{{acceptButtonText}}",X:{tabindex:"0","aria-haspopup":"true"}}]}]},
{I:"div",S:"ytp-promotooltip-pointer"}]});var c=this;this.tooltipRenderer=a;this.J=b;this.targetElement=this.B=null;this.title=this.Ga("ytp-promotooltip-title");this.details=this.Ga("ytp-promotooltip-details");this.acceptButton=this.Ga("ytp-promotooltip-accept-button");this.dismissButton=this.Ga("ytp-promotooltip-dismiss-button");this.j=this.D=!1;this.C=!0;this.Y=this.G=this.N=this.K=!1;this.Cd={NF:function(d){c.NF(d)}};
g.UF(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.j=!!a)this.J.createServerVe(this.element,this,!0),this.J.setTrackingParams(this.element,a);this.T(b,"onShowControls",this.p4);this.T(b,"onHideControls",this.o4);this.T(b,"resize",this.Yb);this.T(this.acceptButton,"click",this.u9);this.T(this.dismissButton,"click",this.Z9);this.T(document,"click",this.q4)};
$Za=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=0<b.length?b[0]:null;var c=g.Af("ytp-chrome-bottom"),d=g.Af("ytp-ad-module");a.C=!(null==c||!c.contains(b));a.K=!(null==d||!d.contains(b));a.N=!(null==b||!b.hasAttribute("data-tooltip-target-fixed"));return b};
c_a=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.xs(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.RF({I:"span",S:"ytp-promotooltip-details-icon",
V:[a_a[a.tooltipRenderer.targetId]]});g.N(a,h);for(var l=[],m=g.u(d),n=m.next();!n.done;n=m.next())n=new g.RF({I:"span",S:"ytp-promotooltip-details-component",ya:n.value}),g.N(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.Pf(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.xs(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;(null==(p=g.U(e,g.JM))?0:null==(q=p.text)?0:null==(r=q.runs)?0:r.length)&&g.U(e,g.JM).text.runs[0].text&&(a.update({acceptButtonText:g.U(e,g.JM).text.runs[0].text.toString()}),f=!0);g.xs(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var t,v,x;(null==(t=g.U(p,g.JM))?0:null==(v=t.text)?0:null==(x=v.runs)?0:x.length)&&g.U(p,g.JM).text.runs[0].text&&(a.update({dismissButtonText:g.U(p,g.JM).text.runs[0].text.toString()}),
q=!0);g.xs(a.dismissButton,q)}c&&(a.B=c);a.targetElement=$Za(a);a.G=!1;a.J.U().L("web_player_hide_nitrate_promo_tooltip")||g.UF(a,!0);b_a(a);a.Jb&&!a.Y&&(a.Y=!0,a.Cd.NF(0));a.j&&a.J.logVisibility(a.element,a.Jb)}};
aX=function(a){g.UF(a,!1);a.j&&a.J.logVisibility(a.element,a.Jb)};
d_a=function(a){var b,c,d,e=(null==(b=g.U(a.acceptButton,g.JM))?void 0:null==(c=b.text)?void 0:null==(d=c.runs)?void 0:d.length)&&!!g.U(a.acceptButton,g.JM).text.runs[0].text,f,h,l;b=(null==(f=g.U(a.dismissButton,g.JM))?void 0:null==(h=f.text)?void 0:null==(l=h.runs)?void 0:l.length)&&!!g.U(a.dismissButton,g.JM).text.runs[0].text;return e||b};
b_a=function(a){var b;if(!(b=!a.targetElement)){b=a.targetElement;var c=window.getComputedStyle(b);b="none"===c.display||"hidden"===c.visibility||"true"===b.getAttribute("aria-hidden")}if(b||a.J.xg())g.UF(a,!1);else if(b=g.ws(a.targetElement),b.width&&b.height){a.J.Rt(a.element,a.targetElement);var d=a.J.qb().getPlayerSize().height;c=g.ws(a.Ga("ytp-promotooltip-container")).height;a.C?a.element.style.top=d-c-b.height-12+"px":a.N||(d=a.J.An().height-c-b.height-12,a.element.style.top=d+"px");d=a.Ga("ytp-promotooltip-pointer");
var e=g.us(a.targetElement,a.J.getRootNode()),f=Number(a.element.style.left.replace(/[^\d\.]/g,""));a=a.J.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.UF(a,!1)};
bX=function(a){g.V.call(this,{I:"button",La:["ytp-replay-button","ytp-button"],X:{title:"\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c"},V:[g.Owa()]});this.J=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.Ta("click",this.onClick,this);this.Hc(a.Xb());fU(this.J,this.element,this)};
cX=function(a,b){b=void 0===b?240:b;g.V.call(this,{I:"button",La:["ytp-button","ytp-search-button"],X:{title:"\u041f\u043e\u0438\u0441\u043a","data-tooltip-opaque":String(g.UR(a.U()))},V:[{I:"div",S:"ytp-search-icon",ya:"{{icon}}"},{I:"div",S:"ytp-search-title",ya:"\u041f\u043e\u0438\u0441\u043a"}]});this.api=a;this.B=b;this.visible=!1;this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",S:"ytp-svg-fill",X:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]});
a.createClientVe(this.element,this,184945);this.Ta("click",this.onClick);this.j();this.T(a,"appresize",this.j);this.T(a,"videodatachange",this.j);fU(a,this.element,this)};
g.dX=function(a,b,c,d){d=void 0===d?240:d;g.V.call(this,{I:"button",La:["ytp-button","ytp-share-button"],X:{title:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.UR(a.U()))},V:[{I:"div",S:"ytp-share-icon",ya:"{{icon}}"},{I:"div",S:"ytp-share-title",ya:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f"}]});this.api=a;this.Ze=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.Ze.Te();this.j=
!1;a.createClientVe(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();this.addOnDisposeCallback(g.eU(this.tooltip,this.element))};
e_a=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.UR(b)&&g.lU(a.api)&&g.JG(a.api.Xb(),128);b=b.C||b.disableSharing&&2!==a.api.getPresentingPlayerType()||!c.showShareButton||c.So||d||g.QT(c)||a.j;d=a.api.qb().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b};
f_a=function(a,b){"InvalidStateError"!==b.name&&"AbortError"!==b.name&&("NotAllowedError"===b.name?(a.Ze.zq(),MU(a.B,a.element,!1)):g.tF(b))};
h_a=function(a,b){var c=QF(),d=a.U();c={I:"div",S:"ytp-share-panel",X:{id:QF(),role:"dialog","aria-labelledby":c},V:[{I:"div",S:"ytp-share-panel-inner-content",V:[{I:"div",S:"ytp-share-panel-title",X:{id:c},ya:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f"},{I:"a",La:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:d.Y,title:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0441\u044b\u043b\u043a\u043e\u0439","aria-label":"{{shareLinkWithUrl}}"},
ya:"{{linkText}}"},{I:"label",S:"ytp-share-panel-include-playlist",V:[{I:"input",S:"ytp-share-panel-include-playlist-checkbox",X:{type:"checkbox",checked:"true"}},"\u0412 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u0430"]},{I:"div",S:"ytp-share-panel-loading-spinner",V:[aWa()]},{I:"div",S:"ytp-share-panel-service-buttons",ya:"{{buttons}}"},{I:"div",S:"ytp-share-panel-error",ya:"\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435."}]},
{I:"button",La:["ytp-share-panel-close","ytp-button"],X:{title:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},V:[g.bG()]}]};g.LU.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Te();this.C=[];this.G=this.Ga("ytp-share-panel-inner-content");this.closeButton=this.Ga("ytp-share-panel-close");this.T(this.closeButton,"click",this.Qb);this.addOnDisposeCallback(g.eU(this.tooltip,this.closeButton));this.D=this.Ga("ytp-share-panel-include-playlist-checkbox");this.T(this.D,"click",
this.Sa);this.j=this.Ga("ytp-share-panel-link");this.addOnDisposeCallback(g.eU(this.tooltip,this.j));this.api.createClientVe(this.j,this,164503);this.T(this.j,"click",function(f){f.preventDefault();e.api.logClick(e.j);var h=e.api.getVideoUrl(!0,!0,!1,!1);h=g_a(e,h);g.aV(h,e.api,f)&&e.api.ob("SHARE_CLICKED")});
this.Ta("click",this.r4);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.S8);this.hide()};
j_a=function(a,b){i_a(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={ow:void 0,Em:void 0},f++){e.ow=c[f];a:switch(e.ow.img||e.ow.iconId){case "facebook":var h={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{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.ow.sname||e.ow.serviceName;e.Em=new g.V({I:"a",La:["ytp-share-panel-service-button","ytp-button"],X:{href:e.ow.url,target:"_blank",title:l},V:[h]});e.Em.Ta("click",function(p){return function(q){var r=p.ow.url;if(g.UG(q)){var t=void 0===t?{}:t;t.target=t.target||"YouTube";t.width=t.width||"600";t.height=t.height||"600";var v=t;v||(v={});t=window;var x=r instanceof g.ge?r:g.ye("undefined"!=typeof r.href?r.href:String(r));var A=void 0!==self.crossOriginIsolated,
E="strict-origin-when-cross-origin";window.Request&&(E=(new Request("/")).referrerPolicy);var F="unsafe-url"===E;E=v.noreferrer;if(A&&E){if(F)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");E=!1}r=v.target||r.target;A=[];for(var G in v)switch(G){case "width":case "height":case "top":case "left":A.push(G+"="+v[G]);break;case "target":case "noopener":case "noreferrer":break;default:A.push(G+"="+(v[G]?1:0))}G=A.join(",");Nc()&&
t.navigator&&t.navigator.standalone&&r&&"_self"!=r?(v=g.If("A"),v.href=Rba(x),v.target=r,E&&(v.rel="noreferrer"),x=document.createEvent("MouseEvent"),x.initMouseEvent("click",!0,!0,t,1),v.dispatchEvent(x),t={}):E?(t=Sba("",t,r,G),x=g.ke(x),t&&(g.nS&&g.ic(x,";")&&(x="'"+x.replace(/'/g,"%27")+"'"),t.opener=null,""===x&&(x="javascript:''"),x=g.te('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.$e(x)+'">'),(v=t.document)&&v.write&&(v.write(g.pe(x)),v.close()))):
((t=Sba(x,t,r,G))&&v.noopener&&(t.opener=null),t&&v.noreferrer&&(t.opener=null));t&&(t.opener||(t.opener=window),t.focus());q.preventDefault()}}}(e));
e.Em.addOnDisposeCallback(g.eU(a.tooltip,e.Em.element));"Facebook"===l?a.api.createClientVe(e.Em.element,e.Em,164504):"Twitter"===l&&a.api.createClientVe(e.Em.element,e.Em,164505);a.T(e.Em.element,"click",function(p){return function(){a.api.logClick(p.Em.element)}}(e));
a.api.logVisibility(e.Em.element,!0);a.C.push(e.Em);d++}}var m=b.more||b.moreLink,n=new g.V({I:"a",La:["ytp-share-panel-service-button","ytp-button"],V:[{I:"span",S:"ytp-share-panel-service-button-more",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{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"}}]}]}],X:{href:m,target:"_blank",title:"\u0415\u0449\u0451"}});n.Ta("click",function(p){var q=m;a.api.logClick(a.moreButton.element);q=g_a(a,q);g.aV(q,a.api,p)&&a.api.ob("SHARE_CLICKED")});
n.addOnDisposeCallback(g.eU(a.tooltip,n.element));a.api.createClientVe(n.element,n,164506);a.T(n.element,"click",function(){a.api.logClick(n.element)});
a.api.logVisibility(n.element,!0);a.C.push(n);a.moreButton=n;a.updateValue("buttons",a.C)};
g_a=function(a,b){var c={};g.UR(a.api.U())&&(g.WT(a.api,"addEmbedsConversionTrackingParams",[c]),b=g.an(b,g.pP(c,"emb_share")));return b};
i_a=function(a){for(var b=g.u(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.vb(c);a.C=[]};
eX=function(a){return void 0===a||void 0===a.startSec||void 0===a.endSec?!1:!0};
k_a=function(a,b){a.startSec+=b;a.endSec+=b};
m_a=function(a){OW.call(this,a);this.D=this.j=this.isContentForward=this.N=!1;l_a(this);this.T(this.J,"changeProductsInVideoVisibility",this.N$);this.T(this.J,"videodatachange",this.onVideoDataChange)};
n_a=function(a){a.G&&a.Ma.element.removeChild(a.G.element);a.G=void 0};
p_a=function(a,b){return b.map(function(c){var d,e;if((c=null==(d=g.U(c,o_a))?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.V({I:"img",
S:"ytp-suggested-action-product-thumbnail",X:{alt:"",src:c}});g.N(a,c);return c})};
q_a=function(a,b){a.isContentForward=b;g.bv(a.badge.element,"ytp-suggested-action-badge-content-forward",b)};
fX=function(a){var b=a.isContentForward&&!a.LK();g.bv(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.bv(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.D)};
gX=function(a,b,c){return new g.UJ(1E3*a,1E3*b,{priority:9,namespace:c})};
r_a=function(a){a.J.Cf("shopping_overlay_visible");a.J.Cf("shopping_overlay_preview_collapsed");a.J.Cf("shopping_overlay_preview_expanded");a.J.Cf("shopping_overlay_expanded")};
l_a=function(a){a.T(a.J,g.VJ("shopping_overlay_visible"),function(){a.jg(!0)});
a.T(a.J,g.WJ("shopping_overlay_visible"),function(){a.jg(!1)});
a.T(a.J,g.VJ("shopping_overlay_expanded"),function(){a.Ca=!0;NW(a)});
a.T(a.J,g.WJ("shopping_overlay_expanded"),function(){a.Ca=!1;NW(a)});
a.T(a.J,g.VJ("shopping_overlay_preview_collapsed"),function(){a.j=!0;fX(a)});
a.T(a.J,g.WJ("shopping_overlay_preview_collapsed"),function(){a.j=!1;fX(a)});
a.T(a.J,g.VJ("shopping_overlay_preview_expanded"),function(){a.D=!0;fX(a)});
a.T(a.J,g.WJ("shopping_overlay_preview_expanded"),function(){a.D=!1;fX(a)})};
t_a=function(a){g.V.call(this,{I:"div",S:"ytp-shorts-title-channel",V:[{I:"a",S:"ytp-shorts-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().Y,"aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-shorts-title-expanded-heading",V:[{I:"div",S:"ytp-shorts-title-expanded-title",V:[{I:"a",ya:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,tabIndex:"0"}}]}]}]});var b=this;this.api=a;this.j=this.Ga("ytp-shorts-title-channel-logo");this.channelName=this.Ga("ytp-shorts-title-expanded-title");
this.subscribeButton=null;a.createClientVe(this.j,this,36925);this.T(this.j,"click",function(c){b.api.L("web_player_ve_conversion_fixes_for_channel_info")?(b.api.logClick(b.j),g.Ue(hX(b)),c.preventDefault()):b.api.logClick(b.j)});
a.createClientVe(this.channelName,this,37220);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Ue(hX(b));c.preventDefault()});
s_a(this);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.Sa()};
s_a=function(a){if(!a.api.U().Lc){var b=a.api.getVideoData(),c=new g.yW("\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f",null,"\u0412\u044b \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u044b",null,!0,!1,b.Gl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)});
a.subscribeButton=c;g.N(a,a.subscribeButton);a.subscribeButton.Ja(a.element)}};
hX=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.rS(b)+c.Jc;if(!g.UR(b))return c;b={};g.WT(a.api,"addEmbedsConversionTrackingParams",[b]);g.pP(b,"emb_ch_name_ex");return g.an(c,b)};
iX=function(a){g.LU.call(this,a,{I:"button",La:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{I:"div",S:"ytp-skip-intro-button-text",ya:"\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0437\u0430\u0441\u0442\u0430\u0432\u043a\u0443"}]},100);var b=this;this.C=!1;this.j=new g.Qu(function(){b.hide()},5E3);
this.Gf=this.Wi=NaN;g.N(this,this.j);this.K=function(){b.show()};
this.G=function(){b.hide()};
this.D=function(){var c=b.J.getCurrentTime();c>b.Wi/1E3&&c<b.Gf/1E3&&b.show()};
this.T(this.J,"videodatachange",function(c,d){b.gt(c,d)});
this.T(this.element,"click",function(){b.J.seekTo(b.Gf/1E3)});
this.hide()};
jX=function(a){g.V.call(this,{I:"button",La:["ytp-airplay-button","ytp-button"],X:{title:"AirPlay","data-priority":"9"},ya:"{{icon}}"});this.J=a;this.Ta("click",this.onClick);this.T(a,"airplayactivechange",this.Sa);this.T(a,"airplayavailabilitychange",this.Sa);this.Sa();fU(a,this.element,this)};
v_a=function(a){g.V.call(this,{I:"div",S:"ytp-gradient-bottom"});this.canvas=g.If("CANVAS");this.j=this.canvas.getContext("2d");this.B=NaN;this.canvas.width=1;u_a(this,a.qb().getPlayerSize().height)};
u_a=function(a,b){if(a.j){b=Math.floor(.4*b);b=Math.max(b,47);var c=b+2;if(a.B!==c){a.B=c;a.canvas.height=c;a.j.clearRect(0,0,1,c);var d=a.j.createLinearGradient(0,2,0,2+b),e=b-42;d.addColorStop(0,"rgba(0, 0, 0, 0)");d.addColorStop(e/b,"rgba(0, 0, 0, 0.3)");d.addColorStop(1,"rgba(0, 0, 0, 0.68)");a.j.fillStyle=d;a.j.fillRect(0,2,1,b);a.element.style.height=c+"px";try{a.element.style.backgroundImage="url("+a.canvas.toDataURL()+")"}catch(f){}}}};
kX=function(a,b,c,d){g.V.call(this,{I:"div",S:"ytp-chapter-container",V:[{I:"button",La:["ytp-chapter-title","ytp-button"],V:[{I:"span",X:{"aria-hidden":"true"},S:"ytp-chapter-title-prefix",ya:"\u2022"},{I:"div",S:"ytp-chapter-title-content",ya:"{{title}}",X:{"aria-label":"{{ariaLabel}}",title:d}},{I:"div",S:"ytp-chapter-title-chevron",V:[{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});
this.J=a;this.D=b;this.G="";this.currentIndex=0;this.B=void 0;this.C=!0;this.Y=this.Ga("ytp-chapter-container");this.j=this.Ga("ytp-chapter-title");this.ma=this.Ga("ytp-chapter-title-content");this.updateVideoData("newdata",this.J.getVideoData());this.T(a,"videodatachange",this.updateVideoData);this.T(this.Y,"click",this.onClick);this.T(a,g.VJ(c),this.Rc);this.T(a,"onLoopRangeChange",this.Rc);this.T(a,"innertubeCommand",this.onClickCommand);(a=this.J.L("web_disable_channels_chapter_entrypoint")&&
g.bS(this.J.U()))&&g.bv(this.j,"ytp-profile-page",!0);this.J.L("web_fitted_chapter_button_killswitch")||g.bv(this.j,"fitted-chapter-button",!0);g.UR(this.J.U())||a||fU(this.J,this.ma,this)};
lX=function(a,b){kX.call(this,a,b,"chapterCueRange","\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u044d\u043f\u0438\u0437\u043e\u0434\u043e\u0432")};
w_a=function(a,b,c,d,e){var f=b.Bw/b.rows,h=Math.min(c/(b.AE/b.columns),d/f),l=b.AE*h,m=b.Bw*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,q=-b.column*n,r=-b.row*p;e&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+r+"px/"+l+"px "+m+"px"};
x_a=function(a){return a.L("web_big_boards")?a.xg()?a.L("web_big_boards_enable_in_miniplayer"):a.isInline()?a.L("web_big_boards_enable_in_inline"):!0:!1};
mX=function(a,b){g.V.call(this,{I:"div",S:"ytp-storyboard-framepreview",V:[{I:"div",S:"ytp-storyboard-framepreview-timestamp",ya:"{{timestamp}}"},{I:"div",S:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.Ga("ytp-storyboard-framepreview-img");this.B=null;this.C=NaN;this.events=new g.IK(this);this.j=new g.CG(this,100);g.N(this,this.events);g.N(this,this.j);this.T(this.api,"presentingplayerstatechange",this.G);b&&this.T(this.element,"click",function(){b.Av()});
x_a(this.api)&&g.Yu(this.element,"ytp-storyboard-framepreview-big-boards")};
U_a=function(a,b){var c=!!a.B;a.B=b;a.B?(c||(a.events.T(a.api,"videodatachange",function(){U_a(a,a.api.ek())}),a.events.T(a.api,"progresssync",a.hg),a.events.T(a.api,"appresize",a.K)),a.C=NaN,V_a(a),a.j.show(200)):(c&&g.FC(a.events),a.j.hide(),a.j.stop())};
V_a=function(a){var b=a.B,c=a.api.getCurrentTime(),d=a.api.qb().getPlayerSize(),e=QS(b,d.width);e=qSa(b,e,c);a.update({timestamp:g.TG(c)});e!==a.C&&(a.C=e,oSa(b,e,d.width),b=mSa(b,e,d.width),w_a(a.D,b,d.width,d.height))};
W_a=function(a,b){g.V.call(this,{I:"button",La:["ytp-fullscreen-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"10","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ya:"{{icon}}"});this.J=a;this.Ze=b;this.message=null;this.j=g.eU(this.Ze.Te(),this.element);this.B=new g.Qu(this.O5,2E3,this);g.N(this,this.B);this.T(a,"fullscreentoggled",this.Fm);this.T(a,"presentingplayerstatechange",this.Sa);this.T(a,"resize",this.Sa);this.Ta("click",this.onClick);g.uC()&&(b=
this.J.qb(),this.T(b,eqa(),this.qQ),this.T(b,dqa(document),this.Mw));a.U().Ob||a.U().Z||this.disable();a.createClientVe(this.element,this,139117);this.Sa();this.Fm(a.isFullscreen())};
nX=function(a,b){g.V.call(this,{I:"button",La:["ytp-button","ytp-jump-button"],X:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[0<b?{I:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",La:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}},
{I:"text",La:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"7.05",y:"15.05"}}]}:{I:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",La:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}},
{I:"text",La:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"6.5",y:"15"}}]}]});var c=this;this.J=a;this.j=b;this.B=new g.Qu(function(){c.C?(c.C=!1,c.B.start()):c.element.classList.remove("ytp-jump-spin","backwards")},250);
this.C=!1;(b=0<b)?this.J.createClientVe(this.element,this,36843):this.J.createClientVe(this.element,this,36844);var d=g.aK(b?"\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u0432\u043f\u0435\u0440\u0435\u0434 \u043d\u0430 $SECONDS \u0441 (\u2192)":"\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0437\u0430\u0434 \u043d\u0430 $SECONDS \u0441 (\u2190)",{SECONDS:Math.abs(this.j).toString()});this.update({title:d,"data-title-no-tooltip":d,"aria-keyshortcuts":b?
"\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);fU(a,this.element,this)};
X_a=function(a,b){b?a.element.classList.add("ytp-jump-button-enabled"):a.element.classList.remove("ytp-jump-button-enabled");a.J.logVisibility(a.element,b);a.J.Mh()};
oX=function(a,b){kX.call(this,a,b,"timedMarkerCueRange","\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b");this.T(a,g.WJ("timedMarkerCueRange"),this.Rc);this.T(a,"updatemarkervisibility",this.updateVideoData)};
Y_a=function(a){var b,c=null==(b=a.J.getVideoData())?void 0:b.Fe;if(c)for(a=a.D.Na,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}};
pX=function(a){g.V.call(this,{I:"button",La:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:[Lwa()]});this.J=a;this.visible=!1;this.Ta("click",this.onClick);this.T(a,"fullscreentoggled",this.Sa);this.updateValue("title",g.gU(a,"\u041c\u0438\u043d\u0438-\u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c","i"));this.update({"data-title-no-tooltip":"\u041c\u0438\u043d\u0438-\u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c"});
fU(a,this.element,this);a.createClientVe(this.element,this,62946);this.Sa()};
g.qX=function(a,b,c){c=void 0===c?!1:c;g.V.call(this,{I:"button",La:["ytp-mute-button","ytp-button"],X:a.U().Xa?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},ya:"{{icon}}"});this.J=a;this.Ea=c;this.j=null;this.D=this.Y=this.G=this.va=NaN;this.Ca=this.K=null;this.C=[];this.B=[];this.visible=!1;this.N=null;c=this.J.U();this.updateValue("icon",Rwa());this.tooltip=b.Te();this.j=new g.RF({I:"svg",X:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},V:[{I:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{I:"path",X:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{I:"path",S:"ytp-svg-volume-animation-mover",X:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{I:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},V:[{I:"path",S:"ytp-svg-volume-animation-mover",X:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},
{I:"path",Ic:!0,La:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],X:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{I:"path",Ic:!0,La:["ytp-svg-fill","ytp-svg-volume-animation-hider"],X:{"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.N(this,this.j);this.K=this.j.Ga("ytp-svg-volume-animation-speaker");
this.Ca=this.K.getAttribute("d");this.C=g.zf("ytp-svg-volume-animation-mover",this.j.element);this.B=g.zf("ytp-svg-volume-animation-hider",this.j.element);this.Ia=new GV;g.N(this,this.Ia);this.ma=new GV;g.N(this,this.ma);this.Ta("click",this.y$);this.T(a,"appresize",this.pU);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;c.Xa?this.addOnDisposeCallback(g.eU(b.Te(),this.element)):(b="\u0412 \u0432\u0430\u0448\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c \u0437\u0432\u0443\u043a\u0430. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK".split(/\$(BEGIN|END)_LINK/),
d=new g.LU(a,{I:"span",La:["ytp-popup","ytp-generic-popup"],X:{tabindex:"0"},V:[b[0],{I:"a",X:{href:"https://support.google.com/youtube/?p=noaudio",target:c.Y},ya:b[2]},b[4]]},100,!0),g.N(this,d),d.hide(),d.subscribe("show",function(e){a.gD(d,e)}),g.oU(a,d.element,4));
this.message=d;a.createClientVe(this.element,this,28662);this.pU(a.qb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
a0a=function(a,b){a.va=b;var c=a.Ca;b&&(c+=hXa(Z_a,$_a,b));a.K.setAttribute("d",c)};
b0a=function(a,b){a.Y=b;for(var c=20*b,d=0;d<a.C.length;d++)a.C[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=Rwa():e=a.j;for(c=0;c<a.B.length;c++){d=a.B[c];var f=void 0;if(null==(f=d)?0:f.style)d.style.display=0===b?"none":""}e!==a.N&&(a.updateValue("icon",e),a.N=e)};
g.rX=function(a,b){g.V.call(this,{I:"button",La:["ytp-play-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ya:"{{icon}}"});this.J=a;this.j=null;this.transition=new GV;this.tooltip=b.Te();g.N(this,this.transition);a.createClientVe(this.element,this,36842);a.logVisibility(this.element,!0);this.T(a,"fullscreentoggled",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"videodatachange",this.onVideoDataChange);
this.Hc(a.Xb());this.Ta("click",this.Mr,this);this.addOnDisposeCallback(g.eU(b.Te(),this.element))};
c0a=function(a){switch(a){case 1:return Mwa();case 2:return Jwa();case 3:return g.Owa();case 4:return Qwa();default:return null}};
g.sX=function(a,b,c){g.V.call(this,{I:"a",La:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],X:{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}}"},V:[c?Gwa():Nwa()]});var d=this;this.J=a;this.j=c;this.playlist=this.videoData=null;this.K=
!1;this.D=this.G=this.B=null;this.C=!1;this.tooltip=b.Te();c?a.createClientVe(this.element,this,6193):a.createClientVe(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.dM);this.T(a,"mdxpreviousnextchange",function(){d0a(d);d.dM()});
this.onVideoDataChange()};
e0a=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
f0a=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.J.getCurrentTime()&&2!==a.J.getPresentingPlayerType()};
g0a=function(a){var b=kU(a.J.Bb());return b?a.j?b.Vk():b.Cp():!1};
d0a=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.Vk();c=g.lU(a.J)&&(!a.j||c);var d=a.j&&g.pU(a.J),e=g0a(a),f=a.j&&5===a.J.getPresentingPlayerType(),h=g.gU(a.J,"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435","SHIFT+n"),l=g.gU(a.J,"\u041d\u0430\u0437\u0430\u0434","SHIFT+p");if(f)b.title="\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e";
else if(a.C)b.title="\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c";else if(c){var m=null;a.playlist&&(m=g.OV(a.playlist,a.j?yXa(a.playlist):zXa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;b.url=a.J.U().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.TG(m.lengthSeconds):null;b.preview=m.hh("mqdefault.jpg")}a.j?(b.title=h,b["data-title-no-tooltip"]="\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435",b["aria-keyshortcuts"]=
"SHIFT+n"):(b.title=l,b["data-title-no-tooltip"]="\u041d\u0430\u0437\u0430\u0434",b["aria-keyshortcuts"]="SHIFT+p")}else if(d){if(l=null==(m=a.videoData)?void 0:g.iT(m))b.url=l.Tk(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.TG(l.lengthSeconds):null,b.preview=l.hh("mqdefault.jpg");b.title=h;b["data-title-no-tooltip"]="\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435";b["aria-keyshortcuts"]="SHIFT+n"}b.disabled=!d&&!c&&!e&&!f;a.update(b);a.K=!!b.url;d||c||a.C||e||f?
a.B||(a.B=g.eU(a.tooltip,a.element),a.G=a.Ta("click",a.onClick,a)):a.B&&(a.B(),a.B=null,a.Tc(a.G),a.G=null);a.tooltip.Mh()};
i0a=function(a,b){g.V.call(this,{I:"div",S:"ytp-fine-scrubbing",V:[{I:"div",S:"ytp-fine-scrubbing-draggable",V:[{I:"div",S:"ytp-fine-scrubbing-thumbnails",X:{tabindex:"0",role:"slider",type:"range","aria-label":"\u0427\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0442\u043e\u0447\u043d\u0435\u0435, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u044c \u0438\u043b\u0438 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u0435 \u0435\u0435",
"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{I:"div",X:{"aria-hidden":"true"},S:"ytp-fine-scrubbing-cursor"},{I:"div",S:"ytp-fine-scrubbing-seek-time",X:{"aria-hidden":"true"},ya:"{{seekTime}}"},{I:"div",S:"ytp-fine-scrubbing-play",V:[Mwa()],X:{title:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0441 \u044d\u0442\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430",role:"button"}},
{I:"div",S:"ytp-fine-scrubbing-dismiss",V:[g.bG()],X:{title:"\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043c\u0430 \u0442\u043e\u0447\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0438",role:"button"}}]});var c=this;this.api=a;this.G=this.Ga("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Ga("ytp-fine-scrubbing-dismiss");this.Ca=this.Ga("ytp-fine-scrubbing-draggable");this.playButton=this.Ga("ytp-fine-scrubbing-play");this.thumbnails=[];this.B=
[];this.Na=this.j=0;this.Ma=void 0;this.ma=NaN;this.Ra=this.Y=this.C=this.N=0;this.D=[];this.interval=this.frameCount=0;this.K=160;this.scale=1;this.Wa=0;this.isEnabled=this.Ea=!1;h0a(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.eU(b,this.dismissButton));this.addOnDisposeCallback(g.eU(b,this.playButton));this.Ia=new g.qV(this.Ca,!0);this.Ia.subscribe("dragstart",this.fM,this);this.Ia.subscribe("dragmove",this.eM,this);this.Ia.subscribe("dragend",this.t4,this);this.T(a,"SEEK_COMPLETE",
this.LA);a.L("web_fix_fine_scrubbing_false_play")&&this.T(a,"rootnodemousedown",function(d){c.va=d});
this.G.addEventListener("keydown",function(){});
g.N(this,this.Ia);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.G,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)};
h0a=function(a,b){var c=g.TG(b),d=g.aK("\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u0434\u043e $PROGRESS",{PROGRESS:g.TG(b,!0)});a.update({ariamin:0,ariamax:Math.floor(a.api.getDuration()),arianow:Math.floor(b),arianowtext:d,seekTime:c})};
j0a=function(a){a.ma=NaN;a.Y=0;a.N=a.C};
m0a=function(a){var b=a.api.ek();if(b){var c=90*a.scale,d=QS(b,160*a.scale);if(b=b.levels[d]){a.K=b.width;if(!a.D.length){d=[];for(var e=RS(b,b.ey()),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.Ue(l),column:0,columns:p,row:n,rows:m,AE:b.width*p,Bw:b.height*m};d.push(q);h-=p;if(1>=h)break}a.D=d;a.frameCount=b.XH();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.D.length;)d=
void 0,null==(d=a.thumbnails.pop())||d.dispose();for(;a.thumbnails.length<a.D.length;)d=new k0a,a.thumbnails.push(d),d.Ja(a.G),g.N(a,d);for(d=0;d<a.D.length;d++)e=a.thumbnails[d].element,f=a.D[d],h=a.K*a.scale,l=f.Bw/f.rows,m=c/l,e.style.background="url("+f.url+") 0 "+-f.row*f.Bw/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";tX(a,a.api.getCurrentTime());for(c=a.api.getVideoData().jl;a.B.length>c.length;)d=void 0,null==(d=a.B.pop())||d.dispose();
for(;a.B.length<c.length;)d=new l0a,a.B.push(new l0a),g.N(a,d);for(d=0;d<c.length;d++)e=c[d],a.B[d].update({chapterTitle:e.title}),e=Math.round(e.startTime/b.j),f=Math.floor(e/b.rows),g.ks(a.B[d].element,"transform","translateX("+e%b.rows*a.K*a.scale+"px)"),f<a.thumbnails.length&&a.thumbnails[f]&&a.B[d].Ja(a.thumbnails[f].element);a.Ea=!0}}};
tX=function(a,b){a.va&&(a.va.Rz=!0);a.update({seekTime:g.TG(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.He(b,n0a(a),a.j/2);a.N=b;a.C=a.N;g.ks(a.Ca,"transform","translateX("+(a.N-a.j/2)+"px)");g.ks(a.Ca,"padding","0px "+a.j/2+"px");g.ks(a.G,"position","relative")};
o0a=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};
n0a=function(a){return-((a.G.offsetWidth||(a.frameCount-1)*a.K*a.scale)-a.j/2)};
k0a=function(){g.V.call(this,{I:"div",S:"ytp-fine-scrubbing-thumbnail"})};
l0a=function(){g.V.call(this,{I:"div",S:"ytp-fine-scrubbing-chapter-title",V:[{I:"div",S:"ytp-fine-scrubbing-chapter-title-content",ya:"{{chapterTitle}}"}]})};
p0a=function(a){g.V.call(this,{I:"div",S:"ytp-heat-map-chapter",V:[{I:"svg",S:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"{{id}}"},V:[{I:"path",S:"ytp-heat-map-path",X:{d:"",fill:"white"}}]}]},{I:"rect",S:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",fill:"white",
"fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.K=this.Ga("ytp-heat-map-svg");this.C=this.Ga("ytp-heat-map-path");this.G=this.Ga("ytp-heat-map-graph");this.D=this.Ga("ytp-heat-map-play");this.B=this.Ga("ytp-heat-map-hover");this.Ke=!1;this.j=60;a=""+g.fb(this);this.update({id:a});a="url(#"+a+")";this.G.setAttribute("clip-path",a);this.D.setAttribute("clip-path",a);this.B.setAttribute("clip-path",
a);this.api.L("web_heat_map_v2")&&g.Yu(this.api.getRootNode(),"ytp-heat-map-v2")};
q0a=function(a,b){0<b&&(a.j=b,a.K.style.height=a.j+"px")};
uX=function(){g.V.call(this,{I:"div",S:"ytp-chapter-hover-container",V:[{I:"div",S:"ytp-progress-bar-padding"},{I:"div",S:"ytp-progress-list",V:[{I:"div",La:["ytp-play-progress","ytp-swatch-background-color"]},{I:"div",S:"ytp-progress-linear-live-buffer"},{I:"div",S:"ytp-load-progress"},{I:"div",S:"ytp-hover-progress"},{I:"div",S:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.D=this.Ga("ytp-progress-linear-live-buffer");this.C=this.Ga("ytp-ad-progress-list");
this.G=this.Ga("ytp-load-progress");this.K=this.Ga("ytp-play-progress");this.B=this.Ga("ytp-hover-progress");this.j=this.Ga("ytp-chapter-hover-container")};
vX=function(a,b){g.ks(a.j,"width",b)};
r0a=function(a,b){g.ks(a.j,"margin-right",b+"px")};
s0a=function(){this.B=this.position=this.C=this.j=this.D=this.width=NaN};
t0a=function(){g.V.call(this,{I:"div",S:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.xX=function(a,b){g.VF.call(this,{I:"div",S:"ytp-progress-bar-container",X:{"aria-disabled":"true"},V:[{I:"div",La:["ytp-heat-map-container"],V:[{I:"div",S:"ytp-heat-map-edu"}]},{I:"div",La:["ytp-progress-bar"],X:{tabindex:"0",role:"slider","aria-label":"\u041f\u043e\u043b\u0437\u0443\u043d\u043e\u043a \u043f\u043e\u0438\u0441\u043a\u0430","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{I:"div",S:"ytp-chapters-container"},
{I:"div",S:"ytp-timed-markers-container"},{I:"div",S:"ytp-clip-start-exclude"},{I:"div",S:"ytp-clip-end-exclude"},{I:"div",S:"ytp-scrubber-container",V:[{I:"div",La:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{I:"div",S:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",La:["ytp-fine-scrubbing-container"],V:[{I:"div",S:"ytp-fine-scrubbing-edu"}]},{I:"div",S:"ytp-bound-time-left",ya:"{{boundTimeLeft}}"},{I:"div",S:"ytp-bound-time-right",ya:"{{boundTimeRight}}"},{I:"div",S:"ytp-clip-start",
X:{title:"{{clipstarttitle}}"},ya:"{{clipstarticon}}"},{I:"div",S:"ytp-clip-end",X:{title:"{{clipendtitle}}"},ya:"{{clipendicon}}"}]});this.api=a;this.Pe=!1;this.Yf=this.Wa=this.N=this.Xf=0;this.Bd=null;this.Ma={};this.Vb={};this.clipEnd=Infinity;this.Gb=this.Ga("ytp-clip-end");this.Lc=new g.qV(this.Gb,!0);this.Ff=this.Ga("ytp-clip-end-exclude");this.rg=this.Ga("ytp-clip-start-exclude");this.clipStart=0;this.Ob=this.Ga("ytp-clip-start");this.Jc=new g.qV(this.Ob,!0);this.ma=this.ib=0;this.progressBar=
this.Ga("ytp-progress-bar");this.ub={};this.Na={};this.jc=this.Ga("ytp-chapters-container");this.Wf=this.Ga("ytp-timed-markers-container");this.j=[];this.K=[];this.me={};this.Gf=null;this.Xa=-1;this.tb=this.Ca=0;this.Y=null;this.Zf=this.Ga("ytp-scrubber-button");this.Yg=this.Ga("ytp-scrubber-container");this.Za=new g.Ke;this.wh=new s0a;this.C=new WG(0,0);this.Eb=null;this.D=this.Fe=!1;this.Vf=null;this.va=this.Ga("ytp-heat-map-container");this.Kd=this.Ga("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=
[];this.fb=this.Ga("ytp-fine-scrubbing-container");this.Yc=this.Ga("ytp-fine-scrubbing-edu");this.B=void 0;this.Ia=this.rd=this.Ea=!1;this.tooltip=b.Te();this.addOnDisposeCallback(g.eU(this.tooltip,this.Gb));g.N(this,this.Lc);this.Lc.subscribe("hoverstart",this.lZ,this);this.Lc.subscribe("hoverend",this.kZ,this);this.T(this.Gb,"click",this.pK);this.addOnDisposeCallback(g.eU(this.tooltip,this.Ob));g.N(this,this.Jc);this.Jc.subscribe("hoverstart",this.lZ,this);this.Jc.subscribe("hoverend",this.kZ,this);
this.T(this.Ob,"click",this.pK);u0a(this);this.T(a,"resize",this.Yb);this.T(a,"presentingplayerstatechange",this.N7);this.T(a,"videodatachange",this.gt);this.T(a,"videoplayerreset",this.M7);this.T(a,"cuerangesadded",this.wda);this.T(a,"cuerangesremoved",this.Vba);this.T(a,"onLoopRangeChange",this.qU);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.VJ("timedMarkerCueRange"),this.Qaa);this.T(a,"updatemarkervisibility",this.W0);this.updateVideoData(a.getVideoData(),!0);this.qU(a.getLoopRange());
wX(this)&&!this.B&&(this.B=new i0a(this.api,this.tooltip),a=g.ts(this.element).x||0,this.B.Yb(a,this.N),this.B.Ja(this.fb),g.N(this,this.B),this.T(this.B.dismissButton,"click",this.Av),this.T(this.B.playButton,"click",this.NN),this.T(this.B.element,"dblclick",this.NN));this.api.createClientVe(this.va,this,139609,!0);this.api.createClientVe(this.Kd,this,140127,!0);this.api.createClientVe(this.Yc,this,151179,!0);this.api.L("web_modern_miniplayer")&&(this.element.hidden=!0)};
u0a=function(a){if(0===a.j.length){var b=new uX;a.j.push(b);g.N(a,b);b.Ja(a.jc,0)}for(;1<a.j.length;)a.j.pop().dispose();vX(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
v0a=function(a){var b=void 0===b?NaN:b;var c=new p0a(a.api);a.G.push(c);g.N(a,c);c.Ja(a.va);0<=b&&(c.element.style.width=b+"px")};
w0a=function(a){for(;a.K.length;)a.K.pop().dispose()};
y0a=function(a){var b,c,d,e,f;return null==(f=g.U(null==(e=g.U(null==(b=a.getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,WRa))?void 0:e.playerBar,x0a))?void 0:f.chapters};
z0a=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.UJ(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.Cf("chapterCueRange");a.api.yf(c)};
H0a=function(a,b){var c,d=null==(c=a.ub[b])?void 0:c.chapters;d&&(A0a(a,d),a.api.getVideoData().jl=a.j,z0a(a));var e;if((c=null==(e=a.ub[b])?void 0:e.markers)&&"HEATSEEKER"!==b){w0a(a);e=g.u(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new t0a,d=g.U(d,g.B0a)){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;C0a(a,c)}D0a(a,
a.K);e=a.K;c=a.me;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=RZa(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.yf(d)}var l;if(b=g.U(null==(l=a.ub[b])?void 0:l.heatmap,E0a)){l=b.heatMarkers||[];var m;e=null!=(m=b.minHeightDp)?m:0;var n;m=null!=(n=b.maxHeightDp)?n:60;n=a.j.length;c=null;for(d=0;d<n;d++){h=a.j[d].startTime;var p=d===n-1?Infinity:a.j[d+1].startTime;d===a.G.length&&
v0a(a);f=[];c&&f.push(c);for(var q=g.u(l),r=q.next();!r.done;r=q.next()){r=r.value;var t=void 0,v=void 0,x=null!=(v=null==(t=g.U(r,F0a))?void 0:t.timeRangeStartMillis)?v:-1;x>=h&&x<=p&&f.push(r)}0<m&&(a.va.style.height=m+"px");h=a.G[d];p=f;r=e;v=m;x=0===d;x=void 0===x?!1:x;q0a(h,v);q=p;t=h.j;x=void 0===x?!1:x;var A=1E3/q.length,E=[];E.push({x:0,y:100});for(var F=0;F<q.length;F++){var G=void 0,M=(null==(G=g.U(q[F],F0a))?void 0:G.heatMarkerIntensityScoreNormalized)||0;G=(F+.5)*A;M=100-g.He(100*M,r/
t*100,v/t*100);0!==F||x||E.push({x:0,y:M});E.push({x:G,y:M});F===q.length-1&&E.push({x:1E3,y:M})}E.push({x:1E3,y:100});q=E;p=0===p.length?"":bza(q);h.C.setAttribute("d",p);h.Ke=""!==p;g.bv(h.api.getRootNode(),"ytp-heat-map",h.Ke);g.bv(h.api.getRootNode(),"ytp-heat-map-played_bar",h.api.L("web_player_heat_map_played_bar")&&""!==p);0<f.length&&(c=f[f.length-1])}g.yX(a);l=[];b=g.u(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.U(e.value,G0a))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.YF(m):""});a.heatMarkersDecorations=l}};
C0a=function(a,b){a.K.push(b);g.N(a,b);b.Ja(a.Wf,a.Wf.children.length)};
D0a=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=I0a(a,c.timeRangeStartMillis/(1E3*a.C.j),zX(a));g.ks(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
A0a=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.U(e,J0a)){e=g.U(e,J0a);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.YF(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 uX,a.j.push(f),g.N(a,f),f.Ja(a.jc,a.jc.children.length));a.j[c].startTime=
e.startTime;a.j[c].title=e.title?e.title:"";a.j[c].onActiveCommand=e.onActiveCommand;a.j[c].index=d?c-1:c}c++}for(;c<a.j.length;)a.j.pop().dispose();g.yX(a);AX(a)};
g.yX=function(a){a.Ca=a.j.length-1;a.tb=0;K0a(a,!0)&&K0a(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){r0a(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;vX(a.j[d],e+"px");break}a.j[c].width=0;vX(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,vX(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,vX(a.j[c],d+"px"));c=0;if(a.G.length===a.j.length)for(b=0;b<
a.G.length;b++)d=a.j[b].width,a.G[b].element.style.width=d+"px",a.G[b].element.style.left=c+"px",c+=d+(a.D?3:2)};
K0a=function(a,b){var c=0,d=!1,e=a.j.length,f=1E3*a.C.j;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.N){for(var h=a.N-(a.D?3:2)*a.Ca,l=0===a.tb?3:h*a.tb,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,r0a(a.j[c],a.D?3:2));g.bv(a.j[c].j,"ytp-exp-chapter-hover-container",1<a.j.length);n=(0===f?0:m/f*h)+a.j[c].width;if(n>l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,r=p.j[q-1];void 0!==r&&0<r.width?
r.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);r0a(p.j[q],0);b&&(a.Ca--,m/f>a.tb&&(a.tb=m/f),d=!0)}c++}}return d};
AX=function(a){if(a.N){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:PT(d))&&b.airingStart&&b.airingEnd?L0a(a,b.airingStart,b.airingEnd):L0a(a,b.seekableStart,b.seekableEnd);d=XG(c,b.loaded,0);b=XG(c,b.current,0);var e=a.C.B!==c.B||a.C.j!==c.j;a.C=c;BX(a,b,d);e&&M0a(a);N0a(a)}}};
L0a=function(a,b,c){return O0a(a)?new WG(Math.max(b,a.Eb.startTimeMs/1E3),Math.min(c,a.Eb.endTimeMs/1E3)):new WG(b,c)};
P0a=function(a,b){var c;if("repeatChapter"===(null==(c=a.Eb)?void 0:c.type)||"repeatChapter"===(null==b?void 0:b.type))b&&(b=a.j[VW(a.j,b.startTimeMs)],g.bv(b.j,"ytp-repeating-chapter",!1)),a.Eb&&(b=a.j[VW(a.j,a.Eb.startTimeMs)],g.bv(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.bv(d.j,"ytp-exp-chapter-hover-container",!a.Eb)})};
DX=function(a,b){var c=a.C;c=c.B+b.B*c.getLength();if(1<a.j.length){c=CX(a,b.C,!0);for(var d=0,e=0;e<c;e++)0<a.j[e].width&&(d+=a.j[e].width,d+=a.D?3:2);c=(a.j[c].startTime+(b.C-d)/a.j[c].width*((c===a.j.length-1?1E3*a.C.j:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c};
Q0a=function(a,b,c){return c>=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.C.j*(a.N-(a.D?3:2)*a.Ca)};
M0a=function(a){a.Zf.style.removeProperty("height");for(var b=g.u(Object.keys(a.Ma)),c=b.next();!c.done;c=b.next())R0a(a,c.value);EX(a);BX(a,a.ma,a.ib)};
zX=function(a){var b=a.Za.x;b=g.He(b,0,a.N);a.wh.update(b,a.N);return a.wh};
GX=function(a){return(a.D?135:90)-FX(a)};
FX=function(a){var b=48,c=a.api.U();a.D?b=54:g.UR(c)&&!c.B&&(b=40);return b};
BX=function(a,b,c){a.ma=b;a.ib=c;var d=zX(a),e=a.C.j;var f=a.C;f=f.B+a.ma*f.getLength();var h=g.aK("$PLAY_PROGRESS (\u043e\u0431\u0449\u0430\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c $DURATION)",{PLAY_PROGRESS:g.TG(f,!0),DURATION:g.TG(e,!0)}),l=VW(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.C.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Eb&&2!==a.api.getPresentingPlayerType()&&(e=a.Eb.startTimeMs/
1E3,f=a.Eb.endTimeMs/1E3);e=XG(a.C,e,0);l=XG(a.C,f,1);h=a.api.getVideoData();f=g.He(b,e,l);c=(null==h?0:g.OT(h))?1:g.He(c,e,l);b=I0a(a,b,d);g.ks(a.Yg,"transform","translateX("+b+"px)");HX(a,d,e,f,"PLAY_PROGRESS");(null==h?0:PT(h))?(b=a.api.getProgressState().seekableEnd)&&HX(a,d,f,XG(a.C,b),"LIVE_BUFFER"):HX(a,d,e,c,"LOAD_PROGRESS");if(a.api.L("web_player_heat_map_played_bar")){var m;null!=(m=a.G[0])&&m.D.setAttribute("width",(100*f).toFixed(2)+"%")}};
HX=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ca*(a.D?3:2),l=c*h;c=CX(a,l);var m=d*h;h=CX(a,m);"HOVER_PROGRESS"===e&&(h=CX(a,b.j*d,!0),m=b.j*d-S0a(a,b.j*d)*(a.D?3:2));b=Math.max(l-T0a(a,c),0);for(d=c;d<f;d++)a.j[d].Kb(e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.j[f].Kb(e),l=a.j[f].width,IX(a,d,f===c?l-b:l,l);f=a.j[h].width;m=g.He(m-T0a(a,h),0,f);c===h&&(m-=b);b=a.j[h].Kb(e);IX(a,b,m,f);m=a.j.length;for(h+=1;h<m;h++)U0a(a,h,e);for(h=0;h<c;h++)U0a(a,h,e)};
T0a=function(a,b){if(b>=a.j.length)return a.N;for(var c=0,d=0;d<b;)c+=a.j[d].width,d++;return c};
U0a=function(a,b,c){c=a.j[b].Kb(c);IX(a,c,0,a.j[b].width)};
IX=function(a,b,c,d,e){e||a.api.U().B?b.style.width=c+"px":g.ks(b,"transform","scalex("+(d?c/d:0)+")")};
CX=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=S0a(a,b)*(a.D?3:2));c=g.u(a.j);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d};
I0a=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.u(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.j-(a.D?3:2)*a.Ca)+(a.D?3:2)*(0>e?0:e)+c.D};
S0a=function(a,b){for(var c=a.j.length,d=0,e=g.u(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.D?3:2,d++;else break;return d===c?c-1:d};
g.V0a=function(a,b,c,d){var e=a.N!==c,f=a.D!==d;a.Xf=b;a.N=c;a.D=d;wX(a)&&null!=(b=a.B)&&(b.scale=d?1.5:1);M0a(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.yX(a);a.B&&f&&wX(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-FX(a),a.fb.style.height=c+"px",g.ks(a.va,"transform","translateY("+-d+"px)"),g.ks(a.progressBar,"transform","translateY("+-d+"px)")),m0a(a.B))};
EX=function(a){var b=!!a.Eb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Eb?(c=a.Eb.startTimeMs/1E3,d=a.Eb.endTimeMs/1E3):(e=c>a.C.B,f=0<a.C.j&&d<a.C.j);var h,l;if((null==(h=a.Eb)?0:h.postId)||"repeatChapter"===(null==(l=a.Eb)?void 0:l.type))f=e=!1;g.bv(a.element,"ytp-loop-range-enabled",b);g.bv(a.element,"ytp-clip-start-enabled",e);g.bv(a.element,"ytp-clip-end-enabled",f);b=e?XG(a.C,c,0):0;d=f?XG(a.C,d,1):1;a.Ob.style.left=Math.round(1E3*b)/10+"%";a.Gb.style.left=
Math.round(1E3*d)/10+"%";a.rg.style.width=Math.round(1E3*b)/10+"%";a.Ff.style.left=Math.round(1E3*d)/10+"%";a.Ff.style.width=Math.round(1E3*(1-d))/10+"%"};
N0a=function(a){var b;if(null==(b=a.api.getVideoData())||!PT(b)){b=zX(a);HX(a,b,a.ma,Math.max(b.B,a.ma),"HOVER_PROGRESS");for(var c=CX(a,b.j*a.ma,!0),d=CX(a,b.C,!0),e=c;e<=d;e++)g.bv(a.j[e].B,"ytp-hover-progress-light",b.B>a.ma);g.bv(a.Zf,"ytp-scrubber-button-hover",c===d&&1<a.j.length);if(a.api.L("web_player_heat_map_played_bar")){var f;null!=(f=a.G[0])&&f.B.setAttribute("width",(100*b.B).toFixed(2)+"%")}}};
R0a=function(a,b){var c=a.Ma[b];b=a.Vb[b];var d=zX(a),e=XG(a.C,c.start/1E3,0),f=ZAa(c,a.D)/d.width;var h=XG(a.C,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.He(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.D,0)+"px";IX(a,b,g.He((h-c)*d.j+d.D,0,d.width),d.width,!0)};
W0a=function(a,b){var c=b.getId();a.Ma[c]===b&&(g.Rf(a.Vb[c]),delete a.Ma[c],delete a.Vb[c])};
wX=function(a){var b;return!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.xg()&&!a.api.isInline()};
JX=function(a){a.B&&(a.B.disable(),a.Wa=0,a.va.style.removeProperty("transform"),a.progressBar.style.removeProperty("transform"),a.fb.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
X0a=function(a,b){var c=b/GX(a)*FX(a);g.ks(a.progressBar,"transform","translateY("+-b+"px)");g.ks(a.va,"transform","translateY("+-b+"px)");g.ks(a.fb,"transform","translateY("+c+"px)");a.fb.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=FX(a)-c+"px")};
Y0a=function(a,b){b?a.Y||(a.element.removeAttribute("aria-disabled"),a.Y=new g.qV(a.progressBar,!0),a.Y.subscribe("hovermove",a.Q$,a),a.Y.subscribe("hoverend",a.P$,a),a.Y.subscribe("dragstart",a.O$,a),a.Y.subscribe("dragmove",a.S$,a),a.Y.subscribe("dragend",a.R$,a),a.Vf=a.Ta("keydown",a.v4)):a.Y&&(a.element.setAttribute("aria-disabled","true"),a.Tc(a.Vf),a.Y.cancel(),a.Y.dispose(),a.Y=null)};
O0a=function(a){var b;return!(null==(b=a.Eb)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
KX=function(a,b){g.V.call(this,{I:"button",La:["ytp-remote-button","ytp-button"],X:{title:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440\u0435","aria-haspopup":"true","data-priority":"8"},ya:"{{icon}}"});this.J=a;this.Hb=b;this.j=null;this.T(a,"onMdxReceiversChange",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);this.T(a,"appresize",this.Sa);a.createClientVe(this.element,this,139118);this.Sa();
this.Ta("click",this.B,this);fU(a,this.element,this)};
LX=function(a,b){g.V.call(this,{I:"button",La:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":QF(),title:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","data-tooltip-target-id":"ytp-settings-button"},V:[g.Pwa()]});this.J=a;this.Hb=b;this.B=!0;this.Ta("click",this.C);this.T(a,"onPlaybackQualityChange",this.updateBadge);this.T(a,"videodatachange",this.updateBadge);this.T(a,"webglsettingschanged",this.updateBadge);this.T(a,"appresize",
this.j);fU(a,this.element,this);this.J.createClientVe(this.element,this,28663);this.updateBadge();this.j(a.qb().getPlayerSize())};
Z0a=function(a,b){a.B=!!b;a.j(a.J.qb().getPlayerSize())};
MX=function(a,b){YU.call(this,"\u0410\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438",g.bV(a).qL);this.J=a;this.Hb=b;this.j=!1;a.L("web_settings_menu_icons")&&QU(this,{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{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.NX=function(a,b,c,d,e,f,h){g.OU.call(this,g.PU({"aria-haspopup":"true"}),b,a);this.Hb=d;this.K=!1;this.C=null;this.options={};this.B=new g.BW(c,void 0,a,e,f,h);g.N(this,this.B);this.Ta("keydown",this.w4);this.Ta("click",this.open)};
$0a=function(a){if(a.C){var b=a.options[a.C];b.element.getAttribute("aria-checked");b.element.setAttribute("aria-checked","false");a.C=null}};
g.OX=function(a,b){g.CW(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.C;l&&(d=!0);h&&h.priority===-e?(g.NU(a.options[f],a.Kk(f,!0)),delete a.options[f]):h=a.QM(f,-e,l);c[f]=h;a.B.Xc(h,!0)}d||(a.C=null);b=g.u(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
PX=function(a,b){g.NX.call(this,"\u0417\u0432\u0443\u043a\u043e\u0432\u0430\u044f \u0434\u043e\u0440\u043e\u0436\u043a\u0430",g.bV(a).AUDIO,a,b);this.J=a;this.tracks={};this.countLabel=new g.V({I:"div",V:[{I:"span",ya:"\u0417\u0432\u0443\u043a\u043e\u0432\u0430\u044f \u0434\u043e\u0440\u043e\u0436\u043a\u0430"},{I:"span",S:"ytp-menuitem-label-count",ya:"{{content}}"}]});a.L("web_settings_menu_icons")&&QU(this,{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{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.N(this,this.countLabel);g.NU(this,this.countLabel);this.T(a,"videodatachange",this.Sa);this.T(a,"onPlaybackAudioChange",this.Sa);this.Sa()};
QX=function(a,b){YU.call(this,"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435",g.bV(a).rL);this.J=a;this.Hb=b;this.j=!1;this.C=[];this.T(a,"presentingplayerstatechange",this.B);this.subscribe("select",this.onSelect,this);a.createClientVe(this.element,this,113682);this.B()};
a1a=function(a,b){g.OU.call(this,g.PU({"aria-haspopup":"false"}),0,"\u0415\u0449\u0451");this.J=a;this.Hb=b;this.T(this.element,"click",this.onClick);this.Hb.Xc(this)};
b1a=function(a,b){var c;g.kS(a.U())&&(c={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",ya:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 "},{I:"a",S:"ytp-panel-footer-content-link",ya:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",X:{href:"/account_downloads"}}]});g.NX.call(this,"\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e",
g.bV(a).nM,a,b,void 0,void 0,c);this.J=a;this.Ca={};this.Y={};this.D={};this.Ia=new Set;this.j=this.G=!1;this.N="unknown";this.ma="";this.va=new g.oE;g.N(this,this.va);this.G=this.J.L("web_player_use_new_api_for_quality_pullback");this.j=this.J.L("web_player_enable_premium_hbr_playback_cap");a.L("web_settings_menu_icons")&&QU(this,{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{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.Yu(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.lC);this.T(a,"videoplayerreset",this.lC);this.T(a,"onPlaybackQualityChange",this.rU);this.lC();a.createClientVe(this.element,this,137721)};
d1a=function(a,b,c){var d=a.Ca[b],e=g.KK[b];return c1a(a,d?d.qualityLabel:e?e+"p":"\u0410\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430",b,c)};
e1a=function(a,b,c,d,e){var f=(b=a.j?a.D[b]:a.Y[b])&&b.quality,h=b&&b.qualityLabel;h=h?h:"\u0410\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430";d&&(h="("+h);a=c1a(a,h,f||"",e);d&&a.V.push(")");(d=(d=b&&b.paygatedQualityDetails)&&d.paygatedIndicatorText)&&c&&a.V.push({I:"div",S:"ytp-premium-label",ya:d});return a};
c1a=function(a,b,c,d){b={I:"span",La:d,V:[b]};var e;d="ytp-swatch-color";if(a.G||a.j)d="ytp-swatch-color-white";"highres"===c?e="8K":"hd2880"===c?e="5K":"hd2160"===c?e="4K":0===c.indexOf("hd")&&"hd720"!==c&&(e="HD");e&&(b.V.push(" "),b.V.push({I:"sup",S:d,ya:e}));return b};
RX=function(a,b,c,d,e,f,h){g.V.call(this,{I:"div",S:"ytp-slider-section",X:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{I:"div",S:"ytp-slider",V:[{I:"div",S:"ytp-slider-handle"}]}]});this.Y=a;this.N=b;this.B=c;this.D=d;this.ma=e;this.Ia=f;this.range=this.D-this.B;this.Ea=this.Ga("ytp-slider-section");this.C=this.Ga("ytp-slider");this.va=this.Ga("ytp-slider-handle");this.K=new g.qV(this.C,
!0);this.j=h?h:c;g.N(this,this.K);this.K.subscribe("dragmove",this.y4,this);this.T(this.element,"keydown",this.z4);this.T(this.element,"wheel",this.x4);this.init()};
SX=function(a){RX.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.G=g.If("P");this.Ma=oba(this.Ca,this);g.Yu(this.C,"ytp-speedslider");g.Yu(this.G,"ytp-speedslider-text");a=this.G;var b=this.C;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);f1a(this);this.T(this.J,"onPlaybackRateChange",this.updateValues)};
f1a=function(a){a.G.textContent=g1a(a,a.j)+"x"};
g1a=function(a,b){a=Number(g.He(b,a.B,a.D).toFixed(2));b=Math.floor(100*(a+.001)%5+2E-15);var c=a;0!==b&&(c=a-.01*b);return Number(c.toFixed(2))};
h1a=function(a){g.VF.call(this,{I:"div",S:"ytp-speedslider-component"});this.j=new SX(a);g.N(this,this.j);this.element.appendChild(this.j.element)};
i1a=function(a){var b=new h1a(a);AW.call(this,a,b,"\u0414\u0440\u0443\u0433\u0430\u044f");g.N(this,b)};
j1a=function(a,b){var c=new i1a(a);g.NX.call(this,"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f",g.bV(a).oM,a,b,"\u0414\u0440\u0443\u0433\u0430\u044f",function(){g.FW(b,c)});
a.L("web_settings_menu_icons")&&QU(this,{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{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.N(this,c);this.J=a;this.D=this.j=this.N=null;this.G=this.J.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Sa);this.Sa()};
l1a=function(a,b){var c=k1a(b);a.options[c]?a.Qj(c):b===a.D&&a.j&&(a.Qj(a.j),a.Ud(b.toString()))};
n1a=function(a){g.OX(a,a.G.map(k1a));a.j=null;a.D=null;var b=a.J.getPlaybackRate();a.G.includes(b)||(m1a(a,b),g.NX.prototype.uh.call(a,a.j))};
m1a=function(a,b){a.D=b;a.j=g.aK("\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u0430\u044f ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.G.map(k1a);b.unshift(a.j);g.OX(a,b)};
k1a=function(a){return a.toString()};
p1a=function(a,b,c,d){var e=new g.BW(b,void 0,"\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432");g.NX.call(this,d.text||"",a,b,c,"\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432",function(){g.FW(c,e)});
var f=this;g.Yu(this.element,"ytp-subtitles-options-menu-item");this.N=d.option.toString();a=d.options;this.settings=g.cc(a,this.sU,this);this.G=e;g.N(this,this.G);b=new g.OU({I:"div",S:"ytp-menuitemtitle",ya:"\u0415\u0441\u043b\u0438 \u0432 \u0432\u0438\u0434\u0435\u043e \u0437\u0430\u0434\u0430\u043d\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432, \u043e\u043d\u0438 \u0438\u043c\u0435\u044e\u0442 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442."},
0);g.N(this,b);this.G.Xc(b,!0);this.D=new g.OU({I:"div",S:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",ya:"\u0412\u041a\u041b"}]},-1);g.N(this,this.D);this.G.Xc(this.D,!0);this.T(this.D.element,"click",function(){o1a(f,!0)});
this.j=new g.OU({I:"div",S:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",ya:"\u0412\u042b\u041a\u041b"}]},-2);g.N(this,this.j);this.G.Xc(this.j,!0);this.T(this.j.element,"click",function(){o1a(f,!1)});
g.OX(this,g.Er(a,this.sU))};
o1a=function(a,b){a.ra("settingChange",a.N+"Override",!b);a.Hb.Hj()};
TX=function(a,b){g.BW.call(this,a,void 0,"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b");var c=this;this.Jt={};for(var d=0;d<g.XW.length;d++){var e=g.XW[d],f=new p1a(-d,a,b,e);g.N(this,f);f.subscribe("settingChange",this.Bk,this);this.Jt[e.option.toString()]=f;this.Xc(f,!0)}a=new g.OU(g.PU(),-g.XW.length,"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c");g.N(this,a);a.Ta("click",function(){c.Bk("reset",!0)});
this.Xc(a,!0)};
UX=function(a,b){g.NX.call(this,"\u041f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438",0,a,b);this.J=a;this.languages={};a.createClientVe(this.element,this,127301);a.logVisibility(this.element,!0)};
q1a=function(a,b){a.languages=g.cc(b,a.j,a);g.OX(a,g.Er(b,a.j))};
s1a=function(a,b){var c=new TX(a,b),d=["\u0412\u0430\u0448 \u0432\u044b\u0431\u043e\u0440 \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e. \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0440\u043e\u043b\u0438\u043a\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 ",
"."],e;g.kS(a.U())&&(e={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",ya:d[0]},{I:"a",S:"ytp-panel-footer-content-link",ya:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",X:{href:"/account_playback"}},{I:"span",ya:d[1]}]});g.NX.call(this,"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b",g.bV(a).SUBTITLES,a,b,"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b",function(){g.FW(b,c)},e);
var f=this;this.J=a;this.Hb=b;this.tracks={};this.N=new g.Qu(function(){r1a(f,!1)},3E3);
g.N(this,this.N);this.countLabel=new g.V({I:"div",V:[{I:"span",ya:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b"},{I:"span",S:"ytp-menuitem-label-count",ya:"{{content}}"}]});g.N(this,this.countLabel);g.NU(this,this.countLabel);a.L("web_settings_menu_icons")&&QU(this,ZVa.includes("ru")?{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z            M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z            M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
fill:"white"}}]}:{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.j=new UX(a,b);g.N(this,this.j);this.j.subscribe("select",this.A4,this);this.G=c;g.N(this,this.G);this.G.subscribe("settingChange",this.Bk,this);b.subscribe("show",this.zaa,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.createClientVe(this.element,this,127300);this.Sa()};
t1a=function(a){return Object.values(a.tracks).find(function(b){return"en"===b.languageCode&&"asr"===b.kind})};
VX=function(a,b){a.J.setOption("captions","track",b)};
r1a=function(a,b){a.J.setOption("captions","sampleSubtitles",b)};
u1a=function(a){g.HW.call(this,a,"ytp-settings-menu");var b=this;this.bf=new g.BW(this.J);this.iR=this.settingsButton=null;this.isInitialized=this.VJ=!1;g.N(this,this.bf);this.hide();g.FW(this,this.bf);a.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(c){b.jg(c)});
this.T(a,"highlightSettingsMenu",function(){b.VJ=!0;b.xd()});
this.J.L("web_player_enable_open_menu_item_from_command")&&this.T(a,"openSettingsMenuItem",function(c){if(c&&(b.VJ=!0,b.xd(),"menu_item_video_quality_advanced"===c)){var d;null==(d=b.iR)||d.open()}})};
v1a=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
g.WX=function(a,b){g.V.call(this,{I:"button",La:["ytp-subtitles-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"3","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[$Va()]});this.J=a;this.tooltip=b.Te();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.J.createClientVe(this.element,this,127299);this.Sa();this.Ta("click",this.onClick);this.addOnDisposeCallback(g.eU(b.Te(),this.element))};
w1a=function(a){return null!=g.aW(a.J.Bb())?g.aW(a.J.Bb()).ZR()?!!a.J.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
g.YX=function(a,b,c){c=void 0===c?350:c;g.V.call(this,{I:"div",La:["ytp-time-display","notranslate"],V:[{I:"span",S:"ytp-time-clip-icon",ya:"{{clipicon}}"},{I:"span",V:[{I:"span",S:"ytp-time-current",ya:"{{currenttime}}"},{I:"span",S:"ytp-time-separator",ya:" / "},{I:"span",S:"ytp-time-duration",ya:"{{duration}}"}]},{I:"span",S:"ytp-clip-watch-full-video-button-separator",ya:"\u2022"},{I:"span",S:"ytp-clip-watch-full-video-button",ya:"{{watchfullvideo}}"}]});this.api=a;this.N=c;this.liveBadge=new g.V({I:"button",
La:["ytp-live-badge","ytp-button"],X:{disabled:"true"},ya:"{{content}}"});this.j=null;this.eE=this.B=!1;this.K=this.G=null;this.isPremiere=!1;this.Eb=this.D=this.C=null;this.Y=this.Ga("ytp-clip-watch-full-video-button");this.liveBadge.Ud("\u0412 \u044d\u0444\u0438\u0440\u0435");g.N(this,this.liveBadge);this.liveBadge.Ja(this.element);this.tooltip=b.Te();this.Ta("click",this.onClick);this.T(this.Y,"click",this.cba);this.T(a,"presentingplayerstatechange",this.Rc);this.T(a,"appresize",this.Rc);this.T(a,
"onLoopRangeChange",this.onLoopRangeChange);this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Rc();a=a.getLoopRange();b=this.Eb!==a;this.Eb=a;b&&XX(this);this.api.L("web_modern_miniplayer")&&(this.element.hidden=!0)};
XX=function(a){a.updateValue("clipicon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{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.eE&&!a.B?a.updateValue("watchfullvideo","\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044e"):a.updateValue("watchfullvideo","\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0446\u0435\u043b\u0438\u043a\u043e\u043c");g.bv(a.element,"ytp-clip",ZX(a));g.bv(a.element,"ytp-live",$X(a))};
$X=function(a){var b=a.api.U().L("enable_linear_program_progress");return a.eE&&!ZX(a)&&(!b||!a.B)};
ZX=function(a){return!!a.Eb&&!!a.Eb.postId&&2!==a.api.getPresentingPlayerType()&&(!a.Eb.type||"clips"===a.Eb.type)};
y1a=function(a,b){g.V.call(this,{I:"div",S:"ytp-volume-panel",X:{title:"\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{I:"div",S:"ytp-volume-slider",V:[{I:"div",S:"ytp-volume-slider-handle"}]}]});var c=this;this.api=a;this.K=b;this.wm=!1;this.Y=this.volume=0;this.G=null;this.B=this.j=this.isDragging=!1;this.K=b;this.C=a.Ch();this.N=this.Ga("ytp-volume-slider");
this.ma=this.Ga("ytp-volume-slider-handle");this.D=new g.qV(this.N,!0);g.N(this,this.D);this.D.subscribe("dragstart",this.Eaa,this);this.D.subscribe("dragmove",this.C4,this);this.D.subscribe("dragend",this.Daa,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.tU);this.T(a,"fullscreentoggled",this.Mw);this.T(a,"onShowControls",this.TV);this.T(a,"onHideControls",this.TV);this.T(this.element,"keydown",this.D4);this.T(this.element,"focus",function(){aY(c,c.j,c.isDragging,
!0,c.api.wm())});
this.T(this.element,"blur",function(){aY(c,c.j,c.isDragging,!1,c.api.wm())});
this.tU(a.qb().getPlayerSize());x1a(this,a.getVolume(),a.isMuted());fU(a,this.element,this)};
x1a=function(a,b,c){var d=Math.floor(b),e=d+"% \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"+(c?" \u0437\u0432\u0443\u043a \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d":"");c=c?0:b/100;a.updateValue("valuenow",d);a.updateValue("valuetext",e);a.ma.style.left=(a.C?60:40)*c+"px";a.volume=b};
z1a=function(a,b){g.bv(a.element,"ytp-volume-control-hover",b);aY(a,b,a.isDragging,a.B,a.api.wm())};
aY=function(a,b,c,d,e){var f=a.j||a.isDragging||a.B||a.wm;a.j=b;a.isDragging=c;a.B=d;a.wm=e;b=a.j||a.isDragging||a.B||a.wm;f!==b&&(b?a.G=a.T(a.element,"wheel",a.B4):(a.Tc(a.G),a.G=null),g.bv(a.K,"ytp-volume-slider-active",b))};
bY=function(a,b){var c=a.U(),d=g.gS(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.C&&e.push("no-link");var f={title:"",target:c.Y,"data-priority":"4","data-sessionlink":"feature=player-button"};c.C||(f.title="youtube.com"===d?"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 YouTube":g.aK("\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0430\u00a0$WEBSITE",
{WEBSITE:d}),f.href="{{url}}");g.V.call(this,{I:"a",La:e,X:f,ya:"{{logoSvg}}"});this.j=null;this.api=a;this.visible=!1;a.createClientVe(this.element,this,28666);c.C||(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.Yb);this.onVideoDataChange();c.C||this.addOnDisposeCallback(g.eU(b.Te(),this.element));this.Yb()};
A1a=function(a,b,c){g.IK.call(this);var d=this;this.J=a;this.Ze=b;this.Rg=c;this.ib=NaN;this.Xa=this.Za=null;this.B=new u1a(this.J);this.progressBar=new g.xX(this.J,this.Ze);this.ma=this.Y=this.G=null;this.Ca=new g.YX(this.J,this.Ze);this.Wa=this.playButton=this.D=this.K=this.Ra=this.Ma=null;this.fb=new W_a(this.J,this.Ze);this.Z=new g.Ou(this.E4,null,this);this.va=null;c=a.U();this.Rg.subscribe("autohideupdate",this.EA,this);var e=!a.Xb().isCued(),f;a.U().L("html5_player_dynamic_bottom_gradient")?
this.Xa=f=new v_a(a):f=new g.V({I:"div",S:"ytp-gradient-bottom"});g.N(this,f);g.oU(a,f.element,9);this.Ea=new g.CG(f,250,e,100);g.N(this,this.Ea);this.C=new g.V({I:"div",S:"ytp-chrome-bottom",V:[{I:"div",S:"ytp-chrome-controls"}]});g.N(this,this.C);g.oU(a,this.C.element,9);this.Ia=new g.CG(this.C,250,e,100);g.N(this,this.Ia);this.Na=this.C.element.children[0];g.N(this,this.B);g.oU(a,this.B.element,6);this.B.subscribe("show",function(l){d.J.QF(!l);a.NR(d.B,l)});
g.N(this,this.progressBar);this.progressBar.Ja(this.C.element,0);e=new mX(a,b);g.N(this,e);g.oU(a,e.element,4);e=new g.RF({I:"div",S:"ytp-left-controls"});g.N(this,e);e.Ja(this.Na);f=new g.sX(a,b,!1);g.N(this,f);f.Ja(e.element);a.L("web_render_jump_buttons")&&(this.Y=new nX(a,g.lJ(a.U().experiments,"web_jump_button_backward_amount")||-10),g.N(this,this.Y),this.Y.Ja(e.element));c.Wa||(this.playButton=new g.rX(a,b),g.N(this,this.playButton),this.playButton.Ja(e.element));a.L("web_render_jump_buttons")&&
(this.ma=new nX(a,g.lJ(a.U().experiments,"web_jump_button_forward_amount")||10),g.N(this,this.ma),this.ma.Ja(e.element));f=new g.sX(a,b,!0);g.N(this,f);f.Ja(e.element);f=new g.V({I:"span",S:"ytp-volume-area"});g.N(this,f);f.Ja(e.element);if(!c.Bd&&(this.G=new g.qX(a,b),g.N(this,this.G),this.G.Ja(f.element),c.Xa&&!c.Z)){var h=new y1a(a,this.C.element);this.Wa=h;g.N(this,h);h.Ja(f.element);f=new g.qV(f.element);g.N(this,f);f.subscribe("hoverstart",function(){var l;null==(l=d.Wa)||z1a(l,!0)});
f=new g.qV(e.element);g.N(this,f);f.subscribe("hoverend",function(){var l;null==(l=d.Wa)||z1a(l,!1)})}g.N(this,this.Ca);
this.Ca.Ja(e.element);this.j=new g.RF({I:"div",S:"ytp-right-controls"});g.N(this,this.j);this.Ma=new lX(a,this.progressBar);g.N(this,this.Ma);this.Ma.Ja(e.element);c.L("web_key_moments_markers")&&(this.Ra=new oX(a,this.progressBar),g.N(this,this.Ra),this.Ra.Ja(e.element));this.j.Ja(this.Na);e=new g.WX(a,b);g.N(this,e);e.Ja(this.j.element);e=new LX(a,this.B);g.N(this,e);v1a(this.B,e);e.Ja(this.j.element);e=a.getVideoData();if(c.Sm||e.Of&&"1"===c.controlsType)this.K=new bY(a,b),g.N(this,this.K),this.K.Ja(this.j.element);
c.showMiniplayerButton&&(this.D=new pX(a),g.N(this,this.D),this.D.Ja(this.j.element));c.lk&&(b=new KX(a,this.B),g.N(this,b),b.Ja(this.j.element));c.Om&&(b=new jX(a),g.N(this,b),b.Ja(this.j.element));g.N(this,this.fb);this.fb.Ja(this.j.element);g.N(this,this.Z);this.T(a,"appresize",this.Yb);this.T(a,"fullscreentoggled",this.Yb);this.T(a,"presentingplayerstatechange",this.GS);this.T(a,"videodatachange",this.onVideoDataChange);this.Yb()};
B1a=function(a,b){a.J.Xb().isCued()||b?b&&(a.Ia.hide(),a.Ea.hide(),a.G&&a.G.Nc(!1),a.K&&a.K.Nc(!1),a.D&&a.D.Nc(!1),a.J.Vl(a.Kb())):b||(a.Ia.show(),a.Ea.show(),a.G&&a.G.Nc(!0),a.K&&a.K.Nc(!0),a.D&&a.D.Nc(!0),a.EA())};
D1a=function(a){var b=a.J.qb().getPlayerSize().width;return Math.max(b-2*C1a(a),100)};
C1a=function(a){var b=a.J.Ch(),c=a.J.getVideoData().Of,d=0;a.J.Ch()&&a.J.kd()&&(d=(a.J.qb().getPlayerSize().width-a.J.getVideoContentRect().width)/2);return 12*(c?0:b?2:1)+d};
E1a=function(a){var b=a.J.Ch()?72:50;a=a.J.U();g.kS(a)&&(b=62,g.$R(a)&&(b=54));return b};
F1a=function(a){OW.call(this,a,!1);var b=this;this.suggestedActions={};this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.VJ("suggested_action_button_visible"),function(c){c=c.id;b.text=c;lZa(b);b.onClickCommand=b.suggestedActions[c];b.enabled=!0;b.jg()});
this.T(this.J,g.WJ("suggested_action_button_visible"),function(c){b.enabled=!1;b.jg();b.J.removeCueRange(c.id)})};
G1a=function(a){a.suggestedActions={};a.J.Cf("suggested_action_button_visible")};
dY=function(a){g.V.call(this,{I:"div",S:cY.TITLE,V:[{I:"div",S:cY.TEXT,V:[{I:"a",La:[cY.LINK,cY.SESSIONLINK],X:{target:a.U().Y,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},ya:"{{title}}"},{I:"div",S:cY.SUBTEXT,V:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Ga(cY.LINK);a.createClientVe(this.element,this,23851);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.Sa()};
H1a=function(a){a.updateValue("channelLink","");a.updateValue("channelName","");g.$R(a.api.U())?a.updateValue("channelTitleFocusable","0"):a.updateValue("channelTitleFocusable","-1")};
g.eY=function(a,b){g.V.call(this,{I:"div",V:[{I:"div",S:"ytp-tooltip-text-wrapper",X:{"aria-hidden":"{{ariaHidden}}"},V:[{I:"div",S:"ytp-tooltip-edu",V:[{I:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",X:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{I:"span",ya:"{{eduText}}"}]},{I:"div",S:"ytp-tooltip-image"},{I:"div",S:"ytp-tooltip-title",V:[{I:"span",ya:"{{title}}"}]},{I:"span",S:"ytp-tooltip-text",ya:"{{text}}"}]},
{I:"div",S:"ytp-tooltip-bg",V:[{I:"div",S:"ytp-tooltip-duration",ya:"{{duration}}"}]}]});var c=this;this.api=a;this.Wa=b;this.env=this.api.U();this.Na=this.env.B;this.bg=this.Ga("ytp-tooltip-bg");this.Ra=this.Ga("ytp-tooltip-edu");this.image=this.Ga("ytp-tooltip-image");this.text=this.Ga("ytp-tooltip-text");this.title=this.Ga("ytp-tooltip-title");this.va=function(d){(d=d.relatedTarget)&&g.Uf(c.j,d)||c.Rh()};
this.G=function(d){3===c.type&&c.Rh();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.G),d.addEventListener("mouseout",c.va),d.removeEventListener("focus",c.G),d.addEventListener("blur",c.va),I1a(c,d,2))};
this.Ia=function(){c.Rh()};
this.j=null;this.K=new g.CG(this,100);this.type=null;this.ma=!1;this.B=null;this.D=NaN;this.C="";this.uU=this.api.qb().getPlayerSize().width;this.Y=!0;this.scale=1;this.N=160;this.Ca=90;this.Ea=new g.Qu(this.H8,250,this);this.Ma=new g.Qu(this.Rh,5E3,this);g.N(this,this.K);g.N(this,this.Ea);g.N(this,this.Ma);RR&&(a=this.Ga("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"));x_a(this.api)&&(this.N=243,this.Ca=141,g.Yu(this.api.getRootNode(),"ytp-bigboards"))};
g.eU=function(a,b){if(a.Na)return function(){};
b.addEventListener("mouseover",a.G);b.addEventListener("focus",a.G);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.j===b&&a.Rh();b.removeEventListener("mouseover",a.G);b.removeEventListener("focus",a.G)}};
I1a=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.QC("showElementTooltip called with non-element.",b.toString()),g.tF(a);else{isNaN(a.D)||(a.D=NaN,a.bg.style.background="");a.j=b;a.ma=!!d;d?a.C=d:(a.C=b.getAttribute("title"),b.removeAttribute("title"));g.Wu(a.element,"ytp-tooltip");g.Yu(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.bv(a.element,"ytp-tooltip-image-enabled",
!!e);b=b.getAttribute("data-tooltip-opaque");g.bv(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.Ia);a.Y&&(J1a(a),a.K.show(0))}};
J1a=function(a){if(a.j){var b=a.j.getAttribute("data-tooltip-text");if(a.C&&a.j.getAttribute("aria-label")!==a.C)var c=a.C;var d=a.j.getAttribute("aria-keyshortcuts"),e=a.j.getAttribute("data-title-no-tooltip");d&&e&&(c=g.aK('\u0414\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u043a\u043d\u043e\u043f\u043a\u0438 "$BUTTON_TITLE" \u043d\u0430\u0436\u043c\u0438\u0442\u0435 $SHORTCUT_KEY',{BUTTON_TITLE:e,SHORTCUT_KEY:d}));c&&a.j.setAttribute("aria-label",c);if(b&&!a.ma){d=a.j;a.updateValue("text",
b);c=d.getAttribute("data-duration");a.update({title:a.C,duration:c});d=d.getAttribute("data-preview");e=a.N*a.scale;var f=a.Ca*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=d?"url("+d+")":"";a.bg.style.backgroundSize=e+"px "+f+"px";g.Zu(a.element,["ytp-text-detail","ytp-preview"]);g.bv(a.element,"ytp-has-duration",!!c)}else a.updateValue("text",a.C),g.av(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);K1a(a,!!b)}};
K1a=function(a,b,c,d){var e=Math.min(a.uU,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Wa.Rt(a.element,a.j,c,1===a.type,d);a.element.style.top?g.Yu(a.element,"ytp-bottom"):a.element.style.bottom&&g.Yu(a.element,"ytp-top");3===a.type&&a.Ma.start()};
L1a=function(a,b){g.bv(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.D)){a.D=b;b=a.N*a.scale;var c=a.Ca*a.scale,d=mSa(a.B,a.D,b);w_a(a.bg,d,b,c,!0);a.Ea.start()}};
M1a=function(a){var b=a.j;3===a.type&&a.Ma.stop();a.api.removeEventListener("appresize",a.Ia);a.ma||b.setAttribute("title",a.C);a.C="";a.j=null};
O1a=function(a){g.V.call(this,{I:"button",La:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.UR(a.U()))},V:[{I:"div",S:"ytp-watch-later-icon",ya:"{{icon}}"},{I:"div",S:"ytp-watch-later-title",ya:"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435"}]});this.J=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;mUa(a);a.createClientVe(this.element,this,28665);this.Ta("click",this.onClick,
this);this.T(a,"videoplayerreset",this.Qw);this.T(a,"appresize",this.nC);this.T(a,"videodatachange",this.nC);this.T(a,"presentingplayerstatechange",this.nC);this.nC();a=this.J.U();var b=g.JC("yt-player-watch-later-pending");a.D&&b?(ZMa(),N1a(this)):this.Sa(2);g.bv(this.element,"ytp-show-watch-later-title",g.UR(a));fU(this.J,this.element,this)};
P1a=function(a){var b=a.J.getPlayerSize(),c=a.J.U(),d=a.J.getVideoData(),e=g.UR(c)&&g.lU(a.J)&&g.JG(a.J.Xb(),128),f=c.C;return c.Ee&&240<=b.width&&!d.isAd()&&d.Ee&&!e&&!g.QT(d)&&!a.J.kd()&&!f};
Q1a=function(a,b){NYa(g.gS(a.J.U()),"wl_button",function(){ZMa({videoId:b});window.location.reload()})};
N1a=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Sa(3);var b=a.J.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.J.hm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Sa(2);a.J.U().K&&a.J.ob("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Sa(1);a.J.U().B&&a.J.VF(a.element);a.J.U().K&&a.J.ob("WATCH_LATER_VIDEO_ADDED")};
VH(c,b).then(d,function(){a.isRequestPending=!1;a.Sa(4,"\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.");a.J.U().K&&a.J.ob("WATCH_LATER_ERROR","\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.")})}};
R1a=function(a,b){if(b!==a.icon){switch(b){case 3:var c=aWa();break;case 1:c=uwa();break;case 2:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",
Ic:!0,X:{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.fY=function(){g.rW.apply(this,arguments);this.II=(this.Tq=g.UR(this.api.U()))&&(this.api.U().B||kC()||iC());this.cN=48;this.dN=69;this.UC=this.Ai=null;this.Kt=[];this.VK=this.ji=this.WK=this.wv=this.Yd=null;this.kG=[];this.contextMenu=this.Og=this.overflowButton=this.ai=this.Zg=this.searchButton=this.jn=this.shareButton=this.Jo=this.Xg=this.title=this.channelAvatar=this.TA=this.tooltip=null;this.KM=!1;this.hF=this.jw=this.pD=this.qD=null;this.PQ=this.LP=this.pN=!1};
S1a=function(a){var b=a.api.U(),c=g.JG(a.api.Xb(),128);return b.D&&c&&!a.api.isFullscreen()};
T1a=function(a){if(a.Vg()&&!a.api.kd()&&a.ai){var b=a.api.L("web_player_hide_overflow_button_if_empty_menu");!a.Jo||b&&!P1a(a.Jo)||VZa(a.ai,a.Jo);!a.shareButton||b&&!e_a(a.shareButton)||VZa(a.ai,a.shareButton);!a.jn||b&&!fZa(a.jn)||VZa(a.ai,a.jn)}else{if(a.ai){b=a.ai;for(var c=g.u(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.Uf(a.Xg.element,a.searchButton.element)&&a.searchButton.Ja(a.Xg.element);a.Jo&&!g.Uf(a.Xg.element,a.Jo.element)&&a.Jo.Ja(a.Xg.element);
a.shareButton&&!g.Uf(a.Xg.element,a.shareButton.element)&&a.shareButton.Ja(a.Xg.element);a.jn&&!g.Uf(a.Xg.element,a.jn.element)&&a.jn.Ja(a.Xg.element)}};
U1a=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==ns(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=U1a(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};
V1a=function(a,b,c){if(a.api.U().L("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.hF){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.hF=new ZZa(d,a.api),g.N(a,a.hF),g.oU(a.api,
a.hF.element,9));var m;null==(m=a.hF)||c_a(m,d,c)}}};
g.gY=function(a){g.RV.call(this,a);this.chrome=null;this.load()};
hY=function(a){g.I.call(this);var b=this;this.W=a;this.j=new Map;this.D=[];this.B=this.W.experiments.kb("html5_onesie_trusted_hosts_for_all")||!UN();this.Y=g.lJ(this.W.experiments,"html5_onesie_prewarm_interval_ms");this.Z=new g.Qu(this.N,this.Y,this);this.K=-1;this.Cd={Rmb:function(){return b.j},
Xmb:function(){return b.G},
Smb:function(){return W1a}};
g.N(this,this.Z);X1a(this,g.JC("yt-player-bandaid-host"));this.G=this.load();this.Y&&this.G.then(function(){b.N()})};
X1a=function(a,b){var c=null==b?void 0:b.primary;a.C(0,c);c=c?Y1a(c):void 0;a.C(2,c);a.C(1,null==b?void 0:b.secondary)};
iY=function(a,b){return new g.JP("https://"+b+a.W.vl.baseUrl)};
Z1a=function(a,b){a="https://"+LP(b.location)+"/initplayback?c="+g.yR(a.W)+"&owc=1";sU(a,"pw",function(c){c.ht=b.j})};
jY=function(a,b,c,d){sU("https://"+b+"/videoplayback?probe=1",c,function(e){!d.L("html5_onesie_host_racing")||d.videoData.isLivePlayback||d.L("html5_onesie_probe_ec_hosts")||d.JI||d.HO();a.D.push(e)},function(e){a.D.push(e.details)})};
Y1a=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
a2a=function(a,b){var c,d,e,f,h,l,m,n;return g.H(function(p){if(1==p.j){c=iY(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(p,TB(c.Ue(),d),2)}e=p.B;if(200!==e.xhr.status||!e.xhr.responseText)return p.return(Promise.reject(new g.QC("b204258371_no_host",c.Ue(),e.xhr.status)));f=new g.JP(e.xhr.responseText);
h=LP(f);l=f.get("ms");m=iY(a,h);n=f.get("mm");m.set("ms",l);m.set("mm",n);return h&&$1a(h)?2!==b||kY(h)?p.return(m):p.return(Promise.reject(new g.QC("b204258371_untrusted",h,l))):p.return(Promise.reject(new g.QC("b204258371_invalid",h,l)))})};
b2a=function(a){var b=a.D;a.D=[];return b};
$1a=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
kY=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
c2a=function(a,b){this.location=a;this.j=b};
lY=function(a,b){g.I.call(this);var c=this;this.policy=a;this.eb=b;this.B=0;this.j=null;this.Df=[];this.C=null;this.Cd={zn:function(){return c.eb}};
1===this.eb.length||g.Fr(this.eb,function(d){return!!d.range})};
mY=function(a,b,c){a.j&&(dO(a.j,b),b=a.j,a.j=null);for(var d=0,e=0,f=g.u(a.eb),h=f.next();!h.done;h=f.next())if(h=h.value,h.range&&d+h.B<=a.B)d+=h.B;else{b.getLength();if(CQ(h)&&!c&&a.B+b.getLength()-e<d+h.B){a.j=b.split(e).Gm;return}a:{var l=a;var m=h,n=a.B-d,p=e,q=b,r=!!c,t=q.getLength()-p;m.range&&(t=Math.min(m.B-n,t));m=vOa(m,m.Zb+n,t,m.range?m.Zb+n+t===m.range.length:r);p=eO(q,p,t);p=new VQ(m,p);if(l.policy.useUmp&&l.Df.length&&(q=XQ(l.Df[l.Df.length-1],p))){l.Df[l.Df.length-1]=q;l=t;break a}l.Df.push(p);
l=t}a.B+=l;e+=l;d+=h.B;if(e===b.getLength())break}b.getLength()};
nY=function(a){g.I.call(this);this.C=a;this.logger=new g.uU("onesie");this.bd=new Map;this.j=!1;this.nf=this.manifest=null;this.B=!1};
d2a=function(a,b,c){a.bd.get(b).hg=c};
pY=function(a,b){a.bd.has(b)&&(oY?a.bd.get(b).Cj.clear():a.bd.get(b).Df=new cO,e2a(a,b))};
f2a=function(a){for(var b=g.u(a.bd),c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;d.GC||pY(a,c)}};
g2a=function(a,b){b=a.bd.get(b);if(!b)return 0;a=0;if(0<b.eb.length){b=g.u(b.eb);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.zE.length)for(c=g.u(b.zE),d=c.next();!d.done;d=c.next())a+=d.value.Cr||0;return a+b.WX};
h2a=function(a,b){if(oY){var c=0;a=a.bd.get(b);if(null==a||!a.Cj)return 0;a=g.u(a.Cj.values());for(b=a.next();!b.done;b=a.next())c+=b.value.data.getLength();return c}return(null==(c=a.bd.get(b))?void 0:c.Df.getLength())||0};
qY=function(a,b){a=a.bd.get(b);if(oY){if(null==a||!a.GC)return!1;b=0<a.Cj.size;return 0<a.Aw.length||b}return!(null==a||!a.GC)&&!(null==a||!a.Df.getLength())};
i2a=function(a,b){var c=a.bd.get(b),d=g2a(a,b),e=!d&&!!c.bytesReceived;if(oY){var f;if(null==(f=a.manifest)?0:f.yc){a=g.u(c.Cj.values());for(b=a.next();!b.done;b=a.next())if(!b.value.Xz)return!1;return e}}else if(f=a.Uv(b),e&&a.j&&void 0!==f)return f;return(e||c.bytesReceived===d)&&c.Qy+h2a(a,b)===c.bytesReceived};
j2a=function(a,b,c){a.bd.set(b,{Df:new cO,Qy:0,bytesReceived:0,WX:0,eR:!1,Ug:!1,Uv:!1,Hi:c,ER:[],eb:[],zE:[],GC:!1,Cj:new Map,YF:new Map,Aw:[]});a.logger.debug(function(){return"[initStream] formatId: "+b})};
k2a=function(a,b,c,d){c.eb.push.apply(c.eb,g.pa(d));if(oY){c.YF.has(b)||c.YF.set(b,[]);var e;(e=c.YF.get(b)).push.apply(e,g.pa(d))}else if(c.og)for(a=g.u(d),b=a.next();!b.done;b=a.next())c.og.eb.push(b.value);else{c.og=new lY(a.nf,[].concat(g.pa(c.eb)));var f;(null==(f=a.nf)?0:f.Kd)&&g.N(a,c.og)}};
l2a=function(a,b,c){var d,e=null==(d=a.manifest)?void 0:d.N.get(b);if(!e)return[];if(c.Ln){var f;return(null==(f=e.Gv(0,c.clipId))?void 0:f.eb)||[]}if(e.tm()){var h=c.startMs;d=c.durationMs;f=1E3;var l;if((null==(l=a.nf)?0:l.C)&&c.timeRange){var m;h=null!=(m=c.timeRange.Fh)?m:-1;var n;d=null!=(n=c.timeRange.dD)?n:-1;var p;f=null!=(p=c.timeRange.Lr)?p:-1}if(0>c.lB||0>c.Wt||0>d||0>h||0>c.Cr||0>f)return pY(a,b),[];a=yQ(c.lB,c.Cr);b=c.vJ||0;return[new AQ(3,e,a,"makeSliceInfosMediaBytes",c.Wt-1,h/f,d/
f,b,a.length-b,void 0,c.Kj,c.clipId)]}if(0>c.Wt)return pY(a,b),[];var q;return(null==(q=a.manifest)?0:q.yc)?(b=e.Mj,l=b*e.info.Pb,a=(null==(h=a.nf)?0:h.er)?c.vJ:void 0,[new AQ(3,e,void 0,"makeSliceInfosMediaBytes",c.Wt,void 0,b,a,l,!0,c.Kj,c.clipId)]):[]};
m2a=function(a,b,c){a.manifest=b;a.nf=c;b=g.u(a.bd);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.ER),f=e.next();!f.done;f=e.next()){f=f.value;var h=l2a(a,c,f);k2a(a,f.Fp,d,h)}}};
n2a=function(a,b,c,d){a.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+b+" bytes: "+d.getLength()});
(a=a.bd.get(c))&&!a.Ug&&(oY?(a.Cj.has(b)||a.Cj.set(b,{data:new cO,cH:0,Xz:!1}),dO(a.Cj.get(b).data,d)):dO(a.Df,d),a.bytesReceived+=d.getLength(),a.eR=!0)};
e2a=function(a,b){a.logger.debug(function(){return"[closeStream] formatId: "+b});
var c=a.bd.get(b);c&&!c.Ug&&(c.Ug=!0,c.hg&&c.hg(),o2a(a)&&a.C.hZ())};
o2a=function(a){a=g.u(a.bd.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.Ug)return!1;return!0};
r2a=function(a){var b=OK[a],c=p2a[b],d=q2a[a];if(!d||!c)return null;var e=new LK(d.width,d.height,d.fps);c=DPa(c,e,b);return new PK(a,c,{video:e,Pb:d.bitrate/8})};
t2a=function(a){var b=p2a[OK[a]],c=s2a[a];return c&&b?new PK(a,b,{audio:new JK(c.audioSampleRate,c.numChannels)}):null};
v2a=function(a,b){var c=[];b=g.u(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=u2a[d]||0;a.j&&e>a.j||c.push(d)}return c};
y2a=function(a,b,c){b.push.apply(b,g.pa(w2a[a]||[]));c.L("html5_early_media_for_drm")&&b.push.apply(b,g.pa(x2a[a]||[]))};
D2a=function(a,b){var c=nT(a),d=a.U().G;if(rY&&!d.B)return rY;var e=[],f=[],h={},l=[].concat(g.pa(z2a));a.L("html5_early_media_for_drm")&&(l=l.concat(A2a),a.L("allow_vp9_1080p_mq_enc")&&l.push(B2a));var m=[].concat(g.pa(C2a));c.Z&&(m[0]=["141"]);l=g.u(l);for(var n=l.next();!n.done;n=l.next()){var p=!1;n=g.u(n.value);for(var q=n.next();!q.done;q=n.next()){q=q.value;var r=r2a(q);if(r&&r.video&&!(RK(r)&&!c.Ea&&r.video.j>c.tj)){var t=g.lJ(a.U().experiments,"html5_drm_byterate_soft_cap");0<t&&zCa(r)&&
r.Pb>t||(p?(e.push(q),y2a(q,e,a)):(r=CP(c,r,d),!0===r?(p=!0,e.push(q),y2a(q,e,a)):h[q]=r))}}}m=g.u(m);for(l=m.next();!l.done;l=m.next())for(l=g.u(l.value),p=l.next();!p.done;p=l.next())if(p=p.value,(n=t2a(p))&&n.audio&&(a.L("html5_onesie_51_audio")||!yCa(n)&&!SK(n)))if(n=CP(c,n,d),!0===n){f.push(p);y2a(p,f,a);break}else h[p]=n;c.B&&b("orfmts",h);rY={video:e,audio:f};d.B=!1;return rY};
sY=function(a,b){var c,d;null==(c=window.h5vcc)||null==(d=c.settings)||d.set(a,b)};
E2a=function(){var a=window.H5vccPlatformService,b="";if(a&&a.has("dev.cobalt.coat.clientloginfo")&&(a=a.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=a.send(new ArrayBuffer(0));
c&&(b=String.fromCharCode.apply(String,g.pa(new Uint8Array(c))));a.close()}return b};
F2a=function(){for(var a=tY.length;4>a;a++){var b=g.If("VIDEO");b.load();tY.push(new g.xV(b))}};
G2a=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};var h=f.C;if(b.bj()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(b=b.kf())&&b.isView()&&(b=b.mediaElement);if(b&&12<b.Iv().length&&g.sT(e))return{msg:"played-ranges"};if(!e.C)return null;if(!h)return{msg:"no-pvd-formats"};if(!e.C.j||!h.j)return{msg:"non-dash"};b=h.videoInfos[0];d=e.C.videoInfos[0];c=a.j&&f.Nn()&&jL();if(d.containerType!==
b.containerType)if(c)f.qa("sgap",{ierr:"container"});else return{msg:"container"};if(g.sT(f)&&g.sT(e))return{msg:"content-protection"};h=h.j[0];e=e.C.j[0];var l=h.audio,m=e.audio;if(l.sampleRate!==m.sampleRate&&!g.GK)if(c)f.qa("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:h.itag,cr:l.sampleRate,ni:e.itag,nr:m.sampleRate};return(l.numChannels||2)!==(m.numChannels||2)?{msg:"channel-count"}:a.B&&f.Nn()&&b.video.fps!==d.video.fps?{msg:"fps"}:null};
H2a=function(a,b,c){var d=a.getVideoData(),e=b.getVideoData();if(!d.U().supportsGaplessShorts())return{nq:"env"};if(d.bl||e.bl)return{nq:"autoplay"};if(!d.Y)return{nq:"client"};a=G2a(c,a,b,Infinity);return null!=a?{nq:a.msg}:null};
uY=function(a){g.I.call(this);this.app=a;this.D=this.C=this.xb=this.j=null;this.B=1;this.events=new g.IK(this);this.events.T(this.app.Va,g.WJ("gaplessshortslooprange"),this.N);g.N(this,this.events)};
I2a=function(){this.B=this.j=!1};
J2a=function(a){var b=new I2a;b.j=a.L("h5_gapless_support_types_diff");b.B=a.L("h5_gapless_error_on_fps_diff");return b};
g.vY=function(a,b,c,d){d=void 0===d?!1:d;uL.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
K2a=function(a,b,c,d,e,f){f=void 0===f?0:f;g.I.call(this);var h=this;this.policy=a;this.j=b;this.B=c;this.oe=e;this.G=f;this.D=this.C=null;this.currentVideoDuration=this.K=-1;this.N=!1;this.bq=new tL;this.Hm=d-1E3*b.Vc();this.bq.then(void 0,function(){});
this.timeout=new g.Qu(function(){h.Mg("timeout")},1E4);
g.N(this,this.timeout);this.Z=isFinite(d);this.status={status:0,error:null}};
P2a=function(a){var b,c,d,e,f,h,l,m,n,p;return g.H(function(q){if(1==q.j){if(a.isDisposed())return q.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.wY.fu("gtfta");return g.z(q,a.bq,2)}g.wY.Js(b);c=a.j.kf();if(c.isEnded())return a.Mg("ended_in_finishTransition"),q.return(Promise.reject(Error(a.status.error||"")));if(!a.D||!nL(a.D))return a.Mg("next_mse_closed"),q.return(Promise.reject(Error(a.status.error||"")));if(a.B.Iq()!==a.D)return a.Mg("next_mse_mismatch"),q.return(Promise.reject(Error(a.status.error||
"")));d=L2a(a);e=d.bZ;f=d.hW;h=d.ZY;a.j.Jj(!1,!0);l=M2a(c,e,h,!a.B.getVideoData().isAd());a.B.setMediaElement(l);m=a.j.HD();a.oe.U().L("html5_mse_reuse_dropped_frames_fix")&&m&&a.B.PF(m.XA,m.YA);a.Z&&(a.B.seekTo(a.B.getCurrentTime()+.001,{Qv:!0,sS:3,Ed:"gapless_pseudo"}),l.play()||XB());n=c.qc();n.cpn=a.j.getVideoData().clientPlaybackNonce;n.st=""+e;n.et=""+h;a.B.qa("gapless",n);a.j.qa("gaplessTo",{cpn:a.B.getVideoData().clientPlaybackNonce});p=a.j.getPlayerType()===a.B.getPlayerType();N2a(a.j,f,
!1,p,a.B.getVideoData().clientPlaybackNonce);N2a(a.B,a.B.getCurrentTime(),!0,p,a.j.getVideoData().clientPlaybackNonce);g.ig(function(){!a.B.getVideoData().Ea&&g.CL(a.B.getPlayerState())&&O2a(a.B)});
xY(a,6);a.dispose();return q.return(Promise.resolve())})};
U2a=function(a){if(a.B.getVideoData().C){var b=a.oe.U().L("html5_gapless_suspend_next_loader")&&1===a.G;Q2a(a.B,a.D,b,R2a(a));xY(a,3);S2a(a);var c=T2a(a);b=c.UR;c=c.Z_;b.subscribe("updateend",a.iy,a);c.subscribe("updateend",a.iy,a);a.iy(b);a.iy(c)}};
S2a=function(a){a.j.unsubscribe("internalvideodatachange",a.Tu,a);a.B.unsubscribe("internalvideodatachange",a.Tu,a);a.j.unsubscribe("mediasourceattached",a.Tu,a);a.B.unsubscribe("statechange",a.vU,a)};
M2a=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.vY(a,b,c,d)};
xY=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.bq.resolve())};
R2a=function(a){return a.oe.U().L("html5_gapless_no_clear_buffer_timeline")&&1===a.G&&fT(a.j.getVideoData())};
L2a=function(a){var b=a.j.kf();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:yY(a.j,!0);c=Math.min(a.Hm/1E3,c)+b;var d=a.Z?100:0;a=c-a.B.bj()+d;return{j6:b,bZ:a,hW:c,ZY:Infinity}};
T2a=function(a){return{UR:a.C.j.Vd,Z_:a.C.B.Vd}};
zY=function(a){g.I.call(this);var b=this;this.app=a;this.G=this.B=this.j=null;this.Z=!1;this.D=null;this.N=J2a(this.app.U());this.C=null;this.K=function(){g.ig(function(){V2a(b)})}};
W2a=function(a,b,c,d,e){d=void 0===d?0:d;e=void 0===e?0:e;a.dw()||AY(a);a.D=new tL;a.j=b;var f=c,h=0===e;h=void 0===h?!0:h;var l=a.app.fd(),m=l.getVideoData().isLivePlayback?Infinity:1E3*yY(l,!0);f>m&&(f=m-200,a.Z=!0);h&&l.getCurrentTime()>=f/1E3?a.K():(a.B=l,h&&(h=f,f=a.B,a.app.Va.addEventListener(g.VJ("vqueued"),a.K),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.UJ(h,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(a.G)));h=d/=1E3;f=b.getVideoData().j;d&&f&&a.B&&(l=d,m=0,
b.getVideoData().isLivePlayback&&(h=Math.min(c/1E3,yY(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,yY(b)+m)),h=TPa(f,l)||d,h!==d&&a.j.qa("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().wj=!0;d.getVideoData().Y=!0;g.BY(d,!0);f={};a.B&&(f=g.dN(a.B.Cc().provider),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(1E3*f).toFixed(),cpn:h});d.qa("queued",f);0!==b&&d.seekTo(b+.01,{Qv:!0,sS:3,Ed:"videoqueuer_queued"});a.C=new K2a(a.N,a.app.fd(),a.j,c,a.app,e);c=a.C;Infinity!==c.status.status&&
(xY(c,1),c.j.subscribe("internalvideodatachange",c.Tu,c),c.B.subscribe("internalvideodatachange",c.Tu,c),c.j.subscribe("mediasourceattached",c.Tu,c),c.B.subscribe("statechange",c.vU,c),c.j.subscribe("newelementrequired",c.wZ,c),c.Tu());return a.D};
V2a=function(a){var b,c,d,e;g.H(function(f){switch(f.j){case 1:if(a.isDisposed()||!a.D||!a.j)return f.return();a.Z&&CY(a.app.fd(),!0,!1);b=null;if(!a.C){f.Ka(2);break}g.Ba(f,3);return g.z(f,P2a(a.C),5);case 5:g.Ca(f,2);break;case 3:b=c=g.Da(f);case 2:if(!a.j)return f.return();g.wY.Ek("vqsp",function(){DY(a.app,a.j)});
g.wY.Ek("vqpv",function(){a.app.playVideo()});
b&&(a.j?X2a(a.j,b.message):null==(d=a.B)||d.qa("gapsp",{}));e=a.D;AY(a);e&&e.resolve();return f.return(Promise.resolve())}})};
AY=function(a){if(a.B){if(a.G){var b=a.B;a.app.Va.removeEventListener(g.VJ("vqueued"),a.K);b.removeCueRange(a.G)}a.B=null;a.G=null}a.C&&(6!==a.C.status.status&&(b=a.C,Infinity!==b.status.status&&1!==b.G&&b.Mg("Canceled")),a.C=null);a.D=null;a.j&&a.j!==g.bU(a.app,1)&&a.j!==a.app.fd()&&a.j.dispose();a.j=null;a.Z=!1};
Y2a=function(a){var b;return(null==(b=a.C)?void 0:b.currentVideoDuration)||-1};
Z2a=function(a,b,c){if(a.dw())return"qie";if(null==a.j||a.j.isDisposed()||null==a.j.getVideoData())return"qpd";if(b.videoId!==a.j.xe())return"vinm";if(0>=Y2a(a))return"ivd";if(1!==c)return"upt";var d;null==(d=a.C)?a=void 0:5!==d.getStatus().status?a="niss":null!=G2a(d.policy,d.j,d.B,d.Hm)?a="pge":(c=T2a(d),b=c.UR,a=g.lJ(d.oe.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds"),d=d.K+a,c=cL(c.Z_.hf(),d),b=cL(b.hf(),d),a=!(0<a)||c&&b?null:"neb");return null!=a?a:null};
$2a=function(){var a=bqa();return!(!a||"visible"===a)};
b3a=function(a){var b=a3a();b&&document.addEventListener(b,a,!1)};
c3a=function(a){var b=a3a();b&&document.removeEventListener(b,a,!1)};
a3a=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[aqa+"VisibilityState"])return"";a=aqa+"visibilitychange"}return a};
d3a=function(){g.NF.call(this);var a=this;this.fullscreen=0;this.C=this.pictureInPicture=this.j=this.B=this.inline=!1;this.D=function(){a.jg()};
b3a(this.D);this.G=this.getVisibilityState(this.Sh(),this.isFullscreen(),this.xg(),this.isInline(),this.ut(),this.Wz(),this.bA())};
VWa=function(a){return!(a.xg()||a.isInline()||a.isBackground()||a.ut()||a.Wz()||a.bA())};
EY=function(a,b,c,d,e){e=void 0===e?[]:e;g.I.call(this);this.W=a;this.Bc=b;this.C=c;this.segments=e;this.j=void 0;this.B=new Map;e.length&&(this.j=e[0])};
e3a=function(a,b){b.D===a&&(a.j=b,a.segments.push(b))};
f3a=function(a){if(!(2>a.segments.length)){var b=a.segments.shift();if(b){var c=b.j,d=[];if(c.size){c=g.u(c.values());for(var e=c.next();!e.done;e=c.next()){e=g.u(e.value);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var h=g.u(f.segments),l=h.next();!l.done;l=h.next())(l=l.value.aj())&&d.push(l);f.Tf()}}}(c=b.aj())&&d.push(c);d=g.u(d);for(c=d.next();!c.done;c=d.next())a.B.delete(c.value);b.dispose()}}};
FY=function(a,b,c,d){if(!a.j||b>c)return!1;b=new EY(a.W,b,c,a.j,d);d=g.u(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=c.aj();e&&e!==a.j.aj()&&a.B.set(e,[c])}a=a.j;a.j.has(b.zf())?a.j.get(b.zf()).push(b):a.j.set(b.zf(),[b]);return!0};
GY=function(a,b){return a.B.get(b)};
g3a=function(a,b,c){a.B.set(b,c)};
HY=function(a,b,c,d,e,f){return new h3a(c,c+(d||0),!d,b,a,e,f)};
i3a=function(a,b){var c=a.B.values();a=[];c=g.u(c);for(var d=c.next();!d.done;d=c.next()){d=g.u(d.value);for(var e=d.next();!e.done;e=d.next()){var f=e.value;e="st."+f.zf()+";";e+="et."+f.dj()+";";var h=f.aj();h&&(e+="cpn."+h+";",e+="a."+(b===h?1:0)+";");if(f=f.getVideoData())h=void 0,e+="vid."+(null!=(h=f.videoId)?h:"nvd");a.push(e)}}return a.join(",")};
h3a=function(a,b,c,d,e,f,h){g.I.call(this);this.Bc=a;this.B=b;this.C=c;this.type=d;this.D=e;this.videoData=f;this.dJ=h;this.j=new Map;mTa(f)};
j3a=function(a){if(a.j.size)for(var b=g.u(a.j.values()),c=b.next();!c.done;c=b.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())d.value.dispose()}a.j.clear()};
k3a=function(a){this.end=this.start=a};
g.IY=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.W=b;this.oa=c;this.Ma=new Map;this.Xa=new Map;this.Na=new Map;this.C=new Map;this.B=[];this.N=[];this.G=new Map;this.Lc=new Map;this.Z=new Map;this.jc=NaN;this.Nb=this.ib=this.Vb=null;this.Ob=new g.Qu(function(){l3a(d,d.jc,d.Vb||void 0)});
this.events=new g.IK(this);this.Gb=15E3;this.K=new g.Qu(function(){d.Ca=!0;var e=d.oa,f=d.Gb;e.qa("sdai",{aftimeout:f});e.ze(new BK("ad.fetchtimeout",{timeout:f}));m3a(d);d.QD(!1)},this.Gb);
this.Ca=!1;this.D=new Map;this.ub=[];this.Y=null;this.Pe=new Set;this.Ea=[];this.Jc=[];this.Ee=[];this.rd=[];this.j=void 0;this.Za=0;this.fb=!0;this.Ia=!1;this.Ra=[];this.Bd=new Set;this.Fe=new Set;this.me=new Set;this.va=0;this.tb=new Set;this.Kd=0;this.qp=this.Yc=!1;this.ma="";this.Cd={vmb:function(){return d.C},
Emb:function(){return d.B},
wmb:function(){return d.G}};
this.oa.getPlayerType();n3a(this.oa,this);this.Wa=this.W.Dc();g.N(this,this.Ob);g.N(this,this.events);g.N(this,this.K);this.events.T(this.api,g.VJ("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.WJ("serverstitchedcuerange"),this.onCueRangeExit)};
r3a=function(a,b,c,d,e,f,h,l){var m=o3a(a,f,f+e);a.Ca&&a.oa.qa("sdai",{adaftto:1});a.qp&&a.oa.qa("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.oa;h=void 0===h?f+e:h;f===h&&!e&&a.W.L("html5_allow_zero_duration_ads_on_timeline")&&a.oa.qa("sdai",{attl0d:1});f>h&&JY(a,{reason:"enterTime_greater_than_return",Bc:f,ge:h});var p=1E3*n.Rd();f<p&&JY(a,{reason:"enterTime_less_than_minSeekableTime",Bc:f,aob:p});n=1E3*n.getDuration();h>n&&JY(a,{reason:"parent_return_greater_than_content_duration",ge:h,Ynb:n});
n=null;p=g.Tb(a.N,{ge:f},function(q,r){return q.ge-r.ge});
0<=p&&(n=a.N[p],n.ge>f&&p3a(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p<a.Ea.length;p++){if(a.Ea[p].identifier===m.identifier){a.Ea.splice(p,1);break}}else if(m)return a.oa.qa("sdai",{rejectAttl:1}),l&&!As(a.rd,function(q){return q===l})&&(a.oa.qa("sdai",{rejectAdBreakAttl:1}),a.rd.push(l)),KY(a),"";
m="ss_childplayback_"+q3a++;a.W.L("html5_enable_ssap_entity_id")?(b=new g.XS(a.W,b),p=b.clientPlaybackNonce):(b.cpn||(b.cpn=g.GE(16)),p=b.cpn,b=new g.XS(a.W,b));b.yd=m;c={yd:m,playerType:d,durationMs:e,Bc:f,ge:h,cpn:p,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.$b(a.N,c,function(q,r){return q.Bc===r.Bc?q.durationMs-r.durationMs:q.Bc-r.Bc});
a.G.set(p,c);a.Lc.set(m,c);a.oa.qa("sdai",{attlDone:h-f,acpn:p});l?c.Xm=l:n?c.Xm=n.Xm:c.Xm=c.cpn;if(f=c.Xm)(d=a.Z.get(f))?(d.push(c),g.Xb(d,function(q,r){return q.Bc-r.Bc})):a.Z.set(f,[c]);
a.K.isActive()&&(a.Ca=!1,a.K.stop(),m3a(a),a.QD(!0));return m};
LY=function(a,b){return{ssvc:a,cpn:(null==b?void 0:b.cpn)||"",vid:(null==b?void 0:b.videoData.videoId)||""}};
s3a=function(a,b,c){return new g.UJ(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
MY=function(a,b,c){var d=a.Ia;var e={cpn:a.oa.getVideoData().clientPlaybackNonce,durationMs:0,Bc:0,playerType:1,ge:0,videoData:a.oa.getVideoData(),errorCount:0};var f=a.ma;a.ma="";var h=b.Hh-c.Hh;.5<Math.abs(h)&&a.oa.qa("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});if(b.isAd&&c.isAd){if(b.adCpn&&c.adCpn){var l=a.G.get(b.adCpn);var m=a.G.get(c.adCpn)}m&&l&&(a.api.ra("serverstitchedvideochange",l.yd,l.HC),a.oa.qa("sdai",LY("a2a",l)),a.va++,t3a(a.oa,m,l,c.Hh,b.Hh,d,!!f))}else if(!b.isAd&&
c.isAd){a.api.ra("serverstitchedvideochange");a.oa.qa("sdai",LY("a2c"));a.va=0;if(h=c.ue)a.Za=h.end;var n;c.adCpn&&(n=a.G.get(c.adCpn));n&&t3a(a.oa,n,e,c.Hh,b.Hh,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.G.get(b.adCpn));p&&(a.Za=0,a.api.ra("serverstitchedvideochange",p.yd,p.HC),a.oa.qa("sdai",LY("c2a",p)),a.va=1,t3a(a.oa,e,p,c.Hh,b.Hh,d,!!f))}};
u3a=function(a,b){return a.qp?!1:KT(a.oa.getVideoData())?(a=NY(a,1E3*b),!!a&&!a.jE):!!NY(a,1E3*b)};
OY=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.Tb(a.N,{Bc:c},function(e,f){return e.Bc-f.Bc});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.N[d],a.ge>=c)?{hn:a,CA:b}:{hn:void 0,CA:b}};
NY=function(a,b){var c="";(b=v3a(a,b))&&(c=b.getId());return c?a.G.get(c):void 0};
v3a=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};
l3a=function(a,b,c){var d=a.Nb||a.api.fd().getPlayerState();PY(a,!0);a.oa.seekTo(b,c);a=a.api.fd();b=a.getPlayerState();g.CL(d)&&!g.CL(b)?a.playVideo():d.isPaused()&&!b.isPaused()&&a.pauseVideo()};
PY=function(a,b){a.jc=NaN;a.Vb=null;a.Ob.stop();a.ib&&b&&w3a(a.ib);a.Nb=null;a.ib=null};
x3a=function(a){var b=void 0===b?-1:b;var c=void 0===c?Infinity:c;for(var d=[],e=g.u(a.N),f=e.next();!f.done;f=e.next())f=f.value,(f.Bc<b||f.ge>c)&&d.push(f);a.N=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.oa.removeCueRange(e),a.C.delete(e.getId()),a.oa.qa("sdai",{rmAdCR:1}));d=OY(a,b/1E3);b=d.hn;d=d.CA;if(b&&(d=1E3*d-b.Bc,e=b.Bc+d,b.durationMs=d,b.ge=e,d=a.C.get(b.cpn))){e=g.u(a.B);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start=
b.Bc+b.durationMs:f.end===d.start&&(f.end=b.Bc);d.start=b.Bc;d.end=b.Bc+b.durationMs}if(b=OY(a,c/1E3).hn){var h;d="playback_timelinePlaybackId_"+b.yd+"_video_id_"+(null==(h=b.videoData)?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.Bc+"_parentReturnTimeMs_"+b.ge;a.tE("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
y3a=function(a){a.Ma.clear();a.Xa.clear();a.Na.clear();a.C.clear();a.B=[];a.N=[];a.G.clear();a.Lc.clear();a.Z.clear();a.D.clear();a.ub=[];a.Y=null;a.Pe.clear();a.Ea=[];a.Jc=[];a.Ee=[];a.rd=[];a.Ra=[];a.Bd.clear();a.Fe.clear();a.me.clear();a.tb.clear();a.Ca=!1;a.j=void 0;a.Za=0;a.fb=!0;a.Ia=!1;a.va=0;a.Kd=0;a.Yc=!1;a.qp=!1;a.ma="";a.K.isActive()&&KY(a)};
A3a=function(a,b,c,d,e,f){if(!a.qp)if(!a.W.L("html5_ssdai_use_media_time")&&g.z3a(a,c))a.Wa&&a.oa.qa("sdai",{gdu:"undec",seg:c,itag:e});else if(b=QY(a,b,c,d,f),!(KT(a.oa.getVideoData())&&(null==b?0:b.jE)))return b};
QY=function(a,b,c,d,e){var f;a.W.L("html5_ssdai_use_media_time")||(f=a.D.get(c));if(!f){if(f=RY(a,b))return f;var h=SY(a,c-1,null!=d?d:2);if(e)return a.oa.qa("sdai",{misscue:e,sq:c,type:d,prevsstate:null==h?void 0:h.Ky,prevrecord:a.D.has(c-1)}),a.W.L("html5_ssdai_use_media_time")?RY(a,b-5):a.D.get(c-1);if(2===(null==h?void 0:h.Ky)&&(a.oa.qa("sdai",{adnf:1,sq:c,type:d,prevrecord:a.D.has(c-1)}),!a.W.L("html5_ssdai_use_media_time")))return a.D.get(c-1)}return f};
RY=function(a,b){b+=a.Xs();return OY(a,b,1).hn};
B3a=function(a){if(a.Ra.length)for(var b=g.u(a.Ra),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);b=g.u(a.C.values());for(c=b.next();!c.done;c=b.next())a.oa.removeCueRange(c.value);b=g.u(a.B);for(c=b.next();!c.done;c=b.next())a.oa.removeCueRange(c.value);a.C.clear();a.B=[];a.Ma.clear();a.Xa.clear();a.Na.clear();a.j||(a.fb=!0)};
SY=function(a,b,c){if(1===c){if(a.Ma.has(b))return a.Ma.get(b)}else{if(2===c&&a.Xa.has(b))return a.Xa.get(b);if(3===c&&a.Na.has(b))return a.Na.get(b)}};
D3a=function(a,b,c,d){if(d)for(d=0;d<a.B.length;){var e=a.B[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;C3a(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.oa.removeCueRange(e);if(a.Ra.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else C3a(a,b,c)};
C3a=function(a,b,c){b=s3a(b,c);c=!0;g.$b(a.B,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.B.length;){if(0<d){var e=a.B[d],f=a.B[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.oa.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.oa.addCueRange(b),b=a.oa.lD("serverstitchedcuerange",36E5),b=g.u(b),c=b.next();!c.done;c=b.next())a.C.delete(c.value.getId())};
TY=function(a,b,c){if(void 0===c||!c){c=g.u(a.ub);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.ub.push(new k3a(b))}};
g.z3a=function(a,b){a=g.u(a.ub);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
p3a=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",Tnb:b,Bc:c,ge:d,mmb:e.yd,nmb:(null==(f=e.videoData)?void 0:f.videoId)||"",imb:e.durationMs,jmb:e.Bc,lmb:e.ge};JY(a,b)};
JY=function(a,b){a=a.oa;a.qa("timelineerror",b);a.ze(new BK("dai.timelineerror",b))};
E3a=function(a,b){var c=[];a=a.Z.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};
F3a=function(a,b,c){var d=0;a=a.Z.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};
G3a=function(a,b){var c=[];a=a.Z.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};
H3a=function(a,b){var c=0;a=a.Z.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.ge!==b.Bc&&c++;return c};
I3a=function(a,b,c){var d=!1;if(c&&(c=a.Z.get(c))){c=g.u(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.ge!==e.Bc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Fe.has(e)&&(a.oa.qa("sdai",{decoratedAd:e}),a.Fe.add(e)))}};
m3a=function(a){a.Wa&&a.oa.qa("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Kd)+"_isTimeout_"+a.Ca})};
o3a=function(a,b,c){if(a.Ea.length)for(var d=g.u(a.Ea),e=d.next(),f={};!e.done;f={mz:void 0},e=d.next()){f.mz=e.value;e=1E3*f.mz.startSecs;var h=1E3*f.mz.yh+e;if(b>e&&b<h||c>e&&c<h)return As(a.Ee,function(l){return function(m){return m.identifier===l.mz.identifier}}(f))||(a.oa.qa("sdai",{adskip:b}),a.Ee.push(f.mz)),f.mz}};
KY=function(a){a.Ca=!1;a.K.isActive()&&m3a(a);a.K.stop();a.QD(!1)};
L3a=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.timeline=b;this.oa=c;this.kz=new Map;this.Vj=new Map;this.C=new Map;this.events=new g.IK(this);this.N=0;this.dg="";this.B=[];this.wk=new Set;this.D=new g.Qu(function(){d.api.playVideo(1);J3a(d,4)},3E4);
this.j="";this.XF=new Set;this.Z=!0;this.K=new Map;this.G=new Set;this.KW=!1;this.Bv="";this.Cd={Gmb:function(){return d.Vj},
gmb:function(e){if(e=d.Vj.get(e))d.onCueRangeEnter(e)}};
this.oa.getPlayerType();K3a(this);this.events.T(this.api,g.VJ("ssap"),this.onCueRangeEnter);g.N(this,this.D);this.WR=this.api.U().L("html5_enable_ssap_gapful_switch")};
M3a=function(a,b,c,d){for(var e=a.oa.cI(),f=g.u(d),h=f.next();!h.done;h=f.next()){var l=h.value;l.C||(h=l.aj(),l=l.getVideoData(),h&&l&&e.tN(h,l,2))}return FY(a.timeline,b,c,d)};
UY=function(a,b){a=GY(a.timeline,b);return(null==a?0:a.length)?a[0].zf():0};
WY=function(a,b){if(!a.timeline.j)return{clipId:"",al:0};if(b=VY(a,b,!1))return{clipId:b.aj()||"",al:b.zf()};a.api.qa("ssap",{mci:1});return{clipId:"",al:0}};
XY=function(a){var b=a.timeline.j;if(!b)return 0;a=0;if(0===b.j.size)return(b.dj()-b.zf())/1E3;b=b.j.values();b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,a+=(d.dj()-d.zf())/1E3}return a};
O3a=function(a,b){b*=1E3;return a.api.L("html5_ssap_get_current_time_refactor")?(a=N3a(a,b))?a.zf():0:(a=VY(a,b))?a.zf():0};
P3a=function(a,b){return(a=VY(a,1E3*b))?(a.dj()-a.zf())/1E3:0};
N3a=function(a,b){if(a=GY(a.timeline,a.dg)){a=g.u(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.zf()<=b&&c.dj()>=b)return c}};
Q3a=function(a){var b=a.oa.getVideoData();a.dg&&(a=a.kz.get(a.dg))&&(b=a);return b};
R3a=function(a){a=GY(a.timeline,a.dg);return(null==a?0:a.length)?2===a[0].getType():!1};
S3a=function(a,b,c){c=void 0===c?!1:c;var d=a.timeline.j;if(d){d=d.j;var e=Array.from(d.keys());g.Xb(e);b=g.Tb(e,b);b=d.get(e[0>b?-1*(b+2):b]);if(a.api.L("html5_ssap_ignore_non_video_only_child_timeline")&&!c&&b){c=g.u(b);for(b=c.next();!b.done;b=c.next())if(b=b.value,b.zf()!==b.dj())return b;return a.timeline}return b&&0<b.length?b[b.length-1]:void 0}};
VY=function(a,b,c){c=void 0===c?!1:c;var d=S3a(a,b,c);if(d){var e=d.segments;if(e.length){for(var f=g.u(e),h=f.next();!h.done;h=f.next())if(h=h.value,h.zf()<=b&&h.dj()>b)return h;if(a.api.L("html5_ssap_ignore_non_video_only_child_timeline")&&c&&d.zf()===d.dj())return e[0]}}else a.api.qa("ssap",{ctnf:1})};
J3a=function(a,b){var c;if(a.j)for(c=a.B.shift();c&&c!==a.j;)c=a.B.shift();else c=a.B.shift();if(c)return a.wk.has(c)?T3a(a,c):3===b&&(a.D.stop(),a.api.playVideo(1)),a.C.set(a.dg,b),U3a(a,c),!1;a.D.stop();return!0};
T3a=function(a,b){b=GY(a.timeline,b);if(null==b?0:b.length)a.api.pauseVideo(),a.D.start(b[0].dJ)};
U3a=function(a,b){if(a.dg!==b){var c=a.oa.getVideoData(),d=c.clientPlaybackNonce;a.dg&&a.api.mG();var e=a.dg;a.dg=b;var f=!1;""===e&&(e=d,f=!0);b=GY(a.timeline,a.dg);if(null==b?0:b.length){var h=b[0];b=h.getType();c=e===d?c:a.kz.get(e);var l=a.C.get(e);l?a.C.delete(e):l=f?1:2;a:{var m=a.dg;if(!a.Vj.has(m))for(var n=g.u(a.Vj),p=n.next();!p.done;p=n.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;if(q.getId().includes(m)){m=p;break a}}}n=m;p=a.oa.cI();p.eh!==n&&(q=p.Cc(p.eh),m=p.Cc(n),
p.eh=n,m!==q&&(q.qoe&&(n=q.qoe,n.provider.W.Dc()&&n.qa("ssap",{qoesus:"1",vid:n.provider.videoData.videoId}),isNaN(n.G)||g.OB(n.G)),m.resume()));n=a.oa.getCurrentTime();m=Math.max(0,n-UY(a,e)/1E3);n=Math.max(0,n-UY(a,a.dg)/1E3);p=3===l;h=h.getVideoData();q=a.oa.cI();var r=e,t=a.dg,v=a.oa.getPlayerState();if(r!==t){var x=q.Cc(r),A=q.Cc(t),E,F=r===(null==(E=x.getVideoData())?void 0:E.clientPlaybackNonce),G;E=t===(null==(G=A.getVideoData())?void 0:G.clientPlaybackNonce);var M;G=F?(null==(M=x.getVideoData())?
void 0:M.videoId)||"":"nvd";var P;M=E?(null==(P=A.getVideoData())?void 0:P.videoId)||"":"nvd";F&&null!=(P=x.qoe)&&(YY(P,4,p?4:0,t,M,m),P.reportStats());E&&(ZY(A),null!=(P=A.qoe)&&(YY(P,4,p?5:1,r,G,n),P.reportStats()),V3a(A,new g.IG(v,A.Le)),W3a(A));q.j.has(r)&&(X3a(q.j.get(r)),q.j.delete(r))}var R;uXa(e,a.dg,d,(0,g.pD)(),h,null!=(R=a.K.get(e))?R:(0,g.pD)(),c);a.K.delete(e);a.api.ra("videodatachange","newdata",h,b,f?void 0:c,l);a.wk.delete(e);a.j="";(null==h?0:h.startSeconds)&&1===b&&a.Z&&(d=h.startSeconds,
e=GY(a.timeline,a.oa.getVideoData().clientPlaybackNonce),null==e?0:e.length)&&(a.oa.seekTo(d+e[0].zf()/1E3,{dS:!0}),a.Z=!1);2===b?a.N++:a.N=0}}};
Y3a=function(a,b,c){VY(a,b)||a.oa.qa("ssap",{ilgsk:b.toFixed(),mep:c?"1":"0",tl:$Y(a)})};
$Y=function(a){return i3a(a.timeline,a.dg)};
K3a=function(a){a.oa.uF(Array.from(a.Vj.values()));a.Vj.clear()};
$3a=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.W=b;this.j=c;this.K=new Map;this.B=[];this.C=this.N=null;this.ma=NaN;this.G=this.D=this.Y=null;this.Z=new g.Qu(function(){Z3a(d,d.ma,d.Y||void 0)});
this.va=[];this.Ca=new g.Qu(function(){var e=d.va.pop();if(e){var f=e.yd,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.va.length&&g.Ru(d.Ca,4500))}});
this.events=new g.IK(this);c.getPlayerType();g.N(this,this.Z);g.N(this,this.Ca);g.N(this,this.events);this.events.T(this.api,g.VJ("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Ak)};
d4a=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 aZ(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.Rd();if(e<n)return aZ(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.Vc(),aZ(a,m,h,l),"";n=null;for(var p=g.u(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Bc&&e<q.ge)return aZ(a,"overlappingEnter",h,l),"";if(f<=q.ge&&f>q.Bc)return aZ(a,"overlappingReturn",h,l),"";if(f===q.Bc)return aZ(a,"outOfOrder",h,l),"";e===q.ge&&(n=q)}h="cs_childplayback_"+a4a++;l={ue:bZ(d,!0),Hm:Infinity,target:null};var r={yd:h,playerVars:b,playerType:c,durationMs:d,Bc:e,ge:f,Is:l};a.B=a.B.concat(r).sort(function(x,A){return x.Bc-A.Bc});
n?b4a(a,n,{ue:bZ(n.durationMs,!0),Hm:n.Is.Hm,target:r}):(b={ue:bZ(e,!1),Hm:e,target:r},a.K.set(b.ue,b),m.addCueRange(b.ue));b=!0;if(a.j===a.api.fd()&&(m=1E3*m.getCurrentTime(),m>=r.Bc&&m<r.ge)){var t=a.api.fd().getPlayerState(),v=m-r.Bc;cg(function(){c4a(a,r,v/1E3,{},t)});
b=!1}b&&(a.va.unshift(r),g.Ru(a.Ca,0));return h};
bZ=function(a,b){return new g.UJ(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
e4a=function(a,b,c,d){a.C=d;a.api.HH(a.j,c,b)};
f4a=function(a,b,c,d){a.C=d;d=b.yd;var e=b.playerVars,f=b.playerType;a.N=b;e&&(a.W.L("html5_enable_ssap_entity_id")&&(e.cached_load=!0),a.api.enqueueVideoByPlayerVars(e,f,c,d))};
b4a=function(a,b,c){var d=b.Is;b.Is=c;cZ(a,b)&&(c=a.api.fd(),d.ue===a.C&&dZ(a),c.removeCueRange(d.ue),c.addCueRange(b.Is.ue))};
dZ=function(a){a.N=null;a.C=null;a.api.dw()||a.api.clearQueue()};
g4a=function(a,b){cZ(a,b)||aZ(a,"childPlaybackIsNotPresenting");return b.ge===b.Bc+b.durationMs?(a=a.api.fd(),b.Bc+1E3*a.getCurrentTime()):b.ge};
h4a=function(a,b){var c=0;a=g.u(a.B);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Bc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{hn:d,CA:b-e};c=f-d.ge/1E3}return{hn:null,CA:b-c}};
Z3a=function(a,b,c){c=void 0===c?{}:c;var d=a.G||a.api.fd().getPlayerState();eZ(a,!0);b=isFinite(b)?b:a.j.Gq();var e=h4a(a,b);b=e.hn;e=e.CA;var f=b&&!cZ(a,b)||!b&&a.j!==a.api.fd(),h=1E3*e;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||dZ(a);b?c4a(a,b,e,c,d):i4a(a,e,c,d)};
i4a=function(a,b,c,d){var e=a.j,f=a.api.fd();e!==f&&a.api.kx();e.seekTo(b,Object.assign({},{Ed:"application_timelinemanager"},c));j4a(a,d)};
c4a=function(a,b,c,d,e){var f=cZ(a,b);if(!f){b.playerVars.prefer_gapless=!0;a.W.L("html5_enable_ssap_entity_id")&&(b.playerVars.cached_load=!0);var h=new g.XS(a.W,b.playerVars);h.yd=b.yd;a.api.Ft(h,b.playerType)}h=a.api.fd();f||h.addCueRange(b.Is.ue);h.seekTo(c,Object.assign({},{Ed:"application_timelinemanager"},d));j4a(a,e)};
j4a=function(a,b){a=a.api.fd();var c=a.getPlayerState();g.CL(b)&&!g.CL(c)?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()};
eZ=function(a,b){a.ma=NaN;a.Y=null;a.Z.stop();a.D&&b&&w3a(a.D);a.G=null;a.D=null};
cZ=function(a,b){a=a.api.fd();return!!a&&a.getVideoData().yd===b.yd};
k4a=function(a){var b=a.B.find(function(e){return cZ(a,e)});
if(b){var c=a.api.fd();dZ(a);var d=new g.wL(8);b=g4a(a,b)/1E3;i4a(a,b,{},d);c.qa("forceParentTransition",{childPlayback:1});a.j.qa("forceParentTransition",{parentPlayback:1})}};
m4a=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.u(a.K),h=f.next();!h.done;h=f.next()){var l=g.u(h.value);h=l.next().value;l=l.next().value;l.Hm>=d&&l.target&&l.target.ge<=e&&(a.j.removeCueRange(h),a.K.delete(h))}d=b;e=c;f=[];h=g.u(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Bc>=d&&l.ge<=e){var m=a;m.N===l&&dZ(m);cZ(m,l)&&m.api.kx()}else f.push(l);a.B=f;d=h4a(a,b/1E3);b=d.hn;d=d.CA;b&&(d*=1E3,l4a(a,b,d,b.ge===b.Bc+b.durationMs?b.Bc+d:b.ge));(b=h4a(a,c/1E3).hn)&&
aZ(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.yd+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Bc+" parentReturnTimeMs="+b.ge+"}.Child playbacks can only have duration updated not their start."))};
l4a=function(a,b,c,d){b.durationMs=c;b.ge=d;d={ue:bZ(c,!0),Hm:c,target:null};b4a(a,b,d);cZ(a,b)&&1E3*a.api.fd().getCurrentTime()>c&&(b=g4a(a,b)/1E3,c=a.api.fd().getPlayerState(),i4a(a,b,{},c))};
aZ=function(a,b,c,d){a.j.qa("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
o4a=function(a){a&&"web"!==a&&n4a.includes(a)};
hZ=function(a,b){g.I.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.Qu(function(){fZ(c);gZ(c)});
g.N(this,this.j)};
p4a=function(a){fZ(a);return a.data.map(function(b){return b.value})};
fZ=function(a){var b=(0,g.pD)();a.data.forEach(function(c){c.expire<b&&iZ(a,c,!0)});
a.data=g.ot(a.data,function(c){return!(c.expire<b)})};
iZ=function(a,b,c){c&&a.B&&a.B(b.value)};
gZ=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))};
jZ=function(){g.I.call(this);this.j=new hZ(5,null);g.N(this,this.j);this.B=new hZ(15,null);g.N(this,this.B)};
q4a=function(a,b){return b?!!a.j.get(b):!1};
r4a=function(a){g.I.call(this);var b=this;this.j=null;for(var c=[],d=0;100>=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.B=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.B.observe(a)};
s4a=function(a,b){a.dataset.version=b};
v4a=function(a){g.V.call(this,{I:"div",La:["html5-video-player"],X:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},V:[{I:"div",S:g.kZ.VIDEO_CONTAINER,X:{"data-layer":"0"}}]});var b=this;this.app=a;this.fz=this.Ga(g.kZ.VIDEO_CONTAINER);this.WA=new g.hs(0,0,0,0);this.Fc=null;this.hK=new g.hs(0,0,0,0);this.AO=this.OP=this.NP=NaN;this.AI=this.eK=this.bR=this.PV=!1;this.nN=NaN;this.oP=!1;this.xE=null;this.oQ=function(){b.element.focus({preventScroll:!0})};
this.LJ=function(){b.app.Va.ra("playerUnderlayVisibilityChange","visible");b.Fc.classList.remove(g.kZ.VIDEO_CONTAINER_TRANSITIONING);b.Fc.removeEventListener(fWa,b.LJ);b.Fc.removeEventListener("transitioncancel",b.LJ)};
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.U();e.transparentBackground&&this.qs("ytp-transparent");"0"===e.controlsType&&this.qs("ytp-hide-controls");g.Yu(this.element,"ytp-exp-bottom-control-flexbox");g.Yu(this.element,"ytp-modern-caption");e.L("enable_new_paid_product_placement")&&!g.mS(e)&&g.Yu(this.element,"ytp-exp-ppp-update");e.L("html5_enable_ssap")&&g.Yu(this.element,"ytp-ssap");e.L("enable_cairo_refresh_web")&&g.Yu(this.element,"ytp-cairo-refresh");s4a(this.element,t4a(a));this.d0=!1;this.oD=new g.Oe(NaN,NaN);u4a(this);this.T(a.Va,
"onMutedAutoplayChange",this.onMutedAutoplayChange)};
u4a=function(a){function b(){a.Fc&&lZ(a);mZ(a)!==a.oP&&a.resize()}
function c(h,l){a.gt(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.hK=new g.hs(0,0,0,0);a.WA=new g.hs(0,0,0,0)}
var f=a.app.Va;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);a.addOnDisposeCallback(function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
x4a=function(a){var b=g.bU(a.app),c=b=b?b.getVideoData():null;if(null==b?0:g.NT(b))c=a.app.Va.getVideoData();if(c){if(g.AT(c)||g.BT(c)||g.CT(c))return 16/9;if($Sa(c)&&c.C.j)return a=c.C.videoInfos[0].video,w4a(a.width,a.height)}return(a=a.Fc)?w4a(a.videoWidth,a.videoHeight):16/9};
y4a=function(a,b,c,d){var e=c,f=w4a(b.width,b.height);a.PV?e=c<f?Infinity:0:isNaN(a.AO)?isNaN(a.OP)||(e=a.OP):e=a.AO;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};
w4a=function(a,b){return 1>Math.abs(z4a*b-a)||1>Math.abs(z4a/a-b)?z4a:a/b};
mZ=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.bU(a.app);if(!b||b.En())return!1;a=a.app.Va.Xb();b=!g.JG(a,2)||b&&b.getVideoData().Y;var c=g.JG(a,1024);return a&&b&&!c&&!a.isCued()};
lZ=function(a){var b="3"===a.app.U().controlsType&&!a.AI&&mZ(a)&&!a.app.yA||!1;a.Fc.controls=b;a.Fc.tabIndex=b?0:-1;b?a.Fc.removeEventListener("focus",a.oQ):a.Fc.addEventListener("focus",a.oQ)};
A4a=function(a){var b=a.Qh(),c=1,d=!1,e=y4a(a,b,a.getVideoAspectRatio()),f=a.app.U(),h=f.L("enable_desktop_player_underlay"),l=Dpa(),m=g.lJ(f.experiments,"player_underlay_min_player_width");m=h&&a.bR&&a.getPlayerSize().width>m;if(mZ(a)){var n=x4a(a);var p=isNaN(n)||g.GD||IU&&g.kD||m;FD&&!g.Tc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.L("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.hs(p,0,b.width,b.height)):p=new g.hs(0,
0,b.width,b.height):(c=e.aspectRatio/n,p=new g.hs((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.kD&&(n=p.width-b.height*n,0<n&&(p.width+=n,p.height+=n)));g.bv(a.element,"ytp-fit-cover-video",1>Math.max(p.width-e.width,p.height-e.height));if(l||a.d0)a.Fc.style.display="";a.oP=!0}else{p=-b.height;FD?p*=window.devicePixelRatio:g.nS&&(p-=window.screen.height);p=new g.hs(0,p,b.width,b.height);if(l||a.d0)a.Fc.style.display="none";a.oP=!1}is(a.hK,p)||(a.hK=p,g.aS(f)?(a.Fc.style.setProperty("width",
p.width+"px","important"),a.Fc.style.setProperty("height",p.height+"px","important")):g.vs(a.Fc,p.getSize()),d=new g.Ke(p.left,p.top),g.qs(a.Fc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.hs((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);is(a.WA,b)||(a.WA=b,d=!0);g.ks(a.Fc,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.eK&&(m&&(a.Fc.addEventListener(fWa,a.LJ),a.Fc.addEventListener("transitioncancel",a.LJ),a.Fc.classList.add(g.kZ.VIDEO_CONTAINER_TRANSITIONING)),a.eK=m,a.app.Va.ra("playerUnderlayVisibilityChange",
a.eK?"transitioning":"hidden"));return d};
B4a=function(){this.csn=g.qF();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set};
C4a=function(a){if(a.csn!==g.qF())if("UNDEFINED_CSN"===a.csn)a.csn=g.qF();else{var b=g.qF(),c=g.pF();if(b&&c){a.csn=b;for(var d=g.u(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.PB("combine_ve_grafts")?kP(iP(),e,c):g.xB(g.DF)(void 0,b,c,e))}if(b)for(a=g.u(a.j),c=a.next();!c.done;c=a.next())(c=c.value.visualElement)&&c.isClientVe()&&g.HF(b,c)}};
D4a=function(a,b){this.Dd=a;this.policy=b;this.playbackRate=1};
E4a=function(a,b){var c=Math.min(2.5,OR(a.Dd));a=nZ(a);return b-c*a};
G4a=function(a,b,c,d,e){e=void 0===e?!1:e;if(a.policy.Ol)return Math.ceil(a.policy.Ol*b);a.policy.jk&&(d=Math.abs(d));d/=a.playbackRate;var f=1/PR(a.Dd);c=Math.max(.9*(d-3),OR(a.Dd)+2048*f)/f*.8/(b+c);c=Math.min(c,d);0<a.policy.Zf&&e&&(c=Math.max(c,a.policy.Zf));return F4a(a,c,b)};
F4a=function(a,b,c){return Math.ceil(Math.max(Math.max(a.policy.fn,a.policy.Dp*c),Math.min(Math.min(a.policy.Ea,31*c),Math.ceil(b*c))))||a.policy.fn};
H4a=function(a,b,c){c=G4a(a,b.j.info.Pb,c.j.info.Pb,0);var d=OR(a.Dd)+c/PR(a.Dd);return Math.max(d,d+a.policy.yG-c/b.j.info.Pb)};
nZ=function(a){return PR(a.Dd,!a.policy.rg,a.policy.pp)};
KU=function(a){return nZ(a)/a.playbackRate};
I4a=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};
oZ=function(a,b,c,d,e){this.Aa=a;this.manifest=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.j=0;this.G=!1;this.B=this.manifest.isManifestless&&!this.manifest.ye;this.D=null;this.C=0};
J4a=function(a,b,c){if(!a.policy.G){a=b.j.index;var d=b.B.Pa;a.Fn(d)||c&&c.Pa===d?(b.G=!a.Fn(d),b.ma=!a.Fn(d)):(b.G=!0,b.ma=!0)}};
L4a=function(a,b,c,d,e){if(!b.j.wg()){if(!(d=0===c||!!b.C.length&&b.C[0]instanceof pZ))a:{if(b.C.length&&(d=b.C[0],d instanceof qZ&&d.rh&&d.oi)){d=!0;break a}d=!1}d||a.policy.C||rZ(b);return c}var f=sZ(b,c);if(!isNaN(f))return f;if(a.Aa.jP(1E3*c))return c;e.RI||(b.Pk(),a.Aa.wK(!0));return d&&(a=dL(d.hf(),c),!isNaN(a))?(tZ(b,a+K4a),c):tZ(b,c)};
O4a=function(a,b,c,d){if(a.policy.G)!d||!a.B&&a.policy.Xa||g.ig(function(){uZ(a)});
else{if(a.eg()&&a.j){var e=M4a(a,b,c);if(-1!==e){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.ig(function(){a.Aa.qa("seekreason",{reason:"behindMinSq",tgt:e});N4a(a,e)});
return}}c?a.videoTrack.ma=!1:a.audioTrack.ma=!1;var f=a.policy.jy||!a.B;0<=sZ(a.videoTrack,a.j)&&0<=sZ(a.audioTrack,a.j)&&f?((a.videoTrack.G||a.audioTrack.G)&&a.Aa.qa("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.G=!1,a.audioTrack.G=!1):d&&g.ig(function(){if(a.B||!a.policy.Xa)uZ(a);else{var h=b.startTime,l=b.duration;if(!a.policy.G){var m=c?a.videoTrack.G:a.audioTrack.G,n=-1!==a.videoTrack.K&&-1!==a.audioTrack.K,p=a.j>=h&&a.j<h+l+.1,q=!a.videoTrack.ma&&!a.audioTrack.ma,r=a.policy.ly&&
sZ(a.videoTrack,h)&&sZ(a.audioTrack,h);m&&n&&q&&(p||r?((c?a.videoTrack:a.audioTrack).G=!1,a.videoTrack.G||a.audioTrack.G||(a.Aa.qa("iterativeSeeking",{status:"done",target:h,originalTime:h+a.Aa.Vc(),count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.Aa.qa("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j,{})):(a.Aa.qa("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.G=
!1,a.audioTrack.G=!1,vZ(a.Aa,h+.1,{Qv:!0,Ed:"chunkSelectorSynchronizeMedia",tq:!0})))}}})}};
M4a=function(a,b,c){if(!a.eg())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.Fi(a.j);return(c.Fn(a.manifest.qf)||b.Pa===a.manifest.qf)&&d<a.manifest.qf?a.manifest.Rd():-1};
N4a=function(a,b){a.B&&-1!==a.videoTrack.K&&-1!==a.audioTrack.K&&(a.B=!1,a.j=b,vZ(a.Aa,b+.1,{Qv:!0,Ed:"chunkSelectorSynchronize",tq:!0}))};
uZ=function(a){var b=-1!==a.videoTrack.K,c=-1!==a.audioTrack.K;if(!b||!c)if(b=!b&&wZ(a.videoTrack),c=!c&&wZ(a.audioTrack),b||c){c=b?a.videoTrack:a.audioTrack;b=b?a.audioTrack:a.videoTrack;c.K=wZ(c).info.Pa;if(a.policy.G){var d;b.K=(null==(d=wZ(b))?void 0:d.info.Pa)||b.K}if(-1!==b.K){var e=Math.max(b.j.index.getStartTime(b.K),c.j.index.getStartTime(c.K));fR(a.manifest)&&432E3<Math.abs(e-fR(a.manifest))&&XPa(a.manifest);a.C&&(e=a.C,a.C=0);g.ig(function(){a.policy.G||N4a(a,e)});
a.Aa.qa("initManifestlessSync",{st:e,ost:e+a.Aa.Vc(),a:a.audioTrack.K,v:a.videoTrack.K});a.D&&(a.D.resolve(e+.1),a.D=null);a.policy.G&&N4a(a,e)}}};
yZ=function(a,b){var c=this;this.Ib=a;this.requestNumber=++P4a;this.j=this.now();this.Y=this.ib=NaN;this.Z=this.j;this.B=this.Vb=this.K=0;this.D=this.j;this.Ra=this.Ia=this.Wa=this.Jc=this.Lc=this.va=this.Na=this.C=0;this.N=void 0;this.Xa=0;this.Ca=this.isActive=!1;this.Gb=this.tb=0;this.Cd={Cnb:function(){return c.kp}};
this.Dd=b.Dd;this.snapshot=JQa(this.Dd);this.policy=this.Dd.Na;this.Gs=!!b.Gs;this.ix=b.ix;b.GN&&(xZ||(xZ=aIa("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.")),this.N=new Uint8Array(2048));var d;this.kp=null!=(d=b.kp)?d:!1;FQa(this.Dd)};
Q4a=function(a){a.Wa=Math.max(a.Wa,a.K-a.Lc);a.Ia=Math.max(a.Ia,a.Z-a.Jc);a.va=0};
zZ=function(a,b,c){GQa(a.Dd,b);if(a.N){if(a.Xa+20>a.N.length){var d=new Uint8Array(2*a.N.length);d.set(a.N);a.N=d}R4a(a,Math.ceil(b)-Math.ceil(a.Z));R4a(a,Math.max(0,Math.ceil(c/1024)-Math.ceil(a.K/1024)))}if(a.policy.j){d=b-a.Z;var e=c-a.K;a.Vb=e;a.Ra=Math.max(a.Ra,e/(d+.01)*1E3)}a.Z=b;a.K=c;a.va&&c>a.va&&Q4a(a)};
R4a=function(a,b){for(;31<b;)a.N[a.Xa++]=xZ[(b&31)+32],b>>=5;a.N[a.Xa++]=xZ[b]};
S4a=function(a){return a.N?g.lO(a.N.subarray(0,a.Xa)):""};
T4a=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
AZ=function(a){a.isActive&&(a.isActive=!1)};
BZ=function(a,b){yZ.call(this,a,b);this.ub=this.Ob=!1;this.ma=this.G=Infinity;this.Ea=NaN;this.Nb=!1;this.fb=NaN;this.jc=0;this.kD=b.kD||1;this.OQ=b.OQ||this.kD;this.Zk=b.Zk;this.Pa=b.Pa;this.ih=b.ih;U4a(this);this.pR(this.j);this.Ma=(this.fb-this.j)/1E3};
CZ=function(a,b,c){a.Gs||(b=Math.max(b,.01),KR(a.Dd,b,c,b))};
V4a=function(a,b){return b?a.MI()?!0:2048<=b:!1};
W4a=function(a){return(a.D-a.j)/1E3};
U4a=function(a){a.Ea=a.j+1E3*a.snapshot.delay;a.Nb=!1};
Z4a=function(a,b){if(a.Zk&&void 0!==a.Pa&&void 0!==a.ih){var c=Math,d=c.min,e=a.G;var f=a.Zk;var h=a.j;if(X4a(f,a.Pa))f=b;else{var l=0;f.nj&&(l=.2);f=h+1E3*(f.Nj+l)}a.G=d.call(c,e,f);c=Math;d=c.min;e=a.ma;f=a.Zk;h=a.j;l=Y4a(f,a.Pa,a.ih);2!==l&&(b=l?b:h+1E3*f.Nj,f.nj&&(b+=1E3*f.Nj));a.ma=d.call(c,e,b);a.G<=a.j?U4a(a):(a.Ea=a.G,a.Nb=!0)}};
$4a=function(a,b){if(b+1<=a.totalLength){var c=gO(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=gO(a,b++);else if(2===c)c=gO(a,b++),a=gO(a,b++),a=(c&63)+64*a;else if(3===c){c=gO(a,b++);var d=gO(a,b++);a=gO(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=gO(a,b++);d=gO(a,b++);var e=gO(a,b++);a=gO(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),VHa(a,c,4)?a=WHa(a).getUint32(c-a.C,!0):(d=gO(a,c+2)+256*gO(a,c+3),a=gO(a,c)+256*(gO(a,c+
1)+256*d)),b+=5;return[a,b]};
DZ=function(a){this.Ib=a;this.j=new cO};
EZ=function(a,b){this.info=a;this.callback=b;this.state=1;this.RA=this.MO=!1;this.og=null};
a5a=function(a){return g.Fr(a.info.eb,function(b){return 3===b.type})};
b5a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Ib=c;this.status=0;this.j=new cO;this.B=0;this.isDisposed=this.G=this.C=!1;this.D=0;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.JA()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.j.append(f);e.B+=f.length;f=(0,g.pD)();f-e.D>e.policy.j&&(e.Ib.Qt(f,e.B),e.D=f)},function(){},d.body||null)};
c5a=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
cSa=function(a,b){var c,d,e;return g.H(function(f){if(1==f.j){if(!b)return f.return(b);c=FZ.fu("woe");d=new g.YN(a.B);return g.z(f,d.encrypt(b,a.j),2)}e=f.B;FZ.Js(c,Math.ceil(b.byteLength/16));return f.return(e)})};
iSa=function(a,b){var c,d,e;return g.H(function(f){if(1==f.j){if(!b)return f.return(b);c=FZ.fu("wod");d=new g.YN(a.B);return g.z(f,d.decrypt(b,a.j),2)}e=f.B;FZ.Js(c,Math.ceil(b.byteLength/16));return f.return(e)})};
d5a=function(a,b){var c=this;this.j=a;this.Ib=b;this.loaded=this.status=0;this.error="";a=xQ(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new cO;this.HF().then(function(){c.Ib.qr()},function(d){c.error=""+d||"unknown_err";
c.Ib.qr()})};
f5a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Ib=c;this.Y=d;this.status=0;this.response=void 0;this.Z=this.B=0;this.K=this.N=!1;this.errorMessage="";this.va=function(f){if(f)if(e.status=f.status,f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.C=f.body.getReader(),e.isDisposed()?e.C.cancel().catch(function(){}):(e.G=f.headers,e.Ib.Sw(),e5a(e));
else e.onDone();else e.onError(Error("null_response"))};
this.ma=function(f){var h=(0,g.pD)();e.isDisposed()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),e5a(e),f=(0,g.pD)(),f-e.Z>e.policy.j&&(e.Z=f,e.Ib.Qt(h,e.B))))};
this.onError=function(f){e.errorMessage=String(f);e.N=!0;e.onDone()};
this.j=new cO;this.D=window.AbortController?new AbortController:void 0;this.start(a)};
e5a=function(a){a.C.read().then(a.ma,a.onError).then(void 0,Kqa)};
g5a=function(a,b,c){var d=this;c=void 0===c?{}:c;this.Ib=b;this.B=this.status=0;this.isDisposed=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.u(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.JA(f)};
a=MO(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",MO(function(f){d.hg(f)}),!1)};
h5a=function(a,b,c,d,e){if(MP(a.base))return new d5a(a,c);a=a.Ue();return d?cNa()?new b5a(a,b,c,e):new f5a(a,b,c,e):new g5a(a,c,e)};
GZ=function(a,b,c,d,e,f,h,l,m){m=void 0===m?!1:m;g.I.call(this);this.Ib=a;this.policy=b;this.ke=c;this.resource=d;this.timing=e;this.logger=f;this.D=h;this.Tw=l;this.G=m;this.lastError=null;this.j=0;this.C=!1;this.B=new g.Qu(this.Yba,this.policy.Wi,this)};
i5a=function(a){a.Ib.Kn()||(a.resource.Z=(0,g.pD)(),a=HZ(a),a.B=(0,g.pD)(),a.started+=1)};
j5a=function(a,b,c){a.timing.ZP((0,g.pD)(),b,c);if(!a.Ib.Kn()&&(b=a.resource,b.C=0,b.G=0,b.K=0,GOa(HZ(a)),null!=(b=a.Tw)&&(a=a.ke.base,!((0,g.pD)()<b.K+3E5||MP(a))&&(c=LP(a))&&$1a(c)&&b.B===kY(c)))){var d;zNa(a)&&(d=LP(NP(a)));g.IC("yt-player-bandaid-host",{primary:c,secondary:d},864E3);b.K=(0,g.pD)();X1a(b,{primary:c,secondary:d})}};
IZ=function(a){if("net.timeout"===a.lastError)a.timing.uJ((0,g.pD)());else{var b=a.timing;zZ(b,(0,g.pD)(),b.K)}if(!a.Ib.Kn())if("net.nocontent"===a.lastError)++a.resource.K;else{if((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!MP(a.ke.base)){var c=HZ(a);c.timedOut+=1}else c=HZ(a),c.j+=1;if(!a.timing.Ca){c=a.resource;var d=a.ke,e=a.policy,f=a.D;++c.C;b&&++c.G;LP(d.base).startsWith("redirector.")&&(c.j=c.B.clone(),delete c.D,e.qC&&delete f[LP(c.j)])}}a.Ib.Hc(5)};
JZ=function(a,b,c,d){return 400<=b?(a.lastError="net.badstatus",!0):c||void 0!==d&&d?!1:(a.lastError=204===b?"net.nocontent":"net.connect",!0)};
HZ=function(a){return KQ(a.D,LP(a.ke.base))};
k5a=function(a){var b=a.timing.hs();b.shost=LP(a.ke.base);return b};
qZ=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.cF?[]:h.cF;var l=void 0===h.cG?!1:h.cG,m=void 0===h.Xu?0:h.Xu,n=void 0===h.poToken?"":h.poToken,p=void 0===h.Tw?void 0:h.Tw,q=void 0===h.nF?"":h.nF,r=void 0===h.rh?0:h.rh,t=void 0===h.oi?new Uint8Array(0):h.oi;h=void 0===h.RK?!1:h.RK;EZ.call(this,b,e);var v=this;this.policy=a;this.logger=new g.uU("dash/request");this.Zy=this.Ig=0;this.R_=!1;this.Qq=this.Ep=null;this.KX=!1;this.oi=this.rh=null;this.cL=this.P0=!1;this.dH=null;this.vp=0;this.Cd=
{Hc:function(A){v.Hc(A)},
knb:function(){return v.og},
Aob:function(A){v.og=A},
zob:function(A){v.Ig=A},
yob:function(A){v.Jd.lastError=A},
zO:function(){return v.xhr}};
this.timing=new BZ(this,c);this.cG=l;this.rh=r;this.oi=t;this.ke=g.BOa(this.info,this.policy,d);this.ke.set("rn",this.Kq().toString());this.ke.set("rbuf",(1E3*m).toFixed().toString());this.cG&&this.ke.set("smb","1");this.policy.Ox&&n&&this.ke.set("pot",n);q&&this.ke.set("bbs",q);this.policy.useUmp&&!MP(this.ke.base)&&(this.El=new DZ(this),this.ke.set("ump","1"),this.ke.set("srfvp","1"));if(b=this.policy.xu?this.policy.tC&&!isNaN(this.info.ih)&&this.info.ih>this.policy.QA?!1:!0:!1)c=null,this.policy.cA&&
this.policy.Yj?c=[1]:h&&(c=[]),null!=c&&(this.policy.pC&&c.push(2),this.ke.set("defsel",c.join(",")));this.Jd=new GZ(this,this.policy,this.ke,this.info.resource,this.timing,this.logger,d,p);this.cF=f||null;this.RA=l5a(this);i5a(this.Jd);d=void 0;if(this.policy.EC||this.El||this.policy.Ca)d={method:"POST"},f=(0,g.KZ)([120,0]),p={},this.policy.zr&&this.oi&&(p.videoPlaybackUstreamerConfig=this.oi),this.policy.Ca&&(c=this.info.D)&&Object.assign(p,c),0<Object.keys(p).length?d.body=g.GO(p,g.VUa):d.body=
f;if(this.rh&&this.oi){this.ke.set("iwts","1");d={method:"POST"};f={oca:1E3*this.rh};var x;p=null==(x=this.info.D)?void 0:x.ox;x=g.GO({zs:f,ox:p||void 0,videoPlaybackUstreamerConfig:this.oi},g.VUa);d.body=x}if(this.Kn()||a.Eu&&5===this.info.eb[0].type)d=void 0;try{this.xhr=h5a(this.ke,this.policy.N,this.timing,b,d),this.Jd.B.start(),this.policy.XB&&T4a(this.timing,this.Ue()),this.logger.debug(function(){return"Sent, itag="+v.ke.get("itag")+" seg="+v.info.eb[0].Pa+" range="+v.ke.get("range")+" time="+
Math.round(v.info.eb[0].C)+"-"+Math.round(g.Bb(v.info.eb).D)+" rtp="+(v.timing.jI()-Date.now()).toFixed(0)}),g.ig(function(){})}catch(A){m5a(this,A,!0)}};
l5a=function(a){if(!(IQ(a.info)&&a.info.kp()&&a.policy.Yc&&a.cF)||2<=a.info.resource.C||0<qP()||!$Ma())return!1;var b=a.ke.get("aitags");if(!b)return!1;b=Ze(b).split(",");for(var c=[],d=g.u(a.cF),e=d.next();!e.done;e=d.next())e=e.value,g.Fb(b,e)&&c.push(e);if(!c.length)return!1;a.ke.set("altitags",g.Ye(c.join(",")));return!0};
m5a=function(a,b,c){c=void 0===c?!1:c;g.tF(b);a.Jd.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.ig(function(){IZ(a.Jd)}):IZ(a.Jd)};
n5a=function(a){if(a.policy.qy)return!1;var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.xD();c=!c||c<=a.policy.Um;return(!a.xhr.BB()||!b||-1!==b.indexOf("text/plain"))&&c};
o5a=function(a,b){var c=jO(b);return QJ(c)?(a.logger.debug(function(){return"Redirecting to "+c}),c):""};
p5a=function(a,b){a.timing.Ca=!0;if(a.policy.Gb){var c;null==(c=a.CE)||c.stop()}mY(a.og,b,!1)};
q5a=function(a,b){a.info=b;if(a.og){var c=a.og;b=b.eb;(b.length!==c.eb.length||b.length<c.Df.length)&&mVa("dash/request",260511119,""+b.length,""+c.eb.length,""+c.Df.length);c.eb=b;for(var d=b[0].range,e=new cO,f=0;f<c.Df.length;f++)dO(e,c.Df[f].j);for(f=0;f<c.Df.length;f++){c.Df[f].info=b[f];var h=b[f].range;c.Df[f].j=eO(e,h.start-d.start,h.length)}}a.RA=!1};
r5a=function(a){a.vp&&(a.xhr.status=a.vp,a.Ig=a.vp)};
LZ=function(a,b){yZ.call(this,a,b);this.Ea=!0;this.ma=!1;this.Ma=this.G=0};
t5a=function(a){return{C0:xO(a,1,s5a),Gca:uO(a,2)}};
u5a=function(a){return{dJ:rO(a,1)}};
s5a=function(a){return{clipId:uO(a,1),hq:vO(a,2,v5a),YP:vO(a,3,u5a)}};
v5a=function(a){return{D1:uO(a,1),d_:rO(a,2),N8:rO(a,3),FY:rO(a,4),GY:rO(a,5),e_:rO(a,6)}};
w5a=function(a){return{type:rO(a,1),scope:rO(a,2),value:tO(a,3),sendByDefault:sO(a,4)}};
x5a=function(a){vU.call(this,"sabr");this.Ib=a};
MZ=function(a,b,c,d,e,f,h){g.I.call(this);this.policy=a;this.info=b;this.manifest=c;this.Ib=e;this.logger=new g.uU("sabr");this.El=new DZ(this);this.jca=new x5a(this);this.gg=new nY(this);this.state=1;this.J_=!1;this.rR=0;this.clipId="";this.policy.Fy?this.Oe=new LZ(this,f):this.Oe=new BZ(this,f);e=this.policy;e=AOa(b.resource,y5a(b,e,d),e);b.cw()&&e.set("probe","1");this.ke=e;this.ke.set("rn",""+this.Kq());m2a(this.gg,c,a);this.Jd=new GZ(this,this.policy,this.ke,b.resource,this.Oe,this.logger,d,
h,this.policy.enableServerDrivenRequestCancellation);i5a(this.Jd);var l;if(null==(l=this.policy)?0:l.Kd)g.N(this,this.gg),g.N(this,this.Jd);a={method:"POST"};a.body=b.C;try{this.xhr=h5a(this.ke,this.policy.N,this.Oe,zR,a),this.Jd.B.start()}catch(m){g.uF(m)}};
z5a=function(a,b){var c=-1,d=-1,e=-1,f;if(null==(f=a.qR)?0:f.items)for(a=g.u(a.qR.items),f=a.next();!f.done;f=a.next())f=f.value,b<f.PP||f.PP<c||(c=f.PP,d=f.oJ,e=f.minReadaheadMs);return{F8:c,oJ:d,QP:e}};
A5a=function(a){this.j=a;this.Y=this.Na=this.N=this.Ea=this.D=this.G=this.K=this.Ia=this.Z=this.Ma=this.va=this.Ca=this.ma=0;this.ticks={}};
NZ=function(a){a.ma||(a.ma=(0,g.pD)(),HL("mb_s",a.ma,a.j))};
B5a=function(a){a.Ca||(a.Ca=(0,g.pD)(),HL("ovfs_rp",a.Ca,a.j))};
C5a=function(a){a.va||(a.va=(0,g.pD)(),HL("oafs_rp",a.va,a.j))};
D5a=function(a){a.G||(a.G=(0,g.pD)(),HL("vda",a.G,a.j),a.D&&ZC(g.XC(),4))};
E5a=function(a){a.D||(a.D=(0,g.pD)(),HL("ada",a.D,a.j),a.G&&ZC(g.XC(),4))};
F5a=function(a){a.Ea||(a.Ea=(0,g.pD)(),HL("vis_a",a.Ea,a.j))};
G5a=function(a){a.N||(a.N=(0,g.pD)(),HL("ais_a",a.N,a.j))};
H5a=function(a){a.Na||(a.Na=(0,g.pD)(),HL("vrb_f",a.Na,a.j))};
I5a=function(a){a.Y||(a.Y=(0,g.pD)(),HL("arb_f",a.Y,a.j))};
J5a=function(a,b,c){var d=b instanceof MZ&&!a.C&&!a.B,e=!a.C&&(null==c?void 0:c.info.video);c=!a.B&&(null==c?void 0:c.info.audio);3===b.state?((e||d)&&a.tick("vrr"),(c||d)&&a.tick("arr")):4===b.state?e?(a.C=b.Ue(),ZC(g.XC(),4)):c&&(a.B=b.Ue()):b instanceof qZ&&b.Yv()&&e&&ZC(g.XC(),4)};
K5a=function(a){return!!a.B&&!!a.C};
L5a=function(a,b,c,d,e,f){g.NF.call(this);var h=this;this.Aa=a;this.manifest=b;this.policy=c;this.Y=d;this.Ca=e;this.ma=this.j=null;this.D=this.G=NaN;this.N=0;this.Z=NaN;this.K=null;this.va=new Map;this.C=NaN;this.Cd={onb:function(){return h.B}};
this.B=f?1:0};
OZ=function(a,b,c){b.startSecs+=isNaN(a.N)?0:a.N;a=a.manifest;a.ma.push(b);a.ra("cuepointsadded",c)};
N5a=function(a,b,c){if(0!==a.B&&c&&b.eb[0].Hg()){var d=b.eb[0].Pa,e;d!==(null==(e=a.j)?void 0:e.Pa)||1===a.B||HQ(b)||"predictStart"===a.j.dh.event||a.qa("sdai",{undecevt:1,sq:d,evt:a.j.dh.event});d>a.D&&(a.D=NaN,a.G=NaN);if(a.j&&a.j.Pa===d){e=a.j;var f=e.dh,h=c.Mt(f);d=b.eb[0].Pa;a.qa("sdai",{onqevt:f.event,sq:d,gab:h});if(h)"predictStart"!==f.event?e.UD?PZ(a,4,"cue"):(a.D=b.eb[0].Pa,a.G=b.eb[0].C,a.qa("sdai",{joinad:a.B,sg:a.D,st:a.G.toFixed(3)}),a.Z=Date.now(),PZ(a,2,"join"),c.qI(e.dh)):(a.C=b.eb[0].Pa+
Math.max(Math.ceil(-f.j/5E3),1),a.qa("sdai",{onpred:b.eb[0].Pa,est:a.C}),a.Z=Date.now(),PZ(a,3,"predict"),c.qI(e.dh));else if(1===a.B){b=b.eb[0].C;var l;(null==(l=a.K)?0:l.DN(b))?(M5a(a.Aa,b,b,d),PZ(a,4,"sk2had")):PZ(a,5,"nogab")}else"predictStart"===f.event&&0<a.C&&(l=b.eb[0].Pa+Math.max(Math.ceil(-f.j/5E3),1),a.C!==l&&(a.qa("sdai",{updateSt:l,old:a.C}),a.C=l))}else 1===a.B&&PZ(a,5,"noad")}};
O5a=function(a,b,c){return(0>c||c===a.D)&&!isNaN(a.G)?a.G:b};
P5a=function(a,b){if(a.j){var c=a.j.dh.yh-(b.startTime+a.N-a.j.dh.startSecs);0>=c||(c=new XP(a.j.dh.startSecs-(isNaN(a.N)?0:a.N),c,a.j.dh.context,a.j.dh.identifier,"stop",a.j.dh.j+1E3*b.duration),a.qa("cuepointdiscontinuity",{segNum:b.Pa}),OZ(a,c,b.Pa))}};
PZ=function(a,b,c){a.B!==b&&(a.qa("sdai",{setsst:b,old:a.B,r:c}),a.B=b)};
QZ=function(a,b,c,d){(void 0===d?0:d)?PZ(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.B&&PZ(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
Q5a=function(a){a=void 0===a?{}:a;var b=void 0===a.Yj?!1:a.Yj,c=void 0===a.xu?!1:a.xu;return(void 0===a.nj?0:a.nj)?c?3:2:b?-1:1};
R5a=function(a,b,c,d){var e=this;this.D=a;this.manifest=b;this.policy=c;this.logger=d;this.PA=[];this.Ld=[];this.j=-1;this.dc=null;this.timestampOffset=0;this.pd=null;this.Cd={kO:function(f){return e.kO(f)}};
this.C=b.yc?0:1};
V5a=function(a,b,c,d,e){if(!e.info.mf){if(0===c.length)c.push(e);else{var f;(a=null==(f=c.pop())?void 0:XQ(f,e))?c.push(a):c.push(e)}return d}var h;(c=null==(h=c.pop())?void 0:XQ(h,e))||(c=e);h=a.kO(c);e=h.formatId;c=h.Pa;d=h.startTimeMs;f=h.clipId;h=h.t6;var l=0;a.policy.j&&a.pd&&(l=UY(a.pd,f));d+=l;e={formatId:e,startTimeMs:d,durationMs:h,Ao:c,Zi:c,Ww:d,Vw:h};c=S5a(b,e.startTimeMs);(d=0<=c?b[c]:null)&&T5a(a,d,e)?e=d:(c+=1,b.splice(c,0,e));d=0;for(f=c+1;f<b.length;f++){h=a;l=b[f];var m=e,n=l.startTimeMs+
l.durationMs,p=m.startTimeMs+m.durationMs;p>=n+100?h=!0:p+100<l.startTimeMs?h=!1:U5a(h,l.formatId,m.formatId)?(m.durationMs=n-m.startTimeMs,m.Vw=m.durationMs,m.Zi=l.Zi,h=!0):(l.startTimeMs=p,l.Ww=p,l.Ao=m.Zi+1,h=!1);if(!h)break;d++}d&&b.splice(c+1,d);return c};
S5a=function(a,b){a=g.Tb(a,{startTimeMs:b},function(c,d){return c.startTimeMs-d.startTimeMs});
return 0<=a?a:-a-2};
W5a=function(a){if(a.dc){var b=a.dc.hf();if(0!==b.length){for(var c=[],d=0,e=0;d<b.length&&e<a.Ld.length;){var f=b.start(d),h=b.end(d),l=a.Ld[e].startTimeMs/1E3,m=(a.Ld[e].startTimeMs+a.Ld[e].durationMs)/1E3;if(l<=h&&m>=f){var n=0;if(a.pd){var p=WY(a.pd,1E3*l);p&&(n=p.al/1E3)}p=Object.assign({},a.Ld[e]);var q=a.Ld[e].formatId;q=a.manifest.N.get(q.itag+";"+(q.lmt||0)+";"+q.xtags);f=Math.max(l,f);l=q.index.Fi(f+.1-n);var r=q.index.getStartTime(l)+n,t=l+ +(.1<Math.abs(r-f)),v=t+a.C;t=1E3*(q.index.getStartTime(t)+
n);a.policy.Jx&&.1<Math.abs(f-r)&&c.push({formatId:p.formatId,startTimeMs:1E3*r,durationMs:t-1E3*r,Ao:l,Zi:l,Ww:1E3*r,Vw:t-1E3*r,lba:{Fh:1E3*f,dD:t-1E3*f,Lr:1E3}});p.Ao=v;p.startTimeMs=t;p.Ww=p.startTimeMs;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.Fi(f-.1-n);r=a.policy;(r.j||r.Ha.L("html5_sabr_include_tail_media_chunk"))&&q.index.Fn(l+1)&&q.index.VH(l+1)+n<=f&&(l+=1);r=q.index.VH(l)+n;l-=+(.1<Math.abs(r-f));f=l+a.C;n=1E3*(q.index.VH(l)+
n);p.Zi=f;p.durationMs=n-p.startTimeMs;p.Vw=p.durationMs;p.Ao<=p.Zi&&c.push(p)}m<h?e+=1:d+=1}a.Ld=c}}};
X5a=function(a){var b=[],c=[].concat(g.pa(a.PA));a.Ld.forEach(function(h){b.push(Object.assign({},h))});
for(var d=a.j,e=g.u(a.D.fX()),f=e.next();!f.done;f=e.next())d=V5a(a,b,c,d,f.value);b.forEach(function(h){h.startTimeMs&&(h.startTimeMs+=1E3*a.timestampOffset,h.Ww&&(h.Ww+=1E3*a.timestampOffset))});
return{Ld:b,PA:c}};
T5a=function(a,b,c){var d=b.startTimeMs+b.durationMs,e=c.startTimeMs+c.durationMs;if(100<c.startTimeMs-d)return!1;if(U5a(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.Vw=b.durationMs,b.Zi=Math.max(b.Zi,c.Zi),!0;if(100>=Math.abs(b.startTimeMs-c.startTimeMs)){if(b.durationMs>c.durationMs+100){a=b.formatId;var f=b.Ao,h=b.Zi;b.formatId=c.formatId;b.durationMs=c.durationMs;b.Ao=c.Ao;b.Vw=c.durationMs;b.Zi=c.Zi;c.formatId=a;c.startTimeMs=e;c.Ww=e;c.durationMs=d-e;c.Vw=c.durationMs;
c.Ao=f;c.Zi=h;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs,b.Vw=b.durationMs);return!1};
U5a=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.yc||b.lmt===c.lmt};
Y5a=function(a,b,c){if(a.logger&&a.policy.Nm){for(var d=[],e=0;e<b.length;e++){var f=b[e],h=void 0;d.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+(f.startTimeMs+"_e."+(f.startTimeMs+f.durationMs)+"_d."+f.durationMs)+("_sn."+f.Ao)+("_en."+f.Zi))}a.logger({p:""+c,br:d.join(";")})}};
Z5a=function(a){a.Ld=[];a.PA=[];a.j=-1;a.B=void 0};
a6a=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Ia=c;this.D=this.B=0;this.Pf=null;this.ma=new Set;this.Y=[];this.indexRange=this.initRange=null;this.Z=new tL;this.va=this.Ca=!1;this.Cd={enb:function(){return d.C},
Cmb:function(){return d.chunkSize},
ymb:function(){return d.N},
xmb:function(){return d.K}};
(b=$5a(this))?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.N=b.ck,this.K=b.civ):(this.chunkSize=a.wy,this.C=0,this.N=g.GE(16),this.K=g.GE(16));this.G=new Uint8Array(this.chunkSize);this.N&&this.K&&(this.crypto=new c5a(this.N,this.K))};
$5a=function(a){if(a.policy.Ee&&a.policy.Ay)for(var b=g.u(a.policy.Ee),c=b.next(),d={};!c.done;d={gN:void 0,wN:void 0},c=b.next())if(c=g.CB(c.value),d.gN=+c.clen,d.wN=+c.csz,0<d.gN&&0<d.wN&&a.policy.D===c.docid&&a.j.info.id===c.fmtid&&a.j.info.lastModified===+c.lmt)return a={},a.clen=d.gN,a.csz=d.wN,a.ck=c.ck,a.civ=c.civ,a};
RZ=function(a){return!!a.Pf&&BQ(a.Pf)};
f6a=function(a,b){if(!RZ(a)&&!a.isDisposed()){if(!(a.Ca||(a.Ca=!0,0<a.C))){var c=b6a(a);c=gSa(a.policy.D,a.j.info,SZ(a),c,a.policy.Na);c6a(a,c)}if(1===b.info.type){if(a.Pf){TZ(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=yQ(0,b.j.getLength())}else if(2===b.info.type)a.Pf&&1===a.Pf.type||TZ(a,Error("Woffle: Index before init")),a.indexRange=yQ(a.initRange.end+1,b.j.getLength());else if(3===b.info.type){if(!a.Pf){TZ(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(3===a.Pf.type&&!EQ(a.Pf,b.info)&&(a.Y=[],b.info.Pa!==pOa(a.Pf)||0!==b.info.Zb))return;if(b.info.mf){c=g.u(a.Y);for(var d=c.next();!d.done;d=c.next())d6a(a,d.value);a.Y=[]}else{a.Y.push(b);a.Pf=b.info;return}}else{TZ(a,Error("Woffle: Unexpected slice type"));return}a.Pf=b.info;d6a(a,b);e6a(a)}};
d6a=function(a,b){var c=0,d=fO(b.j);if(a.D<a.C){c=a.C*a.chunkSize;var e,f=((null==(e=b.info.range)?void 0:e.start)||0)+b.info.Zb;c-=f;if(c>=d.length)return;if(0>c)throw Error("Missing data");a.D=a.C;a.B=0}for(e={};c<d.length;e={mL:void 0})if(e.mL=Math.min(d.length-c,a.G.byteLength-a.B),f=new Uint8Array(d.buffer,d.byteOffset+c,e.mL),a.G.set(f,a.B),a.B+=e.mL,c+=e.mL,a.B===a.G.length){if(b.info===a.Pf&&RZ(a)&&c===d.length)break;e=b6a(a);e=gSa(a.policy.D,a.j.info,SZ(a),e,a.policy.Na,a.D,a.G,a.crypto);
a.ma.add(e);c6a(a,e);a.isDisposed()||(e=b6a(a),a.Ia(SZ(a),void 0!==e?(e.downloadedEndTime||0)*e.averageByteRate:e.maxKnownEndTime*e.averageByteRate,e.maxKnownEndTime*e.averageByteRate));a.G=new Uint8Array(a.chunkSize);a.B=0;a.D+=1}};
e6a=function(a){if(RZ(a))if(a.Pf&&a.indexRange)if(a.B){var b=new Uint8Array(a.G.buffer,0,a.B),c=g6a(a),d=a.policy.D;Promise.all(a.ma).then(function(){var e=gSa(d,a.Pf.j.info,SZ(a,!0),c,a.policy.Na,a.D,b,a.crypto);c6a(a,e,!0)})}else TZ(a,new UZ("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else TZ(a,new UZ("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
b6a=function(a){return{downloadedEndTime:Math.round(a.Pf?a.Pf.D:0),maxKnownEndTime:Math.round(a.j.index.Us()),averageByteRate:Math.round(a.j.info.Vu)}};
g6a=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.Us()),averageByteRate:Math.round(a.j.info.Vu)}};
SZ=function(a,b){void 0===b||!b||a.indexRange&&a.initRange&&a.Pf||TZ(a,new UZ("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));b={lmt:a.j.info.lastModified,docid:a.policy.D,fmtid:a.j.info.id,type:a.j.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.D*a.chunkSize+a.B};a.crypto&&(b.ck=a.N,b.civ=a.K);var c="local://localhost/videoplayback?"+AB(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:8*a.j.info.Pb,lastModified:String(a.j.info.lastModified),initRange:null==
(d=a.initRange)?void 0:lOa(d),indexRange:null==(e=a.indexRange)?void 0:lOa(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};
c6a=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.ma.delete(b);(c||4===d)&&a.Z.resolve(d)},function(d){a.Z.reject(d)})};
TZ=function(a,b){4!==g.LS(a.policy.D)&&(g.MS(a.policy.D,4),g.uF(b),a.Z.reject(new UZ(b.message)))};
UZ=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};
h6a=function(a){a=g.hQ(a,1886614376);for(var b=g.u(a),c=b.next();!c.done;c=b.next());return g.Er(a,function(d){return JNa(d)})};
i6a=function(a){var b=Gr(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};
j6a=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.B=c;this.D=d;this.C=e;this.Ky=f};
VZ=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.C=[];this.Ve=!1;this.B=null;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.Ve=!0};
l6a=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=k6a(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=vi(yj(n,7)),null==b||a.Ve||(a.cryptoPeriodIndex=b),b=vi(yj(n,10)),null!=b&&0<b&&!a.Ve&&(a.j=b),n=Hj(n,2,gj(n.ea)&34?tea:uea,
2),n=g.u(n),b=n.next();!b.done;b=n.next())a.C.push(g.Dg(Sg(b.value),4))};
m6a=function(a){return isNaN(a.cryptoPeriodIndex)?g.Dg(a.initData):""+a.cryptoPeriodIndex};
WZ=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.gF?void 0:d.gF;d=void 0===d.BI?!1:d.BI;this.videoId=a;this.status=b;this.videoDuration=c;this.gF=e;this.BI=d};
n6a=function(a,b,c,d,e){this.videoId=a;this.PN=b;this.B=c;this.bytesDownloaded=d;this.j=e};
XZ=function(a){this.j=a;this.offset=0};
o6a=function(a){if(a.offset>=a.j.getLength())throw Error();return gO(a.j,a.offset++)};
p6a=function(a,b){b=void 0===b?!1:b;var c=o6a(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=o6a(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+o6a(a),d*=128;return b?c:c-d};
q6a=function(a){try{var b=p6a(a,!0),c=p6a(a,!1);return{id:b,size:c}}catch(d){return{id:-1,size:-1}}};
r6a=function(a){for(var b=new XZ(a),c=-1,d=0,e=0;!d||!e;){var f=q6a(b),h=f.id;f=f.size;if(0>h)return;if(176===h){if(2!==f)return;d=b.im()}else if(186===h){if(2!==f)return;e=b.im()}374648427===h?c=b.im()+f:408125543!==h&&174!==h&&224!==h&&b.skip(f)}b=YHa(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new cO([b]);dO(d,a);return d};
t6a=function(a,b,c){var d=this;this.Aa=a;this.policy=b;this.K=c;this.logger=new g.uU("dash");this.B=[];this.j=null;this.Ca=-1;this.Y=0;this.Ea=NaN;this.ma=0;this.C=NaN;this.Z=this.Na=0;this.Xa=-1;this.Ma=this.G=this.D=this.Ia=null;this.Za=this.Wa=NaN;this.N=this.va=this.fb=this.ib=null;this.tb=!1;this.Ra=this.timestampOffset=0;this.Cd={fX:function(){return d.B}};
if(this.policy.D){var e=this.K,f=this.policy.D;this.policy.Na&&a.qa("atv",{ap:this.policy.Na});this.N=new a6a(this.policy,e,function(h,l,m){YZ(a,new WZ(d.policy.D,2,{gF:new n6a(f,h,e.info,l,m)}))});
this.N.Z.promise.then(function(h){d.N=null;1===h?YZ(a,new WZ(d.policy.D,h)):d.Aa.qa("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof UZ&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.Aa.qa("offlinenwerr",{em:l}),s6a(d),YZ(a,new WZ(d.policy.D,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Aa.qa("dldbwerr",{em:l}),s6a(d),YZ(a,new WZ(d.policy.D,4,{BI:!0})))})}};
u6a=function(a){return a.B.length?a.B[0]:null};
B6a=function(a,b,c,d){d=void 0===d?0:d;if(a.G){var e=a.G.Zb+a.G.B;if(0<c.info.Zb)if(c.info.Pa===a.G.Pa&&c.info.Zb<e){if(c.info.Zb+c.info.B<=e)return;c=ZOa(c,e-c.info.Zb)[1]}else if(0<=c.info.Pa&&0<=a.G.Pa&&!EQ(a.G,c.info))throw new g.QC("improper_continuation",a.G.Qd(),c.info.Qd());e=a.G;var f=c.info;(e.Pa!==f.Pa&&f.Pa!==e.Pa+1||e.type!==f.type?0:EQ(e,f)||(1E-6>=Math.abs(e.C-f.C)&&e.Pa===f.Pa?0:oOa(e,f)))||v6a(a,"d")}else if(0<c.info.Zb)throw new g.QC("continuation_of_null",c.info.Qd());a.G=c.info;
a.K=c.info.j;if(0===c.info.Zb){if(a.j)if(!a.Aa.isOffline()||a.policy.Vi)a.Aa.qa("slice_not_fully_processed",{buffered:a.j.info.Qd(),push:c.info.Qd()});else throw new g.QC("slice_not_fully_processed",a.j.info.Qd(),c.info.Qd());ZZ(a);a.Na=d}else{if(a.Na&&d&&a.Na!==d)throw a=new g.QC("lmt_mismatch",c.info.Pa,a.Na,d),a.level="WARNING",a;!c.info.j.tm()&&a.D&&(d=c.info,e=a.D.j,d.G="updateWithEmsg",d.Pa=e)}if(a.j){d=XQ(a.j,c);if(!d)throw new g.QC("failed_to_merge",a.j.info.Qd(),c.info.Qd());a.j=d}else a.j=
c;a:{c=g.TK(a.j.info.j.info);if(3!==a.j.info.type){if(!a.j.info.mf)break a;7===a.j.info.type?w6a(a,b,a.j):x6a(a,a.j);a.j=null}for(;a.j;){d=a.j.j.getLength();if(0>=a.Ca&&0===a.Y){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8<h.getLength();){var m=ZHa(h,l),n=ZHa(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 XZ(h);for(m=l=!1;;){n=h.im();var p=q6a(h),q=p.id;p=p.size;if(!(0<q))break;if(408125543!==q)if(524531317===q)l=!0,0<=p&&(e=h.im()+p,m=!0);else{if(l&&(160===
q||163===q)&&(0>f&&(f=n),m))break;163===q&&(f=Math.max(0,f),e=h.im()+p);if(160===q){0>f&&(e=f=h.im()+p);break}h.skip(p)}}0>f&&(e=-1)}if(0>f)break;a.Ca=f;a.Y=e-f}if(a.Ca>d)break;a.Ca?(d=y6a(a,a.Ca),d.G&&z6a(a,d),w6a(a,b,d),A6a(a,d),a.Ca=0):a.Y&&(d=y6a(a,0>a.Y?Infinity:a.Y),a.Y-=d.j.getLength(),A6a(a,d))}}a.j&&a.j.info.mf&&(A6a(a,a.j),a.j=null)};
x6a=function(a,b){!b.info.j.tm()&&0===b.info.Zb&&(g.TK(b.info.j.info)||b.info.j.info.Ve())&&fPa(b);if(1===b.info.type)try{z6a(a,b),C6a(a,b)}catch(e){g.tF(e);var c=FQ(b.info);c.hms="1";a.Aa.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.FO(b);a.N&&f6a(a.N,b);if(c.wg()&&a.policy.C)a:{a=a.Aa.manifest;b=b.info.clipId;c=VK(c.info,a.yc);if(b){var d=APa(a,c);if(a.Ea[d])break a;a.Ea[d]=b}a.Ia.push(c)}};
s6a=function(a){var b;null==(b=a.N)||b.dispose();a.N=null};
D6a=function(a){var b=a.B.reduce(function(c,d){return c+d.j.getLength()},0);
a.j&&(b+=a.j.j.getLength());return b};
E6a=function(a){if(a.va&&!a.policy.Oo){var b=a.Aa;b.manifest.isManifestless&&hR(b.manifest,a.va.Pa,!!a.K.info.video)}a.va=null;a.D=null;a.G=a.ib;a.C=a.G?a.C-a.ma:NaN;ZZ(a)};
y6a=function(a,b){var c=a.j;b=Math.min(b,c.j.getLength());if(b===c.j.getLength())return a.j=null,c;c=ZOa(c,b);a.j=c[1];return c[0]};
z6a=function(a,b){b.j.getLength();var c=WQ(b);if(xCa(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new iQ(c);kQ(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;QK(d)&&!xCa(d)&&(d=WQ(b),(new iQ(d)).Ln(),oQ([408125543,374648427,174,224],21936,d));b.info.j.info.Hg()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.TK(d.info)?d.B=UNa(c):d.info.Ve()&&(d.B=dOa(c))));
b.info.j.info.Ve()&&b.info.Hg()&&(c=WQ(b),(new iQ(c)).Ln(),oQ([408125543,374648427,174,224],30320,c)&&oQ([408125543,374648427,174,224],21432,c));if(a.policy.uC&&b.info.j.info.Ve()){c=WQ(b);var e=new iQ(c);if(kQ(e,[408125543,374648427,174,29637])){d=nQ(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.Hi()&&g.TK(b.info.j.info)){d=WQ(b);c=g.aQ(d,0,1701606260);f=g.aQ(d,0,1836476516);if(c&&f){c.skip(2);var h=SP(c),l=UP(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(VP(c)),
e.push(VP(c)),m.push(SP(c)),n.push(SP(c));else for(h=0;h<l;++h)d.push(TP(c)),e.push(TP(c)),m.push(SP(c)),n.push(SP(c));c=g.bQ(f);c=new RNa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.TK(b.info.j.info))for(d=WQ(b),e=g.aQ(d,0,1701082227);e;)f=e,f.type=1936419184,f.data.setUint32(f.offset+4,1936419184),e=g.aQ(d,e.offset+e.size,1701082227);a.tb=!0;b.info.j.D=c}}b.info.j.tm()||b.info.j.j||b.info.j.indexRange||hPa(b)};
w6a=function(a,b,c){if(c.info.j.tm()){if(a.tb&&F6a(c)&&(b=WQ(c),b=g.aQ(b,0,1953658222))){b.skip(1);var d=RP(b)<<16|SP(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=UP(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=UP(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.Ia&&!!a.Ia.K.D)if(b=c.info.Hg())b=dPa(c),h=a.Ia,$Z?(l=1/b,b=a_(a,b)>=a_(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&F6a(c)&&(b=a.Ia,$Z?(l=dPa(c),h=1/l,l=a_(a,l),b=a_(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,TNa(WQ(c),b))}else{h=!1;a.D||(fPa(c),c.B&&(a.D=c.B,h=!0,f=c.info,d=c.B.j,f.G="updateWithEmsg",f.Pa=d,f=c.B,f.D&&(a.K.index.B=!f.D),f=c.info.j.info,d=WQ(c),g.TK(f)?ZNa(d,1701671783):f.Ve()&&oQ([408125543],307544935,d)));a:if((f=YQ(c,a.policy.ib))&&ePa(c))l=G6a(a,c),a.Z+=l,f-=l,a.ma+=f,a.C=a.policy.wj?a.C+f:NaN;else{if(a.policy.Qr){if(d=m=a.Aa.tq($Oa(c),1),0<=a.C&&7!==c.info.type){if(a.policy.wj&&isNaN(a.Wa)){g.uF(new g.QC("Missing duration while processing previous chunk",
c.info.Qd()));a.Aa.isOffline()&&!a.policy.Vi||H6a(a,c,d);v6a(a,"m");break a}var n=m-a.C,p=n-a.Z,q=c.info.Pa,r=a.Ma?a.Ma.Pa:-1,t=a.Za,v=a.Wa,x=a.policy.Rm&&n>a.policy.Rm,A=10<Math.abs(p),E=1E-7>Math.abs(a.C-d);if(1E-4<Math.abs(p)){a.Ra+=1;var F=null==(e=a.D)?void 0:ONa(e);e={audio:""+ +a.Hi(),sq:q.toFixed(),sliceStart:m,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:v,totalDrift:(1E3*n).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+ +(x||A)};if(null==F?0:F.length)e.adCpn=F[0];a.Aa.handleError("qoe.avsync",
e);a.Xa=q}x||A||E||(d=a.C);e=G6a(a,c,m);f-=e;a.Z=n+e;a.policy.B&&(p&&!E||e)&&(n=null==(l=a.D)?void 0:ONa(l),a.Aa.qa("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.C)?c.info.startTime:a.C;H6a(a,c,d)&&(a.ma+=f,a.C=d+f,a.policy.Qm&&a.Ra>=a.policy.Qm&&(a.Ra=0,a.Aa.zo({resetForRewrites:"count"})),
a.policy.Sm&&a.Z>a.policy.Sm&&a.Aa.zo({resetForRewrites:"threshold"}))}a.Ma=c.info;a.Wa=cPa(c);0<=c.C&&(a.Za=c.C);if(h&&a.D){h=I6a(a,!0);yOa(c.info,h);a.j&&yOa(a.j.info,h);b=g.u(b);for(l=b.next();!l.done;l=b.next())l=l.value,e=void 0,a.policy.G&&l.Pa!==(null==(e=a.D)?void 0:e.j)||yOa(l,h);(c.info.mf||a.j&&a.j.info.mf)&&7!==c.info.type||(a.va=h,b=a.Aa,b.manifest.isManifestless&&J6a(b,h,null,!!a.K.info.video),a.policy.Bd||K6a(a))}}C6a(a,c);a.timestampOffset&&bPa(c,a.timestampOffset)};
A6a=function(a,b){if(b.info.mf){a.ib=b.info;if(a.D){var c=a.D,d=I6a(a,!1),e=null;if(a.D.UD()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=ONa(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 j6a(e,f,h,l,g.PNa(c),g.QNa(c))}a.Aa.zQ(a.K,d,e);a.va||a.policy.Bd||K6a(a);a.va=null}ZZ(a)}a.N&&f6a(a.N,b);if(c=a.Zn())if(c=XQ(c,b,a.policy.xk)){a.B.pop();a.B.push(c);return}a.B.push(b)};
ZZ=function(a){a.j=null;a.Ca=-1;a.Y=0;a.D=null;a.Ea=NaN;a.ma=0;a.va=null};
v6a=function(a,b){b={rst4disc:b,cd:a.Z.toFixed(3),sq:a.Ma?a.Ma.Pa:-1};a.C=NaN;a.Z=0;a.Xa=-1;a.Ma=null;a.Za=NaN;a.Wa=NaN;a.fb=null;a.Aa.qa("mdstm",b)};
C6a=function(a,b){if(a.K.info.qe){if(b.info.j.info.Ve()){var c=new iQ(WQ(b));if(kQ(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=nQ(c,!0);c=16!==d?null:cOa(c,d)}else c=null;d="webm"}else b.info.N=h6a(WQ(b)),c=i6a(b.info.N),d="cenc";c&&c.length&&(c=new VZ(c,d),a.policy.RB&&g.TK(b.info.j.info)&&(d=aOa(WQ(b)))&&(c.B=d),c.Ve=b.info.j.info.Ve(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),b.B&&b.B.C&&(c.j=b.B.C),a.Aa.Ow(c))}};
K6a=function(a){var b=a.D,c=MNa(b);c&&(c.startSecs+=a.Ea,a.Aa.yQ(a.K,c,b.j,b.UD()))};
I6a=function(a,b){var c,d=a.D;if(c=MNa(d))c.startSecs+=a.Ea;return new PP(d.j,a.Ea,b?d.Mj:a.ma,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)};
H6a=function(a,b,c){if(!aPa(b,c))return b=FQ(b.info),b.smst="1",a.Aa.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Ea)&&(a.Ea=c);return!0};
G6a=function(a,b,c){var d=0;if(b.info.j.info.Ve()&&!ePa(b))return 0;if(a.Ia&&!a.Hi()){var e=0;c&&g.TK(b.info.j.info)?e=c-a.C:b.info.j.info.Ve()&&(e=a.Z);var f=b.info.Pa;c=YQ(b,a.policy.ib);var h=a.Ia;var l=h.Xa;h=h.Z;var m=.02<Math.abs(h-e);if((f===l||f>l&&f>a.Xa)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.TK(b.info.j.info))TNa(WQ(b),d);else if(b.info.j.info.Ve()&&(f=e-h,!g.TK(b.info.j.info)&&(b.info.j.info.Ve(),d=new iQ(WQ(b)),l=b.G?d:new iQ(new DataView(b.info.j.j.buffer)),YQ(b,!0)))){var n=
1E3*f,p=tQ(l);l=d.pos;d.pos=0;if(160===d.j.getUint8(d.pos)||uQ(d))if(mQ(d,160))if(nQ(d,!0),mQ(d,155)){if(f=d.pos,m=nQ(d,!0),d.pos=f,n=1E9*n/p,p=pQ(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=YQ(b,a.policy.ib);d=c-d}d&&b.info.j.info.Ve()&&a.Aa.qa("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d};
F6a=function(a){return a.info.j.tm()&&a.info.Pa===a.info.j.index.Hd()};
a_=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.K.D&&b&&(b+=a.K.D.j);return b+a.getDuration()};
L6a=function(a,b){0>b||(a.B.forEach(function(c){bPa(c,b)}),a.timestampOffset=b)};
pZ=function(a,b,c,d,e){EZ.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.gg=d;this.lastError=null;this.j=new g.Qu(function(){f.isComplete()||(f.lastError="net.timeout",f.Hc(5))},this.policy.QB);
this.hg=function(){f.isDisposed()||(f.gg.bd.has(f.formatId)?(f.isComplete()||f.j.start(),qY(f.gg,f.formatId)&&f.AA(2),f.gg.Ug(f.formatId)&&(i2a(f.gg,f.formatId)?f.Hc(4):(f.lastError="net.closed",f.Hc(5)))):(f.lastError="player.exception",f.Hc(5)))};
this.j.start();d2a(this.gg,this.formatId,this.hg);g.ig(this.hg)};
M6a=function(a,b,c,d){var e=this;this.Aa=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.uU("dash");this.C=[];this.va=[];this.B=this.dc=null;this.Ia=!1;this.Ea=this.Ma=0;this.K=-1;this.ma=!1;this.Ca=-1;this.Y=NaN;this.Cd={lO:function(){return e.D},
dnb:function(){return e.C},
Amb:function(){return e.Z}};
this.D=new t6a(a,b,c);this.policy.C&&(this.Z=new R5a(this.D,this.Aa.aX(),this.policy,function(f){e.Aa.qa("buftl",f)}));
this.Pb=c.info.Pb;this.N=c.fE();this.isManifestless=c.fE();this.G=this.N};
b_=function(a,b,c){c=void 0===c?!1:c;b&&$Z&&L6a(a.D,b.wO());if(!c){var d;null==(d=a.Z)||Z5a(d)}a.dc=b;null!=(b=a.Z)&&(b.dc=a.dc)};
c_=function(a){var b=a.dc&&a.dc.bI();if(a.policy.Du){if(null==(a=a.Z))a=void 0;else{var c;a=null==(c=a.B)?void 0:c.info}return a||null}return b};
N6a=function(a){for(var b={},c=0;c<a.va.length;c++)b["r"+c]=a.va[c];return b};
O6a=function(a,b){isNaN(a.Y)||a.Aa.qa("aswr",{sq:b.info.eb[0].Pa,id:b.info.eb[0].j.info.itag,xtag:b.info.eb[0].j.info.j,ep:Date.now()-a.Y});a.C.push(b);a.B=g.Bb(b.info.eb);a.va.push(b.Qd());4<a.va.length&&a.va.shift()};
P6a=function(a,b){if(b.fl()){var c=b.Ik();c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.B&&b instanceof pZ&&a.Aa.qa("omblss",{s:d.info.Qd()}),d_(a,b.info.eb,d,b.tO())}};
d_=function(a,b,c,d){d=void 0===d?0:d;isNaN(a.Y)||(a.Aa.qa("aswm",{sq:b[0].Pa,id:b[0].j.info.itag,xtag:b[0].j.info.j,ep:Date.now()-a.Y}),a.Y=NaN);switch(c.info.type){case 1:case 2:Q6a(a,c);break;case 4:var e=c.info.j,f=e.fU(c),h;(null==(h=a.B)?0:4===h.type)&&wOa(c.info,a.B)&&(a.B=e.gB(a.B).pop());c=g.u(f);for(e=c.next();!e.done;e=c.next())d_(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,e.Ia||(e.Ia=(0,g.pD)(),HL("fvb_r",e.Ia,e.j))):(e=a.timing,e.K||(e.K=(0,g.pD)(),HL("fab_r",e.K,e.j)));
B6a(a.D,b,c,d);a.policy.C&&R6a(a);break;case 7:B6a(a.D,b,c,d),a.B=c.info}};
Q6a=function(a,b){if(1===b.info.type)if(b.info.j.info.video){var c=a.timing;c.Ma||(c.Ma=(0,g.pD)(),HL("vis_r",c.Ma,c.j))}else c=a.timing,c.Z||(c.Z=(0,g.pD)(),HL("ais_r",c.Z,c.j));x6a(a.D,b);a=a.Aa;a.videoTrack.j.wg()&&a.audioTrack.j.wg()&&a.policy.C&&!a.manifest.yc&&(b=a.audioTrack.getDuration(),c=a.videoTrack.getDuration(),1<Math.abs(b-c)&&a.qa("trBug",{af:""+VK(a.audioTrack.j.info,!1),vf:""+VK(a.videoTrack.j.info,!1),a:""+b,v:""+c}))};
wZ=function(a){return u6a(a.D)};
R6a=function(a){a.C.length?a.B=g.Bb(g.Bb(a.C).info.eb):a.D.B.length?a.B=a.D.Zn().info:a.B=c_(a)};
S6a=function(a){var b={Ld:[],Yn:[]},c;if(null==(a=a.Z))a=void 0;else{Y5a(a,a.Ld,"og");W5a(a);Y5a(a,a.Ld,"trim");var d=X5a(a),e=d.Ld;d=d.PA;for(var f=[],h=0;h<d.length;h++){var l=d[h];f.push({formatId:VK(l.info.j.info,a.manifest.yc),Kj:l.info.Kj,sequenceNumber:l.info.Pa+a.C,QH:{Fh:1E3*((a.policy.Wa&&-1!==l.C?l.C:l.info.startTime)+a.timestampOffset),dD:1E3*(a.policy.Wa&&-1!==l.D?l.D:l.info.duration),Lr:1E3},xY:l.info.B})}a={Ld:e,Yn:f}}return null!=(c=a)?c:b};
T6a=function(a){if(null==(a=a.Z))a=void 0;else{var b;a=null==(b=a.B)?void 0:b.info.D}return a};
sZ=function(a,b,c){c=void 0===c?!1:c;if(a.dc){var d=a.dc.hf(),e=dL(d,b),f=NaN,h=c_(a);h&&(f=dL(d,h.j.index.getStartTime(h.Pa)));if(e===f&&a.B&&a.B.B&&U6a(V6a(a),0))return b}a=W6a(a,b,c);return 0<=a?a:NaN};
tZ=function(a,b){a.j.wg();var c=W6a(a,b);if(0<=c)return c;if(null!=(c=a.Z)){var d=b;c.PA=[];W5a(c);c.j=S5a(c.Ld,1E3*d)}c=Math;d=c.min;var e=a.D;if(e.N)if(e=e.N,e.Pf&&3===e.Pf.type)e=e.Pf.startTime;else if(0<e.C){var f=e.j.index;f=g.Tb(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.j.index.getStartTime(0<=f?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);if(a.policy.j){var h,l;c=null==(h=a.Aa.Gi())?void 0:null==(l=WY(h,b))?void 0:l.clipId;a.B=a.j.Jq(b,void 0,c).eb[0]}else a.B=a.j.Jq(b).eb[0];
e_(a)&&a.dc&&a.dc.abort();a.Ea=0;return a.B.startTime};
X6a=function(a){a.N=!0;a.G=!0;a.K=-1;tZ(a,Infinity)};
f_=function(a){for(var b=0,c=g.u(a.C),d=c.next();!d.done;d=c.next())b+=DOa(d.value.info);return b+=D6a(a.D)};
h_=function(a,b){b=void 0===b?!1:b;var c=a.Aa.getCurrentTime(),d=a.D.Zn(),e=(null==d?void 0:d.info.D)||0;if(a.policy.j&&d&&d.info.clipId){var f,h=((null==(f=a.Aa.Gi())?void 0:UY(f,d.info.clipId))||0)/1E3;e+=h}if(!a.dc)return a.policy.C&&b&&!isNaN(c)&&d?e-c:0;if((f=c_(a))&&g_(a,f))return f.D;f=a.dc.hf(!0);return b&&d?(b=0,a.policy.C&&(b=fL(f,e+.02)),b+e-c):fL(f,c)};
Y6a=function(a,b){if(a.C.length){if(a.C[0].info.eb[0].startTime<=b)return;rZ(a)}for(var c=a.D,d=c.B.length-1;0<=d;d--)c.B[d].info.startTime>b&&c.B.pop();R6a(a);a.B&&b<a.B.startTime&&(a.Ea=0,a.j.wg()?a.B=a.j.Jq(b,!0).eb[0]:a.B=null)};
Z6a=function(a,b,c,d){rZ(a);for(var e=a.D,f=null,h=e.B.length-1;0<=h;h--){var l=e.B[h];l.info.Pa>=b&&(e.B.pop(),e.C-=YQ(l,e.policy.ib),f=l.info)}f&&(e.G=0<e.B.length?e.B[e.B.length-1].info:e.fb,0!==e.B.length||e.G||v6a(e,"r"));e.Aa.qa("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Pa:-1,sq:b,lastslc:e.G?e.G.Pa:-1,lastfraget:e.C.toFixed(3)});d>c?tZ(a,d):a.B=a.j.gs(b-1,!1).eb[0]};
j_=function(a,b){var c;for(c=0;c<a.C.length&&b!==a.C[c];c++);if(c===a.C.length)i_(a,b);else{for(;c<a.C.length;)i_(a,a.C.pop());var d=$6a(a);d&&d.j.Xv()&&As(b.info.eb,function(e){return xOa(e,d)})?(a.B=d,a.policy.B&&a.Aa.qa("cer",{lsr:"lsp",
lsp:d.Qd()})):(DQ(b.info.eb[0])?(a.B=b.og&&b.og.C?uOa(b.og.C):tOa(b.info.eb[0]),a.policy.B&&a.Aa.qa("cer",{lsr:a.B.Qd(),lsp:null==d?void 0:d.Qd()})):(a.B=null,a.policy.B&&a.Aa.qa("cer",{lsr:"null",lsp:null==d?void 0:d.Qd()})),a.Aa.isOffline()&&!a.policy.Vi||i_(a,b,!0))}};
g_=function(a,b){if(!b)return!1;if(a.policy.j){var c;if((a=null==(c=a.Aa.Gi())?void 0:c.oa.getVideoData().clientPlaybackNonce)&&b.clipId!==a)return!1}return BQ(b)};
e_=function(a){var b;!(b="f"===a.j.info.sb)&&(b=a.policy.D)&&(b=a.D,b=!!b.N&&RZ(b.N));if(b)return!0;b=c_(a);if(!b)return!1;var c=g_(a,b)&&b.mf;return a.isManifestless&&0<a.Ca?c||b.Pa>=a.Ca:c};
k_=function(a){var b;return e_(a)||g_(a,null==(b=a.D.Zn())?void 0:b.info)};
V6a=function(a){var b=[],c=c_(a);c&&b.push(c);b=g.Kb(b,a.D.zn());c=g.u(a.C);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.u(d.info.eb),f=e.next(),h={};!f.done;h={BF:void 0},f=e.next())h.BF=f.value,d.MO&&(b=g.ot(b,function(l){return function(m){return!wOa(m,l.BF)}}(h))),(DQ(h.BF)||4===h.BF.type)&&b.push(h.BF)}a.B&&!nOa(a.B,g.Bb(b),a.B.j.tm())&&b.push(a.B);
return b};
U6a=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!oOa(a[b-1],a[b]))return!1;return!0};
W6a=function(a,b,c){c=void 0===c?!1:c;if(!a.B||!a.B.B)return NaN;a=V6a(a);a:{b+=.02;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:U6a(a,c?b:0)?a[b].startTime:NaN};
l_=function(a){return!(!a.B||a.B.j===a.j)};
a7a=function(a){return l_(a)&&a.j.wg()&&a.B.j.info.Pb<a.j.info.Pb};
b7a=function(a,b,c){var d=$6a(a);return d&&!g_(a,d)?d.D>b&&d.D<b+c:!1};
$6a=function(a){var b=a.D.Zn();return b?b.info:c_(a)};
c7a=function(a){return(a=$6a(a))?a.Pa:-1};
rZ=function(a){for(var b=g.u(a.C),c=b.next();!c.done;c=b.next())i_(a,c.value);a.C=[];a.B=null};
d7a=function(a,b,c){b.MO&&((void 0===c?0:c)||!b.info.eb[0].j.Xv())&&(a.logger.debug(function(){return"Rolling back request with segNum "+b.info.eb[0].Pa}),E6a(a.D))};
i_=function(a,b,c){d7a(a,b,void 0===c?!1:c);b.dispose()};
e7a=function(a){return!!a.B&&-1!==a.B.Pa&&a.B.Pa<a.j.index.xn()};
f7a=function(a){var b=a.B;b&&-1===b.Pa&&(a=a.D.Zn())&&DQ(a.info)&&(a=a.info.Pa,b.G="updateLastSliceRequested",b.Pa=a)};
g7a=function(a){return As(a.C,function(b){return b.RA})};
h7a=function(a,b){a.B&&(a.B.j=b)};
m_=function(a){var b=wZ(a);a=a.Aa.Gi();var c;if(c=b&&a&&b.info.clipId){a:if(b=b.info.clipId,a.WR&&a.Bv&&a.Bv!==b)a=!1;else{if(b=a.Vj.get(b))if(b=b.getId().split(","),1<b.length)for(c=0;c<b.length;c++){var d=c<b.length-1?b[c+1]:"";if(a.wk.has(b[c])){a=b[c]===a.dg&&!a.wk.has(d);break a}}a=!0}c=!a}return c?!0:!1};
i7a=function(a){a=void 0===a?{}:a;var b=a.nj,c=a.Nj,d=a.Hd,e=a.Dv;this.Yj=a.Yj;this.nj=b;this.Nj=c;this.Hd=d;this.Dv=e};
X4a=function(a,b){if(0>b)return!0;var c=a.Hd();return b<c||b===c&&!a.Yj||b===c&&(a=a.Dv())&&b===a.Pa?!0:!1};
Y4a=function(a,b,c){if(!X4a(a,b))return 0;if(!a.nj||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.Hd();return b<c||b===c&&(a=a.Dv())&&b===a.Pa&&!a.pending?2:1};
j7a=function(a,b,c){var d=a.Hv();if(a.isComplete()||!d||JQ(a.info.resource,b,c)||2>d)return 0;a=KQ(c,JOa(a.info.resource,!0,b));return a.j||a.timedOut||a.started?0:2};
k7a=function(a,b,c){if(!(b.Vo&&a.isComplete()&&a.canRetry()&&JQ(a.info.resource,b,c)))return 0;a=KQ(c,JOa(a.info.resource,!1,b));return a.B+b.Vo*HOa(a,!0)>(0,g.pD)()?0:1};
n_=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){t=void 0===t?null:t;g.I.call(this);var v=this;this.Aa=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.D=e;this.j=f;this.timing=h;this.G=l;this.schedule=m;this.manifest=n;this.C=p;this.Y=q;this.RK=r;this.oi=t;this.ma=!1;this.nF="";this.Zk=null;this.ih=NaN;this.Ca=!1;this.B=null;this.rh=this.Z=NaN;this.va=this.K=0;this.logger=new g.uU("dash");this.Cd={lP:function(x,A){return v.lP(x,A)}};
0<this.policy.Qo&&(this.nF=g.GE(this.policy.Qo));if(a=this.policy.py)this.N=new g.Qu(this.Ia,a,this),g.N(this,this.N)};
n7a=function(a,b,c){var d=b.B?b.B.j.resource:b.j.resource;var e=a.D,f;(f=!a.policy.YB)||(f=LP(d.j)===LP(d.B));f?d=!1:(e=KQ(e,LP(d.B)),f=6E4*Math.pow(e.D,1.6),(0,g.pD)()<e.B+f?d=!1:(e.B=(0,g.pD)(),e.D+=1,d.j=d.B.clone(),d=!0));d&&a.Aa.qa("hostch",{},!0);if(l7a(a,b,c)){if(b.N)a.manifest.isLive?(c=a.manifest.qf&&a.manifest.C?b.j.gs(a.manifest.qf,!1):b.j.Jq(Infinity),c.ih=a.ih):c=b.j.gs(0,!1),a.Y?0===c.ih&&(c.G=a.Y.Z):c.G=a.Z;else if(d=b.B,d.j.wg()){e=d.D-a.Aa.getCurrentTime();var h=!d.range||0===d.B&&
0===d.Zb?0:d.range.length-(d.Zb+d.B);f=d.j;a.lP(b,e)&&0===h&&(a.manifest.isManifestless?f=b.j:(f=d.startTime+m7a,d.B&&(f+=d.duration),tZ(b,f),d=b.B,f=d.j));f.tm()?(h=a.C,e=G4a(a.G,f.info.Pb,c.j.info.Pb,e,0<h.D.length&&0===h.Z&&a.Aa.Hp),c=d,f=l_(b),d=c.j.Zx(c,e),(e=d.C)&&1<d.eb.length&&(f||d.resource.C||d.eb[0].j!==c.j?d=c.j.Zx(c,d.eb[0].B):(f=d.eb[d.eb.length-1],h=f.B/e,!f.mf&&.4>h&&(d=c.j.Zx(c,e-f.B)))),c=d):(0>d.Pa&&(c=FQ(d),c.pr=""+b.C.length,a.Aa.eg()&&(c.sk="1"),c.snss=d.G,a.Aa.qa("nosq",c)),
c=f.iC(d));if(a.policy.va)for(d=g.u(c.eb),e=d.next();!e.done;e=d.next())e.value.type=7}else d.j.tm()?(c=G4a(a.G,b.j.info.Pb,c.j.info.Pb,0),c=d.j.Zx(d,c)):c=d.j.iC(d);if(a.B){var l=c.eb[0].j.info.id;d=a.j;e=c.eb[0].Pa;d=0>e&&!isNaN(d.D)?d.D:e;e=O5a(a.j,c.eb[0].C,d);var m=b===a.audioTrack?1:2;h=c.eb[0].j.info.sb;f=l.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.dh.event;if(n.j.Pa===d){n="predictStart"===p?void 0:n.j.dh.event;break a}if(n.j.Pa===d-1){n="start"===p||"continue"===p?p:void 0;break a}}n=
void 0}if(a.policy.Ca&&0!==a.j.B){var q=a.B.oI(e,d,l,m,h,n);0>d&&2===m&&QZ(a.j,0,0,!0);if(q){var r;l=(null==(r=q.ox)?void 0:r.Fs)||"";var t;r=(null==(t=q.ox)?void 0:t.g0)||-1;a.Aa.qa("sdai",{ssdaiinfo:"1",ds:l,skipsq:r,itag:f,f:h,sg:d,st:e.toFixed(3)});c.D=q}}else if(t=a.B.xz(e,d,l,m,h,n),0>d&&2===m&&QZ(a.j,0,0,!0),t){r={dec_sq:d,itag:f,st:e.toFixed(3)};if(a.policy.vC&&b.isRequestPending(d-1)){a.Aa.qa("sdai",{wt_daistate_on_sg:d-1});return}a.Aa.qa("sdai",r);t&&(c.j=new g.JP(t));a.policy.B&&(t=c.resource.B.get("id")||
"",r=(null==(q=c.j)?void 0:q.get("id"))||"",t!==r&&a.Aa.qa("stmidmismatch",{cid:t,aid:r}))}else 5!==a.j.B&&a.Aa.qa("sdai",{nodec_sq:d,itag:f,st:e.toFixed(3)})}a.policy.vl&&-1!==c.eb[0].Pa&&c.eb[0].Pa<a.manifest.qf&&(c=b.j.gs(a.manifest.qf,!1));O6a(b,o_(a,c));NZ(a.timing);a.N&&(a.va=0,g.Ru(a.N))}};
l7a=function(a,b,c){if(a.policy.Pe&&a.policy.Ob)return!1;var d;var e=a.j,f=(null==(d=b.B)?void 0:d.Pa)||-1;3===e.B&&f+1>=e.C?(e.qa("sdai",{haltrq:f+1,est:e.C}),d=!1):d=2!==e.B;if(!d||!KOa(b.B?b.B.j.resource:b.j.resource,a.policy,a.D)||a.Aa.isSuspended&&(!QR(a.schedule)||a.Aa.yH))return!1;if(a.policy.D&&5<=OS)return g.Ru(a.Aa.vE),!1;if(a.manifest.isManifestless){if(0<b.C.length&&b.B&&-1===b.B.Pa||b.C.length>=a.policy.Pm||!a.policy.SB&&0<b.C.length&&!a.policy.N.nj)return!1;if(b.N)return!a.manifest.isLive||
!isNaN(a.ih)}if(g7a(b))return a.logger.debug("Pending request with server-selectable format found"),!1;if(!b.B){if(!b.j.wg())return!1;tZ(b,a.Aa.getCurrentTime())}if(wZ(b)&&(b.Zn()!==wZ(b)||a.Aa.isSuspended))return!1;e=(d=a.policy.Px)&&!b.C.length&&h_(b,!0)<Math.min(d,h_(c));d=b.C.length+c.C.length;f=!a.policy.uy&&((b.C.length?b.C[0].Yv():!1)||(c.C.length?c.C[0].Yv():!1)||a.manifest.isLive);(e||f)&&--d;if(d+1>=a.policy.Tm)return!1;d=b.B;if(!d)return!0;4===d.type&&d.j.wg()&&(b.B=g.Bb(d.j.gB(d)),d=b.B);
if(!BQ(d)&&!d.j.Zr(d))return!1;f=a.manifest.ye||a.manifest.C;if(a.manifest.isManifestless&&f){f=b.j.index.Hd();var h=c.j.index.Hd();f=Math.min(f,h);if(0<b.j.index.YH()&&0<f&&d.Pa>=f)return b.Ca=f,c.Ca=f,!1}if(d.j.info.audio&&4===d.type||BQ(d))return!1;f=!b.G&&!c.G;if(e=!e)e=d.D,e=!!(c.B&&!g_(c,c.B)&&c.B.D<e);h=b===a.videoTrack&&a.policy.va;return e&&(!a.manifest.isManifestless||c.B&&c.B.D&&d.D)&&f&&!h||a.policy.Xa&&!b.G&&c.G?!1:DQ(d)&&d.D>o7a(a,b)?(o7a(a,b),!1):(a=b.dc)&&a.isLocked()?!1:!0};
o7a=function(a,b){var c=a.j;c=c.j?c.j.dh:null;if(a.policy.va&&c)return c.startSecs+c.yh+15;b=p_(a.Aa,b);0<a.policy.fb&&(c=((0,g.pD)()-a.Aa.Yq)/1E3,b=Math.min(b,a.policy.fb+a.policy.wh*c));c=a.Aa.getCurrentTime()+b;return a.policy.Uo&&(b=p7a(a.Aa)+a.policy.Uo,b<c)?(a.Aa.qa("mrl",{ori:c,mod:b},!0),a.policy.Oy&&(a=a.Aa,c=(0,g.pD)(),a.Yq=c),b):c};
q7a=function(a,b,c){if(0!==c){a:if(b=b.info,c=2===c,b.j)b=null;else{var d=b.eb[0];if(b.range)var e=yQ(b.range.start,Math.min(4096,b.C));else{if(b.B&&0<=b.B.indexOf("/range/")||"1"===b.resource.B.get("defrag")||"1"===b.resource.B.get("otf")){b=null;break a}e=yQ(0,4096)}e=new GQ([new AQ(5,d.j,e,"createProbeRequestInfo"+d.G,d.Pa)],b.B);e.K=c;e.j=b.j;b=e}b&&o_(a,b)}};
o_=function(a,b){a.Aa.tI(b);var c=DOa(b);c={Dd:a.schedule,kD:c,OQ:E4a(a.G,c),kp:CQ(b.eb[0]),Gs:MP(b.resource.j)||b.Kn(),GN:a.policy.B,ix:function(e,f){a.Aa.sF(e,f)}};
a.Zk&&(c.Pa=b.eb[0].Pa,c.ih=b.ih,c.Zk=a.Zk);var d={Xu:EOa(b,a.Aa.getCurrentTime()),cF:a.policy.Yc&&IQ(b)&&b.eb[0].j.info.video?IVa(a.C):void 0,cG:a.policy.va,poToken:a.Aa.hI(),Tw:a.Aa.Fz(),nF:a.nF,rh:isNaN(a.rh)?null:a.rh,oi:a.oi,RK:a.RK};return new qZ(a.policy,b,c,a.D,function(e,f){try{a:{var h=e.info.eb[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.Hv()||!(!a.Aa.Qa||a.Aa.isSuspended||3<h_(l))){var m=j7a(e,a.policy,a.D);1===m&&(a.Ca=!0);q7a(a,e,m);if(e.isComplete()||
e.isDisposed()&&3>f){if(a.policy.B){var n=e.timing.hs();n.rst=e.state;n.strm=e.xhr.BB();n.cncl=e.xhr&&e.Jd.C?1:0;e.Kn()&&(n.shost=LP(e.ke.base),n.pb=e.info.C);a.Aa.qa("rqs",n)}e.R_&&a.Aa.qa("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){J5a(a.timing,e,h);var p=a.Aa;a.rh&&e.dH&&p&&(a.rh=NaN,a.Aa.RR(e.dH),a.Aa.fN(),a.Aa.qa("cabrUtcSeek",{mediaTimeSeconds:e.dH}));e.kB&&(0<e.vp&&a.Aa.qa("sError",{errorHttpResponseCode:e.vp.toString()}),a.rh&&e.kB&&!e.kB.action&&(a.Aa.hJ(a.rh),a.rh=NaN,a.Aa.qa("cabrUtcSeekFallback",
{targetUtcTimeSeconds:a.rh})));a.policy.Ob&&e.aq&&a.Aa.Am(e.aq);if(3===e.state){j_(l,e);IQ(e.info)&&q_(a,l,h,!0);if(a.B){var q=e.info.xz();q&&a.B.Uk(e.info.eb[0].Pa,h.info.id,q,e.info.eb[0].startTime)}a.Aa.xf()}else if(e.isComplete()&&5===e.info.eb[0].type){if(4!==e.state)e.qm()&&a.Aa.handleError(e.gh(),e.Eq());else{var r=(e.info.eb[0].j.info.video?a.videoTrack:a.audioTrack).C[0]||null;r&&r instanceof qZ&&r.Hv()&&r.FB(!0)}e.dispose()}else{e.qm()||r7a(a,e);var t;(null==(t=e.hA)?0:t.QI)&&a.Aa.DJ(e.hA.QI);
if(4===e.state)s7a(a,e),a.j&&N5a(a.j,e.info,a.B);else if(a.policy.xu&&e.fl()&&!e.isComplete()&&!s7a(a,e)&&!e.qm())break a;e.qm()&&(a.Zs(e),isNaN(a.rh)||(a.Aa.hJ(a.rh),a.rh=NaN));a.Aa.xf();var v=k7a(e,a.policy,a.D);q7a(a,e,v)}}}}}catch(x){f=a.ma?1:0,a.ma=!0,e=CK(f),f=DK(x,f),a.Aa.handleError(f.errorCode,f.details,f.severity),e||a.Aa.Pk()}},d)};
r7a=function(a,b){if(b.RA&&2<=b.state&&3!==b.state){var c=b.xhr.getResponseHeader("X-Response-Itag");if(c){a.logger.debug(function(){return"Applying streamer-selected format "+c});
var d=HVa(a.C,c),e=b.info.C;e&&(e-=d.mO(),d.C=!0,b.info.eb[0].j.C=!1,q5a(b,d.Gv(e)),r_(a.Aa,a.videoTrack,d),h7a(a.videoTrack,d),a.Aa.KQ(d.info.video.quality),(e=b.tO())&&d.info.lastModified&&d.info.lastModified!==+e&&j_(a.videoTrack,b))}else b.RA=!1}};
s7a=function(a,b){if(a.policy.useUmp&&b.isDisposed())return!1;try{var c=b.info.eb[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.manifest.isManifestless&&d){a.K=0;d.N&&(b.isDisposed(),b.isComplete()||b.fl(),d.N=!1);b.YN()&&a.Aa.nH.Rj(1,b.YN());var e=b.YH(),f=b.UW();WPa(a.manifest,e,f)}if(b.info.kp()&&!zOa(b.info))for(var h=g.u(b.Ik()),l=h.next();!l.done;l=h.next())Q6a(d,l.value);for(a.Aa.getCurrentTime();d.C.length&&4===d.C[0].state;){var m=d.C.shift();P6a(d,m);d.Ma=m.PW()}d.C.length&&P6a(d,d.C[0]);
var n=!!wZ(d);n&&b instanceof pZ&&(c.info.Hi()?C5a(a.timing):B5a(a.timing));return n}catch(p){b=b.Eq();b.origin="hrhs";a:{a=a.Aa;c=p;if(c instanceof Error){b.msg||(b.msg=""+c.message);b.name||(b.name=""+c.name);if(c instanceof g.QC&&c.args)for(d=g.u(Object.entries(c.args)),e=d.next();!e.done;e=d.next())f=g.u(e.value),e=f.next().value,f=f.next().value,b["arg"+e]=""+f;g.uF(c);if("WARNING"===c.level){a.oa.zo(b);break a}}a.handleError("fmt.unplayable",b,1)}return!1}};
t7a=function(a){var b=a.videoTrack.j.index;a.Zk=new i7a({Yj:a.policy.Yj,nj:a.policy.N.nj,Nj:b.Nj,Hd:function(){return b.Hd()},
Dv:function(){return b.Dv()}})};
q_=function(a,b,c,d){if(!(c.wg()||c.aA()||c.C||!KOa(c.resource,a.policy,a.D)||"f"===c.info.sb||a.policy.C)){if(d){d=a.G;var e=c.info;d=F4a(d,e.video?d.policy.Fu:d.policy.lk,e.Pb)}else d=0;d=c.Gv(d);a=o_(a,d);zOa(d)&&O6a(b,a);c.C=!0}};
s_=function(a,b,c,d,e,f,h){g.I.call(this);var l=this;this.Aa=a;this.nf=b;this.videoTrack=c;this.audioTrack=d;this.manifest=e;this.N=f;this.Ca=h;this.B=WS;this.va=!1;this.logger=new g.uU("sabr");this.ma=this.Y=!1;this.videoInfos=this.K=this.N.videoInfos;this.D=this.Z=this.N.j;this.j=new wU(b,f,function(m,n){l.Aa.qa(m,n)});
u7a(this)};
v7a=function(a,b){var c=[];b=g.u(b);for(var d=b.next();!d.done;d=b.next())c.push(VK(d.value,a.manifest.yc));return c};
w7a=function(a,b,c){b!==a.G&&(a.G&&(a.va=!0),a.G=b,a.KE(b,a.videoTrack,c))};
A7a=function(a,b){a.logger.debug("setConstraint: "+yP(b));a.nf.j&&(a.ma="m"===b.reason||"l"===b.reason?!0:!1);"m"===b.reason?b.isLocked()&&x7a(a,b.j):y7a(a,b)?z7a(a,b.B,b.j):a.videoInfos=a.K;a.B=b};
y7a=function(a,b){return a.nf.Ll&&"b"===b.reason||a.nf.oC?!1:a.nf.Nx?!0:"l"===b.reason||"b"===b.reason||"o"===b.reason};
B7a=function(a,b){return b.isLocked()&&a.j.B||void 0===a.B?!1:dNa(b,a.B)};
C7a=function(a,b){var c,d=null==(c=a.G)?void 0:c.info.video.j;return a.va?!0:a.G?b!==d?!0:a.j.B?!0:!1:!1};
x7a=function(a,b){var c=a.j.j;if(c){a.videoInfos=a.K;var d=g.Db(a.videoInfos,function(e){return e.id===c});
d&&d.video.j===b?a.videoInfos=[d]:(d=a.videoInfos.map(function(e){return e.id}),a.Aa.qa("sabrpf",{pfid:""+c,
vfids:""+d.join(".")}),z7a(a,b,b),zU(a.j,""));a.nf.Xq||(a.j.B=!1)}else z7a(a,b,b)};
z7a=function(a,b,c){a.videoInfos=a.K;a.videoInfos=g.ot(a.videoInfos,function(d){return d.video.j>=b&&d.video.j<=c})};
u7a=function(a){var b=null;if(b=a.nf.wr?qVa(a.j,a.Ca):g.Db(a.Z,function(c){var d;return!(null==(d=c.uc)||!d.isDefault)}))a.D=[b]};
D7a=function(a,b){return a.map(function(c){return WK(c,b)})};
E7a=function(a){var b;if(null==(b=a.B)?0:b.isLocked())return a.videoInfos;var c=yU(a.j);b=g.ot(a.videoInfos,function(d){return d.Pb>a.nf.Pb?!1:!c.has(d.id)});
pVa(a.j)&&(b=g.ot(b,function(d){return 854>=d.video.width&&480>=d.video.height}));
return b};
F7a=function(a,b){return(null==a?void 0:a.maxWidth)>=(null==b?void 0:b.maxWidth)&&(null==a?void 0:a.maxHeight)>(null==b?void 0:b.maxHeight)||(null==a?void 0:a.maxWidth)>(null==b?void 0:b.maxWidth)&&(null==a?void 0:a.maxHeight)>=(null==b?void 0:b.maxHeight)};
G7a=function(a,b){for(var c=g.u(b.keys()),d=c.next();!d.done;d=c.next())if(d=b.get(d.value),0!==d.length){g.Xb(d,function(l,m){return m.maxFramerate-l.maxFramerate});
for(var e=[d[0]],f=0,h=1;h<d.length;h++)F7a(d[h],e[f])&&(e.push(d[h]),f++);a=a.concat(e)}return a};
K7a=function(a){var b={},c=a.oa,d=a.Ha,e=c.getVideoData(),f=qP(0),h=c.getPlayerSize(),l=c.getVisibilityState();f&&(b.G8=f,b.lastManualDirection=TMa(),f=qqa()||0,0<f&&(f=(d.L("html5_use_date_now_for_local_storage")?Date.now():(0,g.pD)())-f,d.L("html5_use_date_now_for_local_storage")?0<f&&(b.timeSinceLastManualFormatSelectionMs=f):b.timeSinceLastManualFormatSelectionMs=f));b.Lca=qP();if(d.schedule.Ia){var m;f=d.L("html5_disable_bandwidth_cofactors_for_sabr_live")?!(null==(m=a.nf)||!m.rg):!1;b.J5=PR(d.schedule,
!f)}m=g.jS();b.iN=h.width*m;b.hN=h.height*m;d.L("html5_sabr_set_min_viewport")&&(m=g.KK.medium,f=Math.floor(16*m/9),h=e.Nn()?m:f,m=e.Nn()?f:m,b.iN=Math.max(b.iN,h),b.hN=Math.max(b.hN,m));b.visibility=l;b.bda=JE();b.w6=1E3*g.dN(c.Cc().provider);a.Yy&&d.L("html5_sabr_support_quality_constraints")&&(b.Yy=a.Yy);if(d.L("html5_enable_platform_backpressure_with_sabr")){if(b.yv=3,a.yF||(b.yv^=1),!a.DF||mT(e))b.yv^=2}else{if(d.L("html5_onesie_media_capabilities")||d.L("html5_enable_server_format_filter"))b.yv=
3;d.L("html5_onesie_audio_only_playback")&&mT(e)&&(b.yv=1)}e=e.Pe?e.Pe:nT(e);if(d.L("html5_onesie_media_capabilities")){l=d.G;h=[];m=[];var n=[].concat(g.pa(z2a));d.L("html5_early_media_for_drm")&&(n=n.concat(A2a),d.L("allow_vp9_1080p_mq_enc")&&n.push(B2a));f=[].concat(g.pa(C2a));e.Z&&(f[0]=["141"]);n=g.u(n);for(var p=n.next();!p.done;p=n.next()){p=g.u(p.value);for(var q=p.next();!q.done;q=p.next()){q=q.value;var r=r2a(q);if(r&&r.video){var t=g.lJ(d.experiments,"html5_drm_byterate_soft_cap");if(!(0<
t&&zCa(r)&&r.Pb>t)&&!0===CP(e,r,l)){h.push({o1:H7a[OK[q]],maxWidth:r.video.width,maxHeight:r.video.height,maxFramerate:r.video.fps});break}}}}f=g.u(f);for(n=f.next();!n.done;n=f.next())for(n=g.u(n.value),p=n.next();!p.done;p=n.next())if(p=p.value,(q=t2a(p))&&q.audio&&(d.L("html5_onesie_51_audio")||!yCa(q)&&!SK(q))&&!0===CP(e,q,l)){m.push({audioCodec:I7a[OK[p]],numChannels:q.audio.numChannels});break}b.mediaCapabilities={kL:h,YG:m}}var v;if(null==(v=a.nf)?0:v.C&&v.Ml){v=d.G;l=[];h=[];m=new Map;if((f=
v.j)&&0<f.size)for(f=g.u(f.values()),n=f.next();!n.done;n=f.next())if(p=n.value,p.Hi)h.push({audioCodec:I7a[p.sb],numChannels:p.numChannels,Jca:J7a[p.sb]});else{q=H7a[p.sb];n={o1:q,maxWidth:p.maxWidth||0,maxHeight:p.maxHeight||0,maxFramerate:p.maxFramerate||0,t8:p.jY||!1};if(p.zw){n.zw=p.zw;r=r2a(p.itag);if(!r||!r.video)continue;!0===CP(e,r,v)&&(r=8*r.Pb,r>n.zw&&(n.zw=r))}p=q+"_"+p.jY;q=m.get(p)||[];q.push(n);m.set(p,q)}l=G7a(l,m);b.mediaCapabilities={kL:l,YG:h,g8:3}}var x;if(null==(x=a.nf)?0:x.C){b.jo=
e.jo;var A;b.tj=null==(A=a.nf)?void 0:A.tj}if(d.L("html5_enable_drc_toggle_api")){var E;b.qW=null==(E=a.nf)?void 0:E.tb}else d.L("html5_enable_drc")&&(b.qW=!0);b.aR=a.WC;a.Yq&&(b.cda=(0,g.pD)()-a.Yq);a.isPrefetch&&d.L("html5_report_prefetch_requests")&&(b.isPrefetch=!0);zR||(b.h9=!0);d=1E3*OR(d.schedule);0<d&&(b.X5=d);var F;(null==(F=a.nf)?0:F.Xo)&&a.Ew&&Infinity>a.Ew&&(b.Ew=a.Ew);c=c.getPlaybackRate();1!==c&&(b.playbackRate=c);var G;(null==(G=a.nf)?0:G.ub)&&a.Up&&(b.Zu=a.Zu,b.Bx=a.Bx,b.Up=a.Up);
return b};
M7a=function(a,b,c,d){b={playbackCookie:null==b?void 0:b.playbackCookie};d&&(b.gR=d);b.eL=[];if(g.NT(a)&&0<a.sabrContextUpdates.size){b.zK=[];d=g.u(a.sabrContextUpdates.values());for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.type||0,h=void 0;(null==(h=c)?0:h.has(f))?b.zK.push(e):b.eL.push(f)}}a.Cy&&(b.Eca=a.Cy);c=a.U().j;b.clientInfo={clientName:L7a[c.c.toUpperCase()]||0};c.cbrand&&(b.clientInfo.deviceMake=c.cbrand);c.cmodel&&(b.clientInfo.deviceModel=c.cmodel);c.cver&&(b.clientInfo.clientVersion=
c.cver);c.cos&&(b.clientInfo.osName=c.cos);c.cosver&&(b.clientInfo.osVersion=c.cosver);a.Io&&(b.Io=a.Io);return b};
N7a=function(a,b,c){var d=a.manifest,e=a.oa.getVideoData(),f=g.NT(e);f&&c&&c("ssap",{clientCapabilities:EP(e.U().G)});var h=K7a({Ha:e.U(),oa:a.oa,WC:a.WC,nf:a.nf,Yq:a.Yq,Ew:a.Ew,Zu:a.Zu,Bx:a.Bx,Up:a.Up,isPrefetch:a.isPrefetch,yF:a.yF,DF:a.DF,Yy:a.Yy}),l=M7a(e,a.nextRequestPolicy,a.nm,a.gR),m=a.LF,n=a.MF;if(void 0===n&&void 0===m){var p;n=d.yc;n=(m=null==(p=a.RM)?void 0:p.video)?[VK(m.info,n)]:[];var q;p=d.yc;m=(m=null==(q=a.RM)?void 0:q.audio)?[VK(m.info,p)]:[]}if(e.oi)var r=e.oi;e={zs:h,Yn:a.Yn,
LF:m,MF:n,videoPlaybackUstreamerConfig:r,QK:l};if(f&&b){f=new Map;var t=g.u(d.Ia);for(h=t.next();!h.done;h=t.next())h=h.value,(l=d.Ea[APa(d,h)]||"")?(f.has(l)||f.set(l,[]),f.get(l).push(h)):c&&c("ssap",{nocid4fmt:(h.itag||"")+"_"+(h.lmt||0)+"_"+(h.xtags||"")});d=new Map;t=g.u(a.Ld);for(h=t.next();!h.done;h=t.next())h=h.value,l=h.startTimeMs||0,q=void 0,r=null==(q=b)?void 0:WY(q,l),q=r.clipId,r=r.al,q?(d.has(q)||(n=f.get(q)||[],d.set(q,{clipId:q,Ld:[],Tv:n})),0!==r&&(h.startTimeMs=l-r),d.get(q).Ld.push(h)):
c&&(q=void 0,c("ssap",{nocid4range:"1",fmt:(null==(q=h.formatId)?void 0:q.itag)||"",st:l.toFixed(3),d:(h.durationMs||0).toFixed(3),timeline:$Y(b)}));e.aG=[];d=g.u(d.entries());for(f=d.next();!f.done;f=d.next())f=g.u(f.value),f.next(),f=f.next().value,e.aG.push(f);if(a.Ld.length&&!e.aG.length){if(c){e="";a=g.u(a.Ld);for(d=a.next();!d.done;d=a.next())d=d.value,h=t=f=void 0,e+="fmt."+((null==(f=d.formatId)?void 0:f.itag)||"")+"_"+((null==(t=d.formatId)?void 0:t.lmt)||0)+"_"+((null==(h=d.formatId)?void 0:
h.xtags)||"")+";st."+(d.startTimeMs||0).toFixed(3)+";d."+(d.durationMs||0).toFixed(3)+";";c("ssap",{nobfrange:"1",br:e,timeline:$Y(b)})}return}a.XI&&(e.XI=a.XI);a.VI&&(e.VI=a.VI)}else e.Ld=a.Ld,e.Tv=d.Ia,f&&0<(null==(t=a.Ld)?void 0:t.length)&&!b&&c&&c("ssap",{bldmistlm:"1"});return e};
t_=function(a,b,c){var d=this;this.requestType=a;this.resource=b;this.Ib=c;this.C=null;this.Cd={Bnb:function(){var e;return null==(e=d.data)?void 0:e.isPrefetch}}};
O7a=function(a,b,c){if(a.cw())return!0;a.data=b;a.B=N7a(b,c,function(d,e){var f;null!=(f=a.Ib)&&f.Aa.qa(d,e)});
if(!a.B)return!1;a.C=g.GO(a.B,hVa);return!0};
y5a=function(a,b,c){void 0===a.j&&(a.j=JQ(a.resource,b,c));return a.j};
P7a=function(a){var b,c;return(null==(b=a.B)?void 0:null==(c=b.zs)?void 0:c.aR)||0};
Q7a=function(a){var b={},c=[],d=[];if(!a.data)return b;for(var e=0;e<a.data.Ld.length;e++){var f=a.data.Ld[e],h=void 0;c.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+(f.startTimeMs+"_e."+(f.startTimeMs+f.durationMs)+"_d."+f.durationMs)+("_sn."+f.Ao)+("_en."+f.Zi))}for(e=0;e<a.data.Yn.length;e++){f=a.data.Yn[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.Kj||NaN)+"_lb."+f.xY+"_tr.s_"+(null==(l=f.QH)?void 0:l.Fh)+"_d_"+
(null==(m=f.QH)?void 0:m.dD)+"_t_"+(null==(n=f.QH)?void 0:n.Lr))}b.ptime=P7a(a);b.rtype=a.requestType;b.brl=c.join(";");b.ps=d.join(";");return b};
u_=function(a,b){g.I.call(this);this.j=a;this.C=b;this.iv=(0,g.KZ)(FE(16))};
R7a=function(a,b){var c;return g.H(function(d){(0,g.pD)();c=BQa(a.j);return d.return(c.encrypt(b,a.iv))})};
S7a=function(a,b){var c;return g.H(function(d){(0,g.pD)();var e=a.j;e.D||(e.D=new NHa(e.C));c=e.D;return d.return(QHa(c,b,a.iv))})};
T7a=function(a,b,c){var d;return g.H(function(e){(0,g.pD)();d=BQa(a.j);return e.return(d.decrypt(b,c))})};
U7a=function(a){if(a.B)return a.B;if(a.C){var b=new FR(a.C,a.j.j);g.N(a,b);a.B=b}else a.B=new ER(a.j.j);return a.B};
V7a=function(a){this.Bm=a;this.B=!1;this.j=[]};
w_=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.videoId,d=b.Fp,e=b.formatId,f=b.buffer;b=b.R6;if(f)b=void 0,null==(b=v_(a.Bm.ud,c))||n2a(b,d,e,f);else if(b)a.Bm.ud.Np(c,d,e);else if(d=a.Bm,d.j[e].EX=!0,c=v_(d.ud,c),null==c?0:c.bd.has(e))null==c||e2a(c,e)}};
g.Y7a=function(a){this.data=a;this.j=0;this.D=!1;this.C=0;this.error=!1;this.register=this.B=0;if(0===x_.length){x_.length=288;x_.fill(8);for(a=144;280>a;a++)x_[a]=255>=a?9:7;W7a.length=32;W7a.fill(5);y_.length=286;y_.fill(0);for(a=261;285>a;a++)y_[a]=Math.floor((a-261)/4);z_[257]=3;for(a=258;285>a;a++){var b=z_[a-1];b+=1<<y_[a-1];z_[a]=b}z_[285]=258;for(a=0;30>a;a++)X7a[a]=3>=a?0:Math.floor((a-2)/2);for(a=A_[0]=1;30>a;a++)b=A_[a-1],b+=1<<X7a[a-1],A_[a]=b}a=100+7*this.data.length;31===this.data[0]&&
139===this.data[1]&&(a=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.output=new Uint8Array(a)};
g.d8a=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!B_(b,1);switch(B_(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=B_(b,5)+257;var f=B_(b,5)+1;for(var h=B_(b,4)+4,l=0;l<h;l++)d[Z7a[l]]=B_(b,3);d=$7a(d);for(h=e+f;c.length<h;){l=a8a(b,d);switch(l){case 16:l=c[c.length-1];var m=B_(b,2)+3;break;case 17:l=0;m=B_(b,3)+3;break;case 18:l=0;m=B_(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,b8a(b,c,f));break;case 1:b8a(b,x_,W7a);break;case 0:c8a(b,
b.j&7);c=B_(b,16);e=B_(b,16);65535!==(c^e)&&(b.error=!0);b.output.set(b.data.subarray(b.B,b.B+c),b.C);b.B+=c;b.C+=c;break;default:b.error=!0}a.C>a.output.length&&(a.output=new Uint8Array(2*a.C),a.C=0,a.B=0,a.D=!1,a.j=0,a.register=0)}a.output.length!==a.C&&(a.output=a.output.subarray(0,a.C));return a.error?new Uint8Array(0):a.output};
b8a=function(a,b,c){b=$7a(b);c=$7a(c);for(var d=a.data,e=a.output,f=a.C,h=a.register,l=a.j,m=a.B;;){if(15>l){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<<l;m+=2;l+=16}var n=b[h&127];if(0>n)for(h>>=7;0>n;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=h,a.j=l,a.B=m,256<n){h=z_[n];h+=B_(a,y_[n]);m=a8a(a,c);l=A_[m];l+=B_(a,X7a[m]);if(e8a&&h<l)l=f-l,e.copyWithin(f,l,l+h);else for(m=f+h,n=f;n<m;n+=4)e[n]=e[n-l],e[n+1]=e[n-l+1],e[n+2]=e[n-l+2],e[n+3]=e[n-l+3];
f+=h;h=a.register;l=a.j;m=a.B}else break}a.C=f};
a8a=function(a,b){if(7>a.j){var c=a.data,d=a.B;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<<a.j;a.B+=2;a.j+=16}c=b[a.register&127];if(0<=c)return c8a(a,c&15),c>>4;for(c8a(a,7);0>c;)c=b[B_(a,1)-c];return c>>4};
B_=function(a,b){for(;a.j<b;){if(a.B>=a.data.length)return a.error=!0,0;a.register|=a.data[a.B++]<<a.j;a.j+=8}var c=a.register&(1<<b)-1;a.register>>=b;a.j-=b;return c};
c8a=function(a,b){a.j-=b;a.register>>=b};
$7a=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};
f8a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t;return g.H(function(v){switch(v.j){case 1:if(b)try{c=b.exports.malloc(a.length);(new Uint8Array(b.exports.memory.buffer,c,a.length)).set(a);d=b.exports.getInflatedSize(c,a.length);e=b.exports.malloc(d);if(f=WN.Ek(b.j?"gza":"gzw",function(){return b.exports.inflateGzip(c,a.length,e)}))throw Error("inflateGzip="+f);
h=new Uint8Array(d);h.set(new Uint8Array(b.exports.memory.buffer,e,d));b.exports.free(e);b.exports.free(c);return v.return(h)}catch(x){g.tF(x),b.reload()}if(!("DecompressionStream"in window))return WN.isActive()?v.return(WN.Ek("gzj",function(){return g.d8a(new g.Y7a(a))})):v.return(g.d8a(new g.Y7a(a)));
l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new cO([]);if(WN.isActive())return v.return(WN.Ek("gzn",function(){var x,A,E;return g.H(function(F){if(1==F.j)return g.z(F,n.read(),5);if(4!=F.j){x=F.B;A=x.value;if(E=x.done)return F.Ka(4);p.append(A);return F.Ka(1)}return F.return(fO(p))})}));
case 2:return g.z(v,n.read(),5);case 5:q=v.B;r=q.value;if(t=q.done){v.Ka(4);break}p.append(r);v.Ka(2);break;case 4:return v.return(fO(p))}})};
g8a=function(a){vU.call(this,"onesie");this.ud=a;this.j={};this.D=!0;this.C=null;this.queue=new V7a(this);this.G={}};
h8a=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.B&&(b.j.length=0);b=g.u(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.EX){var e=a.queue;e.j.push({videoId:d.videoId,formatId:c,isEncrypted:!1});e.B||w_(e)}}};
j8a=function(a,b){var c=b.getLength(),d=!1;switch(a.C){case 0:a.CQ(b,a.D).then(function(f){var h=a.ud;h.Wd("oprr");h.playerResponse=f;h.KP||(h.EF=!1);C_(h)},function(f){a.ud.xj(f)});
break;case 2:a.Wd("ormk");b=fO(b);var e;a.queue.decrypt(b,!i8a(a.ud),null==(e=a.ud.U())?void 0:e.Ra);break;default:d=!0}a.ud.mm&&a.ud.qa("ombup","id.11;pt."+a.C+";len."+c+(d?";ignored.1":""));a.C=null};
k8a=function(a){return new Promise(function(b){setTimeout(b,a)})};
l8a=function(a,b){var c=AR(b.W.experiments,"debug_bandaid_hostname");if(c)b=iY(b,c);else{var d;b=null==(d=b.j.get(0))?void 0:d.location.clone()}if((d=b)&&a.videoId){b=GR(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}};
m8a=function(a,b,c){c=void 0===c?0:c;var d,e;return g.H(function(f){if(1==f.j)return d=[],d.push(b.load()),0<c&&d.push(k8a(c)),g.z(f,Promise.race(d),2);e=l8a(a,b);return f.return(e)})};
n8a=function(a,b,c,d){d=void 0===d?!1:d;a.set("cpn",b.clientPlaybackNonce);a.set("opr","1");var e=b.U();a.set("por","1");UN()||a.set("onem","1");0<b.startSeconds&&a.set("osts",""+b.startSeconds);d||(e.L("html5_onesie_disable_partial_segments")&&a.set("oses","1"),c?(b=c.audio,a.set("pvi",c.video.join(",")),e.L("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),zR||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad","0"),a.set("oavd","0")))};
o8a=function(a,b,c,d,e){e=void 0===e?!1:e;var f=b.ll,h="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.ZO&&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.pc()});g.rB("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.rB("EOM_VISITOR_DATA")}):(c=c.visitorData||g.rB("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=AR(b.experiments,
"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=aIa(JSON.stringify(a));return{url:h,RO:f,postBody:a,Iba:e,xB:e}};
q8a=function(a,b,c,d,e,f){var h=g.GO(a,QUa,a.xB?void 0:c.Ra),l={encryptedClientKey:b.j.encryptedClientKey,Q_:!0,sW:!0,FN:p8a(c,!!a.xB),m1:c.experiments.kb("html5_use_jsonformatter_to_parse_player_response")};if(a.xB)l.qda=h;else{a=b.encrypt(h);var m;a=(null==(m=c.Ra)?void 0:VXa(m,a))||a;m=l.uW=a;(0,g.pD)();m=MHa(new LHa(b.j.C),m,b.iv);l.QX=m;l.iv=b.iv}b=d.getVideoData();c=K7a({Ha:c,oa:d,WC:1E3*b.startSeconds,yF:!0,DF:!0});return{aP:l,zs:c,onesieUstreamerConfig:e,Io:f,QK:M7a(b)}};
r8a=function(a,b,c){var d,e,f;return g.H(function(h){if(1==h.j)return d=g.GO(b,QUa),g.z(h,R7a(c,d),2);if(3!=h.j)return e=h.B,g.z(h,S7a(c,e),3);f=h.B;return h.return({uW:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,QX:f,Q_:!0,sW:!0,FN:p8a(a,!!b.xB),m1:a.experiments.kb("html5_use_jsonformatter_to_parse_player_response")})})};
s8a=function(a,b,c,d,e,f){var h,l,m;return g.H(function(n){if(1==n.j)return g.z(n,r8a(c,a,b),2);h=n.B;l=d.getVideoData();m=K7a({Ha:c,oa:d,WC:1E3*l.startSeconds,yF:!0,DF:!0});return n.return({aP:h,zs:m,onesieUstreamerConfig:e,Io:f,QK:M7a(l)})})};
p8a=function(a,b){a=PR(a.schedule,!0);b=b||!!UN()&&1572864<a;return"DecompressionStream"in window||!b};
E_=function(a,b){g.I.call(this);var c=this;this.oa=a;this.playerRequest=b;this.W=this.oa.U();this.videoData=this.oa.getVideoData();this.logger=new g.uU("onesie");this.mm=this.W.Dc();this.xN=this.W.vl;this.VE=new u_(this.xN.j,this.W.Ra);this.xhr=null;this.state=1;this.bq=new tL;this.JX=!1;this.playerResponse="";this.El=new DZ(this);this.Bm=new g8a(this);this.rG=this.W.L("html5_onesie_check_timeout");this.aN=new g.Qu(this.P5,500,this);this.WE=new g.Qu(this.HO,1E4,this);this.QJ=new g.Qu(function(){if(!c.isComplete()){var d=
D_(c);c.xj(new BK("net.timeout",d))}},g.lJ(this.W.experiments,"html5_onesie_request_timeout_ms"));
this.PZ=new g.Qu(this.a9,2E3,this);this.St="";this.JI=this.fY=!1;this.Mz=this.oa.Fz();this.LQ="";this.EF=this.L("html5_onesie_wait_for_media_availability");this.enableCompression=this.KP=this.Vz=!1;this.eG=[];g.N(this.videoData,this);g.N(this,this.aN);g.N(this,this.WE);g.N(this,this.PZ);g.N(this,this.VE);a=BR();zR&&a&&!this.W.L("html5_disable_onesie_media_bytes")&&(this.Jg=new Map);this.JW=new Map;this.aZ=new Map;this.A_=new Map};
v_=function(a,b){var c;return null==(c=a.Jg)?void 0:c.get(b)};
t8a=function(a,b,c){var d;return g.H(function(e){if(1==e.j)return a.Wd("oprd_s"),i8a(a)?g.z(e,T7a(a.VE,b,c),3):(d=a.VE.decrypt(b,c),e.Ka(2));2!=e.j&&(d=e.B);a.Wd("oprd_c");return e.return(d)})};
u8a=function(a){return a.L("html5_onesie_host_probing")||a.mm?zR:!1};
C_=function(a){if(!a.playerResponse)return!1;if(a.Vz)return!0;var b=a.videoData.L("html5_onesie_audio_only_playback")&&mT(a.videoData);if(a.Jg&&a.EF){if(!a.Jg.has(a.St))return!1;var c=a.Jg.get(a.St),d;if(d=c){d=!1;for(var e=g.u(c.bd.keys()),f=e.next();!f.done;f=e.next())if(f=c.bd.get(f.value))for(var h=g.u(f.zE),l=h.next();!l.done;l=h.next())0<l.value.Cr&&(f.Hi?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.Wd("ofr");a.bq.resolve(a.playerResponse);if(!a.rG){var m;null==(m=a.QJ)||m.start();a.WE.start()}return a.Vz=
!0};
w8a=function(a){if(a.Jg&&!a.L("html5_onesie_media_capabilities")){a.Wd("ogsf_s");var b=D2a(a.oa.getVideoData(),function(d,e){a.qa(d,e)}),c=v8a(a.oa);
b.video=v2a(c,b.video);a.Wd("ogsf_c");if(b.video.length)return b;a.qa("ombspf","l."+c.B+";u."+c.j+";o."+c.C+";r."+c.reason)}};
i8a=function(a,b){return a.L("html5_onesie_sync_request_encryption")||(null==b?0:b.xB)||g.mS(a.W)&&a.L("html5_embed_onesie_use_sync_encryption")?!1:!!UN()};
D_=function(a){if(!a.Oe)return{};var b=a.Oe.hs();b.d=S4a(a.Oe);b.shost=a.O_;b.ty="o";return b};
x8a=function(a,b){var c,d;(d=null==(a=null==(c=a.Jg)?void 0:c.get(b)))||(b=a.B?!1:a.B=!0,d=!b);return!d};
y8a=function(a,b,c,d,e,f,h,l,m,n){g.I.call(this);var p=this;this.oa=a;this.Aa=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.manifest=f;this.Dd=h;this.Y=l;this.B=m;this.timing=n;this.j=[];this.G={};this.Ca=this.Ia=!1;this.nm=new Set;this.D=this.va=this.N=this.Up=0;this.Cd={jnb:function(){return p.j},
Hmb:function(){return p.G},
Tlb:function(){p.j.length=0},
Umb:function(){return p.nm},
Qmb:function(){return p.N},
wob:function(q){p.N=q},
Bob:function(q){p.D=q}};
this.videoData=this.oa.getVideoData()};
B8a=function(a,b){b=void 0===b?!1:b;if(z8a(a,b)){var c=new t_(0,a.manifest.Na,a);0<a.policy.rd&&a.D++;a.j.push(A8a(a,c,b))}};
C8a=function(a,b){var c=S6a(a.audioTrack),d=S6a(a.videoTrack),e=[].concat(g.pa(c.Ld),g.pa(d.Ld));c=[].concat(g.pa(c.Yn),g.pa(d.Yn));var f;d=(null==(f=a.Aa)?void 0:f.LI())&&(zT(a.videoData)||g.yT(a.videoData));f=a.policy.G&&d;d=a.Aa.getCurrentTime()||0;if(a.Aa.Hp&&a.policy.Mx){var h=T6a(a.videoTrack),l=T6a(a.audioTrack),m=d,n=d;void 0!==h&&(m=h);void 0!==l&&(n=l);if(m<d||n<d)d=Math.min(m,n),a.Aa.qa("sundrn",{vet:m,aet:n,lt:d})}h=a.Aa.Vc()||0;f=f?Number.MAX_SAFE_INTEGER:Math.ceil(1E3*(d+h));d=!F_(a,
a.audioTrack);h=!F_(a,a.videoTrack);l=GR(a.Aa.hI());var p,q;m=a.oa;n=a.manifest;var r=a.C,t=a.nm,v=a.policy,x=a.Aa.Yq,A=1E3*p7a(a.Aa),E=null==(p=a.ma)?void 0:p.Zu;p=null==(q=a.ma)?void 0:q.Bx;var F;q=Number(null==(F=a.B.G)?void 0:F.info.itag)||0;var G;F=Number(null==(G=a.B.C)?void 0:G.info.itag)||0;b={oa:m,manifest:n,Ld:e,Yn:c,WC:f,nextRequestPolicy:r,nm:t,nf:v,Yq:x,Ew:A,Zu:E,Bx:p,Up:a.Up,isPrefetch:b||a.Aa.isSuspended,yF:d,DF:h,gR:l,XI:q,VI:F};a.policy.Vf?(e=a.B,e=e.nf.j&&!e.Y?[]:v7a(e,e.D),b.LF=
e,e=a.B,e.nf.j&&!e.ma?e=[]:(G=E7a(e),0===G.length&&(G=e.K),e=v7a(e,G)),b.MF=e):(a.tI(a.videoTrack.j),a.tI(a.audioTrack.j),b.RM=GU(a.Y));a.policy.Ll&&(a=a.oa.VN().ZZ,b.Yy=a.j);return b};
z8a=function(a,b){if(0<a.policy.rd){var c=Math.floor((0,g.pD)()/1E4);if(c===a.va){if(a.D>=a.policy.rd){if(a.D===a.policy.rd){var d={reason:"toomanyrequests"};d.limit=a.D;a.Aa.handleError("player.exception",d);a.D+=1}return!1}}else a.va=c,a.D=0}b=!b&&!QR(a.Dd);if(a.Aa.isSuspended&&(a.Aa.yH||b)||a.Z&&(0,g.pD)()<a.Z||0<a.j.length||null==(d=a.manifest.Na)||!KOa(d,a.policy,a.G)||k_(a.audioTrack)&&k_(a.videoTrack))return!1;if(a.policy.Ro&&F_(a,a.audioTrack)&&F_(a,a.videoTrack))return a.policy.B&&a.Aa.qa("sabrHeap",
{a:""+f_(a.audioTrack),v:""+f_(a.videoTrack)}),!1;if(!a.C)return!0;if(!a.C.targetAudioReadaheadMs||!a.C.targetVideoReadaheadMs)return a.policy.B&&a.Aa.qa("sabrnrp",{norh:1}),!0;d=Math.min(1E3*p_(a.Aa,a.audioTrack),a.C.targetAudioReadaheadMs);b=Math.min(1E3*p_(a.Aa,a.videoTrack),a.C.targetVideoReadaheadMs);var e=Math.min(d,b);c=1E3*h_(a.audioTrack,!0);var f=1E3*h_(a.videoTrack,!0);var h=c>e;e=f>e;if((!h||!e)&&a.policy.B&&a.policy.Gf){var l=a.Aa.qc();l.car=c;l.vac=f;l.mar=d;l.mvr=b;l.tar=a.C.targetAudioReadaheadMs;
l.tvr=a.C.targetVideoReadaheadMs;a.Aa.qa("sabrrnm",l)}!(d=h&&e)&&(d=a.policy.j)&&(a=a.Aa,a.Qa&&a.Qa.j&&a.Qa.B&&a.ac&&!iR(a.manifest)?(d=a.getCurrentTime(),c=a.Qa.j.hf(),b=a.Qa.B.hf(),c=c?dL(c,d):d,d=b?dL(b,d):d,d=Math.min(c,d),isNaN(d)?d=!1:(a=XY(a.ac),d=d>=a-.01)):d=!1);return d?!1:!0};
A8a=function(a,b,c){var d={Dd:a.Dd,ix:function(m,n){a.oa.sF(m,n)},
kp:a.policy.Il,GN:a.policy.B},e=y5a(b,a.policy,a.G)?2:1;e!==a.N&&(a.N=e,D8a(a));c=C8a(a,c);if(a.policy.j&&a.policy.B&&c.nm){for(var f=e="",h=g.u(c.nm),l=h.next();!l.done;l=h.next())l=l.value,a.videoData.sabrContextUpdates.has(l)?e+="_"+l:f+="_"+l;a.Aa.qa("sabrbldrqs",{ctxts:e,misctxts:f})}!O7a(b,c,a.Aa.Gi())&&a.policy.j&&a.Aa.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);b=new MZ(a.policy,b,a.manifest,a.G,a,d,a.Aa.Fz());NZ(a.timing);return b};
F8a=function(a,b){if(!b.isDisposed()&&!a.isDisposed()){if(a.policy.B&&b.isComplete()&&b instanceof MZ){var c=a.Aa,d=c.qa;var e=Object.assign(b.Oe.hs(),{rst:b.state,strm:b.xhr.BB(),d:S4a(b.Oe),cncl:b.xhr&&b.Jd.C?1:0});e=Object.assign(Q7a(b.info),e);d.call(c,"rqs",e)}if(b.isComplete()&&b.cw())b.dispose();else{if(b.kY())b instanceof MZ&&a.videoData.L("html5_sabr_handle_request_resource_timing")&&J5a(a.timing,b),D8a(a),E8a(a);else if(b.qm())a.Zs(b);else{if(a.Aa.isSuspended&&!b.isComplete())return;E8a(a)}b.isDisposed()||
b instanceof E_||(b.isComplete()?c=k7a(b,a.policy,a.G):(c=j7a(b,a.policy,a.G),1===c&&(a.Ia=!0)),0!==c&&(b=new t_(1,b.info.resource),b.j=2===c,A8a(a,b)))}}a.Aa.xf()};
E8a=function(a){for(;a.j.length&&a.j[0].LX(a.xe());){var b=a.j.shift();G8a(a,b);a.policy.Kd&&b instanceof MZ&&b.dispose()}a.j.length&&G8a(a,a.j[0])};
G8a=function(a,b){if(a.policy.Vf){var c=new Set(b.Dq(a.xe()));c=g.u(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(!(d=!(b instanceof E_))){var f=a.B,h=f.manifest.yc;d=D7a(f.D,h);f=D7a(f.videoInfos,h);d=d.includes(e)||f.includes(e)}if(d&&(d=b.zn(e,a.xe()),b instanceof MZ&&a.videoData.L("html5_sabr_handle_request_resource_timing")&&J5a(a.timing,b,d[0].j),b.fl(e,a.xe()))){e=b.Ik(e,a.xe());if(a.policy.j&&(f=d[0].j.info,(h=a.Aa.Gi())&&f)){var l=b.MW();l!==h.oa.getVideoData().clientPlaybackNonce&&
(h=GY(h.timeline,l))&&(h=h[0].getVideoData())&&(f.Hi()?h.D=f:h.B=f)}e=g.u(e);for(f=e.next();!f.done;f=e.next()){f=f.value;a.policy.B&&b instanceof E_&&a.Aa.qa("omblss",{s:f.info.Qd()});h=f.info.j.info.Hi();l=f.info.j;if(a.videoData.L("html5_log_request_identifier_on_format_change"))if(h){var m=void 0,n=a.B,p=null==(m=b.qO(a.xe()))?void 0:m.token;l!==n.C&&(n.C=l,n.KE(l,n.audioTrack,p))}else m=void 0,w7a(a.B,l,null==(m=b.qO(a.xe()))?void 0:m.token);else h?(m=a.B,l!==m.C&&(m.C=l,m.KE(l,m.audioTrack))):
w7a(a.B,l);l=h?a.audioTrack:a.videoTrack;b instanceof E_&&(l.N=!1,b instanceof E_&&(h?C5a(a.timing):B5a(a.timing)));d_(l,d,f)}}}}else for(d=b.LW()||GU(a.Y),c=new Set(b.Dq(a.xe())),a.policy.j?e=c:e=[(null==(f=d.video)?void 0:WK(f.info,a.manifest.yc))||"",(null==(h=d.audio)?void 0:WK(h.info,a.manifest.yc))||""],d=g.u(e),e=d.next();!e.done;e=d.next())if(e=e.value,c.has(e)&&b.fl(e,a.xe()))for(f=b.Ik(e,a.xe()),f=g.u(f),h=f.next();!h.done;h=f.next())h=h.value,a.policy.B&&b instanceof E_&&a.Aa.qa("omblss",
{s:h.info.Qd()}),l=b.zn(e,a.xe()),n=(m=h.info.j.info.Hi())?a.audioTrack:a.videoTrack,b instanceof E_&&(n.N=!1,b instanceof E_&&(m?C5a(a.timing):B5a(a.timing))),d_(n,l,h)};
H8a=function(a,b){for(var c=[],d=0;d<a.j.length;d++)b&&a.j[d]instanceof E_?c.push(a.j[d]):a.j[d].dispose();a.j=c};
I8a=function(a,b,c){var d=c.XV,e=c.version;e=void 0===e?"":e;if(b.oS===e)b=!0;else{var f=!1,h=b.timeline.j;if(h&&h.getVideoData()){if(b.api.L("html5_ssap_clear_timeline_before_update")){var l=b.timeline,m;null==(m=l.j)||j3a(m);l.B.clear()}l=[];m=h.getVideoData();var n=h.aj(),p=new Map;h=[];var q=[],r=0,t=0,v=0,x=[];d=g.u(d);for(var A=d.next();!A.done;A=d.next()){var E=A.value,F=E.clipId;if(F){if(E.hq){v=E.hq.FY||0;var G=E.hq.GY||1;A=Number(((E.hq.d_||0)/(E.hq.e_||1)*1E3).toFixed(0));var M=Number((v/
G*1E3).toFixed(0));v=G=A+M}else A=v,M=0,G=A,b.XF.has(F)||b.wk.add(F);var P=void 0,R=null!=(P=p.get(F))?P:0;P=!1;if(b.oS)if(b.api.L("html5_ssap_clear_timeline_before_update")){var ba=b.Vj.get(F);ba&&(ba.start=A,ba.end=G,P=!0)}else{var na=b,ta=F;ba=A;var ka=G,va=GY(na.timeline,ta);if(null!=va&&va.length){R<va.length&&(va[R].Bc=ba,va[R].B=ka);if(na=na.Vj.get(ta))na.start=ba,na.end=ka;ba=!0}else ba=!1;if(ba){p.set(F,R+1);f=!0;continue}}x.push(F);!P&&E.hq&&(x=new g.UJ(A,G,{id:x.join(","),namespace:"ssap",
priority:9}),b.Vj.set(F,x),h.push(x),x=[]);ba=P=void 0;if((null==(P=E.hq)?void 0:P.D1)===(null==(ba=m)?void 0:ba.videoId)){E=void 0;F!==(null==(E=m)?void 0:E.clientPlaybackNonce)&&(E=void 0,b.api.qa("ssap",{cnm:1,cid:F,cpn:null==(E=m)?void 0:E.clientPlaybackNonce}));if(b.api.L("html5_ssap_clear_timeline_before_update"))m&&(m.fk=A),F=HY(b.timeline,1,A,M,m),l.push(F),A=FY(b.timeline,A,G,[F]),f=f||A;else if(E=[],m&&(m.fk=A,P=void 0,E=null!=(P=GY(b.timeline,F))?P:[]),!b.oS&&E.length&&0===R){f=E[0];f.Bc=
A;f.B=G;E=void 0;M=null==(E=b.timeline.j)?void 0:E.j;P=void 0;if((E=null==(P=M)?void 0:P.get(0))&&M)for(P=0;P<E.length;P++)if(ba=E[P],ba.zf()!==ba.dj()){ba.Bc=A;ba.C=G;E.splice(P,1);M.has(A)?M.get(A).push(ba):M.set(A,[ba]);break}l.push(f);p.set(F,R+1);f=!0}else F=HY(b.timeline,1,A,M,m),l.push(F),A=FY(b.timeline,A,G,[F]),f=f||A;q.length&&(q=M3a(b,r||0,t,q),f=f||q);t=r=G;q=[]}else P=b.kz.get(F),ba=void 0,R=null!=(ba=P)?ba:new g.XS(b.api.U(),{cpn:F}),b.wk.has(F)&&b.kz.set(F,R),r=Math.min(A,r),t=Math.max(G,
t),b.api.qa("ssap",{e:A,d:M,c:F,p:P?1:0}),R.fk=A,G=void 0,A=HY(b.timeline,2,A,M,R,null==(G=E.YP)?void 0:G.dJ),q.push(A),b.WR&&E.hq&&!b.KW&&(b.api.qa("ssap",{reloada:F}),b.Bv=F)}else b.api.qa("ssap",{cm:1})}q.length&&(m=M3a(b,r||0,t,q),f=f||m);n&&l.length&&(g3a(b.timeline,n,l),b.api.L("html5_ssap_clear_timeline_before_update")&&(l=l[l.length-1].dj(),null!=(m=b.timeline.j)&&(m.B=l)));h.length&&b.oa.Ly(h);if(f){b.oS=e;h=b.oa.fm();e=[];h=g.u(h);for(l=h.next();!l.done;l=h.next()){l=l.value;if(l.C){m=UY(b,
l.C);if(m===l.al)continue;l.start=l.start-l.al+m;l.end=l.end-l.al+m;l.al=m;e.push(l)}l=b.oa.Nh;0>=e.length||l.isDisposed()||(l=l.j,l.array.sort(l.j))}b.api.qa("ssap",{tu:i3a(b.timeline,b.dg)})}else b.api.qa("ssap",{tnu:1});b=!0}else b.api.qa("ssap",{htsm:h?0:1}),b=!1}b?((b=c.context)&&b.type&&(a.videoData.sabrContextUpdates.set(b.type,b),b.sendByDefault&&a.nm.add(b.type)),a.videoData.Cy=c.version||""):a.Aa.qa("ssap",{v:c.version,tlnu:1})};
D8a=function(a){a.nm.clear();if(0<a.videoData.sabrContextUpdates.size)for(var b=g.u(a.videoData.sabrContextUpdates.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;(null==(d=a.videoData.sabrContextUpdates.get(c))?0:d.sendByDefault)&&a.nm.add(c)}};
J8a=function(a){a.policy.ub&&(a.ma=void 0,a.Up=0)};
K8a=function(a,b){if(b.qm()||b.isDisposed()){var c=a.Aa,d=c.qa,e=b.state;a=a.xe();var f,h;if(null==(b=null==(f=b.Jg)?void 0:f.get(a)))b=void 0;else{f=0;a=b.Dq();for(var l=0;l<a.length;l++){var m=void 0;f+=(null==(m=b.bd.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.eG.push(a),NZ(a.timing)};
F_=function(a,b){return!a.Aa.Zo&&wZ(b)&&(b.Zn()!==wZ(b)||a.Aa.isSuspended)};
L8a=function(a){var b="";a=g.u(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;b+=".cid."+c.clipId;if(c.hq){var d=c.hq;b+=".vid."+d.D1+(".pst."+d.d_)+(".ps."+d.e_)+(".lst."+d.N8)+(".ld."+d.FY)+(".ls."+d.GY)}c.YP&&(b+=".nonv."+c.YP.dJ)}return b};
M8a=function(a,b,c,d,e){this.Aa=a;this.policy=b;this.schedule=c;this.Zy=d;this.Y=e;this.ma=NaN;this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1;this.Z=NaN};
N8a=function(a,b,c,d,e,f){return b.Xf&&b.Fe&&3===c?new M8a(a,b,d,e,f):null};
O8a=function(a,b){if(a.policy.xC){var c=b.info.Pb,d=PR(a.schedule);b=b.index.Nj;c=Math.max(1,d/c);a.Z=Math.round(1E3*Math.max(((c-1)*b+a.policy.Nb)/c,b-a.policy.zj))}};
R8a=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.K,f=e>=a.policy.Ix,h=!1;if(f){var l=0;!isNaN(b)&&b>a.G&&(l=b-a.G,a.G=b);l/e<a.policy.zC&&(h=!0);a.K=c}c=d>=a.policy.zj&&!a.C;if(!f&&!c&&P8a(a,b))return NaN;c&&(a.C=!0);a:{d=h;c=(0,g.pD)()/1E3-(a.Zy.cj()||0)-a.N.B-a.policy.Nb;f=a.B.startTime;c=f+c;if(d){if(isNaN(b)){G_(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.yj;d<c&&(c=d)}else a.C&&(d=c+a.policy.Nb-a.ma+a.policy.BC,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.yj))),c=d);f=c=Math.max(c,
f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&P8a(a,b))return Q8a(a,b),NaN;if(a.j<=a.B.startTime)return G_(a,NaN,"y",b),a.clear(),NaN;if(!a.Y(a.j,!1))return!Q8a(a,b)&&h&&(G_(a,NaN,"t",b),a.clear()),NaN;h=a.j;G_(a,h,"s",b);a.clear();return h};
Q8a=function(a,b){return a.Y(a.j,!0)?!1:(G_(a,NaN,"ns",b),a.clear(),!0)};
P8a=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.C?a.policy.yj:a.policy.yC)};
G_=function(a,b,c,d){var e=a.D.Eq();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=(0,g.pD)().toFixed(0);e.ssr_f=(1E3*a.N.B).toFixed(0);e.ssr_fa=a.C?"1":"0";e.ssr_o=(1E3*a.Zy.cj()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.B.j.index;b.Fn(a.B.Pa,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.B.Pa)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.B.Pa)).toFixed(0));a.Aa.qa("ssr",e)};
S8a=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.H_=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.I.call(this);var p=this;this.oa=a;this.schedule=b;this.policy=c;this.manifest=d;this.Ca=m;this.Vb=n;this.timing=new A5a(this.Vb);this.Z=new D4a(this.schedule,this.policy);this.Qa=null;this.tb=new g.Qu(this.xf,0,this);this.vE=new g.Qu(this.xf,1E3,this);this.Ob=new g.Qu(this.xf,void 0,this);this.fb=new g.Qu(this.xf,1E4,this);this.Gb=new g.Qu(this.wba,250,this);this.N=this.currentTime=NaN;this.Ma=this.Zo=0;this.Hp=this.yH=this.isSuspended=!1;this.Ra=
"";this.nH=new HR(5);this.jc={};this.timestampOffset=NaN;this.ub=!1;this.Za=0;this.Y=null;this.Ia=NaN;this.ib=this.Na=!1;this.logger=new g.uU("dash");this.Yq=0;this.Wa=!1;this.Xa=0;this.Cd={getAudioTrack:function(){return p.audioTrack},
aX:function(){return p.manifest},
nnb:function(){return p.ma},
xf:function(){p.xf()},
eF:function(){p.Zo=0;p.eF()}};
a=m&&m.Dq();m&&(m2a(m,this.manifest,this.policy),this.Ia=Date.now());this.j=new rVa(this,this.Z,c,this.manifest,e,a);c=wVa(this.j,f,h&&h.id);this.audioTrack=new M6a(this,this.policy,c.audio,this.timing);this.videoTrack=new M6a(this,this.policy,c.video,this.timing);this.videoTrack.D.Ia=this.audioTrack.lO();this.Ea={updateend:this.F4,error:this.D9};g.N(this,this.tb);g.N(this,this.vE);g.N(this,this.Ob);g.N(this,this.fb);c=this.policy.dA&&this.policy.Yj?!wCa(this.videoTrack.j.info):!1;this.Nb=Q5a({nj:this.policy.N.nj||
c,Yj:this.policy.Yj&&!c,xu:this.policy.xu});this.K=N8a(this,this.policy,this.Nb,this.schedule,this.nH,function(G,M){return T8a(p,G,M)});
this.G=new L5a(this,this.manifest,this.policy,this.videoTrack,this.audioTrack,l);this.B=new oZ(this,this.manifest,this.videoTrack,this.audioTrack,this.policy);l=this.policy.zr?this.oa.getVideoData().oi:null;this.D=new n_(this,this.policy,this.videoTrack,this.audioTrack,this.jc,this.G,this.timing,this.Z,this.schedule,this.manifest,this.j,this.K,c,l);g.N(this,this.D);this.C=new s_(this,this.policy,this.videoTrack,this.audioTrack,this.manifest,e,null==h?void 0:h.id);g.N(this,this.C);A7a(this.C,f);this.ma=
new y8a(this.oa,this,this.policy,this.audioTrack,this.videoTrack,this.manifest,this.schedule,this.j,this.C,this.timing);g.N(this,this.ma);this.va=this.oa.oe.It.sz;var q,r;if(null==(q=this.va)?0:null==(r=q.hA)?0:r.QI){var t;this.DJ(null==(t=this.va)?void 0:t.hA.QI)}var v;if(null==(v=this.va)?0:v.playbackStartPolicy){var x,A;KXa(this.policy,null==(x=this.va)?void 0:x.playbackStartPolicy,3,null==(A=this.va)?void 0:A.Kq())}if(this.policy.Gf){e=this.xe();var E;(f=e?null==(E=this.va)?void 0:E.aZ.get(e):
void 0)&&this.ma.Op(f)}if(!this.manifest.Z){var F;E=null==(F=this.va)?void 0:F.AY;(null==E?0:E.xI)&&(null==E?0:E.yI)&&this.manifest.yc&&WPa(this.manifest,E.xI,E.yI)}this.logger.debug("Created")};
U8a=function(a,b){var c=WK(b.j.info,a.manifest.yc),d,e=(null==(d=a.Ca)?void 0:d.zn(c))||[];if(0===e.length)return a.qa("ombmsi",{}),!1;a:{e=new GQ(e);d=a.currentTime;e=g.u(e.eb);for(var f=e.next();!f.done;f=e.next())if(f=f.value,3===f.type&&d>=f.C&&d<=f.D){d=!0;break a}d=!1}if(!d)return a.qa("ostmf",{ct:a.currentTime,a:b.j.info.Hi()}),!1;null!=(a=a.Ca)&&(a.bd.get(c).GC=!0);return!0};
V8a=function(a){if(!a.manifest.yc)return!0;var b=a.oa.getVideoData();if(b.L("html5_skip_live_preroll_onesie")&&I_(a.oa)||b.L("html5_skip_live_preroll_onesie_post_live")&&I_(a.oa)&&(b.ye||b.isPremiere))return a.qa("ombpa",{}),!1;var c,d;if(a.policy.zy&&!!(null==(c=a.va)?0:null==(d=c.AY)?0:d.xba)!==a.manifest.ye)return a.qa("ombplmm",{}),!1;c=b.Gb||b.liveUtcStartSeconds||b.jk;if(a.manifest.ye&&c)return a.qa("ombplst",{}),!1;if(a.manifest.Z)return a.qa("ombab",{}),!1;c=Date.now();return iR(a.manifest)&&
!isNaN(a.Ia)&&c-a.Ia>1E3*a.policy.PB?(a.qa("ombttl",{}),!1):a.manifest.qf&&a.manifest.C||!a.policy.CC&&a.manifest.isPremiere||pT(b)?!1:!0};
W8a=function(a,b){var c=b.j,d=a.manifest.yc;if(V8a(a))if(a.Ca&&a.Ca.bd.has(WK(c.info,d))){if(d=WK(c.info,d),U8a(a,b)){var e=new GQ(a.Ca.zn(d)),f=function(h){try{if(h.qm())a.handleError(h.gh(),h.Eq()),j_(b,h),IQ(h.info)&&q_(a.D,b,c,!0),a.xf();else if(s7a(a.D,h)){var l;null==(l=a.G)||N5a(l,h.info,a.Y);a.xf()}}catch(m){h=DK(m),a.handleError(h.errorCode,h.details,h.severity),a.Pk()}};
c.C=!0;zOa(e)&&(O6a(b,new pZ(a.policy,d,e,a.Ca,f)),NZ(a.timing))}}else a.qa("ombfmt",{})};
J_=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.currentTime;var c=r_,d=a.videoTrack,e=a.j;b=e.nextVideo&&e.nextVideo.index.Fi(b)||0;e.Ea!==b&&(e.Ma={},e.Ea=b,DU(e,e.j));b=!e.j.isLocked()&&-1<e.ma&&(0,g.pD)()-e.ma<1E3*e.policy.xG;var f=e.nextVideo&&3*HU(e,e.nextVideo.info)<KU(e.Ia);if(!b||f)CU(e),EU(e),e.Ca=e.Ca||e.nextVideo!==e.C;e.nextVideo&&!e.nextVideo.index.isLoaded()&&(e.Ea=-1);c(a,d,e.nextVideo);r_(a,a.audioTrack,a.j.B)};
K_=function(a,b){a.yH=b;a.policy.va||(a.logger.debug("Suspended."),a.isSuspended=!0,a.policy.Hx&&(a.vE.stop(),a.tb.stop()))};
M5a=function(a,b,c,d){Z6a(a.videoTrack,d,c,b);Z6a(a.audioTrack,d,c,b);hR(a.manifest,d,!0);hR(a.manifest,d,!1);a.qa("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
X8a=function(a){a.logger.debug("Rebuffering.");a.Hp=!0;if(a.policy.Ia&&a.Qa){var b,c,d,e;a.qa("lr_rb",{c:a.currentTime,s:a.eg(),ab:aL(a.Qa.j.hf()),ala:null==(b=c_(a.audioTrack))?void 0:b.Qd(),alr:null==(c=a.audioTrack.B)?void 0:c.Qd(),vb:aL(a.Qa.B.hf()),vla:null==(d=c_(a.videoTrack))?void 0:d.Qd(),vlr:null==(e=a.videoTrack.B)?void 0:e.Qd()})}};
Y8a=function(a){a.policy.Ma=!1;try{a.eF()}catch(b){g.tF(b)}};
a9a=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;a.policy.va&&(a.logger.debug("disable updateMetadataWithoutMediaSource"),a.policy.Ca&&a.qa("loader",{setsmb:0}),a.Pk(),a.policy.va=!1);a.logger.debug("attaching media source");Z8a(a,d);if(XV(a.policy)&&!jL()&&a.policy.Jl)a.qa("ssap",{delaysb:1}),a.Qa=b;else{if(!rL(b)){var e=wZ(a.videoTrack);e=e?e.info.j:a.videoTrack.j;var f=wZ(a.audioTrack);f=f?f.info.j:a.audioTrack.j;a.policy.j&&a.qa("ssap",{initsb:1,v:e.info.id,vf:e.info.sb,a:f.info.id,af:f.info.sb});
ICa(b,e.info,f.info,a.policy.Za)}$8a(a,b,c,d);try{a.xf()}catch(h){g.tF(h)}}};
$8a=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;b_(a.videoTrack,b.B||null,d);b_(a.audioTrack,b.j||null,d);a.Qa=b;a.Qa.G=!0;c||a.resume();g.OF(b.j,a.Ea,a);g.OF(b.B,a.Ea,a)};
Z8a=function(a,b){b=void 0===b?!1:b;a.Qa&&a.Qa.j&&a.Qa.B&&(PF(a.Qa.j,a.Ea,a),PF(a.Qa.B,a.Ea,a));b_(a.audioTrack,null,b);b_(a.videoTrack,null,b);a.Qa&&(a.Qa.G=!1);a.Qa=null};
b9a=function(a){a.Qa&&a.Qa.Ug()&&(a.oz(),a.policy.sC&&a.handleError("fmt.unplayable",{unexpected:1},1))};
d9a=function(a,b){if(!a.isDisposed())if(XV(a.policy)){if(!B7a(a.C,b)){var c=a.C.B;A7a(a.C,b);var d=!1;d=b.isLocked()&&"m"===b.reason&&C7a(a.C,b.j);var e=a.policy.Ff&&"l"===b.reason;c=c.j>b.j&&"b"===b.reason;d||e||c?(a.oa.zo({reattachOnConstraint:d?"u":e?"drm":"perf",lo:b.B,up:b.j}),a.policy.Xq&&(a.C.j.B=!1)):L_(a)}}else if(!xVa(a.j,b)&&a.videoTrack){a.logger.debug(function(){return"Setting constraint: r="+b.reason+" u="+b.j});
c=a.j.j;c9a(a,zVa(a.j,b));J_(a);d=b.isLocked()&&"m"===b.reason&&a.j.Ca;e=a.policy.Ff&&"l"===b.reason&&l_(a.videoTrack);c=c.j>b.j&&"b"===b.reason;var f=a.j.fb&&!jL();d||e||c||f?a.oa.zo({reattachOnConstraint:d?"u":e?"drm":f?"codec":"perf"}):L_(a)}};
e9a=function(a,b,c){if((!a.Qa||nL(a.Qa)&&!a.policy.Dl)&&!a.B.eg()&&(XV(a.policy)||l_(b)&&b.j.wg()&&a.j.va)){var d=a.currentTime+H4a(a.Z,b,c);a.logger.debug(function(){return"Clearing back to "+d.toFixed(3)});
Y6a(b,d)}};
c9a=function(a,b){b&&(a.logger.debug(function(){return"Logging new format: "+ZK(b.video.info)}),f9a(a.oa,new BU(b.video,b.reason)));
if(a.j.Xa){var c=GU(a.j,"a");a.oa.Nw(new BU(c.audio,c.reason))}};
L_=function(a){g.Ru(a.tb)};
g9a=function(a,b){var c=(0,g.pD)()-b,d=1E3*h_(a.audioTrack,!0),e=1E3*h_(a.videoTrack,!0);a.logger.debug(function(){return"Appends paused for "+c});
if(a.policy.B&&(a.qa("apdpe",{dur:c.toFixed(),abuf:d.toFixed(),vbuf:e.toFixed()}),YV(a.policy))){var f=KU(a.Z);a.qa("sdps",{ct:b,ah:d.toFixed(),vh:e.toFixed(),mr:I4a(a.Z,a.Hp,f),bw:f.toFixed(),js:a.eg(),re:+a.Hp,ps:(a.policy.VB||"").toString(),rn:(a.policy.UB||"").toString()})}};
h9a=function(a){if(a.policy.j&&m_(a.videoTrack)&&m_(a.audioTrack))return"ssap";if(g7a(a.videoTrack))return a.logger.debug("Pausing appends for server-selectable format"),"ssf";if(k_(a.audioTrack)||k_(a.videoTrack)&&"f"!==a.videoTrack.j.info.sb)return"";if(a.B.eg()){var b=a.Z;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.C){var e=b.policy.Ui;YV(b.policy)&&(e=I4a(b,!1,KU(b)));b=e;c=h_(d,!0)>=b&&h_(c,!0)>=b}else c.C.length||d.C.length?(e=c.j.info.Pb+d.j.info.Pb,e=10*(1-KU(b)/e),b=Math.max(e,b.policy.Ui),
c=h_(d,!0)>=b&&h_(c,!0)>=b):c=!0;if(!c)return"abr";c=a.videoTrack;if(0<c.C.length&&1===c.D.B.length&&u6a(c.D).info.K<c.Ma)return"seek"}c=!a.policy.Yg||10>a.currentTime||360<a.videoTrack.j.info.video.j;d=YV(a.policy)&&a.policy.Hl;if(!a.Hp||!d&&c)return"";c=a.policy.Yg;YV(a.policy)&&(c=I4a(a.Z,a.Hp,KU(a.Z)));c=b7a(a.videoTrack,a.currentTime,c)||b7a(a.audioTrack,a.currentTime,c);return YV(a.policy)?c?"mbnm":"":(0<a.videoTrack.C.length||0<a.audioTrack.C.length||l7a(a.D,a.videoTrack,a.audioTrack)||l7a(a.D,
a.audioTrack,a.videoTrack))&&c?"nord":""};
i9a=function(a){if(a.K){var b=a.K.xf(a.audioTrack,eL(a.Qa.B.hf()));b&&a.oa.seekTo(b,{Qv:!0,Ed:"pollSubsegmentReadahead",tq:!0})}};
n9a=function(a,b,c){if(c.dP())return!0;if(!c.hH())return!1;var d=wZ(b);if(!d||7===d.info.type)return!1;var e=a.policy.pF;if(e&&!d.info.mf&&d.info.K<(d.info.C-a.currentTime)*e)return!1;var f;if(null==(f=a.G)||1===f.B||2===f.B||0!==f.B&&b===f.Ca&&d.info.Pa>c7a(f.Y))return a.B.eg()&&L_(a),!1;j9a(a,b,c,d.info);if(a.manifest.B&&0===d.info.Zb){if(e=k9a(b,c,d))f=c_(b),a.qa("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Pa});f=g.TK(d.info.j.info);a.policy.jc&&f&&!e&&gPa(d)}e=
a.K&&!!a.K.D&&b.j.info.audio;f=a.manifest.isManifestless||d.G;if(!(a.manifest.B&&0!==d.info.Zb||f&&!e)&&l9a(a,c,d))return!0;if(e)return!1;e=p_(a,b);if(d.info.C>a.currentTime+e)return a.policy.C&&!a.Ma&&(a.Ma=(0,g.pD)()),!1;a.Ma&&(a.Ma=0);var h;a.policy.Lc&&c===(null==(h=a.Qa)?void 0:h.j)&&a.Wa&&(0===c.pI()?(a.Wa=!1,a.policy.Lc=!1):a.Xa=c.pI());if(!m9a(a,c,d))return!1;b.Xt(d);CVa(a.j,d.info);a.logger.debug(function(){return"Appended "+d.info.Qd()+", buffered: "+aL(c.hf())});
return!0};
m9a=function(a,b,c){var d=a.policy.Ia?(0,g.pD)():0,e=c.G?c.info.j.j:null,f=c.j;c.G&&(f=o9a(a,c,f)||f);var h=fO(f);f=a.policy.Ia?(0,g.pD)():0;e=p9a(a,b,h,c.info,e);a.policy.Ia&&(!c.info.Zb||c.info.mf||10>c.info.C)&&(b=b.qc({as:c.info.Qd(),pdur:Math.round(f-d),adur:Math.round((0,g.pD)()-f)}),b.omt=(a.getCurrentTime()+a.Vc()).toFixed(3),b.to=a.Vc(),a.qa("sba",b));if("s"===e)return a.Na&&(a.logger.debug("Retry succeed, back to normal append logic."),a.Na=!1,a.ib=!1),a.Za=0,!0;if("i"===e||"x"===e)return q9a(a,
"checked",e,c.info),!1;if("q"===e){if(!a.Na)return a.logger.debug("QuotaExceeded, retrying."),a.Na=!0,!1;if(!a.ib)return a.ib=!0,a.oa.seekTo(a.currentTime,{Ed:"quotaExceeded",tq:!0}),!1;c.info.Hg()?(b=a.policy,b.ma=Math.floor(.8*b.ma),b.Jc=Math.floor(.8*b.Jc),b.Y=Math.floor(.8*b.Y)):(b=a.policy,b.Ra=Math.floor(.8*b.Ra),b.Y=Math.floor(.8*b.Y));XV(a.policy)?xU(a.C.j,c.info.j,!1):FU(a.j,c.info.j)}a.oa.zo({reattachOnAppend:e});return!1};
o9a=function(a,b,c){var d;if(d=a.policy.Ex&&a.Qa&&!a.Qa.ma&&!a.oa.FH())b=b.info.j.info,d=b.Ve()&&QK(b)&&b.video&&3840>b.video.width&&b.video.width>b.video.height;if(d&&(a.Qa.ma=!0,HK('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=r6a(c),a.policy.B&&a.qa("sp4k",{s:!!c}),c};
q9a=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",XV(a.policy)?!d.j.info.video||0<yU(a.C.j).size||xU(a.C.j,d.j,!1):!d.j.info.video||0<yU(a.j.G).size||FU(a.j,d.j)):"i"===c&&(15>a.Za?(a.Za++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=FQ(d);var h;d.mrs=null==(h=a.Qa)?void 0:sL(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
J6a=function(a,b,c,d,e){var f=a.manifest;var h=!1,l=-1;for(p in f.j){var m=XK(f.j[p].info.mimeType)||f.j[p].info.Hg();if(d===m)if(m=f.j[p].index,m.Fn(b.Pa)){if(!f.Ra){h=m;m=b;var n=h.un(m.Pa);n&&n.startTime!==m.startTime?(h.segments=[],h.XL(m),h=!0):h=!1}h&&(l=b.Pa)}else m.XL(b),h=!0}if(0<=l){var p={};f.ra("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;O4a(a.B,b,d,f);a.G.zQ(b,c,d,e);b.Pa===a.manifest.qf&&f&&fR(a.manifest)&&b.startTime>fR(a.manifest)&&(a.manifest.Za=b.startTime+(isNaN(a.timestampOffset)?
0:a.timestampOffset),a.B.eg()&&a.B.j<a.manifest.Rd()&&a.B.seek(a.manifest.Rd(),{}))};
j9a=function(a,b,c,d){b=c_(b);!b||b.mf||EQ(b,d)||c.abort();!c.CD()||jL()?c.CS(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.CD()&&a.qa("ctu",{ct:jL(),prev_c:c.CD(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.Kl&&b&&(d=0+b.duration,b=-b.j,0===c.sD()&&d===c.SH()||c.IR(0,d),b!==c.Vc()&&(c.Yp(b),$Z&&L6a(a.audioTrack.lO(),c.wO())))};
l9a=function(a,b,c){c.info.j.wg();var d=c.info.j.j;if(!d||!b.hH()||b.Cv()===d)return!1;var e=d,f=b.ZH();if(a.policy.Ip&&f&&b.isView()&&g.TK(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=$Na(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.qa("fenc",{})}a.policy.Ex&&(f=o9a(a,c,new cO([e])))&&(e=fO(f));f=null;(h=c.info.j.Gv(0,c.info.clipId))&&(f=h.eb[0]);a.policy.Ia&&a.qa("sbi",b.qc({as:c.info.Qd()}));a.policy.Lx&&b.abort();d=p9a(a,b,e,f,d);if("s"!==d)return q9a(a,
"sepInit",d,c.info),!0;c.info.Hg()?F5a(a.timing):G5a(a.timing);a.logger.debug(function(){return"Appended init for "+c.info.j.info.id});
return b.hk()};
k9a=function(a,b,c){if(null==b.Cv()){a=c_(a);if(!(b=!a||a.j!==c.info.j)){a:if(a=a.N,c=c.info.N,a.length!==c.length)c=!1;else{for(b=0;b<a.length;b++)if(!g.Zb(a[b],c[b])){c=!1;break a}c=!0}b=!c}return b}a=b.Cv();c.info.j.aA()&&hPa(c);c=c.info.j.j;return a!==c&&!g.Zb(a,c)};
p9a=function(a,b,c,d,e){var f=0;if(a.policy.j&&d&&d.clipId&&a.ac){var h;f=((null==(h=a.ac)?void 0:UY(h,d.clipId))||0)/1E3}try{a.policy.j&&b.Vc()!==f&&b.Yp(f),b.appendBuffer(c,d,e)}catch(l){if(l instanceof DOMException){if(11===l.code)return"i";if(12===l.code)return"x";if(22===l.code||0===l.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:aL(b.hf()).replace(/,/g,"_"),vheap:f_(a.videoTrack),aheap:f_(a.audioTrack),message:g.Eg(l.message,3),track:a.Qa?b===
a.Qa.B?"v":"a":"u"},S8a()),a.handleError("player.exception",b),"q";g.tF(l)}return"u"}return a.Qa.Ug()?"m":"s"};
vZ=function(a,b,c){a.oa.seekTo(b,c)};
YZ=function(a,b){a.oa.GJ(b)};
p_=function(a,b){if(a.Na&&!a.Hp)return 3;if(a.isSuspended)return 1;var c;if(a.policy.DC&&(null==(c=a.Qa)?0:mL&&c.Qa&&!1===c.Qa.streaming))return 4;c=(b.j.info.audio?a.policy.Ra:a.policy.ma)/(b.Pb*a.policy.jl);if(0<a.policy.Wm&&a.Qa&&nL(a.Qa)&&(b=b.j.info.video?a.Qa.B:a.Qa.j)&&!b.hk()){b=b.hf();var d=bL(b,a.currentTime);0<=d&&(b=a.currentTime-b.start(d),c+=Math.max(0,Math.min(b-a.policy.Wm,a.policy.nG)))}0<a.policy.Y&&(c=Math.min(c,a.policy.Y));return c};
s9a=function(a){a.Ra&&!a.isSuspended&&QR(a.schedule)&&(r9a(a,a.Ra),a.Ra="")};
r9a=function(a,b){sU(b,"cms",function(c){a.policy.B&&a.qa("pathprobe",c)},function(c){a.oa.handleError(c)})};
t9a=function(a,b){if(a.Qa&&a.Qa.G&&!a.Qa.Ug()&&(b.Xu=h_(a.videoTrack),b.B=h_(a.audioTrack),a.policy.B)){var c=f_(a.videoTrack),d=f_(a.audioTrack),e=aL(a.Qa.B.hf(),"_",5),f=aL(a.Qa.j.hf(),"_",5);Object.assign(b.j,{lvq:c,laq:d,lvb:e,lab:f})}b.bandwidthEstimate=nZ(a.Z);a.logger.debug(function(){return AK(b.j)})};
u9a=function(a,b){a.Y=b;a.G&&(a.G.K=b);a.Y.TR(a.videoTrack.j.info.Ve());a.D.B=a.Y};
v9a=function(a,b){if(a.Qa&&a.Qa.B){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;a.currentTime!==b&&a.resume();if(a.B.eg()&&a.Qa&&!a.Qa.Ug()){var c=a.currentTime<=b&&b<a.currentTime+10,d=cL(a.Qa.B.hf(),a.currentTime+m7a);c&&d&&(a.B.G=!1)}a.B.eg()||(a.currentTime=b);g.Ru(a.vE)}};
w9a=function(a,b){var c=V6a(a.videoTrack).find(function(d){return d.startTime>=b&&T8a(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
T8a=function(a,b,c){if(!(a.videoTrack.j.wg()&&a.audioTrack.j.wg()&&a.Qa&&a.Qa.B&&a.Qa.j))return!1;if(c&&a.manifest.isManifestless&&(-1===a.videoTrack.K||-1===a.audioTrack.K))return!0;var d=sZ(a.videoTrack,b,c);if(isNaN(d))return!1;a=sZ(a.audioTrack,a.policy.Fe?b:d,c);return isNaN(a)?!1:!0};
M_=function(a){a.Pk();a.B.eg()&&a.logger.debug("seeking cancelled by seek-to-head");a.K&&O8a(a.K,a.videoTrack.j);L_(a);a=a.B;var b=Math.max(a.videoTrack.D.C||0,a.audioTrack.D.C||0);X6a(a.videoTrack);X6a(a.audioTrack);a.policy.G||VPa(a.manifest);a.manifest.isManifestless&&!a.policy.G&&(a.B=!0,a.C=0);a.Aa.currentTime=b;a.G=!0;a.D=new tL;return a.D};
r_=function(a,b,c,d){(void 0===d?0:d)&&!b.Ia&&(a.policy.Ey&&!jL()&&((d=b.dc)&&d.gw(c.info)||x9a(a,b,c)),b.Ia=!0);b.j!==c&&(a.logger.debug(function(){return"Setting target itag: "+c.info.id+" (was "+b.j.info.id+")"}),b.j=c)};
x9a=function(a,b,c){if(a.Qa){var d=c.info.Hg(),e=d?a.Qa.B:a.Qa.j;e&&PF(e,a.Ea,a);a.qa("ssap",{reinitsb:1,itag:c.info.id,mime:c.info.mimeType});e=a.Qa;var f=c.info,h=a.policy.Za;h=void 0===h?"":h;if(e.Qa){h=(c=f.Hg())?f.mimeType+h:f.mimeType;var l=c?"1":"0";e.Ag&&e.Ag.webkitSourceAddId(l,h);var m=c?e.B:e.j;m&&PF(m,e.D,e);(m=c?e.Y:e.Z)&&e.Qa.removeSourceBuffer(m);var n;m=null==(n=e.Qa)?void 0:n.addSourceBuffer(h);c?e.Y=m:e.Z=m;n=new iL(m,e.Ag,l,NK(h),f.sb,c);oL&&g.OF(n,e.D,e);c?e.B=n:e.j=n;g.N(e,n)}d=
d?a.Qa.B:a.Qa.j;b_(b,d||null);d&&g.OF(d,a.Ea,a)}else a.qa("ssap",{missmse:1})};
y9a=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.logger.debug(function(){return"Timestamps will be made relative to "+a.timestampOffset}),a.G.N=a.timestampOffset,a.oa.JQ(a.timestampOffset),a.manifest.isManifestless&&(a.manifest.timestampOffset=a.timestampOffset),a.videoTrack.Yp(a.timestampOffset),a.audioTrack.Yp(a.timestampOffset))};
p7a=function(a){var b=a.fm().filter(function(d){return"ad"===d.namespace});
b=g.u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.getCurrentTime())return c.start/1E3;return Infinity};
g.N_=function(a){this.pd=a};
O_=function(){g.NF.apply(this,arguments)};
P_=function(a,b,c,d){O_.call(this);var e=this;this.C=-1;this.j={};this.D=new g.Qu(this.G,0,this);g.N(this,this.D);this.B=new g.Qu(function(){e.isDisposed()||(e.D.start(Math.random()*c),e.B.start(b))},a,this);
g.N(this,this.B);d.subscribe("fairplay_next_need_key_info",this.K,this)};
z9a=function(a){if(!(28>=a.length))for(var b=(0,g.KZ)([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=jO(b);a=Fg(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++}};
Q_=function(a,b){O_.call(this);var c=this;this.C=a;this.j=[];this.B=new g.Qu(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();A9a(c,d.info)}0<c.j.length&&(d=c.j[0].time-(0,g.pD)(),c.B.start(Math.max(0,d)))}},0);
g.N(this,this.B);b.subscribe("widevine_set_need_key_info",this.D,this)};
A9a=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.C.size)c=!0;else{for(var d=g.u(a.C.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.ra("log_qoe",{wvagt:"reqnews",canskip:c});c||a.ra("rotated_need_key_info_ready",b)};
B9a=function(a){var b=a.interval,c=a.retries;this.url=a.url;this.interval=b;this.retries=c};
C9a=function(a,b){this.statusCode=a;this.message=b;this.B=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null};
D9a=function(a){var b=hO(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=$P(b.slice(d+2));if(null==b)return null;a=new C9a(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.pCa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new B9a({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,retries:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.B=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.u(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),2===e.length&&(c[e[1]]=e[0]);else c={};a.j=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a};
E9a=function(a,b,c){c=void 0===c?"":c;g.I.call(this);this.message=a;this.requestNumber=b;this.sf=c;this.onError=this.onSuccess=null;this.j=new g.Ml(5E3,2E4,.2)};
F9a=function(a,b,c){a.onSuccess=b;a.onError=c};
H9a=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(SH("drm_net_r",void 0,a.sf),e=new Uint8Array(e.response),e=D9a(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else G9a(a,e)},
onError:function(e){G9a(a,e)}};
c&&(b=Lfa(b,"access_token",c));g.RB(b,d)};
G9a=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)};
J9a=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){SH("drm_net_r",void 0,a.sf);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Fg(f.license)}catch(v){g.tF(v)}if(0!==h||l){l=new C9a(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.u(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=I9a[q.trackType];if(r){"HD"===r&&f.isHd720&&(r="HD720");q.isHdr&&(r+="HDR");
h[r]||(m.push(r),h[r]=!0);var t=null;try{t=Fg(q.keyId)}catch(v){g.tF(v)}t&&(n[g.Dg(t,4)]=r)}}l.B=m;l.j=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}},
onError:function(f){if(!a.isDisposed())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")},
onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.wV="Bearer "+d);g.sE(c,"player/get_drm_license",b,e)};
K9a=function(a,b,c,d){g.NF.call(this);this.videoData=a;this.W=b;this.Y=c;this.sessionId=d;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.N=this.va=!1;this.C=null;this.Ia=[];this.D=[];this.Z=!1;this.j={};this.Ca=NaN;this.status="";this.K=NaN;this.B=a.K;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.W.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Ca&&(a.vvt=this.videoData.Ca,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.W.Ca&&(a.authuser=this.W.Ca);this.W.pageId&&(a.pageid=this.W.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.pc()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.G=a;this.G.session_id=d;this.ma=!0;"widevine"===this.B.flavor&&(this.G.hdr="1");"playready"===this.B.flavor&&(b=Number(AR(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.G.mfpe=""+b),this.ma=!1);b="";g.tR(this.B)?sR(this.B)?(d=c.B)&&(b="https://www.youtube.com/api/drm/fps?ek="+
dda(d)):(b=c.initData.subarray(4),b=new Uint16Array(b.buffer,b.byteOffset,b.byteLength/2),b=String.fromCharCode.apply(null,b).replace("skd://","https://")):b=this.B.B;this.baseUrl=b;this.fairplayKeyId=cn(this.baseUrl,"ek")||"";if(b=cn(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Ea=this.videoData.L("html5_use_drm_retry");this.Ia=c.Ve?[g.Dg(c.initData,4)]:c.C;R_(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
O9a=function(a,b){R_(a,{createkeysession:1});a.status="gr";SH("drm_gk_s",void 0,a.videoData.Na);a.url=L9a(a);try{a.C=b.createSession(a.Y,function(c){R_(a,{m:c})})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.ra("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.C&&(M9a(a.C,function(c,d){N9a(a,c,d)},function(c,d,e){if(!a.isDisposed()){d=void 0;
var f=1;g.tR(a.B)&&g.aS(a.W)&&a.W.L("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=a.W.L("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(R_(a,{onkyadd:1}),a.N||(a.ra("sessionready"),a.N=!0))},function(c){a.Mp(c)}),g.N(a,a.C))};
L9a=function(a){var b=a.baseUrl;TAa(b)||a.error("drm.net",2,"t.x");if(!cn(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.W.experiments.experiments[e]});
0<c.length&&(a.G.fexp=c.join())}c=g.u(Object.keys(a.G));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Lfa(b,d,a.G[d]);return b};
N9a=function(a,b,c){if(!a.isDisposed())if(b){R_(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":P9a(a,b);return;default:a.ra("ctmp","message_type",{t:c,l:b.byteLength})}a.va||(SH("drm_gk_f",void 0,a.videoData.Na),a.va=!0,a.ra("newsession",a));if(pR(a.B)&&(b=Q9a(b),!b))return;g.tR(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=$Ha(g.Dg(b)));b=new E9a(b,++a.requestNumber,a.videoData.Na);F9a(b,function(d){R9a(a,
d)},function(d,e,f){if(!a.isDisposed()){var h=0,l;
(l=3<=d.j.B)||(l=a.Ea&&36E4<(0,g.pD)()-a.Ca);l&&(h=1,e="drm.net.retryexhausted");R_(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(CK(h),d)&&S9a(a,d)}});
g.N(a,b);T9a(a,b)}else a.error("drm.unavailable",1,"km.empty")};
P9a=function(a,b){R_(a,{sdpvrq:1});a.K=Date.now();if("widevine"!==a.B.flavor)a.error("drm.provision",1,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.W.j);c=g.an("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:hO(b)}),responseType:"arraybuffer"};
g.UB(c,b,3,500).then(MO(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=hO(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.ra("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.K)/1E3,a.K=NaN,a.ra("ctmp","provs",{et:f.toFixed(3)}),a.C&&a.C.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",1,d))}}),MO(function(d){a.isDisposed()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
S_=function(a){var b;if(b=a.ma&&null!=a.C)a=a.C,b=!(!a.j||!a.j.keyStatuses);return b};
T9a=function(a,b){a.status="km";SH("drm_net_s",void 0,a.videoData.Na);if(a.videoData.useInnertubeDrmService()){var c=new g.rE(a.W.ll),d={context:g.isa(c.config_||g.SD())};d.drmSystem=U9a[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Dg(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!(null==(e=a.videoData.B)?0:null==(f=e.video)?
0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.W.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.Ca&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Ca,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.ub&&(d.context.user.kidsParent={oauthToken:a.videoData.ub});g.tR(a.B)&&(d.fairplayKeyId=g.Dg(eda(a.fairplayKeyId)));g.sS(a.W,g.JT(a.videoData)).then(function(l){J9a(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.sS(a.W,g.JT(a.videoData)).then(function(l){H9a(b,a.url,l);
a.status="rs"})};
R9a=function(a,b){if(!a.isDisposed())if(R_(a,{onlcsrsp:1}),a.status="rr",0!==b.statusCode)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{SH("drm_kr_s",void 0,a.videoData.Na);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.L("outertube_streaming_data_always_use_staging_license_service")){var c=a.B.B.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.ra("newlicense",b.heartbeatParams);b.B&&(a.D=b.B,a.videoData.useInnertubeDrmService()&&
!a.videoData.rC&&a.ra("newlicense",new B9a({})),a.videoData.rC=!0,a.Z=As(a.D,function(d){return d.includes("HDR")}));
b.j&&(a.W.L("html5_enable_vp9_fairplay")&&sR(a.B)?(c=g.Dg(eda(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=dd(b.j,function(d){return{type:d,status:"unknown"}}));
qR(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=Fg(hO(b.message)):rR(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=$Ha(g.Dg(b.message)));a.C&&(R_(a,{updtks:1}),a.status="ku",a.C.update(b.message).then(function(){SH("drm_kr_f",void 0,a.videoData.Na);S_(a)||(R_(a,{ksApiUnsup:1}),a.ra("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Eg(d.message,3);
a.error("drm.keyerror",1,d)}));
a.N&&(a.Ca=(0,g.pD)());g.tR(a.B)&&a.ra("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.W.L("html5_enable_vp9_fairplay")&&sR(a.B)&&a.ra("qualitychange",V9a(a.D))}};
S9a=function(a,b){var c=b.j.getValue();c=new g.Qu(function(){T9a(a,b)},c);
g.N(a,c);c.start();g.Nl(b.j);R_(a,{rtyrq:1})};
W9a=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)};
X9a=function(a){var b={};b[a.status]=S_(a)?W9a(a,"."):a.D.join(".");return b};
Y9a=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};
Z9a=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
$9a=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status};
R_=function(a,b){var c=void 0===c?!1:c;AK(b);(c||a.W.Dc())&&a.ra("ctmp","drmlog",b)};
a$a=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};
V9a=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"};
Q9a=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=Wba(new DOMParser,g.te(b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array((0,g.KZ)(jda(a.childNodes[0].nodeValue)).buffer):null:null};
T_=function(a,b,c,d,e,f){f=void 0===f?!1:f;g.I.call(this);this.element=a;this.Z=b;this.initData=c;this.j=d;this.B=e;this.Y=f;this.sessionId="";this.N=this.K=this.C=this.G=null;this.D=new g.IK(this);g.N(this,this.D);b$a(this)};
b$a=function(a){a.j?(a.D.T(a.j,"message",a.G4),a.D.T(a.j,"keystatuseschange",a.Mp),a.j.closed&&a.j.closed.then(MO(function(){a.isDisposed()||g.bC("xboxone")&&a.C&&a.C("closed")}),null)):a.B&&(EC(a.D,a.B,["mskeymessage",
"webkitkeymessage"],a.DZ),EC(a.D,a.B,["mskeyerror","webkitkeyerror"],a.CZ),EC(a.D,a.B,["mskeyadded","webkitkeyadded"],a.BZ))};
M9a=function(a,b,c,d,e){a.G=b;a.C=c;a.K=d;a.N=e};
c$a=function(a,b,c){g.tF(c);a.C&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.C(b))};
U_=function(a,b,c,d){d=void 0===d?!1:d;g.I.call(this);this.element=a;this.j=b;this.qa=c;this.N=d;this.K={};this.D=null;this.G=new g.IK(this);this.C=this.B=null;g.N(this,this.G)};
e$a=function(a,b){b=d$a(b,a.j.Xa);b=a.C.createSession("video/mp4",b);return new T_(null,null,null,null,b,a.N)};
f$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.C.createSession("video/mp4",b,c);return new T_(null,null,null,null,a)};
g$a=function(a,b){var c=a.K[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.K[b.sessionId]=c);return c};
d$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};
V_=function(){this.keys=[];this.values=[]};
j$a=function(a,b,c){g.NF.call(this);this.element=a;this.videoData=b;this.W=c;this.j=this.videoData.K;this.drmSessionId=this.videoData.drmSessionId||g.Fta();this.B=new Map;this.K=new V_;this.N=new V_;this.C=[];this.Na=2;this.va=new g.IK(this);this.Ra=this.Ea=!1;this.heartbeatParams=null;this.Ia=this.Y=!1;this.G=null;this.Ma=!1;this.Ca=this.W.L("html5_eme_ignore_teardown_errors");(a=this.element)&&(a.addKey||a.webkitAddKey)||nR()||bQa(c.experiments);this.W.L("html5_enable_vp9_fairplay")&&sR(this.j)?
c=h$a:(c=this.videoData.Dl,c="fairplay"===this.j.flavor||c?WS:h$a);this.Z=c;this.D=new U_(this.element,this.j,this.AJ.bind(this),this.Ca);g.N(this,this.D);oR(this.j)&&(this.ma=new U_(this.element,this.j,this.AJ.bind(this),this.Ca),g.N(this,this.ma));g.N(this,this.va);c=this.element;this.j.keySystemAccess?this.va.T(c,"encrypted",this.d$):EC(this.va,c,oR(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.A$);i$a(this);a:switch(a=this.j,c=this.B,a.flavor){case "fairplay":19.2999<xpa()?(c=a.ly,a=
a.jy,a>=c&&(a=.75*c),b=.5*(c-a),c=new P_(b,c,c-b-a,this)):c=null;break a;case "widevine":c=new Q_(c,this);break a;default:c=null}if(this.G=c)g.N(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.sV,this),this.G.subscribe("log_qoe",this.sj,this);bQa(this.W.experiments);this.sj({cks:this.j.Ph()})};
i$a=function(a){var b=a.D.IM();b?b.then(MO(function(){k$a(a)}),MO(function(c){if(!a.isDisposed()){g.tF(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ra("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.sj({mdkrdy:1}),a.Y=!0);
a.ma&&(b=a.ma.IM())};
m$a=function(a,b,c){a.Ra=!0;c=new VZ(b,c);a.W.L("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));l$a(a,c)};
l$a=function(a,b){if(!a.isDisposed()){a.sj({onInitData:1});if(a.W.L("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.N.get(b.initData);b=a.K.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.K.remove(c);a.N.remove(c)}a.sj({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.Ea&&!a.videoData.isLivePlayback)W_(a);else{if(!(a.W.L("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Ve)){a.Ea=!0;c=b.cryptoPeriodIndex;var d=b.j;l6a(b);b.Ve||(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.sV(b)}};
k$a=function(a){if(!a.isDisposed())if(a.W.L("html5_drm_set_server_cert")&&!g.yJ(a.W)||sR(a.j)){var b=a.D.setServerCertificate();b?b.then(MO(function(c){a.W.Dc()&&a.ra("ctmp","ssc",{success:c})}),MO(function(c){a.ra("ctmp","ssce",{n:c.name,
m:c.message})})).then(MO(function(){n$a(a)})):n$a(a)}else n$a(a)};
n$a=function(a){a.isDisposed()||(a.Y=!0,a.sj({onmdkrdy:1}),W_(a))};
o$a=function(a){return"widevine"===a.j.flavor&&a.videoData.L("html5_drm_cpi_license_key")};
W_=function(a){if((a.Ra||a.W.L("html5_widevine_use_fake_pssh"))&&a.Y&&!a.Ia){for(;a.C.length;){var b=a.C[0],c=o$a(a)?m6a(b):g.Dg(b.initData);if(sR(a.j)&&!b.B)a.C.shift();else{if(a.B.get(c))if("fairplay"!==a.j.flavor||sR(a.j)){a.C.shift();continue}else a.B.delete(c);l6a(b);break}}a.C.length&&a.createSession(a.C[0])}};
p$a=function(a){var b;if(b=g.dC()){var c;b=!(null==(c=a.D.B)||!c.getMetrics)}b&&(b=a.D.getMetrics())&&(b=g.lO(b),a.ra("ctmp","drm",{metrics:b}))};
q$a=function(a){g.I.call(this);var b=this;this.oa=a;this.Ha=this.oa.U();this.videoData=this.oa.getVideoData();this.pE=0;this.G=this.B=!1;this.D=0;this.C=g.lJ(this.Ha.experiments,"html5_delayed_retry_count");this.j=new g.Qu(function(){X_(b.oa)},g.lJ(this.Ha.experiments,"html5_delayed_retry_delay_ms"));
g.N(this,this.j)};
u$a=function(a,b,c){var d=a.videoData.B,e=a.videoData.D;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.oa.Ck.D&&d&&"22"===d.itag)return a.oa.Ck.D=!0,a.ze("qoe.restart",{reason:"fmt.unplayable.22"}),Y_(a.oa),!0;var f=!1;if(a.videoData.isExternallyHostedPodcast){if(f=a.videoData.Jba)c.mimeType=f.type,a.qa("3pp",{url:f.url});c.ns="3pp";a.oa.Bg(b,1,"VIDEO_UNAVAILABLE",AK((new BK(b,c,1)).details));return!0}var h=a.pE+3E4<(0,g.pD)()||a.j.isActive();if(a.Ha.L("html5_empty_src")&&
a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.ze("auth",c),!0;h||VWa(a.oa.Cn())||(c.nonfg="paused",h=!0,a.oa.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:yCa(e)||SK(e))&&(yQa(a.Ha.G,e.sb),c.acfallexp=e.sb,f=h=!0);!h&&0<a.C&&(a.j.start(),h=!0,c.delayed="1",--a.C);e=a.oa.Aa;!h&&((null==d?0:RK(d))||(null==d?0:QK(d)))&&(yQa(a.Ha.G,d.sb),f=h=!0,c.cfallexp=d.sb);if(!h)return r$a(a,c);a.pE=(0,g.pD)();h=a.videoData;if(h.ib){h=h.ib.RW();
var l=Date.now()/1E3+1800;h=h<l}else h=!1;c.e=b;c.bkg=$2a();h&&(c.staleprog="1");a.ze("qoe.restart",c);if(h&&s$a(a))return t$a(a),!0;if(!(!g.bC("philips")||"fmt.unplayable"===b&&e&&e.Ia||"GAME_CONSOLE"===a.Ha.j.cplatform))try{window.close()}catch(m){}d&&RK(d)?(f=a.Ha.G,f.Y=!0,f=f.B=!0):e?(b=(b=c_(e.videoTrack)||e.videoTrack.B)?b.j:e.videoTrack.j,b.K+=1,XV(e.policy)?xU(e.C.j,b,!0):FU(e.j,b,!0)):a.videoData.ib&&a.videoData.ib.GR();a.j.isActive()||X_(a.oa,f);return!0};
r$a=function(a,b){if(a.videoData.Ea)return!1;a.Ha.Vb+=1;if(10>=a.Ha.Vb)return!1;b.exiled=""+a.Ha.Vb;a.ze("qoe.start15s",b);a.oa.ra("playbackstalledatstart");return!0};
s$a=function(a){return a.B?!0:"yt"===a.Ha.va?a.videoData.Ea?25>a.videoData.Vb:!a.videoData.Vb:!1};
t$a=function(a){if(!a.B){a.B=!0;var b=a.oa.getPlayerState();b=b.isPaused()||b.isSuspended();a.oa.uo();b&&!LT(a.videoData)||a.oa.ra("signatureexpired")}};
v$a=function(a,b){if((a=a.oa.kf())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.gh();b.details.merr=c?c.toString():"0";b.details.mmsg=a.Af()}};
w$a=function(a){return"net.badstatus"===a.errorCode&&(1===a.severity||!!a.details.fmt_unav)};
x$a=function(a,b){return a.Ha.L("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};
z$a=function(a,b){if(!x$a(a,b)&&!a.B)return!1;b.details.sts="19788";if(s$a(a))return CK(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new BK("qoe.restart",b)),a.ze(b.errorCode,b.details),t$a(a),!0;6048E5<(0,g.pD)()-a.Ha.Zf&&y$a(a,"signature");return!1};
y$a=function(a,b){try{window.location.reload(),a.ze("qoe.restart",{detail:"pr."+b})}catch(c){}};
A$a=function(a,b){var c=a.Ha.G;c.K=!1;c.B=!0;a.ze("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});X_(a.oa,!0)};
B$a=function(a,b,c,d,e){this.videoData=a;this.j=b;this.reason=c;this.B=d;this.token=e};
C$a=function(a,b,c){this.W=a;this.WF=b;this.oa=c;this.Z=this.K=this.j=this.C=this.N=this.B=0;this.D=!1;this.Y=g.lJ(this.W.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.G=new Map};
E$a=function(a,b,c){!a.W.L("html5_tv_ignore_capable_constraint")&&g.yJ(a.W)&&(c=c.compose(D$a(a,b)));return c};
G$a=function(a,b){var c,d=F$a(a,null==(c=b.j)?void 0:c.videoInfos);c=a.oa.getPlaybackRate();return 1<c&&d?(a=sQa(a.W.G,b.j.videoInfos,c),new tP(0,a,!0,"o")):new tP(0,0,!1,"o")};
F$a=function(a,b){return b&&g.yJ(a.W)?b.some(function(c){return 32<c.video.fps}):!1};
H$a=function(a,b){var c=a.oa.WH();a.L("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.JS&&vP(b.videoData.Oy)&&(a=c.JS,b.videoData.Oy=new tP(0,a,!1,"u"));return b.videoData.Oy};
D$a=function(a,b){if(g.yJ(a.W)&&HP(a.W.G,IP.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.ZR(a.W)&&(e=window.screen&&window.screen.width?new g.Oe(window.screen.width,window.screen.height):null);e||(e=a.W.Vm?a.W.Vm.clone():a.WF.Qh());(gC||IU||d)&&e.scale(g.jS());d=e;mT(b.videoData)||LT(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||YQa||(e=
.45);a=g.lJ(a.W.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 tP(0,"93"===c.itag?g.KK[vCa(d.width,d.height)]:d.j,!1,"r")}else c=WS;c=c.j}c&&(c=Math.max(c,360));return new tP(0,c,!1,"r")};
I$a=function(a){var b,c,d,e;return g.H(function(f){switch(f.j){case 1:return a.j.j&&"function"===typeof(null==(b=navigator.mediaCapabilities)?void 0:b.decodingInfo)?g.z(f,Promise.resolve(),2):f.return(Promise.resolve());case 2:c=g.u(a.j.videoInfos),d=c.next();case 3:if(d.done){f.Ka(0);break}e=d.value;return g.z(f,ACa(e),4);case 4:d=c.next(),f.Ka(3)}})};
K$a=function(a,b){if(!b.videoData.B||a.L("html5_disable_performance_downgrade"))return!1;6E4<g.kb()-a.N&&(a.B=0);a.B++;a.N=g.kb();if(4!==a.B)return!1;J$a(a,b.videoData.B);return!0};
M$a=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.lJ(a.W.experiments,"html5_df_downgrade_thresh"),f=a.L("html5_log_media_perf_info");if(!(5E3>(0,g.pD)()-a.C?0:f||0<e))return!1;var h=((0,g.pD)()-a.C)/1E3;a.C=(0,g.pD)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.K,m=c.totalVideoFrames-a.Z;a.K=c.droppedVideoFrames;a.Z=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&a.W.Dc()&&a.oa.qa("ddf",{dr:c.droppedVideoFrames,
de:c.totalVideoFrames,comp:n});if(d)return a.j=0,!1;if((m-l)/h>a.Y||!e||g.yJ(a.W))return!1;a.j=(60<m?l/m:0)>e?a.j+1:0;if(3!==a.j)return!1;J$a(a,b.videoData.B);a.oa.qa("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},L$a()));return!0};
J$a=function(a,b){var c=a.W,d=b.sb,e=b.video.fps,f=b.video.j-1,h=a.G;b=""+d+(49<e?"p60":32<e?"p48":"");if(c.L("html5_gradual_perf_cap"))if(c=lR(c,d,e,h),c=Math.min(c,f),!Z_.has(b)&&XMa().includes(b))VMa(b,c,!0);else if(Z_.has(b)||null==h){a:{var l=void 0===l?!0:l;h=XMa().slice();if(l){if(h.includes(b))break a;h.push(b)}else{if(!h.includes(b))break a;h.splice(h.indexOf(b),1)}g.IC("yt-player-performance-cap-active-set",h,2592E3)}kR.set(b,c)}else Z_.add(b),null==h||h.set(b,c);else VMa(b,f);a.oa.Eo()};
N$a=function(a,b){if(!b.j.j)return a.D?new tP(0,360,!1,"b"):WS;for(var c=!1,d=!1,e=g.u(b.j.videoInfos),f=e.next();!f.done;f=e.next())RK(f.value)?c=!0:d=!0;c=c&&d;d=0;e=g.lJ(a.W.experiments,"html5_performance_cap_floor");e=a.W.B?240:e;b=g.u(b.j.videoInfos);for(f=b.next();!f.done;f=b.next()){var h=f.value;if(!c||!RK(h))if(f=lR(a.W,h.sb,h.video.fps,a.G),h=h.video.j,Math.max(f,e)>=h){d=h;break}}return new tP(0,d,!1,"b")};
O$a=function(a,b){a=a.oa.Cn();return a.isInline()&&!b.AL?new tP(0,480,!1,"v"):a.isBackground()&&60<JE()/1E3?new tP(0,360,!1,"v"):WS};
Q$a=function(a,b,c){if(a.W.experiments.kb("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.yJ(a.W)&&(1080<=qP(-1)||b.osid))return WS;var d=g.lJ(a.W.experiments,"html5_autonav_quality_cap"),e=g.lJ(a.W.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&JE()/1E3>e?(c&&(d=P$a(a,c,d)),new tP(0,d,!1,"e")):WS};
P$a=function(a,b,c){if(a.L("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};
R$a=function(a,b){a.L("html5_log_media_perf_info")&&(a.oa.qa("perfdb",L$a()),a.oa.qa("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.oa.qa("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return!1===(null==(d=c.B)?void 0:d.smooth)}).map(function(c){return c.itag}).join("-")}))};
L$a=function(){return dd(rP(),function(a){return""+a})};
$_=function(a){g.I.call(this);var b=this;this.provider=a;this.j=-1;this.G=!1;this.B=-1;this.playerState=new g.wL;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.Qu(this.send,6E4,this);this.C=!1;this.jsErrorCount=0;this.Cd={HA:function(){b.HA()}};
this.HA=function(){b.jsErrorCount++};
g.N(this,this.delay);window.addEventListener("error",this.HA);window.addEventListener("unhandledrejection",this.HA)};
S$a=function(a){0<=a.j||(3===a.provider.oa.getVisibilityState()?a.G=!0:(a.j=g.dN(a.provider),a.delay.start()))};
T$a=function(a){if(!(0>a.B)){var b=g.dN(a.provider),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.DL(a.playerState)&&!g.JG(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
U$a=function(a){var b;switch(null==(b=a.W.playerCanaryStage)?void 0:b.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}};
W$a=function(a,b){b?V$a.test(a):(a=g.CB(a),Object.keys(a).includes("cpn"))};
Y$a=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(FB(a)&&GB()){if(h){var n;2!==(null==(n=X$a.uaChPolyfill)?void 0:n.state.type)?h=null:(h=X$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.rB("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
d:g.rB("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.rB("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);(d=b.Ca)&&!lS(b)&&(m["X-Goog-AuthUser"]=d);e&&(m.Authorization="Bearer "+e);h||m["X-Goog-Visitor-Id"]||e||c||d?l.withCredentials=!0:b.L("html5_send_cpn_with_options")&&V$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};
Z$a=function(a,b,c,d,e,f,h,l){GB()&&c.token&&(a=DB(a,{ctt:c.token,cttype:c.rS,mdx_environment:c.mdxEnvironment}));f||l&&d.L("nwl_skip_retry")?(null==b?b={}:W$a(a,d.L("html5_assert_cpn_with_regex")),h?qE().sendAndWrite(a,b):qE().sendThenWrite(a,b,l)):b?(W$a(a,d.L("html5_assert_cpn_with_regex")),g.RB(a,b)):g.jE(a,e)};
aab=function(a){for(var b=[],c=0;c<a;c++){for(var d={},e=Math.floor(9*Math.random()*$$a)+$$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};
bab=function(a,b){BO(a,1,b.elapsedTimeMs);EO(a,3,b.videoDecoderName)};
dab=function(a,b){EO(a,1,b.cpn);BO(a,2,b.sequenceNumber);EO(a,3,b.serializedWatchEndpointLoggingContext);var c;if(b.decoderInfo)for(c=0;c<b.decoderInfo.length;c++)FO(a,6,b.decoderInfo[c],bab,3);EO(a,9,b.playerResponseCpn);BO(a,10,b.transitionStitchType);BO(a,12,b.timestampOffsetMsecs);BO(a,15,b.remoteControlMode);if(b.remoteConnectedDevices)for(c=0;c<b.remoteConnectedDevices.length;c++)FO(a,16,b.remoteConnectedDevices[c],cab,3)};
cab=function(a,b){BO(a,1,b.deviceInterface);EO(a,2,b.deviceVersion);CO(a,3,b.isSleeping)};
g.c0=function(a,b){g.I.call(this);var c=this;this.provider=a;this.logger=new g.uU("qoe");this.j={};this.sequenceNumber=1;this.G=NaN;this.Le="N";this.Z=this.YA=this.XA=this.Gb=this.D=0;this.Wa=this.Jc="";this.jc=this.Xa=NaN;this.Vb=0;this.Yc=-1;this.Lc=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.tb=this.Ea=this.Ma=this.isOffline=this.Ia=!1;this.rd=[];this.ma=null;this.ib=this.K=this.Za=this.N=!1;this.B=-1;this.fb=!1;this.Kd=new g.Qu(this.P7,750,this);this.Y=this.adCpn=this.va=this.contentCpn=
"";this.adFormat=void 0;this.Ee=0;this.Bd=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));this.ub=!1;this.Ob=NaN;this.Na=0;this.Nb=!1;this.Ca=0;this.Cd={nK:function(e){c.nK(e)},
Wmb:function(){return c.C},
Rk:function(){return c.contentCpn},
Fmb:function(){return c.va},
reportStats:function(){c.reportStats()},
Bmb:function(){return c.j.cat},
snb:function(){return c.Ca}};
var d=g.lJ(this.provider.W.experiments,"html5_qoe_proto_mock_length");d&&!a0.length&&(a0=aab(d));g.N(this,this.Kd);try{navigator.getBattery().then(function(e){c.ma=e})}catch(e){}g.b0(this,0,"vps",["N"]);
a.W.Dc()&&(this.Na=(0,g.pD)(),this.Ob=g.MB(function(){var e=(0,g.pD)(),f=e-c.Na;500<f&&c.qa("vmlock",{diff:f.toFixed()});c.Na=e},250));
a.oa.Gi()&&b&&(this.Ca=b-Math.round(1E3*g.dN(a)))};
g.b0=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
eab=function(a,b){var c=a.provider.getCurrentTime();g.b0(a,b,"cmt",[c.toFixed(3)]);c=a.provider.bj();if(a.C&&1E3*c>a.C.cZ+100&&a.C){var d=a.C,e=d.isAd;c=1E3*c-d.cZ;a.Ra=1E3*b-d.hca-c-d.Rba;c=(0,g.pD)()-c;b=a.Ra;d=a.provider.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.G&&(h.cttAuthInfo={token:d.G,videoId:d.videoId});h.startTime=c-b;RH(f,h);g.QH({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},f);SH("pbs",c,f)}else c=a.provider.oa.Ei(),c.K!==d.clientPlaybackNonce?
(c.G=d.clientPlaybackNonce,c.B=b):d.Nn()||g.uF(new g.QC("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.qa("gllat",{l:a.Ra.toFixed(),prev_ad:+e});delete a.C}};
hab=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.dN(a.provider);var c=a.provider.oa.LD(),d=c.Nr-(a.Xa||0);0<d&&g.b0(a,b,"bwm",[d,(c.pu-(a.jc||0)).toFixed(3)]);isNaN(a.Xa)&&c.Nr&&a.isOffline&&a.nK(!1);a.Xa=c.Nr;a.jc=c.pu;isNaN(c.bandwidthEstimate)||g.b0(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.W.Dc()&&0!==Object.keys(c.j).length&&a.qa("bwinfo",c.j);if(a.provider.W.Dc()||a.provider.W.L("html5_log_meminfo"))d=S8a(),Object.values(d).some(function(e){return void 0!==e})&&a.qa("meminfo",d);
a.ma&&g.b0(a,b,"bat",[a.ma.level,a.ma.charging?"1":"0"]);d=a.provider.oa.getVisibilityState();a.Yc!==d&&(g.b0(a,b,"vis",[d]),a.Yc=d);eab(a,b);(d=fab(a.provider))&&d!==a.Vb&&(g.b0(a,b,"conn",[d]),a.Vb=d);gab(a,b,c)};
gab=function(a,b,c){if(!isNaN(c.Xu)){var d=c.Xu;c.B<d&&(d=c.B);g.b0(a,b,"bh",[d.toFixed(3)])}};
iab=function(a,b,c){g.sS(a.provider.W,g.JT(a.provider.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.provider.W.L("kevlar_woffle")||a.provider.W.L("qoe_nwl_downloads"))e=!0}else a.provider.W.L("qoe_with_networkless")&&(e=!0);var f=a.provider.W.L("qoe_send_and_write"),h=a.provider.W;d=Y$a(b,h,a.provider.W.pageId,a.provider.W.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,d);h.L("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,
Z$a(b,d,{token:a.provider.videoData.G,rS:a.provider.videoData.Km,mdxEnvironment:a.provider.videoData.mdxEnvironment},h,void 0,e,f&&a.Ma)):e?(e=a.provider.W.L("networkless_ajax"),h={method:"POST",postBody:c},f&&a.Ma?qE().sendAndWrite(b,h):e?g.RB(b,{method:"POST",postBody:c}):qE().sendThenWrite(b,h)):(f=c,f=void 0===f?"":f,ata(b,f)||g.jE(b,void 0,void 0,void 0,f))})};
jab=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(Gr(a.j[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.Qu(a.reportStats,0,a)).start()};
kab=function(a){a.provider.videoData.wj&&d0(a,"prefetch");a.provider.videoData.Vb&&a.qa("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.Vb});a.provider.videoData.tb&&d0(a,"monitor");a.provider.videoData.isLivePlayback&&d0(a,"live");zR&&d0(a,"streaming");KT(a.provider.videoData)&&d0(a,"lifa");a.provider.videoData.Fk&&a.qa("ctrl",{mode:a.provider.videoData.Fk},!0);if(a.provider.videoData.rl){var b=a.provider.videoData.rl.replace(/,/g,"_");a.qa("ytp",{type:b},!0)}a.provider.videoData.LU&&
(b=a.provider.videoData.LU.replace(/,/g,"."),a.qa("ytrexp",{ids:b},!0));var c=a.provider.videoData;b=a.provider.W.L("enable_white_noise")||a.provider.W.L("enable_webgl_noop");c=g.qT(c)||g.AT(c)||g.BT(c)||g.CT(c);(b||c)&&(b=(0,g.e0)())&&(a.j.gpu=[b]);LT(a.provider.videoData)&&g.b0(a,g.dN(a.provider),"dt",["1"]);a.provider.W.Dc()&&(b=(0,g.pD)()-a.provider.W.Zf,a.qa("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.K=!0;a.G=g.MB(function(){a.reportStats()},1E4)};
mab=function(a,b,c){var d=g.dN(a.provider);lab(a,d,b,0,c);hab(a,d);jab(a)};
lab=function(a,b,c,d,e){var f=a.provider.W.j.cbrver;"Chrome"===a.provider.W.j.cbr&&/^96[.]/.test(f)&&"net.badstatus"===c&&/rc\.500/.test(e)&&nab(a,3);a.provider.W.L("html5_use_ump")&&/b248180278/.test(e)&&nab(a,4);f=a.provider.getCurrentTime();d=1===d?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+kza());e&&c.push(oab(e));g.b0(a,b,"error",c);a.K=!0};
pab=function(a){0<=a.B||(a.provider.W.Xf||3!==a.provider.oa.getVisibilityState()?a.B=g.dN(a.provider):a.fb=!0)};
d0=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c};
YY=function(a,b,c,d,e,f){var h=g.dN(a.provider);1!==c&&3!==c&&5!==c||g.b0(a,h,"vps",[a.Le]);var l=a.j.xvt||[];l.push("t."+h.toFixed(3)+";m."+f.toFixed(3)+";g."+b+";tt."+c+";np.0;c."+d+";d."+e);a.j.xvt=l};
nab=function(a,b){if(!a.ib){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.ib=!0}};
oab=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
qab=function(a){this.provider=a;this.N=!1;this.j=0;this.D=-1;this.Jp=NaN;this.C=0;this.segments=[];this.K=this.G=0;this.previouslyEnded=!1;this.Y=this.provider.oa.getVolume();this.Z=this.provider.oa.isMuted()?1:0;this.B=f0(this.provider)};
g0=function(a){a.B.startTime=a.C;a.B.endTime=a.j;var b=!1;a.segments.length&&g.Bb(a.segments).isEmpty()?(a.segments[a.segments.length-1].previouslyEnded&&(a.B.previouslyEnded=!0),a.segments[a.segments.length-1]=a.B,b=!0):a.segments.length&&a.B.isEmpty()||(a.segments.push(a.B),b=!0);b?0===a.B.endTime&&(a.previouslyEnded=!1):a.B.previouslyEnded&&(a.previouslyEnded=!0);a.G+=a.j-a.C;a.B=f0(a.provider);a.B.previouslyEnded=a.previouslyEnded;a.previouslyEnded=!1;a.C=a.j};
sab=function(a){rab(a);a.K=g.MB(function(){a.update()},100);
a.Jp=g.dN(a.provider);a.B=f0(a.provider)};
rab=function(a){g.OB(a.K);a.K=NaN};
tab=function(a,b,c){c-=a.Jp;return b===a.j&&.5<c};
vab=function(a,b,c,d){this.W=b;this.segments=[];this.experimentIds=[];this.Xa=this.Vb=this.isFinal=this.delayThresholdMet=this.Gb=this.rd=this.autoplay=this.autonav=!1;this.Jc="yt";this.N=[];this.G=this.Z=null;this.sendVisitorIdHeader=this.fb=!1;this.K=this.pageId="";this.D="watchtime"===c;this.C="playback"===c;this.va="atr"===c;this.Wf="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.va?"/api/stats/"+c:"//"+b.Wm+"/api/stats/"+c;d&&(this.Vb=d.fs,d.rtn&&(this.G=d.rtn),this.D?(this.playerState=
d.state,0<d.rti&&(this.Z=d.rti)):(this.Xf=d.mos,this.Yg=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Kd=d.inview),d.size&&(this.Yc=d.size),this.W.L("embeds_web_enable_shorts_mode_playback_style_logging")&&(d.playerwidth&&(this.playerWidth=d.playerwidth),d.playerheight&&(this.playerHeight=d.playerheight)));this.Fe=g.pd(b.j);this.K=AR(b.experiments,"html5_log_vss_extra_lr_cparams_freq");if("all"===this.K||"once"===this.K)this.Ob=g.pd(b.jc);this.Vf=b.rd;
this.experimentIds=oQa(b.experiments);this.Wa=b.wj;this.Jc=b.va;this.region=b.region;this.userAge=b.userAge;this.ib=b.yj;this.Ee=JE();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Ca=b.L("vss_pings_using_networkless")||b.L("kevlar_woffle");this.Yf=b.L("vss_final_ping_send_and_write");this.Ia=b.L("vss_use_send_and_write");this.pageId=b.pageId;this.Zf=b.L("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.wh=b.D&&b.L("embeds_append_synth_ch_headers");
g.UR(b)&&(this.Na=b.Ia);g.qC(g.cS(b))&&this.N.push(uab[1]);this.Gf=b.L("embeds_enable_muted_autoplay")&&g.UR(b);this.accessToken=g.JT(a);a.Lc&&(this.Lc=a.Lc);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=CTa(a);this.C&&(this.rd=(a.L("html5_enable_log_server_autoplay")||a.L("enable_cleanup_masthead_autoplay_hack_fix"))&&a.Wp&&"adunit"==FT(a)?!0:!1);this.autonav=a.isAutonav||this.autonav;this.contentVideoId=HT(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Gb=a.Of;a.G&&(this.Y=
a.G,this.ub=a.Km);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.pF;this.Nb=a.Nb;a.B&&(this.me=a.B.itag,a.D&&a.D.itag!==this.me&&(this.tb=a.D.itag));a.j&&AP(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=FT(a);this.Xa=a.Zf?!1:a.Yg;this.Pe=a.Nm;if(b=tT(a))this.rg=b;this.Ff=a.wr;this.Ma=a.Ma;this.eventId=a.eventId;this.playlistId=a.dV||a.playlistId;this.Ay=a.Ay;this.Fk=a.Fk;this.rl=a.rl;this.Ro=a.Ro;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=
a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.BP=a.BP;this.referrer=a.referrer;this.Po=a.JU||a.Po;this.Za=a.xG;this.Ey=a.Ey;this.userGenderAge=a.userGenderAge;this.Ex=a.Ex;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;this.Gf&&a.mutedAutoplay&&this.N.push(uab[2]);a.L("embeds_web_enable_shorts_mode_playback_style_logging")&&a.kd(new g.Oe(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.N.push(uab[3]);this.Ra=a.GU;a.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=
a.compositeLiveIngestionOffsetToken)};
wab=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.sS(a.W,a.accessToken).then(function(d){return Y$a(a.uri,a.W,a.pageId,c,d,b,a.wh)})};
zab=function(a,b){return function(){a.W.L("html5_simplify_pings")?(a.j=a.Ea,a.Bd=b(),a.Ee=0,a.send()):wab(a).then(function(c){var d=xab(a);d.cmt=d.len;d.lact="0";var e=b().toFixed(3);d.rt=Number(e).toString();d=g.an(a.uri,d);a.W.L("vss_through_gel_double")&&yab(d);a.Ca?(null==c&&(c={}),a.Ia?qE().sendAndWrite(d,c):qE().sendThenWrite(d,c)):c?g.RB(d,c):g.jE(d)})}};
xab=function(a){var b={ns:a.Jc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.B(a.j),fmt:a.me,fs:a.Vb?"1":"0",rt:a.B(a.Bd),adformat:a.adFormat,content_v:a.contentVideoId,euri:a.Vf,lact:a.Ee,live:a.rg,cl:(613025973).toString(),mos:a.Xf,state:a.playerState,volume:a.Yg};a.subscribed&&(b.subscribed="1");Object.assign(b,a.Fe);"all"===a.K?Object.assign(b,a.Ob):"once"===a.K&&a.C&&Object.assign(b,a.Ob);a.autoplay&&(b.autoplay="1");a.rd&&(b.sautoplay="1");a.Gb&&(b.dni="1");!a.D&&a.Na&&(b.epm=Aab[a.Na]);
a.isFinal&&(b["final"]="1");a.Xa&&(b.splay="1");a.Nb&&(b.delay=a.Nb);a.Wa&&(b.hl=a.Wa);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.ib&&(b.uga=a.ib+a.userAge);void 0!==a.Ea&&(b.len=a.B(a.Ea));!a.D&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.G&&(b.rtn=a.B(a.G));a.Po&&(b.feature=a.Po);a.Fk&&(b.ctrl=a.Fk);a.rl&&(b.ytr=a.rl);a.tb&&(b.afmt=a.tb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.jc&&(b.lio=a.B(a.jc));
a.D?(b.idpj=a.Pe,b.ldpj=a.Ff,a.delayThresholdMet&&(b.dtm="1"),null!=a.Z&&(b.rti=a.B(a.Z)),a.Ex&&(b.ald=a.Ex),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken)):void 0!==a.adType&&(b.at=a.adType);a.Yc&&(a.C||a.D)&&(b.size=a.Yc);a.C&&a.N.length&&(b.pbstyle=a.N.join(","));null!=a.Kd&&(a.C||a.D)&&(b.inview=a.B(a.Kd));a.D&&(b.volume=h0(a,g.Er(a.segments,function(d){return d.volume})),b.st=h0(a,g.Er(a.segments,function(d){return d.startTime})),b.et=h0(a,g.Er(a.segments,function(d){return d.endTime})),
As(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=h0(a,g.Er(a.segments,function(d){return d.playbackRate}))),As(a.segments,function(d){return"-"!==d.j})&&(b.als=g.Er(a.segments,function(d){return d.j}).join(",")),As(a.segments,function(d){return d.previouslyEnded})&&(b.pe=g.Er(a.segments,function(d){return""+ +d.previouslyEnded}).join(",")));
b.muted=h0(a,g.Er(a.segments,function(d){return d.muted?1:0}));
As(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=h0(a,g.Er(a.segments,function(d){return d.visibilityState})));
As(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=h0(a,g.Er(a.segments,function(d){return d.connectionType})));
As(a.segments,function(d){return 0!==d.B})&&(b.blo=h0(a,g.Er(a.segments,function(d){return d.B})));
As(a.segments,function(d){return!!d.C})&&(b.blo=g.Er(a.segments,function(d){return d.C}).join(","));
As(a.segments,function(d){return!!d.compositeLiveStatusToken})&&(b.cbs=g.Er(a.segments,function(d){return d.compositeLiveStatusToken}).join(","));
As(a.segments,function(d){return"-"!==d.G})&&(b.cc=g.Er(a.segments,function(d){return d.G}).join(","));
As(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Er(a.segments,function(d){return d.clipId}).join(","));
if(As(a.segments,function(d){return!!d.D})){var c="au";
a.C&&(c="au_d");b[c]=g.Er(a.segments,function(d){return d.D}).join(",")}GB()&&a.Y&&(b.ctt=a.Y,b.cttype=a.ub,b.mdx_environment=a.mdxEnvironment);
a.Wf&&(b.etype=void 0!==a.ma?a.ma:0);a.Za&&(b.uoo=a.Za);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=Bab[a.livingRoomAppMode]||a.livingRoomAppMode);a.Lc?Cab(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.BP,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.Ro&&(b.ssrt="1"),a.Ey&&(b.upt=a.Ey));a.C&&(a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn=
a.embedsRctn),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken));a.Ra&&(b.host_cpn=a.Ra);return b};
Cab=function(a,b){if(b&&a.Lc){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.Lc.ns&&(b.ns="3pp");for(var f=g.u(Object.keys(a.Lc)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.Lc[h]||(b[h]=a.Lc[h])}};
h0=function(a,b){return g.Er(b,a.B).join(",")};
yab=function(a){-1!==a.indexOf("watchtime")&&g.bD("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:a}})};
Dab=function(a,b){a.attestationResponse&&wab(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.Ca?a.Ia?qE().sendAndWrite(b,c):qE().sendThenWrite(b,c):g.RB(b,c)})};
i0=function(a){g.I.call(this);this.provider=a;this.K="paused";this.D=NaN;this.N=[10,10,10,40];this.Y=this.Z=0;this.Ca=this.va=this.Ma=this.Ia=this.Ea=this.ma=this.C=!1;this.B=this.G=NaN;this.j=new qab(a)};
Fab=function(a){if(!a.C){16623===a.provider.videoData.GF&&g.uF(Error("Playback for EmbedPage"));var b=j0(a,"playback");a:{if(a.provider.W.L("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.Nm,h=a.provider.videoData.wr,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.N=c;break a}}a.N=[10+a.provider.videoData.Nm,10,10,40+a.provider.videoData.wr-a.provider.videoData.Nm,40]}sab(a.j);b.G=k0(a);0<a.B&&(b.j-=a.B);b.send();a.provider.videoData.vy&&(b=a.provider.W,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.vy,oid:d.E1,ptchn:d.C1,pltype:d.QS,content_v:HT(d)},d.Ox&&Object.assign(c,{m:d.Ox}),b=g.an(b.Ea+"ptracking",c),l0(a,b));a.provider.videoData.Nb||Eab(a);
a.C=!0;a=a.j;a.j=a.provider.oa.bj();a.Jp=g.dN(a.provider);!(0===a.C&&5>a.j)&&2<a.j-a.C&&(a.C=a.j);a.N=!0}};
k0=function(a,b){b=void 0===b?NaN:b;var c=g.dN(a.provider);b=isNaN(b)?c:b;b=Math.ceil(b);var d=a.N[a.Z];a.Z+1<a.N.length&&a.Z++;var e=b+d;a.D=g.LB(function(){if(!a.isDisposed()){a.D=NaN;var f=Gab(a),h=Hab(a,f);h.Z=e;var l=1E3<a.Y;!(1<f.length)&&f[0].isEmpty()||l||(h.G=k0(a,e));h.send();a.Y++}},1E3*(e-c));
return a.G=e};
m0=function(a){g.NB(a.D);a.D=NaN};
Gab=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.C||g0(a);var b=a.segments;a.segments=[];return b};
j0=function(a,b){var c=Iab(a.provider);Object.assign(c,{state:a.K});b=new vab(a.provider.videoData,a.provider.W,b,c);b.j=a.provider.oa.bj();a.provider.videoData.isLivePlayback||(b.Ea=a.provider.oa.getDuration());a.provider.videoData.j&&(c=a.provider.videoData.j.jf(b.j))&&(b.jc=c-b.j);b.Bd=g.dN(a.provider);b.segments=[f0(a.provider)];return b};
Hab=function(a,b){var c=j0(a,"watchtime");Jab(a)&&(c.delayThresholdMet=!0,a.Ea=!0);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.XW();c.segments=b;return c};
n0=function(a,b){var c=Kab(a,!isNaN(a.G));b&&(a.G=NaN);return c};
Kab=function(a,b){var c=Hab(a,Gab(a));!isNaN(a.G)&&b&&(c.Z=a.G);return c};
Jab=function(a){var b;if(b=a.provider.videoData.isLoaded()&&a.provider.videoData.Nb&&a.C&&!a.Ea)b=a.j,b=b.G+b.provider.oa.bj()-b.C>=a.provider.videoData.Nb;return!!b};
Eab=function(a){a.provider.videoData.remarketingUrl&&!a.Ia&&(l0(a,a.provider.videoData.remarketingUrl),a.Ia=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.Ma&&(l0(a,a.provider.videoData.youtubeRemarketingUrl),a.Ma=!0);a.provider.videoData.googleRemarketingUrl&&!a.va&&(l0(a,a.provider.videoData.googleRemarketingUrl),a.va=!0);a.provider.videoData.ppvRemarketingUrl&&!a.Ca&&(l0(a,a.provider.videoData.ppvRemarketingUrl),a.Ca=!0);a.wu()};
Lab=function(a){if(!a.isDisposed()&&a.C){a.K="paused";var b=n0(a);b.isFinal=!0;b.send();a.dispose()}};
Mab=function(a,b){if(!a.isDisposed())if(g.JG(b.state,2)||g.JG(b.state,512)){if(a.K="paused",g.LG(b,2)||g.LG(b,512))g.LG(b,2)&&(a.j.previouslyEnded=!0),a.C&&(m0(a),n0(a).send(),a.G=NaN)}else if(g.JG(b.state,8)){a.K="playing";var c=a.C&&isNaN(a.D)?k0(a):NaN;!isNaN(c)&&(0>KG(b,64)||0>KG(b,512))&&(a=Kab(a,!1),a.G=c,a.send())}else a.K="paused"};
l0=function(a,b){var c=a.provider.W;g.sS(a.provider.W,g.JT(a.provider.videoData)).then(function(d){var e=a.provider.W.pageId,f=a.provider.W.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.W.L("vss_pings_using_networkless")||a.provider.W.L("kevlar_woffle"),l=a.provider.W.L("allow_skip_networkless");d=Y$a(b,c,e,f,d);Z$a(b,d,{token:a.provider.videoData.G,rS:a.provider.videoData.Km,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
Nab=function(){this.endTime=this.startTime=-1;this.G="-";this.playbackRate=1;this.visibilityState=0;this.D="";this.B=0;this.compositeLiveStatusToken=this.C=void 0;this.volume=this.connectionType=0;this.muted=!1;this.j=this.clipId="-";this.previouslyEnded=!1};
o0=function(a,b,c){this.videoData=a;this.W=b;this.oa=c;this.j=void 0};
g.dN=function(a){return Oab(a)()};
Oab=function(a){if(!a.j){var b=g.jb(function(d){var e=(0,g.pD)();d&&631152E6>=e&&(a.oa.qa("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.W.L("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.oa.EQ()}return a.j};
Iab=function(a){var b=a.oa.Lq()||{};b.fs=a.oa.dE();b.volume=a.oa.getVolume();b.muted=a.oa.isMuted()?1:0;b.mos=b.muted;b.inview=a.oa.BD();b.size=a.oa.rD();b.clipid=a.oa.wz();if(a.videoData.L("embeds_web_enable_shorts_mode_playback_style_logging")){var c;b.playerheight=(null==(c=a.oa.getPlayerSize())?void 0:c.height)||0;var d;b.playerwidth=(null==(d=a.oa.getPlayerSize())?void 0:d.width)||0}a=a.videoData;c={};a.B&&(c.fmt=a.B.itag,a.D&&a.D.itag!=a.B.itag&&(c.afmt=a.D.itag));c.ei=a.eventId;c.list=a.playlistId;
c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.vl&&(c.infringe=1);(a.Zf?0:a.Yg)&&(c.splay=1);(d=tT(a))&&(c.live=d);a.Wp&&(c.sautoplay=1);a.bl&&(c.autoplay=1);a.Ay&&(c.sdetail=a.Ay);a.Ma&&(c.partnerid=a.Ma);a.osid&&(c.osid=a.osid);a.VB&&(c.cc=g.FRa(a.VB));return Object.assign(b,c)};
fab=function(a){if(navigator.connection&&navigator.connection.type)return Pab[navigator.connection.type]||Pab.other;if(g.yJ(a.W)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0};
f0=function(a){var b=new Nab,c;b.G=(null==(c=Iab(a).cc)?void 0:c.toString())||"-";b.playbackRate=a.oa.getPlaybackRate();c=a.oa.getVisibilityState();0!==c&&(b.visibilityState=c);a.W.Nb&&(b.B=1);b.C=a.videoData.Xq;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.oa.getAudioTrack();c.uc&&c.uc.id&&"und"!==c.uc.id&&(b.D=c.uc.id);b.connectionType=fab(a);b.volume=a.oa.getVolume();b.muted=a.oa.isMuted();b.clipId=a.oa.wz()||"-";b.j=a.videoData.BU||"-";return b};
g.p0=function(a,b){g.I.call(this);var c=this;this.provider=a;this.D=!1;this.C=new Map;this.Le=new g.wL;this.Cd={fnb:function(){return c.qoe},
rnb:function(){return c.j},
Pmb:function(){return c.B}};
this.provider.videoData.Ke()&&!this.provider.videoData.Ml&&(this.j=new i0(this.provider),g.N(this,this.j),this.qoe=new g.c0(this.provider,b),g.N(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.eh=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.eh,this.j));if("canary"===a.W.playerCanaryState||"holdback"===a.W.playerCanaryState)this.B=new $_(this.provider),g.N(this,this.B)};
ZY=function(a){a.B&&S$a(a.B);a.qoe&&pab(a.qoe)};
Qab=function(a){if(a.qoe){a=a.qoe;for(var b=g.u(a.provider.W.wh),c=b.next();!c.done;c=b.next())d0(a,c.value);a.provider.videoData.wh&&d0(a,a.provider.videoData.wh);if(a.provider.W.L("html5_qoe_categories_manifestless_post_live")?a.provider.videoData.yc():a.provider.videoData.isLivePlayback)b=a.provider.videoData.j,gT(a.provider.videoData)&&d0(a,"manifestless"),b&&gR(b)&&d0(a,"live-segment-"+gR(b).toFixed(1));fT(a.provider.videoData)&&d0(a,"sabr");a.provider.videoData.gatewayExperimentGroup&&(b=a.provider.videoData.gatewayExperimentGroup,
"EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"===b?b="spkadtrt":"EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"===b&&(b="spkadctrl"),d0(a,b));"yt"!==a.provider.W.va&&(a.j.len=[a.provider.videoData.lengthSeconds.toFixed(2)]);a.provider.videoData.cotn&&!LT(a.provider.videoData)&&a.nK(!0);a.provider.W.Dc()&&(b=E2a())&&a.qa("cblt",{m:b});pT(a.provider.videoData)&&(a.provider.oa.getProximaLatencyPreference()?d0(a,"proximaui"):d0(a,"proximaexp"))}};
W3a=function(a){if(a.provider.oa.Gi()){if(a.D)return;a.D=!0}a.j&&Fab(a.j);if(a.B){a=a.B;var b=g.dN(a.provider);0>a.j&&(a.j=b,a.delay.start());a.B=b;a.D=b}};
V3a=function(a,b){if(g.LG(b,1024)||g.LG(b,512)||g.LG(b,4)){if(a.B){var c=a.B;0<=c.B||(c.j=-1,c.delay.stop())}a.qoe&&(c=a.qoe,c.N||(c.B=-1))}if(a.provider.videoData.enableServerStitchedDai&&a.eh){var d;null==(d=a.C.get(a.eh))||Mab(d,b)}else a.j&&Mab(a.j,b);if(a.qoe){d=a.qoe;c=b.state;var e=g.dN(d.provider),f=d.getPlayerState(b.state);if(f!==d.Le){e<d.D||("PL"===d.Le?d.playTimeSecs+=e-d.D:"B"===d.Le&&d.Ia&&(d.Ia=!1,d.rebufferTimeSecs+=e-d.Gb,!d.tb&&10<=d.rebufferTimeSecs&&180>=d.playTimeSecs&&(d.provider.oa.IE(),
d.j.qoealert=["1"],d.tb=!0)),"B"!==f||"PL"!==d.Le&&"PB"!==d.Le||(d.Ia=!0),d.D=e);"PL"===d.Le&&("B"===f||"S"===f)||d.provider.W.Dc()?hab(d,e):(d.ub||"PL"!==f||(d.ub=!0,gab(d,e,d.provider.oa.LD())),eab(d,e));"PL"===f&&g.Ru(d.Kd);var h=[f],l=b.state.seekSource;"S"===f&&l&&h.push("ss."+l);g.b0(d,e,"vps",h);d.Le=f;d.Gb=e;d.D=e;d.K=!0}f=c.Tg;g.JG(c,128)&&f&&(f.kK=f.kK||"",lab(d,e,f.errorCode,f.KH,f.kK));(g.JG(c,2)||g.JG(c,128))&&d.reportStats(e);c.isPlaying()&&!d.N&&(0<=d.B&&(d.j.user_intent=[d.B.toString()]),
d.N=!0);jab(d)}a.B&&(d=a.B,T$a(d),d.playerState=b.state,0<=d.B&&g.LG(b,16)&&d.seekCount++,b.state.isError()&&d.send());a.provider.oa.Gi()&&(a.Le=b.state)};
Rab=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.eh){var b;null!=(b=a.C.get(a.eh))&&g0(b.j)}else a.j&&g0(a.j.j)};
X3a=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.K){"PL"===b.Le&&(b.Le="N");var c=g.dN(b.provider);g.b0(b,c,"vps",[b.Le]);b.N||(0<=b.B&&(b.j.user_intent=[b.B.toString()]),b.N=!0);b.provider.W.Dc()&&b.qa("finalized",{});b.Ma=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.u(a.C.values()),c=b.next();!c.done;c=b.next())Lab(c.value);else a.j&&Lab(a.j);a.dispose()};
Sab=function(a,b,c,d){c.adFormat=c.Bd;var e=b.oa;b=new i0(new o0(c,b.W,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
bj:function(){return e.bj()},
Gi:function(){return e.Gi()},
LD:function(){return e.LD()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
PD:function(){return e.PD()},
getVisibilityState:function(){return e.getVisibilityState()},
Ei:function(){return e.Ei()},
Lq:function(){return e.Lq()},
getVolume:function(){return e.getVolume()},
isMuted:function(){return e.isMuted()},
dE:function(){return e.dE()},
wz:function(){return e.wz()},
BD:function(){return e.BD()},
rD:function(){return e.rD()},
getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()},
EQ:function(){e.EQ()},
IE:function(){e.IE()},
qa:function(f,h){e.qa(f,h)}}));
b.B=d;g.N(a,b);return b};
Uab=function(){this.Xu=0;this.C=this.pu=this.Nr=this.B=NaN;this.j={};this.bandwidthEstimate=NaN};
q0=function(a,b,c){g.I.call(this);var d=this;this.W=a;this.oa=b;this.B=c;this.j=new Map;this.eh="";this.Cd={yp:function(){return Array.from(d.j.keys())}}};
Vab=function(){this.j=g.$Aa;this.array=[]};
Xab=function(a,b,c){var d=[];for(b=Wab(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};
Yab=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};
Zab=function(a){return a.array.slice(Wab(a,0x7ffffffffffff),a.array.length)};
Wab=function(a,b){a=Vb(a.array,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
$ab=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};
abb=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
r0=function(a,b,c,d){g.I.call(this);this.Z=a;this.va=b;this.G=c;this.Y=d;this.C=NaN;this.K=this.N=this.started=!1;this.B=[];this.ma=new g.Qu(this.No,250,this);g.N(this,this.ma);this.D=new g.Qu(this.No,0,this);g.N(this,this.D);this.j=new Vab};
bbb=function(a){a.started=!0;a.No()};
cbb=function(a,b){a.started&&(a.No(),g.JG(b.DA,16)&&(b=$ab(a.j,Math.max(a.C-2E3,0)),!isNaN(b)&&0x7ffffffffffff>b&&a.D.start()))};
dbb=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.Y(g.VJ(d.namespace),d):a.Y(g.WJ(d.namespace),d)}};
ebb=function(a){this.timeStamp=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.yJ(a)&&(this.C=.01)};
s0=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
WCa=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(0<b&&a.mediaTime===b)return c-a.timeStamp>(d||!a.B?1500:400);a.mediaTime=b;a.timeStamp=c;return!1};
fbb=function(a,b){this.videoData=a;this.j=b};
gbb=function(a,b,c){return jTa(b,c).then(function(){return XB(new fbb(b,b.C))},function(d){d instanceof Error&&g.uF(d);
var e=FK('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=HK('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.tQa(a.G,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.Mv(),d:!!b.Yc,drm:b.Bj(),f18:0<=b.Xf.indexOf("itag=18"),c18:e};b.j&&(b.Bj()?(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=HK('video/mp4; codecs="avc1.42001E"'),
e.cVP9=HK('video/webm; codecs="vp9"'));b.K&&(e.drmsys=b.K.keySystem,f=0,b.K.j&&(f=Object.keys(b.K.j).length),e.drmst=f);return new BK(d,e,h)})};
hbb=function(a){this.G=a;this.C=this.B=0;this.D=new yV(50)};
u0=function(a,b,c){g.NF.call(this);this.videoData=a;this.experiments=b;this.Z=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.K=0;c=new ibb;"ULTRALOW"===a.latencyClass&&(c.D=!1);a.tb?c.B=3:g.yT(a)&&(c.B=2);"NORMAL"===a.latencyClass&&(c.G=!0);var d=g.lJ(b,"html5_liveness_drift_proxima_override");if(pT(a)&&d){c.j=d;var e;(null==(e=a.j)?0:tPa(e))&&c.j--}if(g.bC("trident/")||g.bC("edge/"))c.C=Math.max(c.C,g.lJ(b,"html5_platform_minimum_readahead_seconds")||3);g.lJ(b,"html5_minimum_readahead_seconds")&&
(c.C=g.lJ(b,"html5_minimum_readahead_seconds"));g.lJ(b,"html5_maximum_readahead_seconds")&&(c.K=g.lJ(b,"html5_maximum_readahead_seconds"));b.kb("html5_force_adaptive_readahead")&&(c.D=!0);if(b=g.lJ(b,"html5_liveness_drift_chunk_override"))c.j=b;oT(a)&&(c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2));this.policy=c;this.N=1!==this.policy.B;this.j=t0(this,jbb(this,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a))};
kbb=function(a,b){if(b)return b=a.videoData,b=jbb(a,isNaN(b.liveChunkReadahead)?3:b.liveChunkReadahead,b),t0(a,b);if(a.B.length){if(1<Math.min.apply(null,a.B))return t0(a,a.j-1);if(a.policy.D)return t0(a,a.j+1)}return a.j};
lbb=function(a,b){if(!a.B.length)return!1;var c=a.j;a.j=kbb(a,void 0===b?!1:b);if(b=c!==a.j)a.B=[],a.D=0;return b};
w0=function(a,b){var c=a.Gq(),d=a.policy.j;a.G||(d=Math.max(d-1,0));a=d*v0(a);return b>=c-a};
mbb=function(a,b,c){b=w0(a,b);c||b?b&&(a.C=!0):a.C=!1;a.N=2===a.policy.B||3===a.policy.B&&a.C};
nbb=function(a,b){b=w0(a,b);a.G!==b&&a.ra("livestatusshift",b);a.G=b};
jbb=function(a,b,c){c.tb&&b--;oT(c)&&(b=1);if(pT(c)&&(a=g.lJ(a.experiments,"html5_live_chunk_readahead_proxima_override"))){b=a;var d;(null==(d=c.j)?0:tPa(d))&&b++}return b};
v0=function(a){return a.videoData.j?gR(a.videoData.j)||5:5};
t0=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.C/v0(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.K/v0(a))),b)};
ibb=function(){this.C=0;this.K=Infinity;this.D=!0;this.j=2;this.B=1;this.G=!1};
z0=function(a){g.I.call(this);this.oa=a;this.W=this.oa.U();this.j=0;this.D=null;this.K=this.C=0;this.G=new g.Qu(this.xf,1E3,this);this.fb=new x0({delayMs:g.lJ(this.W.experiments,"html5_seek_timeout_delay_ms")});this.Ca=new x0({delayMs:g.lJ(this.W.experiments,"html5_long_rebuffer_threshold_ms")});this.Za=y0(this,"html5_seek_set_cmt");this.Ma=y0(this,"html5_seek_jiggle_cmt");this.Ra=y0(this,"html5_seek_new_elem");this.Nb=y0(this,"html5_unreported_seek_reseek");this.ma=y0(this,"html5_long_rebuffer_jiggle_cmt");
this.va=new x0({delayMs:2E4});this.Na=y0(this,"html5_seek_new_elem_shorts");this.Xa=y0(this,"html5_seek_new_media_source_shorts_reuse");this.Wa=y0(this,"html5_seek_new_media_element_shorts_reuse");this.Ea=y0(this,"html5_reseek_after_time_jump");this.Z=y0(this,"html5_gapless_handoff_close_end_long_rebuffer");this.Y=y0(this,"html5_gapless_slow_seek");this.N=y0(this,"html5_ads_preroll_lock_timeout");this.ib=new x0({delayMs:g.lJ(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,jz:!this.W.L("html5_report_slow_ads_as_error")});
this.tb=new x0({delayMs:g.lJ(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,jz:!this.W.L("html5_skip_slow_buffering_ad")});this.ub=new x0({delayMs:g.lJ(this.W.experiments,"html5_slow_start_timeout_delay_ms")});this.Ia=y0(this,"html5_slow_start_no_media_source");this.B={};g.N(this,this.G)};
y0=function(a,b){var c=g.lJ(a.W.experiments,b+"_delay_ms");a=a.W.L(b+"_cfl");return new x0({delayMs:c,jz:a})};
obb=function(a,b){a.j=b};
A0=function(a,b,c,d,e,f,h,l){b.test(c)?(a.ze(e,b,h),b.jz||f()):(b.sK&&b.B&&!b.D?(c=(0,g.pD)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.B>b.sK,c=b.j&&c-b.j>b.nR||f?b.D=!0:!1):c=!1,c&&(l=Object.assign({},a.qc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.oa.qa("workaroundReport",l),d&&(b.reset(),a.B[e]=!1)))};
x0=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.nR?1E3:b.nR,d=void 0===b.sK?3E4:b.sK;b=void 0===b.jz?!1:b.jz;this.j=this.B=this.C=this.startTimestamp=0;this.D=!1;this.G=Math.ceil(a/1E3);this.nR=c;this.sK=d;this.jz=b};
sbb=function(a){g.I.call(this);var b=this;this.oa=a;this.W=this.oa.U();this.videoData=this.oa.getVideoData();this.policy=new pbb;this.va=new z0(this.oa);this.K=this.B=this.Aa=this.mediaElement=this.playbackData=null;this.j=NaN;this.D=0;this.Ma=NaN;this.C=null;this.Na=NaN;this.G=this.Y=null;this.ma=!1;this.Za=NaN;this.tb=0;this.N=!1;this.Ea=new g.Qu(function(){qbb(b,!1)},2E3);
this.ub=new g.Qu(function(){B0(b)});
this.Wa=new g.Qu(function(){b.ma=!0;rbb(b,{})});
this.timestampOffset=0;this.Ca=!0;this.Ra=0;this.ib=NaN;this.Ia=new g.Qu(function(){var c=b.W.Wf;c.j+=1E4/36E5;c.j-c.C>1/6&&(NQa(c),c.C=c.j);b.Ia.start()},1E4);
this.Xa=this.Nb=!1;this.Z=0;this.fb=!1;g.N(this,this.va);g.N(this,this.Ea);g.N(this,this.Wa);g.N(this,this.ub);g.N(this,this.Ia)};
ubb=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new hbb(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(gT(a.videoData)&&a.Aa){var c=a.Aa.nH.cj()||0;break a}if(a.videoData.j){c=a.videoData.j.va;break a}}c=0}return c}),a.B=new u0(a.videoData,a.W.experiments,function(){return a.Re(!0)}));
tbb(a)||(a.D=a.D||(g.NT(a.videoData)?0:a.videoData.startSeconds)||0)};
wbb=function(a,b){(a.Aa=b)?vbb(a,!0):C0(a)};
xbb=function(a,b){g.Ru(a.va.G);a.L("html5_exponential_memory_for_sticky")&&(b.state.isPlaying()?g.Ru(a.Ia):a.Ia.stop());if(a.mediaElement)if(8===b.DA.state&&YCa(b.state)&&g.DL(b.state)){b=a.mediaElement.getCurrentTime();var c=a.mediaElement.Oh();var d=a.L("manifestless_post_live_ufph")||a.L("manifestless_post_live")?bL(c,Math.max(b-3.5,0)):bL(c,b-3.5);0<=d&&b>c.end(d)-1.1&&d+1<c.length&&11>c.start(d+1)-c.end(d)&&(d=c.start(d+1)+.2,.2>Math.abs(a.ib-d)||(a.oa.qa("seekover",{b:aL(c,"_"),cmt:b}),a.ib=
d,a.seekTo(d,{Qv:!0,Ed:"seektimeline_postLiveDisc"})))}else(null==(c=b.state)?0:8===c.state)&&!a.Xa&&((a.W.L("embeds_enable_muted_autoplay")||g.qC(g.cS(a.W)))&&0<a.videoData.limitedPlaybackDurationInSeconds?(D0(a.oa,a.getCurrentTime()+a.videoData.limitedPlaybackDurationInSeconds),a.Xa=!0):a.videoData.isLivePlayback&&0<a.videoData.endSeconds&&(D0(a.oa,a.getCurrentTime()+a.videoData.endSeconds),a.Xa=!0))};
zbb=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.K&&d){var e=a.K;if(e.j&&!(c>=e.B&&c<e.C)){var f=e.j.Fi(c);-1!==f&&(e.B=e.j.getStartTime(f),e.C=e.B+e.j.getDuration(f),f=(0,g.pD)()/1E3-e.j.jf(f),f-=e.G(),e.D.add(f))}}a.B&&(d&&(e=a.B,f=ybb(a),e.D++,3>e.D||3E3>g.kb()-e.K||(e.K=g.kb(),e.B.push(f),50<e.B.length&&e.B.shift())),e=a.B,mbb(e,c,void 0===b?!0:b),nbb(e,c),b&&qbb(a,!0));d!==a.Nb&&(b=500>=a.getCurrentTime()-a.Za,c=1E3<=a.tb,b||c||(b=a.oa.Cc(),b.qoe&&(b=b.qoe,c=g.dN(b.provider),
g.b0(b,c,"lh",[d?"1":"0"])),a.Nb=d,a.tb++,a.Za=a.getCurrentTime()))};
qbb=function(a,b){if(a.B){var c=a.B;var d=a.getCurrentTime();!w0(c,d)&&c.Vq()?(c.policy.G&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.Rd()?Math.min(c.videoData.Rd()+10,c.Gq()):NaN;if(!isNaN(c)){if(a.Aa&&b&&(b=a.Ea.isActive(),d=a.B.Gq(),(d=w9a(a.Aa,d-a.Vc()))&&!b)){a.Ea.start();a.oa.qa("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.Vc()});a.seekTo(d+a.Vc(),{Ed:"seektimeline_inBufferSeek"});return}a.seekTo(c,{Ed:"seektimeline_pegToLive"})}}};
vbb=function(a,b){if(a.B&&a.Aa){var c=!1;b?c=!0:a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass?c=lbb(a.B):a.fb&&(a.fb=!1,c=lbb(a.B,!0));c&&(b=a.oa.Cc(),c=a.B,c=v0(c)*c.j,b.qoe&&(b=b.qoe,g.b0(b,g.dN(b.provider),"lra",[c]),b.qa("live-readahead-seconds",{v:c})));b=a.Aa;var d=a.B.j;a=a.B;a=(a.j-1+a.policy.j)*v0(a);c=NaN;var e=b.Nb;2===e||-1===e?oT(b.oa.getVideoData())&&(c=b.policy.rz):(--d,e=b.oa.getVideoData(),e.yc()&&"ULTRALOW"!==e.latencyClass&&
!e.isLowLatencyLiveStream&&(c=pT(e)?b.policy.zG:b.policy.Po));d=Math.max(d,0);e=b.D;e.ih=d;e.Z=c;b.K&&(b.K.ma=a)}};
Abb=function(a,b){a.D=b};
rbb=function(a,b){Bbb(a,b).then(void 0,function(){C0(a)});
Cbb(a).then(function(c){Dbb(a,c)},function(){C0(a)});
w3a(a.oa,b);a.W.Dc()&&(b=a.qc(),b["native"]=""+ +a.N,b.tgt=""+a.j,b.otgt=""+(a.j+a.timestampOffset),a.oa.qa("startSeek",b))};
Bbb=function(a,b){a.Y||(a.Aa?isFinite(a.j)?a.Y=a.Aa.seek(a.j-a.timestampOffset,b):(eT(a.videoData),a.Y=M_(a.Aa),MT(a.videoData)||(a.j=a.Aa.getCurrentTime()+a.timestampOffset)):a.Y=mg(a.j-a.timestampOffset));return a.Y};
Cbb=function(a){var b=a.C;b||(a.C=new tL,b=a.C,B0(a));return b};
Ebb=function(a,b,c){return isNaN(b)?NaN:g.He(b,a.Rd(),a.Re(c))};
B0=function(a){if(a.C)if(a.videoData.isLivePlayback&&a.videoData.C&&!a.videoData.C.j&&a.mediaElement&&0<a.mediaElement.Jk()&&0<NCa(a.mediaElement)&&(a.j=Ebb(a,a.j,!1)),!a.mediaElement||!Fbb(a))a.ub.start(750);else if(!isNaN(a.j)&&isFinite(a.j)){var b=a.Na-(a.j-a.timestampOffset);if(!(0===b||.005>Math.abs(b)))if(b=a.L("html5_live_seek_timeline_timestamps")&&MT(a.videoData)?a.j-a.timestampOffset:a.j,b=a.mediaElement.getCurrentTime()-b,Math.abs(b)<=a.Ra||.005>Math.abs(b))a.C&&a.C.resolve(a.mediaElement.getCurrentTime());
else{if(a.videoData.YB)a.videoData.YB=!1;else if(!eT(a.videoData)&&a.j>=a.Re()-.1){a.j=a.Re();a.C.resolve(a.Re());CY(a.oa);return}try{var c=a.j-a.timestampOffset;a.mediaElement.seekTo(c);a.va.j=c;a.Na=c;a.D=a.j;a.N=!1}catch(d){}}}};
Fbb=function(a){if(!a.mediaElement||0===a.mediaElement.Jk()||a.mediaElement.hasError())return!1;var b=0<a.mediaElement.getCurrentTime();if(!(a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&a.videoData.Bj())return b;if(0<=a.j){var c=a.mediaElement.KD();if(c.length||!b)return cL(c,a.j-a.timestampOffset)}return b};
Dbb=function(a,b){a.G&&(a.G.resolve(b),a.oa.ra("SEEK_COMPLETE"),a.W.Dc()&&(b=a.qc(),b["native"]=""+ +a.N,b.otgt=""+(a.j+a.timestampOffset),a.oa.qa("seekEnd",b)));C0(a)};
C0=function(a){a.j=NaN;a.Na=NaN;a.C=null;a.Y=null;a.G=null;a.ma=!1;a.N=!1;a.Ra=0;a.Ea.stop();a.Wa.stop()};
Hbb=function(a,b,c){var d=a.mediaElement;b=b.type;switch(b){case "seeking":var e=d.getCurrentTime()+a.timestampOffset;if(!a.C||a.N&&e!==a.j){var f=!!a.C;a.C=new tL;a.C.then(function(l){Dbb(a,l)},function(){C0(a)});
if(a.videoData.isAd()&&a.L("enabled_asd_timeline")){var h;vxa({adCpn:a.videoData.clientPlaybackNonce,contentCpn:null!=(h=a.videoData.GU)?h:""})}a.Na=e;obb(a.va,d.getCurrentTime());a.seekTo(e,{Ed:"seektimeline_mediaElementEvent"});c&&Y3a(c,1E3*e,!!f);a.N=!0}break;case "seeked":a.C&&a.C.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":Gbb(a);B0(a);break;case "progress":B0(a);break;case "pause":a.Z=a.getCurrentTime()}a.Z&&(("play"===b||"playing"===b||"timeupdate"===b||"progress"===
b)&&10<a.getCurrentTime()-a.Z&&a.seekTo(a.Z,{Ed:"pauseJump"}),"pause"!==b&&"play"!==b&&"playing"!==b&&"progress"!==b&&(a.Z=0))};
Ibb=function(a){return(zT(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||tbb(a))&&!!a.videoData.j};
tbb=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds};
Gbb=function(a){if(a.Ca)if(MT(a.videoData)&&g.yT(a.videoData))a.Ca=!1;else{var b="ss",c=0;a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.Gb&&!tbb(a)&&(b="mss",c=a.videoData.Gb);(a.videoData.fb?a.L("html5_prioritize_windowed_st_start_seconds"):a.L("html5_prioritize_st_start_seconds"))&&!c&&a.videoData.jk&&(b="stss",c=a.videoData.jk);!c&&Ibb(a)&&(c=a.videoData.liveUtcStartSeconds||a.videoData.Gb,b="utc",c=a.Re()-a.jf(a.Re())+c);!c&&a.videoData.jk&&(b="stss",c=a.videoData.jk);var d={};if(c){if(c>
a.Re()||c<a.Rd())d.minSeekableTime=a.Rd(),d.maxSeekableTime=a.Re(),d.cmt=a.getCurrentTime(),d.it=a.jf(a.getCurrentTime()),d.ss=c,d.utc=Ibb(a)?a.videoData.liveUtcStartSeconds||a.videoData.Gb:0,a.oa.qa("startSecondsOutOfBounds",d),a.videoData.yc()&&(c=Ebb(a,c,!1));a.seekTo(c,{Ed:"seektimeline_startSeconds"});d[b]=c;a.oa.qa("startSeconds",d);a.Ca=!1}else a.videoData.Gb&&(d[b]=a.videoData.Gb+a.Vc(),a.oa.qa("startSeconds",d))}};
Jbb=function(a,b){a.oa.qa("sdai",{adj4t:b.toFixed(3)});a.Ma=b;b+=1;a.j=b;a.D=b;Cbb(a).then(function(c){Dbb(a,c)},function(){C0(a)})};
ybb=function(a){return a.mediaElement?vL(a.mediaElement):0};
pbb=function(){};
E0=function(){this.j=this.started=!1};
Pbb=function(a){function b(e){return c.Ll&&(!d.Qm||!d.Ha.K)||"yt"!==c.va&&(38===d.Ma&&"books"===c.playerStyle||30===d.Ma&&"docs"===c.playerStyle||33===d.Ma&&"google-live"===c.playerStyle)?Kbb(a,d,e):Lbb(a,d).then(function(){F0(a,d)},function(f){F0(a,d,!0);
throw f;})}
var c=a.U(),d=a.getVideoData();d.isDisposed();d.loading=!0;return Mbb(a)?Nbb(a,d).then(function(){F0(a,d)},function(e){e=DK(e);
if(CK(e.severity))return F0(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(Obb=!0);a.handleError(e);return b("onesie")}):b("gvi")};
Mbb=function(a){var b=a.U();if(b.L("html5_disable_onesie")||!b.L("html5_onesie")||!b.L("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.va)return!1;var c=b.vl;if(!c||!c.j)return a.handleError(new BK("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.G<(0,g.pD)()&&(a.qa("okexp","1"),(c=a.Fz())&&b.L("html5_prefer_trusted_host_on_key_expiration"))){c.B=!0;var d;(b=null==(d=c.j.get(0))?void 0:LP(d.location))&&!kY(b)&&c.j.delete(0)}if(Obb)return a.qa("ost3","1"),!1;d={};return 0<Object.keys(d).length?
(d.onesie="0",a.handleError(new BK("html5.missingapi",d)),!1):!0};
Qbb=function(a){var b=qU();rU(b,a);return g.eI(b,Zya())};
Nbb=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t,v,x,A,E,F,G,M,P,R,ba,na,ta,ka,va;return g.H(function(ea){if(1==ea.j)return b.fetchType="onesie",c=RTa(b,a.getPlayerSize(),a.getVisibilityState()),d=new E_(a,c),g.z(ea,d.fetch(),2);e=ea.B;f={player_response:e};b.loading=!1;h=a.oe.It;if(d.Jg){l=g.u(d.Jg.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.u(n),q=p.next().value,r=p.next().value,t=q,v=r,h.j.set(t,v,180),t===b.videoId&&(x=v.Dq(),b.qP=x);h.sz=d}A=g.u(d.JW.entries());for(E=A.next();!E.done;E=
A.next())F=E.value,G=g.u(F),M=G.next().value,P=G.next().value,R=M,ba=P,h.B.set(R,ba,180);g.$S(b,f,!0);if(b.loading||YS(b))return ea.return(Promise.resolve());h.j.Tf();h.B.Tf();b.qP=[];na={};ta="onesie.response";ka=0;b.errorCode?(ta="auth",na.ec=b.errorCode,na.ed=b.errorDetail,na.es=b.qn||"",ka=2):(na.successButUnplayable="1",na.disposed=""+ +b.isDisposed(),na.afmts=""+ +/adaptiveFormats/.test(e),na.cpn=b.clientPlaybackNonce);va=new BK(ta,na,ka);return ea.return(Promise.reject(va))})};
Lbb=function(a,b){var c,d,e,f,h,l,m,n,p,q,r;return g.H(function(t){switch(t.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){t.Ka(4);break}if(!(0<f)){t.Ka(5);break}return g.z(t,zg(5E3),6);case 6:h=new g.QC("Retrying OnePlatform request",{attempt:f}),g.uF(h);case 5:return g.Ba(t,7),g.z(t,Rbb(a,b),9);case 9:return t.return();case 7:l=g.Da(t);m=DK(l);n=m.errorCode;p=a.U();p.L("html5_use_network_error_code_enums")?d&&"manifest.net.badstatus"===n&&401===m.details.rc&&(d=!1,f===e-1&&(e+=1)):d&&"manifest.net.badstatus"===
n&&"401"===m.details.rc&&(d=!1,f===e-1&&(e+=1));if("auth"===n||"manifest.net.retryexhausted"===n)return t.return(Promise.reject(m));a.handleError(m);if(CK(m.severity)){t.Ka(4);break}case 3:f++;t.Ka(2);break;case 4:return q=c?"auth":"manifest.net.retryexhausted",r=c?2:1,t.return(Promise.reject(new BK(q,{backend:"op"},r)))}})};
Rbb=function(a,b){function c(ta){2===ta.readyState&&a.Wd("ps_c")}
var d,e,f,h,l,m,n,p,q,r,t,v,x,A,E,F,G,M,P,R,ba,na;return g.H(function(ta){switch(ta.j){case 1:b.fetchType="gp";d=a.U();e=g.sS(d,g.JT(b));if(!e.j){f=e.getValue();ta.Ka(2);break}return g.z(ta,e.j,3);case 3:f=ta.B;case 2:return h=f,l=Qbb(h),m=RTa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.iH(Sbb),p=g.JT(b),q=(0,g.pD)(),r=!1,t="empty",v=0,a.Wd("psns"),x={JA:c},g.z(ta,g.WH(l,m,n,void 0,x),4);case 4:A=ta.B;a.Wd("psnr");if(b.isDisposed())return ta.return();A?"error"in A&&A.error?(r=!0,t="esf:"+A.error.message,
v=A.error.code):A.errorMetadata&&(r=!0,t="its",v=A.errorMetadata.status):r=!0;if(r)return E=0,F=((0,g.pD)()-q).toFixed(),G={},G=d.L("html5_use_network_error_code_enums")?{backend:"op",rc:v,rt:F,reason:t,has_kpt:b.ub?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.rB("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.Ca?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.Fk||"",token_eq:p===g.JT(b)?"1":"0"}:{backend:"op",
rc:""+v,rt:F,reason:t,has_kpt:b.ub?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.rB("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.Ca?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.Fk||"",token_eq:p===g.JT(b)?"1":"0"},M="manifest.net.connect",429===v?(M="auth",E=2):200<v&&(M="manifest.net.badstatus",400===v&&(E=2)),ta.return(Promise.reject(new BK(M,G,E)));b.loading=!1;g.$S(b,{raw_player_response:A},!0);
P=A;g.$R(b.U())&&P&&P.trackingParams&&lP(P.trackingParams);if(b.errorCode)return R={ec:b.errorCode,ed:b.errorDetail,es:b.qn||""},ta.return(Promise.reject(new BK("auth",R,2)));if(!b.loading&&!YS(b))return ba=b.isAd()?"auth":"manifest.net.retryexhausted",na=b.isAd()?2:1,ta.return(Promise.reject(new BK(ba,{successButUnplayable:"1",hasMedia:g.vT(b)?"1":"0"},na)));g.Aa(ta)}})};
Kbb=function(a,b,c){function d(v){v=DK(v);if(CK(v.severity))return Promise.reject(v);a.handleError(v);return!1}
function e(){return!0}
var f,h,l,m,n,p,q,r,t;return g.H(function(v){switch(v.j){case 1:var x=a.U(),A=a.getPlayerSize(),E=a.getVisibilityState();a.isFullscreen();var F=window.location.search;if(38===b.Ma&&"books"===x.playerStyle)F=b.videoId.indexOf(":"),F=g.an("//play.google.com/books/volumes/"+b.videoId.slice(0,F)+"/content/media",{aid:b.videoId.slice(F+1),sig:b.A7});else if(30===b.Ma&&"docs"===x.playerStyle)F=g.an("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.j5,authkey:b.M5,eurl:x.rd});else if(33===
b.Ma&&"google-live"===x.playerStyle)F=g.an("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{"yt"!==x.va&&g.tF(Error("getVideoInfoUrl for invalid namespace: "+x.va));var G={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:x.rd,ps:x.playerStyle,el:FT(b),hl:x.wj,list:b.playlistId,agcid:b.MU,aqi:b.adQueryId,sts:19788,lact:JE()};Object.assign(G,x.j);x.forcedExperiments&&(G.forced_experiments=x.forcedExperiments);b.Ca?(G.vvt=b.Ca,b.mdxEnvironment&&(G.mdx_environment=b.mdxEnvironment)):
g.JT(b)&&(G.access_token=g.JT(b));b.adFormat&&(G.adformat=b.adFormat);0<=b.slotPosition&&(G.slot_pos=b.slotPosition);b.breakType&&(G.break_type=b.breakType);null!==b.yG&&(G.ad_id=b.yG);null!==b.AG&&(G.ad_sys=b.AG);null!==b.qC&&(G.encoded_ad_playback_context=b.qC);b.wL&&(G.tpra="1");x.captionsLanguagePreference&&(G.cc_lang_pref=x.captionsLanguagePreference);x.Gb&&2!==x.Gb&&(G.cc_load_policy=x.Gb);var M=g.OC(g.NC(),65);g.kS(x)&&null!=M&&!M&&(G.device_captions_on="1");x.mute&&(G.mute=x.mute);b.annotationsLoadPolicy&&
2!==x.annotationsLoadPolicy&&(G.iv_load_policy=b.annotationsLoadPolicy);b.Px&&(G.endscreen_ad_tracking=b.Px);(M=x.Na.get(b.videoId))&&M.YK&&(G.ic_track=M.YK);b.va&&(G.itct=b.va);CTa(b)&&(G.autoplay="1");b.mutedAutoplay&&(G.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(G.autonav="1");b.xC&&(G.noiba="1");b.isMdxPlayback&&(G.mdx="1",G.ytr=b.rl);b.mdxControlMode&&(G.mdx_control_mode=b.mdxControlMode);b.hv&&(G.ytrcc=b.hv);b.BC&&(G.utpsa="1");b.isFling&&(G.is_fling="1");b.isInlinePlaybackNoAd&&(G.mute="1");
b.vnd&&(G.vnd=b.vnd);b.forceAdsUrl&&(M=3===b.forceAdsUrl.split("|").length,G.force_ad_params=M?b.forceAdsUrl:"||"+b.forceAdsUrl);b.wj&&(G.preload=b.wj);A.width&&(G.width=A.width);A.height&&(G.height=A.height);(b.Zf?0:b.Yg)&&(G.splay="1");b.ypcPreview&&(G.ypc_preview="1");HT(b)&&(G.content_v=HT(b));b.tb&&(G.livemonitor=1);x.Ca&&(G.authuser=x.Ca);x.pageId&&(G.pageid=x.pageId);x.ub&&(G.ei=x.ub);x.D&&(G.iframe="1");b.contentCheckOk&&(G.cco="1");b.racyCheckOk&&(G.rco="1");x.K&&b.rM&&(G.live_start_walltime=
b.rM);x.K&&b.Il&&(G.live_manifest_duration=b.Il);x.K&&b.playerParams&&(G.player_params=b.playerParams);x.K&&b.cycToken&&(G.cyc=b.cycToken);x.K&&b.xL&&(G.tkn=b.xL);0!==E&&(G.vis=E);x.enableSafetyMode&&(G.enable_safety_mode="1");b.ub&&(G.kpt=b.ub);b.Wm&&(G.kids_age_up_mode=b.Wm);b.kidsAppInfo&&(G.kids_app_info=b.kidsAppInfo);b.Fy&&(G.upg_content_filter_mode="1");x.widgetReferrer&&(G.widget_referrer=x.widgetReferrer.substring(0,128));b.ma?(A=null!=b.ma.latitudeE7&&null!=b.ma.longitudeE7?b.ma.latitudeE7+
","+b.ma.longitudeE7:",",A+=","+(b.ma.clientPermissionState||0)+","+(b.ma.locationRadiusMeters||"")+","+(b.ma.locationOverrideToken||"")):A=null;A&&(G.uloc=A);b.Um&&(G.internalipoverride=b.Um);x.embedConfig&&(G.embed_config=x.embedConfig);x.Qm&&(G.co_rel="1");0<x.ancestorOrigins.length&&(G.ancestor_origins=Array.from(x.ancestorOrigins).join(","));void 0!==x.homeGroupInfo&&(G.home_group_info=x.homeGroupInfo);void 0!==x.livingRoomAppMode&&(G.living_room_app_mode=x.livingRoomAppMode);x.enablePrivacyFilter&&
(G.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(G.is_living_room_deeplink="1");b.Eu&&b.Fu&&(G.clip=b.Eu,G.clipt=b.Fu);b.Nx&&(G.disable_watch_next="1");b.Tm&&(G.forced_by_var="1");for(var P in G)!Tbb.has(P)&&G[P]&&512<String(G[P]).length&&(g.uF(Error("GVI param too long: "+P)),G[P]="");P=x.Ea;g.aS(x)&&(P=NAa(P.replace(/\b(?:www|web)([.-])/,"tv$1"))||x.Ea);x=g.an(P+"get_video_info",G);F&&(x=fpa(x,F));F=x}f=F;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m<l)){v.Ka(4);break}n=f;if(!(0<m)){v.Ka(5);break}return g.z(v,
zg(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=EB(f,p);case 5:return g.z(v,Ubb(b,n).then(e,d),7);case 7:if(q=v.B)return v.return();m++;v.Ka(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";t=h?2:1;if(!h&&1E-4>Math.random())try{g.uF(new g.QC("b/152131571",btoa(f)))}catch(R){}return v.return(Promise.reject(new BK(r,{backend:"gvi"},t)))}})};
Ubb=function(a,b){function c(A){return d(A.xhr)}
function d(A){if(!a.isDisposed()){A=A?A.status:-1;var E=0,F=((0,g.pD)()-p).toFixed();F=e.L("html5_use_network_error_code_enums")?{backend:"gvi",rc:A,rt:F}:{backend:"gvi",rc:""+A,rt:F};var G="manifest.net.connect";429===A?(G="auth",E=2):200<A&&(G="manifest.net.badstatus",400===A&&(E=2));return Promise.reject(new BK(G,F,E))}}
var e,f,h,l,m,n,p,q,r,t,v,x;return g.H(function(A){if(1==A.j){a.fetchType="gvi";e=a.U();var E={};a.PS&&(E.ytrext=a.PS);(l=g.md(E)?void 0:E)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=EB(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=AR(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);0<Object.keys(m).length&&
(f.headers=m);p=(0,g.pD)();return g.z(A,oPa(TB,h,f).then(void 0,c),2)}q=A.B;if(!q||!q.responseText)return A.return(d(q));a.loading=!1;r=BB(q.responseText);g.$S(a,r,!0);if(a.errorCode)return t={ec:a.errorCode,ed:a.errorDetail,es:a.qn||""},A.return(Promise.reject(new BK("auth",t,2)));if(!a.loading&&!YS(a))return v=a.isAd()?"auth":"manifest.net.retryexhausted",x=a.isAd()?2:1,A.return(Promise.reject(new BK(v,{successButUnplayable:"1"},x)));g.Aa(A)})};
F0=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h;g.H(function(l){if(1==l.j){d=a.U();if(c&&(!g.mS(d)||"embedded"!==FT(b))||b.Nx||"adunit"!==FT(b)&&(g.yJ(d)||fS(d)||g.$G(d)||g.aS(d)||"WEB_CREATOR"===g.yR(d)))return l.return();e=g.sS(d,g.JT(b));return e.j?g.z(l,e.j,3):(f=e.getValue(),l.Ka(2))}2!=l.j&&(f=l.B);h=f;return l.return(Vbb(a,b,h))})};
Vbb=function(a,b,c){var d,e,f,h,l;return g.H(function(m){if(1==m.j){g.Ba(m,2);d=Qbb(c);var n=b.U();g.NC();var p={context:g.RT(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===FT(b)&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.Qm&&(p.showContentOwnerOnly=!0);b.QU&&(p.showShortsOnly=!0);g.OC(0,141)&&(p.autonavState=g.OC(0,140)?"STATE_OFF":"STATE_ON");if(g.kS(n)){var q=g.OC(0,65);q=null!=q?
!q:!1;var r=!!g.JC("yt-player-sticky-caption");p.captionsRequested=q&&r}var t;q=null==(t=n.getWebPlayerContextConfig())?void 0:t.encryptedHostFlags;n.L("embeds_web_enable_havs_getwatchnext")&&q&&(p.playbackContext={encryptedHostFlags:q});e=p;f=g.iH(Wbb);a.Wd("wn_s");return g.z(m,g.WH(d,e,f),4)}if(2!=m.j)return h=m.B,a.Wd("wn_r"),!h||"error"in h&&h.error||(l=h,g.$R(b.U())&&l.trackingParams&&lP(l.trackingParams),g.$S(b,{raw_watch_next_response:h},!1)),g.Ca(m,0);g.Da(m);g.Aa(m)})};
Xbb=function(a){a.Wd("vir");a.Wd("ps_s");TH("vir",void 0,"video_to_ad");var b=Pbb(a);b.then(function(){a.Wd("virc");TH("virc",void 0,"video_to_ad");a.Wd("ps_r");TH("ps_r",void 0,"video_to_ad")},function(){a.Wd("virc");
TH("virc",void 0,"video_to_ad")});
return b};
g.I0=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new g.XS(a):m;n=void 0===n?!0:n;g.NF.call(this);var p=this;this.W=a;this.playerType=b;this.Sb=c;this.WF=d;this.getVisibilityState=f;this.visibility=h;this.oe=l;this.videoData=m;this.K5=n;this.logger=new g.uU("VideoPlayer");this.OC=new ebb(this.W);this.He=null;this.SA=new V_;this.yq=null;this.Ck=new C$a(this.W,this.WF,this);this.CX=!0;this.Qa=this.Aa=null;this.Pp=[];this.Qp=new E0;this.Sf=this.ZE=null;this.xr=new E0;this.aK=null;this.LO=this.xt=!1;this.bK=
NaN;this.a_=!1;this.playerState=new g.wL;this.dK=[];this.KB=new g.IK;this.Qk=new q$a(this);this.mediaElement=null;this.uw=new g.Qu(this.o$,15E3,this);this.DR=this.tJ=!1;this.ax=NaN;this.uV=!1;this.JM=0;this.XG=new g.Qu(this.HR,4500,this);this.cE=!1;this.UI=NaN;this.iS=new zV(new Map([["bufferhealth",function(){return ybb(p.od)}],
["bandwidth",function(){return p.WN()}],
["networkactivity",function(){return p.W.schedule.Y}],
["livelatency",function(){return p.isAtLiveHead()&&p.isPlaying()?Ybb(p):NaN}],
["rawlivelatency",function(){return Ybb(p)}]]));
this.pE=0;this.loop=!1;this.playbackRate=1;this.qY=0;this.od=new sbb(this);this.AV=!1;this.cK=[];this.vP=this.b_=0;this.AR=this.X0=!1;this.IB=this.pu=this.Nr=0;this.wM=new g.Qu(this.D7,0,this);this.ac=this.pd=null;this.s9=[this.KB,this.wM,this.uw,this.XG,this.iS];this.jg=function(){var q=p.Cc();q.provider.W.Xf||3===q.provider.oa.getVisibilityState()||(q.provider.W.Xf=!0);Rab(q);if(q.B){var r=q.B;r.G&&0>r.j&&3!==r.provider.oa.getVisibilityState()&&S$a(r)}q.qoe&&(q=q.qoe,q.fb&&0>q.B&&q.provider.W.Xf&&
pab(q));p.Aa&&G0(p);p.W.Vo&&!p.videoData.backgroundable&&p.mediaElement&&!p.Sh()&&(p.isBackground()&&p.mediaElement.NG()?(p.qa("bgmobile",{suspend:1}),p.uo(!0,!0)):p.isBackground()||H0(p)&&p.qa("bgmobile",{resume:1}))};
this.Cd={Mp:function(q){p.Mp(q)},
vob:function(q){p.He=q},
Ymb:function(){return p.mA},
cI:function(){return p.nA},
zmb:function(){return p.XG},
U:function(){return p.W},
kf:function(){return p.mediaElement},
Vnb:function(q){p.MJ(q)}};
this.logger.debug(function(){return"creating, type "+b});
this.Nh=new r0(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.VJ("endcr")||g.JG(p.playerState,32)||CY(p);
e(q,r,p.playerType)});
g.N(this,this.Nh);g.N(this,this.od);Zbb(this,m);this.videoData.subscribe("dataupdated",this.bba,this);this.videoData.subscribe("dataloaded",this.bN,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.qa,this);this.videoData.subscribe("ctmpstr",this.dB,this);this.tN();b3a(this.jg);this.visibility.subscribe("visibilitystatechange",this.jg)};
qL=function(a){return a.L("html5_not_reset_media_source")&&!a.Bj()&&!a.videoData.isLivePlayback&&g.GT(a.videoData)&&!a.W.supportsGaplessShorts()};
Zbb=function(a,b){if(2===a.playerType||a.W.Xo)b.x0=!0;var c=JRa(b.Bd,b.rz,a.W.D,a.W.K);c&&(b.adFormat=c);2===a.playerType&&(b.bl=!0);if(a.isFullscreen()||a.W.D)c=g.JC("yt-player-autonavstate"),b.autonavState=c||(a.W.D?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&D0(a,b.endSeconds)};
acb=function(a){if(a.videoData.Y){var b=a.oe.fd();a.videoData.zr=a.videoData.zr||(null==b?void 0:b.aO());a.videoData.Qr=a.videoData.Qr||(null==b?void 0:b.dO())}if(uTa(a.videoData)||!GTa(a.videoData))b=a.videoData.errorDetail,a.Bg(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.qn||void 0);a.videoData.Yf=a.getUserAudio51Preference();a.L("html5_generate_content_po_token")&&$bb(a)};
bcb=function(a){X3a(a.mA);g.vb(a.mA);for(var b=a.nA,c=g.u(b.j.values()),d=c.next();!d.done;d=c.next())X3a(d.value);b.j.clear();g.vb(a.nA)};
ccb=function(a){return a.mediaElement&&a.mediaElement.Lu()?a.mediaElement.Kb():null};
J0=function(a){if(a.L("html5_check_video_data_errors_before_playback_start")&&a.videoData.errorCode)return!1;if(a.videoData.Ke())return!0;a.Bg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.BY=function(a,b){(b=void 0===b?!1:b)||g.NT(a.videoData)||ZY(a.Cc());a.xt=b;!J0(a)||a.Qp.zt()?g.yJ(a.W)&&a.videoData.isLivePlayback&&a.Qp.zt()&&!a.Qp.j&&!a.xt&&a.bN():(a.Qp.start(),b=a.Cc(),g.dN(b.provider),b.qoe&&kab(b.qoe),a.bN())};
dcb=function(a){var b=a.videoData;Xbb(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=DK(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Bg(c.errorCode,2,unescape(a.videoData.errorReason),AK(c.details),a.videoData.errorDetail,a.videoData.qn||void 0):a.handleError(c))})};
n3a=function(a,b){a.pd=b;a.Aa&&u9a(a.Aa,new g.N_(b))};
fcb=function(a){if(!g.JG(a.playerState,128))if(a.videoData.isLoaded(),a.logger.debug("finished loading playback data"),a.Pp=g.Lb(a.videoData.Ia),g.vT(a.videoData)){a.Sb.tick("bpd_s");K0(a).then(function(){a.Sb.tick("bpd_c");if(!a.isDisposed()){a.xt&&(a.Gc(zL(zL(a.playerState,512),1)),H0(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&D0(a,c.endSeconds);a.Qp.j=!0;L0(a,"dataloaded");a.xr.zt()&&ecb(a);R$a(a.Ck,a.Sf)}});
a.L("html5_log_media_perf_info")&&a.qa("loudness",{v:a.videoData.Vf.toFixed(3)},!0);var b=HTa(a.videoData);b&&a.qa("playerResponseExperiment",{id:b},!0);a.HM()}else L0(a,"dataloaded")};
K0=function(a){M0(a);a.Sf=null;var b=gbb(a.W,a.videoData,a.Sh());a.ZE=b;a.ZE.then(function(c){gcb(a,c)},function(c){a.isDisposed()||(c=DK(c),a.visibility.isBackground()?(N0(a,"vp_none_avail"),a.ZE=null,a.Qp.reset()):(a.Qp.j=!0,a.Bg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",AK(c.details))))});
return b};
Y_=function(a){a.logger.debug("Updating for format change");K0(a).then(function(){return H0(a)});
g.CL(a.playerState)&&a.playVideo()};
gcb=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.logger.debug("finished building playback data");a.Sf=b;ubb(a.od,a.Sf);if(a.videoData.isLivePlayback){var c=q4a(a.oe.It,a.videoData.videoId)||a.Aa&&!isNaN(a.Aa.Ia);c=a.L("html5_onesie_live")&&c;0<a.videoData.Gb&&!gT(a.videoData)||c||a.seekTo(a.Re(),{Ed:"videoplayer_playbackData",seekSource:18})}a.videoData.C.j?a.Aa?g.uF(Error("Duplicated Loader")):(c=g.lJ(a.W.experiments,"html5_onesie_defer_content_loader_ms"))&&I_(a)&&q4a(a.oe.It,
a.videoData.h8)?g.LB(function(){a.isDisposed()||a.Aa||hcb(a)},c):hcb(a):!a.videoData.C.j&&LT(a.videoData)&&a.GJ(new WZ(a.videoData.videoId||"",4));
O0(a);I$a(b).then(function(){var d={};a.Eo(d);a.L("html5_log_av1_info")&&a.W.Dc()&&a.L("html5_log_media_perf_info")&&a.qa("av1Info",d);G0(a)})}};
icb=function(a){a.logger.debug("start readying playback");a.mediaElement&&a.mediaElement.Jy();g.BY(a);J0(a)&&!g.JG(a.playerState,128)&&(a.xr.zt()||(a.xr.start(),a.videoData.Lm?a.Gc(zL(a.playerState,4)):a.Gc(zL(zL(a.playerState,8),1))),ecb(a))};
ecb=function(a){a.isDisposed();a.logger.debug("try finish readying playback");if(a.xr.j)a.logger.debug("already finished readying");else if(a.Qp.j)if(g.JG(a.playerState,128))a.logger.debug("cannot finish readying because of error");else if(a.Pp.length)a.logger.debug(function(){return"cannot finish readying because of pending preroll: "+a.Pp});
else if(a.Nh.started||bbb(a.Nh),a.En())a.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{a.Aa&&(a.LO=K5a(a.Aa.timing));a.xr.j||(a.xr.j=!0);var b=a.L("html5_onesie_live")&&a.Aa&&!isNaN(a.Aa.Ia);!a.videoData.isLivePlayback||0<a.videoData.Gb&&!gT(a.videoData)||b||(a.logger.debug("seek to head for live"),a.seekTo(Infinity,{Ed:"videoplayer_readying",seekSource:18}),a.isBackground()&&(a.DR=!0));Qab(a.Cc());a.logger.debug("finished readying playback");a.ra("playbackready",
a);PH("pl_c",a.Sb.timerName)||(a.Sb.tick("pl_c"),TH("pl_c",void 0,"video_to_ad"));PH("pbr",a.Sb.timerName)||(a.Sb.tick("pbr"),TH("pbr",void 0,"video_to_ad"))}else a.logger.debug("playback data not loaded")};
CY=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.mediaElement&&a.mediaElement.pause();a.Gc(b?new g.wL(14):new g.wL)};
D0=function(a,b){a.yq&&jcb(a);a.yq=new g.UJ(1E3*b,0x7ffffffffffff);a.yq.namespace="endcr";a.addCueRange(a.yq)};
jcb=function(a){a.removeCueRange(a.yq);a.yq=null};
kcb=function(a,b,c,d,e){var f=a.Cc(e);e=g.NT(a.videoData)?f.getVideoData():a.videoData;e.B=c;var h=g.CV(a);f.UE(new B$a(e,c,b,h?h.itag:"",d));c=a.Ck;c.B=0;c.j=0;a.ra("internalvideoformatchange",e,"m"===b)};
g.CV=function(a){var b=P0(a);return vP(b)||!a.Sf?null:g.Db(a.Sf.j.videoInfos,function(c){return b.D(c)})};
P0=function(a){if(a.Sf){var b=a.Ck;var c=a.Sf;a=a.Ev();if(b.oa.Cn().isInline())var d=WS;else b.L("html5_exponential_memory_for_sticky")?d=.5>QQa(b.W.Wf,"sticky-lifetime")?"auto":wP[qP()]:d=wP[qP()],d=g.uP("auto",d,!1,"s");if(vP(d)){d=D$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.B)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;ypa()&&!g.yJ(b.W)&&QK(c.j.videoInfos[0])&&
(f=Math.min(f,g.KK.large));h=g.lJ(b.W.experiments,"html5_chipset_soft_cap");0<h&&(f=Math.min(f,h));d=e.call(d,new tP(0,f,!1,"o"));e=d.compose;f=4320;!b.W.B||g.$R(b.W)||b.W.L("hls_for_vod")||b.W.L("mweb_remove_360p_cap")||(f=g.KK.medium);(h=g.lJ(b.W.experiments,"html5_default_quality_cap"))&&c.j.j&&(b.W.L("html5_always_apply_default_quality_cap")||!c.videoData.Fk&&!c.videoData.qe)&&(f=Math.min(f,h));h=g.lJ(b.W.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&
(f=Math.min(f,h));if(l=h=g.lJ(b.W.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.lJ(b.W.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=P$a(b,c,f);d=e.call(d,new tP(0,4320===f?0:f,!1,"d")).compose(O$a(b,c.videoData)).compose(Q$a(b,c.videoData,c)).compose(N$a(b,c)).compose(G$a(b,c));if(vP(a)||b.L("html5_apply_pbr_cap_for_drm"))d=d.compose(H$a(b,
c))}else b.L("html5_perf_cap_override_sticky")&&(d=d.compose(N$a(b,c))),b.L("html5_ustreamer_cap_override_sticky")&&(d=d.compose(H$a(b,c)));d=d.compose(G$a(b,c));b=c.videoData.Gy.compose(d).compose(c.videoData.eV).compose(a)}else b=WS;return b};
v8a=function(a){var b=a.Ck;a=a.videoData;var c=O$a(b,a);b.L("html5_disable_client_autonav_cap_for_onesie")||c.compose(Q$a(b,a));return c};
g.lcb=function(a,b,c,d){a.videoData.Gy=b;if(a.Sf&&c){c=a.Ck;var e=a.Sf;if(e.j.j){var f=qP(),h=e.j.videoInfos[0].video.j;if(!(f>h&&0!==h&&b.j===h)){var l;f=F$a(c,null==(l=e.j)?void 0:l.videoInfos);l=c.oa.getPlaybackRate();1<l&&f&&(l=sQa(c.W.G,e.j.videoInfos,l),0!==b.j&&l<b.j&&c.oa.setPlaybackRate(1));var m,n;b=g.KK[xP(b)];e=(null==(m=e.videoData.B)?void 0:null==(n=m.video)?void 0:n.j)||0;g.IC("yt-player-quality",{quality:b,previousQuality:e},31104E3);c.W.schedule.policy.D=480<=qP();if(c.L("html5_exponential_memory_for_sticky")){m=
c.W.Wf;n=1;var p=void 0===p?!1:p;PQa(m,"sticky-lifetime");m.values["sticky-lifetime"]&&m.Nq["sticky-lifetime"]||(m.values["sticky-lifetime"]=0,m.Nq["sticky-lifetime"]=0);p&&.0625<QQa(m,"sticky-lifetime")&&(n=2*m.Nq["sticky-lifetime"]);m.values["sticky-lifetime"]+=1*Math.pow(2,m.j/n);m.Nq["sticky-lifetime"]=n;m.D.start()}if(c.L("html5_perf_cap_override_sticky")){m=c.W;p=c.G;c=c.L("html5_perserve_av1_perf_cap");n=c=void 0===c?!1:c;m=m.L("html5_gradual_perf_cap");m=void 0===m?!1:m;if(void 0===n?0:n){n=
rP();b=g.u(Object.keys(n));for(e=b.next();!e.done;e=b.next())e=e.value,0!==e.indexOf("1")&&(n[e]=0);g.IC("yt-player-performance-cap",n,m?2592E3:604800)}else g.KC("yt-player-performance-cap");YMa(c);if(c){c=g.u(kR.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||kR.delete(m);c=g.u(Z_.values());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||Z_.delete(m);c=g.u(p.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||p.delete(m)}else kR.clear(),Z_.clear(),
p.clear()}}}}a.Aa&&(p=a.Aa,d=d||"",XV(p.policy)?zU(p.C.j,d):zU(p.j.G,d));O0(a)};
$bb=function(a){a.videoData.videoId?a.oe.TN(a.videoData.videoId).then(function(b){a.videoData.M6=b}):a.qa("pomvid",{})};
O0=function(a){if(!a.isDisposed()&&!g.JG(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)G0(a);else{var b=P0(a),c=a.videoData;a:{var d=a.videoData.rd;if(b.j){for(var e=g.u(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.Ph(),l=g.KK[h.video.quality];if((!b.C||"auto"!==h.video.quality)&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.ib=d;kcb(a,b.reason,mcb(a,a.videoData.ib))}if(a.L("html5_check_unstarted")?g.CL(a.playerState):a.isPlaying())a.od.Ca=!1,a.playVideo()}};
G0=function(a){if(a.videoData.C&&a.videoData.C.j){var b=P0(a);a.Aa&&d9a(a.Aa,b)}};
ncb=function(a){var b;return!!(a.L("html5_native_audio_track_switching")&&g.kD&&(null==(b=a.videoData.B)?0:UK(b)))};
ocb=function(a){if(!ncb(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1<a.length)};
qcb=function(a){var b=pcb(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.uc.getName()===b})};
pcb=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}};
hcb=function(a){for(var b=a.videoData.j,c=g.u(Object.entries({cpn:a.videoData.clientPlaybackNonce,c:a.W.j.c,cver:a.W.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())LOa(h.value.resource,d,e);f=void 0;null==(f=b.Na)||LOa(f,d,e)}c=a.W;d=a.videoData;b=new g.JXa(c);e=IXa(c,{hasSubfragmentedFmp4:d.hasSubfragmentedFmp4,VD:d.VD});b.N=e;b.Y=d.maxReadAheadMediaTimeMs/1E3||b.Y;e=c.schedule;e.B.cj()===
e.policy.C?b.fb=10:b.fb=d.minReadAheadMediaTimeMs/1E3||b.fb;b.wh=d.readAheadGrowthRateMs/1E3||b.wh;ls&&(b.Jc=41943040);b.Dl=!JCa();g.yJ(c)||!JCa()?(e=c.experiments,b.ma=8388608,b.Ra=524288,b.lk=5,b.Ea=1048576,b.Dp=1.5,b.Pb=4587520,zpa()&&(b.Pb=786432),b.K*=1.1,b.Z*=1.1,b.jc=!0,b.Jc=b.ma,b.me=e.kb("persist_disable_player_preload_on_tv")||e.kb("persist_disable_player_preload_on_tv_for_living_room")||!1):c.B&&(b.K*=1.3,b.Z*=1.3);g.GK&&g.bC("crkey")&&(e="CHROMECAST/ANCHOVY"===c.j.cmodel,b.ma=20971520,
b.Ra=1572864,e&&(b.Pb=812500,b.Wi=1E3,b.Fu=5,b.Ea=2097152));g.uR&&(b.jc=!0);c.supportsGaplessAudio()||(b.Kl=!1);SR&&(b.Vb=!0);b.Yc=c.L("html5_peak_shave");"onesie"===d.fetchType&&c.L("html5_disable_peak_shave_for_onesie")&&(b.Yc=!1);var l;e=null==(l=d.j)?void 0:DP(l);if(gT(d)){b.Bd=!0;b.rg=!0;b.ib=!0;b.wj=!0;b.Qr=!0;if("ULTRALOW"===d.latencyClass||"LOW"===d.latencyClass&&!c.L("html5_disable_low_pipeline"))b.Pm=2,b.Tm=4;b.Yj=d.defraggedFromSubfragments;if(d.Nf||c.L("html5_publish_all_cuepoints"))b.Wo=
!0;g.yT(d)&&(b.Xa=!1);b.vl=g.wJ(c)}d.isAd()&&(b.Yg=0,b.Zf=0);b.Xf=c.L("html5_enable_subsegment_readahead_v3")||c.L("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===d.latencyClass;b.B=/^rq/.test(d.clientPlaybackNonce)||c.Dc();Epa()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(c.j.cmodel)&&!c.L("html5_disable_move_pssh_to_moov")&&e&&(b.jc=!1);f=0;c.L("html5_live_use_alternate_bandwidth_window_sizes")&&(f=c.schedule.policy.B,d.isLivePlayback&&(f=g.lJ(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.Na.C=gT(d)?.5:0;if(!l.policy.G&&f&&(l=l.B,f=Math.round(f*l.resolution),f!==l.j)){h=Array(f);var m=Math.min(f,l.C?l.j:l.B),n=l.B-m;0>n&&(n+=l.j);for(var p=0;p<m;++p)h[p]=l.values[(n+p)%l.j];for(;p<f;++p)h[p]=Infinity;l.j=f;l.values=h;l.B=m%f;l.C=m===f;l.Xl=!0;l.G=DQa(l)}d.isLivePlayback&&(b.Ui=.25);oT(d)&&(b.Xf=!0,"LOW"===d.latencyClass?b.Nb=g.lJ(c.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):
"ULTRALOW"===d.latencyClass&&(b.Nb=g.lJ(c.experiments,"html5_jumbo_ull_subsegment_readahead_target")),b.Oo=!0);d.yc()&&(b.jl=1.3);b.Vb=b.Vb||d.nG;b.j=g.NT(d);b.Ma=d.Y||b.j;c.Dc()&&(b.Ia=!0);d.Y&&!e&&(b.Ip=!0);d.Y&&d.isAd()&&(b.K*=1.6,b.Z*=1.6);LT(d)&&(b.D=d.videoId,b.jk=!0,b.Cu=4,d.er&&0<d.er.length&&(b.Ee=d.er));b.Ff=d.Dl;b.tj=aQa(c,{},d.C||void 0,aTa(d));b.Na=mT(d)&&g.$G(c);fT(d)&&(c.L("html5_sabr_use_accurate_slice_info_params")&&(b.Wa=!0),c.L("html5_support_sabr_partial_segment_eviction")&&(b.Jx=
!0),b.C=!0,b.Hl=c.L("html5_disable_client_resume_policy_for_sabr"),b.Hx=c.L("html5_trigger_loader_when_idle_network"),b.Ro=c.L("html5_enable_platform_backpressure_with_sabr"),b.Gf=c.L("html5_consume_onesie_next_request_policy_for_sabr"),b.Xo=c.L("html5_sabr_report_next_ad_break_time"),b.Nm=c.L("html5_log_high_res_buffer_timeline"),b.Du=c.L("html5_gapless_sabr_btl_last_slice")&&lT(d),gT(d)&&(b.Il=c.L("html5_disable_variability_tracker_for_live")));b.G=b.C&&c.L("html5_sabr_live");HP(c.G,IP.BITRATE)&&
(b.Pb=NaN);if(l=g.lJ(c.experiments,"html5_request_size_max_kb"))b.Ea=1024*l;c.G.D?b.Za="; "+IP.EXPERIMENTAL.name+"=allowed":c.L("html5_enable_cobalt_tunnel_mode")&&(b.Za="; tunnelmode=true");l=d.serverPlaybackStartConfig;(null==l?0:l.enable)&&(null==l?0:l.playbackStartPolicy)&&(b.Wf=!0,KXa(b,l.playbackStartPolicy,2));if(a.W.experiments.kb("enable_audio_description_setting")&&g.OC(g.NC(),198))for(l=a.videoData.getAvailableAudioTracks(),l=g.u(l),c=l.next();!c.done;c=l.next())if(c=c.value,c.G){var q=
c;break}q||(q=a.getAudioTrack(),q=q.uc.isDefault?void 0:q);a.SA.Tf();a:{l=a.oe.It;if(c=a.videoData.videoId)if(d=l.j.get(c)){l.j.remove(c);l=d;break a}l=void 0}a.Aa=new g.H_(a,a.W.schedule,b,a.videoData.j,a.videoData.C,P0(a),q,a.videoData.enableServerStitchedDai,l,a.videoData.Na);q=a.xt&&g.yJ(a.W)&&a.videoData.isLivePlayback;a.Aa.initialize(a.getCurrentTime(),P0(a),q);a.videoData.probeUrl&&(a.Aa.Ra=a.videoData.probeUrl);if(a.Pp.length||a.xt)a.videoData.cotn||Q0(a,!1);wbb(a.od,a.Aa);a.pd&&u9a(a.Aa,
new g.N_(a.pd));a.ac&&(a.Aa.IK(a.ac),a.od.Ca=!1);g.OT(a.videoData)&&(a=a.Aa,a.policy.Yf=a.policy.AG)};
M0=function(a){a.Aa&&(a.Aa.dispose(),a.Aa=null,wbb(a.od,null));qL(a)?rcb(a):R0(a)};
rcb=function(a){if(a.Qa)if(a.logger.debug("release media source"),a.oz(),a.Qa.K)try{a.W.Dc()&&a.qa("rms",{l:"vprms",sr:qL(a),rs:sL(a.Qa)});a.Qa.clear();var b;null!=(b=a.mediaElement)&&(b.B=a.Qa);a.Qa=null}catch(c){b=new g.QC("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=DK(b),a.handleError(b),R0(a)}else R0(a)};
R0=function(a){a.Qa&&(a.logger.debug("remove media source"),MCa(a.Qa),a.oz(),a.Qa.dispose(),a.Qa=null)};
scb=function(a){if(a.Qa)return a.Qa.C;a.logger.debug("update media source");a:{try{g.dC()&&a.videoData.gP()&&PCa(a.mediaElement);var b=a.mediaElement.Iq(a.eO(),a.bO())}catch(d){if(u$a(a.Qk,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Bg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}Q2a(a,b)}var c;return(null==(c=a.Iq())?void 0:c.C)||null};
Q2a=function(a,b,c,d){function e(f){try{tcb(a,f,c,d)}catch(h){g.uF(h),a.handleError(new BK("fmt.unplayable",{msi:"1",ename:h&&"object"===typeof h&&"name"in h?String(h.name):void 0},1))}}
c=void 0===c?!1:c;d=void 0===d?!1:d;ucb(a);a.Qa=b;qL(a)&&"open"===sL(a.Qa)?e(a.Qa):GCa(a.Qa,e)};
ucb=function(a){if(a.Aa){var b=a.getCurrentTime()-a.Vc();a.Aa.seek(b,{}).Al(function(){})}else hcb(a)};
tcb=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;if(a.Qa&&(!b||a.Qa===b)){a.logger.debug("media source opened");var e=a.getDuration();!e&&gT(a.videoData)&&(e=25200);if(a.Qa.isView){var f=e;a.logger.debug(function(){return"Set media source duration to "+f+", video duration "+e});
f>a.Qa.getDuration()&&a.Qa.wl(f)}else a.Qa.wl(e);a9a(a.Aa,a.Qa,c,d);a.ra("mediasourceattached")}};
f9a=function(a,b){kcb(a,b.reason,b.j.info,b.token,b.videoId)};
X_=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d,e,f;return g.H(function(h){if(1==h.j){a.Aa&&a.Aa.Lv();a.Aa&&a.Aa.isDisposed()&&M0(a);if(a.L("html5_enable_vp9_fairplay")&&a.Bj()&&null!=(d=a.videoData.j)){var l=d,m;for(m in l.j)l.j.hasOwnProperty(m)&&(l.j[m].j=null,l.j[m].C=!1)}a.Gc(zL(a.playerState,2048));a.ra("newelementrequired");return b?g.z(h,K0(a),2):h.Ka(2)}a.videoData.yc()&&(null==(e=a.Aa)?0:e.Ia)&&((f=a.isAtLiveHead())&&eT(a.videoData)?a.seekTo(Infinity,{Ed:"videoPlayer_getNewElement"}):
a.videoData.ye&&a.Aa&&(l=a.Aa,l.manifest.yc&&(l.manifest.ye||l.manifest.C||l.manifest.isPremiere?(l.seek(0,{Ed:"loader_resetSqless"}),l.videoTrack.N=!0,l.audioTrack.N=!0,l.videoTrack.G=!0,l.audioTrack.G=!0):iR(l.manifest)&&M_(l))));c&&a.seekTo(0);g.JG(a.playerState,8)&&a.playVideo();g.Aa(h)})};
vcb=function(a,b){a.videoData.Y=!1;b&&X_(a);a.Aa&&Y8a(a.Aa)};
X2a=function(a,b){a.qa("newelem",{r:b});X_(a)};
wcb=function(a,b){a.Sb.D.fQ();g.JG(a.playerState,32)||(a.Gc(zL(a.playerState,32,null==b?void 0:b.seekSource)),g.JG(a.playerState,8)&&a.pauseVideo(!0),a.ra("beginseeking",a));a.Rc()};
w3a=function(a,b){b=null==b?void 0:b.seekSource;g.JG(a.playerState,32)?(a.Gc(BL(a.playerState,16,32,b)),a.ra("endseeking",a)):g.JG(a.playerState,2)||a.Gc(zL(a.playerState,16,b));a.Sb.D.lQ(a.videoData,a.playerState.isPaused())};
ZWa=function(a){var b=0,c="";if(a.pd){if(a.pd.qp)return"D,";b=a.pd.ZN()}else a.ac&&(b=a.ac.ZN(),c=a.ac.dg.substring(0,4));return 0<b?(a="AD"+b+", ",c&&(a+=c+", "),a):""};
L0=function(a,b){a.ra("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
xcb=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.KB.T(a.mediaElement,c.value,a.MJ,a);a.W.Om&&a.mediaElement.Lu()&&(a.KB.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.y9,a),a.KB.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.z9,a))};
zcb=function(a){g.OB(a.bK);ycb(a)||(a.bK=g.MB(function(){return ycb(a)},100))};
ycb=function(a){var b=a.mediaElement;b&&a.tJ&&!a.videoData.Ea&&!PH("vfp",a.Sb.timerName)&&2<=b.Jk()&&!b.isEnded()&&0<eL(b.Oh())&&a.Sb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Ea&&0<b.getDuration()&&(b.isPaused()&&2<=b.Jk()&&0<eL(b.Oh())&&(PH("pbp",a.Sb.timerName)||a.Sb.tick("pbp"),!a.videoData.Lm||a.a_||b.eg()||(a.a_=!0,a.ra("onPlaybackPauseAtStart"))),b=b.getCurrentTime(),s0(a.OC,b))?(O2a(a),!0):!1};
O2a=function(a){g.OB(a.bK);a.uw.stop();a.videoData.Ea=!0;a.W.Oo=!0;a.W.Vb=0;var b=a.Qk;if(b.videoData.B){var c=b.Ha.G;c.C.delete(b.videoData.B.sb);c.B=!0}b.j.stop();Acb(a);g.JG(a.playerState,8)&&a.Gc(AL(a.playerState,65));a.xt=!1;W3a(a.Cc());g.Ru(a.XG);a.ra("playbackstarted");(a=g.Wa("yt.scheduler.instance.clearPriorityThreshold"))?a():ZC(0,0)};
Acb=function(a){var b=a.oe.Pd(),c={},d={};!PH("pbs",a.Sb.timerName)&&wH.measure&&wH.getEntriesByName&&(wH.getEntriesByName("mark_nr")[0]?Iya("mark_nr"):Iya());b.videoId&&(c.videoId=b.videoId);b.clientPlaybackNonce&&!a.L("web_player_early_cpn")&&(c.clientPlaybackNonce=b.clientPlaybackNonce);if(a.mediaElement&&a.mediaElement.isPaused())if(a.W.experiments.kb("web_csi_via_jspb")){var e=new bB;uk(e,6,!0);var f=new cB;Sj(f,bB,22,e);g.xB(LH)(f,a.Sb.timerName)}else d.isPausedOnLoad=!0;a.W.experiments.kb("web_csi_via_jspb")?
(e=new bB,b.B?vk(e,1,Number(b.B.itag)):vk(e,1,-1),f=new cB,Sj(f,bB,22,e),g.xB(LH)(f,a.Sb.timerName)):d.itag=b.B?Number(b.B.itag):-1;b.wj&&(f=a.LO?2:1,a.W.experiments.kb("web_csi_via_jspb")?(e=new bB,S(e,8,f),f=new cB,Sj(f,bB,22,e),g.xB(LH)(f,a.Sb.timerName)):d.preloadType=String(a.LO?2:1));c.liveStreamMode=Bcb[tT(b)];c.playerInfo=d;a.Sb.infoGel(c);if(a.Aa){b=a.Aa.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.C&&(c=window.performance.getEntriesByName(b.C),c.length&&(c=
c[0],b.tick("vri",c.fetchStart),b.tick("vdns",c.domainLookupEnd),b.tick("vreq",c.requestStart),b.tick("vrc",c.responseEnd))),b.B&&(c=window.performance.getEntriesByName(b.B),c.length&&(c=c[0],b.tick("ari",c.fetchStart),b.tick("adns",c.domainLookupEnd),b.tick("areq",c.requestStart),b.tick("arc",c.responseEnd))));b=b.ticks;for(var h in b)b.hasOwnProperty(h)&&a.Sb.tick(h,b[h])}};
Ccb=function(a){a.Cc().hg();if(eT(a.videoData)&&Date.now()>a.qY+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&QPa(a.videoData.j))){var b=a.Cc();if(b.qoe){b=b.qoe;var c=b.provider.oa.LD(),d=g.dN(b.provider);gab(b,d,c);c=c.C;isNaN(c)||g.b0(b,d,"e2el",[c.toFixed(3)])}}a.L("html5_alc_live_log_rawlat")?(b=a.videoData,b=g.wJ(b.U())?!0:"TVHTML5"===g.yR(b.U())?"6"===b.Rm:!1):b=g.wJ(a.W);b&&a.qa("rawlat",{l:BV(a.iS,"rawlivelatency").toFixed(3)});a.qY=Date.now()}a.videoData.B&&UK(a.videoData.B)&&(b=ccb(a))&&
b.videoHeight!==a.vP&&(a.vP=b.videoHeight,kcb(a,"a",mcb(a,a.videoData.ib)))};
mcb=function(a,b){if("auto"===b.j.video.quality&&UK(b.Ph())&&a.videoData.rd)for(var c=g.u(a.videoData.rd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.vP&&"auto"!==d.j.video.quality)return d.Ph();return b.Ph()};
Ybb=function(a){if(!eT(a.videoData))return NaN;var b=0;a.Aa&&a.videoData.j&&(b=gT(a.videoData)?a.Aa.nH.cj()||0:a.videoData.j.va);return(0,g.pD)()/1E3-a.jf()-b};
Ecb=function(a){a.mediaElement&&a.mediaElement.Sh()&&(a.UI=(0,g.pD)());a.W.er?g.LB(function(){Dcb(a)},0):Dcb(a)};
Dcb=function(a){var b;if(null==(b=a.Qa)||!b.pm()){if(a.mediaElement)try{a.aK=a.mediaElement.playVideo()}catch(d){N0(a,"err."+d)}if(a.aK){var c=a.aK;c.then(void 0,function(d){a.logger.debug(function(){return"playMediaElement failed: "+d});
if(!g.JG(a.playerState,4)&&!g.JG(a.playerState,256)&&a.aK===c)if(d&&"AbortError"===d.name&&d.message&&d.message.includes("load"))a.logger.debug(function(){return"ignore play media element failure: "+d.message});
else{var e="promise";d&&d.name&&(e+=";m."+d.name);N0(a,e);a.AV=!0;a.videoData.Zf=!0}})}}};
N0=function(a,b){g.JG(a.playerState,128)||(a.Gc(BL(a.playerState,1028,9)),a.qa("dompaused",{r:b}),a.ra("onAutoplayBlocked"))};
H0=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=scb(a);var d;null==(d=a.Aa)||d.resume()}else M0(a),a.videoData.ib&&(c=a.videoData.ib.jC());b=c;d=a.mediaElement.NG();c=!1;d&&null!==b&&b.resource===d.resource||(Fcb(a,b),c=!0);g.JG(a.playerState,2)||(b=a.od,b.G||!(0<b.D)||b.mediaElement&&0<b.mediaElement.getCurrentTime()||(d={Ed:"seektimeline_resumeTime"},b.videoData.Ea||(d.seekSource=15),b.seekTo(b.D,d)));a:{b=c;if(fT(a.videoData)){if(!a.videoData.Bj())break a}else if(!g.sT(a.videoData))break a;
if(a.mediaElement)if((d=a.videoData.K)&&a.mediaElement.Lu()){var e=a.mediaElement.Kb();if(a.He)if(e!==a.He.element)S0(a);else if(b&&"fairplay"===d.flavor&&!eC())S0(a);else break a;if(a.L("html5_report_error_for_unsupported_tvos_widevine")&&eC()&&"widevine"===d.flavor)a.Bg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.He=new j$a(e,a.videoData,a.W);a.He.subscribe("licenseerror",a.FJ,a);a.He.subscribe("qualitychange",a.m$,a);a.He.subscribe("heartbeatparams",
a.LE,a);a.He.subscribe("keystatuseschange",a.Mp,a);a.He.subscribe("ctmp",a.qa,a);a.L("html5_widevine_use_fake_pssh")&&!a.videoData.isLivePlayback&&"widevine"===d.flavor&&a.He.Ow(new VZ(Gcb,"cenc",!1));b=g.u(a.SA.keys);for(d=b.next();!d.done;d=b.next())d=a.SA.get(d.value),a.He.Ow(d);a.L("html5_eme_loader_sync")||a.SA.Tf()}}else a.Bg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return c};
Fcb=function(a,b){a.Sb.tick("vta");TH("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&Abb(a.od,a.getCurrentTime());a.mediaElement.Jy(b);a.Qa&&ZC(0,4);!a.videoData.Ea&&g.CL(a.playerState)&&a.uw.start();if(ncb(a)){var c;if(b=null==(c=a.mediaElement)?void 0:c.audioTracks())b.onchange=function(){a.ra("internalaudioformatchange",a.videoData,!0)}}};
S0=function(a){a.He&&(a.He.dispose(),a.He=null)};
yY=function(a,b){b=void 0===b?!1:b;return eT(a.videoData)&&(a.isAtLiveHead()&&!a.playerState.isPaused()||a.Vq()||g.yT(a.videoData))?a.getCurrentTime():g.NT(a.videoData)&&a.ac?P3a(a.ac,a.getCurrentTime()):a.Re(b)};
Hcb=function(a){a.logger.debug("reattachVideoSource");a.mediaElement&&(a.Qa?(S0(a),R0(a),scb(a)):(a.videoData.ib&&a.videoData.ib.GR(),a.mediaElement.stopVideo()),a.playVideo())};
Icb=function(a,b){a.W.L("html5_log_rebuffer_reason")&&a.qa("bufreason",{r:b,lact:JE()})};
t3a=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.Cc();if(l.qoe){var q=l.qoe,r=b.cpn,t=c.cpn,v=m.videoData.Bd,x=q.provider.videoData.clientPlaybackNonce,A=q.provider.videoData.videoId,E=t!==x&&p!==A;x=r!==x&&n!==A;q.reportStats();q.adCpn&&q.adCpn!==r||(q.adCpn=x?r:"",q.Y=x?n:"",q.adFormat=x?v:void 0,YY(q,2,h?4:f?2:0,t,p,e),q.reportStats(),q.adCpn=E?t:"",q.Y=E?p:"",q.adFormat=E?v:void 0,YY(q,
2,h?5:f?3:1,r,n,d),q.reportStats())}d=b.cpn;if(l.C.has(d)){if(f=l.C.get(d),n0(f,!0).send(),m0(f),d!==l.provider.videoData.clientPlaybackNonce){Lab(f);var F;null==(F=l.j)||Gab(F);l.C.delete(d)}}else l.eh=l.provider.videoData.clientPlaybackNonce,l.eh&&l.j&&(l.C.set(l.eh,l.j),n0(l.j).send(),m0(l.j));F=c.cpn;m=m.videoData;d=e-a.Xs();if(l.C.has(F)){m=l.C.get(F);var G=m.C&&isNaN(m.D)?k0(m):NaN;m=Kab(m,!1);isNaN(G)||(m.G=G);m.send()}else m=Sab(l,l.provider,m,d),l.C.set(F,m),Mab(m,new g.IG(zL(new g.wL,8),
new g.wL)),Fab(m),null==(G=l.j)||m0(G);l.eh=F;a.L("html5_unify_csi_server_stitched_transition_logging")?uXa(b.cpn,c.cpn,a.videoData.clientPlaybackNonce,e,c.videoData):(l=a.videoData.clientPlaybackNonce,a=c.videoData,b=(b.cpn===l?"video":"ad")+"_to_"+(c.cpn===l?"video":"ad"),l={},a.G&&(l.cttAuthInfo={token:a.G,videoId:a.videoId}),l.startTime=e,RH(b,l),g.QH({targetVideoId:a.videoId,targetCpn:c.cpn},b),SH("pbs",e,b))}}};
Jcb=function(a,b){if(a.W.Dc()&&a.mediaElement){var c=a.mediaElement.qc();c.omt=(a.mediaElement.getCurrentTime()+a.Vc()).toFixed(3);c.ps=a.playerState.state.toString(16);c.rt=(1E3*g.dN(a.Cc().provider)).toFixed();c.e=b;a.cK[a.b_++%5]=c}"timeupdate"!==b&&"progress"!==b&&a.logger.debug(function(){return"video element event "+b})};
Kcb=function(a){if(a.W.Dc()){a.cK.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.u(a.cK),c=b.next();!c.done;c=b.next())c=c.value,a.qa("vpe",Object.assign({t:c.rt},c));a.cK=[];a.b_=0}};
Lcb=function(a){if(g.bC("cobalt")&&g.bC("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.qa("nxdock",{d:b})}};
N2a=function(a,b,c,d,e){a.qa("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
Q0=function(a,b){var c;null==(c=a.Aa)||K_(c,b)};
I_=function(a){return g.Fb(a.Pp,"ad")};
Mcb=function(a){return g.NT(a.videoData)&&a.ac?XY(a.ac):a.videoData.Re()};
g.T0=function(a,b,c,d){g.I.call(this);var e=this;this.logger=new g.uU("App");this.yA=this.Bi=!1;this.Tr={};this.jK={};this.jB=[];this.YX=!1;this.bP=null;this.dY=!1;this.Zv=!0;this.YR=!1;this.uY=this.xP=null;this.HY=!0;this.mediaElement=this.Eb=null;this.UP=NaN;this.XE=!1;this.De=this.MB=this.ac=this.Ae=this.screenLayer=this.mF=this.xb=this.playlist=null;this.logger.debug("constructor begin");this.config=oqa(b||{});this.webPlayerContextConfig=c;Lqa();b=this.config.args||{};this.W=new cRa(b,c,c?c.canaryState:
this.config.assets.player_canary_state,d,this);g.N(this,this.W);this.HM();this.W.experiments.kb("jspb_serialize_with_worker")&&cua();this.W.experiments.kb("gzip_gel_with_worker")&&zsa();this.W.experiments.kb("web_player_empty_translator")?Vua({},{}):this.W.experiments.kb("web_player_all_payloads_via_jspb")&&Vua(Ncb,Ocb);this.W.B&&!Pcb&&(window.addEventListener(RR?"touchstart":"click",F2a,{capture:!0,passive:!0}),Pcb=!0);this.L("html5_onesie")&&(this.Tw=new hY(this.W),g.N(this,this.Tw));this.f0=lC(WR(this.W)&&
!0,b.enablesizebutton);this.pP=lC(!1,b.player_wide);this.visibility=new d3a;g.N(this,this.visibility);this.Bi=lC(!1,b.external_list);this.events=new g.IK(this);g.N(this,this.events);this.L("start_client_gcf")&&(Jta(OE(),{iF:QD,IS:Sra()}),this.W5=OE().resolve(QD),Vra(this.W5));this.Gba=new XT;g.N(this,this.Gba);this.H6=new XT;g.N(this,this.H6);this.Sq=new B4a;d=new VTa;this.Va=new g.hU(this,d);g.N(this,this.Va);this.template=new v4a(this);g.N(this,this.template);this.appState=1;this.Si=Qcb(this);this.J=
new g.dU(this,d,!0,1);g.N(this,this.J);g.N(this,d);d={};this.GM=(d.internalvideodatachange=this.C9,d.playbackready=this.E9,d.playbackstarted=this.F9,d.statechange=this.G9,d);this.L6=new LV(this.Va);this.Td=Rcb(this);d=this.L("html5_load_wasm");b=this.L("html5_allow_asmjs");(d&&$V||b)&&mYa(this.Td,b,b&&!d).then(function(f){e.W.Ra=f;var h;if(null==(h=g.bU(e))?0:h.U().Dc()){var l;null==(l=g.bU(e))||l.qa("wasm",{a:f.j})}},function(f){g.uF(f);
var h;if(null==(h=g.bU(e))?0:h.U().Dc()){f="message"in f&&f.message||f.toString()||"";var l;null==(l=g.bU(e))||l.qa("wasm",{e:f})}});
this.i9=new g.IK(this);g.N(this,this.i9);this.Sb=new sXa(this.W,this.Td);this.Va.ra("csiinitialized");this.zb=Scb(this);this.zb.setPlaybackRate(this.W.D?1:Tcb(this,Number(g.JC("yt-player-playback-rate"))||1));g.OF(this.zb,this.GM,this);acb(this.zb);d={};this.h_=(d.airplayactivechange=this.onAirPlayActiveChange,d.airplayavailabilitychange=this.onAirPlayAvailabilityChange,d.beginseeking=this.fQ,d.endseeking=this.lQ,d.internalAbandon=this.sQ,d.internalaudioformatchange=this.GE,d.internalvideodatachange=
this.onVideoDataChange,d.internalvideoformatchange=this.UE,d.liveviewshift=this.n$,d.playbackstalledatstart=this.Haa,d.progresssync=this.U$,d.onLoadProgress=this.onLoadProgress,d.SEEK_COMPLETE=this.LA,d.SEEK_TO=this.waa,d.onVideoProgress=this.onVideoProgress,d.onLoadedMetadata=this.onLoadedMetadata,d.onAutoplayBlocked=this.onAutoplayBlocked,d.onPlaybackPauseAtStart=this.J$,d.playbackready=this.K$,d.statechange=this.OZ,d.connectionissue=this.IE,d.newelementrequired=this.xZ,d.heartbeatparams=this.LE,
d.videoelementevent=this.MJ,d.drmoutputrestricted=this.onDrmOutputRestricted,d.signatureexpired=this.Caa,d.nonfatalerror=this.B$,d);this.Ht=new g.IK(this);g.N(this,this.Ht);d=10;g.yJ(this.W)&&(d=3);lS(this.W)&&(d=g.lJ(this.W.experiments,"tvhtml5_unplugged_preload_cache_size"));this.It=new jZ;g.N(this,this.It);this.VA=new hZ(d,function(f){f!==g.bU(e,f.getPlayerType())&&f.dispose()});
g.N(this,this.VA);this.LN=this.OH=-1;this.xK=new g.Qu(this.template.resize,16,this.template);g.N(this,this.xK);this.pd=new $3a(this.Va,this.W,this.zb);this.Rp=new EY(this.W);this.Jm=new zY(this);g.N(this,this.Jm);this.lL=new uY(this);g.N(this,this.lL);o4a(this.W.j.c);this.events.T(this.Va,g.VJ("appapi"),this.A9);this.events.T(this.Va,g.WJ("appapi"),this.B9);this.events.T(this.Va,g.VJ("appprogressboundary"),this.T$);this.events.T(this.Va,g.WJ("applooprange"),this.CK);this.events.T(this.Va,"presentingplayerstatechange",
this.Ak);this.events.T(this.Va,"resize",this.haa);this.template.Ja(wf(document,a));this.events.T(this.Va,"offlineslatestatechange",this.D$);this.KS=Ucb(this,this.template.element);g.N(this,this.KS);this.Td.J.U().zj&&bW(this.Td,"offline");this.W.Za&&g.QV("ux",g.gY);this.vV=new g.Qu(this.Oba,g.lJ(this.W.experiments,"html5_defer_fetch_att_ms"),this);g.N(this,this.vV);this.Pd().Ke()&&(g.LC()&&this.Pd().Ia.push("remote"),Vcb(this));this.Sb.tick("fs");Wcb(this);this.W.Za&&bW(this.Td,"ux",!0);g.UR(this.Td.J.U())&&
bW(this.Td,"embed");this.L("web_player_sentinel_is_uniplayer")||g.uF(new g.QC("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.L("web_player_sentinel_yt_experiments_sync");d=g.PB("web_player_sentinel_yt_experiments_sync");a!==d&&g.uF(new g.QC("b/195699950",{yt:a,player:d}));c||g.uF(new g.QC("b/179532961"));this.Q0=Xcb(this);if(c=g.lJ(this.W.experiments,"html5_block_pip_safari_delay"))this.RN=new g.Qu(this.LV,c,this),g.N(this,this.RN);this.L("html5_early_media_for_sharper_shorts")&&
(w2a["247"]=Ycb);YB=this.W.Yc;c=g.lJ(this.W.experiments,"html5_performance_impact_profiling_timer_ms");0<c&&(this.XZ=new g.xg(c),g.N(this,this.XZ),this.events.T(this.XZ,"tick",function(){e.YZ&&Zcb.Js(e.YZ);e.YZ=Zcb.fu("apit")}));
this.logger.debug("constructor end")};
Xcb=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(c={n:c.name,m:c.message},(a.xb||a.zb).Cc().ze("player.exception",AK(c)))}
vF.subscribe("handleError",b);tB.push(b);return function(){vF.unsubscribe("handleError",b);var c=tB.indexOf(b);-1!==c&&tB.splice(c,1)}};
Scb=function(a){var b=new g.XS(a.W,a.config.args);a.Va.ra("initialvideodatacreated",b);return a.lz(1,b)};
$cb=function(a,b){if(a.zb!==b){b.getVideoData().autonavState=a.zb.getVideoData().autonavState;PF(a.zb,a.GM,a);var c=a.zb.getPlaybackRate();a.zb.dispose();a.zb=b;a.zb.setPlaybackRate(c);g.OF(b,a.GM,a);Vcb(a)}};
Rcb=function(a){var b="",c=t4a(a);0===c.indexOf("//")&&(c=a.W.protocol+":"+c);var d=c.lastIndexOf("/base.js");-1!==d&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.uF(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new WXa(a.Va,b);adb(a,b);return b};
adb=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.C=c};
Qcb=function(a){if(a.W.storeUserVolume){a=g.JC("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.He(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.W.mute};return a};
U0=function(a){a.mediaElement=a.W.deviceIsAudioOnly?new g.xV(g.If("AUDIO")):tY.pop()||new g.xV(g.If("VIDEO"));g.N(a,a.mediaElement);a.xb&&a.xb.setMediaElement(a.mediaElement);try{a.W.Bd?(a.MB&&a.events.Tc(a.MB),a.MB=a.events.T(a.mediaElement,"volumechange",a.v$)):(a.mediaElement.oB(a.Si.muted),a.mediaElement.setVolume(a.Si.volume/100))}catch(e){a.Mg("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.FC(a.Ht);bdb(a);var b=a.template,c=a.mediaElement.Kb();b.Fc=c;b.AI=!1;b.Fc.parentNode||Qf(b.fz,b.Fc,0);b.hK=new g.hs(0,0,0,0);A4a(b);lZ(b);c=b.Fc;g.Yu(c,"video-stream");g.Yu(c,g.kZ.MAIN_VIDEO);var d=b.app.U();d.xk&&c.setAttribute("data-no-fullscreen","true");d.L("html5_local_playsinline")?"playsInline"in EK()&&(c.playsInline=!0):d.Pl&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.Xq&&b.Fc&&b.T(c,"click",c.play,c);try{a.mediaElement.Jy()}catch(e){a.Mg("html5.missingapi",
2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message&&e.message.replace(/[;:,]/g,"_")))}};
DY=function(a,b,c){if(a.xb!==b){a.logger.debug(function(){return"start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId});
var d=null;if(a.xb){d=a.xb.getPlayerState();a.logger.debug("set presenting player, destroy modules");cW(a.Td,3);V0(a,"cuerangesremoved",a.xb.fm());a.Jm&&!b.isGapless()&&a.xb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=qL(b)&&qL(a.xb);a.L("html5_rebase_video_to_ad_timeline")&&a.Sb.ou("iv_s");cdb(a,e)}1===b.getPlayerType()&&$cb(a,b);ddb(a,b);a.xb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.OF(b,a.h_,a);if(b.OI())edb(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",
b,b.getVideoData());d&&!g.XCa(d,b.getPlayerState())&&a.OZ(new g.IG(b.getPlayerState(),d));c=c&&a.L("html5_player_preload_ad_fix")&&1===b.getPlayerType();if(b.Qp.j&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Va.Dm("onPlaybackQualityChange",c.quality);V0(a,"cuerangesadded",a.xb.fm());c=b.getPlayerState();g.JG(c,2)?fdb(a):g.JG(c,8)?b.playVideo():b.hE()&&b.pauseVideo();if(2===b.getPlayerType()){var f;b.getVideoData().GU=null==(f=g.bU(a,1))?void 0:f.getVideoData().clientPlaybackNonce}2!==
b.getPlayerType()||a.Nf()||(f=b.getVideoData(),a.zb.hx(f.clientPlaybackNonce,f.Bd||"",f.breakType||0,f.Vf));a.logger.debug("finish set presenting player")}}};
fdb=function(a){if(!gdb(a)){var b=a.zb.kf();b&&(b=b.jD(),b instanceof Promise&&b.catch(function(){}));
W0(a,EL(a.Xb()))}};
bdb=function(a){var b=a.mediaElement;tCa()?a.Ht.T(b,"webkitpresentationmodechanged",a.taa):window.document.pictureInPictureEnabled&&(a.Ht.T(b,"enterpictureinpicture",function(){a.rB(!0)}),a.Ht.T(b,"leavepictureinpicture",function(){a.rB(!1)}));
gC&&(a.Ht.T(b,"webkitbeginfullscreen",function(){a.Fm(3)}),a.Ht.T(b,"webkitendfullscreen",function(){a.Fm(0)}))};
ddb=function(a,b){var c=b.getPlayerType();if(b!==a.zb&&b!==a.Tr[c]){var d;null==(d=a.Tr[c])||d.dispose();a.Tr[c]=b}};
cdb=function(a,b){b=void 0===b?!0:b;a.logger.debug("start clear presenting player");var c;if(c=a.De){c=a.De;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c&&(a.Jj(),U0(a));a.xb&&(a.xb.Jj(!b),PF(a.xb,a.h_,a),1!==a.xb.getPlayerType()&&a.xb.dispose());a.xb=null;a.logger.debug("finish clear presenting player")};
g.bU=function(a,b){return b?1===b?a.zb:a.getVideoData().enableServerStitchedDai&&2===b?a.getVideoData().enablePreroll?a.Tr[2]||a.xb:a.xb:g.NT(a.getVideoData())&&2===b?a.Tr[2]||a.xb:a.Tr[b]||null:a.xb};
hdb=function(a,b,c,d){a=a.lz(b,c,d);acb(a);return a};
X0=function(a,b){return a.Nf(b)?a.zb:b};
Y0=function(a,b){var c=a.xb;return c&&b===a.zb&&a.Nf(b)&&a.Nf(c)?c:b};
kdb=function(a){a.logger.debug("start application playback");if(a.zb.getPlayerState().isError())a.logger.debug("start application playback done, player in error state");else{var b=Z0(a);a.Pd().isLoaded();b&&a.Xp(6);idb(a);fYa(a.Td)||jdb(a)}};
jdb=function(a){if(!Z0(a)){var b=dW(a.Td);b&&!b.created&&XXa(a.Td)&&(a.logger.debug("reload ad module"),b.create())}};
idb=function(a){a.logger.debug("start presenter playback");var b=a.getVideoData(),c=a.Td;fYa(c)||c.rN();!$V&&c.J.L("html5_allow_asmjs")&&lYa(c);bW(c,"embed");bW(c,"inline_preview");bW(c,"kids");bW(c,"remote");bW(c,"miniplayer");bW(c,"offline");bW(c,"unplugged");bW(c,"ypc",!1,!0);bW(c,"ypc_clickwrap",!1,!0);bW(c,"yto",!1,!0);bW(c,"webgl",!1,!0);gYa(c)||(bW(c,"captions",!0),bW(c,"endscreen"),c.sH(),bW(c,"creatorendscreen",!0));c.cW();a.Va.ra("videoready",b)};
$0=function(a){a=a.Pd();a.Ke();return IT(a)};
Wcb=function(a){a.logger.debug("start prepare initial playback");a.zN();var b=a.config.args;U0(a);var c=a.Pd();a.Va.zc("onVolumeChange",a.Si);if(b&&xXa(b)){var d=iS(a.W);d&&!a.Bi&&(b.fetch=0);var e=g.UR(a.W);e&&!a.Bi&&(b.fetch=0);a1(a,b);g.UR(a.W)&&a.Sb.tick("ep_pr_s");if(d&&!a.Bi)b1(a);else if(e&&!a.Bi)ldb(a);else if(!c.Ke())a.playlist.onReady(function(){c1(a)})}DY(a,a.zb);
g.JG(a.zb.getPlayerState(),128)||(b=sCa(!a.W.deviceIsAudioOnly),"fmt.noneavailable"===b?a.Mg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Mg(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.Ke()&&$0(a)&&(a.W.Ui||a.W.Vi)?d1(a):c.tL?a.Va.mutedAutoplay():g.JC("yt-player-playback-on-reload")?(g.bD("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.W.Ca}),g.IC("yt-player-playback-on-reload",!1),d1(a)):qS(a.W)||mdb(a),g.kS(a.W)||"MWEB"===g.yR(a.W)?
(g.VC(g.XC(),function(){e1(a)}),g.VC(g.XC(),function(){jza()})):(e1(a),jza()),a.logger.debug("finish prepare initial playback"))};
e1=function(a){if(a.L("fetch_att_independently"))g.Ru(a.vV);else{var b=a.getVideoData().botguardData;b&&g.RMa(b,a.W,a.getVideoData().uq||"")}};
mdb=function(a){a.logger.debug("start initialize to CUED mode");a.Va.ra("initializingmode");a.Xp(2);a.L("embeds_web_enable_defer_loading_remote_js")&&g.mS(a.W)?g.VC(g.XC(),function(){bW(a.Td,"remote")}):bW(a.Td,"remote");
bW(a.Td,"miniplayer");a.logger.debug("initialized to CUED mode")};
d1=function(a){a.logger.debug("start initialize application playback");if(g.JG(a.zb.getPlayerState(),128))return!1;var b=a.zb.getVideoData();$0(a)&&a.W.Vi&&(tY.length&&a.yA?(f1(a,{muted:!1,volume:a.Si.volume},!1),g1(a,!1)):tY.length||a.Si.muted||(f1(a,{muted:!0,volume:a.Si.volume},!1),g1(a,!0)));$0(a)&&a.W.Po&&b.mutedAutoplay&&(f1(a,{muted:!0,volume:a.Si.volume},!1),g1(a,!0));b.XU&&f1(a,{muted:!0,volume:a.Si.volume},!1);ndb(a,1,b,!1);a.Va.ra("initializingmode");DY(a,a.zb);a.Xp(3);var c;if(!(c=!a.W.Um)){if(c=
a.De){c=a.De;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c=c&&a.YX}c&&(a.Jj(),U0(a),a.zb.setMediaElement(a.mediaElement));icb(a.zb);if(g.JG(a.zb.getPlayerState(),128))return!1;b.Lm||W0(a,3);return a.YX=!0};
Z0=function(a){a=kU(a.Td);return!!a&&a.loaded};
odb=function(a,b){if(!a.Eb)return!1;var c=.001*a.Eb.startTimeMs-1,d=.001*a.Eb.endTimeMs;"repeatChapter"===a.Eb.type&&d--;return 1E-6>=Math.abs(b-c)||1E-6>=Math.abs(b-d)||b>=c&&b<=d};
rdb=function(a){var b,c=null==(b=g.bU(a))?void 0:b.Aa;a.xb&&lT(a.getVideoData())&&c&&c.policy.Ma&&(b=g.lJ(a.U().experiments,"html5_gapless_loop_seek_offset_in_milli"),b=1E3*pdb(a)-b,a.L("html5_gapless_new_slr")?(a=a.lL,qdb(a.app,"gaplessshortslooprange"),b=new g.UJ(0,b,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(a=a.app.fd())&&a.addCueRange(b)):a.setLoopRange({startTimeMs:0,endTimeMs:b,type:"shortsLoop"}))};
sdb=function(a){if(!(g.JG(a.zb.getPlayerState(),64)&&a.Pd().isLivePlayback&&5E3>a.Eb.startTimeMs)){if("repeatChapter"===a.Eb.type){var b,c=null==(b=fUa(a.Bb()))?void 0:b.Di(),d;b=null==(d=a.getVideoData())?void 0:d.jl;c instanceof g.rW&&b&&(d=b[VW(b,a.Eb.startTimeMs)],c.vF(0,d.title));isNaN(Number(a.Eb.loopCount))?a.Eb.loopCount=0:a.Eb.loopCount++;1===a.Eb.loopCount&&a.Va.ob("innertubeCommand",a.getVideoData().C8)}c={Ed:"application_loopRangeStart"};if("clips"===a.Eb.type||"shortsLoop"===a.Eb.type)c.seekSource=
58;a.zb.seekTo(.001*a.Eb.startTimeMs,c)}};
Tcb=function(a,b){var c=a.Va.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};
pdb=function(a,b){b=g.bU(a,b);if(!b)return 0;b=X0(a,b);return h1(a,yY(b),b)};
h1=function(a,b,c){if(a.Nf(c)){c=c.getVideoData();if(i1(a))c=b;else{a=a.pd;for(var d=g.u(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.yd===e.yd){b+=e.Bc/1E3;break}d=b;a=g.u(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.yd===e.yd)break;var f=e.Bc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.ge/1E3;else break}c=d}return c}return b};
tdb=function(a,b){if(3===a.getPresentingPlayerType())return EL(kU(a.Td).Le);if((a.getVideoData().enableServerStitchedDai||g.NT(a.getVideoData()))&&2===b){var c,d;return(null==(c=a.Ae)?0:u3a(c,a.getCurrentTime()))||(null==(d=a.ac)?0:R3a(d))?a.OH:-1}return 2!==b||a.Nf()?a.OH:a.LN};
Vcb=function(a){a.logger.debug("reset for new application playback");j1(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Va.ra("legacyadtrackingpingreset");a.jK={};a.jB=[];vXa(a.Sb);if(a.Ae){var b=a.Ae,c=a.zb;c.getPlayerType();PY(b,!1);x3a(b);y3a(b);b.oa=c}b=a.pd;a=a.zb;1!==a.getPlayerType()&&aZ(b,"invalidParentVideoPlayerType");eZ(b,!1);m4a(b);b.j=a};
b1=function(a){var b=udb();if(b)if(!b.list)a.lH();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Va.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.OV(a.playlist).videoId||(b.index=a.playlist.index));BXa(a.playlist,b);a.mF&&vdb(a,a.mF)}else a.mF=null};
ldb=function(a,b){var c=(b?b:a.Pd()).EV;a.Sb.tick("ep_pr_r");if(null!=c&&(BXa(a.playlist,c),a.YR))a.playlist.onReady(function(){c1(a,b)})};
a1=function(a,b){a.playlist&&(g.vb(a.playlist),a.playlist=null);b&&(a.Bi&&(b.fetch=0),a.playlist=new wXa(a.W,b))};
wdb=function(a){var b,c=Number(null==(b=a.getVideoData().progressBarEndPosition)?void 0:b.utcTimeMillis)/1E3;!isNaN(c)&&(b=a.jf())&&(b-=a.getCurrentTime(),c=1E3*(c-b),b=a.jK.progressEndBoundary,(null==b?void 0:b.start)!==c&&(b&&a.uF([b]),c=new g.UJ(c,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),a.zb.addCueRange(c),a.jK.progressEndBoundary=c))};
W0=function(a,b){a.logger.debug(function(){return"set external state "+b});
if(a.xb){var c=a.xb.getPlayerType();if(2===c&&!a.Nf()){a.LN!==b&&(a.LN=b,a.Va.ob("onAdStateChange",b));return}if(2===c&&a.Nf()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}if(0===b){if(a.Eb)return;var d;if((null==(d=a.xb)?0:d.Ts())&&!pS(a.W)){a.playVideo();return}}a.OH!==b&&(a.OH=b,a.Va.Dm("onStateChange",b))};
xdb=function(a,b,c,d,e){d=void 0===d?Infinity:d;e=void 0===e?0:e;a.logger.debug(function(){return"Enqueuing playerType="+c+" at time="+d+"\n        videoId="+b.videoId});
c=c||a.xb.getPlayerType();var f=ndb(a,c,b,!0);f||(f=hdb(a,c,b));if(2===c&&a.zb){var h=f.getVideoData();a.zb.hx(h.clientPlaybackNonce,h.Bd||"",h.breakType||0,h.Vf)}a.HH(f,d,0,e)};
zdb=function(a,b,c,d,e){var f="";f=a.W.L("html5_autonav_autoplay_in_preload_key")?ydb(a,c,b):k1(a,c,b.videoId,b.yd);a.logger.debug(function(){return"start preload video "+f+", trigger="+e});
var h="";if(a.xb&&(h=a.W.L("html5_autonav_autoplay_in_preload_key")?ydb(a,a.xb.getPlayerType(),a.xb.getVideoData()):k1(a,a.xb.getPlayerType(),a.xb.getVideoData().videoId,a.xb.getVideoData().yd),f===h))return g.BY(a.xb,!0),b.dispose(),null;b.wj=!0;b=hdb(a,c,b);1===c&&lS(a.W)||g.BY(b,!0);a.VA.set(f,b,d||3600);return b};
Adb=function(a,b,c,d){var e=pC(c);return k1(a,b,e,d,"1"===c.autonav||!0===c.autonav,"1"===c.autoplay||!0===c.autoplay||1===c.autoplay)};
ydb=function(a,b,c){return k1(a,b,c.videoId,c.yd,c.isAutonav,c.Wp)};
k1=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;b=b+"_"+c+"_"+d;a.W.L("html5_autonav_autoplay_in_preload_key")&&(b+="_"+ +e+ +f);return b};
ndb=function(a,b,c,d){var e=a.W.L("html5_autonav_autoplay_in_preload_key")?ydb(a,b,c):k1(a,b,c.videoId,c.yd);var f=a.VA.get(e);if(!f)return null;a.VA.remove(e);if(g.JG(f.getPlayerState(),128))return f.dispose(),null;if(f===g.bU(a,b))return a.Sb.infoGel({isCacheHit:!0}),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;1===b&&j1(a);d||DY(a,f,!0);a.Sb.infoGel({isCacheHit:!0});return f};
l1=function(a,b,c){c=g.bU(a,c);b&&c===a.zb&&(c.getVideoData().Yg=!0)};
m1=function(a,b,c){c=void 0===c?1:c;a.logger.debug(function(){return"start cue video, vid "+b.videoId+", type "+c});
if(b.Ke()){var d=a.lz(c,b);a.cancelPlayback(4,c);DY(a,d);acb(d);if(1===c){a.Xp(1);if(g.UR(a.W)&&!GTa(b)){b.dispose();g.vb(g.bU(a,c));return}mdb(a)}a.logger.debug("finish cue video")}else a.logger.debug(function(){return"invalid VideoData in cueVideo"}),b.dispose(),g.vb(g.bU(a,c)),FTa(a.Pd())&&2===c&&delete a.Tr[2]};
Bdb=function(a,b,c,d,e){b=YTa(b,c,d,e);(c=g.UR(a.W)&&!a.W.ma)&&!a.Bi&&(b.fetch=0);a1(a,b);g.UR(a.W)&&a.Sb.tick("ep_a_pr_s");if(c&&!a.Bi)c=a.Pd(),EXa(c,b).then(function(f){a.YR=!0;ldb(a,f)});
else a.playlist.onReady(function(){c1(a)});
g.UR(a.W)&&a.Sb.tick("ep_a_pr_r")};
c1=function(a,b){var c=g.UR(a.W)&&!a.W.ma,d=c&&b?b:g.OV(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.bl&&(a.W.Ui||a.W.Vi)||!a.Zv?(b=b.Yg,d=a.Ft(d,1),b&&l1(a,d)):m1(a,d,1));g.UR(a.W)&&a.Sb.tick("ep_p_l");a.YR=!1;a.Va.zc("onPlaylistUpdate")};
gdb=function(a){if(a.playlist&&g.$R(a.W)&&a.vD()){var b=a.W.L("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
vdb=function(a,b){var c=g.Wa(b);c?((b=udb())&&b.list&&c(),a.mF=null):a.mF=b};
udb=function(){var a=g.Wa("yt.www.watch.lists.getState");return a?a():null};
Cdb=function(a,b,c,d,e,f,h){b={id:b,namespace:null!=h?h:"appapi"};"chapter"===f?(b.style=TJ.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=TJ.AD_MARKER:(b.style=TJ.TIME_MARKER,b.color=e),b.visible=!0);a.Ly([new g.UJ(1E3*c,1E3*d,b)],1);return!0};
Ddb=function(a,b,c,d,e,f){f=void 0===f?!0:f;var h=a.jf();if(!h)return f&&a.getVideoData().isLivePlayback&&a.jB.push({id:b,Cda:c,Bda:d}),!1;f=h-a.getCurrentTime();return Cdb(a,b,c-f,d-f,void 0,void 0,e)};
Edb=function(a,b){a.jB=g.ot(a.jB,function(f){return f.id!==b});
for(var c=a.zb.fm(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.zb.removeCueRange(e),V0(a,"cuerangesremoved",[e]),!0}return!1};
qdb=function(a,b,c){var d=g.bU(a,c);d&&(b=d.Nh.Cf(b),c&&a.getPresentingPlayerType()!==c||V0(a,"cuerangesremoved",b))};
Fdb=function(a){var b=(0,g.pD)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
f1=function(a,b,c){a.W.Xa&&(a.Si=b,b.muted||g1(a,!1),c&&a.W.storeUserVolume&&!a.W.Bd&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.IC("yt-player-volume",c),g.IC("yt-player-volume",c,2592E3))),Gdb(a),c=g.GK&&a.mediaElement&&!a.mediaElement.Kf(),a.W.Bd&&!c||a.Va.zc("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.W.storeUserVolume}))};
Gdb=function(a){var b=a.getVideoData();if(!b.vl){b=a.W.Bd?1:DTa(b);var c=a.mediaElement;c.oB(a.Si.muted);try{c.setVolume(a.Si.volume*b/100)}catch(d){g.uF(new g.QC("b183742307","multiplier: "+b+", volume: "+a.Si.volume))}}};
g1=function(a,b){b!==a.yA&&(a.yA=b,a.Va.zc("onMutedAutoplayChange",b))};
g.aU=function(a){return a.yA&&a.getVideoData().mutedAutoplay};
Hdb=function(a){var b=vC(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.Kb())?b:null};
Jdb=function(a,b){var c=window.screen&&window.screen.orientation;if((a.W.L("lock_fullscreen2")||a.W.Z)&&c&&c.lock&&(!g.GK||!Idb))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.XE||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
a.XE=!0}}else a.XE&&(a.XE=!1,c.unlock())};
V0=function(a,b,c){a.Va.ra(b,c);var d=g.yJ(a.W)||g.aS(a.W)||g.$G(a.W);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Va.ob(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}}))}};
n1=function(a,b,c,d,e,f){c=void 0===c?!0:c;var h=g.bU(a,e);h&&(2===h.getPlayerType()&&!a.Nf(h)||g.yT(h.getVideoData()))||(3===a.getPresentingPlayerType()?kU(a.Td).JE("control_seek",b,c):(h===a.zb&&a.Eb&&!odb(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e,f)))};
edb=function(a,b,c){c&&(a.Jj(),U0(a));c=g.bU(a);c.ze(new BK("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?gT(d)&&g.wJ(a.W)&&(e.live_utc_start=c.jf(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.Ca&&(e.vvt=d.Ca);d.G&&(e.vss_credentials_token=d.G,e.vss_credentials_token_type=d.Km);d.oauthToken&&(e.oauth_token=d.oauthToken);d.Tm&&(e.force_gvi=d.Tm);e.autoplay=1;e.reload_count=d.Vb+1;e.reload_reason=b;d.xG&&(e.unplugged_partner_opt_out=
d.xG);d.Ui&&(e.ypc_is_premiere_trailer=d.Ui);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);"signature"===b&&a.Ae&&jdb(a)};
Kdb=function(a,b){a.Pd().autonavState=b;g.IC("yt-player-autonavstate",b);a.Va.ra("autonavchange",b)};
Ldb=function(a){var b=a.getVideoData().vl,c=a.W.Nb,d=a.isInline()&&!a.getVideoData().pC,e=a.mediaElement;b||c||d?e.BN():(e.EN(),f1(a,a.Si))};
Ucb=function(a,b){return a.W.L("html5_enable_embedded_player_visibility_signals")&&g.UR(a.W)?new r4a(b):null};
j1=function(a){var b=dW(a.Bb());b&&b.created&&(a.logger.debug("reset ad module"),b.destroy())};
i1=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.Ae};
Mdb=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]=ns(a,d);b.hidden=!!a.hidden};
t4a=function(a){if(a.webPlayerContextConfig){var b=a.webPlayerContextConfig.trustedJsUrl;return b?Dw(b).toString():a.webPlayerContextConfig.jsUrl}return a.config.assets&&a.config.assets.js?a.config.assets.js:""};
Ndb=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
Odb=function(){var a=null;Upa().then(function(b){return a=b},function(b){return a=Ndb(b)});
return a};
Pdb=function(){var a=zg(1E3,"NO_BID");return vg(rca([Upa(),a]).Al(Ndb),function(){a.cancel()})};
o1=function(a){return a.Pe?g.OC(g.NC(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
p1=function(a){this.player=a;this.C=this.j=1};
Sdb=function(a,b,c,d,e){b.client||(b.client={});a.player.U().L("h5_remove_url_for_get_ad_break")||(b.client.originalUrl=c);var f=FB(c),h=g.Vm(c)?!1:!0;(f||h)&&"undefined"!==typeof Intl&&(b.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=g.Vm(c)?!1:!0;if(f||h||""!==d){var l={};c=AB(IB(d)).split("&");var m=new Map;c.forEach(function(n){n=n.split("=");1<n.length&&m.set(n[0].toString(),decodeURIComponent(n[1].toString()))});
m.has("bid")&&(l.bid=m.get("bid"));l.params=[];Qdb.forEach(function(n){m.has(n)&&(n={key:n,value:m.get(n)},l.params.push(n))});
Rdb(a,l);b.adSignalsInfo=l}b.client.unpluggedAppInfo||(b.client.unpluggedAppInfo={});b.client.unpluggedAppInfo.enableFilterMode=!1;a=e.j.cosver;null!=a&&"cosver"!==a&&(b.client.osVersion=a);a=e.j.cplatform;null!=a&&"cplatform"!==a&&""!==a&&(b.client.platform=a);a=e.j.cmodel;null!=a&&"cmodel"!==a&&(b.client.deviceModel=a);a=e.j.cplayer;null!=a&&"cplayer"!==a&&(b.client.playerType=a);e=e.j.cbrand;null!=e&&"cbrand"!==e&&(b.client.deviceMake=e);b.user||(b.user={});b.user.lockedSafetyMode=!1};
Vdb=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 Tdb&&(f.clientName=Tdb[d[0]]),d[1]in Udb&&(f.platform=Udb[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};
Xdb=function(a){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in Wdb))return!1;a=a.split(RegExp("[:&]"));var b=Wdb.FLAG_AUTO_CAPTIONS_DEFAULT_ON,c="f"+(1+Math.floor(b/31)).toString();b=1<<Math.floor(b%31);for(var d=0,e=a.length;d<e;d++){var f=a[d].split("=");if(f[0]===c&&parseInt("0x"+f[1],16)&b)return!0}return!1};
Rdb=function(a,b){if(g.yJ(a.player.U())&&a.player.U().L("add_ifa_to_tvh5_requests")){a=g.rB("INNERTUBE_CONTEXT");var c,d;(null==a?0:null==(c=a.adSignalsInfo)?0:c.advertisingId)&&"undefined"!==typeof(null==a?void 0:null==(d=a.adSignalsInfo)?void 0:d.limitAdTracking)&&(b.advertisingId=a.adSignalsInfo.advertisingId,b.limitAdTracking=a.adSignalsInfo.limitAdTracking)}};
eeb=function(a,b,c,d,e){var f=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?Math.trunc(c.DRIFT_FROM_HEAD_MS):0,h=Ydb.exec(b);h=null!=h&&2<=h.length?h[1]:"";var l=Zdb.test(b),m=$db.exec(b);m=null!=m&&2<=m.length?m[1]:"";var n=aeb.exec(b);n=null!=n&&2<=n.length&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=beb.exec(b),q=null!=p&&2<=p.length?p[1]:"0",r=eS(a.player.U().Ea);p=a.player.getVideoData(1);var t=g.gH(p.va,!0),v="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";Sdb(a,t,b,v.toString(),a.player.U());
var x={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19788,autonavState:o1(a.player.U())};d&&(d={},Vdb(d,c.YT_REMOTE)&&(x.mdxContext=d));if(d=ceb.includes(r)?void 0:g.aC("PREF")){for(var A=d.split(RegExp("[:&]")),E=0,F=A.length;E<F;E++){var G=A[E].split("=");if(("SML"===G[0].toUpperCase()||"GSML"===G[0].toUpperCase())&&1<G.length&&"TRUE"===G[1].toUpperCase()){t.user.lockedSafetyMode=!0;
break}}x.autoCaptionsDefaultOn=Xdb(d)}b=deb.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&m&&(t.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:x};h={adBlock:Math.trunc(c.AD_BLOCK),params:h,breakIndex:n,breakPositionMs:q,clientPlaybackNonce:c.CPN,topLevelDomain:r,isProxyAdTagRequest:l,context:t,adSignalsInfoString:AB(IB(v.toString())),overridePlaybackContext:b};void 0!==e&&(h.cueProcessedMs=Math.round(e).toString());m&&(h.videoId=m);c.LIVE_TARGETING_CONTEXT&&(h.liveTargetingParams=
c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(h.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());f&&(h.driftFromHeadMs=f.toString());h.currentMediaTimeMs=Math.round(1E3*a.player.getCurrentTime(1));(a=JTa(p))&&(h.getAdBreakContext=a);return h};
feb=function(){p1.apply(this,arguments)};
geb=function(a,b,c,d,e){var f=c.tv;c=c.ue;var h=a.player.U().jk,l={AD_BLOCK:e,AD_BREAK_LENGTH:f?f.yh:0,AUTONAV_STATE:o1(a.player.U()),CA_TYPE:"image",CPN:a.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Hq(),LACT:JE(),LIVE_INDEX:f?a.C++:1,LIVE_TARGETING_CONTEXT:f&&f.context?f.context:"",MIDROLL_POS:c?Math.round(c.start/1E3):0,MIDROLL_POS_MS:c?Math.round(c.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.qb().Qh().height,P_W:a.player.qb().Qh().width,YT_REMOTE:h?h.join(","):
""},m=Uoa(Toa);Object.keys(m).forEach(function(n){null!=m[n]&&(l[n.toUpperCase()]=m[n].toString())});
""!==d&&(wxa("biscotti id requested"),l.BISCOTTI_ID=d);d={};HB(b)&&(d.sts="19788",(a=a.player.U().forcedExperiments)&&(d.forced_experiments=a));return EB(g.Fu(b,l),d)};
heb=function(a,b){var c=a.player.U(),d,e=null==(d=a.player.getVideoData(1))?void 0:d.oauthToken;return g.sS(c,e).then(function(f){if(f&&GB()){var h=qU();rU(h,f)}return g.WH(a.player.hm(h),b,"/youtubei/v1/player/ad_break").then(function(l){return l})})};
ieb=function(a){this.Oa=a};
jeb=function(a){this.J=a};
keb=function(a){this.Oa=a};
meb=function(a){g.I.call(this);this.fh=a;this.q2=leb(this)};
leb=function(a){var b=new sza(a.fh.jd);g.N(a,b);a=g.u([new ieb(a.fh.Oa),new jeb(a.fh.J),new keb(a.fh.Oa),new oza(a.fh.nk,a.fh.zm),new qza,new yza(a.fh.ao,a.fh.bk,a.fh.Oa),new pza,new mza]);for(var c=a.next();!c.done;c=a.next())tza(b,c.value);a=g.u(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())hI(b,c.value,function(){});
return b};
q1=function(a,b,c,d,e){g.I.call(this);this.J=a;this.B=b;this.Fa=c;this.Ua=d;this.If=e;this.listeners=[];var f=new DC(this);g.N(this,f);f.T(a,"internalAbandon",this.sQ);this.addOnDisposeCallback(function(){g.FC(f)})};
r1=function(a){this.J=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.G=!0;this.B=this.D=!1;this.adFormat=null;this.C="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
oeb=function(a,b,c,d,e,f){f();var h=a.J.getVideoData(1),l=a.J.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId,a.j=h.G);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.C=b;0>=d?f():(a.actionType=a.G?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.D=!0,PH("_start",a.actionType)&&neb(a)))};
peb=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)){SH("ad_i");g.QH({isMonetized:!0});break}};
s1=function(a){var b=a.J.getVideoData(1);if(!a.J.L("html5_no_video_to_ad_on_preroll")||null!=b&&b.Ea)a.B=!1,b={},a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId}),RH("video_to_ad",b)};
pDa=function(a){a.B=!1;var b={};a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});RH("ad_to_video",b);neb(a)};
neb=function(a){if(a.D)if(a.J.L("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.C&&"video_to_ad"===a.actionType)OH("video_to_ad");else if(a.J.L("web_csi_via_jspb")){var b=new bB;b=S(b,8,2);var c=new cB;c=S(c,21,qeb(a.C));c=S(c,7,4);b=Sj(c,bB,22,b);b=S(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&Q(b,76,a.contentCpn),a.videoId&&Q(b,78,a.videoId)):(a.adCpn&&Q(b,76,a.adCpn),a.adVideoId&&Q(b,78,a.adVideoId));a.adFormat&&Q(b,12,a.adFormat);a.contentCpn&&Q(b,
8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&Q(b,28,a.adCpn);a.adVideoId&&Q(b,20,a.adVideoId);g.xB(LH)(b,a.actionType)}else b={adBreakType:ZCa(a.C),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),a.adFormat&&(b.adType=
a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),g.QH(b,a.actionType)};
ZCa=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"}};
reb=function(a){switch(a){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}};
qeb=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}};
t1=function(a){g.I.call(this);this.J=a;this.j=new Map;this.B=new DC(this);g.N(this,this.B);this.B.T(this.J,g.VJ("ad"),this.onCueRangeEnter,this);this.B.T(this.J,g.WJ("ad"),this.onCueRangeExit,this)};
teb=function(a,b){(b=a.j.get(b))&&seb(a,b)};
seb=function(a,b){a.J.xo([b.ue],b.Go);a.j.delete(b.ue.id)};
ueb=function(a,b,c,d,e){g.UJ.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
u1=function(a){this.J=a};
v1=function(a){this.J=a};
w1=function(a){return a.J.U().L("enable_active_view_web_shorts_video")||a.J.U().L("enable_active_view_lr_shorts_video")};
x1=function(a){var b,c;return null!=(c=null==(b=a.J.getVideoData(1))?void 0:g.NT(b))?c:!1};
YM=function(a,b){return a.J.U().L(b)};
veb=function(a){return a.J.U().L("substitute_ad_cpn_macro_in_ssdai")};
cN=function(a){var b,c,d;return(null==(b=a.J.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
OGa=function(a){return a.J.U().L("html5_enable_vod_slar_with_notify_pacf")};
web=function(a){return a.J.U().L("html5_recognize_predict_start_cue_point")};
qFa=function(a){return a.J.U().experiments.kb("enable_desktop_player_underlay")};
xeb=function(a){return a.J.U().experiments.kb("html5_load_empty_player_in_media_break_sub_lra")};
IL=function(a){return a.J.U().experiments.kb("html5_load_ads_instead_of_cue")};
JL=function(a){return a.J.U().experiments.kb("html5_preload_ads")};
y1=function(a){return a.J.U().experiments.kb("html5_rebase_video_to_ad_timeline")};
yeb=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}};
zeb=function(){g.NF.call(this);var a=this;this.j={};this.addOnDisposeCallback(function(){for(var b=g.u(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
z1=function(){if(null===Aeb){Aeb=new zeb;Fq(Eu).B="b";var a=Fq(Eu),b="h"==xu(a)||"b"==xu(a),c=!(Lr(),!1);b&&c&&(a.D=!0,a.G=new Cja)}return Aeb};
Beb=function(a,b,c){a.j[b]=c};
Ceb=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 "swipe":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}};
A1=function(a,b,c){this.Fa=a;this.J=b;this.Da=c;this.j=new Map;z1().subscribe("adactiveviewmeasurable",this.Kw,this);z1().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Jw,this);z1().subscribe("adviewableimpression",this.Lw,this);z1().subscribe("adaudioaudible",this.Hw,this);z1().subscribe("adaudiomeasurable",this.Iw,this)};
C1=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?HG("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),uq(Lr().Mc,"fmd",1),Mka(Fq(Eu),c),Beb(z1(),b,{gO:function(){if(!d)return{};if(w1(a.Da.get())){var f=a.J.getPresentingPlayerType(!0),h;return null!=(h=a.J.getVideoData(f))&&h.isAd()?{currentTime:a.Fa.get().getCurrentTimeSec(f,!1),duration:d,isPlaying:B1(a.Fa.get(),f).isPlaying(),isVpaid:!1,isYouTube:!0,volume:a.Fa.get().isMuted()?0:a.Fa.get().getVolume()/100}:{}}return{currentTime:a.Fa.get().getCurrentTimeSec(2,
!1),duration:d,isPlaying:2===a.Fa.get().getPresentingPlayerType()&&B1(a.Fa.get(),2).isPlaying(),Dnb:!1,Enb:!0,volume:a.Fa.get().isMuted()?0:a.Fa.get().getVolume()/100}}}))};
D1=function(a,b){a.j.has(b)?(a.j.delete(b),delete z1().j[b]):HG("Unexpected unregistration of layout in LidarApi")};
Feb=function(a,b){var c={};Deb(a,c,b);Eeb(c);c.LACT=E1(function(){return JE().toString()});
c.VIS=E1(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=E1(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
Geb=function(a,b){var c={};if(b)return c;if(!a.kind)return g.tF(Error("AdPlacementConfig without kind")),c;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.tF(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=E1(Rd(Math.round(jf(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=E1(Rd("0"));return c};
E1=function(a){return{toString:function(){return a()}}};
Heb=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.md(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};
Deb=function(a,b,c){b.CPN=E1(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.uF(Error("Video data is null.")),d=null);return d});
b.AD_MT=E1(function(){return Math.round(Math.max(0,1E3*(null!=c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=E1(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=E1(function(){return a.qb().Qh().height.toString()});
b.P_W=E1(function(){return a.qb().Qh().width.toString()});
b.PV_H=E1(function(){return a.qb().getVideoContentRect().height.toString()});
b.PV_W=E1(function(){return a.qb().getVideoContentRect().width.toString()})};
Eeb=function(a){a.CONN=E1(Rd("0"));a.WT=E1(function(){return Date.now().toString()})};
Ieb=function(){};
Jeb=function(a,b,c,d,e){var f,h,l,m,n,p,q,r,t,v,x;g.H(function(A){switch(A.j){case 1:f=!!b.scrubReferrer;h=g.Fu(b.baseUrl,Heb(c,f,d));l={};if(!b.headers){A.Ka(2);break}m=a.B();if(!m.j){n=m.getValue();A.Ka(3);break}return g.z(A,m.j,4);case 4:n=A.B;case 3:p=n;q=g.u(b.headers);for(r=q.next();!r.done;r=q.next())switch(t=r.value,t.headerType){case "VISITOR_ID":g.rB("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.rB("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.rB("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]=
g.rB("EOM_VISITOR_DATA"));break;case "USER_AUTH":p&&(l.Authorization="Bearer "+p);break;case "PLUS_PAGE_ID":(v=a.C())&&(l["X-Goog-PageId"]=v);break;case "AUTH_USER":x=a.j();!p&&x&&(l["X-Goog-AuthUser"]=x);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.jE(h,void 0,f,0!==Object.keys(l).length?l:void 0,"",!0,e),g.Aa(A)}})};
Keb=function(a,b,c){this.B=a;this.C=b;this.j=c};
Leb=function(a){this.j=a};
F1=function(a,b,c,d){var e=void 0===e?new Keb(function(){var f=a.U(),h=a.getVideoData(1);return g.sS(f,h?g.JT(h):"")},function(){return a.U().pageId},function(){return a.U().Ca},function(){return a.U().experiments}):e;
this.J=a;this.B=b;this.wb=c;this.Ua=d;this.D=e;this.SK=null;this.j=new Map;this.C=new Leb(e)};
Meb=function(a,b,c,d,e){var f=qBa(a.B.get(),c);f?(c=nK(a,rBa(f),f,void 0,void 0,d),b.hasOwnProperty("baseUrl")?a.D.send(b,c):a.C.send(b,c,{},e)):HG("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
nBa=function(a,b){return nK(a,b)};
PL=function(a,b){g.bD("adsClientStateChange",b)};
Neb=function(a,b){a.j.has(b.Bz())?HG("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Bz(),b)};
Oeb=function(a,b){a.j.delete(b.Bz())||HG("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
rBa=function(a){var b=gJ(a.Ba,"metadata_type_ad_placement_config");a=gJ(a.Ba,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,QY:a}};
nK=function(a,b,c,d,e,f){var h=c?Peb(a):{},l=c?Qeb(a,c.layoutId):{},m=Reb(a),n,p=null!=e?e:null==(n=a.Ua.get().Se(2))?void 0:n.clientPlaybackNonce;a.J.U().L("enable_player_logging_lr_home_infeed_ads")&&!p&&(p=a.Ua.get().Se(1).clientPlaybackNonce);e={};a=Object.assign({},Feb(a.J,d),Geb(b.adPlacementConfig,void 0!==(null==c?void 0:c.renderingContent)),l,h,m,(e.FINAL=E1(function(){return"1"}),e.AD_CPN=E1(function(){return p||""}),e));
void 0!==(null==c?void 0:c.renderingContent)||(a.SLOT_POS=E1(function(){return(b.QY||0).toString()}));
c={};f=Object.assign({},a,f);a=g.u(Object.values(Seb));for(d=a.next();!d.done;d=a.next())d=d.value,h=f[d],null!=h&&null!=h.toString()&&(c[d]=h.toString());return c};
Peb=function(a){var b={},c,d=null==(c=a.SK)?void 0:c.lj/1E3;null!=d&&(b.SURVEY_ELAPSED_MS=E1(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=E1(function(){return Math.round(Date.now()/1E3).toString()});
return b};
Qeb=function(a,b){a=a.j.get(b);if(!a)return{};a=a.UN();if(!a)return{};b={};return b.YT_ERROR_CODE=a.nL.toString(),b.ERRORCODE=a.tG.toString(),b.ERROR_MSG=a.errorMessage,b};
Reb=function(a){var b={},c=a.J.getVideoData(1);b.ASR=E1(function(){var d;return null!=(d=null==c?void 0:c.Hx)?d:null});
b.EI=E1(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null});
return b};
G1=function(a,b,c){g.I.call(this);this.J=a;this.Ce=b;this.Da=c;this.listeners=[];this.AP=null;this.CM=new Map;b=new g.IK(this);g.N(this,b);b.T(a,"videodatachange",this.aba);b.T(a,"serverstitchedvideochange",this.xaa);this.vv=this.Se()};
Ueb=function(a,b,c){var d=Teb(a,b,c);a.vv=d;a.listeners.forEach(function(e){e.HJ(d)})};
Teb=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,h=b.yd,l=b.title,m=b.Fk,n=b.rl,p=b.isMdxPlayback,q=b.Km,r=b.mdxEnvironment,t=b.isAutonav,v=b.Wp,x=b.bl,A=b.gp,E=b.videoId||"",F=b.profilePicture||"",G=b.Gl||"",M=b.Nn()||!1;b=b.hv||void 0;h=a.Ce.get().j.get(h)||{layoutId:null,slotId:null};var P=a.J.getVideoData(1),R=P.yc();P=P.getPlayerResponse();c=1E3*a.J.getDuration(c);a=1E3*a.J.getDuration(1);var ba,na,ta=(null==P?void 0:null==(ba=P.playerConfig)?void 0:null==(na=ba.daiConfig)?
void 0:na.enableDai)||!1,ka,va;ba=(null==P?void 0:null==(ka=P.playerConfig)?void 0:null==(va=ka.daiConfig)?void 0:va.enablePreroll)||!1;return Object.assign({},h,{videoId:E,author:d,clientPlaybackNonce:e,tba:c,Cs:a,daiEnabled:ta,iW:ba,isListed:f,yc:R,profilePicture:F,title:l,Gl:G,Fk:m,rl:n,hv:b,isMdxPlayback:p,Km:q,mdxEnvironment:r,isAutonav:t,Wp:v,bl:x,gp:A,Nn:M})};
Veb=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4}};
H1=function(a,b,c){g.I.call(this);this.J=a;this.Ua=b;this.Da=c;this.listeners=[];this.TC=[];this.j=function(){HG("Called 'doUnlockPreroll' before it's initialized.")};
b=new DC(this);c=new g.IK(this);g.N(this,c);g.N(this,b);b.T(a,"progresssync",this.V$);b.T(a,"presentingplayerstatechange",this.M$);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.lh);b.T(a,"overlayvisibilitychange",this.Ej);b.T(a,"shortsadswipe",this.Gj);b.T(a,"resize",this.Yb);c.T(a,g.VJ("appad"),this.Dj)};
I1=function(a){x1(a.Da.get())||a.j()};
Web=function(a,b){a.TC=a.TC.filter(function(c){return c!==b})};
Xeb=function(a,b){var c;b=null!=(c=a.Ua.get().CM.get(b))?c:null;if(null===b)return HG("Expected ad video start time on playback timeline"),0;a=a.J.getCurrentTime(2,!0);return a<b?0:a-b};
B1=function(a,b){return a.J.Xb(b)};
Yeb=function(a){var b=a.J.qb().Qh();a=a.J.An(!0,!0);return b.height-(a.height+a.top)};
Zeb=function(a){a.J.cueVideoByPlayerVars({videoId:"empty_video"},2)};
$eb=function(a,b){var c=a.J.U();g.ZR(c)||"3"!==c.controlsType||a.J.qb().EK(b)};
J1=function(a,b){g.Yu(a.J.getRootNode(),b)};
K1=function(a,b){g.$u(a.J.getRootNode(),b)};
afb=function(a,b,c,d,e){g.I.call(this);var f=this;this.gb=HJ(function(){return new yN});
g.N(this,this.gb);this.Cb=HJ(function(){return new zN(f.gb,f.Da)});
g.N(this,this.Cb);this.hd=HJ(function(){return new jN});
g.N(this,this.hd);this.Rb=HJ(function(){return new hN(a)});
g.N(this,this.Rb);this.Lb=HJ(function(){return new AN(f.gb,f.Cb,f.Da)});
g.N(this,this.Lb);this.Ce=HJ(function(){return new EN});
g.N(this,this.Ce);this.Ab=HJ(function(){return new IJ(e)});
g.N(this,this.Ab);this.Ac=HJ(function(){return new r1(b)});
g.N(this,this.Ac);this.wc=HJ(function(){return new t1(b)});
g.N(this,this.wc);this.jd=HJ(function(){return new u1(b)});
g.N(this,this.jd);this.Da=HJ(function(){return new v1(b)});
g.N(this,this.Da);this.Wb=HJ(function(){return new mJ(f.Da)});
g.N(this,this.Wb);this.Ge=HJ(function(){return new $M(f.gb,f.Lb,f.Cb,f.Da,f.Wb,null,null)});
g.N(this,this.Ge);this.Ua=HJ(function(){return new G1(b,f.Ce,f.Da)});
g.N(this,this.Ua);this.kc=new DN(this.Da,this.Wb,this.Ua);g.N(this,this.kc);this.Fa=HJ(function(){return new H1(b,f.Ua,f.Da)});
g.N(this,this.Fa);this.wb=HJ(function(){return new A1(f.Fa,b,f.Da)});
g.N(this,this.wb);this.Oa=HJ(function(){return new F1(b,f.hd,f.wb,f.Ua)});
g.N(this,this.Oa);this.md=new gN(this.Rb,this.Ge,c,this.Da,a,this.Ua,this.Fa,this.Ac);g.N(this,this.md);var h=new q1(b,this.md,this.Fa,this.Ua);this.Dg=HJ(function(){return h});
this.Lt=h;this.Ef=new iN(this.Rb,this.Lb,this.wc,this.Dg);g.N(this,this.Ef);this.wd=new LM(this.Da,this.Rb,this.Lb,this.Ge,this.Ua,this.Ef,c);g.N(this,this.wd);this.Wg={Uw:new Map,Cq:new Map,Cl:new Map,Jr:new Map,Zq:new Map};this.listeners=[];this.mw={wd:this.wd,bk:this.Da.get(),jb:this.Ab.get(),Zw:this.Fa.get(),md:this.md,ot:this.gb.get(),iA:null,zm:{GO:function(){}},
nk:this.hd.get(),ao:this.Ua.get()}};
L1=function(a,b,c){g.I.call(this);this.Rn=b;this.gb=c;this.Rn.get().addListener(this)};
M1=function(a){this.j=a};
bfb=function(a,b){if(!a)return{Pu:[],adSlots:[],CB:!0,ssdaiAdsConfig:void 0};a.trackingParams&&lP(a.trackingParams);if(a.adThrottled)return{Pu:[],adSlots:[],CB:!0,ssdaiAdsConfig:void 0};var c,d=null!=(c=a.adSlots)?c:[],e;c=null!=(e=a.playerAds)?e:[];if(!(c&&c.length||d.length))return{Pu:[],adSlots:d,CB:!1,ssdaiAdsConfig:void 0};e=c.map(function(h){return h.adPlacementRenderer}).filter(function(h){return!(!h||!h.renderer)});
if(!e.length&&!d.length)return{Pu:[],adSlots:d,CB:!1,ssdaiAdsConfig:void 0};if(0<b.end){var f=b.end.toString();e.forEach(function(h){(h=h.config&&h.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===h.kind&&h.adTimeOffset&&"-1"===h.adTimeOffset.offsetEndMilliseconds&&h.adTimeOffset.offsetEndMilliseconds!==f&&(h.adTimeOffset.offsetEndMilliseconds=f)});
d.map(function(h){return g.U(h,MM)}).forEach(function(h){var l;
(h=null==h?void 0:null==(l=h.slotEntryTrigger)?void 0:l.mediaTimeRangeTrigger)&&"-1"===h.offsetEndMilliseconds&&(h.offsetEndMilliseconds=f)})}return{Pu:e,
adSlots:d,CB:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
N1=function(a){this.W=a};
O1=function(a){g.I.call(this);this.J=a;this.listeners=[];this.j=new DC(this);g.N(this,this.j);this.j.T(this.J,"aduxclicked",this.onAdUxClicked);this.j.T(this.J,"aduxmouseover",this.dQ);this.j.T(this.J,"aduxmouseout",this.cQ);this.j.T(this.J,"muteadaccepted",this.x9)};
cfb=function(a,b,c){b=g.Er(b,function(d){return new Zwa(d,c,d.id)});
a.J.ob("onAdUxUpdate",b)};
P1=function(a,b){a=g.u(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
Q1=function(a,b){this.B=a;this.C=void 0===b?!1:b;this.j={}};
dfb=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{c6:new wv(b,c),s8:new XP(b,c-b,a.context,a.identifier,a.event,a.j)}};
efb=function(){this.j=[]};
uDa=function(a,b,c){var d=g.Tb(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
R1=function(a,b,c){g.I.call(this);this.J=a;this.Da=b;this.Oa=c;this.listeners=[];this.D=!1;this.aL=[];this.B=null;this.G=new Q1(this,web(b.get()));this.C=new efb;this.j=null};
ffb=function(a,b){a.aL.push(b);for(var c=!1,d=g.u(a.listeners),e=d.next();!e.done;e=d.next())c=e.value.vZ(b)||c;a.D=c};
hfb=function(a,b){PL(a.Oa.get(),{cuepointTrigger:{event:gfb(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.yh,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.J.getVideoData(1).clientPlaybackNonce}})};
gfb=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 Te(a,"Unexpected cuepoint event")}};
S1=function(a){this.J=a};
ifb=function(a,b){a.J.cueVideoByPlayerVars(b,2)};
T1=function(a){this.J=a};
U1=function(a){this.J=a};
jfb=function(a){this.J=a};
kfb=function(a,b,c,d,e){g.I.call(this);var f=this;this.gb=HJ(function(){return new yN});
g.N(this,this.gb);this.Cb=HJ(function(){return new zN(f.gb,f.Da)});
g.N(this,this.Cb);this.hd=HJ(function(){return new jN});
g.N(this,this.hd);this.Rb=HJ(function(){return new hN(a)});
g.N(this,this.Rb);this.Lb=HJ(function(){return new AN(f.gb,f.Cb,f.Da)});
g.N(this,this.Lb);this.Ce=HJ(function(){return new EN});
g.N(this,this.Ce);this.tf=HJ(function(){return new N1(b.U())});
g.N(this,this.tf);this.vc=HJ(function(){return new O1(b)});
g.N(this,this.vc);this.Ab=HJ(function(){return new IJ(e)});
g.N(this,this.Ab);this.Ac=HJ(function(){return new r1(b)});
g.N(this,this.Ac);this.wc=HJ(function(){return new t1(b)});
g.N(this,this.wc);this.Md=HJ(function(){return new S1(b)});
g.N(this,this.Md);this.jd=HJ(function(){return new u1(b)});
g.N(this,this.jd);this.Da=HJ(function(){return new v1(b)});
g.N(this,this.Da);this.ag=HJ(function(){return new M1(d)});
g.N(this,this.ag);this.Wb=HJ(function(){return new mJ(f.Da)});
g.N(this,this.Wb);this.Ge=HJ(function(){return new $M(f.gb,f.Lb,f.Cb,f.Da,f.Wb,"SLOT_TYPE_ABOVE_FEED",f.Xj)});
g.N(this,this.Ge);this.Bf=HJ(function(){return new T1(b)});
g.N(this,this.Bf);this.Rn=HJ(function(){return new LJ});
g.N(this,this.Rn);this.Ua=HJ(function(){return new G1(b,f.Ce,f.Da)});
g.N(this,this.Ua);this.kc=new DN(this.Da,this.Wb,this.Ua);g.N(this,this.kc);this.If=HJ(function(){return new R1(b,f.Da,f.Oa)});
g.N(this,this.If);this.Sc=HJ(function(){return new U1(b)});
g.N(this,this.Sc);this.Fa=HJ(function(){return new H1(b,f.Ua,f.Da)});
g.N(this,this.Fa);this.Xe=HJ(function(){return new MJ});
this.wb=HJ(function(){return new A1(f.Fa,b,f.Da)});
g.N(this,this.wb);this.Oa=HJ(function(){return new F1(b,f.hd,f.wb,f.Ua)});
g.N(this,this.Oa);this.Oi=new fN(eN,V1,function(l,m,n,p){return SM(f.Cb.get(),l,m,n,p)},this.Rb,this.Lb,this.Cb,this.Wb,this.Da,this.Ua);
g.N(this,this.Oi);this.md=new gN(this.Rb,this.Ge,c,this.Da,a,this.Ua,this.Fa,this.Ac);g.N(this,this.md);var h=new q1(b,this.md,this.Fa,this.Ua,this.If);this.Dg=HJ(function(){return h});
this.Lt=h;this.Xj=new bN(this.Rb,this.Lb,this.Dg,this.If,this.Fa,this.Da,this.Oa,this.Sc);g.N(this,this.Xj);this.Ef=new iN(this.Rb,this.Lb,this.wc,this.Dg);g.N(this,this.Ef);this.wd=new LM(this.Da,this.Rb,this.Lb,this.Ge,this.Ua,this.Ef,c);g.N(this,this.wd);this.wi=HJ(function(){return new XJ(f.ag,f.Cb,f.Wb,f.Da,f.Oa,f.Fa,f.Sc)});
g.N(this,this.wi);this.je=HJ(function(){return new YJ});
g.N(this,this.je);this.cg=new nN(a,this.vc,this.Da);g.N(this,this.cg);this.Mb=new oN(a);g.N(this,this.Mb);this.fv=new pN(a);g.N(this,this.fv);this.vg=new rN(a,this.Dg);g.N(this,this.vg);this.gf=new sN(a,this.wc,this.Fa,this.Ua);g.N(this,this.gf);this.qw=new tN(a,this.Ua);g.N(this,this.qw);this.Ne=new uN(a);g.N(this,this.Ne);this.le=new xN(a);g.N(this,this.le);this.Mi=new vN(a);g.N(this,this.Mi);this.Cx=new wN(a);g.N(this,this.Cx);this.le=new xN(a);g.N(this,this.le);this.Zd=HJ(function(){return new kN});
g.N(this,this.Zd);this.Pi=HJ(function(){return new lN(f.Fa)});
g.N(this,this.Pi);this.mV=HJ(function(){return new UBa(f.vc,f.Oa,a,f.hd,f.wb,f.Ab,f.Da)});
g.N(this,this.mV);this.ri=HJ(function(){return new rK(f.wd,f.Rb,f.gb)});
g.N(this,this.ri);this.Ci=HJ(function(){return new tK(f.Da,f.Oa,f.Ne,f.wb)});
g.N(this,this.Ci);this.Ni=HJ(function(){return new UDa(a,f.le,f.Ne,f.Ua,f.Sc,f.Fa,f.Oa,f.Ce,f.If,f.wb,f.Xe,f.Md,f.wc,f.Ac,f.jd,f.tf,f.Ab,f.Bf,f.Da,f.hd)});
g.N(this,this.Ni);this.XQ=HJ(function(){return new nCa(f.Fa,f.Oa,f.Da,f.wb)});
g.N(this,this.XQ);this.Gn=HJ(function(){return new dEa(f.vc,f.Fa,f.Oa,f.hd,f.wb,f.fv,f.Cx,f.Ab,f.Da,c)});
g.N(this,this.Gn);this.R0=HJ(function(){return new WBa(f.vc)});
g.N(this,this.R0);this.yM=new L1(a,this.Rn,this.gb);g.N(this,this.yM);this.Wg={Uw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Xj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Oi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.md],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ef]]),Cq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_ABOVE_FEED",this.je],["SLOT_TYPE_FORECASTING",
this.je],["SLOT_TYPE_IN_PLAYER",this.je],["SLOT_TYPE_PLAYER_BYTES",this.je],["SLOT_TYPE_PLAYER_UNDERLAY",this.je],["SLOT_TYPE_PLAYBACK_TRACKING",this.je],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.je]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.cg],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.cg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Mb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Mb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Mb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Mb],["TRIGGER_TYPE_SLOT_ID_ENTERED",
this.Mb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Mb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Mb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Mb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Mb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Mb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Mb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.fv],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vg],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.gf],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.gf],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.gf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.gf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.gf],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.gf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.gf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.qw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.qw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ne],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mi],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Cx],["TRIGGER_TYPE_AD_BREAK_STARTED",this.le]]),Jr:new Map([["SLOT_TYPE_ABOVE_FEED",this.Zd],["SLOT_TYPE_AD_BREAK_REQUEST",this.Zd],["SLOT_TYPE_FORECASTING",this.Zd],["SLOT_TYPE_IN_PLAYER",this.Zd],["SLOT_TYPE_PLAYER_BYTES",this.Pi],["SLOT_TYPE_PLAYER_UNDERLAY",this.Zd],["SLOT_TYPE_PLAYBACK_TRACKING",this.Zd],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Zd]]),Zq:new Map([["SLOT_TYPE_ABOVE_FEED",
this.mV],["SLOT_TYPE_AD_BREAK_REQUEST",this.ri],["SLOT_TYPE_FORECASTING",this.Ci],["SLOT_TYPE_PLAYER_BYTES",this.Ni],["SLOT_TYPE_PLAYBACK_TRACKING",this.XQ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.XQ],["SLOT_TYPE_IN_PLAYER",this.Gn],["SLOT_TYPE_PLAYER_UNDERLAY",this.R0]])};this.listeners=[this.hd.get()];this.mw={wd:this.wd,bk:this.Da.get(),jb:this.Ab.get(),Zw:this.Fa.get(),md:this.md,ot:this.gb.get(),iA:this.Rn.get(),zm:this.cg,nk:this.hd.get(),ao:this.Ua.get()}};
lfb=function(a,b,c,d,e){g.I.call(this);var f=this;this.gb=HJ(function(){return new yN});
g.N(this,this.gb);this.Cb=HJ(function(){return new zN(f.gb,f.Da)});
g.N(this,this.Cb);this.hd=HJ(function(){return new jN});
g.N(this,this.hd);this.Rb=HJ(function(){return new hN(a)});
g.N(this,this.Rb);this.Lb=HJ(function(){return new AN(f.gb,f.Cb,f.Da)});
g.N(this,this.Lb);this.Ce=HJ(function(){return new EN});
g.N(this,this.Ce);this.tf=HJ(function(){return new N1(b.U())});
g.N(this,this.tf);this.vc=HJ(function(){return new O1(b)});
g.N(this,this.vc);this.Ab=HJ(function(){return new IJ(e)});
g.N(this,this.Ab);this.Ac=HJ(function(){return new r1(b)});
g.N(this,this.Ac);this.wc=HJ(function(){return new t1(b)});
g.N(this,this.wc);this.Md=HJ(function(){return new S1(b)});
g.N(this,this.Md);this.jd=HJ(function(){return new u1(b)});
g.N(this,this.jd);this.Da=HJ(function(){return new v1(b)});
g.N(this,this.Da);this.ag=HJ(function(){return new M1(d)});
g.N(this,this.ag);this.Wb=HJ(function(){return new mJ(f.Da)});
g.N(this,this.Wb);this.Ge=HJ(function(){return new $M(f.gb,f.Lb,f.Cb,f.Da,f.Wb,null,f.Xj)});
g.N(this,this.Ge);this.Bf=HJ(function(){return new T1(b)});
g.N(this,this.Bf);this.Rn=HJ(function(){return new LJ});
g.N(this,this.Rn);this.Ua=HJ(function(){return new G1(b,f.Ce,f.Da)});
g.N(this,this.Ua);this.kc=new DN(this.Da,this.Wb,this.Ua);g.N(this,this.kc);this.If=HJ(function(){return new R1(b,f.Da,f.Oa)});
this.Fa=HJ(function(){return new H1(b,f.Ua,f.Da)});
g.N(this,this.Fa);this.wb=HJ(function(){return new A1(f.Fa,b,f.Da)});
g.N(this,this.wb);this.Oa=HJ(function(){return new F1(b,f.hd,f.wb,f.Ua)});
g.N(this,this.Oa);this.Xe=HJ(function(){return new MJ});
g.N(this,this.Xe);this.Oi=new fN(eN,V1,function(l,m,n,p){return SM(f.Cb.get(),l,m,n,p)},this.Rb,this.Lb,this.Cb,this.Wb,this.Da,this.Ua);
g.N(this,this.Oi);this.md=new gN(this.Rb,this.Ge,c,this.Da,a,this.Ua,this.Fa,this.Ac);g.N(this,this.md);var h=new q1(b,this.md,this.Fa,this.Ua,this.If);this.Dg=HJ(function(){return h});
this.Lt=h;this.Xj=new bN(this.Rb,this.Lb,this.Dg,this.If,this.Fa,this.Da,this.Oa);g.N(this,this.Xj);this.Ef=new iN(this.Rb,this.Lb,this.wc,this.Dg);g.N(this,this.Ef);this.wd=new LM(this.Da,this.Rb,this.Lb,this.Ge,this.Ua,this.Ef,c);g.N(this,this.wd);this.wi=HJ(function(){return new XJ(f.ag,f.Cb,f.Wb,f.Da,f.Oa,f.Fa)});
g.N(this,this.wi);this.je=HJ(function(){return new YJ});
g.N(this,this.je);this.cg=new nN(a,this.vc,this.Da);g.N(this,this.cg);this.Mb=new oN(a);g.N(this,this.Mb);this.fv=new pN(a);g.N(this,this.fv);this.vg=new rN(a,this.Dg);g.N(this,this.vg);this.gf=new sN(a,this.wc,this.Fa,this.Ua);g.N(this,this.gf);this.Ne=new uN(a);g.N(this,this.Ne);this.Mi=new vN(a);g.N(this,this.Mi);this.Cx=new wN(a);g.N(this,this.Cx);this.Sc=HJ(function(){return new U1(b)});
g.N(this,this.Sc);this.le=new xN(a);g.N(this,this.le);this.Zd=HJ(function(){return new kN});
g.N(this,this.Zd);this.Pi=HJ(function(){return new lN(f.Fa)});
g.N(this,this.Pi);this.ri=HJ(function(){return new rK(f.wd,f.Rb,f.gb)});
g.N(this,this.ri);this.Ci=HJ(function(){return new tK(f.Da,f.Oa,f.Ne,f.wb)});
g.N(this,this.Ci);this.Gn=HJ(function(){return new eEa(f.vc,f.Fa,f.Oa,f.hd,f.wb,f.fv,f.Cx,f.Ab,f.Da,c)});
g.N(this,this.Gn);this.Ni=HJ(function(){return new RL(a,f.le,f.Ne,f.Oa,f.wb,f.Xe,f.Md,f.Ua,f.Fa,f.wc,f.Ac,f.jd,f.tf,f.Ab,f.Bf,f.Da,f.Sc)});
g.N(this,this.Ni);this.yM=new L1(a,this.Rn,this.gb);g.N(this,this.yM);this.Wg={Uw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Xj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Oi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.md],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ef]]),Cq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_FORECASTING",this.je],["SLOT_TYPE_IN_PLAYER",
this.je],["SLOT_TYPE_PLAYER_BYTES",this.je]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.cg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Mb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Mb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Mb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Mb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Mb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Mb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Mb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Mb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.Mb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Mb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.fv],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.gf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.gf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.gf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ne],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mi],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
this.Cx],["TRIGGER_TYPE_AD_BREAK_STARTED",this.le]]),Jr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zd],["SLOT_TYPE_FORECASTING",this.Zd],["SLOT_TYPE_IN_PLAYER",this.Zd],["SLOT_TYPE_PLAYER_BYTES",this.Pi]]),Zq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ri],["SLOT_TYPE_FORECASTING",this.Ci],["SLOT_TYPE_IN_PLAYER",this.Gn],["SLOT_TYPE_PLAYER_BYTES",this.Ni]])};this.listeners=[this.hd.get()];this.mw={wd:this.wd,bk:this.Da.get(),jb:this.Ab.get(),Zw:this.Fa.get(),md:this.md,ot:this.gb.get(),iA:this.Rn.get(),
zm:this.cg,nk:this.hd.get(),ao:this.Ua.get()}};
mfb=function(a,b,c,d,e){g.I.call(this);var f=this;this.gb=HJ(function(){return new yN});
g.N(this,this.gb);this.Cb=HJ(function(){return new zN(f.gb,f.Da)});
g.N(this,this.Cb);this.hd=HJ(function(){return new jN});
g.N(this,this.hd);this.Rb=HJ(function(){return new hN(a)});
g.N(this,this.Rb);this.Lb=HJ(function(){return new AN(f.gb,f.Cb,f.Da)});
g.N(this,this.Lb);this.Ce=HJ(function(){return new EN});
g.N(this,this.Ce);this.tf=HJ(function(){return new N1(b.U())});
g.N(this,this.tf);this.vc=HJ(function(){return new O1(b)});
g.N(this,this.vc);this.Ab=HJ(function(){return new IJ(e)});
g.N(this,this.Ab);this.Ac=HJ(function(){return new r1(b)});
g.N(this,this.Ac);this.wc=HJ(function(){return new t1(b)});
g.N(this,this.wc);this.Md=HJ(function(){return new S1(b)});
g.N(this,this.Md);this.jd=HJ(function(){return new u1(b)});
g.N(this,this.jd);this.Da=HJ(function(){return new v1(b)});
g.N(this,this.Da);this.ag=HJ(function(){return new M1(d)});
g.N(this,this.ag);this.Wb=HJ(function(){return new mJ(f.Da)});
g.N(this,this.Wb);this.Ge=HJ(function(){return new $M(f.gb,f.Lb,f.Cb,f.Da,f.Wb,null,null)});
g.N(this,this.Ge);this.Bf=HJ(function(){return new T1(b)});
g.N(this,this.Bf);this.Ua=HJ(function(){return new G1(b,f.Ce,f.Da)});
g.N(this,this.Ua);this.kc=new DN(this.Da,this.Wb,this.Ua);g.N(this,this.kc);this.Fa=HJ(function(){return new H1(b,f.Ua,f.Da)});
g.N(this,this.Fa);this.wb=HJ(function(){return new A1(f.Fa,b,f.Da)});
g.N(this,this.wb);this.Oa=HJ(function(){return new F1(b,f.hd,f.wb,f.Ua)});
g.N(this,this.Oa);this.Xe=HJ(function(){return new MJ});
g.N(this,this.Xe);this.Oi=new fN(eN,V1,function(l,m,n,p){return SM(f.Cb.get(),l,m,n,p)},this.Rb,this.Lb,this.Cb,this.Wb,this.Da,this.Ua);
g.N(this,this.Oi);this.md=new gN(this.Rb,this.Ge,c,this.Da,a,this.Ua,this.Fa,this.Ac);g.N(this,this.md);var h=new q1(b,this.md,this.Fa,this.Ua);this.Dg=HJ(function(){return h});
this.Lt=h;this.Ef=new iN(this.Rb,this.Lb,this.wc,this.Dg);g.N(this,this.Ef);this.wd=new LM(this.Da,this.Rb,this.Lb,this.Ge,this.Ua,this.Ef,c);g.N(this,this.wd);this.wi=HJ(function(){return new XJ(f.ag,f.Cb,f.Wb,f.Da,f.Oa,f.Fa)});
g.N(this,this.wi);this.je=HJ(function(){return new YJ});
g.N(this,this.je);this.cg=new nN(a,this.vc,this.Da);g.N(this,this.cg);this.Mb=new oN(a);g.N(this,this.Mb);this.vg=new rN(a,this.Dg);g.N(this,this.vg);this.gf=new sN(a,this.wc,this.Fa,this.Ua);g.N(this,this.gf);this.Ne=new uN(a);g.N(this,this.Ne);this.Mi=new vN(a);g.N(this,this.Mi);this.Sc=HJ(function(){return new U1(b)});
g.N(this,this.Sc);this.le=new xN(a);g.N(this,this.le);this.Zd=HJ(function(){return new kN});
g.N(this,this.Zd);this.Pi=HJ(function(){return new lN(f.Fa)});
g.N(this,this.Pi);this.ri=HJ(function(){return new rK(f.wd,f.Rb,f.gb)});
g.N(this,this.ri);this.Ci=HJ(function(){return new tK(f.Da,f.Oa,f.Ne,f.wb)});
g.N(this,this.Ci);this.UZ=HJ(function(){return new jCa(f.vc,f.Fa,f.Oa,f.hd,c,f.Da)});
g.N(this,this.UZ);this.Ni=HJ(function(){return new RL(a,f.le,f.Ne,f.Oa,f.wb,f.Xe,f.Md,f.Ua,f.Fa,f.wc,f.Ac,f.jd,f.tf,f.Ab,f.Bf,f.Da,f.Sc)});
g.N(this,this.Ni);this.Wg={Uw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Oi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.md],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ef]]),Cq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_FORECASTING",this.je],["SLOT_TYPE_IN_PLAYER",this.je],["SLOT_TYPE_PLAYER_BYTES",this.je]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.cg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Mb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Mb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Mb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Mb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Mb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Mb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Mb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Mb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Mb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.gf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.gf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ne],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.le]]),Jr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zd],["SLOT_TYPE_ABOVE_FEED",this.Zd],["SLOT_TYPE_FORECASTING",this.Zd],["SLOT_TYPE_IN_PLAYER",this.Zd],["SLOT_TYPE_PLAYER_BYTES",this.Pi]]),Zq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ri],["SLOT_TYPE_FORECASTING",this.Ci],["SLOT_TYPE_IN_PLAYER",
this.UZ],["SLOT_TYPE_PLAYER_BYTES",this.Ni]])};this.listeners=[this.hd.get()];this.mw={wd:this.wd,bk:this.Da.get(),jb:this.Ab.get(),Zw:this.Fa.get(),md:this.md,ot:this.gb.get(),iA:null,zm:this.cg,nk:this.hd.get(),ao:this.Ua.get()}};
nfb=function(a,b,c,d,e){g.I.call(this);var f=this;this.gb=HJ(function(){return new yN});
g.N(this,this.gb);this.Cb=HJ(function(){return new zN(f.gb,f.Da)});
g.N(this,this.Cb);this.hd=HJ(function(){return new jN});
g.N(this,this.hd);this.Rb=HJ(function(){return new hN(a)});
g.N(this,this.Rb);this.Lb=HJ(function(){return new AN(f.gb,f.Cb,f.Da)});
g.N(this,this.Lb);this.Ce=HJ(function(){return new EN});
g.N(this,this.Ce);this.tf=HJ(function(){return new N1(b.U())});
g.N(this,this.tf);this.vc=HJ(function(){return new O1(b)});
g.N(this,this.vc);this.Ab=HJ(function(){return new IJ(e)});
g.N(this,this.Ab);this.Ac=HJ(function(){return new r1(b)});
g.N(this,this.Ac);this.wc=HJ(function(){return new t1(b)});
g.N(this,this.wc);this.Md=HJ(function(){return new S1(b)});
g.N(this,this.Md);this.jd=HJ(function(){return new u1(b)});
g.N(this,this.jd);this.Da=HJ(function(){return new v1(b)});
g.N(this,this.Da);this.ag=HJ(function(){return new M1(d)});
g.N(this,this.ag);this.Wb=HJ(function(){return new mJ(f.Da)});
g.N(this,this.Wb);this.Ge=HJ(function(){return new $M(f.gb,f.Lb,f.Cb,f.Da,f.Wb,null,null)});
g.N(this,this.Ge);this.Bf=HJ(function(){return new T1(b)});
g.N(this,this.Bf);this.Ua=HJ(function(){return new G1(b,f.Ce,f.Da)});
g.N(this,this.Ua);this.kc=new DN(this.Da,this.Wb,this.Ua);g.N(this,this.kc);this.Fa=HJ(function(){return new H1(b,f.Ua,f.Da)});
g.N(this,this.Fa);this.wb=HJ(function(){return new A1(f.Fa,b,f.Da)});
g.N(this,this.wb);this.Oa=HJ(function(){return new F1(b,f.hd,f.wb,f.Ua)});
g.N(this,this.Oa);this.Xe=HJ(function(){return new MJ});
g.N(this,this.Xe);this.Oi=new fN(eN,V1,function(l,m,n,p){return SM(f.Cb.get(),l,m,n,p)},this.Rb,this.Lb,this.Cb,this.Wb,this.Da,this.Ua);
g.N(this,this.Oi);this.md=new gN(this.Rb,this.Ge,c,this.Da,a,this.Ua,this.Fa,this.Ac);g.N(this,this.md);var h=new q1(b,this.md,this.Fa,this.Ua);this.Dg=HJ(function(){return h});
this.Lt=h;this.Ef=new iN(this.Rb,this.Lb,this.wc,this.Dg);g.N(this,this.Ef);this.wd=new LM(this.Da,this.Rb,this.Lb,this.Ge,this.Ua,this.Ef,c);g.N(this,this.wd);this.wi=HJ(function(){return new XJ(f.ag,f.Cb,f.Wb,f.Da,f.Oa,f.Fa)});
g.N(this,this.wi);this.je=HJ(function(){return new YJ});
g.N(this,this.je);this.cg=new nN(a,this.vc,this.Da);g.N(this,this.cg);this.Mb=new oN(a);g.N(this,this.Mb);this.vg=new rN(a,this.Dg);g.N(this,this.vg);this.gf=new sN(a,this.wc,this.Fa,this.Ua);g.N(this,this.gf);this.Ne=new uN(a);g.N(this,this.Ne);this.Mi=new vN(a);g.N(this,this.Mi);this.Sc=HJ(function(){return new U1(b)});
g.N(this,this.Sc);this.le=new xN(a);g.N(this,this.le);this.Zd=HJ(function(){return new kN});
g.N(this,this.Zd);this.Pi=HJ(function(){return new lN(f.Fa)});
g.N(this,this.Pi);this.ri=HJ(function(){return new rK(f.wd,f.Rb,f.gb)});
g.N(this,this.ri);this.Ci=HJ(function(){return new tK(f.Da,f.Oa,f.Ne,f.wb)});
g.N(this,this.Ci);this.Gn=HJ(function(){return new jCa(f.vc,f.Fa,f.Oa,f.hd,c,f.Da)});
g.N(this,this.Gn);this.Ni=HJ(function(){return new RL(a,f.le,f.Ne,f.Oa,f.wb,f.Xe,f.Md,f.Ua,f.Fa,f.wc,f.Ac,f.jd,f.tf,f.Ab,f.Bf,f.Da,f.Sc)});
g.N(this,this.Ni);this.Wg={Uw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Oi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.md],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ef]]),Cq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_FORECASTING",this.je],["SLOT_TYPE_IN_PLAYER",this.je],["SLOT_TYPE_PLAYER_BYTES",this.je]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.cg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Mb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Mb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Mb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Mb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Mb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Mb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Mb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Mb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Mb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vg],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.gf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",
this.Ne],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.le]]),Jr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zd],["SLOT_TYPE_FORECASTING",this.Zd],["SLOT_TYPE_IN_PLAYER",this.Zd],["SLOT_TYPE_PLAYER_BYTES",this.Pi]]),Zq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ri],["SLOT_TYPE_FORECASTING",this.Ci],["SLOT_TYPE_IN_PLAYER",this.Gn],["SLOT_TYPE_PLAYER_BYTES",this.Ni]])};this.listeners=[this.hd.get()];
this.mw={wd:this.wd,bk:this.Da.get(),jb:this.Ab.get(),Zw:this.Fa.get(),md:this.md,ot:this.gb.get(),iA:null,zm:this.cg,nk:this.hd.get(),ao:this.Ua.get()}};
ofb=function(a,b,c,d,e){g.I.call(this);var f=this;this.gb=HJ(function(){return new yN});
g.N(this,this.gb);this.Cb=HJ(function(){return new zN(f.gb,f.Da)});
g.N(this,this.Cb);this.hd=HJ(function(){return new jN});
g.N(this,this.hd);this.Rb=HJ(function(){return new hN(a)});
g.N(this,this.Rb);this.Lb=HJ(function(){return new AN(f.gb,f.Cb,f.Da)});
g.N(this,this.Lb);this.Ce=HJ(function(){return new EN});
g.N(this,this.Ce);this.Ym=HJ(function(){return new jfb(b)});
g.N(this,this.Ym);this.tf=HJ(function(){return new N1(b.U())});
g.N(this,this.tf);this.vc=HJ(function(){return new O1(b)});
g.N(this,this.vc);this.Ab=HJ(function(){return new IJ(e)});
g.N(this,this.Ab);this.Ac=HJ(function(){return new r1(b)});
g.N(this,this.Ac);this.wc=HJ(function(){return new t1(b)});
g.N(this,this.wc);this.Md=HJ(function(){return new S1(b)});
g.N(this,this.Md);this.jd=HJ(function(){return new u1(b)});
g.N(this,this.jd);this.Da=HJ(function(){return new v1(b)});
g.N(this,this.Da);this.ag=HJ(function(){return new M1(d)});
g.N(this,this.ag);this.Wb=HJ(function(){return new mJ(f.Da)});
g.N(this,this.Wb);this.Ge=HJ(function(){return new $M(f.gb,f.Lb,f.Cb,f.Da,f.Wb,null,null)});
g.N(this,this.Ge);this.Bf=HJ(function(){return new T1(b)});
g.N(this,this.Bf);this.Ua=HJ(function(){return new G1(b,f.Ce,f.Da)});
g.N(this,this.Ua);this.kc=new DN(this.Da,this.Wb,this.Ua);g.N(this,this.kc);this.Fa=HJ(function(){return new H1(b,f.Ua,f.Da)});
g.N(this,this.Fa);this.wb=HJ(function(){return new A1(f.Fa,b,f.Da)});
g.N(this,this.wb);this.Oa=HJ(function(){return new F1(b,f.hd,f.wb,f.Ua)});
g.N(this,this.Oa);this.Xe=HJ(function(){return new MJ});
g.N(this,this.Xe);this.Oi=new fN(VGa,V1,function(l,m,n,p){return oHa(f.Cb.get(),l,m,n,p)},this.Rb,this.Lb,this.Cb,this.Wb,this.Da,this.Ua);
g.N(this,this.Oi);this.md=new gN(this.Rb,this.Ge,c,this.Da,a,this.Ua,this.Fa,this.Ac);g.N(this,this.md);var h=new q1(b,this.md,this.Fa,this.Ua);this.Dg=HJ(function(){return h});
this.Lt=h;this.Ef=new iN(this.Rb,this.Lb,this.wc,this.Dg);g.N(this,this.Ef);this.wd=new LM(this.Da,this.Rb,this.Lb,this.Ge,this.Ua,this.Ef,c);g.N(this,this.wd);this.wi=HJ(function(){return new XJ(f.ag,f.Cb,f.Wb,f.Da,f.Oa,f.Fa)});
g.N(this,this.wi);this.je=HJ(function(){return new YJ});
g.N(this,this.je);this.cg=new nN(a,this.vc,this.Da);g.N(this,this.cg);this.Mb=new oN(a);g.N(this,this.Mb);this.vg=new rN(a,this.Dg);g.N(this,this.vg);this.gf=new sN(a,this.wc,this.Fa,this.Ua);g.N(this,this.gf);this.Ne=new uN(a);g.N(this,this.Ne);this.Mi=new vN(a);g.N(this,this.Mi);this.Sc=HJ(function(){return new U1(b)});
g.N(this,this.Sc);this.le=new xN(a);g.N(this,this.le);this.Zd=HJ(function(){return new kN});
g.N(this,this.Zd);this.Pi=HJ(function(){return new lN(f.Fa)});
g.N(this,this.Pi);this.ri=HJ(function(){return new rK(f.wd,f.Rb,f.gb)});
g.N(this,this.ri);this.Ci=HJ(function(){return new tK(f.Da,f.Oa,f.Ne,f.wb)});
g.N(this,this.Ci);this.Ni=HJ(function(){return new RL(a,f.le,f.Ne,f.Oa,f.wb,f.Xe,f.Md,f.Ua,f.Fa,f.wc,f.Ac,f.jd,f.tf,f.Ab,f.Bf,f.Da,f.Sc)});
g.N(this,this.Ni);this.v1=HJ(function(){return new gEa(f.vc,f.Fa,f.Oa,f.hd,f.Ym,c,f.Ua)});
g.N(this,this.v1);this.Wg={Uw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Oi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.md],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ef]]),Cq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_FORECASTING",this.je],["SLOT_TYPE_IN_PLAYER",this.je],["SLOT_TYPE_PLAYER_BYTES",this.je]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.cg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Mb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Mb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Mb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Mb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Mb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Mb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Mb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Mb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Mb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.gf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.gf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ne],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.le]]),Jr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zd],["SLOT_TYPE_FORECASTING",this.Zd],["SLOT_TYPE_IN_PLAYER",this.Zd],["SLOT_TYPE_PLAYER_BYTES",this.Pi]]),Zq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ri],["SLOT_TYPE_FORECASTING",this.Ci],["SLOT_TYPE_IN_PLAYER",this.v1],["SLOT_TYPE_PLAYER_BYTES",
this.Ni]])};this.listeners=[this.hd.get()];this.mw={wd:this.wd,bk:this.Da.get(),jb:this.Ab.get(),Zw:this.Fa.get(),md:this.md,ot:this.gb.get(),iA:null,zm:this.cg,nk:this.hd.get(),ao:this.Ua.get()}};
pfb=function(a,b,c,d,e){g.I.call(this);var f=this;this.gb=HJ(function(){return new yN});
g.N(this,this.gb);this.Cb=HJ(function(){return new zN(f.gb,f.Da)});
g.N(this,this.Cb);this.hd=HJ(function(){return new jN});
g.N(this,this.hd);this.Rb=HJ(function(){return new hN(a)});
g.N(this,this.Rb);this.Lb=HJ(function(){return new AN(f.gb,f.Cb,f.Da)});
g.N(this,this.Lb);this.Ce=HJ(function(){return new EN});
g.N(this,this.Ce);this.Ym=HJ(function(){return new jfb(b)});
g.N(this,this.Ym);this.tf=HJ(function(){return new N1(b.U())});
g.N(this,this.tf);this.vc=HJ(function(){return new O1(b)});
g.N(this,this.vc);this.Ab=HJ(function(){return new IJ(e)});
g.N(this,this.Ab);this.Ac=HJ(function(){return new r1(b)});
g.N(this,this.Ac);this.wc=HJ(function(){return new t1(b)});
g.N(this,this.wc);this.Md=HJ(function(){return new S1(b)});
g.N(this,this.Md);this.jd=HJ(function(){return new u1(b)});
g.N(this,this.jd);this.Da=HJ(function(){return new v1(b)});
g.N(this,this.Da);this.ag=HJ(function(){return new M1(d)});
g.N(this,this.ag);this.Wb=HJ(function(){return new mJ(f.Da)});
g.N(this,this.Wb);this.Ge=HJ(function(){return new $M(f.gb,f.Lb,f.Cb,f.Da,f.Wb,null,f.Xj,3)});
g.N(this,this.Ge);this.Bf=HJ(function(){return new T1(b)});
g.N(this,this.Bf);this.Ua=HJ(function(){return new G1(b,f.Ce,f.Da)});
g.N(this,this.Ua);this.kc=new DN(this.Da,this.Wb,this.Ua);g.N(this,this.kc);this.If=HJ(function(){return new R1(b,f.Da,f.Oa)});
g.N(this,this.If);this.Sc=HJ(function(){return new U1(b)});
g.N(this,this.Sc);this.Fa=HJ(function(){return new H1(b,f.Ua,f.Da)});
g.N(this,this.Fa);this.Xe=HJ(function(){return new MJ});
this.wb=HJ(function(){return new A1(f.Fa,b,f.Da)});
g.N(this,this.wb);this.Oa=HJ(function(){return new F1(b,f.hd,f.wb,f.Ua)});
g.N(this,this.Oa);this.md=new gN(this.Rb,this.Ge,c,this.Da,a,this.Ua,this.Fa,this.Ac);g.N(this,this.md);var h=new q1(b,this.md,this.Fa,this.Ua,this.If);this.Dg=HJ(function(){return h});
this.Lt=h;this.Oi=new fN(WGa,V1,function(l,m,n,p){return oHa(f.Cb.get(),l,m,n,p)},this.Rb,this.Lb,this.Cb,this.Wb,this.Da,this.Ua);
g.N(this,this.Oi);this.Xj=new bN(this.Rb,this.Lb,this.Dg,this.If,this.Fa,this.Da,this.Oa,this.Sc);g.N(this,this.Xj);this.Ef=new iN(this.Rb,this.Lb,this.wc,this.Dg);g.N(this,this.Ef);this.wd=new LM(this.Da,this.Rb,this.Lb,this.Ge,this.Ua,this.Ef,c);g.N(this,this.wd);this.wi=HJ(function(){return new XJ(f.ag,f.Cb,f.Wb,f.Da,f.Oa,f.Fa,f.Sc)});
g.N(this,this.wi);this.je=HJ(function(){return new YJ});
g.N(this,this.je);this.cg=new nN(a,this.vc,this.Da);g.N(this,this.cg);this.Mb=new oN(a);g.N(this,this.Mb);this.vg=new rN(a,this.Dg);g.N(this,this.vg);this.gf=new sN(a,this.wc,this.Fa,this.Ua);g.N(this,this.gf);this.qw=new tN(a,this.Ua);g.N(this,this.qw);this.Ne=new uN(a);g.N(this,this.Ne);this.Mi=new vN(a);g.N(this,this.Mi);this.le=new xN(a);g.N(this,this.le);this.Zd=HJ(function(){return new kN});
g.N(this,this.Zd);this.Pi=HJ(function(){return new lN(f.Fa)});
g.N(this,this.Pi);this.ri=HJ(function(){return new rK(f.wd,f.Rb,f.gb)});
g.N(this,this.ri);this.Ci=HJ(function(){return new tK(f.Da,f.Oa,f.Ne,f.wb)});
g.N(this,this.Ci);this.Ni=HJ(function(){return new UDa(a,f.le,f.Ne,f.Ua,f.Sc,f.Fa,f.Oa,f.Ce,f.If,f.wb,f.Xe,f.Md,f.wc,f.Ac,f.jd,f.tf,f.Ab,f.Bf,f.Da,f.hd)});
g.N(this,this.Ni);this.Gn=HJ(function(){return new hEa(f.vc,f.Fa,f.Oa,f.hd,f.Ym,c,f.Da,f.Ua)});
g.N(this,this.Gn);this.Wg={Uw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Xj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Oi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.md],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ef]]),Cq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.wi],["SLOT_TYPE_FORECASTING",this.je],["SLOT_TYPE_IN_PLAYER",this.je],["SLOT_TYPE_PLAYER_BYTES",this.je]]),Cl:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
this.cg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Mb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Mb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Mb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Mb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Mb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Mb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Mb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Mb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Mb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vg],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
this.gf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.gf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.qw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.qw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Ne],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vg],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Mi],["TRIGGER_TYPE_AD_BREAK_STARTED",this.le]]),Jr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zd],["SLOT_TYPE_FORECASTING",this.Zd],["SLOT_TYPE_IN_PLAYER",this.Zd],["SLOT_TYPE_PLAYER_BYTES",
this.Pi]]),Zq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.ri],["SLOT_TYPE_FORECASTING",this.Ci],["SLOT_TYPE_PLAYER_BYTES",this.Ni],["SLOT_TYPE_IN_PLAYER",this.Gn]])};this.listeners=[this.hd.get()];this.mw={wd:this.wd,bk:this.Da.get(),jb:this.Ab.get(),Zw:this.Fa.get(),md:this.md,ot:this.gb.get(),iA:null,zm:this.cg,nk:this.hd.get(),ao:this.Ua.get()}};
rfb=function(a,b,c,d){g.I.call(this);var e=this;this.j=qfb(function(){return e.B},a,b,c,d);
g.N(this,this.j);this.B=(new EAa(this.j)).C();g.N(this,this.B)};
W1=function(a){return a.j.mw};
qfb=function(a,b,c,d,e){try{var f=b.U();if(g.kS(f))var h=new kfb(a,b,c,d,e);else if(g.mS(f))h=new lfb(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===g.yR(f))h=new nfb(a,b,c,d,e);else if(fS(f))h=new mfb(a,b,c,d,e);else if(g.$G(f))h=new ofb(a,b,c,d,e);else if(g.aS(f))h=new pfb(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.U(),HG("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,znb:h.j.cver,ynb:h.j.ctheme,
xnb:h.j.cplayer,eob:h.playerStyle}),new afb(a,b,c,d,e)}};
sfb=function(a){vG.call(this,a)};
tfb=function(a,b,c,d,e){zG.call(this,a,{I:"div",S:"ytp-ad-timed-pie-countdown-container",V:[{I:"svg",S:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},V:[{I:"circle",S:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.va=this.Ga("ytp-ad-timed-pie-countdown");this.D=this.Ga("ytp-ad-timed-pie-countdown-container");
this.B=this.Ga("ytp-ad-timed-pie-countdown-inner");this.G=this.Ga("ytp-ad-timed-pie-countdown-outer");this.C=Math.ceil(10*Math.PI);this.hide()};
ufb=function(a,b,c,d,e,f){WF.call(this,a,{I:"div",S:"ytp-ad-action-interstitial",X:{tabindex:"0"},V:[{I:"div",S:"ytp-ad-action-interstitial-background-container"},{I:"div",S:"ytp-ad-action-interstitial-slot",V:[{I:"div",S:"ytp-ad-action-interstitial-instream-info"},{I:"div",S:"ytp-ad-action-interstitial-card",V:[{I:"div",S:"ytp-ad-action-interstitial-image-container"},{I:"div",S:"ytp-ad-action-interstitial-headline-container"},{I:"div",S:"ytp-ad-action-interstitial-description-container"},{I:"div",
S:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",b,c,d);this.aS=e;this.KK=f;this.navigationEndpoint=this.j=this.skipButton=this.B=this.actionButton=null;this.Ea=this.Ga("ytp-ad-action-interstitial-instream-info");this.va=this.Ga("ytp-ad-action-interstitial-image-container");this.Y=new sG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-action-interstitial-image");g.N(this,this.Y);this.Y.Ja(this.va);this.Xa=this.Ga("ytp-ad-action-interstitial-headline-container");
this.G=new yG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-action-interstitial-headline");g.N(this,this.G);this.G.Ja(this.Xa);this.Wa=this.Ga("ytp-ad-action-interstitial-description-container");this.C=new yG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-action-interstitial-description");g.N(this,this.C);this.C.Ja(this.Wa);this.Za=this.Ga("ytp-ad-action-interstitial-background-container");this.Na=new sG(this.api,this.layoutId,this.interactionLoggingClientData,
this.jb,"ytp-ad-action-interstitial-background",!0);g.N(this,this.Na);this.Na.Ja(this.Za);this.ib=this.Ga("ytp-ad-action-interstitial-action-button-container");this.slot=this.Ga("ytp-ad-action-interstitial-slot");this.Hf=this.Ga("ytp-ad-action-interstitial-card");this.D=new DC;g.N(this,this.D);this.hide()};
vfb=function(a){var b=g.Af("html5-video-player");b&&g.bv(b,"ytp-ad-display-override",a)};
zfb=function(a,b,c,d){WF.call(this,a,{I:"div",S:"ytp-ad-overlay-slot",V:[{I:"div",S:"ytp-ad-overlay-container"}]},"invideo-overlay",b,c,d);this.Y=[];this.ib=this.Ea=this.D=this.Za=this.Wa=null;this.Xa=!1;this.G=null;this.va=0;a=this.Ga("ytp-ad-overlay-container");this.Na=new FG(a,45E3,6E3,.3,.4);g.N(this,this.Na);this.C=wfb(this);g.N(this,this.C);this.C.Ja(a);this.B=xfb(this);g.N(this,this.B);this.B.Ja(a);this.j=yfb(this);g.N(this,this.j);this.j.Ja(a);this.hide()};
wfb=function(a){var b=new g.VF({I:"div",S:"ytp-ad-text-overlay",V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[eG(Afb)]}]},{I:"div",S:"ytp-ad-overlay-title",ya:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",ya:"{{description}}"},{I:"div",La:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],ya:"{{displayUrl}}"}]});a.T(b.Ga("ytp-ad-overlay-title"),"click",function(c){X1(a,b.element,c)});
a.T(b.Ga("ytp-ad-overlay-link"),"click",function(c){X1(a,b.element,c)});
a.T(b.Ga("ytp-ad-overlay-close-container"),"click",a.CL);b.hide();return b};
xfb=function(a){var b=new g.VF({I:"div",La:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[eG(Afb)]}]},{I:"div",S:"ytp-ad-overlay-text-image",V:[{I:"img",X:{src:"{{imageUrl}}"}}]},{I:"div",S:"ytp-ad-overlay-title",ya:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",ya:"{{description}}"},{I:"div",La:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
ya:"{{displayUrl}}"}]});a.T(b.Ga("ytp-ad-overlay-title"),"click",function(c){X1(a,b.element,c)});
a.T(b.Ga("ytp-ad-overlay-link"),"click",function(c){X1(a,b.element,c)});
a.T(b.Ga("ytp-ad-overlay-close-container"),"click",a.CL);a.T(b.Ga("ytp-ad-overlay-text-image"),"click",a.Oaa);b.hide();return b};
yfb=function(a){var b=new g.VF({I:"div",S:"ytp-ad-image-overlay",V:[{I:"div",S:"ytp-ad-overlay-ad-info-button-container"},{I:"div",S:"ytp-ad-overlay-close-container",V:[{I:"button",S:"ytp-ad-overlay-close-button",V:[eG(Afb)]}]},{I:"div",S:"ytp-ad-overlay-image",V:[{I:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Ga("ytp-ad-overlay-image"),"click",function(c){X1(a,b.element,c)});
a.T(b.Ga("ytp-ad-overlay-close-container"),"click",a.CL);b.hide();return b};
Bfb=function(a,b){if(b){var c=g.U(b,HM)||null;if(null==c)g.tF(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.Af("video-ads ytp-ad-module")||null,null==b)g.tF(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ea=new g.VF({I:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.N(a,a.Ea),a.Ea.Ja(b),b=new xG(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,a.Ea.element,!1),g.N(a,b),b.init(LF("ad-info-hover-text-button"),
c,a.macros),a.G){b.Ja(a.G,0);b.subscribe("f",a.v9,a);b.subscribe("e",a.BQ,a);a.T(a.G,"click",a.w9);var d=g.Af("ytp-ad-button",b.element);a.T(d,"click",function(){var e;if(g.U(null==(e=g.U(c.button,g.JM))?void 0:e.serviceEndpoint,lxa))a.Xa=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.ib=b}else g.tF(Error("Ad info button container within overlay ad was not present."))}else g.uF(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
Dfb=function(a,b){if(Cfb(a,Y1)||a.api.xg())return!1;var c=XF(b.title),d=XF(b.description);if(g.fc(c)||g.fc(d))return!1;a.createServerVe(a.C.element,b.trackingParams||null);a.C.updateValue("title",XF(b.title));a.C.updateValue("description",XF(b.description));a.C.updateValue("displayUrl",XF(b.displayUrl));b.navigationEndpoint&&g.Mb(a.Y,b.navigationEndpoint);a.C.show();a.Na.start();a.logVisibility(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.va++});
return!0};
Efb=function(a,b){if(Cfb(a,Y1)||a.api.xg())return!1;var c=XF(b.title),d=XF(b.description);if(g.fc(c)||g.fc(d))return!1;a.createServerVe(a.B.element,b.trackingParams||null);a.B.updateValue("title",XF(b.title));a.B.updateValue("description",XF(b.description));a.B.updateValue("displayUrl",XF(b.displayUrl));a.B.updateValue("imageUrl",rwa(b.image));b.navigationEndpoint&&g.Mb(a.Y,b.navigationEndpoint);a.Za=b.imageNavigationEndpoint||null;a.B.show();a.Na.start();a.logVisibility(a.B.element,!0);a.T(a.B.element,
"mouseover",function(){a.va++});
return!0};
Ffb=function(a,b){if(a.api.xg())return!1;var c=swa(b.image),d=c;c.width<Y1.width&&(d=Y1);if(0===c.width||0===c.height||Cfb(a,d))return!1;a.createServerVe(a.j.element,b.trackingParams||null);a.j.updateValue("imageUrl",rwa(b.image));a.j.updateValue("width",c.width);a.j.updateValue("height",c.height);b.navigationEndpoint&&g.Mb(a.Y,b.navigationEndpoint);b=a.j.Ga("ytp-ad-image-overlay");g.ks(b,"max-width",c.width+"px");a.j.show();a.logVisibility(a.j.element,!0);a.T(a.j.element,"mouseover",function(){a.va++;
a.api.dQ("invideo-overlay",a.layoutId)});
a.T(a.j.element,"mouseout",function(){a.api.cQ("invideo-overlay",a.layoutId)});
return!0};
Cfb=function(a,b){var c=a.api.qb().Qh(),d=a.api.An(!0,!1);return(b=XDa(c,c.height-(d.height+d.top),b))?(a.Wa&&b&&(c=g.pd(a.macros),c.ERRORCODE=b.tG.toString(),c.ERROR_MSG=b.errorMessage,a.layoutId?KJ(a.jb,a.Wa,a.layoutId,c):g.tF(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
X1=function(a,b,c){var d=g.pd(a.macros),e=g.ws(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.us(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
d.NX={toString:function(){return f.x.toString()}};
d.I_Y={toString:function(){return f.y.toString()}};
d.NY={toString:function(){return f.y.toString()}};
d.NM={toString:function(){return a.va.toString()}};
b=g.u(a.Y);for(c=b.next();!c.done;c=b.next())c=c.value,a.layoutId?KJ(a.jb,c,a.layoutId,d):g.tF(Error("Missing layoutId for invideo_overlay_ad."));a.api.pauseVideo()};
Gfb=function(a,b){a=a.api.getRootNode();g.bv(a,"ytp-ad-overlay-open",b);g.bv(a,"ytp-ad-overlay-closed",!b)};
Hfb=function(a,b,c,d,e){zG.call(this,a,{I:"div",S:"ytp-ad-message-overlay",V:[{I:"div",S:"ytp-ad-message-slot"}]},"ad-message",b,c,d,e);var f=this;this.G=-1;this.C=0;this.va=!1;this.Ea=this.Ga("ytp-ad-message-slot");this.B=new g.VF({I:"span",S:"ytp-ad-message-container"});this.B.Ja(this.Ea);g.N(this,this.B);this.messageText=new yG(this.api,this.layoutId,this.interactionLoggingClientData,d,"ytp-ad-message-text");g.N(this,this.messageText);this.messageText.Ja(this.B.element);this.D=new g.CG(this.B,
400,!1,100,function(){f.hide()});
g.N(this,this.D);this.hide()};
Ifb=function(a,b){a=a.api.getRootNode();g.bv(a,"ytp-ad-overlay-open",b);g.bv(a,"ytp-ad-overlay-closed",!b)};
Jfb=function(a,b,c,d){WF.call(this,a,{I:"div",S:"ytp-ad-underlay-companion",V:[{I:"div",S:"ytp-ad-underlay-side-container",V:[{I:"div",S:"ytp-ad-underlay-image-container"},{I:"div",S:"ytp-ad-underlay-description-container"},{I:"div",S:"ytp-ad-underlay-headline-container"},{I:"div",S:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",b,c,d);this.actionButton=null;this.Ea=this.Ga("ytp-ad-underlay-image-container");this.C=new sG(this.api,this.layoutId,this.interactionLoggingClientData,
this.jb,"ytp-ad-underlay-image");g.N(this,this.C);this.C.Ja(this.Ea);this.va=this.Ga("ytp-ad-underlay-headline-container");this.B=new yG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-underlay-headline");g.N(this,this.B);this.B.Ja(this.va);this.Y=this.Ga("ytp-ad-underlay-description-container");this.D=new yG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-underlay-description");g.N(this,this.D);this.D.Ja(this.Y);this.G=this.Ga("ytp-ad-underlay-action-button-container");
this.j=this.Ga("ytp-ad-underlay-side-container");this.hide()};
Kfb=function(a){var b=g.Af("html5-video-player");b&&g.bv(b,"ytp-ad-display-override",a)};
Z1=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
WF.call(this,a,{I:"div",S:"ytp-ad-survey-answer"},"survey-answer",b,c,d);this.index=e;this.onSelected=f;this.j=null;this.toggledLoggingParams="";this.answer=this.Ga("ytp-ad-survey-answer");this.hide()};
Lfb=function(a,b,c,d){WF.call(this,a,{I:"div",S:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",b,c,d);this.button=null;this.j=this.Ga("ytp-ad-survey-none-of-the-above");this.hide()};
$1=function(a,b,c,d){var e=["ytp-ad-survey-submit-button"];a.U().L("web_modern_buttons_bl_survey")&&e.push("ytp-ad-survey-submit-button-rounded");fG.call(this,a,b,c,d,e,"survey-submit")};
a2=function(a,b,c,d,e){WF.call(this,a,{I:"div",S:"ytp-ad-survey-player-overlay",V:[{I:"div",S:"ytp-ad-survey-player-overlay-instream-info"},{I:"div",S:"ytp-ad-survey-player-overlay-skip-preview-submit",V:[{I:"div",S:"ytp-ad-survey-player-overlay-skip-or-preview"},{I:"div",S:"ytp-ad-survey-player-overlay-submit"}]},{I:"div",S:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",b,c,d);this.D=e;this.B=this.j=null;this.C=this.Ga("ytp-ad-survey-player-overlay-instream-info");
this.skipOrPreview=this.Ga("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Ga("ytp-ad-survey-player-overlay-submit");g.N(this,this.D);this.hide()};
b2=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
WF.call(this,a,{I:"div",S:"ytp-ad-survey-question",V:[{I:"div",La:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{I:"div",La:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{I:"div",La:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{I:"div",S:"ytp-ad-survey-question-background"}]},e,b,c,d);this.Ea=f;this.D=null;this.B=[];this.j=null;this.Y=this.api.U().experiments.kb("a11y_h5_associate_survey_question");this.question=this.Ga("ytp-ad-survey-question");
this.Na=this.Ga("ytp-ad-survey-question-background");this.questionText=this.Ga("ytp-ad-survey-question-text");this.answers=this.Ga("ytp-ad-survey-answers");this.playerOverlay=this.Ga("ytp-ad-survey-question-player-overlay");this.C=g.kb()};
Mfb=function(a,b){b=g.YF(b);g.Vf(a.questionText,b);a.Y&&a.questionText.setAttribute("id",LF("survey-question-text"))};
Nfb=function(a,b,c,d){d=new Z1(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,d,a.Ea);d.Ja(a.answers);d.init(LF("survey-answer"),b,c);a.Y&&(b=a.questionText.getAttribute("id"),null!=b&&(null!==d.j?d.j.B.setAttribute("aria-describedby",b):d.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",b)));a.B.push(d)};
Pfb=function(a,b){if(b){var c=b.background;c&&g.U(c,Ofb)&&(c=(c=g.U(c,Ofb).image)&&rG(c)||"",g.fc(c)?g.uF(Error("Found ThumbnailDetails without valid image URL")):g.ks(a.Na,"backgroundImage","url("+c+")"));if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.tF(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.kb();a.j=new RG(a.api,b.durationMilliseconds);g.N(a,a.j);if(a.j&&b.instreamAdPlayerOverlay&&g.U(b.instreamAdPlayerOverlay,
KEa))try{var d=new a2(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,a.j);d.Ja(a.playerOverlay);d.init(LF("survey-player-overlay"),g.U(b.instreamAdPlayerOverlay,KEa),a.macros);a.D=d;g.N(a,d);a.w_()}catch(e){g.tF(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.tF(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.j&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new YG(a.api,a.j),b.Ja(a.playerOverlay),
g.N(a,b)):g.tF(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.tF(Error("addCommonComponents() needs to be called before starting countdown."))};
Qfb=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.kb()-a.C).toString()})};
Rfb=function(a,b,c,d,e){b2.call(this,a,b,c,d,"survey-question-multi-select");this.va=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()};
Sfb=function(a,b,c){a.noneOfTheAbove=new Lfb(a.api,a.layoutId,a.interactionLoggingClientData,a.jb);a.noneOfTheAbove.Ja(a.answers);a.noneOfTheAbove.init(LF("survey-none-of-the-above"),b,c)};
Ufb=function(a){a.B.forEach(function(b){b.j.toggleButton(!1)});
Tfb(a,!0)};
Tfb=function(a,b){var c=a.D;a=Vfb(a);b=void 0===b?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof OG&&!c.j.D&&zxa(c.j,!1));c.B&&(a?c.B.show():c.B.hide())};
Vfb=function(a){return a.B.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()};
c2=function(a,b,c,d,e){b2.call(this,a,b,c,d,"survey-question-single-select",function(h){f.api.U().L("supports_multi_step_on_desktop")&&e([h])});
var f=this;this.hide()};
d2=function(a,b,c,d){WF.call(this,a,{I:"div",S:"ytp-ad-survey",V:[{I:"div",S:"ytp-ad-survey-questions"}]},"survey",b,c,d);this.questions=[];this.B=[];this.conditioningRules=[];this.j=0;this.G=this.Ga("ytp-ad-survey-questions");this.api.U().L("fix_survey_color_contrast_on_destop")&&this.Ga("ytp-ad-survey").classList.add("color-contrast-fix");this.api.U().L("web_enable_speedmaster")&&this.Ga("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
Yfb=function(a,b){var c=a.B[b],d;null==(d=a.C)||d.dispose();g.U(c,GM)?Wfb(a,g.U(c,GM),a.macros):g.U(c,FM)&&Xfb(a,g.U(c,FM),a.macros);a.j=b};
Wfb=function(a,b,c){var d=new c2(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,a.D.bind(a));d.Ja(a.G);d.init(LF("survey-question-single-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.N(a,d)};
Xfb=function(a,b,c){var d=new Rfb(a.api,a.layoutId,a.interactionLoggingClientData,a.jb,a.D.bind(a));d.Ja(a.G);d.init(LF("survey-question-multi-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.N(a,d)};
e2=function(a,b,c,d){WF.call(this,a,{I:"div",S:"ytp-ad-survey-interstitial",V:[{I:"div",S:"ytp-ad-survey-interstitial-contents",V:[{I:"div",S:"ytp-ad-survey-interstitial-logo",V:[{I:"div",S:"ytp-ad-survey-interstitial-logo-image"}]},{I:"div",S:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",b,c,d);this.j=this.actionButton=null;this.interstitial=this.Ga("ytp-ad-survey-interstitial");this.B=this.Ga("ytp-ad-survey-interstitial-contents");this.text=this.Ga("ytp-ad-survey-interstitial-text");
this.logoImage=this.Ga("ytp-ad-survey-interstitial-logo-image");this.transition=new g.CG(this,500,!1,300);g.N(this,this.transition)};
$fb=function(a,b){b=b&&rG(b)||"";if(g.fc(b))g.uF(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.Cf&&10>document.documentMode)c=mv;else{var d=document.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=lla(d.style)}b=new g.me([c,Oba(Zfb,b)].map(Mba).join(""),Ge);a.style.cssText=ne(b)}};
agb=function(a){var b=g.Af("html5-video-player");b&&g.bv(b,"ytp-ad-display-override",a)};
f2=function(a,b,c,d,e,f){f=void 0===f?0:f;zG.call(this,a,{I:"div",S:"ytp-preview-ad",V:[{I:"div",S:"ytp-preview-ad__text"}]},"preview-ad",b,c,d,e);var h=this;this.va=f;this.B=0;this.D=-1;this.C=this.Ga("ytp-preview-ad__text");switch(this.va){case 1:this.C.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.CG(this,400,!1,100,function(){h.hide()},function(){h.show()});
g.N(this,this.transition);this.hide()};
g2=function(a,b,c,d){WF.call(this,a,{I:"img",S:"ytp-ad-avatar"},"ad-avatar",b,c,d);this.hide()};
bgb=function(a){switch(a.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}};
h2=function(a,b,c,d){WF.call(this,a,{I:"button",S:"ytp-ad-button-vm"},"ad-button",b,c,d);this.buttonText=this.buttonIcon=null;this.hide()};
dgb=function(a){this.content=a.content;if(a.commandRuns){a=g.u(a.commandRuns);for(var b=a.next();!b.done;b=a.next())b=b.value,this.loggingDirectives=g.U(b,cgb),b.onTap&&(this.interaction={onTap:b.onTap})}};
i2=function(a,b,c,d){WF.call(this,a,{I:"div",S:"ad-simple-attributed-string"},"ad-simple-attributed-string",b,c,d);this.hide()};
egb=function(a,b,c,d,e){zG.call(this,a,{I:"div",La:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{I:"div",S:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{I:"div",S:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",b,c,d,e);this.B=0;this.adAvatar=new g2(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);g.N(this,this.adAvatar);Qf(this.element,this.adAvatar.element,0);this.headline=new i2(this.api,this.layoutId,this.interactionLoggingClientData,
this.jb);g.N(this,this.headline);this.headline.Ja(this.Ga("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new i2(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);g.N(this,this.description);this.description.Ja(this.Ga("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new h2(this.api,this.layoutId,this.interactionLoggingClientData,
this.jb);g.N(this,this.adButton);this.adButton.Ja(this.element);this.hide()};
fgb=function(a,b,c,d){WF.call(this,a,{I:"button",S:"ytp-skip-ad-button",V:[{I:"div",S:"ytp-skip-ad-button__text"}]},"skip-button",b,c,d);var e=this;this.B=!1;this.D=this.Ga("ytp-skip-ad-button__text");this.transition=new g.CG(this,500,!1,100,function(){e.hide()},function(){e.show()});
g.N(this,this.transition);this.j=new FG(this.element,15E3,5E3,.5,.5,!0);g.N(this,this.j);this.hide()};
ggb=function(a,b,c,d,e){zG.call(this,a,{I:"div",S:"ytp-skip-ad"},"skip-ad",b,c,d,e);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new f2(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j);g.N(this,this.B);this.B.Ja(this.element);this.C=new fgb(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);g.N(this,this.C);this.C.Ja(this.element);this.hide()};
j2=function(a,b,c,d){WF.call(this,a,{I:"div",S:"ytp-visit-advertiser-link"},"visit-advertiser-link",b,c,d);this.hide()};
k2=function(a,b,c,d,e){WF.call(this,a,{I:"div",S:"ytp-ad-player-overlay-layout",V:[{I:"div",S:"ytp-ad-player-overlay-layout__player-card-container"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-info-container"},{I:"div",S:"ytp-ad-player-overlay-layout__skip-or-preview-container"}]},"player-overlay-layout",b,c,d);this.B=e;this.D=this.Ga("ytp-ad-player-overlay-layout__player-card-container");this.j=this.Ga("ytp-ad-player-overlay-layout__ad-info-container");this.G=this.Ga("ytp-ad-player-overlay-layout__skip-or-preview-container");
this.hide()};
l2=function(a,b,c){vG.call(this,a);this.api=a;this.jb=b;this.B={};a=new g.V({I:"div",La:["video-ads","ytp-ad-module"]});g.N(this,a);SR&&g.Yu(a.element,"ytp-ads-tiny-mode");this.G=new DE(a.element);g.N(this,this.G);g.oU(this.api,a.element,4);qFa(c)&&(c=new g.V({I:"div",La:["ytp-ad-underlay"]}),g.N(this,c),this.C=new DE(c.element),g.N(this,this.C),g.oU(this.api,c.element,0));g.N(this,Twa())};
hgb=function(a,b){a=g.nd(a.B,b.id,null);null==a&&g.uF(Error("Component not found for element id: "+b.id));return a||null};
igb=function(a){g.RV.call(this,a);var b=this;this.B=null;this.created=!1;this.C=a.U().L("h5_use_refactored_get_ad_break")?new feb(this.player):new p1(this.player);this.D=function(){if(null!=b.B)return b.B;var d=new meb({zm:W1(b.j).zm,ao:W1(b.j).ao,J:b.player,bk:W1(b.j).bk,Oa:b.j.j.Oa,nk:W1(b.j).nk,jd:b.j.j.jd});b.B=d.q2;return b.B};
this.j=new rfb(this.player,this,this.C,this.D);g.N(this,this.j);var c=a.U();!xJ(c)||g.aS(c)||fS(c)||(g.N(this,new l2(a,W1(this.j).jb,W1(this.j).bk)),g.N(this,new sfb(a)))};
jgb=function(a){a.created!==a.loaded&&HG("Created and loaded are out of sync")};
mgb=function(a){g.RV.prototype.load.call(a);var b=W1(a.j).bk;try{a.player.getRootNode().classList.add("ad-created")}catch(l){HG(l instanceof Error?l:String(l))}var c=a.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(!a.player.U().experiments.kb("debug_ignore_ad_placements")&&e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}),h=((null==e?void 0:e.adSlots)||[]).map(function(l){return g.U(l,MM)});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;c&&c.yc();b=kgb(f,h,b,W1(a.j).ot);f=c&&c.clientPlaybackNonce||"";c=c&&c.gp||!1;h=1E3*a.player.getDuration(1);lgb(a);a.j.j.Lt.yk(f,h,c,b.WJ,b.rV,b.WJ,e,d)};
lgb=function(a){var b,c;if(c=!((null==(b=a.player.getVideoData(1))?0:b.gp)||g.rB("SERVED_VIA_SPF_HISTORY")))b=a.player.U(),c=xJ(b)&&!g.wJ(b)&&"desktop-polymer"===b.playerStyle;c&&(a=lUa(a.player),a.addEventListener("updateKevlarOrC3Companion",Jxa),a.addEventListener("updateEngagementPanelAction",Lxa),a.addEventListener("changeEngagementPanelVisibility",Nxa),window.addEventListener("yt-navigate-start",Pxa))};
m2=function(a,b){b===a.ls&&(a.ls=void 0)};
ngb=function(a){var b=W1(a.j).md,c=b.B().sO("SLOT_TYPE_PLAYER_BYTES",1);b=b.Ua.get().Se(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 aM?e.slotEntryTrigger.Pr:void 0;f&&f===b&&(d&&HG("More than 1 preroll playerBytes slot detected",e),d=!0)}d||I1(W1(a.j).Zw)};
ogb=function(a){if(x1(W1(a.j).bk))return!0;var b="";a=g.u(W1(a.j).nk.Lj.keys());for(var c=a.next();!c.done;c=a.next()){c=c.value;if("SLOT_TYPE_PLAYER_BYTES"===c.slotType&&"core"===c.Ya)return!0;b+=c.slotType+" "}.01>Math.random()&&HG("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1};
pgb=function(a){a=g.u(W1(a.j).nk.Lj.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
OEa=function(a,b,c,d,e){c=void 0===c?[]:c;d=void 0===d?"":d;e=void 0===e?"":e;var f=W1(a.j).bk,h=a.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.yc();c=kgb(b,c,f,W1(a.j).ot);SEa(W1(a.j).wd,d,c.WJ,c.rV,b,e)};
kgb=function(a,b,c,d){b={WJ:[],rV:b};a=g.u(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&null!=e.renderer){var f=e.renderer;if(!c.J.U().L("html5_enable_vod_lasr_with_notify_pacf")){var h=void 0,l=void 0,m=void 0,n=void 0,p=d;g.U(null==(n=f.sandwichedLinearAdRenderer)?void 0:n.adVideoStart,ZM)?(h=g.U(null==(m=f.sandwichedLinearAdRenderer)?void 0:m.adVideoStart,ZM),h=kHa(h,p),g.AF(f.sandwichedLinearAdRenderer.adVideoStart,ZM,h)):g.U(null==(l=f.linearAdSequenceRenderer)?void 0:l.adStart,ZM)&&
(m=g.U(null==(h=f.linearAdSequenceRenderer)?void 0:h.adStart,ZM),h=kHa(m,p),g.AF(f.linearAdSequenceRenderer.adStart,ZM,h))}b.WJ.push(e)}return b};
qgb=function(){if(!g.Cf)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.n2=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=fma(a);return b.parseFromString(g.pe(a),"application/xml")}if(rgb){b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
g.o2=function(a){g.I.call(this);this.callback=a;this.j=new uv(0,0,.4,0,.2,1,1,1);this.delay=new g.Ou(this.next,window,this);g.N(this,this.delay)};
g.sgb=function(a){var b=a.U();return b.me&&!b.C&&g.UR(b)?a.kd()?(a=a.An(),315<=Math.min(a.width,a.height)):!a.Vg():!1};
g.p2=function(a){g.V.call(this,{I:"div",S:"ytp-more-videos-view",X:{tabIndex:"-1"}});var b=this;this.api=a;this.B=!0;this.D=new g.IK(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.G=this.j=0;this.title=new g.V({I:"h2",S:"ytp-related-title",ya:"{{title}}"});this.previous=new g.V({I:"button",La:["ytp-button","ytp-previous"],X:{"aria-label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438"},
V:[g.$F()]});this.N=new g.o2(function(c){b.suggestions.element.scrollLeft=-c});
this.next=new g.V({I:"button",La:["ytp-button","ytp-next"],X:{"aria-label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438"},V:[g.aG()]});g.N(this,this.D);this.K=a.U().D;g.N(this,this.title);this.title.Ja(this.element);this.suggestions=new g.V({I:"div",S:"ytp-suggestions"});g.N(this,this.suggestions);this.suggestions.Ja(this.element);g.N(this,this.previous);this.previous.Ja(this.element);
this.previous.Ta("click",this.t2,this);g.N(this,this.N);tgb(this);g.N(this,this.next);this.next.Ja(this.element);this.next.Ta("click",this.s2,this);this.D.T(this.api,"appresize",this.Yb);this.D.T(this.api,"fullscreentoggled",this.Mw);this.D.T(this.api,"videodatachange",this.onVideoDataChange);this.Yb(this.api.qb().getPlayerSize());this.onVideoDataChange()};
tgb=function(a){for(var b={Oz:0};16>b.Oz;b={Oz:b.Oz},++b.Oz){var c=new g.V({I:"a",S:"ytp-suggestion-link",X:{href:"{{link}}",target:a.api.U().Y,"aria-label":"{{aria_label}}"},V:[{I:"div",S:"ytp-suggestion-image"},{I:"div",S:"ytp-suggestion-overlay",X:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{I:"div",S:"ytp-suggestion-title",ya:"{{title}}"},{I:"div",S:"ytp-suggestion-author",ya:"{{author_and_views}}"},{I:"div",X:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration",
ya:"{{duration}}"}]}]});g.N(a,c);var d=c.Ga("ytp-suggestion-link");g.ks(d,"transitionDelay",b.Oz/20+"s");a.D.T(d,"click",function(e){return function(f){var h=e.Oz;if(a.B){var l=a.suggestionData[h],m=l.sessionData;a.K&&a.api.L("web_player_log_click_before_generating_ve_conversion_params")?(a.api.logClick(a.C[h].element),h=l.Tk(),l={},g.nUa(a.api,l,"emb_rel_pause"),h=g.an(h,l),g.aV(h,a.api,f)):g.$U(f,a.api,a.K,m||void 0)&&a.api.Ko(l.videoId,m,l.playlistId)}else f.preventDefault(),document.activeElement.blur()}}(b));
c.Ja(a.suggestions.element);a.C.push(c);a.api.createServerVe(c.element,c)}};
ugb=function(a){if(a.api.U().L("web_player_log_click_before_generating_ve_conversion_params"))for(var b=Math.floor(-a.j/(a.G+8)),c=Math.min(b+a.columns,a.suggestionData.length)-1;b<=c;b++)a.api.logVisibility(a.C[b].element,!0)};
g.q2=function(a){var b=a.api.Ch()?32:16;b=a.Y/2+b;a.next.element.style.bottom=b+"px";a.previous.element.style.bottom=b+"px";b=a.j;var c=a.containerWidth-a.suggestionData.length*(a.G+8);g.bv(a.element,"ytp-scroll-min",0<=b);g.bv(a.element,"ytp-scroll-max",b<=c)};
wgb=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.U(),l=d.suggestionData[c],m=d.C[c];f=d.api.kd()?l.shortViewCount||"":l.shortViewCount?l.author+" \u2022 "+l.shortViewCount:l.author;m.element.style.display="";e=m.Ga("ytp-suggestion-link");g.ks(e,"display","inline-block");vgb.test(l.title)&&(m.Ga("ytp-suggestion-title").dir="rtl");vgb.test(f)&&(m.Ga("ytp-suggestion-author").dir="rtl");e=l.isLivePlayback?"\u0412 \u044d\u0444\u0438\u0440\u0435":
l.lengthSeconds?g.TG(l.lengthSeconds):"";var n=l.Tk(d.api.kd());if(g.UR(h)&&!h.L("web_player_log_click_before_generating_ve_conversion_params")){var p={};g.WT(d.api,"addEmbedsConversionTrackingParams",[p]);n=g.an(n,g.pP(p,"emb_rel_pause"))}h.L("web_player_log_click_before_generating_ve_conversion_params")&&(h=(h=l.sessionData)&&h.itct)&&d.api.setTrackingParams(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.GK||g.TR?"will-change: opacity":void 0});f=m.Ga("ytp-suggestion-image");d=d.api.kd()?l.hh("hq2.jpg"):l.hh();f.style.backgroundImage=d?"url("+d+")":""}if(16>b)for(;16>b;++b)c=a.C[b].Ga("ytp-suggestion-link"),g.ks(c,"display","none");g.q2(a)};
aaa=[];la="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.ha=caa(this);ma("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;la(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});
ma("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.ha[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&la(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a});
var xgb="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)qa(d,e)&&(a[e]=d[e])}return a};
ma("Object.assign",function(a){return a||xgb});
var faa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},ygb=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=faa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),zgb;
if("function"==typeof Object.setPrototypeOf)zgb=Object.setPrototypeOf;else{var Agb;a:{var Bgb={a:!0},Cgb={};try{Cgb.__proto__=Bgb;Agb=Cgb.a;break a}catch(a){}Agb=!1}zgb=Agb?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ra=zgb;
ua.prototype.Z=function(a){this.B=a};
ua.prototype.return=function(a){this.C={return:a};this.j=this.G};
ua.prototype.Ka=function(a){this.j=a};
ma("Reflect",function(a){return a?a:{}});
ma("Reflect.construct",function(){return ygb});
ma("Reflect.setPrototypeOf",function(a){return a?a:ra?function(b,c){try{return ra(b,c),!0}catch(d){return!1}}:null});
ma("Promise",function(a){function b(h){this.j=0;this.C=void 0;this.B=[];this.N=!1;var l=this.D();try{h(l.resolve,l.reject)}catch(m){l.reject(m)}}
function c(){this.j=null}
function d(h){return h instanceof b?h:new b(function(l){l(h)})}
if(a)return a;c.prototype.B=function(h){if(null==this.j){this.j=[];var l=this;this.C(function(){l.G()})}this.j.push(h)};
var e=g.ha.setTimeout;c.prototype.C=function(h){e(h,0)};
c.prototype.G=function(){for(;this.j&&this.j.length;){var h=this.j;this.j=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.D(n)}}}this.j=null};
c.prototype.D=function(h){this.C(function(){throw h;})};
b.prototype.D=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.Ca),reject:h(this.G)}};
b.prototype.Ca=function(h){if(h===this)this.G(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Ea(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=!0;break a;default:l=!1}l?this.va(h):this.K(h)}};
b.prototype.va=function(h){var l=void 0;try{l=h.then}catch(m){this.G(m);return}"function"==typeof l?this.Ma(l,h):this.K(h)};
b.prototype.G=function(h){this.Z(2,h)};
b.prototype.K=function(h){this.Z(1,h)};
b.prototype.Z=function(h,l){if(0!=this.j)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.j);this.j=h;this.C=l;2===this.j&&this.Ia();this.Y()};
b.prototype.Ia=function(){var h=this;e(function(){if(h.ma()){var l=g.ha.console;"undefined"!==typeof l&&l.error(h.C)}},1)};
b.prototype.ma=function(){if(this.N)return!1;var h=g.ha.CustomEvent,l=g.ha.Event,m=g.ha.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.ha.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.C;return m(h)};
b.prototype.Y=function(){if(null!=this.B){for(var h=0;h<this.B.length;++h)f.B(this.B[h]);this.B=null}};
var f=new c;b.prototype.Ea=function(h){var l=this.D();h.gH(l.resolve,l.reject)};
b.prototype.Ma=function(h,l){var m=this.D();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(r,t){return"function"==typeof r?function(v){try{n(r(v))}catch(x){p(x)}}:t}
var n,p,q=new b(function(r,t){n=r;p=t});
this.gH(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.gH=function(h,l){function m(){switch(n.j){case 1:h(n.C);break;case 2:l(n.C);break;default:throw Error("Unexpected state: "+n.j);}}
var n=this;null==this.B?f.B(m):this.B.push(m);this.N=!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).gH(l,m)})};
b.all=function(h){var l=g.u(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(v){return function(x){r[v]=x;t--;0==t&&n(r)}}
var r=[],t=0;do r.push(void 0),t++,d(m.value).gH(q(r.length-1),p),m=l.next();while(!m.done)})};
return b});
ma("Object.setPrototypeOf",function(a){return a||ra});
ma("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.u(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!qa(m,h)){var n=new c;la(m,h,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(q){return!1}}())return a;
var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!qa(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&qa(m,h)?m[h][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&qa(m,h)&&qa(m[h],this.j)};
b.prototype.delete=function(m){return d(m)&&qa(m,h)&&qa(m[h],this.j)?delete m[h][this.j]:!1};
return b});
ma("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l[1];return daa(function(){if(n){for(;n.head!=l[1];)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++h,f.set(m,n)):n="p_"+m;var p=l[0][n];if(p&&qa(l[0],n))for(l=0;l<p.length;l++){var q=p[l];if(m!==m&&q.key!==q.key||m===q.key)return{id:n,list:p,index:l,entry:q}}return{id:n,list:p,index:-1,entry:void 0}}
function e(l){this[0]={};this[1]=b();this.size=0;if(l){l=g.u(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.u([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(q){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this[0][n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this[1],previous:this[1].previous,head:this[1],key:l,value:m},n.list.push(n.entry),this[1].previous.next=n.entry,this[1].previous=n.entry,this.size++);return this};
e.prototype.delete=function(l){l=d(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this[0][l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this[0]={};this[1]=this[1].previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).entry};
e.prototype.get=function(l){return(l=d(this,l).entry)&&l.value};
e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
e.prototype.keys=function(){return c(this,function(l){return l.key})};
e.prototype.values=function(){return c(this,function(l){return l.value})};
e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
ma("Array.prototype.keys",function(a){return a?a:function(){return Ja(this,function(b){return b})}});
ma("Array.prototype.find",function(a){return a?a:function(b,c){return kaa(this,b,c).iL}});
ma("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}});
ma("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});
ma("Array.prototype.entries",function(a){return a?a:function(){return Ja(this,function(b,c){return[b,c]})}});
ma("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}});
ma("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ma("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}});
ma("Array.prototype.values",function(a){return a?a:function(){return Ja(this,function(b,c){return c})}});
ma("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ma("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
ma("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});
ma("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}});
ma("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ma("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)qa(b,d)&&c.push(b[d]);return c}});
ma("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ma("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}});
ma("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ka(this,b,"includes").indexOf(b,c||0)}});
ma("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ma("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}});
ma("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}});
ma("Int8Array.prototype.fill",Pa);ma("Uint8Array.prototype.fill",Pa);ma("Uint8ClampedArray.prototype.fill",Pa);ma("Int16Array.prototype.fill",Pa);ma("Uint16Array.prototype.fill",Pa);ma("Int32Array.prototype.fill",Pa);ma("Uint32Array.prototype.fill",Pa);ma("Float32Array.prototype.fill",Pa);ma("Float64Array.prototype.fill",Pa);ma("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)qa(b,d)&&c.push([d,b[d]]);return c}});
ma("globalThis",function(a){return a||g.ha});
ma("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}});
ma("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;
})})}});
ma("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}});
ma("Array.prototype.findIndex",function(a){return a?a:function(b,c){return kaa(this,b,c).i}});
ma("Math.sign",function(a){return a?a:function(b){b=Number(b);return 0===b||isNaN(b)?b:0<b?1:-1}});
ma("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});
ma("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)}});
ma("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}});
ma("Int8Array.prototype.copyWithin",Qa);ma("Uint8Array.prototype.copyWithin",Qa);ma("Uint8ClampedArray.prototype.copyWithin",Qa);ma("Int16Array.prototype.copyWithin",Qa);ma("Uint16Array.prototype.copyWithin",Qa);ma("Int32Array.prototype.copyWithin",Qa);ma("Uint32Array.prototype.copyWithin",Qa);ma("Float32Array.prototype.copyWithin",Qa);ma("Float64Array.prototype.copyWithin",Qa);ma("Array.prototype.findLastIndex",function(a){return a?a:function(b,c){return laa(this,b,c).i}});
ma("Int8Array.prototype.findLastIndex",Ra);ma("Uint8Array.prototype.findLastIndex",Ra);ma("Uint8ClampedArray.prototype.findLastIndex",Ra);ma("Int16Array.prototype.findLastIndex",Ra);ma("Uint16Array.prototype.findLastIndex",Ra);ma("Int32Array.prototype.findLastIndex",Ra);ma("Uint32Array.prototype.findLastIndex",Ra);ma("Float32Array.prototype.findLastIndex",Ra);ma("Float64Array.prototype.findLastIndex",Ra);
ma("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}});
ma("Number.parseInt",function(a){return a||parseInt});
ma("String.raw",function(a){return a?a:function(b,c){if(null==b)throw new TypeError("Cannot convert undefined or null to object");for(var d=b.raw,e=d.length,f="",h=0;h<e;++h)f+=d[h],h+1<e&&h+1<arguments.length&&(f+=String(arguments[h+1]));return f}});var Kn,eb,maa;Kn=Kn||{};g.Sa=this||self;eb="closure_uid_"+(1E9*Math.random()>>>0);maa=0;g.k=sb.prototype;g.k.r5=function(a){var b=g.Ia.apply(1,arguments),c=this.XN(b);c?c.push(new paa(a)):this.S_(a,b)};
g.k.S_=function(a){this.j.set(this.QT(g.Ia.apply(1,arguments)),[new paa(a)])};
g.k.XN=function(){var a=this.QT(g.Ia.apply(0,arguments));return this.j.has(a)?this.j.get(a):void 0};
g.k.X6=function(){var a=this.XN(g.Ia.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.j.clear()};
g.k.QT=function(){var a=g.Ia.apply(0,arguments);return a?a.join(","):"key"};g.w(tb,sb);tb.prototype.B=function(a){var b=g.Ia.apply(1,arguments),c=0,d=this.X6(b);d&&(c=d.j);this.S_(c+a,b)};g.w(ub,sb);ub.prototype.Lg=function(a){this.r5(a,g.Ia.apply(1,arguments))};g.k=g.I.prototype;g.k.Yx=!1;g.k.isDisposed=function(){return this.Yx};
g.k.dispose=function(){this.Yx||(this.Yx=!0,this.xa())};
g.k.addOnDisposeCallback=function(a,b){this.Yx?void 0!==b?a.call(b):a():(this.fn||(this.fn=[]),this.fn.push(void 0!==b?(0,g.ib)(a,b):a))};
g.k.xa=function(){if(this.fn)for(;this.fn.length;)this.fn.shift()()};g.ob(yb,Error);yb.prototype.name="CustomError";var aca;g.ob(zb,yb);zb.prototype.name="AssertionError";g.Ab.prototype.stopPropagation=function(){this.B=!0};
g.Ab.prototype.preventDefault=function(){this.defaultPrevented=!0};var saa,Gr,As;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.Dgb=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.bc=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.ot=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.Er=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};
Gr=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.bc)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
As=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.Fr=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 dc={};var hba=function(){if(!g.Sa.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{var c=function(){};
g.Sa.addEventListener("test",c,b);g.Sa.removeEventListener("test",c,b)}catch(d){}return a}();var Egb=Ya(1,!0),rc=Ya(610401301,!1);Ya(899588437,!1);var Hea=Ya(188588736,!1);Ya(2147483644,!1);Ya(2147483645,!1);Ya(2147483646,Egb);Ya(2147483647,!0);var sc=!!g.Wa("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 tc,Fgb=g.Sa.navigator;tc=Fgb?Fgb.userAgentData||null:null;Qc[" "]=function(){};var ls,IU,Idb,Ggb,Hgb,Igb,RR,SR,Jgb;g.TR=Ac();g.Cf=Bc();g.GD=xc("Edge");g.nS=g.GD||g.Cf;ls=xc("Gecko")&&!(jc(g.pc(),"WebKit")&&!xc("Edge"))&&!(xc("Trident")||xc("MSIE"))&&!xc("Edge");g.Vc=jc(g.pc(),"WebKit")&&!xc("Edge");IU=Oc();Idb=Saa();g.jC=Raa();Ggb=Mc();Hgb=xc("iPad");Igb=xc("iPod");RR=Nc();SR=jc(g.pc(),"KaiOS");
a:{var Kgb="",Lgb=function(){var a=g.pc();if(ls)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.GD)return/Edge\/([\d\.]+)/.exec(a);if(g.Cf)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Vc)return/WebKit\/(\S+)/.exec(a);if(g.TR)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
Lgb&&(Kgb=Lgb?Lgb[1]:"");if(g.Cf){var Mgb=Vaa();if(null!=Mgb&&Mgb>parseFloat(Kgb)){Jgb=String(Mgb);break a}}Jgb=Kgb}var Sc=Jgb,Taa={},Ngb;if(g.Sa.document&&g.Cf){var Ogb=Vaa();Ngb=Ogb?Ogb:parseInt(Sc,10)||void 0}else Ngb=void 0;var Waa=Ngb;var SYa=Xaa("AnimationEnd"),fWa=Xaa("TransitionEnd");g.ob(Xc,g.Ab);var Pgb={2:"touch",3:"pen",4:"mouse"};
Xc.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)?ls&&(Rc(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.offsetX=g.Vc||void 0!==
a.offsetX?a.offsetX:a.layerX,this.offsetY=g.Vc||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===
typeof a.pointerType?a.pointerType:Pgb[a.pointerType]||"";this.state=a.state;this.timeStamp=a.timeStamp;this.j=a;a.defaultPrevented&&Xc.Uf.preventDefault.call(this)};
Xc.prototype.stopPropagation=function(){Xc.Uf.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
Xc.prototype.preventDefault=function(){Xc.Uf.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Yaa="closure_listenable_"+(1E6*Math.random()|0);var Zaa=0;var eba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=sd.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=zd(a,b,d,e);-1<h?(b=a[h],c||(b.fH=!1)):(b=new $aa(b,this.src,f,!!d,e),b.fH=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=zd(e,b,c,d);return-1<b?(ad(e[b]),g.Hb(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,ad(c[d]);delete this.listeners[b];this.j--}};
g.k.ED=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=zd(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.ed(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 Ed="closure_lm_"+(1E6*Math.random()|0),Id={},jba=0,Kd="__closure_events_fn_"+(1E9*Math.random()>>>0);g.ob(g.Ld,g.I);g.Ld.prototype[Yaa]=!0;g.k=g.Ld.prototype;g.k.addEventListener=function(a,b,c,d){g.Bd(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){lba(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.RQ;if(b){var c=[];for(var d=1;b;b=b.RQ)c.push(b),++d}b=this.l5;d=a.type||a;if("string"===typeof a)a=new g.Ab(a,b);else if(a instanceof g.Ab)a.target=a.target||b;else{var e=a;a=new g.Ab(d,b);g.rd(a,e)}e=!0;if(c)for(var f=c.length-1;!a.B&&0<=f;f--){var h=a.currentTarget=c[f];e=Md(h,d,!0,a)&&e}a.B||(h=a.currentTarget=b,e=Md(h,d,!0,a)&&e,a.B||(e=Md(h,d,!1,a)&&e));if(c)for(f=0;!a.B&&f<c.length;f++)h=a.currentTarget=c[f],e=Md(h,d,!1,a)&&e;return e};
g.k.xa=function(){g.Ld.Uf.xa.call(this);this.Zl&&this.Zl.Tf();this.RQ=null};
g.k.Ta=function(a,b,c,d){return this.Zl.add(String(a),b,!1,c,d)};
g.k.YI=function(a,b,c,d){return this.Zl.add(String(a),b,!0,c,d)};
g.k.Tc=function(a,b,c,d){this.Zl.remove(String(a),b,c,d)};
g.k.ED=function(a,b,c,d){return this.Zl.ED(String(a),b,c,d)};
g.k.hasListener=function(a,b){return this.Zl.hasListener(void 0!==a?String(a):void 0,b)};Nd.prototype.get=function(){if(0<this.B){this.B--;var a=this.j;this.j=a.next;a.next=null}else a=this.C();return a};var gca=g.Cf||g.Vc;var Qgb={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 Vd;g.Zd.prototype.toString=function(){return this.r0};
var qba={},pba={};ae("");g.be.prototype.toString=function(){return this.o_+""};
var rba={};g.ge.prototype.toString=function(){return this.n_.toString()};
var tba=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,sba=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,le={},Cba=new g.ge("about:invalid#zClosurez",le);var Ge={};g.me.prototype.toString=function(){return this.m_.toString()};
var mv=new g.me("",Ge),xba=RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),wba=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),vba=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"),yba=/\/\*/;var Gba={};g.oe.prototype.toString=function(){return this.l_.toString()};
var Rgb=/^[a-zA-Z0-9-]+$/,Sgb={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Tgb={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Dba=new g.oe(g.Sa.trustedTypes&&g.Sa.trustedTypes.emptyHTML||"",Gba);g.xe=new g.ge("about:invalid#zClosurez",le);var FZa=we("tel"),DZa=we("sms"),Hba=[we("data"),we("http"),we("https"),we("mailto"),we("ftp"),new ve(function(a){return/^[^:]*([/?#]|$)/.test(a)})],Jba=/^\s*(?!javascript:)(?:[a-z0-9+.-]+:|[^:\/?#]*(?:[\/?#]|$))/i;var Xpa={};g.w(Be,Kba);Be.prototype.toString=function(){return this.j};Ce.prototype.toString=function(){return this.p_.toString()};var Pba=Td(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.pe(Dba);return!b.parentElement});g.k=g.Ke.prototype;g.k.clone=function(){return new g.Ke(this.x,this.y)};
g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.Oe.prototype;g.k.clone=function(){return new g.Oe(this.width,this.height)};
g.k.area=function(){return this.width*this.height};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!this.area()};
g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.Ugb=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var bca={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=kf.prototype;g.k.Kb=function(a){return wf(this.j,a)};
g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.k.Ga=function(a){return g.Af(a,this.j)};
g.k.createElement=function(a){return Gf(this.j,a)};
g.k.appendChild=g.Of;g.k.append=function(a,b){fca(mf(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.Rf;g.k.contains=g.Uf;var bg;eg.prototype.add=function(a,b){var c=mca.get();c.set(a,b);this.B?this.B.next=c:this.j=c;this.B=c};
eg.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.B=null),a.next=null);return a};
var mca=new Nd(function(){return new fg},function(a){return a.reset()});
fg.prototype.set=function(a,b){this.Ls=a;this.scope=b;this.next=null};
fg.prototype.reset=function(){this.next=this.scope=this.Ls=null};var gg,hg=!1,kca=new eg;nca.prototype.reset=function(){this.context=this.B=this.C=this.j=null;this.D=!1};
var oca=new Nd(function(){return new nca},function(a){a.reset()});
g.kg.prototype.then=function(a,b,c){return yca(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
g.kg.prototype.$goog_Thenable=!0;g.k=g.kg.prototype;g.k.Al=function(a,b){return yca(this,null,a,b)};
g.k.catch=g.kg.prototype.Al;g.k.cancel=function(a){if(0==this.j){var b=new wg(a);g.ig(function(){uca(this,b)},this)}};
g.k.oda=function(a){this.j=0;jg(this,2,a)};
g.k.pda=function(a){this.j=0;jg(this,3,a)};
g.k.G6=function(){for(var a;a=vca(this);)wca(this,a,this.j,this.N);this.K=!1};
var Cca=dg;g.ob(wg,yb);wg.prototype.name="cancel";g.ob(g.xg,g.Ld);g.k=g.xg.prototype;g.k.enabled=!1;g.k.qd=null;g.k.setInterval=function(a){this.gj=a;this.qd&&this.enabled?(this.stop(),this.start()):this.qd&&this.stop()};
g.k.Yca=function(){if(this.enabled){var a=g.kb()-this.vY;0<a&&a<.8*this.gj?this.qd=this.jG.setTimeout(this.GV,this.gj-a):(this.qd&&(this.jG.clearTimeout(this.qd),this.qd=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.qd||(this.qd=this.jG.setTimeout(this.GV,this.gj),this.vY=g.kb())};
g.k.stop=function(){this.enabled=!1;this.qd&&(this.jG.clearTimeout(this.qd),this.qd=null)};
g.k.xa=function(){g.xg.Uf.xa.call(this);this.stop();delete this.jG};g.w(g.Ag,g.I);g.k=g.Ag.prototype;g.k.sendIsolatedPayload=function(a){this.G=a;this.D=1};
g.k.Kr=function(){var a=this.B.values();a=[].concat(g.pa(a)).filter(function(b){return b.j.size});
a.length&&this.N.flush(a,this.G);Fca(a);this.C=0;this.j.enabled&&this.j.stop()};
g.k.Kh=function(a){var b=g.Ia.apply(1,arguments);this.B.has(a)||this.B.set(a,new tb(a,b))};
g.k.Ru=function(a){var b=g.Ia.apply(1,arguments);this.B.has(a)||this.B.set(a,new ub(a,b))};
g.k.rj=function(a){this.SL(a,1,g.Ia.apply(1,arguments))};
g.k.SL=function(a,b){var c=g.Ia.apply(2,arguments),d=Eca(this,a);d&&d instanceof tb&&(d.B(b,c),Dca(this))};
g.k.Lg=function(a,b){var c=g.Ia.apply(2,arguments),d=Eca(this,a);d&&d instanceof ub&&(d.Lg(b,c),Dca(this))};Ica.prototype.Lg=function(a,b,c){this.j.Lg("/client_streamz/bg/fil",a,b,c)};
Kca.prototype.Lg=function(a,b,c){this.j.Lg("/client_streamz/bg/fcd",a,b,c)};
Mca.prototype.Lg=function(a,b,c){this.j.Lg("/client_streamz/bg/fsl",a,b,c)};
Nca.prototype.Lg=function(a,b,c,d,e){this.j.Lg("/client_streamz/bg/wrl",a,b,c,d,e)};
Oca.prototype.Lg=function(a,b,c){this.j.Lg("/client_streamz/bg/el",a,b,c)};
Pca.prototype.B=function(a,b){this.j.rj("/client_streamz/bg/cec",a,b)};
Qca.prototype.B=function(a,b){this.j.rj("/client_streamz/bg/po/csc",a,b)};
Rca.prototype.B=function(a,b){this.j.rj("/client_streamz/bg/po/ctav",a,b)};
Sca.prototype.B=function(a,b){this.j.rj("/client_streamz/bg/po/cwsc",a,b)};Tca.prototype.Lg=function(a,b,c,d,e){this.j.Lg("/client_streamz/po/w/rl",a,b,c,d,e)};
Uca.prototype.Lg=function(a,b,c){this.j.Lg("/client_streamz/po/w/el",a,b,c)};
Vca.prototype.B=function(a,b){this.j.rj("/client_streamz/po/w/cec",a,b)};
Wca.prototype.B=function(a,b){this.j.rj("/client_streamz/po/w/csc",a,b)};
Xca.prototype.B=function(a,b){this.j.rj("/client_streamz/po/w/ctav",a,b)};
Yca.prototype.B=function(a,b){this.j.rj("/client_streamz/po/w/cwsc",a,b)};var Eh=void 0,Dh,Fda="undefined"!==typeof TextDecoder,bda,ada="function"===typeof String.prototype.B8,$ca="undefined"!==typeof TextEncoder;var gC,hC;g.uR=Dc();gC=Mc()||xc("iPod");hC=xc("iPad");g.XQa=Naa();g.GK=Fc();g.kD=Gc()&&!Nc();var gda={},Lg=null,hda=ls||g.Vc||"function"==typeof g.Sa.btoa;var qda="undefined"!==typeof Uint8Array,kda=!g.Cf&&"function"===typeof btoa,oda=/[-_.]/g,mda={"-":"+",_:"/",".":"="},rda,Og={};var tda;Pg.prototype.isEmpty=function(){return null==this.j};
Pg.prototype.sizeBytes=function(){var a=Rg(this);return a?a.length:0};var Bda="function"===typeof Uint8Array.prototype.slice,Xg=0,Yg=0,afa;ch.prototype.init=function(a,b,c,d){d=void 0===d?{}:d;this.UG=void 0===d.UG?!1:d.UG;a&&(a=Ug(a),this.B=a.buffer,this.G=a.Vv,this.D=b||0,this.C=void 0!==c?this.D+c:this.B.length,this.j=this.D)};
ch.prototype.free=function(){this.clear();100>zh.length&&zh.push(this)};
ch.prototype.clear=function(){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.UG=!1};
ch.prototype.reset=function(){this.j=this.D};
var zh=[];Ah.prototype.free=function(){this.j.clear();this.B=this.D=-1;100>r2.length&&r2.push(this)};
Ah.prototype.reset=function(){this.j.reset();this.C=this.j.j;this.B=this.D=-1};
var r2=[];var Ida,Lda;Gh.prototype.length=function(){return this.j.length};
Gh.prototype.end=function(){var a=this.j;this.j=[];return a};var s2;s2="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():void 0;Math.max.apply(Math,g.pa(Object.values({nJa:1,hJa:2,YIa:4,KYa:8,JYa:16,OUa:32,Ata:64,idb:128,WFa:256,TFa:512,iJa:1024,xFa:2048,U$a:4096,yFa:8192})));var ij=s2?function(a,b){a[s2]|=b}:function(a,b){void 0!==a.Hn?a.Hn|=b:Object.defineProperties(a,{Hn:{value:b,
configurable:!0,writable:!0,enumerable:!1}})},Dj=s2?function(a,b){a[s2]&=~b}:function(a,b){void 0!==a.Hn&&(a.Hn&=~b)},ki=s2?function(a){return a[s2]|0}:function(a){return a.Hn|0},gj=s2?function(a){return a[s2]}:function(a){return a.Hn},Ph=s2?function(a,b){a[s2]=b;
return a}:function(a,b){void 0!==a.Hn?a.Hn=b:Object.defineProperties(a,{Hn:{value:b,
configurable:!0,writable:!0,enumerable:!1}});return a};var aj={},Tda={},Vgb,Cj,Wgb=[];Ph(Wgb,55);Cj=Object.freeze(Wgb);var ni,Nea;Object.freeze(new function(){});
Object.freeze(new function(){});var aea=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var bj,dj,jea;g.k=T.prototype;g.k.toJSON=function(){return Vgb?Dk(this,this.ea,!1):Dk(this,fj(this.ea,oea,void 0,void 0,!1),!0)};
g.k.Hk=function(){Vgb=!0;try{return JSON.stringify(this.toJSON(),lea)}finally{Vgb=!1}};
g.k.clone=function(){var a=this.ea;return cj(this.constructor,hj(a,gj(a),!1))};
g.k.Vv=function(){return!!(ki(this.ea)&2)};
g.k.lJ=aj;g.k.toString=function(){return Dk(this,this.ea,!1).toString()};var Kea=Symbol(),Gk,Hk,Kk=Symbol(),Sea=Symbol(),Nk=Symbol(),Ok=Symbol(),Xgb=Pk(function(a,b,c){if(1!==a.B)return!1;rl(b,c,xh(a.j));return!0},sl),Ygb=Pk(function(a,b,c){if(1!==a.B)return!1;
a=xh(a.j);rl(b,c,0===a?void 0:a);return!0},sl),Zgb=Pk(function(a,b,c,d){if(1!==a.B)return!1;
Oj(b,c,d,xh(a.j));return!0},sl),$gb=Pk(function(a,b,c){if(0!==a.B)return!1;
rl(b,c,eh(a.j));return!0},tl),ahb=Pk(function(a,b,c){if(0!==a.B)return!1;
a=eh(a.j);rl(b,c,0===a?void 0:a);return!0},tl),bhb=Pk(function(a,b,c,d){if(0!==a.B)return!1;
Oj(b,c,d,eh(a.j));return!0},tl),chb=Pk(function(a,b,c){if(0!==a.B)return!1;
rl(b,c,uh(a.j));return!0},ul),dhb=Pk(function(a,b,c){if(0!==a.B)return!1;
a=uh(a.j);rl(b,c,0===a?void 0:a);return!0},ul),ehb=Pk(function(a,b,c,d){if(0!==a.B)return!1;
Oj(b,c,d,uh(a.j));return!0},ul),fhb=Pk(function(a,b,c){if(1!==a.B)return!1;
rl(b,c,wh(a.j));return!0},function(a,b,c){Qda(a,c,gea(b))}),ghb=Qk(function(a,b,c){if(1!==a.B&&2!==a.B)return!1;
b=Ej(b,gj(b),c,2,!1);if(2==a.B)for(c=uh(a.j)>>>0,c=a.j.j+c;a.j.j<c;)b.push(wh(a.j));else b.push(wh(a.j));return!0},function(a,b,c){b=Ek(gea,b,!1);
if(null!=b)for(var d=0;d<b.length;d++)Qda(a,c,b[d])}),hhb=Pk(function(a,b,c){if(0!==a.B)return!1;
rl(b,c,yh(a.j));return!0},bfa),ihb=Pk(function(a,b,c,d){if(0!==a.B)return!1;
Oj(b,c,d,yh(a.j));return!0},bfa),t2=Pk(function(a,b,c){if(2!==a.B)return!1;
rl(b,c,Fh(a));return!0},cfa),jhb=Qk(function(a,b,c){if(2!==a.B)return!1;
a=Fh(a);Kj(b,c,wea,a);return!0},function(a,b,c){b=Ek(Zi,b,!0);
if(null!=b)for(var d=0;d<b.length;d++){var e=a,f=c,h=b[d];null!=h&&Lh(e,f,cda(h))}}),khb=Pk(function(a,b,c,d){if(2!==a.B)return!1;
Oj(b,c,d,Fh(a));return!0},cfa),Iea=new Mh(function(a,b,c,d,e){if(2!==a.B)return!1;
Ch(a,Qj(b,d,c,!0),e);return!0},vl,!1,!0),Rea=new Mh(function(a,b,c,d,e){if(2!==a.B)return!1;
Ch(a,Qj(b,d,c),e);return!0},vl,!1,!0),u2;
u2=new Mh(function(a,b,c,d,e){if(2!==a.B)return!1;d=O(void 0,d[0],d[1]);var f=gj(b);mi(f);var h=Ej(b,f,c,3);f=gj(b);ki(h)&4&&(h=Nh(h),Ph(h,(ki(h)|1)&-2079),zj(b,f,c,h));h.push(d);Ch(a,d,e);return!0},function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)vl(a,b[f],c,d,e)},!0,!0);
var v2=new Mh(function(a,b,c,d,e,f){if(2!==a.B)return!1;var h=gj(b);mi(h);(f=Mj(b,h,f))&&c!==f&&zj(b,h,f);b=Qj(b,d,c);Ch(a,b,e);return!0},vl,!1,!0),lhb=Pk(function(a,b,c){if(2!==a.B)return!1;
rl(b,c,Gda(a));return!0},function(a,b,c){b=hea(b);
null!=b&&Lh(a,c,Ug(b).buffer)}),mhb=Qk(function(a,b,c){if(2!==a.B)return!1;
a=Gda(a);Kj(b,c,wea,a);return!0},function(a,b,c){b=Ek(hea,b,!1);
if(null!=b)for(var d=0;d<b.length;d++){var e=a,f=c,h=b[d];null!=h&&Lh(e,f,Ug(h).buffer)}}),w2=Pk(function(a,b,c){if(0!==a.B)return!1;
rl(b,c,uh(a.j)>>>0);return!0},function(a,b,c){b=vi(b);
null!=b&&null!=b&&(Kh(a,c,0),Hh(a.j,b))}),nhb=Pk(function(a,b,c){if(0!==a.B)return!1;
rl(b,c,uh(a.j));return!0},function(a,b,c){b=ui(b);
null!=b&&(b=parseInt(b,10),Kh(a,c,0),Oda(a.j,b))});g.w(xl,T);xl.yb=[1,2,3,4];g.w(yl,T);var El=[1,2,3],ohb=[0,El,khb,ehb,ihb];var phb=[0,u2,[0,Xgb,$gb]];g.w(zl,T);var Dl=[1,2,3],qhb=[0,Dl,bhb,Zgb,v2,phb];g.w(Al,T);Al.yb=[1];var rhb=[0,u2,ohb,qhb];var shb=[0,[1,2,3],v2,[0,t2,-1,hhb],v2,[0,t2,-1,chb,hhb],v2,[0,t2]];g.w(Bl,T);Bl.prototype.Fq=function(){var a=Bea(this,3,3,void 0,!0);Vda(a);return a[void 0]};
Bl.yb=[3,6,4];Bl.prototype.j=dfa([0,t2,shb,jhb,u2,rhb,fhb,ghb]);g.w(Cl,T);Cl.yb=[1];var kfa={};g.k=Fl.prototype;g.k.isEnabled=function(){if(!g.Sa.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{yE: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.lca;d=c.K_||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.yE}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,"",{yE:0,path:b,domain:c});return d};
g.k.yp=function(){return Gl(this).keys};
g.k.jm=function(){return Gl(this).values};
g.k.isEmpty=function(){return!this.j.cookie};
g.k.clear=function(){for(var a=Gl(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var ZB=new Fl("undefined"==typeof document?null:document);g.w(Il,T);Il.yb=[2];g.w(Jl,g.Ld);Jl.prototype.setInterval=function(a){this.intervalMs=a;this.sf&&this.enabled?(this.stop(),this.start()):this.sf&&this.stop()};
Jl.prototype.start=function(){var a=this;this.enabled=!0;this.sf||(this.sf=setTimeout(function(){a.tick()},this.intervalMs),this.B=this.j())};
Jl.prototype.stop=function(){this.enabled=!1;this.sf&&(clearTimeout(this.sf),this.sf=void 0)};
Jl.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.j()-this.B,0);b<.8*this.intervalMs?this.sf=setTimeout(function(){a.tick()},this.intervalMs-b):(this.sf&&(clearTimeout(this.sf),this.sf=void 0),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}else this.sf=void 0};g.w(Kl,T);g.w(Ll,T);g.Ml.prototype.B=0;g.Ml.prototype.reset=function(){this.j=this.C=this.D;this.B=0};
g.Ml.prototype.getValue=function(){return this.C};g.w(Ol,T);Ol.prototype.xO=function(){return si(yj(this,1))};g.w(Pl,T);g.w(Ql,T);Ql.yb=[1];g.w(ym,T);var pfa=["platform","platformVersion","architecture","model","uaFullVersion"],Am=new Ql,zm=null;g.w(Bm,T);g.w(Cm,T);Cm.yb=[1,2,3,4,5];g.w(Dm,T);g.w(Em,T);Em.prototype.L=function(){return Bj(this,Cm,7)};
Em.prototype.Vy=function(){return Aj(this,16)};
Em.yb=[3,20,27];g.w(Fm,T);Fm.prototype.OF=function(a){return S(this,2,a)};
Fm.yb=[3,5];g.w(Gm,T);var thb=wl(Gm);Gm.yb=[5,6];g.w(rfa,T);var x2=new function(a,b){this.B=a;this.j=b;this.isRepeated=0;this.C=g.Rj;this.defaultValue=void 0}(175237375,rfa);g.w(Jm,g.I);g.k=Jm.prototype;g.k.xa=function(){this.MN();this.j.stop();this.N.stop();g.I.prototype.xa.call(this)};
g.k.dispatch=function(a){if(this.Z)if(a instanceof Em)this.log(a);else{var b=new Em;a=a.Hk();b=Q(b,8,a);this.log(b)}};
g.k.log=function(a){if(this.Z){a=a.clone();var b=this.Ia++;a=xk(a,21,b);this.componentId&&Q(a,26,this.componentId);if(!Aea(a)){var c=Date.now();b=a;c=Number.isFinite(c)?c.toString():"0";Aj(b,1,yi(c))}null!=Wj(a,15)||xk(a,15,60*(new Date).getTimezoneOffset());this.experimentIds&&(b=a,c=this.experimentIds.clone(),Sj(b,Il,16,c));b=this.C.length-1E3+1;0<b&&(this.C.splice(0,b),this.G+=b);this.C.push(a);this.aD||this.j.enabled||this.j.start()}};
g.k.flush=function(a,b){var c=this;if(0===this.C.length)a&&a();else{var d=Date.now();if(this.Ca>d&&this.ma<d)b&&b("throttled");else{this.network&&("function"===typeof this.network.xO?ufa(this.B,this.network.xO()):ufa(this.B,0));var e=this.B.build(this.C,this.G,this.Y,this.bB,0,0);d={};var f=this.tD();f&&(d.Authorization=f);this.K||(this.K=Im());try{var h=(new URL(this.K)).toString()}catch(m){h=(new URL(this.K,Df().location.origin)).toString()}h=new URL(h);this.sessionIndex&&(d["X-Goog-AuthUser"]=
this.sessionIndex,h.searchParams.set("authuser",this.sessionIndex));this.pageId&&(Object.defineProperty(d,"X-Goog-PageId",{value:this.pageId}),h.searchParams.set("pageId",this.pageId));if(f&&this.va===f)b&&b("stale-auth-token");else{this.C=[];this.j.enabled&&this.j.stop();this.G=0;var l=e.Hk();d={url:h.toString(),body:l,Plb:1,AF:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis};h=function(m){c.D.reset();c.j.setInterval(c.D.getValue());if(m){var n=null;try{var p=
JSON.stringify(JSON.parse(m.replace(")]}'\n","")));n=thb(p)}catch(q){}n&&(m=Number,p="-1",p=void 0===p?"0":p,p=Yj(Aea(n),p),m=m(p),0<m&&(c.ma=Date.now(),c.Ca=c.ma+m),n=x2.j?x2.C(n,x2.j,x2.B,!0):x2.C(n,x2.B,null,!0),n=null===n?void 0:n)&&(n=pk(n,1,-1),-1!==n&&(c.D=new g.Ml(1>n?1:n,3E5,.1),c.j.setInterval(c.D.getValue())))}a&&a();c.Y=0};
l=function(m,n){var p=zea(e,Em);var q=Wj(e,14);g.Nl(c.D);c.j.setInterval(c.D.getValue());401===m&&f&&(c.va=f);q&&(c.G+=q);void 0===n&&(n=c.isRetryable(m));n&&(c.C=p.concat(c.C),c.aD||c.j.enabled||c.j.start());b&&b("net-send-failed",m);++c.Y};
c.network&&c.network.send(d,h,l)}}}};
g.k.MN=function(){vfa(this.B,!0);this.flush();vfa(this.B,!1)};
g.k.isRetryable=function(a){return 500<=a&&600>a||401===a||0===a};
Hm.prototype.OF=function(a){this.j.OF(a);return this};
Hm.prototype.build=function(a,b,c,d,e,f){b=void 0===b?0:b;e=void 0===e?0:e;f=void 0===f?0:f;c=void 0===c?0:c;if(Bj(Lm(this),ym,11)){var h=Mm(this);vk(h,3,c)}Bj(Lm(this),ym,11)&&(c=Mm(this),vk(c,4,e));Bj(Lm(this),ym,11)&&(e=Mm(this),vk(e,5,f));f=this.j.clone();e=Date.now().toString();f=Aj(f,4,yi(e));a=Uj(f,Em,3,a);d&&(f=new Kl,d=vk(f,13,d),f=new Ll,d=Sj(f,Kl,2,d),f=new Dm,d=Sj(f,Ll,1,d),d=S(d,2,9),Sj(a,Dm,18,d));b&&xk(a,14,b);return a};xfa.prototype.Hk=function(a){var b=[];Om(this,a,b);return b.join("")};
var Afa={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},zfa=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Pm.prototype.C=null;Pm.prototype.getOptions=function(){return this.C||(this.C=this.D())};var uhb;g.ob(Qm,Pm);Qm.prototype.j=function(){var a=Cfa(this);return a?new ActiveXObject(a):new XMLHttpRequest};
Qm.prototype.D=function(){var a={};Cfa(this)&&(a[0]=!0,a[1]=!0);return a};
uhb=new Qm;var Tm=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Jfa=/#|$/,Kfa=/[?&]($|#)/;g.ob(g.In,g.Ld);var Tfa=/^https?$/i,vhb=["POST","PUT"],Mfa=[];g.k=g.In.prototype;g.k.R5=function(){this.dispose();g.Ib(Mfa,this)};
g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.ma+"; newUri="+a);b=b?b.toUpperCase():"GET";this.ma=a;this.D="";this.B=0;this.Ia=!1;this.C=!0;this.j=this.Z?this.Z.j():uhb.j();this.Ca=this.Z?this.Z.getOptions():uhb.getOptions();this.j.onreadystatechange=(0,g.ib)(this.FZ,this);try{this.getStatus(),this.Ea=!0,this.j.open(b,String(a),!0),this.Ea=!1}catch(h){this.getStatus();Qfa(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.Sa.FormData&&a instanceof g.Sa.FormData;!g.Fb(vhb,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.K&&(this.j.withCredentials=this.K);try{Sfa(this),0<this.N&&(this.Na=Ofa(this.j),this.getStatus(),this.Na?(this.j.timeout=this.N,this.j.ontimeout=(0,g.ib)(this.RT,
this)):this.va=g.yg(this.RT,this.N,this)),this.getStatus(),this.Y=!0,this.j.send(a),this.Y=!1}catch(h){this.getStatus(),Qfa(this,h)}};
g.k.RT=function(){"undefined"!=typeof Kn&&this.j&&(this.D="Timed out after "+this.N+"ms, aborting",this.B=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.j&&this.C&&(this.getStatus(),this.C=!1,this.G=!0,this.j.abort(),this.G=!1,this.B=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Jn(this))};
g.k.xa=function(){this.j&&(this.C&&(this.C=!1,this.G=!0,this.j.abort(),this.G=!1),Jn(this,!0));g.In.Uf.xa.call(this)};
g.k.FZ=function(){this.isDisposed()||(this.Ea||this.Y||this.G?Rfa(this):this.X$())};
g.k.X$=function(){Rfa(this)};
g.k.isActive=function(){return!!this.j};
g.k.isComplete=function(){return 4==g.Ln(this)};
g.k.getStatus=function(){try{return 2<g.Ln(this)?this.j.status:-1}catch(a){return-1}};
g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),null===a?void 0:a};
g.k.getLastError=function(){return"string"===typeof this.D?this.D:String(this.D)};Qn.prototype.send=function(a,b,c){b=void 0===b?function(){}:b;
c=void 0===c?function(){}:c;
Nfa(a.url,function(d){d=d.target;Mn(d)?b(g.Nn(d)):c(d.getStatus())},a.requestType,a.body,a.AF,a.timeoutMillis,a.withCredentials)};
Qn.prototype.xO=function(){return 1};g.w(Rn,g.I);Rn.prototype.mW=function(){this.D=!0;return this};
Rn.prototype.build=function(){var a=new Jm({logSource:this.logSource,tD:this.tD?this.tD:nfa,sessionIndex:this.sessionIndex,yda:this.B,ew:this.C,aD:!1,mW:this.D,BV:this.BV,network:this.network?this.network:void 0});g.N(this,a);if(this.j){var b=this.j,c=Km(a.B);Q(c,7,b)}this.componentId&&(a.componentId=this.componentId);this.bB&&(a.bB=this.bB);this.pageId&&(a.pageId=this.pageId);this.Vy&&((c=this.Vy)?(a.experimentIds||(a.experimentIds=new Il),b=a.experimentIds,c=c.Hk(),Q(b,4,c)):a.experimentIds&&Aj(a.experimentIds,
4));wfa(a.B);this.network.OF&&this.network.OF(this.logSource);this.network.Aca&&this.network.Aca(a);return a};g.w(Sn,g.I);Sn.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Cl,c=[],d=0;d<a.length;d++){var e=a[d],f=g.efa(e);c.push(f);e.clear()}Uj(b,Bl,1,c);this.j.dispatch(b);this.j.flush()}};g.w(Un,Error);Un.prototype.toString=function(){var a="RpcError("+(Vfa(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};
Un.prototype.name="RpcError";Wn.prototype.done=function(){this.logger.uE(this.j,Vn()-this.startMillis)};
g.k=Wfa.prototype;g.k.ZI=function(){};
g.k.uE=function(){};
g.k.DP=function(a,b,c){return c};
g.k.IY=function(){};
g.k.xw=function(){};
g.k.sE=function(){};
g.k=Xfa.prototype;g.k.ZI=function(a){this.clientError.B(a,this.jj)};
g.k.uE=function(a,b){this.D.Lg(b,a,this.jj)};
g.k.DP=function(a,b,c){function d(h){var l=Vn()-f;e.G.Lg(l,a,b,h,e.jj)}
var e=this,f=Vn();c.then(function(){d(0)},function(h){h instanceof Un?d(h.code):d(-1)});
return c};
g.k.IY=function(a){this.C.B(a,this.jj)};
g.k.xw=function(a){this.B.B(a,this.jj)};
g.k.sE=function(a){this.j.B(a,this.jj)};var whb,Zfa=null!=(whb=Math.imul)?whb:function(a,b){return a*b|0};
Yn.prototype.Hk=function(){return String(this.j)+","+this.B.join()};
Yn.prototype.Ah=function(a,b){var c=void 0;if(this.B[this.j]!==a){var d=this.B.indexOf(a);-1!==d?(this.B.splice(d,1),d<this.j&&this.j--,this.B.splice(this.j,0,a)):(c=this.B[this.j],this.B[this.j]=a)}this.j=(this.j+1)%this.maxItems;a=Yfa("iU5q-!O9@$",this.Hk());c&&a&&b(c);return a};
var Zn=[196,200,224,18];var hga={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("")}};bo.prototype.start=function(){this.startMillis=ao()};
bo.prototype.done=function(){null!=this.startMillis&&this.logger.uE(this.event,ao()-this.startMillis)};
co.prototype.EP=function(){};
co.prototype.uE=function(){};
co.prototype.aJ=function(){};
co.prototype.Kr=function(){};
eo.prototype.EP=function(){this.N.j.rj("/client_streamz/bg/fsc",this.C,this.B)};
eo.prototype.uE=function(a,b){0===a?this.K.Lg(b,this.C,this.B):1===a&&this.Z.Lg(b,this.C,this.B)};
eo.prototype.aJ=function(a,b){this.G.j.rj("/client_streamz/bg/fiec",this.C,this.B,a,b)};
eo.prototype.Kr=function(){this.j.Kr()};g.w(jga,T);g.w(kga,T);g.w(fo,T);var sga=wl(fo);ho.prototype.snapshot=function(a){var b=this;if(this.j)throw Error("Already disposed");this.Tj.EP();return this.B.then(function(c){var d=c.G5;return new Promise(function(e){var f=new bo(b.Tj,1);d(function(h){f.done();e(h)},[a.gz,
a.Fca,a.t1,a.Ica])})})};
ho.prototype.j0=function(a){if(this.j)throw Error("Already disposed");this.Tj.EP();var b=new bo(this.Tj,1);a=this.C([a.gz,a.Fca,a.t1,a.Ica]);b.done();return a};
ho.prototype.dispose=function(){this.Tj.Kr();this.j=!0;this.B.then(function(a){(a=a.Dca)&&a()})};
ho.prototype.isDisposed=function(){return this.j};g.w(jo,T);g.w(ko,T);g.w(lo,T);mo.prototype.mD=function(a,b){var c=this,d,e,f,h,l;return g.H(function(m){if(1==m.j){var n=new jo;d=Ak(n,1,c.jj);a&&Ak(d,2,a);b&&Ak(d,3,b);e=c.j();return g.z(m,c.client.create(d,e),2)}f=m.B;h=Sg(Ij(f,2));if(h.length)return m.return(tga(h));l=g.Rj(f,fo,1);if(!l)throw Error("Missing field");return m.return(l)})};
mo.prototype.DW=function(a){var b=this,c,d;return g.H(function(e){c=b.j();var f=new ko;f=Ak(f,1,b.jj);d=Ak(f,2,a);f=e.return;var h=b.client;h=Qp(h.j,h.B+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},xhb);return f.call(e,h)})};
mo.prototype.ping=function(a,b){var c=this,d,e;return g.H(function(f){d=c.j();e=b||new lo;var h=Q(e,1,c.jj);Q(h,2,a);return g.z(f,c.client.ping(e,d),0)})};g.w(no,T);var yhb=wl(no);oo.prototype.dI=function(){return this.C};
oo.prototype.getMetadata=function(){return this.B};po.prototype.getMetadata=function(){return this.j};
po.prototype.dI=function(){return this.B};
po.prototype.getStatus=function(){return null};qo.prototype.getName=function(){return this.name};
qo.prototype.getName=qo.prototype.getName;var zhb=new qo("/google.internal.waa.v1.Waa/Create",jo,no,function(a){return a.Hk()},yhb);g.w(ro,T);var Ahb=wl(ro);var xhb=new qo("/google.internal.waa.v1.Waa/GenerateIT",ko,ro,function(a){return a.Hk()},Ahb);g.w(so,T);var Bhb=new qo("/google.internal.waa.v1.Waa/Ping",lo,so,function(a){return a.Hk()},wl(so));var Qga=Promise;g.w(to,T);to.prototype.getValue=function(){var a=yj(this,2);if(Array.isArray(a)||a instanceof T)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Ij(this,2)};g.w(uo,T);var zga=wl(uo);uo.yb=[3];vo.prototype.on=function(a,b){"data"==a?this.C.push(b):"metadata"==a?this.G.push(b):"status"==a?this.K.push(b):"end"==a?this.D.push(b):"error"==a&&this.B.push(b);return this};
vo.prototype.removeListener=function(a,b){"data"==a?zo(this.C,b):"metadata"==a?zo(this.G,b):"status"==a?zo(this.K,b):"end"==a?zo(this.D,b):"error"==a&&zo(this.B,b);return this};
vo.prototype.cancel=function(){this.j.abort()};
vo.prototype.cancel=vo.prototype.cancel;vo.prototype.removeListener=vo.prototype.removeListener;vo.prototype.on=vo.prototype.on;g.ob(g.Ao,Pm);g.Ao.prototype.j=function(){var a=new Bo(this.K,this.G);this.B&&a.setCredentialsMode(this.B);return a};
g.Ao.prototype.D=Rd({});g.Ao.prototype.setCredentialsMode=function(a){this.B=a};
g.ob(Bo,g.Ld);g.k=Bo.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.ma=a;this.Y=b;this.readyState=1;Co(this)};
g.k.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.Z,method:this.ma,credentials:this.G,cache:void 0};a&&(b.body=a);(this.va||g.Sa).fetch(new Request(this.Y,b)).then(this.S7.bind(this),this.vI.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.Z=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.").catch(function(){});
1<=this.readyState&&this.j&&4!=this.readyState&&(this.j=!1,Do(this));this.readyState=0};
g.k.S7=function(a){if(this.j&&(this.D=a,this.B||(this.status=this.D.status,this.statusText=this.D.statusText,this.B=a.headers,this.readyState=2,Co(this)),this.j&&(this.readyState=3,Co(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.Q7.bind(this),this.vI.bind(this));else if("undefined"!==typeof g.Sa.ReadableStream&&"body"in a){this.C=a.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.N=new TextDecoder;Aga(this)}else a.text().then(this.R7.bind(this),this.vI.bind(this))};
g.k.H7=function(a){if(this.j){if(this.K&&a.value)this.response.push(a.value);else if(!this.K){var b=a.value?a.value:new Uint8Array(0);if(b=this.N.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?Do(this):Co(this);3==this.readyState&&Aga(this)}};
g.k.R7=function(a){this.j&&(this.response=this.responseText=a,Do(this))};
g.k.Q7=function(a){this.j&&(this.response=a,Do(this))};
g.k.vI=function(){this.j&&Do(this)};
g.k.setRequestHeader=function(a,b){this.Z.append(a,b)};
g.k.getResponseHeader=function(a){return this.B?this.B.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.B)return"";for(var a=[],b=this.B.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
g.k.setCredentialsMode=function(a){this.G=a};
Object.defineProperty(Bo.prototype,"withCredentials",{get:function(){return"include"===this.G},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.Eo.prototype.toString=function(){var a=[],b=this.G;b&&a.push(Lo(b,Chb,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.Z)&&a.push(Lo(b,Chb,!0),"@"),a.push(g.Ye(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,null!=c&&a.push(":",String(c));if(c=this.C)this.j&&"/"!=c.charAt(0)&&a.push("/"),a.push(Lo(c,"/"==c.charAt(0)?Dhb:Ehb,!0));(c=this.B.toString())&&a.push("?",c);(c=this.K)&&a.push("#",Lo(c,Fhb));return a.join("")};
g.Eo.prototype.resolve=function(a){var b=this.clone(),c=!!a.G;c?g.Fo(b,a.G):c=!!a.Z;c?b.Z=a.Z:c=!!a.j;c?g.Go(b,a.j):c=null!=a.D;var d=a.C;if(c)g.Ho(b,a.D);else if(c=!!a.C){if("/"!=d.charAt(0))if(this.j&&!this.C)d="/"+d;else{var e=b.C.lastIndexOf("/");-1!=e&&(d=b.C.slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(g.ic(e,"./")||g.ic(e,"/.")){d=ec(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),
d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.C=d:c=""!==a.B.toString();c?Io(b,a.B.clone()):c=!!a.K;c&&(b.K=a.K);return b};
g.Eo.prototype.clone=function(){return new g.Eo(this)};
var Chb=/[#\/\?@]/g,Ehb=/[#\?:]/g,Dhb=/[#\?]/g,Cga=/[#\?@]/g,Fhb=/#/g;g.k=Ko.prototype;g.k.add=function(a,b){Oo(this);this.C=null;a=Po(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.B=this.B+1;return this};
g.k.remove=function(a){Oo(this);a=Po(this,a);return this.j.has(a)?(this.C=null,this.B=this.B-this.j.get(a).length,this.j.delete(a)):!1};
g.k.clear=function(){this.j=this.C=null;this.B=0};
g.k.isEmpty=function(){Oo(this);return 0==this.B};
g.k.forEach=function(a,b){Oo(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.yp=function(){Oo(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.jm=function(a){Oo(this);var b=[];if("string"===typeof a)Ega(this,a)&&(b=b.concat(this.j.get(Po(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){Oo(this);this.C=null;a=Po(this,a);Ega(this,a)&&(this.B=this.B-this.j.get(a).length);this.j.set(a,[b]);this.B=this.B+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.jm(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.C)return this.C;if(!this.j)return"";for(var a=[],b=Array.from(this.j.keys()),c=0;c<b.length;c++){var d=b[c],e=g.Ye(d);d=this.jm(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+g.Ye(d[f]));a.push(h)}}return this.C=a.join("&")};
g.k.clone=function(){var a=new Ko;a.C=this.C;this.j&&(a.j=new Map(this.j),a.B=this.B);return a};g.ob(g.Ep,g.I);var Ghb=[];g.k=g.Ep.prototype;g.k.Ta=function(a,b,c,d){Array.isArray(b)||(b&&(Ghb[0]=b.toString()),b=Ghb);for(var e=0;e<b.length;e++){var f=g.Bd(a,b[e],c||this.handleEvent,d||!1,this.B||this);if(!f)break;this.j[f.key]=f}return this};
g.k.YI=function(a,b,c,d){return Hga(this,a,b,c,d)};
g.k.Tc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Tc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.bb(d)?!!d.capture:!!d,e=e||this.B||this,c=Cd(c),d=!!d,b=Yc(a)?a.ED(b,c,d,e):a?(a=Dd(a))?a.ED(b,c,d,e):null:null,b&&(Fd(b),delete this.j[b.key])};
g.k.Tf=function(){g.bd(this.j,function(a,b){this.j.hasOwnProperty(b)&&Fd(a)},this);
this.j={}};
g.k.xa=function(){g.Ep.Uf.xa.call(this);this.Tf()};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Iga.prototype.isInputValid=function(){return this.C};Fp.prototype.isInputValid=function(){return 3!=this.j};
Fp.prototype.Af=function(){return this.K};
Fp.prototype.SG=function(){return!0};
Fp.prototype.parse=function(a){function b(m){m&128&&Gp(f,h,l,"invalid tag");2!=(m&7)&&Gp(f,h,l,"invalid wire type");f.C=m>>>3;1!=f.C&&2!=f.C&&15!=f.C&&Gp(f,h,l,"unexpected tag");f.j=1;f.B=0;f.D=0}
function c(m){f.D++;5==f.D&&m&240&&Gp(f,h,l,"message length too long");f.B|=(m&127)<<7*(f.D-1);m&128||(f.j=2,f.Z=0,"undefined"!==typeof Uint8Array?f.G=new Uint8Array(f.B):f.G=Array(f.B),0==f.B&&e())}
function d(m){f.G[f.Z++]=m;f.Z==f.B&&e()}
function e(){if(15>f.C){var m={};m[f.C]=f.G;f.N.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:Gp(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.Y++;l++}a=f.N;f.N=[];return 0<a.length?a:null};Hp.prototype.isInputValid=function(){return null===this.j};
Hp.prototype.Af=function(){return this.j};
Hp.prototype.SG=function(){return!1};
Hp.prototype.parse=function(a){null!==this.j&&Kga(this,a,"stream already broken");var b=null;try{var c=this.C;c.C||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=jda(c.j.slice(0,4*d))}catch(h){Jga(c,c.j,h.message)}c.B+=4*d;c.j=c.j.slice(4*d);e=f}b=null===e?null:this.D.parse(e)}catch(h){Kga(this,a,h.message)}this.B+=a.length;return b};var Hhb={INIT:0,AC:1,mM:2,sy:3,OB:4,NB:5,STRING:6,hM:7,xU:8,UU:9,VU:10,WU:11,XS:12,YS:13,ZS:14,aT:15,DU:16,EU:17,FU:18,S4:19,lM:20};g.k=Jp.prototype;g.k.isInputValid=function(){return 3!=this.G};
g.k.Af=function(){return this.Y};
g.k.done=function(){return 2===this.G};
g.k.SG=function(){return!1};
g.k.parse=function(a){function b(){for(;r<a.length;)if(Ip(a[r]))r++,f.C++;else break;return r<n}
function c(){for(var v;;){v=a[r++];if(!v)break;f.C++;switch(f.j){case m.INIT:"{"===v?f.j=m.mM:"["===v?f.j=m.OB:Ip(v)||Kp(f,a,r);continue;case m.hM:case m.mM:if(Ip(v))continue;if(f.j===m.hM)h.push(m.xU);else if("}"===v){e("{}");f.j=d();continue}else h.push(m.sy);'"'===v?f.j=m.STRING:Kp(f,a,r);continue;case m.xU:case m.sy:if(Ip(v))continue;":"===v?(f.j===m.sy&&(h.push(m.sy),f.B++),f.j=m.AC):"}"===v?(f.B--,e(),f.j=d()):","===v?(f.j===m.sy&&h.push(m.sy),f.j=m.hM):Kp(f,a,r);continue;case m.OB:case m.AC:if(Ip(v))continue;
if(f.j===m.OB)if(f.B++,f.j=m.AC,"]"===v){f.B--;if(0===f.B){f.j=m.NB;return}e("[]");f.j=d();continue}else h.push(m.NB);'"'===v?f.j=m.STRING:"{"===v?f.j=m.mM:"["===v?f.j=m.OB:"t"===v?f.j=m.UU:"f"===v?f.j=m.XS:"n"===v?f.j=m.DU:"-"!==v&&(-1!=="0123456789".indexOf(v)?f.j=m.lM:Kp(f,a,r));continue;case m.NB:if(","===v)h.push(m.NB),f.j=m.AC,1===f.B&&(q=r);else if("]"===v){f.B--;if(0===f.B)return;e();f.j=d()}else if(Ip(v))continue;else Kp(f,a,r);continue;case m.STRING:var x=r;a:for(;;){for(;0<f.Z;)if(v=a[r++],
4===f.Z?f.Z=0:f.Z++,!v)break a;if('"'===v&&!f.N){f.j=d();break}if("\\"===v&&!f.N&&(f.N=!0,v=a[r++],!v))break;if(f.N)if(f.N=!1,"u"===v&&(f.Z=1),v=a[r++])continue;else break;l.lastIndex=r;v=l.exec(a);if(!v){r=a.length+1;break}r=v.index+1;v=a[v.index];if(!v)break}f.C+=r-x;continue;case m.UU:if(!v)continue;"r"===v?f.j=m.VU:Kp(f,a,r);continue;case m.VU:if(!v)continue;"u"===v?f.j=m.WU:Kp(f,a,r);continue;case m.WU:if(!v)continue;"e"===v?f.j=d():Kp(f,a,r);continue;case m.XS:if(!v)continue;"a"===v?f.j=m.YS:
Kp(f,a,r);continue;case m.YS:if(!v)continue;"l"===v?f.j=m.ZS:Kp(f,a,r);continue;case m.ZS:if(!v)continue;"s"===v?f.j=m.aT:Kp(f,a,r);continue;case m.aT:if(!v)continue;"e"===v?f.j=d():Kp(f,a,r);continue;case m.DU:if(!v)continue;"u"===v?f.j=m.EU:Kp(f,a,r);continue;case m.EU:if(!v)continue;"l"===v?f.j=m.FU:Kp(f,a,r);continue;case m.FU:if(!v)continue;"l"===v?f.j=d():Kp(f,a,r);continue;case m.S4:"."===v?f.j=m.lM:Kp(f,a,r);continue;case m.lM:if(-1!=="0123456789.eE+-".indexOf(v))continue;else r--,f.C--,f.j=
d();continue;default:Kp(f,a,r)}}}
function d(){var v=h.pop();return null!=v?v:m.AC}
function e(v){1<f.B||(v||(v=-1===q?f.D+a.substring(p,r):a.substring(q,r)),f.ma?f.K.push(v):f.K.push(JSON.parse(v)),q=r)}
for(var f=this,h=f.va,l=f.Ca,m=Hhb,n=a.length,p=0,q=-1,r=0;r<n;)switch(f.G){case 3:return Kp(f,a,r),null;case 2:return b()&&Kp(f,a,r),null;case 0:if(b()){var t=a[r++];f.C++;if("["===t){f.G=1;p=r;f.j=m.OB;continue}else Kp(f,a,r)}return null;case 1:return c(),0===f.B&&f.j==m.NB?(f.G=2,f.D=a.substring(r)):f.D=-1===q?f.D+a.substring(p):a.substring(q),0<f.K.length?(t=f.K,f.K=[],t):null}return null};Lp.prototype.isInputValid=function(){return null===this.G};
Lp.prototype.Af=function(){return this.G};
Lp.prototype.SG=function(){return!1};
Lp.prototype.parse=function(a){function b(m){f.B=6;f.G="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.G);}
function c(){f.C=new Jp({Llb:!0,m6:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.D.push(p)}}
function e(m){if(m){(f.K||1<m.length)&&b("extra status: "+m);f.K=!0;var n={};n[2]=m[0];f.D.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.B){a:{for(;h<a.length;){if(!Ip(a[h])){l=!0;break a}h++;f.j++}l=!1}l=!l}if(l)return null;switch(f.B){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.B=1,h++,f.j++):b("unexpected input token");break;case 1:"["===a[h]?(f.B=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.B=3:"]"===a[h]?(f.B=5,h++,f.j++):b("unexpected input token");break;case 2:l=f.C.parse(a.substring(h));d(l);f.C.done()?(f.B=3,l=f.C.D,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-
h,h=a.length);break;case 3:","===a[h]||"null,"==a.slice(h,h+5)?(f.B=4,c(),f.C.parse("["),h+=","===a[h]?1:5,f.j++):"]"===a[h]&&(f.B=5,h++,f.j++);break;case 4:l=f.C.parse(a.substring(h));e(l);f.C.done()?(f.B=5,l=f.C.D,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-h,h=a.length);break;case 5:b("extra input after stream end")}}return 0<f.D.length?(a=f.D,f.D=[],a):null};Mp.prototype.zO=function(){return this.j};
Mp.prototype.getStatus=function(){return this.D};
Mp.prototype.ma=function(a){a=a.target;try{if(a==this.j)a:{var b=g.Ln(this.j),c=this.j.B,d=this.j.getStatus(),e=g.Nn(this.j);a=[];if(g.On(this.j)instanceof Array){var f=g.On(this.j);0<f.length&&f[0]instanceof Uint8Array&&(this.Y=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?Np(this,7):7==c?Np(this,8):d||Np(this,3)),this.B||(this.B=Lga(this.j),null==this.B&&Np(this,5)),2<this.D)Op(this);else{if(a.length>this.C){var h=a.length;c=[];try{if(this.B.SG())for(var l=0;l<h;l++){var m=
this.B.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.K){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.K=new TextDecoder}for(l=0;l<h;l++)m+=this.K.decode(a[l],{stream:4==b&&l==h-1});c=this.B.parse(m)}a.splice(0,h);c&&this.G(c)}catch(p){Np(this,5);Op(this);break a}}else if(e.length>this.C){l=e.slice(this.C);this.C=e.length;try{var n=this.B.parse(l);null!=n&&this.G&&this.G(n)}catch(p){Np(this,5);Op(this);break a}}4==b?(0!=e.length||
this.Y?Np(this,2):Np(this,4),Op(this)):Np(this,1)}}}catch(p){Np(this,6),Op(this)}};g.k=Mga.prototype;g.k.on=function(a,b){var c=this.B[a];c||(c=[],this.B[a]=c);c.push(b);return this};
g.k.addListener=function(a,b){this.on(a,b);return this};
g.k.removeListener=function(a,b){var c=this.B[a];c&&g.Ib(c,b);(a=this.j[a])&&g.Ib(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.W9=function(a){var b=this.B.data;b&&Nga(a,b);(b=this.j.data)&&Nga(a,b);this.j.data=[]};
g.k.Iaa=function(){switch(this.C.getStatus()){case 1:Pp(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Pp(this,"error");break;case 8:Pp(this,"close");break;case 2:Pp(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.dI(),m=h.getMetadata(),n=Sga(e,!1);m=Tga(e,m,n,f+l.getName());var p=Uga(n,l.B,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.D).call(this,uga(d,b,c))};Rp.prototype.create=function(a,b){return Qp(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},zhb)};
Rp.prototype.ping=function(a,b){return Qp(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},Bhb)};var Ihb=1,Yp=new WeakMap;g.w(Sp,g.I);Sp.prototype.signal=function(){var a=new Up(!1);this.signals.add(a);g.N(this,a);return a};
Sp.prototype.eA=function(a){this.signals.has(a);return a.eA()};
g.w(Up,g.I);g.k=Up.prototype;g.k.IM=function(){var a=this,b=Ihb++;Vp(function(){Wga(a,b)});
return b};
g.k.detach=function(a){var b=this;Vp(function(){var c=b.slots.get(a);c&&c.kW()})};
g.k.value=function(a){return this.promise(!0,a)};
g.k.eA=function(){return this.tY};
g.k.next=function(a){return this.promise(!1,a)};
g.k.promise=function(a,b){var c=this,d=tca();Vp(function(){if(c.isDisposed())d.reject(new wg("Signal initially disposed"));else if(b&&b.isDisposed())d.reject(new wg("Owner initially disposed"));else if(a&&c.IV&&c.GX)d.resolve(c.tY);else if(c.hB.add(d),vg(d.promise,function(){c.hB.delete(d)}),b){var e=function(){d.reject(new wg("Owner asynchronously disposed"))};
vg(d.promise,function(){var f=Yp.get(b);f&&g.Ib(f,e)});
$ga(b,e)}});
return d.promise};
g.k.xa=function(){var a=this;g.I.prototype.xa.call(this);Vp(function(){for(var b=g.u(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.kW,c();a.slots.clear();b=g.u(a.hB);for(c=b.next();!c.done;c=b.next())c.value.reject(new wg("Signal asynchronously disposed"));a.hB.clear()})};
var Wp=[],Xp=!1;g.w(Zp,g.I);Zp.prototype.start=function(){var a=this;if(this.isDisposed())throw new aq("Cannot start a disposed timer.");if(!this.K){this.D=0;if(this.N){var b=Date.now();this.handle=setInterval(function(){a.D=0<a.milliseconds?Math.trunc((Date.now()-b)/a.milliseconds):a.D+1;var c;null==(c=a.B)||c.resolve();a.B=void 0;if(a.C){var d;null==(d=a.j)||Tp(d,a.C,a)}a.Ib.KJ(a)},this.milliseconds)}else this.handle=setTimeout(function(){a.state=3;
a.handle=void 0;a.D=1;var c;null==(c=a.B)||c.resolve();a.B=void 0;if(a.C){var d;null==(d=a.j)||Tp(d,a.C,a)}a.Ib.KJ(a)},this.milliseconds);
this.state=1}};
Zp.prototype.cancel=function(){if(this.K){this.clear();this.state=2;var a;null==(a=this.B)||a.reject(new $p);var b;null==(b=this.Ib.gQ)||b.call(this);if(this.G){var c;null==(c=this.j)||Tp(c,this.G)}}};
Zp.prototype.xa=function(){this.clear();var a;null==(a=this.B)||a.reject(new aq);this.state=4;g.I.prototype.xa.call(this)};
Zp.prototype.clear=function(){this.N?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0};
g.ha.Object.defineProperties(Zp.prototype,{K:{configurable:!0,enumerable:!0,get:function(){return 1===this.state}},
isCancelled:{configurable:!0,enumerable:!0,get:function(){return 2===this.state}},
isExpired:{configurable:!0,enumerable:!0,get:function(){return 3===this.state}},
tick:{configurable:!0,enumerable:!0,get:function(){return this.D}},
Z:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return null!=this.B||(this.B=new g.go),this.B.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new $p("Timer has been cancelled."));case 4:return Promise.reject(new aq("Timer has been disposed."));default:Te(this.state)}}},
KJ:{configurable:!0,enumerable:!0,get:function(){if(this.isDisposed())throw new aq("Cannot attach a signal to a disposed timer.");this.C||(null!=this.j||(this.j=new Sp(this)),this.C=this.j.signal());return this.C}},
gQ:{configurable:!0,enumerable:!0,get:function(){if(this.isDisposed())throw new aq("Cannot attach a signal to a disposed timer.");this.G||(null!=this.j||(this.j=new Sp(this)),this.G=this.j.signal());return this.G}}});
g.w($p,yb);g.w(aq,yb);var bha=globalThis.TextEncoder?new TextEncoder:void 0;g.w(dq,Error);g.w(eq,g.I);eq.prototype.G=function(a){a=this.j(a);return eha(a,this.B,this.logger)};
g.w(gq,eq);gq.prototype.j=function(a){++this.Y>=this.ma&&this.D.resolve();var b=bq(a,this.logger),c=new Wn(this.logger,"C"),d=this.Z(b);c.done();if(void 0===d)throw new dq(17,"YNJ:Undefined");if(!(d instanceof Uint8Array))throw new dq(18,"ODM:Invalid");var e;if(null==(e=a.Ry)?0:e.Oca)try{var f;null==(f=this.N())||fga(f,b,d,a.Ry.HV,this.K)}catch(h){cq(new dq(24,"ELX:write",h),this.logger,this.onError)}return d};
g.w(hq,eq);hq.prototype.j=function(){return this.K};
g.w(iq,eq);iq.prototype.j=function(){return Fg(this.K)};
iq.prototype.G=function(){return this.K};
g.w(jq,eq);jq.prototype.j=function(){if(this.K)return this.K;this.K=fha(this,function(a){return"_"+iga(a)});
return fha(this,function(a){return a})};
g.w(kq,eq);kq.prototype.j=function(a){var b=bq(a,this.logger);if(118<b.length)throw new dq(19,"DFO:Invalid");a=Math.floor(Date.now()/1E3);var c=[255*Math.random(),255*Math.random()],d=c.concat([this.K&255,this.clientState],[a>>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+d.length+b.length);a[0]=34;a[1]=d.length+b.length;a.set(d,2);a.set(b,2+d.length);b=a.subarray(2);for(d=c=c.length;d<b.length;++d)b[d]^=b[d%c];this.logger.IY(this.clientState);return a};
g.w(lq,g.I);g.k=lq.prototype;g.k.isReady=function(){return!!this.j};
g.k.ready=function(){var a=this;return g.H(function(b){return g.z(b,a.D.promise,0)})};
g.k.mD=function(a){var b=hha,c=this.logger,d=c.DP,e=this.sz,f=e.mD;var h=mga().B;return b(this,d.call(c,"c",void 0===a?1:a,f.call(e,h,null)),new dq(10,"JVZ:Timeout"))};
g.k.prefetch=function(){1===this.state&&(this.B=this.mD())};
g.k.start=function(){if(1===this.state){this.state=2;var a=new Wn(this.logger,"r");this.ready().finally(function(){return void a.done()});
jha(this)}};var oha={NONE:0,Swa:1},Vha={V1:0,F3a:1,E3a:2,G3a:3},Mr={I1:"a",qwa:"d",VIDEO:"v"};nq.prototype.isVisible=function(){return this.Wv?.3<=this.Ie:.5<=this.Ie};var xq={Kta:0,fDa:1},Tha={NONE:0,sIa:1,BFa:2};oq.prototype.getValue=function(){return this.B};
g.w(pq,oq);pq.prototype.C=function(a){null===this.B&&g.kd(this.D,a)&&(this.B=a)};
g.w(qq,oq);qq.prototype.C=function(a){null===this.B&&"number"===typeof a&&(this.B=a)};
g.w(rq,oq);rq.prototype.C=function(a){null===this.B&&"string"===typeof a&&(this.B=a)};sq.prototype.disable=function(){this.B=!1};
sq.prototype.enable=function(){this.B=!0};
sq.prototype.isEnabled=function(){return this.B};
sq.prototype.reset=function(){this.j={};this.B=!0;this.C={}};var Cs=document,Bq=window;var Xia=!g.Cf&&!Gc();yq.prototype.now=function(){return 0};
yq.prototype.B=function(){return 0};
yq.prototype.C=function(){return 0};
yq.prototype.j=function(){return 0};g.w(Aq,yq);Aq.prototype.now=function(){return zq()&&Bq.performance.now?Bq.performance.now():yq.prototype.now.call(this)};
Aq.prototype.B=function(){return zq()&&Bq.performance.memory?Bq.performance.memory.totalJSHeapSize||0:yq.prototype.B.call(this)};
Aq.prototype.C=function(){return zq()&&Bq.performance.memory?Bq.performance.memory.usedJSHeapSize||0:yq.prototype.C.call(this)};
Aq.prototype.j=function(){return zq()&&Bq.performance.memory?Bq.performance.memory.jsHeapSizeLimit||0:yq.prototype.j.call(this)};var rha=Td(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.Sa.addEventListener("test",null,b)}catch(c){}return a});sha.prototype.isVisible=function(){return 1===Eq(Cs)};ae("csi.gstatic.com");ae("googleads.g.doubleclick.net");ae("partner.googleadservices.com");ae("pubads.g.doubleclick.net");ae("securepubads.g.doubleclick.net");ae("tpc.googlesyndication.com");var uha={Ija:"allow-forms",Jja:"allow-modals",Kja:"allow-orientation-lock",Lja:"allow-pointer-lock",Mja:"allow-popups",Nja:"allow-popups-to-escape-sandbox",Oja:"allow-presentation",Pja:"allow-same-origin",Qja:"allow-scripts",Rja:"allow-top-navigation",Sja:"allow-top-navigation-by-user-activation"},yha=Td(function(){return vha()});var Cha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Ar.prototype.Ue=function(a,b,c){a=a+"//"+b+c;var d=Gha(this)-c.length;if(0>d)return"";this.j.sort(function(n,p){return n-p});
c=null;b="";for(var e=0;e<this.j.length;e++)for(var f=this.j[e],h=this.B[f],l=0;l<h.length;l++){if(!d){c=null==c?f:c;break}var m=Fha(h[l],this.C,",$");if(m){m=b+m;if(d>=m.length){d-=m.length;a+=m;b=this.C;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};Hr.prototype.setInterval=function(a,b){return Bq.setInterval(a,b)};
Hr.prototype.clearInterval=function(a){Bq.clearInterval(a)};
Hr.prototype.setTimeout=function(a,b){return Bq.setTimeout(a,b)};
Hr.prototype.clearTimeout=function(a){Bq.clearTimeout(a)};g.w(Jr,T);Jr.prototype.j=dfa([0,Ygb,ahb,-2,dhb]);var Uha={Q0a:1,f5:2,zUa:3};Wha.prototype.dR=function(a){if("string"===typeof a&&0!=a.length){var b=this.Mc;if(b.B){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);1<d.length?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.C(d)}}}};var y2=null;var Pr=g.Sa.performance,Jhb=!!(Pr&&Pr.mark&&Pr.measure&&Pr.clearMarks),Nr=Td(function(){var a;if(a=Jhb){var b;if(null===y2){y2="";try{a="";try{a=g.Sa.top.location.hash}catch(c){a=g.Sa.location.hash}a&&(y2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=y2;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
Or.prototype.disable=function(){this.j=!1;this.events!=this.B.google_js_reporting_queue&&(Nr()&&g.bc(this.events,bia),this.events.length=0)};
Or.prototype.start=function(a,b){if(!this.j)return null;var c=$ha()||Zha();a=new aia(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";Pr&&Nr()&&Pr.mark(b);return a};
Or.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=$ha()||Zha();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Pr&&Nr()&&Pr.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};cia.prototype.HP=function(a,b,c,d,e){e=e||this.xW;try{var f=new Ar;f.j.push(1);f.B[1]=Br("context",a);b.error&&b.meta&&b.id||(b=new Tr(Ur(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.B[2]=Br("msg",h)}var l=b.meta||{};if(this.DM)try{this.DM(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.j.push(3);f.B[3]=b;var m=Eha();if(m.B){var n=m.B.url||"";f.j.push(4);f.B[4]=Br("top",n)}var p=[{url:m.j.url||""},{url:m.j.url?Efa(m.j.url):""}];f.j.push(5);f.B[5]=p;Xha(this.j,e,f,c)}catch(q){try{Xha(this.j,
e,{context:"ecmserr",rctx:a,msg:Ur(q),url:m&&m.j.url},c)}catch(r){}}return this.cS};
g.w(Tr,Yha);var Rr,Sr,Qr=new Or;Rr=new function(){var a="https:";Bq&&Bq.location&&"http:"===Bq.location.protocol&&(a="http:");this.B=a;this.j=.01};
Sr=new cia;Bq&&Bq.document&&("complete"==Bq.document.readyState?eia():Qr.j&&Dq(Bq,"load",function(){eia()}));var hia=Date.now(),as=-1,Zr=-1,yja,bs=-1,$r=!1;g.k=cs.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new cs(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof cs?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};fs.prototype.Kb=function(){return this.N};var Khb={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Ht={Y4:"start",e2:"firstquartile",P4:"midpoint",a5:"thirdquartile",Q1:"complete",ERROR:"error",O4:"metric",PAUSE:"pause",V4:"resume",W4:"skip",e5:"viewable_impression",R4:"mute",d5:"unmute",f2:"fullscreen",d2:"exitfullscreen",O1:"bufferstart",N1:"bufferfinish",j2:"fully_viewable_audible_half_duration_impression",N4:"measurable_impression",G1:"abandon",b2:"engagedview",n2:"impression",S1:"creativeview",M4:"loaded",v2a:"progress",
CLOSE:"close",eta:"collapse",PZa:"overlay_resize",QZa:"overlay_unmeasurable_impression",RZa:"overlay_unviewable_impression",TZa:"overlay_viewable_immediate_impression",SZa:"overlay_viewable_end_of_session_impression",U1:"custom_metric_viewable",J1:"audio_audible",L1:"audio_measurable",K1:"audio_impression"},Jka="start firstquartile midpoint thirdquartile resume loaded".split(" "),Kka=["start","firstquartile","midpoint","thirdquartile"],Aja=["abandon"],au={UNKNOWN:-1,Y4:0,e2:1,P4:2,a5:3,Q1:4,O4:5,
PAUSE:6,V4:7,W4:8,e5:9,R4:10,d5:11,f2:12,d2:13,j2:14,N4:15,G1:16,b2:17,n2:18,S1:19,M4:20,U1:21,O1:22,N1:23,K1:27,L1:28,J1:29};var kia={Nea:"addEventListener",DFa:"getMaxSize",EFa:"getScreenSize",FFa:"getState",GFa:"getVersion",y3a:"removeEventListener",tJa:"isViewable"};g.k=g.hs.prototype;g.k.clone=function(){return new g.hs(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.Ke?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.getSize=function(){return new g.Oe(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 oia={};xia.prototype.update=function(a){a&&a.document&&(this.N=gs(!1,a,this.isMobileDevice),this.j=gs(!0,a,this.isMobileDevice),zia(this,a),yia(this,a))};Es.prototype.cancel=function(){Ir().clearTimeout(this.j);this.j=null};
Es.prototype.schedule=function(){var a=this,b=Ir(),c=Lr().j.j;this.j=b.setTimeout(Kr(c,Wr(143,function(){a.B++;a.C.sample()})),iia())};g.k=Fs.prototype;g.k.fC=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.yz=function(){return this.j.Ea};
g.k.TD=function(){return this.j.ma};
g.k.xj=function(a,b){if(!this.ma||(void 0===b?0:b))this.ma=!0,this.Ea=a,this.Z=0,this.j!=this||Hs(this)};
g.k.getName=function(){return this.j.Ra};
g.k.Ss=function(){return this.j.VW()};
g.k.VW=function(){return{}};
g.k.Mq=function(){return this.j.Z};
g.k.ST=function(){var a=Bs();a.j=gs(!0,this.C,a.isMobileDevice)};
g.k.TT=function(){yia(Bs(),this.C)};
g.k.kX=function(){return this.D.j};
g.k.sample=function(){};
g.k.isActive=function(){return this.j.K};
g.k.Hz=function(a){var b=this.j;this.j=a.Mq()>=this.Z?a:this;b!==this.j?(this.K=this.j.K,Hs(this)):this.K!==this.j.K&&(this.K=this.j.K,Hs(this))};
g.k.jt=function(a){if(a.B===this.j){var b=this.D,c=this.Y;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.C==a.C)b=b.j,c=a.j,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;this.D=a;!c&&Cia(this)}};
g.k.Vp=function(){return this.Y};
g.k.dispose=function(){this.Ia=!0};
g.k.isDisposed=function(){return this.Ia};g.k=Is.prototype;g.k.TL=function(){return!0};
g.k.KG=function(){};
g.k.dispose=function(){if(!this.isDisposed()){var a=this.B;g.Ib(a.G,this);a.Y&&this.Vp()&&Bia(a);this.KG();this.ma=!0}};
g.k.isDisposed=function(){return this.ma};
g.k.Ss=function(){return this.B.Ss()};
g.k.Mq=function(){return this.B.Mq()};
g.k.yz=function(){return this.B.yz()};
g.k.TD=function(){return this.B.TD()};
g.k.Hz=function(){};
g.k.jt=function(){this.xs()};
g.k.Vp=function(){return this.va};g.k=Js.prototype;g.k.Mq=function(){return this.j.Mq()};
g.k.yz=function(){return this.j.yz()};
g.k.TD=function(){return this.j.TD()};
g.k.create=function(a,b,c){var d=null;this.j&&(d=this.LG(a,b,c),Gs(this.j,d));return d};
g.k.UT=function(){return this.gC()};
g.k.gC=function(){return!1};
g.k.init=function(a){return this.j.initialize()?(Gs(this.j,this),this.D=a,!0):!1};
g.k.Hz=function(a){0==a.Mq()&&this.D(a.yz(),this)};
g.k.jt=function(){};
g.k.Vp=function(){return!1};
g.k.dispose=function(){this.G=!0};
g.k.isDisposed=function(){return this.G};
g.k.Ss=function(){return{}};Ks.prototype.add=function(a,b,c){++this.C;a=new Dia(a,b,c);this.j.push(new Dia(a.B,a.j,a.C+this.C/4096));this.B=!0;return this};Iia.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=Ms(this.j);0<b.length&&(a+="?"+b);return a};Ns.prototype.update=function(a,b,c){a&&(this.j+=b,this.B+=b,this.D+=b,this.C=Math.max(this.C,this.D));if(void 0===c?!a:c)this.D=0};var Nia=[1,.75,.5,.3,0];Os.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.B.length;e++){var h=this.B[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};ct.prototype.update=function(a,b,c,d){this.N=-1!=this.N?Math.min(this.N,b.Ie):b.Ie;this.va=Math.max(this.va,b.Ie);this.Ca=-1!=this.Ca?Math.min(this.Ca,b.Gk):b.Gk;this.Ea=Math.max(this.Ea,b.Gk);this.Za.update(b.Gk,c.Gk,b.j,a,d);this.B.update(b.Ie,c.Ie,b.j,a,d);c=d||c.Wv!=b.Wv?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Ra.update(c,a,b)};
ct.prototype.Wq=function(){return this.Ra.C>=this.fb};if(Cs&&Cs.URL){var Lhb=Cs.URL,Mhb;if(Mhb=!!Lhb){var Nhb;a:{if(Lhb){var Ohb=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var z2=Ohb.exec(decodeURIComponent(Lhb));if(z2){Nhb=z2[1]&&1<z2[1].length?z2[1].substring(1):"true";break a}}catch(a){}}Nhb=""}Mhb=0<Nhb.length}Sr.cS=!Mhb};var Phb=new cs(0,0,0,0);var Via=new cs(0,0,0,0);g.w(ht,g.I);g.k=ht.prototype;
g.k.xa=function(){if(this.Wj.j){if(this.qv.TP){var a=this.Wj.j;a.removeEventListener&&a.removeEventListener("mouseover",this.qv.TP,Cq());this.qv.TP=null}this.qv.SP&&(a=this.Wj.j,a.removeEventListener&&a.removeEventListener("mouseout",this.qv.SP,Cq()),this.qv.SP=null)}this.bG&&this.bG.dispose();this.fg&&this.fg.dispose();delete this.iJ;delete this.JP;delete this.T0;delete this.Wj.Gt;delete this.Wj.j;delete this.qv;delete this.bG;delete this.fg;delete this.Mc;g.I.prototype.xa.call(this)};
g.k.Vs=function(){return this.fg?this.fg.j:this.position};
g.k.dR=function(a){Lr().dR(a)};
g.k.Vp=function(){return!1};
g.k.gI=function(){return new ct};
g.k.Aj=function(){return this.iJ};
g.k.bX=function(a){return Zia(this,a,1E4)};
g.k.Sa=function(a,b,c,d,e,f,h){this.qt||(this.eD&&(a=this.PM(a,c,e,h),d=d&&this.Vh.Ie>=(this.Wv()?.3:.5),this.ES(f,a,d),this.Jp=b,0<a.Ie&&-1===this.z0&&(this.z0=b),-1==this.E0&&this.Wq()&&(this.E0=b),-2==this.CP&&(this.CP=ft(this.Vs())?a.Ie:-1),this.Vh=a),this.JP(this))};
g.k.ES=function(a,b,c){this.Aj().update(a,b,this.Vh,c)};
g.k.nO=function(){return new nq};
g.k.PM=function(a,b,c,d){c=this.nO();c.j=b;b=Ir().B;b=0===Eq(Cs)?-1:b.isVisible()?0:1;c.B=b;c.Ie=this.kN(a);c.Wv=this.Wv();c.Gk=d;return c};
g.k.kN=function(a){return 0===this.opacity&&1===vq(this.Mc,"opac")?0:a};
g.k.Wv=function(){return!1};
g.k.MK=function(){return this.x8||this.A8};
g.k.Cw=function(){Yr()};
g.k.xA=function(){Yr()};
g.k.Ap=function(){return 0};
g.k.Wq=function(){return this.iJ.Wq()};
g.k.nX=function(){var a=this.eD;a=(this.hasCompleted||this.isDisposed())&&!a;var b=2!==Lr().B||this.hda;return this.qt||b&&a?2:this.Wq()?4:3};
g.k.TH=function(){return 0};g.jt.prototype.next=function(){return g.A2};
g.A2={done:!0,value:void 0};g.jt.prototype.Lk=function(){return this};g.w(eja,nq);var B2=gja([void 0,1,2,3,4,8,16]),C2=gja([void 0,4,8,16]),Qhb={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:nt("p0",C2),p1:nt("p1",C2),p2:nt("p2",C2),p3:nt("p3",C2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:mt("mtos1",[0,2,4],!1,C2),mtos2:mt("mtos2",[0,2,4],!1,C2),mtos3:mt("mtos3",[0,2,4],!1,C2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:nt("a0",C2),a1:nt("a1",C2),a2:nt("a2",C2),a3:nt("a3",C2),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",
vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:nt("c0",C2),c1:nt("c1",C2),c2:nt("c2",C2),c3:nt("c3",C2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:nt("qmtos",B2),qnc:nt("qnc",B2),qmv:nt("qmv",B2),qnv:nt("qnv",B2),
raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:nt("ss0",C2),ss1:nt("ss1",C2),ss2:nt("ss2",C2),ss3:nt("ss3",C2),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia",
omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co"},Rhb=Object.assign({},Qhb,{avid:Rd("audio"),avas:"avas",vs:"vs"}),Shb={atos:"atos",avt:mt("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"};rt.prototype.getValue=function(){return this.B};
rt.prototype.update=function(a,b){32<=a||(this.j&1<<a&&!b?this.B&=~(1<<a):this.j&1<<a||!b||(this.B|=1<<a),this.j|=1<<a)};g.w(tt,ct);
tt.prototype.update=function(a,b,c,d){if(!b.paused){ct.prototype.update.call(this,a,b,c,d);var e=lt(b)&&lt(c),f=.5<=(d?Math.min(b.Ie,c.Ie):c.Ie);zs(b.volume)&&(this.D=-1!=this.D?Math.min(this.D,b.volume):b.volume,this.K=Math.max(this.K,b.volume));f&&(this.Ia+=a,this.Y+=e?a:0);this.j.update(b.Ie,c.Ie,b.j,a,d,e);this.C.update(!0,a);this.G.update(e,a);this.ma.update(c.fullscreen,a);this.ib.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ma.update(a,b.isVisible());this.Xa.update(a,1<=b.Ie);this.Wa.update(a,
lt(b))}};mja.prototype.B=function(a){this.C||(this.j(a)?(a=xka(this.Y,this.D,a),this.G|=a,a=0==a):a=!1,this.C=a)};g.w(vt,mja);vt.prototype.j=function(){return!0};
vt.prototype.K=function(){return!1};
vt.prototype.getId=function(){var a=this,b=ld(Ht,function(c){return c==a.D});
return au[b].toString()};
vt.prototype.toString=function(){var a="";this.K()&&(a+="c");this.C&&(a+="s");0<this.G&&(a+=":"+this.G);return this.getId()+a};g.w(wt,vt);wt.prototype.B=function(a,b){b=void 0===b?null:b;null!=b&&this.N.push(b);vt.prototype.B.call(this,a)};g.w(xt,nja);xt.prototype.B=function(){return null};
xt.prototype.C=function(){return[]};g.w(zt,Is);g.k=zt.prototype;g.k.TM=function(){if(this.element){var a=this.element,b=this.B.j.C;try{try{var c=uia(a.getBoundingClientRect())}catch(n){c=new cs(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=ria(a,b),h=f.x,l=f.y;var m=new cs(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=Phb.clone()}this.j=m}};
g.k.JV=function(){this.D=this.B.D.j};
g.k.hY=function(a){var b=1==vq(this.Mc,"od");return Uia(a,this.D,this.element,b)};
g.k.KV=function(){this.timestamp=Yr()};
g.k.xs=function(){this.KV();this.TM();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.Oe(a.videoWidth,a.videoHeight);a=this.j;var c=ds(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.JV();
a=this.j;c=this.D;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new cs(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 cs(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new cs(0,0,0,0):a;a=this.B.D;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.hY(c)?c=new cs(0,0,0,0):(d=Bs().D,b=new cs(0,d.height,d.width,0),d=gt(c,this.j),e=gt(c,Bs().j),b=gt(c,b)));c=c.top>=c.bottom||c.left>=c.right?new cs(0,0,0,
0):es(c,-this.j.left,-this.j.top);Ds()||(e=d=0);this.N=new fs(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.B.getName()};var Thb=new cs(0,0,0,0);g.w(At,zt);g.k=At.prototype;g.k.TL=function(){this.C();return!0};
g.k.jt=function(){zt.prototype.xs.call(this)};
g.k.KV=function(){};
g.k.TM=function(){};
g.k.xs=function(){this.C();zt.prototype.xs.call(this)};
g.k.Hz=function(a){a=a.isActive();a!==this.K&&(a?this.C():(Bs().j=new cs(0,0,0,0),this.j=new cs(0,0,0,0),this.D=new cs(0,0,0,0),this.timestamp=-1));this.K=a};var D2={},xja=(D2.firstquartile=0,D2.midpoint=1,D2.thirdquartile=2,D2.complete=3,D2);g.w(Ct,ht);g.k=Ct.prototype;g.k.Vp=function(){return!0};
g.k.On=function(){return 2==this.rk};
g.k.bX=function(a){return Zia(this,a,Math.max(1E4,this.C/3))};
g.k.Sa=function(a,b,c,d,e,f,h){var l=this,m=this.N(this)||{};g.rd(m,e);this.C=m.duration||this.C;this.Y=m.isVpaid||this.Y;this.Ra=m.isYouTube||this.Ra;Ir();this.tb=!1;e=pja(this,b);1===oja(this)&&(f=e);ht.prototype.Sa.call(this,a,b,c,d,m,f,h);this.gr&&this.gr.C&&g.bc(this.K,function(n){n.B(l)})};
g.k.ES=function(a,b,c){ht.prototype.ES.call(this,a,b,c);Ft(this).update(a,b,this.Vh,c);this.ib=lt(this.Vh)&&lt(b);-1==this.Ea&&this.Za&&(this.Ea=this.Aj().C.j);this.Sg.C=0;a=this.Wq();b.isVisible()&&qt(this.Sg,"vs");a&&qt(this.Sg,"vw");zs(b.volume)&&qt(this.Sg,"am");lt(b)?qt(this.Sg,"a"):qt(this.Sg,"mut");this.Sz&&qt(this.Sg,"f");-1!=b.B&&(qt(this.Sg,"bm"),1==b.B&&(qt(this.Sg,"b"),lt(b)&&qt(this.Sg,"umutb")));lt(b)&&b.isVisible()&&qt(this.Sg,"avs");this.ib&&a&&qt(this.Sg,"avw");0<b.Ie&&qt(this.Sg,
"pv");Gt(this,this.Aj().C.j,!0)&&qt(this.Sg,"gdr");2E3<=Ss(this.Aj().B,1)&&qt(this.Sg,"pmx");this.tb&&qt(this.Sg,"tvoff")};
g.k.gI=function(){return new tt};
g.k.Aj=function(){return this.iJ};
g.k.nO=function(){return new eja};
g.k.PM=function(a,b,c,d){a=ht.prototype.PM.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Sz;a.paused=this.On();a.volume=c.volume;zs(a.volume)||(this.Nb++,b=this.Vh,zs(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.kN=function(a){return Bs(),this.Sz?1:ht.prototype.kN.call(this,a)};
g.k.Ap=function(){return 1};
g.k.getDuration=function(){return this.C};
g.k.nX=function(){return this.qt?2:rja(this)?5:this.Wq()?4:3};
g.k.TH=function(){return this.ub?2E3<=this.Aj().G.C?4:3:2};var Uhb=g.kb();Ija.prototype.reset=function(){this.j=[];this.B=[]};
var Mt=Fq(Ija);g.w(Pt,Js);g.k=Pt.prototype;g.k.getName=function(){return(this.B?this.B:this.j).getName()};
g.k.Ss=function(){return(this.B?this.B:this.j).Ss()};
g.k.Mq=function(){return(this.B?this.B:this.j).Mq()};
g.k.init=function(a){var b=!1;(0,g.bc)(this.C,function(c){c.initialize()&&(b=!0)});
b&&(this.D=a,Gs(this.j,this));return b};
g.k.dispose=function(){(0,g.bc)(this.C,function(a){a.dispose()});
Js.prototype.dispose.call(this)};
g.k.UT=function(){return As(this.C,function(a){return a.fC()})};
g.k.gC=function(){return As(this.C,function(a){return a.fC()})};
g.k.LG=function(a,b,c){return new zt(a,this.j,b,c)};
g.k.jt=function(a){this.B=a.B};var Rja={threshold:[0,.3,.5,.75,1]};g.w(Qt,zt);g.k=Qt.prototype;g.k.TL=function(){var a=this;this.Y||(this.Y=Yr());if(gia(298,function(){return Sja(a)}))return!0;
this.B.xj("msf");return!1};
g.k.KG=function(){if(this.C&&this.element)try{this.C.unobserve(this.element),this.K?(this.K.unobserve(this.element),this.K=null):this.G&&(this.G.disconnect(),this.G=null)}catch(a){}};
g.k.xs=function(){var a=Rt(this);0<a.length&&St(this,a);zt.prototype.xs.call(this)};
g.k.TM=function(){};
g.k.hY=function(){return!1};
g.k.JV=function(){};
g.k.Ss=function(){var a={};return Object.assign(this.B.Ss(),(a.niot_obs=this.Y,a.niot_cbk=this.Z,a))};
g.k.getName=function(){return"nio"};g.w(Tt,Js);Tt.prototype.getName=function(){return"nio"};
Tt.prototype.gC=function(){return!Bs().B&&null!=this.j.j.C.IntersectionObserver};
Tt.prototype.LG=function(a,b,c){return new Qt(a,this.j,b,c)};g.w(Ut,Fs);Ut.prototype.kX=function(){return Bs().j};
Ut.prototype.fC=function(){var a=Uja();this.Z!==a&&(this.j!=this&&a>this.j.Z&&(this.j=this,Hs(this)),this.Z=a);return 2==a};Vt.prototype.sample=function(){Yt(this,Nt(),!1)};
Vt.prototype.D=function(){var a=Ds(),b=Yr();a?($r||(as=b,g.bc(Mt.j,function(c){var d=c.Aj();d.Na=ut(d,b,1!=c.rk)})),$r=!0):(this.N=Zja(this,b),$r=!1,yja=b,g.bc(Mt.j,function(c){c.eD&&(c.Aj().Z=b)}));
Yt(this,Nt(),!a)};
var Wt=Fq(Vt);var aka=null,vu="",uu=!1;var dka=cka().jp,$t=cka().mp;var gka={gDa:"visible",Coa:"audible",Kbb:"time",Nbb:"timetype"},hka={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)}};
fka.prototype.setTime=function(a,b,c){"ms"==b?(this.C=a,this.D=-1):(this.C=-1,this.D=a);this.G=void 0===c?"tos":c;return this};g.w(du,vt);du.prototype.getId=function(){return this.N};
du.prototype.K=function(){return!0};
du.prototype.j=function(a){var b=a.Aj(),c=a.getDuration();return As(this.Z,function(d){if(void 0!=d.j)var e=jka(d,b);else b:{switch(d.G){case "mtos":e=d.B?b.G.C:b.C.j;break b;case "tos":e=d.B?b.G.j:b.C.j;break b}e=0}0==e?d=!1:(d=-1!=d.C?d.C:void 0!==c&&0<c?d.D*c:-1,d=-1!=d&&e>=d);return d})};g.w(eu,ija);eu.prototype.j=function(a){var b=new hja;b.j=pt(a,Qhb);b.B=pt(a,Shb);return b};g.w(fu,vt);fu.prototype.j=function(a){return rja(a)};g.w(gu,nja);g.w(hu,vt);hu.prototype.j=function(a){return a.Aj().Wq()};g.w(iu,wt);iu.prototype.j=function(a){var b=g.Fb(this.N,vq(Lr().Mc,"ovms"));return!a.qt&&(0!=a.rk||b)};g.w(ju,gu);ju.prototype.B=function(){return new iu(this.j)};
ju.prototype.C=function(){return[new hu("viewable_impression",this.j),new fu(this.j)]};g.w(ku,At);ku.prototype.C=function(){var a=g.Wa("ima.admob.getViewability"),b=vq(this.Mc,"queryid");"function"===typeof a&&b&&a(b)};
ku.prototype.getName=function(){return"gsv"};g.w(lu,Js);lu.prototype.getName=function(){return"gsv"};
lu.prototype.gC=function(){var a=Bs();Lr();return a.B&&!1};
lu.prototype.LG=function(a,b,c){return new ku(this.j,b,c)};g.w(mu,At);mu.prototype.C=function(){var a=this,b=g.Wa("ima.bridge.getNativeViewability"),c=vq(this.Mc,"queryid");"function"===typeof b&&c&&b(c,function(d){g.md(d)&&a.G++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=via(d.opt_nativeViewBounds||{});var h=a.B.D;h.j=f?Thb.clone():via(e);a.timestamp=d.opt_nativeTime||-1;Bs().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
mu.prototype.getName=function(){return"nis"};g.w(nu,Js);nu.prototype.getName=function(){return"nis"};
nu.prototype.gC=function(){var a=Bs();Lr();return a.B&&!1};
nu.prototype.LG=function(a,b,c){return new mu(this.j,b,c)};g.w(ou,Fs);g.k=ou.prototype;g.k.fC=function(){return null!=this.B.Sn};
g.k.VW=function(){var a={};this.Ma&&(a.mraid=this.Ma);this.Ca&&(a.mlc=1);a.mtop=this.B.Hca;this.N&&(a.mse=this.N);this.Na&&(a.msc=1);a.mcp=this.B.compatibility;return a};
g.k.Vt=function(a){var b=g.Ia.apply(1,arguments);try{return this.B.Sn[a].apply(this.B.Sn,b)}catch(c){Xr(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.TD();this.isInitialized=!0;if(2===this.B.compatibility)return this.N="ng",this.xj("w"),!1;if(1===this.B.compatibility)return this.N="mm",this.xj("w"),!1;Bs().Z=!0;this.C.document.readyState&&"complete"==this.C.document.readyState?nka(this):et(this.C,"load",function(){Ir().setTimeout(Wr(292,function(){return nka(a)}),100)},292);
return!0};
g.k.ST=function(){var a=Bs(),b=ska(this,"getMaxSize");a.j=new cs(0,b.width,b.height,0)};
g.k.TT=function(){Bs().D=ska(this,"getScreenSize")};
g.k.dispose=function(){pka(this);Fs.prototype.dispose.call(this)};var Rha=new function(a,b){this.key=a;this.defaultValue=void 0===b?!1:b;this.valueType="boolean"}("45378663");g.k=qu.prototype;g.k.wH=function(a){it(a,!1);Mja(a)};
g.k.nI=function(){};
g.k.tF=function(a,b,c,d){var e=this;a=new Ct(Bq,a,c?b:-1,7,this.uN(),this.dW());a.ij=d;mha(a.Mc);uq(a.Mc,"queryid",a.ij);a.dR("");bja(a,function(){return e.uX.apply(e,g.pa(g.Ia.apply(0,arguments)))},function(){return e.U7.apply(e,g.pa(g.Ia.apply(0,arguments)))});
(d=Fq(Ot).j)&&Yia(a,d);a.Wj.Gt&&Fq(Vja);return a};
g.k.Hz=function(a){switch(a.Mq()){case 0:if(a=Fq(Ot).j)a=a.j,g.Ib(a.G,this),a.Y&&this.Vp()&&Bia(a);tu();break;case 2:Xt()}};
g.k.jt=function(){};
g.k.Vp=function(){return!1};
g.k.U7=function(a,b){a.qt=!0;switch(a.Ap()){case 1:yka(a,b);break;case 2:this.oR(a)}};
g.k.d8=function(a){var b=a.N(a);b&&(b=b.volume,a.ub=zs(b)&&0<b);uja(a,0);return It(a,"start",Ds())};
g.k.GB=function(a,b,c){Yt(Wt,[a],!Ds());return this.Bp(a,b,c)};
g.k.Bp=function(a,b,c){return It(a,c,Ds())};
g.k.Y7=function(a){return zu(a,"firstquartile",1)};
g.k.a8=function(a){a.Za=!0;return zu(a,"midpoint",2)};
g.k.e8=function(a){return zu(a,"thirdquartile",3)};
g.k.V7=function(a){var b=zu(a,"complete",4);Dt(a);return b};
g.k.W7=function(a){a.rk=3;return It(a,"error",Ds())};
g.k.D_=function(a,b,c){b=Ds();if(a.On()&&!b){var d=a.Aj(),e=Yr();d.Z=e}Yt(Wt,[a],!b);a.On()&&(a.rk=1);return It(a,c,b)};
g.k.c8=function(a,b){b=this.GB(a,b||{},"skip");Dt(a);return b};
g.k.Z7=function(a,b){it(a,!0);return this.GB(a,b||{},"fullscreen")};
g.k.X7=function(a,b){it(a,!1);return this.GB(a,b||{},"exitfullscreen")};
g.k.TQ=function(a,b,c){b=a.Aj();var d=Yr();b.Na=ut(b,d,1!=a.rk);Yt(Wt,[a],!Ds());1==a.rk&&(a.rk=2);return It(a,c,Ds())};
g.k.b8=function(a){Yt(Wt,[a],!Ds());return a.B()};
g.k.IO=function(a){Yt(Wt,[a],!Ds());this.y_(a);Dt(a);return a.B()};
g.k.uX=function(){};
g.k.oR=function(){};
g.k.y_=function(){};
g.k.VT=function(){};
g.k.vN=function(){};
g.k.dW=function(){this.j||(this.j=this.vN());return null==this.j?new xt:new ju(this.j)};
g.k.uN=function(){return new eu};g.w(Au,vt);Au.prototype.j=function(a){return 4==a.TH()};g.w(Bu,wt);Bu.prototype.j=function(a){a=a.TH();return 3==a||4==a};g.w(Cu,gu);Cu.prototype.B=function(){return new Bu(this.j)};
Cu.prototype.C=function(){return[new Au(this.j)]};g.w(Du,ija);Du.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 hja;b.j=pt(a,Rhb);b.B=pt(a,Shb);return b};Cka.prototype.B=function(){return g.Wa(this.j)};g.w(Eu,qu);g.k=Eu.prototype;g.k.nI=function(a,b){var c=this,d=Fq(Ot);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=Aka(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Ap()&&(e.N==g.Sd&&(e.N=function(f){return c.VT(f)}),Eka(this,e,b));
return e};
g.k.VT=function(a){a.B=0;a.Ia=0;if("h"==a.D||"n"==a.D){Lr();a.fb&&(Lr(),"h"!=xu(this)&&xu(this));var b=g.Wa("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.ij)}catch(e){a.B|=4}else a.B|=2}else if("b"==a.D)if(b=g.Wa("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.ij)}catch(e){a.B|=4}else a.B|=2;else if("ml"==a.D)if(b=g.Wa("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.ij)}catch(e){a.B|=4}else a.B|=2;else a.B|=1;a.B||(void 0===c?a.B|=8:null===
c?a.B|=16:g.md(c)?a.B|=32:null!=c.errorCode&&(a.Ia=c.errorCode,a.B|=64));null==c&&(c={});b=c;a.Z=0;for(var d in Khb)null==b[d]&&(a.Z|=Khb[d]);Bka(b,"currentTime");Bka(b,"duration");zs(c.volume)&&zs()&&(c.volume*=NaN);return c};
g.k.vN=function(){Lr();"h"!=xu(this)&&xu(this);var a=Ika(this);return null!=a?new Cka(a):null};
g.k.oR=function(a){!a.j&&a.qt&&yu(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.k.y_=function(a){a.e0&&(a.Wq()?yu(this,a,"overlay_viewable_end_of_session_impression"):yu(this,a,"overlay_unviewable_impression"),a.e0=!1)};
g.k.uX=function(){};
g.k.tF=function(a,b,c,d){if(Sha()){var e=vq(Lr().Mc,"mm"),f={};(e=(f[Mr.I1]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[Mr.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&Mka(this,e);"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"===this.C&&Xr(1044,Error())}a=qu.prototype.tF.call(this,a,b,c,d);this.D&&(b=this.G,null==a.G&&(a.G=new cja),b.j[a.ij]=a.G,a.G.G=Uhb);return a};
g.k.wH=function(a){a&&1==a.Ap()&&this.D&&delete this.G.j[a.ij];return qu.prototype.wH.call(this,a)};
g.k.dW=function(){this.j||(this.j=this.vN());return null==this.j?new xt:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new Cu(this.j):new ju(this.j)};
g.k.uN=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new Du:new eu};
var Vhb=Vr(193,Oka,void 0,zka);g.Va("Goog_AdSense_Lidar_sendVastEvent",Vhb);var Whb=Wr(194,function(a,b){b=void 0===b?{}:b;a=Lka(Fq(Eu),a,b);return Nka(a)});
g.Va("Goog_AdSense_Lidar_getViewability",Whb);var Xhb=Vr(195,function(){return Mha()});
g.Va("Goog_AdSense_Lidar_getUrlSignalsArray",Xhb);var Yhb=Wr(196,function(){return JSON.stringify(Mha())});
g.Va("Goog_AdSense_Lidar_getUrlSignalsList",Yhb);var FAa=oa(["//tpc.googlesyndication.com/sodar/",""]);var hMa={E4a:0,B4a:1,y4a:2,z4a:3,A4a:4,D4a:5,C4a:6};var Voa=(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;g.w(Hu,g.Ld);Hu.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Pn.Sj(this.G);delete Hu.instance};
Hu.prototype.Th=function(){return this.j};
Hu.prototype.xf=function(){var a=this;this.G=this.Pn.Xi(function(){var b;return g.H(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Ka(3):g.z(c,Gu(a),3):g.z(c,Gu(a),3);a.xf();g.Aa(c)})},3E4)};Ju.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&Number.isInteger(a)&&this.data[a]!==b&&(this.data[a]=b,this.j=-1)};
Ju.prototype.get=function(a){return!!this.data[a]};var Lu;g.ob(g.Ou,g.I);g.k=g.Ou.prototype;g.k.start=function(){this.stop();this.D=!1;var a=Wka(this),b=Xka(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.j=g.Bd(this.B,"MozBeforePaint",this.C),this.B.mozRequestAnimationFrame(null),this.D=!0):this.j=a&&b?a.call(this.B,this.C):this.B.setTimeout(nba(this.C),20)};
g.k.stop=function(){if(this.isActive()){var a=Wka(this),b=Xka(this);a&&!b&&this.B.mozRequestAnimationFrame?Fd(this.j):a&&b?b.call(this.B,this.j):this.B.clearTimeout(this.j)}this.j=null};
g.k.isActive=function(){return null!=this.j};
g.k.N3=function(){this.D&&this.j&&Fd(this.j);this.j=null;this.K.call(this.G,g.kb())};
g.k.xa=function(){this.stop();g.Ou.Uf.xa.call(this)};g.ob(g.Qu,g.I);g.k=g.Qu.prototype;g.k.hC=0;g.k.xa=function(){g.Qu.Uf.xa.call(this);this.stop();delete this.j;delete this.B};
g.k.start=function(a){this.stop();this.hC=g.yg(this.C,void 0!==a?a:this.gj)};
g.k.stop=function(){this.isActive()&&g.Sa.clearTimeout(this.hC);this.hC=0};
g.k.isActive=function(){return 0!=this.hC};
g.k.XT=function(){this.hC=0;this.j&&this.j.call(this.B)};Uu.prototype[Symbol.iterator]=function(){return this};
Uu.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.B.call(void 0,a.value),done:a.done}};g.ob(g.cv,g.Ld);g.k=g.cv.prototype;g.k.isPlaying=function(){return 1==this.j};
g.k.isPaused=function(){return-1==this.j};
g.k.zJ=function(){this.Yl("begin")};
g.k.lr=function(){this.Yl("end")};
g.k.onFinish=function(){this.Yl("finish")};
g.k.Yl=function(a){this.dispatchEvent(a)};var Zhb=Td(function(){if(g.Cf)return!0;var a=g.If("DIV"),b=g.Vc?"-webkit":ls?"-moz":g.Cf?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!Rgb.test("div"))throw Error("");if("DIV"in Tgb)throw Error("");b=void 0;var d="";if(c)for(n in c)if(Object.prototype.hasOwnProperty.call(c,n)){if(!Rgb.test(n))throw Error("");var e=c[n];if(null!=e){var f=void 0;var h=n;if(e instanceof g.Zd)e=$d(e);else if("style"==h.toLowerCase()){if(!g.bb(e))throw Error("");
if(!(e instanceof g.me)){var l="";for(f in e)if(Object.prototype.hasOwnProperty.call(e,f)){if(!/^[-_a-zA-Z0-9]+$/.test(f))throw Error("Name allows only [-_a-zA-Z0-9], got: "+f);var m=e[f];null!=m&&(m=Array.isArray(m)?m.map(Bba).join(" "):Bba(m),l+=f+":"+m+";")}e=l?new g.me(l,Ge):mv}e=ne(e)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in Sgb)if(e instanceof g.be)e=g.ee(e).toString();else if(e instanceof g.ge)e=g.ke(e);else if("string"===typeof e)e=(uba(e)||Cba).toString();else throw Error("");
}f=h+'="'+hc(String(e))+'"';d+=" "+f}}var n="<div"+d;null==b?b=[]:Array.isArray(b)||(b=[b]);!0===Qgb.div?n+=">":(b=Fba(b),n+=">"+g.pe(b).toString()+"</div>");n=g.te(n);g.Qba(a,n);return""!=g.ms(a.firstChild,"transition")});g.ob(dv,g.cv);g.k=dv.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.zJ();this.Yl("play");this.startTime=g.kb();this.j=1;if(Zhb())return g.ks(this.B,this.K),this.C=g.yg(this.rba,void 0,this),!0;this.UL(!1);return!1};
g.k.rba=function(){g.ws(this.B);ala(this.B,this.N);g.ks(this.B,this.D);this.C=g.yg((0,g.ib)(this.UL,this,!1),1E3*this.G)};
g.k.stop=function(){this.isPlaying()&&this.UL(!0)};
g.k.UL=function(a){g.ks(this.B,"transition","");g.Sa.clearTimeout(this.C);g.ks(this.B,this.D);this.endTime=g.kb();this.j=0;if(a)this.Yl("stop");else this.onFinish();this.lr()};
g.k.xa=function(){this.stop();dv.Uf.xa.call(this)};
g.k.pause=function(){};var dla={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};lv("Element","attributes")||lv("Node","attributes");lv("Element","innerHTML")||lv("HTMLElement","innerHTML");lv("Node","nodeName");lv("Node","nodeType");lv("Node","parentNode");lv("Node","childNodes");lv("HTMLElement","style")||lv("Element","style");lv("HTMLStyleElement","sheet");var jla=fla("getPropertyValue"),kla=fla("setProperty");lv("Element","namespaceURI")||lv("Node","namespaceURI");var ila={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var ola,vgb,nla,mla,pla;ola=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]");vgb=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.$hb=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.nv=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]");nla=/^http:\/\/.*/;g.aib=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");mla=/\s+/;pla=/[\d\u06f0-\u06f9]/;pv.prototype.Lk=function(){return new qv(this.B())};
pv.prototype[Symbol.iterator]=function(){return new rv(this.B())};
pv.prototype.j=function(){return new rv(this.B())};
g.w(qv,g.jt);qv.prototype.next=function(){return this.B.next()};
qv.prototype[Symbol.iterator]=function(){return new rv(this.B)};
qv.prototype.j=function(){return new rv(this.B)};
g.w(rv,pv);rv.prototype.next=function(){return this.C.next()};uv.prototype.clone=function(){return new uv(this.j,this.C,this.x1,this.y1,this.x2,this.y2,this.B,this.D)};wv.prototype.clone=function(){return new wv(this.start,this.end)};
wv.prototype.getLength=function(){return this.end-this.start};(function(){if(Idb){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.pc()))?a[1]:"0"}return IU?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.pc()))?a[0].replace(/_/g,"."):"10"):g.jC?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.pc()))?a[1]:""):Ggb||Hgb||Igb?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.pc()))?a[1].replace(/_/g,"."):""):""})();var rla=function(){if(g.uR)return xv(/Firefox\/([0-9.]+)/);if(g.Cf||g.GD||g.TR)return Sc;if(g.GK){if(Nc()||Oc()){var a=xv(/CriOS\/([0-9.]+)/);if(a)return a}return xv(/Chrome\/([0-9.]+)/)}if(g.kD&&!Nc())return xv(/Version\/([0-9.]+)/);if(gC||hC){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.pc()))return a[1]+"."+a[2]}else if(g.XQa)return(a=xv(/Android\s+([0-9.]+)/))?a:xv(/Version\/([0-9.]+)/);return""}();g.ob(g.zv,g.I);g.k=g.zv.prototype;g.k.subscribe=function(a,b,c){var d=this.B[a];d||(d=this.B[a]=[]);var e=this.K;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.K=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.B[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Ih(a)}return!1};
g.k.Ih=function(a){var b=this.j[a];if(b){var c=this.B[b];0!=this.D?(this.C.push(a),this.j[a+1]=function(){}):(c&&g.Ib(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
g.k.ra=function(a,b){var c=this.B[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.N)for(e=0;e<c.length;e++){var h=c[e];sla(this.j[h+1],this.j[h+2],d)}else{this.D++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)h=c[e],this.j[h+1].apply(this.j[h+2],d)}finally{if(this.D--,0<this.C.length&&0==this.D)for(;c=this.C.pop();)this.Ih(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.B[a];b&&(b.forEach(this.Ih,this),delete this.B[a])}else this.j.length=0,this.B={}};
g.k.xa=function(){g.zv.Uf.xa.call(this);this.clear();this.C.length=0};g.Av.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.Nm(b))};
g.Av.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.Av.prototype.remove=function(a){this.j.remove(a)};g.ob(Bv,g.Av);Bv.prototype.set=function(a,b){Bv.Uf.set.call(this,a,ula(b))};
Bv.prototype.B=function(a){a=Bv.Uf.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Bv.prototype.get=function(a){if(a=this.B(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.ob(Cv,Bv);Cv.prototype.set=function(a,b,c){if(b=ula(b)){if(c){if(c<g.kb()){Cv.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.kb()}Cv.Uf.set.call(this,a,b)};
Cv.prototype.B=function(a,b){var c=Cv.Uf.B.call(this,a);if(c)if(!b&&g.vla(c))Cv.prototype.remove.call(this,a);else return c};g.ob(g.Dv,Cv);g.ob(Ev,wla);Ev.prototype[Symbol.iterator]=function(){return tv(this.Lk(!0)).j()};
Ev.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.ob(Fv,Ev);g.k=Fv.prototype;g.k.isAvailable=function(){var a=this.j;if(a)try{a.setItem("__sak","1");a.removeItem("__sak");var b=!0}catch(c){b=c instanceof DOMException&&("QuotaExceededError"===c.name||22===c.code||1014===c.code||"NS_ERROR_DOM_QUOTA_REACHED"===c.name)&&a&&0!==a.length}else b=!1;return this.B=b};
g.k.set=function(a,b){Gv(this);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){Gv(this);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){Gv(this);this.j.removeItem(a)};
g.k.Lk=function(a){Gv(this);var b=0,c=this.j,d=new g.jt;d.next=function(){if(b>=c.length)return g.A2;var e=c.key(b++);if(a)return g.kt(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.kt(e)};
return d};
g.k.clear=function(){Gv(this);this.j.clear()};
g.k.key=function(a){Gv(this);return this.j.key(a)};g.ob(Hv,Fv);g.ob(xla,Fv);g.k=g.Iv.prototype;g.k.jm=function(){Kv(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.B[this.j[b]]);return a};
g.k.yp=function(){Kv(this);return this.j.concat()};
g.k.has=function(a){return Jv(this.B,a)};
g.k.isEmpty=function(){return 0==this.size};
g.k.clear=function(){this.B={};this.yu=this.size=this.j.length=0};
g.k.remove=function(a){return this.delete(a)};
g.k.delete=function(a){return Jv(this.B,a)?(delete this.B[a],--this.size,this.yu++,this.j.length>2*this.size&&Kv(this),!0):!1};
g.k.get=function(a,b){return Jv(this.B,a)?this.B[a]:b};
g.k.set=function(a,b){Jv(this.B,a)||(this.size+=1,this.j.push(a),this.yu++);this.B[a]=b};
g.k.forEach=function(a,b){for(var c=this.yp(),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.Iv(this)};
g.k.keys=function(){return tv(this.Lk(!0)).j()};
g.k.values=function(){return tv(this.Lk(!1)).j()};
g.k.entries=function(){var a=this;return Yka(this.keys(),function(b){return[b,a.get(b)]})};
g.k.Lk=function(a){Kv(this);var b=0,c=this.yu,d=this,e=new g.jt;e.next=function(){if(c!=d.yu)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)return g.A2;var f=d.j[b++];return g.kt(a?f:d.B[f])};
return e};g.ob(Mv,Ev);var yla={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Lv=null;g.k=Mv.prototype;g.k.isAvailable=function(){return!!this.j};
g.k.set=function(a,b){this.j.setAttribute(Nv(a),b);Ov(this)};
g.k.get=function(a){a=this.j.getAttribute(Nv(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeAttribute(Nv(a));Ov(this)};
g.k.Lk=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.jt;d.next=function(){if(b>=c.length)return g.A2;var e=c[b++];if(a)return g.kt(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.kt(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);Ov(this)};g.ob(Pv,Ev);Pv.prototype.set=function(a,b){this.B.set(this.j+a,b)};
Pv.prototype.get=function(a){return this.B.get(this.j+a)};
Pv.prototype.remove=function(a){this.B.remove(this.j+a)};
Pv.prototype.Lk=function(a){var b=this.B[Symbol.iterator](),c=this,d=new g.jt;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.kt(a?e.slice(c.j.length):c.B.get(e))};
return d};Rv.prototype.getValue=function(){return this.B};
Rv.prototype.clone=function(){return new Rv(this.j,this.B)};g.k=Sv.prototype;g.k.Ah=function(a,b){var c=this.j;c.push(new Rv(a,b));a=c.length-1;b=this.j;for(c=b[a];0<a;){var d=a-1>>1;if(b[d].j>c.j)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].j<b[f].j?h:f;if(b[f].j>e.j)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.jm=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.yp=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].j);return b};
g.k.clone=function(){return new Sv(this)};
g.k.isEmpty=function(){return 0===this.j.length};
g.k.clear=function(){this.j.length=0};g.w(zla,Sv);g.Tv.jh=void 0;g.Tv.getInstance=function(){return g.Tv.jh?g.Tv.jh:g.Tv.jh=new g.Tv};
g.Tv.prototype.j=0;var Uv={},bib="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;Uv.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};
Uv.bS=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
var cib={Ny: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]},
GW: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}},dib={Ny:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},
GW:function(a){return[].concat.apply([],a)}};
Uv.Bca=function(){bib?(Uv.Kx=Uint8Array,Uv.iq=Uint16Array,Uv.P1=Int32Array,Uv.assign(Uv,cib)):(Uv.Kx=Array,Uv.iq=Array,Uv.P1=Array,Uv.assign(Uv,dib))};
Uv.Bca();var eib=!0;try{new Uint8Array(1)}catch(a){eib=!1};var tw={};tw=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 uw={},E2,fib=[],F2=0;256>F2;F2++){E2=F2;for(var gib=0;8>gib;gib++)E2=E2&1?3988292384^E2>>>1:E2>>>1;fib[F2]=E2}uw=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^fib[(a^b[d])&255];return a^-1};var jw={};jw={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 cw=[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],fw=[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],Wla=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Lla=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],nw=Array(576);Vv(nw);var ow=Array(60);Vv(ow);var ew=Array(512);Vv(ew);var bw=Array(256);Vv(bw);var dw=Array(29);Vv(dw);var gw=Array(30);Vv(gw);var Tla,Ula,Vla,Sla=!1;var zw;zw=[new yw(0,0,0,0,function(a,b){var c=65535;for(c>a.Cm-5&&(c=a.Cm-5);;){if(1>=a.pc){vw(a);if(0===a.pc&&0===b)return 1;if(0===a.pc)break}a.Db+=a.pc;a.pc=0;var d=a.Ok+c;if(0===a.Db||a.Db>=d)if(a.pc=a.Db-d,a.Db=d,pw(a,!1),0===a.Be.Qe)return 1;if(a.Db-a.Ok>=a.pj-262&&(pw(a,!1),0===a.Be.Qe))return 1}a.Ah=0;if(4===b)return pw(a,!0),0===a.Be.Qe?3:4;a.Db>a.Ok&&pw(a,!1);return 1}),
new yw(4,4,8,4,ww),new yw(4,5,16,8,ww),new yw(4,6,32,32,ww),new yw(4,4,16,16,xw),new yw(8,16,32,32,xw),new yw(8,16,128,128,xw),new yw(8,32,128,256,xw),new yw(32,128,258,1024,xw),new yw(32,258,258,4096,xw)];var Rla={};Rla=function(){this.input=null;this.Dx=this.uj=this.Fw=0;this.output=null;this.tS=this.Qe=this.zA=0;this.msg="";this.state=null;this.yN=2;this.Xd=0};var Xla=Object.prototype.toString;
Aw.prototype.push=function(a,b){var c=this.Be,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:!0===b?4:0;"string"===typeof a?c.input=Ala(a):"[object ArrayBuffer]"===Xla.call(a)?c.input=new Uint8Array(a):c.input=a;c.Fw=0;c.uj=c.input.length;do{0===c.Qe&&(c.output=new Uv.Kx(d),c.zA=0,c.Qe=d);a=Qla(c,e);if(1!==a&&0!==a)return this.lr(a),this.ended=!0,!1;if(0===c.Qe||0===c.uj&&(4===e||2===e))if("string"===this.options.to){var f=Uv.bS(c.output,c.zA);b=f;f=f.length;if(65537>f&&(b.subarray&&
eib||!b.subarray))b=String.fromCharCode.apply(null,Uv.bS(b,f));else{for(var h="",l=0;l<f;l++)h+=String.fromCharCode(b[l]);b=h}this.chunks.push(b)}else b=Uv.bS(c.output,c.zA),this.chunks.push(b)}while((0<c.uj||0===c.Qe)&&1!==a);if(4===e)return(c=this.Be)&&c.state?(d=c.state.status,42!==d&&69!==d&&73!==d&&91!==d&&103!==d&&113!==d&&666!==d?a=kw(c,-2):(c.state=null,a=113===d?kw(c,-3):0)):a=-2,this.lr(a),this.ended=!0,0===a;2===e&&(this.lr(0),c.Qe=0);return!0};
Aw.prototype.lr=function(a){0===a&&(this.result="string"===this.options.to?this.chunks.join(""):Uv.GW(this.chunks));this.chunks=[];this.err=a;this.msg=this.Be.msg};var Cw="@@redux/INIT"+Bw(),cma="@@redux/REPLACE"+Bw();var dma="function"===typeof Symbol&&Symbol.observable||"@@observable";var hib=[0,lhb,-3,w2];g.w(Fw,T);Fw.prototype.getType=function(){return tk(this,11)};
Fw.yb=[2,13,14];var k6a=function(){var a=[0,nhb,mhb,t2,lhb,t2,-1,w2,lhb,w2,-1,nhb,w2,mhb,u2,hib,t2,-1,w2];return function(b,c){a:{if(r2.length){var d=r2.pop();Dda(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new Ah(b,c);try{var e=new Fw,f=e.ea;Ik(a)(f,b);var h=e;break a}finally{b.free()}h=void 0}return h}}();var lxa=new g.Gw("adInfoDialogEndpoint");var vza=new g.Gw("adPingingEndpoint");var xK=new g.Gw("adActionInterstitialRenderer");var iib=new g.Gw("adDurationRemainingRenderer");var HM=new g.Gw("adHoverTextButtonRenderer");var jxa=new g.Gw("adInfoDialogRenderer");var ZM=new g.Gw("adMessageRenderer");var IM=new g.Gw("adPreviewRenderer");var CEa=new g.Gw("dismissablePanelTextPortraitImageRenderer");var jib=new g.Gw("flyoutCtaRenderer");var wK=new g.Gw("instreamAdPlayerOverlayRenderer");var kib=new g.Gw("instreamAdPlayerUnderlayRenderer");var Ofb=new g.Gw("instreamSurveyAdBackgroundImageRenderer");var KEa=new g.Gw("instreamSurveyAdPlayerOverlayRenderer");var AM=new g.Gw("instreamSurveyAdRenderer"),GM=new g.Gw("instreamSurveyAdSingleSelectQuestionRenderer"),FM=new g.Gw("instreamSurveyAdMultiSelectQuestionRenderer"),G2=new g.Gw("instreamSurveyAdAnswerRenderer"),lib=new g.Gw("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var yM=new g.Gw("instreamVideoAdRenderer");var mib=new g.Gw("textOverlayAdContentRenderer"),nib=new g.Gw("enhancedTextOverlayAdContentRenderer"),oib=new g.Gw("imageOverlayAdContentRenderer");var iCa=new g.Gw("playerOverlayLayoutRenderer");var FEa=new g.Gw("inPlayerAdLayoutRenderer");var zEa=new g.Gw("playerBytesAdLayoutRenderer");var EM=new g.Gw("playerUnderlayAdLayoutRenderer");var zM=new g.Gw("adIntroRenderer");var xEa=new g.Gw("playerBytesSequentialLayoutRenderer");var RFa=new g.Gw("slidingTextPlayerOverlayRenderer");var BM=new g.Gw("surveyTextInterstitialRenderer");var pib=new g.Gw("simpleAdBadgeRenderer");var QL=new g.Gw("skipAdRenderer"),qib=new g.Gw("skipButtonRenderer");var MM=new g.Gw("adSlotRenderer");var DM=new g.Gw("squeezebackPlayerSidePanelRenderer");var rib=new g.Gw("timedPieCountdownRenderer");var sib=new g.Gw("adAvatarViewModel");var tib=new g.Gw("adButtonViewModel");var uib=new g.Gw("adPreviewViewModel");var vib=new g.Gw("playerAdAvatarLockupCardButtonedViewModel");var wib=new g.Gw("skipAdButtonViewModel");var xib=new g.Gw("skipAdViewModel");var yib=new g.Gw("visitAdvertiserLinkViewModel");g.w(Hw,T);g.w(Iw,T);g.w(Jw,T);g.w(Kw,T);g.w(Lw,T);Lw.prototype.clearVideo=function(){return Aj(this,1)};
var UO=[1,2,3,4];var rIa={Xja:0,Vja:1,Wja:2};var sIa={bka:0,aka:1,Zja:2,Yja:3};var wIa={poa:0,ooa:1,noa:2};var SO={nra:0,ora:1,lra:2,kra:3,ira:4,mra:5,jra:6,hra:7};var vIa={fsa:0,esa:1,Zra:2,Vra:3,dsa:4,gsa:5,Yra:6,Ura:7,Xra:8,csa:9,bsa:10,hsa:11,Wra:12,isa:13};var jJa={ysa:0,ksa:1,nsa:2,zsa:3,lsa:4,msa:5,usa:6,wsa:7,rsa:8,jsa:9,tsa:10,xsa:11,ssa:12,qsa:13,vsa:14};var uIa={Fwa:0,Dwa:1,Ewa:2};var iJa={S3a:0,R3a:1,Q3a:2,P3a:3};var hJa={Z3a:0,T3a:1,U3a:5,V3a:6,X3a:2,Y3a:3,W3a:4};var gJa={c4a:0,d4a:1,b4a:2,a4a:3};var fJa={h4a:0,f4a:1,g4a:2};var eJa={Hib:0,wib:1,Dib:2,xib:3,Eib:4,Aib:5,Fib:6,Bib:7,zib:8,yib:9,Cib:10,Gib:11,vib:12};g.w(Mw,T);Mw.prototype.getType=function(){return tk(this,1)};g.w(Nw,T);g.w(Ow,T);g.w(Pw,T);g.w(Qw,T);g.w(Rw,T);g.w(Sw,T);Sw.prototype.j=function(a,b){return Lj(this,2,ri,a,b)};
Sw.yb=[2];g.w(Tw,T);Tw.prototype.j=function(a,b){return Lj(this,3,ri,a,b)};
Tw.yb=[3];g.w(Uw,T);g.w(Vw,T);g.w(Ww,T);g.w(Xw,T);g.w(Yw,T);g.w(Zw,T);g.w($w,T);g.w(ax,T);g.w(bx,T);g.w(cx,T);var QO=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17];var EIa={Mla:0,Oka:2,Ola:3,Pka:4,Nka:5,Dla:6,Fla:58,dla:17,Eka:18,Ila:15,Kla:7,kla:8,lka:10,mka:26,Hka:45,Lka:11,Zka:14,Qla:16,hka:19,nka:20,ika:21,Rla:22,oka:23,Mka:25,cka:27,dka:53,ila:28,Gka:30,ula:31,Bka:32,pka:33,mla:34,fla:35,Wka:36,jka:37,Bla:39,Ska:41,Xka:42,Uka:43,Tka:44,kka:40,wla:46,xla:50,Vka:51,Yka:52,Pla:54,ska:57,uka:91,vka:93,tka:92,Cla:60,Cka:67,fka:64,Ika:65,xka:68,gka:69,lla:70,Rka:71,Qka:72,Aka:73,zka:75,Nla:76,tla:77,gla:78,Ela:79,Ala:80,Dka:81,Jka:82,yka:83,Kka:84,Gla:85,zla:89,
hla:86,qla:87,rla:88,ola:90,nla:100,rka:94,qka:95,sla:96,jla:97,Fka:98,Jla:99,Lla:101,Hla:102,wka:103,ela:104,yla:105};var CIa={ama:0,Sla:1,Zla:2,Ula:3,Tla:4,Yla:5,Xla:6,Wla:7,Vla:8,bma:9};var BIa={jma:0,dma:1,cma:2,gma:3,kma:4,ema:5,fma:6,hma:7};var DIa={vma:0,qma:1,pma:2,tma:3,mma:4,lma:5,rma:6,nma:7,wma:8,uma:9,oma:10};var AIa={Jma:0,Ima:1,Hma:2};var FIa={hOa:0,aOa:1,dOa:2,DNa:3,fOa:4,qNa:5,WNa:6,GNa:7,gOa:8,zNa:9,TNa:10,ANa:11,YNa:12,bNa:13,KNa:14,INa:15,JNa:16,XNa:17,MNa:18,VNa:19,UNa:20,QNa:21,vNa:22,cNa:23,HNa:24,ONa:25,xNa:26,wNa:27,NNa:28,dNa:29,RNa:30,CNa:31,eOa:32,pNa:33,PNa:34,oNa:35,rNa:36,sNa:37,yNa:38,uNa:39,tNa:40,SNa:41,LNa:42,ZNa:43,ENa:44,bOa:45,cOa:46,FNa:47,BNa:70,lNa:48,iNa:49,nNa:50,mNa:51,kNa:52,hNa:53,eNa:54,jNa:55,gNa:56,fNa:57,ZMa:58,YMa:59,XMa:60,RMa:61,WMa:62,SMa:63,TMa:64,QMa:65,UMa:66,aNa:67,VMa:68,PMa:69};var qIa={Yqa:0,Tqa:1,Sqa:18,Iqa:2,Bqa:3,Hqa:9,Cqa:10,Fqa:14,Dqa:4,Aqa:5,Eqa:6,ara:11,Gqa:12,xqa:13,wqa:15,Lqa:16,Uqa:17,Vqa:19,dra:20,Rqa:21,Oqa:22,Qqa:23,zqa:24,Wqa:25,yqa:26,Zqa:27,Nqa:28,Pqa:29,Kqa:30,Xqa:31,cra:32,Mqa:33,Jqa:7};var GIa={Fma:0,Gma:1,Ama:2,Bma:3,Cma:4,xma:5,zma:6,Dma:7,Ema:8,yma:9};var RO={hna:0,Tma:1,gna:3,ena:4,dna:5,Uma:25,ina:6,Rma:7,Lma:8,Wma:9,Kma:12,Vma:22,Yma:23,Zma:26,ana:27,bna:28,fna:24,cna:13,jna:14,Xma:15,Mma:16,Pma:17,Nma:18,Oma:19,Qma:20,Sma:21};g.w(dx,T);g.w(ex,T);ex.prototype.j=function(a,b){return Vj(this,1,dx,a,b)};
ex.yb=[1];g.w(fx,T);fx.prototype.j=function(a,b){return Lj(this,2,ri,a,b)};
fx.prototype.getMetrics=function(a){return Fea(this,2,a)};
fx.yb=[2];g.w(gx,T);var HIa=[1,2];g.wT=new g.Gw("browseEndpoint");var zib=new g.Gw("confirmDialogEndpoint");var Mua=new g.Gw("rawColdConfigGroup");var Lua=new g.Gw("rawHotConfigGroup");var mJa={O0a:0,N0a:1,J0a:2,H0a:3,K0a:4,I0a:5,M0a:6,L0a:7};g.NG=new g.Gw("commandExecutorCommand");g.w(hx,T);g.w(ix,T);g.w(jx,T);g.w(kx,T);var KIa=[1,2,3];g.w(lx,T);g.w(mx,T);mx.prototype.B=function(a,b){return Lj(this,1,Xi,a,b)};
mx.prototype.j=function(a,b){return Lj(this,2,Xi,a,b)};
mx.prototype.Kf=function(){return Xj(this,3)};
mx.yb=[1,2];g.w(nx,T);g.w(ox,T);ox.prototype.j=function(a,b){return Lj(this,1,ri,a,b)};
ox.prototype.getMetrics=function(a){return Fea(this,1,a)};
ox.yb=[1];g.w(px,T);g.w(qx,T);g.w(rx,T);g.w(sx,T);g.w(tx,T);g.w(ux,T);g.w(vx,T);g.w(wx,T);g.w(xx,T);g.w(yx,T);var UIa=[1,2],XIa=[3,4,5];g.w(zx,T);zx.prototype.getName=function(){return Xj(this,2)};g.w(Ax,T);g.w(Bx,T);g.w(Cx,T);Cx.prototype.getId=function(){return Xj(this,1)};g.w(Dx,T);Dx.prototype.getType=function(){return si(yj(this,1))};g.w(Ex,T);Ex.prototype.getType=function(){return si(yj(this,1))};g.w(Fx,T);Fx.prototype.getType=function(){return si(yj(this,1))};g.w(Gx,T);var XO=[1,2,3,4];g.w(Hx,T);g.w(Ix,T);g.w(Jx,T);var WO=[1,2,3,4];g.w(Kx,T);g.w(Lx,T);Lx.prototype.j=function(a,b){return Vj(this,2,Jx,a,b)};
Lx.yb=[2];var VO=[3,4,5,6,7];g.w(Mx,T);g.w(Nx,T);var xJa=[1,2];g.w(Ox,T);Ox.prototype.getId=function(){return g.Rj(this,Mx,2)};g.w(ey,T);ey.prototype.j=function(a,b){return Vj(this,2,Ox,a,b)};
ey.yb=[2];g.w(fy,T);fy.prototype.j=function(a,b){return Vj(this,1,Ox,a,b)};
fy.prototype.B=function(a,b){return Vj(this,2,ey,a,b)};
fy.yb=[1,2];g.w(gy,T);var MIa=[1,2,3];g.w(hy,T);g.w(iy,T);iy.prototype.j=function(a,b){return Lj(this,2,ri,a,b)};
iy.yb=[2];g.w(jy,T);g.w(ky,T);g.w(ly,T);g.w(my,T);g.w(ny,T);g.w(oy,T);oy.prototype.j=function(a,b){return Lj(this,1,ri,a,b)};
oy.yb=[1];g.w(py,T);g.w(qy,T);g.w(ry,T);var lJa=[1,2,3];g.w(sy,T);sy.prototype.j=function(a,b){return Vj(this,1,ry,a,b)};
sy.yb=[1];g.w(ty,T);g.w(uy,T);g.w(vy,T);g.w(wy,T);wy.prototype.j=function(a,b){return Vj(this,1,vy,a,b)};
wy.yb=[1];g.w(yy,T);g.w(zy,T);g.w(Ay,T);Ay.prototype.j=function(a,b){return Vj(this,1,zy,a,b)};
Ay.yb=[1];g.w(By,T);By.prototype.j=function(a,b){return Vj(this,1,zy,a,b)};
By.yb=[1];g.w(Cy,T);g.w(Dy,T);var PJa={vhb:0,njb:1,Jjb:32,Sjb:61,gkb:67,Ujb:86,Hjb:42,Kjb:60,ujb:62,Qjb:73,Ojb:76,Wjb:88,Xjb:90,mkb:99,Ejb:98,Yjb:100,skb:41,tkb:69,ukb:70,vkb:71,PUa:2,kVa:27,ANDROID:3,pna:54,qna:14,yna:91,rna:55,sna:24,tna:20,una:18,wna:21,Ana:30,Dna:29,Ena:28,Fna:34,zna:36,vna:38,IOS:5,vIa:15,FIa:92,wIa:40,yIa:25,zIa:17,AIa:19,BIa:64,CIa:66,DIa:26,HIa:22,SIa:33,TIa:68,UIa:35,EIa:53,GIa:37,xIa:39,zfb:7,Agb:57,Pgb:43,ahb:59,Qgb:93,Cna:74,ihb:75,jhb:85,khb:65,mhb:80,nhb:8,xfb:10,phb:58,ohb:63,lhb:72,Bna:23,Vkb:11,
Wkb:13,Msa:12,yfb:16,Fjb:56,Tjb:31,MUa:77,HFa:84,Njb:87,JFa:89,IFa:94,QRa:95};var Aib={b5:0,CLASSIC:1,K4:2,o2:3,T1:4,Q4:5,l2:6,ZU:7};g.w(Ey,T);Ey.prototype.Y6=function(){return g.sk(this,3)};
Ey.prototype.h7=function(){return g.sk(this,5)};
Ey.prototype.Dr=function(a){return Q(this,5,a)};g.w(Fy,T);g.w(Gy,T);g.w(Hy,T);g.w(Iy,T);g.w(Jy,T);Jy.yb=[2];g.w(g.Ky,T);g.Ky.prototype.Rs=da(0);g.Ky.prototype.getPlayerType=function(){return tk(this,36)};
g.Ky.prototype.setHomeGroupInfo=function(a){return Sj(this,Jy,81,a)};
g.Ky.prototype.clearLocationPlayabilityToken=function(){return Aj(this,89)};
g.Ky.yb=[9,66,32,86,100,101];g.w(Ly,T);Ly.prototype.getValue=function(){return g.sk(this,Pj(this,Fua,2))};
var Fua=[2,3,4,5,6];g.w(My,T);My.yb=[15,26,28];g.w(Ny,T);Ny.yb=[5];g.w(Oy,T);Oy.prototype.setToken=function(a){return Q(this,2,a)};g.w(Py,T);Py.prototype.setSafetyMode=function(a){return S(this,5,a)};
Py.yb=[12];g.w(Qy,T);Qy.prototype.qx=function(a){return Sj(this,g.Ky,1,a)};
Qy.yb=[12];var KM=new g.Gw("thumbnailLandscapePortraitRenderer");var uJa={M9a:0,H9a:1,K9a:2,L9a:3,I9a:4,J9a:5};var sJa={s$a:0,r$a:1,N9a:2,O9a:3,P9a:4,Q9a:5,R9a:6,S9a:7,T9a:8,V9a:9,W9a:10,X9a:11,Y9a:12,Z9a:13,a$a:14,b$a:15,d$a:16,e$a:17,h$a:18,i$a:19,j$a:20,m$a:21,k$a:22,l$a:23,n$a:24,o$a:25,p$a:26,q$a:27,g$a:28,U9a:29,c$a:30,f$a:31};var rJa={C$a:0,t$a:1,u$a:2,v$a:3,w$a:4,x$a:5,y$a:6,z$a:7,A$a:8,B$a:9,D$a:10};var tJa={H$a:0,F$a:1,G$a:2,E$a:3};var VIa={Nra:0,sra:1,Ora:2,Hra:3,pra:4,qra:5,Era:6,rra:7,Cra:8,Dra:13,wra:9,yra:10,Bra:11,Pra:12,ura:14,Ara:15,xra:16,Jra:17,Gra:18,Mra:19,Kra:20,vra:21,Lra:22,tra:23,zra:24,Ira:25,Fra:26};var WIa={Tra:0,Sra:1,Rra:2,Qra:3};var nJa={bcb:0,Zbb:1,acb:2};var OIa={woa:0,uoa:4,toa:2,roa:5,soa:8,voa:9,qoa:3,xoa:6,yoa:7};var PIa={Gta:0,Dta:1,Eta:2,Hta:3,Ita:4,Fta:5};var NIa={jua:0,hua:8,fua:2,cua:5,eua:9,gua:3,aua:4,kua:6,nua:7,iua:10};var $Ia={hja:0,fja:1,gja:2,jja:3,kja:4,ija:5};var wJa={Y1a:0,R1a:1,T1a:2,X1a:3,V1a:4,U1a:6,S1a:7,W1a:5};var Bib={sib:0,rib:1,mib:2,qib:3,oib:4,pib:5,nib:6};var kJa={Mib:0,Lib:1,Nib:2};var aJa={kib:0,bib:1,cib:2,dib:3,eib:4,fib:5,gib:6,hib:7,iib:8,jib:9};var Cib={Pib:0,Oib:1};var bJa={x9a:0,k9a:1,w9a:2,l9a:3,m9a:4,q9a:5,p9a:6,o9a:7,y9a:8,i9a:9,j9a:10,v9a:11,u9a:12,t9a:13,n9a:14,s9a:15,r9a:16};var IKa={Nda:0,Lda:1,Kda:2,Mda:3};g.Dib=new g.Gw("changeEngagementPanelVisibilityAction");var Vxa=new g.Gw("continuationCommand");g.Eib=new g.Gw("openPopupAction");g.H2=new g.Gw("webCommandMetadata");var XSa=new g.Gw("metadataBadgeRenderer");var Uxa=new g.Gw("signalServiceEndpoint");var LLa={yja:0,zja:1,uja:2,xja:3,vja:4,wja:5};var MLa={Gja:0,Dja:1,Aja:2,Fja:3,Hja:4,Cja:5,Bja:6,Eja:7};g.w(Ry,T);Ry.prototype.getType=function(){return tk(this,1)};var cP={BJa:0,CJa:1,AJa:2,wJa:3,yJa:4,zJa:5,DJa:6,xJa:7};var Fib={KUa:0,CUa:1,DUa:2,JUa:11,IUa:3,HUa:6,GUa:7,EUa:8,FUa:9,BUa:10};var Gib={QVa:0,NVa:1,PVa:2,OVa:3,MVa:4};var Hib={t_a:0,e_a:1,u_a:2,s_a:3,r_a:4,q_a:5,p_a:6,h_a:7,f_a:8,l_a:9,y_a:10,g_a:11,n_a:12,w_a:13,x_a:14,o_a:15,k_a:16,j_a:17,m_a:18,i_a:19,v_a:20};var JIa={C_a:0,B_a:86};var dP={q2a:0,p2a:1,i2a:2,f2a:3,h2a:4,r2a:5,o2a:6,d2a:7,s2a:8,b2a:9,m2a:10,t2a:11,n2a:12,e2a:13,a2a:14,g2a:15,k2a:16,j2a:17,l2a:18,c2a:19};var Iib={e9a:0,Z8a:1,g9a:2,a9a:3,f9a:4,c9a:5,d9a:6,b9a:7};var xF=new g.Gw("innertubeCommand");var cgb=new g.Gw("loggingDirectives");var Jib={Z1:0,W1:1,Y1:2,X1:3};var Mpa={Z1:"EMBEDDED_PLAYER_MODE_UNKNOWN",W1:"EMBEDDED_PLAYER_MODE_DEFAULT",Y1:"EMBEDDED_PLAYER_MODE_PFP",X1:"EMBEDDED_PLAYER_MODE_PFL"};var wTa=new g.Gw("channelThumbnailEndpoint");var vTa=new g.Gw("embeddedPlayerErrorMessageRenderer");var rTa=new g.Gw("embeddedPlayerOverlayVideoDetailsRenderer"),xTa=new g.Gw("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),yTa=new g.Gw("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var USa=new g.Gw("embedsInfoPanelRenderer");var YIa={uQa:0,iQa:14,sQa:15,tQa:16,jQa:17,nQa:18,pQa:19,lQa:20,mQa:21,rQa:22,oQa:23,qQa:24,kQa:25};var Kib=new g.Gw("feedbackEndpoint");var Lib=new g.Gw("callToActionButtonViewModel");g.w(Sy,T);g.w(Ty,T);g.w(Uy,T);var XKa=[1,2];var Mib={LJa:0,MJa:1,KJa:2,FJa:3,EJa:4,GJa:5,IJa:6,HJa:7,JJa:8};var Nib={gKa:0,UJa:1,fKa:2,eKa:3,PJa:4,RJa:5,SJa:6,QJa:7,YJa:8,VJa:9,WJa:10,XJa:16,NJa:11,hKa:12,OJa:13,cKa:14,TJa:15,dKa:17,ZJa:18,aKa:19,bKa:20};var Oib={lKa:0,iKa:1,kKa:2,jKa:3};var Pib={VGa:0,CGa:1,WGa:8,NGa:16,OGa:17,RGa:2,PGa:3,QGa:4,FGa:5,DGa:6,EGa:7,UGa:9,SGa:10,TGa:11,MGa:12,JGa:13,LGa:14,KGa:15,IGa:18,GGa:19,HGa:20,BGa:21};var Qib={VZa:0,WZa:1,UZa:2};var Rib={c_a:0,YZa:1,a_a:2,XZa:3,ZZa:4,b_a:5};var Sib={AKa:0,rKa:1,sKa:2,tKa:3,yKa:4,vKa:5,wKa:6,uKa:7,xKa:8,qKa:9,zKa:10};var Tib={YOa:0,UOa:1,HOa:2,TOa:3,COa:4,ROa:5,QOa:6,POa:7,bPa:8,JOa:9,DOa:10,KOa:11,LOa:12,EOa:13,OOa:14,aPa:15,NOa:16,MOa:17,FOa:18,GOa:19,IOa:20,VOa:21,WOa:22,XOa:23,ZOa:24,SOa:25};var Uib={xPa:0,tPa:9,nPa:8,zPa:1,EPa:2,CPa:3,DPa:13,uPa:4,pPa:21,qPa:20,rPa:5,jPa:6,iPa:7,lPa:14,kPa:15,GPa:17,HPa:10,sPa:16,mPa:18,wPa:19,gPa:11,hPa:12,APa:22,BPa:23,fPa:24,yPa:25,ePa:26,FPa:27,oPa:28,vPa:29};var Vib={Xpa:0,Vpa:1,Wpa:2};var Wib={tOa:0,lOa:1,oOa:2,rOa:3,mOa:4,jOa:5,pOa:6,qOa:7,iOa:8,sOa:9,nOa:10,kOa:11};var Xib={aqa:0,Ypa:1,bqa:2,Zpa:3};var Yib=new g.Gw("interactionLoggingCommandMetadata");var jsa={Cjb:"WEB_DISPLAY_MODE_UNKNOWN",yjb:"WEB_DISPLAY_MODE_BROWSER",Ajb:"WEB_DISPLAY_MODE_MINIMAL_UI",Bjb:"WEB_DISPLAY_MODE_STANDALONE",zjb:"WEB_DISPLAY_MODE_FULLSCREEN"};g.w(Vy,T);g.w(Wy,T);g.w(Xy,T);Xy.prototype.j=function(a,b){return Vj(this,1,Wy,a,b)};
Xy.yb=[1];var iMa={Cea:0,cea:1,nea:2,sea:3,yea:4,zea:5,Dea:6,tea:7,bea:8,jea:9,iea:10,Oda:11,mea:12,Xda:14,fea:15,rea:16,qea:17,pea:43,lea:18,dea:29,gea:19,Uda:20,Yda:21,Bea:22,Pda:23,Fea:24,hea:25,Vda:26,vea:27,Wda:28,wea:30,xea:31,oea:32,Aea:33,Qda:34,uea:35,Gea:36,Sda:37,Tda:38,Eea:39,Zda:40,aea:41,Rda:42,eea:44};var Zib={vta:0,uta:1,tta:2};g.w(ima,T);g.w(jma,T);var $ib={fha:0,Zga:114,Tfa:1,Tga:4,Uga:14,Gfa:15,Vga:17,sfa:6,vfa:7,xfa:8,wfa:9,Efa:5,nga:16,iga:101,Sga:20,Rga:26,Iga:28,Kfa:104,efa:105,gha:50,Qga:88,Lga:89,Nga:90,Mga:91,Lfa:2,Yfa:92,Zfa:19,ifa:25,bha:107,ufa:29,Ofa:93,Qfa:94,Pfa:95,dha:30,jga:31,Xfa:116,Vfa:3,Rfa:82,Nfa:83,Mfa:84,Ufa:85,Kga:11,hha:27,oga:10,Yga:115,bfa:12,dfa:13,cfa:49,afa:106,qfa:18,hga:21,Bfa:22,Zea:23,Pga:24,Pea:32,fga:33,Tea:34,pha:35,nfa:36,yga:37,Ifa:38,aha:39,Wga:40,Xga:41,jha:42,rfa:43,eha:44,Hfa:45,Afa:46,pga:47,kga:48,
Sfa:51,Ffa:52,tfa:53,Jga:54,Jfa:55,gfa:56,mfa:57,ofa:99,ffa:58,vga:59,Cfa:60,wga:61,qga:62,cga:63,oha:64,lha:65,iha:66,nha:67,mha:68,Oea:69,tga:70,zga:71,Aga:72,Dga:73,Ega:74,Bga:75,Cga:117,kfa:76,lfa:77,Wea:78,pfa:79,Wfa:80,Dfa:81,jfa:86,Yea:87,Rea:97,Qea:103,aga:98,xga:100,Uea:102,Hga:108,Gga:109,Sea:110,Xea:111,dga:112,Fga:113,yfa:118,cha:119,gga:120,ega:121,zfa:122,Oga:123,Vea:124,rga:125,lga:126};var ajb={Eha:0,yha:1,Aha:2,Cha:3,wha:4,rha:5,tha:6,vha:7,Bha:8,sha:9,uha:10,zha:13,Dha:14,qha:11,xha:12};var bjb={Bia:0,Hha:1,Iha:2,Kha:3,Rha:4,via:42,mia:9,wia:10,Pha:11,tia:12,sia:13,Zha:43,lia:14,aia:15,zia:47,cia:46,hia:16,gia:17,Lha:18,qia:19,Oha:20,ria:21,Aia:22,xia:23,yia:24,Nha:25,Jha:26,uia:27,eia:28,jia:38,kia:39,iia:49,pia:5,bia:6,Qha:7,Vha:8,fia:29,oia:30,dia:31,Fha:32,Wha:33,Uha:34,Sha:35,Dia:36,Yha:37,Cia:40,Xha:41,Gha:44,Tha:45,Mha:48};var vLa={Hia:0,Gia:1,Eia:2,Fia:3};var tLa={Pta:0,Mta:1,Lta:2,Ota:3,Nta:4};var cjb={wua:0,uua:1,rua:2,vua:3,sua:4,tua:5};var djb={zua:0,xua:1,yua:2};var ejb={Gua:0,Fua:1,Dua:2,Eua:3,Cua:4};var fjb={Jua:0,Hua:1,Iua:2,Kua:3};var gjb={Qua:0,Lua:1,Pua:2,Oua:3,Nua:4,Mua:5};var hjb={Wua:0,Vua:1,Rua:2};var ijb={Uua:0,Sua:1,Tua:2};var jjb={Zua:0,Xua:1,Yua:2};var kjb={ova:0,jva:1,iva:2,dva:3,hva:4,bva:5,cva:6,kva:7,eva:8,mva:9,gva:10,ava:11,fva:12,nva:13};var ljb={tva:0,rva:1,sva:2,qva:3,pva:4};var sLa={gMa:0,CLa:1,DLa:2,OKa:3,tLa:4,ELa:5,uLa:6,PKa:7,FLa:8,HKa:9,IKa:10,XKa:11,NKa:12,QKa:13,wLa:14,VKa:15,GKa:16,VLa:17,rLa:18,RKa:19,zLa:20,xLa:21,yLa:22,FKa:23,eMa:25,ULa:26,LMa:61,jLa:35,bLa:36,ZKa:37,fLa:38,eLa:93,hLa:39,gLa:40,nLa:41,bMa:97,cMa:106,dMa:102,kLa:42,iLa:43,oLa:44,pLa:45,KKa:24,LKa:27,MKa:28,DMa:29,GMa:75,EMa:104,FMa:30,xMa:98,AMa:108,yMa:105,zMa:89,HMa:31,IMa:86,BMa:32,CMa:91,lMa:51,nMa:52,wMa:62,pMa:70,tMa:63,rMa:64,mMa:65,vMa:66,oMa:71,sMa:67,qMa:68,uMa:69,KMa:33,lLa:46,
mLa:47,WLa:49,XLa:50,YLa:94,OLa:77,HLa:78,GLa:79,ILa:80,vLa:53,hMa:54,jMa:55,iMa:56,QLa:112,PLa:57,RLa:101,TLa:110,SLa:96,kMa:58,ALa:59,BLa:60,JLa:72,KLa:107,NLa:84,LLa:92,TKa:73,ZLa:74,JKa:76,fMa:81,aLa:82,aMa:83,cLa:85,dLa:95,JMa:87,sLa:88,WKa:90,MLa:99,YKa:100,SKa:103,UKa:109,qLa:111};var wLa={R1:0,Rsa:1,EKa:2,Bta:3,T4:4,U4:5,C3a:6,s4a:7,i0a:8,g5:9,Ssa:10,Kia:11,Nia:12,djb:13,bja:14,dja:15,Via:16,Wia:17,Oia:18,Epa:19,Gxa:20,AHa:21,qIa:22,i5:23,Mbb:24,Jia:25,qTa:26,pTa:47,X4:27,Dpa:28,B3a:29,xDa:30,zHa:31,sta:32,Vhb:33,Ohb:34,Lhb:35,Thb:36,Uhb:37,Qhb:38,Rhb:39,Shb:40,Nhb:41,Mhb:42,Upa:43,L4:44,Uoa:45,H1:46,Lea:48,m2:49,Gbb:50,Cwa:51,JPa:52,Dlb:53};var mjb={aZa:0,PYa:1,UYa:2,SYa:3,TYa:4,OYa:5,YYa:6,ZYa:7,NYa:8,WYa:9,QYa:10,RYa:11,VYa:12,XYa:13};var njb={fZa:0,gZa:1,bZa:2,cZa:3,eZa:4,dZa:5};var rLa={HZa:0,CZa:1,xZa:2,yZa:3,zZa:21,sZa:4,mZa:5,pZa:6,oZa:7,rZa:8,nZa:24,GZa:9,lZa:10,FZa:11,EZa:12,wZa:22,BZa:13,AZa:20,tZa:14,vZa:15,uZa:16,kZa:17,jZa:19,qZa:18,iZa:23,DZa:25};var yLa={E8a:0,y8a:1,z8a:14,B8a:15,D8a:20,C8a:21,m8a:2,u8a:3,r8a:4,s8a:5,j8a:6,v8a:7,q8a:8,n8a:9,l8a:10,x8a:11,t8a:12,w8a:13,k8a:16,A8a:17,p8a:18,o8a:19};var ojb={Q8a:0,P8a:1,I8a:2,J8a:3,N8a:4,M8a:5,O8a:6,K8a:7,L8a:8};var zLa={Vdb:0,Sdb:1,Udb:2,Tdb:3,Mdb:4,Qdb:5,Pdb:6,Odb:8,Ndb:9,Rdb:7};var bP={vfb:0,Wdb:1,Geb:2,pfb:3,kfb:4,ieb:5,Reb:6,veb:7,Yeb:8,Oeb:9,ifb:10,mfb:11,afb:12,jeb:13,Peb:14,teb:15,geb:16,Meb:17,Zeb:18,lfb:19,qeb:20,zeb:21,tfb:22,sfb:57,yeb:23,peb:24,heb:25,ufb:26,Keb:27,nfb:28,ofb:29,Teb:30,rfb:31,seb:32,bfb:33,Deb:34,Feb:35,Neb:36,Leb:37,dfb:38,Qeb:39,wfb:40,Aeb:41,Beb:42,Ceb:43,eeb:44,beb:45,Zdb:46,Xdb:58,Ydb:59,gfb:47,hfb:48,Ueb:67,Veb:68,ueb:49,cfb:50,ffb:51,efb:52,Ieb:53,neb:54,qfb:55,Eeb:56,Web:60,Heb:61,xeb:62,jfb:63,reb:64,Jeb:69,keb:65,feb:66,meb:70,leb:71,
Seb:74,oeb:72,Xeb:73};g.w(kma,T);g.w(lma,T);g.w(Yy,T);Yy.prototype.Rk=function(){return g.sk(this,1)};g.w(mma,T);g.w(nma,T);g.w(oma,T);var BLa=[1,2];g.w(Zy,T);Zy.prototype.getType=function(){return tk(this,1)};
var ALa=[3,4];g.w($y,T);g.k=$y.prototype;g.k.Bz=function(){return g.sk(this,1)};
g.k.z5=function(a,b){return Vj(this,2,Zy,a,b)};
g.k.A5=function(a,b){return Vj(this,3,Zy,a,b)};
g.k.y5=function(a,b){return Vj(this,4,Zy,a,b)};
g.k.C5=function(a,b){return Vj(this,5,Zy,a,b)};
g.k.B5=function(a,b){return Vj(this,6,Zy,a,b)};
$y.yb=[2,3,4,5,6];g.w(az,T);az.prototype.getType=function(){return tk(this,2)};
az.prototype.j=function(a,b){return Lj(this,5,ri,a,b)};
az.yb=[5];g.w(bz,T);bz.prototype.B=function(a,b){return Lj(this,2,ri,a,b)};
bz.prototype.j=function(a,b){return Vj(this,4,Zy,a,b)};
bz.prototype.D=function(a,b){return Vj(this,5,Zy,a,b)};
bz.prototype.C=function(a,b){return Vj(this,6,Zy,a,b)};
bz.yb=[2,4,5,6];g.w(cz,T);cz.prototype.getType=function(){return tk(this,2)};g.w(dz,T);dz.prototype.j=function(a,b){return Vj(this,1,cz,a,b)};
dz.yb=[1];g.w(pma,T);g.w(ez,T);ez.prototype.j=function(a,b){return Lj(this,1,ri,a,b)};
ez.yb=[1];g.w(fz,T);fz.prototype.j=function(a,b){return Lj(this,1,ri,a,b)};
fz.prototype.B=function(a,b){return Lj(this,2,ri,a,b)};
fz.yb=[1,2];g.w(gz,T);gz.prototype.j=function(a,b){return Vj(this,2,ez,a,b)};
gz.yb=[2];g.w(hz,T);g.w(qma,T);g.w(iz,T);iz.prototype.Rk=function(){return g.sk(this,1)};
iz.prototype.j=function(a,b){return Vj(this,3,qma,a,b)};
iz.yb=[3];g.w(jz,T);jz.prototype.gh=function(){return tk(this,1)};g.w(kz,T);kz.prototype.Af=function(){return tk(this,2)};g.w(rma,T);g.w(sma,T);g.w(lz,T);lz.prototype.getType=function(){return tk(this,1)};
lz.prototype.Rk=function(){return g.sk(this,8)};g.w(mz,T);mz.prototype.Rk=function(){return g.sk(this,1)};g.w(nz,T);nz.prototype.Rk=function(){return g.sk(this,1)};g.w(oz,T);oz.prototype.Rk=function(){return g.sk(this,1)};g.w(pz,T);pz.prototype.Rk=function(){return g.sk(this,2)};
pz.prototype.RH=function(){return g.sk(this,4)};g.w(qz,T);qz.prototype.Rk=function(){return g.sk(this,1)};g.w(rz,T);rz.prototype.Rk=function(){return g.sk(this,1)};g.w(sz,T);g.w(tma,T);g.w(uma,T);g.w(tz,T);tz.prototype.Rk=function(){return g.sk(this,2)};g.w(vma,T);g.w(wma,T);g.w(xma,T);var I2=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];g.w(uz,T);g.w(yma,T);g.w(zma,T);g.w(Ama,T);g.w(vz,T);vz.prototype.getState=function(){return tk(this,1)};
vz.prototype.Hc=function(a){return S(this,1,a)};g.w(Bma,T);g.w(wz,T);wz.prototype.j=function(a,b){return Vj(this,1,Bma,a,b)};
wz.yb=[1];g.w(xz,T);xz.prototype.j=function(a,b){return Vj(this,2,wz,a,b)};
xz.prototype.B=function(a,b){return Vj(this,3,Ama,a,b)};
xz.yb=[2,3];g.w(yz,T);yz.prototype.B=function(a,b){return Vj(this,1,xz,a,b)};
yz.prototype.j=function(a,b){return Vj(this,2,zma,a,b)};
yz.yb=[1,2];g.w(Cma,T);g.w(zz,T);g.w(Dma,T);g.w(Az,T);Az.prototype.gm=function(){return Dea(this,4)};g.w(Bz,T);Bz.prototype.getStatus=function(){return pk(this,2)};g.w(Ema,T);g.w(Cz,T);Cz.prototype.setConfig=function(a){return Sj(this,Ema,2,a)};g.w(Fma,T);g.w(Dz,T);Dz.prototype.getValue=function(){return g.sk(this,2)};g.w(Gma,T);g.w(Hma,T);g.w(Ima,T);g.w(Ez,T);Ez.prototype.j=function(a,b){return Vj(this,3,Ima,a,b)};
Ez.yb=[3];g.w(Jma,T);g.w(Kma,T);g.w(Fz,T);g.w(Gz,T);g.k=Gz.prototype;g.k.getSettings=function(){return g.Rj(this,Fz,1)};
g.k.qh=function(a){return Sj(this,Fz,1,a)};
g.k.getState=function(){return tk(this,2)};
g.k.Hc=function(a){return S(this,2,a)};
g.k.gm=function(){return rk(this,3)};g.w(Lma,T);g.w(Hz,T);Hz.prototype.gm=function(){return rk(this,4)};g.w(Mma,T);g.w(Iz,T);g.k=Iz.prototype;g.k.getType=function(){return tk(this,1)};
g.k.u5=function(a,b){return Vj(this,2,Mma,a,b)};
g.k.gm=function(){return rk(this,6)};
g.k.getPlaybackRate=function(){return Eea(this,7)};
g.k.setPlaybackRate=function(a){return zk(this,7,a)};
g.k.MR=function(a){uk(this,8,a)};
Iz.yb=[2];g.w(Jz,T);Jz.prototype.gm=function(){return rk(this,3)};g.w(Kz,T);Kz.prototype.j=function(a,b){return Vj(this,1,Iz,a,b)};
Kz.prototype.B=function(a,b){return Vj(this,2,Jz,a,b)};
Kz.yb=[1,2];g.w(Lz,T);Lz.prototype.getState=function(){return tk(this,1)};
Lz.prototype.Hc=function(a){return S(this,1,a)};g.w(g.Mz,T);g.w(g.Nz,T);g.Nz.prototype.qx=function(a){return S(this,1,a)};
g.Nz.prototype.j=function(a,b){return Vj(this,4,Kz,a,b)};
g.Nz.prototype.Jv=da(1);g.Nz.prototype.qc=function(){return g.Rj(this,Jma,12)};
g.Nz.yb=[4];g.w(Oz,T);Oz.prototype.Kf=function(){return tk(this,4)};g.w(Pz,T);Pz.prototype.j=function(a,b){return Lj(this,1,ri,a,b)};
Pz.prototype.Mg=function(a,b){xea(this,1,ri,a,b,Cea)};
Pz.yb=[1];g.w(Qz,T);g.k=Qz.prototype;g.k.xe=function(){return g.sk(this,1)};
g.k.setVideoId=function(a){return Q(this,1,a)};
g.k.getPlaylistId=function(){return g.sk(this,2)};
g.k.getPlaylistIndex=function(){return qk(this,3)};
g.k.aj=function(){return g.sk(this,4)};
g.k.getPlayerType=function(){return tk(this,5)};g.w(Nma,T);g.w(Rz,T);Rz.prototype.j=function(a,b){return Vj(this,4,Dz,a,b)};
Rz.prototype.B=function(a,b){return Lj(this,5,dea,a,b)};
Rz.yb=[4,5];g.w(Sz,T);g.w(Tz,T);g.w(Oma,T);g.w(Uz,T);Uz.prototype.Kf=function(){return g.sk(this,2)};g.w(Vz,T);Vz.prototype.j=function(a,b){return Vj(this,1,Uz,a,b)};
Vz.yb=[1];g.w(Wz,T);Wz.prototype.Kf=function(){return g.sk(this,2)};g.w(Xz,T);Xz.prototype.j=function(a,b){return Vj(this,1,Wz,a,b)};
Xz.yb=[1];g.w(Pma,T);var SKa=[1,2,3];g.w(Yz,T);Yz.prototype.j=function(a,b){return Vj(this,1,Pma,a,b)};
Yz.yb=[1];g.w(Zz,T);var wF=[2,3,4,5];g.w($z,T);g.w(aA,T);g.w(bA,T);g.w(Qma,T);g.w(cA,T);cA.prototype.Rj=function(a,b){return Vj(this,5,Qma,a,b)};
cA.yb=[5];g.w(Rma,T);g.w(dA,T);dA.prototype.j=function(a,b){return Vj(this,3,Rma,a,b)};
dA.prototype.B=function(a,b){return Lj(this,4,ri,a,b)};
dA.yb=[3,4];g.w(Sma,T);g.w(Tma,T);g.w(eA,T);eA.prototype.B=function(a,b){return Vj(this,19,Hy,a,b)};
eA.prototype.j=function(a,b){return Vj(this,20,Gy,a,b)};
eA.yb=[19,20];g.w(fA,T);g.w(Uma,T);g.w(gA,T);gA.prototype.j=function(a,b){return Vj(this,2,fA,a,b)};
gA.prototype.setConfig=function(a){return Sj(this,Uma,3,a)};
gA.prototype.C=function(a,b){return Vj(this,5,fA,a,b)};
gA.prototype.B=function(a,b){return Vj(this,9,Uy,a,b)};
gA.yb=[2,5,9];g.w(hA,T);hA.prototype.gm=function(){return Dea(this,2)};g.w(iA,T);iA.prototype.j=function(a,b){return Vj(this,9,hA,a,b)};
iA.yb=[9];g.w(Vma,T);g.w(Wma,T);g.w(Xma,T);g.w(Yma,T);g.w(jA,T);jA.prototype.getType=function(){return tk(this,2)};
jA.prototype.j=function(a,b){return Vj(this,3,Yma,a,b)};
jA.yb=[3];g.w(kA,T);kA.prototype.j=function(a,b){return Vj(this,10,Cma,a,b)};
kA.prototype.B=function(a,b){return Vj(this,17,iA,a,b)};
kA.yb=[10,17];g.w(Zma,T);var FKa={koa:0,joa:1,goa:2,hoa:3,ioa:4};var pjb={tpa:0,ppa:1,rpa:2,qpa:3,spa:4};var qjb={Cpa:0,zpa:1,ypa:2,Apa:3,xpa:4,upa:5,wpa:6,Bpa:7};g.w(lA,T);g.k=lA.prototype;g.k.Kf=function(){return g.sk(this,2)};
g.k.Rk=function(){return g.sk(this,3)};
g.k.t5=function(a,b){return Lj(this,10,ri,a,b)};
g.k.RH=function(){return g.sk(this,7)};
g.k.gm=function(){return pk(this,11)};
lA.yb=[10];var WJa={Gpa:0,Fpa:1,Ipa:2,Hpa:3};var VJa={Spa:0,Rpa:1,Kpa:2,Lpa:3,Mpa:4,Npa:5,Ppa:6,Qpa:7,Jpa:8,Opa:9};var kKa={Cxa:0,Dxa:3,Exa:1,Bxa:2};var RJa={Rya:0,Mxa:1,Vxa:2,Xxa:3,aya:4,bya:5,gya:6,hya:7,iya:8,jya:9,kya:10,nya:11,oya:12,pya:13,qya:14,rya:15,wya:16,Aya:17,Bya:18,Eya:19,Gya:20,Iya:21,Jya:22,Lya:23,Nya:24,Sya:25,Tya:26,yya:27,Oya:28,zya:29,mya:30,dya:31,lya:32,Xya:33,Zya:34,Lxa:35,Sxa:36,Pya:37,Qya:38,Wxa:39,sya:40,tya:51,Rxa:41,Nxa:42,Yxa:43,uya:44,Txa:45,xya:46,Hya:47,Qxa:48,Dya:49,vya:50,Uxa:52,Zxa:53,cya:54,Kya:55,Mya:56,Vya:57,Uya:58,Fya:59,Oxa:60,eya:61,Pxa:62,Wya:63,Yya:64,Cya:65,fya:66};var UJa={HCa:0,Bza:1,pBa:2,ECa:3,aDa:4,iBa:5,qBa:6,Kza:7,Nza:8,Mza:9,EBa:10,hBa:11,gBa:12,OBa:13,aCa:14,FCa:15,VCa:16,Jza:17,jza:18,yAa:19,Yza:20,nBa:21,uBa:22,GCa:23,lza:24,oza:25,JBa:26,gAa:116,BAa:27,CAa:28,DBa:29,Eza:30,uAa:31,mBa:32,CBa:33,hza:34,iza:35,fza:36,gza:37,rBa:38,sBa:39,RBa:40,Iza:41,YCa:42,HBa:43,BBa:44,FBa:45,jBa:46,GBa:47,pAa:48,Tza:49,Sza:160,cDa:50,AAa:51,zAa:52,Vza:53,Wza:54,BCa:55,ACa:56,zCa:57,CCa:58,dAa:59,qAa:60,UCa:61,NBa:62,IBa:63,LBa:64,tBa:65,wAa:69,xAa:121,bDa:70,tAa:71,
vCa:72,wCa:73,PBa:74,QBa:75,sAa:76,rAa:77,ABa:78,zBa:80,cza:81,tza:115,rza:120,sza:122,Aza:123,EAa:124,DAa:125,qza:126,eCa:127,cCa:128,dCa:129,ZCa:130,eza:131,pza:132,mza:133,vAa:152,oAa:178,Xza:179,KBa:181,nAa:193,Hza:198,HAa:82,JAa:83,YAa:84,KAa:85,eBa:86,IAa:87,MAa:88,SAa:89,VAa:90,aBa:91,XAa:92,ZAa:93,GAa:94,NAa:95,WAa:96,PAa:97,OAa:98,FAa:99,LAa:100,bBa:101,TAa:102,fBa:103,cBa:104,QAa:105,dBa:106,UAa:107,RAa:118,JCa:108,NCa:109,MCa:110,LCa:111,OCa:112,KCa:113,ICa:114,dza:134,nza:138,uza:139,
vza:140,yza:141,Fza:142,Lza:144,Oza:165,Gza:143,Uza:135,aAa:145,bAa:146,oBa:147,QCa:148,SCa:149,WCa:150,yCa:153,aza:154,RCa:155,XCa:156,kza:157,Zza:158,fCa:159,iAa:161,bza:162,bCa:163,DCa:164,hAa:166,cAa:167,yBa:168,fAa:169,eAa:170,xBa:171,MBa:172,kAa:173,jAa:210,xza:174,lAa:175,WBa:176,mAa:177,Cza:182,uCa:183,tCa:184,lBa:136,kBa:137,xCa:151,Qza:180,Rza:190,Pza:192,TBa:185,VBa:186,UBa:187,SBa:191,wza:188,PCa:189,vBa:194,wBa:199,pCa:66,kCa:67,lCa:117,qCa:68,sCa:197,mCa:195,rCa:196,gCa:201,nCa:202,
hCa:203,ZBa:204,YBa:205,XBa:206,iCa:207,jCa:208,oCa:209,Dza:200,TCa:211};var rjb={Qsa:0,Psa:1,Nsa:2,Osa:3};var tMa={o6a:0,Z6a:1,f7a:2,J6a:3,K6a:4,L6a:5,h7a:39,i7a:6,d7a:7,Y6a:50,g7a:69,a7a:70,b7a:71,T6a:74,M6a:32,N6a:44,O6a:33,e7a:8,P6a:9,Q6a:10,S6a:11,R6a:12,V6a:73,W6a:77,X6a:78,c7a:84,U6a:85,p6a:56,q6a:57,r6a:58,s6a:59,t6a:60,u6a:61,J7a:13,K7a:14,L7a:15,T7a:16,O7a:17,V7a:18,U7a:19,Q7a:20,R7a:21,M7a:34,S7a:35,P7a:36,N7a:49,y6a:37,z6a:38,B6a:40,D6a:41,C6a:42,E6a:43,F6a:51,A6a:52,x6a:67,v6a:22,w6a:23,m7a:24,s7a:25,t7a:62,r7a:26,p7a:27,l7a:48,j7a:53,k7a:63,u7a:66,o7a:54,q7a:68,v7a:72,n7a:76,H6a:64,G6a:65,
w7a:28,z7a:29,y7a:30,x7a:31,G7a:45,I7a:46,H7a:47,F7a:83,D7a:55,B7a:79,A7a:80,C7a:81,E7a:82,I6a:86};var qMa={X7a:0,Y7a:1,W7a:2};var vMa={b8a:0,a8a:1,Z7a:2};var uMa={i8a:0,g8a:1,e8a:2,h8a:3,c8a:4,d8a:5,f8a:6};var $La={Abb:0,zbb:1,xbb:2};var ZLa={Ebb:0,Cbb:1,Bbb:2,Dbb:3};g.w($ma,T);g.w(ana,T);g.w(bna,T);g.w(cna,T);g.w(dna,T);g.w(mA,T);mA.prototype.hasFeature=function(){return null!=si(yj(this,2))};g.w(nA,T);nA.prototype.aj=function(){return g.sk(this,7)};g.w(ena,T);g.w(fna,T);g.w(oA,T);oA.prototype.getName=function(){return tk(this,1)};
oA.prototype.getStatus=function(){return tk(this,2)};
oA.prototype.getState=function(){return tk(this,3)};
oA.prototype.Hc=function(a){return S(this,3,a)};g.w(pA,T);pA.prototype.j=function(a,b){return Vj(this,2,oA,a,b)};
pA.yb=[2];g.w(gna,T);g.w(qA,T);qA.prototype.j=function(a,b){return Vj(this,1,pA,a,b)};
qA.prototype.B=function(a,b){return Vj(this,2,pA,a,b)};
qA.yb=[1,2];var pMa={oKa:0,mKa:1,nKa:2};var XLa={IQa:0,CQa:1,FQa:2,JQa:3,DQa:4,EQa:5,GQa:6,HQa:7};var YLa={MQa:0,LQa:1,KQa:2};var WLa={RUa:0,SUa:1,QUa:2};var VLa={iVa:0,VUa:1,eVa:2,jVa:3,gVa:4,YUa:5,UUa:6,WUa:7,XUa:8,hVa:9,fVa:10,ZUa:11,cVa:12,dVa:13,bVa:14,aVa:15,TUa:16};var SLa={Z$a:0,V$a:1,Y$a:2,X$a:3,W$a:4};var RLa={dab:0,bab:1,cab:2,aab:3};var TLa={oab:0,iab:1,mab:2,eab:3,nab:4,hab:5,jab:6};var QLa={yab:0,Aab:1,zab:2,sab:3,qab:4,rab:5,Dab:6,uab:7,Eab:8,wab:9,xab:10,pab:11,vab:12,Cab:13,Bab:14};var ULa={Hab:0,Gab:1,Fab:2};var dMa={Lfb:0,Jfb:1,Ifb:2,Dfb:3,Ffb:4,Gfb:5,Cfb:6,Efb:7,Kfb:8,Nfb:9,Hfb:10,Afb:11,Bfb:12,Mfb:13};var cMa={Pfb:0,Ofb:1};var mMa={Sfb:0,Tfb:1,Qfb:2,Rfb:3};var kMa={pgb:0,Ufb:1,ogb:2,ngb:3,ugb:4,tgb:5,mgb:19,Yfb:6,agb:7,igb:8,Zfb:24,lgb:25,jgb:20,cgb:21,Wfb:22,kgb:23,Vfb:9,Xfb:10,bgb:11,dgb:12,egb:13,fgb:14,hgb:15,ggb:16,qgb:17,sgb:18};var eMa={ygb:0,xgb:1,zgb:2,vgb:3,wgb:4};var aMa={Ogb:0,Hgb:1,Cgb:2,Lgb:3,Ggb:4,Ngb:5,Bgb:6,Dgb:7,Igb:8,Egb:9,Jgb:10,Kgb:11,Fgb:12,Mgb:13};var gMa={Vgb:0,Tgb:1,Rgb:2,Sgb:3,Ugb:4};var fMa={Zgb:0,Wgb:1,Xgb:2,Ygb:3};var bMa={ehb:0,dhb:1,bhb:2};var lMa={hhb:0,fhb:1,ghb:2};var nMa={Chb:0,Bhb:1,Ahb:2,yhb:3,zhb:4};var oMa={Ghb:0,Ehb:1,Dhb:2,Fhb:3};var sjb={lta:0,ita:1,jta:2,gta:3,kta:4,hta:5};var OJa={Jea:0,Hea:1,Iea:2};var nIa={c5:0,NHa:1,zFa:2,AFa:3,pKa:4,yVa:5,Boa:6};var ZO={Uva:0,Bva:101,Hva:102,wva:103,zva:104,Eva:105,Fva:106,Iva:107,Jva:108,Lva:109,Mva:110,Tva:111,Gva:112,Cva:113,Kva:114,Ova:115,Vva:116,yva:117,Dva:118,Wva:119,Pva:120,Qva:121,Ava:122,xva:123,Nva:124,Sva:125,Rva:126};var QKa={gwa:0,dwa:1,ewa:2,bwa:3,cwa:4,Zva:5,fwa:6};var tjb={Ywa:0,Xwa:1,Vwa:2,Wwa:3};var ujb={jxa:0,hxa:1,axa:2,gxa:3,Zwa:4,dxa:5,fxa:6,ixa:7,exa:8,cxa:9,bxa:10};var vjb={lxa:0,mxa:1,kxa:2};g.w(hna,T);g.w(ina,T);g.w(rA,T);rA.prototype.getState=function(){return pk(this,1)};
rA.prototype.Hc=function(a){return vk(this,1,a)};g.w(jna,T);g.w(kna,T);g.w(lna,T);g.w(mna,T);g.w(sA,T);sA.prototype.xe=function(){return g.sk(this,1)};
sA.prototype.setVideoId=function(a){return Q(this,1,a)};g.w(tA,T);tA.prototype.setTrackingParams=function(a){return Bk(this,1,a)};g.w(uA,T);uA.prototype.hasVe=function(){return Bj(this,tA,2)};g.w(vA,T);vA.prototype.hasFeature=function(){return null!=si(yj(this,1))};g.w(nna,T);g.w(ona,T);g.w(wA,T);wA.prototype.Kf=function(){return tk(this,2)};
var wjb=[1];g.w(pna,T);g.w(qna,T);g.w(rna,T);g.w(sna,T);g.w(xA,T);xA.prototype.getVideoAspectRatio=function(){return Eea(this,2)};g.w(tna,T);g.w(una,T);g.w(vna,T);g.w(wna,T);g.w(xna,T);g.w(yna,T);g.w(zna,T);g.w(Ana,T);g.w(Bna,T);g.w(yA,T);yA.prototype.getId=function(){return g.sk(this,1)};g.w(Cna,T);g.w(zA,T);g.w(AA,T);AA.prototype.j=function(a,b){return Vj(this,5,zA,a,b)};
AA.yb=[5];g.w(Dna,T);g.w(Ena,T);g.w(BA,T);BA.prototype.aj=function(){return g.sk(this,30)};
BA.prototype.j=function(a,b){return Vj(this,27,Ena,a,b)};
BA.yb=[27];g.w(Fna,T);g.w(Gna,T);g.w(Hna,T);g.w(Ina,T);var J2=[1,2,3,4];g.w(Jna,T);g.w(Kna,T);g.w(Lna,T);g.w(Mna,T);g.w(CA,T);CA.prototype.gm=function(){return rk(this,2)};g.w(Nna,T);g.w(Ona,T);g.w(Pna,T);g.w(DA,T);g.w(Qna,T);g.w(Rna,T);g.w(EA,T);EA.prototype.j=function(a,b){return Lj(this,1,ri,a,b)};
EA.yb=[1];g.w(FA,T);FA.prototype.Kf=function(){return tk(this,3)};g.w(Sna,T);g.w(GA,T);g.w(HA,T);g.w(Tna,T);g.w(IA,T);IA.prototype.j=function(a,b){return Vj(this,2,HA,a,b)};
IA.prototype.B=function(a,b){return Vj(this,3,HA,a,b)};
IA.yb=[2,3];g.w(Una,T);g.w(JA,T);g.w(Vna,T);g.w(KA,T);KA.prototype.xe=function(){return g.Rj(this,JA,Pj(this,K2,2))};
KA.prototype.setVideoId=function(a){return Tj(this,JA,2,K2,a)};
KA.prototype.getPlaylistId=function(){return g.Rj(this,GA,Pj(this,K2,4))};
var K2=[2,3,4,5,9];g.w(LA,T);LA.prototype.getType=function(){return tk(this,1)};
LA.prototype.xe=function(){return g.sk(this,3)};
LA.prototype.setVideoId=function(a){return Q(this,3,a)};g.w(Wna,T);g.w(Xna,T);g.w(MA,T);var OLa=[3];g.w(Yna,T);g.w(Zna,T);g.w(NA,T);NA.prototype.Af=function(){return g.sk(this,2)};g.w($na,T);g.w(aoa,T);var xjb=[1];g.w(boa,T);g.w(coa,T);g.w(doa,T);g.w(eoa,T);g.w(foa,T);g.w(goa,T);g.w(hoa,T);g.w(ioa,T);g.w(OA,T);OA.prototype.getStarted=function(){return Yj($da(yj(this,1)),!1)};g.w(joa,T);g.w(koa,T);g.w(PA,T);PA.prototype.getDuration=function(){return pk(this,2)};
PA.prototype.wl=function(a){vk(this,2,a)};g.w(loa,T);g.w(QA,T);g.w(RA,T);RA.prototype.aj=function(){return g.sk(this,1)};g.w(moa,T);g.w(noa,T);g.w(SA,T);SA.prototype.Se=function(){return g.Rj(this,moa,8)};
SA.prototype.f8=function(){return Bj(this,moa,8)};
SA.prototype.getVideoData=function(){return g.Rj(this,noa,15)};
SA.prototype.RF=function(a){Sj(this,noa,15,a)};
SA.yb=[4];g.w(ooa,T);g.w(TA,T);TA.prototype.j=function(a){return Q(this,2,a)};g.w(UA,T);UA.prototype.j=function(a){return Q(this,1,a)};
UA.yb=[3];g.w(VA,T);VA.prototype.j=function(a){return Q(this,1,a)};
VA.prototype.hasVe=function(){return Bj(this,tA,2)};g.w(WA,T);WA.prototype.j=function(a){return Q(this,1,a)};
WA.prototype.hasVe=function(){return Bj(this,tA,2)};g.w(XA,T);XA.prototype.j=function(a){return Q(this,1,a)};
XA.prototype.hasVe=function(){return Bj(this,tA,2)};g.w(YA,T);YA.prototype.j=function(a){return Q(this,1,a)};
YA.prototype.hasVe=function(){return Bj(this,tA,2)};g.w(soa,T);g.w(ZA,T);ZA.prototype.getId=function(){return g.sk(this,2)};g.w(bB,T);bB.prototype.getVisibilityState=function(){return tk(this,5)};
bB.yb=[16];g.w(toa,T);g.w(cB,T);cB.prototype.getPlayerType=function(){return tk(this,7)};
cB.prototype.xe=function(){return g.sk(this,19)};
cB.prototype.setVideoId=function(a){return Q(this,19,a)};
cB.yb=[112,83,118,68];g.w(uoa,T);g.w(voa,T);g.w(eB,T);eB.prototype.xe=function(){return g.sk(this,1)};
eB.prototype.setVideoId=function(a){return Q(this,1,a)};
eB.prototype.j=function(a,b){return Vj(this,9,voa,a,b)};
eB.yb=[9];g.w(fB,T);fB.prototype.j=function(a,b){return Vj(this,3,eB,a,b)};
fB.yb=[3];g.w(gB,T);gB.prototype.xe=function(){return g.sk(this,1)};
gB.prototype.setVideoId=function(a){return Q(this,1,a)};g.w(woa,T);g.w(hB,T);hB.prototype.j=function(a,b){return Vj(this,1,gB,a,b)};
hB.prototype.B=function(a,b){return Vj(this,2,woa,a,b)};
hB.yb=[1,2];g.w(xoa,T);g.w(yoa,T);g.w(zoa,T);g.w(iB,T);iB.prototype.getId=function(){return g.sk(this,1)};
iB.prototype.j=function(a,b){return Lj(this,2,Xi,a,b)};
iB.prototype.setVideoIds=function(a,b){return xea(this,2,Xi,a,b,Bea)};
iB.yb=[2];g.w(Aoa,T);g.w(Boa,T);g.w(Coa,T);g.w(jB,T);jB.prototype.j=function(a,b){return Lj(this,9,ri,a,b)};
jB.yb=[9];g.w(Doa,T);g.w(Eoa,T);g.w(kB,T);kB.prototype.getId=function(){return g.sk(this,1)};
kB.prototype.j=function(a,b){return Vj(this,14,Coa,a,b)};
kB.prototype.B=function(a,b){return Vj(this,17,Doa,a,b)};
kB.yb=[14,17];g.w(lB,T);lB.prototype.B=function(a,b){return Vj(this,1,kB,a,b)};
lB.prototype.j=function(a,b){return Vj(this,2,iB,a,b)};
lB.yb=[1,2];g.w(Foa,T);g.w(mB,T);mB.prototype.getOrigin=function(){return g.sk(this,3)};
mB.prototype.gh=function(){return pk(this,6)};g.w(Goa,T);g.w(Hoa,T);g.w(nB,T);
var mF=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,354,
355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496];var yjb={zwa:0,wwa:1,vwa:2,ywa:3,xwa:4,twa:5,uwa:6};var zjb={nEa:0,XDa:1,aEa:2,YDa:3,dEa:4,ZDa:5,HDa:6,jEa:7,RDa:8,ADa:9,SDa:10,eEa:11,bEa:12,KDa:13,FDa:14,IDa:15,mEa:16,BDa:17,CDa:18,kEa:19,LDa:20,GDa:21,iEa:22,tEa:23,sEa:24,oEa:25,TDa:26,cEa:27,uEa:28,MDa:29,yDa:30,qEa:31,pEa:32,QDa:33,yEa:34,PDa:35,fEa:36,xEa:37,UDa:38,hEa:39,ODa:40,NDa:41,EDa:42,WDa:43,wEa:44,lEa:45,rEa:46,VDa:47,zDa:48,DDa:49,vEa:50,gEa:51,JDa:52};var Ajb={lFa:0,VEa:1,YEa:2,WEa:3,bFa:4,XEa:5,JEa:6,hFa:7,PEa:8,BEa:9,QEa:10,cFa:11,ZEa:12,MEa:13,HEa:14,KEa:15,kFa:16,DEa:17,EEa:18,iFa:19,NEa:20,IEa:21,gFa:22,qFa:23,pFa:24,mFa:25,REa:26,aFa:27,rFa:28,OEa:29,zEa:30,nFa:31,CEa:32,vFa:33,dFa:34,uFa:35,SEa:36,fFa:37,GEa:38,UEa:39,tFa:40,jFa:41,oFa:42,TEa:43,AEa:44,FEa:45,sFa:46,eFa:47,LEa:48};var Bjb={qHa:0,pHa:1,rHa:2};var fKa={dGa:0,bGa:1,YFa:2,cGa:3,ZFa:4,aGa:5};var Cjb={qGa:0,oGa:1,kGa:3,mGa:4,nGa:5,pGa:6,lGa:7};var Djb={wGa:0,tGa:1,vGa:2,uGa:3,sGa:4,rGa:5};var Ejb={gHa:0,hHa:1,fHa:2,eHa:3,dHa:4};var Fjb={kHa:0,iHa:1,jHa:2};var Gjb={wHa:0,xHa:1,yHa:2,vHa:3,tHa:4,uHa:5};var awa={hIa:0,OHa:1,UHa:2,VHa:4,bIa:8,WHa:16,XHa:32,gIa:64,fIa:128,QHa:256,SHa:512,ZHa:1024,RHa:2048,THa:4096,PHa:8192,YHa:16384,cIa:32768,aIa:65536,dIa:131072,eIa:262144};var PKa={LIa:0,KIa:1,JIa:2,IIa:4};var OKa={QIa:0,NIa:1,OIa:2,RIa:3,PIa:4,MIa:5};var Hjb={jDa:0,iDa:1,hDa:2};var Ijb={QQa:0,PQa:1,OQa:2};var Jjb={IRa:0,oRa:1,GRa:2,sRa:3,yRa:4,KRa:5,HRa:6,eRa:7,dRa:8,cRa:9,iRa:10,nRa:11,mRa:12,fRa:13,zRa:14,uRa:15,wRa:16,UQa:17,FRa:18,YQa:19,vRa:20,TQa:21,xRa:22,lRa:23,VQa:24,XQa:25,CRa:26,JRa:27,DRa:28,tRa:29,gRa:30,jRa:31,kRa:32,bRa:33,LRa:34,ZQa:35,hRa:36,ARa:37,WQa:38,RQa:39,aRa:41,rRa:42,BRa:43,ERa:44,pRa:45,qRa:46,SQa:47};var Kjb={PRa:0,ORa:1,NRa:2,MRa:3};var bKa={mqa:0,lqa:1,kqa:2};var YJa={ASa:0,zSa:1,wSa:2,xSa:7,vSa:8,uSa:25,dSa:3,eSa:4,mSa:5,nSa:27,lSa:28,fSa:9,TRa:10,RRa:11,SRa:6,cSa:12,aSa:13,bSa:14,ZRa:15,hSa:16,iSa:17,gSa:18,kSa:19,jSa:20,WRa:26,XRa:21,VRa:22,YRa:23,URa:24,CSa:34,BSa:35,ESa:39,DSa:29,rSa:30,sSa:32,tSa:33,pSa:36,qSa:38,oSa:37,ySa:31};var $Ja={JSa:0,GSa:1,HSa:2,ISa:3,FSa:4};var ZJa={PSa:0,NSa:1,OSa:2,LSa:3,MSa:4,KSa:5};var BJa={WSa:0,QSa:1,SSa:2,RSa:3,TSa:4,USa:5,VSa:6,XSa:7};var cKa={wTa:0,rTa:1,vTa:2,tTa:3,uTa:4,sTa:5};var eKa={HTa:0,xTa:1,BTa:2,FTa:3,GTa:4,CTa:5,DTa:6,ETa:7,zTa:8,yTa:9,ATa:10};var dKa={LTa:0,ITa:1,JTa:2,KTa:3};var bLa={Rwa:0,Pwa:1,Qwa:2,Mwa:3,Nwa:4,Owa:5};var gLa={RXa:0,QXa:1,JXa:2,OXa:3,KXa:4,NXa:5,PXa:6,MXa:7,LXa:8};var BKa={lYa:0,dYa:1,mYa:2,kYa:4,hYa:8,gYa:16,fYa:32,iYa:64,eYa:128,jYa:256};var cLa={FYa:0,zYa:1,EYa:2,wYa:3,oYa:4,uYa:5,pYa:6,qYa:7,sYa:8,xYa:9,BYa:10,AYa:11,CYa:12,rYa:13,tYa:14,vYa:15,yYa:16,nYa:17,DYa:18};var yKa={GXa:0,DXa:1,EXa:2,FXa:3};var EKa={YXa:0,aYa:1,XXa:2,TXa:3,ZXa:4,UXa:5,VXa:6,WXa:7};var HJa={thb:0,yta:1,AQa:2,DVa:3,FVa:4,GVa:5,AVa:6,Tbb:7,WVa:8,VVa:9,BVa:10,EVa:11,xdb:12,Qia:13,Yia:14,Ria:15,f0a:16,yXa:17,XVa:18,aWa:19,cYa:20,ZVa:21,SXa:22,GYa:23,gWa:24,IXa:25,CVa:26,Qbb:27,N$a:28,J3a:29,nqa:30,Blb:31,HXa:32};var GJa={whb:0,Mea:1,IYa:2,HYa:3,SUCCESS:4,Fbb:5,kDa:6,x3a:7,jGa:9,zta:10,uva:11,CANCELLED:12,I3a:13,O$a:14,T$a:15,Phb:16};var FJa={Ldb:0,Cdb:1,Hdb:2,Gdb:3,Ddb:4,Edb:5,ydb:6,Kdb:7,Jdb:8,Bdb:9,Adb:10,Fdb:11,Idb:12,zdb:13};var TJa={U_a:0,I_a:1,M_a:2,K_a:3,T_a:4,L_a:5,P_a:6,O_a:7,N_a:8,J_a:9,Q_a:10,R_a:11,S_a:12};var Ljb={g1a:0,f1a:1,e1a:2};var Mjb={j1a:0,h1a:1,i1a:2};var hKa={p3a:0,k3a:1,X2a:2,q3a:3,T2a:4,S2a:5,Y2a:6,U2a:7,R2a:8,h3a:9,b3a:10,g3a:11,i3a:12,W2a:13,V2a:14,Q2a:15,n3a:16,m3a:17,l3a:18,a3a:19,d3a:20,c3a:21,e3a:22,f3a:23,Z2a:24,o3a:25,j3a:26};var gKa={w3a:0,v3a:1,u3a:2,t3a:3,r3a:4,s3a:5};var XJa={O4a:0,M4a:1,N4a:3,J4a:4,K4a:2,L4a:5};var aKa={T4a:0,P4a:1,Q4a:2,S4a:3,R4a:4,U4a:5};var Njb={b5a:0,c5a:1};var JLa={i5a:0,g5a:1,h5a:2,j5a:3};var Ojb={H8a:0,F8a:1,G8a:2};var Pjb={bbb:0,Xab:1,Yab:2,Zab:3,abb:4};var DKa={T8a:0,R8a:1,S8a:2};var fLa={G9a:0,D9a:1,E9a:2,F9a:3};var tKa={ona:0,nna:1,lna:2,mna:3};var wKa={doa:0,Wna:1,coa:2,Zna:3,Sna:4,Tna:5,Rna:6,Yna:7,boa:8,Vna:9,eoa:10,foa:11,Una:12,aoa:13,Xna:14};var WKa={mpa:0,gpa:1,jpa:2,kpa:3,ipa:4,lpa:5,npa:6,hpa:7};var nKa={Yta:0,Xta:1,Zta:2};var KJa={rhb:0,Bsa:1,Csa:2,Asa:3,Dsa:4};var JJa={shb:0,V0a:1,A_a:2};var ZKa={tDa:0,pDa:1,lDa:2,sDa:3,nDa:4,qDa:5,oDa:6,mDa:7,rDa:8};var aLa={oHa:0,nHa:1,mHa:2};var VKa={zQa:0,yQa:1,xQa:2};var YKa={pVa:0,oVa:1,nVa:2};var UKa={o4a:0,m4a:1,n4a:2};var rKa={Jbb:0,Ibb:1,Hbb:2};var Qjb={TPa:0,PPa:1,QPa:2,RPa:3,SPa:4,UPa:5};var Rjb={d0a:0,a0a:1,Y_a:2,V_a:3,Z_a:4,b0a:5,W_a:6,X_a:7,c0a:8,e0a:9};var Sjb={rta:0,mta:5,qta:4,nta:2,pta:3};var Tjb={Ycb:0,Acb:1,cdb:2,ddb:3,adb:4,Zcb:16,bdb:47,vcb:17,Bcb:33,ucb:35,mcb:36,xcb:34,Xcb:38,zcb:45,Gcb:8,scb:39,pcb:40,icb:41,lcb:42,ocb:43,hcb:46,kcb:44,ycb:5,Fcb:6,Wcb:7,Vcb:9,jcb:10,Ucb:11,ncb:12,Tcb:13,tcb:14,Ecb:15,Dcb:18,Ccb:19,rcb:20,wcb:21,qcb:22,Qcb:23,Scb:24,Jcb:25,Rcb:26,Hcb:27,Mcb:28,Icb:29,Lcb:30,Ncb:31,Kcb:32,Ocb:37,Pcb:48};var Ujb={gdb:0,fdb:1,hdb:2};var ILa={wlb:0,glb:1,nlb:2,mlb:3,flb:4,xlb:5,tlb:6,hlb:7,ilb:8,llb:9,klb:12,blb:10,vlb:11,plb:13,qlb:14,ylb:15,olb:16,rlb:17,clb:18,slb:19,dlb:20,zlb:21,jlb:22};var CLa={lIa:0,jIa:1,kIa:2,iIa:3};g.w(Ioa,T);g.w(oB,T);oB.prototype.xe=function(){return Xj(this,Pj(this,dF,1))};
oB.prototype.setVideoId=function(a){return Nj(this,1,dF,Yi(a))};
oB.prototype.getPlaylistId=function(){return Xj(this,Pj(this,dF,2))};
var dF=[1,2];g.w(Joa,T);Joa.yb=[3];var jT=new g.Gw("changeKeyedMarkersVisibilityCommand");var Vjb=new g.Gw("changeMarkersVisibilityCommand");var ZSa=new g.Gw("loadMarkersCommand");var o_a=new g.Gw("productListItemRenderer");var Wjb=new g.Gw("shoppingOverlayRenderer");var sTa=new g.Gw("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var Xjb=new g.Gw("adFeedbackEndpoint");var Yjb=new g.Gw("menuEndpoint");var EZa=new g.Gw("phoneDialerEndpoint");var CZa=new g.Gw("sendSmsEndpoint");var qTa=new g.Gw("copyTextEndpoint");var Zjb=new g.Gw("webPlayerShareEntityServiceEndpoint");g.pG=new g.Gw("urlEndpoint");g.hT=new g.Gw("watchEndpoint");var $jb=new g.Gw("watchPlaylistEndpoint");var lLa={jqa:0,iqa:1,hqa:2,fqa:3,gqa:4};var AKa={UVa:0,SVa:1,TVa:2,RVa:3};var akb={lWa:0,kWa:1,iWa:2,jWa:3};var bkb={pWa:0,mWa:1,nWa:2,oWa:3,qWa:4};var ckb={iXa:0,cXa:1,jXa:2,eXa:3,VWa:4,MWa:37,xWa:5,uWa:36,zWa:38,HWa:39,IWa:40,DWa:41,hXa:42,AWa:27,RWa:31,TWa:6,WWa:7,XWa:8,YWa:9,ZWa:10,aXa:11,dXa:29,BWa:30,SWa:32,LWa:12,KWa:13,wWa:14,QWa:15,rWa:16,tWa:35,yWa:43,CWa:28,OWa:17,NWa:18,PWa:19,gXa:20,GWa:25,vWa:33,kXa:21,JWa:22,FWa:26,lXa:46,EWa:34,UWa:44,fXa:45,bXa:23,sWa:24};var jLa={CXa:0,AXa:1,zXa:2,BXa:3};var $O={S$a:0,P$a:1,R$a:2,Q$a:3};var IJa={wdb:0,kdb:1,jdb:2,pdb:3,vdb:4,ldb:5,sdb:6,qdb:7,rdb:8,mdb:9,tdb:10,ndb:11,udb:12,odb:13};var xKa={bYa:0,hWa:1,YVa:2,eWa:3,fWa:4,bWa:5,cWa:6,dWa:7};var dkb={X4a:0,W4a:1};var ekb={ebb:0,dbb:1,cbb:2,fbb:3};var fkb={jbb:0,hbb:1,gbb:2};var gkb={tbb:0,nbb:1,obb:2,pbb:5,sbb:7,ubb:8,qbb:9,rbb:10};var hkb={mbb:0,lbb:1,kbb:2};var GWa=new g.Gw("compositeVideoOverlayRenderer");var ikb=new g.Gw("miniplayerRenderer");var ESa=new g.Gw("playerMutedAutoplayOverlayRenderer"),FSa=new g.Gw("playerMutedAutoplayEndScreenRenderer");var ORa=new g.Gw("unserializedPlayerResponse"),GSa=new g.Gw("unserializedPlayerResponse");var hLa={xXa:0,uXa:1,sXa:2,rXa:3,qXa:4,pXa:5,tXa:6,wXa:7,oXa:8,vXa:9,nXa:10,mXa:11};var jkb=new g.Gw("playlistEditEndpoint");var L2;g.JM=new g.Gw("buttonRenderer");L2=new g.Gw("toggleButtonRenderer");var zKa={uhb:0,MMa:4,q4a:1,eGa:2,Qoa:3,NMa:5,t4a:6,fGa:7,gGa:8,hGa:9,iGa:10};var AEa=new g.Gw("counterfactualRenderer");var kkb=new g.Gw("resolveUrlCommandMetadata");var lkb=new g.Gw("modifyChannelNotificationPreferenceEndpoint");var uza=new g.Gw("pingingEndpoint");var mkb=new g.Gw("unsubscribeEndpoint");var pIa={xhb:0,wUa:1,sUa:2,rUa:3,STa:71,RTa:4,uUa:5,xUa:6,vUa:16,tUa:69,TTa:70,OTa:56,PTa:64,QTa:65,fUa:7,VTa:8,aUa:9,WTa:10,ZTa:11,YTa:12,XTa:13,cUa:43,iUa:44,jUa:45,kUa:46,lUa:47,mUa:48,nUa:49,oUa:50,pUa:51,qUa:52,gUa:53,hUa:54,eUa:63,UTa:14,dUa:15,bUa:68,okb:17,xkb:18,Djb:19,nkb:20,Zjb:21,pkb:22,vjb:23,ikb:24,dkb:25,Ijb:26,tjb:27,Pjb:28,lkb:29,qjb:30,pjb:31,rjb:32,wjb:33,jkb:34,hkb:35,akb:36,fkb:37,qkb:38,Ljb:39,wkb:40,Rjb:41,Gjb:42,rkb:55,ekb:66,Qkb:67,Vjb:57,kkb:58,xjb:59,sjb:60,Mjb:61,bkb:62};var nkb={N5a:0,R5a:1,D5a:2,v5a:3,J5a:4,L5a:5,S5a:6,k5a:7,l5a:8,r5a:9,F5a:10,w5a:11,A5a:12,y5a:13,z5a:14,B5a:15,C5a:19,n5a:16,I5a:17,G5a:18,p5a:20,x5a:21,m5a:22,O5a:23,t5a:24,o5a:25,M5a:26,q5a:27,H5a:28,E5a:29,s5a:30,K5a:31,Q5a:32,P5a:33,u5a:34};g.xT=new g.Gw("subscribeButtonRenderer");var okb=new g.Gw("subscribeEndpoint");var uKa={X8a:0,V8a:1,W8a:2};var tWa=new g.Gw("buttonViewModel");var jMa={k6a:0,l6a:1,j6a:2,f6a:3,i6a:4,g6a:5,e6a:6,h6a:7};var BEa=new g.Gw("qrCodeRenderer");var QJa={ata:0,Ysa:1,Vsa:2,Wsa:3,Xsa:4,Zsa:5};var bRa={eQa:"LIVING_ROOM_APP_MODE_UNSPECIFIED",bQa:"LIVING_ROOM_APP_MODE_MAIN",aQa:"LIVING_ROOM_APP_MODE_KIDS",cQa:"LIVING_ROOM_APP_MODE_MUSIC",dQa:"LIVING_ROOM_APP_MODE_UNPLUGGED",ZPa:"LIVING_ROOM_APP_MODE_GAMING"};var QSa=new g.Gw("autoplaySwitchButtonRenderer");var WRa,x0a,XRa,J0a;WRa=new g.Gw("decoratedPlayerBarRenderer");x0a=new g.Gw("chapteredPlayerBarRenderer");XRa=new g.Gw("multiMarkersPlayerBarRenderer");J0a=new g.Gw("chapterRenderer");g.B0a=new g.Gw("markerRenderer");var VSa=new g.Gw("desktopOverlayConfigRenderer");var TSa=new g.Gw("gatedActionsOverlayViewModel");var F0a=new g.Gw("heatMarkerRenderer");var E0a=new g.Gw("heatmapRenderer");var YSa=new g.Gw("watchToWatchTransitionRenderer");var tTa=new g.Gw("playlistPanelRenderer");var TWa=new g.Gw("speedmasterEduViewModel");var pkb=new g.Gw("suggestedActionTimeRangeTrigger"),qkb=new g.Gw("suggestedActionsRenderer"),rkb=new g.Gw("suggestedActionRenderer");var G0a=new g.Gw("timedMarkerDecorationRenderer");var skb={Pkb:0,Lkb:1,Mkb:2,Okb:3,Nkb:4,Kkb:5,Jkb:6,Fkb:7,Hkb:8,Ikb:9,Gkb:10,Bkb:11,zkb:12,ykb:13,Ekb:14,Akb:15,Ckb:16,Dkb:17};var TO={c5:0,USER:74,loa:459,TRACK:344,moa:493,zoa:419,qJa:494,eqa:337,MINUTE:237,HOUR:236,DAY:3,WEEK:78,Rkb:248,MONTH:79,QUARTER:246,YEAR:247,JVa:382,IVa:383,HVa:384,Lbb:235,VIDEO:4,Ukb:186,Jta:126,Wab:127,Rta:117,x2a:125,l4a:151,rwa:515,Cta:6,KFa:132,PFa:154,NFa:222,OFa:155,LFa:221,MFa:156,Vab:209,Uab:210,Zib:7,O2a:124,U8a:96,uVa:97,kjb:93,wOa:574,ljb:275,dpa:110,cpa:120,d1a:121,DHa:72,Sib:351,T5a:495,Qib:377,Tib:378,vDa:496,wDa:497,U5a:498,epa:381,Rib:386,mjb:387,Qna:410,rIa:437,Jxa:338,apa:380,
Kea:352,F_a:113,G_a:114,ccb:82,dcb:112,pwa:354,Xbb:21,Pna:556,z_a:567,K3a:566,edb:568,Iwa:523,Kwa:375,Jwa:514,Sia:302,Vta:136,EHa:85,mja:22,Xkb:23,gcb:252,fcb:253,IZa:562,Uta:563,Yoa:254,Pia:165,Sab:304,fJa:421,e4a:463,PLAYLIST:63,Xib:27,Wib:28,Yib:29,Kab:30,Nab:31,Mab:324,Oab:32,opa:398,Alb:613,Qab:399,Rab:400,wVa:411,vVa:413,xVa:414,zVa:415,H2a:39,I2a:143,M2a:144,D2a:40,E2a:145,G2a:146,Kib:504,L2a:325,s0a:262,u0a:263,t0a:264,w0a:355,x0a:249,z0a:250,y0a:251,fta:46,Y4a:49,a5a:50,Iia:62,Wbb:561,ZSa:105,
kJa:242,M$a:397,m1a:83,E_a:135,Mna:87,Ona:153,Nna:187,Hna:89,Gna:88,Ina:139,Kna:91,Jna:104,Lna:137,Hsa:99,Ihb:100,sVa:326,iwa:148,hwa:149,Iab:150,Jab:395,Doa:166,Joa:199,Eoa:534,Ioa:167,Foa:168,Noa:169,Ooa:170,Goa:171,Hoa:172,Koa:179,Loa:180,Poa:512,Moa:513,Xhb:200,Jhb:476,Yhb:213,Aoa:191,v0a:192,p0a:305,q0a:306,B0a:329,z9a:327,A9a:328,l0a:195,m0a:197,H_a:301,g0a:223,h0a:224,dJa:227,uIa:396,rJa:356,lJa:490,sJa:394,oqa:230,Roa:297,tib:298,cJa:342,swa:346,dDa:245,ecb:261,HHa:265,MHa:266,IHa:267,FHa:268,
GHa:269,LHa:270,JHa:271,KHa:272,KPa:303,xOa:391,yOa:503,AOa:277,VPa:499,XPa:500,IPa:501,WPa:611,YPa:612,MPa:278,zOa:489,LPa:598,sxa:332,uxa:333,qxa:334,txa:335,rxa:336,Gsa:340,WIa:341,Jib:349,Iib:420,K2a:281,F2a:282,Z4a:286,Lab:288,J2a:291,N2a:292,vOa:295,Pab:296,uOa:299,Uia:417,vJa:308,Ykb:309,Zkb:310,alb:311,D0a:590,E0a:591,Tja:350,aib:418,XGa:424,Khb:425,KVa:429,tVa:430,pJa:426,I$a:460,rVa:427,N3a:428,O3a:542,L3a:461,B9a:464,fTa:431,cTa:432,dTa:589,kTa:433,bTa:434,hTa:435,iTa:436,eTa:438,jTa:439,
lTa:453,gTa:454,aTa:472,qhb:557,M3a:558,Zoa:559,bpa:560,Woa:565,w1a:545,q1a:546,H1a:547,K1a:548,J1a:549,I1a:550,x1a:551,G1a:552,n1a:554,t1a:577,s1a:587,v1a:579,p1a:580,Xoa:583,M1a:584,N1a:586,z1a:516,A1a:544,B1a:553,C1a:570,E1a:571,y1a:572,F1a:573,D1a:588,L1a:585,OZa:592,MZa:593,NZa:594,LZa:595,ijb:604,gjb:605,hjb:606,jjb:607,fjb:608,Pbb:520,o1a:521,u1a:522,mJa:543,U0a:440,W0a:441,a1a:442,S0a:448,T0a:449,X0a:450,b1a:451,Z0a:491,POST:445,R0a:446,Y0a:447,Q1a:456,LVa:483,lja:569,wta:576,Z1a:529,xta:581,
Ybb:555,P1a:458,d5a:480,e5a:502,f5a:482,XIa:452,W5a:465,X5a:466,vva:467,O1a:468,vxa:469,Usa:470,Tsa:471,VIa:475,oua:477,ZIa:478,UFa:479,C0a:484,A0a:485,o0a:486,n0a:487,Zia:488,Uwa:492,xxa:505,Hwa:506,ajb:507,DKa:508,SFa:509,VFa:510,XFa:511,lib:524,Uib:530,v4a:531,wxa:532,b6a:533,u4a:575,aJa:535,uJa:536,gJa:537,oJa:538,bJa:539,jJa:540,eJa:541,BQa:578,Lia:582,G0a:596,Tta:597,BOa:599,cPa:600,dPa:601,NPa:602,OPa:603,PODCAST:609,Sta:610};var FNa=new g.Gw("cipher");var PRa=new g.Gw("playerVars");var HSa=new g.Gw("playerVars");var M2=g.Sa.window,tkb,ukb,pB=(null==M2?void 0:null==(tkb=M2.yt)?void 0:tkb.config_)||(null==M2?void 0:null==(ukb=M2.ytcfg)?void 0:ukb.data_)||{};g.Va("yt.config_",pB);var tB=[];var Soa=/^[\w.]*$/,Poa={q:!0,search_query:!0},Ooa=String(zB);var Toa=new function(){var a=window.document;this.j=window;this.B=a};
g.Va("yt.ads_.signals_.getAdSignalsString",function(a){return AB(IB(a))});g.kb();var Woa="XMLHttpRequest"in g.Sa?function(){return new XMLHttpRequest}:null;var vkb="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.pa(vkb);var dpa={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"},epa="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.pa(vkb)),mpa=!1,apa=fpa,jpa=cpa;g.w(SB,yb);VB.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):1===this.C&&a?(a=a.call(c,this.B))&&"function"===typeof a.then?a:XB(a):2===this.C&&b?(a=b.call(c,this.B))&&"function"===typeof a.then?a:WB(a):this};
VB.prototype.getValue=function(){return this.B};
VB.prototype.$goog_Thenable=!0;var YB=!1;var FD=gC||hC;var Gpa=/^([0-9\.]+):([0-9\.]+)$/;g.w(Npa,yb);Npa.prototype.name="BiscottiError";g.w(rC,yb);rC.prototype.name="BiscottiMissingError";var Ppa={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},sC=null;var Wpa=oa(["data-"]),$pa={};var wkb=0,aqa=g.Vc?"webkit":ls?"moz":g.Cf?"ms":g.TR?"o":"",xkb=g.Wa("ytDomDomGetNextId")||function(){return++wkb};
g.Va("ytDomDomGetNextId",xkb);var fqa={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};xC.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
xC.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
xC.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var yC=g.Sa.ytEventsEventsListeners||{};g.Va("ytEventsEventsListeners",yC);var iqa=g.Sa.ytEventsEventsCounter||{count:0};g.Va("ytEventsEventsCounter",iqa);var nqa=Td(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),jqa=Td(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var N2;N2=window;g.pD=N2.ytcsi&&N2.ytcsi.now?N2.ytcsi.now:N2.performance&&N2.performance.timing&&N2.performance.now&&N2.performance.timing.navigationStart?function(){return N2.performance.timing.navigationStart+N2.performance.now()}:function(){return(new Date).getTime()};g.ob(CC,g.I);CC.prototype.Y=function(a){void 0===a.j&&gqa(a);var b=a.j;void 0===a.B&&gqa(a);this.j=new g.Ke(b,a.B)};
CC.prototype.Vs=function(){return this.j||new g.Ke};
CC.prototype.ma=function(){if(this.j){var a=(0,g.pD)();if(0!=this.D){var b=this.K,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.D);this.B[this.C]=.5<Math.abs((d-this.G)/this.G)?1:0;for(c=b=0;4>c;c++)b+=this.B[c]||0;3<=b&&this.N();this.G=d}this.D=a;this.K=this.j;this.C=(this.C+1)%4}};
CC.prototype.xa=function(){g.OB(this.Z);g.AC(this.va)};g.w(DC,g.I);DC.prototype.T=function(a,b,c,d,e){c=g.xB((0,g.ib)(c,d||this.tb));c={target:a,name:b,callback:c};var f;e&&nqa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.N.push(c);return c};
DC.prototype.Tc=function(a){for(var b=0;b<this.N.length;b++)if(this.N[b]==a){this.N.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
DC.prototype.xa=function(){g.FC(this);g.I.prototype.xa.call(this)};GC.prototype.clone=function(){var a=new GC,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==$a(c)?g.pd(c):c}return a};var STa=["att/get"],DXa=["embedded_player"],ykb=["share/get_web_player_share_panel"],zkb=["feedback"],Akb=["notification/modify_channel_preference"],Sbb=["player"],Bkb=["browse/edit_playlist"],Ckb=["subscription/subscribe"],Dkb=["subscription/unsubscribe"],Wbb=["next","unplugged/watch_next"];var pqa;g.HC=Td(function(){var a=new Hv;return a.isAvailable()?new g.Dv(a):null});
pqa=Td(function(){var a=new xla;return a.isAvailable()?new g.Dv(a):null});MC.prototype.uD=function(a,b){a={};var c=nfa([]);c&&(a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.rB("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.PB("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in pB||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in pB&&(a["X-Goog-PageId"]=g.rB("DELEGATED_SESSION_ID")));return a};var TD={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var PC=g.Wa("ytglobal.prefsUserPrefsPrefs_")||{};g.Va("ytglobal.prefsUserPrefsPrefs_",PC);var wqa;g.k=vqa.prototype;g.k.get=function(a,b){Aqa(a);zqa(a);a=void 0!==PC[a]?PC[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){Aqa(a);zqa(a);if(null==b)throw Error("ExpectedNotNull");PC[a]=b.toString()};
g.k.remove=function(a){Aqa(a);zqa(a);delete PC[a]};
g.k.save=function(){var a=!0;g.PB("web_secure_pref_cookie_killswitch")&&(a=!1);g.$B(this.j,this.dump(),63072E3,this.B,a)};
g.k.clear=function(){g.dba(PC)};
g.k.dump=function(){var a=[],b;for(b in PC)PC.hasOwnProperty(b)&&a.push(b+"="+encodeURIComponent(String(PC[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])&&(PC[d]=c.toString())}};var Cqa={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"},ksa={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},lsa={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},Eqa={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.w(g.QC,Error);TC.prototype.Xi=function(a,b){return UC(a,1,b)};
TC.prototype.L5=function(a){(a=this.j.get(a))&&a()};g.Wa("yt.scheduler.instance.timerIdMap_");g.w(WC,TC);WC.prototype.Sj=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Wa("yt.scheduler.instance.cancelJob");b?b(a):g.NB(a)}};
WC.prototype.start=function(){var a=g.Wa("yt.scheduler.instance.start");a&&a()};
WC.prototype.pause=function(){var a=g.Wa("yt.scheduler.instance.pause");a&&a()};
g.Iu=g.XC();$C.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.Nm(b))}catch(f){return}else e=escape(b);g.$B(a,e,c,this.B)};
$C.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.aC(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
$C.prototype.remove=function(a){this.j&&this.j.remove(a);g.rpa(a,"/",this.B)};var Hqa=function(){var a;return function(){a||(a=new $C("ytidb"));return a}}();var cD=[],aD,dD=!1;var O2={},Mqa=(O2.AUTH_INVALID="No user identifier specified.",O2.EXPLICIT_ABORT="Transaction was explicitly aborted.",O2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",O2.MISSING_INDEX="Index not created.",O2.MISSING_OBJECT_STORES="Object stores not created.",O2.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",O2.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",O2.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",O2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",O2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",O2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",O2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",O2),P2={},Nqa=(P2.AUTH_INVALID="ERROR",P2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",P2.EXPLICIT_ABORT="IGNORED",
P2.IDB_NOT_SUPPORTED="ERROR",P2.MISSING_INDEX="WARNING",P2.MISSING_OBJECT_STORES="ERROR",P2.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",P2.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",P2.QUOTA_EXCEEDED="WARNING",P2.QUOTA_MAYBE_EXCEEDED="WARNING",P2.UNKNOWN_ABORT="WARNING",P2.INCOMPATIBLE_DB_VERSION="WARNING",P2),Q2={},Oqa=(Q2.AUTH_INVALID=!1,Q2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Q2.EXPLICIT_ABORT=!1,Q2.IDB_NOT_SUPPORTED=!1,Q2.MISSING_INDEX=!1,Q2.MISSING_OBJECT_STORES=!1,Q2.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Q2.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Q2.QUOTA_EXCEEDED=!1,Q2.QUOTA_MAYBE_EXCEEDED=!0,Q2.UNKNOWN_ABORT=!0,Q2.INCOMPATIBLE_DB_VERSION=!1,Q2);g.w(g.iD,g.QC);g.w(Pqa,g.iD);g.w(jD,Error);var Qqa=["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.nD.all=function(a){return new g.nD(new mD(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Nz:0};f.Nz<a.length;f={Nz:f.Nz},++f.Nz)g.nD.resolve(a[f.Nz]).then(function(h){return function(l){d[h.Nz]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
g.nD.resolve=function(a){return new g.nD(new mD(function(b,c){a instanceof g.nD?a.then(b,c):b(a)}))};
g.nD.reject=function(a){return new g.nD(new mD(function(b,c){c(a)}))};
g.nD.prototype.then=function(a,b){var c=this,d=null!=a?a:Tqa,e=null!=b?b:Sqa;return new g.nD(new mD(function(f,h){"PENDING"===c.state.status?(c.j.push(function(){Vqa(c,c,d,f,h)}),c.B.push(function(){Wqa(c,c,e,f,h)})):"FULFILLED"===c.state.status?Vqa(c,c,d,f,h):"REJECTED"===c.state.status&&Wqa(c,c,e,f,h)}))};
g.nD.prototype.catch=function(a){return this.then(void 0,a)};g.k=cra.prototype;g.k.add=function(a,b,c){return g.sD(this,[a],{mode:"readwrite",Tb:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return g.sD(this,[a],{mode:"readwrite",Tb:!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.sD(this,[a],{mode:"readonly",Tb:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return g.sD(this,[a],{mode:"readwrite",Tb:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return g.sD(this,[a],{mode:"readonly",Tb:!0},function(c){return c.objectStore(a).get(b)})};
g.k.objectStoreNames=function(){return Array.from(this.j.objectStoreNames)};
g.k.getName=function(){return this.j.name};
g.k=dra.prototype;g.k.add=function(a,b){return g.oD(this.j.add(a,b))};
g.k.autoIncrement=function(){return this.j.autoIncrement};
g.k.clear=function(){return g.oD(this.j.clear()).then(function(){})};
g.k.count=function(a){return g.oD(this.j.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?hra(this,a):g.oD(this.j.delete(a))};
g.k.get=function(a){return g.oD(this.j.get(a))};
g.k.index=function(a){try{return new ora(this.j.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new jD(a,this.j.name);throw b;}};
g.k.getName=function(){return this.j.name};
g.k.keyPath=function(){return this.j.keyPath};
vD.prototype.abort=function(){this.j.abort();this.B=!0;throw new g.iD("EXPLICIT_ABORT");};
vD.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.C.get(a);b||(b=new dra(a),this.C.set(a,b));return b};
g.k=ora.prototype;g.k.count=function(a){return g.oD(this.j.count(a))};
g.k.delete=function(a){return g.zD(this,{query:a},function(b){return b.delete().then(function(){return g.yD(b)})})};
g.k.get=function(a){return g.oD(this.j.get(a))};
g.k.keyPath=function(){return this.j.keyPath};
g.k.unique=function(){return this.j.unique};
AD.prototype.delete=function(){return g.oD(this.cursor.delete()).then(function(){})};
AD.prototype.getValue=function(){return this.cursor.value};
AD.prototype.update=function(a){return g.oD(this.cursor.update(a))};CD.prototype.B=function(a,b,c){c=void 0===c?{}:c;return qra(a,b,c)};
CD.prototype.delete=function(a){a=void 0===a?{}:a;return BD(this.name,a)};
CD.prototype.open=function(){function a(){var f,h,l,m,n,p,q,r,t,v;return g.H(function(x){switch(x.j){case 1:return h=null!=(f=Error().stack)?f:"",g.Ba(x,2),g.z(x,c.B(c.name,c.options.version,e),4);case 4:for(var A=l=x.B,E=c.options,F=[],G=g.u(Object.keys(E.jr)),M=G.next();!M.done;M=G.next()){M=M.value;var P=E.jr[M],R=void 0===P.Xba?Number.MAX_VALUE:P.Xba;!(A.j.version>=P.cn)||A.j.version>=R||A.j.objectStoreNames.contains(M)||F.push(M)}m=F;if(0===m.length){x.Ka(5);break}n=Object.keys(c.options.jr);
p=l.objectStoreNames();if(c.G<g.QB("ytidb_reopen_db_retries",0))return c.G++,l.close(),eD(new g.iD("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),x.return(a());if(!(c.D<g.QB("ytidb_remake_db_retries",1))){x.Ka(6);break}c.D++;return g.z(x,c.delete(),7);case 7:return eD(new g.iD("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),x.return(a());case 6:throw new Pqa(p,n);case 5:return x.return(l);case 2:q=
g.Da(x);if(q instanceof DOMException?"VersionError"!==q.name:"DOMError"in self&&q instanceof DOMError?"VersionError"!==q.name:!(q instanceof Object&&"message"in q)||"An attempt was made to open a database using a lower version than the existing version."!==q.message){x.Ka(8);break}return g.z(x,c.B(c.name,void 0,Object.assign({},e,{upgrade:void 0})),9);case 9:r=x.B;t=r.j.version;if(void 0!==c.options.version&&t>c.options.version+1)throw r.close(),c.C=!1,rra(c,t);return x.return(r);case 8:throw b(),
q instanceof Error&&!g.PB("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),Rqa(q,c.name,"",null!=(v=c.options.version)?v:-1);}})}
function b(){c.j===d&&(c.j=void 0)}
var c=this;if(!this.C)throw rra(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,Vca:b,upgrade:this.options.upgrade};return this.j=d=a()};var sra=new CD("YtIdbMeta",{jr:{databases:{cn:1}},upgrade:function(a,b){b(1)&&g.qD(a,"databases",{keyPath:"actualName"})}});var yra,wra=new function(){}(new function(){});new g.go;g.w(JD,CD);JD.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.shared?Dra:Cra)(a,b,Object.assign({},c))};
JD.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.shared?Hra:Era)(this.name,a)};var Ekb={},Jra=g.KD("ytGcfConfig",{jr:(Ekb.coldConfigStore={cn:1},Ekb.hotConfigStore={cn:1},Ekb),shared:!1,upgrade:function(a,b){b(1)&&(g.wD(g.qD(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.wD(g.qD(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.w(Pra,g.I);Pra.prototype.xa=function(){for(var a=g.u(this.B),b=a.next();!b.done;b=a.next()){var c=this.j;b=c.indexOf(b.value);0<=b&&c.splice(b,1)}this.B.length=0;g.I.prototype.xa.call(this)};QD.prototype.Dr=function(a){this.hotHashData=a;g.Va("yt.gcf.config.hotHashData",this.hotHashData||null)};var Fkb="undefined"!==typeof TextEncoder?new TextEncoder:null,Fsa=Fkb?function(a){return Fkb.encode(a)}:function(a){a=g.Cg(a);
for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};UD.prototype.Hk=function(){return{version:this.version,args:this.args}};VD.prototype.toString=function(){return this.topic};var Gkb=g.Wa("ytPubsub2Pubsub2Instance")||new g.zv;g.zv.prototype.subscribe=g.zv.prototype.subscribe;g.zv.prototype.unsubscribeByKey=g.zv.prototype.Ih;g.zv.prototype.publish=g.zv.prototype.ra;g.zv.prototype.clear=g.zv.prototype.clear;g.Va("ytPubsub2Pubsub2Instance",Gkb);var XD=g.Wa("ytPubsub2Pubsub2SubscribedKeys")||{};g.Va("ytPubsub2Pubsub2SubscribedKeys",XD);var YD=g.Wa("ytPubsub2Pubsub2TopicToKeys")||{};g.Va("ytPubsub2Pubsub2TopicToKeys",YD);var osa=g.Wa("ytPubsub2Pubsub2IsAsync")||{};
g.Va("ytPubsub2Pubsub2IsAsync",osa);g.Va("ytPubsub2Pubsub2SkipSubKey",null);var vsa=void 0,tsa=void 0;var Bsa=g.QB("max_body_size_to_compress",5E5),Csa=g.QB("min_body_size_to_compress",500),aE=!0,dE=0,cE=0,Gsa=g.QB("compression_performance_threshold_lr",250),Hsa=g.QB("slow_compressions_before_abandon_count",4),xsa=!1,$D=new Map,Esa=1,Dsa=!0;g.k=fE.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(eE(this)&&this.j){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Dh.set(d,this.Jf).then(function(e){d.id=e;c.kh.Th()&&c.XD(d)}).catch(function(e){c.XD(d);
gE(c,e)})}else this.sendFn(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(eE(this)&&this.j){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.kb&&this.kb("nwl_skip_retry")&&(e.skipRetry=c);if(this.kh.Th()||this.kb&&this.kb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.H(function(m){if(1==m.j)return g.z(m,d.Dh.set(e,d.Jf).catch(function(n){gE(d,n)}),2);
f(h,l);g.Aa(m)})}}this.sendFn(a,b,e.skipRetry)}else this.Dh.set(e,this.Jf).catch(function(h){d.sendFn(a,b,e.skipRetry);
gE(d,h)})}else this.sendFn(a,b,this.kb&&this.kb("nwl_skip_retry")&&c)};
g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(eE(this)&&this.j){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){};
d.options.onSuccess=function(h,l){void 0!==d.id?c.Dh.nz(d.id,c.Jf):e=!0;c.kh.Dw&&c.kb&&c.kb("vss_network_hint")&&c.kh.Dw(!0);f(h,l)};
this.sendFn(d.url,d.options,void 0,!0);this.Dh.set(d,this.Jf).then(function(h){d.id=h;e&&c.Dh.nz(d.id,c.Jf)}).catch(function(h){gE(c,h)})}else this.sendFn(a,b,void 0,!0)};
g.k.DB=function(){var a=this;if(!eE(this))throw Error("IndexedDB is not supported: throttleSend");this.B||(this.B=this.Pn.Xi(function(){var b;return g.H(function(c){if(1==c.j)return g.z(c,a.Dh.cX("NEW",a.Jf),2);if(3!=c.j)return b=c.B,b?g.z(c,a.XD(b),3):(a.WM(),c.return());a.B&&(a.B=0,a.DB());g.Aa(c)})},this.y0))};
g.k.WM=function(){this.Pn.Sj(this.B);this.B=0};
g.k.XD=function(a){var b=this,c;return g.H(function(d){switch(d.j){case 1:if(!eE(b))throw Error("IndexedDB is not supported: immediateSend");if(void 0===a.id){d.Ka(2);break}return g.z(d,b.Dh.T8(a.id,b.Jf),3);case 3:(c=d.B)||b.Iz(Error("The request cannot be found in the database."));case 2:if(b.uK(a,b.z_)){d.Ka(4);break}b.Iz(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){d.Ka(5);break}return g.z(d,b.Dh.nz(a.id,b.Jf),5);case 5:return d.return();case 4:a.skipRetry||
(a=Nsa(b,a));if(!a){d.Ka(0);break}if(!a.skipRetry||void 0===a.id){d.Ka(8);break}return g.z(d,b.Dh.nz(a.id,b.Jf),8);case 8:b.sendFn(a.url,a.options,!!a.skipRetry),g.Aa(d)}})};
g.k.uK=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0};
g.k.yK=function(){var a=this;if(!eE(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Dh.cX("QUEUED",this.Jf).then(function(b){b&&!a.uK(b,a.u_)?a.Pn.Xi(function(){return g.H(function(c){if(1==c.j)return void 0===b.id?c.Ka(2):g.z(c,a.Dh.wR(b.id,a.Jf),2);a.yK();g.Aa(c)})}):a.kh.Th()&&a.DB()})};var hE;var Pua={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,vrCowatchPartyEvent:492,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,mbsConnectionInitiated:138,
mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,kidsParentalGateTracking:168,
kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,
dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,
tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,
tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496};var Hkb={},Xsa=g.KD("ServiceWorkerLogsDatabase",{jr:(Hkb.SWHealthLog={cn:1},Hkb),shared:!0,upgrade:function(a,b){b(1)&&g.wD(g.qD(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var dta={},cta=0;kE.prototype.requestComplete=function(a,b){b&&(this.B=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
kE.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.B?!0:null};
kE.prototype.removeParams=function(a){return a.split("?")[0]};
kE.prototype.removeParams=kE.prototype.removeParams;kE.prototype.isEndpointCFR=kE.prototype.isEndpointCFR;kE.prototype.requestComplete=kE.prototype.requestComplete;kE.getInstance=lE;var fta;g.w(nE,g.Ld);g.k=nE.prototype;g.k.Th=function(){return this.j.Th()};
g.k.Dw=function(a){this.j.j=a};
g.k.z7=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.A6=function(){this.B=!0};
g.k.Ta=function(a,b){return this.j.Ta(a,b)};
g.k.DK=function(a){a=Gu(this.j,a);a.then(function(b){g.PB("use_cfr_monitor")&&lE().requestComplete("generate_204",b)});
return a};
nE.prototype.sendNetworkCheckRequest=nE.prototype.DK;nE.prototype.listen=nE.prototype.Ta;nE.prototype.enableErrorFlushing=nE.prototype.A6;nE.prototype.getWindowStatus=nE.prototype.z7;nE.prototype.networkStatusHint=nE.prototype.Dw;nE.prototype.isNetworkAvailable=nE.prototype.Th;nE.getInstance=hta;g.w(g.oE,g.Ld);g.oE.prototype.Th=function(){var a=g.Wa("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.B)():!0};
g.oE.prototype.Dw=function(a){var b=g.Wa("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);b&&b(a)};
g.oE.prototype.DK=function(a){var b=this,c;return g.H(function(d){c=g.Wa("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.B);return g.PB("skip_network_check_if_cfr")&&lE().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Dw((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Th())})):c?d.return(c(a)):d.return(!0)})};var jta;g.w(pE,fE);pE.prototype.writeThenSend=function(a,b){b||(b={});b=nta(a,b);g.SC()||(this.j=!1);fE.prototype.writeThenSend.call(this,a,b)};
pE.prototype.sendThenWrite=function(a,b,c){b||(b={});b=nta(a,b);g.SC()||(this.j=!1);fE.prototype.sendThenWrite.call(this,a,b,c)};
pE.prototype.sendAndWrite=function(a,b){b||(b={});b=nta(a,b);g.SC()||(this.j=!1);fE.prototype.sendAndWrite.call(this,a,b)};
pE.prototype.awaitInitialization=function(){return this.C.promise};var ota=g.Sa.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Va("ytNetworklessLoggingInitializationOptions",ota);g.rE.prototype.isReady=function(){!this.config_&&bsa()&&(this.config_=g.SD());return!!this.config_};var Ikb,uE,wE;Ikb=g.Sa.ytPubsubPubsubInstance||new g.zv;uE=g.Sa.ytPubsubPubsubSubscribedKeys||{};wE=g.Sa.ytPubsubPubsubTopicToKeys||{};g.vE=g.Sa.ytPubsubPubsubIsSynchronous||{};g.zv.prototype.subscribe=g.zv.prototype.subscribe;g.zv.prototype.unsubscribeByKey=g.zv.prototype.Ih;g.zv.prototype.publish=g.zv.prototype.ra;g.zv.prototype.clear=g.zv.prototype.clear;g.Va("ytPubsubPubsubInstance",Ikb);g.Va("ytPubsubPubsubTopicToKeys",wE);g.Va("ytPubsubPubsubIsSynchronous",g.vE);
g.Va("ytPubsubPubsubSubscribedKeys",uE);var tta=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,uta=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,xta={};g.w(CE,g.I);CE.prototype.append=function(a){if(!this.B)throw Error("This does not support the append operation");a=a.Kb();this.Kb().appendChild(a)};
g.w(DE,CE);DE.prototype.Kb=function(){return this.j};g.w(Cta,g.I);var EE=Date.now().toString();var Hta={};var ME=Symbol("injectionDeps");KE.prototype.toString=function(){return"InjectionToken("+this.name+")"};
Ita.prototype.resolve=function(a){return a instanceof LE?NE(this,a.key,[],!0):NE(this,a,[])};var Lta;var PE=window;var QE=g.PB("web_enable_lifecycle_monitoring")&&0!==Mta(),Vta=g.PB("web_enable_lifecycle_monitoring");Qta.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.iK||this.scheduler.Sj(b.jobId),b.iK=!0;this.B.resolve()};g.k=RE.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;QE&&Ota(this.state);var d=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(h){return h===c.state&&f.to===a}):f.from===c.state&&f.to===a});
if(d){this.B&&(Rta(this.B),this.B=void 0);Wta(this,a,b);this.state=a;QE&&Nta(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]});
d(Tta(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);};
g.k.gca=function(a){var b=g.Ia.apply(1,arguments);g.XC();for(var c=g.u(a),d=c.next(),e={};!d.done;e={qE:void 0},d=c.next())e.qE=d.value,Gqa(function(f){return function(){Uta(f.qE.name);f.qE.callback.apply(f.qE,g.pa(b));SE(f.qE.name)}}(e))};
g.k.fca=function(a){var b=g.Ia.apply(1,arguments),c,d,e,f;return g.H(function(h){1==h.j&&(g.XC(),c=g.u(a),d=c.next(),e={});if(3!=h.j){if(d.done)return h.Ka(0);e.jA=d.value;e.WG=void 0;f=function(l){return function(){Uta(l.jA.name);var m=l.jA.callback.apply(l.jA,g.pa(b));"function"===typeof(null==m?void 0:m.then)?l.WG=m.then(function(){SE(l.jA.name)}):SE(l.jA.name)}}(e);
Gqa(f);return e.WG?g.z(h,e.WG,3):h.Ka(3)}e={jA:void 0,WG:void 0};d=c.next();return h.Ka(2)})};
g.k.U_=function(a){var b=g.Ia.apply(1,arguments),c=this,d=a.map(function(e){return{rP:function(){Uta(e.name);e.callback.apply(e,g.pa(b));SE(e.name)},
priority:Sta(c,e)}});
d.length&&(this.B=new Qta(d))};
g.ha.Object.defineProperties(RE.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Xta;g.w(TE,RE);TE.prototype.G=function(a,b){var c=this;this.j=g.VC(0,function(){"application_navigating"===c.currentState&&c.transition("none")},5E3);
a(null==b?void 0:b.event)};
TE.prototype.K=function(a,b){this.j&&(g.Iu.Sj(this.j),this.j=null);a(null==b?void 0:b.event)};var Kua=[];g.Va("yt.logging.transport.getScrapedGelPayloads",function(){return Kua});UE.prototype.storePayload=function(a,b){a=Zta(a);this.store[a]?this.store[a].push(b):(this.B={},this.store[a]=[b]);this.j++;return a};
UE.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=$ta(this,a.keys.splice(0,1)[0]),c=[],d=0;d<b.length;d++)this.store[b[d]]&&a.sizeLimit&&(this.store[b[d]].length<=a.sizeLimit?(c.push.apply(c,g.pa(this.store[b[d]])),delete this.store[b[d]]):c.push.apply(c,g.pa(this.store[b[d]].splice(0,a.sizeLimit))));this.j-=c.length;(null==a?0:a.sizeLimit)&&c.length<(null==a?void 0:a.sizeLimit)&&(a.sizeLimit-=c.length,c.push.apply(c,g.pa(this.smartExtractMatchingEntries(a))));
return c};
UE.prototype.extractMatchingEntries=function(a){a=$ta(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,g.pa(this.store[a[c]])),delete this.store[a[c]]);this.j-=b.length;return b};
UE.prototype.getSequenceCount=function(a){a=$ta(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};
UE.prototype.getSequenceCount=UE.prototype.getSequenceCount;UE.prototype.extractMatchingEntries=UE.prototype.extractMatchingEntries;UE.prototype.smartExtractMatchingEntries=UE.prototype.smartExtractMatchingEntries;UE.prototype.storePayload=UE.prototype.storePayload;var xua=g.QB("initial_gel_batch_timeout",2E3),wua=g.QB("gel_queue_timeout_max_ms",6E4),Jua=Math.pow(2,16)-1,yua=g.QB("gel_min_batch_size",5),cF=void 0,Oua=new WE,Nua=new WE,vua=new WE,uua=new WE,nua,gF=!0,Iua=1,YE=new Map,fF=g.Sa.ytLoggingTransportTokensToCttTargetIds_||{};g.Va("ytLoggingTransportTokensToCttTargetIds_",fF);var eF=g.Sa.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Va("ytLoggingTransportTokensToJspbCttTargetIds_",eF);var aF={},aua=!1;var hF=g.Sa.ytLoggingGelSequenceIdObj_||{};g.Va("ytLoggingGelSequenceIdObj_",hF);var Tua,jF,Uua,Wua=g.rE,Sua=!1,Zua=[];var ava=g.Sa.ytLoggingGelSequenceIdObj_||{};g.Va("ytLoggingGelSequenceIdObj_",ava);var R2=g.Sa.ytLoggingDocDocumentNonce_;R2||(R2=g.GE(16),g.Va("ytLoggingDocDocumentNonce_",R2));var tva=R2;var qva={V1:0,Esa:1,Qta:2,kM:3,jwa:4,cjb:5,NUa:6,V4a:7,A2a:8,i4a: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 iva=1;g.k=nF.prototype;g.k.getAsJson=function(){var a={};void 0!==this.j.trackingParams?a.trackingParams=this.j.trackingParams:(a.veType=this.j.veType,void 0!==this.j.veCounter&&(a.veCounter=this.j.veCounter),void 0!==this.j.elementIndex&&(a.elementIndex=this.j.elementIndex));void 0!==this.j.dataElement&&(a.dataElement=this.j.dataElement.getAsJson());void 0!==this.j.youtubeData&&(a.youtubeData=this.j.youtubeData);this.j.isCounterfactual&&(a.isCounterfactual=!0);return a};
g.k.getAsJspb=function(){var a=new tA;void 0!==this.j.trackingParams?a.setTrackingParams(this.j.trackingParams):(void 0!==this.j.veType&&vk(a,2,this.j.veType),void 0!==this.j.veCounter&&vk(a,6,this.j.veCounter),void 0!==this.j.elementIndex&&vk(a,3,this.j.elementIndex),this.j.isCounterfactual&&uk(a,5,!0));if(void 0!==this.j.dataElement){var b=this.j.dataElement.getAsJspb();Sj(a,tA,7,b)}void 0!==this.j.youtubeData&&Sj(a,Dy,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.Va("yt_logging_screen.getRootVeType",nva);g.Va("yt_logging_screen.getCurrentCsn",g.qF);g.Va("yt_logging_screen.getCttAuthInfo",rF);g.Va("yt_logging_screen.setCurrentScreen",uva);var yva="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Lva=[{MP:function(a){return"Cannot read property '"+a.key+"'"},
XJ:{Error:[{Ij:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Ij:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Ij:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Ij:/\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"]},{Ij:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Ij:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Ij:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{MP:function(a){return"Cannot call '"+a.key+"'"},
XJ:{TypeError:[{Ij:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Ij:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Ij:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Ij:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Ij:/\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"]},
{Ij:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{MP:function(a){return a.key+" is not defined"},
XJ:{ReferenceError:[{Ij:/(.*) is not defined/,groups:["key"]},{Ij:/Can't find variable: (.*)/,groups:["key"]}]}}];var Dva={ir:[],ys:[{callback:zva,weight:500}]};var Bva;var vF=new g.zv;var Mva=new Set,Jva=0,Pva=0,Ova=0,Kva=[],Rva=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Tva=new g.Gw("parallelCommand");var Wva=new g.Gw("performOnceCommand");var Vva=new g.Gw("serialCommand");var yF=void 0;g.w(Zva,UD);var bwa=new VD("screen-created",Zva),GF=[],$va=mwa,nwa=0,CF=new Map,cwa=new Map,dwa=new Map;g.ob(g.NF,g.I);g.NF.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.zj.subscribe(a,b,c)};
g.NF.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.zj.unsubscribe(a,b,c)};
g.NF.prototype.Ih=function(a){return this.isDisposed()?!1:this.zj.Ih(a)};
g.NF.prototype.ra=function(a,b){return this.isDisposed()?!1:this.zj.ra.apply(this.zj,arguments)};var z4a=16/9,Jkb=[.25,.5,.75,1,1.25,1.5,1.75,2],Kkb=Jkb.concat([3,4,5,6,7,8,9,10,15]);var pwa=1;g.w(g.RF,g.I);g.k=g.RF.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.I;var c=a.S,d=a.La;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.I);g.nS&&(a.X||(a.X={}),a.X.focusable="false")}else e=g.If(a.I);if(c){if(c=SF(this,e,"class",c))TF(this,e,"class",c),this.Nb[c]=e}else if(d){c=g.u(d);for(var f=c.next();!f.done;f=c.next())this.Nb[f.value]=e;TF(this,e,"class",d.join(" "))}d=a.ya;c=a.V;if(d)b=SF(this,e,"child",d),void 0!==b&&e.appendChild(g.Nf(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=SF(this,e,"child",f),null!=f&&e.appendChild(g.Nf(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Ic&&(h=QF(),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),Qf(e,f,d++))}if(a=a.X)for(b=e,d=g.u(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],TF(this,b,c,"string"===typeof f?
SF(this,b,c,f):f);return e};
g.k.Ga=function(a){return this.Nb[a]};
g.k.Ja=function(a,b){"number"===typeof b?Qf(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.Rf(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.Ee["{{"+a+"}}"])&&TF(this,a[0],a[1],b)};
g.k.xa=function(){this.Nb={};this.Ee={};this.detach();g.I.prototype.xa.call(this)};g.w(g.V,g.RF);g.k=g.V.prototype;g.k.Ud=function(a,b){this.updateValue(b||"content",a)};
g.k.show=function(){this.Jb||(g.ks(this.element,"display",""),this.Jb=!0)};
g.k.hide=function(){this.Jb&&(g.ks(this.element,"display","none"),this.Jb=!1)};
g.k.Nc=function(a){this.Z=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.ib)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.Tc=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;Wf(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.RF.prototype.xa.call(this)};g.w(g.VF,g.V);g.VF.prototype.subscribe=function(a,b,c){return this.Ra.subscribe(a,b,c)};
g.VF.prototype.unsubscribe=function(a,b,c){return this.Ra.unsubscribe(a,b,c)};
g.VF.prototype.Ih=function(a){return this.Ra.Ih(a)};
g.VF.prototype.ra=function(a){return this.Ra.ra.apply(this.Ra,[a].concat(g.pa(g.Ia.apply(1,arguments))))};var Lkb=new WeakSet;g.w(WF,g.VF);g.k=WF.prototype;g.k.bind=function(a){this.fb||a.renderer&&this.init(a.id,a.renderer,{},a);return Promise.resolve()};
g.k.init=function(a,b,c){this.fb=a;this.element.setAttribute("id",this.fb);this.ub&&g.Yu(this.element,this.ub);this.ma=b&&b.adRendererCommands;this.Ma=b.interaction;var d;(null==(d=this.Ma)?0:d.onTap)&&g.Yu(this.element,"ytp-ad-component--clickable");this.macros=c;this.N=b.trackingParams||null;this.K=b.loggingDirectives;null!=this.N?this.createServerVe(this.element,this.N):this.K&&(a=this.element,b=this.K,this.api.createServerVe(a,this,!0),this.api.setTrackingParams(a,b.trackingParams||null))};
g.k.clear=function(){};
g.k.hide=function(){g.VF.prototype.hide.call(this);(null!=this.N||this.K)&&this.logVisibility(this.element,!1)};
g.k.show=function(){g.VF.prototype.show.call(this);if(!this.Gb){this.Gb=!0;var a=this.ma&&this.ma.impressionCommand,b,c=null==(b=this.Ma)?void 0:b.onFirstVisible;a?this.IF(a):c&&(a=zF(c))&&this.IF(a)}(null!=this.N||this.K)&&this.logVisibility(this.element,!0)};
g.k.onClick=function(a){if((this.N||this.K)&&!Lkb.has(a)){var b=this.element;this.api.hasVe(b)&&this.Jb&&this.api.logClick(b,this.interactionLoggingClientData);Lkb.add(a)}var c=this.ma&&this.ma.clickCommand,d;b=null==(d=this.Ma)?void 0:d.onTap;if(c)b=this.s_(c),this.IF(b);else{if(d=b)a:{d=this.element;a=a.composedPath();a=g.u(a);for(c=a.next();!c.done;c=a.next()){c=c.value;if(c===d)break;if(0<=c.className.indexOf("ytp-ad-component--clickable")){d=!1;break a}}d=!0}d&&(b=zF(b))&&this.IF(b)}};
g.k.s_=function(a){return a};
g.k.Q3=function(a){var b=this.Ca;b.N=!0;b.B=a.touches.length;b.j.isActive()&&(b.j.stop(),b.G=!0);a=a.touches;b.K=Dta(b,a)||1!=a.length;var c=a.item(0);b.K||!c?(b.Z=Infinity,b.Y=Infinity):(b.Z=c.clientX,b.Y=c.clientY);for(c=b.C.length=0;c<a.length;c++){var d=a.item(c);b.C.push(d.identifier)}};
g.k.P3=function(a){var b=this.Ca;a=a.changedTouches.item(0);var c;if(c=Nc()){c=g.pc();var d="";if(Saa())d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0";else if(Nc())d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".");else if(Oc())d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10";else if(jc(g.pc(),"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(Hc()?"Chrome OS"===
tc.platform:xc("CrOS"))d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,d=(c=d.exec(c))&&c[1];c=!(0<=g.oc(d||"",8))}if(c||a&&Math.pow(a.clientX-b.Z,2)+Math.pow(a.clientY-b.Y,2)>Math.pow(5,2))b.D=!0};
g.k.O3=function(a){if(this.Ca){var b=this.Ca,c=a.changedTouches;c&&b.N&&1==b.B&&!b.D&&!b.G&&!b.K&&Dta(b,c)&&(b.ma=a,b.j.start());b.B=a.touches.length;0===b.B&&(b.N=!1,b.D=!1,b.C.length=0);b.G=!1}};
g.k.IF=function(a){this.layoutId?this.jb.executeCommand(a,this.layoutId):g.tF(new g.QC("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
g.k.createServerVe=function(a,b){this.api.createServerVe(a,this);this.api.setTrackingParams(a,b)};
g.k.logVisibility=function(a,b){this.api.hasVe(a)&&this.api.logVisibility(a,b,this.interactionLoggingClientData)};
g.k.xa=function(){this.clear(null);this.Tc(this.tb);for(var a=g.u(this.Ia),b=a.next();!b.done;b=a.next())this.Tc(b.value);g.VF.prototype.xa.call(this)};g.w(fG,WF);
fG.prototype.init=function(a,b,c){WF.prototype.init.call(this,a,b,c);this.j=b;if(null==b.text&&null==b.icon)g.uF(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.Yu(this.element,a);null!=b.text&&(a=g.YF(b.text),g.fc(a)||(this.element.setAttribute("aria-label",a),this.C=new g.VF({I:"span",S:"ytp-ad-button-text",ya:a}),g.N(this,this.C),this.C.Ja(this.element)));this.api.U().L("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&&
b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.fc(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);null!=b.icon&&(b=eG(b.icon),null!=b&&(this.B=new g.VF({I:"span",S:"ytp-ad-button-icon",V:[b]}),g.N(this,this.B)),this.D?Qf(this.element,this.B.element,0):this.B.Ja(this.element))}};
fG.prototype.clear=function(){this.hide()};
fG.prototype.onClick=function(a){WF.prototype.onClick.call(this,a);a=g.u(Swa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.tF(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(gG,g.I);gG.prototype.xa=function(){this.B&&g.AC(this.B);this.j.clear();nG=null;g.I.prototype.xa.call(this)};
gG.prototype.register=function(a,b){b&&this.j.set(a,b)};
var nG=null;g.w(qG,WF);
qG.prototype.init=function(a,b,c){WF.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.U(b.button,g.JM)||null;null==b?g.tF(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),g.N(this,this.button),this.button.init(LF("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.YF(a)),this.button.Ja(this.element),this.G&&!g.Xu(this.button.element,"ytp-ad-clickable")&&g.Yu(this.button.element,
"ytp-ad-clickable"),a&&(this.B=new g.VF({I:"div",S:"ytp-ad-hover-text-container"}),this.D&&(b=new g.VF({I:"div",S:"ytp-ad-hover-text-callout"}),b.Ja(this.B.element),g.N(this,b)),g.N(this,this.B),this.B.Ja(this.element),b=oG(a),Qf(this.B.element,b,0)),this.show())};
qG.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();WF.prototype.hide.call(this)};
qG.prototype.show=function(){this.button&&this.button.show();WF.prototype.show.call(this)};g.w(sG,WF);
sG.prototype.init=function(a,b,c){WF.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&rG(a)||"";g.fc(c)?.01>Math.random()&&g.uF(Error("Found AdImage without valid image URL")):(this.j?g.ks(this.element,"backgroundImage","url("+c+")"):Bf(this.element,{src:c}),Bf(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())};
sG.prototype.clear=function(){this.hide()};g.w(tG,WF);g.k=tG.prototype;g.k.hide=function(){WF.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.C=document.activeElement;WF.prototype.show.call(this);this.D.focus()};
g.k.init=function(a,b,c){WF.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.tF(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.tF(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Wwa(this,b):g.tF(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.FC(this.j);this.hide()};
g.k.hQ=function(){this.hide()};
g.k.VL=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.jb.executeCommand(a,this.layoutId):g.tF(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.k.iQ=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.jb.executeCommand(a,this.layoutId):g.tF(Error("Missing layoutId for confirm dialog.")));this.hide()};g.w(uG,WF);g.k=uG.prototype;
g.k.init=function(a,b,c){WF.prototype.init.call(this,a,b,c);this.C=b;if(null==b.defaultText&&null==b.defaultIcon)g.tF(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.tF(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.Yu(this.D,a)}a={};b.defaultText?
(c=g.YF(b.defaultText),g.fc(c)||(a.buttonText=c,this.api.U().experiments.kb("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",c),this.api.U().experiments.kb("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",c))):g.xs(this.Ea,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.B.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=eG(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.va=
!0,c=eG(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.xs(this.Y,!0),g.xs(this.G,!1)),g.xs(this.j,!1)):g.xs(this.B,!1);g.md(a)||this.update(a);b.isToggled&&(g.Yu(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));Xwa(this);this.T(this.element,"change",this.ZT);this.show()}};
g.k.onClick=function(a){0<this.Ia.length&&(this.toggleButton(!this.isToggled()),this.ZT());WF.prototype.onClick.call(this,a)};
g.k.ZT=function(){g.bv(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.u(Ywa(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.tF(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Xwa(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.bv(this.D,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;Xwa(this)};
g.k.isToggled=function(){return this.j.checked};g.w(vG,DC);vG.prototype.K=function(a){if(Array.isArray(a)){a=g.u(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof Zwa&&this.D(b)}};g.w($wa,WF);g.k=$wa.prototype;g.k.init=function(a,b,c){WF.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.tF(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.uF(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.uF(Error("AdFeedbackRenderer.title was not set.")),dxa(this,b)):g.tF(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){mqa(this.G);mqa(this.Y);this.D.length=0;this.hide()};
g.k.hide=function(){this.j&&this.j.hide();this.B&&this.B.hide();WF.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.j&&this.j.show();this.B&&this.B.show();this.C=document.activeElement;WF.prototype.show.call(this);this.G.focus()};
g.k.mZ=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.ra("a");this.hide()};
g.k.Yaa=function(){this.hide()};
exa.prototype.Kb=function(){return this.j.element};
exa.prototype.isChecked=function(){return this.C.checked};g.w(wG,tG);wG.prototype.hQ=function(a){tG.prototype.hQ.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
wG.prototype.VL=function(a){tG.prototype.VL.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
wG.prototype.iQ=function(a){tG.prototype.iQ.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.ra("b")};g.w(fxa,WF);g.k=fxa.prototype;
g.k.init=function(a,b,c){WF.prototype.init.call(this,a,b,c);this.G=b;if(null==b.dialogMessage&&null==b.title)g.tF(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.uF(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.U(b.closeOverlayRenderer,g.JM)||null)this.j=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.N(this,this.j),this.j.init(LF("button"),a,this.macros),this.j.Ja(this.element);b.title&&(a=g.YF(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=oG(a[c]);if(!g.fc(d.textContent)){var e=Hf("LI");e.appendChild(d);this.Na.appendChild(e)}}else g.xs(this.Na,!1);b.dialogMessage&&(a=oG(b.dialogMessage,!0),this.Xa.appendChild(a));b.confirmLabel&&(a=g.YF(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=g.U(b.muteAdRenderer,g.JM)||null)&&
(a=b.navigationEndpoint&&g.U(b.navigationEndpoint,Xjb)||null,c=b.navigationEndpoint&&g.U(b.navigationEndpoint,zib)||null,null==a&&null==c?g.uF(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?gxa(this,a):c&&hxa(this,c),this.C=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.N(this,this.C),this.C.init(LF("button"),b,this.macros),this.C.Ta("click",
this.z$,this),this.C.Ja(this.Za)));ixa(this)}};
g.k.clear=function(){mqa(this.Y);this.hide()};
g.k.hide=function(){this.B?this.B.hide():this.D&&this.D.hide();this.j&&this.j.hide();this.C&&this.C.hide();WF.prototype.hide.call(this);this.va&&this.va.focus()};
g.k.show=function(){this.j&&this.j.show();this.C&&this.C.show();if(!this.Wa){for(var a=g.u(this.G&&this.G.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.tF(Error("Missing layoutId for ad info dialog."));this.Wa=!0}this.va=document.activeElement;WF.prototype.show.call(this);this.Y.focus()};
g.k.aU=function(){if(this.G&&this.G.confirmServiceEndpoint){var a=this.G.confirmServiceEndpoint;this.layoutId?this.jb.executeCommand(a,this.layoutId):g.tF(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.ra("d");this.hide()};
g.k.z$=function(){var a=this.B?this.B:this.D;a&&!a.Jb&&(this.hide(),a.show())};g.w(xG,qG);xG.prototype.init=function(a,b,c){qG.prototype.init.call(this,a,b,c);a=b.button&&g.U(b.button,g.JM)||null;null!=a&&(nxa(this,a,c),this.show())};
xG.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();qG.prototype.hide.call(this)};
xG.prototype.show=function(){this.button&&this.button.show();qG.prototype.show.call(this)};
xG.prototype.clear=function(){this.hide()};g.w(yG,WF);
yG.prototype.init=function(a,b,c){WF.prototype.init.call(this,a,b,c);this.j=b;this.isTemplated()||g.Vf(this.element,XF(this.j));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?rG(a):"",c=(c=this.api.getVideoData(1))&&c.Jl,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.gf(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()};
yG.prototype.isTemplated=function(){return this.j.isTemplated||!1};
yG.prototype.clear=function(){this.hide()};var Bxa={seekableStart:0,seekableEnd:1,current:0};g.w(zG,WF);zG.prototype.clear=function(){this.dispose()};g.w(g.CG,g.I);g.k=g.CG.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.MG(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.Jb||(DG(this,!0),this.state=1,a?this.delay.start(a):this.MG()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Jb&&(DG(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.MG=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:DG(this,!1);this.state=3;this.delay.start(this.B);break;case 3:this.state=null;this.j&&this.j();break;case 4:this.element.hide();DG(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.MG()};
g.k.xa=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.I.prototype.xa.call(this)};g.w(EG,zG);g.k=EG.prototype;
g.k.init=function(a,b,c){zG.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.tF(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.ib&&(this.D?g.Yu(this.B.element,"modern-countdown-next-to-thumbnail"):g.Yu(this.B.element,"countdown-next-to-thumbnail"));a=b.durationMilliseconds;this.Na=null==a||0===a?this.j.gm():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);
this.C.init(LF("ad-text"),d,c);(d=this.api.getVideoData(1))&&d.Jl&&b.thumbnail?this.G.init(LF("ad-image"),b.thumbnail,c):(this.va.hide(),this.D&&this.ib&&g.Yu(this.C.element,"ytp-ad-preview-text-modern-postroll"))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.C.hide();this.G.hide();BG(this);zG.prototype.hide.call(this)};
g.k.show=function(){AG(this);this.B.show();this.C.show();this.G.show();zG.prototype.show.call(this)};
g.k.Tp=function(){this.hide()};
g.k.oo=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Xa&&a>=this.Na?(this.Ea.hide(),this.Xa=!0,this.ra("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Na-a)/1E3)),a!=this.Za&&(oxa(this.C,{TIME_REMAINING:String(a)}),this.Za=a)))}};g.w(qxa,zG);g.k=qxa.prototype;
g.k.init=function(a,b,c){zG.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.U(b.actionButton,g.JM))&&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.fc(g.gf(e[0].url))&&(e[0].url=d.profilePicture)}else g.uF(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(LF("ad-image"),b.image,c);this.G.init(LF("ad-text"),
b.headline,c);this.D.init(LF("ad-text"),b.description,c);this.B.init(LF("button"),a,c);c=Nu(this.B.element);Mu(this.B.element,c+" This link opens in new tab");this.va=a.navigationEndpoint;this.api.iE()||this.show();this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.Ga("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Ga("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Ga("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"),
this.Ga("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Ga("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Ga("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Ga("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large"));
this.api.addEventListener("playerUnderlayVisibilityChange",this.bU.bind(this));this.Ea=b.startMs||0;AG(this)}else g.tF(Error("FlyoutCtaRenderer has no valid action button."));else g.tF(Error("FlyoutCtaRenderer has no description AdText."));else g.tF(Error("FlyoutCtaRenderer has no headline AdText."));else g.uF(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){zG.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Uf(this.B.element,a.target)&&this.va&&(this.layoutId?this.jb.executeCommand(this.va,this.layoutId):g.tF(Error("Missing layoutId for flyout cta.")))};
g.k.oo=function(){if(this.j){var a=this.j.getProgressState();(a&&a.current||this.Na)&&1E3*a.current>=this.Ea&&(BG(this),g.$u(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}};
g.k.Tp=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.bU.bind(this))};
g.k.show=function(){this.B&&this.B.show();zG.prototype.show.call(this)};
g.k.hide=function(){this.B&&this.B.hide();zG.prototype.hide.call(this)};
g.k.bU=function(a){"hidden"==a?this.show():this.hide()};g.w(rxa,WF);g.k=rxa.prototype;
g.k.init=function(a,b,c){WF.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.U(this.j.likeButton,L2),b=this.j.dislikeButton&&g.U(this.j.dislikeButton,L2),this.C.init(LF("toggle-button"),a,c),this.B.init(LF("toggle-button"),b,c),this.T(this.element,"change",this.cU),this.D.show(100),this.show(),c=g.u(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.jb.executeCommand(a,this.layoutId):g.tF(Error("Missing layoutId for instream user sentiment."))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.B.hide();WF.prototype.hide.call(this)};
g.k.show=function(){this.C.show();this.B.show();WF.prototype.show.call(this)};
g.k.cU=function(){$ka(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.ob("onYtShowToast",this.j.postMessageAction);this.D.hide()};
g.k.onClick=function(a){0<this.Ia.length&&this.cU();WF.prototype.onClick.call(this,a)};g.w(FG,g.I);g.k=FG.prototype;g.k.xa=function(){this.reset();g.I.prototype.xa.call(this)};
g.k.reset=function(){g.FC(this.D);this.K=!1;this.j&&this.j.stop();this.G.stop();this.C&&(this.C=!1,this.N.play())};
g.k.start=function(){this.reset();this.D.T(this.B,"mouseover",this.eU,this);this.D.T(this.B,"mouseout",this.dU,this);this.ma&&(this.D.T(this.B,"focusin",this.eU,this),this.D.T(this.B,"focusout",this.dU,this));this.j?this.j.start():(this.K=this.C=!0,g.ks(this.B,{opacity:this.Y}))};
g.k.eU=function(){this.C&&(this.C=!1,this.N.play());this.G.stop();this.j&&this.j.stop()};
g.k.dU=function(){this.K?this.G.start():this.j&&this.j.start()};
g.k.xV=function(){this.C||(this.C=!0,this.Z.play(),this.K=!0)};g.w(MG,zG);g.k=MG.prototype;
g.k.init=function(a,b,c){zG.prototype.init.call(this,a,b,c);this.va=b;(this.Ea=yxa(this))&&g.uF(Error("hasAdControlInClickCommands_ is true."));if(!b||g.md(b))g.tF(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.md(b.message))g.tF(Error("SkipButtonRenderer.message was not specified or empty."));else{a=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};b=eG(a);null==b?g.tF(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")):
(this.C=new g.VF({I:"button",La:[this.G?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{I:"span",S:this.G?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[b]}]}),g.N(this,this.C),this.C.Ja(this.D.element),this.B=new yG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,"ytp-ad-skip-button-text"),this.G&&this.B.element.classList.add("ytp-ad-skip-button-text-centered"),this.B.init(LF("ad-text"),this.va.message,c),g.N(this,this.B),Qf(this.C.element,this.B.element,
0));var d=void 0===d?null:d;c=this.api.U();!(0<this.Ia.length)&&c.B&&(SR?0:"ontouchstart"in document.documentElement&&(tha()||wr()))&&(this.Tc(this.tb),d&&this.Tc(d),this.Ia=[this.T(this.element,"touchstart",this.Q3,this),this.T(this.element,"touchmove",this.P3,this),this.T(this.element,"touchend",this.O3,this)])}};
g.k.clear=function(){this.Na.reset();this.hide()};
g.k.hide=function(){this.D.hide();this.B&&this.B.hide();BG(this);zG.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.C){if(a){var b=a||window.event;b.returnValue=!1;b.preventDefault&&b.preventDefault()}var c;b=(null==(c=this.api.getVideoData(1))?void 0:c.clientPlaybackNonce)||"";if(!this.api.U().L("ab_sa_ef")||0!==GG(a,{contentCpn:b}))if(zG.prototype.onClick.call(this,a),this.api.U().L("ab_sa_ef")||GG(a,{contentCpn:b}),this.ra("j"),this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.ob("onAdSkip"),this.Xa||!this.Ea)this.api.onAdUxClicked(this.componentType,
this.layoutId)}};
g.k.s_=function(a){if(!this.Xa)return this.Ea&&HG("SkipButton click commands not pruned while ALC exist"),a;var b,c=null==(b=g.U(a,g.NG))?void 0:b.commands;if(!c)return a;a=[];for(b=0;b<c.length;b++){var d=c[b];d.adLifecycleCommand&&xxa(d.adLifecycleCommand)||d.pingingEndpoint||d.adPingingEndpoint||a.push(d)}return{commandExecutorCommand:{commands:a}}};
g.k.show=function(){this.Na.start();this.D.show();this.B&&this.B.show();AG(this);zG.prototype.show.call(this);this.Za&&this.api.U().L("enable_skip_to_next_messaging")&&this.api.ra("showpromotooltip",this.element)};
g.k.Tp=function(){this.ra("k")};
g.k.oo=function(){};g.w(OG,zG);g.k=OG.prototype;
g.k.init=function(a,b,c){zG.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&g.U(b.preskipRenderer,IM)||{};(a=g.md(a)?null:a)?(this.G=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3,this.B=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j,"countdown_next_to_thumbnail"==AR(this.api.U().experiments,"preskip_button_style_ads_backend")&&xJ(this.api.U())),this.B.init(LF("preskip-component"),a,c),pxa(this.B),g.N(this,this.B),this.B.Ja(this.element)):
b.skipOffsetMilliseconds&&(this.G=b.skipOffsetMilliseconds);a=b&&b.skippableRenderer&&g.U(b.skippableRenderer,qib)||{};a=g.md(a)?null:a;null==a?g.tF(Error("SkipButtonRenderer was not set in player response.")):(this.C=new MG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j,this.va),this.C.init(LF("skip-button"),a,c),g.N(this,this.C),this.C.Ja(this.element),this.api.U().experiments.kb("enable_skip_to_next_messaging")&&(b=g.gf(b.targetId))&&(c=this.C,null!=c.C&&(c.Za=!0,c.C.element.setAttribute("data-tooltip-target-id",
b),c.C.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
g.k.show=function(){this.D&&this.C?this.C.show():this.B&&this.B.show();AG(this);zG.prototype.show.call(this)};
g.k.Tp=function(){};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();BG(this);zG.prototype.hide.call(this)};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();BG(this);zG.prototype.hide.call(this)};
g.k.oo=function(){1E3*this.j.getProgressState().current>=this.G&&zxa(this,!0)};g.w(Axa,fG);Axa.prototype.init=function(a,b,c){fG.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.YF(b.text),a=!g.fc(a));a?null==b.navigationEndpoint?g.uF(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.uF(Error("Button style was not a link-style type in renderer,")):this.show():g.uF(Error("No visit advertiser text was present in the renderer."))};g.w(PG,WF);
PG.prototype.init=function(a,b,c){WF.prototype.init.call(this,a,b,c);a=b.text;g.fc(XF(a))?g.uF(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.B&&(b=this.api.U(),b=a.text+" "+(b&&b.B?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new yG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),a.init(LF("simple-ad-badge"),b,c),a.Ja(this.element),g.N(this,a)),this.api.U().experiments.kb("enable_unified_ad_badge_style_fix")&&this.C&&
this.j.classList.add("ytp-ad-simple-ad-badge-unified"),this.show())};
PG.prototype.clear=function(){this.hide()};g.w(QG,MF);g.w(RG,g.NF);g.k=RG.prototype;g.k.gm=function(){return this.durationMs};
g.k.stop=function(){this.j&&this.Id.Tc(this.j)};
g.k.Rc=function(a){this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ra("h")};
g.k.getProgressState=function(){return this.B};
g.k.R3=function(a){g.LG(a,2)&&this.ra("g")};g.w(SG,g.NF);g.k=SG.prototype;g.k.gm=function(){return this.durationMs};
g.k.start=function(){this.j||(this.j=!0,this.sf.start())};
g.k.stop=function(){this.j&&(this.j=!1,this.sf.stop())};
g.k.Rc=function(){this.lj+=100;var a=!1;this.lj>this.durationMs&&(this.lj=this.durationMs,this.sf.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.lj/1E3};this.ra("h");a&&this.ra("g")};
g.k.getProgressState=function(){return this.B};g.w(VG,zG);g.k=VG.prototype;g.k.init=function(a,b,c){zG.prototype.init.call(this,a,b,c);var d;if(null==b?0:null==(d=b.templatedCountdown)?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.uF(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new yG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb);this.B.init(LF("ad-text"),a,{});this.B.Ja(this.element);g.N(this,this.B)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){BG(this);zG.prototype.hide.call(this)};
g.k.Tp=function(){this.hide()};
g.k.oo=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&this.B&&(a=(this.j instanceof RG?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.j instanceof SG?a.seekableEnd:this.api.getDuration(2,!1))-a.current,oxa(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.TG(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
g.k.show=function(){AG(this);zG.prototype.show.call(this)};g.w(Cxa,yG);Cxa.prototype.onClick=function(a){yG.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};WG.prototype.getLength=function(){return this.j-this.B};g.w(YG,g.VF);YG.prototype.Rc=function(){var a=this.B.getProgressState();a=XG(new WG(a.seekableStart,a.seekableEnd),a.current,0);this.progressBar.style.width=100*a+"%"};
YG.prototype.onStateChange=function(){g.aS(this.api.U())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.B.subscribe("h",this.Rc,this),this.Rc()):-1!==this.j&&(this.hide(),this.B.Ih(this.j),this.j=-1))};g.w(ZG,WF);
ZG.prototype.init=function(a,b,c,d){WF.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.U(c,QL),c=g.U(c,IM),a?(c=new OG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,this.Y),c.Ja(this.G),c.init(LF("skip-button"),a,this.macros),g.N(this,c)):c&&(a=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,!1),a.Ja(this.G),a.init(LF("ad-preview"),c,this.macros),pxa(a),g.N(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,
c=new rxa(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),c.Ja(this.va),c.init(LF("instream-user-sentiment"),a,this.macros),g.N(this,c));if(a=g.U(b,jib))if(a=g.U(a,jib))c=new qxa(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,!!b.showWithoutLinkedMediaLayout),g.N(this,c),c.Ja(this.C),c.init(LF("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"\u0420\u0435\u043a\u043b\u0430\u043c\u0430",
isTemplated:!1}}),c=new PG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,!0,!1),g.N(this,c),c.Ja(this.j),c.init(LF("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&!b.showWithoutLinkedMediaLayout&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new VG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,d),g.N(this,d),d.Ja(this.j),d.init(LF("ad-duration-remaining"),
a,this.macros));b.adInfoRenderer&&(d=g.U(b.adInfoRenderer,HM))&&(a=new xG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.element),g.N(this,a),a.Ja(this.j),a.init(LF("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(d=g.U(b.visitAdvertiserRenderer,g.JM))&&(a=Dxa(this)&&this.D?this.D:this.j)&&(b=new Axa(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),g.N(this,b),b.Ja(a),b.init(LF("visit-advertiser"),d,this.macros),Ku(b.element),d=Nu(b.element),
Mu(b.element,d+" This link opens in new tab"));(b=this.api.U())&&!g.ZR(b)&&"3"==b.controlsType&&(b=new YG(this.api,this.B),b.Ja(this.Ea),g.N(this,b));this.api.U().L("enable_updated_html5_player_focus_style")&&g.Yu(this.element,"ytp-ad-player-overlay-updated-focus-style");this.api.U().L("enable_unified_ad_badge_style_fix")&&(this.C.classList.add("ytp-ad-player-overlay-flyout-cta-unified"),this.j.classList.add("ytp-ad-player-overlay-instream-info-unified"));this.show()};
ZG.prototype.clear=function(){this.hide()};bH.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
bH.prototype.get=function(a){return this.j.get(a)};
bH.prototype.remove=function(a){this.j.remove(a)};var Ixa=null,Kxa=null,Mxa=null,Oxa=null;g.Va("yt.www.ads.eventcache.getLastCompanionData",function(){return Ixa});
g.Va("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Va("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Kxa});
g.Va("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Mxa});
g.Va("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Oxa});var Qxa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);eH.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=(null==(c=b.Gp.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)};
eH.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];Sxa(this,b)};var Mkb=window.location.hostname.split(".").slice(-2).join("."),S2;fH.getInstance=function(){S2=g.Wa("yt.clientLocationService.instance");S2||(S2=new fH,g.Va("yt.clientLocationService.instance",S2));return S2};
g.k=fH.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.rB("INNERTUBE_CLIENT_NAME")?(this.localStorage=Txa(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.$B("YT_CL",JSON.stringify({loctok:a}),15552E3,Mkb,!0))};
g.k.clearLocationPlayabilityToken=function(a){"TVHTML5"===a?(this.localStorage=Txa(this))&&this.localStorage.remove("yt-location-playability-token"):g.rpa("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.rB("INNERTUBE_CLIENT_NAME")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
g.k.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null==a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};
g.k.createLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);return b};var T2={},Zxa=(T2.WEB_UNPLUGGED="^unplugged/",T2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",T2.WEB_UNPLUGGED_OPS="^unplugged/",T2.WEB_UNPLUGGED_PUBLIC="^unplugged/",T2.WEB_CREATOR="^creator/",T2.WEB_KIDS="^kids/",T2.WEB_EXPERIMENTS="^experiments/",T2.WEB_MUSIC="^music/",T2.WEB_REMIX="^music/",T2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",T2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",T2);aya.prototype.G=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?TD:c;var d={context:g.gH(a.clickTrackingParams,!1,this.D)};var e=this.B(a);if(e){this.j(d,e,b);var f;b=g.iH(this.C());(e=null==(f=g.U(a.commandMetadata,g.H2))?void 0:f.apiUrl)&&(b=e);f=upa(tpa(b));a=Object.assign({},{command:a},void 0);d={input:f,Ut:vpa(f),Gp:d,config:a};d.config.Uu?d.config.Uu.identity=c:d.config.Uu={identity:c};return d}g.tF(new g.QC("Error: Failed to create Request from Command.",a))};
g.ha.Object.defineProperties(aya.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}});
g.w(jH,aya);g.w(kH,jH);kH.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",Ut:vpa("/getDatasyncIdsEndpoint","GET"),Gp:{}}};
kH.prototype.C=function(){return[]};
kH.prototype.B=function(){};
kH.prototype.j=function(){};var Nkb={},Lya=(Nkb.GET_DATASYNC_IDS=hH(kH),Nkb);var U2={},hya=(U2.auto_search="LATENCY_ACTION_AUTO_SEARCH",U2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",U2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",U2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",U2.app_startup="LATENCY_ACTION_APP_STARTUP",U2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",U2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",U2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",U2["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",
U2["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",U2["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",U2["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",U2["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",U2["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",U2["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",U2["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",U2["asset.metadata"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",U2["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",U2["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",U2["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",U2["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",U2["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",U2["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",U2["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",
U2["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",U2["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",U2["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",U2.browse="LATENCY_ACTION_BROWSE",U2.cast_splash="LATENCY_ACTION_CAST_SPLASH",U2.channels="LATENCY_ACTION_CHANNELS",U2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",U2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",U2["channel.comments"]=
"LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",U2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",U2["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",U2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",U2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",U2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",U2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",U2["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",
U2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",U2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",U2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",U2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",U2.chips="LATENCY_ACTION_CHIPS",U2.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",U2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",U2["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",
U2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",U2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",U2.embed="LATENCY_ACTION_EMBED",U2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",U2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",U2.explore="LATENCY_ACTION_EXPLORE",U2.favorites="LATENCY_ACTION_FAVORITES",U2.home="LATENCY_ACTION_HOME",U2.inboarding="LATENCY_ACTION_INBOARDING",U2.library="LATENCY_ACTION_LIBRARY",U2.live=
"LATENCY_ACTION_LIVE",U2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",U2.mini_app="LATENCY_ACTION_MINI_APP_PLAY",U2.onboarding="LATENCY_ACTION_ONBOARDING",U2.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",U2["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",U2["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",U2["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",U2["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",U2["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",
U2["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",U2["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",U2["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",U2["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",U2["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",U2["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",U2["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",U2["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",
U2["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",U2["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",U2["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",U2["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",U2["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",U2["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",U2["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",U2["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",U2.parent_profile_settings=
"LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",U2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",U2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",U2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",U2["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",U2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",U2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",U2.prebuffer="LATENCY_ACTION_PREBUFFER",U2.prefetch="LATENCY_ACTION_PREFETCH",U2.profile_settings=
"LATENCY_ACTION_KIDS_PROFILE_SETTINGS",U2.profile_switcher="LATENCY_ACTION_LOGIN",U2.reel_watch="LATENCY_ACTION_REEL_WATCH",U2.results="LATENCY_ACTION_RESULTS",U2["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",U2.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",U2.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",U2.search_ui="LATENCY_ACTION_SEARCH_UI",U2.search_suggest="LATENCY_ACTION_SUGGEST",U2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",U2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",
U2.seek="LATENCY_ACTION_PLAYER_SEEK",U2.settings="LATENCY_ACTION_SETTINGS",U2.store="LATENCY_ACTION_STORE",U2.tenx="LATENCY_ACTION_TENX",U2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",U2.watch="LATENCY_ACTION_WATCH",U2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",U2["watch,watch7"]="LATENCY_ACTION_WATCH",U2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",U2["watch,watch7ad"]="LATENCY_ACTION_WATCH",U2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",U2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",U2.ww_rqs=
"LATENCY_ACTION_WHO_IS_WATCHING",U2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",U2["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",U2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",U2["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",U2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",U2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",U2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",U2["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",
U2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",U2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",U2["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",U2["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",U2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",U2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",U2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",U2.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",U2.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",U2.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",U2);var W={LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE:269,LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING:179,LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_COSTREAM_JOIN_FLOW:280,LATENCY_ACTION_COSTREAM_INVITE_FLOW:279,
LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER:277,LATENCY_ACTION_MINI_APP_PLAY:249,LATENCY_ACTION_DMA_CONSENT_FLOW:247,LATENCY_ACTION_GEL_FETCH:248,LATENCY_ACTION_GEL_JSPB_SERIALIZE:243,LATENCY_ACTION_GEL_COMPRESSION:215,LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE:204,LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC:203,LATENCY_ACTION_COMMERCE_TRANSACTION:184,LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC:173,LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC:172,LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC:171,LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC:170,
LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC:169,LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC:168,LATENCY_ACTION_GET_OFFERS_RPC:167,LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC:166,LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC:165,LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC:164,LATENCY_ACTION_GET_OFFER_DETAILS_RPC:163,LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC:162,LATENCY_ACTION_GET_TIP_MODULE_RPC:161,LATENCY_ACTION_HANDLE_TRANSACTION_RPC:160,LATENCY_ACTION_COMPLETE_TRANSACTION_RPC:159,LATENCY_ACTION_GET_CART_RPC:158,
LATENCY_ACTION_THUMBNAIL_FETCH:156,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_GENERIC_WEB_VIEW:183,LATENCY_ACTION_SHOPPING_IN_APP:124,LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_DOWNLOADS_DATA_ACCESS:180,LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138,
LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN:244,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131,LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,
LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,
LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_CONNECT_TO_SESSION:190,LATENCY_ACTION_MDX_STREAM_TRANSFER:178,LATENCY_ACTION_MDX_CAST:120,LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_MOBILE_LIVE_NAV_MDE:231,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,
LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD:272,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD:271,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD:270,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE:275,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO:274,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO:273,LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO:278,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_HISTORY:282,
LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA:258,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS:260,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS:259,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS:257,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS:221,LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS:210,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY:256,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP:255,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION:213,LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS:211,
LATENCY_ACTION_CREATOR_CMS_ASSETS:195,LATENCY_ACTION_CREATOR_CMS_ART_TRACKS:220,LATENCY_ACTION_CREATOR_CMS_ANALYTICS:194,LATENCY_ACTION_CREATOR_CMS_ALLOWLIST:227,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT:177,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,
LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_EXPERIMENTAL_WATCH_UI:181,LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS:228,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,
LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_PLAYLIST_AGGREGATION:266,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8,
LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_NETWORK_INSTRUMENTATION:281,LATENCY_ACTION_IMAGE_LOAD:268,LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_STARTUP:106,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_INFRASTRUCTURE_CONTAINER:276,LATENCY_ACTION_INBOARDING:284,LATENCY_ACTION_FAVORITES:283,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};W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE";
W[W.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";W[W.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";W[W.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";W[W.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";W[W.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";W[W.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";
W[W.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";W[W.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";W[W.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";W[W.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";W[W.LATENCY_ACTION_COSTREAM_JOIN_FLOW]="LATENCY_ACTION_COSTREAM_JOIN_FLOW";W[W.LATENCY_ACTION_COSTREAM_INVITE_FLOW]="LATENCY_ACTION_COSTREAM_INVITE_FLOW";W[W.LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER]="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER";
W[W.LATENCY_ACTION_MINI_APP_PLAY]="LATENCY_ACTION_MINI_APP_PLAY";W[W.LATENCY_ACTION_DMA_CONSENT_FLOW]="LATENCY_ACTION_DMA_CONSENT_FLOW";W[W.LATENCY_ACTION_GEL_FETCH]="LATENCY_ACTION_GEL_FETCH";W[W.LATENCY_ACTION_GEL_JSPB_SERIALIZE]="LATENCY_ACTION_GEL_JSPB_SERIALIZE";W[W.LATENCY_ACTION_GEL_COMPRESSION]="LATENCY_ACTION_GEL_COMPRESSION";W[W.LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE]="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE";W[W.LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC]="LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC";
W[W.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION";W[W.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";W[W.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";W[W.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";W[W.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC";
W[W.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";W[W.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";W[W.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";W[W.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";W[W.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";W[W.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC";
W[W.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";W[W.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";W[W.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";W[W.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";W[W.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";W[W.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC";
W[W.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";W[W.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";W[W.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";W[W.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";W[W.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";W[W.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";W[W.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW";
W[W.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";W[W.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";W[W.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";W[W.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";W[W.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";W[W.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";W[W.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";
W[W.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";W[W.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";W[W.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";W[W.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN";W[W.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";W[W.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";
W[W.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";W[W.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";W[W.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";W[W.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";W[W.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";W[W.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";W[W.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";
W[W.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";W[W.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";W[W.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";W[W.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";W[W.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";W[W.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";
W[W.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";W[W.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";W[W.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";W[W.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";W[W.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";W[W.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";W[W.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";
W[W.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";W[W.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";W[W.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";W[W.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";W[W.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";W[W.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";W[W.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";
W[W.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";W[W.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";W[W.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";W[W.LATENCY_ACTION_MDX_CONNECT_TO_SESSION]="LATENCY_ACTION_MDX_CONNECT_TO_SESSION";W[W.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";W[W.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";W[W.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";W[W.LATENCY_ACTION_MOBILE_LIVE_NAV_MDE]="LATENCY_ACTION_MOBILE_LIVE_NAV_MDE";
W[W.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";W[W.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD";W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD";W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD";
W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE";W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO";W[W.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO";W[W.LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO]="LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO";W[W.LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD]="LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD";
W[W.LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET]="LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET";W[W.LATENCY_ACTION_SHORTS_LOAD_PROJECT]="LATENCY_ACTION_SHORTS_LOAD_PROJECT";W[W.LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING]="LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING";W[W.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";W[W.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";W[W.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION";
W[W.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";W[W.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";W[W.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";W[W.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";W[W.LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD]="LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD";
W[W.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";W[W.LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING]="LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING";W[W.LATENCY_ACTION_SHORTS_RECOMPOSITION]="LATENCY_ACTION_SHORTS_RECOMPOSITION";W[W.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";W[W.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";W[W.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";W[W.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";
W[W.LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT";W[W.LATENCY_ACTION_CREATION_MODES_MODE_SWITCH]="LATENCY_ACTION_CREATION_MODES_MODE_SWITCH";W[W.LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT";W[W.LATENCY_ACTION_SWITCH_CAMERA]="LATENCY_ACTION_SWITCH_CAMERA";W[W.LATENCY_ACTION_OPEN_CAMERA]="LATENCY_ACTION_OPEN_CAMERA";W[W.LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE]="LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE";
W[W.LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME]="LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME";W[W.LATENCY_ACTION_MEDIA_ENGINE_EXPORT]="LATENCY_ACTION_MEDIA_ENGINE_EXPORT";W[W.LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA]="LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA";W[W.LATENCY_ACTION_PRODUCER_EXPORT_PROJECT]="LATENCY_ACTION_PRODUCER_EXPORT_PROJECT";W[W.LATENCY_ACTION_PRODUCER_EDITOR]="LATENCY_ACTION_PRODUCER_EDITOR";W[W.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";
W[W.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";W[W.LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL";W[W.LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL";W[W.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";W[W.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";
W[W.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";W[W.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";W[W.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE";W[W.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";W[W.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";W[W.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";W[W.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";W[W.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";
W[W.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";W[W.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";W[W.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";W[W.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";W[W.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";W[W.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";W[W.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";
W[W.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";W[W.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";W[W.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";W[W.LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT";W[W.LATENCY_ACTION_CREATOR_VIDEO_POLICY]="LATENCY_ACTION_CREATOR_VIDEO_POLICY";W[W.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";
W[W.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";W[W.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";W[W.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";W[W.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";W[W.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";W[W.LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT";
W[W.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";W[W.LATENCY_ACTION_CREATOR_VIDEO_CLAIMS]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS";W[W.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";W[W.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";W[W.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST";W[W.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT";
W[W.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";W[W.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";W[W.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";W[W.LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST";W[W.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";W[W.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";
W[W.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";W[W.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";W[W.LATENCY_ACTION_CREATOR_CMS_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_VIDEOS";W[W.LATENCY_ACTION_CREATOR_CMS_REPORTS]="LATENCY_ACTION_CREATOR_CMS_REPORTS";W[W.LATENCY_ACTION_CREATOR_CMS_RELEASES]="LATENCY_ACTION_CREATOR_CMS_RELEASES";W[W.LATENCY_ACTION_CREATOR_CMS_POLICIES]="LATENCY_ACTION_CREATOR_CMS_POLICIES";
W[W.LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC";W[W.LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING";W[W.LATENCY_ACTION_CREATOR_CMS_LICENSES]="LATENCY_ACTION_CREATOR_CMS_LICENSES";W[W.LATENCY_ACTION_CREATOR_CMS_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ISSUES";W[W.LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES";W[W.LATENCY_ACTION_CREATOR_CMS_DASHBOARD]="LATENCY_ACTION_CREATOR_CMS_DASHBOARD";
W[W.LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY";W[W.LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS";W[W.LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES";W[W.LATENCY_ACTION_CREATOR_CMS_CHANNELS]="LATENCY_ACTION_CREATOR_CMS_CHANNELS";W[W.LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS";W[W.LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY";
W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP";
W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA";
W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS";
W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION";W[W.LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS";W[W.LATENCY_ACTION_CREATOR_CMS_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSETS";
W[W.LATENCY_ACTION_CREATOR_CMS_ART_TRACKS]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS";W[W.LATENCY_ACTION_CREATOR_CMS_ANALYTICS]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS";W[W.LATENCY_ACTION_CREATOR_CMS_ALLOWLIST]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST";W[W.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";W[W.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";W[W.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";
W[W.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";W[W.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";W[W.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";W[W.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";W[W.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";W[W.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";
W[W.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";W[W.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";W[W.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";W[W.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";W[W.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";W[W.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";
W[W.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";W[W.LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS]="LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS";W[W.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";W[W.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";W[W.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";W[W.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";
W[W.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";W[W.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";W[W.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";W[W.LATENCY_ACTION_PLAYLIST_AGGREGATION]="LATENCY_ACTION_PLAYLIST_AGGREGATION";W[W.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";W[W.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";W[W.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";W[W.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";
W[W.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";W[W.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";W[W.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";W[W.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";W[W.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";W[W.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";W[W.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";
W[W.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";W[W.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";W[W.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";W[W.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";W[W.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";W[W.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";W[W.LATENCY_ACTION_NETWORK_INSTRUMENTATION]="LATENCY_ACTION_NETWORK_INSTRUMENTATION";W[W.LATENCY_ACTION_IMAGE_LOAD]="LATENCY_ACTION_IMAGE_LOAD";
W[W.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";W[W.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";W[W.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";W[W.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";W[W.LATENCY_ACTION_INFRASTRUCTURE_CONTAINER]="LATENCY_ACTION_INFRASTRUCTURE_CONTAINER";W[W.LATENCY_ACTION_INBOARDING]="LATENCY_ACTION_INBOARDING";W[W.LATENCY_ACTION_FAVORITES]="LATENCY_ACTION_FAVORITES";
W[W.LATENCY_ACTION_INLINE_TO_WATCH]="LATENCY_ACTION_INLINE_TO_WATCH";W[W.LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH]="LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH";W[W.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";W[W.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";W[W.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";W[W.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";W[W.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";W[W.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";W[W.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";
W[W.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";W[W.LATENCY_ACTION_USER_ACTION]="LATENCY_ACTION_USER_ACTION";W[W.LATENCY_ACTION_INFRASTRUCTURE]="LATENCY_ACTION_INFRASTRUCTURE";W[W.LATENCY_ACTION_PAGE_NAVIGATION]="LATENCY_ACTION_PAGE_NAVIGATION";W[W.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var BH={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};BH[BH.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";BH[BH.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";
BH[BH.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";var CH={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};CH[CH.CONN_INVALID]="CONN_INVALID";CH[CH.CONN_WIRED]="CONN_WIRED";CH[CH.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";CH[CH.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";
CH[CH.CONN_WIFI_METERED]="CONN_WIFI_METERED";CH[CH.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";CH[CH.CONN_DISCO]="CONN_DISCO";CH[CH.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";CH[CH.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";CH[CH.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";CH[CH.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";CH[CH.CONN_WIFI]="CONN_WIFI";CH[CH.CONN_NONE]="CONN_NONE";CH[CH.CONN_UNKNOWN]="CONN_UNKNOWN";CH[CH.CONN_DEFAULT]="CONN_DEFAULT";
var DH={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};DH[DH.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
DH[DH.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";DH[DH.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";DH[DH.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";DH[DH.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";DH[DH.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";DH[DH.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
DH[DH.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";DH[DH.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";DH[DH.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";DH[DH.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";DH[DH.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";DH[DH.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";DH[DH.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";DH[DH.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
DH[DH.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";DH[DH.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";DH[DH.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";DH[DH.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";DH[DH.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";DH[DH.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";DH[DH.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";DH[DH.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
DH[DH.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";DH[DH.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";DH[DH.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";DH[DH.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var EH={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};
EH[EH.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";EH[EH.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";EH[EH.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";EH[EH.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";EH[EH.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";EH[EH.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";EH[EH.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";EH[EH.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var FH={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};FH[FH.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";FH[FH.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";FH[FH.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";FH[FH.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var GH={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
GH[GH.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";GH[GH.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var HH={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};HH[HH.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";HH[HH.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";HH[HH.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
HH[HH.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";HH[HH.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";HH[HH.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var IH={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};IH[IH.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";IH[IH.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";IH[IH.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";IH[IH.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var JH={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};JH[JH.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";JH[JH.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";JH[JH.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var KH={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};KH[KH.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
KH[KH.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";KH[KH.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var lya="actionVisualElement spinnerInfo cacheAttempts resourceInfo preloadThumbnailInfo startupEdgeCaseInfo startupInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo imageLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo webViewInfo prefetchInfo accelerationSession commerceInfo inlineToWatchInfo mediaEngineMetadata miniAppInfo dynamicAssetFetchInfo webInfo tvInfo kabukiInfo mwebInfo musicInfo transcodingContext creationModesContext cameraMetadata producerMediaAssetMetadata".split(" ");g.w(iya,UD);var Cya=new VD("aft-recorded",iya);var uH=g.Sa.ytLoggingLatencyUsageStats_||{};g.Va("ytLoggingLatencyUsageStats_",uH);sH.prototype.tick=function(a,b,c,d){vH(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.PB("web_csi_via_jspb")?(d=new uoa,Q(d,1,a),Q(d,2,b),a=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB,Tj(a,uoa,5,mF,d),lF("latencyActionTicked",a,c)):g.bD("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
sH.prototype.info=function(a,b,c){var d=Object.keys(a).join("");vH(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.bD("latencyActionInfo",a,{cttAuthInfo:c}))};
sH.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));vH(this,"info_"+d+"_"+b)||(Q(a,2,b),b={cttAuthInfo:c},c=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB,Tj(c,cB,7,mF,a),lF("latencyActionInfo",c,b))};
sH.prototype.span=function(a,b,c){var d=Object.keys(a).join("");vH(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.bD("latencyActionSpan",a,{cttAuthInfo:c}))};var V2=window,wH=V2.performance||V2.mozPerformance||V2.msPerformance||V2.webkitPerformance||new jya;var Bya=!1,nya=!1,wya={'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"},Dya=(0,g.ib)(wH.clearResourceTimings||wH.webkitClearResourceTimings||wH.mozClearResourceTimings||wH.msClearResourceTimings||wH.oClearResourceTimings||g.Sd,wH);var Okb=window;Okb.ytcsi&&(Okb.ytcsi.infoGel=g.QH,Okb.ytcsi.tick=SH);var Qya="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD".split(" "),Sya=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var Wya=new KE("INNERTUBE_TRANSPORT_TOKEN");g.w(XH,jH);XH.prototype.C=function(){return Ckb};
XH.prototype.B=function(a){return g.U(a,okb)||void 0};
XH.prototype.j=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.ha.Object.defineProperties(XH.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(YH,jH);YH.prototype.C=function(){return Dkb};
YH.prototype.B=function(a){return g.U(a,mkb)||void 0};
YH.prototype.j=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
g.ha.Object.defineProperties(YH.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(ZH,jH);ZH.prototype.C=function(){return zkb};
ZH.prototype.B=function(a){return g.U(a,Kib)||void 0};
ZH.prototype.j=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.ha.Object.defineProperties(ZH.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w($H,jH);$H.prototype.C=function(){return Akb};
$H.prototype.B=function(a){return g.U(a,lkb)||void 0};
$H.prototype.j=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.w(aI,jH);aI.prototype.C=function(){return Bkb};
aI.prototype.B=function(a){return g.U(a,jkb)||void 0};
aI.prototype.j=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.w(bI,jH);bI.prototype.C=function(){return ykb};
bI.prototype.B=function(a){return g.U(a,Zjb)};
bI.prototype.j=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};g.w(g.cI,g.QC);var Pkb=new KE("NETWORK_SLI_TOKEN");dI.prototype.fetch=function(a,b,c){var d=this,e;return g.H(function(f){e=Tya(d,a,b);return f.return(fetch(e).then(function(h){return d.handleResponse(h,c)}).catch(function(h){g.uF(h);
if((null==c?0:c.zv)&&h instanceof g.cI&&1===h.errorType)return Promise.reject(h)}))})};
dI.prototype.handleResponse=function(a,b){var c=a.text().then(function(d){if((null==b?0:b.D8)&&a.ok)return Gea(b.D8,d);d=d.replace(")]}'","");if((null==b?0:b.zv)&&d)try{var e=JSON.parse(d)}catch(h){throw new g.cI(1,"JSON parsing failed after fetch");}var f;return null!=(f=e)?f:JSON.parse(d)});
a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.pmb(),c=c.then(function(d){g.uF(new g.QC("Error: API fetch failed",a.status,a.url,d));return Object.assign({},d,{errorMetadata:{status:a.status}})}));
return c};
dI[ME]=[new LE(Pkb)];var Vya=new KE("NETWORK_MANAGER_TOKEN");var Uya;var NLa={sja:0,tja:1,rja:2,oja:3,nja:4,pja:5,qja:6};var Xya=["APP_STATE","PI"];fI.prototype.fetch=function(a,b,c){var d=this,e=$ya(a,b,c);return new Promise(function(f,h){function l(){if(null==c?0:c.zv)try{var n=d.handleResponse(a,e.status,e.response,c);f(n)}catch(p){h(p)}else f(d.handleResponse(a,e.status,e.response,c))}
e.onerror=l;e.onload=l;var m;e.send(null!=(m=b.body)?m:null)})};
fI.prototype.handleResponse=function(a,b,c,d){c=c.replace(")]}'","");try{var e=JSON.parse(c)}catch(f){g.uF(new g.QC("JSON parsing failed after XHR fetch",a,b,c));if((null==d?0:d.zv)&&c)throw new g.cI(1,"JSON parsing failed after XHR fetch");e={}}200!==b&&(g.uF(new g.QC("XHR API fetch failed",a,b,c)),e=Object.assign({},e,{errorMetadata:{status:b}}));return e};g.k=eza.prototype;g.k.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterUrl)?d:null;if(a.interpreterSafeScript){var f=a.interpreterSafeScript;d=f?(f=f.privateDoNotAccessOrElseSafeScriptWrappedValue)?Lba(f):null:null}else d=null!=(f=a.interpreterScript)?f:null;a.interpreterSafeUrl&&(e=Dw(a.interpreterSafeUrl).toString());gza(this,d,e,a.program,b,c)}else g.uF(Error("Cannot initialize botguard without program"))};
g.k.isInitialized=function(){return this.LS()};
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.LS()?this.s1({gz:a}):null};
g.k.dispose=function(){this.SR(null);this.Hc(8)};
g.k.LS=function(){return!!this.j};
g.k.s1=function(a){return this.j.j0(a)};
g.k.SR=function(a){g.vb(this.j);this.j=a};
g.k.Hc=function(a){this.state=a};var iza=[],hza=!1;g.w(gI,eza);gI.prototype.SR=function(a){var b;null==(b=lza())||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.j0.bind(a)},g.Va("yt.abuse.playerAttLoader",b),g.Va("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(g.Va("yt.abuse.playerAttLoader",null),g.Va("yt.abuse.playerAttLoaderRun",null))};
gI.prototype.LS=function(){return!!lza()};
gI.prototype.s1=function(a){return lza().bgvmc(a)};mza.prototype.Fq=function(){return"crossDeviceProgressCommand"};
mza.prototype.Ys=function(a){if(a.crossDevicePings){var b=[];a=g.u(a.crossDevicePings);for(var c=a.next();!c.done;c=a.next())b.push({baseUrl:c.value.baseUrl});g.bD("crossDeviceNotificationTransfer",{crossDevicePings:b})}};oza.prototype.Fq=function(){return"muteAdEndpoint"};
oza.prototype.Ys=function(a,b){switch(a.type){case "SKIP":nza(this.nk,this.zm,b)}};pza.prototype.Fq=function(){return"openPopupAction"};
pza.prototype.Ys=function(){};qza.prototype.Fq=function(){return"pingingEndpoint"};
qza.prototype.Ys=function(){};var xza={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.w(sza,g.I);var Seb={Jda:"FINAL",H1:"AD_BREAK_LENGTH",Mia:"AD_CPN",Tia:"AH",Xia:"AD_MT",aja:"ASR",eja:"AW",Jsa:"NM",Ksa:"NX",Lsa:"NY",R1:"CONN",Wta:"CPN",Gwa:"DV_VIEWABILITY",yxa:"ERRORCODE",Hxa:"ERROR_MSG",Kxa:"EI",m2:"GOOGLE_VIEWABILITY",sHa:"IAS_VIEWABILITY",CKa:"LACT",L4:"LIVE_TARGETING_CONTEXT",vQa:"I_X",wQa:"I_Y",YSa:"MT",nTa:"MIDROLL_POS",oTa:"MIDROLL_POS_MS",MTa:"MOAT_INIT",NTa:"MOAT_VIEWABILITY",T4:"P_H",j0a:"PV_H",k0a:"PV_W",U4:"P_W",F0a:"TRIGGER_TYPE",r4a:"SDKV",X4:"SLOT_POS",wbb:"SURVEY_LOCAL_TIME_EPOCH_S",
vbb:"SURVEY_ELAPSED_MS",f5:"VIS",Vib:"VIEWABILITY",bjb:"VED",g5:"VOL",ejb:"WT",i5:"YT_ERROR_CODE"};yza.prototype.Fq=function(){return"urlEndpoint"};
yza.prototype.Ys=function(a,b,c){var d=this.Oa.get(),e=qBa(d.B.get(),b);e?b=nK(d,rBa(e),e,void 0,void 0,c):(HG("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});b=Object.assign({},b);YM(this.j,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(c=this.ao.Se(2))&&(b.AD_CPN=c.clientPlaybackNonce);a=g.Fu(a.url,b);"1"===(new g.Eo(a)).B.get("ase")?g.dH(a,void 0,void 0,a+"&asr=1"):g.dH(a)};jI.prototype.get=function(){return this.value};
g.w(kI,jI);kI.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.w(lI,jI);lI.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
g.w(zza,jI);zza.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.w(mI,jI);mI.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.w(nI,jI);nI.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.w(Aza,jI);Aza.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.w(Bza,jI);Bza.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.w(Cza,jI);Cza.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"};
g.w(Dza,jI);Dza.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.w(Eza,jI);Eza.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.w(Fza,jI);Fza.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.w(oI,jI);oI.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.w(pI,jI);pI.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.w(qI,jI);qI.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.w(rI,jI);rI.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.w(sI,jI);sI.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.w(tI,jI);tI.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.w(uI,jI);uI.prototype.getType=function(){return"metadata_type_content_cpn"};
g.w(vI,jI);vI.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.w(wI,jI);wI.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"};
g.w(xI,jI);xI.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.w(yI,jI);yI.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.w(Gza,jI);Gza.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"};
g.w(Hza,jI);Hza.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.w(zI,jI);zI.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.w(Iza,jI);Iza.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.w(Jza,jI);Jza.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.w(Kza,jI);Kza.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.w(Lza,jI);Lza.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.w(AI,jI);AI.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.w(BI,jI);BI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.w(CI,jI);CI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.w(DI,jI);DI.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.w(Mza,jI);Mza.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.w(EI,jI);EI.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.w(FI,jI);FI.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.w(GI,jI);GI.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.w(Nza,jI);Nza.prototype.getType=function(){return"metadata_type_cue_point"};
g.w(HI,jI);HI.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.w(II,jI);II.prototype.getType=function(){return"metadata_type_player_vars"};
g.w(JI,jI);JI.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.w(KI,jI);KI.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.w(LI,jI);LI.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.w(MI,jI);MI.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.w(NI,jI);NI.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.w(OI,jI);OI.prototype.getType=function(){return"metadata_type_dai"};
g.w(PI,jI);PI.prototype.getType=function(){return"metadata_type_ad_intro"};
g.w(Oza,jI);Oza.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.w(QI,jI);QI.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.w(RI,jI);RI.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.w(SI,jI);SI.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.w(Pza,jI);Pza.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.w(TI,jI);TI.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.w(UI,jI);UI.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.w(VI,jI);VI.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.w(WI,jI);WI.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.w(Qza,jI);Qza.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.w(XI,jI);XI.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.w(YI,jI);YI.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.w(Rza,jI);Rza.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.w(ZI,jI);ZI.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.w(Sza,jI);Sza.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};
g.w($I,jI);$I.prototype.getType=function(){return"metadata_type_eligible_for_ssap"};
g.w(Tza,jI);Tza.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};var nAa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var yAa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
"trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.w(dJ,yb);g.w(eJ,yb);new Promise(function(){});var Xza=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"]]),Vza=new Map([["normal",{nx:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Ax:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{nx:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Ax:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{nx:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Ax:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{nx:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Ax:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{nx:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Ax:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{nx:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Ax:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{nx:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Ax:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.w(cAa,g.I);g.k=cAa.prototype;g.k.sO=function(a,b){return this.j.sO(a,b)};
g.k.nh=function(a,b){this.kc.j("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.u(this.B),d=c.next();!d.done;d=c.next())d.value.nh(a,b)};
g.k.Qf=function(a){if(rJ(this.j,a)){AJ(this.kc,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.Qf(a);for(var b=g.u(this.B),c=b.next();!c.done;c=b.next())c.value.Qf(a);fAa(this,a)}};
g.k.Rf=function(a){if(rJ(this.j,a)){AJ(this.kc,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.Rf(a);for(var b=g.u(this.B),c=b.next();!c.done;c=b.next())c.value.Rf(a);rJ(this.j,a)&&sJ(this.j,a).G&&qJ(this,a,!1)}};
g.k.JJ=function(a){AJ(this.kc,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);rJ(this.j,a)&&(this.j.JJ(a),qJ(this,a,!1))};
g.k.Ec=function(a,b){if(rJ(this.j,a)){tJ(this.kc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.u(this.B),d=c.next();!d.done;d=c.next())d.value.Ec(a,b)}};
g.k.Wc=function(a,b,c){if(rJ(this.j,a)){tJ(this.kc,Wza(c),a,b);this.j.Wc(a,b);for(var d=g.u(this.B),e=d.next();!e.done;e=d.next())e.value.Wc(a,b,c);(c=DJ(this.j,a))&&b.layoutId===c.layoutId&&uAa(this,a,!1)}};
g.k.uf=function(a,b,c,d){c.Mk&&d?(HG(c,a,b,void 0,c.Su),pJ(this.kc,d,c.Mk,a,b)):HG("adsClientErrorMessage is missing.",a,b);qJ(this,a,!0)};
g.k.xa=function(){var a=xAa(this.j);a=g.u(a);for(var b=a.next();!b.done;b=a.next())qJ(this,b.value,!1);g.I.prototype.xa.call(this)};
g.k.Kg=function(a,b){tJ(this.kc,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",a,b);tJ(this.kc,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",a,b);for(var c=g.u(this.B),d=c.next();!d.done;d=c.next())d=d.value,b&&d.Kg(a,b)};vAa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.w(wAa,g.I);g.k=wAa.prototype;g.k.sO=function(a,b){b=CJ(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.oh=function(a){a=sJ(this,a);"not_scheduled"!==a.j&&EJ(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.k.nD=function(a){a=sJ(this,a);a.D="fill_requested";a.N.nD()};
g.k.Qf=function(a){a=sJ(this,a);"enter_requested"!==a.j&&EJ(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.k.JJ=function(a){sJ(this,a).D="fill_canceled"};
g.k.Rf=function(a){a=sJ(this,a);"exit_requested"!==a.j&&EJ(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.k.Wc=function(a,b){a=sJ(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&EJ(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.w(CAa,g.I);CAa.prototype.get=function(){this.isDisposed()&&HG("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.p8());return this.instance};g.w(EAa,g.I);EAa.prototype.C=function(){return this.j};IJ.prototype.executeCommand=function(a,b){iI(this.j(),a,b)};LJ.prototype.addListener=function(a){this.listeners.add(a)};
LJ.prototype.removeListener=function(a){this.listeners.delete(a)};var W2={},TJ=(W2.AD_MARKER="ytp-ad-progress",W2.CHAPTER_MARKER="ytp-chapter-marker",W2.TIME_MARKER="ytp-time-marker",W2);var NVa=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/)"),MAa=RegExp("^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?://(([-\\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]+)?/)"),
OVa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),UAa=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)|$))"),
SAa=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)|$))"),PAa=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us)\\.((googleusercontent)|(google)))|((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|drive|contribution)\\-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/)"),
PVa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),QAa=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)"),OAa=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us)\\.((googleusercontent)|(google)))|((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|drive|contribution)\\-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-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
UQa=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)"),
SQa=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|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)"),
TQa=RegExp("^https?://([A-Za-z0-9-]{1,63}\\.)*(stadia\\.google\\.com)[.]?(:[0-9]+)?(/|$)"),Qkb=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://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\\.)?staging\\.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$)"),
Rkb=RegExp("^(https://stadia\\.google\\.com)$");var LAa=!1;g.UJ.prototype.getId=function(){return this.id};
g.UJ.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+YAa(this.start)+", "+YAa(this.end)+"]"};
g.UJ.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 XAa=1;g.UJ.prototype.getId=g.UJ.prototype.getId;aBa.prototype.nD=function(){var a=this,b=0;JAa(this.j,function(){var c=gJ(a.slot.Ba,"metadata_type_ad_break_request_data");b=Date.now();a.Oa.get().Ii("abrs","ct."+b+";cmt."+a.Fa.get().getCurrentTimeSec(1,!1)+";sid."+a.slot.slotId+";");return a.ag.get().fetch({j1:c.getAdBreakUrl,gW:new g.UJ(c.kR,c.jR),tv:gJ(a.slot.Ba,"metadata_type_cue_point"),cueProcessedMs:c.cueProcessedMs})},function(){bBa(a)},function(c){var d=Date.now()-b;
a.Oa.get().Ii("abrr","ct."+(new Date).getTime()+";cmt."+a.Fa.get().getCurrentTimeSec(1,!1)+";l."+d.toString()+";sid."+a.slot.slotId+";");d=c.Pu;2<=d.length&&c.ssdaiAdsConfig&&HG("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)})||bBa(a)})};
aBa.prototype.VM=function(){KAa(this.j)};cBa.prototype.nD=function(){var a=this;JAa(this.j,function(){var b=gJ(a.slot.Ba,"metadata_type_ad_break_request_data");return a.ag.get().fetch({j1:b.getAdBreakUrl,gW:new g.UJ(b.kR,b.jR)})})};
cBa.prototype.VM=function(){KAa(this.j)};dBa.prototype.nD=function(){var a=this.slot.Ba,b,c=null!=(b=this.slot.fulfilledLayout)?b:gJ(a,"metadata_type_fulfilled_layout");gAa(this.callback,this.slot,c)};
dBa.prototype.VM=function(){dAa(this.callback,this.slot,new eJ("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")};fBa.prototype.build=function(a,b){return b.fulfilledLayout||eBa(b,{Od:["metadata_type_fulfilled_layout"]})?new dBa(a,b):this.j(a,b)};g.w(XJ,fBa);
XJ.prototype.j=function(a,b){if(eBa(b,{Od:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new aBa(a,b,this.ag,this.Cb,this.Wb,this.Da,this.Oa,this.Fa,this.Sc);if(eBa(b,{Od:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new cBa(a,b,this.ag,this.Cb,this.Wb,this.Da);throw new eJ("Unsupported slot with type: "+b.slotType+" and client metadata: "+hJ(b.Ba)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.w(YJ,fBa);YJ.prototype.j=function(a,b){throw new eJ("Unsupported slot with type: "+b.slotType+" and client metadata: "+hJ(b.Ba)+" in DefaultFulfillmentAdapterFactory.");};g.k=gBa.prototype;g.k.xc=function(){return this.slot};
g.k.rb=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.uf(this.slot,a,new dJ("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=gJ(a.Ba,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.Ec(this.slot,a),QEa(this.j,this.slot,
b)):HG("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}};
g.k.Ye=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.uf(this.slot,a,new dJ("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),iBa(this))};g.w(bK,g.NF);g.k=bK.prototype;g.k.xc=function(){return this.B.slot};
g.k.rb=function(){return this.B.layout};
g.k.init=function(){this.C.get().addListener(this)};
g.k.release=function(){this.C.get().removeListener(this);this.dispose()};
g.k.GO=function(){};
g.k.DO=function(){};
g.k.CO=function(){};
g.k.sI=function(){};
g.k.startRendering=function(a){var b=this;lBa(this.B,a,function(){return void b.NK()})};
g.k.NK=function(){this.C.get().NK(this.j)};
g.k.Ye=function(a,b){var c=this;lBa(this.B,a,function(){var d=c.C.get();cfb(d,c.j,3);c.j=[];c.callback.Wc(c.slot,a,b)})};
g.k.xa=function(){this.C.isDisposed()||this.C.get().removeListener(this);g.NF.prototype.xa.call(this)};
g.ha.Object.defineProperties(bK.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.B.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.B.layout}}});iK.prototype.Gh=function(a,b){b=void 0===b?!1:b;var c=(this.C.get(a)||[]).concat();if(b=b&&mBa(a)){var d=this.C.get(b);d&&c.push.apply(c,g.pa(d))}oBa(this,a,c);this.j.add(a);b&&this.j.add(b)};
iK.prototype.hc=function(a,b){b=void 0===b?!1:b;if(!this.j.has(a)){var c=b&&mBa(a);c&&(b=!this.j.has(c));this.Gh(a,b)}};
iK.prototype.Or=function(a,b){b=void 0===b?!1:b;this.j.has(a)?oBa(this,a,[]):this.hc(a,b)};g.w(sBa,MF);g.w(tBa,bK);g.k=tBa.prototype;g.k.Fg=function(a,b){eK("banner-image",a,this.K.get().Lj,this.Oa.get(),this.D,this.G,this.xc(),this.rb(),b)};
g.k.startRendering=function(a){dK(this.bb,this.xc(),this.rb(),this.callback,"metadata_type_banner_image_layout_view_model",function(b,c,d,e,f){return new sBa(b,c,d,e,f)},this.j);
bK.prototype.startRendering.call(this,a)};
g.k.Ec=function(a,b){if(b.layoutId!==this.layout.layoutId||YM(this.Da.get(),"enable_desktop_companion_impression_on_first_visible"))this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().ej():HG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout));else{a=gJ(b.Ba,"metadata_type_banner_image_layout_view_model");b=nBa(this.Oa.get(),{adPlacementConfig:this.adPlacementConfig});var c;KJ(this.Ab.get(),zF(null==(c=a.interaction)?void 0:c.onFirstVisible),this.layout.layoutId,
b)}};
g.k.Wc=function(){};
g.k.oh=function(){};
g.k.Zh=function(){};
g.k.Wh=function(){};
g.k.Qf=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(){};
g.k.Kg=function(){};
g.k.nh=function(){};
g.k.xa=function(){oJ(this.Uc(),this);bK.prototype.xa.call(this)};g.w(vBa,MF);g.w(wBa,bK);g.k=wBa.prototype;g.k.Fg=function(a,b){eK("action-companion",a,this.K.get().Lj,this.Oa.get(),this.D,this.G,this.xc(),this.rb(),b)};
g.k.startRendering=function(a){dK(this.bb,this.xc(),this.rb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new vBa(b,c,d,e,f)},this.j);
bK.prototype.startRendering.call(this,a)};
g.k.Ec=function(a,b){b.layoutId===this.layout.layoutId?this.bb.hc("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().ej():HG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Wc=function(){};
g.k.oh=function(){};
g.k.Zh=function(){};
g.k.Wh=function(){};
g.k.Qf=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(){};
g.k.Kg=function(){};
g.k.nh=function(){};
g.k.xa=function(){oJ(this.Uc(),this);bK.prototype.xa.call(this)};g.w(yBa,MF);g.w(zBa,bK);g.k=zBa.prototype;g.k.Fg=function(a,b){eK("image-companion",a,this.K.get().Lj,this.Oa.get(),this.D,this.G,this.xc(),this.rb(),b)};
g.k.startRendering=function(a){dK(this.bb,this.xc(),this.rb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new yBa(b,c,d,e,f)},this.j);
bK.prototype.startRendering.call(this,a)};
g.k.Ec=function(a,b){b.layoutId===this.layout.layoutId?this.bb.hc("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().ej():HG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Wc=function(){};
g.k.oh=function(){};
g.k.Zh=function(){};
g.k.Wh=function(){};
g.k.Qf=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(){};
g.k.Kg=function(){};
g.k.nh=function(){};
g.k.xa=function(){oJ(this.Uc(),this);bK.prototype.xa.call(this)};g.w(BBa,MF);g.w(CBa,bK);g.k=CBa.prototype;g.k.Fg=function(a,b){eK("shopping-companion",a,this.K.get().Lj,this.Oa.get(),this.D,this.G,this.xc(),this.rb(),b)};
g.k.startRendering=function(a){dK(this.bb,this.xc(),this.rb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new BBa(b,c,d,e,f)},this.j);
bK.prototype.startRendering.call(this,a)};
g.k.Ec=function(a,b){b.layoutId===this.layout.layoutId?this.bb.hc("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().ej():HG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Wc=function(){};
g.k.oh=function(){};
g.k.Zh=function(){};
g.k.Wh=function(){};
g.k.Qf=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(){};
g.k.Kg=function(){};
g.k.nh=function(){};
g.k.xa=function(){oJ(this.Uc(),this);bK.prototype.xa.call(this)};g.w(HBa,bK);g.k=HBa.prototype;g.k.startRendering=function(a){dK(this.bb,this.xc(),this.rb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new vBa(b,c,d,e,f)},this.j);
bK.prototype.startRendering.call(this,a)};
g.k.Ec=function(){};
g.k.Wc=function(){};
g.k.oh=function(){};
g.k.Zh=function(){};
g.k.Wh=function(){};
g.k.Qf=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(){};
g.k.Kg=function(){};
g.k.nh=function(){};
g.k.xa=function(){oJ(this.Uc(),this);bK.prototype.xa.call(this)};
g.k.Fg=function(){};g.k=JBa.prototype;g.k.xc=function(){return this.slot};
g.k.rb=function(){return this.layout};
g.k.init=function(){this.Fa.get().addListener(this);this.Fa.get().TC.push(this);var a=gJ(this.layout.Ba,"metadata_type_video_length_seconds"),b=gJ(this.layout.Ba,"metadata_type_active_view_traffic_type");fK(this.layout.Fb)&&w1(this.Da.get())&&C1(this.wb.get(),this.layout.layoutId,b,a,this)};
g.k.release=function(){this.Fa.get().removeListener(this);Web(this.Fa.get(),this);fK(this.layout.Fb)&&w1(this.Da.get())&&D1(this.wb.get(),this.layout.layoutId)};
g.k.startRendering=function(a){this.callback.Ec(this.slot,a)};
g.k.Ye=function(a,b){this.callback.Wc(this.slot,a,b)};
g.k.Dj=function(a){switch(a.id){case "part2viewed":this.bb.hc("start");w1(this.Da.get())&&this.bb.hc("impression");break;case "videoplaytime25":this.bb.hc("first_quartile");break;case "videoplaytime50":this.bb.hc("midpoint");break;case "videoplaytime75":this.bb.hc("third_quartile");break;case "videoplaytime100":this.bb.hc("complete");mK(this.bb)&&kK(this.bb,Infinity,!0);break;case "engagedview":mK(this.bb)||this.bb.hc("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:HG("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.hj=function(){};
g.k.lh=function(){};
g.k.Ej=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Li=function(){};
g.k.Ki=function(){};
g.k.jQ=function(a){mK(this.bb)&&kK(this.bb,1E3*a,!1);0<a&&!w1(this.Da.get())&&this.bb.hc("impression")};
g.k.Gj=function(){};
g.k.Kw=function(){this.bb.hc("active_view_measurable")};
g.k.Lw=function(){this.bb.hc("active_view_viewable")};
g.k.Jw=function(){this.bb.hc("active_view_fully_viewable_audible_half_duration")};
g.k.Iw=function(){this.bb.hc("audio_measurable")};
g.k.Hw=function(){this.bb.hc("audio_audible")};g.w(KBa,bK);g.k=KBa.prototype;g.k.init=function(){bK.prototype.init.call(this);var a=gJ(this.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.lc};this.j.push(new QG(a,this.layout.layoutId,gJ(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,!0))};
g.k.Lp=function(){this.D||this.Fa.get().resumeVideo(1)};
g.k.startRendering=function(a){bK.prototype.startRendering.call(this,a);J1(this.Fa.get(),"ad-showing");this.callback.Ec(this.slot,a);this.G.ls=this};
g.k.Ye=function(a,b){bK.prototype.Ye.call(this,a,b);K1(this.Fa.get(),"ad-showing");m2(this.G,this)};
g.k.Fg=function(a){switch(a){case "ad-info-icon-button":(this.D=this.Fa.get().On(1))||this.Fa.get().pauseVideo();break;case "visit-advertiser":this.Fa.get().pauseVideo()}};
g.k.xa=function(){bK.prototype.xa.call(this)};g.w(LBa,MF);g.w(MBa,bK);g.k=MBa.prototype;g.k.startRendering=function(a){dK(this.bb,this.xc(),this.rb(),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new LBa(b,c,d,e,f)},this.j);
bK.prototype.startRendering.call(this,a)};
g.k.Ec=function(){};
g.k.Wc=function(){};
g.k.oh=function(){};
g.k.Zh=function(){};
g.k.Wh=function(){};
g.k.Qf=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(){};
g.k.Kg=function(){};
g.k.nh=function(){};
g.k.xa=function(){oJ(this.Uc(),this);bK.prototype.xa.call(this)};
g.k.Fg=function(){};g.w(oK,MF);g.w(pK,bK);pK.prototype.init=function(){bK.prototype.init.call(this);var a=g.U(this.layout.renderingContent,xK)||gJ(this.layout.Ba,"metadata_type_ad_action_interstitial_renderer"),b=cK(this.bb);this.j.push(new oK(a,b,this.layout.layoutId,{adsClientData:this.layout.lc},!0,!0))};
pK.prototype.startRendering=function(a){bK.prototype.startRendering.call(this,a);this.callback.Ec(this.slot,a)};
pK.prototype.Fg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=null==(c=gJ(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:c.current)&&lDa(a,this.xc(),this.layout)}};
pK.prototype.xa=function(){bK.prototype.xa.call(this)};rK.prototype.build=function(a,b,c,d){if(qK(d,{Od:["metadata_type_ad_break_response_data"],We:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new gBa(a,c,d,this.j,this.Rb,this.gb);throw new dJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hJ(d.Ba)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.w(PBa,MF);g.w(QBa,bK);g.k=QBa.prototype;g.k.Fg=function(a,b){eK("ads-engagement-panel",a,this.K.get().Lj,this.Oa.get(),this.D,this.G,this.xc(),this.rb(),b)};
g.k.startRendering=function(a){dK(this.bb,this.xc(),this.rb(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new PBa(b,c,d,e,f)},this.j);
bK.prototype.startRendering.call(this,a)};
g.k.Ec=function(a,b){b.layoutId===this.layout.layoutId?this.bb.hc("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().ej():HG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Wc=function(){};
g.k.oh=function(){};
g.k.Zh=function(){};
g.k.Wh=function(){};
g.k.Qf=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(){};
g.k.Kg=function(){};
g.k.nh=function(){};
g.k.xa=function(){oJ(this.Uc(),this);bK.prototype.xa.call(this)};g.w(SBa,bK);g.k=SBa.prototype;g.k.Fg=function(a,b){eK("top-banner-image-text-icon-buttoned",a,this.K.get().Lj,this.Oa.get(),this.D,this.G,this.xc(),this.rb(),b)};
g.k.startRendering=function(a){dK(this.bb,this.xc(),this.rb(),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new LBa(b,c,d,e,f)},this.j);
bK.prototype.startRendering.call(this,a)};
g.k.Ec=function(a,b){if(b.layoutId!==this.layout.layoutId||YM(this.Da.get(),"enable_desktop_companion_impression_on_first_visible"))this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().ej():HG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout));else{a=gJ(b.Ba,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model");b=nBa(this.Oa.get(),{adPlacementConfig:this.adPlacementConfig});var c;KJ(this.Ab.get(),zF(null==(c=a.interaction)?void 0:c.onFirstVisible),
this.layout.layoutId,b)}};
g.k.Wc=function(){};
g.k.oh=function(){};
g.k.Zh=function(){};
g.k.Wh=function(){};
g.k.Qf=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(){};
g.k.Kg=function(){};
g.k.nh=function(){};
g.k.xa=function(){oJ(this.Uc(),this);bK.prototype.xa.call(this)};UBa.prototype.build=function(a,b,c,d){if(qK(d,RBa()))return new QBa(a,c,d,this.vc,this.Oa,this.Uc,this.wb,this.j);if(qK(d,xBa()))return new wBa(a,c,d,this.vc,this.Oa,this.Uc,this.wb,this.j);if(qK(d,ABa()))return new zBa(a,c,d,this.vc,this.Oa,this.Uc,this.wb,this.j);if(qK(d,DBa()))return new CBa(a,c,d,this.vc,this.Oa,this.Uc,this.wb,this.j);if(qK(d,IBa()))return new HBa(a,c,d,this.vc,this.Oa,this.Uc,this.wb,this.j);if(qK(d,uBa()))return new tBa(a,c,d,this.vc,this.Oa,this.Uc,this.wb,this.j,this.Ab,
this.Da);if(qK(d,TBa()))return new SBa(a,c,d,this.vc,this.Oa,this.Uc,this.wb,this.j,this.Ab,this.Da);if(qK(d,NBa()))return new MBa(a,c,d,this.vc,this.Oa,this.Uc,this.wb,this.j);throw new dJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hJ(d.Ba)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.w(VBa,MF);g.w(sK,bK);sK.prototype.init=function(){bK.prototype.init.call(this);var a=gJ(this.layout.Ba,"metadata_type_player_underlay_renderer");this.j.push(new VBa(g.U(a,kib),this.layout.layoutId,{adsClientData:this.layout.lc}))};
sK.prototype.Fg=function(){};
sK.prototype.startRendering=function(a){bK.prototype.startRendering.call(this,a);this.callback.Ec(this.slot,a)};
sK.prototype.xa=function(){bK.prototype.xa.call(this)};WBa.prototype.build=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.u(jK()),f=e.next();!f.done;f=e.next())b.push(f.value);if(qK(d,{Od:b,We:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new sK(a,c,d,this.vc);throw new dJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hJ(d.Ba)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.k=XBa.prototype;g.k.xc=function(){return this.slot};
g.k.rb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.uf(this.slot,a,new dJ("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.Ec(this.slot,a),this.bb.hc("impression"),NL(this.zk,a))};
g.k.Ye=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.uf(this.slot,a,new dJ("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=ZBa.prototype;g.k.xc=function(){return this.slot};
g.k.rb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.uf(this.slot,a,new dJ("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.Ec(this.slot,a),this.bb.hc("impression"),NL(this.zk,a))};
g.k.Ye=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.uf(this.slot,a,new dJ("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)};tK.prototype.build=function(a,b,c,d){if(!this.Da.get().J.U().L("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(qK(d,YBa()))return new XBa(a,c,d,this.Oa,this.zk)}else if(qK(d,{Od:[],We:["LAYOUT_TYPE_FORECASTING"]}))return new ZBa(a,c,d,this.Oa,this.zk);throw new dJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hJ(d.Ba)+" in ForecastingLayoutRenderingAdapterFactory.");};g.w(bCa,MF);g.w(cCa,bK);g.k=cCa.prototype;g.k.init=function(){bK.prototype.init.call(this);var a=g.U(this.layout.renderingContent,iCa)||gJ(this.layout.Ba,"metadata_type_player_overlay_layout_renderer"),b={adsClientData:this.layout.lc};this.j.push(new bCa(a,gJ(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,b))};
g.k.Lp=function(){this.D||this.Fa.get().resumeVideo(2)};
g.k.startRendering=function(a){bK.prototype.startRendering.call(this,a);this.callback.Ec(this.slot,a);this.G.ls=this};
g.k.Ye=function(a,b){bK.prototype.Ye.call(this,a,b);m2(this.G,this)};
g.k.Fg=function(a){if(YGa(this.K.get(),this.N))switch(a){case "visit-advertiser-link":this.Oa.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Fa.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Fa.get().On(2))||this.Fa.get().pauseVideo();break;case "visit-advertiser-link":this.Fa.get().pauseVideo();dCa(this).rK();
break;case "skip-button":if(a=dCa(this),!this.layout.renderingContent&&a.KI)HG("Requesting to skip by LegacyPlayerBytes when components enabled"),a.NA(this.xc(),this.layout);else{var b;(a=null==(b=gJ(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&lDa(a,this.xc(),this.layout)}}};
g.k.xa=function(){bK.prototype.xa.call(this)};g.w(uK,bK);g.k=uK.prototype;g.k.init=function(){bK.prototype.init.call(this);var a=g.U(this.layout.renderingContent,wK)||gJ(this.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.lc},c;(c=!!this.layout.renderingContent)||(c=!fCa(this).KI);this.j.push(new QG(a,this.layout.layoutId,gJ(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.Lp=function(){this.D||this.Fa.get().resumeVideo(2)};
g.k.startRendering=function(a){bK.prototype.startRendering.call(this,a);this.callback.Ec(this.slot,a);this.G.ls=this};
g.k.Ye=function(a,b){bK.prototype.Ye.call(this,a,b);m2(this.G,this)};
g.k.Fg=function(a){if(YGa(this.K.get(),this.N))switch(a){case "visit-advertiser":this.Oa.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Fa.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Fa.get().On(2))||this.Fa.get().pauseVideo();break;case "visit-advertiser":this.Fa.get().pauseVideo();fCa(this).rK();break;case "skip-button":if(a=
fCa(this),!this.layout.renderingContent&&a.KI)HG("Requesting to skip by LegacyPlayerBytes"),a.NA(this.xc(),this.layout);else{var b;(a=null==(b=gJ(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&lDa(a,this.xc(),this.layout)}}};
g.k.xa=function(){bK.prototype.xa.call(this)};g.w(gCa,MF);g.w(vK,bK);g.k=vK.prototype;g.k.startRendering=function(a){var b=this;lBa(this.B,a,function(){b.j.push(new gCa(gJ(b.layout.Ba,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.lc));b.NK();b.callback.Ec(b.slot,a);g.JG(B1(b.Fa.get(),1),512)&&b.callback.uf(b.xc(),b.rb(),new dJ("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.k.Ki=function(){};
g.k.Li=function(a){if(a.state.isError()){var b;this.callback.uf(this.xc(),this.rb(),new dJ("A player error happened during adNotify",{playerErrorCode:null==(b=a.state.Tg)?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.lh=function(){};
g.k.Ej=function(){};
g.k.hj=function(){};
g.k.onVolumeChange=function(){};
g.k.Dj=function(){};
g.k.Gj=function(){};
g.k.Fg=function(){};jCa.prototype.build=function(a,b,c,d){if(a=yK(a,c,d,this.vc,this.Fa,this.Oa,this.B,this.j,this.Da))return a;throw new dJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hJ(d.Ba)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.k=lCa.prototype;g.k.xc=function(){return this.slot};
g.k.rb=function(){return this.layout};
g.k.init=function(){this.Fa.get().addListener(this);this.Fa.get().TC.push(this);var a=gJ(this.layout.Ba,"metadata_type_video_length_seconds"),b=gJ(this.layout.Ba,"metadata_type_active_view_traffic_type");fK(this.layout.Fb)&&w1(this.Da.get())&&C1(this.wb.get(),this.layout.layoutId,b,a,this)};
g.k.release=function(){this.Fa.get().removeListener(this);Web(this.Fa.get(),this);fK(this.layout.Fb)&&w1(this.Da.get())&&D1(this.wb.get(),this.layout.layoutId)};
g.k.startRendering=function(a){this.callback.Ec(this.slot,a)};
g.k.Ye=function(a,b){mCa(this,"abandon");this.callback.Wc(this.slot,a,b)};
g.k.Dj=function(a){switch(a.id){case "part2viewed":this.bb.hc("start");w1(this.Da.get())&&this.bb.hc("impression");break;case "videoplaytime25":this.bb.hc("first_quartile");break;case "videoplaytime50":this.bb.hc("midpoint");break;case "videoplaytime75":this.bb.hc("third_quartile");break;case "videoplaytime100":mCa(this,"complete");mK(this.bb)&&kK(this.bb,Infinity,!0);break;case "engagedview":mK(this.bb)||this.bb.hc("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:HG("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.hj=function(){};
g.k.lh=function(){};
g.k.Ej=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Li=function(a){this.j||(g.LG(a,4)&&!g.LG(a,2)?this.bb.Or("pause"):0>KG(a,4)&&!(0>KG(a,2))&&this.bb.Or("resume"))};
g.k.Ki=function(){};
g.k.jQ=function(a){mK(this.bb)&&kK(this.bb,1E3*a,!1);0<a&&!w1(this.Da.get())&&this.bb.hc("impression")};
g.k.Gj=function(){mCa(this,"swipe")};
g.k.Kw=function(){this.bb.hc("active_view_measurable")};
g.k.Lw=function(){this.bb.hc("active_view_viewable")};
g.k.Jw=function(){this.bb.hc("active_view_fully_viewable_audible_half_duration")};
g.k.Iw=function(){this.bb.hc("audio_measurable")};
g.k.Hw=function(){this.bb.hc("audio_audible")};nCa.prototype.build=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.u(jK()),f=e.next();!f.done;f=e.next())b.push(f.value);if(qK(d,{Od:b,We:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"===c.slotType?new lCa(a,c,d,this.Fa,this.Oa,this.Da,this.wb):new JBa(a,c,d,this.Fa,this.Oa,this.Da,this.wb);throw new dJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hJ(d.Ba)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");
};var Skb,X2,oCa;
Skb={Uja:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Soa:"AUTHENTICATION_MALFORMED",Toa:"AUTHENTICATION_MISSING",fpa:"BAD_REQUEST",rqa:"CAST_SESSION_DEVICE_MISMATCHED",sqa:"CAST_SESSION_VIDEO_MISMATCHED",tqa:"CAST_TOKEN_EXPIRED",uqa:"CAST_TOKEN_FAILED",vqa:"CAST_TOKEN_MALFORMED",fra:"CGI_PARAMS_MALFORMED",gra:"CGI_PARAMS_MISSING",Yva:"DEVICE_FALLBACK",zxa:"GENERIC_WITH_LINK_AND_CPN",Axa:"ERROR_HDCP",Fxa:"LICENSE",Ixa:"VIDEO_UNAVAILABLE",wFa:"FORMAT_UNAVAILABLE",CFa:"GEO_FAILURE",
YGa:"HTML5_AUDIO_RENDERER_ERROR",ZGa:"GENERIC_WITHOUT_LINK",aHa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",bHa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",cHa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",lHa:"HTML5_SPS_UMP_STATUS_REJECTED",tIa:"INVALID_DRM_MESSAGE",y2a:"PURCHASE_NOT_FOUND",z2a:"PURCHASE_REFUNDED",z3a:"RENTAL_EXPIRED",H3a:"RETRYABLE_ERROR",F4a:"SERVER_ERROR",d6a:"SIGNATURE_EXPIRED",C9a:"STOPPED_BY_ANOTHER_PLAYBACK",J$a:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",K$a:"STREAMING_NOT_ALLOWED",
L$a:"STREAM_LICENSE_NOT_FOUND",Rbb:"TOO_MANY_REQUESTS",Sbb:"TOO_MANY_REQUESTS_WITH_LINK",Ubb:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Vbb:"TOO_MANY_STREAMS_PER_USER",Hhb:"UNSUPPORTED_DEVICE",Zhb:"VIDEO_FORBIDDEN",uib:"VIDEO_NOT_FOUND"};X2={};
g.nW=(X2.ALREADY_PINNED_ON_A_DEVICE="\u0412\u044b \u0443\u0436\u0435 \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u043e\u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0435\u043c. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u0437\u0434\u0435\u0441\u044c, \u043e\u0442\u043a\u0440\u0435\u043f\u0438\u0442\u0435 \u0435\u0433\u043e \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430.",X2.DEVICE_FALLBACK=
"\u0412\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.",X2.GENERIC_WITH_LINK_AND_CPN="\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435. \u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f: $CPN. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK",
X2.LICENSE="\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043e \u0438\u0437-\u0437\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439.",X2.VIDEO_UNAVAILABLE="\u041e\u0448\u0438\u0431\u043a\u0430",X2.FORMAT_UNAVAILABLE="\u042d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0432 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
X2.GEO_FAILURE="\u042d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0432 \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0435.",X2.HTML5_AUDIO_RENDERER_ERROR="\u041e\u0448\u0438\u0431\u043a\u0430 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0430\u0443\u0434\u0438\u043e. \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440.",
X2.GENERIC_WITHOUT_LINK="\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",X2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="\u042d\u0442\u043e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0438\u0434\u0435\u043e \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f",X2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="\u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0430\u0448 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0435\u0442 \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432\u0438\u0434\u0435\u043e\u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432. $BEGIN_LINK\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0447\u0430\u0441\u0442\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043e \u0432\u0438\u0434\u0435\u043e HTML5.$END_LINK",
X2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043e \u0432 \u044d\u0442\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043d\u0435\u043b\u044c\u0437\u044f. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435\u2026$END_LINK",X2.HTML5_SPS_UMP_STATUS_REJECTED="\u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435\u2026$END_LINK",
X2.INVALID_DRM_MESSAGE="\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b DRM.",X2.PURCHASE_NOT_FOUND="\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u044d\u0442\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e.",
X2.PURCHASE_REFUNDED="\u041f\u043e \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u043e\u043a\u0443\u043f\u043a\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0441\u0440\u0435\u0434\u0441\u0442\u0432.",X2.RENTAL_EXPIRED="\u0412\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u043a\u0430\u0442\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c.",X2.CAST_SESSION_DEVICE_MISMATCHED="\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u0441\u0435\u0430\u043d\u0441\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443.",
X2.CAST_SESSION_VIDEO_MISMATCHED="\u0412\u0438\u0434\u0435\u043e \u0432 \u0441\u0435\u0430\u043d\u0441\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443.",X2.CAST_TOKEN_FAILED="\u0421\u0435\u0430\u043d\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
X2.CAST_TOKEN_EXPIRED="\u0412\u0440\u0435\u043c\u044f \u0441\u0435\u0430\u043d\u0441\u0430 \u0438\u0441\u0442\u0435\u043a\u043b\u043e. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443.",X2.CAST_TOKEN_MALFORMED="\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0441\u0435\u0430\u043d\u0441. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
X2.SERVER_ERROR="\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",X2.STOPPED_BY_ANOTHER_PLAYBACK="\u0412\u0438\u0434\u0435\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0430\u0448\u0435\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440.",
X2.STREAM_LICENSE_NOT_FOUND="\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u0432\u0430\u043d\u043e. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443.",X2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="\u0417\u0430 \u0441\u0443\u0442\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432/IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432.",
X2.STREAMING_NOT_ALLOWED="\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0438\u0434\u0435\u043e \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043e \u043a \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443.",X2.RETRYABLE_ERROR="\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
X2.TOO_MANY_REQUESTS="\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e, \u0432\u043e\u0439\u0434\u0438\u0442\u0435 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442.",X2.TOO_MANY_REQUESTS_WITH_LINK="\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u043d\u0430 YouTube, \u043f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043f\u043e $BEGIN_LINK\u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435$END_LINK.",
X2.TOO_MANY_STREAMS_PER_USER="\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0445\u0441\u044f \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0443.",
X2.TOO_MANY_STREAMS_PER_ENTITLEMENT="\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e.",X2.UNSUPPORTED_DEVICE=
"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c.",X2.VIDEO_FORBIDDEN="\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0438\u0434\u0435\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d.",X2.VIDEO_NOT_FOUND="\u041d\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u0432\u0438\u0434\u0435\u043e.",
X2);
oCa={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",5102:"AUTHENTICATION_EXPIRED",
5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};var Tkb;var Ukb=g.pc(),Vkb=Ukb.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Vkb||2>Vkb.length)Tkb=void 0;else{var Wkb=Ukb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Tkb=Wkb&&6===Wkb.length?Number(Wkb[5].replace("_",".")):0}var aT=Tkb,iW=0<=aT;var rCa=!1;g.w(g.IK,DC);g.IK.prototype.T=function(a,b,c,d,e){return DC.prototype.T.call(this,a,b,c,d,e)};var Y2={},EPa=(Y2.FAIRPLAY="fairplay",Y2.PLAYREADY="playready",Y2.WIDEVINE="widevine",Y2.CLEARKEY=null,Y2.FLASHACCESS=null,Y2.UNKNOWN=null,Y2.WIDEVINE_CLASSIC=null,Y2);JK.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var Z2={},IP=(Z2.WIDTH={name:"width",video:!0,valid:640,In:99999},Z2.HEIGHT={name:"height",video:!0,valid:360,In:99999},Z2.FRAMERATE={name:"framerate",video:!0,valid:30,In:9999},Z2.BITRATE={name:"bitrate",video:!0,valid:3E5,In:2E9},Z2.EOTF={name:"eotf",video:!0,valid:"bt709",In:"catavision"},Z2.CHANNELS={name:"channels",video:!1,valid:2,In:99},Z2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",In:"invalidformat"},Z2.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
In:"nope"},Z2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",In:"av99.0.05M.08"},Z2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",In:"invalid"},Z2);var Xkb=["h","H"],Ykb=["9","("],Zkb=["9h","(h"],$kb=["8","*"],alb=["a","A"],blb=["o","O"],clb=["m","M"],dlb=["mac3","MAC3"],elb=["meac3","MEAC3"],$2={},$Pa=($2.h=Xkb,$2.H=Xkb,$2["9"]=Ykb,$2["("]=Ykb,$2["9h"]=Zkb,$2["(h"]=Zkb,$2["8"]=$kb,$2["*"]=$kb,$2.a=alb,$2.A=alb,$2.o=blb,$2.O=blb,$2.m=clb,$2.M=clb,$2.mac3=dlb,$2.MAC3=dlb,$2.meac3=elb,$2.MEAC3=elb,$2),flb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),qNa=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var a3={},OK=(a3["0"]="f",a3["160"]="h",a3["133"]="h",a3["134"]="h",a3["135"]="h",a3["136"]="h",a3["137"]="h",a3["264"]="h",a3["266"]="h",a3["138"]="h",a3["298"]="h",a3["299"]="h",a3["304"]="h",a3["305"]="h",a3["214"]="h",a3["216"]="h",a3["374"]="h",a3["375"]="h",a3["140"]="a",a3["141"]="ah",a3["327"]="sa",a3["258"]="m",a3["380"]="mac3",a3["328"]="meac3",a3["161"]="H",a3["142"]="H",a3["143"]="H",a3["144"]="H",a3["222"]="H",a3["223"]="H",a3["145"]="H",a3["224"]="H",a3["225"]="H",a3["146"]="H",a3["226"]=
"H",a3["227"]="H",a3["147"]="H",a3["384"]="H",a3["376"]="H",a3["385"]="H",a3["377"]="H",a3["149"]="A",a3["261"]="M",a3["381"]="MAC3",a3["329"]="MEAC3",a3["598"]="9",a3["278"]="9",a3["242"]="9",a3["243"]="9",a3["244"]="9",a3["775"]="9",a3["776"]="9",a3["777"]="9",a3["778"]="9",a3["779"]="9",a3["780"]="9",a3["781"]="9",a3["782"]="9",a3["783"]="9",a3["247"]="9",a3["248"]="9",a3["353"]="9",a3["355"]="9",a3["356"]="9",a3["271"]="9",a3["577"]="9",a3["313"]="9",a3["579"]="9",a3["272"]="9",a3["302"]="9",
a3["303"]="9",a3["407"]="9",a3["408"]="9",a3["308"]="9",a3["315"]="9",a3["330"]="9h",a3["331"]="9h",a3["332"]="9h",a3["333"]="9h",a3["334"]="9h",a3["335"]="9h",a3["336"]="9h",a3["337"]="9h",a3["338"]="so",a3["600"]="o",a3["250"]="o",a3["251"]="o",a3["194"]="*",a3["195"]="*",a3["220"]="*",a3["221"]="*",a3["196"]="*",a3["197"]="*",a3["279"]="(",a3["280"]="(",a3["317"]="(",a3["318"]="(",a3["273"]="(",a3["274"]="(",a3["357"]="(",a3["358"]="(",a3["275"]="(",a3["359"]="(",a3["360"]="(",a3["276"]="(",a3["583"]=
"(",a3["584"]="(",a3["314"]="(",a3["585"]="(",a3["561"]="(",a3["277"]="(",a3["361"]="(h",a3["362"]="(h",a3["363"]="(h",a3["364"]="(h",a3["365"]="(h",a3["366"]="(h",a3["591"]="(h",a3["592"]="(h",a3["367"]="(h",a3["586"]="(h",a3["587"]="(h",a3["368"]="(h",a3["588"]="(h",a3["562"]="(h",a3["409"]="(",a3["410"]="(",a3["411"]="(",a3["412"]="(",a3["557"]="(",a3["558"]="(",a3["394"]="1",a3["395"]="1",a3["396"]="1",a3["397"]="1",a3["398"]="1",a3["399"]="1",a3["400"]="1",a3["401"]="1",a3["571"]="1",a3["402"]=
"1",a3["694"]="1h",a3["695"]="1h",a3["696"]="1h",a3["697"]="1h",a3["698"]="1h",a3["699"]="1h",a3["700"]="1h",a3["701"]="1h",a3["702"]="1h",a3["703"]="1h",a3["386"]="3",a3["387"]="w",a3["406"]="6",a3["645"]="(",a3["646"]="(",a3["647"]="(",a3["648"]="(",a3["649"]="(",a3["650"]="(",a3["651"]="(",a3["652"]="(",a3["653"]="(",a3["654"]="(",a3["655"]="(",a3["656"]="(",a3["657"]="(",a3["658"]="(",a3["659"]="(",a3["660"]="(",a3["661"]="(",a3["662"]="(",a3["663"]="(",a3["664"]="(",a3["665"]="(",a3["666"]="(",
a3["667"]="(",a3["668"]="(",a3["669"]="(",a3["670"]="(",a3["671"]="(",a3["672"]="(",a3["673"]="(",a3["674"]="(h",a3["675"]="(h",a3["676"]="(h",a3["677"]="(h",a3["678"]="(h",a3["679"]="(h",a3["680"]="(h",a3["681"]="(h",a3["682"]="(h",a3["683"]="(h",a3["684"]="(h",a3["685"]="(h",a3["686"]="(h",a3["687"]="(h",a3["688"]="A",a3["689"]="A",a3["690"]="A",a3["691"]="MEAC3",a3["773"]="i",a3);var b3={},BPa=(b3.STEREO_LAYOUT_UNKNOWN=0,b3.STEREO_LAYOUT_LEFT_RIGHT=1,b3.STEREO_LAYOUT_TOP_BOTTOM=2,b3);var c3,wP;c3={};g.KK=(c3.auto=0,c3.tiny=144,c3.light=144,c3.small=240,c3.medium=360,c3.large=480,c3.hd720=720,c3.hd1080=1080,c3.hd1440=1440,c3.hd2160=2160,c3.hd2880=2880,c3.highres=4320,c3);wP={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var MK="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");LK.prototype.isHdr=function(){return"smpte2084"===this.B||"arib-std-b67"===this.B};PK.prototype.Ve=function(){return 2===this.containerType};
PK.prototype.isEncrypted=function(){return!!this.qe};
PK.prototype.Hi=function(){return!!this.audio};
PK.prototype.Hg=function(){return!!this.video};g.w(hL,g.NF);g.k=hL.prototype;g.k.appendBuffer=function(a,b,c){if(this.Vd.sD()!==this.appendWindowStart+this.start||this.Vd.SH()!==this.appendWindowEnd+this.start||this.Vd.Vc()!==this.timestampOffset+this.start)this.Vd.supports(1),this.Vd.IR(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Vd.Yp(this.timestampOffset+this.start);this.Vd.appendBuffer(a,b,c)};
g.k.abort=function(){this.Vd.abort()};
g.k.remove=function(a,b){this.Vd.remove(a+this.start,b+this.start)};
g.k.Tf=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.k.clear=function(){this.Vd.clear()};
g.k.IR=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.wO=function(){return this.timestampOffset+this.start};
g.k.sD=function(){return this.appendWindowStart};
g.k.SH=function(){return this.appendWindowEnd};
g.k.Yp=function(a){this.timestampOffset=a};
g.k.Vc=function(){return this.timestampOffset};
g.k.hf=function(a){a=this.Vd.hf(void 0===a?!1:a);return gL(a,this.start,this.end)};
g.k.hk=function(){return this.Vd.hk()};
g.k.pI=function(){return this.Vd.pI()};
g.k.pm=function(){return this.Vd.pm()};
g.k.dP=function(){return this.Vd.dP()};
g.k.Uy=function(){this.Vd.Uy()};
g.k.gw=function(a){return this.Vd.gw(a)};
g.k.Cv=function(){return this.Vd.Cv()};
g.k.ZH=function(){return this.Vd.ZH()};
g.k.CS=function(a,b){this.Vd.CS(a,b)};
g.k.supports=function(a){return this.Vd.supports(a)};
g.k.bI=function(){return this.Vd.bI()};
g.k.isView=function(){return!0};
g.k.hH=function(){return this.Vd.hH()?this.isActive:!1};
g.k.isLocked=function(){return this.wG&&!this.isActive};
g.k.qc=function(a){a=this.Vd.qc(a);a.vw=this.start+"-"+this.end;return a};
g.k.aI=function(){return this.Vd.aI()};
g.k.CD=function(){return this.Vd.CD()};
g.k.rO=function(){return this.Vd.rO()};
g.k.xa=function(){PF(this.Vd,this.BX);g.NF.prototype.xa.call(this)};var $Z=!1;g.w(iL,g.NF);g.k=iL.prototype;g.k.appendBuffer=function(a,b,c){this.QC=!1;c&&(this.nE=c);if(a.length){var d;(null==(d=this.dc)?0:d.appendBuffer)?this.dc.appendBuffer(a):this.dc?this.dc.append(a):this.Ag&&this.Ag.webkitSourceAppend(this.id,a)}b&&(b.isEncrypted()&&(this.wP=this.nE),3===b.type&&(this.Pf=b),this.mE.push(b.Qd()),4<this.mE.length&&this.mE.shift());this.iB&&(2<=this.iB.length||1048576<a.length?delete this.iB:this.iB.push(a))};
g.k.abort=function(){try{this.dc?this.dc.abort():this.Ag&&this.Ag.webkitSourceAbort(this.id)}catch(a){glb&&g.tF(new g.QC("Error while abort the source buffer: "+a.name+", "+a.message))}this.nE=this.Pf=null};
g.k.remove=function(a,b,c){this.QC=!1;var d;if(null==(d=this.dc)?0:d.remove)c&&c({b:aL(this.hf()),s:a,e:b}),this.dc.remove(a,b)};
g.k.Tf=function(){this.remove(this.sD(),this.SH())};
g.k.clear=function(){this.pm()||(this.abort(),this.Tf(),this.wP=this.nE=this.Pf=null,this.appendWindowStart=this.timestampOffset=0,this.SM=$K([],[]),this.QC=!1,this.iB=ECa?[]:void 0,this.mH=!0)};
g.k.sD=function(){if($Z&&this.Hg)return this.appendWindowStart;var a;return(null==(a=this.dc)?void 0:a.appendWindowStart)||0};
g.k.SH=function(){var a;return(null==(a=this.dc)?void 0:a.appendWindowEnd)||0};
g.k.IR=function(a,b){this.dc&&($Z&&this.Hg?(this.appendWindowStart=a,this.dc.appendWindowEnd=b):a>this.sD()?(this.dc.appendWindowEnd=b,this.dc.appendWindowStart=a):(this.dc.appendWindowStart=a,this.dc.appendWindowEnd=b))};
g.k.wO=function(){return this.timestampOffset};
g.k.Yp=function(a){$Z?this.timestampOffset=a:this.supports(1)&&(this.dc.timestampOffset=a)};
g.k.Vc=function(){return $Z?this.timestampOffset:this.supports(1)?this.dc.timestampOffset:0};
g.k.hf=function(a){if(void 0===a?0:a)return this.QC||this.hk()||(this.SM=this.hf(!1),this.QC=!0),this.SM;try{return this.dc?this.dc.buffered:this.Ag?this.Ag.webkitSourceBuffered(this.id):$K([0],[Infinity])}catch(b){return $K([],[])}};
g.k.hk=function(){var a;return(null==(a=this.dc)?void 0:a.updating)||!1};
g.k.pm=function(){return this.mH};
g.k.dP=function(){return!this.mH&&this.hk()};
g.k.Uy=function(){this.mH=!1};
g.k.gw=function(a){var b=null==a?void 0:a.sb;a=null==a?void 0:a.containerType;return!b&&!a||b===this.sb&&a===this.containerType};
g.k.Cv=function(){return this.nE};
g.k.ZH=function(){return this.wP};
g.k.CS=function(a,b){this.containerType!==a&&(this.supports(4),jL()&&this.dc.changeType(b));this.containerType=a};
g.k.bI=function(){return this.Pf};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.dc)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.dc)||!c.appendBuffer);case 2:var d;return!(null==(d=this.dc)||!d.remove);case 3:var e,f;return!!((null==(e=this.dc)?0:e.addEventListener)&&(null==(f=this.dc)?0:f.removeEventListener));case 4:return!(!this.dc||!this.dc.changeType);default:return!1}};
g.k.hH=function(){return!this.hk()};
g.k.isLocked=function(){return!1};
g.k.qc=function(a){a.to=this.Vc();a.up=this.hk();var b,c=(null==(b=this.dc)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.dc)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=aL(this.hf())}catch(e){}return a};
g.k.pI=function(){var a;return(null==(a=this.dc)?void 0:a.writeHead)||0};
g.k.aI=function(){for(var a={},b=0;b<this.mE.length;b++)a["s"+b]=this.mE[b];return a};
g.k.xa=function(){this.supports(3)&&(this.dc.removeEventListener("updateend",this.Id),this.dc.removeEventListener("error",this.Id));g.NF.prototype.xa.call(this)};
g.k.CD=function(){return this.containerType};
g.k.rO=function(){return this.iB};
var ECa=!1,glb=!1;kL.prototype.dispose=function(){if(!this.isDisposed){if(this.j)try{URL.revokeObjectURL(this.resource)}catch(a){}this.B=!0}};
kL.prototype.isDisposed=function(){return this.B};
kL.prototype.toString=function(){return"MediaResource {"+this.resource+"}"};g.w(lL,g.I);g.k=lL.prototype;g.k.getDuration=function(){var a;return(null==(a=this.Qa)?void 0:a.duration)||this.va};
g.k.wl=function(a){try{this.Qa?this.Qa.duration=a:(this.va=a,this.Ag.webkitSourceSetDuration(a))}catch(b){}};
g.k.Ug=function(){try{return"closed"===sL(this)}catch(a){return!0}};
g.k.hk=function(){return!!(this.j&&this.j.hk()||this.B&&this.B.hk())};
g.k.isAsync=function(){return this.j?!!this.j.supports(0):JCa()};
g.k.Gaa=function(){!this.isDisposed()&&nL(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.Faa=function(){this.dispose()};
g.k.S3=function(a){if(oL&&!this.G&&a.pm()&&0===a.hf().length){var b;pL(this.mediaElement,{l:"mswoue",sr:null==(b=this.mediaElement.oa)?void 0:qL(b)},!1);a.Uy();this.pm()||(this.mediaElement.CI=!0,this.mediaElement.setCurrentTime(0))}};
g.k.UM=function(){return!!this.j.supports(2)};
g.k.clear=function(){GCa(this,function(){});
var a;null==(a=this.j)||a.clear();var b;null==(b=this.B)||b.clear()};
g.k.pm=function(){var a,b;return(null==(a=this.B)?void 0:a.pm())||(null==(b=this.j)?void 0:b.pm())};
g.k.gw=function(a,b){return!!this.j&&!!this.B&&this.j.gw(b)&&this.B.gw(a)};
var oL=!1,mL=!1;tL.prototype.then=function(a,b){return this.promise.then(a,b)};
tL.prototype.resolve=function(a){this.yR(a)};
tL.prototype.reject=function(a){this.x_(a)};g.w(uL,g.I);g.k=uL.prototype;g.k.NG=function(){return this.resource};
g.k.Jy=function(a){var b="";a&&(RCa(this,a),b=a.resource);if(!this.Kf()||b)b&&this.Kf()!==b&&(this.PG(b),delete this.B,this.C&&(this.C.reject(),delete this.C),rCa&&!window.MediaSource&&window.ManagedMediaSource&&this.KR(!(null==a||!a.j))),a&&a.j||this.load(),this.N||(this.addEventListener("volumechange",this.UV),this.N=!0)};
g.k.Iq=function(a,b){if(this.B)if(hlb&&rL(this.B)&&!this.B.gw(a,b)){var c;pL(this,{l:"megms",sr:null==(c=this.oa)?void 0:qL(c)});PCa(this);this.stopVideo()}else return this.Qa=this.B,this.B=void 0,this.Qa;a=window.MediaSource?new lL(this,new window.MediaSource,!1):mL&&window.ManagedMediaSource?new lL(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new lL(this,new window.WebKitMediaSource,!1):new lL(this,void 0,!1);this.Jy(a.C);this.Qa=a;this.CI=!1;return a};
g.k.playVideo=function(){var a=this;this.isEnded()&&this.seekTo(0);!this.Kf()&&this.resource&&(g.tF(Error("playVideo without src")),this.PG(this.resource.resource),this.resource.j||this.load());var b=this.play(),c;(null==(c=this.oa)?0:c.L("html5_remove_ios_7_hack_force_play"))||!b&&iW&&7<=(aT||0)&&qCa(this,function(){g.LB(function(){QCa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.Jk()&&(iW&&4>aT&&(a=Math.max(.1,a)),this.setCurrentTime(a))};
g.k.uo=function(){if(!this.B&&this.Qa)if(this.Qa.K)try{var a;pL(this,{l:"mer",sr:null==(a=this.oa)?void 0:qL(a),rs:sL(this.Qa)});this.Qa.clear();this.B=this.Qa;this.Qa=void 0}catch(b){a=new g.QC("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.tF(a),this.stopVideo()}else this.stopVideo()};
g.k.stopVideo=function(){var a=this;if(!this.B){var b;null==(b=this.Qa)||MCa(b);if(ilb){if(!this.C){var c=new tL;c.then(void 0,function(){});
this.C=c;jlb&&this.pause();g.LB(function(){a.C===c&&(UCa(a),c.resolve())},200)}}else UCa(this)}};
g.k.Cz=function(){var a=this.Oh();return 0<eL(a)&&this.getDuration()?dL(a,this.getCurrentTime()):0};
g.k.Fv=function(){var a=this.getDuration();return Infinity===a?1:a?this.Cz()/a:0};
g.k.qc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:aL(this.Iv(),",",3),vbu:aL(this.Oh()),vpa:""+ +this.isPaused(),vsk:""+ +this.eg(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Jk(),vns:""+this.fI(),vec:""+this.gh(),vemsg:this.Af(),vvol:""+this.getVolume(),vdom:""+ +this.eP(),vsrc:""+ +!!this.Kf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.hasError=function(){return 0<this.gh()};
g.k.addEventListener=function(a,b){this.D.Ta(a,b,!1,this);this.IN(a)};
g.k.removeEventListener=function(a,b){this.D.Tc(a,b,!1,this)};
g.k.dispatchEvent=function(a){if(this.C&&"pause"===a.type)return!1;if(hlb){var b,c=(null==(b=a.j)?void 0:b.timeStamp)||Infinity;b=c>performance.now()?c-Date.now()+performance.now():c;c=this.B||this.Qa;if((null==c?0:c.pm())||b<=((null==c?void 0:c.N)||0)){var d;pL(this,{l:"mede",sr:null==(d=this.oa)?void 0:qL(d),et:a.type});return!1}if(this.CI)return pL(this,{l:"medes",et:a.type}),c&&"seeking"===a.type&&(c.N=performance.now(),this.CI=!1),!1}return this.D.dispatchEvent(a)};
g.k.EN=function(){this.K=!1};
g.k.BN=function(){this.K=!0;this.oB(!0)};
g.k.UV=function(){this.K&&!this.eI()&&this.oB(!0)};
g.k.xa=function(){this.N&&this.removeEventListener("volumechange",this.UV);ilb&&UCa(this);g.I.prototype.xa.call(this)};
var ilb=!1,jlb=!1,hlb=!1,TCa=!1;g.k=g.wL.prototype;g.k.isPaused=function(){return g.JG(this,4)};
g.k.isPlaying=function(){return g.JG(this,8)&&!g.JG(this,512)&&!g.JG(this,64)&&!g.JG(this,2)};
g.k.isCued=function(){return g.JG(this,64)&&!g.JG(this,8)&&!g.JG(this,4)};
g.k.isError=function(){return g.JG(this,128)};
g.k.isSuspended=function(){return g.JG(this,512)};
g.k.hE=function(){return g.JG(this,64)&&g.JG(this,4)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};
var d3={},e3=(d3.BUFFERING="buffering-mode",d3.CUED="cued-mode",d3.ENDED="ended-mode",d3.PAUSED="paused-mode",d3.PLAYING="playing-mode",d3.SEEKING="seeking-mode",d3.UNSTARTED="unstarted-mode",d3);g.w(GL,g.I);g.k=GL.prototype;g.k.xc=function(){return this.slot};
g.k.rb=function(){return this.layout};
g.k.init=function(){var a=gJ(this.layout.Ba,"metadata_type_video_length_seconds"),b=gJ(this.layout.Ba,"metadata_type_active_view_traffic_type");fK(this.layout.Fb)&&C1(this.wb.get(),this.layout.layoutId,b,a,this);Neb(this.Oa.get(),this);this.Sv()};
g.k.release=function(){fK(this.layout.Fb)&&D1(this.wb.get(),this.layout.layoutId);Oeb(this.Oa.get(),this);this.jx()};
g.k.vr=function(){};
g.k.Ar=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.EB.uf(this.slot,a,new dJ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{this.Qc="rendering_start_requested";var b=this.tf.get();b.W.experiments.kb("disable_safari_ui_status_check")||(b.W.B&&g.kD?0:b.W.B||g.wJ(b.W)||g.yJ(b.W)||fS(b.W)||
!g.kD)?b=!0:(b=g.Af("video-ads"),b=null!=b&&"none"!==ns(b,"display"));b?(this.kF(-1),this.yx(a),this.ZG(!1)):this.Gw("ui_unstable",new dJ("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.Ec=function(a,b){if(b.layoutId===this.layout.layoutId){this.Qc="rendering";this.kE=this.Fa.get().isMuted()||0===this.Fa.get().getVolume();this.hc("impression");this.hc("start");if(this.Fa.get().isMuted()){this.Or("mute");var c;a=(null==(c=FL(this))?void 0:c.muteCommands)||[];JJ(this.Ab.get(),a,this.layout.layoutId)}if(this.Fa.get().isFullscreen()){this.Gh("fullscreen");var d;c=(null==(d=FL(this))?void 0:d.fullscreenCommands)||[];JJ(this.Ab.get(),c,this.layout.layoutId)}d=this.Ac.get();d.D&&!d.B&&
(d.G=!1,d.B=!0,"ad_to_video"!==d.actionType&&(d.J.L("html5_no_video_to_ad_on_preroll")?TH("pbs",void 0,d.actionType):SH("pbs",void 0,d.actionType),g.PB("finalize_all_timelines")&&Hya(d.actionType)));this.kF(1);this.uZ(b);var e;b=(null==(e=FL(this))?void 0:e.impressionCommands)||[];JJ(this.Ab.get(),b,this.layout.layoutId)}};
g.k.Gw=function(a,b,c){this.Ou={nL:3,tG:"load_timeout"===a?402:400,errorMessage:b.message};this.hc("error");var d;a=(null==(d=FL(this))?void 0:d.errorCommands)||[];JJ(this.Ab.get(),a,this.layout.layoutId);this.rf()||this.EB.uf(this.slot,this.layout,b,c)};
g.k.rI=function(){this.rf()&&HG("Unexpected ad player in SSAP",this.slot,this.layout);this.rH()};
g.k.AX=function(){this.rH()};
g.k.sX=function(){if("rendering"===this.Qc){this.Or("pause");var a,b=(null==(a=FL(this))?void 0:a.pauseCommands)||[];JJ(this.Ab.get(),b,this.layout.layoutId);this.kF(2)}};
g.k.tX=function(){if("rendering"===this.Qc){this.Or("resume");var a,b=(null==(a=FL(this))?void 0:a.resumeCommands)||[];JJ(this.Ab.get(),b,this.layout.layoutId)}};
g.k.Gz=function(a,b){b=void 0===b?!1:b;if("rendering"===this.Qc){kK(this.bb,1E3*a,b);this.kE||kK(this.bb,1E3*a,void 0===b?!1:b);var c=this.Az();if(c&&(c/=1E3,(a>=.25*c||b)&&this.hc("first_quartile"),(a>=.5*c||b)&&this.hc("midpoint"),(a>=.75*c||b)&&this.hc("third_quartile"),b=this.Hba,a*=1E3,c=b.G())){for(;b.D<b.B.length;){var d=b.B[b.D];if(d.adVideoOffset.percent*c<=a)b.Ab.get().executeCommand(d.command,b.layoutId),b.D++;else break}for(;b.C<b.j.length;)if(c=b.j[b.C],Number(c.adVideoOffset.milliseconds)<=
a)b.Ab.get().executeCommand(c.command,b.layoutId),b.C++;else break}}};
g.k.Rk=function(){var a;return(null==(a=this.Ua.get().Se(1))?void 0:a.clientPlaybackNonce)||""};
g.k.RH=function(){var a;return(null==(a=this.Ua.get().Se(2))?void 0:a.clientPlaybackNonce)||""};
g.k.Ye=function(a,b){if(a.layoutId!==this.layout.layoutId)this.EB.uf(this.slot,a,new dJ("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.Qc){this.Qc="rendering_stop_requested";this.layoutExitReason=b;switch(b){case "normal":this.hc("complete");break;case "skipped":this.hc("skip");
break;case "abandoned":lK(this.bb,"impression")&&this.hc("abandon")}this.zx(a,b)}};
g.k.Wc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.Qc="not_rendering",this.layoutExitReason=void 0,(a="normal"!==c||this.position+1===this.G0)&&this.ZG(a),this.EJ(b,c),this.kF(0),c){case "abandoned":if(lK(this.bb,"impression")){var d,e=(null==(d=FL(this))?void 0:d.abandonCommands)||[];JJ(this.Ab.get(),e,this.layout.layoutId)}break;case "normal":d=(null==(e=FL(this))?void 0:e.completeCommands)||[];JJ(this.Ab.get(),d,this.layout.layoutId);break;case "skipped":var f;d=(null==(f=
FL(this))?void 0:f.skipCommands)||[];JJ(this.Ab.get(),d,this.layout.layoutId)}};
g.k.Bz=function(){return this.layout.layoutId};
g.k.UN=function(){return this.Ou};
g.k.Li=function(a){if("not_rendering"!==this.Qc){this.L_||(a=new g.IG(a.state,new g.wL),this.L_=!0);if(!this.rf()){var b=2===this.Fa.get().getPresentingPlayerType();if("rendering_start_requested"===this.Qc){b&&kCa(a)&&this.lN();return}if(!b){this.rI();return}if(g.LG(a,2)){this.vX();return}}kCa(a)?this.kF(1):g.LG(a,4)&&!g.LG(a,2)&&this.sX();0>KG(a,4)&&!(0>KG(a,2))&&this.tX()}};
g.k.Kw=function(){if("rendering"===this.Qc){this.bb.hc("active_view_measurable");var a,b=(null==(a=FL(this))?void 0:a.activeViewMeasurableCommands)||[];JJ(this.Ab.get(),b,this.layout.layoutId)}};
g.k.Jw=function(){if("rendering"===this.Qc){this.bb.hc("active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=FL(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];JJ(this.Ab.get(),b,this.layout.layoutId)}};
g.k.Lw=function(){if("rendering"===this.Qc){this.bb.hc("active_view_viewable");var a,b=(null==(a=FL(this))?void 0:a.activeViewViewableCommands)||[];JJ(this.Ab.get(),b,this.layout.layoutId)}};
g.k.Hw=function(){if("rendering"===this.Qc){this.bb.hc("audio_audible");var a,b=(null==(a=FL(this))?void 0:a.activeViewAudioAudibleCommands)||[];JJ(this.Ab.get(),b,this.layout.layoutId)}};
g.k.Iw=function(){if("rendering"===this.Qc){this.bb.hc("audio_measurable");var a,b=(null==(a=FL(this))?void 0:a.activeViewAudioMeasurableCommands)||[];JJ(this.Ab.get(),b,this.layout.layoutId)}};
g.k.ZG=function(a){this.Ac.get().ZG(gJ(this.layout.Ba,"metadata_type_ad_placement_config").kind,a,this.position,this.G0,!1)};
g.k.onFullscreenToggled=function(a){if("rendering"===this.Qc)if(a){this.Gh("fullscreen");var b,c=(null==(b=FL(this))?void 0:b.fullscreenCommands)||[];JJ(this.Ab.get(),c,this.layout.layoutId)}else this.Gh("end_fullscreen"),b=(null==(c=FL(this))?void 0:c.endFullscreenCommands)||[],JJ(this.Ab.get(),b,this.layout.layoutId)};
g.k.onVolumeChange=function(){if("rendering"===this.Qc)if(this.Fa.get().isMuted()){this.Or("mute");var a,b=(null==(a=FL(this))?void 0:a.muteCommands)||[];JJ(this.Ab.get(),b,this.layout.layoutId)}else this.Or("unmute"),a=(null==(b=FL(this))?void 0:b.unmuteCommands)||[],JJ(this.Ab.get(),a,this.layout.layoutId)};
g.k.lh=function(){};
g.k.Ej=function(){};
g.k.hj=function(){};
g.k.Dj=function(){};
g.k.Gj=function(){};
g.k.Gh=function(a){this.bb.Gh(a,!this.kE)};
g.k.hc=function(a){this.bb.hc(a,!this.kE)};
g.k.Or=function(a){this.bb.Or(a,!this.kE)};
g.k.rf=function(){var a=gJ(this.slot.Ba,"metadata_type_eligible_for_ssap");return void 0===a?(HG("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Da.get().rf(a)};g.w(aDa,GL);g.k=aDa.prototype;g.k.Sv=function(){};
g.k.jx=function(){var a=this.Oa.get();a.SK===this&&(a.SK=null);this.sf.stop()};
g.k.yx=function(){$Ca(this);this.rf()||Zeb(this.Fa.get());this.Oa.get().SK=this;PH("pbp")||PH("pbs")||TH("pbp");PH("pbp","watch")||PH("pbs","watch")||TH("pbp",void 0,"watch");this.lN()};
g.k.uZ=function(a){if(YM(this.Da.get(),"h5_enable_ad_mbs")){this.Ac.get();var b=gJ(a.Ba,"metadata_type_ad_placement_config").kind,c=0===this.position;a=gJ(a.Ba,"metadata_type_linked_in_player_layout_type");a={adBreakType:ZCa(b),adType:reb(a)};var d=void 0;c?"AD_PLACEMENT_KIND_START"!==b&&(d="video_to_ad"):d="ad_to_ad";SH("ad_mbs",void 0,d);g.QH(a,d)}dDa(this)};
g.k.vX=function(){};
g.k.vr=function(){this.sf.stop();GL.prototype.sX.call(this)};
g.k.Ar=function(){dDa(this);GL.prototype.tX.call(this)};
g.k.Az=function(){return gJ(this.rb().Ba,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.zx=function(){this.sf.stop()};
g.k.Rc=function(){var a=Date.now(),b=a-this.zP;this.zP=a;this.lj+=b;this.lj>=this.Az()?(this.lj=this.Az(),this.Gz(this.lj/1E3,!0),cDa(this,this.lj),this.rf()?this.EB.CF(this.xc(),this.rb(),"normal"):this.rH()):(this.Gz(this.lj/1E3),cDa(this,this.lj))};
g.k.EJ=function(){};
g.k.Ki=function(){};g.w(KL,GL);g.k=KL.prototype;g.k.Sv=function(){gJ(this.rb().Ba,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=gJ(this.rb().Ba,"metadata_type_shrunken_player_bytes_config")};
g.k.jx=function(){gJ(this.rb().Ba,"metadata_type_player_bytes_callback_ref").current=null;this.ov&&this.wc.get().removeCueRange(this.ov);this.ov=void 0;var a;null==(a=this.kJ)||a.dispose();this.tA&&this.tA.dispose()};
g.k.yx=function(a){var b=IL(this.Da.get()),c=JL(this.Da.get());if(b&&c&&!this.rf()){c=gJ(a.Ba,"metadata_type_preload_player_vars");var d=g.lJ(this.Da.get().J.U().experiments,"html5_preload_wait_time_secs");c&&this.tA&&this.tA.start(1E3*d)}c=gJ(a.Ba,"metadata_type_ad_video_id");d=gJ(a.Ba,"metadata_type_legacy_info_card_vast_extension");c&&d&&this.Bf.get().J.U().Na.add(c,{jH:d});(c=gJ(a.Ba,"metadata_type_sodar_extension_data"))&&GAa(this.Xe.get(),c);$eb(this.Fa.get(),!1);$Ca(this);if(this.rf())this.lN();
else{b?(c=this.Md.get(),a=gJ(a.Ba,"metadata_type_player_vars"),c.J.loadVideoByPlayerVars(a,!1,2)):ifb(this.Md.get(),gJ(a.Ba,"metadata_type_player_vars"));var e;null==(e=this.kJ)||e.start();b||this.Md.get().J.playVideo(2)}};
g.k.uZ=function(){var a;null==(a=this.kJ)||a.stop();this.ov="adcompletioncuerange:"+this.rb().layoutId;this.wc.get().addCueRange(this.ov,0x7ffffffffffff,0x8000000000000,!1,this,2,2);(this.adCpn=this.RH())||HG("Media layout confirmed started, but ad CPN not set.");this.jd.get().bx("onAdStart",this.adCpn);this.qV=Date.now()};
g.k.vX=function(){this.rH()};
g.k.Az=function(){var a;return null==(a=this.Ua.get().Se(2))?void 0:a.tba};
g.k.rK=function(){this.bb.Gh("clickthrough")};
g.k.zx=function(){var a;null==(a=this.kJ)||a.stop();this.tA&&this.tA.stop();$eb(this.Fa.get(),!0);var b;(null==(b=this.shrunkenPlayerBytesConfig)?0:b.shouldRequestShrunkenPlayerBytes)&&this.Fa.get().tB(!1)};
g.k.onCueRangeEnter=function(a){a!==this.ov?HG("Received CueRangeEnter signal for unknown layout.",this.xc(),this.rb(),{cueRangeId:a}):(this.wc.get().removeCueRange(this.ov),this.ov=void 0,a=gJ(this.rb().Ba,"metadata_type_video_length_seconds"),this.Gz(a,!0),this.hc("complete"))};
g.k.EJ=function(a,b){"abandoned"!==b&&this.jd.get().bx("onAdComplete");this.jd.get().bx("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.Ki=function(a){"rendering"===this.Qc&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Fa.get().tB(!0),this.Gz(a))};
g.k.Gz=function(a,b){GL.prototype.Gz.call(this,a,void 0===b?!1:b);if(5<=a&&!this.FX){b=Date.now()-this.qV;a*=1E3;var c={contentCpn:this.Rk(),adCpn:this.RH()},d=1E3>b?0:1;uxa(d,"i.k_",{metadata:c,o5:b,p5:Math.floor(a/1E3)});qB("IKDSTAT",d);this.FX=!0}};g.w(gDa,g.I);g.k=gDa.prototype;g.k.init=function(){var a=gJ(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ua.get().addListener(this);this.Nd.init();(a=gJ(this.Nd.rb().Ba,"metadata_type_player_vars"))&&this.Md.get().addPlayerResponseForAssociation(a)};
g.k.release=function(){this.Ua.get().removeListener(this);this.Nd.release()};
g.k.HJ=function(){};
g.k.OJ=function(a,b,c){if(this.layout.layoutId===a)if(void 0!==this.j){var d=this.j;3!==c&&HG("Unexpected transition reason when core initiated the exit",this.slot,this.layout,{exitingCpn:a,enteringCpn:b,transitionReason:c});this.callback.Wc(this.slot,this.layout,d);this.j=void 0}else this.B&&HG("Expected a video to exit at most once",this.slot,this.layout),this.B=!0,2===c?NL(this.Ne,this.layout):4===c?(a=new dJ("Non video ad expired during SSAP single layout.",{playerErrorCode:"non_video_expired"},
"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),this.Nd.Gw("non_video_expired",a,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),this.callback.uf(this.slot,this.layout,a,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")):HG("Unexpected transition reason when player initiated the exit",this.slot,this.layout,{exitingCpn:a,enteringCpn:b,transitionReason:c})};
g.k.NJ=function(a){this.layout.layoutId===a&&jHa(this.le,this.slot.slotId)};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.uf(this.xc(),a,new dJ("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.Fa.get().addListener(this),nJ(this.Uc(),this),this.Nd.startRendering(this.layout),this.callback.Ec(this.slot,this.layout))};
g.k.Ye=function(a,b){this.Nd.Ye(this.layout,b);this.Fa.get().removeListener(this);this.B?(this.callback.Wc(this.slot,this.layout,b),this.B=!1):(void 0!==this.j&&HG("Expected the layout to be requested to exit at most once",this.slot,this.layout),this.j=b,this.Sc.get().finishSegmentByCpn(this.layout.layoutId,this.Ua.get().Se(1).clientPlaybackNonce))};
g.k.xc=function(){return this.slot};
g.k.rb=function(){return this.layout};
g.k.vr=function(){this.Nd.vr()};
g.k.Ar=function(){this.Nd.Ar()};
g.k.NA=function(a,b){HG("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.slot,this.layout,{requestingSlot:a,requestingLayout:b})};
g.k.Ec=function(a,b){this.Nd.Ec(a,b)};
g.k.Wc=function(a,b,c){b.layoutId===this.layout.layoutId&&oJ(this.Uc(),this);this.Nd.Wc(a,b,c)};
g.k.oh=function(){};
g.k.Zh=function(){};
g.k.Wh=function(){};
g.k.Qf=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(){};
g.k.Kg=function(){};
g.k.nh=function(){};
g.k.Ki=function(a){this.Nd.Ki(a)};
g.k.Li=function(a){if(a.state.isError()){var b,c=new dJ("There was a player error during SSAP single media layout.",{playerErrorCode:null==(b=a.state.Tg)?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),d;this.Nd.Gw(null==(d=a.state.Tg)?void 0:d.errorCode,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");this.callback.uf(this.slot,this.layout,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Nd.Li(a)};
g.k.onFullscreenToggled=function(a){this.Nd.onFullscreenToggled(a)};
g.k.lh=function(a){this.Nd.lh(a)};
g.k.hj=function(a){this.Nd.hj(a)};
g.k.onVolumeChange=function(){this.Nd.onVolumeChange()};
g.k.Dj=function(){};
g.k.Gj=function(){};
g.k.Ej=function(){};g.w(iDa,g.I);g.k=iDa.prototype;g.k.xc=function(){return this.slot};
g.k.rb=function(){return this.layout};
g.k.HJ=function(){};
g.k.OJ=function(a,b){var c=this,d=this.Ad[this.zd];d&&this.KO&&(d.rb().layoutId!==a&&HG("Unexpected active subLRA when previous playback ends",this.slot,this.layout),this.RV=function(e){e.layoutId!==a&&HG("Unexpected previous CPN when sublayout exit is confirmed",c.slot,c.layout);c.Ad.some(function(f){return f.rb().layoutId===b})||(c.zd=c.Ad.length,NL(c.zk,c.layout))},d.AX())};
g.k.NJ=function(a){var b=this.Ad.findIndex(function(c){return c.rb().layoutId===a});
-1!==b&&(-1===this.zd&&jHa(this.le,this.slot.slotId),qDa(this,b))};
g.k.vr=function(a,b){var c=this.Ad[this.zd];b.layoutId!==LL(c,a,b)?HG("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.vr()};
g.k.Ar=function(a,b){var c=this.Ad[this.zd];b.layoutId!==LL(c,a,b)?HG("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Ar()};
g.k.NA=function(a,b){var c=this.Ad[this.zd];this.zd===this.Ad.length-1&&HG("Unexpected skip requested during the last sublayout",c.xc(),c.rb(),{requestingSlot:a,requestingLayout:b});b.layoutId!==LL(c,a,b)?HG("onSkipRequested for a PlayerBytes layout that is not currently active",c.xc(),c.rb(),{requestingSlot:a,requestingLayout:b}):oDa(this,c.xc(),c.rb(),"skipped")};
g.k.Jaa=function(a,b){kAa(this.dG,a,b)};
g.k.Ec=function(a,b){var c=this.Ad[this.zd];c&&c.Ec(a,b)};
g.k.Wc=function(a,b,c){b.layoutId===this.rb().layoutId&&(this.Rv=!1,oJ(this.Uc(),this));var d=this.Ad[this.zd];d&&d.Wc(a,b,c)};
g.k.FP=function(){var a=this.Ad[this.zd];a&&a.rI()};
g.k.Ki=function(a){var b=this.Ad[this.zd];b&&b.Ki(a)};
g.k.EO=function(a,b,c){-1===this.zd&&(this.callback.Ec(this.slot,this.layout),this.zd++);var d=this.Ad[this.zd];d?(d.Gw(a,b,c),this.rf()&&this.callback.uf(this.slot,this.layout,b,c)):HG("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.zd),layoutId:this.rb().layoutId})};
g.k.onFullscreenToggled=function(a){var b=this.Ad[this.zd];if(b)b.onFullscreenToggled(a)};
g.k.lh=function(a){var b=this.Ad[this.zd];b&&b.lh(a)};
g.k.hj=function(a){var b=this.Ad[this.zd];b&&b.hj(a)};
g.k.onVolumeChange=function(){var a=this.Ad[this.zd];if(a)a.onVolumeChange()};
g.k.Laa=function(a,b,c){this.rf()?mDa(this,b,c):oDa(this,a,b,c)};
g.k.CF=function(a,b,c){jDa(this,b,this.zd+1,c)};
g.k.Kaa=function(a,b,c,d){this.rf()?this.callback.uf(this.slot,this.layout,c,d):oDa(this,a,b,"error")};
g.k.init=function(){var a=gJ(this.rb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ua.get().Se(1).daiEnabled&&HG("Unexpected VOD LRA on DAI content",this.slot,this.layout);if(1>this.Ad.length)throw new eJ("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Ad.length)});if(a=gJ(this.rb().Ba,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=this;a=g.u(this.Ad);for(var b=a.next();!b.done;b=a.next())b=
b.value,b.init(),hAa(this.dG,this.slot,b.rb()),iAa(this.dG,this.slot,b.rb());if(this.rf())for(this.Ua.get().addListener(this),a=g.u(this.Ad),b=a.next();!b.done;b=a.next())(b=gJ(b.value.rb().Ba,"metadata_type_player_vars"))&&this.Md.get().addPlayerResponseForAssociation(b)};
g.k.release=function(){var a=gJ(this.rb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);if(a=gJ(this.rb().Ba,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=null;a=g.u(this.Ad);for(var b=a.next();!b.done;b=a.next())b=b.value,jAa(this.dG,this.slot,b.rb()),b.release();this.rf()&&this.Ua.get().removeListener(this)};
g.k.startRendering=function(a){a.layoutId!==this.rb().layoutId?this.callback.uf(this.xc(),a,new dJ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.rb().layoutId+("and LayoutType: "+this.rb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Fa.get().addListener(this),nJ(this.Uc(),this),y1(this.Da.get())&&s1(this.Ac.get()),xeb(this.Da.get())||this.rf()||Zeb(this.Fa.get()),y1(this.Da.get())||s1(this.Ac.get()),
this.rf()||-1===this.zd&&nDa(this,this.zd+1))};
g.k.Ye=function(a,b){var c=this;this.rf()?(this.zd===this.Ad.length?this.callback.Wc(this.slot,this.layout,b):(a=this.Ad[this.zd],a.Ye(a.rb(),b),this.TO=function(){c.callback.Wc(c.slot,c.layout,b)},this.Sc.get().finishSegmentByCpn(a.rb().layoutId,this.Ua.get().Se(1).clientPlaybackNonce)),this.Fa.get().removeListener(this)):(this.Rv=!0,this.zd===this.Ad.length?this.callback.Wc(this.slot,this.layout,b):(a=this.Ad[this.zd],a.Ye(a.rb(),b),this.TO=function(){c.callback.Wc(c.slot,c.layout,b)}),this.Fa.get().J.kx(),
ifb(this.Md.get(),{}),a=B1(this.Fa.get(),1),a.isPaused()&&!g.JG(a,2)&&this.Fa.get().playVideo(),this.Fa.get().removeListener(this),this.Rv&&this.FP())};
g.k.Li=function(a){if(a.state.isError()){var b,c;this.EO(null==(b=a.state.Tg)?void 0:b.errorCode,new dJ("There was a player error during this media layout.",{playerErrorCode:null==(c=a.state.Tg)?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(b=this.Ad[this.zd])&&b.Li(a)};
g.k.rf=function(){var a=gJ(this.xc().Ba,"metadata_type_eligible_for_ssap");return void 0===a?(HG("Expected SSAP eligibility in PlayerBytes slots",this.xc(),this.rb()),!1):this.Da.get().rf(a)};
g.k.Ej=function(){};
g.k.oh=function(){};
g.k.Zh=function(){};
g.k.Wh=function(){};
g.k.Qf=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(){};
g.k.Kg=function(){};
g.k.nh=function(){};
g.k.Dj=function(){};
g.k.Gj=function(){};g.w(rDa,g.I);g.k=rDa.prototype;g.k.xc=function(){return this.Nd.xc()};
g.k.rb=function(){return this.Nd.rb()};
g.k.init=function(){var a=gJ(this.rb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Sv()};
g.k.Sv=function(){this.Nd.init()};
g.k.release=function(){var a=gJ(this.rb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.jx()};
g.k.jx=function(){this.Nd.release()};
g.k.vr=function(){this.Nd.vr()};
g.k.Ar=function(){this.Nd.Ar()};
g.k.NA=function(a,b){HG("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.xc(),this.rb(),{requestingSlot:a,requestingLayout:b})};
g.k.startRendering=function(a){a.layoutId!==this.rb().layoutId?this.callback.uf(this.xc(),a,new dJ("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.rb().layoutId+("and LayoutType: "+this.rb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Fa.get().addListener(this),nJ(this.Uc(),this),y1(this.Da.get())&&s1(this.Ac.get()),xeb(this.Da.get())||Zeb(this.Fa.get()),y1(this.Da.get())||s1(this.Ac.get()),this.yx(a))};
g.k.yx=function(a){this.Nd.startRendering(a)};
g.k.Ye=function(a,b){this.Rv=!0;this.zx(a,b);this.Fa.get().J.kx();ifb(this.Md.get(),{});a=B1(this.Fa.get(),1);a.isPaused()&&!g.JG(a,2)&&this.Fa.get().playVideo();this.Fa.get().removeListener(this);this.Rv&&this.FP()};
g.k.zx=function(a,b){this.Nd.Ye(a,b)};
g.k.Ec=function(a,b){this.Nd.Ec(a,b)};
g.k.Wc=function(a,b,c){this.EJ(b,c);this.Nd.Wc(a,b,c);b.layoutId===this.rb().layoutId&&pDa(this.Ac.get())};
g.k.EJ=function(a){a.layoutId===this.rb().layoutId&&(this.Rv=!1,oJ(this.Uc(),this))};
g.k.FP=function(){this.Nd.rI()};
g.k.Ki=function(a){this.Nd.Ki(a)};
g.k.Li=function(a){if(a.state.isError()){var b,c;this.EO(null==(b=a.state.Tg)?void 0:b.errorCode,new dJ("There was a player error during this media layout.",{playerErrorCode:null==(c=a.state.Tg)?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Nd.Li(a)};
g.k.EO=function(a,b,c){this.Nd.Gw(a,b,c)};
g.k.onFullscreenToggled=function(a){this.Nd.onFullscreenToggled(a)};
g.k.lh=function(a){this.Nd.lh(a)};
g.k.hj=function(a){this.Nd.hj(a)};
g.k.onVolumeChange=function(){this.Nd.onVolumeChange()};
g.k.Ej=function(){};
g.k.oh=function(){};
g.k.Zh=function(){};
g.k.Wh=function(){};
g.k.Qf=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(){};
g.k.Kg=function(){};
g.k.nh=function(){};
g.k.Dj=function(){};
g.k.Gj=function(){};g.k=OL.prototype;g.k.xc=function(){return this.slot};
g.k.rb=function(){return this.layout};
g.k.init=function(){this.If.get().addListener(this);this.Fa.get().addListener(this);this.Sv();var a=gJ(this.layout.Ba,"metadata_type_layout_enter_ms"),b=gJ(this.layout.Ba,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Ua.get().vv)?void 0:c.clientPlaybackNonce;c=this.layout.lc.adClientDataEntry;PL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.If.get();e=uDa(e.C,a,b);null!==e&&(PL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.Sc.get().Ty(e,b))};
g.k.release=function(){this.jx();this.If.get().removeListener(this);this.Fa.get().removeListener(this)};
g.k.startRendering=function(){this.yx();this.callback.Ec(this.slot,this.layout)};
g.k.Ye=function(a,b){this.zx(b);null!==this.driftRecoveryMs&&(wDa(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(vDa(this)-gJ(this.layout.Ba,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Fa.get().J.Hq()).toString()}),this.driftRecoveryMs=null);this.callback.Wc(this.slot,this.layout,b)};
g.k.vZ=function(){return!1};
g.k.pZ=function(a){var b=gJ(this.layout.Ba,"metadata_type_layout_enter_ms"),c=gJ(this.layout.Ba,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;PL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.Ua.get().vv)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.lc.adClientDataEntry}});this.Sc.get().Ty(a,c)}};
g.k.Ki=function(a){this.gZ(a);a=this.Fa.get().getCurrentTimeSec(2,!0);if(YGa(this.D.get(),this.layout.layoutId)){var b=gJ(this.layout.Ba,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=vDa(this),e=this.Fa.get().J.Hq(),f=Math.min(a+e,d/1E3);f<=a?wDa(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(wDa(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.Fa.get().J.seekTo(f,void 0,void 0,1))}}};
g.k.lh=function(){};
g.k.Ej=function(){};
g.k.hj=function(){};
g.k.onVolumeChange=function(){};
g.k.Dj=function(){};
g.k.Gj=function(){};g.w(xDa,OL);g.k=xDa.prototype;g.k.Sv=function(){this.Ua.get().addListener(this);this.C.forEach(function(a){a.init()});
null!=this.B&&this.Oa.get().Ii("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
g.k.jx=function(){this.Ua.get().removeListener(this);this.j=null;this.C.forEach(function(a){a.release()})};
g.k.yx=function(){if(this.j)HG("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=null==(a=this.Ua.get().vv)?void 0:a.layoutId;zDa(this,b)}};
g.k.zx=function(a){var b,c,d,e;null==(d=this.j)||null==(e=d.Sl)||e.Ye(null==(b=this.j)?void 0:null==(c=b.Sl)?void 0:c.rb(),a);this.j=null};
g.k.HJ=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;this.Oa.get().Ii("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.B+";slrs."+!!this.j+";slrslid."+(null==(c=this.j)?void 0:null==(d=c.Sl)?void 0:d.rb().layoutId))}var e;if(this.j&&(null==(e=this.j.Sl)?void 0:e.rb().layoutId)!==a){var f,h;null==(h=this.j.Sl)||h.Ye(null==(f=this.j.Sl)?void 0:f.rb(),"normal");zDa(this,a)}};
g.k.OJ=function(){};
g.k.NJ=function(){};
g.k.gZ=function(){};
g.k.Li=function(){};
g.k.onFullscreenToggled=function(){};g.k=NDa.prototype;g.k.xc=function(){return this.slot};
g.k.rb=function(){return this.layout};
g.k.init=function(){var a=this;gJ(this.layout.Ba,"metadata_type_player_bytes_callback_ref").current=this;this.yd=ADa(this.slot,this.layout,gJ(this.layout.Ba,"metadata_type_player_vars"),gJ(this.layout.Ba,"metadata_type_layout_enter_ms"),gJ(this.layout.Ba,"metadata_type_layout_exit_ms"),1E3*gJ(this.layout.Ba,"metadata_type_video_length_seconds"),this.Sc.get(),this.Ce.get(),function(){var d=Object,e=d.assign,f=QDa(a.layout);var h=gJ(a.slot.Ba,"metadata_type_fulfilled_layout");h=Object.assign({},QDa(h),
{adPlacementConfig:gJ(h.Ba,"metadata_type_ad_placement_config"),subLayouts:gJ(h.Ba,"metadata_type_sub_layouts").map(QDa)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:h,hasSurveyOverlay:aJ(a.layout.Ba,"metadata_type_survey_overlay"),surveyOverlay:gJ(a.layout.Ba,"metadata_type_survey_overlay")})},this.Oa.get());
this.Fa.get().addListener(this);var b=gJ(this.layout.Ba,"metadata_type_video_length_seconds"),c=gJ(this.layout.Ba,"metadata_type_active_view_traffic_type");fK(this.layout.Fb)&&C1(this.wb.get(),this.layout.layoutId,c,b,this);hAa(this.callback,this.slot,this.layout);iAa(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Fa.get().removeListener(this);fK(this.layout.Fb)&&D1(this.wb.get(),this.layout.layoutId);this.Da.get();jAa(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;aJ(this.layout.Ba,"metadata_type_survey_overlay")&&this.Oa.get().Ii("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.Qc)HG("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:aJ(this.layout.Ba,"metadata_type_survey_overlay"),surveyOverlay:gJ(this.layout.Ba,"metadata_type_survey_overlay")});else{this.Qc={Qn:null,KF:!1};if(veb(this.Da.get())){var b;this.adCpn=null==(b=this.Ua.get().Se(2))?void 0:b.clientPlaybackNonce}this.Da.get().J.U().experiments.kb("html5_disable_sodar_for_tvhtml5")||
BDa(this.slot,this.layout,this.Xe.get());this.bb.hc("start");if(cN(this.Da.get())){b=B1(this.Fa.get());var c=gJ(this.layout.Ba,"metadata_type_video_length_seconds"),d=this.Fa.get().getCurrentTimeSec(2,!1);DDa(this.bb,this.Qc.Qn,b,c,d,function(){return void PDa(a,"teois")})}kAa(this.callback,this.slot,this.layout);
aJ(this.layout.Ba,"metadata_type_survey_overlay")&&this.Oa.get().Ii("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.Ye=function(a,b){var c=this;if(this.Qc){if(cN(this.Da.get()))if(null===this.yd)HG("Unexpected media sub layout exited without a timeline playback ID");else{a=gJ(this.layout.Ba,"metadata_type_video_length_seconds");var d=Xeb(this.Fa.get(),this.yd);veb(this.Da.get())&&void 0===this.adCpn&&HG("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:gJ(this.layout.Ba,"metadata_type_content_cpn")});pBa(this.bb,d,this.adCpn);EDa(this.bb,null,this.Qc.Qn,a,d,function(e){return void ODa(c,
e,"fue")},veb(this.Da.get()))}this.Qc=null;
lAa(this.callback,this.slot,this.layout,b)}else HG("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.Gw=function(){};
g.k.rI=function(){};
g.k.AX=function(){};
g.k.Ki=function(a){var b=this;if(this.Qc){if(lK(this.bb,"impression")){var c=B1(this.Fa.get()),d=gJ(this.layout.Ba,"metadata_type_video_length_seconds");FDa(this.bb,c,a,this.Qc.Qn,d,function(e){return void ODa(b,e,"tpaqe")})}this.Qc.Qn=a}};
g.k.Li=function(a){var b=this;if(this.Qc){cN(this.Da.get())||this.Qc.KF||(this.Qc.KF=!0,a=new g.IG(a.state,new g.wL));var c=gJ(this.layout.Ba,"metadata_type_video_length_seconds"),d=this.Fa.get().getCurrentTimeSec(2,!1);CDa(this.bb,this.Qc.Qn,a,c,d,!cN(this.Da.get()),function(){return void PDa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){GDa(this.bb,a)};
g.k.lh=function(){};
g.k.Ej=function(){};
g.k.hj=function(){};
g.k.NA=function(a,b){var c;a=this.Oa.get();var d=a.Ii,e="ti."+lK(this.bb,"impression")+";ts."+lK(this.bb,"skip")+";hp.",f;var h=!(null==(f=this.bb.C.get("skip"))||!f.length);d.call(a,"ads_dsr",e+h+";cpn."+gJ(this.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(c=this.Ua.get().Se(2))?void 0:c.clientPlaybackNonce)+";sl."+(gJ(b.Ba,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));lK(this.bb,"impression")&&this.bb.hc("skip");this.Sc.get().Ir()||HG("Unexpected failure to skip a server stitched ad",
this.slot,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Ec=function(){};
g.k.Wc=function(){};
g.k.vr=function(){};
g.k.Ar=function(){};
g.k.rK=function(){HDa(this.bb)};
g.k.Kw=function(){IDa(this.bb)};
g.k.Jw=function(){JDa(this.bb)};
g.k.Lw=function(){KDa(this.bb)};
g.k.Hw=function(){LDa(this.bb)};
g.k.Iw=function(){MDa(this.bb)};
g.k.Dj=function(){};
g.k.Gj=function(){};g.w(RDa,OL);g.k=RDa.prototype;
g.k.Sv=function(){var a=this;gJ(this.layout.Ba,"metadata_type_player_bytes_callback_ref").current=this;var b=gJ(this.layout.Ba,"metadata_type_layout_enter_ms"),c=gJ(this.layout.Ba,"metadata_type_layout_exit_ms");this.yd=ADa(this.slot,this.layout,gJ(this.layout.Ba,"metadata_type_player_vars"),b,c,1E3*gJ(this.layout.Ba,"metadata_type_video_length_seconds"),this.Sc.get(),this.Ce.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:gJ(a.layout.Ba,"metadata_type_ad_placement_config")}},
this.Oa.get());
var d=gJ(this.layout.Ba,"metadata_type_video_length_seconds"),e=gJ(this.layout.Ba,"metadata_type_active_view_traffic_type");fK(this.layout.Fb)&&C1(this.wb.get(),this.layout.layoutId,e,d,this)};
g.k.jx=function(){fK(this.layout.Fb)&&D1(this.wb.get(),this.layout.layoutId)};
g.k.yx=function(){var a=this;if(this.Qc)HG("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.Qc={Qn:null,KF:!1},BDa(this.slot,this.layout,this.Xe.get()),this.bb.hc("start"),cN(this.Da.get())){var b=B1(this.Fa.get()),c=gJ(this.layout.Ba,"metadata_type_video_length_seconds"),d=this.Fa.get().getCurrentTimeSec(2,!1);DDa(this.bb,this.Qc.Qn,b,c,d,function(){return void SDa(a,"teois")})}};
g.k.zx=function(){var a=this;if(this.Qc){if(cN(this.Da.get()))if(null===this.yd)HG("Unexpected single media layout exited without a timeline playback ID");else{var b=gJ(this.layout.Ba,"metadata_type_video_length_seconds"),c=Xeb(this.Fa.get(),this.yd);pBa(this.bb,c);EDa(this.bb,null,this.Qc.Qn,b,c,function(d){return void TDa(a,d,"fue")})}this.Qc=null}else HG("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.gZ=function(a){var b=this;if(this.Qc){if(lK(this.bb,"impression")){var c=B1(this.Fa.get()),d=gJ(this.layout.Ba,"metadata_type_video_length_seconds");FDa(this.bb,c,a,this.Qc.Qn,d,function(e){return void TDa(b,e,"tpaqe")})}this.Qc.Qn=a}};
g.k.Li=function(a){var b=this;if(this.Qc){cN(this.Da.get())||this.Qc.KF||(this.Qc.KF=!0,a=new g.IG(a.state,new g.wL));var c=gJ(this.layout.Ba,"metadata_type_video_length_seconds"),d=this.Fa.get().getCurrentTimeSec(2,!1);CDa(this.bb,this.Qc.Qn,a,c,d,!cN(this.Da.get()),function(){return void SDa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){GDa(this.bb,a)};
g.k.rK=function(){HDa(this.bb)};
g.k.Kw=function(){IDa(this.bb)};
g.k.Jw=function(){JDa(this.bb)};
g.k.Lw=function(){KDa(this.bb)};
g.k.Hw=function(){LDa(this.bb)};
g.k.Iw=function(){MDa(this.bb)};UDa.prototype.build=function(a,b,c,d){if(aJ(c.Ba,"metadata_type_dai")){var e=gJ(d.Ba,"metadata_type_ad_placement_config");qK(d,{Od:"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(" "),We:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new iK(d.Fb,this.Oa,e,d.layoutId,null),e=new RDa(a,c,d,this.Ua,this.Sc,this.Ce,this.If,this.Fa,e,this.Oa,this.Xe,this.j,this.wb,this.Da)):
e=null;if(e)return e;a:{var f=gJ(d.Ba,"metadata_type_sub_layouts"),h=gJ(d.Ba,"metadata_type_ad_placement_config");if(qK(d,{Od:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],We:["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=gJ(l.Ba,"metadata_type_media_sub_layout_index");if(!qK(l,{Od:"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(" "),
We:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new iK(l.Fb,this.Oa,h,l.layoutId,m);e.push(new NDa(b,c,l,this.Sc,m,this.Fa,this.Ce,this.wb,this.Xe,this.Da,this.Oa,this.Ua))}b=new iK(d.Fb,this.Oa,h,d.layoutId);a=new xDa(a,c,d,this.Ua,this.Sc,this.If,this.Fa,b,this.Oa,this.j,e)}else a=null}if(a)return a}else if(a=tDa(a,b,c,d,this.Uc,this.le,this.zk,this.Oa,this.wb,this.Xe,this.Md,this.Ua,this.Fa,this.wc,this.Ac,this.jd,this.tf,this.Ab,this.Bf,this.Da,this.Sc))return a;throw new dJ("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+hJ(d.Ba)+" in PlayerBytesLayoutRenderingAdapterFactory.");};RL.prototype.build=function(a,b,c,d){if(a=tDa(a,b,c,d,this.Uc,this.le,this.zk,this.Oa,this.wb,this.Xe,this.Md,this.Ua,this.Fa,this.wc,this.Ac,this.jd,this.tf,this.Ab,this.Bf,this.Da,this.Sc))return a;throw new dJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hJ(d.Ba)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.w(VDa,MF);g.w(SL,bK);SL.prototype.startRendering=function(a){var b=cK(this.bb),c={adsClientData:this.layout.lc};this.j.push(new VDa(gJ(this.layout.Ba,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.rb().layoutId,c));bK.prototype.startRendering.call(this,a);this.callback.Ec(this.slot,a)};
SL.prototype.Fg=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=gJ(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.NA(this.slot,this.layout):HG("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
SL.prototype.xa=function(){bK.prototype.xa.call(this)};var WDa=new g.Oe(320,63);g.w(ZDa,MF);g.w(VL,bK);g.k=VL.prototype;g.k.Ki=function(){};
g.k.Li=function(){};
g.k.onFullscreenToggled=function(){};
g.k.lh=function(a){a&&qN(this.D,this.layout)};
g.k.Ej=function(){};
g.k.hj=function(a){var b=UL(this.layout);if(this.Ou=XDa(a,Yeb(this.Fa.get())))b.onErrorCommand&&this.Ab.get().executeCommand(b.onErrorCommand,this.layout.layoutId),qN(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Bz=function(){return this.rb().layoutId};
g.k.UN=function(){return this.Ou};
g.k.Fg=function(a){this.G.Fg(a);"in_video_overlay_close_button"===a&&qN(this.D,this.layout)};
g.k.sI=function(a){"invideo-overlay"===a&&qN(this.D,this.layout)};
g.k.Lp=function(){this.G.Lp()};
g.k.startRendering=function(a){bK.prototype.startRendering.call(this,a);this.callback.Ec(this.slot,a);this.K.ls=this};
g.k.Ye=function(a,b){bK.prototype.Ye.call(this,a,b);m2(this.K,this)};
g.k.init=function(){bK.prototype.init.call(this);Neb(this.Oa.get(),this);this.Fa.get().addListener(this);this.j.push(new ZDa(UL(this.layout),cK(this.bb),this.layout.layoutId,{adsClientData:this.layout.lc}))};
g.k.release=function(){bK.prototype.release.call(this);this.Fa.get().removeListener(this);Oeb(this.Oa.get(),this)};
g.k.Dj=function(){};
g.k.Gj=function(){};g.w(WL,bK);g.k=WL.prototype;g.k.init=function(){bK.prototype.init.call(this);Neb(this.Oa.get(),this);this.Fa.get().addListener(this);this.j.push(new ZDa(UL(this.layout),cK(this.bb),this.layout.layoutId,{adsClientData:this.layout.lc}))};
g.k.Lp=function(){this.G.Lp()};
g.k.startRendering=function(a){bK.prototype.startRendering.call(this,a);this.callback.Ec(this.slot,a);this.K.ls=this};
g.k.Ye=function(a,b){bK.prototype.Ye.call(this,a,b);m2(this.K,this)};
g.k.Fg=function(a){this.G.Fg(a);"in_video_overlay_close_button"===a&&qN(this.D,this.layout)};
g.k.DO=function(a){if("invideo-overlay"===a){a=iHa(this.N,this.layout);a=g.u(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.sI=function(a){"invideo-overlay"===a&&qN(this.D,this.layout)};
g.k.CO=function(a){if("invideo-overlay"===a){a=iHa(this.N,this.layout);a=g.u(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Ki=function(){};
g.k.Li=function(){};
g.k.onFullscreenToggled=function(){};
g.k.lh=function(a){a&&qN(this.D,this.layout)};
g.k.Ej=function(){};
g.k.hj=function(a){var b=UL(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=Yeb(this.Fa.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&0!=c.thumbnails.length&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.Oe(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Oe(0,0)}if(this.Ou=XDa(a,d,c))b.onErrorCommand&&this.Ab.get().executeCommand(b.onErrorCommand,this.layout.layoutId),qN(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Bz=function(){return this.rb().layoutId};
g.k.UN=function(){return this.Ou};
g.k.release=function(){bK.prototype.release.call(this);this.Fa.get().removeListener(this);Oeb(this.Oa.get(),this)};
g.k.Dj=function(){};
g.k.Gj=function(){};XL.prototype.Fg=function(a){"ad-info-hover-text-button"===a&&((this.j=this.Fa.get().On(1))||this.Fa.get().pauseVideo())};
XL.prototype.Lp=function(){this.j||this.Fa.get().resumeVideo(1)};g.w(bEa,MF);g.w(cEa,bK);g.k=cEa.prototype;g.k.init=function(){bK.prototype.init.call(this);this.Fa.get().addListener(this)};
g.k.startRendering=function(a){var b=gJ(this.layout.Ba,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new bEa(b,this.layout.layoutId,{adsClientData:this.layout.lc}));bK.prototype.startRendering.call(this,a);this.callback.Ec(this.slot,a)};
g.k.Ec=function(){};
g.k.Fg=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=gJ(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.vr(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.Ar(this.slot,this.layout):HG("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.hj=function(a){450>a.width&&qN(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Ki=function(){};
g.k.onFullscreenToggled=function(){};
g.k.lh=function(){};
g.k.Ej=function(){};
g.k.Li=function(){};
g.k.Dj=function(){};
g.k.Gj=function(){};
g.k.xa=function(){bK.prototype.xa.call(this)};
g.k.release=function(){bK.prototype.release.call(this);this.Fa.get().removeListener(this)};dEa.prototype.build=function(a,b,c,d){if(b=yK(a,c,d,this.vc,this.Fa,this.Oa,this.D,this.j,this.Da))return b;if(qK(d,aEa()))return new WL(c,d,this.Oa,this.wb,this.vc,a,this.B,this.C,this.Fa,this.Ab,this.Da,this.j,new XL(this.Fa));if(qK(d,$Da()))return new VL(c,d,this.Oa,this.wb,this.vc,a,this.B,this.Fa,this.Ab,this.Da,this.j,new XL(this.Fa));if(qK(d,{Od:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],We:["LAYOUT_TYPE_SURVEY"]}))return new cEa(c,d,a,this.vc,this.B,this.Fa,this.Da);if(qK(d,
{Od:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],We:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new SL(c,d,a,this.vc,this.Oa);if(qK(d,hCa()))return new vK(c,d,a,this.vc,this.Fa,this.Da);throw new dJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hJ(d.Ba)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};eEa.prototype.build=function(a,b,c,d){if(b=yK(a,c,d,this.vc,this.Fa,this.Oa,this.D,this.j,this.Da))return b;if(qK(d,aEa()))return new WL(c,d,this.Oa,this.wb,this.vc,a,this.B,this.C,this.Fa,this.Ab,this.Da,this.j,new XL(this.Fa));if(qK(d,$Da()))return new VL(c,d,this.Oa,this.wb,this.vc,a,this.B,this.Fa,this.Ab,this.Da,this.j,new XL(this.Fa));throw new dJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hJ(d.Ba)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.w(YL,uK);YL.prototype.startRendering=function(a){uK.prototype.startRendering.call(this,a);if(a.renderingContent?aCa(a,this.Ua.get().Se(2)||void 0):gJ(this.layout.Ba,"metadata_ad_video_is_listed"))a=a.renderingContent?$Ba(a,this.Ua.get().Se(2)||void 0):gJ(this.layout.Ba,"metadata_type_ad_info_ad_metadata"),this.Ym.get().J.ob("onAdMetadataAvailable",a)};gEa.prototype.build=function(a,b,c,d){if(qK(d,fEa())||"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===d.layoutType&&void 0!==g.U(d.renderingContent,wK))return new YL(a,c,d,this.vc,this.Fa,this.Oa,this.B,this.Ym,this.j,this.Ua);throw new dJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hJ(d.Ba)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};hEa.prototype.build=function(a,b,c,d){if(qK(d,fEa()))return new YL(a,c,d,this.vc,this.Fa,this.Oa,this.B,this.Ym,this.j,this.Ua);if(a=yK(a,c,d,this.vc,this.Fa,this.Oa,this.B,this.j,this.Da))return a;throw new dJ("Unsupported layout with type: "+d.layoutType+" and client metadata: "+hJ(d.Ba)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};oM.prototype.clone=function(a){var b=this;return new oM(function(){return b.triggerId},a)};pM.prototype.clone=function(a){var b=this;return new pM(function(){return b.triggerId},a)};qM.prototype.clone=function(a){var b=this;return new qM(function(){return b.triggerId},a)};rM.prototype.clone=function(a){var b=this;return new rM(function(){return b.triggerId},a)};sM.prototype.clone=function(a){var b=this;return new sM(function(){return b.triggerId},a)};tM.prototype.clone=function(a){var b=this;return new tM(function(){return b.triggerId},a)};g.w(LM,g.I);var AFa={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Zc:[],layoutExitUserInputSubmittedTriggers:[]};var dGa={WVdDU7FEFNo:15,"c-6Sb-muKCY":6,"O9f9wIR-UI8":6,"JNL-wFYNAP0":15,dLYcTkdHPNA:15,ZdVP0_LJZUE:15,VXcUXyDNdEI:15,VGQ8C9uQc_I:15,"o2HqYt-U7YU":15,rwNqPgKVbus:15,ATgzDto2XcY:15,attyPCCLlC4:15,w3aSYOeWyYU:15,wZMtuR2zzRA:30,e3TvPYADCQA:15,eMOw2R8yUHg:15,"6lLyZenufEY":15,"4q_FdWfUxR4":15,"3NOPsNQV0zY":15,IcEJuv4zMSI:15,"8Eo9vaW_CqY":15,O0DMDUDJK88:15,wnboazT1Lio:15,ZfRdOlbXmog:5,"X-sKfjrb7uc":15,RCVZbiJbZA0:6,"7syqtZsUUwY":15,OrlZSFgzFVA:15,ulrgBGVttFg:15,"1qC82K99ecI":15,E9lmhFAK78w:30,QSJFJNk_VSg:15,
"i-8wX-g3FjI":30,vgSkhTaAP6U:15,iqslKcmG9zA:15,VkNDKDDDSWA:15,"2-Sj3oWDJCk":6,z4zsVPqUVnc:15,xKc7UMf8V4s:15,wwrWuIYPaDE:6,"_5NVge-Kmpk":6,"eUdn6DcJx-4":6,gxvBLc_C6Io:15,O40oPma0obU:15,"6xXRRLxj3DA":15,T5sMvex24Os:15,"74ccAT84jIY":15,"YTlgTC-KM2U":15,XxcipO9EBWc:15,zI7xwG4M62k:15,XrUrvpDMmOk:15,H5KIgG21WjA:15,R94pfM1wcac:6,"TD0-7fMqNOE":5,_evnWGoDAT8:15,Wov4GF3oUSM:6,DKcQEuGWmp4:15,kp4aH06VQBg:15,CI3LdgGodUw:15,lcQzcg6e73Y:15};var dS={fQa:1,gQa:2,hQa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.w(bN,g.I);g.k=bN.prototype;g.k.vZ=function(a){if(!this.j){var b;null==(b=this.Sc)||b.get().Pt(a.identifier);return!1}SGa(this,this.j,a);return!0};
g.k.pZ=function(){};
g.k.yk=function(a){this.j&&this.j.contentCpn!==a&&(HG("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.k.Un=function(a){this.j&&this.j.contentCpn!==a&&HG("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.I.prototype.xa.call(this);this.j=null};var V1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],klb=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.w(fN,g.I);g.k=fN.prototype;g.k.Ec=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&(bJ(b,this.C)||bJ(b,klb))){var d=this.Ua.get().Se(2),e=this.j(b,d||void 0);e?ZJ(this.Rb.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[pFa(c.Lb.get(),e.contentCpn,e.cq,function(h){return c.B(h.slotId,"core",e,kJ(c.Wb.get(),h))},e.inPlayerSlotId)];
e.instreamAdPlayerUnderlayRenderer&&qFa(c.Da.get())&&f.push(XGa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):HG("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.oh=function(){};
g.k.Zh=function(){};
g.k.Qf=function(){};
g.k.Wh=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(){};
g.k.Kg=function(){};
g.k.nh=function(){};
g.k.Wc=function(){};g.w(gN,g.I);gN.prototype.yk=function(a,b,c,d,e,f,h){var l=this,m=this.Ua.get().Se(1);m.gp?I1(this.Fa.get()):(peb(this.Ac.get(),d),ZJ(this.Rb.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return REa(l.Ge.get(),d,e,f,a,b,h,m,"")}),ngb(this.j))};
gN.prototype.Un=function(){};g.w(hN,g.I);g.w(iN,g.I);iN.prototype.onCueRangeEnter=function(){};
iN.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.wc.get().removeCueRange(a),ZJ(this.Rb.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.Lb.get();d=$J(d.gb.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,slotEntryTrigger:c.slotEntryTrigger?qHa(c.slotId,d,c.slotEntryTrigger):void 0,slotFulfillmentTriggers:rHa(c.slotId,d,c.slotFulfillmentTriggers),slotExpirationTriggers:rHa(c.slotId,d,c.slotExpirationTriggers)})]},
c.slotId))};
iN.prototype.yk=function(){for(var a=g.u(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.wc.get().removeCueRange(b);this.j.clear()};
iN.prototype.Un=function(){};g.w(jN,g.I);g.k=jN.prototype;g.k.oh=function(){};
g.k.Zh=function(a){var b=this;g.VC(g.XC(),function(){var c=b.j.get(a);c&&HG("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.pa(c)).map(function(d){return d.layoutType})})},0)};
g.k.Qf=function(){};
g.k.Wh=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.k.Kg=function(a,b){this.Lj.has(a)&&this.Lj.get(a)===b&&HG("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)):HG("Trying to unscheduled a Layout that was not scheduled.",a,b)}else HG("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Ec=function(a,b){this.Lj.set(a,b)};
g.k.Wc=function(a){this.Lj.delete(a)};
g.k.nh=function(){};g.k=ZGa.prototype;g.k.init=function(){};
g.k.xc=function(){return this.slot};
g.k.IH=function(){this.callback.Qf(this.slot)};
g.k.LH=function(){this.callback.Rf(this.slot)};
g.k.release=function(){};kN.prototype.build=function(a,b){return new ZGa(a,b)};g.k=$Ga.prototype;g.k.init=function(){};
g.k.xc=function(){return this.slot};
g.k.IH=function(){J1(this.Fa.get(),"ad-showing");this.callback.Qf(this.slot)};
g.k.LH=function(){this.callback.Rf(this.slot);K1(this.Fa.get(),"ad-showing")};
g.k.release=function(){};g.k=aHa.prototype;g.k.init=function(){};
g.k.xc=function(){return this.slot};
g.k.IH=function(){J1(this.Fa.get(),"ad-showing");J1(this.Fa.get(),"ad-interrupting");this.B=this.Fa.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.Qf(this.slot)};
g.k.LH=function(){K1(this.Fa.get(),"ad-showing");K1(this.Fa.get(),"ad-interrupting");var a=this.B?Infinity:this.Fa.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Fa.get().J.seekTo(a,void 0,void 0,1);this.callback.Rf(this.slot)};
g.k.release=function(){};g.k=bHa.prototype;g.k.init=function(){};
g.k.xc=function(){return this.slot};
g.k.IH=function(){J1(this.Fa.get(),"ad-showing");J1(this.Fa.get(),"ad-interrupting");this.callback.Qf(this.slot)};
g.k.LH=function(){I1(this.Fa.get());K1(this.Fa.get(),"ad-showing");K1(this.Fa.get(),"ad-interrupting");this.callback.Rf(this.slot)};
g.k.release=function(){I1(this.Fa.get())};lN.prototype.build=function(a,b){if(iJ(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new $Ga(a,b,this.Fa);if(b.slotEntryTrigger instanceof iM&&iJ(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new aHa(a,b,this.Fa);if(iJ(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new bHa(a,b,this.Fa);throw new eJ("Unsupported slot with type "+b.slotType+" and client metadata: "+(hJ(b.Ba)+" in PlayerBytesSlotAdapterFactory."));};g.w(mN,g.I);mN.prototype.j=function(a){for(var b=[],c=g.u(this.Ub.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof nM&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.triggeringLayoutId===a&&b.push(d)}b.length?zJ(this.WL(),b):HG("Mute requested but no registered triggers can be activated.")};g.w(nN,mN);g.k=nN.prototype;g.k.Fg=function(a,b){if(b)if("skip-button"===a){a=[];for(var c=g.u(this.Ub.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof nM&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.triggeringLayoutId===b&&a.push(d)}a.length&&zJ(this.WL(),a)}else YM(this.Da.get(),"supports_multi_step_on_desktop")?"ad-action-submit-survey"===a&&cHa(this,b):"survey-submit"===a?cHa(this,b):"survey-single-select-answer-button"===a&&cHa(this,b)};
g.k.GO=function(a){mN.prototype.j.call(this,a)};
g.k.ql=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new eJ("Tried to register duplicate trigger for slot.");if(!(b instanceof uM||b instanceof nM))throw new eJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Ub.set(b.triggerId,new vM(a,b,c,d))};
g.k.Fl=function(a){this.Ub.delete(a.triggerId)};
g.k.DO=function(){};
g.k.CO=function(){};
g.k.sI=function(){};g.w(oN,g.I);g.k=oN.prototype;
g.k.ql=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new eJ("Tried to register duplicate trigger for slot.");if(!(b instanceof oM||b instanceof pM||b instanceof qM||b instanceof rM||b instanceof sM||b instanceof tM||b instanceof oEa||b instanceof eM||b instanceof gM||b instanceof fM||b instanceof jM||b instanceof dM))throw new eJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new vM(a,b,c,d);this.Ub.set(b.triggerId,a);b instanceof
sM&&this.G.has(b.triggeringSlotId)&&zJ(this.j(),[a]);b instanceof oM&&this.C.has(b.triggeringSlotId)&&zJ(this.j(),[a]);b instanceof eM&&this.B.has(b.triggeringLayoutId)&&zJ(this.j(),[a])};
g.k.Fl=function(a){this.Ub.delete(a.triggerId)};
g.k.oh=function(a){this.G.add(a.slotId);for(var b=[],c=g.u(this.Ub.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof sM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&zJ(this.j(),b)};
g.k.Zh=function(a){this.G.delete(a.slotId);for(var b=[],c=g.u(this.Ub.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof tM&&e.triggeringSlotId===a.slotId&&b.push(d)}0<b.length&&zJ(this.j(),b)};
g.k.Wh=function(a){for(var b=[],c=g.u(this.Ub.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof oEa&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&zJ(this.j(),b)};
g.k.Qf=function(a){this.C.add(a.slotId);for(var b=[],c=g.u(this.Ub.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof oM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&zJ(this.j(),b)};
g.k.Rf=function(a){this.C.delete(a.slotId);this.D.add(a.slotId);for(var b=[],c=g.u(this.Ub.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof pM)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof dM){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.triggeringLayoutId)&&b.push(d)}0<b.length&&zJ(this.j(),b)};
g.k.Xh=function(a){for(var b=[],c=g.u(this.Ub.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof qM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&zJ(this.j(),b)};
g.k.Yh=function(a){for(var b=[],c=g.u(this.Ub.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof rM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&zJ(this.j(),b)};
g.k.Eh=function(a,b){this.K.add(b.layoutId)};
g.k.Kg=function(a,b){this.K.delete(b.layoutId)};
g.k.Ec=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.u(this.Ub.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof eM)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof jM){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof dM&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.D.has(f.slotId)&&c.push(e));0<c.length&&zJ(this.j(),c)};
g.k.Wc=function(a,b,c){this.B.delete(b.layoutId);a=[];for(var d=g.u(this.Ub.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof gM&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof fM){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}0<a.length&&zJ(this.j(),a)};
g.k.nh=function(){};
g.k.yk=function(){this.D.clear()};
g.k.Un=function(){};g.w(pN,g.I);pN.prototype.ql=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new eJ("Tried to register duplicate trigger for slot.");if(!(b instanceof bM))throw new eJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Ub.set(b.triggerId,new vM(a,b,c,d))};
pN.prototype.Fl=function(a){this.Ub.delete(a.triggerId)};g.w(rN,g.I);rN.prototype.ql=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new eJ("Tried to register duplicate trigger for slot.");if(!(b instanceof aM||b instanceof lM))throw new eJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Ub.set(b.triggerId,new vM(a,b,c,d))};
rN.prototype.Fl=function(a){this.Ub.delete(a.triggerId)};
rN.prototype.yk=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.u(this.Ub.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof aM&&l.trigger.Pr===a&&f.push(l);e.call(d,b,g.pa(f));b.push.apply(b,g.pa(dHa(this.Ub,a,!1,c)));b.length&&zJ(this.j(),b)};
rN.prototype.Un=function(a){var b=[];b.push.apply(b,g.pa(dHa(this.Ub,a,!0,!1)));b.length&&zJ(this.j(),b)};g.w(sN,g.I);g.k=sN.prototype;
g.k.ql=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new eJ("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(eHa(b))this.Ub.set(b.triggerId,{Yu:new vM(a,b,c,d),uv:e});else if(b instanceof iM||b instanceof hM)fHa(this,a,b,c,d,e,b.j.start,b.j.end,b.Pr,b.visible);else if(b instanceof nEa)fHa(this,a,b,c,d,e,b.j.start,b.j.end,b.Pr,!1);else if(b instanceof cM)fHa(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Pr,b.visible);else throw new eJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+
" in CueRangeTriggerAdapter");};
g.k.Fl=function(a){var b=this.Ub.get(a.triggerId);b&&this.wc.get().removeCueRange(b.uv);this.Ub.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a,b){b=void 0===b?!1:b;if(a=gHa(this,a))if(a=this.Ub.get(a))if(g.JG(B1(this.Fa.get()),32))this.j.add(a.uv);else{var c=null==a?void 0:a.Yu.trigger;b=b?c instanceof rEa:c instanceof qEa;(c instanceof iM||c instanceof hM||c instanceof cM||c instanceof mM||b)&&zJ(this.B(),[a.Yu])}};
g.k.onCueRangeExit=function(a){if(a=gHa(this,a))if(a=this.Ub.get(a))this.j.delete(a.uv),a.Yu.trigger instanceof nEa&&zJ(this.B(),[a.Yu])};
g.k.Li=function(a){if(0>KG(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.oh=function(){};
g.k.Zh=function(){};
g.k.Wh=function(){};
g.k.Qf=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(){};
g.k.Kg=function(){};
g.k.Ec=function(a,b){a=g.u(this.Ub.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.Yu.trigger;c=c.uv;if(eHa(d)&&d.layoutId===b.layoutId){var e=1E3*this.Fa.get().getCurrentTimeSec(1,!1);d instanceof mM?d=0:(d=e+d.offsetMs,e=0x7ffffffffffff);this.wc.get().addCueRange(c,d,e,!1,this)}}};
g.k.Wc=function(a,b,c){var d=this;a=g.u(this.Ub.values());for(var e=a.next(),f={};!e.done;f={uH:void 0,vu:void 0},e=a.next())e=e.value,f.vu=e.Yu.trigger,f.uH=e.uv,eHa(f.vu)&&f.vu.layoutId===b.layoutId?teb(this.wc.get(),f.uH):f.vu instanceof hM&&f.vu.layoutId===b.layoutId&&"user_cancelled"===c&&(this.wc.get().removeCueRange(f.uH),g.VC(g.XC(),function(h){return function(){d.wc.get().addCueRange(h.uH,h.vu.j.start,h.vu.j.end,h.vu.visible,d)}}(f)))};
g.k.nh=function(){};
g.k.Ki=function(){};
g.k.onFullscreenToggled=function(){};
g.k.lh=function(){};
g.k.Ej=function(){};
g.k.hj=function(){};
g.k.onVolumeChange=function(){};
g.k.Dj=function(){};
g.k.Gj=function(){};g.w(tN,g.I);g.k=tN.prototype;
g.k.ql=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new eJ("Tried to re-register the trigger.");a=new vM(a,b,c,d);if(a.trigger instanceof lEa)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof kEa)this.C.set(a.trigger.triggerId,a);else throw new eJ("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&zJ(this.D(),[a])};
g.k.Fl=function(a){this.B.delete(a.triggerId);this.C.delete(a.triggerId)};
g.k.HJ=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.pa(hHa(this.C,this.j)));null!=a&&b.push.apply(b,g.pa(hHa(this.B,a)));this.j=a;b.length&&zJ(this.D(),b)}};
g.k.OJ=function(){};
g.k.NJ=function(){};g.w(uN,g.I);g.k=uN.prototype;g.k.ql=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new eJ("Tried to register duplicate trigger for slot.");if(!(b instanceof kM))throw new eJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Ub.set(b.triggerId,new vM(a,b,c,d))};
g.k.Fl=function(a){this.Ub.delete(a.triggerId)};
g.k.Ec=function(){};
g.k.Wc=function(){};
g.k.oh=function(){};
g.k.Zh=function(){};
g.k.Wh=function(){};
g.k.Qf=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(){};
g.k.Kg=function(){};
g.k.nh=function(){};g.w(vN,g.I);g.k=vN.prototype;g.k.nh=function(a,b){for(var c=[],d=g.u(this.Ub.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&&zJ(this.j(),c)};
g.k.ql=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new eJ("Tried to register duplicate trigger for slot.");if(!(b instanceof IAa))throw new eJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Ub.set(b.triggerId,new vM(a,b,c,d))};
g.k.Fl=function(a){this.Ub.delete(a.triggerId)};
g.k.oh=function(){};
g.k.Zh=function(){};
g.k.Wh=function(){};
g.k.Qf=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(){};
g.k.Kg=function(){};
g.k.Ec=function(){};
g.k.Wc=function(){};g.w(wN,g.I);g.k=wN.prototype;g.k.ql=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new eJ("Tried to register duplicate trigger for slot.");if(!(b instanceof sEa))throw new eJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Ub.set(b.triggerId,new vM(a,b,c,d));a=this.j.has(b.triggeringLayoutId)?this.j.get(b.triggeringLayoutId):new Set;a.add(b);this.j.set(b.triggeringLayoutId,a)};
g.k.Fl=function(a){this.Ub.delete(a.triggerId);if(!(a instanceof sEa))throw new eJ("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.B.get(a.triggerId);b&&(b.dispose(),this.B.delete(a.triggerId));if(b=this.j.get(a.triggeringLayoutId))b.delete(a),0===b.size&&this.j.delete(a.triggeringLayoutId)};
g.k.oh=function(){};
g.k.Zh=function(){};
g.k.Wh=function(){};
g.k.Qf=function(){};
g.k.Rf=function(){};
g.k.Xh=function(){};
g.k.Yh=function(){};
g.k.Eh=function(){};
g.k.Kg=function(){};
g.k.nh=function(){};
g.k.Ec=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={ZK:void 0},d=a.next())b.ZK=d.value,d=new g.Qu(function(e){return function(){var f=c.Ub.get(e.ZK.triggerId);zJ(c.C(),[f])}}(b),b.ZK.durationMs),d.start(),this.B.set(b.ZK.triggerId,d)}};
g.k.Wc=function(){};g.w(xN,g.I);xN.prototype.ql=function(a,b,c,d){if(this.Ub.has(b.triggerId))throw new eJ("Tried to register duplicate trigger for slot.");if(!(b instanceof ZL))throw new eJ("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Ub.set(b.triggerId,new vM(a,b,c,d))};
xN.prototype.Fl=function(a){this.Ub.delete(a.triggerId)};g.w(CN,g.I);CN.prototype.logEvent=function(a){this.j(a)};
CN.prototype.j=function(a,b,c,d,e,f,h,l,m,n,p){var q=this;p=void 0===p?0:p;YM(this.Da.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"slot:",e,"layout:",f,"Opportunity:",{opportunityType:b,associatedSlotId:c,Iob:d,Mob:h,adSlotLoggingData:l,adLayoutLoggingData:m});try{var r=function(){if(!q.Da.get().J.U().L("html5_disable_client_tmp_logs")&&("ADS_CLIENT_EVENT_TYPE_ERROR"!==a||q.XR())&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==a){a||HG("Empty PACF event type",e,f);var t=bAa(q.B.get()),v={eventType:a,
eventOrder:++q.eventCount},x={};e&&(x.slotData=Yza(t,e));f&&(x.layoutData=Zza(t,f));h&&(x.triggerData=jJ(h.trigger,h.category));b&&(x.opportunityData=$za(t,b,c,d));t={organicPlaybackContext:{contentCpn:q.Ua.get().Se(1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=q.Ua.get().Se(1).yc;var A;t.organicPlaybackContext.isMdxPlayback=null==(A=q.Ua.get().Se(1))?void 0:A.isMdxPlayback;var E;if(null==(E=q.Ua.get().Se(1))?0:E.daiEnabled)t.organicPlaybackContext.isDaiContent=!0;var F;if(A=null==
(F=q.Ua.get().Se(2))?void 0:F.clientPlaybackNonce)t.adVideoPlaybackContext={adVideoCpn:A};t&&(x.externalContext=t);v.adClientData=x;l&&(v.serializedSlotAdServingData=l.serializedSlotAdServingDataEntry);m&&(v.serializedAdServingData=m.serializedAdServingDataEntry);n&&(v.errorInfo=n);g.bD("adsClientStateChange",{adsClientEvent:v})}};
p&&0<p?g.VC(g.XC(),function(){return r()},p):r()}catch(t){YM(this.Da.get(),"html5_log_pacf_logging_errors")&&g.VC(g.XC(),function(){HG(t instanceof Error?t:String(t),e,f,{pacf_message:"exception during pacf logging"})})}};
CN.prototype.XR=function(){return this.Da.get().XR()};g.w(DN,CN);DN.prototype.j=function(a,b,c,d,e,f,h,l,m,n){if(g.yJ(this.Da.get().J.U())){var p=this.Da.get();p=g.lJ(p.J.U().experiments,"H5_async_logging_delay_ms")}else p=void 0;CN.prototype.j.call(this,a,b,c,d,e,f,h,l,m,n,p)};EN.prototype.clear=function(){this.j.clear()};var wHa=!1,GN,HN,IN,QN,RN;g.w(SN,g.I);
SN.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.B,d=0;d<b&&16>this.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d<e;)xHa(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(xHa(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};
SN.prototype.FK=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 yHa=!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 TN;zHa.prototype.Lg=function(a,b){b=void 0===b?1:b;this.j+=b;this.C+=a;a/=b;for(var c=0;c<VN.length&&!(a<VN[c]);++c)this.B[c]+=b};
zHa.prototype.toString=function(){return""};
var VN=[20,100,500,2E3];g.k=CHa.prototype;g.k.isActive=function(){return!0};
g.k.HI=function(a,b){var c=this;if(b){var d={},e;for(e in b)d={SZ:void 0,v_:void 0},b.hasOwnProperty(e)&&(d.SZ=a.prototype[e],d.v_=b[e],a.prototype[e]=function(f){return function(){var h=g.Ia.apply(0,arguments),l=(0,g.pD)();h=f.SZ.apply(this,h);return EHa(c,h,f.v_,l)}}(d))}};
g.k.fu=function(a){return new BHa(a)};
g.k.Js=function(a,b){b=void 0===b?1:b;a instanceof BHa&&(DHa(this,a.name,(0,g.pD)()-a.startTimeMs,b),a.j=!0)};
g.k.Ek=function(a,b){var c=(0,g.pD)();b=b();return EHa(this,b,a,c)};
g.k.HW=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=this.j[b];if(0===c.j)c=null;else{for(var d=c.j.toFixed(0)+"."+c.C.toFixed(0),e=0;e<VN.length;++e)if(0<c.B[e])d+="."+VN[e].toFixed(0)+"_"+c.B[e].toFixed(0);else break;c=d}c&&(a[b]=c)}this.j=new AHa;return a};
g.k.toString=function(){return""};g.k=FHa.prototype;g.k.isActive=function(){return!1};
g.k.HI=function(){};
g.k.fu=function(){};
g.k.Js=function(){};
g.k.Ek=function(a,b){return b()};
g.k.HW=function(){return{}};
g.k.toString=function(){return""};var f3,llb,mlb,nlb,olb,plb,g3,WN,FZ,Zcb,xR;f3=new FHa;llb=!!+sB("html5_enable_profiler");mlb=!!+sB("html5_onesie_enable_profiler");nlb=!!+sB("html5_offline_encryption_enable_profiler");olb=!!+sB("html5_performance_impact_profiling_timer_ms");plb=!!+sB("html5_drm_enable_profiler");g3=llb||mlb||nlb||olb||plb?new CHa:f3;g.wY=llb?g3:f3;WN=mlb?g3:f3;FZ=nlb?g3:f3;Zcb=olb?g3:f3;xR=plb?g3:f3;g.w(XN,g.I);XN.prototype.encrypt=function(a){this.B(this.cipher,a.byteOffset,a.byteLength);return a};
XN.prototype.FK=function(a){this.j.exports.AES128CTRCipher_setCounter(this.cipher,a.byteOffset)};g.YN.prototype.encrypt=function(a,b){var c=this,d,e;return g.H(function(f){if(1==f.j){d=UN();if(!d)return f.return(c.j(a,b));g.Ba(f,3);return g.z(f,c.B(a,b,d),5)}if(3!=f.j)return f.return(f.B);e=g.Da(f);g.uF(e);yHa=!0;return f.return(c.j(a,b))})};
g.YN.prototype.B=function(a,b,c){var d=this,e,f;return g.H(function(h){switch(h.j){case 1:if(d.G){h.Ka(2);break}return g.z(h,c.importKey("raw",d.D,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:d.G=h.B;case 2:return e={name:"AES-CTR",counter:b,length:128},g.z(h,c.encrypt(e,d.G,a),4);case 4:return f=h.B,h.return(new Uint8Array(f))}})};
g.YN.prototype.j=function(a,b){this.C||(this.C=new SN(this.D));this.C.FK(b);return this.C.encrypt(a)};
g.YN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.w(g.ZN,g.I);g.ZN.prototype.encrypt=function(a,b){this.j||(this.j=new SN(this.B),g.N(this,this.j));this.j.FK(b);return this.j.encrypt(a)};
g.ZN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
$N.prototype.encrypt=function(a,b){this.B.FK(b);return this.B.encrypt(a)};
$N.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
$N.prototype.isDisposed=function(){return this.B.isDisposed()};
$N.prototype.dispose=function(){this.B.dispose()};HHa.prototype.reset=function(){JHa(this);this.update(this.C)};
HHa.prototype.update=function(a){var b=0,c=a.length;this.D+=c;this.B&&64<=this.B+c&&(this.K.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,IHa(this,this.K,0));for(;b+64<=c;b+=64)IHa(this,a,b);b<c&&(a=a.subarray(b),this.K.set(a,this.B),this.B+=a.length)};
var aO=[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 qlb;qlb={};g.rlb=g.KD("yt-idb-pref-storage",{jr:(qlb.prefs={cn:1},qlb),shared:!1,upgrade:function(a,b){b(1)&&g.wD(g.qD(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});bO.prototype.getState=function(){return this.store.getState()};
bO.prototype.dispatch=function(a){return this.store.dispatch(a)};
bO.prototype.subscribe=function(a){return this.store.subscribe(a)};
bO.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
bO.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};g.k=cO.prototype;g.k.getLength=function(){return this.totalLength};
g.k.append=function(a){if(THa(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);UHa(this)}else this.j.push(a);this.totalLength+=a.length};
g.k.split=function(a){for(var b=new cO,c=new cO,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{zI:b,Gm:c}};
g.k.isFocused=function(a){return a>=this.C&&a<this.C+this.j[this.B].length};
g.k.focus=function(a){if(!this.isFocused(a)){for(a<this.C&&UHa(this);this.C+this.j[this.B].length<=a&&this.B<this.j.length;)this.C+=this.j[this.B].length,this.B+=1;this.D=void 0}};var kO,iO,mO;g.KZ=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}();
kO=Array(1024);iO=window.TextDecoder?new TextDecoder:void 0;mO=window.TextEncoder?new TextEncoder:void 0;for(var gIa={buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,
flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,liveChatPollStateEntity:217,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,
musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,
pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,settingEntity:297,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},fIa={},slb=g.u(Object.entries(gIa)),tlb=slb.next();!tlb.done;tlb=slb.next()){var ulb=g.u(tlb.value),vlb=ulb.next().value,wlb=ulb.next().value,xlb=vlb,ylb=wlb;ylb&&(fIa[ylb]=
xlb)};var h3;h3={};g.zlb=(h3.INVALID_ENCODER_VERSION="Invalid encoder version",h3.KEY_CREATION_FAILED="Failed to create encoder key",h3.UNKNOWN_DECODE_ERROR="Failed to decode PES data",h3.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",h3.WRONG_DATA_TYPE="Encoder cannot process the data type",h3);var LO=window.Clb||"ru";var wMa=[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,196088,198104,32276,195115,195114,76278,200635,147868,147869,93911,106531,177843,27259,27262,27263,21759,160866,204249,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,180627,177960,177958,180629,205717,197879,177565,
197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,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,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,110111,76019,117092,
117093,89431,191831,110466,77240,60508,186091,148123,148124,137401,137402,137046,73393,113534,92098,131381,84517,83759,162711,162712,80357,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,144401,117431,133797,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,
201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,129889,197888,197889,149123,45474,100352,98443,117985,74613,155911,74614,64502,
136032,74615,74616,122224,74617,77820,74618,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,82047,113550,75836,75837,192409,203221,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,195529,189660,46220,11721,147994,49954,96369,3854,151633,56251,205192,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,
22256,14115,22696,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,62397,150871,150874,125598,137935,36961,
108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,194769,191885,194770,195350,195349,194771,166382,37671,49953,204572,191389,204574,187917,191390,179556,191402,191392,197826,191393,204573,36216,28237,173718,39553,192547,29222,26107,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,
173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,63349,95101,75240,27039,68823,21537,83464,75707,170215,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,111059,5754,20445,151308,151152,
130975,130976,191925,167637,197196,110386,113746,66557,183215,17310,28631,201935,21589,164817,168011,154946,68012,162617,60480,184431,138664,194E3,141121,164502,31571,195002,206793,141978,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,4724,59369,43927,43928,12924,197853,100355,56219,27669,10337,203648,203649,47896,122629,186204,139723,139722,121258,107598,127991,96639,107536,130169,96661,145188,96658,116646,159428,168611,168612,121122,96660,127738,127083,155281,162959,
163566,186641,147842,104443,96659,147595,106442,182423,162776,134840,63667,63668,63669,130686,147036,189810,78314,147799,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,49956,190190,31961,26388,23811,5E4,126250,96370,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,68314,25602,100339,170873,143516,178921,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,53969,8213,93926,102852,110099,22678,69076,137575,139224,100856,
154430,17736,3832,147111,55759,64031,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];var Ncb={adNotify:function(a){var b=new jma,c=0;try{var d=a.adMediaTimeSec;void 0!==d&&(vk(b,1,d),c++);var e=a.adMediaTimeMs;void 0!==e&&(xk(b,6,e),c++);var f=a.timeToAdBreakSec;void 0!==f&&(vk(b,2,f),c++);var h=a.clientScreenNonce;void 0!==h&&(Q(b,3,h),c++);var l=a.clientPlaybackNonce;void 0!==l&&(Q(b,4,l),c++);var m=a.videoAdBreakOffsetSec;void 0!==m&&(vk(b,5,m),c++);var n=a.videoAdBreakOffsetMs;void 0!==n&&(xk(b,7,n),c++);return[c===Object.keys(a).length,b]}catch(p){return Z(p),[!1,void 0]}},
biscottiBasedDetection:function(a){var b=new lA,c=0;try{var d=a.detected;void 0!==d&&(uk(b,1,d),c++);var e=a.source;void 0!==e&&(Q(b,2,e),c++);var f=a.contentCpn;void 0!==f&&(Q(b,3,f),c++);var h=a.contentCsn;void 0!==h&&(Q(b,4,h),c++);var l=a.method;void 0!==l&&(vk(b,5,l),c++);var m=a.result;void 0!==m&&(vk(b,6,m),c++);var n=a.detectionResult;void 0!==n&&(S(b,9,pjb[n]),c++);var p=a.detectionStates;void 0!==p&&(OO(b.t5.bind(b),p,qjb),c++);var q=a.adCpn;void 0!==q&&(Q(b,7,q),c++);var r=a.playbackType;
void 0!==r&&(Q(b,8,r),c++);return[c===Object.keys(a).length,b]}catch(t){return Z(t),[!1,void 0]}},
adNotifyFilled:function(a){var b=new ima,c=0;try{var d=a.notifyCompositeType;void 0!==d&&(S(b,1,Zib[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}},
idbTransactionEnded:function(a){var b=new PA,c=0;try{var d=a.objectStoreNames;void 0!==d&&(Q(b,1,d),c++);var e=a.duration;void 0!==e&&(b.wl(e),c++);var f=a.isSuccessful;void 0!==f&&(uk(b,3,f),c++);var h=a.connectionHasUnknownAbortedTransaction;void 0!==h&&(uk(b,4,h),c++);var l=a.tryCount;void 0!==l&&(vk(b,5,l),c++);var m=a.tag;void 0!==m&&(S(b,6,Gjb[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Z(n),[!1,void 0]}},
idbUnexpectedlyClosed:function(a){var b=new loa,c=0;try{var d=a.dbName;void 0!==d&&(Q(b,1,d),c++);var e=a.dbVersion;void 0!==e&&(vk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}},
flowEvent:function(a){var b=new foa,c=0;try{var d=a.flowNonce;void 0!==d&&(Q(b,1,d),c++);var e=a.flowEventType;if(e){var f=new eoa,h=0;try{var l=e.flowEventNamespace;void 0!==l&&(S(f,1,zjb[l]),h++);var m=e.flowEventType;void 0!==m&&(vk(f,2,m),h++);var n=[h===Object.keys(e).length,f]}catch(Oa){Z(Oa),n=[!1,void 0]}var p=n;p[0]&&(Sj(b,eoa,2,p[1]),c++)}var q=a.flowMetadata;if(q){var r=new doa,t=0;try{var v=q.notaireContext;if(v){var x=new Cna,A=0;try{var E=v.serverInfo;if(E){var F=new yA,G=0;try{var M=
E.id;void 0!==M&&(Q(F,1,M),G++);var P=E.forceLog;void 0!==P&&(uk(F,2,P),G++);var R=[G===Object.keys(E).length,F]}catch(Oa){Z(Oa),R=[!1,void 0]}var ba=R;ba[0]&&(Sj(x,yA,1,ba[1]),A++)}var na=v.clientInfo;if(na){var ta=new Bna,ka=0;try{var va=na.timeSinceReceivedMs;void 0!==va&&(xk(ta,1,va),ka++);var ea=[ka===Object.keys(na).length,ta]}catch(Oa){Z(Oa),ea=[!1,void 0]}var Y=ea;Y[0]&&(Sj(x,Bna,2,Y[1]),A++)}var Ma=[A===Object.keys(v).length,x]}catch(Oa){Z(Oa),Ma=[!1,void 0]}var y=Ma;y[0]&&(Sj(r,Cna,1,y[1]),
t++)}var aa=q.offlineTransferStatusChangedContext;if(aa){var Ua=new Fna,cb=0;try{var nb=aa.offlineTransferStatusChanged;if(nb){var Na=GKa(nb);Na[0]&&(Sj(Ua,BA,1,Na[1]),cb++)}var Ta=[cb===Object.keys(aa).length,Ua]}catch(Oa){Z(Oa),Ta=[!1,void 0]}var gb=Ta;gb[0]&&(Sj(r,Fna,2,gb[1]),t++)}var qb=q.offlineOrchestrationContext;if(qb){var rb=new AA,B=0;try{var C=qb.entityType;void 0!==C&&(vk(rb,1,C),B++);var D=qb.entityId;void 0!==D&&(Q(rb,7,D),B++);var J=qb.offlineOrchestrationActionType;void 0!==J&&(S(rb,
6,bkb[J]),B++);var K=qb.offlineOrchestrationActionResult;void 0!==K&&(S(rb,2,akb[K]),B++);var ca=qb.offlineOrchestrationFailureReason;void 0!==ca&&(S(rb,10,ckb[ca]),B++);var sa=qb.isRetryable;void 0!==sa&&(uk(rb,3,sa),B++);var ia=qb.isRestored;void 0!==ia&&(uk(rb,11,ia),B++);var L=qb.orchestrationAction;if(L){var X=GLa(L);X[0]&&(Sj(rb,zA,4,X[1]),B++)}var ya=qb.additionalOrchestrationActions;ya&&(NO(rb.j.bind(rb),ya,GLa),B++);var xa=qb.intervalSinceEnqueuedMs;void 0!==xa&&(xk(rb,8,xa),B++);var Za=
qb.executionIntervalMs;void 0!==Za&&(xk(rb,9,Za),B++);var Xa=qb.offlineModeType;void 0!==Xa&&(S(rb,12,xKa[Xa]),B++);var wb=[B===Object.keys(qb).length,rb]}catch(Oa){Z(Oa),wb=[!1,void 0]}var Pb=wb;Pb[0]&&(Sj(r,AA,3,Pb[1]),t++)}var db=q.shortsCreationContext;if(db){var Qb=new EA,gc=0;try{var zc=db.shortsCreationSurfaces;void 0!==zc&&(OO(Qb.j.bind(Qb),zc,nkb),gc++);var Yb=[gc===Object.keys(db).length,Qb]}catch(Oa){Z(Oa),Yb=[!1,void 0]}var uc=Yb;uc[0]&&(Sj(r,EA,4,uc[1]),t++)}var Wc=q.mdxConnectionContext;
if(Wc){var Ic=new yna,Jc=0;try{var Kc=Wc.isReconnection;void 0!==Kc&&(uk(Ic,1,Kc),Jc++);var Ub=Wc.disconnectReason;void 0!==Ub&&(S(Ic,2,Jjb[Ub]),Jc++);var ud=Wc.isRetry;void 0!==ud&&(uk(Ic,3,ud),Jc++);var vd=[Jc===Object.keys(Wc).length,Ic]}catch(Oa){Z(Oa),vd=[!1,void 0]}var ac=vd;ac[0]&&(Sj(r,yna,5,ac[1]),t++)}var Wb=q.premiumMultiStepPurchaseContext;if(Wb){var Lc=new Mna,Gb=0;try{var Zc=Wb.selectedOption;if(Zc){var wd=new Lna,Nb=0;try{var qe=Zc.offerType;void 0!==qe&&(S(wd,1,Fib[qe]),Nb++);var Od=
Zc.itemType;void 0!==Od&&(S(wd,2,cP[Od]),Nb++);var Pd=Zc.itemExternalId;void 0!==Pd&&(Q(wd,3,Pd),Nb++);var Le=[Nb===Object.keys(Zc).length,wd]}catch(Oa){Z(Oa),Le=[!1,void 0]}var Ae=Le;Ae[0]&&(Sj(Lc,Lna,1,Ae[1]),Gb++)}var Gd=Wb.itemType;void 0!==Gd&&(S(Lc,2,cP[Gd]),Gb++);var Ef=Wb.productType;void 0!==Ef&&(S(Lc,3,dP[Ef]),Gb++);var Xe=Wb.landingPageVariantId;void 0!==Xe&&(Q(Lc,4,Xe),Gb++);var ce=Wb.experimentStatus;void 0!==ce&&(S(Lc,5,Ljb[ce]),Gb++);var Ff=Wb.themeKey;void 0!==Ff&&(Q(Lc,6,Ff),Gb++);
var de=Wb.signupType;void 0!==de&&(S(Lc,7,Mjb[de]),Gb++);var re=[Gb===Object.keys(Wb).length,Lc]}catch(Oa){Z(Oa),re=[!1,void 0]}var Hd=re;Hd[0]&&(Sj(r,Mna,6,Hd[1]),t++)}var xd=q.mdxReceiverConnectionContext;if(xd){var hd=new zna,Qd=0;try{var yd=xd.isFromAppLaunch;void 0!==yd&&(uk(hd,1,yd),Qd++);var lf=xd.dialServerType;void 0!==lf&&(S(hd,2,Ijb[lf]),Qd++);var Tf=xd.supportsSmoothPairing;void 0!==Tf&&(uk(hd,3,Tf),Qd++);var se=xd.hasManuallyPairedRemotesOnAppStartup;void 0!==se&&(uk(hd,4,se),Qd++);var nc=
xd.mismatchedTheme;void 0!==nc&&(S(hd,5,Aib[nc]),Qd++);var Me=xd.mdxSenderConnectedCounter;void 0!==Me&&(vk(hd,6,Me),Qd++);var bh=xd.externalRouteSource;void 0!==bh&&(S(hd,7,Hjb[bh]),Qd++);var Qh=xd.appReloadCount;void 0!==Qh&&(vk(hd,8,Qh),Qd++);var Bi=[Qd===Object.keys(xd).length,hd]}catch(Oa){Z(Oa),Bi=[!1,void 0]}var Ci=Bi;Ci[0]&&(Sj(r,zna,7,Ci[1]),t++)}var Jf=q.parentToolsOnboardingContext;if(Jf){var af=new Hna,bf=0;try{var Rh=Jf.triggerPoint;void 0!==Rh&&(S(af,1,Rib[Rh]),bf++);var qc=Jf.kidsFlowInfo;
if(qc){var vc=new Gna,Ec=0;try{var Gg=qc.kidsFlowVersion;void 0!==Gg&&(S(vc,1,Oib[Gg]),Ec++);var Pc=qc.flowLabel;void 0!==Pc&&(Q(vc,2,Pc),Ec++);var cf=qc.hostClientName;void 0!==cf&&(S(vc,3,Pib[cf]),Ec++);var Xf=qc.hostClientVersion;void 0!==Xf&&(Q(vc,4,Xf),Ec++);var Di=qc.kidsFlowType;void 0!==Di&&(S(vc,5,Nib[Di]),Ec++);var Ei=[Ec===Object.keys(qc).length,vc]}catch(Oa){Z(Oa),Ei=[!1,void 0]}var Sh=Ei;Sh[0]&&(Sj(af,Gna,2,Sh[1]),bf++)}var Hg=Jf.kidsCorpusPreferenceNew;void 0!==Hg&&(S(af,3,Mib[Hg]),
bf++);var Kf=Jf.appChoice;void 0!==Kf&&(S(af,4,Qib[Kf]),bf++);var fh=Jf.isKidSignedIn;void 0!==fh&&(uk(af,5,fh),bf++);var lj=Jf.alreadyOnboardedYtk;void 0!==lj&&(uk(af,6,lj),bf++);var nf=Jf.alreadyOnboardedSupex;void 0!==nf&&(uk(af,7,nf),bf++);var df=[bf===Object.keys(Jf).length,af]}catch(Oa){Z(Oa),df=[!1,void 0]}var ng=df;ng[0]&&(Sj(r,Hna,8,ng[1]),t++)}var Fi=q.hashtagAutoCompleteContext;if(Fi){var Th=new nna,of=0;try{var gh=Fi.suggestionSelected;void 0!==gh&&(vk(Th,1,gh),of++);var hh=[of===Object.keys(Fi).length,
Th]}catch(Oa){Z(Oa),hh=[!1,void 0]}var Gi=hh;Gi[0]&&(Sj(r,nna,9,Gi[1]),t++)}var De=q.liveStreamingContext;if(De){var ef=new xna,Jd=0;try{var mj=De.broadcastSource;void 0!==mj&&(S(ef,1,Xib[mj]),Jd++);var ff=De.isAutoDashboard;void 0!==ff&&(uk(ef,2,ff),Jd++);var pf=De.externalVideoId;void 0!==pf&&(Q(ef,3,pf),Jd++);var Pe=De.broadcastConferenceType;void 0!==Pe&&(S(ef,4,Vib[Pe]),Jd++);var og=De.eventData;if(og){var Ig=new wna,Ee=0;try{var pg=og.webrtcHandshakeOffer;if(pg){var Lf=new vna,Uh=0;try{var Zj=
pg.localVideoSsrc;void 0!==Zj&&(wk(Lf,1,Zj),Uh++);var Rl=pg.localAudioSsrc;void 0!==Rl&&(wk(Lf,2,Rl),Uh++);var Rk=pg.participantId;void 0!==Rk&&(yk(Lf,3,Rk),Uh++);var Sl=[Uh===Object.keys(pg).length,Lf]}catch(Oa){Z(Oa),Sl=[!1,void 0]}var Tl=Sl;Tl[0]&&(Sj(Ig,vna,1,Tl[1]),Ee++)}var ak=og.webrtcHandshakeAnswer;if(ak){var qf=new tna,Wd=0;try{var Xd=ak.remoteVideoSsrc;void 0!==Xd&&(wk(qf,1,Xd),Wd++);var rf=ak.remoteAudioSsrc;void 0!==rf&&(wk(qf,2,rf),Wd++);var ih=[Wd===Object.keys(ak).length,qf]}catch(Oa){Z(Oa),
ih=[!1,void 0]}var Ul=ih;Ul[0]&&(Sj(Ig,tna,2,Ul[1]),Ee++)}var Sk=og.webrtcHandshakeError;if(Sk){var nj=new una,oj=0;try{var qg=Sk.description;void 0!==qg&&(Q(nj,1,qg),oj++);var Yf=[oj===Object.keys(Sk).length,nj]}catch(Oa){Z(Oa),Yf=[!1,void 0]}var bk=Yf;bk[0]&&(Sj(Ig,una,3,bk[1]),Ee++)}var Tk=og.costreamStartNotification;if(Tk){var Vl=new qna,jh=0;try{var Vh=Tk.broadcastStartTimeMs;void 0!==Vh&&(xk(Vl,1,Vh),jh++);var Hi=[jh===Object.keys(Tk).length,Vl]}catch(Oa){Z(Oa),Hi=[!1,void 0]}var pj=Hi;pj[0]&&
(Sj(Ig,qna,4,pj[1]),Ee++)}var kh=og.remoteParticipant;if(kh){var lh=new sna,sf=0;try{var Wl=kh.videoSsrc;void 0!==Wl&&(wk(lh,1,Wl),sf++);var Xl=kh.audioSsrc;void 0!==Xl&&(wk(lh,2,Xl),sf++);var Yl=[sf===Object.keys(kh).length,lh]}catch(Oa){Z(Oa),Yl=[!1,void 0]}var Uk=Yl;Uk[0]&&(Sj(Ig,sna,5,Uk[1]),Ee++)}var Qe=og.webcamEventData;if(Qe){var Mf=new xA,tf=0;try{var Zl=Qe.videoFrameRate;void 0!==Zl&&(zk(Mf,1,Zl),tf++);var Vk=Qe.videoAspectRatio;void 0!==Vk&&(zk(Mf,2,Vk),tf++);var Wk=Qe.videoHeight;void 0!==
Wk&&(wk(Mf,3,Wk),tf++);var mc=Qe.videoWidth;void 0!==mc&&(wk(Mf,4,mc),tf++);var Qo=Qe.videoCaptureCursor;void 0!==Qo&&(Q(Mf,5,Qo),tf++);var Ii=Qe.videoCaptureSurface;void 0!==Ii&&(Q(Mf,6,Ii),tf++);var qj=Qe.videoCaptureAudioEnabled;void 0!==qj&&(uk(Mf,7,qj),tf++);var $l=[tf===Object.keys(Qe).length,Mf]}catch(Oa){Z(Oa),$l=[!1,void 0]}var am=$l;am[0]&&(Sj(Ig,xA,6,am[1]),Ee++)}var Xk=og.errorEventData;if(Xk){var dn=new rna,en=0;try{var Ro=Xk.liveClientErrorType;void 0!==Ro&&(S(dn,1,Tib[Ro]),en++);var Gq=
Xk.liveServerErrorType;void 0!==Gq&&(S(dn,2,Uib[Gq]),en++);var bm=Xk.kioskClientApiErrorType;void 0!==bm&&(S(dn,3,Sib[bm]),en++);var So=[en===Object.keys(Xk).length,dn]}catch(Oa){Z(Oa),So=[!1,void 0]}var Hq=So;Hq[0]&&(Sj(Ig,rna,7,Hq[1]),Ee++)}var Yk=og.adsAutomationEventData;if(Yk){var fn=new pna,cm=0;try{var ck=Yk.adsAutomationSettingsType;void 0!==ck&&(S(fn,1,Bib[ck]),cm++);var Wh=Yk.adsAutomationIntervalSec;void 0!==Wh&&(vk(fn,2,Wh),cm++);var mh=Yk.isNonConcurrent;void 0!==mh&&(uk(fn,3,mh),cm++);
var dm=[cm===Object.keys(Yk).length,fn]}catch(Oa){Z(Oa),dm=[!1,void 0]}var Iq=dm;Iq[0]&&(Sj(Ig,pna,8,Iq[1]),Ee++)}var Jq=[Ee===Object.keys(og).length,Ig]}catch(Oa){Z(Oa),Jq=[!1,void 0]}var To=Jq;To[0]&&(Sj(ef,wna,5,To[1]),Jd++)}var Zf=De.isMonetizationOn;void 0!==Zf&&(uk(ef,6,Zf),Jd++);var Xh=De.sharedmdeEnabled;void 0!==Xh&&(uk(ef,7,Xh),Jd++);var gn=De.isScreencast;void 0!==gn&&(uk(ef,8,gn),Jd++);var nh=De.broadcastLifecycleStatus;void 0!==nh&&(S(ef,9,Wib[nh]),Jd++);var Ji=De.hasCreatedMobileLivestream;
void 0!==Ji&&(uk(ef,10,Ji),Jd++);var Ki=[Jd===Object.keys(De).length,ef]}catch(Oa){Z(Oa),Ki=[!1,void 0]}var Uo=Ki;Uo[0]&&(Sj(r,xna,10,Uo[1]),t++)}var rg=q.touAppealContext;if(rg){var Yh=new KA,Zh=0;try{var Vo=rg.scope;void 0!==Vo&&(Q(Yh,1,Vo),Zh++);var Wo=rg.videoId;if(Wo){var Kq=new JA,em=0;try{var Xo=Wo.externalVideoId;void 0!==Xo&&(Q(Kq,1,Xo),em++);var Yo=[em===Object.keys(Wo).length,Kq]}catch(Oa){Z(Oa),Yo=[!1,void 0]}var Lq=Yo;Lq[0]&&(Yh.setVideoId(Lq[1]),Zh++)}var Li=rg.videoThumbnailId;if(Li){var dk=
new Vna,ek=0;try{var Zk=Li.externalVideoId;void 0!==Zk&&(Q(dk,1,Zk),ek++);var fm=Li.thumbnailVersion;void 0!==fm&&(yk(dk,3,fm),ek++);var gm=Li.checksum;void 0!==gm&&(yk(dk,4,gm),ek++);var $c=[ek===Object.keys(Li).length,dk]}catch(Oa){Z(Oa),$c=[!1,void 0]}var $h=$c;$h[0]&&(Tj(Yh,Vna,3,K2,$h[1]),Zh++)}var hn=rg.playlistId;if(hn){var jn=new GA,kn=0;try{var ln=hn.externalPlaylistId;void 0!==ln&&(Q(jn,1,ln),kn++);var Jg=[kn===Object.keys(hn).length,jn]}catch(Oa){Z(Oa),Jg=[!1,void 0]}var oh=Jg;oh[0]&&(Tj(Yh,
GA,4,K2,oh[1]),Zh++)}var ai=rg.urlHostname;void 0!==ai&&(Nj(Yh,5,K2,Yi(ai)),Zh++);var mn=rg.postId;if(mn){var Mq=new Una,hm=0;try{var nn=mn.externalPostId;void 0!==nn&&(Q(Mq,1,nn),hm++);var im=[hm===Object.keys(mn).length,Mq]}catch(Oa){Z(Oa),im=[!1,void 0]}var Zo=im;Zo[0]&&(Tj(Yh,Una,9,K2,Zo[1]),Zh++)}var Nq=rg.encodedTouViolativeContentId;void 0!==Nq&&(Q(Yh,6,Nq),Zh++);var $o=rg.encodedChannelTouViolativeContentId;void 0!==$o&&(Q(Yh,7,$o),Zh++);var fk=rg.trainingData;if(fk){var Mi=new IA,gk=0;try{var jm=
fk.question;if(jm){var ap=new Tna,hk=0;try{var ik=jm.questionId;void 0!==ik&&(vk(ap,1,ik),hk++);var $k=jm.supplementaryInfoId;void 0!==$k&&(vk(ap,2,$k),hk++);var al=[hk===Object.keys(jm).length,ap]}catch(Oa){Z(Oa),al=[!1,void 0]}var bp=al;bp[0]&&(Sj(Mi,Tna,1,bp[1]),gk++)}var Oq=fk.answers;Oq&&(NO(Mi.j.bind(Mi),Oq,HLa),gk++);var bl=fk.correctAnswers;bl&&(NO(Mi.B.bind(Mi),bl,HLa),gk++);var rj=fk.strikeId;void 0!==rj&&(Q(Mi,4,rj),gk++);var km=fk.preTrainingMaterialId;void 0!==km&&(vk(Mi,5,km),gk++);
var cl=[gk===Object.keys(fk).length,Mi]}catch(Oa){Z(Oa),cl=[!1,void 0]}var cp=cl;cp[0]&&(Sj(Yh,IA,8,cp[1]),Zh++)}var Pq=[Zh===Object.keys(rg).length,Yh]}catch(Oa){Z(Oa),Pq=[!1,void 0]}var Qq=Pq;Qq[0]&&(Sj(r,KA,11,Qq[1]),t++)}var on=q.dragAndDropContext;if(on){var lm=new uA,ph=0;try{var pn=on.rootVe;if(pn){var mm=PO(pn);mm[0]&&(Sj(lm,tA,1,mm[1]),ph++)}var Kg=on.ve;if(Kg){var Rq=PO(Kg);Rq[0]&&(Sj(lm,tA,2,Rq[1]),ph++)}var dp=[ph===Object.keys(on).length,lm]}catch(Oa){Z(Oa),dp=[!1,void 0]}var Sq=dp;Sq[0]&&
(Sj(r,uA,12,Sq[1]),t++)}var dl=q.socialSuggestionsContext;if(dl){var sj=new FA,bi=0;try{var qh=dl.socialSuggestionsType;void 0!==qh&&(S(sj,1,Ojb[qh]),bi++);var ci=dl.suggestionSelected;void 0!==ci&&(vk(sj,2,ci),bi++);var Ni=dl.source;void 0!==Ni&&(S(sj,3,Pjb[Ni]),bi++);var ep=[bi===Object.keys(dl).length,sj]}catch(Oa){Z(Oa),ep=[!1,void 0]}var Tq=ep;Tq[0]&&(Sj(r,FA,13,Tq[1]),t++)}var qn=q.featureEnablementContext;if(qn){var nm=new vA,Oi=0;try{var tj=qn.feature;void 0!==tj&&(S(nm,1,VIa[tj]),Oi++);var uj=
[Oi===Object.keys(qn).length,nm]}catch(Oa){Z(Oa),uj=[!1,void 0]}var rn=uj;rn[0]&&(Sj(r,vA,14,rn[1]),t++)}var Pi=q.iapContext;if(Pi){var el=new wA,fl=0;try{var sn=Pi.playIapProduct;if(sn){var fp=new ona,gp=0;try{var Us=sn.packageId;void 0!==Us&&(Q(fp,1,Us),gp++);var Uq=sn.productId;void 0!==Uq&&(Q(fp,2,Uq),gp++);var Vq=[gp===Object.keys(sn).length,fp]}catch(Oa){Z(Oa),Vq=[!1,void 0]}var tn=Vq;tn[0]&&(Tj(el,ona,1,wjb,tn[1]),fl++)}var hp=Pi.source;void 0!==hp&&(S(el,2,Bjb[hp]),fl++);var jk=Pi.attributionId;
void 0!==jk&&(xk(el,3,jk),fl++);var un=Pi.externalVideoId;void 0!==un&&(Q(el,4,un),fl++);var vn=Pi.externalChannelId;void 0!==vn&&(Q(el,5,vn),fl++);var Wq=[fl===Object.keys(Pi).length,el]}catch(Oa){Z(Oa),Wq=[!1,void 0]}var Xq=Wq;Xq[0]&&(Sj(r,wA,15,Xq[1]),t++)}var om=q.shoppingCheckoutContext;if(om){var ip=new Rna,jp=0;try{var Yq=om.shoppingFlowParams;if(Yq){var Zq=KLa(Yq);Zq[0]&&(Sj(ip,DA,1,Zq[1]),jp++)}var pm=om.shoppingCheckoutErrorReason;void 0!==pm&&(S(ip,2,Njb[pm]),jp++);var qm=[jp===Object.keys(om).length,
ip]}catch(Oa){Z(Oa),qm=[!1,void 0]}var wn=qm;wn[0]&&(Sj(r,Rna,16,wn[1]),t++)}var xn=q.ypcCancellationContext;if(xn){var kp=new Zna,lp=0;try{var $q=xn.itemType;void 0!==$q&&(S(kp,1,cP[$q]),lp++);var mp=xn.productType;void 0!==mp&&(S(kp,2,dP[mp]),lp++);var ar=[lp===Object.keys(xn).length,kp]}catch(Oa){Z(Oa),ar=[!1,void 0]}var br=ar;br[0]&&(Sj(r,Zna,17,br[1]),t++)}var he=q.ypcBrowseOffersContext;if(he){var Fe=new Yna,ie=0;try{var gl=he.commerceFlowLoggingParams;if(gl){var yn=PLa(gl);yn[0]&&(Sj(Fe,MA,
1,yn[1]),ie++)}var np=he.offerType;void 0!==np&&(S(Fe,2,Gib[np]),ie++);var cr=he.entityType;void 0!==cr&&(S(Fe,3,sjb[cr]),ie++);var op=[ie===Object.keys(he).length,Fe]}catch(Oa){Z(Oa),op=[!1,void 0]}var pp=op;pp[0]&&(Sj(r,Yna,18,pp[1]),t++)}var qp=q.mdxStreamTransferContext;if(qp){var di=new Ana,Qi=0;try{var vj=qp.completedReason;void 0!==vj&&(S(di,1,Kjb[vj]),Qi++);var dr=[Qi===Object.keys(qp).length,di]}catch(Oa){Z(Oa),dr=[!1,void 0]}var er=dr;er[0]&&(Sj(r,Ana,19,er[1]),t++)}var hl=q.pdgBuyFlowContext;
if(hl){var zn=new Kna,An=0;try{var rp=hl.productType;void 0!==rp&&(S(zn,1,dP[rp]),An++);var il=hl.entryPointClickedContext;if(il){var rm=new Ina,Ri=0;try{var Bn=il.superVodBuyFlowEntryPoint;void 0!==Bn&&(Ck(rm,1,J2,gkb[Bn]),Ri++);var Cn=il.superChatBuyFlowEntryPoint;void 0!==Cn&&(Ck(rm,2,J2,ekb[Cn]),Ri++);var fr=il.sharedPdgBuyFlowEntryPoint;void 0!==fr&&(Ck(rm,3,J2,dkb[fr]),Ri++);var gr=il.superStickerBuyFlowEntryPoint;void 0!==gr&&(Ck(rm,4,J2,fkb[gr]),Ri++);var kk=[Ri===Object.keys(il).length,rm]}catch(Oa){Z(Oa),
kk=[!1,void 0]}var jl=kk;jl[0]&&(Sj(zn,Ina,2,jl[1]),An++)}var lk=hl.itemSelectionPageDisplayedContext;if(lk){var hr=new Jna,Dn=0;try{var sp=lk.superStickerBuyFlowType;void 0!==sp&&(S(hr,1,hkb[sp]),Dn++);var tp=[Dn===Object.keys(lk).length,hr]}catch(Oa){Z(Oa),tp=[!1,void 0]}var sm=tp;sm[0]&&(Sj(zn,Jna,3,sm[1]),An++)}var ir=[An===Object.keys(hl).length,zn]}catch(Oa){Z(Oa),ir=[!1,void 0]}var kl=ir;kl[0]&&(Sj(r,Kna,20,kl[1]),t++)}var mk=q.ypcPurchaseContext;if(mk){var ll=new coa,En=0;try{var tm=mk.commerceFlowLoggingParams;
if(tm){var uf=PLa(tm);uf[0]&&(Sj(ll,MA,1,uf[1]),En++)}var sg=mk.offerType;void 0!==sg&&(S(ll,2,Gib[sg]),En++);var je=mk.transactionType;void 0!==je&&(S(ll,3,Ujb[je]),En++);var jr=mk.paymentProcessor;void 0!==jr&&(S(ll,4,Hib[jr]),En++);var up=[En===Object.keys(mk).length,ll]}catch(Oa){Z(Oa),up=[!1,void 0]}var rh=up;rh[0]&&(Sj(r,coa,21,rh[1]),t++)}var sh=q.webViewContext;if(sh){var ue=new Wna,ei=0;try{var um=sh.hostname;void 0!==um&&(Q(ue,1,um),ei++);var Vs=sh.webViewUseCase;void 0!==Vs&&(S(ue,2,skb[Vs]),
ei++);var kr=sh.isFirstPartyHost;void 0!==kr&&(uk(ue,5,kr),ei++);var lr=sh.isLoaded;void 0!==lr&&(uk(ue,3,lr),ei++);var ev=sh.webViewEngagementSec;void 0!==ev&&(vk(ue,4,ev),ei++);var mr=[ei===Object.keys(sh).length,ue]}catch(Oa){Z(Oa),mr=[!1,void 0]}var Fn=mr;Fn[0]&&(Sj(r,Wna,22,Fn[1]),t++)}var fi=q.videoSuggestionsContext;if(fi){var Gn=new LA,vm=0;try{var ml=fi.type;void 0!==ml&&(S(Gn,1,Cib[ml]),vm++);var vp=fi.serializedSuggestionData;void 0!==vp&&(Bk(Gn,2,vp),vm++);var wp=fi.videoId;void 0!==wp&&
(Gn.setVideoId(wp),vm++);var nr=[vm===Object.keys(fi).length,Gn]}catch(Oa){Z(Oa),nr=[!1,void 0]}var Ws=nr;Ws[0]&&(Sj(r,LA,23,Ws[1]),t++)}var xp=q.actionSheetContext;if(xp){var Si=new mna,Ti=0;try{var nl=xp.parentScreenUiType;void 0!==nl&&(vk(Si,1,nl),Ti++);var yp=[Ti===Object.keys(xp).length,Si]}catch(Oa){Z(Oa),yp=[!1,void 0]}var ol=yp;ol[0]&&(Sj(r,mna,24,ol[1]),t++)}var zp=q.producerExportContext;if(zp){var Xs=new Pna,Ys=0;try{var nk=zp.exportDetails;if(nk){var wj=new Ona,Ui=0;try{var pl=nk.project;
if(pl){var wm=new CA,Ap=0;try{var Bp=pl.projectId;void 0!==Bp&&(Q(wm,1,Bp),Ap++);var or=pl.durationMs;void 0!==or&&(yk(wm,2,or),Ap++);var pr=[Ap===Object.keys(pl).length,wm]}catch(Oa){Z(Oa),pr=[!1,void 0]}var qr=pr;qr[0]&&(Sj(wj,CA,1,qr[1]),Ui++)}var xm=nk.renderDetails;if(xm){var Vi=new Nna,gi=0;try{var th=xm.sizeBytes;void 0!==th&&(xk(Vi,1,th),gi++);var rr=xm.pixelWidth;void 0!==rr&&(vk(Vi,2,rr),gi++);var sr=xm.pixelHeight;void 0!==sr&&(vk(Vi,3,sr),gi++);var tr=[gi===Object.keys(xm).length,Vi]}catch(Oa){Z(Oa),
tr=[!1,void 0]}var Px=tr;Px[0]&&(Sj(wj,Nna,2,Px[1]),Ui++)}var fv=[Ui===Object.keys(nk).length,wj]}catch(Oa){Z(Oa),fv=[!1,void 0]}var Qx=fv;Qx[0]&&(Sj(Xs,Ona,1,Qx[1]),Ys++)}var Rx=[Ys===Object.keys(zp).length,Xs]}catch(Oa){Z(Oa),Rx=[!1,void 0]}var Cp=Rx;Cp[0]&&(Sj(r,Pna,25,Cp[1]),t++)}var xj=q.downloadMyVideoContext;if(xj){var ok=new sA,ql=0;try{var Zs=xj.videoId;void 0!==Zs&&(ok.setVideoId(Zs),ql++);var gv=xj.videoSid;void 0!==gv&&(xk(ok,2,gv),ql++);var Sx=xj.downloadError;void 0!==Sx&&(S(ok,3,yjb[Sx]),
ql++);var Tx=xj.totalAssetSize;void 0!==Tx&&(xk(ok,4,Tx),ql++);var Ux=xj.totalDownloadedPercent;void 0!==Ux&&(wk(ok,5,Ux),ql++);var Vx=xj.mddDownloadErrorCode;void 0!==Vx&&(wk(ok,6,Vx),ql++);var hv=[ql===Object.keys(xj).length,ok]}catch(Oa){Z(Oa),hv=[!1,void 0]}var Wx=hv;Wx[0]&&(Sj(r,sA,26,Wx[1]),t++)}var ur=q.miniAppContext;if(ur){var $s=new Sma,at=0;try{var Xx=ur.externalPostId;void 0!==Xx&&(Q($s,1,Xx),at++);var bt=ur.miniAppReleaseId;void 0!==bt&&(vk($s,3,bt),at++);var vr=ur.postPlayNonce;void 0!==
vr&&(Q($s,4,vr),at++);var iv=[at===Object.keys(ur).length,$s]}catch(Oa){Z(Oa),iv=[!1,void 0]}var Yx=iv;Yx[0]&&(Sj(r,Sma,27,Yx[1]),t++)}var jv=q.shoppingCartContext;if(jv){var Zx=new Qna,$x=0;try{var ay=jv.shoppingFlowParams;if(ay){var by=KLa(ay);by[0]&&(Sj(Zx,DA,1,by[1]),$x++)}var cy=[$x===Object.keys(jv).length,Zx]}catch(Oa){Z(Oa),cy=[!1,void 0]}var dy=cy;dy[0]&&(Sj(r,Qna,28,dy[1]),t++)}var La=q.sponsorshipsPurchaseContext;if(La){var JN=new Sna,KN=0;try{var uB=La.joinMethod;void 0!==uB&&(S(JN,1,
Iib[uB]),KN++);var hG=[KN===Object.keys(La).length,JN]}catch(Oa){Z(Oa),hG=[!1,void 0]}var iG=hG;iG[0]&&(Sj(r,Sna,29,iG[1]),t++)}var vB=q.ypcCujContext;if(vB){var jG=new boa,kG=0;try{var LN=vB.serializedYpcCujLoggingParams;void 0!==LN&&(Bk(jG,1,LN),kG++);var lG=vB.ypcCujLoggingClientPayload;if(lG){var MN=new aoa,NN=0;try{var mG=lG.ypcAcquisitionCujLoggingClientPayload;if(mG){var ON=new $na,PN=0;try{var kv=mG.ypcAcquisitionDebugLoggingParams;if(kv){var lb=new NA,LQ=0;try{var y_a=kv.transactionErrorType;
void 0!==y_a&&(S(lb,1,Tjb[y_a]),LQ++);var z_a=kv.commerceErrorType;void 0!==z_a&&(S(lb,4,Sjb[z_a]),LQ++);var A_a=kv.errorMessage;void 0!==A_a&&(Q(lb,2,A_a),LQ++);var B_a=kv.errorInfo;void 0!==B_a&&(Q(lb,3,B_a),LQ++);var C_a=[LQ===Object.keys(kv).length,lb]}catch(Oa){Z(Oa),C_a=[!1,void 0]}var D_a=C_a;D_a[0]&&(Sj(ON,NA,1,D_a[1]),PN++)}var E_a=[PN===Object.keys(mG).length,ON]}catch(Oa){Z(Oa),E_a=[!1,void 0]}var F_a=E_a;F_a[0]&&(Tj(MN,$na,1,xjb,F_a[1]),NN++)}var G_a=[NN===Object.keys(lG).length,MN]}catch(Oa){Z(Oa),
G_a=[!1,void 0]}var H_a=G_a;H_a[0]&&(Sj(jG,aoa,2,H_a[1]),kG++)}var I_a=[kG===Object.keys(vB).length,jG]}catch(Oa){Z(Oa),I_a=[!1,void 0]}var J_a=I_a;J_a[0]&&(Sj(r,boa,30,J_a[1]),t++)}var K_a=[t===Object.keys(q).length,r]}catch(Oa){Z(Oa),K_a=[!1,void 0]}var L_a=K_a;L_a[0]&&(Sj(b,doa,3,L_a[1]),c++)}var M_a=a.flowType;void 0!==M_a&&(S(b,4,Ajb[M_a]),c++);var N_a=a.flowEventStatus;void 0!==N_a&&(vk(b,5,N_a),c++);var O_a=a.csn;void 0!==O_a&&(Q(b,6,O_a),c++);var P_a=a.can;void 0!==P_a&&(Q(b,7,P_a),c++);var Hpa=
a.cuiAssociations;if(Hpa){var Ipa=new Xy,Q_a=0;try{var R_a=Hpa.association;R_a&&(NO(Ipa.j.bind(Ipa),R_a,DLa),Q_a++);var S_a=[Q_a===Object.keys(Hpa).length,Ipa]}catch(Oa){Z(Oa),S_a=[!1,void 0]}var T_a=S_a;T_a[0]&&(Sj(b,Xy,8,T_a[1]),c++)}return[c===Object.keys(a).length,b]}catch(Oa){return Z(Oa),[!1,void 0]}},
idbQuotaExceeded:function(a){var b=new joa,c=0;try{var d=a.deviceStorageUsageMbytes;void 0!==d&&(xk(b,1,d),c++);var e=a.deviceStorageQuotaMbytes;void 0!==e&&(xk(b,2,e),c++);var f=a.isIframe;void 0!==f&&(uk(b,3,f),c++);var h=a.isSw;void 0!==h&&(uk(b,4,h),c++);var l=a.dbName;void 0!==l&&(Q(b,5,l),c++);var m=a.objectStoreNames;void 0!==m&&(Q(b,6,m),c++);var n=a.transactionCount;void 0!==n&&(vk(b,7,n),c++);var p=a.transactionMode;void 0!==p&&(Q(b,8,p),c++);return[c===Object.keys(a).length,b]}catch(q){return Z(q),
[!1,void 0]}},
idbTransactionAborted:function(a){var b=new koa,c=0;try{var d=a.objectStoreNames;void 0!==d&&(Q(b,1,d),c++);var e=a.hasWindowUnloaded;void 0!==e&&(uk(b,2,e),c++);var f=a.transactionCount;void 0!==f&&(vk(b,3,f),c++);var h=a.transactionDuration;void 0!==h&&(vk(b,4,h),c++);var l=a.dbDuration;void 0!==l&&(vk(b,5,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Z(m),[!1,void 0]}},
streamzIncremented:function(a){var b=new Foa,c=0;try{var d=a.serializedIncrementBatch;void 0!==d&&(Bk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}},
sliEventBatch:function(a){var b=new qA,c=0;try{var d=a.loggedEvents;d&&(NO(b.j.bind(b),d,sMa),c++);var e=a.unloggedEvents;e&&(NO(b.B.bind(b),e,sMa),c++);var f=a.playerClientVersion;void 0!==f&&(yk(b,3,f),c++);var h=a.playerCanaryState;void 0!==h&&(S(b,4,rjb[h]),c++);var l=a.dimensions;if(l){var m=new gna;d=0;try{var n=l.playerClientVersion;void 0!==n&&(yk(m,1,n),d++);var p=l.playerCanaryState;void 0!==p&&(S(m,2,rjb[p]),d++);var q=[d===Object.keys(l).length,m]}catch(r){Z(r),q=[!1,void 0]}l=q;l[0]&&
(Sj(b,gna,5,l[1]),c++)}return[c===Object.keys(a).length,b]}catch(r){return Z(r),[!1,void 0]}},
playbackAssociated:function(a){var b=new RA,c=0;try{var d=a.cpn;void 0!==d&&(Q(b,1,d),c++);var e=a.playbackVe;if(e){var f=PO(e);f[0]&&(Sj(b,tA,2,f[1]),c++)}var h=a.csn;void 0!==h&&(Q(b,3,h),c++);var l=a.queueInfo;if(l){var m=new QA;d=0;try{var n=l.enqueueingVe;if(n){var p=PO(n);p[0]&&(Sj(m,tA,1,p[1]),d++)}var q=l.enqueueingCsn;void 0!==q&&(Q(m,2,q),d++);var r=l.clientEnqueueingTimeMs;void 0!==r&&(xk(m,3,r),d++);var t=[d===Object.keys(l).length,m]}catch(v){Z(v),t=[!1,void 0]}l=t;l[0]&&(Sj(b,QA,4,l[1]),
c++)}return[c===Object.keys(a).length,b]}catch(v){return Z(v),[!1,void 0]}},
autoplayTriggered:function(a){var b=new ina,c=0;try{var d=a.intentional;void 0!==d&&(uk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}},
webPlayerApiCalled:function(a){var b=new mB,c=0;try{var d=a.callerUrl;void 0!==d&&(Q(b,1,d),c++);var e=a.methodName;void 0!==e&&(Q(b,2,e),c++);var f=a.origin;void 0!==f&&(Q(b,3,f),c++);var h=a.playerStyle;void 0!==h&&(Q(b,4,h),c++);var l=a.embeddedPlayerMode;void 0!==l&&(S(b,5,Jib[l]),c++);var m=a.errorCode;void 0!==m&&(vk(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Z(n),[!1,void 0]}},
embedsAdEvent:function(a){var b=new hna,c=0;try{var d=a.eventType;void 0!==d&&(S(b,1,ujb[d]),c++);var e=a.breakType;void 0!==e&&(S(b,2,tjb[e]),c++);var f=a.packageName;void 0!==f&&(Q(b,3,f),c++);var h=a.embedUrl;void 0!==h&&(Q(b,4,h),c++);var l=a.adSource;void 0!==l&&(S(b,5,vjb[l]),c++);var m=a.youtubeHost;void 0!==m&&(Q(b,6,m),c++);var n=a.embeddedPlayerMode;void 0!==n&&(S(b,7,Jib[n]),c++);return[c===Object.keys(a).length,b]}catch(p){return Z(p),[!1,void 0]}},
embedsShouldRequestStorageAccessResult:function(a){var b=new kna,c=0;try{var d=a.result;void 0!==d&&(uk(b,1,d),c++);var e=a.returnsUndefined;void 0!==e&&(uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}},
embedsRequestStorageAccessState:function(a){var b=new jna,c=0;try{var d=a.isCued;void 0!==d&&(uk(b,1,d),c++);var e=a.isAutoplayBlocked;void 0!==e&&(uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}},
embedsRequestStorageAccessFailedState:function(a){var b=new rA,c=0;try{var d=a.state;void 0!==d&&(b.Hc(d),c++);return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}},
heartbeatActionPlayerHalted:function(a){var b=new hoa,c=0;try{var d=a.serializedServerContext;void 0!==d&&(Bk(b,1,d),c++);var e=a.enforcedPolicyToHaltOnNetworkFailure;void 0!==e&&(uk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Z(f),[!1,void 0]}},
heartbeatActionPlayerTransitioned:function(a){var b=new ioa,c=0;try{var d=a.reason;void 0!==d&&(S(b,1,Cjb[d]),c++);var e=a.trigger;void 0!==e&&(S(b,2,Djb[e]),c++);var f=a.serializedServerContext;void 0!==f&&(Bk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Z(h),[!1,void 0]}},
embedsItpWatchLaterResult:function(a){var b=new lna,c=0;try{var d=a.accepted;void 0!==d&&(uk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Z(e),[!1,void 0]}},
html5PlayerHealthEvent:function(a){var b=new OA,c=0;try{var d=a.started;void 0!==d&&(uk(b,1,d),c++);var e=a.stateAtSend;void 0!==e&&(S(b,2,Rjb[e]),c++);var f=a.joinLatencySecs;void 0!==f&&(zk(b,4,f),c++);var h=a.playTimeSecs;void 0!==h&&(zk(b,5,h),c++);var l=a.rebufferTimeSecs;void 0!==l&&(zk(b,6,l),c++);var m=a.playerCanaryType;void 0!==m&&(S(b,7,Fjb[m]),c++);var n=a.isAd;void 0!==n&&(uk(b,8,n),c++);var p=a.liveMode;void 0!==p&&(S(b,9,Qjb[p]),c++);var q=a.isGapless;void 0!==q&&(uk(b,10,q),c++);var r=
a.hasDrm;void 0!==r&&(uk(b,11,r),c++);var t=a.seekCount;void 0!==t&&(vk(b,12,t),c++);var v=a.networkErrorCount;void 0!==v&&(vk(b,13,v),c++);var x=a.nonNetworkErrorCount;void 0!==x&&(vk(b,14,x),c++);var A=a.isServerStitchedDai;void 0!==A&&(uk(b,15,A),c++);var E=a.playerCanaryStage;void 0!==E&&(S(b,16,Ejb[E]),c++);var F=a.encounteredSabrFallback;void 0!==F&&(uk(b,17,F),c++);return[c===Object.keys(a).length,b]}catch(G){return Z(G),[!1,void 0]}},
adsClientStateChange:function(a){var b=new xma,c=0;try{var d=a.cuepointTrigger;if(d){var e=new lz,f=0;try{var h=d.type;void 0!==h&&(S(e,1,djb[h]),f++);var l=d.event;void 0!==l&&(S(e,2,cjb[l]),f++);var m=d.cuepointId;void 0!==m&&(Q(e,3,m),f++);var n=d.totalCueDurationMs;void 0!==n&&(zk(e,4,n),f++);var p=d.playheadTimeMs;void 0!==p&&(zk(e,5,p),f++);var q=d.cueStartTimeMs;void 0!==q&&(zk(e,6,q),f++);var r=d.cuepointReceivedTimeMs;void 0!==r&&(zk(e,7,r),f++);var t=d.contentCpn;void 0!==t&&(Q(e,8,t),f++);
var v=d.externalChannelId;void 0!==v&&(Q(e,9,v),f++);var x=[f===Object.keys(d).length,e]}catch(mc){Z(mc),x=[!1,void 0]}var A=x;A[0]&&(Tj(b,lz,1,I2,A[1]),c++)}var E=a.daiStateTrigger;if(E){var F=new qz,G=0;try{var M=E.contentCpn;void 0!==M&&(Q(F,1,M),G++);var P=E.totalCueDurationMs;void 0!==P&&(zk(F,2,P),G++);var R=E.filledAdsDurationMs;void 0!==R&&(zk(F,3,R),G++);var ba=E.cueStartChange;void 0!==ba&&(S(F,4,jjb[ba]),G++);var na=E.cueDurationChange;void 0!==na&&(S(F,5,hjb[na]),G++);var ta=E.cueDurationChangeReason;
void 0!==ta&&(S(F,6,ijb[ta]),G++);var ka=E.errorType;void 0!==ka&&(S(F,7,kjb[ka]),G++);var va=E.externalChannelId;void 0!==va&&(Q(F,8,va),G++);var ea=E.adClientData;if(ea){var Y=xLa(ea);Y[0]&&(Sj(F,hz,9,Y[1]),G++)}var Ma=[G===Object.keys(E).length,F]}catch(mc){Z(mc),Ma=[!1,void 0]}var y=Ma;y[0]&&(Tj(b,qz,2,I2,y[1]),c++)}var aa=a.daiAdBreakCriticalError;if(aa){var Ua=new mz,cb=0;try{var nb=aa.contentCpn;void 0!==nb&&(Q(Ua,1,nb),cb++);var Na=aa.errorType;void 0!==Na&&(S(Ua,2,kjb[Na]),cb++);var Ta=aa.externalChannelId;
void 0!==Ta&&(Q(Ua,3,Ta),cb++);var gb=aa.msg;void 0!==gb&&(Q(Ua,4,gb),cb++);var qb=aa.cueIdentifier;void 0!==qb&&(Q(Ua,5,qb),cb++);var rb=[cb===Object.keys(aa).length,Ua]}catch(mc){Z(mc),rb=[!1,void 0]}var B=rb;B[0]&&(Tj(b,mz,3,I2,B[1]),c++)}var C=a.daiAdBreakWarning;if(C){var D=new oz,J=0;try{var K=C.contentCpn;void 0!==K&&(Q(D,1,K),J++);var ca=C.errorType;void 0!==ca&&(S(D,2,kjb[ca]),J++);var sa=C.externalChannelId;void 0!==sa&&(Q(D,3,sa),J++);var ia=C.msg;void 0!==ia&&(Q(D,4,ia),J++);var L=C.cueIdentifier;
void 0!==L&&(Q(D,5,L),J++);var X=[J===Object.keys(C).length,D]}catch(mc){Z(mc),X=[!1,void 0]}var ya=X;ya[0]&&(Tj(b,oz,4,I2,ya[1]),c++)}var xa=a.daiAdBreakInfo;if(xa){var Za=new nz,Xa=0;try{var wb=xa.contentCpn;void 0!==wb&&(Q(Za,1,wb),Xa++);var Pb=xa.totalCueDurationMs;void 0!==Pb&&(xk(Za,2,Pb),Xa++);var db=xa.filledAdsDurationMs;void 0!==db&&(xk(Za,3,db),Xa++);var Qb=xa.cueStartChange;void 0!==Qb&&(S(Za,4,jjb[Qb]),Xa++);var gc=xa.cueDurationChange;void 0!==gc&&(S(Za,5,hjb[gc]),Xa++);var zc=xa.cueDurationChangeReason;
void 0!==zc&&(S(Za,6,ijb[zc]),Xa++);var Yb=xa.externalChannelId;void 0!==Yb&&(Q(Za,7,Yb),Xa++);var uc=xa.cueIdentifier;void 0!==uc&&(Q(Za,8,uc),Xa++);var Wc=xa.infoType;void 0!==Wc&&(S(Za,9,ljb[Wc]),Xa++);var Ic=xa.msg;void 0!==Ic&&(Q(Za,10,Ic),Xa++);var Jc=xa.filledAdCount;void 0!==Jc&&(vk(Za,11,Jc),Xa++);var Kc=[Xa===Object.keys(xa).length,Za]}catch(mc){Z(mc),Kc=[!1,void 0]}var Ub=Kc;Ub[0]&&(Tj(b,nz,5,I2,Ub[1]),c++)}var ud=a.visibilityErrorDebugInfo;if(ud){var vd=new wma,ac=0;try{var Wb=ud.elementName;
void 0!==Wb&&(Q(vd,1,Wb),ac++);var Lc=ud.contentVideoPlaybackEventId;void 0!==Lc&&(Q(vd,2,Lc),ac++);var Gb=ud.errorList;void 0!==Gb&&(Q(vd,3,Gb),ac++);var Zc=ud.htmlDump;void 0!==Zc&&(Q(vd,4,Zc),ac++);var wd=[ac===Object.keys(ud).length,vd]}catch(mc){Z(mc),wd=[!1,void 0]}var Nb=wd;Nb[0]&&(Tj(b,wma,6,I2,Nb[1]),c++)}var qe=a.playbackTimelineAdBreakStateTrigger;if(qe){var Od=new uma,Pd=0;try{var Le=qe.cueIdentifier;void 0!==Le&&(Q(Od,1,Le),Pd++);var Ae=qe.timestampUnixEpochSec;void 0!==Ae&&(xk(Od,2,
Ae),Pd++);var Gd=qe.adRequestState;void 0!==Gd&&(S(Od,3,ejb[Gd]),Pd++);var Ef=qe.segmentState;void 0!==Ef&&(S(Od,4,fjb[Ef]),Pd++);var Xe=qe.timestampUnixEpochMs;void 0!==Xe&&(xk(Od,5,Xe),Pd++);var ce=[Pd===Object.keys(qe).length,Od]}catch(mc){Z(mc),ce=[!1,void 0]}var Ff=ce;Ff[0]&&(Tj(b,uma,7,I2,Ff[1]),c++)}var de=a.extraLongAdBreakDebugInfo;if(de){var re=new tma,Hd=0;try{var xd=de.contentVideoPlaybackEventId;void 0!==xd&&(Q(re,1,xd),Hd++);var hd=de.adPlacementKindCuepointInitiatedCueRange;if(hd){var Qd=
ELa(hd);Qd[0]&&(Sj(re,sz,2,Qd[1]),Hd++)}var yd=de.adPlacementConfigImpliedCueRange;if(yd){var lf=ELa(yd);lf[0]&&(Sj(re,sz,3,lf[1]),Hd++)}var Tf=de.adPlacementKindMillisecondsInitiatedCueRange;if(Tf){var se=ELa(Tf);se[0]&&(Sj(re,sz,4,se[1]),Hd++)}var nc=de.cueIdentifier;void 0!==nc&&(Q(re,5,nc),Hd++);var Me=[Hd===Object.keys(de).length,re]}catch(mc){Z(mc),Me=[!1,void 0]}var bh=Me;bh[0]&&(Tj(b,tma,8,I2,bh[1]),c++)}var Qh=a.comparePyvAdTagInfo;if(Qh){var Bi=new sma,Ci=0;try{var Jf=Qh.pyvAdTagUrlFromPlayer;
void 0!==Jf&&(Q(Bi,1,Jf),Ci++);var af=Qh.pyvAdTagUrlFromWatchNext;void 0!==af&&(Q(Bi,2,af),Ci++);var bf=[Ci===Object.keys(Qh).length,Bi]}catch(mc){Z(mc),bf=[!1,void 0]}var Rh=bf;Rh[0]&&(Tj(b,sma,9,I2,Rh[1]),c++)}var qc=a.driftRecoveryInfo;if(qc){var vc=new rz,Ec=0;try{var Gg=qc.contentCpn;void 0!==Gg&&(Q(vc,1,Gg),Ec++);var Pc=qc.cueIdentifier;void 0!==Pc&&(Q(vc,2,Pc),Ec++);var cf=qc.driftRecoveryMs;void 0!==cf&&(xk(vc,3,cf),Ec++);var Xf=qc.breakDurationMs;void 0!==Xf&&(xk(vc,4,Xf),Ec++);var Di=qc.driftFromHeadMs;
void 0!==Di&&(xk(vc,5,Di),Ec++);var Ei=qc.appliedDriftRecoveryMs;void 0!==Ei&&(xk(vc,6,Ei),Ec++);var Sh=qc.destinationMs;void 0!==Sh&&(xk(vc,7,Sh),Ec++);var Hg=qc.adClientData;if(Hg){var Kf=xLa(Hg);Kf[0]&&(Sj(vc,hz,8,Kf[1]),Ec++)}var fh=[Ec===Object.keys(qc).length,vc]}catch(mc){Z(mc),fh=[!1,void 0]}var lj=fh;lj[0]&&(Tj(b,rz,10,I2,lj[1]),c++)}var nf=a.adsClientEvent;if(nf){var df=new rma,ng=0;try{var Fi=nf.eventType;void 0!==Fi&&(S(df,1,bjb[Fi]),ng++);var Th=nf.adClientData;if(Th){var of=xLa(Th);
of[0]&&(Sj(df,hz,3,of[1]),ng++)}var gh=nf.serializedAdServingData;void 0!==gh&&(Bk(df,4,gh),ng++);var hh=nf.eventOrder;void 0!==hh&&(vk(df,5,hh),ng++);var Gi=nf.serializedSlotAdServingData;void 0!==Gi&&(Bk(df,6,Gi),ng++);var De=nf.errorInfo;if(De){var ef=new kz,Jd=0;try{var mj=De.errorType;void 0!==mj&&(S(ef,1,ajb[mj]),Jd++);var ff=De.errorMessage;void 0!==ff&&(S(ef,2,$ib[ff]),Jd++);var pf=[Jd===Object.keys(De).length,ef]}catch(mc){Z(mc),pf=[!1,void 0]}var Pe=pf;Pe[0]&&(Sj(df,kz,7,Pe[1]),ng++)}var og=
[ng===Object.keys(nf).length,df]}catch(mc){Z(mc),og=[!1,void 0]}var Ig=og;Ig[0]&&(Tj(b,rma,11,I2,Ig[1]),c++)}var Ee=a.daiAdStateTracking;if(Ee){var pg=new pz,Lf=0;try{var Uh=Ee.eventType;void 0!==Uh&&(S(pg,1,gjb[Uh]),Lf++);var Zj=Ee.contentCpn;void 0!==Zj&&(Q(pg,2,Zj),Lf++);var Rl=Ee.externalChannelId;void 0!==Rl&&(Q(pg,3,Rl),Lf++);var Rk=Ee.adCpn;void 0!==Rk&&(Q(pg,4,Rk),Lf++);var Sl=Ee.adCount;void 0!==Sl&&(xk(pg,5,Sl),Lf++);var Tl=Ee.msg;void 0!==Tl&&(Q(pg,6,Tl),Lf++);var ak=[Lf===Object.keys(Ee).length,
pg]}catch(mc){Z(mc),ak=[!1,void 0]}var qf=ak;qf[0]&&(Tj(b,pz,12,I2,qf[1]),c++)}var Wd=a.adTrimmingInfo;if(Wd){var Xd=new iz,rf=0;try{var ih=Wd.contentCpn;void 0!==ih&&(Q(Xd,1,ih),rf++);var Ul=Wd.cueIdentifier;void 0!==Ul&&(Q(Xd,2,Ul),rf++);var Sk=Wd.adMediaInfo;Sk&&(NO(Xd.j.bind(Xd),Sk,FLa),rf++);var nj=[rf===Object.keys(Wd).length,Xd]}catch(mc){Z(mc),nj=[!1,void 0]}var oj=nj;oj[0]&&(Tj(b,iz,13,I2,oj[1]),c++)}var qg=a.adsAttributionEvent;if(qg){var Yf=new jz,bk=0;try{var Tk=qg.errorCode;void 0!==
Tk&&(S(Yf,1,mjb[Tk]),bk++);var Vl=qg.attributionStep;void 0!==Vl&&(S(Yf,2,njb[Vl]),bk++);var jh=qg.innerErrorDomain;void 0!==jh&&(Q(Yf,3,jh),bk++);var Vh=qg.innerErrorCode;void 0!==Vh&&(xk(Yf,4,Vh),bk++);var Hi=[bk===Object.keys(qg).length,Yf]}catch(mc){Z(mc),Hi=[!1,void 0]}var pj=Hi;pj[0]&&(Tj(b,jz,14,I2,pj[1]),c++)}var kh=a.playerDebugData;if(kh){var lh=new tz,sf=0;try{var Wl=kh.pmlSignal;void 0!==Wl&&(uk(lh,1,Wl),sf++);var Xl=kh.contentCpn;void 0!==Xl&&(Q(lh,2,Xl),sf++);var Yl=[sf===Object.keys(kh).length,
lh]}catch(mc){Z(mc),Yl=[!1,void 0]}var Uk=Yl;Uk[0]&&(Tj(b,tz,15,I2,Uk[1]),c++)}var Qe=a.sourceRegistrationEvent;if(Qe){var Mf=new vma,tf=0;try{var Zl=Qe.eventType;void 0!==Zl&&(S(Mf,1,ojb[Zl]),tf++);var Vk=[tf===Object.keys(Qe).length,Mf]}catch(mc){Z(mc),Vk=[!1,void 0]}var Wk=Vk;Wk[0]&&(Tj(b,vma,16,I2,Wk[1]),c++)}return[c===Object.keys(a).length,b]}catch(mc){return Z(mc),[!1,void 0]}},
offlineTransferStatusChanged:GKa,offlineStateSnapshot:function(a){var b=new lB,c=0;try{var d=a.offlineVideos;d&&(NO(b.B.bind(b),d,iLa),c++);var e=a.offlinePlaylists;e&&(NO(b.j.bind(b),e,kLa),c++);var f=a.freeDiskSpaceBytes;void 0!==f&&(xk(b,3,f),c++);var h=a.lastOfflineUsageTimeMs;void 0!==h&&(xk(b,4,h),c++);var l=a.lastOfflinePlaybackTimeMs;void 0!==l&&(xk(b,5,l),c++);var m=a.lastOfflineSaveTimeMs;void 0!==m&&(xk(b,6,m),c++);var n=a.lastOfflineDownloadSuccessTimeMs;void 0!==n&&(xk(b,7,n),c++);var p=
a.isBatteryCharging;void 0!==p&&(uk(b,8,p),c++);var q=a.detailedNetworkType;void 0!==q&&(S(b,9,ZO[q]),c++);var r=a.batteryLevelPercentage;void 0!==r&&(vk(b,10,r),c++);var t=a.isPostMigrationState;void 0!==t&&(uk(b,11,t),c++);var v=a.offlineCacheVerificationFailure;if(v){var x=new fB;d=0;try{var A=v.numUncachedVideos;void 0!==A&&(wk(x,1,A),d++);var E=v.numTotalCompletedVideos;void 0!==E&&(wk(x,2,E),d++);var F=v.uncachedVideos;F&&(NO(x.j.bind(x),F,nLa),d++);var G=[d===Object.keys(v).length,x]}catch(ea){Z(ea),
G=[!1,void 0]}v=G;v[0]&&(Sj(b,fB,12,v[1]),c++)}var M=a.additionalOfflineClientState;if(M){var P=new xoa;v=0;try{var R=M.mainAppAdditionalOfflineClientState;if(R){var ba=new hB;G=0;try{var na=R.downloadRecsVideos;na&&(NO(ba.j.bind(ba),na,oLa),G++);var ta=R.smartDownloadVideos;ta&&(NO(ba.B.bind(ba),ta,pLa),G++);var ka=[G===Object.keys(R).length,ba]}catch(ea){Z(ea),ka=[!1,void 0]}R=ka;R[0]&&(Sj(P,hB,1,R[1]),v++)}var va=[v===Object.keys(M).length,P]}catch(ea){Z(ea),va=[!1,void 0]}M=va;M[0]&&(Sj(b,xoa,
13,M[1]),c++)}return[c===Object.keys(a).length,b]}catch(ea){return Z(ea),[!1,void 0]}}},Ocb={adNotify:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;
Tj(d,jma,184,mF,a);c?kF("adNotify",d,c,b):lF("adNotify",d,b)},
biscottiBasedDetection:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,lA,439,mF,a);c?kF("biscottiBasedDetection",d,c,b):lF("biscottiBasedDetection",d,b)},
adNotifyFilled:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,ima,300,mF,a);c?kF("adNotifyFilled",d,c,b):lF("adNotifyFilled",d,b)},
idbTransactionEnded:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,PA,352,mF,a);c?kF("idbTransactionEnded",d,c,b):lF("idbTransactionEnded",d,b)},
idbUnexpectedlyClosed:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,loa,348,mF,a);c?kF("idbUnexpectedlyClosed",d,c,b):lF("idbUnexpectedlyClosed",d,b)},
flowEvent:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,foa,304,mF,a);c?kF("flowEvent",d,c,b):lF("flowEvent",d,b)},
idbQuotaExceeded:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,joa,351,mF,a);c?kF("idbQuotaExceeded",d,c,b):lF("idbQuotaExceeded",d,b)},
idbTransactionAborted:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,koa,353,mF,a);c?kF("idbTransactionAborted",d,c,b):lF("idbTransactionAborted",d,b)},
streamzIncremented:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,Foa,126,mF,a);c?kF("streamzIncremented",d,c,b):lF("streamzIncremented",d,b)},
sliEventBatch:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,qA,344,mF,a);c?kF("sliEventBatch",d,c,b):lF("sliEventBatch",d,b)},
playbackAssociated:gva,autoplayTriggered:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,ina,209,mF,a);c?kF("autoplayTriggered",d,c,b):lF("autoplayTriggered",d,b)},
webPlayerApiCalled:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,mB,76,mF,a);c?kF("webPlayerApiCalled",d,c,b):lF("webPlayerApiCalled",d,b)},
embedsAdEvent:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,hna,327,mF,a);c?kF("embedsAdEvent",d,c,b):lF("embedsAdEvent",d,b)},
embedsShouldRequestStorageAccessResult:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,kna,251,mF,a);c?kF("embedsShouldRequestStorageAccessResult",d,c,b):lF("embedsShouldRequestStorageAccessResult",d,b)},
embedsRequestStorageAccessState:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,jna,256,mF,a);c?kF("embedsRequestStorageAccessState",d,c,b):lF("embedsRequestStorageAccessState",d,b)},
embedsRequestStorageAccessFailedState:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,rA,257,mF,a);c?kF("embedsRequestStorageAccessFailedState",d,c,b):lF("embedsRequestStorageAccessFailedState",d,b)},
heartbeatActionPlayerHalted:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,hoa,332,mF,a);c?kF("heartbeatActionPlayerHalted",d,c,b):lF("heartbeatActionPlayerHalted",d,b)},
heartbeatActionPlayerTransitioned:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,ioa,330,mF,a);c?kF("heartbeatActionPlayerTransitioned",d,c,b):lF("heartbeatActionPlayerTransitioned",d,b)},
embedsItpWatchLaterResult:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,lna,266,mF,a);c?kF("embedsItpWatchLaterResult",d,c,b):lF("embedsItpWatchLaterResult",d,b)},
html5PlayerHealthEvent:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,OA,293,mF,a);c?kF("html5PlayerHealthEvent",d,c,b):lF("html5PlayerHealthEvent",d,b)},
adsClientStateChange:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,xma,197,mF,a);c?kF("adsClientStateChange",d,c,b):lF("adsClientStateChange",d,b)},
offlineTransferStatusChanged:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,BA,2,mF,a);c?kF("offlineTransferStatusChanged",d,c,b):lF("offlineTransferStatusChanged",d,b)},
offlineStateSnapshot:function(a,b,c){var d=g.PB("jspb_sparse_encoded_pivot")?new nB([{}]):new nB;Tj(d,lB,22,mF,a);c?kF("offlineStateSnapshot",d,c,b):lF("offlineStateSnapshot",d,b)}};eP.prototype.qx=function(a){this.client=a};
eP.prototype.j=function(){this.clear();this.csn=g.qF()};
eP.prototype.clear=function(){this.C.clear();this.B.clear();this.D.clear();this.csn=null};gP.prototype.qx=function(a){g.xB(fP().qx).bind(fP())(a)};
gP.prototype.clear=function(){g.xB(fP().clear).bind(fP())()};g.k=hP.prototype;g.k.qx=function(a){this.client=a};
g.k.eW=function(a,b){var c=this;b=void 0===b?{}:b;g.xB(function(){var d,e,f,h=(null==(d=g.U(null==a?void 0:a.commandMetadata,g.H2))?void 0:d.rootVe)||(null==(e=g.U(null==a?void 0:a.commandMetadata,Yib))?void 0:null==(f=e.screenVisualElement)?void 0:f.uiType);if(h){d=g.U(null==a?void 0:a.commandMetadata,kkb);if(null==d?0:d.parentTrackingParams){var l=g.oF(d.parentTrackingParams);if(d.parentCsn)var m=d.parentCsn}else b.clickedVisualElement?l=b.clickedVisualElement:a.clickTrackingParams&&(l=g.oF(a.clickTrackingParams));
a:{d=g.U(a,g.hT);e=g.U(a,$jb);if(d){if(e=lIa(d,"VIDEO")){d={token:e,videoId:d.videoId};break a}}else if(e&&(d=lIa(e,"PLAYLIST"))){d={token:d,playlistId:e.playlistId};break a}d=void 0}b=Object.assign({},{cttAuthInfo:d,parentCsn:m},b);if(g.PB("expectation_logging")){var n;b.loggingExpectations=(null==(n=g.U(null==a?void 0:a.commandMetadata,Yib))?void 0:n.loggingExpectations)||void 0}jP(c,h,l,b)}else g.uF(new g.QC("Error: Trying to create a new screen without a rootVeType",a))})()};
g.k.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.qF(void 0===c?0:c))?(kwa(this.client,c,g.oF(a),b),b=!0):b=!1:b=!1;return b};
g.k.stateChanged=function(a,b,c){this.visualElementStateChanged(g.oF(a),b,void 0===c?0:c)};
g.k.visualElementStateChanged=function(a,b,c){c=void 0===c?0:c;0===c&&this.B.has(c)?this.Z.push([a,b]):BMa(this,a,b,c)};mP.getInstance=function(){var a=g.Wa("ytglobal.storage_");a||(a=new mP,g.Va("ytglobal.storage_",a));return a};
mP.prototype.estimate=function(){var a,b,c;return g.H(function(d){a=navigator;return(null==(b=a.storage)?0:b.estimate)?d.return(a.storage.estimate()):(null==(c=a.webkitTemporaryStorage)?0:c.queryUsageAndQuota)?d.return(DMa()):d.return()})};
g.Va("ytglobal.storageClass_",mP);Jqa.prototype.tE=function(a){this.handleError(a)};
Jqa.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.PB("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.PB("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":FMa(this,b);break;case "TRANSACTION_ENDED":this.C&&Math.random()<=g.QB("ytidb_transaction_ended_event_rate_limit_transaction",.1)&&this.j("idbTransactionEnded",
b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},b,{hasWindowUnloaded:this.B}),this.j("idbTransactionAborted",a)}};var i3={},bSa=g.KD("yt-player-local-media",{jr:(i3.index={cn:2},i3.media={cn:2},i3.captions={cn:5},i3),shared:!1,upgrade:function(a,b){b(2)&&(g.qD(a,"index"),g.qD(a,"media"));b(5)&&g.qD(a,"captions");b(6)&&(rD(a,"metadata"),rD(a,"playerdata"))},
version:5});var Alb={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},j3;a:{var k3=g.pc();k3=k3.toLowerCase();if(g.ic(k3,"android")){var Blb=k3.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Blb){var Clb=parseFloat(Blb[1]);if(100>Clb){j3=Clb;break a}}var Dlb=k3.match("("+Object.keys(Alb).join("|")+")");j3=Dlb?Alb[Dlb[0]]:0}else j3=void 0}var YR=j3,YQa=0<=YR;var X$a=window;var GMa=Td(function(){var a,b;return null==(b=(a=window).matchMedia)?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var IMa;g.nP=new gI;IMa=0;var oP={wJ:function(a){a.reverse()},
NW:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
ww:function(a,b){a.splice(0,b)}};var Tbb=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var VQa={cja:"adunit",Xva:"detailpage",Lwa:"editpage",Twa:"embedded",OMa:"leanback",k1a:"previewpage",u2a:"profilepage",ZU:"unplugged",r0a:"playlistoverview",h9a:"sponsorshipsoffer",V5a:"shortspage",QFa:"handlesclaiming",BHa:"immersivelivepage",pua:"creatormusic",CHa:"immersivelivepreviewpage"};var ySa={kwa:1,nxa:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var zR=cNa()?!0:"function"===typeof window.fetch&&window.ReadableStream&&window.AbortController&&!g.GD?!0:!1;g.sP.prototype.getLanguageInfo=function(){return this.uc};
g.sP.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");1<a.length&&(this.xtags=a[1])}return this.xtags};
g.sP.prototype.toString=function(){return this.uc.name};
g.sP.prototype.getLanguageInfo=g.sP.prototype.getLanguageInfo;tP.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.j};
tP.prototype.compose=function(a){if(a.C&&vP(a))return WS;if(a.C||vP(this))return a;if(this.C||vP(a))return this;var b=this.B&&a.B?Math.max(this.B,a.B):this.B||a.B,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);return b===this.B&&c===this.j?this:new tP(b,c,!1,c===this.j?this.reason:a.reason)};
tP.prototype.D=function(a){return a.video?eNa(this,a.video.quality):!1};
var Elb=g.uP("auto","hd1080",!1,"l"),h$a=g.uP("auto","large",!1,"l"),WS=g.uP("auto","auto",!1,"p");zP.prototype.Ps=function(a){a=a||WS;for(var b=g.ot(this.videoInfos,function(h){return a.D(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].video;
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
zP.prototype.wD=function(a){a=a||WS;return g.ot(this.videoInfos,function(b){return a.D(b)})};
zP.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var wNa=new Set(["356"]);g.w(fNa,g.I);fNa.prototype.xa=function(){g.I.prototype.xa.call(this)};g.JP.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.JP.prototype.get=function(a){KP(this);return this.j[a]||null};
g.JP.prototype.Ue=function(){this.url||(this.url=DNa(this));return this.url};
g.JP.prototype.clone=function(){var a=new g.JP(this.B,this.D);a.scheme=this.scheme;a.path=this.path;a.C=this.C;a.j=g.pd(this.j);a.url=this.url;return a};
var CNa=[gma];g.k=g.QP.prototype;g.k.XL=function(a){this.segments.push(a)};
g.k.Fn=function(a){return!!this.un(a)};
g.k.getDuration=function(a){return(a=this.un(a))?a.duration:0};
g.k.QW=function(a){return this.getDuration(a)};
g.k.xn=function(){return this.segments.length?this.segments[0].Pa:-1};
g.k.jf=function(a){return(a=this.un(a))?a.ingestionTime:NaN};
g.k.Hd=function(){return this.segments.length?this.segments[this.segments.length-1].Pa:-1};
g.k.mP=function(a){return this.Hd()===a&&!this.B&&0<=a};
g.k.Us=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.Rd=function(){return this.segments[0].startTime};
g.k.Ez=function(){return this.segments.length};
g.k.im=function(){return 0};
g.k.Fi=function(a){return(a=this.vz(a))?a.Pa:-1};
g.k.kI=function(a){return(a=this.un(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.un(a))?a.startTime:0};
g.k.VH=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.mI=da(3);g.k.isLoaded=function(){return 0<this.segments.length};
g.k.un=function(a){if(this.j&&this.j.Pa===a)return this.j;a=g.Tb(this.segments,new PP(a,0,0,0,""),function(b,c){return b.Pa-c.Pa});
return this.j=0<=a?this.segments[a]:null};
g.k.vz=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.Tb(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.Bb(this.segments).endTime:0,c=a[0].Pa-this.Hd();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.YW=function(){return 0};HNa.prototype.skip=function(a){this.j+=a};var l3={},Flb=(l3.predictStart="predictStart",l3.start="start",l3["continue"]="continue",l3.stop="stop",l3),LNa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};ZP.prototype.UD=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"])};
ZP.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};iQ.prototype.Ln=function(){var a=this.pos;this.pos=0;var b=!1;try{mQ(this,440786851)&&(this.pos=0,mQ(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.uF(c);else throw c;}this.pos=a;return b};vQ.prototype.set=function(a,b){this.base.get(a);this.j[a]=b;this.url=""};
vQ.prototype.get=function(a){return this.j[a]||this.base.get(a)};
vQ.prototype.Ue=function(){this.url||(this.url=jOa(this));return this.url};wQ.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};AQ.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
AQ.prototype.Hg=function(){return!!this.j.info.video};
AQ.prototype.Qd=function(){var a=FQ(this),b="";g.bd(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};GQ.prototype.xz=function(){return this.j?this.j.Ue():""};
GQ.prototype.kp=function(){return CQ(this.eb[0])};
GQ.prototype.Kn=function(){return 6===this.eb[0].type};
GQ.prototype.Uk=function(a,b){this.resource.Uk(a,b);if(this.j){this.j=kOa(a,b);b=g.u(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.j.set(c.value,null)}this.requestId=a.get("req_id")};
var COa=!1;MQ.prototype.aj=function(){return this.B.get("cpn")||""};
MQ.prototype.Uk=function(a,b){a.base===this.j&&(this.j=kOa(a,b));a.base===this.D&&(this.D=kOa(a,b))};NQ.prototype.wg=function(){return!!this.j&&this.index.isLoaded()};
NQ.prototype.aA=function(){return!1};
NQ.prototype.fU=function(a){return[a]};
NQ.prototype.gB=function(a){return[a]};g.w(OQ,NQ);g.k=OQ.prototype;g.k.tm=function(){return!1};
g.k.Xv=function(){return!0};
g.k.fE=function(){return!1};
g.k.aA=function(){return!this.G};
g.k.Gv=function(){return new GQ([new AQ(1,this,this.initRange,"getMetadataRequestInfo")],this.G)};
g.k.Zx=function(){return null};
g.k.iC=function(a){this.Zr(a);return this.Xv()&&a.B&&!a.mf?new GQ([new AQ(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Pa,a.startTime,a.duration,a.Zb+a.B,NaN,!0)],this.index.kI(a.Pa)):this.gs(pOa(a),!1)};
g.k.Jq=function(a,b){b=void 0===b?!1:b;a=this.index.Fi(a);b&&(a=Math.min(this.index.Hd(),a+1));return this.gs(a,!0)};
g.k.FO=function(a){hPa(a)};
g.k.Zr=function(a){return 0===a.B?!0:this.index.Hd()>a.Pa&&this.index.xn()<=a.Pa+1};
g.k.update=function(a,b,c){this.index.append(a);GNa(this.index,c);this.index.B=b};
g.k.wg=function(){return this.aA()?!0:NQ.prototype.wg.call(this)};
g.k.gs=function(a,b){var c=this.index.kI(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.Pb?this.info.Pb*e:1E3;return new GQ([new AQ(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
g.k.mO=function(){return this.aA()?0:this.initRange.length};
g.k.VQ=function(){return!1};RQ.prototype.update=function(a){var b=void 0;this.B&&(b=this.B);var c=new RQ,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+PQ(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+PQ(a,"startNumber")||0;c.D=f;var l=b?b.startSecs+b.yh:0,m=Date.parse(OOa(PQ(a,"yt:segmentIngestTime")))/1E3;c.G="SegmentTemplate"===a.parentElement.tagName;c.G&&(c.N=PQ(a,"media"));a=b?h-b.Pa:1;c.K=0<a?0:-a+1;a=g.u(d);for(d=a.next();!d.done;d=a.next()){d=d.value;for(var n=+d.getAttribute("d")/e,p=(+d.getAttribute("yt:sid")||
0)/e,q=+d.getAttribute("r")||0,r=0;r<=q;r++)if(b&&h<=b.Pa)h++;else{var t=new MOa(h,l,n,m+p,f);c.j.push(t);var v=d;var x=e,A=t.startSecs;t=v.getAttribute("yt:cuepointTimeOffset");var E=v.getAttribute("yt:cuepointDuration");if(t&&E){t=Number(t);A=-t/x+A;x=Number(E)/x;E=v.getAttribute("yt:cuepointContext")||null;var F=v.getAttribute("yt:cuepointIdentifier")||"";v=v.getAttribute("yt:cuepointEvent")||"";v=new XP(A,x,E,F,Flb[v]||"unknown",t)}else v=null;v&&c.C.push(v);h++;l+=n;f+=n;m+=n+p}}c.j.length&&
(c.B=g.Bb(c.j))}this.K=c.K;this.B=c.B||this.B;g.Mb(this.j,c.j);g.Mb(this.C,c.C);this.G=c.G;this.N=c.N;-1===this.D&&(this.D=c.getStreamTimeOffset())};
RQ.prototype.getStreamTimeOffset=function(){return-1===this.D?0:this.D};g.w(WOa,g.QP);g.k=WOa.prototype;g.k.Fn=function(a,b){a=SQ(this,a);return 0<=a&&(b||!this.segments[a].pending)};
g.k.xn=function(){return this.dn?this.segments.length?this.vz(this.Rd()).Pa:-1:g.QP.prototype.xn.call(this)};
g.k.Rd=function(){if(this.ye)return 0;if(!this.dn)return g.QP.prototype.Rd.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Bb(this.segments).endTime-this.xq,0);return 0<this.qf&&this.vz(a).Pa<this.qf?this.un(this.qf).startTime:a};
g.k.Us=function(){if(!this.segments.length)return g.QP.prototype.Us.call(this);var a=this.Hd();if(!this.dn||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 PP(a,Math.max(0,b.startTime-(b.Pa-a)*this.Nj),this.Nj,0,"sq/"+a,void 0,void 0,!0)}return this.ye?Math.min(this.xq,a.endTime):a.endTime};
g.k.Ez=function(){return this.dn?this.segments.length?this.Hd()-this.xn()+1:0:g.QP.prototype.Ez.call(this)};
g.k.Hd=function(){var a=Math.min(this.Ji,Math.max(g.QP.prototype.Hd.call(this),this.Ep)),b=1E3*this.xq;b=0<this.Qq&&this.Qq<b;this.ye&&0<this.xq&&0<this.Ep&&!b&&(b=this.vz(this.xq))&&(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.XL=function(a){var b=SQ(this,a.Pa);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.qA&&0===a.Pa%(300/this.Nj)){var c=this.segments[0].Pa,d=Math.floor(this.qA/this.Nj);a=a.Pa-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.YH=function(){return this.Ep};
g.k.vz=function(a){if(!this.dn)return g.QP.prototype.vz.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.Nj));else if(a>=b.endTime)b=b.Pa+Math.floor((a-b.endTime)/this.Nj+1);else{b=Vb(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.un(b)};
g.k.un=function(a){if(!this.dn)return g.QP.prototype.un.call(this,a);if(!this.segments.length)return null;var b=SQ(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Nj;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 PP(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.w(TQ,OQ);g.k=TQ.prototype;g.k.fE=function(){return!0};
g.k.wg=function(){return!0};
g.k.Zr=function(a){return this.Xv()&&a.B&&!a.mf||!a.j.index.mP(a.Pa)};
g.k.Gv=function(){};
g.k.Jq=function(a,b){return"number"!==typeof a||isFinite(a)?OQ.prototype.Jq.call(this,a,void 0===b?!1:b):new GQ([new AQ(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Mj,void 0,this.Mj*this.info.Pb)],"")};
g.k.gs=function(a,b){var c=void 0===c?!1:c;if(this.index.Fn(a))return OQ.prototype.gs.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.Mj*this.info.Pb),f=this.Mj;b&&(f=e=0);return new GQ([new AQ(c?7:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],0<=a?"sq/"+a:"")};g.w(UQ,NQ);g.k=UQ.prototype;g.k.tm=function(){return!1};
g.k.Xv=function(){return!1};
g.k.fE=function(){return!1};
g.k.Gv=function(){return new GQ([new AQ(1,this,void 0,"otfInit")],this.G)};
g.k.Zx=function(){return null};
g.k.iC=function(a){this.Zr(a);return XOa(this,pOa(a),!1)};
g.k.Jq=function(a,b){b=void 0===b?!1:b;a=this.index.Fi(a);b&&(a=Math.min(this.index.Hd(),a+1));return XOa(this,a,!0)};
g.k.FO=function(a){1===a.info.type&&(this.j||(this.j=YHa(a.j)),a.B&&"http://youtube.com/streaming/otf/durations/112015"===a.B.uri&&YOa(this,a.B))};
g.k.Zr=function(a){return 0===a.B?!0:this.index.Hd()>a.Pa&&this.index.xn()<=a.Pa+1};
g.k.mO=function(){return 0};
g.k.VQ=function(){return!1};g.k=g.iPa.prototype;g.k.Fn=function(a){return a<=this.Hd()};
g.k.im=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.Fh[a]/this.j};
g.k.VH=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.mI=da(2);g.k.jf=function(){return NaN};
g.k.getDuration=function(a){a=this.QW(a);return 0<=a?a/this.j:-1};
g.k.QW=function(a){return a+1<this.count||this.B?this.Fh[a+1]-this.Fh[a]:-1};
g.k.xn=function(){return 0};
g.k.Hd=function(){return this.count-1};
g.k.mP=function(a){return this.Hd()===a&&0<=a};
g.k.Us=function(){return this.B?this.Fh[this.count]/this.j:NaN};
g.k.Rd=function(){return 0};
g.k.Ez=function(){return this.count};
g.k.kI=function(){return""};
g.k.Fi=function(a){a=g.Tb(this.Fh.subarray(0,this.count),a*this.j);return 0<=a?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return 0<=this.Hd()};
g.k.YW=function(a,b){if(a>=this.Hd())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.Hd()&&b>this.getStartTime(a);a++)c=Math.max(c,jPa(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.Fh;this.Fh=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.Fh[a]=c[a]};
g.k.cap=function(a,b){kPa(this);this.B=!0;this.Fh[this.count]=b;this.offsets[this.count]=a};g.w(ZQ,NQ);g.k=ZQ.prototype;g.k.Gv=function(a,b){var c=new AQ(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),d=[new AQ(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 AQ(4,this,yQ(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)));return new GQ(d)};
g.k.FO=function(a){if(1===a.info.type){if(this.j)return;this.j=YHa(a.j)}else if(2===a.info.type){if(this.G||0<=this.index.Hd())return;if(g.TK(this.info)){var b=this.index,c=WQ(a);a=a.info.range.start;var d=g.aQ(c,0,1936286840);c=WNa(d);b.j=c.Lr;var e=c.u6;b.offsets[0]=c.N6+a+d.size;b.Fh[0]=e;b.B=!0;a=c.kS.length;for(d=0;d<a;d++){e=b;var f=c.Nba[d],h=c.kS[d];e.count++;kPa(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.Fh[e.count]=e.Fh[e.count-1]+h}}else this.G=WQ(a)}if(this.info.Ve()&&this.j&&this.G){c=
new DataView(this.j.buffer);b=this.index;d=this.G;a=this.indexRange.end;e=new iQ(c);c=e;e=c.pos;f={A0:1E6,B0:1E9,duration:0,M_:0,FR:0};if(mQ(c,408125543))if(f.M_=nQ(c,!0),f.FR=c.start+c.pos,mQ(c,357149030)){for(h=lQ(c);!jQ(h);){var l=nQ(h,!1);2807729===l?f.A0=pQ(h):2807730===l?f.B0=pQ(h):17545===l?f.duration=rQ(h):qQ(h)}c.pos=e;c=f}else c.pos=e,c=null;else c.pos=e,c=null;if(null!==c){b.j=c.B0/c.A0;e=new iQ(d);d=e;h=c.FR;e=d.pos;f=[];if(mQ(d,475249515)){for(l=lQ(d);mQ(l,187);){var m=lQ(l);if(mQ(m,
179)){var n=pQ(m);if(mQ(m,183)){m=lQ(m);for(var p=h;mQ(m,241);)p=pQ(m)+h;f.push({pH:p,d6:n})}}}if(0<f.length&&a===f[0].pH)for(a=0;a<f.length;a++)f[a].pH+=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.pH,f=f.d6,kPa(d),d.offsets[d.count]=e,d.Fh[d.count]=f,d.count++;b.cap(c.M_+c.FR,c.duration)}}this.G=null}};
g.k.JD=function(a,b,c,d){for(var e=[],f=a;f<=this.index.Hd();f++){var h=yQ(this.index.im(f),jPa(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 AQ(3,this,h,"getRequestInfoForRange",f,l,m,n,p,void 0,void 0,d));if(h.start+n+p>=b+c)break}e.length||g.tF(new g.QC("b189619593",""+a,""+b,""+c));return new GQ(e)};
g.k.fU=function(a){for(var b=this.gB(a.info),c=a.info.range.start+a.info.Zb,d=[],e=0;e<b.length;e++){var f=eO(a.j,b[e].range.start+b[e].Zb-c,b[e].B);d.push(new VQ(b[e],f))}return d};
g.k.gB=function(a){for(var b=a.range.start+a.Zb,c=0;c<this.index.Hd()&&b>=this.index.im(c+1);)c++;return this.JD(c,b,a.B).eb};
g.k.Zr=function(a){BQ(a);return this.wg()?!0:a.range.end+1<this.info.contentLength};
g.k.Zx=function(a,b){this.Zr(a);if(!this.wg())return b=yQ(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new wQ(b.start,this.info.contentLength-1)),new GQ([new AQ(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.gB(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Zb+a.B;3===a.type&&(BQ(a),c=a.Pa,d===a.range.end+1&&(c+=1));return this.JD(c,d,b)};
g.k.iC=function(){return null};
g.k.Jq=function(a,b,c){b=void 0===b?!1:b;a=this.index.Fi(a);b&&(a=Math.min(this.index.Hd(),a+1));return this.JD(a,this.index.im(a),0,c)};
g.k.tm=function(){return!0};
g.k.Xv=function(){return!0};
g.k.fE=function(){return!1};
g.k.mO=function(){return this.indexRange.length+this.initRange.length};
g.k.VQ=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var m3={},CPa=(m3.COLOR_PRIMARIES_BT709="bt709",m3.COLOR_PRIMARIES_BT2020="bt2020",m3.COLOR_PRIMARIES_UNKNOWN=null,m3.COLOR_PRIMARIES_UNSPECIFIED=null,m3),n3={},mPa=(n3.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",n3.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",n3.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",n3.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",n3.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,n3.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,n3);g.$Q.prototype.getName=function(){return this.name};
g.$Q.prototype.getId=function(){return this.id};
g.$Q.prototype.getIsDefault=function(){return this.isDefault};
g.$Q.prototype.toString=function(){return this.name};
g.$Q.prototype.getName=g.$Q.prototype.getName;g.$Q.prototype.getId=g.$Q.prototype.getId;g.$Q.prototype.getIsDefault=g.$Q.prototype.getIsDefault;var rPa=/action_display_post/;var sPa;g.w(bR,g.NF);g.k=bR.prototype;g.k.isLoading=function(){return 1===this.state};
g.k.qm=function(){return 3===this.state};
g.k.jba=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.yc=this.B=!0;this.timeline||(this.timeline=new QOa);UOa(this.timeline,a);this.ra("refresh");for(a=0;a<b.length;a++){var c=MPa(this,b[a]);if(!this.j[c.id]){var d=dR(QQ(b[a],"BaseURL").textContent),e=QQ(b[a],"Initialization"),f=PQ(e,"sourceURL");e=xQ(PQ(e,"range"));this.j[c.id]=new OQ(d,c,f,e)}c=this.j[c.id];d=PQ(b[a],"id","AdaptationSet");
d=""!==d?d:PQ(b[a],"mimetype","AdaptationSet");f=this.timeline;f=f.C[c.info.id]||f.B[d]||f.j||null;d=f.j;!this.K&&f.getStreamTimeOffset()&&(this.K=f.getStreamTimeOffset());if(f.G){e=[];d=g.u(d);for(var h=d.next();!h.done;h=d.next()){h=h.value;var l=c.info.id,m=8*c.info.Pb,n=h.Pa;var p=h.startSecs;var q=f.N.split("$$");for(var r=0;r<q.length;r++)q[r]=q[r].replace("$RepresentationID$",l),q[r]=q[r].replace("$Number$",n.toString()),q[r]=q[r].replace("$Bandwidth$",m.toString()),q[r]=q[r].replace("$Time$",
p.toString());e.push(new PP(h.Pa,h.startSecs,h.yh,h.j,q.join("$"),null,h.B))}d=e}else{f=Ob(QQ(b[a],"SegmentList").getElementsByTagName("SegmentURL"),f.K);e=[];for(h=0;h<f.length;h++){l=e;m=l.push;n=d[h];p=void 0;r=f[h];q=r.getAttribute("media");if(r=r.getAttribute("mediaRange")){var t=r.split("-");t[1]&&0<=Number(t[1])?p=xQ(r):q=q+"?range="+r}m.call(l,new PP(n.Pa,n.startSecs,n.yh,n.j,q,p,n.B))}d=e}c.update(d,this.isLive,this.Xa)}VOa(this.timeline);return!0}this.duration=NOa(PQ(a,"mediaPresentationDuration"));
a:{for(a=0;a<b.length;a++){f=b[a];c=MPa(this,f);d=dR(QQ(f,"BaseURL").textContent);e=QQ(f,"SegmentBase");f=xQ(e.attributes.getNamedItem("indexRange").value);e=xQ(e.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);c=new ZQ(d,c,e,f);if(!c){b=!1;break a}aR(this,c)}b=!0}return b};
g.k.refresh=function(){if(!this.isLoading()&&!this.isDisposed()){var a=g.an(this.sourceUrl,{start_seq:SPa(this).toString()});OPa(this,a).Al(function(){})}};
g.k.resume=function(){NPa(this)};
g.k.Re=function(){if(this.isManifestless&&this.C&&eR(this))return eR(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()&&!XK(f.info.mimeType)&&(f.D&&(b=!0),h=h.Us(),f.info.Hi()&&(isNaN(c)||h<c)?c=h:f.info.Hg()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.Rd=function(){if(this.isManifestless){if(fR(this))return fR(this);if(this.jc){var a=this.jf(this.Re());if(a&&(a-=this.jc,0<a))return this.Re()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded()&&!XK(a[b].info.mimeType))return c.Rd()}return 0};
g.k.getStreamTimeOffset=function(){return this.K};
g.k.jf=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.Fi(a),e=c.jf(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var jR=null,Glb,YPa=!(null==(Glb=navigator.mediaCapabilities)||!Glb.decodingInfo),LPa={commentary:1,alternate:2,dub:3,main:4};var Z_=new Set,kR=new Map;mR.prototype.clone=function(a){return new mR(this.flavor,a,this.B,this.experiments)};
mR.prototype.qc=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
mR.prototype.Ph=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 Hlb={},cQa=(Hlb.playready=["com.youtube.playready","com.microsoft.playready"],Hlb.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],Hlb),o3={},U9a=(o3.widevine="DRM_SYSTEM_WIDEVINE",o3.fairplay="DRM_SYSTEM_FAIRPLAY",o3.playready="DRM_SYSTEM_PLAYREADY",o3),p3={},Ilb=(p3.widevine=1,p3.fairplay=2,p3.playready=3,p3);var wR;g.w(vR,g.I);
vR.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.qe)for(var h=g.u(Object.keys(f.qe)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=cQa[m];!m&&this.L("html5_enable_vp9_fairplay")&&"fairplay"===l&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.u(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.C[n]=this.C[n]||new mR(l,n,f.qe[l],this.Ha.experiments),this.j[l]=this.j[l]||
{},this.j[l][f.mimeType]=!0}}}eC()&&(this.C["com.youtube.fairplay"]=new mR("fairplay","com.youtube.fairplay","",this.Ha.experiments),this.L("html5_enable_vp9_fairplay")||(this.j.fairplay=this.j.fairplay||{},this.j.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.j.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.B=dQa(b,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay"),this.L("html5_enable_vp9_fairplay")).filter(function(p){return!!c.C[p]})};
vR.prototype.L=function(a){return this.Ha.experiments.kb(a)};var Bcb={"":"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 ZQa={RED:"red",Skb:"white"};mQa.prototype.kb=function(a){return"true"===this.flags[a]};var pQa=Promise.resolve(),uQa=window.queueMicrotask?window.queueMicrotask.bind(window):qQa;rQa.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;FD?a=a||Jlb[b]:2.2===YR?a=a||Klb[b]:cC()&&(a=a||Llb[b]);return!!a};
rQa.prototype.isTypeSupported=function(a){return this.Z?window.cast.receiver.platform.canDisplayType(a):HK(a)};
var Klb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Llb={"application/x-mpegURL":"maybe"},Jlb={"application/x-mpegURL":"maybe"};g.w(CR,g.NF);CR.prototype.add=function(a,b){if(!this.items[a]&&(b.jH||b.YM||b.YK)){var c=this.items,d=b;Object.isFrozen&&!Object.isFrozen(b)&&(d=Object.create(b),Object.freeze(d));c[a]=d;this.ra("vast_info_card_add",a)}};
CR.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
CR.prototype.get=function(a){return this.items[a]||null};
CR.prototype.isEmpty=function(){return g.md(this.items)};g.w(DR,g.YN);DR.prototype.j=function(a,b){var c=WN.fu("oap");b=g.YN.prototype.j.call(this,a,b);WN.Js(c,Math.ceil(a.length/16));return b};
DR.prototype.B=function(a,b,c){var d=this,e,f;return g.H(function(h){if(1==h.j)return e=WN.fu("oan2"),g.z(h,g.YN.prototype.B.call(d,a,b,c),2);f=h.B;WN.Js(e,Math.ceil(a.byteLength/16));return h.return(f)})};
g.w(ER,g.ZN);ER.prototype.encrypt=function(a,b){var c=WN.fu("oap");b=g.ZN.prototype.encrypt.call(this,a,b);WN.Js(c,Math.ceil(a.byteLength/16));return b};
g.w(FR,$N);FR.prototype.encrypt=function(a,b){var c=zQa(this.j,a),d=zQa(this.j,b);$N.prototype.encrypt.call(this,c||a,d||b);d&&this.j.exports.free(d.byteOffset);return c?VXa(this.j,c):a};HR.prototype.Rj=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.B+=a};
HR.prototype.cj=function(){return this.j/(1-Math.pow(this.alpha,this.B))};IR.prototype.Rj=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.B>=this.j&&(this.C=!0);for(;a--;)this.values[this.B]=b,this.B=(this.B+1)%this.j;this.Xl=!0};
IR.prototype.cj=function(){return this.K?(JR(this,this.D-this.K)+JR(this,this.D)+JR(this,this.D+this.K))/3:JR(this,this.D)};g.w(EQa,g.I);EQa.prototype.Ra=function(){var a;null==(a=this.Ea)||a.start();if(QR(this)&&this.policy.Z){var b;null==(b=this.oe)||b.EE()}};g.w(OQa,g.I);var WQa="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),eRa={xna:"caoe",Tpa:"cbrand",cqa:"cbr",dqa:"cbrver",Fsa:"cchip",bta:"ccappver",dta:"ccrv",uDa:"cfrmver",mIa:"c",pIa:"cver",oIa:"ctheme",nIa:"cplayer",yUa:"cmodel",mVa:"cnetwork",JZa:"cos",KZa:"cosver",D_a:"cplatform",D3a:"crqyear"};g.w(cRa,g.I);g.k=cRa.prototype;g.k.L=function(a){return this.experiments.kb(a)};
g.k.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig};
g.k.getVideoUrl=function(a,b,c,d,e,f){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.gS(this);e="www.youtube.com"===c;!f&&d&&e?f="https://youtu.be/"+a:g.aS(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),FD&&(a=Koa())&&(b.ebc=a));return g.an(f,b)};
g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.gS(this)+"/embed/"+b;d&&(b=g.an(b,{list:d}));d=c.width;c=c.height;b=g.$e(b);a=g.$e(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.GK&&!FD&&74<=wpa()||g.uR&&g.Tc(68)?!0:!1};
g.k.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.fb||g.kD?!1:!0};
g.k.getPlayerType=function(){return this.j.cplayer};
g.k.Dc=function(){return this.Yf};
g.k.Ot=function(){this.L("html5_enable_lawnmower_messaging")};
var kRa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],dRa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],hRa=[19];g.k=tS.prototype;g.k.Ph=function(){return this.j};
g.k.jC=function(){return null};
g.k.RW=function(){var a=this.jC();return a?(a=g.CB(a.resource),Number(a.expire)):NaN};
g.k.GR=function(){};
g.k.getHeight=function(){return this.j.video.height};lRa.prototype.build=function(){pRa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.u(this.C),e=d.next();!e.done;e=d.next())if(e=e.value,e.uc){if(e.uc.getIsDefault()){c=e.uc.getId();break a}c||(c=e.uc.getId())}}d=g.u(this.C);for(e=d.next();!e.done;e=d.next())if(e=e.value,this.K||!e.uc||e.uc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.u(this.B);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.j]){e=g.u(e);for(var 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.uc){p=f.uc;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=nRa(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(oRa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}}c=g.u(this.G);for(d=c.next();!d.done;d=c.next())d=d.value,e=Mlb,d=(h=d.uc)?'#EXT-X-MEDIA:URI="'+nRa(this,d.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0<this.G.length?Mlb:void 0;d=g.u(this.B);for(e=d.next();!e.done;e=d.next())e=e.value,l=b[e.j],h=void 0,0<(null==(h=l)?void 0:h.length)&&(h=e,l=l[0],l="#EXT-X-STREAM-INF:BANDWIDTH="+(h.bitrate+l.bitrate)+',CODECS="'+(h.codecs+","+l.codecs+'",RESOLUTION=')+(h.width+"x"+h.height+',AUDIO="')+(oRa(l,h)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<h.fps&&(l+=
",FRAME-RATE="+h.fps),h.LB&&(l+=",VIDEO-RANGE="+h.LB),a.push(l),a.push(nRa(this,e.url,"")));return a.join("\n")};
var Mlb="text";g.w(vS,tS);vS.prototype.RW=function(){return this.expiration};
vS.prototype.jC=function(){if(!this.resource||this.resource.isDisposed()){var a=this.B.build();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.resource=new kL(a)}return this.resource};g.w(wS,tS);wS.prototype.jC=function(){return new kL(this.B.Ue())};
wS.prototype.GR=function(){this.B=NP(this.B)};g.w(xS,tS);xS.prototype.jC=function(){return new kL(this.B)};var Nlb={},BRa=(Nlb.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Nlb.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Nlb);g.k=g.yS.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.j};
g.k.Ue=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.zS(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.k.Ke=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var GRa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},HRa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},IRa=/^(\d*)_((\d*)_?(\d*))$/;var KRa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},LRa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var q3={},CSa=(q3.ALWAYS=1,q3.BY_REQUEST=3,q3.UNKNOWN=void 0,q3),r3={},JSa=(r3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",r3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",r3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",r3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",r3);var RHa;
RHa=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{ama(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},q=0;q<f.length;q++){var r=f[q],t=l[r],v=(0,c[r])(t,m);if("undefined"===typeof v)throw l=m&&m.type,Error("When called with an action of type "+(l?'"'+String(l)+'"':"(unknown type)")+', the slice reducer for key "'+r+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');p[r]=
v;n=n||v!==t}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
return iIa(a,b)}});
g.kT=new bO;GS.prototype.toString=function(){return this.type+this.id};g.HS.prototype.hh=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.j)return hS(this.Ha,this.j,a)};
g.HS.prototype.Tk=function(){return this.Ha.getVideoUrl(this.videoId,this.playlistId)};g.IS.prototype.hh=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:hS(this.Ha,this.videoId,a)};
g.IS.prototype.Tk=function(a){return this.watchUrl||this.Ha.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,a)};var JS=void 0;Yya("LMS",function(){return g.H(function(a){return a.return(g.KS())})});var OS;OS=0;g.kSa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Yya("LMDB",function(){var a,b;return g.H(function(c){if(1==c.j)return g.z(c,g.ID(),2);if(3!=c.j){a=c.B;if(!a)throw g.lD("edd");return g.z(c,g.NS(a),3)}b=c.B;return c.return(g.sD(b,["index","media","captions"],{mode:"readonly",Tb:!0},function(d){var e={};d=[g.xD(d.objectStore("index"),{},function(f){e[f.cursor.key]=f.getValue();return g.yD(f)}),
lra(d.objectStore("media")),lra(d.objectStore("captions"))];return g.nD.all(d).then(function(f){var h=g.u(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:lSa(f||[]),captions:h}})}))})});g.w(PS,g.NF);PS.prototype.xa=function(){this.j&&(this.j=this.j.onload=null);g.NF.prototype.xa.call(this)};g.k=g.TS.prototype;g.k.getHeight=function(){return this.height};
g.k.WW=da(4);g.k.XH=function(){return this.frameCount};
g.k.isDefault=function(){return-1!==this.C.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.Ue=function(a){var b=this.D;b=b.replace("$N",this.C);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.signature&&(b=g.an(b,{sigh:this.signature}));return SJ(b)};
g.k.QG=function(a){var b=this.XH()-1;return g.He(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
g.k.ey=function(){return this.frameCount-1};
g.k.YL=function(){return this.frameCount?0:-1};
g.k.gU=function(){};g.w(US,PS);US.prototype.B=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.G(e-1,d,a[e],b);(this.N||180>f.getHeight())&&c.push(f)}return c};
US.prototype.G=function(a,b,c,d){return new g.TS(a,b,c,d)};g.w(rSa,g.TS);g.k=rSa.prototype;g.k.XH=function(){return this.B.Ez()};
g.k.QG=function(a){var b=this.rows*this.columns*this.G,c=this.B,d=c.Hd();a=c.Fi(a);return a>d-b?-1:a};
g.k.ey=function(){return this.B.Hd()};
g.k.YL=function(){return this.B.xn()};
g.k.gU=function(a){this.B=a};g.w(VS,US);VS.prototype.B=function(a,b){return US.prototype.B.call(this,"$N|"+a,b)};
VS.prototype.G=function(a,b,c){return new rSa(a,b,c,this.isLive)};var PSa=[],OSa=new Set;g.w(g.XS,g.NF);g.k=g.XS.prototype;g.k.U=function(){return this.Ha};
g.k.L=function(a){return this.Ha.L(a)};
g.k.Uh=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Pe)||!a.tb)};
g.k.qZ=function(){this.isDisposed()||(this.j.B||this.j.unsubscribe("refresh",this.qZ,this),this.SV(-1))};
g.k.SV=function(a){if(!this.isLivePlayback||!this.K||"fairplay"!=this.K.flavor){var b=IPa(this.j,this.DC);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.Rd());this.ra("cuepointupdated",b,a);this.DC+=b.length;if(gT(this)&&this.Ha.Dc())for(b=g.u(b),c=b.next();!c.done;c=b.next())c=c.value,this.qa("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.zG.start=this.pF,this.zG.end=
c+3)}}};
g.k.Bj=function(){return this.qe?!0:!!this.j&&DP(this.j)};
g.k.ek=function(){if(this.cotn)return null;var a=g.wJ(this.Ha)||this.L("web_l3_storyboard");if(!this.ll)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.ll=new US(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=bba(this.j.j).index)&&(this.ll=new VS(b.spec,this.j.isLive,c,a))}else this.Dy?this.ll=new US(this.Dy,this.lengthSeconds,void 0,!1,a):this.qy&&this.j&&
(b=bba(this.j.j).index)&&(this.ll=new VS(this.qy,this.j.isLive,b,a));return this.ll};
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.Dy||this.qy};
g.k.Re=function(){return this.j&&!isNaN(this.j.Re())?this.j.Re():gT(this)?this.L("html5_live_seek_timeline_timestamps")&&MT(this)?46800:0:this.lengthSeconds};
g.k.Rd=function(){return this.j&&!isNaN(this.j.Rd())?this.j.Rd():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.j&&this.B){var b=this.j.j[this.B.id];if(!b)return null;var c=b.index.Fi(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.Ke=function(){return!this.isDisposed()&&!(!this.videoId&&!this.Ml)};
g.k.Mv=function(){var a,b,c;return!!this.adaptiveFormats||!!(null==(a=this.playerResponse)?0:null==(b=a.streamingData)?0:null==(c=b.adaptiveFormats)?0:c.length)};
g.k.isLoaded=function(){return YS(this)&&!this.Vi&&!this.Vm};
g.k.hh=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.Ha.ma||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:hS(this.Ha,this.videoId,a)};
g.k.yc=function(){return this.isLivePlayback||this.ye||this.fb||!(!this.liveUtcStartSeconds||!this.Il)};
g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.ye&&!this.isLivePlayback&&this.j.B)};
g.k.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.py||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.D&&!UK(this.D))return g.Db(this.getAvailableAudioTracks(),function(d){return d.id==a.D.id})||this.zl;
if(this.py){if(!this.Qo)for(var b=g.u(this.py),c=b.next();!c.done;c=b.next())if(c=c.value,c.uc.getIsDefault()){this.Qo=c;break}return this.Qo||this.zl}return this.zl};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getWatchNextResponse=function(){return this.Ra};
g.k.getHeartbeatResponse=function(){return this.tC};
g.k.Tk=function(){return this.watchUrl?this.watchUrl:this.Ha.getVideoUrl(this.videoId)};
g.k.gP=function(){return!!this.j&&(vPa(this.j)||wPa(this.j)||xPa(this.j))};
g.k.getEmbeddedPlayerResponse=function(){return this.Ai};
g.k.Nn=function(){return"shortspage"===(this.eventLabel||this.Ha.Ma)};
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.VR=function(){return DSa(this)?this.mY:this.Xo||this.Ui};
g.k.TF=function(){return this.xk||this.Ui};
g.k.EM=function(){return cT(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){return!0};
g.k.qa=function(a,b,c){this.ra("ctmp",a,b,c)};
g.k.dB=function(a,b,c){this.ra("ctmpstr",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.kd=function(a,b){if(!g.UR(this.Ha)||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(this.Ha.Ia||"EMBEDDED_PLAYER_MODE_DEFAULT")||b)return!1;var c;return!!((null==(c=this.embeddedPlayerConfig)?0:c.isShortsExperienceEligible)&&a.width<=a.height)};
g.k.xa=function(){g.NF.prototype.xa.call(this);this.Gx=null;delete this.E5;delete this.accountLinkingConfig;delete this.j;this.C=this.tC=this.playerResponse=this.Ra=null;this.Xf=this.adaptiveFormats="";delete this.botguardData;this.Fe=this.suggestions=this.Jx=null};var OTa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},PTa={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"},QTa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},NTa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},LTa={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"},MTa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};g.w(ST,g.I);g.k=ST.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.Y[a],e=this.state.ma[a],f=d;if(e)if(c&&PJ(c,Qkb,Rkb))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.u(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.uF(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.k.logApiCall=function(a,b,c){var d=this.app.U();d.Qo&&!this.state.va.has(a)&&(this.state.va.add(a),g.bD("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:b||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.Ia,errorCode:c}))};
g.k.ra=function(a){var b=g.Ia.apply(1,arguments);this.state.C.ra.apply(this.state.C,[a].concat(g.pa(b)));if("videodatachange"===a||"resize"===a||"cardstatechange"===a)this.state.j.ra.apply(this.state.j,[a].concat(g.pa(b))),this.state.D.ra.apply(this.state.D,[a].concat(g.pa(b)))};
g.k.ob=function(a){var b=g.Ia.apply(1,arguments);this.state.C.ra.apply(this.state.C,[a].concat(g.pa(b)));this.state.j.ra.apply(this.state.j,[a].concat(g.pa(b)))};
g.k.zc=function(a){var b=g.Ia.apply(1,arguments);this.state.C.ra.apply(this.state.C,[a].concat(g.pa(b)));this.state.j.ra.apply(this.state.j,[a].concat(g.pa(b)));this.state.D.ra.apply(this.state.D,[a].concat(g.pa(b)))};
g.k.Dm=function(a){var b=g.Ia.apply(1,arguments);this.state.C.ra.apply(this.state.C,[a].concat(g.pa(b)));this.state.j.ra.apply(this.state.j,[a].concat(g.pa(b)));this.state.D.ra.apply(this.state.D,[a].concat(g.pa(b)));this.state.N.ra.apply(this.state.N,[a].concat(g.pa(b)))};
g.k.L=function(a){return this.app.U().L(a)};
g.k.xa=function(){if(this.state.element){var a=this.state.element,b;for(b in this.state.B)this.state.B.hasOwnProperty(b)&&(a[b]=null);this.state.element=null}g.I.prototype.xa.call(this)};g.w(XT,g.zv);XT.prototype.ra=function(a){var b=g.Ia.apply(1,arguments);if(this.G.has(a))return this.G.get(a).push(b),!0;var c=!1;try{for(b=[b],this.G.set(a,b);b.length;)c=g.zv.prototype.ra.call.apply(g.zv.prototype.ra,[this,a].concat(g.pa(b.shift())))}finally{this.G.delete(a)}return c};g.w(VTa,g.I);VTa.prototype.xa=function(){this.N.dispose();this.D.dispose();this.j.dispose();this.C.dispose();this.va=this.G=this.K=this.B=this.ma=this.Y=this.Z=void 0};var XTa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.w($T,ST);g.k=$T.prototype;g.k.getApiInterface=function(){return Array.from(this.state.Z)};
g.k.w5=function(a,b){this.state.N.subscribe(a,b)};
g.k.Tba=function(a,b){this.state.N.unsubscribe(a,b)};
g.k.getPlayerState=function(a){return tdb(this.app,a)};
g.k.m7=function(){return tdb(this.app)};
g.k.pca=function(a,b,c){aUa(this)&&(l1(this.app,!0,1),n1(this.app,a,b,c,1))};
g.k.getCurrentTime=function(a,b){var c=this.getPlayerState(a);if(2===this.app.getAppState()&&5===c){var d;return(null==(d=this.app.getVideoData())?void 0:d.startSeconds)||0}return this.L("web_player_max_seekable_on_ended")&&0===c?pdb(this.app,a):a?this.app.getCurrentTime(a,b):this.app.getCurrentTime(this.playerType)};
g.k.Z6=function(){return this.app.getCurrentTime(1)};
g.k.i7=function(){var a=this.app.jf(1);return isNaN(a)?this.getCurrentTime():a};
g.k.d7=function(){return this.app.getDuration(1)};
g.k.JK=function(a,b){a=g.He(Math.floor(a),0,100);isFinite(a)&&f1(this.app,{volume:a,muted:this.isMuted()},b)};
g.k.Cca=function(a){this.JK(a,!1)};
g.k.sJ=function(a){f1(this.app,{muted:!0,volume:this.getVolume()},a)};
g.k.n9=function(){this.sJ(!1)};
g.k.dL=function(a){g.aU(this.app)||f1(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},a)};
g.k.nda=function(){this.dL(!1)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().Of&&(a.pfp={enableIma:g.QT(this.app.getVideoData())&&this.app.Pd().allowImaMonetization,autoplay:IT(this.app.Pd()),mutedAutoplay:this.app.Pd().mutedAutoplay});return a};
g.k.WQ=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Nf()){var b=dW(this.app.Bb());if(!ogb(b)||pgb(b))return}3===a?kU(this.app.Bb()).JE("control_play"):this.app.playVideo(a)};
g.k.qba=function(){l1(this.app,!0,1);this.WQ()};
g.k.pauseVideo=function(a){var b=this.app.getPresentingPlayerType();if(2!==b||this.app.Nf()||ogb(dW(this.app.Bb())))3===b?kU(this.app.Bb()).JE("control_pause"):this.app.pauseVideo(b,a)};
g.k.Nca=function(){var a=this.app,b=!1;a.W.Jc&&(a.Va.ra("pageTransition"),b=!0);a.stopVideo(b)};
g.k.clearVideo=function(){};
g.k.getAvailablePlaybackRates=function(){var a=this.app.U();return a.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(a.D?a.ancestorOrigins[0]:window.location.origin)||a.Ro?Kkb:Jkb:[1]};
g.k.getPlaybackQuality=function(a){return(a=g.bU(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.xca=function(){};
g.k.getAvailableQualityLevels=function(a){return(a=g.bU(this.app,a))?(a=g.Er(a.Ps(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.W6=function(){return this.getAvailableQualityLevels(1)};
g.k.r7=function(){return this.mX()};
g.k.s7=function(){return 1};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.mX=function(){return this.getVideoLoadedFraction()};
g.k.v7=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.loadVideoById=function(a,b,c,d){if(!a)return!1;a=ZT(a,b,c);return this.app.loadVideoByPlayerVars(a,d)};
g.k.J8=function(a,b,c){a=this.loadVideoById(a,b,c,1);l1(this.app,a,1)};
g.k.cueVideoById=function(a,b,c,d){a=ZT(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
g.k.e6=function(a,b,c){this.cueVideoById(a,b,c,1)};
g.k.loadVideoByUrl=function(a,b,c,d){a=WTa(a,b,c);return this.app.loadVideoByPlayerVars(a,d)};
g.k.M8=function(a,b,c){a=this.loadVideoByUrl(a,b,c,1);l1(this.app,a,1)};
g.k.cueVideoByUrl=function(a,b,c,d){a=WTa(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
g.k.i6=function(a,b,c){this.cueVideoByUrl(a,b,c,1)};
g.k.x7=function(){var a=this.app.U();if(a.ma)return"";var b=this.app.Pd(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.b7=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.U();if(a.ma)return"";var b=this.app.Pd();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Pd().videoId,this.app.qb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.s5=function(a,b,c){return Cdb(this.app,a,b,c)};
g.k.removeCueRange=function(a){return Edb(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d)};
g.k.I8=function(a,b,c,d){this.loadPlaylist(a,b,c,d);l1(this.app,!0,1)};
g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.k.o9=function(){this.nextVideo();l1(this.app,!0,1)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.Dba=function(){this.previousVideo();l1(this.app,!0,1)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a)};
g.k.pba=function(a){this.playVideoAt(a);l1(this.app,!0,1)};
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.o7=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.getLength();c++){var d=g.OV(a,c);d&&b.push(d.videoId)}return b};
g.k.getPlaylistIndex=function(){var a=this.app.getPlaylist();return a?a.index:-1};
g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.k.BY=function(a){"captions"===a&&(a=g.aW(this.app.Bb()))&&!a.loaded&&a.load()};
g.k.S0=function(a){"captions"===a&&(a=g.aW(this.app.Bb()))&&a.loaded&&a.rda()};
g.k.OR=function(a,b,c){if(!b)return null;var d=this.app.Bb();return"captions"===a?(a=g.aW(d))&&a.Lh(b,c):null};
g.k.j7=function(a,b,c){var d=g.bU(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.U().D?{}:this.OR(a,b,c)};
g.k.oO=function(a){var b=this.app.Bb();if("captions"===a){var c;return(null==(c=g.aW(b))?void 0:c.getOptions())||null}return a?null:(a=[],g.aW(b)&&a.push("captions"),a)};
g.k.getVolume=function(){return this.app.Si.volume};
g.k.isMuted=function(){return this.app.Si.muted};
g.k.destroy=function(){this.app.dispose()};
g.k.logImaAdEvent=function(a,b){var c=this.app.U();g.QT(this.app.getVideoData())&&this.app.Pd().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.Dfa(this.app.U().loaderUrl),eventType:a,youtubeHost:g.Vm(this.app.U().Ea)||""},a.embeddedPlayerMode=c.Ia,g.bD("embedsAdEvent",a))};
g.k.mutedAutoplay=function(){var a=this.app.U(),b,c;this.L("embeds_enable_muted_autoplay")&&(null==(b=a.getWebPlayerContextConfig())?0:null==(c=b.embedsHostFlags)?0:c.allowMutedAutoplay)&&!a.C&&this.app.mutedAutoplay()};
g.k.preloadVideoById=function(a,b,c,d){if(a){a=ZT(a,b,c);var e,f;(null==(e=this.app.U().getWebPlayerContextConfig())?0:null==(f=e.embedsHostFlags)?0:f.allowPreloadVideoPlayerVars)&&this.app.preloadVideoByPlayerVars(a,d)}};
g.k.zba=function(a,b,c){this.preloadVideoById(a,b,c,1)};
g.k.setFauxFullscreen=function(a){g.uC();this.app.Fm(a?2:0)};
g.k.uca=function(a){var b,c;(null==(b=this.app.U().getWebPlayerContextConfig())?0:null==(c=b.embedsHostFlags)?0:c.allowSetFauxFullscreen)&&this.setFauxFullscreen(a)};g.w(bUa,$T);g.k=bUa.prototype;g.k.x5=function(a,b){this.state.D.subscribe(a,b)};
g.k.Uba=function(a,b){this.state.D.unsubscribe(a,b)};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b)};
g.k.g6=function(a,b){b=void 0===b?1:b;this.cueVideoByPlayerVars(eUa(this,a),b)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c,b,d,e)};
g.k.L8=function(a,b,c,d){c=void 0===c?1:c;this.loadVideoByPlayerVars(eUa(this,a),b,c,d)};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b,c,void 0===d?"":d,void 0===e?"":e)};
g.k.Bba=function(a,b,c,d){b=void 0===b?1:b;this.preloadVideoByPlayerVars(eUa(this,a),b,c,d)};
g.k.DY=function(a,b,c){this.loadVideoById(a,b,c,1)};
g.k.EY=function(a,b,c){this.loadVideoByUrl(a,b,c,1)};
g.k.n7=function(a){return this.getPlayerState(a)};
g.k.lX=function(a){a=void 0===a?1:a;var b=ZTa(this,a);if(a=g.bU(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.fb;b.isManifestless=gT(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.Bj()&&(b.isEncrypted=!0);if(a.C)for(var c=g.u(a.C.videoInfos),d=c.next();!d.done;d=c.next()){var e=void 0;if(null==(e=d.value.video)?
0:e.isHdr()){b.isHdr=!0;break}}var f,h;b.isMultiChannelAudio=!!(null==(f=a.D)?0:null==(h=f.audio)?0:h.isMultiChannelAudio())}return b};
g.k.seekBy=function(a,b,c,d){aUa(this)&&n1(this.app,this.app.getCurrentTime()+a,b,c,this.playerType,d)};
g.k.nca=function(a,b,c){this.seekBy(a,b,c)};
g.k.seekTo=function(a,b,c,d,e){aUa(this)&&n1(this.app,a,b,c,d||this.playerType,e)};
g.k.qca=function(a,b,c,d){this.seekTo(a,b,c,d)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.a7=function(a,b){return this.getCurrentTime(a,b)};
g.k.iI=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Nf()&&(a=1);return a};
g.k.getDuration=function(a,b){if(3===this.iI()){var c;return(null==(c=kU(this.app.Bb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):this.app.getDuration(this.playerType)};
g.k.e7=function(a,b){return this.getDuration(a,b)};
g.k.u7=function(a){return this.getVideoLoadedFraction(a)};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.gW(this.app.Bb());b&&!b.loaded&&b.load()}this.BY(a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.gW(this.app.Bb());b&&b.loaded&&b.unload()}this.S0(a)};
g.k.getOption=function(a,b,c){var d=g.bU(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.U().D?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.Bb();switch(a){case "ad":var c,d;return(null==(c=dW(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=kU(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var h,l;return(null==(h=g.gW(b))?void 0:null==(l=h.getOptions)?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return(null==(m=kYa(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null==
(p=g.eW(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var r,t;return(null==(r=jYa(b))?void 0:null==(t=r.getOptions)?void 0:t.call(r))||null}if(!a){a=this.oO();if(!a)return a;dW(b)&&a.push("ad");kU(b)&&a.push("remote");g.gW(b)&&a.push("annotations_module");kYa(b)&&a.push("creatorendscreen");g.eW(b)&&a.push("unplugged");jYa(b)&&a.push("kids");return a}return this.oO(a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.Bb();switch(a){case "ad":return(a=dW(d))&&a.Lh&&a.Lh(b,c);case "kids":return(a=jYa(d))&&a.Lh(b,c);case "remote":return(a=kU(d))&&a.Lh(b,c);case "unplugged":return(a=g.eW(d))&&a.Lh(b,c);case "annotations_module":return(a=g.gW(d))&&a.Lh(b,c);case "creatorendscreen":return(a=kYa(d))&&a.Lh(b,c)}return this.OR(a,b,c)};
g.k.addCueRange=function(a,b,c,d,e){return Cdb(this.app,a,b,c,d,e)};
g.k.getDebugText=function(a){return this.app.getDebugText(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.cU(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.cU(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.cU(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.cU(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.toggleFullscreen=function(){function a(c){g.uF(c)}
var b=this.app.U();if(b.externalFullscreen){if(!g.mS(b))return this.isFullscreen()?wC(window.document.documentElement):cqa(window.document.documentElement).catch(a)}else if(g.uC()||b.Z)return this.isFullscreen()?wC(vC()):"3"!==b.controlsType&&g.uC()?cqa(this.app.qb().element).catch(a):(b=this.app.kf().Kb())?cqa(b).catch(a):Promise.reject(Error("Media element missing"));this.zc("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.cancelPlayback=function(){var a=dW(this.app.Bb());a&&a.created&&a.destroy();(a=g.bU(this.app))&&a.stopVideo();(a=this.app.Bb().Me.get("endscreen"))&&a.v8()&&g.jU(this.app.Va,!0)};
g.k.getProgressState=function(a){if(3===this.iI())return kU(this.app.Bb()).getProgressState();var b=this.app.getVideoData(),c=g.bU(this.app,a)||g.bU(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=gUa(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=gUa(this,h,a);break a}h=0}f=this.getCurrentTime(a);a=this.getDuration(a);var l=this.app.jf(d),m=this.app.isAtLiveHead(d),n=this.app.Cz();var p=this.app;var q=g.bU(p,d);q?(q=X0(p,q),p=h1(p,g.NT(q.videoData)?q.videoData.Rd():q.Rd(),q)):p=0;q=pdb(this.app,d);c=c.Vc();var r=this.app.getVideoData().Jz;!r||isNaN(r)?d=0:(d=gUa(this,r,d),r=g.lJ(this.app.U().experiments,"partial_rewind_buffer_seconds"),d-=r>d?d:r);return{airingStart:e,airingEnd:h,allowSeeking:this.app.Uh(),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.isInline=function(){return this.app.isInline()};
g.k.setInline=function(a){this.app.setInline(a)};
g.k.w7=function(){return g.bU(this.app,1).qc(!0)};
g.k.toggleSubtitles=function(){var a=g.aW(this.app.Bb());a&&a.dda()};
g.k.getPlayerSize=function(){var a=this.app.qb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.cU(this);a&&a.uu()};
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 cUa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
dUa="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(" ");var s3={},hUa=(s3["api.invalidparam"]=2,s3.auth=150,s3["drm.auth"]=150,s3["heartbeat.net"]=150,s3["heartbeat.servererror"]=150,s3["heartbeat.stop"]=150,s3["html5.unsupportedads"]=5,s3["fmt.noneavailable"]=5,s3["fmt.decode"]=5,s3["fmt.unplayable"]=5,s3["html5.missingapi"]=5,s3["html5.unsupportedlive"]=5,s3["drm.unavailable"]=5,s3["mrm.blocked"]=151,s3);g.w(g.dU,bUa);g.k=g.dU.prototype;g.k.isExternalMethodAvailable=function(a,b){return this.state.Y[a]?!0:!!(this.state.ma[a]&&b&&PJ(b,Qkb,Rkb))};
g.k.getBandwidthEstimate=function(){return PR(this.app.U().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.bU(this.app);b&&(a={gpu:(0,g.e0)(),d:a},b.handleError(new BK("feedback",a)))};
g.k.getInternalApi=function(){return Object.assign({},this.state.B)};
g.k.getInternalApiInterface=function(){return g.id(this.state.B)};
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.Ei().D.j=(0,g.pD)()};
g.k.seekToStreamTime=function(a,b,c,d){var e=this.app;b=void 0===b?!0:b;var f=g.bU(e,1),h=0;f&&f.getStreamTimeOffset()&&!f.Vc()&&(h=f.getStreamTimeOffset());n1(e,a-h,b,c,1,d)};
g.k.getStreamTimeOffset=function(){var a=g.bU(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.bU(this.app,1);c&&(c=c.getVideoData())&&c.isLivePlayback&&n1(this.app,Infinity,a,b,1)};
g.k.requestSeekToWallTimeSeconds=function(a,b){var c=g.bU(this.app,1);c&&c.tR(a,b)};
g.k.setVolume=function(a,b){this.JK(a,void 0===b?!0:b)};
g.k.mute=function(a){this.sJ(void 0===a?!0:a)};
g.k.unMute=function(a){this.dL(void 0===a?!0:a)};
g.k.syncVolume=function(){var a=Qcb(this.app);f1(this.app,{volume:a.volume,muted:a.muted},!1)};
g.k.getAvailableQualityLabels=function(){var a=g.bU(this.app,1);return a?g.Er(a.Ps(),function(b){return b.qualityLabel}):[]};
g.k.channelSubscribed=function(){this.ob("SUBSCRIBE",this.app.Pd().Gl)};
g.k.channelUnsubscribed=function(){this.ob("UNSUBSCRIBE",this.app.Pd().Gl)};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.bU(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.bU(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.confirmYpcRental=function(){var a=g.bU(this.app,1);a&&a.Ng("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.U().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.U().jk=a};
g.k.setLivingRoomAppMode=function(a){this.app.U().livingRoomAppMode=mC("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,bRa)};
g.k.setEnablePrivacyFilter=function(a){this.app.U().enablePrivacyFilter=void 0===a?!1:a};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.addUtcCueRange=function(a,b,c,d,e){return Ddb(this.app,a,b,c,d,e)};
g.k.t7=function(a){a=void 0===a?1:a;var b=this.lX(a);if(a=g.bU(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.va;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?0:c.utcTimeMillis)?jf(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?jf(a.progressBarEndPosition.utcTimeMillis):
null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.eca;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=nTa(a);b.paidContentOverlayDurationMs=oTa(a);a.j&&AP(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}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.bU(this.app,1))?a.getPlayerState():null)?a.Tg:null;return!!(a&&b&&g.JG(a,128)&&5===iUa(b.errorCode))};
g.k.supportsGaplessAudio=function(){return this.app.U().supportsGaplessAudio()};
g.k.supportsGaplessShorts=function(){return this.app.U().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.Di=function(){return g.cU(this)};
g.k.sendAbandonmentPing=function(){var a=g.bU(this.app);a&&a.sendAbandonmentPing()};
g.k.setAutonavState=function(a,b){b=void 0===b?!1:b;if(this.L("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Pd(),null==b?0:RSa(b))){if(this.L("web_player_autonav_server_provided_state_pause_killswitch"))return;if(3===a)3!==b.autonavState&&(b.QB=b.autonavState);else if(void 0!==b.QB)a=b.QB,b.QB=void 0;else return}Kdb(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.bU(this.app,1))||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a,b){b=void 0===b?!1:b;var c=g.bU(this.app,1);c&&c.setUserAudio51Preference(a,b)};
g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.bU(this.app,1))?void 0:a.getUserAudio51Preference())?b:1};
g.k.setProximaLatencyPreference=function(a){var b=g.bU(this.app,1);b&&b.setProximaLatencyPreference(a)};
g.k.getProximaLatencyPreference=function(){var a=g.bU(this.app,1);return a?a.getProximaLatencyPreference():0};
g.k.isProximaLatencyEligible=function(){var a=g.bU(this.app,1);return a?a.isProximaLatencyEligible():!1};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.updateLastActiveTime=function(){HE()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setUserEngagement=function(a){this.app.U().Nl!==a&&(this.app.U().Nl=a,(a=g.bU(this.app,1))&&O0(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.aW(this.app.Bb()).b1(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.aW(this.app.Bb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.aW(this.app.Bb());a&&a.F0()};
g.k.isSubtitlesOn=function(){var a=g.aW(this.app.Bb());return a?a.isSubtitlesOn():!1};
g.k.getPlayerResponse=function(a){return(a=g.bU(this.app,a))?a.getVideoData().getPlayerResponse():null};
g.k.l7=function(){return this.getPlayerResponse(1)};
g.k.getEmbeddedPlayerResponse=function(){var a=g.bU(this.app,1);return a?a.getVideoData().getEmbeddedPlayerResponse():null};
g.k.getWatchNextResponse=function(a){return(a=g.bU(this.app,a))?a.getVideoData().getWatchNextResponse():null};
g.k.y7=function(){return this.getWatchNextResponse(1)};
g.k.getHeartbeatResponse=function(a){return(a=g.bU(this.app,a))?a.getVideoData().getHeartbeatResponse():null};
g.k.g7=function(){return this.getHeartbeatResponse(1)};
g.k.getStoryboardFrame=function(a,b){var c=this.app.ek();if(!c)return null;b=c.levels[b];return b?(a=g.SS(b,a))?{column:a.column,columns:a.columns,height:a.Bw,row:a.row,rows:a.rows,url:a.url,width:a.AE}: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.Vc();return b.QG(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.ek();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.ey(),minFrameIndex:b.YL()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.ek();return a?a.levels.length:0};
g.k.S6=function(){return this.getAudioTrack(1)};
g.k.getAudioTrack=function(a){return(a=g.bU(this.app,a))?a.getAudioTrack():this.app.getVideoData().zl};
g.k.setAudioTrack=function(a,b){3===this.iI()&&kU(this.app.Bb()).JE("control_set_audio_track",a);var c=g.bU(this.app,this.playerType);if(c)if(c.isDisposed()||g.JG(c.playerState,128))a=!1;else{var d;if(null==(d=c.videoData.C)?0:d.j){d=b?c.getCurrentTime()-c.Vc():NaN;if(b){var e=ybb(c.od);c.qa("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})}c.Aa.setAudioTrack(a,d,b)}else if(ocb(c)){b:{b=c.mediaElement.audioTracks();for(d=0;d<b.length;++d)if(e=b[d],e.label===a.uc.getName()){if(e.enabled){b=!1;break b}b=
e.enabled=!0;break b}b=void 0}b&&c.qa("hlsaudio",{id:a.id})}else{b:if(b=c.videoData,b.D&&!UK(b.D)||a==b.Qo||!b.rd||0>=b.rd.length)b=!1;else{d=g.u(b.rd);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof vS)){b=!1;break b}var f=a.uc.getId();e.B&&(mRa(e.B,f),e.resource=null)}b.Qo=a;b=!0}b&&H0(c)&&(c.ra("internalaudioformatchange",c.videoData,!0),c.qa("hlsaudio",{id:a.id}))}a=!0}else a=!1;return a};
g.k.V6=function(){return this.getAvailableAudioTracks(1)};
g.k.getAvailableAudioTracks=function(a){return g.bU(this.app,a).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.bU(this.app,1);return a&&a.getVideoData().B?xP(a.Sf?E$a(a.Ck,a.Sf,a.Ev()):WS):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.bU(this.app,1);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.aW(this.app.Bb());return a?a.q7():null};
g.k.resetSubtitlesUserSettings=function(){g.aW(this.app.Bb()).bca()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setOverlayVisibility=function(a){this.ra("overlayvisibilitychange",a)};
g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.k.setSqueezeback=function(a){this.app.setSqueezeback(a)};
g.k.setGlobalCrop=function(a){this.app.qb().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.xg();return this.app.getVisibilityState(this.Sh(),this.isFullscreen()||g.ZR(this.app.U()),a,this.isInline(),this.app.ut(),this.app.Wz(),this.app.bA())};
g.k.isMutedByMutedAutoplay=function(){return this.app.yA};
g.k.setInternalSize=function(a,b){this.app.qb().setInternalSize(new g.Oe(a,b))};
g.k.Vc=function(){var a=g.bU(this.app);return a?a.Vc():0};
g.k.xg=function(){return this.app.xg()};
g.k.Sh=function(){var a=g.bU(this.app,this.playerType);return!!a&&a.Sh()};
g.k.setSafetyMode=function(a){this.app.U().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.Bi=lC(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.OV(b).videoId||(a.index=b.index)):a1(this.app,{list:a.list,index:a.index,playlist_length:d.length});BXa(this.app.getPlaylist(),a);this.zc("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.bU(this.app,this.playerType||1);c&&g.$S(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){$Qa(this.app.U(),a,!1)};
g.k.sca=function(a){this.app.sendVideoStatsEngageEvent(a,1)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ra("changeProductsInVideoVisibility",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.bU(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.getPlaybackQualityLabel=function(a){if(a=g.bU(this.app,a)){var b,c;return(null==(c=null==(b=a.getVideoData().B)?void 0:b.video)?void 0:c.qualityLabel)||""}return""};
g.k.setPlaybackQualityRange=function(a,b,c){var d=g.bU(this.app,this.playerType);d&&g.lcb(d,g.uP(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.kT.dispatch(a)};
g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.Fe.includes(e)||(c.Fe.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Ib(c.Fe,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.v5=function(a,b){this.state.j.subscribe(a,b)};
g.k.Sba=function(a,b){this.state.j.unsubscribe(a,b)};
g.k.f6=function(a,b){this.cueVideoByPlayerVars(a,void 0===b?1:b)};
g.k.K8=function(a,b,c,d){this.loadVideoByPlayerVars(a,b,void 0===c?1:c,d)};
g.k.Aba=function(a,b,c,d){this.preloadVideoByPlayerVars(a,void 0===b?1:b,c,d)};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.Ch=function(){return g.cU(this).Ch()};
g.k.Vg=function(){return g.cU(this).Vg()};
g.k.wm=function(){return g.cU(this).wm()};
g.k.Te=function(){return this.Di().Te()};
g.k.Vl=function(){var a=g.Ia.apply(0,arguments),b;(b=this.Te()).Vl.apply(b,g.pa(a))};
g.k.Mh=function(){this.Te().Mh()};
g.k.QO=function(){this.Te().QO()};
g.k.Rh=function(){this.Te().hide()};
g.k.PK=function(a,b,c,d,e,f,h,l){this.Te().PK(a,b,c,d,e,f,h,l)};
g.k.VF=function(a,b){this.Te().VF(a,b)};
g.k.Rt=function(a,b,c,d,e){this.Di().Rt(a,b,c,d,e)};
g.k.QF=function(a){this.Te().MR(a)};
g.k.My=function(a){this.Di().My(a)};
g.k.gD=function(a,b){this.Di().gD(a,b)};
g.k.qz=function(a,b){this.Di().qz(a,b)};
g.k.zq=function(){this.Di().zq()};
g.k.NR=function(a,b){this.Di().NR(a,b)};
g.k.pB=da(6);g.k.qB=da(8);g.k.Gr=da(11);g.k.Fr=da(14);g.k.vF=function(a,b){this.Di().vF(a,b)};
g.k.Av=function(){this.Di().Av()};
g.k.getWebPlayerContextConfig=function(){return this.app.U().getWebPlayerContextConfig()};
g.k.notifyShortsAdSwipeEvent=function(){this.ra("shortsadswipe")};g.w(g.hU,g.dU);g.k=g.hU.prototype;g.k.Ko=function(a,b,c,d,e,f,h){return this.app.Ko(a,b,c,d,e,f,h)};
g.k.vD=function(){return this.app.vD()};
g.k.Os=da(16);g.k.Bb=function(){return this.app.Bb()};
g.k.Mf=function(){var a=this.Bb().Me.get("endscreen");return!!a&&a.Mf()};
g.k.getRootNode=function(){return this.qb().element};
g.k.U=function(){return this.app.U()};
g.k.Dz=da(18);g.k.hm=function(a){return this.app.hm(a)};
g.k.zp=function(){var a;return(null==(a=g.cU(this))?void 0:a.zp())||null};
g.k.Xb=function(a){return this.app.Xb(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.bU(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a||g.NT(b)&&!a){var d=this.app;a=d.getVideoData();d.Ae?(b=d.Ae,d=d.getCurrentTime(),b=b.qp?void 0:null==(c=NY(b,1E3*d))?void 0:c.videoData,a=b||a):d.ac&&d.xb&&(a=Q3a(d.ac)||a);c=a}else c=b;return c};
g.k.ek=function(a){return this.app.ek(a)};
g.k.hw=function(){return this.app.hw()};
g.k.isHdr=function(){var a=g.bU(this.app);return a?a.isHdr():!1};
g.k.nP=function(){return this.app.nP()};
g.k.kd=function(){var a=g.cU(this),b=this.getVideoData();a=a?a.FI:this.getPlayerSize();var c=!!this.getPlaylist();if(this.L("embeds_web_enable_shorts_mode_playback_style_logging"))return!(!b||!b.kd(new g.Oe(a.width,a.height),c));var d=this.U();if(!g.UR(d)||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(d.Ia||"EMBEDDED_PLAYER_MODE_DEFAULT")||c)return!1;var e;return!!(b&&(null==(e=b.embeddedPlayerConfig)?0:e.isShortsExperienceEligible)&&a.width<=a.height)};
g.k.sB=function(a){this.app.sB(a)};
g.k.Bg=function(a,b,c,d,e){this.app.Mg(a,b,c,d,e)};
g.k.Hr=function(a,b){this.app.Hr(a,b)};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){kU(this.app.Bb()).JE("control_play");return}if(!a&&2===this.getPresentingPlayerType()){var b=dW(this.app.Bb());if(b&&pgb(b))return}}catch(c){g.tF(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.bU(this.app,a).stopVideo()};
g.k.uo=function(a){g.bU(this.app,a).uo()};
g.k.addEventListener=function(a,b){this.state.C.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.state.C.unsubscribe(a,b)};
g.k.jF=function(a){this.app.jF(a)};
g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)};
g.k.Ps=function(){var a={},b=g.bU(this.app).Ps();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.wD=function(){return g.bU(this.app).wD()};
g.k.FD=da(22);g.k.tK=function(a){this.app.tK(a);a&&Kdb(this.app,a)};
g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
g.k.GD=da(24);g.k.Vn=da(28);g.k.qo=function(a){var b=g.bU(this.app);b&&b.qo(a)};
g.k.lA=function(a,b){this.Bb().lA(a,b)};
g.k.Nk=function(){var a=g.gW(this.Bb());return!!a&&a.Nk()};
g.k.fp=function(){var a=g.gW(this.Bb());return!!a&&a.fp()};
g.k.nB=function(a,b,c){var d=g.gW(this.Bb());d&&d.nB(a,b,c)};
g.k.mB=da(29);g.k.Ho=function(){var a=g.bU(this.app);a&&a.Ho()};
g.k.EK=function(a){this.zc("onVideoAreaChange");this.zc(a?"onShowControls":"onHideControls")};
g.k.An=function(a,b){var c=g.cU(this);if(c)return c.An(a,b);a=this.app.qb().Qh();return new g.hs(0,0,a.width,a.height)};
g.k.Cn=function(){return this.app.Cn()};
g.k.gE=function(){var a=this.Bb().Me.get("heartbeat");return!!a&&a.gE()};
g.k.Uh=function(){var a=this.U();if(a.Wa||a.disableSeek)return!1;var b=g.bU(this.app);if(!b)return!1;var c=b.getVideoData();return!c.Ke()||g.yT(c)||2===this.getPresentingPlayerType()&&!this.app.Nf()||KT(c)&&2===this.getPresentingPlayerType(!0)||b.En()&&3!==this.getPresentingPlayerType()||g.qC(g.cS(a))&&!c.Om||g.aU(this.app)?!1:!0};
g.k.cE=function(){var a;return(null==(a=g.bU(this.app))?void 0:a.cE)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.Zt=function(){var a=g.bU(this.app);a&&a.Zt()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.yf=function(a,b,c){this.app.Ly(a,b,c)};
g.k.xo=function(a,b){this.app.uF(a,b)};
g.k.Cf=function(a,b){qdb(this.app,a,b)};
g.k.mG=function(){this.app.mG()};
g.k.Ng=function(a,b){(b=g.bU(this.app,b))&&b.Ng(a)};
g.k.En=function(){var a=g.bU(this.app);return a?a.En():!0};
g.k.Mv=function(){var a=this.getVideoData();return!!a&&(a.Mv()||!!a.hlsFormats||!!a.Yc)};
g.k.getPlaybackRate=function(){return g.bU(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.kf=function(){return this.app.kf()};
g.k.Ei=function(){return this.app.Ei()};
g.k.ej=function(a){return this.app.ej(a)};
g.k.createClientVe=function(a,b,c,d){this.U().ib&&this.app.Sq.createClientVe(a,b,c,void 0===d?!1:d)};
g.k.createServerVe=function(a,b,c){this.U().ib&&this.app.Sq.createServerVe(a,b,void 0===c?!1:c)};
g.k.setTrackingParams=function(a,b){this.U().ib&&this.app.Sq.setTrackingParams(a,b)};
g.k.logClick=function(a,b){this.U().ib&&(this.app.Sq.click(a,b),this.ra("veClickLogged",a))};
g.k.logVisibility=function(a,b,c){if(this.U().ib){var d=this.app.Sq;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.qF(),f=a.visualElement;d.B.has(a)?e&&f&&(b?g.IF(e,[f]):g.JF(e,[f])):b&&!d.C.has(a)&&(e&&f&&g.HF(e,f,void 0,c),d.C.add(a))}};
g.k.hasVe=function(a){return this.U().ib?this.app.Sq.hasVe(a):!1};
g.k.destroyVe=function(a){this.U().ib&&this.app.Sq.destroyVe(a)};
g.k.fd=function(){return g.bU(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.kx=function(){this.app.kx()};
g.k.lz=function(a,b){return this.app.lz(a,b)};
g.k.Xp=function(a){this.app.Xp(a)};
g.k.oA=function(){this.app.oA()};
g.k.addPlayerResponseForAssociation=function(a){this.app.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.app.finishSegmentByCpn(a,b)};
g.k.IC=function(a,b,c,d,e,f,h){return this.app.IC(a,b,c,d,e,f,h)};
g.k.ZD=function(a,b,c,d,e,f,h){return this.app.ZD(a,b,c,d,e,f,h)};
g.k.Yz=function(){return this.app.Yz()};
g.k.Pt=function(a){this.app.Pt(a)};
g.k.Ty=function(a,b){b=void 0===b?Infinity:b;this.app.Ty(void 0===a?-1:a,b)};
g.k.fL=function(a){var b;null==(b=g.aW(this.Bb()))||b.fL(a)};
g.k.qG=function(a,b,c){this.app.qG(a,b,c)};
g.k.Hq=function(){return this.app.Hq()};
g.k.HH=function(a,b,c){this.app.HH(a,b,void 0===c?0:c)};
g.k.dw=function(){return this.app.dw()};
g.k.Nf=function(){return this.app.Nf()};
g.k.Ft=function(a,b,c){return this.app.Ft(a,b,c)};
g.k.qa=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.bU(this.app,d))||e.qa(a,b,c)};
g.k.dQ=function(a,b){this.ra("aduxmouseover",a,b)};
g.k.cQ=function(a,b){this.ra("aduxmouseout",a,b)};
g.k.BQ=function(a,b){this.ra("muteadaccepted",a,b)};
g.k.iE=function(){return this.app.qb().iE()};
g.k.tB=function(a){this.app.qb().tB(a)};
g.k.Ir=function(a){return a?this.app.eS():(a=g.bU(this.app))?a.Ir():!1};
g.k.PR=function(a){this.app.PR(a)};
g.k.gJ=function(a){var b,c=null==(b=g.bU(this.app))?void 0:b.Aa;c&&c.gJ(a)};
g.k.wu=function(){g.bU(this.app,1).wu()};
g.k.uO=function(){var a=g.bU(this.app);return a?a.uO():0};
g.k.HK=function(a){var b=g.bU(this.app);b&&b.HK(a)};var rUa;g.w(qUa,MC);qUa.prototype.uD=function(a,b){a=MC.prototype.uD.call(this,a,b);return Object.assign({},a,this.AF)};var tUa=!1;g.uU.prototype.info=function(){};
g.uU.prototype.debug=function(){};
var nVa=new Map;vU.prototype.OA=function(a,b){b.getLength();switch(a){case 20:a=new oO(b);a={Fp:rO(a,1),videoId:uO(a,2),itag:rO(a,3),lmt:rO(a,4),xtags:uO(a,5),lB:rO(a,6),Ln:sO(a,8),Wt:rO(a,9),amb:rO(a,10),startMs:rO(a,11),durationMs:rO(a,12),Cr:rO(a,14),timeRange:vO(a,15,NUa),Kj:rO(a,16),vJ:rO(a,17),clipId:uO(a,1E3)};this.xQ(a);break;case 21:this.vQ(b,!1);break;case 22:this.Np(b);break;case 31:a=yO(b,JUa);this.IA(a);break;case 52:Olb?(a=yO(b,dVa),this.KA(a)):this.CJ(a,b);break;default:this.CJ(a,b)}};
vU.prototype.xQ=function(){};
vU.prototype.CJ=function(){};
var Olb=!1;g.w(wU,g.I);wU.prototype.Eo=function(a,b,c){c=void 0===c?{}:c;this.policy.tj=aQa(a,c,this.D,void 0===b?!1:b)};rVa.prototype.DJ=function(a){var b=this;if(this.policy.By){var c=new Set(a);c.size===this.Y.size&&[].concat(g.pa(c)).every(function(d){return b.Y.has(d)})||(this.Aa.qa("lwnmow",{itagDenylist:[].concat(g.pa(a)).join(",")}),this.Aa.mx(!!c.size),this.ma=-1,this.Y=c,DU(this,this.j),this.Ra=!0)}};
rVa.prototype.Eo=function(a,b,c){c=void 0===c?{}:c;var d=this.policy.tj;this.G.Eo(a,void 0===b?!1:b,c);if(d!==this.policy.tj){DU(this,this.j);EU(this);var e,f;d>this.policy.tj&&(null==(e=this.C)?0:RK(e.info))&&(null==(f=this.nextVideo)||!RK(f.info))&&(this.va=!0)}};
var JU=!1;g.w(g.LU,g.VF);g.k=g.LU.prototype;g.k.show=function(){var a=this.gk();g.VF.prototype.show.call(this);this.Ia&&(this.N.T(window,"blur",this.Qb),this.N.T(document,"click",this.T3));a||this.ra("show",!0)};
g.k.hide=function(){var a=this.gk();g.VF.prototype.hide.call(this);JVa(this);a&&this.ra("show",!1)};
g.k.xd=function(a,b){this.B=a;this.ma.show();b?(this.Y||(this.Y=this.N.T(this.J,"appresize",this.tV)),this.tV()):this.Y&&(this.N.Tc(this.Y),this.Y=void 0)};
g.k.IW=function(){this.B&&this.element&&(this.B.getAttribute("aria-haspopup"),this.B.setAttribute("aria-expanded","true"),this.focus())};
g.k.tV=function(){var a=g.cU(this.J);this.B&&a.Rt(this.element,this.B)};
g.k.Qb=function(){var a=this.gk();JVa(this);this.ma.hide();a&&this.ra("show",!1)};
g.k.T3=function(a){var b=BC(a);b&&(g.Uf(this.element,b)||this.B&&g.Uf(this.B,b)||!g.UG(a))||this.Qb()};
g.k.gk=function(){return this.Jb&&4!==this.ma.state};g.w(KVa,g.LU);KVa.prototype.xd=function(){g.LU.prototype.xd.call(this);this.dialog.focus()};g.w(g.OU,g.VF);g.OU.prototype.updateValue=function(a,b){g.VF.prototype.updateValue.call(this,a,b);this.ra("size-change")};var eWa={pM:14,uL:13,OU:12,RU:11,kM:10,qM:9,rL:8,qL:7,oM:6,SUBTITLES:5,AUDIO:4,nM:3,zU:2,REMOTE:1,SS:0,14:"STABLE_VOLUME",13:"CINEMATIC",12:"REMOTE_SELECT",11:"SIZE",10:"MINIPLAYER",9:"THREED",8:"AUTONAV",7:"ANNOTATIONS",6:"SPEED",5:"SUBTITLES",4:"AUDIO",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.w(RU,g.OU);RU.prototype.Nc=function(a){this.B&&this.J.logVisibility(this.element,this.j&&a)};
RU.prototype.D=function(){var a,b,c=null==(a=this.J.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.J.getVideoData())?void 0:d.accountLinkingConfig;QU(this,cG());var e;g.NU(this,SU(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.C=new KVa(this.J,SU(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),SU(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),SU(null==a?void 0:null==
(l=a.menuData)?void 0:l.confirmButtonText));g.N(this,this.C);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;(this.B=!!d)&&this.J.setTrackingParams(this.element,d);this.Hb.Xc(this);this.j=!0}else!c&&this.j&&(this.Hb.ph(this),this.j=!1)};
RU.prototype.onClick=function(){this.B&&this.J.logClick(this.element);this.Hb.Qb();this.C&&this.C.xd()};g.w(TU,g.I);TU.prototype.L=function(a){return this.api.L(a)};g.w(UU,TU);UU.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.BU=b};
UU.prototype.setAccountLinkState=function(a){this.api.getVideoData().BU=a;this.api.Ho()};
UU.prototype.updateAccountLinkingConfig=function(a){var b=this.api.getVideoData(),c=b.accountLinkingConfig;c&&(c.linked=a);this.api.ra("videodatachange","dataupdated",b,this.api.getPresentingPlayerType())};g.w(MVa,TU);
MVa.prototype.B=function(a){var b=a.getId(),c=this.api.getVideoData(1),d=!this.api.isInline();if(!c.inlineMetricEnabled&&!this.api.L("enable_player_logging_lr_home_infeed_ads")||d){if("part2viewed"===b){if(c.eT&&g.jE(c.eT),c.aQ&&WU(this,c.aQ),c.yy)for(var e={CPN:this.api.getVideoData().clientPlaybackNonce},f=g.u(c.yy),h=f.next();!h.done;h=f.next())WU(this,g.Fu(h.value,e))}else"conversionview"===b?this.api.wu():"engagedview"===b&&c.yj&&(e={CPN:this.api.getVideoData().clientPlaybackNonce},g.jE(g.Fu(c.yj,
e)));c.wU&&(e=c.wU,f=a.getId(),e=DB(e,{label:f}),g.jE(e));switch(b){case "videoplaytime25":c.bT&&WU(this,c.bT);c.yS&&XU(this,c.yS);c.AU&&g.jE(c.AU);break;case "videoplaytime50":c.cT&&WU(this,c.cT);c.NS&&XU(this,c.NS);c.CU&&g.jE(c.CU);break;case "videoplaytime75":c.dT&&WU(this,c.dT);c.OS&&XU(this,c.OS);c.HU&&g.jE(c.HU);break;case "videoplaytime100":c.WS&&WU(this,c.WS),c.hR&&XU(this,c.hR),c.yU&&g.jE(c.yU)}(e=this.api.getVideoData().Gx)&&QVa(this,e,a.getId())&&QVa(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&
!d)switch(b){case "videoplaybackstart":var l,m=null==(l=c.zy)?void 0:l.j;m&&WU(this,m);break;case "videoplayback2s":(l=null==(m=c.zy)?void 0:m.C)&&WU(this,l);break;case "videoplayback10s":var n;(l=null==(n=c.zy)?void 0:n.B)&&WU(this,l)}this.api.xo([a],1)};g.w(SVa,TU);g.w(UVa,g.V);g.k=UVa.prototype;
g.k.kC=function(){var a;if(a=3!==this.J.getPresentingPlayerType()&&g.pU(this.J)&&400<=this.J.qb().getPlayerSize().width)if(a=this.Pd(),this.J.U().L("client_respect_autoplay_switch_button_renderer"))a=!!a.autoplaySwitchButtonRenderer;else{var b,c,d,e;a=!1!==!!(null==(b=a.getWatchNextResponse())?0:null==(c=b.contents)?0:null==(d=c.twoColumnWatchNextResults)?0:null==(e=d.autoplay)?0:e.autoplay)}if(a)this.j||(this.j=!0,g.UF(this,this.j),this.J.U().L("web_player_autonav_toggle_always_listen")||TVa(this),
b=this.Pd(),this.hU(b.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j=!1,g.UF(this,this.j),!this.J.U().L("web_player_autonav_toggle_always_listen"))for(this.J.U().L("web_player_autonav_toggle_always_listen"),b=g.u(this.B),c=b.next();!c.done;c=b.next())this.Tc(c.value)};
g.k.hU=function(a){WVa(this)?this.isChecked=1!==a:((a=1!==a)||(g.NC(),a=g.PB("web_autonav_allow_off_by_default")&&!g.OC(0,141)&&g.rB("AUTONAV_OFF_BY_DEFAULT")?!1:!g.OC(0,140)),this.isChecked=a);VVa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.tK(this.isChecked?2:1);VVa(this);if(WVa(this)){var a=this.Pd().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.J.ob("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.J.ob("innertubeCommand",a.onDisabledCommand)}this.J.logClick(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.Pd=function(){return this.J.getVideoData(1)};g.w(XVa,TU);g.w(YU,g.OU);YU.prototype.onClick=function(){ZU(this,!this.checked);this.ra("select",this.checked)};
YU.prototype.getValue=function(){return this.checked};var cWa={pM:14,OU:13,RU:12,kM:11,qM:10,rL:9,nM:8,oM:7,SUBTITLES:6,AUDIO:5,qL:4,uL:3,zU:2,REMOTE:1,SS:0,14:"STABLE_VOLUME",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"},dWa={pM:14,OU:13,RU:12,kM:11,qM:10,rL:9,uL:8,qL:7,AUDIO:6,SUBTITLES:5,oM:4,nM:3,zU:2,REMOTE:1,SS:0,14:"STABLE_VOLUME",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 ZVa=["en-CA","en","es-MX","fr-CA"];g.w(cV,YU);cV.prototype.Sa=function(a){a?this.j||(this.Hb.Xc(this),this.j=!0):this.j&&(this.Hb.ph(this),this.j=!1);this.j&&ZU(this,HMa())};
cV.prototype.D=function(){g.$u(this.element,"ytp-menuitem-highlight-transition-enabled")};
cV.prototype.C=function(a){var b=HMa();a!==b&&(b=g.NC(),yqa(190,a),yqa(192,!0),b.save(),this.J.ob("cinematicSettingsToggleChange",a))};
cV.prototype.xa=function(){this.j&&this.Hb.ph(this);YU.prototype.xa.call(this)};g.w(hWa,TU);hWa.prototype.updateCinematicSettings=function(a){this.j=a;var b;null==(b=this.menuItem)||b.Sa(a);this.api.ra("onCinematicSettingsVisibilityChange",a)};g.w(dV,YU);dV.prototype.j=function(a){this.callback(a?1:0)};
dV.prototype.xa=function(){this.Hb.ph(this);YU.prototype.xa.call(this)};g.w(eV,TU);eV.prototype.getDrcUserPreference=function(){return this.j};
eV.prototype.setDrcUserPreference=function(a){g.IC("yt-player-drc-pref",a,31536E3);a!==this.j&&(this.j=a,this.updateEnvironmentData(),(a=this.api.fd())&&iWa(this)&&Y_(a))};
eV.prototype.updateEnvironmentData=function(){this.api.U().Nm=1===this.j};g.w(fV,TU);fV.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.Cf("embargo",1);var c=null==b?void 0:b.sL.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==c?0:c.length)?kWa(this,c.filter(function(d){return jWa(a,d)})):(null==b?0:b.cueRanges)&&kWa(this,b.cueRanges.filter(function(d){return jWa(a,d)}))};
fV.prototype.B=function(a){return void 0!==a.embargo};
fV.prototype.xa=function(){TU.prototype.xa.call(this);this.j={}};g.w(lWa,TU);
lWa.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.U(),c=b.widgetReferrer,d=b.rd,e=this.j,f="",h=b.getWebPlayerContextConfig();h&&(f=h.embedsIframeOriginParam||"");0<c.length&&(a.embeds_widget_referrer=c);0<d.length&&(a.embeds_referring_euri=d);b.D&&0<f.length&&(a.embeds_referring_origin=f);0<e.length&&(b.L("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):g.qC(g.cS(b))&&e.unshift(159628),b=e.join(","),b=g.dC()?b:g.Eg(b,4),a.source_ve_path=b);this.j.length=
0};g.w(mWa,TU);g.w(gV,g.V);gV.prototype.show=function(){g.V.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
gV.prototype.onVideoDataChange=function(a){var b,c,d=null==(b=this.api.getVideoData())?void 0:null==(c=b.getPlayerResponse())?void 0:c.playabilityStatus;d&&(b=nWa(d),g.JG(this.api.Xb(),128)||"dataloaderror"===a||!b?(this.B=0,qWa(this),this.hide()):(a=1E3*(b.remainingTimeSecs||0),0<a&&(this.show(),this.updateValue("label",mIa(b.label)),pWa(this,a))))};
gV.prototype.xa=function(){qWa(this);g.V.prototype.xa.call(this)};g.w(rWa,TU);g.w(hV,g.V);hV.prototype.onClick=function(){this.Va.logClick(this.element);this.Va.ob("onFullerscreenEduClicked")};
hV.prototype.Sa=function(){this.Va.isFullscreen()?this.B?this.j.hide():this.j.show():this.hide();this.Va.logVisibility(this.element,this.Va.isFullscreen()&&!this.B)};g.w(iV,TU);
iV.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;null!=(b=this.j)&&(g.bv(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","\u041f\u0440\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u0435 \u044d\u043a\u0440\u0430\u043d \u0432\u043d\u0438\u0437, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e"),fU(b.Va,
b.element,b),b.C=!0))};
iV.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;null!=(b=this.j)&&(b.B=a,b.Sa())};g.w(sWa,g.V);g.w(vWa,TU);g.w(wWa,TU);g.w(xWa,TU);g.w(jV,TU);jV.prototype.getSphericalProperties=function(){var a=g.mU(this.api.Bb());return a?a.getSphericalProperties():{}};
jV.prototype.setSphericalProperties=function(a){if(a){var b=g.mU(this.api.Bb());b&&b.setSphericalProperties(a,!0)}};g.w(yWa,TU);g.k=yWa.prototype;g.k.createClientVe=function(a,b,c,d){this.api.createClientVe(a,b,c,void 0===d?!1:d)};
g.k.createServerVe=function(a,b,c){this.api.createServerVe(a,b,void 0===c?!1:c)};
g.k.setTrackingParams=function(a,b){this.api.setTrackingParams(a,b)};
g.k.logClick=function(a,b){this.api.logClick(a,b)};
g.k.logVisibility=function(a,b,c){this.api.logVisibility(a,b,c)};
g.k.hasVe=function(a){return this.api.hasVe(a)};
g.k.destroyVe=function(a){this.api.destroyVe(a)};g.w(kV,TU);kV.prototype.seekToChapterWithAnimation=function(a){var b=this;if(g.cU(this.api)&&!(0>a)){var c=this.api.getVideoData(),d=c.jl;if(d&&a<d.length){d=g.u(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.index===a){zWa(this,e.startTime,e.title);return}}this.L("web_key_moments_markers")&&(c=c.KU)&&a<c.length&&c.forEach(function(f,h){h===a&&zWa(b,f.timeRangeStartMillis,f.title)})}};
kV.prototype.seekToTimeWithAnimation=function(a,b){g.cU(this.api)&&zWa(this,a,b)};
kV.prototype.setMacroMarkers=function(a,b){b={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:b}}}}}};a=a.getVideoData();a.getWatchNextResponse();a&&null==a.getWatchNextResponse()&&(vSa(a,{raw_watch_next_response:b}),a.ra("dataupdated"))};g.w(CWa,TU);CWa.prototype.xa=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var a=g.u("nexttrack previoustrack play pause seekbackward seekforward".split(" ")),b=a.next();!b.done;b=a.next())lV(b.value,null);TU.prototype.xa.call(this)};g.w(mV,TU);mV.prototype.D=function(a){return void 0!==a.compositeEmbargo};
mV.prototype.xa=function(){TU.prototype.xa.call(this);this.B.clear()};g.w(KWa,TU);g.k=KWa.prototype;g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.H(function(l){return 1==l.j?(f=fW(e.api.Bb()))?g.z(l,f.Lba([a],b,c,d),3):l.Ka(2):2!=l.j&&(h=l.B,h.length)?l.return(h[0]):l.return(Promise.reject())})};
g.k.updateDownloadState=function(a,b){var c=fW(this.api.Bb());return c?c.updateDownloadState(a,b):Promise.reject()};
g.k.pauseVideoDownload=function(a){var b=fW(this.api.Bb());b&&b.SQ(a)};
g.k.resumeVideoDownload=function(a){var b=this,c;return g.H(function(d){return(c=fW(b.api.Bb()))?d.return(c.FF(a)):d.return(Promise.reject())})};
g.k.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()};
g.k.refreshAllStaleEntities=function(a){void 0===a&&(a=14400);var b=fW(this.api.Bb());return b?b.refreshAllStaleEntities(a):Promise.reject()};g.w(nV,TU);nV.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
nV.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;d=(null==e?void 0:e.qualityDetails)||[];c=new Map;c=this.api.L("html5_settings_menu_fix")&&g.bb(d)&&!Array.isArray(d)?new Map(Object.entries(d)):new Map(d.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=YK(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=nT(a);FP(e);d=[];e=g.u(e);for(f=e.next();!f.done;f=e.next())f=f.value,!0===CP(a,f,this.api.U().G)&&d.push(f);b=b.concat(LWa(d,!1,c))}a=this.api.wD();b=b.concat(LWa(a,!0,c));c=[];if(this.api.L("web_player_enable_premium_hbr_in_h5_api"))return b=NWa(b),MWa(b),b;a={};b=g.u(b);for(e=
b.next();!e.done;e=b.next())e=e.value,d=e.quality,a[d]||(e.formatId=void 0,c.push(e),a[d]=!0);return c};g.w(oV,g.V);oV.prototype.Sa=function(a){a=a?'\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043c\u0430 "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"':"\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435";this.update({"data-title-no-tooltip":a,title:a});this.api.Mh()};
oV.prototype.onClick=function(){this.api.togglePictureInPicture()};g.w(OWa,TU);OWa.prototype.createButton=function(){var a=this;this.button=new oV(this.api);g.N(this,this.button);this.api.My(this.button);this.events.T(this.api,"videodatachange",function(){PWa(a)});
PWa(this)};g.w(QWa,TU);g.w(g.qV,g.NF);g.k=g.qV.prototype;g.k.T=function(a,b){this.D.T(this.Z,a,b,void 0,!this.j)};
g.k.cancel=function(){this.C&&(this.C=!1,this.ra("dragend",0,0,null));this.B&&(this.B=!1,this.ra("hoverend",0,0,null),rV(this),pV(this))};
g.k.Cw=function(a){rV(this);this.T(sV("move"),this.iU);this.T(sV("out"),this.xA);this.T("touchstart",this.aM);this.j&&this.T(sV("down"),this.ZL);var b=a.target;a=new g.Ke(a.pageX,a.pageY);this.B=!0;this.ra("hoverstart",a.x,a.y,b);this.ra("hovermove",a.x,a.y,b)};
g.k.iU=function(a){var b=a.target;a=new g.Ke(a.pageX,a.pageY);if(this.G){var c=this.G;this.G=null;if(c.relatedTarget===b&&Ne(new g.Ke(c.pageX,c.pageY),a))return}this.ra("hovermove",a.x,a.y,b)};
g.k.xA=function(a){var b=new g.Ke(a.pageX,a.pageY),c=a.relatedTarget;try{if(c&&g.Uf(this.target,c)){this.G=a;this.ra("hovermove",b.x,b.y,c);return}}catch(d){}rV(this);pV(this);this.B=!1;this.ra("hoverend",b.x,b.y,c)};
g.k.k9=function(a){this.Cw(a);this.ZL(a)};
g.k.ZL=function(a){if("number"!==typeof a.button||0===a.button){rV(this);this.D.T(document,sV("move"),this.j9);this.D.T(document,sV("up"),this.U3);var b=a.target;if(g.Vc)this.T("dragstart",this.r6);else if(a.preventDefault(),(g.nS||ls)&&b)a:{for(var c=b;c;){if(Wf(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.C=!0;a=new g.Ke(a.pageX,a.pageY);this.ra("dragstart",a.x,a.y,b);this.ra("dragmove",a.x,a.y,b)}};
g.k.r6=function(a){a.preventDefault()};
g.k.j9=function(a){var b=a.target;b===document&&(b=null);a=new g.Ke(a.pageX,a.pageY);this.ra("hovermove",a.x,a.y,b);this.ra("dragmove",a.x,a.y,b)};
g.k.U3=function(a){rV(this);this.C=!1;var b=BC(a),c=a.target;a=new g.Ke(a.pageX,a.pageY);b&&g.Uf(this.target,b)?(this.T(sV("move"),this.iU),this.T(sV("out"),this.xA),this.T(sV("down"),this.ZL),this.T("touchstart",this.aM),this.ra("dragend",a.x,a.y,c)):(pV(this),this.B=!1,this.ra("dragend",a.x,a.y,c),this.ra("hoverend",a.x,a.y,c))};
g.k.aM=function(a){var b=a.changedTouches[0];b&&(rV(this),this.Y||(this.T("touchmove",this.eda),this.T("touchend",this.jU),this.T("touchcancel",this.jU),this.K=b.identifier,a=a.target,this.B||(this.B=!0,this.ra("hoverstart",b.pageX,b.pageY,a)),this.ra("hovermove",b.pageX,b.pageY,a),this.j&&(this.C=!0,this.ra("dragstart",b.pageX,b.pageY,a),this.ra("dragmove",b.pageX,b.pageY,a))))};
g.k.eda=function(a){var b=RWa(this,a);b&&(this.j&&a.preventDefault(),a=a.target,this.ra("hovermove",b.pageX,b.pageY,a),this.j&&this.ra("dragmove",b.pageX,b.pageY,a))};
g.k.jU=function(a){var b=RWa(this,a);if(b){rV(this);pV(this);this.B=!1;var c=a.target;this.j&&(this.N||a.preventDefault(),this.C=!1,this.ra("dragend",b.pageX,b.pageY,c));this.ra("hoverend",b.pageX,b.pageY,c)}};
g.k.xa=function(){this.j&&(g.Vc&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");rV(this);g.NF.prototype.xa.call(this)};g.w(SWa,g.V);SWa.prototype.Rh=function(){g.ks(this.j,"display","none");this.J.logVisibility(this.j,!1)};g.w(uV,TU);uV.prototype.va=function(a,b){this.Y=[a,b];this.j.subscribe("dragmove",this.N,this);this.j.subscribe("dragend",this.K,this);this.C||g.Ru(this.delay)};
uV.prototype.Ea=function(){if(this.D){this.C=!0;this.Ia=this.api.getPlaybackRate();this.Ma=this.api.Xb().isPaused();var a=this.speedmasterUserEdu;g.ks(a.j,"display","");a.J.logVisibility(a.j,!0);this.api.setPlaybackRate(this.Na);this.api.hideControls();this.api.playVideo();this.Z&&(this.Z.Rz=!0);this.ma&&(this.ma.DI=!0)}};
uV.prototype.N=function(a,b){if(!this.C){a=[a,b];var c=this.Y;c&&a&&2===c.length&&2===a.length?(b=Math.abs(c[0]-a[0]),c=Math.abs(c[1]-a[1]),b=Math.sqrt(b*b+c*c)):b=-1;b<this.Ca?this.Y=a:vV(this)}};
uV.prototype.K=function(){vV(this)};g.w(WWa,TU);WWa.prototype.onVideoDataChange=function(a){"newdata"===a&&this.api.Bb().createSubtitlesModuleIfNeeded()};g.w(wV,g.Ab);wV.prototype.preventDefault=function(){g.Ab.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
wV.prototype.stopPropagation=function(){g.Ab.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.w(g.xV,uL);g.k=g.xV.prototype;g.k.Lu=function(){return!0};
g.k.isView=function(){return!1};
g.k.uR=function(){return!1};
g.k.Kb=function(){return this.j};
g.k.Kf=function(){return this.j.src};
g.k.PG=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.k.qK=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.Ts=function(){return this.j.loop};
g.k.setLoop=function(a){this.j.loop=a};
g.k.canPlayType=function(a,b){return this.j.canPlayType(a,b)};
g.k.isPaused=function(){return this.j.paused};
g.k.eg=function(){return this.j.seeking};
g.k.isEnded=function(){return this.j.ended};
g.k.eI=function(){return this.j.muted};
g.k.oB=function(a){uCa();this.j.muted=a};
g.k.Iv=function(){return this.j.played||$K([],[])};
g.k.Oh=function(){try{var a=this.j.buffered}catch(b){}return a||$K([],[])};
g.k.KD=function(){return this.j.seekable||$K([],[])};
g.k.OG=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.Jk=function(){return this.j.readyState};
g.k.fI=function(){return this.j.networkState};
g.k.gh=function(){return this.j.error?this.j.error.code:null};
g.k.Af=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.Sh=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.k.Zt=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():tCa()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.Vs=function(){var a=this.j;return new g.Ke(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.ws(this.j)};
g.k.setSize=function(a){g.vs(this.j,a)};
g.k.getVolume=function(){return this.j.volume};
g.k.setVolume=function(a){uCa();this.j.volume=a};
g.k.IN=function(a){this.G[a]||(this.j.addEventListener(a,this.listener),this.G[a]=this.listener)};
g.k.setAttribute=function(a,b){this.j.setAttribute(a,b)};
g.k.removeAttribute=function(a){this.j.removeAttribute(a)};
g.k.hasAttribute=function(a){return this.j.hasAttribute(a)};
g.k.JC=da(31);g.k.fG=da(33);g.k.gG=da(35);g.k.Wy=da(37);g.k.jD=function(){return wC(this.j)};
g.k.qs=function(a){g.Yu(this.j,a)};
g.k.MD=function(a){return g.ms(this.j,a)};
g.k.eP=function(){return g.Uf(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.G)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.G[b]);uL.prototype.xa.call(this)};
g.k.KR=function(a){this.j.disableRemotePlayback=a};yV.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
yV.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)};
yV.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.B=this.j=this.data.length-1};g.w(zV,g.I);zV.prototype.start=function(){this.B.start()};
zV.prototype.stop=function(){this.B.stop()};
zV.prototype.clear=function(){for(var a=g.u(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
zV.prototype.sample=function(){for(var a=g.u(this.C),b=a.next();!b.done;b=a.next()){var c=g.u(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new YWa(Plb.has(b)));this.j.get(b).update(c())}this.B.start()};
var Plb=new Set(["networkactivity"]);YWa.prototype.update=function(a){this.j?(this.buffer.add(a-this.eA||0),this.eA=a):this.buffer.add(a)};
YWa.prototype.clear=function(){this.buffer.clear();this.eA=0};g.w(DV,g.V);g.w(FV,g.V);FV.prototype.show=function(){g.V.prototype.show.call(this);this.Sa();this.Va.L("html5_enable_moving_s4n_window")&&g.yJ(this.Va.U())&&this.N()};
FV.prototype.hide=function(){g.V.prototype.hide.call(this);this.delay.stop();this.D.stop()};
FV.prototype.Sa=function(){var a=(0,g.pD)(),b=aXa(this.Va);EV(this.j,b.bandwidth_samples);EV(this.K,b.network_activity_samples);EV(this.C,b.live_latency_samples);EV(this.B,b.buffer_health_samples);var c={};b=g.u(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;this.Y[d]!==e&&(c[d]=" "+String(e));this.Y[d]=e}this.update(c);a=25<(0,g.pD)()-a?5E3:500;this.delay.start(a)};
FV.prototype.N=function(){this.G?(this.position+=1,15<this.position&&(this.G=!1)):(--this.position,0>=this.position&&(this.G=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.w(dXa,TU);g.w(GV,g.I);GV.prototype.j=function(){var a=(0,g.pD)()-this.startTime;a=a<this.duration?a/this.duration:1;this.B(vv(Qlb,a));1>a&&this.delay.start()};
var Qlb=new uv(0,0,.4,0,.2,1,1,1),jXa=/[0-9.-]+|[^0-9.-]+/g;g.w(HV,g.V);HV.prototype.onClick=function(){var a=this.api.app;a.Va.ob("SIZE_CLICKED",!a.pP);this.api.logClick(this.element)};
HV.prototype.Sa=function(){g.UF(this,this.api.nP()&&!this.api.isFullscreen()&&3!==this.api.getPresentingPlayerType());if(this.Jb){var a=this.api.hw();if(this.hw!==a){var b=a?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{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.hw?this.updateValue("icon",b):iXa(this.transition,this.element,b);this.hw=a;b=g.gU(this.api,"\u0420\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","t");var c=g.gU(this.api,"\u0428\u0438\u0440\u043e\u043a\u0438\u0439 \u044d\u043a\u0440\u0430\u043d","t");this.updateValue("title",a?b:c);this.update({"data-title-no-tooltip":a?"\u0420\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e":
"\u0428\u0438\u0440\u043e\u043a\u0438\u0439 \u044d\u043a\u0440\u0430\u043d"});this.api.Mh()}}this.api.logVisibility(this.element,this.Jb)};g.w(kXa,TU);g.w(lXa,TU);IV.prototype.send=function(a,b){var c;return g.H(function(d){if(1==d.j)return g.Ba(d,2),g.z(d,TB(a,b),4);if(2!=d.j)return d.return(d.B);c=g.Da(d);if(c instanceof SB)throw new Un(Tn(JB(c.xhr)),c.message);throw c;})};
IV.prototype.mD=function(a,b){var c=this,d,e,f,h,l,m;return g.H(function(n){if(1==n.j){var p=new jo;d=Ak(p,1,c.jj);a&&Ak(d,2,a);b&&Ak(d,3,b);return g.z(n,c.send(c.B,Object.assign({},{postBody:d.Hk()},c.j)),2)}e=n.B;f=yhb(e.xhr.responseText);h=Ij(f,2);if(!h.isEmpty()){if(g.dC()&&10>xpa())throw Error("Unsupported");l=Fg(uda(h));return n.return(tga(l))}m=g.Rj(f,fo,1);if(!m)throw Error("Missing field");return n.return(m)})};
IV.prototype.DW=function(a){var b=this,c,d;return g.H(function(e){if(1==e.j){var f=new ko;f=Ak(f,1,b.jj);c=Ak(f,2,a);return g.z(e,b.send(b.C,Object.assign({},{postBody:c.Hk()},b.j)),2)}d=e.B;return e.return(Ahb(d.xhr.responseText))})};g.w(JV,TU);JV.prototype.xa=function(){this.C&&(g.OB(this.C),this.C=void 0);TU.prototype.xa.call(this)};
JV.prototype.TN=function(a){var b=this;return g.H(function(c){return b.j?c.return(b.j.ready().then(function(){b.Sb.gi("pot_if");return qXa(b,a)})):c.return(Promise.reject("web po not ready"))})};
JV.prototype.RP=function(a){return qXa(this,a)};
JV.prototype.FS=function(){this.j&&!this.j.isReady()&&KV(this)};g.w(rXa,TU);g.w(LV,g.I);LV.prototype.j=function(){for(var a=g.u(g.Ia.apply(0,arguments)),b=a.next();!b.done;b=a.next())(b=b.value)&&this.features.push(b)};
LV.prototype.xa=function(){for(var a=this.features.length-1;0<=a;a--)this.features[a].dispose();this.features.length=0;g.I.prototype.xa.call(this)};MV.prototype.fQ=function(){this.B=(0,g.pD)()};
MV.prototype.reset=function(){this.j=this.B=NaN};
MV.prototype.lQ=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.01>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};a.G&&(c.cttAuthInfo={token:a.G,videoId:a.videoId});RH("seek",c);g.QH({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.B)||SH("pl_ss",this.B,"seek");SH(b,(0,g.pD)(),"seek")}this.reset()}};g.k=sXa.prototype;g.k.reset=function(){OH(this.timerName)};
g.k.tick=function(a,b){SH(a,b,this.timerName)};
g.k.gi=function(a){return Jya(a,this.timerName)};
g.k.ou=function(a){HL(a,void 0,this.timerName)};
g.k.infoGel=function(a){g.QH(a,this.timerName)};g.w(wXa,g.NF);g.k=wXa.prototype;g.k.Vk=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.Cp=function(a){return this.loop||!!a||0<=this.index-1};
g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.B++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.B++}this.ra("shuffle")};
g.k.hh=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b||this.Ha.ma||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return hS(this.Ha,this.C[0],a)};
g.k.getLength=function(){return this.length};
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.LB(this.j,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Tk=function(){return this.Ha.getVideoUrl(g.OV(this).videoId,this.getPlaylistId())};
g.k.xa=function(){this.j=null;g.xb(this.items);g.NF.prototype.xa.call(this)};var PV=new Map;g.w(g.RV,g.NF);g.k=g.RV.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.Lh=function(){};
g.k.xl=function(){return!0};
g.k.xa=function(){this.loaded&&this.unload();g.NF.prototype.xa.call(this)};
g.k.qc=function(){return{}};
g.k.getOptions=function(){return[]};g.w(g.UV,g.I);g.k=g.UV.prototype;g.k.Et=da(40);g.k.kA=function(){};
g.k.Rr=function(){};
g.k.Kv=function(){return""};
g.k.cR=da(41);g.k.xa=function(){this.Rr();g.I.prototype.xa.call(this)};g.w(g.VV,g.UV);g.VV.prototype.Et=da(39);g.VV.prototype.kA=function(a){if(this.audioTrack)for(var b=g.u(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.TV(this.B,c.value);a()};
g.VV.prototype.Kv=function(a,b){var c=a.Ue(),d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.dC()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.BS(a));this.W.L("web_player_topify_subtitles_for_shorts")&&this.C&&(d.xosf="1");Object.assign(d,this.W.j);return DB(c,d)};
g.VV.prototype.Rr=function(){this.j&&this.j.abort()};g.JXa.prototype.Ot=function(a){this.Ha.Ot(a)};g.Rlb=new Map;g.w(g.ZV,g.UV);g.ZV.prototype.Et=da(38);
g.ZV.prototype.kA=function(a){var b=this,c=this.C,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.UX&&(d.asrs=1);c=DB(c,d);this.Rr();this.j=g.RB(c,{format:"RAW",onSuccess:function(e){b.j=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),r=l.getAttribute("id"),t="true"===l.getAttribute("lang_default"),v="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.TV(b.B,new g.yS({languageCode:m,languageName:n,name:p,kind:q,id:r,is_servable:!0,is_translateable:v,vss_id:l,is_default:t}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.G[m.languageCode]=m.languageName,b.D.push(m)}a()},
withCredentials:!0})};
g.ZV.prototype.Kv=function(a,b){var c=this.C;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};this.W.L("captions_url_add_ei")&&(b.ei=this.eventId);a.translationLanguage&&(b.tlang=g.BS(a));Object.assign(b,this.W.j);return c=DB(c,b)};
g.ZV.prototype.Rr=function(){this.j&&this.j.abort()};OXa.prototype.reload=function(){var a=this;return g.H(function(b){if(1==b.j)return $V&&a.module?g.z(b,WebAssembly.instantiate(a.module,a.B),6):a.exports&&a.C?g.z(b,a.C(a.B),5):b.Ka(0);if(6!=b.j)return a.exports=b.B,b.Ka(0);a.instance=b.B;a.exports=a.instance.exports;g.Aa(b)})};
g.GK||g.uR&&!g.bC("windows nt")||g.kD||g.GD||xpa();var $V="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);g.w(WXa,g.I);g.k=WXa.prototype;g.k.createSubtitlesModuleIfNeeded=function(){$Xa(this)&&bW(this,"captions");return!!g.aW(this)};
g.k.TF=function(){return this.J.getVideoData().TF()};
g.k.VR=function(){return this.J.getVideoData().VR()};
g.k.cW=function(){var a=this.Me.get("heartbeat");bW(this,"heartbeat",!1,!0,this.cW);!a&&this.Me.has("heartbeat")&&this.J.ra("offlineslatestatechange")};
g.k.sH=function(){bW(this,"annotations_module",!0,void 0,this.sH);var a=this.Me.get("annotations_module");if(a)for(var b in this.C)if(this.C.hasOwnProperty(b)){var c=b;a.subscribe(c,this.C[c])}};
g.k.rN=function(){if(!this.Me.get("ad"))try{XXa(this)?bW(this,"ad",!1,!0,this.rN):this.J.Ng("ad")}catch(a){this.J.Ng("ad"),g.tF(a)}};
g.k.Ei=function(){return this.B};
g.k.Lq=function(){var a={},b=g.aW(this);b&&Object.assign(a,b.Lq());return a};
g.k.lA=function(a,b){Object.assign(this.B,a||null);Object.assign(this.tH,b||null)};
g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.J.L("enable_wn_infocards")&&g.ET(a)&&!g.gW(this)&&this.sH()};
g.k.xa=function(){g.I.prototype.xa.call(this);cW(this,1,!0);for(var a=g.u(Object.entries(nYa)),b=a.next();!b.done;b=a.next()){var c=g.u(b.value);b=c.next().value;c=c.next().value;this.D.has(c)&&PV.delete(b)}this.D.clear()};
var t3={},nYa=(t3.ad="ad.js",t3.annotations_module="annotations_module.js",t3.asmjs="asmjs.js",t3.creatorendscreen="annotations_module.js",t3.embed="embed.js",t3.endscreen="endscreen.js",t3.heartbeat="heartbeat.js",t3.inline_preview="inline_preview.js",t3.kids="kids.js",t3.remote="remote.js",t3.miniplayer="miniplayer.js",t3.offline="offline.js",t3.captions="captions.js",t3.unplugged="unplugged.js",t3.ux="ux.js",t3.webgl="webgl.js",t3.ypc="ypc.js",t3.ypc_clickwrap="ypc_clickwrap.js",t3.yto="yto.js",
t3),iYa="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat inline_preview kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.w(pYa,g.NF);g.k=pYa.prototype;g.k.V3=function(a){a=new g.Ke(a.pageX,a.pageY);if(!Ne(a,this.D)){var b=2;this.K&&(b|=8);this.D=a;hW(this,b,!0)}};
g.k.l9=function(){this.K&&hW(this,8,!0);hW(this,2,!1)};
g.k.Cw=function(a){var b=new g.Ke(a.pageX,a.pageY);Ne(b,this.D)||(this.D=b,(a=a.target)&&this.iH(a)&&(hW(this,4,!0),this.j.Tc(this.C),this.C=this.j.T(this.target,"mouseover",this.xA),this.N=this.j.T(this.target,"mouseout",this.xA)))};
g.k.xA=function(a){a=a.relatedTarget;a&&this.iH(a)||(this.D=new g.Ke(NaN,NaN),qYa(this))};
g.k.E8=function(){hW(this,1,!0)};
g.k.O6=function(a){a=a.target;a instanceof Element&&!(0<a.tabIndex)||hW(this,1,!0)};
g.k.kU=function(){this.K=!0;this.j.Tc(this.G);this.G=this.j.T(document,"mouseup",this.W3)};
g.k.W3=function(){this.K=!1;hW(this,8,!1);this.j.Tc(this.G);this.G=this.j.T(this.target,"mousedown",this.kU)};
g.k.lU=function(a){if(a=(a=a.changedTouches)&&a[0])this.Ca=a.identifier,this.j.Tc(this.Z),this.Z=this.j.T(this.target,"touchend",this.X3,void 0,!0),hW(this,1024,!0)};
g.k.X3=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.Ca){var d=c;break}}d&&(this.j.Tc(this.Z),this.Z=this.j.T(this.target,"touchstart",this.lU,void 0,!0),hW(this,1024,!1))};
g.k.uu=function(){hW(this,2,!0)};
g.k.resize=function(){g.GK&&qYa(this)};
g.k.toString=function(){return g.NF.prototype.toString.call(this)};g.w(g.jW,g.V);g.k=g.jW.prototype;g.k.sda=function(){this.Sa();this.api.U().L("embeds_add_tooltip_to_large_play_button")&&fU(this.api,this.element,this)};
g.k.Sa=function(){var a=this.api.getVideoData(),b=this.api.U(),c=!!this.api.kd();g.bv(this.element,"ytp-shorts-mode",c);c?b=[{I:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},V:[{I:"path",X:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z",
fill:"#f00","fill-rule":"evenodd"}},{I:"path",X:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.QT(a)?b=[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},V:[{I:"path",S:"ytp-dni-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:a.Of&&a.tp?b=[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-dni-large-play-button-bg",
X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{I:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:b.N?(g.bv(this.element,"ytp-touch-device",b.B),b=[b.N?{I:"svg",X:{height:"100%",version:"1.1",
viewBox:"0 0 60 60",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{I:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):b=[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#f00"}},{I:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",b);a.Of&&a.tp&&(a=a.tp?a.tp:"#1f1f1f",this.Ga("ytp-dni-large-play-button-bg").setAttribute("fill",a))};
g.k.show=function(){g.V.prototype.show.call(this);this.api.U().L("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
g.k.E7=function(){this.api.getVideoData().mutedAutoplay||(this.api.oA(),this.api.playVideo())};
g.k.Cba=function(a){this.api.getVideoData().mutedAutoplay||a.preventDefault()};g.w(g.kW,g.V);g.k=g.kW.prototype;g.k.show=function(){var a=this;this.Jb||(this.D.T(this.api,"videodatachange",function(){g.Ru(a.j)}),this.D.T(this.api,"videoplayerreset",function(){g.Ru(a.j)}));
g.V.prototype.show.call(this)};
g.k.hide=function(){this.D&&g.FC(this.D);g.V.prototype.hide.call(this)};
g.k.Yb=function(){g.Ru(this.j)};
g.k.onStateChange=function(){g.Ru(this.j)};
g.k.hba=function(){g.Ru(this.j)};
g.k.Qw=function(){this.B.stop();this.hide();g.Ru(this.j)};
g.k.Sa=function(){var a=this.api.Xb();if(3===this.api.getPresentingPlayerType()&&(a.isPlaying()||a.isPaused()))var b=!0;else(b=this.api.Bb().Me.get("ypc"))&&b.UJ?b=!0:(b=this.api.U(),b=g.JG(a,2)&&g.iU(this.api)&&b.Yg?!0:!1);b?(b=!0,this.C.hide()):this.api.L("web_player_show_frame_zero_when_cued")&&rYa(this)?(b=!0,this.C.hide()):(this.C.show(),b=a.isCued()&&2!==this.api.getPresentingPlayerType()||g.JG(a,2)&&!g.iU(this.api)&&!this.api.vD()||g.JG(a,1024)?!0:!1);var c=this.api.getVideoData();b&&!c.IU?
(this.B.show(),this.xda(this.api.getPlaylist(),c)):(this.B.hide(),g.JG(a,1)||this.B.stop())};
g.k.xda=function(){var a=g.Ia.apply(0,arguments),b=this.api.U(),c,d=null==(c=this.api.getVideoData())?void 0:c.videoId;if(b.L("web_player_show_frame_zero_when_cued")&&d&&rYa(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.XS&&!c.videoId)){e=this.api.qb().getPlayerSize();var f=g.jS();d=e.width*f;f*=e.height;if(1280<d||720<f)if(e=c.hh("maxresdefault.jpg"))break;if(640<d||480<f)if(e=c.hh("maxresdefault.jpg"))break;
if(320<d||180<f)if(e=c.hh("sddefault.jpg")||c.hh("hqdefault.jpg")||c.hh("mqdefault.jpg"))break;if(e=c.hh("default.jpg"))break}g.mS(b)&&(b=new Image,b.addEventListener("load",function(){Kya()}),b.src=e?e:"",this.api.Ei().tick("ftr"));
this.G.style.backgroundImage=e?"url("+e+")":""};g.w(g.lW,g.V);g.lW.prototype.resize=function(){};
g.lW.prototype.B=function(a){var b=this;uYa(this);var c=a.JN,d=this.api.U();"GENERIC_WITHOUT_LINK"!==c||d.N?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.Ud(oW(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Tk(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.N?this.api.U().L("html5_enable_bandaid_error_screen")&&"HTML5_SPS_UMP_STATUS_REJECTED"===c&&!d.N?(d=d.hostLanguage,a="//support.google.com/youtube/answer/3037019",d&&(a=g.an(a,{hl:d})),this.Ud(oW(this,"HTML5_SPS_UMP_STATUS_REJECTED",
a))):this.Ud(g.mW(a.errorMessage)):this.Ud(oW(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.an(c,{hl:a})),this.Ud(oW(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.Jc&&!d.D&&tYa(this,function(e){if(g.$U(e,b.api,!iS(b.api.U()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.zc("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",
productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var sYa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.w(vYa,g.V);g.k=vYa.prototype;g.k.onClick=function(a){g.$U(a,this.J,!0);this.J.logClick(this.element)};
g.k.onVideoDataChange=function(a,b){xYa(this,b);this.Le&&yYa(this,this.Le)};
g.k.Y3=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&xYa(this,b);this.j&&yYa(this,a.state);this.Le=a.state};
g.k.xd=function(){this.D.show();this.J.ra("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)};
g.k.Qb=function(){this.D.hide();this.J.ra("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.w(pW,g.V);pW.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.V.prototype.hide.call(this)};
pW.prototype.onStateChange=function(a){this.Hc(a.state)};
pW.prototype.Hc=function(a){if(g.JG(a,128))var b=!1;else{var c;b=(null==(c=this.api.fd())?0:c.xt)?!1:g.JG(a,16)||g.JG(a,1)?!0:!1}b?this.j.start():this.hide()};
pW.prototype.B=function(){this.message.style.display="block"};g.w(qW,g.LU);qW.prototype.onMutedAutoplayChange=function(a){this.C&&(a?(zYa(this),this.xd()):(this.j&&this.logClick(),this.Qb()))};
qW.prototype.Ak=function(a){this.api.isMutedByMutedAutoplay()&&g.LG(a,2)&&this.Qb()};
qW.prototype.onClick=function(){this.api.unMute();this.logClick()};
qW.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.w(g.rW,g.IK);g.k=g.rW.prototype;g.k.init=function(){var a=this.api,b=a.Xb();this.FI=a.getPlayerSize();this.Gc(b);this.fq();this.Yb();this.api.ra("basechromeinitialized",this);this.vO()&&this.api.ra("standardControlsInitialized")};
g.k.onVideoDataChange=function(a,b){var c=this.oE!==b.videoId;if(c||"newdata"===a){a=this.api;a.isFullscreen()||(this.FI=a.getPlayerSize());var d;(null==(d=this.api.getVideoData(1))?0:g.NT(d))&&this.eq()}c&&(this.oE=b.videoId,c=this.Rg,c.Ia=3E3,hW(c,512,!0),this.fq());this.api.L("web_render_jump_buttons")&&b.showSeekingControls&&(this.h0=572)};
g.k.L$=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.vB=function(){var a=this.api.Nk()&&this.api.fp(),b=this.api.Yz();return this.pN||a||this.OO||b};
g.k.eq=function(){var a=!this.vB();g.bv(this.api.getRootNode(),"ytp-menu-shown",!a);var b;(null==(b=this.api.getVideoData(1))?0:g.NT(b))&&g.bv(this.api.getRootNode(),"ytp-hide-controls",!a)};
g.k.iH=function(a){try{if(!g.Uf(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Wf(a);)a=a===this.api.getRootNode()?null:g.Sf(a);return!!a};
g.k.EA=function(a){var b=this.api.getRootNode();g.bv(b,"ytp-autohide",a);g.bv(b,"ytp-autohide-active",!0);this.yV.start(a?250:100);a&&(this.XK=!1,g.$u(b,"ytp-touch-mode"));this.qN=!a;this.api.EK(!a)};
g.k.eQ=function(){var a=this.api.getRootNode();g.bv(a,"ytp-autohide-active",!1)};
g.k.saa=function(){this.uS=!0};
g.k.raa=function(a){if(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)this.uS=!1,this.vS&&this.Tc(this.vS),0===this.FE&&sW(this,a)?(this.PO(),this.CH.start(),this.vS=this.T(this.api.qb(),"touchmove",this.saa,void 0,!0)):this.CH.stop();DYa(this)&&sW(this,a)&&!this.api.U().Z&&BYa(this);var b=this.AS.gk();if(!g.UR(this.api.U())&&RR&&EYa(this,a))b&&a.preventDefault();else if(this.XK=!0,g.Yu(this.api.getRootNode(),"ytp-touch-mode"),this.Rg.uu(),this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)if(b=
this.api.Xb(),!(!this.api.Uh()||g.JG(b,2)&&g.iU(this.api)||g.JG(b,64))){b=Date.now()-this.sY;this.FE+=1;if(350>=b){this.cD=!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.FE-1);0<d&&d<b?(this.wF(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.wF(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));a.preventDefault()}else iW&&this.api.U().Z&&
sW(this,a)&&a.preventDefault();this.sY=Date.now();this.B_.start()}};
g.k.qaa=function(){this.qJ.Rz=!1;this.api.ra("rootnodemousedown",this.qJ)};
g.k.maa=function(a){if(this.api.U().L("web_fix_fine_scrubbing_false_play")){if(EYa(this,a)||this.qJ.Rz)return}else if(this.qJ.Rz||EYa(this,a))return;DYa(this)||!sW(this,a)||this.CH.isActive()||(BYa(this),a.preventDefault());this.cD&&(this.cD=!1)};
g.k.PO=function(){};
g.k.UF=function(){};
g.k.wF=function(){};
g.k.vF=function(){};
g.k.Mr=function(){var a=this.api.Xb();g.JG(a,2)&&g.iU(this.api)||(g.CL(a)?this.api.pauseVideo():(this.pn&&(a=this.pn.C,document.activeElement===a.element&&this.api.ra("largeplaybuttonclicked",a.element)),this.api.oA(),this.api.playVideo(),this.pn&&document.activeElement===this.pn.C.element&&(null==(a=this.vO())?a=0:a.playButton?(a.playButton.focus(),a=!0):a=!1,a||this.api.getRootNode().focus())))};
g.k.naa=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!CYa(this,BC(a)))if(a=this.api.U(),(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)&&this.cD)this.cD=!1;else if(a.Ob&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.RD(d)})}catch(d){this.RD(d)}};
g.k.RD=function(a){String(a).includes("fullscreen error")?g.uF(a):g.tF(a)};
g.k.oaa=function(a){FYa(this,.3,a.scale);a.preventDefault()};
g.k.paa=function(a){FYa(this,.1,a.scale)};
g.k.Yb=function(){var a=this.api.qb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Rg.resize();g.bv(b,"ytp-fullscreen",this.api.isFullscreen());g.bv(b,"ytp-large-width-mode",c);g.bv(b,"ytp-small-mode",this.Vg());g.bv(b,"ytp-tiny-mode",this.NI());g.bv(b,"ytp-big-mode",this.Ch());this.Eg&&this.Eg.resize(a)};
g.k.Ak=function(a){this.Gc(a.state);this.fq()};
g.k.qB=da(7);g.k.iO=function(){var a=!!this.oE&&!this.api.Mf()&&!this.QQ,b=2===this.api.getPresentingPlayerType(),c=this.api.U();if(b){if(Hgb&&c.L("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=dW(this.api.Bb());a&&(a=(a=b.player.getVideoData(2))?a.isListed&&!g.wJ(b.player.U()):!1);return a}return a&&(c.Rm||this.api.isFullscreen()||c.jl)};
g.k.fq=function(){var a=this.iO();this.Jn!==a&&(this.Jn=a,g.bv(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Gc=function(a){var b=a.isCued()||this.api.En()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.wS&&this.Tc(this.wS),this.wS=this.T(this.api.qb(),"touchstart",this.raa,void 0,b));var c=this.Rg,d=a.isPlaying()&&!g.JG(a,32)||this.api.gE();hW(c,128,!d);c=this.Rg;d=3===this.api.getPresentingPlayerType();hW(c,256,d);c=this.api.getRootNode();g.JG(a,2)?d=[e3.ENDED]:(d=[],g.JG(a,8)?d.push(e3.PLAYING):g.JG(a,4)&&d.push(e3.PAUSED),g.JG(a,1)&&!g.JG(a,32)&&d.push(e3.BUFFERING),
g.JG(a,32)&&d.push(e3.SEEKING),g.JG(a,64)&&d.push(e3.UNSTARTED));g.Zb(this.vM,d)||(g.av(c,this.vM),this.vM=d,g.Zu(c,d));d=this.api.U();var e=g.JG(a,2);a:{var f=this.api.U();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f="3"===h&&!g.JG(a,2)||this.isCued||(2!==this.api.getPresentingPlayerType()?0:pgb(dW(this.api.Bb())))||this.api.Yz()||g.UR(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.bv(c,"ytp-hide-controls",!f);g.bv(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.OO);
g.JG(a,128)&&!g.UR(d)?(this.Eg||(this.Eg=new g.lW(this.api),g.N(this,this.Eg),g.oU(this.api,this.Eg.element,4)),this.Eg.B(a.Tg),this.Eg.show()):this.Eg&&(this.Eg.dispose(),this.Eg=null)};
g.k.zq=function(){return this.api.Nk()&&this.api.fp()?(this.api.nB(!1,!1),!0):this.api.Mf()?(g.jU(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.OO=a;this.eq()};
g.k.Ch=function(){return!1};
g.k.Vg=function(){return!this.Ch()&&(this.api.getPlayerSize().width<this.h0||290>this.api.getPlayerSize().height)};
g.k.NI=function(){return this.Vg()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.wm=function(){return this.XK};
g.k.zp=function(){return null};
g.k.OW=function(){return null};
g.k.An=function(){var a=this.api.qb().getPlayerSize();return new g.hs(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.Rt=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.qb().EK(a)};
g.k.uu=function(){};
g.k.vO=function(){return null};g.w(tW,g.NF);g.k=tW.prototype;g.k.gm=function(){return 1E3*this.api.getDuration(this.Go,!1)};
g.k.stop=function(){this.j&&this.Id.Tc(this.j)};
g.k.Rc=function(){var a=this.api.getProgressState(this.Go);this.B={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.Go,!1)};this.ra("h")};
g.k.getProgressState=function(){return this.B};
g.k.Z3=function(a){g.LG(a,2)&&this.ra("g")};g.w(g.uW,g.V);g.uW.prototype.show=function(){g.V.prototype.show.call(this);g.Ru(this.j)};
g.uW.prototype.hide=function(){this.B.stop();g.V.prototype.hide.call(this)};
g.uW.prototype.UF=function(a){a?g.JG(this.J.Xb(),64)||vW(this,Mwa(),"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?vW(this,Qwa(),"\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u044f\u043c\u0443\u044e \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044e"):vW(this,Jwa(),"\u041f\u0430\u0443\u0437\u0430"))};g.w(IYa,g.V);g.k=IYa.prototype;g.k.QF=function(a){a?this.j=fU(this.J,this.element,null):(this.j=this.j,this.j(),this.j=null)};
g.k.xd=function(){this.J.U().L("player_new_info_card_format")&&g.Xu(this.J.getRootNode(),"ytp-cards-teaser-shown")&&!g.UR(this.J.U())||(this.B.show(),g.zE("iv-button-shown"))};
g.k.Qb=function(){g.zE("iv-button-hidden");this.B.hide()};
g.k.gk=function(){return this.Jb&&4!==this.B.state};
g.k.xa=function(){this.j&&this.j();g.V.prototype.xa.call(this)};
g.k.j$=function(){g.zE("iv-button-mouseover")};
g.k.Q9=function(a){this.J.Nk();var b=g.Xu(this.J.getRootNode(),"ytp-cards-teaser-shown");g.zE("iv-teaser-clicked",b);var c;if(null==(c=this.J.getVideoData())?0:g.DT(c)){var d;a=null==(d=this.J.getVideoData())?void 0:g.ET(d);(null==a?0:a.onIconTapCommand)&&this.J.ob("innertubeCommand",a.onIconTapCommand)}else d=0===a.screenX&&0===a.screenY,this.J.nB(!this.J.fp(),d,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.w(JYa,g.V);g.k=JYa.prototype;g.k.U0=function(){this.J.Nk()&&this.J.fp()&&this.gk()&&this.Qb()};
g.k.lS=function(){this.Qb();!this.J.Nk()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Zg.Qb();g.zE("iv-teaser-clicked",null!=this.j);if(this.onClickCommand)this.J.ob("innertubeCommand",this.onClickCommand);else{var a;(null==(a=this.J.getVideoData())?0:g.DT(a))||this.J.nB(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.k.b4=function(){g.zE("iv-teaser-mouseover");this.j&&this.j.stop()};
g.k.Naa=function(a){this.J.U().L("player_new_info_card_format")&&!g.UR(this.J.U())?this.Zg.Qb():this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Zg.xd();this.j||!a||this.J.fp()||this.B&&this.B.isActive()||(this.xd(a),g.zE("iv-teaser-shown"))};
g.k.xd=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.ov(a.teaserText));this.D.show();this.B=new g.Qu(function(){g.Yu(this.J.getRootNode(),"ytp-cards-teaser-shown");this.J.L("player_new_info_card_format")&&!g.UR(this.J.U())&&this.Zg.Qb();this.bM()},0,this);
this.B.start();this.Zg.QF(!1);this.j=new g.Qu(this.Qb,580+a.durationMs,this);this.j.start();this.G.push(this.Ta("mouseover",this.nU,this));this.G.push(this.Ta("mouseout",this.mU,this))};
g.k.bM=function(){if(!this.J.U().L("player_new_info_card_format")&&g.UR(this.J.U())&&this.Jb){var a=this.Zg.element.offsetLeft,b=g.Af("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Zg.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.S5=function(){g.UR(this.J.U())&&this.J.Vg()&&this.Jb&&this.Y.start()};
g.k.nU=function(){this.K.stop();this.j&&this.j.isActive()&&this.N.start()};
g.k.mU=function(){this.N.stop();this.j&&!this.j.isActive()&&this.K.start()};
g.k.x$=function(){this.j&&this.j.stop()};
g.k.w$=function(){this.Qb()};
g.k.a4=function(){this.Qb()};
g.k.Qb=function(){!this.j||this.C&&this.C.isActive()||(g.zE("iv-teaser-hidden"),this.D.hide(),g.$u(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.Qu(function(){for(var a=g.u(this.G),b=a.next();!b.done;b=a.next())this.Tc(b.value);this.G=[];this.j&&(this.j.dispose(),this.j=null);this.Zg.QF(!0);!this.J.Nk()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Zg.Qb()},330,this),this.C.start())};
g.k.gk=function(){return this.Jb&&4!==this.D.state};
g.k.xa=function(){var a=this.J.getRootNode();a&&g.$u(a,"ytp-cards-teaser-shown");g.xb(this.B,this.C,this.j);g.V.prototype.xa.call(this)};var u3={},xW=(u3.BUTTON="ytp-button",u3.TITLE_NOTIFICATIONS="ytp-title-notifications",u3.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",u3.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",u3.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",u3);g.w(KYa,g.V);
KYa.prototype.onClick=function(){this.api.logClick(this.element);var a=!this.j;this.updateValue("label",a?"\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435");
this.updateValue("pressed",a);LYa(this,a)};g.Va("yt.pubsub.publish",g.zE);g.w(g.yW,g.V);g.yW.prototype.D=function(){window.location.reload()};
g.yW.prototype.j=function(){g.Yu(this.element,"ytp-sb-subscribed")};
g.yW.prototype.B=function(){g.$u(this.element,"ytp-sb-subscribed")};g.w(PYa,g.V);g.k=PYa.prototype;g.k.P9=function(a){this.api.logClick(this.j);var b=this.api.U();b.B||b.fb?RYa(this)&&(this.isExpanded()?this.qH():this.NH()):g.Ue(zW(this));a.preventDefault()};
g.k.vR=function(){TYa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.NH=function(){if(RYa(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.C&&this.C.stop();this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));
var a=this.api.getVideoData();this.B&&a.Ll&&a.subscribed&&(this.B.show(),this.api.logVisibility(this.B.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.qH=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.C&&this.C.start()};
g.k.Sa=function(){var a=this.api.U();g.UF(this,!this.api.kd());var b=this.api.getVideoData(),c=this.api.U(),d=this.api.getVideoData();this.D=!1;var e=!!d.videoId&&!!d.Jc&&!!d.profilePicture;2===this.api.getPresentingPlayerType()?this.D=e&&!!d.isListed&&!!d.author:g.UR(c)&&(this.D=e&&!g.QT(d)&&!c.C&&!(c.Z&&200>this.api.getPlayerSize().width));c=b.profilePicture;a=g.UR(a)?b.expandedTitle:b.author;c=void 0===c?"":c;a=void 0===a?"":a;this.D?(this.K!==c&&(this.j.style.backgroundImage="url("+c+")",this.K=
c),this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",zW(this)),this.updateValue("channelLogoLabel",g.aK('\u0424\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u0430\u0432\u0442\u043e\u0440\u0430 \u043a\u0430\u043d\u0430\u043b\u0430 "$CHANNEL_NAME"',{CHANNEL_NAME:a})),g.Yu(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.$u(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,this.D&&this.Z);this.subscribeButton&&
(this.subscribeButton.channelId=b.Gl);this.updateValue("expandedTitle",b.expandedTitle);this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelTitleLink",zW(this));this.updateValue("expandedSubtitle",b.expandedSubtitle)};
g.k.Nc=function(a){g.V.prototype.Nc.call(this,a);this.api.logVisibility(this.j,this.D&&a)};g.w(AW,g.VF);AW.prototype.nZ=function(){this.ra("size-change")};
AW.prototype.focus=function(){this.content.focus()};
AW.prototype.jZ=function(){this.ra("back")};g.w(g.BW,AW);g.k=g.BW.prototype;g.k.Xc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Tb(this.items,a,UYa);if(0<=b)return;b=~b;g.Rb(this.items,b,0,a);Qf(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.AQ,this);this.menuItems.ra("size-change")};
g.k.ph=function(a){a.unsubscribe("size-change",this.AQ,this);this.isDisposed()||(g.Ib(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ra("size-change"))};
g.k.AQ=function(){this.menuItems.ra("size-change")};
g.k.focus=function(){for(var a=0,b=0;b<this.items.length;b++){var c=this.items[b].element;if("menuitemradio"===c.getAttribute("role")){if("true"===c.getAttribute("aria-checked")){a=b;break}}else break}this.items[a].focus()};
g.k.xp=function(){return this.items.length};g.w(DW,g.OU);DW.prototype.j=function(a){a.defaultPrevented||39!==a.keyCode||(this.element.click(),a.preventDefault())};g.w(VYa,g.V);g.k=VYa.prototype;g.k.show=function(){g.V.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.k.hide=function(){g.V.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.k.d4=function(a){var b=BC(a),c=g.Uf(this.closeButton.element,b),d=g.Uf(this.element,b);a=this.j&&g.Uf(this.j,b)&&g.UG(a);b&&(d||a)&&!c||this.hide()};
g.k.e4=function(){NYa(g.gS(this.Va.U()),"user_info_panel",function(){window.location.reload()})};
g.k.Sa=function(){var a=this.Va.U(),b={USER_NAME:a.userDisplayName,USER_EMAIL:a.Wi};this.updateValue("icon",Kwa());this.updateValue("watchingAsUsername",g.aK("\u0412\u044b \u0432\u043e\u0448\u043b\u0438 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 $USER_NAME",b));a.Wi?this.updateValue("watchingAsEmail",g.aK("($USER_EMAIL)",b)):this.updateValue("watchingAsEmail","")};g.w(XYa,g.BW);g.k=XYa.prototype;g.k.T5=function(){this.Hb.Qb()};
g.k.V9=function(){bWa(this.iz.element)};
g.k.f$=function(){GW(this,this.J.getDebugText(!0))&&vW(this.Yd,uwa())};
g.k.g$=function(){GW(this,this.J.getVideoEmbedCode())&&vW(this.Yd,ywa());this.J.logClick(this.vn.element);Exa("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.h$=function(){GW(this,this.J.getVideoUrl(!0,!0))&&vW(this.Yd,cG());this.J.logClick(this.getVideoUrl.element);Exa("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.i$=function(){GW(this,this.J.getVideoUrl(!1,!0))&&vW(this.Yd,cG());this.J.logClick(this.Bn.element);Exa("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.onLoopChange=function(a){var b;null==(b=this.Yk)||ZU(b,a)};
g.k.q$=function(){this.J.setLoopVideo(this.Yk.getValue());this.Hb.Qb();this.J.logClick(this.Yk.element)};
g.k.faa=function(a){this.J.reportPlaybackIssue();if(g.$U(a,this.J,!iS(this.J.U()))){a=this.J;var b=a.app.getFeedbackProductData();a.zc("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Hb.Qb()};
g.k.Baa=function(){g.WT(this.J,"isVideoInfoVisible",[])?g.WT(this.J,"hideVideoInfo",[]):g.WT(this.J,"showVideoInfo",[]);this.Hb.Qb()};
g.k.Aaa=function(){this.yl&&(this.sG||(this.sG=new VYa(this.J,this.yl.element),g.N(this,this.sG),g.oU(this.J,this.sG.element,4)),this.sG.show(),this.Hb.Qb(),this.J.logClick(this.yl.element))};
g.k.onVideoDataChange=function(a,b){this.RF(b)};
g.k.RF=function(a){var b=this.J.U(),c=2===this.J.getPresentingPlayerType(),d=!c||a.isListed;d=!b.ma&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.B&&(b.fmt=a.B.itag),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.Ma&&(b.partnerid=a.Ma),b=g.an("//support.google.com/googleplay/",b));g.UF(this.vn,d&&a.allowEmbed);g.UF(this.getVideoUrl,d);g.UF(this.Bn,d&&
!a.isLivePlayback);this.xF.Ud(b,"href");var e;null==(e=this.Yk)||g.UF(e,!a.isLivePlayback&&!c);var f;null==(f=this.yl)||g.UF(f,!c)};
g.k.Nc=function(a){g.BW.prototype.Nc.call(this,a);this.J.logVisibility(this.vn.element,a);this.J.logVisibility(this.getVideoUrl.element,a);this.J.logVisibility(this.Bn.element,a);this.Yk&&this.J.logVisibility(this.Yk.element,a);this.yl&&this.J.logVisibility(this.yl.element,a)};g.w(g.HW,g.LU);g.k=g.HW.prototype;g.k.show=function(){g.LU.prototype.show.call(this);this.HB()};
g.k.hide=function(){g.LU.prototype.hide.call(this);1<this.j.length&&g.IW(this)};
g.k.HB=function(){aZa(this);this.Jb&&(ZYa(this),g.vs(this.element,this.size))};
g.k.Hj=function(){var a=this.j.pop();$Ya(this,a,this.j[this.j.length-1],!0)};
g.k.f4=function(a){if(!a.defaultPrevented)switch(a.keyCode){case 27:this.Qb();a.preventDefault();break;case 37:1<this.j.length&&this.Hj();a.preventDefault();break;case 39:a.preventDefault()}};
g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
g.k.xa=function(){g.LU.prototype.xa.call(this);this.G&&this.G.dispose();this.K&&this.K.dispose()};g.w(dZa,g.HW);g.k=dZa.prototype;g.k.i4=function(a){var b=BC(a);if(!(b&&(ag(b,"a")||ag(b,null,"ytp-no-contextmenu"))||this.Jb)){var c;this.Ca=(a=null==(c=a.touches)?void 0:c.item(0))?new g.Ke(a.clientX,a.clientY):new g.Ke(0,0);this.va.start()}};
g.k.LZ=function(){this.va.stop()};
g.k.Saa=function(){this.open(this.Ca)};
g.k.IW=function(){if(this.C&&YYa(this.C)){var a=YYa(this.C).element;a.tabIndex=-1;a.focus()}else this.element.tabIndex=-1,this.element.focus()};
g.k.show=function(){this.C||(this.C=new XYa(this.J,this,this.Yd),g.N(this,this.C),g.FW(this,this.C));this.C.onLoopChange(this.J.getLoopVideo());g.HW.prototype.show.call(this);this.J.logVisibility(this.element,!0);this.C.Nc(!0)};
g.k.hide=function(){cZa(this);g.HW.prototype.hide.call(this);this.J.logVisibility(this.element,!1);this.C&&this.C.Nc(!1)};
g.k.T9=function(a){var b=BC(a);this.Jb||b&&(ag(b,"a")||ag(b,null,"ytp-no-contextmenu"))||(a.preventDefault(),this.open(new g.Ke(a.pageX,a.pageY)))};
g.k.xd=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.Ke(b.x,b.y))}g.HW.prototype.xd.call(this,a)};
g.k.open=function(a){eZa(this);var b=this.J.getVideoData();g.bv(this.element,"ytp-dni",b.Of);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.HW.prototype.xd.call(this);var c=document.body;b=new cs(0,Infinity,Infinity,0);var d=vf(c);for(var e=d.j.body,f=d.j.documentElement,h=dca(d.j);c=pia(c);)if(!(g.Cf&&0==c.clientWidth||g.Vc&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=os(c,"overflow")){var l=g.ts(c),m=new g.Ke(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=cca(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.hs(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.qs(this.element,new g.Ke(d.left,d.top));g.FC(this.D);this.D.T(document,"contextmenu",this.b$);this.D.T(this.J,"fullscreentoggled",this.onFullscreenToggled);this.D.T(this.J,"pageTransition",this.g4)};
g.k.b$=function(a){if(!a.defaultPrevented){var b=BC(a);g.Uf(this.element,b)||this.Qb();this.J.U().disableNativeContextMenu&&a.preventDefault()}};
g.k.onFullscreenToggled=function(){this.Qb();eZa(this)};
g.k.g4=function(){this.Qb()};g.w(JW,g.V);JW.prototype.onClick=function(){var a=this,b,c,d,e;return g.H(function(f){if(1==f.j)return b=a.api.U(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.z(f,hZa(a,e),2);f.B&&gZa(a);a.api.logClick(a.element);g.Aa(f)})};
JW.prototype.Sa=function(){this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{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","\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443");
this.visible=fZa(this);g.bv(this.element,"ytp-copylink-button-visible",this.visible);g.UF(this,this.visible);this.tooltip.Mh();this.api.logVisibility(this.element,this.visible&&this.Z)};
JW.prototype.Nc=function(a){g.V.prototype.Nc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
JW.prototype.xa=function(){g.V.prototype.xa.call(this);g.$u(this.element,"ytp-copylink-button-visible")};g.w(KW,g.V);KW.prototype.show=function(){g.V.prototype.show.call(this);g.Ru(this.B)};
KW.prototype.hide=function(){this.D.stop();this.C=0;g.$u(this.element,"ytp-chapter-seek");g.$u(this.element,"ytp-time-seeking");g.V.prototype.hide.call(this)};
KW.prototype.wF=function(a,b,c,d){this.C=a===this.K?this.C+d:d;this.K=a;var e=-1===a?this.Y:this.N;e&&this.J.logClick(e);this.G?this.B.stop():g.Tu(this.B);this.D.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.J.qb().getPlayerSize().height;e=this.J.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.Ga("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";1===a?(a=this.J.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.Ga("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");iZa(this,this.G?this.C:d)};g.w(OW,g.V);g.k=OW.prototype;g.k.yJ=function(){};
g.k.FA=function(){};
g.k.wB=function(){return!0};
g.k.Kca=function(){if(this.expanded){this.Xa.show();var a=this.K.element.scrollWidth}else a=this.K.element.scrollWidth,this.Xa.hide();this.jc=34+a;g.bv(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.jc)+"px";this.Wa.start()};
g.k.D6=function(){this.badge.element.style.width=(this.expanded?this.jc:34)+"px";this.fb.start()};
g.k.BJ=function(a){this.va=a;NW(this);MW(this);this.Im()};
g.k.uda=function(){g.bv(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.LK=function(){return this.Ca||this.va||!this.Y};
g.k.Im=function(){this.wB()?this.ma.show():this.ma.hide();kZa(this)};
g.k.oU=function(){this.enabled=!1;this.Im()};
g.k.tda=function(){this.Im()};
g.k.M9=function(a){this.tb=1===a;this.Im();g.bv(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.e$=function(){g.bv(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.J.isFullscreen());this.Im()};g.w(QW,g.HW);QW.prototype.open=function(a,b){this.initialize(a.items)&&this.xd(b,!!b)};
QW.prototype.initialize=function(a){g.CW(this.bf);if(void 0===a||0===a.length)return!1;var b=a.length;a=g.u(a);for(var c=a.next();!c.done;c=a.next())this.Xc(c.value,b--);return!0};
QW.prototype.Xc=function(a,b){a.menuNavigationItemRenderer?nZa(this,a.menuNavigationItemRenderer,b):a.menuServiceItemRenderer&&oZa(this,a.menuServiceItemRenderer,b)};g.w(qZa,OW);g.k=qZa.prototype;g.k.G$=function(a){this.Za||(this.Za=new QW(this.J),g.N(this,this.Za));var b,c;if(null==(b=this.Lc)?0:null==(c=b.menu)?0:c.menuRenderer)this.Za.open(this.Lc.menu.menuRenderer,a.target),a.preventDefault()};
g.k.k$=function(){this.J.ob("innertubeCommand",this.Kd);this.J.logClick(this.infoButton.element)};
g.k.wB=function(){return!!this.j};
g.k.LK=function(){return!!this.j};
g.k.yJ=function(a){a.target===this.dismissButton.element||a.target===this.overflowButton.element||a.target===this.infoButton.element?a.preventDefault():(this.Jc&&this.J.ob("innertubeCommand",this.Jc),PW(this,!1))};
g.k.FA=function(){PW(this,!0);var a,b;(null==(a=this.j)?0:null==(b=a.bannerData)?0:b.dismissedStatusKey)&&this.Ob.push(this.j.bannerData.dismissedStatusKey);this.fB()};
g.k.oU=function(){this.fB();TW(this)};
g.k.vca=function(a){var b=this,c;if(a.id!==(null==(c=this.j)?void 0:c.identifier)){this.fB();c=g.u(this.Ia);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){h=f=void 0;var l=(null==(f=e)?void 0:null==(h=f.bannerData)?void 0:h.dismissedStatusKey)||"";if(this.Ob.includes(l))break;this.j=e;this.banner.element.setAttribute("aria-label",d.accessibilityLabel||"");d.trackingParams&&(this.B=!0,this.J.setTrackingParams(this.badge.element,
d.trackingParams));this.ma.show();NW(this);g.UF(this.Ea,!d.stayInApp);BZa(this);sZa(this);SW(this);this.Jc=g.U(d.onTapCommand,xF);if(e=g.U(d.menuOnTap,xF))this.Lc=g.U(e,Yjb);e=void 0;this.banner.update({thumbnail:null==(e=(d.thumbnailSources||[])[0])?void 0:e.url,title:d.productTitle,price:d.priceReplacementText?d.priceReplacementText:d.price,salesOriginalPrice:uZa(this),priceDropReferencePrice:vZa(this),priceA11yText:wZa(this),affiliateDisclaimer:d.affiliateDisclaimer,vendor:xZa(this)});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.ub=new g.Qu(function(){AZa(b)},1E3),this.Ea.hide(),this.countdownTimer.show(),AZa(this));
this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&rZa(this)&&(this.Vb=new g.Qu(function(){tZa(b)},1E3),tZa(this))}}}};
g.k.fB=function(){this.j&&(this.j=void 0,this.Im())};
g.k.onVideoDataChange=function(a,b){var c=this;"dataloaded"===a&&TW(this);a=this.J.L("web_player_enable_vod_featured_product_banner_on_desktop");var d,e,f=null==b?void 0:null==(d=b.getPlayerResponse())?void 0:null==(e=d.videoDetails)?void 0:e.isLiveContent;if(a||f){var h,l,m;b=g.U(null==(h=b.getWatchNextResponse())?void 0:null==(l=h.playerOverlays)?void 0:null==(m=l.playerOverlayRenderer)?void 0:m.productsInVideoOverlayRenderer,Wjb);this.J.L("web_player_enable_info_button_in_banner_on_desktop")&&
a&&!f?this.infoButton.show():this.infoButton.hide();this.J.L("web_player_enable_overflow_button_in_banner_on_desktop")&&(this.overflowButton.show(),this.dismissButton.hide(),this.infoButton.hide());var n=null==b?void 0:b.featuredProductsEntityKey;this.trendingOfferEntityKey=null==b?void 0:b.trendingOfferEntityKey;var p;if(h=null==b?void 0:null==(p=b.dismissButton)?void 0:p.trackingParams)this.J.setTrackingParams(this.dismissButton.element,h),this.C=!0;var q;(p=null==b?void 0:null==(q=b.dismissButton)?
void 0:q.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.YF(p));this.Kd=null==b?void 0:b.onClickCommand;this.Ia.length||(zZa(this,n),SW(this));var r;null==(r=this.Yc)||r.call(this);this.Yc=g.kT.subscribe(function(){zZa(c,n);SW(c)})}else{var t;
null==(t=this.Yc)||t.call(this);this.fB()}};
g.k.xa=function(){TW(this);BZa(this);sZa(this);OW.prototype.xa.call(this)};g.w(GZa,g.V);GZa.prototype.onClick=function(){this.J.logClick(this.element,this.B)};g.w(HZa,g.LU);g.k=HZa.prototype;g.k.show=function(){g.LU.prototype.show.call(this);this.J.ra("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);IZa(this,!0)};
g.k.hide=function(){g.LU.prototype.hide.call(this);this.J.ra("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);IZa(this,!1)};
g.k.getId=function(){return this.D};
g.k.xp=function(){return this.itemData.length};
g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:(null==(c=b.Hl)?void 0:null==(d=c.title)?void 0:d.content)||"",body:(null==(e=b.Hl)?void 0:null==(f=e.bodyText)?void 0:f.content)||""});var h;a=(null==(h=b.Hl)?void 0:h.trackingParams)||null;this.J.setTrackingParams(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.Hl)?0:l.ctaButtons)for(b=g.u(b.Hl.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.U(l.value,
Lib))l=new GZa(this.J,l,this.j),l.Ke&&(this.itemData.push(l),l.Ja(this.items))}};
g.k.xa=function(){this.hide();g.LU.prototype.xa.call(this)};g.w(LZa,g.V);g.k=LZa.prototype;g.k.onVideoDataChange=function(a,b){KZa(this,b);this.Le&&NZa(this,this.Le)};
g.k.m4=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&KZa(this,b);NZa(this,a.state);this.Le=a.state};
g.k.oZ=function(a){(this.D=a)?this.hide():this.j&&this.show()};
g.k.l4=function(){this.B||this.xd();this.showControls=!0};
g.k.j4=function(){this.B||this.Qb();this.showControls=!1};
g.k.xd=function(){this.j&&!this.D&&(this.C.show(),this.J.ra("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))};
g.k.Qb=function(){this.j&&!this.D&&(this.C.hide(),this.J.ra("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))};
g.k.zca=function(){this.B=!1;this.showControls||this.Qb()};var Slb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(Slb).reduce(function(a,b){a[Slb[b]]=b;return a},{});
var Tlb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Tlb).reduce(function(a,b){a[Tlb[b]]=b;return a},{});
var Ulb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Ulb).reduce(function(a,b){a[Ulb[b]]=b;return a},{});var Vlb,Wlb;Vlb=[{option:"#fff",text:"\u0411\u0435\u043b\u044b\u0439"},{option:"#ff0",text:"\u0416\u0435\u043b\u0442\u044b\u0439"},{option:"#0f0",text:"\u0417\u0435\u043b\u0435\u043d\u044b\u0439"},{option:"#0ff",text:"\u0413\u043e\u043b\u0443\u0431\u043e\u0439"},{option:"#00f",text:"\u0421\u0438\u043d\u0438\u0439"},{option:"#f0f",text:"\u041f\u0443\u0440\u043f\u0443\u0440\u043d\u044b\u0439"},{option:"#f00",text:"\u041a\u0440\u0430\u0441\u043d\u044b\u0439"},{option:"#080808",text:"\u0427\u0435\u0440\u043d\u044b\u0439"}];
Wlb=[{option:0,text:UW(0)},{option:.25,text:UW(.25)},{option:.5,text:UW(.5)},{option:.75,text:UW(.75)},{option:1,text:UW(1)}];
g.XW=[{option:"fontFamily",text:"\u0421\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e \u0448\u0440\u0438\u0444\u0442\u043e\u0432",options:[{option:1,text:"\u041c\u043e\u043d\u043e\u0448\u0438\u0440\u0438\u043d\u043d\u044b\u0439 \u0441 \u0437\u0430\u0441\u0435\u0447\u043a\u0430\u043c\u0438"},{option:2,text:"\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441 \u0437\u0430\u0441\u0435\u0447\u043a\u0430\u043c\u0438"},{option:3,text:"\u041c\u043e\u043d\u043e\u0448\u0438\u0440\u0438\u043d\u043d\u044b\u0439 \u0431\u0435\u0437 \u0437\u0430\u0441\u0435\u0447\u0435\u043a"},
{option:4,text:"\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u0435\u0437 \u0437\u0430\u0441\u0435\u0447\u0435\u043a"},{option:5,text:"\u041e\u0431\u044b\u0447\u043d\u044b\u0439"},{option:6,text:"\u041a\u0443\u0440\u0441\u0438\u0432"},{option:7,text:"\u041c\u0430\u043b\u044b\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u043d\u044b\u0435"}]},{option:"color",text:"\u0426\u0432\u0435\u0442 \u0448\u0440\u0438\u0444\u0442\u0430",options:Vlb},{option:"fontSizeIncrement",
text:"\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430",options:[{option:-2,text:UW(.5)},{option:-1,text:UW(.75)},{option:0,text:UW(1)},{option:1,text:UW(1.5)},{option:2,text:UW(2)},{option:3,text:UW(3)},{option:4,text:UW(4)}]},{option:"background",text:"\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430",options:Vlb},{option:"backgroundOpacity",text:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u043d\u0430",options:Wlb},{option:"windowColor",
text:"\u0426\u0432\u0435\u0442 \u043e\u043a\u043d\u0430",options:Vlb},{option:"windowOpacity",text:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u043e\u043a\u043d\u0430",options:Wlb},{option:"charEdgeStyle",text:"\u0421\u0442\u0438\u043b\u044c \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432",options:[{option:0,text:"\u0411\u0435\u0437 \u043a\u043e\u043d\u0442\u0443\u0440\u0430"},{option:4,text:"\u0421 \u0442\u0435\u043d\u044c\u044e"},
{option:1,text:"\u041f\u0440\u0438\u043f\u043e\u0434\u043d\u044f\u0442\u044b\u0439"},{option:2,text:"\u0423\u0442\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439"},{option:3,text:"\u0413\u0440\u0430\u043d\u0438\u0446\u044b"}]},{option:"textOpacity",text:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0448\u0440\u0438\u0444\u0442\u0430",options:[{option:.25,text:UW(.25)},{option:.5,text:UW(.5)},{option:.75,text:UW(.75)},{option:1,text:UW(1)}]}];var Xlb=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.w(TZa,g.IK);g.k=TZa.prototype;
g.k.wX=function(a){a.repeat||(this.C.DI=!1);var b=!1,c=a.keyCode,d=BC(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.aU(this.api.app)||Xlb.includes(c)),f=!1,h=!1,l=this.api.U();a.defaultPrevented?(e=!1,h=!0):l.Gf&&!g.aU(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);wW(this.Yd,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);
wW(this.Yd,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Uh()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),h=f=!0);break;case 35:this.api.Uh()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),h=f=!0)}}b&&WW(this,!0);(b||h)&&this.Rg.uu();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&a.preventDefault();l.K&&(a={keyCode:a.keyCode,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,
shiftKey:a.shiftKey,handled:a.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.zc("onKeyPress",a))};
g.k.xX=function(a){this.handleGlobalKeyUp(a.keyCode,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)&&a.preventDefault()};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){this.api.ra("keyboardserviceglobalkeyup",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h});b=!1;if(this.C.DI)return b;(c=g.mU(this.api.Bb()))&&(c=c.du)&&c.Jb&&(c.rX(a),b=!0);switch(a){case 9:WW(this,!0);b=!0;break;case 32:if(this.api.L("web_speedmaster_spacebar_control")&&!this.G&&!this.api.U().Gf){var l,m;a=null==(l=this.progressBar)?void 0:null==(m=l.B)?void 0:m.isEnabled;b=this.Mr(a)}}return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.C.DI=!1);var m=!1,n=this.api.U();if(n.Gf&&!g.aU(this.api.app))return m;var p=g.mU(this.api.Bb());if(p&&(p=p.du)&&p.Jb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.qX(a)}n.N||m||(m=f||String.fromCharCode(a).toLowerCase(),this.B+=m,0==="awesome".indexOf(this.B)?(m=!0,7===this.B.length&&$ka(this.api.getRootNode(),"ytp-color-party")):(this.B=m,m=0==="awesome".indexOf(this.B)));if(!m&&(!g.aU(this.api.app)||
Xlb.includes(a))){var q=this.api.getVideoData(),r,t;p=null==(r=this.progressBar)?void 0:null==(t=r.B)?void 0:t.isEnabled;r=q?q.jl:[];t=IU?d:c;switch(a){case 80:b&&!n.Wa&&(vW(this.Yd,Nwa(),"\u041d\u0430\u0437\u0430\u0434"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Wa&&(vW(this.Yd,Gwa(),"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435"),this.api.nextVideo(),m=!0);break;case 74:this.api.Uh()&&(this.api.startSeekCsiAction(),this.j?LW(this.j,-1,10):vW(this.Yd,{I:"svg",X:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{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(),void 0,void 0,73),m=!0);break;case 76:this.api.Uh()&&(this.api.startSeekCsiAction(),this.j?LW(this.j,1,10):vW(this.Yd,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{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(),void 0,void 0,74),m=!0);break;case 37:this.api.Uh()&&(this.api.startSeekCsiAction(),t?(t=QZa(r,1E3*this.api.getCurrentTime()),-1!==t&&null!=this.j&&(jZa(this.j,-1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,53),m=!0)):(this.j?LW(this.j,-1,5):vW(this.Yd,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{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(),void 0,void 0,71),m=!0));break;case 39:this.api.Uh()&&(this.api.startSeekCsiAction(),t?(t=PZa(r,1E3*this.api.getCurrentTime()),-1!==t&&null!=this.j&&(jZa(this.j,1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,52),m=!0)):(null!=this.j?LW(this.j,1,5):vW(this.Yd,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{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(),void 0,void 0,72),m=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),wW(this.Yd,this.api.getVolume(),!1)):(this.api.mute(),wW(this.Yd,0,!0));m=!0;break;case 32:m=this.api.L("web_speedmaster_spacebar_control")?!this.api.U().Wa:this.Mr(p);break;case 75:m=this.Mr(p);break;case 190:b?n.enableSpeedOptions&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),GYa(this.Yd,!1),m=!0):this.api.Uh()&&(this.step(1),m=!0);break;case 188:b?n.enableSpeedOptions&&
(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-.25,!0),GYa(this.Yd,!0),m=!0):this.api.Uh()&&(this.step(-1),m=!0);break;case 70:YVa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0);
break;case 27:p?(this.progressBar.Av(),m=!0):this.K()&&(m=!0)}if("3"!==n.controlsType)switch(a){case 67:g.aW(this.api.Bb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),HYa(this.Yd,!n||n&&!n.displayName),m=!0);break;case 79:YW(this,"textOpacity");break;case 87:YW(this,"windowOpacity");break;case 187:case 61:YW(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:YW(this,"fontSizeIncrement",!0,!0)}var v;b||c||d||(48<=a&&57>=a?v=a-48:96<=a&&105>=a&&(v=a-96));null!=v&&this.api.Uh()&&
(this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(v/10*(n.seekableEnd-n.seekableStart)+n.seekableStart,void 0,void 0,void 0,81),m=!0);m&&this.Rg.uu()}this.G||this.api.ra("keyboardserviceglobalkeydown",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h,repeat:l},this.C);return m};
g.k.step=function(a){this.api.Uh();if(this.api.Xb().isPaused()){var b=this.api.getVideoData().B;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30),void 0,void 0,0<a?77:78)}};
g.k.Mr=function(a){if(!this.api.U().Wa){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.U(d.miniplayer,ikb))?void 0:e.playbackMode)}else b=!1;b&&this.api.ob("onExpandMiniplayer");a?this.progressBar.NN():(a=!g.CL(this.api.Xb()),this.Yd.UF(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
g.k.xa=function(){g.Tu(this.D);g.IK.prototype.xa.call(this)};g.w(g.ZW,g.V);g.ZW.prototype.Fr=da(13);g.ZW.prototype.Sa=function(){var a=this.J.U(),b=a.C||this.J.L("web_player_hide_overflow_button_if_empty_menu")&&this.ai.isEmpty();a=g.UR(a)&&g.lU(this.J)&&g.JG(this.J.Xb(),128);var c=this.J.getPlayerSize();this.visible=this.J.Vg()&&!a&&240<=c.width&&!g.QT(this.J.getVideoData())&&!b&&!this.j&&!this.J.kd();g.bv(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.J.Mh();this.J.logVisibility(this.element,this.visible&&this.Z)};
g.ZW.prototype.Nc=function(a){g.V.prototype.Nc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};
g.ZW.prototype.xa=function(){g.V.prototype.xa.call(this);g.$u(this.element,"ytp-overflow-button-visible")};g.w(UZa,g.LU);g.k=UZa.prototype;g.k.n4=function(a){a=BC(a);g.Uf(this.element,a)&&(g.Uf(this.j,a)||g.Uf(this.closeButton,a)||MU(this))};
g.k.Qb=function(){g.LU.prototype.Qb.call(this);this.J.Vl(this.element)};
g.k.show=function(){this.Jb&&this.J.ra("OVERFLOW_PANEL_OPENED");g.LU.prototype.show.call(this);this.element.setAttribute("aria-modal","true");WZa(this,!0)};
g.k.hide=function(){g.LU.prototype.hide.call(this);this.element.removeAttribute("aria-modal");WZa(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.gk()&&MU(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.Jb){b.focus();break}};g.w(XZa,g.V);XZa.prototype.onClick=function(a){g.$U(a,this.api)&&this.api.playVideoAt(this.index)};g.w(YZa,g.LU);g.k=YZa.prototype;g.k.show=function(){g.LU.prototype.show.call(this);this.C.T(this.api,"videodatachange",this.cM);this.C.T(this.api,"onPlaylistUpdate",this.cM);this.cM()};
g.k.hide=function(){g.LU.prototype.hide.call(this);g.FC(this.C);this.updatePlaylist(null)};
g.k.cM=function(){this.updatePlaylist(this.api.getPlaylist());this.api.U().C&&(this.Ga("ytp-playlist-menu-title-name").removeAttribute("href"),this.D&&(this.Tc(this.D),this.D=null))};
g.k.vK=function(){var a=this.playlist,b=a.author,c=b?"$AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.getLength())};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.aK(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.G)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{c=g.u(this.j);for(d=c.next();!d.done;d=c.next())d.value.dispose();c=
a.getLength();this.j=[];for(d=0;d<c;d++){var e=new XZa(this.api,a,d);this.j.push(e);e.Ja(this.items)}this.selected=this.j[a.index];this.G=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.Raa=function(a){var b=this.api.getVideoUrl(!0);g.aV(b,this.api,a)};
g.k.updatePlaylist=function(a){this.playlist!==a?(this.playlist&&this.playlist.unsubscribe("shuffle",this.vK,this),this.playlist=a,this.G=null,a?(a.subscribe("shuffle",this.vK,this),this.vK()):this.Jb&&this.hide()):this.playlist&&this.vK()};
g.k.focus=function(){this.selected.focus()};
g.k.xa=function(){this.hide();g.LU.prototype.xa.call(this)};g.w($W,g.V);$W.prototype.hide=function(){g.V.prototype.hide.call(this);this.Nc(!1);this.api.Mh()};
$W.prototype.Sa=function(){var a=g.UR(this.api.U());g.bv(this.element,"ytp-playlist-menu-button-tiny",400>this.api.qb().getPlayerSize().width&&!a);this.api.kd()?this.hide():this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.aK("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.aK('\u041f\u043b\u0435\u0439\u043b\u0438\u0441\u0442 "$PLAYLIST_NAME"',{PLAYLIST_NAME:this.playlist.title})}),
this.Jb||(this.show(),this.api.Mh()),this.visible=!0,this.Nc(!0)):this.Jb&&this.hide()};
$W.prototype.Nc=function(a){g.V.prototype.Nc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
$W.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Sa,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Sa,this);this.Sa()};g.w(ZZa,g.V);g.k=ZZa.prototype;g.k.p4=function(){this.C?c_a(this):b_a(this)};
g.k.o4=function(){this.C?(aX(this),this.G=!0):b_a(this)};
g.k.u9=function(){this.D=!0;this.NF(1);this.J.ra("promotooltipacceptbuttonclicked",this.acceptButton);aX(this);this.j&&this.J.logClick(this.acceptButton)};
g.k.Z9=function(){this.D=!0;this.NF(2);aX(this);this.j&&this.J.logClick(this.dismissButton)};
g.k.q4=function(a){if(1===this.J.getPresentingPlayerType()||2===this.J.getPresentingPlayerType()&&this.K){var b=!0,c=g.Af("ytp-ad-overlay-ad-info-dialog-container"),d=BC(a);if(this.B&&d&&g.Uf(this.B,d))this.B=null;else{1===this.J.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
var e=d_a(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.Uf(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.Uf(this.element,d))}this.targetElement&&this.Jb&&!c&&(!d||b&&g.UG(a))&&(this.D=!0,aX(this))}}};
g.k.NF=function(a){var b=this.tooltipRenderer.promoConfig;if(b){switch(a){case 0:var c;if(null==(c=b.impressionEndpoints)?0:c.length)var d=b.impressionEndpoints[0];break;case 1:d=b.acceptCommand;break;case 2:d=b.dismissCommand}var e;a=null==(e=g.U(d,Kib))?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.J.hm(),(null==a?0:Wxa(d,a.HN))&&VH(a,d,e))}};
g.k.Yb=function(){this.G||(this.targetElement||(this.targetElement=$Za(this)),c_a(this))};
var a_a={"ytp-settings-button":g.Pwa()};g.w(bX,g.V);bX.prototype.onStateChange=function(a){this.Hc(a.state)};
bX.prototype.Hc=function(a){g.UF(this,g.JG(a,2))};
bX.prototype.onClick=function(){this.J.Xb();this.J.playVideo()};g.w(cX,g.V);cX.prototype.onClick=function(a){this.api.logClick(this.element);var b=g.an(this.api.U().Ea,{focusSearch:"true"}),c={};g.WT(this.api,"addEmbedsConversionTrackingParams",[c]);g.pP(c,"emb_search");b=g.an(b,c);var d;(c=null==(d=this.api.getVideoData().t9)?void 0:d.params)&&(b=g.an(b,{bp:c}));g.Ue(b);a.preventDefault()};
cX.prototype.j=function(){if(this.api.L("embeds_web_enable_search_button")){var a=this.api.U();var b=this.api.getVideoData(),c=this.api.qb().getPlayerSize().width;a=g.UR(a)&&c>=this.B&&!a.C&&!b.isAd()&&!this.api.kd()}else a=!1;this.visible=a;g.UF(this,this.visible);g.bv(this.element,"ytp-search-button-visible",this.visible);g.bv(this.element,"ytp-show-search-title",!this.api.Vg());this.api.logVisibility(this.element,this.visible&&this.Z)};
cX.prototype.Nc=function(a){g.V.prototype.Nc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.w(g.dX,g.V);g.k=g.dX.prototype;g.k.Gr=da(10);g.k.onClick=function(){var a=this,b=this.api.U(),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){f_a(a,f)})}catch(f){f instanceof Error&&f_a(this,f)}else this.Ze.zq(),MU(this.B,this.element,!1);
this.api.logClick(this.element)};
g.k.Sa=function(){var a=this.api.U(),b=this.api.kd();g.bv(this.element,"ytp-show-share-title",g.UR(a)&&!b);this.Ze.Ch()&&b?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.ks(this.element,"right",a+"px")):b&&g.ks(this.element,"right","0px");this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{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=e_a(this);g.bv(this.element,"ytp-share-button-visible",this.visible);g.UF(this,this.visible);this.tooltip.Mh();this.api.logVisibility(this.element,e_a(this)&&this.Z)};
g.k.Nc=function(a){g.V.prototype.Nc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
g.k.xa=function(){g.V.prototype.xa.call(this);g.$u(this.element,"ytp-share-button-visible")};g.w(h_a,g.LU);g.k=h_a.prototype;g.k.r4=function(a){a=BC(a);g.Uf(this.G,a)||g.Uf(this.closeButton,a)||MU(this)};
g.k.Qb=function(){g.LU.prototype.Qb.call(this);this.tooltip.Vl(this.element);this.api.logVisibility(this.j,!1);for(var a=g.u(this.C),b=a.next();!b.done;b=a.next())b=b.value,this.api.hasVe(b.element)&&this.api.logVisibility(b.element,!1)};
g.k.show=function(){var a=this.Jb;g.LU.prototype.show.call(this);this.Sa();a||this.api.ob("onSharePanelOpened")};
g.k.S8=function(){this.Jb&&this.Sa()};
g.k.Sa=function(){var a=this;g.Yu(this.element,"ytp-share-panel-loading");g.$u(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.D.checked;b.getSharePanelCommand&&VH(this.api.hm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.$u(a.element,"ytp-share-panel-loading"),j_a(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.aK("\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u0443 \u0441\u0441\u044b\u043b\u043a\u0443: $URL",{URL:b}));bWa(this.j);this.api.logVisibility(this.j,!0)};
g.k.onFullscreenToggled=function(a){!a&&this.gk()&&MU(this)};
g.k.focus=function(){this.j.focus()};
g.k.xa=function(){g.LU.prototype.xa.call(this);i_a(this)};g.w(m_a,OW);g.k=m_a.prototype;g.k.xa=function(){r_a(this);OW.prototype.xa.call(this)};
g.k.yJ=function(a){a.target!==this.dismissButton.element&&(PW(this,!1),this.J.ob("innertubeCommand",this.onClickCommand))};
g.k.FA=function(){this.Ra=!0;PW(this,!0);this.Im()};
g.k.N$=function(a){this.N=a;this.Im()};
g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Ra=!1,this.va=!0,this.Y=this.Ca=!1,r_a(this),q_a(this,!1),this.D=this.j=!1,fX(this),n_a(this);if(a||!b.videoId)this.C=this.B=!1;var c,d;if(null==b?0:null==(c=b.getPlayerResponse())?0:null==(d=c.videoDetails)?0:d.isLiveContent)this.jg(!1);else{var e,f,h;b=g.U(null==(e=b.getWatchNextResponse())?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:h.productsInVideoOverlayRenderer,
Wjb);this.N=this.enabled=!1;if(b){if(this.J.L("web_player_enable_vod_featured_product_banner_on_desktop")&&(e=null==b?void 0:b.featuredProductsEntityKey)){f=g.kT.getState().entities;var l;if(null==(l=KO(f,"featuredProductsEntity",e))?0:l.productsData){this.jg(!1);return}}this.enabled=!0;if(!this.B){var m;l=null==(m=b.badgeInteractionLogging)?void 0:m.trackingParams;(this.B=!!l)&&this.J.setTrackingParams(this.badge.element,l||null)}if(!this.C){var n;if(this.C=!(null==(n=b.dismissButton)||!n.trackingParams)){var p;
this.J.setTrackingParams(this.dismissButton.element,(null==(p=b.dismissButton)?void 0:p.trackingParams)||null)}}b.isContentForward&&(m=b.productsData,q_a(this,!0),n_a(this),m=p_a(this,m),n=[],0<m.length&&n.push(m[0]),1<m.length&&(p=new g.V({I:"div",S:"ytp-suggested-action-more-products-icon"}),g.N(this,p),n.push(p),n.push.apply(n,g.pa(m.slice(1)))),this.G=new g.V({I:"div",V:n,S:"ytp-suggested-action-content-forward-container"}),g.N(this,this.G),this.Ma.element.append(this.G.element));this.text=g.YF(b.text);
var q;if(m=null==(q=b.dismissButton)?void 0:q.a11yLabel)this.Gb=g.YF(m);this.onClickCommand=b.onClickCommand;this.timing=b.timing;this.yf()}lZa(this);NW(this);this.Im()}};
g.k.wB=function(){return!this.N&&this.enabled&&!this.Ra&&!this.J.Vg()&&!this.tb&&(this.Y||this.va)};
g.k.BJ=function(a){OW.prototype.BJ.call(this,a);if(this.j||this.D)this.timing&&eX(this.timing.preview)&&(this.j=!1,fX(this),this.D=!1,fX(this),this.J.Cf("shopping_overlay_preview_collapsed"),this.J.Cf("shopping_overlay_preview_expanded"),a=gX(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),eX(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.Cf("shopping_overlay_expanded"),a.end=1E3*this.timing.expanded.endSec),this.J.yf([a])),
this.Ca=!0,NW(this);fX(this)};
g.k.jg=function(a){(this.Y=a)?(MW(this),NW(this,!1)):(r_a(this),this.Na.start());this.Im()};
g.k.yf=function(a){var b=this.timing;a=(void 0===a?0:a)+this.J.getCurrentTime();var c=[],d=b.visible,e=b.preview;b=b.expanded;eX(d)&&(k_a(d,a),c.push(gX(d.startSec,d.endSec,"shopping_overlay_visible")));eX(e)&&(k_a(e,a),d=e.startSec+1,c.push(gX(e.startSec,d,"shopping_overlay_preview_collapsed")),c.push(gX(d,e.endSec,"shopping_overlay_preview_expanded")));eX(b)&&(k_a(b,a),c.push(gX(b.startSec,b.endSec,"shopping_overlay_expanded")));this.J.yf(c)};g.w(t_a,g.V);
t_a.prototype.Sa=function(){var a=this.api.U();g.UF(this,g.UR(a)&&this.api.kd());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Jb);var b=this.api.getVideoData(),c=!1;2===this.api.getPresentingPlayerType()?c=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.Jc&&!!b.profilePicture:g.UR(a)&&(c=!!b.videoId&&!!b.Jc&&!!b.profilePicture&&!g.QT(b)&&!a.C&&!(a.Z&&200>this.api.getPlayerSize().width));var d=b.profilePicture;a=g.UR(a)?b.expandedTitle:b.author;d=void 0===d?"":d;a=void 0===
a?"":a;c?(this.B!==d&&(this.j.style.backgroundImage="url("+d+")",this.B=d),this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",hX(this)),this.updateValue("channelLogoLabel",g.aK('\u0424\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u0430\u0432\u0442\u043e\u0440\u0430 \u043a\u0430\u043d\u0430\u043b\u0430 "$CHANNEL_NAME"',{CHANNEL_NAME:a})),g.Yu(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.$u(this.api.getRootNode(),"ytp-title-enable-channel-logo");
this.api.logVisibility(this.j,c&&this.Z);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.api.logVisibility(this.channelName,c&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Gl);this.updateValue("expandedTitle",b.expandedTitle);this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelTitleLink",hX(this))};g.w(iX,g.LU);iX.prototype.show=function(){g.LU.prototype.show.call(this);this.j.start()};
iX.prototype.hide=function(){g.LU.prototype.hide.call(this);this.j.stop()};
iX.prototype.gt=function(a,b){"dataloaded"===a&&((this.Wi=b.Wi,this.Gf=b.Gf,isNaN(this.Wi)||isNaN(this.Gf))?this.C&&(this.J.Cf("intro"),this.J.removeEventListener(g.VJ("intro"),this.K),this.J.removeEventListener(g.WJ("intro"),this.G),this.J.removeEventListener("onShowControls",this.D),this.hide(),this.C=!1):(this.J.addEventListener(g.VJ("intro"),this.K),this.J.addEventListener(g.WJ("intro"),this.G),this.J.addEventListener("onShowControls",this.D),a=new g.UJ(this.Wi,this.Gf,{priority:9,namespace:"intro"}),
this.J.yf([a]),this.C=!0))};g.w(jX,g.V);jX.prototype.onClick=function(){this.J.Zt()};
jX.prototype.Sa=function(){var a=!0;g.UR(this.J.U())&&(a=a&&480<=this.J.qb().getPlayerSize().width);g.UF(this,a);this.updateValue("icon",this.J.Sh()?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.w(v_a,g.V);v_a.prototype.xa=function(){this.j=null;g.V.prototype.xa.call(this)};g.w(kX,g.V);kX.prototype.onClick=function(){this.J.ob("innertubeCommand",this.B)};
kX.prototype.N=function(a){a!==this.G&&(this.update({title:a,ariaLabel:a}),this.G=a);a?this.show():this.hide()};
kX.prototype.K=function(){this.j.disabled=null==this.B;g.bv(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Rc()};g.w(lX,kX);lX.prototype.onClickCommand=function(a){g.U(a,jT)&&this.Rc()};
lX.prototype.updateVideoData=function(a,b){var c,d,e;a=g.U(null==(c=b.getWatchNextResponse())?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.decoratedPlayerBarRenderer,WRa);var f;this.B=null==(f=g.U(null==a?void 0:a.playerBarActionButton,g.JM))?void 0:f.command;kX.prototype.K.call(this)};
lX.prototype.Rc=function(){var a="",b=this.D.j,c,d="clips"===(null==(c=this.J.getLoopRange())?void 0:c.type);if(1<b.length&&!d){a=1E3*this.J.getProgressState().current;c=VW(b,a);a=b[c].title||"\u042d\u043f\u0438\u0437\u043e\u0434\u044b";if(c!==this.currentIndex||this.C)this.J.ob("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.C=!1}else this.C=!0;kX.prototype.N.call(this,a)};g.w(mX,g.V);mX.prototype.G=function(a){g.JG(a.state,32)?U_a(this,this.api.ek()):this.Jb&&(g.JG(a.state,16)||g.JG(a.state,1))||this.j.hide()};
mX.prototype.hg=function(){var a=this.api.Xb();(g.JG(a,32)||g.JG(a,16))&&V_a(this)};
mX.prototype.K=function(){this.C=NaN;V_a(this)};
mX.prototype.hide=function(){this.B&&U_a(this,null);g.V.prototype.hide.call(this)};g.w(W_a,g.V);g.k=W_a.prototype;g.k.onClick=function(){var a=this;if(this.J.U().Ob||this.J.U().Z){this.J.logClick(this.element);try{this.J.toggleFullscreen().catch(function(b){a.RD(b)})}catch(b){this.RD(b)}}else MU(this.message,this.element,!0)};
g.k.RD=function(a){String(a).includes("fullscreen error")?g.uF(a):g.tF(a);this.qQ()};
g.k.qQ=function(){this.disable();this.message.xd(this.element,!0)};
g.k.Mw=function(){vC()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.O5=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.qQ()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=tC(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK":"\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u044d\u0442\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK").split(/\$(BEGIN|END)_LINK/);
this.message=new g.LU(this.J,{I:"div",La:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},V:[b[0],{I:"a",X:{href:"https://support.google.com/youtube/answer/6276924",target:this.J.U().Y},ya:b[2]},b[4]]},100,!0);this.message.hide();g.N(this,this.message);this.message.subscribe("show",function(c){a.Ze.gD(a.message,c)});
g.oU(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}};
g.k.Sa=function(){var a=YVa(this.J),b=this.J.U().Z&&250>this.J.getPlayerSize().width;g.UF(this,a&&!b);this.J.logVisibility(this.element,this.Jb)};
g.k.Fm=function(a){if(a){var b={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{I:"g",
S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.gU(this.J,"\u0412\u044b\u0445\u043e\u0434 \u0438\u0437 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430","f");this.update({"data-title-no-tooltip":"\u0412\u044b\u0445\u043e\u0434 \u0438\u0437 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430"});
document.activeElement===this.element&&this.J.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(c){g.uF(c)})}else b={I:"svg",
X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",
V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.gU(this.J,"\u0412\u043e \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d","f"),this.update({"data-title-no-tooltip":"\u0412\u043e \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d"});a=this.message?null:a;this.update({title:a,icon:b});this.Ze.Te().Mh()};
g.k.xa=function(){this.message||((0,this.j)(),this.j=null);g.V.prototype.xa.call(this)};g.w(nX,g.V);nX.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.j,!0);var a=0<this.j?1:-1,b=Math.abs(this.j),c=this.J.Di().wv;c&&LW(c,a,b);this.B.isActive()?this.C=!0:(a=["ytp-jump-spin"],0>this.j&&a.push("backwards"),this.element.classList.add.apply(this.element.classList,g.pa(a)),g.Ru(this.B))};g.w(oX,kX);oX.prototype.onClickCommand=function(a){g.U(a,Vjb)&&this.Rc()};
oX.prototype.updateVideoData=function(){var a,b;this.B=null==(a=Y_a(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;kX.prototype.K.call(this)};
oX.prototype.Rc=function(){var a="",b=this.D.K,c,d=null==(c=Y_a(this))?void 0:c.headerTitle;c=d?g.YF(d):"";var e;d="clips"===(null==(e=this.J.getLoopRange())?void 0:e.type);1<b.length&&!d&&(a=1E3*this.J.getProgressState().current,e=OZa(b,a),a=null!=e?b[e].title:c,null!=e&&e!==this.currentIndex&&(this.J.ob("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));kX.prototype.N.call(this,a)};g.w(pX,g.V);pX.prototype.onClick=function(){this.J.ob("onCollapseMiniplayer");this.J.logClick(this.element)};
pX.prototype.Sa=function(){this.visible=!this.J.isFullscreen();g.UF(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)};
pX.prototype.Nc=function(a){g.V.prototype.Nc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.w(g.qX,g.V);g.k=g.qX.prototype;g.k.pU=function(a){this.visible=300<=a.width||this.Ea;g.UF(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)};
g.k.y$=function(){this.J.U().Xa?this.J.isMuted()?this.J.unMute():this.J.mute():MU(this.message,this.element,!0);this.J.logClick(this.element)};
g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.J.U();a=0===d?1:50<a?1:0;if(this.G!==a){var f=this.va;isNaN(f)?a0a(this,a):gXa(this.Ia,function(l){a0a(c,f+(c.G-f)*l)},250);
this.G=a}d=0===d?1:0;if(this.D!==d){var h=this.Y;isNaN(h)?b0a(this,d):gXa(this.ma,function(l){b0a(c,h+(c.D-h)*l)},250);
this.D=d}e.Xa&&(e=g.gU(this.J,"\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0437\u0432\u0443\u043a\u0430","m"),d=g.gU(this.J,"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a":"\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0437\u0432\u0443\u043a\u0430"}),this.tooltip.Mh())};
g.k.Nc=function(a){g.V.prototype.Nc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};
var Z_a=["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"],$_a=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.w(g.rX,g.V);g.rX.prototype.onStateChange=function(a){this.Hc(a.state)};
g.rX.prototype.Hc=function(a){var b=g.yT(this.J.getVideoData()),c=!1;g.CL(a)?a=b?4:2:g.JG(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.gU(this.J,"\u041f\u0430\u0443\u0437\u0430","k");this.update({"data-title-no-tooltip":"\u041f\u0430\u0443\u0437\u0430"});break;case 3:b="\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c";this.update({"data-title-no-tooltip":"\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c"});break;case 1:b=g.gU(this.J,"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c",
"k");this.update({"data-title-no-tooltip":"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c"});break;case 4:b="\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u044f\u043c\u0443\u044e \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044e",this.update({"data-title-no-tooltip":"\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u044f\u043c\u0443\u044e \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044e"})}3===a?this.update({title:b,icon:c0a(a)}):
(this.update({title:b}),(b=c0a(a))&&this.j&&3!==this.j?iXa(this.transition,this.element,b):this.updateValue("icon",b));this.tooltip.Mh();this.j=a}};
g.rX.prototype.onVideoDataChange=function(){g.bv(this.element,"ytp-play-button-playlist",g.lU(this.J))};
g.rX.prototype.Mr=function(a){this.J.logClick(this.element);if(g.CL(this.J.Xb()))this.J.pauseVideo();else{if(this.J.xg()&&this.J.Xb().isCued()){var b={},c;if(null==(c=this.J.getVideoData())?0:c.G)b.cttAuthInfo={token:this.J.getVideoData().G,videoId:this.J.getVideoData().videoId};RH("direct_playback",b);this.J.Ei().timerName="direct_playback"}else 3===this.j&&NV(this.J.Ei());this.J.playVideo()}this.J.xg()&&"click"===(null==a?void 0:a.type)&&this.element.blur()};g.w(g.sX,g.V);g.k=g.sX.prototype;g.k.onVideoDataChange=function(){e0a(this);this.D&&(this.Tc(this.D),this.D=null);this.videoData=this.J.getVideoData(1);if(this.playlist=this.J.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.D=this.T(this.J,"progresssync",this.s4);this.C=f0a(this);d0a(this);this.dM(this.J.qb().getPlayerSize())};
g.k.dM=function(a){a=void 0===a?this.J.qb().getPlayerSize():a;var b,c="clips"===(null==(b=this.J.getLoopRange())?void 0:b.type);a=(g.lU(this.J)||this.j&&g.pU(this.J)&&!this.J.L("web_hide_next_button")||g0a(this))&&!c&&(this.j||400<=a.width);g.UF(this,a);this.J.logVisibility(this.element,a)};
g.k.onClick=function(a){this.J.logClick(this.element);var b=!0;this.K?b=g.$U(a,this.J):a.preventDefault();b&&(this.j&&5===this.J.getPresentingPlayerType()?this.J.ra("ytoprerollinternstitialnext"):this.j?(NV(this.J.Ei()),this.J.ra("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.C?this.J.seekTo(0):(NV(this.J.Ei()),this.J.ra("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))};
g.k.s4=function(){var a=f0a(this);a!==this.C&&(this.C=a,d0a(this))};
g.k.xa=function(){this.B&&(this.B(),this.B=null);e0a(this);g.V.prototype.xa.call(this)};g.w(i0a,g.V);g.k=i0a.prototype;g.k.u4=function(a){this.fM(a.pageX);this.eM(a.pageX+a.deltaX);j0a(this)};
g.k.fM=function(a){this.ma=a-this.Na};
g.k.eM=function(a){a-=this.Na;!isNaN(this.ma)&&0<this.thumbnails.length&&(this.Y=a-this.ma,0<this.thumbnails.length&&0!==this.Y&&(this.C=this.N+this.Y,a=o0a(this,this.C),this.C<=this.j/2&&this.C>=n0a(this)?(this.api.seekTo(a,!1,void 0,void 0,25),g.ks(this.Ca,"transform","translateX("+(this.C-this.j/2)+"px)"),h0a(this,a)):this.C=this.N))};
g.k.t4=function(){this.va&&(this.va.Rz=!0);var a=300>(0,g.pD)()-this.Wa;if(5>Math.abs(this.Y)&&!a){this.Wa=(0,g.pD)();a=this.ma+this.Y;var b=this.j/2-a;this.fM(a);this.eM(a+b);j0a(this);this.api.logClick(this.G)}j0a(this)};
g.k.LA=function(){tX(this,this.api.getCurrentTime())};
g.k.play=function(a){this.api.seekTo(o0a(this,this.C),void 0,void 0,void 0,26);this.api.playVideo();a&&this.api.logClick(this.playButton)};
g.k.onExit=function(a){this.api.seekTo(this.Ra,void 0,void 0,void 0,63);this.api.playVideo();a&&this.api.logClick(this.dismissButton)};
g.k.Yb=function(a,b){this.Na=a;this.j=b;tX(this,this.api.getCurrentTime())};
g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ra=this.api.getCurrentTime(),h0a(this,this.Ra),g.bv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Ma=this.T(this.element,"wheel",this.u4),this.logVisibility(this.isEnabled))};
g.k.disable=function(){this.isEnabled=!1;this.hide();g.bv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Ma&&this.Tc(this.Ma);this.logVisibility(this.isEnabled)};
g.k.reset=function(){this.disable();this.D=[];this.Ea=!1};
g.k.logVisibility=function(a){this.api.logVisibility(this.element,a);this.api.logVisibility(this.G,a);this.api.logVisibility(this.dismissButton,a);this.api.logVisibility(this.playButton,a)};
g.k.xa=function(){for(;this.B.length;){var a=void 0;null==(a=this.B.pop())||a.dispose()}g.V.prototype.xa.call(this)};
g.w(k0a,g.V);g.w(l0a,g.V);g.w(p0a,g.V);g.w(uX,g.V);uX.prototype.Kb=function(a){return"PLAY_PROGRESS"===a?this.K:"LOAD_PROGRESS"===a?this.G:"LIVE_BUFFER"===a?this.D:this.B};s0a.prototype.update=function(a,b,c,d){c=void 0===c?0:c;this.width=b;this.D=c;this.j=b-c-(void 0===d?0:d);this.position=g.He(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.w(t0a,g.V);g.w(g.xX,g.VF);g.k=g.xX.prototype;
g.k.W0=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.Cf("timedMarkerCueRange");w0a(this);for(var c=g.u(b.Fe),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Na[d])?void 0:e.markerType;e=void 0;var h=null==(e=this.Na[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 t0a;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;C0a(this,f)}D0a(this,this.K);a=this.K;f=this.me;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=RZa(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.yf(e);this.Gf=this.Na[d];a=!0}else if("MARKER_TYPE_HEATMAP"===f){d=this.Na[d];p=n=e=m=l=h=void 0;if(d&&
d.markers){f=null!=(e=null==(p=d.markersMetadata)?void 0:null==(n=p.heatmapMetadata)?void 0:n.minHeightDp)?e:0;e=null!=(h=null==(m=d.markersMetadata)?void 0:null==(l=m.heatmapMetadata)?void 0:l.maxHeightDp)?h:60;h=this.j.length;l=null;for(m=0;m<h;m++){p=this.j[m].startTime;var q=m===h-1?Infinity:this.j[m+1].startTime;m===this.G.length&&v0a(this);n=[];l&&n.push(l);for(var r=g.u(d.markers),t=r.next();!t.done;t=r.next()){t=t.value;var v=Number(t.startMillis);v>=p&&v<=q&&n.push(t)}0<e&&(this.va.style.height=
e+"px");p=this.G[m];q=n;t=f;var x=e,A=0===m;A=void 0===A?!1:A;q0a(p,x);r=q;v=p.j;A=void 0===A?!1:A;var E=1E3/r.length,F=[];F.push({x:0,y:100});for(var G=0;G<r.length;G++){var M=(G+.5)*E,P=100-g.He(100*(r[G].intensityScoreNormalized||0),t/v*100,x/v*100);0!==G||A||F.push({x:0,y:P});F.push({x:M,y:P});G===r.length-1&&F.push({x:1E3,y:P})}F.push({x:1E3,y:100});r=F;q=0===q.length?"":bza(r);p.C.setAttribute("d",q);p.Ke=""!==q;g.bv(p.api.getRootNode(),"ytp-heat-map",p.Ke);0<n.length&&(l=n[n.length-1])}g.yX(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.YF(e.label):""});d=f;this.heatMarkersDecorations=d}}b.KU=this.K;g.bv(this.element,"ytp-timed-markers-enabled",a);return a};
g.k.Yb=function(){g.yX(this);AX(this);D0a(this,this.K);if(this.B){var a=g.ts(this.element).x||0;this.B.Yb(a,this.N)}};
g.k.onClickCommand=function(a){if(a=g.U(a,jT)){var b=a.key;a.isVisible&&b&&H0a(this,b)}};
g.k.Qaa=function(a){this.api.ob("innertubeCommand",this.me[a.id])};
g.k.Rc=function(){AX(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.pK()};
g.k.v4=function(a){if(!a.defaultPrevented){var b=!1;switch(a.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);b=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);b=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);b=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);b=!0;break;case 38:this.api.seekBy(5,void 0,void 0,72);b=!0;break;case 40:this.api.seekBy(-5,void 0,void 0,71),b=!0}b&&a.preventDefault()}};
g.k.gt=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.M7=function(){this.gt("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.Ke();c&&(PT(a)||O0a(this)?this.Fe=!1:this.Fe=a.allowLiveDvr,g.bv(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!PT(a))));Y0a(this,this.api.Uh());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;EX(this);for(BX(this,this.ma,this.ib);0<this.G.length;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.ub={};var d;null==(d=this.B)||d.reset();JX(this);g.bv(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
wX(this))}else this.pK();this.Rh()}if(a){var e;d="clips"===(null==(e=this.Eb)?void 0:e.type);if(e=!a.isLivePlayback){e=this.api.getVideoData();b=g.YRa(e);c=y0a(e);var f;e=null!=b||null!=c&&0<c.length||0<(null==(f=e.uy)?void 0:f.length)}if(e&&!d){f=this.api.getVideoData();d=g.YRa(f);e=!1;if(null==d?0:d.markersMap){e=this.api.getVideoData();var h;e.Lx=(null==(h=d.visibleOnLoad)?void 0:h.key)||e.Lx;h=g.u(d.markersMap);for(d=h.next();!d.done;d=h.next())d=d.value,d.key&&d.value&&(this.ub[d.key]=d.value,
d.value.onChapterRepeat&&(e.C8=d.value.onChapterRepeat));null!=e.Lx&&H0a(this,e.Lx);e=!0}var l;if(0<(null==(l=f.uy)?void 0:l.length)){l=g.kT.getState().entities;h=g.u(f.uy);for(d=h.next();!d.done;d=h.next()){d=d.value;c=void 0;b=null==(c=KO(l,"macroMarkersListEntity",d))?void 0:c.markersList;var m=c=void 0;if("MARKER_TYPE_TIMESTAMPS"===(null==(c=b)?void 0:c.markerType)||"MARKER_TYPE_HEATMAP"===(null==(m=b)?void 0:m.markerType))this.Na[d]=b}e=this.W0()||e}!e&&(l=y0a(f))&&(A0a(this,l),f.jl=this.j,z0a(this));
P0a(this,null);a.w1&&0===this.G.length&&(a=a.w1,l=a.key,a.isVisible&&l&&H0a(this,l))}else u0a(this),w0a(this)}AX(this)};
g.k.N7=function(a){this.Y&&!g.JG(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.Y.cancel();var b;(null==(b=this.B)?0:b.isEnabled)&&g.JG(a.state,8)&&this.api.pauseVideo()};
g.k.qU=function(a){var b=!!this.Eb!==!!a,c=this.Eb;this.Eb=a;P0a(this,c);"clips"!==(null==a?void 0:a.type)&&a||(a?(this.updateValue("clipstarticon",Fwa()),this.updateValue("clipendicon",Fwa()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",xwa()),this.updateValue("clipendicon",wwa()),this.updateValue("clipstarttitle","\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0446\u0435\u043b\u0438\u043a\u043e\u043c"),
this.updateValue("clipendtitle","\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0446\u0435\u043b\u0438\u043a\u043e\u043c")),b&&(this.updateVideoData(this.api.getVideoData(),!0),g.yX(this)),EX(this));BX(this,this.ma,this.ib)};
g.k.Q$=function(a,b,c){var d=g.ts(this.element),e=zX(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=XG(this.C,Number(c.getAttribute("data-position")),0)*e+g.ts(this.progressBar).x);this.Za.x=a-d.x;this.Za.y=b-d.y;a=zX(this);c=DX(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:PT(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=XG(this.C,m)*zX(this).j),b=this.C.B;
O0a(this)&&(b=this.C.B);m=f||g.TG(this.Fe?c-this.C.j:c-b);b=a.position+this.Xf;c-=this.api.Vc();var n;if(null==(n=this.B)||!n.isEnabled)if(this.api.ek()){if(1<this.j.length){n=CX(this,this.Za.x,!0);if(!this.Eb)for(d=0;d<this.j.length;)g.bv(this.j[d].j,"ytp-exp-chapter-hover-effect",d===n),d++;if(1<this.G.length)for(d=0;d<this.j.length;d++)g.bv(this.G[d].element,"ytp-heatmap-hover",d===n)}if(0<this.K.length)for(n=this.Za.x,d=g.u(this.K),e=d.next();!e.done;e=d.next())e=e.value,h=I0a(this,e.timeRangeStartMillis/
(1E3*this.C.j),zX(this)),g.bv(e.element,"ytp-timed-marker-hover",h<=n&&h+6>=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.L("web_key_moments_markers")?this.Gf?(n=OZa(this.K,1E3*c),n=null!=n?this.K[n].title:""):(n=VW(this.j,1E3*c),n=this.j[n].title):(n=VW(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=VW(this.j,1E3*c);this.Xa=Q0a(this,c,d)?d:Q0a(this,c,d+1)?d+1:-1;g.bv(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.Xa&&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.TG(h.decorationTimeMillis/1E3),d=!0)}this.rd!==d&&(this.rd=d,this.api.logVisibility(this.Kd,this.rd));g.bv(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.D?8.55:5.7);e=e<=d?e:d;h=e<160*this.tooltip.scale;d=3;!h&&e/2>a.position&&(d=1);!h&&e/2>this.N-a.position&&(d=2);this.api.U().Z&&
(l-=10);this.G.length&&this.G[0].Ke&&(l-=14*(this.D?2:1),this.Ea||(this.Ea=!0,this.api.logVisibility(this.va,this.Ea)));var q;if(wX(this)&&((null==(q=this.B)?0:q.isEnabled)||0<this.Wa)){var r;l-=(null==(r=this.B)?0:r.isEnabled)?GX(this):this.Wa}q=void 0;wX(this)&&(q="\u041f\u043e\u0442\u044f\u043d\u0438\u0442\u0435 \u0432\u0432\u0435\u0440\u0445 \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0438",this.Ia||(this.Ia=
!0,this.api.logVisibility(this.Yc,this.Ia)));this.tooltip.PK(b,c,m,!!f,l,n,d,q)}else this.tooltip.PK(b,c,m,!!f,l);g.Yu(this.api.getRootNode(),"ytp-progress-bar-hover");N0a(this)};
g.k.P$=function(){this.Rh();g.$u(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ea&&(this.Ea=!1,this.api.logVisibility(this.va,this.Ea));this.Ia&&(this.Ia=!1,this.api.logVisibility(this.Yc,this.Ia))};
g.k.O$=function(a,b){wX(this)&&this.B&&(this.B.Ea?tX(this.B,this.api.getCurrentTime()):m0a(this.B),this.B.show(),g.bv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.B.isEnabled));this.Bd&&(this.Bd.dispose(),this.Bd=null);this.Yf=b;1<this.j.length&&-1!==this.Xa?this.api.seekTo(this.j[this.Xa].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(DX(this,zX(this)),!1,void 0,void 0,7);g.Yu(this.element,"ytp-drag");(this.Pe=g.CL(this.api.Xb()))&&this.api.pauseVideo()};
g.k.R$=function(){if(wX(this)&&this.B){var a=GX(this);this.Wa>=.5*a?(this.B.enable(),tX(this.B,this.api.getCurrentTime()),X0a(this,a)):JX(this)}if(g.JG(this.api.Xb(),32)||3===this.api.getPresentingPlayerType()){var b;if(null==(b=this.B)?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1<this.j.length&&-1!==this.Xa)this.api.seekTo(this.j[this.Xa].startTime/1E3,void 0,void 0,void 0,7);else{a=DX(this,zX(this));this.api.seekTo(a,void 0,void 0,void 0,7);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.logClick(this.Kd)}g.$u(this.element,"ytp-drag");this.Pe&&!g.JG(this.api.Xb(),2)&&this.api.playVideo()}}};
g.k.S$=function(a,b){a=zX(this);a=DX(this,a);this.api.seekTo(a,!1,void 0,void 0,7);var c;wX(this)&&(null==(c=this.B)?0:c.Ea)&&(tX(this.B,a),this.B.isEnabled||(this.Wa=g.He(this.Yf-b-10,0,GX(this)),X0a(this,this.Wa)))};
g.k.Rh=function(){this.tooltip.QO()};
g.k.lZ=function(){this.Eb||(this.updateValue("clipstarticon",vwa()),this.updateValue("clipendicon",vwa()),g.Yu(this.element,"ytp-clip-hover"))};
g.k.kZ=function(){this.Eb||(this.updateValue("clipstarticon",xwa()),this.updateValue("clipendicon",wwa()),g.$u(this.element,"ytp-clip-hover"))};
g.k.pK=function(){this.clipStart=0;this.clipEnd=Infinity;EX(this);BX(this,this.ma,this.ib)};
g.k.wda=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.If("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Ma[c]=b;this.Vb[c]=d;g.Wu(d,b.style);R0a(this,c);this.api.U().L("disable_ad_markers_on_content_progress_bar")||this.j[0].C.appendChild(d)}}else W0a(this,b)};
g.k.Vba=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())W0a(this,b.value)};
g.k.Av=function(a){this.B&&(this.B.onExit(null!=a),JX(this))};
g.k.NN=function(a){this.B&&(this.B.play(null!=a),JX(this))};
g.k.xa=function(){Y0a(this,!1);g.VF.prototype.xa.call(this)};g.w(KX,g.V);KX.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
KX.prototype.Sa=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=1<this.J.getOption("remote","receivers").length);g.UF(this,a&&400<=this.J.qb().getPlayerSize().width);this.J.logVisibility(this.element,this.Jb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Ic:!0,X:{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.twa())}g.bv(this.element,"ytp-remote-button-active",this.isActive())}};
KX.prototype.B=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Hb,b=this.element;if(a.gk())a.Qb();else{a.initialize();a:{var c=g.u(a.bf.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.xd(b));a.xd(b)}}this.J.logClick(this.element)};g.w(LX,g.V);LX.prototype.j=function(a){var b=this.J.U(),c=400;this.J.L("web_player_small_hbp_settings_menu")&&b.N?c=300:b.Z&&(c=200);a=this.B&&a.width>=c;g.UF(this,a);this.J.logVisibility(this.element,a)};
LX.prototype.C=function(){if(this.Hb.Jb)this.Hb.Qb();else{var a=g.aW(this.J.Bb());a&&!a.loaded&&(a.Lh("tracklist",{includeAsr:!0}).length||a.load());this.J.logClick(this.element);this.Hb.xd(this.element)}};
LX.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.nU(this.J),e=c&&!!g.mU(this.J.Bb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.bv(this.element,"ytp-hdr-quality-badge",a);g.bv(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.bv(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.bv(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.bv(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.bv(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.bv(this.element,"ytp-3d-badge",!a&&e&&d)};g.w(MX,YU);MX.prototype.isLoaded=function(){var a=g.gW(this.J.Bb());return void 0!==a&&a.loaded};
MX.prototype.Sa=function(){void 0!==g.gW(this.J.Bb())&&3!==this.J.getPresentingPlayerType()?this.j||(this.Hb.Xc(this),this.j=!0):this.j&&(this.Hb.ph(this),this.j=!1);ZU(this,this.isLoaded())};
MX.prototype.onSelect=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.ra("annotationvisibility",a)};
MX.prototype.xa=function(){this.j&&this.Hb.ph(this);YU.prototype.xa.call(this)};g.w(g.NX,g.OU);g.k=g.NX.prototype;g.k.open=function(){g.FW(this.Hb,this.B)};
g.k.Qj=function(a){$0a(this);var b=this.options[a];b&&(b.element.setAttribute("aria-checked","true"),this.Ud(this.Kk(a)),this.C=a)};
g.k.QM=function(a,b,c){var d=this;b=new g.OU({I:"div",La:["ytp-menuitem"],X:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":"false"},V:[{I:"div",La:["ytp-menuitem-label"],ya:"{{label}}"}]},b,this.Kk(a,!0));b.Ta("click",function(){d.uh(a)});
return b};
g.k.enable=function(a){this.K?a||(this.K=!1,this.gy(!1)):a&&(this.K=!0,this.gy(!0))};
g.k.gy=function(a){a?this.Hb.Xc(this):this.Hb.ph(this)};
g.k.uh=function(a){this.ra("select",a)};
g.k.Kk=function(a){return a.toString()};
g.k.w4=function(a){a.defaultPrevented||39!==a.keyCode||(this.open(),a.preventDefault())};
g.k.xa=function(){this.K&&this.Hb.ph(this);g.OU.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.w(PX,g.NX);PX.prototype.Sa=function(){var a=this.J.getAvailableAudioTracks();1<a.length?(g.OX(this,g.Er(a,this.j)),this.tracks=g.cc(a,this.j,this),this.countLabel.Ud(a.length?" ("+a.length+")":""),this.ra("size-change"),this.Qj(this.j(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
PX.prototype.uh=function(a){g.NX.prototype.uh.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Hb.Hj()};
PX.prototype.j=function(a){return a.toString()};g.w(QX,YU);
QX.prototype.B=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.pU(this.J))this.j||(this.Hb.Xc(this),this.j=!0,this.C.push(this.T(this.J,"videodatachange",this.B)),this.C.push(this.T(this.J,"videoplayerreset",this.B)),this.C.push(this.T(this.J,"onPlaylistUpdate",this.B)),this.C.push(this.T(this.J,"autonavchange",this.D)),a=this.J.getVideoData(),this.D(a.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j){this.Hb.ph(this);this.j=!1;a=g.u(this.C);for(var b=a.next();!b.done;b=
a.next())this.Tc(b.value)}};
QX.prototype.D=function(a){ZU(this,1!==a)};
QX.prototype.onSelect=function(a){this.J.tK(a?2:1);this.j&&(this.J.logVisibility(this.element,this.j),this.J.logClick(this.element))};
QX.prototype.xa=function(){this.j&&this.Hb.ph(this);YU.prototype.xa.call(this)};g.w(a1a,g.OU);a1a.prototype.onClick=function(a){a.preventDefault();var b,c;null==(b=g.cU(this.J))||null==(c=b.zp())||c.Qb();var d,e;null==(d=g.cU(this.J))||null==(e=d.OW())||e.xd(a.target)};g.w(b1a,g.NX);g.k=b1a.prototype;
g.k.lC=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a){this.Ca=this.J.Ps();a=this.J.getAvailableQualityLevels();if(this.j){this.D={};var b=g.WT(this.J,"getAvailableQualityData",[]);b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.D[c.qualityLabel]=c;b=Object.keys(this.D);"auto"===a[a.length-1]&&b.push("auto");this.Ia=new Set(a)}else if(this.G){c=g.WT(this.J,"getAvailableQualityData",[]);b=[];c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.Y[d.quality]=
d,d.quality&&b.push(d.quality);"auto"===a[a.length-1]&&b.push("auto")}else b=a;g.oUa(this.J)&&this.J.Mv()&&b.unshift("missing-qualities");pUa(this.J)&&b.unshift("inline-survey");g.OX(this,b);a=this.J.getVideoData().cotn?!0:!1;c=this.va.Th();c=!g.kS(this.J.U())||!(void 0===a?0:a)||!(void 0===c||c);a=this.B;c=void 0===c?!1:c;c=void 0===c?!1:c;a.HX&&(a=a.Ga("ytp-panel-footer"),g.bv(a,"ytp-panel-hide-footer",c));if(b.length){this.rU();this.enable(!0);return}}this.enable(!1)};
g.k.rU=function(){if(this.j){var a=this.J.getPreferredQuality();this.Ia.has(a)&&(this.N=this.J.getPlaybackQuality(),this.ma=this.J.getPlaybackQualityLabel(),"auto"===a?(this.Qj(a),this.Ud(this.Kk(a))):this.Qj(this.ma))}else a=this.J.getPreferredQuality(),this.options[a]&&(this.N=this.J.getPlaybackQuality(),this.Qj(a),"auto"===a&&this.Ud(this.Kk(a)))};
g.k.uh=function(a){if("missing-qualities"!==a){g.NX.prototype.uh.call(this,a);var b=this.j?this.D[a]:this.Y[a];var c=null==b?void 0:b.quality,d=null==b?void 0:b.formatId,e=null==b?void 0:b.paygatedQualityDetails;b=null==e?void 0:e.endpoint;if(e){var f;e=null==(f=this.options[a])?void 0:f.element;this.J.logClick(e)}if(this.j){var h,l;if(null==(h=g.U(b,g.Eib))?0:null==(l=h.popup)?0:l.notificationActionRenderer)this.J.ob("innertubeCommand",b);else if(b){this.J.ob("innertubeCommand",b);return}d?this.J.setPlaybackQuality(c,
d):this.J.setPlaybackQuality(c)}else{if(this.G){var m,n;if(null==(m=g.U(b,g.Eib))?0:null==(n=m.popup)?0:n.notificationActionRenderer)this.J.ob("innertubeCommand",b);else if(b){this.J.ob("innertubeCommand",b);return}}this.J.setPlaybackQuality(a)}this.Hb.Qb();this.lC()}};
g.k.open=function(){for(var a=g.u(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.J.hasVe(null==(c=b)?void 0:c.element)&&(c=void 0,this.J.logVisibility(null==(c=b)?void 0:c.element,!0))}g.NX.prototype.open.call(this);this.J.logClick(this.element)};
g.k.QM=function(a,b,c){var d=this;if("missing-qualities"===a)return new g.OU({I:"a",La:["ytp-menuitem"],X:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.U().Y,tabindex:"0",role:"menuitemradio"},V:[{I:"div",La:["ytp-menuitem-label"],ya:"{{label}}"}]},b,this.Kk(a));if("inline-survey"!==a){var e,f=null==(e=this.j?this.D[a]:this.Y[a])?void 0:e.paygatedQualityDetails;e=null==f?void 0:f.veType;f=null==f?void 0:f.trackingParams;b=g.NX.prototype.QM.call(this,a,b,c);f?(this.J.createServerVe(b.element,
this,!0),this.J.setTrackingParams(b.element,f)):e&&this.J.createClientVe(b.element,this,e,!0);return b}a=[{I:"span",ya:"\u0412\u0430\u0441 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u0438\u0434\u0435\u043e?"}];c=g.u([!0,!1]);f=c.next();for(e={};!f.done;e={SO:void 0},f=c.next())e.SO=f.value,f=new g.V({I:"span",S:"ytp-menuitem-inline-survey-response",V:[e.SO?Ewa():zwa()],X:{tabindex:"0",role:"button"}}),f.Ta("click",function(h){return function(){var l=
h.SO,m=g.bU(d.J.app);m&&(m.qa("iqsr",{tu:l}),m.getVideoData().dZ=!0);d.Hb.Qb();d.lC()}}(e)),a.push(f);
return new g.OU({I:"div",S:"ytp-menuitem",X:{"aria-disabled":"true"},V:[{I:"div",La:["ytp-menuitem-label"],V:a}]},b)};
g.k.Kk=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{I:"div",ya:"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043d\u0435 \u0432\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b?"};if("inline-survey"===a)return"";var c=this.G||this.j?[e1a(this,a,b,!1)]:[d1a(this,a)];var d=this.J.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),this.j?c.push(e1a(this,this.ma,b,!0,["ytp-menu-label-secondary"])):this.G?c.push(e1a(this,this.N,b,!0,["ytp-menu-label-secondary"])):
c.push(d1a(this,this.N,["ytp-menu-label-secondary"])));return{I:"div",V:c}};g.w(RX,g.V);g.k=RX.prototype;g.k.init=function(){this.tx(this.j);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.D)};
g.k.z4=function(a){if(!a.defaultPrevented){switch(a.keyCode){case 37:case 40:var b=-this.Y;break;case 39:case 38:b=this.Y;break;default:return}this.tx(this.j+b);a.preventDefault()}};
g.k.x4=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.N:this.N;this.tx(b);a.preventDefault()};
g.k.y4=function(a){a=(a-g.ts(this.C).x)/this.ma*this.range+this.B;this.tx(a)};
g.k.tx=function(a,b){b=void 0===b?"":b;a=g.He(a,this.B,this.D);""===b&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.va.style.left=(a-this.B)/this.range*(this.ma-this.Ia)+"px";this.j=a};
g.k.focus=function(){this.Ea.focus()};g.w(SX,RX);SX.prototype.Ca=function(){this.J.setPlaybackRate(this.j,!0)};
SX.prototype.tx=function(a){RX.prototype.tx.call(this,a,g1a(this,a).toString());this.G&&(f1a(this),this.Ma())};
SX.prototype.updateValues=function(){var a=this.J.getPlaybackRate();g1a(this,this.j)!==a&&(this.tx(a),f1a(this))};g.w(h1a,g.VF);h1a.prototype.focus=function(){this.j.focus()};g.w(i1a,AW);g.w(j1a,g.NX);g.k=j1a.prototype;g.k.Kk=function(a){return"1"===a?"\u041e\u0431\u044b\u0447\u043d\u0430\u044f":a.toLocaleString()};
g.k.Sa=function(){var a=this.J.getPresentingPlayerType();this.enable(2!==a&&3!==a);n1a(this)};
g.k.gy=function(a){g.NX.prototype.gy.call(this,a);a?(this.N=this.T(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),n1a(this),l1a(this,this.J.getPlaybackRate())):(this.Tc(this.N),this.N=null)};
g.k.onPlaybackRateChange=function(a){var b=this.J.getPlaybackRate();this.G.includes(b)||m1a(this,b);l1a(this,a)};
g.k.uh=function(a){g.NX.prototype.uh.call(this,a);a===this.j?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Hb.Hj()};g.w(p1a,g.NX);g.k=p1a.prototype;g.k.Qj=function(a){g.NX.prototype.Qj.call(this,a)};
g.k.sU=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.Kk=function(a){return this.getOption(a).text||""};
g.k.uh=function(a){g.NX.prototype.uh.call(this,a);this.ra("settingChange",this.N,this.settings[a].option)};g.w(TX,g.BW);TX.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.Jt[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Qj(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
TX.prototype.Bk=function(a,b){this.ra("settingChange",a,b)};g.w(UX,g.NX);UX.prototype.j=function(a){return a.languageCode};
UX.prototype.Kk=function(a){return this.languages[a].languageName||""};
UX.prototype.uh=function(a){this.ra("select",a);this.J.logClick(this.element);g.IW(this.Hb)};g.w(s1a,g.NX);g.k=s1a.prototype;g.k.mC=function(a){return g.md(a)?"__off__":a.displayName};
g.k.Kk=function(a){return"__off__"===a?"\u0412\u044b\u043a\u043b.":"__translate__"===a?"\u041f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438":"__contribute__"===a?"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044b":"__correction__"===a?"\u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.uh=function(a){if("__translate__"===a)this.j.open();else if("__contribute__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var b=g.OMa(this.J.U(),this.J.getVideoData());g.dH(b)}else if("__correction__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var c=t1a(this);VX(this,c);g.NX.prototype.uh.call(this,this.mC(c));var d,e;c=null==(b=this.J.getVideoData().getPlayerResponse())?void 0:null==(d=b.captions)?void 0:null==(e=d.playerCaptionsTracklistRenderer)?
void 0:e.openTranscriptCommand;this.J.ob("innertubeCommand",c);this.Hb.Hj();this.D&&this.J.logClick(this.D)}else{if("__correction__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();b=t1a(this);VX(this,b);g.NX.prototype.uh.call(this,this.mC(b));var f,h;b=null==(c=this.J.getVideoData().getPlayerResponse())?void 0:null==(f=c.captions)?void 0:null==(h=f.playerCaptionsTracklistRenderer)?void 0:h.openTranscriptCommand;this.J.ob("innertubeCommand",b)}else this.J.logClick(this.element),
VX(this,"__off__"===a?{}:this.tracks[a]),g.NX.prototype.uh.call(this,a);this.Hb.Hj()}};
g.k.Sa=function(){var a=this.J.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.J.getVideoData(),c=b&&b.Cu,d,e=!(null==(d=this.J.getVideoData())||!g.OT(d));d={};if(a||c){var f;if(a){var h=this.J.getOption("captions","track");d=this.J.getOption("captions","tracklist",{includeAsr:!0});var l=e?[]:this.J.getOption("captions","translationLanguages");this.tracks=g.cc(d,this.mC,this);e=g.Er(d,this.mC);var m,n;t1a(this)&&(null==(f=b.getPlayerResponse())?0:null==(m=f.captions)?0:null==(n=m.playerCaptionsTracklistRenderer)?
0:n.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.md(h)){if((f=h.translationLanguage)&&f.languageName){var p=f.languageName;f=l.findIndex(function(q){return q.languageName===p});
Aaa(l,f)}q1a(this.j,l);e.push("__translate__")}f=this.mC(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.OX(this,e);this.Qj(f);h&&h.translationLanguage?this.j.Qj(this.j.j(h.translationLanguage)):$0a(this.j);a&&this.G.qh(this.J.getSubtitlesUserSettings());this.countLabel.Ud(d&&d.length?" ("+d.length+")":"");this.ra("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.A4=function(a){var b=this.J.getOption("captions","track");b=g.pd(b);b.translationLanguage=this.j.languages[a];VX(this,b)};
g.k.Bk=function(a,b){if("reset"===a)this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}r1a(this,!0);this.N.start();this.G.qh(this.J.getSubtitlesUserSettings())};
g.k.zaa=function(a){a||g.Tu(this.N)};
g.k.xa=function(){g.Tu(this.N);g.NX.prototype.xa.call(this)};
g.k.open=function(){g.NX.prototype.open.call(this);this.options.__correction__&&!this.D&&(this.D=this.options.__correction__.element,this.J.createClientVe(this.D,this,167341),this.J.logVisibility(this.D,!0))};g.w(u1a,g.HW);g.k=u1a.prototype;
g.k.initialize=function(){if(!this.isInitialized){var a=this.J.U();this.isInitialized=!0;try{this.iR=new b1a(this.J,this)}catch(c){g.uF(Error("QualityMenuItem creation failed"))}g.N(this,this.iR);var b=new s1a(this.J,this);g.N(this,b);a.C||(b=new MX(this.J,this),g.N(this,b));a.enableSpeedOptions&&(b=new j1a(this.J,this),g.N(this,b));(g.UR(a)||a.N)&&(a.B||a.fb)&&(b=new a1a(this.J,this),g.N(this,b));a.Pe&&!a.L("web_player_move_autonav_toggle")&&(a=new QX(this.J,this),g.N(this,a));a=new PX(this.J,this);
g.N(this,a);this.J.ra("settingsMenuInitialized");Z0a(this.settingsButton,this.bf.xp())}};
g.k.Xc=function(a){this.initialize();this.bf.Xc(a);Z0a(this.settingsButton,this.bf.xp())};
g.k.ph=function(a){this.Jb&&1>=this.bf.xp()&&this.hide();this.bf.ph(a);Z0a(this.settingsButton,this.bf.xp())};
g.k.xd=function(a){this.initialize();0<this.bf.xp()&&g.HW.prototype.xd.call(this,a)};
g.k.Qb=function(){this.VJ?this.VJ=!1:g.HW.prototype.Qb.call(this)};
g.k.show=function(){g.HW.prototype.show.call(this);g.Yu(this.J.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.HW.prototype.hide.call(this);g.$u(this.J.getRootNode(),"ytp-settings-shown")};
g.k.jg=function(a){this.J.logVisibility(this.element,a);this.J.ra("settingsMenuVisibilityChanged",a)};g.w(g.WX,g.V);g.WX.prototype.onClick=function(){if(w1a(this)&&(this.J.toggleSubtitles(),this.J.logClick(this.element),!this.isEnabled())){var a=!1,b=g.OC(g.NC(),65);g.kS(this.J.U())&&null!=b&&(a=!b);a&&this.J.U().L("web_player_nitrate_promo_tooltip")&&this.J.ra("showpromotooltip",this.element)}};
g.WX.prototype.j=function(a){var b,c;null==(b=g.cU(this.J))||null==(c=b.zp())||c.xd(a)};
g.WX.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName};
g.WX.prototype.Sa=function(){var a=w1a(this),b=300;this.J.U().Z&&(b=480);if(this.J.U().N){this.updateValue("title",g.gU(this.J,"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b","c"));this.update({"data-title-no-tooltip":"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b"});var c=a}else{if(a)null==(c=this.Ga("ytp-subtitles-button-icon"))||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.gU(this.J,"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b","c")),this.update({"data-title-no-tooltip":"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b"});
else{var d;null==(d=this.Ga("ytp-subtitles-button-icon"))||d.setAttribute("fill-opacity","0.3");this.updateValue("title","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b");this.update({"data-title-no-tooltip":"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b"})}c=!0}this.tooltip.Mh();c=c&&this.J.qb().getPlayerSize().width>=b;g.UF(this,c);this.J.logVisibility(this.element,c);a?
this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.w(g.YX,g.V);g.k=g.YX.prototype;
g.k.Rc=function(){var a=this.api.qb().getPlayerSize().width,b=this.N;this.api.U().Z&&(b=400);b=a>=b&&(!$X(this)||!g.JG(this.api.Xb(),64));g.UF(this,b);g.bv(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(b,!1);this.B&&(c-=a.airingStart);ZX(this)&&(c-=this.Eb.startTimeMs/1E3);c=g.TG(c);this.C!==c&&(this.updateValue("currenttime",c),this.C=c);b=ZX(this)?g.TG((this.Eb.endTimeMs-this.Eb.startTimeMs)/
1E3):g.TG(this.api.getDuration(b,!1));this.D!==b&&(this.updateValue("duration",b),this.D=b)}a=a.isAtLiveHead;!$X(this)||this.K===a&&this.G===this.isPremiere||(this.K=a,this.G=this.isPremiere,this.Rc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Ud(this.isPremiere?"\u041f\u0440\u0435\u043c\u044c\u0435\u0440\u0430":"\u0412 \u044d\u0444\u0438\u0440\u0435"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438",
this.j=g.eU(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Eb!==a;this.Eb=a;b&&XX(this)};
g.k.onLoopRangeChange=function(a){var b=this.Eb!==a;this.Eb=a;b&&(this.Rc(),XX(this))};
g.k.cba=function(){this.api.setLoopRange(null)};
g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.U().L("enable_topsoil_wta_for_halftime")||this.api.U().L("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Rc();XX(this)};
g.k.updateVideoData=function(a){this.eE=a.isLivePlayback&&!a.tb;this.B=PT(a);this.isPremiere=a.isPremiere;g.bv(this.element,"ytp-live",$X(this))};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())};
g.k.xa=function(){this.j&&this.j();g.V.prototype.xa.call(this)};g.w(y1a,g.V);g.k=y1a.prototype;g.k.Mw=function(){var a=this.api.Ch();this.C!==a&&(this.C=a,x1a(this,this.api.getVolume(),this.api.isMuted()))};
g.k.tU=function(a){g.UF(this,350<=a.width)};
g.k.D4=function(a){if(!a.defaultPrevented){var b=a.keyCode,c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.He(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),a.preventDefault())}};
g.k.B4=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.He(b/10,-10,10));a.preventDefault()};
g.k.Eaa=function(){aY(this,this.j,!0,this.B,this.api.wm());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.C4=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.ts(this.N).x;this.api.setVolume(100*g.He((a-c/2)/(b-c),0,1))};
g.k.Daa=function(){aY(this,this.j,!1,this.B,this.api.wm());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Y))};
g.k.onVolumeChange=function(a){x1a(this,a.volume,a.muted)};
g.k.TV=function(){aY(this,this.j,this.isDragging,this.B,this.api.wm())};
g.k.xa=function(){g.V.prototype.xa.call(this);g.$u(this.K,"ytp-volume-slider-active")};g.w(bY,g.V);
bY.prototype.onVideoDataChange=function(){var a=this.api.U();this.visible=!!this.api.getVideoData().videoId&&!g.QT(this.api.getVideoData(1));g.UF(this,this.visible);this.api.logVisibility(this.element,this.visible&&this.Z);if(this.visible){var b=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",b)}a.C&&(this.j&&(this.Tc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Yu(this.element,"no-link"));this.Yb()};
bY.prototype.onClick=function(a){this.api.L("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.UG(a),!1,!0,!0);if(g.UR(b)){var d={};g.UR(b)&&g.WT(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.an(c,g.pP(d,"emb_logo"))}g.aV(c,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
bY.prototype.Yb=function(){var a={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{I:"path",Ic:!0,S:"ytp-svg-fill",X:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]};
this.api.kd()&&(a={I:"svg",X:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{I:"path",X:{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.X=Object.assign({},a.X,{"aria-hidden":"true"});this.updateValue("logoSvg",a)};
bY.prototype.Nc=function(a){g.V.prototype.Nc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.w(A1a,g.IK);g.k=A1a.prototype;g.k.hg=function(){if(this.J.L("web_player_max_seekable_on_ended")||!g.JG(this.J.Xb(),2))this.progressBar.Rc(),this.Ca.Rc()};
g.k.EA=function(){this.GS();this.Rg.B?this.hg():this.progressBar.Rh()};
g.k.E4=function(){this.hg();this.Z.start()};
g.k.GS=function(){var a;if(a=!this.J.U().B){a=this.progressBar;var b=2*a.N*g.jS();a=300>1E3*a.C.getLength()/a.api.getPlaybackRate()/b}a=a&&this.J.Xb().isPlaying()&&!!window.requestAnimationFrame;b=!a;this.Rg.B||(a=b=!1);b?this.va||(this.va=this.T(this.J,"progresssync",this.hg)):this.va&&(this.Tc(this.va),this.va=null);a?this.Z.isActive()||this.Z.start():this.Z.stop()};
g.k.Yb=function(){var a=this.J.Ch(),b=this.J.qb().getPlayerSize(),c=C1a(this),d=Math.max(b.width-2*c,100);if(this.ib!==b.width||this.Za!==a){this.ib=b.width;this.Za=a;var e=D1a(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.V0a(this.progressBar,c,e,a);this.J.Te().uU=e}c=this.B;d=Math.min(570*(a?1.5:1),d);a=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-E1a(this))));c.maxWidth=d;c.maxHeight=a;c.HB();this.GS();this.J.U().L("html5_player_dynamic_bottom_gradient")&&u_a(this.Xa,
b.height)};
g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.Na.style.background=a.Of?a.tp:"";this.ma&&X_a(this.ma,a.showSeekingControls);this.Y&&X_a(this.Y,a.showSeekingControls)};
g.k.Kb=function(){return this.C.element};g.w(F1a,OW);g.k=F1a.prototype;g.k.yJ=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.ob("innertubeCommand",this.onClickCommand),this.FA())};
g.k.FA=function(){this.enabled=!1;this.ma.hide()};
g.k.onVideoDataChange=function(a,b){"dataloaded"===a&&G1a(this);a=[];var c,d,e,f;if(b=null==(f=g.U(null==(c=b.getWatchNextResponse())?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.suggestedActionsRenderer,qkb))?void 0:f.suggestedActions)for(c=g.u(b),d=c.next();!d.done;d=c.next())(d=g.U(d.value,rkb))&&g.U(d.trigger,pkb)&&a.push(d);if(0!==a.length){c=[];a=g.u(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=g.U(d.trigger,pkb))f=(f=d.title)?g.YF(f):"View Chapters",
b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,null!=b&&null!=e&&d.tapCommand&&(c.push(new g.UJ(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.J.yf(c)}};
g.k.wB=function(){return this.enabled};
g.k.jg=function(){this.enabled?this.Na.start():MW(this);this.Im()};
g.k.xa=function(){G1a(this);OW.prototype.xa.call(this)};var v3={},cY=(v3.CHANNEL_NAME="ytp-title-channel-name",v3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",v3.LINK="ytp-title-link",v3.SESSIONLINK="yt-uix-sessionlink",v3.SUBTEXT="ytp-title-subtext",v3.TEXT="ytp-title-text",v3.TITLE="ytp-title",v3);g.w(dY,g.V);dY.prototype.onClick=function(a){this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.UG(a),!1,!0);g.UR(b)&&(b={},g.WT(this.api,"addEmbedsConversionTrackingParams",[b]),c=g.an(c,g.pP(b,"emb_title")));g.aV(c,this.api,a)};
dY.prototype.Sa=function(){var a=this.api.getVideoData(),b=this.api.U();this.updateValue("title",a.title);var c={I:"a",S:cY.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},ya:"{{channelName}}"};this.api.U().C&&(c={I:"span",S:cY.CHANNEL_NAME,ya:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);H1a(this);2===this.api.getPresentingPlayerType()&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Jc&&c.profilePicture?(this.updateValue("channelLink",
c.Jc),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):H1a(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.jl;g.bv(this.link,cY.FULLERSCREEN_LINK,c);b.ma||!a.videoId||c||g.QT(a)||b.C?this.j&&(this.updateValue("url",null),this.Tc(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.T(this.link,"click",this.onClick)));b.C&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.UR(b)?a.expandedTitle:
a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.w(g.eY,g.V);g.k=g.eY.prototype;g.k.MR=function(a){if(null!=this.type)if(a)switch(this.type){case 3:case 2:J1a(this);this.K.show();break;default:this.K.show()}else this.K.hide();this.Y=a};
g.k.PK=function(a,b,c,d,e,f,h,l){if(!this.Na||this.env.Z){3===this.type&&this.Rh();1!==this.type&&(g.Wu(this.element,"ytp-tooltip ytp-bottom"),(x_a(this.api)||this.api.isInline())&&g.Yu(this.element,"ytp-rounded-tooltip"),this.type=1,this.Y&&this.K.show(),this.B&&this.B.dispose(),(this.B=this.api.ek())&&this.B.subscribe("l",this.sZ,this));if(l){var m=g.ws(this.bg).height||this.Ca;this.Ra.style.bottom=m+2+"px"}this.update({text:c,title:null!=f?f:"",eduText:null!=l?l:""});g.bv(this.text,"ytp-tooltip-text-no-title",
1===this.type&&!f);this.api.isInline()&&g.Yu(this.text,"ytp-modern-tooltip-text");g.bv(this.element,"ytp-text-detail",!!d);c=-1;this.B&&(c=QS(this.B,this.N*this.scale),this.env.L("web_l3_storyboard")&&4===this.B.levels.length&&(c=this.B.levels.length-1),c=qSa(this.B,c,b));L1a(this,c);if(h)switch(b=g.ws(this.element).width,h){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=b+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=
b/2+"px",this.title.style.textAlign="center"}K1a(this,!!d,a,e)}};
g.k.QO=function(){1===this.type&&this.Rh()};
g.k.VF=function(a,b){if(this.type)if(3===this.type)this.Rh();else return;I1a(this,a,3,b)};
g.k.Mh=function(){this.j&&!this.ma&&this.j.hasAttribute("title")&&(this.C=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.Y&&J1a(this))};
g.k.sZ=function(a,b){a<=this.D&&this.D<=b&&(a=this.D,this.D=NaN,L1a(this,a))};
g.k.H8=function(){oSa(this.B,this.D,this.N*this.scale)};
g.k.Rh=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.va);a.addEventListener("mouseover",this.G);a.removeEventListener("blur",this.va);a.addEventListener("focus",this.G);M1a(this);break;case 3:M1a(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.sZ,this),this.B=null),this.api.removeEventListener("videoready",this.Ia),this.Ea.stop()}this.type=null;this.Y&&this.K.hide()};
g.k.Vl=function(){if(this.j)for(var a=0;a<arguments.length;a++)g.Uf(arguments[a],this.j)&&this.Rh()};
g.k.xa=function(){null!=this.type&&this.Rh();this.B&&this.B.dispose();g.V.prototype.xa.call(this)};g.w(O1a,g.V);g.k=O1a.prototype;g.k.nC=function(){this.visible=P1a(this);g.UF(this,this.visible);this.icon&&R1a(this,this.icon);this.J.logVisibility(this.element,this.visible&&this.Z)};
g.k.xe=function(){return this.J.getVideoData().videoId};
g.k.onClick=function(){this.J.logClick(this.element);var a=this.J.U(),b=this.xe();a.Ca?N1a(this):Q1a(this,b)};
g.k.Qw=function(){this.isRequestPending=this.j=!1;this.Sa(2);this.nC()};
g.k.Sa=function(a,b){var c=this.J.U();R1a(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.aK("\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e \u0432 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f $USER_NAME",a):g.aK("\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u043a\u0430\u043a $USER_NAME",a),image:jRa(c)})):
this.update({title:"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435",image:null});this.J.Mh()};
g.k.Nc=function(a){g.V.prototype.Nc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.w(g.fY,g.rW);g.k=g.fY.prototype;
g.k.init=function(){var a=this;this.Yd=new g.uW(this.api);this.wv=new KW(this.api);this.ji=new g.V({I:"div",S:"ytp-chrome-top"});this.tooltip=new g.eY(this.api,this);this.channelAvatar=new PYa(this.api);this.title=new dY(this.api);this.Xg=new g.RF({I:"div",S:"ytp-chrome-top-buttons"});this.Zg=new IYa(this.api,this.ji.element);this.Og="1"===this.api.U().controlsType?new A1a(this.api,this,this.Rg):null;this.contextMenu=new dZa(this.api,this.Yd);this.qD=new g.V({I:"div",X:{tabindex:"0"}});this.pD=new g.V({I:"div",
X:{tabindex:"0"}});var b=this.api.qb(),c=this.api.U(),d=this.api.getVideoData();this.Tq&&(g.Yu(this.api.getRootNode(),"ytp-embed"),g.Yu(this.api.getRootNode(),"ytp-embed-playlist"),this.II&&(g.Yu(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.Yu(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.cN=60,this.dN=89);this.api.U().C&&g.Yu(this.api.getRootNode(),"ytp-embed-pfl");this.api.U().B&&(g.Yu(this.api.getRootNode(),"ytp-mobile"),this.api.U().Z&&g.Yu(this.api.getRootNode(),"ytp-embed-mobile"));
this.Ai=d&&d.getEmbeddedPlayerResponse();g.N(this,this.Yd);g.oU(this.api,this.Yd.element,4);g.N(this,this.wv);g.oU(this.api,this.wv.element,4);d=new g.V({I:"div",S:"ytp-gradient-top"});g.N(this,d);g.oU(this.api,d.element,1);this.WK=new g.CG(d,250,!0,100);g.N(this,this.WK);g.N(this,this.ji);g.oU(this.api,this.ji.element,1);this.VK=new g.CG(this.ji,250,!0,100);g.N(this,this.VK);g.N(this,this.tooltip);g.oU(this.api,this.tooltip.element,4);var e=new YZa(this.api);g.N(this,e);g.oU(this.api,e.element,5);
e.subscribe("show",function(m){a.qz(e,m)});
this.kG.push(e);this.TA=new $W(this.api,e);g.N(this,this.TA);this.Tq||this.TA.Ja(this.ji.element);g.N(this,this.channelAvatar);this.channelAvatar.Ja(this.ji.element);g.N(this,this.title);this.title.Ja(this.ji.element);this.Tq&&(d=new t_a(this.api),g.N(this,d),d.Ja(this.ji.element));g.N(this,this.Xg);this.Xg.Ja(this.ji.element);var f=new h_a(this.api,this);g.N(this,f);g.oU(this.api,f.element,5);f.subscribe("show",function(m){a.qz(f,m)});
this.kG.push(f);this.searchButton=new cX(this.api);g.N(this,this.searchButton);this.searchButton.Ja(this.Xg.element);this.Jo=new O1a(this.api);g.N(this,this.Jo);this.Jo.Ja(this.Xg.element);this.shareButton=new g.dX(this.api,this,f);g.N(this,this.shareButton);this.shareButton.Ja(this.Xg.element);this.jn=new JW(this.api,this);g.N(this,this.jn);this.jn.Ja(this.Xg.element);this.Tq&&this.TA.Ja(this.Xg.element);g.N(this,this.Zg);this.Zg.Ja(this.Xg.element);c.So&&(d=new iX(this.api),g.N(this,d),g.oU(this.api,
d.element,4));c.C||(d=new JYa(this.api,this.Zg),g.N(this,d),d.Ja(this.Xg.element));this.ai=new UZa(this.api);g.N(this,this.ai);g.oU(this.api,this.ai.element,5);this.ai.subscribe("show",function(){a.qz(a.ai,a.ai.gk())});
this.kG.push(this.ai);this.overflowButton=new g.ZW(this.api,this.ai);g.N(this,this.overflowButton);this.overflowButton.Ja(this.Xg.element);this.Og&&g.N(this,this.Og);"3"===c.controlsType&&(d=new bX(this.api),g.N(this,d),g.oU(this.api,d.element,9));g.N(this,this.contextMenu);this.contextMenu.subscribe("show",this.f1,this);d=new YG(this.api,new tW(this.api));g.N(this,d);g.oU(this.api,d.element,4);this.qD.Ta("focus",this.P6,this);g.N(this,this.qD);this.pD.Ta("focus",this.Q6,this);g.N(this,this.pD);var h;
(this.jw=c.Il?null:new TZa(this.api,b,this.contextMenu,this.Rg,this.Yd,this.wv,function(){return a.zq()},null==(h=this.Og)?void 0:h.progressBar))&&g.N(this,this.jw);
this.Tq||(this.BW=new qZa(this.api),g.N(this,this.BW),g.oU(this.api,this.BW.element,4),this.b0=new m_a(this.api),g.N(this,this.b0),g.oU(this.api,this.b0.element,4));this.t0=new F1a(this.api);g.N(this,this.t0);g.oU(this.api,this.t0.element,4);if(this.Tq){var l=new HZa(this.api,this.api.U().fb);g.N(this,l);g.oU(this.api,l.element,5);l.subscribe("show",function(m){a.qz(l,m)});
b=new LZa(this.api,l);g.N(this,b);g.oU(this.api,b.element,4)}this.DE.push(this.Yd.element);this.T(this.api,"fullscreentoggled",this.Mw);this.T(this.api,"offlineslatestatechange",function(){a.api.gE()&&hW(a.Rg,128,!1)});
this.T(this.api,"cardstatechange",function(){a.eq()});
this.T(this.api,"resize",this.U9);this.T(this.api,"videoplayerreset",this.Qw);this.T(this.api,"showpromotooltip",this.s$);g.rW.prototype.init.call(this)};
g.k.Te=function(){return this.tooltip};
g.k.vO=function(){return this.Og};
g.k.qz=function(a,b){b?this.UC=a:this.UC=null;this.eq()};
g.k.gD=function(a,b){if(b)this.Kt.push(a);else for(b=this.Kt.length;0<=b;b--)if(this.Kt[b]===a){this.Kt.splice(b,1);break}hW(this.Rg,64,0<this.Kt.length)};
g.k.vB=function(){this.api.Nk()&&this.api.fp();return!!this.UC||S1a(this)||g.rW.prototype.vB.call(this)};
g.k.pB=da(5);g.k.Gr=da(9);g.k.Fr=da(12);g.k.eq=function(){var a=!this.vB(),b=a&&this.api.Nk()&&!g.JG(this.api.Xb(),2)&&!g.QT(this.api.getVideoData())&&!this.api.U().C&&!this.api.kd(),c=this.Tq&&g.lU(this.api)&&g.JG(this.api.Xb(),128);a||c?(this.VK.show(),this.WK.show()):(this.VK.hide(),this.WK.hide(),this.api.Vl(this.ji.element));b?this.Zg.xd():this.Zg.Qb();this.Og&&B1a(this.Og,this.PQ||!a);this.api.L("web_player_hide_overflow_button_if_empty_menu")&&T1a(this);g.rW.prototype.eq.call(this)};
g.k.Rt=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.ws(a),h=d||this.Og&&g.Uf(this.Og.Kb(),b),l=d=null;null!=c&&h||(d=g.ws(b),l=g.us(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Og,d=C1a(b),l=D1a(b),h=this.api.qb().getPlayerSize().height,c=g.He(c,d,d+l-f.width),f=h-E1a(b)-f.height):g.Uf(this.ji.element,b)?(b=this.api.qb().getPlayerSize().width,c=g.He(c,12,b-f.width-12),f=this.Ch()?this.dN:this.cN,"gvn"===this.api.U().playerStyle&&(f+=
20),this.Tq&&(f-=this.Ch()?26:18)):(b=this.api.qb().getPlayerSize(),c=g.He(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.EA=function(a){a&&(this.api.Vl(this.ji.element),this.Og&&this.api.Vl(this.Og.Kb()));this.II&&(g.bv(this.contextMenu.element,"ytp-autohide",a),g.bv(this.contextMenu.element,"ytp-autohide-active",!0));g.rW.prototype.EA.call(this,a)};
g.k.eQ=function(){g.rW.prototype.eQ.call(this);this.II&&(g.bv(this.contextMenu.element,"ytp-autohide-active",!1),this.II&&(this.contextMenu.hide(),this.ai&&this.ai.hide()))};
g.k.An=function(a,b){var c=this.api.qb().getPlayerSize();c=new g.hs(0,0,c.width,c.height);if(a||this.Rg.B&&!this.vB()){if(this.api.U().Rm||b)a=this.Ch()?this.dN:this.cN,c.top+=a,c.height-=a;this.Og&&(c.height-=E1a(this.Og))}return c};
g.k.Mw=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","\u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c YouTube \u0432 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435"),this.api.U().externalFullscreen||(b.parentElement.insertBefore(this.qD.element,b),b.parentElement.insertBefore(this.pD.element,b.nextSibling))):g.tF(Error("Player not in DOM.")):(b.setAttribute("aria-label",
"\u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c YouTube"),this.qD.detach(),this.pD.detach());this.Yb();this.fq()};
g.k.Ch=function(){var a=this.api.U();return this.api.isFullscreen()&&!a.Z||!1};
g.k.showControls=function(a){this.pN=!a;this.eq()};
g.k.Yb=function(){var a=this.Ch();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.bv(this.contextMenu.element,"ytp-big-mode",a);this.eq();this.api.L("web_player_hide_overflow_button_if_empty_menu")||T1a(this);this.fq();var b=this.api.kd();b&&a?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.ks(this.ji.element,"padding-left",a+"px"),g.ks(this.ji.element,"padding-right",a+"px")):b&&(g.ks(this.ji.element,"padding-left",""),g.ks(this.ji.element,"padding-right",""));g.rW.prototype.Yb.call(this)};
g.k.iO=function(){if(S1a(this)&&!g.lU(this.api))return!1;var a=this.api.getVideoData();return!g.UR(this.api.U())||2===this.api.getPresentingPlayerType()||!this.Ai||((a=this.Ai||a.Ai)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.U(a.videoDetails,rTa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.rW.prototype.iO.call(this):!1};
g.k.fq=function(){g.rW.prototype.fq.call(this);this.api.logVisibility(this.title.element,!!this.Jn);this.TA&&this.TA.Nc(!!this.Jn);this.channelAvatar.Nc(!!this.Jn);this.overflowButton&&this.overflowButton.Nc(this.Vg()&&!!this.Jn);this.shareButton&&this.shareButton.Nc(!this.Vg()&&!!this.Jn);this.Jo&&this.Jo.Nc(!this.Vg()&&!!this.Jn);this.searchButton&&this.searchButton.Nc(!this.Vg()&&!!this.Jn);this.jn&&this.jn.Nc(!this.Vg()&&!!this.Jn);if(!this.Jn){this.api.Vl(this.ji.element);for(var a=0;a<this.kG.length;a++){var b=
this.kG[a];b.gk()&&b.Qb()}}};
g.k.Gc=function(a){this.Og&&B1a(this.Og,this.vB());this.eq();g.rW.prototype.Gc.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){return this.jw?this.jw.handleGlobalKeyDown(a,b,c,d,e,f,h,l):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.jw?this.jw.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.zq=function(){if(this.contextMenu.Jb)return this.contextMenu.Qb(),!0;if(this.Kt.length)return this.Kt[this.Kt.length-1].Qb(),!0;if(this.UC)return this.UC.Qb(),!0;this.Og&&this.api.Vl(this.Og.Kb());this.Xg&&this.api.Vl(this.Xg.element);return g.rW.prototype.zq.call(this)};
g.k.NR=function(a,b){this.LP=b;this.gD(a,b);this.f1()};
g.k.f1=function(){var a=this.LP||this.contextMenu.gk();this.KM!==a&&(this.KM=a,this.api.ob("onAutonavPauseRequest",this.KM))};
g.k.P6=function(){U1a(this,this.api.getRootNode(),!0).focus()};
g.k.Q6=function(){U1a(this,this.api.getRootNode(),!1).focus()};
g.k.zp=function(){return this.Og&&this.Og.B};
g.k.uu=function(){this.Rg.uu()};
g.k.PO=function(){this.Yd.hide()};
g.k.UF=function(a){this.Yd.UF(!g.CL(a))};
g.k.wF=function(a,b,c,d){this.wv.wF(a,b,c,d)};
g.k.vF=function(a,b){jZa(this.wv,a,b)};
g.k.U9=function(){V1a(this,!0)};
g.k.Qw=function(){T1a(this)};
g.k.s$=function(a){V1a(this,!1,a)};
g.k.OW=function(){return this.contextMenu};
g.k.My=function(a){var b;if(null!=(b=this.Og)){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.Av=function(){var a,b=null==(a=this.Og)?void 0:a.progressBar;if(b){var c;(null==(c=b.B)?0:c.isEnabled)&&b.Av()}};g.w(g.gY,g.RV);g.gY.prototype.xl=function(){return!1};
g.gY.prototype.create=function(){var a=this.player.U();g.$G(a)&&a.B?this.chrome=new g.rW(this.player):this.chrome=new g.fY(this.player);g.N(this,this.chrome);this.chrome.init();this.player.Ng("ux")};
g.gY.prototype.Di=function(){return this.chrome};g.w(hY,g.I);hY.prototype.C=function(a,b){if(b){b=b instanceof g.JP?b:iY(this,b);var c;(null==(c=this.j.get(a))?void 0:LP(c.location))!==LP(b)&&this.j.set(a,new c2a(b,a))}else this.j.delete(a)};
hY.prototype.load=function(){var a=this,b,c,d,e,f,h,l,m,n,p;return g.H(function(q){switch(q.j){case 1:b=a.j.get(0);g.Ba(q,2);var r;if(r=b&&!a.B)r=LP(b.location),r=a.B===kY(r);if(r){q.Ka(4);break}return g.z(q,a2a(a,a.B?2:0),5);case 5:if(c=q.B)a.C(0,c),zNa(c)&&a.C(1,NP(c));case 4:g.Ca(q,3);break;case 2:d=g.Da(q);g.uF(d);if(!a.B){q.Ka(3);break}a.B=!1;return g.z(q,a.load(),7);case 7:return q.return();case 3:if(!a.W.experiments.kb("html5_onesie_probe_ec_hosts")){q.Ka(0);break}g.Ba(q,9);e=a;f=e.C;h=3;return g.z(q,
a2a(a,1),11);case 11:return f.call(e,h,q.B),l=a,m=l.C,n=4,g.z(q,a2a(a,2),12);case 12:m.call(l,n,q.B);g.Ca(q,0);break;case 9:p=g.Da(q),g.uF(p),g.Aa(q)}})};
hY.prototype.N=function(){var a=this,b,c;return g.H(function(d){g.Ru(a.Z);b=g.lJ(a.W.experiments,"html5_onesie_prewarm_max_lact_ms");if(JE()>=b)return d.return();(c=a.j.get(0))&&Z1a(a,c);g.Aa(d)})};
var W1a={l1a:0,w4a:1,C2a:2,x4a:3,Bua:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};g.w(lY,g.I);lY.prototype.Ik=function(){if(!this.Df.length)return[];var a=this.Df;this.Df=[];this.C=g.Bb(a).info;return a};
lY.prototype.aF=function(){return this.Df};
lY.prototype.xa=function(){g.I.prototype.xa.call(this);this.j=null;this.Df.length=0;this.eb.length=0;this.C=null};g.w(nY,g.I);g.k=nY.prototype;g.k.Dq=function(){return Array.from(this.bd.keys())};
g.k.Xt=function(a){a=this.bd.get(a);var b=a.Df;a.Qy+=b.getLength();a.Df=new cO;return b};
g.k.Ug=function(a){return this.bd.get(a).Ug};
g.k.Uv=function(a){return this.bd.get(a).Uv};
g.k.MA=function(a,b,c){this.bd.get(a)||j2a(this,a,b);b=this.bd.get(a);this.manifest?(a=l2a(this,a,c),k2a(this,c.Fp,b,a)):(c.Ln?b.WX=c.Cr:b.zE.push(c),b.ER.push(c))};
g.k.zn=function(a){var b;return(null==(b=this.bd.get(a))?void 0:b.eb)||[]};
g.k.AA=function(){for(var a=g.u(this.bd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.eR&&(b.hg&&b.hg(),b.eR=!1)};
g.k.Np=function(a,b){this.logger.debug(function(){return"[onMediaEnd] formatId: "+b});
var c=this.bd.get(b);if(oY){if(c&&!c.Ug){if(c.Cj.get(a))c.Cj.get(a).Xz=!0;else{var d;(null==(d=this.nf)?0:d.er)&&c.Cj.set(a,{data:new cO,cH:0,Xz:!0})}c.Uv=!0}}else c&&!c.Uv&&(c.Uv=!0)};
g.k.Ik=function(a){if(oY){var b=this.bd.get(a);if(b)for(var c=g.u(b.Cj),d=c.next();!d.done;d=c.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;var f=b.YF.get(d);if(CQ(f[0])){if(!e.Xz)continue;var h=f,l=e.data;l.getLength();f=0;var m=[];h=g.u(h);for(var n=h.next();!n.done;n=h.next()){n=n.value;var p=n.B,q=eO(l,f,p);f+=p;m.push(new VQ(n,q))}b.Aw.push.apply(b.Aw,g.pa(m))}else if(!f[0].range||0<e.data.getLength())l=void 0,f=f[0],m=e.cH,h=e.data,f.range||(l=e.Xz),n=h.getLength(),l=new VQ(vOa(f,
f.Zb+m,n,l),h),e.cH+=l.info.B,b.Aw.push(l);b.Cj.get(d).data=new cO;e.Xz&&b.Cj.delete(d)}a=this.bd.get(a);if(!a)return[];b=a.Aw;a.Aw=[];c=g.u(b);for(d=c.next();!d.done;d=c.next())a.Qy+=d.value.info.B;return b||[]}c=null==(b=this.bd.get(a))?void 0:b.og;if(!c)return[];this.lm(a,c);return c.Ik()};
g.k.fl=function(a){if(oY)return qY(this,a);var b,c,d;return!!(null==(c=null==(b=this.bd.get(a))?void 0:b.og)?0:null==(d=c.aF())?0:d.length)||qY(this,a)};
g.k.lm=function(a,b){for(;qY(this,a);){var c=this.Xt(a);var d=a;d=this.bd.get(d).Ug&&!h2a(this,d);mY(b,c,d&&i2a(this,a))}};
g.k.xa=function(){g.I.prototype.xa.call(this);for(var a=g.u(this.bd.keys()),b=a.next();!b.done;b=a.next())e2a(this,b.value);var c;if(null==(c=this.nf)?0:c.Kd)for(a=g.u(this.bd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.Cj.clear(),b.YF.clear(),b.Aw.length=0,b.eb.length=0,b.ER.length=0,b.zE.length=0;this.bd.clear()};
var oY=!1;var w3={},H7a=(w3["1h"]=8,w3["9h"]=4,w3["1"]=8,w3["9"]=4,w3["("]=4,w3.h=2,w3.H=2,w3),x3={},I7a=(x3.o=3,x3.O=3,x3.so=3,x3.a=1,x3.ah=1,x3.A=1,x3.m=1,x3.M=1,x3.sa=1,x3.mac3=7,x3.MAC3=7,x3.meac3=5,x3.MEAC3=5,x3),y3={},J7a=(y3.o=0,y3.O=0,y3.a=0,y3.ah=0,y3.A=0,y3.m=1,y3.M=1,y3.mac3=1,y3.MAC3=1,y3.meac3=1,y3.MEAC3=1,y3.so=4,y3.sa=4,y3);var z3={},s2a=(z3["140"]={numChannels:2},z3["141"]={numChannels:2},z3["251"]={audioSampleRate:48E3,numChannels:2},z3["380"]={numChannels:6},z3["328"]={numChannels:6},z3),A3={},p2a=(A3["1"]='video/mp4; codecs="av01.0.08M.08"',A3["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',A3["9"]='video/webm; codecs="vp9"',A3["("]='video/webm; codecs="vp9"',A3["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',A3.h='video/mp4; codecs="avc1.64001e"',A3.H='video/mp4; codecs="avc1.64001e"',A3.o=
'audio/webm; codecs="opus"',A3.a='audio/mp4; codecs="mp4a.40.2"',A3.ah='audio/mp4; codecs="mp4a.40.2"',A3.mac3='audio/mp4; codecs="ac-3"; channels=6',A3.meac3='audio/mp4; codecs="ec-3"; channels=6',A3),B3={},q2a=(B3["337"]={width:3840,height:2160,bitrate:3E7,fps:30},B3["336"]={width:2560,height:1440,bitrate:15E6,fps:30},B3["335"]={width:1920,height:1080,bitrate:75E5,fps:30},B3["702"]={width:7680,height:4320,bitrate:4E7,fps:60},B3["701"]={width:3840,height:2160,bitrate:2E7,fps:60},B3["700"]={width:2560,
height:1440,bitrate:1E7,fps:60},B3["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},B3["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},B3["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},B3["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},B3["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},B3["360"]={width:1920,height:1080,bitrate:5331E3,
fps:30,cryptoblockformat:"subsample"},B3["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},B3["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},B3["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},B3["315"]={width:3840,height:2160,bitrate:2E7,fps:60},B3["308"]={width:2560,height:1440,bitrate:1E7,fps:60},B3["303"]={width:1920,height:1080,bitrate:5E6,fps:60},B3["302"]={width:1280,height:720,bitrate:25E5,
fps:60},B3["299"]={width:1920,height:1080,bitrate:75E5,fps:60},B3["298"]={width:1280,height:720,bitrate:35E5,fps:60},B3["571"]={width:7680,height:4320,bitrate:3E7,fps:60},B3["401"]={width:3840,height:2160,bitrate:15E6,fps:60},B3["400"]={width:2560,height:1440,bitrate:75E5,fps:60},B3["399"]={width:1920,height:1080,bitrate:2E6,fps:60},B3["398"]={width:1280,height:720,bitrate:1E6,fps:60},B3["313"]={width:3840,height:2160,bitrate:8E6,fps:30},B3["271"]={width:2560,height:1440,bitrate:4E6,fps:30},B3["248"]=
{width:1920,height:1080,bitrate:2E6,fps:30},B3["247"]={width:1280,height:720,bitrate:15E5,fps:30},B3["137"]={width:1920,height:1080,bitrate:4E6,fps:30},B3["136"]={width:1280,height:720,bitrate:3E6,fps:30},B3["385"]={width:1920,height:1080,bitrate:6503313,fps:60},B3["376"]={width:1280,height:720,bitrate:5706960,fps:60},B3["384"]={width:1280,height:720,bitrate:3660979,fps:60},B3["225"]={width:1280,height:720,bitrate:5805E3,fps:30},B3["224"]={width:1280,height:720,bitrate:453E4,fps:30},B3["145"]={width:1280,
height:720,bitrate:2682052,fps:30},B3);var rY,z2a=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["571","401","400","399","398"],["313","271","248","247"],["137","136"]],A2a=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],B2a=["412","359"],C2a=[["140"],["251"],["380"],["328"]],Ycb="781 780 779 777 776 775 244 243 242".split(" "),C3={},w2a=(C3["398"]=["397","396","395","394"],C3["247"]=["244","243","242"],C3["136"]=["135","134","133","160"],C3["141"]=["140"],C3["251"]=
["250"],C3),D3={},x2a=(D3["274"]=["317","273","318","280","279"],D3["145"]=["144","222","223","143","142"],D3["141"]=["149"],D3["140"]=["149"],D3["380"]=["381"],D3["328"]=["329"],D3),E3={},u2a=(E3["133"]=240,E3["134"]=360,E3["135"]=480,E3["136"]=720,E3["137"]=1080,E3["242"]=240,E3["243"]=360,E3["244"]=480,E3["247"]=720,E3["248"]=1080,E3["298"]=720,E3["299"]=1080,E3["302"]=720,E3["303"]=1080,E3["395"]=240,E3["396"]=360,E3["397"]=480,E3["398"]=720,E3["399"]=1080,E3);var tY=[],Pcb=!1;g.e0=Td(function(){var a="";try{var b=g.If("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.w(uY,g.I);uY.prototype.K=function(){null!=this.j&&this.app.getVideoData()!==this.j&&YS(this.j)&&xdb(this.app,this.j,void 0,void 0,this.B)};
uY.prototype.G=function(){if(null!=this.j&&this.app.getVideoData()!==this.j&&null!=this.xb&&null!=this.C&&null!=this.D&&YS(this.j)){var a=H2a(this.xb,this.C,this.D);null==a?xdb(this.app,this.j,void 0,void 0,this.B):(this.xb.qa("sgap",a),this.xb.getVideoData().Y&&vcb(this.xb,!1))}};
uY.prototype.N=function(a){var b=this.app.fd();if(b){var c=this.app.getCurrentTime();5<Math.abs(c-a.end/1E3)&&b.qa("glrs",{cmt:c});b.seekTo(0,{seekSource:58});b.qa("glrre",{cmt:c})}};
uY.prototype.xa=function(){this.j=null;g.I.prototype.xa.call(this)};g.w(g.vY,uL);g.k=g.vY.prototype;g.k.isView=function(){return!0};
g.k.uR=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Oh(),c=dL(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Iv=function(){return gL(this.mediaElement.Iv(),this.start,this.end)};
g.k.Oh=function(){return gL(this.mediaElement.Oh(),this.start,this.end)};
g.k.KD=function(){return gL(this.mediaElement.KD(),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.uR()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(a){}}return this.mediaElement.play()};
g.k.qc=function(){var a=uL.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.NG=function(){return this.mediaElement.NG()};
g.k.Jy=function(a){this.mediaElement.Jy(a)};
g.k.Iq=function(){return this.mediaElement.Iq()};
g.k.playVideo=function(){return this.mediaElement.playVideo()};
g.k.EN=function(){this.mediaElement.EN()};
g.k.BN=function(){this.mediaElement.BN()};
g.k.Lu=function(){return this.mediaElement.Lu()};
g.k.Kb=function(){return this.mediaElement.Kb()};
g.k.Kf=function(){return this.mediaElement.Kf()};
g.k.PG=function(a){this.mediaElement.PG(a)};
g.k.qK=function(){this.mediaElement.qK()};
g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.k.Ts=function(){return this.mediaElement.Ts()};
g.k.setLoop=function(a){this.mediaElement.setLoop(a)};
g.k.canPlayType=function(a,b){return this.mediaElement.canPlayType(a,b)};
g.k.isPaused=function(){return this.mediaElement.isPaused()};
g.k.eg=function(){return this.mediaElement.eg()};
g.k.isEnded=function(){return this.mediaElement.isEnded()};
g.k.eI=function(){return this.mediaElement.eI()};
g.k.oB=function(a){this.mediaElement.oB(a)};
g.k.OG=function(){return this.mediaElement.OG()};
g.k.load=function(){this.mediaElement.load()};
g.k.pause=function(){this.mediaElement.pause()};
g.k.Jk=function(){return this.mediaElement.Jk()};
g.k.fI=function(){return this.mediaElement.fI()};
g.k.gh=function(){return this.mediaElement.gh()};
g.k.Af=function(){return this.mediaElement.Af()};
g.k.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.k.Sh=function(){return this.mediaElement.Sh()};
g.k.Zt=function(){return this.mediaElement.Zt()};
g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.k.Vs=function(){return this.mediaElement.Vs()};
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.JC=da(30);g.k.fG=da(32);g.k.gG=da(34);g.k.Wy=da(36);g.k.jD=function(){return this.mediaElement.jD()};
g.k.qs=function(a){this.mediaElement.qs(a)};
g.k.MD=function(a){return this.mediaElement.MD(a)};
g.k.eP=function(){return this.mediaElement.eP()};
g.k.stopVideo=function(){this.mediaElement.stopVideo()};
g.k.IN=function(a){this.mediaElement.IN(a)};
g.k.audioTracks=function(){return this.mediaElement.audioTracks()};
g.k.KR=function(a){this.mediaElement.KR(a)};g.w(K2a,g.I);g.k=K2a.prototype;g.k.getStatus=function(){return this.status};
g.k.Tu=function(){var a=this.j.getVideoData(),b=this.B.getVideoData(),c;if((c=a.C)&&!(c=!a.j)){c=a.j;for(var d=!1,e=!1,f=g.u(Object.values(c.j)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.isLoaded()&&(d=!0),h.info.video&&h.index.isLoaded()&&(e=!0);c.j["0"]&&(e=!0);c=d&&e}if(c)if(this.j.kf()){f=G2a(this.policy,this.j,this.B,this.Hm);h=L2a(this);c=h.j6;e=h.bZ;d=h.hW;h=h.ZY;if(!this.N){var l=1E3*this.B.bj(),m=this.j.bj();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=0);a=a.isAd();this.B.qF(l,
m,a);this.N=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Mg(b,f)):2===this.status.status?U2a(this):(a=this.j.Iq())&&rL(a)&&(!nL(a)&&g.dC()?this.Mg("mse_closed"):b.j&&DP(b.j)&&a.B&&!a.B.ZH()?this.Mg("encr_upgrade"):(b=this.j.kf(),b.isEnded()?this.Mg("elem_ended"):0>e?this.Mg("next_player_future"):(this.K=d,this.currentVideoDuration=d-c,this.C=LCa(a,c,d,!0),this.D=LCa(a,e,h,!1),a=this.B.getVideoData().clientPlaybackNonce,this.j.qa("gaplessPrep",{cpn:a}),Q2a(this.j,this.C,!1,R2a(this)),this.j.setMediaElement(M2a(b,
c,d,!this.j.getVideoData().isAd())),xY(this,2),U2a(this))))}else this.Mg("no-elem")};
g.k.iy=function(a){var b=a===T2a(this).UR,c=b?this.C.j:this.C.B;b=b?this.D.j:this.D.B;if(c.isActive&&!b.isActive){var d=this.K;cL(a.hf(),d-.01)&&(xY(this,4),c.isActive=!1,c.wG=c.wG||c.isActive,(1===this.G?this.j:this.B).qa("sbh",{}),b.isActive=!0,b.wG=b.wG||b.isActive,0!==this.G&&(this.j.getVideoData().SU=!0));a=this.D.B;if(this.D.j.isActive&&a.isActive&&(xY(this,5),0!==this.G)){this.j.qa("sbs",{});var e;if(null!=(e=this.B)&&lT(e.videoData)&&e.videoData.L("html5_gapless_append_early")){var f;null!=
(f=e.Aa)&&f.xf()}}}};
g.k.wZ=function(){this.vt()&&this.Mg("player-reload-after-handoff")};
g.k.Mg=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&6!==this.status.status){var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.B){var d=this.B.getVideoData().clientPlaybackNonce;this.j.ze(new BK("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.Hm,msg:a})));vcb(this.j,c)}this.bq.reject(a);this.dispose()}};
g.k.vt=function(){return 4<=this.status.status&&6>this.status.status};
g.k.xa=function(){S2a(this);this.j.unsubscribe("newelementrequired",this.wZ,this);if(this.C){var a=this.C.B;this.C.j.Vd.unsubscribe("updateend",this.iy,this);a.Vd.unsubscribe("updateend",this.iy,this)}g.I.prototype.xa.call(this)};
g.k.vU=function(a){g.LG(a,128)&&this.Mg("player-error-event")};g.w(zY,g.I);zY.prototype.clearQueue=function(){this.D&&this.D.reject("Queue cleared");AY(this)};
zY.prototype.dw=function(){return!this.j};
zY.prototype.vt=function(){var a;return(null==(a=this.C)?void 0:a.vt())||!1};
zY.prototype.xa=function(){AY(this);g.I.prototype.xa.call(this)};g.w(d3a,g.NF);g.k=d3a.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f,h){return a?4:$2a()?3:b?2:c?1:d?5:e?7:f?8:h?9:0};
g.k.Fm=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.jg())};
g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.jg())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.jg())};
g.k.rB=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.jg())};
g.k.setSqueezeback=function(a){this.C!==a&&(this.C=a,this.jg())};
g.k.Sh=function(){return this.j};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.zz=function(){return this.fullscreen};
g.k.xg=function(){return this.B};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return $2a()};
g.k.ut=function(){return this.pictureInPicture};
g.k.Wz=function(){return!1};
g.k.bA=function(){return this.C};
g.k.jg=function(){this.ra("visibilitychange");var a=this.getVisibilityState(this.Sh(),this.isFullscreen(),this.xg(),this.isInline(),this.ut(),this.Wz(),this.bA());a!==this.G&&this.ra("visibilitystatechange");this.G=a};
g.k.xa=function(){c3a(this.D);g.NF.prototype.xa.call(this)};g.w(EY,g.I);EY.prototype.zf=function(){return this.Bc||0};
EY.prototype.dj=function(){return this.C||0};
EY.prototype.Tf=function(){for(;this.segments.length;){var a=void 0;null==(a=this.segments.pop())||a.dispose()}this.B.clear()};
EY.prototype.xa=function(){this.Tf();g.I.prototype.xa.call(this)};
g.w(h3a,g.I);g.k=h3a.prototype;g.k.zf=function(){return this.Bc};
g.k.dj=function(){return this.B};
g.k.getType=function(){return this.type};
g.k.getVideoData=function(){return this.videoData};
g.k.aj=function(){return this.videoData.clientPlaybackNonce};
g.k.RF=function(a){mTa(a);this.videoData=a};
g.k.xa=function(){j3a(this);g.I.prototype.xa.call(this)};g.w(g.IY,g.I);g.k=g.IY.prototype;
g.k.onCueRangeEnter=function(a){this.Ra.push(a);var b=a.getId(),c=""===b;this.tb.add(a.B);var d=this.G.get(b);if(!c&&(this.oa.qa("sdai",{enterAdCueRange:1}),KT(this.oa.getVideoData())&&(null==d?0:d.jE)))return;if(this.fb&&!this.j)this.fb=!1,!c&&d&&(c=this.oa.getCurrentTime(),MY(this,{ue:a,isAd:!0,Uq:!0,Hh:c,adCpn:b},{isAd:!1,Uq:!1,Hh:c}),this.api.ra("serverstitchedvideochange",d.yd,d.HC),this.oa.qa("sdai",LY("midab",d)),this.va=1),this.Ia=!1;else if(this.j){if(this.j.Uq)this.oa.qa("sdai",{a_pair_of_same_transition_occurs_enter:1,
acpn:this.j.adCpn,transitionTime:this.j.Hh,cpn:b,currentTime:this.oa.getCurrentTime()}),d=this.oa.getCurrentTime(),a={ue:a,isAd:!c,Uq:!0,Hh:d,adCpn:b},b={ue:this.j.ue,isAd:this.j.isAd,Uq:!1,Hh:d,adCpn:this.j.adCpn},this.j.ue&&this.tb.delete(this.j.ue.B),MY(this,a,b);else{if(this.j.ue===a){this.oa.qa("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Hh,cpn:b,currentTime:this.oa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===
b){b&&this.oa.qa("sdai",{dchtsc:b});this.j=void 0;return}a={ue:a,isAd:!c,Uq:!0,Hh:this.oa.getCurrentTime(),adCpn:b};MY(this,a,this.j)}this.j=void 0;this.Ia=!1}else this.j={ue:a,isAd:!c,Uq:!0,Hh:this.oa.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){var b=a.getId(),c=""===b,d=this.G.get(b);if(KT(this.oa.getVideoData())&&!c&&d){if(d.jE)return;d.jE=!0;this.D.clear();if(this.W.L("html5_lifa_no_rewatch_ad_sbc"))if(this.oa.UM()){var e=d.Bc;this.oa.mR(e/1E3,(e+d.durationMs)/1E3)}else this.oa.qa("lifa",{remove:0})}if(this.tb.has(a.B))if(this.tb.delete(a.B),this.Ra=this.Ra.filter(function(f){return f!==a}),this.fb&&(this.Ia=this.fb=!1,this.oa.qa("sdai",{cref:1})),this.j){if(this.j.Uq){if(this.j.ue===a){this.oa.qa("sdai",
{same_cue_range_pair_exit:1,
acpn:this.j.adCpn,transitionTime:this.j.Hh,cpn:b,currentTime:this.oa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.oa.qa("sdai",{dchtsc:b});this.j=void 0;return}b={ue:a,isAd:!c,Uq:!1,Hh:this.oa.getCurrentTime(),adCpn:b};MY(this,this.j,b)}else this.oa.qa("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Hh,upcomingCpn:b,contentCpn:this.oa.getVideoData().clientPlaybackNonce,currentTime:this.oa.getCurrentTime()});
this.j=void 0;this.Ia=!1}else this.j={ue:a,isAd:!c,Uq:!1,Hh:this.oa.getCurrentTime(),adCpn:b};else this.oa.qa("sdai",{ignore_single_exit:1})};
g.k.seekTo=function(a,b,c,d){a=void 0===a?0:a;b=void 0===b?{}:b;c=void 0===c?!1:c;d=void 0===d?null:d;if(KT(this.oa.getVideoData())&&this.W.L("html5_lifa_ad_removed_ne")&&a<=this.Za/1E3)this.oa.pauseVideo(),this.Za=0,this.Ia=!0,X_(this.oa),this.oa.seekTo(a),this.oa.playVideo();else if(this.Ia=!0,c)l3a(this,a,b);else{c=this.api.fd();var e=c===this.ib?this.Nb:null;PY(this,!1);this.jc=a;this.Vb=b;null!=d&&this.Ob.start(d);c&&(this.Nb=e||c.getPlayerState(),wcb(c),this.ib=c)}};
g.k.xa=function(){PY(this,!1);x3a(this);y3a(this);g.I.prototype.xa.call(this)};
g.k.TR=function(a){this.Yc=a;this.oa.qa("sdai",{swebm:a})};
g.k.Uk=function(a,b,c,d){if(c&&b){var e;this.W.L("html5_ssdai_use_media_time")?e=RY(this,d):e=this.D.get(a);e&&(e.locations||(e.locations=new Map),d=Number(b.split(";")[0]),c=new g.JP(c),this.Wa&&this.oa.qa("sdai",{hdlredir:1,itag:b,seg:a,hostport:LP(c)}),e.locations.set(d,c))}};
g.k.oI=function(a,b,c,d,e,f){var h=3===d;e=A3a(this,a,b,d,c,f);if(!e)return TY(this,b,h),e=g.z3a(this,b)?"undec":"ncp",this.oa.qa("sdai",{gvprp:e,mt:a,seg:b,tt:d,itag:c,ce:f}),null;h||this.D.set(b,e);a=e.Xm;var l;d=(null==(l=SY(this,b-1,d))?void 0:l.Fs)||"";""===d&&this.oa.qa("sdai",{eds:1});l=GR(e.ssdaiAdsConfig||"")||void 0;c=this.oa.getVideoData();var m;f=(null==(m=c.B)?void 0:m.containerType)||0;m=c.iV[f];b=e.xx&&b>=e.xx?e.xx:void 0;return{ox:{xM:a?E3a(this,a):[],D5:l,Fs:d,g0:b,Dda:jf(m.split(";")[0]),
Eda:m.split(";")[1]||""}}};
g.k.xz=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]);e=3===d;a=A3a(this,a,b,d,c,f);this.Wa&&this.oa.qa("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return TY(this,b,e),null;a.locations||(a.locations=new Map);if(!a.locations.has(h)){var l,m;f=null==(l=a.videoData.getPlayerResponse())?void 0:null==(m=l.streamingData)?void 0:m.adaptiveFormats;if(!f)return this.oa.qa("sdai",{gdu:"noadpfmts",seg:b,itag:h}),TY(this,b,e),null;l=f.find(function(v){return v.itag===h});
if(!l||!l.url){var n=a.videoData.videoId;a=[];d=g.u(f);for(var p=d.next();!p.done;p=d.next())a.push(p.value.itag);this.oa.qa("sdai",{gdu:"nofmt",seg:b,vid:n,itag:h,fullitag:c,itags:a.join(",")});TY(this,b,e);return null}a.locations.set(h,new g.JP(l.url,!0))}l=a.locations.get(h);if(!l)return this.oa.qa("sdai",{gdu:"nourl",seg:b,itag:h}),TY(this,b,e),null;l=new vQ(l);this.Yc&&(l.get("dvc")?this.oa.qa("sdai",{dvc:l.get("dvc")||""}):l.set("dvc","webm"));var q;(m=null==(q=SY(this,b-1,d))?void 0:q.Fs)&&
l.set("daistate",m);a.xx&&b>=a.xx&&l.set("skipsq",""+a.xx);(m=this.oa.getVideoData().clientPlaybackNonce)&&l.set("cpn",m);q=[];a.Xm&&(q=E3a(this,a.Xm),0<q.length&&l.set("acpns",q.join(",")));e||this.D.set(b,a);e=null;e=l.get("aids");var r;if(((null==(p=e)?void 0:null==(r=p.split(","))?void 0:r.length)||0)!==q.length)if(a.Xm){var t;this.oa.qa("sdai",{acpns_aids_nm:1,ids:G3a(this,a.Xm).join("_"),acpns:q.join("_"),aids:null==(t=e)?void 0:t.replace(/,/g,"_"),cpn:m,trackType:d})}else this.oa.qa("sdai",
{acpns_aids_nm:"noAdBreakId",cpn:m});d=l.Ue();2048<(null==d?void 0:d.length)&&this.oa.qa("sdai",{urltoolong:1,sq:b,itag:h,len:d.length});this.Wa&&(d&&(r=a.cpn,p=a.Xm,I3a(this,r,p),p&&!this.me.has(p)&&(r=F3a(this,r,p),t=H3a(this,p),this.oa.qa("sdai",{iofa:r}),this.oa.qa("sdai",{noawnzd:t-r}),this.oa.qa("sdai",{acpns:q.join("."),aids:null==(n=e)?void 0:n.replace(/,/g,".")}),this.me.add(p))),this.oa.qa("sdai",{gdu:"v",seg:b,itag:c,ast:a.Bc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));
return d};
g.k.JF=function(a,b,c){var d=QY(this,a,c);return(d=d?(d.Bc+d.durationMs)/1E3:0)&&b>d?(this.au(a,c,!0),this.oa.seekTo(d),!0):!1};
g.k.au=function(a,b,c){c=void 0===c?!1:c;if(a=QY(this,a,b)){var d=a.Xm;if(d){this.oa.qa("sdai",{skipadonsq:b,sts:c,abid:d,acpn:a.cpn,avid:a.videoData.videoId});c=this.Z.get(d);if(!c)return;c=g.u(c);for(d=c.next();!d.done;d=c.next())d.value.xx=b}this.ma=a.cpn;B3a(this)}};
g.k.xR=function(){for(var a=g.u(this.N),b=a.next();!b.done;b=a.next())b.value.xx=NaN;B3a(this);this.oa.qa("sdai",{rsac:"resetSkipAd",sac:this.ma});this.ma=""};
g.k.pG=da(43);
g.k.GQ=function(a,b,c,d,e,f,h,l,m){m&&(h?this.Xa.set(a,{Fs:m,Ky:l}):this.Ma.set(a,{Fs:m,Ky:l}));if(h){if(d.length&&e.length)for(this.ma&&this.ma===d[0]&&this.oa.qa("sdai",{skipfail:1,sq:a,acpn:this.ma}),a=b+this.Xs(),h=0;h<d.length;h++)if(m=d[h],l=a,a=l+e[h],m=this.G.get(m))l-=f[h],m.HC=null!=m.HC?Math.min(m.HC,l):l;if(d.length&&e.length)for(b=1E3*(b+this.Xs()),c=0;c<d.length;c++)if(a=d[c],h=1E3*e[c],a===this.oa.getVideoData().clientPlaybackNonce)D3a(this,b,b+h,!1),b+=h;else if(this.Bd.has(a)||(this.oa.qa("sdai",
{adCpnFromEmsg:1}),this.Bd.add(a)),l=0,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.oa.Nh.No()):(m=s3a(b-l,b+h,a),this.C.set(a,m),this.oa.qa("sdai",{newAdCR:1,cpn:a,startTime:m.start,endTime:m.end}),n=!0);b=m.end;D3a(this,m.start,m.end,!0);if(n)for(this.oa.addCueRange(m),a=this.oa.lD("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||
D3a(this,1E3*(b+this.Xs()),1E3*(b+this.Xs())+5E3,!1)}};
g.k.yD=da(45);g.k.Xs=function(){return this.oa.Xs()};
g.k.tE=function(a){this.oa.qa("timelineerror",{e:a})};
g.k.QD=function(a){this.Ca&&this.Y&&this.Ea.push(this.Y);a&&this.Y&&this.Jc.push(this.Y);this.Y=null;this.oa.QD(a)};
g.k.qI=function(a){if(this.qp||a.identifier&&this.Pe.has(a.identifier))this.Wa&&this.oa.qa("sdai",{startnoad:a.identifier}),KY(this);else if(As(this.Ea,function(c){return c.identifier===a.identifier}))this.oa.qa("sdai",{timedoutcp:1}),this.K.start(0);
else if(As(this.Jc,function(c){return c.identifier===a.identifier}))this.oa.qa("sdai",{fetchedcp:1}),KY(this);
else if(this.K.isActive()){var b;this.oa.qa("sdai",{racingcp:(null==(b=this.Y)?void 0:b.identifier)+"_"+a.identifier})}else this.Kd=(new Date).getTime()/1E3,this.Wa&&this.oa.qa("sdai",{adf:1}),(b=5E3,"predictStart"===a.event)&&(b-=a.j),this.Gb=Math.max(b,15E3),this.Ca=!1,this.K.start(this.Gb),this.Y=a,this.Ma.clear(),this.Xa.clear(),this.Na.clear(),this.ub=[]};
g.k.Zs=function(a,b){if(!QY(this,a,b)||this.qp)return!1;this.qp=!0;0<this.va&&(this.va=0,this.api.ra("serverstitchedvideochange"));this.oa.BH({reason:"disablessdai",sq:b});return!0};
g.k.Lv=function(){this.oa.qa("sdai",{rstdaist:1});this.Ma.clear();this.Xa.clear();this.Na.clear()};
g.k.Pt=function(a){this.Pe.add(a);var b;(null==(b=this.Y)?void 0:b.identifier)===a&&KY(this)};
g.k.ZN=function(){return this.va};
g.k.Mt=function(a){var b=dW(this.api.Bb());return b?b.Mt(a):!1};
g.k.DN=function(a){return this.qp?!1:!!RY(this,a)};
g.k.eS=function(){this.oa.pauseVideo();var a=this.oa.getCurrentTime(),b=OY(this,a,1);if(b.hn)return b.hn.jE=!0,this.D.clear(),X_(this.oa),this.oa.seekTo(a),this.oa.playVideo(),!0;this.oa.qa("sdai",{skipFail:a});return!1};
var q3a=0;g.w(L3a,g.I);g.k=L3a.prototype;g.k.addPlayerResponseForAssociation=function(a){a=new g.XS(this.api.U(),a);var b=a.clientPlaybackNonce;if(b&&(this.kz.set(b,a),b=GY(this.timeline,b),null==b?0:b.length)){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a.fk=c.zf(),c.RF(a)}};
g.k.finishSegmentByCpn=function(a,b,c){c=void 0===c?3:c;this.WR&&this.Bv&&a===this.Bv&&(this.api.qa("ssap",{reloadp:this.Bv}),X_(this.oa),this.Bv="",this.KW=!0);if(this.dg===b)return[];this.j=b;var d=!1;if(this.wk.has(a)&&(d=J3a(this,c),!d))return[a];var e=GY(this.timeline,b);if(e){e.sort(function(l,m){return l.zf()-m.zf()});
var f=g.u(e);for(e=f.next();!e.done;e=f.next()){e=e.value;var h=this.oa.getCurrentTime();this.api.L("html5_ssap_get_current_time_refactor")&&(h*=1E3);if(e.zf()>=h){this.C.set(a,c);if(c=this.Vj.get(a))this.oa.removeCueRange(c),this.Vj.delete(a);this.K.set(a,(0,g.pD)());if(c=this.Vj.get(b))for(c=c.getId().split(","),c=g.u(c),f=c.next();!f.done;f=c.next())f=f.value,f!==b&&this.wk.has(f)&&(this.wk.delete(f),this.XF.add(f));this.oa.seekTo(e.zf()/1E3);d&&this.api.playVideo(1);return[a]}}}return[]};
g.k.XW=function(){var a=this.timeline.j;if(!a)return 0;var b=a.dj();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())d=d.value,d.dj()>b&&(b=d.dj())}return b/1E3};
g.k.Rd=function(){var a=1E3*this.oa.getCurrentTime();return(a=VY(this,a))&&1===a.getType()?a.zf()/1E3:0};
g.k.Yz=function(){var a=GY(this.timeline,this.dg);return(null==a?0:a.length)?a[0].C:!1};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;var c=O3a(this,this.oa.getCurrentTime());this.oa.seekTo(a+c/1E3,b)};
g.k.onCueRangeEnter=function(a){if(!this.G.has(a.getId())){for(var b=a.getId().split(","),c=0;c<b.length&&this.j&&b[c]!==this.j;){var d=b[c];this.wk.has(d)&&(this.wk.delete(d),this.XF.add(d));c++}if(b.length>c+1)for(d=c+1;d<b.length;d++)this.B.push(b[d]);b=b[c];this.wk.has(b)&&T3a(this,b);this.XF.has(b)||U3a(this,b);b=g.u(this.Vj.values());for(c=b.next();!c.done;c=b.next())c=c.value,c.start<=a.start&&!this.G.has(a.getId())&&this.G.add(c.getId())}};
g.k.ZN=function(){return this.N};
g.k.xa=function(){this.kz.clear();this.wk.clear();this.G.clear();this.C.clear();this.K.clear();this.XF.clear();this.B=[];K3a(this);this.j="";g.FC(this.events);g.I.prototype.xa.call(this)};g.w($3a,g.I);g.k=$3a.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.fd()){var b=this.K.get(a);b?f4a(this,b.target,b.Hm,a):this.ze("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.B.find(function(e){return e.Is.ue===a})){var c=b.Is,d=c.target;
c=c.Hm;d?f4a(this,d,c,a):e4a(this,b.ge,c,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.N;dZ(this);if(a){if(!cZ(this,a)){var b=this.api.fd();this.ze("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.fd().addCueRange(a.Is.ue)}};
g.k.seekTo=function(a,b,c,d){a=void 0===a?0:a;b=void 0===b?{}:b;d=void 0===d?null:d;if(void 0===c?0:c)Z3a(this,a,b);else{c=this.api.fd();var e=c===this.D?this.G:null;eZ(this,!1);this.ma=a;this.Y=b;null!=d&&this.Z.start(d);c&&(this.G=e||c.getPlayerState(),wcb(c),this.D=c)}};
g.k.Ak=function(a){g.LG(a,128)&&k4a(this)};
g.k.isManifestless=function(){return gT(this.j.getVideoData())};
g.k.xa=function(){eZ(this,!1);m4a(this);g.I.prototype.xa.call(this)};
g.k.ze=function(a,b){this.j.ze(new BK(a,b))};
var a4a=0;var n4a="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.w(hZ,g.I);g.k=hZ.prototype;g.k.get=function(a){fZ(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);fZ(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.pD)()+c);for(this.data.push(a);this.data.length>this.C;)(c=this.data.shift())&&iZ(this,c,!0);gZ(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&&(iZ(this,c,b),g.Jb(this.data,function(d){return d.key===a}),gZ(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())iZ(this,c.value,a);this.data=[];gZ(this)};
g.k.xa=function(){var a=this;g.I.prototype.xa.call(this);this.data.forEach(function(b){iZ(a,b,!0)});
this.data=[]};g.w(jZ,g.I);jZ.prototype.WH=function(a){if(a)return this.B.get(a)};
jZ.prototype.xa=function(){this.j.Tf();this.B.Tf();g.I.prototype.xa.call(this)};g.w(r4a,g.I);r4a.prototype.xa=function(){g.I.prototype.xa.call(this);this.j=null;this.B&&this.B.disconnect()};g.Ylb=Td(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var F3;F3={};g.kZ=(F3.STOP_EVENT_PROPAGATION="html5-stop-propagation",F3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",F3.IV_DRAWER_OPEN="ytp-iv-drawer-open",F3.MAIN_VIDEO="html5-main-video",F3.VIDEO_CONTAINER="html5-video-container",F3.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",F3.HOUSE_BRAND="house-brand",F3);g.w(v4a,g.V);g.k=v4a.prototype;g.k.qs=function(){g.Zu(this.element,g.Ia.apply(0,arguments))};
g.k.Jj=function(){this.Fc&&(this.Fc.removeEventListener("focus",this.oQ),g.Rf(this.Fc),this.Fc=null)};
g.k.zN=function(){this.isDisposed();var a=this.app.U();a.Um||this.qs("tag-pool-enabled");a.N&&this.qs(g.kZ.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.qs("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Jc&&(this.nN=g.xE("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
g.k.EK=function(a){g.ZR(this.app.U());this.AI=!a;lZ(this)};
g.k.resize=function(){if(this.Fc){var a=this.Qh();if(!a.isEmpty()){var b=!g.Re(a,this.WA.getSize()),c=A4a(this);b&&(this.WA.width=a.width,this.WA.height=a.height);a=this.app.U();(c||b||a.Jc)&&this.app.Va.ra("resize",this.getPlayerSize())}}};
g.k.gt=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.Fc){var b=this.app.U();FD&&(this.Fc.setAttribute("x-webkit-airplay","allow"),a.title?this.Fc.setAttribute("title",a.title):this.Fc.removeAttribute("title"));this.Fc.setAttribute("controlslist","nodownload");b.Qr&&a.videoId&&(this.Fc.poster=a.hh("default.jpg"))}b=g.uT(a,"yt:bgcolor");this.fz.style.backgroundColor=b?b:"";this.NP=Jpa(g.uT(a,"yt:stretch"));this.OP=Jpa(g.uT(a,"yt:crop"),!0);g.bv(this.element,"ytp-dni",a.Of);this.resize()};
g.k.setGlobalCrop=function(a){this.AO=Jpa(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.PV=a;this.resize()};
g.k.Fm=function(){};
g.k.getPlayerSize=function(){var a=this.app.U(),b=this.app.Va.isFullscreen(),c=a.externalFullscreen&&g.UR(a)&&a.L("embeds_web_enable_set_faux_fullscreen_in_public_api");if(b&&cC()&&!c)return new g.Oe(window.outerWidth,window.outerHeight);if(b||a.Uo){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.xE&&this.xE.media===a||(this.xE=window.matchMedia(a));var d=this.xE&&this.xE.matches}if(d)return new g.Oe(window.innerWidth,window.innerHeight)}else if(!isNaN(this.oD.width)&&
!isNaN(this.oD.height))return this.oD.clone();return new g.Oe(this.element.clientWidth,this.element.clientHeight)};
g.k.Qh=function(){var a=this.app.U().L("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.lJ(this.app.U().experiments,"player_underlay_min_player_width");return a&&this.bR&&b.width>c?new g.Oe(b.width*g.lJ(this.app.U().experiments,"player_underlay_video_width_fraction"),b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.NP)?x4a(this):this.NP};
g.k.getVideoContentRect=function(a){var b=this.Qh();a=y4a(this,b,this.getVideoAspectRatio(),a);return new g.hs((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.tB=function(a){this.bR=a;this.resize()};
g.k.iE=function(){return this.eK};
g.k.onMutedAutoplayChange=function(){lZ(this)};
g.k.setInternalSize=function(a){g.Re(this.oD,a)||(this.oD=a,this.resize())};
g.k.xa=function(){this.nN&&g.yE(this.nN);this.Jj();g.V.prototype.xa.call(this)};g.k=B4a.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.qF();c&&a.visualElement&&g.KF(c,a.visualElement,b)};
g.k.createClientVe=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=jva(c);a.visualElement=c;var f=g.qF(),h=g.pF();f&&h&&(g.PB("combine_ve_grafts")?kP(iP(),c,h):g.xB(g.DF)(void 0,f,h,c));b.addOnDisposeCallback(function(){e.destroyVe(a)});
d&&this.B.add(a)};
g.k.createServerVe=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);b.addOnDisposeCallback(function(){d.destroyVe(a)});
c&&this.B.add(a)};
g.k.destroyVe=function(a){this.elements.has(a);this.elements.delete(a);this.C.delete(a);this.j.delete(a);this.B.delete(a)};
g.k.eW=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,jP(iP(),a),C4a(this))};
g.k.setTrackingParams=function(a,b){this.elements.has(a);b&&(a.visualElement=g.oF(b))};
g.k.hasVe=function(a){return this.elements.has(a)};D4a.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
D4a.prototype.getPlaybackRate=function(){return this.playbackRate};oZ.prototype.seek=function(a,b){a!==this.j&&(this.seekCount=0);this.j=a;var c=this.videoTrack.B,d=this.audioTrack.B,e=this.audioTrack.dc,f=L4a(this,this.videoTrack,a,this.videoTrack.dc,b);b=L4a(this,this.audioTrack,this.policy.Fe?a:f,e,b);a=Math.max(a,f,b);this.G=!0;this.manifest.isManifestless&&(J4a(this,this.videoTrack,c),J4a(this,this.audioTrack,d));return a};
oZ.prototype.eg=function(){return this.G};
oZ.prototype.RR=function(a){this.C=a};
var K4a=2/24;var P4a=0;g.k=yZ.prototype;g.k.Sw=function(){this.ib=this.now();GQa(this.Dd,this.ib);this.Ib.Sw()};
g.k.Qt=function(a,b){var c=this.policy.B?(0,g.pD)():0;zZ(this,a,b);10>a-this.D&&this.Mn()||this.Mu(a,b);this.Ib.Qt(a,b);this.policy.B&&(a=(0,g.pD)()-c,this.Gb+=a,this.tb=Math.max(a,this.tb))};
g.k.Mu=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.Gs||(HQa(this.Dd,c,d),this.ix(c,d));this.D=a;this.B=b};
g.k.qr=function(){this.va&&Q4a(this);this.Ib.qr()};
g.k.Pw=function(a){this.va||(this.va=this.K-this.Vb+a,this.Lc=this.K,this.Jc=this.Z)};
g.k.hs=function(){var a={rn:this.requestNumber,rt:(this.Z-this.j).toFixed(),lb:this.K,stall:(1E3*this.C).toFixed(),ht:(this.ib-this.j).toFixed(),elt:(this.Y-this.j).toFixed(),elb:this.Na,d:S4a(this)};this.url&&sUa(a,this.url);this.policy.B&&(a.mph=this.tb.toFixed(),a.tph=this.Gb.toFixed());this.policy.j&&(a.ulb=this.Wa,a.ult=this.Ia,a.abw=this.Ra);return a};
g.k.now=function(){return(0,g.pD)()};
var xZ;g.w(BZ,yZ);g.k=BZ.prototype;g.k.hs=function(){var a=yZ.prototype.hs.call(this);a.pb=this.kD;a.pt=(1E3*this.Ma).toFixed();this.policy.j&&(a.se=this.jc);return a};
g.k.Qs=function(){var a=this.Ib;this.Za||(this.Za=a.Qs?a.Qs():1);return this.Za};
g.k.MI=function(){return this.Zk?1!==this.Qs():!1};
g.k.ZP=function(a,b,c){if(!this.Ob){this.Ob=!0;if(!this.Gs){zZ(this,a,b);this.Mu(a,b);var d=this.Qs();this.jc=c;if(2===d&&(c||this.policy.G))this.policy.G?this.Gs||(this.Ia?KR(this.Dd,this.Ia/1E3,this.Wa,.25):KR(this.Dd,b/(c||this.Ra),b,.01),NR(this.Dd,b,this.C)):CZ(this,this.B/c,this.B);else if(2===d||1===d)c=(a-this.j)/1E3,!(c<=this.policy.C)&&this.policy.C||this.ub||this.policy.K||!this.Mn()||CZ(this,c,b),this.Mn()&&NR(this.Dd,b,this.C);MR(this.Dd,(a-this.j)/1E3||.01,this.B,this.Ma,this.kp)}AZ(this)}};
g.k.Mu=function(a,b){var c=(a-this.D)/1E3,d=b-this.B,e=this.Qs();this.isActive?1===e&&((0<d||this.policy.D)&&(.2<c||1024>d)?(this.C+=c,0<d&&.2<c&&CZ(this,.05,d),this.ub=!0):0<d&&(CZ(this,c,d),this.ub=!0)):V4a(this,b)&&(1===e&&(c=(a-this.j)/1E3,this.Zk&&Z4a(this,this.now()),this.Nb||this.Gs||(d=this.Dd,d.N.Rj(1,c),d.policy.j||LR(d))),this.Y=a,this.Na=b,this.isActive=!0);yZ.prototype.Mu.call(this,a,b)};
g.k.uJ=function(a){if(!this.Gs){zZ(this,a,this.K);var b=(a-this.j)/1E3;2!==this.Qs()&&this.Mn()&&(this.C+=(a-this.D)/1E3,NR(this.Dd,this.B,this.C));MR(this.Dd,b,this.B,this.Ma,this.kp,!0);a=(a-this.D)/1E3;HQa(this.Dd,a,0);this.ix(a,0)}};
g.k.Mn=function(){return V4a(this,this.B)};
g.k.gX=function(){this.Zk&&Z4a(this,this.now());return this.Ea};
g.k.Yv=function(){return this.B>this.OQ&&V4a(this,this.B)};
g.k.jI=function(){return this.fb};
g.k.pR=function(a){a=void 0===a?this.now():a;if(this.Zk){Z4a(this,a);if(this.Za?this.MI():this.G!==this.ma){var b=this.ma;if(a<b){this.fb=this.ma;return}}else b=this.G;b=Math.max(b,this.Ea)}else b=this.Ea;var c=this.kD-this.B;0>c&&(c=0);c=1E3*(c*this.snapshot.stall+c/this.snapshot.byterate);this.fb=c=this.Mn()?c+a:c+Math.max(a,b)};
g.k.UH=function(){return this.now()-this.Y};
g.k.pO=function(){return 1E3*(this.B-this.Na)/this.UH()||0};
g.k.hX=function(){return this.Y};DZ.prototype.feed=function(a){dO(this.j,a);this.xf()};
DZ.prototype.xf=function(){if(this.D){if(!this.j.getLength())return;var a=this.j.split(this.C-this.B),b=a.zI;a=a.Gm;if(!this.Ib.Pw(this.D,b,this.B,this.C))return;this.B+=b.getLength();this.j=a;this.B===this.C&&(this.D=this.C=this.B=void 0)}for(;;){var c=0;a=g.u($4a(this.j,c));b=a.next().value;c=a.next().value;c=g.u($4a(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.Ib.Pw&&c+1<=this.j.totalLength))break;c=this.j.split(c).Gm;this.Ib.Pw(b,c,0,
a)&&(this.D=b,this.B=c.getLength(),this.C=a,this.j=new cO([]));break}a=this.j.split(c).Gm.split(a);c=a.Gm;this.Ib.OA(b,a.zI);this.j=c}};
DZ.prototype.dispose=function(){this.j=new cO};g.k=EZ.prototype;g.k.YN=function(){return 0};
g.k.YH=function(){return null};
g.k.UW=function(){return null};
g.k.zt=function(){return 1<=this.state};
g.k.isComplete=function(){return 3<=this.state};
g.k.qm=function(){return 5===this.state};
g.k.onStateChange=function(){};
g.k.Hc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
g.k.AA=function(a){a&&this.state<a?this.Hc(a):this.callback&&this.callback(this,this.state)};
g.k.isDisposed=function(){return-1===this.state};
g.k.Qd=function(){var a="";this.info.eb.forEach(function(b){a+=b.Qd()+"."});
return a.slice(0,-1)};
g.k.dispose=function(){this.isDisposed()||(this.info.eb[0].j.C=!1,this.Hc(-1))};
g.k.tO=function(){return 0};
g.k.Kn=function(){return!1};g.k=b5a.prototype;g.k.JA=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.Ib.Sw()};
g.k.onError=function(){this.C=!0;this.onDone()};
g.k.onDone=function(){this.isDisposed||(this.G=!0,this.Ib.qr())};
g.k.Nv=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return""}};
g.k.xD=function(){return+this.getResponseHeader("content-length")};
g.k.yn=function(){return this.B};
g.k.ex=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Wk=function(){return 0<this.j.getLength()};
g.k.vx=function(){var a=this.j;this.j=new cO;return a};
g.k.ZJ=function(){return this.j};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.BB=function(){return!0};
g.k.lK=function(){return this.C};
g.k.Af=function(){return""};g.k=d5a.prototype;
g.k.HF=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x;return g.H(function(A){if(1==A.j){a.status=200;b=a.j.get("docid");c=Ze(a.j.get("fmtid")||"");d=a.j.get("lmt")||"0";e=+(a.j.get("csz")||0);if(!b||!c||!e)throw Error("Invalid local URL");a.j.get("ck")&&a.j.get("civ")&&(f=new c5a(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!=A.j)return n<=m?g.z(A,jSa(b,c,d,n,f),5):A.Ka(0);p=A.B;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;
r=(n+1)*e;t=Math.max(0,h.start-q);v=Math.min(h.end+1,r)-(t+q);x=new Uint8Array(p.buffer,t,v);a.B.append(x);a.loaded+=v;a.loaded<h.length&&a.Ib.Qt((0,g.pD)(),a.loaded);n++;return A.Ka(2)})};
g.k.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
g.k.abort=function(){};
g.k.Nv=function(){return!0};
g.k.xD=function(){return this.range.length};
g.k.yn=function(){return this.loaded};
g.k.ex=function(){return!!this.loaded};
g.k.Wk=function(){return!!this.B.getLength()};
g.k.vx=function(){var a=this.B;this.B=new cO;return a};
g.k.ZJ=function(){return this.B};
g.k.BB=function(){return!0};
g.k.lK=function(){return!!this.error};
g.k.Af=function(){return this.error};g.k=f5a.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.Y);this.D&&(b.signal=this.D.signal);a=new Request(a,b);fetch(a).then(this.va,this.onError).then(void 0,Kqa)};
g.k.onDone=function(){this.isDisposed()||this.Ib.qr()};
g.k.getResponseHeader=function(a){return this.G?this.G.get(a):null};
g.k.Nv=function(){return!!this.G};
g.k.yn=function(){return this.B};
g.k.xD=function(){return+this.getResponseHeader("content-length")};
g.k.ex=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Wk=function(){return!!this.j.getLength()};
g.k.vx=function(){this.Wk();var a=this.j;this.j=new cO;return a};
g.k.ZJ=function(){this.Wk();return this.j};
g.k.isDisposed=function(){return this.K};
g.k.abort=function(){this.C&&this.C.cancel().catch(function(){});
this.D&&this.D.abort();this.K=!0};
g.k.BB=function(){return!0};
g.k.lK=function(){return this.N};
g.k.Af=function(){return this.errorMessage};g.k=g5a.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(a){}this.j=!0;this.Ib.qr()}};
g.k.JA=function(){2===this.xhr.readyState&&this.Ib.Sw()};
g.k.hg=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.B=a.loaded),this.Ib.Qt((0,g.pD)(),a.loaded))};
g.k.Nv=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.uF(Error("Could not read XHR header "+a)),""}};
g.k.xD=function(){return+this.getResponseHeader("content-length")};
g.k.yn=function(){return this.B};
g.k.ex=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.B};
g.k.Wk=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.k.vx=function(){this.Wk();var a=this.response;this.response=void 0;return new cO([new Uint8Array(a)])};
g.k.ZJ=function(){this.Wk();return new cO([new Uint8Array(this.response)])};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.BB=function(){return!1};
g.k.lK=function(){return!1};
g.k.Af=function(){return""};g.w(GZ,g.I);g.k=GZ.prototype;g.k.Yba=function(){if(!this.isDisposed()){var a=(0,g.pD)(),b=!1;if(this.timing.Mn()){if(this.G)return;var c=this.timing.jI();this.timing.pR();var d=this.timing.jI();d-c>=.8*this.policy.Wi?(this.j++,this.logger.debug(function(){return"Mispredicted by "+(d-c).toFixed(0)}),b=5<=this.j):this.j=0}else{var e=a-this.timing.gX();
0<e&&(this.j+=1);a=HOa(HZ(this),!1)*this.policy.BA;(b=e>1E3*a)&&this.logger.debug(function(){return"Elbow late by "+e.toFixed(3)})}0<this.j&&this.Ib.zX();
b?this.FB(!1):this.B.start()}};
g.k.FB=function(a){this.C=!0;a&&(a=HZ(this),a.C+=1);this.Ib.Iy();this.lastError="net.timeout";IZ(this)};
g.k.canRetry=function(a){var b=HZ(this);a=a?this.policy.Gx:this.policy.Yf;return b.timedOut<this.policy.Cu&&b.j<a};
g.k.gh=function(){return this.lastError};
g.k.Hv=function(){return this.j};
g.k.dispose=function(){this.B.dispose();g.I.prototype.dispose.call(this)};g.w(qZ,EZ);g.k=qZ.prototype;g.k.Kq=function(){return this.timing.requestNumber};
g.k.Ue=function(){return this.ke.Ue()};
g.k.Eq=function(){var a=k5a(this.Jd);if(this.El){var b=this.El,c=b.j.getLength();a.ulen=c;0<c&&(b=gO(b.j,0),a.ubyte=b,1===c&&0===b&&(a.b248180278=!0))}this.Ig&&(a.rc=this.policy.fk?this.Ig:this.Ig.toString());this.policy.Gb&&this.D0&&(a.tr=this.D0);a.itag=this.info.eb[0].j.info.itag;a.ml=""+ +this.info.eb[0].j.wg();a.sq=""+this.info.eb[0].Pa;this.ke&&(a.ifi=""+ +zNa(this.info.resource.B));410!==this.Ig&&500!==this.Ig&&503!==this.Ig||(a.fmt_unav="true");var d;(c=this.errorMessage||(null==(d=this.xhr)?
void 0:d.Af()))&&(a.msg=c);this.cG&&(a.smb="1");HQ(this.info)&&(a.sdai="1");return a};
g.k.PW=function(){return W4a(this.timing)};
g.k.Af=function(){return this.xhr.Af()||""};
g.k.Yv=function(){return this.isComplete()||this.timing.Yv()};
g.k.Qt=function(){!this.isDisposed()&&this.xhr&&(this.Ig=this.xhr.status,this.policy.Vm&&this.og&&this.lm(!1),this.fl()?this.AA(2):!this.KX&&this.Yv()&&(this.AA(),this.KX=!0))};
g.k.Sw=function(){if(!this.isDisposed()&&this.xhr){if(!this.Zy&&this.xhr.Nv()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Zy=((0,g.pD)()-a)/1E3}this.xhr.Nv()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.wC&&!$Ma()&&g.IC("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.Ep=a||this.Ep;this.Qq=b||this.Qq}};
g.k.qr=function(){var a=this.xhr;if(!this.isDisposed()&&a){this.Ig=a.status;a=this.JO(a);if(this.policy.Gb){var b;null==(b=this.CE)||b.stop()}5===a?IZ(this.Jd):this.Hc(a);this.Jd.B.stop()}};
g.k.JO=function(a){var b=this;r5a(this);if(JZ(this.Jd,this.xhr.status,this.vp?this.timing.Ca||this.cL:this.xhr.ex()))return 5;var c="";if(n5a(this)){var d=a.ZJ();d.getLength()<=this.policy.Um&&(c=o5a(this,fO(d)))}if(c)return GOa(HZ(this.Jd)),this.info.Uk(this.ke,c),3;c=a.yn();if(this.El){this.lm(!0);r5a(this);if(JZ(this.Jd,this.xhr.status,this.timing.Ca||this.cL))return 5;if(!this.P0){if(this.cL)return GOa(HZ(this.Jd)),3;this.Jd.lastError="net.closed";return 5}}else{if(JZ(this.Jd,this.xhr.status,
this.xhr.ex()))return 5;if((d=this.info.C)&&d!==c||a.lK())return this.Jd.lastError="net.closed",5;this.lm(!0)}d=a5a(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=a5a(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.R_=!0,this.policy.WB&&(d=a);j5a(this.Jd,c,d?Number(d):0);this.logger.debug(function(){var e=b.timing;return"Succeeded, rtpd="+(1E3*e.Ma+e.j-Date.now()).toFixed(0)});
return 4};
g.k.canRetry=function(){this.isDisposed();return this.Jd.canRetry(HQ(this.info))};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.Nl?this.Iy():AZ(this.timing))};
g.k.FB=function(a){this.Jd.FB(a)};
g.k.zX=function(){this.callback&&this.callback(this,this.state)};
g.k.Hv=function(){return this.Jd.Hv()};
g.k.dispose=function(){EZ.prototype.dispose.call(this);this.Jd.dispose();var a;null==(a=this.CE)||a.dispose();this.policy.Nl||this.Iy()};
g.k.Iy=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();AZ(this.timing)};
g.k.Kn=function(){return this.info.Kn()};
g.k.Ik=function(){if(!this.aF().length)return[];this.MO=!0;return this.og.Ik()};
g.k.fl=function(){if(1>this.state)return!1;if(this.og&&this.og.Df.length)return!0;var a;return(null==(a=this.xhr)?0:a.Wk())?!0:!1};
g.k.aF=function(){this.lm(!1);return this.og?this.og.aF():[]};
g.k.lm=function(a){try{if(a||this.xhr.Nv()&&this.xhr.Wk()&&!n5a(this)&&!this.RA)this.og||(this.og=new lY(this.policy,this.info.eb)),this.xhr.Wk()&&(this.El?this.El.feed(this.xhr.vx()):mY(this.og,this.xhr.vx(),a&&!this.xhr.Wk()))}catch(b){this.El?m5a(this,b):g.uF(b)}};
g.k.OA=function(a,b){switch(a){case 21:a=b.split(1).Gm;p5a(this,a);break;case 22:this.P0=!0;mY(this.og,new cO([]),!0);break;case 43:if(a=uO(new oO(b),1))this.info.Uk(this.ke,a),this.cL=!0;break;case 45:b=KUa(new oO(b));a=b.AK;b=b.BK;a&&b&&(this.dH=a/b);break;case 44:this.kB=fVa(new oO(b));var c,d,e;!this.timing.Ca&&4===(null==(c=this.kB)?void 0:c.action)&&(null==(d=this.kB)?0:null==(e=d.I_)?0:e.vp)&&(this.vp=this.kB.I_.vp);break;case 53:this.policy.Gb&&(a=cVa(new oO(b)).q9)&&(this.CE||(this.CE=new g.Qu(this.Z8,
a,this)),this.CE.start());break;case 60:this.hA=zUa(new oO(b));break;case 64:this.policy.Cy&&(a=yUa(new oO(b)),this.policy.Ot(a));break;case 58:this.policy.Ob&&(a=UUa(new oO(b)))&&(this.aq=a)}};
g.k.Pw=function(a,b,c,d){this.timing.policy.j&&!c&&this.timing.Pw(d);if(21!==a)return!1;if(a=this.policy.Vm)if(d=b.getLength()+c===d,a*=this.info.eb[0].j.info.Pb,!d&&b.getLength()<a)return!1;if(!c){if(1===b.getLength())return!0;b=b.split(1).Gm}p5a(this,b);return!0};
g.k.yn=function(){return this.xhr.yn()};
g.k.YN=function(){return this.Zy};
g.k.Qs=function(){return this.MI()?2:1};
g.k.MI=function(){if(!this.policy.N.nj||!isNaN(this.info.ih)&&0<this.info.ih)return!1;if(!this.xhr.Nv())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.El)var a=!this.info.C;else this.xhr.xD()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a="audio/mp4"===a||"video/mp4"===a||"video/webm"===a);if(!a)return!1;if(isNaN(this.info.ih))if(a=this.xhr.getResponseHeader("x-head-seqnum"),!a)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");else if(Number(a)>
this.info.eb[0].Pa)return!1;return!0};
g.k.tO=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.k.YH=function(){this.xhr&&(this.Ep=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Ep};
g.k.UW=function(){this.xhr&&(this.Qq=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Qq};
g.k.gh=function(){return this.Jd.gh()};
g.k.Z8=function(){!this.isDisposed()&&this.xhr&&(this.D0="heartbeat",this.FB(!1))};g.w(LZ,yZ);g.k=LZ.prototype;g.k.Mu=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.Mn()?0<d&&(this.ma&&(.2<c||1024>d?(this.C+=c,.2<c&&KR(this.Dd,.05,d,.05)):KR(this.Dd,c,d,c)),this.Ea&&(this.G+=d,this.Ma+=c)):(c=this.Dd,c.N.Rj(1,(a-this.j)/1E3),c.policy.j||LR(c),this.Y=a,this.Na=b);yZ.prototype.Mu.call(this,a,b)};
g.k.ZP=function(a,b){zZ(this,a,b);this.Mu(a,b);this.ma&&(a=this.G*this.snapshot.stall+this.G/this.snapshot.byterate,this.Mn()&&NR(this.Dd,this.G,this.C),MR(this.Dd,this.Ma,this.G,a,!1))};
g.k.uJ=function(a){zZ(this,a,this.K);var b=(a-this.D)/1E3;HQa(this.Dd,b,0);this.ix(b,0);this.ma&&(b=this.G*this.snapshot.stall+this.G/this.snapshot.byterate,this.Mn()&&(this.C+=(a-this.D)/1E3,NR(this.Dd,this.G,this.C)),MR(this.Dd,this.Ma,this.G,b,!1,!0))};
g.k.TE=function(a){a=a.MM||2147483647;2!==(a&2)&&(this.Ea=!1);1===(a&1)&&(this.ma=!0)};
g.k.ME=function(a){a=a.MM||2147483647;2===(a&2)&&(this.Ea=!1);1===(a&1)&&(this.ma=!1)};
g.k.hX=function(){return this.Y};
g.k.UH=function(){var a=this.Ea?this.now()-this.D:0;return Math.max(1E3*this.Ma+a,1)};
g.k.pO=function(){return 1E3*this.G/this.UH()};
g.k.Mn=function(){return 2048<this.B};
g.k.hs=function(){var a=yZ.prototype.hs.call(this);a.rbw=this.pO();a.rbe=+this.Ea;a.gbe=+this.ma;return a};
g.k.pR=function(){};
g.k.jI=function(){return NaN};
g.k.gX=function(){return this.j+1E3*this.snapshot.delay};g.w(x5a,vU);g.k=x5a.prototype;g.k.CJ=function(a,b){b.getLength();switch(a){case 35:this.Op(b);break;case 44:this.PE(b);break;case 43:this.FQ(b);break;case 53:this.DQ(b);break;case 55:a=new oO(b);(a={timeline:vO(a,1,t5a),ica:vO(a,2,w5a)},a.timeline)&&a.timeline.C0&&this.Ib.IQ(a.timeline.C0,a.timeline.Gca,a.ica);break;case 42:this.pQ(b);break;case 45:this.RE(b);break;case 59:this.OE(b);break;case 51:this.SE(b);break;case 49:this.TE(b);break;case 50:this.ME(b);break;case 47:this.QE(b);break;case 58:this.Am(b)}};
g.k.SE=function(a){a=new oO(a);a={qob:xO(a,1,$Ua),pob:xO(a,2,$Ua)};this.Ib.SE(a)};
g.k.OE=function(a){var b=new oO(a);a=wO(b,1);var c=wO(b,2);b=wO(b,3);this.Ib.OE(a,c,b)};
g.k.RE=function(a){a=KUa(new oO(a));this.Ib.RE(a)};
g.k.QE=function(a){a=yO(a,SUa);this.Ib.QE(a)};
g.k.pQ=function(a){a=new oO(a);a={videoId:uO(a,1),formatId:vO(a,2,$Ua),endTimeMs:rO(a,3),fmb:rO(a,4),mimeType:uO(a,5),XX:vO(a,6,WUa),indexRange:vO(a,7,WUa),PN:vO(a,8,iVa)};this.Ib.pQ(a)};
g.k.Op=function(a){a=jVa(new oO(a));this.Ib.Op(a)};
g.k.DQ=function(a){a=cVa(new oO(a));this.Ib.DQ(a)};
g.k.PE=function(a){a=fVa(new oO(a));this.Ib.PE(a)};
g.k.FQ=function(a){a={redirectUrl:uO(new oO(a),1)};this.Ib.FQ(a)};
g.k.vQ=function(a){var b=gO(a,0);if(1!==a.getLength()){a=a.split(1).Gm;var c=this.B[b]||null;c&&n2a(this.Ib.gg,b,c,a)}};
g.k.Np=function(a){a=gO(a,0);var b=this.B[a]||null;b&&this.Ib.Np(a,b)};
g.k.KA=function(a){this.Ib.KA(a)};
g.k.xQ=function(a){var b=a.Fp,c=a.Ln,d=a.lB,e=a.vJ,f=a.Kj,h=a.Wt,l=a.startMs,m=a.durationMs,n=a.timeRange,p=a.Cr,q=a.clipId,r=oVa(a);a=flb.has(OK[""+a.itag]);this.B[b]=r;this.Ib.MA(r,a,{Fp:b,Ln:!!c,lB:null!=d?d:-1,Wt:null!=h?h:-1,startMs:null!=l?l:-1,durationMs:null!=m?m:-1,Cr:p,vJ:e,Kj:f,clipId:q,timeRange:n})};
g.k.TE=function(a){a={MM:rO(new oO(a),1)};this.Ib.TE(a)};
g.k.ME=function(a){a={MM:rO(new oO(a),1)};this.Ib.ME(a)};
g.k.IA=function(a){this.Ib.IA(a)};
g.k.Am=function(a){a=UUa(new oO(a));this.Ib.Am(a)};g.w(MZ,g.I);g.k=MZ.prototype;g.k.Qt=function(){!this.isDisposed()&&this.xhr&&(this.lm(),F8a(this.Ib,this))};
g.k.Sw=function(){};
g.k.qr=function(){if(!this.isDisposed()&&this.xhr){var a=this.JO();5===a?IZ(this.Jd):this.Hc(a);this.Jd.B.stop();var b;null==(b=this.zF)||b.stop()}};
g.k.JO=function(){if(JZ(this.Jd,this.xhr.status,this.xhr.ex(),this.info.cw()))return 5;this.lm();if(this.J_)return 3;j5a(this.Jd,this.xhr.yn(),0);this.policy.ub&&J8a(this.Ib);return 4};
g.k.lm=function(){var a=this.xhr;if(a.Wk()){a=a.vx();var b=a.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+b});
this.El.feed(a)}};
g.k.OA=function(a,b){this.jca.OA(a,b)};
g.k.Pw=function(a,b,c,d){this.Oe.policy.j&&!c&&this.Oe.Pw(d);return!1};
g.k.Op=function(a){this.Ib.Op(a)};
g.k.DQ=function(a){if(this.policy.enableServerDrivenRequestCancellation){var b;null==(b=this.zF)||b.dispose();this.qR=a;a.f_&&(this.zF=new g.Qu(this.PY,a.f_,this));this.PY()}};
g.k.PY=function(){var a;if(null!=(a=this.qR)&&a.items){var b;null==(b=this.zF)||b.start();if(this.Oe.Mn()){a=this.Oe.UH();b=this.Oe.pO();var c=z5a(this,a);if(!(b>c.oJ||0<c.QP&&this.info.cO()>c.QP)){this.rR=(0,g.pD)();var d;null==(d=this.zF)||d.stop();this.policy.ub&&(d=this.Ib,a={Zu:Math.round(b*a/1E3),Bx:a},d.policy.ub&&(d.ma=a,d.Up++));this.Jd.FB(!1)}}}};
g.k.PE=function(a){this.Ib.PE(a)};
g.k.FQ=function(a){this.J_=!0;this.info.resource.Uk(this.ke,a.redirectUrl)};
g.k.TE=function(a){this.Oe instanceof LZ&&this.Oe.TE(a)};
g.k.ME=function(a){this.Oe instanceof LZ&&this.Oe.ME(a)};
g.k.IQ=function(a,b,c){this.Ib.IQ(a,b,c,this.Kq())};
g.k.pQ=function(a){if(XV(this.policy)){var b=a.formatId,c=oVa({itag:b.itag,lmt:b.lmt,xtags:b.xtags}),d,e,f=new wQ((null==(d=a.XX)?void 0:d.first)||0,(null==(e=a.XX)?void 0:e.oY)||0),h,l;d=new wQ((null==(h=a.indexRange)?void 0:h.first)||0,(null==(l=a.indexRange)?void 0:l.oY)||0);this.manifest.N.get(c)||(c=a.PN||{},c.mimeType=a.mimeType,c.itag=b.itag,c.lastModified=""+(b.lmt||0),c.xtags=b.xtags,a=this.manifest,b=dR(""),c=cR(c,null),aR(a,new ZQ(b,c,f,d)))}};
g.k.RE=function(a){a.AK&&a.BK&&this.Ib.RE(a)};
g.k.IA=function(a){this.Ib.IA(a)};
g.k.OE=function(a,b,c){this.Ib.OE(a,b,c)};
g.k.SE=function(a){this.policy.Ml&&this.Ib.SE(a)};
g.k.QE=function(a){this.Ib.QE(a,this.Kq())};
g.k.Am=function(a){this.policy.Ob&&this.Ib.Am(a)};
g.k.canRetry=function(){this.isDisposed();return this.Jd.canRetry(!1)};
g.k.dispose=function(){if(!this.isDisposed()){g.I.prototype.dispose.call(this);this.Jd.dispose();var a;null==(a=this.zF)||a.dispose();this.Hc(-1);this.Iy()}};
g.k.Hc=function(a){this.state=a;F8a(this.Ib,this)};
g.k.cw=function(){return this.info.cw()};
g.k.MA=function(a,b,c){c.clipId&&(this.clipId=c.clipId);this.gg.MA(a,b,c);this.gg.bd.get(a).GC=!0};
g.k.Np=function(a,b){this.gg.Np(a,b)};
g.k.KA=function(a){this.requestIdentifier=a};
g.k.Ik=function(a){return this.gg.Ik(a)};
g.k.zn=function(a){return this.gg.zn(a)};
g.k.fl=function(a){return this.gg.fl(a)};
g.k.Dq=function(){return this.gg.Dq()};
g.k.Qs=function(){return 1};
g.k.Kq=function(){return this.Oe.requestNumber};
g.k.qO=function(){return this.requestIdentifier};
g.k.MW=function(){return this.clipId};
g.k.Ue=function(){return this.ke.Ue()};
g.k.hZ=function(){this.Iy()};
g.k.Iy=function(){AZ(this.Oe);var a;null==(a=this.xhr)||a.abort()};
g.k.isComplete=function(){return 3<=this.state};
g.k.kY=function(){return 3===this.state};
g.k.qm=function(){return 5===this.state};
g.k.LX=function(){return this.isComplete()};
g.k.zt=function(){return 1<=this.state};
g.k.Kn=function(){return!1};
g.k.Hv=function(){return 0};
g.k.LW=function(){var a;return null==(a=this.info.data)?void 0:a.RM};
g.k.zX=function(){};
g.k.iX=function(){return P7a(this.info)};
g.k.gh=function(){return this.Jd.gh()};
g.k.Eq=function(){var a=k5a(this.Jd);Object.assign(a,Q7a(this.info));a.req="sabr";a.rn=this.Kq();var b;if(null==(b=this.xhr)?0:b.status)a.rc=this.policy.fk?this.xhr.status:this.xhr.status.toString();var c;(b=null==(c=this.xhr)?void 0:c.Af())&&(a.msg=b);this.rR&&(c=z5a(this,this.rR-this.Oe.hX()),a.letm=c.F8,a.mrbps=c.oJ,a.mram=c.QP);return a};A5a.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.pD)()};g.w(L5a,g.NF);g.k=L5a.prototype;
g.k.zQ=function(a,b,c,d){if(this.K&&d){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.B,f=b.D,h=b.C,l=b.Ky);this.K.GQ(a.Pa,a.startTime,this.B,d,e,f,c,l,h)}if(c){if(b&&!this.va.has(a.Pa)){c=a.startTime;d=[];for(e=0;e<b.j.length;e++)f=b.j[e],h=c,c=h+b.B[e],d.push({startTime:h,endTime:c,adCpn:f});this.va.set(a.Pa,d)}this.policy.Bd&&(c=this.ma&&a.Pa===this.ma.Pa+1,this.ma=a,d=this.j&&a.Pa===this.j.Pa+1,d=this.j&&c&&d&&"stop"!==this.j.dh.event&&"predictStart"!==this.j.dh.event,e=a.dh||null,f=this.Y.j.index.Hd()<=
a.Pa,h=this.manifest.isManifestless&&this.policy.Wo,e?(this.j={dh:e,Pa:a.Pa,UD:!!b},f?OZ(this,e,a.Pa):h&&(c?d?OZ(this,e,a.Pa):"continue"===e.event||"stop"===e.event?P5a(this,a):OZ(this,e,a.Pa):OZ(this,e,a.Pa))):(d&&P5a(this,a),4===this.B&&PZ(this,5,"qend")))}};
g.k.yQ=function(a,b,c){var d=this.Y.j.index.Hd()<=b;this.j={dh:a,Pa:b,UD:c};d&&OZ(this,a,b)};
g.k.Lv=function(){this.K&&this.K.Lv()};
g.k.qa=function(a,b){this.Aa.qa(a,b)};
g.k.Ir=function(a,b){var c=this.Y.j.index.Fi(a),d;if(d=0<=c){var e;d=(null==(e=SY(b.pd,c,2))?void 0:e.Fs)||""}if(d)return b.au(a,c),M5a(this.Aa,a,a,c),this.qa("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0;this.qa("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};R5a.prototype.kO=function(a){var b=VK(a.info.j.info,this.manifest.yc),c=a.info.Pa+this.C,d=this.policy.Wa?1E3*$Oa(a):1E3*a.info.startTime,e=a.info.clipId;if(this.policy.Wa){if(a.info.j.tm())var f=a.info.duration;else-1===a.D&&(a.D=cPa(a)),f=a.D||a.info.duration;f*=1E3}else f=1E3*a.info.duration;this.policy.Wa&&(0>d||0>f)&&this.logger&&(this.logger({missingSegInfo:a.info.Qd(),startTimeMs:d,durationMs:f}),0>d&&(d=1E3*a.info.startTime),0>f&&(f=1E3*a.info.duration));return{formatId:b,Pa:c,startTimeMs:d,
clipId:e,t6:f}};
R5a.prototype.Yp=function(a){this.timestampOffset=a};a6a.prototype.dispose=function(){this.va=!0};
a6a.prototype.isDisposed=function(){return this.va};
g.w(UZ,Error);var Gcb=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);XZ.prototype.skip=function(a){this.offset+=a};
XZ.prototype.im=function(){return this.offset};g.k=t6a.prototype;g.k.fX=function(){return this.B};
g.k.Zn=function(){return this.B.length?this.B[this.B.length-1]:null};
g.k.Pk=function(){this.B=[];ZZ(this);s6a(this)};
g.k.Xt=function(){this.fb=this.B.shift().info};
g.k.zn=function(){return g.Er(this.B,function(a){return a.info})};
g.k.Hi=function(){return!!this.K.info.audio};
g.k.getDuration=function(){return this.K.index.Us()};g.w(pZ,EZ);g.k=pZ.prototype;g.k.onStateChange=function(){this.isDisposed()&&(pY(this.gg,this.formatId),this.j.dispose())};
g.k.Eq=function(){var a=g2a(this.gg,this.formatId),b;var c=(null==(b=this.gg.bd.get(this.formatId))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.gg.bd.get(this.formatId))?void 0:d.Qy)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:h2a(this.gg,this.formatId),isAnyMediaEndReceived:this.gg.Uv(this.formatId)}};
g.k.PW=function(){return 0};
g.k.Yv=function(){return!0};
g.k.Ik=function(){return this.gg.Ik(this.formatId)};
g.k.aF=function(){return[]};
g.k.fl=function(){return this.gg.fl(this.formatId)};
g.k.gh=function(){return this.lastError};
g.k.Hv=function(){return 0};g.k=M6a.prototype;g.k.Zn=function(){return this.D.Zn()};
g.k.Xt=function(a){this.D.Xt(a);var b;null!=(b=this.Z)&&(b.j=V5a(b,b.Ld,b.PA,b.j,a),b.B=a);this.Pb=Math.max(this.Pb,a.info.j.info.Pb||0)};
g.k.getDuration=function(){if(this.policy.j){var a=this.Aa.Gi();if(a)return XY(a)}return this.j.index.Us()};
g.k.Pk=function(){rZ(this);this.D.Pk()};
g.k.lO=function(){return this.D};
g.k.isRequestPending=function(a){return this.C.length?a===this.C[this.C.length-1].info.eb[0].Pa:!1};
g.k.Yp=function(a){var b;null==(b=this.Z)||b.Yp(a)};g.w(n_,g.I);n_.prototype.lP=function(a,b){if(!l_(a)||!a.j.wg())return!1;var c=this.C.Ra||a7a(a)||b<=this.policy.sA||this.C.va;this.logger.debug(function(){return"ready to adapt: "+c+", upgrade pending: "+a7a(a)+", health: "+b});
return c};
n_.prototype.Ia=function(){if(!(15<this.va++)){var a,b,c=(null==(a=this.videoTrack.B)?void 0:a.j)||(null==(b=this.audioTrack.B)?void 0:b.j);if(c){a=Math.ceil(Math.min(1E5,.1*PR(this.schedule)));o_(this,new GQ([new AQ(6,c,new wQ(0,a-1),"goodputProbe",0)]));var d;null==(d=this.N)||d.start()}}};
n_.prototype.Zs=function(a){var b=this,c=a.info.eb[0].j,d=a.gh();if(MP(c.resource.j)){var e=g.Eg(a.Af(),3);this.Aa.qa("dldbrerr",{em:e||"none"})}a.Kn()&&sU("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+a.Kq(),"gp",function(l){b.Aa.qa("pathprobe",l)},function(l){b.Aa.handleError(l.errorCode,l.details,l.severity)});
e=a.info.eb[0].Pa;var f=O5a(this.j,a.info.eb[0].C,e);"net.badstatus"===d&&(this.K+=1);if(a.canRetry()){if(!(a.info.resource.C>=this.policy.Gx&&this.B&&HQ(a.info)&&"net.badstatus"===d&&this.B.Zs(f,e))){e=(c.info.video&&1<c.resource.C||410===a.Ig||500===a.Ig||503===a.Ig)&&!(0<yU(this.C.G).size)&&!MP(c.resource.j);f=a.Eq();var h=c.info.video?this.videoTrack:this.audioTrack;e&&(f.stun="1");this.Aa.handleError(d,f);this.isDisposed()||(e&&(this.logger.debug(function(){return"Stunning format "+c.info.id}),
FU(this.C,c)),j_(h,a),this.Aa.xf())}}else h=1,this.B&&HQ(a.info)&&"net.badstatus"===d&&this.B.Zs(f,e)&&(h=0),this.manifest.isLive&&"net.badstatus"===a.gh()&&this.K<=2*this.policy.Yf?(VPa(this.manifest),this.manifest.ye||this.manifest.isPremiere?vZ(this.Aa,0,{Ed:"badStatusWorkaround"}):this.manifest.C?vZ(this.Aa,this.manifest.Za,{Ed:"badStatusWorkaround",
tq:!0}):M_(this.Aa)):this.Aa.handleError(d,a.Eq(),h)};
n_.prototype.xa=function(){g.I.prototype.xa.call(this)};
var m7a=2/24;g.w(s_,g.I);s_.prototype.KE=function(a,b,c){var d;var e="m"===(null==(d=this.B)?void 0:d.reason)?"m":this.B&&y7a(this,this.B)?this.B.reason:"a";this.Aa.KE(new BU(a,e,c));r_(this.Aa,b,a,!0)};
s_.prototype.N_=function(a){for(var b=g.u(this.Z),c=b.next();!c.done;c=b.next())if(c=c.value,c.id===a)return this.D=[c],this.C=this.manifest.j[a],this.nf.j&&(this.Y=!0),new BU(this.C,"m");this.D=[];return null};
s_.prototype.Eo=function(a,b,c){c=void 0===c?{}:c;this.j.Eo(a,void 0===b?!1:b,c)};var L7a={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};t_.prototype.cw=function(){return 1===this.requestType};
t_.prototype.cO=function(){var a;return(null==(a=this.Ib)?void 0:a.cO())||0};g.w(u_,g.I);u_.prototype.encrypt=function(a){(0,g.pD)();return U7a(this).encrypt(a,this.iv)};
u_.prototype.decrypt=function(a,b){(0,g.pD)();return U7a(this).decrypt(a,b)};V7a.prototype.decrypt=function(a,b,c){var d=this,e,f,h,l,m,n;return g.H(function(p){switch(p.j){case 1:if(d.j.length&&!d.j[0].isEncrypted)return p.return();d.B=!0;d.Bm.Wd("omd_s");e=new Uint8Array(16);b?c?h=new FR(c,a):h=new ER(a):f=new DR(a);case 2:if(!d.j.length||!d.j[0].isEncrypted){p.Ka(4);break}l=d.j.shift();if(!f){m=h.decrypt(fO(l.buffer),e);p.Ka(5);break}return g.z(p,f.decrypt(fO(l.buffer),e),6);case 6:m=p.B;case 5:n=m;for(var q=0;q<e.length;q++)if(255===e[q])e[q]=0;else{e[q]+=1;break}q=d.Bm;
var r=l.videoId,t=l.Fp,v=l.formatId,x=new cO([n]),A;null==(A=v_(q.ud,r))||n2a(A,t,v,x);p.Ka(2);break;case 4:d.Bm.Wd("omd_c"),w_(d),d.B=!1,d.Bm.wQ(),g.Aa(p)}})};var e8a=!!Uint8Array.prototype.copyWithin,x_=[],W7a=[],Z7a=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z_=[],y_=[],A_=[],X7a=[];g.w(g8a,vU);g.k=g8a.prototype;g.k.wQ=function(){this.ud.wQ()};
g.k.CJ=function(a,b){switch(a){case 10:var c=yO(b,EUa);a=c.kba;var d=!1;switch(a){case 0:this.D=!c.c_.w8;this.iv=c.c_.iv;break;case 2:break;case 23:var e=this.ud;c=c.d9;e.Wd("omp_r");c.videoId&&(e.St=c.videoId);e.St!==e.videoData.videoId&&(e.videoData.h8=e.St,e.qa("ompp","vid."+e.St));e.KP=!0;break;case 24:c=this.ud;c.Wd("omp_c");c.KP=!1;c.EF=!1;var f=null==(e=c.Jg)?void 0:e.get(c.St);c.notifySubscribers(c.St);null!=f&&(f.j=!0);C_(c);break;default:d=!0}this.ud.mm&&this.ud.qa("ombup","id.10;pt."+a+
";len."+b.getLength()+(d?";ignored.1":""));this.C=a;break;case 11:j8a(this,b);break;case 12:this.vQ(b,!0);break;case 37:b=yO(b,wUa);(b.I5||b.JS)&&b.videoId&&this.ud.JW.set(b.videoId,b);break;case 60:this.tQ(b);break;case 64:this.Ot(b);break;case 47:this.L("html5_server_playback_start_policy")&&(b=yO(b,SUa),this.ud.playbackStartPolicy=b);break;case 35:this.Op(b);break;default:this.ud.mm&&this.ud.qa("ombup","id."+a+";len."+b.getLength()+";ignored.1")}};
g.k.IA=function(a){this.ud.AY=a};
g.k.tQ=function(a){a=yO(a,zUa);this.ud.tQ(a)};
g.k.Ot=function(a){this.L("html5_enable_lawnmower_messaging")&&(a=yO(a,yUa),this.ud.Ot(a))};
g.k.xQ=function(a){var b=a.Fp,c=a.Ln,d=a.lB,e=a.Kj,f=a.Wt,h=a.startMs,l=a.durationMs,m=a.timeRange,n=a.Cr,p=oVa(a),q=flb.has(OK[""+a.itag]);c&&this.Wd(q?"oais_r":"ovis_r");var r=void 0!==this.j[p];this.ud.mm&&this.ud.qa("ombup","id.20;hid."+b+";fid"+p);var t=a.videoId||"";this.B[b]=p;this.G[b]=t;r||(this.j[p]={videoId:t,EX:!1,Hi:q,headers:[]});this.j[p].headers.push(a);this.ud.MA(t,p,q,{Fp:b,Ln:!!c,lB:null!=d?d:-1,Wt:null!=f?f:-1,startMs:null!=h?h:-1,durationMs:null!=l?l:-1,Cr:null!=n?n:0,Kj:e,timeRange:m})};
g.k.vQ=function(a,b){var c=gO(a,0);this.ud.mm&&this.ud.qa("ombup","id."+(b?12:21)+";len."+a.getLength()+";hid."+c);if(1!==a.getLength()){a=a.split(1).Gm;var d=this.B[c]||null,e=this.G[c]||"";if(d){this.gi(this.j[d].Hi?"oafs_r":"ovfs_r");var f=this.queue;f.j.push({videoId:e,Fp:c,formatId:d,buffer:a,isEncrypted:b});f.B||w_(f)}}};
g.k.Np=function(a){var b=gO(a,0);this.ud.mm&&this.ud.qa("ombup","id.22;len."+a.getLength()+";hid."+b);a=this.B[b]||null;var c=this.G[b]||"";if(a)if(this.L("html5_use_ump_request_slicer")){var d=this.queue;d.j.push({videoId:c,Fp:b,formatId:a,isEncrypted:!1,R6:!0});d.B||w_(d)}else this.ud.Np(c,b,a)};
g.k.KA=function(a){this.ud.KA(a)};
g.k.CQ=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,r,t,v,x,A,E;return g.H(function(F){switch(F.j){case 1:c.ud.CQ();d=fO(a);if(!b){f=d;F.Ka(2);break}return g.z(F,t8a(c.ud,d,c.iv),3);case 3:f=F.B;case 2:e=f;if(!c.ud.enableCompression){F.Ka(4);break}h=c.ud.U();m=null==(l=performance)?void 0:l.now();return g.z(F,f8a(e,h.Ra),5);case 5:e=F.B,c.ud.qa("decompression",{ds:"DecompressionStream"in window,wasm:!!h.Ra,rt:(null==(n=performance)?NaN:n.now())-m});case 4:try{p=yO(e,RUa)}catch(G){return q=G instanceof
Error?{name:G.name,message:G.message}:{},q.webcrypto=""+ +!!UN(),q.enc=""+ +c.D,r=new BK("onesie.response.parse",q),F.return(Promise.reject(r))}if(1!==p.RZ)return t={st:p.RZ,webcrypto:""+ +!!UN(),textencoder:""+ +!!g.Sa.TextEncoder},v=new BK("onesie.response.badproxystatus",t),F.return(Promise.reject(v));if(200!==p.SX)return x={st:p.SX},A=new BK("onesie.response.badstatus",x),F.return(Promise.reject(A));E=g.lO(p.body);return F.return(E)}})};
g.k.Op=function(a){this.L("html5_consume_onesie_next_request_policy_for_sabr")&&(a=yO(a,jVa),this.ud.Op(a))};
g.k.Wd=function(a){this.ud.Wd(a)};
g.k.gi=function(a){return this.ud.gi(a)};
g.k.L=function(a){return this.ud.L(a)};g.w(E_,g.I);g.k=E_.prototype;g.k.MW=function(){return""};
g.k.Dq=function(a){var b,c;return(null==(c=null==(b=this.Jg)?void 0:b.get(a))?void 0:c.Dq())||[]};
g.k.fl=function(a,b){var c;return!(null==(c=v_(this,b))||!c.fl(a))};
g.k.Ik=function(a,b){var c;return(null==(c=v_(this,b))?void 0:c.Ik(a))||[]};
g.k.zn=function(a,b){var c;return(null==(c=v_(this,b))?void 0:c.zn(a))||[]};
g.k.Hc=function(a){this.state=a;this.notifySubscribers()};
g.k.cw=function(){return!1};
g.k.Wd=function(a){this.oa.Wd(a)};
g.k.gi=function(a){return this.oa.gi(a)};
g.k.OA=function(a,b){this.Bm.OA(a,b)};
g.k.nQ=function(){this.Wd("orfb");this.JI=!0;if(u8a(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.yn(),rt:(1E3*W4a(this.Oe)).toFixed(),shost:g.Vm(this.LQ),trigger:"o1"};this.qa("pathprobe",AK(a))}};
g.k.CQ=function(){this.Wd("opr_r");this.JX=!0};
g.k.MA=function(a,b,c,d){if(this.Jg){if(!this.Jg.has(a)){var e=new nY(this);this.Jg.set(a,e);g.N(this,e)}var f;null==(f=this.Jg.get(a))||f.MA(b,c,d)}C_(this)};
g.k.tQ=function(a){this.hA=a};
g.k.Ot=function(a){this.W.Ot(a)};
g.k.Op=function(a){a.videoId&&this.aZ.set(a.videoId,a)};
g.k.wQ=function(){if(this.Jg)for(var a=g.u(this.Jg.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.Jg.get(b.value))||c.AA()}};
g.k.qa=function(a,b,c){this.oa.qa(a,b,void 0===c?!1:c)};
g.k.Np=function(a,b,c){var d;null==(d=v_(this,a))||d.Np(b,c)};
g.k.KA=function(a){this.A_.set(a.videoId,a)};
g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,v,x,A,E,F,G,M;return g.H(function(P){switch(P.j){case 1:a.logger.debug("Onesie fetch started.");a.rG?a.aN.start():a.WE.start();a.Wd("or_i");b=a.W.experiments.kb("html5_onesie_verbose_timing");c={};d=(0,g.pD)();e=function(R){b&&(c[R]=(0,g.pD)()-d)};
e("loc_s");if(f=l8a(a.videoData,a.Mz)){P.Ka(2);break}e("loc_async");h=g.lJ(a.W.experiments,"html5_onesie_redirector_timeout_ms");return g.z(P,m8a(a.videoData,a.Mz,h),3);case 3:f=P.B;case 2:if(!f)return a.logger.info("Onesie URL creation failed."),l={url:"0"},m=new BK("onesie.unavailable.hotconfig",l),a.xj(m),P.return(a.bq);a.O_=LP(f);e("loc_e");n=g.sS(a.W,g.JT(a.videoData));if(!n.j){p=n.getValue();P.Ka(4);break}return g.z(P,n.j,5);case 5:p=P.B;case 4:q=p;e("oauth");r=o8a(a.playerRequest,a.W,a.videoData,
q,kY(a.O_));g.Ba(P,6);if(!i8a(a,r)){e("or_s_sync");a.RJ=q8a(r,a.VE,a.W,a.oa,a.xN.onesieUstreamerConfig,null==(t=a.videoData.QZ)?void 0:t.Io);P.Ka(8);break}e("or_s_async");return g.z(P,s8a(r,a.VE,a.W,a.oa,a.xN.onesieUstreamerConfig,null==(v=a.videoData.QZ)?void 0:v.Io),9);case 9:a.RJ=P.B;case 8:g.Ca(P,7);break;case 6:return x=g.Da(P),a.logger.info("Failed to create OnesieRequestProto."),a.xj(x),P.return(a.bq);case 7:return e("or_e"),b&&a.qa("oreqvt",c),a.enableCompression=a.RJ.aP.FN,a.Wd("osor"),A=
IXa(a.W),E=g.GO(a.RJ,HUa),F={method:"POST",body:E,headers:{"Content-Type":"text/plain",Referer:location.origin}},G=a.L("html5_onesie_media_capabilities"),n8a(f,a.videoData,w8a(a),G),a.logger.debug("Starting Onesie network request."),a.mm&&a.qa("ombrs","1"),M=a.oa.U().schedule,a.Oe=new BZ(a,{Dd:M,GN:a.mm,ix:function(R,ba){a.oa.sF(R,ba)},
kp:a.L("html5_disable_variability_reporting_for_onesie")}),f.set("rn",""+a.Oe.requestNumber),a.LQ=f.Ue(),T4a(a.Oe,a.LQ),a.Wd("or_p"),a.xhr=h5a(new vQ(f),A,a.Oe,zR,F),a.PZ.start(),P.return(a.bq)}})};
g.k.Sw=function(){this.Wd("orh_r")};
g.k.Qt=function(){!this.JI&&this.xhr.yn()&&this.nQ();if(this.Vz&&!this.rG){var a;null==(a=this.QJ)||a.start()}this.lm()};
g.k.qr=function(){this.logger.debug("onXhrDone");this.lm();if(!this.isDisposed()){var a=D_(this),b=this.xhr;a.rc=b.status;if(b.Af()){var c="onesie.net";a.msg=b.Af()}else 400<=b.status?c="onesie.net.badstatus":b.ex()?this.JX||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.xj(new BK(c,a)):(this.Wd("or_fs"),this.Oe.ZP((0,g.pD)(),b.yn(),0),this.Hc(4),this.mm&&this.qa("rqs",a));this.mm&&this.qa("ombre","ok."+ +!c);this.EF=!1;C_(this);h8a(this.Bm);
if(!this.rG){this.WE.stop();var d;null==(d=this.QJ)||d.stop()}var e;if(c=null==(e=this.Mz)?void 0:b2a(e))for(e=0;e<c.length;e++)this.qa("pathprobe",c[e])}};
g.k.LW=function(){};
g.k.hZ=function(){if(this.playerResponse){var a;null==(a=this.xhr)||a.abort()}};
g.k.U=function(){return this.W};
g.k.L=function(a){return this.W.L(a)};
g.k.a9=function(){if(u8a(this)&&this.Mz&&(!this.JI||this.L("html5_onesie_probe_ec_hosts"))){var a=this.Mz;if(a.W.experiments.kb("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:LP(b.location);c&&jY(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:LP(d.location))&&jY(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:LP(e.location))&&jY(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:LP(c.location))&&jY(a,d,"o3",this)}}};
g.k.P5=function(){if(!this.isDisposed()&&!this.isComplete()){if(this.Vz){if(1E3<(0,g.pD)()-this.Oe.Z){var a;null==(a=this.Oe)||a.uJ((0,g.pD)());a=D_(this);if(this.W.Dc()&&this.xhr instanceof b5a){var b=this.xhr;a.xrs=b.xhr.readyState;a.xpb=b.j.getLength();a.xdc=b.G}this.xj(new BK("net.timeout",a))}}else 1E4<(0,g.pD)()-this.Oe.j&&(null==(b=this.Oe)||b.uJ((0,g.pD)()),this.HO());this.isComplete()||this.aN.start()}};
g.k.HO=function(){this.logger.info("Onesie request timed out");this.EF=!1;if(!C_(this)){var a=D_(this);a.timeout="1";this.xj(new BK("onesie.request",a))}};
g.k.xj=function(a){var b=this;a=DK(a);this.Vz?this.oa.ze(a):(this.bq.reject(a),this.Vz=!0);h8a(this.Bm);this.rG||this.WE.stop();this.Wd("or_fe");var c,d;null==(c=this.Mz)||null==(d=b2a(c))||d.forEach(function(e){b.qa("pathprobe",e)});
this.Hc(5);this.dispose()};
g.k.isComplete=function(){return 3<=this.state};
g.k.LX=function(a){var b,c;return this.isComplete()||!!(null==(b=this.Jg)?0:null==(c=b.get(a))?0:c.j)};
g.k.kY=function(){return!1};
g.k.qm=function(){return 5===this.state};
g.k.notifySubscribers=function(a){for(var b=0;b<this.eG.length;b++)a&&this.eG[b].xe()!==a||F8a(this.eG[b],this)};
g.k.iX=function(){var a,b;return(null==(a=this.RJ)?void 0:null==(b=a.zs)?void 0:b.aR)||0};
g.k.xa=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();h8a(this.Bm);this.El.dispose();var b;null==(b=this.QJ)||b.dispose();this.Hc(-1);this.eG=[];g.I.prototype.xa.call(this)};
g.k.lm=function(){try{var a=this.xhr;102400<a.yn()&&!this.fY&&(this.Wd("or100k"),this.fY=!0);if(a.Wk()){var b=a.vx(),c=b.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+c});
this.mm&&this.qa("ombrss","len."+c);this.El.feed(b)}if(this.Jg)for(var d=g.u(this.Jg.keys()),e=d.next();!e.done;e=d.next()){var f=e.value;a=void 0;null==(a=this.Jg.get(f))||a.AA();this.notifySubscribers(f)}}catch(h){this.xj(h)}};
g.k.Kq=function(){return this.Oe.requestNumber};
g.k.qO=function(a){return this.A_.get(a)};g.w(y8a,g.I);g.k=y8a.prototype;g.k.wK=function(a){this.Z=void 0;J8a(this);H8a(this,a)};
g.k.jP=function(a){return 0===this.j.length?!1:50>Math.abs(this.j[0].iX()-a)};
g.k.Zs=function(a){if(a instanceof E_)this.j.pop();else{var b=1;a.canRetry()&&(this.j.pop(),null==a||a.dispose(),b=0);this.Aa.handleError(a.gh(),a.Eq(),b)}};
g.k.Op=function(a){this.C=a;this.Z=(0,g.pD)()+(a.backoffTimeMs||0)};
g.k.PE=function(a){if(void 0!==a.action&&(0!==a.action||!this.Ca)){var b={};b.reason=a.Kba;b.action=a.action;switch(a.action){case 1:this.Aa.BH(b);break;case 0:this.Ca=!0;this.Aa.zH(b);break;case 2:this.Aa.handleError("sabr.config",b,1)}}};
g.k.IQ=function(a,b,c,d){if(this.policy.j){this.Aa.qa("ssap",{rn:d,v:b,tl:L8a(a)});var e=this.Aa.Gi();a={XV:a,context:c,version:b};e?I8a(this,e,a):(this.Aa.qa("ssap",{cacheclips:1,rn:d,v:b}),this.K=a)}};
g.k.RE=function(a){if(a.AK&&a.BK){var b=a.AK/a.BK;this.audioTrack.N=!1;this.videoTrack.N=!1;var c={Ed:"sabr_seek",RI:!0,dS:!0};a.seekSource&&(c.seekSource=a.seekSource);vZ(this.Aa,b,c)}};
g.k.IA=function(a){a.xI&&a.yI&&WPa(this.manifest,a.xI,a.yI)};
g.k.Am=function(a){this.Aa.Am(a)};
g.k.OE=function(a,b,c){this.policy.B&&this.Aa.qa("sabrctxtplc",{start:a?a.join("_"):"",stop:b?b.join("_"):"",discard:c?c.join("_"):""});if(a){a=g.u(a);for(var d=a.next();!d.done;d=a.next())this.nm.add(d.value)}if(b)for(b=g.u(b),a=b.next();!a.done;a=b.next())a=a.value,this.nm.has(a)&&this.nm.delete(a);if(c)for(c=g.u(c),b=c.next();!b.done;b=c.next())b=b.value,this.videoData.sabrContextUpdates.has(b)&&(this.videoData.sabrContextUpdates.delete(b),3===b&&(this.videoData.Cy=""))};
g.k.SE=function(){};
g.k.QE=function(a,b){KXa(this.policy,a,4,b)};
g.k.xe=function(){return this.oa.xe()||""};
g.k.cO=function(){var a=1E3*h_(this.audioTrack,!0),b=1E3*h_(this.videoTrack,!0);return Math.min(a,b)};
g.k.tI=function(a){c9a(this.Aa,BVa(this.Y,a))};
g.k.xa=function(){g.I.prototype.xa.call(this);this.C=void 0;H8a(this,!0);this.j=[]};M8a.prototype.xf=function(a,b){if(this.D)return R8a(this,b);if(b=wZ(a)){var c=b.B;c&&c.G&&c.B&&(a=a.C.length?a.C[0]:null)&&2<=a.state&&!a.qm()&&0===a.info.ih&&(this.D=a,this.N=c,this.B=b.info,this.K=this.startTimeSecs=Date.now()/1E3,this.G=this.B.startTime)}return NaN};
M8a.prototype.clear=function(){this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1};g.w(g.H_,g.I);g.k=g.H_.prototype;g.k.initialize=function(a,b,c){this.logger.debug(function(){return"Initialized, t="+a});
a=a||0;XV(this.policy)||(b=GU(this.j),f9a(this.oa,new BU(b.video,b.reason)),this.oa.Nw(new BU(b.audio,b.reason)));this.manifest.isManifestless&&t7a(this.D);this.K&&O8a(this.K,this.videoTrack.j);b=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.manifest.isManifestless?b:a;if(this.policy.C){var d;(null==(d=this.va)?0:x8a(d,this.xe()||""))&&V8a(this)&&U8a(this,this.videoTrack)&&U8a(this,this.audioTrack)&&K8a(this.ma,this.va)}else this.Ca&&(W8a(this,this.videoTrack),W8a(this,this.audioTrack),
f2a(this.Ca),delete this.Ca);c?(this.policy.me?(this.ub=c,K_(this,c)):K_(this,!1),g.Ru(this.vE)):(c=0===this.currentTime,q_(this.D,this.videoTrack,this.videoTrack.j,c),q_(this.D,this.audioTrack,this.audioTrack.j,c),this.policy.C&&B8a(this.ma,!0),this.seek(this.currentTime,{}).Al(function(){}),this.timing.tick("gv"));
(this.manifest.qf||this.manifest.Ji||this.manifest.Za||this.manifest.Ob||this.manifest.jc)&&this.oa.rF(this.manifest)};
g.k.resume=function(){if(this.isSuspended||this.Hp){this.logger.debug("Resumed.");this.yH=this.Hp=this.isSuspended=!1;try{this.xf()}catch(a){g.tF(a)}}};
g.k.oz=function(a){a=void 0===a?!1:a;this.logger.debug("detaching media source");Z8a(this);qL(this.oa)&&(this.N=NaN);a?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Ca&&this.qa("loader",{setsmb:1}),this.policy.va=!0):this.policy.me?K_(this,this.ub):K_(this,!1);this.Pk()};
g.k.setAudioTrack=function(a,b,c){c=void 0===c?!1:c;if(!this.isDisposed()){var d=!isNaN(b);c&&d&&(this.audioTrack.Y=Date.now(),this.policy.Lc&&(this.Wa=!0));if(XV(this.policy)){var e=this.C.N_(a.id);this.logger.debug(function(){return"Logging new audio format: "+e.j.info.id});
this.oa.Nw(e)}else{var f=AVa(this.j,a.id,d);this.logger.debug(function(){return"Logging new audio format: "+f.audio.info.id});
this.oa.Nw(new BU(f.audio,f.reason))}if(d&&(c=this.audioTrack.j.index.Fi(b),this.qa("setAudio",{id:a.id,cmt:b,sq:c}),0<=c)){Z6a(this.audioTrack,c,NaN,NaN);hR(this.manifest,c,!1);return}this.oa.zo()}};
g.k.setPlaybackRate=function(a){a!==this.Z.getPlaybackRate()&&this.Z.setPlaybackRate(a)};
g.k.KE=function(a){var b=a.j.info.Hi();this.logger.debug(function(){return"New "+(b?"audio":"video")+" format from SABR: "+ZK(a.j.info)});
b?this.oa.Nw(a):f9a(this.oa,a)};
g.k.tI=function(a){DQ(a.eb[a.eb.length-1])&&c9a(this,BVa(this.j,a.eb[0].j))};
g.k.hI=function(){return this.oa.hI()};
g.k.Am=function(a){this.oa.Am(a)};
g.k.Fz=function(){return this.oa.Fz()};
g.k.fm=function(){return this.oa.fm()};
g.k.KQ=function(a){this.oa.KQ(a)};
g.k.wba=function(){var a,b=null==(a=this.oa.kf())?void 0:a.getCurrentTime();b?this.oa.qa("rms",{cta:b}):g.Ru(this.Gb)};
g.k.xf=function(){b9a(this);if(this.Qa&&nL(this.Qa)&&!this.Qa.hk()){var a=c_(this.videoTrack);a=this.policy.Jz&&a&&BQ(a);this.manifest.isManifestless&&this.manifest.C&&eR(this.manifest)?(this.N=eR(this.manifest),this.Qa.wl(this.N)):iR(this.manifest)&&!a?isNaN(this.N)?(this.N=this.currentTime+3600,this.Qa.wl(this.N)):this.N<=this.currentTime+1800&&(this.N=Math.max(this.N+1800,this.currentTime+3600),this.Qa.wl(this.N)):this.Qa.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),
(!isFinite(this.N)||this.N!==a)&&0<a&&(this.Qa.wl(a),this.N=a))}if(!this.isDisposed())if(QPa(this.manifest)&&this.manifest.qm()){var b=this.manifest;this.handleError("manifest.net.retryexhausted",b.fb?{rc:b.Ig}:{rc:b.Ig.toString()},1)}else if(this.policy.C){try{E8a(this.ma);this.manifest.isManifestless&&this.policy.G&&uZ(this.B);if(XV(this.policy)&&!jL()&&this.policy.Jl&&this.Qa&&!rL(this.Qa)&&this.videoTrack.Ia&&this.audioTrack.Ia){this.qa("ssap",{delaysb:1,v:this.videoTrack.j.info.id,vf:this.videoTrack.j.info.sb,
a:this.audioTrack.j.info.id,af:this.audioTrack.j.info.sb});var c=this.Qa,d=this.videoTrack.j,e=this.audioTrack.j;!rL(c)&&e&&d&&(ICa(c,d.info,e.info,this.policy.Za),$8a(this,c))}var f;(null==(f=this.Qa)?0:rL(f))&&this.eF();XV(this.policy)||J_(this);B8a(this.ma)}catch(l){g.uF(l),b=l,this.zH({reason:"exp",ename:b.name,emsg:b.message})}this.policy.Dy&&s9a(this);g.Ru(this.fb)}else if(!this.manifest.B||!e7a(this.videoTrack)&&!e7a(this.audioTrack)||(this.videoTrack.G||this.audioTrack.G)&&this.policy.Xa?
c=!1:(this.Pk(),this.oa.seekTo(Infinity,{Ed:"checkLoaderTracksSync",tq:!0}),c=!0),!c){b9a(this);this.manifest.isManifestless&&(f7a(this.videoTrack),f7a(this.audioTrack),uZ(this.B),(c=wZ(this.videoTrack))&&c.B&&(c=c.B.G&&!this.policy.Yj,this.qa(c===this.policy.N.nj?"strm":"strmbug",{strm:c,sfmp4:this.policy.N.nj,dfs:this.policy.Yj},!0)));if(this.Qa)this.eF();else if(this.policy.D){var h;c=!1;if(this.policy.oy)for(d=g.u([this.videoTrack,this.audioTrack]),e=d.next();!e.done;e=d.next()){f=e.value;for(e=
wZ(f);e&&f.Zn()!==c_(f);e=wZ(f))f.Xt(e);c=c||!!e}else(b=wZ(this.videoTrack))&&this.videoTrack.Xt(b),(h=wZ(this.audioTrack))&&this.audioTrack.Xt(h);e_(this.videoTrack)&&e_(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(b||h||c)&&L_(this)}J_(this);q_(this.D,this.videoTrack,this.videoTrack.j,!1);q_(this.D,this.audioTrack,this.audioTrack.j,!1);this.policy.vy||e9a(this,this.videoTrack,this.audioTrack);n7a(this.D,this.videoTrack,this.audioTrack);n7a(this.D,this.audioTrack,
this.videoTrack);s9a(this);this.K&&(b=this.K,b.D?(h=b.K+b.policy.Ix,b.C||(h=Math.min(h,b.startTimeSecs+b.policy.zj)),b=Math.max(0,1E3*h-Date.now())):b=NaN,isNaN(b)||g.Ru(this.Ob,b));g.Ru(this.fb)}};
g.k.zH=function(a){this.oa.zH(a)};
g.k.BH=function(a){this.oa.BH(a)};
g.k.eF=function(){var a=this;if(this.Qa){var b=this.Qa.j,c=this.Qa.B,d=h9a(this);if(d){if(this.policy.xu){if(!b.Cv()){var e=wZ(this.audioTrack);e&&(j9a(this,this.audioTrack,b,e.info),l9a(this,b,e))}!c.Cv()&&(b=wZ(this.videoTrack))&&(j9a(this,this.videoTrack,c,b.info),l9a(this,c,b))}this.Zo||(this.Zo=(0,g.pD)(),this.logger.debug(function(){return"Appends pause start "+a.Zo+" reason "+d}),this.policy.B&&this.qa("apdps",{r:d}))}else this.Zo&&(g9a(this,this.Zo),this.Zo=0),i9a(this),e=!1,this.policy.j&&
m_(this.videoTrack)||!n9a(this,this.videoTrack,c)||(e=!0,D5a(this.timing),H5a(this.timing)),this.Qa&&!this.Qa.Ug()&&(this.policy.j&&m_(this.audioTrack)||!n9a(this,this.audioTrack,b)||(e=!0,E5a(this.timing),I5a(this.timing)),!this.isDisposed()&&this.Qa&&(!this.policy.Ma&&e_(this.videoTrack)&&e_(this.audioTrack)&&nL(this.Qa)&&!this.Qa.hk()&&(c=c_(this.audioTrack).j,c===this.manifest.j[c.info.id]&&(this.logger.debug("Setting EOS"),KCa(this.Qa),KQa(this.schedule))),e&&!this.Qa.isAsync()&&L_(this)))}};
g.k.F4=function(a){var b=this,c;if(this.policy.Lc&&a===(null==(c=this.Qa)?void 0:c.j)&&this.Xa){var d;this.oa.qa("asl",{l:this.Xa-this.currentTime,xtag:null==(d=c_(this.audioTrack))?void 0:d.j.info.j});this.Wa=!1;this.Xa=0}a.pm()&&0===a.hf().length&&(a.Uy(),this.Qa&&!this.Qa.pm()&&(this.oa.U().Dc()&&this.oa.qa("rms",{ld:"seek"}),this.Qa.N=performance.now(),this.oa.ON(),this.oa.U().Dc()&&g.Ru(this.Gb)));if(this.policy.Ia&&this.Qa){c=a===this.Qa.j;var e=a.bI();if(e){if(!e.Zb||e.mf)c=a.qc({a:c}),c.omt=
(this.getCurrentTime()+this.Vc()).toFixed(3),c.to=this.Vc(),this.qa("sbu",c);e.mf&&!a.hk()&&setTimeout(function(){var f=a.hf(),h=bL(f,e.startTime+m7a),l=bL(f,b.currentTime);(0>h||h!==l)&&b.qa("sbu_mismatch",{b:aL(f),c:b.currentTime,s:e.Qd()})},0)}}this.xf()};
g.k.D9=function(a){if(this.Qa){var b=c_(a===this.Qa.j?this.audioTrack:this.videoTrack);if(a=a.rO())for(var c=0;c<a.length;c++)this.qa("appendedbuffer",{i:c,b:g.Dg(a[c].subarray(0,4096),3)});a=void 0;b&&(a=FQ(b));this.handleError("fmt.unplayable",a,1)}};
g.k.Ow=function(a){this.oa.Ow(a)};
g.k.zQ=function(a,b,c){this.manifest.isManifestless&&J6a(this,b,c,!!a.info.video,!0)};
g.k.yQ=function(a,b,c,d){a.info.video&&this.G.yQ(b,c,d)};
g.k.DJ=function(a){this.j.DJ(a)};
g.k.ND=da(20);g.k.IK=function(a){this.ac=a;var b;null!=(b=this.audioTrack.Z)&&(b.pd=a);null!=(b=this.videoTrack.Z)&&(b.pd=a);b=this.ma;b.K&&(b.Aa.qa("ssap",{addcacheclips:1,v:b.K.version,tl:L8a(b.K.XV)}),I8a(b,a,b.K),b.K=void 0)};
g.k.Gi=function(){return this.ac};
g.k.LI=function(){return this.videoTrack.N||this.audioTrack.N};
g.k.seek=function(a,b){if(this.isDisposed())return tg();if(this.LI())return tg("seeking to head");b9a(this);this.Yq=(0,g.pD)();XV(this.policy)||J_(this,a);this.Qa&&this.Qa.j&&this.Qa.B&&!this.oa.getVideoData().SU&&(this.Qa.j.isLocked()||this.Qa.B.isLocked())&&this.oa.zo({reattachOnLockedBuffer:1,vsb:""+this.Qa.B.isLocked(),asb:""+this.Qa.j.isLocked()});var c=this.currentTime;this.currentTime=this.B.seek(a,b);QZ(this.G,a,c);L_(this);return mg(this.currentTime)};
g.k.jP=function(a){return this.policy.C&&this.ma.jP(a)};
g.k.wK=function(a){this.ma.wK(a)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.bO=function(){return this.audioTrack.j.info};
g.k.eO=function(){return this.videoTrack.j.info};
g.k.aO=function(){return this.audioTrack.j.info.sb};
g.k.dO=function(){return this.videoTrack.j.info.sb};
g.k.xa=function(){try{this.oz();rZ(this.audioTrack);rZ(this.videoTrack);var a;null==(a=this.audioTrack.Z)||Z5a(a);var b;null==(b=this.videoTrack.Z)||Z5a(b);g.I.prototype.xa.call(this)}catch(c){g.tF(c)}};
g.k.handleError=function(a,b,c){c=void 0===c?0:c;var d=CK(c);if("fmt.unplayable"===a&&this.manifest.isLive){this.policy.xu=!1;var e=this.manifest;if(e.isManifestless)for(var f in e.j)e.j[f].index.segments=[]}b=new BK(a,b,c);g.fb(this);AK(b.details);this.oa.handleError(b);"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose()};
g.k.qc=function(){var a=c_(this.audioTrack),b=c_(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.B.eg(),lmf:this.j.j.isLocked(),lbw:IQa(this.schedule).toFixed(3),lhd:OR(this.schedule).toFixed(3),lst:(1E9*(this.schedule.G.cj()||0)).toFixed(3),laa:a?a.Qd():"",lva:b?b.Qd():"",lar:this.audioTrack.B?this.audioTrack.B.Qd():"",lvr:this.videoTrack.B?this.videoTrack.B.Qd():"",laq:""+f_(this.audioTrack),lvq:""+f_(this.videoTrack)};this.Qa&&!this.Qa.Ug()&&this.Qa.j&&this.Qa.B&&(a.lab=aL(this.Qa.j.hf()),
a.lvb=aL(this.Qa.B.hf()));this.Zo&&(a.lapt=((0,g.pD)()-this.Zo).toFixed(0),a.lapr=h9a(this));this.Ma&&(a.lapmbht=((0,g.pD)()-this.Ma).toFixed(0));return a};
g.k.Pk=function(){try{this.policy.C&&this.ma.wK(!1),this.audioTrack.Pk(),this.videoTrack.Pk()}catch(a){g.tF(a)}this.policy.D=""};
g.k.WN=function(){return nZ(this.Z)};
g.k.qa=function(a,b,c){this.oa.qa(a,b,void 0===c?!1:c)};
g.k.xe=function(){return this.oa.xe()};
g.k.tq=function(a,b){a/=b;isNaN(this.timestampOffset)&&y9a(this,a-Math.min(a,this.policy.lF));return(a-this.timestampOffset)*b};
g.k.Vc=function(){return this.timestampOffset};
g.k.eg=function(){return this.B.eg()};
g.k.Lv=function(){this.G.Lv()};
g.k.Eo=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?{}:c;XV(this.policy)?this.C.Eo(a,b,c):this.j.Eo(a,b,c)};
g.k.JF=function(a,b){if(!this.Y)return!1;var c=this.videoTrack.j.index.Fi(a);return this.Y.JF(a,b,c)};
g.k.Ir=function(a,b){if(this.Y&&this.G.Ir(a,this.Y))return y9a(this,this.timestampOffset-b),L_(this),!0;b=this.videoTrack.j.index.Fi(a);this.handleError("ad.skipfailed",{dec:!!this.Y,t:a.toFixed(3),sq:b});return!1};
g.k.aX=function(){return this.manifest};
g.k.isOffline=function(){return!!this.oa.getVideoData().cotn};
g.k.sF=function(a,b){this.oa.sF(a,b)};
g.k.tR=function(a){var b=this.oa.getVideoData().oi;if(b){var c=this.D;c.rh=a;c.oi=b;M_(this)}};
g.k.hJ=function(a){this.videoTrack.N=!1;this.audioTrack.N=!1;this.B.B=!1;this.oa.hJ(a)};
g.k.RR=function(a){this.B.RR(a-this.Vc())};
g.k.fN=function(){this.oa.fN()};
g.k.gJ=function(a){a!==this.policy.Pe&&((this.policy.Pe=a)||this.xf())};
g.k.mR=function(a,b){var c=this.audioTrack.dc,d=this.videoTrack.dc;c&&d&&(c.remove(a,b),d.remove(a,b))};
g.k.zo=function(a){this.oa.zo(a)};
g.k.mx=function(a){this.oa.mx(a)};g.k=g.N_.prototype;g.k.xz=function(a,b,c,d,e,f){return this.pd.xz(a,b,c,d,e,f)};
g.k.oI=function(a,b,c,d,e,f){return this.pd.oI(a,b,c,d,e,f)};
g.k.qI=function(a){this.pd.qI(a)};
g.k.Zs=function(a,b){return this.pd.Zs(a,b)};
g.k.Lv=function(){this.pd.Lv()};
g.k.JF=function(a,b,c){return this.pd.JF(a,b,c)};
g.k.au=function(a,b){this.pd.au(a,b)};
g.k.xR=function(){this.pd.xR()};
g.k.yD=da(44);g.k.Uk=function(a,b,c,d){this.pd.Uk(a,b,c,d)};
g.k.pG=da(42);g.k.GQ=function(a,b,c,d,e,f,h,l,m){this.pd.GQ(a,b,c,d,e,f,h,l,m)};
g.k.TR=function(a){this.pd.TR(a)};
g.k.Mt=function(a){return this.pd.Mt(a)};
g.k.DN=function(a){return this.pd.DN(a)};g.w(O_,g.NF);g.w(P_,O_);P_.prototype.K=function(a,b){if(a&&b){var c=1*Number(cn(a,"cpi"))+1;isNaN(c)||0>=c||c<this.C?(this.D.stop(),this.B.stop(),this.C=-1,this.j={}):(c>this.C&&(this.C=c,g.md(this.j)||(this.j={},this.D.stop(),this.B.stop())),this.j[b]=a,g.Ru(this.B))}};
P_.prototype.G=function(){for(var a=g.u(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ra;for(var d=this.C,e=this.j[c].match(Tm),f=[],h=g.u(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.Ye(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e<c.length;++e)d[2*e+4]=c.charCodeAt(e);b.call(this,
"rotated_need_key_info_ready",new VZ(d,"fairplay",!0))}this.j={}};
P_.prototype.xa=function(){this.j={};O_.prototype.xa.call(this)};g.w(Q_,O_);
Q_.prototype.D=function(a){var b;a:{if((b=a.cryptoPeriodIndex)&&0<this.j.length)for(var c=g.u(this.j),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}if(!b){b=(0,g.pD)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.u(this.C.values());for(var e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c?(c=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30))):c=0;this.ra("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length});
0>=c?A9a(this,a):(this.j.push({time:b+c,info:a}),g.Ru(this.B,c))}};
Q_.prototype.xa=function(){this.j=[];O_.prototype.xa.call(this)};var G3={},I9a=(G3.DRM_TRACK_TYPE_AUDIO="AUDIO",G3.DRM_TRACK_TYPE_SD="SD",G3.DRM_TRACK_TYPE_HD="HD",G3.DRM_TRACK_TYPE_UHD1="UHD1",G3);g.w(E9a,g.I);g.w(K9a,g.NF);g.k=K9a.prototype;g.k.Mp=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=pR(b.B)?d:c;d=new Uint8Array(pR(b.B)?c:d);pR(b.B)&&a$a(d);c=g.Dg(d,4);a$a(d);d=g.Dg(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),W9a(this,","),R_(this,{onkeystatuschange:1}),this.status="kc",this.ra("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.isDisposed()||(this.ra("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.K)/1E3,this.K=NaN,this.ra("ctmp","provf",{et:a.toFixed(3)})));CK(b)&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Ea&&this.N?!1:!a&&this.requestNumber===b.requestNumber};
g.k.xa=function(){this.j={};g.NF.prototype.xa.call(this)};
g.k.qc=function(){var a={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.Ia,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(a.keyStatuses=this.j);return a};
g.k.Ph=function(){var a=this.D.join();if(S_(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.Ue=function(){return this.url};g.w(T_,g.I);g.k=T_.prototype;g.k.G4=function(a){if(this.G){var b=a.messageType||"license-request";this.G(new Uint8Array(a.message),b)}};
g.k.Mp=function(){this.N&&this.N(this.j.keyStatuses)};
g.k.DZ=function(a){this.G&&this.G(a.message,"license-request")};
g.k.CZ=function(a){if(this.C){if(this.B){var b=this.B.error.code;a=this.B.error.systemCode}else b=a.errorCode,a=a.systemCode;this.C("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
g.k.BZ=function(){this.K&&this.K()};
g.k.update=function(a){var b=this;if(this.j)return(xR.isActive()?xR.Ek("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,MO(function(c){c$a(b,"t.update",c)}));
this.B?this.B.update(a):this.element.addKey?this.element.addKey(this.Z.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.Z.keySystem,a,this.initData,this.sessionId);return XB()};
g.k.xa=function(){this.j&&(this.Y?this.j.close().catch(g.uF):this.j.close());this.element=null;g.I.prototype.xa.call(this)};g.w(U_,g.I);g.k=U_.prototype;g.k.IM=function(){var a=this;if(this.j.keySystemAccess)return(xR.isActive()?xR.Ek("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.isDisposed())if(a.B=c,xR.isActive())xR.Ek("emeset",function(){return a.element.setMediaKeys(c)});
else{var d;null==(d=a.element)||d.setMediaKeys(c)}});
if(oR(this.j))this.C=new (nR())(this.j.keySystem);else if(qR(this.j)){this.C=new (nR())(this.j.keySystem);var b;null==(b=this.element)||b.webkitSetMediaKeys(this.C)}else xR.isActive()&&this.qa("emev",{v:"01b"}),EC(this.G,this.element,["keymessage","webkitkeymessage"],this.J4),EC(this.G,this.element,["keyerror","webkitkeyerror"],this.I4),EC(this.G,this.element,["keyadded","webkitkeyadded"],this.H4);return null};
g.k.setServerCertificate=function(){return this.B.setServerCertificate?"widevine"===this.j.flavor&&this.j.Nl?this.B.setServerCertificate(this.j.Nl):sR(this.j)&&this.j.Xa?this.B.setServerCertificate(this.j.Xa):null:null};
g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.B.createSession();rR(this.j)?c=d$a(c,this.j.Xa):sR(this.j)&&(c=z9a(c)||new Uint8Array(0));b&&b("genreq");var e=xR.isActive()?xR.Ek("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c);
var f=new T_(null,null,null,d,null,this.N);e.then(function(){b&&b("genreqsuccess")},MO(function(l){c$a(f,"t.generateRequest",l)}));
return f}if(oR(this.j))return f$a(this,c);if(qR(this.j))return e$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.D=new T_(this.element,this.j,c,null,null,this.N)};
g.k.J4=function(a){var b=g$a(this,a);b&&b.DZ(a)};
g.k.I4=function(a){var b=g$a(this,a);b&&b.CZ(a)};
g.k.H4=function(a){var b=g$a(this,a);b&&b.BZ(a)};
g.k.getMetrics=function(){if(this.B&&this.B.getMetrics)try{var a=this.B.getMetrics()}catch(b){}return a};
g.k.xa=function(){this.C=this.B=null;var a;null==(a=this.D)||a.dispose();a=g.u(Object.values(this.K));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.K={};g.I.prototype.xa.call(this);delete this.element};g.k=V_.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.Zb(a,b)})};g.w(j$a,g.NF);g.k=j$a.prototype;g.k.d$=function(a){this.sj({onecpt:1});a.initData&&m$a(this,new Uint8Array(a.initData),a.initDataType)};
g.k.A$=function(a){this.sj({onndky:1});m$a(this,a.initData,a.contentType)};
g.k.Ow=function(a){this.sj({onneedkeyinfo:1});this.W.L("html5_eme_loader_sync")&&(this.N.get(a.initData)||this.N.set(a.initData,a));l$a(this,a)};
g.k.sV=function(a){this.C.push(a);W_(this)};
g.k.createSession=function(a){var b=o$a(this)?m6a(a):g.Dg(a.initData);this.B.get(b);this.Ia=!0;a=new K9a(this.videoData,this.W,a,this.drmSessionId);this.B.set(b,a);a.subscribe("ctmp",this.AJ,this);a.subscribe("keystatuseschange",this.Mp,this);a.subscribe("licenseerror",this.FJ,this);a.subscribe("newlicense",this.yZ,this);a.subscribe("newsession",this.zZ,this);a.subscribe("sessionready",this.JZ,this);a.subscribe("fairplay_next_need_key_info",this.rZ,this);this.W.L("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange",
this.HS,this);O9a(a,this.D)};
g.k.yZ=function(a){this.isDisposed()||(this.sj({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ra("heartbeatparams",a)))};
g.k.zZ=function(){this.isDisposed()||(this.sj({newlcssn:1}),this.C.shift(),this.Ia=!1,W_(this))};
g.k.JZ=function(){if(oR(this.j)&&(this.sj({onsnrdy:1}),this.Na--,0===this.Na)){var a=this.ma,b,c;null==(b=a.element)||null==(c=b.msSetMediaKeys)||c.call(b,a.C)}};
g.k.Mp=function(a){if(!this.isDisposed()){!this.Ma&&this.videoData.L("html5_log_drm_metrics_on_key_statuses")&&(p$a(this),this.Ma=!0);this.sj({onksch:1});var b=this.HS;if(!S_(a)&&g.GD&&"com.microsoft.playready"===a.B.keySystem&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(S_(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(!S_(a)||d)c=a.D;c=V9a(c)}b.call(this,c);
this.ra("keystatuseschange",a)}};
g.k.AJ=function(a,b){this.isDisposed()||this.ra("ctmp",a,b)};
g.k.rZ=function(a,b){this.isDisposed()||this.ra("fairplay_next_need_key_info",a,b)};
g.k.FJ=function(a,b,c,d){this.isDisposed()||(this.videoData.L("html5_log_drm_metrics_on_error")&&p$a(this),this.ra("licenseerror",a,b,c,d))};
g.k.Ev=function(){return this.Z};
g.k.HS=function(a){var b=g.uP("auto",a,!1,"l");if(this.videoData.Dl){if(dNa(this.Z,b))return}else if(eNa(this.Z,a))return;this.Z=b;this.ra("qualitychange");this.sj({updtlq:a})};
g.k.xa=function(){this.j.keySystemAccess&&this.element&&(this.Ca?this.element.setMediaKeys(null).catch(g.uF):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var a=g.u(this.B.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.AJ,this),b.unsubscribe("keystatuseschange",this.Mp,this),b.unsubscribe("licenseerror",this.FJ,this),b.unsubscribe("newlicense",this.yZ,this),b.unsubscribe("newsession",this.zZ,this),b.unsubscribe("sessionready",this.JZ,this),b.unsubscribe("fairplay_next_need_key_info",
this.rZ,this),this.W.L("html5_enable_vp9_fairplay")&&b.unsubscribe("qualitychange",this.HS,this),b.dispose();this.B.clear();this.K.Tf();this.N.Tf();this.heartbeatParams=null;g.NF.prototype.xa.call(this)};
g.k.qc=function(){for(var a={systemInfo:this.j.qc(),sessions:[]},b=g.u(this.B.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.qc());return a};
g.k.Ph=function(){return 0>=this.B.size?"no session":""+this.B.values().next().value.Ph()+(this.G?"/KR":"")};
g.k.sj=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(AK(a),(this.W.Dc()||b)&&this.ra("ctmp","drmlog",a))};g.w(q$a,g.I);g.k=q$a.prototype;g.k.FH=function(){return!!this.pE};
g.k.OI=function(){return this.B};
g.k.handleError=function(a){var b=this;v$a(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!u$a(this,a.errorCode,a.details))&&!z$a(this,a)){if("yt"!==this.Ha.va&&x$a(this,a)&&this.videoData.To&&(0,g.pD)()/1E3>this.videoData.To&&"hm"===this.Ha.va){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.To;c.init=this.videoData.RS/1E3;c.now=(0,g.pD)()/1E3;c.systelapsed=((0,g.pD)()-this.videoData.RS)/1E3;
a=new BK(a.errorCode,c,2);this.oa.Bg(a.errorCode,2,"SIGNATURE_EXPIRED",AK(a.details))}if(CK(a.severity)){var d;c=null==(d=this.oa.Aa)?void 0:d.j.j;if(this.Ha.L("html5_use_network_error_code_enums"))if(w$a(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else{if(!this.Ha.N&&"auth"===a.errorCode&&429===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}}else w$a(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.Ha.N||"auth"!==a.errorCode||"429"!==a.details.rc||(e="TOO_MANY_REQUESTS",f="6");this.oa.Bg(a.errorCode,
a.severity,e,AK(a.details),f)}else this.oa.ra("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.ze(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.pD)(),sU(a,"manifest",function(h){b.G=!0;b.qa("pathprobe",h)},function(h){b.ze(h.errorCode,h.details)}))}};
g.k.qa=function(a,b){this.oa.Cc().qa(a,b)};
g.k.ze=function(a,b){b=AK(b);this.oa.Cc().ze(a,b)};C$a.prototype.VN=function(a){return a?{ZZ:N$a(this,a)}:{ZZ:WS}};
C$a.prototype.L=function(a){return this.W.L(a)};g.w($_,g.I);$_.prototype.onError=function(a){if("player.fatalexception"!==a||this.provider.L("html5_exception_to_health"))"sabr.fallback"===a&&(this.encounteredSabrFallback=!0),a.match(Zlb)?this.networkErrorCount++:this.nonNetworkErrorCount++};
$_.prototype.send=function(){if(!(this.C||0>this.j)){T$a(this);var a=g.dN(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.Tg;this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.JG(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.JG(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.JG(this.playerState,16)||g.JG(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.JG(this.playerState,1)&&g.JG(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.JG(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.JG(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.JG(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=Bcb[tT(this.provider.videoData)];a:switch(this.provider.W.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=U$a(this.provider),
f=0>this.B?a:this.B-this.j;a=this.provider.W.Zf+36E5<(0,g.pD)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:f,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,playerCanaryStage:e,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.sT(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
encounteredSabrFallback:this.encounteredSabrFallback};a||g.bD("html5PlayerHealthEvent",b);this.C=!0;this.dispose()}};
$_.prototype.xa=function(){this.C||this.send();window.removeEventListener("error",this.HA);window.removeEventListener("unhandledrejection",this.HA);g.I.prototype.xa.call(this)};
var Zlb=/\bnet\b/;var V$a=/[?&]cpn=/;var $$a=Math.pow(10,8);g.w(g.c0,g.I);g.k=g.c0.prototype;g.k.P7=function(){var a=g.dN(this.provider);eab(this,a)};
g.k.DD=function(){return this.Ra};
g.k.HD=function(){return{XA:this.XA,YA:this.YA}};
g.k.PF=function(a,b){this.XA=a;this.YA=b};
g.k.rF=function(a){this.j.lwc=[[a.qf?a.qf.toFixed():"",a.Ji?a.Ji.toFixed():"",a.Za?(1E3*a.Za).toFixed():"",a.Ob?(1E3*a.Ob).toFixed():"",a.jc?(1E3*a.jc).toFixed():""].join(":")]};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.dN(this.provider),-1<["PL","B","S"].indexOf(this.Le)&&(!g.md(this.j)||a>=this.D+30)&&(g.b0(this,a,"vps",[this.Le]),this.D=a),!g.md(this.j))){7E3===this.sequenceNumber&&g.uF(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){hab(this,a);var b=a,c=this.provider.oa.PD(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.XA,h=e&&!this.YA;d>c.totalVideoFrames||5E3<f?mab(this,"html5.badframedropcount",
"df."+d+";tf."+c.totalVideoFrames):(0<f||h)&&g.b0(this,b,"df",[f]);this.XA=d;this.YA=e;0<this.Z&&(g.b0(this,a,"glf",[this.Z]),this.Z=0);g3.isActive()&&(a=g3.HW(),0<Object.keys(a).length&&this.qa("profile",a));this.Nb&&d0(this,"lwnmow");this.provider.W.Dc()&&this.provider.L("html5_record_now")&&this.qa("now",{wt:(0,g.pD)()});a={};this.provider.videoData.B&&(a.fmt=this.provider.videoData.B.itag,(b=this.provider.videoData.D)&&b.itag!==a.fmt&&(a.afmt=b.itag));a.cpn=this.provider.videoData.clientPlaybackNonce;
this.adCpn&&(a.adcpn=this.adCpn);this.Y&&(a.addocid=this.Y);this.contentCpn&&(a.ccpn=this.contentCpn);this.va&&(a.cdocid=this.va);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=FT(this.provider.videoData);a.content_v=HT(this.provider.videoData);a.ns=this.provider.W.va;a.fexp=oQa(this.provider.W.experiments).toString();a.cl=(613025973).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=tT(this.provider.videoData))&&(a.live=b);this.provider.videoData.Bj()&&
(a.drm=1,this.provider.videoData.K&&(a.drm_system=Ilb[this.provider.videoData.K.flavor]||0),this.provider.videoData.Rm&&(a.drm_product=this.provider.videoData.Rm));GB()&&this.provider.videoData.G&&(a.ctt=this.provider.videoData.G,a.cttype=this.provider.videoData.Km,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.H_&&(a.dai_fallback=
"1")):this.provider.videoData.yd?a.dai="cs":this.provider.videoData.wC&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.cV){if(b=this.provider.videoData.cV,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.Bd.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.oba};
this.provider.videoData.playerResponseCpn&&(b.playerResponseCpn=this.provider.videoData.playerResponseCpn);a0.length&&(b.decoderInfo=a0);this.provider.oa.Gi()&&(b.transitionStitchType=4,this.Ca&&(b.timestampOffsetMsecs=this.Ca));b=g.GO(b,dab);a.qclc=g.Dg(b,4);this.provider.W.L("html5_qoe_only_report_embargoed_state_when_embargoed")?this.Ea&&(a.embargoed="1"):a.embargoed=this.Ea?"1":"0";g.rd(a,this.provider.W.j);a=g.an("//"+this.provider.W.Wm+"/api/stats/qoe",a);c=b="";d=g.u(Object.keys(this.j));for(e=
d.next();!e.done;e=d.next())e=e.value,null===this.j[e]?g.uF(new g.QC("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),100<e.length?c+=e:b+=e);iab(this,a+b,c.replace(/ /g,"%20"))}this.j={}}};
g.k.mx=function(a){this.Nb=a};
g.k.T_=function(){if(this.provider.videoData.K){var a=this.provider.videoData.K;d0(this,"eme-"+(a.keySystemAccess?"final":oR(a)?"ms":rR(a)?"ytfp":qR(a)?"safarifp":"nonfinal"))}};
g.k.UE=function(a){var b=g.dN(this.provider),c=[a.j.id,a.B,this.Jc,a.reason];this.provider.W.L("html5_log_request_identifier_on_format_change")&&a.token&&c.push(a.token);g.b0(this,b,"vfs",c);this.Jc=a.j.id;c=this.provider.oa.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.jS();1<d&&c.push(d);g.b0(this,b,"view",c)}this.Za||(this.provider.W.Dc()&&d0(this,"rqs2"),this.provider.videoData.j&&AP(this.provider.videoData.j)&&(this.j.preload=["1"]));this.K=this.Za=
!0;"m"===a.reason&&100===++this.Ee&&nab(this,2);g.b0(this,b,"vps",[this.Le]);this.reportStats(b)};
g.k.GE=function(a){var b=g.dN(this.provider);if(a.j.id!==this.Wa){var c=[a.j.id,this.Wa,a.reason];this.provider.W.L("html5_log_request_identifier_on_format_change")&&a.token&&c.push(a.token);g.b0(this,b,"afs",c);this.Wa=a.j.id}};
g.k.Nt=da(48);g.k.qo=function(a){this.Ea=a};
g.k.onPlaybackRateChange=function(a){var b=g.dN(this.provider);a&&a!==this.Lc&&(g.b0(this,b,"rate",[a]),this.Lc=a);this.reportStats(b)};
g.k.Vn=da(27);g.k.getPlayerState=function(a){if(g.JG(a,128))return"ER";if(g.JG(a,2048))return"B";if(g.JG(a,512))return"SU";if(g.JG(a,16)||g.JG(a,32))return"S";if(g.CL(a)&&g.JG(a,64))return"B";var b=$lb[EL(a)];g.yJ(this.provider.W)&&"B"===b&&3===this.provider.oa.getVisibilityState()&&(b="SU");"B"===b&&g.JG(a,4)&&(b="PB");return b};
g.k.xa=function(){g.I.prototype.xa.call(this);g.OB(this.G);g.OB(this.Ob)};
g.k.nK=function(a){this.isOffline=a;g.b0(this,g.dN(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.k.qa=function(a,b,c){var d=this.j.ctmp||[],e=-1!==this.rd.indexOf(a);e||this.rd.push(a);if(!c||!e){var f="string"!==typeof b?AK(b):b;f=oab(f);if(!c&&!/^t[.]/.test(f)){var h=1E3*g.dN(this.provider);f="t."+h.toFixed()+";"+f}d.push(a+":"+f);this.logger.debug(function(){return"ctmp "+a+" "+f});
this.j.ctmp=d;jab(this);return h}};
g.k.qF=function(a,b,c){this.C={hca:Number(this.qa("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),cZ:a,Rba:b,isAd:c}};
g.k.hx=function(a,b,c){g.b0(this,g.dN(this.provider),"ad_playback",[a,b,c])};
g.k.resume=function(){var a=this;this.provider.W.Dc()&&this.qa("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.G)?kab(this):this.G=g.MB(function(){a.reportStats()},1E4)};
var H3={},$lb=(H3[5]="N",H3[-1]="N",H3[3]="B",H3[0]="EN",H3[2]="PA",H3[1]="PL",H3),a0=[];qab.prototype.XW=function(){return this.j};
qab.prototype.update=function(){if(this.N){var a=this.provider.oa.bj()||0,b=g.dN(this.provider);a>=this.provider.oa.getDuration()-.1&&(this.previouslyEnded=!0);if(a!==this.j||tab(this,a,b)){var c;if(!(c=a<this.j||a-this.j>b-this.Jp+2||tab(this,a,b))){c=this.provider.oa.getVolume();var d=c!==this.Y,e=this.provider.oa.isMuted()?1:0;e!==this.Z?(this.Z=e,c=!0):(!d||0<=this.D||(this.Y=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(g0(this),this.C=a);this.Jp=b;this.j=a}}};vab.prototype.send=function(a){var b=this;if(!this.fb){var c=xab(this),d=g.an(this.uri,c);this.W.L("vss_through_gel_double")&&yab(d);this.va&&!this.W.L("html5_simplify_pings")?Dab(this,d):wab(this,a).then(function(e){b.va&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});Z$a(d,e,{token:b.Y,rS:b.ub,mdxEnvironment:b.mdxEnvironment},b.W,a,b.Ca,b.isFinal&&b.Yf||b.Ia||b.C&&b.Zf)});
this.fb=!0}};
vab.prototype.B=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var I3={},Bab=(I3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,I3.LIVING_ROOM_APP_MODE_MAIN=1,I3.LIVING_ROOM_APP_MODE_KIDS=2,I3.LIVING_ROOM_APP_MODE_MUSIC=3,I3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,I3.LIVING_ROOM_APP_MODE_GAMING=5,I3),J3={},Aab=(J3.EMBEDDED_PLAYER_MODE_UNKNOWN=0,J3.EMBEDDED_PLAYER_MODE_DEFAULT=1,J3.EMBEDDED_PLAYER_MODE_PFP=2,J3.EMBEDDED_PLAYER_MODE_PFL=3,J3),K3={},uab=(K3[0]=0,K3[1]=1,K3[2]=2,K3[3]=3,K3);g.w(i0,g.I);g.k=i0.prototype;g.k.hg=function(){this.j.update();Jab(this)&&Eab(this)};
g.k.xa=function(){g.I.prototype.xa.call(this);m0(this);rab(this.j)};
g.k.qc=function(){return xab(j0(this,"playback"))};
g.k.wu=function(){this.provider.videoData.N.eventLabel=FT(this.provider.videoData);this.provider.videoData.N.playerStyle=this.provider.W.playerStyle;this.provider.videoData.yj&&(this.provider.videoData.N.feature="pyv");this.provider.videoData.N.vid=this.provider.videoData.videoId;var a=this.provider.videoData.N;var b=this.provider.videoData;b=b.isAd()||!!b.yj;a.isAd=b};
g.k.ej=function(a){var b=j0(this,"engage");b.ma=a;return zab(b,Oab(this.provider))};Nab.prototype.isEmpty=function(){return this.endTime===this.startTime};o0.prototype.L=function(a){return this.W.L(a)};
o0.prototype.getCurrentTime=function(){if(g.NT(this.videoData)){var a=this.oa.Gi();if(a){var b=this.oa.getCurrentTime(),c;a=((null==(c=WY(a,1E3*b))?void 0:c.al)||0)/1E3;return b-a}}return this.oa.getCurrentTime()};
o0.prototype.bj=function(){if(g.NT(this.videoData)){var a=this.oa.Gi();if(a){var b=this.oa.bj(),c;a=(null==(c=WY(a,1E3*b))?NaN:c.al)/1E3||0;return b-a}}return this.oa.bj()};
var Pab={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.w(g.p0,g.I);g.k=g.p0.prototype;g.k.hg=function(){if(this.provider.videoData.enableServerStitchedDai&&this.eh){var a;null==(a=this.C.get(this.eh))||a.hg()}else this.j&&this.j.hg()};
g.k.qo=function(a){this.qoe&&this.qoe.qo(a)};
g.k.ze=function(a,b){this.qoe&&mab(this.qoe,a,b);if(this.B)this.B.onError(a)};
g.k.UE=function(a){this.qoe&&this.qoe.UE(a)};
g.k.GE=function(a){this.qoe&&this.qoe.GE(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a);this.j&&g0(this.j.j)};
g.k.Nt=da(47);g.k.qa=function(a,b,c){this.qoe&&this.qoe.qa(a,b,c)};
g.k.qF=function(a,b,c){this.qoe&&this.qoe.qF(a,b,c)};
g.k.rF=function(a){var b;null==(b=this.qoe)||b.rF(a)};
g.k.mx=function(a){this.qoe&&this.qoe.mx(a)};
g.k.hx=function(a,b,c){this.qoe&&this.qoe.hx(a,b,c)};
g.k.Vn=da(26);g.k.DD=function(){if(this.qoe)return this.qoe.DD()};
g.k.qc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.eh){var a;null==(a=this.C.get(this.eh))||a.qc()}else if(this.j)return this.j.qc();return{}};
g.k.HD=function(){var a;return null==(a=this.qoe)?void 0:a.HD()};
g.k.PF=function(a,b){var c;null==(c=this.qoe)||c.PF(a,b)};
g.k.ej=function(a){return this.j?this.j.ej(a):function(){}};
g.k.wu=function(){this.j&&this.j.wu()};
g.k.getVideoData=function(){return this.provider.videoData};
g.k.resume=function(){this.qoe&&this.qoe.resume()};g.w(q0,g.I);q0.prototype.tN=function(a,b,c){if(!this.j.has(a)){var d=new o0(b,this.W,this.oa),e=Math.round(1E3*g.dN(this.B.provider));d=new g.p0(d,e);e=this.B.getVideoData();this.j.set(a,d);if(d.qoe){var f=d.qoe,h=e.videoId||"";f.contentCpn=e.clientPlaybackNonce;f.va=h}Qab(d);2===c&&this.B.hx(a,b.Bd||"",b.breakType||0)}};
q0.prototype.Cc=function(a){a=a||this.eh;return this.j.get(a)||this.B};g.w(r0,g.I);g.k=r0.prototype;g.k.yf=function(a,b){this.No();b&&2E3<=this.j.array.length&&this.lD("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.$b(b.array,c,b.j)}this.C=NaN;this.No()};
g.k.xo=function(a){1E4<a.length&&g.uF(new g.QC("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)});
abb(this.j,b);this.No()}};
g.k.lD=function(a,b){var c=(isNaN(this.C)?g.JG(this.G(),2)?0x8000000000000:1E3*this.Z():this.C)-b;b=this.fm().filter(function(d){return d.namespace===a&&d.end<c});
this.xo(b);return b};
g.k.fm=function(){return this.isDisposed()?[]:this.j.array};
g.k.reset=function(){this.started=!1;this.D.stop();this.j.array=[];this.B=[];this.No()};
g.k.Cf=function(a){var b=this.fm().filter(function(c){return c.namespace===a});
this.xo(b);return b};
g.k.mG=function(a){var b=[],c=Yab(this.j,0x7ffffffffffff),d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())e=e.value,e.active&&e.playerType===a&&d.push(e);b=b.concat(this.JH(d));dbb(this,b);b=[];d=[];c=g.u(this.B);for(e=c.next();!e.done;e=c.next())e=e.value,e.active&&e.playerType===a&&0x7ffffffffffff===e.start&&d.push(e);b=b.concat(this.MH(d));dbb(this,b)};
g.k.JH=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.MH=function(a){var b=[];if(!a.length)return b;a.sort(g.$Aa);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.No=function(){this.K=!0;if(!this.N){for(var a=3;this.K&&a;)this.K=!1,this.N=!0,this.eY(),this.N=!1,a--;this.G().isPlaying()&&(a=$ab(this.j,this.C),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.C)/this.va(),this.D.start(a)))}};
g.k.eY=function(){if(this.started&&!this.isDisposed()){this.D.stop();var a=this.G();g.JG(a,32)&&this.ma.start();for(var b=g.JG(this.G(),2)?0x8000000000000:1E3*this.Z(),c=g.JG(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.MH(e));f=e=null;c?(a=Yab(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=Zab(this.j)):a=this.C<=b&&YCa(a)?Xab(this.j,this.C,b):Yab(this.j,b);
d=d.concat(this.JH(a));e&&(d=d.concat(this.MH(e)));f&&(d=d.concat(this.JH(f)));this.C=b;dbb(this,d)}};
g.k.xa=function(){this.B=[];this.j.array=[];g.I.prototype.xa.call(this)};
g.wY.HI(r0,{yf:"crmacr",JH:"crmncr",MH:"crmxcr",eY:"crmis",xo:"crmrcr"});g.w(u0,g.NF);u0.prototype.Vq=function(){return this.N};
u0.prototype.Gq=function(){return Math.max(this.Z()-v0(this)*this.j,this.videoData.Rd())};g.w(z0,g.I);z0.prototype.xf=function(){var a=this,b=this.oa.kf(),c=this.oa.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.JG(c,8)&&g.JG(c,16),h=this.oa.Cn().isBackground()||c.isSuspended();A0(this,this.fb,f&&!h,e,"qoe.slowseek",function(){},"timeout");
var l=isFinite(this.j);l=f&&l&&SCa(b,this.j);var m=!d||10<Math.abs(d-this.j);A0(this,this.Za,l&&m&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
l=l&&cL(b.Oh(),this.j);var n=this.oa.Aa;m=!n||!n.policy.Ma;var p=function(){b.seekTo(a.j+.001)};
A0(this,this.Ma,l&&m&&!h,e,"qoe.slowseek",p,"jiggle_cmt");var q=function(){return X_(a.oa)};
A0(this,this.Ra,l&&!h,e,"qoe.slowseek",q,"new_elem");l=YCa(c);m=g.DL(c);var r=b.Oh(),t=bL(r,d),v=0<=t&&r.end(t)>d+5,x=l&&m&&v,A=this.oa.getVideoData();A0(this,this.Na,.002>d&&.002>this.j&&f&&g.yJ(this.W)&&g.GT(A)&&!h,e,"qoe.slowseek",q,"slow_seek_shorts");A0(this,this.Y,A.Nn()&&f&&!h&&!A.Ea,e,"qoe.slowseek",q,"slow_seek_gapless_shorts");A0(this,this.ma,x&&!h,l&&!m,"qoe.longrebuffer",p,"jiggle_cmt");A0(this,this.va,x&&!h,l&&!m,"qoe.longrebuffer",q,"new_elem_nnr");if(n){var E=n.getCurrentTime();f=b.Iv();
f=DCa(f,E);f=!n.eg()&&d===f;A0(this,this.Nb,l&&m&&f&&!h,l&&!m&&!f,"qoe.longrebuffer",function(){b.seekTo(E)},"seek_to_loader")}f={};
p=bL(r,Math.max(d-3.5,0));x=0<=p&&d>r.end(p)-1.1;var F=0<=p&&p+1<r.length?r.start(p+1)-r.end(p):9999;f.mindex=t;f.disIndex=p;f.isdisc=0<=p&&x&&11>F;f.close2edge=x;f.gapsize=F;f.buflen=r.length;this.D&&(f.seekSour=this.D);A0(this,this.Ca,l&&m&&!h,l&&!m,"qoe.longrebuffer",function(){},"timeout",f);
t=c.isSuspended();t=I_(this.oa)&&!t;A0(this,this.N,t,!t,"qoe.start15s",function(){a.oa.Ng("ad")},"ads_preroll_timeout");
f=.5>d-this.C;p=A.isAd()&&l&&!m&&f;t=function(){var G=a.oa,M=G.oe.fd();(!M||!G.videoData.isAd()||M.getVideoData().yd!==G.getVideoData().yd)&&G.videoData.Nf||G.Bg("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+G.videoData.videoId)};
A0(this,this.ib,p,!p,"ad.rebuftimeout",t,"skip_slow_ad");f=A.isAd()&&m&&cL(b.Oh(),d+5)&&f;A0(this,this.tb,f,!f,"ad.rebuftimeout",t,"skip_slow_ad_buf");A0(this,this.ub,g.CL(c)&&g.JG(c,64)&&!h,e,"qoe.start15s",function(){},"timeout");
A0(this,this.Ia,!!n&&!n.Qa&&g.CL(c),e,"qoe.start15s",q,"newElemMse");e=fL(r,0);n=g.JG(c,16)||g.JG(c,32);e=!h&&g.CL(c)&&m&&!n&&(g.JG(c,64)||0===d)&&5<e;A0(this,this.Xa,g.GT(A)&&e,l&&!m,"qoe.longrebuffer",function(){a.oa.zo()},"reset_media_source");
A0(this,this.Wa,g.GT(A)&&e,l&&!m,"qoe.longrebuffer",q,"reset_media_element");0===this.C&&(this.K=d);e=m&&0===this.j&&1<d&&d===this.K;A0(this,this.Ea,g.GT(A)&&e,l&&!m,"qoe.slowseek",function(){b.seekTo(0)},"reseek_after_time_jump");
c=g.CL(c)&&!h;h=6>yY(this.oa)-d&&!v&&this.oa.vt();A0(this,this.Z,A.Nn()&&c&&m&&h,l&&!m,"qoe.longrebuffer",function(){X_(a.oa,!1,!0)},"handoff_end_long_buffer_reload");
this.C=d;this.G.start()}};
z0.prototype.ze=function(a,b,c){b=this.qc(b);b.wn=c;b.wdup=this.B[a]?"1":"0";this.oa.ze(new BK(a,b));this.B[a]=!0};
z0.prototype.qc=function(a){a=Object.assign(this.oa.qc(!0),a.qc());this.j&&(a.stt=this.j.toFixed(3));this.oa.getVideoData().isLivePlayback&&(a.ct=this.oa.getCurrentTime().toFixed(3),a.to=this.oa.Vc().toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
x0.prototype.reset=function(){this.j=this.B=this.C=this.startTimestamp=0;this.D=!1};
x0.prototype.test=function(a){if(!this.G||this.B)return!1;if(!a)return this.reset(),!1;a=(0,g.pD)();if(!this.startTimestamp)this.startTimestamp=a,this.C=0;else if(this.C>=this.G)return this.B=a,!0;this.C+=1;return!1};
x0.prototype.qc=function(){var a={},b=(0,g.pD)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.B&&(a.wtd=(b-this.B).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.w(sbb,g.I);g.k=sbb.prototype;g.k.setMediaElement=function(a){(this.mediaElement=a)?(this.mediaElement&&(this.G||this.D||!this.mediaElement.uR()||this.seekTo(.01,{Ed:"seektimeline_setupMediaElement"})),B0(this)):C0(this)};
g.k.getCurrentTime=function(){return!isNaN(this.j)&&isFinite(this.j)?this.j:this.mediaElement&&Fbb(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0};
g.k.bj=function(){return this.getCurrentTime()-this.Vc()};
g.k.Gq=function(){return this.B?this.B.Gq():Infinity};
g.k.isAtLiveHead=function(a){if(!this.B)return!1;void 0===a&&(a=this.getCurrentTime());return w0(this.B,a)};
g.k.Vq=function(){return!!this.B&&this.B.Vq()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.oG?!1:c.oG;var d=void 0===c.zS?0:c.zS,e=void 0===c.Qv?!1:c.Qv,f=void 0===c.sS?0:c.sS,h=void 0===c.Ed?"":c.Ed,l=void 0===c.seekSource?void 0:c.seekSource,m=void 0===c.RI?!1:c.RI,n=void 0===c.dS?!1:c.dS;if(void 0===c.tq?0:c.tq)a+=this.Vc();if(c=a<this.Ma&&!!this.Aa){this.oa.qa("sdai",{sk2bk:a.toFixed(3),mt:(a-this.timestampOffset).toFixed(3),lstadj:this.Ma.toFixed(3)});this.Ma=NaN;this.timestampOffset-=1E3;var p;if(null!=(p=this.Aa)){y9a(p,
p.timestampOffset-1E3);var q=p.manifest,r=new Set;for(x in q.j){var t=q.j[x].index,v=t.Dv();v&&!r.has(v)&&(v.startTime+=1E3,v.endTime=v.startTime+v.duration,r.add(v));t.segments.length&&(v=t.segments[t.segments.length-1],t.segments=[],t.segments.push(v))}p.Y&&p.Y.xR();QZ(p.G,0,0,!0)}}var x=a;(p=!isFinite(x)||(this.B?w0(this.B,x):x>=this.Re())||!g.yT(this.videoData))||this.oa.qa("seeknotallowed",{st:x,mst:this.Re()});if(!p)return this.C&&(this.C=null,Cbb(this)),mg(this.getCurrentTime());if(.005>Math.abs(a-
this.j)&&this.ma)return this.G;h&&(x=a,(this.W.Dc()||this.L("html5_log_seek_reasons"))&&this.oa.qa("seekreason",{reason:h,tgt:x}));l&&(this.va.D=l);this.ma&&C0(this);this.G||(this.G=new tL);a&&!isFinite(a)&&vbb(this,!1);(h=n||c)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&0<this.mediaElement.Jk()&&0<NCa(this.mediaElement))||gT(this.videoData)&&this.Rd()===this.Re(!1)?0:isFinite(h)||!gT(this.videoData)));h||(a=Ebb(this,a,e));a&&!isFinite(a)&&
vbb(this,!1);this.D=a;this.Ra=f;this.j=a;this.Z=0;this.B&&(e=this.B,f=a,mbb(e,f,!1),nbb(e,f));e=this.oa;f=a;h={oG:b,seekSource:l};e.od.D=f;n=e.OC;n.mediaTime=f;n.j=!0;h.oG&&wcb(e,h);h=f>e.videoData.endSeconds;e.W.L("embeds_enable_muted_autoplay")&&(h=h&&f>e.videoData.limitedPlaybackDurationInSeconds);e.yq&&h&&isFinite(f)&&jcb(e);f<e.Re()-.01&&(h=AL(e.playerState,2),g.JG(h,8)&&(h=AL(h,4)),e.Gc(h));e.ra("SEEK_TO",e,f);this.G&&(b?d&&this.Wa.start(d):(b={RI:m,seekSource:l},this.ma=!0,rbb(this,b)));(b=
this.oa.yq)&&a>b.start&&jcb(this.oa);return this.G};
g.k.Re=function(a){if(!this.videoData.isLivePlayback)return Mcb(this.oa);var b;return PT(this.videoData)&&(null==(b=this.mediaElement)?0:b.isPaused())&&this.videoData.j?(a=this.getCurrentTime(),ETa(1E3*this.jf(a))+a):gT(this.videoData)&&this.videoData.fb&&this.videoData.j?this.videoData.j.Re()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&&this.B?this.B.Gq():Mcb(this.oa)+this.timestampOffset:this.mediaElement?eC()?ETa(this.mediaElement.OG().getTime()):NCa(this.mediaElement)+this.timestampOffset||
this.timestampOffset:this.timestampOffset};
g.k.Rd=function(){if(g.NT(this.videoData)){var a=this.oa;g.NT(a.videoData);var b,c;return null!=(c=null==(b=a.ac)?void 0:b.Rd())?c:a.videoData.Rd()}b=this.videoData?this.videoData.Rd()+this.timestampOffset:this.timestampOffset;return PT(this.videoData)&&this.videoData.j&&(c=Number(null==(a=this.videoData.progressBarStartPosition)?void 0:a.utcTimeMillis)/1E3,a=this.getCurrentTime(),a=this.jf(a)-a,!isNaN(c)&&!isNaN(a))?Math.max(b,c-a):b};
g.k.ON=function(){this.G||this.seekTo(this.D,{Ed:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
g.k.LI=function(){return this.ma&&!isFinite(this.j)};
g.k.xa=function(){wbb(this,null);this.va.dispose();g.I.prototype.xa.call(this)};
g.k.qc=function(){var a={};this.Aa&&Object.assign(a,this.Aa.qc());this.mediaElement&&Object.assign(a,this.mediaElement.qc());return a};
g.k.JQ=function(a){this.timestampOffset=a};
g.k.getStreamTimeOffset=function(){return gT(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.k.Vc=function(){return this.timestampOffset};
g.k.jf=function(a){return this.videoData.j.jf(a-this.timestampOffset)};
g.k.Fv=function(){if(!this.mediaElement)return 0;if(zT(this.videoData)){var a=this.mediaElement,b=a.Oh();a=(0<eL(b)&&a.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.Rd();b=this.Re()-this.Rd();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.Fv()};
g.k.Nw=function(a){this.K&&(this.K.j=a)};
g.k.L=function(a){return this.W&&this.W.L(a)};E0.prototype.zt=function(){return this.started};
E0.prototype.start=function(){this.started=!0};
E0.prototype.reset=function(){this.j=this.started=!1};var Obb=!1;g.w(g.I0,g.NF);g.k=g.I0.prototype;g.k.xa=function(){this.logger.debug("dispose");g.OB(this.bK);c3a(this.jg);this.visibility.unsubscribe("visibilitystatechange",this.jg);bcb(this);M0(this);g.Iu.Sj(this.ax);this.Jj();this.Sf=null;g.vb(this.videoData);g.vb(this.Qk);g.xb(this.s9);this.yq=null;g.NF.prototype.xa.call(this)};
g.k.hx=function(a,b,c,d){this.Cc().hx(a,b,c);this.L("html5_log_media_perf_info")&&this.qa("adloudness",{ld:d.toFixed(3),cpn:a})};
g.k.aO=function(){var a;return null==(a=this.Aa)?void 0:a.aO()};
g.k.dO=function(){var a;return null==(a=this.Aa)?void 0:a.dO()};
g.k.eO=function(){var a;return null==(a=this.Aa)?void 0:a.eO()};
g.k.bO=function(){var a;return null==(a=this.Aa)?void 0:a.bO()};
g.k.Bj=function(){return this.videoData.Bj()};
g.k.cI=function(){return this.nA};
g.k.tN=function(){!this.mA||this.mA.isDisposed();this.mA=new g.p0(new o0(this.videoData,this.W,this));this.nA=new q0(this.W,this,this.mA)};
g.k.getVideoData=function(){return this.videoData};
g.k.U=function(){return this.W};
g.k.VN=function(){return this.Ck.VN(this.Sf)};
g.k.Cc=function(a){if(g.NT(this.videoData)&&a)a:{for(var b=this.nA,c=g.u(b.j.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.getVideoData().videoId===a){a=d;break a}a=b.B}else a=this.nA.Cc();return a};
g.k.Cn=function(){return this.visibility};
g.k.kf=function(){return this.mediaElement};
g.k.bN=function(){if(this.videoData.isLoaded()){var a=this.Qk;0<g.lJ(a.Ha.experiments,"html5_player_min_build_cl")&&613025973<g.lJ(a.Ha.experiments,"html5_player_min_build_cl")&&y$a(a,"oldplayer");fcb(this)}else this.videoData.Vi||this.videoData.Vm?this.xt&&g.yJ(this.W)&&this.videoData.isLivePlayback||(this.videoData.Vi?eTa(this.videoData):(a=this.Cc(),a.qoe&&(a=a.qoe,d0(a,"protected"),a.provider.videoData.K?a.T_():a.provider.videoData.subscribe("dataloaded",a.T_,a)),cTa(this.videoData))):!this.videoData.loading&&
this.K5&&dcb(this)};
g.k.IK=function(a){this.ac=a;this.Aa&&this.Aa.IK(a)};
g.k.Dz=da(17);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.JG(this.getPlayerState(),128)||(this.ra("internalAbandon"),this.HR(!0),bcb(this),g.Iu.Sj(this.ax))};
g.k.Ho=function(){Rab(this.Cc())};
g.k.Bg=function(a,b,c,d,e,f){this.logger.debug(function(){return"set player error: ec="+a+", detail="+e});
var h,l;g.kd(Skb,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+kza());if("auth"===a||"drm.auth"===a||"heartbeat.stop"===a)c&&(d+=";r."+c.replaceAll(" ","_")),f&&(d+="sr."+f.replaceAll(" ","_"));b={errorCode:a,errorDetail:e,errorMessage:l||g.nW[h]||"",JN:h,qn:f||"",kK:d,KH:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;L0(this,"dataloaderror");this.Gc(yL(this.playerState,128,b));g.Iu.Sj(this.ax);M0(this);this.uo()};
g.k.Ng=function(a){this.Pp=this.Pp.filter(function(b){return a!==b});
this.logger.debug(function(){return"set preroll ready for "+a});
this.L("html5_send_preroll_ready_csi_ping")&&!this.En()&&this.Sb.gi("pl_pr");this.xr.zt()&&ecb(this)};
g.k.En=function(){var a;(a=!!this.Pp.length)||(a=this.Nh.j.array[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.Vq=function(){return this.od.Vq()};
g.k.isPlaying=function(){return this.playerState.isPlaying()};
g.k.hE=function(){return this.playerState.hE()&&this.videoData.Lm};
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.eV);a=xP(a)}else a="auto";return a};
g.k.FD=da(21);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.k.setMediaElement=function(a){this.logger.debug("set media element");if(this.mediaElement&&a.Kb()===this.mediaElement.Kb()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.FC(this.KB),this.mediaElement=a,this.mediaElement.oa=this,xcb(this),this.od.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Jj();if(!this.playerState.isError()){var b=AL(this.playerState,512);g.JG(b,8)&&!g.JG(b,2)&&(b=zL(b,1));a.isView()&&(b=AL(b,64));this.Gc(b)}this.mediaElement=
a;this.mediaElement.oa=this;pS(this.W)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);xcb(this);this.od.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.Qk.FH()&&OCa(this.mediaElement)}};
g.k.Jj=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.logger.debug("remove media element");if(this.mediaElement){var c=this.getCurrentTime();0<c&&(this.od.D=c);this.od.setMediaElement(null);!a&&qL(this)?rcb(this):R0(this);this.Aa&&(L_(this.Aa),Q0(this,b));this.uw.stop();if(this.mediaElement&&(!this.xr.zt()||this.playerState.isError()||g.JG(this.playerState,2)||this.Gc(zL(this.playerState,512)),this.mediaElement)){g.FC(this.KB);if(a||!this.mediaElement.isView())this.L("html5_rebase_video_to_ad_timeline")&&
this.Sb.ou("mesv_s"),this.mediaElement.stopVideo(),S0(this);this.mediaElement=this.mediaElement.oa=null}}};
g.k.playVideo=function(a){a=void 0===a?!1:a;var b=this,c,d,e,f,h,l;return g.H(function(m){if(1==m.j){b.logger.debug("start play video");var n=window.google_image_requests;n&&10<n.length&&(window.google_image_requests=n.slice(-10));if(g.JG(b.playerState,128))return m.return();if(b.Qk.OI())return b.ra("signatureexpired"),m.return();b.mediaElement&&ZY(b.Cc());icb(b);(g.JG(b.playerState,64)||a)&&b.Gc(zL(b.playerState,8));return b.xr.j&&b.mediaElement?b.Sf||!b.ZE?m.Ka(2):g.z(m,b.ZE,3):m.return()}if(2!=
m.j&&g.JG(b.playerState,128))return m.return();if(!b.videoData.C)return b.videoData.isLivePlayback&&!g.tQa(b.W.G,!0)?(c="html5.unsupportedlive",d=2):(c=b.videoData.Bj()?"fmt.unplayable":"fmt.noneavailable",d=1),g.uF(Error("selectableFormats")),b.Bg(c,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),m.return();if(b.Sh()&&b.videoData.C.j)return b.logger.debug("rebuild playbackData for airplay"),m.return(K0(b));if(eT(b.videoData)&&(e=b.getCurrentTime()<b.Rd()-15,f=g.yT(b.videoData)&&b.playerState.isPaused(),
h=g.JG(b.playerState,1024),n=b.od,n.videoData.yc()&&MT(n.videoData)||h||!e&&!f||(f?(b.logger.debug("seek to head for live because of live-only"),b.seekTo(Infinity,{Ed:"videoplayer_unpauseLiveOnly"})):(b.logger.debug("seek to min seekable for live because of out of window"),b.seekTo(b.Rd(),{Ed:"videoplayer_outOfWindow"}))),!b.isAtLiveHead(void 0,!0)&&b.Vq()&&(b.logger.debug("seek to head for live because pegged to live"),l={Ed:"videoplayer_peggedToLive",seekSource:34},b.seekTo(Infinity,l)),g.JG(b.playerState,
256)&&b.videoData.Ea&&b.od.LI()))return b.Gc(BL(b.playerState,8,4)),m.return();g.JG(b.playerState,4)&&g.JG(b.playerState,16)&&b.Gc(BL(b.playerState,9,4));if(H0(b))return Ecb(b),m.return();Dcb(b);g.Aa(m)})};
g.k.zo=function(a){this.logger.debug("reset media source");a&&this.ze(new BK("qoe.restart",a));this.Gc(zL(this.playerState,2048));R0(this);a=this.videoData.j&&DP(this.videoData.j);var b=this.mediaElement&&this.mediaElement.isView();a||b?(this.Aa&&Y8a(this.Aa),X_(this)):(H0(this),g.CL(this.playerState)&&this.playVideo())};
g.k.Ps=function(){if(!this.Sf)return[];var a=E$a(this.Ck,this.Sf,this.Ev());return this.Sf.j.Ps(a)};
g.k.wD=function(){if(!this.Sf)return[];var a=E$a(this.Ck,this.Sf,this.Ev());return this.Sf.j.wD(a)};
g.k.Ev=function(){var a=this.He?this.He.Ev():$Sa(this.videoData)&&this.videoData.j&&DP(this.videoData.j)?this.videoData.Dl?WS:h$a:WS;this.AR&&(a=a.compose(Elb));return a};
g.k.WH=function(){var a=this.xe(),b=this.oe.Pd().videoId;return this.oe.It.WH(a)||this.oe.It.WH(b)};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?xP(this.videoData.Gy):wP[qP()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a,b){this.videoData.Yf!==a&&(this.qa("toggle51",{pref:a}),this.videoData.Yf=a,g.IC("yt-player-audio51",a,b?31536E3:2592E3),Y_(this))};
g.k.getUserAudio51Preference=function(){var a=1;lS(this.W)&&this.L("html5_ytv_surround_toggle_default_off")&&(a=0);var b;return null!=(b=g.JC("yt-player-audio51"))?b:a};
g.k.setProximaLatencyPreference=function(a){var b=this.getProximaLatencyPreference();this.qa("proxima",{pref:a});g.IC("yt-player-proxima-pref",a,31536E3);b!==a&&(this.od.fb=!0,this.seekTo(Infinity,{Ed:"videoplayer_proximaSeekToHead",seekSource:34}))};
g.k.getProximaLatencyPreference=function(){var a;return null!=(a=SMa())?a:0};
g.k.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
g.k.getAvailableAudioTracks=function(){return g.NT(this.videoData)&&this.ac?Q3a(this.ac).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(ocb(this)){var a=qcb(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.EE=function(){if(fT(this.videoData)&&this.videoData.L("html5_trigger_loader_when_idle_network")){var a;null!=(a=this.Aa)&&a.xf()}};
g.k.oz=function(){if(this.Aa){var a=this.Aa,b=a.oz;var c=this.videoData;c=c.L("html5_ssdai_use_post_for_media")&&c.enableServerStitchedDai?!1:gT(c)&&c.Nf&&!c.isAd();b.call(a,c)}};
g.k.Iq=function(){return this.Qa};
g.k.Ow=function(a){this.logger.debug("onNeedKeyInfo");this.SA.set(a.initData,a);this.He&&(this.He.Ow(a),this.L("html5_eme_loader_sync")||this.SA.remove(a.initData))};
g.k.KQ=function(a){this.videoData.Oy=g.uP("auto",a,!1,"u");G0(this)};
g.k.Nw=function(a){var b,c;if(this.L("html5_prefer_language_over_codec")&&(null==(b=this.videoData.D)?0:b.uc)&&a.j.info.sb!==this.videoData.D.sb&&(null==(c=a.j.info.uc)?void 0:c.id)!==this.videoData.D.uc.id){var d;this.qa("lac",{prev:this.videoData.D.itag,plang:this.videoData.D.uc.id,"new":a.j.info.itag,nlang:null==(d=a.j.info.uc)?void 0:d.id})}b=a.reason;c=a.j.info;d=a.token;var e=this.Cc(a.videoId),f=g.NT(this.videoData)?e.getVideoData():this.videoData;if(c!==f.D){var h=!f.D;f.D=c;this.L("html5_video_data_change_for_audio_format_update")&&
L0(this);"m"!==b&&"t"!==b&&(b=h?"i":"a");var l="m"===b||"t"===b;e.GE(new B$a(f,c,b,"",d));h||this.ra("internalaudioformatchange",f,l)}this.od.Nw(a.j.index)};
g.k.GJ=function(a){this.ra("localmediachange",a)};
g.k.Eo=function(a){a=void 0===a?{}:a;var b;null==(b=this.Aa)||b.Eo(this.W,aTa(this.videoData),a)};
g.k.OI=function(){return this.Qk.OI()};
g.k.handleError=function(a){this.Qk.handleError(a)};
g.k.FH=function(){return this.Qk.FH()};
g.k.hJ=function(a){this.IB?(this.qa("utcSeekingFallback",{source:"streamTime",timeSeconds:this.IB}),this.seekTo(this.IB,{Ed:"utcSeekingFallback_streamTime"}),this.IB=0):isNaN(this.jf())||(a=this.jf()-a,a=this.getCurrentTime()-a,this.qa("utcSeekingFallback",{source:"estimate",timeSeconds:a}),this.seekTo(a,{Ed:"utcSeekingFallback_estimate"}))};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.JG(this.playerState,64)||g.JG(this.playerState,2))&&!a)if(g.JG(this.playerState,8))this.Gc(BL(this.playerState,4,8));else if(this.hE())H0(this);else return;g.JG(this.playerState,128)||(a?this.Gc(zL(this.playerState,256)):this.Gc(BL(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.yT(this.videoData)&&this.Aa&&Q0(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.Aa&&(Q0(this,!1),this.Aa.Pk())};
g.k.uo=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(qL(this)&&b){var c;null==(c=this.mediaElement)||c.uo()}else{var d;null==(d=this.mediaElement)||d.stopVideo()}S0(this);M0(this);g.JG(this.playerState,128)||(a?this.Gc(AL(AL(zL(this.playerState,4),8),16)):this.Gc(yL(this.playerState)));this.videoData.videoId&&this.W.Na.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;this.logger.debug(function(){return"SeekTo "+a+", "+JSON.stringify(b)});
g.JG(this.playerState,2)&&H0(this);b.Inb&&this.Gc(zL(this.playerState,2048));this.od.seekTo(a,b);this.Nh.No()};
g.k.getCurrentTime=function(){return this.od.getCurrentTime()};
g.k.bj=function(){return this.od.bj()};
g.k.Gq=function(){return this.od.Gq()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Vc())};
g.k.Cz=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.Cz());return 0<=a?a:this.getCurrentTime()};
g.k.jf=function(){var a;return(null==(a=this.videoData.j)?0:a.jf)?this.videoData.j.jf(this.getCurrentTime()-this.Vc()):this.mediaElement&&(a=this.mediaElement.OG())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN};
g.k.getDuration=function(){return g.NT(this.videoData)&&this.ac?XY(this.ac):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Vc():this.Re()?this.Re():0};
g.k.LD=function(){var a=new Uab;this.Aa?(LQa(this.W.schedule,a),t9a(this.Aa,a)):this.mediaElement&&(a.Xu=vL(this.mediaElement));a.Nr=this.Nr;a.pu=this.pu;a.C=this.isAtLiveHead()&&this.isPlaying()?Ybb(this):NaN;return a};
g.k.sF=function(a,b){this.pu+=a;this.Nr+=b};
g.k.Fv=function(){return this.mediaElement?g.yT(this.videoData)?1:zT(this.videoData)?this.isAtLiveHead()||this.Vq()?1:this.od.Fv():this.mediaElement.Fv():0};
g.k.qc=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.Cc().qc());this.mediaElement&&(Object.assign(b,this.mediaElement.qc()),Object.assign(b,this.PD()));this.Aa&&Object.assign(b,this.Aa.qc());this.He&&(b.drm=JSON.stringify(this.He.qc()));b.state=this.playerState.state.toString(16);g.JG(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.Tg));this.En()&&(b.prerolls=this.Pp.join(","));this.videoData.Kd&&(b.ismb=this.videoData.Kd);"UNKNOWN"!==this.videoData.latencyClass&&
(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)b.is_mosaic=1;this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.oe.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&gR(this.videoData.j)&&(b.segduration=gR(this.videoData.j)),a=this.od,b.lat=a.K?XWa(a.K.D):
0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Vf.toFixed(3);if(a=g.CV(this))b.optimal_format=a.video.qualityLabel;b.user_qual=qP();b.release_version="youtube.player.web_20240305_00_RC00";g.NT(this.videoData)&&this.ac&&(b.ssap=$Y(this.ac))}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.Ly([a])};
g.k.removeCueRange=function(a){this.Nh.xo([a])};
g.k.lD=function(a,b){return this.Nh.lD(a,b)};
g.k.Ly=function(a,b){this.Nh.yf(a,b)};
g.k.uF=function(a){this.Nh.xo(a)};
g.k.fm=function(){return this.Nh.fm()||[]};
g.k.Sh=function(){return this.visibility.Sh()};
g.k.Zt=function(){this.mediaElement&&this.mediaElement.Zt()};
g.k.bba=function(){L0(this)};
g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.k.MJ=function(a){var b=a.target.Kf();if(this.mediaElement&&this.mediaElement.Kf()&&this.mediaElement.Kf()===b){Jcb(this,a.type);switch(a.type){case "error":var c=VCa(this.mediaElement,this.L("html5_enable_new_capchange_logic"))||"",d=this.mediaElement.Af();if("capability.changed"===c){this.L("html5_restart_on_capability_change")?(this.qa("capchg",{msg:d}),X_(this,!0)):K0(this);return}if(this.mediaElement.hasError()&&u$a(this.Qk,c,{msg:d}))return;if(this.isBackground()&&4===this.mediaElement.gh()){this.uo();
N0(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Qa||0<c)&&1!==c&&this.wl(c);break;case "ratechange":this.Aa&&this.Aa.setPlaybackRate(this.mediaElement.getPlaybackRate());bbb(this.Nh);this.Cc().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":Lcb(this);this.ra("onLoadedMetadata");zcb(this);c=this.jf();this.videoData.Jz&&(this.videoData.Jz=c);break;case "loadstart":zcb(this);break;case "progress":case "suspend":this.Rc();
this.ra("onLoadProgress",this,this.Fv());break;case "playing":this.Sb.ou("plev");this.DR&&(this.DR=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Ed:"videoplayer_onPlaying"})));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();d=this.mediaElement&&0===this.mediaElement.Jk();if(c&&(!this.tJ||d))return;this.tJ=this.tJ||!!this.mediaElement.getCurrentTime();ycb(this);this.Rc();if(!this.mediaElement||this.mediaElement.Kf()!==
b)return;this.ra("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.mediaElement.Iv().length&&0===this.mediaElement.Oh().length&&0<this.mediaElement.getCurrentTime()&&5>this.mediaElement.getCurrentTime()&&this.Aa)return;this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||2<this.mediaElement.Jk()||!this.mediaElement.eg()&&cL(this.mediaElement.Oh(),this.mediaElement.getCurrentTime()))&&(d=this.mediaElement.qc(),d.bh=vL(this.mediaElement).toFixed(3),
this.qa("uwe",d));if(g.NT(this.videoData)&&this.ac){d=this.ac;var e=this.mediaElement.getCurrentTime();if(!d.wk.has(d.dg)){var f=0,h=0,l=GY(d.timeline,d.dg);if(null==l?0:l.length)for(l=g.u(l).next();!l.done;){h=l.value;f=h.zf();h=h.dj();break}if(!(0<h&&h>1E3*e+100)&&(h=S3a(d,f))){e=!1;f=void 0;h=g.u(h.segments);for(l=h.next();!l.done;l=h.next()){l=l.value;if(e){f=l;break}l.aj()===d.dg&&(e=!0)}h=void 0;f?h=f.aj():e&&(h=null==(c=d.timeline.j)?void 0:c.aj());h&&d.finishSegmentByCpn(d.dg,h,2)}}}break;
case "resize":Lcb(this);this.videoData.B&&"auto"===this.videoData.B.video.quality&&this.ra("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.AV&&g.JG(this.playerState,8)&&!g.JG(this.playerState,1024)&&0===this.getCurrentTime()&&g.kD){N0(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Kf()===b){Hbb(this.od,a,this.ac||void 0);this.ra("videoelementevent",a);b=this.playerState;d=this.OC;f=this.mediaElement;h=this.W.experiments;c=this.videoData.clientPlaybackNonce;
var m=g.NT(this.videoData)&&this.ac?XY(this.ac):void 0;if(!g.JG(b,128)){e=b.state;f=f?f:a.target;l=f.getCurrentTime();if(!g.JG(b,64)||"ended"!==a.type&&"pause"!==a.type){m=m||f.getDuration();m=f.isEnded()||1<l&&1.1>Math.abs(l-m);var n="pause"===a.type&&f.isEnded();l="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.JG(b,4)&&!s0(d,l);if(n||m&&l)0<f.fI()&&f.Kf()&&(e=14);else switch(a.type){case "error":VCa(f)&&(e|=128);break;case "pause":g.JG(b,256)?(e^=256)||(e=64):g.JG(b,32)||g.JG(b,
2)||g.JG(b,4)||(e=4,g.JG(b,1)&&g.JG(b,8)&&(e|=1));break;case "playing":h=e;e=(e|8)&-1093;h&4?(e|=1,xL(d,f)):s0(d,f.getCurrentTime())&&(e&=-2);g.JG(b,1)&&xL(d,f)&&(e|=1);break;case "seeking":e|=16;g.JG(b,8)&&(e|=1);e&=-3;break;case "seeked":e&=-17;h.kb("html5_update_time_on_seeked")&&xL(d,f);break;case "waiting":g.JG(b,2)||(e|=1);xL(d,f);break;case "timeupdate":h=g.JG(b,16),l=g.JG(b,4),(g.JG(b,8)||h)&&!l&&s0(d,f.getCurrentTime())&&(e=8),xL(d,f)&&(e|=1)}}d=e;e=null;d&128&&(e=a.target,f=VCa(e),h=1,f?
("capability.changed"===f&&(h=2),l="GENERIC_WITHOUT_LINK",m=e.qc(),m.mediaElem="1",/AUDIO_RENDERER/.test(e.Af())&&(l="HTML5_AUDIO_RENDERER_ERROR"),e={errorCode:f,errorMessage:g.nW[l]||"",JN:l,kK:AK(m),KH:h,cpn:b.Tg?b.Tg.cpn:""}):e=null,e&&(e.cpn=c));b=yL(b,d,e)}!g.JG(this.playerState,1)&&g.JG(b,1)&&Icb(this,"evt"+a.type);this.Gc(b)}}};
g.k.y9=function(a){a="available"===a.j.availability;a!==this.cE&&(this.cE=a,this.ra("airplayavailabilitychange"))};
g.k.z9=function(){var a=(0,g.pD)(),b=this.mediaElement.Sh();this.qa("airplay",{ia:b});!b&&!isNaN(this.UI)&&2E3>a-this.UI||(this.UI=a,b!==this.Sh()&&(a=this.visibility,a.j!==b&&(a.j=b,a.jg()),this.qa("airplay",{rbld:b}),Y_(this)),this.ra("airplayactivechange"))};
g.k.QD=function(a){if(this.Aa){var b=this.Aa,c=b.G,d=b.currentTime,e=Date.now()-c.Z;c.Z=NaN;c.qa("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.G)&&3!==c.B&&M5a(c.Aa,d,c.G,c.D);c.C=NaN;PZ(c,4,3===c.B?"adfps":"adf");L_(b)}};
g.k.Rc=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){zbb(this.od,this.isPlaying());var c=this.getCurrentTime();!this.Aa||g.JG(this.playerState,4)&&g.yT(this.videoData)||fT(this.videoData)&&g.JG(this.playerState,32)||v9a(this.Aa,c);5<c&&(this.od.D=c);var d=g.YC();d?g.Iu.Sj(this.ax):g.NB(this.ax);var e=this.mediaElement.isPaused();if((g.DL(this.playerState)||!e||PT(this.videoData))&&!g.JG(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.JG(b.playerState,
128)){b.W.Dc()&&Jcb(b,"pfx");var h=b.getCurrentTime(),l=vL(b.mediaElement),m=g.JG(b.playerState,8),n=s0(b.OC,h),p=WCa(b.OC,h,(0,g.pD)(),l);m&&n?b.Gc(AL(b.playerState,1)):m&&p?(m=b.getDuration(),n=eT(b.videoData),m&&1.1>Math.abs(m-h)?(b.qa("setended",{ct:h,bh:l,dur:m,live:n}),b.mediaElement.Ts()?(b.logger.debug("seek to 0 because of looping"),b.seekTo(0,{Ed:"videoplayer_loop"})):CY(b)):(g.DL(b.playerState)||Icb(b,"progress_fix"),b.Gc(zL(b.playerState,1)))):(m&&!n&&!p&&0<h&&(m=(Date.now()-b.pE)/1E3,
n=b.getDuration(),h>n-1&&b.qa("misspg",{t:h.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),b.playerState.isPaused()&&g.DL(b.playerState)&&5<vL(b.mediaElement)&&b.Gc(AL(b.playerState,1)));b.Rc()}};
0===this.mediaElement.Iv().length?this.ax=d?g.Iu.Xi(f,100):g.LB(f,100):this.ax=d?g.Iu.Xi(f,500):g.LB(f,500)}this.videoData.pF=c;!a&&this.isPlaying()&&Ccb(this);M$a(this.Ck,this.Sf,this.kf(),this.isBackground())&&G0(this);this.ra("progresssync",this,a);e&&PT(this.videoData)&&this.ra("onVideoProgress",this,this.getCurrentTime())}};
g.k.D7=function(){this.Bg("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.DD=function(){return this.Cc().DD()};
g.k.WN=function(){return this.Aa?this.Aa.WN():PR(this.W.schedule,!0)};
g.k.Gc=function(a){if(g.XCa(this.playerState,a))this.W.Dc()&&a.seekSource!==this.playerState.seekSource&&this.qa("ssdiff",{ps:(this.playerState.seekSource||"").toString(),ns:(a.seekSource||"").toString()});else{this.logger.debug(function(){return"Setting state "+a.toString()});
var b=new g.IG(a,this.playerState);this.playerState=a;Kcb(this);var c=!this.dK.length;this.dK.push(b);var d=this.mediaElement&&this.mediaElement.eg();d=8===b.DA.state&&!d;g.LG(b,1)&&d&&g.JG(this.playerState,8)&&!g.JG(this.playerState,64)&&this.Aa&&(X8a(this.Aa),this.mediaElement&&5<=vL(this.mediaElement)&&K$a(this.Ck,this.Sf)&&G0(this));(d=g.lJ(this.W.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.JG(a,1)&&(g.JG(a,8)||g.JG(a,16))?this.wM.start(d):this.wM.stop();(0>KG(b,8)||g.LG(b,1024))&&
this.uw.stop();!g.LG(b,8)||this.videoData.Ea||g.JG(b.state,1024)||this.uw.start();g.JG(b.state,8)&&0>KG(b,16)&&!g.JG(b.state,32)&&!g.JG(b.state,2)&&this.playVideo();g.JG(b.state,2)&&zT(this.videoData)&&(this.wl(this.getCurrentTime()),this.Rc(!0));g.LG(b,2)&&this.HR(!0);g.LG(b,128)&&this.uo();this.videoData.j&&this.videoData.isLivePlayback&&!this.X0&&(0>KG(b,8)?RPa(this.videoData.j):g.LG(b,8)&&this.videoData.j.resume());xbb(this.od,b);V3a(this.Cc(),b);if(c&&!this.isDisposed())try{for(var e=g.u(this.dK),
f=e.next();!f.done;f=e.next()){var h=f.value;cbb(this.Nh,h);this.ra("statechange",h)}}finally{this.dK.length=0}}};
g.k.IE=function(){this.videoData.isLivePlayback||this.L("html5_disable_connection_issue_event")||this.ra("connectionissue")};
g.k.EQ=function(){this.Sb.tick("qoes")};
g.k.ON=function(){this.od.ON()};
g.k.FJ=function(a,b,c,d){a:{var e=this.Qk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=CK(b);"drm.keyerror"===a&&this.He&&1<this.He.B.keys.length&&96>e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())A$a(e,a);else{if(e.oa.Bg(a,b,d,c),r$a(e,{detail:c}))break a}else e.ze(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.qa("retrydrm",{sessionLimitExhausted:1}),e.D++,Hcb(e.oa))}};
g.k.m$=function(){var a=this,b=g.lJ(this.W.experiments,"html5_license_constraint_delay"),c=Epa();b&&c?(b=new g.Qu(function(){O0(a);L0(a)},b),g.N(this,b),b.start()):(O0(this),L0(this))};
g.k.LE=function(a){this.ra("heartbeatparams",a)};
g.k.Mp=function(a){this.qa("keystatuses",X9a(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.L("html5_drm_check_all_key_error_states")){var d=Y9a(b,c);d=S_(a)?Z9a(a,d):a.D.includes(d)}else{a:{b=Y9a(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.L("html5_enable_vp9_fairplay")){if(c)if(a.Z){var f;if(null==(f=this.He)?0:sR(f.j))if(null==(c=this.He))c=
0;else{b=f=void 0;e=g.u(c.B.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=$9a(h,"SD")),b||(b=$9a(h,"AUDIO"));c.sj({sd:f,audio:b});c="output-restricted"===f||"output-restricted"===b}else c=!d;if(c){this.qa("drm",{dshdr:1});A$a(this.Qk);return}}else{this.videoData.XB||(this.videoData.XB=!0,this.qa("drm",{dphdr:1}),X_(this,!0));return}var l;if(null==(l=this.He)?0:sR(l.j))return}else if(l=a.Z&&d,c&&!l){A$a(this.Qk);return}d||Z9a(a,"AUDIO")&&Z9a(a,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),
a=X9a(a),this.AR?(this.logger.debug("Output restricted, playback cannot continue"),this.ra("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.Bg("drm.keyerror",2,void 0,"info."+a)):(this.AR=!0,this.ze(new BK("qoe.restart",Object.assign({},{retrydrm:1},a))),G0(this),Hcb(this)))};
g.k.o$=function(){if(!this.videoData.Ea&&this.mediaElement&&!this.isBackground()){var a="0";0<this.mediaElement.Jk()&&5<=vL(this.mediaElement)&&this.videoData.C&&this.videoData.C.j&&(this.Gc(zL(this.playerState,1)),Icb(this,"load_soft_timeout"),this.ra("playbackstalledatstart"),a="1");Kcb(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!$Sa(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].qe)||this.He),mfmtinfo:!this.videoData.B,prerolls:this.En()?this.Pp.join(","):
"0"};if(this.He){b=this.He;if(0>=b.B.size){var c="ns;";b.Y||(c+="nr;");b=c+="ql."+b.C.length}else b=X9a(b.B.values().next().value),b=AK(b);a.drmp=b}var d;Object.assign(a,(null==(d=this.Aa)?void 0:d.qc())||{});var e;Object.assign(a,(null==(e=this.mediaElement)?void 0:e.qc())||{});this.Cc().ze("qoe.start15s",AK(a));this.ra("loadsofttimeout")}};
g.k.wl=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,L0(this))};
g.k.HR=function(a){a=void 0===a?!1:a;if(!this.uV){PH("att_s","player_att")||TH("att_s",void 0,"player_att");var b=new g.PMa(this.videoData);if("c1a"in b.j&&!g.nP.isInitialized()){TH("att_wb",void 0,"player_att");2===this.JM&&.01>Math.random()&&g.uF(Error("Botguard not available after 2 attempts"));if(a)return;if(5>this.JM){g.Ru(this.XG);this.JM++;return}}if(a=g.QMa(b)){TH("att_f",void 0,"player_att");b=this.Cc();if(b.j){b=b.j;var c;if(!b.ma){c||(c=j0(b,"atr"));c.attestationResponse=a;try{c.send()}catch(d){if("Unknown Error"!==
d.message)throw d;}b.ma=!0}}this.uV=!0}else TH("att_e",void 0,"player_att")}};
g.k.Re=function(a){return this.od.Re(void 0===a?!1:a)};
g.k.Rd=function(){return this.od.Rd()};
g.k.Vc=function(){return this.od?this.od.Vc():0};
g.k.getStreamTimeOffset=function(){return this.od?this.od.getStreamTimeOffset():0};
g.k.Xs=function(){var a=0;this.W.L("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Vc():this.getStreamTimeOffset());return a};
g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&F$a(this.Ck,null==(b=this.videoData.C)?void 0:b.videoInfos)&&(this.W.L("html5_playback_rate_fix")&&(this.playbackRate=a),G0(this));this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.playbackRate};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.B&&(a=this.videoData.B.video.quality,"auto"===a&&this.mediaElement)){var b=ccb(this);b&&0<b.videoHeight&&(a=vCa(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.B&&this.videoData.B.video&&this.videoData.B.video.isHdr())};
g.k.wu=function(){this.Cc().wu()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.Cc();c.j?(c=j0(c.j,"engage"),c.ma=a,c.send(b)):b&&b()};
g.k.ej=function(a){return this.Cc().ej(a)};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;return eT(this.videoData)&&(this.CX||b)?this.od.isAtLiveHead(a):!1};
g.k.Hq=function(){var a=this.Re(),b=this.getCurrentTime(),c;(c=!eT(this.videoData))||(c=this.od,c=!(c.B&&c.B.C));return c||this.Vq()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.Vn=da(25);g.k.Nt=da(46);g.k.qo=function(a){this.Cc().qo(a)};
g.k.mx=function(a){this.Cc().mx(a)};
g.k.rF=function(a){this.Cc().rF(a)};
g.k.PD=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.k.setLoop=function(a){this.loop=a;this.mediaElement&&pS(this.W)&&this.mediaElement.setLoop(a);this.Aa&&this.L("html5_loop_skip_set_end_of_stream")&&(a?this.Aa.policy.Ma=!0:Y8a(this.Aa))};
g.k.Ts=function(){return this.mediaElement&&pS(this.W)?this.mediaElement.Ts():this.loop};
g.k.JQ=function(a){this.qa("timestamp",{o:a.toString()});this.od.JQ(a)};
g.k.Wd=function(a){this.Sb.tick(a)};
g.k.gi=function(a){return this.Sb.gi(a)};
g.k.ou=function(a){this.Sb.ou(a)};
g.k.qa=function(a,b,c){c=void 0===c?!1:c;this.Cc().qa(a,b,c)};
g.k.dB=function(a,b,c){c=void 0===c?!1:c;this.Cc().qa(a,b,c)};
g.k.ze=function(a){this.Cc().ze(a.errorCode,AK(a.details));a=a.errorCode;if(this.videoData.isLivePlayback&&("qoe.longrebuffer"===a||"qoe.slowseek"===a)){a=this.Aa?N6a(this.Aa.videoTrack):{};var b,c;this.qa("lasoe",Object.assign(this.Aa?N6a(this.Aa.audioTrack):{},null==(b=this.Qa)?void 0:null==(c=b.j)?void 0:c.aI()));var d,e;this.qa("lvsoe",Object.assign(a,null==(d=this.Qa)?void 0:null==(e=d.B)?void 0:e.aI()))}};
g.k.qF=function(a,b,c){this.Cc().qF(a,b,c)};
g.k.zH=function(a){this.videoData.oX=!0;this.ze(new BK("sabr.fallback",a));X_(this,!0)};
g.k.BH=function(a){this.videoData.H_=!0;this.ze(new BK("qoe.restart",a));X_(this,!0)};
g.k.getPlayerSize=function(){return this.WF.getPlayerSize()};
g.k.Qh=function(){return this.WF.Qh()};
g.k.Ei=function(){return this.Sb};
g.k.Lq=function(){return this.oe.Lq()};
g.k.getVolume=function(){return this.oe.getVolume()};
g.k.dE=function(){return this.oe.dE()};
g.k.isMuted=function(){return this.oe.isMuted()};
g.k.wz=function(){return this.oe.wz()};
g.k.BD=function(){return this.oe.BD()};
g.k.rD=function(){return this.oe.rD()};
g.k.L=function(a){return this.W.L(a)};
g.k.HM=function(){if(cT(this.videoData,"html5_set_debugging_opt_in")){var a=g.NC();g.OC(0,183)||(yqa(183,!0),a.save())}};
g.k.Ir=function(){var a=this.getCurrentTime(),b=a-this.Vc();var c=this.mediaElement?eL(this.mediaElement.Oh()):0;c=Math.floor(Math.max(c-b,0))+100;var d;if(null==(d=this.Aa)?0:d.JF(b,this.Re()))return this.qa("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var e;return(null==(e=this.Aa)?0:e.Ir(b,c))?(this.qa("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),Jbb(this.od,a),!0):!1};
g.k.Dc=function(){return this.W.Dc()};
g.k.hI=function(){if(this.L("html5_generate_content_po_token")&&this.videoData.videoId)return this.videoData.M6||this.oe.RP(this.videoData.videoId);this.oe.FS();return this.W.rg||""};
g.k.xe=function(){return this.videoData.videoId};
g.k.Fz=function(){return this.oe.Tw};
g.k.vt=function(){return this.oe.vt()};
g.k.tR=function(a,b){this.qa("requestUtcSeek",{time:a});var c;null==(c=this.Aa)||c.tR(a);b&&(this.IB=b)};
g.k.fN=function(){this.IB=0};
g.k.Am=function(a){this.oe.Am(a)};
g.k.mR=function(a,b){var c;null==(c=this.Aa)||c.mR(a,b)};
g.k.UM=function(){var a=this.Iq();return!!a&&a.UM()};
g.k.Gi=function(){return this.ac};
g.k.PF=function(a,b){this.Cc().PF(a,b)};
g.k.HD=function(){return this.Cc().HD()};
g.k.uO=function(){return this.videoData.bV};
g.k.HK=function(a){this.videoData.bV=a};g.w(g.T0,g.I);g.T0.create=function(a,b,c,d){try{var e="string"===typeof a?a:"player"+g.fb(a),f=L3[e];if(f){try{f.dispose()}catch(l){g.tF(l)}L3[e]=null}var h=new g.T0(a,b,c,d);h.addOnDisposeCallback(function(){L3[e]=null;h.Q0&&h.Q0()});
return L3[e]=h}catch(l){throw g.tF(l),(l&&l instanceof Error?l:Error(String(l))).stack;}};
g.k=g.T0.prototype;g.k.Cn=function(){return this.visibility};
g.k.getVisibilityState=function(a,b,c,d,e,f,h){return this.visibility.getVisibilityState(a,b,c,d,e,f,h)};
g.k.hm=function(){this.bP||(this.bP=g.eI(qU(),Zya()));return this.bP};
g.k.Jj=function(){if(this.mediaElement){this.MB&&(this.events.Tc(this.MB),this.MB=null);g.FC(this.Ht);this.xb&&this.xb.Jj(!0);this.template.Jj();try{this.L("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.qK()}catch(a){g.uF(a)}this.mediaElement=null}};
g.k.fd=function(){return this.xb};
g.k.kx=function(){var a=this;this.xb!==this.zb&&(this.logger.debug(function(){var b,c;return"release presenting player, type "+(null==(b=a.xb)?void 0:b.getPlayerType())+", vid "+(null==(c=a.xb)?void 0:c.getVideoData().videoId)}),DY(this,this.zb))};
g.k.lz=function(a,b,c){var d=this,e=this.Sb;2===a&&(e=new sXa(this.W));return new g.I0(this.W,a,e,this.template,function(f,h,l){d.Va.ra(f,h,l)},function(){return d.Va.getVisibilityState()},this.visibility,this,b,c)};
g.k.E9=function(){Z0(this)||(this.logger.debug("application playback ready"),this.Xp(5))};
g.k.K$=function(a){if(!Z0(this)){this.logger.debug("playback ready");Gdb(this);var b=a.getPlayerState();a.hE()?this.pauseVideo():g.CL(b)&&this.playVideo()}};
g.k.canPlayType=function(a){return FK(a)};
g.k.U=function(){return this.W};
g.k.getVideoData=function(){return this.xb.getVideoData()};
g.k.ND=da(19);g.k.Pd=function(){return this.zb.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.bU(this,a);return a?g.OT(a.getVideoData())?1:(a=a.kf())?a.Fv():0:0};
g.k.qb=function(){return this.template};
g.k.Bb=function(){return this.Td};
g.k.Ei=function(){return this.Sb};
g.k.sB=function(a){var b=g.bU(this,1);b&&CY(b,a)};
g.k.Lq=function(){return this.Td.Lq()};
g.k.getVolume=function(){return Math.round(this.Va.getVolume())};
g.k.dE=function(){return this.Va.isFullscreen()};
g.k.isMuted=function(){return this.Va.isMuted()};
g.k.BD=function(){if(this.W.L("html5_enable_embedded_player_visibility_signals")&&g.UR(this.W)&&this.KS){var a=this.KS;a=null==a.j?null:Math.round(100*a.j)/100;if(null!=a)return a}};
g.k.rD=function(){if(this.W.L("html5_enable_embedded_player_visibility_signals")&&g.UR(this.W)){var a=this.template.getPlayerSize();if(0<a.height&&0<a.width){a=[Math.round(a.width),Math.round(a.height)];var b=g.jS();1<b&&a.push(b);return a.join(":")}}};
g.k.wz=function(){if(this.xb===this.zb&&this.Eb)return this.Eb.postId};
g.k.Oba=function(){var a=this;g.yJ(this.W)?g.sS(this.W,g.JT(this.getVideoData())).then(function(b){rU(qU(),b);UTa(a.getVideoData(),a.W,a.hm())}):UTa(this.getVideoData(),this.W,this.hm())};
g.k.TN=function(a){var b=this;return g.H(function(c){return b.UA?c.return(b.UA.TN(a)):c.return(Promise.reject("web po not available"))})};
g.k.FS=function(){this.UA&&this.UA.FS()};
g.k.RP=function(a){return this.UA?this.UA.RP(a):""};
g.k.PR=function(a){this.UA=a};
g.k.jF=function(a){1===a&&(this.Sb.tick("vr"),Acb(this.xb),tXa(this.Sb,this.xb.getVideoData(),Fdb(this)),hYa(this.Td));var b=this.W;(qS(b)&&b.K||g.aS(b))&&(this.Nf()||this.Va.ob("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.xb===this.zb&&this.xb.Ts()!==a&&(this.xb.setLoop(a),this.Va.ob("onLoopChange",a))};
g.k.getLoopVideo=function(){return this.xb.Ts()};
g.k.setLoopRange=function(a){var b=!1;!!this.Eb!==!!a?b=!0:this.Eb&&a&&(b=this.Eb.startTimeMs!==a.startTimeMs||this.Eb.endTimeMs!==a.endTimeMs||this.Eb.postId!==a.postId||this.Eb.type!==a.type);if(b){if(this.xb&&lT(this.getVideoData())){b=(null==a?void 0:a.endTimeMs)||-1;var c;null==(c=g.bU(this))||c.qa("slr",{et:b})}this.zb.Nh.Cf("applooprange");if(a)c=new g.UJ(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.zb.addCueRange(c);else{this.Pd().clipConfig=void 0;var d,e;"repeatChapter"!==
(null==(d=this.Eb)?void 0:d.type)||isNaN(Number(null==(e=this.Eb)?void 0:e.loopCount))||(c={loopCount:String(this.Eb.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.bD("repeatChapterLoopEvent",c))}this.Eb=a;this.Va.ob("onLoopRangeChange",a||void 0);this.xb===this.zb&&(this.CK(),this.xb.Ho())}};
g.k.getLoopRange=function(){return this.Eb};
g.k.CK=function(){if(this.xb&&lT(this.getVideoData())){var a;null==(a=g.bU(this))||a.qa("slrre",{})}this.Eb&&this.xb===this.zb&&(odb(this,this.zb.getCurrentTime())?this.Eb.loopCount=0:sdb(this))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=Tcb(this,a),this.zb.getPlaybackRate()!==a&&(this.zb.setPlaybackRate(a),b&&!this.W.D&&g.IC("yt-player-playback-rate",a),this.Va.Dm("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return kU(this.Td).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai,d=g.NT(this.getVideoData());a=c||d?g.bU(this):g.bU(this,a);if(!a)return 0;if(d&&this.ac)return b=this.ac,a=a.getCurrentTime(),b=O3a(b,a),a-b/1E3;if(b){if(c&&this.Ae&&(b=this.Ae.Za/1E3,0!==b))return b;a=Y0(this,a);return h1(this,a.getCurrentTime(),a)}c&&this.Ae?(b=this.Ae,a=a.getCurrentTime(),a=(b=v3a(b,1E3*a))?a-b.start/
1E3:a):a=a.getCurrentTime();return a};
g.k.Cz=function(){var a=g.bU(this);if(!a)return 0;a=Y0(this,a);return h1(this,a.Cz(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai,e=g.NT(c);var f=d||e?g.bU(this):g.bU(this,a);if(!f)return 0;if(c.hasProgressBarBoundaries()&&!d&&!e){var h,l=Number(null==(h=c.progressBarStartPosition)?void 0:h.utcTimeMillis),m;c=Number(null==(m=c.progressBarEndPosition)?void 0:m.utcTimeMillis);if(!isNaN(l)&&!isNaN(c))return(c-l)/1E3}if(e&&this.ac)return this.L("html5_ssap_get_current_time_refactor")?(b=this.ac,d=1E3*b.oa.getCurrentTime(),
b=(b=N3a(b,d))?(b.dj()-b.zf())/1E3:0):b=P3a(this.ac,f.getCurrentTime()),1===a&&0===b?f.getDuration():b;if(b)return f=X0(this,f),h1(this,f.getDuration(),f);d&&this.Ae?(a=this.Ae,f=f.getCurrentTime(),f=(f=NY(a,1E3*f))?f.durationMs/1E3:0):f=f.getDuration();return f};
g.k.jf=function(a){var b=g.bU(this,a);return b?this.Nf(b)?(b=X0(this,b),b.jf()-b.getCurrentTime()+this.getCurrentTime(a)):b.jf():0};
g.k.addPlayerResponseForAssociation=function(a){this.ac&&this.ac.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.ac?this.ac.finishSegmentByCpn(a,b):[]};
g.k.zN=function(){this.template.zN();var a=this.Va;a.state.element=this.template.element;var b=a.state.element,c;for(c in a.state.B)a.state.B.hasOwnProperty(c)&&(b[c]=a.state.B[c]);(a=dqa(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.iaa)};
g.k.getDebugText=function(a){var b=this.zb.qc(a);if(this.xb&&this.xb!==this.zb){for(var c=this.xb.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=wf(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.Af("video-ads");f?(Mdb(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.Af("videoAdUiSkipContainer"),l=g.Af("ytp-ad-skip-button-container"),m=h||l;m?(Mdb(m,f),f.ima=h?1:0,f.bulleit=l?1:0):f.missing=1;
d=JSON.stringify({player:d,videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(0===+this.mediaElement.getSize().area()),b.op=this.mediaElement.MD("opacity"),c=this.mediaElement.Vs().y+this.mediaElement.getSize().height,b.yof=""+(0>=+c),b.dis=this.mediaElement.MD("display"));a&&((a=(0,g.e0)())&&(b.gpu=a),(a=this.W.playerStyle)&&(b.ps=a),this.W.fb&&(b.webview=1));b.debug_playbackQuality=this.Va.getPlaybackQuality(1);b.debug_date=(new Date).toString();b.origin=window.origin;
b.timestamp=Date.now();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.U().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20240305_00_RC00"},b=this.Xb().Tg;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(Z0(this))return 3;var b;if(a&&(null==(b=this.Ae)?0:u3a(b,this.getCurrentTime())))return 2;var c;return g.NT(this.getVideoData())&&(null==(c=this.ac)?0:R3a(c))?2:g.bU(this).getPlayerType()};
g.k.Yz=function(){return g.NT(this.getVideoData())&&this.ac?this.ac.Yz():!1};
g.k.Xb=function(a){return 3===this.getPresentingPlayerType()?kU(this.Td).Le:g.bU(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.MJ=function(a){switch(a.type){case "loadedmetadata":this.xK.start();a=g.u(this.jB);for(var b=a.next();!b.done;b=a.next())b=b.value,Ddb(this,b.id,b.Cda,b.Bda,void 0,!1);this.jB=[];break;case "loadstart":this.Sb.ou("gv");break;case "progress":case "timeupdate":2<=eL(a.target.Oh())&&this.Sb.ou("l2s");break;case "playing":g.nS&&this.xK.start();if(g.yJ(this.W))a=!1;else{b=g.mU(this.Bb());a="none"===this.mediaElement.MD("display")||0===this.mediaElement.getSize().area();var c=mZ(this.template),d=this.xb.getVideoData(),
e=g.$G(this.W);d=mT(d);b=!c||b||e||d||this.W.Nb;a=a&&!b}a&&(this.xb.qa("hidden",{},!0),this.getVideoData().Vb||(this.getVideoData().Vb=1,this.xZ(),this.xb.playVideo()))}};
g.k.onLoadProgress=function(a,b){this.Va.zc("onLoadProgress",b)};
g.k.Haa=function(){this.Va.ra("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=Y0(this,a);b=h1(this,a.getCurrentTime(),a);this.Va.zc("onVideoProgress",b)};
g.k.onAutoplayBlocked=function(){this.Va.zc("onAutoplayBlocked")};
g.k.U$=function(){this.Va.ra("progresssync")};
g.k.J$=function(){this.Va.zc("onPlaybackPauseAtStart")};
g.k.G9=function(a){if(1===this.getPresentingPlayerType()){g.LG(a,1)&&!g.JG(a.state,64)&&this.Pd().isLivePlayback&&this.zb.isAtLiveHead()&&1<this.Va.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.LG(a,2)){if(this.Eb&&this.Eb.endTimeMs>=1E3*(this.getDuration()-1)){sdb(this);return}fdb(this)}if(g.JG(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.Tg;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Va.Dm("onError",iUa(b.errorCode));this.Va.zc("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.JN,cpn:b.cpn});6048E5<(0,g.pD)()-this.W.Zf&&this.Va.zc("onReloadRequired")}b={};if(a.state.isPlaying()&&!g.DL(a.state)&&!PH("pbresume","ad_to_video")&&PH("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.QH(b,"ad_to_video");SH("pbresume",void 0,"ad_to_video");hYa(this.Td)}this.Va.ra("applicationplayerstatechange",a)}};
g.k.OZ=function(a){3!==this.getPresentingPlayerType()&&this.Va.ra("presentingplayerstatechange",a)};
g.k.Ak=function(a){W0(this,EL(a.state));g.JG(a.state,1024)&&this.Va.isMutedByMutedAutoplay()&&(f1(this,{muted:!1,volume:this.Si.volume},!1),g1(this,!1))};
g.k.C9=function(a,b,c){"newdata"===a&&Vcb(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.GE=function(){this.Va.zc("onPlaybackAudioChange",this.Va.getAudioTrack().uc.name)};
g.k.UE=function(a){var b=this.xb.getVideoData();a===b&&this.Va.Dm("onPlaybackQualityChange",a.B.video.quality)};
g.k.onVideoDataChange=function(a,b,c){this.logger.debug(function(){return"on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId});
this.W.Dc()&&b.qa("vdc",{type:a,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});b===this.zb&&(this.W.fk=c.oauthToken);if(b===this.zb){this.getVideoData().enableServerStitchedDai&&!this.Ae?this.Ae=new g.IY(this.Va,this.W,this.zb):!this.getVideoData().enableServerStitchedDai&&this.Ae&&(this.Ae.dispose(),this.Ae=null);if(this.W.Dc()&&g.NT(c)){var d,e;b.qa("ssap",{vdctype:a,vid:c.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:(null==(d=this.Rp.j)?void 0:null==(e=d.getVideoData())?
void 0:e.clientPlaybackNonce)||""})}var f,h;!g.NT(this.getVideoData())||"newdata"!==a&&"dataloaded"!==a||this.getVideoData().clientPlaybackNonce===(null==(f=this.Rp.j)?void 0:null==(h=f.getVideoData())?void 0:h.clientPlaybackNonce)?!g.NT(this.getVideoData())&&this.ac&&(this.W.Dc()&&b.qa("ssap",{tlmdis:2,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""}),this.ac.dispose(),this.ac=null):(f3a(this.Rp),d=HY(this.Rp,1,0,1E3*this.getDuration(1),this.getVideoData()),e3a(this.Rp,d),FY(this.Rp,0,1E3*this.getDuration(1),
[d]),g3a(this.Rp,this.getVideoData().clientPlaybackNonce,[d]),this.ac&&(this.ac.dispose(),this.ac=null,this.W.Dc()&&b.qa("ssap",{tlmdis:1})),this.W.Dc()&&b.qa("ssap",{tlmcreate:1}),this.ac=new L3a(this.Va,this.Rp,this.zb),this.zb.IK(this.ac))}if("newdata"===a)this.logger.debug("new video data, destroy modules"),cW(this.Td,2),this.Va.ra("videoplayerreset",b);else{if(!this.mediaElement)return;"dataloaded"===a&&(this.xb===this.zb?($Qa(c.Ha,c.US),kdb(this)):idb(this));1===b.getPlayerType()&&(this.W.Xa&&
Ldb(this),this.getVideoData().isLivePlayback&&!this.W.wr&&this.Mg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&((pTa(c)||this.getVideoData().Gx)&&this.Va.ra("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&wdb(this)));this.Va.ra("videodatachange",a,c,b.getPlayerType())}this.Va.zc("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.CK();(d=c.GF)?this.Sq.eW(d,c.clientPlaybackNonce):C4a(this.Sq)};
g.k.lH=function(){a1(this,null);this.Va.zc("onPlaylistUpdate")};
g.k.T$=function(a){delete this.jK[a.getId()];this.zb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=(null==(b=a.Ra)?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.Ra)?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.U(c,g.hT),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.U(a,g.hT))&&this.Va.ob("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
g.k.Xp=function(a){var b=this;a!==this.appState&&(this.logger.debug(function(){return"app state change "+b.appState+" -> "+a}),2===a&&1===this.getPresentingPlayerType()&&(W0(this,-1),W0(this,5)),this.appState=a,this.Va.ra("appstatechange",a))};
g.k.Mg=function(a,b,c,d,e){this.zb.Bg(a,b,c,d,e)};
g.k.Hr=function(a,b){this.zb.handleError(new BK(a,b))};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.bU(this,a);if(!c)return!1;a=X0(this,c);c=Y0(this,c);return a!==c?a.isAtLiveHead(h1(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Hq=function(){var a=g.bU(this);return a?X0(this,a).Hq():0};
g.k.seekTo=function(a,b,c,d,e){b=!1!==b;if(d=g.bU(this,d))2===this.appState&&d1(this),this.Nf(d)?i1(this)?this.Ae.seekTo(a,{seekSource:e},b,c):this.pd.seekTo(a,{seekSource:e},b,c):g.NT(this.getVideoData())&&this.ac?this.ac.seekTo(a,{oG:!b,zS:c,Ed:"application",seekSource:e}):d.seekTo(a,{oG:!b,zS:c,Ed:"application",seekSource:e})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.LA=function(){this.Va.zc("SEEK_COMPLETE")};
g.k.waa=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.JG(a.getPlayerState(),512)||d1(this):this.Va.zc("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Va.ra("airplayactivechange");this.W.L("html5_external_airplay_events")&&this.Va.zc("onAirPlayActiveChange",this.Va.Sh())};
g.k.onAirPlayAvailabilityChange=function(){this.Va.ra("airplayavailabilitychange");this.W.L("html5_external_airplay_events")&&this.Va.zc("onAirPlayAvailabilityChange",this.Va.cE())};
g.k.showAirplayPicker=function(){var a;null==(a=this.xb)||a.Zt()};
g.k.fQ=function(){this.Va.ra("beginseeking")};
g.k.lQ=function(){this.Va.ra("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.bU(this,a))?X0(this,a).getVideoData().getStoryboardFormat():null};
g.k.ek=function(a){return(a=g.bU(this,a))?X0(this,a).getVideoData().ek():null};
g.k.Nf=function(a){a=a||this.xb;var b=!1;if(a){a=a.getVideoData();if(i1(this))a=a===this.Ae.oa.getVideoData();else a:if(b=this.pd,a===b.j.getVideoData()&&b.B.length)a=!0;else{b=g.u(b.B);for(var c=b.next();!c.done;c=b.next())if(a.yd===c.value.yd){a=!0;break a}a=!1}b=a}return b};
g.k.IC=function(a,b,c,d,e,f,h){this.logger.debug(function(){return"Adding video to timeline id="+a.video_id+"\n        lengthMs="+d+" enterTimeMs="+e});
var l="",m=i1(this),n;null==(n=g.bU(this))||n.qa("appattl",{sstm:this.Ae?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:m});l=m?r3a(this.Ae,a,b,c,d,e,f,h):d4a(this.pd,a,c,d,e,f);this.logger.debug(function(){return"Video added to timeline id="+a.video_id+" timelinePlaybackId="+l});
return l};
g.k.ZD=function(a,b,c,d,e,f,h){if(i1(this)){var l=r3a(this.Ae,a,b,c,d,e,f,h);this.logger.debug(function(){return"Remaining video added to timeline id="+a.video_id+" timelinePlaybackId="+l})}return""};
g.k.Pt=function(a){var b;null==(b=this.Ae)||b.Pt(a)};
g.k.Ty=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;i1(this)||m4a(this.pd,a,b)};
g.k.qG=function(a,b,c){if(i1(this)){var d=this.Ae,e=d.Lc.get(a);e?(void 0===c&&(c=e.ge),e.durationMs=b,e.ge=c):d.tE("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.pd;e=null;for(var f=g.u(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.yd===a){e=h;break}e?(void 0===c&&(c=e.ge),l4a(d,e,b,c)):aZ(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Nf();a=new g.XS(this.W,a);d&&(a.yd=d);xdb(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.fd();a&&b&&(this.L("html5_check_queue_on_data_loaded")?this.U().supportsGaplessShorts()&&b.getVideoData().Y&&(c=this.lL,d=this.Jm.N,c.C!==a&&(c.xb=b,c.C=a,c.B=1,c.j=a.getVideoData(),c.D=d,c.j.isLoaded()?c.G():c.j.subscribe("dataloaded",c.G,c))):(c=H2a(b,a,this.Jm.N),null!=c?(b.qa("sgap",c),b.getVideoData().Y&&vcb(b,!1)):(a=a.getVideoData(),b=this.lL,
b.j!==a&&(b.j=a,b.B=1,a.isLoaded()?b.K():b.j.subscribe("dataloaded",b.K,b)))))};
g.k.HH=function(a,b,c,d){var e=this;c=void 0===c?0:c;d=void 0===d?0:d;var f=g.bU(this);f&&(X0(this,f).X0=!0);W2a(this.Jm,a,b,c,d).then(function(){e.Va.zc("onQueuedVideoLoaded")},function(){})};
g.k.dw=function(){return this.Jm.dw()};
g.k.clearQueue=function(){this.logger.debug("Clearing queue");this.Jm.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;if(2===b&&this.Pd().enableServerStitchedDai&&this.zb&&!I_(this.zb)){var f;null==(f=this.zb)||f.qa("lvonss",{vid:(null==a?void 0:a.videoId)||"",ptype:b});return!1}var h=!1;f=new g.XS(this.W,a);g.mS(this.W)&&!f.bl&&NV(this.Sb);var l,m=this.Sb,n=null!=(l=f.Na)?l:"";m.timerName=n;this.Sb.gi("pl_i");this.L("web_player_early_cpn")&&f.clientPlaybackNonce&&this.Sb.infoGel({clientPlaybackNonce:f.clientPlaybackNonce});if(this.U().supportsGaplessShorts()&&
!this.L("html5_shorts_gapless_always_fallback")){l=Z2a(this.Jm,f,b);if(null==l){W0(this,-1);a=this.Jm;a.app.U().L("html5_gapless_new_slr")?qdb(a.app,"gaplessshortslooprange"):a.app.setLoopRange(null);a.app.getVideoData().YB=!0;var p,q;null==(p=a.j)||null==(q=p.Aa)||q.resume();var r;null==(r=a.j)||ZY(r.Cc());p={Ed:"gapless_to_next_video",seekSource:60};var t;null==(t=a.app.fd())||t.seekTo(Y2a(a),p);if(!a.app.Xb(b).isPlaying()){var v;null==(v=g.bU(a.app))||v.playVideo(!0)}a.K();return!0}this.Jm.clearQueue();
var x;null==(x=g.bU(this))||x.qa("sgap",{f:l})}if(e){for(;f.ym.length&&f.ym[0].isExpired();)f.ym.shift();t=f.ym.length-1;h=0<t&&e.B(f.ym[t])&&e.B(f.ym[t-1]);f.ym.push(e)}c||(a&&xXa(a)?(iS(this.W)&&!this.Bi&&(a.fetch=0),a1(this,a)):this.playlist&&a1(this,null),a&&(this.Bi=lC(!1,a.external_list)),iS(this.W)&&!this.Bi&&b1(this));this.Va.ra("loadvideo");t=this.Ft(f,b,d);h&&this.Mg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+f.ym.join()).replace(/[;:,]/g,"_"));return t};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;d=void 0===d?"":d;e=void 0===e?"":e;var f="";if(this.W.L("html5_autonav_autoplay_in_preload_key"))f=Adb(this,b,a,e);else{var h=pC(a);f=k1(this,b,h,e)}if(this.VA.get(f))return this.logger.debug(function(){return"already preloaded "+f}),null;
a=new g.XS(this.W,a);e&&(a.yd=e);return zdb(this,a,b,c,d)};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Td;a=a.J.U().showMiniplayerUiWhenMinimized?a.Me.get("miniplayer"):void 0;a&&(this.xg()?a.load():a.unload());this.Va.ra("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Td;a=a.J.U().showInlinePreviewUi?a.Me.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Va.ob("onInlinePreviewModeChange"))};
g.k.rB=function(a){var b=this.W.L("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.W.Lm&&this.W.L("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.RN&&b?this.RN.start():this.LV():this.visibility.rB(a)};
g.k.setSqueezeback=function(a){this.visibility.setSqueezeback(a)};
g.k.LV=function(){var a,b=null==(a=this.mediaElement)?void 0:a.Kb();b&&wC(b).catch(function(c){return g.uF(c)})};
g.k.taa=function(){this.mediaElement.Kb();"picture-in-picture"===this.mediaElement.Kb().webkitPresentationMode?this.rB(!0):this.rB(!1)};
g.k.togglePictureInPicture=function(){var a=g.bU(this);a&&a.togglePictureInPicture()};
g.k.Ft=function(a,b,c){b=void 0===b?1:b;this.logger.debug(function(){return"start load video, id "+a.videoId+", type "+b});
PH("_start",this.Sb.timerName)||g.xB(AH)(void 0,this.Sb.timerName);var d=!1,e=ndb(this,b,a,!1);e?(d=!0,a.dispose()):(e=hdb(this,b,a,c),(this.L("html5_onesie")||this.L("html5_load_before_stop"))&&J0(e)&&g.BY(e),this.xK.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),DY(this,e));e===this.zb&&(this.W.fk=a.oauthToken);if(!J0(e))return!1;if(e===this.zb){this.Xp(1);c=d1(this);if(d&&this.L("html5_player_preload_ad_fix")&&1===e.getPlayerType()&&e.Qp.j)this.onVideoDataChange("dataloaded",
e,e.getVideoData());return c}icb(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(this.Pd().enableServerStitchedDai&&this.zb&&!I_(this.zb)&&a&&0<Object.keys(a).length){var d;null==(d=this.zb)||d.qa("qvonss",{vid:(null==a?void 0:a.videoId)||"",ptype:b})}else if(a&&xXa(a))if(this.Zv=!0,a1(this,a),(a=g.OV(this.playlist))&&a.Ke())m1(this,a,b);else this.playlist.onReady(function(){c1(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.lH();d=new g.XS(this.W,a);var e=g.UR(this.W)&&!this.W.ma&&1===b&&!d.isAd()&&!d.Bd;this.Va.ra("cuevideo");e?(this.fd().getVideoData().loading=!0,EXa(d,a?a:{}).then(function(f){m1(c,f,b)}),d.dispose()):m1(this,d,b)}};
g.k.Ko=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(WR(this.W)||g.wJ(this.W))return b=b||{},b.lact=JE(),b.vis=this.Va.getVisibilityState(),this.Va.ob("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;vXa(this.Sb);this.Sb.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.Zv=!0;Bdb(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Zv=!1;Bdb(this,a,b,c,d)};
g.k.vD=function(){if(this.Va.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;iS(this.W)&&!this.Bi&&b1(this);return!(!this.playlist||!this.playlist.Vk())};
g.k.Os=da(15);
g.k.nextVideo=function(a,b){var c=g.iT(this.zb.getVideoData());g.pU(this.Va)&&c?this.Ko(c.videoId,b?c.hD:c.sessionData,c.playlistId,b,void 0,c.zV||void 0):this.Bi?this.Va.zc("onPlaylistNext"):3===this.getPresentingPlayerType()?kU(this.Td).nextVideo():this.playlist&&(iS(this.W)&&!this.Va.isFullscreen()?vdb(this,"yt.www.watch.lists.next"):(this.playlist.Vk(a)&&AXa(this.playlist,yXa(this.playlist)),this.playlist.loaded?(a=b&&this.W.L("html5_player_autonav_logging"),b&&this.Va.ra("playlistautonextvideo"),this.Ft(g.OV(this.playlist,
void 0,b,a),1)):this.Zv=!1))};
g.k.previousVideo=function(a){this.Bi?this.Va.zc("onPlaylistPrevious"):3===this.getPresentingPlayerType()?kU(this.Td).gK():this.playlist&&(iS(this.W)&&!this.Va.isFullscreen()?vdb(this,"yt.www.watch.lists.prev"):(this.playlist.Cp(a)&&AXa(this.playlist,zXa(this.playlist)),this.playlist.loaded?this.Ft(g.OV(this.playlist),1):this.Zv=!1))};
g.k.playVideoAt=function(a){this.Bi?this.Va.zc("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Ft(g.OV(this.playlist,a),1):this.Zv=!1,AXa(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.GD=da(23);g.k.A9=function(a){this.Va.zc("onCueRangeEnter",a.getId())};
g.k.B9=function(a){this.Va.zc("onCueRangeExit",a.getId())};
g.k.Ly=function(a,b,c){var d=g.bU(this,b);if(d){var e=this.Pd();if(g.NT(e)){if(1===b&&this.ac)for(var f=UY(this.ac,e.clientPlaybackNonce),h=g.u(a),l=h.next();!l.done;l=h.next())l=l.value,l.start+=f,l.end+=f,l.al=f,l.C=e.clientPlaybackNonce;e=g.u(a);for(f=e.next();!f.done;f=e.next())h=void 0,f.value.playerType=null!=(h=b)?h:1}d.Ly(a,c);b&&this.getPresentingPlayerType()!==b||V0(this,"cuerangesadded",a)}};
g.k.uF=function(a,b){var c=g.bU(this,b);c&&(c.uF(a),b&&this.getPresentingPlayerType()!==b||V0(this,"cuerangesremoved",a))};
g.k.mG=function(){var a=(this.fd()||this.zb).Nh;a&&a.mG(this.getPresentingPlayerType())};
g.k.F9=function(){function a(){var d=g.qF(b.screenLayer||(b.xg()?3:0));if(d&&"UNDEFINED_CSN"!==d){var e=b.W.L("web_player_attach_player_response_ve"),f=b.W.L("web_playback_associated_ve");if(b.W.L("il_via_jspb")){var h=new RA;var l=b.getVideoData().clientPlaybackNonce;l=Q(h,1,l);Q(l,3,d);b.getVideoData().va&&(e||f)&&(e=g.oF(b.getVideoData().va),g.HF(d,e),f&&(d=e.getAsJspb(),Sj(h,tA,2,d)));if(b.getVideoData().queueInfo){d=b.getVideoData().queueInfo;f=new QA;if(null==d?0:d.enqueueingVe)(null==d?0:d.enqueueingVe.trackingParams)?
(e=g.oF(d.enqueueingVe.trackingParams),e=e.getAsJspb(),Sj(f,tA,1,e)):g.uF(new g.QC("Cannot map enqueueingVe from a client VE "));(null==d?0:d.enqueueingCsn)&&Q(f,2,d.enqueueingCsn);(null==d?0:d.clientEnqueueingTimeMs)&&xk(f,3,Number(d.clientEnqueueingTimeMs));Sj(h,QA,4,f)}d={};b.L("web_playback_associated_log_ctt")&&b.getVideoData().G&&(d.cttAuthInfo={token:b.getVideoData().G,videoId:b.getVideoData().videoId});gva(h,d)}else h={cpn:b.getVideoData().clientPlaybackNonce,csn:d},b.getVideoData().va&&(e||
f)&&(e=g.oF(b.getVideoData().va),g.HF(d,e),f&&(h.playbackVe=e.getAsJson())),b.getVideoData().queueInfo&&(h.queueInfo=b.getVideoData().queueInfo),d={},b.L("web_playback_associated_log_ctt")&&b.getVideoData().G&&(d.cttAuthInfo={token:b.getVideoData().G,videoId:b.getVideoData().videoId}),g.bD("playbackAssociated",h,d)}else g.uF(new g.QC("CSN Missing or undefined during playback association"))}
var b=this;this.getPresentingPlayerType();tXa(this.Sb,this.xb.getVideoData(),Fdb(this));$0(this)&&this.W.D&&"embedded"===FT(this.Pd())&&this.HY&&.01>Math.random()&&g.bD("autoplayTriggered",{intentional:this.dY});this.HY=!1;hYa(this.Td);this.L("web_player_defer_ad")&&jdb(this);this.Va.zc("onPlaybackStartExternal");(this.W.L("mweb_client_log_screen_associated"),fS(this.W))||a();var c={};this.getVideoData().G&&(c.cttAuthInfo={token:this.getVideoData().G,videoId:this.getVideoData().videoId});c.sampleRate=
20;RH("player_att",c);if(this.getVideoData().botguardData||this.L("fetch_att_independently"))g.kS(this.W)||"MWEB"===g.yR(this.W)?g.VC(g.XC(),function(){e1(b)}):e1(this);
this.CK();rdb(this)};
g.k.sQ=function(){this.Va.ra("internalAbandon");j1(this)};
g.k.onApiChange=function(){this.W.K&&this.xb?this.Va.Dm("onApiChange",this.xb.getPlayerType()):this.Va.Dm("onApiChange")};
g.k.v$=function(){var a=this.mediaElement;a={volume:g.He(Math.floor(100*a.getVolume()),0,100),muted:a.eI()};a.muted||g1(this,!1);this.Si=g.pd(a);this.Va.zc("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.UP)&&(this.UP=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.UP}),this.Va.zc("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=Hdb(this);this.Fm(a?1:0);Jdb(this,!!a)};
g.k.Fm=function(a){var b=!!a,c=!!this.zz()!==b;this.visibility.Fm(a);this.template.Fm(b);this.L("html5_media_fullscreen")&&!b&&this.mediaElement&&Hdb(this)===this.mediaElement.Kb()&&this.mediaElement.jD();this.template.resize();c&&this.Sb.tick("fsc");c&&(this.Va.ra("fullscreentoggled",b),a=this.Pd(),b={fullscreen:b,videoId:a.jM||a.videoId,time:this.getCurrentTime()},this.Va.getPlaylistId()&&(b.listId=this.Va.getPlaylistId()),this.Va.zc("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.zz=function(){return this.visibility.zz()};
g.k.iaa=function(){this.xb&&(0!==this.zz()&&1!==this.zz()||this.Fm(Hdb(this)?1:0),this.W.Lm&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.jD())};
g.k.n$=function(a){3!==this.getPresentingPlayerType()&&this.Va.ra("liveviewshift",a)};
g.k.playVideo=function(a){this.logger.debug(function(){return"play video, player type "+a});
var b=g.bU(this,a);b&&(2===this.appState?(g.mS(this.W)&&NV(this.Sb),d1(this)):g.JG(b.getPlayerState(),2)?(this.seekTo(0),this.W.Dc()&&b.qa("szro",{})):b.playVideo())};
g.k.pauseVideo=function(a,b){(a=g.bU(this,a))&&a.pauseVideo(b)};
g.k.stopVideo=function(a){a=void 0===a?!1:a;this.logger.debug(function(){return"stop video"});
var b=this.zb.getVideoData(),c=new g.XS(this.W,{video_id:b.jM||b.videoId,oauth_token:b.oauthToken});c.Z=g.pd(b.Z);var d;!a||null!=(d=this.webPlayerContextConfig)&&d.disableStaleness||(c.IU=!0);this.cancelPlayback(6);m1(this,c,1)};
g.k.cancelPlayback=function(a,b){var c=this;this.logger.debug(function(){return"start cancel playback, type "+b});
var d=g.bU(this,b);d?2===b&&1===d.getPlayerType()&&(FTa(this.Pd())||g.NT(this.getVideoData()))?d.qa("canclpb",{r:"no_adpb_ssdai"}):(this.W.Dc()&&d.qa("canclpb",{r:a}),1===this.appState||2===this.appState?this.logger.debug(function(){return"cancel playback end, app not started, state "+c.appState}):(d===this.xb&&(this.logger.debug("cancel playback, destroy modules"),cW(this.Td,a)),1===b&&(d.stopVideo(),j1(this)),d.uo(void 0,6!==a),V0(this,"cuerangesremoved",d.fm()),d.Nh.reset(),this.Jm&&d.isGapless()&&
(d.Jj(!0),d.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.bU(this,b))&&iRa(this.W,a)?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.ej=function(a){var b=g.bU(this);return b&&iRa(this.W,a)?b.ej(a):null};
g.k.updatePlaylist=function(){iS(this.W)?b1(this):g.UR(this.W)&&ldb(this);this.Va.zc("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.f0=a;this.pP=b;this.Va.ra("sizestylechange",a,b);this.template.resize()};
g.k.hw=function(){return this.pP};
g.k.xg=function(){return this.visibility.xg()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.ut=function(){return this.visibility.ut()};
g.k.Wz=function(){return this.visibility.Wz()};
g.k.bA=function(){return this.visibility.bA()};
g.k.nP=function(){return this.f0};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return kU(this.Td).getAdState();if(!this.Nf()){var a=dW(this.Bb());if(a)return a.getAdState()}return-1};
g.k.haa=function(a){var b=this.template.getVideoContentRect();is(this.uY,b)||(this.uY=b,this.xb&&O0(this.xb),this.zb&&this.zb!==this.xb&&O0(this.zb),1===this.zz()&&this.XE&&Jdb(this,!0));this.xP&&g.Re(this.xP,a)||(this.Va.ra("appresize",a),this.xP=a)};
g.k.Uh=function(){return this.Va.Uh()};
g.k.Caa=function(){2===this.getPresentingPlayerType()&&this.pd.isManifestless()?k4a(this.pd):(this.Ae&&(x3a(this.Ae),j1(this)),edb(this,"signature"))};
g.k.xZ=function(){this.Jj();U0(this)};
g.k.B$=function(a){"manifest.net.badstatus"===a.errorCode&&a.details.rc===(this.W.experiments.kb("html5_use_network_error_code_enums")?401:"401")&&this.Va.ob("onPlayerRequestAuthFailed")};
g.k.IE=function(){this.Va.zc("CONNECTION_ISSUE")};
g.k.LE=function(a){this.Va.ra("heartbeatparams",a)};
g.k.tK=function(a){this.Va.ob("onAutonavChangeRequest",1!==a)};
g.k.kf=function(){return this.mediaElement};
g.k.setBlackout=function(a){this.W.Nb!==a&&(this.W.Nb=a,this.xb&&(this.xb.Ho(),this.W.Xa&&Ldb(this),this.xb.qo(a)))};
g.k.D$=function(){var a=g.bU(this);if(a){var b=!this.Va.gE();(a.CX=b)||a.uw.stop();a.videoData.j&&(b?a.videoData.j.resume():RPa(a.videoData.j));a.Aa&&(b?a.Aa.resume():Q0(a,!0));g.JG(a.playerState,2)||b?g.JG(a.playerState,512)&&b&&a.Gc(AL(a.playerState,512)):a.Gc(zL(a.playerState,512));a=a.Cc();a.qoe&&(a=a.qoe,g.b0(a,g.dN(a.provider),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Va.zc("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Va.zc("onDrmOutputRestricted")};
g.k.HM=function(){ilb=this.L("html5_use_async_stopVideo");jlb=this.L("html5_pause_for_async_stopVideo");hlb=this.L("html5_not_reset_media_source");TCa=this.L("html5_rebase_video_to_ad_timeline");oL=this.L("html5_not_reset_media_source");glb=this.L("html5_not_reset_media_source");ECa=this.L("html5_retain_source_buffer_appends_for_debugging");this.L("html5_mediastream_applies_timestamp_offset")&&($Z=!0);this.L("html5_support_managed_media_source")&&(mL=rCa=!0);COa=this.L("html5_prefer_slice_length");
var a=g.lJ(this.W.experiments,"html5_cobalt_override_quic");a&&sY("QUIC",+(0<a));this.L("html5_cobalt_enable_min_processor_cnt_to_offload_algo")&&sY("MediaSource.MinimumProcessorCountToOffloadAlgorithm",g.lJ(this.W.experiments,"html5_cobalt_min_processor_cnt_to_offload_algo"));(a=this.L("html5_cobalt_async_redn"))&&sY("MediaSource.EnableAsynchronousReduction",+a);if(a=g.lJ(this.W.experiments,"html5_cobalt_max_size_for_immed_job"))sY("MediaSource.MaxSizeForImmediateJob",a),sY("MediaSource.MinSizeForImmediateJob",
a);(a=this.L("html5_cobalt_enable_fetch_buffer_pool"))&&sY("XHR.EnableFetchBufferPool",+a);(a=g.lJ(this.W.experiments,"html5_cobalt_default_buffer_size_in_bytes"))&&sY("XHR.DefaultFetchBufferSize",a);(a=this.L("html5_cobalt_enable_try_lock_for_progress_check"))&&sY("XHR.EnableTryLockForProgressCheck",+a);(a=g.lJ(this.W.experiments,"html5_max_source_buffer_append_size_in_bytes"))&&sY("MediaSource.MaxSourceBufferAppendSizeInBytes",a);this.L("html5_enable_drc_toggle_api")&&(JU=!0);(a=this.L("html5_cobalt_enable_avoid_copying_array_buffer"))&&
sY("MediaSource.EnableAvoidCopyingArrayBuffer",+a);Error.stackTraceLimit=25;var b=g.lJ(this.W.experiments,"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}});
vQa(this.W.G);oY=this.L("html5_use_ump_request_slicer");tUa=this.L("html5_record_now");this.L("html5_disable_streaming_xhr")&&(zR=!1);this.L("html5_log_request_identifier_on_format_change")&&(Olb=!0)};
g.k.oA=function(){this.dY=!0};
g.k.xa=function(){this.Td.dispose();this.L6.dispose();this.pd.dispose();this.Ae&&this.Ae.dispose();this.Rp.Tf();this.Rp.dispose();this.ac&&this.ac.dispose();this.zb.dispose();this.Jj();g.xb(g.gd(this.Tr),this.playlist);g.I.prototype.xa.call(this)};
g.k.L=function(a){return this.W.L(a)};
g.k.setScreenLayer=function(a){this.screenLayer=a};
g.k.getInternalApi=function(){return this.Va.getInternalApi()};
g.k.createSubtitlesModuleIfNeeded=function(){return this.Td.createSubtitlesModuleIfNeeded()};
g.k.isOrchestrationLeader=function(){var a=fW(this.Td);return a?a.isOrchestrationLeader():!1};
g.k.getVideoUrl=function(a,b,c,d,e){if(this.Eb&&this.Eb.postId)return a=this.W.getVideoUrl(a),a=Hn(a,"v"),a.replace("/watch","/clip/"+this.Eb.postId);var f=this.Va.kd()||"shortspage"===this.W.Ma;return this.W.getVideoUrl(a,b,c,d,e,f)};
g.k.vt=function(){return this.Jm.vt()};
g.k.Am=function(a){this.Va.ra("spsumpstatuschange",a)};
g.k.EE=function(){for(var a=g.u(Object.values(this.Tr)),b=a.next();!b.done;b=a.next())b=b.value,b.isDisposed()||b.EE();if(this.L("html5_sabr_fetch_on_idle_network_preloaded_players"))for(a=g.u(p4a(this.VA)),b=a.next();!b.done;b=a.next())b=b.value,b.isDisposed()||b.EE();this.zb.EE()};
g.k.eS=function(){return this.Ae?this.Ae.eS():!1};
var L3={};var Zdb=/[&\?]action_proxy=1/,Ydb=/[&\?]token=([\w-]*)/,$db=/[&\?]video_id=([\w-]*)/,aeb=/[&\?]index=([\d-]*)/,beb=/[&\?]m_pos_ms=([\d-]*)/,deb=/[&\?]vvt=([\w-]*)/,Qdb="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(" "),ceb="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(" "),Tdb={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"},Udb={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Wdb={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};p1.prototype.lA=function(a){this.player.Ei().tick(a)};
p1.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return this.B(a,b);var d=1===this.j;d&&this.lA("a_bid_s");var e=Odb();if(null!==e)return d&&this.lA("a_bid_f"),this.B(a,b,e);e=Pdb();d&&vg(e,function(){c.lA("a_bid_f")});
return e.then(function(f){return c.B(a,b,f)})};
p1.prototype.B=function(a,b,c){var d=this,e=void 0===b?{}:b;b=e.tv;var f=e.ue,h=e.cueProcessedMs;c=void 0===c?"":c;var l=this.player.getVideoData(1);e=this.player.U().jk;var m={AD_BLOCK:this.j++,AD_BREAK_LENGTH:b?b.yh:0,AUTONAV_STATE:o1(this.player.U()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*this.player.Hq(),LACT:JE(),LIVE_INDEX:b?this.C++:1,LIVE_TARGETING_CONTEXT:b&&b.context?b.context:"",MIDROLL_POS:f?Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:this.player.getVisibilityState(),
P_H:this.player.qb().Qh().height,P_W:this.player.qb().Qh().width,YT_REMOTE:e?e.join(","):""},n=Uoa(Toa);Object.keys(n).forEach(function(q){null!=n[q]&&(m[q.toUpperCase()]=n[q].toString())});
""!==c&&(wxa("biscotti id requested"),m.BISCOTTI_ID=c);c={};HB(a)&&(c.sts="19788",(b=this.player.U().forcedExperiments)&&(c.forced_experiments=b));var p=EB(g.Fu(a,m),c);return 2!==p.split("?").length?tg(Error("Invalid AdBreakInfo URL")):g.sS(this.player.U(),null==l?void 0:l.oauthToken).then(function(q){if(q&&GB()){var r=qU();rU(r,q)}q=d.player.hm(r);r=eeb(d,p,m,l.isMdxPlayback,h);return g.WH(q,r,"/youtubei/v1/player/ad_break").then(function(t){return t})})};
p1.prototype.reset=function(){this.C=this.j=1};g.w(feb,p1);
feb.prototype.B=function(a,b,c){b=void 0===b?{}:b;var d=b.tv,e=b.ue,f=b.cueProcessedMs;c=void 0===c?"":c;b=this.j;this.j++;var h=this.player.U().L("h5_disable_macro_substitution_in_get_ad_break")?a:geb(this,a,{tv:d,ue:e},c,b);if(2!==h.split("?").length)return wxa("Invalid AdBreakInfo URL"),tg(Error("Invalid AdBreakInfo URL"));var l=this.player.getVideoData(1).isMdxPlayback,m=c;c=Ydb.exec(h);c=null!=c&&2<=c.length?c[1]:"";a=Zdb.test(h);e=$db.exec(h);e=null!=e&&2<=e.length?e[1]:"";var n=aeb.exec(h);
n=null!=n&&2<=n.length&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=beb.exec(h);p=null!=p&&2<=p.length?p[1]:"0";var q=eS(this.player.U().Ea),r=g.gH(this.player.getVideoData(1).va,!0);Sdb(this,r,h,""===m?"":m,this.player.U());m={splay:!1,lactMilliseconds:String(JE()),playerHeightPixels:Math.trunc(this.player.qb().Qh().height),playerWidthPixels:Math.trunc(this.player.qb().Qh().width),vis:Math.trunc(this.player.getVisibilityState()),signatureTimestamp:19788,autonavState:o1(this.player.U())};if(l){l=
{};var t=this.player.U().jk;Vdb(l,t?t.join(","):"")&&(m.mdxContext=l)}if(l=ceb.includes(q)?void 0:g.aC("PREF")){t=l.split(RegExp("[:&]"));for(var v=0,x=t.length;v<x;v++){var A=t[v].split("=");if(("SML"===A[0].toUpperCase()||"GSML"===A[0].toUpperCase())&&1<A.length&&"TRUE"===A[1].toUpperCase()){r.user.lockedSafetyMode=!0;break}}m.autoCaptionsDefaultOn=Xdb(l)}h=deb.exec(h);(h=null!=h&&2<=h.length?h[1]:"")&&e&&(r.user.credentialTransferTokens=[{token:h,scope:"VIDEO"}]);h={contentPlaybackContext:m};m=
JTa(this.player.getVideoData(1));l=this.player.getVideoData(1).clientPlaybackNonce;f=void 0!==f?Math.round(f).toString():void 0;t=(null==d?0:d.context)?d.context:void 0;d=(d=Math.trunc(1E3*(d?d.yh:0)))?String(d):void 0;v=1E3*this.player.Hq();v=Number.isNaN(v)?0:Math.trunc(v);b={adBlock:b,params:c,breakIndex:n,breakPositionMs:p,clientPlaybackNonce:l,topLevelDomain:q,isProxyAdTagRequest:a,context:r,overridePlaybackContext:h,cueProcessedMs:f,videoId:e?e:void 0,liveTargetingParams:t,breakLengthMs:d,driftFromHeadMs:v?
String(v):void 0,currentMediaTimeMs:String(Math.round(1E3*this.player.getCurrentTime(1))),getAdBreakContext:m?m:void 0};return heb(this,b)};var amb={A3a:"replaceUrlMacros",MYa:"onAboutThisAdPopupClosed",eDa:"executeCommand"};ieb.prototype.Fq=function(){return"adPingingEndpoint"};
ieb.prototype.Ys=function(a,b,c){Meb(this.Oa.get(),a,b,c)};jeb.prototype.Fq=function(){return"changeEngagementPanelVisibilityAction"};
jeb.prototype.Ys=function(a){this.J.ob("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};keb.prototype.Fq=function(){return"loggingUrls"};
keb.prototype.Ys=function(a,b,c){a=g.u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,Meb(this.Oa.get(),d.baseUrl,b,c,d.attributionSrcMode)};g.w(meb,g.I);g.w(q1,g.I);g.k=q1.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.yk=function(a,b,c,d,e,f,h,l){if(""===a)HG("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.J.U().L("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Fa.get().yk(a,b,c,d,e,f,h,l);this.Ua.get().yk(a,b,c,d,e,f,h,l);var m;null==(m=this.If)||m.get().yk(a,b,c,d,e,f,h,l);this.B.yk(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.yk(a,b,c,d,e,f,h,l)}};
g.k.sQ=function(){this.j&&this.Un(this.j)};
g.k.Un=function(a){this.j=void 0;for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Un(a)};r1.prototype.ZG=function(a,b,c,d,e){var f=this;oeb(this,a,b,d,e,function(){f.contentCpn=null;f.adCpn=null;f.videoId=null;f.adVideoId=null;f.adFormat=null;f.C="AD_PLACEMENT_KIND_UNKNOWN";f.actionType="unknown_type";f.D=!1;f.B=!1;f.G=!b&&0===c})};
r1.prototype.reset=function(){return new r1(this.J)};g.w(t1,g.I);t1.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)?HG("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new ueb(a,b,c,d,f),this.j.set(a.id,{ue:a,listener:e,Go:h}),this.J.yf([a],h))};
t1.prototype.removeCueRange=function(a){var b=this.j.get(a);b?seb(this,b):HG("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
t1.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
t1.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.w(ueb,g.UJ);u1.prototype.jF=function(a){this.J.jF(a)};
u1.prototype.bx=function(a){var b=g.Ia.apply(1,arguments);"onAdStart"===a||"onAdEnd"===a?this.J.Dm.apply(this.J,[a].concat(g.pa(b))):this.J.ob.apply(this.J,[a].concat(g.pa(b)))};v1.prototype.rf=function(a){return a&&x1(this)};
v1.prototype.XR=function(){return this.J.U().experiments.kb("h5_enable_generic_error_logging_event")};var Aeb=null;g.w(zeb,g.NF);zeb.prototype.gO=function(a){return this.j.hasOwnProperty(a)?this.j[a].gO():{}};
g.Va("ytads.bulleit.getVideoMetadata",function(a){return z1().gO(a)});
g.Va("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=z1();c=yeb(c);null!==c&&d.ra(c,{queryId:a,viewabilityString:b})});g.k=A1.prototype;
g.k.Gh=function(a,b){if(!this.j.has(a))return{};if("seek"===b){b=this.J.U().L("html5_dai_enable_active_view_creating_completed_adblock");b=void 0===b?!1:b;var c=Fq(Eu).nI(a,{});c?Dt(c):b&&(a=Fq(Eu).tF(null,Yr(),!1,a),a.rk=3,Oja([a]));return{}}b=Ceb(b);if(null===b)return{};var d=this.J.fd(),e=d&&ccb(d);if(!e)return{};w1(this.Da.get())?(d=this.J.getPresentingPlayerType(!0),d=null==(c=this.J.getVideoData(d))?void 0:c.isAd()):d=this.J.U().L("enable_server_stitched_dai")?2===this.J.getPresentingPlayerType(!0):2===
d.getPlayerType();if(!d)return{};c={opt_adElement:e,opt_fullscreen:this.Fa.get().isFullscreen()};return Oka(b,a,c)};
g.k.Kw=function(a){var b;null==(b=this.j.get(a.queryId))||b.Kw()};
g.k.Jw=function(a){var b;null==(b=this.j.get(a.queryId))||b.Jw()};
g.k.Lw=function(a){var b;null==(b=this.j.get(a.queryId))||b.Lw()};
g.k.Hw=function(a){var b;null==(b=this.j.get(a.queryId))||b.Hw()};
g.k.Iw=function(a){var b;null==(b=this.j.get(a.queryId))||b.Iw()};Ieb.prototype.send=function(a,b,c,d){try{Jeb(this,a,b,c,void 0===d?!1:d)}catch(e){}};g.w(Keb,Ieb);var bmb=oa(["attributionsrc"]);
Leb.prototype.send=function(a,b,c,d){var e=!1;try{var f=new g.Eo(a);if("2"===f.B.get("ase")||"ATTRIBUTION_SRC_MODE_LABEL_CHROME"===d||"ATTRIBUTION_SRC_MODE_XHR_OPTION"===d)e=!0,a=eta(a);else if("1"===f.B.get("ase")&&"video_10s_engaged_view"===f.B.get("label")){var h=document.createElement("img");Tba([new Be(bmb[0].toLowerCase(),Xpa)],h,"attributionsrc",a+"&asr=1")}d=e;var l=a.match(Tm);if("https"===l[1])var m=a;else l[1]="https",m=Rm("https",l[2],l[3],l[4],l[5],l[6],l[7]);var n=Ska(m);l=[];HB(m)&&
(l.push({headerType:"USER_AUTH"}),l.push({headerType:"PLUS_PAGE_ID"}),l.push({headerType:"VISITOR_ID"}),l.push({headerType:"EOM_VISITOR_ID"}),l.push({headerType:"AUTH_USER"}));d&&l.push({headerType:"ATTRIBUTION_REPORTING_ELIGIBLE"});this.j.send({baseUrl:m,scrubReferrer:n,headers:l},b,c,d)}catch(p){}};F1.prototype.ej=function(){var a=this.J.fd();return a&&(a=a.ej(1))?a:null};
F1.prototype.Ii=function(a,b){"string"===typeof b?this.J.getVideoData(1).dB(a,b):this.J.getVideoData(1).qa(a,b)};g.w(G1,g.I);g.k=G1.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.yk=function(){this.CM.clear();this.AP=null;this.Ce.get().clear()};
g.k.Un=function(){};
g.k.Se=function(a){var b=this.J.getVideoData(a);return b?Teb(this,b,a||this.J.getPresentingPlayerType(!0)):null};
g.k.aba=function(a,b,c,d,e){"nPpU29QrbiU"===b.videoId&&this.Ii("ads_ssm_vdc_s",{pt:c,dvt:a});cN(this.Da.get())&&"dataloaded"!==a||Ueb(this,b,c);if(x1(this.Da.get())&&"newdata"===a&&void 0!==e){a=null==d?void 0:d.clientPlaybackNonce;b=b.clientPlaybackNonce;e=Veb(e);if(1!==e)if(void 0===a)HG("Expected exiting CPN for all non initial transitions");else for(c=g.u(this.listeners),d=c.next();!d.done;d=c.next())d.value.OJ(a,b,e);e=g.u(this.listeners);for(a=e.next();!a.done;a=e.next())a.value.NJ(b)}};
g.k.xaa=function(a,b){void 0!==a&&(this.AP=a,void 0===b?HG("Expected ad video start time on SS video changed"):this.CM.set(a,b));var c=this.J.getPresentingPlayerType(!0),d=this.J.getVideoData(c);this.J.getVideoData(1).qa("ads_ssvc",{pt:c,cpn:null==d?void 0:d.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:b});d?Ueb(this,d,c):HG("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.xa=function(){this.listeners.length=0;this.vv=null;g.I.prototype.xa.call(this)};
g.k.Ii=function(a,b){this.J.getVideoData(1).qa(a,b)};g.w(H1,g.I);g.k=H1.prototype;g.k.yk=function(){var a=this;x1(this.Da.get())||(this.j=Ud(function(){a.J.isDisposed()||a.J.Ng("ad",1)}))};
g.k.Un=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.jQ=function(){};
g.k.playVideo=function(){this.J.playVideo()};
g.k.pauseVideo=function(){this.J.pauseVideo()};
g.k.resumeVideo=function(a){this.On(a)&&this.J.playVideo()};
g.k.On=function(a){return 2===this.J.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b){var c=this.Ua.get().AP;return 2!==a||b||null===c?this.J.getCurrentTime(a,b):Xeb(this,c)};
g.k.getVolume=function(){return this.J.getVolume()};
g.k.isMuted=function(){return this.J.isMuted()};
g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.J.getPlayerState(a)};
g.k.isFullscreen=function(){return this.J.isFullscreen()};
g.k.isAtLiveHead=function(){return this.J.isAtLiveHead()};
g.k.tB=function(a){this.J.tB(a)};
g.k.V$=function(){var a=this.J.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(2===a){a=g.u(this.listeners);for(var c=a.next();!c.done;c=a.next())c.value.Ki(b)}else if(1===a)for(a=g.u(this.TC),c=a.next();!c.done;c=a.next())c.value.jQ(b)};
g.k.M$=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Li(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.lh=function(){for(var a=this.J.xg(),b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.lh(a)};
g.k.Ej=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ej(a)};
g.k.Yb=function(){for(var a=this.J.qb().Qh(),b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.hj(a)};
g.k.Dj=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Dj(a)};
g.k.Gj=function(){for(var a=g.u(this.listeners),b=a.next();!b.done;b=a.next())b.value.Gj()};g.w(afb,g.I);g.w(L1,g.I);L1.prototype.xa=function(){this.Rn.isDisposed()||this.Rn.get().removeListener(this);g.I.prototype.xa.call(this)};M1.prototype.fetch=function(a){var b=a.gW;return this.j.fetch(a.j1,{tv:void 0===a.tv?void 0:a.tv,ue:b,cueProcessedMs:void 0===a.cueProcessedMs?0:a.cueProcessedMs}).then(function(c){return bfb(c,b)})};g.w(O1,g.I);g.k=O1.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.NK=function(a){cfb(this,a,1)};
g.k.onAdUxClicked=function(a,b){P1(this,function(c){c.Fg(a,b)})};
g.k.dQ=function(a){P1(this,function(b){b.DO(a)})};
g.k.cQ=function(a){P1(this,function(b){b.CO(a)})};
g.k.x9=function(a){P1(this,function(b){b.sI(a)})};Q1.prototype.reduce=function(a){switch(a.event){case "unknown":return}var b=a.identifier;var c=this.j[b];c?b=c:(c={VC:null,wY:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.wY))if(b.wY=c,b.VC){if(c<b.VC.end){a:{c=b.VC;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.yh;a=c.end<=a?null:a}if(null!==a)for(b.VC.end=a,b=this.B,g.$b(b.C.j,1E3*a),b=g.u(b.listeners),c=b.next();!c.done;c=b.next())c.value.pZ(a)}}else if(a=dfb(a,this.C))c=a.s8,b.VC=
a.c6,ffb(this.B,c)};
Q1.prototype.updateTime=function(){};g.w(R1,g.I);g.k=R1.prototype;
g.k.yk=function(){this.G=new Q1(this,web(this.Da.get()));this.C=new efb;var a=this.J.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.J.getVideoData(1),c;(null==(c=this.j)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.kQ,this),b.subscribe("cuepointupdated",this.kQ,this),this.j=b)}this.aL.length=0;var d;b=(null==(d=a.j)?void 0:IPa(d,0))||[];d=g.u(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.Mt(b)&&HG("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
g.k.Un=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.Mt=function(a){hfb(this,a);this.G.reduce(a);a=this.D;this.D=!1;return a};
g.k.kQ=function(a){var b=this.J.getVideoData(1).isDaiEnabled();if(b||!g.wJ(this.J.U())){a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,hfb(this,c),b?this.G.reduce(c):0!==this.J.getCurrentTime(1)&&"start"===c.event&&(this.Da.get().J.U().experiments.kb("ignore_overlapping_cue_points_on_endemic_live_html5")&&(null==this.B?0:c.startSecs+c.yh>=this.B.startSecs&&c.startSecs<=this.B.startSecs+this.B.yh)?HG("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.B=c,ffb(this,
c)))}};
g.k.xa=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.kQ,this),this.j=null);this.listeners.length=0;this.aL.length=0;g.I.prototype.xa.call(this)};S1.prototype.addPlayerResponseForAssociation=function(a){this.J.addPlayerResponseForAssociation(a)};g.k=U1.prototype;g.k.IC=function(a,b,c,d,e,f,h){return this.J.IC(a,b,c,d,e,f,h)};
g.k.Ty=function(a,b){this.J.Ty(a,b)};
g.k.qG=function(a,b,c){this.J.qG(a,b,c)};
g.k.Pt=function(a){this.J.Pt(a)};
g.k.ZD=function(a,b,c,d,e,f,h){this.J.ZD(a,b,c,d,e,f,h)};
g.k.Ir=function(){return this.J.Ir()};
g.k.finishSegmentByCpn=function(a,b){this.J.finishSegmentByCpn(a,b)};g.w(kfb,g.I);g.w(lfb,g.I);g.w(mfb,g.I);g.w(nfb,g.I);g.w(ofb,g.I);g.w(pfb,g.I);g.w(rfb,g.I);rfb.prototype.C=function(){return this.B};g.w(sfb,vG);
sfb.prototype.D=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ob("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.ob("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.ob("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.ob("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.ob("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ob("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.ob("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.ob("updateKevlarOrC3Companion",{})}else if("top-banner-image-text-icon-buttoned"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ob("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,topBannerImageTextIconButtonedLayoutViewModel: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.ob("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.ob("updateKevlarOrC3Companion",{})}else if("banner-image"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.ob("updateKevlarOrC3Companion",
{contentVideoId:a&&a.videoId,bannerImageLayoutViewModel:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.ob("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.ob("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.ob("updateEngagementPanelAction",b.addAction);this.j.ob("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.ob("changeEngagementPanelVisibility",b.hideAction),this.j.ob("updateEngagementPanelAction",b.removeAction)}};g.w(tfb,zG);g.k=tfb.prototype;
g.k.init=function(a,b,c){zG.prototype.init.call(this,a,b,c);g.ks(this.B,"stroke-dasharray","0 "+this.C);this.api.U().L("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.B.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")&&this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.api.U().L("enable_unified_action_endcap_on_web")&&(this.D.classList.add("ytp-ad-timed-pie-countdown-container-unified"),
this.B.classList.add("ytp-ad-timed-pie-countdown-inner-unified"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-unified"),this.va.classList.add("ytp-ad-timed-pie-countdown-unified"));this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){BG(this);zG.prototype.hide.call(this)};
g.k.show=function(){AG(this);zG.prototype.show.call(this)};
g.k.Tp=function(){this.hide()};
g.k.oo=function(){if(this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&g.ks(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.C+" "+this.C)}};g.w(ufb,WF);g.k=ufb.prototype;
g.k.init=function(a,b,c){WF.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.U(b.actionButton,g.JM))if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.tF(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=e&&
0<e.length&&g.fc(g.gf(e[0].url))&&(e[0].url=d.profilePicture,g.fc(g.gf(d.profilePicture))&&lVa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.fc(g.gf(e[0].url))&&(e[0].url=d.hh());e=b.headline;null!=e&&g.fc(g.gf(e.text))&&(e.text=d.author)}this.Y.init(LF("ad-image"),b.image,c);this.G.init(LF("ad-text"),b.headline,c);this.C.init(LF("ad-text"),b.description,c);this.Na.init(LF("ad-image"),b.backgroundImage,c);d=["ytp-ad-action-interstitial-action-button",
"ytp-ad-action-interstitial-action-button-rounded"];this.api.U().L("enable_dark_mode_style_endcap")&&(this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-light"),this.C.element.classList.add("ytp-ad-action-interstitial-description-light"),d.push("ytp-ad-action-interstitial-action-button-dark"));this.api.U().L("enable_small_endcap_action_button_for_mweb")&&this.api.U().B&&d.push("ytp-ad-action-interstitial-action-button-mobile-companion-size");
this.api.U().L("enable_mweb_endcap_dark_mode_action_button")&&this.api.U().B&&d.push("ytp-ad-action-interstitial-action-button-dark");this.api.U().L("enable_unified_action_endcap_on_web")&&(d.push("ytp-ad-action-interstitial-action-button-unified"),this.Za.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Hf.classList.add("ytp-ad-action-interstitial-card-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-unified"),
this.va.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Ea.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,d);g.N(this,this.actionButton);this.actionButton.Ja(this.ib);this.actionButton.init(LF("button"),g.U(b.actionButton,g.JM),c);Ku(this.actionButton.element);d=Nu(this.actionButton.element);Mu(this.actionButton.element,
d+" This link opens in new tab");this.navigationEndpoint=b.navigationEndpoint;this.D.T(this.va,"click",this.KN,this);this.D.T(this.Wa,"click",this.KN,this);this.api.U().B||this.D.T(this.Xa,"click",this.KN,this);this.j=this.aS?new RG(this.api,a):new SG(a);g.N(this,this.j);if(b.skipButton){if((a=g.U(b.skipButton,qib))&&this.j&&(this.skipButton=new MG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j,this.KK),g.N(this,this.skipButton),this.skipButton.Ja(this.element),this.skipButton.init(LF("skip-button"),
a,c)),this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")){if(c=b.adBadgeRenderer)if(c=g.U(c,pib))a=new PG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,!0,!1),a.Ja(this.Ea),a.init(LF("simple-ad-badge"),c,this.macros),g.N(this,a);if(c=b.adInfoRenderer)if(c=g.U(c,HM))a=new xG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.element),a.Ja(this.Ea),a.init(LF("ad-info-hover-text-button"),c,this.macros),g.N(this,a)}}else b.nonskippableOverlayRenderer&&
(a=g.U(b.nonskippableOverlayRenderer,IM))&&this.j&&(this.B=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j,!1),g.N(this,this.B),this.B.Ja(this.element),this.B.init(LF("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.U(b,rib)&&this.j&&(c=new tfb(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.j),g.N(this,c),c.Ja(this.element),c.init(LF("timed-pie-countdown"),g.U(b,rib),this.macros)));this.show();this.element.focus()}else g.tF(Error("AdActionInterstitialRenderer has no navigation endpoint."));
else g.tF(Error("AdActionInterstitialRenderer has no button."));else g.tF(Error("AdActionInterstitialRenderer has no background AdImage."));else g.tF(Error("AdActionInterstitialRenderer has no description AdText."));else g.tF(Error("AdActionInterstitialRenderer has no headline AdText."));else g.tF(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.FC(this.D);this.hide()};
g.k.show=function(){vfb(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();WF.prototype.show.call(this)};
g.k.hide=function(){vfb(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();WF.prototype.hide.call(this)};
g.k.KN=function(){this.navigationEndpoint&&(this.layoutId?this.jb.executeCommand(this.navigationEndpoint,this.layoutId):g.tF(Error("Missing layoutId for ad action interstitial.")))};var Afb={iconType:"CLOSE"},Y1=new g.Oe(320,63);g.w(zfb,WF);g.k=zfb.prototype;
g.k.init=function(a,b,c){WF.prototype.init.call(this,a,b,c);this.D=b;this.Y=g.Lb(this.D.onClickCommands||[]);this.Wa=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,g.U(a,mib)?(this.G=g.Af("ytp-ad-overlay-ad-info-button-container",this.C.element),Bfb(this,b),a=Dfb(this,g.U(a,mib))):g.U(a,nib)?(this.G=g.Af("ytp-ad-overlay-ad-info-button-container",this.B.element),Bfb(this,b),a=Efb(this,g.U(a,nib))):g.U(a,oib)?(this.G=
g.Af("ytp-ad-overlay-ad-info-button-container",this.j.element),Bfb(this,b),a=Ffb(this,g.U(a,oib))):(g.tF(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),Gfb(this,!0))};
g.k.clear=function(){Gfb(this,!1);this.Na.reset();this.va=0;this.C.hide();this.logVisibility(this.C.element,!1);this.B.hide();this.logVisibility(this.B.element,!1);this.j.hide();this.logVisibility(this.j.element,!1);this.hide();this.dispose()};
g.k.Oaa=function(){this.Za&&(this.layoutId?this.jb.executeCommand(this.Za,this.layoutId):g.tF(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.k.CL=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var a=this.D.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.u(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.jb.executeCommand(b,this.layoutId):g.tF(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.v9=function(){this.Xa||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.BQ=function(){this.Xa||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.BQ("invideo-overlay")};
g.k.w9=function(a){a.target===this.G&&g.Af("ytp-ad-button",this.ib.element).click()};g.w(Hfb,zG);g.k=Hfb.prototype;g.k.init=function(a,b,c){zG.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=null==a||0===a?0:a+1E3*this.j.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(LF("ad-text"),d,c);this.messageText.Ja(this.B.element);this.D.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){Ifb(this,!1);zG.prototype.hide.call(this);this.B.hide();this.messageText.hide();BG(this)};
g.k.show=function(){Ifb(this,!0);zG.prototype.show.call(this);AG(this);this.B.show();this.messageText.show()};
g.k.Tp=function(){this.hide()};
g.k.oo=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.va&&a>=this.C?(this.D.hide(),this.va=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.G&&(oxa(this.messageText,{TIME_REMAINING:String(a)}),this.G=a)))}};g.w(Jfb,WF);g.k=Jfb.prototype;
g.k.init=function(a,b,c){WF.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.U(b.actionButton,g.JM)?(this.C.init(LF("ad-image"),b.image,c),this.B.init(LF("ad-text"),b.headline,c),this.D.init(LF("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.U().L("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,
a),b.backgroundColor&&g.ks(this.element,"background-color",g.aH(b.backgroundColor)),g.N(this,this.actionButton),this.actionButton.Ja(this.G),this.actionButton.init(LF("button"),g.U(b.actionButton,g.JM),c),b=g.lJ(this.api.U().experiments,"player_underlay_video_width_fraction"),this.api.U().L("place_shrunken_video_on_left_of_player")?(c=this.j,g.$u(c,"ytp-ad-underlay-left-container"),g.Yu(c,"ytp-ad-underlay-right-container"),g.ks(this.j,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.j,g.$u(c,"ytp-ad-underlay-right-container"),
g.Yu(c,"ytp-ad-underlay-left-container")),g.ks(this.j,"width",Math.round(100*(1-b-.04))+"%"),this.api.iE()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.fT.bind(this)),this.api.addEventListener("resize",this.yX.bind(this))):g.tF(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.tF(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.tF(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.tF(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){Kfb(!0);this.actionButton&&this.actionButton.show();WF.prototype.show.call(this)};
g.k.hide=function(){Kfb(!1);this.actionButton&&this.actionButton.hide();WF.prototype.hide.call(this)};
g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.fT.bind(this));this.api.removeEventListener("resize",this.yX.bind(this));this.hide()};
g.k.onClick=function(a){WF.prototype.onClick.call(this,a);this.actionButton&&g.Uf(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.fT=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.yX=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.ks(this.B.element,"font-size",a.width/40+"px")};g.w(Z1,WF);
Z1.prototype.init=function(a,b,c){WF.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.U(b.answer,g.JM)?(a=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ja(this.answer),a.init(LF("ytp-ad-survey-answer-button"),g.U(b.answer,g.JM),c),a.show()):b.answer&&g.U(b.answer,L2)&&(this.j=new uG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,
["ytp-ad-survey-answer-toggle-button"]),this.j.Ja(this.answer),g.N(this,this.j),this.j.init(LF("survey-answer-button"),g.U(b.answer,L2),c));this.show()};
Z1.prototype.IF=function(a){this.layoutId?KJ(this.jb,a,this.layoutId,this.macros):g.tF(new g.QC("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
Z1.prototype.onClick=function(a){WF.prototype.onClick.call(this,a);if(this.api.U().L("supports_multi_step_on_desktop")&&null!==this.index)this.onSelected(this.index)};
Z1.prototype.clear=function(){this.hide()};g.w(Lfb,WF);Lfb.prototype.init=function(a,b,c){WF.prototype.init.call(this,a,b,c);b.answer&&g.U(b.answer,L2)&&(this.button=new uG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ja(this.j),this.button.init(LF("survey-none-of-the-above-button"),g.U(b.answer,L2),c));this.show()};g.w($1,fG);$1.prototype.init=function(a,b,c){fG.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.YF(b.text),a=!g.fc(b));a||g.uF(Error("No submit text was present in the renderer."))};
$1.prototype.onClick=function(a){this.ra("l");fG.prototype.onClick.call(this,a)};g.w(a2,WF);
a2.prototype.init=function(a,b,c){WF.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.U(a,QL)?(a=g.U(a,QL),c=new OG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.D,!0),c.Ja(this.skipOrPreview),c.init(LF("skip-button"),a,this.macros),g.N(this,c),this.j=c):g.U(a,IM)&&(a=g.U(a,IM),c=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.D,!1),c.Ja(this.skipOrPreview),c.init(LF("ad-preview"),a,this.macros),pxa(c),g.N(this,c),this.j=c);null==
this.j&&g.tF(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));b.submitButton&&(a=b.submitButton,g.U(a,g.JM)&&(a=g.U(a,g.JM),c=new $1(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),c.Ja(this.submitButton),c.init(LF("survey-submit"),a,this.macros),g.N(this,c),this.B=c));if(a=b.adBadgeRenderer)a=g.U(a,pib),c=new PG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,!0,!1),c.Ja(this.C),c.init(LF("simple-ad-badge"),a,this.macros),
g.N(this,c);if(a=b.adDurationRemaining)a=g.U(a,iib),c=new VG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.D,void 0),c.Ja(this.C),c.init(LF("ad-duration-remaining"),a,this.macros),g.N(this,c);(b=b.adInfoRenderer)&&g.U(b,HM)&&(a=new xG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.element),g.N(this,a),a.Ja(this.C),a.init(LF("ad-info-hover-text-button"),g.U(b,HM),this.macros));this.api.U().L("enable_unified_ad_badge_style_fix")&&this.C.classList.add("ytp-ad-survey-player-overlay-instream-info-unified");
this.show()};
a2.prototype.clear=function(){this.hide()};g.w(b2,WF);b2.prototype.init=function(a,b,c){WF.prototype.init.call(this,a,b,c);Qfb(this)};
b2.prototype.show=function(){this.C=g.kb();WF.prototype.show.call(this)};
b2.prototype.w_=function(){};g.w(Rfb,b2);g.k=Rfb.prototype;g.k.init=function(a,b,c){var d=this;b2.prototype.init.call(this,a,b,c);b.questionText&&Mfb(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.U(e,G2)&&Nfb(d,g.U(e,G2),c,f)});
this.G=new Set(this.B.map(function(e){return e.j.j}));
(a=b.noneOfTheAbove)&&(a=g.U(a,lib))&&Sfb(this,a,c);b.surveyAdQuestionCommon&&Pfb(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
g.k.w_=function(){Tfb(this,!1);this.D.B.subscribe("l",this.Maa,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?Ufb(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),Tfb(this,!0))};
g.k.Maa=function(){var a=[],b=this.B.reduce(function(e,f,h){var l=f.toggledLoggingParams;f.j&&f.j.isToggled()&&l&&(e.push(l),a.push(h));return e},[]).join("&"),c=this.submitEndpoints.map(function(e){if(!e.loggingUrls)return e;
e=g.qd(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=bn(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?KJ(this.jb,d,this.layoutId,this.macros):g.tF(Error("Missing layoutId for multi_select_question."))}this.api.U().L("supports_multi_step_on_desktop")&&this.va(a)};
g.k.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(c2,b2);c2.prototype.init=function(a,b,c){var d=this;b2.prototype.init.call(this,a,b,c);b.questionText&&Mfb(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.U(e,G2)&&Nfb(d,g.U(e,G2),c,f)});
b.surveyAdQuestionCommon?Pfb(this,b.surveyAdQuestionCommon):g.tF(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
c2.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(d2,WF);d2.prototype.init=function(a,b,c){var d=this;WF.prototype.init.call(this,a,b,c);if(this.api.U().L("supports_multi_step_on_desktop")){var e;this.conditioningRules=null!=(e=b.conditioningRules)?e:[];var f;this.B=null!=(f=b.questions)?f:[];var h;(null==(h=b.questions)?0:h.length)&&Yfb(this,0)}else(b.questions||[]).forEach(function(l){g.U(l,GM)?Wfb(d,g.U(l,GM),c):g.U(l,FM)&&Xfb(d,g.U(l,FM),c)});
this.show()};
d2.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
d2.prototype.D=function(a){var b=this;if(this.api.U().L("supports_multi_step_on_desktop")){var c;if(null==(c=this.conditioningRules)?0:c.length){var d;if(0===a.length)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(null==this.conditioningRules.find(function(e){return e.questionIndex===b.j}))g.tF(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);
else if(this.conditioningRules.forEach(function(e){if(e.questionIndex===b.j)switch(e.condition){case "CONDITION_ALL_OF":var f;if(null==(f=e.answerIndices)?0:f.every(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
break;case "CONDITION_ANY_OF":var h;if(null==(h=e.answerIndices)?0:h.some(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
break;default:g.tF(Error("Expected specified condition in survey conditioning rules."))}}),null!=d)Yfb(this,d);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else 1<this.questions.length&&g.tF(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};var Zfb=oa(['background-image:url("','");']);g.w(e2,WF);
e2.prototype.init=function(a,b,c){var d=this;WF.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.tF(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.U(b.ctaButton,g.JM))if(b.brandImage)if(b.backgroundImage&&g.U(b.backgroundImage,KM)&&g.U(b.backgroundImage,KM).landscape){this.layoutId||g.tF(Error("Missing layoutId for survey interstitial."));$fb(this.interstitial,
g.U(b.backgroundImage,KM).landscape);$fb(this.logoImage,b.brandImage);g.Vf(this.text,g.YF(b.text));var e=["ytp-ad-survey-interstitial-action-button"];this.api.U().L("web_modern_buttons_bl_survey")&&e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new fG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,e);g.N(this,this.actionButton);this.actionButton.Ja(this.B);this.actionButton.init(LF("button"),g.U(b.ctaButton,g.JM),c);this.actionButton.show();this.j=new RG(this.api,
1E3*a);this.j.subscribe("g",function(){d.transition.hide()});
g.N(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.tF(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.tF(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.tF(Error("SurveyTextInterstitialRenderer has no button."));else g.tF(Error("SurveyTextInterstitialRenderer has no text."));else g.tF(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
e2.prototype.clear=function(){this.hide()};
e2.prototype.show=function(){agb(!0);WF.prototype.show.call(this)};
e2.prototype.hide=function(){agb(!1);WF.prototype.hide.call(this)};g.w(f2,zG);g.k=f2.prototype;
g.k.init=function(a,b){zG.prototype.init.call(this,a,b,{});if(b.durationMilliseconds){if(0>b.durationMilliseconds){g.tF(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+b.durationMilliseconds));return}this.B=b.durationMilliseconds}else this.B=this.j.gm();var c;if(null==(c=b.previewText)||!c.text||g.fc(b.previewText.text))g.tF(Error("No text is returned for AdPreview."));else{this.G=b.previewText;b.previewText.isTemplated||g.Vf(this.C,b.previewText.text);var d;
if((null==(d=this.api.getVideoData(1))?0:d.Jl)&&b.previewImage){var e,f;a=(null==(f=dza((null==(e=b.previewImage)?void 0:e.sources)||[],52,!1))?void 0:f.url)||"";if(!a||!a.length){g.tF(Error("Failed to get imageUrl in AdPreview."));return}this.previewImage=new g.VF({I:"img",S:"ytp-preview-ad__image",X:{src:"{{imageUrl}}"}});this.previewImage.updateValue("imageUrl",a);g.N(this,this.previewImage);this.previewImage.Ja(this.element)}else this.C.classList.add("ytp-preview-ad__text--padding--wide");this.api.U().experiments.kb("should_use_web_overlay_new_margin")&&
this.element.classList.add("ytp-preview-ad--new--pos")}};
g.k.clear=function(){this.hide()};
g.k.hide=function(){BG(this);zG.prototype.hide.call(this)};
g.k.show=function(){AG(this);zG.prototype.show.call(this)};
g.k.Tp=function(){this.hide()};
g.k.oo=function(){if(this.j){var a=this.j.getProgressState();if(null!=a&&a.current)if(a=1E3*a.current,a>=this.B)this.transition.hide();else{var b;if(null==(b=this.G)?0:b.isTemplated)if(b=Math.max(0,Math.ceil((this.B-a)/1E3)),b!==this.D){var c,d;(a=null==(c=this.G)?void 0:null==(d=c.text)?void 0:d.replace("{TIME_REMAINING}",String(b)))&&g.Vf(this.C,a);this.D=b}}}};g.w(g2,WF);
g2.prototype.init=function(a,b){WF.prototype.init.call(this,a,b,{});var c,d;if((a=(null==(d=dza((null==(c=b.image)?void 0:c.sources)||[],bgb(b),!0))?void 0:d.url)||"")&&a.length){c=this.Ga("ytp-ad-avatar");c.src=a;var e,f;if(d=null==(e=b.interaction)?void 0:null==(f=e.accessibility)?void 0:f.label)c.alt=d;switch(b.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s");
break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(b.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner");break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.tF(Error("Failed to get imageUrl in AdAvatar."))};
g2.prototype.clear=function(){this.hide()};
g2.prototype.onClick=function(a){WF.prototype.onClick.call(this,a)};g.w(h2,WF);
h2.prototype.init=function(a,b){WF.prototype.init.call(this,a,b,{});var c;a=null==(c=b.label)?void 0:c.content;if((c=null!=a&&!g.fc(a))||b.icon){c&&(this.buttonText=new g.VF({I:"span",S:"ytp-ad-button__text",ya:a}),g.N(this,this.buttonText),this.buttonText.Ja(this.element));var d,e,f=(null==(d=b.interaction)?0:null==(e=d.accessibility)?0:e.label)||c?a:"";f&&Mu(this.element,f+" This link opens in new tab");Ku(this.element);if(b.icon||b.iconImage){d=void 0;if(b.iconImage){a:{e=b.iconImage;if(e.sources)for(e=
g.u(e.sources),a=e.next();!a.done;a=e.next())if(a=a.value,c=void 0,null==(c=a.clientResource)?0:c.imageName){e=a;break a}e=void 0}if(e){var h;d={iconType:null==(h=e.clientResource)?void 0:h.imageName}}}else b.icon&&(d=b.icon);h=eG(d);null!=h&&(this.buttonIcon=new g.VF({I:"span",S:"ytp-ad-button__icon",V:[h]}),g.N(this,this.buttonIcon),b.iconLeading?(Qf(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button__icon--leading")):(this.buttonIcon.Ja(this.element),this.buttonIcon.element.classList.add("ytp-ad-button__icon--trailing")))}this.element.classList.add("ytp-ad-button--style-filled");
switch(b.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button--size-large");break;default:this.element.classList.add("ytp-ad-button--size-default")}}else g.uF(Error("AdButton does not have label or an icon."))};
h2.prototype.clear=function(){this.hide()};
h2.prototype.onClick=function(a){WF.prototype.onClick.call(this,a)};g.w(i2,WF);i2.prototype.init=function(a,b){WF.prototype.init.call(this,a,b,{});if(a=b.content){g.Vf(this.element,a);var c,d;b=(null==(c=b.interaction)?void 0:null==(d=c.accessibility)?void 0:d.label)||a;this.element.setAttribute("aria-label",b)}else g.tF(Error("AdSimpleAttributedString does not have text content"))};
i2.prototype.clear=function(){this.hide()};
i2.prototype.onClick=function(a){WF.prototype.onClick.call(this,a)};g.w(egb,zG);g.k=egb.prototype;
g.k.init=function(a,b){zG.prototype.init.call(this,a,b,{});this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Ga("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"),
this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),Qf(this.Ga("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(a=g.U(b.avatar,sib)){var c=b.headline;if(c){var d=b.description;if(d){var e=g.U(b.button,tib);e?(this.adAvatar.init(LF("ad-avatar"),a),this.headline.init(LF("ad-simple-attributed-string"),new dgb(c)),this.description.init(LF("ad-simple-attributed-string"),new dgb(d)),this.adButton.init(LF("ad-button"),e),this.B=b.startMs||
0,this.api.iE()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.gT.bind(this)),AG(this)):g.tF(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.tF(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.tF(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.tF(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
g.k.oo=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.B&&(BG(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
g.k.Tp=function(){this.clear()};
g.k.onClick=function(a){this.api.pauseVideo();zG.prototype.onClick.call(this,a)};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.gT.bind(this))};
g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();zG.prototype.show.call(this)};
g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();zG.prototype.hide.call(this)};
g.k.gT=function(a){"hidden"===a?this.show():this.hide()};g.w(fgb,WF);g.k=fgb.prototype;
g.k.init=function(a,b){WF.prototype.init.call(this,a,b,{});!b.label||g.fc(b.label)?g.tF(Error("No label is returned for SkipAdButton.")):(g.Vf(this.D,b.label),a=eG({iconType:"SKIP_NEXT_NEW"}),null==a)?g.tF(Error("Unable to retrieve icon for SkipAdButton")):(this.C=new g.VF({I:"span",S:"ytp-skip-ad-button__icon",V:[a]}),g.N(this,this.C),this.C.Ja(this.element),this.api.U().experiments.kb("enable_skip_to_next_messaging")&&(b=g.gf(b.targetId))&&(this.B=!0,this.element.setAttribute("data-tooltip-target-id",b),
this.element.setAttribute("data-tooltip-target-fixed","")),this.api.U().experiments.kb("should_use_web_overlay_new_margin")&&this.element.classList.add("ytp-skip-ad-button--new--pos"),this.api.U().experiments.kb("should_use_legacy_skip_button_class")&&this.element.classList.add("ytp-ad-skip-button-modern"))};
g.k.onClick=function(a){a&&a.preventDefault();var b,c,d=null!=(c=null==(b=this.api.getVideoData(1))?void 0:b.clientPlaybackNonce)?c:"";if(!this.api.U().L("ab_sa_ef")||0!==GG(a,{contentCpn:d})){WF.prototype.onClick.call(this,a);if(!this.api.U().L("ab_sa_ef")){var e,f;b={contentCpn:null!=(f=null==(e=this.api.getVideoData(1))?void 0:e.clientPlaybackNonce)?f:""};GG(a,b)}this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.ob("onAdSkip");this.api.onAdUxClicked(this.componentType,this.layoutId)}};
g.k.clear=function(){this.j.reset();this.hide()};
g.k.hide=function(){WF.prototype.hide.call(this)};
g.k.show=function(){this.j.start();WF.prototype.show.call(this);this.B&&this.api.U().experiments.kb("enable_skip_to_next_messaging")&&this.api.ra("showpromotooltip",this.element)};g.w(ggb,zG);g.k=ggb.prototype;g.k.init=function(a,b){zG.prototype.init.call(this,a,b,{});if(a=g.U(b.preskipState,uib)){var c=g.U(b.skippableState,wib);c?(null!=b.skipOffsetMilliseconds?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.uF(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(LF("preview-ad"),a),this.B.transition.show(100),this.C.init(LF("skip-button"),c),this.show()):g.tF(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}else g.tF(Error("No AdPreviewViewModel is returned in SkipAdViewModel."))};
g.k.show=function(){AG(this);zG.prototype.show.call(this)};
g.k.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.C&&this.C.hide();BG(this);zG.prototype.hide.call(this)};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();BG(this);zG.prototype.hide.call(this)};
g.k.Tp=function(){this.hide()};
g.k.oo=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var a;null!=(a=this.B)&&a.transition.hide();var b;null!=(b=this.C)&&b.transition.show()}};g.w(j2,WF);
j2.prototype.init=function(a,b){WF.prototype.init.call(this,a,b,{});if(b.label||b.icon){var c;(null==(c=b.label)?0:c.content)&&!g.fc(b.label.content)&&(this.linkText=new g.VF({I:"span",S:"ytp-visit-advertiser-link__text",ya:b.label.content}),g.N(this,this.linkText),this.linkText.Ja(this.element));b.icon&&!this.api.U().experiments.kb("disable_web_visit_advertiser_link_icon")&&(a=eG(b.icon),null!=a&&(this.j=new g.VF({I:"span",S:"ytp-visit-advertiser-link__icon",V:[a]}),g.N(this,this.j),this.j.Ja(this.element)));var d,
e;if(null==(d=b.interaction)?0:null==(e=d.accessibility)?0:e.label)this.element.setAttribute("aria-label",b.interaction.accessibility.label);else{var f;(null==(f=b.label)?0:f.content)&&!g.fc(b.label.content)&&this.element.setAttribute("aria-label",b.label.content)}this.show()}else g.tF(Error("No label or icon found in VisitAdvertiserLink."))};
j2.prototype.clear=function(){this.hide()};g.w(k2,WF);
k2.prototype.init=function(a,b,c,d){WF.prototype.init.call(this,a,b,{});b.skipOrPreview&&(c=b.skipOrPreview,a=g.U(c,xib),c=g.U(c,uib),a?(this.au=new ggb(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B),g.N(this,this.au),this.au.Ja(this.G),this.au.init(LF("skip-ad"),a)):c&&(this.C=new f2(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,1),g.N(this,this.C),this.C.Ja(this.G),this.C.init(LF("ad-preview"),c),this.C.transition.show(100)));b.playerAdCard&&(a=
g.U(b.playerAdCard,vib))&&(this.playerAdCard=new egb(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B),g.N(this,this.playerAdCard),this.playerAdCard.Ja(this.D),this.playerAdCard.init(LF("ad-avatar-lockup-card"),a));b.adBadgeRenderer&&(a=g.U(b.adBadgeRenderer,pib))&&(this.adBadge=new PG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,!0,!1),g.N(this,this.adBadge),this.adBadge.Ja(this.j),this.adBadge.init(LF("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&
(a=g.U(b.adDurationRemaining,iib))&&(this.adDurationRemaining=new VG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.B,d.videoAdDurationSeconds),g.N(this,this.adDurationRemaining),this.adDurationRemaining.Ja(this.j),this.adDurationRemaining.init(LF("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.U(b.adInfoRenderer,HM))&&(this.adInfoButton=new xG(this.api,this.layoutId,this.interactionLoggingClientData,this.jb,this.element),g.N(this,this.adInfoButton),this.adInfoButton.Ja(this.j),
this.adInfoButton.init(LF("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserLink&&(b=g.U(b.visitAdvertiserLink,yib))&&(this.visitAdvertiserLink=new j2(this.api,this.layoutId,this.interactionLoggingClientData,this.jb),g.N(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ja(this.j),this.visitAdvertiserLink.init(LF("visit-advertiser-link"),b));this.api.U().experiments.kb("move_cta_down_when_player_control_hides")&&(this.D.classList.add("ytp-ad-player-overlay-layout__player-card-container--cta--down"),
this.j.classList.add("ytp-ad-player-overlay-layout__ad-info-container--cta--down"));this.api.U().experiments.kb("should_use_web_overlay_new_margin")&&(this.D.classList.add("ytp-ad-player-overlay-layout__player-card-container--new--pos"),this.j.classList.add("ytp-ad-player-overlay-layout__ad-info-container--new--pos"));this.show()};
k2.prototype.clear=function(){this.hide()};var cmb="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 banner-image top-banner-image-text-icon-buttoned".split(" "));g.w(l2,vG);
l2.prototype.D=function(a){var b=a.id,c=a.content,d=c.componentType;if(!cmb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.jb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof oK?c.aS:!1,m=c instanceof oK||c instanceof QG?c.KK:!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 zfb(a,f,h,e);break;case "player-overlay":a=new ZG(a,f,h,e,new tW(a),m);break;case "player-overlay-layout":a=new k2(a,f,h,e,new tW(a));break;case "survey":a=
new d2(a,f,h,e);break;case "ad-action-interstitial":a=new ufb(a,f,h,e,l,m);break;case "survey-interstitial":a=new e2(a,f,h,e);break;case "ad-message":a=new Hfb(a,f,h,e,new tW(a,1));break;case "player-underlay":a=new Jfb(a,f,h,e);break;default:a=null}if(!a){g.uF(Error("No UI component returned from ComponentFactory for type: "+d));break}g.jd(this.B,b)?g.uF(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);c instanceof VBa?this.C?this.C.append(a.BR):g.tF(Error("Underlay view was not created but UnderlayRenderer was created")):
this.G.append(a.BR);break;case 2:b=hgb(this,a);if(null==b)break;b.bind(c);break;case 3:c=hgb(this,a),null!=c&&(g.vb(c),g.jd(this.B,b)?(c=this.B,b in c&&delete c[b]):g.uF(Error("Ad UI component does not exist: "+b)))}};
l2.prototype.xa=function(){g.xb(Object.values(this.B));this.B={};vG.prototype.xa.call(this)};g.w(igb,g.RV);g.k=igb.prototype;g.k.create=function(){try{jgb(this),this.load(),this.created=!0,jgb(this)}catch(a){HG(a instanceof Error?a:String(a))}};
g.k.load=function(){try{mgb(this)}finally{x1(W1(this.j).bk)&&this.player.Ng("ad",1)}};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Lt.Un(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.RV.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){HG(b instanceof Error?b:String(b))}if(null!=this.B){var a=this.B;this.B=null;a.dispose()}this.C.reset()};
g.k.xl=function(){return!1};
g.k.getAdState=function(){return-1};
g.k.getOptions=function(){return Object.values(amb)};
g.k.Lh=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=Feb(this.player),Object.assign(b,a.Hlb),a=g.Fu(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Lp(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}};
g.k.Mt=function(a){var b;return!(null==(b=this.j.j.If)||!b.get().Mt(a))};
g.k.Lp=function(a){a.isMuted&&nza(W1(this.j).nk,W1(this.j).zm,a.layoutId);this.ls&&this.ls.Lp()};
g.k.executeCommand=function(a){W1(this.j).jb.executeCommand(a.command,a.layoutId)};g.Va("yt.player.Application.create",g.T0.create);g.Va("yt.player.Application.createAlternate",g.T0.create);Cva(Eva(),{ir:[{vA:/Unable to load player module/,weight:20},{vA:/Failed to fetch/,weight:500},{vA:/XHR API fetch failed/,weight:10},{vA:/JSON parsing failed after XHR fetch/,weight:10},{vA:/Retrying OnePlatform request/,weight:10},{vA:/CSN Missing or undefined during playback association/,weight:100}]});var dmb=g.Wa("ytcsi.tick");dmb&&dmb("pe");g.QV("ad",igb);var rgb=g.Cf&&qgb();g.emb=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Va("yt.msgs_",g.emb);g.w(g.o2,g.I);g.o2.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.pD)()};this.next()};
g.o2.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.o2.prototype.next=function(){if(this.config){var a=this.config,b=a.from,c=a.to,d=a.duration;a=a.startTime;var e=(0,g.pD)()-a;a=this.j;d=qla(a,e/d);if(0==d)a=a.C;else if(1==d)a=a.D;else{e=Je(a.C,a.y1,d);var f=Je(a.y1,a.y2,d);a=Je(a.y2,a.D,d);e=Je(e,f,d);f=Je(f,a,d);a=Je(e,f,d)}a=g.He(a,0,1);this.callback(b+(c-b)*a);1>a&&this.delay.start()}};g.w(g.p2,g.V);g.k=g.p2.prototype;g.k.WD=function(){return 0<this.suggestionData.length};
g.k.s2=function(){this.B&&this.scrollTo(this.j-this.containerWidth)};
g.k.show=function(){g.V.prototype.show.call(this);ugb(this)};
g.k.t2=function(){this.B&&this.scrollTo(this.j+this.containerWidth)};
g.k.Mw=function(){this.Yb(this.api.qb().getPlayerSize())};
g.k.Yb=function(a){var b=this.api.kd()?.5625:16/9,c=this.api.Ch();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));var d=(a-8*c)/c;b=Math.floor(d/b);for(var e=g.u(this.C),f=e.next();!f.done;f=e.next())f=f.value.Ga("ytp-suggestion-image"),f.style.width=d+"px",f.style.height=b+"px";this.suggestions.element.style.height=b+"px";this.G=d;this.Y=b;this.containerWidth=a;this.columns=c;this.j=0;this.suggestions.element.scrollLeft=-0;g.q2(this)};
g.k.onVideoDataChange=function(){var a=this.api.U(),b=this.api.getVideoData();this.K=b.Of?!1:a.D;this.suggestionData=b.suggestions?g.ot(b.suggestions,function(c){return c&&!c.playlistId}):[];
wgb(this);b.Of?this.title.update({title:g.aK('\u0414\u0440\u0443\u0433\u0438\u0435 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0435 "$DNI_RELATED_CHANNEL"',{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.api.kd()?"\u0415\u0449\u0451 \u0432\u0438\u0434\u0435\u043e Shorts":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0438\u0434\u0435\u043e"})};
g.k.scrollTo=function(a){a=g.He(a,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.N.start(this.j,a,1E3);this.j=a;g.q2(this);ugb(this)};})(_yt_player);
